@myagentroam/node 0.9.21 → 0.9.23
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/claude/tool-normalizer.js +1 -1
- package/dist/runner/codex/tool-normalizer.js +1 -1
- package/dist/runner/mar-agent/conversation-normalizer.js +1 -1
- package/dist/runner/mar-agent/history-projection.js +1 -1
- package/dist/runner/mar-agent/managed-run-controller.js +1 -1
- package/dist/runner/mar-agent-runner.js +1 -1
- package/dist/runner/opencode/conversation-parser.js +1 -1
- package/dist/runner/opencode/managed-run-controller.js +1 -1
- package/dist/runner/opencode/tool-normalizer.js +1 -1
- package/dist/runtime-state.js +1 -1
- package/dist/service/session-catalog-service.js +1 -1
- package/dist/util/runner-native-session-parsers.js +1 -1
- package/package.json +3 -3
package/dist/connector.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* mar-release-protected */
|
|
2
|
-
const _0x2d8eb1=_0x9642;(function(_0x388645,_0x4ff35d){const _0x16ff27=_0x9642,_0x24c5a3=_0x388645();while(!![]){try{const _0x89b4a1=-parseInt(_0x16ff27(0x237))/(-0x279*0x2+0x1*-0x19ef+0x1ee2)*(parseInt(_0x16ff27(0x1b0))/(0x1b18*-0x1+0x661+-0x14b9*-0x1))+parseInt(_0x16ff27(0x23d))/(0x19c3+0xb*0xe9+-0x23c3)*(parseInt(_0x16ff27(0x215))/(-0x15d*0x1b+-0x647*-0x1+0x1*0x1e8c))+-parseInt(_0x16ff27(0x1db))/(-0x1eba+-0x1*0x263e+0x44fd)+parseInt(_0x16ff27(0xf0))/(-0x23ad+0x5*0x239+0x1896)*(parseInt(_0x16ff27(0x1f7))/(0x1d*0xc0+-0x38b*-0x2+-0x1ccf))+-parseInt(_0x16ff27(0x110))/(-0x1ab9*-0x1+0x27a*0x2+-0x1fa5)*(parseInt(_0x16ff27(0x1e7))/(-0x1f7a+0x35*-0x38+-0x2b1b*-0x1))+parseInt(_0x16ff27(0x1e3))/(0x152f*-0x1+0x716+0xe23*0x1)*(-parseInt(_0x16ff27(0xe5))/(-0x1*-0x45a+0x188b+-0x1cda))+parseInt(_0x16ff27(0x184))/(-0xe46+-0x2473+-0x1*-0x32c5)*(parseInt(_0x16ff27(0x1e1))/(0xb65+0x25*0x55+-0x17*0x107));if(_0x89b4a1===_0x4ff35d)break;else _0x24c5a3['push'](_0x24c5a3['shift']());}catch(_0x4a296d){_0x24c5a3['push'](_0x24c5a3['shift']());}}}(_0x561e,-0x14c*0x4cd+-0x4ab*0x89+0xd51*0x15b));import{dirname,resolve}from'node:path';import{createEnvelope}from'@myagentroam/protocol';import{loadNodeConfig,nodeDatabasePath}from'./config.js';import{NodeMetrics,nodeLog}from'./operational.js';import{assertLocalSqlitePath}from'./storage.js';import{detectCapabilitiesAsync,unavailableCapabilities}from'./capabilities.js';import{NodeDatabase}from'./database.js';import{TerminalManager}from'./terminal.js';import{NodeRuntimeState}from'./runtime-state.js';import{CommandStateStore}from'./runner-command-engine.js';import{missionUnrestrictedAccess,MissionRuntime}from'./service/mission-runtime.js';import{MissionMcpServer}from'./service/mission-mcp-server.js';import{RunnerUsageReader}from'./runner-usage.js';import{ClaudeCodeRunner}from'./runner/claude-code-runner.js';import{ClaudeManagedRunController}from'./runner/claude/managed-run-controller.js';import{CodexRunner}from'./runner/codex-runner.js';import{CodexManagedRunController}from'./runner/codex/managed-run-controller.js';import{FakeTestRunner}from'./runner/fake-test-runner.js';import{RunnerRegistry}from'./runner/runner-registry.js';import{OpenCodeRunner}from'./runner/opencode-runner.js';import{MarAgentRunner}from'./runner/mar-agent-runner.js';import{MarAgentManagedRunController}from'./runner/mar-agent/managed-run-controller.js';import{OpenCodeManagedRunController}from'./runner/opencode/managed-run-controller.js';import{NodeOperationRouter}from'./connector/node-operation-router.js';import{SkillNodeOperationService}from'./service/skill-node-operation-service.js';import{McpNodeOperationService}from'./service/mcp-node-operation-service.js';import{RunnerService}from'./service/runner-service.js';function _0x561e(){const _0x37298d=['y29UBMvJDgLVBKXPzMvJEwnSzq','C2vYDMvYvxjS','CgvYC2LZDfrLCM1PBMfS','D2f0y2GUzxzLBNq','C3vWzxj2AxnLzfvWz3jHzgu','BgLZDfj1BNngB3jtzxnZAw9U','BMf0AxzLlNnLC3nPB24UzgLZy292zxj5lNbLBMrPBMC','ywnJzxnZ','Bwv0CMLJCW','y3jLyxrLqwDLBNrtzxnZAw9U','BM9KzvjLCxvLC3rZ','C2vJCMv0rw52AxjVBM1LBNq','yMXVy2TZ','CMvNAxn0zxjbBgW','yxbWCM92ywXZ','lw9Wzw5JB2rLlwLTywDLCW','DxnLCKLUChv0CW','CMvTB3zLugvUzgLUz1f1zxvL','zMfRzvj1BM5LCG','y2XVC2vsDw5UAw5NvgvYBwLUywXtzxnZAw9UCW','CMvZDw1LzenVBMzPz3vYyxrPB24','BwfUywDLzezVCK5HDgL2zq','C2nOzwr1Bgu','CMvJB25JAwXL','y2XLyxjxB3jRC3bHy2u','y2fUy2vSq29KzxHuDxjU','DxbNCMfKzvjLywr5','BNvTyMvY','BM9KzuDLBMvYyxrPB24','D29YA3nWywnLq29VCMrPBMf0B3i','C29JA2v0','z2v0','v09ss1nqqunf','ChjLCgfYzu1PC3nPB25tzxnZAw9U','BM9Kzs5JB25Uzwn0Aw5N','q0foq0vm','ChjVBw90zvnLC3nPB25jzgvUDgL0Eq','y2fUy2vS','zgvJAxnPB24','ywn0AxzLu2vZC2LVBLj1BG','D29YA3nWywnLu3rHDgu','y2fUy2vSq2XHDwrLuNvU','zxHLy3v0Aw9Uu3rHCNrLza','C3rHDhvZ','DxbNCMfKzs1Yzxn1BhqUANnVBG','zxH0zxjUywXby3rPDML0Eq','CMfUzg9Tvvvjra','CMv2B2TL','zgvJAwrLq2XHDwrLqxbWCM92ywW','B3bLCMf0Aw9UuM91DgvY','DxbKyxrLqwDLBNrtzxnZAw9UqwnJzxnZ','y3DK','y29KzxHsDw5dB250CM9SBgvY','ANnVBG','y29UDMvYC2f0Aw9Uu2vNBwvUDfnLCNzPy2u','BwLU','Cgf1C2vtzxnZAw9UuxvLDwu','AgfZqwn0AxzLu2vZC2LVBKXLyxnL','D2LUmZi','B3bLCMf0Aw9UCW','y29TCgXLDgvdyw5JzwXSzwrsDw4','CNvUBMvYq2HHBM5LBe1LC3nHz2vZ','zw1PDfjLywX0Aw1L','uvvfvuu','Aw52ywXPzgf0zvDVCMTZCgfJzvDHDgnOvg9WAwnZ','zgLZCgf0y2G','zw5ZDxjLv2f0y2G','BgLZDa','C2vUzevUDMvSB3bL','Cgf5Bg9Hza','y29KzxHqCM9MAwXLq2XPzw50rMfJDg9YEq','CgvYC29UywXjBNn0CNvJDgLVBNm','zxH0zxjUywXtzxnZAw9UuMvZDw1Lu2vYDMLJzq','Aw5KzxG','BwLNCMf0zvnLC3nPB24','BMf0AxzLu2vZC2LVBLbYB2PLy3rPB25tzxj2AwnL','y3vZDg9TvgL0Bgu','C2XPy2u','tuLtu0LptL9ot1rFqunusvzf','y29UDgLUDwu','uKvqtefdrv9dvvjsru5u','q0foq0vmteve','C25HChnOB3q','CNvUBMvY','zMfZDa','BxLHz2vUDhjVyw1FBwLZC2LVBG','CMvWBgfJzvnVy2TLDezVCLrLC3rPBMC','BM93','CMvWBgfJzq','rKflrv9svu5orvjFreLtq09otKvdva','C2vZC2LVBG','CMv2AxnPB24','A2LUza','BM9Kzs5TzxrYAwnZ','y29UBMvJDgvKqxr0zw1WDa','CNvUlMnVBxbSzxrLza','u0vora','Aw52ywXPzgf0zq','mJi4meXgC1PXDG','yM9VDhn0CMfWswrZ','y2XVC2u','y2XLyw51Ca','zw5XDwv1zu1PC3nPB25dB250Aw51yxrPB24','ChjVAMvJDgLVBKzVCK5HDgL2zq','BgLZDfDVCMTZCgfJzxm','y2XLyxjxyxrJAgvZ','Aw50zxjYDxb0','Dw5YzwDPC3rLCMvK','C2f2zu5HDgL2zvnLC3nPB25nzxrHzgf0yq','y29TBwL0twv0ywrHDge','CMvJB25JAwXLugvYC2LZDgvKuNvUCW','tK9erv9dt05orunusu9ox1jfueXbq0ve','y2f0y2G','BM9Kzs51CgDYywrLlMnHBMnLBa','ChjVAMvJDeLUAxrPywW','y29UDMvYC2f0Aw9UlML0zw0','DgvYBwLUywXnyw5Hz2vY','BM9Kzs5JB25Uzwn0Aw9UlNjLCgXHy2vK','BwLZC2LVBG','D29YA3nWywnLvxbSB2fKu2vYDMLJzq','CNvUlNn0yxj0zwq','D29YA3nWywnLuxvLDwvxB3jRyMvUy2Htzxj2AwnL','CNvUswq','tK9erv9tve9queve','y29UDgLUDw91C1j1BKnVB3jKAw5HDg9Y','C3rVCfDHDgnO','y2fWywjPBgL0AwvZuhjVDMLKzwq','zw5ZDxjLvg9WAwntBMfWC2HVDa','ChjVBw90zq','CNvUBMvYsw50zxjHy3rPB25tzxj2AwnL','CNvUBMvYu2vYDMLJzq','y29UBMvJDa','CNvUBMvYvgL0Bgu','Ahr0Chm6lY8XmJCUmc4WlJeUAw52ywXPzc9Ty3a','CMvJzw50lxj1BNm','C2vZC2LVBKnVBw1HBMrtzxj2AwnL','CMvZDw1Lqwz0zxjdB21Tyw5KuNvU','ms4WlJa','AgfUzgXLtM90AwzPy2f0Aw9U','y2XHDwrLuNvUq29UDhjVBgXLCG','ywn0AxzL','tK9erv9vtKfvveHftLrjq0furuq','mtyYyxPYAvzP','C2vZC2LVBNm','zgvJAwrLqxbWCM92ywW','C3rYAw5NAwz5','ChjVBxb0','zgvSzxrL','D29YA3nWywnLrMLSzvnLCNzPy2u','zMfPBgvKqxr0zw1WDhm','BwfYqwDLBNrsDw5dB250CM9SBgvY','Dgv4Da','Aw52ywXPzgf0zvrVCgLJ','C2v0','C2vZC2LVBI13yxrJAc1ZBMfWC2HVDa','CMvJB25Uzwn0','BgLUDxG','tK9erv9vueDsqurfx1bftKrjtKC','zM9Yz2v0','zgLYzwn0tMf0AxzL','zMLUza','CNvUBMvYvxnHz2vszwfKzxi','DgLTzxi','C3rYAw5N','ywnJzxb0rM9YtwvZC2fNzq','tuLtu0LptL9dt05usu5vqvrjt05FrKfjteve','l21PC3nPB24Gls1JBgvHCG','CNvUrxzLBNrtzxj2AwnL','ywrK','ChjLCgfYzu1LC3nHz2vjBNb1Da','y29TCgXLDgvKqxq','y2fWywjPBgL0AwvZ','y29UDMvYC2f0Aw9U','CMvZB2X2zq','qMvHCMvYia','yxnZAxn0yw50x21LC3nHz2u','ChvIBgLZAfDVCMTIzw5JAev2zw50','Bwf0zxjPywXPEMvdB2rLEa','CNvUDgLTzq','y2HHBMDLza','zxHLy3v0Aw9U','y2XLyxjnAxnZAw9UuMv0CNK','y29UzMLNugf0Aa','CNvUBMvYlMnVBw1HBMqUzxHLy3v0zq','zxH0zxjUywXtzxnZAw9Uswq','ntq5nde2mg51ruf1qW','Bw92zq','DgvYBwLUywXtzxj2AwnL','l2fWAs9UB2rLlxrVB2XZl3DLyI1ZzwfYy2G','B2jQzwn0AxzL','C2vUza','odeZndfsu2jovMq','vgHPCYboB2rLignVBM5Ly3rPB24GD2fZihjLCgXHy2vKigj5igeGBMv3zxiGAw5ZDgfUy2uGD2L0Acb0AguGC2fTzsbPzgvUDgL0Es4Gq2HLy2SGzM9Yigr1CgXPy2f0zsbWCM9JzxnZzxmU','nJCWwK5QANHQ','zw1PDfj1BG','zxHLy3v0zunVBw1HBMq','CMvXDwLYzq','nJi3otiXA292zxvi','AxrLBuLK','u1vdq0vfreve','CMvJB3jKvhvYBG','zgvJAwrL','yMXVy2TbzNrLCLj1BNrPBwvgywLSDxjL','CNvUu3rHDgu','C2vZC2LVBKLKzw50Axr5u2vYDMLJzq','ue9tva','y2XLyxjbBgW','CNvUqxr0ywnOBwvUDfnLCNzPy2u','CMvXDwvZDa','zxHWAxjLqxbWCM92ywW','zxzLBNruExbL','B3bLBKnVzgvsDw5dB250CM9SBgvY','CMvJB3jK','mtm5mdi3D256wgvt','C2vZC2LVBK1LC3nHz2vtzxj2AwnL','C2vZC2LVBI5SAxn0','yxbWBgLJyxrPB24VANnVBG','AgfZrxHLy3v0Aw9Uu3rHCNrLza','yxbWCM92ywW6','zgLZy292zxjxB3jRC3bHy2vtzxnZAw9UCW','zw1PDenVBNzLCNnHDgLVBKL0zw0','yxbWzw5K','C2vZC2LVBKLK','BM9Kzs5VCgvYyxrPB24','y2fWywjPBgL0EurLDgvJDg9Y','Dg9WAwnby3rPDMu','Bwv0ywrHDge','C3rVChbLza','y2XHDwrLqxbWCM92ywXuAw1LB3v0txm','ChvIBgLZAe1PC3nPB25tDgf0zq','ChvIBgLZAa','DgHYzwfKswq','BM9Kzs53B3jRyMvUy2GUy2fWywjPBgL0AwvZ','rvHurvjoquW','C2H1DgrVD24','y29UDhjVBenOyw5UzwW','uLvox05pvf9gt1vora','zMX1C2Hqzw5KAw5Nvgv4Da','y3jLyxrLqxbWCM92ywW','zgLZy29UBMvJDa','y2XHDwrLq2XPzw50','CMvTB3zLtwLZC2LVBLf1zxvL','C2vXDwvUy2u','ng1KrvroyW','D29YA3nWywnLv2f0y2Htzxj2AwnL','Bg9HzfjLC3vSDa','Aw52ywXPzgf0zunHy2HL','C25HChnOB3rtzxf1zw5Jzq','z2v0qwDLBNrtzxnZAw9U','rKfjteve','zxHPDa','y29TBwfUzfn0yxrLCW','CMvQzwn0','CMvXDwvZDenSyxvKzufWChjVDMfS','BwLZC2LVBLjLDhj5vgLTzxjZ','CMvTzw1Izxi','y2XLyxi','C2v0q2HHBM5LBfrVA2vU','zgLZCg9Zzq','CMvNAxn0zxi','C2vJCMv0CW','BwfUywDLzfj1BM5LCLnLC3nPB25Z','Cgf0Aa','CMvZCg9UzfvZzxjjBNb1Da','z2v0v29YA3nWywnL','y3jLzgvUDgLHBa','y29KzxG','BM90AwzPy2f0Aw9U','ywXSB3DLzfjVB3rZ','BM9KzuLK','AgfUzgXL','CMvZB2X2zun1CNjLBNq','D29YA3nWywnLu2vZC2LVBLnLCNzPy2u','B25tDw1Tyxj5','tufsx0fhru5ux1DfqL9trufsq0HFrKfjteve','Dw5Yzwy','tK9erv9eqvrbqKftrv9vtKfwquLmqujmrq','ntq1owXcq014Bq','BwLZC2LVBLj1BNrPBwu','DgvYBwLUywXdAgfUBMvS','CNvUCW','BMf0AxzLsw1Hz2vsB290CW','su5urvjsvvburuq','mZGWodC3zMvhB1HS','zxHLy3v0zq','y29UBMvJDgvK','y2fJAgvKu2vZC2LVBNm','y29UzMLN','D29YA2jLBMnOrxzLBNrtzxj2AwnL','twLZC2LVBG','zwzMB3j0','l21PC3nPB24','C3rHCNrdyxbHyMLSAxr5uMvMCMvZAa','BMf0AxzLu2vZC2LVBLDHDgnOu2vYDMLJzq','zxHWAxjL','zxHLy3v0zu5VzgvpCgvYyxrPB24','zw1PDfnLC3nPB25xB3jRyMvUy2HfDMvUDa','C2vZC2LVBLf1zxj5u2vYDMLJzq','zw1PDfDVCMTIzw5JAev2zw50','DMfSDwvZ','zw1PDenVBNzLCNnHDgLVBLr1CM4','Aw52ywXPzgf0zunOyw5Nzxm','C2vZC2LVBLn0yxrL','Aw5ZCgvJDe1LDgfKyxrH','BwfYlwLUDgvYBMfSlw1PC3nPB24','sfruua','BwLNCMf0zvj1BM5LCLnLC3nPB25jzgvUDgL0Eq','CMvJzw50uNvUuhjVAMvJDgLVBLnLCNzPy2u','ywrVChrsDw4','BwLZC2LVBK1JCfnLCNzLCG','CNvU','CMvHze5HDgL2zq','BwLZC2LVBKnVBNrPBNvHDgLVBLbLBMrPBMC','y3vYCMvUDev4zwn1DgLVBKLK','D29YA3nWywnLv29YA2jLBMnOu2vYDMLJzq','Bwf4','C2vZC2LVBKnHDgfSB2Dtzxj2AwnL','q0foq0vmteLorW','y29UDMvYC2f0Aw9UsgLZDg9YEvnLCNzPy2u','D2vIu2vHCMnO','CNvUrxzLBNrcCMLKz2u','CMvTB3zL','Bw9KzwW','AgfUzgXLtwvZC2fNzq','D29YA3nWywnLq2HHBMDLu2vYDMLJzq','zgLZy292zxjxB3jRC3bHy2u','D29YA2jLBMnOtwfUAwzLC3rtzxj2AwnL','C3vIBwL0twLZC2LVBG','C3rHCNq','C2vZC2LVBKXPzMvJEwnSzvnLCNzPy2u','yxbWCM92ywXjza','zw1PDfj1BKv2zw50','AxnbCNjHEq','CMvMCMvZAfrPDgXL','Aw5ZCgvJDa','BMv4Da','zgf0ywjHC2u','zMfRztO','CgvUzgLUzW','DhvYBNm','ChvIBgLZAefWChjVDMfS','C2vZC2LVBKnVBNrLEhrtzxj2AwnL','tK9erv9dt05gsuDFvu5bvKfjtefcteu','CNvUlNj1BM5PBMC','BM9Kzs51CgDYywrLlNjLCxvLC3q','y29UDhjVBe1LC3nHz2vZ','C3rHCNrLzef0','C2vZC2LVBLbYzxnLBNrHDgLVBLnLCNzPy2u','mJqWndzpBwjIEgy','ChjVzMLSzxm','CNvUlMzHAwXLza','zMfRzvnJCMLWDa','CMvMCMvZAenHCgfIAwXPDgLLCW','CMvMCMvZAev4DgvYBMfSqwn0AxzPDhK','ywn0AxzLv29YA3nWywnLtgvHC2vdB3vUDa','C3rHDgu','z2v0uNvU','CNvUDgLTzs1UB2rL','B3bLBKnVzgvdBgLLBNq','mZe4vMLbzNft','CgvYC2LZDezPBgvZ','y3jLyxrLzef0','DhvYBG','ChvIBgLZAfnUyxbZAg90','Dgv4Dc5KzwX0yq','CgXHDgzVCM0','CMvJB3jKrxHLy3v0Aw9UuMvZDwX0','uKvkrunuruq','y29UDMvYC2f0Aw9UvhvYBKzVCLj1BG','surmrq','CgvUzgLUz01PC3nPB25dB21Tyw5Ku3rHDgu','Aw50zxjYDxb0uMvXDwvZDgvK','zxzLBNq','CMvHzeHPC3rVCNLqywDL','CMvJB25Uzwn0u2nOzwr1BgvK','zgLZy292zxi','BMf0AxzLswrZ','yMLUzenVBNrYB2W','DxbNCMfKzq','CNvUBMvYCW','C3rVCa','C2L6zq','DxbNCMfKzunVB3jKAw5HDg9Y','y29KzxHdBgLLBNq','Aw5ZDgfSBgf0Aw9U','yMLUzenVBw1HBMrdB250CM9S','CMvXDwvZDenSyxvKzvvZzxjjBNb1Da','DhvYBKLK','zwzMzwn0AxzLtwnWsw5ZDgfSBgf0Aw9UCW','D2LUzg93CW','D29YA3nWywnLu2vYDMLJzq','oePKqu9vyG','zw5ZDxjLuMvZDw1LzenVBMzPz3vYyxrPB24','AgfZ','zMLSDgvY','yxzHAwXHyMXL','ChjLC2vUDa','D29YA3nWywnLswq','zgvJAwrLq29KzxHbChbYB3zHBa','CMvHza','y2HHBM5LBfrVA2vU','zw1PDff1zxvL','DhjHBNnPDgLVBMLUzW','CNvUv29YA2jLBMnOu2vYDMLJzq','CMvJB3jKzwqTC2vZC2LVBG','B25oB3rPzMLJyxrPB24','zMLUAxnOswrSzu1PC3nPB25sDw4','AxrLBxm','BwfYqwDLBNrdBgLLBNq'];_0x561e=function(){return _0x37298d;};return _0x561e();}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';function _0x9642(_0x4470b3,_0x57a6a7){_0x4470b3=_0x4470b3-(-0x1ed*-0x3+-0x78d+0x292);const _0x38aa1d=_0x561e();let _0x4eec4a=_0x38aa1d[_0x4470b3];if(_0x9642['TgJdhI']===undefined){var _0x87434e=function(_0x75b6e2){const _0x7636ee='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1cc513='',_0x4d50b1='';for(let _0x632418=0x1204+-0x4*-0x79d+-0x3078,_0x4f97f9,_0x23a151,_0x14378f=-0x1eef+0x7*0x10d+-0x7dc*-0x3;_0x23a151=_0x75b6e2['charAt'](_0x14378f++);~_0x23a151&&(_0x4f97f9=_0x632418%(-0x1b*0x9+0x110e+0x55d*-0x3)?_0x4f97f9*(-0xe83+-0x55c*-0x7+-0x1*0x16c1)+_0x23a151:_0x23a151,_0x632418++%(-0x123*-0xa+-0x156b*0x1+-0x3*-0x35b))?_0x1cc513+=String['fromCharCode'](-0x1f27+0xe04+0x1222&_0x4f97f9>>(-(0x3*-0x10d+-0x30+0x359)*_0x632418&0x1*-0xf46+0x21e4+-0x1298)):0x3c3*-0x9+-0x5*-0x56f+0xd6*0x8){_0x23a151=_0x7636ee['indexOf'](_0x23a151);}for(let _0x4a0d41=0x100e+0xcd0+0x1cde*-0x1,_0x45b66c=_0x1cc513['length'];_0x4a0d41<_0x45b66c;_0x4a0d41++){_0x4d50b1+='%'+('00'+_0x1cc513['charCodeAt'](_0x4a0d41)['toString'](-0x1*0x188b+0xcb1+0xbea))['slice'](-(-0x18d3+0x5c*0x3+0x17c1*0x1));}return decodeURIComponent(_0x4d50b1);};_0x9642['qngLyi']=_0x87434e,_0x9642['OkpInw']={},_0x9642['TgJdhI']=!![];}const _0x1318e7=_0x38aa1d[0xc8b+0xa51+-0x16dc];_0x9642['TjrJhq']!==_0x1318e7&&(_0x9642['OkpInw']={},_0x9642['TjrJhq']=_0x1318e7);const _0x43c4da=_0x9642['OkpInw'][_0x4470b3];return _0x43c4da===undefined?(_0x4eec4a=_0x9642['qngLyi'](_0x4eec4a),_0x9642['OkpInw'][_0x4470b3]=_0x4eec4a):_0x4eec4a=_0x43c4da,_0x4eec4a;}import{RunAttachmentService}from'./service/run-attachment-service.js';import{NodeTerminalChannel}from'./service/node-terminal-channel.js';import{WorkspaceWorkbenchService}from'./service/workspace-workbench-service.js';import{NativeSessionWatchService}from'./service/native-session-watch-service.js';import{SessionContextService}from'./service/session-context-service.js';import{WorkspaceDomainState}from'./service/workspace-domain-state.js';import{RunWorkbenchService}from'./service/run-workbench-service.js';import{SessionQueryService}from'./service/session-query-service.js';import{WorkspaceQueueWorkbenchService}from'./service/workspace-queue-workbench-service.js';import{ContinuousRunCoordinator}from'./service/continuous-run-coordinator.js';import{SessionIdentityService}from'./service/session-identity-service.js';import{NativeSessionProjectionService}from'./service/native-session-projection-service.js';import{composeConversationRuntimePage,ConversationHistoryService,convergeConversationWatchPage,hasManagedActiveRun}from'./service/conversation-history-service.js';import{ConversationSegmentService,conversationSegmentIdentityForItem,conversationSegments}from'./service/conversation-segment-service.js';import{RunnerInteractionService}from'./service/runner-interaction-service.js';import{SessionLifecycleService}from'./service/session-lifecycle-service.js';import{ExternalSessionResumeService}from'./service/external-session-resume-service.js';import{SessionMessageService}from'./service/session-message-service.js';import{SessionCatalogService}from'./service/session-catalog-service.js';import{SessionCommandService}from'./service/session-command-service.js';import{SessionPresentationService}from'./service/session-presentation-service.js';import{isPlainRecord,isRunnerImageAttachment,parseRunnerImageAttachments}from'./runner/codex/conversation-parser.js';export{nodeConnectEndpoint,validatedCapabilities}from'./runner/codex/conversation-parser.js';import{NodeControlChannel}from'./service/node-control-channel.js';import{NodeControlMessageService}from'./service/node-control-message-service.js';import{NodeRequestService}from'./service/node-request-service.js';import{WorkbenchManifestService}from'./service/workbench-manifest-service.js';import{NodeRunEventBridge,workbenchPayloadSessionId}from'./service/node-run-event-bridge.js';import{NodeWorkspaceCoordinator}from'./service/node-workspace-coordinator.js';import{FakeManagedRunService}from'./service/fake-managed-run-service.js';import{RunnerChannelMessageService}from'./service/runner-channel-message-service.js';import{ManagedRunnerSessionService}from'./service/managed-runner-session-service.js';import{NodeConnectionLifecycleService}from'./service/node-connection-lifecycle-service.js';import{NodeUpgradeCoordinator,nodeUpgradeRequestPath}from'./service/node-upgrade-coordinator.js';const HEARTBEAT_MS=-0x2a53+-0x3563*0x1+0x2*0x4d27,CAPABILITY_REFRESH_MS=0x122b1+0x2*-0xc069+0x14881,RETRY_MIN_MS=-0x17*0x193+-0x77*-0xd+-0x201e*-0x1,RETRY_MAX_MS=-0xd6*-0x91+-0x5bf*0x5+-0xfd*-0x19,CLAUDE_APPROVAL_TIMEOUT_MS=(0x1dd6+-0x11*0x11a+-0xb12)*(-0xd661+0x41*-0x95+0x1e696);export function nextReconnectDelay(_0x26915e){const _0x257554=_0x9642;return Math[_0x257554(0x159)](RETRY_MAX_MS,RETRY_MIN_MS*(0x3e1*-0x8+-0x187*0xa+0x2e50)**Math[_0x257554(0x159)](Math[_0x257554(0x25d)](_0x26915e,0x3c3*-0x9+-0x5*-0x56f+0xd6*0x8),0x100e+0xcd0+0x1cce*-0x1));}function upgradeMetadata(_0xd1d2d9,_0x304920){const _0x2341a=_0x9642,_0x3ead2c={..._0xd1d2d9??{}};if(process.env['MAR_NODE_SUPERVISED']==='1')_0x3ead2c[_0x2341a(0x126)]=!![];else delete _0x3ead2c[_0x2341a(0x126)];if(_0x304920[_0x2341a(0xec)]===_0x2341a(0xfa))delete _0x3ead2c[_0x2341a(0x103)];else _0x3ead2c[_0x2341a(0x103)]=_0x304920;return _0x3ead2c;}export class NodeConnector{[_0x2d8eb1(0x13e)]=crypto[_0x2d8eb1(0x150)]()[_0x2d8eb1(0x17a)](/-/g,'');[_0x2d8eb1(0x20d)];[_0x2d8eb1(0xe2)];[_0x2d8eb1(0x12c)];[_0x2d8eb1(0x122)];set[_0x2d8eb1(0x140)](_0x1ce689){const _0x27f929=_0x2d8eb1;this[_0x27f929(0x20d)][_0x27f929(0x178)](_0x1ce689);}[_0x2d8eb1(0x205)]=![];[_0x2d8eb1(0x241)];[_0x2d8eb1(0x1a0)];[_0x2d8eb1(0x1cd)];[_0x2d8eb1(0x202)];[_0x2d8eb1(0x1d8)];[_0x2d8eb1(0x1bd)];[_0x2d8eb1(0x206)];[_0x2d8eb1(0x242)]=new WorkbenchEventService(envelope=>this[_0x2d8eb1(0x166)](envelope),(category,payload)=>{const _0x4f82ae=_0x2d8eb1,sessionId=workbenchPayloadSessionId(this[_0x4f82ae(0x1d4)],category,payload);return sessionId===undefined||!this[_0x4f82ae(0x1ee)][_0x4f82ae(0x185)][_0x4f82ae(0x112)](sessionId);});[_0x2d8eb1(0x134)];[_0x2d8eb1(0xe8)];[_0x2d8eb1(0x1ed)]=new RunDomainState();[_0x2d8eb1(0x262)];[_0x2d8eb1(0x13f)];[_0x2d8eb1(0x250)]=new SessionDomainState();[_0x2d8eb1(0x1ee)];[_0x2d8eb1(0x16d)];[_0x2d8eb1(0x260)];[_0x2d8eb1(0x158)];[_0x2d8eb1(0x1a3)];[_0x2d8eb1(0x15f)];[_0x2d8eb1(0x227)];[_0x2d8eb1(0xe4)];[_0x2d8eb1(0xd2)];[_0x2d8eb1(0x16a)];[_0x2d8eb1(0x1f8)];[_0x2d8eb1(0x25e)];[_0x2d8eb1(0x1a9)];[_0x2d8eb1(0x1f1)];[_0x2d8eb1(0x239)];[_0x2d8eb1(0x108)];[_0x2d8eb1(0x156)];[_0x2d8eb1(0x212)];[_0x2d8eb1(0xef)];[_0x2d8eb1(0x121)];[_0x2d8eb1(0x1b8)];[_0x2d8eb1(0x1f5)];[_0x2d8eb1(0x1ad)];[_0x2d8eb1(0x104)];[_0x2d8eb1(0xde)];[_0x2d8eb1(0x11c)];[_0x2d8eb1(0x24b)];[_0x2d8eb1(0x19e)];[_0x2d8eb1(0x19b)];[_0x2d8eb1(0x153)]=new NodeOperationRouter();[_0x2d8eb1(0x1a4)];[_0x2d8eb1(0xcf)];[_0x2d8eb1(0x1dd)];[_0x2d8eb1(0x10f)];[_0x2d8eb1(0x21d)]=new CommandStateStore();[_0x2d8eb1(0x238)]=new MissionRuntime(()=>undefined);[_0x2d8eb1(0x220)]=new Map();[_0x2d8eb1(0x25a)]=new Map();[_0x2d8eb1(0x257)]=new MissionMcpServer(this[_0x2d8eb1(0x238)],sessionId=>{const _0x58b75c=_0x2d8eb1,mission=this[_0x58b75c(0x238)][_0x58b75c(0x141)](sessionId),session=this[_0x58b75c(0x1d4)][_0x58b75c(0x21a)](sessionId);if(mission===undefined||session===undefined)return;if(mission[_0x58b75c(0x14d)]!==_0x58b75c(0x1ae))this[_0x58b75c(0x19e)][_0x58b75c(0x213)](sessionId);this[_0x58b75c(0x207)](session,mission);});[_0x2d8eb1(0x1c3)];[_0x2d8eb1(0x196)];[_0x2d8eb1(0x107)];[_0x2d8eb1(0x14a)]=new WorkspaceDomainState();[_0x2d8eb1(0x216)]=new WorkspaceWatchService(this[_0x2d8eb1(0x14a)],workspaceId=>this[_0x2d8eb1(0x232)][_0x2d8eb1(0x164)](workspaceId),workspaceId=>this[_0x2d8eb1(0x232)][_0x2d8eb1(0x19f)](workspaceId),workspaceId=>this[_0x2d8eb1(0x25c)]?.[_0x2d8eb1(0x13a)](workspaceId));[_0x2d8eb1(0x232)]=new WorkspaceSessionService(this[_0x2d8eb1(0x14a)],{'discover':workspaceId=>this[_0x2d8eb1(0x1fd)](workspaceId),'listPage':workspaceId=>this[_0x2d8eb1(0x249)](_0x2d8eb1(0x1f9),{'workspaceId':workspaceId,'limit':0x14}),'active':workspaceId=>this[_0x2d8eb1(0x216)][_0x2d8eb1(0x203)](workspaceId,_0x2d8eb1(0x1b1)),'invalidate':workspaceId=>void this[_0x2d8eb1(0x25c)]?.[_0x2d8eb1(0x1ba)](workspaceId,_0x2d8eb1(0x1b1)),'onPending':(workspaceId,waitMs)=>nodeLog(_0x2d8eb1(0x128),{'nodeId':this[_0x2d8eb1(0x241)]?.[_0x2d8eb1(0x22f)],'workspaceId':workspaceId,'waitMs':waitMs})});[_0x2d8eb1(0x1b6)]=new WorkspaceFileService(this[_0x2d8eb1(0x14a)],()=>this[_0x2d8eb1(0x241)]?.[_0x2d8eb1(0x22e)]??[],workspaceId=>this[_0x2d8eb1(0x13f)][_0x2d8eb1(0x183)](workspaceId));[_0x2d8eb1(0x199)]=new WorkspaceUploadService(this[_0x2d8eb1(0x14a)],workspaceId=>this[_0x2d8eb1(0x13f)][_0x2d8eb1(0x183)](workspaceId));[_0x2d8eb1(0xcd)]=new WorkspaceChangeService(this[_0x2d8eb1(0x14a)]);[_0x2d8eb1(0x25c)];[_0x2d8eb1(0xd9)];[_0x2d8eb1(0x255)]=new RecentRunProjectionService(message=>this[_0x2d8eb1(0x1e0)](_0x2d8eb1(0x1a8),message));[_0x2d8eb1(0x1d4)]=new NodeRuntimeState(()=>this[_0x2d8eb1(0x241)]?.[_0x2d8eb1(0x22f)]??_0x2d8eb1(0xee),workspaceId=>this[_0x2d8eb1(0xd9)]?.[_0x2d8eb1(0x22a)](workspaceId),Date[_0x2d8eb1(0x179)],(run,session,userMessage)=>this[_0x2d8eb1(0x255)][_0x2d8eb1(0x1f6)](run,session,userMessage));[_0x2d8eb1(0x12a)]=new NodeMetrics();[_0x2d8eb1(0x1c9)]=new RunEventService({'runtime':this[_0x2d8eb1(0x1d4)],'metrics':this[_0x2d8eb1(0x12a)],'state':this[_0x2d8eb1(0x1ed)],'isBootstrapSession':sessionId=>this[_0x2d8eb1(0x1ee)][_0x2d8eb1(0x185)][_0x2d8eb1(0x112)](sessionId),'presentSession':session=>this[_0x2d8eb1(0xe4)][_0x2d8eb1(0x115)](session),'rejectBootstrap':(sessionId,code)=>this[_0x2d8eb1(0x1ee)][_0x2d8eb1(0x21e)](sessionId,code),'emitWorkbench':(category,payload)=>{const _0x3e7f7b=_0x2d8eb1;if(category===_0x3e7f7b(0x1ce)&&isPlainRecord(payload)&&_0x3e7f7b(0xf3)in payload)this[_0x3e7f7b(0x24e)](payload[_0x3e7f7b(0xf3)]);else this[_0x3e7f7b(0x1d2)](category,payload);},'cleanupAttachments':runId=>this[_0x2d8eb1(0x1f1)][_0x2d8eb1(0x187)](runId),'expireImages':runId=>this[_0x2d8eb1(0x1f1)][_0x2d8eb1(0x248)](runId),'scheduleContextRefresh':sessionId=>this[_0x2d8eb1(0xde)][_0x2d8eb1(0x138)](sessionId),'refreshWorkspaceSessions':workspaceId=>this[_0x2d8eb1(0x25c)][_0x2d8eb1(0x1a1)](workspaceId,_0x2d8eb1(0x1b1)),'dispatchQueue':async(sessionId,delayMs=-0x1*0x188b+0xcb1+0xbda)=>{const _0x3d8cef=_0x2d8eb1;if(this[_0x3d8cef(0x107)][_0x3d8cef(0xdb)]())return;if(delayMs>-0x18d3+0x5c*0x3+0x17bf*0x1){this[_0x3d8cef(0x19e)][_0x3d8cef(0x138)](sessionId,delayMs);return;}await this[_0x3d8cef(0x19e)][_0x3d8cef(0x163)](sessionId);},'executionStarted':executionId=>this[_0x2d8eb1(0x19e)][_0x2d8eb1(0x14c)](executionId),'keepRunActive':sessionId=>(this[_0x2d8eb1(0x220)][_0x2d8eb1(0x112)](sessionId)||this[_0x2d8eb1(0x25a)][_0x2d8eb1(0x112)](sessionId))&&this[_0x2d8eb1(0x238)][_0x2d8eb1(0x141)](sessionId)?.[_0x2d8eb1(0x14d)]===_0x2d8eb1(0x1ae),'executionTerminating':(executionId,status)=>{const _0x531dcf=_0x2d8eb1,pending=this[_0x531dcf(0x19e)][_0x531dcf(0xdb)](executionId);if(pending?.[_0x531dcf(0x198)]===undefined)return;const started=this[_0x531dcf(0x19e)][_0x531dcf(0x1fb)](executionId),blocked=this[_0x531dcf(0x238)][_0x531dcf(0xf7)](pending[_0x531dcf(0x200)],status===_0x531dcf(0x21b));if(blocked){this[_0x531dcf(0x1d7)](pending[_0x531dcf(0x200)]),this[_0x531dcf(0x19e)][_0x531dcf(0x213)](pending[_0x531dcf(0x200)]);const terminalMission=this[_0x531dcf(0x238)][_0x531dcf(0x141)](pending[_0x531dcf(0x200)]),session=this[_0x531dcf(0x1d4)][_0x531dcf(0x21a)](pending[_0x531dcf(0x200)]);if(terminalMission!==undefined&&session!==undefined)this[_0x531dcf(0x207)](session,terminalMission);return;}if(status!==_0x531dcf(0x21b)||started)return;this[_0x531dcf(0x1d7)](pending[_0x531dcf(0x200)]);const retry={'sessionId':pending[_0x531dcf(0x200)],'timer':setTimeout(()=>{const _0x5bead7=_0x531dcf;this[_0x5bead7(0x220)][_0x5bead7(0x1b5)](retry[_0x5bead7(0x200)]);const mission=this[_0x5bead7(0x238)][_0x5bead7(0x141)](retry[_0x5bead7(0x200)]);if(mission?.[_0x5bead7(0x14d)]!==_0x5bead7(0x1ae)||mission['id']!==pending[_0x5bead7(0x198)]?.['id']||mission[_0x5bead7(0x17d)]!==pending[_0x5bead7(0x198)][_0x5bead7(0x17d)])return;void this[_0x5bead7(0x1f8)][_0x5bead7(0xd0)]({'sessionId':retry[_0x5bead7(0x200)],'kind':_0x5bead7(0x171),'content':this[_0x5bead7(0x238)][_0x5bead7(0x1b4)](retry[_0x5bead7(0x200)],_0x5bead7(0x171)),'deliveryIntent':_0x5bead7(0x182),'mission':{'id':mission['id'],'revision':mission[_0x5bead7(0x17d)]},'secretEnvironment':pending[_0x5bead7(0x12d)],...pending[_0x5bead7(0x169)]===undefined?{}:{'personalInstructions':pending[_0x5bead7(0x169)]}})[_0x5bead7(0x192)](()=>undefined);},0x25a0+0x1ef4+-0x9fc)};this[_0x531dcf(0x220)][_0x531dcf(0x1bb)](pending[_0x531dcf(0x200)],retry),retry[_0x531dcf(0x1c4)][_0x531dcf(0x235)]();},'releaseExecution':executionId=>{const _0x1d1827=_0x2d8eb1;this[_0x1d1827(0x257)][_0x1d1827(0x151)](executionId),this[_0x1d1827(0x19e)][_0x1d1827(0x263)](executionId);}});[_0x2d8eb1(0x247)]=new NativeSessionWatchService({'resolve':async sessionId=>this[_0x2d8eb1(0x1d4)][_0x2d8eb1(0x21a)](sessionId)??this[_0x2d8eb1(0x16d)][_0x2d8eb1(0x231)](sessionId),'managedActive':session=>hasManagedActiveRun(this[_0x2d8eb1(0x1d4)],session),'suspended':sessionId=>this[_0x2d8eb1(0x16a)][_0x2d8eb1(0x11b)](sessionId),'refreshActivity':session=>this[_0x2d8eb1(0x260)][_0x2d8eb1(0xea)](session),'present':session=>this[_0x2d8eb1(0xe4)][_0x2d8eb1(0x115)](session),'readPage':(session,limit)=>this[_0x2d8eb1(0x260)][_0x2d8eb1(0x118)](session,{'limit':limit}),'readHistoryPage':(session,limit)=>this[_0x2d8eb1(0x260)][_0x2d8eb1(0xfe)](session,{'limit':limit}),'convergePage':convergeConversationWatchPage,'composeRuntimePage':composeConversationRuntimePage,'projectInitialPage':(session,page,_unit,limit)=>{const _0x25c93f=_0x2d8eb1,context=this[_0x25c93f(0xde)][_0x25c93f(0x174)](session['id']);return this[_0x25c93f(0xde)][_0x25c93f(0x138)](session),{'kind':_0x25c93f(0x1bc),'sequence':this[_0x25c93f(0x242)][_0x25c93f(0x219)](),'session':this[_0x25c93f(0xe4)][_0x25c93f(0x115)](session),'runs':this[_0x25c93f(0x1d4)][_0x25c93f(0x127)](session['id']),'queue':this[_0x25c93f(0x19b)][_0x25c93f(0x174)](session['id']),'context':context,'conversation':this[_0x25c93f(0x158)][_0x25c93f(0x194)](session,page,limit)};},'emitSession':session=>this[_0x2d8eb1(0x24a)]({'session':session}),'emitPage':(session,page)=>this[_0x2d8eb1(0x24c)](_0x2d8eb1(0x1ce),{'sessionId':session['id'],'snapshot':this[_0x2d8eb1(0x158)][_0x2d8eb1(0x194)](session,page,0x5ab*0x3+0x20be+-0x31b5)}),'nodeId':()=>this[_0x2d8eb1(0x241)]?.[_0x2d8eb1(0x22f)]??_0x2d8eb1(0xee),'nodeGeneration':()=>this[_0x2d8eb1(0x13e)],'emitWatchEvent':payload=>this[_0x2d8eb1(0x1e0)](_0x2d8eb1(0x125),payload),'log':nodeLog});constructor(_0x2bfd3f={}){const _0x244bd9=_0x2d8eb1;this[_0x244bd9(0x241)]=_0x2bfd3f[_0x244bd9(0x241)],this[_0x244bd9(0x1d8)]=_0x2bfd3f[_0x244bd9(0x1d8)],this[_0x244bd9(0x206)]=_0x2bfd3f[_0x244bd9(0x206)]??CLAUDE_APPROVAL_TIMEOUT_MS,this[_0x244bd9(0x1a0)]=_0x2bfd3f[_0x244bd9(0x1cd)]!==undefined,this[_0x244bd9(0x1cd)]=_0x2bfd3f[_0x244bd9(0x1cd)]??unavailableCapabilities(),this[_0x244bd9(0x107)]=new NodeUpgradeCoordinator(()=>{const _0x22b4d4=_0x244bd9;if(this[_0x22b4d4(0x241)]===undefined)throw new Error(_0x22b4d4(0xdf));return nodeUpgradeRequestPath(nodeDatabasePath(this[_0x22b4d4(0x241)],this[_0x22b4d4(0x1d8)]));},()=>this[_0x244bd9(0x1ed)][_0x244bd9(0x1ae)][_0x244bd9(0x106)],_0x31f159=>{const _0x3cb4bf=_0x244bd9;this[_0x3cb4bf(0x1cd)]={...this[_0x3cb4bf(0x1cd)],'metadata':upgradeMetadata(this[_0x3cb4bf(0x1cd)][_0x3cb4bf(0x204)],_0x31f159)},this[_0x3cb4bf(0x20d)]?.[_0x3cb4bf(0x1e0)](_0x3cb4bf(0x1cd),this[_0x3cb4bf(0x1cd)]);},_0x2bfd3f[_0x244bd9(0x13c)]??(()=>{const _0x5d6996=_0x244bd9;this[_0x5d6996(0x105)](),setImmediate(()=>process[_0x5d6996(0x21c)](0x1074+-0x210b+-0x10e2*-0x1));})),this[_0x244bd9(0x1cd)]={...this[_0x244bd9(0x1cd)],'metadata':upgradeMetadata(this[_0x244bd9(0x1cd)][_0x244bd9(0x204)],this[_0x244bd9(0x107)][_0x244bd9(0x174)]())};const _0x2b2515=_0x2bfd3f[_0x244bd9(0x202)]??detectCapabilitiesAsync;this[_0x244bd9(0x202)]=async()=>{const _0x2ed64a=_0x244bd9,_0x438d38=await _0x2b2515();return{..._0x438d38,'metadata':upgradeMetadata(_0x438d38[_0x2ed64a(0x204)],this[_0x2ed64a(0x107)][_0x2ed64a(0x174)]())};},this[_0x244bd9(0x1bd)]=_0x2bfd3f[_0x244bd9(0x1bd)]??!![],this[_0x244bd9(0x134)]=_0x2bfd3f[_0x244bd9(0x134)]===undefined?undefined:new FakeTestRunner(_0x2bfd3f[_0x244bd9(0x134)]),this[_0x244bd9(0xe8)]=_0x2bfd3f[_0x244bd9(0xe8)],this[_0x244bd9(0x1f1)]=new RunAttachmentService(_0x23ceeb=>this[_0x244bd9(0x104)][_0x244bd9(0x1e6)](_0x23ceeb[_0x244bd9(0x175)])[_0x244bd9(0x23b)](_0x23ceeb)),this[_0x244bd9(0x108)]=new CodexRunner(_0x2bfd3f[_0x244bd9(0x108)],_0x2bfd3f[_0x244bd9(0x168)]),this[_0x244bd9(0x156)]=new CodexManagedRunController(this[_0x244bd9(0x108)],{'available':()=>this[_0x244bd9(0x1cd)][_0x244bd9(0x22c)][_0x244bd9(0x114)],'intercepted':()=>this[_0x244bd9(0x134)]!==undefined,'active':this[_0x244bd9(0x1ed)][_0x244bd9(0x1ae)],'addActive':_0x5281bd=>this[_0x244bd9(0x1ed)][_0x244bd9(0x1ae)][_0x244bd9(0x1ca)](_0x5281bd),'removeActive':_0x162901=>this[_0x244bd9(0x1ed)][_0x244bd9(0x1ae)][_0x244bd9(0x1b5)](_0x162901),'adopt':_0x117740=>this[_0x244bd9(0x1d4)][_0x244bd9(0x256)](_0x117740),'session':_0x526bf4=>this[_0x244bd9(0x1d4)][_0x244bd9(0x21a)](_0x526bf4),'runStatus':_0x1f525c=>this[_0x244bd9(0x1d4)][_0x244bd9(0xed)](_0x1f525c)?.[_0x244bd9(0x14d)],'run':_0x2dc754=>this[_0x244bd9(0x1d4)][_0x244bd9(0xed)](_0x2dc754),'interrupted':_0x3553a0=>this[_0x244bd9(0x1ed)][_0x244bd9(0xfc)][_0x244bd9(0x112)](_0x3553a0),'parseAttachments':parseRunnerImageAttachments,'materialize':(_0x30ad00,_0x25ccb6)=>this[_0x244bd9(0x1f1)][_0x244bd9(0x1d3)](_0x30ad00,_0x25ccb6),'completeCancelled':_0x3d3849=>this[_0x244bd9(0x1a3)][_0x244bd9(0x15e)](_0x3d3849),'promoteSession':(_0x4cc563,_0x30c0bf)=>this[_0x244bd9(0x1ee)][_0x244bd9(0x1a2)](_0x4cc563,_0x30c0bf),'send':(_0x1c0635,_0x4bf441)=>this[_0x244bd9(0x1e0)](_0x1c0635,_0x4bf441),'emit':(_0x33f6f5,_0x2d3314,_0x4643ae,_0x166b16)=>this[_0x244bd9(0x262)][_0x244bd9(0x1e4)](_0x33f6f5,_0x2d3314,_0x4643ae,_0x166b16),'cancel':(_0x21677a,_0xf4509f,_0x185631,_0x5c2160,_0x1f1127)=>this[_0x244bd9(0x1a3)][_0x244bd9(0x13b)](_0x21677a,_0xf4509f,_0x185631,_0x5c2160,_0x1f1127),'createApproval':_0x36ea76=>this[_0x244bd9(0x1d4)][_0x244bd9(0x210)](_0x36ea76),'publishApproval':_0x4449ce=>this[_0x244bd9(0x262)][_0x244bd9(0xdd)](_0x4449ce),'emitItem':(_0x22a831,_0x1c19e5)=>this[_0x244bd9(0x1fe)](_0x22a831,_0x1c19e5),'appendImages':(_0x59c425,_0x8ce28e)=>this[_0x244bd9(0x1f1)][_0x244bd9(0x1ff)](_0x59c425,_0x8ce28e[_0x244bd9(0x113)](isRunnerImageAttachment)),'syncTitle':(_0x52ffa5,_0x58fd20,_0x50a45d)=>this[_0x244bd9(0x227)][_0x244bd9(0xd6)](_0x52ffa5,_0x58fd20,_0x50a45d),'commandState':(_0x3d4e61,_0x13365c)=>this[_0x244bd9(0x21d)][_0x244bd9(0x141)](_0x3d4e61,_0x13365c),'setCommandState':(_0x2264ee,_0x9883a2)=>this[_0x244bd9(0x21d)][_0x244bd9(0x1bb)](_0x2264ee,_0x9883a2),'clearCommandState':(_0x150bf4,_0x23d616)=>this[_0x244bd9(0x21d)][_0x244bd9(0x222)](_0x150bf4,_0x23d616),'commandStates':_0x39c8cc=>this[_0x244bd9(0x21d)][_0x244bd9(0x165)](_0x39c8cc),'hasActiveSessionLease':_0x44e4ae=>this[_0x244bd9(0x1d4)][_0x244bd9(0x15b)](_0x44e4ae),'fast':_0x2e66ee=>this[_0x244bd9(0x249)](_0x244bd9(0x1d9),{'runner':_0x244bd9(0x22c),'commandId':_0x244bd9(0x176),'input':_0x2e66ee})}),this[_0x244bd9(0x108)][_0x244bd9(0x11e)](_0xfd406d=>this[_0x244bd9(0x156)][_0x244bd9(0x1ac)](_0xfd406d)),this[_0x244bd9(0x212)]=new ClaudeCodeRunner(_0x2bfd3f[_0x244bd9(0x212)]),this[_0x244bd9(0xef)]=new OpenCodeRunner(_0x2bfd3f[_0x244bd9(0xef)]),this[_0x244bd9(0x121)]=new MarAgentRunner(),this[_0x244bd9(0x1b8)]=new MarAgentManagedRunController(this[_0x244bd9(0x121)],{'active':this[_0x244bd9(0x1ed)][_0x244bd9(0x1ae)],'adopt':_0x1f29ff=>this[_0x244bd9(0x1d4)][_0x244bd9(0x256)](_0x1f29ff),'promote':(_0x5b7c2f,_0x98e334)=>this[_0x244bd9(0x1ee)][_0x244bd9(0x1a2)](_0x5b7c2f,_0x98e334),'syncTitle':(_0x3dad78,_0x2dcc58)=>this[_0x244bd9(0x227)][_0x244bd9(0xd6)](_0x3dad78,_0x3dad78,_0x2dcc58),'emit':(_0x24bd68,_0x4c0507,_0x2fc94b,_0x44e637)=>this[_0x244bd9(0x262)][_0x244bd9(0x1e4)](_0x24bd68,_0x4c0507,_0x2fc94b,_0x44e637),'emitItem':(_0x4ff86b,_0x9a00ff)=>this[_0x244bd9(0x1fe)](_0x4ff86b,_0x9a00ff),'createApproval':_0x277d30=>this[_0x244bd9(0x1d4)][_0x244bd9(0x210)](_0x277d30),'publishApproval':_0x48e3ec=>this[_0x244bd9(0x262)][_0x244bd9(0xdd)](_0x48e3ec),'run':_0x540ec4=>this[_0x244bd9(0x1d4)][_0x244bd9(0xed)](_0x540ec4),'commandState':(_0x466f37,_0x57ee99)=>this[_0x244bd9(0x21d)][_0x244bd9(0x141)](_0x466f37,_0x57ee99),'setCommandState':(_0xc93490,_0x490e35)=>this[_0x244bd9(0x21d)][_0x244bd9(0x1bb)](_0xc93490,_0x490e35),'clearCommandState':(_0x1346f3,_0x4ccea6)=>this[_0x244bd9(0x21d)][_0x244bd9(0x222)](_0x1346f3,_0x4ccea6),'commandStates':_0x339051=>this[_0x244bd9(0x21d)][_0x244bd9(0x165)](_0x339051),'webSearch':(_0x3c6353,_0x191de2)=>this[_0x244bd9(0x261)](_0x3c6353,_0x191de2)}),this[_0x244bd9(0x1f5)]=new OpenCodeManagedRunController(this[_0x244bd9(0xef)],{'intercepted':()=>this[_0x244bd9(0x134)]!==undefined,'active':this[_0x244bd9(0x1ed)][_0x244bd9(0x1ae)],'parseAttachments':parseRunnerImageAttachments,'persistAttachments':(_0x21d1bc,_0xdf3d0f,_0x3f7224)=>this[_0x244bd9(0x1f1)][_0x244bd9(0xf1)](_0x21d1bc,_0xdf3d0f+_0x244bd9(0x131),_0x3f7224),'emit':(_0x225367,_0x3acaa5,_0x5655d2,_0x2a496a)=>this[_0x244bd9(0x262)][_0x244bd9(0x1e4)](_0x225367,_0x3acaa5,_0x5655d2,_0x2a496a),'emitItem':(_0x1508cd,_0x3c398f)=>this[_0x244bd9(0x1fe)](_0x1508cd,_0x3c398f),'adopt':_0x2ffd4f=>this[_0x244bd9(0x1d4)][_0x244bd9(0x256)](_0x2ffd4f),'run':_0xefad2=>{const _0x40cdd8=_0x244bd9,_0x3788c1=this[_0x40cdd8(0x1d4)][_0x40cdd8(0xed)](_0xefad2);if(_0x3788c1===undefined)throw new Error(_0x40cdd8(0x20e));return _0x3788c1;},'hasActiveSessionLease':_0x185c25=>this[_0x244bd9(0x1d4)][_0x244bd9(0x15b)](_0x185c25),'promote':(_0x4f8368,_0xd7ef83)=>this[_0x244bd9(0x1ee)][_0x244bd9(0x1a2)](_0x4f8368,_0xd7ef83),'rememberNative':(_0x1a3b8b,_0x25d0e7)=>this[_0x244bd9(0x227)][_0x244bd9(0x221)](_0x1a3b8b,_0x25d0e7),'send':(_0x20b08a,_0x390d57)=>this[_0x244bd9(0x1e0)](_0x20b08a,_0x390d57),'createApproval':_0x211c45=>this[_0x244bd9(0x1d4)][_0x244bd9(0x210)](_0x211c45),'expireApproval':_0x27b768=>{const _0x54c4fc=_0x244bd9;this[_0x54c4fc(0x1d4)][_0x54c4fc(0x1f3)](_0x27b768);},'publishApproval':_0x2088e2=>this[_0x244bd9(0x262)][_0x244bd9(0xdd)](_0x2088e2),'commandState':(_0x39651d,_0x3a07c1)=>this[_0x244bd9(0x21d)][_0x244bd9(0x141)](_0x39651d,_0x3a07c1),'setCommandState':(_0x2969fa,_0x21207c)=>this[_0x244bd9(0x21d)][_0x244bd9(0x1bb)](_0x2969fa,_0x21207c),'clearCommandState':(_0x1ddc36,_0x3be1e8)=>this[_0x244bd9(0x21d)][_0x244bd9(0x222)](_0x1ddc36,_0x3be1e8),'commandStates':_0x32274f=>this[_0x244bd9(0x21d)][_0x244bd9(0x165)](_0x32274f)},this[_0x244bd9(0x206)]),this[_0x244bd9(0x1ad)]=new ClaudeManagedRunController(this[_0x244bd9(0x212)],{'intercepted':()=>this[_0x244bd9(0x134)]!==undefined,'active':this[_0x244bd9(0x1ed)][_0x244bd9(0x1ae)],'parseAttachments':parseRunnerImageAttachments,'emit':(_0x37e13f,_0x19d635,_0x29a58f,_0x3cd945)=>this[_0x244bd9(0x262)][_0x244bd9(0x1e4)](_0x37e13f,_0x19d635,_0x29a58f,_0x3cd945),'adopt':_0x28808e=>this[_0x244bd9(0x1d4)][_0x244bd9(0x256)](_0x28808e),'run':_0x4f5fba=>this[_0x244bd9(0x1d4)][_0x244bd9(0xed)](_0x4f5fba),'hasActiveSessionLease':_0x4f0a83=>this[_0x244bd9(0x1d4)][_0x244bd9(0x15b)](_0x4f0a83),'session':_0x361710=>this[_0x244bd9(0x1d4)][_0x244bd9(0x21a)](_0x361710),'completeCancelled':_0x34c423=>this[_0x244bd9(0x1a3)][_0x244bd9(0x15e)](_0x34c423),'requestUserInput':(_0x38ce02,_0x3480ce,_0x429af7)=>this[_0x244bd9(0x1a3)][_0x244bd9(0x10b)](_0x38ce02,_0x3480ce,_0x429af7),'requestApproval':(_0x2033ec,_0x44154c,_0x251437)=>this[_0x244bd9(0x1a3)][_0x244bd9(0x21f)](_0x2033ec,_0x44154c,_0x251437),'rememberNative':(_0x112646,_0x2218d7)=>this[_0x244bd9(0x227)][_0x244bd9(0x221)](_0x112646,_0x2218d7),'promote':(_0x234035,_0xda53ab)=>this[_0x244bd9(0x1ee)][_0x244bd9(0x1a2)](_0x234035,_0xda53ab),'send':(_0xb7ab4,_0x4487d4)=>this[_0x244bd9(0x1e0)](_0xb7ab4,_0x4487d4),'emitItem':(_0x3f967e,_0x19b82f)=>this[_0x244bd9(0x1fe)](_0x3f967e,_0x19b82f),'syncTitle':(_0x161a09,_0x337d8d,_0x535189)=>this[_0x244bd9(0x227)][_0x244bd9(0xd6)](_0x161a09,_0x337d8d,_0x535189),'setChannelToken':(_0x201606,_0x6c11cb)=>this[_0x244bd9(0x1d4)][_0x244bd9(0x223)](_0x201606,_0x6c11cb),'commandState':(_0x39d7b1,_0x1e926b)=>this[_0x244bd9(0x21d)][_0x244bd9(0x141)](_0x39d7b1,_0x1e926b),'setCommandState':(_0x1f835a,_0x58d84b)=>this[_0x244bd9(0x21d)][_0x244bd9(0x1bb)](_0x1f835a,_0x58d84b),'clearCommandState':(_0x5b80d2,_0x21711e)=>this[_0x244bd9(0x21d)][_0x244bd9(0x222)](_0x5b80d2,_0x21711e),'commandStates':_0x92b8df=>this[_0x244bd9(0x21d)][_0x244bd9(0x165)](_0x92b8df)}),this[_0x244bd9(0x104)]=new RunnerRegistry([this[_0x244bd9(0xef)],this[_0x244bd9(0x121)],this[_0x244bd9(0x108)],this[_0x244bd9(0x212)],...this[_0x244bd9(0x134)]===undefined?[]:[this[_0x244bd9(0x134)]]]),this[_0x244bd9(0x227)]=new ManagedRunnerSessionService(this[_0x244bd9(0x1d4)],this[_0x244bd9(0x104)],_0x4eb6dc=>this[_0x244bd9(0x24a)]({'session':this[_0x244bd9(0xe4)][_0x244bd9(0x115)](_0x4eb6dc)})),this[_0x244bd9(0x1a3)]=new RunnerInteractionService({'runtime':this[_0x244bd9(0x1d4)],'state':this[_0x244bd9(0x1ed)],'codex':()=>this[_0x244bd9(0x108)],'claude':()=>this[_0x244bd9(0x212)],'runners':this[_0x244bd9(0x104)],'emitRun':(_0x267d2c,_0x5d8439,_0x2e68ca,_0x316183)=>this[_0x244bd9(0x262)][_0x244bd9(0x1e4)](_0x267d2c,_0x5d8439,_0x2e68ca,_0x316183),'emitItem':(_0x518fee,_0x5167a6)=>this[_0x244bd9(0x1fe)](_0x518fee,_0x5167a6),'approvalTimeoutMs':this[_0x244bd9(0x206)],'publishApproval':_0x5968a4=>this[_0x244bd9(0x262)][_0x244bd9(0xdd)](_0x5968a4)}),this[_0x244bd9(0x15f)]=new RunnerChannelMessageService({'interactions':this[_0x244bd9(0x1a3)],'send':(_0x1c864f,_0x4ce057,_0x1fa578)=>this[_0x244bd9(0x1e0)](_0x1c864f,_0x4ce057,_0x1fa578)}),this[_0x244bd9(0xe4)]=new SessionPresentationService({'database':()=>this[_0x244bd9(0xd9)],'runtime':this[_0x244bd9(0x1d4)],'commands':this[_0x244bd9(0x21d)],'runners':this[_0x244bd9(0x104)],'capabilities':()=>this[_0x244bd9(0x1cd)],'hasManagedActiveRun':_0x50b5da=>hasManagedActiveRun(this[_0x244bd9(0x1d4)],_0x50b5da),'externalActivity':_0x231767=>this[_0x244bd9(0x250)][_0x244bd9(0x14f)][_0x244bd9(0x141)](_0x231767),'projectionForNative':_0x2790ba=>this[_0x244bd9(0x16d)][_0x244bd9(0x189)](_0x2790ba)}),this[_0x244bd9(0x16d)]=new NativeSessionProjectionService({'database':()=>this[_0x244bd9(0xd9)],'nodeId':()=>this[_0x244bd9(0x241)]?.[_0x244bd9(0x22f)]??_0x244bd9(0x11d),'runtime':this[_0x244bd9(0x1d4)],'runners':this[_0x244bd9(0x104)],'capabilities':()=>this[_0x244bd9(0x1cd)],'state':this[_0x244bd9(0x250)],'commands':this[_0x244bd9(0x21d)],'present':_0x2a1398=>this[_0x244bd9(0xe4)][_0x244bd9(0x115)](_0x2a1398)}),this[_0x244bd9(0x260)]=new ConversationHistoryService({'runtime':this[_0x244bd9(0x1d4)],'runners':this[_0x244bd9(0x104)],'capabilities':()=>this[_0x244bd9(0x1cd)],'attachments':this[_0x244bd9(0x1f1)],'snapshotSequence':()=>this[_0x244bd9(0x242)][_0x244bd9(0x219)](),'hasManagedActiveRun':_0x38b938=>hasManagedActiveRun(this[_0x244bd9(0x1d4)],_0x38b938),'setExternalActivity':(_0x71b1d2,_0x4e2412)=>this[_0x244bd9(0x250)][_0x244bd9(0x14f)][_0x244bd9(0x1bb)](_0x71b1d2,_0x4e2412)}),this[_0x244bd9(0x158)]=new ConversationSegmentService((_0x5ea302,_0x251abd)=>this[_0x244bd9(0x260)][_0x244bd9(0x118)](_0x5ea302,_0x251abd)),this[_0x244bd9(0xde)]=new SessionContextService({'runners':this[_0x244bd9(0x104)],'session':_0x3ff3b9=>this[_0x244bd9(0x1d4)][_0x244bd9(0x21a)](_0x3ff3b9),'stopped':()=>this[_0x244bd9(0x205)],'publish':_0x2eb6a4=>this[_0x244bd9(0x24a)](_0x2eb6a4)}),this[_0x244bd9(0x11c)]=new RunWorkbenchService({'runtime':this[_0x244bd9(0x1d4)],'readImage':async(_0x37d8fe,_0x1748e9)=>this[_0x244bd9(0x1f1)][_0x244bd9(0x118)](_0x37d8fe,_0x1748e9)??await this[_0x244bd9(0x1f1)][_0x244bd9(0x259)](_0x37d8fe,_0x1748e9),'respondUserInput':(_0x1ff1ba,_0x592e3e,_0x21dac0)=>this[_0x244bd9(0x1a3)][_0x244bd9(0x229)](_0x1ff1ba,_0x592e3e,_0x21dac0),'pauseQueue':_0xb2d541=>this[_0x244bd9(0x19b)][_0x244bd9(0x15a)](_0xb2d541),'emitRun':(_0x8ddb04,_0x3f70f3,_0x5cd63e,_0x51ce69)=>this[_0x244bd9(0x262)][_0x244bd9(0x1e4)](_0x8ddb04,_0x3f70f3,_0x5cd63e,_0x51ce69),'control':(_0x30851c,_0x190f11)=>this[_0x244bd9(0xe2)][_0x244bd9(0x230)](JSON[_0x244bd9(0x1b3)](createEnvelope(_0x30851c,_0x190f11))),'markInterrupted':_0x3bbd55=>this[_0x244bd9(0x1ed)][_0x244bd9(0xfc)][_0x244bd9(0x1ca)](_0x3bbd55)}),this[_0x244bd9(0x24b)]=new SessionQueryService({'runtime':this[_0x244bd9(0x1d4)],'runners':this[_0x244bd9(0x104)],'resolve':_0x5af00a=>this[_0x244bd9(0x16d)][_0x244bd9(0x1cf)](_0x5af00a),'present':_0x5efdb8=>this[_0x244bd9(0xe4)][_0x244bd9(0x115)](_0x5efdb8),'history':(_0xfc9abb,_0x517266)=>this[_0x244bd9(0x260)][_0x244bd9(0x118)](_0xfc9abb,_0x517266),'segments':(_0x436314,_0x1bd870)=>this[_0x244bd9(0x158)][_0x244bd9(0x118)](_0x436314,_0x1bd870),'context':this[_0x244bd9(0xde)],'discover':(_0x5e8de9,_0x3ce91b)=>this[_0x244bd9(0x16d)][_0x244bd9(0x100)](_0x5e8de9,_0x3ce91b),'workspaceIdForCwd':_0x3a22c8=>this[_0x244bd9(0xd9)]?.[_0x244bd9(0x18a)]()[_0x244bd9(0x1c2)](_0x3d77cd=>_0x3d77cd[_0x244bd9(0x228)]===_0x3a22c8)?.['id']}),this[_0x244bd9(0x19e)]=new ContinuousRunCoordinator({'runtime':this[_0x244bd9(0x1d4)],'emitQueue':(_0x19a698,_0x254922)=>this[_0x244bd9(0x262)][_0x244bd9(0x11a)](_0x19a698,_0x254922),'clearImages':_0x4c6721=>this[_0x244bd9(0x1f1)][_0x244bd9(0x222)](_0x4c6721),'cleanupAttachments':_0x2aeaa0=>this[_0x244bd9(0x1f1)][_0x244bd9(0x187)](_0x2aeaa0),'migrateAssets':(_0x264832,_0x1bd7e7)=>this[_0x244bd9(0x1f1)][_0x244bd9(0x1dc)](_0x264832,_0x1bd7e7),'emitRun':(_0x208aa4,_0xa63a4d,_0xb1dd44,_0x4da956)=>this[_0x244bd9(0x262)][_0x244bd9(0x1e4)](_0x208aa4,_0xa63a4d,_0xb1dd44,_0x4da956),'emitConversation':_0x2fec38=>this[_0x244bd9(0x24e)](_0x2fec38),'control':(_0x1e0e65,_0x4ced8a)=>this[_0x244bd9(0xe2)][_0x244bd9(0x230)](JSON[_0x244bd9(0x1b3)](createEnvelope(_0x1e0e65,_0x4ced8a))),'stopped':()=>this[_0x244bd9(0x205)],'markInterrupted':_0x43e802=>this[_0x244bd9(0x1ed)][_0x244bd9(0xfc)][_0x244bd9(0x1ca)](_0x43e802),'mcps':_0x33d445=>this[_0x244bd9(0xd9)]?.[_0x244bd9(0x10d)](_0x33d445)??[],'afterExecutionStarted':async _0x480e22=>{const _0x4949e5=_0x244bd9;if(_0x480e22[_0x4949e5(0x198)]===undefined)return;const _0x49c357=this[_0x4949e5(0x238)][_0x4949e5(0x141)](_0x480e22[_0x4949e5(0x200)]);if(_0x49c357?.[_0x4949e5(0x14d)]!==_0x4949e5(0x1ae)||_0x49c357['id']!==_0x480e22[_0x4949e5(0x198)]['id']||_0x49c357[_0x4949e5(0x17d)]!==_0x480e22[_0x4949e5(0x198)][_0x4949e5(0x17d)])return;const _0x379eea=this[_0x4949e5(0x238)][_0x4949e5(0x1ea)](_0x480e22[_0x4949e5(0x200)]),_0x1072cb=this[_0x4949e5(0x1d4)][_0x4949e5(0x21a)](_0x480e22[_0x4949e5(0x200)]);if(_0x379eea!==undefined&&_0x1072cb!==undefined)this[_0x4949e5(0x207)](_0x1072cb,_0x379eea);await this[_0x4949e5(0x188)]({'sessionId':_0x480e22[_0x4949e5(0x200)],'mission':{'id':_0x49c357['id'],'revision':_0x49c357[_0x4949e5(0x17d)]},'secretEnvironment':_0x480e22[_0x4949e5(0x12d)],..._0x480e22[_0x4949e5(0x169)]===undefined?{}:{'personalInstructions':_0x480e22[_0x4949e5(0x169)]}});},'missionMcp':async _0x30ab65=>{const _0x153ab4=_0x244bd9;if(_0x30ab65[_0x153ab4(0x198)]===undefined)throw new Error(_0x153ab4(0x170));const _0x4e71ec=await this[_0x153ab4(0x257)][_0x153ab4(0x109)]({'executionId':_0x30ab65[_0x153ab4(0x19c)],'sessionId':_0x30ab65[_0x153ab4(0x200)],'missionId':_0x30ab65[_0x153ab4(0x198)]['id'],'revision':_0x30ab65[_0x153ab4(0x198)][_0x153ab4(0x17d)]});return{'installation':{'targetKind':_0x153ab4(0x142),'targetId':_0x30ab65[_0x153ab4(0x116)],'catalogEntryId':_0x153ab4(0x252),'serverName':_0x153ab4(0x177),'displayName':_0x153ab4(0x243),'version':_0x153ab4(0x1ab),'enabled':!![],'runtime':{'transport':_0x153ab4(0x253),'url':_0x153ab4(0x1a7),'headers':{}},'configuration':_0x4e71ec[_0x153ab4(0x109)],'installedAt':Date[_0x153ab4(0x179)](),..._0x4e71ec[_0x153ab4(0x109)]},'secrets':_0x4e71ec[_0x153ab4(0x226)]};}}),this[_0x244bd9(0x19b)]=new WorkspaceQueueWorkbenchService({'runtime':this[_0x244bd9(0x1d4)],'coordinator':this[_0x244bd9(0x19e)],'emit':(_0x1bdd82,_0x19a5ef)=>this[_0x244bd9(0x262)][_0x244bd9(0x11a)](_0x1bdd82,_0x19a5ef),'prepareInput':(_0x3785a8,_0x42d2f0,_0x36867d)=>this[_0x244bd9(0x104)][_0x244bd9(0x1e6)](_0x3785a8)[_0x244bd9(0x1cb)](_0x42d2f0,_0x36867d)}),this[_0x244bd9(0x1ee)]=new SessionIdentityService({'runtime':this[_0x244bd9(0x1d4)],'persist':(_0x2b9ec1,_0x187461)=>{const _0x582749=_0x244bd9;if(_0x2b9ec1[_0x582749(0x264)]===null||_0x2b9ec1[_0x582749(0x244)]===null||_0x2b9ec1[_0x582749(0x129)]===null)return;this[_0x582749(0xd9)]?.[_0x582749(0x18e)]({'runner':_0x2b9ec1[_0x582749(0x175)],'externalSessionId':_0x187461,'workspaceId':_0x2b9ec1[_0x582749(0x116)],'model':_0x2b9ec1[_0x582749(0x264)],'effort':_0x2b9ec1[_0x582749(0x244)],'access':_0x2b9ec1[_0x582749(0x129)]});},'migrateCommands':(_0x55966d,_0xa7166b)=>this[_0x244bd9(0x21d)][_0x244bd9(0x146)](_0x55966d,_0xa7166b),'migrateMission':(_0x3725d1,_0x3d1348)=>{const _0x2ea605=_0x244bd9;this[_0x2ea605(0x238)][_0x2ea605(0x16c)](_0x3725d1,_0x3d1348),this[_0x2ea605(0x257)][_0x2ea605(0x16c)](_0x3725d1,_0x3d1348);const _0x15a541=this[_0x2ea605(0x220)][_0x2ea605(0x141)](_0x3725d1);_0x15a541!==undefined&&(this[_0x2ea605(0x220)][_0x2ea605(0x1b5)](_0x3725d1),_0x15a541[_0x2ea605(0x200)]=_0x3d1348,this[_0x2ea605(0x220)][_0x2ea605(0x1bb)](_0x3d1348,_0x15a541));const _0x20c94d=this[_0x2ea605(0x25a)][_0x2ea605(0x141)](_0x3725d1);_0x20c94d!==undefined&&(this[_0x2ea605(0x25a)][_0x2ea605(0x1b5)](_0x3725d1),this[_0x2ea605(0x25a)][_0x2ea605(0x1bb)](_0x3d1348,_0x20c94d));},'migrateQueue':(_0x1fd758,_0x3a4fca)=>this[_0x244bd9(0x19e)][_0x244bd9(0x16c)](_0x1fd758,_0x3a4fca),'migrateRunnerState':(_0x486b50,_0x589b66)=>this[_0x244bd9(0x262)][_0x244bd9(0x254)](_0x486b50,_0x589b66),'emitSession':_0x45e505=>this[_0x244bd9(0x24a)]({'session':_0x45e505}),'emitRun':_0x3f6fcd=>this[_0x244bd9(0x24c)](_0x244bd9(0x258),{'run':_0x3f6fcd}),'emitQueue':_0x2cfcae=>this[_0x244bd9(0x19e)][_0x244bd9(0x208)](_0x2cfcae),'emitTurn':_0x390de3=>this[_0x244bd9(0x24e)](_0x390de3)}),this[_0x244bd9(0xd2)]=new SessionLifecycleService({'database':()=>{const _0xb78e2d=_0x244bd9;if(this[_0xb78e2d(0xd9)]===undefined)throw new Error(_0xb78e2d(0x236));return this[_0xb78e2d(0xd9)];},'runtime':this[_0x244bd9(0x1d4)],'runners':this[_0x244bd9(0x104)],'projection':this[_0x244bd9(0x16d)],'identity':this[_0x244bd9(0x1ee)],'present':_0x1bfff4=>this[_0x244bd9(0xe4)][_0x244bd9(0x115)](_0x1bfff4),'emitSession':_0x3db6a6=>this[_0x244bd9(0x24a)]({'session':this[_0x244bd9(0xe4)][_0x244bd9(0x115)](_0x3db6a6)}),'execute':(_0x1df645,_0x32a7b5)=>this[_0x244bd9(0x249)](_0x1df645,_0x32a7b5),'interceptedSessionId':_0x22e7ae=>this[_0x244bd9(0x134)]===undefined?undefined:_0x244bd9(0xda)+_0x22e7ae}),this[_0x244bd9(0x16a)]=new ExternalSessionResumeService({'runtime':this[_0x244bd9(0x1d4)],'runners':this[_0x244bd9(0x104)],'state':this[_0x244bd9(0x250)],'available':_0x49b195=>this[_0x244bd9(0x104)][_0x244bd9(0x1e6)](_0x49b195)[_0x244bd9(0x114)](this[_0x244bd9(0x1cd)]),'projectionFor':_0x331457=>this[_0x244bd9(0x16d)][_0x244bd9(0x189)](_0x331457),'managedAliasFor':_0x144aef=>this[_0x244bd9(0x16d)][_0x244bd9(0x137)](_0x144aef),'ensureConfiguration':_0x429aa5=>this[_0x244bd9(0x16d)][_0x244bd9(0x111)](_0x429aa5),'configuration':_0x5b43e1=>this[_0x244bd9(0x16d)][_0x244bd9(0x136)](_0x5b43e1),'workspacePath':_0x56a4d6=>this[_0x244bd9(0xd9)]?.[_0x244bd9(0x22a)](_0x56a4d6)?.[_0x244bd9(0x228)],'rememberNative':(_0x197f16,_0xf438e6)=>this[_0x244bd9(0x227)][_0x244bd9(0x221)](_0x197f16,_0xf438e6),'stage':_0x153fec=>{const _0x4861ab=_0x244bd9,_0x324793=this[_0x4861ab(0x16d)][_0x4861ab(0x136)](_0x153fec);return this[_0x4861ab(0x1d4)][_0x4861ab(0x12b)]({'workspaceId':_0x153fec[_0x4861ab(0x116)],'runner':_0x153fec[_0x4861ab(0x175)],'externalSessionId':_0x153fec[_0x4861ab(0x1da)]??_0x153fec['id'],'nativeControl':_0x4861ab(0x20b),'cwd':_0x153fec[_0x4861ab(0x155)],'model':_0x324793[_0x4861ab(0x264)],'effort':_0x324793[_0x4861ab(0x244)],'access':_0x324793[_0x4861ab(0x129)],..._0x153fec[_0x4861ab(0x1a6)]===null?{}:{'title':_0x153fec[_0x4861ab(0x1a6)]},..._0x153fec[_0x4861ab(0x16e)]===null?{}:{'customTitle':_0x153fec[_0x4861ab(0x16e)]}});},'resolve':_0x5bd687=>this[_0x244bd9(0x16d)][_0x244bd9(0x1cf)](_0x5bd687)}),this[_0x244bd9(0x1a9)]=new SessionCommandService({'runtime':this[_0x244bd9(0x1d4)],'runners':this[_0x244bd9(0x104)],'projection':this[_0x244bd9(0x16d)],'resume':this[_0x244bd9(0x16a)],'profiles':()=>this[_0x244bd9(0x1a4)][_0x244bd9(0xe6)](),'present':_0x106c70=>this[_0x244bd9(0xe4)][_0x244bd9(0x115)](_0x106c70),'resumeQueueAfterCommandRun':_0x2bf610=>this[_0x244bd9(0x19b)][_0x244bd9(0x1aa)](_0x2bf610),'beginMission':_0xbbc359=>{const _0x4f1583=_0x244bd9,_0x1ef153=this[_0x4f1583(0x21d)][_0x4f1583(0x141)](_0xbbc359['id'],_0x4f1583(0x198));if(_0x1ef153?.[_0x4f1583(0x1ae)]===!![])return{'session':this[_0x4f1583(0xe4)][_0x4f1583(0x115)](_0xbbc359),'missionAlreadyActive':!![]};_0x1ef153!==undefined&&(this[_0x4f1583(0x238)][_0x4f1583(0x222)](_0xbbc359['id']),this[_0x4f1583(0x21d)][_0x4f1583(0x222)](_0xbbc359['id'],_0x4f1583(0x198)));const _0x5c1893=this[_0x4f1583(0x143)](_0xbbc359);return this[_0x4f1583(0x19e)][_0x4f1583(0x133)](_0xbbc359['id']),this[_0x4f1583(0x21d)][_0x4f1583(0x1bb)](_0xbbc359['id'],this[_0x4f1583(0xfb)]()),this[_0x4f1583(0x24c)](_0x4f1583(0x17c),{'session':this[_0x4f1583(0xe4)][_0x4f1583(0x115)](_0x5c1893[_0x4f1583(0x17c)])}),{'session':this[_0x4f1583(0xe4)][_0x4f1583(0x115)](_0x5c1893[_0x4f1583(0x17c)]),'missionAccessChanged':_0x5c1893[_0x4f1583(0x1d5)]};},'mission':async({session:_0x24d9a0,objective:_0x8799ce,secretEnvironment:_0x1f67bc,personalInstructions:_0x1a65a9})=>{const _0x511b20=_0x244bd9;this[_0x511b20(0x1d7)](_0x24d9a0['id']);const _0x354bf9=this[_0x511b20(0x143)](_0x24d9a0),_0x207f8f=_0x354bf9[_0x511b20(0x17c)],_0x6843ed=this[_0x511b20(0x238)][_0x511b20(0x141)](_0x24d9a0['id'])?.[_0x511b20(0x14d)]===_0x511b20(0x1ae);this[_0x511b20(0x19e)][_0x511b20(0x213)](_0x24d9a0['id']);const _0x96efbe=this[_0x511b20(0x238)][_0x511b20(0xd1)](_0x24d9a0['id'],_0x8799ce);this[_0x511b20(0x207)](_0x207f8f,_0x96efbe);const _0xad4c71=await this[_0x511b20(0x1f8)][_0x511b20(0xd0)]({'sessionId':_0x24d9a0['id'],'kind':_0x511b20(0xd1),'content':this[_0x511b20(0x238)][_0x511b20(0x1b4)](_0x24d9a0['id'],_0x511b20(0xd1)),'deliveryIntent':_0x6843ed?_0x511b20(0x172):_0x511b20(0x182),'mission':{'id':_0x96efbe['id'],'revision':_0x96efbe[_0x511b20(0x17d)]},'secretEnvironment':_0x1f67bc,..._0x1a65a9===undefined?{}:{'personalInstructions':_0x1a65a9}});return{...isPlainRecord(_0xad4c71)?_0xad4c71:{'result':_0xad4c71},'missionAccessChanged':_0x354bf9[_0x511b20(0x1d5)]};},'clearMission':_0x18da07=>{const _0x10ddf5=_0x244bd9;return this[_0x10ddf5(0x1d7)](_0x18da07['id']),this[_0x10ddf5(0x238)][_0x10ddf5(0x222)](_0x18da07['id']),this[_0x10ddf5(0x19e)][_0x10ddf5(0x213)](_0x18da07['id']),this[_0x10ddf5(0x11f)](_0x18da07['id'],_0x10ddf5(0x1e9)),this[_0x10ddf5(0x21d)][_0x10ddf5(0x222)](_0x18da07['id'],_0x10ddf5(0x198)),this[_0x10ddf5(0x24c)](_0x10ddf5(0x17c),{'session':this[_0x10ddf5(0xe4)][_0x10ddf5(0x115)](_0x18da07)}),{'session':this[_0x10ddf5(0xe4)][_0x10ddf5(0x115)](_0x18da07),'cleared':!![]};}}),this[_0x244bd9(0x1f8)]=new SessionMessageService({'runtime':this[_0x244bd9(0x1d4)],'uploads':this[_0x244bd9(0x199)],'attachments':this[_0x244bd9(0x1f1)],'commands':this[_0x244bd9(0x21d)],'coordinator':this[_0x244bd9(0x19e)],'runners':this[_0x244bd9(0x104)],'resolve':_0x347a2b=>this[_0x244bd9(0x16a)][_0x244bd9(0x1c6)](_0x347a2b),'present':_0x3dfbd9=>this[_0x244bd9(0xe4)][_0x244bd9(0x115)](_0x3dfbd9),'emitSession':_0x2adb70=>this[_0x244bd9(0x24a)]({'session':this[_0x244bd9(0xe4)][_0x244bd9(0x115)](_0x2adb70)}),'channelToken':_0x3d98a8=>{const _0x476d4d=_0x244bd9,_0x5f0113=this[_0x476d4d(0x1d4)][_0x476d4d(0x21a)](_0x3d98a8);return _0x5f0113?.[_0x476d4d(0x119)]??undefined;},'missionMessage':(_0xb44b45,_0xd6adaa)=>{const _0x52eb7c=_0x244bd9,_0xd5b57c=this[_0x52eb7c(0x21d)][_0x52eb7c(0x141)](_0xb44b45['id'],_0x52eb7c(0x198));if(_0xd5b57c?.[_0x52eb7c(0x1ae)]!==!![])return undefined;const _0x1aedee=this[_0x52eb7c(0x238)][_0x52eb7c(0x141)](_0xb44b45['id']);if(_0x1aedee?.[_0x52eb7c(0x14d)]===_0x52eb7c(0x1ae))return{'runnerContent':_0xd6adaa,'mission':{'id':_0x1aedee['id'],'revision':_0x1aedee[_0x52eb7c(0x17d)]},'activated':![]};const _0x1ec5b7=this[_0x52eb7c(0x238)][_0x52eb7c(0xd1)](_0xb44b45['id'],_0xd6adaa);return this[_0x52eb7c(0x207)](_0xb44b45,_0x1ec5b7),{'runnerContent':this[_0x52eb7c(0x238)][_0x52eb7c(0x1b4)](_0xb44b45['id'],_0x52eb7c(0xd1)),'mission':{'id':_0x1ec5b7['id'],'revision':_0x1ec5b7[_0x52eb7c(0x17d)]},'activated':!![]};},'prepareMissionInsertion':(_0x3f463f,_0x2c2c69)=>this[_0x244bd9(0x19e)][_0x244bd9(0x133)](_0x3f463f,_0x2c2c69),'missionPreparationFailed':(_0x14a9ab,_0x237186,_0x4ee940)=>{const _0x4b3cda=_0x244bd9;if(!_0x4ee940)return;const _0x4d6277=this[_0x4b3cda(0x238)][_0x4b3cda(0x141)](_0x14a9ab['id']);if(_0x4d6277?.['id']!==_0x237186['id']||_0x4d6277[_0x4b3cda(0x17d)]!==_0x237186[_0x4b3cda(0x17d)])return;this[_0x4b3cda(0x238)][_0x4b3cda(0x222)](_0x14a9ab['id']),this[_0x4b3cda(0x11f)](_0x14a9ab['id'],_0x4b3cda(0x21b)),this[_0x4b3cda(0x21d)][_0x4b3cda(0x1bb)](_0x14a9ab['id'],this[_0x4b3cda(0xfb)]()),this[_0x4b3cda(0x24c)](_0x4b3cda(0x17c),{'session':this[_0x4b3cda(0xe4)][_0x4b3cda(0x115)](_0x14a9ab)});}}),this[_0x244bd9(0x25e)]=new SessionCatalogService({'database':()=>{const _0x48ed30=_0x244bd9;if(this[_0x48ed30(0xd9)]===undefined)throw new Error(_0x48ed30(0x236));return this[_0x48ed30(0xd9)];},'nodeId':()=>this[_0x244bd9(0x241)]?.[_0x244bd9(0x22f)]??_0x244bd9(0x11d),'runtime':this[_0x244bd9(0x1d4)],'runners':this[_0x244bd9(0x104)],'projection':this[_0x244bd9(0x16d)],'resume':this[_0x244bd9(0x16a)],'cachedNative':()=>[...this[_0x244bd9(0x250)][_0x244bd9(0x1c1)][_0x244bd9(0x24d)]()],'cachedWorkspace':_0x224c1d=>this[_0x244bd9(0x13f)][_0x244bd9(0x240)](_0x224c1d),'present':_0x592f4c=>this[_0x244bd9(0xe4)][_0x244bd9(0x115)](_0x592f4c),'projectionForNative':_0x3e3b49=>this[_0x244bd9(0x16d)][_0x244bd9(0x189)](_0x3e3b49),'nativeIds':_0x4bc729=>this[_0x244bd9(0x16d)][_0x244bd9(0x101)](_0x4bc729),'forget':(_0x4460a2,_0x46fd93)=>this[_0x244bd9(0x16d)][_0x244bd9(0x1c0)](_0x4460a2,_0x46fd93),'refreshActivity':_0xa77ee2=>this[_0x244bd9(0x260)][_0x244bd9(0xea)](_0xa77ee2),'externalActivity':_0x471e7f=>this[_0x244bd9(0x250)][_0x244bd9(0x14f)][_0x244bd9(0x141)](_0x471e7f),'history':(_0x5608f7,_0x4c016d)=>this[_0x244bd9(0x260)][_0x244bd9(0x118)](_0x5608f7,_0x4c016d),'emitSession':_0x46ea5a=>this[_0x244bd9(0x24a)]({'session':this[_0x244bd9(0xe4)][_0x244bd9(0x115)](_0x46ea5a)})}),this[_0x244bd9(0x108)][_0x244bd9(0x102)]({'start':_0x474721=>this[_0x244bd9(0x156)][_0x244bd9(0xd1)](_0x474721),'cancel':(_0x1bac55,_0x58de16)=>{const _0x1ef81c=_0x244bd9,_0x1240e1=this[_0x1ef81c(0x108)][_0x1ef81c(0x1d6)][_0x1ef81c(0x23a)][_0x1ef81c(0x141)](_0x1bac55);if(_0x1240e1?.[_0x1ef81c(0x10c)]===undefined)return![];return void this[_0x1ef81c(0x1a3)][_0x1ef81c(0x13b)](_0x1bac55,_0x1240e1[_0x1ef81c(0x209)],_0x1240e1[_0x1ef81c(0x10c)],_0x1240e1[_0x1ef81c(0x155)],_0x58de16===_0x1ef81c(0x145)?_0x1ef81c(0x173):_0x1ef81c(0x23c)),!![];},'decideApproval':_0x385d00=>this[_0x244bd9(0x1a3)][_0x244bd9(0x117)](_0x385d00[_0x244bd9(0xd3)],_0x385d00[_0x244bd9(0x148)])}),this[_0x244bd9(0x212)][_0x244bd9(0x102)]({'start':_0x2ebc47=>this[_0x244bd9(0x1ad)][_0x244bd9(0xd1)](_0x2ebc47),'cancel':(_0x40d352,_0x484339)=>this[_0x244bd9(0x1a3)][_0x244bd9(0x14b)](_0x40d352,_0x484339),'decideApproval':_0xe54851=>this[_0x244bd9(0x1a3)][_0x244bd9(0x152)](_0xe54851[_0x244bd9(0xd3)],_0xe54851[_0x244bd9(0x148)])}),this[_0x244bd9(0xef)][_0x244bd9(0x102)]({'start':_0x3aa35e=>this[_0x244bd9(0x1f5)][_0x244bd9(0xd1)](_0x3aa35e),'cancel':(_0x50b9fc,_0x1923dd)=>this[_0x244bd9(0x1f5)][_0x244bd9(0x147)](_0x50b9fc,_0x1923dd),'decideApproval':_0x3d8caf=>this[_0x244bd9(0x1f5)][_0x244bd9(0x1b2)](_0x3d8caf),'respondUserInput':(_0x2be60a,_0x3bbd83,_0x34e7f3)=>this[_0x244bd9(0x1f5)][_0x244bd9(0x229)](_0x2be60a,_0x3bbd83,_0x34e7f3)}),this[_0x244bd9(0x121)][_0x244bd9(0x102)]({'start':_0x43e4ab=>this[_0x244bd9(0x1b8)][_0x244bd9(0xd1)](_0x43e4ab),'cancel':(_0x57245c,_0x1bb6f2)=>this[_0x244bd9(0x1b8)][_0x244bd9(0x147)](_0x57245c,_0x1bb6f2),'decideApproval':_0x114dcd=>this[_0x244bd9(0x1b8)][_0x244bd9(0x1b2)](_0x114dcd),'respondUserInput':(_0x1b812e,_0x298132,_0x3c9eb1)=>this[_0x244bd9(0x1b8)][_0x244bd9(0x229)](_0x1b812e,_0x298132,_0x3c9eb1)}),this[_0x244bd9(0x108)][_0x244bd9(0x10a)]({'execute':(_0x4b0ca7,_0x776419,_0x5e0499,_0x15e8f5)=>this[_0x244bd9(0x156)][_0x244bd9(0x1e5)](_0x4b0ca7,_0x776419,_0x5e0499,_0x15e8f5)}),this[_0x244bd9(0x212)][_0x244bd9(0x10a)]({'execute':(_0x4bb9f7,_0x34ee01,_0x24142e,_0x399497)=>this[_0x244bd9(0x1ad)][_0x244bd9(0x1e5)](_0x4bb9f7,_0x34ee01,_0x24142e,_0x399497)}),this[_0x244bd9(0xef)][_0x244bd9(0x10a)]({'execute':(_0x8b3290,_0x45c3dd,_0x40a7c8,_0x5942ea)=>this[_0x244bd9(0x1f5)][_0x244bd9(0x1e5)](_0x8b3290,_0x45c3dd,_0x5942ea)}),this[_0x244bd9(0x121)][_0x244bd9(0x10a)]({'execute':(_0x4a2db5,_0x3e5075,_0x1a839e,_0x45b139)=>this[_0x244bd9(0x1b8)][_0x244bd9(0x1e5)](_0x4a2db5,_0x3e5075,_0x1a839e,_0x45b139)});const _0x103c37=this[_0x244bd9(0x134)]===undefined||this[_0x244bd9(0xe8)]===undefined?undefined:new FakeManagedRunService({'runner':this[_0x244bd9(0x134)],'script':this[_0x244bd9(0xe8)],'runners':this[_0x244bd9(0x104)],'runtime':this[_0x244bd9(0x1d4)],'state':this[_0x244bd9(0x1ed)],'emitRun':(_0x4de1dc,_0x287ced,_0x3da016,_0x1821c4)=>this[_0x244bd9(0x262)][_0x244bd9(0x1e4)](_0x4de1dc,_0x287ced,_0x3da016,_0x1821c4),'publishApproval':_0x190d91=>this[_0x244bd9(0x262)][_0x244bd9(0xdd)](_0x190d91),'disconnect':()=>this[_0x244bd9(0x20d)][_0x244bd9(0x186)](0x1a24+-0x9e1+-0x33*0x3,_0x244bd9(0x17b))});this[_0x244bd9(0x134)]?.[_0x244bd9(0x102)]({'start':_0x1db1ca=>_0x103c37?.[_0x244bd9(0xd1)](_0x1db1ca),'cancel':(_0x1fcb8e,_0x2473ca)=>_0x2473ca===_0x244bd9(0x145)?this[_0x244bd9(0x134)]?.[_0x244bd9(0x147)](_0x1fcb8e)??![]:this[_0x244bd9(0x134)]?.[_0x244bd9(0x18c)](_0x1fcb8e)??![],'decideApproval':_0x57d8c2=>this[_0x244bd9(0x134)]?.[_0x244bd9(0x1eb)](_0x57d8c2[_0x244bd9(0x19c)],_0x57d8c2[_0x244bd9(0xd3)],_0x57d8c2[_0x244bd9(0x148)])??![]}),this[_0x244bd9(0x1c3)]=_0x2bfd3f[_0x244bd9(0x1c3)]??new RunnerUsageReader(),this[_0x244bd9(0xd9)]=_0x2bfd3f[_0x244bd9(0xd9)],this[_0x244bd9(0x196)]=_0x2bfd3f[_0x244bd9(0x196)]??new TerminalManager({'platform':this[_0x244bd9(0x1cd)][_0x244bd9(0xf6)]===_0x244bd9(0x10e)?_0x244bd9(0x15c):_0x244bd9(0x1be)}),this[_0x244bd9(0x196)][_0x244bd9(0x233)](_0x3fc5d2=>this[_0x244bd9(0x13f)][_0x244bd9(0x124)](_0x3fc5d2)),this[_0x244bd9(0x239)]=new NodeTerminalChannel({'config':()=>this[_0x244bd9(0x241)],'controlConnected':()=>this[_0x244bd9(0x20d)][_0x244bd9(0x23f)](),'stopped':()=>this[_0x244bd9(0x205)],'reconnect':this[_0x244bd9(0x1bd)],'reconnectDelay':nextReconnectDelay,'manager':this[_0x244bd9(0x196)]}),this[_0x244bd9(0x20d)]=new NodeControlChannel({'config':()=>this[_0x244bd9(0x241)],'capabilities':()=>this[_0x244bd9(0x1cd)],'stopped':()=>this[_0x244bd9(0x205)],'reconnect':this[_0x244bd9(0x1bd)],'reconnectDelay':nextReconnectDelay,'onConnecting':_0x3306c3=>{const _0x4244c7=_0x244bd9;this[_0x4244c7(0x12a)][_0x4244c7(0x180)](),nodeLog(_0x4244c7(0x144),{'attempt':_0x3306c3});},'onReconnectScheduled':()=>this[_0x244bd9(0x12a)][_0x244bd9(0xff)](),'onMessage':_0x160ae0=>this[_0x244bd9(0xcc)](_0x160ae0),'onClose':(_0xab0551,_0x328c21)=>{const _0x506307=_0x244bd9;this[_0x506307(0x239)][_0x506307(0x211)]();if(_0xab0551===-0x1c*-0x1d+0x100*0xd+-0x8c&&_0x328c21===_0x506307(0x191))nodeLog(_0x506307(0x197),{'message':_0x506307(0x1e2)});if(_0xab0551===-0xba4+0x5*0x655+-0x462||_0xab0551===0x13ae+-0xa5b*-0x1+-0x1a20)void this[_0x506307(0x196)][_0x506307(0x20c)]();}}),this[_0x244bd9(0xe2)]=new NodeControlMessageService({'config':()=>this[_0x244bd9(0x241)],'register':(_0x191bcb,_0x578c04)=>this[_0x244bd9(0x122)][_0x244bd9(0x225)](_0x191bcb,_0x578c04),'connected':()=>this[_0x244bd9(0x122)][_0x244bd9(0x23f)](),'close':(_0x2829d5,_0x5f0349)=>this[_0x244bd9(0x20d)][_0x244bd9(0x186)](_0x2829d5,_0x5f0349),'inspectWorkspace':_0x56f993=>this[_0x244bd9(0x13f)][_0x244bd9(0xd7)](_0x56f993),'handleNodeRequest':_0x69c733=>this[_0x244bd9(0x12c)][_0x244bd9(0x230)](_0x69c733),'reconcileRuns':_0x3b8588=>this[_0x244bd9(0x262)][_0x244bd9(0x139)](_0x3b8588),'runners':this[_0x244bd9(0x104)],'deliverSessionChannelMessage':_0x437366=>this[_0x244bd9(0x15f)][_0x244bd9(0x230)](_0x437366),'completeUncontrolledCancellation':_0x554923=>{const _0x450a69=_0x244bd9,_0x3a6dc7=this[_0x450a69(0x1d4)][_0x450a69(0xed)](_0x554923);if(_0x3a6dc7?.[_0x450a69(0x14d)]===_0x450a69(0x25f))this[_0x450a69(0x1a3)][_0x450a69(0x15e)](_0x554923);},'send':(_0x139080,_0x3d5260,_0x1978c2)=>this[_0x244bd9(0x1e0)](_0x139080,_0x3d5260,_0x1978c2)}),this[_0x244bd9(0x12c)]=new NodeRequestService({'nodeId':()=>this[_0x244bd9(0x241)]?.[_0x244bd9(0x22f)],'databaseAvailable':()=>this[_0x244bd9(0xd9)]!==undefined,'execute':(_0x43f6a9,_0x5979ec)=>this[_0x244bd9(0x249)](_0x43f6a9,_0x5979ec),'send':(_0x19b71a,_0x540dda,_0x331ad7)=>this[_0x244bd9(0x1e0)](_0x19b71a,_0x540dda,_0x331ad7)}),this[_0x244bd9(0x13f)]=new NodeWorkspaceCoordinator({'config':()=>this[_0x244bd9(0x241)],'database':()=>this[_0x244bd9(0xd9)],'watches':this[_0x244bd9(0x216)],'sessions':this[_0x244bd9(0x232)],'changes':this[_0x244bd9(0xcd)],'emit':(_0x490b4f,_0x1e6060)=>void this[_0x244bd9(0x25c)]?.[_0x244bd9(0x1ba)](_0x490b4f,_0x1e6060),'send':(_0x2dbe0a,_0x455e61,_0x32e4e1)=>this[_0x244bd9(0x1e0)](_0x2dbe0a,_0x455e61,_0x32e4e1)}),this[_0x244bd9(0x262)]=new NodeRunEventBridge({'runtime':this[_0x244bd9(0x1d4)],'state':this[_0x244bd9(0x1ed)],'events':this[_0x244bd9(0x1c9)],'emitWorkbench':(_0x3db875,_0x373311)=>this[_0x244bd9(0x1d2)](_0x3db875,_0x373311),'queues':this[_0x244bd9(0x19b)],'codex':this[_0x244bd9(0x108)],'claude':this[_0x244bd9(0x212)],'openCode':this[_0x244bd9(0xef)],'send':(_0x379161,_0x431bb0,_0x7c1828)=>this[_0x244bd9(0x1e0)](_0x379161,_0x431bb0,_0x7c1828)}),this[_0x244bd9(0x122)]=new NodeConnectionLifecycleService({'config':()=>this[_0x244bd9(0x241)],'setConfig':_0x14cdda=>this[_0x244bd9(0x241)]=_0x14cdda,'configPath':this[_0x244bd9(0x1d8)],'capabilities':()=>this[_0x244bd9(0x1cd)],'detectCapabilities':this[_0x244bd9(0x202)],'capabilitiesProvided':this[_0x244bd9(0x1a0)],'stopped':()=>this[_0x244bd9(0x205)],'setCapabilities':_0x49c6b7=>this[_0x244bd9(0x1cd)]={..._0x49c6b7,'metadata':upgradeMetadata(_0x49c6b7[_0x244bd9(0x204)],this[_0x244bd9(0x107)][_0x244bd9(0x174)]())},'control':this[_0x244bd9(0x20d)],'terminal':this[_0x244bd9(0x239)],'metrics':this[_0x244bd9(0x12a)],'heartbeatMs':HEARTBEAT_MS,'refreshMs':CAPABILITY_REFRESH_MS,'onConnected':()=>this[_0x244bd9(0x255)][_0x244bd9(0xf4)]()});const _0x4c9530=()=>{const _0x366255=_0x244bd9;if(this[_0x366255(0xd9)]===undefined)throw new Error(_0x366255(0x236));return this[_0x366255(0xd9)];};this[_0x244bd9(0x1a4)]=new RunnerService(_0x4c9530,()=>this[_0x244bd9(0x1cd)],this[_0x244bd9(0x104)],this[_0x244bd9(0x1c3)]),this[_0x244bd9(0xcf)]=new WorkbenchManifestService({'capabilities':()=>this[_0x244bd9(0x1cd)],'runners':this[_0x244bd9(0x1a4)],'terminals':this[_0x244bd9(0x196)]}),this[_0x244bd9(0x1dd)]=new TerminalService(_0x4c9530,this[_0x244bd9(0x196)]),this[_0x244bd9(0x10f)]=new WorkspaceService(_0x4c9530,()=>{const _0x4a8544=_0x244bd9;if(this[_0x4a8544(0x241)]===undefined)throw new Error(_0x4a8544(0xdf));return this[_0x4a8544(0x241)];},this[_0x244bd9(0x1d4)],_0x3db963=>{const _0x1333d5=_0x244bd9;this[_0x1333d5(0x1b6)][_0x1333d5(0x224)](_0x3db963),this[_0x1333d5(0x13f)][_0x1333d5(0x24f)](_0x3db963),this[_0x1333d5(0x232)][_0x1333d5(0x183)](_0x3db963),this[_0x1333d5(0x13f)][_0x1333d5(0x18b)](_0x3db963);}),this[_0x244bd9(0x25c)]=new WorkspaceWorkbenchService({'requireWorkspace':_0x39ec8c=>this[_0x244bd9(0x13f)][_0x244bd9(0x1e6)](_0x39ec8c),'inspectWorkspace':_0x3bf4ba=>this[_0x244bd9(0x13f)][_0x244bd9(0x251)](_0x3bf4ba),'commitWorkspace':(_0x31608c,_0x49d7aa)=>this[_0x244bd9(0x13f)][_0x244bd9(0x18f)](_0x31608c,_0x49d7aa),'watch':this[_0x244bd9(0x216)],'files':this[_0x244bd9(0x1b6)],'uploads':this[_0x244bd9(0x199)],'changes':this[_0x244bd9(0xcd)],'listSessions':_0x291449=>this[_0x244bd9(0x249)](_0x244bd9(0x1f9),{'workspaceId':_0x291449,'limit':0x14}),'invalidate':_0x32f821=>this[_0x244bd9(0x13f)][_0x244bd9(0x183)](_0x32f821),'nodeId':()=>this[_0x244bd9(0x241)]?.[_0x244bd9(0x22f)]??_0x244bd9(0xee),'nodeGeneration':()=>this[_0x244bd9(0x13e)],'emitWatchEvent':_0x2bb198=>this[_0x244bd9(0x1e0)](_0x244bd9(0x125),_0x2bb198)}),this[_0x244bd9(0x153)][_0x244bd9(0x12f)](this[_0x244bd9(0x1a4)][_0x244bd9(0x15d)]()),this[_0x244bd9(0x153)][_0x244bd9(0x12f)](this[_0x244bd9(0x1dd)][_0x244bd9(0x15d)]()),this[_0x244bd9(0x153)][_0x244bd9(0x12f)](this[_0x244bd9(0x10f)][_0x244bd9(0x15d)]()),this[_0x244bd9(0x153)][_0x244bd9(0x12f)](this[_0x244bd9(0x25c)][_0x244bd9(0x15d)]()),this[_0x244bd9(0x153)][_0x244bd9(0x12f)](this[_0x244bd9(0x11c)][_0x244bd9(0x15d)]()),this[_0x244bd9(0x153)][_0x244bd9(0x12f)](this[_0x244bd9(0x247)][_0x244bd9(0x15d)]()),this[_0x244bd9(0x153)][_0x244bd9(0x12f)](this[_0x244bd9(0x24b)][_0x244bd9(0x15d)]()),this[_0x244bd9(0x153)][_0x244bd9(0x12f)](this[_0x244bd9(0xd2)][_0x244bd9(0x15d)]()),this[_0x244bd9(0x153)][_0x244bd9(0x12f)](this[_0x244bd9(0x1f8)][_0x244bd9(0x15d)]()),this[_0x244bd9(0x153)][_0x244bd9(0x12f)](this[_0x244bd9(0x25e)][_0x244bd9(0x15d)]()),this[_0x244bd9(0x153)][_0x244bd9(0x12f)](this[_0x244bd9(0x1a9)][_0x244bd9(0x15d)]()),this[_0x244bd9(0x153)][_0x244bd9(0x12f)](this[_0x244bd9(0x19b)][_0x244bd9(0x15d)]()),this[_0x244bd9(0x153)][_0x244bd9(0x12f)](new SkillNodeOperationService(_0x4c9530,()=>{const _0x54f9a7=_0x244bd9;if(this[_0x54f9a7(0x241)]===undefined)throw new Error(_0x54f9a7(0xdf));return this[_0x54f9a7(0x241)];})[_0x244bd9(0x15d)]()),this[_0x244bd9(0x153)][_0x244bd9(0x12f)](new McpNodeOperationService(_0x4c9530)[_0x244bd9(0x15d)]()),this[_0x244bd9(0x153)][_0x244bd9(0x225)](_0x244bd9(0x17f),()=>({'metrics':{...this[_0x244bd9(0x12a)][_0x244bd9(0x174)](),'activeRuns':this[_0x244bd9(0x1ed)][_0x244bd9(0x1ae)][_0x244bd9(0x106)],'workspaceLeases':this[_0x244bd9(0x1d4)][_0x244bd9(0xeb)]()}})),this[_0x244bd9(0x153)][_0x244bd9(0x225)](_0x244bd9(0xe1),_0x2252dd=>this[_0x244bd9(0x107)][_0x244bd9(0x1f2)](_0x2252dd)),this[_0x244bd9(0x153)][_0x244bd9(0x225)](_0x244bd9(0x193),()=>this[_0x244bd9(0x107)][_0x244bd9(0x147)]()),this[_0x244bd9(0x153)][_0x244bd9(0x225)](_0x244bd9(0x20a),async()=>({'manifest':await this[_0x244bd9(0xcf)][_0x244bd9(0x118)]()}));}async[_0x2d8eb1(0xd1)](){const _0x1caf96=_0x2d8eb1;this[_0x1caf96(0x205)]=![],this[_0x1caf96(0x241)]??=await loadNodeConfig(this[_0x1caf96(0x1d8)]),await this[_0x1caf96(0x107)][_0x1caf96(0x217)](resolve(dirname(nodeDatabasePath(this[_0x1caf96(0x241)],this[_0x1caf96(0x1d8)])),_0x1caf96(0x14e))),await assertLocalSqlitePath(nodeDatabasePath(this[_0x1caf96(0x241)],this[_0x1caf96(0x1d8)])),this[_0x1caf96(0xd9)]??=new NodeDatabase(nodeDatabasePath(this[_0x1caf96(0x241)],this[_0x1caf96(0x1d8)]),()=>this[_0x1caf96(0x241)]?.[_0x1caf96(0x22f)]??_0x1caf96(0x18d)),this[_0x1caf96(0xd9)][_0x1caf96(0x135)](),this[_0x1caf96(0x122)][_0x1caf96(0xd1)](),this[_0x1caf96(0x20d)][_0x1caf96(0x1a5)]();}[_0x2d8eb1(0x1d7)](_0x2c568e){const _0x51dd2a=_0x2d8eb1,_0x3d8c3c=this[_0x51dd2a(0x220)][_0x51dd2a(0x141)](_0x2c568e);if(_0x3d8c3c!==undefined)clearTimeout(_0x3d8c3c[_0x51dd2a(0x1c4)]);this[_0x51dd2a(0x220)][_0x51dd2a(0x1b5)](_0x2c568e),this[_0x51dd2a(0x25a)][_0x51dd2a(0x1b5)](_0x2c568e);}async[_0x2d8eb1(0x188)](_0xb01923){const _0x34610f=_0x2d8eb1,_0x3ff83c=_0xb01923[_0x34610f(0x198)]['id']+':'+_0xb01923[_0x34610f(0x198)][_0x34610f(0x17d)];this[_0x34610f(0x25a)][_0x34610f(0x1bb)](_0xb01923[_0x34610f(0x200)],_0x3ff83c);try{await this[_0x34610f(0x1f8)][_0x34610f(0xd0)]({'sessionId':_0xb01923[_0x34610f(0x200)],'kind':_0x34610f(0x171),'content':this[_0x34610f(0x238)][_0x34610f(0x1b4)](_0xb01923[_0x34610f(0x200)],_0x34610f(0x171)),'deliveryIntent':_0x34610f(0x161),'mission':_0xb01923[_0x34610f(0x198)],'secretEnvironment':_0xb01923[_0x34610f(0x12d)],..._0xb01923[_0x34610f(0x169)]===undefined?{}:{'personalInstructions':_0xb01923[_0x34610f(0x169)]}});const _0x55e261=this[_0x34610f(0x238)][_0x34610f(0x141)](_0xb01923[_0x34610f(0x200)]);if(_0x55e261?.[_0x34610f(0x14d)]!==_0x34610f(0x1ae)||_0x55e261['id']!==_0xb01923[_0x34610f(0x198)]['id']||_0x55e261[_0x34610f(0x17d)]!==_0xb01923[_0x34610f(0x198)][_0x34610f(0x17d)]){if(this[_0x34610f(0x25a)][_0x34610f(0x141)](_0xb01923[_0x34610f(0x200)])===_0x3ff83c)this[_0x34610f(0x25a)][_0x34610f(0x1b5)](_0xb01923[_0x34610f(0x200)]);return;}this[_0x34610f(0x1d7)](_0xb01923[_0x34610f(0x200)]);}catch{const _0x436bbd=this[_0x34610f(0x238)][_0x34610f(0x141)](_0xb01923[_0x34610f(0x200)]);if(_0x436bbd?.[_0x34610f(0x14d)]!==_0x34610f(0x1ae)||_0x436bbd['id']!==_0xb01923[_0x34610f(0x198)]['id']||_0x436bbd[_0x34610f(0x17d)]!==_0xb01923[_0x34610f(0x198)][_0x34610f(0x17d)]){if(this[_0x34610f(0x25a)][_0x34610f(0x141)](_0xb01923[_0x34610f(0x200)])===_0x3ff83c)this[_0x34610f(0x25a)][_0x34610f(0x1b5)](_0xb01923[_0x34610f(0x200)]);return;}const _0x1d806f=(_0xb01923[_0x34610f(0x1b7)]??-0x1d8b+0x1*0x1ce5+0x2*0x53)+(-0x1*-0xa93+0x4e*0x15+-0x10f8),_0x4ed60e=this[_0x34610f(0x1d4)][_0x34610f(0x21a)](_0xb01923[_0x34610f(0x200)]);if(_0x1d806f>0x2710+-0x36d*-0xa+0x17f*-0x31||_0x4ed60e===undefined){this[_0x34610f(0x1d7)](_0xb01923[_0x34610f(0x200)]);if(_0x1d806f>-0x9*0xc5+-0x1*0xf29+0x1619){const _0x3b045d=this[_0x34610f(0x238)][_0x34610f(0x1ec)](_0xb01923[_0x34610f(0x200)],_0xb01923[_0x34610f(0x198)]['id'],_0xb01923[_0x34610f(0x198)][_0x34610f(0x17d)]);this[_0x34610f(0x19e)][_0x34610f(0x213)](_0xb01923[_0x34610f(0x200)]),this[_0x34610f(0x11f)](_0xb01923[_0x34610f(0x200)],_0x34610f(0x21b));if(_0x4ed60e!==undefined)this[_0x34610f(0x207)](_0x4ed60e,_0x3b045d);}return;}this[_0x34610f(0x1d7)](_0xb01923[_0x34610f(0x200)]);const _0x23ed1f={'sessionId':_0xb01923[_0x34610f(0x200)],'timer':setTimeout(()=>{const _0x426d23=_0x34610f,_0x25e9e5=this[_0x426d23(0x238)][_0x426d23(0x141)](_0x23ed1f[_0x426d23(0x200)]);if(_0x25e9e5?.[_0x426d23(0x14d)]!==_0x426d23(0x1ae)||_0x25e9e5['id']!==_0xb01923[_0x426d23(0x198)]['id']||_0x25e9e5[_0x426d23(0x17d)]!==_0xb01923[_0x426d23(0x198)][_0x426d23(0x17d)])return;void this[_0x426d23(0x188)]({..._0xb01923,'sessionId':_0x23ed1f[_0x426d23(0x200)],'failedAttempts':_0x1d806f});},-0x77b+-0x84f*0x8+0x848b)};this[_0x34610f(0x220)][_0x34610f(0x1bb)](_0xb01923[_0x34610f(0x200)],_0x23ed1f),_0x23ed1f[_0x34610f(0x1c4)][_0x34610f(0x235)]();}}[_0x2d8eb1(0x11f)](_0x322b7a,_0x412588){const _0x388c42=_0x2d8eb1,_0x1b6aea=this[_0x388c42(0x1d4)][_0x388c42(0x149)](_0x322b7a);if(_0x1b6aea===undefined||this[_0x388c42(0x1d4)][_0x388c42(0x25b)](_0x1b6aea['id'])!==undefined)return;this[_0x388c42(0x262)][_0x388c42(0x1e4)](_0x1b6aea['id'],_0x412588===_0x388c42(0x1e9)?_0x388c42(0x181):_0x388c42(0xe7),_0x412588===_0x388c42(0x1e9)?{}:{'code':_0x388c42(0x1c7)},_0x412588);}[_0x2d8eb1(0x143)](_0x271ebc){const _0xde744=_0x2d8eb1,_0x2bd375=missionUnrestrictedAccess(_0x271ebc[_0xde744(0x175)]),_0x5662ca=_0x271ebc[_0xde744(0x129)]!==_0x2bd375,_0x30d82c=_0x5662ca?this[_0xde744(0x1d4)][_0xde744(0x154)](_0x271ebc['id'],_0x2bd375):_0x271ebc;if(_0x5662ca&&_0x30d82c[_0xde744(0x1da)]!==null&&_0x30d82c[_0xde744(0x264)]!==null&&_0x30d82c[_0xde744(0x244)]!==null)this[_0xde744(0xd9)]?.[_0xde744(0x18e)]({'runner':_0x30d82c[_0xde744(0x175)],'externalSessionId':_0x30d82c[_0xde744(0x1da)],'workspaceId':_0x30d82c[_0xde744(0x116)],'model':_0x30d82c[_0xde744(0x264)],'effort':_0x30d82c[_0xde744(0x244)],'access':_0x2bd375});return{'session':_0x30d82c,'changed':_0x5662ca};}[_0x2d8eb1(0xfb)](){const _0x700a23=_0x2d8eb1;return{'commandId':_0x700a23(0x198),'active':!![],'label':_0x700a23(0x243),'detail':null,'closable':!![],'closeInput':_0x700a23(0x1c8)};}[_0x2d8eb1(0x105)](){const _0x53bf06=_0x2d8eb1;this[_0x53bf06(0x205)]=!![],this[_0x53bf06(0x255)][_0x53bf06(0x224)](),this[_0x53bf06(0x107)][_0x53bf06(0x105)](),this[_0x53bf06(0x122)][_0x53bf06(0x105)]();for(const _0x5ed0e5 of this[_0x53bf06(0x212)][_0x53bf06(0x1d6)][_0x53bf06(0x130)][_0x53bf06(0x24d)]()){clearTimeout(_0x5ed0e5[_0x53bf06(0x1c4)]),_0x5ed0e5[_0x53bf06(0x1cf)](_0x53bf06(0xf8));}this[_0x53bf06(0x212)][_0x53bf06(0x1d6)][_0x53bf06(0x130)][_0x53bf06(0x222)]();for(const _0x20c84b of this[_0x53bf06(0x212)][_0x53bf06(0x1d6)][_0x53bf06(0x132)][_0x53bf06(0x24d)]()){clearTimeout(_0x20c84b[_0x53bf06(0x1c4)]),_0x20c84b[_0x53bf06(0x21e)](_0x53bf06(0x19d));}this[_0x53bf06(0x212)][_0x53bf06(0x1d6)][_0x53bf06(0x132)][_0x53bf06(0x222)](),this[_0x53bf06(0x247)][_0x53bf06(0x222)](),this[_0x53bf06(0x1ee)][_0x53bf06(0x224)](),this[_0x53bf06(0xd2)][_0x53bf06(0x222)](),this[_0x53bf06(0x19e)][_0x53bf06(0x222)]();for(const _0x378ea7 of this[_0x53bf06(0x220)][_0x53bf06(0x24d)]())clearTimeout(_0x378ea7[_0x53bf06(0x1c4)]);this[_0x53bf06(0x220)][_0x53bf06(0x222)](),this[_0x53bf06(0x25a)][_0x53bf06(0x222)](),this[_0x53bf06(0x1c9)][_0x53bf06(0x222)](),this[_0x53bf06(0xde)][_0x53bf06(0x224)]();for(const _0x2d4e18 of this[_0x53bf06(0x212)][_0x53bf06(0x1d6)][_0x53bf06(0x23a)][_0x53bf06(0x24d)]())_0x2d4e18[_0x53bf06(0x230)][_0x53bf06(0x147)]();this[_0x53bf06(0x212)][_0x53bf06(0x1d6)][_0x53bf06(0x23a)][_0x53bf06(0x222)](),this[_0x53bf06(0x1f1)][_0x53bf06(0x224)](),void this[_0x53bf06(0x1b8)][_0x53bf06(0x224)](),void this[_0x53bf06(0x199)][_0x53bf06(0x20c)](),this[_0x53bf06(0x1b6)][_0x53bf06(0x224)](),this[_0x53bf06(0x216)][_0x53bf06(0x1f0)](),this[_0x53bf06(0x25c)][_0x53bf06(0x222)](),this[_0x53bf06(0x232)][_0x53bf06(0x222)](),this[_0x53bf06(0xcd)][_0x53bf06(0x222)](),void this[_0x53bf06(0x104)][_0x53bf06(0x105)](),void this[_0x53bf06(0x257)][_0x53bf06(0x186)](),void this[_0x53bf06(0x196)][_0x53bf06(0x20c)](),this[_0x53bf06(0x239)][_0x53bf06(0x105)](),this[_0x53bf06(0x20d)][_0x53bf06(0x105)](),this[_0x53bf06(0xd9)]?.[_0x53bf06(0x186)](),this[_0x53bf06(0xd9)]=undefined;}[_0x2d8eb1(0xcc)]=_0x1719ab=>this[_0x2d8eb1(0xe2)][_0x2d8eb1(0x230)](_0x1719ab);[_0x2d8eb1(0xd4)]=(_0x5ca4fb,_0x40487a,_0x321053,_0x179134)=>this[_0x2d8eb1(0x262)][_0x2d8eb1(0x1e4)](_0x5ca4fb,_0x40487a,_0x321053,_0x179134);[_0x2d8eb1(0x1fe)]=(_0x3f3465,_0x41738a)=>{const _0x26e86f=_0x2d8eb1;this[_0x26e86f(0x1c9)][_0x26e86f(0x20f)](_0x3f3465);const _0xd8fb40=isPlainRecord(_0x41738a)&&typeof _0x41738a[_0x26e86f(0x1e8)]===_0x26e86f(0x1c5)?_0x41738a[_0x26e86f(0x1e8)]:undefined,_0x4d3a17=isPlainRecord(_0x41738a)&&typeof _0x41738a[_0x26e86f(0x17e)]===_0x26e86f(0x1c5)?_0x41738a[_0x26e86f(0x17e)]:undefined,_0x41707f=this[_0x26e86f(0x1d4)][_0x26e86f(0xf9)](_0x3f3465),_0x58de41=_0xd8fb40===undefined||_0x41707f===undefined?undefined:conversationSegmentIdentityForItem(_0x41707f,_0xd8fb40,_0x4d3a17);this[_0x26e86f(0x262)][_0x26e86f(0x1e4)](_0x3f3465,_0x26e86f(0x195),_0x58de41===undefined||!isPlainRecord(_0x41738a)?_0x41738a:{..._0x41738a,'segmentId':_0x58de41['id'],'segmentIndex':_0x58de41[_0x26e86f(0x16b)]});};[_0x2d8eb1(0x24e)]=_0x59c10d=>{const _0x3ce7e3=_0x2d8eb1,_0x229780=isPlainRecord(_0x59c10d)&&Array[_0x3ce7e3(0xd5)](_0x59c10d[_0x3ce7e3(0x120)])?conversationSegments(_0x59c10d):[];this[_0x3ce7e3(0x24c)](_0x3ce7e3(0x1ce),{'turn':_0x59c10d,'segments':_0x229780});};[_0x2d8eb1(0x1d2)]=(_0x17c7b5,_0x2790e7)=>{const _0xb5334d=_0x2d8eb1;if(_0x17c7b5===_0xb5334d(0x17c)){this[_0xb5334d(0x24a)](_0x2790e7);return;}this[_0xb5334d(0x24c)](_0x17c7b5,_0x2790e7);};[_0x2d8eb1(0x24a)]=_0x11a264=>{const _0x4798cd=_0x2d8eb1;if(isPlainRecord(_0x11a264)&&isPlainRecord(_0x11a264[_0x4798cd(0x17c)])){const _0x1753af=_0x11a264[_0x4798cd(0x17c)][_0x4798cd(0x116)];typeof _0x1753af===_0x4798cd(0x1c5)&&(this[_0x4798cd(0x232)][_0x4798cd(0x218)](_0x1753af),void this[_0x4798cd(0x25c)]?.[_0x4798cd(0x1ba)](_0x1753af,_0x4798cd(0x1b1)));}this[_0x4798cd(0x24c)](_0x4798cd(0x17c),_0x11a264);};[_0x2d8eb1(0x24c)]=(_0x57b439,_0x4ff38e)=>{const _0x1ef374=_0x2d8eb1;if(_0x57b439===_0x1ef374(0x1ce)&&isPlainRecord(_0x4ff38e)&&isPlainRecord(_0x4ff38e[_0x1ef374(0xfd)])&&_0x4ff38e[_0x1ef374(0xfd)][_0x1ef374(0x1f4)]!==_0x1ef374(0x22d)){const _0x11f284=typeof _0x4ff38e[_0x1ef374(0xfd)][_0x1ef374(0x19c)]===_0x1ef374(0x1c5)?_0x4ff38e[_0x1ef374(0xfd)][_0x1ef374(0x19c)]:undefined,_0x1c8c01=typeof _0x4ff38e[_0x1ef374(0xfd)][_0x1ef374(0x214)]===_0x1ef374(0x13d)?_0x4ff38e[_0x1ef374(0xfd)][_0x1ef374(0x214)]:undefined,_0x403cf3=_0x11f284===undefined?undefined:this[_0x1ef374(0x1d4)][_0x1ef374(0xf9)](_0x11f284);if(_0x403cf3===undefined)return;const _0x104b79=isPlainRecord(_0x4ff38e[_0x1ef374(0xfd)][_0x1ef374(0x167)])?_0x4ff38e[_0x1ef374(0xfd)][_0x1ef374(0x167)]:undefined,_0x2b212f=_0x4ff38e[_0x1ef374(0xfd)][_0x1ef374(0x1f4)]===_0x1ef374(0xf5)&&typeof _0x104b79?.[_0x1ef374(0x1b9)]===_0x1ef374(0x1c5)?_0x104b79[_0x1ef374(0x1b9)]:undefined,_0x5791dc=typeof _0x104b79?.[_0x1ef374(0x1e8)]===_0x1ef374(0x1c5)?_0x104b79[_0x1ef374(0x1e8)]:typeof _0x104b79?.[_0x1ef374(0xd3)]===_0x1ef374(0x1c5)?_0x1ef374(0x1fc)+_0x104b79[_0x1ef374(0xd3)]:undefined,_0x526591=_0x2b212f!==undefined&&_0x1c8c01!==undefined?_0x403cf3[_0x1ef374(0x120)][_0x1ef374(0x1c2)](_0x5ee0cf=>_0x5ee0cf[_0x1ef374(0x17e)]===_0x1ef374(0x1d1)&&_0x5ee0cf[_0x1ef374(0x17d)]===_0x1c8c01):_0x5791dc===undefined?undefined:_0x403cf3[_0x1ef374(0x120)][_0x1ef374(0x1c2)](_0x479c67=>_0x479c67['id']===_0x11f284+':'+_0x5791dc);if(_0x2b212f!==undefined&&_0x526591?.[_0x1ef374(0x17e)]===_0x1ef374(0x1d1))_0x4ff38e={'sessionId':_0x403cf3[_0x1ef374(0x200)],'delta':{'runId':_0x403cf3[_0x1ef374(0x19c)],'itemId':_0x526591['id'],'text':_0x2b212f,'createdAt':typeof _0x4ff38e[_0x1ef374(0xfd)][_0x1ef374(0xf2)]===_0x1ef374(0x13d)?_0x4ff38e[_0x1ef374(0xfd)][_0x1ef374(0xf2)]:Date[_0x1ef374(0x179)]()}};else{if(_0x526591!==undefined){const _0x4f8d8d=conversationSegmentIdentityForItem(_0x403cf3,_0x526591['id'],_0x526591[_0x1ef374(0x17e)]);_0x4ff38e={'sessionId':_0x403cf3[_0x1ef374(0x200)],'runId':_0x403cf3[_0x1ef374(0x19c)],'item':{'itemId':_0x526591['id'],'kind':_0x526591[_0x1ef374(0x17e)],'status':_0x526591[_0x1ef374(0x14d)],'payload':_0x526591[_0x1ef374(0x167)],'startedAt':_0x526591[_0x1ef374(0xe3)],'completedAt':_0x526591[_0x1ef374(0x1cc)],'segmentId':_0x4f8d8d['id'],'segmentIndex':_0x4f8d8d[_0x1ef374(0x16b)]}};}else{if(_0x4ff38e[_0x1ef374(0xfd)][_0x1ef374(0x1f4)]!==_0x1ef374(0x19a)&&_0x4ff38e[_0x1ef374(0xfd)][_0x1ef374(0x1f4)]!==_0x1ef374(0xe0))return;_0x4ff38e={'turn':_0x403cf3,'segments':conversationSegments(_0x403cf3)};}}}const _0x56df9b=this[_0x1ef374(0x242)][_0x1ef374(0xd8)](_0x57b439,_0x4ff38e);if(_0x56df9b===undefined)return;const _0x26b7d2=_0x57b439===_0x1ef374(0x1ce)&&isPlainRecord(_0x4ff38e)&&isPlainRecord(_0x4ff38e[_0x1ef374(0xfd)])&&_0x4ff38e[_0x1ef374(0xfd)][_0x1ef374(0x1f4)]===_0x1ef374(0x22d),_0x4e797=workbenchPayloadSessionId(this[_0x1ef374(0x1d4)],_0x57b439,_0x4ff38e);if(!_0x26b7d2&&_0x4e797!==undefined){this[_0x1ef374(0x247)][_0x1ef374(0x160)](_0x4e797,_0x56df9b);return;}this[_0x1ef374(0x242)][_0x1ef374(0x208)](_0x56df9b);};[_0x2d8eb1(0x1fd)]=_0x20d28f=>this[_0x2d8eb1(0x16d)][_0x2d8eb1(0xce)](_0x20d28f);[_0x2d8eb1(0x162)]=_0x2d4087=>this[_0x2d8eb1(0x13f)][_0x2d8eb1(0x183)](_0x2d4087);[_0x2d8eb1(0x190)]=()=>undefined;[_0x2d8eb1(0x246)]=()=>this[_0x2d8eb1(0x122)][_0x2d8eb1(0x246)]();[_0x2d8eb1(0xe9)]=()=>this[_0x2d8eb1(0x122)][_0x2d8eb1(0xe9)]();async[_0x2d8eb1(0x249)](_0x51bdb8,_0x561014){const _0x3a1bcf=_0x2d8eb1;if(this[_0x3a1bcf(0xd9)]===undefined)throw new Error(_0x3a1bcf(0x236));if(this[_0x3a1bcf(0x107)][_0x3a1bcf(0x12e)](_0x51bdb8))throw new Error(_0x3a1bcf(0x1bf));return nodeLog(_0x3a1bcf(0x201),{'nodeId':this[_0x3a1bcf(0x241)]?.[_0x3a1bcf(0x22f)],'operation':_0x51bdb8}),this[_0x3a1bcf(0x153)][_0x3a1bcf(0x23e)](_0x51bdb8,_0x561014);}async[_0x2d8eb1(0x261)](_0x3f7543,_0x27f7fc){const _0x44bc34=_0x2d8eb1,_0x11b6ab=this[_0x44bc34(0x241)];if(_0x11b6ab?.[_0x44bc34(0x22f)]===undefined||_0x11b6ab[_0x44bc34(0x22b)]===undefined)throw new Error(_0x44bc34(0x1af));const _0x3b4e1e=await fetch(_0x11b6ab[_0x44bc34(0x123)][_0x44bc34(0x17a)](/\/$/u,'')+_0x44bc34(0x1de),{'method':_0x44bc34(0x1ef),'headers':{'content-type':_0x44bc34(0x1fa),'x-mar-node-id':_0x11b6ab[_0x44bc34(0x22f)],'authorization':_0x44bc34(0x1d0)+_0x11b6ab[_0x44bc34(0x22b)]},'body':JSON[_0x44bc34(0x1b3)](_0x3f7543),'signal':_0x27f7fc});if(!_0x3b4e1e['ok'])throw new Error(_0x44bc34(0x234));const _0x22d916=await _0x3b4e1e[_0x44bc34(0x157)]();return{'content':JSON[_0x44bc34(0x1b3)](_0x22d916),'data':_0x22d916};}[_0x2d8eb1(0x207)](_0x15dc6b,_0x38a19e){const _0x52aa1b=_0x2d8eb1;if(_0x38a19e[_0x52aa1b(0x14d)]!==_0x52aa1b(0x1ae)){this[_0x52aa1b(0x21d)][_0x52aa1b(0x222)](_0x15dc6b['id'],_0x52aa1b(0x198)),this[_0x52aa1b(0x24c)](_0x52aa1b(0x17c),{'session':this[_0x52aa1b(0xe4)][_0x52aa1b(0x115)](_0x15dc6b)});return;}this[_0x52aa1b(0x21d)][_0x52aa1b(0x1bb)](_0x15dc6b['id'],{'commandId':_0x52aa1b(0x198),'active':_0x38a19e[_0x52aa1b(0x14d)]===_0x52aa1b(0x1ae),'label':_0x52aa1b(0x243),'detail':_0x38a19e[_0x52aa1b(0x1df)][_0x52aa1b(0x16f)](0x3*0x2c+0x70*-0x44+0x1d3c,-0x9*0x288+0x22*0x71+0x1f2*0x5),'closable':!![],'closeInput':_0x52aa1b(0x245),'mission':{'id':_0x38a19e['id'],'objective':_0x38a19e[_0x52aa1b(0x1df)],'revision':_0x38a19e[_0x52aa1b(0x17d)],'status':_0x38a19e[_0x52aa1b(0x14d)],'turns':_0x38a19e[_0x52aa1b(0xdc)]}}),this[_0x52aa1b(0x24c)](_0x52aa1b(0x17c),{'session':this[_0x52aa1b(0xe4)][_0x52aa1b(0x115)](_0x15dc6b)});}[_0x2d8eb1(0x1e0)](_0x3fab0f,_0x329aa7,_0x341009){const _0x90034d=_0x2d8eb1;this[_0x90034d(0x20d)][_0x90034d(0x1e0)](_0x3fab0f,_0x329aa7,_0x341009);}[_0x2d8eb1(0x166)](_0x558614){const _0x45ca23=_0x2d8eb1;this[_0x45ca23(0x20d)][_0x45ca23(0x166)](_0x558614);}}
|
|
2
|
+
const _0x5e09f1=_0x13b9;(function(_0x4499b9,_0x1367be){const _0x236e03=_0x13b9,_0x5e404b=_0x4499b9();while(!![]){try{const _0xaf0f9a=parseInt(_0x236e03(0x190))/(-0x2099*-0x1+-0xd*0x16f+0xdf5*-0x1)*(parseInt(_0x236e03(0x201))/(0x61b*0x1+-0x112*0xb+0x1*0x5ad))+parseInt(_0x236e03(0xf7))/(0x9b+-0x1308*-0x2+-0x26a8)+parseInt(_0x236e03(0xf3))/(-0x183b+-0x1e46+0x3685)*(-parseInt(_0x236e03(0x17a))/(0x1218+0x1a4b+-0x6*0x765))+-parseInt(_0x236e03(0xaf))/(-0x23fb+0x3*0x5a7+0x130c)+parseInt(_0x236e03(0x1c3))/(-0x3d4+-0x3*0x3a2+0xec1)+parseInt(_0x236e03(0x221))/(0x101e+-0x1d70+-0x2*-0x6ad)*(parseInt(_0x236e03(0x204))/(0xa7e*-0x1+0x1ded+-0x1366))+parseInt(_0x236e03(0x10c))/(-0x270d+-0x8*-0x16b+-0x1*-0x1bbf)*(-parseInt(_0x236e03(0x173))/(-0x1*0xf29+0x11ee+-0x2ba*0x1));if(_0xaf0f9a===_0x1367be)break;else _0x5e404b['push'](_0x5e404b['shift']());}catch(_0x135d9f){_0x5e404b['push'](_0x5e404b['shift']());}}}(_0x36f2,-0x1*0xf2504+0x12d5aa+0x7ce51));import{dirname,resolve}from'node:path';import{createEnvelope}from'@myagentroam/protocol';import{loadNodeConfig,nodeDatabasePath}from'./config.js';import{NodeMetrics,nodeLog}from'./operational.js';import{assertLocalSqlitePath}from'./storage.js';import{detectCapabilitiesAsync,unavailableCapabilities}from'./capabilities.js';import{NodeDatabase}from'./database.js';import{TerminalManager}from'./terminal.js';import{NodeRuntimeState}from'./runtime-state.js';import{CommandStateStore}from'./runner-command-engine.js';import{missionUnrestrictedAccess,MissionRuntime}from'./service/mission-runtime.js';import{MissionMcpServer}from'./service/mission-mcp-server.js';import{RunnerUsageReader}from'./runner-usage.js';import{ClaudeCodeRunner}from'./runner/claude-code-runner.js';import{ClaudeManagedRunController}from'./runner/claude/managed-run-controller.js';import{CodexRunner}from'./runner/codex-runner.js';import{CodexManagedRunController}from'./runner/codex/managed-run-controller.js';function _0x36f2(){const _0x8c361f=['y2fUy2vSq29KzxHuDxjU','BM93','y2fWywjPBgL0EurLDgvJDg9Y','zMfPBgvKqxr0zw1WDhm','C29JA2v0','zgLZy292zxjxB3jRC3bHy2vtzxnZAw9UCW','CMvJB3jKzwqTC2vZC2LVBG','Aw5ZDgfSBgf0Aw9U','C3vIBwL0twLZC2LVBG','C25HChnOB3rtzxf1zw5Jzq','zxHPDa','tufsx0fhru5ux1DfqL9trufsq0HFrKfjteve','zMfRzvnJCMLWDa','tK9erv9vtKfvveHftLrjq0furuq','C3rHCNq','yxnZAxn0yw50x21LC3nHz2u','sfruua','y29UBMvJDgvK','y3jLzgvUDgLHBa','CNvUBMvY','CMvZCg9UzfvZzxjjBNb1Da','ywnJzxb0rM9YtwvZC2fNzq','y2XHDwrLqxbWCM92ywXuAw1LB3v0txm','zxzLBNq','D29YA3nWywnLq2HHBMDLu2vYDMLJzq','CgXHDgzVCM0','z2v0uNvU','yMLUzenVBw1HBMrdB250CM9S','BgLZDa','y3jLyxrLqxbWCM92ywW','zw1PDfj1BG','zxHWAxjL','DgvYBwLUywXtzxj2AwnL','zgLZy292zxjxB3jRC3bHy2u','Aw50zxjYDxb0uMvXDwvZDgvK','BwLZC2LVBK1JCfnLCNzLCG','ChvIBgLZAfDVCMTIzw5JAev2zw50','CMvMCMvZAenHCgfIAwXPDgLLCW','y2HHBM5LBfrVA2vU','zwzMB3j0','BMv4Da','CMvNAxn0zxjbBgW','C3rHCNrLzef0','mtm3nda0ng5WuK1zCG','CMvHzeHPC3rVCNLqywDL','D29YA2jLBMnOtwfUAwzLC3rtzxj2AwnL','y29UDMvYC2f0Aw9Uu2vNBwvUDfnLCNzPy2u','D29YA3nWywnLv29YA2jLBMnOu2vYDMLJzq','Dgv4Dc5KzwX0yq','y2f0y2G','CNvUBMvYsw50zxjHy3rPB25tzxj2AwnL','BM9Kzs5JB25Uzwn0Aw5N','uvvfvuu','z2v0v29YA3nWywnL','ChjVBw90zvnLC3nPB25jzgvUDgL0Eq','zxHLy3v0zunVBw1HBMq','CNvUBMvYq2HHBM5LBe1LC3nHz2vZ','rKflrv9svu5orvjFreLtq09otKvdva','ywnJzxnZ','DhvYBG','ywn0AxzL','Dgv4Da','Dg9WAwnby3rPDMu','y29UzMLNugf0Aa','y2fWywjPBgL0AwvZ','BwfUywDLzfj1BM5LCLnLC3nPB25Z','ywrK','ue9tva','lw9Wzw5JB2rLlwLTywDLCW','C2v0','ChjVBxb0','BM9Kzs51CgDYywrLlNjLCxvLC3q','CNvUv29YA2jLBMnOu2vYDMLJzq','ChvIBgLZAefWChjVDMfS','C2vXDwvUy2u','DxnLCKLUChv0CW','y29TCgXLDgvKqxq','D29YA2jLBMnOrxzLBNrtzxj2AwnL','zw1PDenVBNzLCNnHDgLVBKL0zw0','BwfYqwDLBNrdBgLLBNq','C2vZC2LVBKXPzMvJEwnSzvnLCNzPy2u','zMLUAxnOswrSzu1PC3nPB25sDw4','zw1PDfj1BKv2zw50','C2H1DgrVD24','DxbNCMfKzs1Yzxn1BhqUANnVBG','Bw9KzwW','y2fUy2vS','Bwf0zxjPywXPEMvdB2rLEa','uLvox05pvf9gt1vora','zgf0ywjHC2u','Aw50zxjYDxb0','B3bLBKnVzgvdBgLLBNq','Aw52ywXPzgf0zunHy2HL','DgvYBwLUywXnyw5Hz2vY','Bwv0ywrHDge','y29UDhjVBenOyw5UzwW','zw1PDfDVCMTIzw5JAev2zw50','zMfRzvj1BM5LCG','ChvIBgLZAa','zxHLy3v0Aw9Uu3rHCNrLza','zw1PDenVBNzLCNnHDgLVBLr1CM4','A2LUza','ChvIBgLZAfnUyxbZAg90','zw1PDfjLywX0Aw1L','su5urvjsvvburuq','mZiXmdjIq3vMq0G','BM9Kzs5JB25Uzwn0Aw9UlNjLCgXHy2vK','C2vZC2LVBKnHDgfSB2Dtzxj2AwnL','ntr4wfj4rey','CMvQzwn0','AxnbCNjHEq','C2vZC2LVBI5SAxn0','yxbWCM92ywXZ','BwLZC2LVBLj1BNrPBwu','CNvUlNn0yxj0zwq','y3jLyxrLqwDLBNrtzxnZAw9U','CMvTB3zL','zgvJAwrL','CNvUlMzHAwXLza','BM9Kzs5VCgvYyxrPB24','Ahr0Chm6lY8XmJCUmc4WlJeUAw52ywXPzc9Ty3a','CMvXDwLYzq','CNvUDgLTzq','D29YA3nWywnLswq','q0foq0vmteve','ywn0AxzLv29YA3nWywnLtgvHC2vdB3vUDa','tuLtu0LptL9dt05usu5vqvrjt05FrKfjteve','BMf0AxzLsw1Hz2vsB290CW','C2f2zu5HDgL2zvnLC3nPB25nzxrHzgf0yq','BxLHz2vUDhjVyw1FBwLZC2LVBG','uKvqtefdrv9dvvjsru5u','q0foq0vm','CMvXDwvZDa','C2vZC2LVBG','CgvYC2LZDezPBgvZ','y29UDMvYC2f0Aw9UvhvYBKzVCLj1BG','yMLUzenVBNrYB2W','mJm2mJe2rNbUDNP1','yxbWCM92ywW6','BM9KzvjLCxvLC3rZ','tK9erv9tve9queve','ChjVAMvJDeLUAxrPywW','D29YA3nWywnLu2vZC2LVBLnLCNzPy2u','C2nOzwr1Bgu','ywn0AxzLu2vZC2LVBLj1BG','C2vJCMv0rw52AxjVBM1LBNq','BMf0AxzLswrZ','ChjLC2vUDa','y29UDhjVBe1LC3nHz2vZ','v09ss1nqqunf','BgLZDfDVCMTZCgfJzxm','C3rHDgu','CMvHza','z2v0qwDLBNrtzxnZAw9U','CMvNAxn0zxi','CgvUzgLUzW','CMvTB3zLugvUzgLUz1f1zxvL','CMvSzwfZzvnLC3nPB24','zMLUza','zxzLBNruExbL','ywrVChrsDw4','y2XHDwrLuNvUq29UDhjVBgXLCG','CNvUlNj1BM5PBMC','y29UBMvJDa','DxbNCMfKzvjLywr5','y3vZDg9TvgL0Bgu','AgfZ','C25HChnOB3q','C2v0u2vZC2LVBLjLC291CMnLuMvSzwfZzxi','BM9KzuLK','ChjLCgfYzu1LC3nHz2vjBNb1Da','zMfZDa','CNvUBMvYu2vYDMLJzq','BMf0AxzLu2vZC2LVBLbYB2PLy3rPB25tzxj2AwnL','zxHLy3v0zu5VzgvpCgvYyxrPB24','Bw92zq','mJq3ntyZnM1qt1Lbtq','CMfUzg9Tvvvjra','y2fUy2vSq2XHDwrLuNvU','DxbKyxrLqwDLBNrtzxnZAw9UqwnJzxnZ','y2XLyxjxyxrJAgvZ','DhvYBNm','BgLZDfj1BNngB3jtzxnZAw9U','y29UzMLN','Aw5ZCgvJDe1LDgfKyxrH','zwzMzwn0AxzLtwnWsw5ZDgfSBgf0Aw9UCW','zxHWAxjLqxbWCM92ywW','CgvYC29UywXjBNn0CNvJDgLVBNm','AgfUzgXLtM90AwzPy2f0Aw9U','C2vZC2LVBNm','CgvUzgLUz01PC3nPB25dB21Tyw5Ku3rHDgu','D2LUzg93CW','C2vZC2LVBLn0yxrL','CMvXDwvZDenSyxvKzufWChjVDMfS','DgLTzxi','zxHLy3v0zq','C2vZC2LVBKnVBNrLEhrtzxj2AwnL','zw1PDfnLC3nPB25xB3jRyMvUy2HfDMvUDa','y2XLyxjnAxnZAw9UuMv0CNK','CMvWBgfJzvnVy2TLDezVCLrLC3rPBMC','zw5ZDxjLuMvZDw1LzenVBMzPz3vYyxrPB24','y29UBMvJDgLVBKXPzMvJEwnSzq','CNvUlMnVBxbSzxrLza','y2XLyxjbBgW','yxbWBgLJyxrPB24VANnVBG','CMv2AxnPB24','zw1PDff1zxvL','CNvUrxzLBNrcCMLKz2u','C2vZC2LVBK1LC3nHz2vtzxj2AwnL','zxH0zxjUywXtzxnZAw9Uswq','BMf0AxzLu2vZC2LVBLDHDgnOu2vYDMLJzq','y29UDMvYC2f0Aw9U','surmrq','Dw5Yzwy','CMvXDwvZDenSyxvKzvvZzxjjBNb1Da','CMvZB2X2zq','AxrLBxm','CMvMCMvZAfrPDgXL','y2fWywjPBgL0AwvZuhjVDMLKzwq','y2XVC2vsDw5UAw5NvgvYBwLUywXtzxnZAw9UCW','BM9KzuDLBMvYyxrPB24','CMvMCMvZAev4DgvYBMfSqwn0AxzPDhK','C3rVChbLza','CNvUCW','zMX1C2Hqzw5KAw5Nvgv4Da','ChvIBgLZAe1PC3nPB25tDgf0zq','tK9erv9eqvrbqKftrv9vtKfwquLmqujmrq','Cgf5Bg9Hza','Bg9HzfjLC3vSDa','y2XVC2u','C2v0q2HHBM5LBfrVA2vU','CNvUBMvYlMnVBw1HBMqUzxHLy3v0zq','C3rHCNrdyxbHyMLSAxr5uMvMCMvZAa','CMvZDw1LzenVBMzPz3vYyxrPB24','C2vYDMvYvxjS','C2XPy2u','C2vZC2LVBKLKzw50Axr5u2vYDMLJzq','CMvWBgfJzq','y29UBMvJDgvKqxr0zw1WDa','BwfYlwLUDgvYBMfSlw1PC3nPB24','ywXSB3DLzfjVB3rZ','DgHYzwfKswq','l21PC3nPB24','u0vora','odbLrvDdqw8','CMvJB25Uzwn0u2nOzwr1BgvK','yxzHAwXHyMXL','C2vUza','ndmYmta0ngPjvMfZrW','qMvHCMvYia','B3bLBKnVzgvsDw5dB250CM9SBgvY','D2LUmZi','tuLtu0LptL9ot1rFqunusvzf','y29UDMvYC2f0Aw9UsgLZDg9YEvnLCNzPy2u','D2f0y2GUzxzLBNq','y29TBwL0twv0ywrHDge','CNvUDgLTzs1UB2rL','C2vJCMv0CW','C3vWzxj2AxnLzfvWz3jHzgu','zxH0zxjUywXtzxnZAw9UuMvZDw1Lu2vYDMLJzq','BwLZC2LVBKnVBNrPBNvHDgLVBLbLBMrPBMC','y29KzxG','C3rYAw5N','tK9erv9dt05gsuDFvu5bvKfjtefcteu','DhvYBKLK','Bwv0CMLJCW','CNvUBMvYvxnHz2vszwfKzxi','y29KzxHdBgLLBNq','zgvJAxnPB24','nJbWvNnTu0u','ChjLCgfYzu1PC3nPB25tzxnZAw9U','AgfZrxHLy3v0Aw9Uu3rHCNrLza','BwLNCMf0zvj1BM5LCLnLC3nPB25jzgvUDgL0Eq','CMvJB25JAwXL','C2vZC2LVBI13yxrJAc1ZBMfWC2HVDa','CNvUswq','yMXVy2TZ','Cgf1C2vtzxnZAw9UuxvLDwu','CMvJB25Uzwn0','rvHurvjoquW','CMvHze5HDgL2zq','C3rYAw5NAwz5','l2fWAs9UB2rLlxrVB2XZl3DLyI1ZzwfYy2G','BNvTyMvY','CMvTzw1Izxi','CMvJB25JAwXLugvYC2LZDgvKuNvUCW','CMvJB3jKrxHLy3v0Aw9UuMvZDwX0','CNvUBMvYvgL0Bgu','zgLYzwn0tMf0AxzL','twLZC2LVBG','zgvSzxrL','yxbWCM92ywXjza','BwfYqwDLBNrsDw5dB250CM9SBgvY','uKvkrunuruq','C2vZC2LVBKLK','AgfZqwn0AxzLu2vZC2LVBKXLyxnL','D29YA3nWywnLu2vYDMLJzq','CgvYC2LZDfrLCM1PBMfS','z2v0','CMvJzw50lxj1BNm','DhjHBNnPDgLVBMLUzW','y29UDMvYC2f0Aw9UlML0zw0','BM9Kzs51CgDYywrLlMnHBMnLBa','yM9VDhn0CMfWswrZ','zxH0zxjUywXby3rPDML0Eq','DgvYBwLUywXdAgfUBMvS','zgLZCgf0y2G','CNvUrxzLBNrtzxj2AwnL','rKfjteve','q0foq0vmteLorW','D29YA3nWywnLrMLSzvnLCNzPy2u','Aw5KzxG','l21PC3nPB24Gls1JBgvHCG','y3vYCMvUDev4zwn1DgLVBKLK','u1vdq0vfreve','CMvZDw1Lqwz0zxjdB21Tyw5KuNvU','DMfSDwvZ','CMvJB3jKvhvYBG','y3jLyxrLzef0','BM9Kzs53B3jRyMvUy2GUy2fWywjPBgL0AwvZ','zxHLy3v0Aw9U','CMvJzw50uNvUuhjVAMvJDgLVBLnLCNzPy2u','BM9Kzs5TzxrYAwnZ','y2XLyxjxB3jRC3bHy2u','CNvU','zgLZCg9Zzq','zMfRztO','y2XLyw51Ca','y29KzxHqCM9MAwXLq2XPzw50rMfJDg9YEq','tK9erv9vueDsqurfx1bftKrjtKC','C3rHDhvZ','C3rVCa','BMf0AxzLlNnLC3nPB24UzgLZy292zxj5lNbLBMrPBMC','C2vZC2LVBKnVBw1HBMrtzxj2AwnL','y2XHDwrLq2XPzw50','CMvTB3zLtwLZC2LVBLf1zxvL','C3rVCfDHDgnO','zw5ZDxjLv2f0y2G','y29TBwfUzfn0yxrLCW','DxbNCMfKzq','BwLU','CNvUu3rHDgu','B3bLCMf0Aw9UuM91DgvY','Aw5ZCgvJDa','Aw52ywXPzgf0zunOyw5Nzxm','D29YA3nWywnLuxvLDwvxB3jRyMvUy2Htzxj2AwnL','zw5XDwv1zu1PC3nPB25dB250Aw51yxrPB24','Bwf4','vgHPCYboB2rLignVBM5Ly3rPB24GD2fZihjLCgXHy2vKigj5igeGBMv3zxiGAw5ZDgfUy2uGD2L0Acb0AguGC2fTzsbPzgvUDgL0Es4Gq2HLy2SGzM9Yigr1CgXPy2f0zsbWCM9JzxnZzxmU','y29UDgLUDwu','y29TCgXLDgvdyw5JzwXSzwrsDw4','C2vZC2LVBLbYzxnLBNrHDgLVBLnLCNzPy2u','y29UDgLUDw91C1j1BKnVB3jKAw5HDg9Y','zw5ZDxjLvg9WAwntBMfWC2HVDa','zgvJAwrLqxbWCM92ywW','B2jQzwn0AxzL','y2XLyxi','AxrLBuLK','BwLNCMf0zvnLC3nPB24','D2vIu2vHCMnO','y2HHBMDLza','CMvJB3jK','Aw52ywXPzgf0zvrVCgLJ','zM9Yz2v0','yxbWzw5K','CMvZB2X2zun1CNjLBNq','BwLZC2LVBG','BwLZC2LVBLjLDhj5vgLTzxjZ','y29KzxHsDw5dB250CM9SBgvY','Dw5YzwDPC3rLCMvK','zgLZy29UBMvJDa','DxbNCMfKzunVB3jKAw5HDg9Y','mJe1nZG4mxr2qLvQBa','ChjVzMLSzxm','D29YA3nWywnLvxbSB2fKu2vYDMLJzq','AgfUzgXLtwvZC2fNzq','Aw52ywXPzgf0zvDVCMTZCgfJzvDHDgnOvg9WAwnZ','CNvUBMvYCW','y2fJAgvKu2vZC2LVBNm','mJqXotb0vefRB00','ChjVAMvJDgLVBKzVCK5HDgL2zq','B25tDw1Tyxj5','C2L6zq','B3bLCMf0Aw9UCW','D29YA3nWywnLv2f0y2Htzxj2AwnL','zgLZy292zxi','zgvJAwrLq29KzxHbChbYB3zHBa','AgfUzgXL','C2vZC2LVBLf1zxj5u2vYDMLJzq','y3DK','CNvUqxr0ywnOBwvUDfnLCNzPy2u','ChjVBw90zq','ANnVBG','CMv2B2TL','tK9erv9dt05orunusu9ox1jfueXbq0ve','ms4WlJa','D29YA3nWywnLu3rHDgu','yMXVy2TbzNrLCLj1BNrPBwvgywLSDxjL','D29YA3nWywnLq29VCMrPBMf0B3i','Aw52ywXPzgf0zq','zMLSDgvY','mZLACvvzEMG','BgLUDxG','BM90AwzPy2f0Aw9U','C2vUzevUDMvSB3bL','zgvJAwrLq2XHDwrLqxbWCM92ywW','Cgf0Aa','BwfUywDLzezVCK5HDgL2zq','B25oB3rPzMLJyxrPB24'];_0x36f2=function(){return _0x8c361f;};return _0x36f2();}import{FakeTestRunner}from'./runner/fake-test-runner.js';import{RunnerRegistry}from'./runner/runner-registry.js';import{OpenCodeRunner}from'./runner/opencode-runner.js';import{MarAgentRunner}from'./runner/mar-agent-runner.js';import{MarAgentManagedRunController}from'./runner/mar-agent/managed-run-controller.js';import{OpenCodeManagedRunController}from'./runner/opencode/managed-run-controller.js';import{NodeOperationRouter}from'./connector/node-operation-router.js';import{SkillNodeOperationService}from'./service/skill-node-operation-service.js';import{McpNodeOperationService}from'./service/mcp-node-operation-service.js';import{RunnerService}from'./service/runner-service.js';import{TerminalService}from'./service/terminal-service.js';import{WorkspaceService}from'./service/workspace-service.js';import{WorkspaceWatchService}from'./service/workspace-watch-service.js';import{WorkspaceFileService}from'./service/workspace-file-service.js';import{WorkspaceUploadService}from'./service/workspace-upload-service.js';import{WorkspaceChangeService}from'./service/workspace-change-service.js';import{WorkspaceSessionService}from'./service/workspace-session-service.js';import{WorkbenchEventService}from'./service/workbench-event-service.js';import{RunDomainState}from'./service/run-domain-state.js';import{RecentRunProjectionService}from'./service/recent-run-projection-service.js';import{SessionDomainState}from'./service/session-domain-state.js';import{RunEventService}from'./service/run-event-service.js';import{RunAttachmentService}from'./service/run-attachment-service.js';import{NodeTerminalChannel}from'./service/node-terminal-channel.js';import{WorkspaceWorkbenchService}from'./service/workspace-workbench-service.js';import{NativeSessionWatchService}from'./service/native-session-watch-service.js';import{SessionContextService}from'./service/session-context-service.js';import{WorkspaceDomainState}from'./service/workspace-domain-state.js';import{RunWorkbenchService}from'./service/run-workbench-service.js';import{SessionQueryService}from'./service/session-query-service.js';import{WorkspaceQueueWorkbenchService}from'./service/workspace-queue-workbench-service.js';import{ContinuousRunCoordinator}from'./service/continuous-run-coordinator.js';import{SessionIdentityService}from'./service/session-identity-service.js';import{NativeSessionProjectionService}from'./service/native-session-projection-service.js';import{composeConversationRuntimePage,ConversationHistoryService,convergeConversationWatchPage,hasManagedActiveRun}from'./service/conversation-history-service.js';import{ConversationSegmentService,conversationSegmentIdentityForItem,conversationSegments}from'./service/conversation-segment-service.js';import{RunnerInteractionService}from'./service/runner-interaction-service.js';import{SessionLifecycleService}from'./service/session-lifecycle-service.js';import{ExternalSessionResumeService}from'./service/external-session-resume-service.js';import{SessionMessageService}from'./service/session-message-service.js';import{SessionCatalogService}from'./service/session-catalog-service.js';import{SessionCommandService}from'./service/session-command-service.js';import{SessionPresentationService}from'./service/session-presentation-service.js';import{isPlainRecord,isRunnerImageAttachment,parseRunnerImageAttachments}from'./runner/codex/conversation-parser.js';export{nodeConnectEndpoint,validatedCapabilities}from'./runner/codex/conversation-parser.js';import{NodeControlChannel}from'./service/node-control-channel.js';import{NodeControlMessageService}from'./service/node-control-message-service.js';import{NodeRequestService}from'./service/node-request-service.js';import{WorkbenchManifestService}from'./service/workbench-manifest-service.js';import{NodeRunEventBridge,workbenchPayloadSessionId}from'./service/node-run-event-bridge.js';import{NodeWorkspaceCoordinator}from'./service/node-workspace-coordinator.js';import{FakeManagedRunService}from'./service/fake-managed-run-service.js';import{RunnerChannelMessageService}from'./service/runner-channel-message-service.js';import{ManagedRunnerSessionService}from'./service/managed-runner-session-service.js';import{NodeConnectionLifecycleService}from'./service/node-connection-lifecycle-service.js';import{NodeUpgradeCoordinator,nodeUpgradeRequestPath}from'./service/node-upgrade-coordinator.js';const HEARTBEAT_MS=0x1403+-0x3323*-0x1+-0xc8e,CAPABILITY_REFRESH_MS=0x1*-0x1582a+-0x327a+-0x45e4*-0x9,RETRY_MIN_MS=-0x219c+-0x209d+0x1*0x442d,RETRY_MAX_MS=-0x12be*0xc+-0x132d+0x4841*0x5,CLAUDE_APPROVAL_TIMEOUT_MS=(-0x4*0x53f+0x54*0x71+-0x100e)*(0x1c88d+-0xe6aa+-0x1*-0x87d);function _0x13b9(_0xf428dd,_0x5caadb){_0xf428dd=_0xf428dd-(-0x59*0x1f+-0x64a+0x11ae);const _0x35edfc=_0x36f2();let _0xfd8a51=_0x35edfc[_0xf428dd];if(_0x13b9['LXTigt']===undefined){var _0x17f9e9=function(_0x2d32c1){const _0x48089e='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x27e304='',_0x39f9c4='';for(let _0x493134=0xf7*0xd+0x2b*0x66+-0x1dad,_0x3a162d,_0x336053,_0x4842f0=0x595+-0x226d+0x1cd8;_0x336053=_0x2d32c1['charAt'](_0x4842f0++);~_0x336053&&(_0x3a162d=_0x493134%(0x616+-0x150*-0x6+-0xdf2)?_0x3a162d*(-0x209d+0x1*-0xb36+0x2c13)+_0x336053:_0x336053,_0x493134++%(-0x332+0x1a3a+0x7ac*-0x3))?_0x27e304+=String['fromCharCode'](-0x4*0x53f+0x54*0x71+-0xf19&_0x3a162d>>(-(0x260c+-0x1339+-0x1*0x12d1)*_0x493134&-0xc0d+0x1*0x2d4+0x93f)):0x3d6*-0x8+-0x19*-0x128+0x1c8){_0x336053=_0x48089e['indexOf'](_0x336053);}for(let _0x5d26e2=-0x9*-0x11a+0x919+-0x1303,_0x58cdd1=_0x27e304['length'];_0x5d26e2<_0x58cdd1;_0x5d26e2++){_0x39f9c4+='%'+('00'+_0x27e304['charCodeAt'](_0x5d26e2)['toString'](0x1*0x24d5+-0x47*0x51+-0xe4e))['slice'](-(0x456+-0x1f*0x7+-0x51*0xb));}return decodeURIComponent(_0x39f9c4);};_0x13b9['UdbuMl']=_0x17f9e9,_0x13b9['pUzPsZ']={},_0x13b9['LXTigt']=!![];}const _0x8a6f34=_0x35edfc[-0x7*0x3d1+0x1e*0x2+-0x1a7b*-0x1];_0x13b9['tQVgct']!==_0x8a6f34&&(_0x13b9['pUzPsZ']={},_0x13b9['tQVgct']=_0x8a6f34);const _0x16b7f1=_0x13b9['pUzPsZ'][_0xf428dd];return _0x16b7f1===undefined?(_0xfd8a51=_0x13b9['UdbuMl'](_0xfd8a51),_0x13b9['pUzPsZ'][_0xf428dd]=_0xfd8a51):_0xfd8a51=_0x16b7f1,_0xfd8a51;}export function nextReconnectDelay(_0x78d12e){const _0x20147f=_0x13b9;return Math[_0x20147f(0x153)](RETRY_MAX_MS,RETRY_MIN_MS*(-0xc0d+0x1*0x2d4+0x93b)**Math[_0x20147f(0x153)](Math[_0x20147f(0x15a)](_0x78d12e,0x3d6*-0x8+-0x19*-0x128+0x1c8),-0x9*-0x11a+0x919+-0x12f3));}function upgradeMetadata(_0xb4a40e,_0x1fc45e){const _0x4d315b=_0x13b9,_0x3cdffb={..._0xb4a40e??{}};if(process.env['MAR_NODE_SUPERVISED']==='1')_0x3cdffb[_0x4d315b(0x101)]=!![];else delete _0x3cdffb[_0x4d315b(0x101)];if(_0x1fc45e[_0x4d315b(0x22f)]===_0x4d315b(0xd3))delete _0x3cdffb[_0x4d315b(0x152)];else _0x3cdffb[_0x4d315b(0x152)]=_0x1fc45e;return _0x3cdffb;}export class NodeConnector{[_0x5e09f1(0xdb)]=crypto[_0x5e09f1(0xb0)]()[_0x5e09f1(0xec)](/-/g,'');[_0x5e09f1(0x1f7)];[_0x5e09f1(0x22c)];[_0x5e09f1(0x223)];[_0x5e09f1(0xc8)];set[_0x5e09f1(0x19c)](_0x174e1){const _0x452b79=_0x5e09f1;this[_0x452b79(0x1f7)][_0x452b79(0xc6)](_0x174e1);}[_0x5e09f1(0xdd)]=![];[_0x5e09f1(0xb6)];[_0x5e09f1(0xd9)];[_0x5e09f1(0x1d8)];[_0x5e09f1(0x19a)];[_0x5e09f1(0x1d7)];[_0x5e09f1(0x115)];[_0x5e09f1(0x1ae)];[_0x5e09f1(0x1e5)]=new WorkbenchEventService(envelope=>this[_0x5e09f1(0x193)](envelope),(category,payload)=>{const _0x18f2a1=_0x5e09f1,sessionId=workbenchPayloadSessionId(this[_0x18f2a1(0x212)],category,payload);return sessionId===undefined||!this[_0x18f2a1(0xeb)][_0x18f2a1(0x12e)][_0x18f2a1(0xa5)](sessionId);});[_0x5e09f1(0x1f9)];[_0x5e09f1(0x1a4)];[_0x5e09f1(0x154)]=new RunDomainState();[_0x5e09f1(0xce)];[_0x5e09f1(0x18d)];[_0x5e09f1(0xbf)]=new SessionDomainState();[_0x5e09f1(0xeb)];[_0x5e09f1(0xac)];[_0x5e09f1(0xfc)];[_0x5e09f1(0x1c6)];[_0x5e09f1(0x1ca)];[_0x5e09f1(0x1d0)];[_0x5e09f1(0x1d9)];[_0x5e09f1(0x15e)];[_0x5e09f1(0x1e8)];[_0x5e09f1(0x102)];[_0x5e09f1(0xcf)];[_0x5e09f1(0x203)];[_0x5e09f1(0x14c)];[_0x5e09f1(0x185)];[_0x5e09f1(0x130)];[_0x5e09f1(0x10a)];[_0x5e09f1(0x16f)];[_0x5e09f1(0x14d)];[_0x5e09f1(0x1f3)];[_0x5e09f1(0x1e7)];[_0x5e09f1(0x123)];[_0x5e09f1(0xf9)];[_0x5e09f1(0xa0)];[_0x5e09f1(0x178)];[_0x5e09f1(0xc3)];[_0x5e09f1(0x1e0)];[_0x5e09f1(0x183)];[_0x5e09f1(0x15f)];[_0x5e09f1(0x158)];[_0x5e09f1(0x155)]=new NodeOperationRouter();[_0x5e09f1(0xab)];[_0x5e09f1(0x1c5)];[_0x5e09f1(0x1b8)];[_0x5e09f1(0x127)];[_0x5e09f1(0x151)]=new CommandStateStore();[_0x5e09f1(0x209)]=new MissionRuntime(()=>undefined);[_0x5e09f1(0x16e)]=new Map();[_0x5e09f1(0x103)]=new Map();[_0x5e09f1(0x1bb)]=new MissionMcpServer(this[_0x5e09f1(0x209)],sessionId=>{const _0x55a700=_0x5e09f1,mission=this[_0x55a700(0x209)][_0x55a700(0x129)](sessionId),session=this[_0x55a700(0x212)][_0x55a700(0x231)](sessionId);if(mission===undefined||session===undefined)return;if(mission[_0x55a700(0x149)]!==_0x55a700(0x1d4))this[_0x55a700(0x15f)][_0x55a700(0x14e)](sessionId);this[_0x55a700(0xe0)](session,mission);});[_0x5e09f1(0x109)];[_0x5e09f1(0x1f5)];[_0x5e09f1(0x172)];[_0x5e09f1(0x18b)]=new WorkspaceDomainState();[_0x5e09f1(0x17f)]=new WorkspaceWatchService(this[_0x5e09f1(0x18b)],workspaceId=>this[_0x5e09f1(0x226)][_0x5e09f1(0x150)](workspaceId),workspaceId=>this[_0x5e09f1(0x226)][_0x5e09f1(0x14f)](workspaceId),workspaceId=>this[_0x5e09f1(0x1c7)]?.[_0x5e09f1(0x142)](workspaceId));[_0x5e09f1(0x226)]=new WorkspaceSessionService(this[_0x5e09f1(0x18b)],{'discover':workspaceId=>this[_0x5e09f1(0x19d)](workspaceId),'listPage':workspaceId=>this[_0x5e09f1(0xad)](_0x5e09f1(0x207),{'workspaceId':workspaceId,'limit':0x14}),'active':workspaceId=>this[_0x5e09f1(0x17f)][_0x5e09f1(0x1d6)](workspaceId,_0x5e09f1(0xbc)),'invalidate':workspaceId=>void this[_0x5e09f1(0x1c7)]?.[_0x5e09f1(0x169)](workspaceId,_0x5e09f1(0xbc)),'onPending':(workspaceId,waitMs)=>nodeLog(_0x5e09f1(0x14b),{'nodeId':this[_0x5e09f1(0xb6)]?.[_0x5e09f1(0xa8)],'workspaceId':workspaceId,'waitMs':waitMs})});[_0x5e09f1(0x135)]=new WorkspaceFileService(this[_0x5e09f1(0x18b)],()=>this[_0x5e09f1(0xb6)]?.[_0x5e09f1(0xef)]??[],workspaceId=>this[_0x5e09f1(0x18d)][_0x5e09f1(0x18e)](workspaceId));[_0x5e09f1(0x175)]=new WorkspaceUploadService(this[_0x5e09f1(0x18b)],workspaceId=>this[_0x5e09f1(0x18d)][_0x5e09f1(0x18e)](workspaceId));[_0x5e09f1(0x1b0)]=new WorkspaceChangeService(this[_0x5e09f1(0x18b)]);[_0x5e09f1(0x1c7)];[_0x5e09f1(0x1f1)];[_0x5e09f1(0x140)]=new RecentRunProjectionService(message=>this[_0x5e09f1(0xf6)](_0x5e09f1(0x12a),message));[_0x5e09f1(0x212)]=new NodeRuntimeState(()=>this[_0x5e09f1(0xb6)]?.[_0x5e09f1(0xa8)]??_0x5e09f1(0xff),workspaceId=>this[_0x5e09f1(0x1f1)]?.[_0x5e09f1(0x1cd)](workspaceId),Date[_0x5e09f1(0x199)],(run,session,userMessage)=>this[_0x5e09f1(0x140)][_0x5e09f1(0x168)](run,session,userMessage));[_0x5e09f1(0x108)]=new NodeMetrics();[_0x5e09f1(0x132)]=new RunEventService({'runtime':this[_0x5e09f1(0x212)],'metrics':this[_0x5e09f1(0x108)],'state':this[_0x5e09f1(0x154)],'isBootstrapSession':sessionId=>this[_0x5e09f1(0xeb)][_0x5e09f1(0x12e)][_0x5e09f1(0xa5)](sessionId),'presentSession':session=>this[_0x5e09f1(0x15e)][_0x5e09f1(0x22b)](session),'rejectBootstrap':(sessionId,code)=>this[_0x5e09f1(0xeb)][_0x5e09f1(0x205)](sessionId,code),'emitWorkbench':(category,payload)=>{const _0x5d4e2c=_0x5e09f1;if(category===_0x5d4e2c(0xd2)&&isPlainRecord(payload)&&_0x5d4e2c(0x1d3)in payload)this[_0x5d4e2c(0x1fc)](payload[_0x5d4e2c(0x1d3)]);else this[_0x5d4e2c(0x1bc)](category,payload);},'cleanupAttachments':runId=>this[_0x5e09f1(0x185)][_0x5e09f1(0x146)](runId),'expireImages':runId=>this[_0x5e09f1(0x185)][_0x5e09f1(0x1b7)](runId),'scheduleContextRefresh':sessionId=>this[_0x5e09f1(0xc3)][_0x5e09f1(0x227)](sessionId),'refreshWorkspaceSessions':workspaceId=>this[_0x5e09f1(0x1c7)][_0x5e09f1(0x160)](workspaceId,_0x5e09f1(0xbc)),'dispatchQueue':async(sessionId,delayMs=0x1*0x24d5+-0x47*0x51+-0xe5e)=>{const _0x4dc6bc=_0x5e09f1;if(this[_0x4dc6bc(0x172)][_0x4dc6bc(0x233)]())return;if(delayMs>0x456+-0x1f*0x7+-0x2f*0x13){this[_0x4dc6bc(0x15f)][_0x4dc6bc(0x227)](sessionId,delayMs);return;}await this[_0x4dc6bc(0x15f)][_0x4dc6bc(0x131)](sessionId);},'executionStarted':executionId=>this[_0x5e09f1(0x15f)][_0x5e09f1(0x1fb)](executionId),'keepRunActive':sessionId=>(this[_0x5e09f1(0x16e)][_0x5e09f1(0xa5)](sessionId)||this[_0x5e09f1(0x103)][_0x5e09f1(0xa5)](sessionId))&&this[_0x5e09f1(0x209)][_0x5e09f1(0x129)](sessionId)?.[_0x5e09f1(0x149)]===_0x5e09f1(0x1d4),'executionTerminating':(executionId,status)=>{const _0xa794ef=_0x5e09f1,pending=this[_0xa794ef(0x15f)][_0xa794ef(0x233)](executionId);if(pending?.[_0xa794ef(0x16d)]===undefined)return;const started=this[_0xa794ef(0x15f)][_0xa794ef(0x10e)](executionId),blocked=this[_0xa794ef(0x209)][_0xa794ef(0x11d)](pending[_0xa794ef(0x125)],status===_0xa794ef(0x133));if(blocked){this[_0xa794ef(0xc5)](pending[_0xa794ef(0x125)]),this[_0xa794ef(0x15f)][_0xa794ef(0x14e)](pending[_0xa794ef(0x125)]);const terminalMission=this[_0xa794ef(0x209)][_0xa794ef(0x129)](pending[_0xa794ef(0x125)]),session=this[_0xa794ef(0x212)][_0xa794ef(0x231)](pending[_0xa794ef(0x125)]);if(terminalMission!==undefined&&session!==undefined)this[_0xa794ef(0xe0)](session,terminalMission);return;}if(status!==_0xa794ef(0x133)||started)return;this[_0xa794ef(0xc5)](pending[_0xa794ef(0x125)]);const retry={'sessionId':pending[_0xa794ef(0x125)],'timer':setTimeout(()=>{const _0x51d600=_0xa794ef;this[_0x51d600(0x16e)][_0x51d600(0x121)](retry[_0x51d600(0x125)]);const mission=this[_0x51d600(0x209)][_0x51d600(0x129)](retry[_0x51d600(0x125)]);if(mission?.[_0x51d600(0x149)]!==_0x51d600(0x1d4)||mission['id']!==pending[_0x51d600(0x16d)]?.['id']||mission[_0x51d600(0xcc)]!==pending[_0x51d600(0x16d)][_0x51d600(0xcc)])return;void this[_0x51d600(0xcf)][_0x51d600(0x1a0)]({'sessionId':retry[_0x51d600(0x125)],'kind':_0x51d600(0x15c),'content':this[_0x51d600(0x209)][_0x51d600(0x1de)](retry[_0x51d600(0x125)],_0x51d600(0x15c)),'deliveryIntent':_0x51d600(0xf2),'mission':{'id':mission['id'],'revision':mission[_0x51d600(0xcc)]},'secretEnvironment':pending[_0x51d600(0x229)],...pending[_0x51d600(0xba)]===undefined?{}:{'personalInstructions':pending[_0x51d600(0xba)]}})[_0x51d600(0x1c9)](()=>undefined);},-0x15*0x3d1+0xb3*0x1+-0x8a0a*-0x1)};this[_0xa794ef(0x16e)][_0xa794ef(0x1dd)](pending[_0xa794ef(0x125)],retry),retry[_0xa794ef(0xc1)][_0xa794ef(0xd4)]();},'releaseExecution':executionId=>{const _0x464b36=_0x5e09f1;this[_0x464b36(0x1bb)][_0x464b36(0x188)](executionId),this[_0x464b36(0x15f)][_0x464b36(0x20c)](executionId);}});[_0x5e09f1(0xd1)]=new NativeSessionWatchService({'resolve':async sessionId=>this[_0x5e09f1(0x212)][_0x5e09f1(0x231)](sessionId)??this[_0x5e09f1(0xac)][_0x5e09f1(0x16c)](sessionId),'managedActive':session=>hasManagedActiveRun(this[_0x5e09f1(0x212)],session),'suspended':sessionId=>this[_0x5e09f1(0x102)][_0x5e09f1(0x12b)](sessionId),'refreshActivity':session=>this[_0x5e09f1(0xfc)][_0x5e09f1(0xdc)](session),'present':session=>this[_0x5e09f1(0x15e)][_0x5e09f1(0x22b)](session),'readPage':(session,limit)=>this[_0x5e09f1(0xfc)][_0x5e09f1(0x230)](session,{'limit':limit}),'readHistoryPage':(session,limit)=>this[_0x5e09f1(0xfc)][_0x5e09f1(0x1c4)](session,{'limit':limit}),'convergePage':convergeConversationWatchPage,'composeRuntimePage':composeConversationRuntimePage,'projectInitialPage':(session,page,_unit,limit)=>{const _0xc2aa9d=_0x5e09f1,context=this[_0xc2aa9d(0xc3)][_0xc2aa9d(0xa6)](session['id']);return this[_0xc2aa9d(0xc3)][_0xc2aa9d(0x227)](session),{'kind':_0xc2aa9d(0x111),'sequence':this[_0xc2aa9d(0x1e5)][_0xc2aa9d(0x1a1)](),'session':this[_0xc2aa9d(0x15e)][_0xc2aa9d(0x22b)](session),'runs':this[_0xc2aa9d(0x212)][_0xc2aa9d(0xb5)](session['id']),'queue':this[_0xc2aa9d(0x158)][_0xc2aa9d(0xa6)](session['id']),'context':context,'conversation':this[_0xc2aa9d(0x1c6)][_0xc2aa9d(0x225)](session,page,limit)};},'emitSession':session=>this[_0x5e09f1(0xc4)]({'session':session}),'emitPage':(session,page)=>this[_0x5e09f1(0x1f8)](_0x5e09f1(0xd2),{'sessionId':session['id'],'snapshot':this[_0x5e09f1(0x1c6)][_0x5e09f1(0x225)](session,page,-0x166*0x13+0x24da+-0xa3e)}),'nodeId':()=>this[_0x5e09f1(0xb6)]?.[_0x5e09f1(0xa8)]??_0x5e09f1(0xff),'nodeGeneration':()=>this[_0x5e09f1(0xdb)],'emitWatchEvent':payload=>this[_0x5e09f1(0xf6)](_0x5e09f1(0xfd),payload),'log':nodeLog});constructor(_0x469325={}){const _0xf09321=_0x5e09f1;this[_0xf09321(0xb6)]=_0x469325[_0xf09321(0xb6)],this[_0xf09321(0x1d7)]=_0x469325[_0xf09321(0x1d7)],this[_0xf09321(0x1ae)]=_0x469325[_0xf09321(0x1ae)]??CLAUDE_APPROVAL_TIMEOUT_MS,this[_0xf09321(0xd9)]=_0x469325[_0xf09321(0x1d8)]!==undefined,this[_0xf09321(0x1d8)]=_0x469325[_0xf09321(0x1d8)]??unavailableCapabilities(),this[_0xf09321(0x172)]=new NodeUpgradeCoordinator(()=>{const _0x52bb2a=_0xf09321;if(this[_0x52bb2a(0xb6)]===undefined)throw new Error(_0x52bb2a(0x106));return nodeUpgradeRequestPath(nodeDatabasePath(this[_0x52bb2a(0xb6)],this[_0x52bb2a(0x1d7)]));},()=>this[_0xf09321(0x154)][_0xf09321(0x1d4)][_0xf09321(0x17d)],_0x3e1e0f=>{const _0x106aab=_0xf09321;this[_0x106aab(0x1d8)]={...this[_0x106aab(0x1d8)],'metadata':upgradeMetadata(this[_0x106aab(0x1d8)][_0x106aab(0x1f6)],_0x3e1e0f)},this[_0x106aab(0x1f7)]?.[_0x106aab(0xf6)](_0x106aab(0x1d8),this[_0x106aab(0x1d8)]);},_0x469325[_0xf09321(0xa3)]??(()=>{const _0x385f77=_0xf09321;this[_0x385f77(0x14a)](),setImmediate(()=>process[_0x385f77(0x1a2)](-0x1*0x1475+-0x105*0x2+0x1*0x16ca));})),this[_0xf09321(0x1d8)]={...this[_0xf09321(0x1d8)],'metadata':upgradeMetadata(this[_0xf09321(0x1d8)][_0xf09321(0x1f6)],this[_0xf09321(0x172)][_0xf09321(0xa6)]())};const _0x14b389=_0x469325[_0xf09321(0x19a)]??detectCapabilitiesAsync;this[_0xf09321(0x19a)]=async()=>{const _0x25b4e4=_0xf09321,_0xfb2f3d=await _0x14b389();return{..._0xfb2f3d,'metadata':upgradeMetadata(_0xfb2f3d[_0x25b4e4(0x1f6)],this[_0x25b4e4(0x172)][_0x25b4e4(0xa6)]())};},this[_0xf09321(0x115)]=_0x469325[_0xf09321(0x115)]??!![],this[_0xf09321(0x1f9)]=_0x469325[_0xf09321(0x1f9)]===undefined?undefined:new FakeTestRunner(_0x469325[_0xf09321(0x1f9)]),this[_0xf09321(0x1a4)]=_0x469325[_0xf09321(0x1a4)],this[_0xf09321(0x185)]=new RunAttachmentService(_0x1b969a=>this[_0xf09321(0x178)][_0xf09321(0x211)](_0x1b969a[_0xf09321(0x1ab)])[_0xf09321(0x217)](_0x1b969a)),this[_0xf09321(0x10a)]=new CodexRunner(_0x469325[_0xf09321(0x10a)],_0x469325[_0xf09321(0x147)]),this[_0xf09321(0x16f)]=new CodexManagedRunController(this[_0xf09321(0x10a)],{'available':()=>this[_0xf09321(0x1d8)][_0xf09321(0x104)][_0xf09321(0xf5)],'intercepted':()=>this[_0xf09321(0x1f9)]!==undefined,'active':this[_0xf09321(0x154)][_0xf09321(0x1d4)],'addActive':_0x3b498b=>this[_0xf09321(0x154)][_0xf09321(0x1d4)][_0xf09321(0x1da)](_0x3b498b),'removeActive':_0x1726ae=>this[_0xf09321(0x154)][_0xf09321(0x1d4)][_0xf09321(0x121)](_0x1726ae),'adopt':_0x4e1890=>this[_0xf09321(0x212)][_0xf09321(0x9f)](_0x4e1890),'session':_0x55a5f9=>this[_0xf09321(0x212)][_0xf09321(0x231)](_0x55a5f9),'runStatus':_0x26d17a=>this[_0xf09321(0x212)][_0xf09321(0x1b2)](_0x26d17a)?.[_0xf09321(0x149)],'run':_0x38ae80=>this[_0xf09321(0x212)][_0xf09321(0x1b2)](_0x38ae80),'interrupted':_0x5ab136=>this[_0xf09321(0x154)][_0xf09321(0x1ba)][_0xf09321(0xa5)](_0x5ab136),'parseAttachments':parseRunnerImageAttachments,'materialize':(_0x39c48d,_0x1ec6d1)=>this[_0xf09321(0x185)][_0xf09321(0x1ef)](_0x39c48d,_0x1ec6d1),'completeCancelled':_0x1ee5de=>this[_0xf09321(0x1ca)][_0xf09321(0x15d)](_0x1ee5de),'promoteSession':(_0x3f8ae2,_0xf21ed8)=>this[_0xf09321(0xeb)][_0xf09321(0x186)](_0x3f8ae2,_0xf21ed8),'send':(_0x24916b,_0x158a67)=>this[_0xf09321(0xf6)](_0x24916b,_0x158a67),'emit':(_0x399428,_0x1fc763,_0x2711dc,_0xed0355)=>this[_0xf09321(0xce)][_0xf09321(0x1b6)](_0x399428,_0x1fc763,_0x2711dc,_0xed0355),'cancel':(_0x190d22,_0xe8513a,_0x589df9,_0x3d56c8,_0x17059d)=>this[_0xf09321(0x1ca)][_0xf09321(0x198)](_0x190d22,_0xe8513a,_0x589df9,_0x3d56c8,_0x17059d),'createApproval':_0x804f7b=>this[_0xf09321(0x212)][_0xf09321(0x1b5)](_0x804f7b),'publishApproval':_0x3c2721=>this[_0xf09321(0xce)][_0xf09321(0x1e1)](_0x3c2721),'emitItem':(_0x14dba2,_0x5664cf)=>this[_0xf09321(0x1e6)](_0x14dba2,_0x5664cf),'appendImages':(_0x32dfc2,_0x18ee3f)=>this[_0xf09321(0x185)][_0xf09321(0x16b)](_0x32dfc2,_0x18ee3f[_0xf09321(0x18f)](isRunnerImageAttachment)),'syncTitle':(_0xd1ef4,_0x156f3a,_0x106993)=>this[_0xf09321(0x1d9)][_0xf09321(0xd8)](_0xd1ef4,_0x156f3a,_0x106993),'commandState':(_0x196d33,_0x37412d)=>this[_0xf09321(0x151)][_0xf09321(0x129)](_0x196d33,_0x37412d),'setCommandState':(_0x5e81e8,_0x291afb)=>this[_0xf09321(0x151)][_0xf09321(0x1dd)](_0x5e81e8,_0x291afb),'clearCommandState':(_0x1d3c9f,_0x5bff3d)=>this[_0xf09321(0x151)][_0xf09321(0x163)](_0x1d3c9f,_0x5bff3d),'commandStates':_0x1f1594=>this[_0xf09321(0x151)][_0xf09321(0x1b4)](_0x1f1594),'hasActiveSessionLease':_0x1253b0=>this[_0xf09321(0x212)][_0xf09321(0x126)](_0x1253b0),'fast':_0x9c69c6=>this[_0xf09321(0xad)](_0xf09321(0xe6),{'runner':_0xf09321(0x104),'commandId':_0xf09321(0xaa),'input':_0x9c69c6})}),this[_0xf09321(0x10a)][_0xf09321(0x197)](_0x4fda84=>this[_0xf09321(0x16f)][_0xf09321(0xbb)](_0x4fda84)),this[_0xf09321(0x14d)]=new ClaudeCodeRunner(_0x469325[_0xf09321(0x14d)]),this[_0xf09321(0x1f3)]=new OpenCodeRunner(_0x469325[_0xf09321(0x1f3)]),this[_0xf09321(0x1e7)]=new MarAgentRunner(),this[_0xf09321(0x123)]=new MarAgentManagedRunController(this[_0xf09321(0x1e7)],{'active':this[_0xf09321(0x154)][_0xf09321(0x1d4)],'adopt':_0x3c86b2=>this[_0xf09321(0x212)][_0xf09321(0x9f)](_0x3c86b2),'promote':(_0x45f767,_0x446942)=>this[_0xf09321(0xeb)][_0xf09321(0x186)](_0x45f767,_0x446942),'syncTitle':(_0x524862,_0x240033)=>this[_0xf09321(0x1d9)][_0xf09321(0xd8)](_0x524862,_0x524862,_0x240033),'emit':(_0x4de955,_0xc3b279,_0x4fa221,_0x57ab02)=>this[_0xf09321(0xce)][_0xf09321(0x1b6)](_0x4de955,_0xc3b279,_0x4fa221,_0x57ab02),'emitItem':(_0x51f586,_0x530346)=>this[_0xf09321(0x1e6)](_0x51f586,_0x530346),'createApproval':_0x4a33b7=>this[_0xf09321(0x212)][_0xf09321(0x1b5)](_0x4a33b7),'publishApproval':_0x184f91=>this[_0xf09321(0xce)][_0xf09321(0x1e1)](_0x184f91),'run':_0x4ee5bb=>this[_0xf09321(0x212)][_0xf09321(0x1b2)](_0x4ee5bb),'commandState':(_0x22a4e3,_0x150ea4)=>this[_0xf09321(0x151)][_0xf09321(0x129)](_0x22a4e3,_0x150ea4),'setCommandState':(_0x231601,_0xcac54a)=>this[_0xf09321(0x151)][_0xf09321(0x1dd)](_0x231601,_0xcac54a),'clearCommandState':(_0xe4997d,_0x55c388)=>this[_0xf09321(0x151)][_0xf09321(0x163)](_0xe4997d,_0x55c388),'commandStates':_0x529e84=>this[_0xf09321(0x151)][_0xf09321(0x1b4)](_0x529e84),'webSearch':(_0x239d05,_0x2966b0)=>this[_0xf09321(0x166)](_0x239d05,_0x2966b0)}),this[_0xf09321(0x1e7)][_0xf09321(0xa7)](_0x10d141=>this[_0xf09321(0x123)][_0xf09321(0x235)](_0x10d141)),this[_0xf09321(0xf9)]=new OpenCodeManagedRunController(this[_0xf09321(0x1f3)],{'intercepted':()=>this[_0xf09321(0x1f9)]!==undefined,'active':this[_0xf09321(0x154)][_0xf09321(0x1d4)],'parseAttachments':parseRunnerImageAttachments,'persistAttachments':(_0xe415ed,_0x23d767,_0x200cb3)=>this[_0xf09321(0x185)][_0xf09321(0x21e)](_0xe415ed,_0x23d767+_0xf09321(0x1dc),_0x200cb3),'emit':(_0x12905c,_0x44794e,_0x568456,_0xd709b3)=>this[_0xf09321(0xce)][_0xf09321(0x1b6)](_0x12905c,_0x44794e,_0x568456,_0xd709b3),'emitItem':(_0xb859b0,_0x57966f)=>this[_0xf09321(0x1e6)](_0xb859b0,_0x57966f),'adopt':_0x598f67=>this[_0xf09321(0x212)][_0xf09321(0x9f)](_0x598f67),'run':_0x142c43=>{const _0x127f7b=_0xf09321,_0x3d112f=this[_0x127f7b(0x212)][_0x127f7b(0x1b2)](_0x142c43);if(_0x3d112f===undefined)throw new Error(_0x127f7b(0x1f0));return _0x3d112f;},'hasActiveSessionLease':_0x184107=>this[_0xf09321(0x212)][_0xf09321(0x126)](_0x184107),'promote':(_0x466f66,_0x12ea9f)=>this[_0xf09321(0xeb)][_0xf09321(0x186)](_0x466f66,_0x12ea9f),'rememberNative':(_0x282126,_0x59abf2)=>this[_0xf09321(0x1d9)][_0xf09321(0x11b)](_0x282126,_0x59abf2),'send':(_0x43d5e4,_0x5f912f)=>this[_0xf09321(0xf6)](_0x43d5e4,_0x5f912f),'createApproval':_0x2399db=>this[_0xf09321(0x212)][_0xf09321(0x1b5)](_0x2399db),'expireApproval':_0xcf9802=>{const _0x7b143a=_0xf09321;this[_0x7b143a(0x212)][_0x7b143a(0xb9)](_0xcf9802);},'publishApproval':_0x5b9e17=>this[_0xf09321(0xce)][_0xf09321(0x1e1)](_0x5b9e17),'commandState':(_0x45d6df,_0x5c50ba)=>this[_0xf09321(0x151)][_0xf09321(0x129)](_0x45d6df,_0x5c50ba),'setCommandState':(_0x15aa18,_0x4e8dfc)=>this[_0xf09321(0x151)][_0xf09321(0x1dd)](_0x15aa18,_0x4e8dfc),'clearCommandState':(_0x27aa0b,_0x5ae792)=>this[_0xf09321(0x151)][_0xf09321(0x163)](_0x27aa0b,_0x5ae792),'commandStates':_0x1ab39d=>this[_0xf09321(0x151)][_0xf09321(0x1b4)](_0x1ab39d)},this[_0xf09321(0x1ae)]),this[_0xf09321(0xa0)]=new ClaudeManagedRunController(this[_0xf09321(0x14d)],{'intercepted':()=>this[_0xf09321(0x1f9)]!==undefined,'active':this[_0xf09321(0x154)][_0xf09321(0x1d4)],'parseAttachments':parseRunnerImageAttachments,'emit':(_0x50a4ef,_0x1620bf,_0x1076e0,_0x23bb16)=>this[_0xf09321(0xce)][_0xf09321(0x1b6)](_0x50a4ef,_0x1620bf,_0x1076e0,_0x23bb16),'adopt':_0x5c5923=>this[_0xf09321(0x212)][_0xf09321(0x9f)](_0x5c5923),'run':_0x274216=>this[_0xf09321(0x212)][_0xf09321(0x1b2)](_0x274216),'hasActiveSessionLease':_0x3a68e4=>this[_0xf09321(0x212)][_0xf09321(0x126)](_0x3a68e4),'session':_0x403dd6=>this[_0xf09321(0x212)][_0xf09321(0x231)](_0x403dd6),'completeCancelled':_0x4bc7c1=>this[_0xf09321(0x1ca)][_0xf09321(0x15d)](_0x4bc7c1),'requestUserInput':(_0x491193,_0x272849,_0x5381d9)=>this[_0xf09321(0x1ca)][_0xf09321(0xd5)](_0x491193,_0x272849,_0x5381d9),'requestApproval':(_0x46c610,_0x5e4a1a,_0x1ce3f9)=>this[_0xf09321(0x1ca)][_0xf09321(0xc0)](_0x46c610,_0x5e4a1a,_0x1ce3f9),'rememberNative':(_0x383eae,_0x543f72)=>this[_0xf09321(0x1d9)][_0xf09321(0x11b)](_0x383eae,_0x543f72),'promote':(_0x47df41,_0x1edf05)=>this[_0xf09321(0xeb)][_0xf09321(0x186)](_0x47df41,_0x1edf05),'send':(_0x30426c,_0x33096d)=>this[_0xf09321(0xf6)](_0x30426c,_0x33096d),'emitItem':(_0x42fe7f,_0x36ac6a)=>this[_0xf09321(0x1e6)](_0x42fe7f,_0x36ac6a),'syncTitle':(_0x392a0f,_0x164cb6,_0x334bb8)=>this[_0xf09321(0x1d9)][_0xf09321(0xd8)](_0x392a0f,_0x164cb6,_0x334bb8),'setChannelToken':(_0x139584,_0x272a70)=>this[_0xf09321(0x212)][_0xf09321(0xe5)](_0x139584,_0x272a70),'commandState':(_0x183b65,_0x210e73)=>this[_0xf09321(0x151)][_0xf09321(0x129)](_0x183b65,_0x210e73),'setCommandState':(_0x111e44,_0x2ca35d)=>this[_0xf09321(0x151)][_0xf09321(0x1dd)](_0x111e44,_0x2ca35d),'clearCommandState':(_0x46bb3b,_0xf7649e)=>this[_0xf09321(0x151)][_0xf09321(0x163)](_0x46bb3b,_0xf7649e),'commandStates':_0x4711f3=>this[_0xf09321(0x151)][_0xf09321(0x1b4)](_0x4711f3)}),this[_0xf09321(0x178)]=new RunnerRegistry([this[_0xf09321(0x1f3)],this[_0xf09321(0x1e7)],this[_0xf09321(0x10a)],this[_0xf09321(0x14d)],...this[_0xf09321(0x1f9)]===undefined?[]:[this[_0xf09321(0x1f9)]]]),this[_0xf09321(0x1d9)]=new ManagedRunnerSessionService(this[_0xf09321(0x212)],this[_0xf09321(0x178)],_0x1b877d=>this[_0xf09321(0xc4)]({'session':this[_0xf09321(0x15e)][_0xf09321(0x22b)](_0x1b877d)})),this[_0xf09321(0x1ca)]=new RunnerInteractionService({'runtime':this[_0xf09321(0x212)],'state':this[_0xf09321(0x154)],'codex':()=>this[_0xf09321(0x10a)],'claude':()=>this[_0xf09321(0x14d)],'runners':this[_0xf09321(0x178)],'emitRun':(_0x26b091,_0x58c349,_0x37aae3,_0x386cdb)=>this[_0xf09321(0xce)][_0xf09321(0x1b6)](_0x26b091,_0x58c349,_0x37aae3,_0x386cdb),'emitItem':(_0x14990d,_0x267bf4)=>this[_0xf09321(0x1e6)](_0x14990d,_0x267bf4),'approvalTimeoutMs':this[_0xf09321(0x1ae)],'publishApproval':_0x114b03=>this[_0xf09321(0xce)][_0xf09321(0x1e1)](_0x114b03)}),this[_0xf09321(0x1d0)]=new RunnerChannelMessageService({'interactions':this[_0xf09321(0x1ca)],'send':(_0x3e81b9,_0x3f5c3a,_0x3a58a9)=>this[_0xf09321(0xf6)](_0x3e81b9,_0x3f5c3a,_0x3a58a9)}),this[_0xf09321(0x15e)]=new SessionPresentationService({'database':()=>this[_0xf09321(0x1f1)],'runtime':this[_0xf09321(0x212)],'commands':this[_0xf09321(0x151)],'runners':this[_0xf09321(0x178)],'capabilities':()=>this[_0xf09321(0x1d8)],'hasManagedActiveRun':_0x385399=>hasManagedActiveRun(this[_0xf09321(0x212)],_0x385399),'externalActivity':_0x1ea33d=>this[_0xf09321(0xbf)][_0xf09321(0x12f)][_0xf09321(0x129)](_0x1ea33d),'projectionForNative':_0x1745ce=>this[_0xf09321(0xac)][_0xf09321(0x17b)](_0x1745ce)}),this[_0xf09321(0xac)]=new NativeSessionProjectionService({'database':()=>this[_0xf09321(0x1f1)],'nodeId':()=>this[_0xf09321(0xb6)]?.[_0xf09321(0xa8)]??_0xf09321(0x19e),'runtime':this[_0xf09321(0x212)],'runners':this[_0xf09321(0x178)],'capabilities':()=>this[_0xf09321(0x1d8)],'state':this[_0xf09321(0xbf)],'commands':this[_0xf09321(0x151)],'present':_0x5ace20=>this[_0xf09321(0x15e)][_0xf09321(0x22b)](_0x5ace20)}),this[_0xf09321(0xfc)]=new ConversationHistoryService({'runtime':this[_0xf09321(0x212)],'runners':this[_0xf09321(0x178)],'capabilities':()=>this[_0xf09321(0x1d8)],'attachments':this[_0xf09321(0x185)],'snapshotSequence':()=>this[_0xf09321(0x1e5)][_0xf09321(0x1a1)](),'hasManagedActiveRun':_0x5359fd=>hasManagedActiveRun(this[_0xf09321(0x212)],_0x5359fd),'setExternalActivity':(_0x2a5bfd,_0x3b5269)=>this[_0xf09321(0xbf)][_0xf09321(0x12f)][_0xf09321(0x1dd)](_0x2a5bfd,_0x3b5269)}),this[_0xf09321(0x1c6)]=new ConversationSegmentService((_0x1d51d2,_0x469893)=>this[_0xf09321(0xfc)][_0xf09321(0x230)](_0x1d51d2,_0x469893)),this[_0xf09321(0xc3)]=new SessionContextService({'runners':this[_0xf09321(0x178)],'session':_0x52629a=>this[_0xf09321(0x212)][_0xf09321(0x231)](_0x52629a),'stopped':()=>this[_0xf09321(0xdd)],'publish':_0x4d3fac=>this[_0xf09321(0xc4)](_0x4d3fac)}),this[_0xf09321(0x1e0)]=new RunWorkbenchService({'runtime':this[_0xf09321(0x212)],'readImage':async(_0x107cae,_0x2fbe5e)=>this[_0xf09321(0x185)][_0xf09321(0x230)](_0x107cae,_0x2fbe5e)??await this[_0xf09321(0x185)][_0xf09321(0x117)](_0x107cae,_0x2fbe5e),'respondUserInput':(_0x364c21,_0x1e1a69,_0x185611)=>this[_0xf09321(0x1ca)][_0xf09321(0x1ac)](_0x364c21,_0x1e1a69,_0x185611),'pauseQueue':_0x3d691c=>this[_0xf09321(0x158)][_0xf09321(0x114)](_0x3d691c),'emitRun':(_0x5b19a0,_0x2924b3,_0x59fd6c,_0x3dcea0)=>this[_0xf09321(0xce)][_0xf09321(0x1b6)](_0x5b19a0,_0x2924b3,_0x59fd6c,_0x3dcea0),'control':(_0x5419c2,_0x322177)=>this[_0xf09321(0x22c)][_0xf09321(0x182)](JSON[_0xf09321(0x118)](createEnvelope(_0x5419c2,_0x322177))),'markInterrupted':_0x50a9a0=>this[_0xf09321(0x154)][_0xf09321(0x1ba)][_0xf09321(0x1da)](_0x50a9a0)}),this[_0xf09321(0x183)]=new SessionQueryService({'runtime':this[_0xf09321(0x212)],'runners':this[_0xf09321(0x178)],'resolve':_0x186515=>this[_0xf09321(0xac)][_0xf09321(0xd6)](_0x186515),'present':_0x1da6ba=>this[_0xf09321(0x15e)][_0xf09321(0x22b)](_0x1da6ba),'history':(_0x3a0bc1,_0x5a08e6)=>this[_0xf09321(0xfc)][_0xf09321(0x230)](_0x3a0bc1,_0x5a08e6),'segments':(_0x5ea1d1,_0x2a630d)=>this[_0xf09321(0x1c6)][_0xf09321(0x230)](_0x5ea1d1,_0x2a630d),'context':this[_0xf09321(0xc3)],'discover':(_0x33eb75,_0x5bdb0b)=>this[_0xf09321(0xac)][_0xf09321(0x180)](_0x33eb75,_0x5bdb0b),'workspaceIdForCwd':_0x34b869=>this[_0xf09321(0x1f1)]?.[_0xf09321(0x22e)]()[_0xf09321(0x9d)](_0x149f2d=>_0x149f2d[_0xf09321(0x195)]===_0x34b869)?.['id']}),this[_0xf09321(0x15f)]=new ContinuousRunCoordinator({'runtime':this[_0xf09321(0x212)],'emitQueue':(_0x1f00fc,_0x3de836)=>this[_0xf09321(0xce)][_0xf09321(0xcd)](_0x1f00fc,_0x3de836),'clearImages':_0x3bdf33=>this[_0xf09321(0x185)][_0xf09321(0x163)](_0x3bdf33),'cleanupAttachments':_0x4c498e=>this[_0xf09321(0x185)][_0xf09321(0x146)](_0x4c498e),'migrateAssets':(_0xc460eb,_0x5f09dd)=>this[_0xf09321(0x185)][_0xf09321(0xae)](_0xc460eb,_0x5f09dd),'emitRun':(_0x265075,_0x4a29bd,_0x26cada,_0x2c9ac6)=>this[_0xf09321(0xce)][_0xf09321(0x1b6)](_0x265075,_0x4a29bd,_0x26cada,_0x2c9ac6),'emitConversation':_0xe41a5d=>this[_0xf09321(0x1fc)](_0xe41a5d),'control':(_0x519c9f,_0x21261f)=>this[_0xf09321(0x22c)][_0xf09321(0x182)](JSON[_0xf09321(0x118)](createEnvelope(_0x519c9f,_0x21261f))),'stopped':()=>this[_0xf09321(0xdd)],'markInterrupted':_0xe139cc=>this[_0xf09321(0x154)][_0xf09321(0x1ba)][_0xf09321(0x1da)](_0xe139cc),'mcps':_0x4879d2=>this[_0xf09321(0x1f1)]?.[_0xf09321(0xb8)](_0x4879d2)??[],'afterExecutionStarted':async _0x1f3aef=>{const _0x4d89ca=_0xf09321;if(_0x1f3aef[_0x4d89ca(0x16d)]===undefined)return;const _0x103b7f=this[_0x4d89ca(0x209)][_0x4d89ca(0x129)](_0x1f3aef[_0x4d89ca(0x125)]);if(_0x103b7f?.[_0x4d89ca(0x149)]!==_0x4d89ca(0x1d4)||_0x103b7f['id']!==_0x1f3aef[_0x4d89ca(0x16d)]['id']||_0x103b7f[_0x4d89ca(0xcc)]!==_0x1f3aef[_0x4d89ca(0x16d)][_0x4d89ca(0xcc)])return;const _0x2b09c6=this[_0x4d89ca(0x209)][_0x4d89ca(0x13c)](_0x1f3aef[_0x4d89ca(0x125)]),_0xd49e45=this[_0x4d89ca(0x212)][_0x4d89ca(0x231)](_0x1f3aef[_0x4d89ca(0x125)]);if(_0x2b09c6!==undefined&&_0xd49e45!==undefined)this[_0x4d89ca(0xe0)](_0xd49e45,_0x2b09c6);await this[_0x4d89ca(0x159)]({'sessionId':_0x1f3aef[_0x4d89ca(0x125)],'mission':{'id':_0x103b7f['id'],'revision':_0x103b7f[_0x4d89ca(0xcc)]},'secretEnvironment':_0x1f3aef[_0x4d89ca(0x229)],..._0x1f3aef[_0x4d89ca(0xba)]===undefined?{}:{'personalInstructions':_0x1f3aef[_0x4d89ca(0xba)]}});},'missionMcp':async _0x1ffea4=>{const _0x27b6ac=_0xf09321;if(_0x1ffea4[_0x27b6ac(0x16d)]===undefined)throw new Error(_0x27b6ac(0xfb));const _0x893602=await this[_0x27b6ac(0x1bb)][_0x27b6ac(0x19f)]({'executionId':_0x1ffea4[_0x27b6ac(0x112)],'sessionId':_0x1ffea4[_0x27b6ac(0x125)],'missionId':_0x1ffea4[_0x27b6ac(0x16d)]['id'],'revision':_0x1ffea4[_0x27b6ac(0x16d)][_0x27b6ac(0xcc)]});return{'installation':{'targetKind':_0x27b6ac(0x22d),'targetId':_0x1ffea4[_0x27b6ac(0x213)],'catalogEntryId':_0x27b6ac(0xee),'serverName':_0x27b6ac(0x219),'displayName':_0x27b6ac(0x120),'version':_0x27b6ac(0x18a),'enabled':!![],'runtime':{'transport':_0x27b6ac(0x1a8),'url':_0x27b6ac(0x210),'headers':{}},'configuration':_0x893602[_0x27b6ac(0x19f)],'installedAt':Date[_0x27b6ac(0x199)](),..._0x893602[_0x27b6ac(0x19f)]},'secrets':_0x893602[_0x27b6ac(0x100)]};}}),this[_0xf09321(0x158)]=new WorkspaceQueueWorkbenchService({'runtime':this[_0xf09321(0x212)],'coordinator':this[_0xf09321(0x15f)],'emit':(_0x35c14f,_0x15ed18)=>this[_0xf09321(0xce)][_0xf09321(0xcd)](_0x35c14f,_0x15ed18),'prepareInput':(_0x5f16fe,_0x26389a,_0x5b2533)=>this[_0xf09321(0x178)][_0xf09321(0x211)](_0x5f16fe)[_0xf09321(0xa9)](_0x26389a,_0x5b2533)}),this[_0xf09321(0xeb)]=new SessionIdentityService({'runtime':this[_0xf09321(0x212)],'persist':(_0x5c8fb6,_0x73cd47)=>{const _0x3e86c6=_0xf09321;if(_0x5c8fb6[_0x3e86c6(0x1ed)]===null||_0x5c8fb6[_0x3e86c6(0x1bf)]===null||_0x5c8fb6[_0x3e86c6(0x1d2)]===null)return;this[_0x3e86c6(0x1f1)]?.[_0x3e86c6(0x218)]({'runner':_0x5c8fb6[_0x3e86c6(0x1ab)],'externalSessionId':_0x73cd47,'workspaceId':_0x5c8fb6[_0x3e86c6(0x213)],'model':_0x5c8fb6[_0x3e86c6(0x1ed)],'effort':_0x5c8fb6[_0x3e86c6(0x1bf)],'access':_0x5c8fb6[_0x3e86c6(0x1d2)]});},'migrateCommands':(_0x286b9a,_0x3e6dd1)=>this[_0xf09321(0x151)][_0xf09321(0x1ce)](_0x286b9a,_0x3e6dd1),'migrateMission':(_0x382809,_0x515f6e)=>{const _0xf609b7=_0xf09321;this[_0xf609b7(0x209)][_0xf609b7(0x165)](_0x382809,_0x515f6e),this[_0xf609b7(0x1bb)][_0xf609b7(0x165)](_0x382809,_0x515f6e);const _0x3cf40f=this[_0xf609b7(0x16e)][_0xf609b7(0x129)](_0x382809);_0x3cf40f!==undefined&&(this[_0xf609b7(0x16e)][_0xf609b7(0x121)](_0x382809),_0x3cf40f[_0xf609b7(0x125)]=_0x515f6e,this[_0xf609b7(0x16e)][_0xf609b7(0x1dd)](_0x515f6e,_0x3cf40f));const _0x2bdeb6=this[_0xf609b7(0x103)][_0xf609b7(0x129)](_0x382809);_0x2bdeb6!==undefined&&(this[_0xf609b7(0x103)][_0xf609b7(0x121)](_0x382809),this[_0xf609b7(0x103)][_0xf609b7(0x1dd)](_0x515f6e,_0x2bdeb6));},'migrateQueue':(_0x3e5631,_0x4cdaf0)=>this[_0xf09321(0x15f)][_0xf09321(0x165)](_0x3e5631,_0x4cdaf0),'migrateRunnerState':(_0xa76024,_0x518288)=>this[_0xf09321(0xce)][_0xf09321(0x10f)](_0xa76024,_0x518288),'emitSession':_0x50c5ba=>this[_0xf09321(0xc4)]({'session':_0x50c5ba}),'emitRun':_0x2593e4=>this[_0xf09321(0x1f8)](_0xf09321(0x143),{'run':_0x2593e4}),'emitQueue':_0x4b0da5=>this[_0xf09321(0x15f)][_0xf09321(0x1fa)](_0x4b0da5),'emitTurn':_0x3396e6=>this[_0xf09321(0x1fc)](_0x3396e6)}),this[_0xf09321(0x1e8)]=new SessionLifecycleService({'database':()=>{const _0x574a6a=_0xf09321;if(this[_0x574a6a(0x1f1)]===undefined)throw new Error(_0x574a6a(0xe1));return this[_0x574a6a(0x1f1)];},'runtime':this[_0xf09321(0x212)],'runners':this[_0xf09321(0x178)],'projection':this[_0xf09321(0xac)],'identity':this[_0xf09321(0xeb)],'present':_0xb2acad=>this[_0xf09321(0x15e)][_0xf09321(0x22b)](_0xb2acad),'emitSession':_0x2dc31f=>this[_0xf09321(0xc4)]({'session':this[_0xf09321(0x15e)][_0xf09321(0x22b)](_0x2dc31f)}),'execute':(_0x4653e7,_0x1d2d46)=>this[_0xf09321(0xad)](_0x4653e7,_0x1d2d46),'interceptedSessionId':_0x2c5eaf=>this[_0xf09321(0x1f9)]===undefined?undefined:_0xf09321(0x145)+_0x2c5eaf}),this[_0xf09321(0x102)]=new ExternalSessionResumeService({'runtime':this[_0xf09321(0x212)],'runners':this[_0xf09321(0x178)],'state':this[_0xf09321(0xbf)],'available':_0x7b4725=>this[_0xf09321(0x178)][_0xf09321(0x211)](_0x7b4725)[_0xf09321(0xf5)](this[_0xf09321(0x1d8)]),'projectionFor':_0x41022f=>this[_0xf09321(0xac)][_0xf09321(0x17b)](_0x41022f),'managedAliasFor':_0x4750c2=>this[_0xf09321(0xac)][_0xf09321(0x196)](_0x4750c2),'ensureConfiguration':_0x5b3099=>this[_0xf09321(0xac)][_0xf09321(0xc7)](_0x5b3099),'configuration':_0x6a35f8=>this[_0xf09321(0xac)][_0xf09321(0xe8)](_0x6a35f8),'workspacePath':_0x2356b4=>this[_0xf09321(0x1f1)]?.[_0xf09321(0x1cd)](_0x2356b4)?.[_0xf09321(0x195)],'rememberNative':(_0xfe2695,_0x34f1e2)=>this[_0xf09321(0x1d9)][_0xf09321(0x11b)](_0xfe2695,_0x34f1e2),'stage':_0x4693d1=>{const _0x124522=_0xf09321,_0x1c2e6d=this[_0x124522(0xac)][_0x124522(0xe8)](_0x4693d1);return this[_0x124522(0x212)][_0x124522(0x20b)]({'workspaceId':_0x4693d1[_0x124522(0x213)],'runner':_0x4693d1[_0x124522(0x1ab)],'externalSessionId':_0x4693d1[_0x124522(0xd0)]??_0x4693d1['id'],'nativeControl':_0x124522(0x116),'cwd':_0x4693d1[_0x124522(0x184)],'model':_0x1c2e6d[_0x124522(0x1ed)],'effort':_0x1c2e6d[_0x124522(0x1bf)],'access':_0x1c2e6d[_0x124522(0x1d2)],..._0x4693d1[_0x124522(0x11e)]===null?{}:{'title':_0x4693d1[_0x124522(0x11e)]},..._0x4693d1[_0x124522(0xa4)]===null?{}:{'customTitle':_0x4693d1[_0x124522(0xa4)]}});},'resolve':_0x3096c1=>this[_0xf09321(0xac)][_0xf09321(0xd6)](_0x3096c1)}),this[_0xf09321(0x14c)]=new SessionCommandService({'runtime':this[_0xf09321(0x212)],'runners':this[_0xf09321(0x178)],'projection':this[_0xf09321(0xac)],'resume':this[_0xf09321(0x102)],'profiles':()=>this[_0xf09321(0xab)][_0xf09321(0x174)](),'present':_0x1ce8f1=>this[_0xf09321(0x15e)][_0xf09321(0x22b)](_0x1ce8f1),'resumeQueueAfterCommandRun':_0x13e7d6=>this[_0xf09321(0x158)][_0xf09321(0x13a)](_0x13e7d6),'beginMission':_0x4fb0db=>{const _0x2fc217=_0xf09321,_0x5f55af=this[_0x2fc217(0x151)][_0x2fc217(0x129)](_0x4fb0db['id'],_0x2fc217(0x16d));if(_0x5f55af?.[_0x2fc217(0x1d4)]===!![])return{'session':this[_0x2fc217(0x15e)][_0x2fc217(0x22b)](_0x4fb0db),'missionAlreadyActive':!![]};_0x5f55af!==undefined&&(this[_0x2fc217(0x209)][_0x2fc217(0x163)](_0x4fb0db['id']),this[_0x2fc217(0x151)][_0x2fc217(0x163)](_0x4fb0db['id'],_0x2fc217(0x16d)));const _0x5cb03c=this[_0x2fc217(0x10d)](_0x4fb0db);return this[_0x2fc217(0x15f)][_0x2fc217(0x234)](_0x4fb0db['id']),this[_0x2fc217(0x151)][_0x2fc217(0x1dd)](_0x4fb0db['id'],this[_0x2fc217(0xbd)]()),this[_0x2fc217(0x1f8)](_0x2fc217(0x21d),{'session':this[_0x2fc217(0x15e)][_0x2fc217(0x22b)](_0x5cb03c[_0x2fc217(0x21d)])}),{'session':this[_0x2fc217(0x15e)][_0x2fc217(0x22b)](_0x5cb03c[_0x2fc217(0x21d)]),'missionAccessChanged':_0x5cb03c[_0x2fc217(0x167)]};},'mission':async({session:_0x231adc,objective:_0xb3c023,secretEnvironment:_0x4b478d,personalInstructions:_0x55caf3})=>{const _0x322841=_0xf09321;this[_0x322841(0xc5)](_0x231adc['id']);const _0x471bac=this[_0x322841(0x10d)](_0x231adc),_0x3d637d=_0x471bac[_0x322841(0x21d)],_0x2dca07=this[_0x322841(0x209)][_0x322841(0x129)](_0x231adc['id'])?.[_0x322841(0x149)]===_0x322841(0x1d4);this[_0x322841(0x15f)][_0x322841(0x14e)](_0x231adc['id']);const _0x3bec50=this[_0x322841(0x209)][_0x322841(0x1a6)](_0x231adc['id'],_0xb3c023);this[_0x322841(0xe0)](_0x3d637d,_0x3bec50);const _0x164053=await this[_0x322841(0xcf)][_0x322841(0x1a0)]({'sessionId':_0x231adc['id'],'kind':_0x322841(0x1a6),'content':this[_0x322841(0x209)][_0x322841(0x1de)](_0x231adc['id'],_0x322841(0x1a6)),'deliveryIntent':_0x2dca07?_0x322841(0x21a):_0x322841(0xf2),'mission':{'id':_0x3bec50['id'],'revision':_0x3bec50[_0x322841(0xcc)]},'secretEnvironment':_0x4b478d,..._0x55caf3===undefined?{}:{'personalInstructions':_0x55caf3}});return{...isPlainRecord(_0x164053)?_0x164053:{'result':_0x164053},'missionAccessChanged':_0x471bac[_0x322841(0x167)]};},'clearMission':_0x1cdcfe=>{const _0x1ca473=_0xf09321;return this[_0x1ca473(0xc5)](_0x1cdcfe['id']),this[_0x1ca473(0x209)][_0x1ca473(0x163)](_0x1cdcfe['id']),this[_0x1ca473(0x15f)][_0x1ca473(0x14e)](_0x1cdcfe['id']),this[_0x1ca473(0x1e9)](_0x1cdcfe['id'],_0x1ca473(0x139)),this[_0x1ca473(0x151)][_0x1ca473(0x163)](_0x1cdcfe['id'],_0x1ca473(0x16d)),this[_0x1ca473(0x1f8)](_0x1ca473(0x21d),{'session':this[_0x1ca473(0x15e)][_0x1ca473(0x22b)](_0x1cdcfe)}),{'session':this[_0x1ca473(0x15e)][_0x1ca473(0x22b)](_0x1cdcfe),'cleared':!![]};}}),this[_0xf09321(0xcf)]=new SessionMessageService({'runtime':this[_0xf09321(0x212)],'uploads':this[_0xf09321(0x175)],'attachments':this[_0xf09321(0x185)],'commands':this[_0xf09321(0x151)],'coordinator':this[_0xf09321(0x15f)],'runners':this[_0xf09321(0x178)],'resolve':_0x1de8fa=>this[_0xf09321(0x102)][_0xf09321(0x1ad)](_0x1de8fa),'present':_0x32bfd8=>this[_0xf09321(0x15e)][_0xf09321(0x22b)](_0x32bfd8),'emitSession':_0x563261=>this[_0xf09321(0xc4)]({'session':this[_0xf09321(0x15e)][_0xf09321(0x22b)](_0x563261)}),'channelToken':_0x2cbc70=>{const _0x566da5=_0xf09321,_0x5992db=this[_0x566da5(0x212)][_0x566da5(0x231)](_0x2cbc70);return _0x5992db?.[_0x566da5(0x1be)]??undefined;},'missionMessage':(_0xc8aa54,_0x13eb70)=>{const _0x230602=_0xf09321,_0x2418db=this[_0x230602(0x151)][_0x230602(0x129)](_0xc8aa54['id'],_0x230602(0x16d));if(_0x2418db?.[_0x230602(0x1d4)]!==!![])return undefined;const _0xa8391=this[_0x230602(0x209)][_0x230602(0x129)](_0xc8aa54['id']);if(_0xa8391?.[_0x230602(0x149)]===_0x230602(0x1d4))return{'runnerContent':_0x13eb70,'mission':{'id':_0xa8391['id'],'revision':_0xa8391[_0x230602(0xcc)]},'activated':![]};const _0x2deca2=this[_0x230602(0x209)][_0x230602(0x1a6)](_0xc8aa54['id'],_0x13eb70);return this[_0x230602(0xe0)](_0xc8aa54,_0x2deca2),{'runnerContent':this[_0x230602(0x209)][_0x230602(0x1de)](_0xc8aa54['id'],_0x230602(0x1a6)),'mission':{'id':_0x2deca2['id'],'revision':_0x2deca2[_0x230602(0xcc)]},'activated':!![]};},'prepareMissionInsertion':(_0x148a73,_0x5dc2e6)=>this[_0xf09321(0x15f)][_0xf09321(0x234)](_0x148a73,_0x5dc2e6),'missionPreparationFailed':(_0x13740e,_0x160fe7,_0x1def99)=>{const _0x558b83=_0xf09321;if(!_0x1def99)return;const _0x34e38c=this[_0x558b83(0x209)][_0x558b83(0x129)](_0x13740e['id']);if(_0x34e38c?.['id']!==_0x160fe7['id']||_0x34e38c[_0x558b83(0xcc)]!==_0x160fe7[_0x558b83(0xcc)])return;this[_0x558b83(0x209)][_0x558b83(0x163)](_0x13740e['id']),this[_0x558b83(0x1e9)](_0x13740e['id'],_0x558b83(0x133)),this[_0x558b83(0x151)][_0x558b83(0x1dd)](_0x13740e['id'],this[_0x558b83(0xbd)]()),this[_0x558b83(0x1f8)](_0x558b83(0x21d),{'session':this[_0x558b83(0x15e)][_0x558b83(0x22b)](_0x13740e)});}}),this[_0xf09321(0x203)]=new SessionCatalogService({'database':()=>{const _0x145923=_0xf09321;if(this[_0x145923(0x1f1)]===undefined)throw new Error(_0x145923(0xe1));return this[_0x145923(0x1f1)];},'nodeId':()=>this[_0xf09321(0xb6)]?.[_0xf09321(0xa8)]??_0xf09321(0x19e),'runtime':this[_0xf09321(0x212)],'runners':this[_0xf09321(0x178)],'projection':this[_0xf09321(0xac)],'resume':this[_0xf09321(0x102)],'cachedNative':()=>[...this[_0xf09321(0xbf)][_0xf09321(0x11f)][_0xf09321(0x13b)]()],'cachedWorkspace':_0x51917b=>this[_0xf09321(0x18d)][_0xf09321(0x179)](_0x51917b),'present':_0x2b1d64=>this[_0xf09321(0x15e)][_0xf09321(0x22b)](_0x2b1d64),'projectionForNative':_0x32a167=>this[_0xf09321(0xac)][_0xf09321(0x17b)](_0x32a167),'nativeIds':_0x532f22=>this[_0xf09321(0xac)][_0xf09321(0x22a)](_0x532f22),'forget':(_0x11b598,_0x4c40ef)=>this[_0xf09321(0xac)][_0xf09321(0x16a)](_0x11b598,_0x4c40ef),'refreshActivity':_0x3e6792=>this[_0xf09321(0xfc)][_0xf09321(0xdc)](_0x3e6792),'externalActivity':_0x310a78=>this[_0xf09321(0xbf)][_0xf09321(0x12f)][_0xf09321(0x129)](_0x310a78),'history':(_0x44378f,_0x5ad587)=>this[_0xf09321(0xfc)][_0xf09321(0x230)](_0x44378f,_0x5ad587),'emitSession':_0x2afb65=>this[_0xf09321(0xc4)]({'session':this[_0xf09321(0x15e)][_0xf09321(0x22b)](_0x2afb65)})}),this[_0xf09321(0x10a)][_0xf09321(0x220)]({'start':_0x46767e=>this[_0xf09321(0x16f)][_0xf09321(0x1a6)](_0x46767e),'cancel':(_0x2d07dd,_0x1feb59)=>{const _0x141a37=_0xf09321,_0x50c2b0=this[_0x141a37(0x10a)][_0x141a37(0x13f)][_0x141a37(0xde)][_0x141a37(0x129)](_0x2d07dd);if(_0x50c2b0?.[_0x141a37(0x107)]===undefined)return![];return void this[_0x141a37(0x1ca)][_0x141a37(0x198)](_0x2d07dd,_0x50c2b0[_0x141a37(0xf0)],_0x50c2b0[_0x141a37(0x107)],_0x50c2b0[_0x141a37(0x184)],_0x1feb59===_0x141a37(0x21b)?_0x141a37(0x214):_0x141a37(0x200)),!![];},'decideApproval':_0x1e9b47=>this[_0xf09321(0x1ca)][_0xf09321(0x181)](_0x1e9b47[_0xf09321(0x122)],_0x1e9b47[_0xf09321(0x10b)])}),this[_0xf09321(0x14d)][_0xf09321(0x220)]({'start':_0x123e58=>this[_0xf09321(0xa0)][_0xf09321(0x1a6)](_0x123e58),'cancel':(_0x191563,_0x5dd70e)=>this[_0xf09321(0x1ca)][_0xf09321(0xb1)](_0x191563,_0x5dd70e),'decideApproval':_0x4a46e3=>this[_0xf09321(0x1ca)][_0xf09321(0x194)](_0x4a46e3[_0xf09321(0x122)],_0x4a46e3[_0xf09321(0x10b)])}),this[_0xf09321(0x1f3)][_0xf09321(0x220)]({'start':_0x373388=>this[_0xf09321(0xf9)][_0xf09321(0x1a6)](_0x373388),'cancel':(_0x5d443d,_0x19c570)=>this[_0xf09321(0xf9)][_0xf09321(0x1ee)](_0x5d443d,_0x19c570),'decideApproval':_0x5597c8=>this[_0xf09321(0xf9)][_0xf09321(0x161)](_0x5597c8),'respondUserInput':(_0xf5a756,_0x40a5ee,_0x2028c5)=>this[_0xf09321(0xf9)][_0xf09321(0x1ac)](_0xf5a756,_0x40a5ee,_0x2028c5)}),this[_0xf09321(0x1e7)][_0xf09321(0x220)]({'start':_0x1227e8=>this[_0xf09321(0x123)][_0xf09321(0x1a6)](_0x1227e8),'cancel':(_0x2bd77b,_0x1dce48)=>this[_0xf09321(0x123)][_0xf09321(0x1ee)](_0x2bd77b,_0x1dce48),'decideApproval':_0x4687ee=>this[_0xf09321(0x123)][_0xf09321(0x161)](_0x4687ee),'respondUserInput':(_0x2681a4,_0x46b33a,_0x35b94a)=>this[_0xf09321(0x123)][_0xf09321(0x1ac)](_0x2681a4,_0x46b33a,_0x35b94a)}),this[_0xf09321(0x10a)][_0xf09321(0x1b3)]({'execute':(_0x51278a,_0x1165fe,_0x1e4f49,_0x300a48)=>this[_0xf09321(0x16f)][_0xf09321(0x1cf)](_0x51278a,_0x1165fe,_0x1e4f49,_0x300a48)}),this[_0xf09321(0x14d)][_0xf09321(0x1b3)]({'execute':(_0xf3439e,_0x4f20ba,_0x2c8ac2,_0x1bd71e)=>this[_0xf09321(0xa0)][_0xf09321(0x1cf)](_0xf3439e,_0x4f20ba,_0x2c8ac2,_0x1bd71e)}),this[_0xf09321(0x1f3)][_0xf09321(0x1b3)]({'execute':(_0x44a35f,_0x2ff960,_0x4ee9e4,_0x21f6a0)=>this[_0xf09321(0xf9)][_0xf09321(0x1cf)](_0x44a35f,_0x2ff960,_0x21f6a0)}),this[_0xf09321(0x1e7)][_0xf09321(0x1b3)]({'execute':(_0x3cdaf1,_0x2ab4fe,_0x1fec7e,_0x2a3256)=>this[_0xf09321(0x123)][_0xf09321(0x1cf)](_0x3cdaf1,_0x2ab4fe,_0x1fec7e,_0x2a3256)});const _0x4a2ff0=this[_0xf09321(0x1f9)]===undefined||this[_0xf09321(0x1a4)]===undefined?undefined:new FakeManagedRunService({'runner':this[_0xf09321(0x1f9)],'script':this[_0xf09321(0x1a4)],'runners':this[_0xf09321(0x178)],'runtime':this[_0xf09321(0x212)],'state':this[_0xf09321(0x154)],'emitRun':(_0x5daf68,_0x151639,_0x1be6ed,_0xf63cdd)=>this[_0xf09321(0xce)][_0xf09321(0x1b6)](_0x5daf68,_0x151639,_0x1be6ed,_0xf63cdd),'publishApproval':_0x130c16=>this[_0xf09321(0xce)][_0xf09321(0x1e1)](_0x130c16),'disconnect':()=>this[_0xf09321(0x1f7)][_0xf09321(0xe4)](0xa11*0x2+-0x4a8*-0x8+-0x59*0x78,_0xf09321(0x1d1))});this[_0xf09321(0x1f9)]?.[_0xf09321(0x220)]({'start':_0x253a2e=>_0x4a2ff0?.[_0xf09321(0x1a6)](_0x253a2e),'cancel':(_0x2b6ef1,_0x37ea3e)=>_0x37ea3e===_0xf09321(0x21b)?this[_0xf09321(0x1f9)]?.[_0xf09321(0x1ee)](_0x2b6ef1)??![]:this[_0xf09321(0x1f9)]?.[_0xf09321(0x1f2)](_0x2b6ef1)??![],'decideApproval':_0x4f97cd=>this[_0xf09321(0x1f9)]?.[_0xf09321(0x20d)](_0x4f97cd[_0xf09321(0x112)],_0x4f97cd[_0xf09321(0x122)],_0x4f97cd[_0xf09321(0x10b)])??![]}),this[_0xf09321(0x109)]=_0x469325[_0xf09321(0x109)]??new RunnerUsageReader(),this[_0xf09321(0x1f1)]=_0x469325[_0xf09321(0x1f1)],this[_0xf09321(0x1f5)]=_0x469325[_0xf09321(0x1f5)]??new TerminalManager({'platform':this[_0xf09321(0x1d8)][_0xf09321(0x1b1)]===_0xf09321(0xbe)?_0xf09321(0xfa):_0xf09321(0x191)}),this[_0xf09321(0x1f5)][_0xf09321(0x17c)](_0x2c1400=>this[_0xf09321(0x18d)][_0xf09321(0x128)](_0x2c1400)),this[_0xf09321(0x130)]=new NodeTerminalChannel({'config':()=>this[_0xf09321(0xb6)],'controlConnected':()=>this[_0xf09321(0x1f7)][_0xf09321(0x1a9)](),'stopped':()=>this[_0xf09321(0xdd)],'reconnect':this[_0xf09321(0x115)],'reconnectDelay':nextReconnectDelay,'manager':this[_0xf09321(0x1f5)]}),this[_0xf09321(0x1f7)]=new NodeControlChannel({'config':()=>this[_0xf09321(0xb6)],'capabilities':()=>this[_0xf09321(0x1d8)],'stopped':()=>this[_0xf09321(0xdd)],'reconnect':this[_0xf09321(0x115)],'reconnectDelay':nextReconnectDelay,'onConnecting':_0x299a85=>{const _0x22c222=_0xf09321;this[_0x22c222(0x108)][_0x22c222(0xed)](),nodeLog(_0x22c222(0x1cb),{'attempt':_0x299a85});},'onReconnectScheduled':()=>this[_0xf09321(0x108)][_0xf09321(0xf4)](),'onMessage':_0x3f0b50=>this[_0xf09321(0x176)](_0x3f0b50),'onClose':(_0x19eea6,_0x243449)=>{const _0x520055=_0xf09321;this[_0x520055(0x130)][_0x520055(0x171)]();if(_0x19eea6===-0x1*-0x61d+-0x329+0xcac&&_0x243449===_0x520055(0x189))nodeLog(_0x520055(0x202),{'message':_0x520055(0x15b)});if(_0x19eea6===-0x206*0x3+-0x21d0+0x3785||_0x19eea6===-0x1062+0xc07*0x2+-0x3c3)void this[_0x520055(0x1f5)][_0x520055(0x1eb)]();}}),this[_0xf09321(0x22c)]=new NodeControlMessageService({'config':()=>this[_0xf09321(0xb6)],'register':(_0x2c2c70,_0x698437)=>this[_0xf09321(0xc8)][_0xf09321(0x232)](_0x2c2c70,_0x698437),'connected':()=>this[_0xf09321(0xc8)][_0xf09321(0x1a9)](),'close':(_0x5cc4ec,_0x2a5369)=>this[_0xf09321(0x1f7)][_0xf09321(0xe4)](_0x5cc4ec,_0x2a5369),'inspectWorkspace':_0xc9e428=>this[_0xf09321(0x18d)][_0xf09321(0x156)](_0xc9e428),'handleNodeRequest':_0x4bc8c9=>this[_0xf09321(0x223)][_0xf09321(0x182)](_0x4bc8c9),'reconcileRuns':_0x58c610=>this[_0xf09321(0xce)][_0xf09321(0x110)](_0x58c610),'runners':this[_0xf09321(0x178)],'deliverSessionChannelMessage':_0x2cc95f=>this[_0xf09321(0x1d0)][_0xf09321(0x182)](_0x2cc95f),'completeUncontrolledCancellation':_0x3ffff1=>{const _0x4e6f9a=_0xf09321,_0x11d07d=this[_0x4e6f9a(0x212)][_0x4e6f9a(0x1b2)](_0x3ffff1);if(_0x11d07d?.[_0x4e6f9a(0x149)]===_0x4e6f9a(0x134))this[_0x4e6f9a(0x1ca)][_0x4e6f9a(0x15d)](_0x3ffff1);},'send':(_0xac02bd,_0x24f6d7,_0x29ca97)=>this[_0xf09321(0xf6)](_0xac02bd,_0x24f6d7,_0x29ca97)}),this[_0xf09321(0x223)]=new NodeRequestService({'nodeId':()=>this[_0xf09321(0xb6)]?.[_0xf09321(0xa8)],'databaseAvailable':()=>this[_0xf09321(0x1f1)]!==undefined,'execute':(_0x15615a,_0x3c7f70)=>this[_0xf09321(0xad)](_0x15615a,_0x3c7f70),'send':(_0x6e8b40,_0x2d9947,_0x4214bc)=>this[_0xf09321(0xf6)](_0x6e8b40,_0x2d9947,_0x4214bc)}),this[_0xf09321(0x18d)]=new NodeWorkspaceCoordinator({'config':()=>this[_0xf09321(0xb6)],'database':()=>this[_0xf09321(0x1f1)],'watches':this[_0xf09321(0x17f)],'sessions':this[_0xf09321(0x226)],'changes':this[_0xf09321(0x1b0)],'emit':(_0x14ed19,_0x517f23)=>void this[_0xf09321(0x1c7)]?.[_0xf09321(0x169)](_0x14ed19,_0x517f23),'send':(_0x187492,_0x3f28b6,_0x2c0784)=>this[_0xf09321(0xf6)](_0x187492,_0x3f28b6,_0x2c0784)}),this[_0xf09321(0xce)]=new NodeRunEventBridge({'runtime':this[_0xf09321(0x212)],'state':this[_0xf09321(0x154)],'events':this[_0xf09321(0x132)],'emitWorkbench':(_0xb66fa1,_0x360b0e)=>this[_0xf09321(0x1bc)](_0xb66fa1,_0x360b0e),'queues':this[_0xf09321(0x158)],'codex':this[_0xf09321(0x10a)],'claude':this[_0xf09321(0x14d)],'openCode':this[_0xf09321(0x1f3)],'send':(_0xdfca98,_0x2b9a12,_0x3b6000)=>this[_0xf09321(0xf6)](_0xdfca98,_0x2b9a12,_0x3b6000)}),this[_0xf09321(0xc8)]=new NodeConnectionLifecycleService({'config':()=>this[_0xf09321(0xb6)],'setConfig':_0x2d8028=>this[_0xf09321(0xb6)]=_0x2d8028,'configPath':this[_0xf09321(0x1d7)],'capabilities':()=>this[_0xf09321(0x1d8)],'detectCapabilities':this[_0xf09321(0x19a)],'capabilitiesProvided':this[_0xf09321(0xd9)],'stopped':()=>this[_0xf09321(0xdd)],'setCapabilities':_0x8c081=>this[_0xf09321(0x1d8)]={..._0x8c081,'metadata':upgradeMetadata(_0x8c081[_0xf09321(0x1f6)],this[_0xf09321(0x172)][_0xf09321(0xa6)]())},'control':this[_0xf09321(0x1f7)],'terminal':this[_0xf09321(0x130)],'metrics':this[_0xf09321(0x108)],'heartbeatMs':HEARTBEAT_MS,'refreshMs':CAPABILITY_REFRESH_MS,'onConnected':()=>this[_0xf09321(0x140)][_0xf09321(0x1fe)]()});const _0x585699=()=>{const _0x4c7e00=_0xf09321;if(this[_0x4c7e00(0x1f1)]===undefined)throw new Error(_0x4c7e00(0xe1));return this[_0x4c7e00(0x1f1)];};this[_0xf09321(0xab)]=new RunnerService(_0x585699,()=>this[_0xf09321(0x1d8)],this[_0xf09321(0x178)],this[_0xf09321(0x109)]),this[_0xf09321(0x1c5)]=new WorkbenchManifestService({'capabilities':()=>this[_0xf09321(0x1d8)],'runners':this[_0xf09321(0xab)],'terminals':this[_0xf09321(0x1f5)]}),this[_0xf09321(0x1b8)]=new TerminalService(_0x585699,this[_0xf09321(0x1f5)]),this[_0xf09321(0x127)]=new WorkspaceService(_0x585699,()=>{const _0x2bc0e9=_0xf09321;if(this[_0x2bc0e9(0xb6)]===undefined)throw new Error(_0x2bc0e9(0x106));return this[_0x2bc0e9(0xb6)];},this[_0xf09321(0x212)],_0xa6cec4=>{const _0x10853f=_0xf09321;this[_0x10853f(0x135)][_0x10853f(0x144)](_0xa6cec4),this[_0x10853f(0x18d)][_0x10853f(0x157)](_0xa6cec4),this[_0x10853f(0x226)][_0x10853f(0x18e)](_0xa6cec4),this[_0x10853f(0x18d)][_0x10853f(0xb3)](_0xa6cec4);}),this[_0xf09321(0x1c7)]=new WorkspaceWorkbenchService({'requireWorkspace':_0x2ee306=>this[_0xf09321(0x18d)][_0xf09321(0x211)](_0x2ee306),'inspectWorkspace':_0x3c4996=>this[_0xf09321(0x18d)][_0xf09321(0xb7)](_0x3c4996),'commitWorkspace':(_0x5d7c9c,_0x5207a2)=>this[_0xf09321(0x18d)][_0xf09321(0xfe)](_0x5d7c9c,_0x5207a2),'watch':this[_0xf09321(0x17f)],'files':this[_0xf09321(0x135)],'uploads':this[_0xf09321(0x175)],'changes':this[_0xf09321(0x1b0)],'listSessions':_0x86545f=>this[_0xf09321(0xad)](_0xf09321(0x207),{'workspaceId':_0x86545f,'limit':0x14}),'invalidate':_0x1343fa=>this[_0xf09321(0x18d)][_0xf09321(0x18e)](_0x1343fa),'nodeId':()=>this[_0xf09321(0xb6)]?.[_0xf09321(0xa8)]??_0xf09321(0xff),'nodeGeneration':()=>this[_0xf09321(0xdb)],'emitWatchEvent':_0x123ddc=>this[_0xf09321(0xf6)](_0xf09321(0xfd),_0x123ddc)}),this[_0xf09321(0x155)][_0xf09321(0x1c1)](this[_0xf09321(0xab)][_0xf09321(0x17e)]()),this[_0xf09321(0x155)][_0xf09321(0x1c1)](this[_0xf09321(0x1b8)][_0xf09321(0x17e)]()),this[_0xf09321(0x155)][_0xf09321(0x1c1)](this[_0xf09321(0x127)][_0xf09321(0x17e)]()),this[_0xf09321(0x155)][_0xf09321(0x1c1)](this[_0xf09321(0x1c7)][_0xf09321(0x17e)]()),this[_0xf09321(0x155)][_0xf09321(0x1c1)](this[_0xf09321(0x1e0)][_0xf09321(0x17e)]()),this[_0xf09321(0x155)][_0xf09321(0x1c1)](this[_0xf09321(0xd1)][_0xf09321(0x17e)]()),this[_0xf09321(0x155)][_0xf09321(0x1c1)](this[_0xf09321(0x183)][_0xf09321(0x17e)]()),this[_0xf09321(0x155)][_0xf09321(0x1c1)](this[_0xf09321(0x1e8)][_0xf09321(0x17e)]()),this[_0xf09321(0x155)][_0xf09321(0x1c1)](this[_0xf09321(0xcf)][_0xf09321(0x17e)]()),this[_0xf09321(0x155)][_0xf09321(0x1c1)](this[_0xf09321(0x203)][_0xf09321(0x17e)]()),this[_0xf09321(0x155)][_0xf09321(0x1c1)](this[_0xf09321(0x14c)][_0xf09321(0x17e)]()),this[_0xf09321(0x155)][_0xf09321(0x1c1)](this[_0xf09321(0x158)][_0xf09321(0x17e)]()),this[_0xf09321(0x155)][_0xf09321(0x1c1)](new SkillNodeOperationService(_0x585699,()=>{const _0x7438dc=_0xf09321;if(this[_0x7438dc(0xb6)]===undefined)throw new Error(_0x7438dc(0x106));return this[_0x7438dc(0xb6)];})[_0xf09321(0x17e)]()),this[_0xf09321(0x155)][_0xf09321(0x1c1)](new McpNodeOperationService(_0x585699)[_0xf09321(0x17e)]()),this[_0xf09321(0x155)][_0xf09321(0x232)](_0xf09321(0x141),()=>({'metrics':{...this[_0xf09321(0x108)][_0xf09321(0xa6)](),'activeRuns':this[_0xf09321(0x154)][_0xf09321(0x1d4)][_0xf09321(0x17d)],'workspaceLeases':this[_0xf09321(0x212)][_0xf09321(0x215)]()}})),this[_0xf09321(0x155)][_0xf09321(0x232)](_0xf09321(0x1df),_0x278896=>this[_0xf09321(0x172)][_0xf09321(0x21c)](_0x278896)),this[_0xf09321(0x155)][_0xf09321(0x232)](_0xf09321(0x12d),()=>this[_0xf09321(0x172)][_0xf09321(0x1ee)]()),this[_0xf09321(0x155)][_0xf09321(0x232)](_0xf09321(0x13e),async()=>({'manifest':await this[_0xf09321(0x1c5)][_0xf09321(0x230)]()}));}async[_0x5e09f1(0x1a6)](){const _0x32ef1f=_0x5e09f1;this[_0x32ef1f(0xdd)]=![],this[_0x32ef1f(0xb6)]??=await loadNodeConfig(this[_0x32ef1f(0x1d7)]),await this[_0x32ef1f(0x172)][_0x32ef1f(0xe3)](resolve(dirname(nodeDatabasePath(this[_0x32ef1f(0xb6)],this[_0x32ef1f(0x1d7)])),_0x32ef1f(0x1ec))),await assertLocalSqlitePath(nodeDatabasePath(this[_0x32ef1f(0xb6)],this[_0x32ef1f(0x1d7)])),this[_0x32ef1f(0x1f1)]??=new NodeDatabase(nodeDatabasePath(this[_0x32ef1f(0xb6)],this[_0x32ef1f(0x1d7)]),()=>this[_0x32ef1f(0xb6)]?.[_0x32ef1f(0xa8)]??_0x32ef1f(0x170)),this[_0x32ef1f(0x1f1)][_0x32ef1f(0xda)](),this[_0x32ef1f(0xc8)][_0x32ef1f(0x1a6)](),this[_0x32ef1f(0x1f7)][_0x32ef1f(0xa2)]();}[_0x5e09f1(0xc5)](_0xb462ed){const _0x367dbc=_0x5e09f1,_0x3c1411=this[_0x367dbc(0x16e)][_0x367dbc(0x129)](_0xb462ed);if(_0x3c1411!==undefined)clearTimeout(_0x3c1411[_0x367dbc(0xc1)]);this[_0x367dbc(0x16e)][_0x367dbc(0x121)](_0xb462ed),this[_0x367dbc(0x103)][_0x367dbc(0x121)](_0xb462ed);}async[_0x5e09f1(0x159)](_0x5dc804){const _0x7bb571=_0x5e09f1,_0x526b4d=_0x5dc804[_0x7bb571(0x16d)]['id']+':'+_0x5dc804[_0x7bb571(0x16d)][_0x7bb571(0xcc)];this[_0x7bb571(0x103)][_0x7bb571(0x1dd)](_0x5dc804[_0x7bb571(0x125)],_0x526b4d);try{await this[_0x7bb571(0xcf)][_0x7bb571(0x1a0)]({'sessionId':_0x5dc804[_0x7bb571(0x125)],'kind':_0x7bb571(0x15c),'content':this[_0x7bb571(0x209)][_0x7bb571(0x1de)](_0x5dc804[_0x7bb571(0x125)],_0x7bb571(0x15c)),'deliveryIntent':_0x7bb571(0x1cc),'mission':_0x5dc804[_0x7bb571(0x16d)],'secretEnvironment':_0x5dc804[_0x7bb571(0x229)],..._0x5dc804[_0x7bb571(0xba)]===undefined?{}:{'personalInstructions':_0x5dc804[_0x7bb571(0xba)]}});const _0x12ada5=this[_0x7bb571(0x209)][_0x7bb571(0x129)](_0x5dc804[_0x7bb571(0x125)]);if(_0x12ada5?.[_0x7bb571(0x149)]!==_0x7bb571(0x1d4)||_0x12ada5['id']!==_0x5dc804[_0x7bb571(0x16d)]['id']||_0x12ada5[_0x7bb571(0xcc)]!==_0x5dc804[_0x7bb571(0x16d)][_0x7bb571(0xcc)]){if(this[_0x7bb571(0x103)][_0x7bb571(0x129)](_0x5dc804[_0x7bb571(0x125)])===_0x526b4d)this[_0x7bb571(0x103)][_0x7bb571(0x121)](_0x5dc804[_0x7bb571(0x125)]);return;}this[_0x7bb571(0xc5)](_0x5dc804[_0x7bb571(0x125)]);}catch{const _0x4fb7ed=this[_0x7bb571(0x209)][_0x7bb571(0x129)](_0x5dc804[_0x7bb571(0x125)]);if(_0x4fb7ed?.[_0x7bb571(0x149)]!==_0x7bb571(0x1d4)||_0x4fb7ed['id']!==_0x5dc804[_0x7bb571(0x16d)]['id']||_0x4fb7ed[_0x7bb571(0xcc)]!==_0x5dc804[_0x7bb571(0x16d)][_0x7bb571(0xcc)]){if(this[_0x7bb571(0x103)][_0x7bb571(0x129)](_0x5dc804[_0x7bb571(0x125)])===_0x526b4d)this[_0x7bb571(0x103)][_0x7bb571(0x121)](_0x5dc804[_0x7bb571(0x125)]);return;}const _0x20ed97=(_0x5dc804[_0x7bb571(0x19b)]??0xa*0x2dd+-0x4b5*-0x8+-0x1*0x424a)+(0x264*0x3+0x3*0x240+-0xdeb),_0x4f9117=this[_0x7bb571(0x212)][_0x7bb571(0x231)](_0x5dc804[_0x7bb571(0x125)]);if(_0x20ed97>0x1eef*-0x1+-0x116*-0x1a+0x1*0x2b6||_0x4f9117===undefined){this[_0x7bb571(0xc5)](_0x5dc804[_0x7bb571(0x125)]);if(_0x20ed97>0x35*0x40+-0x1d48+0x100b*0x1){const _0x3658ff=this[_0x7bb571(0x209)][_0x7bb571(0x18c)](_0x5dc804[_0x7bb571(0x125)],_0x5dc804[_0x7bb571(0x16d)]['id'],_0x5dc804[_0x7bb571(0x16d)][_0x7bb571(0xcc)]);this[_0x7bb571(0x15f)][_0x7bb571(0x14e)](_0x5dc804[_0x7bb571(0x125)]),this[_0x7bb571(0x1e9)](_0x5dc804[_0x7bb571(0x125)],_0x7bb571(0x133));if(_0x4f9117!==undefined)this[_0x7bb571(0xe0)](_0x4f9117,_0x3658ff);}return;}this[_0x7bb571(0xc5)](_0x5dc804[_0x7bb571(0x125)]);const _0x3cb70b={'sessionId':_0x5dc804[_0x7bb571(0x125)],'timer':setTimeout(()=>{const _0x1672ea=_0x7bb571,_0x2dad9c=this[_0x1672ea(0x209)][_0x1672ea(0x129)](_0x3cb70b[_0x1672ea(0x125)]);if(_0x2dad9c?.[_0x1672ea(0x149)]!==_0x1672ea(0x1d4)||_0x2dad9c['id']!==_0x5dc804[_0x1672ea(0x16d)]['id']||_0x2dad9c[_0x1672ea(0xcc)]!==_0x5dc804[_0x1672ea(0x16d)][_0x1672ea(0xcc)])return;void this[_0x1672ea(0x159)]({..._0x5dc804,'sessionId':_0x3cb70b[_0x1672ea(0x125)],'failedAttempts':_0x20ed97});},0x689d+0x5cf2+-0x8af7)};this[_0x7bb571(0x16e)][_0x7bb571(0x1dd)](_0x5dc804[_0x7bb571(0x125)],_0x3cb70b),_0x3cb70b[_0x7bb571(0xc1)][_0x7bb571(0xd4)]();}}[_0x5e09f1(0x1e9)](_0x27208b,_0x113952){const _0x1d5ad6=_0x5e09f1,_0x4fb240=this[_0x1d5ad6(0x212)][_0x1d5ad6(0x228)](_0x27208b);if(_0x4fb240===undefined||this[_0x1d5ad6(0x212)][_0x1d5ad6(0x138)](_0x4fb240['id'])!==undefined)return;this[_0x1d5ad6(0xce)][_0x1d5ad6(0x1b6)](_0x4fb240['id'],_0x113952===_0x1d5ad6(0x139)?_0x1d5ad6(0xc9):_0x1d5ad6(0x20e),_0x113952===_0x1d5ad6(0x139)?{}:{'code':_0x1d5ad6(0x216)},_0x113952);}[_0x5e09f1(0x10d)](_0x19878c){const _0x26071a=_0x5e09f1,_0x187670=missionUnrestrictedAccess(_0x19878c[_0x26071a(0x1ab)]),_0x52c3e4=_0x19878c[_0x26071a(0x1d2)]!==_0x187670,_0x5c03ae=_0x52c3e4?this[_0x26071a(0x212)][_0x26071a(0xb2)](_0x19878c['id'],_0x187670):_0x19878c;if(_0x52c3e4&&_0x5c03ae[_0x26071a(0xd0)]!==null&&_0x5c03ae[_0x26071a(0x1ed)]!==null&&_0x5c03ae[_0x26071a(0x1bf)]!==null)this[_0x26071a(0x1f1)]?.[_0x26071a(0x218)]({'runner':_0x5c03ae[_0x26071a(0x1ab)],'externalSessionId':_0x5c03ae[_0x26071a(0xd0)],'workspaceId':_0x5c03ae[_0x26071a(0x213)],'model':_0x5c03ae[_0x26071a(0x1ed)],'effort':_0x5c03ae[_0x26071a(0x1bf)],'access':_0x187670});return{'session':_0x5c03ae,'changed':_0x52c3e4};}[_0x5e09f1(0xbd)](){const _0x247c2c=_0x5e09f1;return{'commandId':_0x247c2c(0x16d),'active':!![],'label':_0x247c2c(0x120),'detail':null,'closable':!![],'closeInput':_0x247c2c(0x137)};}[_0x5e09f1(0x14a)](){const _0x25445d=_0x5e09f1;this[_0x25445d(0xdd)]=!![],this[_0x25445d(0x140)][_0x25445d(0x144)](),this[_0x25445d(0x172)][_0x25445d(0x14a)](),this[_0x25445d(0xc8)][_0x25445d(0x14a)]();for(const _0x3a3fa6 of this[_0x25445d(0x14d)][_0x25445d(0x13f)][_0x25445d(0x208)][_0x25445d(0x13b)]()){clearTimeout(_0x3a3fa6[_0x25445d(0xc1)]),_0x3a3fa6[_0x25445d(0xd6)](_0x25445d(0x124));}this[_0x25445d(0x14d)][_0x25445d(0x13f)][_0x25445d(0x208)][_0x25445d(0x163)]();for(const _0x4e636a of this[_0x25445d(0x14d)][_0x25445d(0x13f)][_0x25445d(0x1e3)][_0x25445d(0x13b)]()){clearTimeout(_0x4e636a[_0x25445d(0xc1)]),_0x4e636a[_0x25445d(0x205)](_0x25445d(0x224));}this[_0x25445d(0x14d)][_0x25445d(0x13f)][_0x25445d(0x1e3)][_0x25445d(0x163)](),this[_0x25445d(0xd1)][_0x25445d(0x163)](),this[_0x25445d(0xeb)][_0x25445d(0x144)](),this[_0x25445d(0x1e8)][_0x25445d(0x163)](),this[_0x25445d(0x15f)][_0x25445d(0x163)]();for(const _0x549775 of this[_0x25445d(0x16e)][_0x25445d(0x13b)]())clearTimeout(_0x549775[_0x25445d(0xc1)]);this[_0x25445d(0x16e)][_0x25445d(0x163)](),this[_0x25445d(0x103)][_0x25445d(0x163)](),this[_0x25445d(0x132)][_0x25445d(0x163)](),this[_0x25445d(0xc3)][_0x25445d(0x144)]();for(const _0x137648 of this[_0x25445d(0x14d)][_0x25445d(0x13f)][_0x25445d(0xde)][_0x25445d(0x13b)]())_0x137648[_0x25445d(0x182)][_0x25445d(0x1ee)]();this[_0x25445d(0x14d)][_0x25445d(0x13f)][_0x25445d(0xde)][_0x25445d(0x163)](),this[_0x25445d(0x185)][_0x25445d(0x144)](),void this[_0x25445d(0x123)][_0x25445d(0x144)](),void this[_0x25445d(0x175)][_0x25445d(0x1eb)](),this[_0x25445d(0x135)][_0x25445d(0x144)](),this[_0x25445d(0x17f)][_0x25445d(0xca)](),this[_0x25445d(0x1c7)][_0x25445d(0x163)](),this[_0x25445d(0x226)][_0x25445d(0x163)](),this[_0x25445d(0x1b0)][_0x25445d(0x163)](),void this[_0x25445d(0x178)][_0x25445d(0x14a)](),void this[_0x25445d(0x1bb)][_0x25445d(0xe4)](),void this[_0x25445d(0x1f5)][_0x25445d(0x1eb)](),this[_0x25445d(0x130)][_0x25445d(0x14a)](),this[_0x25445d(0x1f7)][_0x25445d(0x14a)](),this[_0x25445d(0x1f1)]?.[_0x25445d(0xe4)](),this[_0x25445d(0x1f1)]=undefined;}[_0x5e09f1(0x176)]=_0x15d275=>this[_0x5e09f1(0x22c)][_0x5e09f1(0x182)](_0x15d275);[_0x5e09f1(0x1ea)]=(_0x1371a7,_0x2a7650,_0x49a382,_0x3fd78b)=>this[_0x5e09f1(0xce)][_0x5e09f1(0x1b6)](_0x1371a7,_0x2a7650,_0x49a382,_0x3fd78b);[_0x5e09f1(0x1e6)]=(_0x1d1009,_0x262a44)=>{const _0x1d45d2=_0x5e09f1;this[_0x1d45d2(0x132)][_0x1d45d2(0xdf)](_0x1d1009);const _0x54e1fa=isPlainRecord(_0x262a44)&&typeof _0x262a44[_0x1d45d2(0x164)]===_0x1d45d2(0x105)?_0x262a44[_0x1d45d2(0x164)]:undefined,_0x4684e1=isPlainRecord(_0x262a44)&&typeof _0x262a44[_0x1d45d2(0x1fd)]===_0x1d45d2(0x105)?_0x262a44[_0x1d45d2(0x1fd)]:undefined,_0x3adadf=this[_0x1d45d2(0x212)][_0x1d45d2(0x21f)](_0x1d1009),_0x387569=_0x54e1fa===undefined||_0x3adadf===undefined?undefined:conversationSegmentIdentityForItem(_0x3adadf,_0x54e1fa,_0x4684e1);this[_0x1d45d2(0xce)][_0x1d45d2(0x1b6)](_0x1d1009,_0x1d45d2(0x12c),_0x387569===undefined||!isPlainRecord(_0x262a44)?_0x262a44:{..._0x262a44,'segmentId':_0x387569['id'],'segmentIndex':_0x387569[_0x1d45d2(0x136)]});};[_0x5e09f1(0x1fc)]=_0x317c9a=>{const _0x50baed=_0x5e09f1,_0x4a90c8=isPlainRecord(_0x317c9a)&&Array[_0x50baed(0x206)](_0x317c9a[_0x50baed(0xd7)])?conversationSegments(_0x317c9a):[];this[_0x50baed(0x1f8)](_0x50baed(0xd2),{'turn':_0x317c9a,'segments':_0x4a90c8});};[_0x5e09f1(0x1bc)]=(_0x48dd14,_0x6adc59)=>{const _0xd43dfd=_0x5e09f1;if(_0x48dd14===_0xd43dfd(0x21d)){this[_0xd43dfd(0xc4)](_0x6adc59);return;}this[_0xd43dfd(0x1f8)](_0x48dd14,_0x6adc59);};[_0x5e09f1(0xc4)]=_0x5c5552=>{const _0x156ba9=_0x5e09f1;if(isPlainRecord(_0x5c5552)&&isPlainRecord(_0x5c5552[_0x156ba9(0x21d)])){const _0xde18fd=_0x5c5552[_0x156ba9(0x21d)][_0x156ba9(0x213)];typeof _0xde18fd===_0x156ba9(0x105)&&(this[_0x156ba9(0x226)][_0x156ba9(0x1f4)](_0xde18fd),void this[_0x156ba9(0x1c7)]?.[_0x156ba9(0x169)](_0xde18fd,_0x156ba9(0xbc)));}this[_0x156ba9(0x1f8)](_0x156ba9(0x21d),_0x5c5552);};[_0x5e09f1(0x1f8)]=(_0x23fa8c,_0x361231)=>{const _0x4250d0=_0x5e09f1;if(_0x23fa8c===_0x4250d0(0xd2)&&isPlainRecord(_0x361231)&&isPlainRecord(_0x361231[_0x4250d0(0x1af)])&&_0x361231[_0x4250d0(0x1af)][_0x4250d0(0x9e)]!==_0x4250d0(0x192)){const _0x26fe7f=typeof _0x361231[_0x4250d0(0x1af)][_0x4250d0(0x112)]===_0x4250d0(0x105)?_0x361231[_0x4250d0(0x1af)][_0x4250d0(0x112)]:undefined,_0x16015a=typeof _0x361231[_0x4250d0(0x1af)][_0x4250d0(0x1e2)]===_0x4250d0(0x11a)?_0x361231[_0x4250d0(0x1af)][_0x4250d0(0x1e2)]:undefined,_0x164a0a=_0x26fe7f===undefined?undefined:this[_0x4250d0(0x212)][_0x4250d0(0x21f)](_0x26fe7f);if(_0x164a0a===undefined)return;const _0x42290b=isPlainRecord(_0x361231[_0x4250d0(0x1af)][_0x4250d0(0xe2)])?_0x361231[_0x4250d0(0x1af)][_0x4250d0(0xe2)]:undefined,_0x1b59fa=_0x361231[_0x4250d0(0x1af)][_0x4250d0(0x9e)]===_0x4250d0(0x1c8)&&typeof _0x42290b?.[_0x4250d0(0x1d5)]===_0x4250d0(0x105)?_0x42290b[_0x4250d0(0x1d5)]:undefined,_0x1281ad=typeof _0x42290b?.[_0x4250d0(0x164)]===_0x4250d0(0x105)?_0x42290b[_0x4250d0(0x164)]:typeof _0x42290b?.[_0x4250d0(0x122)]===_0x4250d0(0x105)?_0x4250d0(0x222)+_0x42290b[_0x4250d0(0x122)]:undefined,_0xfdcafd=_0x1b59fa!==undefined&&_0x16015a!==undefined?_0x164a0a[_0x4250d0(0xd7)][_0x4250d0(0x9d)](_0x45cc5d=>_0x45cc5d[_0x4250d0(0x1fd)]===_0x4250d0(0x1a7)&&_0x45cc5d[_0x4250d0(0xcc)]===_0x16015a):_0x1281ad===undefined?undefined:_0x164a0a[_0x4250d0(0xd7)][_0x4250d0(0x9d)](_0x512805=>_0x512805['id']===_0x26fe7f+':'+_0x1281ad);if(_0x1b59fa!==undefined&&_0xfdcafd?.[_0x4250d0(0x1fd)]===_0x4250d0(0x1a7))_0x361231={'sessionId':_0x164a0a[_0x4250d0(0x125)],'delta':{'runId':_0x164a0a[_0x4250d0(0x112)],'itemId':_0xfdcafd['id'],'text':_0x1b59fa,'createdAt':typeof _0x361231[_0x4250d0(0x1af)][_0x4250d0(0x13d)]===_0x4250d0(0x11a)?_0x361231[_0x4250d0(0x1af)][_0x4250d0(0x13d)]:Date[_0x4250d0(0x199)]()}};else{if(_0xfdcafd!==undefined){const _0x23a600=conversationSegmentIdentityForItem(_0x164a0a,_0xfdcafd['id'],_0xfdcafd[_0x4250d0(0x1fd)]);_0x361231={'sessionId':_0x164a0a[_0x4250d0(0x125)],'runId':_0x164a0a[_0x4250d0(0x112)],'item':{'itemId':_0xfdcafd['id'],'kind':_0xfdcafd[_0x4250d0(0x1fd)],'status':_0xfdcafd[_0x4250d0(0x149)],'payload':_0xfdcafd[_0x4250d0(0xe2)],'startedAt':_0xfdcafd[_0x4250d0(0x1c2)],'completedAt':_0xfdcafd[_0x4250d0(0x1e4)],'segmentId':_0x23a600['id'],'segmentIndex':_0x23a600[_0x4250d0(0x136)]}};}else{if(_0x361231[_0x4250d0(0x1af)][_0x4250d0(0x9e)]!==_0x4250d0(0x20a)&&_0x361231[_0x4250d0(0x1af)][_0x4250d0(0x9e)]!==_0x4250d0(0xa1))return;_0x361231={'turn':_0x164a0a,'segments':conversationSegments(_0x164a0a)};}}}const _0x5d6db8=this[_0x4250d0(0x1e5)][_0x4250d0(0x1c0)](_0x23fa8c,_0x361231);if(_0x5d6db8===undefined)return;const _0x13982d=_0x23fa8c===_0x4250d0(0xd2)&&isPlainRecord(_0x361231)&&isPlainRecord(_0x361231[_0x4250d0(0x1af)])&&_0x361231[_0x4250d0(0x1af)][_0x4250d0(0x9e)]===_0x4250d0(0x192),_0xc0edd4=workbenchPayloadSessionId(this[_0x4250d0(0x212)],_0x23fa8c,_0x361231);if(!_0x13982d&&_0xc0edd4!==undefined){this[_0x4250d0(0xd1)][_0x4250d0(0x1ff)](_0xc0edd4,_0x5d6db8);return;}this[_0x4250d0(0x1e5)][_0x4250d0(0x1fa)](_0x5d6db8);};[_0x5e09f1(0x19d)]=_0x28b313=>this[_0x5e09f1(0xac)][_0x5e09f1(0x1b9)](_0x28b313);[_0x5e09f1(0x177)]=_0x1eca40=>this[_0x5e09f1(0x18d)][_0x5e09f1(0x18e)](_0x1eca40);[_0x5e09f1(0x11c)]=()=>undefined;[_0x5e09f1(0xe7)]=()=>this[_0x5e09f1(0xc8)][_0x5e09f1(0xe7)]();[_0x5e09f1(0x1bd)]=()=>this[_0x5e09f1(0xc8)][_0x5e09f1(0x1bd)]();async[_0x5e09f1(0xad)](_0x3582d7,_0x375991){const _0x1882f4=_0x5e09f1;if(this[_0x1882f4(0x1f1)]===undefined)throw new Error(_0x1882f4(0xe1));if(this[_0x1882f4(0x172)][_0x1882f4(0x113)](_0x3582d7))throw new Error(_0x1882f4(0x148));return nodeLog(_0x1882f4(0x20f),{'nodeId':this[_0x1882f4(0xb6)]?.[_0x1882f4(0xa8)],'operation':_0x3582d7}),this[_0x1882f4(0x155)][_0x1882f4(0xc2)](_0x3582d7,_0x375991);}async[_0x5e09f1(0x166)](_0x57559c,_0x612653){const _0x191aa7=_0x5e09f1,_0x1d900e=this[_0x191aa7(0xb6)];if(_0x1d900e?.[_0x191aa7(0xa8)]===undefined||_0x1d900e[_0x191aa7(0x1aa)]===undefined)throw new Error(_0x191aa7(0x1a5));const _0x4e3898=await fetch(_0x1d900e[_0x191aa7(0xe9)][_0x191aa7(0xec)](/\/$/u,'')+_0x191aa7(0x119),{'method':_0x191aa7(0x1db),'headers':{'content-type':_0x191aa7(0xcb),'x-mar-node-id':_0x1d900e[_0x191aa7(0xa8)],'authorization':_0x191aa7(0xf8)+_0x1d900e[_0x191aa7(0x1aa)]},'body':JSON[_0x191aa7(0x118)](_0x57559c),'signal':_0x612653});if(!_0x4e3898['ok'])throw new Error(_0x191aa7(0x1a3));const _0x4f0b95=await _0x4e3898[_0x191aa7(0x187)]();return{'content':JSON[_0x191aa7(0x118)](_0x4f0b95),'data':_0x4f0b95};}[_0x5e09f1(0xe0)](_0x208ddc,_0x5d86c7){const _0x4bfbd1=_0x5e09f1;if(_0x5d86c7[_0x4bfbd1(0x149)]!==_0x4bfbd1(0x1d4)){this[_0x4bfbd1(0x151)][_0x4bfbd1(0x163)](_0x208ddc['id'],_0x4bfbd1(0x16d)),this[_0x4bfbd1(0x1f8)](_0x4bfbd1(0x21d),{'session':this[_0x4bfbd1(0x15e)][_0x4bfbd1(0x22b)](_0x208ddc)});return;}this[_0x4bfbd1(0x151)][_0x4bfbd1(0x1dd)](_0x208ddc['id'],{'commandId':_0x4bfbd1(0x16d),'active':_0x5d86c7[_0x4bfbd1(0x149)]===_0x4bfbd1(0x1d4),'label':_0x4bfbd1(0x120),'detail':_0x5d86c7[_0x4bfbd1(0x162)][_0x4bfbd1(0xea)](-0x1f74+-0x72*-0x1a+0x30*0x6a,0x1d*0xd3+0x6cd*-0x5+-0xc0e*-0x1),'closable':!![],'closeInput':_0x4bfbd1(0xf1),'mission':{'id':_0x5d86c7['id'],'objective':_0x5d86c7[_0x4bfbd1(0x162)],'revision':_0x5d86c7[_0x4bfbd1(0xcc)],'status':_0x5d86c7[_0x4bfbd1(0x149)],'turns':_0x5d86c7[_0x4bfbd1(0xb4)]}}),this[_0x4bfbd1(0x1f8)](_0x4bfbd1(0x21d),{'session':this[_0x4bfbd1(0x15e)][_0x4bfbd1(0x22b)](_0x208ddc)});}[_0x5e09f1(0xf6)](_0x16c699,_0x54a3b8,_0x5bd485){const _0x32a988=_0x5e09f1;this[_0x32a988(0x1f7)][_0x32a988(0xf6)](_0x16c699,_0x54a3b8,_0x5bd485);}[_0x5e09f1(0x193)](_0x5989c4){const _0x757d35=_0x5e09f1;this[_0x757d35(0x1f7)][_0x757d35(0x193)](_0x5989c4);}}
|