@myagentroam/node 0.9.23 → 0.9.25

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 _0x30d41e=_0xcab7;(function(_0xee4476,_0x1b8fe5){const _0x55c273=_0xcab7,_0x4c6f33=_0xee4476();while(!![]){try{const _0x3f902b=-parseInt(_0x55c273(0x1f2))/(-0x1*-0x17cc+-0x81f+-0xfac)*(-parseInt(_0x55c273(0x25c))/(-0x26a8+0x1552+0x1158))+parseInt(_0x55c273(0x1f3))/(0x1*-0xbc3+-0x1*-0x351+-0x5*-0x1b1)*(-parseInt(_0x55c273(0x1f6))/(-0x49f*0x1+-0x9*-0x235+0x2*-0x79d))+-parseInt(_0x55c273(0x1de))/(0x76b+0xd56+-0x14bc)+-parseInt(_0x55c273(0x228))/(-0x4*0x85f+-0x1*0x1c45+0x3dc7)+parseInt(_0x55c273(0x240))/(0x5*-0x81+0x12df*0x2+0x212*-0x11)*(-parseInt(_0x55c273(0x1f4))/(0x6cd*-0x5+-0x1*0x16a9+0x7b*0x76))+parseInt(_0x55c273(0x258))/(0xbf*-0x25+0x194d+0x257)+parseInt(_0x55c273(0x233))/(0x17d8+-0x1300*-0x1+0x1567*-0x2);if(_0x3f902b===_0x1b8fe5)break;else _0x4c6f33['push'](_0x4c6f33['shift']());}catch(_0x1ebf2d){_0x4c6f33['push'](_0x4c6f33['shift']());}}}(_0x23ce,-0x66d97+-0x61b07+0x8b952*0x2));function _0x23ce(){const _0x1d394a=['yxjNCW','zwzMB3j0','Bw9KzwW','otjmzMfdvhi','ls12zxjZAw9U','yxzHAwXHyMXL','q09ervHFqvbqx1nfuLzfuL9fweLuruq','C3rHCNruAhjLywq','DgHYzwfKl3jLC3vTzq','BMf0AxzLq29UDhjVBa','y29UBMvJDa','ywrK','C3rKAw8','DhvYBI5ZDgvLCG','y29KzxHFDNnJB2rL','CMvZDw1LvgHYzwfK','DhvYBI9PBNrLCNj1Chq','BgLMzwn5y2XLuMv2AxnPB24','q29KzxGGqxbWifnLCNzLCIbYzxf1zxn0igzHAwXLza','y29UzMLNDxjLrw52AxjVBM1LBNq','zgvZDhjVEq','y29SBgfIB3jHDgLVBK1Vzgu','C3rHCNrnyw5Hz2vK','zgvSzxrL','C2HHCMvKq29UDhjVBa','BwvZC2fNzq','CMvHze9UBhK','y29Kzq','Bw9KzwWVBgLZDa','BMfTzq','uKvtvu1bqKXf','Aw5PDgLHBgL6zq','q09ervHFvu5jwf9tt0nlrvrFq09otKvdvf9gquLmruq6','B3b0Aw9UCW','BgLZDenVBgXHyM9YyxrPB25nB2rLCW','D3jPDgfIBgu','q09ervHFqvbqx1nfuLzfuL9tvefsvf9gquLmruq6','Dw5PEdOVlW','CgfYyw1Z','CMvZDgfYDa','AgfUzgXLtgLUzq','rvHurvjoquW','BM90AwzPy2f0Aw9UCW','Aw5PDgLHBgL6zwq','DhjPBq','zM9YA1rOCMvHza','zNvSBc1Hy2nLC3m','AgLZDg9YEs5YzwfK','q09ervHFqvbqx1nfuLzfuL9btfjfqurzx1nuqvjuruq','y2HPBgq','BMf0AxzLvgHYzwfKswq','DgHYzwfK','DgHYzwfKl3jLywq','D29YA3nWywnLlxDYAxrL','C3rKAw4','mc4XlJq','mtC3mJC3nwLAwMjUrq','q09ervHFqvbqx1nfuLzfuL9suenFrvjst1i6','Bwv0Ag9K','C3rHCNq','DhvYBG','CgXHDgzVCM0','B24TCMvXDwvZDa','C2XPy2u','q09ervHFqvbqx1nfuLzfuL9tve9queve','C3rVCe1HBMfNzwq','CgLWzq','C3rHCNruDxjU','AxnbCNjHEq','CMvZDgfYDgLUzW','tufoquDfra','txLbz2vUDfjVyw0','zgfUz2vYlwz1BgWTywnJzxnZ','zxHPDa','B25oB3rPzMLJyxrPB24','D2fPDezVCLbLBMrPBMDszxf1zxn0CW','ndy4Aw93DM5m','ntK0ntK3CwjPvhP0','ofbjq0T3CG','DgHYzwfKl2zVCMS','ngn0uLvQCa','CMvZDgfYDe1HBMfNzwq','y29SBgfIB3jHDgLVBK1VzguVBgLZDa','zw52AxjVBM1LBNq','zgv2zwXVCgvYsw5ZDhj1y3rPB25Z','BMv4DeLK','CMvXDwvZDerPCMvJDa','BwLU','y2XLyxi','t0jtrvjwrv9ptKXz','BNvTyMvY','CMvQzwn0','B25Jzq','CMvHzfrOCMvHza','y29KzxG','C3rYAw5NAwz5','C3rYAw5N','zw52','CMvZB2X2zq','CMvXDwvZDa','q09ervHFvu5jwf9tt0nlrvrFueXbvezpuK1Fvu5tvvbqt1juruq','C3bHD25qCM9JzxnZ','DgHYzwfKl3n0yxj0','DgLTzxi','vu5bvKfjtefcteu','CMvZCg9Uza','CMvZB2X2zvbLBMrPBMDeCMfPBG','DhvYBI9ZDgvLCG','zgf0yq','zgfUz2vYrNvSBefJy2vZCW','q09ervHFqvbqx1nfuLzfuL9vtKfwquLmqujmrq','DgHYzwfKl2XPC3q','DgLTzw91De1Z','DhjHBNnWB3j0tw9Kzq','y29TBwfUza','zMfPBefSBa','DgHYzwfKl25HBwuVC2v0','BgLZDe1VzgvSCW','C3rLzxjuDxjU','y3DK','DhvYBI9ZDgfYDa','D29YA3nWywnLv3jPDgu','C2v0','CgfYC2u','C2vYDMLJzvrPzxi','Aw50zxjYDxb0vhvYBG','C2v0vgHYzwfKtMfTzq','BgvUz3rO','z3b0ltuUnI1ZB2W','BMv2zxi','otKXndu4yvzitwTb','CNbJtwvZC2fNzq','DhjHBNnWB3j0','z2v0','ywnJzxnZ','BM90Awz5','C29JA2v0ugf0Aa','C3rKB3v0','zxjYB3i','Dgv4Da','DhvYBI5PBNrLCNj1Chq','mtuXmJu0nZbxA2T4vgy','q09ervHFqvbqx1nfuLzfuL9usu1ft1vu','DgvZDa','CgLK','CMvHzc1VBMX5','CgvUzgLUz0rYywLUv2fPDgvYCW','D3jPDgu','yxv0BW','BgLUzq','BwnWu2vYDMvYCW','BgLZDfrOCMvHzhm','BM93','u0HbuKvex0nptLrst0W','mZK3mdGZneXitMvWsG','BgLUDxG','B2jQzwn0','Dw5PEa','y2XLyxjfBNzPCM9UBwvUDa','A2LSBa','zMfZDa','DhvYBI5ZDgfYDa','C2L6zq','ls1SAxn0zw4','zxzLBNrZlMXPDMu','C3rVCa','BxLHz2vUDhjVyw0Ty29KzxGT','C3rKzxjY','lNnVy2S','C3rHCNrPBMC','CgvUzgLUzW','CMvZDwX0','q29KzxHbChbtzxj2zxjsCgnfCNjVCG','C3rHDhvZ','ywn0AxzLvhvYBG','DgHLBG','DxrMoa','yxbWlxnLCNzLCG','nJu5mtqYCgLUuwTt'];_0x23ce=function(){return _0x1d394a;};return _0x23ce();}import{spawn,spawnSync}from'node:child_process';import{randomUUID}from'node:crypto';import{existsSync}from'node:fs';import{unlink}from'node:fs/promises';import{connect}from'node:net';import{tmpdir}from'node:os';import{join}from'node:path';import{createInterface}from'node:readline';import{minimalRunnerEnvironment,platformCliInvocation,runRunnerProbe}from'./operational.js';const REQUEST_TIMEOUT_MS=-0x1*-0x61f1+-0x209*0xf+-0x1*0x8d2;export function codexSessionControl(_0x839a84){const _0x2d999a=_0xcab7;if(!_0x839a84[_0x2d999a(0x25e)])return{'level':_0x2d999a(0x20e),'capabilities':[]};if(_0x839a84[_0x2d999a(0x1be)])return{'level':_0x2d999a(0x23f),'capabilities':[_0x2d999a(0x1d5),_0x2d999a(0x24a),_0x2d999a(0x247),_0x2d999a(0x266),_0x2d999a(0x232)]};if(_0x839a84[_0x2d999a(0x1d8)]!==null&&_0x839a84[_0x2d999a(0x262)]===_0x2d999a(0x1cf))return{'level':_0x2d999a(0x1ff),'capabilities':[_0x2d999a(0x1d5)]};if(_0x839a84[_0x2d999a(0x254)])return{'level':_0x2d999a(0x1ec),'capabilities':[_0x2d999a(0x1d5),_0x2d999a(0x24a),_0x2d999a(0x266),_0x2d999a(0x232)]};return{'level':_0x2d999a(0x1c4),'capabilities':[_0x2d999a(0x1d5),_0x2d999a(0x247)]};}export class CodexAppServerRpcError extends Error{[_0x30d41e(0x1c1)];[_0x30d41e(0x229)];[_0x30d41e(0x212)];constructor(_0x3c04a7){const _0x5ec481=_0x30d41e,_0x26b4df=typeof _0x3c04a7[_0x5ec481(0x1bf)]===_0x5ec481(0x206)?_0x3c04a7[_0x5ec481(0x1bf)]:_0x5ec481(0x26b);super(_0x5ec481(0x1df)+JSON[_0x5ec481(0x205)](_0x3c04a7)),this[_0x5ec481(0x1c3)]=_0x5ec481(0x252),this[_0x5ec481(0x1c1)]=_0x3c04a7[_0x5ec481(0x1c1)],this[_0x5ec481(0x229)]=_0x26b4df,this[_0x5ec481(0x212)]=_0x3c04a7[_0x5ec481(0x212)];}}export function isCodexRolloutMissingError(_0x3fd185){const _0x3f4916=_0x30d41e;return _0x3fd185 instanceof CodexAppServerRpcError&&_0x3fd185[_0x3f4916(0x1c1)]===-(0x3*0x509d+0x2*-0x39bc+0x1*0xf9)&&(/^no rollout found for thread id\b/i[_0x3f4916(0x235)](_0x3fd185[_0x3f4916(0x229)])||/^thread not loaded:\s*/i[_0x3f4916(0x235)](_0x3fd185[_0x3f4916(0x229)]));}export class CodexAppServerClient{[_0x30d41e(0x1c7)];[_0x30d41e(0x1d7)];[_0x30d41e(0x22a)];[_0x30d41e(0x22e)];[_0x30d41e(0x1fb)]=0x12a0+0x20*-0x12+-0x105f;[_0x30d41e(0x250)]=new Map();[_0x30d41e(0x238)]=new Set();[_0x30d41e(0x1d0)]=new Set();[_0x30d41e(0x1f9)]={};[_0x30d41e(0x24f)];[_0x30d41e(0x1eb)];[_0x30d41e(0x26a)]=-0x2*0xf5+-0x77f*0x2+-0x43a*-0x4;constructor(_0x380fc1={}){const _0x1b47fa=_0x30d41e;this[_0x1b47fa(0x1c7)]=_0x380fc1;}[_0x30d41e(0x26c)](_0x9b1ea4){const _0x3d4fc7=_0x30d41e;if(this[_0x3d4fc7(0x1d7)]!==undefined)throw new Error(_0x3d4fc7(0x1d6));this[_0x3d4fc7(0x1f9)]={..._0x9b1ea4};}[_0x30d41e(0x244)](){const _0x568f29=_0x30d41e;if(this[_0x568f29(0x1d7)]!==undefined)throw new Error(_0x568f29(0x1d6));this[_0x568f29(0x1f9)]={};}[_0x30d41e(0x1e1)](){const _0x25325a=_0x30d41e;if(this[_0x25325a(0x1eb)]!==undefined)return this[_0x25325a(0x1eb)];if(this[_0x25325a(0x24f)]!==undefined)return this[_0x25325a(0x24f)];if(this[_0x25325a(0x1d7)]!==undefined)return Promise[_0x25325a(0x208)]();const _0x5eb820=this[_0x25325a(0x26f)]();this[_0x25325a(0x24f)]=_0x5eb820;const _0x40b97e=()=>{const _0xe31295=_0x25325a;if(this[_0xe31295(0x24f)]===_0x5eb820)this[_0xe31295(0x24f)]=undefined;};return void _0x5eb820[_0x25325a(0x255)](_0x40b97e,_0x40b97e),_0x5eb820;}[_0x30d41e(0x1cd)](){const _0x4dd30a=_0x30d41e;if(this[_0x4dd30a(0x1eb)]!==undefined)return this[_0x4dd30a(0x1eb)];const _0x591a55=this[_0x4dd30a(0x1f7)](this[_0x4dd30a(0x26a)]);this[_0x4dd30a(0x1eb)]=_0x591a55;const _0x518cbf=()=>{const _0x59463e=_0x4dd30a;if(this[_0x59463e(0x1eb)]===_0x591a55)this[_0x59463e(0x1eb)]=undefined;};return void _0x591a55[_0x4dd30a(0x255)](_0x518cbf,_0x518cbf),_0x591a55;}async[_0x30d41e(0x26f)](){const _0x341c95=_0x30d41e,_0x5d8354=this[_0x341c95(0x1c7)][_0x341c95(0x218)]??_0x341c95(0x204),_0x1400e5=this[_0x341c95(0x217)]();this[_0x341c95(0x22e)]=_0x1400e5===_0x341c95(0x243)?this[_0x341c95(0x1c7)][_0x341c95(0x22e)]??privateSocketPath():undefined;const _0x13949f=this[_0x341c95(0x1c7)][_0x341c95(0x259)]??[_0x341c95(0x257)],_0x224f6b=[..._0x13949f,..._0x1400e5===_0x341c95(0x243)?[_0x341c95(0x249),_0x341c95(0x1cb)+this[_0x341c95(0x22e)]]:[]],_0x48b8aa=this[_0x341c95(0x1c7)][_0x341c95(0x20b)]??defaultSpawn;let _0x56fb90=_0x48b8aa(_0x5d8354,_0x224f6b,{...this[_0x341c95(0x1c7)][_0x341c95(0x21d)]===undefined?{}:{'cwd':this[_0x341c95(0x1c7)][_0x341c95(0x21d)]},'env':{...minimalRunnerEnvironment(),...this[_0x341c95(0x1f9)]}});this[_0x341c95(0x1d7)]=_0x56fb90;let _0x418b9d;if(_0x1400e5===_0x341c95(0x243))try{_0x418b9d=await connectUnix(this[_0x341c95(0x22e)],(this[_0x341c95(0x1c7)][_0x341c95(0x22a)]??_0x341c95(0x23a))===_0x341c95(0x23a)?Math[_0x341c95(0x1fd)](this[_0x341c95(0x1c7)][_0x341c95(0x216)]??REQUEST_TIMEOUT_MS,0xba3+-0x2ab+-0x90*0x9):this[_0x341c95(0x1c7)][_0x341c95(0x216)]??REQUEST_TIMEOUT_MS);}catch(_0x367bb5){if((this[_0x341c95(0x1c7)][_0x341c95(0x22a)]??_0x341c95(0x23a))!==_0x341c95(0x23a))throw _0x367bb5;_0x56fb90[_0x341c95(0x245)]();if(this[_0x341c95(0x22e)]!==undefined&&existsSync(this[_0x341c95(0x22e)]))await unlink(this[_0x341c95(0x22e)]);this[_0x341c95(0x22e)]=undefined,_0x56fb90=_0x48b8aa(_0x5d8354,_0x13949f,{...this[_0x341c95(0x1c7)][_0x341c95(0x21d)]===undefined?{}:{'cwd':this[_0x341c95(0x1c7)][_0x341c95(0x21d)]},'env':{...minimalRunnerEnvironment(),...this[_0x341c95(0x1f9)]}}),this[_0x341c95(0x1d7)]=_0x56fb90;}this[_0x341c95(0x22a)]=_0x418b9d??stdioTransport(_0x56fb90);const _0x15d692=createInterface({'input':_0x418b9d??_0x56fb90[_0x341c95(0x22f)]});_0x15d692['on'](_0x341c95(0x23b),_0x6dc7d8=>this[_0x341c95(0x1ce)](_0x6dc7d8));const _0x4bb5dd=_0x56fb90;_0x56fb90[_0x341c95(0x202)](_0x341c95(0x230),_0x20f66e=>{const _0x16dc31=_0x341c95;if(this[_0x16dc31(0x1d7)]!==_0x4bb5dd)return;this[_0x16dc31(0x219)](new Error(_0x16dc31(0x1ca)+_0x20f66e[_0x16dc31(0x1bf)]));}),_0x56fb90[_0x341c95(0x202)](_0x341c95(0x1ef),()=>{const _0x23fe90=_0x341c95;if(this[_0x23fe90(0x1d7)]!==_0x4bb5dd)return;this[_0x23fe90(0x1d7)]=undefined,this[_0x23fe90(0x219)](new Error(_0x23fe90(0x25f)));}),await this[_0x341c95(0x1fc)](_0x341c95(0x1c5),{'clientInfo':{'name':_0x341c95(0x267),'title':_0x341c95(0x1ed),'version':_0x341c95(0x1dd)},'capabilities':{'experimentalApi':!![]}}),this[_0x341c95(0x22d)](_0x341c95(0x1d1),{});}async[_0x30d41e(0x1f7)](_0x3e3d34){const _0x5c1aa9=_0x30d41e;await Promise[_0x5c1aa9(0x208)]();if(this[_0x5c1aa9(0x24f)]!==undefined)await this[_0x5c1aa9(0x24f)];await this[_0x5c1aa9(0x1f1)]();if(this[_0x5c1aa9(0x26a)]!==_0x3e3d34)throw new Error(_0x5c1aa9(0x1e6));this[_0x5c1aa9(0x1e7)](),await this[_0x5c1aa9(0x26f)]();}[_0x30d41e(0x24b)](){const _0x43e470=_0x30d41e;this[_0x43e470(0x26a)]+=0x1*0x1aba+-0x2404+-0xb7*-0xd,this[_0x43e470(0x1e7)]();}[_0x30d41e(0x1e7)](){const _0x524fac=_0x30d41e;this[_0x524fac(0x22a)]?.[_0x524fac(0x26d)](),this[_0x524fac(0x22a)]=undefined,this[_0x524fac(0x1d7)]?.[_0x524fac(0x245)](),this[_0x524fac(0x1d7)]=undefined;if(this[_0x524fac(0x22e)]!==undefined&&existsSync(this[_0x524fac(0x22e)]))void unlink(this[_0x524fac(0x22e)]);this[_0x524fac(0x22e)]=undefined,this[_0x524fac(0x219)](new Error(_0x524fac(0x1e6)));}[_0x30d41e(0x1f0)](_0x3b4254){const _0x191d2d=_0x30d41e;return this[_0x191d2d(0x1d0)][_0x191d2d(0x264)](_0x3b4254),()=>this[_0x191d2d(0x1d0)][_0x191d2d(0x1bd)](_0x3b4254);}async[_0x30d41e(0x209)](_0x3fdcef,_0x9be97b){const _0x440576=_0x30d41e;if(this[_0x440576(0x1eb)]!==undefined)await this[_0x440576(0x1eb)];else{if(this[_0x440576(0x24f)]!==undefined)await this[_0x440576(0x24f)];}return this[_0x440576(0x1fc)](_0x3fdcef,_0x9be97b);}[_0x30d41e(0x1fc)](_0x4579bf,_0x4419dc){const _0x1ad4ce=_0x30d41e,_0x565c14=this[_0x1ad4ce(0x22a)];if(_0x565c14===undefined||!_0x565c14[_0x1ad4ce(0x1c9)])throw new Error(_0x1ad4ce(0x214));const _0x1371d5=this[_0x1ad4ce(0x1fb)]++,_0x26ec72=this[_0x1ad4ce(0x1c7)][_0x1ad4ce(0x216)]??REQUEST_TIMEOUT_MS,_0xde801c=new Promise((_0x32440c,_0x2cd8e4)=>{const _0x3ef0df=_0x1ad4ce,_0x2bcb3d=setTimeout(()=>{const _0x366eb3=_0xcab7;this[_0x366eb3(0x250)][_0x366eb3(0x1bd)](_0x1371d5),this[_0x366eb3(0x210)](),_0x2cd8e4(new Error(_0x366eb3(0x234)));},_0x26ec72);this[_0x3ef0df(0x250)][_0x3ef0df(0x220)](_0x1371d5,{'resolve':_0x32440c,'reject':_0x2cd8e4,'timer':_0x2bcb3d});});return _0x565c14[_0x1ad4ce(0x239)](JSON[_0x1ad4ce(0x205)]({'method':_0x4579bf,'id':_0x1371d5,'params':_0x4419dc})+'\x0a'),_0xde801c;}[_0x30d41e(0x1f1)](){const _0x9c7747=_0x30d41e;if(this[_0x9c7747(0x250)][_0x9c7747(0x248)]===-0x91*-0x9+0x19d9*-0x1+0x14c0)return Promise[_0x9c7747(0x208)]();return new Promise(_0x5bdf9b=>this[_0x9c7747(0x238)][_0x9c7747(0x264)](_0x5bdf9b));}[_0x30d41e(0x210)](){const _0x4426c3=_0x30d41e;if(this[_0x4426c3(0x250)][_0x4426c3(0x248)]!==0x2*0x12a6+-0xce8+0x1*-0x1864)return;for(const _0x3e76e4 of this[_0x4426c3(0x238)])_0x3e76e4();this[_0x4426c3(0x238)][_0x4426c3(0x1fe)]();}[_0x30d41e(0x22d)](_0x226033,_0x43a53d){const _0x3b3368=_0x30d41e,_0x494d6e=this[_0x3b3368(0x22a)];if(_0x494d6e===undefined||!_0x494d6e[_0x3b3368(0x1c9)])throw new Error(_0x3b3368(0x214));_0x494d6e[_0x3b3368(0x239)](JSON[_0x3b3368(0x205)]({'method':_0x226033,'params':_0x43a53d})+'\x0a');}[_0x30d41e(0x20f)](_0x43a7f3,_0x477bfc){const _0x414e43=_0x30d41e,_0x949ddd=this[_0x414e43(0x22a)];if(_0x949ddd===undefined||!_0x949ddd[_0x414e43(0x1c9)])throw new Error(_0x414e43(0x214));_0x949ddd[_0x414e43(0x239)](JSON[_0x414e43(0x205)]({'id':_0x43a7f3,'result':_0x477bfc})+'\x0a');}[_0x30d41e(0x260)](_0x4ecaf7,_0x404998={}){const _0x29722b=_0x30d41e;return this[_0x29722b(0x209)](_0x29722b(0x20c),{'cwd':_0x4ecaf7,...codexThreadConfiguration(_0x4ecaf7,_0x404998)});}[_0x30d41e(0x23d)](){const _0x495fc4=_0x30d41e;return this[_0x495fc4(0x209)](_0x495fc4(0x215),{});}[_0x30d41e(0x1c8)](){const _0x5ae539=_0x30d41e;return this[_0x5ae539(0x209)](_0x5ae539(0x1f8),{});}[_0x30d41e(0x21b)](_0xb3fd2a){const _0x346185=_0x30d41e;return this[_0x346185(0x209)](_0x346185(0x1c2),_0xb3fd2a);}[_0x30d41e(0x203)](_0x4454d7,_0xa45bf7=!![]){const _0x6189d2=_0x30d41e;return this[_0x6189d2(0x209)](_0x6189d2(0x1da),{'threadId':_0x4454d7,'includeTurns':_0xa45bf7});}[_0x30d41e(0x1d3)](_0xc8e722,_0x580d2d,_0x33defe,_0x333353={}){const _0x2b2267=_0x30d41e;return this[_0x2b2267(0x209)](_0x2b2267(0x1f5),{'threadId':_0xc8e722,'lastTurnId':_0x33defe,'cwd':_0x580d2d,...codexThreadConfiguration(_0x580d2d,_0x333353)});}[_0x30d41e(0x224)](_0x5920e1,_0x4911a3){const _0x565db6=_0x30d41e;return this[_0x565db6(0x209)](_0x565db6(0x21a),{'threadId':_0x5920e1,'name':_0x4911a3});}[_0x30d41e(0x268)](_0x89b320,_0x9bce9e,_0x2d1f54={}){const _0x5cb2d2=_0x30d41e;return this[_0x5cb2d2(0x209)](_0x5cb2d2(0x261),{'threadId':_0x89b320,'cwd':_0x9bce9e,...codexThreadConfiguration(_0x9bce9e,_0x2d1f54)});}[_0x30d41e(0x1e9)](_0x3060de,_0x561cfd,_0x5a3e7a,_0x407ee6={},_0x2f93bd=[]){const _0x4699f5=_0x30d41e;return this[_0x4699f5(0x209)](_0x4699f5(0x21e),{'threadId':_0x3060de,'cwd':_0x5a3e7a,'input':[{'type':_0x4699f5(0x231),'text':_0x561cfd},..._0x2f93bd],...codexTurnConfiguration(_0x5a3e7a,_0x407ee6)});}[_0x30d41e(0x21c)](_0x1d862c,_0x48aab4,_0x399f33){const _0x1ff2a1=_0x30d41e;return this[_0x1ff2a1(0x209)](_0x1ff2a1(0x211),{'threadId':_0x1d862c,'expectedTurnId':_0x48aab4,'input':[{'type':_0x1ff2a1(0x231),'text':_0x399f33}]});}[_0x30d41e(0x223)](_0x1676c8,_0x87df14){const _0x762d5f=_0x30d41e;return this[_0x762d5f(0x209)](_0x762d5f(0x269),{'threadId':_0x1676c8,'turnId':_0x87df14});}[_0x30d41e(0x1ce)](_0x588714){const _0x3d3576=_0x30d41e;let _0x262631;try{_0x262631=JSON[_0x3d3576(0x221)](_0x588714);}catch{return;}if((typeof _0x262631['id']===_0x3d3576(0x200)||typeof _0x262631['id']===_0x3d3576(0x206))&&typeof _0x262631[_0x3d3576(0x1e0)]===_0x3d3576(0x206)){for(const _0x268d4a of this[_0x3d3576(0x1d0)]){_0x268d4a({'method':_0x262631[_0x3d3576(0x1e0)],'params':_0x262631[_0x3d3576(0x1cc)],'requestId':_0x262631['id']});}return;}if(typeof _0x262631['id']===_0x3d3576(0x200)){const _0xe209f0=this[_0x3d3576(0x250)][_0x3d3576(0x22b)](_0x262631['id']);if(_0xe209f0===undefined)return;clearTimeout(_0xe209f0[_0x3d3576(0x20d)]),this[_0x3d3576(0x250)][_0x3d3576(0x1bd)](_0x262631['id']),this[_0x3d3576(0x210)]();_0x262631[_0x3d3576(0x230)]!==undefined?_0xe209f0[_0x3d3576(0x201)](new CodexAppServerRpcError(isRecord(_0x262631[_0x3d3576(0x230)])?_0x262631[_0x3d3576(0x230)]:{'message':String(_0x262631[_0x3d3576(0x230)])})):_0xe209f0[_0x3d3576(0x208)](_0x262631[_0x3d3576(0x251)]);return;}if(typeof _0x262631[_0x3d3576(0x1e0)]===_0x3d3576(0x206)){for(const _0x483e2b of this[_0x3d3576(0x1d0)])_0x483e2b({'method':_0x262631[_0x3d3576(0x1e0)],'params':_0x262631[_0x3d3576(0x1cc)]});}}[_0x30d41e(0x219)](_0x4a0192){const _0x1dd618=_0x30d41e;for(const [_0x322324,_0x35cc4e]of this[_0x1dd618(0x250)]){clearTimeout(_0x35cc4e[_0x1dd618(0x20d)]),_0x35cc4e[_0x1dd618(0x201)](_0x4a0192),this[_0x1dd618(0x250)][_0x1dd618(0x1bd)](_0x322324);}this[_0x1dd618(0x210)]();}[_0x30d41e(0x217)](){const _0x292279=_0x30d41e,_0x2621cf=this[_0x292279(0x1c7)][_0x292279(0x22a)]??_0x292279(0x23a);if(_0x2621cf===_0x292279(0x23a))return process[_0x292279(0x1e3)]===_0x292279(0x241)?_0x292279(0x243):_0x292279(0x265);if(_0x2621cf===_0x292279(0x243)&&process[_0x292279(0x1e3)]!==_0x292279(0x241))throw new Error(_0x292279(0x20a));return _0x2621cf;}}function codexThreadConfiguration(_0x2b1264,_0x2d7da3){const _0x36986e=_0x30d41e;return{...modelOption(_0x2d7da3[_0x36986e(0x25b)]),..._0x2d7da3[_0x36986e(0x1fa)]===undefined?{}:{'developerInstructions':_0x2d7da3[_0x36986e(0x1fa)]},..._0x2d7da3[_0x36986e(0x23c)]===undefined?{}:{'config':{'mcp_servers':_0x2d7da3[_0x36986e(0x23c)]}},...codexPermissionConfiguration(_0x2b1264,_0x2d7da3[_0x36986e(0x22c)],_0x36986e(0x1d9))};}function codexTurnConfiguration(_0x38e6e0,_0x5bce16){const _0x4b3f3c=_0x30d41e,_0x335fa9=typeof _0x5bce16[_0x4b3f3c(0x25a)]===_0x4b3f3c(0x206)&&_0x5bce16[_0x4b3f3c(0x25a)][_0x4b3f3c(0x1d2)]()[_0x4b3f3c(0x225)]>-0x1*-0xfe8+-0x146d+0x485?_0x5bce16[_0x4b3f3c(0x25a)]:null;return{...modelOption(_0x5bce16[_0x4b3f3c(0x25b)]),..._0x335fa9===null?{}:{'effort':_0x335fa9},..._0x5bce16[_0x4b3f3c(0x222)]===_0x4b3f3c(0x246)?{'serviceTier':_0x4b3f3c(0x246)}:{},..._0x5bce16[_0x4b3f3c(0x26e)]===undefined?{}:{'collaborationMode':{'mode':_0x5bce16[_0x4b3f3c(0x26e)],'settings':{'model':_0x5bce16[_0x4b3f3c(0x25b)]??_0x4b3f3c(0x226),'reasoningEffort':_0x335fa9}}},...codexPermissionConfiguration(_0x38e6e0,_0x5bce16[_0x4b3f3c(0x22c)],_0x4b3f3c(0x1e2))};}function modelOption(_0x5f341e){return _0x5f341e===undefined||_0x5f341e===null?{}:{'model':_0x5f341e};}function _0xcab7(_0xc18567,_0x1a6b53){_0xc18567=_0xc18567-(-0x2189+0x168+0xb4a*0x3);const _0x5685d2=_0x23ce();let _0x254475=_0x5685d2[_0xc18567];if(_0xcab7['sKItWa']===undefined){var _0x8990ec=function(_0x1bd70c){const _0x4f523e='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1dc675='',_0x3245b5='';for(let _0x2a8a17=-0x5*0x553+-0x9*0x13e+-0x1*-0x25cd,_0x5c29a3,_0x3e83f7,_0x50ccff=-0x1*-0x13cd+-0x35*0x68+0x1*0x1bb;_0x3e83f7=_0x1bd70c['charAt'](_0x50ccff++);~_0x3e83f7&&(_0x5c29a3=_0x2a8a17%(0x1*0x439+-0x1*-0x3e7+-0x81c)?_0x5c29a3*(0x11b5+0x15cd+-0x2742)+_0x3e83f7:_0x3e83f7,_0x2a8a17++%(-0x4b*-0x6+-0x21a*0x3+-0x1*-0x490))?_0x1dc675+=String['fromCharCode'](-0x130*0x8+-0x4c9*0x1+0x1*0xf48&_0x5c29a3>>(-(-0x2002+-0xb1*-0xe+-0x772*-0x3)*_0x2a8a17&0x20ba+-0x11*-0x243+0x1*-0x4727)):0x1f*-0x2e+0x878+-0x1*0x2e6){_0x3e83f7=_0x4f523e['indexOf'](_0x3e83f7);}for(let _0x2b62dc=-0xe19+-0x2*0xbb9+0x258b,_0x4afe1d=_0x1dc675['length'];_0x2b62dc<_0x4afe1d;_0x2b62dc++){_0x3245b5+='%'+('00'+_0x1dc675['charCodeAt'](_0x2b62dc)['toString'](-0x481*0x7+0x644+0x1953*0x1))['slice'](-(-0x15*0x41+0xbca+-0x673));}return decodeURIComponent(_0x3245b5);};_0xcab7['DtnoRM']=_0x8990ec,_0xcab7['Oebvka']={},_0xcab7['sKItWa']=!![];}const _0x25a21f=_0x5685d2[-0x1*-0x1582+0x812*-0x1+-0xd70];_0xcab7['IvwuLf']!==_0x25a21f&&(_0xcab7['Oebvka']={},_0xcab7['IvwuLf']=_0x25a21f);const _0x4a3122=_0xcab7['Oebvka'][_0xc18567];return _0x4a3122===undefined?(_0x254475=_0xcab7['DtnoRM'](_0x254475),_0xcab7['Oebvka'][_0xc18567]=_0x254475):_0x254475=_0x4a3122,_0x254475;}function codexPermissionConfiguration(_0x32ea8b,_0x265474,_0x8dc1b){const _0x1b8d56=_0x30d41e,_0x3605c6=_0x265474===_0x1b8d56(0x237)?_0x1b8d56(0x237):_0x265474===_0x1b8d56(0x1db)||_0x265474===_0x1b8d56(0x1e4)?_0x1b8d56(0x1db):_0x265474===_0x1b8d56(0x1d4)?_0x1b8d56(0x1ee):undefined,_0x22934f=_0x265474===_0x1b8d56(0x1db)||_0x265474===_0x1b8d56(0x1d4)?_0x1b8d56(0x227):_0x1b8d56(0x1e4);if(_0x8dc1b===_0x1b8d56(0x1d9))return{..._0x3605c6===undefined?{}:{'sandbox':_0x3605c6},'approvalPolicy':_0x22934f};return{..._0x3605c6===undefined?{}:{'sandboxPolicy':_0x3605c6===_0x1b8d56(0x237)?{'type':_0x1b8d56(0x1c0)}:_0x3605c6===_0x1b8d56(0x1ee)?{'type':_0x1b8d56(0x213)}:{'type':_0x1b8d56(0x21f),'writableRoots':[_0x32ea8b],'networkAccess':!![]}},'approvalPolicy':_0x22934f};}export function probeCodex(_0x4e3aa8=_0x30d41e(0x204)){const _0x3fb27e=_0x30d41e,_0x5a7ffc=platformCliInvocation(_0x4e3aa8,[_0x3fb27e(0x25d)]),_0x4f3fcb=spawnSync(_0x5a7ffc[_0x3fb27e(0x218)],_0x5a7ffc[_0x3fb27e(0x259)],{'windowsHide':!![],'env':minimalRunnerEnvironment(),'timeout':0xbb8,'encoding':_0x3fb27e(0x256)});if(_0x4f3fcb[_0x3fb27e(0x253)]!==-0x1957+0xfde+0x979||_0x4f3fcb[_0x3fb27e(0x230)]!==undefined)return{'available':![],'compatible':![]};const _0x1242ec=(''+_0x4f3fcb[_0x3fb27e(0x22f)]+_0x4f3fcb[_0x3fb27e(0x24d)])[_0x3fb27e(0x1d2)]()[_0x3fb27e(0x1e5)](0x644+0x1ca5+0x22e9*-0x1,-0x15*0x41+0xbca+-0x5f5);return{'available':!![],..._0x1242ec[_0x3fb27e(0x225)]===-0x1*-0x1582+0x812*-0x1+-0xd70?{}:{'version':_0x1242ec},'compatible':!![]};}export async function probeCodexAsync(_0x5f40af=_0x30d41e(0x204)){const _0x57cb95=_0x30d41e,_0x3738ae=platformCliInvocation(_0x5f40af,[_0x57cb95(0x25d)]),_0x51d3a8=await runRunnerProbe(_0x3738ae[_0x57cb95(0x218)],_0x3738ae[_0x57cb95(0x259)],{'env':minimalRunnerEnvironment(),'timeoutMs':0xbb8});if(_0x51d3a8[_0x57cb95(0x253)]!==-0x1*0x1d2a+-0x116d+0x2e97)return{'available':![],'compatible':![]};const _0x16d4a0=(''+_0x51d3a8[_0x57cb95(0x22f)]+_0x51d3a8[_0x57cb95(0x24d)])[_0x57cb95(0x1d2)]()[_0x57cb95(0x1e5)](-0x33*-0x6d+-0x1*0x1043+0x2*-0x2ba,0x56d*0x5+-0x1*0x386+-0x171b);return{'available':!![],..._0x16d4a0[_0x57cb95(0x225)]===-0xfd8+0x283*-0x9+0x2673?{}:{'version':_0x16d4a0},'compatible':!![]};}export function isSupportedCodexVersion(_0x31217d){const _0x22a406=_0x30d41e;return _0x31217d[_0x22a406(0x1d2)]()[_0x22a406(0x225)]>0x257d+0x6*-0x5e0+-0x23d;}function defaultSpawn(_0xee6578,_0x26ca3a,_0x5a4d3e){const _0x18eff8=_0x30d41e,_0x27e68d=platformCliInvocation(_0xee6578,_0x26ca3a);return spawn(_0x27e68d[_0x18eff8(0x218)],_0x27e68d[_0x18eff8(0x259)],{'stdio':[_0x18eff8(0x1e8),_0x18eff8(0x1e8),_0x18eff8(0x1e8)],'shell':![],'windowsHide':!![],..._0x5a4d3e[_0x18eff8(0x21d)]===undefined?{}:{'cwd':_0x5a4d3e[_0x18eff8(0x21d)]},..._0x5a4d3e[_0x18eff8(0x207)]===undefined?{}:{'env':_0x5a4d3e[_0x18eff8(0x207)]}});}function isRecord(_0x54e3f0){const _0x1ed1bf=_0x30d41e;return typeof _0x54e3f0===_0x1ed1bf(0x242)&&_0x54e3f0!==null&&!Array[_0x1ed1bf(0x1ea)](_0x54e3f0);}function stdioTransport(_0x19534b){const _0x488cd9=_0x30d41e;return{get 'writable'(){const _0x464846=_0xcab7;return _0x19534b[_0x464846(0x1dc)][_0x464846(0x1c9)];},'write':_0x390860=>_0x19534b[_0x488cd9(0x1dc)][_0x488cd9(0x239)](_0x390860),'on':(_0x2ab062,_0x2e4056)=>_0x19534b[_0x488cd9(0x22f)]['on'](_0x2ab062,_0x2e4056),'once':(_0x39fdea,_0x280391)=>_0x19534b[_0x488cd9(0x22f)][_0x488cd9(0x202)](_0x39fdea,_0x280391),'destroy':()=>_0x19534b[_0x488cd9(0x22f)][_0x488cd9(0x26d)]()};}function privateSocketPath(){const _0xffc1f7=_0x30d41e;return join(tmpdir(),_0xffc1f7(0x24c)+process[_0xffc1f7(0x236)]+'-'+randomUUID()+_0xffc1f7(0x24e));}function connectUnix(_0x4dd953,_0x1ab0c1){return new Promise((_0x3fe3e8,_0x2f038d)=>{const _0x1a5b1d=_0xcab7,_0x5ac514=Date[_0x1a5b1d(0x23e)]()+_0x1ab0c1,_0x2e23f4=()=>{const _0x28e0f6=_0x1a5b1d,_0x41b263=connect(_0x4dd953),_0x21a7c2=_0x3a1317=>{const _0x522c17=_0xcab7;_0x41b263[_0x522c17(0x26d)]();if(Date[_0x522c17(0x23e)]()>=_0x5ac514){_0x2f038d(new Error(_0x522c17(0x1c6)+_0x3a1317[_0x522c17(0x1bf)]));return;}setTimeout(_0x2e23f4,-0x2c*0x86+-0x1b7d*-0x1+0x12*-0x3e);};_0x41b263[_0x28e0f6(0x202)](_0x28e0f6(0x263),()=>_0x3fe3e8(_0x41b263)),_0x41b263[_0x28e0f6(0x202)](_0x28e0f6(0x230),_0x21a7c2);};_0x2e23f4();});}
2
+ const _0x292b40=_0x66a0;(function(_0x32d508,_0x32de1b){const _0x4ef995=_0x66a0,_0x2bad45=_0x32d508();while(!![]){try{const _0x19f5a2=parseInt(_0x4ef995(0x120))/(-0x93e*0x1+0xa09+-0xca)*(parseInt(_0x4ef995(0x100))/(0x7*-0x2bb+0xb*0x386+-0xb*0x1c9))+parseInt(_0x4ef995(0x147))/(0x1*-0x214f+-0x2*0xe4b+0x3de8)+parseInt(_0x4ef995(0x18a))/(-0x2586+-0x9*0x100+0x2e8a)*(parseInt(_0x4ef995(0x13b))/(0x40*0x98+-0x98*0x26+-0xf6b))+-parseInt(_0x4ef995(0x183))/(0x259*0x1+0x1466+-0x793*0x3)*(parseInt(_0x4ef995(0xdf))/(0x65*0x6+-0x250f*0x1+0x8ae*0x4))+-parseInt(_0x4ef995(0x135))/(-0x7*0x1b5+-0x1365+-0x1f6*-0x10)+parseInt(_0x4ef995(0xeb))/(0x3*0x3bd+0x1236+0x1d64*-0x1)*(parseInt(_0x4ef995(0x16c))/(0x14e*-0x1+-0x23aa+0x6*0x62b))+-parseInt(_0x4ef995(0x103))/(-0x1c*-0xda+-0x17d2+-0x1*-0x5);if(_0x19f5a2===_0x32de1b)break;else _0x2bad45['push'](_0x2bad45['shift']());}catch(_0x5bb4fd){_0x2bad45['push'](_0x2bad45['shift']());}}}(_0xcaa8,0x5cb4f*0x1+-0x501ad*0x1+0xc669*0x7));import{spawn,spawnSync}from'node:child_process';import{randomUUID}from'node:crypto';function _0x66a0(_0xb40192,_0x51b101){_0xb40192=_0xb40192-(-0x1ba1+-0xce8+0x2962);const _0x52336d=_0xcaa8();let _0x255f57=_0x52336d[_0xb40192];if(_0x66a0['mTQUgz']===undefined){var _0x555a0c=function(_0x38a866){const _0xc4dcab='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3fbd81='',_0x28bff8='';for(let _0x412810=-0x9dd+-0x5*-0x4f6+-0x2fd*0x5,_0x3943f0,_0xd43030,_0x2729f6=0xea*-0x15+0x3*-0x122+-0x18*-0xf1;_0xd43030=_0x38a866['charAt'](_0x2729f6++);~_0xd43030&&(_0x3943f0=_0x412810%(-0x1*-0x53+0x13ed*-0x1+0x139e)?_0x3943f0*(0x1*-0x326+0x196b+0x757*-0x3)+_0xd43030:_0xd43030,_0x412810++%(-0x561+-0x9*-0x455+-0x6b8*0x5))?_0x3fbd81+=String['fromCharCode'](0x2*0x1bb+-0x185b+0x2*0xaf2&_0x3943f0>>(-(0x15b2*-0x1+0x222a+0xb*-0x122)*_0x412810&0x1626+-0xec8+-0x758)):0x152f+0x1*-0x2413+0xee4){_0xd43030=_0xc4dcab['indexOf'](_0xd43030);}for(let _0x2fc403=-0x18ce+0x1*0x1c0c+-0x33e,_0xbf5d01=_0x3fbd81['length'];_0x2fc403<_0xbf5d01;_0x2fc403++){_0x28bff8+='%'+('00'+_0x3fbd81['charCodeAt'](_0x2fc403)['toString'](0x16e5+0xf40+-0x2615*0x1))['slice'](-(0x13e7+-0x1ace+0x6e9));}return decodeURIComponent(_0x28bff8);};_0x66a0['eFQWZQ']=_0x555a0c,_0x66a0['SRDplG']={},_0x66a0['mTQUgz']=!![];}const _0x5d825f=_0x52336d[-0x909+-0x19e6+0x22ef];_0x66a0['IrBVgm']!==_0x5d825f&&(_0x66a0['SRDplG']={},_0x66a0['IrBVgm']=_0x5d825f);const _0x5b9d68=_0x66a0['SRDplG'][_0xb40192];return _0x5b9d68===undefined?(_0x255f57=_0x66a0['eFQWZQ'](_0x255f57),_0x66a0['SRDplG'][_0xb40192]=_0x255f57):_0x255f57=_0x5b9d68,_0x255f57;}import{existsSync}from'node:fs';import{unlink}from'node:fs/promises';import{connect}from'node:net';function _0xcaa8(){const _0x31e319=['uKvtvu1bqKXf','BM90Awz5','y29SBgfIB3jHDgLVBK1Vzgu','mJy0nty0zMLUy3Lx','Dw5PEa','DgvZDa','BgvUz3rO','D3jPDgfIBgu','DhvYBI9ZDgfYDa','BgLMzwn5y2XLuMv2AxnPB24','CMvXDwvZDerPCMvJDa','y2HPBgq','CMvHze9UBhK','C3bHD25qCM9JzxnZ','CgXHDgzVCM0','BMv4DeLK','y3DK','BMf0AxzLvgHYzwfKswq','DgHYzwfKl2zVCMS','CMvXDwvZDa','BgLUzq','zw52','DhjHBNnWB3j0tw9Kzq','C3rHCNruDxjU','otKZmtb1uMreu3e','DhvYBI9PBNrLCNj1Chq','CMvQzwn0','mZeYndyWnuDRqxDdua','D2fPDezVCLbLBMrPBMDszxf1zxn0CW','CMvZB2X2zvbLBMrPBMDeCMfPBG','D29YA3nWywnLv3jPDgu','C3rHCNrnyw5Hz2vK','zgfUz2vYrNvSBefJy2vZCW','B25Jzq','q09ervHFvu5jwf9tt0nlrvrFq09otKvdvf9gquLmruq6','y29KzxG','CgLK','C3rKAw8','zgvSzxrL','C2L6zq','q09ervHFqvbqx1nfuLzfuL9fweLuruq','C3rLzxjuDxjU','q09ervHFqvbqx1nfuLzfuL9btfjfqurzx1nuqvjuruq','q29KzxGGqxbWifnLCNzLCIbYzxf1zxn0igzHAwXLza','Dw5PEdOVlW','q09ervHFvu5jwf9tt0nlrvrFueXbvezpuK1Fvu5tvvbqt1juruq','DhvYBI5PBNrLCNj1Chq','zMfPBefSBa','DxrMoa','BwnWu2vYDMvYCW','CMvHzc1VBMX5','DhvYBI9ZDgvLCG','CMvZDw1LvgHYzwfK','y29SBgfIB3jHDgLVBK1VzguVBgLZDa','AgfUzgXLtgLUzq','Aw5PDgLHBgL6zwq','mtnoyNzdBfq','C3rKB3v0','Dgv4Da','B24TCMvXDwvZDa','ls1SAxn0zw4','C3rKAw4','DgHYzwfKl3jLC3vTzq','AgLZDg9YEs5YzwfK','B3b0Aw9UCW','zxHPDa','BMfTzq','BM93','q09ervHFqvbqx1nfuLzfuL9tvefsvf9gquLmruq6','zMfZDa','yxv0BW','u0HbuKvex0nptLrst0W','y29UzMLNDxjLrw52AxjVBM1LBNq','zxzLBNrZlMXPDMu','A2LSBa','BMv2zxi','CgvUzgLUz0rYywLUv2fPDgvYCW','mJaXmda4mgPcuuPKDq','C3rHCNq','CgLWzq','Aw50zxjYDxb0vhvYBG','D3jPDgu','BxLHz2vUDhjVyw0Ty29KzxGT','mJbcDeDTBva','B25oB3rPzMLJyxrPB24','C3rKzxjY','CMvZDwX0','C3rYAw5NAwz5','DhvYBI5ZDgvLCG','BgLZDfrOCMvHzhm','CMvZDgfYDgLUzW','zgv2zwXVCgvYsw5ZDhj1y3rPB25Z','q29KzxHbChbtzxj2zxjsCgnfCNjVCG','DgHYzwfKl2XPC3q','lNnVy2S','nZqYmtaXAwPMEwfi','ywn0AxzLvhvYBG','DgHYzwfKl3n0yxj0','C29JA2v0ugf0Aa','CgfYyw1Z','DhjHBNnWB3j0','ls12zxjZAw9U','t0jtrvjwrv9ptKXz','CNbJtwvZC2fNzq','yxjNCW','Bw9KzwWVBgLZDa','zw52AxjVBM1LBNq','Bwv0Ag9K','BwvZC2fNzq','q09ervHFqvbqx1nfuLzfuL9usu1ft1vu','Aw5PDgLHBgL6zq','DgLTzw91De1Z','zNvSBc1Hy2nLC3m','zxjYB3i','y2XLyxjfBNzPCM9UBwvUDa','zgfUz2vYlwz1BgWTywnJzxnZ','DgHYzwfKl25HBwuVC2v0','CMvZDgfYDa','Bw9KzwW','BgLZDe1VzgvSCW','y29KzxHFDNnJB2rL','rvHurvjoquW','ywrK','C2v0','mc4XlJq','DgHLBG','CgfYC2u','C3rHCNrPBMC','C2vYDMLJzvrPzxi','zM9YA1rOCMvHza','CMvZDgfYDe1HBMfNzwq','y29Kzq','mtGWCK1Ov2Pf','C3rVCe1HBMfNzwq','q09ervHFqvbqx1nfuLzfuL9vtKfwquLmqujmrq','zgf0yq','vu5bvKfjtefcteu','BgLUDxG','ywnJzxnZ','DhvYBG','BM90AwzPy2f0Aw9UCW','DhjPBq','z3b0ltuUnI1ZB2W','zwzMB3j0','y29UBMvJDa','BwLU','DhvYBI5ZDgfYDa','CMvZB2X2zq','DgLTzxi','yxbWlxnLCNzLCG','D29YA3nWywnLlxDYAxrL','C3rHDhvZ','C3rYAw5N','zgvZDhjVEq','txLbz2vUDfjVyw0','mtjuDw9Qtui','BMf0AxzLq29UDhjVBa','BgLZDenVBgXHyM9YyxrPB25nB2rLCW','CMvZCg9Uza','C2v0vgHYzwfKtMfTzq','C3rVCa','C2HHCMvKq29UDhjVBa','mJiXnZa0BMLMC01v','q09ervHFqvbqx1nfuLzfuL9suenFrvjst1i6','q09ervHFqvbqx1nfuLzfuL9tve9queve','y29TBwfUza','C3rHCNruAhjLywq','AxnbCNjHEq','tufoquDfra','mJq1ndmWnw1LEhrvCW','B2jQzwn0','z2v0','BNvTyMvY','DgHYzwfK','y2XLyxi','CgvUzgLUzW','yxzHAwXHyMXL','C2XPy2u'];_0xcaa8=function(){return _0x31e319;};return _0xcaa8();}import{tmpdir}from'node:os';import{join}from'node:path';import{createInterface}from'node:readline';import{minimalRunnerEnvironment,platformCliInvocation,runRunnerProbe}from'./operational.js';const REQUEST_TIMEOUT_MS=0x1894+-0x64fc+0x2d0*0x30;export function codexSessionControl(_0x2f7828){const _0x18dae7=_0x66a0;if(!_0x2f7828[_0x18dae7(0xe6)])return{'level':_0x18dae7(0x170),'capabilities':[]};if(_0x2f7828[_0x18dae7(0x189)])return{'level':_0x18dae7(0x12f),'capabilities':[_0x18dae7(0x127),_0x18dae7(0x131),_0x18dae7(0x17a),_0x18dae7(0x140),_0x18dae7(0x116)]};if(_0x2f7828[_0x18dae7(0xf9)]!==null&&_0x2f7828[_0x18dae7(0x184)]===_0x18dae7(0x161))return{'level':_0x18dae7(0x14e),'capabilities':[_0x18dae7(0x127)]};if(_0x2f7828[_0x18dae7(0x148)])return{'level':_0x18dae7(0xde),'capabilities':[_0x18dae7(0x127),_0x18dae7(0x131),_0x18dae7(0x140),_0x18dae7(0x116)]};return{'level':_0x18dae7(0xe8),'capabilities':[_0x18dae7(0x127),_0x18dae7(0x17a)]};}export class CodexAppServerRpcError extends Error{[_0x292b40(0x16b)];[_0x292b40(0x14f)];[_0x292b40(0x16f)];constructor(_0x25dd62){const _0x5ec982=_0x292b40,_0x305cfb=typeof _0x25dd62[_0x5ec982(0x154)]===_0x5ec982(0x180)?_0x25dd62[_0x5ec982(0x154)]:_0x5ec982(0x113);super(_0x5ec982(0xd9)+JSON[_0x5ec982(0x13f)](_0x25dd62)),this[_0x5ec982(0x12a)]=_0x5ec982(0x144),this[_0x5ec982(0x16b)]=_0x25dd62[_0x5ec982(0x16b)],this[_0x5ec982(0x14f)]=_0x305cfb,this[_0x5ec982(0x16f)]=_0x25dd62[_0x5ec982(0x16f)];}}export function isCodexRolloutMissingError(_0x1bd3be){const _0x2464cc=_0x292b40;return _0x1bd3be instanceof CodexAppServerRpcError&&_0x1bd3be[_0x2464cc(0x16b)]===-(-0x13*-0xa49+-0x87*-0x53+-0x8*0xdfb)&&(/^no rollout found for thread id\b/i[_0x2464cc(0xed)](_0x1bd3be[_0x2464cc(0x14f)])||/^thread not loaded:\s*/i[_0x2464cc(0xed)](_0x1bd3be[_0x2464cc(0x14f)]));}export class CodexAppServerClient{[_0x292b40(0x128)];[_0x292b40(0xf3)];[_0x292b40(0x14c)];[_0x292b40(0x14a)];[_0x292b40(0xf7)]=0x10e+0x16cc+0x21*-0xb9;[_0x292b40(0xe5)]=new Map();[_0x292b40(0x134)]=new Set();[_0x292b40(0x174)]=new Set();[_0x292b40(0x152)]={};[_0x292b40(0x167)];[_0x292b40(0x142)];[_0x292b40(0xf1)]=0x31d*0x1+-0x16d5+-0x13b8*-0x1;constructor(_0x381369={}){const _0x5645ed=_0x292b40;this[_0x5645ed(0x128)]=_0x381369;}[_0x292b40(0x130)](_0x4ce9e4){const _0x3d3074=_0x292b40;if(this[_0x3d3074(0xf3)]!==undefined)throw new Error(_0x3d3074(0x112));this[_0x3d3074(0x152)]={..._0x4ce9e4};}[_0x292b40(0x15a)](){const _0x6a8ed0=_0x292b40;if(this[_0x6a8ed0(0xf3)]!==undefined)throw new Error(_0x6a8ed0(0x112));this[_0x6a8ed0(0x152)]={};}[_0x292b40(0x136)](){const _0x3ff32e=_0x292b40;if(this[_0x3ff32e(0x142)]!==undefined)return this[_0x3ff32e(0x142)];if(this[_0x3ff32e(0x167)]!==undefined)return this[_0x3ff32e(0x167)];if(this[_0x3ff32e(0xf3)]!==undefined)return Promise[_0x3ff32e(0x17b)]();const _0x108840=this[_0x3ff32e(0x107)]();this[_0x3ff32e(0x167)]=_0x108840;const _0x20b572=()=>{const _0x5859ef=_0x3ff32e;if(this[_0x5859ef(0x167)]===_0x108840)this[_0x5859ef(0x167)]=undefined;};return void _0x108840[_0x3ff32e(0x165)](_0x20b572,_0x20b572),_0x108840;}[_0x292b40(0x15d)](){const _0x5e8162=_0x292b40;if(this[_0x5e8162(0x142)]!==undefined)return this[_0x5e8162(0x142)];const _0x45dc3e=this[_0x5e8162(0x16a)](this[_0x5e8162(0xf1)]);this[_0x5e8162(0x142)]=_0x45dc3e;const _0x41697c=()=>{const _0x5b071d=_0x5e8162;if(this[_0x5b071d(0x142)]===_0x45dc3e)this[_0x5b071d(0x142)]=undefined;};return void _0x45dc3e[_0x5e8162(0x165)](_0x41697c,_0x41697c),_0x45dc3e;}async[_0x292b40(0x107)](){const _0x1db718=_0x292b40,_0x46a11b=this[_0x1db718(0x128)][_0x1db718(0xdb)]??_0x1db718(0x10b),_0x2d48bb=this[_0x1db718(0xfe)]();this[_0x1db718(0x14a)]=_0x2d48bb===_0x1db718(0xec)?this[_0x1db718(0x128)][_0x1db718(0x14a)]??privateSocketPath():undefined;const _0x100ec8=this[_0x1db718(0x128)][_0x1db718(0x150)]??[_0x1db718(0x17d)],_0x333dc6=[..._0x100ec8,..._0x2d48bb===_0x1db718(0xec)?[_0x1db718(0x124),_0x1db718(0x114)+this[_0x1db718(0x14a)]]:[]],_0x469a0e=this[_0x1db718(0x128)][_0x1db718(0xf5)]??defaultSpawn;let _0x2d79e2=_0x469a0e(_0x46a11b,_0x333dc6,{...this[_0x1db718(0x128)][_0x1db718(0xf8)]===undefined?{}:{'cwd':this[_0x1db718(0x128)][_0x1db718(0xf8)]},'env':{...minimalRunnerEnvironment(),...this[_0x1db718(0x152)]}});this[_0x1db718(0xf3)]=_0x2d79e2;let _0x11a0da;if(_0x2d48bb===_0x1db718(0xec))try{_0x11a0da=await connectUnix(this[_0x1db718(0x14a)],(this[_0x1db718(0x128)][_0x1db718(0x14c)]??_0x1db718(0x12e))===_0x1db718(0x12e)?Math[_0x1db718(0x179)](this[_0x1db718(0x128)][_0x1db718(0x157)]??REQUEST_TIMEOUT_MS,-0xa88*-0x3+-0x99*0x1f+0x23*-0x43):this[_0x1db718(0x128)][_0x1db718(0x157)]??REQUEST_TIMEOUT_MS);}catch(_0x12c0f3){if((this[_0x1db718(0x128)][_0x1db718(0x14c)]??_0x1db718(0x12e))!==_0x1db718(0x12e))throw _0x12c0f3;_0x2d79e2[_0x1db718(0x132)]();if(this[_0x1db718(0x14a)]!==undefined&&existsSync(this[_0x1db718(0x14a)]))await unlink(this[_0x1db718(0x14a)]);this[_0x1db718(0x14a)]=undefined,_0x2d79e2=_0x469a0e(_0x46a11b,_0x100ec8,{...this[_0x1db718(0x128)][_0x1db718(0xf8)]===undefined?{}:{'cwd':this[_0x1db718(0x128)][_0x1db718(0xf8)]},'env':{...minimalRunnerEnvironment(),...this[_0x1db718(0x152)]}}),this[_0x1db718(0xf3)]=_0x2d79e2;}this[_0x1db718(0x14c)]=_0x11a0da??stdioTransport(_0x2d79e2);const _0x1af381=createInterface({'input':_0x11a0da??_0x2d79e2[_0x1db718(0x121)]});_0x1af381['on'](_0x1db718(0xfc),_0x105e1a=>this[_0x1db718(0x11e)](_0x105e1a));const _0x2bdc56=_0x2d79e2;_0x2d79e2[_0x1db718(0x109)](_0x1db718(0x159),_0x449a6b=>{const _0x3113b0=_0x1db718;if(this[_0x3113b0(0xf3)]!==_0x2bdc56)return;this[_0x3113b0(0x117)](new Error(_0x3113b0(0x12c)+_0x449a6b[_0x3113b0(0x154)]));}),_0x2d79e2[_0x1db718(0x109)](_0x1db718(0x129),()=>{const _0x53ea08=_0x1db718;if(this[_0x53ea08(0xf3)]!==_0x2bdc56)return;this[_0x53ea08(0xf3)]=undefined,this[_0x53ea08(0x117)](new Error(_0x53ea08(0x110)));}),await this[_0x1db718(0xf2)](_0x1db718(0x156),{'clientInfo':{'name':_0x1db718(0x160),'title':_0x1db718(0x182),'version':_0x1db718(0x164)},'capabilities':{'experimentalApi':!![]}}),this[_0x1db718(0xe9)](_0x1db718(0x11f),{});}async[_0x292b40(0x16a)](_0x1b1517){const _0xc4dffe=_0x292b40;await Promise[_0xc4dffe(0x17b)]();if(this[_0xc4dffe(0x167)]!==undefined)await this[_0xc4dffe(0x167)];await this[_0xc4dffe(0x104)]();if(this[_0xc4dffe(0xf1)]!==_0x1b1517)throw new Error(_0xc4dffe(0xda));this[_0xc4dffe(0x16d)](),await this[_0xc4dffe(0x107)]();}[_0x292b40(0x188)](){const _0x23c2c6=_0x292b40;this[_0x23c2c6(0xf1)]+=-0x3d*0x10+0x1*0x18bb+-0x14ea*0x1,this[_0x23c2c6(0x16d)]();}[_0x292b40(0x16d)](){const _0x408117=_0x292b40;this[_0x408117(0x14c)]?.[_0x408117(0x181)](),this[_0x408117(0x14c)]=undefined,this[_0x408117(0xf3)]?.[_0x408117(0x132)](),this[_0x408117(0xf3)]=undefined;if(this[_0x408117(0x14a)]!==undefined&&existsSync(this[_0x408117(0x14a)]))void unlink(this[_0x408117(0x14a)]);this[_0x408117(0x14a)]=undefined,this[_0x408117(0x117)](new Error(_0x408117(0xda)));}[_0x292b40(0x13c)](_0x5da9c5){const _0x4b9444=_0x292b40;return this[_0x4b9444(0x174)][_0x4b9444(0x162)](_0x5da9c5),()=>this[_0x4b9444(0x174)][_0x4b9444(0x10e)](_0x5da9c5);}async[_0x292b40(0xfb)](_0x455941,_0x50aa44){const _0x59015f=_0x292b40;if(this[_0x59015f(0x142)]!==undefined)await this[_0x59015f(0x142)];else{if(this[_0x59015f(0x167)]!==undefined)await this[_0x59015f(0x167)];}return this[_0x59015f(0xf2)](_0x455941,_0x50aa44);}[_0x292b40(0xf2)](_0x40b8e7,_0xd2bd63){const _0xbdfee3=_0x292b40,_0xe23af9=this[_0xbdfee3(0x14c)];if(_0xe23af9===undefined||!_0xe23af9[_0xbdfee3(0xef)])throw new Error(_0xbdfee3(0x16e));const _0x13fc41=this[_0xbdfee3(0xf7)]++,_0x52c328=this[_0xbdfee3(0x128)][_0xbdfee3(0x157)]??REQUEST_TIMEOUT_MS,_0x4935d3=new Promise((_0x1f873d,_0x13fd9e)=>{const _0x4dbfd0=_0xbdfee3,_0x320218=setTimeout(()=>{const _0x4b22b0=_0x66a0;this[_0x4b22b0(0xe5)][_0x4b22b0(0x10e)](_0x13fc41),this[_0x4b22b0(0x105)](),_0x13fd9e(new Error(_0x4b22b0(0x155)));},_0x52c328);this[_0x4dbfd0(0xe5)][_0x4dbfd0(0x163)](_0x13fc41,{'resolve':_0x1f873d,'reject':_0x13fd9e,'timer':_0x320218});});return _0xe23af9[_0xbdfee3(0x139)](JSON[_0xbdfee3(0x13f)]({'method':_0x40b8e7,'id':_0x13fc41,'params':_0xd2bd63})+'\x0a'),_0x4935d3;}[_0x292b40(0x104)](){const _0x2b061b=_0x292b40;if(this[_0x2b061b(0xe5)][_0x2b061b(0x10f)]===-0xa*-0x30a+0xa86+-0x28ea)return Promise[_0x2b061b(0x17b)]();return new Promise(_0x2b883e=>this[_0x2b061b(0x134)][_0x2b061b(0x162)](_0x2b883e));}[_0x292b40(0x105)](){const _0x2a9358=_0x292b40;if(this[_0x2a9358(0xe5)][_0x2a9358(0x10f)]!==-0x994+0x152f+0x1*-0xb9b)return;for(const _0x16112f of this[_0x2a9358(0x134)])_0x16112f();this[_0x2a9358(0x134)][_0x2a9358(0xe4)]();}[_0x292b40(0xe9)](_0x5080ea,_0x8cfda4){const _0x2e60ce=_0x292b40,_0x212736=this[_0x2e60ce(0x14c)];if(_0x212736===undefined||!_0x212736[_0x2e60ce(0xef)])throw new Error(_0x2e60ce(0x16e));_0x212736[_0x2e60ce(0x139)](JSON[_0x2e60ce(0x13f)]({'method':_0x5080ea,'params':_0x8cfda4})+'\x0a');}[_0x292b40(0x186)](_0x127223,_0x487b57){const _0x2919f2=_0x292b40,_0x22fd25=this[_0x2919f2(0x14c)];if(_0x22fd25===undefined||!_0x22fd25[_0x2919f2(0xef)])throw new Error(_0x2919f2(0x16e));_0x22fd25[_0x2919f2(0x139)](JSON[_0x2919f2(0x13f)]({'id':_0x127223,'result':_0x487b57})+'\x0a');}[_0x292b40(0xdc)](_0x2c430c,_0x31ddde={}){const _0x5a4a13=_0x292b40;return this[_0x5a4a13(0xfb)](_0x5a4a13(0x149),{'cwd':_0x2c430c,...codexThreadConfiguration(_0x2c430c,_0x31ddde)});}[_0x292b40(0x141)](){const _0x320c6c=_0x292b40;return this[_0x320c6c(0xfb)](_0x320c6c(0x145),{});}[_0x292b40(0x185)](){const _0x5722ca=_0x292b40;return this[_0x5722ca(0xfb)](_0x5722ca(0x11d),{});}[_0x292b40(0x15f)](_0x3269ec){const _0x58b03a=_0x292b40;return this[_0x58b03a(0xfb)](_0x58b03a(0x151),_0x3269ec);}[_0x292b40(0x169)](_0x284c28,_0x1d4ea0,_0x5d7c9a,_0x38dc8f={}){const _0x3da6a3=_0x292b40;return this[_0x3da6a3(0xfb)](_0x3da6a3(0xfa),{'threadId':_0x284c28,'lastTurnId':_0x5d7c9a,'cwd':_0x1d4ea0,...codexThreadConfiguration(_0x1d4ea0,_0x38dc8f)});}[_0x292b40(0x187)](_0x15e21a,_0x24f456){const _0x251293=_0x292b40;return this[_0x251293(0xfb)](_0x251293(0x15c),{'threadId':_0x15e21a,'name':_0x24f456});}[_0x292b40(0x11c)](_0x26d597,_0x189f9b,_0x55520d={}){const _0x1d1f72=_0x292b40;return this[_0x1d1f72(0xfb)](_0x1d1f72(0x126),{'threadId':_0x26d597,'cwd':_0x189f9b,...codexThreadConfiguration(_0x189f9b,_0x55520d)});}[_0x292b40(0xff)](_0x363e24,_0x577563,_0x5d9651,_0x1aa842={},_0x356192=[]){const _0x33f6bb=_0x292b40;return this[_0x33f6bb(0xfb)](_0x33f6bb(0xf0),{'threadId':_0x363e24,'cwd':_0x5d9651,'input':[{'type':_0x33f6bb(0x122),'text':_0x577563},..._0x356192],...codexTurnConfiguration(_0x5d9651,_0x1aa842)});}[_0x292b40(0x111)](_0x5b082d,_0x48e148,_0x172e77){const _0x48b110=_0x292b40;return this[_0x48b110(0xfb)](_0x48b110(0x11b),{'threadId':_0x5b082d,'expectedTurnId':_0x48e148,'input':[{'type':_0x48b110(0x122),'text':_0x172e77}]});}[_0x292b40(0x138)](_0x5f1e8e,_0xac3dcb){const _0x23ebc7=_0x292b40;return this[_0x23ebc7(0xfb)](_0x23ebc7(0x101),{'threadId':_0x5f1e8e,'turnId':_0xac3dcb});}[_0x292b40(0x11e)](_0x16a226){const _0x21ed3e=_0x292b40;let _0x51050e;try{_0x51050e=JSON[_0x21ed3e(0x166)](_0x16a226);}catch{return;}if((typeof _0x51050e['id']===_0x21ed3e(0xe2)||typeof _0x51050e['id']===_0x21ed3e(0x180))&&typeof _0x51050e[_0x21ed3e(0x153)]===_0x21ed3e(0x180)){for(const _0x220c68 of this[_0x21ed3e(0x174)]){_0x220c68({'method':_0x51050e[_0x21ed3e(0x153)],'params':_0x51050e[_0x21ed3e(0x14b)],'requestId':_0x51050e['id']});}return;}if(typeof _0x51050e['id']===_0x21ed3e(0xe2)){const _0x5c889f=this[_0x21ed3e(0xe5)][_0x21ed3e(0xe1)](_0x51050e['id']);if(_0x5c889f===undefined)return;clearTimeout(_0x5c889f[_0x21ed3e(0x17c)]),this[_0x21ed3e(0xe5)][_0x21ed3e(0x10e)](_0x51050e['id']),this[_0x21ed3e(0x105)]();_0x51050e[_0x21ed3e(0x159)]!==undefined?_0x5c889f[_0x21ed3e(0x102)](new CodexAppServerRpcError(isRecord(_0x51050e[_0x21ed3e(0x159)])?_0x51050e[_0x21ed3e(0x159)]:{'message':String(_0x51050e[_0x21ed3e(0x159)])})):_0x5c889f[_0x21ed3e(0x17b)](_0x51050e[_0x21ed3e(0x13e)]);return;}if(typeof _0x51050e[_0x21ed3e(0x153)]===_0x21ed3e(0x180)){for(const _0x21d21a of this[_0x21ed3e(0x174)])_0x21d21a({'method':_0x51050e[_0x21ed3e(0x153)],'params':_0x51050e[_0x21ed3e(0x14b)]});}}[_0x292b40(0x117)](_0x3b06fd){const _0x5789dd=_0x292b40;for(const [_0x296dc1,_0x24f434]of this[_0x5789dd(0xe5)]){clearTimeout(_0x24f434[_0x5789dd(0x17c)]),_0x24f434[_0x5789dd(0x102)](_0x3b06fd),this[_0x5789dd(0xe5)][_0x5789dd(0x10e)](_0x296dc1);}this[_0x5789dd(0x105)]();}[_0x292b40(0xfe)](){const _0x4e9adb=_0x292b40,_0x58c573=this[_0x4e9adb(0x128)][_0x4e9adb(0x14c)]??_0x4e9adb(0x12e);if(_0x58c573===_0x4e9adb(0x12e))return process[_0x4e9adb(0xf6)]===_0x4e9adb(0x171)?_0x4e9adb(0xec):_0x4e9adb(0x10d);if(_0x58c573===_0x4e9adb(0xec)&&process[_0x4e9adb(0xf6)]!==_0x4e9adb(0x171))throw new Error(_0x4e9adb(0x115));return _0x58c573;}}function codexThreadConfiguration(_0x5916f9,_0x2c17c2){const _0x5930ed=_0x292b40;return{...modelOption(_0x2c17c2[_0x5930ed(0x15e)]),..._0x2c17c2[_0x5930ed(0x143)]===undefined?{}:{'developerInstructions':_0x2c17c2[_0x5930ed(0x143)]},..._0x2c17c2[_0x5930ed(0x119)]===undefined?{}:{'config':{'mcp_servers':_0x2c17c2[_0x5930ed(0x119)]}},...codexPermissionConfiguration(_0x5916f9,_0x2c17c2[_0x5930ed(0x172)],_0x5930ed(0xe3))};}function codexTurnConfiguration(_0x386f03,_0x25effd){const _0x4ba4fa=_0x292b40,_0xa170de=typeof _0x25effd[_0x4ba4fa(0x177)]===_0x4ba4fa(0x180)&&_0x25effd[_0x4ba4fa(0x177)][_0x4ba4fa(0x175)]()[_0x4ba4fa(0xee)]>-0x6d1*0x4+0x1*-0x18ce+0x3412?_0x25effd[_0x4ba4fa(0x177)]:null;return{...modelOption(_0x25effd[_0x4ba4fa(0x15e)]),..._0xa170de===null?{}:{'effort':_0xa170de},..._0x25effd[_0x4ba4fa(0x168)]===_0x4ba4fa(0x12d)?{'serviceTier':_0x4ba4fa(0x12d)}:{},..._0x25effd[_0x4ba4fa(0xea)]===undefined?{}:{'collaborationMode':{'mode':_0x25effd[_0x4ba4fa(0xea)],'settings':{'model':_0x25effd[_0x4ba4fa(0x15e)]??_0x4ba4fa(0x176),'reasoningEffort':_0xa170de}}},...codexPermissionConfiguration(_0x386f03,_0x25effd[_0x4ba4fa(0x172)],_0x4ba4fa(0x173))};}function modelOption(_0x52b1c5){return _0x52b1c5===undefined||_0x52b1c5===null?{}:{'model':_0x52b1c5};}function codexPermissionConfiguration(_0x4d8163,_0x5038a7,_0x39f6ed){const _0x29b4a=_0x292b40,_0x14a86f=_0x5038a7===_0x29b4a(0x11a)?_0x29b4a(0x11a):_0x5038a7===_0x29b4a(0x17e)||_0x5038a7===_0x29b4a(0x123)?_0x29b4a(0x17e):_0x5038a7===_0x29b4a(0x158)?_0x29b4a(0x15b):undefined,_0x3dc8ba=_0x5038a7===_0x29b4a(0x17e)||_0x5038a7===_0x29b4a(0x158)?_0x29b4a(0x133):_0x29b4a(0x123);if(_0x39f6ed===_0x29b4a(0xe3))return{..._0x14a86f===undefined?{}:{'sandbox':_0x14a86f},'approvalPolicy':_0x3dc8ba};return{..._0x14a86f===undefined?{}:{'sandboxPolicy':_0x14a86f===_0x29b4a(0x11a)?{'type':_0x29b4a(0xf4)}:_0x14a86f===_0x29b4a(0x15b)?{'type':_0x29b4a(0x108)}:{'type':_0x29b4a(0x106),'writableRoots':[_0x4d8163],'networkAccess':!![]}},'approvalPolicy':_0x3dc8ba};}export function probeCodex(_0x2f1f5e=_0x292b40(0x10b)){const _0x4fb672=_0x292b40,_0x4e453f=platformCliInvocation(_0x2f1f5e,[_0x4fb672(0x14d)]),_0x78b464=spawnSync(_0x4e453f[_0x4fb672(0xdb)],_0x4e453f[_0x4fb672(0x150)],{'windowsHide':!![],'env':minimalRunnerEnvironment(),'timeout':0xbb8,'encoding':_0x4fb672(0x118)});if(_0x78b464[_0x4fb672(0x17f)]!==0x16e5+0xf40+-0x28b*0xf||_0x78b464[_0x4fb672(0x159)]!==undefined)return{'available':![],'compatible':![]};const _0x290545=(''+_0x78b464[_0x4fb672(0x121)]+_0x78b464[_0x4fb672(0x13d)])[_0x4fb672(0x175)]()[_0x4fb672(0xe7)](0x13e7+-0x1ace+0x6e7,-0x909+-0x19e6+0x236f);return{'available':!![],..._0x290545[_0x4fb672(0xee)]===-0x1ddb+0x1bdc+-0x1ff*-0x1?{}:{'version':_0x290545},'compatible':!![]};}export async function probeCodexAsync(_0x3e8886=_0x292b40(0x10b)){const _0x3cd3bf=_0x292b40,_0x101d74=platformCliInvocation(_0x3e8886,[_0x3cd3bf(0x14d)]),_0x532b6a=await runRunnerProbe(_0x101d74[_0x3cd3bf(0xdb)],_0x101d74[_0x3cd3bf(0x150)],{'env':minimalRunnerEnvironment(),'timeoutMs':0xbb8});if(_0x532b6a[_0x3cd3bf(0x17f)]!==0x23fd+-0x3*-0x273+0x3*-0xe72)return{'available':![],'compatible':![]};const _0xe26f04=(''+_0x532b6a[_0x3cd3bf(0x121)]+_0x532b6a[_0x3cd3bf(0x13d)])[_0x3cd3bf(0x175)]()[_0x3cd3bf(0xe7)](-0xf9*0x1d+-0x6fc+0x2331,-0x318*-0x4+0xee3+0x1f*-0xdd);return{'available':!![],..._0xe26f04[_0x3cd3bf(0xee)]===0x6c9*-0x1+0xb*-0x31c+0x28fd?{}:{'version':_0xe26f04},'compatible':!![]};}export function isSupportedCodexVersion(_0x18896c){const _0x4e1094=_0x292b40;return _0x18896c[_0x4e1094(0x175)]()[_0x4e1094(0xee)]>-0x1*0x10a9+-0x4*0x43a+0x295*0xd;}function defaultSpawn(_0x38d22d,_0x41174e,_0x416668){const _0x1aac8e=_0x292b40,_0x5238e8=platformCliInvocation(_0x38d22d,_0x41174e);return spawn(_0x5238e8[_0x1aac8e(0xdb)],_0x5238e8[_0x1aac8e(0x150)],{'stdio':[_0x1aac8e(0x137),_0x1aac8e(0x137),_0x1aac8e(0x137)],'shell':![],'windowsHide':!![],..._0x416668[_0x1aac8e(0xf8)]===undefined?{}:{'cwd':_0x416668[_0x1aac8e(0xf8)]},..._0x416668[_0x1aac8e(0xfd)]===undefined?{}:{'env':_0x416668[_0x1aac8e(0xfd)]}});}function isRecord(_0x2513c5){const _0x1b3bfb=_0x292b40;return typeof _0x2513c5===_0x1b3bfb(0xe0)&&_0x2513c5!==null&&!Array[_0x1b3bfb(0xdd)](_0x2513c5);}function stdioTransport(_0x102f97){const _0x2da9e3=_0x292b40;return{get 'writable'(){const _0x27c30f=_0x66a0;return _0x102f97[_0x27c30f(0x125)][_0x27c30f(0xef)];},'write':_0x13b538=>_0x102f97[_0x2da9e3(0x125)][_0x2da9e3(0x139)](_0x13b538),'on':(_0xb713e4,_0x32ddec)=>_0x102f97[_0x2da9e3(0x121)]['on'](_0xb713e4,_0x32ddec),'once':(_0x3b1b53,_0x538196)=>_0x102f97[_0x2da9e3(0x121)][_0x2da9e3(0x109)](_0x3b1b53,_0x538196),'destroy':()=>_0x102f97[_0x2da9e3(0x121)][_0x2da9e3(0x181)]()};}function privateSocketPath(){const _0x40bcef=_0x292b40;return join(tmpdir(),_0x40bcef(0x13a)+process[_0x40bcef(0x10c)]+'-'+randomUUID()+_0x40bcef(0x146));}function connectUnix(_0x48bd22,_0x539789){return new Promise((_0x41b5d5,_0x113c95)=>{const _0x211594=_0x66a0,_0x2f6040=Date[_0x211594(0x12b)]()+_0x539789,_0x33b785=()=>{const _0x5a9f18=_0x211594,_0x1a39a5=connect(_0x48bd22),_0x49f926=_0x19bda8=>{const _0x4a8e2f=_0x66a0;_0x1a39a5[_0x4a8e2f(0x181)]();if(Date[_0x4a8e2f(0x12b)]()>=_0x2f6040){_0x113c95(new Error(_0x4a8e2f(0x10a)+_0x19bda8[_0x4a8e2f(0x154)]));return;}setTimeout(_0x33b785,0x965+0x55*0x7+-0xb9f);};_0x1a39a5[_0x5a9f18(0x109)](_0x5a9f18(0x178),()=>_0x41b5d5(_0x1a39a5)),_0x1a39a5[_0x5a9f18(0x109)](_0x5a9f18(0x159),_0x49f926);};_0x33b785();});}
package/dist/connector.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /* mar-release-protected */
2
- const _0x5e09f1=_0x13b9;(function(_0x4499b9,_0x1367be){const _0x236e03=_0x13b9,_0x5e404b=_0x4499b9();while(!![]){try{const _0xaf0f9a=parseInt(_0x236e03(0x190))/(-0x2099*-0x1+-0xd*0x16f+0xdf5*-0x1)*(parseInt(_0x236e03(0x201))/(0x61b*0x1+-0x112*0xb+0x1*0x5ad))+parseInt(_0x236e03(0xf7))/(0x9b+-0x1308*-0x2+-0x26a8)+parseInt(_0x236e03(0xf3))/(-0x183b+-0x1e46+0x3685)*(-parseInt(_0x236e03(0x17a))/(0x1218+0x1a4b+-0x6*0x765))+-parseInt(_0x236e03(0xaf))/(-0x23fb+0x3*0x5a7+0x130c)+parseInt(_0x236e03(0x1c3))/(-0x3d4+-0x3*0x3a2+0xec1)+parseInt(_0x236e03(0x221))/(0x101e+-0x1d70+-0x2*-0x6ad)*(parseInt(_0x236e03(0x204))/(0xa7e*-0x1+0x1ded+-0x1366))+parseInt(_0x236e03(0x10c))/(-0x270d+-0x8*-0x16b+-0x1*-0x1bbf)*(-parseInt(_0x236e03(0x173))/(-0x1*0xf29+0x11ee+-0x2ba*0x1));if(_0xaf0f9a===_0x1367be)break;else _0x5e404b['push'](_0x5e404b['shift']());}catch(_0x135d9f){_0x5e404b['push'](_0x5e404b['shift']());}}}(_0x36f2,-0x1*0xf2504+0x12d5aa+0x7ce51));import{dirname,resolve}from'node:path';import{createEnvelope}from'@myagentroam/protocol';import{loadNodeConfig,nodeDatabasePath}from'./config.js';import{NodeMetrics,nodeLog}from'./operational.js';import{assertLocalSqlitePath}from'./storage.js';import{detectCapabilitiesAsync,unavailableCapabilities}from'./capabilities.js';import{NodeDatabase}from'./database.js';import{TerminalManager}from'./terminal.js';import{NodeRuntimeState}from'./runtime-state.js';import{CommandStateStore}from'./runner-command-engine.js';import{missionUnrestrictedAccess,MissionRuntime}from'./service/mission-runtime.js';import{MissionMcpServer}from'./service/mission-mcp-server.js';import{RunnerUsageReader}from'./runner-usage.js';import{ClaudeCodeRunner}from'./runner/claude-code-runner.js';import{ClaudeManagedRunController}from'./runner/claude/managed-run-controller.js';import{CodexRunner}from'./runner/codex-runner.js';import{CodexManagedRunController}from'./runner/codex/managed-run-controller.js';function _0x36f2(){const _0x8c361f=['y2fUy2vSq29KzxHuDxjU','BM93','y2fWywjPBgL0EurLDgvJDg9Y','zMfPBgvKqxr0zw1WDhm','C29JA2v0','zgLZy292zxjxB3jRC3bHy2vtzxnZAw9UCW','CMvJB3jKzwqTC2vZC2LVBG','Aw5ZDgfSBgf0Aw9U','C3vIBwL0twLZC2LVBG','C25HChnOB3rtzxf1zw5Jzq','zxHPDa','tufsx0fhru5ux1DfqL9trufsq0HFrKfjteve','zMfRzvnJCMLWDa','tK9erv9vtKfvveHftLrjq0furuq','C3rHCNq','yxnZAxn0yw50x21LC3nHz2u','sfruua','y29UBMvJDgvK','y3jLzgvUDgLHBa','CNvUBMvY','CMvZCg9UzfvZzxjjBNb1Da','ywnJzxb0rM9YtwvZC2fNzq','y2XHDwrLqxbWCM92ywXuAw1LB3v0txm','zxzLBNq','D29YA3nWywnLq2HHBMDLu2vYDMLJzq','CgXHDgzVCM0','z2v0uNvU','yMLUzenVBw1HBMrdB250CM9S','BgLZDa','y3jLyxrLqxbWCM92ywW','zw1PDfj1BG','zxHWAxjL','DgvYBwLUywXtzxj2AwnL','zgLZy292zxjxB3jRC3bHy2u','Aw50zxjYDxb0uMvXDwvZDgvK','BwLZC2LVBK1JCfnLCNzLCG','ChvIBgLZAfDVCMTIzw5JAev2zw50','CMvMCMvZAenHCgfIAwXPDgLLCW','y2HHBM5LBfrVA2vU','zwzMB3j0','BMv4Da','CMvNAxn0zxjbBgW','C3rHCNrLzef0','mtm3nda0ng5WuK1zCG','CMvHzeHPC3rVCNLqywDL','D29YA2jLBMnOtwfUAwzLC3rtzxj2AwnL','y29UDMvYC2f0Aw9Uu2vNBwvUDfnLCNzPy2u','D29YA3nWywnLv29YA2jLBMnOu2vYDMLJzq','Dgv4Dc5KzwX0yq','y2f0y2G','CNvUBMvYsw50zxjHy3rPB25tzxj2AwnL','BM9Kzs5JB25Uzwn0Aw5N','uvvfvuu','z2v0v29YA3nWywnL','ChjVBw90zvnLC3nPB25jzgvUDgL0Eq','zxHLy3v0zunVBw1HBMq','CNvUBMvYq2HHBM5LBe1LC3nHz2vZ','rKflrv9svu5orvjFreLtq09otKvdva','ywnJzxnZ','DhvYBG','ywn0AxzL','Dgv4Da','Dg9WAwnby3rPDMu','y29UzMLNugf0Aa','y2fWywjPBgL0AwvZ','BwfUywDLzfj1BM5LCLnLC3nPB25Z','ywrK','ue9tva','lw9Wzw5JB2rLlwLTywDLCW','C2v0','ChjVBxb0','BM9Kzs51CgDYywrLlNjLCxvLC3q','CNvUv29YA2jLBMnOu2vYDMLJzq','ChvIBgLZAefWChjVDMfS','C2vXDwvUy2u','DxnLCKLUChv0CW','y29TCgXLDgvKqxq','D29YA2jLBMnOrxzLBNrtzxj2AwnL','zw1PDenVBNzLCNnHDgLVBKL0zw0','BwfYqwDLBNrdBgLLBNq','C2vZC2LVBKXPzMvJEwnSzvnLCNzPy2u','zMLUAxnOswrSzu1PC3nPB25sDw4','zw1PDfj1BKv2zw50','C2H1DgrVD24','DxbNCMfKzs1Yzxn1BhqUANnVBG','Bw9KzwW','y2fUy2vS','Bwf0zxjPywXPEMvdB2rLEa','uLvox05pvf9gt1vora','zgf0ywjHC2u','Aw50zxjYDxb0','B3bLBKnVzgvdBgLLBNq','Aw52ywXPzgf0zunHy2HL','DgvYBwLUywXnyw5Hz2vY','Bwv0ywrHDge','y29UDhjVBenOyw5UzwW','zw1PDfDVCMTIzw5JAev2zw50','zMfRzvj1BM5LCG','ChvIBgLZAa','zxHLy3v0Aw9Uu3rHCNrLza','zw1PDenVBNzLCNnHDgLVBLr1CM4','A2LUza','ChvIBgLZAfnUyxbZAg90','zw1PDfjLywX0Aw1L','su5urvjsvvburuq','mZiXmdjIq3vMq0G','BM9Kzs5JB25Uzwn0Aw9UlNjLCgXHy2vK','C2vZC2LVBKnHDgfSB2Dtzxj2AwnL','ntr4wfj4rey','CMvQzwn0','AxnbCNjHEq','C2vZC2LVBI5SAxn0','yxbWCM92ywXZ','BwLZC2LVBLj1BNrPBwu','CNvUlNn0yxj0zwq','y3jLyxrLqwDLBNrtzxnZAw9U','CMvTB3zL','zgvJAwrL','CNvUlMzHAwXLza','BM9Kzs5VCgvYyxrPB24','Ahr0Chm6lY8XmJCUmc4WlJeUAw52ywXPzc9Ty3a','CMvXDwLYzq','CNvUDgLTzq','D29YA3nWywnLswq','q0foq0vmteve','ywn0AxzLv29YA3nWywnLtgvHC2vdB3vUDa','tuLtu0LptL9dt05usu5vqvrjt05FrKfjteve','BMf0AxzLsw1Hz2vsB290CW','C2f2zu5HDgL2zvnLC3nPB25nzxrHzgf0yq','BxLHz2vUDhjVyw1FBwLZC2LVBG','uKvqtefdrv9dvvjsru5u','q0foq0vm','CMvXDwvZDa','C2vZC2LVBG','CgvYC2LZDezPBgvZ','y29UDMvYC2f0Aw9UvhvYBKzVCLj1BG','yMLUzenVBNrYB2W','mJm2mJe2rNbUDNP1','yxbWCM92ywW6','BM9KzvjLCxvLC3rZ','tK9erv9tve9queve','ChjVAMvJDeLUAxrPywW','D29YA3nWywnLu2vZC2LVBLnLCNzPy2u','C2nOzwr1Bgu','ywn0AxzLu2vZC2LVBLj1BG','C2vJCMv0rw52AxjVBM1LBNq','BMf0AxzLswrZ','ChjLC2vUDa','y29UDhjVBe1LC3nHz2vZ','v09ss1nqqunf','BgLZDfDVCMTZCgfJzxm','C3rHDgu','CMvHza','z2v0qwDLBNrtzxnZAw9U','CMvNAxn0zxi','CgvUzgLUzW','CMvTB3zLugvUzgLUz1f1zxvL','CMvSzwfZzvnLC3nPB24','zMLUza','zxzLBNruExbL','ywrVChrsDw4','y2XHDwrLuNvUq29UDhjVBgXLCG','CNvUlNj1BM5PBMC','y29UBMvJDa','DxbNCMfKzvjLywr5','y3vZDg9TvgL0Bgu','AgfZ','C25HChnOB3q','C2v0u2vZC2LVBLjLC291CMnLuMvSzwfZzxi','BM9KzuLK','ChjLCgfYzu1LC3nHz2vjBNb1Da','zMfZDa','CNvUBMvYu2vYDMLJzq','BMf0AxzLu2vZC2LVBLbYB2PLy3rPB25tzxj2AwnL','zxHLy3v0zu5VzgvpCgvYyxrPB24','Bw92zq','mJq3ntyZnM1qt1Lbtq','CMfUzg9Tvvvjra','y2fUy2vSq2XHDwrLuNvU','DxbKyxrLqwDLBNrtzxnZAw9UqwnJzxnZ','y2XLyxjxyxrJAgvZ','DhvYBNm','BgLZDfj1BNngB3jtzxnZAw9U','y29UzMLN','Aw5ZCgvJDe1LDgfKyxrH','zwzMzwn0AxzLtwnWsw5ZDgfSBgf0Aw9UCW','zxHWAxjLqxbWCM92ywW','CgvYC29UywXjBNn0CNvJDgLVBNm','AgfUzgXLtM90AwzPy2f0Aw9U','C2vZC2LVBNm','CgvUzgLUz01PC3nPB25dB21Tyw5Ku3rHDgu','D2LUzg93CW','C2vZC2LVBLn0yxrL','CMvXDwvZDenSyxvKzufWChjVDMfS','DgLTzxi','zxHLy3v0zq','C2vZC2LVBKnVBNrLEhrtzxj2AwnL','zw1PDfnLC3nPB25xB3jRyMvUy2HfDMvUDa','y2XLyxjnAxnZAw9UuMv0CNK','CMvWBgfJzvnVy2TLDezVCLrLC3rPBMC','zw5ZDxjLuMvZDw1LzenVBMzPz3vYyxrPB24','y29UBMvJDgLVBKXPzMvJEwnSzq','CNvUlMnVBxbSzxrLza','y2XLyxjbBgW','yxbWBgLJyxrPB24VANnVBG','CMv2AxnPB24','zw1PDff1zxvL','CNvUrxzLBNrcCMLKz2u','C2vZC2LVBK1LC3nHz2vtzxj2AwnL','zxH0zxjUywXtzxnZAw9Uswq','BMf0AxzLu2vZC2LVBLDHDgnOu2vYDMLJzq','y29UDMvYC2f0Aw9U','surmrq','Dw5Yzwy','CMvXDwvZDenSyxvKzvvZzxjjBNb1Da','CMvZB2X2zq','AxrLBxm','CMvMCMvZAfrPDgXL','y2fWywjPBgL0AwvZuhjVDMLKzwq','y2XVC2vsDw5UAw5NvgvYBwLUywXtzxnZAw9UCW','BM9KzuDLBMvYyxrPB24','CMvMCMvZAev4DgvYBMfSqwn0AxzPDhK','C3rVChbLza','CNvUCW','zMX1C2Hqzw5KAw5Nvgv4Da','ChvIBgLZAe1PC3nPB25tDgf0zq','tK9erv9eqvrbqKftrv9vtKfwquLmqujmrq','Cgf5Bg9Hza','Bg9HzfjLC3vSDa','y2XVC2u','C2v0q2HHBM5LBfrVA2vU','CNvUBMvYlMnVBw1HBMqUzxHLy3v0zq','C3rHCNrdyxbHyMLSAxr5uMvMCMvZAa','CMvZDw1LzenVBMzPz3vYyxrPB24','C2vYDMvYvxjS','C2XPy2u','C2vZC2LVBKLKzw50Axr5u2vYDMLJzq','CMvWBgfJzq','y29UBMvJDgvKqxr0zw1WDa','BwfYlwLUDgvYBMfSlw1PC3nPB24','ywXSB3DLzfjVB3rZ','DgHYzwfKswq','l21PC3nPB24','u0vora','odbLrvDdqw8','CMvJB25Uzwn0u2nOzwr1BgvK','yxzHAwXHyMXL','C2vUza','ndmYmta0ngPjvMfZrW','qMvHCMvYia','B3bLBKnVzgvsDw5dB250CM9SBgvY','D2LUmZi','tuLtu0LptL9ot1rFqunusvzf','y29UDMvYC2f0Aw9UsgLZDg9YEvnLCNzPy2u','D2f0y2GUzxzLBNq','y29TBwL0twv0ywrHDge','CNvUDgLTzs1UB2rL','C2vJCMv0CW','C3vWzxj2AxnLzfvWz3jHzgu','zxH0zxjUywXtzxnZAw9UuMvZDw1Lu2vYDMLJzq','BwLZC2LVBKnVBNrPBNvHDgLVBLbLBMrPBMC','y29KzxG','C3rYAw5N','tK9erv9dt05gsuDFvu5bvKfjtefcteu','DhvYBKLK','Bwv0CMLJCW','CNvUBMvYvxnHz2vszwfKzxi','y29KzxHdBgLLBNq','zgvJAxnPB24','nJbWvNnTu0u','ChjLCgfYzu1PC3nPB25tzxnZAw9U','AgfZrxHLy3v0Aw9Uu3rHCNrLza','BwLNCMf0zvj1BM5LCLnLC3nPB25jzgvUDgL0Eq','CMvJB25JAwXL','C2vZC2LVBI13yxrJAc1ZBMfWC2HVDa','CNvUswq','yMXVy2TZ','Cgf1C2vtzxnZAw9UuxvLDwu','CMvJB25Uzwn0','rvHurvjoquW','CMvHze5HDgL2zq','C3rYAw5NAwz5','l2fWAs9UB2rLlxrVB2XZl3DLyI1ZzwfYy2G','BNvTyMvY','CMvTzw1Izxi','CMvJB25JAwXLugvYC2LZDgvKuNvUCW','CMvJB3jKrxHLy3v0Aw9UuMvZDwX0','CNvUBMvYvgL0Bgu','zgLYzwn0tMf0AxzL','twLZC2LVBG','zgvSzxrL','yxbWCM92ywXjza','BwfYqwDLBNrsDw5dB250CM9SBgvY','uKvkrunuruq','C2vZC2LVBKLK','AgfZqwn0AxzLu2vZC2LVBKXLyxnL','D29YA3nWywnLu2vYDMLJzq','CgvYC2LZDfrLCM1PBMfS','z2v0','CMvJzw50lxj1BNm','DhjHBNnPDgLVBMLUzW','y29UDMvYC2f0Aw9UlML0zw0','BM9Kzs51CgDYywrLlMnHBMnLBa','yM9VDhn0CMfWswrZ','zxH0zxjUywXby3rPDML0Eq','DgvYBwLUywXdAgfUBMvS','zgLZCgf0y2G','CNvUrxzLBNrtzxj2AwnL','rKfjteve','q0foq0vmteLorW','D29YA3nWywnLrMLSzvnLCNzPy2u','Aw5KzxG','l21PC3nPB24Gls1JBgvHCG','y3vYCMvUDev4zwn1DgLVBKLK','u1vdq0vfreve','CMvZDw1Lqwz0zxjdB21Tyw5KuNvU','DMfSDwvZ','CMvJB3jKvhvYBG','y3jLyxrLzef0','BM9Kzs53B3jRyMvUy2GUy2fWywjPBgL0AwvZ','zxHLy3v0Aw9U','CMvJzw50uNvUuhjVAMvJDgLVBLnLCNzPy2u','BM9Kzs5TzxrYAwnZ','y2XLyxjxB3jRC3bHy2u','CNvU','zgLZCg9Zzq','zMfRztO','y2XLyw51Ca','y29KzxHqCM9MAwXLq2XPzw50rMfJDg9YEq','tK9erv9vueDsqurfx1bftKrjtKC','C3rHDhvZ','C3rVCa','BMf0AxzLlNnLC3nPB24UzgLZy292zxj5lNbLBMrPBMC','C2vZC2LVBKnVBw1HBMrtzxj2AwnL','y2XHDwrLq2XPzw50','CMvTB3zLtwLZC2LVBLf1zxvL','C3rVCfDHDgnO','zw5ZDxjLv2f0y2G','y29TBwfUzfn0yxrLCW','DxbNCMfKzq','BwLU','CNvUu3rHDgu','B3bLCMf0Aw9UuM91DgvY','Aw5ZCgvJDa','Aw52ywXPzgf0zunOyw5Nzxm','D29YA3nWywnLuxvLDwvxB3jRyMvUy2Htzxj2AwnL','zw5XDwv1zu1PC3nPB25dB250Aw51yxrPB24','Bwf4','vgHPCYboB2rLignVBM5Ly3rPB24GD2fZihjLCgXHy2vKigj5igeGBMv3zxiGAw5ZDgfUy2uGD2L0Acb0AguGC2fTzsbPzgvUDgL0Es4Gq2HLy2SGzM9Yigr1CgXPy2f0zsbWCM9JzxnZzxmU','y29UDgLUDwu','y29TCgXLDgvdyw5JzwXSzwrsDw4','C2vZC2LVBLbYzxnLBNrHDgLVBLnLCNzPy2u','y29UDgLUDw91C1j1BKnVB3jKAw5HDg9Y','zw5ZDxjLvg9WAwntBMfWC2HVDa','zgvJAwrLqxbWCM92ywW','B2jQzwn0AxzL','y2XLyxi','AxrLBuLK','BwLNCMf0zvnLC3nPB24','D2vIu2vHCMnO','y2HHBMDLza','CMvJB3jK','Aw52ywXPzgf0zvrVCgLJ','zM9Yz2v0','yxbWzw5K','CMvZB2X2zun1CNjLBNq','BwLZC2LVBG','BwLZC2LVBLjLDhj5vgLTzxjZ','y29KzxHsDw5dB250CM9SBgvY','Dw5YzwDPC3rLCMvK','zgLZy29UBMvJDa','DxbNCMfKzunVB3jKAw5HDg9Y','mJe1nZG4mxr2qLvQBa','ChjVzMLSzxm','D29YA3nWywnLvxbSB2fKu2vYDMLJzq','AgfUzgXLtwvZC2fNzq','Aw52ywXPzgf0zvDVCMTZCgfJzvDHDgnOvg9WAwnZ','CNvUBMvYCW','y2fJAgvKu2vZC2LVBNm','mJqXotb0vefRB00','ChjVAMvJDgLVBKzVCK5HDgL2zq','B25tDw1Tyxj5','C2L6zq','B3bLCMf0Aw9UCW','D29YA3nWywnLv2f0y2Htzxj2AwnL','zgLZy292zxi','zgvJAwrLq29KzxHbChbYB3zHBa','AgfUzgXL','C2vZC2LVBLf1zxj5u2vYDMLJzq','y3DK','CNvUqxr0ywnOBwvUDfnLCNzPy2u','ChjVBw90zq','ANnVBG','CMv2B2TL','tK9erv9dt05orunusu9ox1jfueXbq0ve','ms4WlJa','D29YA3nWywnLu3rHDgu','yMXVy2TbzNrLCLj1BNrPBwvgywLSDxjL','D29YA3nWywnLq29VCMrPBMf0B3i','Aw52ywXPzgf0zq','zMLSDgvY','mZLACvvzEMG','BgLUDxG','BM90AwzPy2f0Aw9U','C2vUzevUDMvSB3bL','zgvJAwrLq2XHDwrLqxbWCM92ywW','Cgf0Aa','BwfUywDLzezVCK5HDgL2zq','B25oB3rPzMLJyxrPB24'];_0x36f2=function(){return _0x8c361f;};return _0x36f2();}import{FakeTestRunner}from'./runner/fake-test-runner.js';import{RunnerRegistry}from'./runner/runner-registry.js';import{OpenCodeRunner}from'./runner/opencode-runner.js';import{MarAgentRunner}from'./runner/mar-agent-runner.js';import{MarAgentManagedRunController}from'./runner/mar-agent/managed-run-controller.js';import{OpenCodeManagedRunController}from'./runner/opencode/managed-run-controller.js';import{NodeOperationRouter}from'./connector/node-operation-router.js';import{SkillNodeOperationService}from'./service/skill-node-operation-service.js';import{McpNodeOperationService}from'./service/mcp-node-operation-service.js';import{RunnerService}from'./service/runner-service.js';import{TerminalService}from'./service/terminal-service.js';import{WorkspaceService}from'./service/workspace-service.js';import{WorkspaceWatchService}from'./service/workspace-watch-service.js';import{WorkspaceFileService}from'./service/workspace-file-service.js';import{WorkspaceUploadService}from'./service/workspace-upload-service.js';import{WorkspaceChangeService}from'./service/workspace-change-service.js';import{WorkspaceSessionService}from'./service/workspace-session-service.js';import{WorkbenchEventService}from'./service/workbench-event-service.js';import{RunDomainState}from'./service/run-domain-state.js';import{RecentRunProjectionService}from'./service/recent-run-projection-service.js';import{SessionDomainState}from'./service/session-domain-state.js';import{RunEventService}from'./service/run-event-service.js';import{RunAttachmentService}from'./service/run-attachment-service.js';import{NodeTerminalChannel}from'./service/node-terminal-channel.js';import{WorkspaceWorkbenchService}from'./service/workspace-workbench-service.js';import{NativeSessionWatchService}from'./service/native-session-watch-service.js';import{SessionContextService}from'./service/session-context-service.js';import{WorkspaceDomainState}from'./service/workspace-domain-state.js';import{RunWorkbenchService}from'./service/run-workbench-service.js';import{SessionQueryService}from'./service/session-query-service.js';import{WorkspaceQueueWorkbenchService}from'./service/workspace-queue-workbench-service.js';import{ContinuousRunCoordinator}from'./service/continuous-run-coordinator.js';import{SessionIdentityService}from'./service/session-identity-service.js';import{NativeSessionProjectionService}from'./service/native-session-projection-service.js';import{composeConversationRuntimePage,ConversationHistoryService,convergeConversationWatchPage,hasManagedActiveRun}from'./service/conversation-history-service.js';import{ConversationSegmentService,conversationSegmentIdentityForItem,conversationSegments}from'./service/conversation-segment-service.js';import{RunnerInteractionService}from'./service/runner-interaction-service.js';import{SessionLifecycleService}from'./service/session-lifecycle-service.js';import{ExternalSessionResumeService}from'./service/external-session-resume-service.js';import{SessionMessageService}from'./service/session-message-service.js';import{SessionCatalogService}from'./service/session-catalog-service.js';import{SessionCommandService}from'./service/session-command-service.js';import{SessionPresentationService}from'./service/session-presentation-service.js';import{isPlainRecord,isRunnerImageAttachment,parseRunnerImageAttachments}from'./runner/codex/conversation-parser.js';export{nodeConnectEndpoint,validatedCapabilities}from'./runner/codex/conversation-parser.js';import{NodeControlChannel}from'./service/node-control-channel.js';import{NodeControlMessageService}from'./service/node-control-message-service.js';import{NodeRequestService}from'./service/node-request-service.js';import{WorkbenchManifestService}from'./service/workbench-manifest-service.js';import{NodeRunEventBridge,workbenchPayloadSessionId}from'./service/node-run-event-bridge.js';import{NodeWorkspaceCoordinator}from'./service/node-workspace-coordinator.js';import{FakeManagedRunService}from'./service/fake-managed-run-service.js';import{RunnerChannelMessageService}from'./service/runner-channel-message-service.js';import{ManagedRunnerSessionService}from'./service/managed-runner-session-service.js';import{NodeConnectionLifecycleService}from'./service/node-connection-lifecycle-service.js';import{NodeUpgradeCoordinator,nodeUpgradeRequestPath}from'./service/node-upgrade-coordinator.js';const HEARTBEAT_MS=0x1403+-0x3323*-0x1+-0xc8e,CAPABILITY_REFRESH_MS=0x1*-0x1582a+-0x327a+-0x45e4*-0x9,RETRY_MIN_MS=-0x219c+-0x209d+0x1*0x442d,RETRY_MAX_MS=-0x12be*0xc+-0x132d+0x4841*0x5,CLAUDE_APPROVAL_TIMEOUT_MS=(-0x4*0x53f+0x54*0x71+-0x100e)*(0x1c88d+-0xe6aa+-0x1*-0x87d);function _0x13b9(_0xf428dd,_0x5caadb){_0xf428dd=_0xf428dd-(-0x59*0x1f+-0x64a+0x11ae);const _0x35edfc=_0x36f2();let _0xfd8a51=_0x35edfc[_0xf428dd];if(_0x13b9['LXTigt']===undefined){var _0x17f9e9=function(_0x2d32c1){const _0x48089e='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x27e304='',_0x39f9c4='';for(let _0x493134=0xf7*0xd+0x2b*0x66+-0x1dad,_0x3a162d,_0x336053,_0x4842f0=0x595+-0x226d+0x1cd8;_0x336053=_0x2d32c1['charAt'](_0x4842f0++);~_0x336053&&(_0x3a162d=_0x493134%(0x616+-0x150*-0x6+-0xdf2)?_0x3a162d*(-0x209d+0x1*-0xb36+0x2c13)+_0x336053:_0x336053,_0x493134++%(-0x332+0x1a3a+0x7ac*-0x3))?_0x27e304+=String['fromCharCode'](-0x4*0x53f+0x54*0x71+-0xf19&_0x3a162d>>(-(0x260c+-0x1339+-0x1*0x12d1)*_0x493134&-0xc0d+0x1*0x2d4+0x93f)):0x3d6*-0x8+-0x19*-0x128+0x1c8){_0x336053=_0x48089e['indexOf'](_0x336053);}for(let _0x5d26e2=-0x9*-0x11a+0x919+-0x1303,_0x58cdd1=_0x27e304['length'];_0x5d26e2<_0x58cdd1;_0x5d26e2++){_0x39f9c4+='%'+('00'+_0x27e304['charCodeAt'](_0x5d26e2)['toString'](0x1*0x24d5+-0x47*0x51+-0xe4e))['slice'](-(0x456+-0x1f*0x7+-0x51*0xb));}return decodeURIComponent(_0x39f9c4);};_0x13b9['UdbuMl']=_0x17f9e9,_0x13b9['pUzPsZ']={},_0x13b9['LXTigt']=!![];}const _0x8a6f34=_0x35edfc[-0x7*0x3d1+0x1e*0x2+-0x1a7b*-0x1];_0x13b9['tQVgct']!==_0x8a6f34&&(_0x13b9['pUzPsZ']={},_0x13b9['tQVgct']=_0x8a6f34);const _0x16b7f1=_0x13b9['pUzPsZ'][_0xf428dd];return _0x16b7f1===undefined?(_0xfd8a51=_0x13b9['UdbuMl'](_0xfd8a51),_0x13b9['pUzPsZ'][_0xf428dd]=_0xfd8a51):_0xfd8a51=_0x16b7f1,_0xfd8a51;}export function nextReconnectDelay(_0x78d12e){const _0x20147f=_0x13b9;return Math[_0x20147f(0x153)](RETRY_MAX_MS,RETRY_MIN_MS*(-0xc0d+0x1*0x2d4+0x93b)**Math[_0x20147f(0x153)](Math[_0x20147f(0x15a)](_0x78d12e,0x3d6*-0x8+-0x19*-0x128+0x1c8),-0x9*-0x11a+0x919+-0x12f3));}function upgradeMetadata(_0xb4a40e,_0x1fc45e){const _0x4d315b=_0x13b9,_0x3cdffb={..._0xb4a40e??{}};if(process.env['MAR_NODE_SUPERVISED']==='1')_0x3cdffb[_0x4d315b(0x101)]=!![];else delete _0x3cdffb[_0x4d315b(0x101)];if(_0x1fc45e[_0x4d315b(0x22f)]===_0x4d315b(0xd3))delete _0x3cdffb[_0x4d315b(0x152)];else _0x3cdffb[_0x4d315b(0x152)]=_0x1fc45e;return _0x3cdffb;}export class NodeConnector{[_0x5e09f1(0xdb)]=crypto[_0x5e09f1(0xb0)]()[_0x5e09f1(0xec)](/-/g,'');[_0x5e09f1(0x1f7)];[_0x5e09f1(0x22c)];[_0x5e09f1(0x223)];[_0x5e09f1(0xc8)];set[_0x5e09f1(0x19c)](_0x174e1){const _0x452b79=_0x5e09f1;this[_0x452b79(0x1f7)][_0x452b79(0xc6)](_0x174e1);}[_0x5e09f1(0xdd)]=![];[_0x5e09f1(0xb6)];[_0x5e09f1(0xd9)];[_0x5e09f1(0x1d8)];[_0x5e09f1(0x19a)];[_0x5e09f1(0x1d7)];[_0x5e09f1(0x115)];[_0x5e09f1(0x1ae)];[_0x5e09f1(0x1e5)]=new WorkbenchEventService(envelope=>this[_0x5e09f1(0x193)](envelope),(category,payload)=>{const _0x18f2a1=_0x5e09f1,sessionId=workbenchPayloadSessionId(this[_0x18f2a1(0x212)],category,payload);return sessionId===undefined||!this[_0x18f2a1(0xeb)][_0x18f2a1(0x12e)][_0x18f2a1(0xa5)](sessionId);});[_0x5e09f1(0x1f9)];[_0x5e09f1(0x1a4)];[_0x5e09f1(0x154)]=new RunDomainState();[_0x5e09f1(0xce)];[_0x5e09f1(0x18d)];[_0x5e09f1(0xbf)]=new SessionDomainState();[_0x5e09f1(0xeb)];[_0x5e09f1(0xac)];[_0x5e09f1(0xfc)];[_0x5e09f1(0x1c6)];[_0x5e09f1(0x1ca)];[_0x5e09f1(0x1d0)];[_0x5e09f1(0x1d9)];[_0x5e09f1(0x15e)];[_0x5e09f1(0x1e8)];[_0x5e09f1(0x102)];[_0x5e09f1(0xcf)];[_0x5e09f1(0x203)];[_0x5e09f1(0x14c)];[_0x5e09f1(0x185)];[_0x5e09f1(0x130)];[_0x5e09f1(0x10a)];[_0x5e09f1(0x16f)];[_0x5e09f1(0x14d)];[_0x5e09f1(0x1f3)];[_0x5e09f1(0x1e7)];[_0x5e09f1(0x123)];[_0x5e09f1(0xf9)];[_0x5e09f1(0xa0)];[_0x5e09f1(0x178)];[_0x5e09f1(0xc3)];[_0x5e09f1(0x1e0)];[_0x5e09f1(0x183)];[_0x5e09f1(0x15f)];[_0x5e09f1(0x158)];[_0x5e09f1(0x155)]=new NodeOperationRouter();[_0x5e09f1(0xab)];[_0x5e09f1(0x1c5)];[_0x5e09f1(0x1b8)];[_0x5e09f1(0x127)];[_0x5e09f1(0x151)]=new CommandStateStore();[_0x5e09f1(0x209)]=new MissionRuntime(()=>undefined);[_0x5e09f1(0x16e)]=new Map();[_0x5e09f1(0x103)]=new Map();[_0x5e09f1(0x1bb)]=new MissionMcpServer(this[_0x5e09f1(0x209)],sessionId=>{const _0x55a700=_0x5e09f1,mission=this[_0x55a700(0x209)][_0x55a700(0x129)](sessionId),session=this[_0x55a700(0x212)][_0x55a700(0x231)](sessionId);if(mission===undefined||session===undefined)return;if(mission[_0x55a700(0x149)]!==_0x55a700(0x1d4))this[_0x55a700(0x15f)][_0x55a700(0x14e)](sessionId);this[_0x55a700(0xe0)](session,mission);});[_0x5e09f1(0x109)];[_0x5e09f1(0x1f5)];[_0x5e09f1(0x172)];[_0x5e09f1(0x18b)]=new WorkspaceDomainState();[_0x5e09f1(0x17f)]=new WorkspaceWatchService(this[_0x5e09f1(0x18b)],workspaceId=>this[_0x5e09f1(0x226)][_0x5e09f1(0x150)](workspaceId),workspaceId=>this[_0x5e09f1(0x226)][_0x5e09f1(0x14f)](workspaceId),workspaceId=>this[_0x5e09f1(0x1c7)]?.[_0x5e09f1(0x142)](workspaceId));[_0x5e09f1(0x226)]=new WorkspaceSessionService(this[_0x5e09f1(0x18b)],{'discover':workspaceId=>this[_0x5e09f1(0x19d)](workspaceId),'listPage':workspaceId=>this[_0x5e09f1(0xad)](_0x5e09f1(0x207),{'workspaceId':workspaceId,'limit':0x14}),'active':workspaceId=>this[_0x5e09f1(0x17f)][_0x5e09f1(0x1d6)](workspaceId,_0x5e09f1(0xbc)),'invalidate':workspaceId=>void this[_0x5e09f1(0x1c7)]?.[_0x5e09f1(0x169)](workspaceId,_0x5e09f1(0xbc)),'onPending':(workspaceId,waitMs)=>nodeLog(_0x5e09f1(0x14b),{'nodeId':this[_0x5e09f1(0xb6)]?.[_0x5e09f1(0xa8)],'workspaceId':workspaceId,'waitMs':waitMs})});[_0x5e09f1(0x135)]=new WorkspaceFileService(this[_0x5e09f1(0x18b)],()=>this[_0x5e09f1(0xb6)]?.[_0x5e09f1(0xef)]??[],workspaceId=>this[_0x5e09f1(0x18d)][_0x5e09f1(0x18e)](workspaceId));[_0x5e09f1(0x175)]=new WorkspaceUploadService(this[_0x5e09f1(0x18b)],workspaceId=>this[_0x5e09f1(0x18d)][_0x5e09f1(0x18e)](workspaceId));[_0x5e09f1(0x1b0)]=new WorkspaceChangeService(this[_0x5e09f1(0x18b)]);[_0x5e09f1(0x1c7)];[_0x5e09f1(0x1f1)];[_0x5e09f1(0x140)]=new RecentRunProjectionService(message=>this[_0x5e09f1(0xf6)](_0x5e09f1(0x12a),message));[_0x5e09f1(0x212)]=new NodeRuntimeState(()=>this[_0x5e09f1(0xb6)]?.[_0x5e09f1(0xa8)]??_0x5e09f1(0xff),workspaceId=>this[_0x5e09f1(0x1f1)]?.[_0x5e09f1(0x1cd)](workspaceId),Date[_0x5e09f1(0x199)],(run,session,userMessage)=>this[_0x5e09f1(0x140)][_0x5e09f1(0x168)](run,session,userMessage));[_0x5e09f1(0x108)]=new NodeMetrics();[_0x5e09f1(0x132)]=new RunEventService({'runtime':this[_0x5e09f1(0x212)],'metrics':this[_0x5e09f1(0x108)],'state':this[_0x5e09f1(0x154)],'isBootstrapSession':sessionId=>this[_0x5e09f1(0xeb)][_0x5e09f1(0x12e)][_0x5e09f1(0xa5)](sessionId),'presentSession':session=>this[_0x5e09f1(0x15e)][_0x5e09f1(0x22b)](session),'rejectBootstrap':(sessionId,code)=>this[_0x5e09f1(0xeb)][_0x5e09f1(0x205)](sessionId,code),'emitWorkbench':(category,payload)=>{const _0x5d4e2c=_0x5e09f1;if(category===_0x5d4e2c(0xd2)&&isPlainRecord(payload)&&_0x5d4e2c(0x1d3)in payload)this[_0x5d4e2c(0x1fc)](payload[_0x5d4e2c(0x1d3)]);else this[_0x5d4e2c(0x1bc)](category,payload);},'cleanupAttachments':runId=>this[_0x5e09f1(0x185)][_0x5e09f1(0x146)](runId),'expireImages':runId=>this[_0x5e09f1(0x185)][_0x5e09f1(0x1b7)](runId),'scheduleContextRefresh':sessionId=>this[_0x5e09f1(0xc3)][_0x5e09f1(0x227)](sessionId),'refreshWorkspaceSessions':workspaceId=>this[_0x5e09f1(0x1c7)][_0x5e09f1(0x160)](workspaceId,_0x5e09f1(0xbc)),'dispatchQueue':async(sessionId,delayMs=0x1*0x24d5+-0x47*0x51+-0xe5e)=>{const _0x4dc6bc=_0x5e09f1;if(this[_0x4dc6bc(0x172)][_0x4dc6bc(0x233)]())return;if(delayMs>0x456+-0x1f*0x7+-0x2f*0x13){this[_0x4dc6bc(0x15f)][_0x4dc6bc(0x227)](sessionId,delayMs);return;}await this[_0x4dc6bc(0x15f)][_0x4dc6bc(0x131)](sessionId);},'executionStarted':executionId=>this[_0x5e09f1(0x15f)][_0x5e09f1(0x1fb)](executionId),'keepRunActive':sessionId=>(this[_0x5e09f1(0x16e)][_0x5e09f1(0xa5)](sessionId)||this[_0x5e09f1(0x103)][_0x5e09f1(0xa5)](sessionId))&&this[_0x5e09f1(0x209)][_0x5e09f1(0x129)](sessionId)?.[_0x5e09f1(0x149)]===_0x5e09f1(0x1d4),'executionTerminating':(executionId,status)=>{const _0xa794ef=_0x5e09f1,pending=this[_0xa794ef(0x15f)][_0xa794ef(0x233)](executionId);if(pending?.[_0xa794ef(0x16d)]===undefined)return;const started=this[_0xa794ef(0x15f)][_0xa794ef(0x10e)](executionId),blocked=this[_0xa794ef(0x209)][_0xa794ef(0x11d)](pending[_0xa794ef(0x125)],status===_0xa794ef(0x133));if(blocked){this[_0xa794ef(0xc5)](pending[_0xa794ef(0x125)]),this[_0xa794ef(0x15f)][_0xa794ef(0x14e)](pending[_0xa794ef(0x125)]);const terminalMission=this[_0xa794ef(0x209)][_0xa794ef(0x129)](pending[_0xa794ef(0x125)]),session=this[_0xa794ef(0x212)][_0xa794ef(0x231)](pending[_0xa794ef(0x125)]);if(terminalMission!==undefined&&session!==undefined)this[_0xa794ef(0xe0)](session,terminalMission);return;}if(status!==_0xa794ef(0x133)||started)return;this[_0xa794ef(0xc5)](pending[_0xa794ef(0x125)]);const retry={'sessionId':pending[_0xa794ef(0x125)],'timer':setTimeout(()=>{const _0x51d600=_0xa794ef;this[_0x51d600(0x16e)][_0x51d600(0x121)](retry[_0x51d600(0x125)]);const mission=this[_0x51d600(0x209)][_0x51d600(0x129)](retry[_0x51d600(0x125)]);if(mission?.[_0x51d600(0x149)]!==_0x51d600(0x1d4)||mission['id']!==pending[_0x51d600(0x16d)]?.['id']||mission[_0x51d600(0xcc)]!==pending[_0x51d600(0x16d)][_0x51d600(0xcc)])return;void this[_0x51d600(0xcf)][_0x51d600(0x1a0)]({'sessionId':retry[_0x51d600(0x125)],'kind':_0x51d600(0x15c),'content':this[_0x51d600(0x209)][_0x51d600(0x1de)](retry[_0x51d600(0x125)],_0x51d600(0x15c)),'deliveryIntent':_0x51d600(0xf2),'mission':{'id':mission['id'],'revision':mission[_0x51d600(0xcc)]},'secretEnvironment':pending[_0x51d600(0x229)],...pending[_0x51d600(0xba)]===undefined?{}:{'personalInstructions':pending[_0x51d600(0xba)]}})[_0x51d600(0x1c9)](()=>undefined);},-0x15*0x3d1+0xb3*0x1+-0x8a0a*-0x1)};this[_0xa794ef(0x16e)][_0xa794ef(0x1dd)](pending[_0xa794ef(0x125)],retry),retry[_0xa794ef(0xc1)][_0xa794ef(0xd4)]();},'releaseExecution':executionId=>{const _0x464b36=_0x5e09f1;this[_0x464b36(0x1bb)][_0x464b36(0x188)](executionId),this[_0x464b36(0x15f)][_0x464b36(0x20c)](executionId);}});[_0x5e09f1(0xd1)]=new NativeSessionWatchService({'resolve':async sessionId=>this[_0x5e09f1(0x212)][_0x5e09f1(0x231)](sessionId)??this[_0x5e09f1(0xac)][_0x5e09f1(0x16c)](sessionId),'managedActive':session=>hasManagedActiveRun(this[_0x5e09f1(0x212)],session),'suspended':sessionId=>this[_0x5e09f1(0x102)][_0x5e09f1(0x12b)](sessionId),'refreshActivity':session=>this[_0x5e09f1(0xfc)][_0x5e09f1(0xdc)](session),'present':session=>this[_0x5e09f1(0x15e)][_0x5e09f1(0x22b)](session),'readPage':(session,limit)=>this[_0x5e09f1(0xfc)][_0x5e09f1(0x230)](session,{'limit':limit}),'readHistoryPage':(session,limit)=>this[_0x5e09f1(0xfc)][_0x5e09f1(0x1c4)](session,{'limit':limit}),'convergePage':convergeConversationWatchPage,'composeRuntimePage':composeConversationRuntimePage,'projectInitialPage':(session,page,_unit,limit)=>{const _0xc2aa9d=_0x5e09f1,context=this[_0xc2aa9d(0xc3)][_0xc2aa9d(0xa6)](session['id']);return this[_0xc2aa9d(0xc3)][_0xc2aa9d(0x227)](session),{'kind':_0xc2aa9d(0x111),'sequence':this[_0xc2aa9d(0x1e5)][_0xc2aa9d(0x1a1)](),'session':this[_0xc2aa9d(0x15e)][_0xc2aa9d(0x22b)](session),'runs':this[_0xc2aa9d(0x212)][_0xc2aa9d(0xb5)](session['id']),'queue':this[_0xc2aa9d(0x158)][_0xc2aa9d(0xa6)](session['id']),'context':context,'conversation':this[_0xc2aa9d(0x1c6)][_0xc2aa9d(0x225)](session,page,limit)};},'emitSession':session=>this[_0x5e09f1(0xc4)]({'session':session}),'emitPage':(session,page)=>this[_0x5e09f1(0x1f8)](_0x5e09f1(0xd2),{'sessionId':session['id'],'snapshot':this[_0x5e09f1(0x1c6)][_0x5e09f1(0x225)](session,page,-0x166*0x13+0x24da+-0xa3e)}),'nodeId':()=>this[_0x5e09f1(0xb6)]?.[_0x5e09f1(0xa8)]??_0x5e09f1(0xff),'nodeGeneration':()=>this[_0x5e09f1(0xdb)],'emitWatchEvent':payload=>this[_0x5e09f1(0xf6)](_0x5e09f1(0xfd),payload),'log':nodeLog});constructor(_0x469325={}){const _0xf09321=_0x5e09f1;this[_0xf09321(0xb6)]=_0x469325[_0xf09321(0xb6)],this[_0xf09321(0x1d7)]=_0x469325[_0xf09321(0x1d7)],this[_0xf09321(0x1ae)]=_0x469325[_0xf09321(0x1ae)]??CLAUDE_APPROVAL_TIMEOUT_MS,this[_0xf09321(0xd9)]=_0x469325[_0xf09321(0x1d8)]!==undefined,this[_0xf09321(0x1d8)]=_0x469325[_0xf09321(0x1d8)]??unavailableCapabilities(),this[_0xf09321(0x172)]=new NodeUpgradeCoordinator(()=>{const _0x52bb2a=_0xf09321;if(this[_0x52bb2a(0xb6)]===undefined)throw new Error(_0x52bb2a(0x106));return nodeUpgradeRequestPath(nodeDatabasePath(this[_0x52bb2a(0xb6)],this[_0x52bb2a(0x1d7)]));},()=>this[_0xf09321(0x154)][_0xf09321(0x1d4)][_0xf09321(0x17d)],_0x3e1e0f=>{const _0x106aab=_0xf09321;this[_0x106aab(0x1d8)]={...this[_0x106aab(0x1d8)],'metadata':upgradeMetadata(this[_0x106aab(0x1d8)][_0x106aab(0x1f6)],_0x3e1e0f)},this[_0x106aab(0x1f7)]?.[_0x106aab(0xf6)](_0x106aab(0x1d8),this[_0x106aab(0x1d8)]);},_0x469325[_0xf09321(0xa3)]??(()=>{const _0x385f77=_0xf09321;this[_0x385f77(0x14a)](),setImmediate(()=>process[_0x385f77(0x1a2)](-0x1*0x1475+-0x105*0x2+0x1*0x16ca));})),this[_0xf09321(0x1d8)]={...this[_0xf09321(0x1d8)],'metadata':upgradeMetadata(this[_0xf09321(0x1d8)][_0xf09321(0x1f6)],this[_0xf09321(0x172)][_0xf09321(0xa6)]())};const _0x14b389=_0x469325[_0xf09321(0x19a)]??detectCapabilitiesAsync;this[_0xf09321(0x19a)]=async()=>{const _0x25b4e4=_0xf09321,_0xfb2f3d=await _0x14b389();return{..._0xfb2f3d,'metadata':upgradeMetadata(_0xfb2f3d[_0x25b4e4(0x1f6)],this[_0x25b4e4(0x172)][_0x25b4e4(0xa6)]())};},this[_0xf09321(0x115)]=_0x469325[_0xf09321(0x115)]??!![],this[_0xf09321(0x1f9)]=_0x469325[_0xf09321(0x1f9)]===undefined?undefined:new FakeTestRunner(_0x469325[_0xf09321(0x1f9)]),this[_0xf09321(0x1a4)]=_0x469325[_0xf09321(0x1a4)],this[_0xf09321(0x185)]=new RunAttachmentService(_0x1b969a=>this[_0xf09321(0x178)][_0xf09321(0x211)](_0x1b969a[_0xf09321(0x1ab)])[_0xf09321(0x217)](_0x1b969a)),this[_0xf09321(0x10a)]=new CodexRunner(_0x469325[_0xf09321(0x10a)],_0x469325[_0xf09321(0x147)]),this[_0xf09321(0x16f)]=new CodexManagedRunController(this[_0xf09321(0x10a)],{'available':()=>this[_0xf09321(0x1d8)][_0xf09321(0x104)][_0xf09321(0xf5)],'intercepted':()=>this[_0xf09321(0x1f9)]!==undefined,'active':this[_0xf09321(0x154)][_0xf09321(0x1d4)],'addActive':_0x3b498b=>this[_0xf09321(0x154)][_0xf09321(0x1d4)][_0xf09321(0x1da)](_0x3b498b),'removeActive':_0x1726ae=>this[_0xf09321(0x154)][_0xf09321(0x1d4)][_0xf09321(0x121)](_0x1726ae),'adopt':_0x4e1890=>this[_0xf09321(0x212)][_0xf09321(0x9f)](_0x4e1890),'session':_0x55a5f9=>this[_0xf09321(0x212)][_0xf09321(0x231)](_0x55a5f9),'runStatus':_0x26d17a=>this[_0xf09321(0x212)][_0xf09321(0x1b2)](_0x26d17a)?.[_0xf09321(0x149)],'run':_0x38ae80=>this[_0xf09321(0x212)][_0xf09321(0x1b2)](_0x38ae80),'interrupted':_0x5ab136=>this[_0xf09321(0x154)][_0xf09321(0x1ba)][_0xf09321(0xa5)](_0x5ab136),'parseAttachments':parseRunnerImageAttachments,'materialize':(_0x39c48d,_0x1ec6d1)=>this[_0xf09321(0x185)][_0xf09321(0x1ef)](_0x39c48d,_0x1ec6d1),'completeCancelled':_0x1ee5de=>this[_0xf09321(0x1ca)][_0xf09321(0x15d)](_0x1ee5de),'promoteSession':(_0x3f8ae2,_0xf21ed8)=>this[_0xf09321(0xeb)][_0xf09321(0x186)](_0x3f8ae2,_0xf21ed8),'send':(_0x24916b,_0x158a67)=>this[_0xf09321(0xf6)](_0x24916b,_0x158a67),'emit':(_0x399428,_0x1fc763,_0x2711dc,_0xed0355)=>this[_0xf09321(0xce)][_0xf09321(0x1b6)](_0x399428,_0x1fc763,_0x2711dc,_0xed0355),'cancel':(_0x190d22,_0xe8513a,_0x589df9,_0x3d56c8,_0x17059d)=>this[_0xf09321(0x1ca)][_0xf09321(0x198)](_0x190d22,_0xe8513a,_0x589df9,_0x3d56c8,_0x17059d),'createApproval':_0x804f7b=>this[_0xf09321(0x212)][_0xf09321(0x1b5)](_0x804f7b),'publishApproval':_0x3c2721=>this[_0xf09321(0xce)][_0xf09321(0x1e1)](_0x3c2721),'emitItem':(_0x14dba2,_0x5664cf)=>this[_0xf09321(0x1e6)](_0x14dba2,_0x5664cf),'appendImages':(_0x32dfc2,_0x18ee3f)=>this[_0xf09321(0x185)][_0xf09321(0x16b)](_0x32dfc2,_0x18ee3f[_0xf09321(0x18f)](isRunnerImageAttachment)),'syncTitle':(_0xd1ef4,_0x156f3a,_0x106993)=>this[_0xf09321(0x1d9)][_0xf09321(0xd8)](_0xd1ef4,_0x156f3a,_0x106993),'commandState':(_0x196d33,_0x37412d)=>this[_0xf09321(0x151)][_0xf09321(0x129)](_0x196d33,_0x37412d),'setCommandState':(_0x5e81e8,_0x291afb)=>this[_0xf09321(0x151)][_0xf09321(0x1dd)](_0x5e81e8,_0x291afb),'clearCommandState':(_0x1d3c9f,_0x5bff3d)=>this[_0xf09321(0x151)][_0xf09321(0x163)](_0x1d3c9f,_0x5bff3d),'commandStates':_0x1f1594=>this[_0xf09321(0x151)][_0xf09321(0x1b4)](_0x1f1594),'hasActiveSessionLease':_0x1253b0=>this[_0xf09321(0x212)][_0xf09321(0x126)](_0x1253b0),'fast':_0x9c69c6=>this[_0xf09321(0xad)](_0xf09321(0xe6),{'runner':_0xf09321(0x104),'commandId':_0xf09321(0xaa),'input':_0x9c69c6})}),this[_0xf09321(0x10a)][_0xf09321(0x197)](_0x4fda84=>this[_0xf09321(0x16f)][_0xf09321(0xbb)](_0x4fda84)),this[_0xf09321(0x14d)]=new ClaudeCodeRunner(_0x469325[_0xf09321(0x14d)]),this[_0xf09321(0x1f3)]=new OpenCodeRunner(_0x469325[_0xf09321(0x1f3)]),this[_0xf09321(0x1e7)]=new MarAgentRunner(),this[_0xf09321(0x123)]=new MarAgentManagedRunController(this[_0xf09321(0x1e7)],{'active':this[_0xf09321(0x154)][_0xf09321(0x1d4)],'adopt':_0x3c86b2=>this[_0xf09321(0x212)][_0xf09321(0x9f)](_0x3c86b2),'promote':(_0x45f767,_0x446942)=>this[_0xf09321(0xeb)][_0xf09321(0x186)](_0x45f767,_0x446942),'syncTitle':(_0x524862,_0x240033)=>this[_0xf09321(0x1d9)][_0xf09321(0xd8)](_0x524862,_0x524862,_0x240033),'emit':(_0x4de955,_0xc3b279,_0x4fa221,_0x57ab02)=>this[_0xf09321(0xce)][_0xf09321(0x1b6)](_0x4de955,_0xc3b279,_0x4fa221,_0x57ab02),'emitItem':(_0x51f586,_0x530346)=>this[_0xf09321(0x1e6)](_0x51f586,_0x530346),'createApproval':_0x4a33b7=>this[_0xf09321(0x212)][_0xf09321(0x1b5)](_0x4a33b7),'publishApproval':_0x184f91=>this[_0xf09321(0xce)][_0xf09321(0x1e1)](_0x184f91),'run':_0x4ee5bb=>this[_0xf09321(0x212)][_0xf09321(0x1b2)](_0x4ee5bb),'commandState':(_0x22a4e3,_0x150ea4)=>this[_0xf09321(0x151)][_0xf09321(0x129)](_0x22a4e3,_0x150ea4),'setCommandState':(_0x231601,_0xcac54a)=>this[_0xf09321(0x151)][_0xf09321(0x1dd)](_0x231601,_0xcac54a),'clearCommandState':(_0xe4997d,_0x55c388)=>this[_0xf09321(0x151)][_0xf09321(0x163)](_0xe4997d,_0x55c388),'commandStates':_0x529e84=>this[_0xf09321(0x151)][_0xf09321(0x1b4)](_0x529e84),'webSearch':(_0x239d05,_0x2966b0)=>this[_0xf09321(0x166)](_0x239d05,_0x2966b0)}),this[_0xf09321(0x1e7)][_0xf09321(0xa7)](_0x10d141=>this[_0xf09321(0x123)][_0xf09321(0x235)](_0x10d141)),this[_0xf09321(0xf9)]=new OpenCodeManagedRunController(this[_0xf09321(0x1f3)],{'intercepted':()=>this[_0xf09321(0x1f9)]!==undefined,'active':this[_0xf09321(0x154)][_0xf09321(0x1d4)],'parseAttachments':parseRunnerImageAttachments,'persistAttachments':(_0xe415ed,_0x23d767,_0x200cb3)=>this[_0xf09321(0x185)][_0xf09321(0x21e)](_0xe415ed,_0x23d767+_0xf09321(0x1dc),_0x200cb3),'emit':(_0x12905c,_0x44794e,_0x568456,_0xd709b3)=>this[_0xf09321(0xce)][_0xf09321(0x1b6)](_0x12905c,_0x44794e,_0x568456,_0xd709b3),'emitItem':(_0xb859b0,_0x57966f)=>this[_0xf09321(0x1e6)](_0xb859b0,_0x57966f),'adopt':_0x598f67=>this[_0xf09321(0x212)][_0xf09321(0x9f)](_0x598f67),'run':_0x142c43=>{const _0x127f7b=_0xf09321,_0x3d112f=this[_0x127f7b(0x212)][_0x127f7b(0x1b2)](_0x142c43);if(_0x3d112f===undefined)throw new Error(_0x127f7b(0x1f0));return _0x3d112f;},'hasActiveSessionLease':_0x184107=>this[_0xf09321(0x212)][_0xf09321(0x126)](_0x184107),'promote':(_0x466f66,_0x12ea9f)=>this[_0xf09321(0xeb)][_0xf09321(0x186)](_0x466f66,_0x12ea9f),'rememberNative':(_0x282126,_0x59abf2)=>this[_0xf09321(0x1d9)][_0xf09321(0x11b)](_0x282126,_0x59abf2),'send':(_0x43d5e4,_0x5f912f)=>this[_0xf09321(0xf6)](_0x43d5e4,_0x5f912f),'createApproval':_0x2399db=>this[_0xf09321(0x212)][_0xf09321(0x1b5)](_0x2399db),'expireApproval':_0xcf9802=>{const _0x7b143a=_0xf09321;this[_0x7b143a(0x212)][_0x7b143a(0xb9)](_0xcf9802);},'publishApproval':_0x5b9e17=>this[_0xf09321(0xce)][_0xf09321(0x1e1)](_0x5b9e17),'commandState':(_0x45d6df,_0x5c50ba)=>this[_0xf09321(0x151)][_0xf09321(0x129)](_0x45d6df,_0x5c50ba),'setCommandState':(_0x15aa18,_0x4e8dfc)=>this[_0xf09321(0x151)][_0xf09321(0x1dd)](_0x15aa18,_0x4e8dfc),'clearCommandState':(_0x27aa0b,_0x5ae792)=>this[_0xf09321(0x151)][_0xf09321(0x163)](_0x27aa0b,_0x5ae792),'commandStates':_0x1ab39d=>this[_0xf09321(0x151)][_0xf09321(0x1b4)](_0x1ab39d)},this[_0xf09321(0x1ae)]),this[_0xf09321(0xa0)]=new ClaudeManagedRunController(this[_0xf09321(0x14d)],{'intercepted':()=>this[_0xf09321(0x1f9)]!==undefined,'active':this[_0xf09321(0x154)][_0xf09321(0x1d4)],'parseAttachments':parseRunnerImageAttachments,'emit':(_0x50a4ef,_0x1620bf,_0x1076e0,_0x23bb16)=>this[_0xf09321(0xce)][_0xf09321(0x1b6)](_0x50a4ef,_0x1620bf,_0x1076e0,_0x23bb16),'adopt':_0x5c5923=>this[_0xf09321(0x212)][_0xf09321(0x9f)](_0x5c5923),'run':_0x274216=>this[_0xf09321(0x212)][_0xf09321(0x1b2)](_0x274216),'hasActiveSessionLease':_0x3a68e4=>this[_0xf09321(0x212)][_0xf09321(0x126)](_0x3a68e4),'session':_0x403dd6=>this[_0xf09321(0x212)][_0xf09321(0x231)](_0x403dd6),'completeCancelled':_0x4bc7c1=>this[_0xf09321(0x1ca)][_0xf09321(0x15d)](_0x4bc7c1),'requestUserInput':(_0x491193,_0x272849,_0x5381d9)=>this[_0xf09321(0x1ca)][_0xf09321(0xd5)](_0x491193,_0x272849,_0x5381d9),'requestApproval':(_0x46c610,_0x5e4a1a,_0x1ce3f9)=>this[_0xf09321(0x1ca)][_0xf09321(0xc0)](_0x46c610,_0x5e4a1a,_0x1ce3f9),'rememberNative':(_0x383eae,_0x543f72)=>this[_0xf09321(0x1d9)][_0xf09321(0x11b)](_0x383eae,_0x543f72),'promote':(_0x47df41,_0x1edf05)=>this[_0xf09321(0xeb)][_0xf09321(0x186)](_0x47df41,_0x1edf05),'send':(_0x30426c,_0x33096d)=>this[_0xf09321(0xf6)](_0x30426c,_0x33096d),'emitItem':(_0x42fe7f,_0x36ac6a)=>this[_0xf09321(0x1e6)](_0x42fe7f,_0x36ac6a),'syncTitle':(_0x392a0f,_0x164cb6,_0x334bb8)=>this[_0xf09321(0x1d9)][_0xf09321(0xd8)](_0x392a0f,_0x164cb6,_0x334bb8),'setChannelToken':(_0x139584,_0x272a70)=>this[_0xf09321(0x212)][_0xf09321(0xe5)](_0x139584,_0x272a70),'commandState':(_0x183b65,_0x210e73)=>this[_0xf09321(0x151)][_0xf09321(0x129)](_0x183b65,_0x210e73),'setCommandState':(_0x111e44,_0x2ca35d)=>this[_0xf09321(0x151)][_0xf09321(0x1dd)](_0x111e44,_0x2ca35d),'clearCommandState':(_0x46bb3b,_0xf7649e)=>this[_0xf09321(0x151)][_0xf09321(0x163)](_0x46bb3b,_0xf7649e),'commandStates':_0x4711f3=>this[_0xf09321(0x151)][_0xf09321(0x1b4)](_0x4711f3)}),this[_0xf09321(0x178)]=new RunnerRegistry([this[_0xf09321(0x1f3)],this[_0xf09321(0x1e7)],this[_0xf09321(0x10a)],this[_0xf09321(0x14d)],...this[_0xf09321(0x1f9)]===undefined?[]:[this[_0xf09321(0x1f9)]]]),this[_0xf09321(0x1d9)]=new ManagedRunnerSessionService(this[_0xf09321(0x212)],this[_0xf09321(0x178)],_0x1b877d=>this[_0xf09321(0xc4)]({'session':this[_0xf09321(0x15e)][_0xf09321(0x22b)](_0x1b877d)})),this[_0xf09321(0x1ca)]=new RunnerInteractionService({'runtime':this[_0xf09321(0x212)],'state':this[_0xf09321(0x154)],'codex':()=>this[_0xf09321(0x10a)],'claude':()=>this[_0xf09321(0x14d)],'runners':this[_0xf09321(0x178)],'emitRun':(_0x26b091,_0x58c349,_0x37aae3,_0x386cdb)=>this[_0xf09321(0xce)][_0xf09321(0x1b6)](_0x26b091,_0x58c349,_0x37aae3,_0x386cdb),'emitItem':(_0x14990d,_0x267bf4)=>this[_0xf09321(0x1e6)](_0x14990d,_0x267bf4),'approvalTimeoutMs':this[_0xf09321(0x1ae)],'publishApproval':_0x114b03=>this[_0xf09321(0xce)][_0xf09321(0x1e1)](_0x114b03)}),this[_0xf09321(0x1d0)]=new RunnerChannelMessageService({'interactions':this[_0xf09321(0x1ca)],'send':(_0x3e81b9,_0x3f5c3a,_0x3a58a9)=>this[_0xf09321(0xf6)](_0x3e81b9,_0x3f5c3a,_0x3a58a9)}),this[_0xf09321(0x15e)]=new SessionPresentationService({'database':()=>this[_0xf09321(0x1f1)],'runtime':this[_0xf09321(0x212)],'commands':this[_0xf09321(0x151)],'runners':this[_0xf09321(0x178)],'capabilities':()=>this[_0xf09321(0x1d8)],'hasManagedActiveRun':_0x385399=>hasManagedActiveRun(this[_0xf09321(0x212)],_0x385399),'externalActivity':_0x1ea33d=>this[_0xf09321(0xbf)][_0xf09321(0x12f)][_0xf09321(0x129)](_0x1ea33d),'projectionForNative':_0x1745ce=>this[_0xf09321(0xac)][_0xf09321(0x17b)](_0x1745ce)}),this[_0xf09321(0xac)]=new NativeSessionProjectionService({'database':()=>this[_0xf09321(0x1f1)],'nodeId':()=>this[_0xf09321(0xb6)]?.[_0xf09321(0xa8)]??_0xf09321(0x19e),'runtime':this[_0xf09321(0x212)],'runners':this[_0xf09321(0x178)],'capabilities':()=>this[_0xf09321(0x1d8)],'state':this[_0xf09321(0xbf)],'commands':this[_0xf09321(0x151)],'present':_0x5ace20=>this[_0xf09321(0x15e)][_0xf09321(0x22b)](_0x5ace20)}),this[_0xf09321(0xfc)]=new ConversationHistoryService({'runtime':this[_0xf09321(0x212)],'runners':this[_0xf09321(0x178)],'capabilities':()=>this[_0xf09321(0x1d8)],'attachments':this[_0xf09321(0x185)],'snapshotSequence':()=>this[_0xf09321(0x1e5)][_0xf09321(0x1a1)](),'hasManagedActiveRun':_0x5359fd=>hasManagedActiveRun(this[_0xf09321(0x212)],_0x5359fd),'setExternalActivity':(_0x2a5bfd,_0x3b5269)=>this[_0xf09321(0xbf)][_0xf09321(0x12f)][_0xf09321(0x1dd)](_0x2a5bfd,_0x3b5269)}),this[_0xf09321(0x1c6)]=new ConversationSegmentService((_0x1d51d2,_0x469893)=>this[_0xf09321(0xfc)][_0xf09321(0x230)](_0x1d51d2,_0x469893)),this[_0xf09321(0xc3)]=new SessionContextService({'runners':this[_0xf09321(0x178)],'session':_0x52629a=>this[_0xf09321(0x212)][_0xf09321(0x231)](_0x52629a),'stopped':()=>this[_0xf09321(0xdd)],'publish':_0x4d3fac=>this[_0xf09321(0xc4)](_0x4d3fac)}),this[_0xf09321(0x1e0)]=new RunWorkbenchService({'runtime':this[_0xf09321(0x212)],'readImage':async(_0x107cae,_0x2fbe5e)=>this[_0xf09321(0x185)][_0xf09321(0x230)](_0x107cae,_0x2fbe5e)??await this[_0xf09321(0x185)][_0xf09321(0x117)](_0x107cae,_0x2fbe5e),'respondUserInput':(_0x364c21,_0x1e1a69,_0x185611)=>this[_0xf09321(0x1ca)][_0xf09321(0x1ac)](_0x364c21,_0x1e1a69,_0x185611),'pauseQueue':_0x3d691c=>this[_0xf09321(0x158)][_0xf09321(0x114)](_0x3d691c),'emitRun':(_0x5b19a0,_0x2924b3,_0x59fd6c,_0x3dcea0)=>this[_0xf09321(0xce)][_0xf09321(0x1b6)](_0x5b19a0,_0x2924b3,_0x59fd6c,_0x3dcea0),'control':(_0x5419c2,_0x322177)=>this[_0xf09321(0x22c)][_0xf09321(0x182)](JSON[_0xf09321(0x118)](createEnvelope(_0x5419c2,_0x322177))),'markInterrupted':_0x50a9a0=>this[_0xf09321(0x154)][_0xf09321(0x1ba)][_0xf09321(0x1da)](_0x50a9a0)}),this[_0xf09321(0x183)]=new SessionQueryService({'runtime':this[_0xf09321(0x212)],'runners':this[_0xf09321(0x178)],'resolve':_0x186515=>this[_0xf09321(0xac)][_0xf09321(0xd6)](_0x186515),'present':_0x1da6ba=>this[_0xf09321(0x15e)][_0xf09321(0x22b)](_0x1da6ba),'history':(_0x3a0bc1,_0x5a08e6)=>this[_0xf09321(0xfc)][_0xf09321(0x230)](_0x3a0bc1,_0x5a08e6),'segments':(_0x5ea1d1,_0x2a630d)=>this[_0xf09321(0x1c6)][_0xf09321(0x230)](_0x5ea1d1,_0x2a630d),'context':this[_0xf09321(0xc3)],'discover':(_0x33eb75,_0x5bdb0b)=>this[_0xf09321(0xac)][_0xf09321(0x180)](_0x33eb75,_0x5bdb0b),'workspaceIdForCwd':_0x34b869=>this[_0xf09321(0x1f1)]?.[_0xf09321(0x22e)]()[_0xf09321(0x9d)](_0x149f2d=>_0x149f2d[_0xf09321(0x195)]===_0x34b869)?.['id']}),this[_0xf09321(0x15f)]=new ContinuousRunCoordinator({'runtime':this[_0xf09321(0x212)],'emitQueue':(_0x1f00fc,_0x3de836)=>this[_0xf09321(0xce)][_0xf09321(0xcd)](_0x1f00fc,_0x3de836),'clearImages':_0x3bdf33=>this[_0xf09321(0x185)][_0xf09321(0x163)](_0x3bdf33),'cleanupAttachments':_0x4c498e=>this[_0xf09321(0x185)][_0xf09321(0x146)](_0x4c498e),'migrateAssets':(_0xc460eb,_0x5f09dd)=>this[_0xf09321(0x185)][_0xf09321(0xae)](_0xc460eb,_0x5f09dd),'emitRun':(_0x265075,_0x4a29bd,_0x26cada,_0x2c9ac6)=>this[_0xf09321(0xce)][_0xf09321(0x1b6)](_0x265075,_0x4a29bd,_0x26cada,_0x2c9ac6),'emitConversation':_0xe41a5d=>this[_0xf09321(0x1fc)](_0xe41a5d),'control':(_0x519c9f,_0x21261f)=>this[_0xf09321(0x22c)][_0xf09321(0x182)](JSON[_0xf09321(0x118)](createEnvelope(_0x519c9f,_0x21261f))),'stopped':()=>this[_0xf09321(0xdd)],'markInterrupted':_0xe139cc=>this[_0xf09321(0x154)][_0xf09321(0x1ba)][_0xf09321(0x1da)](_0xe139cc),'mcps':_0x4879d2=>this[_0xf09321(0x1f1)]?.[_0xf09321(0xb8)](_0x4879d2)??[],'afterExecutionStarted':async _0x1f3aef=>{const _0x4d89ca=_0xf09321;if(_0x1f3aef[_0x4d89ca(0x16d)]===undefined)return;const _0x103b7f=this[_0x4d89ca(0x209)][_0x4d89ca(0x129)](_0x1f3aef[_0x4d89ca(0x125)]);if(_0x103b7f?.[_0x4d89ca(0x149)]!==_0x4d89ca(0x1d4)||_0x103b7f['id']!==_0x1f3aef[_0x4d89ca(0x16d)]['id']||_0x103b7f[_0x4d89ca(0xcc)]!==_0x1f3aef[_0x4d89ca(0x16d)][_0x4d89ca(0xcc)])return;const _0x2b09c6=this[_0x4d89ca(0x209)][_0x4d89ca(0x13c)](_0x1f3aef[_0x4d89ca(0x125)]),_0xd49e45=this[_0x4d89ca(0x212)][_0x4d89ca(0x231)](_0x1f3aef[_0x4d89ca(0x125)]);if(_0x2b09c6!==undefined&&_0xd49e45!==undefined)this[_0x4d89ca(0xe0)](_0xd49e45,_0x2b09c6);await this[_0x4d89ca(0x159)]({'sessionId':_0x1f3aef[_0x4d89ca(0x125)],'mission':{'id':_0x103b7f['id'],'revision':_0x103b7f[_0x4d89ca(0xcc)]},'secretEnvironment':_0x1f3aef[_0x4d89ca(0x229)],..._0x1f3aef[_0x4d89ca(0xba)]===undefined?{}:{'personalInstructions':_0x1f3aef[_0x4d89ca(0xba)]}});},'missionMcp':async _0x1ffea4=>{const _0x27b6ac=_0xf09321;if(_0x1ffea4[_0x27b6ac(0x16d)]===undefined)throw new Error(_0x27b6ac(0xfb));const _0x893602=await this[_0x27b6ac(0x1bb)][_0x27b6ac(0x19f)]({'executionId':_0x1ffea4[_0x27b6ac(0x112)],'sessionId':_0x1ffea4[_0x27b6ac(0x125)],'missionId':_0x1ffea4[_0x27b6ac(0x16d)]['id'],'revision':_0x1ffea4[_0x27b6ac(0x16d)][_0x27b6ac(0xcc)]});return{'installation':{'targetKind':_0x27b6ac(0x22d),'targetId':_0x1ffea4[_0x27b6ac(0x213)],'catalogEntryId':_0x27b6ac(0xee),'serverName':_0x27b6ac(0x219),'displayName':_0x27b6ac(0x120),'version':_0x27b6ac(0x18a),'enabled':!![],'runtime':{'transport':_0x27b6ac(0x1a8),'url':_0x27b6ac(0x210),'headers':{}},'configuration':_0x893602[_0x27b6ac(0x19f)],'installedAt':Date[_0x27b6ac(0x199)](),..._0x893602[_0x27b6ac(0x19f)]},'secrets':_0x893602[_0x27b6ac(0x100)]};}}),this[_0xf09321(0x158)]=new WorkspaceQueueWorkbenchService({'runtime':this[_0xf09321(0x212)],'coordinator':this[_0xf09321(0x15f)],'emit':(_0x35c14f,_0x15ed18)=>this[_0xf09321(0xce)][_0xf09321(0xcd)](_0x35c14f,_0x15ed18),'prepareInput':(_0x5f16fe,_0x26389a,_0x5b2533)=>this[_0xf09321(0x178)][_0xf09321(0x211)](_0x5f16fe)[_0xf09321(0xa9)](_0x26389a,_0x5b2533)}),this[_0xf09321(0xeb)]=new SessionIdentityService({'runtime':this[_0xf09321(0x212)],'persist':(_0x5c8fb6,_0x73cd47)=>{const _0x3e86c6=_0xf09321;if(_0x5c8fb6[_0x3e86c6(0x1ed)]===null||_0x5c8fb6[_0x3e86c6(0x1bf)]===null||_0x5c8fb6[_0x3e86c6(0x1d2)]===null)return;this[_0x3e86c6(0x1f1)]?.[_0x3e86c6(0x218)]({'runner':_0x5c8fb6[_0x3e86c6(0x1ab)],'externalSessionId':_0x73cd47,'workspaceId':_0x5c8fb6[_0x3e86c6(0x213)],'model':_0x5c8fb6[_0x3e86c6(0x1ed)],'effort':_0x5c8fb6[_0x3e86c6(0x1bf)],'access':_0x5c8fb6[_0x3e86c6(0x1d2)]});},'migrateCommands':(_0x286b9a,_0x3e6dd1)=>this[_0xf09321(0x151)][_0xf09321(0x1ce)](_0x286b9a,_0x3e6dd1),'migrateMission':(_0x382809,_0x515f6e)=>{const _0xf609b7=_0xf09321;this[_0xf609b7(0x209)][_0xf609b7(0x165)](_0x382809,_0x515f6e),this[_0xf609b7(0x1bb)][_0xf609b7(0x165)](_0x382809,_0x515f6e);const _0x3cf40f=this[_0xf609b7(0x16e)][_0xf609b7(0x129)](_0x382809);_0x3cf40f!==undefined&&(this[_0xf609b7(0x16e)][_0xf609b7(0x121)](_0x382809),_0x3cf40f[_0xf609b7(0x125)]=_0x515f6e,this[_0xf609b7(0x16e)][_0xf609b7(0x1dd)](_0x515f6e,_0x3cf40f));const _0x2bdeb6=this[_0xf609b7(0x103)][_0xf609b7(0x129)](_0x382809);_0x2bdeb6!==undefined&&(this[_0xf609b7(0x103)][_0xf609b7(0x121)](_0x382809),this[_0xf609b7(0x103)][_0xf609b7(0x1dd)](_0x515f6e,_0x2bdeb6));},'migrateQueue':(_0x3e5631,_0x4cdaf0)=>this[_0xf09321(0x15f)][_0xf09321(0x165)](_0x3e5631,_0x4cdaf0),'migrateRunnerState':(_0xa76024,_0x518288)=>this[_0xf09321(0xce)][_0xf09321(0x10f)](_0xa76024,_0x518288),'emitSession':_0x50c5ba=>this[_0xf09321(0xc4)]({'session':_0x50c5ba}),'emitRun':_0x2593e4=>this[_0xf09321(0x1f8)](_0xf09321(0x143),{'run':_0x2593e4}),'emitQueue':_0x4b0da5=>this[_0xf09321(0x15f)][_0xf09321(0x1fa)](_0x4b0da5),'emitTurn':_0x3396e6=>this[_0xf09321(0x1fc)](_0x3396e6)}),this[_0xf09321(0x1e8)]=new SessionLifecycleService({'database':()=>{const _0x574a6a=_0xf09321;if(this[_0x574a6a(0x1f1)]===undefined)throw new Error(_0x574a6a(0xe1));return this[_0x574a6a(0x1f1)];},'runtime':this[_0xf09321(0x212)],'runners':this[_0xf09321(0x178)],'projection':this[_0xf09321(0xac)],'identity':this[_0xf09321(0xeb)],'present':_0xb2acad=>this[_0xf09321(0x15e)][_0xf09321(0x22b)](_0xb2acad),'emitSession':_0x2dc31f=>this[_0xf09321(0xc4)]({'session':this[_0xf09321(0x15e)][_0xf09321(0x22b)](_0x2dc31f)}),'execute':(_0x4653e7,_0x1d2d46)=>this[_0xf09321(0xad)](_0x4653e7,_0x1d2d46),'interceptedSessionId':_0x2c5eaf=>this[_0xf09321(0x1f9)]===undefined?undefined:_0xf09321(0x145)+_0x2c5eaf}),this[_0xf09321(0x102)]=new ExternalSessionResumeService({'runtime':this[_0xf09321(0x212)],'runners':this[_0xf09321(0x178)],'state':this[_0xf09321(0xbf)],'available':_0x7b4725=>this[_0xf09321(0x178)][_0xf09321(0x211)](_0x7b4725)[_0xf09321(0xf5)](this[_0xf09321(0x1d8)]),'projectionFor':_0x41022f=>this[_0xf09321(0xac)][_0xf09321(0x17b)](_0x41022f),'managedAliasFor':_0x4750c2=>this[_0xf09321(0xac)][_0xf09321(0x196)](_0x4750c2),'ensureConfiguration':_0x5b3099=>this[_0xf09321(0xac)][_0xf09321(0xc7)](_0x5b3099),'configuration':_0x6a35f8=>this[_0xf09321(0xac)][_0xf09321(0xe8)](_0x6a35f8),'workspacePath':_0x2356b4=>this[_0xf09321(0x1f1)]?.[_0xf09321(0x1cd)](_0x2356b4)?.[_0xf09321(0x195)],'rememberNative':(_0xfe2695,_0x34f1e2)=>this[_0xf09321(0x1d9)][_0xf09321(0x11b)](_0xfe2695,_0x34f1e2),'stage':_0x4693d1=>{const _0x124522=_0xf09321,_0x1c2e6d=this[_0x124522(0xac)][_0x124522(0xe8)](_0x4693d1);return this[_0x124522(0x212)][_0x124522(0x20b)]({'workspaceId':_0x4693d1[_0x124522(0x213)],'runner':_0x4693d1[_0x124522(0x1ab)],'externalSessionId':_0x4693d1[_0x124522(0xd0)]??_0x4693d1['id'],'nativeControl':_0x124522(0x116),'cwd':_0x4693d1[_0x124522(0x184)],'model':_0x1c2e6d[_0x124522(0x1ed)],'effort':_0x1c2e6d[_0x124522(0x1bf)],'access':_0x1c2e6d[_0x124522(0x1d2)],..._0x4693d1[_0x124522(0x11e)]===null?{}:{'title':_0x4693d1[_0x124522(0x11e)]},..._0x4693d1[_0x124522(0xa4)]===null?{}:{'customTitle':_0x4693d1[_0x124522(0xa4)]}});},'resolve':_0x3096c1=>this[_0xf09321(0xac)][_0xf09321(0xd6)](_0x3096c1)}),this[_0xf09321(0x14c)]=new SessionCommandService({'runtime':this[_0xf09321(0x212)],'runners':this[_0xf09321(0x178)],'projection':this[_0xf09321(0xac)],'resume':this[_0xf09321(0x102)],'profiles':()=>this[_0xf09321(0xab)][_0xf09321(0x174)](),'present':_0x1ce8f1=>this[_0xf09321(0x15e)][_0xf09321(0x22b)](_0x1ce8f1),'resumeQueueAfterCommandRun':_0x13e7d6=>this[_0xf09321(0x158)][_0xf09321(0x13a)](_0x13e7d6),'beginMission':_0x4fb0db=>{const _0x2fc217=_0xf09321,_0x5f55af=this[_0x2fc217(0x151)][_0x2fc217(0x129)](_0x4fb0db['id'],_0x2fc217(0x16d));if(_0x5f55af?.[_0x2fc217(0x1d4)]===!![])return{'session':this[_0x2fc217(0x15e)][_0x2fc217(0x22b)](_0x4fb0db),'missionAlreadyActive':!![]};_0x5f55af!==undefined&&(this[_0x2fc217(0x209)][_0x2fc217(0x163)](_0x4fb0db['id']),this[_0x2fc217(0x151)][_0x2fc217(0x163)](_0x4fb0db['id'],_0x2fc217(0x16d)));const _0x5cb03c=this[_0x2fc217(0x10d)](_0x4fb0db);return this[_0x2fc217(0x15f)][_0x2fc217(0x234)](_0x4fb0db['id']),this[_0x2fc217(0x151)][_0x2fc217(0x1dd)](_0x4fb0db['id'],this[_0x2fc217(0xbd)]()),this[_0x2fc217(0x1f8)](_0x2fc217(0x21d),{'session':this[_0x2fc217(0x15e)][_0x2fc217(0x22b)](_0x5cb03c[_0x2fc217(0x21d)])}),{'session':this[_0x2fc217(0x15e)][_0x2fc217(0x22b)](_0x5cb03c[_0x2fc217(0x21d)]),'missionAccessChanged':_0x5cb03c[_0x2fc217(0x167)]};},'mission':async({session:_0x231adc,objective:_0xb3c023,secretEnvironment:_0x4b478d,personalInstructions:_0x55caf3})=>{const _0x322841=_0xf09321;this[_0x322841(0xc5)](_0x231adc['id']);const _0x471bac=this[_0x322841(0x10d)](_0x231adc),_0x3d637d=_0x471bac[_0x322841(0x21d)],_0x2dca07=this[_0x322841(0x209)][_0x322841(0x129)](_0x231adc['id'])?.[_0x322841(0x149)]===_0x322841(0x1d4);this[_0x322841(0x15f)][_0x322841(0x14e)](_0x231adc['id']);const _0x3bec50=this[_0x322841(0x209)][_0x322841(0x1a6)](_0x231adc['id'],_0xb3c023);this[_0x322841(0xe0)](_0x3d637d,_0x3bec50);const _0x164053=await this[_0x322841(0xcf)][_0x322841(0x1a0)]({'sessionId':_0x231adc['id'],'kind':_0x322841(0x1a6),'content':this[_0x322841(0x209)][_0x322841(0x1de)](_0x231adc['id'],_0x322841(0x1a6)),'deliveryIntent':_0x2dca07?_0x322841(0x21a):_0x322841(0xf2),'mission':{'id':_0x3bec50['id'],'revision':_0x3bec50[_0x322841(0xcc)]},'secretEnvironment':_0x4b478d,..._0x55caf3===undefined?{}:{'personalInstructions':_0x55caf3}});return{...isPlainRecord(_0x164053)?_0x164053:{'result':_0x164053},'missionAccessChanged':_0x471bac[_0x322841(0x167)]};},'clearMission':_0x1cdcfe=>{const _0x1ca473=_0xf09321;return this[_0x1ca473(0xc5)](_0x1cdcfe['id']),this[_0x1ca473(0x209)][_0x1ca473(0x163)](_0x1cdcfe['id']),this[_0x1ca473(0x15f)][_0x1ca473(0x14e)](_0x1cdcfe['id']),this[_0x1ca473(0x1e9)](_0x1cdcfe['id'],_0x1ca473(0x139)),this[_0x1ca473(0x151)][_0x1ca473(0x163)](_0x1cdcfe['id'],_0x1ca473(0x16d)),this[_0x1ca473(0x1f8)](_0x1ca473(0x21d),{'session':this[_0x1ca473(0x15e)][_0x1ca473(0x22b)](_0x1cdcfe)}),{'session':this[_0x1ca473(0x15e)][_0x1ca473(0x22b)](_0x1cdcfe),'cleared':!![]};}}),this[_0xf09321(0xcf)]=new SessionMessageService({'runtime':this[_0xf09321(0x212)],'uploads':this[_0xf09321(0x175)],'attachments':this[_0xf09321(0x185)],'commands':this[_0xf09321(0x151)],'coordinator':this[_0xf09321(0x15f)],'runners':this[_0xf09321(0x178)],'resolve':_0x1de8fa=>this[_0xf09321(0x102)][_0xf09321(0x1ad)](_0x1de8fa),'present':_0x32bfd8=>this[_0xf09321(0x15e)][_0xf09321(0x22b)](_0x32bfd8),'emitSession':_0x563261=>this[_0xf09321(0xc4)]({'session':this[_0xf09321(0x15e)][_0xf09321(0x22b)](_0x563261)}),'channelToken':_0x2cbc70=>{const _0x566da5=_0xf09321,_0x5992db=this[_0x566da5(0x212)][_0x566da5(0x231)](_0x2cbc70);return _0x5992db?.[_0x566da5(0x1be)]??undefined;},'missionMessage':(_0xc8aa54,_0x13eb70)=>{const _0x230602=_0xf09321,_0x2418db=this[_0x230602(0x151)][_0x230602(0x129)](_0xc8aa54['id'],_0x230602(0x16d));if(_0x2418db?.[_0x230602(0x1d4)]!==!![])return undefined;const _0xa8391=this[_0x230602(0x209)][_0x230602(0x129)](_0xc8aa54['id']);if(_0xa8391?.[_0x230602(0x149)]===_0x230602(0x1d4))return{'runnerContent':_0x13eb70,'mission':{'id':_0xa8391['id'],'revision':_0xa8391[_0x230602(0xcc)]},'activated':![]};const _0x2deca2=this[_0x230602(0x209)][_0x230602(0x1a6)](_0xc8aa54['id'],_0x13eb70);return this[_0x230602(0xe0)](_0xc8aa54,_0x2deca2),{'runnerContent':this[_0x230602(0x209)][_0x230602(0x1de)](_0xc8aa54['id'],_0x230602(0x1a6)),'mission':{'id':_0x2deca2['id'],'revision':_0x2deca2[_0x230602(0xcc)]},'activated':!![]};},'prepareMissionInsertion':(_0x148a73,_0x5dc2e6)=>this[_0xf09321(0x15f)][_0xf09321(0x234)](_0x148a73,_0x5dc2e6),'missionPreparationFailed':(_0x13740e,_0x160fe7,_0x1def99)=>{const _0x558b83=_0xf09321;if(!_0x1def99)return;const _0x34e38c=this[_0x558b83(0x209)][_0x558b83(0x129)](_0x13740e['id']);if(_0x34e38c?.['id']!==_0x160fe7['id']||_0x34e38c[_0x558b83(0xcc)]!==_0x160fe7[_0x558b83(0xcc)])return;this[_0x558b83(0x209)][_0x558b83(0x163)](_0x13740e['id']),this[_0x558b83(0x1e9)](_0x13740e['id'],_0x558b83(0x133)),this[_0x558b83(0x151)][_0x558b83(0x1dd)](_0x13740e['id'],this[_0x558b83(0xbd)]()),this[_0x558b83(0x1f8)](_0x558b83(0x21d),{'session':this[_0x558b83(0x15e)][_0x558b83(0x22b)](_0x13740e)});}}),this[_0xf09321(0x203)]=new SessionCatalogService({'database':()=>{const _0x145923=_0xf09321;if(this[_0x145923(0x1f1)]===undefined)throw new Error(_0x145923(0xe1));return this[_0x145923(0x1f1)];},'nodeId':()=>this[_0xf09321(0xb6)]?.[_0xf09321(0xa8)]??_0xf09321(0x19e),'runtime':this[_0xf09321(0x212)],'runners':this[_0xf09321(0x178)],'projection':this[_0xf09321(0xac)],'resume':this[_0xf09321(0x102)],'cachedNative':()=>[...this[_0xf09321(0xbf)][_0xf09321(0x11f)][_0xf09321(0x13b)]()],'cachedWorkspace':_0x51917b=>this[_0xf09321(0x18d)][_0xf09321(0x179)](_0x51917b),'present':_0x2b1d64=>this[_0xf09321(0x15e)][_0xf09321(0x22b)](_0x2b1d64),'projectionForNative':_0x32a167=>this[_0xf09321(0xac)][_0xf09321(0x17b)](_0x32a167),'nativeIds':_0x532f22=>this[_0xf09321(0xac)][_0xf09321(0x22a)](_0x532f22),'forget':(_0x11b598,_0x4c40ef)=>this[_0xf09321(0xac)][_0xf09321(0x16a)](_0x11b598,_0x4c40ef),'refreshActivity':_0x3e6792=>this[_0xf09321(0xfc)][_0xf09321(0xdc)](_0x3e6792),'externalActivity':_0x310a78=>this[_0xf09321(0xbf)][_0xf09321(0x12f)][_0xf09321(0x129)](_0x310a78),'history':(_0x44378f,_0x5ad587)=>this[_0xf09321(0xfc)][_0xf09321(0x230)](_0x44378f,_0x5ad587),'emitSession':_0x2afb65=>this[_0xf09321(0xc4)]({'session':this[_0xf09321(0x15e)][_0xf09321(0x22b)](_0x2afb65)})}),this[_0xf09321(0x10a)][_0xf09321(0x220)]({'start':_0x46767e=>this[_0xf09321(0x16f)][_0xf09321(0x1a6)](_0x46767e),'cancel':(_0x2d07dd,_0x1feb59)=>{const _0x141a37=_0xf09321,_0x50c2b0=this[_0x141a37(0x10a)][_0x141a37(0x13f)][_0x141a37(0xde)][_0x141a37(0x129)](_0x2d07dd);if(_0x50c2b0?.[_0x141a37(0x107)]===undefined)return![];return void this[_0x141a37(0x1ca)][_0x141a37(0x198)](_0x2d07dd,_0x50c2b0[_0x141a37(0xf0)],_0x50c2b0[_0x141a37(0x107)],_0x50c2b0[_0x141a37(0x184)],_0x1feb59===_0x141a37(0x21b)?_0x141a37(0x214):_0x141a37(0x200)),!![];},'decideApproval':_0x1e9b47=>this[_0xf09321(0x1ca)][_0xf09321(0x181)](_0x1e9b47[_0xf09321(0x122)],_0x1e9b47[_0xf09321(0x10b)])}),this[_0xf09321(0x14d)][_0xf09321(0x220)]({'start':_0x123e58=>this[_0xf09321(0xa0)][_0xf09321(0x1a6)](_0x123e58),'cancel':(_0x191563,_0x5dd70e)=>this[_0xf09321(0x1ca)][_0xf09321(0xb1)](_0x191563,_0x5dd70e),'decideApproval':_0x4a46e3=>this[_0xf09321(0x1ca)][_0xf09321(0x194)](_0x4a46e3[_0xf09321(0x122)],_0x4a46e3[_0xf09321(0x10b)])}),this[_0xf09321(0x1f3)][_0xf09321(0x220)]({'start':_0x373388=>this[_0xf09321(0xf9)][_0xf09321(0x1a6)](_0x373388),'cancel':(_0x5d443d,_0x19c570)=>this[_0xf09321(0xf9)][_0xf09321(0x1ee)](_0x5d443d,_0x19c570),'decideApproval':_0x5597c8=>this[_0xf09321(0xf9)][_0xf09321(0x161)](_0x5597c8),'respondUserInput':(_0xf5a756,_0x40a5ee,_0x2028c5)=>this[_0xf09321(0xf9)][_0xf09321(0x1ac)](_0xf5a756,_0x40a5ee,_0x2028c5)}),this[_0xf09321(0x1e7)][_0xf09321(0x220)]({'start':_0x1227e8=>this[_0xf09321(0x123)][_0xf09321(0x1a6)](_0x1227e8),'cancel':(_0x2bd77b,_0x1dce48)=>this[_0xf09321(0x123)][_0xf09321(0x1ee)](_0x2bd77b,_0x1dce48),'decideApproval':_0x4687ee=>this[_0xf09321(0x123)][_0xf09321(0x161)](_0x4687ee),'respondUserInput':(_0x2681a4,_0x46b33a,_0x35b94a)=>this[_0xf09321(0x123)][_0xf09321(0x1ac)](_0x2681a4,_0x46b33a,_0x35b94a)}),this[_0xf09321(0x10a)][_0xf09321(0x1b3)]({'execute':(_0x51278a,_0x1165fe,_0x1e4f49,_0x300a48)=>this[_0xf09321(0x16f)][_0xf09321(0x1cf)](_0x51278a,_0x1165fe,_0x1e4f49,_0x300a48)}),this[_0xf09321(0x14d)][_0xf09321(0x1b3)]({'execute':(_0xf3439e,_0x4f20ba,_0x2c8ac2,_0x1bd71e)=>this[_0xf09321(0xa0)][_0xf09321(0x1cf)](_0xf3439e,_0x4f20ba,_0x2c8ac2,_0x1bd71e)}),this[_0xf09321(0x1f3)][_0xf09321(0x1b3)]({'execute':(_0x44a35f,_0x2ff960,_0x4ee9e4,_0x21f6a0)=>this[_0xf09321(0xf9)][_0xf09321(0x1cf)](_0x44a35f,_0x2ff960,_0x21f6a0)}),this[_0xf09321(0x1e7)][_0xf09321(0x1b3)]({'execute':(_0x3cdaf1,_0x2ab4fe,_0x1fec7e,_0x2a3256)=>this[_0xf09321(0x123)][_0xf09321(0x1cf)](_0x3cdaf1,_0x2ab4fe,_0x1fec7e,_0x2a3256)});const _0x4a2ff0=this[_0xf09321(0x1f9)]===undefined||this[_0xf09321(0x1a4)]===undefined?undefined:new FakeManagedRunService({'runner':this[_0xf09321(0x1f9)],'script':this[_0xf09321(0x1a4)],'runners':this[_0xf09321(0x178)],'runtime':this[_0xf09321(0x212)],'state':this[_0xf09321(0x154)],'emitRun':(_0x5daf68,_0x151639,_0x1be6ed,_0xf63cdd)=>this[_0xf09321(0xce)][_0xf09321(0x1b6)](_0x5daf68,_0x151639,_0x1be6ed,_0xf63cdd),'publishApproval':_0x130c16=>this[_0xf09321(0xce)][_0xf09321(0x1e1)](_0x130c16),'disconnect':()=>this[_0xf09321(0x1f7)][_0xf09321(0xe4)](0xa11*0x2+-0x4a8*-0x8+-0x59*0x78,_0xf09321(0x1d1))});this[_0xf09321(0x1f9)]?.[_0xf09321(0x220)]({'start':_0x253a2e=>_0x4a2ff0?.[_0xf09321(0x1a6)](_0x253a2e),'cancel':(_0x2b6ef1,_0x37ea3e)=>_0x37ea3e===_0xf09321(0x21b)?this[_0xf09321(0x1f9)]?.[_0xf09321(0x1ee)](_0x2b6ef1)??![]:this[_0xf09321(0x1f9)]?.[_0xf09321(0x1f2)](_0x2b6ef1)??![],'decideApproval':_0x4f97cd=>this[_0xf09321(0x1f9)]?.[_0xf09321(0x20d)](_0x4f97cd[_0xf09321(0x112)],_0x4f97cd[_0xf09321(0x122)],_0x4f97cd[_0xf09321(0x10b)])??![]}),this[_0xf09321(0x109)]=_0x469325[_0xf09321(0x109)]??new RunnerUsageReader(),this[_0xf09321(0x1f1)]=_0x469325[_0xf09321(0x1f1)],this[_0xf09321(0x1f5)]=_0x469325[_0xf09321(0x1f5)]??new TerminalManager({'platform':this[_0xf09321(0x1d8)][_0xf09321(0x1b1)]===_0xf09321(0xbe)?_0xf09321(0xfa):_0xf09321(0x191)}),this[_0xf09321(0x1f5)][_0xf09321(0x17c)](_0x2c1400=>this[_0xf09321(0x18d)][_0xf09321(0x128)](_0x2c1400)),this[_0xf09321(0x130)]=new NodeTerminalChannel({'config':()=>this[_0xf09321(0xb6)],'controlConnected':()=>this[_0xf09321(0x1f7)][_0xf09321(0x1a9)](),'stopped':()=>this[_0xf09321(0xdd)],'reconnect':this[_0xf09321(0x115)],'reconnectDelay':nextReconnectDelay,'manager':this[_0xf09321(0x1f5)]}),this[_0xf09321(0x1f7)]=new NodeControlChannel({'config':()=>this[_0xf09321(0xb6)],'capabilities':()=>this[_0xf09321(0x1d8)],'stopped':()=>this[_0xf09321(0xdd)],'reconnect':this[_0xf09321(0x115)],'reconnectDelay':nextReconnectDelay,'onConnecting':_0x299a85=>{const _0x22c222=_0xf09321;this[_0x22c222(0x108)][_0x22c222(0xed)](),nodeLog(_0x22c222(0x1cb),{'attempt':_0x299a85});},'onReconnectScheduled':()=>this[_0xf09321(0x108)][_0xf09321(0xf4)](),'onMessage':_0x3f0b50=>this[_0xf09321(0x176)](_0x3f0b50),'onClose':(_0x19eea6,_0x243449)=>{const _0x520055=_0xf09321;this[_0x520055(0x130)][_0x520055(0x171)]();if(_0x19eea6===-0x1*-0x61d+-0x329+0xcac&&_0x243449===_0x520055(0x189))nodeLog(_0x520055(0x202),{'message':_0x520055(0x15b)});if(_0x19eea6===-0x206*0x3+-0x21d0+0x3785||_0x19eea6===-0x1062+0xc07*0x2+-0x3c3)void this[_0x520055(0x1f5)][_0x520055(0x1eb)]();}}),this[_0xf09321(0x22c)]=new NodeControlMessageService({'config':()=>this[_0xf09321(0xb6)],'register':(_0x2c2c70,_0x698437)=>this[_0xf09321(0xc8)][_0xf09321(0x232)](_0x2c2c70,_0x698437),'connected':()=>this[_0xf09321(0xc8)][_0xf09321(0x1a9)](),'close':(_0x5cc4ec,_0x2a5369)=>this[_0xf09321(0x1f7)][_0xf09321(0xe4)](_0x5cc4ec,_0x2a5369),'inspectWorkspace':_0xc9e428=>this[_0xf09321(0x18d)][_0xf09321(0x156)](_0xc9e428),'handleNodeRequest':_0x4bc8c9=>this[_0xf09321(0x223)][_0xf09321(0x182)](_0x4bc8c9),'reconcileRuns':_0x58c610=>this[_0xf09321(0xce)][_0xf09321(0x110)](_0x58c610),'runners':this[_0xf09321(0x178)],'deliverSessionChannelMessage':_0x2cc95f=>this[_0xf09321(0x1d0)][_0xf09321(0x182)](_0x2cc95f),'completeUncontrolledCancellation':_0x3ffff1=>{const _0x4e6f9a=_0xf09321,_0x11d07d=this[_0x4e6f9a(0x212)][_0x4e6f9a(0x1b2)](_0x3ffff1);if(_0x11d07d?.[_0x4e6f9a(0x149)]===_0x4e6f9a(0x134))this[_0x4e6f9a(0x1ca)][_0x4e6f9a(0x15d)](_0x3ffff1);},'send':(_0xac02bd,_0x24f6d7,_0x29ca97)=>this[_0xf09321(0xf6)](_0xac02bd,_0x24f6d7,_0x29ca97)}),this[_0xf09321(0x223)]=new NodeRequestService({'nodeId':()=>this[_0xf09321(0xb6)]?.[_0xf09321(0xa8)],'databaseAvailable':()=>this[_0xf09321(0x1f1)]!==undefined,'execute':(_0x15615a,_0x3c7f70)=>this[_0xf09321(0xad)](_0x15615a,_0x3c7f70),'send':(_0x6e8b40,_0x2d9947,_0x4214bc)=>this[_0xf09321(0xf6)](_0x6e8b40,_0x2d9947,_0x4214bc)}),this[_0xf09321(0x18d)]=new NodeWorkspaceCoordinator({'config':()=>this[_0xf09321(0xb6)],'database':()=>this[_0xf09321(0x1f1)],'watches':this[_0xf09321(0x17f)],'sessions':this[_0xf09321(0x226)],'changes':this[_0xf09321(0x1b0)],'emit':(_0x14ed19,_0x517f23)=>void this[_0xf09321(0x1c7)]?.[_0xf09321(0x169)](_0x14ed19,_0x517f23),'send':(_0x187492,_0x3f28b6,_0x2c0784)=>this[_0xf09321(0xf6)](_0x187492,_0x3f28b6,_0x2c0784)}),this[_0xf09321(0xce)]=new NodeRunEventBridge({'runtime':this[_0xf09321(0x212)],'state':this[_0xf09321(0x154)],'events':this[_0xf09321(0x132)],'emitWorkbench':(_0xb66fa1,_0x360b0e)=>this[_0xf09321(0x1bc)](_0xb66fa1,_0x360b0e),'queues':this[_0xf09321(0x158)],'codex':this[_0xf09321(0x10a)],'claude':this[_0xf09321(0x14d)],'openCode':this[_0xf09321(0x1f3)],'send':(_0xdfca98,_0x2b9a12,_0x3b6000)=>this[_0xf09321(0xf6)](_0xdfca98,_0x2b9a12,_0x3b6000)}),this[_0xf09321(0xc8)]=new NodeConnectionLifecycleService({'config':()=>this[_0xf09321(0xb6)],'setConfig':_0x2d8028=>this[_0xf09321(0xb6)]=_0x2d8028,'configPath':this[_0xf09321(0x1d7)],'capabilities':()=>this[_0xf09321(0x1d8)],'detectCapabilities':this[_0xf09321(0x19a)],'capabilitiesProvided':this[_0xf09321(0xd9)],'stopped':()=>this[_0xf09321(0xdd)],'setCapabilities':_0x8c081=>this[_0xf09321(0x1d8)]={..._0x8c081,'metadata':upgradeMetadata(_0x8c081[_0xf09321(0x1f6)],this[_0xf09321(0x172)][_0xf09321(0xa6)]())},'control':this[_0xf09321(0x1f7)],'terminal':this[_0xf09321(0x130)],'metrics':this[_0xf09321(0x108)],'heartbeatMs':HEARTBEAT_MS,'refreshMs':CAPABILITY_REFRESH_MS,'onConnected':()=>this[_0xf09321(0x140)][_0xf09321(0x1fe)]()});const _0x585699=()=>{const _0x4c7e00=_0xf09321;if(this[_0x4c7e00(0x1f1)]===undefined)throw new Error(_0x4c7e00(0xe1));return this[_0x4c7e00(0x1f1)];};this[_0xf09321(0xab)]=new RunnerService(_0x585699,()=>this[_0xf09321(0x1d8)],this[_0xf09321(0x178)],this[_0xf09321(0x109)]),this[_0xf09321(0x1c5)]=new WorkbenchManifestService({'capabilities':()=>this[_0xf09321(0x1d8)],'runners':this[_0xf09321(0xab)],'terminals':this[_0xf09321(0x1f5)]}),this[_0xf09321(0x1b8)]=new TerminalService(_0x585699,this[_0xf09321(0x1f5)]),this[_0xf09321(0x127)]=new WorkspaceService(_0x585699,()=>{const _0x2bc0e9=_0xf09321;if(this[_0x2bc0e9(0xb6)]===undefined)throw new Error(_0x2bc0e9(0x106));return this[_0x2bc0e9(0xb6)];},this[_0xf09321(0x212)],_0xa6cec4=>{const _0x10853f=_0xf09321;this[_0x10853f(0x135)][_0x10853f(0x144)](_0xa6cec4),this[_0x10853f(0x18d)][_0x10853f(0x157)](_0xa6cec4),this[_0x10853f(0x226)][_0x10853f(0x18e)](_0xa6cec4),this[_0x10853f(0x18d)][_0x10853f(0xb3)](_0xa6cec4);}),this[_0xf09321(0x1c7)]=new WorkspaceWorkbenchService({'requireWorkspace':_0x2ee306=>this[_0xf09321(0x18d)][_0xf09321(0x211)](_0x2ee306),'inspectWorkspace':_0x3c4996=>this[_0xf09321(0x18d)][_0xf09321(0xb7)](_0x3c4996),'commitWorkspace':(_0x5d7c9c,_0x5207a2)=>this[_0xf09321(0x18d)][_0xf09321(0xfe)](_0x5d7c9c,_0x5207a2),'watch':this[_0xf09321(0x17f)],'files':this[_0xf09321(0x135)],'uploads':this[_0xf09321(0x175)],'changes':this[_0xf09321(0x1b0)],'listSessions':_0x86545f=>this[_0xf09321(0xad)](_0xf09321(0x207),{'workspaceId':_0x86545f,'limit':0x14}),'invalidate':_0x1343fa=>this[_0xf09321(0x18d)][_0xf09321(0x18e)](_0x1343fa),'nodeId':()=>this[_0xf09321(0xb6)]?.[_0xf09321(0xa8)]??_0xf09321(0xff),'nodeGeneration':()=>this[_0xf09321(0xdb)],'emitWatchEvent':_0x123ddc=>this[_0xf09321(0xf6)](_0xf09321(0xfd),_0x123ddc)}),this[_0xf09321(0x155)][_0xf09321(0x1c1)](this[_0xf09321(0xab)][_0xf09321(0x17e)]()),this[_0xf09321(0x155)][_0xf09321(0x1c1)](this[_0xf09321(0x1b8)][_0xf09321(0x17e)]()),this[_0xf09321(0x155)][_0xf09321(0x1c1)](this[_0xf09321(0x127)][_0xf09321(0x17e)]()),this[_0xf09321(0x155)][_0xf09321(0x1c1)](this[_0xf09321(0x1c7)][_0xf09321(0x17e)]()),this[_0xf09321(0x155)][_0xf09321(0x1c1)](this[_0xf09321(0x1e0)][_0xf09321(0x17e)]()),this[_0xf09321(0x155)][_0xf09321(0x1c1)](this[_0xf09321(0xd1)][_0xf09321(0x17e)]()),this[_0xf09321(0x155)][_0xf09321(0x1c1)](this[_0xf09321(0x183)][_0xf09321(0x17e)]()),this[_0xf09321(0x155)][_0xf09321(0x1c1)](this[_0xf09321(0x1e8)][_0xf09321(0x17e)]()),this[_0xf09321(0x155)][_0xf09321(0x1c1)](this[_0xf09321(0xcf)][_0xf09321(0x17e)]()),this[_0xf09321(0x155)][_0xf09321(0x1c1)](this[_0xf09321(0x203)][_0xf09321(0x17e)]()),this[_0xf09321(0x155)][_0xf09321(0x1c1)](this[_0xf09321(0x14c)][_0xf09321(0x17e)]()),this[_0xf09321(0x155)][_0xf09321(0x1c1)](this[_0xf09321(0x158)][_0xf09321(0x17e)]()),this[_0xf09321(0x155)][_0xf09321(0x1c1)](new SkillNodeOperationService(_0x585699,()=>{const _0x7438dc=_0xf09321;if(this[_0x7438dc(0xb6)]===undefined)throw new Error(_0x7438dc(0x106));return this[_0x7438dc(0xb6)];})[_0xf09321(0x17e)]()),this[_0xf09321(0x155)][_0xf09321(0x1c1)](new McpNodeOperationService(_0x585699)[_0xf09321(0x17e)]()),this[_0xf09321(0x155)][_0xf09321(0x232)](_0xf09321(0x141),()=>({'metrics':{...this[_0xf09321(0x108)][_0xf09321(0xa6)](),'activeRuns':this[_0xf09321(0x154)][_0xf09321(0x1d4)][_0xf09321(0x17d)],'workspaceLeases':this[_0xf09321(0x212)][_0xf09321(0x215)]()}})),this[_0xf09321(0x155)][_0xf09321(0x232)](_0xf09321(0x1df),_0x278896=>this[_0xf09321(0x172)][_0xf09321(0x21c)](_0x278896)),this[_0xf09321(0x155)][_0xf09321(0x232)](_0xf09321(0x12d),()=>this[_0xf09321(0x172)][_0xf09321(0x1ee)]()),this[_0xf09321(0x155)][_0xf09321(0x232)](_0xf09321(0x13e),async()=>({'manifest':await this[_0xf09321(0x1c5)][_0xf09321(0x230)]()}));}async[_0x5e09f1(0x1a6)](){const _0x32ef1f=_0x5e09f1;this[_0x32ef1f(0xdd)]=![],this[_0x32ef1f(0xb6)]??=await loadNodeConfig(this[_0x32ef1f(0x1d7)]),await this[_0x32ef1f(0x172)][_0x32ef1f(0xe3)](resolve(dirname(nodeDatabasePath(this[_0x32ef1f(0xb6)],this[_0x32ef1f(0x1d7)])),_0x32ef1f(0x1ec))),await assertLocalSqlitePath(nodeDatabasePath(this[_0x32ef1f(0xb6)],this[_0x32ef1f(0x1d7)])),this[_0x32ef1f(0x1f1)]??=new NodeDatabase(nodeDatabasePath(this[_0x32ef1f(0xb6)],this[_0x32ef1f(0x1d7)]),()=>this[_0x32ef1f(0xb6)]?.[_0x32ef1f(0xa8)]??_0x32ef1f(0x170)),this[_0x32ef1f(0x1f1)][_0x32ef1f(0xda)](),this[_0x32ef1f(0xc8)][_0x32ef1f(0x1a6)](),this[_0x32ef1f(0x1f7)][_0x32ef1f(0xa2)]();}[_0x5e09f1(0xc5)](_0xb462ed){const _0x367dbc=_0x5e09f1,_0x3c1411=this[_0x367dbc(0x16e)][_0x367dbc(0x129)](_0xb462ed);if(_0x3c1411!==undefined)clearTimeout(_0x3c1411[_0x367dbc(0xc1)]);this[_0x367dbc(0x16e)][_0x367dbc(0x121)](_0xb462ed),this[_0x367dbc(0x103)][_0x367dbc(0x121)](_0xb462ed);}async[_0x5e09f1(0x159)](_0x5dc804){const _0x7bb571=_0x5e09f1,_0x526b4d=_0x5dc804[_0x7bb571(0x16d)]['id']+':'+_0x5dc804[_0x7bb571(0x16d)][_0x7bb571(0xcc)];this[_0x7bb571(0x103)][_0x7bb571(0x1dd)](_0x5dc804[_0x7bb571(0x125)],_0x526b4d);try{await this[_0x7bb571(0xcf)][_0x7bb571(0x1a0)]({'sessionId':_0x5dc804[_0x7bb571(0x125)],'kind':_0x7bb571(0x15c),'content':this[_0x7bb571(0x209)][_0x7bb571(0x1de)](_0x5dc804[_0x7bb571(0x125)],_0x7bb571(0x15c)),'deliveryIntent':_0x7bb571(0x1cc),'mission':_0x5dc804[_0x7bb571(0x16d)],'secretEnvironment':_0x5dc804[_0x7bb571(0x229)],..._0x5dc804[_0x7bb571(0xba)]===undefined?{}:{'personalInstructions':_0x5dc804[_0x7bb571(0xba)]}});const _0x12ada5=this[_0x7bb571(0x209)][_0x7bb571(0x129)](_0x5dc804[_0x7bb571(0x125)]);if(_0x12ada5?.[_0x7bb571(0x149)]!==_0x7bb571(0x1d4)||_0x12ada5['id']!==_0x5dc804[_0x7bb571(0x16d)]['id']||_0x12ada5[_0x7bb571(0xcc)]!==_0x5dc804[_0x7bb571(0x16d)][_0x7bb571(0xcc)]){if(this[_0x7bb571(0x103)][_0x7bb571(0x129)](_0x5dc804[_0x7bb571(0x125)])===_0x526b4d)this[_0x7bb571(0x103)][_0x7bb571(0x121)](_0x5dc804[_0x7bb571(0x125)]);return;}this[_0x7bb571(0xc5)](_0x5dc804[_0x7bb571(0x125)]);}catch{const _0x4fb7ed=this[_0x7bb571(0x209)][_0x7bb571(0x129)](_0x5dc804[_0x7bb571(0x125)]);if(_0x4fb7ed?.[_0x7bb571(0x149)]!==_0x7bb571(0x1d4)||_0x4fb7ed['id']!==_0x5dc804[_0x7bb571(0x16d)]['id']||_0x4fb7ed[_0x7bb571(0xcc)]!==_0x5dc804[_0x7bb571(0x16d)][_0x7bb571(0xcc)]){if(this[_0x7bb571(0x103)][_0x7bb571(0x129)](_0x5dc804[_0x7bb571(0x125)])===_0x526b4d)this[_0x7bb571(0x103)][_0x7bb571(0x121)](_0x5dc804[_0x7bb571(0x125)]);return;}const _0x20ed97=(_0x5dc804[_0x7bb571(0x19b)]??0xa*0x2dd+-0x4b5*-0x8+-0x1*0x424a)+(0x264*0x3+0x3*0x240+-0xdeb),_0x4f9117=this[_0x7bb571(0x212)][_0x7bb571(0x231)](_0x5dc804[_0x7bb571(0x125)]);if(_0x20ed97>0x1eef*-0x1+-0x116*-0x1a+0x1*0x2b6||_0x4f9117===undefined){this[_0x7bb571(0xc5)](_0x5dc804[_0x7bb571(0x125)]);if(_0x20ed97>0x35*0x40+-0x1d48+0x100b*0x1){const _0x3658ff=this[_0x7bb571(0x209)][_0x7bb571(0x18c)](_0x5dc804[_0x7bb571(0x125)],_0x5dc804[_0x7bb571(0x16d)]['id'],_0x5dc804[_0x7bb571(0x16d)][_0x7bb571(0xcc)]);this[_0x7bb571(0x15f)][_0x7bb571(0x14e)](_0x5dc804[_0x7bb571(0x125)]),this[_0x7bb571(0x1e9)](_0x5dc804[_0x7bb571(0x125)],_0x7bb571(0x133));if(_0x4f9117!==undefined)this[_0x7bb571(0xe0)](_0x4f9117,_0x3658ff);}return;}this[_0x7bb571(0xc5)](_0x5dc804[_0x7bb571(0x125)]);const _0x3cb70b={'sessionId':_0x5dc804[_0x7bb571(0x125)],'timer':setTimeout(()=>{const _0x1672ea=_0x7bb571,_0x2dad9c=this[_0x1672ea(0x209)][_0x1672ea(0x129)](_0x3cb70b[_0x1672ea(0x125)]);if(_0x2dad9c?.[_0x1672ea(0x149)]!==_0x1672ea(0x1d4)||_0x2dad9c['id']!==_0x5dc804[_0x1672ea(0x16d)]['id']||_0x2dad9c[_0x1672ea(0xcc)]!==_0x5dc804[_0x1672ea(0x16d)][_0x1672ea(0xcc)])return;void this[_0x1672ea(0x159)]({..._0x5dc804,'sessionId':_0x3cb70b[_0x1672ea(0x125)],'failedAttempts':_0x20ed97});},0x689d+0x5cf2+-0x8af7)};this[_0x7bb571(0x16e)][_0x7bb571(0x1dd)](_0x5dc804[_0x7bb571(0x125)],_0x3cb70b),_0x3cb70b[_0x7bb571(0xc1)][_0x7bb571(0xd4)]();}}[_0x5e09f1(0x1e9)](_0x27208b,_0x113952){const _0x1d5ad6=_0x5e09f1,_0x4fb240=this[_0x1d5ad6(0x212)][_0x1d5ad6(0x228)](_0x27208b);if(_0x4fb240===undefined||this[_0x1d5ad6(0x212)][_0x1d5ad6(0x138)](_0x4fb240['id'])!==undefined)return;this[_0x1d5ad6(0xce)][_0x1d5ad6(0x1b6)](_0x4fb240['id'],_0x113952===_0x1d5ad6(0x139)?_0x1d5ad6(0xc9):_0x1d5ad6(0x20e),_0x113952===_0x1d5ad6(0x139)?{}:{'code':_0x1d5ad6(0x216)},_0x113952);}[_0x5e09f1(0x10d)](_0x19878c){const _0x26071a=_0x5e09f1,_0x187670=missionUnrestrictedAccess(_0x19878c[_0x26071a(0x1ab)]),_0x52c3e4=_0x19878c[_0x26071a(0x1d2)]!==_0x187670,_0x5c03ae=_0x52c3e4?this[_0x26071a(0x212)][_0x26071a(0xb2)](_0x19878c['id'],_0x187670):_0x19878c;if(_0x52c3e4&&_0x5c03ae[_0x26071a(0xd0)]!==null&&_0x5c03ae[_0x26071a(0x1ed)]!==null&&_0x5c03ae[_0x26071a(0x1bf)]!==null)this[_0x26071a(0x1f1)]?.[_0x26071a(0x218)]({'runner':_0x5c03ae[_0x26071a(0x1ab)],'externalSessionId':_0x5c03ae[_0x26071a(0xd0)],'workspaceId':_0x5c03ae[_0x26071a(0x213)],'model':_0x5c03ae[_0x26071a(0x1ed)],'effort':_0x5c03ae[_0x26071a(0x1bf)],'access':_0x187670});return{'session':_0x5c03ae,'changed':_0x52c3e4};}[_0x5e09f1(0xbd)](){const _0x247c2c=_0x5e09f1;return{'commandId':_0x247c2c(0x16d),'active':!![],'label':_0x247c2c(0x120),'detail':null,'closable':!![],'closeInput':_0x247c2c(0x137)};}[_0x5e09f1(0x14a)](){const _0x25445d=_0x5e09f1;this[_0x25445d(0xdd)]=!![],this[_0x25445d(0x140)][_0x25445d(0x144)](),this[_0x25445d(0x172)][_0x25445d(0x14a)](),this[_0x25445d(0xc8)][_0x25445d(0x14a)]();for(const _0x3a3fa6 of this[_0x25445d(0x14d)][_0x25445d(0x13f)][_0x25445d(0x208)][_0x25445d(0x13b)]()){clearTimeout(_0x3a3fa6[_0x25445d(0xc1)]),_0x3a3fa6[_0x25445d(0xd6)](_0x25445d(0x124));}this[_0x25445d(0x14d)][_0x25445d(0x13f)][_0x25445d(0x208)][_0x25445d(0x163)]();for(const _0x4e636a of this[_0x25445d(0x14d)][_0x25445d(0x13f)][_0x25445d(0x1e3)][_0x25445d(0x13b)]()){clearTimeout(_0x4e636a[_0x25445d(0xc1)]),_0x4e636a[_0x25445d(0x205)](_0x25445d(0x224));}this[_0x25445d(0x14d)][_0x25445d(0x13f)][_0x25445d(0x1e3)][_0x25445d(0x163)](),this[_0x25445d(0xd1)][_0x25445d(0x163)](),this[_0x25445d(0xeb)][_0x25445d(0x144)](),this[_0x25445d(0x1e8)][_0x25445d(0x163)](),this[_0x25445d(0x15f)][_0x25445d(0x163)]();for(const _0x549775 of this[_0x25445d(0x16e)][_0x25445d(0x13b)]())clearTimeout(_0x549775[_0x25445d(0xc1)]);this[_0x25445d(0x16e)][_0x25445d(0x163)](),this[_0x25445d(0x103)][_0x25445d(0x163)](),this[_0x25445d(0x132)][_0x25445d(0x163)](),this[_0x25445d(0xc3)][_0x25445d(0x144)]();for(const _0x137648 of this[_0x25445d(0x14d)][_0x25445d(0x13f)][_0x25445d(0xde)][_0x25445d(0x13b)]())_0x137648[_0x25445d(0x182)][_0x25445d(0x1ee)]();this[_0x25445d(0x14d)][_0x25445d(0x13f)][_0x25445d(0xde)][_0x25445d(0x163)](),this[_0x25445d(0x185)][_0x25445d(0x144)](),void this[_0x25445d(0x123)][_0x25445d(0x144)](),void this[_0x25445d(0x175)][_0x25445d(0x1eb)](),this[_0x25445d(0x135)][_0x25445d(0x144)](),this[_0x25445d(0x17f)][_0x25445d(0xca)](),this[_0x25445d(0x1c7)][_0x25445d(0x163)](),this[_0x25445d(0x226)][_0x25445d(0x163)](),this[_0x25445d(0x1b0)][_0x25445d(0x163)](),void this[_0x25445d(0x178)][_0x25445d(0x14a)](),void this[_0x25445d(0x1bb)][_0x25445d(0xe4)](),void this[_0x25445d(0x1f5)][_0x25445d(0x1eb)](),this[_0x25445d(0x130)][_0x25445d(0x14a)](),this[_0x25445d(0x1f7)][_0x25445d(0x14a)](),this[_0x25445d(0x1f1)]?.[_0x25445d(0xe4)](),this[_0x25445d(0x1f1)]=undefined;}[_0x5e09f1(0x176)]=_0x15d275=>this[_0x5e09f1(0x22c)][_0x5e09f1(0x182)](_0x15d275);[_0x5e09f1(0x1ea)]=(_0x1371a7,_0x2a7650,_0x49a382,_0x3fd78b)=>this[_0x5e09f1(0xce)][_0x5e09f1(0x1b6)](_0x1371a7,_0x2a7650,_0x49a382,_0x3fd78b);[_0x5e09f1(0x1e6)]=(_0x1d1009,_0x262a44)=>{const _0x1d45d2=_0x5e09f1;this[_0x1d45d2(0x132)][_0x1d45d2(0xdf)](_0x1d1009);const _0x54e1fa=isPlainRecord(_0x262a44)&&typeof _0x262a44[_0x1d45d2(0x164)]===_0x1d45d2(0x105)?_0x262a44[_0x1d45d2(0x164)]:undefined,_0x4684e1=isPlainRecord(_0x262a44)&&typeof _0x262a44[_0x1d45d2(0x1fd)]===_0x1d45d2(0x105)?_0x262a44[_0x1d45d2(0x1fd)]:undefined,_0x3adadf=this[_0x1d45d2(0x212)][_0x1d45d2(0x21f)](_0x1d1009),_0x387569=_0x54e1fa===undefined||_0x3adadf===undefined?undefined:conversationSegmentIdentityForItem(_0x3adadf,_0x54e1fa,_0x4684e1);this[_0x1d45d2(0xce)][_0x1d45d2(0x1b6)](_0x1d1009,_0x1d45d2(0x12c),_0x387569===undefined||!isPlainRecord(_0x262a44)?_0x262a44:{..._0x262a44,'segmentId':_0x387569['id'],'segmentIndex':_0x387569[_0x1d45d2(0x136)]});};[_0x5e09f1(0x1fc)]=_0x317c9a=>{const _0x50baed=_0x5e09f1,_0x4a90c8=isPlainRecord(_0x317c9a)&&Array[_0x50baed(0x206)](_0x317c9a[_0x50baed(0xd7)])?conversationSegments(_0x317c9a):[];this[_0x50baed(0x1f8)](_0x50baed(0xd2),{'turn':_0x317c9a,'segments':_0x4a90c8});};[_0x5e09f1(0x1bc)]=(_0x48dd14,_0x6adc59)=>{const _0xd43dfd=_0x5e09f1;if(_0x48dd14===_0xd43dfd(0x21d)){this[_0xd43dfd(0xc4)](_0x6adc59);return;}this[_0xd43dfd(0x1f8)](_0x48dd14,_0x6adc59);};[_0x5e09f1(0xc4)]=_0x5c5552=>{const _0x156ba9=_0x5e09f1;if(isPlainRecord(_0x5c5552)&&isPlainRecord(_0x5c5552[_0x156ba9(0x21d)])){const _0xde18fd=_0x5c5552[_0x156ba9(0x21d)][_0x156ba9(0x213)];typeof _0xde18fd===_0x156ba9(0x105)&&(this[_0x156ba9(0x226)][_0x156ba9(0x1f4)](_0xde18fd),void this[_0x156ba9(0x1c7)]?.[_0x156ba9(0x169)](_0xde18fd,_0x156ba9(0xbc)));}this[_0x156ba9(0x1f8)](_0x156ba9(0x21d),_0x5c5552);};[_0x5e09f1(0x1f8)]=(_0x23fa8c,_0x361231)=>{const _0x4250d0=_0x5e09f1;if(_0x23fa8c===_0x4250d0(0xd2)&&isPlainRecord(_0x361231)&&isPlainRecord(_0x361231[_0x4250d0(0x1af)])&&_0x361231[_0x4250d0(0x1af)][_0x4250d0(0x9e)]!==_0x4250d0(0x192)){const _0x26fe7f=typeof _0x361231[_0x4250d0(0x1af)][_0x4250d0(0x112)]===_0x4250d0(0x105)?_0x361231[_0x4250d0(0x1af)][_0x4250d0(0x112)]:undefined,_0x16015a=typeof _0x361231[_0x4250d0(0x1af)][_0x4250d0(0x1e2)]===_0x4250d0(0x11a)?_0x361231[_0x4250d0(0x1af)][_0x4250d0(0x1e2)]:undefined,_0x164a0a=_0x26fe7f===undefined?undefined:this[_0x4250d0(0x212)][_0x4250d0(0x21f)](_0x26fe7f);if(_0x164a0a===undefined)return;const _0x42290b=isPlainRecord(_0x361231[_0x4250d0(0x1af)][_0x4250d0(0xe2)])?_0x361231[_0x4250d0(0x1af)][_0x4250d0(0xe2)]:undefined,_0x1b59fa=_0x361231[_0x4250d0(0x1af)][_0x4250d0(0x9e)]===_0x4250d0(0x1c8)&&typeof _0x42290b?.[_0x4250d0(0x1d5)]===_0x4250d0(0x105)?_0x42290b[_0x4250d0(0x1d5)]:undefined,_0x1281ad=typeof _0x42290b?.[_0x4250d0(0x164)]===_0x4250d0(0x105)?_0x42290b[_0x4250d0(0x164)]:typeof _0x42290b?.[_0x4250d0(0x122)]===_0x4250d0(0x105)?_0x4250d0(0x222)+_0x42290b[_0x4250d0(0x122)]:undefined,_0xfdcafd=_0x1b59fa!==undefined&&_0x16015a!==undefined?_0x164a0a[_0x4250d0(0xd7)][_0x4250d0(0x9d)](_0x45cc5d=>_0x45cc5d[_0x4250d0(0x1fd)]===_0x4250d0(0x1a7)&&_0x45cc5d[_0x4250d0(0xcc)]===_0x16015a):_0x1281ad===undefined?undefined:_0x164a0a[_0x4250d0(0xd7)][_0x4250d0(0x9d)](_0x512805=>_0x512805['id']===_0x26fe7f+':'+_0x1281ad);if(_0x1b59fa!==undefined&&_0xfdcafd?.[_0x4250d0(0x1fd)]===_0x4250d0(0x1a7))_0x361231={'sessionId':_0x164a0a[_0x4250d0(0x125)],'delta':{'runId':_0x164a0a[_0x4250d0(0x112)],'itemId':_0xfdcafd['id'],'text':_0x1b59fa,'createdAt':typeof _0x361231[_0x4250d0(0x1af)][_0x4250d0(0x13d)]===_0x4250d0(0x11a)?_0x361231[_0x4250d0(0x1af)][_0x4250d0(0x13d)]:Date[_0x4250d0(0x199)]()}};else{if(_0xfdcafd!==undefined){const _0x23a600=conversationSegmentIdentityForItem(_0x164a0a,_0xfdcafd['id'],_0xfdcafd[_0x4250d0(0x1fd)]);_0x361231={'sessionId':_0x164a0a[_0x4250d0(0x125)],'runId':_0x164a0a[_0x4250d0(0x112)],'item':{'itemId':_0xfdcafd['id'],'kind':_0xfdcafd[_0x4250d0(0x1fd)],'status':_0xfdcafd[_0x4250d0(0x149)],'payload':_0xfdcafd[_0x4250d0(0xe2)],'startedAt':_0xfdcafd[_0x4250d0(0x1c2)],'completedAt':_0xfdcafd[_0x4250d0(0x1e4)],'segmentId':_0x23a600['id'],'segmentIndex':_0x23a600[_0x4250d0(0x136)]}};}else{if(_0x361231[_0x4250d0(0x1af)][_0x4250d0(0x9e)]!==_0x4250d0(0x20a)&&_0x361231[_0x4250d0(0x1af)][_0x4250d0(0x9e)]!==_0x4250d0(0xa1))return;_0x361231={'turn':_0x164a0a,'segments':conversationSegments(_0x164a0a)};}}}const _0x5d6db8=this[_0x4250d0(0x1e5)][_0x4250d0(0x1c0)](_0x23fa8c,_0x361231);if(_0x5d6db8===undefined)return;const _0x13982d=_0x23fa8c===_0x4250d0(0xd2)&&isPlainRecord(_0x361231)&&isPlainRecord(_0x361231[_0x4250d0(0x1af)])&&_0x361231[_0x4250d0(0x1af)][_0x4250d0(0x9e)]===_0x4250d0(0x192),_0xc0edd4=workbenchPayloadSessionId(this[_0x4250d0(0x212)],_0x23fa8c,_0x361231);if(!_0x13982d&&_0xc0edd4!==undefined){this[_0x4250d0(0xd1)][_0x4250d0(0x1ff)](_0xc0edd4,_0x5d6db8);return;}this[_0x4250d0(0x1e5)][_0x4250d0(0x1fa)](_0x5d6db8);};[_0x5e09f1(0x19d)]=_0x28b313=>this[_0x5e09f1(0xac)][_0x5e09f1(0x1b9)](_0x28b313);[_0x5e09f1(0x177)]=_0x1eca40=>this[_0x5e09f1(0x18d)][_0x5e09f1(0x18e)](_0x1eca40);[_0x5e09f1(0x11c)]=()=>undefined;[_0x5e09f1(0xe7)]=()=>this[_0x5e09f1(0xc8)][_0x5e09f1(0xe7)]();[_0x5e09f1(0x1bd)]=()=>this[_0x5e09f1(0xc8)][_0x5e09f1(0x1bd)]();async[_0x5e09f1(0xad)](_0x3582d7,_0x375991){const _0x1882f4=_0x5e09f1;if(this[_0x1882f4(0x1f1)]===undefined)throw new Error(_0x1882f4(0xe1));if(this[_0x1882f4(0x172)][_0x1882f4(0x113)](_0x3582d7))throw new Error(_0x1882f4(0x148));return nodeLog(_0x1882f4(0x20f),{'nodeId':this[_0x1882f4(0xb6)]?.[_0x1882f4(0xa8)],'operation':_0x3582d7}),this[_0x1882f4(0x155)][_0x1882f4(0xc2)](_0x3582d7,_0x375991);}async[_0x5e09f1(0x166)](_0x57559c,_0x612653){const _0x191aa7=_0x5e09f1,_0x1d900e=this[_0x191aa7(0xb6)];if(_0x1d900e?.[_0x191aa7(0xa8)]===undefined||_0x1d900e[_0x191aa7(0x1aa)]===undefined)throw new Error(_0x191aa7(0x1a5));const _0x4e3898=await fetch(_0x1d900e[_0x191aa7(0xe9)][_0x191aa7(0xec)](/\/$/u,'')+_0x191aa7(0x119),{'method':_0x191aa7(0x1db),'headers':{'content-type':_0x191aa7(0xcb),'x-mar-node-id':_0x1d900e[_0x191aa7(0xa8)],'authorization':_0x191aa7(0xf8)+_0x1d900e[_0x191aa7(0x1aa)]},'body':JSON[_0x191aa7(0x118)](_0x57559c),'signal':_0x612653});if(!_0x4e3898['ok'])throw new Error(_0x191aa7(0x1a3));const _0x4f0b95=await _0x4e3898[_0x191aa7(0x187)]();return{'content':JSON[_0x191aa7(0x118)](_0x4f0b95),'data':_0x4f0b95};}[_0x5e09f1(0xe0)](_0x208ddc,_0x5d86c7){const _0x4bfbd1=_0x5e09f1;if(_0x5d86c7[_0x4bfbd1(0x149)]!==_0x4bfbd1(0x1d4)){this[_0x4bfbd1(0x151)][_0x4bfbd1(0x163)](_0x208ddc['id'],_0x4bfbd1(0x16d)),this[_0x4bfbd1(0x1f8)](_0x4bfbd1(0x21d),{'session':this[_0x4bfbd1(0x15e)][_0x4bfbd1(0x22b)](_0x208ddc)});return;}this[_0x4bfbd1(0x151)][_0x4bfbd1(0x1dd)](_0x208ddc['id'],{'commandId':_0x4bfbd1(0x16d),'active':_0x5d86c7[_0x4bfbd1(0x149)]===_0x4bfbd1(0x1d4),'label':_0x4bfbd1(0x120),'detail':_0x5d86c7[_0x4bfbd1(0x162)][_0x4bfbd1(0xea)](-0x1f74+-0x72*-0x1a+0x30*0x6a,0x1d*0xd3+0x6cd*-0x5+-0xc0e*-0x1),'closable':!![],'closeInput':_0x4bfbd1(0xf1),'mission':{'id':_0x5d86c7['id'],'objective':_0x5d86c7[_0x4bfbd1(0x162)],'revision':_0x5d86c7[_0x4bfbd1(0xcc)],'status':_0x5d86c7[_0x4bfbd1(0x149)],'turns':_0x5d86c7[_0x4bfbd1(0xb4)]}}),this[_0x4bfbd1(0x1f8)](_0x4bfbd1(0x21d),{'session':this[_0x4bfbd1(0x15e)][_0x4bfbd1(0x22b)](_0x208ddc)});}[_0x5e09f1(0xf6)](_0x16c699,_0x54a3b8,_0x5bd485){const _0x32a988=_0x5e09f1;this[_0x32a988(0x1f7)][_0x32a988(0xf6)](_0x16c699,_0x54a3b8,_0x5bd485);}[_0x5e09f1(0x193)](_0x5989c4){const _0x757d35=_0x5e09f1;this[_0x757d35(0x1f7)][_0x757d35(0x193)](_0x5989c4);}}
2
+ function _0x3560(){const _0x4ebb04=['zgLZy292zxjxB3jRC3bHy2u','u0vora','ChjVzMLSzxm','C2vYDMvYvxjS','Aw5ZDgfSBgf0Aw9U','lw9Wzw5JB2rLlwLTywDLCW','tuLtu0LptL9ot1rFqunusvzf','BwLNCMf0zvnLC3nPB24','D2vIu2vHCMnO','AgfZ','y2XLyxjbBgW','zw1PDenVBNzLCNnHDgLVBLr1CM4','CMvXDwvZDa','y2fWywjPBgL0EurLDgvJDg9Y','AxnbCNjHEq','y2fUy2vS','BgLZDa','C2vJCMv0CW','CNvUCW','ChjVBw90zq','D29YA3nWywnLuxvLDwvxB3jRyMvUy2Htzxj2AwnL','CMvZDw1LzenVBMzPz3vYyxrPB24','y29UzMLN','zxzLBNq','zMLSDgvY','D2LUmZi','BwLZC2LVBKnVBNrPBNvHDgLVBLbLBMrPBMC','CMvWBgfJzvnVy2TLDezVCLrLC3rPBMC','ywrVChrsDw4','CMvZB2X2zun1CNjLBNq','z2v0','q0foq0vmteve','BM9Kzs51CgDYywrLlMnHBMnLBa','q0foq0vmteLorW','yxzHAwXHyMXL','CNvUBMvYvgL0Bgu','BM9Kzs5VCgvYyxrPB24','ywXSB3DLzfjVB3rZ','C3rHCNrdyxbHyMLSAxr5uMvMCMvZAa','D29YA3nWywnLv29YA2jLBMnOu2vYDMLJzq','D29YA3nWywnLu2vZC2LVBLnLCNzPy2u','C2v0','zxHLy3v0Aw9Uu3rHCNrLza','y2HHBMDLza','zgLZy292zxi','y29KzxHsDw5dB250CM9SBgvY','D29YA3nWywnLrMLSzvnLCNzPy2u','BM9Kzs5TzxrYAwnZ','DxbNCMfKzvjLywr5','surmrq','zgvJAwrLq29KzxHbChbYB3zHBa','zw1PDff1zxvL','C2XPy2u','CNvUBMvY','BxLHz2vUDhjVyw1FBwLZC2LVBG','BMv4Da','BwfYlwLUDgvYBMfSlw1PC3nPB24','CNvUDgLTzq','l2fWAs9UB2rLlxrVB2XZl3DLyI1ZzwfYy2G','CNvUBMvYq2HHBM5LBe1LC3nHz2vZ','sfruua','BwLZC2LVBLjLDhj5vgLTzxjZ','BgLZDfDVCMTZCgfJzxm','y3jLzgvUDgLHBa','C2vZC2LVBG','zw5ZDxjLv2f0y2G','zgLZy29UBMvJDa','y2f0y2G','yxnZAxn0yw50x21LC3nHz2u','y29UDhjVBe1LC3nHz2vZ','DhvYBNm','BMf0AxzLu2vZC2LVBLbYB2PLy3rPB25tzxj2AwnL','CgvYC29UywXjBNn0CNvJDgLVBNm','BMf0AxzLswrZ','C3rHDgu','zgLZCgf0y2G','DxbNCMfKzunVB3jKAw5HDg9Y','CMvJB3jKrxHLy3v0Aw9UuMvZDwX0','zxHLy3v0zq','y2XLyxjxB3jRC3bHy2u','BM9Kzs5JB25Uzwn0Aw5N','ChvIBgLZAefWChjVDMfS','z2v0qwDLBNrtzxnZAw9U','BwfYqwDLBNrdBgLLBNq','y29KzxHdBgLLBNq','nMPkAKPPqq','ChjVAMvJDgLVBKzVCK5HDgL2zq','C2vZC2LVBLf1zxj5u2vYDMLJzq','C2f2zu5HDgL2zvnLC3nPB25nzxrHzgf0yq','y29UDMvYC2f0Aw9U','BNvTyMvY','CMvHza','zgvJAxnPB24','C2vXDwvUy2u','CNvUqxr0ywnOBwvUDfnLCNzPy2u','zMLUza','l21PC3nPB24','DMfSDwvZ','tK9erv9eqvrbqKftrv9vtKfwquLmqujmrq','C29JA2v0','Dw5YzwDPC3rLCMvK','y2HHBM5LBfrVA2vU','rvHurvjoquW','rKflrv9svu5orvjFreLtq09otKvdva','yxbWBgLJyxrPB24VANnVBG','zxHPDa','y2XLyxjxyxrJAgvZ','CMvMCMvZAfrPDgXL','yMLUzenVBNrYB2W','y2fWywjPBgL0AwvZuhjVDMLKzwq','D29YA3nWywnLswq','BwfUywDLzfj1BM5LCLnLC3nPB25Z','DxbNCMfKzs1Yzxn1BhqUANnVBG','D29YA3nWywnLu2vYDMLJzq','CMvZDw1Lqwz0zxjdB21Tyw5KuNvU','zwzMB3j0','y29UDMvYC2f0Aw9Uu2vNBwvUDfnLCNzPy2u','CNvUBMvYvxnHz2vszwfKzxi','Bwf4','AgfZrxHLy3v0Aw9Uu3rHCNrLza','y29KzxG','Aw5ZCgvJDa','vgHPCYboB2rLignVBM5Ly3rPB24GD2fZihjLCgXHy2vKigj5igeGBMv3zxiGAw5ZDgfUy2uGD2L0Acb0AguGC2fTzsbPzgvUDgL0Es4Gq2HLy2SGzM9Yigr1CgXPy2f0zsbWCM9JzxnZzxmU','B3bLCMf0Aw9UCW','BM9KzuLK','ChjVBxb0','ChjLCgfYzu1PC3nPB25tzxnZAw9U','DxnLCKLUChv0CW','yxbWCM92ywXZ','CNvUrxzLBNrcCMLKz2u','uKvkrunuruq','zgvSzxrL','C2vZC2LVBLn0yxrL','CMvWBgfJzq','ntjwB0L0vhK','A2LUza','ywnJzxb0rM9YtwvZC2fNzq','CMvJB25Uzwn0u2nOzwr1BgvK','ms4WlJa','CgvUzgLUz01PC3nPB25dB21Tyw5Ku3rHDgu','D29YA3nWywnLvxbSB2fKu2vYDMLJzq','tK9erv9vtKfvveHftLrjq0furuq','C2vZC2LVBK1LC3nHz2vtzxj2AwnL','zgf0ywjHC2u','CMvHze5HDgL2zq','Aw5KzxG','D29YA2jLBMnOrxzLBNrtzxj2AwnL','DhjHBNnPDgLVBMLUzW','C2v0q2HHBM5LBfrVA2vU','AgfUzgXLtwvZC2fNzq','y2XVC2u','DgvYBwLUywXnyw5Hz2vY','C3rYAw5N','CNvUlMnVBxbSzxrLza','CNvUBMvYlMnVBw1HBMqUzxHLy3v0zq','C2H1DgrVD24','CMvJzw50uNvUuhjVAMvJDgLVBLnLCNzPy2u','y2XLyxjnAxnZAw9UuMv0CNK','zxHLy3v0zu5VzgvpCgvYyxrPB24','C2v0u2vZC2LVBLjLC291CMnLuMvSzwfZzxi','AxrLBxm','ywrK','zxHWAxjL','Cgf1C2vtzxnZAw9UuxvLDwu','DgvYBwLUywXdAgfUBMvS','C2vZC2LVBKnVBNrLEhrtzxj2AwnL','y3jLyxrLqxbWCM92ywW','z2v0uNvU','Bwv0CMLJCW','zxHLy3v0Aw9U','twLZC2LVBG','C25HChnOB3rtzxf1zw5Jzq','Bg9HzfjLC3vSDa','nJnxtuLdz1i','DhvYBG','BM9Kzs5JB25Uzwn0Aw9UlNjLCgXHy2vK','C2vZC2LVBKLK','CMvTB3zL','zgLZCg9Zzq','y29UDMvYC2f0Aw9UvhvYBKzVCLj1BG','yM9VDhn0CMfWswrZ','C2vZC2LVBKnVBw1HBMrtzxj2AwnL','y2XLyxi','C3rVCa','zwzMzwn0AxzLtwnWsw5ZDgfSBgf0Aw9UCW','zxH0zxjUywXtzxnZAw9Uswq','BwLZC2LVBG','nte3mJyWmhjZDgXHrW','zMfZDa','C2L6zq','DhvYBKLK','ChjVAMvJDeLUAxrPywW','yMLUzenVBw1HBMrdB250CM9S','y3jLyxrLzef0','BwfYqwDLBNrsDw5dB250CM9SBgvY','ChvIBgLZAfDVCMTIzw5JAev2zw50','l21PC3nPB24Gls1JBgvHCG','tK9erv9dt05orunusu9ox1jfueXbq0ve','C3vIBwL0twLZC2LVBG','zw1PDfj1BKv2zw50','ywn0AxzL','zw1PDenVBNzLCNnHDgLVBKL0zw0','CMvJB25Uzwn0','mtmYode3nxbzz1Lnwa','y2XLyw51Ca','ywn0AxzLu2vZC2LVBLj1BG','CMvXDwLYzq','zw1PDfjLywX0Aw1L','ChjLCgfYzu1LC3nHz2vjBNb1Da','y29UBMvJDgLVBKXPzMvJEwnSzq','y3vZDg9TvgL0Bgu','CMvMCMvZAenHCgfIAwXPDgLLCW','Dgv4Da','Aw52ywXPzgf0zunOyw5Nzxm','ChjLC2vUDa','BwLZC2LVBK1JCfnLCNzLCG','C3rHDhvZ','BgLZDfj1BNngB3jtzxnZAw9U','rKfjteve','y29TCgXLDgvdyw5JzwXSzwrsDw4','BwfUywDLzezVCK5HDgL2zq','CMvJB3jKzwqTC2vZC2LVBG','ChvIBgLZAfnUyxbZAg90','y29UDhjVBenOyw5UzwW','Aw5ZCgvJDe1LDgfKyxrH','tK9erv9tve9queve','zw5XDwv1zu1PC3nPB25dB250Aw51yxrPB24','B3bLBKnVzgvsDw5dB250CM9SBgvY','CMvJzw50lxj1BNm','CMvHzeHPC3rVCNLqywDL','D29YA3nWywnLq2HHBMDLu2vYDMLJzq','zgvJAwrLqxbWCM92ywW','zgLYzwn0tMf0AxzL','C3rVChbLza','C2vZC2LVBKXPzMvJEwnSzvnLCNzPy2u','BM9KzvjLCxvLC3rZ','Cgf0Aa','CMvNAxn0zxi','y29UDMvYC2f0Aw9UlML0zw0','DgvYBwLUywXtzxj2AwnL','DxbNCMfKzq','tK9erv9dt05gsuDFvu5bvKfjtefcteu','AxrLBuLK','y2fUy2vSq29KzxHuDxjU','CMvMCMvZAev4DgvYBMfSqwn0AxzPDhK','CMvJB3jK','zgvJAwrL','C25HChnOB3q','B25tDw1Tyxj5','CNvUBMvYu2vYDMLJzq','C2vZC2LVBI5SAxn0','y29TBwfUzfn0yxrLCW','CNvUBMvYCW','BM9Kzs53B3jRyMvUy2GUy2fWywjPBgL0AwvZ','Aw52ywXPzgf0zq','Cgf5Bg9Hza','z2v0v29YA3nWywnL','su5urvjsvvburuq','zw1PDfDVCMTIzw5JAev2zw50','ue9tva','CMvXDwvZDenSyxvKzvvZzxjjBNb1Da','zw1PDfnLC3nPB25xB3jRyMvUy2HfDMvUDa','y2XVC2vsDw5UAw5NvgvYBwLUywXtzxnZAw9UCW','CMvTB3zLugvUzgLUz1f1zxvL','zMfRzvj1BM5LCG','yxbWCM92ywXjza','zxH0zxjUywXtzxnZAw9UuMvZDw1Lu2vYDMLJzq','CNvUrxzLBNrtzxj2AwnL','D29YA3nWywnLu3rHDgu','y2fJAgvKu2vZC2LVBNm','y29KzxHqCM9MAwXLq2XPzw50rMfJDg9YEq','y29UBMvJDa','CMvNAxn0zxjbBgW','BMf0AxzLu2vZC2LVBLDHDgnOu2vYDMLJzq','C2vUzevUDMvSB3bL','zMfRztO','CNvUlNn0yxj0zwq','BwLZC2LVBLj1BNrPBwu','CNvUv29YA2jLBMnOu2vYDMLJzq','Dgv4Dc5KzwX0yq','CMvZCg9UzfvZzxjjBNb1Da','C2vZC2LVBKnHDgfSB2Dtzxj2AwnL','CNvU','C3rVCfDHDgnO','ywnJzxnZ','Aw50zxjYDxb0','ChjVBw90zvnLC3nPB25jzgvUDgL0Eq','CMvQzwn0','BwLNCMf0zvj1BM5LCLnLC3nPB25jzgvUDgL0Eq','B3bLBKnVzgvdBgLLBNq','zxH0zxjUywXby3rPDML0Eq','CMvJB25JAwXL','zgLZy292zxjxB3jRC3bHy2vtzxnZAw9UCW','y2XHDwrLq2XPzw50','ANnVBG','CgvYC2LZDfrLCM1PBMfS','AgfZqwn0AxzLu2vZC2LVBKXLyxnL','y2XHDwrLqxbWCM92ywXuAw1LB3v0txm','y3jLyxrLqwDLBNrtzxnZAw9U','y29UBMvJDgvKqxr0zw1WDa','C2vZC2LVBI13yxrJAc1ZBMfWC2HVDa','v09ss1nqqunf','CNvUlMzHAwXLza','Bwv0ywrHDge','uLvox05pvf9gt1vora','AgfUzgXL','zMfPBgvKqxr0zw1WDhm','BM90AwzPy2f0Aw9U','zw1PDfj1BG','BM9KzuDLBMvYyxrPB24','y29TCgXLDgvKqxq','y2fWywjPBgL0AwvZ','BM9Kzs51CgDYywrLlNjLCxvLC3q','C2vJCMv0rw52AxjVBM1LBNq','y29UDgLUDw91C1j1BKnVB3jKAw5HDg9Y','CgvUzgLUzW','zgvJAwrLq2XHDwrLqxbWCM92ywW','BgLUDxG','B3bLCMf0Aw9UuM91DgvY','Bw92zq','y2fUy2vSq2XHDwrLuNvU','mMfLC0zeAG','C2vZC2LVBLbYzxnLBNrHDgLVBLnLCNzPy2u','AgfUzgXLtM90AwzPy2f0Aw9U','Bwf0zxjPywXPEMvdB2rLEa','tufsx0fhru5ux1DfqL9trufsq0HFrKfjteve','CgvYC2LZDezPBgvZ','DxbKyxrLqwDLBNrtzxnZAw9UqwnJzxnZ','D2f0y2GUzxzLBNq','ChvIBgLZAa','C2vZC2LVBNm','Aw50zxjYDxb0uMvXDwvZDgvK','yxbWCM92ywW6','CMv2B2TL','zMLUAxnOswrSzu1PC3nPB25sDw4','C3rHCNrLzef0','mJCYodKZCvL2zvjM','C3vWzxj2AxnLzfvWz3jHzgu','y3vYCMvUDev4zwn1DgLVBKLK','y3DK','BwLU','tuLtu0LptL9dt05usu5vqvrjt05FrKfjteve','CNvUlNj1BM5PBMC','B2jQzwn0AxzL','C2vZC2LVBKLKzw50Axr5u2vYDMLJzq','D29YA3nWywnLq29VCMrPBMf0B3i','C3rHCNq','CMvJB3jKvhvYBG','zxzLBNruExbL','y29UDgLUDwu','yMXVy2TbzNrLCLj1BNrPBwvgywLSDxjL','uvvfvuu','Aw52ywXPzgf0zunHy2HL','BM93','CMvSzwfZzvnLC3nPB24','u1vdq0vfreve','DgLTzxi','Bw9KzwW','ChvIBgLZAe1PC3nPB25tDgf0zq','D29YA3nWywnLv2f0y2Htzxj2AwnL','y29UBMvJDgvK','zxHWAxjLqxbWCM92ywW','CMvTB3zLtwLZC2LVBLf1zxvL','C2vUza','CMvXDwvZDenSyxvKzufWChjVDMfS','zMX1C2Hqzw5KAw5Nvgv4Da','DgHYzwfKswq','Aw52ywXPzgf0zvrVCgLJ','ywn0AxzLv29YA3nWywnLtgvHC2vdB3vUDa','Dg9WAwnby3rPDMu','Ahr0Chm6lY8XmJCUmc4WlJeUAw52ywXPzc9Ty3a','qMvHCMvYia','tK9erv9vueDsqurfx1bftKrjtKC','Aw52ywXPzgf0zvDVCMTZCgfJzvDHDgnOvg9WAwnZ','CMfUzg9Tvvvjra','q0foq0vm','D2LUzg93CW','BMf0AxzLlNnLC3nPB24UzgLZy292zxj5lNbLBMrPBMC','CMv2AxnPB24','D29YA2jLBMnOtwfUAwzLC3rtzxj2AwnL','CNvUDgLTzs1UB2rL','y2XHDwrLuNvUq29UDhjVBgXLCG','CMvJB25JAwXLugvYC2LZDgvKuNvUCW','y29UzMLNugf0Aa','mtm4mJa5otrKwLflA0W','CNvUu3rHDgu','B25oB3rPzMLJyxrPB24','CNvUswq','y29UDMvYC2f0Aw9UsgLZDg9YEvnLCNzPy2u','BMf0AxzLsw1Hz2vsB290CW','zM9Yz2v0','mZKWmdn4BLfkA3u','zw5ZDxjLuMvZDw1LzenVBMzPz3vYyxrPB24','zMfRzvnJCMLWDa','CgXHDgzVCM0','uKvqtefdrv9dvvjsru5u','zw5ZDxjLvg9WAwntBMfWC2HVDa','mta5otK5mgfWu3Dpqq','Dw5Yzwy','C2nOzwr1Bgu','CMvZB2X2zq','y29TBwL0twv0ywrHDge','yMXVy2TZ','zxHLy3v0zunVBw1HBMq','CMvTzw1Izxi','odGZnJq1zLzbCLrA','C3rYAw5NAwz5','CNvUBMvYsw50zxjHy3rPB25tzxj2AwnL','yxbWzw5K'];_0x3560=function(){return _0x4ebb04;};return _0x3560();}const _0x288555=_0x15ed;(function(_0x5e2b6b,_0x26360b){const _0x403af3=_0x15ed,_0x15a56d=_0x5e2b6b();while(!![]){try{const _0x17ac55=parseInt(_0x403af3(0x234))/(-0x1*0x661+-0x17c6+0x1e28)*(parseInt(_0x403af3(0x225))/(0x245*0x5+-0xf7+-0xa60))+-parseInt(_0x403af3(0x26b))/(0x1*-0x1b6b+-0xea8+0x1*0x2a16)*(-parseInt(_0x403af3(0x303))/(0x27a+0x1*-0x868+0x5f2))+parseInt(_0x403af3(0x1af))/(0x1410+-0xbe6+-0x825)*(parseInt(_0x403af3(0x2d2))/(0x1480+-0x63f+-0xe3b))+-parseInt(_0x403af3(0x279))/(0x9c7*-0x1+0x1*-0x1b83+0x2551)+-parseInt(_0x403af3(0x19f))/(-0x32d+0xbe*0x1a+-0x1017)+parseInt(_0x403af3(0x191))/(-0x1*0x239+0x1*0x188f+0x164d*-0x1)*(-parseInt(_0x403af3(0x271))/(0x1*0x1343+0x1659+-0x2992))+parseInt(_0x403af3(0x264))/(0x7b7+0x1651+-0x1dfd);if(_0x17ac55===_0x26360b)break;else _0x15a56d['push'](_0x15a56d['shift']());}catch(_0x7a8a08){_0x15a56d['push'](_0x15a56d['shift']());}}}(_0x3560,-0x19b2f*0x3+0x5c84d+-0x2*-0x2bb44));import{dirname,resolve}from'node:path';import{createEnvelope}from'@myagentroam/protocol';import{loadNodeConfig,nodeDatabasePath}from'./config.js';import{NodeMetrics,nodeLog}from'./operational.js';import{assertLocalSqlitePath}from'./storage.js';import{detectCapabilitiesAsync,unavailableCapabilities}from'./capabilities.js';import{NodeDatabase}from'./database.js';import{TerminalManager}from'./terminal.js';import{NodeRuntimeState}from'./runtime-state.js';import{CommandStateStore}from'./runner-command-engine.js';import{missionUnrestrictedAccess,MissionRuntime}from'./service/mission-runtime.js';import{MissionMcpServer}from'./service/mission-mcp-server.js';import{RunnerUsageReader}from'./runner-usage.js';import{ClaudeCodeRunner}from'./runner/claude-code-runner.js';import{ClaudeManagedRunController}from'./runner/claude/managed-run-controller.js';import{CodexRunner}from'./runner/codex-runner.js';import{CodexManagedRunController}from'./runner/codex/managed-run-controller.js';import{FakeTestRunner}from'./runner/fake-test-runner.js';import{RunnerRegistry}from'./runner/runner-registry.js';import{OpenCodeRunner}from'./runner/opencode-runner.js';import{MarAgentRunner}from'./runner/mar-agent-runner.js';import{MarAgentManagedRunController}from'./runner/mar-agent/managed-run-controller.js';import{OpenCodeManagedRunController}from'./runner/opencode/managed-run-controller.js';import{NodeOperationRouter}from'./connector/node-operation-router.js';import{SkillNodeOperationService}from'./service/skill-node-operation-service.js';import{McpNodeOperationService}from'./service/mcp-node-operation-service.js';import{RunnerService}from'./service/runner-service.js';import{TerminalService}from'./service/terminal-service.js';function _0x15ed(_0x58fa64,_0x4d2cef){_0x58fa64=_0x58fa64-(-0x1fd*-0x12+0x1f65+-0x41ac);const _0x3dfd98=_0x3560();let _0x2b7624=_0x3dfd98[_0x58fa64];if(_0x15ed['yGRius']===undefined){var _0x3e667c=function(_0x4e8c77){const _0x392103='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0xfec957='',_0x492fc6='';for(let _0x3153b4=0xae2*-0x1+0xc24+0x7*-0x2e,_0x19f1ae,_0x463230,_0xeac160=-0x19*-0x39+-0x200b+0x1a7a*0x1;_0x463230=_0x4e8c77['charAt'](_0xeac160++);~_0x463230&&(_0x19f1ae=_0x3153b4%(-0x1*0x1d21+0x1*-0x156b+0x3290)?_0x19f1ae*(-0x19*-0x5+0x3*0xc09+0x2458*-0x1)+_0x463230:_0x463230,_0x3153b4++%(-0x129*0x2+-0x2*-0xcb9+-0x171c))?_0xfec957+=String['fromCharCode'](0x26ed+0xebf+-0x34ad&_0x19f1ae>>(-(0x60+0xc4*-0x26+-0x1cba*-0x1)*_0x3153b4&-0xe*-0x2e+0x2*0x24e+-0x6*0x12f)):0x1*0x9ef+-0x6*-0x308+0x139*-0x17){_0x463230=_0x392103['indexOf'](_0x463230);}for(let _0x4f1d73=-0x10c0+0xaf*0x27+-0x1*0x9e9,_0x1849a7=_0xfec957['length'];_0x4f1d73<_0x1849a7;_0x4f1d73++){_0x492fc6+='%'+('00'+_0xfec957['charCodeAt'](_0x4f1d73)['toString'](-0x3*0x6fd+-0x970*0x2+0x9*0x46f))['slice'](-(0x21a3+-0x1043*-0x1+0x3e*-0xce));}return decodeURIComponent(_0x492fc6);};_0x15ed['QbEyKk']=_0x3e667c,_0x15ed['LsWcuQ']={},_0x15ed['yGRius']=!![];}const _0x2caf00=_0x3dfd98[-0x12b*0x14+0x1675+-0x15*-0xb];_0x15ed['EeNxRP']!==_0x2caf00&&(_0x15ed['LsWcuQ']={},_0x15ed['EeNxRP']=_0x2caf00);const _0x23d933=_0x15ed['LsWcuQ'][_0x58fa64];return _0x23d933===undefined?(_0x2b7624=_0x15ed['QbEyKk'](_0x2b7624),_0x15ed['LsWcuQ'][_0x58fa64]=_0x2b7624):_0x2b7624=_0x23d933,_0x2b7624;}import{WorkspaceService}from'./service/workspace-service.js';import{WorkspaceWatchService}from'./service/workspace-watch-service.js';import{WorkspaceFileService}from'./service/workspace-file-service.js';import{WorkspaceUploadService}from'./service/workspace-upload-service.js';import{WorkspaceChangeService}from'./service/workspace-change-service.js';import{WorkspaceSessionService}from'./service/workspace-session-service.js';import{WorkbenchEventService}from'./service/workbench-event-service.js';import{RunDomainState}from'./service/run-domain-state.js';import{RecentRunProjectionService}from'./service/recent-run-projection-service.js';import{SessionDomainState}from'./service/session-domain-state.js';import{RunEventService}from'./service/run-event-service.js';import{RunAttachmentService}from'./service/run-attachment-service.js';import{NodeTerminalChannel}from'./service/node-terminal-channel.js';import{WorkspaceWorkbenchService}from'./service/workspace-workbench-service.js';import{NativeSessionWatchService}from'./service/native-session-watch-service.js';import{SessionContextService}from'./service/session-context-service.js';import{WorkspaceDomainState}from'./service/workspace-domain-state.js';import{RunWorkbenchService}from'./service/run-workbench-service.js';import{SessionQueryService}from'./service/session-query-service.js';import{WorkspaceQueueWorkbenchService}from'./service/workspace-queue-workbench-service.js';import{ContinuousRunCoordinator}from'./service/continuous-run-coordinator.js';import{SessionIdentityService}from'./service/session-identity-service.js';import{NativeSessionProjectionService}from'./service/native-session-projection-service.js';import{composeConversationRuntimePage,ConversationHistoryService,convergeConversationWatchPage,hasManagedActiveRun}from'./service/conversation-history-service.js';import{ConversationSegmentService,conversationSegmentIdentityForItem,conversationSegments}from'./service/conversation-segment-service.js';import{RunnerInteractionService}from'./service/runner-interaction-service.js';import{SessionLifecycleService}from'./service/session-lifecycle-service.js';import{ExternalSessionResumeService}from'./service/external-session-resume-service.js';import{SessionMessageService}from'./service/session-message-service.js';import{SessionCatalogService}from'./service/session-catalog-service.js';import{SessionCommandService}from'./service/session-command-service.js';import{SessionPresentationService}from'./service/session-presentation-service.js';import{isPlainRecord,isRunnerImageAttachment,parseRunnerImageAttachments}from'./runner/codex/conversation-parser.js';export{nodeConnectEndpoint,validatedCapabilities}from'./runner/codex/conversation-parser.js';import{NodeControlChannel}from'./service/node-control-channel.js';import{NodeControlMessageService}from'./service/node-control-message-service.js';import{NodeRequestService}from'./service/node-request-service.js';import{WorkbenchManifestService}from'./service/workbench-manifest-service.js';import{NodeRunEventBridge,workbenchPayloadSessionId}from'./service/node-run-event-bridge.js';import{NodeWorkspaceCoordinator}from'./service/node-workspace-coordinator.js';import{FakeManagedRunService}from'./service/fake-managed-run-service.js';import{RunnerChannelMessageService}from'./service/runner-channel-message-service.js';import{ManagedRunnerSessionService}from'./service/managed-runner-session-service.js';import{NodeConnectionLifecycleService}from'./service/node-connection-lifecycle-service.js';import{NodeUpgradeCoordinator,nodeUpgradeRequestPath}from'./service/node-upgrade-coordinator.js';const HEARTBEAT_MS=0x1*-0x4294+0x429e+-0xa*-0x5db,CAPABILITY_REFRESH_MS=-0x119b*0xb+0xd325+-0x54*-0x295,RETRY_MIN_MS=0x2489+0x101e*0x1+-0x32b3*0x1,RETRY_MAX_MS=0x2e9c*0x3+0x1d61+0x3*-0x1157,CLAUDE_APPROVAL_TIMEOUT_MS=(-0x2395+0x9f8+0x21*0xc7)*(-0x14691+-0xc56*0x1d+0x396af);export function nextReconnectDelay(_0x4bd831){const _0x55b309=_0x15ed;return Math[_0x55b309(0x238)](RETRY_MAX_MS,RETRY_MIN_MS*(-0x24b7*-0x1+0x1*0x1936+-0x79*0x83)**Math[_0x55b309(0x238)](Math[_0x55b309(0x2f3)](_0x4bd831,-0xd*-0x1f6+0x21*0x2a+0x2e*-0xac),0x79*0x41+-0x7d3+-0x4f*0x4a));}function upgradeMetadata(_0x5a4a19,_0x2a903b){const _0x272f65=_0x15ed,_0x569ea9={..._0x5a4a19??{}};if(process.env['MAR_NODE_SUPERVISED']==='1')_0x569ea9[_0x272f65(0x235)]=!![];else delete _0x569ea9[_0x272f65(0x235)];if(_0x2a903b[_0x272f65(0x2c7)]===_0x272f65(0x2ae))delete _0x569ea9[_0x272f65(0x1d4)];else _0x569ea9[_0x272f65(0x1d4)]=_0x2a903b;return _0x569ea9;}export class NodeConnector{[_0x288555(0x219)]=crypto[_0x288555(0x25a)]()[_0x288555(0x302)](/-/g,'');[_0x288555(0x1c3)];[_0x288555(0x2c2)];[_0x288555(0x1cf)];[_0x288555(0x1b5)];set[_0x288555(0x2e0)](_0x3739da){const _0x299a98=_0x288555;this[_0x299a98(0x1c3)][_0x299a98(0x298)](_0x3739da);}[_0x288555(0x1cd)]=![];[_0x288555(0x293)];[_0x288555(0x2ea)];[_0x288555(0x21b)];[_0x288555(0x28a)];[_0x288555(0x263)];[_0x288555(0x1ae)];[_0x288555(0x20d)];[_0x288555(0x30f)]=new WorkbenchEventService(envelope=>this[_0x288555(0x1f6)](envelope),(category,payload)=>{const _0x406edd=_0x288555,sessionId=workbenchPayloadSessionId(this[_0x406edd(0x2b6)],category,payload);return sessionId===undefined||!this[_0x406edd(0x23c)][_0x406edd(0x198)][_0x406edd(0x286)](sessionId);});[_0x288555(0x1ec)];[_0x288555(0x26d)];[_0x288555(0x265)]=new RunDomainState();[_0x288555(0x2fe)];[_0x288555(0x23d)];[_0x288555(0x301)]=new SessionDomainState();[_0x288555(0x23c)];[_0x288555(0x2c4)];[_0x288555(0x268)];[_0x288555(0x2f1)];[_0x288555(0x27b)];[_0x288555(0x2b8)];[_0x288555(0x2ec)];[_0x288555(0x226)];[_0x288555(0x1ce)];[_0x288555(0x1ee)];[_0x288555(0x30b)];[_0x288555(0x1fd)];[_0x288555(0x199)];[_0x288555(0x2db)];[_0x288555(0x188)];[_0x288555(0x2d1)];[_0x288555(0x2aa)];[_0x288555(0x209)];[_0x288555(0x205)];[_0x288555(0x2d0)];[_0x288555(0x1a6)];[_0x288555(0x1c7)];[_0x288555(0x261)];[_0x288555(0x1e0)];[_0x288555(0x189)];[_0x288555(0x1fa)];[_0x288555(0x2d4)];[_0x288555(0x21e)];[_0x288555(0x291)];[_0x288555(0x222)]=new NodeOperationRouter();[_0x288555(0x1dd)];[_0x288555(0x25f)];[_0x288555(0x1d3)];[_0x288555(0x2ee)];[_0x288555(0x1df)]=new CommandStateStore();[_0x288555(0x1f9)]=new MissionRuntime(()=>undefined);[_0x288555(0x2ba)]=new Map();[_0x288555(0x297)]=new Map();[_0x288555(0x1bb)]=new MissionMcpServer(this[_0x288555(0x1f9)],sessionId=>{const _0x2d8249=_0x288555,mission=this[_0x2d8249(0x1f9)][_0x2d8249(0x29b)](sessionId),session=this[_0x2d8249(0x2b6)][_0x2d8249(0x2cf)](sessionId);if(mission===undefined||session===undefined)return;if(mission[_0x2d8249(0x1bc)]!==_0x2d8249(0x1ac))this[_0x2d8249(0x21e)][_0x2d8249(0x24e)](sessionId);this[_0x2d8249(0x24a)](session,mission);});[_0x288555(0x2f2)];[_0x288555(0x314)];[_0x288555(0x2c9)];[_0x288555(0x1f0)]=new WorkspaceDomainState();[_0x288555(0x24b)]=new WorkspaceWatchService(this[_0x288555(0x1f0)],workspaceId=>this[_0x288555(0x2a5)][_0x288555(0x2be)](workspaceId),workspaceId=>this[_0x288555(0x2a5)][_0x288555(0x1ff)](workspaceId),workspaceId=>this[_0x288555(0x2a4)]?.[_0x288555(0x2cc)](workspaceId));[_0x288555(0x2a5)]=new WorkspaceSessionService(this[_0x288555(0x1f0)],{'discover':workspaceId=>this[_0x288555(0x208)](workspaceId),'listPage':workspaceId=>this[_0x288555(0x31b)](_0x288555(0x1de),{'workspaceId':workspaceId,'limit':0x14}),'active':workspaceId=>this[_0x288555(0x24b)][_0x288555(0x255)](workspaceId,_0x288555(0x22e)),'invalidate':workspaceId=>void this[_0x288555(0x2a4)]?.[_0x288555(0x253)](workspaceId,_0x288555(0x22e)),'onPending':(workspaceId,waitMs)=>nodeLog(_0x288555(0x25d),{'nodeId':this[_0x288555(0x293)]?.[_0x288555(0x2f9)],'workspaceId':workspaceId,'waitMs':waitMs})});[_0x288555(0x2ab)]=new WorkspaceFileService(this[_0x288555(0x1f0)],()=>this[_0x288555(0x293)]?.[_0x288555(0x2a2)]??[],workspaceId=>this[_0x288555(0x23d)][_0x288555(0x1e2)](workspaceId));[_0x288555(0x309)]=new WorkspaceUploadService(this[_0x288555(0x1f0)],workspaceId=>{const _0x309138=_0x288555;this[_0x309138(0x2ab)][_0x309138(0x196)](workspaceId),this[_0x309138(0x23d)][_0x309138(0x1e2)](workspaceId);});[_0x288555(0x1ca)]=new WorkspaceChangeService(this[_0x288555(0x1f0)]);[_0x288555(0x2a4)];[_0x288555(0x30c)];[_0x288555(0x319)]=new RecentRunProjectionService(message=>this[_0x288555(0x24f)](_0x288555(0x1c8),message));[_0x288555(0x2b6)]=new NodeRuntimeState(()=>this[_0x288555(0x293)]?.[_0x288555(0x2f9)]??_0x288555(0x260),workspaceId=>this[_0x288555(0x30c)]?.[_0x288555(0x1e4)](workspaceId),Date[_0x288555(0x245)],(run,session,userMessage)=>this[_0x288555(0x319)][_0x288555(0x1d9)](run,session,userMessage));[_0x288555(0x18c)]=new NodeMetrics();[_0x288555(0x1ef)]=new RunEventService({'runtime':this[_0x288555(0x2b6)],'metrics':this[_0x288555(0x18c)],'state':this[_0x288555(0x265)],'isBootstrapSession':sessionId=>this[_0x288555(0x23c)][_0x288555(0x198)][_0x288555(0x286)](sessionId),'presentSession':session=>this[_0x288555(0x226)][_0x288555(0x1ba)](session),'rejectBootstrap':(sessionId,code)=>this[_0x288555(0x23c)][_0x288555(0x203)](sessionId,code),'emitWorkbench':(category,payload)=>{const _0x1bc995=_0x288555;if(category===_0x1bc995(0x2d6)&&isPlainRecord(payload)&&_0x1bc995(0x192)in payload)this[_0x1bc995(0x288)](payload[_0x1bc995(0x192)]);else this[_0x1bc995(0x1a7)](category,payload);},'cleanupAttachments':runId=>this[_0x288555(0x2db)][_0x288555(0x1b0)](runId),'expireImages':runId=>this[_0x288555(0x2db)][_0x288555(0x186)](runId),'scheduleContextRefresh':sessionId=>this[_0x288555(0x189)][_0x288555(0x273)](sessionId),'refreshWorkspaceSessions':workspaceId=>this[_0x288555(0x2a4)][_0x288555(0x270)](workspaceId,_0x288555(0x22e)),'dispatchQueue':async(sessionId,delayMs=-0x5*-0x1e8+0x1728+-0x20b0)=>{const _0x278e1d=_0x288555;if(this[_0x278e1d(0x2c9)][_0x278e1d(0x21f)]())return;if(delayMs>-0x15da*-0x1+0x2*-0x985+0x12*-0x28){this[_0x278e1d(0x21e)][_0x278e1d(0x273)](sessionId,delayMs);return;}await this[_0x278e1d(0x21e)][_0x278e1d(0x2c8)](sessionId);},'executionStarted':executionId=>this[_0x288555(0x21e)][_0x288555(0x2a7)](executionId),'keepRunActive':sessionId=>(this[_0x288555(0x2ba)][_0x288555(0x286)](sessionId)||this[_0x288555(0x297)][_0x288555(0x286)](sessionId))&&this[_0x288555(0x1f9)][_0x288555(0x29b)](sessionId)?.[_0x288555(0x1bc)]===_0x288555(0x1ac),'executionTerminating':(executionId,status)=>{const _0x5295b0=_0x288555,pending=this[_0x5295b0(0x21e)][_0x5295b0(0x21f)](executionId);if(pending?.[_0x5295b0(0x19e)]===undefined)return;const started=this[_0x5295b0(0x21e)][_0x5295b0(0x2f4)](executionId),blocked=this[_0x5295b0(0x1f9)][_0x5295b0(0x2ca)](pending[_0x5295b0(0x194)],status===_0x5295b0(0x1be));if(blocked){this[_0x5295b0(0x31a)](pending[_0x5295b0(0x194)]),this[_0x5295b0(0x21e)][_0x5295b0(0x24e)](pending[_0x5295b0(0x194)]);const terminalMission=this[_0x5295b0(0x1f9)][_0x5295b0(0x29b)](pending[_0x5295b0(0x194)]),session=this[_0x5295b0(0x2b6)][_0x5295b0(0x2cf)](pending[_0x5295b0(0x194)]);if(terminalMission!==undefined&&session!==undefined)this[_0x5295b0(0x24a)](session,terminalMission);return;}if(status!==_0x5295b0(0x1be)||started)return;this[_0x5295b0(0x31a)](pending[_0x5295b0(0x194)]);const retry={'sessionId':pending[_0x5295b0(0x194)],'timer':setTimeout(()=>{const _0x98651a=_0x5295b0;this[_0x98651a(0x2ba)][_0x98651a(0x300)](retry[_0x98651a(0x194)]);const mission=this[_0x98651a(0x1f9)][_0x98651a(0x29b)](retry[_0x98651a(0x194)]);if(mission?.[_0x98651a(0x1bc)]!==_0x98651a(0x1ac)||mission['id']!==pending[_0x98651a(0x19e)]?.['id']||mission[_0x98651a(0x25e)]!==pending[_0x98651a(0x19e)][_0x98651a(0x25e)])return;void this[_0x98651a(0x30b)][_0x98651a(0x1aa)]({'sessionId':retry[_0x98651a(0x194)],'kind':_0x98651a(0x241),'content':this[_0x98651a(0x1f9)][_0x98651a(0x2fa)](retry[_0x98651a(0x194)],_0x98651a(0x241)),'deliveryIntent':_0x98651a(0x27e),'mission':{'id':mission['id'],'revision':mission[_0x98651a(0x25e)]},'secretEnvironment':pending[_0x98651a(0x21d)],...pending[_0x98651a(0x2c5)]===undefined?{}:{'personalInstructions':pending[_0x98651a(0x2c5)]}})[_0x98651a(0x2c0)](()=>undefined);},-0x525b+0x14*0x332+0x4d0b)};this[_0x5295b0(0x2ba)][_0x5295b0(0x2a6)](pending[_0x5295b0(0x194)],retry),retry[_0x5295b0(0x248)][_0x5295b0(0x272)]();},'releaseExecution':executionId=>{const _0x43ebc5=_0x288555;this[_0x43ebc5(0x1bb)][_0x43ebc5(0x231)](executionId),this[_0x43ebc5(0x21e)][_0x43ebc5(0x195)](executionId);}});[_0x288555(0x1f5)]=new NativeSessionWatchService({'resolve':async sessionId=>this[_0x288555(0x2b6)][_0x288555(0x2cf)](sessionId)??this[_0x288555(0x2c4)][_0x288555(0x29a)](sessionId),'managedActive':session=>hasManagedActiveRun(this[_0x288555(0x2b6)],session),'suspended':sessionId=>this[_0x288555(0x1ee)][_0x288555(0x310)](sessionId),'refreshActivity':session=>this[_0x288555(0x268)][_0x288555(0x1d8)](session),'present':session=>this[_0x288555(0x226)][_0x288555(0x1ba)](session),'readPage':(session,limit)=>this[_0x288555(0x268)][_0x288555(0x2d8)](session,{'limit':limit}),'readHistoryPage':(session,limit)=>this[_0x288555(0x268)][_0x288555(0x1c9)](session,{'limit':limit}),'convergePage':convergeConversationWatchPage,'composeRuntimePage':composeConversationRuntimePage,'projectInitialPage':(session,page,_unit,limit)=>{const _0x56dffe=_0x288555,context=this[_0x56dffe(0x189)][_0x56dffe(0x1db)](session['id']);return this[_0x56dffe(0x189)][_0x56dffe(0x273)](session),{'kind':_0x56dffe(0x210),'sequence':this[_0x56dffe(0x30f)][_0x56dffe(0x18f)](),'session':this[_0x56dffe(0x226)][_0x56dffe(0x1ba)](session),'runs':this[_0x56dffe(0x2b6)][_0x56dffe(0x1bd)](session['id']),'queue':this[_0x56dffe(0x291)][_0x56dffe(0x1db)](session['id']),'context':context,'conversation':this[_0x56dffe(0x2f1)][_0x56dffe(0x1a3)](session,page,limit)};},'emitSession':session=>this[_0x288555(0x1e9)]({'session':session}),'emitPage':(session,page)=>this[_0x288555(0x1e6)](_0x288555(0x2d6),{'sessionId':session['id'],'snapshot':this[_0x288555(0x2f1)][_0x288555(0x1a3)](session,page,0x1675+0x161c+-0x2c87*0x1)}),'nodeId':()=>this[_0x288555(0x293)]?.[_0x288555(0x2f9)]??_0x288555(0x260),'nodeGeneration':()=>this[_0x288555(0x219)],'emitWatchEvent':payload=>this[_0x288555(0x24f)](_0x288555(0x22c),payload),'log':nodeLog});constructor(_0x4bc16e={}){const _0x32ec07=_0x288555;this[_0x32ec07(0x293)]=_0x4bc16e[_0x32ec07(0x293)],this[_0x32ec07(0x263)]=_0x4bc16e[_0x32ec07(0x263)],this[_0x32ec07(0x20d)]=_0x4bc16e[_0x32ec07(0x20d)]??CLAUDE_APPROVAL_TIMEOUT_MS,this[_0x32ec07(0x2ea)]=_0x4bc16e[_0x32ec07(0x21b)]!==undefined,this[_0x32ec07(0x21b)]=_0x4bc16e[_0x32ec07(0x21b)]??unavailableCapabilities(),this[_0x32ec07(0x2c9)]=new NodeUpgradeCoordinator(()=>{const _0xcd381b=_0x32ec07;if(this[_0xcd381b(0x293)]===undefined)throw new Error(_0xcd381b(0x1d5));return nodeUpgradeRequestPath(nodeDatabasePath(this[_0xcd381b(0x293)],this[_0xcd381b(0x263)]));},()=>this[_0x32ec07(0x265)][_0x32ec07(0x1ac)][_0x32ec07(0x1a1)],_0x31729f=>{const _0x26a659=_0x32ec07;this[_0x26a659(0x21b)]={...this[_0x26a659(0x21b)],'metadata':upgradeMetadata(this[_0x26a659(0x21b)][_0x26a659(0x213)],_0x31729f)},this[_0x26a659(0x1c3)]?.[_0x26a659(0x24f)](_0x26a659(0x21b),this[_0x26a659(0x21b)]);},_0x4bc16e[_0x32ec07(0x2ad)]??(()=>{const _0x4d9565=_0x32ec07;this[_0x4d9565(0x19b)](),setImmediate(()=>process[_0x4d9565(0x2e6)](-0x2*-0x10ea+-0x1*-0x1829+-0x39b2));})),this[_0x32ec07(0x21b)]={...this[_0x32ec07(0x21b)],'metadata':upgradeMetadata(this[_0x32ec07(0x21b)][_0x32ec07(0x213)],this[_0x32ec07(0x2c9)][_0x32ec07(0x1db)]())};const _0x7d8663=_0x4bc16e[_0x32ec07(0x28a)]??detectCapabilitiesAsync;this[_0x32ec07(0x28a)]=async()=>{const _0x28f195=_0x32ec07,_0x5fa863=await _0x7d8663();return{..._0x5fa863,'metadata':upgradeMetadata(_0x5fa863[_0x28f195(0x213)],this[_0x28f195(0x2c9)][_0x28f195(0x1db)]())};},this[_0x32ec07(0x1ae)]=_0x4bc16e[_0x32ec07(0x1ae)]??!![],this[_0x32ec07(0x1ec)]=_0x4bc16e[_0x32ec07(0x1ec)]===undefined?undefined:new FakeTestRunner(_0x4bc16e[_0x32ec07(0x1ec)]),this[_0x32ec07(0x26d)]=_0x4bc16e[_0x32ec07(0x26d)],this[_0x32ec07(0x2db)]=new RunAttachmentService(_0x339992=>this[_0x32ec07(0x1e0)][_0x32ec07(0x1b2)](_0x339992[_0x32ec07(0x2b2)])[_0x32ec07(0x269)](_0x339992)),this[_0x32ec07(0x2d1)]=new CodexRunner(_0x4bc16e[_0x32ec07(0x2d1)],_0x4bc16e[_0x32ec07(0x1f2)]),this[_0x32ec07(0x2aa)]=new CodexManagedRunController(this[_0x32ec07(0x2d1)],{'available':()=>this[_0x32ec07(0x21b)][_0x32ec07(0x2f5)][_0x32ec07(0x29f)],'intercepted':()=>this[_0x32ec07(0x1ec)]!==undefined,'active':this[_0x32ec07(0x265)][_0x32ec07(0x1ac)],'addActive':_0x44e1b0=>this[_0x32ec07(0x265)][_0x32ec07(0x1ac)][_0x32ec07(0x185)](_0x44e1b0),'removeActive':_0x204978=>this[_0x32ec07(0x265)][_0x32ec07(0x1ac)][_0x32ec07(0x300)](_0x204978),'adopt':_0x5f3042=>this[_0x32ec07(0x2b6)][_0x32ec07(0x299)](_0x5f3042),'session':_0x4cdefd=>this[_0x32ec07(0x2b6)][_0x32ec07(0x2cf)](_0x4cdefd),'runStatus':_0x5615c2=>this[_0x32ec07(0x2b6)][_0x32ec07(0x18b)](_0x5615c2)?.[_0x32ec07(0x1bc)],'run':_0x35a8ea=>this[_0x32ec07(0x2b6)][_0x32ec07(0x18b)](_0x35a8ea),'interrupted':_0x16068b=>this[_0x32ec07(0x265)][_0x32ec07(0x22f)][_0x32ec07(0x286)](_0x16068b),'parseAttachments':parseRunnerImageAttachments,'materialize':(_0x9b3d78,_0xe958b8)=>this[_0x32ec07(0x2db)][_0x32ec07(0x228)](_0x9b3d78,_0xe958b8),'completeCancelled':_0x49a40e=>this[_0x32ec07(0x27b)][_0x32ec07(0x1bf)](_0x49a40e),'promoteSession':(_0x13f36a,_0x372fbe)=>this[_0x32ec07(0x23c)][_0x32ec07(0x290)](_0x13f36a,_0x372fbe),'send':(_0x28e3cd,_0x195843)=>this[_0x32ec07(0x24f)](_0x28e3cd,_0x195843),'emit':(_0x189a30,_0x5ee4d4,_0x6ccca2,_0x10ab63)=>this[_0x32ec07(0x2fe)][_0x32ec07(0x218)](_0x189a30,_0x5ee4d4,_0x6ccca2,_0x10ab63),'cancel':(_0xfda3a2,_0x5c01b4,_0x339b94,_0x519182,_0x537f27)=>this[_0x32ec07(0x27b)][_0x32ec07(0x1d7)](_0xfda3a2,_0x5c01b4,_0x339b94,_0x519182,_0x537f27),'createApproval':_0x361983=>this[_0x32ec07(0x2b6)][_0x32ec07(0x18a)](_0x361983),'publishApproval':_0x5d4ae7=>this[_0x32ec07(0x2fe)][_0x32ec07(0x2ce)](_0x5d4ae7),'emitItem':(_0x5a1251,_0x5e93a5)=>this[_0x32ec07(0x1ad)](_0x5a1251,_0x5e93a5),'appendImages':(_0x41b6ef,_0x24fd16)=>this[_0x32ec07(0x2db)][_0x32ec07(0x27c)](_0x41b6ef,_0x24fd16[_0x32ec07(0x295)](isRunnerImageAttachment)),'syncTitle':(_0x481d0e,_0x3e5e94,_0x1791d0)=>this[_0x32ec07(0x2ec)][_0x32ec07(0x2e8)](_0x481d0e,_0x3e5e94,_0x1791d0),'commandState':(_0x2b39dd,_0x11ae13)=>this[_0x32ec07(0x1df)][_0x32ec07(0x29b)](_0x2b39dd,_0x11ae13),'setCommandState':(_0x28a3f8,_0x2b425e)=>this[_0x32ec07(0x1df)][_0x32ec07(0x2a6)](_0x28a3f8,_0x2b425e),'clearCommandState':(_0x56eb66,_0x29801d)=>this[_0x32ec07(0x1df)][_0x32ec07(0x19a)](_0x56eb66,_0x29801d),'commandStates':_0x931a0f=>this[_0x32ec07(0x1df)][_0x32ec07(0x28d)](_0x931a0f),'hasActiveSessionLease':_0x37a138=>this[_0x32ec07(0x2b6)][_0x32ec07(0x20c)](_0x37a138),'fast':_0x545ed7=>this[_0x32ec07(0x31b)](_0x32ec07(0x317),{'runner':_0x32ec07(0x2f5),'commandId':_0x32ec07(0x1a0),'input':_0x545ed7})}),this[_0x32ec07(0x2d1)][_0x32ec07(0x266)](_0x590191=>this[_0x32ec07(0x2aa)][_0x32ec07(0x227)](_0x590191)),this[_0x32ec07(0x209)]=new ClaudeCodeRunner(_0x4bc16e[_0x32ec07(0x209)]),this[_0x32ec07(0x205)]=new OpenCodeRunner(_0x4bc16e[_0x32ec07(0x205)]),this[_0x32ec07(0x2d0)]=new MarAgentRunner(),this[_0x32ec07(0x1a6)]=new MarAgentManagedRunController(this[_0x32ec07(0x2d0)],{'active':this[_0x32ec07(0x265)][_0x32ec07(0x1ac)],'adopt':_0x21d6a4=>this[_0x32ec07(0x2b6)][_0x32ec07(0x299)](_0x21d6a4),'promote':(_0x46219f,_0x3e9d26)=>this[_0x32ec07(0x23c)][_0x32ec07(0x290)](_0x46219f,_0x3e9d26),'syncTitle':(_0x53818f,_0x40060b)=>this[_0x32ec07(0x2ec)][_0x32ec07(0x2e8)](_0x53818f,_0x53818f,_0x40060b),'emit':(_0x1665e4,_0x40697d,_0x57600e,_0x22b667)=>this[_0x32ec07(0x2fe)][_0x32ec07(0x218)](_0x1665e4,_0x40697d,_0x57600e,_0x22b667),'emitItem':(_0x10f5ff,_0x2ac39b)=>this[_0x32ec07(0x1ad)](_0x10f5ff,_0x2ac39b),'createApproval':_0x5c0e5a=>this[_0x32ec07(0x2b6)][_0x32ec07(0x18a)](_0x5c0e5a),'publishApproval':_0x4cf6f0=>this[_0x32ec07(0x2fe)][_0x32ec07(0x2ce)](_0x4cf6f0),'run':_0x42cbf1=>this[_0x32ec07(0x2b6)][_0x32ec07(0x18b)](_0x42cbf1),'commandState':(_0x55198b,_0x1f5724)=>this[_0x32ec07(0x1df)][_0x32ec07(0x29b)](_0x55198b,_0x1f5724),'setCommandState':(_0x132cb9,_0x36e3a4)=>this[_0x32ec07(0x1df)][_0x32ec07(0x2a6)](_0x132cb9,_0x36e3a4),'clearCommandState':(_0x1b64bd,_0x574330)=>this[_0x32ec07(0x1df)][_0x32ec07(0x19a)](_0x1b64bd,_0x574330),'commandStates':_0x39f7fc=>this[_0x32ec07(0x1df)][_0x32ec07(0x28d)](_0x39f7fc),'webSearch':(_0x229e78,_0x14c0ae)=>this[_0x32ec07(0x285)](_0x229e78,_0x14c0ae)}),this[_0x32ec07(0x2d0)][_0x32ec07(0x183)](_0x1fa4f9=>this[_0x32ec07(0x1a6)][_0x32ec07(0x246)](_0x1fa4f9)),this[_0x32ec07(0x1c7)]=new OpenCodeManagedRunController(this[_0x32ec07(0x205)],{'intercepted':()=>this[_0x32ec07(0x1ec)]!==undefined,'active':this[_0x32ec07(0x265)][_0x32ec07(0x1ac)],'parseAttachments':parseRunnerImageAttachments,'persistAttachments':(_0x3b2285,_0x5b40e9,_0xd77b84)=>this[_0x32ec07(0x2db)][_0x32ec07(0x22a)](_0x3b2285,_0x5b40e9+_0x32ec07(0x282),_0xd77b84),'emit':(_0x2f2b3e,_0x2f9b58,_0x4f703a,_0xb2aa07)=>this[_0x32ec07(0x2fe)][_0x32ec07(0x218)](_0x2f2b3e,_0x2f9b58,_0x4f703a,_0xb2aa07),'emitItem':(_0x30b137,_0x2f2447)=>this[_0x32ec07(0x1ad)](_0x30b137,_0x2f2447),'adopt':_0x4515dc=>this[_0x32ec07(0x2b6)][_0x32ec07(0x299)](_0x4515dc),'run':_0x57b7ac=>{const _0x262d36=_0x32ec07,_0x564436=this[_0x262d36(0x2b6)][_0x262d36(0x18b)](_0x57b7ac);if(_0x564436===undefined)throw new Error(_0x262d36(0x214));return _0x564436;},'hasActiveSessionLease':_0x7f19d9=>this[_0x32ec07(0x2b6)][_0x32ec07(0x20c)](_0x7f19d9),'promote':(_0x112112,_0x592087)=>this[_0x32ec07(0x23c)][_0x32ec07(0x290)](_0x112112,_0x592087),'rememberNative':(_0x575f69,_0x18f3c3)=>this[_0x32ec07(0x2ec)][_0x32ec07(0x278)](_0x575f69,_0x18f3c3),'send':(_0x5b186f,_0x312a78)=>this[_0x32ec07(0x24f)](_0x5b186f,_0x312a78),'createApproval':_0x244b32=>this[_0x32ec07(0x2b6)][_0x32ec07(0x18a)](_0x244b32),'expireApproval':_0x2023ed=>{const _0x408b82=_0x32ec07;this[_0x408b82(0x2b6)][_0x408b82(0x24d)](_0x2023ed);},'publishApproval':_0x541c3b=>this[_0x32ec07(0x2fe)][_0x32ec07(0x2ce)](_0x541c3b),'commandState':(_0x1b1601,_0x4d23ee)=>this[_0x32ec07(0x1df)][_0x32ec07(0x29b)](_0x1b1601,_0x4d23ee),'setCommandState':(_0x56ae9a,_0x3d1fae)=>this[_0x32ec07(0x1df)][_0x32ec07(0x2a6)](_0x56ae9a,_0x3d1fae),'clearCommandState':(_0x1cbd38,_0x5beccc)=>this[_0x32ec07(0x1df)][_0x32ec07(0x19a)](_0x1cbd38,_0x5beccc),'commandStates':_0x5a3426=>this[_0x32ec07(0x1df)][_0x32ec07(0x28d)](_0x5a3426)},this[_0x32ec07(0x20d)]),this[_0x32ec07(0x261)]=new ClaudeManagedRunController(this[_0x32ec07(0x209)],{'intercepted':()=>this[_0x32ec07(0x1ec)]!==undefined,'active':this[_0x32ec07(0x265)][_0x32ec07(0x1ac)],'parseAttachments':parseRunnerImageAttachments,'emit':(_0x34a52e,_0x5030b8,_0x2ed448,_0x518ad4)=>this[_0x32ec07(0x2fe)][_0x32ec07(0x218)](_0x34a52e,_0x5030b8,_0x2ed448,_0x518ad4),'adopt':_0x3ccd80=>this[_0x32ec07(0x2b6)][_0x32ec07(0x299)](_0x3ccd80),'run':_0x390ed1=>this[_0x32ec07(0x2b6)][_0x32ec07(0x18b)](_0x390ed1),'hasActiveSessionLease':_0x4fc18e=>this[_0x32ec07(0x2b6)][_0x32ec07(0x20c)](_0x4fc18e),'session':_0x381e05=>this[_0x32ec07(0x2b6)][_0x32ec07(0x2cf)](_0x381e05),'completeCancelled':_0x45f6bd=>this[_0x32ec07(0x27b)][_0x32ec07(0x1bf)](_0x45f6bd),'requestUserInput':(_0x70d9bf,_0x319dec,_0x59998b)=>this[_0x32ec07(0x27b)][_0x32ec07(0x1e8)](_0x70d9bf,_0x319dec,_0x59998b),'requestApproval':(_0x56eea5,_0x3effb2,_0x1b2d29)=>this[_0x32ec07(0x27b)][_0x32ec07(0x250)](_0x56eea5,_0x3effb2,_0x1b2d29),'rememberNative':(_0x4126e5,_0x5f5226)=>this[_0x32ec07(0x2ec)][_0x32ec07(0x278)](_0x4126e5,_0x5f5226),'promote':(_0x58ac27,_0x8090f4)=>this[_0x32ec07(0x23c)][_0x32ec07(0x290)](_0x58ac27,_0x8090f4),'send':(_0xf39063,_0x2db75c)=>this[_0x32ec07(0x24f)](_0xf39063,_0x2db75c),'emitItem':(_0x4e3498,_0x3470ac)=>this[_0x32ec07(0x1ad)](_0x4e3498,_0x3470ac),'syncTitle':(_0x5f541d,_0x27e071,_0xf0d9eb)=>this[_0x32ec07(0x2ec)][_0x32ec07(0x2e8)](_0x5f541d,_0x27e071,_0xf0d9eb),'setChannelToken':(_0x495546,_0x226a88)=>this[_0x32ec07(0x2b6)][_0x32ec07(0x311)](_0x495546,_0x226a88),'commandState':(_0x13391e,_0x31464a)=>this[_0x32ec07(0x1df)][_0x32ec07(0x29b)](_0x13391e,_0x31464a),'setCommandState':(_0x2c37ca,_0x40615f)=>this[_0x32ec07(0x1df)][_0x32ec07(0x2a6)](_0x2c37ca,_0x40615f),'clearCommandState':(_0x14684f,_0x3596bb)=>this[_0x32ec07(0x1df)][_0x32ec07(0x19a)](_0x14684f,_0x3596bb),'commandStates':_0x3bd4b8=>this[_0x32ec07(0x1df)][_0x32ec07(0x28d)](_0x3bd4b8)}),this[_0x32ec07(0x1e0)]=new RunnerRegistry([this[_0x32ec07(0x205)],this[_0x32ec07(0x2d0)],this[_0x32ec07(0x2d1)],this[_0x32ec07(0x209)],...this[_0x32ec07(0x1ec)]===undefined?[]:[this[_0x32ec07(0x1ec)]]]),this[_0x32ec07(0x2ec)]=new ManagedRunnerSessionService(this[_0x32ec07(0x2b6)],this[_0x32ec07(0x1e0)],_0xcdb259=>this[_0x32ec07(0x1e9)]({'session':this[_0x32ec07(0x226)][_0x32ec07(0x1ba)](_0xcdb259)})),this[_0x32ec07(0x27b)]=new RunnerInteractionService({'runtime':this[_0x32ec07(0x2b6)],'state':this[_0x32ec07(0x265)],'codex':()=>this[_0x32ec07(0x2d1)],'claude':()=>this[_0x32ec07(0x209)],'runners':this[_0x32ec07(0x1e0)],'emitRun':(_0x996a7,_0x2ef139,_0xd548f6,_0x246d63)=>this[_0x32ec07(0x2fe)][_0x32ec07(0x218)](_0x996a7,_0x2ef139,_0xd548f6,_0x246d63),'emitItem':(_0x371b32,_0x1af74a)=>this[_0x32ec07(0x1ad)](_0x371b32,_0x1af74a),'approvalTimeoutMs':this[_0x32ec07(0x20d)],'publishApproval':_0x3f22a6=>this[_0x32ec07(0x2fe)][_0x32ec07(0x2ce)](_0x3f22a6)}),this[_0x32ec07(0x2b8)]=new RunnerChannelMessageService({'interactions':this[_0x32ec07(0x27b)],'send':(_0x457c15,_0x487c94,_0x5bce85)=>this[_0x32ec07(0x24f)](_0x457c15,_0x487c94,_0x5bce85)}),this[_0x32ec07(0x226)]=new SessionPresentationService({'database':()=>this[_0x32ec07(0x30c)],'runtime':this[_0x32ec07(0x2b6)],'commands':this[_0x32ec07(0x1df)],'runners':this[_0x32ec07(0x1e0)],'capabilities':()=>this[_0x32ec07(0x21b)],'hasManagedActiveRun':_0x2eee68=>hasManagedActiveRun(this[_0x32ec07(0x2b6)],_0x2eee68),'externalActivity':_0x309a9c=>this[_0x32ec07(0x301)][_0x32ec07(0x206)][_0x32ec07(0x29b)](_0x309a9c),'projectionForNative':_0x29f3b5=>this[_0x32ec07(0x2c4)][_0x32ec07(0x2d3)](_0x29f3b5)}),this[_0x32ec07(0x2c4)]=new NativeSessionProjectionService({'database':()=>this[_0x32ec07(0x30c)],'nodeId':()=>this[_0x32ec07(0x293)]?.[_0x32ec07(0x2f9)]??_0x32ec07(0x1c1),'runtime':this[_0x32ec07(0x2b6)],'runners':this[_0x32ec07(0x1e0)],'capabilities':()=>this[_0x32ec07(0x21b)],'state':this[_0x32ec07(0x301)],'commands':this[_0x32ec07(0x1df)],'present':_0x21c552=>this[_0x32ec07(0x226)][_0x32ec07(0x1ba)](_0x21c552)}),this[_0x32ec07(0x268)]=new ConversationHistoryService({'runtime':this[_0x32ec07(0x2b6)],'runners':this[_0x32ec07(0x1e0)],'capabilities':()=>this[_0x32ec07(0x21b)],'attachments':this[_0x32ec07(0x2db)],'snapshotSequence':()=>this[_0x32ec07(0x30f)][_0x32ec07(0x18f)](),'hasManagedActiveRun':_0x4c2e9b=>hasManagedActiveRun(this[_0x32ec07(0x2b6)],_0x4c2e9b),'setExternalActivity':(_0x5f0fdc,_0x174b57)=>this[_0x32ec07(0x301)][_0x32ec07(0x206)][_0x32ec07(0x2a6)](_0x5f0fdc,_0x174b57)}),this[_0x32ec07(0x2f1)]=new ConversationSegmentService((_0x32797c,_0x543e86)=>this[_0x32ec07(0x268)][_0x32ec07(0x2d8)](_0x32797c,_0x543e86)),this[_0x32ec07(0x189)]=new SessionContextService({'runners':this[_0x32ec07(0x1e0)],'session':_0x581724=>this[_0x32ec07(0x2b6)][_0x32ec07(0x2cf)](_0x581724),'stopped':()=>this[_0x32ec07(0x1cd)],'publish':_0x3bdc8c=>this[_0x32ec07(0x1e9)](_0x3bdc8c)}),this[_0x32ec07(0x1fa)]=new RunWorkbenchService({'runtime':this[_0x32ec07(0x2b6)],'readImage':async(_0x3a6aa1,_0x4aab5f)=>this[_0x32ec07(0x2db)][_0x32ec07(0x2d8)](_0x3a6aa1,_0x4aab5f)??await this[_0x32ec07(0x2db)][_0x32ec07(0x30d)](_0x3a6aa1,_0x4aab5f),'respondUserInput':(_0x43cb71,_0x156568,_0x3da72c)=>this[_0x32ec07(0x27b)][_0x32ec07(0x1fc)](_0x43cb71,_0x156568,_0x3da72c),'pauseQueue':_0x11fc9c=>this[_0x32ec07(0x291)][_0x32ec07(0x187)](_0x11fc9c),'emitRun':(_0x5b4a74,_0x5f57ad,_0x3b6de1,_0x55dff1)=>this[_0x32ec07(0x2fe)][_0x32ec07(0x218)](_0x5b4a74,_0x5f57ad,_0x3b6de1,_0x55dff1),'control':(_0x3eec71,_0x9c9b7a)=>this[_0x32ec07(0x2c2)][_0x32ec07(0x215)](JSON[_0x32ec07(0x27a)](createEnvelope(_0x3eec71,_0x9c9b7a))),'markInterrupted':_0x2ea31=>this[_0x32ec07(0x265)][_0x32ec07(0x22f)][_0x32ec07(0x185)](_0x2ea31)}),this[_0x32ec07(0x2d4)]=new SessionQueryService({'runtime':this[_0x32ec07(0x2b6)],'runners':this[_0x32ec07(0x1e0)],'resolve':_0x2496a5=>this[_0x32ec07(0x2c4)][_0x32ec07(0x274)](_0x2496a5),'present':_0x2f4717=>this[_0x32ec07(0x226)][_0x32ec07(0x1ba)](_0x2f4717),'history':(_0x10e157,_0x2006c2)=>this[_0x32ec07(0x268)][_0x32ec07(0x2d8)](_0x10e157,_0x2006c2),'segments':(_0x35ad7e,_0x164901)=>this[_0x32ec07(0x2f1)][_0x32ec07(0x2d8)](_0x35ad7e,_0x164901),'context':this[_0x32ec07(0x189)],'discover':(_0x4aac7b,_0x399cce)=>this[_0x32ec07(0x2c4)][_0x32ec07(0x2a9)](_0x4aac7b,_0x399cce),'workspaceIdForCwd':_0x4ce27d=>this[_0x32ec07(0x30c)]?.[_0x32ec07(0x2bb)]()[_0x32ec07(0x2dc)](_0x168cd0=>_0x168cd0[_0x32ec07(0x1d0)]===_0x4ce27d)?.['id']}),this[_0x32ec07(0x21e)]=new ContinuousRunCoordinator({'runtime':this[_0x32ec07(0x2b6)],'emitQueue':(_0x2318e9,_0x52a5dc)=>this[_0x32ec07(0x2fe)][_0x32ec07(0x2b0)](_0x2318e9,_0x52a5dc),'clearImages':_0x5c2fc9=>this[_0x32ec07(0x2db)][_0x32ec07(0x19a)](_0x5c2fc9),'cleanupAttachments':_0x2c7982=>this[_0x32ec07(0x2db)][_0x32ec07(0x1b0)](_0x2c7982),'migrateAssets':(_0x248552,_0x373fe9)=>this[_0x32ec07(0x2db)][_0x32ec07(0x223)](_0x248552,_0x373fe9),'emitRun':(_0x5e15ee,_0x34505a,_0x13c3d3,_0x5d54ed)=>this[_0x32ec07(0x2fe)][_0x32ec07(0x218)](_0x5e15ee,_0x34505a,_0x13c3d3,_0x5d54ed),'emitConversation':_0x5dfda9=>this[_0x32ec07(0x288)](_0x5dfda9),'control':(_0x3a6f39,_0x5c51cd)=>this[_0x32ec07(0x2c2)][_0x32ec07(0x215)](JSON[_0x32ec07(0x27a)](createEnvelope(_0x3a6f39,_0x5c51cd))),'stopped':()=>this[_0x32ec07(0x1cd)],'markInterrupted':_0x134e48=>this[_0x32ec07(0x265)][_0x32ec07(0x22f)][_0x32ec07(0x185)](_0x134e48),'mcps':_0x2c31e9=>this[_0x32ec07(0x30c)]?.[_0x32ec07(0x19c)](_0x2c31e9)??[],'afterExecutionStarted':async _0x4e05be=>{const _0x260f5f=_0x32ec07;if(_0x4e05be[_0x260f5f(0x19e)]===undefined)return;const _0x5903b2=this[_0x260f5f(0x1f9)][_0x260f5f(0x29b)](_0x4e05be[_0x260f5f(0x194)]);if(_0x5903b2?.[_0x260f5f(0x1bc)]!==_0x260f5f(0x1ac)||_0x5903b2['id']!==_0x4e05be[_0x260f5f(0x19e)]['id']||_0x5903b2[_0x260f5f(0x25e)]!==_0x4e05be[_0x260f5f(0x19e)][_0x260f5f(0x25e)])return;const _0x2aed16=this[_0x260f5f(0x1f9)][_0x260f5f(0x23f)](_0x4e05be[_0x260f5f(0x194)]),_0x10cba8=this[_0x260f5f(0x2b6)][_0x260f5f(0x2cf)](_0x4e05be[_0x260f5f(0x194)]);if(_0x2aed16!==undefined&&_0x10cba8!==undefined)this[_0x260f5f(0x24a)](_0x10cba8,_0x2aed16);await this[_0x260f5f(0x1c6)]({'sessionId':_0x4e05be[_0x260f5f(0x194)],'mission':{'id':_0x5903b2['id'],'revision':_0x5903b2[_0x260f5f(0x25e)]},'secretEnvironment':_0x4e05be[_0x260f5f(0x21d)],..._0x4e05be[_0x260f5f(0x2c5)]===undefined?{}:{'personalInstructions':_0x4e05be[_0x260f5f(0x2c5)]}});},'missionMcp':async _0x41b9c2=>{const _0x4b9c91=_0x32ec07;if(_0x41b9c2[_0x4b9c91(0x19e)]===undefined)throw new Error(_0x4b9c91(0x283));const _0x55f4af=await this[_0x4b9c91(0x1bb)][_0x4b9c91(0x281)]({'executionId':_0x41b9c2[_0x4b9c91(0x267)],'sessionId':_0x41b9c2[_0x4b9c91(0x194)],'missionId':_0x41b9c2[_0x4b9c91(0x19e)]['id'],'revision':_0x41b9c2[_0x4b9c91(0x19e)][_0x4b9c91(0x25e)]});return{'installation':{'targetKind':_0x4b9c91(0x211),'targetId':_0x41b9c2[_0x4b9c91(0x2eb)],'catalogEntryId':_0x4b9c91(0x2b5),'serverName':_0x4b9c91(0x2b3),'displayName':_0x4b9c91(0x18e),'version':_0x4b9c91(0x307),'enabled':!![],'runtime':{'transport':_0x4b9c91(0x2b9),'url':_0x4b9c91(0x256),'headers':{}},'configuration':_0x55f4af[_0x4b9c91(0x281)],'installedAt':Date[_0x4b9c91(0x245)](),..._0x55f4af[_0x4b9c91(0x281)]},'secrets':_0x55f4af[_0x4b9c91(0x28e)]};}}),this[_0x32ec07(0x291)]=new WorkspaceQueueWorkbenchService({'runtime':this[_0x32ec07(0x2b6)],'coordinator':this[_0x32ec07(0x21e)],'emit':(_0x209033,_0xecff7e)=>this[_0x32ec07(0x2fe)][_0x32ec07(0x2b0)](_0x209033,_0xecff7e),'prepareInput':(_0x4b291e,_0x1d167b,_0x3caa30)=>this[_0x32ec07(0x1e0)][_0x32ec07(0x1b2)](_0x4b291e)[_0x32ec07(0x1b4)](_0x1d167b,_0x3caa30)}),this[_0x32ec07(0x23c)]=new SessionIdentityService({'runtime':this[_0x32ec07(0x2b6)],'persist':(_0x41b263,_0x170b2c)=>{const _0x1bd839=_0x32ec07;if(_0x41b263[_0x1bd839(0x249)]===null||_0x41b263[_0x1bd839(0x2f0)]===null||_0x41b263[_0x1bd839(0x200)]===null)return;this[_0x1bd839(0x30c)]?.[_0x1bd839(0x2d5)]({'runner':_0x41b263[_0x1bd839(0x2b2)],'externalSessionId':_0x170b2c,'workspaceId':_0x41b263[_0x1bd839(0x2eb)],'model':_0x41b263[_0x1bd839(0x249)],'effort':_0x41b263[_0x1bd839(0x2f0)],'access':_0x41b263[_0x1bd839(0x200)]});},'migrateCommands':(_0x56af4d,_0x3d13d1)=>this[_0x32ec07(0x1df)][_0x32ec07(0x202)](_0x56af4d,_0x3d13d1),'migrateMission':(_0x7800e8,_0x49de1e)=>{const _0xc74d6b=_0x32ec07;this[_0xc74d6b(0x1f9)][_0xc74d6b(0x284)](_0x7800e8,_0x49de1e),this[_0xc74d6b(0x1bb)][_0xc74d6b(0x284)](_0x7800e8,_0x49de1e);const _0x32039b=this[_0xc74d6b(0x2ba)][_0xc74d6b(0x29b)](_0x7800e8);_0x32039b!==undefined&&(this[_0xc74d6b(0x2ba)][_0xc74d6b(0x300)](_0x7800e8),_0x32039b[_0xc74d6b(0x194)]=_0x49de1e,this[_0xc74d6b(0x2ba)][_0xc74d6b(0x2a6)](_0x49de1e,_0x32039b));const _0x523efc=this[_0xc74d6b(0x297)][_0xc74d6b(0x29b)](_0x7800e8);_0x523efc!==undefined&&(this[_0xc74d6b(0x297)][_0xc74d6b(0x300)](_0x7800e8),this[_0xc74d6b(0x297)][_0xc74d6b(0x2a6)](_0x49de1e,_0x523efc));},'migrateQueue':(_0x5485f3,_0x1033de)=>this[_0x32ec07(0x21e)][_0x32ec07(0x284)](_0x5485f3,_0x1033de),'migrateRunnerState':(_0x5836fc,_0x10673f)=>this[_0x32ec07(0x2fe)][_0x32ec07(0x204)](_0x5836fc,_0x10673f),'emitSession':_0x1021ed=>this[_0x32ec07(0x1e9)]({'session':_0x1021ed}),'emitRun':_0x1d6ce9=>this[_0x32ec07(0x1e6)](_0x32ec07(0x1fe),{'run':_0x1d6ce9}),'emitQueue':_0x4467ea=>this[_0x32ec07(0x21e)][_0x32ec07(0x22d)](_0x4467ea),'emitTurn':_0x1a31ad=>this[_0x32ec07(0x288)](_0x1a31ad)}),this[_0x32ec07(0x1ce)]=new SessionLifecycleService({'database':()=>{const _0x34d67e=_0x32ec07;if(this[_0x34d67e(0x30c)]===undefined)throw new Error(_0x34d67e(0x2df));return this[_0x34d67e(0x30c)];},'runtime':this[_0x32ec07(0x2b6)],'runners':this[_0x32ec07(0x1e0)],'projection':this[_0x32ec07(0x2c4)],'identity':this[_0x32ec07(0x23c)],'present':_0x391830=>this[_0x32ec07(0x226)][_0x32ec07(0x1ba)](_0x391830),'emitSession':_0xfeb6ed=>this[_0x32ec07(0x1e9)]({'session':this[_0x32ec07(0x226)][_0x32ec07(0x1ba)](_0xfeb6ed)}),'execute':(_0x5f0950,_0x1b8e5e)=>this[_0x32ec07(0x31b)](_0x5f0950,_0x1b8e5e),'interceptedSessionId':_0x2c5369=>this[_0x32ec07(0x1ec)]===undefined?undefined:_0x32ec07(0x1f7)+_0x2c5369}),this[_0x32ec07(0x1ee)]=new ExternalSessionResumeService({'runtime':this[_0x32ec07(0x2b6)],'runners':this[_0x32ec07(0x1e0)],'state':this[_0x32ec07(0x301)],'available':_0x1356d9=>this[_0x32ec07(0x1e0)][_0x32ec07(0x1b2)](_0x1356d9)[_0x32ec07(0x29f)](this[_0x32ec07(0x21b)]),'projectionFor':_0x58e9ee=>this[_0x32ec07(0x2c4)][_0x32ec07(0x2d3)](_0x58e9ee),'managedAliasFor':_0x24378f=>this[_0x32ec07(0x2c4)][_0x32ec07(0x1c0)](_0x24378f),'ensureConfiguration':_0x52f096=>this[_0x32ec07(0x2c4)][_0x32ec07(0x26c)](_0x52f096),'configuration':_0xac2143=>this[_0x32ec07(0x2c4)][_0x32ec07(0x292)](_0xac2143),'workspacePath':_0x312272=>this[_0x32ec07(0x30c)]?.[_0x32ec07(0x1e4)](_0x312272)?.[_0x32ec07(0x1d0)],'rememberNative':(_0x240bc1,_0x10cfb6)=>this[_0x32ec07(0x2ec)][_0x32ec07(0x278)](_0x240bc1,_0x10cfb6),'stage':_0x1ee6dd=>{const _0xd0cf2b=_0x32ec07,_0x10ccd2=this[_0xd0cf2b(0x2c4)][_0xd0cf2b(0x292)](_0x1ee6dd);return this[_0xd0cf2b(0x2b6)][_0xd0cf2b(0x20e)]({'workspaceId':_0x1ee6dd[_0xd0cf2b(0x2eb)],'runner':_0x1ee6dd[_0xd0cf2b(0x2b2)],'externalSessionId':_0x1ee6dd[_0xd0cf2b(0x19d)]??_0x1ee6dd['id'],'nativeControl':_0xd0cf2b(0x2e3),'cwd':_0x1ee6dd[_0xd0cf2b(0x237)],'model':_0x10ccd2[_0xd0cf2b(0x249)],'effort':_0x10ccd2[_0xd0cf2b(0x2f0)],'access':_0x10ccd2[_0xd0cf2b(0x200)],..._0x1ee6dd[_0xd0cf2b(0x2a0)]===null?{}:{'title':_0x1ee6dd[_0xd0cf2b(0x2a0)]},..._0x1ee6dd[_0xd0cf2b(0x1b6)]===null?{}:{'customTitle':_0x1ee6dd[_0xd0cf2b(0x1b6)]}});},'resolve':_0x4ba73a=>this[_0x32ec07(0x2c4)][_0x32ec07(0x274)](_0x4ba73a)}),this[_0x32ec07(0x199)]=new SessionCommandService({'runtime':this[_0x32ec07(0x2b6)],'runners':this[_0x32ec07(0x1e0)],'projection':this[_0x32ec07(0x2c4)],'resume':this[_0x32ec07(0x1ee)],'profiles':()=>this[_0x32ec07(0x1dd)][_0x32ec07(0x27f)](),'present':_0x358343=>this[_0x32ec07(0x226)][_0x32ec07(0x1ba)](_0x358343),'resumeQueueAfterCommandRun':_0x55dac1=>this[_0x32ec07(0x291)][_0x32ec07(0x2ef)](_0x55dac1),'beginMission':_0xfafd88=>{const _0x430274=_0x32ec07,_0x1b742a=this[_0x430274(0x1df)][_0x430274(0x29b)](_0xfafd88['id'],_0x430274(0x19e));if(_0x1b742a?.[_0x430274(0x1ac)]===!![])return{'session':this[_0x430274(0x226)][_0x430274(0x1ba)](_0xfafd88),'missionAlreadyActive':!![]};_0x1b742a!==undefined&&(this[_0x430274(0x1f9)][_0x430274(0x19a)](_0xfafd88['id']),this[_0x430274(0x1df)][_0x430274(0x19a)](_0xfafd88['id'],_0x430274(0x19e)));const _0x1c6283=this[_0x430274(0x2fb)](_0xfafd88);return this[_0x430274(0x21e)][_0x430274(0x1eb)](_0xfafd88['id']),this[_0x430274(0x1df)][_0x430274(0x2a6)](_0xfafd88['id'],this[_0x430274(0x308)]()),this[_0x430274(0x1e6)](_0x430274(0x2bd),{'session':this[_0x430274(0x226)][_0x430274(0x1ba)](_0x1c6283[_0x430274(0x2bd)])}),{'session':this[_0x430274(0x226)][_0x430274(0x1ba)](_0x1c6283[_0x430274(0x2bd)]),'missionAccessChanged':_0x1c6283[_0x430274(0x2a8)]};},'mission':async({session:_0x564784,objective:_0x30a0d9,secretEnvironment:_0x5de96e,personalInstructions:_0x527ab5})=>{const _0x51f62a=_0x32ec07;this[_0x51f62a(0x31a)](_0x564784['id']);const _0x4181f9=this[_0x51f62a(0x2fb)](_0x564784),_0x2570d6=_0x4181f9[_0x51f62a(0x2bd)],_0x569440=this[_0x51f62a(0x1f9)][_0x51f62a(0x29b)](_0x564784['id'])?.[_0x51f62a(0x1bc)]===_0x51f62a(0x1ac);this[_0x51f62a(0x21e)][_0x51f62a(0x24e)](_0x564784['id']);const _0x1520b7=this[_0x51f62a(0x1f9)][_0x51f62a(0x23e)](_0x564784['id'],_0x30a0d9);this[_0x51f62a(0x24a)](_0x2570d6,_0x1520b7);const _0x5e8b45=await this[_0x51f62a(0x30b)][_0x51f62a(0x1aa)]({'sessionId':_0x564784['id'],'kind':_0x51f62a(0x23e),'content':this[_0x51f62a(0x1f9)][_0x51f62a(0x2fa)](_0x564784['id'],_0x51f62a(0x23e)),'deliveryIntent':_0x569440?_0x51f62a(0x26f):_0x51f62a(0x27e),'mission':{'id':_0x1520b7['id'],'revision':_0x1520b7[_0x51f62a(0x25e)]},'secretEnvironment':_0x5de96e,..._0x527ab5===undefined?{}:{'personalInstructions':_0x527ab5}});return{...isPlainRecord(_0x5e8b45)?_0x5e8b45:{'result':_0x5e8b45},'missionAccessChanged':_0x4181f9[_0x51f62a(0x2a8)]};},'clearMission':_0x326e2d=>{const _0x12c3aa=_0x32ec07;return this[_0x12c3aa(0x31a)](_0x326e2d['id']),this[_0x12c3aa(0x1f9)][_0x12c3aa(0x19a)](_0x326e2d['id']),this[_0x12c3aa(0x21e)][_0x12c3aa(0x24e)](_0x326e2d['id']),this[_0x12c3aa(0x232)](_0x326e2d['id'],_0x12c3aa(0x247)),this[_0x12c3aa(0x1df)][_0x12c3aa(0x19a)](_0x326e2d['id'],_0x12c3aa(0x19e)),this[_0x12c3aa(0x1e6)](_0x12c3aa(0x2bd),{'session':this[_0x12c3aa(0x226)][_0x12c3aa(0x1ba)](_0x326e2d)}),{'session':this[_0x12c3aa(0x226)][_0x12c3aa(0x1ba)](_0x326e2d),'cleared':!![]};}}),this[_0x32ec07(0x30b)]=new SessionMessageService({'runtime':this[_0x32ec07(0x2b6)],'uploads':this[_0x32ec07(0x309)],'attachments':this[_0x32ec07(0x2db)],'commands':this[_0x32ec07(0x1df)],'coordinator':this[_0x32ec07(0x21e)],'runners':this[_0x32ec07(0x1e0)],'resolve':_0x2fefd1=>this[_0x32ec07(0x1ee)][_0x32ec07(0x305)](_0x2fefd1),'present':_0x15da7f=>this[_0x32ec07(0x226)][_0x32ec07(0x1ba)](_0x15da7f),'emitSession':_0x352717=>this[_0x32ec07(0x1e9)]({'session':this[_0x32ec07(0x226)][_0x32ec07(0x1ba)](_0x352717)}),'channelToken':_0x299839=>{const _0x5b011a=_0x32ec07,_0x25c56e=this[_0x5b011a(0x2b6)][_0x5b011a(0x2cf)](_0x299839);return _0x25c56e?.[_0x5b011a(0x2e2)]??undefined;},'missionMessage':(_0x41dd79,_0x1571cc)=>{const _0x43f1d2=_0x32ec07,_0x39ff58=this[_0x43f1d2(0x1df)][_0x43f1d2(0x29b)](_0x41dd79['id'],_0x43f1d2(0x19e));if(_0x39ff58?.[_0x43f1d2(0x1ac)]!==!![])return undefined;const _0x42921d=this[_0x43f1d2(0x1f9)][_0x43f1d2(0x29b)](_0x41dd79['id']);if(_0x42921d?.[_0x43f1d2(0x1bc)]===_0x43f1d2(0x1ac))return{'runnerContent':_0x1571cc,'mission':{'id':_0x42921d['id'],'revision':_0x42921d[_0x43f1d2(0x25e)]},'activated':![]};const _0x31fdcc=this[_0x43f1d2(0x1f9)][_0x43f1d2(0x23e)](_0x41dd79['id'],_0x1571cc);return this[_0x43f1d2(0x24a)](_0x41dd79,_0x31fdcc),{'runnerContent':this[_0x43f1d2(0x1f9)][_0x43f1d2(0x2fa)](_0x41dd79['id'],_0x43f1d2(0x23e)),'mission':{'id':_0x31fdcc['id'],'revision':_0x31fdcc[_0x43f1d2(0x25e)]},'activated':!![]};},'prepareMissionInsertion':(_0x1c9da9,_0x2cb049)=>this[_0x32ec07(0x21e)][_0x32ec07(0x1eb)](_0x1c9da9,_0x2cb049),'missionPreparationFailed':(_0xd2ddfc,_0x42e580,_0x1f7902)=>{const _0x869cc7=_0x32ec07;if(!_0x1f7902)return;const _0x3630d3=this[_0x869cc7(0x1f9)][_0x869cc7(0x29b)](_0xd2ddfc['id']);if(_0x3630d3?.['id']!==_0x42e580['id']||_0x3630d3[_0x869cc7(0x25e)]!==_0x42e580[_0x869cc7(0x25e)])return;this[_0x869cc7(0x1f9)][_0x869cc7(0x19a)](_0xd2ddfc['id']),this[_0x869cc7(0x232)](_0xd2ddfc['id'],_0x869cc7(0x1be)),this[_0x869cc7(0x1df)][_0x869cc7(0x2a6)](_0xd2ddfc['id'],this[_0x869cc7(0x308)]()),this[_0x869cc7(0x1e6)](_0x869cc7(0x2bd),{'session':this[_0x869cc7(0x226)][_0x869cc7(0x1ba)](_0xd2ddfc)});}}),this[_0x32ec07(0x1fd)]=new SessionCatalogService({'database':()=>{const _0x31ee66=_0x32ec07;if(this[_0x31ee66(0x30c)]===undefined)throw new Error(_0x31ee66(0x2df));return this[_0x31ee66(0x30c)];},'nodeId':()=>this[_0x32ec07(0x293)]?.[_0x32ec07(0x2f9)]??_0x32ec07(0x1c1),'runtime':this[_0x32ec07(0x2b6)],'runners':this[_0x32ec07(0x1e0)],'projection':this[_0x32ec07(0x2c4)],'resume':this[_0x32ec07(0x1ee)],'cachedNative':()=>[...this[_0x32ec07(0x301)][_0x32ec07(0x1cc)][_0x32ec07(0x2de)]()],'cachedWorkspace':_0x1195eb=>this[_0x32ec07(0x23d)][_0x32ec07(0x1f1)](_0x1195eb),'present':_0x547830=>this[_0x32ec07(0x226)][_0x32ec07(0x1ba)](_0x547830),'projectionForNative':_0x1223bc=>this[_0x32ec07(0x2c4)][_0x32ec07(0x2d3)](_0x1223bc),'nativeIds':_0x566ab4=>this[_0x32ec07(0x2c4)][_0x32ec07(0x2c6)](_0x566ab4),'forget':(_0x3a36f4,_0x38676f)=>this[_0x32ec07(0x2c4)][_0x32ec07(0x26a)](_0x3a36f4,_0x38676f),'refreshActivity':_0x64f7e9=>this[_0x32ec07(0x268)][_0x32ec07(0x1d8)](_0x64f7e9),'externalActivity':_0x3ce6b0=>this[_0x32ec07(0x301)][_0x32ec07(0x206)][_0x32ec07(0x29b)](_0x3ce6b0),'history':(_0x583ecf,_0x50d7ae)=>this[_0x32ec07(0x268)][_0x32ec07(0x2d8)](_0x583ecf,_0x50d7ae),'emitSession':_0x2b389c=>this[_0x32ec07(0x1e9)]({'session':this[_0x32ec07(0x226)][_0x32ec07(0x1ba)](_0x2b389c)})}),this[_0x32ec07(0x2d1)][_0x32ec07(0x2e9)]({'start':_0x320099=>this[_0x32ec07(0x2aa)][_0x32ec07(0x23e)](_0x320099),'cancel':(_0x20458e,_0x1dc047)=>{const _0x160f50=_0x32ec07,_0x379a6f=this[_0x160f50(0x2d1)][_0x160f50(0x18d)][_0x160f50(0x28f)][_0x160f50(0x29b)](_0x20458e);if(_0x379a6f?.[_0x160f50(0x1a2)]===undefined)return![];return void this[_0x160f50(0x27b)][_0x160f50(0x1d7)](_0x20458e,_0x379a6f[_0x160f50(0x252)],_0x379a6f[_0x160f50(0x1a2)],_0x379a6f[_0x160f50(0x237)],_0x1dc047===_0x160f50(0x25b)?_0x160f50(0x29c):_0x160f50(0x1e5)),!![];},'decideApproval':_0xdbe667=>this[_0x32ec07(0x27b)][_0x32ec07(0x2af)](_0xdbe667[_0x32ec07(0x1ed)],_0xdbe667[_0x32ec07(0x2d9)])}),this[_0x32ec07(0x209)][_0x32ec07(0x2e9)]({'start':_0x20724a=>this[_0x32ec07(0x261)][_0x32ec07(0x23e)](_0x20724a),'cancel':(_0x3a7dd7,_0x42570c)=>this[_0x32ec07(0x27b)][_0x32ec07(0x224)](_0x3a7dd7,_0x42570c),'decideApproval':_0x4a2811=>this[_0x32ec07(0x27b)][_0x32ec07(0x220)](_0x4a2811[_0x32ec07(0x1ed)],_0x4a2811[_0x32ec07(0x2d9)])}),this[_0x32ec07(0x205)][_0x32ec07(0x2e9)]({'start':_0x461205=>this[_0x32ec07(0x1c7)][_0x32ec07(0x23e)](_0x461205),'cancel':(_0x1b8540,_0x46bff8)=>this[_0x32ec07(0x1c7)][_0x32ec07(0x28c)](_0x1b8540,_0x46bff8),'decideApproval':_0x16b18e=>this[_0x32ec07(0x1c7)][_0x32ec07(0x1cb)](_0x16b18e),'respondUserInput':(_0x1b90bb,_0x3fa504,_0xb83dea)=>this[_0x32ec07(0x1c7)][_0x32ec07(0x1fc)](_0x1b90bb,_0x3fa504,_0xb83dea)}),this[_0x32ec07(0x2d0)][_0x32ec07(0x2e9)]({'start':_0x151790=>this[_0x32ec07(0x1a6)][_0x32ec07(0x23e)](_0x151790),'cancel':(_0xc8787d,_0x4896cf)=>this[_0x32ec07(0x1a6)][_0x32ec07(0x28c)](_0xc8787d,_0x4896cf),'decideApproval':_0x2e8349=>this[_0x32ec07(0x1a6)][_0x32ec07(0x1cb)](_0x2e8349),'respondUserInput':(_0x1fbff9,_0x2c98cd,_0x5125de)=>this[_0x32ec07(0x1a6)][_0x32ec07(0x1fc)](_0x1fbff9,_0x2c98cd,_0x5125de)}),this[_0x32ec07(0x2d1)][_0x32ec07(0x1a4)]({'execute':(_0x215ef3,_0x3ba82d,_0x345ecc,_0x41dec1)=>this[_0x32ec07(0x2aa)][_0x32ec07(0x277)](_0x215ef3,_0x3ba82d,_0x345ecc,_0x41dec1)}),this[_0x32ec07(0x209)][_0x32ec07(0x1a4)]({'execute':(_0x3acff3,_0x5dfa58,_0x587d89,_0x28bdd2)=>this[_0x32ec07(0x261)][_0x32ec07(0x277)](_0x3acff3,_0x5dfa58,_0x587d89,_0x28bdd2)}),this[_0x32ec07(0x205)][_0x32ec07(0x1a4)]({'execute':(_0x56a91f,_0x6fbf94,_0x25af1d,_0xd9eb48)=>this[_0x32ec07(0x1c7)][_0x32ec07(0x277)](_0x56a91f,_0x6fbf94,_0xd9eb48)}),this[_0x32ec07(0x2d0)][_0x32ec07(0x1a4)]({'execute':(_0x4fef3d,_0x2c879b,_0x41132d,_0x5427a2)=>this[_0x32ec07(0x1a6)][_0x32ec07(0x277)](_0x4fef3d,_0x2c879b,_0x41132d,_0x5427a2)});const _0x4bb20a=this[_0x32ec07(0x1ec)]===undefined||this[_0x32ec07(0x26d)]===undefined?undefined:new FakeManagedRunService({'runner':this[_0x32ec07(0x1ec)],'script':this[_0x32ec07(0x26d)],'runners':this[_0x32ec07(0x1e0)],'runtime':this[_0x32ec07(0x2b6)],'state':this[_0x32ec07(0x265)],'emitRun':(_0x29f58d,_0x12c86a,_0x3094be,_0x2d8fb7)=>this[_0x32ec07(0x2fe)][_0x32ec07(0x218)](_0x29f58d,_0x12c86a,_0x3094be,_0x2d8fb7),'publishApproval':_0x576aa3=>this[_0x32ec07(0x2fe)][_0x32ec07(0x2ce)](_0x576aa3),'disconnect':()=>this[_0x32ec07(0x1c3)][_0x32ec07(0x313)](0x1949+0x2*0x3de+-0x115b,_0x32ec07(0x2e4))});this[_0x32ec07(0x1ec)]?.[_0x32ec07(0x2e9)]({'start':_0x36889e=>_0x4bb20a?.[_0x32ec07(0x23e)](_0x36889e),'cancel':(_0x6b9dbe,_0x4006c9)=>_0x4006c9===_0x32ec07(0x25b)?this[_0x32ec07(0x1ec)]?.[_0x32ec07(0x28c)](_0x6b9dbe)??![]:this[_0x32ec07(0x1ec)]?.[_0x32ec07(0x201)](_0x6b9dbe)??![],'decideApproval':_0x13de65=>this[_0x32ec07(0x1ec)]?.[_0x32ec07(0x1da)](_0x13de65[_0x32ec07(0x267)],_0x13de65[_0x32ec07(0x1ed)],_0x13de65[_0x32ec07(0x2d9)])??![]}),this[_0x32ec07(0x2f2)]=_0x4bc16e[_0x32ec07(0x2f2)]??new RunnerUsageReader(),this[_0x32ec07(0x30c)]=_0x4bc16e[_0x32ec07(0x30c)],this[_0x32ec07(0x314)]=_0x4bc16e[_0x32ec07(0x314)]??new TerminalManager({'platform':this[_0x32ec07(0x21b)][_0x32ec07(0x26e)]===_0x32ec07(0x25c)?_0x32ec07(0x296):_0x32ec07(0x221)}),this[_0x32ec07(0x314)][_0x32ec07(0x1dc)](_0x230f08=>this[_0x32ec07(0x23d)][_0x32ec07(0x20b)](_0x230f08)),this[_0x32ec07(0x188)]=new NodeTerminalChannel({'config':()=>this[_0x32ec07(0x293)],'controlConnected':()=>this[_0x32ec07(0x1c3)][_0x32ec07(0x24c)](),'stopped':()=>this[_0x32ec07(0x1cd)],'reconnect':this[_0x32ec07(0x1ae)],'reconnectDelay':nextReconnectDelay,'manager':this[_0x32ec07(0x314)]}),this[_0x32ec07(0x1c3)]=new NodeControlChannel({'config':()=>this[_0x32ec07(0x293)],'capabilities':()=>this[_0x32ec07(0x21b)],'stopped':()=>this[_0x32ec07(0x1cd)],'reconnect':this[_0x32ec07(0x1ae)],'reconnectDelay':nextReconnectDelay,'onConnecting':_0xd7c790=>{const _0x14f4b7=_0x32ec07;this[_0x14f4b7(0x18c)][_0x14f4b7(0x20f)](),nodeLog(_0x14f4b7(0x2cd),{'attempt':_0xd7c790});},'onReconnectScheduled':()=>this[_0x32ec07(0x18c)][_0x32ec07(0x306)](),'onMessage':_0x2f8624=>this[_0x32ec07(0x312)](_0x2f8624),'onClose':(_0xd30ef9,_0x126594)=>{const _0x3b539a=_0x32ec07;this[_0x3b539a(0x188)][_0x3b539a(0x2bf)]();if(_0xd30ef9===-0x1*-0x1271+-0x1b0d+0x183c&&_0x126594===_0x3b539a(0x1a9))nodeLog(_0x3b539a(0x193),{'message':_0x3b539a(0x2f7)});if(_0xd30ef9===0x1297+0x257*-0xd+-0x59*-0x4f||_0xd30ef9===-0xf10+-0x11c2+-0x1*-0x24bb)void this[_0x3b539a(0x314)][_0x3b539a(0x318)]();}}),this[_0x32ec07(0x2c2)]=new NodeControlMessageService({'config':()=>this[_0x32ec07(0x293)],'register':(_0x48d597,_0x3d1c2f)=>this[_0x32ec07(0x1b5)][_0x32ec07(0x1d1)](_0x48d597,_0x3d1c2f),'connected':()=>this[_0x32ec07(0x1b5)][_0x32ec07(0x24c)](),'close':(_0x17bda0,_0x28be92)=>this[_0x32ec07(0x1c3)][_0x32ec07(0x313)](_0x17bda0,_0x28be92),'inspectWorkspace':_0x3c1834=>this[_0x32ec07(0x23d)][_0x32ec07(0x2f6)](_0x3c1834),'handleNodeRequest':_0x528fde=>this[_0x32ec07(0x1cf)][_0x32ec07(0x215)](_0x528fde),'reconcileRuns':_0x41b0f2=>this[_0x32ec07(0x2fe)][_0x32ec07(0x207)](_0x41b0f2),'runners':this[_0x32ec07(0x1e0)],'deliverSessionChannelMessage':_0x1b20e6=>this[_0x32ec07(0x2b8)][_0x32ec07(0x215)](_0x1b20e6),'completeUncontrolledCancellation':_0x3cb176=>{const _0x4bf6f1=_0x32ec07,_0x574603=this[_0x4bf6f1(0x2b6)][_0x4bf6f1(0x18b)](_0x3cb176);if(_0x574603?.[_0x4bf6f1(0x1bc)]===_0x4bf6f1(0x29e))this[_0x4bf6f1(0x27b)][_0x4bf6f1(0x1bf)](_0x3cb176);},'send':(_0xf79341,_0x1b15d8,_0x2bdd5b)=>this[_0x32ec07(0x24f)](_0xf79341,_0x1b15d8,_0x2bdd5b)}),this[_0x32ec07(0x1cf)]=new NodeRequestService({'nodeId':()=>this[_0x32ec07(0x293)]?.[_0x32ec07(0x2f9)],'databaseAvailable':()=>this[_0x32ec07(0x30c)]!==undefined,'execute':(_0x5f3591,_0x1bc1d5)=>this[_0x32ec07(0x31b)](_0x5f3591,_0x1bc1d5),'send':(_0x58b24f,_0x196fa3,_0x36e9d7)=>this[_0x32ec07(0x24f)](_0x58b24f,_0x196fa3,_0x36e9d7)}),this[_0x32ec07(0x23d)]=new NodeWorkspaceCoordinator({'config':()=>this[_0x32ec07(0x293)],'database':()=>this[_0x32ec07(0x30c)],'watches':this[_0x32ec07(0x24b)],'sessions':this[_0x32ec07(0x2a5)],'changes':this[_0x32ec07(0x1ca)],'emit':(_0x382a22,_0x1525b2)=>void this[_0x32ec07(0x2a4)]?.[_0x32ec07(0x253)](_0x382a22,_0x1525b2),'send':(_0x534b7b,_0x54e099,_0x25b98f)=>this[_0x32ec07(0x24f)](_0x534b7b,_0x54e099,_0x25b98f)}),this[_0x32ec07(0x2fe)]=new NodeRunEventBridge({'runtime':this[_0x32ec07(0x2b6)],'state':this[_0x32ec07(0x265)],'events':this[_0x32ec07(0x1ef)],'emitWorkbench':(_0x40540f,_0x21e543)=>this[_0x32ec07(0x1a7)](_0x40540f,_0x21e543),'queues':this[_0x32ec07(0x291)],'codex':this[_0x32ec07(0x2d1)],'claude':this[_0x32ec07(0x209)],'openCode':this[_0x32ec07(0x205)],'send':(_0x48e68d,_0x4157a1,_0x2cac33)=>this[_0x32ec07(0x24f)](_0x48e68d,_0x4157a1,_0x2cac33)}),this[_0x32ec07(0x1b5)]=new NodeConnectionLifecycleService({'config':()=>this[_0x32ec07(0x293)],'setConfig':_0x206edf=>this[_0x32ec07(0x293)]=_0x206edf,'configPath':this[_0x32ec07(0x263)],'capabilities':()=>this[_0x32ec07(0x21b)],'detectCapabilities':this[_0x32ec07(0x28a)],'capabilitiesProvided':this[_0x32ec07(0x2ea)],'stopped':()=>this[_0x32ec07(0x1cd)],'setCapabilities':_0x3e943c=>this[_0x32ec07(0x21b)]={..._0x3e943c,'metadata':upgradeMetadata(_0x3e943c[_0x32ec07(0x213)],this[_0x32ec07(0x2c9)][_0x32ec07(0x1db)]())},'control':this[_0x32ec07(0x1c3)],'terminal':this[_0x32ec07(0x188)],'metrics':this[_0x32ec07(0x18c)],'heartbeatMs':HEARTBEAT_MS,'refreshMs':CAPABILITY_REFRESH_MS,'onConnected':()=>this[_0x32ec07(0x319)][_0x32ec07(0x1c2)]()});const _0x97ea21=()=>{const _0x3de3c5=_0x32ec07;if(this[_0x3de3c5(0x30c)]===undefined)throw new Error(_0x3de3c5(0x2df));return this[_0x3de3c5(0x30c)];};this[_0x32ec07(0x1dd)]=new RunnerService(_0x97ea21,()=>this[_0x32ec07(0x21b)],this[_0x32ec07(0x1e0)],this[_0x32ec07(0x2f2)]),this[_0x32ec07(0x25f)]=new WorkbenchManifestService({'capabilities':()=>this[_0x32ec07(0x21b)],'runners':this[_0x32ec07(0x1dd)],'terminals':this[_0x32ec07(0x314)]}),this[_0x32ec07(0x1d3)]=new TerminalService(_0x97ea21,this[_0x32ec07(0x314)]),this[_0x32ec07(0x2ee)]=new WorkspaceService(_0x97ea21,()=>{const _0x1b3d2a=_0x32ec07;if(this[_0x1b3d2a(0x293)]===undefined)throw new Error(_0x1b3d2a(0x1d5));return this[_0x1b3d2a(0x293)];},this[_0x32ec07(0x2b6)],_0x34c2e5=>{const _0x29f6f8=_0x32ec07;this[_0x29f6f8(0x2ab)][_0x29f6f8(0x196)](_0x34c2e5),this[_0x29f6f8(0x23d)][_0x29f6f8(0x1b9)](_0x34c2e5),this[_0x29f6f8(0x2a5)][_0x29f6f8(0x1e2)](_0x34c2e5),this[_0x29f6f8(0x23d)][_0x29f6f8(0x2e7)](_0x34c2e5);}),this[_0x32ec07(0x2a4)]=new WorkspaceWorkbenchService({'requireWorkspace':_0x1e2a2f=>this[_0x32ec07(0x23d)][_0x32ec07(0x1b2)](_0x1e2a2f),'inspectWorkspace':_0x34eec2=>this[_0x32ec07(0x23d)][_0x32ec07(0x1c4)](_0x34eec2),'commitWorkspace':(_0x505327,_0x51b38a)=>this[_0x32ec07(0x23d)][_0x32ec07(0x275)](_0x505327,_0x51b38a),'watch':this[_0x32ec07(0x24b)],'files':this[_0x32ec07(0x2ab)],'uploads':this[_0x32ec07(0x309)],'changes':this[_0x32ec07(0x1ca)],'listSessions':_0xa4f764=>this[_0x32ec07(0x31b)](_0x32ec07(0x1de),{'workspaceId':_0xa4f764,'limit':0x14}),'invalidate':_0x13cf6d=>{const _0x17725f=_0x32ec07;this[_0x17725f(0x2ab)][_0x17725f(0x196)](_0x13cf6d),this[_0x17725f(0x23d)][_0x17725f(0x1e2)](_0x13cf6d);},'nodeId':()=>this[_0x32ec07(0x293)]?.[_0x32ec07(0x2f9)]??_0x32ec07(0x260),'nodeGeneration':()=>this[_0x32ec07(0x219)],'emitWatchEvent':_0x3bfd0f=>this[_0x32ec07(0x24f)](_0x32ec07(0x22c),_0x3bfd0f)}),this[_0x32ec07(0x222)][_0x32ec07(0x1f4)](this[_0x32ec07(0x1dd)][_0x32ec07(0x2f8)]()),this[_0x32ec07(0x222)][_0x32ec07(0x1f4)](this[_0x32ec07(0x1d3)][_0x32ec07(0x2f8)]()),this[_0x32ec07(0x222)][_0x32ec07(0x1f4)](this[_0x32ec07(0x2ee)][_0x32ec07(0x2f8)]()),this[_0x32ec07(0x222)][_0x32ec07(0x1f4)](this[_0x32ec07(0x2a4)][_0x32ec07(0x2f8)]()),this[_0x32ec07(0x222)][_0x32ec07(0x1f4)](this[_0x32ec07(0x1fa)][_0x32ec07(0x2f8)]()),this[_0x32ec07(0x222)][_0x32ec07(0x1f4)](this[_0x32ec07(0x1f5)][_0x32ec07(0x2f8)]()),this[_0x32ec07(0x222)][_0x32ec07(0x1f4)](this[_0x32ec07(0x2d4)][_0x32ec07(0x2f8)]()),this[_0x32ec07(0x222)][_0x32ec07(0x1f4)](this[_0x32ec07(0x1ce)][_0x32ec07(0x2f8)]()),this[_0x32ec07(0x222)][_0x32ec07(0x1f4)](this[_0x32ec07(0x30b)][_0x32ec07(0x2f8)]()),this[_0x32ec07(0x222)][_0x32ec07(0x1f4)](this[_0x32ec07(0x1fd)][_0x32ec07(0x2f8)]()),this[_0x32ec07(0x222)][_0x32ec07(0x1f4)](this[_0x32ec07(0x199)][_0x32ec07(0x2f8)]()),this[_0x32ec07(0x222)][_0x32ec07(0x1f4)](this[_0x32ec07(0x291)][_0x32ec07(0x2f8)]()),this[_0x32ec07(0x222)][_0x32ec07(0x1f4)](new SkillNodeOperationService(_0x97ea21,()=>{const _0x51a817=_0x32ec07;if(this[_0x51a817(0x293)]===undefined)throw new Error(_0x51a817(0x1d5));return this[_0x51a817(0x293)];})[_0x32ec07(0x2f8)]()),this[_0x32ec07(0x222)][_0x32ec07(0x1f4)](new McpNodeOperationService(_0x97ea21)[_0x32ec07(0x2f8)]()),this[_0x32ec07(0x222)][_0x32ec07(0x1d1)](_0x32ec07(0x2ac),()=>({'metrics':{...this[_0x32ec07(0x18c)][_0x32ec07(0x1db)](),'activeRuns':this[_0x32ec07(0x265)][_0x32ec07(0x1ac)][_0x32ec07(0x1a1)],'workspaceLeases':this[_0x32ec07(0x2b6)][_0x32ec07(0x254)]()}})),this[_0x32ec07(0x222)][_0x32ec07(0x1d1)](_0x32ec07(0x21c),_0x24ec5c=>this[_0x32ec07(0x2c9)][_0x32ec07(0x289)](_0x24ec5c)),this[_0x32ec07(0x222)][_0x32ec07(0x1d1)](_0x32ec07(0x29d),()=>this[_0x32ec07(0x2c9)][_0x32ec07(0x28c)]()),this[_0x32ec07(0x222)][_0x32ec07(0x1d1)](_0x32ec07(0x1e1),async()=>({'manifest':await this[_0x32ec07(0x25f)][_0x32ec07(0x2d8)]()}));}async[_0x288555(0x23e)](){const _0x18177e=_0x288555;this[_0x18177e(0x1cd)]=![],this[_0x18177e(0x293)]??=await loadNodeConfig(this[_0x18177e(0x263)]),await this[_0x18177e(0x2c9)][_0x18177e(0x190)](resolve(dirname(nodeDatabasePath(this[_0x18177e(0x293)],this[_0x18177e(0x263)])),_0x18177e(0x2ed))),await assertLocalSqlitePath(nodeDatabasePath(this[_0x18177e(0x293)],this[_0x18177e(0x263)])),this[_0x18177e(0x30c)]??=new NodeDatabase(nodeDatabasePath(this[_0x18177e(0x293)],this[_0x18177e(0x263)]),()=>this[_0x18177e(0x293)]?.[_0x18177e(0x2f9)]??_0x18177e(0x2e1)),this[_0x18177e(0x30c)][_0x18177e(0x1ea)](),this[_0x18177e(0x1b5)][_0x18177e(0x23e)](),this[_0x18177e(0x1c3)][_0x18177e(0x1f3)]();}[_0x288555(0x31a)](_0x10df42){const _0x264ffa=_0x288555,_0x21088f=this[_0x264ffa(0x2ba)][_0x264ffa(0x29b)](_0x10df42);if(_0x21088f!==undefined)clearTimeout(_0x21088f[_0x264ffa(0x248)]);this[_0x264ffa(0x2ba)][_0x264ffa(0x300)](_0x10df42),this[_0x264ffa(0x297)][_0x264ffa(0x300)](_0x10df42);}async[_0x288555(0x1c6)](_0x55803d){const _0x7278e4=_0x288555,_0x281ba1=_0x55803d[_0x7278e4(0x19e)]['id']+':'+_0x55803d[_0x7278e4(0x19e)][_0x7278e4(0x25e)];this[_0x7278e4(0x297)][_0x7278e4(0x2a6)](_0x55803d[_0x7278e4(0x194)],_0x281ba1);try{await this[_0x7278e4(0x30b)][_0x7278e4(0x1aa)]({'sessionId':_0x55803d[_0x7278e4(0x194)],'kind':_0x7278e4(0x241),'content':this[_0x7278e4(0x1f9)][_0x7278e4(0x2fa)](_0x55803d[_0x7278e4(0x194)],_0x7278e4(0x241)),'deliveryIntent':_0x7278e4(0x243),'mission':_0x55803d[_0x7278e4(0x19e)],'secretEnvironment':_0x55803d[_0x7278e4(0x21d)],..._0x55803d[_0x7278e4(0x2c5)]===undefined?{}:{'personalInstructions':_0x55803d[_0x7278e4(0x2c5)]}});const _0xdfb4d8=this[_0x7278e4(0x1f9)][_0x7278e4(0x29b)](_0x55803d[_0x7278e4(0x194)]);if(_0xdfb4d8?.[_0x7278e4(0x1bc)]!==_0x7278e4(0x1ac)||_0xdfb4d8['id']!==_0x55803d[_0x7278e4(0x19e)]['id']||_0xdfb4d8[_0x7278e4(0x25e)]!==_0x55803d[_0x7278e4(0x19e)][_0x7278e4(0x25e)]){if(this[_0x7278e4(0x297)][_0x7278e4(0x29b)](_0x55803d[_0x7278e4(0x194)])===_0x281ba1)this[_0x7278e4(0x297)][_0x7278e4(0x300)](_0x55803d[_0x7278e4(0x194)]);return;}this[_0x7278e4(0x31a)](_0x55803d[_0x7278e4(0x194)]);}catch{const _0x51b56d=this[_0x7278e4(0x1f9)][_0x7278e4(0x29b)](_0x55803d[_0x7278e4(0x194)]);if(_0x51b56d?.[_0x7278e4(0x1bc)]!==_0x7278e4(0x1ac)||_0x51b56d['id']!==_0x55803d[_0x7278e4(0x19e)]['id']||_0x51b56d[_0x7278e4(0x25e)]!==_0x55803d[_0x7278e4(0x19e)][_0x7278e4(0x25e)]){if(this[_0x7278e4(0x297)][_0x7278e4(0x29b)](_0x55803d[_0x7278e4(0x194)])===_0x281ba1)this[_0x7278e4(0x297)][_0x7278e4(0x300)](_0x55803d[_0x7278e4(0x194)]);return;}const _0x2ee8d6=(_0x55803d[_0x7278e4(0x216)]??-0x1181+-0xa34+0x1bb5)+(-0x1ddc+0x1*0x229f+-0x4c2),_0x1948b5=this[_0x7278e4(0x2b6)][_0x7278e4(0x2cf)](_0x55803d[_0x7278e4(0x194)]);if(_0x2ee8d6>-0x1da0+0x1c28+0x17b||_0x1948b5===undefined){this[_0x7278e4(0x31a)](_0x55803d[_0x7278e4(0x194)]);if(_0x2ee8d6>0x51+0x2*0xf25+0x2*-0xf4c){const _0x34f5bb=this[_0x7278e4(0x1f9)][_0x7278e4(0x242)](_0x55803d[_0x7278e4(0x194)],_0x55803d[_0x7278e4(0x19e)]['id'],_0x55803d[_0x7278e4(0x19e)][_0x7278e4(0x25e)]);this[_0x7278e4(0x21e)][_0x7278e4(0x24e)](_0x55803d[_0x7278e4(0x194)]),this[_0x7278e4(0x232)](_0x55803d[_0x7278e4(0x194)],_0x7278e4(0x1be));if(_0x1948b5!==undefined)this[_0x7278e4(0x24a)](_0x1948b5,_0x34f5bb);}return;}this[_0x7278e4(0x31a)](_0x55803d[_0x7278e4(0x194)]);const _0x1a5e05={'sessionId':_0x55803d[_0x7278e4(0x194)],'timer':setTimeout(()=>{const _0x15c329=_0x7278e4,_0x2a6b91=this[_0x15c329(0x1f9)][_0x15c329(0x29b)](_0x1a5e05[_0x15c329(0x194)]);if(_0x2a6b91?.[_0x15c329(0x1bc)]!==_0x15c329(0x1ac)||_0x2a6b91['id']!==_0x55803d[_0x15c329(0x19e)]['id']||_0x2a6b91[_0x15c329(0x25e)]!==_0x55803d[_0x15c329(0x19e)][_0x15c329(0x25e)])return;void this[_0x15c329(0x1c6)]({..._0x55803d,'sessionId':_0x1a5e05[_0x15c329(0x194)],'failedAttempts':_0x2ee8d6});},0x3bc*0xf+0x2d03+-0x2a6f*0x1)};this[_0x7278e4(0x2ba)][_0x7278e4(0x2a6)](_0x55803d[_0x7278e4(0x194)],_0x1a5e05),_0x1a5e05[_0x7278e4(0x248)][_0x7278e4(0x272)]();}}[_0x288555(0x232)](_0x3a9ca5,_0x59643d){const _0xc67be7=_0x288555,_0x38c445=this[_0xc67be7(0x2b6)][_0xc67be7(0x1b1)](_0x3a9ca5);if(_0x38c445===undefined||this[_0xc67be7(0x2b6)][_0xc67be7(0x236)](_0x38c445['id'])!==undefined)return;this[_0xc67be7(0x2fe)][_0xc67be7(0x218)](_0x38c445['id'],_0x59643d===_0xc67be7(0x247)?_0xc67be7(0x316):_0xc67be7(0x212),_0x59643d===_0xc67be7(0x247)?{}:{'code':_0xc67be7(0x239)},_0x59643d);}[_0x288555(0x2fb)](_0x513ebc){const _0x3ad0f1=_0x288555,_0x23518c=missionUnrestrictedAccess(_0x513ebc[_0x3ad0f1(0x2b2)]),_0x316878=_0x513ebc[_0x3ad0f1(0x200)]!==_0x23518c,_0x331a19=_0x316878?this[_0x3ad0f1(0x2b6)][_0x3ad0f1(0x22b)](_0x513ebc['id'],_0x23518c):_0x513ebc;if(_0x316878&&_0x331a19[_0x3ad0f1(0x19d)]!==null&&_0x331a19[_0x3ad0f1(0x249)]!==null&&_0x331a19[_0x3ad0f1(0x2f0)]!==null)this[_0x3ad0f1(0x30c)]?.[_0x3ad0f1(0x2d5)]({'runner':_0x331a19[_0x3ad0f1(0x2b2)],'externalSessionId':_0x331a19[_0x3ad0f1(0x19d)],'workspaceId':_0x331a19[_0x3ad0f1(0x2eb)],'model':_0x331a19[_0x3ad0f1(0x249)],'effort':_0x331a19[_0x3ad0f1(0x2f0)],'access':_0x23518c});return{'session':_0x331a19,'changed':_0x316878};}[_0x288555(0x308)](){const _0x209862=_0x288555;return{'commandId':_0x209862(0x19e),'active':!![],'label':_0x209862(0x18e),'detail':null,'closable':!![],'closeInput':_0x209862(0x1a8)};}[_0x288555(0x19b)](){const _0x266ec0=_0x288555;this[_0x266ec0(0x1cd)]=!![],this[_0x266ec0(0x319)][_0x266ec0(0x196)](),this[_0x266ec0(0x2c9)][_0x266ec0(0x19b)](),this[_0x266ec0(0x1b5)][_0x266ec0(0x19b)]();for(const _0x1222b8 of this[_0x266ec0(0x209)][_0x266ec0(0x18d)][_0x266ec0(0x2fd)][_0x266ec0(0x2de)]()){clearTimeout(_0x1222b8[_0x266ec0(0x248)]),_0x1222b8[_0x266ec0(0x274)](_0x266ec0(0x2ff));}this[_0x266ec0(0x209)][_0x266ec0(0x18d)][_0x266ec0(0x2fd)][_0x266ec0(0x19a)]();for(const _0x158dc8 of this[_0x266ec0(0x209)][_0x266ec0(0x18d)][_0x266ec0(0x2fc)][_0x266ec0(0x2de)]()){clearTimeout(_0x158dc8[_0x266ec0(0x248)]),_0x158dc8[_0x266ec0(0x203)](_0x266ec0(0x1c5));}this[_0x266ec0(0x209)][_0x266ec0(0x18d)][_0x266ec0(0x2fc)][_0x266ec0(0x19a)](),this[_0x266ec0(0x1f5)][_0x266ec0(0x19a)](),this[_0x266ec0(0x23c)][_0x266ec0(0x196)](),this[_0x266ec0(0x1ce)][_0x266ec0(0x19a)](),this[_0x266ec0(0x21e)][_0x266ec0(0x19a)]();for(const _0x258fe5 of this[_0x266ec0(0x2ba)][_0x266ec0(0x2de)]())clearTimeout(_0x258fe5[_0x266ec0(0x248)]);this[_0x266ec0(0x2ba)][_0x266ec0(0x19a)](),this[_0x266ec0(0x297)][_0x266ec0(0x19a)](),this[_0x266ec0(0x1ef)][_0x266ec0(0x19a)](),this[_0x266ec0(0x189)][_0x266ec0(0x196)]();for(const _0x98c978 of this[_0x266ec0(0x209)][_0x266ec0(0x18d)][_0x266ec0(0x28f)][_0x266ec0(0x2de)]())_0x98c978[_0x266ec0(0x215)][_0x266ec0(0x28c)]();this[_0x266ec0(0x209)][_0x266ec0(0x18d)][_0x266ec0(0x28f)][_0x266ec0(0x19a)](),this[_0x266ec0(0x2db)][_0x266ec0(0x196)](),void this[_0x266ec0(0x1a6)][_0x266ec0(0x196)](),void this[_0x266ec0(0x309)][_0x266ec0(0x318)](),this[_0x266ec0(0x2ab)][_0x266ec0(0x196)](),this[_0x266ec0(0x24b)][_0x266ec0(0x287)](),this[_0x266ec0(0x2a4)][_0x266ec0(0x19a)](),this[_0x266ec0(0x2a5)][_0x266ec0(0x19a)](),this[_0x266ec0(0x1ca)][_0x266ec0(0x19a)](),void this[_0x266ec0(0x1e0)][_0x266ec0(0x19b)](),void this[_0x266ec0(0x1bb)][_0x266ec0(0x313)](),void this[_0x266ec0(0x314)][_0x266ec0(0x318)](),this[_0x266ec0(0x188)][_0x266ec0(0x19b)](),this[_0x266ec0(0x1c3)][_0x266ec0(0x19b)](),this[_0x266ec0(0x30c)]?.[_0x266ec0(0x313)](),this[_0x266ec0(0x30c)]=undefined;}[_0x288555(0x312)]=_0x389664=>this[_0x288555(0x2c2)][_0x288555(0x215)](_0x389664);[_0x288555(0x1ab)]=(_0x5289bf,_0xce9d7,_0x1d6ee0,_0x5339d3)=>this[_0x288555(0x2fe)][_0x288555(0x218)](_0x5289bf,_0xce9d7,_0x1d6ee0,_0x5339d3);[_0x288555(0x1ad)]=(_0x1ac8f4,_0x3e1fe0)=>{const _0x88c3eb=_0x288555;this[_0x88c3eb(0x1ef)][_0x88c3eb(0x251)](_0x1ac8f4);const _0x1d853d=isPlainRecord(_0x3e1fe0)&&typeof _0x3e1fe0[_0x88c3eb(0x1d6)]===_0x88c3eb(0x315)?_0x3e1fe0[_0x88c3eb(0x1d6)]:undefined,_0x568199=isPlainRecord(_0x3e1fe0)&&typeof _0x3e1fe0[_0x88c3eb(0x304)]===_0x88c3eb(0x315)?_0x3e1fe0[_0x88c3eb(0x304)]:undefined,_0x340fc=this[_0x88c3eb(0x2b6)][_0x88c3eb(0x197)](_0x1ac8f4),_0x5423ed=_0x1d853d===undefined||_0x340fc===undefined?undefined:conversationSegmentIdentityForItem(_0x340fc,_0x1d853d,_0x568199);this[_0x88c3eb(0x2fe)][_0x88c3eb(0x218)](_0x1ac8f4,_0x88c3eb(0x1d2),_0x5423ed===undefined||!isPlainRecord(_0x3e1fe0)?_0x3e1fe0:{..._0x3e1fe0,'segmentId':_0x5423ed['id'],'segmentIndex':_0x5423ed[_0x88c3eb(0x30e)]});};[_0x288555(0x288)]=_0x4bbdde=>{const _0x2920e6=_0x288555,_0xdfcfdc=isPlainRecord(_0x4bbdde)&&Array[_0x2920e6(0x28b)](_0x4bbdde[_0x2920e6(0x184)])?conversationSegments(_0x4bbdde):[];this[_0x2920e6(0x1e6)](_0x2920e6(0x2d6),{'turn':_0x4bbdde,'segments':_0xdfcfdc});};[_0x288555(0x1a7)]=(_0x1a8613,_0x9e65a9)=>{const _0x8dd4d1=_0x288555;if(_0x1a8613===_0x8dd4d1(0x2bd)){this[_0x8dd4d1(0x1e9)](_0x9e65a9);return;}this[_0x8dd4d1(0x1e6)](_0x1a8613,_0x9e65a9);};[_0x288555(0x1e9)]=_0x221482=>{const _0x513a66=_0x288555;if(isPlainRecord(_0x221482)&&isPlainRecord(_0x221482[_0x513a66(0x2bd)])){const _0x563673=_0x221482[_0x513a66(0x2bd)][_0x513a66(0x2eb)];typeof _0x563673===_0x513a66(0x315)&&(this[_0x513a66(0x2a5)][_0x513a66(0x244)](_0x563673),void this[_0x513a66(0x2a4)]?.[_0x513a66(0x253)](_0x563673,_0x513a66(0x22e)));}this[_0x513a66(0x1e6)](_0x513a66(0x2bd),_0x221482);};[_0x288555(0x1e6)]=(_0x6d2c52,_0x943178)=>{const _0x59005d=_0x288555;if(_0x6d2c52===_0x59005d(0x2d6)&&isPlainRecord(_0x943178)&&isPlainRecord(_0x943178[_0x59005d(0x294)])&&_0x943178[_0x59005d(0x294)][_0x59005d(0x240)]!==_0x59005d(0x217)){const _0x27b10e=typeof _0x943178[_0x59005d(0x294)][_0x59005d(0x267)]===_0x59005d(0x315)?_0x943178[_0x59005d(0x294)][_0x59005d(0x267)]:undefined,_0x449dcf=typeof _0x943178[_0x59005d(0x294)][_0x59005d(0x2da)]===_0x59005d(0x2d7)?_0x943178[_0x59005d(0x294)][_0x59005d(0x2da)]:undefined,_0x459c4f=_0x27b10e===undefined?undefined:this[_0x59005d(0x2b6)][_0x59005d(0x197)](_0x27b10e);if(_0x459c4f===undefined)return;const _0x392eef=isPlainRecord(_0x943178[_0x59005d(0x294)][_0x59005d(0x1e3)])?_0x943178[_0x59005d(0x294)][_0x59005d(0x1e3)]:undefined,_0x16ec5d=_0x943178[_0x59005d(0x294)][_0x59005d(0x240)]===_0x59005d(0x1fb)&&typeof _0x392eef?.[_0x59005d(0x1b8)]===_0x59005d(0x315)?_0x392eef[_0x59005d(0x1b8)]:undefined,_0x2073b8=typeof _0x392eef?.[_0x59005d(0x1d6)]===_0x59005d(0x315)?_0x392eef[_0x59005d(0x1d6)]:typeof _0x392eef?.[_0x59005d(0x1ed)]===_0x59005d(0x315)?_0x59005d(0x230)+_0x392eef[_0x59005d(0x1ed)]:undefined,_0x21dfb3=_0x16ec5d!==undefined&&_0x449dcf!==undefined?_0x459c4f[_0x59005d(0x184)][_0x59005d(0x2dc)](_0x533688=>_0x533688[_0x59005d(0x304)]===_0x59005d(0x2c1)&&_0x533688[_0x59005d(0x25e)]===_0x449dcf):_0x2073b8===undefined?undefined:_0x459c4f[_0x59005d(0x184)][_0x59005d(0x2dc)](_0x480b7e=>_0x480b7e['id']===_0x27b10e+':'+_0x2073b8);if(_0x16ec5d!==undefined&&_0x21dfb3?.[_0x59005d(0x304)]===_0x59005d(0x2c1))_0x943178={'sessionId':_0x459c4f[_0x59005d(0x194)],'delta':{'runId':_0x459c4f[_0x59005d(0x267)],'itemId':_0x21dfb3['id'],'text':_0x16ec5d,'createdAt':typeof _0x943178[_0x59005d(0x294)][_0x59005d(0x1a5)]===_0x59005d(0x2d7)?_0x943178[_0x59005d(0x294)][_0x59005d(0x1a5)]:Date[_0x59005d(0x245)]()}};else{if(_0x21dfb3!==undefined){const _0x227548=conversationSegmentIdentityForItem(_0x459c4f,_0x21dfb3['id'],_0x21dfb3[_0x59005d(0x304)]);_0x943178={'sessionId':_0x459c4f[_0x59005d(0x194)],'runId':_0x459c4f[_0x59005d(0x267)],'item':{'itemId':_0x21dfb3['id'],'kind':_0x21dfb3[_0x59005d(0x304)],'status':_0x21dfb3[_0x59005d(0x1bc)],'payload':_0x21dfb3[_0x59005d(0x1e3)],'startedAt':_0x21dfb3[_0x59005d(0x233)],'completedAt':_0x21dfb3[_0x59005d(0x21a)],'segmentId':_0x227548['id'],'segmentIndex':_0x227548[_0x59005d(0x30e)]}};}else{if(_0x943178[_0x59005d(0x294)][_0x59005d(0x240)]!==_0x59005d(0x1f8)&&_0x943178[_0x59005d(0x294)][_0x59005d(0x240)]!==_0x59005d(0x23a))return;_0x943178={'turn':_0x459c4f,'segments':conversationSegments(_0x459c4f)};}}}const _0xfd621c=this[_0x59005d(0x30f)][_0x59005d(0x2b4)](_0x6d2c52,_0x943178);if(_0xfd621c===undefined)return;const _0xbdd99e=_0x6d2c52===_0x59005d(0x2d6)&&isPlainRecord(_0x943178)&&isPlainRecord(_0x943178[_0x59005d(0x294)])&&_0x943178[_0x59005d(0x294)][_0x59005d(0x240)]===_0x59005d(0x217),_0x959ba4=workbenchPayloadSessionId(this[_0x59005d(0x2b6)],_0x6d2c52,_0x943178);if(!_0xbdd99e&&_0x959ba4!==undefined){this[_0x59005d(0x1f5)][_0x59005d(0x1b3)](_0x959ba4,_0xfd621c);return;}this[_0x59005d(0x30f)][_0x59005d(0x22d)](_0xfd621c);};[_0x288555(0x208)]=_0x10910f=>this[_0x288555(0x2c4)][_0x288555(0x27d)](_0x10910f);[_0x288555(0x259)]=_0x316c83=>this[_0x288555(0x23d)][_0x288555(0x1e2)](_0x316c83);[_0x288555(0x262)]=()=>undefined;[_0x288555(0x2a3)]=()=>this[_0x288555(0x1b5)][_0x288555(0x2a3)]();[_0x288555(0x1b7)]=()=>this[_0x288555(0x1b5)][_0x288555(0x1b7)]();async[_0x288555(0x31b)](_0x54a480,_0x41a0a7){const _0x1461a5=_0x288555;if(this[_0x1461a5(0x30c)]===undefined)throw new Error(_0x1461a5(0x2df));if(this[_0x1461a5(0x2c9)][_0x1461a5(0x276)](_0x54a480))throw new Error(_0x1461a5(0x258));return nodeLog(_0x1461a5(0x2a1),{'nodeId':this[_0x1461a5(0x293)]?.[_0x1461a5(0x2f9)],'operation':_0x54a480}),this[_0x1461a5(0x222)][_0x1461a5(0x2cb)](_0x54a480,_0x41a0a7);}async[_0x288555(0x285)](_0x1f971e,_0x4d3679){const _0x580d6c=_0x288555,_0x19e95e=this[_0x580d6c(0x293)];if(_0x19e95e?.[_0x580d6c(0x2f9)]===undefined||_0x19e95e[_0x580d6c(0x2bc)]===undefined)throw new Error(_0x580d6c(0x30a));const _0x5bc161=await fetch(_0x19e95e[_0x580d6c(0x280)][_0x580d6c(0x302)](/\/$/u,'')+_0x580d6c(0x2b7),{'method':_0x580d6c(0x1e7),'headers':{'content-type':_0x580d6c(0x2e5),'x-mar-node-id':_0x19e95e[_0x580d6c(0x2f9)],'authorization':_0x580d6c(0x257)+_0x19e95e[_0x580d6c(0x2bc)]},'body':JSON[_0x580d6c(0x27a)](_0x1f971e),'signal':_0x4d3679});if(!_0x5bc161['ok'])throw new Error(_0x580d6c(0x229));const _0x555cb1=await _0x5bc161[_0x580d6c(0x20a)]();return{'content':JSON[_0x580d6c(0x27a)](_0x555cb1),'data':_0x555cb1};}[_0x288555(0x24a)](_0x1590a8,_0x52a366){const _0x5e052c=_0x288555;if(_0x52a366[_0x5e052c(0x1bc)]!==_0x5e052c(0x1ac)){this[_0x5e052c(0x1df)][_0x5e052c(0x19a)](_0x1590a8['id'],_0x5e052c(0x19e)),this[_0x5e052c(0x1e6)](_0x5e052c(0x2bd),{'session':this[_0x5e052c(0x226)][_0x5e052c(0x1ba)](_0x1590a8)});return;}this[_0x5e052c(0x1df)][_0x5e052c(0x2a6)](_0x1590a8['id'],{'commandId':_0x5e052c(0x19e),'active':_0x52a366[_0x5e052c(0x1bc)]===_0x5e052c(0x1ac),'label':_0x5e052c(0x18e),'detail':_0x52a366[_0x5e052c(0x23b)][_0x5e052c(0x2b1)](0x9*0x3ee+0x2*0xcc1+-0x10*0x3ce,0x339+-0x11d8+0x1093),'closable':!![],'closeInput':_0x5e052c(0x2dd),'mission':{'id':_0x52a366['id'],'objective':_0x52a366[_0x5e052c(0x23b)],'revision':_0x52a366[_0x5e052c(0x25e)],'status':_0x52a366[_0x5e052c(0x1bc)],'turns':_0x52a366[_0x5e052c(0x2c3)]}}),this[_0x5e052c(0x1e6)](_0x5e052c(0x2bd),{'session':this[_0x5e052c(0x226)][_0x5e052c(0x1ba)](_0x1590a8)});}[_0x288555(0x24f)](_0x85571f,_0x517c5c,_0x27c126){const _0x1f6fce=_0x288555;this[_0x1f6fce(0x1c3)][_0x1f6fce(0x24f)](_0x85571f,_0x517c5c,_0x27c126);}[_0x288555(0x1f6)](_0x229ebd){const _0x2914bd=_0x288555;this[_0x2914bd(0x1c3)][_0x2914bd(0x1f6)](_0x229ebd);}}