@myagentroam/node 0.9.15 → 0.9.16

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 (41) hide show
  1. package/dist/capabilities.js +1 -1
  2. package/dist/connector.js +1 -1
  3. package/dist/database.js +1 -1
  4. package/dist/migrations/v005.js +23 -0
  5. package/dist/ripgrep-binary.js +2 -0
  6. package/dist/runner/abstract-runner.js +1 -1
  7. package/dist/runner/claude/managed-run-controller.js +1 -1
  8. package/dist/runner/claude/tool-normalizer.js +2 -0
  9. package/dist/runner/codex/conversation-parser.js +1 -1
  10. package/dist/runner/codex/managed-run-controller.js +1 -1
  11. package/dist/runner/codex/tool-normalizer.js +2 -0
  12. package/dist/runner/mar-agent/conversation-normalizer.js +2 -0
  13. package/dist/runner/mar-agent/history-projection.js +2 -0
  14. package/dist/runner/mar-agent/managed-run-controller.js +2 -0
  15. package/dist/runner/mar-agent/mcp-client-pool.js +2 -0
  16. package/dist/runner/mar-agent-runner.js +2 -0
  17. package/dist/runner/opencode/conversation-parser.js +1 -1
  18. package/dist/runner/opencode/managed-run-controller.js +1 -1
  19. package/dist/runner/opencode/tool-normalizer.js +2 -0
  20. package/dist/runner-profiles.js +1 -1
  21. package/dist/runtime-state.js +1 -1
  22. package/dist/service/continuous-run-coordinator.js +1 -1
  23. package/dist/service/mission-runtime.js +1 -1
  24. package/dist/service/native-session-watch-service.js +1 -1
  25. package/dist/service/run-event-service.js +1 -1
  26. package/dist/service/runner-service.js +1 -1
  27. package/dist/service/session-command-service.js +1 -1
  28. package/dist/service/session-lifecycle-service.js +1 -1
  29. package/dist/service/session-message-service.js +1 -1
  30. package/dist/service/workspace-content-search-service.js +1 -1
  31. package/dist/util/personal-instructions.js +1 -1
  32. package/dist/util/runner-error.js +1 -1
  33. package/dist/util/runner-native-session-parsers.js +1 -1
  34. package/package.json +4 -2
  35. package/vendor/ripgrep/LICENSE-MIT +21 -0
  36. package/vendor/ripgrep/UNLICENSE +24 -0
  37. package/vendor/ripgrep/linux-arm64/rg +0 -0
  38. package/vendor/ripgrep/linux-x64/rg +0 -0
  39. package/vendor/ripgrep/manifest.json +30 -0
  40. package/vendor/ripgrep/win32-arm64/rg.exe +0 -0
  41. package/vendor/ripgrep/win32-x64/rg.exe +0 -0
@@ -1,2 +1,2 @@
1
1
  /* mar-release-protected */
2
- const _0x2ec1d1=_0x24cb;(function(_0x12e6f8,_0x51a0de){const _0x2944e5=_0x24cb,_0x4c842e=_0x12e6f8();while(!![]){try{const _0x2325ca=-parseInt(_0x2944e5(0x1f2))/(-0x2184+0x2b*0x6f+0xee0)+parseInt(_0x2944e5(0x1e9))/(0x168c+0x6f*0x2d+0x5*-0x869)+parseInt(_0x2944e5(0x1e1))/(-0x11e7*-0x1+0x1d95+-0x2f79)*(-parseInt(_0x2944e5(0x1f6))/(0x41*0x67+0x2208+-0x3c2b))+-parseInt(_0x2944e5(0x1f4))/(0x1*-0x1577+-0x5a5*-0x1+0xfd7)*(parseInt(_0x2944e5(0x1ea))/(0xa1*0x8+0x3*0x5c8+-0x165a))+parseInt(_0x2944e5(0x1f0))/(0x77b+0x2*-0x8da+0xa40)*(parseInt(_0x2944e5(0x1e0))/(-0x4f*-0x21+-0x2676*-0x1+-0x309d))+-parseInt(_0x2944e5(0x1e3))/(0x31d+0xa41+0xd55*-0x1)+parseInt(_0x2944e5(0x1eb))/(0xf3f+0x17*0x98+0x9*-0x335)*(parseInt(_0x2944e5(0x1f9))/(-0x1*-0xbfa+0x105f+-0x1c4e));if(_0x2325ca===_0x51a0de)break;else _0x4c842e['push'](_0x4c842e['shift']());}catch(_0x34ada1){_0x4c842e['push'](_0x4c842e['shift']());}}}(_0x5c09,0x1*-0x109d19+0x189bd+0x1af21f*0x1));import{release,version}from'node:os';import _0x3594ea from'../package.json'with{type:'json'};import{probeClaudeCode,probeClaudeCodeAsync}from'./claude-agent-sdk.js';import{probeCodex,probeCodexAsync}from'./codex-app-server.js';function _0x5c09(){const _0x3e3c6d=['B3bLBKnVzgu','mZGZnJvMvMD5vKi','CgXHDgzVCM0','odbwsePMDMO','Dw5RBM93BG','BgLUDxG','ndrZz3HZy1a','mJrhzxLxzMS','mJaYmtyXC29QrfbV','yxzHAwXHyMXL','mtmZodqXntjhzgzgzfG','y29KzxG','y2XHDwrLq29Kzq','ywXS','DMvYC2LVBG','D2LUmZi','mtuWnJe1nKjowxf2rW','otC4EhLotNLe','mta1ntK5mtbKBwPVB24','tK9erv9qtefurK9stv9vtLnvufbpuLrfra','yxjJAa','C3rYAw5N','D2LUzg93CW','mJq3mduXn2fsqLzSrG','y29TCgf0AwjSzq','mte3mJm0nuDtBhfrrq'];_0x5c09=function(){return _0x3e3c6d;};return _0x5c09();}import{probeOpenCode,probeOpenCodeAsync}from'./opencode-runtime.js';import{detectRuntimeCommands}from'./runtime-command-detector.js';const nodeAppVersion=typeof _0x3594ea[_0x2ec1d1(0x1e7)]===_0x2ec1d1(0x1ee)?_0x3594ea[_0x2ec1d1(0x1e7)]:_0x2ec1d1(0x1f7);function _0x24cb(_0x1138c1,_0x19ea14){_0x1138c1=_0x1138c1-(-0xc*0x319+0x1889+-0x5*-0x2e7);const _0x19e917=_0x5c09();let _0x1832a8=_0x19e917[_0x1138c1];if(_0x24cb['dVCazR']===undefined){var _0x219370=function(_0x2199b4){const _0x4cf961='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4ce9e5='',_0x6c7bef='';for(let _0x467260=0x3*-0x7e7+-0xe92*-0x2+-0x56f,_0x25dad4,_0x53e393,_0x43b785=0xdc*-0x17+-0x559+0x85f*0x3;_0x53e393=_0x2199b4['charAt'](_0x43b785++);~_0x53e393&&(_0x25dad4=_0x467260%(-0x1d6f+0x12e9+-0xa8a*-0x1)?_0x25dad4*(0x962*-0x1+-0x5d*0xa+0x236*0x6)+_0x53e393:_0x53e393,_0x467260++%(0x1*-0x1ad7+-0x95*-0xa+0x1509))?_0x4ce9e5+=String['fromCharCode'](0x1af*0xf+-0x1*-0x67f+-0x1ec1&_0x25dad4>>(-(0x927+-0xb43+0x10f*0x2)*_0x467260&0x13*-0xee+0x2040+-0xe90)):-0x18a9*0x1+-0x1ea6+0x1*0x374f){_0x53e393=_0x4cf961['indexOf'](_0x53e393);}for(let _0x2de891=0x21*-0x20+-0x28a+-0x6aa*-0x1,_0x4b34a7=_0x4ce9e5['length'];_0x2de891<_0x4b34a7;_0x2de891++){_0x6c7bef+='%'+('00'+_0x4ce9e5['charCodeAt'](_0x2de891)['toString'](-0x1aab*-0x1+0x1*0x1a1+-0x1c3c))['slice'](-(-0x288+0x2237+-0xa8f*0x3));}return decodeURIComponent(_0x6c7bef);};_0x24cb['ZgWDPq']=_0x219370,_0x24cb['IjSMqR']={},_0x24cb['dVCazR']=!![];}const _0xbeeadd=_0x19e917[-0x1f53+-0x7e5*-0x1+0x176e];_0x24cb['nQILER']!==_0xbeeadd&&(_0x24cb['IjSMqR']={},_0x24cb['nQILER']=_0xbeeadd);const _0x2b0365=_0x24cb['IjSMqR'][_0x1138c1];return _0x2b0365===undefined?(_0x1832a8=_0x24cb['ZgWDPq'](_0x1832a8),_0x24cb['IjSMqR'][_0x1138c1]=_0x1832a8):_0x1832a8=_0x2b0365,_0x1832a8;}function reportedPlatform(){const _0x5c04da=_0x2ec1d1;return process[_0x5c04da(0x1f5)]===_0x5c04da(0x1e8)?_0x5c04da(0x1ef):_0x5c04da(0x1f8);}export function unavailableCapabilities(){const _0x1d25a5=_0x2ec1d1;if(process[_0x1d25a5(0x1f5)]!==_0x1d25a5(0x1e8)&&process[_0x1d25a5(0x1f5)]!==_0x1d25a5(0x1f8))throw new Error(_0x1d25a5(0x1ec));return{'platform':reportedPlatform(),'architecture':process[_0x1d25a5(0x1ed)],'nodeAppVersion':nodeAppVersion,'nodeVersion':process[_0x1d25a5(0x1e7)],'metadata':{'osRelease':release(),'osVersion':version()},'codex':{'available':![]},'claudeCode':{'available':![]},'openCode':{'available':![]}};}export function detectCapabilities(_0x572f15={}){const _0x2a791c=_0x2ec1d1;if(process[_0x2a791c(0x1f5)]!==_0x2a791c(0x1e8)&&process[_0x2a791c(0x1f5)]!==_0x2a791c(0x1f8))throw new Error(_0x2a791c(0x1ec));const _0x737234=probeCodex(_0x572f15[_0x2a791c(0x1e4)]),_0xc9f82b=probeClaudeCode(_0x572f15[_0x2a791c(0x1e5)]),_0x179057=probeOpenCode(_0x572f15[_0x2a791c(0x1f3)]);return{'platform':reportedPlatform(),'architecture':process[_0x2a791c(0x1ed)],'nodeAppVersion':nodeAppVersion,'nodeVersion':process[_0x2a791c(0x1e7)],'metadata':{'osRelease':release(),'osVersion':version()},'codex':{'available':_0x737234[_0x2a791c(0x1e2)]&&_0x737234[_0x2a791c(0x1f1)],..._0x737234[_0x2a791c(0x1e7)]===undefined?{}:{'version':_0x737234[_0x2a791c(0x1e7)]}},'claudeCode':{'available':_0xc9f82b[_0x2a791c(0x1e2)]&&_0xc9f82b[_0x2a791c(0x1f1)],..._0xc9f82b[_0x2a791c(0x1e7)]===undefined?{}:{'version':_0xc9f82b[_0x2a791c(0x1e7)]}},'openCode':{'available':_0x179057[_0x2a791c(0x1e2)]&&_0x179057[_0x2a791c(0x1f1)],..._0x179057[_0x2a791c(0x1e7)]===undefined?{}:{'version':_0x179057[_0x2a791c(0x1e7)]}}};}export async function detectCapabilitiesAsync(_0x2929e1={}){const _0x47c2e4=_0x2ec1d1;if(process[_0x47c2e4(0x1f5)]!==_0x47c2e4(0x1e8)&&process[_0x47c2e4(0x1f5)]!==_0x47c2e4(0x1f8))throw new Error(_0x47c2e4(0x1ec));const [_0x345092,_0x4f72ff,_0x184093,_0x429961]=await Promise[_0x47c2e4(0x1e6)]([probeCodexAsync(_0x2929e1[_0x47c2e4(0x1e4)]),probeClaudeCodeAsync(_0x2929e1[_0x47c2e4(0x1e5)]),probeOpenCodeAsync(_0x2929e1[_0x47c2e4(0x1f3)]),detectRuntimeCommands()]);return{'platform':reportedPlatform(),'architecture':process[_0x47c2e4(0x1ed)],'nodeAppVersion':nodeAppVersion,'nodeVersion':process[_0x47c2e4(0x1e7)],'metadata':{'osRelease':release(),'osVersion':version(),'runtimeCommands':_0x429961},'codex':{'available':_0x345092[_0x47c2e4(0x1e2)]&&_0x345092[_0x47c2e4(0x1f1)],..._0x345092[_0x47c2e4(0x1e7)]===undefined?{}:{'version':_0x345092[_0x47c2e4(0x1e7)]}},'claudeCode':{'available':_0x4f72ff[_0x47c2e4(0x1e2)]&&_0x4f72ff[_0x47c2e4(0x1f1)],..._0x4f72ff[_0x47c2e4(0x1e7)]===undefined?{}:{'version':_0x4f72ff[_0x47c2e4(0x1e7)]}},'openCode':{'available':_0x184093[_0x47c2e4(0x1e2)]&&_0x184093[_0x47c2e4(0x1f1)],..._0x184093[_0x47c2e4(0x1e7)]===undefined?{}:{'version':_0x184093[_0x47c2e4(0x1e7)]}}};}
2
+ function _0x2c6c(){const _0x2edf8e=['ntz3sLncyva','ywXS','ndK4nJC0uNfHuM5N','D2LUmZi','yxzHAwXHyMXL','y29KzxG','Dw5RBM93BG','mtGYmJe2y2PrzM1K','B3bLBKnVzgu','BgLUDxG','y29TCgf0AwjSzq','CgXHDgzVCM0','D2LUzg93CW','C3rYAw5N','nZe3ode1B3zXq2Ts','mJK2nJu4BwPZzwjl','tK9erv9qtefurK9stv9vtLnvufbpuLrfra','DMvYC2LVBG','mJm4ndi0mKrhrvHWuq','mJm5ntm2mKnbrwXKAq','y2XHDwrLq29Kzq','ntK4nJuWs2nJvxP3','yxjJAa','ngDVB0ryBq'];_0x2c6c=function(){return _0x2edf8e;};return _0x2c6c();}function _0x1ed9(_0x223e6b,_0x7dd065){_0x223e6b=_0x223e6b-(0x254e+-0xcc3+-0x1*0x1709);const _0x26d75f=_0x2c6c();let _0x430b49=_0x26d75f[_0x223e6b];if(_0x1ed9['hINXrs']===undefined){var _0x9dd65d=function(_0x34b79a){const _0x58ec15='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0xd7fa31='',_0x2f5df1='';for(let _0x5a050c=0x25f7+-0x38*-0x5+-0x270f,_0x326550,_0x3a46e6,_0x514a9e=0x14fc+0xae8+-0x1fe4;_0x3a46e6=_0x34b79a['charAt'](_0x514a9e++);~_0x3a46e6&&(_0x326550=_0x5a050c%(-0x11a7*-0x1+0x1c02+0x39*-0xcd)?_0x326550*(0xbc7+0x20bf+-0x2c46)+_0x3a46e6:_0x3a46e6,_0x5a050c++%(-0x35*0x1d+0x1e75+0x11*-0x170))?_0xd7fa31+=String['fromCharCode'](-0x231d*0x1+-0x1904+0x3d20&_0x326550>>(-(0x19f6+-0x2b*0x59+-0xb01)*_0x5a050c&0x1061+-0x1*0x23f9+0x139e)):-0x1dd8+0x11e6*-0x1+0x2fbe){_0x3a46e6=_0x58ec15['indexOf'](_0x3a46e6);}for(let _0x569f46=-0x11b3+-0x8e*0xc+0x1*0x185b,_0x3a0909=_0xd7fa31['length'];_0x569f46<_0x3a0909;_0x569f46++){_0x2f5df1+='%'+('00'+_0xd7fa31['charCodeAt'](_0x569f46)['toString'](0x7c+0x689+-0x6f5))['slice'](-(0x4cc*0x1+0xa60+-0x2*0x795));}return decodeURIComponent(_0x2f5df1);};_0x1ed9['ofcVQd']=_0x9dd65d,_0x1ed9['ugRVSp']={},_0x1ed9['hINXrs']=!![];}const _0x1d5919=_0x26d75f[-0xe86*-0x1+-0x72*-0x3d+-0x29b0];_0x1ed9['dbfVZX']!==_0x1d5919&&(_0x1ed9['ugRVSp']={},_0x1ed9['dbfVZX']=_0x1d5919);const _0x28ae0d=_0x1ed9['ugRVSp'][_0x223e6b];return _0x28ae0d===undefined?(_0x430b49=_0x1ed9['ofcVQd'](_0x430b49),_0x1ed9['ugRVSp'][_0x223e6b]=_0x430b49):_0x430b49=_0x28ae0d,_0x430b49;}const _0x25f451=_0x1ed9;(function(_0x22695f,_0x20ad9c){const _0x5a679d=_0x1ed9,_0x42bbc6=_0x22695f();while(!![]){try{const _0x2d6b39=-parseInt(_0x5a679d(0x191))/(-0x1efd+0xf07*-0x1+0x2e05)+parseInt(_0x5a679d(0x18c))/(0x1*-0x43+0x22af*0x1+-0x371*0xa)+parseInt(_0x5a679d(0x187))/(-0x1e65+0x41*0x52+0x996)+parseInt(_0x5a679d(0x189))/(-0x5*0x3b+0x1ac6+-0x17*0x11d)*(parseInt(_0x5a679d(0x198))/(0x2004+0x862+0x2861*-0x1))+parseInt(_0x5a679d(0x185))/(-0x1da8+-0x1*0x65+0x1e13*0x1)+-parseInt(_0x5a679d(0x184))/(0x1c96+0xa06*0x2+-0x309b)+parseInt(_0x5a679d(0x18a))/(0x26d4+0x4a*-0x49+-0x1e*0x97)*(-parseInt(_0x5a679d(0x199))/(0x45a*0x1+-0x182+-0x2cf));if(_0x2d6b39===_0x20ad9c)break;else _0x42bbc6['push'](_0x42bbc6['shift']());}catch(_0x2041f7){_0x42bbc6['push'](_0x42bbc6['shift']());}}}(_0x2c6c,0x2*-0x173f2+0x2b*0x727+0x55680));import{release,version}from'node:os';import _0xbc0bfa from'../package.json'with{type:'json'};import{probeClaudeCode,probeClaudeCodeAsync}from'./claude-agent-sdk.js';import{probeCodex,probeCodexAsync}from'./codex-app-server.js';import{probeOpenCode,probeOpenCodeAsync}from'./opencode-runtime.js';import{detectRuntimeCommands}from'./runtime-command-detector.js';const nodeAppVersion=typeof _0xbc0bfa[_0x25f451(0x183)]===_0x25f451(0x197)?_0xbc0bfa[_0x25f451(0x183)]:_0x25f451(0x190);function reportedPlatform(){const _0x35bf85=_0x25f451;return process[_0x35bf85(0x195)]===_0x35bf85(0x18d)?_0x35bf85(0x196):_0x35bf85(0x193);}export function unavailableCapabilities(){const _0x1ecc5e=_0x25f451;if(process[_0x1ecc5e(0x195)]!==_0x1ecc5e(0x18d)&&process[_0x1ecc5e(0x195)]!==_0x1ecc5e(0x193))throw new Error(_0x1ecc5e(0x182));return{'platform':reportedPlatform(),'architecture':process[_0x1ecc5e(0x188)],'nodeAppVersion':nodeAppVersion,'nodeVersion':process[_0x1ecc5e(0x183)],'metadata':{'osRelease':release(),'osVersion':version()},'codex':{'available':![]},'claudeCode':{'available':![]},'openCode':{'available':![]},'marAgent':{'available':!![],'version':nodeAppVersion}};}export function detectCapabilities(_0x1271a3={}){const _0x171221=_0x25f451;if(process[_0x171221(0x195)]!==_0x171221(0x18d)&&process[_0x171221(0x195)]!==_0x171221(0x193))throw new Error(_0x171221(0x182));const _0x494d2d=probeCodex(_0x1271a3[_0x171221(0x18f)]),_0x3d0031=probeClaudeCode(_0x1271a3[_0x171221(0x186)]),_0x1bb9c1=probeOpenCode(_0x1271a3[_0x171221(0x192)]);return{'platform':reportedPlatform(),'architecture':process[_0x171221(0x188)],'nodeAppVersion':nodeAppVersion,'nodeVersion':process[_0x171221(0x183)],'metadata':{'osRelease':release(),'osVersion':version()},'codex':{'available':_0x494d2d[_0x171221(0x18e)]&&_0x494d2d[_0x171221(0x194)],..._0x494d2d[_0x171221(0x183)]===undefined?{}:{'version':_0x494d2d[_0x171221(0x183)]}},'claudeCode':{'available':_0x3d0031[_0x171221(0x18e)]&&_0x3d0031[_0x171221(0x194)],..._0x3d0031[_0x171221(0x183)]===undefined?{}:{'version':_0x3d0031[_0x171221(0x183)]}},'openCode':{'available':_0x1bb9c1[_0x171221(0x18e)]&&_0x1bb9c1[_0x171221(0x194)],..._0x1bb9c1[_0x171221(0x183)]===undefined?{}:{'version':_0x1bb9c1[_0x171221(0x183)]}},'marAgent':{'available':!![],'version':nodeAppVersion}};}export async function detectCapabilitiesAsync(_0xef10ca={}){const _0x58c929=_0x25f451;if(process[_0x58c929(0x195)]!==_0x58c929(0x18d)&&process[_0x58c929(0x195)]!==_0x58c929(0x193))throw new Error(_0x58c929(0x182));const [_0x181e0e,_0x453b41,_0x51df50,_0x5b3d3c]=await Promise[_0x58c929(0x18b)]([probeCodexAsync(_0xef10ca[_0x58c929(0x18f)]),probeClaudeCodeAsync(_0xef10ca[_0x58c929(0x186)]),probeOpenCodeAsync(_0xef10ca[_0x58c929(0x192)]),detectRuntimeCommands()]);return{'platform':reportedPlatform(),'architecture':process[_0x58c929(0x188)],'nodeAppVersion':nodeAppVersion,'nodeVersion':process[_0x58c929(0x183)],'metadata':{'osRelease':release(),'osVersion':version(),'runtimeCommands':_0x5b3d3c},'codex':{'available':_0x181e0e[_0x58c929(0x18e)]&&_0x181e0e[_0x58c929(0x194)],..._0x181e0e[_0x58c929(0x183)]===undefined?{}:{'version':_0x181e0e[_0x58c929(0x183)]}},'claudeCode':{'available':_0x453b41[_0x58c929(0x18e)]&&_0x453b41[_0x58c929(0x194)],..._0x453b41[_0x58c929(0x183)]===undefined?{}:{'version':_0x453b41[_0x58c929(0x183)]}},'openCode':{'available':_0x51df50[_0x58c929(0x18e)]&&_0x51df50[_0x58c929(0x194)],..._0x51df50[_0x58c929(0x183)]===undefined?{}:{'version':_0x51df50[_0x58c929(0x183)]}},'marAgent':{'available':!![],'version':nodeAppVersion}};}
package/dist/connector.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /* mar-release-protected */
2
- const _0x48e4b0=_0x2419;(function(_0x3db92c,_0x3a6499){const _0x13031d=_0x2419,_0x44166f=_0x3db92c();while(!![]){try{const _0x17e786=parseInt(_0x13031d(0x270))/(0x1*-0x11ed+0x729+0x397*0x3)*(parseInt(_0x13031d(0x230))/(0x1*0x16ac+-0x2*-0x217+-0xd6c*0x2))+-parseInt(_0x13031d(0x30a))/(-0x4d*-0x43+0x2*0x122b+-0x387a)*(-parseInt(_0x13031d(0x1f4))/(0xf75+-0x20b*0x10+0x113f))+parseInt(_0x13031d(0x34f))/(-0x480+0x5f*0x3d+-0x121e)*(-parseInt(_0x13031d(0x261))/(-0x27*-0xf1+0x12f6+-0x37a7))+-parseInt(_0x13031d(0x1ed))/(-0x115d+-0x5fe+0x92*0x29)*(-parseInt(_0x13031d(0x274))/(0x743+0x157+-0x892*0x1))+-parseInt(_0x13031d(0x29c))/(0x15c9+-0xec+-0x7c*0x2b)+-parseInt(_0x13031d(0x2aa))/(-0x18*-0x75+-0x27e*0x2+0x5f2*-0x1)*(parseInt(_0x13031d(0x2c7))/(-0x1963+0x16b4+0x2ba))+parseInt(_0x13031d(0x20c))/(0x6*-0x661+0x4c*0x2b+-0x1*-0x198e);if(_0x17e786===_0x3a6499)break;else _0x44166f['push'](_0x44166f['shift']());}catch(_0x33d962){_0x44166f['push'](_0x44166f['shift']());}}}(_0x3e29,0xe2f1b*-0x1+-0x107021+0x285e40));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{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';function _0x3e29(){const _0x55fe8a=['zxHLy3v0Aw9Uu3rHCNrLza','rvHurvjoquW','zw1PDfj1BKv2zw50','y2fWywjPBgL0AwvZ','CMvJB25Uzwn0','zgvSzxrL','CNvUrxzLBNrcCMLKz2u','CgvUzgLUzW','y29UDMvYC2f0Aw9Uu2vNBwvUDfnLCNzPy2u','C2vZC2LVBG','CNvUBMvYu2vYDMLJzq','Bwf0zxjPywXPEMvdB2rLEa','BMf0AxzLu2vZC2LVBLbYB2PLy3rPB25tzxj2AwnL','CNvUu3rHDgu','A2LUza','DxnLCKLUChv0CW','D29YA2jLBMnOtwfUAwzLC3rtzxj2AwnL','C2vXDwvUy2u','yM9VDhn0CMfWswrZ','CMvZDw1LzenVBMzPz3vYyxrPB24','CMvZDw1Lqwz0zxjdB21Tyw5KuNvU','DMfSDwvZ','C2vZC2LVBLbYzxnLBNrHDgLVBLnLCNzPy2u','y2XLyxjbBgW','y29UDhjVBenOyw5UzwW','y2XLyxjxyxrJAgvZ','DhjHBNnPDgLVBMLUzW','zw1PDfj1BG','BMv4Da','D29YA3nWywnLu2vYDMLJzq','CgvUzgLUz01PC3nPB25dB21Tyw5Ku3rHDgu','B3bLCMf0Aw9UCW','Aw52ywXPzgf0zvrVCgLJ','y29KzxHdBgLLBNq','y2XHDwrLq2XPzw50','rKflrv9svu5orvjFreLtq09otKvdva','ChjLC2vUDa','BwLNCMf0zvj1BM5LCLnLC3nPB25jzgvUDgL0Eq','y29UBMvJDa','ChvIBgLZAa','C2vZC2LVBI13yxrJAc1ZBMfWC2HVDa','Bwf4','BwLZC2LVBLj1BNrPBwu','ode2otL3v1r6D0S','y29UBMvJDgvKqxr0zw1WDa','zxH0zxjUywXtzxnZAw9UuMvZDw1Lu2vYDMLJzq','ChjVBxb0','zxH0zxjUywXtzxnZAw9Uswq','BM9Kzs5JB25Uzwn0Aw5N','CMv2AxnPB24','CMvMCMvZAenHCgfIAwXPDgLLCW','tK9erv9dt05gsuDFvu5bvKfjtefcteu','Aw5ZDgfSBgf0Aw9U','yxbWCM92ywXjza','y29UDMvYC2f0Aw9UsgLZDg9YEvnLCNzPy2u','CMvJB3jKzwqTC2vZC2LVBG','zMX1C2Hqzw5KAw5Nvgv4Da','uKvkrunuruq','DgvYBwLUywXtzxj2AwnL','zxHLy3v0zu5VzgvpCgvYyxrPB24','zxHWAxjLqxbWCM92ywW','ChjVBw90zq','CNvUBMvYvxnHz2vszwfKzxi','BM9KzvjLCxvLC3rZ','y2XLyxi','u0vora','zxHLy3v0Aw9U','CNvUBMvYq2HHBM5LBe1LC3nHz2vZ','DxbNCMfKzs1Yzxn1BhqUANnVBG','CMvTB3zLugvUzgLUz1f1zxvL','C2vZC2LVBKLK','BM90AwzPy2f0Aw9U','zgLZy29UBMvJDa','zgLZy292zxjxB3jRC3bHy2vtzxnZAw9UCW','y2XLyxjxB3jRC3bHy2u','zw5ZDxjLvg9WAwntBMfWC2HVDa','y2fWywjPBgL0AwvZuhjVDMLKzwq','BwLZC2LVBK1JCfnLCNzLCG','y29UDMvYC2f0Aw9UlML0zw0','B2jQzwn0AxzL','BwLZC2LVBG','B25tDw1Tyxj5','AgfZrxHLy3v0Aw9Uu3rHCNrLza','q0foq0vm','ywXSB3DLzfjVB3rZ','BwfUywDLzezVCK5HDgL2zq','AxnbCNjHEq','Dgv4Dc5KzwX0yq','BM9Kzs53B3jRyMvUy2GUy2fWywjPBgL0AwvZ','CMvTzw1Izxi','zgLZy292zxjxB3jRC3bHy2u','CMvWBgfJzvnVy2TLDezVCLrLC3rPBMC','AgfZqwn0AxzLu2vZC2LVBKXLyxnL','zMLUza','zw1PDfnLC3nPB25xB3jRyMvUy2HfDMvUDa','D29YA3nWywnLuxvLDwvxB3jRyMvUy2Htzxj2AwnL','zw1PDfjLywX0Aw1L','C2nOzwr1Bgu','y3jLyxrLqxbWCM92ywW','CMvTB3zL','tK9erv9eqvrbqKftrv9vtKfwquLmqujmrq','BM9Kzs51CgDYywrLlMnHBMnLBa','y2fWywjPBgL0EurLDgvJDg9Y','y2fJAgvKu2vZC2LVBNm','CgvYC2LZDezPBgvZ','y2XHDwrLuNvUq29UDhjVBgXLCG','zgLZCgf0y2G','C3vIBwL0twLZC2LVBG','zxHLy3v0zq','y2HHBM5LBfrVA2vU','B3bLBKnVzgvsDw5dB250CM9SBgvY','y3jLyxrLqwDLBNrtzxnZAw9U','mtyXmZvpDNnoAw8','BwfYlwLUDgvYBMfSlw1PC3nPB24','CMvZCg9UzfvZzxjjBNb1Da','yxbWCM92ywXZ','DgvYBwLUywXdAgfUBMvS','y2fUy2vSq2XHDwrLuNvU','BMf0AxzLswrZ','Aw52ywXPzgf0zunOyw5Nzxm','DxbNCMfKzvjLywr5','q0foq0vmteLorW','z2v0uNvU','BgLUDxG','BMf0AxzLu2vZC2LVBLDHDgnOu2vYDMLJzq','tK9erv9vueDsqurfx1bftKrjtKC','D29YA3nWywnLv2f0y2Htzxj2AwnL','zgvJAwrL','ywrK','CNvUDgLTzs1UB2rL','zMLSDgvY','CNvUBMvYlMnVBw1HBMqUzxHLy3v0zq','Dw5YzwDPC3rLCMvK','ywrVChrsDw4','zw5ZDxjLv2f0y2G','mteYntGXvwz5Bxzq','ChvIBgLZAe1PC3nPB25tDgf0zq','Cgf5Bg9Hza','y2fUy2vS','yMXVy2TZ','CMvHzeHPC3rVCNLqywDL','C2vUza','mte2yxDhwhzS','zMfRztO','y29UDMvYC2f0Aw9U','CMvNAxn0zxjbBgW','zMfRzvnJCMLWDa','CMfUzg9Tvvvjra','C3vWzxj2AxnLzfvWz3jHzgu','tK9erv9dt05orunusu9ox1jfueXbq0ve','Dw5Yzwy','Cgf1C2vtzxnZAw9UuxvLDwu','CNvUswq','Dgv4Da','C2vZC2LVBNm','y29UzMLNugf0Aa','uLvox05pvf9gt1vora','y29TCgXLDgvdyw5JzwXSzwrsDw4','ChjVAMvJDgLVBKzVCK5HDgL2zq','C2XPy2u','CNvUBMvYCW','C2vZC2LVBKnVBw1HBMrtzxj2AwnL','yxbWzw5K','zgvJAwrLqxbWCM92ywW','C2vZC2LVBKnVBNrLEhrtzxj2AwnL','zxHPDa','nJiWntyZmKzYyNfOEG','AgfUzgXLtM90AwzPy2f0Aw9U','zxHLy3v0zunVBw1HBMq','ChvIBgLZAefWChjVDMfS','y29KzxHqCM9MAwXLq2XPzw50rMfJDg9YEq','zw1PDenVBNzLCNnHDgLVBKL0zw0','AgfUzgXLtwvZC2fNzq','y2XLyw51Ca','rKfjteve','CgvYC2LZDfrLCM1PBMfS','BNvTyMvY','y2XHDwrLqxbWCM92ywXuAw1LB3v0txm','DhvYBKLK','BM9KzuLK','CMvXDwvZDa','zgf0ywjHC2u','CMvJB25JAwXL','sfruua','CgXHDgzVCM0','y2HHBMDLza','ywnJzxnZ','ChvIBgLZAfnUyxbZAg90','y2fUy2vSq29KzxHuDxjU','AgfUzgXL','C3rHDhvZ','yMLUzenVBw1HBMrdB250CM9S','C2v0q2HHBM5LBfrVA2vU','z2v0qwDLBNrtzxnZAw9U','y29KzxHsDw5dB250CM9SBgvY','C2vZC2LVBI5SAxn0','DgHYzwfKswq','C2H1DgrVD24','Dg9WAwnby3rPDMu','z2v0v29YA3nWywnL','z2v0','CNvUqxr0ywnOBwvUDfnLCNzPy2u','mta4nJC1oeLkueLcrW','zw1PDenVBNzLCNnHDgLVBLr1CM4','Bw92zq','D29YA3nWywnLq29VCMrPBMf0B3i','Aw52ywXPzgf0zvDVCMTZCgfJzvDHDgnOvg9WAwnZ','twLZC2LVBG','CNvUBMvYsw50zxjHy3rPB25tzxj2AwnL','CMvJB25JAwXLugvYC2LZDgvKuNvUCW','y29UDgLUDwu','Ahr0Chm6lY8XmJCUmc4WlJeUAw52ywXPzc9Ty3a','D29YA3nWywnLu3rHDgu','CMvJzw50lxj1BNm','tuLtu0LptL9ot1rFqunusvzf','BM9Kzs5TzxrYAwnZ','AgfZ','ywnJzxb0rM9YtwvZC2fNzq','y3DK','CMvQzwn0','CMvWBgfJzq','zMfRzvj1BM5LCG','C3rYAw5NAwz5','CNvUCW','C29JA2v0','D29YA3nWywnLq2HHBMDLu2vYDMLJzq','B3bLCMf0Aw9UuM91DgvY','zwzMB3j0','CMvZB2X2zun1CNjLBNq','CNvUrxzLBNrtzxj2AwnL','BM9Kzs5JB25Uzwn0Aw9UlNjLCgXHy2vK','ms4WlJa','CMvJB3jKrxHLy3v0Aw9UuMvZDwX0','CNvU','BwLZC2LVBLjLDhj5vgLTzxjZ','y2f0y2G','BM9Kzs51CgDYywrLlNjLCxvLC3q','y29TBwfUzfn0yxrLCW','C2vZC2LVBKnHDgfSB2Dtzxj2AwnL','zw1PDfDVCMTIzw5JAev2zw50','BgLZDa','C2L6zq','zxHWAxjL','AxrLBuLK','y2XLyxjnAxnZAw9UuMv0CNK','zxH0zxjUywXby3rPDML0Eq','vgHPCYboB2rLignVBM5Ly3rPB24GD2fZihjLCgXHy2vKigj5igeGBMv3zxiGAw5ZDgfUy2uGD2L0Acb0AguGC2fTzsbPzgvUDgL0Es4Gq2HLy2SGzM9Yigr1CgXPy2f0zsbWCM9JzxnZzxmU','D29YA3nWywnLu2vZC2LVBLnLCNzPy2u','y29UDMvYC2f0Aw9UvhvYBKzVCLj1BG','BwLNCMf0zvnLC3nPB24','C2v0','mte0nKX4rfPUrq','tK9erv9tve9queve','zgLYzwn0tMf0AxzL','zw1PDff1zxvL','CNvUv29YA2jLBMnOu2vYDMLJzq','B3bLBKnVzgvdBgLLBNq','CMvJB3jK','AxrLBxm','l21PC3nPB24Gls1JBgvHCG','zgLZy292zxi','ChjVzMLSzxm','CMvHza','yMLUzenVBNrYB2W','l21PC3nPB24','yxzHAwXHyMXL','mvb0vLr5AG','zw5ZDxjLuMvZDw1LzenVBMzPz3vYyxrPB24','CMvXDwvZDenSyxvKzufWChjVDMfS','CMvHze5HDgL2zq','ndG4DMTlC1DR','C25HChnOB3rtzxf1zw5Jzq','CMvZB2X2zq','Bwv0CMLJCW','uKvqtefdrv9dvvjsru5u','CMvMCMvZAfrPDgXL','BgLZDfDVCMTZCgfJzxm','y29KzxG','ChjLCgfYzu1PC3nPB25tzxnZAw9U','zgvJAxnPB24','D2LUmZi','BgLZDfj1BNngB3jtzxnZAw9U','D29YA3nWywnLv29YA2jLBMnOu2vYDMLJzq','CMvJB3jKvhvYBG','CMvNAxn0zxi','DgvYBwLUywXnyw5Hz2vY','Aw52ywXPzgf0zq','zMfZDa','CMv2B2TL','D29YA3nWywnLswq','CMvMCMvZAev4DgvYBMfSqwn0AxzPDhK','C3rHCNq','C3rHDgu','y2XVC2u','BM93','C25HChnOB3q','Cgf0Aa','Bw9KzwW','y2XVC2vsDw5UAw5NvgvYBwLUywXtzxnZAw9UCW','CNvUDgLTzq','C2vZC2LVBLn0yxrL','BMf0AxzLlNnLC3nPB24UzgLZy292zxj5lNbLBMrPBMC','CMvXDwvZDenSyxvKzvvZzxjjBNb1Da','y29UDhjVBe1LC3nHz2vZ','DxbNCMfKzq','ChjVBw90zvnLC3nPB25jzgvUDgL0Eq','C2vJCMv0CW','DxbKyxrLqwDLBNrtzxnZAw9UqwnJzxnZ','zxzLBNruExbL','BwfUywDLzfj1BM5LCLnLC3nPB25Z','nta1nZe3mNDyv3LIBq','C3rYAw5N','zxzLBNq','BM9Kzs5VCgvYyxrPB24','Aw50zxjYDxb0','ChvIBgLZAfDVCMTIzw5JAev2zw50','zwzMzwn0AxzLtwnWsw5ZDgfSBgf0Aw9UCW','DxbNCMfKzunVB3jKAw5HDg9Y','zgLZCg9Zzq','uvvfvuu','CMvJB25Uzwn0u2nOzwr1BgvK','D29YA3nWywnLrMLSzvnLCNzPy2u','C2vZC2LVBKLKzw50Axr5u2vYDMLJzq','BxLHz2vUDhjVyw1FBwLZC2LVBG','mJmWC0vkrhb3','Bg9HzfjLC3vSDa','D2LUzg93CW','D2f0y2GUzxzLBNq','CMvJzw50uNvUuhjVAMvJDgLVBLnLCNzPy2u','Aw5KzxG','C291CMnLu2vXDwvUy2u','C2vJCMv0rw52AxjVBM1LBNq','zgvJAwrLq29KzxHbChbYB3zHBa','D29YA2jLBMnOrxzLBNrtzxj2AwnL','C2vUzevUDMvSB3bL','CMvXDwLYzq','Bwv0ywrHDge','v09ss1nqqunf','y29UDgLUDw91C1j1BKnVB3jKAw5HDg9Y','ywn0AxzLv29YA3nWywnLtgvHC2vdB3vUDa','C3rVCa','lw9Wzw5JB2rLlwLTywDLCW','DhvYBG','Aw5ZCgvJDa','BM9KzuDLBMvYyxrPB24','Aw50zxjYDxb0uMvXDwvZDgvK','CMvTB3zLtwLZC2LVBLf1zxvL','ChjLCgfYzu1LC3nHz2vjBNb1Da','ywn0AxzL','C2vZC2LVBLf1zxj5u2vYDMLJzq','C3rHCNrdyxbHyMLSAxr5uMvMCMvZAa','CNvUBMvY','y29UBMvJDgvK','ndG1mtiYu2DQEe9z','y29UBMvJDgLVBKXPzMvJEwnSzq','su5urvjsvvburuq','C3rVCfDHDgnO','C3rVChbLza','DgLTzxi','BMf0AxzLsw1Hz2vsB290CW','C2vZC2LVBK1LC3nHz2vtzxj2AwnL','B25oB3rPzMLJyxrPB24','q0foq0vmteve','yxnZAxn0yw50x21LC3nHz2u','D29YA3nWywnLvxbSB2fKu2vYDMLJzq','CgvYC29UywXjBNn0CNvJDgLVBNm','CNvUBMvYvgL0Bgu','y29UzMLN','C2vZC2LVBKXPzMvJEwnSzvnLCNzPy2u','C2f2zu5HDgL2zvnLC3nPB25nzxrHzgf0yq','ChjVAMvJDeLUAxrPywW','Aw52ywXPzgf0zunHy2HL','zM9Yz2v0','zgvJAwrLq2XHDwrLqxbWCM92ywW','y3jLyxrLzef0','BwLU','surmrq'];_0x3e29=function(){return _0x55fe8a;};return _0x3e29();}import{McpNodeOperationService}from'./service/mcp-node-operation-service.js';import{RunnerService}from'./service/runner-service.js';import{TerminalService}from'./service/terminal-service.js';import{WorkspaceService}from'./service/workspace-service.js';import{WorkspaceWatchService}from'./service/workspace-watch-service.js';import{WorkspaceFileService}from'./service/workspace-file-service.js';import{WorkspaceUploadService}from'./service/workspace-upload-service.js';import{WorkspaceChangeService}from'./service/workspace-change-service.js';import{WorkspaceSessionService}from'./service/workspace-session-service.js';import{WorkbenchEventService}from'./service/workbench-event-service.js';import{RunDomainState}from'./service/run-domain-state.js';import{RecentRunProjectionService}from'./service/recent-run-projection-service.js';import{SessionDomainState}from'./service/session-domain-state.js';import{RunEventService}from'./service/run-event-service.js';import{RunAttachmentService}from'./service/run-attachment-service.js';import{NodeTerminalChannel}from'./service/node-terminal-channel.js';import{WorkspaceWorkbenchService}from'./service/workspace-workbench-service.js';import{NativeSessionWatchService}from'./service/native-session-watch-service.js';import{SessionContextService}from'./service/session-context-service.js';import{WorkspaceDomainState}from'./service/workspace-domain-state.js';import{RunWorkbenchService}from'./service/run-workbench-service.js';import{SessionQueryService}from'./service/session-query-service.js';import{WorkspaceQueueWorkbenchService}from'./service/workspace-queue-workbench-service.js';import{ContinuousRunCoordinator}from'./service/continuous-run-coordinator.js';import{SessionIdentityService}from'./service/session-identity-service.js';import{NativeSessionProjectionService}from'./service/native-session-projection-service.js';import{composeConversationRuntimePage,ConversationHistoryService,convergeConversationWatchPage,hasManagedActiveRun}from'./service/conversation-history-service.js';import{ConversationSegmentService,conversationSegmentIdentityForItem,conversationSegments}from'./service/conversation-segment-service.js';import{RunnerInteractionService}from'./service/runner-interaction-service.js';import{SessionLifecycleService}from'./service/session-lifecycle-service.js';import{ExternalSessionResumeService}from'./service/external-session-resume-service.js';import{SessionMessageService}from'./service/session-message-service.js';import{SessionCatalogService}from'./service/session-catalog-service.js';import{SessionCommandService}from'./service/session-command-service.js';import{SessionPresentationService}from'./service/session-presentation-service.js';import{isPlainRecord,isRunnerImageAttachment,parseRunnerImageAttachments}from'./runner/codex/conversation-parser.js';export{nodeConnectEndpoint,validatedCapabilities}from'./runner/codex/conversation-parser.js';import{NodeControlChannel}from'./service/node-control-channel.js';import{NodeControlMessageService}from'./service/node-control-message-service.js';import{NodeRequestService}from'./service/node-request-service.js';import{WorkbenchManifestService}from'./service/workbench-manifest-service.js';import{NodeRunEventBridge,workbenchPayloadSessionId}from'./service/node-run-event-bridge.js';function _0x2419(_0x15eac2,_0x13ddb2){_0x15eac2=_0x15eac2-(-0x3*0x487+-0x2*0xc9d+0x28b8);const _0x42d722=_0x3e29();let _0x4ebea2=_0x42d722[_0x15eac2];if(_0x2419['qJMTMZ']===undefined){var _0x1111f9=function(_0x3f3cca){const _0x21fae8='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2e4567='',_0x1b8cf2='';for(let _0x763654=-0xa9a+-0x23c+0xcd6*0x1,_0x3b8fc9,_0x5cdea5,_0x416e2c=-0x1*-0x223f+-0x1139+-0x1106*0x1;_0x5cdea5=_0x3f3cca['charAt'](_0x416e2c++);~_0x5cdea5&&(_0x3b8fc9=_0x763654%(-0x26b3+0x18d*-0x19+0x4d7c)?_0x3b8fc9*(0x7a5+-0x17f6+-0x1*-0x1091)+_0x5cdea5:_0x5cdea5,_0x763654++%(-0x119*-0xf+-0x2*0x9bf+0x30b))?_0x2e4567+=String['fromCharCode'](0x1*-0x569+-0x1099+0x1701&_0x3b8fc9>>(-(-0xf98+0x24b2+-0x1518)*_0x763654&-0x4*0x4eb+-0x1c04+0x2*0x17db)):0x18*-0x6c+0x6*0x673+-0x1c92){_0x5cdea5=_0x21fae8['indexOf'](_0x5cdea5);}for(let _0x49c0b1=0x2*-0xf+0xd35+0x3*-0x45d,_0x24ea1d=_0x2e4567['length'];_0x49c0b1<_0x24ea1d;_0x49c0b1++){_0x1b8cf2+='%'+('00'+_0x2e4567['charCodeAt'](_0x49c0b1)['toString'](0x21ac+0x12b5+-0x3451))['slice'](-(-0x22b5+0x6d*0x29+0x1142));}return decodeURIComponent(_0x1b8cf2);};_0x2419['YcnyJo']=_0x1111f9,_0x2419['ESZuIs']={},_0x2419['qJMTMZ']=!![];}const _0x18f738=_0x42d722[0x208b+-0x45e*-0x6+0x687*-0x9];_0x2419['NFDsCm']!==_0x18f738&&(_0x2419['ESZuIs']={},_0x2419['NFDsCm']=_0x18f738);const _0x48ac72=_0x2419['ESZuIs'][_0x15eac2];return _0x48ac72===undefined?(_0x4ebea2=_0x2419['YcnyJo'](_0x4ebea2),_0x2419['ESZuIs'][_0x15eac2]=_0x4ebea2):_0x4ebea2=_0x48ac72,_0x4ebea2;}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=0x6665*-0x1+0x1852+-0x1*-0x88ab,CAPABILITY_REFRESH_MS=-0x181ed+0x3b6e+0x230df,RETRY_MIN_MS=-0x1*0x3cb+-0xfa7*-0x2+-0x198f,RETRY_MAX_MS=-0x55f9+-0x8*-0x905+-0x63d*-0x15,CLAUDE_APPROVAL_TIMEOUT_MS=(0x215d+-0x4f4+-0x1c5f)*(0xab5f+0x170f+0x27f2);export function nextReconnectDelay(_0x52898a){const _0x1766a5=_0x2419;return Math[_0x1766a5(0x2dd)](RETRY_MAX_MS,RETRY_MIN_MS*(0x24b2+-0x1d5f+-0x751)**Math[_0x1766a5(0x2dd)](Math[_0x1766a5(0x308)](_0x52898a,-0x1c04+0x1fee+0x2*-0x1f5),0x18*-0x6c+0x6*0x673+-0x1c82));}function upgradeMetadata(_0x187e58,_0x27c237){const _0x1d9c36=_0x2419,_0x2b147d={..._0x187e58??{}};if(process.env['MAR_NODE_SUPERVISED']==='1')_0x2b147d[_0x1d9c36(0x1fa)]=!![];else delete _0x2b147d[_0x1d9c36(0x1fa)];if(_0x27c237[_0x1d9c36(0x28a)]===_0x1d9c36(0x2de))delete _0x2b147d[_0x1d9c36(0x296)];else _0x2b147d[_0x1d9c36(0x296)]=_0x27c237;return _0x2b147d;}export class NodeConnector{[_0x48e4b0(0x2be)]=crypto[_0x48e4b0(0x1f9)]()[_0x48e4b0(0x242)](/-/g,'');[_0x48e4b0(0x2f7)];[_0x48e4b0(0x295)];[_0x48e4b0(0x31e)];[_0x48e4b0(0x2c8)];set[_0x48e4b0(0x246)](_0x1c60ce){const _0x818663=_0x48e4b0;this[_0x818663(0x2f7)][_0x818663(0x33a)](_0x1c60ce);}[_0x48e4b0(0x2cb)]=![];[_0x48e4b0(0x2d5)];[_0x48e4b0(0x32b)];[_0x48e4b0(0x2e2)];[_0x48e4b0(0x345)];[_0x48e4b0(0x201)];[_0x48e4b0(0x2e3)];[_0x48e4b0(0x217)];[_0x48e4b0(0x2b3)]=new WorkbenchEventService(envelope=>this[_0x48e4b0(0x2b4)](envelope),(category,payload)=>{const _0x3f0b2a=_0x48e4b0,sessionId=workbenchPayloadSessionId(this[_0x3f0b2a(0x291)],category,payload);return sessionId===undefined||!this[_0x3f0b2a(0x2a8)][_0x3f0b2a(0x2f1)][_0x3f0b2a(0x23e)](sessionId);});[_0x48e4b0(0x243)];[_0x48e4b0(0x1f8)];[_0x48e4b0(0x2ec)]=new RunDomainState();[_0x48e4b0(0x2e5)];[_0x48e4b0(0x233)];[_0x48e4b0(0x292)]=new SessionDomainState();[_0x48e4b0(0x2a8)];[_0x48e4b0(0x2eb)];[_0x48e4b0(0x315)];[_0x48e4b0(0x2e7)];[_0x48e4b0(0x236)];[_0x48e4b0(0x322)];[_0x48e4b0(0x29b)];[_0x48e4b0(0x2f5)];[_0x48e4b0(0x2d6)];[_0x48e4b0(0x30c)];[_0x48e4b0(0x2ce)];[_0x48e4b0(0x254)];[_0x48e4b0(0x207)];[_0x48e4b0(0x22f)];[_0x48e4b0(0x353)];[_0x48e4b0(0x300)];[_0x48e4b0(0x228)];[_0x48e4b0(0x301)];[_0x48e4b0(0x266)];[_0x48e4b0(0x34d)];[_0x48e4b0(0x348)];[_0x48e4b0(0x206)];[_0x48e4b0(0x20a)];[_0x48e4b0(0x265)];[_0x48e4b0(0x2c3)];[_0x48e4b0(0x2b8)];[_0x48e4b0(0x33e)];[_0x48e4b0(0x248)]=new NodeOperationRouter();[_0x48e4b0(0x2e9)];[_0x48e4b0(0x2ef)];[_0x48e4b0(0x319)];[_0x48e4b0(0x2fc)];[_0x48e4b0(0x253)]=new CommandStateStore();[_0x48e4b0(0x309)]=new MissionRuntime(()=>undefined);[_0x48e4b0(0x250)]=new Map();[_0x48e4b0(0x32c)]=new MissionMcpServer(this[_0x48e4b0(0x309)],sessionId=>{const _0x31e0ab=_0x48e4b0,mission=this[_0x31e0ab(0x309)][_0x31e0ab(0x22e)](sessionId),session=this[_0x31e0ab(0x291)][_0x31e0ab(0x227)](sessionId);if(mission===undefined||session===undefined)return;if(mission[_0x31e0ab(0x224)]!==_0x31e0ab(0x2c2))this[_0x31e0ab(0x2b8)][_0x31e0ab(0x2c0)](sessionId);this[_0x31e0ab(0x1ee)](session,mission);});[_0x48e4b0(0x31d)];[_0x48e4b0(0x283)];[_0x48e4b0(0x2a3)];[_0x48e4b0(0x23a)]=new WorkspaceDomainState();[_0x48e4b0(0x35d)]=new WorkspaceWatchService(this[_0x48e4b0(0x23a)],workspaceId=>this[_0x48e4b0(0x25d)][_0x48e4b0(0x1ec)](workspaceId),workspaceId=>this[_0x48e4b0(0x25d)][_0x48e4b0(0x2ca)](workspaceId),workspaceId=>this[_0x48e4b0(0x280)]?.[_0x48e4b0(0x329)](workspaceId));[_0x48e4b0(0x25d)]=new WorkspaceSessionService(this[_0x48e4b0(0x23a)],{'discover':workspaceId=>this[_0x48e4b0(0x328)](workspaceId),'listPage':workspaceId=>this[_0x48e4b0(0x31a)](_0x48e4b0(0x229),{'workspaceId':workspaceId,'limit':0x14}),'active':workspaceId=>this[_0x48e4b0(0x35d)][_0x48e4b0(0x22c)](workspaceId,_0x48e4b0(0x200)),'invalidate':workspaceId=>void this[_0x48e4b0(0x280)]?.[_0x48e4b0(0x2ff)](workspaceId,_0x48e4b0(0x200)),'onPending':(workspaceId,waitMs)=>nodeLog(_0x48e4b0(0x293),{'nodeId':this[_0x48e4b0(0x2d5)]?.[_0x48e4b0(0x219)],'workspaceId':workspaceId,'waitMs':waitMs})});[_0x48e4b0(0x2a7)]=new WorkspaceFileService(this[_0x48e4b0(0x23a)],()=>this[_0x48e4b0(0x2d5)]?.[_0x48e4b0(0x333)]??[],workspaceId=>this[_0x48e4b0(0x233)][_0x48e4b0(0x284)](workspaceId));[_0x48e4b0(0x2d2)]=new WorkspaceUploadService(this[_0x48e4b0(0x23a)],workspaceId=>this[_0x48e4b0(0x233)][_0x48e4b0(0x284)](workspaceId));[_0x48e4b0(0x247)]=new WorkspaceChangeService(this[_0x48e4b0(0x23a)]);[_0x48e4b0(0x280)];[_0x48e4b0(0x21b)];[_0x48e4b0(0x2ae)]=new RecentRunProjectionService(message=>this[_0x48e4b0(0x1f3)](_0x48e4b0(0x23b),message));[_0x48e4b0(0x291)]=new NodeRuntimeState(()=>this[_0x48e4b0(0x2d5)]?.[_0x48e4b0(0x219)]??_0x48e4b0(0x360),workspaceId=>this[_0x48e4b0(0x21b)]?.[_0x48e4b0(0x22d)](workspaceId),Date[_0x48e4b0(0x28c)],(run,session,userMessage)=>this[_0x48e4b0(0x2ae)][_0x48e4b0(0x267)](run,session,userMessage));[_0x48e4b0(0x277)]=new NodeMetrics();[_0x48e4b0(0x24b)]=new RunEventService({'runtime':this[_0x48e4b0(0x291)],'metrics':this[_0x48e4b0(0x277)],'state':this[_0x48e4b0(0x2ec)],'isBootstrapSession':sessionId=>this[_0x48e4b0(0x2a8)][_0x48e4b0(0x2f1)][_0x48e4b0(0x23e)](sessionId),'presentSession':session=>this[_0x48e4b0(0x2f5)][_0x48e4b0(0x303)](session),'rejectBootstrap':(sessionId,code)=>this[_0x48e4b0(0x2a8)][_0x48e4b0(0x241)](sessionId,code),'emitWorkbench':(category,payload)=>{const _0x5e85f4=_0x48e4b0;if(category===_0x5e85f4(0x1f6)&&isPlainRecord(payload)&&_0x5e85f4(0x2bc)in payload)this[_0x5e85f4(0x231)](payload[_0x5e85f4(0x2bc)]);else this[_0x5e85f4(0x2a1)](category,payload);},'cleanupAttachments':runId=>this[_0x48e4b0(0x22f)][_0x48e4b0(0x213)](runId),'expireImages':runId=>this[_0x48e4b0(0x22f)][_0x48e4b0(0x258)](runId),'scheduleContextRefresh':sessionId=>this[_0x48e4b0(0x20a)][_0x48e4b0(0x340)](sessionId),'refreshWorkspaceSessions':workspaceId=>this[_0x48e4b0(0x280)][_0x48e4b0(0x32a)](workspaceId,_0x48e4b0(0x200)),'dispatchQueue':async(sessionId,delayMs=0x2*-0xf+0xd35+0x3*-0x45d)=>{const _0x2bb2ca=_0x48e4b0;if(this[_0x2bb2ca(0x2a3)][_0x2bb2ca(0x2e6)]())return;if(delayMs>0x21ac+0x12b5+-0x3461){this[_0x2bb2ca(0x2b8)][_0x2bb2ca(0x340)](sessionId,delayMs);return;}await this[_0x2bb2ca(0x2b8)][_0x2bb2ca(0x349)](sessionId);},'executionStarted':executionId=>this[_0x48e4b0(0x2b8)][_0x48e4b0(0x2df)](executionId),'executionTerminating':(executionId,status)=>{const _0x14623f=_0x48e4b0,pending=this[_0x14623f(0x2b8)][_0x14623f(0x2e6)](executionId);if(pending?.[_0x14623f(0x32f)]===undefined)return;const started=this[_0x14623f(0x2b8)][_0x14623f(0x331)](executionId),blocked=this[_0x14623f(0x309)][_0x14623f(0x24e)](pending[_0x14623f(0x325)],status===_0x14623f(0x214));if(blocked){this[_0x14623f(0x25a)](pending[_0x14623f(0x325)]),this[_0x14623f(0x2b8)][_0x14623f(0x2c0)](pending[_0x14623f(0x325)]);return;}if(status!==_0x14623f(0x214)||started)return;this[_0x14623f(0x25a)](pending[_0x14623f(0x325)]);const retry={'sessionId':pending[_0x14623f(0x325)],'timer':setTimeout(()=>{const _0x4769ac=_0x14623f;this[_0x4769ac(0x250)][_0x4769ac(0x2e4)](retry[_0x4769ac(0x325)]);const mission=this[_0x4769ac(0x309)][_0x4769ac(0x22e)](retry[_0x4769ac(0x325)]);if(mission?.[_0x4769ac(0x224)]!==_0x4769ac(0x2c2)||mission['id']!==pending[_0x4769ac(0x32f)]?.['id']||mission[_0x4769ac(0x310)]!==pending[_0x4769ac(0x32f)][_0x4769ac(0x310)])return;void this[_0x4769ac(0x2ce)][_0x4769ac(0x34a)]({'sessionId':retry[_0x4769ac(0x325)],'content':this[_0x4769ac(0x309)][_0x4769ac(0x30d)](retry[_0x4769ac(0x325)],_0x4769ac(0x238)),'deliveryIntent':_0x4769ac(0x320),'mission':{'id':mission['id'],'revision':mission[_0x4769ac(0x310)]},'secretEnvironment':pending[_0x4769ac(0x2b1)],...pending[_0x4769ac(0x2d3)]===undefined?{}:{'personalInstructions':pending[_0x4769ac(0x2d3)]}})[_0x4769ac(0x251)](()=>undefined);},-0x681e+0x1a2f*0x2+0x6e58)};this[_0x14623f(0x250)][_0x14623f(0x260)](pending[_0x14623f(0x325)],retry),retry[_0x14623f(0x2cc)][_0x14623f(0x1fc)]();},'releaseExecution':executionId=>{const _0x5c5043=_0x48e4b0;this[_0x5c5043(0x32c)][_0x5c5043(0x286)](executionId),this[_0x5c5043(0x2b8)][_0x5c5043(0x342)](executionId);}});[_0x48e4b0(0x35b)]=new NativeSessionWatchService({'resolve':async sessionId=>this[_0x48e4b0(0x291)][_0x48e4b0(0x227)](sessionId)??this[_0x48e4b0(0x2eb)][_0x48e4b0(0x24a)](sessionId),'managedActive':session=>hasManagedActiveRun(this[_0x48e4b0(0x291)],session),'suspended':sessionId=>this[_0x48e4b0(0x30c)][_0x48e4b0(0x2f9)](sessionId),'refreshActivity':session=>this[_0x48e4b0(0x315)][_0x48e4b0(0x288)](session),'present':session=>this[_0x48e4b0(0x2f5)][_0x48e4b0(0x303)](session),'readPage':(session,limit)=>this[_0x48e4b0(0x315)][_0x48e4b0(0x26c)](session,{'limit':limit}),'readHistoryPage':(session,limit)=>this[_0x48e4b0(0x315)][_0x48e4b0(0x1f2)](session,{'limit':limit}),'convergePage':convergeConversationWatchPage,'composeRuntimePage':composeConversationRuntimePage,'projectInitialPage':(session,page,_unit,limit)=>{const _0x50dd19=_0x48e4b0,context=this[_0x50dd19(0x20a)][_0x50dd19(0x28d)](session['id']);return this[_0x50dd19(0x20a)][_0x50dd19(0x340)](session),{'kind':_0x50dd19(0x307),'sequence':this[_0x50dd19(0x2b3)][_0x50dd19(0x275)](),'session':this[_0x50dd19(0x2f5)][_0x50dd19(0x303)](session),'runs':this[_0x50dd19(0x291)][_0x50dd19(0x27f)](session['id']),'queue':this[_0x50dd19(0x33e)][_0x50dd19(0x28d)](session['id']),'context':context,'conversation':this[_0x50dd19(0x2e7)][_0x50dd19(0x2d8)](session,page,limit)};},'emitSession':session=>this[_0x48e4b0(0x33d)]({'session':session}),'emitPage':(session,page)=>this[_0x48e4b0(0x255)](_0x48e4b0(0x1f6),{'sessionId':session['id'],'snapshot':this[_0x48e4b0(0x2e7)][_0x48e4b0(0x2d8)](session,page,0x208b+-0x45e*-0x6+0x317*-0x13)}),'nodeId':()=>this[_0x48e4b0(0x2d5)]?.[_0x48e4b0(0x219)]??_0x48e4b0(0x360),'nodeGeneration':()=>this[_0x48e4b0(0x2be)],'emitWatchEvent':payload=>this[_0x48e4b0(0x1f3)](_0x48e4b0(0x2ad),payload),'log':nodeLog});constructor(_0x5c2ede={}){const _0xb2711=_0x48e4b0;this[_0xb2711(0x2d5)]=_0x5c2ede[_0xb2711(0x2d5)],this[_0xb2711(0x201)]=_0x5c2ede[_0xb2711(0x201)],this[_0xb2711(0x217)]=_0x5c2ede[_0xb2711(0x217)]??CLAUDE_APPROVAL_TIMEOUT_MS,this[_0xb2711(0x32b)]=_0x5c2ede[_0xb2711(0x2e2)]!==undefined,this[_0xb2711(0x2e2)]=_0x5c2ede[_0xb2711(0x2e2)]??unavailableCapabilities(),this[_0xb2711(0x2a3)]=new NodeUpgradeCoordinator(()=>{const _0x291ae6=_0xb2711;if(this[_0x291ae6(0x2d5)]===undefined)throw new Error(_0x291ae6(0x312));return nodeUpgradeRequestPath(nodeDatabasePath(this[_0x291ae6(0x2d5)],this[_0x291ae6(0x201)]));},()=>this[_0xb2711(0x2ec)][_0xb2711(0x2c2)][_0xb2711(0x257)],_0x25e4ef=>{const _0x26a9e7=_0xb2711;this[_0x26a9e7(0x2e2)]={...this[_0x26a9e7(0x2e2)],'metadata':upgradeMetadata(this[_0x26a9e7(0x2e2)][_0x26a9e7(0x2b6)],_0x25e4ef)},this[_0x26a9e7(0x2f7)]?.[_0x26a9e7(0x1f3)](_0x26a9e7(0x2e2),this[_0x26a9e7(0x2e2)]);},_0x5c2ede[_0xb2711(0x357)]??(()=>{const _0x2bf786=_0xb2711;this[_0x2bf786(0x2ba)](),setImmediate(()=>process[_0x2bf786(0x20b)](-0x151d+-0x5b3*0x4+0x2c34));})),this[_0xb2711(0x2e2)]={...this[_0xb2711(0x2e2)],'metadata':upgradeMetadata(this[_0xb2711(0x2e2)][_0xb2711(0x2b6)],this[_0xb2711(0x2a3)][_0xb2711(0x28d)]())};const _0x383a4e=_0x5c2ede[_0xb2711(0x345)]??detectCapabilitiesAsync;this[_0xb2711(0x345)]=async()=>{const _0x2a46c6=_0xb2711,_0x3ecc41=await _0x383a4e();return{..._0x3ecc41,'metadata':upgradeMetadata(_0x3ecc41[_0x2a46c6(0x2b6)],this[_0x2a46c6(0x2a3)][_0x2a46c6(0x28d)]())};},this[_0xb2711(0x2e3)]=_0x5c2ede[_0xb2711(0x2e3)]??!![],this[_0xb2711(0x243)]=_0x5c2ede[_0xb2711(0x243)]===undefined?undefined:new FakeTestRunner(_0x5c2ede[_0xb2711(0x243)]),this[_0xb2711(0x1f8)]=_0x5c2ede[_0xb2711(0x1f8)],this[_0xb2711(0x22f)]=new RunAttachmentService(_0x4f348a=>this[_0xb2711(0x206)][_0xb2711(0x2b5)](_0x4f348a[_0xb2711(0x2c5)])[_0xb2711(0x2cd)](_0x4f348a)),this[_0xb2711(0x300)]=new CodexRunner(_0x5c2ede[_0xb2711(0x300)],_0x5c2ede[_0xb2711(0x210)]),this[_0xb2711(0x228)]=new CodexManagedRunController(this[_0xb2711(0x300)],{'available':()=>this[_0xb2711(0x2e2)][_0xb2711(0x27b)][_0xb2711(0x26f)],'intercepted':()=>this[_0xb2711(0x243)]!==undefined,'active':this[_0xb2711(0x2ec)][_0xb2711(0x2c2)],'addActive':_0x5e0323=>this[_0xb2711(0x2ec)][_0xb2711(0x2c2)][_0xb2711(0x35f)](_0x5e0323),'removeActive':_0x23c560=>this[_0xb2711(0x2ec)][_0xb2711(0x2c2)][_0xb2711(0x2e4)](_0x23c560),'adopt':_0x2fc030=>this[_0xb2711(0x291)][_0xb2711(0x1eb)](_0x2fc030),'session':_0xf53a9f=>this[_0xb2711(0x291)][_0xb2711(0x227)](_0xf53a9f),'runStatus':_0x539862=>this[_0xb2711(0x291)][_0xb2711(0x359)](_0x539862)?.[_0xb2711(0x224)],'run':_0x2d2474=>this[_0xb2711(0x291)][_0xb2711(0x359)](_0x2d2474),'interrupted':_0x43c1eb=>this[_0xb2711(0x2ec)][_0xb2711(0x2bf)][_0xb2711(0x23e)](_0x43c1eb),'parseAttachments':parseRunnerImageAttachments,'materialize':(_0x12e57d,_0x5ac9fa)=>this[_0xb2711(0x22f)][_0xb2711(0x2ea)](_0x12e57d,_0x5ac9fa),'completeCancelled':_0x5373a6=>this[_0xb2711(0x236)][_0xb2711(0x203)](_0x5373a6),'promoteSession':(_0x9b0c58,_0x2ea0c2)=>this[_0xb2711(0x2a8)][_0xb2711(0x31c)](_0x9b0c58,_0x2ea0c2),'send':(_0x56de63,_0x39ebaf)=>this[_0xb2711(0x1f3)](_0x56de63,_0x39ebaf),'emit':(_0x150e38,_0x449649,_0x1ae856,_0x2c7f56)=>this[_0xb2711(0x2e5)][_0xb2711(0x2fa)](_0x150e38,_0x449649,_0x1ae856,_0x2c7f56),'cancel':(_0x24c200,_0x13a291,_0x1d3664,_0xf4a964,_0x10180f)=>this[_0xb2711(0x236)][_0xb2711(0x222)](_0x24c200,_0x13a291,_0x1d3664,_0xf4a964,_0x10180f),'createApproval':_0x1d4830=>this[_0xb2711(0x291)][_0xb2711(0x341)](_0x1d4830),'publishApproval':_0x3fc4ec=>this[_0xb2711(0x2e5)][_0xb2711(0x20f)](_0x3fc4ec),'emitItem':(_0x5e25d0,_0x29835f)=>this[_0xb2711(0x211)](_0x5e25d0,_0x29835f),'appendImages':(_0x210e08,_0x56aa35)=>this[_0xb2711(0x22f)][_0xb2711(0x208)](_0x210e08,_0x56aa35[_0xb2711(0x361)](isRunnerImageAttachment)),'syncTitle':(_0x27f3a9,_0x46c6dd,_0x20cebf)=>this[_0xb2711(0x29b)][_0xb2711(0x279)](_0x27f3a9,_0x46c6dd,_0x20cebf),'commandState':(_0x2ea46a,_0xed5666)=>this[_0xb2711(0x253)][_0xb2711(0x22e)](_0x2ea46a,_0xed5666),'setCommandState':(_0x31599c,_0x56df5e)=>this[_0xb2711(0x253)][_0xb2711(0x260)](_0x31599c,_0x56df5e),'clearCommandState':(_0x257f67,_0x28ec09)=>this[_0xb2711(0x253)][_0xb2711(0x31f)](_0x257f67,_0x28ec09),'commandStates':_0x43f93f=>this[_0xb2711(0x253)][_0xb2711(0x256)](_0x43f93f),'hasActiveSessionLease':_0x45bc04=>this[_0xb2711(0x291)][_0xb2711(0x33b)](_0x45bc04),'fast':_0xbe13fc=>this[_0xb2711(0x31a)](_0xb2711(0x1e9),{'runner':_0xb2711(0x27b),'commandId':_0xb2711(0x285),'input':_0xbe13fc})}),this[_0xb2711(0x300)][_0xb2711(0x2cf)](_0x5a0d84=>this[_0xb2711(0x228)][_0xb2711(0x20d)](_0x5a0d84)),this[_0xb2711(0x301)]=new ClaudeCodeRunner(_0x5c2ede[_0xb2711(0x301)]),this[_0xb2711(0x266)]=new OpenCodeRunner(_0x5c2ede[_0xb2711(0x266)]),this[_0xb2711(0x34d)]=new OpenCodeManagedRunController(this[_0xb2711(0x266)],{'intercepted':()=>this[_0xb2711(0x243)]!==undefined,'active':this[_0xb2711(0x2ec)][_0xb2711(0x2c2)],'parseAttachments':parseRunnerImageAttachments,'persistAttachments':(_0xbd73d2,_0x1bf6c2,_0x17e014)=>this[_0xb2711(0x22f)][_0xb2711(0x347)](_0xbd73d2,_0x1bf6c2+_0xb2711(0x2bb),_0x17e014),'emit':(_0x33d7b1,_0x22fd0a,_0x395c1d,_0x672b4b)=>this[_0xb2711(0x2e5)][_0xb2711(0x2fa)](_0x33d7b1,_0x22fd0a,_0x395c1d,_0x672b4b),'emitItem':(_0x4554ad,_0x2a6787)=>this[_0xb2711(0x211)](_0x4554ad,_0x2a6787),'adopt':_0x30d6ac=>this[_0xb2711(0x291)][_0xb2711(0x1eb)](_0x30d6ac),'run':_0x2af4f1=>{const _0x4755ad=_0xb2711,_0x4e419b=this[_0x4755ad(0x291)][_0x4755ad(0x359)](_0x2af4f1);if(_0x4e419b===undefined)throw new Error(_0x4755ad(0x202));return _0x4e419b;},'hasActiveSessionLease':_0x40c091=>this[_0xb2711(0x291)][_0xb2711(0x33b)](_0x40c091),'promote':(_0x4aa323,_0x32c7ad)=>this[_0xb2711(0x2a8)][_0xb2711(0x31c)](_0x4aa323,_0x32c7ad),'rememberNative':(_0x2629ef,_0x43ac3e)=>this[_0xb2711(0x29b)][_0xb2711(0x338)](_0x2629ef,_0x43ac3e),'send':(_0x6cc73e,_0x33200b)=>this[_0xb2711(0x1f3)](_0x6cc73e,_0x33200b),'createApproval':_0x387613=>this[_0xb2711(0x291)][_0xb2711(0x341)](_0x387613),'expireApproval':_0x422e96=>{const _0x499f3e=_0xb2711;this[_0x499f3e(0x291)][_0x499f3e(0x31b)](_0x422e96);},'publishApproval':_0x4923f8=>this[_0xb2711(0x2e5)][_0xb2711(0x20f)](_0x4923f8),'commandState':(_0x162e4c,_0x4c6a8c)=>this[_0xb2711(0x253)][_0xb2711(0x22e)](_0x162e4c,_0x4c6a8c),'setCommandState':(_0x4a6a5d,_0x4ab44d)=>this[_0xb2711(0x253)][_0xb2711(0x260)](_0x4a6a5d,_0x4ab44d),'clearCommandState':(_0x2c7105,_0x3b8d40)=>this[_0xb2711(0x253)][_0xb2711(0x31f)](_0x2c7105,_0x3b8d40),'commandStates':_0x2bba1d=>this[_0xb2711(0x253)][_0xb2711(0x256)](_0x2bba1d)},this[_0xb2711(0x217)]),this[_0xb2711(0x348)]=new ClaudeManagedRunController(this[_0xb2711(0x301)],{'intercepted':()=>this[_0xb2711(0x243)]!==undefined,'active':this[_0xb2711(0x2ec)][_0xb2711(0x2c2)],'parseAttachments':parseRunnerImageAttachments,'emit':(_0x13c559,_0x301a7f,_0x1a89e4,_0x476c29)=>this[_0xb2711(0x2e5)][_0xb2711(0x2fa)](_0x13c559,_0x301a7f,_0x1a89e4,_0x476c29),'adopt':_0x54e5ae=>this[_0xb2711(0x291)][_0xb2711(0x1eb)](_0x54e5ae),'run':_0x275b0a=>this[_0xb2711(0x291)][_0xb2711(0x359)](_0x275b0a),'hasActiveSessionLease':_0x4f206f=>this[_0xb2711(0x291)][_0xb2711(0x33b)](_0x4f206f),'session':_0x15dcaf=>this[_0xb2711(0x291)][_0xb2711(0x227)](_0x15dcaf),'completeCancelled':_0x18e7ad=>this[_0xb2711(0x236)][_0xb2711(0x203)](_0x18e7ad),'requestUserInput':(_0x8ae7f6,_0x10a638,_0x13615b)=>this[_0xb2711(0x236)][_0xb2711(0x294)](_0x8ae7f6,_0x10a638,_0x13615b),'requestApproval':(_0x21621d,_0x4b2a01,_0x1dcd42)=>this[_0xb2711(0x236)][_0xb2711(0x272)](_0x21621d,_0x4b2a01,_0x1dcd42),'rememberNative':(_0x32760c,_0xfe3b77)=>this[_0xb2711(0x29b)][_0xb2711(0x338)](_0x32760c,_0xfe3b77),'promote':(_0x25ed7c,_0x4f8471)=>this[_0xb2711(0x2a8)][_0xb2711(0x31c)](_0x25ed7c,_0x4f8471),'send':(_0xb6d522,_0x1b6b49)=>this[_0xb2711(0x1f3)](_0xb6d522,_0x1b6b49),'emitItem':(_0x4a8352,_0xeea816)=>this[_0xb2711(0x211)](_0x4a8352,_0xeea816),'syncTitle':(_0x3d9443,_0x3b4766,_0x1d4d0f)=>this[_0xb2711(0x29b)][_0xb2711(0x279)](_0x3d9443,_0x3b4766,_0x1d4d0f),'setChannelToken':(_0x3d2068,_0x19cb35)=>this[_0xb2711(0x291)][_0xb2711(0x226)](_0x3d2068,_0x19cb35),'commandState':(_0x2a09b6,_0x240644)=>this[_0xb2711(0x253)][_0xb2711(0x22e)](_0x2a09b6,_0x240644),'setCommandState':(_0x1130aa,_0x252e4d)=>this[_0xb2711(0x253)][_0xb2711(0x260)](_0x1130aa,_0x252e4d),'clearCommandState':(_0x3a105b,_0x25bb75)=>this[_0xb2711(0x253)][_0xb2711(0x31f)](_0x3a105b,_0x25bb75),'commandStates':_0x58c803=>this[_0xb2711(0x253)][_0xb2711(0x256)](_0x58c803)}),this[_0xb2711(0x206)]=new RunnerRegistry([this[_0xb2711(0x266)],this[_0xb2711(0x300)],this[_0xb2711(0x301)],...this[_0xb2711(0x243)]===undefined?[]:[this[_0xb2711(0x243)]]]),this[_0xb2711(0x29b)]=new ManagedRunnerSessionService(this[_0xb2711(0x291)],this[_0xb2711(0x206)],_0x423204=>this[_0xb2711(0x33d)]({'session':this[_0xb2711(0x2f5)][_0xb2711(0x303)](_0x423204)})),this[_0xb2711(0x236)]=new RunnerInteractionService({'runtime':this[_0xb2711(0x291)],'state':this[_0xb2711(0x2ec)],'codex':()=>this[_0xb2711(0x300)],'claude':()=>this[_0xb2711(0x301)],'runners':this[_0xb2711(0x206)],'emitRun':(_0x4e2cd3,_0x17eb8c,_0x1d2745,_0x191c1f)=>this[_0xb2711(0x2e5)][_0xb2711(0x2fa)](_0x4e2cd3,_0x17eb8c,_0x1d2745,_0x191c1f),'emitItem':(_0x393938,_0x5846cc)=>this[_0xb2711(0x211)](_0x393938,_0x5846cc),'approvalTimeoutMs':this[_0xb2711(0x217)],'publishApproval':_0x4205d8=>this[_0xb2711(0x2e5)][_0xb2711(0x20f)](_0x4205d8)}),this[_0xb2711(0x322)]=new RunnerChannelMessageService({'interactions':this[_0xb2711(0x236)],'send':(_0x5dd338,_0x34be62,_0x1ebce1)=>this[_0xb2711(0x1f3)](_0x5dd338,_0x34be62,_0x1ebce1)}),this[_0xb2711(0x2f5)]=new SessionPresentationService({'database':()=>this[_0xb2711(0x21b)],'runtime':this[_0xb2711(0x291)],'commands':this[_0xb2711(0x253)],'runners':this[_0xb2711(0x206)],'capabilities':()=>this[_0xb2711(0x2e2)],'hasManagedActiveRun':_0x15f54e=>hasManagedActiveRun(this[_0xb2711(0x291)],_0x15f54e),'externalActivity':_0x3468d5=>this[_0xb2711(0x292)][_0xb2711(0x25b)][_0xb2711(0x22e)](_0x3468d5),'projectionForNative':_0x17a0f7=>this[_0xb2711(0x2eb)][_0xb2711(0x204)](_0x17a0f7)}),this[_0xb2711(0x2eb)]=new NativeSessionProjectionService({'database':()=>this[_0xb2711(0x21b)],'nodeId':()=>this[_0xb2711(0x2d5)]?.[_0xb2711(0x219)]??_0xb2711(0x316),'runtime':this[_0xb2711(0x291)],'runners':this[_0xb2711(0x206)],'capabilities':()=>this[_0xb2711(0x2e2)],'state':this[_0xb2711(0x292)],'commands':this[_0xb2711(0x253)],'present':_0x3b3d6b=>this[_0xb2711(0x2f5)][_0xb2711(0x303)](_0x3b3d6b)}),this[_0xb2711(0x315)]=new ConversationHistoryService({'runtime':this[_0xb2711(0x291)],'runners':this[_0xb2711(0x206)],'capabilities':()=>this[_0xb2711(0x2e2)],'attachments':this[_0xb2711(0x22f)],'snapshotSequence':()=>this[_0xb2711(0x2b3)][_0xb2711(0x275)](),'hasManagedActiveRun':_0xfefb85=>hasManagedActiveRun(this[_0xb2711(0x291)],_0xfefb85),'setExternalActivity':(_0x809e91,_0x204a95)=>this[_0xb2711(0x292)][_0xb2711(0x25b)][_0xb2711(0x260)](_0x809e91,_0x204a95)}),this[_0xb2711(0x2e7)]=new ConversationSegmentService((_0x13543c,_0x4e769c)=>this[_0xb2711(0x315)][_0xb2711(0x26c)](_0x13543c,_0x4e769c)),this[_0xb2711(0x20a)]=new SessionContextService({'runners':this[_0xb2711(0x206)],'session':_0x28942e=>this[_0xb2711(0x291)][_0xb2711(0x227)](_0x28942e),'stopped':()=>this[_0xb2711(0x2cb)],'publish':_0x1e5e20=>this[_0xb2711(0x33d)](_0x1e5e20)}),this[_0xb2711(0x265)]=new RunWorkbenchService({'runtime':this[_0xb2711(0x291)],'readImage':async(_0x26849f,_0x4a3d0f)=>this[_0xb2711(0x22f)][_0xb2711(0x26c)](_0x26849f,_0x4a3d0f)??await this[_0xb2711(0x22f)][_0xb2711(0x273)](_0x26849f,_0x4a3d0f),'respondUserInput':(_0x562cf9,_0x4c9a0d,_0xeca9c7)=>this[_0xb2711(0x236)][_0xb2711(0x351)](_0x562cf9,_0x4c9a0d,_0xeca9c7),'pauseQueue':_0x284448=>this[_0xb2711(0x33e)][_0xb2711(0x1fd)](_0x284448),'emitRun':(_0x4ec1c0,_0x34b451,_0x178d1e,_0x4d9ef1)=>this[_0xb2711(0x2e5)][_0xb2711(0x2fa)](_0x4ec1c0,_0x34b451,_0x178d1e,_0x4d9ef1),'control':(_0x2c3d82,_0x13d04b)=>this[_0xb2711(0x295)][_0xb2711(0x223)](JSON[_0xb2711(0x244)](createEnvelope(_0x2c3d82,_0x13d04b))),'markInterrupted':_0x4f2f50=>this[_0xb2711(0x2ec)][_0xb2711(0x2bf)][_0xb2711(0x35f)](_0x4f2f50)}),this[_0xb2711(0x2c3)]=new SessionQueryService({'runtime':this[_0xb2711(0x291)],'runners':this[_0xb2711(0x206)],'resolve':_0x3ec513=>this[_0xb2711(0x2eb)][_0xb2711(0x276)](_0x3ec513),'present':_0x413526=>this[_0xb2711(0x2f5)][_0xb2711(0x303)](_0x413526),'history':(_0x5ef9a4,_0xa1487f)=>this[_0xb2711(0x315)][_0xb2711(0x26c)](_0x5ef9a4,_0xa1487f),'segments':(_0xe43b74,_0x45db13)=>this[_0xb2711(0x2e7)][_0xb2711(0x26c)](_0xe43b74,_0x45db13),'context':this[_0xb2711(0x20a)],'discover':(_0x43e47d,_0xc7ce4)=>this[_0xb2711(0x2eb)][_0xb2711(0x26a)](_0x43e47d,_0xc7ce4),'workspaceIdForCwd':_0x12ef8a=>this[_0xb2711(0x21b)]?.[_0xb2711(0x27a)]()[_0xb2711(0x33c)](_0x4fabb4=>_0x4fabb4[_0xb2711(0x28e)]===_0x12ef8a)?.['id']}),this[_0xb2711(0x2b8)]=new ContinuousRunCoordinator({'runtime':this[_0xb2711(0x291)],'emitQueue':(_0x18596d,_0x5b89e3)=>this[_0xb2711(0x2e5)][_0xb2711(0x264)](_0x18596d,_0x5b89e3),'clearImages':_0x58a3a2=>this[_0xb2711(0x22f)][_0xb2711(0x31f)](_0x58a3a2),'cleanupAttachments':_0xa2bb7f=>this[_0xb2711(0x22f)][_0xb2711(0x213)](_0xa2bb7f),'migrateAssets':(_0x5c070c,_0xbbf4cd)=>this[_0xb2711(0x22f)][_0xb2711(0x232)](_0x5c070c,_0xbbf4cd),'emitRun':(_0x367974,_0x392b7a,_0x31776a,_0x22451c)=>this[_0xb2711(0x2e5)][_0xb2711(0x2fa)](_0x367974,_0x392b7a,_0x31776a,_0x22451c),'emitConversation':_0x2a15da=>this[_0xb2711(0x231)](_0x2a15da),'control':(_0x4ea1a9,_0x4b7a53)=>this[_0xb2711(0x295)][_0xb2711(0x223)](JSON[_0xb2711(0x244)](createEnvelope(_0x4ea1a9,_0x4b7a53))),'stopped':()=>this[_0xb2711(0x2cb)],'markInterrupted':_0x1147f1=>this[_0xb2711(0x2ec)][_0xb2711(0x2bf)][_0xb2711(0x35f)](_0x1147f1),'mcps':_0x15d9b6=>this[_0xb2711(0x21b)]?.[_0xb2711(0x2a2)](_0x15d9b6)??[],'afterExecutionStarted':async _0x438c00=>{const _0x23a492=_0xb2711;if(_0x438c00[_0x23a492(0x32f)]===undefined)return;const _0x184ebf=this[_0x23a492(0x309)][_0x23a492(0x22e)](_0x438c00[_0x23a492(0x325)]);if(_0x184ebf?.[_0x23a492(0x224)]!==_0x23a492(0x2c2)||_0x184ebf['id']!==_0x438c00[_0x23a492(0x32f)]['id']||_0x184ebf[_0x23a492(0x310)]!==_0x438c00[_0x23a492(0x32f)][_0x23a492(0x310)])return;this[_0x23a492(0x309)][_0x23a492(0x281)](_0x438c00[_0x23a492(0x325)]),await this[_0x23a492(0x2ce)][_0x23a492(0x34a)]({'sessionId':_0x438c00[_0x23a492(0x325)],'content':this[_0x23a492(0x309)][_0x23a492(0x30d)](_0x438c00[_0x23a492(0x325)],_0x23a492(0x238)),'deliveryIntent':_0x23a492(0x2a5),'mission':{'id':_0x184ebf['id'],'revision':_0x184ebf[_0x23a492(0x310)]},'secretEnvironment':_0x438c00[_0x23a492(0x2b1)],..._0x438c00[_0x23a492(0x2d3)]===undefined?{}:{'personalInstructions':_0x438c00[_0x23a492(0x2d3)]}});},'missionMcp':async _0x243c92=>{const _0x52944e=_0xb2711;if(_0x243c92[_0x52944e(0x32f)]===undefined)throw new Error(_0x52944e(0x23c));const _0x508e58=await this[_0x52944e(0x32c)][_0x52944e(0x313)]({'executionId':_0x243c92[_0x52944e(0x1fe)],'sessionId':_0x243c92[_0x52944e(0x325)],'missionId':_0x243c92[_0x52944e(0x32f)]['id'],'revision':_0x243c92[_0x52944e(0x32f)][_0x52944e(0x310)]});return{'installation':{'targetKind':_0x52944e(0x2b7),'targetId':_0x243c92[_0x52944e(0x287)],'catalogEntryId':_0x52944e(0x350),'serverName':_0x52944e(0x2a9),'displayName':_0x52944e(0x235),'version':_0x52944e(0x24d),'enabled':!![],'runtime':{'transport':_0x52944e(0x21d),'url':_0x52944e(0x239),'headers':{}},'configuration':_0x508e58[_0x52944e(0x313)],'installedAt':Date[_0x52944e(0x28c)](),..._0x508e58[_0x52944e(0x313)]},'secrets':_0x508e58[_0x52944e(0x298)]};}}),this[_0xb2711(0x33e)]=new WorkspaceQueueWorkbenchService({'runtime':this[_0xb2711(0x291)],'coordinator':this[_0xb2711(0x2b8)],'emit':(_0x2018c2,_0x4255fd)=>this[_0xb2711(0x2e5)][_0xb2711(0x264)](_0x2018c2,_0x4255fd),'prepareInput':(_0x2766a5,_0x31a36b,_0x27311c)=>this[_0xb2711(0x206)][_0xb2711(0x2b5)](_0x2766a5)[_0xb2711(0x2c1)](_0x31a36b,_0x27311c)}),this[_0xb2711(0x2a8)]=new SessionIdentityService({'runtime':this[_0xb2711(0x291)],'persist':(_0x45d2d0,_0x5fcb67)=>{const _0x50e7b0=_0xb2711;if(_0x45d2d0[_0x50e7b0(0x28f)]===null||_0x45d2d0[_0x50e7b0(0x249)]===null||_0x45d2d0[_0x50e7b0(0x220)]===null)return;this[_0x50e7b0(0x21b)]?.[_0x50e7b0(0x2d7)]({'runner':_0x45d2d0[_0x50e7b0(0x2c5)],'externalSessionId':_0x5fcb67,'workspaceId':_0x45d2d0[_0x50e7b0(0x287)],'model':_0x45d2d0[_0x50e7b0(0x28f)],'effort':_0x45d2d0[_0x50e7b0(0x249)],'access':_0x45d2d0[_0x50e7b0(0x220)]});},'migrateCommands':(_0x19fcd4,_0x14ea0e)=>this[_0xb2711(0x253)][_0xb2711(0x297)](_0x19fcd4,_0x14ea0e),'migrateMission':(_0x4c40c8,_0x3a6541)=>{const _0x5dec29=_0xb2711;this[_0x5dec29(0x309)][_0x5dec29(0x25f)](_0x4c40c8,_0x3a6541),this[_0x5dec29(0x32c)][_0x5dec29(0x25f)](_0x4c40c8,_0x3a6541);const _0x1c5856=this[_0x5dec29(0x250)][_0x5dec29(0x22e)](_0x4c40c8);_0x1c5856!==undefined&&(this[_0x5dec29(0x250)][_0x5dec29(0x2e4)](_0x4c40c8),_0x1c5856[_0x5dec29(0x325)]=_0x3a6541,this[_0x5dec29(0x250)][_0x5dec29(0x260)](_0x3a6541,_0x1c5856));},'migrateQueue':(_0x5c4ee3,_0x585eef)=>this[_0xb2711(0x2b8)][_0xb2711(0x25f)](_0x5c4ee3,_0x585eef),'migrateRunnerState':(_0x14cf7b,_0x2819cd)=>this[_0xb2711(0x2e5)][_0xb2711(0x304)](_0x14cf7b,_0x2819cd),'emitSession':_0x1c8c3d=>this[_0xb2711(0x33d)]({'session':_0x1c8c3d}),'emitRun':_0x5b2c98=>this[_0xb2711(0x255)](_0xb2711(0x24f),{'run':_0x5b2c98}),'emitQueue':_0x1eeaab=>this[_0xb2711(0x2b8)][_0xb2711(0x306)](_0x1eeaab),'emitTurn':_0x6e2f39=>this[_0xb2711(0x231)](_0x6e2f39)}),this[_0xb2711(0x2d6)]=new SessionLifecycleService({'database':()=>{const _0x156580=_0xb2711;if(this[_0x156580(0x21b)]===undefined)throw new Error(_0x156580(0x343));return this[_0x156580(0x21b)];},'runtime':this[_0xb2711(0x291)],'runners':this[_0xb2711(0x206)],'projection':this[_0xb2711(0x2eb)],'identity':this[_0xb2711(0x2a8)],'present':_0xa77a3d=>this[_0xb2711(0x2f5)][_0xb2711(0x303)](_0xa77a3d),'emitSession':_0x113417=>this[_0xb2711(0x33d)]({'session':this[_0xb2711(0x2f5)][_0xb2711(0x303)](_0x113417)}),'execute':(_0x76882b,_0x8f256f)=>this[_0xb2711(0x31a)](_0x76882b,_0x8f256f),'interceptedSessionId':_0x329b20=>this[_0xb2711(0x243)]===undefined?undefined:_0xb2711(0x1f5)+_0x329b20}),this[_0xb2711(0x30c)]=new ExternalSessionResumeService({'runtime':this[_0xb2711(0x291)],'runners':this[_0xb2711(0x206)],'state':this[_0xb2711(0x292)],'available':_0x27ab82=>this[_0xb2711(0x206)][_0xb2711(0x2b5)](_0x27ab82)[_0xb2711(0x26f)](this[_0xb2711(0x2e2)]),'projectionFor':_0x515b1a=>this[_0xb2711(0x2eb)][_0xb2711(0x204)](_0x515b1a),'managedAliasFor':_0x3d7e99=>this[_0xb2711(0x2eb)][_0xb2711(0x334)](_0x3d7e99),'ensureConfiguration':_0x5c263b=>this[_0xb2711(0x2eb)][_0xb2711(0x271)](_0x5c263b),'configuration':_0x2b784b=>this[_0xb2711(0x2eb)][_0xb2711(0x2f2)](_0x2b784b),'workspacePath':_0x38995b=>this[_0xb2711(0x21b)]?.[_0xb2711(0x22d)](_0x38995b)?.[_0xb2711(0x28e)],'rememberNative':(_0x15750f,_0x226510)=>this[_0xb2711(0x29b)][_0xb2711(0x338)](_0x15750f,_0x226510),'stage':_0x372d94=>{const _0x3d0ae2=_0xb2711,_0x4335de=this[_0x3d0ae2(0x2eb)][_0x3d0ae2(0x2f2)](_0x372d94);return this[_0x3d0ae2(0x291)][_0x3d0ae2(0x34e)]({'workspaceId':_0x372d94[_0x3d0ae2(0x287)],'runner':_0x372d94[_0x3d0ae2(0x2c5)],'externalSessionId':_0x372d94[_0x3d0ae2(0x30e)]??_0x372d94['id'],'nativeControl':_0x3d0ae2(0x2e0),'cwd':_0x372d94[_0x3d0ae2(0x240)],'model':_0x4335de[_0x3d0ae2(0x28f)],'effort':_0x4335de[_0x3d0ae2(0x249)],'access':_0x4335de[_0x3d0ae2(0x220)],..._0x372d94[_0x3d0ae2(0x2d4)]===null?{}:{'title':_0x372d94[_0x3d0ae2(0x2d4)]}});},'resolve':_0x4e3eb2=>this[_0xb2711(0x2eb)][_0xb2711(0x276)](_0x4e3eb2)}),this[_0xb2711(0x207)]=new SessionCommandService({'runtime':this[_0xb2711(0x291)],'runners':this[_0xb2711(0x206)],'projection':this[_0xb2711(0x2eb)],'resume':this[_0xb2711(0x30c)],'profiles':()=>this[_0xb2711(0x2e9)][_0xb2711(0x26b)](),'present':_0x5ca6cd=>this[_0xb2711(0x2f5)][_0xb2711(0x303)](_0x5ca6cd),'resumeQueueAfterCommandRun':_0x15f63a=>this[_0xb2711(0x33e)][_0xb2711(0x2f3)](_0x15f63a),'beginMission':_0x3c1270=>{const _0x4876d8=_0xb2711,_0x373bd7=this[_0x4876d8(0x253)][_0x4876d8(0x22e)](_0x3c1270['id'],_0x4876d8(0x32f));if(_0x373bd7?.[_0x4876d8(0x2c2)]===!![])return{'session':this[_0x4876d8(0x2f5)][_0x4876d8(0x303)](_0x3c1270),'missionAlreadyActive':!![]};_0x373bd7!==undefined&&(this[_0x4876d8(0x309)][_0x4876d8(0x31f)](_0x3c1270['id']),this[_0x4876d8(0x253)][_0x4876d8(0x31f)](_0x3c1270['id'],_0x4876d8(0x32f)));const _0x40bc5c=this[_0x4876d8(0x27c)](_0x3c1270);return this[_0x4876d8(0x2b8)][_0x4876d8(0x324)](_0x3c1270['id']),this[_0x4876d8(0x253)][_0x4876d8(0x260)](_0x3c1270['id'],this[_0x4876d8(0x2fd)]()),this[_0x4876d8(0x255)](_0x4876d8(0x2e8),{'session':this[_0x4876d8(0x2f5)][_0x4876d8(0x303)](_0x40bc5c[_0x4876d8(0x2e8)])}),{'session':this[_0x4876d8(0x2f5)][_0x4876d8(0x303)](_0x40bc5c[_0x4876d8(0x2e8)]),'missionAccessChanged':_0x40bc5c[_0x4876d8(0x21f)]};},'mission':async({session:_0x6bfa0d,objective:_0x48170d,secretEnvironment:_0x11f9cb,personalInstructions:_0x53e7f4})=>{const _0x2b322d=_0xb2711;this[_0x2b322d(0x25a)](_0x6bfa0d['id']);const _0x28962e=this[_0x2b322d(0x27c)](_0x6bfa0d),_0x3d68d9=_0x28962e[_0x2b322d(0x2e8)],_0x4d75ca=this[_0x2b322d(0x309)][_0x2b322d(0x22e)](_0x6bfa0d['id'])?.[_0x2b322d(0x224)]===_0x2b322d(0x2c2);this[_0x2b322d(0x2b8)][_0x2b322d(0x2c0)](_0x6bfa0d['id']);const _0x367141=this[_0x2b322d(0x309)][_0x2b322d(0x289)](_0x6bfa0d['id'],_0x48170d);this[_0x2b322d(0x1ee)](_0x3d68d9,_0x367141);const _0x4a65bc=await this[_0x2b322d(0x2ce)][_0x2b322d(0x34a)]({'sessionId':_0x6bfa0d['id'],'content':this[_0x2b322d(0x309)][_0x2b322d(0x30d)](_0x6bfa0d['id'],_0x2b322d(0x289)),'deliveryIntent':_0x4d75ca?_0x2b322d(0x278):_0x2b322d(0x320),'mission':{'id':_0x367141['id'],'revision':_0x367141[_0x2b322d(0x310)]},'secretEnvironment':_0x11f9cb,..._0x53e7f4===undefined?{}:{'personalInstructions':_0x53e7f4}});return{...isPlainRecord(_0x4a65bc)?_0x4a65bc:{'result':_0x4a65bc},'missionAccessChanged':_0x28962e[_0x2b322d(0x21f)]};},'clearMission':_0x2882a=>{const _0x3648ed=_0xb2711;return this[_0x3648ed(0x25a)](_0x2882a['id']),this[_0x3648ed(0x309)][_0x3648ed(0x31f)](_0x2882a['id']),this[_0x3648ed(0x2b8)][_0x3648ed(0x2c0)](_0x2882a['id']),this[_0x3648ed(0x253)][_0x3648ed(0x31f)](_0x2882a['id'],_0x3648ed(0x32f)),this[_0x3648ed(0x255)](_0x3648ed(0x2e8),{'session':this[_0x3648ed(0x2f5)][_0x3648ed(0x303)](_0x2882a)}),{'session':this[_0x3648ed(0x2f5)][_0x3648ed(0x303)](_0x2882a),'cleared':!![]};}}),this[_0xb2711(0x2ce)]=new SessionMessageService({'runtime':this[_0xb2711(0x291)],'uploads':this[_0xb2711(0x2d2)],'attachments':this[_0xb2711(0x22f)],'commands':this[_0xb2711(0x253)],'coordinator':this[_0xb2711(0x2b8)],'runners':this[_0xb2711(0x206)],'resolve':_0x1420dd=>this[_0xb2711(0x30c)][_0xb2711(0x23f)](_0x1420dd),'present':_0x5c7a8f=>this[_0xb2711(0x2f5)][_0xb2711(0x303)](_0x5c7a8f),'emitSession':_0x27c070=>this[_0xb2711(0x33d)]({'session':this[_0xb2711(0x2f5)][_0xb2711(0x303)](_0x27c070)}),'channelToken':_0x4edf5c=>{const _0x362352=_0xb2711,_0x3883f9=this[_0x362352(0x291)][_0x362352(0x227)](_0x4edf5c);return _0x3883f9?.[_0x362352(0x34c)]??undefined;},'missionMessage':(_0x3340aa,_0x2034d9)=>{const _0x36e5b8=_0xb2711,_0x9bd649=this[_0x36e5b8(0x253)][_0x36e5b8(0x22e)](_0x3340aa['id'],_0x36e5b8(0x32f));if(_0x9bd649?.[_0x36e5b8(0x2c2)]!==!![])return undefined;const _0x3ae6aa=this[_0x36e5b8(0x309)][_0x36e5b8(0x22e)](_0x3340aa['id']);if(_0x3ae6aa?.[_0x36e5b8(0x224)]===_0x36e5b8(0x2c2))return{'runnerContent':_0x2034d9,'mission':{'id':_0x3ae6aa['id'],'revision':_0x3ae6aa[_0x36e5b8(0x310)]},'activated':![]};const _0x246dc9=this[_0x36e5b8(0x309)][_0x36e5b8(0x289)](_0x3340aa['id'],_0x2034d9);return this[_0x36e5b8(0x1ee)](_0x3340aa,_0x246dc9),{'runnerContent':this[_0x36e5b8(0x309)][_0x36e5b8(0x30d)](_0x3340aa['id'],_0x36e5b8(0x289)),'mission':{'id':_0x246dc9['id'],'revision':_0x246dc9[_0x36e5b8(0x310)]},'activated':!![]};},'prepareMissionInsertion':(_0xf75ab3,_0x3bb1fc)=>this[_0xb2711(0x2b8)][_0xb2711(0x324)](_0xf75ab3,_0x3bb1fc),'missionPreparationFailed':(_0x4b3bd2,_0x4477f9,_0x38d023)=>{const _0x15b98e=_0xb2711;if(!_0x38d023)return;const _0x1f4d69=this[_0x15b98e(0x309)][_0x15b98e(0x22e)](_0x4b3bd2['id']);if(_0x1f4d69?.['id']!==_0x4477f9['id']||_0x1f4d69[_0x15b98e(0x310)]!==_0x4477f9[_0x15b98e(0x310)])return;this[_0x15b98e(0x309)][_0x15b98e(0x31f)](_0x4b3bd2['id']),this[_0x15b98e(0x253)][_0x15b98e(0x260)](_0x4b3bd2['id'],this[_0x15b98e(0x2fd)]()),this[_0x15b98e(0x255)](_0x15b98e(0x2e8),{'session':this[_0x15b98e(0x2f5)][_0x15b98e(0x303)](_0x4b3bd2)});}}),this[_0xb2711(0x254)]=new SessionCatalogService({'database':()=>{const _0x277e05=_0xb2711;if(this[_0x277e05(0x21b)]===undefined)throw new Error(_0x277e05(0x343));return this[_0x277e05(0x21b)];},'nodeId':()=>this[_0xb2711(0x2d5)]?.[_0xb2711(0x219)]??_0xb2711(0x316),'runtime':this[_0xb2711(0x291)],'runners':this[_0xb2711(0x206)],'projection':this[_0xb2711(0x2eb)],'resume':this[_0xb2711(0x30c)],'cachedNative':()=>[...this[_0xb2711(0x292)][_0xb2711(0x263)][_0xb2711(0x2f4)]()],'cachedWorkspace':_0x2c792a=>this[_0xb2711(0x233)][_0xb2711(0x346)](_0x2c792a),'present':_0x129ba6=>this[_0xb2711(0x2f5)][_0xb2711(0x303)](_0x129ba6),'projectionForNative':_0x1f573f=>this[_0xb2711(0x2eb)][_0xb2711(0x204)](_0x1f573f),'nativeIds':_0x1a9561=>this[_0xb2711(0x2eb)][_0xb2711(0x355)](_0x1a9561),'forget':(_0x5c6435,_0x52c6e5)=>this[_0xb2711(0x2eb)][_0xb2711(0x2da)](_0x5c6435,_0x52c6e5),'refreshActivity':_0x20b3af=>this[_0xb2711(0x315)][_0xb2711(0x288)](_0x20b3af),'externalActivity':_0x344dcc=>this[_0xb2711(0x292)][_0xb2711(0x25b)][_0xb2711(0x22e)](_0x344dcc),'history':(_0xfe172b,_0x2f854a)=>this[_0xb2711(0x315)][_0xb2711(0x26c)](_0xfe172b,_0x2f854a),'emitSession':_0x5a1530=>this[_0xb2711(0x33d)]({'session':this[_0xb2711(0x2f5)][_0xb2711(0x303)](_0x5a1530)})}),this[_0xb2711(0x300)][_0xb2711(0x26d)]({'start':_0x4624cc=>this[_0xb2711(0x228)][_0xb2711(0x289)](_0x4624cc),'cancel':(_0x575319,_0x5726b5)=>{const _0x2f1d35=_0xb2711,_0x5d62db=this[_0x2f1d35(0x300)][_0x2f1d35(0x321)][_0x2f1d35(0x245)][_0x2f1d35(0x22e)](_0x575319);if(_0x5d62db?.[_0x2f1d35(0x218)]===undefined)return![];return void this[_0x2f1d35(0x236)][_0x2f1d35(0x222)](_0x575319,_0x5d62db[_0x2f1d35(0x22a)],_0x5d62db[_0x2f1d35(0x218)],_0x5d62db[_0x2f1d35(0x240)],_0x5726b5===_0x2f1d35(0x332)?_0x2f1d35(0x2d0):_0x2f1d35(0x2c9)),!![];},'decideApproval':_0x44e8ab=>this[_0xb2711(0x236)][_0xb2711(0x2b2)](_0x44e8ab[_0xb2711(0x314)],_0x44e8ab[_0xb2711(0x27d)])}),this[_0xb2711(0x301)][_0xb2711(0x26d)]({'start':_0x439d96=>this[_0xb2711(0x348)][_0xb2711(0x289)](_0x439d96),'cancel':(_0x4cfb78,_0x3833c6)=>this[_0xb2711(0x236)][_0xb2711(0x354)](_0x4cfb78,_0x3833c6),'decideApproval':_0x26b27a=>this[_0xb2711(0x236)][_0xb2711(0x2db)](_0x26b27a[_0xb2711(0x314)],_0x26b27a[_0xb2711(0x27d)])}),this[_0xb2711(0x266)][_0xb2711(0x26d)]({'start':_0x1bed61=>this[_0xb2711(0x34d)][_0xb2711(0x289)](_0x1bed61),'cancel':(_0x63a1c6,_0x234364)=>this[_0xb2711(0x34d)][_0xb2711(0x1f0)](_0x63a1c6,_0x234364),'decideApproval':_0x322e2f=>this[_0xb2711(0x34d)][_0xb2711(0x209)](_0x322e2f),'respondUserInput':(_0x1db674,_0x588ba0,_0x44763a)=>this[_0xb2711(0x34d)][_0xb2711(0x351)](_0x1db674,_0x588ba0,_0x44763a)}),this[_0xb2711(0x300)][_0xb2711(0x225)]({'execute':(_0x23d058,_0x252e6e,_0x456eee,_0x387d39)=>this[_0xb2711(0x228)][_0xb2711(0x20e)](_0x23d058,_0x252e6e,_0x456eee,_0x387d39)}),this[_0xb2711(0x301)][_0xb2711(0x225)]({'execute':(_0x2f3079,_0x20e15e,_0x5927a1,_0x25e1d4)=>this[_0xb2711(0x348)][_0xb2711(0x20e)](_0x2f3079,_0x20e15e,_0x5927a1,_0x25e1d4)}),this[_0xb2711(0x266)][_0xb2711(0x225)]({'execute':(_0x428d92,_0x5e96ff,_0x1a4e62,_0x5ce61b)=>this[_0xb2711(0x34d)][_0xb2711(0x20e)](_0x428d92,_0x5e96ff,_0x5ce61b)});const _0xe709e6=this[_0xb2711(0x243)]===undefined||this[_0xb2711(0x1f8)]===undefined?undefined:new FakeManagedRunService({'runner':this[_0xb2711(0x243)],'script':this[_0xb2711(0x1f8)],'runners':this[_0xb2711(0x206)],'runtime':this[_0xb2711(0x291)],'state':this[_0xb2711(0x2ec)],'emitRun':(_0x3ce259,_0x5370e6,_0x3d1ac0,_0x201d53)=>this[_0xb2711(0x2e5)][_0xb2711(0x2fa)](_0x3ce259,_0x5370e6,_0x3d1ac0,_0x201d53),'publishApproval':_0x36bf44=>this[_0xb2711(0x2e5)][_0xb2711(0x20f)](_0x36bf44),'disconnect':()=>this[_0xb2711(0x2f7)][_0xb2711(0x28b)](-0x235a+0xcbd+0x2647,_0xb2711(0x302))});this[_0xb2711(0x243)]?.[_0xb2711(0x26d)]({'start':_0x37b6cb=>_0xe709e6?.[_0xb2711(0x289)](_0x37b6cb),'cancel':(_0x697707,_0x4e743b)=>_0x4e743b===_0xb2711(0x332)?this[_0xb2711(0x243)]?.[_0xb2711(0x1f0)](_0x697707)??![]:this[_0xb2711(0x243)]?.[_0xb2711(0x2a0)](_0x697707)??![],'decideApproval':_0x2acb8d=>this[_0xb2711(0x243)]?.[_0xb2711(0x35e)](_0x2acb8d[_0xb2711(0x1fe)],_0x2acb8d[_0xb2711(0x314)],_0x2acb8d[_0xb2711(0x27d)])??![]}),this[_0xb2711(0x31d)]=_0x5c2ede[_0xb2711(0x31d)]??new RunnerUsageReader(),this[_0xb2711(0x21b)]=_0x5c2ede[_0xb2711(0x21b)],this[_0xb2711(0x283)]=_0x5c2ede[_0xb2711(0x283)]??new TerminalManager({'platform':this[_0xb2711(0x2e2)][_0xb2711(0x21e)]===_0xb2711(0x2ac)?_0xb2711(0x27e):_0xb2711(0x35a)}),this[_0xb2711(0x283)][_0xb2711(0x330)](_0x51485f=>this[_0xb2711(0x233)][_0xb2711(0x215)](_0x51485f)),this[_0xb2711(0x353)]=new NodeTerminalChannel({'config':()=>this[_0xb2711(0x2d5)],'controlConnected':()=>this[_0xb2711(0x2f7)][_0xb2711(0x2c6)](),'stopped':()=>this[_0xb2711(0x2cb)],'reconnect':this[_0xb2711(0x2e3)],'reconnectDelay':nextReconnectDelay,'manager':this[_0xb2711(0x283)]}),this[_0xb2711(0x2f7)]=new NodeControlChannel({'config':()=>this[_0xb2711(0x2d5)],'capabilities':()=>this[_0xb2711(0x2e2)],'stopped':()=>this[_0xb2711(0x2cb)],'reconnect':this[_0xb2711(0x2e3)],'reconnectDelay':nextReconnectDelay,'onConnecting':_0x56c709=>{const _0x533f5d=_0xb2711;this[_0x533f5d(0x277)][_0x533f5d(0x30b)](),nodeLog(_0x533f5d(0x30f),{'attempt':_0x56c709});},'onReconnectScheduled':()=>this[_0xb2711(0x277)][_0xb2711(0x2a6)](),'onMessage':_0x53f0a4=>this[_0xb2711(0x212)](_0x53f0a4),'onClose':(_0x510f7b,_0x62dcac)=>{const _0x141432=_0xb2711;this[_0x141432(0x353)][_0x141432(0x327)]();if(_0x510f7b===0x4f*-0x6b+-0x5*-0x1f2+0x26eb&&_0x62dcac===_0x141432(0x1fb))nodeLog(_0x141432(0x24c),{'message':_0x141432(0x25c)});if(_0x510f7b===0x24e*0x5+0x25a9+0x10c6*-0x2||_0x510f7b===0x24f4+0x110b+-0x3216)void this[_0x141432(0x283)][_0x141432(0x22b)]();}}),this[_0xb2711(0x295)]=new NodeControlMessageService({'config':()=>this[_0xb2711(0x2d5)],'register':(_0x144643,_0x5c119a)=>this[_0xb2711(0x2c8)][_0xb2711(0x282)](_0x144643,_0x5c119a),'connected':()=>this[_0xb2711(0x2c8)][_0xb2711(0x2c6)](),'close':(_0x3550d4,_0x50c020)=>this[_0xb2711(0x2f7)][_0xb2711(0x28b)](_0x3550d4,_0x50c020),'inspectWorkspace':_0x3f8420=>this[_0xb2711(0x233)][_0xb2711(0x2bd)](_0x3f8420),'handleNodeRequest':_0x400574=>this[_0xb2711(0x31e)][_0xb2711(0x223)](_0x400574),'reconcileRuns':_0x16dea8=>this[_0xb2711(0x2e5)][_0xb2711(0x21c)](_0x16dea8),'runners':this[_0xb2711(0x206)],'deliverSessionChannelMessage':_0x56e27d=>this[_0xb2711(0x322)][_0xb2711(0x223)](_0x56e27d),'completeUncontrolledCancellation':_0x20188d=>{const _0x36f51d=_0xb2711,_0x50f5ba=this[_0x36f51d(0x291)][_0x36f51d(0x359)](_0x20188d);if(_0x50f5ba?.[_0x36f51d(0x224)]===_0x36f51d(0x358))this[_0x36f51d(0x236)][_0x36f51d(0x203)](_0x20188d);},'send':(_0x10d69e,_0x238e59,_0xf17cc0)=>this[_0xb2711(0x1f3)](_0x10d69e,_0x238e59,_0xf17cc0)}),this[_0xb2711(0x31e)]=new NodeRequestService({'nodeId':()=>this[_0xb2711(0x2d5)]?.[_0xb2711(0x219)],'databaseAvailable':()=>this[_0xb2711(0x21b)]!==undefined,'execute':(_0x567e6c,_0x574876)=>this[_0xb2711(0x31a)](_0x567e6c,_0x574876),'send':(_0x5161b6,_0x1a0299,_0x1d601b)=>this[_0xb2711(0x1f3)](_0x5161b6,_0x1a0299,_0x1d601b)}),this[_0xb2711(0x233)]=new NodeWorkspaceCoordinator({'config':()=>this[_0xb2711(0x2d5)],'database':()=>this[_0xb2711(0x21b)],'watches':this[_0xb2711(0x35d)],'sessions':this[_0xb2711(0x25d)],'changes':this[_0xb2711(0x247)],'emit':(_0x385d20,_0x20d50e)=>void this[_0xb2711(0x280)]?.[_0xb2711(0x2ff)](_0x385d20,_0x20d50e),'send':(_0x88d295,_0x185fa2,_0xa56748)=>this[_0xb2711(0x1f3)](_0x88d295,_0x185fa2,_0xa56748)}),this[_0xb2711(0x2e5)]=new NodeRunEventBridge({'runtime':this[_0xb2711(0x291)],'state':this[_0xb2711(0x2ec)],'events':this[_0xb2711(0x24b)],'emitWorkbench':(_0x3c4a84,_0x5215c7)=>this[_0xb2711(0x2a1)](_0x3c4a84,_0x5215c7),'queues':this[_0xb2711(0x33e)],'codex':this[_0xb2711(0x300)],'claude':this[_0xb2711(0x301)],'openCode':this[_0xb2711(0x266)],'send':(_0x41824f,_0x976121,_0x505444)=>this[_0xb2711(0x1f3)](_0x41824f,_0x976121,_0x505444)}),this[_0xb2711(0x2c8)]=new NodeConnectionLifecycleService({'config':()=>this[_0xb2711(0x2d5)],'setConfig':_0x5f5c16=>this[_0xb2711(0x2d5)]=_0x5f5c16,'configPath':this[_0xb2711(0x201)],'capabilities':()=>this[_0xb2711(0x2e2)],'detectCapabilities':this[_0xb2711(0x345)],'capabilitiesProvided':this[_0xb2711(0x32b)],'stopped':()=>this[_0xb2711(0x2cb)],'setCapabilities':_0x352462=>this[_0xb2711(0x2e2)]={..._0x352462,'metadata':upgradeMetadata(_0x352462[_0xb2711(0x2b6)],this[_0xb2711(0x2a3)][_0xb2711(0x28d)]())},'control':this[_0xb2711(0x2f7)],'terminal':this[_0xb2711(0x353)],'metrics':this[_0xb2711(0x277)],'heartbeatMs':HEARTBEAT_MS,'refreshMs':CAPABILITY_REFRESH_MS,'onConnected':()=>this[_0xb2711(0x2ae)][_0xb2711(0x221)]()});const _0x5dc176=()=>{const _0x2297af=_0xb2711;if(this[_0x2297af(0x21b)]===undefined)throw new Error(_0x2297af(0x343));return this[_0x2297af(0x21b)];};this[_0xb2711(0x2e9)]=new RunnerService(_0x5dc176,()=>this[_0xb2711(0x2e2)],this[_0xb2711(0x206)],this[_0xb2711(0x31d)]),this[_0xb2711(0x2ef)]=new WorkbenchManifestService({'capabilities':()=>this[_0xb2711(0x2e2)],'runners':this[_0xb2711(0x2e9)],'terminals':this[_0xb2711(0x283)]}),this[_0xb2711(0x319)]=new TerminalService(_0x5dc176,this[_0xb2711(0x283)]),this[_0xb2711(0x2fc)]=new WorkspaceService(_0x5dc176,()=>{const _0x5f0315=_0xb2711;if(this[_0x5f0315(0x2d5)]===undefined)throw new Error(_0x5f0315(0x312));return this[_0x5f0315(0x2d5)];},this[_0xb2711(0x291)],_0x3cd79e=>{const _0x1285ba=_0xb2711;this[_0x1285ba(0x2a7)][_0x1285ba(0x2a4)](_0x3cd79e),this[_0x1285ba(0x233)][_0x1285ba(0x356)](_0x3cd79e),this[_0x1285ba(0x25d)][_0x1285ba(0x284)](_0x3cd79e),this[_0x1285ba(0x233)][_0x1285ba(0x2f8)](_0x3cd79e);}),this[_0xb2711(0x280)]=new WorkspaceWorkbenchService({'requireWorkspace':_0x4da6fc=>this[_0xb2711(0x233)][_0xb2711(0x2b5)](_0x4da6fc),'watch':this[_0xb2711(0x35d)],'files':this[_0xb2711(0x2a7)],'uploads':this[_0xb2711(0x2d2)],'changes':this[_0xb2711(0x247)],'listSessions':_0x2c2891=>this[_0xb2711(0x31a)](_0xb2711(0x229),{'workspaceId':_0x2c2891,'limit':0x14}),'invalidate':_0x1a2f33=>this[_0xb2711(0x233)][_0xb2711(0x284)](_0x1a2f33),'nodeId':()=>this[_0xb2711(0x2d5)]?.[_0xb2711(0x219)]??_0xb2711(0x360),'nodeGeneration':()=>this[_0xb2711(0x2be)],'emitWatchEvent':_0x43e6b7=>this[_0xb2711(0x1f3)](_0xb2711(0x2ad),_0x43e6b7)}),this[_0xb2711(0x248)][_0xb2711(0x1f7)](this[_0xb2711(0x2e9)][_0xb2711(0x2fe)]()),this[_0xb2711(0x248)][_0xb2711(0x1f7)](this[_0xb2711(0x319)][_0xb2711(0x2fe)]()),this[_0xb2711(0x248)][_0xb2711(0x1f7)](this[_0xb2711(0x2fc)][_0xb2711(0x2fe)]()),this[_0xb2711(0x248)][_0xb2711(0x1f7)](this[_0xb2711(0x280)][_0xb2711(0x2fe)]()),this[_0xb2711(0x248)][_0xb2711(0x1f7)](this[_0xb2711(0x265)][_0xb2711(0x2fe)]()),this[_0xb2711(0x248)][_0xb2711(0x1f7)](this[_0xb2711(0x35b)][_0xb2711(0x2fe)]()),this[_0xb2711(0x248)][_0xb2711(0x1f7)](this[_0xb2711(0x2c3)][_0xb2711(0x2fe)]()),this[_0xb2711(0x248)][_0xb2711(0x1f7)](this[_0xb2711(0x2d6)][_0xb2711(0x2fe)]()),this[_0xb2711(0x248)][_0xb2711(0x1f7)](this[_0xb2711(0x2ce)][_0xb2711(0x2fe)]()),this[_0xb2711(0x248)][_0xb2711(0x1f7)](this[_0xb2711(0x254)][_0xb2711(0x2fe)]()),this[_0xb2711(0x248)][_0xb2711(0x1f7)](this[_0xb2711(0x207)][_0xb2711(0x2fe)]()),this[_0xb2711(0x248)][_0xb2711(0x1f7)](this[_0xb2711(0x33e)][_0xb2711(0x2fe)]()),this[_0xb2711(0x248)][_0xb2711(0x1f7)](new SkillNodeOperationService(_0x5dc176,()=>{const _0x322ef4=_0xb2711;if(this[_0x322ef4(0x2d5)]===undefined)throw new Error(_0x322ef4(0x312));return this[_0x322ef4(0x2d5)];})[_0xb2711(0x2fe)]()),this[_0xb2711(0x248)][_0xb2711(0x1f7)](new McpNodeOperationService(_0x5dc176)[_0xb2711(0x2fe)]()),this[_0xb2711(0x248)][_0xb2711(0x282)](_0xb2711(0x23d),()=>({'metrics':{...this[_0xb2711(0x277)][_0xb2711(0x28d)](),'activeRuns':this[_0xb2711(0x2ec)][_0xb2711(0x2c2)][_0xb2711(0x257)],'workspaceLeases':this[_0xb2711(0x291)][_0xb2711(0x2b9)]()}})),this[_0xb2711(0x248)][_0xb2711(0x282)](_0xb2711(0x252),_0x48ad79=>this[_0xb2711(0x2a3)][_0xb2711(0x21a)](_0x48ad79)),this[_0xb2711(0x248)][_0xb2711(0x282)](_0xb2711(0x344),()=>this[_0xb2711(0x2a3)][_0xb2711(0x1f0)]()),this[_0xb2711(0x248)][_0xb2711(0x282)](_0xb2711(0x337),async()=>({'manifest':await this[_0xb2711(0x2ef)][_0xb2711(0x26c)]()}));}async[_0x48e4b0(0x289)](){const _0xc362b4=_0x48e4b0;this[_0xc362b4(0x2cb)]=![],this[_0xc362b4(0x2d5)]??=await loadNodeConfig(this[_0xc362b4(0x201)]),await this[_0xc362b4(0x2a3)][_0xc362b4(0x2ab)](resolve(dirname(nodeDatabasePath(this[_0xc362b4(0x2d5)],this[_0xc362b4(0x201)])),_0xc362b4(0x323))),await assertLocalSqlitePath(nodeDatabasePath(this[_0xc362b4(0x2d5)],this[_0xc362b4(0x201)])),this[_0xc362b4(0x21b)]??=new NodeDatabase(nodeDatabasePath(this[_0xc362b4(0x2d5)],this[_0xc362b4(0x201)]),()=>this[_0xc362b4(0x2d5)]?.[_0xc362b4(0x219)]??_0xc362b4(0x1ea)),this[_0xc362b4(0x21b)][_0xc362b4(0x290)](),this[_0xc362b4(0x2c8)][_0xc362b4(0x289)](),this[_0xc362b4(0x2f7)][_0xc362b4(0x305)]();}[_0x48e4b0(0x25a)](_0xe1cdbc){const _0xd09968=_0x48e4b0,_0x3be3a5=this[_0xd09968(0x250)][_0xd09968(0x22e)](_0xe1cdbc);if(_0x3be3a5!==undefined)clearTimeout(_0x3be3a5[_0xd09968(0x2cc)]);this[_0xd09968(0x250)][_0xd09968(0x2e4)](_0xe1cdbc);}[_0x48e4b0(0x27c)](_0x5a88ed){const _0x5d2281=_0x48e4b0,_0x333d37=missionUnrestrictedAccess(_0x5a88ed[_0x5d2281(0x2c5)]),_0xc65670=_0x5a88ed[_0x5d2281(0x220)]!==_0x333d37,_0x9b7061=_0xc65670?this[_0x5d2281(0x291)][_0x5d2281(0x299)](_0x5a88ed['id'],_0x333d37):_0x5a88ed;if(_0xc65670&&_0x9b7061[_0x5d2281(0x30e)]!==null&&_0x9b7061[_0x5d2281(0x28f)]!==null&&_0x9b7061[_0x5d2281(0x249)]!==null)this[_0x5d2281(0x21b)]?.[_0x5d2281(0x2d7)]({'runner':_0x9b7061[_0x5d2281(0x2c5)],'externalSessionId':_0x9b7061[_0x5d2281(0x30e)],'workspaceId':_0x9b7061[_0x5d2281(0x287)],'model':_0x9b7061[_0x5d2281(0x28f)],'effort':_0x9b7061[_0x5d2281(0x249)],'access':_0x333d37});return{'session':_0x9b7061,'changed':_0xc65670};}[_0x48e4b0(0x2fd)](){const _0x2e6f63=_0x48e4b0;return{'commandId':_0x2e6f63(0x32f),'active':!![],'label':_0x2e6f63(0x235),'detail':null,'closable':!![],'closeInput':_0x2e6f63(0x269)};}[_0x48e4b0(0x2ba)](){const _0x553ce1=_0x48e4b0;this[_0x553ce1(0x2cb)]=!![],this[_0x553ce1(0x2ae)][_0x553ce1(0x2a4)](),this[_0x553ce1(0x2a3)][_0x553ce1(0x2ba)](),this[_0x553ce1(0x2c8)][_0x553ce1(0x2ba)]();for(const _0x2382db of this[_0x553ce1(0x301)][_0x553ce1(0x321)][_0x553ce1(0x352)][_0x553ce1(0x2f4)]()){clearTimeout(_0x2382db[_0x553ce1(0x2cc)]),_0x2382db[_0x553ce1(0x276)](_0x553ce1(0x318));}this[_0x553ce1(0x301)][_0x553ce1(0x321)][_0x553ce1(0x352)][_0x553ce1(0x31f)]();for(const _0x1ef03 of this[_0x553ce1(0x301)][_0x553ce1(0x321)][_0x553ce1(0x2ee)][_0x553ce1(0x2f4)]()){clearTimeout(_0x1ef03[_0x553ce1(0x2cc)]),_0x1ef03[_0x553ce1(0x241)](_0x553ce1(0x262));}this[_0x553ce1(0x301)][_0x553ce1(0x321)][_0x553ce1(0x2ee)][_0x553ce1(0x31f)](),this[_0x553ce1(0x35b)][_0x553ce1(0x31f)](),this[_0x553ce1(0x2a8)][_0x553ce1(0x2a4)](),this[_0x553ce1(0x2d6)][_0x553ce1(0x31f)](),this[_0x553ce1(0x2b8)][_0x553ce1(0x31f)]();for(const _0x2ade06 of this[_0x553ce1(0x250)][_0x553ce1(0x2f4)]())clearTimeout(_0x2ade06[_0x553ce1(0x2cc)]);this[_0x553ce1(0x250)][_0x553ce1(0x31f)](),this[_0x553ce1(0x24b)][_0x553ce1(0x31f)](),this[_0x553ce1(0x20a)][_0x553ce1(0x2a4)]();for(const _0x135163 of this[_0x553ce1(0x301)][_0x553ce1(0x321)][_0x553ce1(0x245)][_0x553ce1(0x2f4)]())_0x135163[_0x553ce1(0x223)][_0x553ce1(0x1f0)]();this[_0x553ce1(0x301)][_0x553ce1(0x321)][_0x553ce1(0x245)][_0x553ce1(0x31f)](),this[_0x553ce1(0x22f)][_0x553ce1(0x2a4)](),void this[_0x553ce1(0x2d2)][_0x553ce1(0x22b)](),this[_0x553ce1(0x2a7)][_0x553ce1(0x2a4)](),this[_0x553ce1(0x35d)][_0x553ce1(0x2f6)](),this[_0x553ce1(0x280)][_0x553ce1(0x31f)](),this[_0x553ce1(0x25d)][_0x553ce1(0x31f)](),this[_0x553ce1(0x247)][_0x553ce1(0x31f)](),void this[_0x553ce1(0x206)][_0x553ce1(0x2ba)](),void this[_0x553ce1(0x32c)][_0x553ce1(0x28b)](),void this[_0x553ce1(0x283)][_0x553ce1(0x22b)](),this[_0x553ce1(0x353)][_0x553ce1(0x2ba)](),this[_0x553ce1(0x2f7)][_0x553ce1(0x2ba)](),this[_0x553ce1(0x21b)]?.[_0x553ce1(0x28b)](),this[_0x553ce1(0x21b)]=undefined;}[_0x48e4b0(0x212)]=_0x55db81=>this[_0x48e4b0(0x295)][_0x48e4b0(0x223)](_0x55db81);[_0x48e4b0(0x2e1)]=(_0x3086c1,_0x25bbb3,_0x1beb94,_0x46d108)=>this[_0x48e4b0(0x2e5)][_0x48e4b0(0x2fa)](_0x3086c1,_0x25bbb3,_0x1beb94,_0x46d108);[_0x48e4b0(0x211)]=(_0x584e68,_0x34736d)=>{const _0xf8d1ac=_0x48e4b0;this[_0xf8d1ac(0x24b)][_0xf8d1ac(0x317)](_0x584e68);const _0x27f811=isPlainRecord(_0x34736d)&&typeof _0x34736d[_0xf8d1ac(0x259)]===_0xf8d1ac(0x29d)?_0x34736d[_0xf8d1ac(0x259)]:undefined,_0x284fd6=isPlainRecord(_0x34736d)&&typeof _0x34736d[_0xf8d1ac(0x2ed)]===_0xf8d1ac(0x29d)?_0x34736d[_0xf8d1ac(0x2ed)]:undefined,_0x5ef29b=this[_0xf8d1ac(0x291)][_0xf8d1ac(0x25e)](_0x584e68),_0x439fba=_0x27f811===undefined||_0x5ef29b===undefined?undefined:conversationSegmentIdentityForItem(_0x5ef29b,_0x27f811,_0x284fd6);this[_0xf8d1ac(0x2e5)][_0xf8d1ac(0x2fa)](_0x584e68,_0xf8d1ac(0x32d),_0x439fba===undefined||!isPlainRecord(_0x34736d)?_0x34736d:{..._0x34736d,'segmentId':_0x439fba['id'],'segmentIndex':_0x439fba[_0xf8d1ac(0x2af)]});};[_0x48e4b0(0x231)]=_0x141c7a=>{const _0xa4ee73=_0x48e4b0,_0x45bd2d=isPlainRecord(_0x141c7a)&&Array[_0xa4ee73(0x335)](_0x141c7a[_0xa4ee73(0x268)])?conversationSegments(_0x141c7a):[];this[_0xa4ee73(0x255)](_0xa4ee73(0x1f6),{'turn':_0x141c7a,'segments':_0x45bd2d});};[_0x48e4b0(0x2a1)]=(_0x2e5010,_0x322ec1)=>{const _0x17e644=_0x48e4b0;if(_0x2e5010===_0x17e644(0x2e8)){this[_0x17e644(0x33d)](_0x322ec1);return;}this[_0x17e644(0x255)](_0x2e5010,_0x322ec1);};[_0x48e4b0(0x33d)]=_0x1d3e6f=>{const _0x54af9a=_0x48e4b0;if(isPlainRecord(_0x1d3e6f)&&isPlainRecord(_0x1d3e6f[_0x54af9a(0x2e8)])){const _0x3b1b1e=_0x1d3e6f[_0x54af9a(0x2e8)][_0x54af9a(0x287)];typeof _0x3b1b1e===_0x54af9a(0x29d)&&(this[_0x54af9a(0x25d)][_0x54af9a(0x2d9)](_0x3b1b1e),void this[_0x54af9a(0x280)]?.[_0x54af9a(0x2ff)](_0x3b1b1e,_0x54af9a(0x200)));}this[_0x54af9a(0x255)](_0x54af9a(0x2e8),_0x1d3e6f);};[_0x48e4b0(0x255)]=(_0x20cf51,_0x42fd0b)=>{const _0x166a8d=_0x48e4b0;if(_0x20cf51===_0x166a8d(0x1f6)&&isPlainRecord(_0x42fd0b)&&isPlainRecord(_0x42fd0b[_0x166a8d(0x29e)])&&_0x42fd0b[_0x166a8d(0x29e)][_0x166a8d(0x29a)]!==_0x166a8d(0x326)){const _0x14eafd=typeof _0x42fd0b[_0x166a8d(0x29e)][_0x166a8d(0x1fe)]===_0x166a8d(0x29d)?_0x42fd0b[_0x166a8d(0x29e)][_0x166a8d(0x1fe)]:undefined,_0x1010c6=typeof _0x42fd0b[_0x166a8d(0x29e)][_0x166a8d(0x2f0)]===_0x166a8d(0x216)?_0x42fd0b[_0x166a8d(0x29e)][_0x166a8d(0x2f0)]:undefined,_0xb5d050=_0x14eafd===undefined?undefined:this[_0x166a8d(0x291)][_0x166a8d(0x25e)](_0x14eafd);if(_0xb5d050===undefined)return;const _0x16ea6a=isPlainRecord(_0x42fd0b[_0x166a8d(0x29e)][_0x166a8d(0x1ef)])?_0x42fd0b[_0x166a8d(0x29e)][_0x166a8d(0x1ef)]:undefined,_0x49d99d=_0x42fd0b[_0x166a8d(0x29e)][_0x166a8d(0x29a)]===_0x166a8d(0x336)&&typeof _0x16ea6a?.[_0x166a8d(0x1ff)]===_0x166a8d(0x29d)?_0x16ea6a[_0x166a8d(0x1ff)]:undefined,_0x202e4f=_0x49d99d===undefined||_0x1010c6===undefined?undefined:_0xb5d050[_0x166a8d(0x268)][_0x166a8d(0x33c)](_0x2c3141=>_0x2c3141[_0x166a8d(0x2ed)]===_0x166a8d(0x2d1)&&_0x2c3141[_0x166a8d(0x310)]===_0x1010c6),_0x51e188=_0x202e4f?.[_0x166a8d(0x2b0)]===_0x1010c6;_0x42fd0b=_0x202e4f===undefined||_0x51e188?{'turn':_0xb5d050,'segments':conversationSegments(_0xb5d050)}:{'sessionId':_0xb5d050[_0x166a8d(0x325)],'delta':{'runId':_0xb5d050[_0x166a8d(0x1fe)],'itemId':_0x202e4f['id'],'text':_0x49d99d,'createdAt':typeof _0x42fd0b[_0x166a8d(0x29e)][_0x166a8d(0x2dc)]===_0x166a8d(0x216)?_0x42fd0b[_0x166a8d(0x29e)][_0x166a8d(0x2dc)]:Date[_0x166a8d(0x28c)]()}};}const _0x5ab578=this[_0x166a8d(0x2b3)][_0x166a8d(0x2fb)](_0x20cf51,_0x42fd0b);if(_0x5ab578===undefined)return;const _0x3312ab=_0x20cf51===_0x166a8d(0x1f6)&&isPlainRecord(_0x42fd0b)&&isPlainRecord(_0x42fd0b[_0x166a8d(0x29e)])&&_0x42fd0b[_0x166a8d(0x29e)][_0x166a8d(0x29a)]===_0x166a8d(0x326),_0x31fdcb=workbenchPayloadSessionId(this[_0x166a8d(0x291)],_0x20cf51,_0x42fd0b);if(!_0x3312ab&&_0x31fdcb!==undefined){this[_0x166a8d(0x35b)][_0x166a8d(0x33f)](_0x31fdcb,_0x5ab578);return;}this[_0x166a8d(0x2b3)][_0x166a8d(0x306)](_0x5ab578);};[_0x48e4b0(0x328)]=_0x3ab71e=>this[_0x48e4b0(0x2eb)][_0x48e4b0(0x339)](_0x3ab71e);[_0x48e4b0(0x234)]=_0x157f1c=>this[_0x48e4b0(0x233)][_0x48e4b0(0x284)](_0x157f1c);[_0x48e4b0(0x237)]=()=>undefined;[_0x48e4b0(0x2c4)]=()=>this[_0x48e4b0(0x2c8)][_0x48e4b0(0x2c4)]();[_0x48e4b0(0x311)]=()=>this[_0x48e4b0(0x2c8)][_0x48e4b0(0x311)]();async[_0x48e4b0(0x31a)](_0x5ae6e7,_0x310efd){const _0x4fd407=_0x48e4b0;if(this[_0x4fd407(0x21b)]===undefined)throw new Error(_0x4fd407(0x343));if(this[_0x4fd407(0x2a3)][_0x4fd407(0x1f1)](_0x5ae6e7))throw new Error(_0x4fd407(0x35c));return nodeLog(_0x4fd407(0x29f),{'nodeId':this[_0x4fd407(0x2d5)]?.[_0x4fd407(0x219)],'operation':_0x5ae6e7}),this[_0x4fd407(0x248)][_0x4fd407(0x34b)](_0x5ae6e7,_0x310efd);}[_0x48e4b0(0x1ee)](_0x25ac7f,_0x584dbe){const _0x4e0eaa=_0x48e4b0;this[_0x4e0eaa(0x253)][_0x4e0eaa(0x260)](_0x25ac7f['id'],{'commandId':_0x4e0eaa(0x32f),'active':_0x584dbe[_0x4e0eaa(0x224)]===_0x4e0eaa(0x2c2),'label':_0x4e0eaa(0x235),'detail':_0x584dbe[_0x4e0eaa(0x32e)][_0x4e0eaa(0x205)](0x944*-0x3+0xe9*-0xe+0x1445*0x2,0x1*-0xedf+0xa*-0xd5+0x1925),'closable':!![],'closeInput':_0x4e0eaa(0x26e),'mission':{'id':_0x584dbe['id'],'objective':_0x584dbe[_0x4e0eaa(0x32e)],'revision':_0x584dbe[_0x4e0eaa(0x310)],'status':_0x584dbe[_0x4e0eaa(0x224)]}}),this[_0x4e0eaa(0x255)](_0x4e0eaa(0x2e8),{'session':this[_0x4e0eaa(0x2f5)][_0x4e0eaa(0x303)](_0x25ac7f)});}[_0x48e4b0(0x1f3)](_0x2884f9,_0x46234e,_0x3a9372){const _0x3fc58c=_0x48e4b0;this[_0x3fc58c(0x2f7)][_0x3fc58c(0x1f3)](_0x2884f9,_0x46234e,_0x3a9372);}[_0x48e4b0(0x2b4)](_0x36b985){const _0x22dfc2=_0x48e4b0;this[_0x22dfc2(0x2f7)][_0x22dfc2(0x2b4)](_0x36b985);}}
2
+ const _0x50c5b1=_0x31d7;(function(_0x22dc5e,_0x18c269){const _0x8d27f7=_0x31d7,_0x5bfb43=_0x22dc5e();while(!![]){try{const _0x41bbb6=-parseInt(_0x8d27f7(0xfd))/(0xcd0+-0x129d+0x5ce)+parseInt(_0x8d27f7(0x80))/(0xc17+-0x1601+0x27b*0x4)*(-parseInt(_0x8d27f7(0x1f0))/(-0x20e4+0x54f*-0x1+-0x131b*-0x2))+-parseInt(_0x8d27f7(0x1c3))/(0x8d8+0x24*0xa6+-0x202c)*(parseInt(_0x8d27f7(0x170))/(-0x3f*0x41+-0x1*0x1c00+0x9*0x4e4))+-parseInt(_0x8d27f7(0x1b4))/(-0x2587+-0x293*-0x4+0x1b41*0x1)*(-parseInt(_0x8d27f7(0xad))/(-0x2*-0xfba+0x63*-0x40+-0x6ad))+parseInt(_0x8d27f7(0x169))/(-0x119e+0x13d*0x4+0xcb2)*(parseInt(_0x8d27f7(0x156))/(-0x2a0+0x1c6e+-0x19c5))+-parseInt(_0x8d27f7(0x185))/(0x12b4+0x1*-0x2316+0x1*0x106c)*(parseInt(_0x8d27f7(0xa2))/(0xeca+0x28*-0x5c+-0x5f))+-parseInt(_0x8d27f7(0x1e5))/(-0x1cab+0x681*0x2+0x1*0xfb5)*(-parseInt(_0x8d27f7(0xa7))/(0x2b*-0x3b+0x577+0x47f));if(_0x41bbb6===_0x18c269)break;else _0x5bfb43['push'](_0x5bfb43['shift']());}catch(_0x5f0550){_0x5bfb43['push'](_0x5bfb43['shift']());}}}(_0x52f5,-0x9c5e6+-0x34826+-0x23610*-0x9));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';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';function _0x52f5(){const _0x5d3fe1=['CMvHza','mtCWC3rTvMny','zgf0ywjHC2u','Bwv0ywrHDge','y2fJAgvKu2vZC2LVBNm','D29YA3nWywnLrMLSzvnLCNzPy2u','BwfYqwDLBNrdBgLLBNq','ChvIBgLZAfnUyxbZAg90','ywnJzxb0rM9YtwvZC2fNzq','ywrVChrsDw4','u0vora','y29UDMvYC2f0Aw9U','C3rVChbLza','zwzMB3j0','CgXHDgzVCM0','C2vZC2LVBK1LC3nHz2vtzxj2AwnL','yxbWCM92ywXjza','ChjVBw90zvnLC3nPB25jzgvUDgL0Eq','ms4WlJa','D29YA3nWywnLv2f0y2Htzxj2AwnL','yxbWBgLJyxrPB24VANnVBG','DhjHBNnPDgLVBMLUzW','mJbzsfHps2S','ywnJzxnZ','BwfUywDLzezVCK5HDgL2zq','CNvUqxr0ywnOBwvUDfnLCNzPy2u','DgLTzxi','zxHLy3v0zq','tK9erv9dt05orunusu9ox1jfueXbq0ve','Ahr0Chm6lY8XmJCUmc4WlJeUAw52ywXPzc9Ty3a','C2vJCMv0CW','CMvMCMvZAfrPDgXL','CNvUBMvYvgL0Bgu','B3bLBKnVzgvsDw5dB250CM9SBgvY','DxbNCMfKzs1Yzxn1BhqUANnVBG','D29YA2jLBMnOtwfUAwzLC3rtzxj2AwnL','ChjLCgfYzu1PC3nPB25tzxnZAw9U','Aw5ZDgfSBgf0Aw9U','C2vZC2LVBKnHDgfSB2Dtzxj2AwnL','CNvUrxzLBNrcCMLKz2u','BgLZDfDVCMTZCgfJzxm','BM9Kzs53B3jRyMvUy2GUy2fWywjPBgL0AwvZ','D29YA3nWywnLuxvLDwvxB3jRyMvUy2Htzxj2AwnL','y2fUy2vS','C2vZC2LVBG','C3rYAw5N','CNvUBMvYlMnVBw1HBMqUzxHLy3v0zq','q0foq0vmteLorW','Bwf4','zgLZy29UBMvJDa','C2vUzevUDMvSB3bL','BwLZC2LVBLj1BNrPBwu','zxH0zxjUywXtzxnZAw9Uswq','C2vZC2LVBKLKzw50Axr5u2vYDMLJzq','zxHWAxjL','zMLSDgvY','y2XLyxjnAxnZAw9UuMv0CNK','Bw9KzwW','y29UDgLUDwu','CMvJB3jK','C2vYDMvYvxjS','C2vZC2LVBLn0yxrL','Cgf5Bg9Hza','CNvUlNj1BM5PBMC','ywn0AxzLv29YA3nWywnLtgvHC2vdB3vUDa','BMf0AxzLswrZ','CMvMCMvZAenHCgfIAwXPDgLLCW','DhvYBNm','D2vIu2vHCMnO','mZa2yxLsDMne','CMvWBgfJzvnVy2TLDezVCLrLC3rPBMC','C2v0q2HHBM5LBfrVA2vU','CNvUCW','tK9erv9vueDsqurfx1bftKrjtKC','BM9KzvjLCxvLC3rZ','D29YA3nWywnLvxbSB2fKu2vYDMLJzq','zw1PDff1zxvL','zxzLBNq','y3jLyxrLzef0','AxrLBxm','BM90AwzPy2f0Aw9U','C2vZC2LVBI13yxrJAc1ZBMfWC2HVDa','C2nOzwr1Bgu','CNvUDgLTzq','mtK2nJbvD2rfDg8','CNvUrxzLBNrtzxj2AwnL','CMvZB2X2zq','C2vZC2LVBNm','zMfRzvnJCMLWDa','u1vdq0vfreve','CMvXDwvZDenSyxvKzvvZzxjjBNb1Da','BwLU','CgvUzgLUz01PC3nPB25dB21Tyw5Ku3rHDgu','CMvTzw1Izxi','CNvUBMvYCW','tuLtu0LptL9ot1rFqunusvzf','yMLUzenVBNrYB2W','C2H1DgrVD24','z2v0v29YA3nWywnL','CMvNAxn0zxi','y3vYCMvUDev4zwn1DgLVBKLK','uKvqtefdrv9dvvjsru5u','BgLZDa','ChjLCgfYzu1LC3nHz2vjBNb1Da','C3rVCfDHDgnO','CMvMCMvZAev4DgvYBMfSqwn0AxzPDhK','C3rHCNq','y2fUy2vSq2XHDwrLuNvU','CNvUlNn0yxj0zwq','y29KzxHqCM9MAwXLq2XPzw50rMfJDg9YEq','C3rHCNrdyxbHyMLSAxr5uMvMCMvZAa','z2v0qwDLBNrtzxnZAw9U','twLZC2LVBG','BM9Kzs5VCgvYyxrPB24','y29TCgXLDgvKqxq','y29UDgLUDw91C1j1BKnVB3jKAw5HDg9Y','BwfUywDLzfj1BM5LCLnLC3nPB25Z','zgvJAwrLq29KzxHbChbYB3zHBa','mZzdB1r2CKC','BwLNCMf0zvnLC3nPB24','ChjVAMvJDgLVBKzVCK5HDgL2zq','BwLNCMf0zvj1BM5LCLnLC3nPB25jzgvUDgL0Eq','D2LUmZi','ChjVAMvJDeLUAxrPywW','zw1PDenVBNzLCNnHDgLVBLr1CM4','CNvUu3rHDgu','AgfUzgXL','ChjVzMLSzxm','zgvJAwrLqxbWCM92ywW','mJi3nZa5s0nkELnn','DxnLCKLUChv0CW','BMf0AxzLu2vZC2LVBLbYB2PLy3rPB25tzxj2AwnL','BM9Kzs51CgDYywrLlMnHBMnLBa','uKvkrunuruq','BM93','y29UBMvJDgvKqxr0zw1WDa','CMvTB3zLtwLZC2LVBLf1zxvL','zMfRztO','C2vXDwvUy2u','C2v0','zMfPBgvKqxr0zw1WDhm','C2vZC2LVBLf1zxj5u2vYDMLJzq','zxHLy3v0zunVBw1HBMq','Aw52ywXPzgf0zunHy2HL','CMvJB3jKzwqTC2vZC2LVBG','C3rHCNrLzef0','B3bLCMf0Aw9UuM91DgvY','zw1PDenVBNzLCNnHDgLVBKL0zw0','zw1PDfjLywX0Aw1L','Dw5Yzwy','su5urvjsvvburuq','y29UDhjVBe1LC3nHz2vZ','CMvXDwvZDa','BNvTyMvY','AgfZ','tK9erv9eqvrbqKftrv9vtKfwquLmqujmrq','CMvJB25JAwXL','CMvWBgfJzq','C25HChnOB3rtzxf1zw5Jzq','CNvUlMnVBxbSzxrLza','CMvJB25Uzwn0u2nOzwr1BgvK','Dgv4Da','zxzLBNruExbL','ChjVBxb0','C2vZC2LVBLbYzxnLBNrHDgLVBLnLCNzPy2u','D29YA3nWywnLu2vYDMLJzq','CNvUlMzHAwXLza','mtrrqLLbtKG','zw5XDwv1zu1PC3nPB25dB250Aw51yxrPB24','C3rHDgu','z2v0','y29UBMvJDa','Bw92zq','CNvUBMvYvxnHz2vszwfKzxi','y29KzxHsDw5dB250CM9SBgvY','y2XHDwrLq2XPzw50','BMv4Da','C3vIBwL0twLZC2LVBG','CgvYC29UywXjBNn0CNvJDgLVBNm','ChvIBgLZAa','zgLZCgf0y2G','CMvTB3zLugvUzgLUz1f1zxvL','B3bLBKnVzgvdBgLLBNq','tK9erv9vtKfvveHftLrjq0furuq','CNvUBMvY','D29YA3nWywnLswq','y3jLyxrLqxbWCM92ywW','C2L6zq','AgfZqwn0AxzLu2vZC2LVBKXLyxnL','Aw50zxjYDxb0uMvXDwvZDgvK','zgvSzxrL','zgLZy292zxjxB3jRC3bHy2u','y2fUy2vSq29KzxHuDxjU','CgvUzgLUzW','y29UBMvJDgvK','zgLZy292zxjxB3jRC3bHy2vtzxnZAw9UCW','BM9KzuLK','y2XHDwrLuNvUq29UDhjVBgXLCG','zw5ZDxjLuMvZDw1LzenVBMzPz3vYyxrPB24','zgLYzwn0tMf0AxzL','C25HChnOB3q','mtiZnZKWn0rkzLrWDa','uLvox05pvf9gt1vora','DgvYBwLUywXtzxj2AwnL','Aw5ZCgvJDa','y3jLyxrLqwDLBNrtzxnZAw9U','mti4ndyYmvHoyuLKwG','CgvYC2LZDfrLCM1PBMfS','D29YA3nWywnLv29YA2jLBMnOu2vYDMLJzq','B2jQzwn0AxzL','BM9Kzs5JB25Uzwn0Aw9UlNjLCgXHy2vK','BgLUDxG','odqZnJrwAezsugy','BwLZC2LVBG','zMX1C2Hqzw5KAw5Nvgv4Da','rvHurvjoquW','AxrLBuLK','tK9erv9tve9queve','uvvfvuu','CMvZCg9UzfvZzxjjBNb1Da','zgvJAxnPB24','zgvJAwrL','C3vWzxj2AxnLzfvWz3jHzgu','zw1PDfj1BG','D29YA3nWywnLq2HHBMDLu2vYDMLJzq','y2HHBMDLza','B25oB3rPzMLJyxrPB24','Aw52ywXPzgf0zvrVCgLJ','zM9Yz2v0','Cgf0Aa','ywrK','CMvTB3zL','zw5ZDxjLv2f0y2G','C2vZC2LVBKnVBNrLEhrtzxj2AwnL','ue9tva','Aw52ywXPzgf0zvDVCMTZCgfJzvDHDgnOvg9WAwnZ','zw5ZDxjLvg9WAwntBMfWC2HVDa','C2vJCMv0rw52AxjVBM1LBNq','CNvUDgLTzs1UB2rL','zMfZDa','ywXSB3DLzfjVB3rZ','yMXVy2TZ','CMvZDw1Lqwz0zxjdB21Tyw5KuNvU','y3DK','zxHLy3v0Aw9U','AgfUzgXLtwvZC2fNzq','ChjLC2vUDa','DxbNCMfKzq','y29UDMvYC2f0Aw9UvhvYBKzVCLj1BG','CMvNAxn0zxjbBgW','tK9erv9dt05gsuDFvu5bvKfjtefcteu','zxH0zxjUywXtzxnZAw9UuMvZDw1Lu2vYDMLJzq','y29UBMvJDgLVBKXPzMvJEwnSzq','DxbNCMfKzvjLywr5','D29YA2jLBMnOrxzLBNrtzxj2AwnL','Dg9WAwnby3rPDMu','zgvJAwrLq2XHDwrLqxbWCM92ywW','Dw5YzwDPC3rLCMvK','yxzHAwXHyMXL','y29UDhjVBenOyw5UzwW','CMvJzw50lxj1BNm','Aw5KzxG','ywn0AxzLu2vZC2LVBLj1BG','DgHYzwfKswq','y29UzMLN','Aw52ywXPzgf0zq','CNvUv29YA2jLBMnOu2vYDMLJzq','zxH0zxjUywXby3rPDML0Eq','D29YA3nWywnLu2vZC2LVBLnLCNzPy2u','D2f0y2GUzxzLBNq','y2XLyxi','y29UDMvYC2f0Aw9UlML0zw0','zgLZy292zxi','C2f2zu5HDgL2zvnLC3nPB25nzxrHzgf0yq','Bwf0zxjPywXPEMvdB2rLEa','BwfYlwLUDgvYBMfSlw1PC3nPB24','zMLUAxnOswrSzu1PC3nPB25sDw4','BM9KzuDLBMvYyxrPB24','CMfUzg9Tvvvjra','q0foq0vm','C2vUza','D2LUzg93CW','y29TCgXLDgvdyw5JzwXSzwrsDw4','zxHPDa','zMLUza','Aw50zxjYDxb0','C2XPy2u','ANnVBG','BwLZC2LVBK1JCfnLCNzLCG','CgvYC2LZDezPBgvZ','DMfSDwvZ','BMf0AxzLsw1Hz2vsB290CW','mJm4mdi4AfjkCKPr','y29TBwfUzfn0yxrLCW','CMvHzeHPC3rVCNLqywDL','yM9VDhn0CMfWswrZ','BxLHz2vUDhjVyw1FBwLZC2LVBG','CMvZB2X2zun1CNjLBNq','C2vZC2LVBKXPzMvJEwnSzvnLCNzPy2u','y29UDMvYC2f0Aw9UsgLZDg9YEvnLCNzPy2u','y2XLyxjxB3jRC3bHy2u','y2fWywjPBgL0AwvZ','C3rVCa','BM9Kzs5JB25Uzwn0Aw5N','CMvJzw50uNvUuhjVAMvJDgLVBLnLCNzPy2u','B25tDw1Tyxj5','ChvIBgLZAfDVCMTIzw5JAev2zw50','A2LUza','ChvIBgLZAefWChjVDMfS','AxnbCNjHEq','DhvYBKLK','y29UzMLNugf0Aa','y2HHBM5LBfrVA2vU','CNvUBMvYq2HHBM5LBe1LC3nHz2vZ','CMv2B2TL','C2vZC2LVBI5SAxn0','CNvU','DhvYBG','Bwv0CMLJCW','B3bLCMf0Aw9UCW','BwLZC2LVBKnVBNrPBNvHDgLVBLbLBMrPBMC','C3rYAw5NAwz5','CMvQzwn0','yxbWCM92ywXZ','C2vZC2LVBKLK','C2vZC2LVBKnVBw1HBMrtzxj2AwnL','CNvUBMvYsw50zxjHy3rPB25tzxj2AwnL','ywn0AxzL','DgvYBwLUywXnyw5Hz2vY','CMvJB25JAwXLugvYC2LZDgvKuNvUCW','z2v0uNvU','q0foq0vmteve','Aw52ywXPzgf0zunOyw5Nzxm','CMvJB3jKrxHLy3v0Aw9UuMvZDwX0','zw1PDfnLC3nPB25xB3jRyMvUy2HfDMvUDa','CNvUswq','AgfUzgXLtM90AwzPy2f0Aw9U','ChjVBw90zq','BMf0AxzLu2vZC2LVBLDHDgnOu2vYDMLJzq','y2f0y2G','l2fWAs9UB2rLlxrVB2XZl3DLyI1ZzwfYy2G','l21PC3nPB24Gls1JBgvHCG','C3rHDhvZ','AgfZrxHLy3v0Aw9Uu3rHCNrLza','tufsx0fhru5ux1DfqL9trufsq0HFrKfjteve','BMf0AxzLlNnLC3nPB24UzgLZy292zxj5lNbLBMrPBMC','CMvJB25Uzwn0','yMXVy2TbzNrLCLj1BNrPBwvgywLSDxjL','CMvXDwLYzq','y29KzxHdBgLLBNq','y2XVC2u','BwLZC2LVBLjLDhj5vgLTzxjZ','rKflrv9svu5orvjFreLtq09otKvdva','y2XLyxjbBgW','C29JA2v0','y29KzxG','CMvHze5HDgL2zq','BM9Kzs5TzxrYAwnZ','zxHWAxjLqxbWCM92ywW','qMvHCMvYia','tuLtu0LptL9dt05usu5vqvrjt05FrKfjteve','zxHLy3v0zu5VzgvpCgvYyxrPB24','D29YA3nWywnLq29VCMrPBMf0B3i','DxbNCMfKzunVB3jKAw5HDg9Y','CNvUBMvYu2vYDMLJzq','CMvJB3jKvhvYBG','l21PC3nPB24','vgHPCYboB2rLignVBM5Ly3rPB24GD2fZihjLCgXHy2vKigj5igeGBMv3zxiGAw5ZDgfUy2uGD2L0Acb0AguGC2fTzsbPzgvUDgL0Es4Gq2HLy2SGzM9Yigr1CgXPy2f0zsbWCM9JzxnZzxmU','y2XLyxjxyxrJAgvZ','y2fWywjPBgL0EurLDgvJDg9Y','rKfjteve','y3jLzgvUDgLHBa','y29UDMvYC2f0Aw9Uu2vNBwvUDfnLCNzPy2u','yxbWCM92ywW6','zMfRzvj1BM5LCG','zw1PDfDVCMTIzw5JAev2zw50','BgLZDfj1BNngB3jtzxnZAw9U','BwfYqwDLBNrsDw5dB250CM9SBgvY','DxbKyxrLqwDLBNrtzxnZAw9UqwnJzxnZ','Cgf1C2vtzxnZAw9UuxvLDwu','Bg9HzfjLC3vSDa','ovbfBuPfra','zgLZCg9Zzq','yxnZAxn0yw50x21LC3nHz2u','surmrq','yxbWzw5K','D29YA3nWywnLu3rHDgu','zw1PDfj1BKv2zw50','sfruua','yMLUzenVBw1HBMrdB250CM9S','y2XHDwrLqxbWCM92ywXuAw1LB3v0txm','Dgv4Dc5KzwX0yq','zxHLy3v0Aw9Uu3rHCNrLza','lw9Wzw5JB2rLlwLTywDLCW','y2XLyw51Ca','ChvIBgLZAe1PC3nPB25tDgf0zq','BM9Kzs51CgDYywrLlNjLCxvLC3q','zwzMzwn0AxzLtwnWsw5ZDgfSBgf0Aw9UCW','CMvZDw1LzenVBMzPz3vYyxrPB24','CMv2AxnPB24','ntu5mJu5mNPiExflsW','v09ss1nqqunf','y2fWywjPBgL0AwvZuhjVDMLKzwq','CMvXDwvZDenSyxvKzufWChjVDMfS','y2XVC2vsDw5UAw5NvgvYBwLUywXtzxnZAw9UCW','DgvYBwLUywXdAgfUBMvS'];_0x52f5=function(){return _0x5d3fe1;};return _0x52f5();}function _0x31d7(_0x2943a3,_0x696851){_0x2943a3=_0x2943a3-(0x1*0x205b+-0x83e*-0x1+-0x1*0x281b);const _0xba7f04=_0x52f5();let _0x368b08=_0xba7f04[_0x2943a3];if(_0x31d7['XVoKxS']===undefined){var _0x55630e=function(_0x4e13d6){const _0x342e52='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x266161='',_0xa1c10e='';for(let _0x3eb555=-0x6fd*-0x3+0x23*0xb5+0x16db*-0x2,_0x2f45fd,_0x220a7c,_0x2beea7=-0x18d3+-0x1*0x64d+0x1f20;_0x220a7c=_0x4e13d6['charAt'](_0x2beea7++);~_0x220a7c&&(_0x2f45fd=_0x3eb555%(-0x21fc+0x2b4+0x1f4c)?_0x2f45fd*(0x318+-0x2353*0x1+0x207b)+_0x220a7c:_0x220a7c,_0x3eb555++%(-0x483+-0x1945*0x1+-0xee6*-0x2))?_0x266161+=String['fromCharCode'](0x98b*-0x2+0xf94+0x481&_0x2f45fd>>(-(-0x1*-0x14f7+-0x4*-0x62b+0x1*-0x2da1)*_0x3eb555&0xdf3+-0x4bb+-0x16*0x6b)):0x223b+-0x6f+-0x21cc){_0x220a7c=_0x342e52['indexOf'](_0x220a7c);}for(let _0x5967ab=-0x3*-0x8f3+0x1*0x1379+-0x2e52,_0x3beb40=_0x266161['length'];_0x5967ab<_0x3beb40;_0x5967ab++){_0xa1c10e+='%'+('00'+_0x266161['charCodeAt'](_0x5967ab)['toString'](0x1c5e*-0x1+-0x60a*0x5+-0x1d5*-0x20))['slice'](-(0x240b+-0x1a99+-0x970));}return decodeURIComponent(_0xa1c10e);};_0x31d7['BkdMui']=_0x55630e,_0x31d7['laUFUM']={},_0x31d7['XVoKxS']=!![];}const _0x1f8008=_0xba7f04[-0xebc+0x1d8a+-0xece];_0x31d7['RpgrhP']!==_0x1f8008&&(_0x31d7['laUFUM']={},_0x31d7['RpgrhP']=_0x1f8008);const _0x222f5f=_0x31d7['laUFUM'][_0x2943a3];return _0x222f5f===undefined?(_0x368b08=_0x31d7['BkdMui'](_0x368b08),_0x31d7['laUFUM'][_0x2943a3]=_0x368b08):_0x368b08=_0x222f5f,_0x368b08;}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=0x44*0xf0+0x131c*-0x4+0x4748,CAPABILITY_REFRESH_MS=-0x3*0x1933+-0x146ea+0x27ce3,RETRY_MIN_MS=0x2b4+-0x9d5+-0x307*-0x3,RETRY_MAX_MS=-0x6d43+0xcda4+0x14cf,CLAUDE_APPROVAL_TIMEOUT_MS=(-0x1945*0x1+-0x16db*0x1+0x302a)*(-0x1*-0xbaeb+0x37f4+0x57*-0x19);export function nextReconnectDelay(_0x488f2f){const _0x582141=_0x31d7;return Math[_0x582141(0x1ca)](RETRY_MAX_MS,RETRY_MIN_MS*(-0xe*-0xfe+0x1*-0x55e+-0x2*0x442)**Math[_0x582141(0x1ca)](Math[_0x582141(0x19f)](_0x488f2f,-0x2*0x455+-0x1*0x24ee+0x2d98),0x11*-0x121+-0x2*0x6a+0x1*0x1415));}function upgradeMetadata(_0x153914,_0x1e9fca){const _0x2d4e4c=_0x31d7,_0x18c5a6={..._0x153914??{}};if(process.env['MAR_NODE_SUPERVISED']==='1')_0x18c5a6[_0x2d4e4c(0xb7)]=!![];else delete _0x18c5a6[_0x2d4e4c(0xb7)];if(_0x1e9fca[_0x2d4e4c(0x82)]===_0x2d4e4c(0x159))delete _0x18c5a6[_0x2d4e4c(0xd0)];else _0x18c5a6[_0x2d4e4c(0xd0)]=_0x1e9fca;return _0x18c5a6;}export class NodeConnector{[_0x50c5b1(0xee)]=crypto[_0x50c5b1(0xef)]()[_0x50c5b1(0x20c)](/-/g,'');[_0x50c5b1(0xdc)];[_0x50c5b1(0x206)];[_0x50c5b1(0x1b9)];[_0x50c5b1(0xd5)];set[_0x50c5b1(0x13b)](_0x26cd39){const _0x11d397=_0x50c5b1;this[_0x11d397(0xdc)][_0x11d397(0x1b5)](_0x26cd39);}[_0x50c5b1(0x17b)]=![];[_0x50c5b1(0xe1)];[_0x50c5b1(0x16b)];[_0x50c5b1(0x106)];[_0x50c5b1(0x14a)];[_0x50c5b1(0x110)];[_0x50c5b1(0x133)];[_0x50c5b1(0x15f)];[_0x50c5b1(0xd7)]=new WorkbenchEventService(envelope=>this[_0x50c5b1(0x1a1)](envelope),(category,payload)=>{const _0x5334b0=_0x50c5b1,sessionId=workbenchPayloadSessionId(this[_0x5334b0(0x1c2)],category,payload);return sessionId===undefined||!this[_0x5334b0(0x1a4)][_0x5334b0(0x100)][_0x5334b0(0x209)](sessionId);});[_0x50c5b1(0x14f)];[_0x50c5b1(0x1c7)];[_0x50c5b1(0x1ec)]=new RunDomainState();[_0x50c5b1(0x196)];[_0x50c5b1(0x143)];[_0x50c5b1(0x1ac)]=new SessionDomainState();[_0x50c5b1(0x1a4)];[_0x50c5b1(0x1f2)];[_0x50c5b1(0x104)];[_0x50c5b1(0x14d)];[_0x50c5b1(0x11f)];[_0x50c5b1(0x112)];[_0x50c5b1(0x1e3)];[_0x50c5b1(0x213)];[_0x50c5b1(0x103)];[_0x50c5b1(0xd4)];[_0x50c5b1(0x17e)];[_0x50c5b1(0x195)];[_0x50c5b1(0x11e)];[_0x50c5b1(0x188)];[_0x50c5b1(0x16e)];[_0x50c5b1(0x136)];[_0x50c5b1(0x87)];[_0x50c5b1(0x88)];[_0x50c5b1(0x8f)];[_0x50c5b1(0x175)];[_0x50c5b1(0x152)];[_0x50c5b1(0x190)];[_0x50c5b1(0x9e)];[_0x50c5b1(0x1cd)];[_0x50c5b1(0xc2)];[_0x50c5b1(0xe3)];[_0x50c5b1(0x1fc)];[_0x50c5b1(0x1e2)];[_0x50c5b1(0x199)];[_0x50c5b1(0x201)]=new NodeOperationRouter();[_0x50c5b1(0x145)];[_0x50c5b1(0x192)];[_0x50c5b1(0xa4)];[_0x50c5b1(0x7e)];[_0x50c5b1(0xfe)]=new CommandStateStore();[_0x50c5b1(0x1a2)]=new MissionRuntime(()=>undefined);[_0x50c5b1(0x138)]=new Map();[_0x50c5b1(0x119)]=new Map();[_0x50c5b1(0xf9)]=new MissionMcpServer(this[_0x50c5b1(0x1a2)],sessionId=>{const _0x1b8623=_0x50c5b1,mission=this[_0x1b8623(0x1a2)][_0x1b8623(0x83)](sessionId),session=this[_0x1b8623(0x1c2)][_0x1b8623(0x1de)](sessionId);if(mission===undefined||session===undefined)return;if(mission[_0x1b8623(0x12f)]!==_0x1b8623(0x120))this[_0x1b8623(0x1e2)][_0x1b8623(0x1f7)](sessionId);this[_0x1b8623(0x164)](session,mission);});[_0x50c5b1(0x86)];[_0x50c5b1(0x121)];[_0x50c5b1(0x144)];[_0x50c5b1(0x15b)]=new WorkspaceDomainState();[_0x50c5b1(0x182)]=new WorkspaceWatchService(this[_0x50c5b1(0x15b)],workspaceId=>this[_0x50c5b1(0xe5)][_0x50c5b1(0xc1)](workspaceId),workspaceId=>this[_0x50c5b1(0xe5)][_0x50c5b1(0x1d7)](workspaceId),workspaceId=>this[_0x50c5b1(0xa9)]?.[_0x50c5b1(0x105)](workspaceId));[_0x50c5b1(0xe5)]=new WorkspaceSessionService(this[_0x50c5b1(0x15b)],{'discover':workspaceId=>this[_0x50c5b1(0x9c)](workspaceId),'listPage':workspaceId=>this[_0x50c5b1(0x142)](_0x50c5b1(0x114),{'workspaceId':workspaceId,'limit':0x14}),'active':workspaceId=>this[_0x50c5b1(0x182)][_0x50c5b1(0xd8)](workspaceId,_0x50c5b1(0x1c6)),'invalidate':workspaceId=>void this[_0x50c5b1(0xa9)]?.[_0x50c5b1(0xbc)](workspaceId,_0x50c5b1(0x1c6)),'onPending':(workspaceId,waitMs)=>nodeLog(_0x50c5b1(0x132),{'nodeId':this[_0x50c5b1(0xe1)]?.[_0x50c5b1(0x9d)],'workspaceId':workspaceId,'waitMs':waitMs})});[_0x50c5b1(0x174)]=new WorkspaceFileService(this[_0x50c5b1(0x15b)],()=>this[_0x50c5b1(0xe1)]?.[_0x50c5b1(0xc9)]??[],workspaceId=>this[_0x50c5b1(0x143)][_0x50c5b1(0xe2)](workspaceId));[_0x50c5b1(0x1ba)]=new WorkspaceUploadService(this[_0x50c5b1(0x15b)],workspaceId=>this[_0x50c5b1(0x143)][_0x50c5b1(0xe2)](workspaceId));[_0x50c5b1(0xb9)]=new WorkspaceChangeService(this[_0x50c5b1(0x15b)]);[_0x50c5b1(0xa9)];[_0x50c5b1(0x171)];[_0x50c5b1(0x109)]=new RecentRunProjectionService(message=>this[_0x50c5b1(0xf1)](_0x50c5b1(0xdd),message));[_0x50c5b1(0x1c2)]=new NodeRuntimeState(()=>this[_0x50c5b1(0xe1)]?.[_0x50c5b1(0x9d)]??_0x50c5b1(0xc7),workspaceId=>this[_0x50c5b1(0x171)]?.[_0x50c5b1(0x1d1)](workspaceId),Date[_0x50c5b1(0x1f5)],(run,session,userMessage)=>this[_0x50c5b1(0x109)][_0x50c5b1(0x1aa)](run,session,userMessage));[_0x50c5b1(0x117)]=new NodeMetrics();[_0x50c5b1(0x1c4)]=new RunEventService({'runtime':this[_0x50c5b1(0x1c2)],'metrics':this[_0x50c5b1(0x117)],'state':this[_0x50c5b1(0x1ec)],'isBootstrapSession':sessionId=>this[_0x50c5b1(0x1a4)][_0x50c5b1(0x100)][_0x50c5b1(0x209)](sessionId),'presentSession':session=>this[_0x50c5b1(0x213)][_0x50c5b1(0xcf)](session),'rejectBootstrap':(sessionId,code)=>this[_0x50c5b1(0x1a4)][_0x50c5b1(0x11b)](sessionId,code),'emitWorkbench':(category,payload)=>{const _0x3e58f5=_0x50c5b1;if(category===_0x3e58f5(0x17a)&&isPlainRecord(payload)&&_0x3e58f5(0x116)in payload)this[_0x3e58f5(0x1eb)](payload[_0x3e58f5(0x116)]);else this[_0x3e58f5(0x10b)](category,payload);},'cleanupAttachments':runId=>this[_0x50c5b1(0x188)][_0x50c5b1(0x163)](runId),'expireImages':runId=>this[_0x50c5b1(0x188)][_0x50c5b1(0x1a5)](runId),'scheduleContextRefresh':sessionId=>this[_0x50c5b1(0xc2)][_0x50c5b1(0x1c1)](sessionId),'refreshWorkspaceSessions':workspaceId=>this[_0x50c5b1(0xa9)][_0x50c5b1(0xc5)](workspaceId,_0x50c5b1(0x1c6)),'dispatchQueue':async(sessionId,delayMs=-0x1e8e+0x1c5e*-0x1+-0x9d2*-0x6)=>{const _0x392492=_0x50c5b1;if(this[_0x392492(0x144)][_0x392492(0x9a)]())return;if(delayMs>-0xbc*-0x1f+-0x18fb+0x237){this[_0x392492(0x1e2)][_0x392492(0x1c1)](sessionId,delayMs);return;}await this[_0x392492(0x1e2)][_0x392492(0x8d)](sessionId);},'executionStarted':executionId=>this[_0x50c5b1(0x1e2)][_0x50c5b1(0x161)](executionId),'keepRunActive':sessionId=>(this[_0x50c5b1(0x138)][_0x50c5b1(0x209)](sessionId)||this[_0x50c5b1(0x119)][_0x50c5b1(0x209)](sessionId))&&this[_0x50c5b1(0x1a2)][_0x50c5b1(0x83)](sessionId)?.[_0x50c5b1(0x12f)]===_0x50c5b1(0x120),'executionTerminating':(executionId,status)=>{const _0x4eec17=_0x50c5b1,pending=this[_0x4eec17(0x1e2)][_0x4eec17(0x9a)](executionId);if(pending?.[_0x4eec17(0xae)]===undefined)return;const started=this[_0x4eec17(0x1e2)][_0x4eec17(0x130)](executionId),blocked=this[_0x4eec17(0x1a2)][_0x4eec17(0x126)](pending[_0x4eec17(0x11d)],status===_0x4eec17(0x14b));if(blocked){this[_0x4eec17(0x1a7)](pending[_0x4eec17(0x11d)]),this[_0x4eec17(0x1e2)][_0x4eec17(0x1f7)](pending[_0x4eec17(0x11d)]);const terminalMission=this[_0x4eec17(0x1a2)][_0x4eec17(0x83)](pending[_0x4eec17(0x11d)]),session=this[_0x4eec17(0x1c2)][_0x4eec17(0x1de)](pending[_0x4eec17(0x11d)]);if(terminalMission!==undefined&&session!==undefined)this[_0x4eec17(0x164)](session,terminalMission);return;}if(status!==_0x4eec17(0x14b)||started)return;this[_0x4eec17(0x1a7)](pending[_0x4eec17(0x11d)]);const retry={'sessionId':pending[_0x4eec17(0x11d)],'timer':setTimeout(()=>{const _0x24fa28=_0x4eec17;this[_0x24fa28(0x138)][_0x24fa28(0x97)](retry[_0x24fa28(0x11d)]);const mission=this[_0x24fa28(0x1a2)][_0x24fa28(0x83)](retry[_0x24fa28(0x11d)]);if(mission?.[_0x24fa28(0x12f)]!==_0x24fa28(0x120)||mission['id']!==pending[_0x24fa28(0xae)]?.['id']||mission[_0x24fa28(0x168)]!==pending[_0x24fa28(0xae)][_0x24fa28(0x168)])return;void this[_0x24fa28(0x17e)][_0x24fa28(0x8a)]({'sessionId':retry[_0x24fa28(0x11d)],'kind':_0x24fa28(0x1a9),'content':this[_0x24fa28(0x1a2)][_0x24fa28(0x212)](retry[_0x24fa28(0x11d)],_0x24fa28(0x1a9)),'deliveryIntent':_0x24fa28(0x179),'mission':{'id':mission['id'],'revision':mission[_0x24fa28(0x168)]},'secretEnvironment':pending[_0x24fa28(0xc6)],...pending[_0x24fa28(0x8b)]===undefined?{}:{'personalInstructions':pending[_0x24fa28(0x8b)]}})[_0x24fa28(0x12c)](()=>undefined);},-0x4f*0xda+-0x2c35+0xaa13)};this[_0x4eec17(0x138)][_0x4eec17(0x1fa)](pending[_0x4eec17(0x11d)],retry),retry[_0x4eec17(0x189)][_0x4eec17(0x204)]();},'releaseExecution':executionId=>{const _0x43a82b=_0x50c5b1;this[_0x43a82b(0xf9)][_0x43a82b(0x113)](executionId),this[_0x43a82b(0x1e2)][_0x43a82b(0xc0)](executionId);}});[_0x50c5b1(0x12b)]=new NativeSessionWatchService({'resolve':async sessionId=>this[_0x50c5b1(0x1c2)][_0x50c5b1(0x1de)](sessionId)??this[_0x50c5b1(0x1f2)][_0x50c5b1(0x102)](sessionId),'managedActive':session=>hasManagedActiveRun(this[_0x50c5b1(0x1c2)],session),'suspended':sessionId=>this[_0x50c5b1(0xd4)][_0x50c5b1(0x184)](sessionId),'refreshActivity':session=>this[_0x50c5b1(0x104)][_0x50c5b1(0x1d8)](session),'present':session=>this[_0x50c5b1(0x213)][_0x50c5b1(0xcf)](session),'readPage':(session,limit)=>this[_0x50c5b1(0x104)][_0x50c5b1(0x16f)](session,{'limit':limit}),'readHistoryPage':(session,limit)=>this[_0x50c5b1(0x104)][_0x50c5b1(0xff)](session,{'limit':limit}),'convergePage':convergeConversationWatchPage,'composeRuntimePage':composeConversationRuntimePage,'projectInitialPage':(session,page,_unit,limit)=>{const _0xd654c2=_0x50c5b1,context=this[_0xd654c2(0xc2)][_0xd654c2(0xa1)](session['id']);return this[_0xd654c2(0xc2)][_0xd654c2(0x1c1)](session),{'kind':_0xd654c2(0x1c0),'sequence':this[_0xd654c2(0xd7)][_0xd654c2(0x20d)](),'session':this[_0xd654c2(0x213)][_0xd654c2(0xcf)](session),'runs':this[_0xd654c2(0x1c2)][_0xd654c2(0x151)](session['id']),'queue':this[_0xd654c2(0x199)][_0xd654c2(0xa1)](session['id']),'context':context,'conversation':this[_0xd654c2(0x14d)][_0xd654c2(0x1ea)](session,page,limit)};},'emitSession':session=>this[_0x50c5b1(0x127)]({'session':session}),'emitPage':(session,page)=>this[_0x50c5b1(0x150)](_0x50c5b1(0x17a),{'sessionId':session['id'],'snapshot':this[_0x50c5b1(0x14d)][_0x50c5b1(0x1ea)](session,page,-0x543+0x21ad*-0x1+0x26fa)}),'nodeId':()=>this[_0x50c5b1(0xe1)]?.[_0x50c5b1(0x9d)]??_0x50c5b1(0xc7),'nodeGeneration':()=>this[_0x50c5b1(0xee)],'emitWatchEvent':payload=>this[_0x50c5b1(0xf1)](_0x50c5b1(0xe6),payload),'log':nodeLog});constructor(_0x1949b9={}){const _0x3b45fb=_0x50c5b1;this[_0x3b45fb(0xe1)]=_0x1949b9[_0x3b45fb(0xe1)],this[_0x3b45fb(0x110)]=_0x1949b9[_0x3b45fb(0x110)],this[_0x3b45fb(0x15f)]=_0x1949b9[_0x3b45fb(0x15f)]??CLAUDE_APPROVAL_TIMEOUT_MS,this[_0x3b45fb(0x16b)]=_0x1949b9[_0x3b45fb(0x106)]!==undefined,this[_0x3b45fb(0x106)]=_0x1949b9[_0x3b45fb(0x106)]??unavailableCapabilities(),this[_0x3b45fb(0x144)]=new NodeUpgradeCoordinator(()=>{const _0x2a255d=_0x3b45fb;if(this[_0x2a255d(0xe1)]===undefined)throw new Error(_0x2a255d(0xd3));return nodeUpgradeRequestPath(nodeDatabasePath(this[_0x2a255d(0xe1)],this[_0x2a255d(0x110)]));},()=>this[_0x3b45fb(0x1ec)][_0x3b45fb(0x120)][_0x3b45fb(0x94)],_0x162338=>{const _0x3f4a9e=_0x3b45fb;this[_0x3f4a9e(0x106)]={...this[_0x3f4a9e(0x106)],'metadata':upgradeMetadata(this[_0x3f4a9e(0x106)][_0x3f4a9e(0x172)],_0x162338)},this[_0x3f4a9e(0xdc)]?.[_0x3f4a9e(0xf1)](_0x3f4a9e(0x106),this[_0x3f4a9e(0x106)]);},_0x1949b9[_0x3b45fb(0xd6)]??(()=>{const _0x3e4581=_0x3b45fb;this[_0x3e4581(0x107)](),setImmediate(()=>process[_0x3e4581(0xf4)](-0x2*0x12a9+0x18e6+-0x1*-0xcb7));})),this[_0x3b45fb(0x106)]={...this[_0x3b45fb(0x106)],'metadata':upgradeMetadata(this[_0x3b45fb(0x106)][_0x3b45fb(0x172)],this[_0x3b45fb(0x144)][_0x3b45fb(0xa1)]())};const _0x5ef20f=_0x1949b9[_0x3b45fb(0x14a)]??detectCapabilitiesAsync;this[_0x3b45fb(0x14a)]=async()=>{const _0x2c1b13=_0x3b45fb,_0x4b748d=await _0x5ef20f();return{..._0x4b748d,'metadata':upgradeMetadata(_0x4b748d[_0x2c1b13(0x172)],this[_0x2c1b13(0x144)][_0x2c1b13(0xa1)]())};},this[_0x3b45fb(0x133)]=_0x1949b9[_0x3b45fb(0x133)]??!![],this[_0x3b45fb(0x14f)]=_0x1949b9[_0x3b45fb(0x14f)]===undefined?undefined:new FakeTestRunner(_0x1949b9[_0x3b45fb(0x14f)]),this[_0x3b45fb(0x1c7)]=_0x1949b9[_0x3b45fb(0x1c7)],this[_0x3b45fb(0x188)]=new RunAttachmentService(_0x3e26c0=>this[_0x3b45fb(0x1cd)][_0x3b45fb(0x135)](_0x3e26c0[_0x3b45fb(0x91)])[_0x3b45fb(0xfc)](_0x3e26c0)),this[_0x3b45fb(0x136)]=new CodexRunner(_0x1949b9[_0x3b45fb(0x136)],_0x1949b9[_0x3b45fb(0x1dc)]),this[_0x3b45fb(0x87)]=new CodexManagedRunController(this[_0x3b45fb(0x136)],{'available':()=>this[_0x3b45fb(0x106)][_0x3b45fb(0x13c)][_0x3b45fb(0xdb)],'intercepted':()=>this[_0x3b45fb(0x14f)]!==undefined,'active':this[_0x3b45fb(0x1ec)][_0x3b45fb(0x120)],'addActive':_0x40f566=>this[_0x3b45fb(0x1ec)][_0x3b45fb(0x120)][_0x3b45fb(0xbf)](_0x40f566),'removeActive':_0x2855b9=>this[_0x3b45fb(0x1ec)][_0x3b45fb(0x120)][_0x3b45fb(0x97)](_0x2855b9),'adopt':_0x10e69e=>this[_0x3b45fb(0x1c2)][_0x3b45fb(0x178)](_0x10e69e),'session':_0x1e2f3f=>this[_0x3b45fb(0x1c2)][_0x3b45fb(0x1de)](_0x1e2f3f),'runStatus':_0x5e2e18=>this[_0x3b45fb(0x1c2)][_0x3b45fb(0x123)](_0x5e2e18)?.[_0x3b45fb(0x12f)],'run':_0x444d05=>this[_0x3b45fb(0x1c2)][_0x3b45fb(0x123)](_0x444d05),'interrupted':_0x2601a0=>this[_0x3b45fb(0x1ec)][_0x3b45fb(0x96)][_0x3b45fb(0x209)](_0x2601a0),'parseAttachments':parseRunnerImageAttachments,'materialize':(_0x1826a6,_0x1e5193)=>this[_0x3b45fb(0x188)][_0x3b45fb(0xeb)](_0x1826a6,_0x1e5193),'completeCancelled':_0x3f91ba=>this[_0x3b45fb(0x11f)][_0x3b45fb(0xf3)](_0x3f91ba),'promoteSession':(_0x7c8554,_0x24f49d)=>this[_0x3b45fb(0x1a4)][_0x3b45fb(0x12a)](_0x7c8554,_0x24f49d),'send':(_0x73db93,_0x3e76c3)=>this[_0x3b45fb(0xf1)](_0x73db93,_0x3e76c3),'emit':(_0x1117e0,_0x783ea7,_0x1c16f9,_0x53f32a)=>this[_0x3b45fb(0x196)][_0x3b45fb(0xb8)](_0x1117e0,_0x783ea7,_0x1c16f9,_0x53f32a),'cancel':(_0x20f174,_0x231c92,_0x462753,_0x4c453f,_0x48d0d7)=>this[_0x3b45fb(0x11f)][_0x3b45fb(0x99)](_0x20f174,_0x231c92,_0x462753,_0x4c453f,_0x48d0d7),'createApproval':_0x21cdbc=>this[_0x3b45fb(0x1c2)][_0x3b45fb(0x93)](_0x21cdbc),'publishApproval':_0x1b0123=>this[_0x3b45fb(0x196)][_0x3b45fb(0x10d)](_0x1b0123),'emitItem':(_0x40f01a,_0x220184)=>this[_0x3b45fb(0x202)](_0x40f01a,_0x220184),'appendImages':(_0x5b22f2,_0x40d626)=>this[_0x3b45fb(0x188)][_0x3b45fb(0x15a)](_0x5b22f2,_0x40d626[_0x3b45fb(0x1a6)](isRunnerImageAttachment)),'syncTitle':(_0x3d7e2,_0x31d3ba,_0x368b34)=>this[_0x3b45fb(0x1e3)][_0x3b45fb(0x18e)](_0x3d7e2,_0x31d3ba,_0x368b34),'commandState':(_0x5ef28f,_0xe3b80)=>this[_0x3b45fb(0xfe)][_0x3b45fb(0x83)](_0x5ef28f,_0xe3b80),'setCommandState':(_0x53d4bc,_0x445d3b)=>this[_0x3b45fb(0xfe)][_0x3b45fb(0x1fa)](_0x53d4bc,_0x445d3b),'clearCommandState':(_0x43a540,_0x1f59be)=>this[_0x3b45fb(0xfe)][_0x3b45fb(0xe7)](_0x43a540,_0x1f59be),'commandStates':_0x2de56b=>this[_0x3b45fb(0xfe)][_0x3b45fb(0x1d5)](_0x2de56b),'hasActiveSessionLease':_0x4cf13a=>this[_0x3b45fb(0x1c2)][_0x3b45fb(0x95)](_0x4cf13a),'fast':_0x30b8f6=>this[_0x3b45fb(0x142)](_0x3b45fb(0x19d),{'runner':_0x3b45fb(0x13c),'commandId':_0x3b45fb(0xc8),'input':_0x30b8f6})}),this[_0x3b45fb(0x136)][_0x3b45fb(0xbb)](_0x1825fe=>this[_0x3b45fb(0x87)][_0x3b45fb(0x129)](_0x1825fe)),this[_0x3b45fb(0x88)]=new ClaudeCodeRunner(_0x1949b9[_0x3b45fb(0x88)]),this[_0x3b45fb(0x8f)]=new OpenCodeRunner(_0x1949b9[_0x3b45fb(0x8f)]),this[_0x3b45fb(0x175)]=new MarAgentRunner(),this[_0x3b45fb(0x152)]=new MarAgentManagedRunController(this[_0x3b45fb(0x175)],{'active':this[_0x3b45fb(0x1ec)][_0x3b45fb(0x120)],'adopt':_0x298422=>this[_0x3b45fb(0x1c2)][_0x3b45fb(0x178)](_0x298422),'promote':(_0x18b86f,_0x206fa5)=>this[_0x3b45fb(0x1a4)][_0x3b45fb(0x12a)](_0x18b86f,_0x206fa5),'syncTitle':(_0x2ccbd5,_0x3e36a9)=>this[_0x3b45fb(0x1e3)][_0x3b45fb(0x18e)](_0x2ccbd5,_0x2ccbd5,_0x3e36a9),'emit':(_0x4b1319,_0x3d11c9,_0xa3025d,_0x4187b0)=>this[_0x3b45fb(0x196)][_0x3b45fb(0xb8)](_0x4b1319,_0x3d11c9,_0xa3025d,_0x4187b0),'emitItem':(_0x31aedb,_0x1418f8)=>this[_0x3b45fb(0x202)](_0x31aedb,_0x1418f8),'createApproval':_0xd518af=>this[_0x3b45fb(0x1c2)][_0x3b45fb(0x93)](_0xd518af),'publishApproval':_0x9d35ee=>this[_0x3b45fb(0x196)][_0x3b45fb(0x10d)](_0x9d35ee),'run':_0xc017db=>this[_0x3b45fb(0x1c2)][_0x3b45fb(0x123)](_0xc017db),'commandState':(_0x54dfdc,_0x33ecb1)=>this[_0x3b45fb(0xfe)][_0x3b45fb(0x83)](_0x54dfdc,_0x33ecb1),'setCommandState':(_0x309bd5,_0x44d83b)=>this[_0x3b45fb(0xfe)][_0x3b45fb(0x1fa)](_0x309bd5,_0x44d83b),'clearCommandState':(_0x2361ae,_0x3c9448)=>this[_0x3b45fb(0xfe)][_0x3b45fb(0xe7)](_0x2361ae,_0x3c9448),'commandStates':_0x110a49=>this[_0x3b45fb(0xfe)][_0x3b45fb(0x1d5)](_0x110a49),'webSearch':(_0x1bb461,_0x19396e)=>this[_0x3b45fb(0x1b3)](_0x1bb461,_0x19396e)}),this[_0x3b45fb(0x190)]=new OpenCodeManagedRunController(this[_0x3b45fb(0x8f)],{'intercepted':()=>this[_0x3b45fb(0x14f)]!==undefined,'active':this[_0x3b45fb(0x1ec)][_0x3b45fb(0x120)],'parseAttachments':parseRunnerImageAttachments,'persistAttachments':(_0x25c68b,_0x4cf529,_0x55506e)=>this[_0x3b45fb(0x188)][_0x3b45fb(0xfa)](_0x25c68b,_0x4cf529+_0x3b45fb(0x162),_0x55506e),'emit':(_0x1f0866,_0x1c7106,_0x1f1df5,_0x395b38)=>this[_0x3b45fb(0x196)][_0x3b45fb(0xb8)](_0x1f0866,_0x1c7106,_0x1f1df5,_0x395b38),'emitItem':(_0x113878,_0x4cb673)=>this[_0x3b45fb(0x202)](_0x113878,_0x4cb673),'adopt':_0x387517=>this[_0x3b45fb(0x1c2)][_0x3b45fb(0x178)](_0x387517),'run':_0x54d4d4=>{const _0x4e430c=_0x3b45fb,_0x356a1d=this[_0x4e430c(0x1c2)][_0x4e430c(0x123)](_0x54d4d4);if(_0x356a1d===undefined)throw new Error(_0x4e430c(0xa3));return _0x356a1d;},'hasActiveSessionLease':_0x3e9793=>this[_0x3b45fb(0x1c2)][_0x3b45fb(0x95)](_0x3e9793),'promote':(_0x5878ed,_0x5ec6c1)=>this[_0x3b45fb(0x1a4)][_0x3b45fb(0x12a)](_0x5878ed,_0x5ec6c1),'rememberNative':(_0x4c52e7,_0x4e85bb)=>this[_0x3b45fb(0x1e3)][_0x3b45fb(0x1cc)](_0x4c52e7,_0x4e85bb),'send':(_0x366ef8,_0x3b9315)=>this[_0x3b45fb(0xf1)](_0x366ef8,_0x3b9315),'createApproval':_0x1c405e=>this[_0x3b45fb(0x1c2)][_0x3b45fb(0x93)](_0x1c405e),'expireApproval':_0x42dd1a=>{const _0x69c845=_0x3b45fb;this[_0x69c845(0x1c2)][_0x69c845(0x13f)](_0x42dd1a);},'publishApproval':_0x49e88a=>this[_0x3b45fb(0x196)][_0x3b45fb(0x10d)](_0x49e88a),'commandState':(_0x23d8ca,_0x2fc415)=>this[_0x3b45fb(0xfe)][_0x3b45fb(0x83)](_0x23d8ca,_0x2fc415),'setCommandState':(_0x4eed94,_0x58ba92)=>this[_0x3b45fb(0xfe)][_0x3b45fb(0x1fa)](_0x4eed94,_0x58ba92),'clearCommandState':(_0x11475a,_0x232942)=>this[_0x3b45fb(0xfe)][_0x3b45fb(0xe7)](_0x11475a,_0x232942),'commandStates':_0x3ec939=>this[_0x3b45fb(0xfe)][_0x3b45fb(0x1d5)](_0x3ec939)},this[_0x3b45fb(0x15f)]),this[_0x3b45fb(0x9e)]=new ClaudeManagedRunController(this[_0x3b45fb(0x88)],{'intercepted':()=>this[_0x3b45fb(0x14f)]!==undefined,'active':this[_0x3b45fb(0x1ec)][_0x3b45fb(0x120)],'parseAttachments':parseRunnerImageAttachments,'emit':(_0x22bd37,_0x568ce0,_0x34b4a3,_0x156031)=>this[_0x3b45fb(0x196)][_0x3b45fb(0xb8)](_0x22bd37,_0x568ce0,_0x34b4a3,_0x156031),'adopt':_0x59029a=>this[_0x3b45fb(0x1c2)][_0x3b45fb(0x178)](_0x59029a),'run':_0x4cf05d=>this[_0x3b45fb(0x1c2)][_0x3b45fb(0x123)](_0x4cf05d),'hasActiveSessionLease':_0x506e19=>this[_0x3b45fb(0x1c2)][_0x3b45fb(0x95)](_0x506e19),'session':_0x390e51=>this[_0x3b45fb(0x1c2)][_0x3b45fb(0x1de)](_0x390e51),'completeCancelled':_0x3c7aac=>this[_0x3b45fb(0x11f)][_0x3b45fb(0xf3)](_0x3c7aac),'requestUserInput':(_0x3a8d1a,_0x24df4d,_0x345eea)=>this[_0x3b45fb(0x11f)][_0x3b45fb(0x1c9)](_0x3a8d1a,_0x24df4d,_0x345eea),'requestApproval':(_0x145c5d,_0x16d2a6,_0x5e2604)=>this[_0x3b45fb(0x11f)][_0x3b45fb(0x16c)](_0x145c5d,_0x16d2a6,_0x5e2604),'rememberNative':(_0x5b6083,_0x348db5)=>this[_0x3b45fb(0x1e3)][_0x3b45fb(0x1cc)](_0x5b6083,_0x348db5),'promote':(_0x4448fd,_0x25be68)=>this[_0x3b45fb(0x1a4)][_0x3b45fb(0x12a)](_0x4448fd,_0x25be68),'send':(_0xcc6ee,_0x3fdeb0)=>this[_0x3b45fb(0xf1)](_0xcc6ee,_0x3fdeb0),'emitItem':(_0x150123,_0x350b3a)=>this[_0x3b45fb(0x202)](_0x150123,_0x350b3a),'syncTitle':(_0x45e747,_0x14d9b7,_0x17bbf2)=>this[_0x3b45fb(0x1e3)][_0x3b45fb(0x18e)](_0x45e747,_0x14d9b7,_0x17bbf2),'setChannelToken':(_0x4aed3a,_0x5875ab)=>this[_0x3b45fb(0x1c2)][_0x3b45fb(0x1b6)](_0x4aed3a,_0x5875ab),'commandState':(_0x1357e1,_0x733d4e)=>this[_0x3b45fb(0xfe)][_0x3b45fb(0x83)](_0x1357e1,_0x733d4e),'setCommandState':(_0x52769d,_0x2c8901)=>this[_0x3b45fb(0xfe)][_0x3b45fb(0x1fa)](_0x52769d,_0x2c8901),'clearCommandState':(_0x3fb0bc,_0x473961)=>this[_0x3b45fb(0xfe)][_0x3b45fb(0xe7)](_0x3fb0bc,_0x473961),'commandStates':_0x3f01cf=>this[_0x3b45fb(0xfe)][_0x3b45fb(0x1d5)](_0x3f01cf)}),this[_0x3b45fb(0x1cd)]=new RunnerRegistry([this[_0x3b45fb(0x8f)],this[_0x3b45fb(0x175)],this[_0x3b45fb(0x136)],this[_0x3b45fb(0x88)],...this[_0x3b45fb(0x14f)]===undefined?[]:[this[_0x3b45fb(0x14f)]]]),this[_0x3b45fb(0x1e3)]=new ManagedRunnerSessionService(this[_0x3b45fb(0x1c2)],this[_0x3b45fb(0x1cd)],_0x44f416=>this[_0x3b45fb(0x127)]({'session':this[_0x3b45fb(0x213)][_0x3b45fb(0xcf)](_0x44f416)})),this[_0x3b45fb(0x11f)]=new RunnerInteractionService({'runtime':this[_0x3b45fb(0x1c2)],'state':this[_0x3b45fb(0x1ec)],'codex':()=>this[_0x3b45fb(0x136)],'claude':()=>this[_0x3b45fb(0x88)],'runners':this[_0x3b45fb(0x1cd)],'emitRun':(_0x4ad2dc,_0x442a78,_0x3234b7,_0x59b66a)=>this[_0x3b45fb(0x196)][_0x3b45fb(0xb8)](_0x4ad2dc,_0x442a78,_0x3234b7,_0x59b66a),'emitItem':(_0x15f802,_0x28904)=>this[_0x3b45fb(0x202)](_0x15f802,_0x28904),'approvalTimeoutMs':this[_0x3b45fb(0x15f)],'publishApproval':_0x4e9c5b=>this[_0x3b45fb(0x196)][_0x3b45fb(0x10d)](_0x4e9c5b)}),this[_0x3b45fb(0x112)]=new RunnerChannelMessageService({'interactions':this[_0x3b45fb(0x11f)],'send':(_0x162c11,_0x39ec90,_0x558e5d)=>this[_0x3b45fb(0xf1)](_0x162c11,_0x39ec90,_0x558e5d)}),this[_0x3b45fb(0x213)]=new SessionPresentationService({'database':()=>this[_0x3b45fb(0x171)],'runtime':this[_0x3b45fb(0x1c2)],'commands':this[_0x3b45fb(0xfe)],'runners':this[_0x3b45fb(0x1cd)],'capabilities':()=>this[_0x3b45fb(0x106)],'hasManagedActiveRun':_0x235cf5=>hasManagedActiveRun(this[_0x3b45fb(0x1c2)],_0x235cf5),'externalActivity':_0x57bd34=>this[_0x3b45fb(0x1ac)][_0x3b45fb(0xe4)][_0x3b45fb(0x83)](_0x57bd34),'projectionForNative':_0x20cd4b=>this[_0x3b45fb(0x1f2)][_0x3b45fb(0x1e7)](_0x20cd4b)}),this[_0x3b45fb(0x1f2)]=new NativeSessionProjectionService({'database':()=>this[_0x3b45fb(0x171)],'nodeId':()=>this[_0x3b45fb(0xe1)]?.[_0x3b45fb(0x9d)]??_0x3b45fb(0x1ff),'runtime':this[_0x3b45fb(0x1c2)],'runners':this[_0x3b45fb(0x1cd)],'capabilities':()=>this[_0x3b45fb(0x106)],'state':this[_0x3b45fb(0x1ac)],'commands':this[_0x3b45fb(0xfe)],'present':_0x35aab6=>this[_0x3b45fb(0x213)][_0x3b45fb(0xcf)](_0x35aab6)}),this[_0x3b45fb(0x104)]=new ConversationHistoryService({'runtime':this[_0x3b45fb(0x1c2)],'runners':this[_0x3b45fb(0x1cd)],'capabilities':()=>this[_0x3b45fb(0x106)],'attachments':this[_0x3b45fb(0x188)],'snapshotSequence':()=>this[_0x3b45fb(0xd7)][_0x3b45fb(0x20d)](),'hasManagedActiveRun':_0x17f660=>hasManagedActiveRun(this[_0x3b45fb(0x1c2)],_0x17f660),'setExternalActivity':(_0x529dec,_0x191a4d)=>this[_0x3b45fb(0x1ac)][_0x3b45fb(0xe4)][_0x3b45fb(0x1fa)](_0x529dec,_0x191a4d)}),this[_0x3b45fb(0x14d)]=new ConversationSegmentService((_0x5c949,_0x2bffe5)=>this[_0x3b45fb(0x104)][_0x3b45fb(0x16f)](_0x5c949,_0x2bffe5)),this[_0x3b45fb(0xc2)]=new SessionContextService({'runners':this[_0x3b45fb(0x1cd)],'session':_0x50efbb=>this[_0x3b45fb(0x1c2)][_0x3b45fb(0x1de)](_0x50efbb),'stopped':()=>this[_0x3b45fb(0x17b)],'publish':_0x1f184d=>this[_0x3b45fb(0x127)](_0x1f184d)}),this[_0x3b45fb(0xe3)]=new RunWorkbenchService({'runtime':this[_0x3b45fb(0x1c2)],'readImage':async(_0x3d417f,_0x215e96)=>this[_0x3b45fb(0x188)][_0x3b45fb(0x16f)](_0x3d417f,_0x215e96)??await this[_0x3b45fb(0x188)][_0x3b45fb(0x13d)](_0x3d417f,_0x215e96),'respondUserInput':(_0x1fb4a3,_0x16efcf,_0xa671e8)=>this[_0x3b45fb(0x11f)][_0x3b45fb(0xb4)](_0x1fb4a3,_0x16efcf,_0xa671e8),'pauseQueue':_0x43a5f8=>this[_0x3b45fb(0x199)][_0x3b45fb(0x154)](_0x43a5f8),'emitRun':(_0x5e9c3c,_0x36f5b4,_0xbf5b9c,_0x41aed6)=>this[_0x3b45fb(0x196)][_0x3b45fb(0xb8)](_0x5e9c3c,_0x36f5b4,_0xbf5b9c,_0x41aed6),'control':(_0x5ba999,_0x34c2dd)=>this[_0x3b45fb(0x206)][_0x3b45fb(0x1ed)](JSON[_0x3b45fb(0x11a)](createEnvelope(_0x5ba999,_0x34c2dd))),'markInterrupted':_0x24468a=>this[_0x3b45fb(0x1ec)][_0x3b45fb(0x96)][_0x3b45fb(0xbf)](_0x24468a)}),this[_0x3b45fb(0x1fc)]=new SessionQueryService({'runtime':this[_0x3b45fb(0x1c2)],'runners':this[_0x3b45fb(0x1cd)],'resolve':_0x3038d2=>this[_0x3b45fb(0x1f2)][_0x3b45fb(0x1c5)](_0x3038d2),'present':_0x17f72f=>this[_0x3b45fb(0x213)][_0x3b45fb(0xcf)](_0x17f72f),'history':(_0x18089c,_0x3456cf)=>this[_0x3b45fb(0x104)][_0x3b45fb(0x16f)](_0x18089c,_0x3456cf),'segments':(_0x2ac0b5,_0x465d02)=>this[_0x3b45fb(0x14d)][_0x3b45fb(0x16f)](_0x2ac0b5,_0x465d02),'context':this[_0x3b45fb(0xc2)],'discover':(_0x482c17,_0x421c2d)=>this[_0x3b45fb(0x1f2)][_0x3b45fb(0xe9)](_0x482c17,_0x421c2d),'workspaceIdForCwd':_0x330fb7=>this[_0x3b45fb(0x171)]?.[_0x3b45fb(0x197)]()[_0x3b45fb(0xf5)](_0x34d52a=>_0x34d52a[_0x3b45fb(0xbe)]===_0x330fb7)?.['id']}),this[_0x3b45fb(0x1e2)]=new ContinuousRunCoordinator({'runtime':this[_0x3b45fb(0x1c2)],'emitQueue':(_0x49e6c6,_0x434b5c)=>this[_0x3b45fb(0x196)][_0x3b45fb(0x1bb)](_0x49e6c6,_0x434b5c),'clearImages':_0x5dd0da=>this[_0x3b45fb(0x188)][_0x3b45fb(0xe7)](_0x5dd0da),'cleanupAttachments':_0x51352b=>this[_0x3b45fb(0x188)][_0x3b45fb(0x163)](_0x51352b),'migrateAssets':(_0x22c45b,_0x593865)=>this[_0x3b45fb(0x188)][_0x3b45fb(0x85)](_0x22c45b,_0x593865),'emitRun':(_0x172f04,_0x23296d,_0x4853dc,_0x479317)=>this[_0x3b45fb(0x196)][_0x3b45fb(0xb8)](_0x172f04,_0x23296d,_0x4853dc,_0x479317),'emitConversation':_0x258ccd=>this[_0x3b45fb(0x1eb)](_0x258ccd),'control':(_0x4257db,_0x10719f)=>this[_0x3b45fb(0x206)][_0x3b45fb(0x1ed)](JSON[_0x3b45fb(0x11a)](createEnvelope(_0x4257db,_0x10719f))),'stopped':()=>this[_0x3b45fb(0x17b)],'markInterrupted':_0x1e6a5d=>this[_0x3b45fb(0x1ec)][_0x3b45fb(0x96)][_0x3b45fb(0xbf)](_0x1e6a5d),'mcps':_0x172773=>this[_0x3b45fb(0x171)]?.[_0x3b45fb(0x166)](_0x172773)??[],'afterExecutionStarted':async _0x24f3d7=>{const _0x501958=_0x3b45fb;if(_0x24f3d7[_0x501958(0xae)]===undefined)return;const _0x4c97ba=this[_0x501958(0x1a2)][_0x501958(0x83)](_0x24f3d7[_0x501958(0x11d)]);if(_0x4c97ba?.[_0x501958(0x12f)]!==_0x501958(0x120)||_0x4c97ba['id']!==_0x24f3d7[_0x501958(0xae)]['id']||_0x4c97ba[_0x501958(0x168)]!==_0x24f3d7[_0x501958(0xae)][_0x501958(0x168)])return;const _0x5dea9b=this[_0x501958(0x1a2)][_0x501958(0x146)](_0x24f3d7[_0x501958(0x11d)]),_0x1f0bd3=this[_0x501958(0x1c2)][_0x501958(0x1de)](_0x24f3d7[_0x501958(0x11d)]);if(_0x5dea9b!==undefined&&_0x1f0bd3!==undefined)this[_0x501958(0x164)](_0x1f0bd3,_0x5dea9b);await this[_0x501958(0x81)]({'sessionId':_0x24f3d7[_0x501958(0x11d)],'mission':{'id':_0x4c97ba['id'],'revision':_0x4c97ba[_0x501958(0x168)]},'secretEnvironment':_0x24f3d7[_0x501958(0xc6)],..._0x24f3d7[_0x501958(0x8b)]===undefined?{}:{'personalInstructions':_0x24f3d7[_0x501958(0x8b)]}});},'missionMcp':async _0x1f3ef6=>{const _0x1a7202=_0x3b45fb;if(_0x1f3ef6[_0x1a7202(0xae)]===undefined)throw new Error(_0x1a7202(0x1ce));const _0x638f0e=await this[_0x1a7202(0xf9)][_0x1a7202(0x194)]({'executionId':_0x1f3ef6[_0x1a7202(0x128)],'sessionId':_0x1f3ef6[_0x1a7202(0x11d)],'missionId':_0x1f3ef6[_0x1a7202(0xae)]['id'],'revision':_0x1f3ef6[_0x1a7202(0xae)][_0x1a7202(0x168)]});return{'installation':{'targetKind':_0x1a7202(0x16a),'targetId':_0x1f3ef6[_0x1a7202(0x92)],'catalogEntryId':_0x1a7202(0xec),'serverName':_0x1a7202(0x101),'displayName':_0x1a7202(0x1df),'version':_0x1a7202(0x181),'enabled':!![],'runtime':{'transport':_0x1a7202(0x15d),'url':_0x1a7202(0x18c),'headers':{}},'configuration':_0x638f0e[_0x1a7202(0x194)],'installedAt':Date[_0x1a7202(0x1f5)](),..._0x638f0e[_0x1a7202(0x194)]},'secrets':_0x638f0e[_0x1a7202(0x18d)]};}}),this[_0x3b45fb(0x199)]=new WorkspaceQueueWorkbenchService({'runtime':this[_0x3b45fb(0x1c2)],'coordinator':this[_0x3b45fb(0x1e2)],'emit':(_0x3fe79c,_0x14083b)=>this[_0x3b45fb(0x196)][_0x3b45fb(0x1bb)](_0x3fe79c,_0x14083b),'prepareInput':(_0x583edd,_0x1969ce,_0x5cd532)=>this[_0x3b45fb(0x1cd)][_0x3b45fb(0x135)](_0x583edd)[_0x3b45fb(0x1d6)](_0x1969ce,_0x5cd532)}),this[_0x3b45fb(0x1a4)]=new SessionIdentityService({'runtime':this[_0x3b45fb(0x1c2)],'persist':(_0x429d77,_0x24f766)=>{const _0x499554=_0x3b45fb;if(_0x429d77[_0x499554(0x1a8)]===null||_0x429d77[_0x499554(0x17c)]===null||_0x429d77[_0x499554(0x186)]===null)return;this[_0x499554(0x171)]?.[_0x499554(0xea)]({'runner':_0x429d77[_0x499554(0x91)],'externalSessionId':_0x24f766,'workspaceId':_0x429d77[_0x499554(0x92)],'model':_0x429d77[_0x499554(0x1a8)],'effort':_0x429d77[_0x499554(0x17c)],'access':_0x429d77[_0x499554(0x186)]});},'migrateCommands':(_0x5384ff,_0xc0e0bd)=>this[_0x3b45fb(0xfe)][_0x3b45fb(0x180)](_0x5384ff,_0xc0e0bd),'migrateMission':(_0x2029dc,_0x1ebbbd)=>{const _0x28017e=_0x3b45fb;this[_0x28017e(0x1a2)][_0x28017e(0x1e6)](_0x2029dc,_0x1ebbbd),this[_0x28017e(0xf9)][_0x28017e(0x1e6)](_0x2029dc,_0x1ebbbd);const _0x49e300=this[_0x28017e(0x138)][_0x28017e(0x83)](_0x2029dc);_0x49e300!==undefined&&(this[_0x28017e(0x138)][_0x28017e(0x97)](_0x2029dc),_0x49e300[_0x28017e(0x11d)]=_0x1ebbbd,this[_0x28017e(0x138)][_0x28017e(0x1fa)](_0x1ebbbd,_0x49e300));const _0x96080=this[_0x28017e(0x119)][_0x28017e(0x83)](_0x2029dc);_0x96080!==undefined&&(this[_0x28017e(0x119)][_0x28017e(0x97)](_0x2029dc),this[_0x28017e(0x119)][_0x28017e(0x1fa)](_0x1ebbbd,_0x96080));},'migrateQueue':(_0x5fe0a4,_0x5a1148)=>this[_0x3b45fb(0x1e2)][_0x3b45fb(0x1e6)](_0x5fe0a4,_0x5a1148),'migrateRunnerState':(_0x15b79b,_0x13904d)=>this[_0x3b45fb(0x196)][_0x3b45fb(0x1e8)](_0x15b79b,_0x13904d),'emitSession':_0x100b1e=>this[_0x3b45fb(0x127)]({'session':_0x100b1e}),'emitRun':_0x43dd86=>this[_0x3b45fb(0x150)](_0x3b45fb(0x115),{'run':_0x43dd86}),'emitQueue':_0x1d5914=>this[_0x3b45fb(0x1e2)][_0x3b45fb(0x8c)](_0x1d5914),'emitTurn':_0x58fd04=>this[_0x3b45fb(0x1eb)](_0x58fd04)}),this[_0x3b45fb(0x103)]=new SessionLifecycleService({'database':()=>{const _0x366a56=_0x3b45fb;if(this[_0x366a56(0x171)]===undefined)throw new Error(_0x366a56(0x20a));return this[_0x366a56(0x171)];},'runtime':this[_0x3b45fb(0x1c2)],'runners':this[_0x3b45fb(0x1cd)],'projection':this[_0x3b45fb(0x1f2)],'identity':this[_0x3b45fb(0x1a4)],'present':_0x46402c=>this[_0x3b45fb(0x213)][_0x3b45fb(0xcf)](_0x46402c),'emitSession':_0x5810bc=>this[_0x3b45fb(0x127)]({'session':this[_0x3b45fb(0x213)][_0x3b45fb(0xcf)](_0x5810bc)}),'execute':(_0x38fcbb,_0x225100)=>this[_0x3b45fb(0x142)](_0x38fcbb,_0x225100),'interceptedSessionId':_0x55406f=>this[_0x3b45fb(0x14f)]===undefined?undefined:_0x3b45fb(0x1f8)+_0x55406f}),this[_0x3b45fb(0xd4)]=new ExternalSessionResumeService({'runtime':this[_0x3b45fb(0x1c2)],'runners':this[_0x3b45fb(0x1cd)],'state':this[_0x3b45fb(0x1ac)],'available':_0xe55b4f=>this[_0x3b45fb(0x1cd)][_0x3b45fb(0x135)](_0xe55b4f)[_0x3b45fb(0xdb)](this[_0x3b45fb(0x106)]),'projectionFor':_0x18f78f=>this[_0x3b45fb(0x1f2)][_0x3b45fb(0x1e7)](_0x18f78f),'managedAliasFor':_0x26ece7=>this[_0x3b45fb(0x1f2)][_0x3b45fb(0x187)](_0x26ece7),'ensureConfiguration':_0x533086=>this[_0x3b45fb(0x1f2)][_0x3b45fb(0x9f)](_0x533086),'configuration':_0x4e1651=>this[_0x3b45fb(0x1f2)][_0x3b45fb(0x167)](_0x4e1651),'workspacePath':_0x550c0e=>this[_0x3b45fb(0x171)]?.[_0x3b45fb(0x1d1)](_0x550c0e)?.[_0x3b45fb(0xbe)],'rememberNative':(_0x3c30dd,_0x2876dd)=>this[_0x3b45fb(0x1e3)][_0x3b45fb(0x1cc)](_0x3c30dd,_0x2876dd),'stage':_0x3dd916=>{const _0x5c9d6d=_0x3b45fb,_0x344a56=this[_0x5c9d6d(0x1f2)][_0x5c9d6d(0x167)](_0x3dd916);return this[_0x5c9d6d(0x1c2)][_0x5c9d6d(0xa6)]({'workspaceId':_0x3dd916[_0x5c9d6d(0x92)],'runner':_0x3dd916[_0x5c9d6d(0x91)],'externalSessionId':_0x3dd916[_0x5c9d6d(0x1a3)]??_0x3dd916['id'],'nativeControl':_0x5c9d6d(0xb0),'cwd':_0x3dd916[_0x5c9d6d(0xcc)],'model':_0x344a56[_0x5c9d6d(0x1a8)],'effort':_0x344a56[_0x5c9d6d(0x17c)],'access':_0x344a56[_0x5c9d6d(0x186)],..._0x3dd916[_0x5c9d6d(0x18f)]===null?{}:{'title':_0x3dd916[_0x5c9d6d(0x18f)]}});},'resolve':_0xa63a3f=>this[_0x3b45fb(0x1f2)][_0x3b45fb(0x1c5)](_0xa63a3f)}),this[_0x3b45fb(0x11e)]=new SessionCommandService({'runtime':this[_0x3b45fb(0x1c2)],'runners':this[_0x3b45fb(0x1cd)],'projection':this[_0x3b45fb(0x1f2)],'resume':this[_0x3b45fb(0xd4)],'profiles':()=>this[_0x3b45fb(0x145)][_0x3b45fb(0x1ee)](),'present':_0x3f7af3=>this[_0x3b45fb(0x213)][_0x3b45fb(0xcf)](_0x3f7af3),'resumeQueueAfterCommandRun':_0x5ca065=>this[_0x3b45fb(0x199)][_0x3b45fb(0xcb)](_0x5ca065),'beginMission':_0x3e730e=>{const _0x374af8=_0x3b45fb,_0x48251d=this[_0x374af8(0xfe)][_0x374af8(0x83)](_0x3e730e['id'],_0x374af8(0xae));if(_0x48251d?.[_0x374af8(0x120)]===!![])return{'session':this[_0x374af8(0x213)][_0x374af8(0xcf)](_0x3e730e),'missionAlreadyActive':!![]};_0x48251d!==undefined&&(this[_0x374af8(0x1a2)][_0x374af8(0xe7)](_0x3e730e['id']),this[_0x374af8(0xfe)][_0x374af8(0xe7)](_0x3e730e['id'],_0x374af8(0xae)));const _0xa3eff1=this[_0x374af8(0x193)](_0x3e730e);return this[_0x374af8(0x1e2)][_0x374af8(0x8e)](_0x3e730e['id']),this[_0x374af8(0xfe)][_0x374af8(0x1fa)](_0x3e730e['id'],this[_0x374af8(0x1cb)]()),this[_0x374af8(0x150)](_0x374af8(0x19b),{'session':this[_0x374af8(0x213)][_0x374af8(0xcf)](_0xa3eff1[_0x374af8(0x19b)])}),{'session':this[_0x374af8(0x213)][_0x374af8(0xcf)](_0xa3eff1[_0x374af8(0x19b)]),'missionAccessChanged':_0xa3eff1[_0x374af8(0xba)]};},'mission':async({session:_0xc52fe6,objective:_0x18f5ad,secretEnvironment:_0x414917,personalInstructions:_0x194186})=>{const _0x4642bc=_0x3b45fb;this[_0x4642bc(0x1a7)](_0xc52fe6['id']);const _0x27acb8=this[_0x4642bc(0x193)](_0xc52fe6),_0x491249=_0x27acb8[_0x4642bc(0x19b)],_0x7c5501=this[_0x4642bc(0x1a2)][_0x4642bc(0x83)](_0xc52fe6['id'])?.[_0x4642bc(0x12f)]===_0x4642bc(0x120);this[_0x4642bc(0x1e2)][_0x4642bc(0x1f7)](_0xc52fe6['id']);const _0x249b0e=this[_0x4642bc(0x1a2)][_0x4642bc(0x1d9)](_0xc52fe6['id'],_0x18f5ad);this[_0x4642bc(0x164)](_0x491249,_0x249b0e);const _0x2fe870=await this[_0x4642bc(0x17e)][_0x4642bc(0x8a)]({'sessionId':_0xc52fe6['id'],'kind':_0x4642bc(0x1d9),'content':this[_0x4642bc(0x1a2)][_0x4642bc(0x212)](_0xc52fe6['id'],_0x4642bc(0x1d9)),'deliveryIntent':_0x7c5501?_0x4642bc(0x1d4):_0x4642bc(0x179),'mission':{'id':_0x249b0e['id'],'revision':_0x249b0e[_0x4642bc(0x168)]},'secretEnvironment':_0x414917,..._0x194186===undefined?{}:{'personalInstructions':_0x194186}});return{...isPlainRecord(_0x2fe870)?_0x2fe870:{'result':_0x2fe870},'missionAccessChanged':_0x27acb8[_0x4642bc(0xba)]};},'clearMission':_0x193ac1=>{const _0x548968=_0x3b45fb;return this[_0x548968(0x1a7)](_0x193ac1['id']),this[_0x548968(0x1a2)][_0x548968(0xe7)](_0x193ac1['id']),this[_0x548968(0x1e2)][_0x548968(0x1f7)](_0x193ac1['id']),this[_0x548968(0xed)](_0x193ac1['id'],_0x548968(0x1c8)),this[_0x548968(0xfe)][_0x548968(0xe7)](_0x193ac1['id'],_0x548968(0xae)),this[_0x548968(0x150)](_0x548968(0x19b),{'session':this[_0x548968(0x213)][_0x548968(0xcf)](_0x193ac1)}),{'session':this[_0x548968(0x213)][_0x548968(0xcf)](_0x193ac1),'cleared':!![]};}}),this[_0x3b45fb(0x17e)]=new SessionMessageService({'runtime':this[_0x3b45fb(0x1c2)],'uploads':this[_0x3b45fb(0x1ba)],'attachments':this[_0x3b45fb(0x188)],'commands':this[_0x3b45fb(0xfe)],'coordinator':this[_0x3b45fb(0x1e2)],'runners':this[_0x3b45fb(0x1cd)],'resolve':_0x5ab753=>this[_0x3b45fb(0xd4)][_0x3b45fb(0x177)](_0x5ab753),'present':_0x5647ad=>this[_0x3b45fb(0x213)][_0x3b45fb(0xcf)](_0x5647ad),'emitSession':_0x1c5ef3=>this[_0x3b45fb(0x127)]({'session':this[_0x3b45fb(0x213)][_0x3b45fb(0xcf)](_0x1c5ef3)}),'channelToken':_0x5d3110=>{const _0x33fc08=_0x3b45fb,_0x2d80c0=this[_0x33fc08(0x1c2)][_0x33fc08(0x1de)](_0x5d3110);return _0x2d80c0?.[_0x33fc08(0x111)]??undefined;},'missionMessage':(_0x819c0e,_0x3d4848)=>{const _0x1a358e=_0x3b45fb,_0x5a5511=this[_0x1a358e(0xfe)][_0x1a358e(0x83)](_0x819c0e['id'],_0x1a358e(0xae));if(_0x5a5511?.[_0x1a358e(0x120)]!==!![])return undefined;const _0x25e8fc=this[_0x1a358e(0x1a2)][_0x1a358e(0x83)](_0x819c0e['id']);if(_0x25e8fc?.[_0x1a358e(0x12f)]===_0x1a358e(0x120))return{'runnerContent':_0x3d4848,'mission':{'id':_0x25e8fc['id'],'revision':_0x25e8fc[_0x1a358e(0x168)]},'activated':![]};const _0x5977f4=this[_0x1a358e(0x1a2)][_0x1a358e(0x1d9)](_0x819c0e['id'],_0x3d4848);return this[_0x1a358e(0x164)](_0x819c0e,_0x5977f4),{'runnerContent':this[_0x1a358e(0x1a2)][_0x1a358e(0x212)](_0x819c0e['id'],_0x1a358e(0x1d9)),'mission':{'id':_0x5977f4['id'],'revision':_0x5977f4[_0x1a358e(0x168)]},'activated':!![]};},'prepareMissionInsertion':(_0x510ba8,_0xf4aa26)=>this[_0x3b45fb(0x1e2)][_0x3b45fb(0x8e)](_0x510ba8,_0xf4aa26),'missionPreparationFailed':(_0x57dffa,_0x1593d3,_0x562fe6)=>{const _0x3e1c56=_0x3b45fb;if(!_0x562fe6)return;const _0x4f5391=this[_0x3e1c56(0x1a2)][_0x3e1c56(0x83)](_0x57dffa['id']);if(_0x4f5391?.['id']!==_0x1593d3['id']||_0x4f5391[_0x3e1c56(0x168)]!==_0x1593d3[_0x3e1c56(0x168)])return;this[_0x3e1c56(0x1a2)][_0x3e1c56(0xe7)](_0x57dffa['id']),this[_0x3e1c56(0xed)](_0x57dffa['id'],_0x3e1c56(0x14b)),this[_0x3e1c56(0xfe)][_0x3e1c56(0x1fa)](_0x57dffa['id'],this[_0x3e1c56(0x1cb)]()),this[_0x3e1c56(0x150)](_0x3e1c56(0x19b),{'session':this[_0x3e1c56(0x213)][_0x3e1c56(0xcf)](_0x57dffa)});}}),this[_0x3b45fb(0x195)]=new SessionCatalogService({'database':()=>{const _0x4f635e=_0x3b45fb;if(this[_0x4f635e(0x171)]===undefined)throw new Error(_0x4f635e(0x20a));return this[_0x4f635e(0x171)];},'nodeId':()=>this[_0x3b45fb(0xe1)]?.[_0x3b45fb(0x9d)]??_0x3b45fb(0x1ff),'runtime':this[_0x3b45fb(0x1c2)],'runners':this[_0x3b45fb(0x1cd)],'projection':this[_0x3b45fb(0x1f2)],'resume':this[_0x3b45fb(0xd4)],'cachedNative':()=>[...this[_0x3b45fb(0x1ac)][_0x3b45fb(0xa0)][_0x3b45fb(0xfb)]()],'cachedWorkspace':_0x521712=>this[_0x3b45fb(0x143)][_0x3b45fb(0x173)](_0x521712),'present':_0x2115e1=>this[_0x3b45fb(0x213)][_0x3b45fb(0xcf)](_0x2115e1),'projectionForNative':_0x4fa150=>this[_0x3b45fb(0x1f2)][_0x3b45fb(0x1e7)](_0x4fa150),'nativeIds':_0x9a41ea=>this[_0x3b45fb(0x1f2)][_0x3b45fb(0x1b0)](_0x9a41ea),'forget':(_0x467be4,_0x2e0860)=>this[_0x3b45fb(0x1f2)][_0x3b45fb(0xbd)](_0x467be4,_0x2e0860),'refreshActivity':_0x352035=>this[_0x3b45fb(0x104)][_0x3b45fb(0x1d8)](_0x352035),'externalActivity':_0x5d345a=>this[_0x3b45fb(0x1ac)][_0x3b45fb(0xe4)][_0x3b45fb(0x83)](_0x5d345a),'history':(_0x48f505,_0x4d07e7)=>this[_0x3b45fb(0x104)][_0x3b45fb(0x16f)](_0x48f505,_0x4d07e7),'emitSession':_0x440c51=>this[_0x3b45fb(0x127)]({'session':this[_0x3b45fb(0x213)][_0x3b45fb(0xcf)](_0x440c51)})}),this[_0x3b45fb(0x136)][_0x3b45fb(0x1cf)]({'start':_0x14950b=>this[_0x3b45fb(0x87)][_0x3b45fb(0x1d9)](_0x14950b),'cancel':(_0x315aa7,_0x3952fc)=>{const _0xa63056=_0x3b45fb,_0x6e7811=this[_0xa63056(0x136)][_0xa63056(0xcd)][_0xa63056(0x1b7)][_0xa63056(0x83)](_0x315aa7);if(_0x6e7811?.[_0xa63056(0x10f)]===undefined)return![];return void this[_0xa63056(0x11f)][_0xa63056(0x99)](_0x315aa7,_0x6e7811[_0xa63056(0xe0)],_0x6e7811[_0xa63056(0x10f)],_0x6e7811[_0xa63056(0xcc)],_0x3952fc===_0xa63056(0xf0)?_0xa63056(0x124):_0xa63056(0x205)),!![];},'decideApproval':_0x5a23b4=>this[_0x3b45fb(0x11f)][_0x3b45fb(0x1e4)](_0x5a23b4[_0x3b45fb(0x17f)],_0x5a23b4[_0x3b45fb(0xb5)])}),this[_0x3b45fb(0x88)][_0x3b45fb(0x1cf)]({'start':_0x381e88=>this[_0x3b45fb(0x9e)][_0x3b45fb(0x1d9)](_0x381e88),'cancel':(_0xf41180,_0x235e1c)=>this[_0x3b45fb(0x11f)][_0x3b45fb(0x1da)](_0xf41180,_0x235e1c),'decideApproval':_0x58b7c2=>this[_0x3b45fb(0x11f)][_0x3b45fb(0xd9)](_0x58b7c2[_0x3b45fb(0x17f)],_0x58b7c2[_0x3b45fb(0xb5)])}),this[_0x3b45fb(0x8f)][_0x3b45fb(0x1cf)]({'start':_0x154b48=>this[_0x3b45fb(0x190)][_0x3b45fb(0x1d9)](_0x154b48),'cancel':(_0x6bb3d9,_0x2e20bb)=>this[_0x3b45fb(0x190)][_0x3b45fb(0x19a)](_0x6bb3d9,_0x2e20bb),'decideApproval':_0x6818fd=>this[_0x3b45fb(0x190)][_0x3b45fb(0x1ef)](_0x6818fd),'respondUserInput':(_0x4fa84c,_0xd7b48e,_0x53e5e9)=>this[_0x3b45fb(0x190)][_0x3b45fb(0xb4)](_0x4fa84c,_0xd7b48e,_0x53e5e9)}),this[_0x3b45fb(0x175)][_0x3b45fb(0x1cf)]({'start':_0x1c8e57=>this[_0x3b45fb(0x152)][_0x3b45fb(0x1d9)](_0x1c8e57),'cancel':(_0x53df92,_0x24ceba)=>this[_0x3b45fb(0x152)][_0x3b45fb(0x19a)](_0x53df92,_0x24ceba),'decideApproval':_0x49e302=>this[_0x3b45fb(0x152)][_0x3b45fb(0x1ef)](_0x49e302),'respondUserInput':(_0x260388,_0xdefc65,_0x521e43)=>this[_0x3b45fb(0x152)][_0x3b45fb(0xb4)](_0x260388,_0xdefc65,_0x521e43)}),this[_0x3b45fb(0x136)][_0x3b45fb(0x15e)]({'execute':(_0x40dba7,_0x440724,_0x3fee47,_0x567174)=>this[_0x3b45fb(0x87)][_0x3b45fb(0x1fd)](_0x40dba7,_0x440724,_0x3fee47,_0x567174)}),this[_0x3b45fb(0x88)][_0x3b45fb(0x15e)]({'execute':(_0x431bc8,_0xb2da6f,_0x449612,_0x521990)=>this[_0x3b45fb(0x9e)][_0x3b45fb(0x1fd)](_0x431bc8,_0xb2da6f,_0x449612,_0x521990)}),this[_0x3b45fb(0x8f)][_0x3b45fb(0x15e)]({'execute':(_0x409d85,_0x2f72c0,_0x1cc3f6,_0x18e0f8)=>this[_0x3b45fb(0x190)][_0x3b45fb(0x1fd)](_0x409d85,_0x2f72c0,_0x18e0f8)}),this[_0x3b45fb(0x175)][_0x3b45fb(0x15e)]({'execute':(_0x1f85ec,_0x473769,_0x3c78e8,_0x5a2c56)=>this[_0x3b45fb(0x152)][_0x3b45fb(0x1fd)](_0x1f85ec,_0x473769,_0x3c78e8,_0x5a2c56)});const _0x33851a=this[_0x3b45fb(0x14f)]===undefined||this[_0x3b45fb(0x1c7)]===undefined?undefined:new FakeManagedRunService({'runner':this[_0x3b45fb(0x14f)],'script':this[_0x3b45fb(0x1c7)],'runners':this[_0x3b45fb(0x1cd)],'runtime':this[_0x3b45fb(0x1c2)],'state':this[_0x3b45fb(0x1ec)],'emitRun':(_0x3f0c33,_0x5eb2b3,_0xd4e9ba,_0x59b1af)=>this[_0x3b45fb(0x196)][_0x3b45fb(0xb8)](_0x3f0c33,_0x5eb2b3,_0xd4e9ba,_0x59b1af),'publishApproval':_0x11ec37=>this[_0x3b45fb(0x196)][_0x3b45fb(0x10d)](_0x11ec37),'disconnect':()=>this[_0x3b45fb(0xdc)][_0x3b45fb(0x137)](0x7*-0x199+-0xc5*0x4+0x2f*0xa3,_0x3b45fb(0x139))});this[_0x3b45fb(0x14f)]?.[_0x3b45fb(0x1cf)]({'start':_0x309b38=>_0x33851a?.[_0x3b45fb(0x1d9)](_0x309b38),'cancel':(_0x18e261,_0x1dfba4)=>_0x1dfba4===_0x3b45fb(0xf0)?this[_0x3b45fb(0x14f)]?.[_0x3b45fb(0x19a)](_0x18e261)??![]:this[_0x3b45fb(0x14f)]?.[_0x3b45fb(0xf6)](_0x18e261)??![],'decideApproval':_0x250ccd=>this[_0x3b45fb(0x14f)]?.[_0x3b45fb(0xb6)](_0x250ccd[_0x3b45fb(0x128)],_0x250ccd[_0x3b45fb(0x17f)],_0x250ccd[_0x3b45fb(0xb5)])??![]}),this[_0x3b45fb(0x86)]=_0x1949b9[_0x3b45fb(0x86)]??new RunnerUsageReader(),this[_0x3b45fb(0x171)]=_0x1949b9[_0x3b45fb(0x171)],this[_0x3b45fb(0x121)]=_0x1949b9[_0x3b45fb(0x121)]??new TerminalManager({'platform':this[_0x3b45fb(0x106)][_0x3b45fb(0x17d)]===_0x3b45fb(0xf2)?_0x3b45fb(0x1e9):_0x3b45fb(0xac)}),this[_0x3b45fb(0x121)][_0x3b45fb(0x10a)](_0x211212=>this[_0x3b45fb(0x143)][_0x3b45fb(0xa8)](_0x211212)),this[_0x3b45fb(0x16e)]=new NodeTerminalChannel({'config':()=>this[_0x3b45fb(0xe1)],'controlConnected':()=>this[_0x3b45fb(0xdc)][_0x3b45fb(0x9b)](),'stopped':()=>this[_0x3b45fb(0x17b)],'reconnect':this[_0x3b45fb(0x133)],'reconnectDelay':nextReconnectDelay,'manager':this[_0x3b45fb(0x121)]}),this[_0x3b45fb(0xdc)]=new NodeControlChannel({'config':()=>this[_0x3b45fb(0xe1)],'capabilities':()=>this[_0x3b45fb(0x106)],'stopped':()=>this[_0x3b45fb(0x17b)],'reconnect':this[_0x3b45fb(0x133)],'reconnectDelay':nextReconnectDelay,'onConnecting':_0x565049=>{const _0x43c1ef=_0x3b45fb;this[_0x43c1ef(0x117)][_0x43c1ef(0x1f6)](),nodeLog(_0x43c1ef(0x108),{'attempt':_0x565049});},'onReconnectScheduled':()=>this[_0x3b45fb(0x117)][_0x3b45fb(0x20f)](),'onMessage':_0x51dcd6=>this[_0x3b45fb(0xce)](_0x51dcd6),'onClose':(_0x5360f2,_0x3e2d67)=>{const _0x1a994f=_0x3b45fb;this[_0x1a994f(0x16e)][_0x1a994f(0x1a0)]();if(_0x5360f2===0x130a+0x1*0x18bc+0xe13*-0x2&&_0x3e2d67===_0x1a994f(0x18b))nodeLog(_0x1a994f(0xab),{'message':_0x1a994f(0x148)});if(_0x5360f2===0x1*-0x20db+0x9fa+-0x2*-0x1342||_0x5360f2===-0x10d0+-0x683+0x1b3c)void this[_0x1a994f(0x121)][_0x1a994f(0x1d0)]();}}),this[_0x3b45fb(0x206)]=new NodeControlMessageService({'config':()=>this[_0x3b45fb(0xe1)],'register':(_0x596dc9,_0x36bb62)=>this[_0x3b45fb(0xd5)][_0x3b45fb(0x1d2)](_0x596dc9,_0x36bb62),'connected':()=>this[_0x3b45fb(0xd5)][_0x3b45fb(0x9b)](),'close':(_0x585cca,_0xb88eec)=>this[_0x3b45fb(0xdc)][_0x3b45fb(0x137)](_0x585cca,_0xb88eec),'inspectWorkspace':_0x1bf1a1=>this[_0x3b45fb(0x143)][_0x3b45fb(0xa5)](_0x1bf1a1),'handleNodeRequest':_0xe8ff87=>this[_0x3b45fb(0x1b9)][_0x3b45fb(0x1ed)](_0xe8ff87),'reconcileRuns':_0x1fc1fe=>this[_0x3b45fb(0x196)][_0x3b45fb(0x20b)](_0x1fc1fe),'runners':this[_0x3b45fb(0x1cd)],'deliverSessionChannelMessage':_0x404b29=>this[_0x3b45fb(0x112)][_0x3b45fb(0x1ed)](_0x404b29),'completeUncontrolledCancellation':_0xb60d3f=>{const _0x51608a=_0x3b45fb,_0x4c4579=this[_0x51608a(0x1c2)][_0x51608a(0x123)](_0xb60d3f);if(_0x4c4579?.[_0x51608a(0x12f)]===_0x51608a(0x19e))this[_0x51608a(0x11f)][_0x51608a(0xf3)](_0xb60d3f);},'send':(_0x41b673,_0x50cf9a,_0x1cb2c2)=>this[_0x3b45fb(0xf1)](_0x41b673,_0x50cf9a,_0x1cb2c2)}),this[_0x3b45fb(0x1b9)]=new NodeRequestService({'nodeId':()=>this[_0x3b45fb(0xe1)]?.[_0x3b45fb(0x9d)],'databaseAvailable':()=>this[_0x3b45fb(0x171)]!==undefined,'execute':(_0xa9ad38,_0x38f7e3)=>this[_0x3b45fb(0x142)](_0xa9ad38,_0x38f7e3),'send':(_0x4d76d5,_0xc267db,_0x199f06)=>this[_0x3b45fb(0xf1)](_0x4d76d5,_0xc267db,_0x199f06)}),this[_0x3b45fb(0x143)]=new NodeWorkspaceCoordinator({'config':()=>this[_0x3b45fb(0xe1)],'database':()=>this[_0x3b45fb(0x171)],'watches':this[_0x3b45fb(0x182)],'sessions':this[_0x3b45fb(0xe5)],'changes':this[_0x3b45fb(0xb9)],'emit':(_0xb7bfbd,_0x535fa7)=>void this[_0x3b45fb(0xa9)]?.[_0x3b45fb(0xbc)](_0xb7bfbd,_0x535fa7),'send':(_0x336004,_0x1af249,_0x50f703)=>this[_0x3b45fb(0xf1)](_0x336004,_0x1af249,_0x50f703)}),this[_0x3b45fb(0x196)]=new NodeRunEventBridge({'runtime':this[_0x3b45fb(0x1c2)],'state':this[_0x3b45fb(0x1ec)],'events':this[_0x3b45fb(0x1c4)],'emitWorkbench':(_0x5159d2,_0x1f9bc6)=>this[_0x3b45fb(0x10b)](_0x5159d2,_0x1f9bc6),'queues':this[_0x3b45fb(0x199)],'codex':this[_0x3b45fb(0x136)],'claude':this[_0x3b45fb(0x88)],'openCode':this[_0x3b45fb(0x8f)],'send':(_0x230f0d,_0x2066c5,_0x2f329a)=>this[_0x3b45fb(0xf1)](_0x230f0d,_0x2066c5,_0x2f329a)}),this[_0x3b45fb(0xd5)]=new NodeConnectionLifecycleService({'config':()=>this[_0x3b45fb(0xe1)],'setConfig':_0x3373e1=>this[_0x3b45fb(0xe1)]=_0x3373e1,'configPath':this[_0x3b45fb(0x110)],'capabilities':()=>this[_0x3b45fb(0x106)],'detectCapabilities':this[_0x3b45fb(0x14a)],'capabilitiesProvided':this[_0x3b45fb(0x16b)],'stopped':()=>this[_0x3b45fb(0x17b)],'setCapabilities':_0x49309f=>this[_0x3b45fb(0x106)]={..._0x49309f,'metadata':upgradeMetadata(_0x49309f[_0x3b45fb(0x172)],this[_0x3b45fb(0x144)][_0x3b45fb(0xa1)]())},'control':this[_0x3b45fb(0xdc)],'terminal':this[_0x3b45fb(0x16e)],'metrics':this[_0x3b45fb(0x117)],'heartbeatMs':HEARTBEAT_MS,'refreshMs':CAPABILITY_REFRESH_MS,'onConnected':()=>this[_0x3b45fb(0x109)][_0x3b45fb(0x176)]()});const _0x212bee=()=>{const _0x180840=_0x3b45fb;if(this[_0x180840(0x171)]===undefined)throw new Error(_0x180840(0x20a));return this[_0x180840(0x171)];};this[_0x3b45fb(0x145)]=new RunnerService(_0x212bee,()=>this[_0x3b45fb(0x106)],this[_0x3b45fb(0x1cd)],this[_0x3b45fb(0x86)]),this[_0x3b45fb(0x192)]=new WorkbenchManifestService({'capabilities':()=>this[_0x3b45fb(0x106)],'runners':this[_0x3b45fb(0x145)],'terminals':this[_0x3b45fb(0x121)]}),this[_0x3b45fb(0xa4)]=new TerminalService(_0x212bee,this[_0x3b45fb(0x121)]),this[_0x3b45fb(0x7e)]=new WorkspaceService(_0x212bee,()=>{const _0x27f3f2=_0x3b45fb;if(this[_0x27f3f2(0xe1)]===undefined)throw new Error(_0x27f3f2(0xd3));return this[_0x27f3f2(0xe1)];},this[_0x3b45fb(0x1c2)],_0x2195ff=>{const _0x107bb2=_0x3b45fb;this[_0x107bb2(0x174)][_0x107bb2(0x157)](_0x2195ff),this[_0x107bb2(0x143)][_0x107bb2(0x125)](_0x2195ff),this[_0x107bb2(0xe5)][_0x107bb2(0xe2)](_0x2195ff),this[_0x107bb2(0x143)][_0x107bb2(0x149)](_0x2195ff);}),this[_0x3b45fb(0xa9)]=new WorkspaceWorkbenchService({'requireWorkspace':_0x4c4099=>this[_0x3b45fb(0x143)][_0x3b45fb(0x135)](_0x4c4099),'watch':this[_0x3b45fb(0x182)],'files':this[_0x3b45fb(0x174)],'uploads':this[_0x3b45fb(0x1ba)],'changes':this[_0x3b45fb(0xb9)],'listSessions':_0x171080=>this[_0x3b45fb(0x142)](_0x3b45fb(0x114),{'workspaceId':_0x171080,'limit':0x14}),'invalidate':_0x4960ad=>this[_0x3b45fb(0x143)][_0x3b45fb(0xe2)](_0x4960ad),'nodeId':()=>this[_0x3b45fb(0xe1)]?.[_0x3b45fb(0x9d)]??_0x3b45fb(0xc7),'nodeGeneration':()=>this[_0x3b45fb(0xee)],'emitWatchEvent':_0x42a383=>this[_0x3b45fb(0xf1)](_0x3b45fb(0xe6),_0x42a383)}),this[_0x3b45fb(0x201)][_0x3b45fb(0xd2)](this[_0x3b45fb(0x145)][_0x3b45fb(0x118)]()),this[_0x3b45fb(0x201)][_0x3b45fb(0xd2)](this[_0x3b45fb(0xa4)][_0x3b45fb(0x118)]()),this[_0x3b45fb(0x201)][_0x3b45fb(0xd2)](this[_0x3b45fb(0x7e)][_0x3b45fb(0x118)]()),this[_0x3b45fb(0x201)][_0x3b45fb(0xd2)](this[_0x3b45fb(0xa9)][_0x3b45fb(0x118)]()),this[_0x3b45fb(0x201)][_0x3b45fb(0xd2)](this[_0x3b45fb(0xe3)][_0x3b45fb(0x118)]()),this[_0x3b45fb(0x201)][_0x3b45fb(0xd2)](this[_0x3b45fb(0x12b)][_0x3b45fb(0x118)]()),this[_0x3b45fb(0x201)][_0x3b45fb(0xd2)](this[_0x3b45fb(0x1fc)][_0x3b45fb(0x118)]()),this[_0x3b45fb(0x201)][_0x3b45fb(0xd2)](this[_0x3b45fb(0x103)][_0x3b45fb(0x118)]()),this[_0x3b45fb(0x201)][_0x3b45fb(0xd2)](this[_0x3b45fb(0x17e)][_0x3b45fb(0x118)]()),this[_0x3b45fb(0x201)][_0x3b45fb(0xd2)](this[_0x3b45fb(0x195)][_0x3b45fb(0x118)]()),this[_0x3b45fb(0x201)][_0x3b45fb(0xd2)](this[_0x3b45fb(0x11e)][_0x3b45fb(0x118)]()),this[_0x3b45fb(0x201)][_0x3b45fb(0xd2)](this[_0x3b45fb(0x199)][_0x3b45fb(0x118)]()),this[_0x3b45fb(0x201)][_0x3b45fb(0xd2)](new SkillNodeOperationService(_0x212bee,()=>{const _0x36033b=_0x3b45fb;if(this[_0x36033b(0xe1)]===undefined)throw new Error(_0x36033b(0xd3));return this[_0x36033b(0xe1)];})[_0x3b45fb(0x118)]()),this[_0x3b45fb(0x201)][_0x3b45fb(0xd2)](new McpNodeOperationService(_0x212bee)[_0x3b45fb(0x118)]()),this[_0x3b45fb(0x201)][_0x3b45fb(0x1d2)](_0x3b45fb(0x13e),()=>({'metrics':{...this[_0x3b45fb(0x117)][_0x3b45fb(0xa1)](),'activeRuns':this[_0x3b45fb(0x1ec)][_0x3b45fb(0x120)][_0x3b45fb(0x94)],'workspaceLeases':this[_0x3b45fb(0x1c2)][_0x3b45fb(0x1af)]()}})),this[_0x3b45fb(0x201)][_0x3b45fb(0x1d2)](_0x3b45fb(0x165),_0x5ca018=>this[_0x3b45fb(0x144)][_0x3b45fb(0x207)](_0x5ca018)),this[_0x3b45fb(0x201)][_0x3b45fb(0x1d2)](_0x3b45fb(0x1f3),()=>this[_0x3b45fb(0x144)][_0x3b45fb(0x19a)]()),this[_0x3b45fb(0x201)][_0x3b45fb(0x1d2)](_0x3b45fb(0x198),async()=>({'manifest':await this[_0x3b45fb(0x192)][_0x3b45fb(0x16f)]()}));}async[_0x50c5b1(0x1d9)](){const _0x331d63=_0x50c5b1;this[_0x331d63(0x17b)]=![],this[_0x331d63(0xe1)]??=await loadNodeConfig(this[_0x331d63(0x110)]),await this[_0x331d63(0x144)][_0x331d63(0x155)](resolve(dirname(nodeDatabasePath(this[_0x331d63(0xe1)],this[_0x331d63(0x110)])),_0x331d63(0x191))),await assertLocalSqlitePath(nodeDatabasePath(this[_0x331d63(0xe1)],this[_0x331d63(0x110)])),this[_0x331d63(0x171)]??=new NodeDatabase(nodeDatabasePath(this[_0x331d63(0xe1)],this[_0x331d63(0x110)]),()=>this[_0x331d63(0xe1)]?.[_0x331d63(0x9d)]??_0x331d63(0xda)),this[_0x331d63(0x171)][_0x331d63(0x16d)](),this[_0x331d63(0xd5)][_0x331d63(0x1d9)](),this[_0x331d63(0xdc)][_0x331d63(0x84)]();}[_0x50c5b1(0x1a7)](_0x3293c5){const _0x2c7af0=_0x50c5b1,_0x56783b=this[_0x2c7af0(0x138)][_0x2c7af0(0x83)](_0x3293c5);if(_0x56783b!==undefined)clearTimeout(_0x56783b[_0x2c7af0(0x189)]);this[_0x2c7af0(0x138)][_0x2c7af0(0x97)](_0x3293c5),this[_0x2c7af0(0x119)][_0x2c7af0(0x97)](_0x3293c5);}async[_0x50c5b1(0x81)](_0x2b7049){const _0x2978b1=_0x50c5b1,_0x39494c=_0x2b7049[_0x2978b1(0xae)]['id']+':'+_0x2b7049[_0x2978b1(0xae)][_0x2978b1(0x168)];this[_0x2978b1(0x119)][_0x2978b1(0x1fa)](_0x2b7049[_0x2978b1(0x11d)],_0x39494c);try{await this[_0x2978b1(0x17e)][_0x2978b1(0x8a)]({'sessionId':_0x2b7049[_0x2978b1(0x11d)],'kind':_0x2978b1(0x1a9),'content':this[_0x2978b1(0x1a2)][_0x2978b1(0x212)](_0x2b7049[_0x2978b1(0x11d)],_0x2978b1(0x1a9)),'deliveryIntent':_0x2978b1(0xb3),'mission':_0x2b7049[_0x2978b1(0xae)],'secretEnvironment':_0x2b7049[_0x2978b1(0xc6)],..._0x2b7049[_0x2978b1(0x8b)]===undefined?{}:{'personalInstructions':_0x2b7049[_0x2978b1(0x8b)]}});const _0x37610c=this[_0x2978b1(0x1a2)][_0x2978b1(0x83)](_0x2b7049[_0x2978b1(0x11d)]);if(_0x37610c?.[_0x2978b1(0x12f)]!==_0x2978b1(0x120)||_0x37610c['id']!==_0x2b7049[_0x2978b1(0xae)]['id']||_0x37610c[_0x2978b1(0x168)]!==_0x2b7049[_0x2978b1(0xae)][_0x2978b1(0x168)]){if(this[_0x2978b1(0x119)][_0x2978b1(0x83)](_0x2b7049[_0x2978b1(0x11d)])===_0x39494c)this[_0x2978b1(0x119)][_0x2978b1(0x97)](_0x2b7049[_0x2978b1(0x11d)]);return;}this[_0x2978b1(0x1a7)](_0x2b7049[_0x2978b1(0x11d)]);}catch{const _0x42d1f6=this[_0x2978b1(0x1a2)][_0x2978b1(0x83)](_0x2b7049[_0x2978b1(0x11d)]);if(_0x42d1f6?.[_0x2978b1(0x12f)]!==_0x2978b1(0x120)||_0x42d1f6['id']!==_0x2b7049[_0x2978b1(0xae)]['id']||_0x42d1f6[_0x2978b1(0x168)]!==_0x2b7049[_0x2978b1(0xae)][_0x2978b1(0x168)]){if(this[_0x2978b1(0x119)][_0x2978b1(0x83)](_0x2b7049[_0x2978b1(0x11d)])===_0x39494c)this[_0x2978b1(0x119)][_0x2978b1(0x97)](_0x2b7049[_0x2978b1(0x11d)]);return;}const _0x39e768=(_0x2b7049[_0x2978b1(0x1fb)]??0x1*-0x23b4+-0x2254+0x8*0x8c1)+(0xc*-0x49+-0x18b4+0x1c21),_0x3a9a4a=this[_0x2978b1(0x1c2)][_0x2978b1(0x1de)](_0x2b7049[_0x2978b1(0x11d)]);if(_0x39e768>0x14*-0xb+-0x5bd*-0x1+-0xb2*0x7||_0x3a9a4a===undefined){this[_0x2978b1(0x1a7)](_0x2b7049[_0x2978b1(0x11d)]);if(_0x39e768>-0xd*0xda+-0x1ff0+0x3*0xe57){const _0x951a6b=this[_0x2978b1(0x1a2)][_0x2978b1(0x134)](_0x2b7049[_0x2978b1(0x11d)],_0x2b7049[_0x2978b1(0xae)]['id'],_0x2b7049[_0x2978b1(0xae)][_0x2978b1(0x168)]);this[_0x2978b1(0x1e2)][_0x2978b1(0x1f7)](_0x2b7049[_0x2978b1(0x11d)]),this[_0x2978b1(0xed)](_0x2b7049[_0x2978b1(0x11d)],_0x2978b1(0x14b));if(_0x3a9a4a!==undefined)this[_0x2978b1(0x164)](_0x3a9a4a,_0x951a6b);}return;}this[_0x2978b1(0x1a7)](_0x2b7049[_0x2978b1(0x11d)]);const _0x31b17f={'sessionId':_0x2b7049[_0x2978b1(0x11d)],'timer':setTimeout(()=>{const _0x17e384=_0x2978b1,_0x2955e8=this[_0x17e384(0x1a2)][_0x17e384(0x83)](_0x31b17f[_0x17e384(0x11d)]);if(_0x2955e8?.[_0x17e384(0x12f)]!==_0x17e384(0x120)||_0x2955e8['id']!==_0x2b7049[_0x17e384(0xae)]['id']||_0x2955e8[_0x17e384(0x168)]!==_0x2b7049[_0x17e384(0xae)][_0x17e384(0x168)])return;void this[_0x17e384(0x81)]({..._0x2b7049,'sessionId':_0x31b17f[_0x17e384(0x11d)],'failedAttempts':_0x39e768});},0x15*0x537+-0x31d9+0x89*-0x2)};this[_0x2978b1(0x138)][_0x2978b1(0x1fa)](_0x2b7049[_0x2978b1(0x11d)],_0x31b17f),_0x31b17f[_0x2978b1(0x189)][_0x2978b1(0x204)]();}}[_0x50c5b1(0xed)](_0x22c1cc,_0xeac163){const _0x4d4392=_0x50c5b1,_0x522252=this[_0x4d4392(0x1c2)][_0x4d4392(0xdf)](_0x22c1cc);if(_0x522252===undefined||this[_0x4d4392(0x1c2)][_0x4d4392(0x1d3)](_0x522252['id'])!==undefined)return;this[_0x4d4392(0x196)][_0x4d4392(0xb8)](_0x522252['id'],_0xeac163===_0x4d4392(0x1c8)?_0x4d4392(0x20e):_0x4d4392(0x7f),_0xeac163===_0x4d4392(0x1c8)?{}:{'code':_0x4d4392(0x141)},_0xeac163);}[_0x50c5b1(0x193)](_0x749293){const _0x20a6fd=_0x50c5b1,_0x4668ec=missionUnrestrictedAccess(_0x749293[_0x20a6fd(0x91)]),_0x3f5349=_0x749293[_0x20a6fd(0x186)]!==_0x4668ec,_0x2ec259=_0x3f5349?this[_0x20a6fd(0x1c2)][_0x20a6fd(0x153)](_0x749293['id'],_0x4668ec):_0x749293;if(_0x3f5349&&_0x2ec259[_0x20a6fd(0x1a3)]!==null&&_0x2ec259[_0x20a6fd(0x1a8)]!==null&&_0x2ec259[_0x20a6fd(0x17c)]!==null)this[_0x20a6fd(0x171)]?.[_0x20a6fd(0xea)]({'runner':_0x2ec259[_0x20a6fd(0x91)],'externalSessionId':_0x2ec259[_0x20a6fd(0x1a3)],'workspaceId':_0x2ec259[_0x20a6fd(0x92)],'model':_0x2ec259[_0x20a6fd(0x1a8)],'effort':_0x2ec259[_0x20a6fd(0x17c)],'access':_0x4668ec});return{'session':_0x2ec259,'changed':_0x3f5349};}[_0x50c5b1(0x1cb)](){const _0x411e3b=_0x50c5b1;return{'commandId':_0x411e3b(0xae),'active':!![],'label':_0x411e3b(0x1df),'detail':null,'closable':!![],'closeInput':_0x411e3b(0x12e)};}[_0x50c5b1(0x107)](){const _0x3f43a2=_0x50c5b1;this[_0x3f43a2(0x17b)]=!![],this[_0x3f43a2(0x109)][_0x3f43a2(0x157)](),this[_0x3f43a2(0x144)][_0x3f43a2(0x107)](),this[_0x3f43a2(0xd5)][_0x3f43a2(0x107)]();for(const _0x1b8f85 of this[_0x3f43a2(0x88)][_0x3f43a2(0xcd)][_0x3f43a2(0x11c)][_0x3f43a2(0xfb)]()){clearTimeout(_0x1b8f85[_0x3f43a2(0x189)]),_0x1b8f85[_0x3f43a2(0x1c5)](_0x3f43a2(0x1f4));}this[_0x3f43a2(0x88)][_0x3f43a2(0xcd)][_0x3f43a2(0x11c)][_0x3f43a2(0xe7)]();for(const _0x34e38c of this[_0x3f43a2(0x88)][_0x3f43a2(0xcd)][_0x3f43a2(0x1f1)][_0x3f43a2(0xfb)]()){clearTimeout(_0x34e38c[_0x3f43a2(0x189)]),_0x34e38c[_0x3f43a2(0x11b)](_0x3f43a2(0xb2));}this[_0x3f43a2(0x88)][_0x3f43a2(0xcd)][_0x3f43a2(0x1f1)][_0x3f43a2(0xe7)](),this[_0x3f43a2(0x12b)][_0x3f43a2(0xe7)](),this[_0x3f43a2(0x1a4)][_0x3f43a2(0x157)](),this[_0x3f43a2(0x103)][_0x3f43a2(0xe7)](),this[_0x3f43a2(0x1e2)][_0x3f43a2(0xe7)]();for(const _0x12ff0c of this[_0x3f43a2(0x138)][_0x3f43a2(0xfb)]())clearTimeout(_0x12ff0c[_0x3f43a2(0x189)]);this[_0x3f43a2(0x138)][_0x3f43a2(0xe7)](),this[_0x3f43a2(0x119)][_0x3f43a2(0xe7)](),this[_0x3f43a2(0x1c4)][_0x3f43a2(0xe7)](),this[_0x3f43a2(0xc2)][_0x3f43a2(0x157)]();for(const _0x21eac4 of this[_0x3f43a2(0x88)][_0x3f43a2(0xcd)][_0x3f43a2(0x1b7)][_0x3f43a2(0xfb)]())_0x21eac4[_0x3f43a2(0x1ed)][_0x3f43a2(0x19a)]();this[_0x3f43a2(0x88)][_0x3f43a2(0xcd)][_0x3f43a2(0x1b7)][_0x3f43a2(0xe7)](),this[_0x3f43a2(0x188)][_0x3f43a2(0x157)](),void this[_0x3f43a2(0x152)][_0x3f43a2(0x157)](),void this[_0x3f43a2(0x1ba)][_0x3f43a2(0x1d0)](),this[_0x3f43a2(0x174)][_0x3f43a2(0x157)](),this[_0x3f43a2(0x182)][_0x3f43a2(0x13a)](),this[_0x3f43a2(0xa9)][_0x3f43a2(0xe7)](),this[_0x3f43a2(0xe5)][_0x3f43a2(0xe7)](),this[_0x3f43a2(0xb9)][_0x3f43a2(0xe7)](),void this[_0x3f43a2(0x1cd)][_0x3f43a2(0x107)](),void this[_0x3f43a2(0xf9)][_0x3f43a2(0x137)](),void this[_0x3f43a2(0x121)][_0x3f43a2(0x1d0)](),this[_0x3f43a2(0x16e)][_0x3f43a2(0x107)](),this[_0x3f43a2(0xdc)][_0x3f43a2(0x107)](),this[_0x3f43a2(0x171)]?.[_0x3f43a2(0x137)](),this[_0x3f43a2(0x171)]=undefined;}[_0x50c5b1(0xce)]=_0x29ab30=>this[_0x50c5b1(0x206)][_0x50c5b1(0x1ed)](_0x29ab30);[_0x50c5b1(0x15c)]=(_0x5ea126,_0x5cd42c,_0x2fd60e,_0x26eb66)=>this[_0x50c5b1(0x196)][_0x50c5b1(0xb8)](_0x5ea126,_0x5cd42c,_0x2fd60e,_0x26eb66);[_0x50c5b1(0x202)]=(_0x3c98b9,_0xc7cbce)=>{const _0x3da1cc=_0x50c5b1;this[_0x3da1cc(0x1c4)][_0x3da1cc(0xaf)](_0x3c98b9);const _0x1bd706=isPlainRecord(_0xc7cbce)&&typeof _0xc7cbce[_0x3da1cc(0xb1)]===_0x3da1cc(0x19c)?_0xc7cbce[_0x3da1cc(0xb1)]:undefined,_0x18b3c4=isPlainRecord(_0xc7cbce)&&typeof _0xc7cbce[_0x3da1cc(0x10c)]===_0x3da1cc(0x19c)?_0xc7cbce[_0x3da1cc(0x10c)]:undefined,_0x44c85a=this[_0x3da1cc(0x1c2)][_0x3da1cc(0xd1)](_0x3c98b9),_0x442109=_0x1bd706===undefined||_0x44c85a===undefined?undefined:conversationSegmentIdentityForItem(_0x44c85a,_0x1bd706,_0x18b3c4);this[_0x3da1cc(0x196)][_0x3da1cc(0xb8)](_0x3c98b9,_0x3da1cc(0xe8),_0x442109===undefined||!isPlainRecord(_0xc7cbce)?_0xc7cbce:{..._0xc7cbce,'segmentId':_0x442109['id'],'segmentIndex':_0x442109[_0x3da1cc(0xde)]});};[_0x50c5b1(0x1eb)]=_0x1f75a3=>{const _0x42f697=_0x50c5b1,_0x1c9817=isPlainRecord(_0x1f75a3)&&Array[_0x42f697(0x10e)](_0x1f75a3[_0x42f697(0x1be)])?conversationSegments(_0x1f75a3):[];this[_0x42f697(0x150)](_0x42f697(0x17a),{'turn':_0x1f75a3,'segments':_0x1c9817});};[_0x50c5b1(0x10b)]=(_0x1181e8,_0x50f4ca)=>{const _0x1952fd=_0x50c5b1;if(_0x1181e8===_0x1952fd(0x19b)){this[_0x1952fd(0x127)](_0x50f4ca);return;}this[_0x1952fd(0x150)](_0x1181e8,_0x50f4ca);};[_0x50c5b1(0x127)]=_0x24454b=>{const _0x1b3f6b=_0x50c5b1;if(isPlainRecord(_0x24454b)&&isPlainRecord(_0x24454b[_0x1b3f6b(0x19b)])){const _0x3619ab=_0x24454b[_0x1b3f6b(0x19b)][_0x1b3f6b(0x92)];typeof _0x3619ab===_0x1b3f6b(0x19c)&&(this[_0x1b3f6b(0xe5)][_0x1b3f6b(0x1fe)](_0x3619ab),void this[_0x1b3f6b(0xa9)]?.[_0x1b3f6b(0xbc)](_0x3619ab,_0x1b3f6b(0x1c6)));}this[_0x1b3f6b(0x150)](_0x1b3f6b(0x19b),_0x24454b);};[_0x50c5b1(0x150)]=(_0x312a57,_0x2df68a)=>{const _0x399771=_0x50c5b1;if(_0x312a57===_0x399771(0x17a)&&isPlainRecord(_0x2df68a)&&isPlainRecord(_0x2df68a[_0x399771(0x1bc)])&&_0x2df68a[_0x399771(0x1bc)][_0x399771(0x211)]!==_0x399771(0x1bf)){const _0x30a3cb=typeof _0x2df68a[_0x399771(0x1bc)][_0x399771(0x128)]===_0x399771(0x19c)?_0x2df68a[_0x399771(0x1bc)][_0x399771(0x128)]:undefined,_0x3024bb=typeof _0x2df68a[_0x399771(0x1bc)][_0x399771(0x1f9)]===_0x399771(0x208)?_0x2df68a[_0x399771(0x1bc)][_0x399771(0x1f9)]:undefined,_0x1b86d6=_0x30a3cb===undefined?undefined:this[_0x399771(0x1c2)][_0x399771(0xd1)](_0x30a3cb);if(_0x1b86d6===undefined)return;const _0x2e9a1a=isPlainRecord(_0x2df68a[_0x399771(0x1bc)][_0x399771(0x1ad)])?_0x2df68a[_0x399771(0x1bc)][_0x399771(0x1ad)]:undefined,_0x69030c=_0x2df68a[_0x399771(0x1bc)][_0x399771(0x211)]===_0x399771(0x160)&&typeof _0x2e9a1a?.[_0x399771(0x210)]===_0x399771(0x19c)?_0x2e9a1a[_0x399771(0x210)]:undefined,_0x102c2a=typeof _0x2e9a1a?.[_0x399771(0xb1)]===_0x399771(0x19c)?_0x2e9a1a[_0x399771(0xb1)]:typeof _0x2e9a1a?.[_0x399771(0x17f)]===_0x399771(0x19c)?_0x399771(0x14e)+_0x2e9a1a[_0x399771(0x17f)]:undefined,_0x3ed748=_0x69030c!==undefined&&_0x3024bb!==undefined?_0x1b86d6[_0x399771(0x1be)][_0x399771(0xf5)](_0x3762e1=>_0x3762e1[_0x399771(0x10c)]===_0x399771(0x158)&&_0x3762e1[_0x399771(0x168)]===_0x3024bb):_0x102c2a===undefined?undefined:_0x1b86d6[_0x399771(0x1be)][_0x399771(0xf5)](_0x321b5f=>_0x321b5f['id']===_0x30a3cb+':'+_0x102c2a);if(_0x69030c!==undefined&&_0x3ed748?.[_0x399771(0x10c)]===_0x399771(0x158))_0x2df68a={'sessionId':_0x1b86d6[_0x399771(0x11d)],'delta':{'runId':_0x1b86d6[_0x399771(0x128)],'itemId':_0x3ed748['id'],'text':_0x69030c,'createdAt':typeof _0x2df68a[_0x399771(0x1bc)][_0x399771(0x1bd)]===_0x399771(0x208)?_0x2df68a[_0x399771(0x1bc)][_0x399771(0x1bd)]:Date[_0x399771(0x1f5)]()}};else{if(_0x3ed748!==undefined){const _0x2172a4=conversationSegmentIdentityForItem(_0x1b86d6,_0x3ed748['id'],_0x3ed748[_0x399771(0x10c)]);_0x2df68a={'sessionId':_0x1b86d6[_0x399771(0x11d)],'runId':_0x1b86d6[_0x399771(0x128)],'item':{'itemId':_0x3ed748['id'],'kind':_0x3ed748[_0x399771(0x10c)],'status':_0x3ed748[_0x399771(0x12f)],'payload':_0x3ed748[_0x399771(0x1ad)],'startedAt':_0x3ed748[_0x399771(0x200)],'completedAt':_0x3ed748[_0x399771(0x1e1)],'segmentId':_0x2172a4['id'],'segmentIndex':_0x2172a4[_0x399771(0xde)]}};}else{if(_0x2df68a[_0x399771(0x1bc)][_0x399771(0x211)]!==_0x399771(0x1db)&&_0x2df68a[_0x399771(0x1bc)][_0x399771(0x211)]!==_0x399771(0x1ae))return;_0x2df68a={'turn':_0x1b86d6,'segments':conversationSegments(_0x1b86d6)};}}}const _0x3f1317=this[_0x399771(0xd7)][_0x399771(0x89)](_0x312a57,_0x2df68a);if(_0x3f1317===undefined)return;const _0x15b7d5=_0x312a57===_0x399771(0x17a)&&isPlainRecord(_0x2df68a)&&isPlainRecord(_0x2df68a[_0x399771(0x1bc)])&&_0x2df68a[_0x399771(0x1bc)][_0x399771(0x211)]===_0x399771(0x1bf),_0x4a15f6=workbenchPayloadSessionId(this[_0x399771(0x1c2)],_0x312a57,_0x2df68a);if(!_0x15b7d5&&_0x4a15f6!==undefined){this[_0x399771(0x12b)][_0x399771(0x203)](_0x4a15f6,_0x3f1317);return;}this[_0x399771(0xd7)][_0x399771(0x8c)](_0x3f1317);};[_0x50c5b1(0x9c)]=_0x5671b6=>this[_0x50c5b1(0x1f2)][_0x50c5b1(0x98)](_0x5671b6);[_0x50c5b1(0xc4)]=_0x2ba2f8=>this[_0x50c5b1(0x143)][_0x50c5b1(0xe2)](_0x2ba2f8);[_0x50c5b1(0x122)]=()=>undefined;[_0x50c5b1(0x1dd)]=()=>this[_0x50c5b1(0xd5)][_0x50c5b1(0x1dd)]();[_0x50c5b1(0x1b1)]=()=>this[_0x50c5b1(0xd5)][_0x50c5b1(0x1b1)]();async[_0x50c5b1(0x142)](_0x2f3cde,_0x4595a2){const _0x2807cf=_0x50c5b1;if(this[_0x2807cf(0x171)]===undefined)throw new Error(_0x2807cf(0x20a));if(this[_0x2807cf(0x144)][_0x2807cf(0xca)](_0x2f3cde))throw new Error(_0x2807cf(0x1b8));return nodeLog(_0x2807cf(0x1e0),{'nodeId':this[_0x2807cf(0xe1)]?.[_0x2807cf(0x9d)],'operation':_0x2f3cde}),this[_0x2807cf(0x201)][_0x2807cf(0x18a)](_0x2f3cde,_0x4595a2);}async[_0x50c5b1(0x1b3)](_0x1b6c55,_0x54a6c1){const _0x3056a3=_0x50c5b1,_0x80b97e=this[_0x3056a3(0xe1)];if(_0x80b97e?.[_0x3056a3(0x9d)]===undefined||_0x80b97e[_0x3056a3(0x14c)]===undefined)throw new Error(_0x3056a3(0x90));const _0x14cb26=await fetch(_0x80b97e[_0x3056a3(0x1ab)][_0x3056a3(0x20c)](/\/$/u,'')+_0x3056a3(0x12d),{'method':_0x3056a3(0xc3),'headers':{'content-type':_0x3056a3(0x183),'x-mar-node-id':_0x80b97e[_0x3056a3(0x9d)],'authorization':_0x3056a3(0x140)+_0x80b97e[_0x3056a3(0x14c)]},'body':JSON[_0x3056a3(0x11a)](_0x1b6c55),'signal':_0x54a6c1});if(!_0x14cb26['ok'])throw new Error(_0x3056a3(0x131));const _0x1906a1=await _0x14cb26[_0x3056a3(0xf8)]();return{'content':JSON[_0x3056a3(0x11a)](_0x1906a1),'data':_0x1906a1};}[_0x50c5b1(0x164)](_0x24e372,_0x4f8fb6){const _0x2dd2eb=_0x50c5b1;if(_0x4f8fb6[_0x2dd2eb(0x12f)]!==_0x2dd2eb(0x120)){this[_0x2dd2eb(0xfe)][_0x2dd2eb(0xe7)](_0x24e372['id'],_0x2dd2eb(0xae)),this[_0x2dd2eb(0x150)](_0x2dd2eb(0x19b),{'session':this[_0x2dd2eb(0x213)][_0x2dd2eb(0xcf)](_0x24e372)});return;}this[_0x2dd2eb(0xfe)][_0x2dd2eb(0x1fa)](_0x24e372['id'],{'commandId':_0x2dd2eb(0xae),'active':_0x4f8fb6[_0x2dd2eb(0x12f)]===_0x2dd2eb(0x120),'label':_0x2dd2eb(0x1df),'detail':_0x4f8fb6[_0x2dd2eb(0xaa)][_0x2dd2eb(0xf7)](0x269*0x1+0x184c*-0x1+0x15e3,0x16*-0x166+0x9*0x371+0x3*0x95),'closable':!![],'closeInput':_0x2dd2eb(0x147),'mission':{'id':_0x4f8fb6['id'],'objective':_0x4f8fb6[_0x2dd2eb(0xaa)],'revision':_0x4f8fb6[_0x2dd2eb(0x168)],'status':_0x4f8fb6[_0x2dd2eb(0x12f)],'turns':_0x4f8fb6[_0x2dd2eb(0x1b2)]}}),this[_0x2dd2eb(0x150)](_0x2dd2eb(0x19b),{'session':this[_0x2dd2eb(0x213)][_0x2dd2eb(0xcf)](_0x24e372)});}[_0x50c5b1(0xf1)](_0x5e10f5,_0x908345,_0x258aa8){const _0x73b64b=_0x50c5b1;this[_0x73b64b(0xdc)][_0x73b64b(0xf1)](_0x5e10f5,_0x908345,_0x258aa8);}[_0x50c5b1(0x1a1)](_0x5f51b4){const _0x50d940=_0x50c5b1;this[_0x50d940(0xdc)][_0x50d940(0x1a1)](_0x5f51b4);}}