@myagentroam/node 0.9.26 → 0.9.28

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.
Files changed (29) hide show
  1. package/dist/config.js +1 -1
  2. package/dist/connector.js +1 -1
  3. package/dist/database.js +1 -1
  4. package/dist/migrations/v006.js +104 -0
  5. package/dist/migrations/v007.js +33 -0
  6. package/dist/migrations/v008.js +13 -0
  7. package/dist/migrations/v009.js +120 -0
  8. package/dist/runner/mar-agent/conversation-normalizer.js +1 -1
  9. package/dist/runner/mar-agent/executor-stdio-client-transport.js +2 -0
  10. package/dist/runner/mar-agent/history-projection.js +1 -1
  11. package/dist/runner/mar-agent/hosted-conversation-runtime.js +2 -0
  12. package/dist/runner/mar-agent/managed-run-controller.js +1 -1
  13. package/dist/runner/mar-agent/mcp-client-pool.js +1 -1
  14. package/dist/runner/mar-agent-runner.js +1 -1
  15. package/dist/service/bubblewrap-sandbox-executor.js +2 -0
  16. package/dist/service/conversation-history-service.js +1 -1
  17. package/dist/service/conversation-hosting-capability-service.js +2 -0
  18. package/dist/service/conversation-hosting-enablement-service.js +2 -0
  19. package/dist/service/conversation-hosting-maintenance-service.js +2 -0
  20. package/dist/service/conversation-template-node-service.js +2 -0
  21. package/dist/service/hosted-conversation-node-service.js +2 -0
  22. package/dist/service/hosted-conversation-store.js +2 -0
  23. package/dist/service/native-session-watch-service.js +1 -1
  24. package/dist/service/node-connection-lifecycle-service.js +1 -1
  25. package/dist/service/run-event-service.js +1 -1
  26. package/dist/service/session-watch-slot-coordinator.js +2 -0
  27. package/dist/service/workspace-file-service.js +1 -1
  28. package/dist/workspace.js +1 -1
  29. package/package.json +3 -3
package/dist/config.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /* mar-release-protected */
2
- const _0x5cdfcb=_0x2d83;(function(_0x2e0db7,_0x2c6e9c){const _0x1e9108=_0x2d83,_0x541413=_0x2e0db7();while(!![]){try{const _0x2969d3=parseInt(_0x1e9108(0x183))/(0x1*0x122e+-0x114d+-0xe0)*(parseInt(_0x1e9108(0x17b))/(-0x117f+0xf85+0x1fc))+parseInt(_0x1e9108(0x172))/(0x7bf+-0x1984*-0x1+-0x2140)*(-parseInt(_0x1e9108(0x18c))/(-0x19*0x37+0x1e5d+-0x18fa*0x1))+-parseInt(_0x1e9108(0x17a))/(-0x22af+0xabe+0x17f6)*(-parseInt(_0x1e9108(0x16b))/(-0x84*-0x1e+0x15bb+-0x252d))+-parseInt(_0x1e9108(0x17e))/(-0x1416+0x1711+-0x6c*0x7)*(-parseInt(_0x1e9108(0x182))/(0x2*0x305+0x1*-0x2d8+-0x1b*0x1e))+-parseInt(_0x1e9108(0x185))/(0x46c*-0x1+-0xf6f+0x13e4)*(-parseInt(_0x1e9108(0x173))/(0x260e+-0xd29*-0x1+-0x332d))+parseInt(_0x1e9108(0x16f))/(0xd9*-0x8+0x2268+-0x1b95)*(-parseInt(_0x1e9108(0x17d))/(0xd63+-0x843+-0x514))+parseInt(_0x1e9108(0x174))/(0x1c08+-0x1471+-0x182*0x5)*(-parseInt(_0x1e9108(0x17f))/(-0x3b9+0x1b4a*-0x1+-0xb*-0x2d3));if(_0x2969d3===_0x2c6e9c)break;else _0x541413['push'](_0x541413['shift']());}catch(_0x4d57d7){_0x541413['push'](_0x541413['shift']());}}}(_0x56c0,-0xca217*0x1+0x146cf7+0x2*0x2fde9));import{chmod,mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';function _0x2d83(_0x3ea1a0,_0x31e96f){_0x3ea1a0=_0x3ea1a0-(-0x1*-0x911+-0x63f*0x1+-0x168);const _0x323d11=_0x56c0();let _0x137f52=_0x323d11[_0x3ea1a0];if(_0x2d83['UthjSx']===undefined){var _0x19d402=function(_0x2914ab){const _0x3b1b65='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x79ae61='',_0x587b44='';for(let _0xdd16d7=0x3*0xb60+0x17b7+-0x39d7,_0xe66d64,_0xad7078,_0x357d57=0x13e9+0x85a*0x1+0x1*-0x1c43;_0xad7078=_0x2914ab['charAt'](_0x357d57++);~_0xad7078&&(_0xe66d64=_0xdd16d7%(0x58f+-0x7*0x3a3+0x13ea)?_0xe66d64*(0x2b*0x3b+0x3e+-0x9e7)+_0xad7078:_0xad7078,_0xdd16d7++%(-0x5ee+0x18d7+-0x12e5))?_0x79ae61+=String['fromCharCode'](0x9c3*-0x3+0x779+0x16cf&_0xe66d64>>(-(0x1ea1+0x15*0x11b+-0x2*0x1aeb)*_0xdd16d7&0xdd*0x13+-0x3ad*-0x1+-0x2*0xa07)):0x10*0x37+0x1*-0x2450+0x20e0){_0xad7078=_0x3b1b65['indexOf'](_0xad7078);}for(let _0x5df757=0x1b48+0x1844*0x1+0x2*-0x19c6,_0x409b71=_0x79ae61['length'];_0x5df757<_0x409b71;_0x5df757++){_0x587b44+='%'+('00'+_0x79ae61['charCodeAt'](_0x5df757)['toString'](-0x10b9+-0x1a9d+0x2b66))['slice'](-(-0x132e+-0x1*-0x168e+-0x35e));}return decodeURIComponent(_0x587b44);};_0x2d83['HpEFKi']=_0x19d402,_0x2d83['VWHBBm']={},_0x2d83['UthjSx']=!![];}const _0x59850a=_0x323d11[0x8*0x34b+0x6f2*-0x1+-0x1366];_0x2d83['TymISG']!==_0x59850a&&(_0x2d83['VWHBBm']={},_0x2d83['TymISG']=_0x59850a);const _0x527240=_0x2d83['VWHBBm'][_0x3ea1a0];return _0x527240===undefined?(_0x137f52=_0x2d83['HpEFKi'](_0x137f52),_0x2d83['VWHBBm'][_0x3ea1a0]=_0x137f52):_0x137f52=_0x527240,_0x137f52;}import{dirname,resolve,win32}from'node:path';export function nodeConfigPath(){const _0x14f161=_0x2d83;return resolve(process.env['MAR_NODE_CONFIG']??_0x14f161(0x18b));}export async function loadNodeConfig(_0x5edf56=nodeConfigPath()){const _0x2705b3=_0x2d83,_0x2561ed=JSON[_0x2705b3(0x186)](await readFile(_0x5edf56,_0x2705b3(0x188)));if(typeof _0x2561ed!==_0x2705b3(0x181)||_0x2561ed===null||!(_0x2705b3(0x171)in _0x2561ed)||typeof _0x2561ed[_0x2705b3(0x171)]!==_0x2705b3(0x179)||_0x2705b3(0x178)in _0x2561ed||_0x2705b3(0x177)in _0x2561ed&&(!Array[_0x2705b3(0x175)](_0x2561ed[_0x2705b3(0x177)])||!_0x2561ed[_0x2705b3(0x177)][_0x2705b3(0x170)](_0x2873cf=>typeof _0x2873cf===_0x2705b3(0x179))))throw new Error(_0x2705b3(0x16a));const _0x81d381=_0x2561ed,_0x3bc87a=_0x4e01d2=>typeof _0x81d381[_0x4e01d2]===_0x2705b3(0x179)?_0x81d381[_0x4e01d2]:undefined,_0x2ffbef=_0x3bc87a(_0x2705b3(0x187)),_0x304150=_0x3bc87a(_0x2705b3(0x16e)),_0x465a0e=_0x3bc87a(_0x2705b3(0x17c)),_0x281a98=_0x3bc87a(_0x2705b3(0x16d)),_0x23cc42=Array[_0x2705b3(0x175)](_0x81d381[_0x2705b3(0x177)])?_0x81d381[_0x2705b3(0x177)]:defaultAllowedRoots();return{'serverUrl':_0x2561ed[_0x2705b3(0x171)],'allowedRoots':_0x23cc42,..._0x2ffbef===undefined?{}:{'nodeId':_0x2ffbef},..._0x304150===undefined?{}:{'credential':_0x304150},..._0x465a0e===undefined?{}:{'registrationToken':_0x465a0e},..._0x281a98===undefined?{}:{'dataDirectory':_0x281a98}};}export function defaultAllowedRoots(_0x16e9b8=process[_0x5cdfcb(0x180)],_0x2ce03e=homedir(),_0xdbed1b=process[_0x5cdfcb(0x176)]()){const _0x41d03b=_0x5cdfcb;return _0x16e9b8===_0x41d03b(0x184)?[win32[_0x41d03b(0x186)](_0xdbed1b)[_0x41d03b(0x189)]]:[_0x2ce03e];}function _0x56c0(){const _0x533dd5=['B2jQzwn0','nZa3ntC4nePetMrZDq','mwrtuwXiwq','D2LUmZi','nZC5mdGWnxDusNfsuG','CgfYC2u','BM9KzuLK','DxrMoa','CM9VDa','C3rYAw5NAwz5','zgf0ys9TyxiTBM9Kzs5QC29U','ogTsDKrjwa','tK9erv9dt05gsuDFsu5wquXjra','mtjVv1n3r2u','BM9Kzs1YDw50Aw1LlNnXBgL0zq','zgf0yurPCMvJDg9YEq','y3jLzgvUDgLHBa','mti2nvfYEKvRAq','zxzLCNK','C2vYDMvYvxjS','mtiZmtq3m2HUuhLhEG','mtblrLzXyKe','mtnIvuvksu4','AxnbCNjHEq','y3DK','ywXSB3DLzfjVB3rZ','zgf0ywjHC2vqyxrO','C3rYAw5N','ndq2mdC4mfLHsujcAW','mJe0nJiWnezjB2LIAq','CMvNAxn0CMf0Aw9Uvg9Rzw4','mJK1ntz5qKfdtMq','n1DOAgzewG','mZy0mdy1otr5AKLNBNy','CgXHDgzVCM0'];_0x56c0=function(){return _0x533dd5;};return _0x56c0();}export function nodeDatabasePath(_0xbf19ef,_0x38cf91=nodeConfigPath()){const _0x30606e=_0x5cdfcb;return resolve(nodeDataDirectory(_0xbf19ef,_0x38cf91),_0x30606e(0x16c));}export function nodeDataDirectory(_0x4f9efc,_0x5baa9a=nodeConfigPath()){const _0x7c861d=_0x5cdfcb;if(_0x4f9efc[_0x7c861d(0x16d)]!==undefined)return resolve(dirname(_0x5baa9a),_0x4f9efc[_0x7c861d(0x16d)]);return resolve(dirname(_0x5baa9a));}export async function saveNodeConfig(_0x193046,_0x24f569=nodeConfigPath()){const _0x2729cd=_0x5cdfcb;await mkdir(dirname(_0x24f569),{'recursive':!![],'mode':0x1c0}),await writeFile(_0x24f569,JSON[_0x2729cd(0x18a)](_0x193046,undefined,0x247+0x3*-0x887+0x1750)+'\x0a',{'mode':0x180}),process[_0x2729cd(0x180)]!==_0x2729cd(0x184)&&await chmod(_0x24f569,0x1*0x267f+-0x2197*-0x1+-0x4696);}
2
+ function _0x1fc5(){const _0xb55c4c=['DhjPBq','C3rYAw5NAwz5','Aw5Hy3rPDMvszxrLBNrPB25eyxLZ','BgvUz3rO','CgXHDgzVCM0','zxzLCNK','B2jQzwn0','BM9KzuLK','zw5HyMXLza','zgf0yurPCMvJDg9YEq','ntG5ndK1v01uAxjc','CM9VDa','nZa3wfvTtvnc','nZuYnZm2t1DQBNLd','CMvNAxn0CMf0Aw9Uvg9Rzw4','y29UDMvYC2f0Aw9Usg9ZDgLUzW','CgfYC2u','mtm0nZe1mgX2yu9Pvq','mtqYmZjAqxrcteu','AxnbCNjHEq','ywXSB3DLzfjVB3rZ','C3bSAxq','AxnjBNrLz2vY','C29Tzq','C3rYAw5N','y3DK','y3jLzgvUDgLHBa','C3rHCNrZv2L0Aa','A2v5CW','C3rVCMveAxjLy3rVCNK','tK9erv9dt05gsuDFsu5wquXjra','DxrMoa','yM9VBgvHBG','BM9Kzs1YDw50Aw1LlNnXBgL0zq','C2vYDMvYvxjS','D2LUmZi','zgf0ys9TyxiTBM9Kzs5QC29U','ndC4oda0svbZDhjL','odeWmZLlCgrXCxu','otu5ndvrq21IB3i','zgf0ywjHC2vqyxrO'];_0x1fc5=function(){return _0xb55c4c;};return _0x1fc5();}const _0x140c75=_0x14ba;(function(_0x5dc6bc,_0x4c52b8){const _0x41adf0=_0x14ba,_0x587bbf=_0x5dc6bc();while(!![]){try{const _0x22237a=parseInt(_0x41adf0(0x1ee))/(-0x1de3+-0xa7f+0x2863)+-parseInt(_0x41adf0(0x1ec))/(0x15d8+0x1*-0x181f+0x27*0xf)+parseInt(_0x41adf0(0x1ed))/(0x914+0x1fee+-0x28ff)+parseInt(_0x41adf0(0x1d4))/(-0x458+0x3*0xc3d+-0xb*0x2f1)+parseInt(_0x41adf0(0x1d1))/(0x3*-0x417+0x1d84+0x2a*-0x69)+-parseInt(_0x41adf0(0x1d8))/(-0xab4+0x39*-0x13+0xef5)+-parseInt(_0x41adf0(0x1d3))/(-0x83e+-0x17b*-0xd+-0x119*0xa)*(-parseInt(_0x41adf0(0x1d9))/(-0x1621+0x2669*-0x1+0x3c92));if(_0x22237a===_0x4c52b8)break;else _0x587bbf['push'](_0x587bbf['shift']());}catch(_0x436f8b){_0x587bbf['push'](_0x587bbf['shift']());}}}(_0x1fc5,-0xe2*-0x4cb+-0x3301f*0x1+-0x9541*-0x2));import{chmod,mkdir,readFile,writeFile}from'node:fs/promises';import{homedir}from'node:os';import{dirname,isAbsolute,relative,resolve,sep,win32}from'node:path';export function nodeConfigPath(){const _0x235b60=_0x14ba;return resolve(process.env['MAR_NODE_CONFIG']??_0x235b60(0x1eb));}export async function loadNodeConfig(_0x54009a=nodeConfigPath()){const _0x2e5d1b=_0x14ba,_0x547b82=JSON[_0x2e5d1b(0x1d7)](await readFile(_0x54009a,_0x2e5d1b(0x1e6)));if(typeof _0x547b82!==_0x2e5d1b(0x1f6)||_0x547b82===null||!(_0x2e5d1b(0x1e9)in _0x547b82)||typeof _0x547b82[_0x2e5d1b(0x1e9)]!==_0x2e5d1b(0x1df)||_0x2e5d1b(0x1ef)in _0x547b82||_0x2e5d1b(0x1db)in _0x547b82&&(!Array[_0x2e5d1b(0x1da)](_0x547b82[_0x2e5d1b(0x1db)])||!_0x547b82[_0x2e5d1b(0x1db)][_0x2e5d1b(0x1f5)](_0x3e0b52=>typeof _0x3e0b52===_0x2e5d1b(0x1df))))throw new Error(_0x2e5d1b(0x1e5));const _0x5c2f4d=_0x547b82,_0x381231=_0x1093ab=>typeof _0x5c2f4d[_0x1093ab]===_0x2e5d1b(0x1df)?_0x5c2f4d[_0x1093ab]:undefined,_0x39a4c9=_0x381231(_0x2e5d1b(0x1f7)),_0xba9a39=_0x381231(_0x2e5d1b(0x1e1)),_0xc000e1=_0x381231(_0x2e5d1b(0x1d5)),_0x1192b0=_0x381231(_0x2e5d1b(0x1d0)),_0x55c6d2=Array[_0x2e5d1b(0x1da)](_0x5c2f4d[_0x2e5d1b(0x1db)])?_0x5c2f4d[_0x2e5d1b(0x1db)]:defaultAllowedRoots(),_0x1d8941=parseConversationHosting(_0x5c2f4d[_0x2e5d1b(0x1d6)]);return{'serverUrl':_0x547b82[_0x2e5d1b(0x1e9)],'allowedRoots':_0x55c6d2,..._0x39a4c9===undefined?{}:{'nodeId':_0x39a4c9},..._0xba9a39===undefined?{}:{'credential':_0xba9a39},..._0xc000e1===undefined?{}:{'registrationToken':_0xc000e1},..._0x1192b0===undefined?{}:{'dataDirectory':_0x1192b0},..._0x1d8941===undefined?{}:{'conversationHosting':_0x1d8941}};}export function defaultAllowedRoots(_0xbb4091=process[_0x140c75(0x1f4)],_0x5a7e74=homedir(),_0x5aeeb5=process[_0x140c75(0x1e0)]()){const _0x11d0d3=_0x140c75;return _0xbb4091===_0x11d0d3(0x1ea)?[win32[_0x11d0d3(0x1d7)](_0x5aeeb5)[_0x11d0d3(0x1d2)]]:[_0x5a7e74];}export function nodeDatabasePath(_0xf66889,_0x3b5b19=nodeConfigPath()){const _0x348ec1=_0x140c75;return resolve(nodeDataDirectory(_0xf66889,_0x3b5b19),_0x348ec1(0x1e8));}function _0x14ba(_0x11bd21,_0x3b93bb){_0x11bd21=_0x11bd21-(0x913+-0x2559+0x1e15);const _0x60981d=_0x1fc5();let _0x8d1030=_0x60981d[_0x11bd21];if(_0x14ba['ldqlKe']===undefined){var _0x59a102=function(_0x845aac){const _0x3422d3='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4eac0c='',_0x431994='';for(let _0xab8bce=0x3a7+-0x1729+0x9c1*0x2,_0x238b9c,_0x2f2867,_0x174b67=0x1e*0xe2+-0xf97*-0x1+-0x2a13;_0x2f2867=_0x845aac['charAt'](_0x174b67++);~_0x2f2867&&(_0x238b9c=_0xab8bce%(-0x1*-0x281+0x1d2*0x4+-0x1*0x9c5)?_0x238b9c*(0x1294+0x989+-0x1bdd)+_0x2f2867:_0x2f2867,_0xab8bce++%(-0x47b+-0x23bd+-0x203*-0x14))?_0x4eac0c+=String['fromCharCode'](0xcd5+-0x2aa+-0x24b*0x4&_0x238b9c>>(-(0xe*0x2d+-0x1*0x1ca5+0x1a31)*_0xab8bce&-0x2*-0xd71+0x1f3*0x4+0x2*-0x1154)):-0x1d10+0x9bf*-0x1+0x1*0x26cf){_0x2f2867=_0x3422d3['indexOf'](_0x2f2867);}for(let _0x8ae323=0x828+-0x1d84+-0x4*-0x557,_0x29f492=_0x4eac0c['length'];_0x8ae323<_0x29f492;_0x8ae323++){_0x431994+='%'+('00'+_0x4eac0c['charCodeAt'](_0x8ae323)['toString'](0xbc3+-0x2639*0x1+0x1a86))['slice'](-(-0x1*-0x98f+0x2*-0x167+-0x1*0x6bf));}return decodeURIComponent(_0x431994);};_0x14ba['GZxVus']=_0x59a102,_0x14ba['emlfLd']={},_0x14ba['ldqlKe']=!![];}const _0x4c16d0=_0x60981d[-0x21ec+0x27*0x83+0xdf7];_0x14ba['dShYka']!==_0x4c16d0&&(_0x14ba['emlfLd']={},_0x14ba['dShYka']=_0x4c16d0);const _0x3f7c44=_0x14ba['emlfLd'][_0x11bd21];return _0x3f7c44===undefined?(_0x8d1030=_0x14ba['GZxVus'](_0x8d1030),_0x14ba['emlfLd'][_0x11bd21]=_0x8d1030):_0x8d1030=_0x3f7c44,_0x8d1030;}export function nodeDataDirectory(_0x2c43b7,_0x3c029a=nodeConfigPath()){const _0x2cbb18=_0x140c75;if(_0x2c43b7[_0x2cbb18(0x1d0)]!==undefined)return resolve(dirname(_0x3c029a),_0x2c43b7[_0x2cbb18(0x1d0)]);return resolve(dirname(_0x3c029a));}export function hostedConversationStorePath(_0x28b477,_0x4998c4=nodeConfigPath()){const _0x577135=_0x140c75,_0x42db45=_0x28b477[_0x577135(0x1d6)];if(_0x42db45?.[_0x577135(0x1cf)]!==!![])return undefined;const _0x447cdb=_0x42db45[_0x577135(0x1e4)];if(!validStoreDirectory(_0x447cdb))throw new Error(_0x577135(0x1e5));const _0x2df3c1=nodeDataDirectory(_0x28b477,_0x4998c4),_0x649dc6=resolve(_0x2df3c1,_0x447cdb),_0x480bea=relative(_0x2df3c1,_0x649dc6);if(_0x480bea[_0x577135(0x1f3)]===0xa2*0x32+0x1*0x1a7c+-0x3a20||_0x480bea==='..'||_0x480bea[_0x577135(0x1e2)]('..'+sep))throw new Error(_0x577135(0x1e5));return _0x649dc6;}export async function saveNodeConfig(_0x1e6c35,_0x37940b=nodeConfigPath()){const _0x117b53=_0x140c75;await mkdir(dirname(_0x37940b),{'recursive':!![],'mode':0x1c0}),await writeFile(_0x37940b,JSON[_0x117b53(0x1f1)](_0x1e6c35,undefined,0x2*-0x1282+0x281+0x2285*0x1)+'\x0a',{'mode':0x180}),process[_0x117b53(0x1f4)]!==_0x117b53(0x1ea)&&await chmod(_0x37940b,0xb*0x1b5+-0x152+-0xff5);}function parseConversationHosting(_0x442b77){const _0x30623e=_0x140c75;if(_0x442b77===undefined)return undefined;if(typeof _0x442b77!==_0x30623e(0x1f6)||_0x442b77===null||Array[_0x30623e(0x1da)](_0x442b77)||typeof _0x442b77[_0x30623e(0x1cf)]!==_0x30623e(0x1e7)||Object[_0x30623e(0x1e3)](_0x442b77)[_0x30623e(0x1de)](_0x60981d=>_0x60981d!==_0x30623e(0x1cf)&&_0x60981d!==_0x30623e(0x1e4)&&_0x60981d!==_0x30623e(0x1f2)))throw new Error(_0x30623e(0x1e5));const _0x205387=_0x442b77[_0x30623e(0x1cf)],_0x11bd21=_0x442b77[_0x30623e(0x1e4)],_0x3b93bb=_0x442b77[_0x30623e(0x1f2)]??-0x22bf+-0x47b+0x2776;if(_0x11bd21!==undefined&&(typeof _0x11bd21!==_0x30623e(0x1df)||!validStoreDirectory(_0x11bd21)))throw new Error(_0x30623e(0x1e5));if(!Number[_0x30623e(0x1dd)](_0x3b93bb)||_0x3b93bb<-0x3*-0x276+-0x1c05+0x14a4||_0x3b93bb>-0x10fd*-0x2+0x11*-0x182+-0x1*0x6eb)throw new Error(_0x30623e(0x1e5));if(_0x205387&&_0x11bd21===undefined)throw new Error(_0x30623e(0x1e5));return{'enabled':_0x205387,..._0x11bd21===undefined?{}:{'storeDirectory':_0x11bd21},'inactiveRetentionDays':_0x3b93bb};}function validStoreDirectory(_0x8d1030){const _0x76af8a=_0x140c75;if(typeof _0x8d1030!==_0x76af8a(0x1df)||_0x8d1030[_0x76af8a(0x1f0)]()!==_0x8d1030||_0x8d1030[_0x76af8a(0x1f3)]===0x893*-0x2+0x1ae2+0x59*-0x1c)return![];if(isAbsolute(_0x8d1030)||_0x8d1030==='.'||_0x8d1030==='..')return![];return!_0x8d1030[_0x76af8a(0x1dc)]('/')[_0x76af8a(0x1de)](_0x59a102=>_0x59a102[_0x76af8a(0x1f3)]===0x1b75+0x7bb+-0x2330||_0x59a102==='.'||_0x59a102==='..');}
package/dist/connector.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /* mar-release-protected */
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);}}
2
+ const _0x6b58f4=_0x11d1;(function(_0x7ff00d,_0x596a90){const _0x2db811=_0x11d1,_0x32355e=_0x7ff00d();while(!![]){try{const _0x587ba8=parseInt(_0x2db811(0x17c))/(-0x1*0x1999+0x5b3*0x1+-0x5*-0x3fb)*(-parseInt(_0x2db811(0x11e))/(-0xa4*0x33+0x1ad+0x1f01*0x1))+-parseInt(_0x2db811(0x15d))/(-0x88f*0x1+-0x1*0x25d7+-0x1*-0x2e69)*(-parseInt(_0x2db811(0x200))/(-0x1abf+0x6ec+0x13d7))+-parseInt(_0x2db811(0x1ec))/(0x12cb+0x2*0x16f+-0x15a4)*(parseInt(_0x2db811(0x13d))/(0x956+0x970*-0x1+0x20))+-parseInt(_0x2db811(0x158))/(-0x1a*0x101+-0xb23+0x2544)+parseInt(_0x2db811(0x1ab))/(-0x25ed+0xc2*-0x11+-0x13*-0x2ad)*(-parseInt(_0x2db811(0x191))/(0x71f*-0x3+-0x1*0x9a9+-0x1f0f*-0x1))+parseInt(_0x2db811(0x2ca))/(0x26*-0x57+-0x237c+0x3070)+-parseInt(_0x2db811(0x1f1))/(0x559*-0x2+0x3*-0xbf1+-0x2e9*-0x10)*(-parseInt(_0x2db811(0x1d6))/(0x266f*0x1+-0xff8+-0x166b));if(_0x587ba8===_0x596a90)break;else _0x32355e['push'](_0x32355e['shift']());}catch(_0x2ff6ec){_0x32355e['push'](_0x32355e['shift']());}}}(_0x579a,0x27*0x49a1+0x9c17*-0x14+0x86c39));import{dirname,resolve}from'node:path';import{createEnvelope}from'@myagentroam/protocol';import{hostedConversationStorePath,loadNodeConfig,nodeDataDirectory,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';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{SessionWatchSlotCoordinator}from'./service/session-watch-slot-coordinator.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';function _0x579a(){const _0x1a930f=['BwLZC2LVBG','y29UDMvYC2f0Aw9UlNrLBxbSyxrLlNnVDxjJzs5PBNnWzwn0','C2vYDMvYvxjS','zxHWAxjL','zw5ZDxjLuMvZDw1LzenVBMzPz3vYyxrPB24','CMv2B2TL','BM9KzvjLCxvLC3rZ','DhvYBNm','DgLTzxi','CNvUqxr0ywnOBwvUDfnLCNzPy2u','yxbWCM92ywW6','uKvkrunuruq','ChvIBgLZAa','zxHLy3v0zq','y29UDMvYC2f0Aw9UlMHVC3rLzc5MAwXLlNjLywq','zxH0zxjUywXtzxnZAw9UuMvZDw1Lu2vYDMLJzq','yxnZAxn0yw50x21LC3nHz2u','C3rVCfDHDgnO','D29YA3nWywnLq2HHBMDLu2vYDMLJzq','C2vZC2LVBLbYzxnLBNrHDgLVBLnLCNzPy2u','CNvUlMnVBxbSzxrLza','yxbWCM92ywXjza','D29YA2jLBMnOrxzLBNrtzxj2AwnL','zMfRzvj1BM5LCG','yxnZzxj0q2fUq3jLyxrL','y2XLyxjnAxnZAw9UuMv0CNK','q0foq0vmteve','D29YA2jLBMnOtwfUAwzLC3rtzxj2AwnL','BwfYqwDLBNrsDw5dB250CM9SBgvY','DxnLCKLUChv0CW','CMvZB2X2zq','C3rHCNrdyxbHyMLSAxr5uMvMCMvZAa','CMvMCMvZAev4DgvYBMfSqwn0AxzPDhK','CMvZDw1LzenVBMzPz3vYyxrPB24','C2vZC2LVBI13yxrJAc1ZBMfWC2HVDa','tufsx0fhru5ux1DfqL9trufsq0HFrKfjteve','ChvIBgLZAefWChjVDMfS','zMX1C2Hqzw5KAw5Nvgv4Da','Bwf0zxjPywXPEMvdB2rLEa','y29TBwL0twv0ywrHDge','Bg9HzfjLC3vSDa','CNvUBMvYvgL0Bgu','Aw5ZCgvJDa','y3jLyxrLqwDLBNrtzxnZAw9U','C2XPy2u','CNvUlNj1BM5PBMC','y3vYCMvUDev4zwn1DgLVBKLK','Cgf1C2vtzxnZAw9UuxvLDwu','BM9Kzs5JB25Uzwn0Aw5N','y29UDgLUDwu','Aw52ywXPzgf0zunOyw5Nzxm','BwLZC2LVBK1JCfnLCNzLCG','ms4WlJa','y29UDMvYC2f0Aw9Usg9ZDgLUz01HAw50zw5HBMnLu2vYDMLJzq','zw1PDfjLywX0Aw1L','zMfZDa','l21PC3nPB24Gls1JBgvHCG','y29UDMvYC2f0Aw9UlNrLBxbSyxrLlNb1yMXPC2G','y29KzxHqCM9MAwXLq2XPzw50rMfJDg9YEq','C25HChnOB3rtzxf1zw5Jzq','tK9erv9eqvrbqKftrv9vtKfwquLmqujmrq','ChjVzMLSzxm','y29UBMvJDgvKqxr0zw1WDa','y29UDMvYC2f0Aw9Usg9ZDgLUzW','zgvSzxrL','zw5ZDxjLvg9WAwntBMfWC2HVDa','C3rHCNrLzef0','C3vWzxj2AxnLzfvWz3jHzgu','zMLSDgvY','CMvJB25Uzwn0u2nOzwr1BgvK','BgLUDxG','tK9erv9vueDsqurfx1bftKrjtKC','ywXSB3DLzfjVB3rZ','zM9Yz2v0','q0foq0vmteLorW','y29UDMvYC2f0Aw9UlMHVC3rLzc5MAwXLCY51CgXVywqUy3jLyxrL','DxbNCMfKzunVB3jKAw5HDg9Y','zgf0ywjHC2u','rvHurvjoquW','Aw5ZCgvJDe1LDgfKyxrH','Aw5ZDgfSBgf0Aw9U','y2f0y2G','C3rYAw5NAwz5','AgfZrxHLy3v0Aw9Uu3rHCNrLza','Bwv0CMLJCW','BM9Kzs5JB25Uzwn0Aw9UlNjLCgXHy2vK','z2v0qwDLBNrtzxnZAw9U','ChvIBgLZAe1PC3nPB25tDgf0zq','y29UDMvYC2f0Aw9UlMHVC3rLzc5MAwXLCY51CgXVywqUC3rHDhvZ','C3rVCMfNzunHCgfJAxr5','DgHYzwfKswq','Ag9ZDgvKq29UDMvYC2f0Aw9Ut3bLCMf0Aw9UCW','BMf0AxzLlNnLC3nPB24UzgLZy292zxj5lNbLBMrPBMC','CMvSzwfZzunVBNzLCNnHDgLVBKzVCKnSzwfUDxa','zgLZy292zxjxB3jRC3bHy2vtzxnZAw9UCW','C2vZC2LVBKLK','BMf0AxzLu2vZC2LVBLDHDgnOu2vYDMLJzq','ChjVAMvJDeLUAxrPywW','zw1PDenVBNzLCNnHDgLVBKL0zw0','y29UDMvYC2f0Aw9UlNrLBxbSyxrLlNb1yMXPC2GUC3rHDhvZ','q0foq0vm','q09ovKvsu0fusu9ox0Hpu1rjtKDFq0Xfqu5vuf9gquLmruq','tK9erv9dt05gsuDFvu5bvKfjtefcteu','CMvJzw50lxj1BNm','u0vora','CMvNAxn0zxjbBgW','y29UDMvYC2f0Aw9Usg9ZDgLUz0zHAwX1CMvdB2rL','y2XHDwrLqxbWCM92ywXuAw1LB3v0txm','BwfUywDLzfj1BM5LCLnLC3nPB25Z','ChjVAMvJDgLVBKzVCK5HDgL2zq','y2XVC2vsDw5UAw5NvgvYBwLUywXtzxnZAw9UCW','AgfZqwn0AxzLu2vZC2LVBKXLyxnL','zMfRzvnJCMLWDa','BgLZDfj1BNngB3jtzxnZAw9U','y29UBMvJDgvK','C2v0u2vZC2LVBLjLC291CMnLuMvSzwfZzxi','Dgv4Da','CNvUswq','y29UDMvYC2f0Aw9UlMHVC3rPBMCUy2XLyw51Cc5MywLSzwq','vgHPCYboB2rLignVBM5Ly3rPB24GD2fZihjLCgXHy2vKigj5igeGBMv3zxiGAw5ZDgfUy2uGD2L0Acb0AguGC2fTzsbPzgvUDgL0Es4Gq2HLy2SGzM9Yigr1CgXPy2f0zsbWCM9JzxnZzxmU','CMvSzwfZzvnLC3nPB24','Cgf0Aa','Aw52ywXPzgf0zq','CMvTB3zLtwLZC2LVBLf1zxvL','CMvHze5HDgL2zq','D29YA3nWywnLv29YA2jLBMnOu2vYDMLJzq','D2f0y2GUzxzLBNq','C2vUza','CNvUlNn0yxj0zwq','y29UDgLUDw91C1j1BKnVB3jKAw5HDg9Y','BwLZC2LVBLjLDhj5vgLTzxjZ','CNvUv29YA2jLBMnOu2vYDMLJzq','A2LUza','zgvJAwrL','C2vZC2LVBKLKzw50Axr5u2vYDMLJzq','Aw50zxjYDxb0uMvXDwvZDgvK','C2vXDwvUy2u','CNvUBMvYCW','y29UBMvJDgLVBKXPzMvJEwnSzq','y29UDMvYC2f0Aw9UlMHVC3rLzc53yxrJAa','y29UDhjVBe1LC3nHz2vZ','C2f2zu5HDgL2zvnLC3nPB25nzxrHzgf0yq','ntC5mtaZmeL1CunLrW','C2vZC2LVBLn0yxrL','tK9erv9tve9queve','D29YA3nWywnLv2f0y2Htzxj2AwnL','y2XLyxi','Ag9ZDgvKq29UDMvYC2f0Aw9UuNvUDgLTzq','y29UDMvYC2f0Aw9Uu2vNBwvUDfnLCNzPy2u','y29UDMvYC2f0Aw9UlMHVC3rPBMCUC3rVCMfNzs5PBNnWzwn0','y29UDMvYC2f0Aw9UlMHVC3rLzc5MAwXLCY5SAxn0','qMvHCMvYia','y29UBMvJDa','yMLUzenVBw1HBMrdB250CM9S','CNvUCW','CMvTB3zLugvUzgLUz1f1zxvL','rKflrv9svu5orvjFreLtq09otKvdva','CNvUlMzHAwXLza','sfruua','z2v0uNvU','y29UDMvYC2f0Aw9Usg9ZDgLUz1bYB2jL','y2fWywjPBgL0AwvZuhjVDMLKzwq','ue9tva','zMLUza','DgvYBwLUywXtzxj2AwnL','DxbNCMfKzvjLywr5','twLZC2LVBG','zxzLBNq','B25oB3rPzMLJyxrPB24','ChjVBw90zvnLC3nPB25jzgvUDgL0Eq','CMvXDwvZDenSyxvKzufWChjVDMfS','C3rVCa','y29UDMvYC2f0Aw9U','ChvIBgLZAfnUyxbZAg90','y29UDMvYC2f0Aw9UlNrLBxbSyxrLlNzLCNnPB24UAw5ZCgvJDa','y2fJAgvKu2vZC2LVBNm','CMvXDwLYzq','BMf0AxzLu2vZC2LVBLbYB2PLy3rPB25tzxj2AwnL','BM93','BM9Kzs51CgDYywrLlMnHBMnLBa','C2vZC2LVBKnHDgfSB2Dtzxj2AwnL','ChjVBw90zq','y29UDMvYC2f0Aw9UvgvTCgXHDgvpCgvYyxrPB25Z','mty2ntGYAhfuCNLW','C2vZC2LVBKnVBw1HBMrtzxj2AwnL','CMvJB3jKrxHLy3v0Aw9UuMvZDwX0','C3rHCNq','BMf0AxzLsw1Hz2vsB290CW','yMXVy2TbzNrLCLj1BNrPBwvgywLSDxjL','D29YA3nWywnLu3rHDgu','v09ss1nqqunf','y29UDMvYC2f0Aw9UlMHVC3rLzc5MAwXLCY51CgXVywqUy29TCgXLDgu','y29UDMvYC2f0Aw9UlMHVC3rLzc51BNDHDgnO','BwfYlwLUDgvYBMfSlw1PC3nPB24','AxrLBuLK','yxbWzw5K','C2vJCMv0CW','y29UDMvYC2f0Aw9UlMHVC3rLzc5PBNrLCNj1Chq','zw1PDfnLC3nPB25xB3jRyMvUy2HfDMvUDa','y29UDMvYC2f0Aw9UlMHVC3rLzc5JB25MAwCUDxbKyxrL','Bw92zq','C2vUzevUDMvSB3bL','y2XHDwrLq2XPzw50','ywn0AxzL','B3bLCMf0Aw9UuM91DgvY','zxHPDa','y2HHBM5LBfrVA2vU','Aw5PDgLHBgL6zunVBNzLCNnHDgLVBKHVC3rPBMC','C2vZC2LVBNm','tK9erv9vtKfvveHftLrjq0furuq','AxnbCNjHEq','B25tDw1Tyxj5','CMfUzg9Tvvvjra','Aw5PDgLHBgL6zq','mtuWoteXnerqu2zMqW','zw1PDfDVCMTIzw5JAev2zw50','y29UDMvYC2f0Aw9UlMHVC3rLzc5SAxn0','ywrK','rKfjteve','CMvHza','zMfRztO','y29UDMvYC2f0Aw9UlMHVC3rLzc5Nzxq','y2XVC2u','zgLZCgf0y2G','C2vZC2LVBG','zxH0zxjUywXtzxnZAw9Uswq','y29UDMvYC2f0Aw9UsgLZDg9YEvnLCNzPy2u','C3rHDgu','zgvJAwrLqxbWCM92ywW','zgLZy29UBMvJDa','C3rVChbLza','BwLZC2LVBLj1BNrPBwu','AgfUzgXL','CNvUDgLTzq','ChjLC2vUDa','y29UDMvYC2f0Aw9UlMHVC3rLzc5MAwXLCY51CgXVywqUChjLzMXPz2H0','y29TCgXLDgvKqxq','y2XLyxjbBgW','C29JA2v0','CgvYC29UywXjBNn0CNvJDgLVBNm','BwfUywDLzezVCK5HDgL2zq','ndq2nKfKqMv0BG','ywn0AxzLu2vZC2LVBLj1BG','CNvUBMvYu2vYDMLJzq','tuLtu0LptL9dt05usu5vqvrjt05FrKfjteve','CNvUBMvYq2HHBM5LBe1LC3nHz2vZ','mZa4mtLKtwP3tfy','Aw5KzxG','ChjVBxb0','C25HChnOB3q','Dgv4Dc5KzwX0yq','CMvXDwvZDenSyxvKzvvZzxjjBNb1Da','BgLZDa','D29YA3nWywnLu2vYDMLJzq','CNvUDgLTzs1UB2rL','y29UDMvYC2f0Aw9UlMHVC3rPBMCUAw5PDgLHBgL6yxrPB24UzMfPBgvK','y29UDMvYC2f0Aw9UlML0zw0','BwLNCMf0zvnLC3nPB24','C2vJCMv0rw52AxjVBM1LBNq','BxLHz2vUDhjVyw1FBwLZC2LVBG','zxHLy3v0zunVBw1HBMq','yxbWBgLJyxrPB24VANnVBG','Ag9ZDgvKlwnVBNzLCNnHDgLVBG','CgvUzgLUzW','D29YA3nWywnLq29VCMrPBMf0B3i','D29YA3nWywnLrMLSzvnLCNzPy2u','DgvYBwLUywXdAgfUBMvS','B2jQzwn0AxzL','zxHLy3v0Aw9U','CgXHDgzVCM0','CMvJB3jK','y29KzxHsDw5dB250CM9SBgvY','y29UDMvYC2f0Aw9UlMHVC3rLzc5KzwXLDgu','surmrq','D2vIu2vHCMnO','zw1PDfj1BKv2zw50','BM9KzuDLBMvYyxrPB24','mNLrBwXjza','zw1PDff1zxvL','Ag9ZDgvKq29UDMvYC2f0Aw9Uu2vYDMLJzq','y3jLyxrLqxbWCM92ywW','y2fUy2vSq2XHDwrLuNvU','zgLZy292zxjxB3jRC3bHy2u','CMvHzeHPC3rVCNLqywDL','zgvJAwrLq29KzxHbChbYB3zHBa','yMLUzenVBNrYB2W','C3rYAw5N','AxndB252zxjZyxrPB25jBLvZzq','CNvUBMvYvxnHz2vszwfKzxi','D2LUmZi','BNvTyMvY','Dw5YzwDPC3rLCMvK','y2XHDwrLuNvUq29UDhjVBgXLCG','ChvIBgLZAfDVCMTIzw5JAev2zw50','zMfPBgvKqxr0zw1WDhm','D29YA3nWywnLu2vZC2LVBLnLCNzPy2u','CMvWBgfJzvnVy2TLDezVCLrLC3rPBMC','CNvUrxzLBNrtzxj2AwnL','ody0otLLzfHyAvy','y29UDMvYC2f0Aw9UlMHVC3rLzc5MAwXLCY51CgXVywqUy2fUy2vS','lw9Wzw5JB2rLlwLTywDLCW','C2v0q2HHBM5LBfrVA2vU','y29UDMvYC2f0Aw9UlMHVC3rLzc5MAwXLCY51CgXVywqUy2H1BMS','CMvNAxn0zxi','C3rVChbPBMC','zgvJAxnPB24','y3jLzgvUDgLHBa','y29TCgXLDgvdyw5JzwXSzwrsDw4','y29UDMvYC2f0Aw9UlMHVC3rPBMCUy2XLyw51Cc5WCMv2Awv3','D29YA3nWywnLswq','BMv4Da','D29YA3nWywnLvxbSB2fKu2vYDMLJzq','Dw5Yzwy','Aw50zxjYDxb0','y3DK','q09ovKvsu0fusu9ox0Hpu1rjtKDFvu5bvKfjtefcteu','AxrLBxm','y2XLyw51Ca','CgvYC2LZDezPBgvZ','CMvZDw1Lqwz0zxjdB21Tyw5KuNvU','DMfSDwvZ','yxzHAwXHyMXL','CMvMCMvZAfrPDgXL','CMvJB25Uzwn0','ntuYvfjAvwzl','BM90AwzPy2f0Aw9U','uvvfvuu','C2vZC2LVBKXPzMvJEwnSzvnLCNzPy2u','zxH0zxjUywXby3rPDML0Eq','zxHLy3v0Aw9Uu3rHCNrLza','B3bLBKnVzgvsDw5dB250CM9SBgvY','C3rHDhvZ','tuLtu0LptL9ot1rFqunusvzf','y2XLyxjxyxrJAgvZ','B3bLBKnVzgvdBgLLBNq','y29UDhjVBenOyw5UzwW','BM9Kzs5TzxrYAwnZ','CMvJB3jKzwqTC2vZC2LVBG','AgfUzgXLtM90AwzPy2f0Aw9U','zgvJAwrLq2XHDwrLqxbWCM92ywW','BwLU','y29TBwfUzfn0yxrLCW','C2L6zq','y2fWywjPBgL0EurLDgvJDg9Y','BwfYqwDLBNrdBgLLBNq','DhvYBKLK','y2fWywjPBgL0AwvZ','y29UDMvYC2f0Aw9UlMHVC3rLzc5TzxnZywDL','Aw5Hy3rPDMvszxrLBNrPB25eyxLZ','CNvUBMvYsw50zxjHy3rPB25tzxj2AwnL','Dg9WAwnby3rPDMu','BM9Kzs51CgDYywrLlNjLCxvLC3q','l21PC3nPB24','BM9Kzs53B3jRyMvUy2GUy2fWywjPBgL0AwvZ','ChjVAMvJDenVBNzLCNnHDgLVBKHVC3rPBMDdyxbHyMLSAxr5','C2vZC2LVBLf1zxj5u2vYDMLJzq','Cgf5Bg9Hza','DgvYBwLUywXnyw5Hz2vY','BM9KzuLK','ywn0AxzLv29YA3nWywnLtgvHC2vdB3vUDa','y2fWywnPDhK','y29UDMvYC2f0Aw9UlMHVC3rLzc5JCMvHDgu','C2vZC2LVBLDHDgnOu2XVDhm','B3bLCMf0Aw9UCW','CNvU','y29UDMvYC2f0Aw9Usg9ZDgLUz1n0B3jHz2vszwfKEq','CMvTzw1Izxi','mtqYota0nZzZruXeuNu','z2v0v29YA3nWywnL','CgvUzgLUz01PC3nPB25dB21Tyw5Ku3rHDgu','D29YA3nWywnLuxvLDwvxB3jRyMvUy2Htzxj2AwnL','CMvXDwvZDa','ywnJzxb0rM9YtwvZC2fNzq','ChjLCgfYzu1LC3nHz2vjBNb1Da','C2vZC2LVBKnVBNrLEhrtzxj2AwnL','zMLUywXSEq','y29UzMLN','zgLZy292zxi','y2fUy2vSq29KzxHuDxjU','C2vZC2LVBI5SAxn0','Aw52ywXPzgf0zvDVCMTZCgfJzvDHDgnOvg9WAwnZ','zMLUAxnOswrSzu1PC3nPB25sDw4','Aw52ywXPzgf0zvrVCgLJ','DhvYBG','y29UDMvYC2f0Aw9Usg9ZDgLUz01HAw50zw5HBMnLt3bLCMf0Aw9UCW','CMvJB3jKvhvYBG','y29KzxHdBgLLBNq','Aw52ywXPzgf0zunHy2HL','tK9erv9dt05orunusu9ox1jfueXbq0ve','mtbAqxfwzgm','BM9Kzs5VCgvYyxrPB24','y29UDMvYC2f0Aw9UlMHVC3rPBMCUy2XLyw51Cc5LEgvJDxrL','AgfZ','Bw9KzwW','mtfpB3fYuwO','y3jLyxrLzef0','CMvJB3zLCKLUDgvYCNvWDgvKuhvIBgLJyxrPB25Z','zwzMB3j0','CMvTB3zL','yM9VDhn0CMfWswrZ','yMvNAw5dB252zxjZyxrPB25dBgvHBNvW','CMvIDwLSzenVBNzLCNnHDgLVBKLUzgv4','y2HHBMDLza','CMvJB25JAwXLugvYC2LZDgvKuNvUCW','CNvUu3rHDgu','y29KzxG','CgvYC2LZDfrLCM1PBMfS','C2H1DgrVD24','C2v0','mJbztK9Auxu','q09ovKvsu0fusu9ox0Hpu1rjtKDFu1rpuKfhrv9vtKfwquLmqujmrq','y3vZDg9TvgL0Bgu','zw5ZDxjLv2f0y2G','ywnJzxnZ','C2nOzwr1Bgu','CNvUrxzLBNrcCMLKz2u','y29UDMvYC2f0Aw9UlMHVC3rLzc5TzxrHzgf0ys51CgrHDgu','u1vdq0vfreve','BMf0AxzLswrZ','zgLYzwn0tMf0AxzL','Bwf4','DxbNCMfKzq','yMXVy2TZ','CMvJB25JAwXL','BgLZDfDVCMTZCgfJzxm','Bwv0ywrHDge','CNvUBMvYlMnVBw1HBMqUzxHLy3v0zq','zwzMzwn0AxzLtwnWsw5ZDgfSBgf0Aw9UCW','zgLZCg9Zzq','BwLNCMf0zvj1BM5LCLnLC3nPB25jzgvUDgL0Eq','ywrVChrsDw4','uLvox05pvf9gt1vora','CMvZCg9UzfvZzxjjBNb1Da','zw1PDfj1BG','ANnVBG','AgfUzgXLtwvZC2fNzq','zw5HyMXLza','CMvWBgfJzq','y2XLyxjxB3jRC3bHy2u','y29UzMLNugf0Aa','DhjHBNnPDgLVBMLUzW','zxHWAxjLqxbWCM92ywW','uKvqtefdrv9dvvjsru5u','z2v0','CMvQzwn0','D2LUzg93CW','CMv2AxnPB24','y29UDMvYC2f0Aw9UvhvYBKzVCLj1BG','BwLZC2LVBKnVBNrPBNvHDgLVBLbLBMrPBMC','zw1PDenVBNzLCNnHDgLVBLr1CM4','zw5XDwv1zu1PC3nPB25dB250Aw51yxrPB24','yxbWCM92ywXZ','CMvMCMvZAenHCgfIAwXPDgLLCW','DxbKyxrLqwDLBNrtzxnZAw9UqwnJzxnZ','CMvJzw50uNvUuhjVAMvJDgLVBLnLCNzPy2u','qvzbsuXbqKXf','CNvUBMvY','y2fUy2vS','su5urvjsvvburuq','C2vZC2LVBK1LC3nHz2vtzxj2AwnL','C3vIBwL0twLZC2LVBG','zxzLBNruExbL','l2fWAs9UB2rLlxrVB2XZl3DLyI1ZzwfYy2G','DxbNCMfKzs1Yzxn1BhqUANnVBG','q09ovKvsu0fusu9ox0Hpu1rjtKDFuKvdt1zfuLLFrKfjteve','CMvZB2X2zun1CNjLBNq','ChjLCgfYzu1PC3nPB25tzxnZAw9U','zxHLy3v0zu5VzgvpCgvYyxrPB24','Ahr0Chm6lY8XmJCUmc4WlJeUAw52ywXPzc9Ty3a'];_0x579a=function(){return _0x1a930f;};return _0x579a();}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';import{HostedConversationStore}from'./service/hosted-conversation-store.js';import{ConversationTemplateNodeService}from'./service/conversation-template-node-service.js';import{HostedConversationNodeService}from'./service/hosted-conversation-node-service.js';import{BubblewrapSandboxExecutor}from'./service/bubblewrap-sandbox-executor.js';import{MarAgentHostedConversationRuntime}from'./runner/mar-agent/hosted-conversation-runtime.js';import{conversationHostingCapability,probeBubblewrap}from'./service/conversation-hosting-capability-service.js';import{ConversationHostingMaintenanceService}from'./service/conversation-hosting-maintenance-service.js';import{ConversationHostingEnablementService}from'./service/conversation-hosting-enablement-service.js';import{safeErrorCode}from'./util/safe-error.js';const HEARTBEAT_MS=-0x5168+0x1d*0xe9+0x719b,CAPABILITY_REFRESH_MS=0x32c4+0x6e9c*0x3+0x6*-0x18b4,RETRY_MIN_MS=-0x1*0x173a+-0x12a2+0x8*0x57a,RETRY_MAX_MS=0x1283*0x1+-0xaa38+0x10ce5,CLAUDE_APPROVAL_TIMEOUT_MS=(0x1a0f+-0x200b+0x606)*(0xbb*0xff+0x25b2+-0x41*-0x29),CONVERSATION_TEMPLATE_OPERATIONS=[_0x6b58f4(0x23d),_0x6b58f4(0x275),_0x6b58f4(0x29f),_0x6b58f4(0x115)],HOSTED_CONVERSATION_OPERATIONS=[_0x6b58f4(0x13f),_0x6b58f4(0x1d0),_0x6b58f4(0x144),_0x6b58f4(0x2c7),_0x6b58f4(0x127),_0x6b58f4(0x1c2),_0x6b58f4(0x12c),_0x6b58f4(0x12e),_0x6b58f4(0x207),_0x6b58f4(0x2d2),_0x6b58f4(0x24a),_0x6b58f4(0x152),_0x6b58f4(0x287),_0x6b58f4(0x195),_0x6b58f4(0x294),_0x6b58f4(0x126),_0x6b58f4(0x192),_0x6b58f4(0x177)],CONVERSATION_HOSTING_MAINTENANCE_OPERATIONS=[_0x6b58f4(0x2d1),_0x6b58f4(0x19b),_0x6b58f4(0x1ee)];function _0x11d1(_0x4557bd,_0x5df4df){_0x4557bd=_0x4557bd-(-0x511*-0x7+-0x1*0x1272+-0x1*0x1001);const _0x226c27=_0x579a();let _0x301186=_0x226c27[_0x4557bd];if(_0x11d1['HYbhKp']===undefined){var _0x336763=function(_0x149b16){const _0x374605='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1958a9='',_0x584e07='';for(let _0x1640a3=-0x1aa6+-0x5*0x31d+0x65*0x6b,_0x54470a,_0x16929f,_0x206742=-0x1*0x676+0x169*0x3+0x1*0x23b;_0x16929f=_0x149b16['charAt'](_0x206742++);~_0x16929f&&(_0x54470a=_0x1640a3%(-0x1*0x173a+-0x12a2+0x20*0x14f)?_0x54470a*(0x18b*0x2+-0x1c5f+0x1989)+_0x16929f:_0x16929f,_0x1640a3++%(0x1a0f+-0x200b+0x600))?_0x1958a9+=String['fromCharCode'](0x2*0x7c3+0x324+-0x11ab*0x1&_0x54470a>>(-(-0x112d*-0x1+-0x3*0xcdc+0x1569)*_0x1640a3&-0x4b7+0x14b9+-0xffc)):-0x22f3*-0x1+-0x58f+-0x1d64){_0x16929f=_0x374605['indexOf'](_0x16929f);}for(let _0x2e878b=0x6c4*-0x3+-0x1*0x125f+0x26ab*0x1,_0x4b1216=_0x1958a9['length'];_0x2e878b<_0x4b1216;_0x2e878b++){_0x584e07+='%'+('00'+_0x1958a9['charCodeAt'](_0x2e878b)['toString'](0x2*0x796+-0x150e*-0x1+0x242a*-0x1))['slice'](-(0x1241+-0x1821+0x5e2));}return decodeURIComponent(_0x584e07);};_0x11d1['xHmcdQ']=_0x336763,_0x11d1['ZFSdhu']={},_0x11d1['HYbhKp']=!![];}const _0x2614f7=_0x226c27[0x63*-0x11+-0x13c4+0x265*0xb];_0x11d1['WtaRdi']!==_0x2614f7&&(_0x11d1['ZFSdhu']={},_0x11d1['WtaRdi']=_0x2614f7);const _0x78cb9b=_0x11d1['ZFSdhu'][_0x4557bd];return _0x78cb9b===undefined?(_0x301186=_0x11d1['xHmcdQ'](_0x301186),_0x11d1['ZFSdhu'][_0x4557bd]=_0x301186):_0x301186=_0x78cb9b,_0x301186;}export function nextReconnectDelay(_0x1ab5f0){const _0x788058=_0x6b58f4;return Math[_0x788058(0x1bb)](RETRY_MAX_MS,RETRY_MIN_MS*(-0x112d*-0x1+-0x3*0xcdc+0x1569)**Math[_0x788058(0x1bb)](Math[_0x788058(0x20b)](_0x1ab5f0,-0x4b7+0x14b9+-0x1002),-0x22f3*-0x1+-0x58f+-0x1d54));}function upgradeMetadata(_0x2e4782,_0x5b8d6a){const _0x26d8e4=_0x6b58f4,_0x1af822={..._0x2e4782??{}};if(process.env['MAR_NODE_SUPERVISED']==='1')_0x1af822[_0x26d8e4(0x27f)]=!![];else delete _0x1af822[_0x26d8e4(0x27f)];if(_0x5b8d6a[_0x26d8e4(0x14a)]===_0x26d8e4(0x178))delete _0x1af822[_0x26d8e4(0x20c)];else _0x1af822[_0x26d8e4(0x20c)]=_0x5b8d6a;return _0x1af822;}export class NodeConnector{[_0x6b58f4(0x17b)]=crypto[_0x6b58f4(0x13b)]()[_0x6b58f4(0x21c)](/-/g,'');[_0x6b58f4(0x1b6)];[_0x6b58f4(0x2c8)];[_0x6b58f4(0x242)];[_0x6b58f4(0x2c6)];set[_0x6b58f4(0x155)](_0x1f493b){const _0x19005e=_0x6b58f4;this[_0x19005e(0x1b6)][_0x19005e(0x18f)](_0x1f493b);}[_0x6b58f4(0x14d)]=![];[_0x6b58f4(0x197)];[_0x6b58f4(0x1df)];[_0x6b58f4(0x108)];[_0x6b58f4(0x1c1)];[_0x6b58f4(0x1be)];[_0x6b58f4(0x107)];[_0x6b58f4(0x1d4)]=![];[_0x6b58f4(0x2a6)];[_0x6b58f4(0x11d)];[_0x6b58f4(0x297)];[_0x6b58f4(0x1e7)];[_0x6b58f4(0x2cf)];[_0x6b58f4(0x17e)];[_0x6b58f4(0x271)];[_0x6b58f4(0x21e)];[_0x6b58f4(0x1aa)];[_0x6b58f4(0x2a7)];[_0x6b58f4(0x252)]=new WorkbenchEventService(envelope=>this[_0x6b58f4(0x130)](envelope),(category,payload)=>{const _0x5a5bcc=_0x6b58f4,sessionId=workbenchPayloadSessionId(this[_0x5a5bcc(0x150)],category,payload);return sessionId===undefined||!this[_0x5a5bcc(0x2c2)][_0x5a5bcc(0x1f6)][_0x5a5bcc(0x1ef)](sessionId);});[_0x6b58f4(0x253)];[_0x6b58f4(0x2ac)];[_0x6b58f4(0x1fb)]=new RunDomainState();[_0x6b58f4(0x206)];[_0x6b58f4(0x16f)];[_0x6b58f4(0x2cb)]=new SessionDomainState();[_0x6b58f4(0x2c2)];[_0x6b58f4(0x118)];[_0x6b58f4(0x149)];[_0x6b58f4(0x2d0)];[_0x6b58f4(0x1c4)];[_0x6b58f4(0x15c)];[_0x6b58f4(0x2a8)];[_0x6b58f4(0x24f)];[_0x6b58f4(0x1ae)];[_0x6b58f4(0x24b)];[_0x6b58f4(0x232)];[_0x6b58f4(0x11b)];[_0x6b58f4(0x11f)];[_0x6b58f4(0x245)];[_0x6b58f4(0x171)];[_0x6b58f4(0x1e9)];[_0x6b58f4(0x176)];[_0x6b58f4(0x131)];[_0x6b58f4(0x1b5)];[_0x6b58f4(0x1bf)];[_0x6b58f4(0x258)];[_0x6b58f4(0x1b1)];[_0x6b58f4(0x18b)];[_0x6b58f4(0x2c5)];[_0x6b58f4(0x1dd)];[_0x6b58f4(0x2bf)];[_0x6b58f4(0x1ca)];[_0x6b58f4(0x2bd)];[_0x6b58f4(0x1d9)];[_0x6b58f4(0x133)]=new NodeOperationRouter();[_0x6b58f4(0x15a)];[_0x6b58f4(0x257)];[_0x6b58f4(0x10b)];[_0x6b58f4(0x164)];[_0x6b58f4(0x1bc)]=new CommandStateStore();[_0x6b58f4(0x14e)]=new MissionRuntime(()=>undefined);[_0x6b58f4(0x2be)]=new Map();[_0x6b58f4(0x227)]=new Map();[_0x6b58f4(0x26f)]=new MissionMcpServer(this[_0x6b58f4(0x14e)],sessionId=>{const _0xdf56d9=_0x6b58f4,mission=this[_0xdf56d9(0x14e)][_0xdf56d9(0x222)](sessionId),session=this[_0xdf56d9(0x150)][_0xdf56d9(0x292)](sessionId);if(mission===undefined||session===undefined)return;if(mission[_0xdf56d9(0x1b2)]!==_0xdf56d9(0x132))this[_0xdf56d9(0x2bd)][_0xdf56d9(0x2b7)](sessionId);this[_0xdf56d9(0x293)](session,mission);});[_0x6b58f4(0x187)];[_0x6b58f4(0x1cc)];[_0x6b58f4(0x288)];[_0x6b58f4(0x124)]=new WorkspaceDomainState();[_0x6b58f4(0x2cd)]=new WorkspaceWatchService(this[_0x6b58f4(0x124)],workspaceId=>this[_0x6b58f4(0x18e)][_0x6b58f4(0x203)](workspaceId),workspaceId=>this[_0x6b58f4(0x18e)][_0x6b58f4(0x24d)](workspaceId),workspaceId=>this[_0x6b58f4(0x2b9)]?.[_0x6b58f4(0x21d)](workspaceId));[_0x6b58f4(0x18e)]=new WorkspaceSessionService(this[_0x6b58f4(0x124)],{'discover':workspaceId=>this[_0x6b58f4(0x29a)](workspaceId),'listPage':workspaceId=>this[_0x6b58f4(0x23a)](_0x6b58f4(0x1e2),{'workspaceId':workspaceId,'limit':0x14}),'active':workspaceId=>this[_0x6b58f4(0x2cd)][_0x6b58f4(0x1c5)](workspaceId,_0x6b58f4(0x137)),'invalidate':workspaceId=>void this[_0x6b58f4(0x2b9)]?.[_0x6b58f4(0x1e5)](workspaceId,_0x6b58f4(0x137)),'onPending':(workspaceId,waitMs)=>nodeLog(_0x6b58f4(0x298),{'nodeId':this[_0x6b58f4(0x1df)]?.[_0x6b58f4(0x1cd)],'workspaceId':workspaceId,'waitMs':waitMs})});[_0x6b58f4(0x170)]=new WorkspaceFileService(this[_0x6b58f4(0x124)],()=>this[_0x6b58f4(0x1df)]?.[_0x6b58f4(0x284)]??[],workspaceId=>this[_0x6b58f4(0x16f)][_0x6b58f4(0x2b6)](workspaceId));[_0x6b58f4(0x19e)]=new WorkspaceUploadService(this[_0x6b58f4(0x124)],workspaceId=>{const _0x2c0281=_0x6b58f4;this[_0x2c0281(0x170)][_0x2c0281(0x213)](workspaceId),this[_0x2c0281(0x16f)][_0x2c0281(0x2b6)](workspaceId);});[_0x6b58f4(0x24e)]=new WorkspaceChangeService(this[_0x6b58f4(0x124)]);[_0x6b58f4(0x2b9)];[_0x6b58f4(0x289)];[_0x6b58f4(0x22d)]=new RecentRunProjectionService(message=>this[_0x6b58f4(0x2bb)](_0x6b58f4(0x2a3),message));[_0x6b58f4(0x150)]=new NodeRuntimeState(()=>this[_0x6b58f4(0x1df)]?.[_0x6b58f4(0x1cd)]??_0x6b58f4(0x165),workspaceId=>this[_0x6b58f4(0x289)]?.[_0x6b58f4(0x1d7)](workspaceId),Date[_0x6b58f4(0x119)],(run,session,userMessage)=>this[_0x6b58f4(0x22d)][_0x6b58f4(0x175)](run,session,userMessage));[_0x6b58f4(0x290)]=new NodeMetrics();[_0x6b58f4(0x190)]=new RunEventService({'runtime':this[_0x6b58f4(0x150)],'metrics':this[_0x6b58f4(0x290)],'state':this[_0x6b58f4(0x1fb)],'isBootstrapSession':sessionId=>this[_0x6b58f4(0x2c2)][_0x6b58f4(0x1f6)][_0x6b58f4(0x1ef)](sessionId),'presentSession':session=>this[_0x6b58f4(0x24f)][_0x6b58f4(0x151)](session),'rejectBootstrap':(sessionId,code)=>this[_0x6b58f4(0x2c2)][_0x6b58f4(0x223)](sessionId,code),'emitWorkbench':(category,payload)=>{const _0x2245b5=_0x6b58f4;if(category===_0x2245b5(0x113)&&isPlainRecord(payload)&&_0x2245b5(0x1e6)in payload)this[_0x2245b5(0x228)](payload[_0x2245b5(0x1e6)]);else this[_0x2245b5(0x18c)](category,payload);},'cleanupAttachments':runId=>this[_0x6b58f4(0x245)][_0x6b58f4(0x1a4)](runId),'expireImages':runId=>this[_0x6b58f4(0x245)][_0x6b58f4(0x23f)](runId),'scheduleContextRefresh':sessionId=>this[_0x6b58f4(0x1dd)][_0x6b58f4(0x205)](sessionId),'refreshWorkspaceSessions':workspaceId=>this[_0x6b58f4(0x2b9)][_0x6b58f4(0x27d)](workspaceId,_0x6b58f4(0x137)),'dispatchQueue':async(sessionId,delayMs=0x6c4*-0x3+-0x1*0x125f+0x26ab*0x1)=>{const _0x2f3c5d=_0x6b58f4;if(this[_0x2f3c5d(0x288)][_0x2f3c5d(0x16e)]())return;if(delayMs>0x2*0x796+-0x150e*-0x1+0x243a*-0x1){this[_0x2f3c5d(0x2bd)][_0x2f3c5d(0x205)](sessionId,delayMs);return;}await this[_0x2f3c5d(0x2bd)][_0x2f3c5d(0x146)](sessionId);},'executionStarted':executionId=>this[_0x6b58f4(0x2bd)][_0x6b58f4(0x1b0)](executionId),'keepRunActive':sessionId=>(this[_0x6b58f4(0x2be)][_0x6b58f4(0x1ef)](sessionId)||this[_0x6b58f4(0x227)][_0x6b58f4(0x1ef)](sessionId))&&this[_0x6b58f4(0x14e)][_0x6b58f4(0x222)](sessionId)?.[_0x6b58f4(0x1b2)]===_0x6b58f4(0x132),'executionTerminating':(executionId,status)=>{const _0x7c4a96=_0x6b58f4,pending=this[_0x7c4a96(0x2bd)][_0x7c4a96(0x16e)](executionId);if(pending?.[_0x7c4a96(0x23c)]===undefined)return;const started=this[_0x7c4a96(0x2bd)][_0x7c4a96(0x28f)](executionId),blocked=this[_0x7c4a96(0x14e)][_0x7c4a96(0x120)](pending[_0x7c4a96(0x29b)],status===_0x7c4a96(0x141));if(blocked){this[_0x7c4a96(0x255)](pending[_0x7c4a96(0x29b)]),this[_0x7c4a96(0x2bd)][_0x7c4a96(0x2b7)](pending[_0x7c4a96(0x29b)]);const terminalMission=this[_0x7c4a96(0x14e)][_0x7c4a96(0x222)](pending[_0x7c4a96(0x29b)]),session=this[_0x7c4a96(0x150)][_0x7c4a96(0x292)](pending[_0x7c4a96(0x29b)]);if(terminalMission!==undefined&&session!==undefined)this[_0x7c4a96(0x293)](session,terminalMission);return;}if(status!==_0x7c4a96(0x141)||started)return;this[_0x7c4a96(0x255)](pending[_0x7c4a96(0x29b)]);const retry={'sessionId':pending[_0x7c4a96(0x29b)],'timer':setTimeout(()=>{const _0x4976bb=_0x7c4a96;this[_0x4976bb(0x2be)][_0x4976bb(0x27c)](retry[_0x4976bb(0x29b)]);const mission=this[_0x4976bb(0x14e)][_0x4976bb(0x222)](retry[_0x4976bb(0x29b)]);if(mission?.[_0x4976bb(0x1b2)]!==_0x4976bb(0x132)||mission['id']!==pending[_0x4976bb(0x23c)]?.['id']||mission[_0x4976bb(0x225)]!==pending[_0x4976bb(0x23c)][_0x4976bb(0x225)])return;void this[_0x4976bb(0x232)][_0x4976bb(0x233)]({'sessionId':retry[_0x4976bb(0x29b)],'kind':_0x4976bb(0x26d),'content':this[_0x4976bb(0x14e)][_0x4976bb(0x15f)](retry[_0x4976bb(0x29b)],_0x4976bb(0x26d)),'deliveryIntent':_0x4976bb(0x2a4),'mission':{'id':mission['id'],'revision':mission[_0x4976bb(0x225)]},'secretEnvironment':pending[_0x4976bb(0x169)],...pending[_0x4976bb(0x156)]===undefined?{}:{'personalInstructions':pending[_0x4976bb(0x156)]}})[_0x4976bb(0x28d)](()=>undefined);},0x36c1+-0x4861+0x4c38)};this[_0x7c4a96(0x2be)][_0x7c4a96(0x1ff)](pending[_0x7c4a96(0x29b)],retry),retry[_0x7c4a96(0x244)][_0x7c4a96(0x19f)]();},'releaseExecution':executionId=>{const _0x1e4c46=_0x6b58f4;this[_0x1e4c46(0x26f)][_0x1e4c46(0x241)](executionId),this[_0x1e4c46(0x2bd)][_0x1e4c46(0x1f5)](executionId);}});[_0x6b58f4(0x1d1)]=new SessionWatchSlotCoordinator();[_0x6b58f4(0x29c)]=new NativeSessionWatchService({'resolve':async sessionId=>this[_0x6b58f4(0x150)][_0x6b58f4(0x292)](sessionId)??this[_0x6b58f4(0x118)][_0x6b58f4(0x238)](sessionId),'managedActive':session=>hasManagedActiveRun(this[_0x6b58f4(0x150)],session),'suspended':sessionId=>this[_0x6b58f4(0x24b)][_0x6b58f4(0x21f)](sessionId),'refreshActivity':session=>this[_0x6b58f4(0x149)][_0x6b58f4(0x25c)](session),'present':session=>this[_0x6b58f4(0x24f)][_0x6b58f4(0x151)](session),'readPage':(session,limit)=>this[_0x6b58f4(0x149)][_0x6b58f4(0x142)](session,{'limit':limit}),'readHistoryPage':(session,limit)=>this[_0x6b58f4(0x149)][_0x6b58f4(0x182)](session,{'limit':limit}),'convergePage':convergeConversationWatchPage,'composeRuntimePage':composeConversationRuntimePage,'projectInitialPage':(session,page,_unit,limit)=>{const _0x17be28=_0x6b58f4,context=this[_0x17be28(0x1dd)][_0x17be28(0x160)](session['id']);return this[_0x17be28(0x1dd)][_0x17be28(0x205)](session),{'kind':_0x17be28(0x25e),'sequence':this[_0x17be28(0x252)][_0x17be28(0x277)](),'session':this[_0x17be28(0x24f)][_0x17be28(0x151)](session),'runs':this[_0x17be28(0x150)][_0x17be28(0x2ad)](session['id']),'queue':this[_0x17be28(0x1d9)][_0x17be28(0x160)](session['id']),'context':context,'conversation':this[_0x17be28(0x2d0)][_0x17be28(0x29d)](session,page,limit)};},'emitSession':session=>this[_0x6b58f4(0x12d)]({'session':session}),'emitPage':(session,page)=>this[_0x6b58f4(0x13e)](_0x6b58f4(0x113),{'sessionId':session['id'],'snapshot':this[_0x6b58f4(0x2d0)][_0x6b58f4(0x29d)](session,page,0x63*-0x11+-0x13c4+0x8cb*0x3)}),'nodeId':()=>this[_0x6b58f4(0x1df)]?.[_0x6b58f4(0x1cd)]??_0x6b58f4(0x165),'nodeGeneration':()=>this[_0x6b58f4(0x17b)],'emitWatchEvent':payload=>this[_0x6b58f4(0x2bb)](_0x6b58f4(0x2ba),payload),'sessionWatchSlots':this[_0x6b58f4(0x1d1)],'log':nodeLog});constructor(_0x1b087c={}){const _0x2ba4b7=_0x6b58f4;this[_0x2ba4b7(0x1df)]=_0x1b087c[_0x2ba4b7(0x1df)],this[_0x2ba4b7(0x21e)]=_0x1b087c[_0x2ba4b7(0x21e)],this[_0x2ba4b7(0x2a7)]=_0x1b087c[_0x2ba4b7(0x2a7)]??CLAUDE_APPROVAL_TIMEOUT_MS,this[_0x2ba4b7(0x108)]=_0x1b087c[_0x2ba4b7(0x1c1)]!==undefined,this[_0x2ba4b7(0x1c1)]=_0x1b087c[_0x2ba4b7(0x1c1)]??unavailableCapabilities(),this[_0x2ba4b7(0x107)]=_0x1b087c[_0x2ba4b7(0x107)]??probeBubblewrap,this[_0x2ba4b7(0x288)]=new NodeUpgradeCoordinator(()=>{const _0x1e1fa3=_0x2ba4b7;if(this[_0x1e1fa3(0x1df)]===undefined)throw new Error(_0x1e1fa3(0x2a2));return nodeUpgradeRequestPath(nodeDatabasePath(this[_0x1e1fa3(0x1df)],this[_0x1e1fa3(0x21e)]));},()=>this[_0x2ba4b7(0x1fb)][_0x2ba4b7(0x132)][_0x2ba4b7(0x1bd)],_0x8a9604=>{const _0x423c8f=_0x2ba4b7;this[_0x423c8f(0x1c1)]={...this[_0x423c8f(0x1c1)],'metadata':upgradeMetadata(this[_0x423c8f(0x1c1)][_0x423c8f(0x210)],_0x8a9604)},this[_0x423c8f(0x1b6)]?.[_0x423c8f(0x2bb)](_0x423c8f(0x1c1),this[_0x423c8f(0x1c1)]);},_0x1b087c[_0x2ba4b7(0x10c)]??(()=>{const _0x40944d=_0x2ba4b7;void this[_0x40944d(0x112)]()[_0x40944d(0x1de)](()=>process[_0x40944d(0x134)](0x11be+0x1*0x25e9+-0x375c));})),this[_0x2ba4b7(0x1c1)]={...this[_0x2ba4b7(0x1c1)],'metadata':upgradeMetadata(this[_0x2ba4b7(0x1c1)][_0x2ba4b7(0x210)],this[_0x2ba4b7(0x288)][_0x2ba4b7(0x160)]())};const _0x2aea91=_0x1b087c[_0x2ba4b7(0x1be)]??detectCapabilitiesAsync;this[_0x2ba4b7(0x1be)]=async()=>{const _0xb281a6=_0x2ba4b7,_0x199eb8=await _0x2aea91();return this[_0xb281a6(0x1c9)]({..._0x199eb8,'metadata':upgradeMetadata(_0x199eb8[_0xb281a6(0x210)],this[_0xb281a6(0x288)][_0xb281a6(0x160)]())});},this[_0x2ba4b7(0x1aa)]=_0x1b087c[_0x2ba4b7(0x1aa)]??!![],this[_0x2ba4b7(0x253)]=_0x1b087c[_0x2ba4b7(0x253)]===undefined?undefined:new FakeTestRunner(_0x1b087c[_0x2ba4b7(0x253)]),this[_0x2ba4b7(0x2ac)]=_0x1b087c[_0x2ba4b7(0x2ac)],this[_0x2ba4b7(0x245)]=new RunAttachmentService(_0x4d7d7e=>this[_0x2ba4b7(0x2c5)][_0x2ba4b7(0x117)](_0x4d7d7e[_0x2ba4b7(0x22f)])[_0x2ba4b7(0x122)](_0x4d7d7e)),this[_0x2ba4b7(0x1e9)]=new CodexRunner(_0x1b087c[_0x2ba4b7(0x1e9)],_0x1b087c[_0x2ba4b7(0x276)]),this[_0x2ba4b7(0x176)]=new CodexManagedRunController(this[_0x2ba4b7(0x1e9)],{'available':()=>this[_0x2ba4b7(0x1c1)][_0x2ba4b7(0x1fc)][_0x2ba4b7(0x1a8)],'intercepted':()=>this[_0x2ba4b7(0x253)]!==undefined,'active':this[_0x2ba4b7(0x1fb)][_0x2ba4b7(0x132)],'addActive':_0x4efc88=>this[_0x2ba4b7(0x1fb)][_0x2ba4b7(0x132)][_0x2ba4b7(0x140)](_0x4efc88),'removeActive':_0x1ff004=>this[_0x2ba4b7(0x1fb)][_0x2ba4b7(0x132)][_0x2ba4b7(0x27c)](_0x1ff004),'adopt':_0x1a5d96=>this[_0x2ba4b7(0x150)][_0x2ba4b7(0x215)](_0x1a5d96),'session':_0x5bf877=>this[_0x2ba4b7(0x150)][_0x2ba4b7(0x292)](_0x5bf877),'runStatus':_0x1126a1=>this[_0x2ba4b7(0x150)][_0x2ba4b7(0x106)](_0x1126a1)?.[_0x2ba4b7(0x1b2)],'run':_0x145f49=>this[_0x2ba4b7(0x150)][_0x2ba4b7(0x106)](_0x145f49),'interrupted':_0x141893=>this[_0x2ba4b7(0x1fb)][_0x2ba4b7(0x2c3)][_0x2ba4b7(0x1ef)](_0x141893),'parseAttachments':parseRunnerImageAttachments,'materialize':(_0x545279,_0x224085)=>this[_0x2ba4b7(0x245)][_0x2ba4b7(0x262)](_0x545279,_0x224085),'completeCancelled':_0x4069a3=>this[_0x2ba4b7(0x1c4)][_0x2ba4b7(0x19a)](_0x4069a3),'promoteSession':(_0x1d3aa0,_0xec268c)=>this[_0x2ba4b7(0x2c2)][_0x2ba4b7(0x11c)](_0x1d3aa0,_0xec268c),'send':(_0x8a24e1,_0x1d02d4)=>this[_0x2ba4b7(0x2bb)](_0x8a24e1,_0x1d02d4),'emit':(_0xc4a204,_0x2c53c3,_0x2789f3,_0x59daf8)=>this[_0x2ba4b7(0x206)][_0x2ba4b7(0x218)](_0xc4a204,_0x2c53c3,_0x2789f3,_0x59daf8),'cancel':(_0x28d641,_0x2200ac,_0x4c4c18,_0x1b04c1,_0x10fd78)=>this[_0x2ba4b7(0x1c4)][_0x2ba4b7(0x1e1)](_0x28d641,_0x2200ac,_0x4c4c18,_0x1b04c1,_0x10fd78),'createApproval':_0x3452ad=>this[_0x2ba4b7(0x150)][_0x2ba4b7(0x17f)](_0x3452ad),'publishApproval':_0x89ee2b=>this[_0x2ba4b7(0x206)][_0x2ba4b7(0x260)](_0x89ee2b),'emitItem':(_0x4f7e48,_0x66704)=>this[_0x2ba4b7(0x29e)](_0x4f7e48,_0x66704),'appendImages':(_0x4cdcd5,_0x39c510)=>this[_0x2ba4b7(0x245)][_0x2ba4b7(0x12a)](_0x4cdcd5,_0x39c510[_0x2ba4b7(0x280)](isRunnerImageAttachment)),'syncTitle':(_0x8d372c,_0x5dcebd,_0x432366)=>this[_0x2ba4b7(0x2a8)][_0x2ba4b7(0x1a9)](_0x8d372c,_0x5dcebd,_0x432366),'commandState':(_0xc6e46a,_0x39cd8e)=>this[_0x2ba4b7(0x1bc)][_0x2ba4b7(0x222)](_0xc6e46a,_0x39cd8e),'setCommandState':(_0x3f6f1d,_0x41b73f)=>this[_0x2ba4b7(0x1bc)][_0x2ba4b7(0x1ff)](_0x3f6f1d,_0x41b73f),'clearCommandState':(_0x3668a,_0x43d65c)=>this[_0x2ba4b7(0x1bc)][_0x2ba4b7(0x2ce)](_0x3668a,_0x43d65c),'commandStates':_0x27b0bb=>this[_0x2ba4b7(0x1bc)][_0x2ba4b7(0x163)](_0x27b0bb),'hasActiveSessionLease':_0x160fb3=>this[_0x2ba4b7(0x150)][_0x2ba4b7(0x2ab)](_0x160fb3),'fast':_0x4e00ad=>this[_0x2ba4b7(0x23a)](_0x2ba4b7(0x211),{'runner':_0x2ba4b7(0x1fc),'commandId':_0x2ba4b7(0x273),'input':_0x4e00ad})}),this[_0x2ba4b7(0x1e9)][_0x2ba4b7(0x10f)](_0x30c25f=>this[_0x2ba4b7(0x176)][_0x2ba4b7(0x1b9)](_0x30c25f)),this[_0x2ba4b7(0x131)]=new ClaudeCodeRunner(_0x1b087c[_0x2ba4b7(0x131)]),this[_0x2ba4b7(0x1b5)]=new OpenCodeRunner(_0x1b087c[_0x2ba4b7(0x1b5)]),this[_0x2ba4b7(0x1bf)]=new MarAgentRunner(),this[_0x2ba4b7(0x258)]=new MarAgentManagedRunController(this[_0x2ba4b7(0x1bf)],{'active':this[_0x2ba4b7(0x1fb)][_0x2ba4b7(0x132)],'adopt':_0x2d5f43=>this[_0x2ba4b7(0x150)][_0x2ba4b7(0x215)](_0x2d5f43),'promote':(_0x12524f,_0x319b4a)=>this[_0x2ba4b7(0x2c2)][_0x2ba4b7(0x11c)](_0x12524f,_0x319b4a),'syncTitle':(_0x147f97,_0x2e4f73)=>this[_0x2ba4b7(0x2a8)][_0x2ba4b7(0x1a9)](_0x147f97,_0x147f97,_0x2e4f73),'emit':(_0x2e3fb3,_0x2c510f,_0x302895,_0x47bd80)=>this[_0x2ba4b7(0x206)][_0x2ba4b7(0x218)](_0x2e3fb3,_0x2c510f,_0x302895,_0x47bd80),'emitItem':(_0x2a80cf,_0xa4245a)=>this[_0x2ba4b7(0x29e)](_0x2a80cf,_0xa4245a),'createApproval':_0x3b7c=>this[_0x2ba4b7(0x150)][_0x2ba4b7(0x17f)](_0x3b7c),'publishApproval':_0x3168ce=>this[_0x2ba4b7(0x206)][_0x2ba4b7(0x260)](_0x3168ce),'run':_0x20a338=>this[_0x2ba4b7(0x150)][_0x2ba4b7(0x106)](_0x20a338),'commandState':(_0x46b1dc,_0x19e744)=>this[_0x2ba4b7(0x1bc)][_0x2ba4b7(0x222)](_0x46b1dc,_0x19e744),'setCommandState':(_0x559e0e,_0x3c7105)=>this[_0x2ba4b7(0x1bc)][_0x2ba4b7(0x1ff)](_0x559e0e,_0x3c7105),'clearCommandState':(_0xe96445,_0x535bd6)=>this[_0x2ba4b7(0x1bc)][_0x2ba4b7(0x2ce)](_0xe96445,_0x535bd6),'commandStates':_0x4d348b=>this[_0x2ba4b7(0x1bc)][_0x2ba4b7(0x163)](_0x4d348b),'webSearch':(_0xf3f63c,_0x302c6b)=>this[_0x2ba4b7(0x179)](_0xf3f63c,_0x302c6b)}),this[_0x2ba4b7(0x1bf)][_0x2ba4b7(0x2af)](_0x22fad3=>this[_0x2ba4b7(0x258)][_0x2ba4b7(0x2b4)](_0x22fad3)),this[_0x2ba4b7(0x1b1)]=new OpenCodeManagedRunController(this[_0x2ba4b7(0x1b5)],{'intercepted':()=>this[_0x2ba4b7(0x253)]!==undefined,'active':this[_0x2ba4b7(0x1fb)][_0x2ba4b7(0x132)],'parseAttachments':parseRunnerImageAttachments,'persistAttachments':(_0x3df41c,_0x45dcef,_0x460185)=>this[_0x2ba4b7(0x245)][_0x2ba4b7(0x1a5)](_0x3df41c,_0x45dcef+_0x2ba4b7(0x193),_0x460185),'emit':(_0x34b256,_0x58483a,_0xe4a5d9,_0x5d60ca)=>this[_0x2ba4b7(0x206)][_0x2ba4b7(0x218)](_0x34b256,_0x58483a,_0xe4a5d9,_0x5d60ca),'emitItem':(_0x48d5fe,_0x483068)=>this[_0x2ba4b7(0x29e)](_0x48d5fe,_0x483068),'adopt':_0x96aea2=>this[_0x2ba4b7(0x150)][_0x2ba4b7(0x215)](_0x96aea2),'run':_0xb0936b=>{const _0x44e3ae=_0x2ba4b7,_0x3c49c8=this[_0x44e3ae(0x150)][_0x44e3ae(0x106)](_0xb0936b);if(_0x3c49c8===undefined)throw new Error(_0x44e3ae(0x216));return _0x3c49c8;},'hasActiveSessionLease':_0x2c4053=>this[_0x2ba4b7(0x150)][_0x2ba4b7(0x2ab)](_0x2c4053),'promote':(_0x2b2b7a,_0x5b8539)=>this[_0x2ba4b7(0x2c2)][_0x2ba4b7(0x11c)](_0x2b2b7a,_0x5b8539),'rememberNative':(_0x70ead4,_0x1d13fc)=>this[_0x2ba4b7(0x2a8)][_0x2ba4b7(0x1d5)](_0x70ead4,_0x1d13fc),'send':(_0x24d3e2,_0x988fe3)=>this[_0x2ba4b7(0x2bb)](_0x24d3e2,_0x988fe3),'createApproval':_0x606aba=>this[_0x2ba4b7(0x150)][_0x2ba4b7(0x17f)](_0x606aba),'expireApproval':_0x4a10d7=>{const _0x2f58b3=_0x2ba4b7;this[_0x2f58b3(0x150)][_0x2f58b3(0x220)](_0x4a10d7);},'publishApproval':_0x49dc03=>this[_0x2ba4b7(0x206)][_0x2ba4b7(0x260)](_0x49dc03),'commandState':(_0x3a99ca,_0x239e87)=>this[_0x2ba4b7(0x1bc)][_0x2ba4b7(0x222)](_0x3a99ca,_0x239e87),'setCommandState':(_0x3a81cd,_0x469449)=>this[_0x2ba4b7(0x1bc)][_0x2ba4b7(0x1ff)](_0x3a81cd,_0x469449),'clearCommandState':(_0x28e996,_0x9923e5)=>this[_0x2ba4b7(0x1bc)][_0x2ba4b7(0x2ce)](_0x28e996,_0x9923e5),'commandStates':_0x1bca1a=>this[_0x2ba4b7(0x1bc)][_0x2ba4b7(0x163)](_0x1bca1a)},this[_0x2ba4b7(0x2a7)]),this[_0x2ba4b7(0x18b)]=new ClaudeManagedRunController(this[_0x2ba4b7(0x131)],{'intercepted':()=>this[_0x2ba4b7(0x253)]!==undefined,'active':this[_0x2ba4b7(0x1fb)][_0x2ba4b7(0x132)],'parseAttachments':parseRunnerImageAttachments,'emit':(_0x430574,_0x5f470a,_0xcb62e6,_0x28f762)=>this[_0x2ba4b7(0x206)][_0x2ba4b7(0x218)](_0x430574,_0x5f470a,_0xcb62e6,_0x28f762),'adopt':_0x5a0389=>this[_0x2ba4b7(0x150)][_0x2ba4b7(0x215)](_0x5a0389),'run':_0x21dec3=>this[_0x2ba4b7(0x150)][_0x2ba4b7(0x106)](_0x21dec3),'hasActiveSessionLease':_0x48b170=>this[_0x2ba4b7(0x150)][_0x2ba4b7(0x2ab)](_0x48b170),'session':_0x35047e=>this[_0x2ba4b7(0x150)][_0x2ba4b7(0x292)](_0x35047e),'completeCancelled':_0x4e7ed2=>this[_0x2ba4b7(0x1c4)][_0x2ba4b7(0x19a)](_0x4e7ed2),'requestUserInput':(_0x3a2dc7,_0x1c5622,_0xd02a4a)=>this[_0x2ba4b7(0x1c4)][_0x2ba4b7(0x162)](_0x3a2dc7,_0x1c5622,_0xd02a4a),'requestApproval':(_0x261836,_0x12d843,_0x4d31e4)=>this[_0x2ba4b7(0x1c4)][_0x2ba4b7(0x111)](_0x261836,_0x12d843,_0x4d31e4),'rememberNative':(_0x45d49d,_0x2bec52)=>this[_0x2ba4b7(0x2a8)][_0x2ba4b7(0x1d5)](_0x45d49d,_0x2bec52),'promote':(_0x2ca0da,_0x5de996)=>this[_0x2ba4b7(0x2c2)][_0x2ba4b7(0x11c)](_0x2ca0da,_0x5de996),'send':(_0x41ffc4,_0x57f03d)=>this[_0x2ba4b7(0x2bb)](_0x41ffc4,_0x57f03d),'emitItem':(_0x1676d2,_0x156016)=>this[_0x2ba4b7(0x29e)](_0x1676d2,_0x156016),'syncTitle':(_0x32fafd,_0xeeb72d,_0x2d4824)=>this[_0x2ba4b7(0x2a8)][_0x2ba4b7(0x1a9)](_0x32fafd,_0xeeb72d,_0x2d4824),'setChannelToken':(_0x207891,_0x1c148e)=>this[_0x2ba4b7(0x150)][_0x2ba4b7(0x194)](_0x207891,_0x1c148e),'commandState':(_0x34eb92,_0x26f185)=>this[_0x2ba4b7(0x1bc)][_0x2ba4b7(0x222)](_0x34eb92,_0x26f185),'setCommandState':(_0x38ec76,_0x139192)=>this[_0x2ba4b7(0x1bc)][_0x2ba4b7(0x1ff)](_0x38ec76,_0x139192),'clearCommandState':(_0x5ca937,_0x137d06)=>this[_0x2ba4b7(0x1bc)][_0x2ba4b7(0x2ce)](_0x5ca937,_0x137d06),'commandStates':_0x12e510=>this[_0x2ba4b7(0x1bc)][_0x2ba4b7(0x163)](_0x12e510)}),this[_0x2ba4b7(0x2c5)]=new RunnerRegistry([this[_0x2ba4b7(0x1b5)],this[_0x2ba4b7(0x1bf)],this[_0x2ba4b7(0x1e9)],this[_0x2ba4b7(0x131)],...this[_0x2ba4b7(0x253)]===undefined?[]:[this[_0x2ba4b7(0x253)]]]),this[_0x2ba4b7(0x2a8)]=new ManagedRunnerSessionService(this[_0x2ba4b7(0x150)],this[_0x2ba4b7(0x2c5)],_0x26e80e=>this[_0x2ba4b7(0x12d)]({'session':this[_0x2ba4b7(0x24f)][_0x2ba4b7(0x151)](_0x26e80e)})),this[_0x2ba4b7(0x1c4)]=new RunnerInteractionService({'runtime':this[_0x2ba4b7(0x150)],'state':this[_0x2ba4b7(0x1fb)],'codex':()=>this[_0x2ba4b7(0x1e9)],'claude':()=>this[_0x2ba4b7(0x131)],'runners':this[_0x2ba4b7(0x2c5)],'emitRun':(_0x27678e,_0x19564c,_0x33ce54,_0x5519b5)=>this[_0x2ba4b7(0x206)][_0x2ba4b7(0x218)](_0x27678e,_0x19564c,_0x33ce54,_0x5519b5),'emitItem':(_0x153f03,_0x57e24e)=>this[_0x2ba4b7(0x29e)](_0x153f03,_0x57e24e),'approvalTimeoutMs':this[_0x2ba4b7(0x2a7)],'publishApproval':_0x18d383=>this[_0x2ba4b7(0x206)][_0x2ba4b7(0x260)](_0x18d383)}),this[_0x2ba4b7(0x15c)]=new RunnerChannelMessageService({'interactions':this[_0x2ba4b7(0x1c4)],'send':(_0x22b7c9,_0x25df12,_0xc89c77)=>this[_0x2ba4b7(0x2bb)](_0x22b7c9,_0x25df12,_0xc89c77)}),this[_0x2ba4b7(0x24f)]=new SessionPresentationService({'database':()=>this[_0x2ba4b7(0x289)],'runtime':this[_0x2ba4b7(0x150)],'commands':this[_0x2ba4b7(0x1bc)],'runners':this[_0x2ba4b7(0x2c5)],'capabilities':()=>this[_0x2ba4b7(0x1c1)],'hasManagedActiveRun':_0x213104=>hasManagedActiveRun(this[_0x2ba4b7(0x150)],_0x213104),'externalActivity':_0x4a227e=>this[_0x2ba4b7(0x2cb)][_0x2ba4b7(0x1af)][_0x2ba4b7(0x222)](_0x4a227e),'projectionForNative':_0x566eca=>this[_0x2ba4b7(0x118)][_0x2ba4b7(0x2a9)](_0x566eca)}),this[_0x2ba4b7(0x118)]=new NativeSessionProjectionService({'database':()=>this[_0x2ba4b7(0x289)],'nodeId':()=>this[_0x2ba4b7(0x1df)]?.[_0x2ba4b7(0x1cd)]??_0x2ba4b7(0x1b8),'runtime':this[_0x2ba4b7(0x150)],'runners':this[_0x2ba4b7(0x2c5)],'capabilities':()=>this[_0x2ba4b7(0x1c1)],'state':this[_0x2ba4b7(0x2cb)],'commands':this[_0x2ba4b7(0x1bc)],'present':_0x604b55=>this[_0x2ba4b7(0x24f)][_0x2ba4b7(0x151)](_0x604b55)}),this[_0x2ba4b7(0x149)]=new ConversationHistoryService({'runtime':this[_0x2ba4b7(0x150)],'runners':this[_0x2ba4b7(0x2c5)],'capabilities':()=>this[_0x2ba4b7(0x1c1)],'attachments':this[_0x2ba4b7(0x245)],'snapshotSequence':()=>this[_0x2ba4b7(0x252)][_0x2ba4b7(0x277)](),'hasManagedActiveRun':_0x4e85b6=>hasManagedActiveRun(this[_0x2ba4b7(0x150)],_0x4e85b6),'setExternalActivity':(_0x474f58,_0x5849ee)=>this[_0x2ba4b7(0x2cb)][_0x2ba4b7(0x1af)][_0x2ba4b7(0x1ff)](_0x474f58,_0x5849ee)}),this[_0x2ba4b7(0x2d0)]=new ConversationSegmentService((_0x3bac7b,_0x4b00f5)=>this[_0x2ba4b7(0x149)][_0x2ba4b7(0x142)](_0x3bac7b,_0x4b00f5)),this[_0x2ba4b7(0x1dd)]=new SessionContextService({'runners':this[_0x2ba4b7(0x2c5)],'session':_0x1659fc=>this[_0x2ba4b7(0x150)][_0x2ba4b7(0x292)](_0x1659fc),'stopped':()=>this[_0x2ba4b7(0x14d)],'publish':_0x2fa084=>this[_0x2ba4b7(0x12d)](_0x2fa084)}),this[_0x2ba4b7(0x2bf)]=new RunWorkbenchService({'runtime':this[_0x2ba4b7(0x150)],'readImage':async(_0xb7dfca,_0x4532a6)=>this[_0x2ba4b7(0x245)][_0x2ba4b7(0x142)](_0xb7dfca,_0x4532a6)??await this[_0x2ba4b7(0x245)][_0x2ba4b7(0x2b8)](_0xb7dfca,_0x4532a6),'respondUserInput':(_0x29ecb5,_0x330a10,_0x2e98b3)=>this[_0x2ba4b7(0x1c4)][_0x2ba4b7(0x217)](_0x29ecb5,_0x330a10,_0x2e98b3),'pauseQueue':_0xc455ba=>this[_0x2ba4b7(0x1d9)][_0x2ba4b7(0x26b)](_0xc455ba),'emitRun':(_0xf50f79,_0x16e353,_0x37e34f,_0x3ed66e)=>this[_0x2ba4b7(0x206)][_0x2ba4b7(0x218)](_0xf50f79,_0x16e353,_0x37e34f,_0x3ed66e),'control':(_0x4acc0a,_0x3cd05b)=>this[_0x2ba4b7(0x2c8)][_0x2ba4b7(0x14f)](JSON[_0x2ba4b7(0x28e)](createEnvelope(_0x4acc0a,_0x3cd05b))),'markInterrupted':_0x18268f=>this[_0x2ba4b7(0x1fb)][_0x2ba4b7(0x2c3)][_0x2ba4b7(0x140)](_0x18268f)}),this[_0x2ba4b7(0x1ca)]=new SessionQueryService({'runtime':this[_0x2ba4b7(0x150)],'runners':this[_0x2ba4b7(0x2c5)],'resolve':_0x5bc71d=>this[_0x2ba4b7(0x118)][_0x2ba4b7(0x25a)](_0x5bc71d),'present':_0x39a6ea=>this[_0x2ba4b7(0x24f)][_0x2ba4b7(0x151)](_0x39a6ea),'history':(_0x52f791,_0x292386)=>this[_0x2ba4b7(0x149)][_0x2ba4b7(0x142)](_0x52f791,_0x292386),'segments':(_0x55a040,_0x49f2aa)=>this[_0x2ba4b7(0x2d0)][_0x2ba4b7(0x142)](_0x55a040,_0x49f2aa),'context':this[_0x2ba4b7(0x1dd)],'discover':(_0x33111a,_0x4681a6)=>this[_0x2ba4b7(0x118)][_0x2ba4b7(0x1e0)](_0x33111a,_0x4681a6),'workspaceIdForCwd':_0xe85f88=>this[_0x2ba4b7(0x289)]?.[_0x2ba4b7(0x20f)]()[_0x2ba4b7(0x10a)](_0x4e122d=>_0x4e122d[_0x2ba4b7(0x2b5)]===_0xe85f88)?.['id']}),this[_0x2ba4b7(0x2bd)]=new ContinuousRunCoordinator({'runtime':this[_0x2ba4b7(0x150)],'emitQueue':(_0x4f8772,_0x40d6b7)=>this[_0x2ba4b7(0x206)][_0x2ba4b7(0x17d)](_0x4f8772,_0x40d6b7),'clearImages':_0x627fa0=>this[_0x2ba4b7(0x245)][_0x2ba4b7(0x2ce)](_0x627fa0),'cleanupAttachments':_0x4a2865=>this[_0x2ba4b7(0x245)][_0x2ba4b7(0x1a4)](_0x4a2865),'migrateAssets':(_0x7d0047,_0x5b542b)=>this[_0x2ba4b7(0x245)][_0x2ba4b7(0x12f)](_0x7d0047,_0x5b542b),'emitRun':(_0x4d5844,_0x209892,_0x355c4c,_0x555ce6)=>this[_0x2ba4b7(0x206)][_0x2ba4b7(0x218)](_0x4d5844,_0x209892,_0x355c4c,_0x555ce6),'emitConversation':_0x106e8b=>this[_0x2ba4b7(0x228)](_0x106e8b),'control':(_0xa735f1,_0x362dcb)=>this[_0x2ba4b7(0x2c8)][_0x2ba4b7(0x14f)](JSON[_0x2ba4b7(0x28e)](createEnvelope(_0xa735f1,_0x362dcb))),'stopped':()=>this[_0x2ba4b7(0x14d)],'markInterrupted':_0x26f26c=>this[_0x2ba4b7(0x1fb)][_0x2ba4b7(0x2c3)][_0x2ba4b7(0x140)](_0x26f26c),'mcps':_0xc0c184=>this[_0x2ba4b7(0x289)]?.[_0x2ba4b7(0x212)](_0xc0c184)??[],'afterExecutionStarted':async _0x3c5806=>{const _0x5a60cd=_0x2ba4b7;if(_0x3c5806[_0x5a60cd(0x23c)]===undefined)return;const _0x1d7212=this[_0x5a60cd(0x14e)][_0x5a60cd(0x222)](_0x3c5806[_0x5a60cd(0x29b)]);if(_0x1d7212?.[_0x5a60cd(0x1b2)]!==_0x5a60cd(0x132)||_0x1d7212['id']!==_0x3c5806[_0x5a60cd(0x23c)]['id']||_0x1d7212[_0x5a60cd(0x225)]!==_0x3c5806[_0x5a60cd(0x23c)][_0x5a60cd(0x225)])return;const _0x4e148f=this[_0x5a60cd(0x14e)][_0x5a60cd(0x1e8)](_0x3c5806[_0x5a60cd(0x29b)]),_0x14632d=this[_0x5a60cd(0x150)][_0x5a60cd(0x292)](_0x3c5806[_0x5a60cd(0x29b)]);if(_0x4e148f!==undefined&&_0x14632d!==undefined)this[_0x5a60cd(0x293)](_0x14632d,_0x4e148f);await this[_0x5a60cd(0x229)]({'sessionId':_0x3c5806[_0x5a60cd(0x29b)],'mission':{'id':_0x1d7212['id'],'revision':_0x1d7212[_0x5a60cd(0x225)]},'secretEnvironment':_0x3c5806[_0x5a60cd(0x169)],..._0x3c5806[_0x5a60cd(0x156)]===undefined?{}:{'personalInstructions':_0x3c5806[_0x5a60cd(0x156)]}});},'missionMcp':async _0x38fd3f=>{const _0x2a0616=_0x2ba4b7;if(_0x38fd3f[_0x2a0616(0x23c)]===undefined)throw new Error(_0x2a0616(0x1b3));const _0x41bf88=await this[_0x2a0616(0x26f)][_0x2a0616(0x28c)]({'executionId':_0x38fd3f[_0x2a0616(0x2b1)],'sessionId':_0x38fd3f[_0x2a0616(0x29b)],'missionId':_0x38fd3f[_0x2a0616(0x23c)]['id'],'revision':_0x38fd3f[_0x2a0616(0x23c)][_0x2a0616(0x225)]});return{'installation':{'targetKind':_0x2a0616(0x125),'targetId':_0x38fd3f[_0x2a0616(0x19c)],'catalogEntryId':_0x2a0616(0x128),'serverName':_0x2a0616(0x16a),'displayName':_0x2a0616(0x10d),'version':_0x2a0616(0x270),'enabled':!![],'runtime':{'transport':_0x2a0616(0x105),'url':_0x2a0616(0x23b),'headers':{}},'configuration':_0x41bf88[_0x2a0616(0x28c)],'installedAt':Date[_0x2a0616(0x119)](),..._0x41bf88[_0x2a0616(0x28c)]},'secrets':_0x41bf88[_0x2a0616(0x12b)]};}}),this[_0x2ba4b7(0x1d9)]=new WorkspaceQueueWorkbenchService({'runtime':this[_0x2ba4b7(0x150)],'coordinator':this[_0x2ba4b7(0x2bd)],'emit':(_0x29420b,_0x409bf5)=>this[_0x2ba4b7(0x206)][_0x2ba4b7(0x17d)](_0x29420b,_0x409bf5),'prepareInput':(_0x52a5b7,_0x5a941b,_0xc494f4)=>this[_0x2ba4b7(0x2c5)][_0x2ba4b7(0x117)](_0x52a5b7)[_0x2ba4b7(0x1dc)](_0x5a941b,_0xc494f4)}),this[_0x2ba4b7(0x2c2)]=new SessionIdentityService({'runtime':this[_0x2ba4b7(0x150)],'persist':(_0x39d832,_0x5a40bf)=>{const _0x18bf7b=_0x2ba4b7;if(_0x39d832[_0x18bf7b(0x1f0)]===null||_0x39d832[_0x18bf7b(0x1f4)]===null||_0x39d832[_0x18bf7b(0x204)]===null)return;this[_0x18bf7b(0x289)]?.[_0x18bf7b(0x2c9)]({'runner':_0x39d832[_0x18bf7b(0x22f)],'externalSessionId':_0x5a40bf,'workspaceId':_0x39d832[_0x18bf7b(0x19c)],'model':_0x39d832[_0x18bf7b(0x1f0)],'effort':_0x39d832[_0x18bf7b(0x1f4)],'access':_0x39d832[_0x18bf7b(0x204)]});},'migrateCommands':(_0x426fe2,_0x403403)=>this[_0x2ba4b7(0x1bc)][_0x2ba4b7(0x110)](_0x426fe2,_0x403403),'migrateMission':(_0x43f547,_0x377702)=>{const _0x30f3c2=_0x2ba4b7;this[_0x30f3c2(0x14e)][_0x30f3c2(0x168)](_0x43f547,_0x377702),this[_0x30f3c2(0x26f)][_0x30f3c2(0x168)](_0x43f547,_0x377702);const _0x5e5fda=this[_0x30f3c2(0x2be)][_0x30f3c2(0x222)](_0x43f547);_0x5e5fda!==undefined&&(this[_0x30f3c2(0x2be)][_0x30f3c2(0x27c)](_0x43f547),_0x5e5fda[_0x30f3c2(0x29b)]=_0x377702,this[_0x30f3c2(0x2be)][_0x30f3c2(0x1ff)](_0x377702,_0x5e5fda));const _0x14f2d3=this[_0x30f3c2(0x227)][_0x30f3c2(0x222)](_0x43f547);_0x14f2d3!==undefined&&(this[_0x30f3c2(0x227)][_0x30f3c2(0x27c)](_0x43f547),this[_0x30f3c2(0x227)][_0x30f3c2(0x1ff)](_0x377702,_0x14f2d3));},'migrateQueue':(_0x403771,_0x499cb1)=>this[_0x2ba4b7(0x2bd)][_0x2ba4b7(0x168)](_0x403771,_0x499cb1),'migrateRunnerState':(_0x299e31,_0x4e2fcd)=>this[_0x2ba4b7(0x206)][_0x2ba4b7(0x214)](_0x299e31,_0x4e2fcd),'emitSession':_0x2dbe43=>this[_0x2ba4b7(0x12d)]({'session':_0x2dbe43}),'emitRun':_0x41d6c9=>this[_0x2ba4b7(0x13e)](_0x2ba4b7(0x1d3),{'run':_0x41d6c9}),'emitQueue':_0x5254ea=>this[_0x2ba4b7(0x2bd)][_0x2ba4b7(0x248)](_0x5254ea),'emitTurn':_0x539dd4=>this[_0x2ba4b7(0x228)](_0x539dd4)}),this[_0x2ba4b7(0x1ae)]=new SessionLifecycleService({'database':()=>{const _0x2a2250=_0x2ba4b7;if(this[_0x2a2250(0x289)]===undefined)throw new Error(_0x2a2250(0x278));return this[_0x2a2250(0x289)];},'runtime':this[_0x2ba4b7(0x150)],'runners':this[_0x2ba4b7(0x2c5)],'projection':this[_0x2ba4b7(0x118)],'identity':this[_0x2ba4b7(0x2c2)],'present':_0x2d26d4=>this[_0x2ba4b7(0x24f)][_0x2ba4b7(0x151)](_0x2d26d4),'emitSession':_0x13ce7f=>this[_0x2ba4b7(0x12d)]({'session':this[_0x2ba4b7(0x24f)][_0x2ba4b7(0x151)](_0x13ce7f)}),'execute':(_0x14a16d,_0x11679a)=>this[_0x2ba4b7(0x23a)](_0x14a16d,_0x11679a),'interceptedSessionId':_0x4b9d10=>this[_0x2ba4b7(0x253)]===undefined?undefined:_0x2ba4b7(0x143)+_0x4b9d10}),this[_0x2ba4b7(0x24b)]=new ExternalSessionResumeService({'runtime':this[_0x2ba4b7(0x150)],'runners':this[_0x2ba4b7(0x2c5)],'state':this[_0x2ba4b7(0x2cb)],'available':_0x11449f=>this[_0x2ba4b7(0x2c5)][_0x2ba4b7(0x117)](_0x11449f)[_0x2ba4b7(0x1a8)](this[_0x2ba4b7(0x1c1)]),'projectionFor':_0x4ed511=>this[_0x2ba4b7(0x118)][_0x2ba4b7(0x2a9)](_0x4ed511),'managedAliasFor':_0x4e8f18=>this[_0x2ba4b7(0x118)][_0x2ba4b7(0x157)](_0x4e8f18),'ensureConfiguration':_0x3e907b=>this[_0x2ba4b7(0x118)][_0x2ba4b7(0x240)](_0x3e907b),'configuration':_0x188893=>this[_0x2ba4b7(0x118)][_0x2ba4b7(0x25d)](_0x188893),'workspacePath':_0x7aee7d=>this[_0x2ba4b7(0x289)]?.[_0x2ba4b7(0x1d7)](_0x7aee7d)?.[_0x2ba4b7(0x2b5)],'rememberNative':(_0x12a352,_0x1d02fa)=>this[_0x2ba4b7(0x2a8)][_0x2ba4b7(0x1d5)](_0x12a352,_0x1d02fa),'stage':_0xf88676=>{const _0x669959=_0x2ba4b7,_0x29831f=this[_0x669959(0x118)][_0x669959(0x25d)](_0xf88676);return this[_0x669959(0x150)][_0x669959(0x267)]({'workspaceId':_0xf88676[_0x669959(0x19c)],'runner':_0xf88676[_0x669959(0x22f)],'externalSessionId':_0xf88676[_0x669959(0x148)]??_0xf88676['id'],'nativeControl':_0x669959(0x28a),'cwd':_0xf88676[_0x669959(0x1a1)],'model':_0x29831f[_0x669959(0x1f0)],'effort':_0x29831f[_0x669959(0x1f4)],'access':_0x29831f[_0x669959(0x204)],..._0xf88676[_0x669959(0x265)]===null?{}:{'title':_0xf88676[_0x669959(0x265)]},..._0xf88676[_0x669959(0x202)]===null?{}:{'customTitle':_0xf88676[_0x669959(0x202)]}});},'resolve':_0x497591=>this[_0x2ba4b7(0x118)][_0x2ba4b7(0x25a)](_0x497591)}),this[_0x2ba4b7(0x11f)]=new SessionCommandService({'runtime':this[_0x2ba4b7(0x150)],'runners':this[_0x2ba4b7(0x2c5)],'projection':this[_0x2ba4b7(0x118)],'resume':this[_0x2ba4b7(0x24b)],'profiles':()=>this[_0x2ba4b7(0x15a)][_0x2ba4b7(0x279)](),'present':_0xe5ee9c=>this[_0x2ba4b7(0x24f)][_0x2ba4b7(0x151)](_0xe5ee9c),'resumeQueueAfterCommandRun':_0x463cc2=>this[_0x2ba4b7(0x1d9)][_0x2ba4b7(0x1a6)](_0x463cc2),'beginMission':_0x4cc475=>{const _0x45b842=_0x2ba4b7,_0x159df5=this[_0x45b842(0x1bc)][_0x45b842(0x222)](_0x4cc475['id'],_0x45b842(0x23c));if(_0x159df5?.[_0x45b842(0x132)]===!![])return{'session':this[_0x45b842(0x24f)][_0x45b842(0x151)](_0x4cc475),'missionAlreadyActive':!![]};_0x159df5!==undefined&&(this[_0x45b842(0x14e)][_0x45b842(0x2ce)](_0x4cc475['id']),this[_0x45b842(0x1bc)][_0x45b842(0x2ce)](_0x4cc475['id'],_0x45b842(0x23c)));const _0x4f98ea=this[_0x45b842(0x239)](_0x4cc475);return this[_0x45b842(0x2bd)][_0x45b842(0x2d7)](_0x4cc475['id']),this[_0x45b842(0x1bc)][_0x45b842(0x1ff)](_0x4cc475['id'],this[_0x45b842(0x1d8)]()),this[_0x45b842(0x13e)](_0x45b842(0x147),{'session':this[_0x45b842(0x24f)][_0x45b842(0x151)](_0x4f98ea[_0x45b842(0x147)])}),{'session':this[_0x45b842(0x24f)][_0x45b842(0x151)](_0x4f98ea[_0x45b842(0x147)]),'missionAccessChanged':_0x4f98ea[_0x45b842(0x1f9)]};},'mission':async({session:_0x487e12,objective:_0x398259,secretEnvironment:_0x3763be,personalInstructions:_0x4ed19f})=>{const _0x1fd234=_0x2ba4b7;this[_0x1fd234(0x255)](_0x487e12['id']);const _0x20c01f=this[_0x1fd234(0x239)](_0x487e12),_0x27e8a7=_0x20c01f[_0x1fd234(0x147)],_0x461e79=this[_0x1fd234(0x14e)][_0x1fd234(0x222)](_0x487e12['id'])?.[_0x1fd234(0x1b2)]===_0x1fd234(0x132);this[_0x1fd234(0x2bd)][_0x1fd234(0x2b7)](_0x487e12['id']);const _0x9d9219=this[_0x1fd234(0x14e)][_0x1fd234(0x121)](_0x487e12['id'],_0x398259);this[_0x1fd234(0x293)](_0x27e8a7,_0x9d9219);const _0x1bd573=await this[_0x1fd234(0x232)][_0x1fd234(0x233)]({'sessionId':_0x487e12['id'],'kind':_0x1fd234(0x121),'content':this[_0x1fd234(0x14e)][_0x1fd234(0x15f)](_0x487e12['id'],_0x1fd234(0x121)),'deliveryIntent':_0x461e79?_0x1fd234(0x221):_0x1fd234(0x2a4),'mission':{'id':_0x9d9219['id'],'revision':_0x9d9219[_0x1fd234(0x225)]},'secretEnvironment':_0x3763be,..._0x4ed19f===undefined?{}:{'personalInstructions':_0x4ed19f}});return{...isPlainRecord(_0x1bd573)?_0x1bd573:{'result':_0x1bd573},'missionAccessChanged':_0x20c01f[_0x1fd234(0x1f9)]};},'clearMission':_0x152576=>{const _0x2f35d9=_0x2ba4b7;return this[_0x2f35d9(0x255)](_0x152576['id']),this[_0x2f35d9(0x14e)][_0x2f35d9(0x2ce)](_0x152576['id']),this[_0x2f35d9(0x2bd)][_0x2f35d9(0x2b7)](_0x152576['id']),this[_0x2f35d9(0x1e4)](_0x152576['id'],_0x2f35d9(0x208)),this[_0x2f35d9(0x1bc)][_0x2f35d9(0x2ce)](_0x152576['id'],_0x2f35d9(0x23c)),this[_0x2f35d9(0x13e)](_0x2f35d9(0x147),{'session':this[_0x2f35d9(0x24f)][_0x2f35d9(0x151)](_0x152576)}),{'session':this[_0x2f35d9(0x24f)][_0x2f35d9(0x151)](_0x152576),'cleared':!![]};}}),this[_0x2ba4b7(0x232)]=new SessionMessageService({'runtime':this[_0x2ba4b7(0x150)],'uploads':this[_0x2ba4b7(0x19e)],'attachments':this[_0x2ba4b7(0x245)],'commands':this[_0x2ba4b7(0x1bc)],'coordinator':this[_0x2ba4b7(0x2bd)],'runners':this[_0x2ba4b7(0x2c5)],'resolve':_0x27aa44=>this[_0x2ba4b7(0x24b)][_0x2ba4b7(0x1db)](_0x27aa44),'present':_0x276eec=>this[_0x2ba4b7(0x24f)][_0x2ba4b7(0x151)](_0x276eec),'emitSession':_0x55bbef=>this[_0x2ba4b7(0x12d)]({'session':this[_0x2ba4b7(0x24f)][_0x2ba4b7(0x151)](_0x55bbef)}),'channelToken':_0x566d97=>{const _0x3e4bc0=_0x2ba4b7,_0x6647f0=this[_0x3e4bc0(0x150)][_0x3e4bc0(0x292)](_0x566d97);return _0x6647f0?.[_0x3e4bc0(0x135)]??undefined;},'missionMessage':(_0x2603eb,_0x2741ac)=>{const _0x3565fd=_0x2ba4b7,_0xe5ef9=this[_0x3565fd(0x1bc)][_0x3565fd(0x222)](_0x2603eb['id'],_0x3565fd(0x23c));if(_0xe5ef9?.[_0x3565fd(0x132)]!==!![])return undefined;const _0x1d448d=this[_0x3565fd(0x14e)][_0x3565fd(0x222)](_0x2603eb['id']);if(_0x1d448d?.[_0x3565fd(0x1b2)]===_0x3565fd(0x132))return{'runnerContent':_0x2741ac,'mission':{'id':_0x1d448d['id'],'revision':_0x1d448d[_0x3565fd(0x225)]},'activated':![]};const _0x4066e2=this[_0x3565fd(0x14e)][_0x3565fd(0x121)](_0x2603eb['id'],_0x2741ac);return this[_0x3565fd(0x293)](_0x2603eb,_0x4066e2),{'runnerContent':this[_0x3565fd(0x14e)][_0x3565fd(0x15f)](_0x2603eb['id'],_0x3565fd(0x121)),'mission':{'id':_0x4066e2['id'],'revision':_0x4066e2[_0x3565fd(0x225)]},'activated':!![]};},'prepareMissionInsertion':(_0x47540c,_0x5f32e6)=>this[_0x2ba4b7(0x2bd)][_0x2ba4b7(0x2d7)](_0x47540c,_0x5f32e6),'missionPreparationFailed':(_0x225251,_0x159aee,_0x378f1a)=>{const _0x19d250=_0x2ba4b7;if(!_0x378f1a)return;const _0x55de50=this[_0x19d250(0x14e)][_0x19d250(0x222)](_0x225251['id']);if(_0x55de50?.['id']!==_0x159aee['id']||_0x55de50[_0x19d250(0x225)]!==_0x159aee[_0x19d250(0x225)])return;this[_0x19d250(0x14e)][_0x19d250(0x2ce)](_0x225251['id']),this[_0x19d250(0x1e4)](_0x225251['id'],_0x19d250(0x141)),this[_0x19d250(0x1bc)][_0x19d250(0x1ff)](_0x225251['id'],this[_0x19d250(0x1d8)]()),this[_0x19d250(0x13e)](_0x19d250(0x147),{'session':this[_0x19d250(0x24f)][_0x19d250(0x151)](_0x225251)});}}),this[_0x2ba4b7(0x11b)]=new SessionCatalogService({'database':()=>{const _0x5c9191=_0x2ba4b7;if(this[_0x5c9191(0x289)]===undefined)throw new Error(_0x5c9191(0x278));return this[_0x5c9191(0x289)];},'nodeId':()=>this[_0x2ba4b7(0x1df)]?.[_0x2ba4b7(0x1cd)]??_0x2ba4b7(0x1b8),'runtime':this[_0x2ba4b7(0x150)],'runners':this[_0x2ba4b7(0x2c5)],'projection':this[_0x2ba4b7(0x118)],'resume':this[_0x2ba4b7(0x24b)],'cachedNative':()=>[...this[_0x2ba4b7(0x2cb)][_0x2ba4b7(0x20a)][_0x2ba4b7(0x1a7)]()],'cachedWorkspace':_0x136b30=>this[_0x2ba4b7(0x16f)][_0x2ba4b7(0x116)](_0x136b30),'present':_0x411c96=>this[_0x2ba4b7(0x24f)][_0x2ba4b7(0x151)](_0x411c96),'projectionForNative':_0x468586=>this[_0x2ba4b7(0x118)][_0x2ba4b7(0x2a9)](_0x468586),'nativeIds':_0x14afe2=>this[_0x2ba4b7(0x118)][_0x2ba4b7(0x209)](_0x14afe2),'forget':(_0x579657,_0x1664dc)=>this[_0x2ba4b7(0x118)][_0x2ba4b7(0x285)](_0x579657,_0x1664dc),'refreshActivity':_0x704b84=>this[_0x2ba4b7(0x149)][_0x2ba4b7(0x25c)](_0x704b84),'externalActivity':_0xb34956=>this[_0x2ba4b7(0x2cb)][_0x2ba4b7(0x1af)][_0x2ba4b7(0x222)](_0xb34956),'history':(_0x58614e,_0xaa47cb)=>this[_0x2ba4b7(0x149)][_0x2ba4b7(0x142)](_0x58614e,_0xaa47cb),'emitSession':_0x14e81d=>this[_0x2ba4b7(0x12d)]({'session':this[_0x2ba4b7(0x24f)][_0x2ba4b7(0x151)](_0x14e81d)})}),this[_0x2ba4b7(0x1e9)][_0x2ba4b7(0x184)]({'start':_0x1b0bda=>this[_0x2ba4b7(0x176)][_0x2ba4b7(0x121)](_0x1b0bda),'cancel':(_0x4a8ccf,_0x3526f7)=>{const _0x17c3e8=_0x2ba4b7,_0x13fd58=this[_0x17c3e8(0x1e9)][_0x17c3e8(0x173)][_0x17c3e8(0x2d6)][_0x17c3e8(0x222)](_0x4a8ccf);if(_0x13fd58?.[_0x17c3e8(0x1c0)]===undefined)return![];return void this[_0x17c3e8(0x1c4)][_0x17c3e8(0x1e1)](_0x4a8ccf,_0x13fd58[_0x17c3e8(0x296)],_0x13fd58[_0x17c3e8(0x1c0)],_0x13fd58[_0x17c3e8(0x1a1)],_0x3526f7===_0x17c3e8(0x2a0)?_0x17c3e8(0x256):_0x17c3e8(0x231)),!![];},'decideApproval':_0x46db9a=>this[_0x2ba4b7(0x1c4)][_0x2ba4b7(0x183)](_0x46db9a[_0x2ba4b7(0x251)],_0x46db9a[_0x2ba4b7(0x198)])}),this[_0x2ba4b7(0x131)][_0x2ba4b7(0x184)]({'start':_0x568e38=>this[_0x2ba4b7(0x18b)][_0x2ba4b7(0x121)](_0x568e38),'cancel':(_0x1a235e,_0x194da2)=>this[_0x2ba4b7(0x1c4)][_0x2ba4b7(0x180)](_0x1a235e,_0x194da2),'decideApproval':_0x2b1621=>this[_0x2ba4b7(0x1c4)][_0x2ba4b7(0x1ba)](_0x2b1621[_0x2ba4b7(0x251)],_0x2b1621[_0x2ba4b7(0x198)])}),this[_0x2ba4b7(0x1b5)][_0x2ba4b7(0x184)]({'start':_0x2f0470=>this[_0x2ba4b7(0x1b1)][_0x2ba4b7(0x121)](_0x2f0470),'cancel':(_0x352593,_0x4dee6f)=>this[_0x2ba4b7(0x1b1)][_0x2ba4b7(0x230)](_0x352593,_0x4dee6f),'decideApproval':_0x26e9a0=>this[_0x2ba4b7(0x1b1)][_0x2ba4b7(0x14b)](_0x26e9a0),'respondUserInput':(_0x1ba9d4,_0x396fea,_0x2db3cf)=>this[_0x2ba4b7(0x1b1)][_0x2ba4b7(0x217)](_0x1ba9d4,_0x396fea,_0x2db3cf)}),this[_0x2ba4b7(0x1bf)][_0x2ba4b7(0x184)]({'start':_0xbda8fe=>this[_0x2ba4b7(0x258)][_0x2ba4b7(0x121)](_0xbda8fe),'cancel':(_0x2dae8a,_0x2e6014)=>this[_0x2ba4b7(0x258)][_0x2ba4b7(0x230)](_0x2dae8a,_0x2e6014),'decideApproval':_0x5c808e=>this[_0x2ba4b7(0x258)][_0x2ba4b7(0x14b)](_0x5c808e),'respondUserInput':(_0x14daee,_0x38bafb,_0x3346ee)=>this[_0x2ba4b7(0x258)][_0x2ba4b7(0x217)](_0x14daee,_0x38bafb,_0x3346ee)}),this[_0x2ba4b7(0x1e9)][_0x2ba4b7(0x2d5)]({'execute':(_0x403110,_0x1bd7b9,_0x3922b5,_0x56e32d)=>this[_0x2ba4b7(0x176)][_0x2ba4b7(0x16b)](_0x403110,_0x1bd7b9,_0x3922b5,_0x56e32d)}),this[_0x2ba4b7(0x131)][_0x2ba4b7(0x2d5)]({'execute':(_0x23e39e,_0xb728aa,_0x67b505,_0x2727d)=>this[_0x2ba4b7(0x18b)][_0x2ba4b7(0x16b)](_0x23e39e,_0xb728aa,_0x67b505,_0x2727d)}),this[_0x2ba4b7(0x1b5)][_0x2ba4b7(0x2d5)]({'execute':(_0x3eaac2,_0xe4c1f2,_0x360cca,_0x319e36)=>this[_0x2ba4b7(0x1b1)][_0x2ba4b7(0x16b)](_0x3eaac2,_0xe4c1f2,_0x319e36)}),this[_0x2ba4b7(0x1bf)][_0x2ba4b7(0x2d5)]({'execute':(_0x61649c,_0x1fb461,_0x517ac0,_0x5ec6fe)=>this[_0x2ba4b7(0x258)][_0x2ba4b7(0x16b)](_0x61649c,_0x1fb461,_0x517ac0,_0x5ec6fe)});const _0x14d9cb=this[_0x2ba4b7(0x253)]===undefined||this[_0x2ba4b7(0x2ac)]===undefined?undefined:new FakeManagedRunService({'runner':this[_0x2ba4b7(0x253)],'script':this[_0x2ba4b7(0x2ac)],'runners':this[_0x2ba4b7(0x2c5)],'runtime':this[_0x2ba4b7(0x150)],'state':this[_0x2ba4b7(0x1fb)],'emitRun':(_0x270205,_0x1d4b20,_0x17f9fc,_0x18f38b)=>this[_0x2ba4b7(0x206)][_0x2ba4b7(0x218)](_0x270205,_0x1d4b20,_0x17f9fc,_0x18f38b),'publishApproval':_0x4fdb09=>this[_0x2ba4b7(0x206)][_0x2ba4b7(0x260)](_0x4fdb09),'disconnect':()=>this[_0x2ba4b7(0x1b6)][_0x2ba4b7(0x145)](-0x1*0x20e3+-0x50*0x47+-0xc7*-0x5b,_0x2ba4b7(0x2d8))});this[_0x2ba4b7(0x253)]?.[_0x2ba4b7(0x184)]({'start':_0x24a405=>_0x14d9cb?.[_0x2ba4b7(0x121)](_0x24a405),'cancel':(_0x12d32c,_0x362302)=>_0x362302===_0x2ba4b7(0x2a0)?this[_0x2ba4b7(0x253)]?.[_0x2ba4b7(0x230)](_0x12d32c)??![]:this[_0x2ba4b7(0x253)]?.[_0x2ba4b7(0x1a0)](_0x12d32c)??![],'decideApproval':_0x5115f6=>this[_0x2ba4b7(0x253)]?.[_0x2ba4b7(0x2c1)](_0x5115f6[_0x2ba4b7(0x2b1)],_0x5115f6[_0x2ba4b7(0x251)],_0x5115f6[_0x2ba4b7(0x198)])??![]}),this[_0x2ba4b7(0x187)]=_0x1b087c[_0x2ba4b7(0x187)]??new RunnerUsageReader(),this[_0x2ba4b7(0x289)]=_0x1b087c[_0x2ba4b7(0x289)],this[_0x2ba4b7(0x1cc)]=_0x1b087c[_0x2ba4b7(0x1cc)]??new TerminalManager({'platform':this[_0x2ba4b7(0x1c1)][_0x2ba4b7(0x174)]===_0x2ba4b7(0x224)?_0x2ba4b7(0x188):_0x2ba4b7(0x282)}),this[_0x2ba4b7(0x1cc)][_0x2ba4b7(0x13a)](_0x3239b2=>this[_0x2ba4b7(0x16f)][_0x2ba4b7(0x1fd)](_0x3239b2)),this[_0x2ba4b7(0x171)]=new NodeTerminalChannel({'config':()=>this[_0x2ba4b7(0x1df)],'controlConnected':()=>this[_0x2ba4b7(0x1b6)][_0x2ba4b7(0x2ae)](),'stopped':()=>this[_0x2ba4b7(0x14d)],'reconnect':this[_0x2ba4b7(0x1aa)],'reconnectDelay':nextReconnectDelay,'manager':this[_0x2ba4b7(0x1cc)]}),this[_0x2ba4b7(0x1b6)]=new NodeControlChannel({'config':()=>this[_0x2ba4b7(0x1df)],'capabilities':()=>this[_0x2ba4b7(0x1c1)],'stopped':()=>this[_0x2ba4b7(0x14d)],'reconnect':this[_0x2ba4b7(0x1aa)],'reconnectDelay':nextReconnectDelay,'onConnecting':_0x169e55=>{const _0x30cb53=_0x2ba4b7;this[_0x30cb53(0x290)][_0x30cb53(0x27a)](),nodeLog(_0x30cb53(0x26c),{'attempt':_0x169e55});},'onReconnectScheduled':()=>this[_0x2ba4b7(0x290)][_0x2ba4b7(0x281)](),'onMessage':_0x1539c3=>this[_0x2ba4b7(0x21a)](_0x1539c3),'onClose':(_0x5e8cff,_0x387602)=>{const _0x24bd30=_0x2ba4b7;this[_0x24bd30(0x171)][_0x24bd30(0x14c)]();if(_0x5e8cff===-0xc86*0x1+-0xf3+0x23d*0xd&&_0x387602===_0x24bd30(0x1eb))nodeLog(_0x24bd30(0x291),{'message':_0x24bd30(0x2b3)});if(_0x5e8cff===0x1*-0x1467+0x6*-0x225+0x30e8||_0x5e8cff===-0x164a+-0x4de*0x1+-0xb*-0x2d3)void this[_0x24bd30(0x1cc)][_0x24bd30(0x1fe)]();}}),this[_0x2ba4b7(0x2c8)]=new NodeControlMessageService({'config':()=>this[_0x2ba4b7(0x1df)],'register':(_0x2770be,_0x27b8ee)=>this[_0x2ba4b7(0x2c6)][_0x2ba4b7(0x196)](_0x2770be,_0x27b8ee),'connected':()=>this[_0x2ba4b7(0x2c6)][_0x2ba4b7(0x2ae)](),'close':(_0x318799,_0x407675)=>this[_0x2ba4b7(0x1b6)][_0x2ba4b7(0x145)](_0x318799,_0x407675),'inspectWorkspace':_0x317907=>this[_0x2ba4b7(0x16f)][_0x2ba4b7(0x266)](_0x317907),'handleNodeRequest':_0x3c1a0a=>this[_0x2ba4b7(0x242)][_0x2ba4b7(0x14f)](_0x3c1a0a),'reconcileRuns':_0x280cb6=>this[_0x2ba4b7(0x206)][_0x2ba4b7(0x20e)](_0x280cb6),'runners':this[_0x2ba4b7(0x2c5)],'deliverSessionChannelMessage':_0x170278=>this[_0x2ba4b7(0x15c)][_0x2ba4b7(0x14f)](_0x170278),'completeUncontrolledCancellation':_0x318562=>{const _0x49de87=_0x2ba4b7,_0x2db024=this[_0x49de87(0x150)][_0x49de87(0x106)](_0x318562);if(_0x2db024?.[_0x49de87(0x1b2)]===_0x49de87(0x286))this[_0x49de87(0x1c4)][_0x49de87(0x19a)](_0x318562);},'send':(_0x1f38af,_0x217862,_0xee43c9)=>this[_0x2ba4b7(0x2bb)](_0x1f38af,_0x217862,_0xee43c9)}),this[_0x2ba4b7(0x242)]=new NodeRequestService({'nodeId':()=>this[_0x2ba4b7(0x1df)]?.[_0x2ba4b7(0x1cd)],'databaseAvailable':()=>this[_0x2ba4b7(0x289)]!==undefined,'execute':(_0x1d2c93,_0x26ad41)=>this[_0x2ba4b7(0x23a)](_0x1d2c93,_0x26ad41),'send':(_0x4fb715,_0x45ee9d,_0x48f255)=>this[_0x2ba4b7(0x2bb)](_0x4fb715,_0x45ee9d,_0x48f255)}),this[_0x2ba4b7(0x16f)]=new NodeWorkspaceCoordinator({'config':()=>this[_0x2ba4b7(0x1df)],'database':()=>this[_0x2ba4b7(0x289)],'watches':this[_0x2ba4b7(0x2cd)],'sessions':this[_0x2ba4b7(0x18e)],'changes':this[_0x2ba4b7(0x24e)],'emit':(_0x4e6f9a,_0x54a0fb)=>void this[_0x2ba4b7(0x2b9)]?.[_0x2ba4b7(0x1e5)](_0x4e6f9a,_0x54a0fb),'send':(_0x3f157d,_0x14eea4,_0x1791f2)=>this[_0x2ba4b7(0x2bb)](_0x3f157d,_0x14eea4,_0x1791f2)}),this[_0x2ba4b7(0x206)]=new NodeRunEventBridge({'runtime':this[_0x2ba4b7(0x150)],'state':this[_0x2ba4b7(0x1fb)],'events':this[_0x2ba4b7(0x190)],'emitWorkbench':(_0xc3dd91,_0x541b8b)=>this[_0x2ba4b7(0x18c)](_0xc3dd91,_0x541b8b),'queues':this[_0x2ba4b7(0x1d9)],'codex':this[_0x2ba4b7(0x1e9)],'claude':this[_0x2ba4b7(0x131)],'openCode':this[_0x2ba4b7(0x1b5)],'send':(_0x1f89ef,_0x38425d,_0x407cba)=>this[_0x2ba4b7(0x2bb)](_0x1f89ef,_0x38425d,_0x407cba)}),this[_0x2ba4b7(0x2c6)]=new NodeConnectionLifecycleService({'config':()=>this[_0x2ba4b7(0x1df)],'setConfig':_0x162705=>this[_0x2ba4b7(0x1df)]=_0x162705,'configPath':this[_0x2ba4b7(0x21e)],'capabilities':()=>this[_0x2ba4b7(0x1c1)],'detectCapabilities':this[_0x2ba4b7(0x1be)],'capabilitiesProvided':this[_0x2ba4b7(0x108)],'stopped':()=>this[_0x2ba4b7(0x14d)],'setCapabilities':_0x3ff7da=>this[_0x2ba4b7(0x1c1)]={..._0x3ff7da,'metadata':upgradeMetadata(_0x3ff7da[_0x2ba4b7(0x210)],this[_0x2ba4b7(0x288)][_0x2ba4b7(0x160)]())},'control':this[_0x2ba4b7(0x1b6)],'terminal':this[_0x2ba4b7(0x171)],'metrics':this[_0x2ba4b7(0x290)],'heartbeatMs':HEARTBEAT_MS,'refreshMs':CAPABILITY_REFRESH_MS,'onRegistered':()=>this[_0x2ba4b7(0x136)](),'onConnected':()=>this[_0x2ba4b7(0x22d)][_0x2ba4b7(0x114)]()});const _0xff2207=()=>{const _0x4885f6=_0x2ba4b7;if(this[_0x4885f6(0x289)]===undefined)throw new Error(_0x4885f6(0x278));return this[_0x4885f6(0x289)];};this[_0x2ba4b7(0x15a)]=new RunnerService(_0xff2207,()=>this[_0x2ba4b7(0x1c1)],this[_0x2ba4b7(0x2c5)],this[_0x2ba4b7(0x187)]),this[_0x2ba4b7(0x257)]=new WorkbenchManifestService({'capabilities':()=>this[_0x2ba4b7(0x1c1)],'runners':this[_0x2ba4b7(0x15a)],'terminals':this[_0x2ba4b7(0x1cc)]}),this[_0x2ba4b7(0x10b)]=new TerminalService(_0xff2207,this[_0x2ba4b7(0x1cc)]),this[_0x2ba4b7(0x164)]=new WorkspaceService(_0xff2207,()=>{const _0x4dfe62=_0x2ba4b7;if(this[_0x4dfe62(0x1df)]===undefined)throw new Error(_0x4dfe62(0x2a2));return this[_0x4dfe62(0x1df)];},this[_0x2ba4b7(0x150)],_0x45a924=>{const _0x2c2b2a=_0x2ba4b7;this[_0x2c2b2a(0x170)][_0x2c2b2a(0x213)](_0x45a924),this[_0x2c2b2a(0x16f)][_0x2c2b2a(0x26e)](_0x45a924),this[_0x2c2b2a(0x18e)][_0x2c2b2a(0x2b6)](_0x45a924),this[_0x2c2b2a(0x16f)][_0x2c2b2a(0x1b4)](_0x45a924);}),this[_0x2ba4b7(0x2b9)]=new WorkspaceWorkbenchService({'requireWorkspace':_0x117a1f=>this[_0x2ba4b7(0x16f)][_0x2ba4b7(0x117)](_0x117a1f),'inspectWorkspace':_0x24aae3=>this[_0x2ba4b7(0x16f)][_0x2ba4b7(0x28b)](_0x24aae3),'commitWorkspace':(_0x136369,_0x4c4ba9)=>this[_0x2ba4b7(0x16f)][_0x2ba4b7(0x263)](_0x136369,_0x4c4ba9),'watch':this[_0x2ba4b7(0x2cd)],'files':this[_0x2ba4b7(0x170)],'uploads':this[_0x2ba4b7(0x19e)],'changes':this[_0x2ba4b7(0x24e)],'listSessions':_0x21fed4=>this[_0x2ba4b7(0x23a)](_0x2ba4b7(0x1e2),{'workspaceId':_0x21fed4,'limit':0x14}),'invalidate':_0x945838=>{const _0x1bfc42=_0x2ba4b7;this[_0x1bfc42(0x170)][_0x1bfc42(0x213)](_0x945838),this[_0x1bfc42(0x16f)][_0x1bfc42(0x2b6)](_0x945838);},'nodeId':()=>this[_0x2ba4b7(0x1df)]?.[_0x2ba4b7(0x1cd)]??_0x2ba4b7(0x165),'nodeGeneration':()=>this[_0x2ba4b7(0x17b)],'emitWatchEvent':_0x3e0f2e=>this[_0x2ba4b7(0x2bb)](_0x2ba4b7(0x2ba),_0x3e0f2e)});for(const _0x8a917a of CONVERSATION_TEMPLATE_OPERATIONS)this[_0x2ba4b7(0x133)][_0x2ba4b7(0x196)](_0x8a917a,_0x52146f=>{const _0x5ee2ce=_0x2ba4b7,_0x134f60=this[_0x5ee2ce(0x11d)]?.[_0x8a917a];if(_0x134f60===undefined)throw new Error(_0x5ee2ce(0x1a2));return _0x134f60(_0x52146f);});for(const _0x1e8719 of HOSTED_CONVERSATION_OPERATIONS)this[_0x2ba4b7(0x133)][_0x2ba4b7(0x196)](_0x1e8719,_0x40ac09=>{const _0x511619=_0x2ba4b7,_0xa48550=this[_0x511619(0x297)]?.[_0x1e8719];if(_0xa48550===undefined)throw new Error(_0x511619(0x1a2));return _0xa48550(_0x40ac09);});for(const _0x42cf7f of CONVERSATION_HOSTING_MAINTENANCE_OPERATIONS)this[_0x2ba4b7(0x133)][_0x2ba4b7(0x196)](_0x42cf7f,_0xf1f018=>{const _0x5eebd9=_0x2ba4b7,_0x59820f=this[_0x5eebd9(0x1e7)]?.[_0x42cf7f];if(_0x59820f===undefined)throw new Error(_0x5eebd9(0x1a2));return _0x59820f(_0xf1f018);});this[_0x2ba4b7(0x133)][_0x2ba4b7(0x2a5)](this[_0x2ba4b7(0x15a)][_0x2ba4b7(0x1d2)]()),this[_0x2ba4b7(0x133)][_0x2ba4b7(0x2a5)](this[_0x2ba4b7(0x10b)][_0x2ba4b7(0x1d2)]()),this[_0x2ba4b7(0x133)][_0x2ba4b7(0x2a5)](this[_0x2ba4b7(0x164)][_0x2ba4b7(0x1d2)]()),this[_0x2ba4b7(0x133)][_0x2ba4b7(0x2a5)](this[_0x2ba4b7(0x2b9)][_0x2ba4b7(0x1d2)]()),this[_0x2ba4b7(0x133)][_0x2ba4b7(0x2a5)](this[_0x2ba4b7(0x2bf)][_0x2ba4b7(0x1d2)]()),this[_0x2ba4b7(0x133)][_0x2ba4b7(0x2a5)](this[_0x2ba4b7(0x29c)][_0x2ba4b7(0x1d2)]()),this[_0x2ba4b7(0x133)][_0x2ba4b7(0x2a5)](this[_0x2ba4b7(0x1ca)][_0x2ba4b7(0x1d2)]()),this[_0x2ba4b7(0x133)][_0x2ba4b7(0x2a5)](this[_0x2ba4b7(0x1ae)][_0x2ba4b7(0x1d2)]()),this[_0x2ba4b7(0x133)][_0x2ba4b7(0x2a5)](this[_0x2ba4b7(0x232)][_0x2ba4b7(0x1d2)]()),this[_0x2ba4b7(0x133)][_0x2ba4b7(0x2a5)](this[_0x2ba4b7(0x11b)][_0x2ba4b7(0x1d2)]()),this[_0x2ba4b7(0x133)][_0x2ba4b7(0x2a5)](this[_0x2ba4b7(0x11f)][_0x2ba4b7(0x1d2)]()),this[_0x2ba4b7(0x133)][_0x2ba4b7(0x2a5)](this[_0x2ba4b7(0x1d9)][_0x2ba4b7(0x1d2)]()),this[_0x2ba4b7(0x133)][_0x2ba4b7(0x2a5)](new ConversationHostingEnablementService({'config':()=>this[_0x2ba4b7(0x1df)],'setConfig':_0x4150a5=>this[_0x2ba4b7(0x1df)]=_0x4150a5,'configPath':this[_0x2ba4b7(0x21e)],'platform':()=>this[_0x2ba4b7(0x1c1)][_0x2ba4b7(0x174)],'capability':()=>this[_0x2ba4b7(0x1c1)][_0x2ba4b7(0x27b)],'initialize':()=>this[_0x2ba4b7(0x136)](),'publishCapabilities':()=>this[_0x2ba4b7(0x2bb)](_0x2ba4b7(0x1c1),this[_0x2ba4b7(0x1c1)])})[_0x2ba4b7(0x1d2)]()),this[_0x2ba4b7(0x133)][_0x2ba4b7(0x2a5)](new SkillNodeOperationService(_0xff2207,()=>{const _0x42f9e3=_0x2ba4b7;if(this[_0x42f9e3(0x1df)]===undefined)throw new Error(_0x42f9e3(0x2a2));return this[_0x42f9e3(0x1df)];})[_0x2ba4b7(0x1d2)]()),this[_0x2ba4b7(0x133)][_0x2ba4b7(0x2a5)](new McpNodeOperationService(_0xff2207)[_0x2ba4b7(0x1d2)]()),this[_0x2ba4b7(0x133)][_0x2ba4b7(0x196)](_0x2ba4b7(0x1b7),()=>({'metrics':{...this[_0x2ba4b7(0x290)][_0x2ba4b7(0x160)](),'activeRuns':this[_0x2ba4b7(0x1fb)][_0x2ba4b7(0x132)][_0x2ba4b7(0x1bd)],'workspaceLeases':this[_0x2ba4b7(0x150)][_0x2ba4b7(0x1ce)]()}})),this[_0x2ba4b7(0x133)][_0x2ba4b7(0x196)](_0x2ba4b7(0x1c6),_0x542482=>this[_0x2ba4b7(0x288)][_0x2ba4b7(0x1da)](_0x542482)),this[_0x2ba4b7(0x133)][_0x2ba4b7(0x196)](_0x2ba4b7(0x11a),()=>this[_0x2ba4b7(0x288)][_0x2ba4b7(0x230)]()),this[_0x2ba4b7(0x133)][_0x2ba4b7(0x196)](_0x2ba4b7(0x1c8),async()=>({'manifest':await this[_0x2ba4b7(0x257)][_0x2ba4b7(0x142)]()}));}async[_0x6b58f4(0x136)](){const _0x2137ad=_0x6b58f4,_0x2220f6=this[_0x2137ad(0x2cf)],_0x2c4ac3=this[_0x2137ad(0x17e)],_0x44dfb4=this[_0x2137ad(0x271)];this[_0x2137ad(0x2cf)]=undefined,this[_0x2137ad(0x17e)]=undefined,this[_0x2137ad(0x271)]=undefined,this[_0x2137ad(0x297)]=undefined,this[_0x2137ad(0x1e7)]=undefined,this[_0x2137ad(0x11d)]=undefined,this[_0x2137ad(0x1d4)]=![],this[_0x2137ad(0x2a6)]=undefined,await _0x44dfb4?.[_0x2137ad(0x213)](),_0x2c4ac3?.[_0x2137ad(0x213)](),await _0x2220f6?.[_0x2137ad(0x213)]()[_0x2137ad(0x28d)](()=>undefined);const _0x342d3c=this[_0x2137ad(0x1df)];if(_0x342d3c?.[_0x2137ad(0x27b)]?.[_0x2137ad(0x21b)]===!![]&&this[_0x2137ad(0x1c1)][_0x2137ad(0x174)]===_0x2137ad(0x282)){if(_0x342d3c[_0x2137ad(0x1cd)]===undefined)this[_0x2137ad(0x2a6)]=_0x2137ad(0x138);else{let _0x379574,_0x3cfc89,_0x77f69e;try{if(this[_0x2137ad(0x289)]===undefined)throw new Error(_0x2137ad(0x278));const _0x4d5096=hostedConversationStorePath(_0x342d3c,this[_0x2137ad(0x21e)]);if(_0x4d5096===undefined)throw new Error(_0x2137ad(0x201));const _0x4915f5=new HostedConversationStore({'dataDirectory':nodeDataDirectory(_0x342d3c,this[_0x2137ad(0x21e)]),'rootDirectory':_0x4d5096,'nodeId':_0x342d3c[_0x2137ad(0x1cd)],'database':this[_0x2137ad(0x289)]});await _0x4915f5[_0x2137ad(0x13c)]();const _0x2f6b70=new ConversationTemplateNodeService({'database':this[_0x2137ad(0x289)],'store':_0x4915f5,'nodeId':()=>this[_0x2137ad(0x1df)]?.[_0x2137ad(0x1cd)]??_0x2137ad(0x18a)});await _0x2f6b70[_0x2137ad(0x1f3)](),await _0x4915f5[_0x2137ad(0x1f8)](),_0x379574=new MarAgentHostedConversationRuntime({'webSearch':(_0x1ae313,_0x3315a2)=>this[_0x2137ad(0x179)](_0x1ae313,_0x3315a2)}),_0x3cfc89=new HostedConversationNodeService({'database':this[_0x2137ad(0x289)],'store':_0x4915f5,'runtime':_0x379574,'nodeId':()=>this[_0x2137ad(0x1df)]?.[_0x2137ad(0x1cd)]??_0x2137ad(0x18a),'nodeGeneration':()=>this[_0x2137ad(0x17b)],'sessionWatchSlots':this[_0x2137ad(0x1d1)],'emitWatchEvent':_0x28ea17=>this[_0x2137ad(0x2bb)](_0x2137ad(0x2ba),_0x28ea17),'nextWorkbenchEvent':_0x4e69d8=>this[_0x2137ad(0x252)][_0x2137ad(0x19d)](_0x2137ad(0x16d),_0x4e69d8),'emitWorkbenchEvent':_0x4fe303=>this[_0x2137ad(0x252)][_0x2137ad(0x248)](_0x4fe303),'processExecutorFactory':_0x1fa41a=>new BubblewrapSandboxExecutor(_0x1fa41a),'assertCanCreate':()=>{const _0x10afe6=_0x2137ad;if(_0x77f69e===undefined)throw new Error(_0x10afe6(0x1a2));return _0x77f69e[_0x10afe6(0x254)]();}}),_0x77f69e=new ConversationHostingMaintenanceService({'store':_0x4915f5,'inactiveRetentionDays':_0x342d3c[_0x2137ad(0x27b)][_0x2137ad(0x1c3)]??0x35*-0x47+0x26d5*-0x1+0x35c4,'isConversationInUse':_0x2d3435=>_0x3cfc89?.[_0x2137ad(0x186)](_0x2d3435)??!![],'beginConversationCleanup':_0x40204a=>_0x3cfc89?.[_0x2137ad(0x1f7)](_0x40204a),'releaseConversation':_0x353418=>{const _0x212ffb=_0x2137ad;if(_0x3cfc89===undefined)throw new Error(_0x212ffb(0x1a2));return _0x3cfc89[_0x212ffb(0x299)](_0x353418);},'onAutomaticCleanupError':_0x409165=>nodeLog(_0x2137ad(0x2b2),{'nodeId':_0x342d3c[_0x2137ad(0x1cd)],'code':safeErrorCode(_0x409165,_0x2137ad(0x2a1))})}),this[_0x2137ad(0x11d)]=_0x2f6b70[_0x2137ad(0x1d2)](),this[_0x2137ad(0x297)]=_0x3cfc89[_0x2137ad(0x1d2)](),this[_0x2137ad(0x1e7)]=_0x77f69e[_0x2137ad(0x1d2)](),this[_0x2137ad(0x2cf)]=_0x379574,this[_0x2137ad(0x17e)]=_0x3cfc89,this[_0x2137ad(0x271)]=_0x77f69e,await _0x77f69e[_0x2137ad(0x121)](),this[_0x2137ad(0x1d4)]=!![];}catch(_0x13e699){await _0x77f69e?.[_0x2137ad(0x213)](),_0x3cfc89?.[_0x2137ad(0x213)](),await _0x379574?.[_0x2137ad(0x213)]()[_0x2137ad(0x28d)](()=>undefined),this[_0x2137ad(0x2a6)]=safeErrorCode(_0x13e699,_0x2137ad(0x237)),nodeLog(_0x2137ad(0x166),{'nodeId':_0x342d3c[_0x2137ad(0x1cd)],'code':this[_0x2137ad(0x2a6)]});}}}this[_0x2137ad(0x1c1)]=await this[_0x2137ad(0x1c9)](this[_0x2137ad(0x1c1)]);}async[_0x6b58f4(0x1c9)](_0xf5042){const _0x588857=_0x6b58f4;let _0x4556d4=this[_0x588857(0x1d4)],_0x2df146=this[_0x588857(0x2a6)],_0x521326=_0x588857(0x22e);if(_0x4556d4&&this[_0x588857(0x271)]!==undefined)try{_0x521326=(await this[_0x588857(0x271)][_0x588857(0x295)]())[_0x588857(0x1cf)];}catch(_0x3002d8){_0x4556d4=![],_0x2df146=safeErrorCode(_0x3002d8,_0x588857(0x201));}return{..._0xf5042,'conversationHosting':await conversationHostingCapability(_0xf5042,this[_0x588857(0x1df)],_0x4556d4,_0x2df146,this[_0x588857(0x107)],_0x521326)};}async[_0x6b58f4(0x121)](){const _0x16c466=_0x6b58f4;if(this[_0x16c466(0x197)]!==undefined)await this[_0x16c466(0x197)];this[_0x16c466(0x197)]=undefined,this[_0x16c466(0x14d)]=![],this[_0x16c466(0x1df)]??=await loadNodeConfig(this[_0x16c466(0x21e)]),await this[_0x16c466(0x288)][_0x16c466(0x264)](resolve(dirname(nodeDatabasePath(this[_0x16c466(0x1df)],this[_0x16c466(0x21e)])),_0x16c466(0x236))),await assertLocalSqlitePath(nodeDatabasePath(this[_0x16c466(0x1df)],this[_0x16c466(0x21e)])),this[_0x16c466(0x289)]??=new NodeDatabase(nodeDatabasePath(this[_0x16c466(0x1df)],this[_0x16c466(0x21e)]),()=>this[_0x16c466(0x1df)]?.[_0x16c466(0x1cd)]??_0x16c466(0x18a)),this[_0x16c466(0x289)][_0x16c466(0x2aa)](),await this[_0x16c466(0x136)](),this[_0x16c466(0x2c6)][_0x16c466(0x121)](),this[_0x16c466(0x1b6)][_0x16c466(0x2d4)]();}[_0x6b58f4(0x255)](_0x34443a){const _0x25bccb=_0x6b58f4,_0x4562a4=this[_0x25bccb(0x2be)][_0x25bccb(0x222)](_0x34443a);if(_0x4562a4!==undefined)clearTimeout(_0x4562a4[_0x25bccb(0x244)]);this[_0x25bccb(0x2be)][_0x25bccb(0x27c)](_0x34443a),this[_0x25bccb(0x227)][_0x25bccb(0x27c)](_0x34443a);}async[_0x6b58f4(0x229)](_0x9d59ea){const _0x41c282=_0x6b58f4,_0x44a191=_0x9d59ea[_0x41c282(0x23c)]['id']+':'+_0x9d59ea[_0x41c282(0x23c)][_0x41c282(0x225)];this[_0x41c282(0x227)][_0x41c282(0x1ff)](_0x9d59ea[_0x41c282(0x29b)],_0x44a191);try{await this[_0x41c282(0x232)][_0x41c282(0x233)]({'sessionId':_0x9d59ea[_0x41c282(0x29b)],'kind':_0x41c282(0x26d),'content':this[_0x41c282(0x14e)][_0x41c282(0x15f)](_0x9d59ea[_0x41c282(0x29b)],_0x41c282(0x26d)),'deliveryIntent':_0x41c282(0x1ad),'mission':_0x9d59ea[_0x41c282(0x23c)],'secretEnvironment':_0x9d59ea[_0x41c282(0x169)],..._0x9d59ea[_0x41c282(0x156)]===undefined?{}:{'personalInstructions':_0x9d59ea[_0x41c282(0x156)]}});const _0x2d3493=this[_0x41c282(0x14e)][_0x41c282(0x222)](_0x9d59ea[_0x41c282(0x29b)]);if(_0x2d3493?.[_0x41c282(0x1b2)]!==_0x41c282(0x132)||_0x2d3493['id']!==_0x9d59ea[_0x41c282(0x23c)]['id']||_0x2d3493[_0x41c282(0x225)]!==_0x9d59ea[_0x41c282(0x23c)][_0x41c282(0x225)]){if(this[_0x41c282(0x227)][_0x41c282(0x222)](_0x9d59ea[_0x41c282(0x29b)])===_0x44a191)this[_0x41c282(0x227)][_0x41c282(0x27c)](_0x9d59ea[_0x41c282(0x29b)]);return;}this[_0x41c282(0x255)](_0x9d59ea[_0x41c282(0x29b)]);}catch{const _0x37207d=this[_0x41c282(0x14e)][_0x41c282(0x222)](_0x9d59ea[_0x41c282(0x29b)]);if(_0x37207d?.[_0x41c282(0x1b2)]!==_0x41c282(0x132)||_0x37207d['id']!==_0x9d59ea[_0x41c282(0x23c)]['id']||_0x37207d[_0x41c282(0x225)]!==_0x9d59ea[_0x41c282(0x23c)][_0x41c282(0x225)]){if(this[_0x41c282(0x227)][_0x41c282(0x222)](_0x9d59ea[_0x41c282(0x29b)])===_0x44a191)this[_0x41c282(0x227)][_0x41c282(0x27c)](_0x9d59ea[_0x41c282(0x29b)]);return;}const _0x1ade2b=(_0x9d59ea[_0x41c282(0x18d)]??-0x1072*-0x2+-0x119*0x19+-0x573)+(0x1*-0xfdd+0x63d+0x9a1),_0x26ba48=this[_0x41c282(0x150)][_0x41c282(0x292)](_0x9d59ea[_0x41c282(0x29b)]);if(_0x1ade2b>0x21*0xf6+-0xb*0x19f+-0xdde||_0x26ba48===undefined){this[_0x41c282(0x255)](_0x9d59ea[_0x41c282(0x29b)]);if(_0x1ade2b>0x17a3*0x1+-0x1fbd+0x43*0x1f){const _0x30fc21=this[_0x41c282(0x14e)][_0x41c282(0x123)](_0x9d59ea[_0x41c282(0x29b)],_0x9d59ea[_0x41c282(0x23c)]['id'],_0x9d59ea[_0x41c282(0x23c)][_0x41c282(0x225)]);this[_0x41c282(0x2bd)][_0x41c282(0x2b7)](_0x9d59ea[_0x41c282(0x29b)]),this[_0x41c282(0x1e4)](_0x9d59ea[_0x41c282(0x29b)],_0x41c282(0x141));if(_0x26ba48!==undefined)this[_0x41c282(0x293)](_0x26ba48,_0x30fc21);}return;}this[_0x41c282(0x255)](_0x9d59ea[_0x41c282(0x29b)]);const _0x10702e={'sessionId':_0x9d59ea[_0x41c282(0x29b)],'timer':setTimeout(()=>{const _0x140ea7=_0x41c282,_0x4fa9f3=this[_0x140ea7(0x14e)][_0x140ea7(0x222)](_0x10702e[_0x140ea7(0x29b)]);if(_0x4fa9f3?.[_0x140ea7(0x1b2)]!==_0x140ea7(0x132)||_0x4fa9f3['id']!==_0x9d59ea[_0x140ea7(0x23c)]['id']||_0x4fa9f3[_0x140ea7(0x225)]!==_0x9d59ea[_0x140ea7(0x23c)][_0x140ea7(0x225)])return;void this[_0x140ea7(0x229)]({..._0x9d59ea,'sessionId':_0x10702e[_0x140ea7(0x29b)],'failedAttempts':_0x1ade2b});},-0xfe9*0x7+0x43d9+0x661e)};this[_0x41c282(0x2be)][_0x41c282(0x1ff)](_0x9d59ea[_0x41c282(0x29b)],_0x10702e),_0x10702e[_0x41c282(0x244)][_0x41c282(0x19f)]();}}[_0x6b58f4(0x1e4)](_0x2fed34,_0x267ece){const _0x2aabf1=_0x6b58f4,_0x9d46d7=this[_0x2aabf1(0x150)][_0x2aabf1(0x159)](_0x2fed34);if(_0x9d46d7===undefined||this[_0x2aabf1(0x150)][_0x2aabf1(0x26a)](_0x9d46d7['id'])!==undefined)return;this[_0x2aabf1(0x206)][_0x2aabf1(0x218)](_0x9d46d7['id'],_0x267ece===_0x2aabf1(0x208)?_0x2aabf1(0x250):_0x2aabf1(0x104),_0x267ece===_0x2aabf1(0x208)?{}:{'code':_0x2aabf1(0x15b)},_0x267ece);}[_0x6b58f4(0x239)](_0x1e647c){const _0x3ecd3c=_0x6b58f4,_0x11cde0=missionUnrestrictedAccess(_0x1e647c[_0x3ecd3c(0x22f)]),_0x364028=_0x1e647c[_0x3ecd3c(0x204)]!==_0x11cde0,_0x208bc3=_0x364028?this[_0x3ecd3c(0x150)][_0x3ecd3c(0x22c)](_0x1e647c['id'],_0x11cde0):_0x1e647c;if(_0x364028&&_0x208bc3[_0x3ecd3c(0x148)]!==null&&_0x208bc3[_0x3ecd3c(0x1f0)]!==null&&_0x208bc3[_0x3ecd3c(0x1f4)]!==null)this[_0x3ecd3c(0x289)]?.[_0x3ecd3c(0x2c9)]({'runner':_0x208bc3[_0x3ecd3c(0x22f)],'externalSessionId':_0x208bc3[_0x3ecd3c(0x148)],'workspaceId':_0x208bc3[_0x3ecd3c(0x19c)],'model':_0x208bc3[_0x3ecd3c(0x1f0)],'effort':_0x208bc3[_0x3ecd3c(0x1f4)],'access':_0x11cde0});return{'session':_0x208bc3,'changed':_0x364028};}[_0x6b58f4(0x1d8)](){const _0x1a507e=_0x6b58f4;return{'commandId':_0x1a507e(0x23c),'active':!![],'label':_0x1a507e(0x10d),'detail':null,'closable':!![],'closeInput':_0x1a507e(0x274)};}[_0x6b58f4(0x112)](){const _0x2ff39d=_0x6b58f4;if(this[_0x2ff39d(0x197)]!==undefined)return this[_0x2ff39d(0x197)];this[_0x2ff39d(0x14d)]=!![],this[_0x2ff39d(0x22d)][_0x2ff39d(0x213)](),this[_0x2ff39d(0x288)][_0x2ff39d(0x112)](),this[_0x2ff39d(0x2c6)][_0x2ff39d(0x112)]();for(const _0x572f52 of this[_0x2ff39d(0x131)][_0x2ff39d(0x173)][_0x2ff39d(0x22a)][_0x2ff39d(0x1a7)]()){clearTimeout(_0x572f52[_0x2ff39d(0x244)]),_0x572f52[_0x2ff39d(0x25a)](_0x2ff39d(0x247));}this[_0x2ff39d(0x131)][_0x2ff39d(0x173)][_0x2ff39d(0x22a)][_0x2ff39d(0x2ce)]();for(const _0x132b29 of this[_0x2ff39d(0x131)][_0x2ff39d(0x173)][_0x2ff39d(0x259)][_0x2ff39d(0x1a7)]()){clearTimeout(_0x132b29[_0x2ff39d(0x244)]),_0x132b29[_0x2ff39d(0x223)](_0x2ff39d(0x2cc));}this[_0x2ff39d(0x131)][_0x2ff39d(0x173)][_0x2ff39d(0x259)][_0x2ff39d(0x2ce)](),this[_0x2ff39d(0x29c)][_0x2ff39d(0x2ce)](),this[_0x2ff39d(0x2c2)][_0x2ff39d(0x213)](),this[_0x2ff39d(0x1ae)][_0x2ff39d(0x2ce)](),this[_0x2ff39d(0x2bd)][_0x2ff39d(0x2ce)]();for(const _0x10d8f3 of this[_0x2ff39d(0x2be)][_0x2ff39d(0x1a7)]())clearTimeout(_0x10d8f3[_0x2ff39d(0x244)]);this[_0x2ff39d(0x2be)][_0x2ff39d(0x2ce)](),this[_0x2ff39d(0x227)][_0x2ff39d(0x2ce)](),this[_0x2ff39d(0x190)][_0x2ff39d(0x2ce)](),this[_0x2ff39d(0x1dd)][_0x2ff39d(0x213)]();for(const _0x412f87 of this[_0x2ff39d(0x131)][_0x2ff39d(0x173)][_0x2ff39d(0x2d6)][_0x2ff39d(0x1a7)]())_0x412f87[_0x2ff39d(0x14f)][_0x2ff39d(0x230)]();this[_0x2ff39d(0x131)][_0x2ff39d(0x173)][_0x2ff39d(0x2d6)][_0x2ff39d(0x2ce)](),this[_0x2ff39d(0x245)][_0x2ff39d(0x213)](),void this[_0x2ff39d(0x258)][_0x2ff39d(0x213)]();const _0xb155db=this[_0x2ff39d(0x271)]?.[_0x2ff39d(0x213)]();this[_0x2ff39d(0x271)]=undefined,this[_0x2ff39d(0x17e)]?.[_0x2ff39d(0x213)](),this[_0x2ff39d(0x17e)]=undefined;const _0x2d312e=this[_0x2ff39d(0x2cf)];this[_0x2ff39d(0x2cf)]=undefined,this[_0x2ff39d(0x297)]=undefined,this[_0x2ff39d(0x1e7)]=undefined,void this[_0x2ff39d(0x19e)][_0x2ff39d(0x1fe)](),this[_0x2ff39d(0x170)][_0x2ff39d(0x213)](),this[_0x2ff39d(0x2cd)][_0x2ff39d(0x154)](),this[_0x2ff39d(0x2b9)][_0x2ff39d(0x2ce)](),this[_0x2ff39d(0x18e)][_0x2ff39d(0x2ce)](),this[_0x2ff39d(0x24e)][_0x2ff39d(0x2ce)](),void this[_0x2ff39d(0x2c5)][_0x2ff39d(0x112)](),void this[_0x2ff39d(0x26f)][_0x2ff39d(0x145)](),void this[_0x2ff39d(0x1cc)][_0x2ff39d(0x1fe)](),this[_0x2ff39d(0x171)][_0x2ff39d(0x112)](),this[_0x2ff39d(0x1b6)][_0x2ff39d(0x112)]();const _0x4c6750=this[_0x2ff39d(0x289)];return this[_0x2ff39d(0x289)]=undefined,this[_0x2ff39d(0x197)]=((async()=>{const _0x96ff41=_0x2ff39d;try{await _0xb155db;}finally{await _0x2d312e?.[_0x96ff41(0x213)]()[_0x96ff41(0x28d)](()=>undefined),_0x4c6750?.[_0x96ff41(0x145)]();}})()),this[_0x2ff39d(0x197)];}[_0x6b58f4(0x21a)]=_0x133c09=>this[_0x6b58f4(0x2c8)][_0x6b58f4(0x14f)](_0x133c09);[_0x6b58f4(0x17a)]=(_0x1bd73a,_0xe9cab8,_0x564d23,_0x149599)=>this[_0x6b58f4(0x206)][_0x6b58f4(0x218)](_0x1bd73a,_0xe9cab8,_0x564d23,_0x149599);[_0x6b58f4(0x29e)]=(_0xed416e,_0x2bef33)=>{const _0x3ba4b4=_0x6b58f4;this[_0x3ba4b4(0x190)][_0x3ba4b4(0x261)](_0xed416e);const _0x197ff2=isPlainRecord(_0x2bef33)&&typeof _0x2bef33[_0x3ba4b4(0x129)]===_0x3ba4b4(0x185)?_0x2bef33[_0x3ba4b4(0x129)]:undefined,_0x3d01ce=isPlainRecord(_0x2bef33)&&typeof _0x2bef33[_0x3ba4b4(0x2c0)]===_0x3ba4b4(0x185)?_0x2bef33[_0x3ba4b4(0x2c0)]:undefined,_0x387840=this[_0x3ba4b4(0x150)][_0x3ba4b4(0x226)](_0xed416e),_0x5d6c0f=_0x197ff2===undefined||_0x387840===undefined?undefined:conversationSegmentIdentityForItem(_0x387840,_0x197ff2,_0x3d01ce);this[_0x3ba4b4(0x206)][_0x3ba4b4(0x218)](_0xed416e,_0x3ba4b4(0x167),_0x5d6c0f===undefined||!isPlainRecord(_0x2bef33)?_0x2bef33:{..._0x2bef33,'segmentId':_0x5d6c0f['id'],'segmentIndex':_0x5d6c0f[_0x3ba4b4(0x15e)]});};[_0x6b58f4(0x228)]=_0x32275c=>{const _0x588af3=_0x6b58f4,_0x2e372a=isPlainRecord(_0x32275c)&&Array[_0x588af3(0x139)](_0x32275c[_0x588af3(0x1a3)])?conversationSegments(_0x32275c):[];this[_0x588af3(0x13e)](_0x588af3(0x113),{'turn':_0x32275c,'segments':_0x2e372a});};[_0x6b58f4(0x18c)]=(_0x596fec,_0x19ceff)=>{const _0x416e40=_0x6b58f4;if(_0x596fec===_0x416e40(0x147)){this[_0x416e40(0x12d)](_0x19ceff);return;}this[_0x416e40(0x13e)](_0x596fec,_0x19ceff);};[_0x6b58f4(0x12d)]=_0x387869=>{const _0x578078=_0x6b58f4;if(isPlainRecord(_0x387869)&&isPlainRecord(_0x387869[_0x578078(0x147)])){const _0x11cae4=_0x387869[_0x578078(0x147)][_0x578078(0x19c)];typeof _0x11cae4===_0x578078(0x185)&&(this[_0x578078(0x18e)][_0x578078(0x1ea)](_0x11cae4),void this[_0x578078(0x2b9)]?.[_0x578078(0x1e5)](_0x11cae4,_0x578078(0x137)));}this[_0x578078(0x13e)](_0x578078(0x147),_0x387869);};[_0x6b58f4(0x13e)]=(_0x5dd5ba,_0x34ffdf)=>{const _0x1d08f2=_0x6b58f4;if(_0x5dd5ba===_0x1d08f2(0x113)&&isPlainRecord(_0x34ffdf)&&isPlainRecord(_0x34ffdf[_0x1d08f2(0x10e)])&&_0x34ffdf[_0x1d08f2(0x10e)][_0x1d08f2(0x234)]!==_0x1d08f2(0x1ac)){const _0x579288=typeof _0x34ffdf[_0x1d08f2(0x10e)][_0x1d08f2(0x2b1)]===_0x1d08f2(0x185)?_0x34ffdf[_0x1d08f2(0x10e)][_0x1d08f2(0x2b1)]:undefined,_0x32a702=typeof _0x34ffdf[_0x1d08f2(0x10e)][_0x1d08f2(0x2c4)]===_0x1d08f2(0x189)?_0x34ffdf[_0x1d08f2(0x10e)][_0x1d08f2(0x2c4)]:undefined,_0x559675=_0x579288===undefined?undefined:this[_0x1d08f2(0x150)][_0x1d08f2(0x226)](_0x579288);if(_0x559675===undefined)return;const _0xe9e281=isPlainRecord(_0x34ffdf[_0x1d08f2(0x10e)][_0x1d08f2(0x1cb)])?_0x34ffdf[_0x1d08f2(0x10e)][_0x1d08f2(0x1cb)]:undefined,_0x10c68d=_0x34ffdf[_0x1d08f2(0x10e)][_0x1d08f2(0x234)]===_0x1d08f2(0x161)&&typeof _0xe9e281?.[_0x1d08f2(0x2b0)]===_0x1d08f2(0x185)?_0xe9e281[_0x1d08f2(0x2b0)]:undefined,_0x53f086=typeof _0xe9e281?.[_0x1d08f2(0x129)]===_0x1d08f2(0x185)?_0xe9e281[_0x1d08f2(0x129)]:typeof _0xe9e281?.[_0x1d08f2(0x251)]===_0x1d08f2(0x185)?_0x1d08f2(0x246)+_0xe9e281[_0x1d08f2(0x251)]:undefined,_0x197aee=_0x10c68d!==undefined&&_0x32a702!==undefined?_0x559675[_0x1d08f2(0x1a3)][_0x1d08f2(0x10a)](_0xd02ca4=>_0xd02ca4[_0x1d08f2(0x2c0)]===_0x1d08f2(0x24c)&&_0xd02ca4[_0x1d08f2(0x225)]===_0x32a702):_0x53f086===undefined?undefined:_0x559675[_0x1d08f2(0x1a3)][_0x1d08f2(0x10a)](_0x4607da=>_0x4607da['id']===_0x579288+':'+_0x53f086);if(_0x10c68d!==undefined&&_0x197aee?.[_0x1d08f2(0x2c0)]===_0x1d08f2(0x24c))_0x34ffdf={'sessionId':_0x559675[_0x1d08f2(0x29b)],'delta':{'runId':_0x559675[_0x1d08f2(0x2b1)],'itemId':_0x197aee['id'],'text':_0x10c68d,'createdAt':typeof _0x34ffdf[_0x1d08f2(0x10e)][_0x1d08f2(0x1f2)]===_0x1d08f2(0x189)?_0x34ffdf[_0x1d08f2(0x10e)][_0x1d08f2(0x1f2)]:Date[_0x1d08f2(0x119)]()}};else{if(_0x197aee!==undefined){const _0x314374=conversationSegmentIdentityForItem(_0x559675,_0x197aee['id'],_0x197aee[_0x1d08f2(0x2c0)]);_0x34ffdf={'sessionId':_0x559675[_0x1d08f2(0x29b)],'runId':_0x559675[_0x1d08f2(0x2b1)],'item':{'itemId':_0x197aee['id'],'kind':_0x197aee[_0x1d08f2(0x2c0)],'status':_0x197aee[_0x1d08f2(0x1b2)],'payload':_0x197aee[_0x1d08f2(0x1cb)],'startedAt':_0x197aee[_0x1d08f2(0x27e)],'completedAt':_0x197aee[_0x1d08f2(0x153)],'segmentId':_0x314374['id'],'segmentIndex':_0x314374[_0x1d08f2(0x15e)]}};}else{if(_0x34ffdf[_0x1d08f2(0x10e)][_0x1d08f2(0x234)]!==_0x1d08f2(0x2bc)&&_0x34ffdf[_0x1d08f2(0x10e)][_0x1d08f2(0x234)]!==_0x1d08f2(0x269))return;_0x34ffdf={'turn':_0x559675,'segments':conversationSegments(_0x559675)};}}}const _0x229288=this[_0x1d08f2(0x252)][_0x1d08f2(0x19d)](_0x5dd5ba,_0x34ffdf);if(_0x229288===undefined)return;const _0x1cdcc0=_0x5dd5ba===_0x1d08f2(0x113)&&isPlainRecord(_0x34ffdf)&&isPlainRecord(_0x34ffdf[_0x1d08f2(0x10e)])&&_0x34ffdf[_0x1d08f2(0x10e)][_0x1d08f2(0x234)]===_0x1d08f2(0x1ac),_0x5221f7=workbenchPayloadSessionId(this[_0x1d08f2(0x150)],_0x5dd5ba,_0x34ffdf);if(!_0x1cdcc0&&_0x5221f7!==undefined){this[_0x1d08f2(0x29c)][_0x1d08f2(0x272)](_0x5221f7,_0x229288);return;}this[_0x1d08f2(0x252)][_0x1d08f2(0x248)](_0x229288);};[_0x6b58f4(0x29a)]=_0x599056=>this[_0x6b58f4(0x118)][_0x6b58f4(0x181)](_0x599056);[_0x6b58f4(0x1e3)]=_0x549860=>this[_0x6b58f4(0x16f)][_0x6b58f4(0x2b6)](_0x549860);[_0x6b58f4(0x1fa)]=()=>undefined;[_0x6b58f4(0x25b)]=()=>this[_0x6b58f4(0x2c6)][_0x6b58f4(0x25b)]();[_0x6b58f4(0x22b)]=()=>this[_0x6b58f4(0x2c6)][_0x6b58f4(0x22b)]();async[_0x6b58f4(0x23a)](_0x8abcaf,_0x53c972){const _0x28216f=_0x6b58f4;if(this[_0x28216f(0x289)]===undefined)throw new Error(_0x28216f(0x278));if(this[_0x28216f(0x288)][_0x28216f(0x20d)](_0x8abcaf))throw new Error(_0x28216f(0x283));return nodeLog(_0x28216f(0x1ed),{'nodeId':this[_0x28216f(0x1df)]?.[_0x28216f(0x1cd)],'operation':_0x8abcaf}),this[_0x28216f(0x133)][_0x28216f(0x249)](_0x8abcaf,_0x53c972);}async[_0x6b58f4(0x179)](_0x400557,_0x16ca79){const _0x446ca4=_0x6b58f4,_0x577940=this[_0x446ca4(0x1df)];if(_0x577940?.[_0x446ca4(0x1cd)]===undefined||_0x577940[_0x446ca4(0x199)]===undefined)throw new Error(_0x446ca4(0x138));const _0x400c16=await fetch(_0x577940[_0x446ca4(0x23e)][_0x446ca4(0x21c)](/\/$/u,'')+_0x446ca4(0x235),{'method':_0x446ca4(0x109),'headers':{'content-type':_0x446ca4(0x16c),'x-mar-node-id':_0x577940[_0x446ca4(0x1cd)],'authorization':_0x446ca4(0x2d3)+_0x577940[_0x446ca4(0x199)]},'body':JSON[_0x446ca4(0x28e)](_0x400557),'signal':_0x16ca79});if(!_0x400c16['ok'])throw new Error(_0x446ca4(0x25f));const _0x36ef00=await _0x400c16[_0x446ca4(0x219)]();return{'content':JSON[_0x446ca4(0x28e)](_0x36ef00),'data':_0x36ef00};}[_0x6b58f4(0x293)](_0x245812,_0x3d07cb){const _0x53eaac=_0x6b58f4;if(_0x3d07cb[_0x53eaac(0x1b2)]!==_0x53eaac(0x132)){this[_0x53eaac(0x1bc)][_0x53eaac(0x2ce)](_0x245812['id'],_0x53eaac(0x23c)),this[_0x53eaac(0x13e)](_0x53eaac(0x147),{'session':this[_0x53eaac(0x24f)][_0x53eaac(0x151)](_0x245812)});return;}this[_0x53eaac(0x1bc)][_0x53eaac(0x1ff)](_0x245812['id'],{'commandId':_0x53eaac(0x23c),'active':_0x3d07cb[_0x53eaac(0x1b2)]===_0x53eaac(0x132),'label':_0x53eaac(0x10d),'detail':_0x3d07cb[_0x53eaac(0x172)][_0x53eaac(0x268)](0x12db*-0x1+-0xd41+0x201c,0x1*0xa4e+0x16a8+0x7*-0x46e),'closable':!![],'closeInput':_0x53eaac(0x1c7),'mission':{'id':_0x3d07cb['id'],'objective':_0x3d07cb[_0x53eaac(0x172)],'revision':_0x3d07cb[_0x53eaac(0x225)],'status':_0x3d07cb[_0x53eaac(0x1b2)],'turns':_0x3d07cb[_0x53eaac(0x243)]}}),this[_0x53eaac(0x13e)](_0x53eaac(0x147),{'session':this[_0x53eaac(0x24f)][_0x53eaac(0x151)](_0x245812)});}[_0x6b58f4(0x2bb)](_0x351387,_0x3e9c38,_0x47186a){const _0x98c9a=_0x6b58f4;this[_0x98c9a(0x1b6)][_0x98c9a(0x2bb)](_0x351387,_0x3e9c38,_0x47186a);}[_0x6b58f4(0x130)](_0x47066e){const _0x31b3c4=_0x6b58f4;this[_0x31b3c4(0x1b6)][_0x31b3c4(0x130)](_0x47066e);}}