@myagentroam/node 0.9.13 → 0.9.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/dist/codex-app-server.js +1 -1
  2. package/dist/connector.js +1 -1
  3. package/dist/mcp-installation-model.js +2 -0
  4. package/dist/native-session-history.js +1 -1
  5. package/dist/runner/abstract-runner.js +1 -1
  6. package/dist/runner/codex/conversation-parser.js +1 -1
  7. package/dist/runner/codex/managed-run-controller.js +1 -1
  8. package/dist/runner/opencode/conversation-parser.js +1 -1
  9. package/dist/runner/opencode/managed-run-controller.js +1 -1
  10. package/dist/runner/runner-registry.js +1 -1
  11. package/dist/runner-command-engine.js +1 -1
  12. package/dist/runner-profiles.js +1 -1
  13. package/dist/runtime-model.js +2 -0
  14. package/dist/runtime-state.js +1 -1
  15. package/dist/service/continuous-run-coordinator.js +2 -0
  16. package/dist/service/conversation-history-service.js +1 -1
  17. package/dist/service/external-session-resume-service.js +1 -1
  18. package/dist/service/mission-mcp-server.js +2 -0
  19. package/dist/service/mission-mcp-stdio.js +2 -0
  20. package/dist/service/mission-runtime.js +2 -0
  21. package/dist/service/native-session-projection-service.js +1 -1
  22. package/dist/service/native-session-watch-service.js +1 -1
  23. package/dist/service/node-workspace-coordinator.js +1 -1
  24. package/dist/service/recent-run-projection-service.js +1 -1
  25. package/dist/service/run-attachment-service.js +1 -1
  26. package/dist/service/run-event-service.js +1 -1
  27. package/dist/service/run-ownership-policy.js +2 -0
  28. package/dist/service/run-workbench-service.js +1 -1
  29. package/dist/service/runner-service.js +1 -1
  30. package/dist/service/session-catalog-service.js +1 -1
  31. package/dist/service/session-command-service.js +1 -1
  32. package/dist/service/session-context-service.js +1 -1
  33. package/dist/service/session-identity-service.js +1 -1
  34. package/dist/service/session-lifecycle-service.js +1 -1
  35. package/dist/service/session-message-service.js +1 -1
  36. package/dist/service/workspace-queue-workbench-service.js +1 -1
  37. package/dist/service/workspace-session-service.js +1 -1
  38. package/dist/service/workspace-watch-controller.js +2 -0
  39. package/dist/service/workspace-watch-service.js +1 -1
  40. package/dist/service/workspace-watch-snapshot-service.js +2 -0
  41. package/dist/service/workspace-workbench-service.js +1 -1
  42. package/dist/util/runner-native-session-parsers.js +1 -1
  43. package/package.json +2 -2
@@ -1,2 +1,2 @@
1
1
  /* mar-release-protected */
2
- const _0x3398cb=_0x29ac;(function(_0x1beea2,_0x1fa0df){const _0x5afb67=_0x29ac,_0x1e8595=_0x1beea2();while(!![]){try{const _0x306d4c=-parseInt(_0x5afb67(0x197))/(0x41d+-0x2*0x1af+0x5*-0x26)+-parseInt(_0x5afb67(0x18f))/(0x1f9a*-0x1+-0x238a*0x1+0x4326)+-parseInt(_0x5afb67(0x17b))/(-0x10*0x255+-0xb9b*0x2+-0x3c89*-0x1)+-parseInt(_0x5afb67(0x162))/(-0x1caf*-0x1+0x120*-0x3+-0x194b)*(-parseInt(_0x5afb67(0x194))/(-0xa27+0x1358+0x4*-0x24b))+parseInt(_0x5afb67(0x16a))/(0x1*-0x2142+-0x20c5+0x420d)+parseInt(_0x5afb67(0x158))/(-0x13ce+-0x10d2+0x24a7)*(-parseInt(_0x5afb67(0x1b3))/(-0x23fa+0x278*0x8+0x2*0x821))+-parseInt(_0x5afb67(0x12c))/(0x1cf*-0x3+0x1*0x2471+-0x1efb)*(-parseInt(_0x5afb67(0x10d))/(-0xd*-0x11b+-0x1639+0x7e4));if(_0x306d4c===_0x1fa0df)break;else _0x1e8595['push'](_0x1e8595['shift']());}catch(_0x12e1b1){_0x1e8595['push'](_0x1e8595['shift']());}}}(_0x3617,0x75e*-0x161+-0x62c2c+0x1ae581));import{spawn,spawnSync}from'node:child_process';import{randomUUID}from'node:crypto';import{existsSync}from'node:fs';import{unlink}from'node:fs/promises';import{connect}from'node:net';import{tmpdir}from'node:os';import{join}from'node:path';import{createInterface}from'node:readline';import{minimalRunnerEnvironment,platformCliInvocation,runRunnerProbe}from'./operational.js';const REQUEST_TIMEOUT_MS=-0x1*-0x3637+-0x713b+0x759c;export function codexSessionControl(_0x21cfc7){const _0x2fd74e=_0x29ac;if(!_0x21cfc7[_0x2fd74e(0x18d)])return{'level':_0x2fd74e(0x171),'capabilities':[]};if(_0x21cfc7[_0x2fd74e(0x168)])return{'level':_0x2fd74e(0x180),'capabilities':[_0x2fd74e(0x1b2),_0x2fd74e(0x10e),_0x2fd74e(0x12d),_0x2fd74e(0x13e),_0x2fd74e(0x16f)]};if(_0x21cfc7[_0x2fd74e(0x154)]!==null&&_0x21cfc7[_0x2fd74e(0x13a)]===_0x2fd74e(0x10b))return{'level':_0x2fd74e(0x157),'capabilities':[_0x2fd74e(0x1b2)]};if(_0x21cfc7[_0x2fd74e(0x179)])return{'level':_0x2fd74e(0x19b),'capabilities':[_0x2fd74e(0x1b2),_0x2fd74e(0x10e),_0x2fd74e(0x13e),_0x2fd74e(0x16f)]};return{'level':_0x2fd74e(0x14d),'capabilities':[_0x2fd74e(0x1b2),_0x2fd74e(0x12d)]};}export class CodexAppServerRpcError extends Error{[_0x3398cb(0x16b)];[_0x3398cb(0x119)];[_0x3398cb(0x165)];constructor(_0x5444e){const _0x4ef841=_0x3398cb,_0xd033ab=typeof _0x5444e[_0x4ef841(0x1b4)]===_0x4ef841(0x172)?_0x5444e[_0x4ef841(0x1b4)]:_0x4ef841(0x1ad);super(_0x4ef841(0x17e)+JSON[_0x4ef841(0x163)](_0x5444e)),this[_0x4ef841(0x15f)]=_0x4ef841(0x155),this[_0x4ef841(0x16b)]=_0x5444e[_0x4ef841(0x16b)],this[_0x4ef841(0x119)]=_0xd033ab,this[_0x4ef841(0x165)]=_0x5444e[_0x4ef841(0x165)];}}export function isCodexRolloutMissingError(_0x2260e6){const _0x52f45f=_0x3398cb;return _0x2260e6 instanceof CodexAppServerRpcError&&_0x2260e6[_0x52f45f(0x16b)]===-(0xa076+-0xaac2+0x89a4)&&(/^no rollout found for thread id\b/i[_0x52f45f(0x10f)](_0x2260e6[_0x52f45f(0x119)])||/^thread not loaded:\s*/i[_0x52f45f(0x10f)](_0x2260e6[_0x52f45f(0x119)]));}export class CodexAppServerClient{[_0x3398cb(0x13d)];[_0x3398cb(0x117)];[_0x3398cb(0x11e)];[_0x3398cb(0x193)];[_0x3398cb(0x130)]=0x1*0x1ec5+-0xa*-0xe9+-0x27de;[_0x3398cb(0x14a)]=new Map();[_0x3398cb(0x190)]=new Set();[_0x3398cb(0x12b)]=new Set();[_0x3398cb(0x174)]={};[_0x3398cb(0x11f)];[_0x3398cb(0x184)];[_0x3398cb(0x19c)]=-0xefb+0x1698+-0x1*0x79d;constructor(_0x4539ff={}){const _0x4cdc2f=_0x3398cb;this[_0x4cdc2f(0x13d)]=_0x4539ff;}[_0x3398cb(0x191)](_0x16b81b){const _0x2273e4=_0x3398cb;if(this[_0x2273e4(0x117)]!==undefined)throw new Error(_0x2273e4(0x18c));this[_0x2273e4(0x174)]={..._0x16b81b};}[_0x3398cb(0x195)](){const _0x372fe6=_0x3398cb;if(this[_0x372fe6(0x117)]!==undefined)throw new Error(_0x372fe6(0x18c));this[_0x372fe6(0x174)]={};}[_0x3398cb(0x1a1)](){const _0x302213=_0x3398cb;if(this[_0x302213(0x184)]!==undefined)return this[_0x302213(0x184)];if(this[_0x302213(0x11f)]!==undefined)return this[_0x302213(0x11f)];if(this[_0x302213(0x117)]!==undefined)return Promise[_0x302213(0x118)]();const _0x1ce164=this[_0x302213(0x153)]();this[_0x302213(0x11f)]=_0x1ce164;const _0x52039c=()=>{const _0x4bb469=_0x302213;if(this[_0x4bb469(0x11f)]===_0x1ce164)this[_0x4bb469(0x11f)]=undefined;};return void _0x1ce164[_0x302213(0x129)](_0x52039c,_0x52039c),_0x1ce164;}[_0x3398cb(0x132)](){const _0x59fed5=_0x3398cb;if(this[_0x59fed5(0x184)]!==undefined)return this[_0x59fed5(0x184)];const _0x442eed=this[_0x59fed5(0x14f)](this[_0x59fed5(0x19c)]);this[_0x59fed5(0x184)]=_0x442eed;const _0x597ee6=()=>{const _0x5164a9=_0x59fed5;if(this[_0x5164a9(0x184)]===_0x442eed)this[_0x5164a9(0x184)]=undefined;};return void _0x442eed[_0x59fed5(0x129)](_0x597ee6,_0x597ee6),_0x442eed;}async[_0x3398cb(0x153)](){const _0x2060fa=_0x3398cb,_0x78415a=this[_0x2060fa(0x13d)][_0x2060fa(0x137)]??_0x2060fa(0x110),_0x58fa00=this[_0x2060fa(0x169)]();this[_0x2060fa(0x193)]=_0x58fa00===_0x2060fa(0x1a8)?this[_0x2060fa(0x13d)][_0x2060fa(0x193)]??privateSocketPath():undefined;const _0x3039b1=this[_0x2060fa(0x13d)][_0x2060fa(0x109)]??[_0x2060fa(0x12f)],_0x2b9405=[..._0x3039b1,..._0x58fa00===_0x2060fa(0x1a8)?[_0x2060fa(0x182),_0x2060fa(0x1a9)+this[_0x2060fa(0x193)]]:[]],_0x4cf7d2=this[_0x2060fa(0x13d)][_0x2060fa(0x11d)]??defaultSpawn;let _0x2bcb52=_0x4cf7d2(_0x78415a,_0x2b9405,{...this[_0x2060fa(0x13d)][_0x2060fa(0x150)]===undefined?{}:{'cwd':this[_0x2060fa(0x13d)][_0x2060fa(0x150)]},'env':{...minimalRunnerEnvironment(),...this[_0x2060fa(0x174)]}});this[_0x2060fa(0x117)]=_0x2bcb52;let _0x56cd01;if(_0x58fa00===_0x2060fa(0x1a8))try{_0x56cd01=await connectUnix(this[_0x2060fa(0x193)],(this[_0x2060fa(0x13d)][_0x2060fa(0x11e)]??_0x2060fa(0x17d))===_0x2060fa(0x17d)?Math[_0x2060fa(0x1a3)](this[_0x2060fa(0x13d)][_0x2060fa(0x18e)]??REQUEST_TIMEOUT_MS,0x27*-0xc7+-0x61*0x26+0x309f):this[_0x2060fa(0x13d)][_0x2060fa(0x18e)]??REQUEST_TIMEOUT_MS);}catch(_0x5a5769){if((this[_0x2060fa(0x13d)][_0x2060fa(0x11e)]??_0x2060fa(0x17d))!==_0x2060fa(0x17d))throw _0x5a5769;_0x2bcb52[_0x2060fa(0x147)]();if(this[_0x2060fa(0x193)]!==undefined&&existsSync(this[_0x2060fa(0x193)]))await unlink(this[_0x2060fa(0x193)]);this[_0x2060fa(0x193)]=undefined,_0x2bcb52=_0x4cf7d2(_0x78415a,_0x3039b1,{...this[_0x2060fa(0x13d)][_0x2060fa(0x150)]===undefined?{}:{'cwd':this[_0x2060fa(0x13d)][_0x2060fa(0x150)]},'env':{...minimalRunnerEnvironment(),...this[_0x2060fa(0x174)]}}),this[_0x2060fa(0x117)]=_0x2bcb52;}this[_0x2060fa(0x11e)]=_0x56cd01??stdioTransport(_0x2bcb52);const _0x2521f5=createInterface({'input':_0x56cd01??_0x2bcb52[_0x2060fa(0x15b)]});_0x2521f5['on'](_0x2060fa(0x113),_0xd50d6c=>this[_0x2060fa(0x15c)](_0xd50d6c));const _0x4c0048=_0x2bcb52;_0x2bcb52[_0x2060fa(0x11b)](_0x2060fa(0x175),_0x16a70e=>{const _0x41cfe6=_0x2060fa;if(this[_0x41cfe6(0x117)]!==_0x4c0048)return;this[_0x41cfe6(0x167)](new Error(_0x41cfe6(0x152)+_0x16a70e[_0x41cfe6(0x1b4)]));}),_0x2bcb52[_0x2060fa(0x11b)](_0x2060fa(0x1ab),()=>{const _0x14f13e=_0x2060fa;if(this[_0x14f13e(0x117)]!==_0x4c0048)return;this[_0x14f13e(0x117)]=undefined,this[_0x14f13e(0x167)](new Error(_0x14f13e(0x15a)));}),await this[_0x2060fa(0x15d)](_0x2060fa(0x1a6),{'clientInfo':{'name':_0x2060fa(0x188),'title':_0x2060fa(0x126),'version':_0x2060fa(0x196)},'capabilities':{'experimentalApi':!![]}}),this[_0x2060fa(0x131)](_0x2060fa(0x173),{});}async[_0x3398cb(0x14f)](_0x229bdb){const _0xd4cc02=_0x3398cb;await Promise[_0xd4cc02(0x118)]();if(this[_0xd4cc02(0x11f)]!==undefined)await this[_0xd4cc02(0x11f)];await this[_0xd4cc02(0x17a)]();if(this[_0xd4cc02(0x19c)]!==_0x229bdb)throw new Error(_0xd4cc02(0x125));this[_0xd4cc02(0x123)](),await this[_0xd4cc02(0x153)]();}[_0x3398cb(0x149)](){const _0x4137bd=_0x3398cb;this[_0x4137bd(0x19c)]+=-0x1a4*-0x1+0x2*-0x164+-0x1*-0x125,this[_0x4137bd(0x123)]();}[_0x3398cb(0x123)](){const _0x3575b5=_0x3398cb;this[_0x3575b5(0x11e)]?.[_0x3575b5(0x12a)](),this[_0x3575b5(0x11e)]=undefined,this[_0x3575b5(0x117)]?.[_0x3575b5(0x147)](),this[_0x3575b5(0x117)]=undefined;if(this[_0x3575b5(0x193)]!==undefined&&existsSync(this[_0x3575b5(0x193)]))void unlink(this[_0x3575b5(0x193)]);this[_0x3575b5(0x193)]=undefined,this[_0x3575b5(0x167)](new Error(_0x3575b5(0x125)));}[_0x3398cb(0x121)](_0x14bd68){const _0x5ca501=_0x3398cb;return this[_0x5ca501(0x12b)][_0x5ca501(0x13f)](_0x14bd68),()=>this[_0x5ca501(0x12b)][_0x5ca501(0x16c)](_0x14bd68);}async[_0x3398cb(0x16d)](_0x38de57,_0x1ec18d){const _0x50bd99=_0x3398cb;if(this[_0x50bd99(0x184)]!==undefined)await this[_0x50bd99(0x184)];else{if(this[_0x50bd99(0x11f)]!==undefined)await this[_0x50bd99(0x11f)];}return this[_0x50bd99(0x15d)](_0x38de57,_0x1ec18d);}[_0x3398cb(0x15d)](_0x4bddc8,_0x1ab01f){const _0x106686=_0x3398cb,_0xc28c6e=this[_0x106686(0x11e)];if(_0xc28c6e===undefined||!_0xc28c6e[_0x106686(0x13b)])throw new Error(_0x106686(0x11a));const _0x5e4d31=this[_0x106686(0x130)]++,_0x5a71ae=this[_0x106686(0x13d)][_0x106686(0x18e)]??REQUEST_TIMEOUT_MS,_0xd6208a=new Promise((_0x1f52c9,_0x41312a)=>{const _0x530c93=_0x106686,_0x483812=setTimeout(()=>{const _0x5ba390=_0x29ac;this[_0x5ba390(0x14a)][_0x5ba390(0x16c)](_0x5e4d31),this[_0x5ba390(0x192)](),_0x41312a(new Error(_0x5ba390(0x1ac)));},_0x5a71ae);this[_0x530c93(0x14a)][_0x530c93(0x1af)](_0x5e4d31,{'resolve':_0x1f52c9,'reject':_0x41312a,'timer':_0x483812});});return _0xc28c6e[_0x106686(0x14b)](JSON[_0x106686(0x163)]({'method':_0x4bddc8,'id':_0x5e4d31,'params':_0x1ab01f})+'\x0a'),_0xd6208a;}[_0x3398cb(0x17a)](){const _0x2d0b04=_0x3398cb;if(this[_0x2d0b04(0x14a)][_0x2d0b04(0x164)]===0x1b03+-0x4*0xc1+-0x17ff)return Promise[_0x2d0b04(0x118)]();return new Promise(_0x4bc49b=>this[_0x2d0b04(0x190)][_0x2d0b04(0x13f)](_0x4bc49b));}[_0x3398cb(0x192)](){const _0x4fdb7f=_0x3398cb;if(this[_0x4fdb7f(0x14a)][_0x4fdb7f(0x164)]!==0xc31+0x139f*0x1+-0x1fd0)return;for(const _0x418806 of this[_0x4fdb7f(0x190)])_0x418806();this[_0x4fdb7f(0x190)][_0x4fdb7f(0x156)]();}[_0x3398cb(0x131)](_0x34e72c,_0x2a04fb){const _0x1e21cf=_0x3398cb,_0x109ac3=this[_0x1e21cf(0x11e)];if(_0x109ac3===undefined||!_0x109ac3[_0x1e21cf(0x13b)])throw new Error(_0x1e21cf(0x11a));_0x109ac3[_0x1e21cf(0x14b)](JSON[_0x1e21cf(0x163)]({'method':_0x34e72c,'params':_0x2a04fb})+'\x0a');}[_0x3398cb(0x1a2)](_0x46e779,_0x10150a){const _0x655583=_0x3398cb,_0x172af8=this[_0x655583(0x11e)];if(_0x172af8===undefined||!_0x172af8[_0x655583(0x13b)])throw new Error(_0x655583(0x11a));_0x172af8[_0x655583(0x14b)](JSON[_0x655583(0x163)]({'id':_0x46e779,'result':_0x10150a})+'\x0a');}[_0x3398cb(0x161)](_0x4ca1a5,_0x376deb={}){const _0x5ee886=_0x3398cb;return this[_0x5ee886(0x16d)](_0x5ee886(0x111),{'cwd':_0x4ca1a5,...codexThreadConfiguration(_0x4ca1a5,_0x376deb)});}[_0x3398cb(0x115)](){const _0x38fef4=_0x3398cb;return this[_0x38fef4(0x16d)](_0x38fef4(0x176),{});}[_0x3398cb(0x135)](){const _0x3ee4cf=_0x3398cb;return this[_0x3ee4cf(0x16d)](_0x3ee4cf(0x116),{});}[_0x3398cb(0x177)](_0x46c685){const _0x15a735=_0x3398cb;return this[_0x15a735(0x16d)](_0x15a735(0x10c),_0x46c685);}[_0x3398cb(0x181)](_0x5cb35b,_0x7c30d2=!![]){const _0x4e4cf9=_0x3398cb;return this[_0x4e4cf9(0x16d)](_0x4e4cf9(0x1b0),{'threadId':_0x5cb35b,'includeTurns':_0x7c30d2});}[_0x3398cb(0x134)](_0x4e7ad6,_0x545841,_0x1de7b8,_0x3fdce8={}){const _0x277f58=_0x3398cb;return this[_0x277f58(0x16d)](_0x277f58(0x143),{'threadId':_0x4e7ad6,'lastTurnId':_0x1de7b8,'cwd':_0x545841,...codexThreadConfiguration(_0x545841,_0x3fdce8)});}[_0x3398cb(0x160)](_0x10c17e,_0x59f6b3){const _0x3fb6c1=_0x3398cb;return this[_0x3fb6c1(0x16d)](_0x3fb6c1(0x166),{'threadId':_0x10c17e,'name':_0x59f6b3});}[_0x3398cb(0x198)](_0x5c0347,_0x5e2130,_0x260220={}){const _0x522293=_0x3398cb;return this[_0x522293(0x16d)](_0x522293(0x170),{'threadId':_0x5c0347,'cwd':_0x5e2130,...codexThreadConfiguration(_0x5e2130,_0x260220)});}[_0x3398cb(0x19a)](_0x2e4278,_0x5b4330,_0x23098d,_0xe7b82e={},_0x305c5e=[]){const _0x37b01a=_0x3398cb;return this[_0x37b01a(0x16d)](_0x37b01a(0x127),{'threadId':_0x2e4278,'cwd':_0x23098d,'input':[{'type':_0x37b01a(0x159),'text':_0x5b4330},..._0x305c5e],...codexTurnConfiguration(_0x23098d,_0xe7b82e)});}[_0x3398cb(0x102)](_0x1b3264,_0x52b792,_0x52c01e){const _0x29c9d4=_0x3398cb;return this[_0x29c9d4(0x16d)](_0x29c9d4(0x178),{'threadId':_0x1b3264,'expectedTurnId':_0x52b792,'input':[{'type':_0x29c9d4(0x159),'text':_0x52c01e}]});}[_0x3398cb(0x14e)](_0x36d866,_0x4a529f){const _0x22f4b3=_0x3398cb;return this[_0x22f4b3(0x16d)](_0x22f4b3(0x120),{'threadId':_0x36d866,'turnId':_0x4a529f});}[_0x3398cb(0x15c)](_0x4e78ea){const _0x782efa=_0x3398cb;let _0x1e0489;try{_0x1e0489=JSON[_0x782efa(0x18a)](_0x4e78ea);}catch{return;}if((typeof _0x1e0489['id']===_0x782efa(0x1a5)||typeof _0x1e0489['id']===_0x782efa(0x172))&&typeof _0x1e0489[_0x782efa(0x124)]===_0x782efa(0x172)){for(const _0x3a3e8c of this[_0x782efa(0x12b)]){_0x3a3e8c({'method':_0x1e0489[_0x782efa(0x124)],'params':_0x1e0489[_0x782efa(0x112)],'requestId':_0x1e0489['id']});}return;}if(typeof _0x1e0489['id']===_0x782efa(0x1a5)){const _0x2c1f55=this[_0x782efa(0x14a)][_0x782efa(0x1aa)](_0x1e0489['id']);if(_0x2c1f55===undefined)return;clearTimeout(_0x2c1f55[_0x782efa(0x183)]),this[_0x782efa(0x14a)][_0x782efa(0x16c)](_0x1e0489['id']),this[_0x782efa(0x192)]();_0x1e0489[_0x782efa(0x175)]!==undefined?_0x2c1f55[_0x782efa(0x17c)](new CodexAppServerRpcError(isRecord(_0x1e0489[_0x782efa(0x175)])?_0x1e0489[_0x782efa(0x175)]:{'message':String(_0x1e0489[_0x782efa(0x175)])})):_0x2c1f55[_0x782efa(0x118)](_0x1e0489[_0x782efa(0x1a4)]);return;}if(typeof _0x1e0489[_0x782efa(0x124)]===_0x782efa(0x172)){for(const _0x21a36f of this[_0x782efa(0x12b)])_0x21a36f({'method':_0x1e0489[_0x782efa(0x124)],'params':_0x1e0489[_0x782efa(0x112)]});}}[_0x3398cb(0x167)](_0xa73923){const _0x51c087=_0x3398cb;for(const [_0x47caad,_0x34ec4e]of this[_0x51c087(0x14a)]){clearTimeout(_0x34ec4e[_0x51c087(0x183)]),_0x34ec4e[_0x51c087(0x17c)](_0xa73923),this[_0x51c087(0x14a)][_0x51c087(0x16c)](_0x47caad);}this[_0x51c087(0x192)]();}[_0x3398cb(0x169)](){const _0x21640e=_0x3398cb,_0x3e0f8b=this[_0x21640e(0x13d)][_0x21640e(0x11e)]??_0x21640e(0x17d);if(_0x3e0f8b===_0x21640e(0x17d))return process[_0x21640e(0x16e)]===_0x21640e(0x185)?_0x21640e(0x1a8):_0x21640e(0x19d);if(_0x3e0f8b===_0x21640e(0x1a8)&&process[_0x21640e(0x16e)]!==_0x21640e(0x185))throw new Error(_0x21640e(0x1a7));return _0x3e0f8b;}}function codexThreadConfiguration(_0x514de0,_0x4a33e2){const _0xd346ea=_0x3398cb;return{...modelOption(_0x4a33e2[_0xd346ea(0x14c)]),..._0x4a33e2[_0xd346ea(0x19e)]===undefined?{}:{'developerInstructions':_0x4a33e2[_0xd346ea(0x19e)]},..._0x4a33e2[_0xd346ea(0x148)]===undefined?{}:{'config':{'mcp_servers':_0x4a33e2[_0xd346ea(0x148)]}},...codexPermissionConfiguration(_0x514de0,_0x4a33e2[_0xd346ea(0x128)],_0xd346ea(0x1b1))};}function _0x29ac(_0x4b5305,_0x38699a){_0x4b5305=_0x4b5305-(-0x1*0x1ad5+0xfd3+0xc04*0x1);const _0x4ece43=_0x3617();let _0x1360e4=_0x4ece43[_0x4b5305];if(_0x29ac['IlaDGM']===undefined){var _0x31fb15=function(_0x18333a){const _0x2d4865='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x9a867f='',_0xa78902='';for(let _0xf6549e=0x2f*0x9b+0x23e0+-0x2b*0x17f,_0x1aa57e,_0x168758,_0xa40838=-0x8a*0x16+-0x24+0xc00;_0x168758=_0x18333a['charAt'](_0xa40838++);~_0x168758&&(_0x1aa57e=_0xf6549e%(0x1*-0x493+0x1ec5*0x1+-0x1a2e)?_0x1aa57e*(-0x6*0x32f+-0xefb+-0x1*-0x2255)+_0x168758:_0x168758,_0xf6549e++%(0x27*-0xc7+-0x61*0x26+0x2cbb))?_0x9a867f+=String['fromCharCode'](-0x1a4*-0x1+0x2*-0x164+-0x1*-0x223&_0x1aa57e>>(-(0x1b03+-0x4*0xc1+-0x17fd)*_0xf6549e&0xc31+0x139f*0x1+-0x1fca)):-0x2168+-0xcee+0x2e56){_0x168758=_0x2d4865['indexOf'](_0x168758);}for(let _0x4cd075=-0xffd+0x2381+-0x1384,_0x135be3=_0x9a867f['length'];_0x4cd075<_0x135be3;_0x4cd075++){_0xa78902+='%'+('00'+_0x9a867f['charCodeAt'](_0x4cd075)['toString'](0x2559*0x1+-0x6c6+-0x1e83))['slice'](-(0x16e9+0x294+-0x197b));}return decodeURIComponent(_0xa78902);};_0x29ac['wzUsBu']=_0x31fb15,_0x29ac['ngcNxi']={},_0x29ac['IlaDGM']=!![];}const _0xd668f3=_0x4ece43[0x9f3+0x1815+-0x2208];_0x29ac['JheipB']!==_0xd668f3&&(_0x29ac['ngcNxi']={},_0x29ac['JheipB']=_0xd668f3);const _0x500d14=_0x29ac['ngcNxi'][_0x4b5305];return _0x500d14===undefined?(_0x1360e4=_0x29ac['wzUsBu'](_0x1360e4),_0x29ac['ngcNxi'][_0x4b5305]=_0x1360e4):_0x1360e4=_0x500d14,_0x1360e4;}function codexTurnConfiguration(_0x452b33,_0x123a7e){const _0x4d2d70=_0x3398cb;return{...modelOption(_0x123a7e[_0x4d2d70(0x14c)]),...typeof _0x123a7e[_0x4d2d70(0x145)]===_0x4d2d70(0x172)?{'effort':_0x123a7e[_0x4d2d70(0x145)]}:{},..._0x123a7e[_0x4d2d70(0x136)]===_0x4d2d70(0x141)?{'serviceTier':_0x4d2d70(0x141)}:{},..._0x123a7e[_0x4d2d70(0x146)]===undefined?{}:{'collaborationMode':{'mode':_0x123a7e[_0x4d2d70(0x146)],'settings':{'model':_0x123a7e[_0x4d2d70(0x14c)]??_0x4d2d70(0x186),'reasoningEffort':_0x123a7e[_0x4d2d70(0x145)]??null}}},...codexPermissionConfiguration(_0x452b33,_0x123a7e[_0x4d2d70(0x128)],_0x4d2d70(0x199))};}function modelOption(_0xc6a4ae){return _0xc6a4ae===undefined||_0xc6a4ae===null?{}:{'model':_0xc6a4ae};}function codexPermissionConfiguration(_0x380044,_0x587c75,_0x1087dc){const _0x299099=_0x3398cb,_0x47bfea=_0x587c75===_0x299099(0x106)?_0x299099(0x106):_0x587c75===_0x299099(0x13c)||_0x587c75===_0x299099(0x151)?_0x299099(0x13c):_0x587c75===_0x299099(0x144)?_0x299099(0x10a):undefined,_0x5d8b13=_0x587c75===_0x299099(0x13c)||_0x587c75===_0x299099(0x144)?_0x299099(0x103):_0x299099(0x151);if(_0x1087dc===_0x299099(0x1b1))return{..._0x47bfea===undefined?{}:{'sandbox':_0x47bfea},'approvalPolicy':_0x5d8b13};return{..._0x47bfea===undefined?{}:{'sandboxPolicy':_0x47bfea===_0x299099(0x106)?{'type':_0x299099(0x138)}:_0x47bfea===_0x299099(0x10a)?{'type':_0x299099(0x18b)}:{'type':_0x299099(0x104),'writableRoots':[_0x380044],'networkAccess':!![]}},'approvalPolicy':_0x5d8b13};}export function probeCodex(_0x24183e=_0x3398cb(0x110)){const _0x7c6692=_0x3398cb,_0x253802=platformCliInvocation(_0x24183e,[_0x7c6692(0x187)]),_0xc13892=spawnSync(_0x253802[_0x7c6692(0x137)],_0x253802[_0x7c6692(0x109)],{'windowsHide':!![],'env':minimalRunnerEnvironment(),'timeout':0xbb8,'encoding':_0x7c6692(0x108)});if(_0xc13892[_0x7c6692(0x189)]!==-0x2168+-0xcee+0x2e56||_0xc13892[_0x7c6692(0x175)]!==undefined)return{'available':![],'compatible':![]};const _0xd0879=(''+_0xc13892[_0x7c6692(0x15b)]+_0xc13892[_0x7c6692(0x12e)])[_0x7c6692(0x105)]()[_0x7c6692(0x15e)](-0xffd+0x2381+-0x1384,0x2559*0x1+-0x6c6+-0x1e13);return{'available':!![],..._0xd0879[_0x7c6692(0x107)]===0x16e9+0x294+-0x197d?{}:{'version':_0xd0879},'compatible':!![]};}export async function probeCodexAsync(_0x1f8e80=_0x3398cb(0x110)){const _0x1de881=_0x3398cb,_0x4a0bfc=platformCliInvocation(_0x1f8e80,[_0x1de881(0x187)]),_0x114e6f=await runRunnerProbe(_0x4a0bfc[_0x1de881(0x137)],_0x4a0bfc[_0x1de881(0x109)],{'env':minimalRunnerEnvironment(),'timeoutMs':0xbb8});if(_0x114e6f[_0x1de881(0x189)]!==0x9f3+0x1815+-0x2208)return{'available':![],'compatible':![]};const _0x4e7c64=(''+_0x114e6f[_0x1de881(0x15b)]+_0x114e6f[_0x1de881(0x12e)])[_0x1de881(0x105)]()[_0x1de881(0x15e)](-0xbb*-0x1f+-0x131*-0x6+-0x1d*0x107,-0x1f9+-0x1f29+0x21a2);return{'available':!![],..._0x4e7c64[_0x1de881(0x107)]===-0x6df*0x3+0x97*-0x34+0x3349?{}:{'version':_0x4e7c64},'compatible':!![]};}export function isSupportedCodexVersion(_0x25b1a8){const _0x1d0d89=_0x3398cb;return _0x25b1a8[_0x1d0d89(0x105)]()[_0x1d0d89(0x107)]>0x5*0xef+-0xf47*0x1+0x184*0x7;}function _0x3617(){const _0x4ce52b=['AgfUzgXLtgLUzq','CMvXDwvZDerPCMvJDa','C2XPy2u','BMfTzq','C2v0vgHYzwfKtMfTzq','C3rHCNruAhjLywq','mZm5mZe0oe9buLrUCW','C3rYAw5NAwz5','C2L6zq','zgf0yq','DgHYzwfKl25HBwuVC2v0','zMfPBefSBa','C2HHCMvKq29UDhjVBa','DhjHBNnWB3j0tw9Kzq','mZG2mtG1oe5mwK9JqG','y29Kzq','zgvSzxrL','CMvXDwvZDa','CgXHDgzVCM0','DhvYBI5PBNrLCNj1Chq','DgHYzwfKl3jLC3vTzq','vu5bvKfjtefcteu','C3rYAw5N','Aw5PDgLHBgL6zwq','zw52AxjVBM1LBNq','zxjYB3i','DgHYzwfKl2XPC3q','BgLZDe1VzgvSCW','DhvYBI9ZDgvLCG','ywn0AxzLvhvYBG','D2fPDezVCLbLBMrPBMDszxf1zxn0CW','oty5nte2yuvJyuXd','CMvQzwn0','yxv0BW','q09ervHFqvbqx1nfuLzfuL9suenFrvjst1i6','q09ervHFvu5jwf9tt0nlrvrFq09otKvdvf9gquLmruq6','u0HbuKvex0nptLrst0W','CMvHzfrOCMvHza','ls1SAxn0zw4','DgLTzxi','CMvZDgfYDgLUzW','BgLUDxG','z3b0ltuUnI1ZB2W','ls12zxjZAw9U','y29KzxHFDNnJB2rL','C3rHDhvZ','CgfYC2u','zgfUz2vYrNvSBefJy2vZCW','q09ervHFqvbqx1nfuLzfuL9btfjfqurzx1nuqvjuruq','yxzHAwXHyMXL','DgLTzw91De1Z','ntC4otuYChzVq1DW','CgvUzgLUz0rYywLUv2fPDgvYCW','y29UzMLNDxjLrw52AxjVBM1LBNq','CMvZB2X2zvbLBMrPBMDeCMfPBG','C29JA2v0ugf0Aa','nu5Vy1bOra','y2XLyxjfBNzPCM9UBwvUDa','mc4XlJq','nZC1nZq5wxLuAxzO','CMvZDw1LvgHYzwfK','DhvYBG','C3rHCNruDxjU','tufoquDfra','BgLMzwn5y2XLuMv2AxnPB24','C3rKAw8','zgv2zwXVCgvYsw5ZDhj1y3rPB25Z','AxnbCNjHEq','B2jQzwn0','C3rHCNq','CMvZCg9Uza','BwLU','CMvZDwX0','BNvTyMvY','Aw5PDgLHBgL6zq','q09ervHFvu5jwf9tt0nlrvrFueXbvezpuK1Fvu5tvvbqt1juruq','Dw5PEa','Dw5PEdOVlW','z2v0','zxHPDa','q09ervHFqvbqx1nfuLzfuL9usu1ft1vu','q29KzxGGqxbWifnLCNzLCIbYzxf1zxn0igzHAwXLza','BM93','C2v0','DgHYzwfKl3jLywq','DgHYzwfK','AgLZDg9YEs5YzwfK','mZjfwKLsufu','BwvZC2fNzq','C3rLzxjuDxjU','BMv2zxi','D29YA3nWywnLv3jPDgu','DhjPBq','CMvHzc1VBMX5','BgvUz3rO','DxrMoa','yxjNCW','zgfUz2vYlwz1BgWTywnJzxnZ','rvHurvjoquW','Bw9KzwWVBgLZDa','mZaYmhr0EeLTva','zxzLBNrZlMXPDMu','DgvZDa','y29KzxG','DgHYzwfKl3n0yxj0','CgfYyw1Z','BgLUzq','CgLK','BgLZDfrOCMvHzhm','y29SBgfIB3jHDgLVBK1VzguVBgLZDa','y2HPBgq','CMvZB2X2zq','CNbJtwvZC2fNzq','q09ervHFqvbqx1nfuLzfuL9vtKfwquLmqujmrq','B25Jzq','C3rKAw4','C3bHD25qCM9JzxnZ','DhjHBNnWB3j0','C3rHCNrPBMC','DhvYBI9PBNrLCNj1Chq','B25oB3rPzMLJyxrPB24','CgLWzq','C3rVCe1HBMfNzwq','Bwv0Ag9K','q09ervHFqvbqx1nfuLzfuL9tve9queve','txLbz2vUDfjVyw0','DhvYBI9ZDgfYDa','ywnJzxnZ','DgHLBG','zgvZDhjVEq','BM90AwzPy2f0Aw9UCW','ntm4mJLur2L2uLe','DhvYBI5ZDgfYDa','C3rKzxjY','yxbWlxnLCNzLCG','BMv4DeLK','BM90Awz5','CMvZDgfYDa','lNnVy2S','zM9YA1rOCMvHza','BgLZDenVBgXHyM9YyxrPB25nB2rLCW','C2vYDMLJzvrPzxi','y29TBwfUza','CMvHze9UBhK','y29UBMvJDa','BMf0AxzLq29UDhjVBa','D3jPDgfIBgu','D29YA3nWywnLlxDYAxrL','B3b0Aw9UCW','DhvYBI5ZDgvLCG','ywrK','BxLHz2vUDhjVyw0Ty29KzxGT','zMfZDa','zw52','DgHYzwfKl2zVCMS','zNvSBc1Hy2nLC3m','zwzMB3j0','y29SBgfIB3jHDgLVBK1Vzgu','A2LSBa','BwnWu2vYDMvYCW','C3rVCa','CgvUzgLUzW','D3jPDgu','Bw9KzwW','uKvtvu1bqKXf','Aw50zxjYDxb0vhvYBG','CMvZDgfYDe1HBMfNzwq','y3DK','B24TCMvXDwvZDa','q09ervHFqvbqx1nfuLzfuL9tvefsvf9gquLmruq6','C3rHCNrnyw5Hz2vK','BMf0AxzLvgHYzwfKswq','q29KzxHbChbtzxj2zxjsCgnfCNjVCG','y2XLyxi','t0jtrvjwrv9ptKXz','mJeZmdqYouDwv1r0yW','Dgv4Da','q09ervHFqvbqx1nfuLzfuL9fweLuruq','C3rKB3v0'];_0x3617=function(){return _0x4ce52b;};return _0x3617();}function defaultSpawn(_0x1e1981,_0x391090,_0x29cfe3){const _0x2ac765=_0x3398cb,_0x537e43=platformCliInvocation(_0x1e1981,_0x391090);return spawn(_0x537e43[_0x2ac765(0x137)],_0x537e43[_0x2ac765(0x109)],{'stdio':[_0x2ac765(0x122),_0x2ac765(0x122),_0x2ac765(0x122)],'shell':![],'windowsHide':!![],..._0x29cfe3[_0x2ac765(0x150)]===undefined?{}:{'cwd':_0x29cfe3[_0x2ac765(0x150)]},..._0x29cfe3[_0x2ac765(0x142)]===undefined?{}:{'env':_0x29cfe3[_0x2ac765(0x142)]}});}function isRecord(_0xfb18a){const _0x582b21=_0x3398cb;return typeof _0xfb18a===_0x582b21(0x1a0)&&_0xfb18a!==null&&!Array[_0x582b21(0x19f)](_0xfb18a);}function stdioTransport(_0x484ef2){const _0x33445a=_0x3398cb;return{get 'writable'(){const _0xa5433d=_0x29ac;return _0x484ef2[_0xa5433d(0x11c)][_0xa5433d(0x13b)];},'write':_0x4ffc61=>_0x484ef2[_0x33445a(0x11c)][_0x33445a(0x14b)](_0x4ffc61),'on':(_0x1cc3a3,_0x19eafc)=>_0x484ef2[_0x33445a(0x15b)]['on'](_0x1cc3a3,_0x19eafc),'once':(_0x2e6fdb,_0x28fd69)=>_0x484ef2[_0x33445a(0x15b)][_0x33445a(0x11b)](_0x2e6fdb,_0x28fd69),'destroy':()=>_0x484ef2[_0x33445a(0x15b)][_0x33445a(0x12a)]()};}function privateSocketPath(){const _0x5bb59a=_0x3398cb;return join(tmpdir(),_0x5bb59a(0x140)+process[_0x5bb59a(0x114)]+'-'+randomUUID()+_0x5bb59a(0x133));}function connectUnix(_0x47217c,_0x55b559){return new Promise((_0x340de6,_0x5e2e83)=>{const _0x482a24=_0x29ac,_0x496390=Date[_0x482a24(0x1ae)]()+_0x55b559,_0x4ae08c=()=>{const _0x1b6972=_0x482a24,_0x246d08=connect(_0x47217c),_0x2bdef3=_0x15439e=>{const _0x2bfcd4=_0x29ac;_0x246d08[_0x2bfcd4(0x12a)]();if(Date[_0x2bfcd4(0x1ae)]()>=_0x496390){_0x5e2e83(new Error(_0x2bfcd4(0x17f)+_0x15439e[_0x2bfcd4(0x1b4)]));return;}setTimeout(_0x4ae08c,-0x5d1+0x1dee+0x6a*-0x3a);};_0x246d08[_0x1b6972(0x11b)](_0x1b6972(0x139),()=>_0x340de6(_0x246d08)),_0x246d08[_0x1b6972(0x11b)](_0x1b6972(0x175),_0x2bdef3);};_0x4ae08c();});}
2
+ const _0x30d41e=_0xcab7;(function(_0xee4476,_0x1b8fe5){const _0x55c273=_0xcab7,_0x4c6f33=_0xee4476();while(!![]){try{const _0x3f902b=-parseInt(_0x55c273(0x1f2))/(-0x1*-0x17cc+-0x81f+-0xfac)*(-parseInt(_0x55c273(0x25c))/(-0x26a8+0x1552+0x1158))+parseInt(_0x55c273(0x1f3))/(0x1*-0xbc3+-0x1*-0x351+-0x5*-0x1b1)*(-parseInt(_0x55c273(0x1f6))/(-0x49f*0x1+-0x9*-0x235+0x2*-0x79d))+-parseInt(_0x55c273(0x1de))/(0x76b+0xd56+-0x14bc)+-parseInt(_0x55c273(0x228))/(-0x4*0x85f+-0x1*0x1c45+0x3dc7)+parseInt(_0x55c273(0x240))/(0x5*-0x81+0x12df*0x2+0x212*-0x11)*(-parseInt(_0x55c273(0x1f4))/(0x6cd*-0x5+-0x1*0x16a9+0x7b*0x76))+parseInt(_0x55c273(0x258))/(0xbf*-0x25+0x194d+0x257)+parseInt(_0x55c273(0x233))/(0x17d8+-0x1300*-0x1+0x1567*-0x2);if(_0x3f902b===_0x1b8fe5)break;else _0x4c6f33['push'](_0x4c6f33['shift']());}catch(_0x1ebf2d){_0x4c6f33['push'](_0x4c6f33['shift']());}}}(_0x23ce,-0x66d97+-0x61b07+0x8b952*0x2));function _0x23ce(){const _0x1d394a=['yxjNCW','zwzMB3j0','Bw9KzwW','otjmzMfdvhi','ls12zxjZAw9U','yxzHAwXHyMXL','q09ervHFqvbqx1nfuLzfuL9fweLuruq','C3rHCNruAhjLywq','DgHYzwfKl3jLC3vTzq','BMf0AxzLq29UDhjVBa','y29UBMvJDa','ywrK','C3rKAw8','DhvYBI5ZDgvLCG','y29KzxHFDNnJB2rL','CMvZDw1LvgHYzwfK','DhvYBI9PBNrLCNj1Chq','BgLMzwn5y2XLuMv2AxnPB24','q29KzxGGqxbWifnLCNzLCIbYzxf1zxn0igzHAwXLza','y29UzMLNDxjLrw52AxjVBM1LBNq','zgvZDhjVEq','y29SBgfIB3jHDgLVBK1Vzgu','C3rHCNrnyw5Hz2vK','zgvSzxrL','C2HHCMvKq29UDhjVBa','BwvZC2fNzq','CMvHze9UBhK','y29Kzq','Bw9KzwWVBgLZDa','BMfTzq','uKvtvu1bqKXf','Aw5PDgLHBgL6zq','q09ervHFvu5jwf9tt0nlrvrFq09otKvdvf9gquLmruq6','B3b0Aw9UCW','BgLZDenVBgXHyM9YyxrPB25nB2rLCW','D3jPDgfIBgu','q09ervHFqvbqx1nfuLzfuL9tvefsvf9gquLmruq6','Dw5PEdOVlW','CgfYyw1Z','CMvZDgfYDa','AgfUzgXLtgLUzq','rvHurvjoquW','BM90AwzPy2f0Aw9UCW','Aw5PDgLHBgL6zwq','DhjPBq','zM9YA1rOCMvHza','zNvSBc1Hy2nLC3m','AgLZDg9YEs5YzwfK','q09ervHFqvbqx1nfuLzfuL9btfjfqurzx1nuqvjuruq','y2HPBgq','BMf0AxzLvgHYzwfKswq','DgHYzwfK','DgHYzwfKl3jLywq','D29YA3nWywnLlxDYAxrL','C3rKAw4','mc4XlJq','mtC3mJC3nwLAwMjUrq','q09ervHFqvbqx1nfuLzfuL9suenFrvjst1i6','Bwv0Ag9K','C3rHCNq','DhvYBG','CgXHDgzVCM0','B24TCMvXDwvZDa','C2XPy2u','q09ervHFqvbqx1nfuLzfuL9tve9queve','C3rVCe1HBMfNzwq','CgLWzq','C3rHCNruDxjU','AxnbCNjHEq','CMvZDgfYDgLUzW','tufoquDfra','txLbz2vUDfjVyw0','zgfUz2vYlwz1BgWTywnJzxnZ','zxHPDa','B25oB3rPzMLJyxrPB24','D2fPDezVCLbLBMrPBMDszxf1zxn0CW','ndy4Aw93DM5m','ntK0ntK3CwjPvhP0','ofbjq0T3CG','DgHYzwfKl2zVCMS','ngn0uLvQCa','CMvZDgfYDe1HBMfNzwq','y29SBgfIB3jHDgLVBK1VzguVBgLZDa','zw52AxjVBM1LBNq','zgv2zwXVCgvYsw5ZDhj1y3rPB25Z','BMv4DeLK','CMvXDwvZDerPCMvJDa','BwLU','y2XLyxi','t0jtrvjwrv9ptKXz','BNvTyMvY','CMvQzwn0','B25Jzq','CMvHzfrOCMvHza','y29KzxG','C3rYAw5NAwz5','C3rYAw5N','zw52','CMvZB2X2zq','CMvXDwvZDa','q09ervHFvu5jwf9tt0nlrvrFueXbvezpuK1Fvu5tvvbqt1juruq','C3bHD25qCM9JzxnZ','DgHYzwfKl3n0yxj0','DgLTzxi','vu5bvKfjtefcteu','CMvZCg9Uza','CMvZB2X2zvbLBMrPBMDeCMfPBG','DhvYBI9ZDgvLCG','zgf0yq','zgfUz2vYrNvSBefJy2vZCW','q09ervHFqvbqx1nfuLzfuL9vtKfwquLmqujmrq','DgHYzwfKl2XPC3q','DgLTzw91De1Z','DhjHBNnWB3j0tw9Kzq','y29TBwfUza','zMfPBefSBa','DgHYzwfKl25HBwuVC2v0','BgLZDe1VzgvSCW','C3rLzxjuDxjU','y3DK','DhvYBI9ZDgfYDa','D29YA3nWywnLv3jPDgu','C2v0','CgfYC2u','C2vYDMLJzvrPzxi','Aw50zxjYDxb0vhvYBG','C2v0vgHYzwfKtMfTzq','BgvUz3rO','z3b0ltuUnI1ZB2W','BMv2zxi','otKXndu4yvzitwTb','CNbJtwvZC2fNzq','DhjHBNnWB3j0','z2v0','ywnJzxnZ','BM90Awz5','C29JA2v0ugf0Aa','C3rKB3v0','zxjYB3i','Dgv4Da','DhvYBI5PBNrLCNj1Chq','mtuXmJu0nZbxA2T4vgy','q09ervHFqvbqx1nfuLzfuL9usu1ft1vu','DgvZDa','CgLK','CMvHzc1VBMX5','CgvUzgLUz0rYywLUv2fPDgvYCW','D3jPDgu','yxv0BW','BgLUzq','BwnWu2vYDMvYCW','BgLZDfrOCMvHzhm','BM93','u0HbuKvex0nptLrst0W','mZK3mdGZneXitMvWsG','BgLUDxG','B2jQzwn0','Dw5PEa','y2XLyxjfBNzPCM9UBwvUDa','A2LSBa','zMfZDa','DhvYBI5ZDgfYDa','C2L6zq','ls1SAxn0zw4','zxzLBNrZlMXPDMu','C3rVCa','BxLHz2vUDhjVyw0Ty29KzxGT','C3rKzxjY','lNnVy2S','C3rHCNrPBMC','CgvUzgLUzW','CMvZDwX0','q29KzxHbChbtzxj2zxjsCgnfCNjVCG','C3rHDhvZ','ywn0AxzLvhvYBG','DgHLBG','DxrMoa','yxbWlxnLCNzLCG','nJu5mtqYCgLUuwTt'];_0x23ce=function(){return _0x1d394a;};return _0x23ce();}import{spawn,spawnSync}from'node:child_process';import{randomUUID}from'node:crypto';import{existsSync}from'node:fs';import{unlink}from'node:fs/promises';import{connect}from'node:net';import{tmpdir}from'node:os';import{join}from'node:path';import{createInterface}from'node:readline';import{minimalRunnerEnvironment,platformCliInvocation,runRunnerProbe}from'./operational.js';const REQUEST_TIMEOUT_MS=-0x1*-0x61f1+-0x209*0xf+-0x1*0x8d2;export function codexSessionControl(_0x839a84){const _0x2d999a=_0xcab7;if(!_0x839a84[_0x2d999a(0x25e)])return{'level':_0x2d999a(0x20e),'capabilities':[]};if(_0x839a84[_0x2d999a(0x1be)])return{'level':_0x2d999a(0x23f),'capabilities':[_0x2d999a(0x1d5),_0x2d999a(0x24a),_0x2d999a(0x247),_0x2d999a(0x266),_0x2d999a(0x232)]};if(_0x839a84[_0x2d999a(0x1d8)]!==null&&_0x839a84[_0x2d999a(0x262)]===_0x2d999a(0x1cf))return{'level':_0x2d999a(0x1ff),'capabilities':[_0x2d999a(0x1d5)]};if(_0x839a84[_0x2d999a(0x254)])return{'level':_0x2d999a(0x1ec),'capabilities':[_0x2d999a(0x1d5),_0x2d999a(0x24a),_0x2d999a(0x266),_0x2d999a(0x232)]};return{'level':_0x2d999a(0x1c4),'capabilities':[_0x2d999a(0x1d5),_0x2d999a(0x247)]};}export class CodexAppServerRpcError extends Error{[_0x30d41e(0x1c1)];[_0x30d41e(0x229)];[_0x30d41e(0x212)];constructor(_0x3c04a7){const _0x5ec481=_0x30d41e,_0x26b4df=typeof _0x3c04a7[_0x5ec481(0x1bf)]===_0x5ec481(0x206)?_0x3c04a7[_0x5ec481(0x1bf)]:_0x5ec481(0x26b);super(_0x5ec481(0x1df)+JSON[_0x5ec481(0x205)](_0x3c04a7)),this[_0x5ec481(0x1c3)]=_0x5ec481(0x252),this[_0x5ec481(0x1c1)]=_0x3c04a7[_0x5ec481(0x1c1)],this[_0x5ec481(0x229)]=_0x26b4df,this[_0x5ec481(0x212)]=_0x3c04a7[_0x5ec481(0x212)];}}export function isCodexRolloutMissingError(_0x3fd185){const _0x3f4916=_0x30d41e;return _0x3fd185 instanceof CodexAppServerRpcError&&_0x3fd185[_0x3f4916(0x1c1)]===-(0x3*0x509d+0x2*-0x39bc+0x1*0xf9)&&(/^no rollout found for thread id\b/i[_0x3f4916(0x235)](_0x3fd185[_0x3f4916(0x229)])||/^thread not loaded:\s*/i[_0x3f4916(0x235)](_0x3fd185[_0x3f4916(0x229)]));}export class CodexAppServerClient{[_0x30d41e(0x1c7)];[_0x30d41e(0x1d7)];[_0x30d41e(0x22a)];[_0x30d41e(0x22e)];[_0x30d41e(0x1fb)]=0x12a0+0x20*-0x12+-0x105f;[_0x30d41e(0x250)]=new Map();[_0x30d41e(0x238)]=new Set();[_0x30d41e(0x1d0)]=new Set();[_0x30d41e(0x1f9)]={};[_0x30d41e(0x24f)];[_0x30d41e(0x1eb)];[_0x30d41e(0x26a)]=-0x2*0xf5+-0x77f*0x2+-0x43a*-0x4;constructor(_0x380fc1={}){const _0x1b47fa=_0x30d41e;this[_0x1b47fa(0x1c7)]=_0x380fc1;}[_0x30d41e(0x26c)](_0x9b1ea4){const _0x3d4fc7=_0x30d41e;if(this[_0x3d4fc7(0x1d7)]!==undefined)throw new Error(_0x3d4fc7(0x1d6));this[_0x3d4fc7(0x1f9)]={..._0x9b1ea4};}[_0x30d41e(0x244)](){const _0x568f29=_0x30d41e;if(this[_0x568f29(0x1d7)]!==undefined)throw new Error(_0x568f29(0x1d6));this[_0x568f29(0x1f9)]={};}[_0x30d41e(0x1e1)](){const _0x25325a=_0x30d41e;if(this[_0x25325a(0x1eb)]!==undefined)return this[_0x25325a(0x1eb)];if(this[_0x25325a(0x24f)]!==undefined)return this[_0x25325a(0x24f)];if(this[_0x25325a(0x1d7)]!==undefined)return Promise[_0x25325a(0x208)]();const _0x5eb820=this[_0x25325a(0x26f)]();this[_0x25325a(0x24f)]=_0x5eb820;const _0x40b97e=()=>{const _0xe31295=_0x25325a;if(this[_0xe31295(0x24f)]===_0x5eb820)this[_0xe31295(0x24f)]=undefined;};return void _0x5eb820[_0x25325a(0x255)](_0x40b97e,_0x40b97e),_0x5eb820;}[_0x30d41e(0x1cd)](){const _0x4dd30a=_0x30d41e;if(this[_0x4dd30a(0x1eb)]!==undefined)return this[_0x4dd30a(0x1eb)];const _0x591a55=this[_0x4dd30a(0x1f7)](this[_0x4dd30a(0x26a)]);this[_0x4dd30a(0x1eb)]=_0x591a55;const _0x518cbf=()=>{const _0x59463e=_0x4dd30a;if(this[_0x59463e(0x1eb)]===_0x591a55)this[_0x59463e(0x1eb)]=undefined;};return void _0x591a55[_0x4dd30a(0x255)](_0x518cbf,_0x518cbf),_0x591a55;}async[_0x30d41e(0x26f)](){const _0x341c95=_0x30d41e,_0x5d8354=this[_0x341c95(0x1c7)][_0x341c95(0x218)]??_0x341c95(0x204),_0x1400e5=this[_0x341c95(0x217)]();this[_0x341c95(0x22e)]=_0x1400e5===_0x341c95(0x243)?this[_0x341c95(0x1c7)][_0x341c95(0x22e)]??privateSocketPath():undefined;const _0x13949f=this[_0x341c95(0x1c7)][_0x341c95(0x259)]??[_0x341c95(0x257)],_0x224f6b=[..._0x13949f,..._0x1400e5===_0x341c95(0x243)?[_0x341c95(0x249),_0x341c95(0x1cb)+this[_0x341c95(0x22e)]]:[]],_0x48b8aa=this[_0x341c95(0x1c7)][_0x341c95(0x20b)]??defaultSpawn;let _0x56fb90=_0x48b8aa(_0x5d8354,_0x224f6b,{...this[_0x341c95(0x1c7)][_0x341c95(0x21d)]===undefined?{}:{'cwd':this[_0x341c95(0x1c7)][_0x341c95(0x21d)]},'env':{...minimalRunnerEnvironment(),...this[_0x341c95(0x1f9)]}});this[_0x341c95(0x1d7)]=_0x56fb90;let _0x418b9d;if(_0x1400e5===_0x341c95(0x243))try{_0x418b9d=await connectUnix(this[_0x341c95(0x22e)],(this[_0x341c95(0x1c7)][_0x341c95(0x22a)]??_0x341c95(0x23a))===_0x341c95(0x23a)?Math[_0x341c95(0x1fd)](this[_0x341c95(0x1c7)][_0x341c95(0x216)]??REQUEST_TIMEOUT_MS,0xba3+-0x2ab+-0x90*0x9):this[_0x341c95(0x1c7)][_0x341c95(0x216)]??REQUEST_TIMEOUT_MS);}catch(_0x367bb5){if((this[_0x341c95(0x1c7)][_0x341c95(0x22a)]??_0x341c95(0x23a))!==_0x341c95(0x23a))throw _0x367bb5;_0x56fb90[_0x341c95(0x245)]();if(this[_0x341c95(0x22e)]!==undefined&&existsSync(this[_0x341c95(0x22e)]))await unlink(this[_0x341c95(0x22e)]);this[_0x341c95(0x22e)]=undefined,_0x56fb90=_0x48b8aa(_0x5d8354,_0x13949f,{...this[_0x341c95(0x1c7)][_0x341c95(0x21d)]===undefined?{}:{'cwd':this[_0x341c95(0x1c7)][_0x341c95(0x21d)]},'env':{...minimalRunnerEnvironment(),...this[_0x341c95(0x1f9)]}}),this[_0x341c95(0x1d7)]=_0x56fb90;}this[_0x341c95(0x22a)]=_0x418b9d??stdioTransport(_0x56fb90);const _0x15d692=createInterface({'input':_0x418b9d??_0x56fb90[_0x341c95(0x22f)]});_0x15d692['on'](_0x341c95(0x23b),_0x6dc7d8=>this[_0x341c95(0x1ce)](_0x6dc7d8));const _0x4bb5dd=_0x56fb90;_0x56fb90[_0x341c95(0x202)](_0x341c95(0x230),_0x20f66e=>{const _0x16dc31=_0x341c95;if(this[_0x16dc31(0x1d7)]!==_0x4bb5dd)return;this[_0x16dc31(0x219)](new Error(_0x16dc31(0x1ca)+_0x20f66e[_0x16dc31(0x1bf)]));}),_0x56fb90[_0x341c95(0x202)](_0x341c95(0x1ef),()=>{const _0x23fe90=_0x341c95;if(this[_0x23fe90(0x1d7)]!==_0x4bb5dd)return;this[_0x23fe90(0x1d7)]=undefined,this[_0x23fe90(0x219)](new Error(_0x23fe90(0x25f)));}),await this[_0x341c95(0x1fc)](_0x341c95(0x1c5),{'clientInfo':{'name':_0x341c95(0x267),'title':_0x341c95(0x1ed),'version':_0x341c95(0x1dd)},'capabilities':{'experimentalApi':!![]}}),this[_0x341c95(0x22d)](_0x341c95(0x1d1),{});}async[_0x30d41e(0x1f7)](_0x3e3d34){const _0x5c1aa9=_0x30d41e;await Promise[_0x5c1aa9(0x208)]();if(this[_0x5c1aa9(0x24f)]!==undefined)await this[_0x5c1aa9(0x24f)];await this[_0x5c1aa9(0x1f1)]();if(this[_0x5c1aa9(0x26a)]!==_0x3e3d34)throw new Error(_0x5c1aa9(0x1e6));this[_0x5c1aa9(0x1e7)](),await this[_0x5c1aa9(0x26f)]();}[_0x30d41e(0x24b)](){const _0x43e470=_0x30d41e;this[_0x43e470(0x26a)]+=0x1*0x1aba+-0x2404+-0xb7*-0xd,this[_0x43e470(0x1e7)]();}[_0x30d41e(0x1e7)](){const _0x524fac=_0x30d41e;this[_0x524fac(0x22a)]?.[_0x524fac(0x26d)](),this[_0x524fac(0x22a)]=undefined,this[_0x524fac(0x1d7)]?.[_0x524fac(0x245)](),this[_0x524fac(0x1d7)]=undefined;if(this[_0x524fac(0x22e)]!==undefined&&existsSync(this[_0x524fac(0x22e)]))void unlink(this[_0x524fac(0x22e)]);this[_0x524fac(0x22e)]=undefined,this[_0x524fac(0x219)](new Error(_0x524fac(0x1e6)));}[_0x30d41e(0x1f0)](_0x3b4254){const _0x191d2d=_0x30d41e;return this[_0x191d2d(0x1d0)][_0x191d2d(0x264)](_0x3b4254),()=>this[_0x191d2d(0x1d0)][_0x191d2d(0x1bd)](_0x3b4254);}async[_0x30d41e(0x209)](_0x3fdcef,_0x9be97b){const _0x440576=_0x30d41e;if(this[_0x440576(0x1eb)]!==undefined)await this[_0x440576(0x1eb)];else{if(this[_0x440576(0x24f)]!==undefined)await this[_0x440576(0x24f)];}return this[_0x440576(0x1fc)](_0x3fdcef,_0x9be97b);}[_0x30d41e(0x1fc)](_0x4579bf,_0x4419dc){const _0x1ad4ce=_0x30d41e,_0x565c14=this[_0x1ad4ce(0x22a)];if(_0x565c14===undefined||!_0x565c14[_0x1ad4ce(0x1c9)])throw new Error(_0x1ad4ce(0x214));const _0x1371d5=this[_0x1ad4ce(0x1fb)]++,_0x26ec72=this[_0x1ad4ce(0x1c7)][_0x1ad4ce(0x216)]??REQUEST_TIMEOUT_MS,_0xde801c=new Promise((_0x32440c,_0x2cd8e4)=>{const _0x3ef0df=_0x1ad4ce,_0x2bcb3d=setTimeout(()=>{const _0x366eb3=_0xcab7;this[_0x366eb3(0x250)][_0x366eb3(0x1bd)](_0x1371d5),this[_0x366eb3(0x210)](),_0x2cd8e4(new Error(_0x366eb3(0x234)));},_0x26ec72);this[_0x3ef0df(0x250)][_0x3ef0df(0x220)](_0x1371d5,{'resolve':_0x32440c,'reject':_0x2cd8e4,'timer':_0x2bcb3d});});return _0x565c14[_0x1ad4ce(0x239)](JSON[_0x1ad4ce(0x205)]({'method':_0x4579bf,'id':_0x1371d5,'params':_0x4419dc})+'\x0a'),_0xde801c;}[_0x30d41e(0x1f1)](){const _0x9c7747=_0x30d41e;if(this[_0x9c7747(0x250)][_0x9c7747(0x248)]===-0x91*-0x9+0x19d9*-0x1+0x14c0)return Promise[_0x9c7747(0x208)]();return new Promise(_0x5bdf9b=>this[_0x9c7747(0x238)][_0x9c7747(0x264)](_0x5bdf9b));}[_0x30d41e(0x210)](){const _0x4426c3=_0x30d41e;if(this[_0x4426c3(0x250)][_0x4426c3(0x248)]!==0x2*0x12a6+-0xce8+0x1*-0x1864)return;for(const _0x3e76e4 of this[_0x4426c3(0x238)])_0x3e76e4();this[_0x4426c3(0x238)][_0x4426c3(0x1fe)]();}[_0x30d41e(0x22d)](_0x226033,_0x43a53d){const _0x3b3368=_0x30d41e,_0x494d6e=this[_0x3b3368(0x22a)];if(_0x494d6e===undefined||!_0x494d6e[_0x3b3368(0x1c9)])throw new Error(_0x3b3368(0x214));_0x494d6e[_0x3b3368(0x239)](JSON[_0x3b3368(0x205)]({'method':_0x226033,'params':_0x43a53d})+'\x0a');}[_0x30d41e(0x20f)](_0x43a7f3,_0x477bfc){const _0x414e43=_0x30d41e,_0x949ddd=this[_0x414e43(0x22a)];if(_0x949ddd===undefined||!_0x949ddd[_0x414e43(0x1c9)])throw new Error(_0x414e43(0x214));_0x949ddd[_0x414e43(0x239)](JSON[_0x414e43(0x205)]({'id':_0x43a7f3,'result':_0x477bfc})+'\x0a');}[_0x30d41e(0x260)](_0x4ecaf7,_0x404998={}){const _0x29722b=_0x30d41e;return this[_0x29722b(0x209)](_0x29722b(0x20c),{'cwd':_0x4ecaf7,...codexThreadConfiguration(_0x4ecaf7,_0x404998)});}[_0x30d41e(0x23d)](){const _0x495fc4=_0x30d41e;return this[_0x495fc4(0x209)](_0x495fc4(0x215),{});}[_0x30d41e(0x1c8)](){const _0x5ae539=_0x30d41e;return this[_0x5ae539(0x209)](_0x5ae539(0x1f8),{});}[_0x30d41e(0x21b)](_0xb3fd2a){const _0x346185=_0x30d41e;return this[_0x346185(0x209)](_0x346185(0x1c2),_0xb3fd2a);}[_0x30d41e(0x203)](_0x4454d7,_0xa45bf7=!![]){const _0x6189d2=_0x30d41e;return this[_0x6189d2(0x209)](_0x6189d2(0x1da),{'threadId':_0x4454d7,'includeTurns':_0xa45bf7});}[_0x30d41e(0x1d3)](_0xc8e722,_0x580d2d,_0x33defe,_0x333353={}){const _0x2b2267=_0x30d41e;return this[_0x2b2267(0x209)](_0x2b2267(0x1f5),{'threadId':_0xc8e722,'lastTurnId':_0x33defe,'cwd':_0x580d2d,...codexThreadConfiguration(_0x580d2d,_0x333353)});}[_0x30d41e(0x224)](_0x5920e1,_0x4911a3){const _0x565db6=_0x30d41e;return this[_0x565db6(0x209)](_0x565db6(0x21a),{'threadId':_0x5920e1,'name':_0x4911a3});}[_0x30d41e(0x268)](_0x89b320,_0x9bce9e,_0x2d1f54={}){const _0x5cb2d2=_0x30d41e;return this[_0x5cb2d2(0x209)](_0x5cb2d2(0x261),{'threadId':_0x89b320,'cwd':_0x9bce9e,...codexThreadConfiguration(_0x9bce9e,_0x2d1f54)});}[_0x30d41e(0x1e9)](_0x3060de,_0x561cfd,_0x5a3e7a,_0x407ee6={},_0x2f93bd=[]){const _0x4699f5=_0x30d41e;return this[_0x4699f5(0x209)](_0x4699f5(0x21e),{'threadId':_0x3060de,'cwd':_0x5a3e7a,'input':[{'type':_0x4699f5(0x231),'text':_0x561cfd},..._0x2f93bd],...codexTurnConfiguration(_0x5a3e7a,_0x407ee6)});}[_0x30d41e(0x21c)](_0x1d862c,_0x48aab4,_0x399f33){const _0x1ff2a1=_0x30d41e;return this[_0x1ff2a1(0x209)](_0x1ff2a1(0x211),{'threadId':_0x1d862c,'expectedTurnId':_0x48aab4,'input':[{'type':_0x1ff2a1(0x231),'text':_0x399f33}]});}[_0x30d41e(0x223)](_0x1676c8,_0x87df14){const _0x762d5f=_0x30d41e;return this[_0x762d5f(0x209)](_0x762d5f(0x269),{'threadId':_0x1676c8,'turnId':_0x87df14});}[_0x30d41e(0x1ce)](_0x588714){const _0x3d3576=_0x30d41e;let _0x262631;try{_0x262631=JSON[_0x3d3576(0x221)](_0x588714);}catch{return;}if((typeof _0x262631['id']===_0x3d3576(0x200)||typeof _0x262631['id']===_0x3d3576(0x206))&&typeof _0x262631[_0x3d3576(0x1e0)]===_0x3d3576(0x206)){for(const _0x268d4a of this[_0x3d3576(0x1d0)]){_0x268d4a({'method':_0x262631[_0x3d3576(0x1e0)],'params':_0x262631[_0x3d3576(0x1cc)],'requestId':_0x262631['id']});}return;}if(typeof _0x262631['id']===_0x3d3576(0x200)){const _0xe209f0=this[_0x3d3576(0x250)][_0x3d3576(0x22b)](_0x262631['id']);if(_0xe209f0===undefined)return;clearTimeout(_0xe209f0[_0x3d3576(0x20d)]),this[_0x3d3576(0x250)][_0x3d3576(0x1bd)](_0x262631['id']),this[_0x3d3576(0x210)]();_0x262631[_0x3d3576(0x230)]!==undefined?_0xe209f0[_0x3d3576(0x201)](new CodexAppServerRpcError(isRecord(_0x262631[_0x3d3576(0x230)])?_0x262631[_0x3d3576(0x230)]:{'message':String(_0x262631[_0x3d3576(0x230)])})):_0xe209f0[_0x3d3576(0x208)](_0x262631[_0x3d3576(0x251)]);return;}if(typeof _0x262631[_0x3d3576(0x1e0)]===_0x3d3576(0x206)){for(const _0x483e2b of this[_0x3d3576(0x1d0)])_0x483e2b({'method':_0x262631[_0x3d3576(0x1e0)],'params':_0x262631[_0x3d3576(0x1cc)]});}}[_0x30d41e(0x219)](_0x4a0192){const _0x1dd618=_0x30d41e;for(const [_0x322324,_0x35cc4e]of this[_0x1dd618(0x250)]){clearTimeout(_0x35cc4e[_0x1dd618(0x20d)]),_0x35cc4e[_0x1dd618(0x201)](_0x4a0192),this[_0x1dd618(0x250)][_0x1dd618(0x1bd)](_0x322324);}this[_0x1dd618(0x210)]();}[_0x30d41e(0x217)](){const _0x292279=_0x30d41e,_0x2621cf=this[_0x292279(0x1c7)][_0x292279(0x22a)]??_0x292279(0x23a);if(_0x2621cf===_0x292279(0x23a))return process[_0x292279(0x1e3)]===_0x292279(0x241)?_0x292279(0x243):_0x292279(0x265);if(_0x2621cf===_0x292279(0x243)&&process[_0x292279(0x1e3)]!==_0x292279(0x241))throw new Error(_0x292279(0x20a));return _0x2621cf;}}function codexThreadConfiguration(_0x2b1264,_0x2d7da3){const _0x36986e=_0x30d41e;return{...modelOption(_0x2d7da3[_0x36986e(0x25b)]),..._0x2d7da3[_0x36986e(0x1fa)]===undefined?{}:{'developerInstructions':_0x2d7da3[_0x36986e(0x1fa)]},..._0x2d7da3[_0x36986e(0x23c)]===undefined?{}:{'config':{'mcp_servers':_0x2d7da3[_0x36986e(0x23c)]}},...codexPermissionConfiguration(_0x2b1264,_0x2d7da3[_0x36986e(0x22c)],_0x36986e(0x1d9))};}function codexTurnConfiguration(_0x38e6e0,_0x5bce16){const _0x4b3f3c=_0x30d41e,_0x335fa9=typeof _0x5bce16[_0x4b3f3c(0x25a)]===_0x4b3f3c(0x206)&&_0x5bce16[_0x4b3f3c(0x25a)][_0x4b3f3c(0x1d2)]()[_0x4b3f3c(0x225)]>-0x1*-0xfe8+-0x146d+0x485?_0x5bce16[_0x4b3f3c(0x25a)]:null;return{...modelOption(_0x5bce16[_0x4b3f3c(0x25b)]),..._0x335fa9===null?{}:{'effort':_0x335fa9},..._0x5bce16[_0x4b3f3c(0x222)]===_0x4b3f3c(0x246)?{'serviceTier':_0x4b3f3c(0x246)}:{},..._0x5bce16[_0x4b3f3c(0x26e)]===undefined?{}:{'collaborationMode':{'mode':_0x5bce16[_0x4b3f3c(0x26e)],'settings':{'model':_0x5bce16[_0x4b3f3c(0x25b)]??_0x4b3f3c(0x226),'reasoningEffort':_0x335fa9}}},...codexPermissionConfiguration(_0x38e6e0,_0x5bce16[_0x4b3f3c(0x22c)],_0x4b3f3c(0x1e2))};}function modelOption(_0x5f341e){return _0x5f341e===undefined||_0x5f341e===null?{}:{'model':_0x5f341e};}function _0xcab7(_0xc18567,_0x1a6b53){_0xc18567=_0xc18567-(-0x2189+0x168+0xb4a*0x3);const _0x5685d2=_0x23ce();let _0x254475=_0x5685d2[_0xc18567];if(_0xcab7['sKItWa']===undefined){var _0x8990ec=function(_0x1bd70c){const _0x4f523e='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1dc675='',_0x3245b5='';for(let _0x2a8a17=-0x5*0x553+-0x9*0x13e+-0x1*-0x25cd,_0x5c29a3,_0x3e83f7,_0x50ccff=-0x1*-0x13cd+-0x35*0x68+0x1*0x1bb;_0x3e83f7=_0x1bd70c['charAt'](_0x50ccff++);~_0x3e83f7&&(_0x5c29a3=_0x2a8a17%(0x1*0x439+-0x1*-0x3e7+-0x81c)?_0x5c29a3*(0x11b5+0x15cd+-0x2742)+_0x3e83f7:_0x3e83f7,_0x2a8a17++%(-0x4b*-0x6+-0x21a*0x3+-0x1*-0x490))?_0x1dc675+=String['fromCharCode'](-0x130*0x8+-0x4c9*0x1+0x1*0xf48&_0x5c29a3>>(-(-0x2002+-0xb1*-0xe+-0x772*-0x3)*_0x2a8a17&0x20ba+-0x11*-0x243+0x1*-0x4727)):0x1f*-0x2e+0x878+-0x1*0x2e6){_0x3e83f7=_0x4f523e['indexOf'](_0x3e83f7);}for(let _0x2b62dc=-0xe19+-0x2*0xbb9+0x258b,_0x4afe1d=_0x1dc675['length'];_0x2b62dc<_0x4afe1d;_0x2b62dc++){_0x3245b5+='%'+('00'+_0x1dc675['charCodeAt'](_0x2b62dc)['toString'](-0x481*0x7+0x644+0x1953*0x1))['slice'](-(-0x15*0x41+0xbca+-0x673));}return decodeURIComponent(_0x3245b5);};_0xcab7['DtnoRM']=_0x8990ec,_0xcab7['Oebvka']={},_0xcab7['sKItWa']=!![];}const _0x25a21f=_0x5685d2[-0x1*-0x1582+0x812*-0x1+-0xd70];_0xcab7['IvwuLf']!==_0x25a21f&&(_0xcab7['Oebvka']={},_0xcab7['IvwuLf']=_0x25a21f);const _0x4a3122=_0xcab7['Oebvka'][_0xc18567];return _0x4a3122===undefined?(_0x254475=_0xcab7['DtnoRM'](_0x254475),_0xcab7['Oebvka'][_0xc18567]=_0x254475):_0x254475=_0x4a3122,_0x254475;}function codexPermissionConfiguration(_0x32ea8b,_0x265474,_0x8dc1b){const _0x1b8d56=_0x30d41e,_0x3605c6=_0x265474===_0x1b8d56(0x237)?_0x1b8d56(0x237):_0x265474===_0x1b8d56(0x1db)||_0x265474===_0x1b8d56(0x1e4)?_0x1b8d56(0x1db):_0x265474===_0x1b8d56(0x1d4)?_0x1b8d56(0x1ee):undefined,_0x22934f=_0x265474===_0x1b8d56(0x1db)||_0x265474===_0x1b8d56(0x1d4)?_0x1b8d56(0x227):_0x1b8d56(0x1e4);if(_0x8dc1b===_0x1b8d56(0x1d9))return{..._0x3605c6===undefined?{}:{'sandbox':_0x3605c6},'approvalPolicy':_0x22934f};return{..._0x3605c6===undefined?{}:{'sandboxPolicy':_0x3605c6===_0x1b8d56(0x237)?{'type':_0x1b8d56(0x1c0)}:_0x3605c6===_0x1b8d56(0x1ee)?{'type':_0x1b8d56(0x213)}:{'type':_0x1b8d56(0x21f),'writableRoots':[_0x32ea8b],'networkAccess':!![]}},'approvalPolicy':_0x22934f};}export function probeCodex(_0x4e3aa8=_0x30d41e(0x204)){const _0x3fb27e=_0x30d41e,_0x5a7ffc=platformCliInvocation(_0x4e3aa8,[_0x3fb27e(0x25d)]),_0x4f3fcb=spawnSync(_0x5a7ffc[_0x3fb27e(0x218)],_0x5a7ffc[_0x3fb27e(0x259)],{'windowsHide':!![],'env':minimalRunnerEnvironment(),'timeout':0xbb8,'encoding':_0x3fb27e(0x256)});if(_0x4f3fcb[_0x3fb27e(0x253)]!==-0x1957+0xfde+0x979||_0x4f3fcb[_0x3fb27e(0x230)]!==undefined)return{'available':![],'compatible':![]};const _0x1242ec=(''+_0x4f3fcb[_0x3fb27e(0x22f)]+_0x4f3fcb[_0x3fb27e(0x24d)])[_0x3fb27e(0x1d2)]()[_0x3fb27e(0x1e5)](0x644+0x1ca5+0x22e9*-0x1,-0x15*0x41+0xbca+-0x5f5);return{'available':!![],..._0x1242ec[_0x3fb27e(0x225)]===-0x1*-0x1582+0x812*-0x1+-0xd70?{}:{'version':_0x1242ec},'compatible':!![]};}export async function probeCodexAsync(_0x5f40af=_0x30d41e(0x204)){const _0x57cb95=_0x30d41e,_0x3738ae=platformCliInvocation(_0x5f40af,[_0x57cb95(0x25d)]),_0x51d3a8=await runRunnerProbe(_0x3738ae[_0x57cb95(0x218)],_0x3738ae[_0x57cb95(0x259)],{'env':minimalRunnerEnvironment(),'timeoutMs':0xbb8});if(_0x51d3a8[_0x57cb95(0x253)]!==-0x1*0x1d2a+-0x116d+0x2e97)return{'available':![],'compatible':![]};const _0x16d4a0=(''+_0x51d3a8[_0x57cb95(0x22f)]+_0x51d3a8[_0x57cb95(0x24d)])[_0x57cb95(0x1d2)]()[_0x57cb95(0x1e5)](-0x33*-0x6d+-0x1*0x1043+0x2*-0x2ba,0x56d*0x5+-0x1*0x386+-0x171b);return{'available':!![],..._0x16d4a0[_0x57cb95(0x225)]===-0xfd8+0x283*-0x9+0x2673?{}:{'version':_0x16d4a0},'compatible':!![]};}export function isSupportedCodexVersion(_0x31217d){const _0x22a406=_0x30d41e;return _0x31217d[_0x22a406(0x1d2)]()[_0x22a406(0x225)]>0x257d+0x6*-0x5e0+-0x23d;}function defaultSpawn(_0xee6578,_0x26ca3a,_0x5a4d3e){const _0x18eff8=_0x30d41e,_0x27e68d=platformCliInvocation(_0xee6578,_0x26ca3a);return spawn(_0x27e68d[_0x18eff8(0x218)],_0x27e68d[_0x18eff8(0x259)],{'stdio':[_0x18eff8(0x1e8),_0x18eff8(0x1e8),_0x18eff8(0x1e8)],'shell':![],'windowsHide':!![],..._0x5a4d3e[_0x18eff8(0x21d)]===undefined?{}:{'cwd':_0x5a4d3e[_0x18eff8(0x21d)]},..._0x5a4d3e[_0x18eff8(0x207)]===undefined?{}:{'env':_0x5a4d3e[_0x18eff8(0x207)]}});}function isRecord(_0x54e3f0){const _0x1ed1bf=_0x30d41e;return typeof _0x54e3f0===_0x1ed1bf(0x242)&&_0x54e3f0!==null&&!Array[_0x1ed1bf(0x1ea)](_0x54e3f0);}function stdioTransport(_0x19534b){const _0x488cd9=_0x30d41e;return{get 'writable'(){const _0x464846=_0xcab7;return _0x19534b[_0x464846(0x1dc)][_0x464846(0x1c9)];},'write':_0x390860=>_0x19534b[_0x488cd9(0x1dc)][_0x488cd9(0x239)](_0x390860),'on':(_0x2ab062,_0x2e4056)=>_0x19534b[_0x488cd9(0x22f)]['on'](_0x2ab062,_0x2e4056),'once':(_0x39fdea,_0x280391)=>_0x19534b[_0x488cd9(0x22f)][_0x488cd9(0x202)](_0x39fdea,_0x280391),'destroy':()=>_0x19534b[_0x488cd9(0x22f)][_0x488cd9(0x26d)]()};}function privateSocketPath(){const _0xffc1f7=_0x30d41e;return join(tmpdir(),_0xffc1f7(0x24c)+process[_0xffc1f7(0x236)]+'-'+randomUUID()+_0xffc1f7(0x24e));}function connectUnix(_0x4dd953,_0x1ab0c1){return new Promise((_0x3fe3e8,_0x2f038d)=>{const _0x1a5b1d=_0xcab7,_0x5ac514=Date[_0x1a5b1d(0x23e)]()+_0x1ab0c1,_0x2e23f4=()=>{const _0x28e0f6=_0x1a5b1d,_0x41b263=connect(_0x4dd953),_0x21a7c2=_0x3a1317=>{const _0x522c17=_0xcab7;_0x41b263[_0x522c17(0x26d)]();if(Date[_0x522c17(0x23e)]()>=_0x5ac514){_0x2f038d(new Error(_0x522c17(0x1c6)+_0x3a1317[_0x522c17(0x1bf)]));return;}setTimeout(_0x2e23f4,-0x2c*0x86+-0x1b7d*-0x1+0x12*-0x3e);};_0x41b263[_0x28e0f6(0x202)](_0x28e0f6(0x263),()=>_0x3fe3e8(_0x41b263)),_0x41b263[_0x28e0f6(0x202)](_0x28e0f6(0x230),_0x21a7c2);};_0x2e23f4();});}
package/dist/connector.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /* mar-release-protected */
2
- const _0x40355f=_0x1926;(function(_0x2bebf0,_0x1726bf){const _0x19682a=_0x1926,_0x5aa337=_0x2bebf0();while(!![]){try{const _0x2ca477=-parseInt(_0x19682a(0x1ff))/(-0x327+-0x259d+0x5d3*0x7)+parseInt(_0x19682a(0x1e6))/(-0x1*-0x61f+0x2440+-0x2a5d)*(parseInt(_0x19682a(0x20e))/(0x84b*-0x1+-0x8*0x31+0x9d6))+-parseInt(_0x19682a(0x1bd))/(-0x7b3*0x1+0x14*-0x175+0x24db)*(-parseInt(_0x19682a(0x22b))/(0x25a5+-0x133c+0xd6*-0x16))+parseInt(_0x19682a(0x1b2))/(0x3*-0x161+0x3*0x306+-0x4e9)+-parseInt(_0x19682a(0x217))/(-0x27*0x61+0x18c+-0x2*-0x6a1)+-parseInt(_0x19682a(0x1ba))/(-0x167b+0x1*0x2051+-0x9ce)*(-parseInt(_0x19682a(0x23c))/(0x2418+0x206*0x12+-0x487b))+-parseInt(_0x19682a(0x225))/(-0x228d+0x1*-0x745+-0x2f*-0xe4);if(_0x2ca477===_0x1726bf)break;else _0x5aa337['push'](_0x5aa337['shift']());}catch(_0x5394ea){_0x5aa337['push'](_0x5aa337['shift']());}}}(_0x18e1,-0x39ad*0x11+0x19416+-0x68567*-0x1));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{RunnerUsageReader}from'./runner-usage.js';import{ClaudeCodeRunner}from'./runner/claude-code-runner.js';import{ClaudeManagedRunController}from'./runner/claude/managed-run-controller.js';import{CodexRunner}from'./runner/codex-runner.js';import{CodexManagedRunController}from'./runner/codex/managed-run-controller.js';import{FakeTestRunner}from'./runner/fake-test-runner.js';import{RunnerRegistry}from'./runner/runner-registry.js';import{OpenCodeRunner}from'./runner/opencode-runner.js';import{OpenCodeManagedRunController}from'./runner/opencode/managed-run-controller.js';import{NodeOperationRouter}from'./connector/node-operation-router.js';import{SkillNodeOperationService}from'./service/skill-node-operation-service.js';import{McpNodeOperationService}from'./service/mcp-node-operation-service.js';import{RunnerService}from'./service/runner-service.js';function _0x18e1(){const _0x1de641=['D29YA2jLBMnOrxzLBNrtzxj2AwnL','CNvUDgLTzq','y29UBMvJDgLVBKXPzMvJEwnSzq','AgfUzgXLtwvZC2fNzq','q0foq0vm','DxbNCMfKzunVB3jKAw5HDg9Y','DxbNCMfKzq','BgLZDfDVCMTZCgfJzxm','zgvJAwrLqxbWCM92ywW','y2fUy2vS','ChvIBgLZAfnUyxbZAg90','C2vZC2LVBKnHDgfSB2Dtzxj2AwnL','y29UDhjVBe1LC3nHz2vZ','BMv4Da','zw1PDenVBNzLCNnHDgLVBLr1CM4','y2fUy2vSuxvLDwvK','ChjLCgfYzu1LC3nHz2vjBNb1Da','BM9Kzs5JB25Uzwn0Aw5N','z2v0','B25tDw1Tyxj5','zxH0zxjUywXtzxnZAw9UuMvZDw1Lu2vYDMLJzq','ywn0AxzLv29YA3nWywnLtgvHC2vdB3vUDa','zgLZCgf0y2G','ywrK','C3vWzxj2AxnLzfvWz3jHzgu','BM9Kzs51CgDYywrLlNjLCxvLC3q','BMf0AxzLswrZ','ywn0AxzL','zxHLy3v0Aw9U','C2vZC2LVBLf1zxj5u2vYDMLJzq','Dg9WAwnby3rPDMu','Aw5ZCgvJDa','zgLZy292zxjxB3jRC3bHy2u','D29YA3nWywnLu2vZC2LVBLnLCNzPy2u','zxHLy3v0zq','y2XHDwrLq2XPzw50','D29YA3nWywnLq2HHBMDLu2vYDMLJzq','zw1PDfj1BKv2zw50','CMvWBgfJzq','AxrLBuLK','BM9KzvjLCxvLC3rZ','vgHPCYboB2rLignVBM5Ly3rPB24GD2fZihjLCgXHy2vKigj5igeGBMv3zxiGAw5ZDgfUy2uGD2L0Acb0AguGC2fTzsbPzgvUDgL0Es4Gq2HLy2SGzM9Yigr1CgXPy2f0zsbWCM9JzxnZzxmU','ChjLC2vUDa','y3jLyxrLqxbWCM92ywW','Cgf1C2vtzxnZAw9UuxvLDwu','B3bLBKnVzgvdBgLLBNq','y2XHDwrLqxbWCM92ywXuAw1LB3v0txm','CMvZDw1Lqwz0zxjdB21Tyw5KuNvU','B3bLCMf0Aw9UuM91DgvY','zgLZCg9Zzq','yxbWCM92ywXZ','CMfUzg9Tvvvjra','y29UDhjVBenOyw5UzwW','DhjHBNnPDgLVBMLUzW','y2XVC2vsDw5UAw5NvgvYBwLUywXtzxnZAw9UCW','tK9erv9tve9queve','C2H1DgrVD24','AxrLBxm','CMvQzwn0','Bwf4','zw5ZDxjLuMvZDw1LzenVBMzPz3vYyxrPB24','BgLUDxG','y2HHBM5LBfrVA2vU','y2fJAgvKu2vZC2LVBNm','nZu3ntbYtxvZwgi','y2XVC2u','DxbNCMfKzvjLywr5','CMvTzw1Izxi','C2vZC2LVBNm','zwzMB3j0','CMvNAxn0zxjbBgW','D29YA3nWywnLrMLSzvnLCNzPy2u','mtzNuM5NCha','D2LUzg93CW','y2fUy2vSq29KzxHuDxjU','mJq1ntCYD1L4zwf6','CNvUBMvYq2HHBM5LBe1LC3nHz2vZ','zxHLy3v0zu5VzgvpCgvYyxrPB24','CMvMCMvZAfrVCgLJ','CMvTB3zL','ywnJzxnZ','AxnbCNjHEq','zwzMzwn0AxzLtwnWsw5ZDgfSBgf0Aw9UCW','CMvZB2X2zuzVCK1LC3nHz2u','D29YA3nWywnLq29VCMrPBMf0B3i','C2vZC2LVBKnVBw1HBMrtzxj2AwnL','D2f0y2GUzxzLBNq','y29UDMvYC2f0Aw9Uu2vNBwvUDfnLCNzPy2u','zMfZDa','zMLUza','Bwv0ywrHDge','CMvMCMvZAfrPDgXL','AgfZqwn0AxzLu2vZC2LVBKXLyxnL','D29YA3nWywnLv29YA2jLBMnOu2vYDMLJzq','tK9erv9dt05orunusu9ox1jfueXbq0ve','DgLTzxi','ChvIBgLZAefWChjVDMfS','C2vZC2LVBG','BM9Kzs5JB25Uzwn0Aw9UlNjLCgXHy2vK','Aw52ywXPzgf0zvDVCMTZCgfJzvDHDgnOvg9WAwnZ','zxzLBNq','DxbNCMfKzs1Yzxn1BhqUANnVBG','CNvUBMvYlMnVBw1HBMqUzxHLy3v0zq','AgfZ','CgXHDgzVCM0','Aw52ywXPzgf0zunOyw5Nzxm','ChjVAMvJDeLUAxrPywW','BwfUywDLzfj1BM5LCLnLC3nPB25Z','Aw50zxjYDxb0uMvXDwvZDgvK','y2fWywjPBgL0AwvZuhjVDMLKzwq','y29UDMvYC2f0Aw9U','y2fUy2vSq2XHDwrLuNvU','B25oB3rPzMLJyxrPB24','y29KzxG','ChjVBw90zq','BM9Kzs53B3jRyMvUy2GUy2fWywjPBgL0AwvZ','mJmWmdzTyuvJthG','Bw9KzwW','y29UDMvYC2f0Aw9UvhvYBKzVCLj1BG','DgHYzwfKswq','BwLNCMf0zvj1BM5LCLnLC3nPB25jzgvUDgL0Eq','ChjVAMvJDgLVBKzVCK5HDgL2zq','zgvJAwrL','zMfRztO','z2v0qwDLBNrtzxnZAw9U','yMLUzenVBw1HBMrdB250CM9S','zgvJAxnPB24','D29YA3nWywnLuxvLDwvxB3jRyMvUy2Htzxj2AwnL','CMvJB25Uzwn0u2nOzwr1BgvK','A2LUza','yMLUzenVBNrYB2W','D29YA3nWywnLv2f0y2Htzxj2AwnL','BwLNCMf0zvnLC3nPB24','CMvJB25JAwXL','y29UBMvJDgvK','Cgf0Aa','zxHLy3v0zunVBw1HBMq','zMfRzvj1BM5LCG','y29TBwfUzfn0yxrLCW','C2vUza','CMvNAxn0zxi','mJuXnZvxDfDlB3e','C3rYAw5N','BMf0AxzLu2vZC2LVBLDHDgnOu2vYDMLJzq','rKflrv9svu5orvjFreLtq09otKvdva','B3bLCMf0Aw9UCW','zMLSDgvY','CMvJB3jKzwqTC2vZC2LVBG','DgvYBwLUywXnyw5Hz2vY','BwfUywDLzezVCK5HDgL2zq','CNvUswq','CMvZB2X2zun1CNjLBNq','zgvJAwrLq29KzxHbChbYB3zHBa','C2vZC2LVBLn0yxrL','C2L6zq','C2vZC2LVBI5SAxn0','mtq0Cwjmtvb6','BM9Kzs51CgDYywrLlMnHBMnLBa','y29TCgXLDgvdyw5JzwXSzwrsDw4','Bwv0CMLJCW','y2XHDwrLuNvUq29UDhjVBgXLCG','DMfSDwvZ','B3bLBKnVzgvsDw5dB250CM9SBgvY','CMvJzw50uNvUuhjVAMvJDgLVBLnLCNzPy2u','ChvIBgLZAa','mJu0mtG0wgjkExbv','tK9erv9dt05gsuDFvu5bvKfjtefcteu','zxHWAxjL','CMvJB25JAwXLugvYC2LZDgvKuNvUCW','y2XLyxjbBgW','ywXSB3DLzfjVB3rZ','CMvMCMvZAev4DgvYBMfSqwn0AxzPDhK','C3rHCNrdyxbHyMLSAxr5uMvMCMvZAa','zw1PDenVBNzLCNnHDgLVBKL0zw0','BM9Kzs5TzxrYAwnZ','DgvYBwLUywXdAgfUBMvS','y29KzxHqCM9MAwXLq2XPzw50rMfJDg9YEq','y29UDMvYC2f0Aw9UlML0zw0','D29YA3nWywnLvxbSB2fKu2vYDMLJzq','nZm3ndi3mfbHz3jhCa','yxbWzw5K','C2f2zu5HDgL2zvnLC3nPB25nzxrHzgf0yq','y29UBMvJDa','CNvUqxr0ywnOBwvUDfnLCNzPy2u','C3rHCNq','mZvnqxHbuei','C2vZC2LVBK1LC3nHz2vtzxj2AwnL','CMvJB25Uzwn0','CMvZCg9UzfvZzxjjBNb1Da','zw1PDfDVCMTIzw5JAev2zw50','BgLZDa','CNvUBMvYvxnHz2vszwfKzxi','z2v0uNvU','CMvZDw1LzenVBMzPz3vYyxrPB24','CMvXDwvZDenSyxvKzufWChjVDMfS','DhvYBG','BM9KzuDLBMvYyxrPB24','C25HChnOB3q','CNvUrxzLBNrcCMLKz2u','zgf0ywjHC2u','Bwf0zxjPywXPEMvdB2rLEa','BMf0AxzLsw1Hz2vsB290CW','mZC4ota5u2LmrxnS','CMvJzw50lxj1BNm','C3rVChbLza','CMvXDwLYzq','CNvUDgLTzs1UB2rL','y29UBMvJDgvKqxr0zw1WDa','zw1PDfjLywX0Aw1L','CNvUBMvYsw50zxjHy3rPB25tzxj2AwnL','AgfUzgXL','C25HChnOB3rtzxf1zw5Jzq','Dw5YzwDPC3rLCMvK','zMX1C2Hqzw5KAw5Nvgv4Da','C3rYAw5NAwz5','BwLU','CMvWBgfJzvnVy2TLDezVCLrLC3rPBMC','CMvHze5HDgL2zq','C3rVCa','Aw50zxjYDxb0','yxbWCM92ywXjza','CNvUu3rHDgu','D29YA2jLBMnOtwfUAwzLC3rtzxj2AwnL','zgLZy29UBMvJDa','ChjVBw90zvnLC3nPB25jzgvUDgL0Eq','CNvUCW','BMf0AxzLlNnLC3nPB24UzgLZy292zxj5lNbLBMrPBMC','yM9VDhn0CMfWswrZ','C2v0q2HHBM5LBfrVA2vU','BM90AwzPy2f0Aw9U','C2vZC2LVBKnVBNrLEhrtzxj2AwnL','uLvox05pvf9gt1vora','D29YA3nWywnLswq','CNvU','y29KzxHsDw5dB250CM9SBgvY','q0foq0vmteLorW','Aw5KzxG','CNvUv29YA2jLBMnOu2vYDMLJzq','BMf0AxzLu2vZC2LVBLbYB2PLy3rPB25tzxj2AwnL','CMvHza','CMvZB2X2zq','C2vZC2LVBKLKzw50Axr5u2vYDMLJzq','y29UzMLNugf0Aa','y2XLyw51Ca','C2vUzevUDMvSB3bL','DxnLCKLUChv0CW','zgLZy292zxjxB3jRC3bHy2vtzxnZAw9UCW','tK9erv9eqvrbqKftrv9vtKfwquLmqujmrq','y29KzxHdBgLLBNq','C2vZC2LVBKXPzMvJEwnSzvnLCNzPy2u','y3DK','lw9Wzw5JB2rLlwLTywDLCW','AgfUzgXLtM90AwzPy2f0Aw9U','y2XLyxi','C3rHDhvZ','zMfRzvnJCMLWDa','tK9erv9vueDsqurfx1bftKrjtKC','zgLYzwn0tMf0AxzL','uKvkrunuruq','su5urvjsvvburuq','BgLZDfj1BNngB3jtzxnZAw9U','zxzLBNruExbL','CNvUBMvY','CNvUrxzLBNrtzxj2AwnL','y29UzMLN','y2fWywjPBgL0AwvZ','Bg9HzfjLC3vSDa','zw1PDfj1BG','C29JA2v0','CMvXDwvZDa','BM93','y2XLyxjxyxrJAgvZ','DgvYBwLUywXtzxj2AwnL','zM9Yz2v0','zxHWAxjLqxbWCM92ywW','yMXVy2TZ','C2vZC2LVBI13yxrJAc1ZBMfWC2HVDa','Aw52ywXPzgf0zq','ChjVzMLSzxm','BM9KzuLK','DhvYBKLK','BM9Kzs5VCgvYyxrPB24','C2nOzwr1Bgu','zw5ZDxjLv2f0y2G','C2v0','surmrq','CMvMCMvZAenHCgfIAwXPDgLLCW','zxH0zxjUywXby3rPDML0Eq','CNvUBMvYu2vYDMLJzq','zgvJAwrLq2XHDwrLqxbWCM92ywW','q0foq0vmteve','zgvSzxrL','y2fWywjPBgL0EurLDgvJDg9Y','CMvJB3jK','zgLZy292zxi','y29UDMvYC2f0Aw9UsgLZDg9YEvnLCNzPy2u','CgvUzgLUzW','CgvYC2LZDezPBgvZ','ywrVChrsDw4','D29YA3nWywnLu3rHDgu','yxzHAwXHyMXL','C2vZC2LVBLbYzxnLBNrHDgLVBLnLCNzPy2u','z2v0v29YA3nWywnL','D2LUmZi','C3rHDgu','D29YA3nWywnLu2vYDMLJzq','CgvYC2LZDfrLCM1PBMfS','CNvUBMvYCW','CMvXDwvZDenSyxvKzvvZzxjjBNb1Da','zxHPDa','zw1PDff1zxvL','C3rVCfDHDgnO'];_0x18e1=function(){return _0x1de641;};return _0x18e1();}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';function _0x1926(_0x57bd21,_0x25fd73){_0x57bd21=_0x57bd21-(-0x17cd+0x23cd+0x1*-0xaf8);const _0x11d16d=_0x18e1();let _0x1a3c0f=_0x11d16d[_0x57bd21];if(_0x1926['DmphtC']===undefined){var _0x5b0bfc=function(_0x2fba81){const _0x11ebdd='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x211788='',_0x1a6ecb='';for(let _0xbda7f1=0x1b*-0x14+-0x8ef+-0xb0b*-0x1,_0x3aa5f4,_0x105f1f,_0x411fa3=0x1421*-0x1+0x633+-0x2*-0x6f7;_0x105f1f=_0x2fba81['charAt'](_0x411fa3++);~_0x105f1f&&(_0x3aa5f4=_0xbda7f1%(-0x530*-0x1+0x13*0xab+-0x11dd)?_0x3aa5f4*(-0x260a+0x2c0+-0x11c5*-0x2)+_0x105f1f:_0x105f1f,_0xbda7f1++%(0x1a7e*0x1+0x16c+-0x1be6))?_0x211788+=String['fromCharCode'](0x19c4+0x1c7d+-0x1*0x3542&_0x3aa5f4>>(-(0x1386+-0x1981+0x5fd)*_0xbda7f1&-0x46f+0x5*0x1eb+-0x522)):-0x2*-0x18e+0x12c7+-0x15e3){_0x105f1f=_0x11ebdd['indexOf'](_0x105f1f);}for(let _0xac53fa=0x349*-0x1+0x9a7+0x1*-0x65e,_0x4d5fda=_0x211788['length'];_0xac53fa<_0x4d5fda;_0xac53fa++){_0x1a6ecb+='%'+('00'+_0x211788['charCodeAt'](_0xac53fa)['toString'](-0x185*0x1+-0x1d79+-0xf*-0x212))['slice'](-(-0xe1e+0x1525+0x1*-0x705));}return decodeURIComponent(_0x1a6ecb);};_0x1926['UJuknZ']=_0x5b0bfc,_0x1926['FXXEwr']={},_0x1926['DmphtC']=!![];}const _0x321782=_0x11d16d[0xaec+0x2702+-0xa6*0x4d];_0x1926['oyXRbu']!==_0x321782&&(_0x1926['FXXEwr']={},_0x1926['oyXRbu']=_0x321782);const _0x1accc2=_0x1926['FXXEwr'][_0x57bd21];return _0x1accc2===undefined?(_0x1a3c0f=_0x1926['UJuknZ'](_0x1a3c0f),_0x1926['FXXEwr'][_0x57bd21]=_0x1a3c0f):_0x1a3c0f=_0x1accc2,_0x1a3c0f;}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{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=-0x47c9+0x4a60+0x213*0x1b,CAPABILITY_REFRESH_MS=-0xa1*-0x18f+0x4f*-0x2e8+-0xd509*-0x1,RETRY_MIN_MS=0x21af+0xec8+-0x237*0x15,RETRY_MAX_MS=-0x44d8+0x1*0x7e7c+0x1dc6*0x2,CLAUDE_APPROVAL_TIMEOUT_MS=(0x16af*-0x1+-0x1046+0x26ff)*(-0x304*-0x3e+-0x25e8+0x5550);export function nextReconnectDelay(_0x167ada){const _0x39b0f7=_0x1926;return Math[_0x39b0f7(0x111)](RETRY_MAX_MS,RETRY_MIN_MS*(-0x38*0x63+0x5*-0xe3+0x1a19)**Math[_0x39b0f7(0x111)](Math[_0x39b0f7(0x1ad)](_0x167ada,-0x2*-0x18e+0x12c7+-0x15e3),0x349*-0x1+0x9a7+0x1*-0x64e));}function upgradeMetadata(_0x3fcb42,_0x1a8881){const _0x12ed5c=_0x1926,_0x1b9eb2={..._0x3fcb42??{}};if(process.env['MAR_NODE_SUPERVISED']==='1')_0x1b9eb2[_0x12ed5c(0x18a)]=!![];else delete _0x1b9eb2[_0x12ed5c(0x18a)];if(_0x1a8881[_0x12ed5c(0x16a)]===_0x12ed5c(0x157))delete _0x1b9eb2[_0x12ed5c(0x178)];else _0x1b9eb2[_0x12ed5c(0x178)]=_0x1a8881;return _0x1b9eb2;}export class NodeConnector{[_0x40355f(0x236)]=crypto[_0x40355f(0x1a5)]()[_0x40355f(0x198)](/-/g,'');[_0x40355f(0x1a6)];[_0x40355f(0x17e)];[_0x40355f(0x19a)];[_0x40355f(0x174)];set[_0x40355f(0x146)](_0x1d96d4){const _0x5ba5c6=_0x40355f;this[_0x5ba5c6(0x1a6)][_0x5ba5c6(0x112)](_0x1d96d4);}[_0x40355f(0x23e)]=![];[_0x40355f(0x142)];[_0x40355f(0x1df)];[_0x40355f(0x143)];[_0x40355f(0x15e)];[_0x40355f(0x12c)];[_0x40355f(0x22d)];[_0x40355f(0x1a0)];[_0x40355f(0x172)]=new WorkbenchEventService(envelope=>this[_0x40355f(0x12e)](envelope),(category,payload)=>{const _0x1d15e9=_0x40355f,sessionId=workbenchPayloadSessionId(this[_0x1d15e9(0x173)],category,payload);return sessionId===undefined||!this[_0x1d15e9(0x12b)][_0x1d15e9(0x11d)][_0x1d15e9(0x1d9)](sessionId);});[_0x40355f(0x1fb)];[_0x40355f(0x139)];[_0x40355f(0x117)]=new RunDomainState();[_0x40355f(0x238)];[_0x40355f(0x1c6)];[_0x40355f(0x20b)]=new SessionDomainState();[_0x40355f(0x12b)];[_0x40355f(0x128)];[_0x40355f(0x161)];[_0x40355f(0x1c9)];[_0x40355f(0x10b)];[_0x40355f(0x1be)];[_0x40355f(0x1dd)];[_0x40355f(0x167)];[_0x40355f(0x133)];[_0x40355f(0x186)];[_0x40355f(0x22c)];[_0x40355f(0x17d)];[_0x40355f(0x1c7)];[_0x40355f(0x229)];[_0x40355f(0x221)];[_0x40355f(0x132)];[_0x40355f(0x124)];[_0x40355f(0x195)];[_0x40355f(0x19f)];[_0x40355f(0x214)];[_0x40355f(0x212)];[_0x40355f(0x16d)];[_0x40355f(0x120)];[_0x40355f(0x127)];[_0x40355f(0x18f)];[_0x40355f(0x1f1)];[_0x40355f(0x1a2)]=new NodeOperationRouter();[_0x40355f(0x15a)];[_0x40355f(0x118)];[_0x40355f(0x14a)];[_0x40355f(0x16b)];[_0x40355f(0x1fc)]=new CommandStateStore();[_0x40355f(0x231)];[_0x40355f(0x206)];[_0x40355f(0x177)];[_0x40355f(0x165)]=new WorkspaceDomainState();[_0x40355f(0x1f5)]=new WorkspaceWatchService(this[_0x40355f(0x165)],workspaceId=>this[_0x40355f(0x193)][_0x40355f(0x155)](workspaceId),workspaceId=>this[_0x40355f(0x193)][_0x40355f(0x171)](workspaceId));[_0x40355f(0x193)]=new WorkspaceSessionService(this[_0x40355f(0x165)],{'discover':workspaceId=>this[_0x40355f(0x130)](workspaceId),'listPage':workspaceId=>this[_0x40355f(0x1bf)](_0x40355f(0x20d),{'workspaceId':workspaceId,'limit':0x14}),'active':workspaceId=>this[_0x40355f(0x1f5)][_0x40355f(0x190)](workspaceId,_0x40355f(0x1b6)),'emitRevision':workspaceId=>void this[_0x40355f(0x1cf)]?.[_0x40355f(0x1c0)](workspaceId,_0x40355f(0x1b6)),'onPending':(workspaceId,waitMs)=>nodeLog(_0x40355f(0x11c),{'nodeId':this[_0x40355f(0x142)]?.[_0x40355f(0x151)],'workspaceId':workspaceId,'waitMs':waitMs})});[_0x40355f(0x1b9)]=new WorkspaceFileService(this[_0x40355f(0x165)],()=>this[_0x40355f(0x142)]?.[_0x40355f(0x21c)]??[],workspaceId=>this[_0x40355f(0x1c6)][_0x40355f(0x14f)](workspaceId));[_0x40355f(0x224)]=new WorkspaceUploadService(this[_0x40355f(0x165)],workspaceId=>this[_0x40355f(0x1c6)][_0x40355f(0x14f)](workspaceId));[_0x40355f(0x196)]=new WorkspaceChangeService(this[_0x40355f(0x165)]);[_0x40355f(0x1cf)];[_0x40355f(0x239)];[_0x40355f(0x215)]=new RecentRunProjectionService(message=>this[_0x40355f(0x1fd)](_0x40355f(0x23d),message));[_0x40355f(0x173)]=new NodeRuntimeState(()=>this[_0x40355f(0x142)]?.[_0x40355f(0x151)]??_0x40355f(0x108),workspaceId=>this[_0x40355f(0x239)]?.[_0x40355f(0x168)](workspaceId),Date[_0x40355f(0x148)],(run,session,userMessage)=>this[_0x40355f(0x215)][_0x40355f(0x15f)](run,session,userMessage));[_0x40355f(0x211)]=new NodeMetrics();[_0x40355f(0x141)]=new RunEventService({'runtime':this[_0x40355f(0x173)],'metrics':this[_0x40355f(0x211)],'state':this[_0x40355f(0x117)],'isBootstrapSession':sessionId=>this[_0x40355f(0x12b)][_0x40355f(0x11d)][_0x40355f(0x1d9)](sessionId),'presentSession':session=>this[_0x40355f(0x167)][_0x40355f(0x19c)](session),'rejectBootstrap':(sessionId,code)=>this[_0x40355f(0x12b)][_0x40355f(0x1ac)](sessionId,code),'emitWorkbench':(category,payload)=>{const _0x3a077a=_0x40355f;if(category===_0x3a077a(0x1e0)&&isPlainRecord(payload)&&_0x3a077a(0x235)in payload)this[_0x3a077a(0x180)](payload[_0x3a077a(0x235)]);else this[_0x3a077a(0x22f)](category,payload);},'cleanupAttachments':runId=>this[_0x40355f(0x229)][_0x40355f(0x12d)](runId),'expireImages':runId=>this[_0x40355f(0x229)][_0x40355f(0x219)](runId),'scheduleContextRefresh':sessionId=>this[_0x40355f(0x120)][_0x40355f(0x154)](sessionId),'refreshWorkspaceSessions':workspaceId=>void this[_0x40355f(0x1cf)][_0x40355f(0x1c0)](workspaceId,_0x40355f(0x1b6)),'pauseQueue':sessionId=>this[_0x40355f(0x1f1)][_0x40355f(0x19e)](sessionId),'dispatchQueue':async sessionId=>{const _0x55e5d5=_0x40355f;if(!this[_0x55e5d5(0x177)][_0x55e5d5(0x162)]())await this[_0x55e5d5(0x1f1)][_0x55e5d5(0x188)](sessionId);},'removeQueuedStart':runId=>this[_0x40355f(0x1f1)][_0x40355f(0x1c1)](runId)});[_0x40355f(0x201)]=new NativeSessionWatchService({'resolve':async sessionId=>this[_0x40355f(0x173)][_0x40355f(0x1ee)](sessionId)??this[_0x40355f(0x128)][_0x40355f(0x209)](sessionId),'managedActive':session=>hasManagedActiveRun(this[_0x40355f(0x173)],session),'suspended':sessionId=>this[_0x40355f(0x186)][_0x40355f(0x1a7)](sessionId),'refreshActivity':session=>this[_0x40355f(0x161)][_0x40355f(0x21d)](session),'present':session=>this[_0x40355f(0x167)][_0x40355f(0x19c)](session),'readPage':(session,limit)=>this[_0x40355f(0x161)][_0x40355f(0x129)](session,{'limit':limit}),'convergePage':convergeConversationWatchPage,'composeRuntimePage':composeConversationRuntimePage,'projectInitialPage':(session,page,_unit,limit)=>({'kind':_0x40355f(0x14e),'sequence':this[_0x40355f(0x172)][_0x40355f(0x10d)](),'session':this[_0x40355f(0x167)][_0x40355f(0x19c)](session),'runs':this[_0x40355f(0x173)][_0x40355f(0x13e)](session['id']),'conversation':this[_0x40355f(0x1c9)][_0x40355f(0x1dc)](session,page,limit)}),'emitSession':session=>this[_0x40355f(0x22f)](_0x40355f(0x1d3),{'session':session}),'emitPage':(session,page)=>this[_0x40355f(0x22f)](_0x40355f(0x1e0),{'sessionId':session['id'],'snapshot':this[_0x40355f(0x1c9)][_0x40355f(0x1dc)](session,page,-0x185*0x1+-0x1d79+-0x6*-0x52c)}),'nodeId':()=>this[_0x40355f(0x142)]?.[_0x40355f(0x151)]??_0x40355f(0x108),'nodeGeneration':()=>this[_0x40355f(0x236)],'emitWatchEvent':payload=>this[_0x40355f(0x1fd)](_0x40355f(0x1c8),payload),'log':nodeLog});constructor(_0x18c703={}){const _0x491937=_0x40355f;this[_0x491937(0x142)]=_0x18c703[_0x491937(0x142)],this[_0x491937(0x12c)]=_0x18c703[_0x491937(0x12c)],this[_0x491937(0x1a0)]=_0x18c703[_0x491937(0x1a0)]??CLAUDE_APPROVAL_TIMEOUT_MS,this[_0x491937(0x1df)]=_0x18c703[_0x491937(0x143)]!==undefined,this[_0x491937(0x143)]=_0x18c703[_0x491937(0x143)]??unavailableCapabilities(),this[_0x491937(0x177)]=new NodeUpgradeCoordinator(()=>{const _0x5d3619=_0x491937;if(this[_0x5d3619(0x142)]===undefined)throw new Error(_0x5d3619(0x218));return nodeUpgradeRequestPath(nodeDatabasePath(this[_0x5d3619(0x142)],this[_0x5d3619(0x12c)]));},()=>this[_0x491937(0x117)][_0x491937(0x18d)][_0x491937(0x20c)],_0x42acf4=>{const _0x347144=_0x491937;this[_0x347144(0x143)]={...this[_0x347144(0x143)],'metadata':upgradeMetadata(this[_0x347144(0x143)][_0x347144(0x1cc)],_0x42acf4)},this[_0x347144(0x1a6)]?.[_0x347144(0x1fd)](_0x347144(0x143),this[_0x347144(0x143)]);},_0x18c703[_0x491937(0x1b4)]??(()=>{const _0x30f0b8=_0x491937;this[_0x30f0b8(0x114)](),setImmediate(()=>process[_0x30f0b8(0x16f)](-0xe1e+0x1525+0x2*-0x35e));})),this[_0x491937(0x143)]={...this[_0x491937(0x143)],'metadata':upgradeMetadata(this[_0x491937(0x143)][_0x491937(0x1cc)],this[_0x491937(0x177)][_0x491937(0x237)]())};const _0x52864e=_0x18c703[_0x491937(0x15e)]??detectCapabilitiesAsync;this[_0x491937(0x15e)]=async()=>{const _0x2c1c24=_0x491937,_0x3d36db=await _0x52864e();return{..._0x3d36db,'metadata':upgradeMetadata(_0x3d36db[_0x2c1c24(0x1cc)],this[_0x2c1c24(0x177)][_0x2c1c24(0x237)]())};},this[_0x491937(0x22d)]=_0x18c703[_0x491937(0x22d)]??!![],this[_0x491937(0x1fb)]=_0x18c703[_0x491937(0x1fb)]===undefined?undefined:new FakeTestRunner(_0x18c703[_0x491937(0x1fb)]),this[_0x491937(0x139)]=_0x18c703[_0x491937(0x139)],this[_0x491937(0x229)]=new RunAttachmentService(_0x384c31=>this[_0x491937(0x16d)][_0x491937(0x23f)](_0x384c31[_0x491937(0x140)])[_0x491937(0x23b)](_0x384c31)),this[_0x491937(0x132)]=new CodexRunner(_0x18c703[_0x491937(0x132)],_0x18c703[_0x491937(0x222)]),this[_0x491937(0x124)]=new CodexManagedRunController(this[_0x491937(0x132)],{'available':()=>this[_0x491937(0x143)][_0x491937(0x1e3)][_0x491937(0x166)],'intercepted':()=>this[_0x491937(0x1fb)]!==undefined,'active':this[_0x491937(0x117)][_0x491937(0x18d)],'addActive':_0x3273c9=>this[_0x491937(0x117)][_0x491937(0x18d)][_0x491937(0x189)](_0x3273c9),'removeActive':_0x373f6f=>this[_0x491937(0x117)][_0x491937(0x18d)][_0x491937(0x15d)](_0x373f6f),'adopt':_0x117804=>this[_0x491937(0x173)][_0x491937(0x164)](_0x117804),'session':_0x5d3762=>this[_0x491937(0x173)][_0x491937(0x1ee)](_0x5d3762),'runStatus':_0x55f885=>this[_0x491937(0x173)][_0x491937(0x232)](_0x55f885)?.[_0x491937(0x138)],'run':_0x20b7d3=>this[_0x491937(0x173)][_0x491937(0x232)](_0x20b7d3),'interrupted':_0x40bb03=>this[_0x491937(0x117)][_0x491937(0x1de)][_0x491937(0x1d9)](_0x40bb03),'parseAttachments':parseRunnerImageAttachments,'materialize':(_0x2a3da7,_0x41e6e6)=>this[_0x491937(0x229)][_0x491937(0x23a)](_0x2a3da7,_0x41e6e6),'completeCancelled':_0x120980=>this[_0x491937(0x10b)][_0x491937(0x210)](_0x120980),'promoteSession':(_0x4a57aa,_0x5bb23e)=>this[_0x491937(0x12b)][_0x491937(0x1e4)](_0x4a57aa,_0x5bb23e),'send':(_0x4058dc,_0x52409b)=>this[_0x491937(0x1fd)](_0x4058dc,_0x52409b),'emit':(_0x418b0b,_0x5d6eda,_0xc867a3,_0x5ed3cc)=>this[_0x491937(0x238)][_0x491937(0x145)](_0x418b0b,_0x5d6eda,_0xc867a3,_0x5ed3cc),'cancel':(_0x526e29,_0x14ee8e,_0xcec346,_0x4f393f,_0x284d9b)=>this[_0x491937(0x10b)][_0x491937(0x1bc)](_0x526e29,_0x14ee8e,_0xcec346,_0x4f393f,_0x284d9b),'createApproval':_0x4b6c6d=>this[_0x491937(0x173)][_0x491937(0x19d)](_0x4b6c6d),'publishApproval':_0x49740d=>this[_0x491937(0x238)][_0x491937(0x1d2)](_0x49740d),'emitItem':(_0x178821,_0x5eb32d)=>this[_0x491937(0x21f)](_0x178821,_0x5eb32d),'appendImages':(_0x408e94,_0x538121)=>this[_0x491937(0x229)][_0x491937(0x226)](_0x408e94,_0x538121[_0x491937(0x204)](isRunnerImageAttachment)),'syncTitle':(_0x246474,_0x32eefa,_0x48648a)=>this[_0x491937(0x1dd)][_0x491937(0x1cd)](_0x246474,_0x32eefa,_0x48648a),'commandState':(_0x1187da,_0x85b3de)=>this[_0x491937(0x1fc)][_0x491937(0x184)](_0x1187da,_0x85b3de),'setCommandState':(_0xed63e4,_0x33c3fd)=>this[_0x491937(0x1fc)][_0x491937(0x156)](_0xed63e4,_0x33c3fd),'clearCommandState':(_0x2d4808,_0x1fbb2a)=>this[_0x491937(0x1fc)][_0x491937(0x137)](_0x2d4808,_0x1fbb2a),'commandStates':_0x39e56b=>this[_0x491937(0x1fc)][_0x491937(0x230)](_0x39e56b),'hasActiveSessionLease':_0x50a4bc=>this[_0x491937(0x173)][_0x491937(0x1ce)](_0x50a4bc),'fast':_0x3d6238=>this[_0x491937(0x1bf)](_0x491937(0x1d8),{'runner':_0x491937(0x1e3),'commandId':_0x491937(0x1ca),'input':_0x3d6238})}),this[_0x491937(0x132)][_0x491937(0x1e2)](_0x55f64d=>this[_0x491937(0x124)][_0x491937(0x136)](_0x55f64d)),this[_0x491937(0x195)]=new ClaudeCodeRunner(_0x18c703[_0x491937(0x195)]),this[_0x491937(0x19f)]=new OpenCodeRunner(_0x18c703[_0x491937(0x19f)]),this[_0x491937(0x214)]=new OpenCodeManagedRunController(this[_0x491937(0x19f)],{'intercepted':()=>this[_0x491937(0x1fb)]!==undefined,'active':this[_0x491937(0x117)][_0x491937(0x18d)],'parseAttachments':parseRunnerImageAttachments,'persistAttachments':(_0x4d8edc,_0x2bbb4d,_0x5a6078)=>this[_0x491937(0x229)][_0x491937(0x163)](_0x4d8edc,_0x2bbb4d+_0x491937(0x135),_0x5a6078),'emit':(_0x341288,_0x19cea6,_0x3e5996,_0xd8dc8b)=>this[_0x491937(0x238)][_0x491937(0x145)](_0x341288,_0x19cea6,_0x3e5996,_0xd8dc8b),'emitItem':(_0x33b43b,_0x375756)=>this[_0x491937(0x21f)](_0x33b43b,_0x375756),'adopt':_0x59eadc=>this[_0x491937(0x173)][_0x491937(0x164)](_0x59eadc),'run':_0x4e5908=>{const _0x2917c6=_0x491937,_0x17fa15=this[_0x2917c6(0x173)][_0x2917c6(0x232)](_0x4e5908);if(_0x17fa15===undefined)throw new Error(_0x2917c6(0x121));return _0x17fa15;},'hasActiveSessionLease':_0x5de1d1=>this[_0x491937(0x173)][_0x491937(0x1ce)](_0x5de1d1),'promote':(_0x43d22f,_0x3c2fd2)=>this[_0x491937(0x12b)][_0x491937(0x1e4)](_0x43d22f,_0x3c2fd2),'rememberNative':(_0x11829a,_0x3a8cbf)=>this[_0x491937(0x1dd)][_0x491937(0x1b5)](_0x11829a,_0x3a8cbf),'send':(_0x318ca0,_0x562e67)=>this[_0x491937(0x1fd)](_0x318ca0,_0x562e67),'createApproval':_0x4a38ea=>this[_0x491937(0x173)][_0x491937(0x19d)](_0x4a38ea),'expireApproval':_0x4f6c3a=>{const _0xc629a=_0x491937;this[_0xc629a(0x173)][_0xc629a(0x14c)](_0x4f6c3a);},'publishApproval':_0x38cf12=>this[_0x491937(0x238)][_0x491937(0x1d2)](_0x38cf12),'commandState':(_0x590bff,_0x287c9b)=>this[_0x491937(0x1fc)][_0x491937(0x184)](_0x590bff,_0x287c9b),'setCommandState':(_0x3278ac,_0x141d34)=>this[_0x491937(0x1fc)][_0x491937(0x156)](_0x3278ac,_0x141d34),'clearCommandState':(_0x54c3c1,_0x475e2d)=>this[_0x491937(0x1fc)][_0x491937(0x137)](_0x54c3c1,_0x475e2d),'commandStates':_0x5863f1=>this[_0x491937(0x1fc)][_0x491937(0x230)](_0x5863f1)},this[_0x491937(0x1a0)]),this[_0x491937(0x212)]=new ClaudeManagedRunController(this[_0x491937(0x195)],{'intercepted':()=>this[_0x491937(0x1fb)]!==undefined,'active':this[_0x491937(0x117)][_0x491937(0x18d)],'parseAttachments':parseRunnerImageAttachments,'emit':(_0x3bc5a0,_0x292d36,_0x29d791,_0x4589e2)=>this[_0x491937(0x238)][_0x491937(0x145)](_0x3bc5a0,_0x292d36,_0x29d791,_0x4589e2),'adopt':_0x25ab08=>this[_0x491937(0x173)][_0x491937(0x164)](_0x25ab08),'run':_0x25ce07=>this[_0x491937(0x173)][_0x491937(0x232)](_0x25ce07),'hasActiveSessionLease':_0x552b8f=>this[_0x491937(0x173)][_0x491937(0x1ce)](_0x552b8f),'session':_0xc4156d=>this[_0x491937(0x173)][_0x491937(0x1ee)](_0xc4156d),'completeCancelled':_0x50df3c=>this[_0x491937(0x10b)][_0x491937(0x210)](_0x50df3c),'requestUserInput':(_0x4b0224,_0x12fcf0,_0x2e04e8)=>this[_0x491937(0x10b)][_0x491937(0x16e)](_0x4b0224,_0x12fcf0,_0x2e04e8),'requestApproval':(_0x2eb5e2,_0x45fcf0,_0x1bf0cd)=>this[_0x491937(0x10b)][_0x491937(0x234)](_0x2eb5e2,_0x45fcf0,_0x1bf0cd),'rememberNative':(_0x1e56ed,_0x98dcf9)=>this[_0x491937(0x1dd)][_0x491937(0x1b5)](_0x1e56ed,_0x98dcf9),'promote':(_0x4b209a,_0x2faf62)=>this[_0x491937(0x12b)][_0x491937(0x1e4)](_0x4b209a,_0x2faf62),'send':(_0x256d83,_0x3d4f65)=>this[_0x491937(0x1fd)](_0x256d83,_0x3d4f65),'emitItem':(_0x270e76,_0x52d6c)=>this[_0x491937(0x21f)](_0x270e76,_0x52d6c),'syncTitle':(_0x2d6818,_0x477598,_0x16695c)=>this[_0x491937(0x1dd)][_0x491937(0x1cd)](_0x2d6818,_0x477598,_0x16695c),'setChannelToken':(_0x13a138,_0x28d440)=>this[_0x491937(0x173)][_0x491937(0x11e)](_0x13a138,_0x28d440),'commandState':(_0x570107,_0x4dd061)=>this[_0x491937(0x1fc)][_0x491937(0x184)](_0x570107,_0x4dd061),'setCommandState':(_0x10db47,_0x5d49a8)=>this[_0x491937(0x1fc)][_0x491937(0x156)](_0x10db47,_0x5d49a8),'clearCommandState':(_0x1e3a93,_0x107f8d)=>this[_0x491937(0x1fc)][_0x491937(0x137)](_0x1e3a93,_0x107f8d),'commandStates':_0x13fc0a=>this[_0x491937(0x1fc)][_0x491937(0x230)](_0x13fc0a)}),this[_0x491937(0x16d)]=new RunnerRegistry([this[_0x491937(0x19f)],this[_0x491937(0x132)],this[_0x491937(0x195)],...this[_0x491937(0x1fb)]===undefined?[]:[this[_0x491937(0x1fb)]]]),this[_0x491937(0x1dd)]=new ManagedRunnerSessionService(this[_0x491937(0x173)],this[_0x491937(0x16d)],_0x5761a9=>this[_0x491937(0x22f)](_0x491937(0x1d3),{'session':this[_0x491937(0x167)][_0x491937(0x19c)](_0x5761a9)})),this[_0x491937(0x10b)]=new RunnerInteractionService({'runtime':this[_0x491937(0x173)],'state':this[_0x491937(0x117)],'codex':()=>this[_0x491937(0x132)],'claude':()=>this[_0x491937(0x195)],'runners':this[_0x491937(0x16d)],'emitRun':(_0xc7f2d4,_0x3f2225,_0x22c654,_0x294cef)=>this[_0x491937(0x238)][_0x491937(0x145)](_0xc7f2d4,_0x3f2225,_0x22c654,_0x294cef),'emitItem':(_0x5b1f6e,_0x2ec13c)=>this[_0x491937(0x21f)](_0x5b1f6e,_0x2ec13c),'approvalTimeoutMs':this[_0x491937(0x1a0)],'publishApproval':_0x1437f9=>this[_0x491937(0x238)][_0x491937(0x1d2)](_0x1437f9)}),this[_0x491937(0x1be)]=new RunnerChannelMessageService({'interactions':this[_0x491937(0x10b)],'send':(_0x14a80f,_0xca4e39,_0x5c5939)=>this[_0x491937(0x1fd)](_0x14a80f,_0xca4e39,_0x5c5939)}),this[_0x491937(0x167)]=new SessionPresentationService({'database':()=>this[_0x491937(0x239)],'runtime':this[_0x491937(0x173)],'commands':this[_0x491937(0x1fc)],'runners':this[_0x491937(0x16d)],'capabilities':()=>this[_0x491937(0x143)],'hasManagedActiveRun':_0x5b32cb=>hasManagedActiveRun(this[_0x491937(0x173)],_0x5b32cb),'externalActivity':_0x5c640c=>this[_0x491937(0x20b)][_0x491937(0x159)][_0x491937(0x184)](_0x5c640c),'projectionForNative':_0x58eb17=>this[_0x491937(0x128)][_0x491937(0x1eb)](_0x58eb17)}),this[_0x491937(0x128)]=new NativeSessionProjectionService({'database':()=>this[_0x491937(0x239)],'nodeId':()=>this[_0x491937(0x142)]?.[_0x491937(0x151)]??_0x491937(0x205),'runtime':this[_0x491937(0x173)],'runners':this[_0x491937(0x16d)],'capabilities':()=>this[_0x491937(0x143)],'state':this[_0x491937(0x20b)],'commands':this[_0x491937(0x1fc)],'present':_0x37a9ea=>this[_0x491937(0x167)][_0x491937(0x19c)](_0x37a9ea)}),this[_0x491937(0x161)]=new ConversationHistoryService({'runtime':this[_0x491937(0x173)],'runners':this[_0x491937(0x16d)],'capabilities':()=>this[_0x491937(0x143)],'attachments':this[_0x491937(0x229)],'snapshotSequence':()=>this[_0x491937(0x172)][_0x491937(0x10d)](),'hasManagedActiveRun':_0x5279a4=>hasManagedActiveRun(this[_0x491937(0x173)],_0x5279a4),'setExternalActivity':(_0x28df86,_0x304343)=>this[_0x491937(0x20b)][_0x491937(0x159)][_0x491937(0x156)](_0x28df86,_0x304343)}),this[_0x491937(0x1c9)]=new ConversationSegmentService((_0x45c6c0,_0x3ce16e)=>this[_0x491937(0x161)][_0x491937(0x129)](_0x45c6c0,_0x3ce16e)),this[_0x491937(0x120)]=new SessionContextService({'runners':this[_0x491937(0x16d)],'session':_0x122906=>this[_0x491937(0x173)][_0x491937(0x1ee)](_0x122906),'stopped':()=>this[_0x491937(0x23e)],'publish':_0x4ef2f6=>this[_0x491937(0x22f)](_0x491937(0x1d3),_0x4ef2f6)}),this[_0x491937(0x127)]=new RunWorkbenchService({'runtime':this[_0x491937(0x173)],'readImage':async(_0x5f2070,_0x27a379)=>this[_0x491937(0x229)][_0x491937(0x129)](_0x5f2070,_0x27a379)??await this[_0x491937(0x229)][_0x491937(0x113)](_0x5f2070,_0x27a379),'respondUserInput':(_0x1fa7f1,_0x14dbef,_0xc90ccc)=>this[_0x491937(0x10b)][_0x491937(0x22e)](_0x1fa7f1,_0x14dbef,_0xc90ccc),'cancelQueued':_0x396f23=>this[_0x491937(0x1f1)][_0x491937(0x181)](_0x396f23),'pauseQueue':_0x1945c3=>this[_0x491937(0x1f1)][_0x491937(0x19e)](_0x1945c3),'emitRun':(_0x29f149,_0xcfa02c,_0x5dacf7,_0x3deb3f)=>this[_0x491937(0x238)][_0x491937(0x145)](_0x29f149,_0xcfa02c,_0x5dacf7,_0x3deb3f),'control':(_0x1d7492,_0x51c7f3)=>this[_0x491937(0x17e)][_0x491937(0x10c)](JSON[_0x491937(0x110)](createEnvelope(_0x1d7492,_0x51c7f3))),'markInterrupted':_0x538fa9=>this[_0x491937(0x117)][_0x491937(0x1de)][_0x491937(0x189)](_0x538fa9)}),this[_0x491937(0x18f)]=new SessionQueryService({'runtime':this[_0x491937(0x173)],'runners':this[_0x491937(0x16d)],'resolve':_0xf09105=>this[_0x491937(0x128)][_0x491937(0x12a)](_0xf09105),'present':_0x59eab8=>this[_0x491937(0x167)][_0x491937(0x19c)](_0x59eab8),'history':(_0x395c29,_0x23c207)=>this[_0x491937(0x161)][_0x491937(0x129)](_0x395c29,_0x23c207),'segments':(_0x1488b0,_0x889c28)=>this[_0x491937(0x1c9)][_0x491937(0x129)](_0x1488b0,_0x889c28),'context':this[_0x491937(0x120)],'discover':(_0x123876,_0x50bd00)=>this[_0x491937(0x128)][_0x491937(0x160)](_0x123876,_0x50bd00),'workspaceIdForCwd':_0x470512=>this[_0x491937(0x239)]?.[_0x491937(0x179)]()[_0x491937(0x1cb)](_0x3a4383=>_0x3a4383[_0x491937(0x1f9)]===_0x470512)?.['id']}),this[_0x491937(0x1f1)]=new WorkspaceQueueWorkbenchService({'runtime':this[_0x491937(0x173)],'emit':(_0x5a93dc,_0x349abd)=>this[_0x491937(0x238)][_0x491937(0x170)](_0x5a93dc,_0x349abd),'clearImages':_0x2d4cbc=>this[_0x491937(0x229)][_0x491937(0x137)](_0x2d4cbc),'cleanupAttachments':_0x82b424=>this[_0x491937(0x229)][_0x491937(0x12d)](_0x82b424),'emitRun':(_0x8db437,_0xa6c206,_0x418222,_0x51afd3)=>this[_0x491937(0x238)][_0x491937(0x145)](_0x8db437,_0xa6c206,_0x418222,_0x51afd3),'emitConversation':_0x42742c=>this[_0x491937(0x180)](_0x42742c),'control':(_0x1dd5ec,_0x49b68f)=>this[_0x491937(0x17e)][_0x491937(0x10c)](JSON[_0x491937(0x110)](createEnvelope(_0x1dd5ec,_0x49b68f))),'stopped':()=>this[_0x491937(0x23e)],'markInterrupted':_0x372402=>this[_0x491937(0x117)][_0x491937(0x1de)][_0x491937(0x189)](_0x372402),'prepareInput':(_0xeff257,_0x4f8070,_0x546c50)=>this[_0x491937(0x16d)][_0x491937(0x23f)](_0xeff257)[_0x491937(0x182)](_0x4f8070,_0x546c50),'mcps':_0x59203a=>this[_0x491937(0x239)]?.[_0x491937(0x1c4)](_0x59203a)??[]}),this[_0x491937(0x12b)]=new SessionIdentityService({'runtime':this[_0x491937(0x173)],'persist':(_0x5b699d,_0x101ded)=>{const _0xf66f7b=_0x491937;if(_0x5b699d[_0xf66f7b(0x1e7)]===null||_0x5b699d[_0xf66f7b(0x1b7)]===null||_0x5b699d[_0xf66f7b(0x1c2)]===null)return;this[_0xf66f7b(0x239)]?.[_0xf66f7b(0x227)]({'runner':_0x5b699d[_0xf66f7b(0x140)],'externalSessionId':_0x101ded,'workspaceId':_0x5b699d[_0xf66f7b(0x122)],'model':_0x5b699d[_0xf66f7b(0x1e7)],'effort':_0x5b699d[_0xf66f7b(0x1b7)],'access':_0x5b699d[_0xf66f7b(0x1c2)]});},'migrateCommands':(_0x46c636,_0x52494d)=>this[_0x491937(0x1fc)][_0x491937(0x11a)](_0x46c636,_0x52494d),'migrateQueue':(_0x10f2fa,_0x3d5b3b)=>this[_0x491937(0x1f1)][_0x491937(0x1f6)](_0x10f2fa,_0x3d5b3b),'migrateRunnerState':(_0x8db823,_0x3fada2)=>this[_0x491937(0x238)][_0x491937(0x1ea)](_0x8db823,_0x3fada2),'emitSession':_0x3e0177=>this[_0x491937(0x22f)](_0x491937(0x1d3),{'session':_0x3e0177}),'emitRun':_0x1c3153=>this[_0x491937(0x22f)](_0x491937(0x123),{'run':_0x1c3153}),'emitQueue':_0x11de70=>this[_0x491937(0x1f1)][_0x491937(0x216)](_0x11de70),'emitTurn':_0x2f5bc=>this[_0x491937(0x180)](_0x2f5bc)}),this[_0x491937(0x133)]=new SessionLifecycleService({'database':()=>{const _0x47c066=_0x491937;if(this[_0x47c066(0x239)]===undefined)throw new Error(_0x47c066(0x131));return this[_0x47c066(0x239)];},'runtime':this[_0x491937(0x173)],'runners':this[_0x491937(0x16d)],'projection':this[_0x491937(0x128)],'identity':this[_0x491937(0x12b)],'present':_0x1ee0ae=>this[_0x491937(0x167)][_0x491937(0x19c)](_0x1ee0ae),'emitSession':_0x38e80b=>this[_0x491937(0x22f)](_0x491937(0x1d3),{'session':this[_0x491937(0x167)][_0x491937(0x19c)](_0x38e80b)}),'execute':(_0x570f15,_0x4b2103)=>this[_0x491937(0x1bf)](_0x570f15,_0x4b2103),'interceptedSessionId':_0x2ea670=>this[_0x491937(0x1fb)]===undefined?undefined:_0x491937(0x1ed)+_0x2ea670}),this[_0x491937(0x186)]=new ExternalSessionResumeService({'runtime':this[_0x491937(0x173)],'runners':this[_0x491937(0x16d)],'state':this[_0x491937(0x20b)],'available':_0x25f1b1=>this[_0x491937(0x16d)][_0x491937(0x23f)](_0x25f1b1)[_0x491937(0x166)](this[_0x491937(0x143)]),'projectionFor':_0x3ee579=>this[_0x491937(0x128)][_0x491937(0x1eb)](_0x3ee579),'managedAliasFor':_0x16fae7=>this[_0x491937(0x128)][_0x491937(0x207)](_0x16fae7),'ensureConfiguration':_0x9667f=>this[_0x491937(0x128)][_0x491937(0x1ae)](_0x9667f),'configuration':_0x4d2aa8=>this[_0x491937(0x128)][_0x491937(0x233)](_0x4d2aa8),'workspacePath':_0x1306d4=>this[_0x491937(0x239)]?.[_0x491937(0x168)](_0x1306d4)?.[_0x491937(0x1f9)],'rememberNative':(_0x2b2f61,_0x352a10)=>this[_0x491937(0x1dd)][_0x491937(0x1b5)](_0x2b2f61,_0x352a10),'resolve':_0x4e452d=>this[_0x491937(0x128)][_0x491937(0x12a)](_0x4e452d)}),this[_0x491937(0x1c7)]=new SessionCommandService({'runtime':this[_0x491937(0x173)],'runners':this[_0x491937(0x16d)],'projection':this[_0x491937(0x128)],'resume':this[_0x491937(0x186)],'profiles':()=>this[_0x491937(0x15a)][_0x491937(0x150)](),'present':_0x2d6447=>this[_0x491937(0x167)][_0x491937(0x19c)](_0x2d6447),'resumeQueueAfterCommandRun':_0x16007f=>this[_0x491937(0x1f1)][_0x491937(0x1a1)](_0x16007f)}),this[_0x491937(0x22c)]=new SessionMessageService({'runtime':this[_0x491937(0x173)],'uploads':this[_0x491937(0x224)],'attachments':this[_0x491937(0x229)],'commands':this[_0x491937(0x1fc)],'queue':this[_0x491937(0x1f1)],'interaction':this[_0x491937(0x10b)],'runners':this[_0x491937(0x16d)],'resolve':_0x1c2e48=>this[_0x491937(0x186)][_0x491937(0x1c5)](_0x1c2e48),'present':_0x371fd1=>this[_0x491937(0x167)][_0x491937(0x19c)](_0x371fd1),'emitSession':_0x32a51a=>this[_0x491937(0x22f)](_0x491937(0x1d3),{'session':this[_0x491937(0x167)][_0x491937(0x19c)](_0x32a51a)}),'channelToken':_0x289905=>{const _0x345df3=_0x491937,_0x3bf80f=this[_0x345df3(0x173)][_0x345df3(0x1ee)](_0x289905);return _0x3bf80f===undefined?undefined:this[_0x345df3(0x16d)][_0x345df3(0x23f)](_0x3bf80f[_0x345df3(0x140)])[_0x345df3(0x1b0)](_0x289905);}}),this[_0x491937(0x17d)]=new SessionCatalogService({'database':()=>{const _0x1dd05e=_0x491937;if(this[_0x1dd05e(0x239)]===undefined)throw new Error(_0x1dd05e(0x131));return this[_0x1dd05e(0x239)];},'nodeId':()=>this[_0x491937(0x142)]?.[_0x491937(0x151)]??_0x491937(0x205),'runtime':this[_0x491937(0x173)],'runners':this[_0x491937(0x16d)],'projection':this[_0x491937(0x128)],'resume':this[_0x491937(0x186)],'cachedNative':()=>[...this[_0x491937(0x20b)][_0x491937(0x13b)][_0x491937(0x213)]()],'cachedWorkspace':_0x1a2991=>this[_0x491937(0x1c6)][_0x491937(0x1b1)](_0x1a2991),'present':_0x5e7303=>this[_0x491937(0x167)][_0x491937(0x19c)](_0x5e7303),'projectionForNative':_0x2e9793=>this[_0x491937(0x128)][_0x491937(0x1eb)](_0x2e9793),'nativeIds':_0x1e6216=>this[_0x491937(0x128)][_0x491937(0x18c)](_0x1e6216),'forget':(_0x25a285,_0x15caa9)=>this[_0x491937(0x128)][_0x491937(0x14b)](_0x25a285,_0x15caa9),'refreshActivity':_0x29838e=>this[_0x491937(0x161)][_0x491937(0x21d)](_0x29838e),'externalActivity':_0x23389c=>this[_0x491937(0x20b)][_0x491937(0x159)][_0x491937(0x184)](_0x23389c),'history':(_0x124980,_0x111f6c)=>this[_0x491937(0x161)][_0x491937(0x129)](_0x124980,_0x111f6c),'emitSession':_0x369231=>this[_0x491937(0x22f)](_0x491937(0x1d3),{'session':this[_0x491937(0x167)][_0x491937(0x19c)](_0x369231)})}),this[_0x491937(0x132)][_0x491937(0x1f4)]({'start':_0x4116bb=>this[_0x491937(0x124)][_0x491937(0x22a)](_0x4116bb),'cancel':(_0x542066,_0x4929b0)=>{const _0x5ad5f4=_0x491937,_0x536ec2=this[_0x5ad5f4(0x132)][_0x5ad5f4(0x18e)][_0x5ad5f4(0x11b)][_0x5ad5f4(0x184)](_0x542066);if(_0x536ec2?.[_0x5ad5f4(0x152)]===undefined)return![];return void this[_0x5ad5f4(0x10b)][_0x5ad5f4(0x1bc)](_0x542066,_0x536ec2[_0x5ad5f4(0x1e9)],_0x536ec2[_0x5ad5f4(0x152)],_0x536ec2[_0x5ad5f4(0x134)],_0x4929b0===_0x5ad5f4(0x176)?_0x5ad5f4(0x15c):_0x5ad5f4(0x13d)),!![];},'decideApproval':_0xc755d9=>this[_0x491937(0x10b)][_0x491937(0x20a)](_0xc755d9[_0x491937(0x116)],_0xc755d9[_0x491937(0x1f0)])}),this[_0x491937(0x195)][_0x491937(0x1f4)]({'start':_0x51490b=>this[_0x491937(0x212)][_0x491937(0x22a)](_0x51490b),'cancel':(_0x5e828a,_0xe2368c)=>this[_0x491937(0x10b)][_0x491937(0x1e1)](_0x5e828a,_0xe2368c),'decideApproval':_0x46a240=>this[_0x491937(0x10b)][_0x491937(0x15b)](_0x46a240[_0x491937(0x116)],_0x46a240[_0x491937(0x1f0)])}),this[_0x491937(0x19f)][_0x491937(0x1f4)]({'start':_0x305d7c=>this[_0x491937(0x214)][_0x491937(0x22a)](_0x305d7c),'cancel':(_0x24e316,_0x4b5a21)=>this[_0x491937(0x214)][_0x491937(0x17b)](_0x24e316,_0x4b5a21),'decideApproval':_0x7c7d62=>this[_0x491937(0x214)][_0x491937(0x17a)](_0x7c7d62),'respondUserInput':(_0x264f0e,_0x1e01dd,_0x46884d)=>this[_0x491937(0x214)][_0x491937(0x22e)](_0x264f0e,_0x1e01dd,_0x46884d)}),this[_0x491937(0x132)][_0x491937(0x1ef)]({'execute':(_0x12222e,_0x34bfdb,_0x2ca4ac,_0xf72594)=>this[_0x491937(0x124)][_0x491937(0x1fa)](_0x12222e,_0x34bfdb,_0x2ca4ac,_0xf72594)}),this[_0x491937(0x195)][_0x491937(0x1ef)]({'execute':(_0x29a91c,_0x15ca6e,_0x188378,_0x86420d)=>this[_0x491937(0x212)][_0x491937(0x1fa)](_0x29a91c,_0x15ca6e,_0x188378,_0x86420d)}),this[_0x491937(0x19f)][_0x491937(0x1ef)]({'execute':(_0x2be07d,_0x7f7711,_0x5249bd,_0x522548)=>this[_0x491937(0x214)][_0x491937(0x1fa)](_0x2be07d,_0x7f7711,_0x522548)});const _0x3c4e8b=this[_0x491937(0x1fb)]===undefined||this[_0x491937(0x139)]===undefined?undefined:new FakeManagedRunService({'runner':this[_0x491937(0x1fb)],'script':this[_0x491937(0x139)],'runners':this[_0x491937(0x16d)],'runtime':this[_0x491937(0x173)],'state':this[_0x491937(0x117)],'emitRun':(_0x38bad1,_0x2813ad,_0x256ec7,_0x1a35ea)=>this[_0x491937(0x238)][_0x491937(0x145)](_0x38bad1,_0x2813ad,_0x256ec7,_0x1a35ea),'publishApproval':_0x30fe6a=>this[_0x491937(0x238)][_0x491937(0x1d2)](_0x30fe6a),'disconnect':()=>this[_0x491937(0x1a6)][_0x491937(0x1b3)](0xaec+0x2702+-0xac*0x33,_0x491937(0x202))});this[_0x491937(0x1fb)]?.[_0x491937(0x1f4)]({'start':_0x183b18=>_0x3c4e8b?.[_0x491937(0x22a)](_0x183b18),'cancel':(_0xd4cf7,_0x1021bb)=>_0x1021bb===_0x491937(0x176)?this[_0x491937(0x1fb)]?.[_0x491937(0x17b)](_0xd4cf7)??![]:this[_0x491937(0x1fb)]?.[_0x491937(0x115)](_0xd4cf7)??![],'decideApproval':_0x28bb74=>this[_0x491937(0x1fb)]?.[_0x491937(0x1ec)](_0x28bb74[_0x491937(0x208)],_0x28bb74[_0x491937(0x116)],_0x28bb74[_0x491937(0x1f0)])??![]}),this[_0x491937(0x231)]=_0x18c703[_0x491937(0x231)]??new RunnerUsageReader(),this[_0x491937(0x239)]=_0x18c703[_0x491937(0x239)],this[_0x491937(0x206)]=_0x18c703[_0x491937(0x206)]??new TerminalManager({'platform':this[_0x491937(0x143)][_0x491937(0x1da)]===_0x491937(0x1bb)?_0x491937(0x169):_0x491937(0x1af)}),this[_0x491937(0x206)][_0x491937(0x185)](_0x2db1ea=>this[_0x491937(0x1c6)][_0x491937(0x16c)](_0x2db1ea)),this[_0x491937(0x221)]=new NodeTerminalChannel({'config':()=>this[_0x491937(0x142)],'controlConnected':()=>this[_0x491937(0x1a6)][_0x491937(0x1f8)](),'stopped':()=>this[_0x491937(0x23e)],'reconnect':this[_0x491937(0x22d)],'reconnectDelay':nextReconnectDelay,'manager':this[_0x491937(0x206)]}),this[_0x491937(0x1a6)]=new NodeControlChannel({'config':()=>this[_0x491937(0x142)],'capabilities':()=>this[_0x491937(0x143)],'stopped':()=>this[_0x491937(0x23e)],'reconnect':this[_0x491937(0x22d)],'reconnectDelay':nextReconnectDelay,'onConnecting':_0x43ef2f=>{const _0xfe7a8f=_0x491937;this[_0xfe7a8f(0x211)][_0xfe7a8f(0x109)](),nodeLog(_0xfe7a8f(0x183),{'attempt':_0x43ef2f});},'onReconnectScheduled':()=>this[_0x491937(0x211)][_0x491937(0x1f2)](),'onMessage':_0x54785d=>this[_0x491937(0x175)](_0x54785d),'onClose':(_0xf15612,_0x5ef59b)=>{const _0x560a73=_0x491937;this[_0x560a73(0x221)][_0x560a73(0x119)]();if(_0xf15612===0x20d0+-0x7f2+0x1*-0x93e&&_0x5ef59b===_0x560a73(0x1d0))nodeLog(_0x560a73(0x1d4),{'message':_0x560a73(0x19b)});if(_0xf15612===-0x111d+0x8+0x20b8||_0xf15612===-0x1d5c+-0xd1*-0xb+0x184a)void this[_0x560a73(0x206)][_0x560a73(0x1aa)]();}}),this[_0x491937(0x17e)]=new NodeControlMessageService({'config':()=>this[_0x491937(0x142)],'register':(_0x15928f,_0x31c225)=>this[_0x491937(0x174)][_0x491937(0x1fe)](_0x15928f,_0x31c225),'connected':()=>this[_0x491937(0x174)][_0x491937(0x1f8)](),'close':(_0x47c2a8,_0x4d3230)=>this[_0x491937(0x1a6)][_0x491937(0x1b3)](_0x47c2a8,_0x4d3230),'inspectWorkspace':_0x1311a7=>this[_0x491937(0x1c6)][_0x491937(0x191)](_0x1311a7),'handleNodeRequest':_0x359809=>this[_0x491937(0x19a)][_0x491937(0x10c)](_0x359809),'reconcileRuns':_0x221337=>this[_0x491937(0x238)][_0x491937(0x1f7)](_0x221337),'runners':this[_0x491937(0x16d)],'deliverSessionChannelMessage':_0x5c9497=>this[_0x491937(0x1be)][_0x491937(0x10c)](_0x5c9497),'completeUncontrolledCancellation':_0x2eafde=>{const _0x1af38d=_0x491937,_0x45b126=this[_0x1af38d(0x173)][_0x1af38d(0x232)](_0x2eafde);if(_0x45b126?.[_0x1af38d(0x138)]===_0x1af38d(0x125))this[_0x1af38d(0x10b)][_0x1af38d(0x210)](_0x2eafde);},'send':(_0x4b130e,_0x3c48ee,_0x2d8b6a)=>this[_0x491937(0x1fd)](_0x4b130e,_0x3c48ee,_0x2d8b6a)}),this[_0x491937(0x19a)]=new NodeRequestService({'nodeId':()=>this[_0x491937(0x142)]?.[_0x491937(0x151)],'databaseAvailable':()=>this[_0x491937(0x239)]!==undefined,'execute':(_0xf3803f,_0x42429a)=>this[_0x491937(0x1bf)](_0xf3803f,_0x42429a),'send':(_0x125b16,_0x4321d1,_0x5c983c)=>this[_0x491937(0x1fd)](_0x125b16,_0x4321d1,_0x5c983c)}),this[_0x491937(0x1c6)]=new NodeWorkspaceCoordinator({'config':()=>this[_0x491937(0x142)],'database':()=>this[_0x491937(0x239)],'watches':this[_0x491937(0x1f5)],'sessions':this[_0x491937(0x193)],'changes':this[_0x491937(0x196)],'emit':(_0x5dcb2b,_0x2db779)=>void this[_0x491937(0x1cf)]?.[_0x491937(0x1c0)](_0x5dcb2b,_0x2db779),'send':(_0x2b14c1,_0x59e041,_0x26f305)=>this[_0x491937(0x1fd)](_0x2b14c1,_0x59e041,_0x26f305)}),this[_0x491937(0x238)]=new NodeRunEventBridge({'runtime':this[_0x491937(0x173)],'state':this[_0x491937(0x117)],'events':this[_0x491937(0x141)],'emitWorkbench':(_0x13eb24,_0x2de0f9)=>this[_0x491937(0x22f)](_0x13eb24,_0x2de0f9),'queues':this[_0x491937(0x1f1)],'codex':this[_0x491937(0x132)],'claude':this[_0x491937(0x195)],'openCode':this[_0x491937(0x19f)],'send':(_0x4aeb20,_0x17b790,_0x246aa2)=>this[_0x491937(0x1fd)](_0x4aeb20,_0x17b790,_0x246aa2)}),this[_0x491937(0x174)]=new NodeConnectionLifecycleService({'config':()=>this[_0x491937(0x142)],'setConfig':_0x27feca=>this[_0x491937(0x142)]=_0x27feca,'configPath':this[_0x491937(0x12c)],'capabilities':()=>this[_0x491937(0x143)],'detectCapabilities':this[_0x491937(0x15e)],'capabilitiesProvided':this[_0x491937(0x1df)],'stopped':()=>this[_0x491937(0x23e)],'setCapabilities':_0x2d937c=>this[_0x491937(0x143)]={..._0x2d937c,'metadata':upgradeMetadata(_0x2d937c[_0x491937(0x1cc)],this[_0x491937(0x177)][_0x491937(0x237)]())},'control':this[_0x491937(0x1a6)],'terminal':this[_0x491937(0x221)],'metrics':this[_0x491937(0x211)],'heartbeatMs':HEARTBEAT_MS,'refreshMs':CAPABILITY_REFRESH_MS,'onConnected':()=>this[_0x491937(0x215)][_0x491937(0x17c)]()});const _0x21cc36=()=>{const _0xa43e5c=_0x491937;if(this[_0xa43e5c(0x239)]===undefined)throw new Error(_0xa43e5c(0x131));return this[_0xa43e5c(0x239)];};this[_0x491937(0x15a)]=new RunnerService(_0x21cc36,()=>this[_0x491937(0x143)],this[_0x491937(0x16d)],this[_0x491937(0x231)]),this[_0x491937(0x118)]=new WorkbenchManifestService({'capabilities':()=>this[_0x491937(0x143)],'runners':this[_0x491937(0x15a)],'terminals':this[_0x491937(0x206)]}),this[_0x491937(0x14a)]=new TerminalService(_0x21cc36,this[_0x491937(0x206)]),this[_0x491937(0x16b)]=new WorkspaceService(_0x21cc36,()=>{const _0x3bc2e4=_0x491937;if(this[_0x3bc2e4(0x142)]===undefined)throw new Error(_0x3bc2e4(0x218));return this[_0x3bc2e4(0x142)];},this[_0x491937(0x173)],_0x441cbd=>{const _0x5e8403=_0x491937;this[_0x5e8403(0x1b9)][_0x5e8403(0x1a3)](_0x441cbd),this[_0x5e8403(0x1c6)][_0x5e8403(0x1db)](_0x441cbd),this[_0x5e8403(0x193)][_0x5e8403(0x14f)](_0x441cbd),this[_0x5e8403(0x1c6)][_0x5e8403(0x149)](_0x441cbd);}),this[_0x491937(0x1cf)]=new WorkspaceWorkbenchService({'requireWorkspace':_0x2a58d3=>this[_0x491937(0x1c6)][_0x491937(0x23f)](_0x2a58d3),'watch':this[_0x491937(0x1f5)],'files':this[_0x491937(0x1b9)],'uploads':this[_0x491937(0x224)],'changes':this[_0x491937(0x196)],'listSessions':_0x551d21=>this[_0x491937(0x1bf)](_0x491937(0x20d),{'workspaceId':_0x551d21,'limit':0x14}),'invalidate':_0x47a409=>this[_0x491937(0x1c6)][_0x491937(0x14f)](_0x47a409),'nodeId':()=>this[_0x491937(0x142)]?.[_0x491937(0x151)]??_0x491937(0x108),'nodeGeneration':()=>this[_0x491937(0x236)],'emitWatchEvent':_0x2d4d98=>this[_0x491937(0x1fd)](_0x491937(0x1c8),_0x2d4d98)}),this[_0x491937(0x1a2)][_0x491937(0x1b8)](this[_0x491937(0x15a)][_0x491937(0x203)]()),this[_0x491937(0x1a2)][_0x491937(0x1b8)](this[_0x491937(0x14a)][_0x491937(0x203)]()),this[_0x491937(0x1a2)][_0x491937(0x1b8)](this[_0x491937(0x16b)][_0x491937(0x203)]()),this[_0x491937(0x1a2)][_0x491937(0x1b8)](this[_0x491937(0x1cf)][_0x491937(0x203)]()),this[_0x491937(0x1a2)][_0x491937(0x1b8)](this[_0x491937(0x127)][_0x491937(0x203)]()),this[_0x491937(0x1a2)][_0x491937(0x1b8)](this[_0x491937(0x201)][_0x491937(0x203)]()),this[_0x491937(0x1a2)][_0x491937(0x1b8)](this[_0x491937(0x18f)][_0x491937(0x203)]()),this[_0x491937(0x1a2)][_0x491937(0x1b8)](this[_0x491937(0x133)][_0x491937(0x203)]()),this[_0x491937(0x1a2)][_0x491937(0x1b8)](this[_0x491937(0x22c)][_0x491937(0x203)]()),this[_0x491937(0x1a2)][_0x491937(0x1b8)](this[_0x491937(0x17d)][_0x491937(0x203)]()),this[_0x491937(0x1a2)][_0x491937(0x1b8)](this[_0x491937(0x1c7)][_0x491937(0x203)]()),this[_0x491937(0x1a2)][_0x491937(0x1b8)](this[_0x491937(0x1f1)][_0x491937(0x203)]()),this[_0x491937(0x1a2)][_0x491937(0x1b8)](new SkillNodeOperationService(_0x21cc36,()=>{const _0x23ef82=_0x491937;if(this[_0x23ef82(0x142)]===undefined)throw new Error(_0x23ef82(0x218));return this[_0x23ef82(0x142)];})[_0x491937(0x203)]()),this[_0x491937(0x1a2)][_0x491937(0x1b8)](new McpNodeOperationService(_0x21cc36)[_0x491937(0x203)]()),this[_0x491937(0x1a2)][_0x491937(0x1fe)](_0x491937(0x220),()=>({'metrics':{...this[_0x491937(0x211)][_0x491937(0x237)](),'activeRuns':this[_0x491937(0x117)][_0x491937(0x18d)][_0x491937(0x20c)],'workspaceLeases':this[_0x491937(0x173)][_0x491937(0x187)]()}})),this[_0x491937(0x1a2)][_0x491937(0x1fe)](_0x491937(0x18b),_0x14f536=>this[_0x491937(0x177)][_0x491937(0x147)](_0x14f536)),this[_0x491937(0x1a2)][_0x491937(0x1fe)](_0x491937(0x20f),()=>this[_0x491937(0x177)][_0x491937(0x17b)]()),this[_0x491937(0x1a2)][_0x491937(0x1fe)](_0x491937(0x1e5),async()=>({'manifest':await this[_0x491937(0x118)][_0x491937(0x129)]()}));}async[_0x40355f(0x22a)](){const _0x2f87e2=_0x40355f;this[_0x2f87e2(0x23e)]=![],this[_0x2f87e2(0x142)]??=await loadNodeConfig(this[_0x2f87e2(0x12c)]),await this[_0x2f87e2(0x177)][_0x2f87e2(0x144)](resolve(dirname(nodeDatabasePath(this[_0x2f87e2(0x142)],this[_0x2f87e2(0x12c)])),_0x2f87e2(0x1d7))),await assertLocalSqlitePath(nodeDatabasePath(this[_0x2f87e2(0x142)],this[_0x2f87e2(0x12c)])),this[_0x2f87e2(0x239)]??=new NodeDatabase(nodeDatabasePath(this[_0x2f87e2(0x142)],this[_0x2f87e2(0x12c)]),()=>this[_0x2f87e2(0x142)]?.[_0x2f87e2(0x151)]??_0x2f87e2(0x10e)),this[_0x2f87e2(0x239)][_0x2f87e2(0x1a8)](),this[_0x2f87e2(0x174)][_0x2f87e2(0x22a)](),this[_0x2f87e2(0x1a6)][_0x2f87e2(0x228)]();}[_0x40355f(0x114)](){const _0x22dd2f=_0x40355f;this[_0x22dd2f(0x23e)]=!![],this[_0x22dd2f(0x215)][_0x22dd2f(0x1a3)](),this[_0x22dd2f(0x177)][_0x22dd2f(0x114)](),this[_0x22dd2f(0x174)][_0x22dd2f(0x114)]();for(const _0x1505da of this[_0x22dd2f(0x195)][_0x22dd2f(0x18e)][_0x22dd2f(0x1a4)][_0x22dd2f(0x213)]()){clearTimeout(_0x1505da[_0x22dd2f(0x1d1)]),_0x1505da[_0x22dd2f(0x12a)](_0x22dd2f(0x13c));}this[_0x22dd2f(0x195)][_0x22dd2f(0x18e)][_0x22dd2f(0x1a4)][_0x22dd2f(0x137)]();for(const _0x4f57cb of this[_0x22dd2f(0x195)][_0x22dd2f(0x18e)][_0x22dd2f(0x12f)][_0x22dd2f(0x213)]()){clearTimeout(_0x4f57cb[_0x22dd2f(0x1d1)]),_0x4f57cb[_0x22dd2f(0x1ac)](_0x22dd2f(0x1a9));}this[_0x22dd2f(0x195)][_0x22dd2f(0x18e)][_0x22dd2f(0x12f)][_0x22dd2f(0x137)](),this[_0x22dd2f(0x201)][_0x22dd2f(0x137)](),this[_0x22dd2f(0x12b)][_0x22dd2f(0x1a3)](),this[_0x22dd2f(0x133)][_0x22dd2f(0x137)](),this[_0x22dd2f(0x1f1)][_0x22dd2f(0x137)](),this[_0x22dd2f(0x141)][_0x22dd2f(0x137)](),this[_0x22dd2f(0x120)][_0x22dd2f(0x1a3)]();for(const _0x257f72 of this[_0x22dd2f(0x195)][_0x22dd2f(0x18e)][_0x22dd2f(0x11b)][_0x22dd2f(0x213)]())_0x257f72[_0x22dd2f(0x10c)][_0x22dd2f(0x17b)]();this[_0x22dd2f(0x195)][_0x22dd2f(0x18e)][_0x22dd2f(0x11b)][_0x22dd2f(0x137)](),this[_0x22dd2f(0x229)][_0x22dd2f(0x1a3)](),void this[_0x22dd2f(0x224)][_0x22dd2f(0x1aa)](),this[_0x22dd2f(0x1b9)][_0x22dd2f(0x1a3)](),this[_0x22dd2f(0x1f5)][_0x22dd2f(0x21b)](),this[_0x22dd2f(0x193)][_0x22dd2f(0x137)](),this[_0x22dd2f(0x196)][_0x22dd2f(0x137)](),void this[_0x22dd2f(0x16d)][_0x22dd2f(0x114)](),void this[_0x22dd2f(0x206)][_0x22dd2f(0x1aa)](),this[_0x22dd2f(0x221)][_0x22dd2f(0x114)](),this[_0x22dd2f(0x1a6)][_0x22dd2f(0x114)](),this[_0x22dd2f(0x239)]?.[_0x22dd2f(0x1b3)](),this[_0x22dd2f(0x239)]=undefined;}[_0x40355f(0x175)]=_0x31430a=>this[_0x40355f(0x17e)][_0x40355f(0x10c)](_0x31430a);[_0x40355f(0x197)]=(_0x3805f0,_0x1b37b5,_0x1b112e,_0x3381a2)=>this[_0x40355f(0x238)][_0x40355f(0x145)](_0x3805f0,_0x1b37b5,_0x1b112e,_0x3381a2);[_0x40355f(0x21f)]=(_0xb7e272,_0x1942cc)=>{const _0x1cf63e=_0x40355f;this[_0x1cf63e(0x141)][_0x1cf63e(0x10f)](_0xb7e272);const _0x5a1d6c=isPlainRecord(_0x1942cc)&&typeof _0x1942cc[_0x1cf63e(0x199)]===_0x1cf63e(0x200)?_0x1942cc[_0x1cf63e(0x199)]:undefined,_0x1ba469=isPlainRecord(_0x1942cc)&&typeof _0x1942cc[_0x1cf63e(0x1f3)]===_0x1cf63e(0x200)?_0x1942cc[_0x1cf63e(0x1f3)]:undefined,_0xbf91c6=this[_0x1cf63e(0x173)][_0x1cf63e(0x1e8)](_0xb7e272),_0x4adcf6=_0x5a1d6c===undefined||_0xbf91c6===undefined?undefined:conversationSegmentIdentityForItem(_0xbf91c6,_0x5a1d6c,_0x1ba469);this[_0x1cf63e(0x238)][_0x1cf63e(0x145)](_0xb7e272,_0x1cf63e(0x223),_0x4adcf6===undefined||!isPlainRecord(_0x1942cc)?_0x1942cc:{..._0x1942cc,'segmentId':_0x4adcf6['id'],'segmentIndex':_0x4adcf6[_0x1cf63e(0x126)]});};[_0x40355f(0x180)]=_0x14c16c=>{const _0x35c5f1=_0x40355f,_0x2889b0=isPlainRecord(_0x14c16c)&&Array[_0x35c5f1(0x1c3)](_0x14c16c[_0x35c5f1(0x1ab)])?conversationSegments(_0x14c16c):[];this[_0x35c5f1(0x22f)](_0x35c5f1(0x1e0),{'turn':_0x14c16c,'segments':_0x2889b0});};[_0x40355f(0x22f)]=(_0xee4b70,_0xdd828d)=>{const _0x4e7942=_0x40355f,_0x207b23=this[_0x4e7942(0x172)][_0x4e7942(0x17f)](_0xee4b70,_0xdd828d);if(_0x207b23===undefined)return;const _0x5d656f=_0xee4b70===_0x4e7942(0x1e0)&&isPlainRecord(_0xdd828d)&&isPlainRecord(_0xdd828d[_0x4e7942(0x1d6)])&&_0xdd828d[_0x4e7942(0x1d6)][_0x4e7942(0x13f)]===_0x4e7942(0x11f),_0xa1fa7d=workbenchPayloadSessionId(this[_0x4e7942(0x173)],_0xee4b70,_0xdd828d);if(!_0x5d656f&&_0xa1fa7d!==undefined){this[_0x4e7942(0x201)][_0x4e7942(0x10a)](_0xa1fa7d,_0x207b23);return;}this[_0x4e7942(0x172)][_0x4e7942(0x216)](_0x207b23);};[_0x40355f(0x130)]=_0x44cf13=>this[_0x40355f(0x128)][_0x40355f(0x192)](_0x44cf13);[_0x40355f(0x1d5)]=_0x5ec8a6=>this[_0x40355f(0x1c6)][_0x40355f(0x14f)](_0x5ec8a6);[_0x40355f(0x21a)]=()=>undefined;[_0x40355f(0x21e)]=()=>this[_0x40355f(0x174)][_0x40355f(0x21e)]();[_0x40355f(0x158)]=()=>this[_0x40355f(0x174)][_0x40355f(0x158)]();async[_0x40355f(0x1bf)](_0x46a120,_0xcb9d28){const _0x5ca5f9=_0x40355f;if(this[_0x5ca5f9(0x239)]===undefined)throw new Error(_0x5ca5f9(0x131));if(this[_0x5ca5f9(0x177)][_0x5ca5f9(0x14d)](_0x46a120))throw new Error(_0x5ca5f9(0x13a));return nodeLog(_0x5ca5f9(0x153),{'nodeId':this[_0x5ca5f9(0x142)]?.[_0x5ca5f9(0x151)],'operation':_0x46a120}),this[_0x5ca5f9(0x1a2)][_0x5ca5f9(0x194)](_0x46a120,_0xcb9d28);}[_0x40355f(0x1fd)](_0x97f4a4,_0x2493d4,_0x38bfee){const _0xa0b8ac=_0x40355f;this[_0xa0b8ac(0x1a6)][_0xa0b8ac(0x1fd)](_0x97f4a4,_0x2493d4,_0x38bfee);}[_0x40355f(0x12e)](_0x36f963){const _0x38cb1b=_0x40355f;this[_0x38cb1b(0x1a6)][_0x38cb1b(0x12e)](_0x36f963);}}
2
+ const _0x48e4b0=_0x2419;(function(_0x3db92c,_0x3a6499){const _0x13031d=_0x2419,_0x44166f=_0x3db92c();while(!![]){try{const _0x17e786=parseInt(_0x13031d(0x270))/(0x1*-0x11ed+0x729+0x397*0x3)*(parseInt(_0x13031d(0x230))/(0x1*0x16ac+-0x2*-0x217+-0xd6c*0x2))+-parseInt(_0x13031d(0x30a))/(-0x4d*-0x43+0x2*0x122b+-0x387a)*(-parseInt(_0x13031d(0x1f4))/(0xf75+-0x20b*0x10+0x113f))+parseInt(_0x13031d(0x34f))/(-0x480+0x5f*0x3d+-0x121e)*(-parseInt(_0x13031d(0x261))/(-0x27*-0xf1+0x12f6+-0x37a7))+-parseInt(_0x13031d(0x1ed))/(-0x115d+-0x5fe+0x92*0x29)*(-parseInt(_0x13031d(0x274))/(0x743+0x157+-0x892*0x1))+-parseInt(_0x13031d(0x29c))/(0x15c9+-0xec+-0x7c*0x2b)+-parseInt(_0x13031d(0x2aa))/(-0x18*-0x75+-0x27e*0x2+0x5f2*-0x1)*(parseInt(_0x13031d(0x2c7))/(-0x1963+0x16b4+0x2ba))+parseInt(_0x13031d(0x20c))/(0x6*-0x661+0x4c*0x2b+-0x1*-0x198e);if(_0x17e786===_0x3a6499)break;else _0x44166f['push'](_0x44166f['shift']());}catch(_0x33d962){_0x44166f['push'](_0x44166f['shift']());}}}(_0x3e29,0xe2f1b*-0x1+-0x107021+0x285e40));import{dirname,resolve}from'node:path';import{createEnvelope}from'@myagentroam/protocol';import{loadNodeConfig,nodeDatabasePath}from'./config.js';import{NodeMetrics,nodeLog}from'./operational.js';import{assertLocalSqlitePath}from'./storage.js';import{detectCapabilitiesAsync,unavailableCapabilities}from'./capabilities.js';import{NodeDatabase}from'./database.js';import{TerminalManager}from'./terminal.js';import{NodeRuntimeState}from'./runtime-state.js';import{CommandStateStore}from'./runner-command-engine.js';import{missionUnrestrictedAccess,MissionRuntime}from'./service/mission-runtime.js';import{MissionMcpServer}from'./service/mission-mcp-server.js';import{RunnerUsageReader}from'./runner-usage.js';import{ClaudeCodeRunner}from'./runner/claude-code-runner.js';import{ClaudeManagedRunController}from'./runner/claude/managed-run-controller.js';import{CodexRunner}from'./runner/codex-runner.js';import{CodexManagedRunController}from'./runner/codex/managed-run-controller.js';import{FakeTestRunner}from'./runner/fake-test-runner.js';import{RunnerRegistry}from'./runner/runner-registry.js';import{OpenCodeRunner}from'./runner/opencode-runner.js';import{OpenCodeManagedRunController}from'./runner/opencode/managed-run-controller.js';import{NodeOperationRouter}from'./connector/node-operation-router.js';import{SkillNodeOperationService}from'./service/skill-node-operation-service.js';function _0x3e29(){const _0x55fe8a=['zxHLy3v0Aw9Uu3rHCNrLza','rvHurvjoquW','zw1PDfj1BKv2zw50','y2fWywjPBgL0AwvZ','CMvJB25Uzwn0','zgvSzxrL','CNvUrxzLBNrcCMLKz2u','CgvUzgLUzW','y29UDMvYC2f0Aw9Uu2vNBwvUDfnLCNzPy2u','C2vZC2LVBG','CNvUBMvYu2vYDMLJzq','Bwf0zxjPywXPEMvdB2rLEa','BMf0AxzLu2vZC2LVBLbYB2PLy3rPB25tzxj2AwnL','CNvUu3rHDgu','A2LUza','DxnLCKLUChv0CW','D29YA2jLBMnOtwfUAwzLC3rtzxj2AwnL','C2vXDwvUy2u','yM9VDhn0CMfWswrZ','CMvZDw1LzenVBMzPz3vYyxrPB24','CMvZDw1Lqwz0zxjdB21Tyw5KuNvU','DMfSDwvZ','C2vZC2LVBLbYzxnLBNrHDgLVBLnLCNzPy2u','y2XLyxjbBgW','y29UDhjVBenOyw5UzwW','y2XLyxjxyxrJAgvZ','DhjHBNnPDgLVBMLUzW','zw1PDfj1BG','BMv4Da','D29YA3nWywnLu2vYDMLJzq','CgvUzgLUz01PC3nPB25dB21Tyw5Ku3rHDgu','B3bLCMf0Aw9UCW','Aw52ywXPzgf0zvrVCgLJ','y29KzxHdBgLLBNq','y2XHDwrLq2XPzw50','rKflrv9svu5orvjFreLtq09otKvdva','ChjLC2vUDa','BwLNCMf0zvj1BM5LCLnLC3nPB25jzgvUDgL0Eq','y29UBMvJDa','ChvIBgLZAa','C2vZC2LVBI13yxrJAc1ZBMfWC2HVDa','Bwf4','BwLZC2LVBLj1BNrPBwu','ode2otL3v1r6D0S','y29UBMvJDgvKqxr0zw1WDa','zxH0zxjUywXtzxnZAw9UuMvZDw1Lu2vYDMLJzq','ChjVBxb0','zxH0zxjUywXtzxnZAw9Uswq','BM9Kzs5JB25Uzwn0Aw5N','CMv2AxnPB24','CMvMCMvZAenHCgfIAwXPDgLLCW','tK9erv9dt05gsuDFvu5bvKfjtefcteu','Aw5ZDgfSBgf0Aw9U','yxbWCM92ywXjza','y29UDMvYC2f0Aw9UsgLZDg9YEvnLCNzPy2u','CMvJB3jKzwqTC2vZC2LVBG','zMX1C2Hqzw5KAw5Nvgv4Da','uKvkrunuruq','DgvYBwLUywXtzxj2AwnL','zxHLy3v0zu5VzgvpCgvYyxrPB24','zxHWAxjLqxbWCM92ywW','ChjVBw90zq','CNvUBMvYvxnHz2vszwfKzxi','BM9KzvjLCxvLC3rZ','y2XLyxi','u0vora','zxHLy3v0Aw9U','CNvUBMvYq2HHBM5LBe1LC3nHz2vZ','DxbNCMfKzs1Yzxn1BhqUANnVBG','CMvTB3zLugvUzgLUz1f1zxvL','C2vZC2LVBKLK','BM90AwzPy2f0Aw9U','zgLZy29UBMvJDa','zgLZy292zxjxB3jRC3bHy2vtzxnZAw9UCW','y2XLyxjxB3jRC3bHy2u','zw5ZDxjLvg9WAwntBMfWC2HVDa','y2fWywjPBgL0AwvZuhjVDMLKzwq','BwLZC2LVBK1JCfnLCNzLCG','y29UDMvYC2f0Aw9UlML0zw0','B2jQzwn0AxzL','BwLZC2LVBG','B25tDw1Tyxj5','AgfZrxHLy3v0Aw9Uu3rHCNrLza','q0foq0vm','ywXSB3DLzfjVB3rZ','BwfUywDLzezVCK5HDgL2zq','AxnbCNjHEq','Dgv4Dc5KzwX0yq','BM9Kzs53B3jRyMvUy2GUy2fWywjPBgL0AwvZ','CMvTzw1Izxi','zgLZy292zxjxB3jRC3bHy2u','CMvWBgfJzvnVy2TLDezVCLrLC3rPBMC','AgfZqwn0AxzLu2vZC2LVBKXLyxnL','zMLUza','zw1PDfnLC3nPB25xB3jRyMvUy2HfDMvUDa','D29YA3nWywnLuxvLDwvxB3jRyMvUy2Htzxj2AwnL','zw1PDfjLywX0Aw1L','C2nOzwr1Bgu','y3jLyxrLqxbWCM92ywW','CMvTB3zL','tK9erv9eqvrbqKftrv9vtKfwquLmqujmrq','BM9Kzs51CgDYywrLlMnHBMnLBa','y2fWywjPBgL0EurLDgvJDg9Y','y2fJAgvKu2vZC2LVBNm','CgvYC2LZDezPBgvZ','y2XHDwrLuNvUq29UDhjVBgXLCG','zgLZCgf0y2G','C3vIBwL0twLZC2LVBG','zxHLy3v0zq','y2HHBM5LBfrVA2vU','B3bLBKnVzgvsDw5dB250CM9SBgvY','y3jLyxrLqwDLBNrtzxnZAw9U','mtyXmZvpDNnoAw8','BwfYlwLUDgvYBMfSlw1PC3nPB24','CMvZCg9UzfvZzxjjBNb1Da','yxbWCM92ywXZ','DgvYBwLUywXdAgfUBMvS','y2fUy2vSq2XHDwrLuNvU','BMf0AxzLswrZ','Aw52ywXPzgf0zunOyw5Nzxm','DxbNCMfKzvjLywr5','q0foq0vmteLorW','z2v0uNvU','BgLUDxG','BMf0AxzLu2vZC2LVBLDHDgnOu2vYDMLJzq','tK9erv9vueDsqurfx1bftKrjtKC','D29YA3nWywnLv2f0y2Htzxj2AwnL','zgvJAwrL','ywrK','CNvUDgLTzs1UB2rL','zMLSDgvY','CNvUBMvYlMnVBw1HBMqUzxHLy3v0zq','Dw5YzwDPC3rLCMvK','ywrVChrsDw4','zw5ZDxjLv2f0y2G','mteYntGXvwz5Bxzq','ChvIBgLZAe1PC3nPB25tDgf0zq','Cgf5Bg9Hza','y2fUy2vS','yMXVy2TZ','CMvHzeHPC3rVCNLqywDL','C2vUza','mte2yxDhwhzS','zMfRztO','y29UDMvYC2f0Aw9U','CMvNAxn0zxjbBgW','zMfRzvnJCMLWDa','CMfUzg9Tvvvjra','C3vWzxj2AxnLzfvWz3jHzgu','tK9erv9dt05orunusu9ox1jfueXbq0ve','Dw5Yzwy','Cgf1C2vtzxnZAw9UuxvLDwu','CNvUswq','Dgv4Da','C2vZC2LVBNm','y29UzMLNugf0Aa','uLvox05pvf9gt1vora','y29TCgXLDgvdyw5JzwXSzwrsDw4','ChjVAMvJDgLVBKzVCK5HDgL2zq','C2XPy2u','CNvUBMvYCW','C2vZC2LVBKnVBw1HBMrtzxj2AwnL','yxbWzw5K','zgvJAwrLqxbWCM92ywW','C2vZC2LVBKnVBNrLEhrtzxj2AwnL','zxHPDa','nJiWntyZmKzYyNfOEG','AgfUzgXLtM90AwzPy2f0Aw9U','zxHLy3v0zunVBw1HBMq','ChvIBgLZAefWChjVDMfS','y29KzxHqCM9MAwXLq2XPzw50rMfJDg9YEq','zw1PDenVBNzLCNnHDgLVBKL0zw0','AgfUzgXLtwvZC2fNzq','y2XLyw51Ca','rKfjteve','CgvYC2LZDfrLCM1PBMfS','BNvTyMvY','y2XHDwrLqxbWCM92ywXuAw1LB3v0txm','DhvYBKLK','BM9KzuLK','CMvXDwvZDa','zgf0ywjHC2u','CMvJB25JAwXL','sfruua','CgXHDgzVCM0','y2HHBMDLza','ywnJzxnZ','ChvIBgLZAfnUyxbZAg90','y2fUy2vSq29KzxHuDxjU','AgfUzgXL','C3rHDhvZ','yMLUzenVBw1HBMrdB250CM9S','C2v0q2HHBM5LBfrVA2vU','z2v0qwDLBNrtzxnZAw9U','y29KzxHsDw5dB250CM9SBgvY','C2vZC2LVBI5SAxn0','DgHYzwfKswq','C2H1DgrVD24','Dg9WAwnby3rPDMu','z2v0v29YA3nWywnL','z2v0','CNvUqxr0ywnOBwvUDfnLCNzPy2u','mta4nJC1oeLkueLcrW','zw1PDenVBNzLCNnHDgLVBLr1CM4','Bw92zq','D29YA3nWywnLq29VCMrPBMf0B3i','Aw52ywXPzgf0zvDVCMTZCgfJzvDHDgnOvg9WAwnZ','twLZC2LVBG','CNvUBMvYsw50zxjHy3rPB25tzxj2AwnL','CMvJB25JAwXLugvYC2LZDgvKuNvUCW','y29UDgLUDwu','Ahr0Chm6lY8XmJCUmc4WlJeUAw52ywXPzc9Ty3a','D29YA3nWywnLu3rHDgu','CMvJzw50lxj1BNm','tuLtu0LptL9ot1rFqunusvzf','BM9Kzs5TzxrYAwnZ','AgfZ','ywnJzxb0rM9YtwvZC2fNzq','y3DK','CMvQzwn0','CMvWBgfJzq','zMfRzvj1BM5LCG','C3rYAw5NAwz5','CNvUCW','C29JA2v0','D29YA3nWywnLq2HHBMDLu2vYDMLJzq','B3bLCMf0Aw9UuM91DgvY','zwzMB3j0','CMvZB2X2zun1CNjLBNq','CNvUrxzLBNrtzxj2AwnL','BM9Kzs5JB25Uzwn0Aw9UlNjLCgXHy2vK','ms4WlJa','CMvJB3jKrxHLy3v0Aw9UuMvZDwX0','CNvU','BwLZC2LVBLjLDhj5vgLTzxjZ','y2f0y2G','BM9Kzs51CgDYywrLlNjLCxvLC3q','y29TBwfUzfn0yxrLCW','C2vZC2LVBKnHDgfSB2Dtzxj2AwnL','zw1PDfDVCMTIzw5JAev2zw50','BgLZDa','C2L6zq','zxHWAxjL','AxrLBuLK','y2XLyxjnAxnZAw9UuMv0CNK','zxH0zxjUywXby3rPDML0Eq','vgHPCYboB2rLignVBM5Ly3rPB24GD2fZihjLCgXHy2vKigj5igeGBMv3zxiGAw5ZDgfUy2uGD2L0Acb0AguGC2fTzsbPzgvUDgL0Es4Gq2HLy2SGzM9Yigr1CgXPy2f0zsbWCM9JzxnZzxmU','D29YA3nWywnLu2vZC2LVBLnLCNzPy2u','y29UDMvYC2f0Aw9UvhvYBKzVCLj1BG','BwLNCMf0zvnLC3nPB24','C2v0','mte0nKX4rfPUrq','tK9erv9tve9queve','zgLYzwn0tMf0AxzL','zw1PDff1zxvL','CNvUv29YA2jLBMnOu2vYDMLJzq','B3bLBKnVzgvdBgLLBNq','CMvJB3jK','AxrLBxm','l21PC3nPB24Gls1JBgvHCG','zgLZy292zxi','ChjVzMLSzxm','CMvHza','yMLUzenVBNrYB2W','l21PC3nPB24','yxzHAwXHyMXL','mvb0vLr5AG','zw5ZDxjLuMvZDw1LzenVBMzPz3vYyxrPB24','CMvXDwvZDenSyxvKzufWChjVDMfS','CMvHze5HDgL2zq','ndG4DMTlC1DR','C25HChnOB3rtzxf1zw5Jzq','CMvZB2X2zq','Bwv0CMLJCW','uKvqtefdrv9dvvjsru5u','CMvMCMvZAfrPDgXL','BgLZDfDVCMTZCgfJzxm','y29KzxG','ChjLCgfYzu1PC3nPB25tzxnZAw9U','zgvJAxnPB24','D2LUmZi','BgLZDfj1BNngB3jtzxnZAw9U','D29YA3nWywnLv29YA2jLBMnOu2vYDMLJzq','CMvJB3jKvhvYBG','CMvNAxn0zxi','DgvYBwLUywXnyw5Hz2vY','Aw52ywXPzgf0zq','zMfZDa','CMv2B2TL','D29YA3nWywnLswq','CMvMCMvZAev4DgvYBMfSqwn0AxzPDhK','C3rHCNq','C3rHDgu','y2XVC2u','BM93','C25HChnOB3q','Cgf0Aa','Bw9KzwW','y2XVC2vsDw5UAw5NvgvYBwLUywXtzxnZAw9UCW','CNvUDgLTzq','C2vZC2LVBLn0yxrL','BMf0AxzLlNnLC3nPB24UzgLZy292zxj5lNbLBMrPBMC','CMvXDwvZDenSyxvKzvvZzxjjBNb1Da','y29UDhjVBe1LC3nHz2vZ','DxbNCMfKzq','ChjVBw90zvnLC3nPB25jzgvUDgL0Eq','C2vJCMv0CW','DxbKyxrLqwDLBNrtzxnZAw9UqwnJzxnZ','zxzLBNruExbL','BwfUywDLzfj1BM5LCLnLC3nPB25Z','nta1nZe3mNDyv3LIBq','C3rYAw5N','zxzLBNq','BM9Kzs5VCgvYyxrPB24','Aw50zxjYDxb0','ChvIBgLZAfDVCMTIzw5JAev2zw50','zwzMzwn0AxzLtwnWsw5ZDgfSBgf0Aw9UCW','DxbNCMfKzunVB3jKAw5HDg9Y','zgLZCg9Zzq','uvvfvuu','CMvJB25Uzwn0u2nOzwr1BgvK','D29YA3nWywnLrMLSzvnLCNzPy2u','C2vZC2LVBKLKzw50Axr5u2vYDMLJzq','BxLHz2vUDhjVyw1FBwLZC2LVBG','mJmWC0vkrhb3','Bg9HzfjLC3vSDa','D2LUzg93CW','D2f0y2GUzxzLBNq','CMvJzw50uNvUuhjVAMvJDgLVBLnLCNzPy2u','Aw5KzxG','C291CMnLu2vXDwvUy2u','C2vJCMv0rw52AxjVBM1LBNq','zgvJAwrLq29KzxHbChbYB3zHBa','D29YA2jLBMnOrxzLBNrtzxj2AwnL','C2vUzevUDMvSB3bL','CMvXDwLYzq','Bwv0ywrHDge','v09ss1nqqunf','y29UDgLUDw91C1j1BKnVB3jKAw5HDg9Y','ywn0AxzLv29YA3nWywnLtgvHC2vdB3vUDa','C3rVCa','lw9Wzw5JB2rLlwLTywDLCW','DhvYBG','Aw5ZCgvJDa','BM9KzuDLBMvYyxrPB24','Aw50zxjYDxb0uMvXDwvZDgvK','CMvTB3zLtwLZC2LVBLf1zxvL','ChjLCgfYzu1LC3nHz2vjBNb1Da','ywn0AxzL','C2vZC2LVBLf1zxj5u2vYDMLJzq','C3rHCNrdyxbHyMLSAxr5uMvMCMvZAa','CNvUBMvY','y29UBMvJDgvK','ndG1mtiYu2DQEe9z','y29UBMvJDgLVBKXPzMvJEwnSzq','su5urvjsvvburuq','C3rVCfDHDgnO','C3rVChbLza','DgLTzxi','BMf0AxzLsw1Hz2vsB290CW','C2vZC2LVBK1LC3nHz2vtzxj2AwnL','B25oB3rPzMLJyxrPB24','q0foq0vmteve','yxnZAxn0yw50x21LC3nHz2u','D29YA3nWywnLvxbSB2fKu2vYDMLJzq','CgvYC29UywXjBNn0CNvJDgLVBNm','CNvUBMvYvgL0Bgu','y29UzMLN','C2vZC2LVBKXPzMvJEwnSzvnLCNzPy2u','C2f2zu5HDgL2zvnLC3nPB25nzxrHzgf0yq','ChjVAMvJDeLUAxrPywW','Aw52ywXPzgf0zunHy2HL','zM9Yz2v0','zgvJAwrLq2XHDwrLqxbWCM92ywW','y3jLyxrLzef0','BwLU','surmrq'];_0x3e29=function(){return _0x55fe8a;};return _0x3e29();}import{McpNodeOperationService}from'./service/mcp-node-operation-service.js';import{RunnerService}from'./service/runner-service.js';import{TerminalService}from'./service/terminal-service.js';import{WorkspaceService}from'./service/workspace-service.js';import{WorkspaceWatchService}from'./service/workspace-watch-service.js';import{WorkspaceFileService}from'./service/workspace-file-service.js';import{WorkspaceUploadService}from'./service/workspace-upload-service.js';import{WorkspaceChangeService}from'./service/workspace-change-service.js';import{WorkspaceSessionService}from'./service/workspace-session-service.js';import{WorkbenchEventService}from'./service/workbench-event-service.js';import{RunDomainState}from'./service/run-domain-state.js';import{RecentRunProjectionService}from'./service/recent-run-projection-service.js';import{SessionDomainState}from'./service/session-domain-state.js';import{RunEventService}from'./service/run-event-service.js';import{RunAttachmentService}from'./service/run-attachment-service.js';import{NodeTerminalChannel}from'./service/node-terminal-channel.js';import{WorkspaceWorkbenchService}from'./service/workspace-workbench-service.js';import{NativeSessionWatchService}from'./service/native-session-watch-service.js';import{SessionContextService}from'./service/session-context-service.js';import{WorkspaceDomainState}from'./service/workspace-domain-state.js';import{RunWorkbenchService}from'./service/run-workbench-service.js';import{SessionQueryService}from'./service/session-query-service.js';import{WorkspaceQueueWorkbenchService}from'./service/workspace-queue-workbench-service.js';import{ContinuousRunCoordinator}from'./service/continuous-run-coordinator.js';import{SessionIdentityService}from'./service/session-identity-service.js';import{NativeSessionProjectionService}from'./service/native-session-projection-service.js';import{composeConversationRuntimePage,ConversationHistoryService,convergeConversationWatchPage,hasManagedActiveRun}from'./service/conversation-history-service.js';import{ConversationSegmentService,conversationSegmentIdentityForItem,conversationSegments}from'./service/conversation-segment-service.js';import{RunnerInteractionService}from'./service/runner-interaction-service.js';import{SessionLifecycleService}from'./service/session-lifecycle-service.js';import{ExternalSessionResumeService}from'./service/external-session-resume-service.js';import{SessionMessageService}from'./service/session-message-service.js';import{SessionCatalogService}from'./service/session-catalog-service.js';import{SessionCommandService}from'./service/session-command-service.js';import{SessionPresentationService}from'./service/session-presentation-service.js';import{isPlainRecord,isRunnerImageAttachment,parseRunnerImageAttachments}from'./runner/codex/conversation-parser.js';export{nodeConnectEndpoint,validatedCapabilities}from'./runner/codex/conversation-parser.js';import{NodeControlChannel}from'./service/node-control-channel.js';import{NodeControlMessageService}from'./service/node-control-message-service.js';import{NodeRequestService}from'./service/node-request-service.js';import{WorkbenchManifestService}from'./service/workbench-manifest-service.js';import{NodeRunEventBridge,workbenchPayloadSessionId}from'./service/node-run-event-bridge.js';function _0x2419(_0x15eac2,_0x13ddb2){_0x15eac2=_0x15eac2-(-0x3*0x487+-0x2*0xc9d+0x28b8);const _0x42d722=_0x3e29();let _0x4ebea2=_0x42d722[_0x15eac2];if(_0x2419['qJMTMZ']===undefined){var _0x1111f9=function(_0x3f3cca){const _0x21fae8='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2e4567='',_0x1b8cf2='';for(let _0x763654=-0xa9a+-0x23c+0xcd6*0x1,_0x3b8fc9,_0x5cdea5,_0x416e2c=-0x1*-0x223f+-0x1139+-0x1106*0x1;_0x5cdea5=_0x3f3cca['charAt'](_0x416e2c++);~_0x5cdea5&&(_0x3b8fc9=_0x763654%(-0x26b3+0x18d*-0x19+0x4d7c)?_0x3b8fc9*(0x7a5+-0x17f6+-0x1*-0x1091)+_0x5cdea5:_0x5cdea5,_0x763654++%(-0x119*-0xf+-0x2*0x9bf+0x30b))?_0x2e4567+=String['fromCharCode'](0x1*-0x569+-0x1099+0x1701&_0x3b8fc9>>(-(-0xf98+0x24b2+-0x1518)*_0x763654&-0x4*0x4eb+-0x1c04+0x2*0x17db)):0x18*-0x6c+0x6*0x673+-0x1c92){_0x5cdea5=_0x21fae8['indexOf'](_0x5cdea5);}for(let _0x49c0b1=0x2*-0xf+0xd35+0x3*-0x45d,_0x24ea1d=_0x2e4567['length'];_0x49c0b1<_0x24ea1d;_0x49c0b1++){_0x1b8cf2+='%'+('00'+_0x2e4567['charCodeAt'](_0x49c0b1)['toString'](0x21ac+0x12b5+-0x3451))['slice'](-(-0x22b5+0x6d*0x29+0x1142));}return decodeURIComponent(_0x1b8cf2);};_0x2419['YcnyJo']=_0x1111f9,_0x2419['ESZuIs']={},_0x2419['qJMTMZ']=!![];}const _0x18f738=_0x42d722[0x208b+-0x45e*-0x6+0x687*-0x9];_0x2419['NFDsCm']!==_0x18f738&&(_0x2419['ESZuIs']={},_0x2419['NFDsCm']=_0x18f738);const _0x48ac72=_0x2419['ESZuIs'][_0x15eac2];return _0x48ac72===undefined?(_0x4ebea2=_0x2419['YcnyJo'](_0x4ebea2),_0x2419['ESZuIs'][_0x15eac2]=_0x4ebea2):_0x4ebea2=_0x48ac72,_0x4ebea2;}import{NodeWorkspaceCoordinator}from'./service/node-workspace-coordinator.js';import{FakeManagedRunService}from'./service/fake-managed-run-service.js';import{RunnerChannelMessageService}from'./service/runner-channel-message-service.js';import{ManagedRunnerSessionService}from'./service/managed-runner-session-service.js';import{NodeConnectionLifecycleService}from'./service/node-connection-lifecycle-service.js';import{NodeUpgradeCoordinator,nodeUpgradeRequestPath}from'./service/node-upgrade-coordinator.js';const HEARTBEAT_MS=0x6665*-0x1+0x1852+-0x1*-0x88ab,CAPABILITY_REFRESH_MS=-0x181ed+0x3b6e+0x230df,RETRY_MIN_MS=-0x1*0x3cb+-0xfa7*-0x2+-0x198f,RETRY_MAX_MS=-0x55f9+-0x8*-0x905+-0x63d*-0x15,CLAUDE_APPROVAL_TIMEOUT_MS=(0x215d+-0x4f4+-0x1c5f)*(0xab5f+0x170f+0x27f2);export function nextReconnectDelay(_0x52898a){const _0x1766a5=_0x2419;return Math[_0x1766a5(0x2dd)](RETRY_MAX_MS,RETRY_MIN_MS*(0x24b2+-0x1d5f+-0x751)**Math[_0x1766a5(0x2dd)](Math[_0x1766a5(0x308)](_0x52898a,-0x1c04+0x1fee+0x2*-0x1f5),0x18*-0x6c+0x6*0x673+-0x1c82));}function upgradeMetadata(_0x187e58,_0x27c237){const _0x1d9c36=_0x2419,_0x2b147d={..._0x187e58??{}};if(process.env['MAR_NODE_SUPERVISED']==='1')_0x2b147d[_0x1d9c36(0x1fa)]=!![];else delete _0x2b147d[_0x1d9c36(0x1fa)];if(_0x27c237[_0x1d9c36(0x28a)]===_0x1d9c36(0x2de))delete _0x2b147d[_0x1d9c36(0x296)];else _0x2b147d[_0x1d9c36(0x296)]=_0x27c237;return _0x2b147d;}export class NodeConnector{[_0x48e4b0(0x2be)]=crypto[_0x48e4b0(0x1f9)]()[_0x48e4b0(0x242)](/-/g,'');[_0x48e4b0(0x2f7)];[_0x48e4b0(0x295)];[_0x48e4b0(0x31e)];[_0x48e4b0(0x2c8)];set[_0x48e4b0(0x246)](_0x1c60ce){const _0x818663=_0x48e4b0;this[_0x818663(0x2f7)][_0x818663(0x33a)](_0x1c60ce);}[_0x48e4b0(0x2cb)]=![];[_0x48e4b0(0x2d5)];[_0x48e4b0(0x32b)];[_0x48e4b0(0x2e2)];[_0x48e4b0(0x345)];[_0x48e4b0(0x201)];[_0x48e4b0(0x2e3)];[_0x48e4b0(0x217)];[_0x48e4b0(0x2b3)]=new WorkbenchEventService(envelope=>this[_0x48e4b0(0x2b4)](envelope),(category,payload)=>{const _0x3f0b2a=_0x48e4b0,sessionId=workbenchPayloadSessionId(this[_0x3f0b2a(0x291)],category,payload);return sessionId===undefined||!this[_0x3f0b2a(0x2a8)][_0x3f0b2a(0x2f1)][_0x3f0b2a(0x23e)](sessionId);});[_0x48e4b0(0x243)];[_0x48e4b0(0x1f8)];[_0x48e4b0(0x2ec)]=new RunDomainState();[_0x48e4b0(0x2e5)];[_0x48e4b0(0x233)];[_0x48e4b0(0x292)]=new SessionDomainState();[_0x48e4b0(0x2a8)];[_0x48e4b0(0x2eb)];[_0x48e4b0(0x315)];[_0x48e4b0(0x2e7)];[_0x48e4b0(0x236)];[_0x48e4b0(0x322)];[_0x48e4b0(0x29b)];[_0x48e4b0(0x2f5)];[_0x48e4b0(0x2d6)];[_0x48e4b0(0x30c)];[_0x48e4b0(0x2ce)];[_0x48e4b0(0x254)];[_0x48e4b0(0x207)];[_0x48e4b0(0x22f)];[_0x48e4b0(0x353)];[_0x48e4b0(0x300)];[_0x48e4b0(0x228)];[_0x48e4b0(0x301)];[_0x48e4b0(0x266)];[_0x48e4b0(0x34d)];[_0x48e4b0(0x348)];[_0x48e4b0(0x206)];[_0x48e4b0(0x20a)];[_0x48e4b0(0x265)];[_0x48e4b0(0x2c3)];[_0x48e4b0(0x2b8)];[_0x48e4b0(0x33e)];[_0x48e4b0(0x248)]=new NodeOperationRouter();[_0x48e4b0(0x2e9)];[_0x48e4b0(0x2ef)];[_0x48e4b0(0x319)];[_0x48e4b0(0x2fc)];[_0x48e4b0(0x253)]=new CommandStateStore();[_0x48e4b0(0x309)]=new MissionRuntime(()=>undefined);[_0x48e4b0(0x250)]=new Map();[_0x48e4b0(0x32c)]=new MissionMcpServer(this[_0x48e4b0(0x309)],sessionId=>{const _0x31e0ab=_0x48e4b0,mission=this[_0x31e0ab(0x309)][_0x31e0ab(0x22e)](sessionId),session=this[_0x31e0ab(0x291)][_0x31e0ab(0x227)](sessionId);if(mission===undefined||session===undefined)return;if(mission[_0x31e0ab(0x224)]!==_0x31e0ab(0x2c2))this[_0x31e0ab(0x2b8)][_0x31e0ab(0x2c0)](sessionId);this[_0x31e0ab(0x1ee)](session,mission);});[_0x48e4b0(0x31d)];[_0x48e4b0(0x283)];[_0x48e4b0(0x2a3)];[_0x48e4b0(0x23a)]=new WorkspaceDomainState();[_0x48e4b0(0x35d)]=new WorkspaceWatchService(this[_0x48e4b0(0x23a)],workspaceId=>this[_0x48e4b0(0x25d)][_0x48e4b0(0x1ec)](workspaceId),workspaceId=>this[_0x48e4b0(0x25d)][_0x48e4b0(0x2ca)](workspaceId),workspaceId=>this[_0x48e4b0(0x280)]?.[_0x48e4b0(0x329)](workspaceId));[_0x48e4b0(0x25d)]=new WorkspaceSessionService(this[_0x48e4b0(0x23a)],{'discover':workspaceId=>this[_0x48e4b0(0x328)](workspaceId),'listPage':workspaceId=>this[_0x48e4b0(0x31a)](_0x48e4b0(0x229),{'workspaceId':workspaceId,'limit':0x14}),'active':workspaceId=>this[_0x48e4b0(0x35d)][_0x48e4b0(0x22c)](workspaceId,_0x48e4b0(0x200)),'invalidate':workspaceId=>void this[_0x48e4b0(0x280)]?.[_0x48e4b0(0x2ff)](workspaceId,_0x48e4b0(0x200)),'onPending':(workspaceId,waitMs)=>nodeLog(_0x48e4b0(0x293),{'nodeId':this[_0x48e4b0(0x2d5)]?.[_0x48e4b0(0x219)],'workspaceId':workspaceId,'waitMs':waitMs})});[_0x48e4b0(0x2a7)]=new WorkspaceFileService(this[_0x48e4b0(0x23a)],()=>this[_0x48e4b0(0x2d5)]?.[_0x48e4b0(0x333)]??[],workspaceId=>this[_0x48e4b0(0x233)][_0x48e4b0(0x284)](workspaceId));[_0x48e4b0(0x2d2)]=new WorkspaceUploadService(this[_0x48e4b0(0x23a)],workspaceId=>this[_0x48e4b0(0x233)][_0x48e4b0(0x284)](workspaceId));[_0x48e4b0(0x247)]=new WorkspaceChangeService(this[_0x48e4b0(0x23a)]);[_0x48e4b0(0x280)];[_0x48e4b0(0x21b)];[_0x48e4b0(0x2ae)]=new RecentRunProjectionService(message=>this[_0x48e4b0(0x1f3)](_0x48e4b0(0x23b),message));[_0x48e4b0(0x291)]=new NodeRuntimeState(()=>this[_0x48e4b0(0x2d5)]?.[_0x48e4b0(0x219)]??_0x48e4b0(0x360),workspaceId=>this[_0x48e4b0(0x21b)]?.[_0x48e4b0(0x22d)](workspaceId),Date[_0x48e4b0(0x28c)],(run,session,userMessage)=>this[_0x48e4b0(0x2ae)][_0x48e4b0(0x267)](run,session,userMessage));[_0x48e4b0(0x277)]=new NodeMetrics();[_0x48e4b0(0x24b)]=new RunEventService({'runtime':this[_0x48e4b0(0x291)],'metrics':this[_0x48e4b0(0x277)],'state':this[_0x48e4b0(0x2ec)],'isBootstrapSession':sessionId=>this[_0x48e4b0(0x2a8)][_0x48e4b0(0x2f1)][_0x48e4b0(0x23e)](sessionId),'presentSession':session=>this[_0x48e4b0(0x2f5)][_0x48e4b0(0x303)](session),'rejectBootstrap':(sessionId,code)=>this[_0x48e4b0(0x2a8)][_0x48e4b0(0x241)](sessionId,code),'emitWorkbench':(category,payload)=>{const _0x5e85f4=_0x48e4b0;if(category===_0x5e85f4(0x1f6)&&isPlainRecord(payload)&&_0x5e85f4(0x2bc)in payload)this[_0x5e85f4(0x231)](payload[_0x5e85f4(0x2bc)]);else this[_0x5e85f4(0x2a1)](category,payload);},'cleanupAttachments':runId=>this[_0x48e4b0(0x22f)][_0x48e4b0(0x213)](runId),'expireImages':runId=>this[_0x48e4b0(0x22f)][_0x48e4b0(0x258)](runId),'scheduleContextRefresh':sessionId=>this[_0x48e4b0(0x20a)][_0x48e4b0(0x340)](sessionId),'refreshWorkspaceSessions':workspaceId=>this[_0x48e4b0(0x280)][_0x48e4b0(0x32a)](workspaceId,_0x48e4b0(0x200)),'dispatchQueue':async(sessionId,delayMs=0x2*-0xf+0xd35+0x3*-0x45d)=>{const _0x2bb2ca=_0x48e4b0;if(this[_0x2bb2ca(0x2a3)][_0x2bb2ca(0x2e6)]())return;if(delayMs>0x21ac+0x12b5+-0x3461){this[_0x2bb2ca(0x2b8)][_0x2bb2ca(0x340)](sessionId,delayMs);return;}await this[_0x2bb2ca(0x2b8)][_0x2bb2ca(0x349)](sessionId);},'executionStarted':executionId=>this[_0x48e4b0(0x2b8)][_0x48e4b0(0x2df)](executionId),'executionTerminating':(executionId,status)=>{const _0x14623f=_0x48e4b0,pending=this[_0x14623f(0x2b8)][_0x14623f(0x2e6)](executionId);if(pending?.[_0x14623f(0x32f)]===undefined)return;const started=this[_0x14623f(0x2b8)][_0x14623f(0x331)](executionId),blocked=this[_0x14623f(0x309)][_0x14623f(0x24e)](pending[_0x14623f(0x325)],status===_0x14623f(0x214));if(blocked){this[_0x14623f(0x25a)](pending[_0x14623f(0x325)]),this[_0x14623f(0x2b8)][_0x14623f(0x2c0)](pending[_0x14623f(0x325)]);return;}if(status!==_0x14623f(0x214)||started)return;this[_0x14623f(0x25a)](pending[_0x14623f(0x325)]);const retry={'sessionId':pending[_0x14623f(0x325)],'timer':setTimeout(()=>{const _0x4769ac=_0x14623f;this[_0x4769ac(0x250)][_0x4769ac(0x2e4)](retry[_0x4769ac(0x325)]);const mission=this[_0x4769ac(0x309)][_0x4769ac(0x22e)](retry[_0x4769ac(0x325)]);if(mission?.[_0x4769ac(0x224)]!==_0x4769ac(0x2c2)||mission['id']!==pending[_0x4769ac(0x32f)]?.['id']||mission[_0x4769ac(0x310)]!==pending[_0x4769ac(0x32f)][_0x4769ac(0x310)])return;void this[_0x4769ac(0x2ce)][_0x4769ac(0x34a)]({'sessionId':retry[_0x4769ac(0x325)],'content':this[_0x4769ac(0x309)][_0x4769ac(0x30d)](retry[_0x4769ac(0x325)],_0x4769ac(0x238)),'deliveryIntent':_0x4769ac(0x320),'mission':{'id':mission['id'],'revision':mission[_0x4769ac(0x310)]},'secretEnvironment':pending[_0x4769ac(0x2b1)],...pending[_0x4769ac(0x2d3)]===undefined?{}:{'personalInstructions':pending[_0x4769ac(0x2d3)]}})[_0x4769ac(0x251)](()=>undefined);},-0x681e+0x1a2f*0x2+0x6e58)};this[_0x14623f(0x250)][_0x14623f(0x260)](pending[_0x14623f(0x325)],retry),retry[_0x14623f(0x2cc)][_0x14623f(0x1fc)]();},'releaseExecution':executionId=>{const _0x5c5043=_0x48e4b0;this[_0x5c5043(0x32c)][_0x5c5043(0x286)](executionId),this[_0x5c5043(0x2b8)][_0x5c5043(0x342)](executionId);}});[_0x48e4b0(0x35b)]=new NativeSessionWatchService({'resolve':async sessionId=>this[_0x48e4b0(0x291)][_0x48e4b0(0x227)](sessionId)??this[_0x48e4b0(0x2eb)][_0x48e4b0(0x24a)](sessionId),'managedActive':session=>hasManagedActiveRun(this[_0x48e4b0(0x291)],session),'suspended':sessionId=>this[_0x48e4b0(0x30c)][_0x48e4b0(0x2f9)](sessionId),'refreshActivity':session=>this[_0x48e4b0(0x315)][_0x48e4b0(0x288)](session),'present':session=>this[_0x48e4b0(0x2f5)][_0x48e4b0(0x303)](session),'readPage':(session,limit)=>this[_0x48e4b0(0x315)][_0x48e4b0(0x26c)](session,{'limit':limit}),'readHistoryPage':(session,limit)=>this[_0x48e4b0(0x315)][_0x48e4b0(0x1f2)](session,{'limit':limit}),'convergePage':convergeConversationWatchPage,'composeRuntimePage':composeConversationRuntimePage,'projectInitialPage':(session,page,_unit,limit)=>{const _0x50dd19=_0x48e4b0,context=this[_0x50dd19(0x20a)][_0x50dd19(0x28d)](session['id']);return this[_0x50dd19(0x20a)][_0x50dd19(0x340)](session),{'kind':_0x50dd19(0x307),'sequence':this[_0x50dd19(0x2b3)][_0x50dd19(0x275)](),'session':this[_0x50dd19(0x2f5)][_0x50dd19(0x303)](session),'runs':this[_0x50dd19(0x291)][_0x50dd19(0x27f)](session['id']),'queue':this[_0x50dd19(0x33e)][_0x50dd19(0x28d)](session['id']),'context':context,'conversation':this[_0x50dd19(0x2e7)][_0x50dd19(0x2d8)](session,page,limit)};},'emitSession':session=>this[_0x48e4b0(0x33d)]({'session':session}),'emitPage':(session,page)=>this[_0x48e4b0(0x255)](_0x48e4b0(0x1f6),{'sessionId':session['id'],'snapshot':this[_0x48e4b0(0x2e7)][_0x48e4b0(0x2d8)](session,page,0x208b+-0x45e*-0x6+0x317*-0x13)}),'nodeId':()=>this[_0x48e4b0(0x2d5)]?.[_0x48e4b0(0x219)]??_0x48e4b0(0x360),'nodeGeneration':()=>this[_0x48e4b0(0x2be)],'emitWatchEvent':payload=>this[_0x48e4b0(0x1f3)](_0x48e4b0(0x2ad),payload),'log':nodeLog});constructor(_0x5c2ede={}){const _0xb2711=_0x48e4b0;this[_0xb2711(0x2d5)]=_0x5c2ede[_0xb2711(0x2d5)],this[_0xb2711(0x201)]=_0x5c2ede[_0xb2711(0x201)],this[_0xb2711(0x217)]=_0x5c2ede[_0xb2711(0x217)]??CLAUDE_APPROVAL_TIMEOUT_MS,this[_0xb2711(0x32b)]=_0x5c2ede[_0xb2711(0x2e2)]!==undefined,this[_0xb2711(0x2e2)]=_0x5c2ede[_0xb2711(0x2e2)]??unavailableCapabilities(),this[_0xb2711(0x2a3)]=new NodeUpgradeCoordinator(()=>{const _0x291ae6=_0xb2711;if(this[_0x291ae6(0x2d5)]===undefined)throw new Error(_0x291ae6(0x312));return nodeUpgradeRequestPath(nodeDatabasePath(this[_0x291ae6(0x2d5)],this[_0x291ae6(0x201)]));},()=>this[_0xb2711(0x2ec)][_0xb2711(0x2c2)][_0xb2711(0x257)],_0x25e4ef=>{const _0x26a9e7=_0xb2711;this[_0x26a9e7(0x2e2)]={...this[_0x26a9e7(0x2e2)],'metadata':upgradeMetadata(this[_0x26a9e7(0x2e2)][_0x26a9e7(0x2b6)],_0x25e4ef)},this[_0x26a9e7(0x2f7)]?.[_0x26a9e7(0x1f3)](_0x26a9e7(0x2e2),this[_0x26a9e7(0x2e2)]);},_0x5c2ede[_0xb2711(0x357)]??(()=>{const _0x2bf786=_0xb2711;this[_0x2bf786(0x2ba)](),setImmediate(()=>process[_0x2bf786(0x20b)](-0x151d+-0x5b3*0x4+0x2c34));})),this[_0xb2711(0x2e2)]={...this[_0xb2711(0x2e2)],'metadata':upgradeMetadata(this[_0xb2711(0x2e2)][_0xb2711(0x2b6)],this[_0xb2711(0x2a3)][_0xb2711(0x28d)]())};const _0x383a4e=_0x5c2ede[_0xb2711(0x345)]??detectCapabilitiesAsync;this[_0xb2711(0x345)]=async()=>{const _0x2a46c6=_0xb2711,_0x3ecc41=await _0x383a4e();return{..._0x3ecc41,'metadata':upgradeMetadata(_0x3ecc41[_0x2a46c6(0x2b6)],this[_0x2a46c6(0x2a3)][_0x2a46c6(0x28d)]())};},this[_0xb2711(0x2e3)]=_0x5c2ede[_0xb2711(0x2e3)]??!![],this[_0xb2711(0x243)]=_0x5c2ede[_0xb2711(0x243)]===undefined?undefined:new FakeTestRunner(_0x5c2ede[_0xb2711(0x243)]),this[_0xb2711(0x1f8)]=_0x5c2ede[_0xb2711(0x1f8)],this[_0xb2711(0x22f)]=new RunAttachmentService(_0x4f348a=>this[_0xb2711(0x206)][_0xb2711(0x2b5)](_0x4f348a[_0xb2711(0x2c5)])[_0xb2711(0x2cd)](_0x4f348a)),this[_0xb2711(0x300)]=new CodexRunner(_0x5c2ede[_0xb2711(0x300)],_0x5c2ede[_0xb2711(0x210)]),this[_0xb2711(0x228)]=new CodexManagedRunController(this[_0xb2711(0x300)],{'available':()=>this[_0xb2711(0x2e2)][_0xb2711(0x27b)][_0xb2711(0x26f)],'intercepted':()=>this[_0xb2711(0x243)]!==undefined,'active':this[_0xb2711(0x2ec)][_0xb2711(0x2c2)],'addActive':_0x5e0323=>this[_0xb2711(0x2ec)][_0xb2711(0x2c2)][_0xb2711(0x35f)](_0x5e0323),'removeActive':_0x23c560=>this[_0xb2711(0x2ec)][_0xb2711(0x2c2)][_0xb2711(0x2e4)](_0x23c560),'adopt':_0x2fc030=>this[_0xb2711(0x291)][_0xb2711(0x1eb)](_0x2fc030),'session':_0xf53a9f=>this[_0xb2711(0x291)][_0xb2711(0x227)](_0xf53a9f),'runStatus':_0x539862=>this[_0xb2711(0x291)][_0xb2711(0x359)](_0x539862)?.[_0xb2711(0x224)],'run':_0x2d2474=>this[_0xb2711(0x291)][_0xb2711(0x359)](_0x2d2474),'interrupted':_0x43c1eb=>this[_0xb2711(0x2ec)][_0xb2711(0x2bf)][_0xb2711(0x23e)](_0x43c1eb),'parseAttachments':parseRunnerImageAttachments,'materialize':(_0x12e57d,_0x5ac9fa)=>this[_0xb2711(0x22f)][_0xb2711(0x2ea)](_0x12e57d,_0x5ac9fa),'completeCancelled':_0x5373a6=>this[_0xb2711(0x236)][_0xb2711(0x203)](_0x5373a6),'promoteSession':(_0x9b0c58,_0x2ea0c2)=>this[_0xb2711(0x2a8)][_0xb2711(0x31c)](_0x9b0c58,_0x2ea0c2),'send':(_0x56de63,_0x39ebaf)=>this[_0xb2711(0x1f3)](_0x56de63,_0x39ebaf),'emit':(_0x150e38,_0x449649,_0x1ae856,_0x2c7f56)=>this[_0xb2711(0x2e5)][_0xb2711(0x2fa)](_0x150e38,_0x449649,_0x1ae856,_0x2c7f56),'cancel':(_0x24c200,_0x13a291,_0x1d3664,_0xf4a964,_0x10180f)=>this[_0xb2711(0x236)][_0xb2711(0x222)](_0x24c200,_0x13a291,_0x1d3664,_0xf4a964,_0x10180f),'createApproval':_0x1d4830=>this[_0xb2711(0x291)][_0xb2711(0x341)](_0x1d4830),'publishApproval':_0x3fc4ec=>this[_0xb2711(0x2e5)][_0xb2711(0x20f)](_0x3fc4ec),'emitItem':(_0x5e25d0,_0x29835f)=>this[_0xb2711(0x211)](_0x5e25d0,_0x29835f),'appendImages':(_0x210e08,_0x56aa35)=>this[_0xb2711(0x22f)][_0xb2711(0x208)](_0x210e08,_0x56aa35[_0xb2711(0x361)](isRunnerImageAttachment)),'syncTitle':(_0x27f3a9,_0x46c6dd,_0x20cebf)=>this[_0xb2711(0x29b)][_0xb2711(0x279)](_0x27f3a9,_0x46c6dd,_0x20cebf),'commandState':(_0x2ea46a,_0xed5666)=>this[_0xb2711(0x253)][_0xb2711(0x22e)](_0x2ea46a,_0xed5666),'setCommandState':(_0x31599c,_0x56df5e)=>this[_0xb2711(0x253)][_0xb2711(0x260)](_0x31599c,_0x56df5e),'clearCommandState':(_0x257f67,_0x28ec09)=>this[_0xb2711(0x253)][_0xb2711(0x31f)](_0x257f67,_0x28ec09),'commandStates':_0x43f93f=>this[_0xb2711(0x253)][_0xb2711(0x256)](_0x43f93f),'hasActiveSessionLease':_0x45bc04=>this[_0xb2711(0x291)][_0xb2711(0x33b)](_0x45bc04),'fast':_0xbe13fc=>this[_0xb2711(0x31a)](_0xb2711(0x1e9),{'runner':_0xb2711(0x27b),'commandId':_0xb2711(0x285),'input':_0xbe13fc})}),this[_0xb2711(0x300)][_0xb2711(0x2cf)](_0x5a0d84=>this[_0xb2711(0x228)][_0xb2711(0x20d)](_0x5a0d84)),this[_0xb2711(0x301)]=new ClaudeCodeRunner(_0x5c2ede[_0xb2711(0x301)]),this[_0xb2711(0x266)]=new OpenCodeRunner(_0x5c2ede[_0xb2711(0x266)]),this[_0xb2711(0x34d)]=new OpenCodeManagedRunController(this[_0xb2711(0x266)],{'intercepted':()=>this[_0xb2711(0x243)]!==undefined,'active':this[_0xb2711(0x2ec)][_0xb2711(0x2c2)],'parseAttachments':parseRunnerImageAttachments,'persistAttachments':(_0xbd73d2,_0x1bf6c2,_0x17e014)=>this[_0xb2711(0x22f)][_0xb2711(0x347)](_0xbd73d2,_0x1bf6c2+_0xb2711(0x2bb),_0x17e014),'emit':(_0x33d7b1,_0x22fd0a,_0x395c1d,_0x672b4b)=>this[_0xb2711(0x2e5)][_0xb2711(0x2fa)](_0x33d7b1,_0x22fd0a,_0x395c1d,_0x672b4b),'emitItem':(_0x4554ad,_0x2a6787)=>this[_0xb2711(0x211)](_0x4554ad,_0x2a6787),'adopt':_0x30d6ac=>this[_0xb2711(0x291)][_0xb2711(0x1eb)](_0x30d6ac),'run':_0x2af4f1=>{const _0x4755ad=_0xb2711,_0x4e419b=this[_0x4755ad(0x291)][_0x4755ad(0x359)](_0x2af4f1);if(_0x4e419b===undefined)throw new Error(_0x4755ad(0x202));return _0x4e419b;},'hasActiveSessionLease':_0x40c091=>this[_0xb2711(0x291)][_0xb2711(0x33b)](_0x40c091),'promote':(_0x4aa323,_0x32c7ad)=>this[_0xb2711(0x2a8)][_0xb2711(0x31c)](_0x4aa323,_0x32c7ad),'rememberNative':(_0x2629ef,_0x43ac3e)=>this[_0xb2711(0x29b)][_0xb2711(0x338)](_0x2629ef,_0x43ac3e),'send':(_0x6cc73e,_0x33200b)=>this[_0xb2711(0x1f3)](_0x6cc73e,_0x33200b),'createApproval':_0x387613=>this[_0xb2711(0x291)][_0xb2711(0x341)](_0x387613),'expireApproval':_0x422e96=>{const _0x499f3e=_0xb2711;this[_0x499f3e(0x291)][_0x499f3e(0x31b)](_0x422e96);},'publishApproval':_0x4923f8=>this[_0xb2711(0x2e5)][_0xb2711(0x20f)](_0x4923f8),'commandState':(_0x162e4c,_0x4c6a8c)=>this[_0xb2711(0x253)][_0xb2711(0x22e)](_0x162e4c,_0x4c6a8c),'setCommandState':(_0x4a6a5d,_0x4ab44d)=>this[_0xb2711(0x253)][_0xb2711(0x260)](_0x4a6a5d,_0x4ab44d),'clearCommandState':(_0x2c7105,_0x3b8d40)=>this[_0xb2711(0x253)][_0xb2711(0x31f)](_0x2c7105,_0x3b8d40),'commandStates':_0x2bba1d=>this[_0xb2711(0x253)][_0xb2711(0x256)](_0x2bba1d)},this[_0xb2711(0x217)]),this[_0xb2711(0x348)]=new ClaudeManagedRunController(this[_0xb2711(0x301)],{'intercepted':()=>this[_0xb2711(0x243)]!==undefined,'active':this[_0xb2711(0x2ec)][_0xb2711(0x2c2)],'parseAttachments':parseRunnerImageAttachments,'emit':(_0x13c559,_0x301a7f,_0x1a89e4,_0x476c29)=>this[_0xb2711(0x2e5)][_0xb2711(0x2fa)](_0x13c559,_0x301a7f,_0x1a89e4,_0x476c29),'adopt':_0x54e5ae=>this[_0xb2711(0x291)][_0xb2711(0x1eb)](_0x54e5ae),'run':_0x275b0a=>this[_0xb2711(0x291)][_0xb2711(0x359)](_0x275b0a),'hasActiveSessionLease':_0x4f206f=>this[_0xb2711(0x291)][_0xb2711(0x33b)](_0x4f206f),'session':_0x15dcaf=>this[_0xb2711(0x291)][_0xb2711(0x227)](_0x15dcaf),'completeCancelled':_0x18e7ad=>this[_0xb2711(0x236)][_0xb2711(0x203)](_0x18e7ad),'requestUserInput':(_0x8ae7f6,_0x10a638,_0x13615b)=>this[_0xb2711(0x236)][_0xb2711(0x294)](_0x8ae7f6,_0x10a638,_0x13615b),'requestApproval':(_0x21621d,_0x4b2a01,_0x1dcd42)=>this[_0xb2711(0x236)][_0xb2711(0x272)](_0x21621d,_0x4b2a01,_0x1dcd42),'rememberNative':(_0x32760c,_0xfe3b77)=>this[_0xb2711(0x29b)][_0xb2711(0x338)](_0x32760c,_0xfe3b77),'promote':(_0x25ed7c,_0x4f8471)=>this[_0xb2711(0x2a8)][_0xb2711(0x31c)](_0x25ed7c,_0x4f8471),'send':(_0xb6d522,_0x1b6b49)=>this[_0xb2711(0x1f3)](_0xb6d522,_0x1b6b49),'emitItem':(_0x4a8352,_0xeea816)=>this[_0xb2711(0x211)](_0x4a8352,_0xeea816),'syncTitle':(_0x3d9443,_0x3b4766,_0x1d4d0f)=>this[_0xb2711(0x29b)][_0xb2711(0x279)](_0x3d9443,_0x3b4766,_0x1d4d0f),'setChannelToken':(_0x3d2068,_0x19cb35)=>this[_0xb2711(0x291)][_0xb2711(0x226)](_0x3d2068,_0x19cb35),'commandState':(_0x2a09b6,_0x240644)=>this[_0xb2711(0x253)][_0xb2711(0x22e)](_0x2a09b6,_0x240644),'setCommandState':(_0x1130aa,_0x252e4d)=>this[_0xb2711(0x253)][_0xb2711(0x260)](_0x1130aa,_0x252e4d),'clearCommandState':(_0x3a105b,_0x25bb75)=>this[_0xb2711(0x253)][_0xb2711(0x31f)](_0x3a105b,_0x25bb75),'commandStates':_0x58c803=>this[_0xb2711(0x253)][_0xb2711(0x256)](_0x58c803)}),this[_0xb2711(0x206)]=new RunnerRegistry([this[_0xb2711(0x266)],this[_0xb2711(0x300)],this[_0xb2711(0x301)],...this[_0xb2711(0x243)]===undefined?[]:[this[_0xb2711(0x243)]]]),this[_0xb2711(0x29b)]=new ManagedRunnerSessionService(this[_0xb2711(0x291)],this[_0xb2711(0x206)],_0x423204=>this[_0xb2711(0x33d)]({'session':this[_0xb2711(0x2f5)][_0xb2711(0x303)](_0x423204)})),this[_0xb2711(0x236)]=new RunnerInteractionService({'runtime':this[_0xb2711(0x291)],'state':this[_0xb2711(0x2ec)],'codex':()=>this[_0xb2711(0x300)],'claude':()=>this[_0xb2711(0x301)],'runners':this[_0xb2711(0x206)],'emitRun':(_0x4e2cd3,_0x17eb8c,_0x1d2745,_0x191c1f)=>this[_0xb2711(0x2e5)][_0xb2711(0x2fa)](_0x4e2cd3,_0x17eb8c,_0x1d2745,_0x191c1f),'emitItem':(_0x393938,_0x5846cc)=>this[_0xb2711(0x211)](_0x393938,_0x5846cc),'approvalTimeoutMs':this[_0xb2711(0x217)],'publishApproval':_0x4205d8=>this[_0xb2711(0x2e5)][_0xb2711(0x20f)](_0x4205d8)}),this[_0xb2711(0x322)]=new RunnerChannelMessageService({'interactions':this[_0xb2711(0x236)],'send':(_0x5dd338,_0x34be62,_0x1ebce1)=>this[_0xb2711(0x1f3)](_0x5dd338,_0x34be62,_0x1ebce1)}),this[_0xb2711(0x2f5)]=new SessionPresentationService({'database':()=>this[_0xb2711(0x21b)],'runtime':this[_0xb2711(0x291)],'commands':this[_0xb2711(0x253)],'runners':this[_0xb2711(0x206)],'capabilities':()=>this[_0xb2711(0x2e2)],'hasManagedActiveRun':_0x15f54e=>hasManagedActiveRun(this[_0xb2711(0x291)],_0x15f54e),'externalActivity':_0x3468d5=>this[_0xb2711(0x292)][_0xb2711(0x25b)][_0xb2711(0x22e)](_0x3468d5),'projectionForNative':_0x17a0f7=>this[_0xb2711(0x2eb)][_0xb2711(0x204)](_0x17a0f7)}),this[_0xb2711(0x2eb)]=new NativeSessionProjectionService({'database':()=>this[_0xb2711(0x21b)],'nodeId':()=>this[_0xb2711(0x2d5)]?.[_0xb2711(0x219)]??_0xb2711(0x316),'runtime':this[_0xb2711(0x291)],'runners':this[_0xb2711(0x206)],'capabilities':()=>this[_0xb2711(0x2e2)],'state':this[_0xb2711(0x292)],'commands':this[_0xb2711(0x253)],'present':_0x3b3d6b=>this[_0xb2711(0x2f5)][_0xb2711(0x303)](_0x3b3d6b)}),this[_0xb2711(0x315)]=new ConversationHistoryService({'runtime':this[_0xb2711(0x291)],'runners':this[_0xb2711(0x206)],'capabilities':()=>this[_0xb2711(0x2e2)],'attachments':this[_0xb2711(0x22f)],'snapshotSequence':()=>this[_0xb2711(0x2b3)][_0xb2711(0x275)](),'hasManagedActiveRun':_0xfefb85=>hasManagedActiveRun(this[_0xb2711(0x291)],_0xfefb85),'setExternalActivity':(_0x809e91,_0x204a95)=>this[_0xb2711(0x292)][_0xb2711(0x25b)][_0xb2711(0x260)](_0x809e91,_0x204a95)}),this[_0xb2711(0x2e7)]=new ConversationSegmentService((_0x13543c,_0x4e769c)=>this[_0xb2711(0x315)][_0xb2711(0x26c)](_0x13543c,_0x4e769c)),this[_0xb2711(0x20a)]=new SessionContextService({'runners':this[_0xb2711(0x206)],'session':_0x28942e=>this[_0xb2711(0x291)][_0xb2711(0x227)](_0x28942e),'stopped':()=>this[_0xb2711(0x2cb)],'publish':_0x1e5e20=>this[_0xb2711(0x33d)](_0x1e5e20)}),this[_0xb2711(0x265)]=new RunWorkbenchService({'runtime':this[_0xb2711(0x291)],'readImage':async(_0x26849f,_0x4a3d0f)=>this[_0xb2711(0x22f)][_0xb2711(0x26c)](_0x26849f,_0x4a3d0f)??await this[_0xb2711(0x22f)][_0xb2711(0x273)](_0x26849f,_0x4a3d0f),'respondUserInput':(_0x562cf9,_0x4c9a0d,_0xeca9c7)=>this[_0xb2711(0x236)][_0xb2711(0x351)](_0x562cf9,_0x4c9a0d,_0xeca9c7),'pauseQueue':_0x284448=>this[_0xb2711(0x33e)][_0xb2711(0x1fd)](_0x284448),'emitRun':(_0x4ec1c0,_0x34b451,_0x178d1e,_0x4d9ef1)=>this[_0xb2711(0x2e5)][_0xb2711(0x2fa)](_0x4ec1c0,_0x34b451,_0x178d1e,_0x4d9ef1),'control':(_0x2c3d82,_0x13d04b)=>this[_0xb2711(0x295)][_0xb2711(0x223)](JSON[_0xb2711(0x244)](createEnvelope(_0x2c3d82,_0x13d04b))),'markInterrupted':_0x4f2f50=>this[_0xb2711(0x2ec)][_0xb2711(0x2bf)][_0xb2711(0x35f)](_0x4f2f50)}),this[_0xb2711(0x2c3)]=new SessionQueryService({'runtime':this[_0xb2711(0x291)],'runners':this[_0xb2711(0x206)],'resolve':_0x3ec513=>this[_0xb2711(0x2eb)][_0xb2711(0x276)](_0x3ec513),'present':_0x413526=>this[_0xb2711(0x2f5)][_0xb2711(0x303)](_0x413526),'history':(_0x5ef9a4,_0xa1487f)=>this[_0xb2711(0x315)][_0xb2711(0x26c)](_0x5ef9a4,_0xa1487f),'segments':(_0xe43b74,_0x45db13)=>this[_0xb2711(0x2e7)][_0xb2711(0x26c)](_0xe43b74,_0x45db13),'context':this[_0xb2711(0x20a)],'discover':(_0x43e47d,_0xc7ce4)=>this[_0xb2711(0x2eb)][_0xb2711(0x26a)](_0x43e47d,_0xc7ce4),'workspaceIdForCwd':_0x12ef8a=>this[_0xb2711(0x21b)]?.[_0xb2711(0x27a)]()[_0xb2711(0x33c)](_0x4fabb4=>_0x4fabb4[_0xb2711(0x28e)]===_0x12ef8a)?.['id']}),this[_0xb2711(0x2b8)]=new ContinuousRunCoordinator({'runtime':this[_0xb2711(0x291)],'emitQueue':(_0x18596d,_0x5b89e3)=>this[_0xb2711(0x2e5)][_0xb2711(0x264)](_0x18596d,_0x5b89e3),'clearImages':_0x58a3a2=>this[_0xb2711(0x22f)][_0xb2711(0x31f)](_0x58a3a2),'cleanupAttachments':_0xa2bb7f=>this[_0xb2711(0x22f)][_0xb2711(0x213)](_0xa2bb7f),'migrateAssets':(_0x5c070c,_0xbbf4cd)=>this[_0xb2711(0x22f)][_0xb2711(0x232)](_0x5c070c,_0xbbf4cd),'emitRun':(_0x367974,_0x392b7a,_0x31776a,_0x22451c)=>this[_0xb2711(0x2e5)][_0xb2711(0x2fa)](_0x367974,_0x392b7a,_0x31776a,_0x22451c),'emitConversation':_0x2a15da=>this[_0xb2711(0x231)](_0x2a15da),'control':(_0x4ea1a9,_0x4b7a53)=>this[_0xb2711(0x295)][_0xb2711(0x223)](JSON[_0xb2711(0x244)](createEnvelope(_0x4ea1a9,_0x4b7a53))),'stopped':()=>this[_0xb2711(0x2cb)],'markInterrupted':_0x1147f1=>this[_0xb2711(0x2ec)][_0xb2711(0x2bf)][_0xb2711(0x35f)](_0x1147f1),'mcps':_0x15d9b6=>this[_0xb2711(0x21b)]?.[_0xb2711(0x2a2)](_0x15d9b6)??[],'afterExecutionStarted':async _0x438c00=>{const _0x23a492=_0xb2711;if(_0x438c00[_0x23a492(0x32f)]===undefined)return;const _0x184ebf=this[_0x23a492(0x309)][_0x23a492(0x22e)](_0x438c00[_0x23a492(0x325)]);if(_0x184ebf?.[_0x23a492(0x224)]!==_0x23a492(0x2c2)||_0x184ebf['id']!==_0x438c00[_0x23a492(0x32f)]['id']||_0x184ebf[_0x23a492(0x310)]!==_0x438c00[_0x23a492(0x32f)][_0x23a492(0x310)])return;this[_0x23a492(0x309)][_0x23a492(0x281)](_0x438c00[_0x23a492(0x325)]),await this[_0x23a492(0x2ce)][_0x23a492(0x34a)]({'sessionId':_0x438c00[_0x23a492(0x325)],'content':this[_0x23a492(0x309)][_0x23a492(0x30d)](_0x438c00[_0x23a492(0x325)],_0x23a492(0x238)),'deliveryIntent':_0x23a492(0x2a5),'mission':{'id':_0x184ebf['id'],'revision':_0x184ebf[_0x23a492(0x310)]},'secretEnvironment':_0x438c00[_0x23a492(0x2b1)],..._0x438c00[_0x23a492(0x2d3)]===undefined?{}:{'personalInstructions':_0x438c00[_0x23a492(0x2d3)]}});},'missionMcp':async _0x243c92=>{const _0x52944e=_0xb2711;if(_0x243c92[_0x52944e(0x32f)]===undefined)throw new Error(_0x52944e(0x23c));const _0x508e58=await this[_0x52944e(0x32c)][_0x52944e(0x313)]({'executionId':_0x243c92[_0x52944e(0x1fe)],'sessionId':_0x243c92[_0x52944e(0x325)],'missionId':_0x243c92[_0x52944e(0x32f)]['id'],'revision':_0x243c92[_0x52944e(0x32f)][_0x52944e(0x310)]});return{'installation':{'targetKind':_0x52944e(0x2b7),'targetId':_0x243c92[_0x52944e(0x287)],'catalogEntryId':_0x52944e(0x350),'serverName':_0x52944e(0x2a9),'displayName':_0x52944e(0x235),'version':_0x52944e(0x24d),'enabled':!![],'runtime':{'transport':_0x52944e(0x21d),'url':_0x52944e(0x239),'headers':{}},'configuration':_0x508e58[_0x52944e(0x313)],'installedAt':Date[_0x52944e(0x28c)](),..._0x508e58[_0x52944e(0x313)]},'secrets':_0x508e58[_0x52944e(0x298)]};}}),this[_0xb2711(0x33e)]=new WorkspaceQueueWorkbenchService({'runtime':this[_0xb2711(0x291)],'coordinator':this[_0xb2711(0x2b8)],'emit':(_0x2018c2,_0x4255fd)=>this[_0xb2711(0x2e5)][_0xb2711(0x264)](_0x2018c2,_0x4255fd),'prepareInput':(_0x2766a5,_0x31a36b,_0x27311c)=>this[_0xb2711(0x206)][_0xb2711(0x2b5)](_0x2766a5)[_0xb2711(0x2c1)](_0x31a36b,_0x27311c)}),this[_0xb2711(0x2a8)]=new SessionIdentityService({'runtime':this[_0xb2711(0x291)],'persist':(_0x45d2d0,_0x5fcb67)=>{const _0x50e7b0=_0xb2711;if(_0x45d2d0[_0x50e7b0(0x28f)]===null||_0x45d2d0[_0x50e7b0(0x249)]===null||_0x45d2d0[_0x50e7b0(0x220)]===null)return;this[_0x50e7b0(0x21b)]?.[_0x50e7b0(0x2d7)]({'runner':_0x45d2d0[_0x50e7b0(0x2c5)],'externalSessionId':_0x5fcb67,'workspaceId':_0x45d2d0[_0x50e7b0(0x287)],'model':_0x45d2d0[_0x50e7b0(0x28f)],'effort':_0x45d2d0[_0x50e7b0(0x249)],'access':_0x45d2d0[_0x50e7b0(0x220)]});},'migrateCommands':(_0x19fcd4,_0x14ea0e)=>this[_0xb2711(0x253)][_0xb2711(0x297)](_0x19fcd4,_0x14ea0e),'migrateMission':(_0x4c40c8,_0x3a6541)=>{const _0x5dec29=_0xb2711;this[_0x5dec29(0x309)][_0x5dec29(0x25f)](_0x4c40c8,_0x3a6541),this[_0x5dec29(0x32c)][_0x5dec29(0x25f)](_0x4c40c8,_0x3a6541);const _0x1c5856=this[_0x5dec29(0x250)][_0x5dec29(0x22e)](_0x4c40c8);_0x1c5856!==undefined&&(this[_0x5dec29(0x250)][_0x5dec29(0x2e4)](_0x4c40c8),_0x1c5856[_0x5dec29(0x325)]=_0x3a6541,this[_0x5dec29(0x250)][_0x5dec29(0x260)](_0x3a6541,_0x1c5856));},'migrateQueue':(_0x5c4ee3,_0x585eef)=>this[_0xb2711(0x2b8)][_0xb2711(0x25f)](_0x5c4ee3,_0x585eef),'migrateRunnerState':(_0x14cf7b,_0x2819cd)=>this[_0xb2711(0x2e5)][_0xb2711(0x304)](_0x14cf7b,_0x2819cd),'emitSession':_0x1c8c3d=>this[_0xb2711(0x33d)]({'session':_0x1c8c3d}),'emitRun':_0x5b2c98=>this[_0xb2711(0x255)](_0xb2711(0x24f),{'run':_0x5b2c98}),'emitQueue':_0x1eeaab=>this[_0xb2711(0x2b8)][_0xb2711(0x306)](_0x1eeaab),'emitTurn':_0x6e2f39=>this[_0xb2711(0x231)](_0x6e2f39)}),this[_0xb2711(0x2d6)]=new SessionLifecycleService({'database':()=>{const _0x156580=_0xb2711;if(this[_0x156580(0x21b)]===undefined)throw new Error(_0x156580(0x343));return this[_0x156580(0x21b)];},'runtime':this[_0xb2711(0x291)],'runners':this[_0xb2711(0x206)],'projection':this[_0xb2711(0x2eb)],'identity':this[_0xb2711(0x2a8)],'present':_0xa77a3d=>this[_0xb2711(0x2f5)][_0xb2711(0x303)](_0xa77a3d),'emitSession':_0x113417=>this[_0xb2711(0x33d)]({'session':this[_0xb2711(0x2f5)][_0xb2711(0x303)](_0x113417)}),'execute':(_0x76882b,_0x8f256f)=>this[_0xb2711(0x31a)](_0x76882b,_0x8f256f),'interceptedSessionId':_0x329b20=>this[_0xb2711(0x243)]===undefined?undefined:_0xb2711(0x1f5)+_0x329b20}),this[_0xb2711(0x30c)]=new ExternalSessionResumeService({'runtime':this[_0xb2711(0x291)],'runners':this[_0xb2711(0x206)],'state':this[_0xb2711(0x292)],'available':_0x27ab82=>this[_0xb2711(0x206)][_0xb2711(0x2b5)](_0x27ab82)[_0xb2711(0x26f)](this[_0xb2711(0x2e2)]),'projectionFor':_0x515b1a=>this[_0xb2711(0x2eb)][_0xb2711(0x204)](_0x515b1a),'managedAliasFor':_0x3d7e99=>this[_0xb2711(0x2eb)][_0xb2711(0x334)](_0x3d7e99),'ensureConfiguration':_0x5c263b=>this[_0xb2711(0x2eb)][_0xb2711(0x271)](_0x5c263b),'configuration':_0x2b784b=>this[_0xb2711(0x2eb)][_0xb2711(0x2f2)](_0x2b784b),'workspacePath':_0x38995b=>this[_0xb2711(0x21b)]?.[_0xb2711(0x22d)](_0x38995b)?.[_0xb2711(0x28e)],'rememberNative':(_0x15750f,_0x226510)=>this[_0xb2711(0x29b)][_0xb2711(0x338)](_0x15750f,_0x226510),'stage':_0x372d94=>{const _0x3d0ae2=_0xb2711,_0x4335de=this[_0x3d0ae2(0x2eb)][_0x3d0ae2(0x2f2)](_0x372d94);return this[_0x3d0ae2(0x291)][_0x3d0ae2(0x34e)]({'workspaceId':_0x372d94[_0x3d0ae2(0x287)],'runner':_0x372d94[_0x3d0ae2(0x2c5)],'externalSessionId':_0x372d94[_0x3d0ae2(0x30e)]??_0x372d94['id'],'nativeControl':_0x3d0ae2(0x2e0),'cwd':_0x372d94[_0x3d0ae2(0x240)],'model':_0x4335de[_0x3d0ae2(0x28f)],'effort':_0x4335de[_0x3d0ae2(0x249)],'access':_0x4335de[_0x3d0ae2(0x220)],..._0x372d94[_0x3d0ae2(0x2d4)]===null?{}:{'title':_0x372d94[_0x3d0ae2(0x2d4)]}});},'resolve':_0x4e3eb2=>this[_0xb2711(0x2eb)][_0xb2711(0x276)](_0x4e3eb2)}),this[_0xb2711(0x207)]=new SessionCommandService({'runtime':this[_0xb2711(0x291)],'runners':this[_0xb2711(0x206)],'projection':this[_0xb2711(0x2eb)],'resume':this[_0xb2711(0x30c)],'profiles':()=>this[_0xb2711(0x2e9)][_0xb2711(0x26b)](),'present':_0x5ca6cd=>this[_0xb2711(0x2f5)][_0xb2711(0x303)](_0x5ca6cd),'resumeQueueAfterCommandRun':_0x15f63a=>this[_0xb2711(0x33e)][_0xb2711(0x2f3)](_0x15f63a),'beginMission':_0x3c1270=>{const _0x4876d8=_0xb2711,_0x373bd7=this[_0x4876d8(0x253)][_0x4876d8(0x22e)](_0x3c1270['id'],_0x4876d8(0x32f));if(_0x373bd7?.[_0x4876d8(0x2c2)]===!![])return{'session':this[_0x4876d8(0x2f5)][_0x4876d8(0x303)](_0x3c1270),'missionAlreadyActive':!![]};_0x373bd7!==undefined&&(this[_0x4876d8(0x309)][_0x4876d8(0x31f)](_0x3c1270['id']),this[_0x4876d8(0x253)][_0x4876d8(0x31f)](_0x3c1270['id'],_0x4876d8(0x32f)));const _0x40bc5c=this[_0x4876d8(0x27c)](_0x3c1270);return this[_0x4876d8(0x2b8)][_0x4876d8(0x324)](_0x3c1270['id']),this[_0x4876d8(0x253)][_0x4876d8(0x260)](_0x3c1270['id'],this[_0x4876d8(0x2fd)]()),this[_0x4876d8(0x255)](_0x4876d8(0x2e8),{'session':this[_0x4876d8(0x2f5)][_0x4876d8(0x303)](_0x40bc5c[_0x4876d8(0x2e8)])}),{'session':this[_0x4876d8(0x2f5)][_0x4876d8(0x303)](_0x40bc5c[_0x4876d8(0x2e8)]),'missionAccessChanged':_0x40bc5c[_0x4876d8(0x21f)]};},'mission':async({session:_0x6bfa0d,objective:_0x48170d,secretEnvironment:_0x11f9cb,personalInstructions:_0x53e7f4})=>{const _0x2b322d=_0xb2711;this[_0x2b322d(0x25a)](_0x6bfa0d['id']);const _0x28962e=this[_0x2b322d(0x27c)](_0x6bfa0d),_0x3d68d9=_0x28962e[_0x2b322d(0x2e8)],_0x4d75ca=this[_0x2b322d(0x309)][_0x2b322d(0x22e)](_0x6bfa0d['id'])?.[_0x2b322d(0x224)]===_0x2b322d(0x2c2);this[_0x2b322d(0x2b8)][_0x2b322d(0x2c0)](_0x6bfa0d['id']);const _0x367141=this[_0x2b322d(0x309)][_0x2b322d(0x289)](_0x6bfa0d['id'],_0x48170d);this[_0x2b322d(0x1ee)](_0x3d68d9,_0x367141);const _0x4a65bc=await this[_0x2b322d(0x2ce)][_0x2b322d(0x34a)]({'sessionId':_0x6bfa0d['id'],'content':this[_0x2b322d(0x309)][_0x2b322d(0x30d)](_0x6bfa0d['id'],_0x2b322d(0x289)),'deliveryIntent':_0x4d75ca?_0x2b322d(0x278):_0x2b322d(0x320),'mission':{'id':_0x367141['id'],'revision':_0x367141[_0x2b322d(0x310)]},'secretEnvironment':_0x11f9cb,..._0x53e7f4===undefined?{}:{'personalInstructions':_0x53e7f4}});return{...isPlainRecord(_0x4a65bc)?_0x4a65bc:{'result':_0x4a65bc},'missionAccessChanged':_0x28962e[_0x2b322d(0x21f)]};},'clearMission':_0x2882a=>{const _0x3648ed=_0xb2711;return this[_0x3648ed(0x25a)](_0x2882a['id']),this[_0x3648ed(0x309)][_0x3648ed(0x31f)](_0x2882a['id']),this[_0x3648ed(0x2b8)][_0x3648ed(0x2c0)](_0x2882a['id']),this[_0x3648ed(0x253)][_0x3648ed(0x31f)](_0x2882a['id'],_0x3648ed(0x32f)),this[_0x3648ed(0x255)](_0x3648ed(0x2e8),{'session':this[_0x3648ed(0x2f5)][_0x3648ed(0x303)](_0x2882a)}),{'session':this[_0x3648ed(0x2f5)][_0x3648ed(0x303)](_0x2882a),'cleared':!![]};}}),this[_0xb2711(0x2ce)]=new SessionMessageService({'runtime':this[_0xb2711(0x291)],'uploads':this[_0xb2711(0x2d2)],'attachments':this[_0xb2711(0x22f)],'commands':this[_0xb2711(0x253)],'coordinator':this[_0xb2711(0x2b8)],'runners':this[_0xb2711(0x206)],'resolve':_0x1420dd=>this[_0xb2711(0x30c)][_0xb2711(0x23f)](_0x1420dd),'present':_0x5c7a8f=>this[_0xb2711(0x2f5)][_0xb2711(0x303)](_0x5c7a8f),'emitSession':_0x27c070=>this[_0xb2711(0x33d)]({'session':this[_0xb2711(0x2f5)][_0xb2711(0x303)](_0x27c070)}),'channelToken':_0x4edf5c=>{const _0x362352=_0xb2711,_0x3883f9=this[_0x362352(0x291)][_0x362352(0x227)](_0x4edf5c);return _0x3883f9?.[_0x362352(0x34c)]??undefined;},'missionMessage':(_0x3340aa,_0x2034d9)=>{const _0x36e5b8=_0xb2711,_0x9bd649=this[_0x36e5b8(0x253)][_0x36e5b8(0x22e)](_0x3340aa['id'],_0x36e5b8(0x32f));if(_0x9bd649?.[_0x36e5b8(0x2c2)]!==!![])return undefined;const _0x3ae6aa=this[_0x36e5b8(0x309)][_0x36e5b8(0x22e)](_0x3340aa['id']);if(_0x3ae6aa?.[_0x36e5b8(0x224)]===_0x36e5b8(0x2c2))return{'runnerContent':_0x2034d9,'mission':{'id':_0x3ae6aa['id'],'revision':_0x3ae6aa[_0x36e5b8(0x310)]},'activated':![]};const _0x246dc9=this[_0x36e5b8(0x309)][_0x36e5b8(0x289)](_0x3340aa['id'],_0x2034d9);return this[_0x36e5b8(0x1ee)](_0x3340aa,_0x246dc9),{'runnerContent':this[_0x36e5b8(0x309)][_0x36e5b8(0x30d)](_0x3340aa['id'],_0x36e5b8(0x289)),'mission':{'id':_0x246dc9['id'],'revision':_0x246dc9[_0x36e5b8(0x310)]},'activated':!![]};},'prepareMissionInsertion':(_0xf75ab3,_0x3bb1fc)=>this[_0xb2711(0x2b8)][_0xb2711(0x324)](_0xf75ab3,_0x3bb1fc),'missionPreparationFailed':(_0x4b3bd2,_0x4477f9,_0x38d023)=>{const _0x15b98e=_0xb2711;if(!_0x38d023)return;const _0x1f4d69=this[_0x15b98e(0x309)][_0x15b98e(0x22e)](_0x4b3bd2['id']);if(_0x1f4d69?.['id']!==_0x4477f9['id']||_0x1f4d69[_0x15b98e(0x310)]!==_0x4477f9[_0x15b98e(0x310)])return;this[_0x15b98e(0x309)][_0x15b98e(0x31f)](_0x4b3bd2['id']),this[_0x15b98e(0x253)][_0x15b98e(0x260)](_0x4b3bd2['id'],this[_0x15b98e(0x2fd)]()),this[_0x15b98e(0x255)](_0x15b98e(0x2e8),{'session':this[_0x15b98e(0x2f5)][_0x15b98e(0x303)](_0x4b3bd2)});}}),this[_0xb2711(0x254)]=new SessionCatalogService({'database':()=>{const _0x277e05=_0xb2711;if(this[_0x277e05(0x21b)]===undefined)throw new Error(_0x277e05(0x343));return this[_0x277e05(0x21b)];},'nodeId':()=>this[_0xb2711(0x2d5)]?.[_0xb2711(0x219)]??_0xb2711(0x316),'runtime':this[_0xb2711(0x291)],'runners':this[_0xb2711(0x206)],'projection':this[_0xb2711(0x2eb)],'resume':this[_0xb2711(0x30c)],'cachedNative':()=>[...this[_0xb2711(0x292)][_0xb2711(0x263)][_0xb2711(0x2f4)]()],'cachedWorkspace':_0x2c792a=>this[_0xb2711(0x233)][_0xb2711(0x346)](_0x2c792a),'present':_0x129ba6=>this[_0xb2711(0x2f5)][_0xb2711(0x303)](_0x129ba6),'projectionForNative':_0x1f573f=>this[_0xb2711(0x2eb)][_0xb2711(0x204)](_0x1f573f),'nativeIds':_0x1a9561=>this[_0xb2711(0x2eb)][_0xb2711(0x355)](_0x1a9561),'forget':(_0x5c6435,_0x52c6e5)=>this[_0xb2711(0x2eb)][_0xb2711(0x2da)](_0x5c6435,_0x52c6e5),'refreshActivity':_0x20b3af=>this[_0xb2711(0x315)][_0xb2711(0x288)](_0x20b3af),'externalActivity':_0x344dcc=>this[_0xb2711(0x292)][_0xb2711(0x25b)][_0xb2711(0x22e)](_0x344dcc),'history':(_0xfe172b,_0x2f854a)=>this[_0xb2711(0x315)][_0xb2711(0x26c)](_0xfe172b,_0x2f854a),'emitSession':_0x5a1530=>this[_0xb2711(0x33d)]({'session':this[_0xb2711(0x2f5)][_0xb2711(0x303)](_0x5a1530)})}),this[_0xb2711(0x300)][_0xb2711(0x26d)]({'start':_0x4624cc=>this[_0xb2711(0x228)][_0xb2711(0x289)](_0x4624cc),'cancel':(_0x575319,_0x5726b5)=>{const _0x2f1d35=_0xb2711,_0x5d62db=this[_0x2f1d35(0x300)][_0x2f1d35(0x321)][_0x2f1d35(0x245)][_0x2f1d35(0x22e)](_0x575319);if(_0x5d62db?.[_0x2f1d35(0x218)]===undefined)return![];return void this[_0x2f1d35(0x236)][_0x2f1d35(0x222)](_0x575319,_0x5d62db[_0x2f1d35(0x22a)],_0x5d62db[_0x2f1d35(0x218)],_0x5d62db[_0x2f1d35(0x240)],_0x5726b5===_0x2f1d35(0x332)?_0x2f1d35(0x2d0):_0x2f1d35(0x2c9)),!![];},'decideApproval':_0x44e8ab=>this[_0xb2711(0x236)][_0xb2711(0x2b2)](_0x44e8ab[_0xb2711(0x314)],_0x44e8ab[_0xb2711(0x27d)])}),this[_0xb2711(0x301)][_0xb2711(0x26d)]({'start':_0x439d96=>this[_0xb2711(0x348)][_0xb2711(0x289)](_0x439d96),'cancel':(_0x4cfb78,_0x3833c6)=>this[_0xb2711(0x236)][_0xb2711(0x354)](_0x4cfb78,_0x3833c6),'decideApproval':_0x26b27a=>this[_0xb2711(0x236)][_0xb2711(0x2db)](_0x26b27a[_0xb2711(0x314)],_0x26b27a[_0xb2711(0x27d)])}),this[_0xb2711(0x266)][_0xb2711(0x26d)]({'start':_0x1bed61=>this[_0xb2711(0x34d)][_0xb2711(0x289)](_0x1bed61),'cancel':(_0x63a1c6,_0x234364)=>this[_0xb2711(0x34d)][_0xb2711(0x1f0)](_0x63a1c6,_0x234364),'decideApproval':_0x322e2f=>this[_0xb2711(0x34d)][_0xb2711(0x209)](_0x322e2f),'respondUserInput':(_0x1db674,_0x588ba0,_0x44763a)=>this[_0xb2711(0x34d)][_0xb2711(0x351)](_0x1db674,_0x588ba0,_0x44763a)}),this[_0xb2711(0x300)][_0xb2711(0x225)]({'execute':(_0x23d058,_0x252e6e,_0x456eee,_0x387d39)=>this[_0xb2711(0x228)][_0xb2711(0x20e)](_0x23d058,_0x252e6e,_0x456eee,_0x387d39)}),this[_0xb2711(0x301)][_0xb2711(0x225)]({'execute':(_0x2f3079,_0x20e15e,_0x5927a1,_0x25e1d4)=>this[_0xb2711(0x348)][_0xb2711(0x20e)](_0x2f3079,_0x20e15e,_0x5927a1,_0x25e1d4)}),this[_0xb2711(0x266)][_0xb2711(0x225)]({'execute':(_0x428d92,_0x5e96ff,_0x1a4e62,_0x5ce61b)=>this[_0xb2711(0x34d)][_0xb2711(0x20e)](_0x428d92,_0x5e96ff,_0x5ce61b)});const _0xe709e6=this[_0xb2711(0x243)]===undefined||this[_0xb2711(0x1f8)]===undefined?undefined:new FakeManagedRunService({'runner':this[_0xb2711(0x243)],'script':this[_0xb2711(0x1f8)],'runners':this[_0xb2711(0x206)],'runtime':this[_0xb2711(0x291)],'state':this[_0xb2711(0x2ec)],'emitRun':(_0x3ce259,_0x5370e6,_0x3d1ac0,_0x201d53)=>this[_0xb2711(0x2e5)][_0xb2711(0x2fa)](_0x3ce259,_0x5370e6,_0x3d1ac0,_0x201d53),'publishApproval':_0x36bf44=>this[_0xb2711(0x2e5)][_0xb2711(0x20f)](_0x36bf44),'disconnect':()=>this[_0xb2711(0x2f7)][_0xb2711(0x28b)](-0x235a+0xcbd+0x2647,_0xb2711(0x302))});this[_0xb2711(0x243)]?.[_0xb2711(0x26d)]({'start':_0x37b6cb=>_0xe709e6?.[_0xb2711(0x289)](_0x37b6cb),'cancel':(_0x697707,_0x4e743b)=>_0x4e743b===_0xb2711(0x332)?this[_0xb2711(0x243)]?.[_0xb2711(0x1f0)](_0x697707)??![]:this[_0xb2711(0x243)]?.[_0xb2711(0x2a0)](_0x697707)??![],'decideApproval':_0x2acb8d=>this[_0xb2711(0x243)]?.[_0xb2711(0x35e)](_0x2acb8d[_0xb2711(0x1fe)],_0x2acb8d[_0xb2711(0x314)],_0x2acb8d[_0xb2711(0x27d)])??![]}),this[_0xb2711(0x31d)]=_0x5c2ede[_0xb2711(0x31d)]??new RunnerUsageReader(),this[_0xb2711(0x21b)]=_0x5c2ede[_0xb2711(0x21b)],this[_0xb2711(0x283)]=_0x5c2ede[_0xb2711(0x283)]??new TerminalManager({'platform':this[_0xb2711(0x2e2)][_0xb2711(0x21e)]===_0xb2711(0x2ac)?_0xb2711(0x27e):_0xb2711(0x35a)}),this[_0xb2711(0x283)][_0xb2711(0x330)](_0x51485f=>this[_0xb2711(0x233)][_0xb2711(0x215)](_0x51485f)),this[_0xb2711(0x353)]=new NodeTerminalChannel({'config':()=>this[_0xb2711(0x2d5)],'controlConnected':()=>this[_0xb2711(0x2f7)][_0xb2711(0x2c6)](),'stopped':()=>this[_0xb2711(0x2cb)],'reconnect':this[_0xb2711(0x2e3)],'reconnectDelay':nextReconnectDelay,'manager':this[_0xb2711(0x283)]}),this[_0xb2711(0x2f7)]=new NodeControlChannel({'config':()=>this[_0xb2711(0x2d5)],'capabilities':()=>this[_0xb2711(0x2e2)],'stopped':()=>this[_0xb2711(0x2cb)],'reconnect':this[_0xb2711(0x2e3)],'reconnectDelay':nextReconnectDelay,'onConnecting':_0x56c709=>{const _0x533f5d=_0xb2711;this[_0x533f5d(0x277)][_0x533f5d(0x30b)](),nodeLog(_0x533f5d(0x30f),{'attempt':_0x56c709});},'onReconnectScheduled':()=>this[_0xb2711(0x277)][_0xb2711(0x2a6)](),'onMessage':_0x53f0a4=>this[_0xb2711(0x212)](_0x53f0a4),'onClose':(_0x510f7b,_0x62dcac)=>{const _0x141432=_0xb2711;this[_0x141432(0x353)][_0x141432(0x327)]();if(_0x510f7b===0x4f*-0x6b+-0x5*-0x1f2+0x26eb&&_0x62dcac===_0x141432(0x1fb))nodeLog(_0x141432(0x24c),{'message':_0x141432(0x25c)});if(_0x510f7b===0x24e*0x5+0x25a9+0x10c6*-0x2||_0x510f7b===0x24f4+0x110b+-0x3216)void this[_0x141432(0x283)][_0x141432(0x22b)]();}}),this[_0xb2711(0x295)]=new NodeControlMessageService({'config':()=>this[_0xb2711(0x2d5)],'register':(_0x144643,_0x5c119a)=>this[_0xb2711(0x2c8)][_0xb2711(0x282)](_0x144643,_0x5c119a),'connected':()=>this[_0xb2711(0x2c8)][_0xb2711(0x2c6)](),'close':(_0x3550d4,_0x50c020)=>this[_0xb2711(0x2f7)][_0xb2711(0x28b)](_0x3550d4,_0x50c020),'inspectWorkspace':_0x3f8420=>this[_0xb2711(0x233)][_0xb2711(0x2bd)](_0x3f8420),'handleNodeRequest':_0x400574=>this[_0xb2711(0x31e)][_0xb2711(0x223)](_0x400574),'reconcileRuns':_0x16dea8=>this[_0xb2711(0x2e5)][_0xb2711(0x21c)](_0x16dea8),'runners':this[_0xb2711(0x206)],'deliverSessionChannelMessage':_0x56e27d=>this[_0xb2711(0x322)][_0xb2711(0x223)](_0x56e27d),'completeUncontrolledCancellation':_0x20188d=>{const _0x36f51d=_0xb2711,_0x50f5ba=this[_0x36f51d(0x291)][_0x36f51d(0x359)](_0x20188d);if(_0x50f5ba?.[_0x36f51d(0x224)]===_0x36f51d(0x358))this[_0x36f51d(0x236)][_0x36f51d(0x203)](_0x20188d);},'send':(_0x10d69e,_0x238e59,_0xf17cc0)=>this[_0xb2711(0x1f3)](_0x10d69e,_0x238e59,_0xf17cc0)}),this[_0xb2711(0x31e)]=new NodeRequestService({'nodeId':()=>this[_0xb2711(0x2d5)]?.[_0xb2711(0x219)],'databaseAvailable':()=>this[_0xb2711(0x21b)]!==undefined,'execute':(_0x567e6c,_0x574876)=>this[_0xb2711(0x31a)](_0x567e6c,_0x574876),'send':(_0x5161b6,_0x1a0299,_0x1d601b)=>this[_0xb2711(0x1f3)](_0x5161b6,_0x1a0299,_0x1d601b)}),this[_0xb2711(0x233)]=new NodeWorkspaceCoordinator({'config':()=>this[_0xb2711(0x2d5)],'database':()=>this[_0xb2711(0x21b)],'watches':this[_0xb2711(0x35d)],'sessions':this[_0xb2711(0x25d)],'changes':this[_0xb2711(0x247)],'emit':(_0x385d20,_0x20d50e)=>void this[_0xb2711(0x280)]?.[_0xb2711(0x2ff)](_0x385d20,_0x20d50e),'send':(_0x88d295,_0x185fa2,_0xa56748)=>this[_0xb2711(0x1f3)](_0x88d295,_0x185fa2,_0xa56748)}),this[_0xb2711(0x2e5)]=new NodeRunEventBridge({'runtime':this[_0xb2711(0x291)],'state':this[_0xb2711(0x2ec)],'events':this[_0xb2711(0x24b)],'emitWorkbench':(_0x3c4a84,_0x5215c7)=>this[_0xb2711(0x2a1)](_0x3c4a84,_0x5215c7),'queues':this[_0xb2711(0x33e)],'codex':this[_0xb2711(0x300)],'claude':this[_0xb2711(0x301)],'openCode':this[_0xb2711(0x266)],'send':(_0x41824f,_0x976121,_0x505444)=>this[_0xb2711(0x1f3)](_0x41824f,_0x976121,_0x505444)}),this[_0xb2711(0x2c8)]=new NodeConnectionLifecycleService({'config':()=>this[_0xb2711(0x2d5)],'setConfig':_0x5f5c16=>this[_0xb2711(0x2d5)]=_0x5f5c16,'configPath':this[_0xb2711(0x201)],'capabilities':()=>this[_0xb2711(0x2e2)],'detectCapabilities':this[_0xb2711(0x345)],'capabilitiesProvided':this[_0xb2711(0x32b)],'stopped':()=>this[_0xb2711(0x2cb)],'setCapabilities':_0x352462=>this[_0xb2711(0x2e2)]={..._0x352462,'metadata':upgradeMetadata(_0x352462[_0xb2711(0x2b6)],this[_0xb2711(0x2a3)][_0xb2711(0x28d)]())},'control':this[_0xb2711(0x2f7)],'terminal':this[_0xb2711(0x353)],'metrics':this[_0xb2711(0x277)],'heartbeatMs':HEARTBEAT_MS,'refreshMs':CAPABILITY_REFRESH_MS,'onConnected':()=>this[_0xb2711(0x2ae)][_0xb2711(0x221)]()});const _0x5dc176=()=>{const _0x2297af=_0xb2711;if(this[_0x2297af(0x21b)]===undefined)throw new Error(_0x2297af(0x343));return this[_0x2297af(0x21b)];};this[_0xb2711(0x2e9)]=new RunnerService(_0x5dc176,()=>this[_0xb2711(0x2e2)],this[_0xb2711(0x206)],this[_0xb2711(0x31d)]),this[_0xb2711(0x2ef)]=new WorkbenchManifestService({'capabilities':()=>this[_0xb2711(0x2e2)],'runners':this[_0xb2711(0x2e9)],'terminals':this[_0xb2711(0x283)]}),this[_0xb2711(0x319)]=new TerminalService(_0x5dc176,this[_0xb2711(0x283)]),this[_0xb2711(0x2fc)]=new WorkspaceService(_0x5dc176,()=>{const _0x5f0315=_0xb2711;if(this[_0x5f0315(0x2d5)]===undefined)throw new Error(_0x5f0315(0x312));return this[_0x5f0315(0x2d5)];},this[_0xb2711(0x291)],_0x3cd79e=>{const _0x1285ba=_0xb2711;this[_0x1285ba(0x2a7)][_0x1285ba(0x2a4)](_0x3cd79e),this[_0x1285ba(0x233)][_0x1285ba(0x356)](_0x3cd79e),this[_0x1285ba(0x25d)][_0x1285ba(0x284)](_0x3cd79e),this[_0x1285ba(0x233)][_0x1285ba(0x2f8)](_0x3cd79e);}),this[_0xb2711(0x280)]=new WorkspaceWorkbenchService({'requireWorkspace':_0x4da6fc=>this[_0xb2711(0x233)][_0xb2711(0x2b5)](_0x4da6fc),'watch':this[_0xb2711(0x35d)],'files':this[_0xb2711(0x2a7)],'uploads':this[_0xb2711(0x2d2)],'changes':this[_0xb2711(0x247)],'listSessions':_0x2c2891=>this[_0xb2711(0x31a)](_0xb2711(0x229),{'workspaceId':_0x2c2891,'limit':0x14}),'invalidate':_0x1a2f33=>this[_0xb2711(0x233)][_0xb2711(0x284)](_0x1a2f33),'nodeId':()=>this[_0xb2711(0x2d5)]?.[_0xb2711(0x219)]??_0xb2711(0x360),'nodeGeneration':()=>this[_0xb2711(0x2be)],'emitWatchEvent':_0x43e6b7=>this[_0xb2711(0x1f3)](_0xb2711(0x2ad),_0x43e6b7)}),this[_0xb2711(0x248)][_0xb2711(0x1f7)](this[_0xb2711(0x2e9)][_0xb2711(0x2fe)]()),this[_0xb2711(0x248)][_0xb2711(0x1f7)](this[_0xb2711(0x319)][_0xb2711(0x2fe)]()),this[_0xb2711(0x248)][_0xb2711(0x1f7)](this[_0xb2711(0x2fc)][_0xb2711(0x2fe)]()),this[_0xb2711(0x248)][_0xb2711(0x1f7)](this[_0xb2711(0x280)][_0xb2711(0x2fe)]()),this[_0xb2711(0x248)][_0xb2711(0x1f7)](this[_0xb2711(0x265)][_0xb2711(0x2fe)]()),this[_0xb2711(0x248)][_0xb2711(0x1f7)](this[_0xb2711(0x35b)][_0xb2711(0x2fe)]()),this[_0xb2711(0x248)][_0xb2711(0x1f7)](this[_0xb2711(0x2c3)][_0xb2711(0x2fe)]()),this[_0xb2711(0x248)][_0xb2711(0x1f7)](this[_0xb2711(0x2d6)][_0xb2711(0x2fe)]()),this[_0xb2711(0x248)][_0xb2711(0x1f7)](this[_0xb2711(0x2ce)][_0xb2711(0x2fe)]()),this[_0xb2711(0x248)][_0xb2711(0x1f7)](this[_0xb2711(0x254)][_0xb2711(0x2fe)]()),this[_0xb2711(0x248)][_0xb2711(0x1f7)](this[_0xb2711(0x207)][_0xb2711(0x2fe)]()),this[_0xb2711(0x248)][_0xb2711(0x1f7)](this[_0xb2711(0x33e)][_0xb2711(0x2fe)]()),this[_0xb2711(0x248)][_0xb2711(0x1f7)](new SkillNodeOperationService(_0x5dc176,()=>{const _0x322ef4=_0xb2711;if(this[_0x322ef4(0x2d5)]===undefined)throw new Error(_0x322ef4(0x312));return this[_0x322ef4(0x2d5)];})[_0xb2711(0x2fe)]()),this[_0xb2711(0x248)][_0xb2711(0x1f7)](new McpNodeOperationService(_0x5dc176)[_0xb2711(0x2fe)]()),this[_0xb2711(0x248)][_0xb2711(0x282)](_0xb2711(0x23d),()=>({'metrics':{...this[_0xb2711(0x277)][_0xb2711(0x28d)](),'activeRuns':this[_0xb2711(0x2ec)][_0xb2711(0x2c2)][_0xb2711(0x257)],'workspaceLeases':this[_0xb2711(0x291)][_0xb2711(0x2b9)]()}})),this[_0xb2711(0x248)][_0xb2711(0x282)](_0xb2711(0x252),_0x48ad79=>this[_0xb2711(0x2a3)][_0xb2711(0x21a)](_0x48ad79)),this[_0xb2711(0x248)][_0xb2711(0x282)](_0xb2711(0x344),()=>this[_0xb2711(0x2a3)][_0xb2711(0x1f0)]()),this[_0xb2711(0x248)][_0xb2711(0x282)](_0xb2711(0x337),async()=>({'manifest':await this[_0xb2711(0x2ef)][_0xb2711(0x26c)]()}));}async[_0x48e4b0(0x289)](){const _0xc362b4=_0x48e4b0;this[_0xc362b4(0x2cb)]=![],this[_0xc362b4(0x2d5)]??=await loadNodeConfig(this[_0xc362b4(0x201)]),await this[_0xc362b4(0x2a3)][_0xc362b4(0x2ab)](resolve(dirname(nodeDatabasePath(this[_0xc362b4(0x2d5)],this[_0xc362b4(0x201)])),_0xc362b4(0x323))),await assertLocalSqlitePath(nodeDatabasePath(this[_0xc362b4(0x2d5)],this[_0xc362b4(0x201)])),this[_0xc362b4(0x21b)]??=new NodeDatabase(nodeDatabasePath(this[_0xc362b4(0x2d5)],this[_0xc362b4(0x201)]),()=>this[_0xc362b4(0x2d5)]?.[_0xc362b4(0x219)]??_0xc362b4(0x1ea)),this[_0xc362b4(0x21b)][_0xc362b4(0x290)](),this[_0xc362b4(0x2c8)][_0xc362b4(0x289)](),this[_0xc362b4(0x2f7)][_0xc362b4(0x305)]();}[_0x48e4b0(0x25a)](_0xe1cdbc){const _0xd09968=_0x48e4b0,_0x3be3a5=this[_0xd09968(0x250)][_0xd09968(0x22e)](_0xe1cdbc);if(_0x3be3a5!==undefined)clearTimeout(_0x3be3a5[_0xd09968(0x2cc)]);this[_0xd09968(0x250)][_0xd09968(0x2e4)](_0xe1cdbc);}[_0x48e4b0(0x27c)](_0x5a88ed){const _0x5d2281=_0x48e4b0,_0x333d37=missionUnrestrictedAccess(_0x5a88ed[_0x5d2281(0x2c5)]),_0xc65670=_0x5a88ed[_0x5d2281(0x220)]!==_0x333d37,_0x9b7061=_0xc65670?this[_0x5d2281(0x291)][_0x5d2281(0x299)](_0x5a88ed['id'],_0x333d37):_0x5a88ed;if(_0xc65670&&_0x9b7061[_0x5d2281(0x30e)]!==null&&_0x9b7061[_0x5d2281(0x28f)]!==null&&_0x9b7061[_0x5d2281(0x249)]!==null)this[_0x5d2281(0x21b)]?.[_0x5d2281(0x2d7)]({'runner':_0x9b7061[_0x5d2281(0x2c5)],'externalSessionId':_0x9b7061[_0x5d2281(0x30e)],'workspaceId':_0x9b7061[_0x5d2281(0x287)],'model':_0x9b7061[_0x5d2281(0x28f)],'effort':_0x9b7061[_0x5d2281(0x249)],'access':_0x333d37});return{'session':_0x9b7061,'changed':_0xc65670};}[_0x48e4b0(0x2fd)](){const _0x2e6f63=_0x48e4b0;return{'commandId':_0x2e6f63(0x32f),'active':!![],'label':_0x2e6f63(0x235),'detail':null,'closable':!![],'closeInput':_0x2e6f63(0x269)};}[_0x48e4b0(0x2ba)](){const _0x553ce1=_0x48e4b0;this[_0x553ce1(0x2cb)]=!![],this[_0x553ce1(0x2ae)][_0x553ce1(0x2a4)](),this[_0x553ce1(0x2a3)][_0x553ce1(0x2ba)](),this[_0x553ce1(0x2c8)][_0x553ce1(0x2ba)]();for(const _0x2382db of this[_0x553ce1(0x301)][_0x553ce1(0x321)][_0x553ce1(0x352)][_0x553ce1(0x2f4)]()){clearTimeout(_0x2382db[_0x553ce1(0x2cc)]),_0x2382db[_0x553ce1(0x276)](_0x553ce1(0x318));}this[_0x553ce1(0x301)][_0x553ce1(0x321)][_0x553ce1(0x352)][_0x553ce1(0x31f)]();for(const _0x1ef03 of this[_0x553ce1(0x301)][_0x553ce1(0x321)][_0x553ce1(0x2ee)][_0x553ce1(0x2f4)]()){clearTimeout(_0x1ef03[_0x553ce1(0x2cc)]),_0x1ef03[_0x553ce1(0x241)](_0x553ce1(0x262));}this[_0x553ce1(0x301)][_0x553ce1(0x321)][_0x553ce1(0x2ee)][_0x553ce1(0x31f)](),this[_0x553ce1(0x35b)][_0x553ce1(0x31f)](),this[_0x553ce1(0x2a8)][_0x553ce1(0x2a4)](),this[_0x553ce1(0x2d6)][_0x553ce1(0x31f)](),this[_0x553ce1(0x2b8)][_0x553ce1(0x31f)]();for(const _0x2ade06 of this[_0x553ce1(0x250)][_0x553ce1(0x2f4)]())clearTimeout(_0x2ade06[_0x553ce1(0x2cc)]);this[_0x553ce1(0x250)][_0x553ce1(0x31f)](),this[_0x553ce1(0x24b)][_0x553ce1(0x31f)](),this[_0x553ce1(0x20a)][_0x553ce1(0x2a4)]();for(const _0x135163 of this[_0x553ce1(0x301)][_0x553ce1(0x321)][_0x553ce1(0x245)][_0x553ce1(0x2f4)]())_0x135163[_0x553ce1(0x223)][_0x553ce1(0x1f0)]();this[_0x553ce1(0x301)][_0x553ce1(0x321)][_0x553ce1(0x245)][_0x553ce1(0x31f)](),this[_0x553ce1(0x22f)][_0x553ce1(0x2a4)](),void this[_0x553ce1(0x2d2)][_0x553ce1(0x22b)](),this[_0x553ce1(0x2a7)][_0x553ce1(0x2a4)](),this[_0x553ce1(0x35d)][_0x553ce1(0x2f6)](),this[_0x553ce1(0x280)][_0x553ce1(0x31f)](),this[_0x553ce1(0x25d)][_0x553ce1(0x31f)](),this[_0x553ce1(0x247)][_0x553ce1(0x31f)](),void this[_0x553ce1(0x206)][_0x553ce1(0x2ba)](),void this[_0x553ce1(0x32c)][_0x553ce1(0x28b)](),void this[_0x553ce1(0x283)][_0x553ce1(0x22b)](),this[_0x553ce1(0x353)][_0x553ce1(0x2ba)](),this[_0x553ce1(0x2f7)][_0x553ce1(0x2ba)](),this[_0x553ce1(0x21b)]?.[_0x553ce1(0x28b)](),this[_0x553ce1(0x21b)]=undefined;}[_0x48e4b0(0x212)]=_0x55db81=>this[_0x48e4b0(0x295)][_0x48e4b0(0x223)](_0x55db81);[_0x48e4b0(0x2e1)]=(_0x3086c1,_0x25bbb3,_0x1beb94,_0x46d108)=>this[_0x48e4b0(0x2e5)][_0x48e4b0(0x2fa)](_0x3086c1,_0x25bbb3,_0x1beb94,_0x46d108);[_0x48e4b0(0x211)]=(_0x584e68,_0x34736d)=>{const _0xf8d1ac=_0x48e4b0;this[_0xf8d1ac(0x24b)][_0xf8d1ac(0x317)](_0x584e68);const _0x27f811=isPlainRecord(_0x34736d)&&typeof _0x34736d[_0xf8d1ac(0x259)]===_0xf8d1ac(0x29d)?_0x34736d[_0xf8d1ac(0x259)]:undefined,_0x284fd6=isPlainRecord(_0x34736d)&&typeof _0x34736d[_0xf8d1ac(0x2ed)]===_0xf8d1ac(0x29d)?_0x34736d[_0xf8d1ac(0x2ed)]:undefined,_0x5ef29b=this[_0xf8d1ac(0x291)][_0xf8d1ac(0x25e)](_0x584e68),_0x439fba=_0x27f811===undefined||_0x5ef29b===undefined?undefined:conversationSegmentIdentityForItem(_0x5ef29b,_0x27f811,_0x284fd6);this[_0xf8d1ac(0x2e5)][_0xf8d1ac(0x2fa)](_0x584e68,_0xf8d1ac(0x32d),_0x439fba===undefined||!isPlainRecord(_0x34736d)?_0x34736d:{..._0x34736d,'segmentId':_0x439fba['id'],'segmentIndex':_0x439fba[_0xf8d1ac(0x2af)]});};[_0x48e4b0(0x231)]=_0x141c7a=>{const _0xa4ee73=_0x48e4b0,_0x45bd2d=isPlainRecord(_0x141c7a)&&Array[_0xa4ee73(0x335)](_0x141c7a[_0xa4ee73(0x268)])?conversationSegments(_0x141c7a):[];this[_0xa4ee73(0x255)](_0xa4ee73(0x1f6),{'turn':_0x141c7a,'segments':_0x45bd2d});};[_0x48e4b0(0x2a1)]=(_0x2e5010,_0x322ec1)=>{const _0x17e644=_0x48e4b0;if(_0x2e5010===_0x17e644(0x2e8)){this[_0x17e644(0x33d)](_0x322ec1);return;}this[_0x17e644(0x255)](_0x2e5010,_0x322ec1);};[_0x48e4b0(0x33d)]=_0x1d3e6f=>{const _0x54af9a=_0x48e4b0;if(isPlainRecord(_0x1d3e6f)&&isPlainRecord(_0x1d3e6f[_0x54af9a(0x2e8)])){const _0x3b1b1e=_0x1d3e6f[_0x54af9a(0x2e8)][_0x54af9a(0x287)];typeof _0x3b1b1e===_0x54af9a(0x29d)&&(this[_0x54af9a(0x25d)][_0x54af9a(0x2d9)](_0x3b1b1e),void this[_0x54af9a(0x280)]?.[_0x54af9a(0x2ff)](_0x3b1b1e,_0x54af9a(0x200)));}this[_0x54af9a(0x255)](_0x54af9a(0x2e8),_0x1d3e6f);};[_0x48e4b0(0x255)]=(_0x20cf51,_0x42fd0b)=>{const _0x166a8d=_0x48e4b0;if(_0x20cf51===_0x166a8d(0x1f6)&&isPlainRecord(_0x42fd0b)&&isPlainRecord(_0x42fd0b[_0x166a8d(0x29e)])&&_0x42fd0b[_0x166a8d(0x29e)][_0x166a8d(0x29a)]!==_0x166a8d(0x326)){const _0x14eafd=typeof _0x42fd0b[_0x166a8d(0x29e)][_0x166a8d(0x1fe)]===_0x166a8d(0x29d)?_0x42fd0b[_0x166a8d(0x29e)][_0x166a8d(0x1fe)]:undefined,_0x1010c6=typeof _0x42fd0b[_0x166a8d(0x29e)][_0x166a8d(0x2f0)]===_0x166a8d(0x216)?_0x42fd0b[_0x166a8d(0x29e)][_0x166a8d(0x2f0)]:undefined,_0xb5d050=_0x14eafd===undefined?undefined:this[_0x166a8d(0x291)][_0x166a8d(0x25e)](_0x14eafd);if(_0xb5d050===undefined)return;const _0x16ea6a=isPlainRecord(_0x42fd0b[_0x166a8d(0x29e)][_0x166a8d(0x1ef)])?_0x42fd0b[_0x166a8d(0x29e)][_0x166a8d(0x1ef)]:undefined,_0x49d99d=_0x42fd0b[_0x166a8d(0x29e)][_0x166a8d(0x29a)]===_0x166a8d(0x336)&&typeof _0x16ea6a?.[_0x166a8d(0x1ff)]===_0x166a8d(0x29d)?_0x16ea6a[_0x166a8d(0x1ff)]:undefined,_0x202e4f=_0x49d99d===undefined||_0x1010c6===undefined?undefined:_0xb5d050[_0x166a8d(0x268)][_0x166a8d(0x33c)](_0x2c3141=>_0x2c3141[_0x166a8d(0x2ed)]===_0x166a8d(0x2d1)&&_0x2c3141[_0x166a8d(0x310)]===_0x1010c6),_0x51e188=_0x202e4f?.[_0x166a8d(0x2b0)]===_0x1010c6;_0x42fd0b=_0x202e4f===undefined||_0x51e188?{'turn':_0xb5d050,'segments':conversationSegments(_0xb5d050)}:{'sessionId':_0xb5d050[_0x166a8d(0x325)],'delta':{'runId':_0xb5d050[_0x166a8d(0x1fe)],'itemId':_0x202e4f['id'],'text':_0x49d99d,'createdAt':typeof _0x42fd0b[_0x166a8d(0x29e)][_0x166a8d(0x2dc)]===_0x166a8d(0x216)?_0x42fd0b[_0x166a8d(0x29e)][_0x166a8d(0x2dc)]:Date[_0x166a8d(0x28c)]()}};}const _0x5ab578=this[_0x166a8d(0x2b3)][_0x166a8d(0x2fb)](_0x20cf51,_0x42fd0b);if(_0x5ab578===undefined)return;const _0x3312ab=_0x20cf51===_0x166a8d(0x1f6)&&isPlainRecord(_0x42fd0b)&&isPlainRecord(_0x42fd0b[_0x166a8d(0x29e)])&&_0x42fd0b[_0x166a8d(0x29e)][_0x166a8d(0x29a)]===_0x166a8d(0x326),_0x31fdcb=workbenchPayloadSessionId(this[_0x166a8d(0x291)],_0x20cf51,_0x42fd0b);if(!_0x3312ab&&_0x31fdcb!==undefined){this[_0x166a8d(0x35b)][_0x166a8d(0x33f)](_0x31fdcb,_0x5ab578);return;}this[_0x166a8d(0x2b3)][_0x166a8d(0x306)](_0x5ab578);};[_0x48e4b0(0x328)]=_0x3ab71e=>this[_0x48e4b0(0x2eb)][_0x48e4b0(0x339)](_0x3ab71e);[_0x48e4b0(0x234)]=_0x157f1c=>this[_0x48e4b0(0x233)][_0x48e4b0(0x284)](_0x157f1c);[_0x48e4b0(0x237)]=()=>undefined;[_0x48e4b0(0x2c4)]=()=>this[_0x48e4b0(0x2c8)][_0x48e4b0(0x2c4)]();[_0x48e4b0(0x311)]=()=>this[_0x48e4b0(0x2c8)][_0x48e4b0(0x311)]();async[_0x48e4b0(0x31a)](_0x5ae6e7,_0x310efd){const _0x4fd407=_0x48e4b0;if(this[_0x4fd407(0x21b)]===undefined)throw new Error(_0x4fd407(0x343));if(this[_0x4fd407(0x2a3)][_0x4fd407(0x1f1)](_0x5ae6e7))throw new Error(_0x4fd407(0x35c));return nodeLog(_0x4fd407(0x29f),{'nodeId':this[_0x4fd407(0x2d5)]?.[_0x4fd407(0x219)],'operation':_0x5ae6e7}),this[_0x4fd407(0x248)][_0x4fd407(0x34b)](_0x5ae6e7,_0x310efd);}[_0x48e4b0(0x1ee)](_0x25ac7f,_0x584dbe){const _0x4e0eaa=_0x48e4b0;this[_0x4e0eaa(0x253)][_0x4e0eaa(0x260)](_0x25ac7f['id'],{'commandId':_0x4e0eaa(0x32f),'active':_0x584dbe[_0x4e0eaa(0x224)]===_0x4e0eaa(0x2c2),'label':_0x4e0eaa(0x235),'detail':_0x584dbe[_0x4e0eaa(0x32e)][_0x4e0eaa(0x205)](0x944*-0x3+0xe9*-0xe+0x1445*0x2,0x1*-0xedf+0xa*-0xd5+0x1925),'closable':!![],'closeInput':_0x4e0eaa(0x26e),'mission':{'id':_0x584dbe['id'],'objective':_0x584dbe[_0x4e0eaa(0x32e)],'revision':_0x584dbe[_0x4e0eaa(0x310)],'status':_0x584dbe[_0x4e0eaa(0x224)]}}),this[_0x4e0eaa(0x255)](_0x4e0eaa(0x2e8),{'session':this[_0x4e0eaa(0x2f5)][_0x4e0eaa(0x303)](_0x25ac7f)});}[_0x48e4b0(0x1f3)](_0x2884f9,_0x46234e,_0x3a9372){const _0x3fc58c=_0x48e4b0;this[_0x3fc58c(0x2f7)][_0x3fc58c(0x1f3)](_0x2884f9,_0x46234e,_0x3a9372);}[_0x48e4b0(0x2b4)](_0x36b985){const _0x22dfc2=_0x48e4b0;this[_0x22dfc2(0x2f7)][_0x22dfc2(0x2b4)](_0x36b985);}}
@@ -0,0 +1,2 @@
1
+ /* mar-release-protected */
2
+ export{};