@myagentroam/node 0.9.14 → 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 (37) hide show
  1. package/dist/codex-app-server.js +1 -1
  2. package/dist/connector.js +1 -1
  3. package/dist/native-session-history.js +1 -1
  4. package/dist/runner/abstract-runner.js +1 -1
  5. package/dist/runner/codex/conversation-parser.js +1 -1
  6. package/dist/runner/codex/managed-run-controller.js +1 -1
  7. package/dist/runner/opencode/conversation-parser.js +1 -1
  8. package/dist/runner/opencode/managed-run-controller.js +1 -1
  9. package/dist/runner/runner-registry.js +1 -1
  10. package/dist/runner-command-engine.js +1 -1
  11. package/dist/runner-profiles.js +1 -1
  12. package/dist/runtime-state.js +1 -1
  13. package/dist/service/continuous-run-coordinator.js +1 -1
  14. package/dist/service/conversation-history-service.js +1 -1
  15. package/dist/service/external-session-resume-service.js +1 -1
  16. package/dist/service/mission-mcp-server.js +2 -0
  17. package/dist/service/mission-mcp-stdio.js +2 -0
  18. package/dist/service/mission-runtime.js +2 -0
  19. package/dist/service/native-session-projection-service.js +1 -1
  20. package/dist/service/native-session-watch-service.js +1 -1
  21. package/dist/service/node-workspace-coordinator.js +1 -1
  22. package/dist/service/run-event-service.js +1 -1
  23. package/dist/service/runner-service.js +1 -1
  24. package/dist/service/session-catalog-service.js +1 -1
  25. package/dist/service/session-command-service.js +1 -1
  26. package/dist/service/session-context-service.js +1 -1
  27. package/dist/service/session-identity-service.js +1 -1
  28. package/dist/service/session-lifecycle-service.js +1 -1
  29. package/dist/service/session-message-service.js +1 -1
  30. package/dist/service/workspace-queue-workbench-service.js +1 -1
  31. package/dist/service/workspace-session-service.js +1 -1
  32. package/dist/service/workspace-watch-controller.js +2 -0
  33. package/dist/service/workspace-watch-service.js +1 -1
  34. package/dist/service/workspace-watch-snapshot-service.js +2 -0
  35. package/dist/service/workspace-workbench-service.js +1 -1
  36. package/dist/util/runner-native-session-parsers.js +1 -1
  37. 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 _0x462b86=_0x2010;(function(_0x483529,_0x3b71b0){const _0x2214bb=_0x2010,_0x3eea90=_0x483529();while(!![]){try{const _0x5c0fed=-parseInt(_0x2214bb(0x24a))/(0x1a06*-0x1+-0x3d*0x6d+0x3400)*(parseInt(_0x2214bb(0x1f5))/(0x1*0x1380+-0x1fc5+0x1*0xc47))+-parseInt(_0x2214bb(0x22d))/(-0xf*0x99+0x643*-0x6+0x2e8c)*(parseInt(_0x2214bb(0x28c))/(0x5c8+0x263f+-0x2c03))+parseInt(_0x2214bb(0x295))/(0x1795+0xa*-0x172+-0x91c)+-parseInt(_0x2214bb(0x291))/(0x10d*0xd+-0xffe+0x1*0x25b)+parseInt(_0x2214bb(0x281))/(0x2436+0x2015+-0x4444)+-parseInt(_0x2214bb(0x1e6))/(0x91*0x24+0x2655+-0x3ab1)+parseInt(_0x2214bb(0x19d))/(0x5aa+-0x1ff7+-0x1a56*-0x1)*(parseInt(_0x2214bb(0x28e))/(0x3b*0x18+0x694+-0x3*0x406));if(_0x5c0fed===_0x3b71b0)break;else _0x3eea90['push'](_0x3eea90['shift']());}catch(_0x48b79f){_0x3eea90['push'](_0x3eea90['shift']());}}}(_0x5f25,0x27547*-0x1+-0x1*0x10b4fd+-0xad3d*-0x2a));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';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';function _0x5f25(){const _0x3aea23=['ChjVBw90zq','y29UBMvJDgvKqxr0zw1WDa','zw1PDenVBNzLCNnHDgLVBLr1CM4','CNvUBMvYlMnVBw1HBMqUzxHLy3v0zq','B3bLCMf0Aw9UCW','Aw5ZCgvJDa','C3rYAw5N','DxbNCMfKzvjLywr5','C2vZC2LVBKnVBw1HBMrtzxj2AwnL','zgvJAxnPB24','zw1PDfj1BKv2zw50','D29YA3nWywnLvxbSB2fKu2vYDMLJzq','y2fWywjPBgL0AwvZ','q0foq0vm','y29UzMLN','C2v0q2HHBM5LBfrVA2vU','BwLNCMf0zvj1BM5LCLnLC3nPB25jzgvUDgL0Eq','CNvUBMvYvxnHz2vszwfKzxi','CMvQzwn0','C3rHDgu','CMvJzw50uNvUuhjVAMvJDgLVBLnLCNzPy2u','C3rHDhvZ','C2nOzwr1Bgu','CMvJzw50lxj1BNm','zMLUza','mtGYnZLIrvLSAwm','CgvUzgLUzW','Bwf0zxjPywXPEMvdB2rLEa','AgfUzgXLtwvZC2fNzq','Dw5YzwDPC3rLCMvK','zw1PDff1zxvL','CMvTB3zL','CMvZDw1LzenVBMzPz3vYyxrPB24','CMvMCMvZAev4DgvYBMfSqwn0AxzPDhK','zgf0ywjHC2u','Aw50zxjYDxb0uMvXDwvZDgvK','y29UDMvYC2f0Aw9UsgLZDg9YEvnLCNzPy2u','D29YA3nWywnLq29VCMrPBMf0B3i','AxnbCNjHEq','ywrVChrsDw4','CNvUCW','zw5ZDxjLv2f0y2G','ChvIBgLZAa','CMvJB3jKzwqTC2vZC2LVBG','y2XVC2vsDw5UAw5NvgvYBwLUywXtzxnZAw9UCW','Aw52ywXPzgf0zunOyw5Nzxm','y2XHDwrLqxbWCM92ywXuAw1LB3v0txm','zxH0zxjUywXtzxnZAw9UuMvZDw1Lu2vYDMLJzq','BgLZDfDVCMTZCgfJzxm','DgvYBwLUywXnyw5Hz2vY','C2v0','AgfZ','y29KzxG','zxHLy3v0zu5VzgvpCgvYyxrPB24','yxbWzw5K','Bg9HzfjLC3vSDa','CNvUu3rHDgu','AgfZqwn0AxzLu2vZC2LVBKXLyxnL','CNvUBMvYu2vYDMLJzq','C2vZC2LVBLbYzxnLBNrHDgLVBLnLCNzPy2u','BwLNCMf0zvnLC3nPB24','DxbNCMfKzunVB3jKAw5HDg9Y','z2v0qwDLBNrtzxnZAw9U','CNvUDgLTzq','Aw50zxjYDxb0','zxHLy3v0zunVBw1HBMq','C2vZC2LVBKnHDgfSB2Dtzxj2AwnL','CMvWBgfJzq','AxrLBxm','zxHWAxjL','zgLZy292zxjxB3jRC3bHy2u','CNvUBMvYsw50zxjHy3rPB25tzxj2AwnL','zgLZCgf0y2G','BMf0AxzLsw1Hz2vsB290CW','CMfUzg9Tvvvjra','zxHLy3v0Aw9U','zgvJAwrL','DhvYBG','zwzMB3j0','D2LUzg93CW','mJC4nJeWnvbNDLHdtq','Aw52ywXPzgf0zq','y2HHBM5LBfrVA2vU','yMXVy2TZ','zgvSzxrL','DxnLCKLUChv0CW','z2v0uNvU','C2vZC2LVBK1LC3nHz2vtzxj2AwnL','y29UBMvJDgLVBKXPzMvJEwnSzq','zgLZy292zxi','CMvZB2X2zun1CNjLBNq','ng1NBvjRyW','y29TBwfUzfn0yxrLCW','ndmWndbgsuXNsxK','zw1PDfDVCMTIzw5JAev2zw50','C2vZC2LVBI13yxrJAc1ZBMfWC2HVDa','mte5mtKWmhLjyKz3wq','CNvUswq','y2XHDwrLq2XPzw50','B3bLBKnVzgvdBgLLBNq','mJqZmZu4nxPWshPcDq','Cgf1C2vtzxnZAw9UuxvLDwu','CMvMCMvZAenHCgfIAwXPDgLLCW','B3bLCMf0Aw9UuM91DgvY','D29YA3nWywnLq2HHBMDLu2vYDMLJzq','C3rVCfDHDgnO','DgHYzwfKswq','BM9Kzs5JB25Uzwn0Aw5N','y29UDhjVBenOyw5UzwW','BgLUDxG','CNvUv29YA2jLBMnOu2vYDMLJzq','CMvHza','C2vZC2LVBLf1zxj5u2vYDMLJzq','uLvox05pvf9gt1vora','y29UDMvYC2f0Aw9Uu2vNBwvUDfnLCNzPy2u','BM9Kzs51CgDYywrLlMnHBMnLBa','CMvJB25JAwXL','q0foq0vmteLorW','B25oB3rPzMLJyxrPB24','CgvYC2LZDezPBgvZ','C2vZC2LVBKXPzMvJEwnSzvnLCNzPy2u','C2vUzevUDMvSB3bL','uKvkrunuruq','ywnJzxnZ','lw9Wzw5JB2rLlwLTywDLCW','DgvYBwLUywXtzxj2AwnL','CMvJB3jK','D29YA3nWywnLswq','Aw5KzxG','tK9erv9eqvrbqKftrv9vtKfwquLmqujmrq','zMfRztO','CNvUBMvYCW','ChjLCgfYzu1LC3nHz2vjBNb1Da','D29YA3nWywnLu3rHDgu','AgfUzgXL','C3vWzxj2AxnLzfvWz3jHzgu','C25HChnOB3rtzxf1zw5Jzq','CMvXDwvZDenSyxvKzufWChjVDMfS','CMvMCMvZAfrVCgLJ','tK9erv9dt05gsuDFvu5bvKfjtefcteu','CMvNAxn0zxi','BM9KzvjLCxvLC3rZ','CMvZDw1Lqwz0zxjdB21Tyw5KuNvU','D29YA2jLBMnOrxzLBNrtzxj2AwnL','y29TCgXLDgvdyw5JzwXSzwrsDw4','ywn0AxzLv29YA3nWywnLtgvHC2vdB3vUDa','y3jLyxrLqxbWCM92ywW','zgvJAwrLq29KzxHbChbYB3zHBa','y2XLyxjxyxrJAgvZ','Cgf0Aa','z2v0v29YA3nWywnL','BM9Kzs5TzxrYAwnZ','Bwv0ywrHDge','ywrK','CMvJB25Uzwn0u2nOzwr1BgvK','CNvUBMvY','zMLSDgvY','BMf0AxzLlNnLC3nPB24UzgLZy292zxj5lNbLBMrPBMC','yMLUzenVBNrYB2W','y2fJAgvKu2vZC2LVBNm','C2vZC2LVBKLKzw50Axr5u2vYDMLJzq','CgvYC2LZDfrLCM1PBMfS','y2XLyxjbBgW','AgfUzgXLtM90AwzPy2f0Aw9U','D2f0y2GUzxzLBNq','mJK0m1bpzw9PAG','DgvYBwLUywXdAgfUBMvS','DxbNCMfKzs1Yzxn1BhqUANnVBG','Bwf4','yMLUzenVBw1HBMrdB250CM9S','zw1PDfjLywX0Aw1L','zxHWAxjLqxbWCM92ywW','zwzMzwn0AxzLtwnWsw5ZDgfSBgf0Aw9UCW','yxzHAwXHyMXL','ChjVAMvJDgLVBKzVCK5HDgL2zq','y2fWywjPBgL0EurLDgvJDg9Y','vgHPCYboB2rLignVBM5Ly3rPB24GD2fZihjLCgXHy2vKigj5igeGBMv3zxiGAw5ZDgfUy2uGD2L0Acb0AguGC2fTzsbPzgvUDgL0Es4Gq2HLy2SGzM9Yigr1CgXPy2f0zsbWCM9JzxnZzxmU','z2v0','zgLZy29UBMvJDa','BgLZDa','y29UDgLUDw91C1j1BKnVB3jKAw5HDg9Y','BMf0AxzLu2vZC2LVBLbYB2PLy3rPB25tzxj2AwnL','C2vZC2LVBNm','CMvXDwvZDa','zw5ZDxjLuMvZDw1LzenVBMzPz3vYyxrPB24','zMX1C2Hqzw5KAw5Nvgv4Da','BMf0AxzLu2vZC2LVBLDHDgnOu2vYDMLJzq','D29YA2jLBMnOtwfUAwzLC3rtzxj2AwnL','CgXHDgzVCM0','C3rVChbLza','CNvU','CMvJB25JAwXLugvYC2LZDgvKuNvUCW','y3DK','C29JA2v0','y29UBMvJDgvK','C3rYAw5NAwz5','B25tDw1Tyxj5','CMvNAxn0zxjbBgW','D29YA3nWywnLv2f0y2Htzxj2AwnL','y2XVC2u','CMvWBgfJzvnVy2TLDezVCLrLC3rPBMC','ChvIBgLZAfnUyxbZAg90','zw1PDenVBNzLCNnHDgLVBKL0zw0','Aw52ywXPzgf0zvDVCMTZCgfJzvDHDgnOvg9WAwnZ','y29UDMvYC2f0Aw9U','C3rHCNrdyxbHyMLSAxr5uMvMCMvZAa','zxH0zxjUywXby3rPDML0Eq','AxrLBuLK','Bwv0CMLJCW','CMvXDwvZDenSyxvKzvvZzxjjBNb1Da','C2vZC2LVBG','ywn0AxzL','CMvZB2X2zuzVCK1LC3nHz2u','ChjVAMvJDeLUAxrPywW','CMvZCg9UzfvZzxjjBNb1Da','y29KzxHsDw5dB250CM9SBgvY','C3rVCa','zgvJAwrLq2XHDwrLqxbWCM92ywW','Dg9WAwnby3rPDMu','CNvUBMvYq2HHBM5LBe1LC3nHz2vZ','CNvUqxr0ywnOBwvUDfnLCNzPy2u','y29UDMvYC2f0Aw9UvhvYBKzVCLj1BG','CMvXDwLYzq','zw1PDfj1BG','BM9KzuLK','tK9erv9tve9queve','zxzLBNruExbL','BMv4Da','DhvYBKLK','C2L6zq','DgLTzxi','D29YA3nWywnLuxvLDwvxB3jRyMvUy2Htzxj2AwnL','zMfRzvnJCMLWDa','BMf0AxzLswrZ','y29UzMLNugf0Aa','y29KzxHdBgLLBNq','y2fUy2vS','CNvUrxzLBNrtzxj2AwnL','ody1nZmWngDstvbdBG','ChjVBw90zvnLC3nPB25jzgvUDgL0Eq','C2vUza','C2vZC2LVBLn0yxrL','DhjHBNnPDgLVBMLUzW','BM93','zMfZDa','zM9Yz2v0','y2fWywjPBgL0AwvZuhjVDMLKzwq','ChvIBgLZAefWChjVDMfS','zgLYzwn0tMf0AxzL','CMvTzw1Izxi','CNvUrxzLBNrcCMLKz2u','CMvZB2X2zq','y2XLyw51Ca','mMnADgfkyq','ywXSB3DLzfjVB3rZ','CMvJB25Uzwn0','BM90AwzPy2f0Aw9U','BwfUywDLzfj1BM5LCLnLC3nPB25Z','zxzLBNq','y2XLyxi','D29YA3nWywnLrMLSzvnLCNzPy2u','zgLZy292zxjxB3jRC3bHy2vtzxnZAw9UCW','D29YA3nWywnLv29YA2jLBMnOu2vYDMLJzq','ChjLC2vUDa','Bw92zq','y29UBMvJDa','zMfRzvj1BM5LCG','y29UDMvYC2f0Aw9UlML0zw0','y29KzxHqCM9MAwXLq2XPzw50rMfJDg9YEq','zxHLy3v0zq','B3bLBKnVzgvsDw5dB250CM9SBgvY','y2XHDwrLuNvUq29UDhjVBgXLCG','Bw9KzwW','BM9Kzs5JB25Uzwn0Aw9UlNjLCgXHy2vK','q0foq0vmteve','y2fUy2vSq29KzxHuDxjU','C2vZC2LVBKnVBNrLEhrtzxj2AwnL','CMvHze5HDgL2zq','DxbNCMfKzq','y2fUy2vSq2XHDwrLuNvU','yxbWCM92ywXZ','BM9Kzs5VCgvYyxrPB24','D2LUmZi','BM9KzuDLBMvYyxrPB24','BM9Kzs53B3jRyMvUy2GUy2fWywjPBgL0AwvZ','BgLZDfj1BNngB3jtzxnZAw9U','rKflrv9svu5orvjFreLtq09otKvdva','BM9Kzs51CgDYywrLlNjLCxvLC3q','zgvJAwrLqxbWCM92ywW','DMfSDwvZ','BwLU','D29YA3nWywnLu2vYDMLJzq','C3rHCNq','yM9VDhn0CMfWswrZ','y29UDhjVBe1LC3nHz2vZ','C2f2zu5HDgL2zvnLC3nPB25nzxrHzgf0yq','C2vZC2LVBI5SAxn0','ChjVzMLSzxm','surmrq','A2LUza','tK9erv9dt05orunusu9ox1jfueXbq0ve','yxbWCM92ywXjza','C2H1DgrVD24','C25HChnOB3q','D29YA3nWywnLu2vZC2LVBLnLCNzPy2u','zxHPDa','su5urvjsvvburuq','zgLZCg9Zzq','BwfUywDLzezVCK5HDgL2zq','mte1ote4mMXpsLzxDq','CMvMCMvZAfrPDgXL','CNvUDgLTzs1UB2rL','tK9erv9vueDsqurfx1bftKrjtKC'];_0x5f25=function(){return _0x3aea23;};return _0x5f25();}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';function _0x2010(_0x2e1249,_0x423c2b){_0x2e1249=_0x2e1249-(-0xb*-0x1ab+0x15a0+-0x2663);const _0x494d4f=_0x5f25();let _0x3ad7b5=_0x494d4f[_0x2e1249];if(_0x2010['gFISRw']===undefined){var _0x2476a0=function(_0x5b5aae){const _0xce0261='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x190057='',_0x30b0dd='';for(let _0x12877b=0x37d*-0xb+0x222e+-0x431*-0x1,_0x3a76ea,_0x2d208f,_0x48c642=0x332*-0x1+-0x1011+0x1343;_0x2d208f=_0x5b5aae['charAt'](_0x48c642++);~_0x2d208f&&(_0x3a76ea=_0x12877b%(0xc4b+-0x1e47+0x1200)?_0x3a76ea*(0x1*0x425+0x830+-0xc15)+_0x2d208f:_0x2d208f,_0x12877b++%(0x15*0x188+-0x1e*0x77+0x112*-0x11))?_0x190057+=String['fromCharCode'](-0xa*-0x1f6+-0x1863+0x2e3*0x2&_0x3a76ea>>(-(-0x239b+-0x1422+-0x43*-0xd5)*_0x12877b&0x1*0x119+0x26a7+-0xf*0x2a6)):-0xfa1+-0x1*-0x6b9+0x8e8){_0x2d208f=_0xce0261['indexOf'](_0x2d208f);}for(let _0x274ecf=-0x12af+-0x3*-0xc95+-0x1310,_0x4e0ec3=_0x190057['length'];_0x274ecf<_0x4e0ec3;_0x274ecf++){_0x30b0dd+='%'+('00'+_0x190057['charCodeAt'](_0x274ecf)['toString'](-0x21bf+-0xb*-0x33b+-0x1ba))['slice'](-(0x1588+-0x2396+0x28*0x5a));}return decodeURIComponent(_0x30b0dd);};_0x2010['zUzZYS']=_0x2476a0,_0x2010['EAfHjq']={},_0x2010['gFISRw']=!![];}const _0x4a394b=_0x494d4f[-0x2377+0x1*0x11a5+0x11d2];_0x2010['Nnswlm']!==_0x4a394b&&(_0x2010['EAfHjq']={},_0x2010['Nnswlm']=_0x4a394b);const _0x4a875d=_0x2010['EAfHjq'][_0x2e1249];return _0x4a875d===undefined?(_0x3ad7b5=_0x2010['zUzZYS'](_0x3ad7b5),_0x2010['EAfHjq'][_0x2e1249]=_0x3ad7b5):_0x3ad7b5=_0x4a875d,_0x3ad7b5;}import{RecentRunProjectionService}from'./service/recent-run-projection-service.js';import{SessionDomainState}from'./service/session-domain-state.js';import{RunEventService}from'./service/run-event-service.js';import{RunAttachmentService}from'./service/run-attachment-service.js';import{NodeTerminalChannel}from'./service/node-terminal-channel.js';import{WorkspaceWorkbenchService}from'./service/workspace-workbench-service.js';import{NativeSessionWatchService}from'./service/native-session-watch-service.js';import{SessionContextService}from'./service/session-context-service.js';import{WorkspaceDomainState}from'./service/workspace-domain-state.js';import{RunWorkbenchService}from'./service/run-workbench-service.js';import{SessionQueryService}from'./service/session-query-service.js';import{WorkspaceQueueWorkbenchService}from'./service/workspace-queue-workbench-service.js';import{ContinuousRunCoordinator}from'./service/continuous-run-coordinator.js';import{SessionIdentityService}from'./service/session-identity-service.js';import{NativeSessionProjectionService}from'./service/native-session-projection-service.js';import{composeConversationRuntimePage,ConversationHistoryService,convergeConversationWatchPage,hasManagedActiveRun}from'./service/conversation-history-service.js';import{ConversationSegmentService,conversationSegmentIdentityForItem,conversationSegments}from'./service/conversation-segment-service.js';import{RunnerInteractionService}from'./service/runner-interaction-service.js';import{SessionLifecycleService}from'./service/session-lifecycle-service.js';import{ExternalSessionResumeService}from'./service/external-session-resume-service.js';import{SessionMessageService}from'./service/session-message-service.js';import{SessionCatalogService}from'./service/session-catalog-service.js';import{SessionCommandService}from'./service/session-command-service.js';import{SessionPresentationService}from'./service/session-presentation-service.js';import{isPlainRecord,isRunnerImageAttachment,parseRunnerImageAttachments}from'./runner/codex/conversation-parser.js';export{nodeConnectEndpoint,validatedCapabilities}from'./runner/codex/conversation-parser.js';import{NodeControlChannel}from'./service/node-control-channel.js';import{NodeControlMessageService}from'./service/node-control-message-service.js';import{NodeRequestService}from'./service/node-request-service.js';import{WorkbenchManifestService}from'./service/workbench-manifest-service.js';import{NodeRunEventBridge,workbenchPayloadSessionId}from'./service/node-run-event-bridge.js';import{NodeWorkspaceCoordinator}from'./service/node-workspace-coordinator.js';import{FakeManagedRunService}from'./service/fake-managed-run-service.js';import{RunnerChannelMessageService}from'./service/runner-channel-message-service.js';import{ManagedRunnerSessionService}from'./service/managed-runner-session-service.js';import{NodeConnectionLifecycleService}from'./service/node-connection-lifecycle-service.js';import{NodeUpgradeCoordinator,nodeUpgradeRequestPath}from'./service/node-upgrade-coordinator.js';const HEARTBEAT_MS=-0x6e89+0x6464+0x44bd,CAPABILITY_REFRESH_MS=0x1cb05+0x186a1+-0x3d87*0xa,RETRY_MIN_MS=-0xbf8+0x1*-0x235+0x1*0x1021,RETRY_MAX_MS=-0x4*0x1a9e+0xb*-0x1035+-0xd*-0x1eeb,CLAUDE_APPROVAL_TIMEOUT_MS=(-0x6a*-0x27+-0x9*-0x315+-0x2bd9)*(0x197ab+0x15f80+-0x20ccb);export function nextReconnectDelay(_0x7e37d3){const _0x5147e5=_0x2010;return Math[_0x5147e5(0x21a)](RETRY_MAX_MS,RETRY_MIN_MS*(-0x1f97+0x10de*0x1+0x3*0x4e9)**Math[_0x5147e5(0x21a)](Math[_0x5147e5(0x1a0)](_0x7e37d3,-0x192b+0x1a77+-0xa6*0x2),0x1256+-0xa34+-0x1*0x812));}function upgradeMetadata(_0x4cfc0b,_0xa93440){const _0x5022ba=_0x2010,_0x4bd0d9={..._0x4cfc0b??{}};if(process.env['MAR_NODE_SUPERVISED']==='1')_0x4bd0d9[_0x5022ba(0x2b8)]=!![];else delete _0x4bd0d9[_0x5022ba(0x2b8)];if(_0xa93440[_0x5022ba(0x244)]===_0x5022ba(0x222))delete _0x4bd0d9[_0x5022ba(0x20e)];else _0x4bd0d9[_0x5022ba(0x20e)]=_0xa93440;return _0x4bd0d9;}export class NodeConnector{[_0x462b86(0x213)]=crypto[_0x462b86(0x27b)]()[_0x462b86(0x274)](/-/g,'');[_0x462b86(0x29d)];[_0x462b86(0x21e)];[_0x462b86(0x2be)];[_0x462b86(0x289)];set[_0x462b86(0x1b9)](_0x4811ec){const _0x42667d=_0x462b86;this[_0x42667d(0x29d)][_0x42667d(0x1c0)](_0x4811ec);}[_0x462b86(0x1b5)]=![];[_0x462b86(0x23f)];[_0x462b86(0x1ee)];[_0x462b86(0x23d)];[_0x462b86(0x1a7)];[_0x462b86(0x1e2)];[_0x462b86(0x1f7)];[_0x462b86(0x25f)];[_0x462b86(0x2c0)]=new WorkbenchEventService(envelope=>this[_0x462b86(0x2aa)](envelope),(category,payload)=>{const _0x15e5ba=_0x462b86,sessionId=workbenchPayloadSessionId(this[_0x15e5ba(0x270)],category,payload);return sessionId===undefined||!this[_0x15e5ba(0x198)][_0x15e5ba(0x21d)][_0x15e5ba(0x264)](sessionId);});[_0x462b86(0x202)];[_0x462b86(0x1e0)];[_0x462b86(0x269)]=new RunDomainState();[_0x462b86(0x1f2)];[_0x462b86(0x256)];[_0x462b86(0x1e9)]=new SessionDomainState();[_0x462b86(0x198)];[_0x462b86(0x1ad)];[_0x462b86(0x255)];[_0x462b86(0x2a3)];[_0x462b86(0x278)];[_0x462b86(0x1d3)];[_0x462b86(0x1f9)];[_0x462b86(0x26c)];[_0x462b86(0x2a9)];[_0x462b86(0x260)];[_0x462b86(0x288)];[_0x462b86(0x273)];[_0x462b86(0x239)];[_0x462b86(0x1d4)];[_0x462b86(0x19e)];[_0x462b86(0x1e3)];[_0x462b86(0x1cf)];[_0x462b86(0x293)];[_0x462b86(0x294)];[_0x462b86(0x206)];[_0x462b86(0x207)];[_0x462b86(0x2b4)];[_0x462b86(0x20c)];[_0x462b86(0x29f)];[_0x462b86(0x2a1)];[_0x462b86(0x1ac)];[_0x462b86(0x1df)];[_0x462b86(0x298)]=new NodeOperationRouter();[_0x462b86(0x26b)];[_0x462b86(0x1b3)];[_0x462b86(0x2ae)];[_0x462b86(0x21b)];[_0x462b86(0x28d)]=new CommandStateStore();[_0x462b86(0x242)];[_0x462b86(0x262)];[_0x462b86(0x26e)];[_0x462b86(0x2b6)]=new WorkspaceDomainState();[_0x462b86(0x1be)]=new WorkspaceWatchService(this[_0x462b86(0x2b6)],workspaceId=>this[_0x462b86(0x228)][_0x462b86(0x25a)](workspaceId),workspaceId=>this[_0x462b86(0x228)][_0x462b86(0x29a)](workspaceId));[_0x462b86(0x228)]=new WorkspaceSessionService(this[_0x462b86(0x2b6)],{'discover':workspaceId=>this[_0x462b86(0x1fd)](workspaceId),'listPage':workspaceId=>this[_0x462b86(0x266)](_0x462b86(0x220),{'workspaceId':workspaceId,'limit':0x14}),'active':workspaceId=>this[_0x462b86(0x1be)][_0x462b86(0x1d2)](workspaceId,_0x462b86(0x1ae)),'emitRevision':workspaceId=>void this[_0x462b86(0x1fe)]?.[_0x462b86(0x2bb)](workspaceId,_0x462b86(0x1ae)),'onPending':(workspaceId,waitMs)=>nodeLog(_0x462b86(0x2ce),{'nodeId':this[_0x462b86(0x23f)]?.[_0x462b86(0x1d8)],'workspaceId':workspaceId,'waitMs':waitMs})});[_0x462b86(0x1fc)]=new WorkspaceFileService(this[_0x462b86(0x2b6)],()=>this[_0x462b86(0x23f)]?.[_0x462b86(0x1f6)]??[],workspaceId=>this[_0x462b86(0x256)][_0x462b86(0x282)](workspaceId));[_0x462b86(0x23c)]=new WorkspaceUploadService(this[_0x462b86(0x2b6)],workspaceId=>this[_0x462b86(0x256)][_0x462b86(0x282)](workspaceId));[_0x462b86(0x299)]=new WorkspaceChangeService(this[_0x462b86(0x2b6)]);[_0x462b86(0x1fe)];[_0x462b86(0x253)];[_0x462b86(0x245)]=new RecentRunProjectionService(message=>this[_0x462b86(0x1e8)](_0x462b86(0x248),message));[_0x462b86(0x270)]=new NodeRuntimeState(()=>this[_0x462b86(0x23f)]?.[_0x462b86(0x1d8)]??_0x462b86(0x22f),workspaceId=>this[_0x462b86(0x253)]?.[_0x462b86(0x2c7)](workspaceId),Date[_0x462b86(0x1eb)],(run,session,userMessage)=>this[_0x462b86(0x245)][_0x462b86(0x2af)](run,session,userMessage));[_0x462b86(0x1c8)]=new NodeMetrics();[_0x462b86(0x1e5)]=new RunEventService({'runtime':this[_0x462b86(0x270)],'metrics':this[_0x462b86(0x1c8)],'state':this[_0x462b86(0x269)],'isBootstrapSession':sessionId=>this[_0x462b86(0x198)][_0x462b86(0x21d)][_0x462b86(0x264)](sessionId),'presentSession':session=>this[_0x462b86(0x26c)][_0x462b86(0x1ff)](session),'rejectBootstrap':(sessionId,code)=>this[_0x462b86(0x198)][_0x462b86(0x243)](sessionId,code),'emitWorkbench':(category,payload)=>{const _0x3f247d=_0x462b86;if(category===_0x3f247d(0x1c4)&&isPlainRecord(payload)&&_0x3f247d(0x27e)in payload)this[_0x3f247d(0x233)](payload[_0x3f247d(0x27e)]);else this[_0x3f247d(0x28f)](category,payload);},'cleanupAttachments':runId=>this[_0x462b86(0x1d4)][_0x462b86(0x1f4)](runId),'expireImages':runId=>this[_0x462b86(0x1d4)][_0x462b86(0x276)](runId),'scheduleContextRefresh':sessionId=>this[_0x462b86(0x20c)][_0x462b86(0x247)](sessionId),'refreshWorkspaceSessions':workspaceId=>void this[_0x462b86(0x1fe)][_0x462b86(0x2bb)](workspaceId,_0x462b86(0x1ae)),'dispatchQueue':async sessionId=>{const _0x27cb28=_0x462b86;if(!this[_0x27cb28(0x26e)][_0x27cb28(0x24b)]())await this[_0x27cb28(0x1ac)][_0x27cb28(0x279)](sessionId);},'releaseExecution':executionId=>this[_0x462b86(0x1ac)][_0x462b86(0x250)](executionId)});[_0x462b86(0x1b2)]=new NativeSessionWatchService({'resolve':async sessionId=>this[_0x462b86(0x270)][_0x462b86(0x26f)](sessionId)??this[_0x462b86(0x1ad)][_0x462b86(0x28b)](sessionId),'managedActive':session=>hasManagedActiveRun(this[_0x462b86(0x270)],session),'suspended':sessionId=>this[_0x462b86(0x260)][_0x462b86(0x1ea)](sessionId),'refreshActivity':session=>this[_0x462b86(0x255)][_0x462b86(0x252)](session),'present':session=>this[_0x462b86(0x26c)][_0x462b86(0x1ff)](session),'readPage':(session,limit)=>this[_0x462b86(0x255)][_0x462b86(0x2a0)](session,{'limit':limit}),'convergePage':convergeConversationWatchPage,'composeRuntimePage':composeConversationRuntimePage,'projectInitialPage':(session,page,_unit,limit)=>{const _0x3941f2=_0x462b86,context=this[_0x3941f2(0x20c)][_0x3941f2(0x227)](session['id']);return this[_0x3941f2(0x20c)][_0x3941f2(0x247)](session['id']),{'kind':_0x3941f2(0x290),'sequence':this[_0x3941f2(0x2c0)][_0x3941f2(0x2b9)](),'session':this[_0x3941f2(0x26c)][_0x3941f2(0x1ff)](session),'runs':this[_0x3941f2(0x270)][_0x3941f2(0x215)](session['id']),'queue':this[_0x3941f2(0x1df)][_0x3941f2(0x227)](session['id']),'context':context,'conversation':this[_0x3941f2(0x2a3)][_0x3941f2(0x1cd)](session,page,limit)};},'emitSession':session=>this[_0x462b86(0x28f)](_0x462b86(0x1ca),{'session':session}),'emitPage':(session,page)=>this[_0x462b86(0x28f)](_0x462b86(0x1c4),{'sessionId':session['id'],'snapshot':this[_0x462b86(0x2a3)][_0x462b86(0x1cd)](session,page,0xd59+-0xa1d+-0x199*0x2)}),'nodeId':()=>this[_0x462b86(0x23f)]?.[_0x462b86(0x1d8)]??_0x462b86(0x22f),'nodeGeneration':()=>this[_0x462b86(0x213)],'emitWatchEvent':payload=>this[_0x462b86(0x1e8)](_0x462b86(0x19c),payload),'log':nodeLog});constructor(_0x5d48a9={}){const _0x119499=_0x462b86;this[_0x119499(0x23f)]=_0x5d48a9[_0x119499(0x23f)],this[_0x119499(0x1e2)]=_0x5d48a9[_0x119499(0x1e2)],this[_0x119499(0x25f)]=_0x5d48a9[_0x119499(0x25f)]??CLAUDE_APPROVAL_TIMEOUT_MS,this[_0x119499(0x1ee)]=_0x5d48a9[_0x119499(0x23d)]!==undefined,this[_0x119499(0x23d)]=_0x5d48a9[_0x119499(0x23d)]??unavailableCapabilities(),this[_0x119499(0x26e)]=new NodeUpgradeCoordinator(()=>{const _0xc3884e=_0x119499;if(this[_0xc3884e(0x23f)]===undefined)throw new Error(_0xc3884e(0x2bc));return nodeUpgradeRequestPath(nodeDatabasePath(this[_0xc3884e(0x23f)],this[_0xc3884e(0x1e2)]));},()=>this[_0x119499(0x269)][_0x119499(0x1cb)][_0x119499(0x1dd)],_0x52ba3a=>{const _0x2d6ffd=_0x119499;this[_0x2d6ffd(0x23d)]={...this[_0x2d6ffd(0x23d)],'metadata':upgradeMetadata(this[_0x2d6ffd(0x23d)][_0x2d6ffd(0x2c9)],_0x52ba3a)},this[_0x2d6ffd(0x29d)]?.[_0x2d6ffd(0x1e8)](_0x2d6ffd(0x23d),this[_0x2d6ffd(0x23d)]);},_0x5d48a9[_0x119499(0x238)]??(()=>{const _0x2e87bf=_0x119499;this[_0x2e87bf(0x1d0)](),setImmediate(()=>process[_0x2e87bf(0x229)](0xfba+-0x1029*0x1+0xba));})),this[_0x119499(0x23d)]={...this[_0x119499(0x23d)],'metadata':upgradeMetadata(this[_0x119499(0x23d)][_0x119499(0x2c9)],this[_0x119499(0x26e)][_0x119499(0x227)]())};const _0x2d31b2=_0x5d48a9[_0x119499(0x1a7)]??detectCapabilitiesAsync;this[_0x119499(0x1a7)]=async()=>{const _0xa97601=_0x119499,_0xf9e20e=await _0x2d31b2();return{..._0xf9e20e,'metadata':upgradeMetadata(_0xf9e20e[_0xa97601(0x2c9)],this[_0xa97601(0x26e)][_0xa97601(0x227)]())};},this[_0x119499(0x1f7)]=_0x5d48a9[_0x119499(0x1f7)]??!![],this[_0x119499(0x202)]=_0x5d48a9[_0x119499(0x202)]===undefined?undefined:new FakeTestRunner(_0x5d48a9[_0x119499(0x202)]),this[_0x119499(0x1e0)]=_0x5d48a9[_0x119499(0x1e0)],this[_0x119499(0x1d4)]=new RunAttachmentService(_0x2a6db4=>this[_0x119499(0x2b4)][_0x119499(0x1d6)](_0x2a6db4[_0x119499(0x2cc)])[_0x119499(0x27a)](_0x2a6db4)),this[_0x119499(0x1e3)]=new CodexRunner(_0x5d48a9[_0x119499(0x1e3)],_0x5d48a9[_0x119499(0x204)]),this[_0x119499(0x1cf)]=new CodexManagedRunController(this[_0x119499(0x1e3)],{'available':()=>this[_0x119499(0x23d)][_0x119499(0x265)][_0x119499(0x1a5)],'intercepted':()=>this[_0x119499(0x202)]!==undefined,'active':this[_0x119499(0x269)][_0x119499(0x1cb)],'addActive':_0x49383f=>this[_0x119499(0x269)][_0x119499(0x1cb)][_0x119499(0x2ca)](_0x49383f),'removeActive':_0x2d1855=>this[_0x119499(0x269)][_0x119499(0x1cb)][_0x119499(0x285)](_0x2d1855),'adopt':_0x51b7f0=>this[_0x119499(0x270)][_0x119499(0x258)](_0x51b7f0),'session':_0x4eac07=>this[_0x119499(0x270)][_0x119499(0x26f)](_0x4eac07),'runStatus':_0x1b221e=>this[_0x119499(0x270)][_0x119499(0x287)](_0x1b221e)?.[_0x119499(0x246)],'run':_0x536197=>this[_0x119499(0x270)][_0x119499(0x287)](_0x536197),'interrupted':_0x4f0fb4=>this[_0x119499(0x269)][_0x119499(0x254)][_0x119499(0x264)](_0x4f0fb4),'parseAttachments':parseRunnerImageAttachments,'materialize':(_0x5668e6,_0x16ac43)=>this[_0x119499(0x1d4)][_0x119499(0x24c)](_0x5668e6,_0x16ac43),'completeCancelled':_0x4ed403=>this[_0x119499(0x278)][_0x119499(0x2c1)](_0x4ed403),'promoteSession':(_0x31ba82,_0x18ad60)=>this[_0x119499(0x198)][_0x119499(0x231)](_0x31ba82,_0x18ad60),'send':(_0x46fbd1,_0x4d0efb)=>this[_0x119499(0x1e8)](_0x46fbd1,_0x4d0efb),'emit':(_0x4a2256,_0x1eacb5,_0x2c88e0,_0x3ef800)=>this[_0x119499(0x1f2)][_0x119499(0x1d7)](_0x4a2256,_0x1eacb5,_0x2c88e0,_0x3ef800),'cancel':(_0x548aa9,_0x150a35,_0x318a46,_0x402c1f,_0x54fd82)=>this[_0x119499(0x278)][_0x119499(0x20b)](_0x548aa9,_0x150a35,_0x318a46,_0x402c1f,_0x54fd82),'createApproval':_0x4c4fcb=>this[_0x119499(0x270)][_0x119499(0x2c3)](_0x4c4fcb),'publishApproval':_0x575322=>this[_0x119499(0x1f2)][_0x119499(0x1ef)](_0x575322),'emitItem':(_0x475bdc,_0x14c6e0)=>this[_0x119499(0x1c2)](_0x475bdc,_0x14c6e0),'appendImages':(_0x2230f0,_0x557546)=>this[_0x119499(0x1d4)][_0x119499(0x267)](_0x2230f0,_0x557546[_0x119499(0x2cd)](isRunnerImageAttachment)),'syncTitle':(_0x39bdad,_0x2d3621,_0x11b1a5)=>this[_0x119499(0x1f9)][_0x119499(0x22e)](_0x39bdad,_0x2d3621,_0x11b1a5),'commandState':(_0x3280c9,_0x2adc73)=>this[_0x119499(0x28d)][_0x119499(0x1a9)](_0x3280c9,_0x2adc73),'setCommandState':(_0x62c030,_0x143b9a)=>this[_0x119499(0x28d)][_0x119499(0x263)](_0x62c030,_0x143b9a),'clearCommandState':(_0x460c88,_0x4affad)=>this[_0x119499(0x28d)][_0x119499(0x1fb)](_0x460c88,_0x4affad),'commandStates':_0x500c35=>this[_0x119499(0x28d)][_0x119499(0x1ab)](_0x500c35),'hasActiveSessionLease':_0x196c20=>this[_0x119499(0x270)][_0x119499(0x26a)](_0x196c20),'fast':_0x1127e9=>this[_0x119499(0x266)](_0x119499(0x234),{'runner':_0x119499(0x265),'commandId':_0x119499(0x1ec),'input':_0x1127e9})}),this[_0x119499(0x1e3)][_0x119499(0x2a7)](_0x255843=>this[_0x119499(0x1cf)][_0x119499(0x19b)](_0x255843)),this[_0x119499(0x293)]=new ClaudeCodeRunner(_0x5d48a9[_0x119499(0x293)]),this[_0x119499(0x294)]=new OpenCodeRunner(_0x5d48a9[_0x119499(0x294)]),this[_0x119499(0x206)]=new OpenCodeManagedRunController(this[_0x119499(0x294)],{'intercepted':()=>this[_0x119499(0x202)]!==undefined,'active':this[_0x119499(0x269)][_0x119499(0x1cb)],'parseAttachments':parseRunnerImageAttachments,'persistAttachments':(_0x514b8f,_0x509d0f,_0x2663ea)=>this[_0x119499(0x1d4)][_0x119499(0x2a8)](_0x514b8f,_0x509d0f+_0x119499(0x2ad),_0x2663ea),'emit':(_0x1c2773,_0x5c5c02,_0x2b1db6,_0x1e317d)=>this[_0x119499(0x1f2)][_0x119499(0x1d7)](_0x1c2773,_0x5c5c02,_0x2b1db6,_0x1e317d),'emitItem':(_0x1797d2,_0x3922c3)=>this[_0x119499(0x1c2)](_0x1797d2,_0x3922c3),'adopt':_0x2527cb=>this[_0x119499(0x270)][_0x119499(0x258)](_0x2527cb),'run':_0x3a2634=>{const _0x48325a=_0x119499,_0x1dc30b=this[_0x48325a(0x270)][_0x48325a(0x287)](_0x3a2634);if(_0x1dc30b===undefined)throw new Error(_0x48325a(0x2a2));return _0x1dc30b;},'hasActiveSessionLease':_0x46d526=>this[_0x119499(0x270)][_0x119499(0x26a)](_0x46d526),'promote':(_0x1be537,_0x310ace)=>this[_0x119499(0x198)][_0x119499(0x231)](_0x1be537,_0x310ace),'rememberNative':(_0x44e44b,_0x3bc35c)=>this[_0x119499(0x1f9)][_0x119499(0x1f1)](_0x44e44b,_0x3bc35c),'send':(_0x4f968c,_0x53b2e3)=>this[_0x119499(0x1e8)](_0x4f968c,_0x53b2e3),'createApproval':_0x2b84f7=>this[_0x119499(0x270)][_0x119499(0x2c3)](_0x2b84f7),'expireApproval':_0x40d11d=>{const _0x2a95bc=_0x119499;this[_0x2a95bc(0x270)][_0x2a95bc(0x1a3)](_0x40d11d);},'publishApproval':_0xcfd6ea=>this[_0x119499(0x1f2)][_0x119499(0x1ef)](_0xcfd6ea),'commandState':(_0x5dc30e,_0x7752d)=>this[_0x119499(0x28d)][_0x119499(0x1a9)](_0x5dc30e,_0x7752d),'setCommandState':(_0x2512fc,_0xdc2891)=>this[_0x119499(0x28d)][_0x119499(0x263)](_0x2512fc,_0xdc2891),'clearCommandState':(_0x30a4f1,_0x59c81c)=>this[_0x119499(0x28d)][_0x119499(0x1fb)](_0x30a4f1,_0x59c81c),'commandStates':_0x1cf671=>this[_0x119499(0x28d)][_0x119499(0x1ab)](_0x1cf671)},this[_0x119499(0x25f)]),this[_0x119499(0x207)]=new ClaudeManagedRunController(this[_0x119499(0x293)],{'intercepted':()=>this[_0x119499(0x202)]!==undefined,'active':this[_0x119499(0x269)][_0x119499(0x1cb)],'parseAttachments':parseRunnerImageAttachments,'emit':(_0x52d4f9,_0x2110ac,_0x75af9f,_0x3780c0)=>this[_0x119499(0x1f2)][_0x119499(0x1d7)](_0x52d4f9,_0x2110ac,_0x75af9f,_0x3780c0),'adopt':_0x4e25fd=>this[_0x119499(0x270)][_0x119499(0x258)](_0x4e25fd),'run':_0x2a7800=>this[_0x119499(0x270)][_0x119499(0x287)](_0x2a7800),'hasActiveSessionLease':_0x5bc813=>this[_0x119499(0x270)][_0x119499(0x26a)](_0x5bc813),'session':_0x329c67=>this[_0x119499(0x270)][_0x119499(0x26f)](_0x329c67),'completeCancelled':_0x37cdd8=>this[_0x119499(0x278)][_0x119499(0x2c1)](_0x37cdd8),'requestUserInput':(_0x324401,_0x33f6b9,_0x32c1c4)=>this[_0x119499(0x278)][_0x119499(0x1c9)](_0x324401,_0x33f6b9,_0x32c1c4),'requestApproval':(_0xe42a83,_0x1cb34d,_0x263731)=>this[_0x119499(0x278)][_0x119499(0x2ba)](_0xe42a83,_0x1cb34d,_0x263731),'rememberNative':(_0x4d6b9e,_0x5a2c14)=>this[_0x119499(0x1f9)][_0x119499(0x1f1)](_0x4d6b9e,_0x5a2c14),'promote':(_0x4e9efc,_0x1576e3)=>this[_0x119499(0x198)][_0x119499(0x231)](_0x4e9efc,_0x1576e3),'send':(_0x3e2f85,_0x3294d9)=>this[_0x119499(0x1e8)](_0x3e2f85,_0x3294d9),'emitItem':(_0x101629,_0x1a9a9a)=>this[_0x119499(0x1c2)](_0x101629,_0x1a9a9a),'syncTitle':(_0x4347f4,_0x4e4d0d,_0x2bc2d7)=>this[_0x119499(0x1f9)][_0x119499(0x22e)](_0x4347f4,_0x4e4d0d,_0x2bc2d7),'setChannelToken':(_0x517a9a,_0x4d7d2c)=>this[_0x119499(0x270)][_0x119499(0x240)](_0x517a9a,_0x4d7d2c),'commandState':(_0x20bc2b,_0x534044)=>this[_0x119499(0x28d)][_0x119499(0x1a9)](_0x20bc2b,_0x534044),'setCommandState':(_0x1895f2,_0x56ce98)=>this[_0x119499(0x28d)][_0x119499(0x263)](_0x1895f2,_0x56ce98),'clearCommandState':(_0x294065,_0x23e557)=>this[_0x119499(0x28d)][_0x119499(0x1fb)](_0x294065,_0x23e557),'commandStates':_0x19cc13=>this[_0x119499(0x28d)][_0x119499(0x1ab)](_0x19cc13)}),this[_0x119499(0x2b4)]=new RunnerRegistry([this[_0x119499(0x294)],this[_0x119499(0x1e3)],this[_0x119499(0x293)],...this[_0x119499(0x202)]===undefined?[]:[this[_0x119499(0x202)]]]),this[_0x119499(0x1f9)]=new ManagedRunnerSessionService(this[_0x119499(0x270)],this[_0x119499(0x2b4)],_0x5e752c=>this[_0x119499(0x28f)](_0x119499(0x1ca),{'session':this[_0x119499(0x26c)][_0x119499(0x1ff)](_0x5e752c)})),this[_0x119499(0x278)]=new RunnerInteractionService({'runtime':this[_0x119499(0x270)],'state':this[_0x119499(0x269)],'codex':()=>this[_0x119499(0x1e3)],'claude':()=>this[_0x119499(0x293)],'runners':this[_0x119499(0x2b4)],'emitRun':(_0x39b933,_0x162dd1,_0x199adf,_0x2584ab)=>this[_0x119499(0x1f2)][_0x119499(0x1d7)](_0x39b933,_0x162dd1,_0x199adf,_0x2584ab),'emitItem':(_0x162a45,_0x1fee38)=>this[_0x119499(0x1c2)](_0x162a45,_0x1fee38),'approvalTimeoutMs':this[_0x119499(0x25f)],'publishApproval':_0x607013=>this[_0x119499(0x1f2)][_0x119499(0x1ef)](_0x607013)}),this[_0x119499(0x1d3)]=new RunnerChannelMessageService({'interactions':this[_0x119499(0x278)],'send':(_0x42f112,_0xd02939,_0x13f544)=>this[_0x119499(0x1e8)](_0x42f112,_0xd02939,_0x13f544)}),this[_0x119499(0x26c)]=new SessionPresentationService({'database':()=>this[_0x119499(0x253)],'runtime':this[_0x119499(0x270)],'commands':this[_0x119499(0x28d)],'runners':this[_0x119499(0x2b4)],'capabilities':()=>this[_0x119499(0x23d)],'hasManagedActiveRun':_0x5abb6e=>hasManagedActiveRun(this[_0x119499(0x270)],_0x5abb6e),'externalActivity':_0x5f2239=>this[_0x119499(0x1e9)][_0x119499(0x1c6)][_0x119499(0x1a9)](_0x5f2239),'projectionForNative':_0x18915c=>this[_0x119499(0x1ad)][_0x119499(0x1a6)](_0x18915c)}),this[_0x119499(0x1ad)]=new NativeSessionProjectionService({'database':()=>this[_0x119499(0x253)],'nodeId':()=>this[_0x119499(0x23f)]?.[_0x119499(0x1d8)]??_0x119499(0x25c),'runtime':this[_0x119499(0x270)],'runners':this[_0x119499(0x2b4)],'capabilities':()=>this[_0x119499(0x23d)],'state':this[_0x119499(0x1e9)],'commands':this[_0x119499(0x28d)],'present':_0x3df07c=>this[_0x119499(0x26c)][_0x119499(0x1ff)](_0x3df07c)}),this[_0x119499(0x255)]=new ConversationHistoryService({'runtime':this[_0x119499(0x270)],'runners':this[_0x119499(0x2b4)],'capabilities':()=>this[_0x119499(0x23d)],'attachments':this[_0x119499(0x1d4)],'snapshotSequence':()=>this[_0x119499(0x2c0)][_0x119499(0x2b9)](),'hasManagedActiveRun':_0x1b43e5=>hasManagedActiveRun(this[_0x119499(0x270)],_0x1b43e5),'setExternalActivity':(_0x27978d,_0x449d0c)=>this[_0x119499(0x1e9)][_0x119499(0x1c6)][_0x119499(0x263)](_0x27978d,_0x449d0c)}),this[_0x119499(0x2a3)]=new ConversationSegmentService((_0x1c2b71,_0x4c06dd)=>this[_0x119499(0x255)][_0x119499(0x2a0)](_0x1c2b71,_0x4c06dd)),this[_0x119499(0x20c)]=new SessionContextService({'runners':this[_0x119499(0x2b4)],'session':_0x499a2e=>this[_0x119499(0x270)][_0x119499(0x26f)](_0x499a2e),'stopped':()=>this[_0x119499(0x1b5)],'publish':_0x1d6c0d=>this[_0x119499(0x28f)](_0x119499(0x1ca),_0x1d6c0d)}),this[_0x119499(0x29f)]=new RunWorkbenchService({'runtime':this[_0x119499(0x270)],'readImage':async(_0x2a027d,_0x4869e6)=>this[_0x119499(0x1d4)][_0x119499(0x2a0)](_0x2a027d,_0x4869e6)??await this[_0x119499(0x1d4)][_0x119499(0x20d)](_0x2a027d,_0x4869e6),'respondUserInput':(_0x2cb0cf,_0x290e5,_0xcdad8)=>this[_0x119499(0x278)][_0x119499(0x1ce)](_0x2cb0cf,_0x290e5,_0xcdad8),'pauseQueue':_0x5baa88=>this[_0x119499(0x1df)][_0x119499(0x296)](_0x5baa88),'emitRun':(_0x1a4758,_0x116182,_0x11586e,_0x3d8081)=>this[_0x119499(0x1f2)][_0x119499(0x1d7)](_0x1a4758,_0x116182,_0x11586e,_0x3d8081),'control':(_0x4e8edd,_0x59fdef)=>this[_0x119499(0x21e)][_0x119499(0x2b7)](JSON[_0x119499(0x1bb)](createEnvelope(_0x4e8edd,_0x59fdef))),'markInterrupted':_0x4bb743=>this[_0x119499(0x269)][_0x119499(0x254)][_0x119499(0x2ca)](_0x4bb743)}),this[_0x119499(0x2a1)]=new SessionQueryService({'runtime':this[_0x119499(0x270)],'runners':this[_0x119499(0x2b4)],'resolve':_0x33b2ca=>this[_0x119499(0x1ad)][_0x119499(0x1f3)](_0x33b2ca),'present':_0x20a2da=>this[_0x119499(0x26c)][_0x119499(0x1ff)](_0x20a2da),'history':(_0x174021,_0x4ed4d7)=>this[_0x119499(0x255)][_0x119499(0x2a0)](_0x174021,_0x4ed4d7),'segments':(_0x216992,_0x44d259)=>this[_0x119499(0x2a3)][_0x119499(0x2a0)](_0x216992,_0x44d259),'context':this[_0x119499(0x20c)],'discover':(_0x3a7761,_0x1386a2)=>this[_0x119499(0x1ad)][_0x119499(0x28a)](_0x3a7761,_0x1386a2),'workspaceIdForCwd':_0xe485a0=>this[_0x119499(0x253)]?.[_0x119499(0x261)]()[_0x119499(0x249)](_0x124bbe=>_0x124bbe[_0x119499(0x2c6)]===_0xe485a0)?.['id']}),this[_0x119499(0x1ac)]=new ContinuousRunCoordinator({'runtime':this[_0x119499(0x270)],'emitQueue':(_0x42e326,_0x2a6815)=>this[_0x119499(0x1f2)][_0x119499(0x24f)](_0x42e326,_0x2a6815),'clearImages':_0x1343a9=>this[_0x119499(0x1d4)][_0x119499(0x1fb)](_0x1343a9),'cleanupAttachments':_0x2b352a=>this[_0x119499(0x1d4)][_0x119499(0x1f4)](_0x2b352a),'migrateAssets':(_0xcccb44,_0x24c205)=>this[_0x119499(0x1d4)][_0x119499(0x200)](_0xcccb44,_0x24c205),'emitRun':(_0x44c385,_0x4d4c26,_0x541d99,_0x149f4c)=>this[_0x119499(0x1f2)][_0x119499(0x1d7)](_0x44c385,_0x4d4c26,_0x541d99,_0x149f4c),'emitConversation':_0x279f08=>this[_0x119499(0x233)](_0x279f08),'control':(_0x30a8c8,_0x331672)=>this[_0x119499(0x21e)][_0x119499(0x2b7)](JSON[_0x119499(0x1bb)](createEnvelope(_0x30a8c8,_0x331672))),'stopped':()=>this[_0x119499(0x1b5)],'markInterrupted':_0x1333f9=>this[_0x119499(0x269)][_0x119499(0x254)][_0x119499(0x2ca)](_0x1333f9),'mcps':_0x84bd56=>this[_0x119499(0x253)]?.[_0x119499(0x1a4)](_0x84bd56)??[]}),this[_0x119499(0x1df)]=new WorkspaceQueueWorkbenchService({'runtime':this[_0x119499(0x270)],'coordinator':this[_0x119499(0x1ac)],'emit':(_0x328c6d,_0x430528)=>this[_0x119499(0x1f2)][_0x119499(0x24f)](_0x328c6d,_0x430528),'prepareInput':(_0x40f6d1,_0x1bd5ba,_0x1ae611)=>this[_0x119499(0x2b4)][_0x119499(0x1d6)](_0x40f6d1)[_0x119499(0x2b5)](_0x1bd5ba,_0x1ae611)}),this[_0x119499(0x198)]=new SessionIdentityService({'runtime':this[_0x119499(0x270)],'persist':(_0x1eefc4,_0x48b58e)=>{const _0x1635a7=_0x119499;if(_0x1eefc4[_0x1635a7(0x208)]===null||_0x1eefc4[_0x1635a7(0x27f)]===null||_0x1eefc4[_0x1635a7(0x2ac)]===null)return;this[_0x1635a7(0x253)]?.[_0x1635a7(0x21f)]({'runner':_0x1eefc4[_0x1635a7(0x2cc)],'externalSessionId':_0x48b58e,'workspaceId':_0x1eefc4[_0x1635a7(0x2b0)],'model':_0x1eefc4[_0x1635a7(0x208)],'effort':_0x1eefc4[_0x1635a7(0x27f)],'access':_0x1eefc4[_0x1635a7(0x2ac)]});},'migrateCommands':(_0x348082,_0x37b5e2)=>this[_0x119499(0x28d)][_0x119499(0x1e7)](_0x348082,_0x37b5e2),'migrateQueue':(_0x152292,_0x7c16a9)=>this[_0x119499(0x1ac)][_0x119499(0x26d)](_0x152292,_0x7c16a9),'migrateRunnerState':(_0xa51ef8,_0x24db04)=>this[_0x119499(0x1f2)][_0x119499(0x241)](_0xa51ef8,_0x24db04),'emitSession':_0x3da408=>this[_0x119499(0x28f)](_0x119499(0x1ca),{'session':_0x3da408}),'emitRun':_0x367d16=>this[_0x119499(0x28f)](_0x119499(0x1b6),{'run':_0x367d16}),'emitQueue':_0x4bf2dc=>this[_0x119499(0x1ac)][_0x119499(0x25b)](_0x4bf2dc),'emitTurn':_0x20ef57=>this[_0x119499(0x233)](_0x20ef57)}),this[_0x119499(0x2a9)]=new SessionLifecycleService({'database':()=>{const _0x92bab5=_0x119499;if(this[_0x92bab5(0x253)]===undefined)throw new Error(_0x92bab5(0x2b2));return this[_0x92bab5(0x253)];},'runtime':this[_0x119499(0x270)],'runners':this[_0x119499(0x2b4)],'projection':this[_0x119499(0x1ad)],'identity':this[_0x119499(0x198)],'present':_0x5e35ec=>this[_0x119499(0x26c)][_0x119499(0x1ff)](_0x5e35ec),'emitSession':_0x2d0e6e=>this[_0x119499(0x28f)](_0x119499(0x1ca),{'session':this[_0x119499(0x26c)][_0x119499(0x1ff)](_0x2d0e6e)}),'execute':(_0x5ed65d,_0x3d9127)=>this[_0x119499(0x266)](_0x5ed65d,_0x3d9127),'interceptedSessionId':_0x4db79=>this[_0x119499(0x202)]===undefined?undefined:_0x119499(0x2b3)+_0x4db79}),this[_0x119499(0x260)]=new ExternalSessionResumeService({'runtime':this[_0x119499(0x270)],'runners':this[_0x119499(0x2b4)],'state':this[_0x119499(0x1e9)],'available':_0x13291d=>this[_0x119499(0x2b4)][_0x119499(0x1d6)](_0x13291d)[_0x119499(0x1a5)](this[_0x119499(0x23d)]),'projectionFor':_0x26527f=>this[_0x119499(0x1ad)][_0x119499(0x1a6)](_0x26527f),'managedAliasFor':_0x3156d2=>this[_0x119499(0x1ad)][_0x119499(0x22c)](_0x3156d2),'ensureConfiguration':_0x153a04=>this[_0x119499(0x1ad)][_0x119499(0x1b0)](_0x153a04),'configuration':_0x4f9060=>this[_0x119499(0x1ad)][_0x119499(0x251)](_0x4f9060),'workspacePath':_0x47a63a=>this[_0x119499(0x253)]?.[_0x119499(0x2c7)](_0x47a63a)?.[_0x119499(0x2c6)],'rememberNative':(_0x500020,_0x41efc7)=>this[_0x119499(0x1f9)][_0x119499(0x1f1)](_0x500020,_0x41efc7),'resolve':_0x540d14=>this[_0x119499(0x1ad)][_0x119499(0x1f3)](_0x540d14)}),this[_0x119499(0x239)]=new SessionCommandService({'runtime':this[_0x119499(0x270)],'runners':this[_0x119499(0x2b4)],'projection':this[_0x119499(0x1ad)],'resume':this[_0x119499(0x260)],'profiles':()=>this[_0x119499(0x26b)][_0x119499(0x221)](),'present':_0x55dc3e=>this[_0x119499(0x26c)][_0x119499(0x1ff)](_0x55dc3e),'resumeQueueAfterCommandRun':_0x4aecd6=>this[_0x119499(0x1df)][_0x119499(0x2bf)](_0x4aecd6)}),this[_0x119499(0x288)]=new SessionMessageService({'runtime':this[_0x119499(0x270)],'uploads':this[_0x119499(0x23c)],'attachments':this[_0x119499(0x1d4)],'commands':this[_0x119499(0x28d)],'coordinator':this[_0x119499(0x1ac)],'runners':this[_0x119499(0x2b4)],'resolve':_0x18bba5=>this[_0x119499(0x260)][_0x119499(0x1cc)](_0x18bba5),'present':_0x576082=>this[_0x119499(0x26c)][_0x119499(0x1ff)](_0x576082),'emitSession':_0x5c9bb7=>this[_0x119499(0x28f)](_0x119499(0x1ca),{'session':this[_0x119499(0x26c)][_0x119499(0x1ff)](_0x5c9bb7)}),'channelToken':_0x59d0db=>{const _0x35ffce=_0x119499,_0x3e9e84=this[_0x35ffce(0x270)][_0x35ffce(0x26f)](_0x59d0db);return _0x3e9e84?.[_0x35ffce(0x283)]??undefined;}}),this[_0x119499(0x273)]=new SessionCatalogService({'database':()=>{const _0x4c9dc7=_0x119499;if(this[_0x4c9dc7(0x253)]===undefined)throw new Error(_0x4c9dc7(0x2b2));return this[_0x4c9dc7(0x253)];},'nodeId':()=>this[_0x119499(0x23f)]?.[_0x119499(0x1d8)]??_0x119499(0x25c),'runtime':this[_0x119499(0x270)],'runners':this[_0x119499(0x2b4)],'projection':this[_0x119499(0x1ad)],'resume':this[_0x119499(0x260)],'cachedNative':()=>[...this[_0x119499(0x1e9)][_0x119499(0x1f0)][_0x119499(0x219)]()],'cachedWorkspace':_0xb4302=>this[_0x119499(0x256)][_0x119499(0x197)](_0xb4302),'present':_0x18bc8a=>this[_0x119499(0x26c)][_0x119499(0x1ff)](_0x18bc8a),'projectionForNative':_0x207ae1=>this[_0x119499(0x1ad)][_0x119499(0x1a6)](_0x207ae1),'nativeIds':_0x83af4a=>this[_0x119499(0x1ad)][_0x119499(0x1e1)](_0x83af4a),'forget':(_0x544d1c,_0x414b98)=>this[_0x119499(0x1ad)][_0x119499(0x1ed)](_0x544d1c,_0x414b98),'refreshActivity':_0x6076a3=>this[_0x119499(0x255)][_0x119499(0x252)](_0x6076a3),'externalActivity':_0x58b0e2=>this[_0x119499(0x1e9)][_0x119499(0x1c6)][_0x119499(0x1a9)](_0x58b0e2),'history':(_0x328daf,_0x16ab94)=>this[_0x119499(0x255)][_0x119499(0x2a0)](_0x328daf,_0x16ab94),'emitSession':_0x20888f=>this[_0x119499(0x28f)](_0x119499(0x1ca),{'session':this[_0x119499(0x26c)][_0x119499(0x1ff)](_0x20888f)})}),this[_0x119499(0x1e3)][_0x119499(0x196)]({'start':_0x21c745=>this[_0x119499(0x1cf)][_0x119499(0x21c)](_0x21c745),'cancel':(_0xe6fd78,_0x2029bc)=>{const _0x3bf4f4=_0x119499,_0x50550f=this[_0x3bf4f4(0x1e3)][_0x3bf4f4(0x27c)][_0x3bf4f4(0x259)][_0x3bf4f4(0x1a9)](_0xe6fd78);if(_0x50550f?.[_0x3bf4f4(0x1dc)]===undefined)return![];return void this[_0x3bf4f4(0x278)][_0x3bf4f4(0x20b)](_0xe6fd78,_0x50550f[_0x3bf4f4(0x29b)],_0x50550f[_0x3bf4f4(0x1dc)],_0x50550f[_0x3bf4f4(0x1b8)],_0x2029bc===_0x3bf4f4(0x23e)?_0x3bf4f4(0x20a):_0x3bf4f4(0x22a)),!![];},'decideApproval':_0x15d7e2=>this[_0x119499(0x278)][_0x119499(0x2c4)](_0x15d7e2[_0x119499(0x225)],_0x15d7e2[_0x119499(0x23a)])}),this[_0x119499(0x293)][_0x119499(0x196)]({'start':_0x40d06b=>this[_0x119499(0x207)][_0x119499(0x21c)](_0x40d06b),'cancel':(_0x2aaab2,_0x52043c)=>this[_0x119499(0x278)][_0x119499(0x20f)](_0x2aaab2,_0x52043c),'decideApproval':_0x365d2d=>this[_0x119499(0x278)][_0x119499(0x1d1)](_0x365d2d[_0x119499(0x225)],_0x365d2d[_0x119499(0x23a)])}),this[_0x119499(0x294)][_0x119499(0x196)]({'start':_0x4e337f=>this[_0x119499(0x206)][_0x119499(0x21c)](_0x4e337f),'cancel':(_0x51c3fc,_0x2f0c86)=>this[_0x119499(0x206)][_0x119499(0x1e4)](_0x51c3fc,_0x2f0c86),'decideApproval':_0x50f184=>this[_0x119499(0x206)][_0x119499(0x218)](_0x50f184),'respondUserInput':(_0x1eee02,_0x3e3463,_0x217f5d)=>this[_0x119499(0x206)][_0x119499(0x1ce)](_0x1eee02,_0x3e3463,_0x217f5d)}),this[_0x119499(0x1e3)][_0x119499(0x1a1)]({'execute':(_0x4bc24b,_0x78b074,_0x5d3055,_0x199703)=>this[_0x119499(0x1cf)][_0x119499(0x272)](_0x4bc24b,_0x78b074,_0x5d3055,_0x199703)}),this[_0x119499(0x293)][_0x119499(0x1a1)]({'execute':(_0x2d5978,_0xe60742,_0x147c6e,_0x1ffab5)=>this[_0x119499(0x207)][_0x119499(0x272)](_0x2d5978,_0xe60742,_0x147c6e,_0x1ffab5)}),this[_0x119499(0x294)][_0x119499(0x1a1)]({'execute':(_0x1a3841,_0x39d190,_0x1f7e64,_0x309ab2)=>this[_0x119499(0x206)][_0x119499(0x272)](_0x1a3841,_0x39d190,_0x309ab2)});const _0x18b7bf=this[_0x119499(0x202)]===undefined||this[_0x119499(0x1e0)]===undefined?undefined:new FakeManagedRunService({'runner':this[_0x119499(0x202)],'script':this[_0x119499(0x1e0)],'runners':this[_0x119499(0x2b4)],'runtime':this[_0x119499(0x270)],'state':this[_0x119499(0x269)],'emitRun':(_0xd63a8e,_0x251df2,_0x19c0d7,_0x2f1ec3)=>this[_0x119499(0x1f2)][_0x119499(0x1d7)](_0xd63a8e,_0x251df2,_0x19c0d7,_0x2f1ec3),'publishApproval':_0x4cfb7e=>this[_0x119499(0x1f2)][_0x119499(0x1ef)](_0x4cfb7e),'disconnect':()=>this[_0x119499(0x29d)][_0x119499(0x1bf)](-0xd01*0x1+-0x251*-0x3+0xa*0x22c,_0x119499(0x216))});this[_0x119499(0x202)]?.[_0x119499(0x196)]({'start':_0x3bc431=>_0x18b7bf?.[_0x119499(0x21c)](_0x3bc431),'cancel':(_0x63a8e3,_0x700da5)=>_0x700da5===_0x119499(0x23e)?this[_0x119499(0x202)]?.[_0x119499(0x1e4)](_0x63a8e3)??![]:this[_0x119499(0x202)]?.[_0x119499(0x271)](_0x63a8e3)??![],'decideApproval':_0xfa913d=>this[_0x119499(0x202)]?.[_0x119499(0x27d)](_0xfa913d[_0x119499(0x292)],_0xfa913d[_0x119499(0x225)],_0xfa913d[_0x119499(0x23a)])??![]}),this[_0x119499(0x242)]=_0x5d48a9[_0x119499(0x242)]??new RunnerUsageReader(),this[_0x119499(0x253)]=_0x5d48a9[_0x119499(0x253)],this[_0x119499(0x262)]=_0x5d48a9[_0x119499(0x262)]??new TerminalManager({'platform':this[_0x119499(0x23d)][_0x119499(0x1b4)]===_0x119499(0x280)?_0x119499(0x212):_0x119499(0x29e)}),this[_0x119499(0x262)][_0x119499(0x1bc)](_0x4acf82=>this[_0x119499(0x256)][_0x119499(0x199)](_0x4acf82)),this[_0x119499(0x19e)]=new NodeTerminalChannel({'config':()=>this[_0x119499(0x23f)],'controlConnected':()=>this[_0x119499(0x29d)][_0x119499(0x1ba)](),'stopped':()=>this[_0x119499(0x1b5)],'reconnect':this[_0x119499(0x1f7)],'reconnectDelay':nextReconnectDelay,'manager':this[_0x119499(0x262)]}),this[_0x119499(0x29d)]=new NodeControlChannel({'config':()=>this[_0x119499(0x23f)],'capabilities':()=>this[_0x119499(0x23d)],'stopped':()=>this[_0x119499(0x1b5)],'reconnect':this[_0x119499(0x1f7)],'reconnectDelay':nextReconnectDelay,'onConnecting':_0x370573=>{const _0x41eaab=_0x119499;this[_0x41eaab(0x1c8)][_0x41eaab(0x232)](),nodeLog(_0x41eaab(0x29c),{'attempt':_0x370573});},'onReconnectScheduled':()=>this[_0x119499(0x1c8)][_0x119499(0x2cb)](),'onMessage':_0x4b3bad=>this[_0x119499(0x24d)](_0x4b3bad),'onClose':(_0x5bbb99,_0x3b9554)=>{const _0x204355=_0x119499;this[_0x204355(0x19e)][_0x204355(0x1aa)]();if(_0x5bbb99===0x293*-0xe+-0x1*0x153+0xa99*0x5&&_0x3b9554===_0x204355(0x224))nodeLog(_0x204355(0x209),{'message':_0x204355(0x1a8)});if(_0x5bbb99===0x23c7+-0x4c1*0x6+-0x1*-0x862||_0x5bbb99===-0x36d*-0x6+-0x6de+-0x9c7*0x1)void this[_0x204355(0x262)][_0x204355(0x226)]();}}),this[_0x119499(0x21e)]=new NodeControlMessageService({'config':()=>this[_0x119499(0x23f)],'register':(_0x21fed,_0x629724)=>this[_0x119499(0x289)][_0x119499(0x2bd)](_0x21fed,_0x629724),'connected':()=>this[_0x119499(0x289)][_0x119499(0x1ba)](),'close':(_0x2eca97,_0x426044)=>this[_0x119499(0x29d)][_0x119499(0x1bf)](_0x2eca97,_0x426044),'inspectWorkspace':_0x5e7905=>this[_0x119499(0x256)][_0x119499(0x236)](_0x5e7905),'handleNodeRequest':_0xbf8f75=>this[_0x119499(0x2be)][_0x119499(0x2b7)](_0xbf8f75),'reconcileRuns':_0xf74958=>this[_0x119499(0x1f2)][_0x119499(0x2a5)](_0xf74958),'runners':this[_0x119499(0x2b4)],'deliverSessionChannelMessage':_0x5accef=>this[_0x119499(0x1d3)][_0x119499(0x2b7)](_0x5accef),'completeUncontrolledCancellation':_0x193554=>{const _0x2beb3e=_0x119499,_0x394834=this[_0x2beb3e(0x270)][_0x2beb3e(0x287)](_0x193554);if(_0x394834?.[_0x2beb3e(0x246)]===_0x2beb3e(0x2a6))this[_0x2beb3e(0x278)][_0x2beb3e(0x2c1)](_0x193554);},'send':(_0x4b159d,_0x196c91,_0x3772bd)=>this[_0x119499(0x1e8)](_0x4b159d,_0x196c91,_0x3772bd)}),this[_0x119499(0x2be)]=new NodeRequestService({'nodeId':()=>this[_0x119499(0x23f)]?.[_0x119499(0x1d8)],'databaseAvailable':()=>this[_0x119499(0x253)]!==undefined,'execute':(_0x3eb4ac,_0xef2611)=>this[_0x119499(0x266)](_0x3eb4ac,_0xef2611),'send':(_0x3e4f11,_0x11802c,_0x81517a)=>this[_0x119499(0x1e8)](_0x3e4f11,_0x11802c,_0x81517a)}),this[_0x119499(0x256)]=new NodeWorkspaceCoordinator({'config':()=>this[_0x119499(0x23f)],'database':()=>this[_0x119499(0x253)],'watches':this[_0x119499(0x1be)],'sessions':this[_0x119499(0x228)],'changes':this[_0x119499(0x299)],'emit':(_0x255623,_0x276f73)=>void this[_0x119499(0x1fe)]?.[_0x119499(0x2bb)](_0x255623,_0x276f73),'send':(_0x185c39,_0x330c3e,_0x26528e)=>this[_0x119499(0x1e8)](_0x185c39,_0x330c3e,_0x26528e)}),this[_0x119499(0x1f2)]=new NodeRunEventBridge({'runtime':this[_0x119499(0x270)],'state':this[_0x119499(0x269)],'events':this[_0x119499(0x1e5)],'emitWorkbench':(_0x5bc9ad,_0xb1e825)=>this[_0x119499(0x28f)](_0x5bc9ad,_0xb1e825),'queues':this[_0x119499(0x1df)],'codex':this[_0x119499(0x1e3)],'claude':this[_0x119499(0x293)],'openCode':this[_0x119499(0x294)],'send':(_0x37a4cc,_0x44c9d6,_0x451c55)=>this[_0x119499(0x1e8)](_0x37a4cc,_0x44c9d6,_0x451c55)}),this[_0x119499(0x289)]=new NodeConnectionLifecycleService({'config':()=>this[_0x119499(0x23f)],'setConfig':_0x2d1125=>this[_0x119499(0x23f)]=_0x2d1125,'configPath':this[_0x119499(0x1e2)],'capabilities':()=>this[_0x119499(0x23d)],'detectCapabilities':this[_0x119499(0x1a7)],'capabilitiesProvided':this[_0x119499(0x1ee)],'stopped':()=>this[_0x119499(0x1b5)],'setCapabilities':_0x4f19fe=>this[_0x119499(0x23d)]={..._0x4f19fe,'metadata':upgradeMetadata(_0x4f19fe[_0x119499(0x2c9)],this[_0x119499(0x26e)][_0x119499(0x227)]())},'control':this[_0x119499(0x29d)],'terminal':this[_0x119499(0x19e)],'metrics':this[_0x119499(0x1c8)],'heartbeatMs':HEARTBEAT_MS,'refreshMs':CAPABILITY_REFRESH_MS,'onConnected':()=>this[_0x119499(0x245)][_0x119499(0x1c1)]()});const _0x1f66e2=()=>{const _0x3606ab=_0x119499;if(this[_0x3606ab(0x253)]===undefined)throw new Error(_0x3606ab(0x2b2));return this[_0x3606ab(0x253)];};this[_0x119499(0x26b)]=new RunnerService(_0x1f66e2,()=>this[_0x119499(0x23d)],this[_0x119499(0x2b4)],this[_0x119499(0x242)]),this[_0x119499(0x1b3)]=new WorkbenchManifestService({'capabilities':()=>this[_0x119499(0x23d)],'runners':this[_0x119499(0x26b)],'terminals':this[_0x119499(0x262)]}),this[_0x119499(0x2ae)]=new TerminalService(_0x1f66e2,this[_0x119499(0x262)]),this[_0x119499(0x21b)]=new WorkspaceService(_0x1f66e2,()=>{const _0x1e83c4=_0x119499;if(this[_0x1e83c4(0x23f)]===undefined)throw new Error(_0x1e83c4(0x2bc));return this[_0x1e83c4(0x23f)];},this[_0x119499(0x270)],_0x5cdaf1=>{const _0x4c2c4a=_0x119499;this[_0x4c2c4a(0x1fc)][_0x4c2c4a(0x22b)](_0x5cdaf1),this[_0x4c2c4a(0x256)][_0x4c2c4a(0x25e)](_0x5cdaf1),this[_0x4c2c4a(0x228)][_0x4c2c4a(0x282)](_0x5cdaf1),this[_0x4c2c4a(0x256)][_0x4c2c4a(0x2c5)](_0x5cdaf1);}),this[_0x119499(0x1fe)]=new WorkspaceWorkbenchService({'requireWorkspace':_0x276f79=>this[_0x119499(0x256)][_0x119499(0x1d6)](_0x276f79),'watch':this[_0x119499(0x1be)],'files':this[_0x119499(0x1fc)],'uploads':this[_0x119499(0x23c)],'changes':this[_0x119499(0x299)],'listSessions':_0x22454a=>this[_0x119499(0x266)](_0x119499(0x220),{'workspaceId':_0x22454a,'limit':0x14}),'invalidate':_0xf41dd1=>this[_0x119499(0x256)][_0x119499(0x282)](_0xf41dd1),'nodeId':()=>this[_0x119499(0x23f)]?.[_0x119499(0x1d8)]??_0x119499(0x22f),'nodeGeneration':()=>this[_0x119499(0x213)],'emitWatchEvent':_0x53de36=>this[_0x119499(0x1e8)](_0x119499(0x19c),_0x53de36)}),this[_0x119499(0x298)][_0x119499(0x1bd)](this[_0x119499(0x26b)][_0x119499(0x235)]()),this[_0x119499(0x298)][_0x119499(0x1bd)](this[_0x119499(0x2ae)][_0x119499(0x235)]()),this[_0x119499(0x298)][_0x119499(0x1bd)](this[_0x119499(0x21b)][_0x119499(0x235)]()),this[_0x119499(0x298)][_0x119499(0x1bd)](this[_0x119499(0x1fe)][_0x119499(0x235)]()),this[_0x119499(0x298)][_0x119499(0x1bd)](this[_0x119499(0x29f)][_0x119499(0x235)]()),this[_0x119499(0x298)][_0x119499(0x1bd)](this[_0x119499(0x1b2)][_0x119499(0x235)]()),this[_0x119499(0x298)][_0x119499(0x1bd)](this[_0x119499(0x2a1)][_0x119499(0x235)]()),this[_0x119499(0x298)][_0x119499(0x1bd)](this[_0x119499(0x2a9)][_0x119499(0x235)]()),this[_0x119499(0x298)][_0x119499(0x1bd)](this[_0x119499(0x288)][_0x119499(0x235)]()),this[_0x119499(0x298)][_0x119499(0x1bd)](this[_0x119499(0x273)][_0x119499(0x235)]()),this[_0x119499(0x298)][_0x119499(0x1bd)](this[_0x119499(0x239)][_0x119499(0x235)]()),this[_0x119499(0x298)][_0x119499(0x1bd)](this[_0x119499(0x1df)][_0x119499(0x235)]()),this[_0x119499(0x298)][_0x119499(0x1bd)](new SkillNodeOperationService(_0x1f66e2,()=>{const _0xe89716=_0x119499;if(this[_0xe89716(0x23f)]===undefined)throw new Error(_0xe89716(0x2bc));return this[_0xe89716(0x23f)];})[_0x119499(0x235)]()),this[_0x119499(0x298)][_0x119499(0x1bd)](new McpNodeOperationService(_0x1f66e2)[_0x119499(0x235)]()),this[_0x119499(0x298)][_0x119499(0x2bd)](_0x119499(0x2c8),()=>({'metrics':{...this[_0x119499(0x1c8)][_0x119499(0x227)](),'activeRuns':this[_0x119499(0x269)][_0x119499(0x1cb)][_0x119499(0x1dd)],'workspaceLeases':this[_0x119499(0x270)][_0x119499(0x2c2)]()}})),this[_0x119499(0x298)][_0x119499(0x2bd)](_0x119499(0x217),_0x807da3=>this[_0x119499(0x26e)][_0x119499(0x1af)](_0x807da3)),this[_0x119499(0x298)][_0x119499(0x2bd)](_0x119499(0x2a4),()=>this[_0x119499(0x26e)][_0x119499(0x1e4)]()),this[_0x119499(0x298)][_0x119499(0x2bd)](_0x119499(0x214),async()=>({'manifest':await this[_0x119499(0x1b3)][_0x119499(0x2a0)]()}));}async[_0x462b86(0x21c)](){const _0x2cac86=_0x462b86;this[_0x2cac86(0x1b5)]=![],this[_0x2cac86(0x23f)]??=await loadNodeConfig(this[_0x2cac86(0x1e2)]),await this[_0x2cac86(0x26e)][_0x2cac86(0x268)](resolve(dirname(nodeDatabasePath(this[_0x2cac86(0x23f)],this[_0x2cac86(0x1e2)])),_0x2cac86(0x19f))),await assertLocalSqlitePath(nodeDatabasePath(this[_0x2cac86(0x23f)],this[_0x2cac86(0x1e2)])),this[_0x2cac86(0x253)]??=new NodeDatabase(nodeDatabasePath(this[_0x2cac86(0x23f)],this[_0x2cac86(0x1e2)]),()=>this[_0x2cac86(0x23f)]?.[_0x2cac86(0x1d8)]??_0x2cac86(0x24e)),this[_0x2cac86(0x253)][_0x2cac86(0x25d)](),this[_0x2cac86(0x289)][_0x2cac86(0x21c)](),this[_0x2cac86(0x29d)][_0x2cac86(0x201)]();}[_0x462b86(0x1d0)](){const _0x3603de=_0x462b86;this[_0x3603de(0x1b5)]=!![],this[_0x3603de(0x245)][_0x3603de(0x22b)](),this[_0x3603de(0x26e)][_0x3603de(0x1d0)](),this[_0x3603de(0x289)][_0x3603de(0x1d0)]();for(const _0x577740 of this[_0x3603de(0x293)][_0x3603de(0x27c)][_0x3603de(0x210)][_0x3603de(0x219)]()){clearTimeout(_0x577740[_0x3603de(0x1de)]),_0x577740[_0x3603de(0x1f3)](_0x3603de(0x2ab));}this[_0x3603de(0x293)][_0x3603de(0x27c)][_0x3603de(0x210)][_0x3603de(0x1fb)]();for(const _0x13d9a2 of this[_0x3603de(0x293)][_0x3603de(0x27c)][_0x3603de(0x286)][_0x3603de(0x219)]()){clearTimeout(_0x13d9a2[_0x3603de(0x1de)]),_0x13d9a2[_0x3603de(0x243)](_0x3603de(0x1d9));}this[_0x3603de(0x293)][_0x3603de(0x27c)][_0x3603de(0x286)][_0x3603de(0x1fb)](),this[_0x3603de(0x1b2)][_0x3603de(0x1fb)](),this[_0x3603de(0x198)][_0x3603de(0x22b)](),this[_0x3603de(0x2a9)][_0x3603de(0x1fb)](),this[_0x3603de(0x1ac)][_0x3603de(0x1fb)](),this[_0x3603de(0x1e5)][_0x3603de(0x1fb)](),this[_0x3603de(0x20c)][_0x3603de(0x22b)]();for(const _0x5e748b of this[_0x3603de(0x293)][_0x3603de(0x27c)][_0x3603de(0x259)][_0x3603de(0x219)]())_0x5e748b[_0x3603de(0x2b7)][_0x3603de(0x1e4)]();this[_0x3603de(0x293)][_0x3603de(0x27c)][_0x3603de(0x259)][_0x3603de(0x1fb)](),this[_0x3603de(0x1d4)][_0x3603de(0x22b)](),void this[_0x3603de(0x23c)][_0x3603de(0x226)](),this[_0x3603de(0x1fc)][_0x3603de(0x22b)](),this[_0x3603de(0x1be)][_0x3603de(0x19a)](),this[_0x3603de(0x228)][_0x3603de(0x1fb)](),this[_0x3603de(0x299)][_0x3603de(0x1fb)](),void this[_0x3603de(0x2b4)][_0x3603de(0x1d0)](),void this[_0x3603de(0x262)][_0x3603de(0x226)](),this[_0x3603de(0x19e)][_0x3603de(0x1d0)](),this[_0x3603de(0x29d)][_0x3603de(0x1d0)](),this[_0x3603de(0x253)]?.[_0x3603de(0x1bf)](),this[_0x3603de(0x253)]=undefined;}[_0x462b86(0x24d)]=_0x2cc0d5=>this[_0x462b86(0x21e)][_0x462b86(0x2b7)](_0x2cc0d5);[_0x462b86(0x23b)]=(_0x304cb3,_0x1eb76e,_0x669eca,_0x2dac41)=>this[_0x462b86(0x1f2)][_0x462b86(0x1d7)](_0x304cb3,_0x1eb76e,_0x669eca,_0x2dac41);[_0x462b86(0x1c2)]=(_0x4f619b,_0x3cf04e)=>{const _0x4bbaf0=_0x462b86;this[_0x4bbaf0(0x1e5)][_0x4bbaf0(0x1b1)](_0x4f619b);const _0x1356a8=isPlainRecord(_0x3cf04e)&&typeof _0x3cf04e[_0x4bbaf0(0x1c7)]===_0x4bbaf0(0x237)?_0x3cf04e[_0x4bbaf0(0x1c7)]:undefined,_0x4a5873=isPlainRecord(_0x3cf04e)&&typeof _0x3cf04e[_0x4bbaf0(0x223)]===_0x4bbaf0(0x237)?_0x3cf04e[_0x4bbaf0(0x223)]:undefined,_0x558162=this[_0x4bbaf0(0x270)][_0x4bbaf0(0x1d5)](_0x4f619b),_0x534059=_0x1356a8===undefined||_0x558162===undefined?undefined:conversationSegmentIdentityForItem(_0x558162,_0x1356a8,_0x4a5873);this[_0x4bbaf0(0x1f2)][_0x4bbaf0(0x1d7)](_0x4f619b,_0x4bbaf0(0x203),_0x534059===undefined||!isPlainRecord(_0x3cf04e)?_0x3cf04e:{..._0x3cf04e,'segmentId':_0x534059['id'],'segmentIndex':_0x534059[_0x4bbaf0(0x2b1)]});};[_0x462b86(0x233)]=_0x2f9f5b=>{const _0x1dbaae=_0x462b86,_0x4d35d2=isPlainRecord(_0x2f9f5b)&&Array[_0x1dbaae(0x257)](_0x2f9f5b[_0x1dbaae(0x275)])?conversationSegments(_0x2f9f5b):[];this[_0x1dbaae(0x28f)](_0x1dbaae(0x1c4),{'turn':_0x2f9f5b,'segments':_0x4d35d2});};[_0x462b86(0x28f)]=(_0x222117,_0x545afc)=>{const _0x2677e4=_0x462b86,_0x4b42df=this[_0x2677e4(0x2c0)][_0x2677e4(0x1db)](_0x222117,_0x545afc);if(_0x4b42df===undefined)return;const _0x4cf4f1=_0x222117===_0x2677e4(0x1c4)&&isPlainRecord(_0x545afc)&&isPlainRecord(_0x545afc[_0x2677e4(0x1fa)])&&_0x545afc[_0x2677e4(0x1fa)][_0x2677e4(0x1da)]===_0x2677e4(0x1f8),_0x291abf=workbenchPayloadSessionId(this[_0x2677e4(0x270)],_0x222117,_0x545afc);if(!_0x4cf4f1&&_0x291abf!==undefined){this[_0x2677e4(0x1b2)][_0x2677e4(0x1a2)](_0x291abf,_0x4b42df);return;}this[_0x2677e4(0x2c0)][_0x2677e4(0x25b)](_0x4b42df);};[_0x462b86(0x1fd)]=_0x1242fe=>this[_0x462b86(0x1ad)][_0x462b86(0x277)](_0x1242fe);[_0x462b86(0x1c3)]=_0x251f43=>this[_0x462b86(0x256)][_0x462b86(0x282)](_0x251f43);[_0x462b86(0x1b7)]=()=>undefined;[_0x462b86(0x1c5)]=()=>this[_0x462b86(0x289)][_0x462b86(0x1c5)]();[_0x462b86(0x297)]=()=>this[_0x462b86(0x289)][_0x462b86(0x297)]();async[_0x462b86(0x266)](_0xce9c76,_0x559dda){const _0x39293a=_0x462b86;if(this[_0x39293a(0x253)]===undefined)throw new Error(_0x39293a(0x2b2));if(this[_0x39293a(0x26e)][_0x39293a(0x284)](_0xce9c76))throw new Error(_0x39293a(0x230));return nodeLog(_0x39293a(0x211),{'nodeId':this[_0x39293a(0x23f)]?.[_0x39293a(0x1d8)],'operation':_0xce9c76}),this[_0x39293a(0x298)][_0x39293a(0x205)](_0xce9c76,_0x559dda);}[_0x462b86(0x1e8)](_0x4accf6,_0x27508a,_0x430bd1){const _0x199331=_0x462b86;this[_0x199331(0x29d)][_0x199331(0x1e8)](_0x4accf6,_0x27508a,_0x430bd1);}[_0x462b86(0x2aa)](_0x409a30){const _0x59b608=_0x462b86;this[_0x59b608(0x29d)][_0x59b608(0x2aa)](_0x409a30);}}
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);}}