@myagentroam/node 0.9.31 → 0.9.32

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.
package/dist/connector.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /* mar-release-protected */
2
- const _0x4e456a=_0x471b;(function(_0x30e5c0,_0x2cd35d){const _0x4feca5=_0x471b,_0x56f0fc=_0x30e5c0();while(!![]){try{const _0x4cfb92=-parseInt(_0x4feca5(0x179))/(0x1c55+0x9*-0x22c+-0x8c8*0x1)*(parseInt(_0x4feca5(0x277))/(0xa2b*-0x3+0x4f*-0x4+-0x1*-0x1fbf))+-parseInt(_0x4feca5(0x129))/(0x1285+0xa8d+-0x1d0f)+-parseInt(_0x4feca5(0x147))/(0x155e+-0x250e+0xfb4)*(parseInt(_0x4feca5(0x10c))/(-0x55b*0x2+0x199a+0x2f*-0x51))+parseInt(_0x4feca5(0x214))/(0x3c5*0x6+-0x1c38+0x5a0)*(-parseInt(_0x4feca5(0x1d1))/(-0xf*-0x137+0x12b9*0x2+0x2*-0x1bd2))+parseInt(_0x4feca5(0x188))/(0x23e1*0x1+-0x1*-0x2195+-0x456e)*(parseInt(_0x4feca5(0x222))/(-0x870+-0x247d*0x1+0x2cf6))+parseInt(_0x4feca5(0x175))/(-0x1*0x49d+-0x1*-0x1309+-0xe62)+-parseInt(_0x4feca5(0x24f))/(-0x3fd*0x7+0x68b*-0x1+0x49*0x79)*(-parseInt(_0x4feca5(0xd7))/(-0x236*0xc+-0x4*-0x77d+-0x10*0x36));if(_0x4cfb92===_0x2cd35d)break;else _0x56f0fc['push'](_0x56f0fc['shift']());}catch(_0x2339ef){_0x56f0fc['push'](_0x56f0fc['shift']());}}}(_0xa698,-0x152c6*-0x1+0x163f5c+0xd86e*-0xd));import{dirname,resolve}from'node:path';import{createEnvelope}from'@myagentroam/protocol';import{hostedConversationStorePath,loadNodeConfig,nodeDataDirectory,nodeDatabasePath}from'./config.js';function _0x471b(_0x567c47,_0x1f5a7b){_0x567c47=_0x567c47-(-0x1d77+0x2f3*0x1+0x1b24);const _0x5394b0=_0xa698();let _0x242220=_0x5394b0[_0x567c47];if(_0x471b['UREZiF']===undefined){var _0x1d7dac=function(_0x34bdae){const _0x48ff2d='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x6275f9='',_0x57d625='';for(let _0x546926=0x1*0x1c54+0xf*-0x24d+0x62f,_0x53cc21,_0x2a4711,_0x5af767=-0x3*-0x71f+-0x663+-0xefa;_0x2a4711=_0x34bdae['charAt'](_0x5af767++);~_0x2a4711&&(_0x53cc21=_0x546926%(0x869+0x144*-0x2+-0x5dd)?_0x53cc21*(0xb7*0xd+0x130a+0xd*-0x229)+_0x2a4711:_0x2a4711,_0x546926++%(-0x1*0x9e+-0x1a91*-0x1+-0x19ef))?_0x6275f9+=String['fromCharCode'](0x1fad+-0x397*0x4+-0x1*0x1052&_0x53cc21>>(-(0x2193+-0x65*-0x3+0x20*-0x116)*_0x546926&-0x1c1c+-0x1bb0+0x37d2)):0x126d+0x2*-0x22e+0x1*-0xe11){_0x2a4711=_0x48ff2d['indexOf'](_0x2a4711);}for(let _0x4cd7f8=0x1698+0x1d51+0x61*-0x89,_0xbce38d=_0x6275f9['length'];_0x4cd7f8<_0xbce38d;_0x4cd7f8++){_0x57d625+='%'+('00'+_0x6275f9['charCodeAt'](_0x4cd7f8)['toString'](-0x2006+-0x2a*-0x93+0x7f8))['slice'](-(-0x1af1+-0x11*-0x1fd+-0x6da));}return decodeURIComponent(_0x57d625);};_0x471b['FXCvOY']=_0x1d7dac,_0x471b['wMRcyd']={},_0x471b['UREZiF']=!![];}const _0x30b8dc=_0x5394b0[0x4*-0x53a+0x776+-0x1*-0xd72];_0x471b['HuONPs']!==_0x30b8dc&&(_0x471b['wMRcyd']={},_0x471b['HuONPs']=_0x30b8dc);const _0x2fc05c=_0x471b['wMRcyd'][_0x567c47];return _0x2fc05c===undefined?(_0x242220=_0x471b['FXCvOY'](_0x242220),_0x471b['wMRcyd'][_0x567c47]=_0x242220):_0x242220=_0x2fc05c,_0x242220;}import{NodeMetrics,nodeLog}from'./operational.js';import{assertLocalSqlitePath}from'./storage.js';import{detectCapabilitiesAsync,unavailableCapabilities}from'./capabilities.js';import{NodeDatabase}from'./database.js';import{TerminalManager}from'./terminal.js';import{NodeRuntimeState}from'./runtime-state.js';import{CommandStateStore}from'./runner-command-engine.js';import{missionUnrestrictedAccess,MissionRuntime}from'./service/mission-runtime.js';import{MissionMcpServer}from'./service/mission-mcp-server.js';import{RunnerUsageReader}from'./runner-usage.js';import{ClaudeCodeRunner}from'./runner/claude-code-runner.js';import{ClaudeManagedRunController}from'./runner/claude/managed-run-controller.js';import{CodexRunner}from'./runner/codex-runner.js';import{CodexManagedRunController}from'./runner/codex/managed-run-controller.js';import{FakeTestRunner}from'./runner/fake-test-runner.js';import{RunnerRegistry}from'./runner/runner-registry.js';import{OpenCodeRunner}from'./runner/opencode-runner.js';import{MarAgentRunner}from'./runner/mar-agent-runner.js';import{MarAgentManagedRunController}from'./runner/mar-agent/managed-run-controller.js';import{OpenCodeManagedRunController}from'./runner/opencode/managed-run-controller.js';import{NodeOperationRouter}from'./connector/node-operation-router.js';import{SkillNodeOperationService}from'./service/skill-node-operation-service.js';import{McpNodeOperationService}from'./service/mcp-node-operation-service.js';import{RunnerService}from'./service/runner-service.js';import{TerminalService}from'./service/terminal-service.js';import{WorkspaceService}from'./service/workspace-service.js';import{WorkspaceWatchService}from'./service/workspace-watch-service.js';import{WorkspaceFileService}from'./service/workspace-file-service.js';import{WorkspaceUploadService}from'./service/workspace-upload-service.js';import{WorkspaceChangeService}from'./service/workspace-change-service.js';import{WorkspaceSessionService}from'./service/workspace-session-service.js';import{WorkbenchEventService}from'./service/workbench-event-service.js';import{RunDomainState}from'./service/run-domain-state.js';import{RecentRunProjectionService}from'./service/recent-run-projection-service.js';import{SessionDomainState}from'./service/session-domain-state.js';import{RunEventService}from'./service/run-event-service.js';import{RunAttachmentService}from'./service/run-attachment-service.js';import{NodeTerminalChannel}from'./service/node-terminal-channel.js';import{WorkspaceWorkbenchService}from'./service/workspace-workbench-service.js';import{NativeSessionWatchService}from'./service/native-session-watch-service.js';import{SessionWatchSlotCoordinator}from'./service/session-watch-slot-coordinator.js';import{SessionContextService}from'./service/session-context-service.js';import{WorkspaceDomainState}from'./service/workspace-domain-state.js';import{RunWorkbenchService}from'./service/run-workbench-service.js';import{SessionQueryService}from'./service/session-query-service.js';import{WorkspaceQueueWorkbenchService}from'./service/workspace-queue-workbench-service.js';import{ContinuousRunCoordinator}from'./service/continuous-run-coordinator.js';import{SessionIdentityService}from'./service/session-identity-service.js';import{NativeSessionProjectionService}from'./service/native-session-projection-service.js';import{composeConversationRuntimePage,ConversationHistoryService,convergeConversationWatchPage,hasManagedActiveRun}from'./service/conversation-history-service.js';import{ConversationSegmentService,conversationSegmentIdentityForItem,conversationSegments}from'./service/conversation-segment-service.js';function _0xa698(){const _0x38bb9b=['mJK4nZeWmfrtCwzuyG','C2v0q2HHBM5LBfrVA2vU','zw5HyMXLza','D29YA3nWywnLrMLSzvnLCNzPy2u','mti4mJy3uuzct1zj','rvHurvjoquW','z2v0qwDLBNrtzxnZAw9U','ChvIBgLZAefWChjVDMfS','BNvTyMvY','B25tDw1Tyxj5','CMvXDwLYzq','y2XLyxi','y29UzMLN','tuLtu0LptL9dt05usu5vqvrjt05FrKfjteve','C2vZC2LVBLf1zxj5u2vYDMLJzq','C2f2zu5HDgL2zvnLC3nPB25nzxrHzgf0yq','y29UDMvYC2f0Aw9UlMHVC3rLzc5JB25MAwCUDxbKyxrL','ChjLCgfYzu1PC3nPB25tzxnZAw9U','zxH0zxjUywXtzxnZAw9UuMvZDw1Lu2vYDMLJzq','ntC1mZaWoeHcr3PYzW','zgvJAwrLq2XHDwrLqxbWCM92ywW','ChvIBgLZAfDVCMTIzw5JAev2zw50','BxLHz2vUDhjVyw1FBwLZC2LVBG','CNvUlMzHAwXLza','BwfYqwDLBNrsDw5dB250CM9SBgvY','ChjVBw90zvnLC3nPB25jzgvUDgL0Eq','CMvTzw1Izxi','Aw52ywXPzgf0zunHy2HL','CMvJB3jKzwqTC2vZC2LVBG','CNvUDgLTzunYzwrLBNrPywXZ','CgvYC2LZDezPBgvZ','y29UzMLNugf0Aa','DxbNCMfKzq','CgvUzgLUz01PC3nPB25dB21Tyw5Ku3rHDgu','CgvYC29UywXjBNn0CNvJDgLVBNm','C2vZC2LVBKnVBNrLEhrtzxj2AwnL','y29UDMvYC2f0Aw9Usg9ZDgLUzW','y29UDMvYC2f0Aw9UlMHVC3rLzc5SAxn0','CMvJB3jKvhvYBG','zgvSzxrL','CMvZDw1Lqwz0zxjdB21Tyw5KuNvU','CMvQzwn0','y2fWywnPDhK','y29UDMvYC2f0Aw9UlMHVC3rLzc5KzwXLDgu','C3rVCfDHDgnO','y3jLyxrLqxbWCM92ywW','D2LUmZi','BM90AwzPy2f0Aw9U','y29UDMvYC2f0Aw9UlMHVC3rPBMCUy2XLyw51Cc5MywLSzwq','ChjLCgfYzu1LC3nHz2vjBNb1Da','C25HChnOB3q','Aw5ZCgvJDe1LDgfKyxrH','ChjVAMvJDeLUAxrPywW','CgvUzgLUzW','BMf0AxzLu2vZC2LVBLbYB2PLy3rPB25tzxj2AwnL','Aw52ywXPzgf0zvDVCMTZCgfJzvDHDgnOvg9WAwnZ','CMvHzeHPC3rVCNLqywDL','su5urvjsvvburuq','C2vZC2LVBLbYzxnLBNrHDgLVBLnLCNzPy2u','CMvTB3zLtwLZC2LVBLf1zxvL','y2HHBMDLza','C3rVCMfNzunHCgfJAxr5','y29UDgLUDw91C1j1BKnVB3jKAw5HDg9Y','C2v0u2vZC2LVBLjLC291CMnLuMvSzwfZzxi','q0foq0vmteLorW','C2vZC2LVBKLK','BwLNCMf0zvj1BM5LCLnLC3nPB25jzgvUDgL0Eq','y29UDMvYC2f0Aw9UlNrLBxbSyxrLlNzLCNnPB24UAw5ZCgvJDa','y3jLzgvUDgLHBa','ChjVzMLSzxm','B3bLBKnVzgvdBgLLBNq','AxndB252zxjZyxrPB25jBLvZzq','BMf0AxzLu2vZC2LVBLDHDgnOu2vYDMLJzq','y29UDMvYC2f0Aw9UlMHVC3rLzc5MAwXLCY51CgXVywqUC3rHDhvZ','CNvUlNn0yxj0zwq','CMvJB3jK','AgfUzgXLtM90AwzPy2f0Aw9U','y2f0y2G','y2fWywjPBgL0AwvZuhjVDMLKzwq','zxHWAxjLqxbWCM92ywW','Dgv4Da','D29YA3nWywnLq29VCMrPBMf0B3i','BwLZC2LVBK1JCfnLCNzLCG','zgLZCg9Zzq','y29UDMvYC2f0Aw9UlMHVC3rLzc5MAwXLCY51CgXVywqUy2H1BMS','zMfRzvj1BM5LCG','y29KzxG','y2XLyxjxB3jRC3bHy2u','D29YA3nWywnLu2vZC2LVBLnLCNzPy2u','vgHPCYboB2rLignVBM5Ly3rPB24GD2fZihjLCgXHy2vKigj5igeGBMv3zxiGAw5ZDgfUy2uGD2L0Acb0AguGC2fTzsbPzgvUDgL0Es4Gq2HLy2SGzM9Yigr1CgXPy2f0zsbWCM9JzxnZzxmU','qMvHCMvYia','Aw52ywXPzgf0zq','mJGWquzOtgL1','yxbWCM92ywXZ','Bwv0ywrHDge','CNvUlNj1BM5PBMC','C2vZC2LVBKnVBw1HBMrtzxj2AwnL','Ag9ZDgvKq29UDMvYC2f0Aw9Ut3bLCMf0Aw9UCW','ywXSB3DLzfjVB3rZ','y29UDMvYC2f0Aw9UlMHVC3rLzc5PBNrLCNj1Chq','CNvUBMvYq2HHBM5LBe1LC3nHz2vZ','BwfYqwDLBNrdBgLLBNq','CNvUCW','zMfRztO','Ag9ZDgvKq29UDMvYC2f0Aw9Uu2vYDMLJzq','z2v0','ue9tva','D29YA3nWywnLu3rHDgu','CNvUBMvYvxnHz2vszwfKzxi','BMf0AxzLlNnLC3nPB24UzgLZy292zxj5lNbLBMrPBMC','Aw5KzxG','y29UDMvYC2f0Aw9UlNrLBxbSyxrLlNb1yMXPC2G','CMv2B2TL','y29UDMvYC2f0Aw9UlML0zw0','uvvfvuu','zwzMzwn0AxzLtwnWsw5ZDgfSBgf0Aw9UCW','rKflrv9svu5orvjFreLtq09otKvdva','zgvJAwrLqxbWCM92ywW','Aw5PDgLHBgL6zq','D29YA2jLBMnOrxzLBNrtzxj2AwnL','y29UDMvYC2f0Aw9UvhvYBKzVCLj1BG','CMvWBgfJzvnVy2TLDezVCLrLC3rPBMC','qvzbsuXbqKXf','DMfSDwvZ','y29UDMvYC2f0Aw9UlMHVC3rLzc5MAwXLCY51CgXVywqUy29TCgXLDgu','C3rHCNq','Bg9HzfjLC3vSDa','Aw5ZDgfSBgf0Aw9U','tufsx0fhru5ux1DfqL9trufsq0HFrKfjteve','zgf0ywjHC2u','zMfPBgvKqxr0zw1WDhm','uKvkrunuruq','zgvJAxnPB24','y29UDMvYC2f0Aw9Usg9ZDgLUz0zHAwX1CMvdB2rL','rKfjteve','z2v0uNvU','B2jQzwn0AxzL','y2fWywjPBgL0AwvZ','y29UBMvJDgvKqxr0zw1WDa','zxHLy3v0Aw9Uu3rHCNrLza','CMvTB3zL','y29TBwfUzfn0yxrLCW','twLZC2LVBG','CgvYC2LZDfrLCM1PBMfS','C3rHDgu','B3bLCMf0Aw9UuM91DgvY','q09ovKvsu0fusu9ox0Hpu1rjtKDFuKvdt1zfuLLFrKfjteve','y3jLyxrLzef0','zw1PDfnLC3nPB25xB3jRyMvUy2HfDMvUDa','ywrVChrsDw4','C2L6zq','AgfUzgXL','y2fUy2vSq29KzxHuDxjU','CMvMCMvZAenHCgfIAwXPDgLLCW','Cgf5Bg9Hza','CNvUDgLTzs1UB2rL','y2XVC2vsDw5UAw5NvgvYBwLUywXtzxnZAw9UCW','Aw5Hy3rPDMvszxrLBNrPB25eyxLZ','yxzHAwXHyMXL','ntiXodHpsw5gA3O','BwfYqwDLBNrnB2rLBfrYyw5ZCg9YDfrLC3rZ','BwLZC2LVBLjLDhj5vgLTzxjZ','surmrq','tK9erv9eqvrbqKftrv9vtKfwquLmqujmrq','y29UDMvYC2f0Aw9UlMHVC3rLzc5MAwXLCY51CgXVywqUy3jLyxrL','B25oB3rPzMLJyxrPB24','BM9Kzs51CgDYywrLlMnHBMnLBa','zM9Yz2v0','DxbNCMfKzs1Yzxn1BhqUANnVBG','CMvSzwfZzunVBNzLCNnHDgLVBKzVCKnSzwfUDxa','tuLtu0LptL9ot1rFqunusvzf','y29TCgXLDgvdyw5JzwXSzwrsDw4','CNvUu3rHDgu','mtHtEfPyAKG','y29UDMvYC2f0Aw9UlMHVC3rPBMCUC3rVCMfNzs5PBNnWzwn0','B3bLCMf0Aw9UCW','y2XHDwrLuNvUq29UDhjVBgXLCG','ChjLC2vUDa','yxnZzxj0q2fUq3jLyxrL','CNvUBMvYCW','C29JA2v0','CMvHze5HDgL2zq','q09ovKvsu0fusu9ox0Hpu1rjtKDFu1rpuKfhrv9vtKfwquLmqujmrq','BM9KzuLK','CNvUqxr0ywnOBwvUDfnLCNzPy2u','C2vUza','CMvJB3zLCKLUDgvYCNvWDgvKuhvIBgLJyxrPB25Z','ms4WlJa','AxrLBuLK','tK9erv9vtKfvveHftLrjq0furuq','zw5ZDxjLuMvZDw1LzenVBMzPz3vYyxrPB24','Bwf4','CMvNAxn0zxi','y29UDMvYC2f0Aw9UlMHVC3rLzc5MAwXLCY5SAxn0','y29UDMvYC2f0Aw9Usg9ZDgLUz01HAw50zw5HBMnLu2vYDMLJzq','Aw5PDgLHBgL6zunVBNzLCNnHDgLVBKHVC3rPBMC','A2LUza','Cgf0Aa','C2vZC2LVBNm','ywn0AxzLu2vZC2LVBLj1BG','BMf0AxzLsw1Hz2vsB290CW','BM9KzuDLBMvYyxrPB24','y29UDMvYC2f0Aw9UlMHVC3rLzc51BNDHDgnO','DhjHBNnPDgLVBMLUzW','D29YA3nWywnLuxvLDwvxB3jRyMvUy2Htzxj2AwnL','y29UDMvYC2f0Aw9UlMHVC3rPBMCUy2XLyw51Cc5WCMv2Awv3','yxbWBgLJyxrPB24VANnVBG','AgfZqwn0AxzLu2vZC2LVBKXLyxnL','C2vXDwvUy2u','y2XLyxjnAxnZAw9UuMv0CNK','CMvJB25Uzwn0u2nOzwr1BgvK','zw1PDfjLywX0Aw1L','CMv2AxnPB24','C3rYAw5NAwz5','zgLYzwn0tMf0AxzL','CMvMCMvZAfrPDgXL','BM9Kzs51CgDYywrLlNjLCxvLC3q','BwfUywDLzezVCK5HDgL2zq','mZnUqunXu1K','zgLZy29UBMvJDgvK','zMfZDa','C3vWzxj2AxnLzfvWz3jHzgu','l2fWAs9UB2rLlxrVB2XZl3DLyI1ZzwfYy2G','Dw5Yzwy','u0vora','q0foq0vm','BwLU','y29TBwL0twv0ywrHDge','BM93','BMv4Da','CNvUBMvYsw50zxjHy3rPB25tzxj2AwnL','zMX1C2Hqzw5KAw5Nvgv4Da','AxnbCNjHEq','zw1PDfj1BG','BM9Kzs53B3jRyMvUy2GUy2fWywjPBgL0AwvZ','C2vJCMv0rw52AxjVBM1LBNq','yMXVy2TZ','zxHPDa','y29UDMvYC2f0Aw9Usg9ZDgLUz01HAw50zw5HBMnLt3bLCMf0Aw9UCW','C2vZC2LVBLn0yxrL','y29UDMvYC2f0Aw9UlMHVC3rLzc5MAwXLCY51CgXVywqUy2fUy2vS','DhvYBKLK','ywnJzxnZ','Bw92zq','D2LUzg93CW','AgfZ','C2vZC2LVBLDHDgnOu2XVDhm','y29UDMvYC2f0Aw9UlMHVC3rLzc5JCMvHDgu','CNvUDgLTzq','sfruua','y2XVC2u','BgLZDfDVCMTZCgfJzxm','zxHLy3v0zu5VzgvpCgvYyxrPB24','C25HChnOB3rtzxf1zw5Jzq','y29UBMvJDgLVBKXPzMvJEwnSzq','C3rVChbLza','zgLZy292zxjxB3jRC3bHy2u','yMXVy2TbzNrLCLj1BNrPBwvgywLSDxjL','mtbyvvvprMS','CMvIDwLSzenVBNzLCNnHDgLVBKLUzgv4','C3rHCNrLzef0','y29UBMvJDgvK','y29UDMvYC2f0Aw9Usg9ZDgLUz1bYB2jL','zgvJAwrL','Aw50zxjYDxb0uMvXDwvZDgvK','BM9Kzs5JB25Uzwn0Aw5N','BMf0AxzLswrZ','Dg9WAwnby3rPDMu','DhvYBNm','ChjVAMvJDgLVBKzVCK5HDgL2zq','CNvUBMvYlMnVBw1HBMqUzxHLy3v0zq','yMLUzenVBNrYB2W','Ag9ZDgvKq29UDMvYC2f0Aw9UuNvUDgLTzq','CNvUrxzLBNrtzxj2AwnL','BM9Kzs5VCgvYyxrPB24','BwLNCMf0zvnLC3nPB24','C2vZC2LVBKXPzMvJEwnSzvnLCNzPy2u','BgLZDa','CNvUrxzLBNrcCMLKz2u','zMfRzvnJCMLWDa','CgXHDgzVCM0','y29UDMvYC2f0Aw9UlNrLBxbSyxrLlNb1yMXPC2GUC3rHDhvZ','yxnZAxn0yw50x21LC3nHz2u','C2vJCMv0CW','DxbKyxrLqwDLBNrtzxnZAw9UqwnJzxnZ','C3vIBwL0twLZC2LVBG','D29YA2jLBMnOtwfUAwzLC3rtzxj2AwnL','CNvUBMvY','y29UDMvYC2f0Aw9UlMHVC3rLzc5TzxnZywDL','y2fUy2vSq2XHDwrLuNvU','tK9erv9tve9queve','ChvIBgLZAa','y29UDMvYC2f0Aw9UlMHVC3rLzc5MAwXLCY51CgXVywqUChjLzMXPz2H0','y29KzxHqCM9MAwXLq2XPzw50rMfJDg9YEq','Cgf1C2vtzxnZAw9UuxvLDwu','zMLUza','z2v0v29YA3nWywnL','y2fJAgvKu2vZC2LVBNm','CMvZDw1LzenVBMzPz3vYyxrPB24','C2nOzwr1Bgu','Ahr0Chm6lY8XmJCUmc4WlJeUAw52ywXPzc9Ty3a','BwLZC2LVBLj1BNrPBwu','D2vIu2vHCMnO','zgvJAwrLq29KzxHbChbYB3zHBa','BM9KzvjLCxvLC3rZ','DhvYBG','C2H1DgrVD24','C2XPy2u','ChjVBw90zq','zxHLy3v0zunVBw1HBMq','y29UDhjVBe1LC3nHz2vZ','AgfUzgXLtwvZC2fNzq','CMvMCMvZAev4DgvYBMfSqwn0AxzPDhK','ANnVBG','C3rVChbPBMC','ndy4mde1nKf3ve5rEa','Bwf0zxjPywXPEMvdB2rLEa','CNvUBMvYvgL0Bgu','DgLTzxi','y3jLyxrLqwDLBNrtzxnZAw9U','DgvYBwLUywXdAgfUBMvS','yMLUzenVBw1HBMrdB250CM9S','C2vZC2LVBK1LC3nHz2vtzxj2AwnL','Bwv0CMLJCW','tK9erv9dt05gsuDFvu5bvKfjtefcteu','y29UDMvYC2f0Aw9UsgLZDg9YEvnLCNzPy2u','yMvNAw5dB252zxjZyxrPB25dBgvHBNvW','CMvWBgfJzq','uKvqtefdrv9dvvjsru5u','CMvJB25JAwXL','D29YA3nWywnLq2HHBMDLu2vYDMLJzq','ChvIBgLZAe1PC3nPB25tDgf0zq','C2vZC2LVBG','BwLZC2LVBKnVBNrPBNvHDgLVBLbLBMrPBMC','y29UDMvYC2f0Aw9Uu2vNBwvUDfnLCNzPy2u','ywnJzxb0rM9YtwvZC2fNzq','yxbWCM92ywW6','CMvZB2X2zun1CNjLBNq','y3vYCMvUDev4zwn1DgLVBKLK','y2XHDwrLq2XPzw50','CMvXDwvZDenSyxvKzvvZzxjjBNb1Da','zw1PDfDVCMTIzw5JAev2zw50','yxbWCM92ywXjza','q0foq0vmteve','y2HHBM5LBfrVA2vU','CMvJzw50lxj1BNm','zxHLy3v0Aw9U','y29UDMvYC2f0Aw9Usg9ZDgLUz1n0B3jHz2vszwfKEq','y29UDMvYC2f0Aw9UlMHVC3rPBMCUAw5PDgLHBgL6yxrPB24UzMfPBgvK','D2f0y2GUzxzLBNq','y29UDMvYC2f0Aw9UlNrLBxbSyxrLlNnVDxjJzs5PBNnWzwn0','y2XLyxjbBgW','D29YA3nWywnLvxbSB2fKu2vYDMLJzq','y2fUy2vS','zxHWAxjL','zgLZy292zxi','CMvZCg9UzfvZzxjjBNb1Da','CMvSzwfZzvnLC3nPB24','BwLZC2LVBG','DgHYzwfKswq','CMfUzg9Tvvvjra','CMvJB25Uzwn0','ywn0AxzLv29YA3nWywnLtgvHC2vdB3vUDa','zwzMB3j0','y29UDMvYC2f0Aw9UlMHVC3rLzc5Nzxq','AgfZrxHLy3v0Aw9Uu3rHCNrLza','BgLUDxG','C2vUzevUDMvSB3bL','nuL1zfL3vq','ywn0AxzL','C2vZC2LVBI5SAxn0','zxzLBNruExbL','tK9erv9vueDsqurfx1bftKrjtKC','CMvTB3zLugvUzgLUz1f1zxvL','zw5ZDxjLvg9WAwntBMfWC2HVDa','u1vdq0vfreve','y2XLyxjxyxrJAgvZ','yM9VDhn0CMfWswrZ','Dgv4Dc5KzwX0yq','CMvJB3jKrxHLy3v0Aw9UuMvZDwX0','q09ovKvsu0fusu9ox0Hpu1rjtKDFvu5bvKfjtefcteu','BM9Kzs5TzxrYAwnZ','uLvox05pvf9gt1vora','zMLUAxnOswrSzu1PC3nPB25sDw4','y29UDMvYC2f0Aw9UlMHVC3rPBMCUy2XLyw51Cc5LEgvJDxrL','l21PC3nPB24','y29KzxHsDw5dB250CM9SBgvY','y29UBMvJDa','CNvU','zw5ZDxjLv2f0y2G','yxbWzw5K','y29TCgXLDgvKqxq','zxH0zxjUywXby3rPDML0Eq','C3rVCa','DxbNCMfKzunVB3jKAw5HDg9Y','Dw5YzwDPC3rLCMvK','Aw50zxjYDxb0','mJGXmdqZwKLsA2Dv','y29UDgLUDwu','CNvUlMnVBxbSzxrLza','DxnLCKLUChv0CW','zgLZy29UBMvJDa','zxzLBNq','CMvJB25JAwXLugvYC2LZDgvKuNvUCW','y29UDMvYC2f0Aw9UlMHVC3rLzc5TzxrHzgf0ys51CgrHDgu','ywrK','y3DK','y29UDMvYC2f0Aw9UlMHVC3rLzc53yxrJAa','C3rHDhvZ','CMvXDwvZDenSyxvKzufWChjVDMfS','CMvNAxn0zxjbBgW','BwfUywDLzfj1BM5LCLnLC3nPB25Z','C2vZC2LVBI13yxrJAc1ZBMfWC2HVDa','zMLUywXSEq','zw5XDwv1zu1PC3nPB25dB250Aw51yxrPB24','CMvJzw50uNvUuhjVAMvJDgLVBLnLCNzPy2u','y3vZDg9TvgL0Bgu','zgLZCgf0y2G','zMLSDgvY','D29YA3nWywnLv2f0y2Htzxj2AwnL','CNvUv29YA2jLBMnOu2vYDMLJzq','y29UDMvYC2f0Aw9UlMHVC3rLzc5MAwXLlNjLywq','y2XHDwrLqxbWCM92ywXuAw1LB3v0txm','C3rYAw5N','l21PC3nPB24Gls1JBgvHCG','zxH0zxjUywXtzxnZAw9Uswq','DgvYBwLUywXtzxj2AwnL','mZK5odqYmefIrxvuyW','DgvYBwLUywXnyw5Hz2vY','C2v0','tK9erv9dt05orunusu9ox1jfueXbq0ve','ChjVBxb0','CMvXDwvZDa','D29YA3nWywnLu2vYDMLJzq','y29UDhjVBenOyw5UzwW','q09ovKvsu0fusu9ox0Hpu1rjtKDFq0Xfqu5vuf9gquLmruq','zw1PDff1zxvL','C2vYDMvYvxjS','BwfYqwDLBNrsDw50Aw1Ltw9KzwXZ','BwfYlwLUDgvYBMfSlw1PC3nPB24','ChjVAMvJDenVBNzLCNnHDgLVBKHVC3rPBMDdyxbHyMLSAxr5','CNvUswq','CMvHza','y29UDMvYC2f0Aw9U','C2vZC2LVBKLKzw50Axr5u2vYDMLJzq','Aw52ywXPzgf0zunOyw5Nzxm','ChvIBgLZAfnUyxbZAg90','DxbNCMfKzvjLywr5','y29UDMvYC2f0Aw9UvgvTCgXHDgvpCgvYyxrPB25Z','D29YA3nWywnLswq','y29KzxHdBgLLBNq','zgLZy292zxjxB3jRC3bHy2vtzxnZAw9UCW','v09ss1nqqunf','zxHLy3v0zq','CMvZB2X2zq','C2vZC2LVBKnHDgfSB2Dtzxj2AwnL','C3rHCNrdyxbHyMLSAxr5uMvMCMvZAa','zw1PDenVBNzLCNnHDgLVBKL0zw0','D29YA3nWywnLv29YA2jLBMnOu2vYDMLJzq','BgLZDfj1BNngB3jtzxnZAw9U','Bw9KzwW','lw9Wzw5JB2rLlwLTywDLCW','y2fWywjPBgL0EurLDgvJDg9Y','B3bLBKnVzgvsDw5dB250CM9SBgvY','CNvUBMvYu2vYDMLJzq','AxrLBxm','Aw5ZCgvJDa','zw1PDfj1BKv2zw50','y2XLyw51Ca','Aw52ywXPzgf0zvrVCgLJ','zw1PDenVBNzLCNnHDgLVBLr1CM4','Ag9ZDgvKlwnVBNzLCNnHDgLVBG','BM9Kzs5JB25Uzwn0Aw9UlNjLCgXHy2vK'];_0xa698=function(){return _0x38bb9b;};return _0xa698();}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';import{HostedConversationStore}from'./service/hosted-conversation-store.js';import{ConversationTemplateNodeService}from'./service/conversation-template-node-service.js';import{HostedConversationNodeService}from'./service/hosted-conversation-node-service.js';import{BubblewrapSandboxExecutor}from'./service/bubblewrap-sandbox-executor.js';import{MarAgentHostedConversationRuntime}from'./runner/mar-agent/hosted-conversation-runtime.js';import{conversationHostingCapability,probeBubblewrap}from'./service/conversation-hosting-capability-service.js';import{ConversationHostingMaintenanceService}from'./service/conversation-hosting-maintenance-service.js';import{ConversationHostingEnablementService}from'./service/conversation-hosting-enablement-service.js';import{safeErrorCode}from'./util/safe-error.js';import{RuntimeCredentialControlService}from'./service/runtime-credential-control-service.js';import{MarAgentRuntimeModelFactory}from'./runner/mar-agent/runtime-model-factory.js';import{MarAgentModelTransportTestService}from'./service/mar-agent-model-transport-test-service.js';const HEARTBEAT_MS=0x4b91+-0x3*-0x82f+-0xa*0x427,CAPABILITY_REFRESH_MS=-0x2*0x9747+-0x16a25+0x38313*0x1,RETRY_MIN_MS=0x4fd*-0x2+-0xd*-0xb7+0xf*0x2d,RETRY_MAX_MS=-0x2*0x1da+-0x3521*-0x3+-0x267f,CLAUDE_APPROVAL_TIMEOUT_MS=(0x1fad+-0x397*0x4+-0x1*0x1147)*(0x192e4+-0x4f*-0x2e+0x1a*-0x707),CONVERSATION_TEMPLATE_OPERATIONS=[_0x4e456a(0xfa),_0x4e456a(0x1e4),_0x4e456a(0xb5),_0x4e456a(0x1b8)],HOSTED_CONVERSATION_OPERATIONS=[_0x4e456a(0x19a),_0x4e456a(0x26c),_0x4e456a(0x108),_0x4e456a(0x133),_0x4e456a(0x23f),_0x4e456a(0xbc),_0x4e456a(0x1d8),_0x4e456a(0x185),_0x4e456a(0x130),_0x4e456a(0x236),_0x4e456a(0x141),_0x4e456a(0xc0),_0x4e456a(0x219),_0x4e456a(0x1c9),_0x4e456a(0x1be),_0x4e456a(0x1f1),_0x4e456a(0x265),_0x4e456a(0x1a0)],CONVERSATION_HOSTING_MAINTENANCE_OPERATIONS=[_0x4e456a(0x223),_0x4e456a(0x242),_0x4e456a(0x11c)];export function nextReconnectDelay(_0x7ed8d){const _0x765e1a=_0x4e456a;return Math[_0x765e1a(0x257)](RETRY_MAX_MS,RETRY_MIN_MS*(-0x1c1c+-0x1bb0+0x37ce)**Math[_0x765e1a(0x257)](Math[_0x765e1a(0x234)](_0x7ed8d,0x126d+0x2*-0x22e+0x1*-0xe11),0x1698+0x1d51+0xd*-0x3fd));}function upgradeMetadata(_0x3a19a7,_0x4b052f){const _0x26216f=_0x4e456a,_0x5468d={..._0x3a19a7??{}};if(process.env['MAR_NODE_SUPERVISED']==='1')_0x5468d[_0x26216f(0x252)]=!![];else delete _0x5468d[_0x26216f(0x252)];if(_0x4b052f[_0x26216f(0x205)]===_0x26216f(0x217))delete _0x5468d[_0x26216f(0x195)];else _0x5468d[_0x26216f(0x195)]=_0x4b052f;return _0x5468d;}export class NodeConnector{[_0x4e456a(0x23e)]=crypto[_0x4e456a(0x104)]()[_0x4e456a(0xe3)](/-/g,'');[_0x4e456a(0x14e)];[_0x4e456a(0xd2)];[_0x4e456a(0xcc)];[_0x4e456a(0x273)];[_0x4e456a(0x192)]=new RuntimeCredentialControlService({'send':envelope=>this[_0x4e456a(0x10b)](envelope)});[_0x4e456a(0x152)]=new MarAgentRuntimeModelFactory(this[_0x4e456a(0x192)]);[_0x4e456a(0x215)]=new MarAgentModelTransportTestService({'modelFactory':this[_0x4e456a(0x152)]});set[_0x4e456a(0x229)](_0x30dfa8){const _0x2516ec=_0x4e456a;this[_0x2516ec(0x14e)][_0x2516ec(0x1ee)](_0x30dfa8);}[_0x4e456a(0x274)]=![];[_0x4e456a(0xd6)];[_0x4e456a(0x181)];[_0x4e456a(0x1c3)];[_0x4e456a(0x1fe)];[_0x4e456a(0x16a)];[_0x4e456a(0xa2)];[_0x4e456a(0xf7)]=![];[_0x4e456a(0x1fa)];[_0x4e456a(0x15c)];[_0x4e456a(0x1d6)];[_0x4e456a(0x263)];[_0x4e456a(0xac)];[_0x4e456a(0x1dd)];[_0x4e456a(0x237)];[_0x4e456a(0x194)];[_0x4e456a(0x105)];[_0x4e456a(0x142)];[_0x4e456a(0x1ec)]=new WorkbenchEventService(envelope=>this[_0x4e456a(0x10b)](envelope),(category,payload)=>{const _0x555e23=_0x4e456a,sessionId=workbenchPayloadSessionId(this[_0x555e23(0x26d)],category,payload);return sessionId===undefined||!this[_0x555e23(0x158)][_0x555e23(0x115)][_0x555e23(0x26a)](sessionId);});[_0x4e456a(0x1ca)];[_0x4e456a(0xb3)];[_0x4e456a(0x221)]=new RunDomainState();[_0x4e456a(0xb2)];[_0x4e456a(0x1c6)];[_0x4e456a(0x264)]=new SessionDomainState();[_0x4e456a(0x158)];[_0x4e456a(0x1ab)];[_0x4e456a(0xe1)];[_0x4e456a(0xea)];[_0x4e456a(0x25b)];[_0x4e456a(0x1d9)];[_0x4e456a(0x137)];[_0x4e456a(0x1af)];[_0x4e456a(0xb0)];[_0x4e456a(0x187)];[_0x4e456a(0xde)];[_0x4e456a(0x163)];[_0x4e456a(0x1d5)];[_0x4e456a(0x22d)];[_0x4e456a(0xdc)];[_0x4e456a(0x15e)];[_0x4e456a(0x11e)];[_0x4e456a(0xef)];[_0x4e456a(0x1bb)];[_0x4e456a(0x1da)];[_0x4e456a(0x18d)];[_0x4e456a(0x16b)];[_0x4e456a(0x225)];[_0x4e456a(0x228)];[_0x4e456a(0x198)];[_0x4e456a(0x140)];[_0x4e456a(0x183)];[_0x4e456a(0x1b3)];[_0x4e456a(0x241)];[_0x4e456a(0x206)]=new NodeOperationRouter();[_0x4e456a(0x16c)];[_0x4e456a(0xba)];[_0x4e456a(0x146)];[_0x4e456a(0x14d)];[_0x4e456a(0x202)]=new CommandStateStore();[_0x4e456a(0xc9)]=new MissionRuntime(()=>undefined);[_0x4e456a(0x216)]=new Map();[_0x4e456a(0xe9)]=new Map();[_0x4e456a(0x1c7)]=new MissionMcpServer(this[_0x4e456a(0xc9)],sessionId=>{const _0x1664cd=_0x4e456a,mission=this[_0x1664cd(0xc9)][_0x1664cd(0x1de)](sessionId),session=this[_0x1664cd(0x26d)][_0x1664cd(0x17b)](sessionId);if(mission===undefined||session===undefined)return;if(mission[_0x1664cd(0x134)]!==_0x1664cd(0x10d))this[_0x1664cd(0x1b3)][_0x1664cd(0x1b0)](sessionId);this[_0x1664cd(0xe7)](session,mission);});[_0x4e456a(0x1e1)];[_0x4e456a(0x148)];[_0x4e456a(0x126)];[_0x4e456a(0x1e0)]=new WorkspaceDomainState();[_0x4e456a(0x13f)]=new WorkspaceWatchService(this[_0x4e456a(0x1e0)],workspaceId=>this[_0x4e456a(0x1cd)][_0x4e456a(0x121)](workspaceId),workspaceId=>this[_0x4e456a(0x1cd)][_0x4e456a(0x1a1)](workspaceId),workspaceId=>this[_0x4e456a(0x166)]?.[_0x4e456a(0x1cc)](workspaceId));[_0x4e456a(0x1cd)]=new WorkspaceSessionService(this[_0x4e456a(0x1e0)],{'discover':workspaceId=>this[_0x4e456a(0x15f)](workspaceId),'listPage':workspaceId=>this[_0x4e456a(0x271)](_0x4e456a(0x10e),{'workspaceId':workspaceId,'limit':0x14}),'active':workspaceId=>this[_0x4e456a(0x13f)][_0x4e456a(0xa7)](workspaceId,_0x4e456a(0x23b)),'invalidate':workspaceId=>void this[_0x4e456a(0x166)]?.[_0x4e456a(0x171)](workspaceId,_0x4e456a(0x23b)),'onPending':(workspaceId,waitMs)=>nodeLog(_0x4e456a(0x1e2),{'nodeId':this[_0x4e456a(0x181)]?.[_0x4e456a(0x22c)],'workspaceId':workspaceId,'waitMs':waitMs})});[_0x4e456a(0x178)]=new WorkspaceFileService(this[_0x4e456a(0x1e0)],()=>this[_0x4e456a(0x181)]?.[_0x4e456a(0x1d7)]??[],workspaceId=>this[_0x4e456a(0x1c6)][_0x4e456a(0x1d0)](workspaceId));[_0x4e456a(0xfc)]=new WorkspaceUploadService(this[_0x4e456a(0x1e0)],workspaceId=>{const _0x29d453=_0x4e456a;this[_0x29d453(0x178)][_0x29d453(0x1c8)](workspaceId),this[_0x29d453(0x1c6)][_0x29d453(0x1d0)](workspaceId);});[_0x4e456a(0xe6)]=new WorkspaceChangeService(this[_0x4e456a(0x1e0)]);[_0x4e456a(0x166)];[_0x4e456a(0x1f6)];[_0x4e456a(0x13b)]=new RecentRunProjectionService(message=>this[_0x4e456a(0x22e)](_0x4e456a(0xf5),message));[_0x4e456a(0x26d)]=new NodeRuntimeState(()=>this[_0x4e456a(0x181)]?.[_0x4e456a(0x22c)]??_0x4e456a(0x210),workspaceId=>this[_0x4e456a(0x1f6)]?.[_0x4e456a(0xc4)](workspaceId),Date[_0x4e456a(0x259)],(run,session,userMessage)=>this[_0x4e456a(0x13b)][_0x4e456a(0x1c0)](run,session,userMessage));[_0x4e456a(0xdf)]=new NodeMetrics();[_0x4e456a(0xad)]=new RunEventService({'runtime':this[_0x4e456a(0x26d)],'metrics':this[_0x4e456a(0xdf)],'state':this[_0x4e456a(0x221)],'isBootstrapSession':sessionId=>this[_0x4e456a(0x158)][_0x4e456a(0x115)][_0x4e456a(0x26a)](sessionId),'presentSession':session=>this[_0x4e456a(0x1af)][_0x4e456a(0x226)](session),'rejectBootstrap':(sessionId,code)=>this[_0x4e456a(0x158)][_0x4e456a(0x19e)](sessionId,code),'emitWorkbench':(category,payload)=>{const _0x598ef8=_0x4e456a;if(category===_0x598ef8(0x157)&&isPlainRecord(payload)&&_0x598ef8(0xcd)in payload)this[_0x598ef8(0x172)](payload[_0x598ef8(0xcd)]);else this[_0x598ef8(0x18a)](category,payload);},'cleanupAttachments':runId=>this[_0x4e456a(0x22d)][_0x4e456a(0x170)](runId),'expireImages':runId=>this[_0x4e456a(0x22d)][_0x4e456a(0xfe)](runId),'scheduleContextRefresh':sessionId=>this[_0x4e456a(0x198)][_0x4e456a(0xc7)](sessionId),'refreshWorkspaceSessions':workspaceId=>this[_0x4e456a(0x166)][_0x4e456a(0x112)](workspaceId,_0x4e456a(0x23b)),'dispatchQueue':async(sessionId,delayMs=-0x2006+-0x2a*-0x93+0x7e8)=>{const _0x296597=_0x4e456a;if(this[_0x296597(0x126)][_0x296597(0x1aa)]())return;if(delayMs>-0x1af1+-0x11*-0x1fd+-0x6dc){this[_0x296597(0x1b3)][_0x296597(0xc7)](sessionId,delayMs);return;}await this[_0x296597(0x1b3)][_0x296597(0x13d)](sessionId);},'executionStarted':executionId=>this[_0x4e456a(0x1b3)][_0x4e456a(0x200)](executionId),'keepRunActive':sessionId=>(this[_0x4e456a(0x216)][_0x4e456a(0x26a)](sessionId)||this[_0x4e456a(0xe9)][_0x4e456a(0x26a)](sessionId))&&this[_0x4e456a(0xc9)][_0x4e456a(0x1de)](sessionId)?.[_0x4e456a(0x134)]===_0x4e456a(0x10d),'executionTerminating':(executionId,status)=>{const _0x4fee4a=_0x4e456a,pending=this[_0x4fee4a(0x1b3)][_0x4fee4a(0x1aa)](executionId);if(pending?.[_0x4fee4a(0x102)]===undefined)return;const started=this[_0x4fee4a(0x1b3)][_0x4fee4a(0x109)](executionId),blocked=this[_0x4fee4a(0xc9)][_0x4fee4a(0x117)](pending[_0x4fee4a(0x1b6)],status===_0x4fee4a(0x1fb));if(blocked){this[_0x4fee4a(0x246)](pending[_0x4fee4a(0x1b6)]),this[_0x4fee4a(0x1b3)][_0x4fee4a(0x1b0)](pending[_0x4fee4a(0x1b6)]);const terminalMission=this[_0x4fee4a(0xc9)][_0x4fee4a(0x1de)](pending[_0x4fee4a(0x1b6)]),session=this[_0x4fee4a(0x26d)][_0x4fee4a(0x17b)](pending[_0x4fee4a(0x1b6)]);if(terminalMission!==undefined&&session!==undefined)this[_0x4fee4a(0xe7)](session,terminalMission);return;}if(status!==_0x4fee4a(0x1fb)||started)return;this[_0x4fee4a(0x246)](pending[_0x4fee4a(0x1b6)]);const retry={'sessionId':pending[_0x4fee4a(0x1b6)],'timer':setTimeout(()=>{const _0x4840f4=_0x4fee4a;this[_0x4840f4(0x216)][_0x4840f4(0x19c)](retry[_0x4840f4(0x1b6)]);const mission=this[_0x4840f4(0xc9)][_0x4840f4(0x1de)](retry[_0x4840f4(0x1b6)]);if(mission?.[_0x4840f4(0x134)]!==_0x4840f4(0x10d)||mission['id']!==pending[_0x4840f4(0x102)]?.['id']||mission[_0x4840f4(0x249)]!==pending[_0x4840f4(0x102)][_0x4840f4(0x249)])return;void this[_0x4840f4(0xde)][_0x4840f4(0xb9)]({'sessionId':retry[_0x4840f4(0x1b6)],'kind':_0x4840f4(0x12a),'content':this[_0x4840f4(0xc9)][_0x4840f4(0x14b)](retry[_0x4840f4(0x1b6)],_0x4840f4(0x12a)),'deliveryIntent':_0x4840f4(0x255),'mission':{'id':mission['id'],'revision':mission[_0x4840f4(0x249)]},'secretEnvironment':pending[_0x4840f4(0x260)],...pending[_0x4840f4(0x197)]===undefined?{}:{'personalInstructions':pending[_0x4840f4(0x197)]}})[_0x4840f4(0x1c2)](()=>undefined);},0xd*-0x4d3+0x1661+-0x3*-0x20fa)};this[_0x4fee4a(0x216)][_0x4fee4a(0x149)](pending[_0x4fee4a(0x1b6)],retry),retry[_0x4fee4a(0xda)][_0x4fee4a(0x254)]();},'releaseExecution':executionId=>{const _0x226570=_0x4e456a;this[_0x226570(0x1c7)][_0x226570(0x1e5)](executionId),this[_0x226570(0x1b3)][_0x226570(0x201)](executionId);}});[_0x4e456a(0x26b)]=new SessionWatchSlotCoordinator();[_0x4e456a(0x1bd)]=new NativeSessionWatchService({'resolve':async sessionId=>this[_0x4e456a(0x26d)][_0x4e456a(0x17b)](sessionId)??this[_0x4e456a(0x1ab)][_0x4e456a(0xed)](sessionId),'managedActive':session=>hasManagedActiveRun(this[_0x4e456a(0x26d)],session),'suspended':sessionId=>this[_0x4e456a(0x187)][_0x4e456a(0x240)](sessionId),'refreshActivity':session=>this[_0x4e456a(0xe1)][_0x4e456a(0xd4)](session),'present':session=>this[_0x4e456a(0x1af)][_0x4e456a(0x226)](session),'readPage':(session,limit)=>this[_0x4e456a(0xe1)][_0x4e456a(0x156)](session,{'limit':limit}),'readHistoryPage':(session,limit)=>this[_0x4e456a(0xe1)][_0x4e456a(0x1ad)](session,{'limit':limit}),'convergePage':convergeConversationWatchPage,'composeRuntimePage':composeConversationRuntimePage,'projectInitialPage':(session,page,_unit,limit)=>{const _0x8e3212=_0x4e456a,context=this[_0x8e3212(0x198)][_0x8e3212(0x1a7)](session['id']);return this[_0x8e3212(0x198)][_0x8e3212(0xc7)](session),{'kind':_0x8e3212(0x138),'sequence':this[_0x8e3212(0x1ec)][_0x8e3212(0x272)](),'session':this[_0x8e3212(0x1af)][_0x8e3212(0x226)](session),'runs':this[_0x8e3212(0x26d)][_0x8e3212(0x167)](session['id']),'queue':this[_0x8e3212(0x241)][_0x8e3212(0x1a7)](session['id']),'context':context,'conversation':this[_0x8e3212(0xea)][_0x8e3212(0x1a9)](session,page,limit)};},'emitSession':session=>this[_0x4e456a(0x209)]({'session':session}),'emitPage':(session,page)=>this[_0x4e456a(0xf1)](_0x4e456a(0x157),{'sessionId':session['id'],'snapshot':this[_0x4e456a(0xea)][_0x4e456a(0x1a9)](session,page,-0x2*-0xfe5+-0xd62+0x1*-0x125e)}),'nodeId':()=>this[_0x4e456a(0x181)]?.[_0x4e456a(0x22c)]??_0x4e456a(0x210),'nodeGeneration':()=>this[_0x4e456a(0x23e)],'emitWatchEvent':payload=>this[_0x4e456a(0x22e)](_0x4e456a(0xf9),payload),'sessionWatchSlots':this[_0x4e456a(0x26b)],'log':nodeLog});constructor(_0x1a7607={}){const _0x597d35=_0x4e456a;this[_0x597d35(0x181)]=_0x1a7607[_0x597d35(0x181)],this[_0x597d35(0x194)]=_0x1a7607[_0x597d35(0x194)],this[_0x597d35(0x142)]=_0x1a7607[_0x597d35(0x142)]??CLAUDE_APPROVAL_TIMEOUT_MS,this[_0x597d35(0x1c3)]=_0x1a7607[_0x597d35(0x1fe)]!==undefined,this[_0x597d35(0x1fe)]=_0x1a7607[_0x597d35(0x1fe)]??unavailableCapabilities(),this[_0x597d35(0xa2)]=_0x1a7607[_0x597d35(0xa2)]??probeBubblewrap,this[_0x597d35(0x126)]=new NodeUpgradeCoordinator(()=>{const _0x4fb8b8=_0x597d35;if(this[_0x4fb8b8(0x181)]===undefined)throw new Error(_0x4fb8b8(0xe0));return nodeUpgradeRequestPath(nodeDatabasePath(this[_0x4fb8b8(0x181)],this[_0x4fb8b8(0x194)]));},()=>this[_0x597d35(0x221)][_0x597d35(0x10d)][_0x597d35(0x20b)],_0x25bdc1=>{const _0x5c4b1b=_0x597d35;this[_0x5c4b1b(0x1fe)]={...this[_0x5c4b1b(0x1fe)],'metadata':upgradeMetadata(this[_0x5c4b1b(0x1fe)][_0x5c4b1b(0x1d3)],_0x25bdc1)},this[_0x5c4b1b(0x14e)]?.[_0x5c4b1b(0x22e)](_0x5c4b1b(0x1fe),this[_0x5c4b1b(0x1fe)]);},_0x1a7607[_0x597d35(0x15b)]??(()=>{const _0x4b9a5b=_0x597d35;void this[_0x4b9a5b(0x125)]()[_0x4b9a5b(0x139)](()=>process[_0x4b9a5b(0x262)](0x424+0xa5e*0x2+-0x1*0x1895));})),this[_0x597d35(0x1fe)]={...this[_0x597d35(0x1fe)],'metadata':upgradeMetadata(this[_0x597d35(0x1fe)][_0x597d35(0x1d3)],this[_0x597d35(0x126)][_0x597d35(0x1a7)]())};const _0x7ad9bb=_0x1a7607[_0x597d35(0x16a)]??detectCapabilitiesAsync;this[_0x597d35(0x16a)]=async()=>{const _0x1a51ba=_0x597d35,_0x3fe015=await _0x7ad9bb();return this[_0x1a51ba(0x154)]({..._0x3fe015,'metadata':upgradeMetadata(_0x3fe015[_0x1a51ba(0x1d3)],this[_0x1a51ba(0x126)][_0x1a51ba(0x1a7)]())});},this[_0x597d35(0x105)]=_0x1a7607[_0x597d35(0x105)]??!![],this[_0x597d35(0x1ca)]=_0x1a7607[_0x597d35(0x1ca)]===undefined?undefined:new FakeTestRunner(_0x1a7607[_0x597d35(0x1ca)]),this[_0x597d35(0xb3)]=_0x1a7607[_0x597d35(0xb3)],this[_0x597d35(0x22d)]=new RunAttachmentService(_0x7b19fc=>this[_0x597d35(0x228)][_0x597d35(0x17f)](_0x7b19fc[_0x597d35(0xbb)])[_0x597d35(0x23d)](_0x7b19fc)),this[_0x597d35(0x15e)]=new CodexRunner(_0x1a7607[_0x597d35(0x15e)],_0x1a7607[_0x597d35(0xc1)]),this[_0x597d35(0x11e)]=new CodexManagedRunController(this[_0x597d35(0x15e)],{'available':()=>this[_0x597d35(0x1fe)][_0x597d35(0x1cb)][_0x597d35(0x213)],'intercepted':()=>this[_0x597d35(0x1ca)]!==undefined,'active':this[_0x597d35(0x221)][_0x597d35(0x10d)],'addActive':_0x173dde=>this[_0x597d35(0x221)][_0x597d35(0x10d)][_0x597d35(0x131)](_0x173dde),'removeActive':_0x570233=>this[_0x597d35(0x221)][_0x597d35(0x10d)][_0x597d35(0x19c)](_0x570233),'adopt':_0x7eef0c=>this[_0x597d35(0x26d)][_0x597d35(0x20a)](_0x7eef0c),'session':_0x1ffef6=>this[_0x597d35(0x26d)][_0x597d35(0x17b)](_0x1ffef6),'runStatus':_0x40fa05=>this[_0x597d35(0x26d)][_0x597d35(0x1fc)](_0x40fa05)?.[_0x597d35(0x134)],'run':_0x2ae412=>this[_0x597d35(0x26d)][_0x597d35(0x1fc)](_0x2ae412),'interrupted':_0x1fa6ec=>this[_0x597d35(0x221)][_0x597d35(0xa4)][_0x597d35(0x26a)](_0x1fa6ec),'parseAttachments':parseRunnerImageAttachments,'materialize':(_0x50a2db,_0x44b1df)=>this[_0x597d35(0x22d)][_0x597d35(0xd8)](_0x50a2db,_0x44b1df),'completeCancelled':_0x1520af=>this[_0x597d35(0x25b)][_0x597d35(0x220)](_0x1520af),'promoteSession':(_0xac5425,_0x191c25)=>this[_0x597d35(0x158)][_0x597d35(0xd0)](_0xac5425,_0x191c25),'send':(_0xc59d07,_0x253026)=>this[_0x597d35(0x22e)](_0xc59d07,_0x253026),'emit':(_0x4e68bb,_0x26eaed,_0x424bd7,_0x33332f)=>this[_0x597d35(0xb2)][_0x597d35(0x25e)](_0x4e68bb,_0x26eaed,_0x424bd7,_0x33332f),'cancel':(_0x36cbd2,_0x1c4f08,_0x32f0a1,_0x233e90,_0x31b230)=>this[_0x597d35(0x25b)][_0x597d35(0x20d)](_0x36cbd2,_0x1c4f08,_0x32f0a1,_0x233e90,_0x31b230),'createApproval':_0x3f9a72=>this[_0x597d35(0x26d)][_0x597d35(0x1a2)](_0x3f9a72),'publishApproval':_0x5aad25=>this[_0x597d35(0xb2)][_0x597d35(0x17c)](_0x5aad25),'emitItem':(_0x46fb25,_0x2ce52c)=>this[_0x597d35(0x165)](_0x46fb25,_0x2ce52c),'appendImages':(_0x1eaa91,_0x162f6d)=>this[_0x597d35(0x22d)][_0x597d35(0x122)](_0x1eaa91,_0x162f6d[_0x597d35(0x13e)](isRunnerImageAttachment)),'syncTitle':(_0x4c50a1,_0x85f732,_0x1b62d8)=>this[_0x597d35(0x137)][_0x597d35(0x24c)](_0x4c50a1,_0x85f732,_0x1b62d8),'commandState':(_0x8f3fda,_0x51186b)=>this[_0x597d35(0x202)][_0x597d35(0x1de)](_0x8f3fda,_0x51186b),'setCommandState':(_0x34b03a,_0x1f61c2)=>this[_0x597d35(0x202)][_0x597d35(0x149)](_0x34b03a,_0x1f61c2),'clearCommandState':(_0x22450b,_0x4e0f50)=>this[_0x597d35(0x202)][_0x597d35(0x180)](_0x22450b,_0x4e0f50),'commandStates':_0x225d93=>this[_0x597d35(0x202)][_0x597d35(0xb1)](_0x225d93),'hasActiveSessionLease':_0x3cfbf4=>this[_0x597d35(0x26d)][_0x597d35(0x244)](_0x3cfbf4),'fast':_0x5accf3=>this[_0x597d35(0x271)](_0x597d35(0xaa),{'runner':_0x597d35(0x1cb),'commandId':_0x597d35(0x251),'input':_0x5accf3})}),this[_0x597d35(0x15e)][_0x597d35(0x21a)](_0x27f24d=>this[_0x597d35(0x11e)][_0x597d35(0x1c1)](_0x27f24d)),this[_0x597d35(0xef)]=new ClaudeCodeRunner(_0x1a7607[_0x597d35(0xef)]),this[_0x597d35(0x1bb)]=new OpenCodeRunner(_0x1a7607[_0x597d35(0x1bb)]),this[_0x597d35(0x1da)]=new MarAgentRunner(),this[_0x597d35(0x18d)]=new MarAgentManagedRunController(this[_0x597d35(0x1da)],{'active':this[_0x597d35(0x221)][_0x597d35(0x10d)],'adopt':_0x5cc897=>this[_0x597d35(0x26d)][_0x597d35(0x20a)](_0x5cc897),'promote':(_0x9bf29b,_0x4e0b9d)=>this[_0x597d35(0x158)][_0x597d35(0xd0)](_0x9bf29b,_0x4e0b9d),'syncTitle':(_0x54d281,_0x4880c9)=>this[_0x597d35(0x137)][_0x597d35(0x24c)](_0x54d281,_0x54d281,_0x4880c9),'emit':(_0xc70b03,_0x301d52,_0x470cc8,_0x393f98)=>this[_0x597d35(0xb2)][_0x597d35(0x25e)](_0xc70b03,_0x301d52,_0x470cc8,_0x393f98),'emitItem':(_0x38beee,_0x5a8b51)=>this[_0x597d35(0x165)](_0x38beee,_0x5a8b51),'createApproval':_0x174898=>this[_0x597d35(0x26d)][_0x597d35(0x1a2)](_0x174898),'publishApproval':_0x1267dc=>this[_0x597d35(0xb2)][_0x597d35(0x17c)](_0x1267dc),'run':_0x2a6adb=>this[_0x597d35(0x26d)][_0x597d35(0x1fc)](_0x2a6adb),'commandState':(_0x12cda2,_0x151f51)=>this[_0x597d35(0x202)][_0x597d35(0x1de)](_0x12cda2,_0x151f51),'setCommandState':(_0x48d2c3,_0x428bac)=>this[_0x597d35(0x202)][_0x597d35(0x149)](_0x48d2c3,_0x428bac),'clearCommandState':(_0xf80806,_0x42660d)=>this[_0x597d35(0x202)][_0x597d35(0x180)](_0xf80806,_0x42660d),'commandStates':_0xe07a6a=>this[_0x597d35(0x202)][_0x597d35(0xb1)](_0xe07a6a),'webSearch':(_0x54d761,_0x56f84a)=>this[_0x597d35(0xca)](_0x54d761,_0x56f84a)},{'modelFactory':this[_0x597d35(0x152)]}),this[_0x597d35(0x1da)][_0x597d35(0x1b4)](_0x50f2f8=>this[_0x597d35(0x18d)][_0x597d35(0x101)](_0x50f2f8)),this[_0x597d35(0x16b)]=new OpenCodeManagedRunController(this[_0x597d35(0x1bb)],{'intercepted':()=>this[_0x597d35(0x1ca)]!==undefined,'active':this[_0x597d35(0x221)][_0x597d35(0x10d)],'parseAttachments':parseRunnerImageAttachments,'persistAttachments':(_0x2e3dec,_0x434ddd,_0x3c8bb2)=>this[_0x597d35(0x22d)][_0x597d35(0x193)](_0x2e3dec,_0x434ddd+_0x597d35(0x169),_0x3c8bb2),'emit':(_0x2087ac,_0x1b565c,_0x1bdd4e,_0x2169aa)=>this[_0x597d35(0xb2)][_0x597d35(0x25e)](_0x2087ac,_0x1b565c,_0x1bdd4e,_0x2169aa),'emitItem':(_0xadb4b7,_0x1c19e0)=>this[_0x597d35(0x165)](_0xadb4b7,_0x1c19e0),'adopt':_0x371ec1=>this[_0x597d35(0x26d)][_0x597d35(0x20a)](_0x371ec1),'run':_0x26f467=>{const _0xa28b8b=_0x597d35,_0x21511f=this[_0xa28b8b(0x26d)][_0xa28b8b(0x1fc)](_0x26f467);if(_0x21511f===undefined)throw new Error(_0xa28b8b(0x11a));return _0x21511f;},'hasActiveSessionLease':_0x555b9e=>this[_0x597d35(0x26d)][_0x597d35(0x244)](_0x555b9e),'promote':(_0xe1b6d0,_0x44c0f1)=>this[_0x597d35(0x158)][_0x597d35(0xd0)](_0xe1b6d0,_0x44c0f1),'rememberNative':(_0x57a902,_0x3920ec)=>this[_0x597d35(0x137)][_0x597d35(0x18f)](_0x57a902,_0x3920ec),'send':(_0x14a918,_0x3e7a4a)=>this[_0x597d35(0x22e)](_0x14a918,_0x3e7a4a),'createApproval':_0x88f350=>this[_0x597d35(0x26d)][_0x597d35(0x1a2)](_0x88f350),'expireApproval':_0x2cd636=>{const _0x41a4ae=_0x597d35;this[_0x41a4ae(0x26d)][_0x41a4ae(0x1c4)](_0x2cd636);},'publishApproval':_0x59f7d4=>this[_0x597d35(0xb2)][_0x597d35(0x17c)](_0x59f7d4),'commandState':(_0x2e6cf2,_0x16edb6)=>this[_0x597d35(0x202)][_0x597d35(0x1de)](_0x2e6cf2,_0x16edb6),'setCommandState':(_0x43c079,_0x37ca78)=>this[_0x597d35(0x202)][_0x597d35(0x149)](_0x43c079,_0x37ca78),'clearCommandState':(_0x24f7fa,_0x38c8d1)=>this[_0x597d35(0x202)][_0x597d35(0x180)](_0x24f7fa,_0x38c8d1),'commandStates':_0x407e39=>this[_0x597d35(0x202)][_0x597d35(0xb1)](_0x407e39)},this[_0x597d35(0x142)]),this[_0x597d35(0x225)]=new ClaudeManagedRunController(this[_0x597d35(0xef)],{'intercepted':()=>this[_0x597d35(0x1ca)]!==undefined,'active':this[_0x597d35(0x221)][_0x597d35(0x10d)],'parseAttachments':parseRunnerImageAttachments,'emit':(_0x470696,_0x33c76f,_0x575904,_0x2a85a1)=>this[_0x597d35(0xb2)][_0x597d35(0x25e)](_0x470696,_0x33c76f,_0x575904,_0x2a85a1),'adopt':_0x53caff=>this[_0x597d35(0x26d)][_0x597d35(0x20a)](_0x53caff),'run':_0x34ea57=>this[_0x597d35(0x26d)][_0x597d35(0x1fc)](_0x34ea57),'hasActiveSessionLease':_0x49dd34=>this[_0x597d35(0x26d)][_0x597d35(0x244)](_0x49dd34),'session':_0x55336d=>this[_0x597d35(0x26d)][_0x597d35(0x17b)](_0x55336d),'completeCancelled':_0x5e9e75=>this[_0x597d35(0x25b)][_0x597d35(0x220)](_0x5e9e75),'requestUserInput':(_0x2ee963,_0x2130e6,_0x4315ff)=>this[_0x597d35(0x25b)][_0x597d35(0xf0)](_0x2ee963,_0x2130e6,_0x4315ff),'requestApproval':(_0x14ca28,_0x34a630,_0x597d26)=>this[_0x597d35(0x25b)][_0x597d35(0x135)](_0x14ca28,_0x34a630,_0x597d26),'rememberNative':(_0x36aec8,_0x4681d3)=>this[_0x597d35(0x137)][_0x597d35(0x18f)](_0x36aec8,_0x4681d3),'promote':(_0x167f96,_0x343f0e)=>this[_0x597d35(0x158)][_0x597d35(0xd0)](_0x167f96,_0x343f0e),'send':(_0xc4bc37,_0x44a89e)=>this[_0x597d35(0x22e)](_0xc4bc37,_0x44a89e),'emitItem':(_0x1b8f62,_0x7195f7)=>this[_0x597d35(0x165)](_0x1b8f62,_0x7195f7),'syncTitle':(_0x433be7,_0x194470,_0x49bad1)=>this[_0x597d35(0x137)][_0x597d35(0x24c)](_0x433be7,_0x194470,_0x49bad1),'setChannelToken':(_0x128119,_0x54d32f)=>this[_0x597d35(0x26d)][_0x597d35(0x176)](_0x128119,_0x54d32f),'commandState':(_0x19d515,_0x40cd2a)=>this[_0x597d35(0x202)][_0x597d35(0x1de)](_0x19d515,_0x40cd2a),'setCommandState':(_0x3d6633,_0x3bde3a)=>this[_0x597d35(0x202)][_0x597d35(0x149)](_0x3d6633,_0x3bde3a),'clearCommandState':(_0x1586f4,_0x235673)=>this[_0x597d35(0x202)][_0x597d35(0x180)](_0x1586f4,_0x235673),'commandStates':_0x565de5=>this[_0x597d35(0x202)][_0x597d35(0xb1)](_0x565de5)}),this[_0x597d35(0x228)]=new RunnerRegistry([this[_0x597d35(0x1bb)],this[_0x597d35(0x1da)],this[_0x597d35(0x15e)],this[_0x597d35(0xef)],...this[_0x597d35(0x1ca)]===undefined?[]:[this[_0x597d35(0x1ca)]]]),this[_0x597d35(0x137)]=new ManagedRunnerSessionService(this[_0x597d35(0x26d)],this[_0x597d35(0x228)],_0x3a8664=>this[_0x597d35(0x209)]({'session':this[_0x597d35(0x1af)][_0x597d35(0x226)](_0x3a8664)})),this[_0x597d35(0x25b)]=new RunnerInteractionService({'runtime':this[_0x597d35(0x26d)],'state':this[_0x597d35(0x221)],'codex':()=>this[_0x597d35(0x15e)],'claude':()=>this[_0x597d35(0xef)],'runners':this[_0x597d35(0x228)],'emitRun':(_0x54a7e1,_0x43e948,_0x43f0eb,_0x390d0b)=>this[_0x597d35(0xb2)][_0x597d35(0x25e)](_0x54a7e1,_0x43e948,_0x43f0eb,_0x390d0b),'emitItem':(_0x29c381,_0x172991)=>this[_0x597d35(0x165)](_0x29c381,_0x172991),'approvalTimeoutMs':this[_0x597d35(0x142)],'publishApproval':_0x6c6e38=>this[_0x597d35(0xb2)][_0x597d35(0x17c)](_0x6c6e38)}),this[_0x597d35(0x1d9)]=new RunnerChannelMessageService({'interactions':this[_0x597d35(0x25b)],'send':(_0x3cc049,_0x4b6b98,_0x2aed2b)=>this[_0x597d35(0x22e)](_0x3cc049,_0x4b6b98,_0x2aed2b)}),this[_0x597d35(0x1af)]=new SessionPresentationService({'database':()=>this[_0x597d35(0x1f6)],'runtime':this[_0x597d35(0x26d)],'commands':this[_0x597d35(0x202)],'runners':this[_0x597d35(0x228)],'capabilities':()=>this[_0x597d35(0x1fe)],'hasManagedActiveRun':_0x3468f9=>hasManagedActiveRun(this[_0x597d35(0x26d)],_0x3468f9),'externalActivity':_0x1ce9ec=>this[_0x597d35(0x264)][_0x597d35(0x124)][_0x597d35(0x1de)](_0x1ce9ec),'projectionForNative':_0x522b82=>this[_0x597d35(0x1ab)][_0x597d35(0xa9)](_0x522b82)}),this[_0x597d35(0x1ab)]=new NativeSessionProjectionService({'database':()=>this[_0x597d35(0x1f6)],'nodeId':()=>this[_0x597d35(0x181)]?.[_0x597d35(0x22c)]??_0x597d35(0x191),'runtime':this[_0x597d35(0x26d)],'runners':this[_0x597d35(0x228)],'capabilities':()=>this[_0x597d35(0x1fe)],'state':this[_0x597d35(0x264)],'commands':this[_0x597d35(0x202)],'present':_0x4a591d=>this[_0x597d35(0x1af)][_0x597d35(0x226)](_0x4a591d)}),this[_0x597d35(0xe1)]=new ConversationHistoryService({'runtime':this[_0x597d35(0x26d)],'runners':this[_0x597d35(0x228)],'capabilities':()=>this[_0x597d35(0x1fe)],'attachments':this[_0x597d35(0x22d)],'snapshotSequence':()=>this[_0x597d35(0x1ec)][_0x597d35(0x272)](),'hasManagedActiveRun':_0x22e9c0=>hasManagedActiveRun(this[_0x597d35(0x26d)],_0x22e9c0),'setExternalActivity':(_0x1d6d12,_0x44792e)=>this[_0x597d35(0x264)][_0x597d35(0x124)][_0x597d35(0x149)](_0x1d6d12,_0x44792e)}),this[_0x597d35(0xea)]=new ConversationSegmentService((_0xbf8581,_0x577579)=>this[_0x597d35(0xe1)][_0x597d35(0x156)](_0xbf8581,_0x577579)),this[_0x597d35(0x198)]=new SessionContextService({'runners':this[_0x597d35(0x228)],'session':_0x5835d2=>this[_0x597d35(0x26d)][_0x597d35(0x17b)](_0x5835d2),'stopped':()=>this[_0x597d35(0x274)],'publish':_0x14f13a=>this[_0x597d35(0x209)](_0x14f13a)}),this[_0x597d35(0x140)]=new RunWorkbenchService({'runtime':this[_0x597d35(0x26d)],'readImage':async(_0x5447d2,_0x37c224)=>this[_0x597d35(0x22d)][_0x597d35(0x156)](_0x5447d2,_0x37c224)??await this[_0x597d35(0x22d)][_0x597d35(0x22a)](_0x5447d2,_0x37c224),'respondUserInput':(_0xd466f0,_0x244fdf,_0x5683dc)=>this[_0x597d35(0x25b)][_0x597d35(0x100)](_0xd466f0,_0x244fdf,_0x5683dc),'pauseQueue':_0x293212=>this[_0x597d35(0x241)][_0x597d35(0xc2)](_0x293212),'emitRun':(_0x5e5a36,_0x5b9d9b,_0x1c1f02,_0x3e3fd3)=>this[_0x597d35(0xb2)][_0x597d35(0x25e)](_0x5e5a36,_0x5b9d9b,_0x1c1f02,_0x3e3fd3),'control':(_0x98b596,_0x57f2b4)=>this[_0x597d35(0xd2)][_0x597d35(0x20c)](JSON[_0x597d35(0x24a)](createEnvelope(_0x98b596,_0x57f2b4))),'markInterrupted':_0x282756=>this[_0x597d35(0x221)][_0x597d35(0xa4)][_0x597d35(0x131)](_0x282756)}),this[_0x597d35(0x183)]=new SessionQueryService({'runtime':this[_0x597d35(0x26d)],'runners':this[_0x597d35(0x228)],'resolve':_0x1ad1a3=>this[_0x597d35(0x1ab)][_0x597d35(0x162)](_0x1ad1a3),'present':_0x4c7ea7=>this[_0x597d35(0x1af)][_0x597d35(0x226)](_0x4c7ea7),'history':(_0x84116e,_0x1c3c7f)=>this[_0x597d35(0xe1)][_0x597d35(0x156)](_0x84116e,_0x1c3c7f),'segments':(_0x2b10b9,_0x3447e5)=>this[_0x597d35(0xea)][_0x597d35(0x156)](_0x2b10b9,_0x3447e5),'context':this[_0x597d35(0x198)],'discover':(_0x206275,_0x25bf5b)=>this[_0x597d35(0x1ab)][_0x597d35(0xff)](_0x206275,_0x25bf5b),'workspaceIdForCwd':_0x53a44e=>this[_0x597d35(0x1f6)]?.[_0x597d35(0x270)]()[_0x597d35(0xc3)](_0x4aad03=>_0x4aad03[_0x597d35(0x23a)]===_0x53a44e)?.['id']}),this[_0x597d35(0x1b3)]=new ContinuousRunCoordinator({'runtime':this[_0x597d35(0x26d)],'emitQueue':(_0x1e710a,_0xb22e5e)=>this[_0x597d35(0xb2)][_0x597d35(0x150)](_0x1e710a,_0xb22e5e),'clearImages':_0x57d9ae=>this[_0x597d35(0x22d)][_0x597d35(0x180)](_0x57d9ae),'cleanupAttachments':_0x341fda=>this[_0x597d35(0x22d)][_0x597d35(0x170)](_0x341fda),'migrateAssets':(_0x4da1ea,_0x55e9cf)=>this[_0x597d35(0x22d)][_0x597d35(0x268)](_0x4da1ea,_0x55e9cf),'emitRun':(_0xf038dc,_0x149992,_0x10ae69,_0x3ffa57)=>this[_0x597d35(0xb2)][_0x597d35(0x25e)](_0xf038dc,_0x149992,_0x10ae69,_0x3ffa57),'emitConversation':_0x913670=>this[_0x597d35(0x172)](_0x913670),'control':(_0x5662f8,_0x42687b)=>this[_0x597d35(0xd2)][_0x597d35(0x20c)](JSON[_0x597d35(0x24a)](createEnvelope(_0x5662f8,_0x42687b))),'stopped':()=>this[_0x597d35(0x274)],'markInterrupted':_0x1b58a1=>this[_0x597d35(0x221)][_0x597d35(0xa4)][_0x597d35(0x131)](_0x1b58a1),'mcps':_0x425085=>this[_0x597d35(0x1f6)]?.[_0x597d35(0x1e8)](_0x425085)??[],'afterExecutionStarted':async _0x54f8b9=>{const _0x198fd7=_0x597d35;if(_0x54f8b9[_0x198fd7(0x102)]===undefined)return;const _0x7edd79=this[_0x198fd7(0xc9)][_0x198fd7(0x1de)](_0x54f8b9[_0x198fd7(0x1b6)]);if(_0x7edd79?.[_0x198fd7(0x134)]!==_0x198fd7(0x10d)||_0x7edd79['id']!==_0x54f8b9[_0x198fd7(0x102)]['id']||_0x7edd79[_0x198fd7(0x249)]!==_0x54f8b9[_0x198fd7(0x102)][_0x198fd7(0x249)])return;const _0x8a5e4d=this[_0x198fd7(0xc9)][_0x198fd7(0x19b)](_0x54f8b9[_0x198fd7(0x1b6)]),_0x4c94eb=this[_0x198fd7(0x26d)][_0x198fd7(0x17b)](_0x54f8b9[_0x198fd7(0x1b6)]);if(_0x8a5e4d!==undefined&&_0x4c94eb!==undefined)this[_0x198fd7(0xe7)](_0x4c94eb,_0x8a5e4d);await this[_0x198fd7(0x13a)]({'sessionId':_0x54f8b9[_0x198fd7(0x1b6)],'mission':{'id':_0x7edd79['id'],'revision':_0x7edd79[_0x198fd7(0x249)]},'secretEnvironment':_0x54f8b9[_0x198fd7(0x260)],..._0x54f8b9[_0x198fd7(0x197)]===undefined?{}:{'personalInstructions':_0x54f8b9[_0x198fd7(0x197)]}});},'missionMcp':async _0x319f81=>{const _0x158234=_0x597d35;if(_0x319f81[_0x158234(0x102)]===undefined)throw new Error(_0x158234(0x21f));const _0x43dfbc=await this[_0x158234(0x1c7)][_0x158234(0x1f4)]({'executionId':_0x319f81[_0x158234(0x155)],'sessionId':_0x319f81[_0x158234(0x1b6)],'missionId':_0x319f81[_0x158234(0x102)]['id'],'revision':_0x319f81[_0x158234(0x102)][_0x158234(0x249)]});return{'installation':{'targetKind':_0x158234(0x160),'targetId':_0x319f81[_0x158234(0x15d)],'catalogEntryId':_0x158234(0x153),'serverName':_0x158234(0x18b),'displayName':_0x158234(0x203),'version':_0x158234(0x230),'enabled':!![],'runtime':{'transport':_0x158234(0x26e),'url':_0x158234(0xc8),'headers':{}},'configuration':_0x43dfbc[_0x158234(0x1f4)],'installedAt':Date[_0x158234(0x259)](),..._0x43dfbc[_0x158234(0x1f4)]},'secrets':_0x43dfbc[_0x158234(0xb7)]};}}),this[_0x597d35(0x241)]=new WorkspaceQueueWorkbenchService({'runtime':this[_0x597d35(0x26d)],'coordinator':this[_0x597d35(0x1b3)],'emit':(_0x5ec7f1,_0x288793)=>this[_0x597d35(0xb2)][_0x597d35(0x150)](_0x5ec7f1,_0x288793),'prepareInput':(_0x12d430,_0x45ffce,_0x4d81d5)=>this[_0x597d35(0x228)][_0x597d35(0x17f)](_0x12d430)[_0x597d35(0x1a6)](_0x45ffce,_0x4d81d5)}),this[_0x597d35(0x158)]=new SessionIdentityService({'runtime':this[_0x597d35(0x26d)],'persist':(_0x27cef3,_0x3ffd2e)=>{const _0x496629=_0x597d35;if(_0x27cef3[_0x496629(0x168)]===null||_0x27cef3[_0x496629(0x107)]===null||_0x27cef3[_0x496629(0x267)]===null)return;this[_0x496629(0x1f6)]?.[_0x496629(0x184)]({'runner':_0x27cef3[_0x496629(0xbb)],'externalSessionId':_0x3ffd2e,'workspaceId':_0x27cef3[_0x496629(0x15d)],'model':_0x27cef3[_0x496629(0x168)],'effort':_0x27cef3[_0x496629(0x107)],'access':_0x27cef3[_0x496629(0x267)]});},'migrateCommands':(_0x41d230,_0x4074bd)=>this[_0x597d35(0x202)][_0x597d35(0x18e)](_0x41d230,_0x4074bd),'migrateMission':(_0x345a9a,_0x2de7a3)=>{const _0x57e6d6=_0x597d35;this[_0x57e6d6(0xc9)][_0x57e6d6(0xaf)](_0x345a9a,_0x2de7a3),this[_0x57e6d6(0x1c7)][_0x57e6d6(0xaf)](_0x345a9a,_0x2de7a3);const _0x2a59bb=this[_0x57e6d6(0x216)][_0x57e6d6(0x1de)](_0x345a9a);_0x2a59bb!==undefined&&(this[_0x57e6d6(0x216)][_0x57e6d6(0x19c)](_0x345a9a),_0x2a59bb[_0x57e6d6(0x1b6)]=_0x2de7a3,this[_0x57e6d6(0x216)][_0x57e6d6(0x149)](_0x2de7a3,_0x2a59bb));const _0x40a30c=this[_0x57e6d6(0xe9)][_0x57e6d6(0x1de)](_0x345a9a);_0x40a30c!==undefined&&(this[_0x57e6d6(0xe9)][_0x57e6d6(0x19c)](_0x345a9a),this[_0x57e6d6(0xe9)][_0x57e6d6(0x149)](_0x2de7a3,_0x40a30c));},'migrateQueue':(_0x339d40,_0x58cbdd)=>this[_0x597d35(0x1b3)][_0x597d35(0xaf)](_0x339d40,_0x58cbdd),'migrateRunnerState':(_0x351e8d,_0x5bd53c)=>this[_0x597d35(0xb2)][_0x597d35(0x1b7)](_0x351e8d,_0x5bd53c),'emitSession':_0x1d5e60=>this[_0x597d35(0x209)]({'session':_0x1d5e60}),'emitRun':_0x54a07b=>this[_0x597d35(0xf1)](_0x597d35(0x120),{'run':_0x54a07b}),'emitQueue':_0x4e60b7=>this[_0x597d35(0x1b3)][_0x597d35(0xbf)](_0x4e60b7),'emitTurn':_0x3e748b=>this[_0x597d35(0x172)](_0x3e748b)}),this[_0x597d35(0xb0)]=new SessionLifecycleService({'database':()=>{const _0x246a2a=_0x597d35;if(this[_0x246a2a(0x1f6)]===undefined)throw new Error(_0x246a2a(0x218));return this[_0x246a2a(0x1f6)];},'runtime':this[_0x597d35(0x26d)],'runners':this[_0x597d35(0x228)],'projection':this[_0x597d35(0x1ab)],'identity':this[_0x597d35(0x158)],'present':_0x3b972e=>this[_0x597d35(0x1af)][_0x597d35(0x226)](_0x3b972e),'emitSession':_0x24df4c=>this[_0x597d35(0x209)]({'session':this[_0x597d35(0x1af)][_0x597d35(0x226)](_0x24df4c)}),'execute':(_0x2f1a67,_0x16799b)=>this[_0x597d35(0x271)](_0x2f1a67,_0x16799b),'interceptedSessionId':_0x381680=>this[_0x597d35(0x1ca)]===undefined?undefined:_0x597d35(0x1dc)+_0x381680}),this[_0x597d35(0x187)]=new ExternalSessionResumeService({'runtime':this[_0x597d35(0x26d)],'runners':this[_0x597d35(0x228)],'state':this[_0x597d35(0x264)],'available':_0x20c1cb=>this[_0x597d35(0x228)][_0x597d35(0x17f)](_0x20c1cb)[_0x597d35(0x213)](this[_0x597d35(0x1fe)]),'projectionFor':_0x23426b=>this[_0x597d35(0x1ab)][_0x597d35(0xa9)](_0x23426b),'managedAliasFor':_0xb9e86=>this[_0x597d35(0x1ab)][_0x597d35(0x24e)](_0xb9e86),'ensureConfiguration':_0x4dc9bc=>this[_0x597d35(0x1ab)][_0x597d35(0x233)](_0x4dc9bc),'configuration':_0x219557=>this[_0x597d35(0x1ab)][_0x597d35(0xc6)](_0x219557),'workspacePath':_0x3e408f=>this[_0x597d35(0x1f6)]?.[_0x597d35(0xc4)](_0x3e408f)?.[_0x597d35(0x23a)],'rememberNative':(_0x4e33e1,_0x1d4222)=>this[_0x597d35(0x137)][_0x597d35(0x18f)](_0x4e33e1,_0x1d4222),'stage':_0x44fe84=>{const _0x5ef4c4=_0x597d35,_0x207225=this[_0x5ef4c4(0x1ab)][_0x5ef4c4(0xc6)](_0x44fe84);return this[_0x5ef4c4(0x26d)][_0x5ef4c4(0xdb)]({'workspaceId':_0x44fe84[_0x5ef4c4(0x15d)],'runner':_0x44fe84[_0x5ef4c4(0xbb)],'externalSessionId':_0x44fe84[_0x5ef4c4(0x145)]??_0x44fe84['id'],'nativeControl':_0x5ef4c4(0x17a),'cwd':_0x44fe84[_0x5ef4c4(0x132)],'model':_0x207225[_0x5ef4c4(0x168)],'effort':_0x207225[_0x5ef4c4(0x107)],'access':_0x207225[_0x5ef4c4(0x267)],..._0x44fe84[_0x5ef4c4(0xd9)]===null?{}:{'title':_0x44fe84[_0x5ef4c4(0xd9)]},..._0x44fe84[_0x5ef4c4(0x13c)]===null?{}:{'customTitle':_0x44fe84[_0x5ef4c4(0x13c)]}});},'resolve':_0x320892=>this[_0x597d35(0x1ab)][_0x597d35(0x162)](_0x320892)}),this[_0x597d35(0x1d5)]=new SessionCommandService({'runtime':this[_0x597d35(0x26d)],'runners':this[_0x597d35(0x228)],'projection':this[_0x597d35(0x1ab)],'resume':this[_0x597d35(0x187)],'profiles':()=>this[_0x597d35(0x16c)][_0x597d35(0x1ba)](),'present':_0xb5403f=>this[_0x597d35(0x1af)][_0x597d35(0x226)](_0xb5403f),'resumeQueueAfterCommandRun':_0xa39433=>this[_0x597d35(0x241)][_0x597d35(0x19d)](_0xa39433),'beginMission':_0xfea39f=>{const _0x2302f6=_0x597d35,_0x12bb60=this[_0x2302f6(0x202)][_0x2302f6(0x1de)](_0xfea39f['id'],_0x2302f6(0x102));if(_0x12bb60?.[_0x2302f6(0x10d)]===!![])return{'session':this[_0x2302f6(0x1af)][_0x2302f6(0x226)](_0xfea39f),'missionAlreadyActive':!![]};_0x12bb60!==undefined&&(this[_0x2302f6(0xc9)][_0x2302f6(0x180)](_0xfea39f['id']),this[_0x2302f6(0x202)][_0x2302f6(0x180)](_0xfea39f['id'],_0x2302f6(0x102)));const _0x1e3924=this[_0x2302f6(0x186)](_0xfea39f);return this[_0x2302f6(0x1b3)][_0x2302f6(0x111)](_0xfea39f['id']),this[_0x2302f6(0x202)][_0x2302f6(0x149)](_0xfea39f['id'],this[_0x2302f6(0x196)]()),this[_0x2302f6(0xf1)](_0x2302f6(0xe8),{'session':this[_0x2302f6(0x1af)][_0x2302f6(0x226)](_0x1e3924[_0x2302f6(0xe8)])}),{'session':this[_0x2302f6(0x1af)][_0x2302f6(0x226)](_0x1e3924[_0x2302f6(0xe8)]),'missionAccessChanged':_0x1e3924[_0x2302f6(0x1b1)]};},'mission':async({session:_0x4c8745,objective:_0x265bbd,secretEnvironment:_0x1c90ad,personalInstructions:_0x4b2d81})=>{const _0x20459a=_0x597d35;this[_0x20459a(0x246)](_0x4c8745['id']);const _0x2dc72c=this[_0x20459a(0x186)](_0x4c8745),_0xde52a4=_0x2dc72c[_0x20459a(0xe8)],_0x36f21d=this[_0x20459a(0xc9)][_0x20459a(0x1de)](_0x4c8745['id'])?.[_0x20459a(0x134)]===_0x20459a(0x10d);this[_0x20459a(0x1b3)][_0x20459a(0x1b0)](_0x4c8745['id']);const _0x2f460a=this[_0x20459a(0xc9)][_0x20459a(0x1f2)](_0x4c8745['id'],_0x265bbd);this[_0x20459a(0xe7)](_0xde52a4,_0x2f460a);const _0x1203ad=await this[_0x20459a(0xde)][_0x20459a(0xb9)]({'sessionId':_0x4c8745['id'],'kind':_0x20459a(0x1f2),'content':this[_0x20459a(0xc9)][_0x20459a(0x14b)](_0x4c8745['id'],_0x20459a(0x1f2)),'deliveryIntent':_0x36f21d?_0x20459a(0xe4):_0x20459a(0x255),'mission':{'id':_0x2f460a['id'],'revision':_0x2f460a[_0x20459a(0x249)]},'secretEnvironment':_0x1c90ad,..._0x4b2d81===undefined?{}:{'personalInstructions':_0x4b2d81}});return{...isPlainRecord(_0x1203ad)?_0x1203ad:{'result':_0x1203ad},'missionAccessChanged':_0x2dc72c[_0x20459a(0x1b1)]};},'clearMission':_0x5b2352=>{const _0x20e60f=_0x597d35;return this[_0x20e60f(0x246)](_0x5b2352['id']),this[_0x20e60f(0xc9)][_0x20e60f(0x180)](_0x5b2352['id']),this[_0x20e60f(0x1b3)][_0x20e60f(0x1b0)](_0x5b2352['id']),this[_0x20e60f(0x11b)](_0x5b2352['id'],_0x20e60f(0x113)),this[_0x20e60f(0x202)][_0x20e60f(0x180)](_0x5b2352['id'],_0x20e60f(0x102)),this[_0x20e60f(0xf1)](_0x20e60f(0xe8),{'session':this[_0x20e60f(0x1af)][_0x20e60f(0x226)](_0x5b2352)}),{'session':this[_0x20e60f(0x1af)][_0x20e60f(0x226)](_0x5b2352),'cleared':!![]};}}),this[_0x597d35(0xde)]=new SessionMessageService({'runtime':this[_0x597d35(0x26d)],'uploads':this[_0x597d35(0xfc)],'attachments':this[_0x597d35(0x22d)],'commands':this[_0x597d35(0x202)],'coordinator':this[_0x597d35(0x1b3)],'runners':this[_0x597d35(0x228)],'resolve':_0x2e029c=>this[_0x597d35(0x187)][_0x597d35(0xeb)](_0x2e029c),'present':_0x3a265f=>this[_0x597d35(0x1af)][_0x597d35(0x226)](_0x3a265f),'emitSession':_0x2a3d2d=>this[_0x597d35(0x209)]({'session':this[_0x597d35(0x1af)][_0x597d35(0x226)](_0x2a3d2d)}),'channelToken':_0x53f4da=>{const _0x162b40=_0x597d35,_0x3c2606=this[_0x162b40(0x26d)][_0x162b40(0x17b)](_0x53f4da);return _0x3c2606?.[_0x162b40(0xf4)]??undefined;},'missionMessage':(_0x1f7c6e,_0xe434ae)=>{const _0x1124f6=_0x597d35,_0x5c14e2=this[_0x1124f6(0x202)][_0x1124f6(0x1de)](_0x1f7c6e['id'],_0x1124f6(0x102));if(_0x5c14e2?.[_0x1124f6(0x10d)]!==!![])return undefined;const _0x2eb2b1=this[_0x1124f6(0xc9)][_0x1124f6(0x1de)](_0x1f7c6e['id']);if(_0x2eb2b1?.[_0x1124f6(0x134)]===_0x1124f6(0x10d))return{'runnerContent':_0xe434ae,'mission':{'id':_0x2eb2b1['id'],'revision':_0x2eb2b1[_0x1124f6(0x249)]},'activated':![]};const _0xce5633=this[_0x1124f6(0xc9)][_0x1124f6(0x1f2)](_0x1f7c6e['id'],_0xe434ae);return this[_0x1124f6(0xe7)](_0x1f7c6e,_0xce5633),{'runnerContent':this[_0x1124f6(0xc9)][_0x1124f6(0x14b)](_0x1f7c6e['id'],_0x1124f6(0x1f2)),'mission':{'id':_0xce5633['id'],'revision':_0xce5633[_0x1124f6(0x249)]},'activated':!![]};},'prepareMissionInsertion':(_0x6087b7,_0x19a1a6)=>this[_0x597d35(0x1b3)][_0x597d35(0x111)](_0x6087b7,_0x19a1a6),'missionPreparationFailed':(_0x791bc2,_0x541eee,_0x1afa66)=>{const _0x1ea761=_0x597d35;if(!_0x1afa66)return;const _0x3976f3=this[_0x1ea761(0xc9)][_0x1ea761(0x1de)](_0x791bc2['id']);if(_0x3976f3?.['id']!==_0x541eee['id']||_0x3976f3[_0x1ea761(0x249)]!==_0x541eee[_0x1ea761(0x249)])return;this[_0x1ea761(0xc9)][_0x1ea761(0x180)](_0x791bc2['id']),this[_0x1ea761(0x11b)](_0x791bc2['id'],_0x1ea761(0x1fb)),this[_0x1ea761(0x202)][_0x1ea761(0x149)](_0x791bc2['id'],this[_0x1ea761(0x196)]()),this[_0x1ea761(0xf1)](_0x1ea761(0xe8),{'session':this[_0x1ea761(0x1af)][_0x1ea761(0x226)](_0x791bc2)});}}),this[_0x597d35(0x163)]=new SessionCatalogService({'database':()=>{const _0x2e476a=_0x597d35;if(this[_0x2e476a(0x1f6)]===undefined)throw new Error(_0x2e476a(0x218));return this[_0x2e476a(0x1f6)];},'nodeId':()=>this[_0x597d35(0x181)]?.[_0x597d35(0x22c)]??_0x597d35(0x191),'runtime':this[_0x597d35(0x26d)],'runners':this[_0x597d35(0x228)],'projection':this[_0x597d35(0x1ab)],'resume':this[_0x597d35(0x187)],'cachedNative':()=>[...this[_0x597d35(0x264)][_0x597d35(0x24b)][_0x597d35(0x1f0)]()],'cachedWorkspace':_0x5d0f33=>this[_0x597d35(0x1c6)][_0x597d35(0xc5)](_0x5d0f33),'present':_0x55fa0c=>this[_0x597d35(0x1af)][_0x597d35(0x226)](_0x55fa0c),'projectionForNative':_0x2b8347=>this[_0x597d35(0x1ab)][_0x597d35(0xa9)](_0x2b8347),'nativeIds':_0x30c02c=>this[_0x597d35(0x1ab)][_0x597d35(0xa6)](_0x30c02c),'forget':(_0x158a87,_0x4294fa)=>this[_0x597d35(0x1ab)][_0x597d35(0x21c)](_0x158a87,_0x4294fa),'refreshActivity':_0x3332cb=>this[_0x597d35(0xe1)][_0x597d35(0xd4)](_0x3332cb),'externalActivity':_0x2a3c49=>this[_0x597d35(0x264)][_0x597d35(0x124)][_0x597d35(0x1de)](_0x2a3c49),'history':(_0x27c0be,_0x3ae6e7)=>this[_0x597d35(0xe1)][_0x597d35(0x156)](_0x27c0be,_0x3ae6e7),'emitSession':_0x17f074=>this[_0x597d35(0x209)]({'session':this[_0x597d35(0x1af)][_0x597d35(0x226)](_0x17f074)})}),this[_0x597d35(0x15e)][_0x597d35(0xab)]({'start':_0x405700=>this[_0x597d35(0x11e)][_0x597d35(0x1f2)](_0x405700),'cancel':(_0x49d585,_0x4964f3)=>{const _0xd8aad1=_0x597d35,_0x521019=this[_0xd8aad1(0x15e)][_0xd8aad1(0xf6)][_0xd8aad1(0x1db)][_0xd8aad1(0x1de)](_0x49d585);if(_0x521019?.[_0xd8aad1(0x266)]===undefined)return![];return void this[_0xd8aad1(0x25b)][_0xd8aad1(0x20d)](_0x49d585,_0x521019[_0xd8aad1(0x103)],_0x521019[_0xd8aad1(0x266)],_0x521019[_0xd8aad1(0x132)],_0x4964f3===_0xd8aad1(0x256)?_0xd8aad1(0xf3):_0xd8aad1(0x1ae)),!![];},'decideApproval':_0x3015e4=>this[_0x597d35(0x25b)][_0x597d35(0xcb)](_0x3015e4[_0x597d35(0xf2)],_0x3015e4[_0x597d35(0x1f9)])}),this[_0x597d35(0xef)][_0x597d35(0xab)]({'start':_0x345d60=>this[_0x597d35(0x225)][_0x597d35(0x1f2)](_0x345d60),'cancel':(_0x1f2fd6,_0x39efb3)=>this[_0x597d35(0x25b)][_0x597d35(0xbd)](_0x1f2fd6,_0x39efb3),'decideApproval':_0x2ba4be=>this[_0x597d35(0x25b)][_0x597d35(0x189)](_0x2ba4be[_0x597d35(0xf2)],_0x2ba4be[_0x597d35(0x1f9)])}),this[_0x597d35(0x1bb)][_0x597d35(0xab)]({'start':_0x68d47d=>this[_0x597d35(0x16b)][_0x597d35(0x1f2)](_0x68d47d),'cancel':(_0x25392c,_0x2ebef6)=>this[_0x597d35(0x16b)][_0x597d35(0xfd)](_0x25392c,_0x2ebef6),'decideApproval':_0x74cba8=>this[_0x597d35(0x16b)][_0x597d35(0x1ea)](_0x74cba8),'respondUserInput':(_0x5d62fc,_0xd2d923,_0x35ce88)=>this[_0x597d35(0x16b)][_0x597d35(0x100)](_0x5d62fc,_0xd2d923,_0x35ce88)}),this[_0x597d35(0x1da)][_0x597d35(0xab)]({'start':_0xc7a19e=>this[_0x597d35(0x18d)][_0x597d35(0x1f2)](_0xc7a19e),'cancel':(_0xcb0d7e,_0x97d736)=>this[_0x597d35(0x18d)][_0x597d35(0xfd)](_0xcb0d7e,_0x97d736),'decideApproval':_0x3884c7=>this[_0x597d35(0x18d)][_0x597d35(0x1ea)](_0x3884c7),'respondUserInput':(_0xb25bd5,_0x4776c0,_0x58422b)=>this[_0x597d35(0x18d)][_0x597d35(0x100)](_0xb25bd5,_0x4776c0,_0x58422b)}),this[_0x597d35(0x15e)][_0x597d35(0xdd)]({'execute':(_0x12960e,_0x154ced,_0x4f1cbf,_0x5f06b2)=>this[_0x597d35(0x11e)][_0x597d35(0xd1)](_0x12960e,_0x154ced,_0x4f1cbf,_0x5f06b2)}),this[_0x597d35(0xef)][_0x597d35(0xdd)]({'execute':(_0x42466e,_0x53e75e,_0x2d7426,_0x3fee97)=>this[_0x597d35(0x225)][_0x597d35(0xd1)](_0x42466e,_0x53e75e,_0x2d7426,_0x3fee97)}),this[_0x597d35(0x1bb)][_0x597d35(0xdd)]({'execute':(_0x15df7d,_0x56b19b,_0x1b56e0,_0x31f97c)=>this[_0x597d35(0x16b)][_0x597d35(0xd1)](_0x15df7d,_0x56b19b,_0x31f97c)}),this[_0x597d35(0x1da)][_0x597d35(0xdd)]({'execute':(_0x56c95d,_0x50bbbf,_0x7726a8,_0x421958)=>this[_0x597d35(0x18d)][_0x597d35(0xd1)](_0x56c95d,_0x50bbbf,_0x7726a8,_0x421958)});const _0x2dbe33=this[_0x597d35(0x1ca)]===undefined||this[_0x597d35(0xb3)]===undefined?undefined:new FakeManagedRunService({'runner':this[_0x597d35(0x1ca)],'script':this[_0x597d35(0xb3)],'runners':this[_0x597d35(0x228)],'runtime':this[_0x597d35(0x26d)],'state':this[_0x597d35(0x221)],'emitRun':(_0x43d859,_0x40e932,_0x63f945,_0x371ef9)=>this[_0x597d35(0xb2)][_0x597d35(0x25e)](_0x43d859,_0x40e932,_0x63f945,_0x371ef9),'publishApproval':_0x13138b=>this[_0x597d35(0xb2)][_0x597d35(0x17c)](_0x13138b),'disconnect':()=>this[_0x597d35(0x14e)][_0x597d35(0x26f)](-0x226a+0x17e3+0x9*0x2e9,_0x597d35(0x1e9))});this[_0x597d35(0x1ca)]?.[_0x597d35(0xab)]({'start':_0x351606=>_0x2dbe33?.[_0x597d35(0x1f2)](_0x351606),'cancel':(_0x4c08b5,_0x4ca76e)=>_0x4ca76e===_0x597d35(0x256)?this[_0x597d35(0x1ca)]?.[_0x597d35(0xfd)](_0x4c08b5)??![]:this[_0x597d35(0x1ca)]?.[_0x597d35(0x128)](_0x4c08b5)??![],'decideApproval':_0x58667b=>this[_0x597d35(0x1ca)]?.[_0x597d35(0xa3)](_0x58667b[_0x597d35(0x155)],_0x58667b[_0x597d35(0xf2)],_0x58667b[_0x597d35(0x1f9)])??![]}),this[_0x597d35(0x1e1)]=_0x1a7607[_0x597d35(0x1e1)]??new RunnerUsageReader(),this[_0x597d35(0x1f6)]=_0x1a7607[_0x597d35(0x1f6)],this[_0x597d35(0x148)]=_0x1a7607[_0x597d35(0x148)]??new TerminalManager({'platform':this[_0x597d35(0x1fe)][_0x597d35(0xb4)]===_0x597d35(0x269)?_0x597d35(0x1a3):_0x597d35(0x10a)}),this[_0x597d35(0x148)][_0x597d35(0x17e)](_0x347359=>this[_0x597d35(0x1c6)][_0x597d35(0x204)](_0x347359)),this[_0x597d35(0xdc)]=new NodeTerminalChannel({'config':()=>this[_0x597d35(0x181)],'controlConnected':()=>this[_0x597d35(0x14e)][_0x597d35(0xa1)](),'stopped':()=>this[_0x597d35(0x274)],'reconnect':this[_0x597d35(0x105)],'reconnectDelay':nextReconnectDelay,'manager':this[_0x597d35(0x148)]}),this[_0x597d35(0x14e)]=new NodeControlChannel({'config':()=>this[_0x597d35(0x181)],'capabilities':()=>this[_0x597d35(0x1fe)],'stopped':()=>this[_0x597d35(0x274)],'reconnect':this[_0x597d35(0x105)],'reconnectDelay':nextReconnectDelay,'onConnecting':_0x1eb8c0=>{const _0x4d1fe3=_0x597d35;this[_0x4d1fe3(0xdf)][_0x4d1fe3(0x1ff)](),nodeLog(_0x4d1fe3(0xa5),{'attempt':_0x1eb8c0});},'onReconnectScheduled':()=>this[_0x597d35(0xdf)][_0x597d35(0x247)](),'onMessage':_0x7db4d3=>this[_0x597d35(0xd3)](_0x7db4d3),'onClose':(_0x359ed2,_0x55ba34)=>{const _0x51225d=_0x597d35;this[_0x51225d(0x192)][_0x51225d(0x250)](),this[_0x51225d(0xdc)][_0x51225d(0x12d)]();if(_0x359ed2===0x90+-0x21dd*-0x1+-0x12cd&&_0x55ba34===_0x51225d(0x14a))nodeLog(_0x51225d(0x174),{'message':_0x51225d(0x1ce)});if(_0x359ed2===-0x69d*-0x2+0x31*-0xa3+0x3*0xb34||_0x359ed2===0xe2+-0x5f*-0x36+-0xd*0x14f)void this[_0x51225d(0x148)][_0x51225d(0xce)]();}}),this[_0x597d35(0xd2)]=new NodeControlMessageService({'config':()=>this[_0x597d35(0x181)],'register':(_0x1ddfd3,_0x2f70ea)=>this[_0x597d35(0x273)][_0x597d35(0x235)](_0x1ddfd3,_0x2f70ea),'connected':()=>this[_0x597d35(0x273)][_0x597d35(0xa1)](),'close':(_0x1c20a1,_0x1d8fdd)=>this[_0x597d35(0x14e)][_0x597d35(0x26f)](_0x1c20a1,_0x1d8fdd),'inspectWorkspace':_0x5a3f0a=>this[_0x597d35(0x1c6)][_0x597d35(0x16e)](_0x5a3f0a),'handleNodeRequest':_0x5785ce=>this[_0x597d35(0xcc)][_0x597d35(0x20c)](_0x5785ce),'handleRuntimeCredentialResponse':_0xf5ef29=>this[_0x597d35(0x192)][_0x597d35(0x20c)](_0xf5ef29),'reconcileRuns':_0x22c777=>this[_0x597d35(0xb2)][_0x597d35(0xe5)](_0x22c777),'runners':this[_0x597d35(0x228)],'deliverSessionChannelMessage':_0x267b7f=>this[_0x597d35(0x1d9)][_0x597d35(0x20c)](_0x267b7f),'completeUncontrolledCancellation':_0x2ad76b=>{const _0x38efc2=_0x597d35,_0x1b0bed=this[_0x38efc2(0x26d)][_0x38efc2(0x1fc)](_0x2ad76b);if(_0x1b0bed?.[_0x38efc2(0x134)]===_0x38efc2(0x1b5))this[_0x38efc2(0x25b)][_0x38efc2(0x220)](_0x2ad76b);},'send':(_0x1f7aa7,_0x3e27a3,_0x51e4a1)=>this[_0x597d35(0x22e)](_0x1f7aa7,_0x3e27a3,_0x51e4a1)}),this[_0x597d35(0xcc)]=new NodeRequestService({'nodeId':()=>this[_0x597d35(0x181)]?.[_0x597d35(0x22c)],'databaseAvailable':()=>this[_0x597d35(0x1f6)]!==undefined,'execute':(_0x28d387,_0x36ab0a)=>this[_0x597d35(0x271)](_0x28d387,_0x36ab0a),'send':(_0x516558,_0x42ad8f,_0x1f5922)=>this[_0x597d35(0x22e)](_0x516558,_0x42ad8f,_0x1f5922)}),this[_0x597d35(0x1c6)]=new NodeWorkspaceCoordinator({'config':()=>this[_0x597d35(0x181)],'database':()=>this[_0x597d35(0x1f6)],'watches':this[_0x597d35(0x13f)],'sessions':this[_0x597d35(0x1cd)],'changes':this[_0x597d35(0xe6)],'emit':(_0x3f67c5,_0x5e2661)=>void this[_0x597d35(0x166)]?.[_0x597d35(0x171)](_0x3f67c5,_0x5e2661),'send':(_0x26850c,_0x1795b0,_0x3b508c)=>this[_0x597d35(0x22e)](_0x26850c,_0x1795b0,_0x3b508c)}),this[_0x597d35(0xb2)]=new NodeRunEventBridge({'runtime':this[_0x597d35(0x26d)],'state':this[_0x597d35(0x221)],'events':this[_0x597d35(0xad)],'emitWorkbench':(_0x2e268c,_0x142f6c)=>this[_0x597d35(0x18a)](_0x2e268c,_0x142f6c),'queues':this[_0x597d35(0x241)],'codex':this[_0x597d35(0x15e)],'claude':this[_0x597d35(0xef)],'openCode':this[_0x597d35(0x1bb)],'send':(_0xa212e5,_0x113b43,_0x6f1865)=>this[_0x597d35(0x22e)](_0xa212e5,_0x113b43,_0x6f1865)}),this[_0x597d35(0x273)]=new NodeConnectionLifecycleService({'config':()=>this[_0x597d35(0x181)],'setConfig':_0x134165=>this[_0x597d35(0x181)]=_0x134165,'configPath':this[_0x597d35(0x194)],'capabilities':()=>this[_0x597d35(0x1fe)],'detectCapabilities':this[_0x597d35(0x16a)],'capabilitiesProvided':this[_0x597d35(0x1c3)],'stopped':()=>this[_0x597d35(0x274)],'setCapabilities':_0x201055=>this[_0x597d35(0x1fe)]={..._0x201055,'metadata':upgradeMetadata(_0x201055[_0x597d35(0x1d3)],this[_0x597d35(0x126)][_0x597d35(0x1a7)]())},'control':this[_0x597d35(0x14e)],'terminal':this[_0x597d35(0xdc)],'metrics':this[_0x597d35(0xdf)],'heartbeatMs':HEARTBEAT_MS,'refreshMs':CAPABILITY_REFRESH_MS,'onRegistered':()=>this[_0x597d35(0x238)](),'onConnected':()=>{const _0xf12b82=_0x597d35;this[_0xf12b82(0x192)][_0xf12b82(0xa1)](),this[_0xf12b82(0x13b)][_0xf12b82(0x15a)]();}});const _0x2cf403=()=>{const _0x4fa7a4=_0x597d35;if(this[_0x4fa7a4(0x1f6)]===undefined)throw new Error(_0x4fa7a4(0x218));return this[_0x4fa7a4(0x1f6)];};this[_0x597d35(0x16c)]=new RunnerService(_0x2cf403,()=>this[_0x597d35(0x1fe)],this[_0x597d35(0x228)],this[_0x597d35(0x1e1)]),this[_0x597d35(0xba)]=new WorkbenchManifestService({'capabilities':()=>this[_0x597d35(0x1fe)],'runners':this[_0x597d35(0x16c)],'terminals':this[_0x597d35(0x148)]}),this[_0x597d35(0x146)]=new TerminalService(_0x2cf403,this[_0x597d35(0x148)]),this[_0x597d35(0x14d)]=new WorkspaceService(_0x2cf403,()=>{const _0x142911=_0x597d35;if(this[_0x142911(0x181)]===undefined)throw new Error(_0x142911(0xe0));return this[_0x142911(0x181)];},this[_0x597d35(0x26d)],_0x4864a3=>{const _0x4e5141=_0x597d35;this[_0x4e5141(0x178)][_0x4e5141(0x1c8)](_0x4864a3),this[_0x4e5141(0x1c6)][_0x4e5141(0x159)](_0x4864a3),this[_0x4e5141(0x1cd)][_0x4e5141(0x1d0)](_0x4864a3),this[_0x4e5141(0x1c6)][_0x4e5141(0x114)](_0x4864a3);}),this[_0x597d35(0x166)]=new WorkspaceWorkbenchService({'requireWorkspace':_0x50496e=>this[_0x597d35(0x1c6)][_0x597d35(0x17f)](_0x50496e),'inspectWorkspace':_0x1bf801=>this[_0x597d35(0x1c6)][_0x597d35(0x1a8)](_0x1bf801),'commitWorkspace':(_0x202696,_0x353fbc)=>this[_0x597d35(0x1c6)][_0x597d35(0x258)](_0x202696,_0x353fbc),'watch':this[_0x597d35(0x13f)],'files':this[_0x597d35(0x178)],'uploads':this[_0x597d35(0xfc)],'changes':this[_0x597d35(0xe6)],'listSessions':_0x1e2a4d=>this[_0x597d35(0x271)](_0x597d35(0x10e),{'workspaceId':_0x1e2a4d,'limit':0x14}),'invalidate':_0x287b5f=>{const _0x432e6e=_0x597d35;this[_0x432e6e(0x178)][_0x432e6e(0x1c8)](_0x287b5f),this[_0x432e6e(0x1c6)][_0x432e6e(0x1d0)](_0x287b5f);},'nodeId':()=>this[_0x597d35(0x181)]?.[_0x597d35(0x22c)]??_0x597d35(0x210),'nodeGeneration':()=>this[_0x597d35(0x23e)],'emitWatchEvent':_0x226e70=>this[_0x597d35(0x22e)](_0x597d35(0xf9),_0x226e70)});for(const _0x3dee76 of CONVERSATION_TEMPLATE_OPERATIONS)this[_0x597d35(0x206)][_0x597d35(0x235)](_0x3dee76,_0x220f3a=>{const _0x51fde2=_0x597d35,_0x4d6f68=this[_0x51fde2(0x15c)]?.[_0x3dee76];if(_0x4d6f68===undefined)throw new Error(_0x51fde2(0x118));return _0x4d6f68(_0x220f3a);});for(const _0x22d678 of HOSTED_CONVERSATION_OPERATIONS)this[_0x597d35(0x206)][_0x597d35(0x235)](_0x22d678,_0x12ddf8=>{const _0x54c519=_0x597d35,_0x474d29=this[_0x54c519(0x1d6)]?.[_0x22d678];if(_0x474d29===undefined)throw new Error(_0x54c519(0x118));return _0x474d29(_0x12ddf8);});for(const _0xa277ff of CONVERSATION_HOSTING_MAINTENANCE_OPERATIONS)this[_0x597d35(0x206)][_0x597d35(0x235)](_0xa277ff,_0x585a7b=>{const _0xf1b17b=_0x597d35,_0x4bea76=this[_0xf1b17b(0x263)]?.[_0xa277ff];if(_0x4bea76===undefined)throw new Error(_0xf1b17b(0x118));return _0x4bea76(_0x585a7b);});this[_0x597d35(0x206)][_0x597d35(0x136)](this[_0x597d35(0x16c)][_0x597d35(0x224)]()),this[_0x597d35(0x206)][_0x597d35(0x136)](this[_0x597d35(0x146)][_0x597d35(0x224)]()),this[_0x597d35(0x206)][_0x597d35(0x136)](this[_0x597d35(0x14d)][_0x597d35(0x224)]()),this[_0x597d35(0x206)][_0x597d35(0x136)](this[_0x597d35(0x166)][_0x597d35(0x224)]()),this[_0x597d35(0x206)][_0x597d35(0x136)](this[_0x597d35(0x140)][_0x597d35(0x224)]()),this[_0x597d35(0x206)][_0x597d35(0x136)](this[_0x597d35(0x1bd)][_0x597d35(0x224)]()),this[_0x597d35(0x206)][_0x597d35(0x136)](this[_0x597d35(0x183)][_0x597d35(0x224)]()),this[_0x597d35(0x206)][_0x597d35(0x136)](this[_0x597d35(0xb0)][_0x597d35(0x224)]()),this[_0x597d35(0x206)][_0x597d35(0x136)](this[_0x597d35(0xde)][_0x597d35(0x224)]()),this[_0x597d35(0x206)][_0x597d35(0x136)](this[_0x597d35(0x163)][_0x597d35(0x224)]()),this[_0x597d35(0x206)][_0x597d35(0x136)](this[_0x597d35(0x1d5)][_0x597d35(0x224)]()),this[_0x597d35(0x206)][_0x597d35(0x136)](this[_0x597d35(0x241)][_0x597d35(0x224)]()),this[_0x597d35(0x206)][_0x597d35(0x136)](this[_0x597d35(0x215)][_0x597d35(0x224)]()),this[_0x597d35(0x206)][_0x597d35(0x136)](new ConversationHostingEnablementService({'config':()=>this[_0x597d35(0x181)],'setConfig':_0x403682=>this[_0x597d35(0x181)]=_0x403682,'configPath':this[_0x597d35(0x194)],'platform':()=>this[_0x597d35(0x1fe)][_0x597d35(0xb4)],'capability':()=>this[_0x597d35(0x1fe)][_0x597d35(0x199)],'initialize':()=>this[_0x597d35(0x238)](),'publishCapabilities':()=>this[_0x597d35(0x22e)](_0x597d35(0x1fe),this[_0x597d35(0x1fe)])})[_0x597d35(0x224)]()),this[_0x597d35(0x206)][_0x597d35(0x136)](new SkillNodeOperationService(_0x2cf403,()=>{const _0x28389c=_0x597d35;if(this[_0x28389c(0x181)]===undefined)throw new Error(_0x28389c(0xe0));return this[_0x28389c(0x181)];})[_0x597d35(0x224)]()),this[_0x597d35(0x206)][_0x597d35(0x136)](new McpNodeOperationService(_0x2cf403)[_0x597d35(0x224)]()),this[_0x597d35(0x206)][_0x597d35(0x235)](_0x597d35(0x119),()=>({'metrics':{...this[_0x597d35(0xdf)][_0x597d35(0x1a7)](),'activeRuns':this[_0x597d35(0x221)][_0x597d35(0x10d)][_0x597d35(0x20b)],'workspaceLeases':this[_0x597d35(0x26d)][_0x597d35(0x106)]()}})),this[_0x597d35(0x206)][_0x597d35(0x235)](_0x597d35(0x24d),_0x3e9758=>this[_0x597d35(0x126)][_0x597d35(0x14c)](_0x3e9758)),this[_0x597d35(0x206)][_0x597d35(0x235)](_0x597d35(0x21b),()=>this[_0x597d35(0x126)][_0x597d35(0xfd)]()),this[_0x597d35(0x206)][_0x597d35(0x235)](_0x597d35(0x25f),async()=>({'manifest':await this[_0x597d35(0xba)][_0x597d35(0x156)]()}));}async[_0x4e456a(0x238)](){const _0x8ecb8f=_0x4e456a,_0x5c8a6b=this[_0x8ecb8f(0xac)],_0x1d6164=this[_0x8ecb8f(0x1dd)],_0x119e87=this[_0x8ecb8f(0x237)];this[_0x8ecb8f(0xac)]=undefined,this[_0x8ecb8f(0x1dd)]=undefined,this[_0x8ecb8f(0x237)]=undefined,this[_0x8ecb8f(0x1d6)]=undefined,this[_0x8ecb8f(0x263)]=undefined,this[_0x8ecb8f(0x15c)]=undefined,this[_0x8ecb8f(0xf7)]=![],this[_0x8ecb8f(0x1fa)]=undefined,await _0x119e87?.[_0x8ecb8f(0x1c8)](),_0x1d6164?.[_0x8ecb8f(0x1c8)](),await _0x5c8a6b?.[_0x8ecb8f(0x1c8)]()[_0x8ecb8f(0x1c2)](()=>undefined);const _0x144d82=this[_0x8ecb8f(0x181)];if(_0x144d82?.[_0x8ecb8f(0x199)]?.[_0x8ecb8f(0x177)]===!![]&&this[_0x8ecb8f(0x1fe)][_0x8ecb8f(0xb4)]===_0x8ecb8f(0x10a)){if(_0x144d82[_0x8ecb8f(0x22c)]===undefined)this[_0x8ecb8f(0x1fa)]=_0x8ecb8f(0x232);else{let _0x44be52,_0x41bac9,_0x270c84;try{if(this[_0x8ecb8f(0x1f6)]===undefined)throw new Error(_0x8ecb8f(0x218));const _0x3b0c59=hostedConversationStorePath(_0x144d82,this[_0x8ecb8f(0x194)]);if(_0x3b0c59===undefined)throw new Error(_0x8ecb8f(0x22b));const _0xf56943=new HostedConversationStore({'dataDirectory':nodeDataDirectory(_0x144d82,this[_0x8ecb8f(0x194)]),'rootDirectory':_0x3b0c59,'nodeId':_0x144d82[_0x8ecb8f(0x22c)],'database':this[_0x8ecb8f(0x1f6)]});await _0xf56943[_0x8ecb8f(0x1eb)]();const _0x4222e9=new ConversationTemplateNodeService({'database':this[_0x8ecb8f(0x1f6)],'store':_0xf56943,'nodeId':()=>this[_0x8ecb8f(0x181)]?.[_0x8ecb8f(0x22c)]??_0x8ecb8f(0x127)});await _0x4222e9[_0x8ecb8f(0x22f)](),await _0xf56943[_0x8ecb8f(0x278)](),_0x44be52=new MarAgentHostedConversationRuntime({'webSearch':(_0x5b49e6,_0xfdf403)=>this[_0x8ecb8f(0xca)](_0x5b49e6,_0xfdf403),'modelFactory':this[_0x8ecb8f(0x152)]}),_0x41bac9=new HostedConversationNodeService({'database':this[_0x8ecb8f(0x1f6)],'store':_0xf56943,'runtime':_0x44be52,'nodeId':()=>this[_0x8ecb8f(0x181)]?.[_0x8ecb8f(0x22c)]??_0x8ecb8f(0x127),'nodeGeneration':()=>this[_0x8ecb8f(0x23e)],'sessionWatchSlots':this[_0x8ecb8f(0x26b)],'emitWatchEvent':_0x12f2ba=>this[_0x8ecb8f(0x22e)](_0x8ecb8f(0xf9),_0x12f2ba),'nextWorkbenchEvent':_0x209cdc=>this[_0x8ecb8f(0x1ec)][_0x8ecb8f(0x25a)](_0x8ecb8f(0x173),_0x209cdc),'emitWorkbenchEvent':_0x4abdfc=>this[_0x8ecb8f(0x1ec)][_0x8ecb8f(0xbf)](_0x4abdfc),'processExecutorFactory':_0x128b1d=>new BubblewrapSandboxExecutor(_0x128b1d),'assertCanCreate':()=>{const _0x42cf2e=_0x8ecb8f;if(_0x270c84===undefined)throw new Error(_0x42cf2e(0x118));return _0x270c84[_0x42cf2e(0x227)]();}}),_0x270c84=new ConversationHostingMaintenanceService({'store':_0xf56943,'inactiveRetentionDays':_0x144d82[_0x8ecb8f(0x199)][_0x8ecb8f(0x212)]??0x1*0x595+0xe*0x191+0x1b47*-0x1,'isConversationInUse':_0x12d655=>_0x41bac9?.[_0x8ecb8f(0x1bc)](_0x12d655)??!![],'beginConversationCleanup':_0x3b24e4=>_0x41bac9?.[_0x8ecb8f(0xe2)](_0x3b24e4),'releaseConversation':_0x4aa1fc=>{const _0x4d038d=_0x8ecb8f;if(_0x41bac9===undefined)throw new Error(_0x4d038d(0x118));return _0x41bac9[_0x4d038d(0x21e)](_0x4aa1fc);},'onAutomaticCleanupError':_0x5e6859=>nodeLog(_0x8ecb8f(0x1a5),{'nodeId':_0x144d82[_0x8ecb8f(0x22c)],'code':safeErrorCode(_0x5e6859,_0x8ecb8f(0x14f))})}),this[_0x8ecb8f(0x15c)]=_0x4222e9[_0x8ecb8f(0x224)](),this[_0x8ecb8f(0x1d6)]=_0x41bac9[_0x8ecb8f(0x224)](),this[_0x8ecb8f(0x263)]=_0x270c84[_0x8ecb8f(0x224)](),this[_0x8ecb8f(0xac)]=_0x44be52,this[_0x8ecb8f(0x1dd)]=_0x41bac9,this[_0x8ecb8f(0x237)]=_0x270c84,await _0x270c84[_0x8ecb8f(0x1f2)](),this[_0x8ecb8f(0xf7)]=!![];}catch(_0x58c582){await _0x270c84?.[_0x8ecb8f(0x1c8)](),_0x41bac9?.[_0x8ecb8f(0x1c8)](),await _0x44be52?.[_0x8ecb8f(0x1c8)]()[_0x8ecb8f(0x1c2)](()=>undefined),this[_0x8ecb8f(0x1fa)]=safeErrorCode(_0x58c582,_0x8ecb8f(0x207)),nodeLog(_0x8ecb8f(0xf8),{'nodeId':_0x144d82[_0x8ecb8f(0x22c)],'code':this[_0x8ecb8f(0x1fa)]});}}}this[_0x8ecb8f(0x1fe)]=await this[_0x8ecb8f(0x154)](this[_0x8ecb8f(0x1fe)]);}async[_0x4e456a(0x154)](_0x56fd8a){const _0x228cd2=_0x4e456a;let _0x2f6b26=this[_0x228cd2(0xf7)],_0x472ce8=this[_0x228cd2(0x1fa)],_0x2c4f8d=_0x228cd2(0x1ef);if(_0x2f6b26&&this[_0x228cd2(0x237)]!==undefined)try{_0x2c4f8d=(await this[_0x228cd2(0x237)][_0x228cd2(0x1b2)]())[_0x228cd2(0x19f)];}catch(_0x348723){_0x2f6b26=![],_0x472ce8=safeErrorCode(_0x348723,_0x228cd2(0x22b));}return{..._0x56fd8a,'conversationHosting':await conversationHostingCapability(_0x56fd8a,this[_0x228cd2(0x181)],_0x2f6b26,_0x472ce8,this[_0x228cd2(0xa2)],_0x2c4f8d)};}async[_0x4e456a(0x1f2)](){const _0x3739c3=_0x4e456a;if(this[_0x3739c3(0xd6)]!==undefined)await this[_0x3739c3(0xd6)];this[_0x3739c3(0xd6)]=undefined,this[_0x3739c3(0x274)]=![],this[_0x3739c3(0x181)]??=await loadNodeConfig(this[_0x3739c3(0x194)]),await this[_0x3739c3(0x126)][_0x3739c3(0x1f3)](resolve(dirname(nodeDatabasePath(this[_0x3739c3(0x181)],this[_0x3739c3(0x194)])),_0x3739c3(0x21d))),await assertLocalSqlitePath(nodeDatabasePath(this[_0x3739c3(0x181)],this[_0x3739c3(0x194)])),this[_0x3739c3(0x1f6)]??=new NodeDatabase(nodeDatabasePath(this[_0x3739c3(0x181)],this[_0x3739c3(0x194)]),()=>this[_0x3739c3(0x181)]?.[_0x3739c3(0x22c)]??_0x3739c3(0x127)),this[_0x3739c3(0x1f6)][_0x3739c3(0x211)](),await this[_0x3739c3(0x238)](),this[_0x3739c3(0x273)][_0x3739c3(0x1f2)](),this[_0x3739c3(0x14e)][_0x3739c3(0x11f)]();}[_0x4e456a(0x246)](_0x489135){const _0x16759a=_0x4e456a,_0x5c64ea=this[_0x16759a(0x216)][_0x16759a(0x1de)](_0x489135);if(_0x5c64ea!==undefined)clearTimeout(_0x5c64ea[_0x16759a(0xda)]);this[_0x16759a(0x216)][_0x16759a(0x19c)](_0x489135),this[_0x16759a(0xe9)][_0x16759a(0x19c)](_0x489135);}async[_0x4e456a(0x13a)](_0x415970){const _0x474c9e=_0x4e456a,_0x278850=_0x415970[_0x474c9e(0x102)]['id']+':'+_0x415970[_0x474c9e(0x102)][_0x474c9e(0x249)];this[_0x474c9e(0xe9)][_0x474c9e(0x149)](_0x415970[_0x474c9e(0x1b6)],_0x278850);try{await this[_0x474c9e(0xde)][_0x474c9e(0xb9)]({'sessionId':_0x415970[_0x474c9e(0x1b6)],'kind':_0x474c9e(0x12a),'content':this[_0x474c9e(0xc9)][_0x474c9e(0x14b)](_0x415970[_0x474c9e(0x1b6)],_0x474c9e(0x12a)),'deliveryIntent':_0x474c9e(0x1e7),'mission':_0x415970[_0x474c9e(0x102)],'secretEnvironment':_0x415970[_0x474c9e(0x260)],..._0x415970[_0x474c9e(0x197)]===undefined?{}:{'personalInstructions':_0x415970[_0x474c9e(0x197)]}});const _0x380a80=this[_0x474c9e(0xc9)][_0x474c9e(0x1de)](_0x415970[_0x474c9e(0x1b6)]);if(_0x380a80?.[_0x474c9e(0x134)]!==_0x474c9e(0x10d)||_0x380a80['id']!==_0x415970[_0x474c9e(0x102)]['id']||_0x380a80[_0x474c9e(0x249)]!==_0x415970[_0x474c9e(0x102)][_0x474c9e(0x249)]){if(this[_0x474c9e(0xe9)][_0x474c9e(0x1de)](_0x415970[_0x474c9e(0x1b6)])===_0x278850)this[_0x474c9e(0xe9)][_0x474c9e(0x19c)](_0x415970[_0x474c9e(0x1b6)]);return;}this[_0x474c9e(0x246)](_0x415970[_0x474c9e(0x1b6)]);}catch{const _0x3ceca6=this[_0x474c9e(0xc9)][_0x474c9e(0x1de)](_0x415970[_0x474c9e(0x1b6)]);if(_0x3ceca6?.[_0x474c9e(0x134)]!==_0x474c9e(0x10d)||_0x3ceca6['id']!==_0x415970[_0x474c9e(0x102)]['id']||_0x3ceca6[_0x474c9e(0x249)]!==_0x415970[_0x474c9e(0x102)][_0x474c9e(0x249)]){if(this[_0x474c9e(0xe9)][_0x474c9e(0x1de)](_0x415970[_0x474c9e(0x1b6)])===_0x278850)this[_0x474c9e(0xe9)][_0x474c9e(0x19c)](_0x415970[_0x474c9e(0x1b6)]);return;}const _0x17192a=(_0x415970[_0x474c9e(0x1f7)]??0xd35+-0x33*0x62+0x651)+(-0x1*0xa5f+0x1097+-0x2b*0x25),_0x5bb5cb=this[_0x474c9e(0x26d)][_0x474c9e(0x17b)](_0x415970[_0x474c9e(0x1b6)]);if(_0x17192a>-0x1c31+-0x2499+0x40cd||_0x5bb5cb===undefined){this[_0x474c9e(0x246)](_0x415970[_0x474c9e(0x1b6)]);if(_0x17192a>0x1c7*0x3+-0x4*0x62e+0x1a*0xbf){const _0x163a69=this[_0x474c9e(0xc9)][_0x474c9e(0x276)](_0x415970[_0x474c9e(0x1b6)],_0x415970[_0x474c9e(0x102)]['id'],_0x415970[_0x474c9e(0x102)][_0x474c9e(0x249)]);this[_0x474c9e(0x1b3)][_0x474c9e(0x1b0)](_0x415970[_0x474c9e(0x1b6)]),this[_0x474c9e(0x11b)](_0x415970[_0x474c9e(0x1b6)],_0x474c9e(0x1fb));if(_0x5bb5cb!==undefined)this[_0x474c9e(0xe7)](_0x5bb5cb,_0x163a69);}return;}this[_0x474c9e(0x246)](_0x415970[_0x474c9e(0x1b6)]);const _0x1adf31={'sessionId':_0x415970[_0x474c9e(0x1b6)],'timer':setTimeout(()=>{const _0x515351=_0x474c9e,_0xa7a85f=this[_0x515351(0xc9)][_0x515351(0x1de)](_0x1adf31[_0x515351(0x1b6)]);if(_0xa7a85f?.[_0x515351(0x134)]!==_0x515351(0x10d)||_0xa7a85f['id']!==_0x415970[_0x515351(0x102)]['id']||_0xa7a85f[_0x515351(0x249)]!==_0x415970[_0x515351(0x102)][_0x515351(0x249)])return;void this[_0x515351(0x13a)]({..._0x415970,'sessionId':_0x1adf31[_0x515351(0x1b6)],'failedAttempts':_0x17192a});},0x2d12+0x5c9*0x11+0x5*-0x10f7)};this[_0x474c9e(0x216)][_0x474c9e(0x149)](_0x415970[_0x474c9e(0x1b6)],_0x1adf31),_0x1adf31[_0x474c9e(0xda)][_0x474c9e(0x254)]();}}[_0x4e456a(0x11b)](_0x17435a,_0x44b715){const _0x2c21b7=_0x4e456a,_0x1bf5a8=this[_0x2c21b7(0x26d)][_0x2c21b7(0x23c)](_0x17435a);if(_0x1bf5a8===undefined||this[_0x2c21b7(0x26d)][_0x2c21b7(0xee)](_0x1bf5a8['id'])!==undefined)return;this[_0x2c21b7(0xb2)][_0x2c21b7(0x25e)](_0x1bf5a8['id'],_0x44b715===_0x2c21b7(0x113)?_0x2c21b7(0x12b):_0x2c21b7(0x18c),_0x44b715===_0x2c21b7(0x113)?{}:{'code':_0x2c21b7(0x182)},_0x44b715);}[_0x4e456a(0x186)](_0x247708){const _0x134981=_0x4e456a,_0x586a1e=missionUnrestrictedAccess(_0x247708[_0x134981(0xbb)]),_0x2e2088=_0x247708[_0x134981(0x267)]!==_0x586a1e,_0x244ad0=_0x2e2088?this[_0x134981(0x26d)][_0x134981(0xb8)](_0x247708['id'],_0x586a1e):_0x247708;if(_0x2e2088&&_0x244ad0[_0x134981(0x145)]!==null&&_0x244ad0[_0x134981(0x168)]!==null&&_0x244ad0[_0x134981(0x107)]!==null)this[_0x134981(0x1f6)]?.[_0x134981(0x184)]({'runner':_0x244ad0[_0x134981(0xbb)],'externalSessionId':_0x244ad0[_0x134981(0x145)],'workspaceId':_0x244ad0[_0x134981(0x15d)],'model':_0x244ad0[_0x134981(0x168)],'effort':_0x244ad0[_0x134981(0x107)],'access':_0x586a1e});return{'session':_0x244ad0,'changed':_0x2e2088};}[_0x4e456a(0x196)](){const _0x489686=_0x4e456a;return{'commandId':_0x489686(0x102),'active':!![],'label':_0x489686(0x203),'detail':null,'closable':!![],'closeInput':_0x489686(0x144)};}[_0x4e456a(0x125)](){const _0x48c6d0=_0x4e456a;if(this[_0x48c6d0(0xd6)]!==undefined)return this[_0x48c6d0(0xd6)];this[_0x48c6d0(0x274)]=!![],this[_0x48c6d0(0x13b)][_0x48c6d0(0x1c8)](),this[_0x48c6d0(0x126)][_0x48c6d0(0x125)](),this[_0x48c6d0(0x273)][_0x48c6d0(0x125)]();for(const _0x1ca332 of this[_0x48c6d0(0xef)][_0x48c6d0(0xf6)][_0x48c6d0(0x1d2)][_0x48c6d0(0x1f0)]()){clearTimeout(_0x1ca332[_0x48c6d0(0xda)]),_0x1ca332[_0x48c6d0(0x162)](_0x48c6d0(0x1f8));}this[_0x48c6d0(0xef)][_0x48c6d0(0xf6)][_0x48c6d0(0x1d2)][_0x48c6d0(0x180)]();for(const _0x2d1fd2 of this[_0x48c6d0(0xef)][_0x48c6d0(0xf6)][_0x48c6d0(0x12c)][_0x48c6d0(0x1f0)]()){clearTimeout(_0x2d1fd2[_0x48c6d0(0xda)]),_0x2d1fd2[_0x48c6d0(0x19e)](_0x48c6d0(0xbe));}this[_0x48c6d0(0xef)][_0x48c6d0(0xf6)][_0x48c6d0(0x12c)][_0x48c6d0(0x180)](),this[_0x48c6d0(0x1bd)][_0x48c6d0(0x180)](),this[_0x48c6d0(0x158)][_0x48c6d0(0x1c8)](),this[_0x48c6d0(0xb0)][_0x48c6d0(0x180)](),this[_0x48c6d0(0x1b3)][_0x48c6d0(0x180)]();for(const _0x8b69e8 of this[_0x48c6d0(0x216)][_0x48c6d0(0x1f0)]())clearTimeout(_0x8b69e8[_0x48c6d0(0xda)]);this[_0x48c6d0(0x216)][_0x48c6d0(0x180)](),this[_0x48c6d0(0xe9)][_0x48c6d0(0x180)](),this[_0x48c6d0(0xad)][_0x48c6d0(0x180)](),this[_0x48c6d0(0x198)][_0x48c6d0(0x1c8)]();for(const _0x889538 of this[_0x48c6d0(0xef)][_0x48c6d0(0xf6)][_0x48c6d0(0x1db)][_0x48c6d0(0x1f0)]())_0x889538[_0x48c6d0(0x20c)][_0x48c6d0(0xfd)]();this[_0x48c6d0(0xef)][_0x48c6d0(0xf6)][_0x48c6d0(0x1db)][_0x48c6d0(0x180)](),this[_0x48c6d0(0x22d)][_0x48c6d0(0x1c8)](),void this[_0x48c6d0(0x18d)][_0x48c6d0(0x1c8)]();const _0x1c0dab=this[_0x48c6d0(0x237)]?.[_0x48c6d0(0x1c8)]();this[_0x48c6d0(0x237)]=undefined,this[_0x48c6d0(0x1dd)]?.[_0x48c6d0(0x1c8)](),this[_0x48c6d0(0x1dd)]=undefined;const _0x3f052d=this[_0x48c6d0(0xac)];this[_0x48c6d0(0xac)]=undefined,this[_0x48c6d0(0x1d6)]=undefined,this[_0x48c6d0(0x263)]=undefined,void this[_0x48c6d0(0xfc)][_0x48c6d0(0xce)](),this[_0x48c6d0(0x178)][_0x48c6d0(0x1c8)](),this[_0x48c6d0(0x13f)][_0x48c6d0(0xfb)](),this[_0x48c6d0(0x166)][_0x48c6d0(0x180)](),this[_0x48c6d0(0x1cd)][_0x48c6d0(0x180)](),this[_0x48c6d0(0xe6)][_0x48c6d0(0x180)](),void this[_0x48c6d0(0x228)][_0x48c6d0(0x125)](),void this[_0x48c6d0(0x1c7)][_0x48c6d0(0x26f)](),void this[_0x48c6d0(0x148)][_0x48c6d0(0xce)](),this[_0x48c6d0(0xdc)][_0x48c6d0(0x125)](),this[_0x48c6d0(0x192)][_0x48c6d0(0x26f)](),this[_0x48c6d0(0x14e)][_0x48c6d0(0x125)]();const _0x32d768=this[_0x48c6d0(0x1f6)];return this[_0x48c6d0(0x1f6)]=undefined,this[_0x48c6d0(0xd6)]=((async()=>{const _0x4c3c9f=_0x48c6d0;try{await _0x1c0dab;}finally{await _0x3f052d?.[_0x4c3c9f(0x1c8)]()[_0x4c3c9f(0x1c2)](()=>undefined),_0x32d768?.[_0x4c3c9f(0x26f)]();}})()),this[_0x48c6d0(0xd6)];}[_0x4e456a(0xd3)]=_0xbdac47=>this[_0x4e456a(0xd2)][_0x4e456a(0x20c)](_0xbdac47);[_0x4e456a(0x16f)]=(_0x51f8ce,_0x1e4a31,_0x33e021,_0x25b590)=>this[_0x4e456a(0xb2)][_0x4e456a(0x25e)](_0x51f8ce,_0x1e4a31,_0x33e021,_0x25b590);[_0x4e456a(0x165)]=(_0x21d04e,_0x2ff2b1)=>{const _0x34ebd8=_0x4e456a;this[_0x34ebd8(0xad)][_0x34ebd8(0x25c)](_0x21d04e);const _0xc13fd1=isPlainRecord(_0x2ff2b1)&&typeof _0x2ff2b1[_0x34ebd8(0x231)]===_0x34ebd8(0x143)?_0x2ff2b1[_0x34ebd8(0x231)]:undefined,_0x564ee2=isPlainRecord(_0x2ff2b1)&&typeof _0x2ff2b1[_0x34ebd8(0x239)]===_0x34ebd8(0x143)?_0x2ff2b1[_0x34ebd8(0x239)]:undefined,_0x4f79cf=this[_0x34ebd8(0x26d)][_0x34ebd8(0x1ed)](_0x21d04e),_0x194256=_0xc13fd1===undefined||_0x4f79cf===undefined?undefined:conversationSegmentIdentityForItem(_0x4f79cf,_0xc13fd1,_0x564ee2);this[_0x34ebd8(0xb2)][_0x34ebd8(0x25e)](_0x21d04e,_0x34ebd8(0x1e6),_0x194256===undefined||!isPlainRecord(_0x2ff2b1)?_0x2ff2b1:{..._0x2ff2b1,'segmentId':_0x194256['id'],'segmentIndex':_0x194256[_0x34ebd8(0x1e3)]});};[_0x4e456a(0x172)]=_0x1dfe04=>{const _0x4085a4=_0x4e456a,_0x9df219=isPlainRecord(_0x1dfe04)&&Array[_0x4085a4(0x25d)](_0x1dfe04[_0x4085a4(0x16d)])?conversationSegments(_0x1dfe04):[];this[_0x4085a4(0xf1)](_0x4085a4(0x157),{'turn':_0x1dfe04,'segments':_0x9df219});};[_0x4e456a(0x18a)]=(_0x4ca39b,_0x203cfc)=>{const _0x369875=_0x4e456a;if(_0x4ca39b===_0x369875(0xe8)){this[_0x369875(0x209)](_0x203cfc);return;}this[_0x369875(0xf1)](_0x4ca39b,_0x203cfc);};[_0x4e456a(0x209)]=_0x3c079c=>{const _0x3950d4=_0x4e456a;if(isPlainRecord(_0x3c079c)&&isPlainRecord(_0x3c079c[_0x3950d4(0xe8)])){const _0x27c3a2=_0x3c079c[_0x3950d4(0xe8)][_0x3950d4(0x15d)];typeof _0x27c3a2===_0x3950d4(0x143)&&(this[_0x3950d4(0x1cd)][_0x3950d4(0x190)](_0x27c3a2),void this[_0x3950d4(0x166)]?.[_0x3950d4(0x171)](_0x27c3a2,_0x3950d4(0x23b)));}this[_0x3950d4(0xf1)](_0x3950d4(0xe8),_0x3c079c);};[_0x4e456a(0xf1)]=(_0x51e885,_0x58b476)=>{const _0x2f14b9=_0x4e456a;if(_0x51e885===_0x2f14b9(0x157)&&isPlainRecord(_0x58b476)&&isPlainRecord(_0x58b476[_0x2f14b9(0x12e)])&&_0x58b476[_0x2f14b9(0x12e)][_0x2f14b9(0x10f)]!==_0x2f14b9(0x1a4)){const _0x4b22b0=typeof _0x58b476[_0x2f14b9(0x12e)][_0x2f14b9(0x155)]===_0x2f14b9(0x143)?_0x58b476[_0x2f14b9(0x12e)][_0x2f14b9(0x155)]:undefined,_0x22af0f=typeof _0x58b476[_0x2f14b9(0x12e)][_0x2f14b9(0x245)]===_0x2f14b9(0x17d)?_0x58b476[_0x2f14b9(0x12e)][_0x2f14b9(0x245)]:undefined,_0x439893=_0x4b22b0===undefined?undefined:this[_0x2f14b9(0x26d)][_0x2f14b9(0x1ed)](_0x4b22b0);if(_0x439893===undefined)return;const _0x29ce59=isPlainRecord(_0x58b476[_0x2f14b9(0x12e)][_0x2f14b9(0x20f)])?_0x58b476[_0x2f14b9(0x12e)][_0x2f14b9(0x20f)]:undefined,_0xdb4439=_0x58b476[_0x2f14b9(0x12e)][_0x2f14b9(0x10f)]===_0x2f14b9(0x116)&&typeof _0x29ce59?.[_0x2f14b9(0x1c5)]===_0x2f14b9(0x143)?_0x29ce59[_0x2f14b9(0x1c5)]:undefined,_0x5577e3=typeof _0x29ce59?.[_0x2f14b9(0x231)]===_0x2f14b9(0x143)?_0x29ce59[_0x2f14b9(0x231)]:typeof _0x29ce59?.[_0x2f14b9(0xf2)]===_0x2f14b9(0x143)?_0x2f14b9(0xec)+_0x29ce59[_0x2f14b9(0xf2)]:undefined,_0x854560=_0xdb4439!==undefined&&_0x22af0f!==undefined?_0x439893[_0x2f14b9(0x16d)][_0x2f14b9(0xc3)](_0x386e94=>_0x386e94[_0x2f14b9(0x239)]===_0x2f14b9(0xb6)&&_0x386e94[_0x2f14b9(0x249)]===_0x22af0f):_0x5577e3===undefined?undefined:_0x439893[_0x2f14b9(0x16d)][_0x2f14b9(0xc3)](_0x28dd9f=>_0x28dd9f['id']===_0x4b22b0+':'+_0x5577e3);if(_0xdb4439!==undefined&&_0x854560?.[_0x2f14b9(0x239)]===_0x2f14b9(0xb6))_0x58b476={'sessionId':_0x439893[_0x2f14b9(0x1b6)],'delta':{'runId':_0x439893[_0x2f14b9(0x155)],'itemId':_0x854560['id'],'text':_0xdb4439,'createdAt':typeof _0x58b476[_0x2f14b9(0x12e)][_0x2f14b9(0x208)]===_0x2f14b9(0x17d)?_0x58b476[_0x2f14b9(0x12e)][_0x2f14b9(0x208)]:Date[_0x2f14b9(0x259)]()}};else{if(_0x854560!==undefined){const _0x17021c=conversationSegmentIdentityForItem(_0x439893,_0x854560['id'],_0x854560[_0x2f14b9(0x239)]);_0x58b476={'sessionId':_0x439893[_0x2f14b9(0x1b6)],'runId':_0x439893[_0x2f14b9(0x155)],'item':{'itemId':_0x854560['id'],'kind':_0x854560[_0x2f14b9(0x239)],'status':_0x854560[_0x2f14b9(0x134)],'payload':_0x854560[_0x2f14b9(0x20f)],'startedAt':_0x854560[_0x2f14b9(0xa0)],'completedAt':_0x854560[_0x2f14b9(0x123)],'segmentId':_0x17021c['id'],'segmentIndex':_0x17021c[_0x2f14b9(0x1e3)]}};}else{if(_0x58b476[_0x2f14b9(0x12e)][_0x2f14b9(0x10f)]!==_0x2f14b9(0x1bf)&&_0x58b476[_0x2f14b9(0x12e)][_0x2f14b9(0x10f)]!==_0x2f14b9(0x1d4))return;_0x58b476={'turn':_0x439893,'segments':conversationSegments(_0x439893)};}}}const _0x10aa42=this[_0x2f14b9(0x1ec)][_0x2f14b9(0x25a)](_0x51e885,_0x58b476);if(_0x10aa42===undefined)return;const _0x552fdf=_0x51e885===_0x2f14b9(0x157)&&isPlainRecord(_0x58b476)&&isPlainRecord(_0x58b476[_0x2f14b9(0x12e)])&&_0x58b476[_0x2f14b9(0x12e)][_0x2f14b9(0x10f)]===_0x2f14b9(0x1a4),_0x774dff=workbenchPayloadSessionId(this[_0x2f14b9(0x26d)],_0x51e885,_0x58b476);if(!_0x552fdf&&_0x774dff!==undefined){this[_0x2f14b9(0x1bd)][_0x2f14b9(0x248)](_0x774dff,_0x10aa42);return;}this[_0x2f14b9(0x1ec)][_0x2f14b9(0xbf)](_0x10aa42);};[_0x4e456a(0x15f)]=_0x114dbf=>this[_0x4e456a(0x1ab)][_0x4e456a(0x275)](_0x114dbf);[_0x4e456a(0x1ac)]=_0x3b7d23=>this[_0x4e456a(0x1c6)][_0x4e456a(0x1d0)](_0x3b7d23);[_0x4e456a(0x12f)]=()=>undefined;[_0x4e456a(0x164)]=()=>this[_0x4e456a(0x273)][_0x4e456a(0x164)]();[_0x4e456a(0x20e)]=()=>this[_0x4e456a(0x273)][_0x4e456a(0x20e)]();async[_0x4e456a(0x271)](_0x5a3565,_0x49e4f6){const _0x5b08e7=_0x4e456a;if(this[_0x5b08e7(0x1f6)]===undefined)throw new Error(_0x5b08e7(0x218));if(this[_0x5b08e7(0x126)][_0x5b08e7(0x261)](_0x5a3565))throw new Error(_0x5b08e7(0x110));return nodeLog(_0x5b08e7(0xae),{'nodeId':this[_0x5b08e7(0x181)]?.[_0x5b08e7(0x22c)],'operation':_0x5a3565}),this[_0x5b08e7(0x206)][_0x5b08e7(0x161)](_0x5a3565,_0x49e4f6);}async[_0x4e456a(0xca)](_0x505808,_0x3b3b39){const _0x34f8a9=_0x4e456a,_0x3c89c3=this[_0x34f8a9(0x181)];if(_0x3c89c3?.[_0x34f8a9(0x22c)]===undefined||_0x3c89c3[_0x34f8a9(0x1b9)]===undefined)throw new Error(_0x34f8a9(0x232));const _0x2987c8=await fetch(_0x3c89c3[_0x34f8a9(0x151)][_0x34f8a9(0xe3)](/\/$/u,'')+_0x34f8a9(0x253),{'method':_0x34f8a9(0x1df),'headers':{'content-type':_0x34f8a9(0x243),'x-mar-node-id':_0x3c89c3[_0x34f8a9(0x22c)],'authorization':_0x34f8a9(0x1cf)+_0x3c89c3[_0x34f8a9(0x1b9)]},'body':JSON[_0x34f8a9(0x24a)](_0x505808),'signal':_0x3b3b39});if(!_0x2987c8['ok'])throw new Error(_0x34f8a9(0x1f5));const _0x3503c7=await _0x2987c8[_0x34f8a9(0xd5)]();return{'content':JSON[_0x34f8a9(0x24a)](_0x3503c7),'data':_0x3503c7};}[_0x4e456a(0xe7)](_0x22d949,_0xe9c9d3){const _0x28b97e=_0x4e456a;if(_0xe9c9d3[_0x28b97e(0x134)]!==_0x28b97e(0x10d)){this[_0x28b97e(0x202)][_0x28b97e(0x180)](_0x22d949['id'],_0x28b97e(0x102)),this[_0x28b97e(0xf1)](_0x28b97e(0xe8),{'session':this[_0x28b97e(0x1af)][_0x28b97e(0x226)](_0x22d949)});return;}this[_0x28b97e(0x202)][_0x28b97e(0x149)](_0x22d949['id'],{'commandId':_0x28b97e(0x102),'active':_0xe9c9d3[_0x28b97e(0x134)]===_0x28b97e(0x10d),'label':_0x28b97e(0x203),'detail':_0xe9c9d3[_0x28b97e(0x1fd)][_0x28b97e(0xcf)](-0x5*0x404+0x246a+-0x1056,0x11*0x149+-0xefa+0x1*-0x4eb),'closable':!![],'closeInput':_0x28b97e(0x11d),'mission':{'id':_0xe9c9d3['id'],'objective':_0xe9c9d3[_0x28b97e(0x1fd)],'revision':_0xe9c9d3[_0x28b97e(0x249)],'status':_0xe9c9d3[_0x28b97e(0x134)],'turns':_0xe9c9d3[_0x28b97e(0xa8)]}}),this[_0x28b97e(0xf1)](_0x28b97e(0xe8),{'session':this[_0x28b97e(0x1af)][_0x28b97e(0x226)](_0x22d949)});}[_0x4e456a(0x22e)](_0x59a0c2,_0xb5efb9,_0x242f10){const _0x14f3fe=_0x4e456a;this[_0x14f3fe(0x14e)][_0x14f3fe(0x22e)](_0x59a0c2,_0xb5efb9,_0x242f10);}[_0x4e456a(0x10b)](_0x35947e){const _0x34c55d=_0x4e456a;this[_0x34c55d(0x14e)][_0x34c55d(0x10b)](_0x35947e);}}
2
+ const _0x24c2a5=_0x42b1;(function(_0x22a853,_0x5b5004){const _0x322171=_0x42b1,_0x12ec43=_0x22a853();while(!![]){try{const _0x3a309a=-parseInt(_0x322171(0x39c))/(0x2*-0x457+0x161d+-0xd6e)*(-parseInt(_0x322171(0x232))/(0xc6b+0x1809+-0x2472))+-parseInt(_0x322171(0x235))/(0xff0+-0x1c7f+0x1*0xc92)*(parseInt(_0x322171(0x25a))/(0x2469+-0x6f*-0x57+-0x4a1e))+parseInt(_0x322171(0x326))/(0x287*-0x8+0x4a*0x79+-0x7*0x21b)*(-parseInt(_0x322171(0x268))/(0x1*-0xf26+0x2090+-0x2a*0x6a))+parseInt(_0x322171(0x2dc))/(-0x5*-0x595+0x2*-0xc25+-0x398)*(-parseInt(_0x322171(0x254))/(-0x634*0x2+-0x1*-0x2032+-0x13c2))+-parseInt(_0x322171(0x219))/(0xdf8+-0x1*0x349+0x5e*-0x1d)+-parseInt(_0x322171(0x307))/(0x605*-0x2+0x1af5*-0x1+0x2709)+parseInt(_0x322171(0x29f))/(-0x47f*-0x1+0x26a+-0x6de)*(parseInt(_0x322171(0x25c))/(0x2*-0xf7c+0x15*0xb+0x251*0xd));if(_0x3a309a===_0x5b5004)break;else _0x12ec43['push'](_0x12ec43['shift']());}catch(_0x42e56f){_0x12ec43['push'](_0x12ec43['shift']());}}}(_0xabd3,0x32c71+-0x1cce5*0x2+0x5*0xed64));import{dirname,resolve}from'node:path';import{createEnvelope}from'@myagentroam/protocol';import{hostedConversationStorePath,loadNodeConfig,nodeDataDirectory,nodeDatabasePath}from'./config.js';import{NodeMetrics,nodeLog}from'./operational.js';import{assertLocalSqlitePath}from'./storage.js';import{detectCapabilitiesAsync,unavailableCapabilities}from'./capabilities.js';import{NodeDatabase}from'./database.js';import{TerminalManager}from'./terminal.js';import{NodeRuntimeState}from'./runtime-state.js';import{CommandStateStore}from'./runner-command-engine.js';import{missionUnrestrictedAccess,MissionRuntime}from'./service/mission-runtime.js';import{MissionMcpServer}from'./service/mission-mcp-server.js';import{RunnerUsageReader}from'./runner-usage.js';import{ClaudeCodeRunner}from'./runner/claude-code-runner.js';import{ClaudeManagedRunController}from'./runner/claude/managed-run-controller.js';import{CodexRunner}from'./runner/codex-runner.js';import{CodexManagedRunController}from'./runner/codex/managed-run-controller.js';import{FakeTestRunner}from'./runner/fake-test-runner.js';import{RunnerRegistry}from'./runner/runner-registry.js';import{OpenCodeRunner}from'./runner/opencode-runner.js';import{MarAgentRunner}from'./runner/mar-agent-runner.js';import{MarAgentManagedRunController}from'./runner/mar-agent/managed-run-controller.js';import{OpenCodeManagedRunController}from'./runner/opencode/managed-run-controller.js';import{NodeOperationRouter}from'./connector/node-operation-router.js';import{SkillNodeOperationService}from'./service/skill-node-operation-service.js';import{McpNodeOperationService}from'./service/mcp-node-operation-service.js';import{RunnerService}from'./service/runner-service.js';import{TerminalService}from'./service/terminal-service.js';import{WorkspaceService}from'./service/workspace-service.js';import{WorkspaceWatchService}from'./service/workspace-watch-service.js';import{WorkspaceFileService}from'./service/workspace-file-service.js';import{WorkspaceUploadService}from'./service/workspace-upload-service.js';function _0xabd3(){const _0x8863ac=['y29UDMvYC2f0Aw9UlMHVC3rLzc5JB25MAwCUDxbKyxrL','odm0mZnjvM9zANO','CMvHze5HDgL2zq','Cgf0Aa','q09ovKvsu0fusu9ox0Hpu1rjtKDFu1rpuKfhrv9vtKfwquLmqujmrq','DxbNCMfKzunVB3jKAw5HDg9Y','y3jLyxrLzef0','Aw5ZDgfSBgf0Aw9U','y29UDMvYC2f0Aw9Usg9ZDgLUz01HAw50zw5HBMnLt3bLCMf0Aw9UCW','zxHPDa','DhvYBNm','D29YA3nWywnLv2f0y2Htzxj2AwnL','zxHLy3v0zq','tuLtu0LptL9ot1rFqunusvzf','C2vZC2LVBKXPzMvJEwnSzvnLCNzPy2u','y29UDMvYC2f0Aw9Usg9ZDgLUz01HAw50zw5HBMnLu2vYDMLJzq','Ag9ZDgvKlwnVBNzLCNnHDgLVBG','C2vXDwvUy2u','y29UDMvYC2f0Aw9UlMHVC3rLzc5MAwXLCY51CgXVywqUy2fUy2vS','zgvSzxrL','C3rVChbPBMC','C2H1DgrVD24','CNvUu3rHDgu','CMvTzw1Izxi','BgLZDa','AgfZ','C2nOzwr1Bgu','qvzbsuXbqKXf','DgvYBwLUywXdAgfUBMvS','y29UDMvYC2f0Aw9UlMHVC3rLzc5JCMvHDgu','y2XVC2vsDw5UAw5NvgvYBwLUywXtzxnZAw9UCW','BM93','CMvJB25Uzwn0u2nOzwr1BgvK','AxrLBxm','AgfUzgXLtwvZC2fNzq','y29UzMLNugf0Aa','C2v0r2vUzxjHDgvKsw1Hz2vszwDPC3rYyxi','zxHLy3v0Aw9U','ywn0AxzL','u1vdq0vfreve','tK9erv9tve9queve','BgLUDxG','y29UDMvYC2f0Aw9UlNrLBxbSyxrLlNnVDxjJzs5PBNnWzwn0','C2v0','ndu2mJi0mhfWrKPtzW','Dg9WAwnby3rPDMu','zMLSDgvY','y29UDMvYC2f0Aw9UvgvTCgXHDgvpCgvYyxrPB25Z','yMLUzenVBw1HBMrdB250CM9S','y29UDMvYC2f0Aw9UlML0zw0','zw1PDfjLywX0Aw1L','CMvJB25JAwXLugvYC2LZDgvKuNvUCW','BwfUywDLzfj1BM5LCLnLC3nPB25Z','y2fUy2vSq29KzxHuDxjU','y29KzxHqCM9MAwXLq2XPzw50rMfJDg9YEq','BMf0AxzLsw1Hz2vsB290CW','y29UDMvYC2f0Aw9Usg9ZDgLUz1n0B3jHz2vszwfKEq','BwfYqwDLBNrsDw50Aw1Lu2nVCgvjza','l21PC3nPB24Gls1JBgvHCG','DxnLCKLUChv0CW','CgvUzgLUz01PC3nPB25dB21Tyw5Ku3rHDgu','zgLZCgf0y2G','C3rHDhvZ','ywrVChrsDw4','zxHLy3v0zunVBw1HBMq','zMLUywXSEq','zxH0zxjUywXby3rPDML0Eq','vgHPCYboB2rLignVBM5Ly3rPB24GD2fZihjLCgXHy2vKigj5igeGBMv3zxiGAw5ZDgfUy2uGD2L0Acb0AguGC2fTzsbPzgvUDgL0Es4Gq2HLy2SGzM9Yigr1CgXPy2f0zsbWCM9JzxnZzxmU','BwLU','BM9Kzs5TzxrYAwnZ','Aw5Hy3rPDMvszxrLBNrPB25eyxLZ','CMvSzwfZzvnLC3nPB24','CgXHDgzVCM0','DxbKyxrLqwDLBNrtzxnZAw9UqwnJzxnZ','CMvQzwn0','mJeXnJyWweL1vef2','zw5ZDxjLv2f0y2G','yxzHAwXHyMXL','zxH0zxjUywXtzxnZAw9Uswq','y29UDMvYC2f0Aw9UlMHVC3rLzc5TzxnZywDL','AgfZqwn0AxzLu2vZC2LVBKXLyxnL','yxnZAxn0yw50x21LC3nHz2u','v09ss1nqqunf','BMf0AxzLswrZ','y29UDMvYC2f0Aw9UlMHVC3rLzc5TzxrHzgf0ys51CgrHDgu','CMvTB3zLugvUzgLUz1f1zxvL','y29TCgXLDgvKqxq','CgvUzgLUzW','C3rHCNrdyxbHyMLSAxr5uMvMCMvZAa','Aw52ywXPzgf0zq','q09ovKvsu0fusu9ox0Hpu1rjtKDFuKvdt1zfuLLFrKfjteve','y3jLyxrLqwDLBNrtzxnZAw9U','D29YA3nWywnLu2vYDMLJzq','su5urvjsvvburuq','BxLHz2vUDhjVyw1FBwLZC2LVBG','y29UDgLUDw91C1j1BKnVB3jKAw5HDg9Y','ywrK','zw1PDfj1BKv2zw50','CMvXDwvZDenSyxvKzvvZzxjjBNb1Da','q09ovKvsu0fusu9ox0Hpu1rjtKDFq0Xfqu5vuf9gquLmruq','CNvUlNj1BM5PBMC','Bg9HzfjLC3vSDa','AgfUzgXL','y2fJAgvKu2vZC2LVBNm','C25HChnOB3rtzxf1zw5Jzq','CMvMCMvZAenHCgfIAwXPDgLLCW','CMvZCg9UzfvZzxjjBNb1Da','y29UDMvYC2f0Aw9UlNrLBxbSyxrLlNzLCNnPB24UAw5ZCgvJDa','y29UDMvYC2f0Aw9UlMHVC3rLzc5MAwXLCY51CgXVywqUy29TCgXLDgu','CMvJzw50uNvUuhjVAMvJDgLVBLnLCNzPy2u','CMvJB25Uzwn0','y29UDMvYC2f0Aw9UsgLZDg9YEvnLCNzPy2u','DxbNCMfKzs1Yzxn1BhqUANnVBG','y2XHDwrLq2XPzw50','CMvJzw50lxj1BNm','yMXVy2TbzNrLCLj1BNrPBwvgywLSDxjL','zMfRzvj1BM5LCG','y2fWywjPBgL0AwvZuhjVDMLKzwq','CMvHzeHPC3rVCNLqywDL','ChjVAMvJDeLUAxrPywW','twLZC2LVBG','ANnVBG','y3jLyxrLqxbWCM92ywW','zxHLy3v0zu5VzgvpCgvYyxrPB24','yxbWCM92ywXZ','ChjVBxb0','uKvqtefdrv9dvvjsru5u','y2XLyxjxB3jRC3bHy2u','CNvUswq','y29UDMvYC2f0Aw9Usg9ZDgLUz1bYB2jL','C2vZC2LVBG','zgLZy292zxjxB3jRC3bHy2u','qMvHCMvYia','q0foq0vm','D2vIu2vHCMnO','BwLZC2LVBKnVBNrPBNvHDgLVBLbLBMrPBMC','BwLZC2LVBK1JCfnLCNzLCG','y29TBwfUzfn0yxrLCW','yxbWzw5K','BwfUywDLzezVCK5HDgL2zq','BwfYqwDLBNrsDw50Aw1Ltw9KzwXZ','y29UDMvYC2f0Aw9UlMHVC3rLzc5MAwXLCY5SAxn0','C2vZC2LVBKLKzw50Axr5u2vYDMLJzq','CMvZB2X2zun1CNjLBNq','CMvNAxn0zxjbBgW','CMvXDwvZDa','BM9Kzs51CgDYywrLlMnHBMnLBa','Ahr0Chm6lY8XmJCUmc4WlJeUAw52ywXPzc9Ty3a','ChvIBgLZAfnUyxbZAg90','tufsx0fhru5ux1DfqL9trufsq0HFrKfjteve','z2v0qwDLBNrtzxnZAw9U','BwfYqwDLBNrsDw5dB250CM9SBgvY','y2fWywjPBgL0AwvZ','zgvJAwrL','Dgv4Da','D29YA3nWywnLu3rHDgu','C3vWzxj2AxnLzfvWz3jHzgu','z2v0','Dw5Yzwy','ChjVBw90zvnLC3nPB25jzgvUDgL0Eq','Dw5YzwDPC3rLCMvK','y29UDMvYC2f0Aw9UlMHVC3rLzc5MAwXLCY51CgXVywqUy3jLyxrL','zwzMB3j0','CMvJB3zLCKLUDgvYCNvWDgvKuhvIBgLJyxrPB25Z','surmrq','C2vZC2LVBLn0yxrL','ywn0AxzLu2vZC2LVBLj1BG','zgLZy29UBMvJDa','zw1PDff1zxvL','CNvUv29YA2jLBMnOu2vYDMLJzq','CNvUDgLTzq','C2vZC2LVBK1LC3nHz2vtzxj2AwnL','y29KzxG','y29UDMvYC2f0Aw9UlNrLBxbSyxrLlNb1yMXPC2G','CMv2AxnPB24','CMvJB3jKvhvYBG','CMvJB3jK','uKvkrunuruq','y2HHBM5LBfrVA2vU','zgvJAwrLq29KzxHbChbYB3zHBa','CMvTB3zL','CMvZDw1Lqwz0zxjdB21Tyw5KuNvU','BgLZDfDVCMTZCgfJzxm','BM9Kzs5JB25Uzwn0Aw9UlNjLCgXHy2vK','y2f0y2G','CMvTB3zLtwLZC2LVBLf1zxvL','DxbNCMfKzq','BM9Kzs51CgDYywrLlNjLCxvLC3q','y2fUy2vS','y29UDMvYC2f0Aw9UlMHVC3rLzc51BNDHDgnO','tK9erv9eqvrbqKftrv9vtKfwquLmqujmrq','y2HHBMDLza','AgfUzgXLtM90AwzPy2f0Aw9U','nZu3muPcwu9UqG','Aw50zxjYDxb0uMvXDwvZDgvK','DhvYBKLK','DMfSDwvZ','C2L6zq','zgvJAwrLqxbWCM92ywW','Ag9ZDgvKq29UDMvYC2f0Aw9Uu2vYDMLJzq','BwfYqwDLBNrnB2rLBfrYyw5ZCg9YDfrLC3rZ','ywXSB3DLzfjVB3rZ','zw1PDfnLC3nPB25xB3jRyMvUy2HfDMvUDa','C2vZC2LVBKLK','ChvIBgLZAfDVCMTIzw5JAev2zw50','D29YA3nWywnLq2HHBMDLu2vYDMLJzq','B25oB3rPzMLJyxrPB24','CMvNAxn0zxi','zMfRzvnJCMLWDa','C2vZC2LVBKnVBNrLEhrtzxj2AwnL','C2vZC2LVBLDHDgnOu2XVDhm','CNvUDgLTzunYzwrLBNrPywXZ','ms4WlJa','C25HChnOB3q','CNvUlMnVBxbSzxrLza','y29UDMvYC2f0Aw9UlMHVC3rPBMCUy2XLyw51Cc5WCMv2Awv3','l21PC3nPB24','yMLUzenVBNrYB2W','BwLZC2LVBLjLDhj5vgLTzxjZ','ue9tva','y29UDMvYC2f0Aw9UlMHVC3rPBMCUy2XLyw51Cc5LEgvJDxrL','C3rVCfDHDgnO','Aw52ywXPzgf0zvrVCgLJ','AxndB252zxjZyxrPB25jBLvZzq','rKflrv9svu5orvjFreLtq09otKvdva','zxHLy3v0Aw9Uu3rHCNrLza','CMvIDwLSzenVBNzLCNnHDgLVBKLUzgv4','zxzLBNq','C2vZC2LVBKnVBw1HBMrtzxj2AwnL','BM9Kzs5JB25Uzwn0Aw5N','zw5HyMXLza','CMvJB25JAwXL','y29UDhjVBenOyw5UzwW','BwLZC2LVBLj1BNrPBwu','BNvTyMvY','C2vJCMv0rw52AxjVBM1LBNq','ywnJzxb0rM9YtwvZC2fNzq','B25tDw1Tyxj5','y29UDMvYC2f0Aw9UlMHVC3rLzc53yxrJAa','yM9VDhn0CMfWswrZ','BMv4Da','yxbWCM92ywW6','Aw5KzxG','Aw5PDgLHBgL6zq','Ag9ZDgvKq29UDMvYC2f0Aw9UuNvUDgLTzq','CMvNAxn0zxjhzw5LCMf0zwrjBwfNzxm','z2v0v29YA3nWywnL','D2LUzg93CW','CNvU','C3rHDgu','BM9Kzs5VCgvYyxrPB24','AgfZrxHLy3v0Aw9Uu3rHCNrLza','y2XLyxjbBgW','zgLZy292zxi','D29YA2jLBMnOrxzLBNrtzxj2AwnL','sfruua','C2vZC2LVBI13yxrJAc1ZBMfWC2HVDa','C2vUzevUDMvSB3bL','Cgf5Bg9Hza','y29TBwL0twv0ywrHDge','uvvfvuu','CNvUBMvYsw50zxjHy3rPB25tzxj2AwnL','ChjLC2vUDa','C2vZC2LVBKnHDgfSB2Dtzxj2AwnL','CNvUrxzLBNrtzxj2AwnL','BM9KzuDLBMvYyxrPB24','tK9erv9vueDsqurfx1bftKrjtKC','q09ovKvsu0fusu9ox0Hpu1rjtKDFvu5bvKfjtefcteu','C2vZC2LVBLbYzxnLBNrHDgLVBLnLCNzPy2u','yxnZzxj0q2fUq3jLyxrL','DgLTzxi','zw1PDenVBNzLCNnHDgLVBKL0zw0','Aw52ywXPzgf0zunHy2HL','y29UDMvYC2f0Aw9UlMHVC3rLzc5MAwXLCY51CgXVywqUC3rHDhvZ','Aw52ywXPzgf0zunOyw5Nzxm','BMf0AxzLu2vZC2LVBLbYB2PLy3rPB25tzxj2AwnL','y29UDMvYC2f0Aw9UlMHVC3rLzc5MAwXLCY51CgXVywqUy2H1BMS','CMvZDw1LzenVBMzPz3vYyxrPB24','l2fWAs9UB2rLlxrVB2XZl3DLyI1ZzwfYy2G','Dgv4Dc5KzwX0yq','yxbWBgLJyxrPB24VANnVBG','CMvMCMvZAfrPDgXL','zxH0zxjUywXtzxnZAw9UuMvZDw1Lu2vYDMLJzq','BM9KzvjLCxvLC3rZ','CMvNAxn0zxjoyxrPDMu','y29UBMvJDa','mJuZmdKWogTmwMPewG','CNvUBMvYvgL0Bgu','CMvJB3jKzwqTC2vZC2LVBG','ChjLCgfYzu1LC3nHz2vjBNb1Da','BwfYlwLUDgvYBMfSlw1PC3nPB24','AxrLBuLK','CgvYC2LZDfrLCM1PBMfS','CgvYC2LZDezPBgvZ','y29KzxHsDw5dB250CM9SBgvY','zgvJAxnPB24','D29YA3nWywnLrMLSzvnLCNzPy2u','ChjVzMLSzxm','tuLtu0LptL9dt05usu5vqvrjt05FrKfjteve','CNvUBMvYlMnVBw1HBMqUzxHLy3v0zq','D29YA3nWywnLuxvLDwvxB3jRyMvUy2Htzxj2AwnL','Aw5ZCgvJDa','Ag9ZDgvKq29UDMvYC2f0Aw9Ut3bLCMf0Aw9UCW','yMvNAw5dB252zxjZyxrPB25dBgvHBNvW','zM9Yz2v0','ChjVBw90zq','Aw52ywXPzgf0zvDVCMTZCgfJzvDHDgnOvg9WAwnZ','BwfYqwDLBNrdBgLLBNq','zgvJAwrLq2XHDwrLqxbWCM92ywW','zw1PDfj1BG','y29TCgXLDgvdyw5JzwXSzwrsDw4','mJzbyu1ZEMC','ChjVAMvJDgLVBKzVCK5HDgL2zq','y3vZDg9TvgL0Bgu','mJq1mdC5AuDxBxHu','tK9erv9vtKfvveHftLrjq0furuq','zxzLBNruExbL','zgLYzwn0tMf0AxzL','C3rVCMfNzunHCgfJAxr5','y29UDMvYC2f0Aw9UvhvYBKzVCLj1BG','z2v0uNvU','ChjLCgfYzu1PC3nPB25tzxnZAw9U','q0foq0vmteLorW','Bw92zq','C2vJCMv0CW','y2XHDwrLqxbWCM92ywXuAw1LB3v0txm','uLvox05pvf9gt1vora','CNvUBMvYu2vYDMLJzq','D29YA3nWywnLq29VCMrPBMf0B3i','zgLZCg9Zzq','zxHWAxjL','CMvSzwfZzunVBNzLCNnHDgLVBKzVCKnSzwfUDxa','yMXVy2TZ','y29UDMvYC2f0Aw9UlMHVC3rLzc5Nzxq','y29UDMvYC2f0Aw9Usg9ZDgLUzW','zgLZy29UBMvJDgvK','zwzMzwn0AxzLtwnWsw5ZDgfSBgf0Aw9UCW','zw5ZDxjLuMvZDw1LzenVBMzPz3vYyxrPB24','zMfRztO','B3bLBKnVzgvdBgLLBNq','y29UDMvYC2f0Aw9UlMHVC3rPBMCUC3rVCMfNzs5PBNnWzwn0','CMvZB2X2zq','CNvUBMvYvxnHz2vszwfKzxi','BM9KzuLK','zgLZy292zxjxB3jRC3bHy2vtzxnZAw9UCW','ohbND2D3za','CNvUlMzHAwXLza','CNvUlNn0yxj0zwq','lw9Wzw5JB2rLlwLTywDLCW','ChvIBgLZAefWChjVDMfS','BMf0AxzLlNnLC3nPB24UzgLZy292zxj5lNbLBMrPBMC','mJbAANbnAMC','DgvYBwLUywXnyw5Hz2vY','mteWnfDmBKvowG','CNvUBMvYq2HHBM5LBe1LC3nHz2vZ','y2fWywnPDhK','DxbNCMfKzvjLywr5','y29UBMvJDgvKqxr0zw1WDa','C2vZC2LVBNm','AxnbCNjHEq','y2fWywjPBgL0EurLDgvJDg9Y','CMvWBgfJzq','zMLUAxnOswrSzu1PC3nPB25sDw4','ChvIBgLZAa','y29UzMLN','mtjXD0P3sKi','A2LUza','y29UDMvYC2f0Aw9UlMHVC3rLzc5MAwXLlNjLywq','y29UDMvYC2f0Aw9Usg9ZDgLUz0zHAwX1CMvdB2rL','C3vIBwL0twLZC2LVBG','C3rHCNq','C2f2zu5HDgL2zvnLC3nPB25nzxrHzgf0yq','DhvYBG','zgf0ywjHC2u','C2vUza','C3rYAw5NAwz5','D29YA3nWywnLvxbSB2fKu2vYDMLJzq','zw1PDenVBNzLCNnHDgLVBLr1CM4','zw5ZDxjLvg9WAwntBMfWC2HVDa','B3bLCMf0Aw9UCW','rvHurvjoquW','y29UDgLUDwu','y29UDMvYC2f0Aw9UlMHVC3rPBMCUy2XLyw51Cc5MywLSzwq','DhjHBNnPDgLVBMLUzW','CNvUCW','Aw50zxjYDxb0','C2XPy2u','q0foq0vmteve','BMf0AxzLu2vZC2LVBLDHDgnOu2vYDMLJzq','CMvXDwvZDenSyxvKzufWChjVDMfS','y29UDMvYC2f0Aw9UlMHVC3rLzc5SAxn0','yxbWCM92ywXjza','D29YA2jLBMnOtwfUAwzLC3rtzxj2AwnL','y29UDMvYC2f0Aw9U','BwLZC2LVBG','zMfZDa','B3bLCMf0Aw9UuM91DgvY','y3DK','C3rYAw5N','y2XHDwrLuNvUq29UDhjVBgXLCG','BM90AwzPy2f0Aw9U','y3vYCMvUDev4zwn1DgLVBKLK','CMv2B2TL','BwLNCMf0zvj1BM5LCLnLC3nPB25jzgvUDgL0Eq','DgvYBwLUywXtzxj2AwnL','y2XVC2u','Cgf1C2vtzxnZAw9UuxvLDwu','BwLNCMf0zvnLC3nPB24','zMfPBgvKqxr0zw1WDhm','BgLZDfj1BNngB3jtzxnZAw9U','y2XLyxi','y29UDMvYC2f0Aw9UlNrLBxbSyxrLlNb1yMXPC2GUC3rHDhvZ','zw5XDwv1zu1PC3nPB25dB250Aw51yxrPB24','C2vZC2LVBI5SAxn0','C2v0u2vZC2LVBLjLC291CMnLuMvSzwfZzxi','CNvUqxr0ywnOBwvUDfnLCNzPy2u','CMvWBgfJzvnVy2TLDezVCLrLC3rPBMC','y2XLyxjnAxnZAw9UuMv0CNK','y29UDMvYC2f0Aw9Uu2vNBwvUDfnLCNzPy2u','D29YA3nWywnLv29YA2jLBMnOu2vYDMLJzq','mty5nZC0z0Hwu2fh','BwfYqwDLBNrnB2rLBhm','CMfUzg9Tvvvjra','y29UDhjVBe1LC3nHz2vZ','Bwv0CMLJCW','zMX1C2Hqzw5KAw5Nvgv4Da','Bwv0ywrHDge','B2jQzwn0AxzL','C2vZC2LVBLf1zxj5u2vYDMLJzq','CMvNAxn0zxjoyxrPDMvjBwfNzxm','rKfjteve','Aw5PDgLHBgL6zunVBNzLCNnHDgLVBKHVC3rPBMC','D29YA3nWywnLswq','DgHYzwfKswq','CMvXDwLYzq','CNvUDgLTzs1UB2rL','u0vora','Bw9KzwW','C3rVCa','CMvJB3jKrxHLy3v0Aw9UuMvZDwX0','B3bLBKnVzgvsDw5dB250CM9SBgvY','C3rVChbLza','C29JA2v0','BM9Kzs53B3jRyMvUy2GUy2fWywjPBgL0AwvZ','C2v0q2HHBM5LBfrVA2vU','tK9erv9dt05gsuDFvu5bvKfjtefcteu','zxHWAxjLqxbWCM92ywW','CNvUBMvYCW','y29UDMvYC2f0Aw9UlMHVC3rLzc5KzwXLDgu','BwfYqwDLBNrnB2rLBa','y29UDMvYC2f0Aw9UlMHVC3rLzc5PBNrLCNj1Chq','ChvIBgLZAe1PC3nPB25tDgf0zq','Bwf4','y3jLzgvUDgLHBa','Bwf0zxjPywXPEMvdB2rLEa','y29UBMvJDgLVBKXPzMvJEwnSzq','CNvUrxzLBNrcCMLKz2u','CNvUBMvY','y29KzxHdBgLLBNq','ywnJzxnZ','CgvYC29UywXjBNn0CNvJDgLVBNm','Aw5ZCgvJDe1LDgfKyxrH','y29UBMvJDgvK','zMLUza','CMvMCMvZAev4DgvYBMfSqwn0AxzPDhK','ChjVAMvJDenVBNzLCNnHDgLVBKHVC3rPBMDdyxbHyMLSAxr5','D2LUmZi','y29UDMvYC2f0Aw9UlMHVC3rPBMCUAw5PDgLHBgL6yxrPB24UzMfPBgvK','CMvHza','D29YA3nWywnLu2vZC2LVBLnLCNzPy2u','y29UDMvYC2f0Aw9UlMHVC3rLzc5MAwXLCY51CgXVywqUChjLzMXPz2H0','D2f0y2GUzxzLBNq','y2XLyxjxyxrJAgvZ','y2fUy2vSq2XHDwrLuNvU','tK9erv9dt05orunusu9ox1jfueXbq0ve','C2vYDMvYvxjS','ywn0AxzLv29YA3nWywnLtgvHC2vdB3vUDa','y2XLyw51Ca','C3rHCNrLzef0','zw1PDfDVCMTIzw5JAev2zw50'];_0xabd3=function(){return _0x8863ac;};return _0xabd3();}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';function _0x42b1(_0xd60da3,_0x4b66b6){_0xd60da3=_0xd60da3-(0x56e+-0x6*0x193+0x5e3);const _0x1c6304=_0xabd3();let _0x35b46a=_0x1c6304[_0xd60da3];if(_0x42b1['dRfEyu']===undefined){var _0x10cc4f=function(_0x1e6764){const _0x275eae='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x20b375='',_0x264bff='';for(let _0x4ec414=-0x1dd3+0x16*0x106+0x74f,_0x1b9563,_0x405306,_0x2f17fa=0x671*0x1+0x1777*0x1+0x2*-0xef4;_0x405306=_0x1e6764['charAt'](_0x2f17fa++);~_0x405306&&(_0x1b9563=_0x4ec414%(-0x1f*0x5+0x2c2+-0x223)?_0x1b9563*(-0x1ab9*0x1+-0x2a*0x7c+0x2f51)+_0x405306:_0x405306,_0x4ec414++%(0x124c+0x1*-0x506+-0xd42))?_0x20b375+=String['fromCharCode'](-0xd*-0x10+0x20a1+-0x2072&_0x1b9563>>(-(0xd4*-0x23+0xfd2*0x1+-0x696*-0x2)*_0x4ec414&-0xa7*-0x15+-0x1222+0x475)):-0x67c+-0x1*0xc02+0x20e*0x9){_0x405306=_0x275eae['indexOf'](_0x405306);}for(let _0x492ced=-0x17ed+0x134c+0x4a1,_0xbcc51=_0x20b375['length'];_0x492ced<_0xbcc51;_0x492ced++){_0x264bff+='%'+('00'+_0x20b375['charCodeAt'](_0x492ced)['toString'](-0x1709+0x1e7c+-0x763))['slice'](-(-0x1d4e+0x7a2+0x15ae));}return decodeURIComponent(_0x264bff);};_0x42b1['QrWKWU']=_0x10cc4f,_0x42b1['NqBnAe']={},_0x42b1['dRfEyu']=!![];}const _0x49f7c0=_0x1c6304[-0x1cb7+-0x64+0x1d1b];_0x42b1['AYvYEp']!==_0x49f7c0&&(_0x42b1['NqBnAe']={},_0x42b1['AYvYEp']=_0x49f7c0);const _0x3104c3=_0x42b1['NqBnAe'][_0xd60da3];return _0x3104c3===undefined?(_0x35b46a=_0x42b1['QrWKWU'](_0x35b46a),_0x42b1['NqBnAe'][_0xd60da3]=_0x35b46a):_0x35b46a=_0x3104c3,_0x35b46a;}import{SessionWatchSlotCoordinator}from'./service/session-watch-slot-coordinator.js';import{SessionContextService}from'./service/session-context-service.js';import{WorkspaceDomainState}from'./service/workspace-domain-state.js';import{RunWorkbenchService}from'./service/run-workbench-service.js';import{SessionQueryService}from'./service/session-query-service.js';import{WorkspaceQueueWorkbenchService}from'./service/workspace-queue-workbench-service.js';import{ContinuousRunCoordinator}from'./service/continuous-run-coordinator.js';import{SessionIdentityService}from'./service/session-identity-service.js';import{NativeSessionProjectionService}from'./service/native-session-projection-service.js';import{composeConversationRuntimePage,ConversationHistoryService,convergeConversationWatchPage,hasManagedActiveRun}from'./service/conversation-history-service.js';import{ConversationSegmentService,conversationSegmentIdentityForItem,conversationSegments}from'./service/conversation-segment-service.js';import{RunnerInteractionService}from'./service/runner-interaction-service.js';import{SessionLifecycleService}from'./service/session-lifecycle-service.js';import{ExternalSessionResumeService}from'./service/external-session-resume-service.js';import{SessionMessageService}from'./service/session-message-service.js';import{SessionCatalogService}from'./service/session-catalog-service.js';import{SessionCommandService}from'./service/session-command-service.js';import{SessionPresentationService}from'./service/session-presentation-service.js';import{isPlainRecord,isRunnerImageAttachment,parseRunnerImageAttachments}from'./runner/codex/conversation-parser.js';export{nodeConnectEndpoint,validatedCapabilities}from'./runner/codex/conversation-parser.js';import{NodeControlChannel}from'./service/node-control-channel.js';import{NodeControlMessageService}from'./service/node-control-message-service.js';import{NodeRequestService}from'./service/node-request-service.js';import{WorkbenchManifestService}from'./service/workbench-manifest-service.js';import{NodeRunEventBridge,workbenchPayloadSessionId}from'./service/node-run-event-bridge.js';import{NodeWorkspaceCoordinator}from'./service/node-workspace-coordinator.js';import{FakeManagedRunService}from'./service/fake-managed-run-service.js';import{RunnerChannelMessageService}from'./service/runner-channel-message-service.js';import{ManagedRunnerSessionService}from'./service/managed-runner-session-service.js';import{NodeConnectionLifecycleService}from'./service/node-connection-lifecycle-service.js';import{NodeUpgradeCoordinator,nodeUpgradeRequestPath}from'./service/node-upgrade-coordinator.js';import{HostedConversationStore}from'./service/hosted-conversation-store.js';import{ConversationTemplateNodeService}from'./service/conversation-template-node-service.js';import{HostedConversationNodeService}from'./service/hosted-conversation-node-service.js';import{BubblewrapSandboxExecutor}from'./service/bubblewrap-sandbox-executor.js';import{MarAgentHostedConversationRuntime}from'./runner/mar-agent/hosted-conversation-runtime.js';import{conversationHostingCapability,probeBubblewrap}from'./service/conversation-hosting-capability-service.js';import{ConversationHostingMaintenanceService}from'./service/conversation-hosting-maintenance-service.js';import{ConversationHostingEnablementService}from'./service/conversation-hosting-enablement-service.js';import{safeErrorCode}from'./util/safe-error.js';import{RuntimeCredentialControlService}from'./service/runtime-credential-control-service.js';import{MarAgentRuntimeModelFactory}from'./runner/mar-agent/runtime-model-factory.js';import{MarAgentModelTransportTestService}from'./service/mar-agent-model-transport-test-service.js';const HEARTBEAT_MS=0x17ff*0x2+0x62d2*-0x1+0x6d6c*0x1,CAPABILITY_REFRESH_MS=0xdbda+0x1*0x12fd+-0x477,RETRY_MIN_MS=-0x130e+-0x22b9+-0x511*-0xb,RETRY_MAX_MS=0x9edb+-0x1*0x6103+0x3758,CLAUDE_APPROVAL_TIMEOUT_MS=(0xb61+0x20*0x1+-0x5*0x24b)*(-0x985a+0x11626*-0x1+0x20*0x14c7),CONVERSATION_TEMPLATE_OPERATIONS=[_0x24c2a5(0x305),_0x24c2a5(0x388),_0x24c2a5(0x296),_0x24c2a5(0x346)],HOSTED_CONVERSATION_OPERATIONS=[_0x24c2a5(0x281),_0x24c2a5(0x2f8),_0x24c2a5(0x248),_0x24c2a5(0x1e9),_0x24c2a5(0x398),_0x24c2a5(0x32a),_0x24c2a5(0x2bd),_0x24c2a5(0x2db),_0x24c2a5(0x32f),_0x24c2a5(0x368),_0x24c2a5(0x26a),_0x24c2a5(0x2d1),_0x24c2a5(0x37c),_0x24c2a5(0x20f),_0x24c2a5(0x20c),_0x24c2a5(0x347),_0x24c2a5(0x2ed),_0x24c2a5(0x2bb)],CONVERSATION_HOSTING_MAINTENANCE_OPERATIONS=[_0x24c2a5(0x24f),_0x24c2a5(0x3b2),_0x24c2a5(0x3b7)];export function nextReconnectDelay(_0x3c5ad5){const _0x57e44e=_0x24c2a5;return Math[_0x57e44e(0x31f)](RETRY_MAX_MS,RETRY_MIN_MS*(0x25e0+-0x4*-0x989+-0x11a*0x45)**Math[_0x57e44e(0x31f)](Math[_0x57e44e(0x2bf)](_0x3c5ad5,-0x1ea9+-0x1c24+0x3acd),0x67*0x47+-0x216+-0x1a6b*0x1));}function upgradeMetadata(_0x280248,_0x999044){const _0x11d100=_0x24c2a5,_0x380f75={..._0x280248??{}};if(process.env['MAR_NODE_SUPERVISED']==='1')_0x380f75[_0x11d100(0x377)]=!![];else delete _0x380f75[_0x11d100(0x377)];if(_0x999044[_0x11d100(0x1f4)]===_0x11d100(0x37f))delete _0x380f75[_0x11d100(0x395)];else _0x380f75[_0x11d100(0x395)]=_0x999044;return _0x380f75;}export class NodeConnector{[_0x24c2a5(0x204)]=crypto[_0x24c2a5(0x2a1)]()[_0x24c2a5(0x264)](/-/g,'');[_0x24c2a5(0x1e3)];[_0x24c2a5(0x2a2)];[_0x24c2a5(0x216)];[_0x24c2a5(0x2c2)];[_0x24c2a5(0x3ae)]=new RuntimeCredentialControlService({'send':envelope=>this[_0x24c2a5(0x1fc)](envelope)});[_0x24c2a5(0x367)]=new MarAgentRuntimeModelFactory(this[_0x24c2a5(0x3ae)]);[_0x24c2a5(0x3a3)]=new MarAgentModelTransportTestService({'modelFactory':this[_0x24c2a5(0x367)]});set[_0x24c2a5(0x2b5)](_0x56e5b4){const _0x51cfff=_0x24c2a5;this[_0x51cfff(0x1e3)][_0x51cfff(0x29b)](_0x56e5b4);}[_0x24c2a5(0x2b4)]=![];[_0x24c2a5(0x2ef)];[_0x24c2a5(0x267)];[_0x24c2a5(0x350)];[_0x24c2a5(0x373)];[_0x24c2a5(0x263)];[_0x24c2a5(0x35c)];[_0x24c2a5(0x313)]=![];[_0x24c2a5(0x26b)];[_0x24c2a5(0x30a)];[_0x24c2a5(0x229)];[_0x24c2a5(0x2e3)];[_0x24c2a5(0x1ef)];[_0x24c2a5(0x3a2)];[_0x24c2a5(0x2ea)];[_0x24c2a5(0x2fe)];[_0x24c2a5(0x349)];[_0x24c2a5(0x240)];[_0x24c2a5(0x1f9)]=new WorkbenchEventService(envelope=>this[_0x24c2a5(0x1fc)](envelope),(category,payload)=>{const _0xdf04a6=_0x24c2a5,sessionId=workbenchPayloadSessionId(this[_0xdf04a6(0x385)],category,payload);return sessionId===undefined||!this[_0xdf04a6(0x369)][_0xdf04a6(0x1ea)][_0xdf04a6(0x2f4)](sessionId);});[_0x24c2a5(0x34f)];[_0x24c2a5(0x3ab)];[_0x24c2a5(0x2f1)]=new RunDomainState();[_0x24c2a5(0x2c3)];[_0x24c2a5(0x243)];[_0x24c2a5(0x380)]=new SessionDomainState();[_0x24c2a5(0x369)];[_0x24c2a5(0x20e)];[_0x24c2a5(0x34a)];[_0x24c2a5(0x29d)];[_0x24c2a5(0x200)];[_0x24c2a5(0x25d)];[_0x24c2a5(0x30f)];[_0x24c2a5(0x207)];[_0x24c2a5(0x2e9)];[_0x24c2a5(0x215)];[_0x24c2a5(0x386)];[_0x24c2a5(0x202)];[_0x24c2a5(0x1df)];[_0x24c2a5(0x29a)];[_0x24c2a5(0x2f7)];[_0x24c2a5(0x2c5)];[_0x24c2a5(0x221)];[_0x24c2a5(0x34c)];[_0x24c2a5(0x24e)];[_0x24c2a5(0x22e)];[_0x24c2a5(0x372)];[_0x24c2a5(0x2b3)];[_0x24c2a5(0x28a)];[_0x24c2a5(0x2ba)];[_0x24c2a5(0x3ac)];[_0x24c2a5(0x384)];[_0x24c2a5(0x2a7)];[_0x24c2a5(0x33a)];[_0x24c2a5(0x227)];[_0x24c2a5(0x287)]=new NodeOperationRouter();[_0x24c2a5(0x242)];[_0x24c2a5(0x283)];[_0x24c2a5(0x28f)];[_0x24c2a5(0x337)];[_0x24c2a5(0x364)]=new CommandStateStore();[_0x24c2a5(0x1e4)]=new MissionRuntime(()=>undefined);[_0x24c2a5(0x3b5)]=new Map();[_0x24c2a5(0x362)]=new Map();[_0x24c2a5(0x363)]=new MissionMcpServer(this[_0x24c2a5(0x1e4)],sessionId=>{const _0x1a1d67=_0x24c2a5,mission=this[_0x1a1d67(0x1e4)][_0x1a1d67(0x378)](sessionId),session=this[_0x1a1d67(0x385)][_0x1a1d67(0x371)](sessionId);if(mission===undefined||session===undefined)return;if(mission[_0x1a1d67(0x319)]!==_0x1a1d67(0x301))this[_0x1a1d67(0x33a)][_0x1a1d67(0x394)](sessionId);this[_0x1a1d67(0x2be)](session,mission);});[_0x24c2a5(0x251)];[_0x24c2a5(0x25b)];[_0x24c2a5(0x2e0)];[_0x24c2a5(0x376)]=new WorkspaceDomainState();[_0x24c2a5(0x2e6)]=new WorkspaceWatchService(this[_0x24c2a5(0x376)],workspaceId=>this[_0x24c2a5(0x2d0)][_0x24c2a5(0x327)](workspaceId),workspaceId=>this[_0x24c2a5(0x2d0)][_0x24c2a5(0x3b8)](workspaceId),workspaceId=>this[_0x24c2a5(0x29e)]?.[_0x24c2a5(0x35a)](workspaceId));[_0x24c2a5(0x2d0)]=new WorkspaceSessionService(this[_0x24c2a5(0x376)],{'discover':workspaceId=>this[_0x24c2a5(0x253)](workspaceId),'listPage':workspaceId=>this[_0x24c2a5(0x356)](_0x24c2a5(0x298),{'workspaceId':workspaceId,'limit':0x14}),'active':workspaceId=>this[_0x24c2a5(0x2e6)][_0x24c2a5(0x308)](workspaceId,_0x24c2a5(0x261)),'invalidate':workspaceId=>void this[_0x24c2a5(0x29e)]?.[_0x24c2a5(0x3b9)](workspaceId,_0x24c2a5(0x261)),'onPending':(workspaceId,waitMs)=>nodeLog(_0x24c2a5(0x259),{'nodeId':this[_0x24c2a5(0x267)]?.[_0x24c2a5(0x252)],'workspaceId':workspaceId,'waitMs':waitMs})});[_0x24c2a5(0x223)]=new WorkspaceFileService(this[_0x24c2a5(0x376)],()=>this[_0x24c2a5(0x267)]?.[_0x24c2a5(0x3a4)]??[],workspaceId=>this[_0x24c2a5(0x243)][_0x24c2a5(0x334)](workspaceId));[_0x24c2a5(0x273)]=new WorkspaceUploadService(this[_0x24c2a5(0x376)],workspaceId=>{const _0x42914c=_0x24c2a5;this[_0x42914c(0x223)][_0x42914c(0x244)](workspaceId),this[_0x42914c(0x243)][_0x42914c(0x334)](workspaceId);});[_0x24c2a5(0x3a8)]=new WorkspaceChangeService(this[_0x24c2a5(0x376)]);[_0x24c2a5(0x29e)];[_0x24c2a5(0x270)];[_0x24c2a5(0x348)]=new RecentRunProjectionService(message=>this[_0x24c2a5(0x271)](_0x24c2a5(0x34d),message));[_0x24c2a5(0x385)]=new NodeRuntimeState(()=>this[_0x24c2a5(0x267)]?.[_0x24c2a5(0x252)]??_0x24c2a5(0x2ae),workspaceId=>this[_0x24c2a5(0x270)]?.[_0x24c2a5(0x1f1)](workspaceId),Date[_0x24c2a5(0x2fa)],(run,session,userMessage)=>this[_0x24c2a5(0x348)][_0x24c2a5(0x38b)](run,session,userMessage));[_0x24c2a5(0x2a3)]=new NodeMetrics();[_0x24c2a5(0x203)]=new RunEventService({'runtime':this[_0x24c2a5(0x385)],'metrics':this[_0x24c2a5(0x2a3)],'state':this[_0x24c2a5(0x2f1)],'isBootstrapSession':sessionId=>this[_0x24c2a5(0x369)][_0x24c2a5(0x1ea)][_0x24c2a5(0x2f4)](sessionId),'presentSession':session=>this[_0x24c2a5(0x207)][_0x24c2a5(0x201)](session),'rejectBootstrap':(sessionId,code)=>this[_0x24c2a5(0x369)][_0x24c2a5(0x325)](sessionId,code),'emitWorkbench':(category,payload)=>{const _0x4e48c1=_0x24c2a5;if(category===_0x4e48c1(0x284)&&isPlainRecord(payload)&&_0x4e48c1(0x26f)in payload)this[_0x4e48c1(0x274)](payload[_0x4e48c1(0x26f)]);else this[_0x4e48c1(0x3a7)](category,payload);},'cleanupAttachments':runId=>this[_0x24c2a5(0x29a)][_0x24c2a5(0x2d8)](runId),'expireImages':runId=>this[_0x24c2a5(0x29a)][_0x24c2a5(0x245)](runId),'scheduleContextRefresh':sessionId=>this[_0x24c2a5(0x3ac)][_0x24c2a5(0x2f5)](sessionId),'refreshWorkspaceSessions':workspaceId=>this[_0x24c2a5(0x29e)][_0x24c2a5(0x275)](workspaceId,_0x24c2a5(0x261)),'dispatchQueue':async(sessionId,delayMs=-0x473+-0xc7*0x2b+0x25e0)=>{const _0xd15b9f=_0x24c2a5;if(this[_0xd15b9f(0x2e0)][_0xd15b9f(0x332)]())return;if(delayMs>-0x1*0x220d+-0x1d4e+0x3f5b){this[_0xd15b9f(0x33a)][_0xd15b9f(0x2f5)](sessionId,delayMs);return;}await this[_0xd15b9f(0x33a)][_0xd15b9f(0x318)](sessionId);},'executionStarted':executionId=>this[_0x24c2a5(0x33a)][_0x24c2a5(0x3bc)](executionId),'keepRunActive':sessionId=>(this[_0x24c2a5(0x3b5)][_0x24c2a5(0x2f4)](sessionId)||this[_0x24c2a5(0x362)][_0x24c2a5(0x2f4)](sessionId))&&this[_0x24c2a5(0x1e4)][_0x24c2a5(0x378)](sessionId)?.[_0x24c2a5(0x319)]===_0x24c2a5(0x301),'executionTerminating':(executionId,status)=>{const _0x4bbbf3=_0x24c2a5,pending=this[_0x4bbbf3(0x33a)][_0x4bbbf3(0x332)](executionId);if(pending?.[_0x4bbbf3(0x285)]===undefined)return;const started=this[_0x4bbbf3(0x33a)][_0x4bbbf3(0x1f6)](executionId),blocked=this[_0x4bbbf3(0x1e4)][_0x4bbbf3(0x2b2)](pending[_0x4bbbf3(0x3a6)],status===_0x4bbbf3(0x2a9));if(blocked){this[_0x4bbbf3(0x29c)](pending[_0x4bbbf3(0x3a6)]),this[_0x4bbbf3(0x33a)][_0x4bbbf3(0x394)](pending[_0x4bbbf3(0x3a6)]);const terminalMission=this[_0x4bbbf3(0x1e4)][_0x4bbbf3(0x378)](pending[_0x4bbbf3(0x3a6)]),session=this[_0x4bbbf3(0x385)][_0x4bbbf3(0x371)](pending[_0x4bbbf3(0x3a6)]);if(terminalMission!==undefined&&session!==undefined)this[_0x4bbbf3(0x2be)](session,terminalMission);return;}if(status!==_0x4bbbf3(0x2a9)||started)return;this[_0x4bbbf3(0x29c)](pending[_0x4bbbf3(0x3a6)]);const retry={'sessionId':pending[_0x4bbbf3(0x3a6)],'timer':setTimeout(()=>{const _0x5d6ab3=_0x4bbbf3;this[_0x5d6ab3(0x3b5)][_0x5d6ab3(0x2ee)](retry[_0x5d6ab3(0x3a6)]);const mission=this[_0x5d6ab3(0x1e4)][_0x5d6ab3(0x378)](retry[_0x5d6ab3(0x3a6)]);if(mission?.[_0x5d6ab3(0x319)]!==_0x5d6ab3(0x301)||mission['id']!==pending[_0x5d6ab3(0x285)]?.['id']||mission[_0x5d6ab3(0x389)]!==pending[_0x5d6ab3(0x285)][_0x5d6ab3(0x389)])return;void this[_0x5d6ab3(0x386)][_0x5d6ab3(0x26c)]({'sessionId':retry[_0x5d6ab3(0x3a6)],'kind':_0x5d6ab3(0x278),'content':this[_0x5d6ab3(0x1e4)][_0x5d6ab3(0x358)](retry[_0x5d6ab3(0x3a6)],_0x5d6ab3(0x278)),'deliveryIntent':_0x5d6ab3(0x2af),'mission':{'id':mission['id'],'revision':mission[_0x5d6ab3(0x389)]},'secretEnvironment':pending[_0x5d6ab3(0x1e6)],...pending[_0x5d6ab3(0x2c7)]===undefined?{}:{'personalInstructions':pending[_0x5d6ab3(0x2c7)]},...pending[_0x5d6ab3(0x2bc)]===undefined?{}:{'marAgentModel':pending[_0x5d6ab3(0x2bc)]},...pending[_0x5d6ab3(0x2a0)]===undefined?{}:{'marAgentModels':pending[_0x5d6ab3(0x2a0)]},...pending[_0x5d6ab3(0x314)]===undefined?{}:{'marAgentRuntimeScopeId':pending[_0x5d6ab3(0x314)]}})[_0x5d6ab3(0x393)](()=>undefined);},-0x5625+-0x12c+0x91e9)};this[_0x4bbbf3(0x3b5)][_0x4bbbf3(0x306)](pending[_0x4bbbf3(0x3a6)],retry),retry[_0x4bbbf3(0x209)][_0x4bbbf3(0x379)]();},'releaseExecution':executionId=>{const _0x41d743=_0x24c2a5;this[_0x41d743(0x363)][_0x41d743(0x28d)](executionId),this[_0x41d743(0x33a)][_0x41d743(0x38f)](executionId);}});[_0x24c2a5(0x3ad)]=new SessionWatchSlotCoordinator();[_0x24c2a5(0x27f)]=new NativeSessionWatchService({'resolve':async sessionId=>this[_0x24c2a5(0x385)][_0x24c2a5(0x371)](sessionId)??this[_0x24c2a5(0x20e)][_0x24c2a5(0x36a)](sessionId),'managedActive':session=>hasManagedActiveRun(this[_0x24c2a5(0x385)],session),'suspended':sessionId=>this[_0x24c2a5(0x215)][_0x24c2a5(0x27a)](sessionId),'refreshActivity':session=>this[_0x24c2a5(0x34a)][_0x24c2a5(0x2cb)](session),'present':session=>this[_0x24c2a5(0x207)][_0x24c2a5(0x201)](session),'readPage':(session,limit)=>this[_0x24c2a5(0x34a)][_0x24c2a5(0x2cf)](session,{'limit':limit}),'readHistoryPage':(session,limit)=>this[_0x24c2a5(0x34a)][_0x24c2a5(0x351)](session,{'limit':limit}),'convergePage':convergeConversationWatchPage,'composeRuntimePage':composeConversationRuntimePage,'projectInitialPage':(session,page,_unit,limit)=>{const _0x44fdcf=_0x24c2a5,context=this[_0x44fdcf(0x3ac)][_0x44fdcf(0x3b0)](session['id']);return this[_0x44fdcf(0x3ac)][_0x44fdcf(0x2f5)](session),{'kind':_0x44fdcf(0x1fb),'sequence':this[_0x44fdcf(0x1f9)][_0x44fdcf(0x343)](),'session':this[_0x44fdcf(0x207)][_0x44fdcf(0x201)](session),'runs':this[_0x44fdcf(0x385)][_0x44fdcf(0x294)](session['id']),'queue':this[_0x44fdcf(0x227)][_0x44fdcf(0x3b0)](session['id']),'context':context,'conversation':this[_0x44fdcf(0x29d)][_0x44fdcf(0x352)](session,page,limit)};},'emitSession':session=>this[_0x24c2a5(0x3a5)]({'session':session}),'emitPage':(session,page)=>this[_0x24c2a5(0x2da)](_0x24c2a5(0x284),{'sessionId':session['id'],'snapshot':this[_0x24c2a5(0x29d)][_0x24c2a5(0x352)](session,page,-0x1c1c+-0x16b5*-0x1+-0x571*-0x1)}),'nodeId':()=>this[_0x24c2a5(0x267)]?.[_0x24c2a5(0x252)]??_0x24c2a5(0x2ae),'nodeGeneration':()=>this[_0x24c2a5(0x204)],'emitWatchEvent':payload=>this[_0x24c2a5(0x271)](_0x24c2a5(0x2d2),payload),'sessionWatchSlots':this[_0x24c2a5(0x3ad)],'log':nodeLog});constructor(_0x349336={}){const _0x1987a3=_0x24c2a5;this[_0x1987a3(0x267)]=_0x349336[_0x1987a3(0x267)],this[_0x1987a3(0x2fe)]=_0x349336[_0x1987a3(0x2fe)],this[_0x1987a3(0x240)]=_0x349336[_0x1987a3(0x240)]??CLAUDE_APPROVAL_TIMEOUT_MS,this[_0x1987a3(0x350)]=_0x349336[_0x1987a3(0x373)]!==undefined,this[_0x1987a3(0x373)]=_0x349336[_0x1987a3(0x373)]??unavailableCapabilities(),this[_0x1987a3(0x35c)]=_0x349336[_0x1987a3(0x35c)]??probeBubblewrap,this[_0x1987a3(0x2e0)]=new NodeUpgradeCoordinator(()=>{const _0x189516=_0x1987a3;if(this[_0x189516(0x267)]===undefined)throw new Error(_0x189516(0x2b8));return nodeUpgradeRequestPath(nodeDatabasePath(this[_0x189516(0x267)],this[_0x189516(0x2fe)]));},()=>this[_0x1987a3(0x2f1)][_0x1987a3(0x301)][_0x1987a3(0x3a0)],_0x5d85df=>{const _0x5c9f55=_0x1987a3;this[_0x5c9f55(0x373)]={...this[_0x5c9f55(0x373)],'metadata':upgradeMetadata(this[_0x5c9f55(0x373)][_0x5c9f55(0x2a5)],_0x5d85df)},this[_0x5c9f55(0x1e3)]?.[_0x5c9f55(0x271)](_0x5c9f55(0x373),this[_0x5c9f55(0x373)]);},_0x349336[_0x1987a3(0x25f)]??(()=>{const _0x1184ee=_0x1987a3;void this[_0x1184ee(0x2b1)]()[_0x1184ee(0x31c)](()=>process[_0x1184ee(0x2e4)](-0xe29+-0x6d1+-0x2d*-0x79));})),this[_0x1987a3(0x373)]={...this[_0x1987a3(0x373)],'metadata':upgradeMetadata(this[_0x1987a3(0x373)][_0x1987a3(0x2a5)],this[_0x1987a3(0x2e0)][_0x1987a3(0x3b0)]())};const _0x270e1c=_0x349336[_0x1987a3(0x263)]??detectCapabilitiesAsync;this[_0x1987a3(0x263)]=async()=>{const _0x27079a=_0x1987a3,_0x26fb31=await _0x270e1c();return this[_0x27079a(0x2cc)]({..._0x26fb31,'metadata':upgradeMetadata(_0x26fb31[_0x27079a(0x2a5)],this[_0x27079a(0x2e0)][_0x27079a(0x3b0)]())});},this[_0x1987a3(0x349)]=_0x349336[_0x1987a3(0x349)]??!![],this[_0x1987a3(0x34f)]=_0x349336[_0x1987a3(0x34f)]===undefined?undefined:new FakeTestRunner(_0x349336[_0x1987a3(0x34f)]),this[_0x1987a3(0x3ab)]=_0x349336[_0x1987a3(0x3ab)],this[_0x1987a3(0x29a)]=new RunAttachmentService(_0x2f0c73=>this[_0x1987a3(0x2ba)][_0x1987a3(0x2ad)](_0x2f0c73[_0x1987a3(0x2c4)])[_0x1987a3(0x312)](_0x2f0c73)),this[_0x1987a3(0x2c5)]=new CodexRunner(_0x349336[_0x1987a3(0x2c5)],_0x349336[_0x1987a3(0x311)]),this[_0x1987a3(0x221)]=new CodexManagedRunController(this[_0x1987a3(0x2c5)],{'available':()=>this[_0x1987a3(0x373)][_0x1987a3(0x387)][_0x1987a3(0x328)],'intercepted':()=>this[_0x1987a3(0x34f)]!==undefined,'active':this[_0x1987a3(0x2f1)][_0x1987a3(0x301)],'addActive':_0x40c6bb=>this[_0x1987a3(0x2f1)][_0x1987a3(0x301)][_0x1987a3(0x33b)](_0x40c6bb),'removeActive':_0xec201c=>this[_0x1987a3(0x2f1)][_0x1987a3(0x301)][_0x1987a3(0x2ee)](_0xec201c),'adopt':_0x4dec14=>this[_0x1987a3(0x385)][_0x1987a3(0x31a)](_0x4dec14),'session':_0x18c72e=>this[_0x1987a3(0x385)][_0x1987a3(0x371)](_0x18c72e),'runStatus':_0x364f69=>this[_0x1987a3(0x385)][_0x1987a3(0x23b)](_0x364f69)?.[_0x1987a3(0x319)],'run':_0x29960d=>this[_0x1987a3(0x385)][_0x1987a3(0x23b)](_0x29960d),'interrupted':_0x9c258a=>this[_0x1987a3(0x2f1)][_0x1987a3(0x39d)][_0x1987a3(0x2f4)](_0x9c258a),'parseAttachments':parseRunnerImageAttachments,'materialize':(_0x155a65,_0x400874)=>this[_0x1987a3(0x29a)][_0x1987a3(0x2c1)](_0x155a65,_0x400874),'completeCancelled':_0x389768=>this[_0x1987a3(0x200)][_0x1987a3(0x231)](_0x389768),'promoteSession':(_0x3c7049,_0x599467)=>this[_0x1987a3(0x369)][_0x1987a3(0x22c)](_0x3c7049,_0x599467),'send':(_0x568558,_0x15efbe)=>this[_0x1987a3(0x271)](_0x568558,_0x15efbe),'emit':(_0xd8ae4d,_0x43f5ac,_0x28e35c,_0x2d49ad)=>this[_0x1987a3(0x2c3)][_0x1987a3(0x230)](_0xd8ae4d,_0x43f5ac,_0x28e35c,_0x2d49ad),'cancel':(_0x52edd5,_0x36f690,_0x2eb5e5,_0x2449c9,_0x3cffc4)=>this[_0x1987a3(0x200)][_0x1987a3(0x310)](_0x52edd5,_0x36f690,_0x2eb5e5,_0x2449c9,_0x3cffc4),'createApproval':_0x445948=>this[_0x1987a3(0x385)][_0x1987a3(0x355)](_0x445948),'publishApproval':_0x4df05d=>this[_0x1987a3(0x2c3)][_0x1987a3(0x258)](_0x4df05d),'emitItem':(_0x20fa27,_0x4d6039)=>this[_0x1987a3(0x20a)](_0x20fa27,_0x4d6039),'appendImages':(_0x2cd416,_0x160332)=>this[_0x1987a3(0x29a)][_0x1987a3(0x365)](_0x2cd416,_0x160332[_0x1987a3(0x309)](isRunnerImageAttachment)),'syncTitle':(_0x30ec2f,_0x5d5d4a,_0x5f3fa6)=>this[_0x1987a3(0x30f)][_0x1987a3(0x214)](_0x30ec2f,_0x5d5d4a,_0x5f3fa6),'commandState':(_0x249f4c,_0x394b88)=>this[_0x1987a3(0x364)][_0x1987a3(0x378)](_0x249f4c,_0x394b88),'setCommandState':(_0x5f1d2b,_0x5b8cb6)=>this[_0x1987a3(0x364)][_0x1987a3(0x306)](_0x5f1d2b,_0x5b8cb6),'clearCommandState':(_0xf34a37,_0x39fe05)=>this[_0x1987a3(0x364)][_0x1987a3(0x295)](_0xf34a37,_0x39fe05),'commandStates':_0x1da159=>this[_0x1987a3(0x364)][_0x1987a3(0x2f3)](_0x1da159),'hasActiveSessionLease':_0x3ac166=>this[_0x1987a3(0x385)][_0x1987a3(0x32b)](_0x3ac166),'fast':_0xd4841c=>this[_0x1987a3(0x356)](_0x1987a3(0x226),{'runner':_0x1987a3(0x387),'commandId':_0x1987a3(0x286),'input':_0xd4841c})}),this[_0x1987a3(0x2c5)][_0x1987a3(0x3a9)](_0xb94fce=>this[_0x1987a3(0x221)][_0x1987a3(0x39b)](_0xb94fce)),this[_0x1987a3(0x34c)]=new ClaudeCodeRunner(_0x349336[_0x1987a3(0x34c)]),this[_0x1987a3(0x24e)]=new OpenCodeRunner(_0x349336[_0x1987a3(0x24e)]),this[_0x1987a3(0x22e)]=new MarAgentRunner(),this[_0x1987a3(0x22e)][_0x1987a3(0x2ff)]((_0x29e1eb,_0x54d0d1)=>this[_0x1987a3(0x29a)][_0x1987a3(0x217)](_0x29e1eb,_0x54d0d1)),this[_0x1987a3(0x372)]=new MarAgentManagedRunController(this[_0x1987a3(0x22e)],{'active':this[_0x1987a3(0x2f1)][_0x1987a3(0x301)],'adopt':_0x3db921=>this[_0x1987a3(0x385)][_0x1987a3(0x31a)](_0x3db921),'promote':(_0xe7375a,_0x5b75a9)=>this[_0x1987a3(0x369)][_0x1987a3(0x22c)](_0xe7375a,_0x5b75a9),'syncTitle':(_0x49740f,_0x3efc4d)=>this[_0x1987a3(0x30f)][_0x1987a3(0x214)](_0x49740f,_0x49740f,_0x3efc4d),'emit':(_0x880d0f,_0x53ea17,_0x4965aa,_0x155be0)=>this[_0x1987a3(0x2c3)][_0x1987a3(0x230)](_0x880d0f,_0x53ea17,_0x4965aa,_0x155be0),'emitItem':(_0x5681a9,_0x208307)=>this[_0x1987a3(0x20a)](_0x5681a9,_0x208307),'createApproval':_0x168f50=>this[_0x1987a3(0x385)][_0x1987a3(0x355)](_0x168f50),'publishApproval':_0x1b56b7=>this[_0x1987a3(0x2c3)][_0x1987a3(0x258)](_0x1b56b7),'run':_0x2ccc52=>this[_0x1987a3(0x385)][_0x1987a3(0x23b)](_0x2ccc52),'commandState':(_0x10d28d,_0x9f8922)=>this[_0x1987a3(0x364)][_0x1987a3(0x378)](_0x10d28d,_0x9f8922),'setCommandState':(_0x446b4c,_0x256a66)=>this[_0x1987a3(0x364)][_0x1987a3(0x306)](_0x446b4c,_0x256a66),'clearCommandState':(_0x295fa6,_0x4cb049)=>this[_0x1987a3(0x364)][_0x1987a3(0x295)](_0x295fa6,_0x4cb049),'commandStates':_0xcc3362=>this[_0x1987a3(0x364)][_0x1987a3(0x2f3)](_0xcc3362),'webSearch':(_0x413324,_0x2c0116)=>this[_0x1987a3(0x361)](_0x413324,_0x2c0116),'registerGeneratedImages':(_0x503b0d,_0x2a1726,_0x383946)=>{const _0x4a78fc=_0x1987a3,_0x218a46=this[_0x4a78fc(0x385)][_0x4a78fc(0x23a)](_0x503b0d),_0x2a42c3=_0x218a46===undefined?undefined:this[_0x4a78fc(0x385)][_0x4a78fc(0x371)](_0x218a46[_0x4a78fc(0x3a6)]);return _0x2a42c3===undefined?[]:this[_0x4a78fc(0x22e)][_0x4a78fc(0x1f0)](_0x2a42c3,_0x2a1726,_0x383946);}},{'modelFactory':this[_0x1987a3(0x367)]}),this[_0x1987a3(0x22e)][_0x1987a3(0x299)](_0x2e3183=>this[_0x1987a3(0x372)][_0x1987a3(0x322)](_0x2e3183)),this[_0x1987a3(0x2b3)]=new OpenCodeManagedRunController(this[_0x1987a3(0x24e)],{'intercepted':()=>this[_0x1987a3(0x34f)]!==undefined,'active':this[_0x1987a3(0x2f1)][_0x1987a3(0x301)],'parseAttachments':parseRunnerImageAttachments,'persistAttachments':(_0x5a228f,_0x14ef48,_0xcbfe7b)=>this[_0x1987a3(0x29a)][_0x1987a3(0x220)](_0x5a228f,_0x14ef48+_0x1987a3(0x257),_0xcbfe7b),'emit':(_0x54b66d,_0x53a45c,_0x1ca5a4,_0x45e77e)=>this[_0x1987a3(0x2c3)][_0x1987a3(0x230)](_0x54b66d,_0x53a45c,_0x1ca5a4,_0x45e77e),'emitItem':(_0x1d1081,_0x2bc6f3)=>this[_0x1987a3(0x20a)](_0x1d1081,_0x2bc6f3),'adopt':_0x46baab=>this[_0x1987a3(0x385)][_0x1987a3(0x31a)](_0x46baab),'run':_0x2f57e4=>{const _0x2d4ab4=_0x1987a3,_0x4b9cef=this[_0x2d4ab4(0x385)][_0x2d4ab4(0x23b)](_0x2f57e4);if(_0x4b9cef===undefined)throw new Error(_0x2d4ab4(0x241));return _0x4b9cef;},'hasActiveSessionLease':_0x207256=>this[_0x1987a3(0x385)][_0x1987a3(0x32b)](_0x207256),'promote':(_0x3da47a,_0x1df698)=>this[_0x1987a3(0x369)][_0x1987a3(0x22c)](_0x3da47a,_0x1df698),'rememberNative':(_0x15d4a4,_0x1f77fa)=>this[_0x1987a3(0x30f)][_0x1987a3(0x2f2)](_0x15d4a4,_0x1f77fa),'send':(_0x3c3718,_0x24ec15)=>this[_0x1987a3(0x271)](_0x3c3718,_0x24ec15),'createApproval':_0x47c55c=>this[_0x1987a3(0x385)][_0x1987a3(0x355)](_0x47c55c),'expireApproval':_0x46c19b=>{const _0x41a943=_0x1987a3;this[_0x41a943(0x385)][_0x41a943(0x2b9)](_0x46c19b);},'publishApproval':_0x215c7f=>this[_0x1987a3(0x2c3)][_0x1987a3(0x258)](_0x215c7f),'commandState':(_0x474472,_0x42f558)=>this[_0x1987a3(0x364)][_0x1987a3(0x378)](_0x474472,_0x42f558),'setCommandState':(_0x19a37f,_0x5b3de4)=>this[_0x1987a3(0x364)][_0x1987a3(0x306)](_0x19a37f,_0x5b3de4),'clearCommandState':(_0x3a5075,_0x265cf3)=>this[_0x1987a3(0x364)][_0x1987a3(0x295)](_0x3a5075,_0x265cf3),'commandStates':_0x54b823=>this[_0x1987a3(0x364)][_0x1987a3(0x2f3)](_0x54b823)},this[_0x1987a3(0x240)]),this[_0x1987a3(0x28a)]=new ClaudeManagedRunController(this[_0x1987a3(0x34c)],{'intercepted':()=>this[_0x1987a3(0x34f)]!==undefined,'active':this[_0x1987a3(0x2f1)][_0x1987a3(0x301)],'parseAttachments':parseRunnerImageAttachments,'emit':(_0xf031b7,_0x541827,_0x34ed01,_0x323756)=>this[_0x1987a3(0x2c3)][_0x1987a3(0x230)](_0xf031b7,_0x541827,_0x34ed01,_0x323756),'adopt':_0x1e1d21=>this[_0x1987a3(0x385)][_0x1987a3(0x31a)](_0x1e1d21),'run':_0x3f94b1=>this[_0x1987a3(0x385)][_0x1987a3(0x23b)](_0x3f94b1),'hasActiveSessionLease':_0xffdf8b=>this[_0x1987a3(0x385)][_0x1987a3(0x32b)](_0xffdf8b),'session':_0x594c0c=>this[_0x1987a3(0x385)][_0x1987a3(0x371)](_0x594c0c),'completeCancelled':_0x1c8209=>this[_0x1987a3(0x200)][_0x1987a3(0x231)](_0x1c8209),'requestUserInput':(_0xa8f63c,_0x23abd0,_0x591ed8)=>this[_0x1987a3(0x200)][_0x1987a3(0x33d)](_0xa8f63c,_0x23abd0,_0x591ed8),'requestApproval':(_0x1efb1d,_0x2a700a,_0x985dfc)=>this[_0x1987a3(0x200)][_0x1987a3(0x280)](_0x1efb1d,_0x2a700a,_0x985dfc),'rememberNative':(_0x5475f2,_0x551cb4)=>this[_0x1987a3(0x30f)][_0x1987a3(0x2f2)](_0x5475f2,_0x551cb4),'promote':(_0x4ed56a,_0x161903)=>this[_0x1987a3(0x369)][_0x1987a3(0x22c)](_0x4ed56a,_0x161903),'send':(_0x4705d5,_0x4a772a)=>this[_0x1987a3(0x271)](_0x4705d5,_0x4a772a),'emitItem':(_0x143c30,_0x3914f0)=>this[_0x1987a3(0x20a)](_0x143c30,_0x3914f0),'syncTitle':(_0x2f3380,_0x1da4af,_0x279e51)=>this[_0x1987a3(0x30f)][_0x1987a3(0x214)](_0x2f3380,_0x1da4af,_0x279e51),'setChannelToken':(_0x1aa42a,_0x1a1e51)=>this[_0x1987a3(0x385)][_0x1987a3(0x2b7)](_0x1aa42a,_0x1a1e51),'commandState':(_0xe1d572,_0x14df7f)=>this[_0x1987a3(0x364)][_0x1987a3(0x378)](_0xe1d572,_0x14df7f),'setCommandState':(_0xe95796,_0x2f54bf)=>this[_0x1987a3(0x364)][_0x1987a3(0x306)](_0xe95796,_0x2f54bf),'clearCommandState':(_0x48194d,_0x359c62)=>this[_0x1987a3(0x364)][_0x1987a3(0x295)](_0x48194d,_0x359c62),'commandStates':_0x310556=>this[_0x1987a3(0x364)][_0x1987a3(0x2f3)](_0x310556)}),this[_0x1987a3(0x2ba)]=new RunnerRegistry([this[_0x1987a3(0x24e)],this[_0x1987a3(0x22e)],this[_0x1987a3(0x2c5)],this[_0x1987a3(0x34c)],...this[_0x1987a3(0x34f)]===undefined?[]:[this[_0x1987a3(0x34f)]]]),this[_0x1987a3(0x30f)]=new ManagedRunnerSessionService(this[_0x1987a3(0x385)],this[_0x1987a3(0x2ba)],_0x871c01=>this[_0x1987a3(0x3a5)]({'session':this[_0x1987a3(0x207)][_0x1987a3(0x201)](_0x871c01)})),this[_0x1987a3(0x200)]=new RunnerInteractionService({'runtime':this[_0x1987a3(0x385)],'state':this[_0x1987a3(0x2f1)],'codex':()=>this[_0x1987a3(0x2c5)],'claude':()=>this[_0x1987a3(0x34c)],'runners':this[_0x1987a3(0x2ba)],'emitRun':(_0x11f5be,_0x2d2c63,_0x17b45d,_0x588ec6)=>this[_0x1987a3(0x2c3)][_0x1987a3(0x230)](_0x11f5be,_0x2d2c63,_0x17b45d,_0x588ec6),'emitItem':(_0x47fc45,_0x31bea4)=>this[_0x1987a3(0x20a)](_0x47fc45,_0x31bea4),'approvalTimeoutMs':this[_0x1987a3(0x240)],'publishApproval':_0x9c1ea4=>this[_0x1987a3(0x2c3)][_0x1987a3(0x258)](_0x9c1ea4)}),this[_0x1987a3(0x25d)]=new RunnerChannelMessageService({'interactions':this[_0x1987a3(0x200)],'send':(_0x7d816b,_0x39b265,_0x5641de)=>this[_0x1987a3(0x271)](_0x7d816b,_0x39b265,_0x5641de)}),this[_0x1987a3(0x207)]=new SessionPresentationService({'database':()=>this[_0x1987a3(0x270)],'runtime':this[_0x1987a3(0x385)],'commands':this[_0x1987a3(0x364)],'runners':this[_0x1987a3(0x2ba)],'capabilities':()=>this[_0x1987a3(0x373)],'hasManagedActiveRun':_0x456b3c=>hasManagedActiveRun(this[_0x1987a3(0x385)],_0x456b3c),'externalActivity':_0x5500d0=>this[_0x1987a3(0x380)][_0x1987a3(0x31d)][_0x1987a3(0x378)](_0x5500d0),'projectionForNative':_0x20623f=>this[_0x1987a3(0x20e)][_0x1987a3(0x233)](_0x20623f)}),this[_0x1987a3(0x20e)]=new NativeSessionProjectionService({'database':()=>this[_0x1987a3(0x270)],'nodeId':()=>this[_0x1987a3(0x267)]?.[_0x1987a3(0x252)]??_0x1987a3(0x21b),'runtime':this[_0x1987a3(0x385)],'runners':this[_0x1987a3(0x2ba)],'capabilities':()=>this[_0x1987a3(0x373)],'state':this[_0x1987a3(0x380)],'commands':this[_0x1987a3(0x364)],'present':_0x36d584=>this[_0x1987a3(0x207)][_0x1987a3(0x201)](_0x36d584)}),this[_0x1987a3(0x34a)]=new ConversationHistoryService({'runtime':this[_0x1987a3(0x385)],'runners':this[_0x1987a3(0x2ba)],'capabilities':()=>this[_0x1987a3(0x373)],'attachments':this[_0x1987a3(0x29a)],'snapshotSequence':()=>this[_0x1987a3(0x1f9)][_0x1987a3(0x343)](),'hasManagedActiveRun':_0xd32650=>hasManagedActiveRun(this[_0x1987a3(0x385)],_0xd32650),'setExternalActivity':(_0x4080ac,_0x2fc4fa)=>this[_0x1987a3(0x380)][_0x1987a3(0x31d)][_0x1987a3(0x306)](_0x4080ac,_0x2fc4fa)}),this[_0x1987a3(0x29d)]=new ConversationSegmentService((_0x570d2e,_0x1540cb)=>this[_0x1987a3(0x34a)][_0x1987a3(0x2cf)](_0x570d2e,_0x1540cb)),this[_0x1987a3(0x3ac)]=new SessionContextService({'runners':this[_0x1987a3(0x2ba)],'session':_0xb85675=>this[_0x1987a3(0x385)][_0x1987a3(0x371)](_0xb85675),'stopped':()=>this[_0x1987a3(0x2b4)],'publish':_0x5c7cee=>this[_0x1987a3(0x3a5)](_0x5c7cee)}),this[_0x1987a3(0x384)]=new RunWorkbenchService({'runtime':this[_0x1987a3(0x385)],'readImage':async(_0x3af73e,_0x22c967)=>this[_0x1987a3(0x29a)][_0x1987a3(0x2cf)](_0x3af73e,_0x22c967)??await this[_0x1987a3(0x29a)][_0x1987a3(0x2dd)](_0x3af73e,_0x22c967),'respondUserInput':(_0x39336c,_0x19216f,_0x4caca6)=>this[_0x1987a3(0x200)][_0x1987a3(0x345)](_0x39336c,_0x19216f,_0x4caca6),'pauseQueue':_0xf230d3=>this[_0x1987a3(0x227)][_0x1987a3(0x291)](_0xf230d3),'emitRun':(_0x3ba748,_0x155b7d,_0x29b1d1,_0x35922a)=>this[_0x1987a3(0x2c3)][_0x1987a3(0x230)](_0x3ba748,_0x155b7d,_0x29b1d1,_0x35922a),'control':(_0x1567e0,_0x1fcded)=>this[_0x1987a3(0x2a2)][_0x1987a3(0x341)](JSON[_0x1987a3(0x272)](createEnvelope(_0x1567e0,_0x1fcded))),'markInterrupted':_0x67fa38=>this[_0x1987a3(0x2f1)][_0x1987a3(0x39d)][_0x1987a3(0x33b)](_0x67fa38)}),this[_0x1987a3(0x2a7)]=new SessionQueryService({'runtime':this[_0x1987a3(0x385)],'runners':this[_0x1987a3(0x2ba)],'resolve':_0x3c6d40=>this[_0x1987a3(0x20e)][_0x1987a3(0x250)](_0x3c6d40),'present':_0x5d6ace=>this[_0x1987a3(0x207)][_0x1987a3(0x201)](_0x5d6ace),'history':(_0x3f0ae6,_0xfd5b0f)=>this[_0x1987a3(0x34a)][_0x1987a3(0x2cf)](_0x3f0ae6,_0xfd5b0f),'segments':(_0x45551d,_0x677dac)=>this[_0x1987a3(0x29d)][_0x1987a3(0x2cf)](_0x45551d,_0x677dac),'context':this[_0x1987a3(0x3ac)],'discover':(_0x2a6811,_0x1f85de)=>this[_0x1987a3(0x20e)][_0x1987a3(0x1f8)](_0x2a6811,_0x1f85de),'workspaceIdForCwd':_0x43a23a=>this[_0x1987a3(0x270)]?.[_0x1987a3(0x391)]()[_0x1987a3(0x2ca)](_0x3892d6=>_0x3892d6[_0x1987a3(0x2de)]===_0x43a23a)?.['id']}),this[_0x1987a3(0x33a)]=new ContinuousRunCoordinator({'runtime':this[_0x1987a3(0x385)],'emitQueue':(_0x5554c3,_0x35ba71)=>this[_0x1987a3(0x2c3)][_0x1987a3(0x383)](_0x5554c3,_0x35ba71),'clearImages':_0x29053f=>this[_0x1987a3(0x29a)][_0x1987a3(0x295)](_0x29053f),'cleanupAttachments':_0x5a1866=>this[_0x1987a3(0x29a)][_0x1987a3(0x2d8)](_0x5a1866),'migrateAssets':(_0x10d3d6,_0x5e4ac7)=>this[_0x1987a3(0x29a)][_0x1987a3(0x23e)](_0x10d3d6,_0x5e4ac7),'emitRun':(_0x422a05,_0x8df546,_0x178878,_0x3fab6d)=>this[_0x1987a3(0x2c3)][_0x1987a3(0x230)](_0x422a05,_0x8df546,_0x178878,_0x3fab6d),'emitConversation':_0xa64d1=>this[_0x1987a3(0x274)](_0xa64d1),'control':(_0x4b90f1,_0x5c4dcc)=>this[_0x1987a3(0x2a2)][_0x1987a3(0x341)](JSON[_0x1987a3(0x272)](createEnvelope(_0x4b90f1,_0x5c4dcc))),'stopped':()=>this[_0x1987a3(0x2b4)],'markInterrupted':_0xec685=>this[_0x1987a3(0x2f1)][_0x1987a3(0x39d)][_0x1987a3(0x33b)](_0xec685),'mcps':_0x202b8f=>this[_0x1987a3(0x270)]?.[_0x1987a3(0x24b)](_0x202b8f)??[],'afterExecutionStarted':async _0x267c36=>{const _0x30f600=_0x1987a3;if(_0x267c36[_0x30f600(0x285)]===undefined)return;const _0x53af19=this[_0x30f600(0x1e4)][_0x30f600(0x378)](_0x267c36[_0x30f600(0x3a6)]);if(_0x53af19?.[_0x30f600(0x319)]!==_0x30f600(0x301)||_0x53af19['id']!==_0x267c36[_0x30f600(0x285)]['id']||_0x53af19[_0x30f600(0x389)]!==_0x267c36[_0x30f600(0x285)][_0x30f600(0x389)])return;const _0x24f51e=this[_0x30f600(0x1e4)][_0x30f600(0x38a)](_0x267c36[_0x30f600(0x3a6)]),_0x4bab95=this[_0x30f600(0x385)][_0x30f600(0x371)](_0x267c36[_0x30f600(0x3a6)]);if(_0x24f51e!==undefined&&_0x4bab95!==undefined)this[_0x30f600(0x2be)](_0x4bab95,_0x24f51e);await this[_0x30f600(0x297)]({'sessionId':_0x267c36[_0x30f600(0x3a6)],'mission':{'id':_0x53af19['id'],'revision':_0x53af19[_0x30f600(0x389)]},'secretEnvironment':_0x267c36[_0x30f600(0x1e6)],..._0x267c36[_0x30f600(0x2c7)]===undefined?{}:{'personalInstructions':_0x267c36[_0x30f600(0x2c7)]},..._0x267c36[_0x30f600(0x2bc)]===undefined?{}:{'marAgentModel':_0x267c36[_0x30f600(0x2bc)]},..._0x267c36[_0x30f600(0x2a0)]===undefined?{}:{'marAgentModels':_0x267c36[_0x30f600(0x2a0)]},..._0x267c36[_0x30f600(0x314)]===undefined?{}:{'marAgentRuntimeScopeId':_0x267c36[_0x30f600(0x314)]}});},'missionMcp':async _0x2838e3=>{const _0xc4eba3=_0x1987a3;if(_0x2838e3[_0xc4eba3(0x285)]===undefined)throw new Error(_0xc4eba3(0x2e8));const _0x386bbb=await this[_0xc4eba3(0x363)][_0xc4eba3(0x2e2)]({'executionId':_0x2838e3[_0xc4eba3(0x35b)],'sessionId':_0x2838e3[_0xc4eba3(0x3a6)],'missionId':_0x2838e3[_0xc4eba3(0x285)]['id'],'revision':_0x2838e3[_0xc4eba3(0x285)][_0xc4eba3(0x389)]});return{'installation':{'targetKind':_0xc4eba3(0x32d),'targetId':_0x2838e3[_0xc4eba3(0x2ab)],'catalogEntryId':_0xc4eba3(0x21d),'serverName':_0xc4eba3(0x339),'displayName':_0xc4eba3(0x353),'version':_0xc4eba3(0x3af),'enabled':!![],'runtime':{'transport':_0xc4eba3(0x1fa),'url':_0xc4eba3(0x36e),'headers':{}},'configuration':_0x386bbb[_0xc4eba3(0x2e2)],'installedAt':Date[_0xc4eba3(0x2fa)](),..._0x386bbb[_0xc4eba3(0x2e2)]},'secrets':_0x386bbb[_0xc4eba3(0x23f)]};}}),this[_0x1987a3(0x227)]=new WorkspaceQueueWorkbenchService({'runtime':this[_0x1987a3(0x385)],'coordinator':this[_0x1987a3(0x33a)],'emit':(_0x11326d,_0x125413)=>this[_0x1987a3(0x2c3)][_0x1987a3(0x383)](_0x11326d,_0x125413),'prepareInput':(_0x5ef2a0,_0x27f727,_0x2bfc68)=>this[_0x1987a3(0x2ba)][_0x1987a3(0x2ad)](_0x5ef2a0)[_0x1987a3(0x21c)](_0x27f727,_0x2bfc68)}),this[_0x1987a3(0x369)]=new SessionIdentityService({'runtime':this[_0x1987a3(0x385)],'persist':(_0x3baa88,_0x320d96)=>{const _0x19db44=_0x1987a3;if(_0x3baa88[_0x19db44(0x2b0)]===null||_0x3baa88[_0x19db44(0x37d)]===null||_0x3baa88[_0x19db44(0x2c6)]===null)return;this[_0x19db44(0x270)]?.[_0x19db44(0x26e)]({'runner':_0x3baa88[_0x19db44(0x2c4)],'externalSessionId':_0x320d96,'workspaceId':_0x3baa88[_0x19db44(0x2ab)],'model':_0x3baa88[_0x19db44(0x2b0)],'effort':_0x3baa88[_0x19db44(0x37d)],'access':_0x3baa88[_0x19db44(0x2c6)]});},'migrateCommands':(_0x846ed2,_0x5b8131)=>this[_0x1987a3(0x364)][_0x1987a3(0x37a)](_0x846ed2,_0x5b8131),'migrateMission':(_0x33cdbe,_0x61397e)=>{const _0xc0419a=_0x1987a3;this[_0xc0419a(0x1e4)][_0xc0419a(0x292)](_0x33cdbe,_0x61397e),this[_0xc0419a(0x363)][_0xc0419a(0x292)](_0x33cdbe,_0x61397e);const _0x275a3f=this[_0xc0419a(0x3b5)][_0xc0419a(0x378)](_0x33cdbe);_0x275a3f!==undefined&&(this[_0xc0419a(0x3b5)][_0xc0419a(0x2ee)](_0x33cdbe),_0x275a3f[_0xc0419a(0x3a6)]=_0x61397e,this[_0xc0419a(0x3b5)][_0xc0419a(0x306)](_0x61397e,_0x275a3f));const _0x4ef2d5=this[_0xc0419a(0x362)][_0xc0419a(0x378)](_0x33cdbe);_0x4ef2d5!==undefined&&(this[_0xc0419a(0x362)][_0xc0419a(0x2ee)](_0x33cdbe),this[_0xc0419a(0x362)][_0xc0419a(0x306)](_0x61397e,_0x4ef2d5));},'migrateQueue':(_0x46b948,_0x494d97)=>this[_0x1987a3(0x33a)][_0x1987a3(0x292)](_0x46b948,_0x494d97),'migrateRunnerState':(_0x49a1ba,_0x4fda9b)=>this[_0x1987a3(0x2c3)][_0x1987a3(0x28e)](_0x49a1ba,_0x4fda9b),'emitSession':_0x517542=>this[_0x1987a3(0x3a5)]({'session':_0x517542}),'emitRun':_0x3c8472=>this[_0x1987a3(0x2da)](_0x1987a3(0x1f3),{'run':_0x3c8472}),'emitQueue':_0x5f58e0=>this[_0x1987a3(0x33a)][_0x1987a3(0x266)](_0x5f58e0),'emitTurn':_0x42b4f4=>this[_0x1987a3(0x274)](_0x42b4f4)}),this[_0x1987a3(0x2e9)]=new SessionLifecycleService({'database':()=>{const _0x191453=_0x1987a3;if(this[_0x191453(0x270)]===undefined)throw new Error(_0x191453(0x399));return this[_0x191453(0x270)];},'runtime':this[_0x1987a3(0x385)],'runners':this[_0x1987a3(0x2ba)],'projection':this[_0x1987a3(0x20e)],'identity':this[_0x1987a3(0x369)],'present':_0x8f2754=>this[_0x1987a3(0x207)][_0x1987a3(0x201)](_0x8f2754),'emitSession':_0x26d89e=>this[_0x1987a3(0x3a5)]({'session':this[_0x1987a3(0x207)][_0x1987a3(0x201)](_0x26d89e)}),'execute':(_0x80b4d4,_0x1f6b82)=>this[_0x1987a3(0x356)](_0x80b4d4,_0x1f6b82),'interceptedSessionId':_0x2dc32a=>this[_0x1987a3(0x34f)]===undefined?undefined:_0x1987a3(0x24d)+_0x2dc32a}),this[_0x1987a3(0x215)]=new ExternalSessionResumeService({'runtime':this[_0x1987a3(0x385)],'runners':this[_0x1987a3(0x2ba)],'state':this[_0x1987a3(0x380)],'available':_0x3e7eb4=>this[_0x1987a3(0x2ba)][_0x1987a3(0x2ad)](_0x3e7eb4)[_0x1987a3(0x328)](this[_0x1987a3(0x373)]),'projectionFor':_0x1b650e=>this[_0x1987a3(0x20e)][_0x1987a3(0x233)](_0x1b650e),'managedAliasFor':_0x321658=>this[_0x1987a3(0x20e)][_0x1987a3(0x366)](_0x321658),'ensureConfiguration':_0x49f60b=>this[_0x1987a3(0x20e)][_0x1987a3(0x24c)](_0x49f60b),'configuration':_0x230d58=>this[_0x1987a3(0x20e)][_0x1987a3(0x210)](_0x230d58),'workspacePath':_0x331239=>this[_0x1987a3(0x270)]?.[_0x1987a3(0x1f1)](_0x331239)?.[_0x1987a3(0x2de)],'rememberNative':(_0x5535ca,_0x38a312)=>this[_0x1987a3(0x30f)][_0x1987a3(0x2f2)](_0x5535ca,_0x38a312),'stage':_0xac2cc9=>{const _0x35f77b=_0x1987a3,_0x50fc3e=this[_0x35f77b(0x20e)][_0x35f77b(0x210)](_0xac2cc9);return this[_0x35f77b(0x385)][_0x35f77b(0x336)]({'workspaceId':_0xac2cc9[_0x35f77b(0x2ab)],'runner':_0xac2cc9[_0x35f77b(0x2c4)],'externalSessionId':_0xac2cc9[_0x35f77b(0x329)]??_0xac2cc9['id'],'nativeControl':_0x35f77b(0x277),'cwd':_0xac2cc9[_0x35f77b(0x288)],'model':_0x50fc3e[_0x35f77b(0x2b0)],'effort':_0x50fc3e[_0x35f77b(0x37d)],'access':_0x50fc3e[_0x35f77b(0x2c6)],..._0xac2cc9[_0x35f77b(0x21a)]===null?{}:{'title':_0xac2cc9[_0x35f77b(0x21a)]},..._0xac2cc9[_0x35f77b(0x234)]===null?{}:{'customTitle':_0xac2cc9[_0x35f77b(0x234)]}});},'resolve':_0x385c25=>this[_0x1987a3(0x20e)][_0x1987a3(0x250)](_0x385c25)}),this[_0x1987a3(0x1df)]=new SessionCommandService({'runtime':this[_0x1987a3(0x385)],'runners':this[_0x1987a3(0x2ba)],'projection':this[_0x1987a3(0x20e)],'resume':this[_0x1987a3(0x215)],'profiles':()=>this[_0x1987a3(0x242)][_0x1987a3(0x224)](),'present':_0x422baf=>this[_0x1987a3(0x207)][_0x1987a3(0x201)](_0x422baf),'resumeQueueAfterCommandRun':_0x144505=>this[_0x1987a3(0x227)][_0x1987a3(0x390)](_0x144505),'beginMission':_0x61f8f2=>{const _0x2d7f6c=_0x1987a3,_0x60edc9=this[_0x2d7f6c(0x364)][_0x2d7f6c(0x378)](_0x61f8f2['id'],_0x2d7f6c(0x285));if(_0x60edc9?.[_0x2d7f6c(0x301)]===!![])return{'session':this[_0x2d7f6c(0x207)][_0x2d7f6c(0x201)](_0x61f8f2),'missionAlreadyActive':!![]};_0x60edc9!==undefined&&(this[_0x2d7f6c(0x1e4)][_0x2d7f6c(0x295)](_0x61f8f2['id']),this[_0x2d7f6c(0x364)][_0x2d7f6c(0x295)](_0x61f8f2['id'],_0x2d7f6c(0x285)));const _0xe954c1=this[_0x2d7f6c(0x23c)](_0x61f8f2);return this[_0x2d7f6c(0x33a)][_0x2d7f6c(0x330)](_0x61f8f2['id']),this[_0x2d7f6c(0x364)][_0x2d7f6c(0x306)](_0x61f8f2['id'],this[_0x2d7f6c(0x317)]()),this[_0x2d7f6c(0x2da)](_0x2d7f6c(0x35d),{'session':this[_0x2d7f6c(0x207)][_0x2d7f6c(0x201)](_0xe954c1[_0x2d7f6c(0x35d)])}),{'session':this[_0x2d7f6c(0x207)][_0x2d7f6c(0x201)](_0xe954c1[_0x2d7f6c(0x35d)]),'missionAccessChanged':_0xe954c1[_0x2d7f6c(0x39a)]};},'mission':async({session:_0x1a54bd,objective:_0x44e3e7,secretEnvironment:_0x88c18d,personalInstructions:_0x53c480,marAgentModel:_0x134541,marAgentModels:_0x31e929,marAgentRuntimeScopeId:_0x47f2f8})=>{const _0x3002a9=_0x1987a3;this[_0x3002a9(0x29c)](_0x1a54bd['id']);const _0x2494a5=this[_0x3002a9(0x23c)](_0x1a54bd),_0x3fe7eb=_0x2494a5[_0x3002a9(0x35d)],_0x956472=this[_0x3002a9(0x1e4)][_0x3002a9(0x378)](_0x1a54bd['id'])?.[_0x3002a9(0x319)]===_0x3002a9(0x301);this[_0x3002a9(0x33a)][_0x3002a9(0x394)](_0x1a54bd['id']);const _0x28c6a2=this[_0x3002a9(0x1e4)][_0x3002a9(0x26d)](_0x1a54bd['id'],_0x44e3e7);this[_0x3002a9(0x2be)](_0x3fe7eb,_0x28c6a2);const _0x4a7d66=await this[_0x3002a9(0x386)][_0x3002a9(0x26c)]({'sessionId':_0x1a54bd['id'],'kind':_0x3002a9(0x26d),'content':this[_0x3002a9(0x1e4)][_0x3002a9(0x358)](_0x1a54bd['id'],_0x3002a9(0x26d)),'deliveryIntent':_0x956472?_0x3002a9(0x359):_0x3002a9(0x2af),'mission':{'id':_0x28c6a2['id'],'revision':_0x28c6a2[_0x3002a9(0x389)]},'secretEnvironment':_0x88c18d,..._0x53c480===undefined?{}:{'personalInstructions':_0x53c480},..._0x134541===undefined?{}:{'marAgentModel':_0x134541},..._0x31e929===undefined?{}:{'marAgentModels':_0x31e929},..._0x47f2f8===undefined?{}:{'marAgentRuntimeScopeId':_0x47f2f8}});return{...isPlainRecord(_0x4a7d66)?_0x4a7d66:{'result':_0x4a7d66},'missionAccessChanged':_0x2494a5[_0x3002a9(0x39a)]};},'clearMission':_0x1754b0=>{const _0x110fb8=_0x1987a3;return this[_0x110fb8(0x29c)](_0x1754b0['id']),this[_0x110fb8(0x1e4)][_0x110fb8(0x295)](_0x1754b0['id']),this[_0x110fb8(0x33a)][_0x110fb8(0x394)](_0x1754b0['id']),this[_0x110fb8(0x265)](_0x1754b0['id'],_0x110fb8(0x302)),this[_0x110fb8(0x364)][_0x110fb8(0x295)](_0x1754b0['id'],_0x110fb8(0x285)),this[_0x110fb8(0x2da)](_0x110fb8(0x35d),{'session':this[_0x110fb8(0x207)][_0x110fb8(0x201)](_0x1754b0)}),{'session':this[_0x110fb8(0x207)][_0x110fb8(0x201)](_0x1754b0),'cleared':!![]};}}),this[_0x1987a3(0x386)]=new SessionMessageService({'runtime':this[_0x1987a3(0x385)],'uploads':this[_0x1987a3(0x273)],'attachments':this[_0x1987a3(0x29a)],'commands':this[_0x1987a3(0x364)],'coordinator':this[_0x1987a3(0x33a)],'runners':this[_0x1987a3(0x2ba)],'resolve':_0x4625ea=>this[_0x1987a3(0x215)][_0x1987a3(0x1e7)](_0x4625ea),'present':_0x9929d4=>this[_0x1987a3(0x207)][_0x1987a3(0x201)](_0x9929d4),'emitSession':_0x43f68a=>this[_0x1987a3(0x3a5)]({'session':this[_0x1987a3(0x207)][_0x1987a3(0x201)](_0x43f68a)}),'channelToken':_0x41f492=>{const _0x587eca=_0x1987a3,_0x1f708c=this[_0x587eca(0x385)][_0x587eca(0x371)](_0x41f492);return _0x1f708c?.[_0x587eca(0x38d)]??undefined;},'missionMessage':(_0x1342a3,_0x3a833c)=>{const _0x1f7042=_0x1987a3,_0x24e8fd=this[_0x1f7042(0x364)][_0x1f7042(0x378)](_0x1342a3['id'],_0x1f7042(0x285));if(_0x24e8fd?.[_0x1f7042(0x301)]!==!![])return undefined;const _0x4a2af0=this[_0x1f7042(0x1e4)][_0x1f7042(0x378)](_0x1342a3['id']);if(_0x4a2af0?.[_0x1f7042(0x319)]===_0x1f7042(0x301))return{'runnerContent':_0x3a833c,'mission':{'id':_0x4a2af0['id'],'revision':_0x4a2af0[_0x1f7042(0x389)]},'activated':![]};const _0x5049a6=this[_0x1f7042(0x1e4)][_0x1f7042(0x26d)](_0x1342a3['id'],_0x3a833c);return this[_0x1f7042(0x2be)](_0x1342a3,_0x5049a6),{'runnerContent':this[_0x1f7042(0x1e4)][_0x1f7042(0x358)](_0x1342a3['id'],_0x1f7042(0x26d)),'mission':{'id':_0x5049a6['id'],'revision':_0x5049a6[_0x1f7042(0x389)]},'activated':!![]};},'prepareMissionInsertion':(_0x23e0fd,_0x18967f)=>this[_0x1987a3(0x33a)][_0x1987a3(0x330)](_0x23e0fd,_0x18967f),'missionPreparationFailed':(_0x391504,_0x1c5fab,_0x29cb77)=>{const _0x57b118=_0x1987a3;if(!_0x29cb77)return;const _0x45d827=this[_0x57b118(0x1e4)][_0x57b118(0x378)](_0x391504['id']);if(_0x45d827?.['id']!==_0x1c5fab['id']||_0x45d827[_0x57b118(0x389)]!==_0x1c5fab[_0x57b118(0x389)])return;this[_0x57b118(0x1e4)][_0x57b118(0x295)](_0x391504['id']),this[_0x57b118(0x265)](_0x391504['id'],_0x57b118(0x2a9)),this[_0x57b118(0x364)][_0x57b118(0x306)](_0x391504['id'],this[_0x57b118(0x317)]()),this[_0x57b118(0x2da)](_0x57b118(0x35d),{'session':this[_0x57b118(0x207)][_0x57b118(0x201)](_0x391504)});}}),this[_0x1987a3(0x202)]=new SessionCatalogService({'database':()=>{const _0x3889b0=_0x1987a3;if(this[_0x3889b0(0x270)]===undefined)throw new Error(_0x3889b0(0x399));return this[_0x3889b0(0x270)];},'nodeId':()=>this[_0x1987a3(0x267)]?.[_0x1987a3(0x252)]??_0x1987a3(0x21b),'runtime':this[_0x1987a3(0x385)],'runners':this[_0x1987a3(0x2ba)],'projection':this[_0x1987a3(0x20e)],'resume':this[_0x1987a3(0x215)],'cachedNative':()=>[...this[_0x1987a3(0x380)][_0x1987a3(0x238)][_0x1987a3(0x39f)]()],'cachedWorkspace':_0x3320e7=>this[_0x1987a3(0x243)][_0x1987a3(0x342)](_0x3320e7),'present':_0x2bc0d1=>this[_0x1987a3(0x207)][_0x1987a3(0x201)](_0x2bc0d1),'projectionForNative':_0x478401=>this[_0x1987a3(0x20e)][_0x1987a3(0x233)](_0x478401),'nativeIds':_0x422c7f=>this[_0x1987a3(0x20e)][_0x1987a3(0x32e)](_0x422c7f),'forget':(_0x2f02d6,_0x165786)=>this[_0x1987a3(0x20e)][_0x1987a3(0x22b)](_0x2f02d6,_0x165786),'refreshActivity':_0x3b9d08=>this[_0x1987a3(0x34a)][_0x1987a3(0x2cb)](_0x3b9d08),'externalActivity':_0x4e725e=>this[_0x1987a3(0x380)][_0x1987a3(0x31d)][_0x1987a3(0x378)](_0x4e725e),'history':(_0x17b791,_0x12aeeb)=>this[_0x1987a3(0x34a)][_0x1987a3(0x2cf)](_0x17b791,_0x12aeeb),'emitSession':_0x1c5d2c=>this[_0x1987a3(0x3a5)]({'session':this[_0x1987a3(0x207)][_0x1987a3(0x201)](_0x1c5d2c)})}),this[_0x1987a3(0x2c5)][_0x1987a3(0x3b4)]({'start':_0x52dd97=>this[_0x1987a3(0x221)][_0x1987a3(0x26d)](_0x52dd97),'cancel':(_0x621eac,_0x5c38e3)=>{const _0x2c1f01=_0x1987a3,_0x346760=this[_0x2c1f01(0x2c5)][_0x2c1f01(0x300)][_0x2c1f01(0x27b)][_0x2c1f01(0x378)](_0x621eac);if(_0x346760?.[_0x2c1f01(0x39e)]===undefined)return![];return void this[_0x2c1f01(0x200)][_0x2c1f01(0x310)](_0x621eac,_0x346760[_0x2c1f01(0x2ac)],_0x346760[_0x2c1f01(0x39e)],_0x346760[_0x2c1f01(0x288)],_0x5c38e3===_0x2c1f01(0x360)?_0x2c1f01(0x27e):_0x2c1f01(0x338)),!![];},'decideApproval':_0x63a712=>this[_0x1987a3(0x200)][_0x1987a3(0x38e)](_0x63a712[_0x1987a3(0x282)],_0x63a712[_0x1987a3(0x222)])}),this[_0x1987a3(0x34c)][_0x1987a3(0x3b4)]({'start':_0x41f93a=>this[_0x1987a3(0x28a)][_0x1987a3(0x26d)](_0x41f93a),'cancel':(_0x373708,_0x1c9f69)=>this[_0x1987a3(0x200)][_0x1987a3(0x2d4)](_0x373708,_0x1c9f69),'decideApproval':_0x13a1c6=>this[_0x1987a3(0x200)][_0x1987a3(0x22f)](_0x13a1c6[_0x1987a3(0x282)],_0x13a1c6[_0x1987a3(0x222)])}),this[_0x1987a3(0x24e)][_0x1987a3(0x3b4)]({'start':_0x556bea=>this[_0x1987a3(0x2b3)][_0x1987a3(0x26d)](_0x556bea),'cancel':(_0x1fe4a4,_0x59ecde)=>this[_0x1987a3(0x2b3)][_0x1987a3(0x397)](_0x1fe4a4,_0x59ecde),'decideApproval':_0x22d21a=>this[_0x1987a3(0x2b3)][_0x1987a3(0x3a1)](_0x22d21a),'respondUserInput':(_0x10768a,_0x244b16,_0x2d9034)=>this[_0x1987a3(0x2b3)][_0x1987a3(0x345)](_0x10768a,_0x244b16,_0x2d9034)}),this[_0x1987a3(0x22e)][_0x1987a3(0x3b4)]({'start':_0x304bee=>this[_0x1987a3(0x372)][_0x1987a3(0x26d)](_0x304bee),'cancel':(_0x2c9a4,_0x315f0d)=>this[_0x1987a3(0x372)][_0x1987a3(0x397)](_0x2c9a4,_0x315f0d),'decideApproval':_0x5defa5=>this[_0x1987a3(0x372)][_0x1987a3(0x3a1)](_0x5defa5),'respondUserInput':(_0x1fde5a,_0x42e994,_0x44abb8)=>this[_0x1987a3(0x372)][_0x1987a3(0x345)](_0x1fde5a,_0x42e994,_0x44abb8)}),this[_0x1987a3(0x2c5)][_0x1987a3(0x30b)]({'execute':(_0x339041,_0x4a9af2,_0x42c766,_0x3d11d8)=>this[_0x1987a3(0x221)][_0x1987a3(0x31b)](_0x339041,_0x4a9af2,_0x42c766,_0x3d11d8)}),this[_0x1987a3(0x34c)][_0x1987a3(0x30b)]({'execute':(_0x50b38f,_0x52e93c,_0xf2f111,_0x25eec3)=>this[_0x1987a3(0x28a)][_0x1987a3(0x31b)](_0x50b38f,_0x52e93c,_0xf2f111,_0x25eec3)}),this[_0x1987a3(0x24e)][_0x1987a3(0x30b)]({'execute':(_0x2891b7,_0x1c36a9,_0x361199,_0x4f39dc)=>this[_0x1987a3(0x2b3)][_0x1987a3(0x31b)](_0x2891b7,_0x1c36a9,_0x4f39dc)}),this[_0x1987a3(0x22e)][_0x1987a3(0x30b)]({'execute':(_0x59a588,_0x7bf4a0,_0x3c42e1,_0x229dc6)=>this[_0x1987a3(0x372)][_0x1987a3(0x31b)](_0x59a588,_0x7bf4a0,_0x3c42e1,_0x229dc6)});const _0x28e2a8=this[_0x1987a3(0x34f)]===undefined||this[_0x1987a3(0x3ab)]===undefined?undefined:new FakeManagedRunService({'runner':this[_0x1987a3(0x34f)],'script':this[_0x1987a3(0x3ab)],'runners':this[_0x1987a3(0x2ba)],'runtime':this[_0x1987a3(0x385)],'state':this[_0x1987a3(0x2f1)],'emitRun':(_0x12f851,_0x2fd069,_0x45b225,_0x1d1503)=>this[_0x1987a3(0x2c3)][_0x1987a3(0x230)](_0x12f851,_0x2fd069,_0x45b225,_0x1d1503),'publishApproval':_0x2792f3=>this[_0x1987a3(0x2c3)][_0x1987a3(0x258)](_0x2792f3),'disconnect':()=>this[_0x1987a3(0x1e3)][_0x1987a3(0x290)](-0xda1*-0x1+0x7d*-0x1+0x286,_0x1987a3(0x3bb))});this[_0x1987a3(0x34f)]?.[_0x1987a3(0x3b4)]({'start':_0x486025=>_0x28e2a8?.[_0x1987a3(0x26d)](_0x486025),'cancel':(_0x2428ab,_0x4784de)=>_0x4784de===_0x1987a3(0x360)?this[_0x1987a3(0x34f)]?.[_0x1987a3(0x397)](_0x2428ab)??![]:this[_0x1987a3(0x34f)]?.[_0x1987a3(0x27c)](_0x2428ab)??![],'decideApproval':_0x1de4e1=>this[_0x1987a3(0x34f)]?.[_0x1987a3(0x374)](_0x1de4e1[_0x1987a3(0x35b)],_0x1de4e1[_0x1987a3(0x282)],_0x1de4e1[_0x1987a3(0x222)])??![]}),this[_0x1987a3(0x251)]=_0x349336[_0x1987a3(0x251)]??new RunnerUsageReader(),this[_0x1987a3(0x270)]=_0x349336[_0x1987a3(0x270)],this[_0x1987a3(0x25b)]=_0x349336[_0x1987a3(0x25b)]??new TerminalManager({'platform':this[_0x1987a3(0x373)][_0x1987a3(0x323)]===_0x1987a3(0x1f2)?_0x1987a3(0x2cd):_0x1987a3(0x304)}),this[_0x1987a3(0x25b)][_0x1987a3(0x1e8)](_0x51da88=>this[_0x1987a3(0x243)][_0x1987a3(0x21f)](_0x51da88)),this[_0x1987a3(0x2f7)]=new NodeTerminalChannel({'config':()=>this[_0x1987a3(0x267)],'controlConnected':()=>this[_0x1987a3(0x1e3)][_0x1987a3(0x2c9)](),'stopped':()=>this[_0x1987a3(0x2b4)],'reconnect':this[_0x1987a3(0x349)],'reconnectDelay':nextReconnectDelay,'manager':this[_0x1987a3(0x25b)]}),this[_0x1987a3(0x1e3)]=new NodeControlChannel({'config':()=>this[_0x1987a3(0x267)],'capabilities':()=>this[_0x1987a3(0x373)],'stopped':()=>this[_0x1987a3(0x2b4)],'reconnect':this[_0x1987a3(0x349)],'reconnectDelay':nextReconnectDelay,'onConnecting':_0x4a1215=>{const _0x5e4e6c=_0x1987a3;this[_0x5e4e6c(0x2a3)][_0x5e4e6c(0x260)](),nodeLog(_0x5e4e6c(0x1e0),{'attempt':_0x4a1215});},'onReconnectScheduled':()=>this[_0x1987a3(0x2a3)][_0x1987a3(0x2fb)](),'onMessage':_0x3fc3c9=>this[_0x1987a3(0x2fd)](_0x3fc3c9),'onClose':(_0x31638a,_0x15231d)=>{const _0x5ef5d0=_0x1987a3;this[_0x5ef5d0(0x3ae)][_0x5ef5d0(0x24a)](),this[_0x5ef5d0(0x2f7)][_0x5ef5d0(0x382)]();if(_0x31638a===0xa*0x18e+-0x2686+-0x51*-0x7a&&_0x15231d===_0x5ef5d0(0x2d5))nodeLog(_0x5ef5d0(0x392),{'message':_0x5ef5d0(0x31e)});if(_0x31638a===-0x1264+0x264c+-0x445||_0x31638a===0x62*0x3+-0x622+0x8e5)void this[_0x5ef5d0(0x25b)][_0x5ef5d0(0x2f0)]();}}),this[_0x1987a3(0x2a2)]=new NodeControlMessageService({'config':()=>this[_0x1987a3(0x267)],'register':(_0x5262f1,_0xe27903)=>this[_0x1987a3(0x2c2)][_0x1987a3(0x3aa)](_0x5262f1,_0xe27903),'connected':()=>this[_0x1987a3(0x2c2)][_0x1987a3(0x2c9)](),'close':(_0x3badd1,_0x3bb32e)=>this[_0x1987a3(0x1e3)][_0x1987a3(0x290)](_0x3badd1,_0x3bb32e),'inspectWorkspace':_0x5258bb=>this[_0x1987a3(0x243)][_0x1987a3(0x228)](_0x5258bb),'handleNodeRequest':_0x1305c3=>this[_0x1987a3(0x216)][_0x1987a3(0x341)](_0x1305c3),'handleRuntimeCredentialResponse':_0x398807=>this[_0x1987a3(0x3ae)][_0x1987a3(0x341)](_0x398807),'reconcileRuns':_0x2d5341=>this[_0x1987a3(0x2c3)][_0x1987a3(0x1e2)](_0x2d5341),'runners':this[_0x1987a3(0x2ba)],'deliverSessionChannelMessage':_0x584a3b=>this[_0x1987a3(0x25d)][_0x1987a3(0x341)](_0x584a3b),'completeUncontrolledCancellation':_0x4a83c8=>{const _0x249ab1=_0x1987a3,_0x350f57=this[_0x249ab1(0x385)][_0x249ab1(0x23b)](_0x4a83c8);if(_0x350f57?.[_0x249ab1(0x319)]===_0x249ab1(0x23d))this[_0x249ab1(0x200)][_0x249ab1(0x231)](_0x4a83c8);},'send':(_0x1978bb,_0x5ce5fb,_0x3ab8e1)=>this[_0x1987a3(0x271)](_0x1978bb,_0x5ce5fb,_0x3ab8e1)}),this[_0x1987a3(0x216)]=new NodeRequestService({'nodeId':()=>this[_0x1987a3(0x267)]?.[_0x1987a3(0x252)],'databaseAvailable':()=>this[_0x1987a3(0x270)]!==undefined,'execute':(_0x32cb80,_0x42e816)=>this[_0x1987a3(0x356)](_0x32cb80,_0x42e816),'send':(_0x34ee7b,_0x5284d1,_0x3aa1c9)=>this[_0x1987a3(0x271)](_0x34ee7b,_0x5284d1,_0x3aa1c9)}),this[_0x1987a3(0x243)]=new NodeWorkspaceCoordinator({'config':()=>this[_0x1987a3(0x267)],'database':()=>this[_0x1987a3(0x270)],'watches':this[_0x1987a3(0x2e6)],'sessions':this[_0x1987a3(0x2d0)],'changes':this[_0x1987a3(0x3a8)],'emit':(_0x1089cd,_0x5ea7fa)=>void this[_0x1987a3(0x29e)]?.[_0x1987a3(0x3b9)](_0x1089cd,_0x5ea7fa),'send':(_0x87f9d2,_0x32e051,_0x503b4c)=>this[_0x1987a3(0x271)](_0x87f9d2,_0x32e051,_0x503b4c)}),this[_0x1987a3(0x2c3)]=new NodeRunEventBridge({'runtime':this[_0x1987a3(0x385)],'state':this[_0x1987a3(0x2f1)],'events':this[_0x1987a3(0x203)],'emitWorkbench':(_0x268a00,_0x528d15)=>this[_0x1987a3(0x3a7)](_0x268a00,_0x528d15),'queues':this[_0x1987a3(0x227)],'codex':this[_0x1987a3(0x2c5)],'claude':this[_0x1987a3(0x34c)],'openCode':this[_0x1987a3(0x24e)],'send':(_0x414b7f,_0x512804,_0x104ab1)=>this[_0x1987a3(0x271)](_0x414b7f,_0x512804,_0x104ab1)}),this[_0x1987a3(0x2c2)]=new NodeConnectionLifecycleService({'config':()=>this[_0x1987a3(0x267)],'setConfig':_0x2ddc4b=>this[_0x1987a3(0x267)]=_0x2ddc4b,'configPath':this[_0x1987a3(0x2fe)],'capabilities':()=>this[_0x1987a3(0x373)],'detectCapabilities':this[_0x1987a3(0x263)],'capabilitiesProvided':this[_0x1987a3(0x350)],'stopped':()=>this[_0x1987a3(0x2b4)],'setCapabilities':_0x447624=>this[_0x1987a3(0x373)]={..._0x447624,'metadata':upgradeMetadata(_0x447624[_0x1987a3(0x2a5)],this[_0x1987a3(0x2e0)][_0x1987a3(0x3b0)]())},'control':this[_0x1987a3(0x1e3)],'terminal':this[_0x1987a3(0x2f7)],'metrics':this[_0x1987a3(0x2a3)],'heartbeatMs':HEARTBEAT_MS,'refreshMs':CAPABILITY_REFRESH_MS,'onRegistered':()=>this[_0x1987a3(0x2aa)](),'onConnected':()=>{const _0x562109=_0x1987a3;this[_0x562109(0x3ae)][_0x562109(0x2c9)](),this[_0x562109(0x348)][_0x562109(0x36f)]();}});const _0x458e04=()=>{const _0x5601a5=_0x1987a3;if(this[_0x5601a5(0x270)]===undefined)throw new Error(_0x5601a5(0x399));return this[_0x5601a5(0x270)];};this[_0x1987a3(0x242)]=new RunnerService(_0x458e04,()=>this[_0x1987a3(0x373)],this[_0x1987a3(0x2ba)],this[_0x1987a3(0x251)]),this[_0x1987a3(0x283)]=new WorkbenchManifestService({'capabilities':()=>this[_0x1987a3(0x373)],'runners':this[_0x1987a3(0x242)],'terminals':this[_0x1987a3(0x25b)]}),this[_0x1987a3(0x28f)]=new TerminalService(_0x458e04,this[_0x1987a3(0x25b)]),this[_0x1987a3(0x337)]=new WorkspaceService(_0x458e04,()=>{const _0x4213e7=_0x1987a3;if(this[_0x4213e7(0x267)]===undefined)throw new Error(_0x4213e7(0x2b8));return this[_0x4213e7(0x267)];},this[_0x1987a3(0x385)],_0xbe3eab=>{const _0x22bf53=_0x1987a3;this[_0x22bf53(0x223)][_0x22bf53(0x244)](_0xbe3eab),this[_0x22bf53(0x243)][_0x22bf53(0x20d)](_0xbe3eab),this[_0x22bf53(0x2d0)][_0x22bf53(0x334)](_0xbe3eab),this[_0x22bf53(0x243)][_0x22bf53(0x2d3)](_0xbe3eab);}),this[_0x1987a3(0x29e)]=new WorkspaceWorkbenchService({'requireWorkspace':_0x12ba6c=>this[_0x1987a3(0x243)][_0x1987a3(0x2ad)](_0x12ba6c),'inspectWorkspace':_0x59882c=>this[_0x1987a3(0x243)][_0x1987a3(0x2c8)](_0x59882c),'commitWorkspace':(_0x3dcba6,_0x29ac9b)=>this[_0x1987a3(0x243)][_0x1987a3(0x1fe)](_0x3dcba6,_0x29ac9b),'watch':this[_0x1987a3(0x2e6)],'files':this[_0x1987a3(0x223)],'uploads':this[_0x1987a3(0x273)],'changes':this[_0x1987a3(0x3a8)],'listSessions':_0x5eb94c=>this[_0x1987a3(0x356)](_0x1987a3(0x298),{'workspaceId':_0x5eb94c,'limit':0x14}),'invalidate':_0x311240=>{const _0xeb9dfd=_0x1987a3;this[_0xeb9dfd(0x223)][_0xeb9dfd(0x244)](_0x311240),this[_0xeb9dfd(0x243)][_0xeb9dfd(0x334)](_0x311240);},'nodeId':()=>this[_0x1987a3(0x267)]?.[_0x1987a3(0x252)]??_0x1987a3(0x2ae),'nodeGeneration':()=>this[_0x1987a3(0x204)],'emitWatchEvent':_0x3f6474=>this[_0x1987a3(0x271)](_0x1987a3(0x2d2),_0x3f6474)});for(const _0xd423b2 of CONVERSATION_TEMPLATE_OPERATIONS)this[_0x1987a3(0x287)][_0x1987a3(0x3aa)](_0xd423b2,_0x3dde0d=>{const _0x1a8078=_0x1987a3,_0xa63869=this[_0x1a8078(0x30a)]?.[_0xd423b2];if(_0xa63869===undefined)throw new Error(_0x1a8078(0x206));return _0xa63869(_0x3dde0d);});for(const _0x310fed of HOSTED_CONVERSATION_OPERATIONS)this[_0x1987a3(0x287)][_0x1987a3(0x3aa)](_0x310fed,_0x1cbf7e=>{const _0x317c75=_0x1987a3,_0x220201=this[_0x317c75(0x229)]?.[_0x310fed];if(_0x220201===undefined)throw new Error(_0x317c75(0x206));return _0x220201(_0x1cbf7e);});for(const _0x4f8ed1 of CONVERSATION_HOSTING_MAINTENANCE_OPERATIONS)this[_0x1987a3(0x287)][_0x1987a3(0x3aa)](_0x4f8ed1,_0x3e112c=>{const _0x459939=_0x1987a3,_0x2c3d05=this[_0x459939(0x2e3)]?.[_0x4f8ed1];if(_0x2c3d05===undefined)throw new Error(_0x459939(0x206));return _0x2c3d05(_0x3e112c);});this[_0x1987a3(0x287)][_0x1987a3(0x36b)](this[_0x1987a3(0x242)][_0x1987a3(0x276)]()),this[_0x1987a3(0x287)][_0x1987a3(0x36b)](this[_0x1987a3(0x28f)][_0x1987a3(0x276)]()),this[_0x1987a3(0x287)][_0x1987a3(0x36b)](this[_0x1987a3(0x337)][_0x1987a3(0x276)]()),this[_0x1987a3(0x287)][_0x1987a3(0x36b)](this[_0x1987a3(0x29e)][_0x1987a3(0x276)]()),this[_0x1987a3(0x287)][_0x1987a3(0x36b)](this[_0x1987a3(0x384)][_0x1987a3(0x276)]()),this[_0x1987a3(0x287)][_0x1987a3(0x36b)](this[_0x1987a3(0x27f)][_0x1987a3(0x276)]()),this[_0x1987a3(0x287)][_0x1987a3(0x36b)](this[_0x1987a3(0x2a7)][_0x1987a3(0x276)]()),this[_0x1987a3(0x287)][_0x1987a3(0x36b)](this[_0x1987a3(0x2e9)][_0x1987a3(0x276)]()),this[_0x1987a3(0x287)][_0x1987a3(0x36b)](this[_0x1987a3(0x386)][_0x1987a3(0x276)]()),this[_0x1987a3(0x287)][_0x1987a3(0x36b)](this[_0x1987a3(0x202)][_0x1987a3(0x276)]()),this[_0x1987a3(0x287)][_0x1987a3(0x36b)](this[_0x1987a3(0x1df)][_0x1987a3(0x276)]()),this[_0x1987a3(0x287)][_0x1987a3(0x36b)](this[_0x1987a3(0x227)][_0x1987a3(0x276)]()),this[_0x1987a3(0x287)][_0x1987a3(0x36b)](this[_0x1987a3(0x3a3)][_0x1987a3(0x276)]()),this[_0x1987a3(0x287)][_0x1987a3(0x36b)](new ConversationHostingEnablementService({'config':()=>this[_0x1987a3(0x267)],'setConfig':_0x518b65=>this[_0x1987a3(0x267)]=_0x518b65,'configPath':this[_0x1987a3(0x2fe)],'platform':()=>this[_0x1987a3(0x373)][_0x1987a3(0x323)],'capability':()=>this[_0x1987a3(0x373)][_0x1987a3(0x249)],'initialize':()=>this[_0x1987a3(0x2aa)](),'publishCapabilities':()=>this[_0x1987a3(0x271)](_0x1987a3(0x373),this[_0x1987a3(0x373)])})[_0x1987a3(0x276)]()),this[_0x1987a3(0x287)][_0x1987a3(0x36b)](new SkillNodeOperationService(_0x458e04,()=>{const _0x5cba0=_0x1987a3;if(this[_0x5cba0(0x267)]===undefined)throw new Error(_0x5cba0(0x2b8));return this[_0x5cba0(0x267)];})[_0x1987a3(0x276)]()),this[_0x1987a3(0x287)][_0x1987a3(0x36b)](new McpNodeOperationService(_0x458e04)[_0x1987a3(0x276)]()),this[_0x1987a3(0x287)][_0x1987a3(0x3aa)](_0x1987a3(0x320),()=>({'metrics':{...this[_0x1987a3(0x2a3)][_0x1987a3(0x3b0)](),'activeRuns':this[_0x1987a3(0x2f1)][_0x1987a3(0x301)][_0x1987a3(0x3a0)],'workspaceLeases':this[_0x1987a3(0x385)][_0x1987a3(0x2d7)]()}})),this[_0x1987a3(0x287)][_0x1987a3(0x3aa)](_0x1987a3(0x396),_0x2bb97a=>this[_0x1987a3(0x2e0)][_0x1987a3(0x36c)](_0x2bb97a)),this[_0x1987a3(0x287)][_0x1987a3(0x3aa)](_0x1987a3(0x36d),()=>this[_0x1987a3(0x2e0)][_0x1987a3(0x397)]()),this[_0x1987a3(0x287)][_0x1987a3(0x3aa)](_0x1987a3(0x2b6),async()=>({'manifest':await this[_0x1987a3(0x283)][_0x1987a3(0x2cf)]()}));}async[_0x24c2a5(0x2aa)](){const _0x71e806=_0x24c2a5,_0x119571=this[_0x71e806(0x1ef)],_0x597515=this[_0x71e806(0x3a2)],_0x4e70f7=this[_0x71e806(0x2ea)];this[_0x71e806(0x1ef)]=undefined,this[_0x71e806(0x3a2)]=undefined,this[_0x71e806(0x2ea)]=undefined,this[_0x71e806(0x229)]=undefined,this[_0x71e806(0x2e3)]=undefined,this[_0x71e806(0x30a)]=undefined,this[_0x71e806(0x313)]=![],this[_0x71e806(0x26b)]=undefined,await _0x4e70f7?.[_0x71e806(0x244)](),_0x597515?.[_0x71e806(0x244)](),await _0x119571?.[_0x71e806(0x244)]()[_0x71e806(0x393)](()=>undefined);const _0x9494e7=this[_0x71e806(0x267)];if(_0x9494e7?.[_0x71e806(0x249)]?.[_0x71e806(0x1e1)]===!![]&&this[_0x71e806(0x373)][_0x71e806(0x323)]===_0x71e806(0x304)){if(_0x9494e7[_0x71e806(0x252)]===undefined)this[_0x71e806(0x26b)]=_0x71e806(0x236);else{let _0x4a2d74,_0x5ce25b,_0x46d7ec;try{if(this[_0x71e806(0x270)]===undefined)throw new Error(_0x71e806(0x399));const _0x41047c=hostedConversationStorePath(_0x9494e7,this[_0x71e806(0x2fe)]);if(_0x41047c===undefined)throw new Error(_0x71e806(0x2df));const _0x18ddeb=new HostedConversationStore({'dataDirectory':nodeDataDirectory(_0x9494e7,this[_0x71e806(0x2fe)]),'rootDirectory':_0x41047c,'nodeId':_0x9494e7[_0x71e806(0x252)],'database':this[_0x71e806(0x270)]});await _0x18ddeb[_0x71e806(0x1ee)]();const _0x2e6d75=new ConversationTemplateNodeService({'database':this[_0x71e806(0x270)],'store':_0x18ddeb,'nodeId':()=>this[_0x71e806(0x267)]?.[_0x71e806(0x252)]??_0x71e806(0x37b)});await _0x2e6d75[_0x71e806(0x37e)](),await _0x18ddeb[_0x71e806(0x3bd)](),_0x4a2d74=new MarAgentHostedConversationRuntime({'webSearch':(_0x123103,_0x59d067)=>this[_0x71e806(0x361)](_0x123103,_0x59d067),'modelFactory':this[_0x71e806(0x367)],'registerNativeImages':(_0x131902,_0x5227b3,_0x3d8d7b)=>this[_0x71e806(0x29a)][_0x71e806(0x2a8)](_0x131902,_0x5227b3,_0x3d8d7b)}),_0x5ce25b=new HostedConversationNodeService({'database':this[_0x71e806(0x270)],'store':_0x18ddeb,'runtime':_0x4a2d74,'nodeId':()=>this[_0x71e806(0x267)]?.[_0x71e806(0x252)]??_0x71e806(0x37b),'nodeGeneration':()=>this[_0x71e806(0x204)],'sessionWatchSlots':this[_0x71e806(0x3ad)],'emitWatchEvent':_0x4ec6ec=>this[_0x71e806(0x271)](_0x71e806(0x2d2),_0x4ec6ec),'nextWorkbenchEvent':_0x44f825=>this[_0x71e806(0x1f9)][_0x71e806(0x1eb)](_0x71e806(0x2eb),_0x44f825),'emitWorkbenchEvent':_0x5dadb8=>this[_0x71e806(0x1f9)][_0x71e806(0x266)](_0x5dadb8),'processExecutorFactory':_0x56463c=>new BubblewrapSandboxExecutor(_0x56463c),'assertCanCreate':()=>{const _0x496653=_0x71e806;if(_0x46d7ec===undefined)throw new Error(_0x496653(0x206));return _0x46d7ec[_0x496653(0x208)]();}}),_0x46d7ec=new ConversationHostingMaintenanceService({'store':_0x18ddeb,'inactiveRetentionDays':_0x9494e7[_0x71e806(0x249)][_0x71e806(0x321)]??-0x5b*-0x43+-0x2350+0xbbb,'isConversationInUse':_0x30b4a8=>_0x5ce25b?.[_0x71e806(0x3ba)](_0x30b4a8)??!![],'beginConversationCleanup':_0x282dce=>_0x5ce25b?.[_0x71e806(0x22a)](_0x282dce),'releaseConversation':_0x4e2b52=>{const _0xb4059c=_0x71e806;if(_0x5ce25b===undefined)throw new Error(_0xb4059c(0x206));return _0x5ce25b[_0xb4059c(0x246)](_0x4e2b52);},'onAutomaticCleanupError':_0x3476a2=>nodeLog(_0x71e806(0x279),{'nodeId':_0x9494e7[_0x71e806(0x252)],'code':safeErrorCode(_0x3476a2,_0x71e806(0x33e))})}),this[_0x71e806(0x30a)]=_0x2e6d75[_0x71e806(0x276)](),this[_0x71e806(0x229)]=_0x5ce25b[_0x71e806(0x276)](),this[_0x71e806(0x2e3)]=_0x46d7ec[_0x71e806(0x276)](),this[_0x71e806(0x1ef)]=_0x4a2d74,this[_0x71e806(0x3a2)]=_0x5ce25b,this[_0x71e806(0x2ea)]=_0x46d7ec,await _0x46d7ec[_0x71e806(0x26d)](),this[_0x71e806(0x313)]=!![];}catch(_0x40e927){await _0x46d7ec?.[_0x71e806(0x244)](),_0x5ce25b?.[_0x71e806(0x244)](),await _0x4a2d74?.[_0x71e806(0x244)]()[_0x71e806(0x393)](()=>undefined),this[_0x71e806(0x26b)]=safeErrorCode(_0x40e927,_0x71e806(0x335)),nodeLog(_0x71e806(0x2ce),{'nodeId':_0x9494e7[_0x71e806(0x252)],'code':this[_0x71e806(0x26b)]});}}}this[_0x71e806(0x373)]=await this[_0x71e806(0x2cc)](this[_0x71e806(0x373)]);}async[_0x24c2a5(0x2cc)](_0x306778){const _0x5daca1=_0x24c2a5;let _0x3b310a=this[_0x5daca1(0x313)],_0x23d943=this[_0x5daca1(0x26b)],_0x2ebd9a=_0x5daca1(0x2f6);if(_0x3b310a&&this[_0x5daca1(0x2ea)]!==undefined)try{_0x2ebd9a=(await this[_0x5daca1(0x2ea)][_0x5daca1(0x239)]())[_0x5daca1(0x25e)];}catch(_0x229346){_0x3b310a=![],_0x23d943=safeErrorCode(_0x229346,_0x5daca1(0x2df));}return{..._0x306778,'conversationHosting':await conversationHostingCapability(_0x306778,this[_0x5daca1(0x267)],_0x3b310a,_0x23d943,this[_0x5daca1(0x35c)],_0x2ebd9a)};}async[_0x24c2a5(0x26d)](){const _0x2eb239=_0x24c2a5;if(this[_0x2eb239(0x2ef)]!==undefined)await this[_0x2eb239(0x2ef)];this[_0x2eb239(0x2ef)]=undefined,this[_0x2eb239(0x2b4)]=![],this[_0x2eb239(0x267)]??=await loadNodeConfig(this[_0x2eb239(0x2fe)]),await this[_0x2eb239(0x2e0)][_0x2eb239(0x340)](resolve(dirname(nodeDatabasePath(this[_0x2eb239(0x267)],this[_0x2eb239(0x2fe)])),_0x2eb239(0x34b))),await assertLocalSqlitePath(nodeDatabasePath(this[_0x2eb239(0x267)],this[_0x2eb239(0x2fe)])),this[_0x2eb239(0x270)]??=new NodeDatabase(nodeDatabasePath(this[_0x2eb239(0x267)],this[_0x2eb239(0x2fe)]),()=>this[_0x2eb239(0x267)]?.[_0x2eb239(0x252)]??_0x2eb239(0x37b)),this[_0x2eb239(0x270)][_0x2eb239(0x2f9)](),await this[_0x2eb239(0x2aa)](),this[_0x2eb239(0x2c2)][_0x2eb239(0x26d)](),this[_0x2eb239(0x1e3)][_0x2eb239(0x218)]();}[_0x24c2a5(0x29c)](_0x39504c){const _0x5b2ce1=_0x24c2a5,_0x31e594=this[_0x5b2ce1(0x3b5)][_0x5b2ce1(0x378)](_0x39504c);if(_0x31e594!==undefined)clearTimeout(_0x31e594[_0x5b2ce1(0x209)]);this[_0x5b2ce1(0x3b5)][_0x5b2ce1(0x2ee)](_0x39504c),this[_0x5b2ce1(0x362)][_0x5b2ce1(0x2ee)](_0x39504c);}async[_0x24c2a5(0x297)](_0x241650){const _0x3a7e82=_0x24c2a5,_0x5c183a=_0x241650[_0x3a7e82(0x285)]['id']+':'+_0x241650[_0x3a7e82(0x285)][_0x3a7e82(0x389)];this[_0x3a7e82(0x362)][_0x3a7e82(0x306)](_0x241650[_0x3a7e82(0x3a6)],_0x5c183a);try{await this[_0x3a7e82(0x386)][_0x3a7e82(0x26c)]({'sessionId':_0x241650[_0x3a7e82(0x3a6)],'kind':_0x3a7e82(0x278),'content':this[_0x3a7e82(0x1e4)][_0x3a7e82(0x358)](_0x241650[_0x3a7e82(0x3a6)],_0x3a7e82(0x278)),'deliveryIntent':_0x3a7e82(0x1ff),'mission':_0x241650[_0x3a7e82(0x285)],'secretEnvironment':_0x241650[_0x3a7e82(0x1e6)],..._0x241650[_0x3a7e82(0x2c7)]===undefined?{}:{'personalInstructions':_0x241650[_0x3a7e82(0x2c7)]},..._0x241650[_0x3a7e82(0x2bc)]===undefined?{}:{'marAgentModel':_0x241650[_0x3a7e82(0x2bc)]},..._0x241650[_0x3a7e82(0x2a0)]===undefined?{}:{'marAgentModels':_0x241650[_0x3a7e82(0x2a0)]},..._0x241650[_0x3a7e82(0x314)]===undefined?{}:{'marAgentRuntimeScopeId':_0x241650[_0x3a7e82(0x314)]}});const _0x1a63b7=this[_0x3a7e82(0x1e4)][_0x3a7e82(0x378)](_0x241650[_0x3a7e82(0x3a6)]);if(_0x1a63b7?.[_0x3a7e82(0x319)]!==_0x3a7e82(0x301)||_0x1a63b7['id']!==_0x241650[_0x3a7e82(0x285)]['id']||_0x1a63b7[_0x3a7e82(0x389)]!==_0x241650[_0x3a7e82(0x285)][_0x3a7e82(0x389)]){if(this[_0x3a7e82(0x362)][_0x3a7e82(0x378)](_0x241650[_0x3a7e82(0x3a6)])===_0x5c183a)this[_0x3a7e82(0x362)][_0x3a7e82(0x2ee)](_0x241650[_0x3a7e82(0x3a6)]);return;}this[_0x3a7e82(0x29c)](_0x241650[_0x3a7e82(0x3a6)]);}catch{const _0x39d5f0=this[_0x3a7e82(0x1e4)][_0x3a7e82(0x378)](_0x241650[_0x3a7e82(0x3a6)]);if(_0x39d5f0?.[_0x3a7e82(0x319)]!==_0x3a7e82(0x301)||_0x39d5f0['id']!==_0x241650[_0x3a7e82(0x285)]['id']||_0x39d5f0[_0x3a7e82(0x389)]!==_0x241650[_0x3a7e82(0x285)][_0x3a7e82(0x389)]){if(this[_0x3a7e82(0x362)][_0x3a7e82(0x378)](_0x241650[_0x3a7e82(0x3a6)])===_0x5c183a)this[_0x3a7e82(0x362)][_0x3a7e82(0x2ee)](_0x241650[_0x3a7e82(0x3a6)]);return;}const _0x58125e=(_0x241650[_0x3a7e82(0x293)]??-0xd45+0x132b+-0x1*0x5e6)+(-0x2*0xcd1+0x2051+0x1e*-0x39),_0x41d24e=this[_0x3a7e82(0x385)][_0x3a7e82(0x371)](_0x241650[_0x3a7e82(0x3a6)]);if(_0x58125e>0x7ef+-0x25c4+0x1dd8||_0x41d24e===undefined){this[_0x3a7e82(0x29c)](_0x241650[_0x3a7e82(0x3a6)]);if(_0x58125e>0x605+0xa*-0x1e5+0xcf0){const _0x3334fa=this[_0x3a7e82(0x1e4)][_0x3a7e82(0x34e)](_0x241650[_0x3a7e82(0x3a6)],_0x241650[_0x3a7e82(0x285)]['id'],_0x241650[_0x3a7e82(0x285)][_0x3a7e82(0x389)]);this[_0x3a7e82(0x33a)][_0x3a7e82(0x394)](_0x241650[_0x3a7e82(0x3a6)]),this[_0x3a7e82(0x265)](_0x241650[_0x3a7e82(0x3a6)],_0x3a7e82(0x2a9));if(_0x41d24e!==undefined)this[_0x3a7e82(0x2be)](_0x41d24e,_0x3334fa);}return;}this[_0x3a7e82(0x29c)](_0x241650[_0x3a7e82(0x3a6)]);const _0x45ea15={'sessionId':_0x241650[_0x3a7e82(0x3a6)],'timer':setTimeout(()=>{const _0x1bf6d9=_0x3a7e82,_0x3ba66b=this[_0x1bf6d9(0x1e4)][_0x1bf6d9(0x378)](_0x45ea15[_0x1bf6d9(0x3a6)]);if(_0x3ba66b?.[_0x1bf6d9(0x319)]!==_0x1bf6d9(0x301)||_0x3ba66b['id']!==_0x241650[_0x1bf6d9(0x285)]['id']||_0x3ba66b[_0x1bf6d9(0x389)]!==_0x241650[_0x1bf6d9(0x285)][_0x1bf6d9(0x389)])return;void this[_0x1bf6d9(0x297)]({..._0x241650,'sessionId':_0x45ea15[_0x1bf6d9(0x3a6)],'failedAttempts':_0x58125e});},-0x3b25+-0x9cd+-0x5*-0x1982)};this[_0x3a7e82(0x3b5)][_0x3a7e82(0x306)](_0x241650[_0x3a7e82(0x3a6)],_0x45ea15),_0x45ea15[_0x3a7e82(0x209)][_0x3a7e82(0x379)]();}}[_0x24c2a5(0x265)](_0x28db8c,_0x3073c2){const _0x3d313b=_0x24c2a5,_0x586048=this[_0x3d313b(0x385)][_0x3d313b(0x381)](_0x28db8c);if(_0x586048===undefined||this[_0x3d313b(0x385)][_0x3d313b(0x28c)](_0x586048['id'])!==undefined)return;this[_0x3d313b(0x2c3)][_0x3d313b(0x230)](_0x586048['id'],_0x3073c2===_0x3d313b(0x302)?_0x3d313b(0x3b1):_0x3d313b(0x255),_0x3073c2===_0x3d313b(0x302)?{}:{'code':_0x3d313b(0x225)},_0x3073c2);}[_0x24c2a5(0x23c)](_0x3f4f96){const _0x241085=_0x24c2a5,_0x2ab542=missionUnrestrictedAccess(_0x3f4f96[_0x241085(0x2c4)]),_0x4dda42=_0x3f4f96[_0x241085(0x2c6)]!==_0x2ab542,_0x2cd62c=_0x4dda42?this[_0x241085(0x385)][_0x241085(0x324)](_0x3f4f96['id'],_0x2ab542):_0x3f4f96;if(_0x4dda42&&_0x2cd62c[_0x241085(0x329)]!==null&&_0x2cd62c[_0x241085(0x2b0)]!==null&&_0x2cd62c[_0x241085(0x37d)]!==null)this[_0x241085(0x270)]?.[_0x241085(0x26e)]({'runner':_0x2cd62c[_0x241085(0x2c4)],'externalSessionId':_0x2cd62c[_0x241085(0x329)],'workspaceId':_0x2cd62c[_0x241085(0x2ab)],'model':_0x2cd62c[_0x241085(0x2b0)],'effort':_0x2cd62c[_0x241085(0x37d)],'access':_0x2ab542});return{'session':_0x2cd62c,'changed':_0x4dda42};}[_0x24c2a5(0x317)](){const _0x52a9b0=_0x24c2a5;return{'commandId':_0x52a9b0(0x285),'active':!![],'label':_0x52a9b0(0x353),'detail':null,'closable':!![],'closeInput':_0x52a9b0(0x315)};}[_0x24c2a5(0x2b1)](){const _0x20312c=_0x24c2a5;if(this[_0x20312c(0x2ef)]!==undefined)return this[_0x20312c(0x2ef)];this[_0x20312c(0x2b4)]=!![],this[_0x20312c(0x348)][_0x20312c(0x244)](),this[_0x20312c(0x2e0)][_0x20312c(0x2b1)](),this[_0x20312c(0x2c2)][_0x20312c(0x2b1)]();for(const _0x4f4166 of this[_0x20312c(0x34c)][_0x20312c(0x300)][_0x20312c(0x357)][_0x20312c(0x39f)]()){clearTimeout(_0x4f4166[_0x20312c(0x209)]),_0x4f4166[_0x20312c(0x250)](_0x20312c(0x38c));}this[_0x20312c(0x34c)][_0x20312c(0x300)][_0x20312c(0x357)][_0x20312c(0x295)]();for(const _0x279294 of this[_0x20312c(0x34c)][_0x20312c(0x300)][_0x20312c(0x316)][_0x20312c(0x39f)]()){clearTimeout(_0x279294[_0x20312c(0x209)]),_0x279294[_0x20312c(0x325)](_0x20312c(0x303));}this[_0x20312c(0x34c)][_0x20312c(0x300)][_0x20312c(0x316)][_0x20312c(0x295)](),this[_0x20312c(0x27f)][_0x20312c(0x295)](),this[_0x20312c(0x369)][_0x20312c(0x244)](),this[_0x20312c(0x2e9)][_0x20312c(0x295)](),this[_0x20312c(0x33a)][_0x20312c(0x295)]();for(const _0x1dc6a4 of this[_0x20312c(0x3b5)][_0x20312c(0x39f)]())clearTimeout(_0x1dc6a4[_0x20312c(0x209)]);this[_0x20312c(0x3b5)][_0x20312c(0x295)](),this[_0x20312c(0x362)][_0x20312c(0x295)](),this[_0x20312c(0x203)][_0x20312c(0x295)](),this[_0x20312c(0x3ac)][_0x20312c(0x244)]();for(const _0x1c3159 of this[_0x20312c(0x34c)][_0x20312c(0x300)][_0x20312c(0x27b)][_0x20312c(0x39f)]())_0x1c3159[_0x20312c(0x341)][_0x20312c(0x397)]();this[_0x20312c(0x34c)][_0x20312c(0x300)][_0x20312c(0x27b)][_0x20312c(0x295)](),this[_0x20312c(0x29a)][_0x20312c(0x244)](),void this[_0x20312c(0x372)][_0x20312c(0x244)]();const _0x2fd778=this[_0x20312c(0x2ea)]?.[_0x20312c(0x244)]();this[_0x20312c(0x2ea)]=undefined,this[_0x20312c(0x3a2)]?.[_0x20312c(0x244)](),this[_0x20312c(0x3a2)]=undefined;const _0x53eb9c=this[_0x20312c(0x1ef)];this[_0x20312c(0x1ef)]=undefined,this[_0x20312c(0x229)]=undefined,this[_0x20312c(0x2e3)]=undefined,void this[_0x20312c(0x273)][_0x20312c(0x2f0)](),this[_0x20312c(0x223)][_0x20312c(0x244)](),this[_0x20312c(0x2e6)][_0x20312c(0x1f7)](),this[_0x20312c(0x29e)][_0x20312c(0x295)](),this[_0x20312c(0x2d0)][_0x20312c(0x295)](),this[_0x20312c(0x3a8)][_0x20312c(0x295)](),void this[_0x20312c(0x2ba)][_0x20312c(0x2b1)](),void this[_0x20312c(0x363)][_0x20312c(0x290)](),void this[_0x20312c(0x25b)][_0x20312c(0x2f0)](),this[_0x20312c(0x2f7)][_0x20312c(0x2b1)](),this[_0x20312c(0x3ae)][_0x20312c(0x290)](),this[_0x20312c(0x1e3)][_0x20312c(0x2b1)]();const _0x1546ab=this[_0x20312c(0x270)];return this[_0x20312c(0x270)]=undefined,this[_0x20312c(0x2ef)]=((async()=>{const _0x313d2c=_0x20312c;try{await _0x2fd778;}finally{await _0x53eb9c?.[_0x313d2c(0x244)]()[_0x313d2c(0x393)](()=>undefined),_0x1546ab?.[_0x313d2c(0x290)]();}})()),this[_0x20312c(0x2ef)];}[_0x24c2a5(0x2fd)]=_0x5e6d41=>this[_0x24c2a5(0x2a2)][_0x24c2a5(0x341)](_0x5e6d41);[_0x24c2a5(0x33c)]=(_0x503b5b,_0xd69641,_0x3105e8,_0x4903ea)=>this[_0x24c2a5(0x2c3)][_0x24c2a5(0x230)](_0x503b5b,_0xd69641,_0x3105e8,_0x4903ea);[_0x24c2a5(0x20a)]=(_0x672cc8,_0x11634b)=>{const _0x18c0c4=_0x24c2a5;this[_0x18c0c4(0x203)][_0x18c0c4(0x2a4)](_0x672cc8);const _0x13abee=isPlainRecord(_0x11634b)&&typeof _0x11634b[_0x18c0c4(0x21e)]===_0x18c0c4(0x289)?_0x11634b[_0x18c0c4(0x21e)]:undefined,_0x55b0f6=isPlainRecord(_0x11634b)&&typeof _0x11634b[_0x18c0c4(0x269)]===_0x18c0c4(0x289)?_0x11634b[_0x18c0c4(0x269)]:undefined,_0x7a617a=this[_0x18c0c4(0x385)][_0x18c0c4(0x23a)](_0x672cc8),_0x494c64=_0x13abee===undefined||_0x7a617a===undefined?undefined:conversationSegmentIdentityForItem(_0x7a617a,_0x13abee,_0x55b0f6);this[_0x18c0c4(0x2c3)][_0x18c0c4(0x230)](_0x672cc8,_0x18c0c4(0x30c),_0x494c64===undefined||!isPlainRecord(_0x11634b)?_0x11634b:{..._0x11634b,'segmentId':_0x494c64['id'],'segmentIndex':_0x494c64[_0x18c0c4(0x1ed)]});};[_0x24c2a5(0x274)]=_0x2b4bbc=>{const _0x405f55=_0x24c2a5,_0x202691=isPlainRecord(_0x2b4bbc)&&Array[_0x405f55(0x262)](_0x2b4bbc[_0x405f55(0x2fc)])?conversationSegments(_0x2b4bbc):[];this[_0x405f55(0x2da)](_0x405f55(0x284),{'turn':_0x2b4bbc,'segments':_0x202691});};[_0x24c2a5(0x3a7)]=(_0xf30746,_0x5a0711)=>{const _0x32e6c8=_0x24c2a5;if(_0xf30746===_0x32e6c8(0x35d)){this[_0x32e6c8(0x3a5)](_0x5a0711);return;}this[_0x32e6c8(0x2da)](_0xf30746,_0x5a0711);};[_0x24c2a5(0x3a5)]=_0x3d7cd7=>{const _0x42aa4e=_0x24c2a5;if(isPlainRecord(_0x3d7cd7)&&isPlainRecord(_0x3d7cd7[_0x42aa4e(0x35d)])){const _0x238909=_0x3d7cd7[_0x42aa4e(0x35d)][_0x42aa4e(0x2ab)];typeof _0x238909===_0x42aa4e(0x289)&&(this[_0x42aa4e(0x2d0)][_0x42aa4e(0x20b)](_0x238909),void this[_0x42aa4e(0x29e)]?.[_0x42aa4e(0x3b9)](_0x238909,_0x42aa4e(0x261)));}this[_0x42aa4e(0x2da)](_0x42aa4e(0x35d),_0x3d7cd7);};[_0x24c2a5(0x2da)]=(_0x1b2a7e,_0x113640)=>{const _0x404dae=_0x24c2a5;if(_0x1b2a7e===_0x404dae(0x284)&&isPlainRecord(_0x113640)&&isPlainRecord(_0x113640[_0x404dae(0x3be)])&&_0x113640[_0x404dae(0x3be)][_0x404dae(0x237)]!==_0x404dae(0x28b)){const _0x302a81=typeof _0x113640[_0x404dae(0x3be)][_0x404dae(0x35b)]===_0x404dae(0x289)?_0x113640[_0x404dae(0x3be)][_0x404dae(0x35b)]:undefined,_0x1865ca=typeof _0x113640[_0x404dae(0x3be)][_0x404dae(0x2ec)]===_0x404dae(0x1e5)?_0x113640[_0x404dae(0x3be)][_0x404dae(0x2ec)]:undefined,_0x7ee42=_0x302a81===undefined?undefined:this[_0x404dae(0x385)][_0x404dae(0x23a)](_0x302a81);if(_0x7ee42===undefined)return;const _0x27e9aa=isPlainRecord(_0x113640[_0x404dae(0x3be)][_0x404dae(0x1fd)])?_0x113640[_0x404dae(0x3be)][_0x404dae(0x1fd)]:undefined,_0x4a296c=_0x113640[_0x404dae(0x3be)][_0x404dae(0x237)]===_0x404dae(0x212)&&typeof _0x27e9aa?.[_0x404dae(0x375)]===_0x404dae(0x289)?_0x27e9aa[_0x404dae(0x375)]:undefined,_0xa52b2b=typeof _0x27e9aa?.[_0x404dae(0x21e)]===_0x404dae(0x289)?_0x27e9aa[_0x404dae(0x21e)]:typeof _0x27e9aa?.[_0x404dae(0x282)]===_0x404dae(0x289)?_0x404dae(0x1ec)+_0x27e9aa[_0x404dae(0x282)]:undefined,_0x5c590c=_0x4a296c!==undefined&&_0x1865ca!==undefined?_0x7ee42[_0x404dae(0x2fc)][_0x404dae(0x2ca)](_0x42af11=>_0x42af11[_0x404dae(0x269)]===_0x404dae(0x32c)&&_0x42af11[_0x404dae(0x389)]===_0x1865ca):_0xa52b2b===undefined?undefined:_0x7ee42[_0x404dae(0x2fc)][_0x404dae(0x2ca)](_0x184773=>_0x184773['id']===_0x302a81+':'+_0xa52b2b);if(_0x4a296c!==undefined&&_0x5c590c?.[_0x404dae(0x269)]===_0x404dae(0x32c))_0x113640={'sessionId':_0x7ee42[_0x404dae(0x3a6)],'delta':{'runId':_0x7ee42[_0x404dae(0x35b)],'itemId':_0x5c590c['id'],'text':_0x4a296c,'createdAt':typeof _0x113640[_0x404dae(0x3be)][_0x404dae(0x2e1)]===_0x404dae(0x1e5)?_0x113640[_0x404dae(0x3be)][_0x404dae(0x2e1)]:Date[_0x404dae(0x2fa)]()}};else{if(_0x5c590c!==undefined){const _0xc1671f=conversationSegmentIdentityForItem(_0x7ee42,_0x5c590c['id'],_0x5c590c[_0x404dae(0x269)]);_0x113640={'sessionId':_0x7ee42[_0x404dae(0x3a6)],'runId':_0x7ee42[_0x404dae(0x35b)],'item':{'itemId':_0x5c590c['id'],'kind':_0x5c590c[_0x404dae(0x269)],'status':_0x5c590c[_0x404dae(0x319)],'payload':_0x5c590c[_0x404dae(0x1fd)],'startedAt':_0x5c590c[_0x404dae(0x2d9)],'completedAt':_0x5c590c[_0x404dae(0x331)],'segmentId':_0xc1671f['id'],'segmentIndex':_0xc1671f[_0x404dae(0x1ed)]}};}else{if(_0x113640[_0x404dae(0x3be)][_0x404dae(0x237)]!==_0x404dae(0x256)&&_0x113640[_0x404dae(0x3be)][_0x404dae(0x237)]!==_0x404dae(0x33f))return;_0x113640={'turn':_0x7ee42,'segments':conversationSegments(_0x7ee42)};}}}const _0x2a3e98=this[_0x404dae(0x1f9)][_0x404dae(0x1eb)](_0x1b2a7e,_0x113640);if(_0x2a3e98===undefined)return;const _0x1a0786=_0x1b2a7e===_0x404dae(0x284)&&isPlainRecord(_0x113640)&&isPlainRecord(_0x113640[_0x404dae(0x3be)])&&_0x113640[_0x404dae(0x3be)][_0x404dae(0x237)]===_0x404dae(0x28b),_0x1587d4=workbenchPayloadSessionId(this[_0x404dae(0x385)],_0x1b2a7e,_0x113640);if(!_0x1a0786&&_0x1587d4!==undefined){this[_0x404dae(0x27f)][_0x404dae(0x30d)](_0x1587d4,_0x2a3e98);return;}this[_0x404dae(0x1f9)][_0x404dae(0x266)](_0x2a3e98);};[_0x24c2a5(0x253)]=_0x3b2a3a=>this[_0x24c2a5(0x20e)][_0x24c2a5(0x35e)](_0x3b2a3a);[_0x24c2a5(0x22d)]=_0x2c0187=>this[_0x24c2a5(0x243)][_0x24c2a5(0x334)](_0x2c0187);[_0x24c2a5(0x30e)]=()=>undefined;[_0x24c2a5(0x333)]=()=>this[_0x24c2a5(0x2c2)][_0x24c2a5(0x333)]();[_0x24c2a5(0x344)]=()=>this[_0x24c2a5(0x2c2)][_0x24c2a5(0x344)]();async[_0x24c2a5(0x356)](_0x26f773,_0x4c11e5){const _0x8779ed=_0x24c2a5;if(this[_0x8779ed(0x270)]===undefined)throw new Error(_0x8779ed(0x399));if(this[_0x8779ed(0x2e0)][_0x8779ed(0x247)](_0x26f773))throw new Error(_0x8779ed(0x205));return nodeLog(_0x8779ed(0x1f5),{'nodeId':this[_0x8779ed(0x267)]?.[_0x8779ed(0x252)],'operation':_0x26f773}),this[_0x8779ed(0x287)][_0x8779ed(0x2e7)](_0x26f773,_0x4c11e5);}async[_0x24c2a5(0x361)](_0x323b3b,_0x5aa802){const _0x5d4a33=_0x24c2a5,_0x55fed8=this[_0x5d4a33(0x267)];if(_0x55fed8?.[_0x5d4a33(0x252)]===undefined||_0x55fed8[_0x5d4a33(0x2c0)]===undefined)throw new Error(_0x5d4a33(0x236));const _0x15cd0f=await fetch(_0x55fed8[_0x5d4a33(0x2d6)][_0x5d4a33(0x264)](/\/$/u,'')+_0x5d4a33(0x211),{'method':_0x5d4a33(0x3b6),'headers':{'content-type':_0x5d4a33(0x213),'x-mar-node-id':_0x55fed8[_0x5d4a33(0x252)],'authorization':_0x5d4a33(0x35f)+_0x55fed8[_0x5d4a33(0x2c0)]},'body':JSON[_0x5d4a33(0x272)](_0x323b3b),'signal':_0x5aa802});if(!_0x15cd0f['ok'])throw new Error(_0x5d4a33(0x370));const _0x700b5c=await _0x15cd0f[_0x5d4a33(0x354)]();return{'content':JSON[_0x5d4a33(0x272)](_0x700b5c),'data':_0x700b5c};}[_0x24c2a5(0x2be)](_0x247ec5,_0x22db91){const _0x162ce8=_0x24c2a5;if(_0x22db91[_0x162ce8(0x319)]!==_0x162ce8(0x301)){this[_0x162ce8(0x364)][_0x162ce8(0x295)](_0x247ec5['id'],_0x162ce8(0x285)),this[_0x162ce8(0x2da)](_0x162ce8(0x35d),{'session':this[_0x162ce8(0x207)][_0x162ce8(0x201)](_0x247ec5)});return;}this[_0x162ce8(0x364)][_0x162ce8(0x306)](_0x247ec5['id'],{'commandId':_0x162ce8(0x285),'active':_0x22db91[_0x162ce8(0x319)]===_0x162ce8(0x301),'label':_0x162ce8(0x353),'detail':_0x22db91[_0x162ce8(0x2a6)][_0x162ce8(0x27d)](-0x2235+0x225b+-0x26,0x900+-0x1ca4+0x566*0x4),'closable':!![],'closeInput':_0x162ce8(0x3b3),'mission':{'id':_0x22db91['id'],'objective':_0x22db91[_0x162ce8(0x2a6)],'revision':_0x22db91[_0x162ce8(0x389)],'status':_0x22db91[_0x162ce8(0x319)],'turns':_0x22db91[_0x162ce8(0x2e5)]}}),this[_0x162ce8(0x2da)](_0x162ce8(0x35d),{'session':this[_0x162ce8(0x207)][_0x162ce8(0x201)](_0x247ec5)});}[_0x24c2a5(0x271)](_0x3082a6,_0x1fc1af,_0x3581e6){const _0x56cf5f=_0x24c2a5;this[_0x56cf5f(0x1e3)][_0x56cf5f(0x271)](_0x3082a6,_0x1fc1af,_0x3581e6);}[_0x24c2a5(0x1fc)](_0xeefd15){const _0x27e468=_0x24c2a5;this[_0x27e468(0x1e3)][_0x27e468(0x1fc)](_0xeefd15);}}