@myagentroam/node 0.9.36 → 0.9.38
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 +1 -1
- package/dist/native-session-history.js +1 -1
- package/dist/runner/claude/managed-run-controller.js +1 -1
- package/dist/runner/codex/conversation-parser.js +1 -1
- package/dist/runner/codex/managed-run-controller.js +1 -1
- package/dist/runner/mar-agent/conversation-normalizer.js +1 -1
- package/dist/runner/mar-agent/generated-images.js +1 -1
- package/dist/runner/mar-agent/hosted-conversation-runtime.js +1 -1
- package/dist/runner/mar-agent/managed-run-controller.js +1 -1
- package/dist/runner/opencode/managed-run-controller.js +1 -1
- package/dist/runtime-state.js +1 -1
- package/dist/service/bubblewrap-sandbox-executor.js +1 -1
- package/dist/service/conversation-hosting-enablement-service.js +1 -1
- package/dist/service/hosted-conversation-node-service.js +1 -1
- package/dist/service/run-attachment-service.js +1 -1
- package/dist/service/run-workbench-service.js +1 -1
- package/dist/service/session-command-service.js +1 -1
- package/dist/service/session-lifecycle-service.js +1 -1
- package/dist/service/session-message-service.js +1 -1
- package/dist/service/workspace-change-service.js +1 -1
- package/dist/service/workspace-queue-workbench-service.js +1 -1
- package/dist/util/runner-native-session-parsers.js +1 -1
- package/dist/workspace.js +1 -1
- package/package.json +3 -3
package/dist/connector.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* mar-release-protected */
|
|
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);}}
|
|
2
|
+
const _0x2a29ba=_0x4aea;(function(_0x4f9080,_0x2da2db){const _0x2ee91a=_0x4aea,_0x4cb22e=_0x4f9080();while(!![]){try{const _0x1897dd=-parseInt(_0x2ee91a(0x108))/(0xf7+-0x1436*0x1+0x1340)+-parseInt(_0x2ee91a(0x1d0))/(-0xa9*0x17+-0x7*-0x2d9+-0x4be)*(-parseInt(_0x2ee91a(0x1d6))/(-0x1*0x1fdf+-0x97+0x2079))+-parseInt(_0x2ee91a(0xff))/(-0x25d5+0x1b82*0x1+0xa57*0x1)+-parseInt(_0x2ee91a(0x218))/(-0x74+-0x1e72+0x1*0x1eeb)*(-parseInt(_0x2ee91a(0x19a))/(0x1711+-0x26fa+-0xfef*-0x1))+parseInt(_0x2ee91a(0xca))/(0x2*-0x4b6+0x1*0xf72+-0x5ff)+parseInt(_0x2ee91a(0xee))/(0x2b7*-0x1+0x2*-0x589+0xdd1)*(parseInt(_0x2ee91a(0x19d))/(-0x21aa+0xb99*-0x1+0x2d4c))+parseInt(_0x2ee91a(0xe0))/(-0x3c*0x79+-0x24c9+0x412f);if(_0x1897dd===_0x2da2db)break;else _0x4cb22e['push'](_0x4cb22e['shift']());}catch(_0x2b5d6a){_0x4cb22e['push'](_0x4cb22e['shift']());}}}(_0x1161,-0x4713a+-0x17*-0x3ac9+0x226e2));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';function _0x1161(){const _0x17c8be=['C2vZC2LVBKnHDgfSB2Dtzxj2AwnL','CMvNAxn0zxjoyxrPDMvjBwfNzxm','tK9erv9vtKfvveHftLrjq0furuq','y29UDMvYC2f0Aw9Usg9ZDgLUzW','CMvZB2X2zq','CMvMCMvZAenHCgfIAwXPDgLLCW','vgHPCYboB2rLignVBM5Ly3rPB24GD2fZihjLCgXHy2vKigj5igeGBMv3zxiGAw5ZDgfUy2uGD2L0Acb0AguGC2fTzsbPzgvUDgL0Es4Gq2HLy2SGzM9Yigr1CgXPy2f0zsbWCM9JzxnZzxmU','ChvIBgLZAa','mtH0sMjeuMy','CMvJB25Uzwn0','CMfUzg9Tvvvjra','nJaZrLjqyvHX','DgvYBwLUywXtzxj2AwnL','CMvJB3jKrxHLy3v0Aw9UuMvZDwX0','CMv2B2TL','y29UDMvYC2f0Aw9UlMHVC3rPBMCUy2XLyw51Cc5MywLSzwq','B2jQzwn0AxzL','zMLSDgvY','CMvXDwvZDenSyxvKzvvZzxjjBNb1Da','zw1PDff1zxvL','CgvYC2LZDezPBgvZ','q09ovKvsu0fusu9ox0Hpu1rjtKDFuKvdt1zfuLLFrKfjteve','Cgf5Bg9Hza','D29YA3nWywnLrMLSzvnLCNzPy2u','y2XVC2vsDw5UAw5NvgvYBwLUywXtzxnZAw9UCW','q09ovKvsu0fusu9ox0Hpu1rjtKDFvu5bvKfjtefcteu','Dgv4Dc5KzwX0yq','zw5ZDxjLvg9WAwntBMfWC2HVDa','y29UDMvYC2f0Aw9UlMHVC3rLzc51BNDHDgnO','Dgv4Da','CMvMCMvZAev4DgvYBMfSqwn0AxzPDhK','Aw5ZCgvJDa','zgf0ywjHC2u','zgvSzxrL','DgHYzwfKswq','CMvXDwLYzq','y29UDMvYC2f0Aw9UlMHVC3rPBMCUC3rVCMfNzs5PBNnWzwn0','BMf0AxzLu2vZC2LVBLDHDgnOu2vYDMLJzq','C2vZC2LVBI5SAxn0','BM9KzuLK','DxbNCMfKzs1Yzxn1BhqUANnVBG','C2nOzwr1Bgu','D29YA3nWywnLvxbSB2fKu2vYDMLJzq','Ag9ZDgvKq29UDMvYC2f0Aw9Uu2vYDMLJzq','AgfUzgXLtwvZC2fNzq','l21PC3nPB24','BwLNCMf0zvj1BM5LCLnLC3nPB25jzgvUDgL0Eq','z2v0v29YA3nWywnL','BwLZC2LVBLj1BNrPBwu','Aw5PDgLHBgL6zq','D29YA3nWywnLuxvLDwvxB3jRyMvUy2Htzxj2AwnL','AxnbCNjHEq','y29UDMvYC2f0Aw9UlNrLBxbSyxrLlNb1yMXPC2GUC3rHDhvZ','ChjLCgfYzu1PC3nPB25tzxnZAw9U','zxHWAxjL','Cgf1C2vtzxnZAw9UuxvLDwu','DhjHBNnPDgLVBMLUzW','y29UDMvYC2f0Aw9UlMHVC3rPBMCUy2XLyw51Cc5WCMv2Awv3','C2XPy2u','CgvYC2LZDfrLCM1PBMfS','y2fWywjPBgL0AwvZ','twLZC2LVBG','nK1OqNP3wq','BgLZDa','AgfUzgXL','zMX1C2Hqzw5KAw5Nvgv4Da','rKfjteve','C2v0u2vZC2LVBLjLC291CMnLuMvSzwfZzxi','mtqXnda1BgXisgvj','y2f0y2G','CMv2AxnPB24','CgvUzgLUz01PC3nPB25dB21Tyw5Ku3rHDgu','AxrLBuLK','zgLZy29UBMvJDa','ywn0AxzLv29YA3nWywnLtgvHC2vdB3vUDa','CNvUBMvYvgL0Bgu','y29UDMvYC2f0Aw9UlNrLBxbSyxrLlNnVDxjJzs5PBNnWzwn0','ChjLCgfYzuzVCKrPC2fIBgu','DxbKyxrLqwDLBNrtzxnZAw9UqwnJzxnZ','zMfRzvj1BM5LCG','ChvIBgLZAefWChjVDMfS','CMvNAxn0zxjoyxrPDMu','CMvHza','ChjVBw90zq','y29UDMvYC2f0Aw9UlMHVC3rLzc5KzwXLDgu','C25HChnOB3q','CMvTB3zLugvUzgLUz1f1zxvL','y29UDMvYC2f0Aw9U','Dg9WAwnby3rPDMu','CMvQzwn0','BwfYqwDLBNrdBgLLBNq','BM9Kzs53B3jRyMvUy2GUy2fWywjPBgL0AwvZ','C2vZC2LVBG','yxbWCM92ywXZ','CNvUDgLTzs1UB2rL','BwfUywDLzezVCK5HDgL2zq','BgLZDfDVCMTZCgfJzxm','uKvqtefdrv9dvvjsru5u','C2H1DgrVD24','D29YA3nWywnLu2vYDMLJzq','CMvJB3zLCKLUDgvYCNvWDgvKuhvIBgLJyxrPB25Z','y29UDMvYC2f0Aw9UvhvYBKzVCLj1BG','CNvUswq','Bw92zq','CMvNAxn0zxi','z2v0uNvU','C2vUzevUDMvSB3bL','zxH0zxjUywXby3rPDML0Eq','y29UDMvYC2f0Aw9Usg9ZDgLUz01HAw50zw5HBMnLu2vYDMLJzq','su5urvjsvvburuq','ChvIBgLZAfnUyxbZAg90','zxH0zxjUywXtzxnZAw9Uswq','y29UDMvYC2f0Aw9UvgvTCgXHDgvpCgvYyxrPB25Z','CNvUCW','C2v0','BxLHz2vUDhjVyw1FBwLZC2LVBG','CNvUBMvYq2HHBM5LBe1LC3nHz2vZ','zw1PDenVBNzLCNnHDgLVBKL0zw0','CMvXDwvZDenSyxvKzufWChjVDMfS','CNvUBMvYsw50zxjHy3rPB25tzxj2AwnL','ChjLC2vUDa','y2fJAgvKu2vZC2LVBNm','C3rHDgu','yM9VDhn0CMfWswrZ','D29YA3nWywnLv29YA2jLBMnOu2vYDMLJzq','y3jLyxrLzef0','BwLZC2LVBLjLDhj5vgLTzxjZ','y29UDMvYC2f0Aw9UsgLZDg9YEvnLCNzPy2u','C3rHCNq','ywrK','uvvfvuu','y29UDMvYC2f0Aw9Usg9ZDgLUz1n0B3jHz2vszwfKEq','Cgf0Aa','zgLZy292zxi','mJiZnJvLsxDuq2e','y29KzxHsDw5dB250CM9SBgvY','BM9Kzs51CgDYywrLlNjLCxvLC3q','y29UDMvYC2f0Aw9UlMHVC3rPBMCUy2XLyw51Cc5LEgvJDxrL','qvzbsuXbqKXf','zgvJAxnPB24','yMXVy2TZ','y2XLyxjnAxnZAw9UuMv0CNK','BwfUywDLzfj1BM5LCLnLC3nPB25Z','Aw5KzxG','C3rVChbPBMC','lw9Wzw5JB2rLlwLTywDLCW','BwfYqwDLBNrsDw50Aw1Lu2nVCgvjza','zgLZy292zxjxB3jRC3bHy2u','C2f2zu5HDgL2zvnLC3nPB25nzxrHzgf0yq','DhvYBNm','CNvUrxzLBNrcCMLKz2u','zMLUAxnOswrSzu1PC3nPB25sDw4','y29UzMLNugf0Aa','DxbNCMfKzunVB3jKAw5HDg9Y','y29UDMvYC2f0Aw9UlMHVC3rLzc5MAwXLCY5SAxn0','CMvJB3jKzwqTC2vZC2LVBG','BwfYqwDLBNrsDw50Aw1Ltw9KzwXZ','CNvUBMvY','u0vora','qMvHCMvYia','y29KzxHqCM9MAwXLq2XPzw50rMfJDg9YEq','zgLYzwn0tMf0AxzL','C2vZC2LVBNm','BwLZC2LVBG','CMvSzwfZzvnLC3nPB24','zxHLy3v0zunVBw1HBMq','rKflrv9svu5orvjFreLtq09otKvdva','C2vZC2LVBKLK','y29UBMvJDgLVBKXPzMvJEwnSzq','zxHWAxjLqxbWCM92ywW','zw5ZDxjLuMvZDw1LzenVBMzPz3vYyxrPB24','C2vZC2LVBKLKzw50Axr5u2vYDMLJzq','BM9Kzs5VCgvYyxrPB24','Aw52ywXPzgf0zq','l21PC3nPB24Gls1JBgvHCG','Aw52ywXPzgf0zunHy2HL','CMvJzw50uNvUuhjVAMvJDgLVBLnLCNzPy2u','CNvUBMvYvxnHz2vszwfKzxi','zxHPDa','CMvJB3jKvhvYBG','BwfYqwDLBNrnB2rLBfrYyw5ZCg9YDfrLC3rZ','y2HHBMDLza','AgfZrxHLy3v0Aw9Uu3rHCNrLza','y29UDMvYC2f0Aw9UlMHVC3rLzc5SAxn0','zw5XDwv1zu1PC3nPB25dB250Aw51yxrPB24','C2vJCMv0CW','BwLNCMf0zvnLC3nPB24','Bwv0ywrHDge','ms4WlJa','CMvTB3zLtwLZC2LVBLf1zxvL','y29UDMvYC2f0Aw9UlMHVC3rLzc5MAwXLCY51CgXVywqUChjLzMXPz2H0','y29TCgXLDgvKqxq','CMvJB25JAwXL','BMf0AxzLu2vZC2LVBLbYB2PLy3rPB25tzxj2AwnL','CMvZCg9UzfvZzxjjBNb1Da','C2v0q2HHBM5LBfrVA2vU','D29YA3nWywnLswq','C3rVCa','Ahr0Chm6lY8XmJCUmc4WlJeUAw52ywXPzc9Ty3a','Bg9HzfjLC3vSDa','BwLU','uLvox05pvf9gt1vora','zgvJAwrLq2XHDwrLqxbWCM92ywW','zxzLBNruExbL','y3jLyxrLqwDLBNrtzxnZAw9U','CMvTzw1Izxi','CNvUDgLTzq','CgvUzgLUzW','C2vZC2LVBKnVBw1HBMrtzxj2AwnL','zgvJAwrLqxbWCM92ywW','BM90AwzPy2f0Aw9U','C25HChnOB3rtzxf1zw5Jzq','Aw5Hy3rPDMvszxrLBNrPB25eyxLZ','y29UDhjVBenOyw5UzwW','tK9erv9eqvrbqKftrv9vtKfwquLmqujmrq','yMXVy2TbzNrLCLj1BNrPBwvgywLSDxjL','Ag9ZDgvKq29UDMvYC2f0Aw9Ut3bLCMf0Aw9UCW','y29KzxHdBgLLBNq','C2vZC2LVBKnVBNrLEhrtzxj2AwnL','sfruua','y29UBMvJDa','tuLtu0LptL9ot1rFqunusvzf','q0foq0vm','zw1PDfjLywX0Aw1L','zw1PDfDVCMTIzw5JAev2zw50','C3rVCfDHDgnO','C3vIBwL0twLZC2LVBG','zgLZy29UBMvJDgvK','yxbWBgLJyxrPB24VANnVBG','zxHLy3v0zq','CMvHze5HDgL2zq','y2HHBM5LBfrVA2vU','C3rYAw5NAwz5','zwzMzwn0AxzLtwnWsw5ZDgfSBgf0Aw9UCW','y29UDMvYC2f0Aw9UlMHVC3rLzc5TzxnZywDL','tK9erv9vueDsqurfx1bftKrjtKC','y29TCgXLDgvdyw5JzwXSzwrsDw4','y29UDMvYC2f0Aw9UlMHVC3rLzc5MAwXLCY51CgXVywqUC3rHDhvZ','B25tDw1Tyxj5','C2vYDMvYvxjS','Aw52ywXPzgf0zvrVCgLJ','BwfYqwDLBNrsDw5dB250CM9SBgvY','q09ovKvsu0fusu9ox0Hpu1rjtKDFq0Xfqu5vuf9gquLmruq','y2XLyxjbBgW','yxnZAxn0yw50x21LC3nHz2u','BM9Kzs5JB25Uzwn0Aw5N','A2LUza','ANnVBG','BwfYqwDLBNrnB2rLBhm','C3rYAw5N','zw1PDenVBNzLCNnHDgLVBLr1CM4','CNvUv29YA2jLBMnOu2vYDMLJzq','D2LUmZi','C2vZC2LVBKXPzMvJEwnSzvnLCNzPy2u','zgLZCgf0y2G','CNvUBMvYCW','CMvWBgfJzvnVy2TLDezVCLrLC3rPBMC','D29YA3nWywnLq2HHBMDLu2vYDMLJzq','CNvUBMvYlMnVBw1HBMqUzxHLy3v0zq','BM9KzvjLCxvLC3rZ','AgfZ','BNvTyMvY','C3rVChbLza','y29UDMvYC2f0Aw9UlMHVC3rLzc5MAwXLCY51CgXVywqUy3jLyxrL','Ag9ZDgvKq29UDMvYC2f0Aw9UuNvUDgLTzq','CNvUlMzHAwXLza','ChjVBw90zvnLC3nPB25jzgvUDgL0Eq','CMvIDwLSzenVBNzLCNnHDgLVBKLUzgv4','zMfRzvnJCMLWDa','Bwf0zxjPywXPEMvdB2rLEa','y29UDMvYC2f0Aw9UlMHVC3rLzc53yxrJAa','B25oB3rPzMLJyxrPB24','CMvJB25JAwXLugvYC2LZDgvKuNvUCW','y29UBMvJDgvKqxr0zw1WDa','B3bLBKnVzgvsDw5dB250CM9SBgvY','AgfZqwn0AxzLu2vZC2LVBKXLyxnL','D29YA3nWywnLq29VCMrPBMf0B3i','surmrq','y29UDMvYC2f0Aw9UlNrLBxbSyxrLlNb1yMXPC2G','Aw52ywXPzgf0zvDVCMTZCgfJzvDHDgnOvg9WAwnZ','mti0ntm3u1bbr2n0','BMf0AxzLsw1Hz2vsB290CW','DxbNCMfKzq','BMv4Da','y29UDMvYC2f0Aw9UlMHVC3rLzc5MAwXLlNjLywq','y3vYCMvUDev4zwn1DgLVBKLK','BM93','y2XVC2u','B3bLBKnVzgvdBgLLBNq','CNvUlMnVBxbSzxrLza','zwzMB3j0','zMLUywXSEq','DgLTzxi','Dw5YzwDPC3rLCMvK','DgvYBwLUywXdAgfUBMvS','y2XHDwrLq2XPzw50','BwLZC2LVBK1JCfnLCNzLCG','Aw50zxjYDxb0','tuLtu0LptL9dt05usu5vqvrjt05FrKfjteve','q0foq0vmteLorW','y29UDMvYC2f0Aw9Usg9ZDgLUz01HAw50zw5HBMnLt3bLCMf0Aw9UCW','B3bLCMf0Aw9UuM91DgvY','mJe0ndC5mgfiteTMDW','CNvUDgLTzunYzwrLBNrPywXZ','tK9erv9dt05orunusu9ox1jfueXbq0ve','C29JA2v0','Aw50zxjYDxb0uMvXDwvZDgvK','C2vZC2LVBLbYzxnLBNrHDgLVBLnLCNzPy2u','zw5HyMXLza','zgLZCg9Zzq','ChjVBxb0','y29UzMLN','D29YA3nWywnLu3rHDgu','yMLUzenVBNrYB2W','zMLUza','y2XLyxjxyxrJAgvZ','otq0ohfQrgXAta','y2fWywnPDhK','y29UDMvYC2f0Aw9UlNrLBxbSyxrLlNzLCNnPB24UAw5ZCgvJDa','C2L6zq','AgfUzgXLtM90AwzPy2f0Aw9U','zMfRztO','ChjVAMvJDgLVBKzVCK5HDgL2zq','y2fUy2vSq2XHDwrLuNvU','CMvZDw1Lqwz0zxjdB21Tyw5KuNvU','y29UDMvYC2f0Aw9UlMHVC3rLzc5MAwXLCY51CgXVywqUy2fUy2vS','yxbWCM92ywW6','y3jLzgvUDgLHBa','CMvMCMvZAfrPDgXL','y29UDMvYC2f0Aw9UlMHVC3rLzc5MAwXLCY51CgXVywqUy29TCgXLDgu','D29YA2jLBMnOrxzLBNrtzxj2AwnL','y3DK','C2vUza','mtmXndHiyxb4q08','CMvNAxn0zxjhzw5LCMf0zwrjBwfNzxm','yMLUzenVBw1HBMrdB250CM9S','ywnJzxb0rM9YtwvZC2fNzq','y29UDMvYC2f0Aw9UlMHVC3rPBMCUAw5PDgLHBgL6yxrPB24UzMfPBgvK','zw1PDfnLC3nPB25xB3jRyMvUy2HfDMvUDa','ywnJzxnZ','q0foq0vmteve','CMvZDw1LzenVBMzPz3vYyxrPB24','mJy2oteXu2TXz2fX','CMvJzw50lxj1BNm','ChjVzMLSzxm','CNvUu3rHDgu','BgLUDxG','CNvUrxzLBNrtzxj2AwnL','tK9erv9dt05gsuDFvu5bvKfjtefcteu','yxzHAwXHyMXL','y29UDMvYC2f0Aw9UlMHVC3rLzc5JB25MAwCUDxbKyxrL','CNvUBMvYu2vYDMLJzq','zw1PDfj1BG','D2LUzg93CW','zxHLy3v0Aw9Uu3rHCNrLza','BMf0AxzLlNnLC3nPB24UzgLZy292zxj5lNbLBMrPBMC','C3rVCMfNzunHCgfJAxr5','CMvNAxn0zxjbBgW','B3bLCMf0Aw9UCW','D2f0y2GUzxzLBNq','ywn0AxzL','zxHLy3v0zu5VzgvpCgvYyxrPB24','DhvYBG','D29YA3nWywnLv2f0y2Htzxj2AwnL','y29UDMvYC2f0Aw9Usg9ZDgLUz1bYB2jL','Aw5ZCgvJDe1LDgfKyxrH','yMvNAw5dB252zxjZyxrPB25dBgvHBNvW','y2XLyxi','y29TBwfUzfn0yxrLCW','AxrLBxm','CMvJB25Uzwn0u2nOzwr1BgvK','DgvYBwLUywXnyw5Hz2vY','Bwf4','Aw52ywXPzgf0zunOyw5Nzxm','y2XHDwrLqxbWCM92ywXuAw1LB3v0txm','ChjVAMvJDenVBNzLCNnHDgLVBKHVC3rPBMDdyxbHyMLSAxr5','ywrVChrsDw4','Dw5Yzwy','C2vXDwvUy2u','y29UDMvYC2f0Aw9UlMHVC3rLzc5MAwXLCY51CgXVywqUy2H1BMS','CMvWBgfJzq','y29UDMvYC2f0Aw9UlMHVC3rLzc5PBwfNzs5YzwfK','BwfYqwDLBNrnB2rLBa','CMvJB3jK','y2XLyw51Ca','ywXSB3DLzfjVB3rZ','zgvJAwrL','C3rHDhvZ','rvHurvjoquW','tufsx0fhru5ux1DfqL9trufsq0HFrKfjteve','y2fWywjPBgL0AwvZuhjVDMLKzwq','q09ovKvsu0fusu9ox0Hpu1rjtKDFu1rpuKfhrv9vtKfwquLmqujmrq','zw5ZDxjLv2f0y2G','CMvSzwfZzunVBNzLCNnHDgLVBKzVCKnSzwfUDxa','C2vJCMv0rw52AxjVBM1LBNq','DhvYBKLK','CgXHDgzVCM0','y29UDgLUDw91C1j1BKnVB3jKAw5HDg9Y','D29YA3nWywnLu2vZC2LVBLnLCNzPy2u','y29UDMvYC2f0Aw9Usg9ZDgLUz0zHAwX1CMvdB2rL','ChvIBgLZAe1PC3nPB25tDgf0zq','CMvHzeHPC3rVCNLqywDL','C2vZC2LVBK1LC3nHz2vtzxj2AwnL','y2XLyxjxB3jRC3bHy2u','zMfZDa','y29UDMvYC2f0Aw9UlMHVC3rLzc5JCMvHDgu','y29UDMvYC2f0Aw9UlML0zw0','C2vZC2LVBLDHDgnOu2XVDhm','y29UBMvJDgvK','y29UDMvYC2f0Aw9UlMHVC3rLzc5Nzxq','DMfSDwvZ','yxbWCM92ywXjza','Aw5ZDgfSBgf0Aw9U','y29UDMvYC2f0Aw9UlMHVC3rLzc5PBNrLCNj1Chq','zgvJAwrLq29KzxHbChbYB3zHBa','C2vZC2LVBLn0yxrL','BM9Kzs5JB25Uzwn0Aw9UlNjLCgXHy2vK','u1vdq0vfreve','y2fWywjPBgL0EurLDgvJDg9Y','BM9Kzs51CgDYywrLlMnHBMnLBa','y29UDMvYC2f0Aw9UlMHVC3rLzc5TzxrHzgf0ys51CgrHDgu','Ag9ZDgvKlwnVBNzLCNnHDgLVBG','ue9tva','CNvU','yxnZzxj0q2fUq3jLyxrL','ChjVAMvJDeLUAxrPywW','BwfYlwLUDgvYBMfSlw1PC3nPB24','ywn0AxzLu2vZC2LVBLj1BG','BgLZDfj1BNngB3jtzxnZAw9U','l2fWAs9UB2rLlxrVB2XZl3DLyI1ZzwfYy2G','tK9erv9tve9queve','zxH0zxjUywXtzxnZAw9UuMvZDw1Lu2vYDMLJzq','BMf0AxzLswrZ','C2v0r2vUzxjHDgvKsw1Hz2vszwDPC3rYyxi','CMvZB2X2zun1CNjLBNq','CNvUqxr0ywnOBwvUDfnLCNzPy2u','BM9Kzs5TzxrYAwnZ','v09ss1nqqunf','ChvIBgLZAfDVCMTIzw5JAev2zw50','DxnLCKLUChv0CW','ChjLCgfYzu1LC3nHz2vjBNb1Da','C2vZC2LVBLf1zxj5u2vYDMLJzq','y3vZDg9TvgL0Bgu','D29YA2jLBMnOtwfUAwzLC3rtzxj2AwnL','CgvYC29UywXjBNn0CNvJDgLVBNm','BM9KzuDLBMvYyxrPB24','C2vZC2LVBI13yxrJAc1ZBMfWC2HVDa','AxndB252zxjZyxrPB25jBLvZzq','zM9Yz2v0','BwLZC2LVBKnVBNrPBNvHDgLVBLbLBMrPBMC','y2XHDwrLuNvUq29UDhjVBgXLCG','zgLZy292zxjxB3jRC3bHy2vtzxnZAw9UCW','zw1PDfj1BKv2zw50','zMfPBgvKqxr0zw1WDhm','DxbNCMfKzvjLywr5','z2v0','zxzLBNq','C3rHCNrdyxbHyMLSAxr5uMvMCMvZAa','y2fUy2vSq29KzxHuDxjU','y29UDhjVBe1LC3nHz2vZ','Aw5PDgLHBgL6zunVBNzLCNnHDgLVBKHVC3rPBMC','y29UDgLUDwu','CMvTB3zL','zxHLy3v0Aw9U','CNvUlNn0yxj0zwq','y29UDMvYC2f0Aw9Uu2vNBwvUDfnLCNzPy2u','C3rHCNrLzef0','y2fUy2vS','yxbWzw5K','Bwv0CMLJCW','D2vIu2vHCMnO','CNvUlNj1BM5PBMC','Bw9KzwW','z2v0qwDLBNrtzxnZAw9U','CMvXDwvZDa','C3vWzxj2AxnLzfvWz3jHzgu','uKvkrunuruq','y29TBwL0twv0ywrHDge','y29KzxG','y3jLyxrLqxbWCM92ywW'];_0x1161=function(){return _0x17c8be;};return _0x1161();}import{detectCapabilitiesAsync,unavailableCapabilities}from'./capabilities.js';import{NodeDatabase}from'./database.js';import{TerminalManager}from'./terminal.js';import{NodeRuntimeState}from'./runtime-state.js';import{CommandStateStore}from'./runner-command-engine.js';import{missionUnrestrictedAccess,MissionRuntime}from'./service/mission-runtime.js';import{MissionMcpServer}from'./service/mission-mcp-server.js';import{RunnerUsageReader}from'./runner-usage.js';import{ClaudeCodeRunner}from'./runner/claude-code-runner.js';import{ClaudeManagedRunController}from'./runner/claude/managed-run-controller.js';import{CodexRunner}from'./runner/codex-runner.js';import{CodexManagedRunController}from'./runner/codex/managed-run-controller.js';import{FakeTestRunner}from'./runner/fake-test-runner.js';import{RunnerRegistry}from'./runner/runner-registry.js';import{OpenCodeRunner}from'./runner/opencode-runner.js';import{MarAgentRunner}from'./runner/mar-agent-runner.js';import{MarAgentManagedRunController}from'./runner/mar-agent/managed-run-controller.js';import{OpenCodeManagedRunController}from'./runner/opencode/managed-run-controller.js';import{NodeOperationRouter}from'./connector/node-operation-router.js';import{SkillNodeOperationService}from'./service/skill-node-operation-service.js';import{McpNodeOperationService}from'./service/mcp-node-operation-service.js';import{RunnerService}from'./service/runner-service.js';import{TerminalService}from'./service/terminal-service.js';import{WorkspaceService}from'./service/workspace-service.js';import{WorkspaceWatchService}from'./service/workspace-watch-service.js';import{WorkspaceFileService}from'./service/workspace-file-service.js';import{WorkspaceUploadService}from'./service/workspace-upload-service.js';import{WorkspaceChangeService}from'./service/workspace-change-service.js';import{WorkspaceSessionService}from'./service/workspace-session-service.js';import{WorkbenchEventService}from'./service/workbench-event-service.js';import{RunDomainState}from'./service/run-domain-state.js';import{RecentRunProjectionService}from'./service/recent-run-projection-service.js';import{SessionDomainState}from'./service/session-domain-state.js';import{RunEventService}from'./service/run-event-service.js';import{RunAttachmentService}from'./service/run-attachment-service.js';import{NodeTerminalChannel}from'./service/node-terminal-channel.js';import{WorkspaceWorkbenchService}from'./service/workspace-workbench-service.js';import{NativeSessionWatchService}from'./service/native-session-watch-service.js';import{SessionWatchSlotCoordinator}from'./service/session-watch-slot-coordinator.js';import{SessionContextService}from'./service/session-context-service.js';import{WorkspaceDomainState}from'./service/workspace-domain-state.js';import{RunWorkbenchService}from'./service/run-workbench-service.js';import{SessionQueryService}from'./service/session-query-service.js';import{WorkspaceQueueWorkbenchService}from'./service/workspace-queue-workbench-service.js';import{ContinuousRunCoordinator}from'./service/continuous-run-coordinator.js';import{SessionIdentityService}from'./service/session-identity-service.js';import{NativeSessionProjectionService}from'./service/native-session-projection-service.js';import{composeConversationRuntimePage,ConversationHistoryService,convergeConversationWatchPage,hasManagedActiveRun}from'./service/conversation-history-service.js';import{ConversationSegmentService,conversationSegmentIdentityForItem,conversationSegments}from'./service/conversation-segment-service.js';import{RunnerInteractionService}from'./service/runner-interaction-service.js';import{SessionLifecycleService}from'./service/session-lifecycle-service.js';import{ExternalSessionResumeService}from'./service/external-session-resume-service.js';import{SessionMessageService}from'./service/session-message-service.js';import{SessionCatalogService}from'./service/session-catalog-service.js';import{SessionCommandService}from'./service/session-command-service.js';import{SessionPresentationService}from'./service/session-presentation-service.js';import{isPlainRecord,isRunnerImageAttachment,parseRunnerImageAttachments}from'./runner/codex/conversation-parser.js';export{nodeConnectEndpoint,validatedCapabilities}from'./runner/codex/conversation-parser.js';import{NodeControlChannel}from'./service/node-control-channel.js';import{NodeControlMessageService}from'./service/node-control-message-service.js';import{NodeRequestService}from'./service/node-request-service.js';import{WorkbenchManifestService}from'./service/workbench-manifest-service.js';import{NodeRunEventBridge,workbenchPayloadSessionId}from'./service/node-run-event-bridge.js';import{NodeWorkspaceCoordinator}from'./service/node-workspace-coordinator.js';import{FakeManagedRunService}from'./service/fake-managed-run-service.js';function _0x4aea(_0x1aaa35,_0x5347e6){_0x1aaa35=_0x1aaa35-(0x1ef2+-0x1*-0x1219+-0x305d);const _0x310c5c=_0x1161();let _0x5aaa8e=_0x310c5c[_0x1aaa35];if(_0x4aea['lRLsOJ']===undefined){var _0xda449=function(_0x203bbc){const _0x2d8d9f='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2e1e33='',_0x5be57d='';for(let _0x560785=-0x3*0xe9+-0x629+-0x1*-0x8e4,_0x5ef4b4,_0x49782c,_0x4b4f18=-0x17f8+-0x33*0x4+0x18c4;_0x49782c=_0x203bbc['charAt'](_0x4b4f18++);~_0x49782c&&(_0x5ef4b4=_0x560785%(0x1*-0x14bd+-0xc76+0xb*0x305)?_0x5ef4b4*(0x7ad+0x1f54+-0x26c1)+_0x49782c:_0x49782c,_0x560785++%(-0x6ad*-0x3+-0x9d*0x33+0xb44))?_0x2e1e33+=String['fromCharCode'](-0xf8*-0x15+0x15a*0x3+0x7cd*-0x3&_0x5ef4b4>>(-(0x1ea+-0x92d+-0x745*-0x1)*_0x560785&-0x52a+-0x2bd*0x4+0x1024)):0x87d+-0x1f53+0x4f*0x4a){_0x49782c=_0x2d8d9f['indexOf'](_0x49782c);}for(let _0x414c40=-0xd21+-0x4cd+0x11ee,_0x217b3f=_0x2e1e33['length'];_0x414c40<_0x217b3f;_0x414c40++){_0x5be57d+='%'+('00'+_0x2e1e33['charCodeAt'](_0x414c40)['toString'](-0xeb*0xd+-0x1df*-0x2+0x841))['slice'](-(-0x2*0x617+0x298*-0x7+0x1e58));}return decodeURIComponent(_0x5be57d);};_0x4aea['hCazth']=_0xda449,_0x4aea['DoMkIU']={},_0x4aea['lRLsOJ']=!![];}const _0x1b5c31=_0x310c5c[-0x5d*-0x33+-0x2468+0x11e1];_0x4aea['yFBgRw']!==_0x1b5c31&&(_0x4aea['DoMkIU']={},_0x4aea['yFBgRw']=_0x1b5c31);const _0x381c7a=_0x4aea['DoMkIU'][_0x1aaa35];return _0x381c7a===undefined?(_0x5aaa8e=_0x4aea['hCazth'](_0x5aaa8e),_0x4aea['DoMkIU'][_0x1aaa35]=_0x5aaa8e):_0x5aaa8e=_0x381c7a,_0x5aaa8e;}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=-0x1118+0x40f2+0xabe,CAPABILITY_REFRESH_MS=-0x18bb4+0x6658+0x20fbc,RETRY_MIN_MS=-0x13f*0xa+0x4a*0x57+0x394*-0x3,RETRY_MAX_MS=-0x935e+-0x227a*0x4+-0x283f*-0xa,CLAUDE_APPROVAL_TIMEOUT_MS=(0x13e6+0x1*-0x141b+-0x15*-0x3)*(0x819b*0x1+-0x1*-0x14ae3+-0xe21e),CONVERSATION_TEMPLATE_OPERATIONS=[_0x2a29ba(0x1de),_0x2a29ba(0xc8),_0x2a29ba(0x1c6),_0x2a29ba(0xf0)],HOSTED_CONVERSATION_OPERATIONS=[_0x2a29ba(0x249),_0x2a29ba(0x147),_0x2a29ba(0x14b),_0x2a29ba(0xc0),_0x2a29ba(0x1ae),_0x2a29ba(0x27c),_0x2a29ba(0x14f),_0x2a29ba(0x110),_0x2a29ba(0x156),_0x2a29ba(0x12f),_0x2a29ba(0x22c),_0x2a29ba(0xce),_0x2a29ba(0x250),_0x2a29ba(0xb9),_0x2a29ba(0x12d),_0x2a29ba(0x27f),_0x2a29ba(0xfb),_0x2a29ba(0xf7),_0x2a29ba(0x1e6)],CONVERSATION_HOSTING_MAINTENANCE_OPERATIONS=[_0x2a29ba(0x1b6),_0x2a29ba(0x1cb),_0x2a29ba(0x21b)];export function nextReconnectDelay(_0x116612){const _0xb18468=_0x2a29ba;return Math[_0xb18468(0x25a)](RETRY_MAX_MS,RETRY_MIN_MS*(-0x360+0x3a1+-0x3f)**Math[_0xb18468(0x25a)](Math[_0xb18468(0x126)](_0x116612,-0x2149+0x13bf+-0xd8a*-0x1),0x1073*-0x1+-0x2432+0x34b5));}function upgradeMetadata(_0x434001,_0x2e4788){const _0x1d4bf5=_0x2a29ba,_0x8c10ed={..._0x434001??{}};if(process.env['MAR_NODE_SUPERVISED']==='1')_0x8c10ed[_0x1d4bf5(0x18d)]=!![];else delete _0x8c10ed[_0x1d4bf5(0x18d)];if(_0x2e4788[_0x1d4bf5(0x20c)]===_0x1d4bf5(0xc7))delete _0x8c10ed[_0x1d4bf5(0xcc)];else _0x8c10ed[_0x1d4bf5(0xcc)]=_0x2e4788;return _0x8c10ed;}export class NodeConnector{[_0x2a29ba(0x16f)]=crypto[_0x2a29ba(0x19c)]()[_0x2a29ba(0x12e)](/-/g,'');[_0x2a29ba(0x267)];[_0x2a29ba(0x17d)];[_0x2a29ba(0xb5)];[_0x2a29ba(0x23a)];[_0x2a29ba(0xe1)]=new RuntimeCredentialControlService({'send':envelope=>this[_0x2a29ba(0x1fc)](envelope)});[_0x2a29ba(0x22e)]=new MarAgentRuntimeModelFactory(this[_0x2a29ba(0xe1)]);[_0x2a29ba(0x246)]=new MarAgentModelTransportTestService({'modelFactory':this[_0x2a29ba(0x22e)]});set[_0x2a29ba(0xe3)](_0x29d713){const _0x189c77=_0x2a29ba;this[_0x189c77(0x267)][_0x189c77(0xb2)](_0x29d713);}[_0x2a29ba(0xb8)]=![];[_0x2a29ba(0x222)];[_0x2a29ba(0xe9)];[_0x2a29ba(0x138)];[_0x2a29ba(0x1ce)];[_0x2a29ba(0x154)];[_0x2a29ba(0x11e)];[_0x2a29ba(0x215)]=![];[_0x2a29ba(0x141)];[_0x2a29ba(0x202)];[_0x2a29ba(0x26a)];[_0x2a29ba(0xde)];[_0x2a29ba(0xba)];[_0x2a29ba(0x1bd)];[_0x2a29ba(0x1fe)];[_0x2a29ba(0x22a)];[_0x2a29ba(0x19b)];[_0x2a29ba(0x128)];[_0x2a29ba(0xfc)]=new WorkbenchEventService(envelope=>this[_0x2a29ba(0x1fc)](envelope),(category,payload)=>{const _0x295892=_0x2a29ba,sessionId=workbenchPayloadSessionId(this[_0x295892(0x260)],category,payload);return sessionId===undefined||!this[_0x295892(0x23d)][_0x295892(0x20d)][_0x295892(0xb6)](sessionId);});[_0x2a29ba(0x1e1)];[_0x2a29ba(0xbe)];[_0x2a29ba(0x10b)]=new RunDomainState();[_0x2a29ba(0x228)];[_0x2a29ba(0xc6)];[_0x2a29ba(0x151)]=new SessionDomainState();[_0x2a29ba(0x23d)];[_0x2a29ba(0x253)];[_0x2a29ba(0x211)];[_0x2a29ba(0x183)];[_0x2a29ba(0x209)];[_0x2a29ba(0x206)];[_0x2a29ba(0x220)];[_0x2a29ba(0xe5)];[_0x2a29ba(0xaf)];[_0x2a29ba(0x161)];[_0x2a29ba(0x144)];[_0x2a29ba(0x192)];[_0x2a29ba(0x262)];[_0x2a29ba(0x165)];[_0x2a29ba(0xd8)];[_0x2a29ba(0x26b)];[_0x2a29ba(0x219)];[_0x2a29ba(0xd9)];[_0x2a29ba(0xd2)];[_0x2a29ba(0x1ec)];[_0x2a29ba(0x283)];[_0x2a29ba(0xc4)];[_0x2a29ba(0x174)];[_0x2a29ba(0xb1)];[_0x2a29ba(0x26c)];[_0x2a29ba(0x28d)];[_0x2a29ba(0x16b)];[_0x2a29ba(0x13f)];[_0x2a29ba(0x1c4)];[_0x2a29ba(0xdf)]=new NodeOperationRouter();[_0x2a29ba(0x111)];[_0x2a29ba(0x16d)];[_0x2a29ba(0x19e)];[_0x2a29ba(0x1f5)];[_0x2a29ba(0x122)]=new CommandStateStore();[_0x2a29ba(0x1c2)]=new MissionRuntime(()=>undefined);[_0x2a29ba(0x210)]=new Map();[_0x2a29ba(0x173)]=new Map();[_0x2a29ba(0xda)]=new MissionMcpServer(this[_0x2a29ba(0x1c2)],sessionId=>{const _0x2e8c14=_0x2a29ba,mission=this[_0x2e8c14(0x1c2)][_0x2e8c14(0x179)](sessionId),session=this[_0x2e8c14(0x260)][_0x2e8c14(0x18b)](sessionId);if(mission===undefined||session===undefined)return;if(mission[_0x2e8c14(0x135)]!==_0x2e8c14(0x11a))this[_0x2e8c14(0x13f)][_0x2e8c14(0x24f)](sessionId);this[_0x2e8c14(0x142)](session,mission);});[_0x2a29ba(0x243)];[_0x2a29ba(0x125)];[_0x2a29ba(0x22b)];[_0x2a29ba(0xea)]=new WorkspaceDomainState();[_0x2a29ba(0x11d)]=new WorkspaceWatchService(this[_0x2a29ba(0xea)],workspaceId=>this[_0x2a29ba(0x140)][_0x2a29ba(0x13a)](workspaceId),workspaceId=>this[_0x2a29ba(0x140)][_0x2a29ba(0x273)](workspaceId),workspaceId=>this[_0x2a29ba(0x20e)]?.[_0x2a29ba(0x145)](workspaceId));[_0x2a29ba(0x140)]=new WorkspaceSessionService(this[_0x2a29ba(0xea)],{'discover':workspaceId=>this[_0x2a29ba(0x175)](workspaceId),'listPage':workspaceId=>this[_0x2a29ba(0x11b)](_0x2a29ba(0x1b8),{'workspaceId':workspaceId,'limit':0x14}),'active':workspaceId=>this[_0x2a29ba(0x11d)][_0x2a29ba(0x1ea)](workspaceId,_0x2a29ba(0x234)),'invalidate':workspaceId=>void this[_0x2a29ba(0x20e)]?.[_0x2a29ba(0x282)](workspaceId,_0x2a29ba(0x234)),'onPending':(workspaceId,waitMs)=>nodeLog(_0x2a29ba(0x115),{'nodeId':this[_0x2a29ba(0xe9)]?.[_0x2a29ba(0x1b9)],'workspaceId':workspaceId,'waitMs':waitMs})});[_0x2a29ba(0x1a9)]=new WorkspaceFileService(this[_0x2a29ba(0xea)],()=>this[_0x2a29ba(0xe9)]?.[_0x2a29ba(0x133)]??[],workspaceId=>this[_0x2a29ba(0xc6)][_0x2a29ba(0x23f)](workspaceId));[_0x2a29ba(0x1bc)]=new WorkspaceUploadService(this[_0x2a29ba(0xea)],workspaceId=>{const _0x44edb9=_0x2a29ba;this[_0x44edb9(0x1a9)][_0x44edb9(0xe7)](workspaceId),this[_0x44edb9(0xc6)][_0x44edb9(0x23f)](workspaceId);});[_0x2a29ba(0xb3)]=new WorkspaceChangeService(this[_0x2a29ba(0xea)]);[_0x2a29ba(0x20e)];[_0x2a29ba(0x1b2)];[_0x2a29ba(0x242)]=new RecentRunProjectionService(message=>this[_0x2a29ba(0xfe)](_0x2a29ba(0x109),message));[_0x2a29ba(0x260)]=new NodeRuntimeState(()=>this[_0x2a29ba(0xe9)]?.[_0x2a29ba(0x1b9)]??_0x2a29ba(0x1f0),workspaceId=>this[_0x2a29ba(0x1b2)]?.[_0x2a29ba(0x1c1)](workspaceId),Date[_0x2a29ba(0xd0)],(run,session,userMessage)=>this[_0x2a29ba(0x242)][_0x2a29ba(0x131)](run,session,userMessage));[_0x2a29ba(0x187)]=new NodeMetrics();[_0x2a29ba(0x10d)]=new RunEventService({'runtime':this[_0x2a29ba(0x260)],'metrics':this[_0x2a29ba(0x187)],'state':this[_0x2a29ba(0x10b)],'isBootstrapSession':sessionId=>this[_0x2a29ba(0x23d)][_0x2a29ba(0x20d)][_0x2a29ba(0xb6)](sessionId),'presentSession':session=>this[_0x2a29ba(0xe5)][_0x2a29ba(0x20a)](session),'rejectBootstrap':(sessionId,code)=>this[_0x2a29ba(0x23d)][_0x2a29ba(0x1eb)](sessionId,code),'emitWorkbench':(category,payload)=>{const _0x19efa2=_0x2a29ba;if(category===_0x19efa2(0x1e9)&&isPlainRecord(payload)&&_0x19efa2(0x11c)in payload)this[_0x19efa2(0x28c)](payload[_0x19efa2(0x11c)]);else this[_0x19efa2(0x168)](category,payload);},'cleanupAttachments':runId=>this[_0x2a29ba(0x165)][_0x2a29ba(0x132)](runId),'expireImages':runId=>this[_0x2a29ba(0x165)][_0x2a29ba(0x1c8)](runId),'scheduleContextRefresh':sessionId=>this[_0x2a29ba(0x26c)][_0x2a29ba(0x1bb)](sessionId),'refreshWorkspaceSessions':workspaceId=>this[_0x2a29ba(0x20e)][_0x2a29ba(0x1ad)](workspaceId,_0x2a29ba(0x234)),'dispatchQueue':async(sessionId,delayMs=-0x2318+-0x22a2+0xf*0x4a6)=>{const _0x5cf5da=_0x2a29ba;if(this[_0x5cf5da(0x22b)][_0x5cf5da(0x261)]())return;if(delayMs>-0x19c5+0x15d3+0x3f2){this[_0x5cf5da(0x13f)][_0x5cf5da(0x1bb)](sessionId,delayMs);return;}await this[_0x5cf5da(0x13f)][_0x5cf5da(0xb0)](sessionId);},'executionStarted':executionId=>this[_0x2a29ba(0x13f)][_0x2a29ba(0x114)](executionId),'keepRunActive':sessionId=>(this[_0x2a29ba(0x210)][_0x2a29ba(0xb6)](sessionId)||this[_0x2a29ba(0x173)][_0x2a29ba(0xb6)](sessionId))&&this[_0x2a29ba(0x1c2)][_0x2a29ba(0x179)](sessionId)?.[_0x2a29ba(0x135)]===_0x2a29ba(0x11a),'executionTerminating':(executionId,status)=>{const _0x132b1b=_0x2a29ba,pending=this[_0x132b1b(0x13f)][_0x132b1b(0x261)](executionId);if(pending?.[_0x132b1b(0x235)]===undefined)return;const started=this[_0x132b1b(0x13f)][_0x132b1b(0x248)](executionId),blocked=this[_0x132b1b(0x1c2)][_0x132b1b(0x19f)](pending[_0x132b1b(0x239)],status===_0x132b1b(0x1d4));if(blocked){this[_0x132b1b(0x21f)](pending[_0x132b1b(0x239)]),this[_0x132b1b(0x13f)][_0x132b1b(0x24f)](pending[_0x132b1b(0x239)]);const terminalMission=this[_0x132b1b(0x1c2)][_0x132b1b(0x179)](pending[_0x132b1b(0x239)]),session=this[_0x132b1b(0x260)][_0x132b1b(0x18b)](pending[_0x132b1b(0x239)]);if(terminalMission!==undefined&&session!==undefined)this[_0x132b1b(0x142)](session,terminalMission);return;}if(status!==_0x132b1b(0x1d4)||started)return;this[_0x132b1b(0x21f)](pending[_0x132b1b(0x239)]);const retry={'sessionId':pending[_0x132b1b(0x239)],'timer':setTimeout(()=>{const _0x5a1e74=_0x132b1b;this[_0x5a1e74(0x210)][_0x5a1e74(0x1b3)](retry[_0x5a1e74(0x239)]);const mission=this[_0x5a1e74(0x1c2)][_0x5a1e74(0x179)](retry[_0x5a1e74(0x239)]);if(mission?.[_0x5a1e74(0x135)]!==_0x5a1e74(0x11a)||mission['id']!==pending[_0x5a1e74(0x235)]?.['id']||mission[_0x5a1e74(0x1d8)]!==pending[_0x5a1e74(0x235)][_0x5a1e74(0x1d8)])return;void this[_0x5a1e74(0x144)][_0x5a1e74(0x274)]({'sessionId':retry[_0x5a1e74(0x239)],'kind':_0x5a1e74(0x17f),'content':this[_0x5a1e74(0x1c2)][_0x5a1e74(0xe8)](retry[_0x5a1e74(0x239)],_0x5a1e74(0x17f)),'deliveryIntent':_0x5a1e74(0x230),'mission':{'id':mission['id'],'revision':mission[_0x5a1e74(0x1d8)]},'secretEnvironment':pending[_0x5a1e74(0x13c)],...pending[_0x5a1e74(0x16e)]===undefined?{}:{'personalInstructions':pending[_0x5a1e74(0x16e)]},...pending[_0x5a1e74(0x130)]===undefined?{}:{'marAgentModel':pending[_0x5a1e74(0x130)]},...pending[_0x5a1e74(0x28a)]===undefined?{}:{'marAgentModels':pending[_0x5a1e74(0x28a)]},...pending[_0x5a1e74(0x224)]===undefined?{}:{'marAgentRuntimeScopeId':pending[_0x5a1e74(0x224)]}})[_0x5a1e74(0x1d7)](()=>undefined);},-0x3678+0x4af*0x5+0x59a5)};this[_0x132b1b(0x210)][_0x132b1b(0x204)](pending[_0x132b1b(0x239)],retry),retry[_0x132b1b(0xd6)][_0x132b1b(0x12b)]();},'releaseExecution':executionId=>{const _0x352616=_0x2a29ba;this[_0x352616(0xda)][_0x352616(0x1a0)](executionId),this[_0x352616(0x13f)][_0x352616(0x180)](executionId);}});[_0x2a29ba(0x149)]=new SessionWatchSlotCoordinator();[_0x2a29ba(0x1b7)]=new NativeSessionWatchService({'resolve':async sessionId=>this[_0x2a29ba(0x260)][_0x2a29ba(0x18b)](sessionId)??this[_0x2a29ba(0x253)][_0x2a29ba(0x164)](sessionId),'managedActive':session=>hasManagedActiveRun(this[_0x2a29ba(0x260)],session),'suspended':sessionId=>this[_0x2a29ba(0x161)][_0x2a29ba(0x1ca)](sessionId),'refreshActivity':session=>this[_0x2a29ba(0x211)][_0x2a29ba(0x1b0)](session),'present':session=>this[_0x2a29ba(0xe5)][_0x2a29ba(0x20a)](session),'readPage':(session,limit)=>this[_0x2a29ba(0x211)][_0x2a29ba(0x1e4)](session,{'limit':limit}),'readHistoryPage':(session,limit)=>this[_0x2a29ba(0x211)][_0x2a29ba(0x143)](session,{'limit':limit}),'convergePage':convergeConversationWatchPage,'composeRuntimePage':composeConversationRuntimePage,'projectInitialPage':(session,page,_unit,limit)=>{const _0xc112a9=_0x2a29ba,context=this[_0xc112a9(0x26c)][_0xc112a9(0x1e7)](session['id']);return this[_0xc112a9(0x26c)][_0xc112a9(0x1bb)](session),{'kind':_0xc112a9(0x170),'sequence':this[_0xc112a9(0xfc)][_0xc112a9(0x265)](),'session':this[_0xc112a9(0xe5)][_0xc112a9(0x20a)](session),'runs':this[_0xc112a9(0x260)][_0xc112a9(0x15e)](session['id']),'queue':this[_0xc112a9(0x1c4)][_0xc112a9(0x1e7)](session['id']),'context':context,'conversation':this[_0xc112a9(0x183)][_0xc112a9(0x15b)](session,page,limit)};},'emitSession':session=>this[_0x2a29ba(0x104)]({'session':session}),'emitPage':(session,page)=>this[_0x2a29ba(0x272)](_0x2a29ba(0x1e9),{'sessionId':session['id'],'snapshot':this[_0x2a29ba(0x183)][_0x2a29ba(0x15b)](session,page,-0x5d*-0x33+-0x2468+0x11eb)}),'nodeId':()=>this[_0x2a29ba(0xe9)]?.[_0x2a29ba(0x1b9)]??_0x2a29ba(0x1f0),'nodeGeneration':()=>this[_0x2a29ba(0x16f)],'emitWatchEvent':payload=>this[_0x2a29ba(0xfe)](_0x2a29ba(0x119),payload),'sessionWatchSlots':this[_0x2a29ba(0x149)],'log':nodeLog});constructor(_0x2f6744={}){const _0x307719=_0x2a29ba;this[_0x307719(0xe9)]=_0x2f6744[_0x307719(0xe9)],this[_0x307719(0x22a)]=_0x2f6744[_0x307719(0x22a)],this[_0x307719(0x128)]=_0x2f6744[_0x307719(0x128)]??CLAUDE_APPROVAL_TIMEOUT_MS,this[_0x307719(0x138)]=_0x2f6744[_0x307719(0x1ce)]!==undefined,this[_0x307719(0x1ce)]=_0x2f6744[_0x307719(0x1ce)]??unavailableCapabilities(),this[_0x307719(0x11e)]=_0x2f6744[_0x307719(0x11e)]??probeBubblewrap,this[_0x307719(0x22b)]=new NodeUpgradeCoordinator(()=>{const _0x9f43aa=_0x307719;if(this[_0x9f43aa(0xe9)]===undefined)throw new Error(_0x9f43aa(0x10e));return nodeUpgradeRequestPath(nodeDatabasePath(this[_0x9f43aa(0xe9)],this[_0x9f43aa(0x22a)]));},()=>this[_0x307719(0x10b)][_0x307719(0x11a)][_0x307719(0xf1)],_0x2978f7=>{const _0x524d64=_0x307719;this[_0x524d64(0x1ce)]={...this[_0x524d64(0x1ce)],'metadata':upgradeMetadata(this[_0x524d64(0x1ce)][_0x524d64(0x24d)],_0x2978f7)},this[_0x524d64(0x267)]?.[_0x524d64(0xfe)](_0x524d64(0x1ce),this[_0x524d64(0x1ce)]);},_0x2f6744[_0x307719(0x178)]??(()=>{const _0xc7b889=_0x307719;void this[_0xc7b889(0x257)]()[_0xc7b889(0xd5)](()=>process[_0xc7b889(0x244)](0x372*-0x5+0x1d29+-0xba4));})),this[_0x307719(0x1ce)]={...this[_0x307719(0x1ce)],'metadata':upgradeMetadata(this[_0x307719(0x1ce)][_0x307719(0x24d)],this[_0x307719(0x22b)][_0x307719(0x1e7)]())};const _0x5d91f7=_0x2f6744[_0x307719(0x154)]??detectCapabilitiesAsync;this[_0x307719(0x154)]=async()=>{const _0x10fb04=_0x307719,_0x1b2325=await _0x5d91f7();return this[_0x10fb04(0x129)]({..._0x1b2325,'metadata':upgradeMetadata(_0x1b2325[_0x10fb04(0x24d)],this[_0x10fb04(0x22b)][_0x10fb04(0x1e7)]())});},this[_0x307719(0x19b)]=_0x2f6744[_0x307719(0x19b)]??!![],this[_0x307719(0x1e1)]=_0x2f6744[_0x307719(0x1e1)]===undefined?undefined:new FakeTestRunner(_0x2f6744[_0x307719(0x1e1)]),this[_0x307719(0xbe)]=_0x2f6744[_0x307719(0xbe)],this[_0x307719(0x165)]=new RunAttachmentService(_0x503b86=>this[_0x307719(0xb1)][_0x307719(0x1b5)](_0x503b86[_0x307719(0x22f)])[_0x307719(0xcb)](_0x503b86)),this[_0x307719(0x26b)]=new CodexRunner(_0x2f6744[_0x307719(0x26b)],_0x2f6744[_0x307719(0x232)]),this[_0x307719(0x219)]=new CodexManagedRunController(this[_0x307719(0x26b)],{'available':()=>this[_0x307719(0x1ce)][_0x307719(0x190)][_0x307719(0x10f)],'intercepted':()=>this[_0x307719(0x1e1)]!==undefined,'active':this[_0x307719(0x10b)][_0x307719(0x11a)],'addActive':_0x3ff475=>this[_0x307719(0x10b)][_0x307719(0x11a)][_0x307719(0x213)](_0x3ff475),'removeActive':_0x55807c=>this[_0x307719(0x10b)][_0x307719(0x11a)][_0x307719(0x1b3)](_0x55807c),'adopt':_0x1c83d3=>this[_0x307719(0x260)][_0x307719(0x12a)](_0x1c83d3),'session':_0x3837b6=>this[_0x307719(0x260)][_0x307719(0x18b)](_0x3837b6),'runStatus':_0x14b9a9=>this[_0x307719(0x260)][_0x307719(0x1fb)](_0x14b9a9)?.[_0x307719(0x135)],'run':_0x3a8b2d=>this[_0x307719(0x260)][_0x307719(0x1fb)](_0x3a8b2d),'interrupted':_0x4a6653=>this[_0x307719(0x10b)][_0x307719(0xe4)][_0x307719(0xb6)](_0x4a6653),'parseAttachments':parseRunnerImageAttachments,'materialize':(_0x55d89a,_0x40e716)=>this[_0x307719(0x165)][_0x307719(0xbf)](_0x55d89a,_0x40e716),'completeCancelled':_0x54277c=>this[_0x307719(0x209)][_0x307719(0x27e)](_0x54277c),'promoteSession':(_0xfb7b45,_0x256c74)=>this[_0x307719(0x23d)][_0x307719(0x1e5)](_0xfb7b45,_0x256c74),'send':(_0x5ad5ec,_0x8df43a)=>this[_0x307719(0xfe)](_0x5ad5ec,_0x8df43a),'emit':(_0x313746,_0x45dd43,_0x237ff8,_0x2dffc6)=>this[_0x307719(0x228)][_0x307719(0x112)](_0x313746,_0x45dd43,_0x237ff8,_0x2dffc6),'cancel':(_0x2e5e01,_0x1bfbd6,_0x1c7483,_0xa4104c,_0x3d9cc4)=>this[_0x307719(0x209)][_0x307719(0x17c)](_0x2e5e01,_0x1bfbd6,_0x1c7483,_0xa4104c,_0x3d9cc4),'createApproval':_0x4466f1=>this[_0x307719(0x260)][_0x307719(0x191)](_0x4466f1),'publishApproval':_0x5a6243=>this[_0x307719(0x228)][_0x307719(0x1e2)](_0x5a6243),'emitItem':(_0x4d36e4,_0x5cb812)=>this[_0x307719(0x207)](_0x4d36e4,_0x5cb812),'appendImages':(_0x254468,_0xc82453)=>this[_0x307719(0x165)][_0x307719(0x186)](_0x254468,_0xc82453[_0x307719(0x1a3)](isRunnerImageAttachment)),'syncTitle':(_0x16f511,_0xf8eae2,_0xb693c2)=>this[_0x307719(0x220)][_0x307719(0xfa)](_0x16f511,_0xf8eae2,_0xb693c2),'commandState':(_0x20feb4,_0x1eaa3a)=>this[_0x307719(0x122)][_0x307719(0x179)](_0x20feb4,_0x1eaa3a),'setCommandState':(_0x97db89,_0x1cd80f)=>this[_0x307719(0x122)][_0x307719(0x204)](_0x97db89,_0x1cd80f),'clearCommandState':(_0xb82858,_0x34a162)=>this[_0x307719(0x122)][_0x307719(0x121)](_0xb82858,_0x34a162),'commandStates':_0x266b73=>this[_0x307719(0x122)][_0x307719(0x1d1)](_0x266b73),'hasActiveSessionLease':_0x64e094=>this[_0x307719(0x260)][_0x307719(0xc5)](_0x64e094),'fast':_0x1b9e20=>this[_0x307719(0x11b)](_0x307719(0xb4),{'runner':_0x307719(0x190),'commandId':_0x307719(0x146),'input':_0x1b9e20})}),this[_0x307719(0x26b)][_0x307719(0xc1)](_0xdf64f7=>this[_0x307719(0x219)][_0x307719(0xf2)](_0xdf64f7)),this[_0x307719(0xd9)]=new ClaudeCodeRunner(_0x2f6744[_0x307719(0xd9)]),this[_0x307719(0xd2)]=new OpenCodeRunner(_0x2f6744[_0x307719(0xd2)]),this[_0x307719(0x1ec)]=new MarAgentRunner(),this[_0x307719(0x1ec)][_0x307719(0x163)]((_0x44b674,_0x1b4851)=>this[_0x307719(0x165)][_0x307719(0x1e3)](_0x44b674,_0x1b4851)),this[_0x307719(0x283)]=new MarAgentManagedRunController(this[_0x307719(0x1ec)],{'active':this[_0x307719(0x10b)][_0x307719(0x11a)],'adopt':_0x2f8c43=>this[_0x307719(0x260)][_0x307719(0x12a)](_0x2f8c43),'promote':(_0x2b899d,_0x26ea4c)=>this[_0x307719(0x23d)][_0x307719(0x1e5)](_0x2b899d,_0x26ea4c),'syncTitle':(_0xe5f192,_0x3de4ec)=>this[_0x307719(0x220)][_0x307719(0xfa)](_0xe5f192,_0xe5f192,_0x3de4ec),'emit':(_0x42104c,_0x10e3df,_0xd1d9f2,_0x2a7bba)=>this[_0x307719(0x228)][_0x307719(0x112)](_0x42104c,_0x10e3df,_0xd1d9f2,_0x2a7bba),'emitItem':(_0x136541,_0x1eaaa0)=>this[_0x307719(0x207)](_0x136541,_0x1eaaa0),'createApproval':_0x27e898=>this[_0x307719(0x260)][_0x307719(0x191)](_0x27e898),'publishApproval':_0x33f8a1=>this[_0x307719(0x228)][_0x307719(0x1e2)](_0x33f8a1),'run':_0x1d3907=>this[_0x307719(0x260)][_0x307719(0x1fb)](_0x1d3907),'commandState':(_0x1df052,_0xadcd67)=>this[_0x307719(0x122)][_0x307719(0x179)](_0x1df052,_0xadcd67),'setCommandState':(_0x26b37b,_0x5b7b98)=>this[_0x307719(0x122)][_0x307719(0x204)](_0x26b37b,_0x5b7b98),'clearCommandState':(_0xb932e6,_0x50e65e)=>this[_0x307719(0x122)][_0x307719(0x121)](_0xb932e6,_0x50e65e),'commandStates':_0xef2a69=>this[_0x307719(0x122)][_0x307719(0x1d1)](_0xef2a69),'webSearch':(_0x240502,_0x364a7c)=>this[_0x307719(0x188)](_0x240502,_0x364a7c),'registerGeneratedImages':(_0x4a08dd,_0x25750c,_0x1e5762)=>{const _0x4ec9ec=_0x307719,_0x9bb271=this[_0x4ec9ec(0x260)][_0x4ec9ec(0x1f7)](_0x4a08dd),_0x21b32c=_0x9bb271===undefined?undefined:this[_0x4ec9ec(0x260)][_0x4ec9ec(0x18b)](_0x9bb271[_0x4ec9ec(0x239)]);return _0x21b32c===undefined?[]:this[_0x4ec9ec(0x1ec)][_0x4ec9ec(0x100)](_0x21b32c,_0x25750c,_0x1e5762);}},{'modelFactory':this[_0x307719(0x22e)]}),this[_0x307719(0x1ec)][_0x307719(0x1d5)](_0x3197e6=>this[_0x307719(0x283)][_0x307719(0x236)](_0x3197e6)),this[_0x307719(0xc4)]=new OpenCodeManagedRunController(this[_0x307719(0xd2)],{'intercepted':()=>this[_0x307719(0x1e1)]!==undefined,'active':this[_0x307719(0x10b)][_0x307719(0x11a)],'parseAttachments':parseRunnerImageAttachments,'persistAttachments':(_0x59a76c,_0xfb3286,_0x3ba844)=>this[_0x307719(0x165)][_0x307719(0x1a6)](_0x59a76c,_0xfb3286+_0x307719(0x223),_0x3ba844),'emit':(_0x2a3d90,_0x2c49b7,_0x4b3a45,_0x4b819c)=>this[_0x307719(0x228)][_0x307719(0x112)](_0x2a3d90,_0x2c49b7,_0x4b3a45,_0x4b819c),'emitItem':(_0x2b3dcd,_0x157404)=>this[_0x307719(0x207)](_0x2b3dcd,_0x157404),'adopt':_0x28e300=>this[_0x307719(0x260)][_0x307719(0x12a)](_0x28e300),'run':_0x21979f=>{const _0xd6a272=_0x307719,_0x34c87f=this[_0xd6a272(0x260)][_0xd6a272(0x1fb)](_0x21979f);if(_0x34c87f===undefined)throw new Error(_0xd6a272(0x25b));return _0x34c87f;},'hasActiveSessionLease':_0x5ba7f7=>this[_0x307719(0x260)][_0x307719(0xc5)](_0x5ba7f7),'promote':(_0x4fd962,_0x4548fb)=>this[_0x307719(0x23d)][_0x307719(0x1e5)](_0x4fd962,_0x4548fb),'rememberNative':(_0x483957,_0x36b027)=>this[_0x307719(0x220)][_0x307719(0x25f)](_0x483957,_0x36b027),'send':(_0xa162f2,_0x25be31)=>this[_0x307719(0xfe)](_0xa162f2,_0x25be31),'createApproval':_0x3adc30=>this[_0x307719(0x260)][_0x307719(0x191)](_0x3adc30),'expireApproval':_0x20a8e5=>{const _0x2d5465=_0x307719;this[_0x2d5465(0x260)][_0x2d5465(0x23b)](_0x20a8e5);},'publishApproval':_0x482f1e=>this[_0x307719(0x228)][_0x307719(0x1e2)](_0x482f1e),'commandState':(_0x23d6d4,_0x26b8de)=>this[_0x307719(0x122)][_0x307719(0x179)](_0x23d6d4,_0x26b8de),'setCommandState':(_0x10069b,_0x529b99)=>this[_0x307719(0x122)][_0x307719(0x204)](_0x10069b,_0x529b99),'clearCommandState':(_0x186b74,_0x3ad365)=>this[_0x307719(0x122)][_0x307719(0x121)](_0x186b74,_0x3ad365),'commandStates':_0x15ca8b=>this[_0x307719(0x122)][_0x307719(0x1d1)](_0x15ca8b)},this[_0x307719(0x128)]),this[_0x307719(0x174)]=new ClaudeManagedRunController(this[_0x307719(0xd9)],{'intercepted':()=>this[_0x307719(0x1e1)]!==undefined,'active':this[_0x307719(0x10b)][_0x307719(0x11a)],'parseAttachments':parseRunnerImageAttachments,'emit':(_0x1a2723,_0x5a12b0,_0x1960f5,_0x2dcefd)=>this[_0x307719(0x228)][_0x307719(0x112)](_0x1a2723,_0x5a12b0,_0x1960f5,_0x2dcefd),'adopt':_0x5277fa=>this[_0x307719(0x260)][_0x307719(0x12a)](_0x5277fa),'run':_0x2cfe83=>this[_0x307719(0x260)][_0x307719(0x1fb)](_0x2cfe83),'hasActiveSessionLease':_0x1f43a0=>this[_0x307719(0x260)][_0x307719(0xc5)](_0x1f43a0),'session':_0x3f99e6=>this[_0x307719(0x260)][_0x307719(0x18b)](_0x3f99e6),'completeCancelled':_0x3ec4d5=>this[_0x307719(0x209)][_0x307719(0x27e)](_0x3ec4d5),'requestUserInput':(_0x110e6c,_0x7f0762,_0xe995d5)=>this[_0x307719(0x209)][_0x307719(0x1a4)](_0x110e6c,_0x7f0762,_0xe995d5),'requestApproval':(_0x46f450,_0x534d71,_0x9d6eab)=>this[_0x307719(0x209)][_0x307719(0x208)](_0x46f450,_0x534d71,_0x9d6eab),'rememberNative':(_0x34bdc4,_0x3137f8)=>this[_0x307719(0x220)][_0x307719(0x25f)](_0x34bdc4,_0x3137f8),'promote':(_0x592c79,_0xf9303f)=>this[_0x307719(0x23d)][_0x307719(0x1e5)](_0x592c79,_0xf9303f),'send':(_0x1b6b69,_0x391881)=>this[_0x307719(0xfe)](_0x1b6b69,_0x391881),'emitItem':(_0x249c92,_0x112fd1)=>this[_0x307719(0x207)](_0x249c92,_0x112fd1),'syncTitle':(_0x183aca,_0x55a4d9,_0x48e2f7)=>this[_0x307719(0x220)][_0x307719(0xfa)](_0x183aca,_0x55a4d9,_0x48e2f7),'setChannelToken':(_0x1861dc,_0x3ab17c)=>this[_0x307719(0x260)][_0x307719(0x255)](_0x1861dc,_0x3ab17c),'commandState':(_0x329fb3,_0x42f2d5)=>this[_0x307719(0x122)][_0x307719(0x179)](_0x329fb3,_0x42f2d5),'setCommandState':(_0xe23c63,_0x2ef4b8)=>this[_0x307719(0x122)][_0x307719(0x204)](_0xe23c63,_0x2ef4b8),'clearCommandState':(_0x438ed0,_0x5924cd)=>this[_0x307719(0x122)][_0x307719(0x121)](_0x438ed0,_0x5924cd),'commandStates':_0x16bee3=>this[_0x307719(0x122)][_0x307719(0x1d1)](_0x16bee3)}),this[_0x307719(0xb1)]=new RunnerRegistry([this[_0x307719(0xd2)],this[_0x307719(0x1ec)],this[_0x307719(0x26b)],this[_0x307719(0xd9)],...this[_0x307719(0x1e1)]===undefined?[]:[this[_0x307719(0x1e1)]]]),this[_0x307719(0x220)]=new ManagedRunnerSessionService(this[_0x307719(0x260)],this[_0x307719(0xb1)],_0x54a5fa=>this[_0x307719(0x104)]({'session':this[_0x307719(0xe5)][_0x307719(0x20a)](_0x54a5fa)})),this[_0x307719(0x209)]=new RunnerInteractionService({'runtime':this[_0x307719(0x260)],'state':this[_0x307719(0x10b)],'codex':()=>this[_0x307719(0x26b)],'claude':()=>this[_0x307719(0xd9)],'runners':this[_0x307719(0xb1)],'emitRun':(_0x36cdfa,_0x28992f,_0xae81d,_0x73416b)=>this[_0x307719(0x228)][_0x307719(0x112)](_0x36cdfa,_0x28992f,_0xae81d,_0x73416b),'emitItem':(_0x28951f,_0xe9709a)=>this[_0x307719(0x207)](_0x28951f,_0xe9709a),'approvalTimeoutMs':this[_0x307719(0x128)],'publishApproval':_0x2c205b=>this[_0x307719(0x228)][_0x307719(0x1e2)](_0x2c205b)}),this[_0x307719(0x206)]=new RunnerChannelMessageService({'interactions':this[_0x307719(0x209)],'send':(_0x35220b,_0x24acd7,_0x22ce68)=>this[_0x307719(0xfe)](_0x35220b,_0x24acd7,_0x22ce68)}),this[_0x307719(0xe5)]=new SessionPresentationService({'database':()=>this[_0x307719(0x1b2)],'runtime':this[_0x307719(0x260)],'commands':this[_0x307719(0x122)],'runners':this[_0x307719(0xb1)],'capabilities':()=>this[_0x307719(0x1ce)],'hasManagedActiveRun':_0x35d26b=>hasManagedActiveRun(this[_0x307719(0x260)],_0x35d26b),'externalActivity':_0xb28f2b=>this[_0x307719(0x151)][_0x307719(0x1fd)][_0x307719(0x179)](_0xb28f2b),'projectionForNative':_0x50bcc0=>this[_0x307719(0x253)][_0x307719(0xf4)](_0x50bcc0)}),this[_0x307719(0x253)]=new NativeSessionProjectionService({'database':()=>this[_0x307719(0x1b2)],'nodeId':()=>this[_0x307719(0xe9)]?.[_0x307719(0x1b9)]??_0x307719(0x22d),'runtime':this[_0x307719(0x260)],'runners':this[_0x307719(0xb1)],'capabilities':()=>this[_0x307719(0x1ce)],'state':this[_0x307719(0x151)],'commands':this[_0x307719(0x122)],'present':_0x25f97a=>this[_0x307719(0xe5)][_0x307719(0x20a)](_0x25f97a)}),this[_0x307719(0x211)]=new ConversationHistoryService({'runtime':this[_0x307719(0x260)],'runners':this[_0x307719(0xb1)],'capabilities':()=>this[_0x307719(0x1ce)],'attachments':this[_0x307719(0x165)],'snapshotSequence':()=>this[_0x307719(0xfc)][_0x307719(0x265)](),'hasManagedActiveRun':_0x112bde=>hasManagedActiveRun(this[_0x307719(0x260)],_0x112bde),'setExternalActivity':(_0x187909,_0x14cff5)=>this[_0x307719(0x151)][_0x307719(0x1fd)][_0x307719(0x204)](_0x187909,_0x14cff5)}),this[_0x307719(0x183)]=new ConversationSegmentService((_0x545112,_0x78723e)=>this[_0x307719(0x211)][_0x307719(0x1e4)](_0x545112,_0x78723e)),this[_0x307719(0x26c)]=new SessionContextService({'runners':this[_0x307719(0xb1)],'session':_0x20102b=>this[_0x307719(0x260)][_0x307719(0x18b)](_0x20102b),'stopped':()=>this[_0x307719(0xb8)],'publish':_0x444823=>this[_0x307719(0x104)](_0x444823)}),this[_0x307719(0x28d)]=new RunWorkbenchService({'runtime':this[_0x307719(0x260)],'readImage':async(_0x56f089,_0x4679f0)=>this[_0x307719(0x165)][_0x307719(0x1e4)](_0x56f089,_0x4679f0)??await this[_0x307719(0x165)][_0x307719(0x278)](_0x56f089,_0x4679f0),'respondUserInput':(_0x31c8a8,_0x7c1390,_0x59bc29)=>this[_0x307719(0x209)][_0x307719(0x254)](_0x31c8a8,_0x7c1390,_0x59bc29),'pauseQueue':_0x59bc10=>this[_0x307719(0x1c4)][_0x307719(0x1c9)](_0x59bc10),'emitRun':(_0x8e5da1,_0x1868ac,_0x247489,_0x46b247)=>this[_0x307719(0x228)][_0x307719(0x112)](_0x8e5da1,_0x1868ac,_0x247489,_0x46b247),'control':(_0x4a7c19,_0x92f39d)=>this[_0x307719(0x17d)][_0x307719(0x1d2)](JSON[_0x307719(0x27a)](createEnvelope(_0x4a7c19,_0x92f39d))),'markInterrupted':_0x1372ef=>this[_0x307719(0x10b)][_0x307719(0xe4)][_0x307719(0x213)](_0x1372ef)}),this[_0x307719(0x16b)]=new SessionQueryService({'runtime':this[_0x307719(0x260)],'runners':this[_0x307719(0xb1)],'resolve':_0x275b6f=>this[_0x307719(0x253)][_0x307719(0x196)](_0x275b6f),'present':_0xeee6fd=>this[_0x307719(0xe5)][_0x307719(0x20a)](_0xeee6fd),'history':(_0x593f59,_0x2331b6)=>this[_0x307719(0x211)][_0x307719(0x1e4)](_0x593f59,_0x2331b6),'segments':(_0x4dfe1f,_0x5013b5)=>this[_0x307719(0x183)][_0x307719(0x1e4)](_0x4dfe1f,_0x5013b5),'context':this[_0x307719(0x26c)],'discover':(_0xa4a1d0,_0x4fbae8)=>this[_0x307719(0x253)][_0x307719(0x217)](_0xa4a1d0,_0x4fbae8),'workspaceIdForCwd':_0x113340=>this[_0x307719(0x1b2)]?.[_0x307719(0x1f2)]()[_0x307719(0xec)](_0x13e1f5=>_0x13e1f5[_0x307719(0x216)]===_0x113340)?.['id']}),this[_0x307719(0x13f)]=new ContinuousRunCoordinator({'runtime':this[_0x307719(0x260)],'emitQueue':(_0x210a42,_0x1600ce)=>this[_0x307719(0x228)][_0x307719(0x1a5)](_0x210a42,_0x1600ce),'clearImages':_0x2562b2=>this[_0x307719(0x165)][_0x307719(0x121)](_0x2562b2),'cleanupAttachments':_0x1024ef=>this[_0x307719(0x165)][_0x307719(0x132)](_0x1024ef),'migrateAssets':(_0x3312ce,_0x3033c9)=>this[_0x307719(0x165)][_0x307719(0x1f9)](_0x3312ce,_0x3033c9),'emitRun':(_0x5455b6,_0x4b5ebd,_0x1076c4,_0x2f10ca)=>this[_0x307719(0x228)][_0x307719(0x112)](_0x5455b6,_0x4b5ebd,_0x1076c4,_0x2f10ca),'emitConversation':_0xd3a32f=>this[_0x307719(0x28c)](_0xd3a32f),'control':(_0x4d11a4,_0xd467b7)=>this[_0x307719(0x17d)][_0x307719(0x1d2)](JSON[_0x307719(0x27a)](createEnvelope(_0x4d11a4,_0xd467b7))),'stopped':()=>this[_0x307719(0xb8)],'markInterrupted':_0x29e72e=>this[_0x307719(0x10b)][_0x307719(0xe4)][_0x307719(0x213)](_0x29e72e),'mcps':_0x5f5dad=>this[_0x307719(0x1b2)]?.[_0x307719(0x27b)](_0x5f5dad)??[],'afterExecutionStarted':async _0x99f10c=>{const _0x390a69=_0x307719;if(_0x99f10c[_0x390a69(0x235)]===undefined)return;const _0x12bd18=this[_0x390a69(0x1c2)][_0x390a69(0x179)](_0x99f10c[_0x390a69(0x239)]);if(_0x12bd18?.[_0x390a69(0x135)]!==_0x390a69(0x11a)||_0x12bd18['id']!==_0x99f10c[_0x390a69(0x235)]['id']||_0x12bd18[_0x390a69(0x1d8)]!==_0x99f10c[_0x390a69(0x235)][_0x390a69(0x1d8)])return;const _0xf304b5=this[_0x390a69(0x1c2)][_0x390a69(0x245)](_0x99f10c[_0x390a69(0x239)]),_0x2b2c31=this[_0x390a69(0x260)][_0x390a69(0x18b)](_0x99f10c[_0x390a69(0x239)]);if(_0xf304b5!==undefined&&_0x2b2c31!==undefined)this[_0x390a69(0x142)](_0x2b2c31,_0xf304b5);await this[_0x390a69(0x24a)]({'sessionId':_0x99f10c[_0x390a69(0x239)],'mission':{'id':_0x12bd18['id'],'revision':_0x12bd18[_0x390a69(0x1d8)]},'secretEnvironment':_0x99f10c[_0x390a69(0x13c)],..._0x99f10c[_0x390a69(0x16e)]===undefined?{}:{'personalInstructions':_0x99f10c[_0x390a69(0x16e)]},..._0x99f10c[_0x390a69(0x130)]===undefined?{}:{'marAgentModel':_0x99f10c[_0x390a69(0x130)]},..._0x99f10c[_0x390a69(0x28a)]===undefined?{}:{'marAgentModels':_0x99f10c[_0x390a69(0x28a)]},..._0x99f10c[_0x390a69(0x224)]===undefined?{}:{'marAgentRuntimeScopeId':_0x99f10c[_0x390a69(0x224)]}});},'missionMcp':async _0x2ab7c2=>{const _0x13a9be=_0x307719;if(_0x2ab7c2[_0x13a9be(0x235)]===undefined)throw new Error(_0x13a9be(0x26f));const _0x232b74=await this[_0x13a9be(0xda)][_0x13a9be(0x14e)]({'executionId':_0x2ab7c2[_0x13a9be(0x1f8)],'sessionId':_0x2ab7c2[_0x13a9be(0x239)],'missionId':_0x2ab7c2[_0x13a9be(0x235)]['id'],'revision':_0x2ab7c2[_0x13a9be(0x235)][_0x13a9be(0x1d8)]});return{'installation':{'targetKind':_0x13a9be(0x167),'targetId':_0x2ab7c2[_0x13a9be(0x256)],'catalogEntryId':_0x13a9be(0x15c),'serverName':_0x13a9be(0x205),'displayName':_0x13a9be(0x1cf),'version':_0x13a9be(0x24e),'enabled':!![],'runtime':{'transport':_0x13a9be(0x26d),'url':_0x13a9be(0x258),'headers':{}},'configuration':_0x232b74[_0x13a9be(0x14e)],'installedAt':Date[_0x13a9be(0xd0)](),..._0x232b74[_0x13a9be(0x14e)]},'secrets':_0x232b74[_0x13a9be(0x24b)]};}}),this[_0x307719(0x1c4)]=new WorkspaceQueueWorkbenchService({'runtime':this[_0x307719(0x260)],'coordinator':this[_0x307719(0x13f)],'emit':(_0x3ccb61,_0x1fda96)=>this[_0x307719(0x228)][_0x307719(0x1a5)](_0x3ccb61,_0x1fda96),'prepareInput':(_0xca910a,_0x35c48c,_0x179565)=>this[_0x307719(0xb1)][_0x307719(0x1b5)](_0xca910a)[_0x307719(0x16a)](_0x35c48c,_0x179565)}),this[_0x307719(0x23d)]=new SessionIdentityService({'runtime':this[_0x307719(0x260)],'persist':(_0x440b82,_0x44534d)=>{const _0x105eb4=_0x307719;if(_0x440b82[_0x105eb4(0x18a)]===null||_0x440b82[_0x105eb4(0xd4)]===null||_0x440b82[_0x105eb4(0x105)]===null)return;this[_0x105eb4(0x1b2)]?.[_0x105eb4(0x226)]({'runner':_0x440b82[_0x105eb4(0x22f)],'externalSessionId':_0x44534d,'workspaceId':_0x440b82[_0x105eb4(0x256)],'model':_0x440b82[_0x105eb4(0x18a)],'effort':_0x440b82[_0x105eb4(0xd4)],'access':_0x440b82[_0x105eb4(0x105)]});},'migrateCommands':(_0x354523,_0x1dad44)=>this[_0x307719(0x122)][_0x307719(0xbc)](_0x354523,_0x1dad44),'migrateMission':(_0x53d41d,_0x578a06)=>{const _0x1b208e=_0x307719;this[_0x1b208e(0x1c2)][_0x1b208e(0x24c)](_0x53d41d,_0x578a06),this[_0x1b208e(0xda)][_0x1b208e(0x24c)](_0x53d41d,_0x578a06);const _0x144986=this[_0x1b208e(0x210)][_0x1b208e(0x179)](_0x53d41d);_0x144986!==undefined&&(this[_0x1b208e(0x210)][_0x1b208e(0x1b3)](_0x53d41d),_0x144986[_0x1b208e(0x239)]=_0x578a06,this[_0x1b208e(0x210)][_0x1b208e(0x204)](_0x578a06,_0x144986));const _0x339b9f=this[_0x1b208e(0x173)][_0x1b208e(0x179)](_0x53d41d);_0x339b9f!==undefined&&(this[_0x1b208e(0x173)][_0x1b208e(0x1b3)](_0x53d41d),this[_0x1b208e(0x173)][_0x1b208e(0x204)](_0x578a06,_0x339b9f));},'migrateQueue':(_0x108e19,_0x1a5e08)=>this[_0x307719(0x13f)][_0x307719(0x24c)](_0x108e19,_0x1a5e08),'migrateRunnerState':(_0x3cb34b,_0x41861d)=>this[_0x307719(0x228)][_0x307719(0x1c0)](_0x3cb34b,_0x41861d),'emitSession':_0x23de3a=>this[_0x307719(0x104)]({'session':_0x23de3a}),'emitRun':_0x24636a=>this[_0x307719(0x272)](_0x307719(0x159),{'run':_0x24636a}),'emitQueue':_0x2e05a9=>this[_0x307719(0x13f)][_0x307719(0x199)](_0x2e05a9),'emitTurn':_0x74c7b3=>this[_0x307719(0x28c)](_0x74c7b3)}),this[_0x307719(0xaf)]=new SessionLifecycleService({'database':()=>{const _0x5e7f24=_0x307719;if(this[_0x5e7f24(0x1b2)]===undefined)throw new Error(_0x5e7f24(0x268));return this[_0x5e7f24(0x1b2)];},'runtime':this[_0x307719(0x260)],'runners':this[_0x307719(0xb1)],'projection':this[_0x307719(0x253)],'identity':this[_0x307719(0x23d)],'present':_0x31b6ce=>this[_0x307719(0xe5)][_0x307719(0x20a)](_0x31b6ce),'emitSession':_0x34f3ff=>this[_0x307719(0x104)]({'session':this[_0x307719(0xe5)][_0x307719(0x20a)](_0x34f3ff)}),'execute':(_0x45f17f,_0x30ba07)=>this[_0x307719(0x11b)](_0x45f17f,_0x30ba07),'interceptedSessionId':_0x5204c3=>this[_0x307719(0x1e1)]===undefined?undefined:_0x307719(0xf3)+_0x5204c3}),this[_0x307719(0x161)]=new ExternalSessionResumeService({'runtime':this[_0x307719(0x260)],'runners':this[_0x307719(0xb1)],'state':this[_0x307719(0x151)],'available':_0x267a65=>this[_0x307719(0xb1)][_0x307719(0x1b5)](_0x267a65)[_0x307719(0x10f)](this[_0x307719(0x1ce)]),'projectionFor':_0x36cf5c=>this[_0x307719(0x253)][_0x307719(0xf4)](_0x36cf5c),'managedAliasFor':_0xeb08f3=>this[_0x307719(0x253)][_0x307719(0x1f1)](_0xeb08f3),'ensureConfiguration':_0x2ed446=>this[_0x307719(0x253)][_0x307719(0x23c)](_0x2ed446),'configuration':_0x333b48=>this[_0x307719(0x253)][_0x307719(0x107)](_0x333b48),'workspacePath':_0x3f5561=>this[_0x307719(0x1b2)]?.[_0x307719(0x1c1)](_0x3f5561)?.[_0x307719(0x216)],'rememberNative':(_0x3ae0f2,_0xc5a426)=>this[_0x307719(0x220)][_0x307719(0x25f)](_0x3ae0f2,_0xc5a426),'stage':_0x28c826=>{const _0x1e9382=_0x307719,_0x47b158=this[_0x1e9382(0x253)][_0x1e9382(0x107)](_0x28c826);return this[_0x1e9382(0x260)][_0x1e9382(0x25e)]({'workspaceId':_0x28c826[_0x1e9382(0x256)],'runner':_0x28c826[_0x1e9382(0x22f)],'externalSessionId':_0x28c826[_0x1e9382(0x201)]??_0x28c826['id'],'nativeControl':_0x1e9382(0x136),'cwd':_0x28c826[_0x1e9382(0xfd)],'model':_0x47b158[_0x1e9382(0x18a)],'effort':_0x47b158[_0x1e9382(0xd4)],'access':_0x47b158[_0x1e9382(0x105)],..._0x28c826[_0x1e9382(0x1dd)]===null?{}:{'title':_0x28c826[_0x1e9382(0x1dd)]},..._0x28c826[_0x1e9382(0x16c)]===null?{}:{'customTitle':_0x28c826[_0x1e9382(0x16c)]}});},'resolve':_0x4338e2=>this[_0x307719(0x253)][_0x307719(0x196)](_0x4338e2)}),this[_0x307719(0x262)]=new SessionCommandService({'runtime':this[_0x307719(0x260)],'runners':this[_0x307719(0xb1)],'projection':this[_0x307719(0x253)],'resume':this[_0x307719(0x161)],'profiles':()=>this[_0x307719(0x111)][_0x307719(0x10a)](),'present':_0x4d3ba2=>this[_0x307719(0xe5)][_0x307719(0x20a)](_0x4d3ba2),'resumeQueueAfterCommandRun':_0x3aba88=>this[_0x307719(0x1c4)][_0x307719(0xf6)](_0x3aba88),'beginMission':_0x4cbd75=>{const _0x3a018b=_0x307719,_0x176734=this[_0x3a018b(0x122)][_0x3a018b(0x179)](_0x4cbd75['id'],_0x3a018b(0x235));if(_0x176734?.[_0x3a018b(0x11a)]===!![])return{'session':this[_0x3a018b(0xe5)][_0x3a018b(0x20a)](_0x4cbd75),'missionAlreadyActive':!![]};_0x176734!==undefined&&(this[_0x3a018b(0x1c2)][_0x3a018b(0x121)](_0x4cbd75['id']),this[_0x3a018b(0x122)][_0x3a018b(0x121)](_0x4cbd75['id'],_0x3a018b(0x235)));const _0x50bbfe=this[_0x3a018b(0x1c7)](_0x4cbd75);return this[_0x3a018b(0x13f)][_0x3a018b(0x1e8)](_0x4cbd75['id']),this[_0x3a018b(0x122)][_0x3a018b(0x204)](_0x4cbd75['id'],this[_0x3a018b(0x1d9)]()),this[_0x3a018b(0x272)](_0x3a018b(0x1ee),{'session':this[_0x3a018b(0xe5)][_0x3a018b(0x20a)](_0x50bbfe[_0x3a018b(0x1ee)])}),{'session':this[_0x3a018b(0xe5)][_0x3a018b(0x20a)](_0x50bbfe[_0x3a018b(0x1ee)]),'missionAccessChanged':_0x50bbfe[_0x3a018b(0x247)]};},'mission':async({session:_0x368146,objective:_0x1e37a1,secretEnvironment:_0x26470a,personalInstructions:_0xc4faa7,marAgentModel:_0x53b7a7,marAgentModels:_0x1c429e,marAgentRuntimeScopeId:_0x3778e0})=>{const _0x28c9b0=_0x307719;this[_0x28c9b0(0x21f)](_0x368146['id']);const _0xbff6f9=this[_0x28c9b0(0x1c7)](_0x368146),_0x113291=_0xbff6f9[_0x28c9b0(0x1ee)],_0x19267a=this[_0x28c9b0(0x1c2)][_0x28c9b0(0x179)](_0x368146['id'])?.[_0x28c9b0(0x135)]===_0x28c9b0(0x11a);this[_0x28c9b0(0x13f)][_0x28c9b0(0x24f)](_0x368146['id']);const _0x4f021a=this[_0x28c9b0(0x1c2)][_0x28c9b0(0x212)](_0x368146['id'],_0x1e37a1);this[_0x28c9b0(0x142)](_0x113291,_0x4f021a);const _0x14ede1=await this[_0x28c9b0(0x144)][_0x28c9b0(0x274)]({'sessionId':_0x368146['id'],'kind':_0x28c9b0(0x212),'content':this[_0x28c9b0(0x1c2)][_0x28c9b0(0xe8)](_0x368146['id'],_0x28c9b0(0x212)),'deliveryIntent':_0x19267a?_0x28c9b0(0x1f3):_0x28c9b0(0x230),'mission':{'id':_0x4f021a['id'],'revision':_0x4f021a[_0x28c9b0(0x1d8)]},'secretEnvironment':_0x26470a,..._0xc4faa7===undefined?{}:{'personalInstructions':_0xc4faa7},..._0x53b7a7===undefined?{}:{'marAgentModel':_0x53b7a7},..._0x1c429e===undefined?{}:{'marAgentModels':_0x1c429e},..._0x3778e0===undefined?{}:{'marAgentRuntimeScopeId':_0x3778e0}});return{...isPlainRecord(_0x14ede1)?_0x14ede1:{'result':_0x14ede1},'missionAccessChanged':_0xbff6f9[_0x28c9b0(0x247)]};},'clearMission':_0x101c5e=>{const _0x530523=_0x307719;return this[_0x530523(0x21f)](_0x101c5e['id']),this[_0x530523(0x1c2)][_0x530523(0x121)](_0x101c5e['id']),this[_0x530523(0x13f)][_0x530523(0x24f)](_0x101c5e['id']),this[_0x530523(0x229)](_0x101c5e['id'],_0x530523(0x153)),this[_0x530523(0x122)][_0x530523(0x121)](_0x101c5e['id'],_0x530523(0x235)),this[_0x530523(0x272)](_0x530523(0x1ee),{'session':this[_0x530523(0xe5)][_0x530523(0x20a)](_0x101c5e)}),{'session':this[_0x530523(0xe5)][_0x530523(0x20a)](_0x101c5e),'cleared':!![]};}}),this[_0x307719(0x144)]=new SessionMessageService({'runtime':this[_0x307719(0x260)],'uploads':this[_0x307719(0x1bc)],'attachments':this[_0x307719(0x165)],'commands':this[_0x307719(0x122)],'coordinator':this[_0x307719(0x13f)],'runners':this[_0x307719(0xb1)],'resolve':_0x1a9fb8=>this[_0x307719(0x161)][_0x307719(0x102)](_0x1a9fb8),'present':_0x576867=>this[_0x307719(0xe5)][_0x307719(0x20a)](_0x576867),'emitSession':_0x38e84d=>this[_0x307719(0x104)]({'session':this[_0x307719(0xe5)][_0x307719(0x20a)](_0x38e84d)}),'channelToken':_0x50fbf9=>{const _0x3e58d4=_0x307719,_0x46272b=this[_0x3e58d4(0x260)][_0x3e58d4(0x18b)](_0x50fbf9);return _0x46272b?.[_0x3e58d4(0x279)]??undefined;},'missionMessage':(_0x4fa9bc,_0x3e8664)=>{const _0x1fce0e=_0x307719,_0x1e9be2=this[_0x1fce0e(0x122)][_0x1fce0e(0x179)](_0x4fa9bc['id'],_0x1fce0e(0x235));if(_0x1e9be2?.[_0x1fce0e(0x11a)]!==!![])return undefined;const _0x1ef4c6=this[_0x1fce0e(0x1c2)][_0x1fce0e(0x179)](_0x4fa9bc['id']);if(_0x1ef4c6?.[_0x1fce0e(0x135)]===_0x1fce0e(0x11a))return{'runnerContent':_0x3e8664,'mission':{'id':_0x1ef4c6['id'],'revision':_0x1ef4c6[_0x1fce0e(0x1d8)]},'activated':![]};const _0x12a2e6=this[_0x1fce0e(0x1c2)][_0x1fce0e(0x212)](_0x4fa9bc['id'],_0x3e8664);return this[_0x1fce0e(0x142)](_0x4fa9bc,_0x12a2e6),{'runnerContent':this[_0x1fce0e(0x1c2)][_0x1fce0e(0xe8)](_0x4fa9bc['id'],_0x1fce0e(0x212)),'mission':{'id':_0x12a2e6['id'],'revision':_0x12a2e6[_0x1fce0e(0x1d8)]},'activated':!![]};},'prepareMissionInsertion':(_0x50effc,_0x48c97e)=>this[_0x307719(0x13f)][_0x307719(0x1e8)](_0x50effc,_0x48c97e),'missionPreparationFailed':(_0x141e90,_0x473b4c,_0x2ce1cf)=>{const _0x140828=_0x307719;if(!_0x2ce1cf)return;const _0x1ab4ad=this[_0x140828(0x1c2)][_0x140828(0x179)](_0x141e90['id']);if(_0x1ab4ad?.['id']!==_0x473b4c['id']||_0x1ab4ad[_0x140828(0x1d8)]!==_0x473b4c[_0x140828(0x1d8)])return;this[_0x140828(0x1c2)][_0x140828(0x121)](_0x141e90['id']),this[_0x140828(0x229)](_0x141e90['id'],_0x140828(0x1d4)),this[_0x140828(0x122)][_0x140828(0x204)](_0x141e90['id'],this[_0x140828(0x1d9)]()),this[_0x140828(0x272)](_0x140828(0x1ee),{'session':this[_0x140828(0xe5)][_0x140828(0x20a)](_0x141e90)});}}),this[_0x307719(0x192)]=new SessionCatalogService({'database':()=>{const _0x5321d1=_0x307719;if(this[_0x5321d1(0x1b2)]===undefined)throw new Error(_0x5321d1(0x268));return this[_0x5321d1(0x1b2)];},'nodeId':()=>this[_0x307719(0xe9)]?.[_0x307719(0x1b9)]??_0x307719(0x22d),'runtime':this[_0x307719(0x260)],'runners':this[_0x307719(0xb1)],'projection':this[_0x307719(0x253)],'resume':this[_0x307719(0x161)],'cachedNative':()=>[...this[_0x307719(0x151)][_0x307719(0x233)][_0x307719(0x14c)]()],'cachedWorkspace':_0x58d397=>this[_0x307719(0xc6)][_0x307719(0x20b)](_0x58d397),'present':_0x27ac6a=>this[_0x307719(0xe5)][_0x307719(0x20a)](_0x27ac6a),'projectionForNative':_0x37f643=>this[_0x307719(0x253)][_0x307719(0xf4)](_0x37f643),'nativeIds':_0x271fa2=>this[_0x307719(0x253)][_0x307719(0x162)](_0x271fa2),'forget':(_0x207c19,_0x3c5b8f)=>this[_0x307719(0x253)][_0x307719(0x172)](_0x207c19,_0x3c5b8f),'refreshActivity':_0x566d8e=>this[_0x307719(0x211)][_0x307719(0x1b0)](_0x566d8e),'externalActivity':_0x1ef20c=>this[_0x307719(0x151)][_0x307719(0x1fd)][_0x307719(0x179)](_0x1ef20c),'history':(_0x1e06a2,_0x193e55)=>this[_0x307719(0x211)][_0x307719(0x1e4)](_0x1e06a2,_0x193e55),'emitSession':_0x2f9924=>this[_0x307719(0x104)]({'session':this[_0x307719(0xe5)][_0x307719(0x20a)](_0x2f9924)})}),this[_0x307719(0x26b)][_0x307719(0xeb)]({'start':_0x2adf8b=>this[_0x307719(0x219)][_0x307719(0x212)](_0x2adf8b),'cancel':(_0x5ec403,_0x3911ba)=>{const _0x43f343=_0x307719,_0x4ddc5d=this[_0x43f343(0x26b)][_0x43f343(0x181)][_0x43f343(0x203)][_0x43f343(0x179)](_0x5ec403);if(_0x4ddc5d?.[_0x43f343(0x13d)]===undefined)return![];return void this[_0x43f343(0x209)][_0x43f343(0x17c)](_0x5ec403,_0x4ddc5d[_0x43f343(0x1b4)],_0x4ddc5d[_0x43f343(0x13d)],_0x4ddc5d[_0x43f343(0xfd)],_0x3911ba===_0x43f343(0x270)?_0x43f343(0x106):_0x43f343(0x1ff)),!![];},'decideApproval':_0x2e9f85=>this[_0x307719(0x209)][_0x307719(0x150)](_0x2e9f85[_0x307719(0x14d)],_0x2e9f85[_0x307719(0x21d)])}),this[_0x307719(0xd9)][_0x307719(0xeb)]({'start':_0x40ecb5=>this[_0x307719(0x174)][_0x307719(0x212)](_0x40ecb5),'cancel':(_0x53ed65,_0x4c6fb2)=>this[_0x307719(0x209)][_0x307719(0xf5)](_0x53ed65,_0x4c6fb2),'decideApproval':_0x5234d5=>this[_0x307719(0x209)][_0x307719(0x25c)](_0x5234d5[_0x307719(0x14d)],_0x5234d5[_0x307719(0x21d)])}),this[_0x307719(0xd2)][_0x307719(0xeb)]({'start':_0x4eaf1d=>this[_0x307719(0xc4)][_0x307719(0x212)](_0x4eaf1d),'cancel':(_0x435fa9,_0xd56656)=>this[_0x307719(0xc4)][_0x307719(0x185)](_0x435fa9,_0xd56656),'decideApproval':_0x2ef02f=>this[_0x307719(0xc4)][_0x307719(0x263)](_0x2ef02f),'respondUserInput':(_0x535947,_0x1999cd,_0x31f40c)=>this[_0x307719(0xc4)][_0x307719(0x254)](_0x535947,_0x1999cd,_0x31f40c)}),this[_0x307719(0x1ec)][_0x307719(0xeb)]({'start':_0x18d883=>this[_0x307719(0x283)][_0x307719(0x212)](_0x18d883),'cancel':(_0x44e49d,_0x3b00de)=>this[_0x307719(0x283)][_0x307719(0x185)](_0x44e49d,_0x3b00de),'decideApproval':_0x1a4151=>this[_0x307719(0x283)][_0x307719(0x263)](_0x1a4151),'respondUserInput':(_0x4604d7,_0x72bf6d,_0x123da6)=>this[_0x307719(0x283)][_0x307719(0x254)](_0x4604d7,_0x72bf6d,_0x123da6)}),this[_0x307719(0x26b)][_0x307719(0x101)]({'execute':(_0x49cc9a,_0x2fc0fe,_0xcb2fcd,_0x56865d)=>this[_0x307719(0x219)][_0x307719(0x237)](_0x49cc9a,_0x2fc0fe,_0xcb2fcd,_0x56865d)}),this[_0x307719(0xd9)][_0x307719(0x101)]({'execute':(_0x286b76,_0x6ac56,_0x48ae42,_0x268dd3)=>this[_0x307719(0x174)][_0x307719(0x237)](_0x286b76,_0x6ac56,_0x48ae42,_0x268dd3)}),this[_0x307719(0xd2)][_0x307719(0x101)]({'execute':(_0x362ed8,_0x9bdcbe,_0xb32930,_0x1368e5)=>this[_0x307719(0xc4)][_0x307719(0x237)](_0x362ed8,_0x9bdcbe,_0x1368e5)}),this[_0x307719(0x1ec)][_0x307719(0x101)]({'execute':(_0x5c21cb,_0x2e6291,_0x267781,_0x5a7fb5)=>this[_0x307719(0x283)][_0x307719(0x237)](_0x5c21cb,_0x2e6291,_0x267781,_0x5a7fb5)});const _0x10fa00=this[_0x307719(0x1e1)]===undefined||this[_0x307719(0xbe)]===undefined?undefined:new FakeManagedRunService({'runner':this[_0x307719(0x1e1)],'script':this[_0x307719(0xbe)],'runners':this[_0x307719(0xb1)],'runtime':this[_0x307719(0x260)],'state':this[_0x307719(0x10b)],'emitRun':(_0x16c70a,_0x4eba2f,_0x5c0774,_0x4101d8)=>this[_0x307719(0x228)][_0x307719(0x112)](_0x16c70a,_0x4eba2f,_0x5c0774,_0x4101d8),'publishApproval':_0x76f6c5=>this[_0x307719(0x228)][_0x307719(0x1e2)](_0x76f6c5),'disconnect':()=>this[_0x307719(0x267)][_0x307719(0xd1)](0x6e7+-0xcaa+0x156d*0x1,_0x307719(0x238))});this[_0x307719(0x1e1)]?.[_0x307719(0xeb)]({'start':_0x5876f6=>_0x10fa00?.[_0x307719(0x212)](_0x5876f6),'cancel':(_0x1dea55,_0x234493)=>_0x234493===_0x307719(0x270)?this[_0x307719(0x1e1)]?.[_0x307719(0x185)](_0x1dea55)??![]:this[_0x307719(0x1e1)]?.[_0x307719(0xdb)](_0x1dea55)??![],'decideApproval':_0x597175=>this[_0x307719(0x1e1)]?.[_0x307719(0x134)](_0x597175[_0x307719(0x1f8)],_0x597175[_0x307719(0x14d)],_0x597175[_0x307719(0x21d)])??![]}),this[_0x307719(0x243)]=_0x2f6744[_0x307719(0x243)]??new RunnerUsageReader(),this[_0x307719(0x1b2)]=_0x2f6744[_0x307719(0x1b2)],this[_0x307719(0x125)]=_0x2f6744[_0x307719(0x125)]??new TerminalManager({'platform':this[_0x307719(0x1ce)][_0x307719(0x13e)]===_0x307719(0x113)?_0x307719(0xae):_0x307719(0x10c)}),this[_0x307719(0x125)][_0x307719(0x280)](_0x1c9d4c=>this[_0x307719(0xc6)][_0x307719(0x1cd)](_0x1c9d4c)),this[_0x307719(0xd8)]=new NodeTerminalChannel({'config':()=>this[_0x307719(0xe9)],'controlConnected':()=>this[_0x307719(0x267)][_0x307719(0x14a)](),'stopped':()=>this[_0x307719(0xb8)],'reconnect':this[_0x307719(0x19b)],'reconnectDelay':nextReconnectDelay,'manager':this[_0x307719(0x125)]}),this[_0x307719(0x267)]=new NodeControlChannel({'config':()=>this[_0x307719(0xe9)],'capabilities':()=>this[_0x307719(0x1ce)],'stopped':()=>this[_0x307719(0xb8)],'reconnect':this[_0x307719(0x19b)],'reconnectDelay':nextReconnectDelay,'onConnecting':_0x915da7=>{const _0x4d8394=_0x307719;this[_0x4d8394(0x187)][_0x4d8394(0xc3)](),nodeLog(_0x4d8394(0x287),{'attempt':_0x915da7});},'onReconnectScheduled':()=>this[_0x307719(0x187)][_0x307719(0x124)](),'onMessage':_0x45951d=>this[_0x307719(0x1be)](_0x45951d),'onClose':(_0x34bad7,_0x209cca)=>{const _0x594ba1=_0x307719;this[_0x594ba1(0xe1)][_0x594ba1(0x275)](),this[_0x594ba1(0xd8)][_0x594ba1(0x1db)]();if(_0x34bad7===0x1d*-0x12e+-0x234f+-0x133*-0x47&&_0x209cca===_0x594ba1(0xe2))nodeLog(_0x594ba1(0x152),{'message':_0x594ba1(0x198)});if(_0x34bad7===-0xbde*-0x3+-0x1d*0xfd+0x8b2||_0x34bad7===0x3*0x70f+-0x88*0x7+-0xd8c*0x1)void this[_0x594ba1(0x125)][_0x594ba1(0x1f4)]();}}),this[_0x307719(0x17d)]=new NodeControlMessageService({'config':()=>this[_0x307719(0xe9)],'register':(_0x57a9e1,_0x2e6778)=>this[_0x307719(0x23a)][_0x307719(0x1fa)](_0x57a9e1,_0x2e6778),'connected':()=>this[_0x307719(0x23a)][_0x307719(0x14a)](),'close':(_0x371017,_0x182912)=>this[_0x307719(0x267)][_0x307719(0xd1)](_0x371017,_0x182912),'inspectWorkspace':_0x1b8d56=>this[_0x307719(0xc6)][_0x307719(0x1b1)](_0x1b8d56),'handleNodeRequest':_0x293327=>this[_0x307719(0xb5)][_0x307719(0x1d2)](_0x293327),'handleRuntimeCredentialResponse':_0x3fb9fb=>this[_0x307719(0xe1)][_0x307719(0x1d2)](_0x3fb9fb),'reconcileRuns':_0x43ade6=>this[_0x307719(0x228)][_0x307719(0x252)](_0x43ade6),'runners':this[_0x307719(0xb1)],'deliverSessionChannelMessage':_0x17a768=>this[_0x307719(0x206)][_0x307719(0x1d2)](_0x17a768),'completeUncontrolledCancellation':_0x57738b=>{const _0x557e3c=_0x307719,_0x40908b=this[_0x557e3c(0x260)][_0x557e3c(0x1fb)](_0x57738b);if(_0x40908b?.[_0x557e3c(0x135)]===_0x557e3c(0xdd))this[_0x557e3c(0x209)][_0x557e3c(0x27e)](_0x57738b);},'send':(_0x461a77,_0x1aba52,_0x2f16d7)=>this[_0x307719(0xfe)](_0x461a77,_0x1aba52,_0x2f16d7)}),this[_0x307719(0xb5)]=new NodeRequestService({'nodeId':()=>this[_0x307719(0xe9)]?.[_0x307719(0x1b9)],'databaseAvailable':()=>this[_0x307719(0x1b2)]!==undefined,'execute':(_0x8c8b21,_0x5019bc)=>this[_0x307719(0x11b)](_0x8c8b21,_0x5019bc),'send':(_0x58a86c,_0x4512ab,_0x1582a7)=>this[_0x307719(0xfe)](_0x58a86c,_0x4512ab,_0x1582a7)}),this[_0x307719(0xc6)]=new NodeWorkspaceCoordinator({'config':()=>this[_0x307719(0xe9)],'database':()=>this[_0x307719(0x1b2)],'watches':this[_0x307719(0x11d)],'sessions':this[_0x307719(0x140)],'changes':this[_0x307719(0xb3)],'emit':(_0x26d1ab,_0x322221)=>void this[_0x307719(0x20e)]?.[_0x307719(0x282)](_0x26d1ab,_0x322221),'send':(_0x220754,_0x316be6,_0x2524a4)=>this[_0x307719(0xfe)](_0x220754,_0x316be6,_0x2524a4)}),this[_0x307719(0x228)]=new NodeRunEventBridge({'runtime':this[_0x307719(0x260)],'state':this[_0x307719(0x10b)],'events':this[_0x307719(0x10d)],'emitWorkbench':(_0x712b05,_0x26e50a)=>this[_0x307719(0x168)](_0x712b05,_0x26e50a),'queues':this[_0x307719(0x1c4)],'codex':this[_0x307719(0x26b)],'claude':this[_0x307719(0xd9)],'openCode':this[_0x307719(0xd2)],'send':(_0x2ba7b8,_0x2cadf0,_0x416855)=>this[_0x307719(0xfe)](_0x2ba7b8,_0x2cadf0,_0x416855)}),this[_0x307719(0x23a)]=new NodeConnectionLifecycleService({'config':()=>this[_0x307719(0xe9)],'setConfig':_0x43a8e4=>this[_0x307719(0xe9)]=_0x43a8e4,'configPath':this[_0x307719(0x22a)],'capabilities':()=>this[_0x307719(0x1ce)],'detectCapabilities':this[_0x307719(0x154)],'capabilitiesProvided':this[_0x307719(0x138)],'stopped':()=>this[_0x307719(0xb8)],'setCapabilities':_0x73b627=>this[_0x307719(0x1ce)]={..._0x73b627,'metadata':upgradeMetadata(_0x73b627[_0x307719(0x24d)],this[_0x307719(0x22b)][_0x307719(0x1e7)]())},'control':this[_0x307719(0x267)],'terminal':this[_0x307719(0xd8)],'metrics':this[_0x307719(0x187)],'heartbeatMs':HEARTBEAT_MS,'refreshMs':CAPABILITY_REFRESH_MS,'onRegistered':()=>this[_0x307719(0x17e)](),'onConnected':()=>{const _0xbbc1a5=_0x307719;this[_0xbbc1a5(0xe1)][_0xbbc1a5(0x14a)](),this[_0xbbc1a5(0x242)][_0xbbc1a5(0x200)]();}});const _0x3efa1d=()=>{const _0x1c4080=_0x307719;if(this[_0x1c4080(0x1b2)]===undefined)throw new Error(_0x1c4080(0x268));return this[_0x1c4080(0x1b2)];};this[_0x307719(0x111)]=new RunnerService(_0x3efa1d,()=>this[_0x307719(0x1ce)],this[_0x307719(0xb1)],this[_0x307719(0x243)]),this[_0x307719(0x16d)]=new WorkbenchManifestService({'capabilities':()=>this[_0x307719(0x1ce)],'runners':this[_0x307719(0x111)],'terminals':this[_0x307719(0x125)]}),this[_0x307719(0x19e)]=new TerminalService(_0x3efa1d,this[_0x307719(0x125)]),this[_0x307719(0x1f5)]=new WorkspaceService(_0x3efa1d,()=>{const _0x51c8e5=_0x307719;if(this[_0x51c8e5(0xe9)]===undefined)throw new Error(_0x51c8e5(0x10e));return this[_0x51c8e5(0xe9)];},this[_0x307719(0x260)],_0x1b87f7=>{const _0x42c73e=_0x307719;this[_0x42c73e(0x1a9)][_0x42c73e(0xe7)](_0x1b87f7),this[_0x42c73e(0xc6)][_0x42c73e(0x127)](_0x1b87f7),this[_0x42c73e(0x140)][_0x42c73e(0x23f)](_0x1b87f7),this[_0x42c73e(0xc6)][_0x42c73e(0xed)](_0x1b87f7);}),this[_0x307719(0x20e)]=new WorkspaceWorkbenchService({'requireWorkspace':_0x452265=>this[_0x307719(0xc6)][_0x307719(0x1b5)](_0x452265),'inspectWorkspace':_0x15c6bd=>this[_0x307719(0xc6)][_0x307719(0x11f)](_0x15c6bd),'commitWorkspace':(_0x5424ef,_0x2c5d15)=>this[_0x307719(0xc6)][_0x307719(0x18f)](_0x5424ef,_0x2c5d15),'watch':this[_0x307719(0x11d)],'files':this[_0x307719(0x1a9)],'uploads':this[_0x307719(0x1bc)],'changes':this[_0x307719(0xb3)],'listSessions':_0xe9df61=>this[_0x307719(0x11b)](_0x307719(0x1b8),{'workspaceId':_0xe9df61,'limit':0x14}),'invalidate':_0x5f2cea=>{const _0x3cd0f1=_0x307719;this[_0x3cd0f1(0x1a9)][_0x3cd0f1(0xe7)](_0x5f2cea),this[_0x3cd0f1(0xc6)][_0x3cd0f1(0x23f)](_0x5f2cea);},'nodeId':()=>this[_0x307719(0xe9)]?.[_0x307719(0x1b9)]??_0x307719(0x1f0),'nodeGeneration':()=>this[_0x307719(0x16f)],'emitWatchEvent':_0x1c1aba=>this[_0x307719(0xfe)](_0x307719(0x119),_0x1c1aba)});for(const _0x11d9b0 of CONVERSATION_TEMPLATE_OPERATIONS)this[_0x307719(0xdf)][_0x307719(0x1fa)](_0x11d9b0,_0x12fabc=>{const _0x2abff1=_0x307719,_0x859d06=this[_0x2abff1(0x202)]?.[_0x11d9b0];if(_0x859d06===undefined)throw new Error(_0x2abff1(0x1ab));return _0x859d06(_0x12fabc);});for(const _0x443c08 of HOSTED_CONVERSATION_OPERATIONS)this[_0x307719(0xdf)][_0x307719(0x1fa)](_0x443c08,_0x5841ff=>{const _0x4661d4=_0x307719,_0x4712af=this[_0x4661d4(0x26a)]?.[_0x443c08];if(_0x4712af===undefined)throw new Error(_0x4661d4(0x1ab));return _0x4712af(_0x5841ff);});for(const _0x326924 of CONVERSATION_HOSTING_MAINTENANCE_OPERATIONS)this[_0x307719(0xdf)][_0x307719(0x1fa)](_0x326924,_0x25130f=>{const _0x29d5a7=_0x307719,_0x3e0350=this[_0x29d5a7(0xde)]?.[_0x326924];if(_0x3e0350===undefined)throw new Error(_0x29d5a7(0x1ab));return _0x3e0350(_0x25130f);});this[_0x307719(0xdf)][_0x307719(0x117)](this[_0x307719(0x111)][_0x307719(0x118)]()),this[_0x307719(0xdf)][_0x307719(0x117)](this[_0x307719(0x19e)][_0x307719(0x118)]()),this[_0x307719(0xdf)][_0x307719(0x117)](this[_0x307719(0x1f5)][_0x307719(0x118)]()),this[_0x307719(0xdf)][_0x307719(0x117)](this[_0x307719(0x20e)][_0x307719(0x118)]()),this[_0x307719(0xdf)][_0x307719(0x117)](this[_0x307719(0x28d)][_0x307719(0x118)]()),this[_0x307719(0xdf)][_0x307719(0x117)](this[_0x307719(0x1b7)][_0x307719(0x118)]()),this[_0x307719(0xdf)][_0x307719(0x117)](this[_0x307719(0x16b)][_0x307719(0x118)]()),this[_0x307719(0xdf)][_0x307719(0x117)](this[_0x307719(0xaf)][_0x307719(0x118)]()),this[_0x307719(0xdf)][_0x307719(0x117)](this[_0x307719(0x144)][_0x307719(0x118)]()),this[_0x307719(0xdf)][_0x307719(0x117)](this[_0x307719(0x192)][_0x307719(0x118)]()),this[_0x307719(0xdf)][_0x307719(0x117)](this[_0x307719(0x262)][_0x307719(0x118)]()),this[_0x307719(0xdf)][_0x307719(0x117)](this[_0x307719(0x1c4)][_0x307719(0x118)]()),this[_0x307719(0xdf)][_0x307719(0x117)](this[_0x307719(0x246)][_0x307719(0x118)]()),this[_0x307719(0xdf)][_0x307719(0x117)](new ConversationHostingEnablementService({'config':()=>this[_0x307719(0xe9)],'setConfig':_0x543243=>this[_0x307719(0xe9)]=_0x543243,'configPath':this[_0x307719(0x22a)],'platform':()=>this[_0x307719(0x1ce)][_0x307719(0x13e)],'capability':()=>this[_0x307719(0x1ce)][_0x307719(0x195)],'initialize':()=>this[_0x307719(0x17e)](),'prepareForDisable':()=>this[_0x307719(0x1bd)]?.[_0x307719(0x1df)]()??(()=>{}),'publishCapabilities':()=>this[_0x307719(0xfe)](_0x307719(0x1ce),this[_0x307719(0x1ce)])})[_0x307719(0x118)]()),this[_0x307719(0xdf)][_0x307719(0x117)](new SkillNodeOperationService(_0x3efa1d,()=>{const _0x16ee36=_0x307719;if(this[_0x16ee36(0xe9)]===undefined)throw new Error(_0x16ee36(0x10e));return this[_0x16ee36(0xe9)];})[_0x307719(0x118)]()),this[_0x307719(0xdf)][_0x307719(0x117)](new McpNodeOperationService(_0x3efa1d)[_0x307719(0x118)]()),this[_0x307719(0xdf)][_0x307719(0x1fa)](_0x307719(0x166),()=>({'metrics':{...this[_0x307719(0x187)][_0x307719(0x1e7)](),'activeRuns':this[_0x307719(0x10b)][_0x307719(0x11a)][_0x307719(0xf1)],'workspaceLeases':this[_0x307719(0x260)][_0x307719(0x1dc)]()}})),this[_0x307719(0xdf)][_0x307719(0x1fa)](_0x307719(0x21a),_0x2f25b9=>this[_0x307719(0x22b)][_0x307719(0x18c)](_0x2f25b9)),this[_0x307719(0xdf)][_0x307719(0x1fa)](_0x307719(0x155),()=>this[_0x307719(0x22b)][_0x307719(0x185)]()),this[_0x307719(0xdf)][_0x307719(0x1fa)](_0x307719(0x1ed),async()=>({'manifest':await this[_0x307719(0x16d)][_0x307719(0x1e4)]()}));}async[_0x2a29ba(0x17e)](){const _0x4442ee=_0x2a29ba,_0x41b9e0=this[_0x4442ee(0xba)],_0x35571d=this[_0x4442ee(0x1bd)],_0xbb346c=this[_0x4442ee(0x1fe)];this[_0x4442ee(0xba)]=undefined,this[_0x4442ee(0x1bd)]=undefined,this[_0x4442ee(0x1fe)]=undefined,this[_0x4442ee(0x26a)]=undefined,this[_0x4442ee(0xde)]=undefined,this[_0x4442ee(0x202)]=undefined,this[_0x4442ee(0x215)]=![],this[_0x4442ee(0x141)]=undefined,await _0xbb346c?.[_0x4442ee(0xe7)](),_0x35571d?.[_0x4442ee(0xe7)](),await _0x41b9e0?.[_0x4442ee(0xe7)]()[_0x4442ee(0x1d7)](()=>undefined);const _0x4ddb2c=this[_0x4442ee(0xe9)];if(_0x4ddb2c?.[_0x4442ee(0x195)]?.[_0x4442ee(0xe6)]===!![]&&this[_0x4442ee(0x1ce)][_0x4442ee(0x13e)]===_0x4442ee(0x10c)){if(_0x4ddb2c[_0x4442ee(0x1b9)]===undefined)this[_0x4442ee(0x141)]=_0x4442ee(0x194);else{let _0x51c18c,_0x13f656,_0x2596df;try{if(this[_0x4442ee(0x1b2)]===undefined)throw new Error(_0x4442ee(0x268));const _0x21f8aa=hostedConversationStorePath(_0x4ddb2c,this[_0x4442ee(0x22a)]);if(_0x21f8aa===undefined)throw new Error(_0x4442ee(0x139));const _0x64f83f=new HostedConversationStore({'dataDirectory':nodeDataDirectory(_0x4ddb2c,this[_0x4442ee(0x22a)]),'rootDirectory':_0x21f8aa,'nodeId':_0x4ddb2c[_0x4442ee(0x1b9)],'database':this[_0x4442ee(0x1b2)]});await _0x64f83f[_0x4442ee(0x1c3)]();const _0x598aad=new ConversationTemplateNodeService({'database':this[_0x4442ee(0x1b2)],'store':_0x64f83f,'nodeId':()=>this[_0x4442ee(0xe9)]?.[_0x4442ee(0x1b9)]??_0x4442ee(0xd7)});await _0x598aad[_0x4442ee(0x1f6)](),await _0x64f83f[_0x4442ee(0xbd)](),_0x51c18c=new MarAgentHostedConversationRuntime({'webSearch':(_0x1fa3dc,_0x3e2c82)=>this[_0x4442ee(0x188)](_0x1fa3dc,_0x3e2c82),'modelFactory':this[_0x4442ee(0x22e)],'registerNativeImages':(_0x3a5b78,_0xfd35c8,_0x3a27ec)=>this[_0x4442ee(0x165)][_0x4442ee(0x193)](_0x3a5b78,_0xfd35c8,_0x3a27ec,{'reuseCachedRunImages':![]})}),_0x13f656=new HostedConversationNodeService({'database':this[_0x4442ee(0x1b2)],'store':_0x64f83f,'runtime':_0x51c18c,'nodeId':()=>this[_0x4442ee(0xe9)]?.[_0x4442ee(0x1b9)]??_0x4442ee(0xd7),'nodeGeneration':()=>this[_0x4442ee(0x16f)],'sessionWatchSlots':this[_0x4442ee(0x149)],'emitWatchEvent':_0x5bd82e=>this[_0x4442ee(0xfe)](_0x4442ee(0x119),_0x5bd82e),'nextWorkbenchEvent':_0x49c00b=>this[_0x4442ee(0xfc)][_0x4442ee(0xcd)](_0x4442ee(0x157),_0x49c00b),'emitWorkbenchEvent':_0x37d968=>this[_0x4442ee(0xfc)][_0x4442ee(0x199)](_0x37d968),'readImage':async(_0x295d3c,_0x14f1d3)=>this[_0x4442ee(0x165)][_0x4442ee(0x1e4)](_0x295d3c,_0x14f1d3)??await this[_0x4442ee(0x165)][_0x4442ee(0x278)](_0x295d3c,_0x14f1d3),'processExecutorFactory':_0x38411d=>new BubblewrapSandboxExecutor(_0x38411d),'assertCanCreate':()=>{const _0x5e0415=_0x4442ee;if(_0x2596df===undefined)throw new Error(_0x5e0415(0x1ab));return _0x2596df[_0x5e0415(0x15a)]();}}),_0x2596df=new ConversationHostingMaintenanceService({'store':_0x64f83f,'inactiveRetentionDays':_0x4ddb2c[_0x4442ee(0x195)][_0x4442ee(0x266)]??0x3a*0x89+-0x98a+-0x2*0xaa2,'isConversationInUse':_0x2e7d1f=>_0x13f656?.[_0x4442ee(0x171)](_0x2e7d1f)??!![],'beginConversationCleanup':_0x5b4c1f=>_0x13f656?.[_0x4442ee(0x120)](_0x5b4c1f),'releaseConversation':_0x5056ee=>{const _0x2ab129=_0x4442ee;if(_0x13f656===undefined)throw new Error(_0x2ab129(0x1ab));return _0x13f656[_0x2ab129(0x13b)](_0x5056ee);},'onAutomaticCleanupError':_0x502ecb=>nodeLog(_0x4442ee(0x1a1),{'nodeId':_0x4ddb2c[_0x4442ee(0x1b9)],'code':safeErrorCode(_0x502ecb,_0x4442ee(0x284))})}),this[_0x4442ee(0x202)]=_0x598aad[_0x4442ee(0x118)](),this[_0x4442ee(0x26a)]=_0x13f656[_0x4442ee(0x118)](),this[_0x4442ee(0xde)]=_0x2596df[_0x4442ee(0x118)](),this[_0x4442ee(0xba)]=_0x51c18c,this[_0x4442ee(0x1bd)]=_0x13f656,this[_0x4442ee(0x1fe)]=_0x2596df,await _0x2596df[_0x4442ee(0x212)](),this[_0x4442ee(0x215)]=!![];}catch(_0x5ef247){await _0x2596df?.[_0x4442ee(0xe7)](),_0x13f656?.[_0x4442ee(0xe7)](),await _0x51c18c?.[_0x4442ee(0xe7)]()[_0x4442ee(0x1d7)](()=>undefined),this[_0x4442ee(0x141)]=safeErrorCode(_0x5ef247,_0x4442ee(0x1a7)),nodeLog(_0x4442ee(0x103),{'nodeId':_0x4ddb2c[_0x4442ee(0x1b9)],'code':this[_0x4442ee(0x141)]});}}}this[_0x4442ee(0x1ce)]=await this[_0x4442ee(0x129)](this[_0x4442ee(0x1ce)]);}async[_0x2a29ba(0x129)](_0x41cd58){const _0x31a43f=_0x2a29ba;let _0x2bc87f=this[_0x31a43f(0x215)],_0xb551e=this[_0x31a43f(0x141)],_0x359c02=_0x31a43f(0x21c);if(_0x2bc87f&&this[_0x31a43f(0x1fe)]!==undefined)try{_0x359c02=(await this[_0x31a43f(0x1fe)][_0x31a43f(0x116)]())[_0x31a43f(0xef)];}catch(_0x317a7c){_0x2bc87f=![],_0xb551e=safeErrorCode(_0x317a7c,_0x31a43f(0x139));}return{..._0x41cd58,'conversationHosting':await conversationHostingCapability(_0x41cd58,this[_0x31a43f(0xe9)],_0x2bc87f,_0xb551e,this[_0x31a43f(0x11e)],_0x359c02)};}async[_0x2a29ba(0x212)](){const _0x3f6482=_0x2a29ba;if(this[_0x3f6482(0x222)]!==undefined)await this[_0x3f6482(0x222)];this[_0x3f6482(0x222)]=undefined,this[_0x3f6482(0xb8)]=![],this[_0x3f6482(0xe9)]??=await loadNodeConfig(this[_0x3f6482(0x22a)]),await this[_0x3f6482(0x22b)][_0x3f6482(0x259)](resolve(dirname(nodeDatabasePath(this[_0x3f6482(0xe9)],this[_0x3f6482(0x22a)])),_0x3f6482(0x1ba))),await assertLocalSqlitePath(nodeDatabasePath(this[_0x3f6482(0xe9)],this[_0x3f6482(0x22a)])),this[_0x3f6482(0x1b2)]??=new NodeDatabase(nodeDatabasePath(this[_0x3f6482(0xe9)],this[_0x3f6482(0x22a)]),()=>this[_0x3f6482(0xe9)]?.[_0x3f6482(0x1b9)]??_0x3f6482(0xd7)),this[_0x3f6482(0x1b2)][_0x3f6482(0x1aa)](),await this[_0x3f6482(0x17e)](),this[_0x3f6482(0x23a)][_0x3f6482(0x212)](),this[_0x3f6482(0x267)][_0x3f6482(0x26e)]();}[_0x2a29ba(0x21f)](_0x39b842){const _0x599c36=_0x2a29ba,_0x9a7ebd=this[_0x599c36(0x210)][_0x599c36(0x179)](_0x39b842);if(_0x9a7ebd!==undefined)clearTimeout(_0x9a7ebd[_0x599c36(0xd6)]);this[_0x599c36(0x210)][_0x599c36(0x1b3)](_0x39b842),this[_0x599c36(0x173)][_0x599c36(0x1b3)](_0x39b842);}async[_0x2a29ba(0x24a)](_0x20388f){const _0x46b5d5=_0x2a29ba,_0x4f1a1c=_0x20388f[_0x46b5d5(0x235)]['id']+':'+_0x20388f[_0x46b5d5(0x235)][_0x46b5d5(0x1d8)];this[_0x46b5d5(0x173)][_0x46b5d5(0x204)](_0x20388f[_0x46b5d5(0x239)],_0x4f1a1c);try{await this[_0x46b5d5(0x144)][_0x46b5d5(0x274)]({'sessionId':_0x20388f[_0x46b5d5(0x239)],'kind':_0x46b5d5(0x17f),'content':this[_0x46b5d5(0x1c2)][_0x46b5d5(0xe8)](_0x20388f[_0x46b5d5(0x239)],_0x46b5d5(0x17f)),'deliveryIntent':_0x46b5d5(0x214),'mission':_0x20388f[_0x46b5d5(0x235)],'secretEnvironment':_0x20388f[_0x46b5d5(0x13c)],..._0x20388f[_0x46b5d5(0x16e)]===undefined?{}:{'personalInstructions':_0x20388f[_0x46b5d5(0x16e)]},..._0x20388f[_0x46b5d5(0x130)]===undefined?{}:{'marAgentModel':_0x20388f[_0x46b5d5(0x130)]},..._0x20388f[_0x46b5d5(0x28a)]===undefined?{}:{'marAgentModels':_0x20388f[_0x46b5d5(0x28a)]},..._0x20388f[_0x46b5d5(0x224)]===undefined?{}:{'marAgentRuntimeScopeId':_0x20388f[_0x46b5d5(0x224)]}});const _0x200f3f=this[_0x46b5d5(0x1c2)][_0x46b5d5(0x179)](_0x20388f[_0x46b5d5(0x239)]);if(_0x200f3f?.[_0x46b5d5(0x135)]!==_0x46b5d5(0x11a)||_0x200f3f['id']!==_0x20388f[_0x46b5d5(0x235)]['id']||_0x200f3f[_0x46b5d5(0x1d8)]!==_0x20388f[_0x46b5d5(0x235)][_0x46b5d5(0x1d8)]){if(this[_0x46b5d5(0x173)][_0x46b5d5(0x179)](_0x20388f[_0x46b5d5(0x239)])===_0x4f1a1c)this[_0x46b5d5(0x173)][_0x46b5d5(0x1b3)](_0x20388f[_0x46b5d5(0x239)]);return;}this[_0x46b5d5(0x21f)](_0x20388f[_0x46b5d5(0x239)]);}catch{const _0x526624=this[_0x46b5d5(0x1c2)][_0x46b5d5(0x179)](_0x20388f[_0x46b5d5(0x239)]);if(_0x526624?.[_0x46b5d5(0x135)]!==_0x46b5d5(0x11a)||_0x526624['id']!==_0x20388f[_0x46b5d5(0x235)]['id']||_0x526624[_0x46b5d5(0x1d8)]!==_0x20388f[_0x46b5d5(0x235)][_0x46b5d5(0x1d8)]){if(this[_0x46b5d5(0x173)][_0x46b5d5(0x179)](_0x20388f[_0x46b5d5(0x239)])===_0x4f1a1c)this[_0x46b5d5(0x173)][_0x46b5d5(0x1b3)](_0x20388f[_0x46b5d5(0x239)]);return;}const _0xf95d0e=(_0x20388f[_0x46b5d5(0x177)]??0x6bb*-0x3+0x15b5+-0xc2*0x2)+(0x521+0x2*-0x45+-0x496),_0x22610c=this[_0x46b5d5(0x260)][_0x46b5d5(0x18b)](_0x20388f[_0x46b5d5(0x239)]);if(_0xf95d0e>-0x4ea+0x9f*0x1f+-0x1c*0x83||_0x22610c===undefined){this[_0x46b5d5(0x21f)](_0x20388f[_0x46b5d5(0x239)]);if(_0xf95d0e>-0x24df*0x1+0x8ea+0xdfc*0x2){const _0x35f38c=this[_0x46b5d5(0x1c2)][_0x46b5d5(0x269)](_0x20388f[_0x46b5d5(0x239)],_0x20388f[_0x46b5d5(0x235)]['id'],_0x20388f[_0x46b5d5(0x235)][_0x46b5d5(0x1d8)]);this[_0x46b5d5(0x13f)][_0x46b5d5(0x24f)](_0x20388f[_0x46b5d5(0x239)]),this[_0x46b5d5(0x229)](_0x20388f[_0x46b5d5(0x239)],_0x46b5d5(0x1d4));if(_0x22610c!==undefined)this[_0x46b5d5(0x142)](_0x22610c,_0x35f38c);}return;}this[_0x46b5d5(0x21f)](_0x20388f[_0x46b5d5(0x239)]);const _0x2b6a15={'sessionId':_0x20388f[_0x46b5d5(0x239)],'timer':setTimeout(()=>{const _0x340a1f=_0x46b5d5,_0x4e6da4=this[_0x340a1f(0x1c2)][_0x340a1f(0x179)](_0x2b6a15[_0x340a1f(0x239)]);if(_0x4e6da4?.[_0x340a1f(0x135)]!==_0x340a1f(0x11a)||_0x4e6da4['id']!==_0x20388f[_0x340a1f(0x235)]['id']||_0x4e6da4[_0x340a1f(0x1d8)]!==_0x20388f[_0x340a1f(0x235)][_0x340a1f(0x1d8)])return;void this[_0x340a1f(0x24a)]({..._0x20388f,'sessionId':_0x2b6a15[_0x340a1f(0x239)],'failedAttempts':_0xf95d0e});},-0x605b+-0x21fa+0xbced)};this[_0x46b5d5(0x210)][_0x46b5d5(0x204)](_0x20388f[_0x46b5d5(0x239)],_0x2b6a15),_0x2b6a15[_0x46b5d5(0xd6)][_0x46b5d5(0x12b)]();}}[_0x2a29ba(0x229)](_0x457912,_0x45f657){const _0x3e700b=_0x2a29ba,_0x53a907=this[_0x3e700b(0x260)][_0x3e700b(0x15d)](_0x457912);if(_0x53a907===undefined||this[_0x3e700b(0x260)][_0x3e700b(0xcf)](_0x53a907['id'])!==undefined)return;this[_0x3e700b(0x228)][_0x3e700b(0x112)](_0x53a907['id'],_0x45f657===_0x3e700b(0x153)?_0x3e700b(0xd3):_0x3e700b(0xbb),_0x45f657===_0x3e700b(0x153)?{}:{'code':_0x3e700b(0xdc)},_0x45f657);}[_0x2a29ba(0x1c7)](_0x5e6361){const _0x8958f9=_0x2a29ba,_0xf51340=missionUnrestrictedAccess(_0x5e6361[_0x8958f9(0x22f)]),_0x366619=_0x5e6361[_0x8958f9(0x105)]!==_0xf51340,_0x399f6d=_0x366619?this[_0x8958f9(0x260)][_0x8958f9(0x1e0)](_0x5e6361['id'],_0xf51340):_0x5e6361;if(_0x366619&&_0x399f6d[_0x8958f9(0x201)]!==null&&_0x399f6d[_0x8958f9(0x18a)]!==null&&_0x399f6d[_0x8958f9(0xd4)]!==null)this[_0x8958f9(0x1b2)]?.[_0x8958f9(0x226)]({'runner':_0x399f6d[_0x8958f9(0x22f)],'externalSessionId':_0x399f6d[_0x8958f9(0x201)],'workspaceId':_0x399f6d[_0x8958f9(0x256)],'model':_0x399f6d[_0x8958f9(0x18a)],'effort':_0x399f6d[_0x8958f9(0xd4)],'access':_0xf51340});return{'session':_0x399f6d,'changed':_0x366619};}[_0x2a29ba(0x1d9)](){const _0x3e8704=_0x2a29ba;return{'commandId':_0x3e8704(0x235),'active':!![],'label':_0x3e8704(0x1cf),'detail':null,'closable':!![],'closeInput':_0x3e8704(0x240)};}[_0x2a29ba(0x257)](){const _0x490459=_0x2a29ba;if(this[_0x490459(0x222)]!==undefined)return this[_0x490459(0x222)];this[_0x490459(0xb8)]=!![],this[_0x490459(0x242)][_0x490459(0xe7)](),this[_0x490459(0x22b)][_0x490459(0x257)](),this[_0x490459(0x23a)][_0x490459(0x257)]();for(const _0x17ebdd of this[_0x490459(0xd9)][_0x490459(0x181)][_0x490459(0x1ef)][_0x490459(0x14c)]()){clearTimeout(_0x17ebdd[_0x490459(0xd6)]),_0x17ebdd[_0x490459(0x196)](_0x490459(0x18e));}this[_0x490459(0xd9)][_0x490459(0x181)][_0x490459(0x1ef)][_0x490459(0x121)]();for(const _0x4b955f of this[_0x490459(0xd9)][_0x490459(0x181)][_0x490459(0x169)][_0x490459(0x14c)]()){clearTimeout(_0x4b955f[_0x490459(0xd6)]),_0x4b955f[_0x490459(0x1eb)](_0x490459(0x160));}this[_0x490459(0xd9)][_0x490459(0x181)][_0x490459(0x169)][_0x490459(0x121)](),this[_0x490459(0x1b7)][_0x490459(0x121)](),this[_0x490459(0x23d)][_0x490459(0xe7)](),this[_0x490459(0xaf)][_0x490459(0x121)](),this[_0x490459(0x13f)][_0x490459(0x121)]();for(const _0x51adb7 of this[_0x490459(0x210)][_0x490459(0x14c)]())clearTimeout(_0x51adb7[_0x490459(0xd6)]);this[_0x490459(0x210)][_0x490459(0x121)](),this[_0x490459(0x173)][_0x490459(0x121)](),this[_0x490459(0x10d)][_0x490459(0x121)](),this[_0x490459(0x26c)][_0x490459(0xe7)]();for(const _0x331be2 of this[_0x490459(0xd9)][_0x490459(0x181)][_0x490459(0x203)][_0x490459(0x14c)]())_0x331be2[_0x490459(0x1d2)][_0x490459(0x185)]();this[_0x490459(0xd9)][_0x490459(0x181)][_0x490459(0x203)][_0x490459(0x121)](),this[_0x490459(0x165)][_0x490459(0xe7)](),void this[_0x490459(0x283)][_0x490459(0xe7)]();const _0x5b0305=this[_0x490459(0x1fe)]?.[_0x490459(0xe7)]();this[_0x490459(0x1fe)]=undefined,this[_0x490459(0x1bd)]?.[_0x490459(0xe7)](),this[_0x490459(0x1bd)]=undefined;const _0xd09b5a=this[_0x490459(0xba)];this[_0x490459(0xba)]=undefined,this[_0x490459(0x26a)]=undefined,this[_0x490459(0xde)]=undefined,void this[_0x490459(0x1bc)][_0x490459(0x1f4)](),this[_0x490459(0x1a9)][_0x490459(0xe7)](),this[_0x490459(0x11d)][_0x490459(0x285)](),this[_0x490459(0x20e)][_0x490459(0x121)](),this[_0x490459(0x140)][_0x490459(0x121)](),this[_0x490459(0xb3)][_0x490459(0x121)](),void this[_0x490459(0xb1)][_0x490459(0x257)](),void this[_0x490459(0xda)][_0x490459(0xd1)](),void this[_0x490459(0x125)][_0x490459(0x1f4)](),this[_0x490459(0xd8)][_0x490459(0x257)](),this[_0x490459(0xe1)][_0x490459(0xd1)](),this[_0x490459(0x267)][_0x490459(0x257)]();const _0x1ea06c=this[_0x490459(0x1b2)];return this[_0x490459(0x1b2)]=undefined,this[_0x490459(0x222)]=((async()=>{const _0x3e8a7f=_0x490459;try{await _0x5b0305;}finally{await _0xd09b5a?.[_0x3e8a7f(0xe7)]()[_0x3e8a7f(0x1d7)](()=>undefined),_0x1ea06c?.[_0x3e8a7f(0xd1)]();}})()),this[_0x490459(0x222)];}[_0x2a29ba(0x1be)]=_0x2ab163=>this[_0x2a29ba(0x17d)][_0x2a29ba(0x1d2)](_0x2ab163);[_0x2a29ba(0x176)]=(_0x5a1561,_0x476728,_0xcd81ff,_0x221061)=>this[_0x2a29ba(0x228)][_0x2a29ba(0x112)](_0x5a1561,_0x476728,_0xcd81ff,_0x221061);[_0x2a29ba(0x207)]=(_0x39227d,_0x2cc121)=>{const _0x47d8cc=_0x2a29ba;this[_0x47d8cc(0x10d)][_0x47d8cc(0x1d3)](_0x39227d);const _0x19f585=isPlainRecord(_0x2cc121)&&typeof _0x2cc121[_0x47d8cc(0x1da)]===_0x47d8cc(0x28b)?_0x2cc121[_0x47d8cc(0x1da)]:undefined,_0xdd362d=isPlainRecord(_0x2cc121)&&typeof _0x2cc121[_0x47d8cc(0x288)]===_0x47d8cc(0x28b)?_0x2cc121[_0x47d8cc(0x288)]:undefined,_0x3d7287=this[_0x47d8cc(0x260)][_0x47d8cc(0x1f7)](_0x39227d),_0x37f5b1=_0x19f585===undefined||_0x3d7287===undefined?undefined:conversationSegmentIdentityForItem(_0x3d7287,_0x19f585,_0xdd362d);this[_0x47d8cc(0x228)][_0x47d8cc(0x112)](_0x39227d,_0x47d8cc(0x148),_0x37f5b1===undefined||!isPlainRecord(_0x2cc121)?_0x2cc121:{..._0x2cc121,'segmentId':_0x37f5b1['id'],'segmentIndex':_0x37f5b1[_0x47d8cc(0x221)]});};[_0x2a29ba(0x28c)]=_0x583a10=>{const _0x5c7d72=_0x2a29ba,_0x2da5ef=isPlainRecord(_0x583a10)&&Array[_0x5c7d72(0x1c5)](_0x583a10[_0x5c7d72(0x123)])?conversationSegments(_0x583a10):[];this[_0x5c7d72(0x272)](_0x5c7d72(0x1e9),{'turn':_0x583a10,'segments':_0x2da5ef});};[_0x2a29ba(0x168)]=(_0x524c12,_0x153a42)=>{const _0x2d83f9=_0x2a29ba;if(_0x524c12===_0x2d83f9(0x1ee)){this[_0x2d83f9(0x104)](_0x153a42);return;}this[_0x2d83f9(0x272)](_0x524c12,_0x153a42);};[_0x2a29ba(0x104)]=_0x5e29ff=>{const _0x3f9215=_0x2a29ba;if(isPlainRecord(_0x5e29ff)&&isPlainRecord(_0x5e29ff[_0x3f9215(0x1ee)])){const _0x5b4cee=_0x5e29ff[_0x3f9215(0x1ee)][_0x3f9215(0x256)];typeof _0x5b4cee===_0x3f9215(0x28b)&&(this[_0x3f9215(0x140)][_0x3f9215(0x241)](_0x5b4cee),void this[_0x3f9215(0x20e)]?.[_0x3f9215(0x282)](_0x5b4cee,_0x3f9215(0x234)));}this[_0x3f9215(0x272)](_0x3f9215(0x1ee),_0x5e29ff);};[_0x2a29ba(0x272)]=(_0x11f423,_0x277d44)=>{const _0x3a5d9b=_0x2a29ba;if(_0x11f423===_0x3a5d9b(0x1e9)&&isPlainRecord(_0x277d44)&&isPlainRecord(_0x277d44[_0x3a5d9b(0x17a)])&&_0x277d44[_0x3a5d9b(0x17a)][_0x3a5d9b(0x25d)]!==_0x3a5d9b(0x264)){const _0x1ef790=typeof _0x277d44[_0x3a5d9b(0x17a)][_0x3a5d9b(0x1f8)]===_0x3a5d9b(0x28b)?_0x277d44[_0x3a5d9b(0x17a)][_0x3a5d9b(0x1f8)]:undefined,_0x40f006=typeof _0x277d44[_0x3a5d9b(0x17a)][_0x3a5d9b(0x12c)]===_0x3a5d9b(0xb7)?_0x277d44[_0x3a5d9b(0x17a)][_0x3a5d9b(0x12c)]:undefined,_0x116eb0=_0x1ef790===undefined?undefined:this[_0x3a5d9b(0x260)][_0x3a5d9b(0x1f7)](_0x1ef790);if(_0x116eb0===undefined)return;const _0x5d952d=isPlainRecord(_0x277d44[_0x3a5d9b(0x17a)][_0x3a5d9b(0x1a8)])?_0x277d44[_0x3a5d9b(0x17a)][_0x3a5d9b(0x1a8)]:undefined,_0x23fdc3=_0x277d44[_0x3a5d9b(0x17a)][_0x3a5d9b(0x25d)]===_0x3a5d9b(0x1ac)&&typeof _0x5d952d?.[_0x3a5d9b(0x1af)]===_0x3a5d9b(0x28b)?_0x5d952d[_0x3a5d9b(0x1af)]:undefined,_0x143e52=typeof _0x5d952d?.[_0x3a5d9b(0x1da)]===_0x3a5d9b(0x28b)?_0x5d952d[_0x3a5d9b(0x1da)]:typeof _0x5d952d?.[_0x3a5d9b(0x14d)]===_0x3a5d9b(0x28b)?_0x3a5d9b(0xf8)+_0x5d952d[_0x3a5d9b(0x14d)]:undefined,_0x492e77=_0x23fdc3!==undefined&&_0x40f006!==undefined?_0x116eb0[_0x3a5d9b(0x123)][_0x3a5d9b(0xec)](_0x1cc6bd=>_0x1cc6bd[_0x3a5d9b(0x288)]===_0x3a5d9b(0x286)&&_0x1cc6bd[_0x3a5d9b(0x1d8)]===_0x40f006):_0x143e52===undefined?undefined:_0x116eb0[_0x3a5d9b(0x123)][_0x3a5d9b(0xec)](_0x39f9fb=>_0x39f9fb['id']===_0x1ef790+':'+_0x143e52);if(_0x23fdc3!==undefined&&_0x492e77?.[_0x3a5d9b(0x288)]===_0x3a5d9b(0x286))_0x277d44={'sessionId':_0x116eb0[_0x3a5d9b(0x239)],'delta':{'runId':_0x116eb0[_0x3a5d9b(0x1f8)],'itemId':_0x492e77['id'],'text':_0x23fdc3,'createdAt':typeof _0x277d44[_0x3a5d9b(0x17a)][_0x3a5d9b(0x20f)]===_0x3a5d9b(0xb7)?_0x277d44[_0x3a5d9b(0x17a)][_0x3a5d9b(0x20f)]:Date[_0x3a5d9b(0xd0)]()}};else{if(_0x492e77!==undefined){const _0x560d91=conversationSegmentIdentityForItem(_0x116eb0,_0x492e77['id'],_0x492e77[_0x3a5d9b(0x288)]);_0x277d44={'sessionId':_0x116eb0[_0x3a5d9b(0x239)],'runId':_0x116eb0[_0x3a5d9b(0x1f8)],'item':{'itemId':_0x492e77['id'],'kind':_0x492e77[_0x3a5d9b(0x288)],'status':_0x492e77[_0x3a5d9b(0x135)],'payload':_0x492e77[_0x3a5d9b(0x1a8)],'startedAt':_0x492e77[_0x3a5d9b(0x184)],'completedAt':_0x492e77[_0x3a5d9b(0x251)],'segmentId':_0x560d91['id'],'segmentIndex':_0x560d91[_0x3a5d9b(0x221)]}};}else{if(_0x277d44[_0x3a5d9b(0x17a)][_0x3a5d9b(0x25d)]!==_0x3a5d9b(0x182)&&_0x277d44[_0x3a5d9b(0x17a)][_0x3a5d9b(0x25d)]!==_0x3a5d9b(0x189))return;_0x277d44={'turn':_0x116eb0,'segments':conversationSegments(_0x116eb0)};}}}const _0x1717a9=this[_0x3a5d9b(0xfc)][_0x3a5d9b(0xcd)](_0x11f423,_0x277d44);if(_0x1717a9===undefined)return;const _0x256b38=_0x11f423===_0x3a5d9b(0x1e9)&&isPlainRecord(_0x277d44)&&isPlainRecord(_0x277d44[_0x3a5d9b(0x17a)])&&_0x277d44[_0x3a5d9b(0x17a)][_0x3a5d9b(0x25d)]===_0x3a5d9b(0x264),_0x3d2a38=workbenchPayloadSessionId(this[_0x3a5d9b(0x260)],_0x11f423,_0x277d44);if(!_0x256b38&&_0x3d2a38!==undefined){this[_0x3a5d9b(0x1b7)][_0x3a5d9b(0x271)](_0x3d2a38,_0x1717a9);return;}this[_0x3a5d9b(0xfc)][_0x3a5d9b(0x199)](_0x1717a9);};[_0x2a29ba(0x175)]=_0x2fe510=>this[_0x2a29ba(0x253)][_0x2a29ba(0x225)](_0x2fe510);[_0x2a29ba(0xc9)]=_0x2bbea4=>this[_0x2a29ba(0xc6)][_0x2a29ba(0x23f)](_0x2bbea4);[_0x2a29ba(0xc2)]=()=>undefined;[_0x2a29ba(0x17b)]=()=>this[_0x2a29ba(0x23a)][_0x2a29ba(0x17b)]();[_0x2a29ba(0x197)]=()=>this[_0x2a29ba(0x23a)][_0x2a29ba(0x197)]();async[_0x2a29ba(0x11b)](_0x29fc55,_0x37843e){const _0x904f98=_0x2a29ba;if(this[_0x904f98(0x1b2)]===undefined)throw new Error(_0x904f98(0x268));if(this[_0x904f98(0x22b)][_0x904f98(0x21e)](_0x29fc55))throw new Error(_0x904f98(0x27d));return nodeLog(_0x904f98(0x23e),{'nodeId':this[_0x904f98(0xe9)]?.[_0x904f98(0x1b9)],'operation':_0x29fc55}),this[_0x904f98(0xdf)][_0x904f98(0x277)](_0x29fc55,_0x37843e);}async[_0x2a29ba(0x188)](_0x321050,_0x546de4){const _0x2e146c=_0x2a29ba,_0x174842=this[_0x2e146c(0xe9)];if(_0x174842?.[_0x2e146c(0x1b9)]===undefined||_0x174842[_0x2e146c(0xf9)]===undefined)throw new Error(_0x2e146c(0x194));const _0x135755=await fetch(_0x174842[_0x2e146c(0x281)][_0x2e146c(0x12e)](/\/$/u,'')+_0x2e146c(0x15f),{'method':_0x2e146c(0x158),'headers':{'content-type':_0x2e146c(0x276),'x-mar-node-id':_0x174842[_0x2e146c(0x1b9)],'authorization':_0x2e146c(0x231)+_0x174842[_0x2e146c(0xf9)]},'body':JSON[_0x2e146c(0x27a)](_0x321050),'signal':_0x546de4});if(!_0x135755['ok'])throw new Error(_0x2e146c(0x137));const _0x543b8c=await _0x135755[_0x2e146c(0x289)]();return{'content':JSON[_0x2e146c(0x27a)](_0x543b8c),'data':_0x543b8c};}[_0x2a29ba(0x142)](_0x5c3e09,_0x5b11c6){const _0x56dbd8=_0x2a29ba;if(_0x5b11c6[_0x56dbd8(0x135)]!==_0x56dbd8(0x11a)){this[_0x56dbd8(0x122)][_0x56dbd8(0x121)](_0x5c3e09['id'],_0x56dbd8(0x235)),this[_0x56dbd8(0x272)](_0x56dbd8(0x1ee),{'session':this[_0x56dbd8(0xe5)][_0x56dbd8(0x20a)](_0x5c3e09)});return;}this[_0x56dbd8(0x122)][_0x56dbd8(0x204)](_0x5c3e09['id'],{'commandId':_0x56dbd8(0x235),'active':_0x5b11c6[_0x56dbd8(0x135)]===_0x56dbd8(0x11a),'label':_0x56dbd8(0x1cf),'detail':_0x5b11c6[_0x56dbd8(0x1a2)][_0x56dbd8(0x1cc)](-0x14a7+-0x49c+0x1d*0xdf,-0x1*0x14db+0xea9+0x826),'closable':!![],'closeInput':_0x56dbd8(0x1bf),'mission':{'id':_0x5b11c6['id'],'objective':_0x5b11c6[_0x56dbd8(0x1a2)],'revision':_0x5b11c6[_0x56dbd8(0x1d8)],'status':_0x5b11c6[_0x56dbd8(0x135)],'turns':_0x5b11c6[_0x56dbd8(0x227)]}}),this[_0x56dbd8(0x272)](_0x56dbd8(0x1ee),{'session':this[_0x56dbd8(0xe5)][_0x56dbd8(0x20a)](_0x5c3e09)});}[_0x2a29ba(0xfe)](_0x5742ba,_0x285d75,_0x5f4717){const _0x3c2e59=_0x2a29ba;this[_0x3c2e59(0x267)][_0x3c2e59(0xfe)](_0x5742ba,_0x285d75,_0x5f4717);}[_0x2a29ba(0x1fc)](_0x4b8475){const _0x59b24b=_0x2a29ba;this[_0x59b24b(0x267)][_0x59b24b(0x1fc)](_0x4b8475);}}
|