@myagentroam/node 0.9.12 → 0.9.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/connector.js +1 -1
- package/dist/mcp-installation-model.js +2 -0
- package/dist/native-session-history.js +1 -1
- package/dist/opencode-server.js +1 -1
- package/dist/runtime-model.js +2 -0
- package/dist/runtime-state.js +1 -1
- package/dist/service/continuous-run-coordinator.js +2 -0
- package/dist/service/conversation-history-service.js +1 -1
- package/dist/service/conversation-segment-service.js +1 -1
- package/dist/service/recent-run-projection-service.js +1 -1
- package/dist/service/run-attachment-service.js +1 -1
- package/dist/service/run-event-service.js +1 -1
- package/dist/service/run-ownership-policy.js +2 -0
- package/dist/service/run-workbench-service.js +1 -1
- package/dist/service/session-context-service.js +1 -1
- package/dist/service/session-identity-service.js +1 -1
- package/dist/service/session-message-service.js +1 -1
- package/dist/service/workspace-queue-workbench-service.js +1 -1
- package/package.json +2 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* mar-release-protected */
|
|
2
|
-
const _0x22579d=_0x39cc;(function(_0x57134d,_0x4a8491){const _0x417edd=_0x39cc,_0x49a97c=_0x57134d();while(!![]){try{const _0x601af9=-parseInt(_0x417edd(0x10e))/(0x165f*0x1+-0x113e+-0x520)*(-parseInt(_0x417edd(0x145))/(-0x4bd*0x7+0x1d9*-0x1+0x2306*0x1))+-parseInt(_0x417edd(0x105))/(-0x1702*0x1+0x8cb+0xe3a)*(-parseInt(_0x417edd(0x150))/(-0x15a0+-0x281*0x5+0x2229))+parseInt(_0x417edd(0x12c))/(-0x1c14+-0x9b*-0x5+0xc89*0x2)+-parseInt(_0x417edd(0x136))/(0xfa+0x106c+0x458*-0x4)+-parseInt(_0x417edd(0x14b))/(-0xea8+0xa11+0x49e)*(-parseInt(_0x417edd(0x13f))/(-0xa6*-0x2d+-0x2491+0x76b))+parseInt(_0x417edd(0x154))/(-0xb84+-0x64b+0x11d8)+-parseInt(_0x417edd(0x115))/(0x1*0xb47+0x81*-0x2f+-0x12*-0xb1);if(_0x601af9===_0x4a8491)break;else _0x49a97c['push'](_0x49a97c['shift']());}catch(_0x18f8ee){_0x49a97c['push'](_0x49a97c['shift']());}}}(_0x3b8f,-0x367e1+0x3dde2+0x2*0x14750));import{randomUUID}from'node:crypto';function _0x3b8f(){const _0x27b056=['y3jLyxrLza','nJmXmJnXqurkzKG','u1rbuLrfra','C2vJCMv0rw52AxjVBM1LBNq','zMLUza','ChjLC2vUDa','zxH0zxjUywXtzxnZAw9Uswq','zw5XDwv1zq','ywrTAw4','C3rYAw5N','muLrCxPPtW','C2vYDMLJzvrPzxi','y2XLyw51Ca','C2v0DgXLrw5XDwv1zq','y29TBwfUzhm','y2XPzw50twvZC2fNzuLK','zw1PDfnLC3nPB24','mtyXntq2meHkr2X6Bq','zMfZDa','AxnbCNjHEq','DxbSB2fKCW','C2v0','BgvUz3rO','y29UC3vTzq','tuvtu0fhrv9jtLzbteLe','x19Yzxf1zxn0vxnLCKLK','C2v0vgvTCg9Yyxj5vgL0BgvjzK1PC3nPBMC','AxnrDwv1zwrsDw4','y29UDgvUDa','yxr0ywnOBwvUDhm','CNvUBMvYCW','uvvfvuu','CNvUBMvY','CMvXDwLYzq','tuvtu0fhrv9bvfrbq0Hnru5uu19jtLzbteLe','zgvSzxrL','BwfW','Bw9KzwW','BgLZDfj1BNngB3jtzxnZAw9U','zgvSAxzLCNLjBNrLBNq','oti1nZK1A1Pyu2Dw','BwvZC2fNzq','C3rHDhvZ','CNvU','y2XLyxi','CxvLDwu','CgvYC2LZDezPBgvZ','CgvYC2LZDef0DgfJAg1LBNrZ','uLvotKLorW','Dg9Rzw4','mty4nJG1mKvdy0fHyG','y29TBwfUzeLK','C2vZC2LVBLf1zxvL','CgvYC29UywXjBNn0CNvJDgLVBNm','y2HHBM5LBfrVA2vU','yxr0ywnOBwvUDa','y2fJAgu','uvvfvuve','CNvUDgLTzq','nJrgDu14zuS','y2f0y2G','ChjLCgfYzu1LC3nHz2vjBNb1Da','AgfZqwn0AxzLu2vZC2LVBKXLyxnL','u0vora','CgXHBG','mJi2odq0yu5bDwLR','CMvZB2X2zq','zMLSDgvY','B3b0Aw9UCW','y3DK','u1rbuLrjtKC','mJmYmtq4yunlzLvI','AxntywzLsw50zwDLCG','yxr0ywnOBwvUDeLKCW','u0vtu0LptL9jtLzbteLe','CgvUzgLUz01LC3nHz2vZ','ngTNrwvRBW','y2HHBM5LBe1LC3nHz2u','ywnJzxnZ','z2v0','ndK5otiZsxv1Chv5','C29Tzq','u0vtu0LptL9dsefotKvmx1voqvzbsuXbqKXf','B2jQzwn0','C2vZC2LVBKLK','zgvMyxvSDa','BgLZDa','zMLUze1LC3nHz2vsDw4','zwzMB3j0','zgvSAxzLCKnOyw5UzwW','B3bLCMf0Aw9UCW','uKvqtefdrv9dvvjsru5u','D29YA3nWywnLswq','z2v0qwDLBNrtzxnZAw9U','Aw50zxjHy3rPB24'];_0x3b8f=function(){return _0x27b056;};return _0x3b8f();}function _0x39cc(_0x2c42f8,_0x7732ea){_0x2c42f8=_0x2c42f8-(0xf*-0x286+-0x1*0x1d42+-0xda*-0x50);const _0x364984=_0x3b8f();let _0x5b90f5=_0x364984[_0x2c42f8];if(_0x39cc['mKnzmW']===undefined){var _0x9ebc7=function(_0x3e2140){const _0x78f81='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4e104d='',_0x5dfa4e='';for(let _0x52afd3=-0xc30+-0x9d3*-0x1+0xb*0x37,_0x9d6aa8,_0x45816c,_0xa5efc1=0xb2e+0x5dd+-0x110b*0x1;_0x45816c=_0x3e2140['charAt'](_0xa5efc1++);~_0x45816c&&(_0x9d6aa8=_0x52afd3%(-0x11*-0x10d+-0x1*0x20d3+0xefa)?_0x9d6aa8*(0x26e4+-0x15cd*-0x1+-0x3c71)+_0x45816c:_0x45816c,_0x52afd3++%(0x1*-0x10dd+0x1322+-0x241*0x1))?_0x4e104d+=String['fromCharCode'](0x1de*-0x7+0x101*-0x1+0xf12&_0x9d6aa8>>(-(0x3b6+-0x1*-0x1435+-0x17e9)*_0x52afd3&0x813+0x1801+-0x2ea*0xb)):0x955+-0x151c+-0xc9*-0xf){_0x45816c=_0x78f81['indexOf'](_0x45816c);}for(let _0x3d5be5=-0xf*-0x262+0x1ae1+-0x3e9f,_0x323975=_0x4e104d['length'];_0x3d5be5<_0x323975;_0x3d5be5++){_0x5dfa4e+='%'+('00'+_0x4e104d['charCodeAt'](_0x3d5be5)['toString'](-0x1c8e+0x2116+-0x478))['slice'](-(-0xe7b+0x6c4+-0x3*-0x293));}return decodeURIComponent(_0x5dfa4e);};_0x39cc['LMlxxu']=_0x9ebc7,_0x39cc['HQLdTD']={},_0x39cc['mKnzmW']=!![];}const _0x4d2532=_0x364984[0x170f+-0x14*-0x62+-0x1eb7];_0x39cc['Fakrrh']!==_0x4d2532&&(_0x39cc['HQLdTD']={},_0x39cc['Fakrrh']=_0x4d2532);const _0x16dcb9=_0x39cc['HQLdTD'][_0x2c42f8];return _0x16dcb9===undefined?(_0x5b90f5=_0x39cc['LMlxxu'](_0x5b90f5),_0x39cc['HQLdTD'][_0x2c42f8]=_0x5b90f5):_0x5b90f5=_0x16dcb9,_0x5b90f5;}import{isImageAttachment,isRunnerImageAttachment,parseComposerAttachmentIds,parseMessageAttachments,sessionTitleFromFirstMessage,withNonImageAttachmentPrompt}from'../util/node-operation-parsers.js';import{parseSecretEnvironment}from'../util/secret-environment.js';import{personalInstructionsForRunner}from'../util/personal-instructions.js';export class SessionMessageService{[_0x22579d(0x148)];[_0x22579d(0x14f)]=new Map();constructor(_0x288844){const _0x3b3d1a=_0x22579d;this[_0x3b3d1a(0x148)]=_0x288844;}[_0x22579d(0x15e)](){const _0x4a76fe=_0x22579d;return{'session.message':_0x2a7ff0=>this[_0x4a76fe(0x12d)](record(_0x2a7ff0)),'session.channel.message':_0x4fc379=>this[_0x4a76fe(0x151)](record(_0x4fc379)),'session.channel.token':_0xd0324d=>this[_0x4a76fe(0x13a)](record(_0xd0324d))};}async[_0x22579d(0x12d)](_0x3b1494){const _0xfe8381=_0x22579d;if(typeof _0x3b1494[_0xfe8381(0x158)]!==_0xfe8381(0x10d)||typeof _0x3b1494[_0xfe8381(0x113)]!==_0xfe8381(0x10d)||_0x3b1494[_0xfe8381(0x113)][_0xfe8381(0x11a)]===-0x1609+0x45*0x89+0x1*-0xee4||typeof _0x3b1494[_0xfe8381(0x120)]!==_0xfe8381(0x10d)||_0x3b1494[_0xfe8381(0x120)][_0xfe8381(0x11a)]===-0x16d9*0x1+-0x5dd*0x1+-0x19*-0x126)throw new Error(_0xfe8381(0x11c));const _0x15ec70=_0x3b1494[_0xfe8381(0x113)],_0x12c01e=_0x3b1494[_0xfe8381(0x120)],_0x1dc1d1=parseMessageAttachments(_0x3b1494[_0xfe8381(0x121)]),_0x4786fb=parseSecretEnvironment(_0x3b1494[_0xfe8381(0x107)]),_0x13521e=parseComposerAttachmentIds(_0x3b1494[_0xfe8381(0x14d)]);if(_0x1dc1d1[_0xfe8381(0x11a)]>0xc06+0x59*-0x5+-0xa49&&_0x13521e[_0xfe8381(0x11a)]>0x1bfb+-0x1524+0x6d7*-0x1)throw new Error(_0xfe8381(0x126));const _0x5b4fbe=await this[_0xfe8381(0x148)][_0xfe8381(0x146)](_0x3b1494[_0xfe8381(0x158)]),_0x507eb3=personalInstructionsForRunner(_0x3b1494[_0xfe8381(0x139)],_0x5b4fbe[_0xfe8381(0x124)]),_0x35691a=_0x3b1494[_0xfe8381(0x12b)]??_0xfe8381(0x143);if(_0x35691a!==_0xfe8381(0x143)&&_0x35691a!==_0xfe8381(0x123)&&_0x35691a!==_0xfe8381(0x15f))throw new Error(_0xfe8381(0x11c));const _0x22d719=this[_0xfe8381(0x148)][_0xfe8381(0x13e)][_0xfe8381(0x15b)](_0x5b4fbe['id'],_0x15ec70);if(_0x22d719!==undefined)return{'session':this[_0xfe8381(0x148)][_0xfe8381(0x109)](_0x5b4fbe),'run':_0x22d719,'delivery':this[_0xfe8381(0x148)][_0xfe8381(0x13e)][_0xfe8381(0x11f)](_0x22d719['id'])?_0xfe8381(0x13d):_0xfe8381(0x106),'idempotent':!![]};const _0x2f2942=_0x5b4fbe['id']+'\x00'+_0x15ec70,_0x20e42b=this[_0xfe8381(0x14f)][_0xfe8381(0x153)](_0x2f2942);if(_0x20e42b!==undefined)return _0x20e42b;const _0xcd5d73=((async()=>{const _0xf042f7=_0xfe8381,_0x581255=randomUUID();let _0x1f1dc0=![];try{const _0x1bbd44=await this[_0xf042f7(0x148)][_0xf042f7(0x118)][_0xf042f7(0x146)](_0x5b4fbe[_0xf042f7(0x160)],_0x13521e),_0x648fb6=_0x13521e[_0xf042f7(0x11a)]===-0x74*-0x8+-0xb7b+0x7db?_0x1dc1d1:_0x1bbd44[_0xf042f7(0x128)](_0x7732ea=>_0x7732ea[_0xf042f7(0x13b)]),_0x1e03ee=_0x648fb6[_0xf042f7(0x147)](isImageAttachment),_0x37f27e=_0x648fb6[_0xf042f7(0x147)](isRunnerImageAttachment),_0x24f208=await this[_0xf042f7(0x133)](_0x5b4fbe,_0x581255,_0x648fb6),_0x2e9018=withNonImageAttachmentPrompt(_0x12c01e,_0x24f208),_0x47d6a9=this[_0xf042f7(0x148)][_0xf042f7(0x112)][_0xf042f7(0x15a)](_0x5b4fbe['id'])[_0xf042f7(0x155)](_0x364984=>_0x364984[_0xf042f7(0x137)]===_0xf042f7(0x144)),_0x1c4312=this[_0xf042f7(0x148)][_0xf042f7(0x122)][_0xf042f7(0x125)](_0x5b4fbe[_0xf042f7(0x124)]),_0x4bd4fb=this[_0xf042f7(0x148)][_0xf042f7(0x13e)][_0xf042f7(0x12a)](_0x5b4fbe['id'])[_0xf042f7(0x108)](_0x5b90f5=>_0x5b90f5[_0xf042f7(0x12e)]===_0xf042f7(0x14a)||_0x5b90f5[_0xf042f7(0x12e)]===_0xf042f7(0x134)),_0x3908c8=_0x35691a===_0xf042f7(0x15f)?_0x4bd4fb:undefined,_0x67c47d=this[_0xf042f7(0x148)][_0xf042f7(0x13e)][_0xf042f7(0x138)](_0x5b4fbe['id']),_0x494c96=this[_0xf042f7(0x148)][_0xf042f7(0x13e)][_0xf042f7(0x142)](_0x5b4fbe['id']),_0x1e697a=this[_0xf042f7(0x148)][_0xf042f7(0x131)][_0xf042f7(0x10b)]({'runId':_0x581255,'sessionId':_0x5b4fbe['id'],'workspaceId':_0x5b4fbe[_0xf042f7(0x160)],'runner':_0x5b4fbe[_0xf042f7(0x124)],'input':_0x1c4312[_0xf042f7(0x141)](_0x2e9018,_0x47d6a9?_0xf042f7(0x144):_0xf042f7(0x159)),'attachments':_0x37f27e,'attachmentPaths':_0x24f208,'cwd':_0x5b4fbe[_0xf042f7(0x149)],'externalSessionId':_0x5b4fbe[_0xf042f7(0x10a)],'model':_0x5b4fbe[_0xf042f7(0x129)],'effort':_0x5b4fbe[_0xf042f7(0x15c)],'access':_0x5b4fbe[_0xf042f7(0x152)],'collaborationMode':_0x47d6a9?_0xf042f7(0x144):_0xf042f7(0x159),'secretEnvironment':_0x4786fb,..._0x507eb3===undefined?{}:{'personalInstructions':_0x507eb3},..._0x1c4312[_0xf042f7(0x10f)]()===_0xf042f7(0x116)?{'serviceTier':_0xf042f7(0x116)}:{}},{'runId':_0x581255,'sessionId':_0x5b4fbe['id'],'clientMessageId':_0x15ec70,'content':_0x2e9018,...Number[_0xf042f7(0x14c)](_0x3b1494[_0xf042f7(0x11d)])?{'initiatedByUserId':_0x3b1494[_0xf042f7(0x11d)]}:{},..._0x648fb6[_0xf042f7(0x11a)]===0xccc*0x1+0x1ab9+0x97*-0x43?{}:{'attachments':_0x648fb6}});_0x1f1dc0=_0x1e697a[_0xf042f7(0x104)];if(!_0x1e697a[_0xf042f7(0x104)])return this[_0xf042f7(0x148)][_0xf042f7(0x121)][_0xf042f7(0x110)](_0x581255),{'session':this[_0xf042f7(0x148)][_0xf042f7(0x109)](_0x5b4fbe),'run':_0x1e697a[_0xf042f7(0x12f)],'delivery':this[_0xf042f7(0x148)][_0xf042f7(0x13e)][_0xf042f7(0x11f)](_0x1e697a[_0xf042f7(0x12f)]['id'])?_0xf042f7(0x13d):_0xf042f7(0x106),'idempotent':!![]};const _0x2ebc1b=this[_0xf042f7(0x148)][_0xf042f7(0x13e)][_0xf042f7(0x11e)](_0x5b4fbe['id'],sessionTitleFromFirstMessage(_0x12c01e));this[_0xf042f7(0x148)][_0xf042f7(0x114)](_0x2ebc1b),this[_0xf042f7(0x148)][_0xf042f7(0x121)][_0xf042f7(0x13c)](_0x1e697a[_0xf042f7(0x12f)]['id'],_0x1e03ee),void this[_0xf042f7(0x148)][_0xf042f7(0x118)][_0xf042f7(0x11b)](_0x13521e)[_0xf042f7(0x140)](()=>undefined);const _0x2c42f8=this[_0xf042f7(0x148)][_0xf042f7(0x131)][_0xf042f7(0x111)]({'runId':_0x1e697a[_0xf042f7(0x12f)]['id'],'intent':_0x35691a,'queueBefore':_0x67c47d,'leaseWasActive':_0x494c96,..._0x3908c8===undefined?{}:{'activeRunId':_0x3908c8['id']}});return{'session':this[_0xf042f7(0x148)][_0xf042f7(0x109)](_0x2ebc1b),'run':_0x1e697a[_0xf042f7(0x12f)],'delivery':_0x2c42f8,'idempotent':![]};}catch(_0x9ebc7){!_0x1f1dc0&&(this[_0xf042f7(0x148)][_0xf042f7(0x121)][_0xf042f7(0x130)](_0x581255),this[_0xf042f7(0x148)][_0xf042f7(0x121)][_0xf042f7(0x110)](_0x581255));throw _0x9ebc7;}})());this[_0xfe8381(0x14f)][_0xfe8381(0x119)](_0x2f2942,_0xcd5d73);try{return await _0xcd5d73;}finally{if(this[_0xfe8381(0x14f)][_0xfe8381(0x153)](_0x2f2942)===_0xcd5d73)this[_0xfe8381(0x14f)][_0xfe8381(0x127)](_0x2f2942);}}async[_0x22579d(0x133)](_0x4d2532,_0x16dcb9,_0x3e2140){const _0x3889f4=_0x22579d;return this[_0x3889f4(0x148)][_0x3889f4(0x121)][_0x3889f4(0x132)](_0x4d2532[_0x3889f4(0x149)],_0x16dcb9,_0x3e2140[_0x3889f4(0x147)](_0x78f81=>!isRunnerImageAttachment(_0x78f81)));}[_0x22579d(0x151)](_0x4e104d){const _0x3a2ce0=_0x22579d;if(typeof _0x4e104d[_0x3a2ce0(0x158)]!==_0x3a2ce0(0x10d)||typeof _0x4e104d[_0x3a2ce0(0x135)]!==_0x3a2ce0(0x10d)||typeof _0x4e104d[_0x3a2ce0(0x113)]!==_0x3a2ce0(0x10d)||typeof _0x4e104d[_0x3a2ce0(0x120)]!==_0x3a2ce0(0x10d)||_0x4e104d[_0x3a2ce0(0x120)][_0x3a2ce0(0x11a)]===-0xfbf+0x1e6b+0x272*-0x6)throw new Error(_0x3a2ce0(0x11c));const _0x5dfa4e=this[_0x3a2ce0(0x148)][_0x3a2ce0(0x13e)][_0x3a2ce0(0x161)](_0x4e104d[_0x3a2ce0(0x158)]);if(_0x5dfa4e===undefined||_0x5dfa4e[_0x3a2ce0(0x13a)]!==_0x4e104d[_0x3a2ce0(0x135)])throw new Error(_0x3a2ce0(0x156));return{'delivery':this[_0x3a2ce0(0x148)][_0x3a2ce0(0x162)][_0x3a2ce0(0x15d)](_0x5dfa4e[_0x3a2ce0(0x124)],_0x4e104d[_0x3a2ce0(0x158)],_0x4e104d[_0x3a2ce0(0x113)],_0x3a2ce0(0x10c),_0x4e104d[_0x3a2ce0(0x135)],_0x4e104d[_0x3a2ce0(0x120)])};}[_0x22579d(0x13a)](_0x52afd3){const _0x1f0f07=_0x22579d;if(typeof _0x52afd3[_0x1f0f07(0x158)]!==_0x1f0f07(0x10d))throw new Error(_0x1f0f07(0x14e));const _0x9d6aa8=this[_0x1f0f07(0x148)][_0x1f0f07(0x13a)](_0x52afd3[_0x1f0f07(0x158)]);if(_0x9d6aa8===undefined)throw new Error(_0x1f0f07(0x156));return{'token':_0x9d6aa8};}}function record(_0x45816c){const _0x526e89=_0x22579d;if(_0x45816c===null||typeof _0x45816c!==_0x526e89(0x157)||Array[_0x526e89(0x117)](_0x45816c))return{};return _0x45816c;}
|
|
2
|
+
const _0x2660b0=_0xcb92;(function(_0xa80849,_0x27449f){const _0x42a28c=_0xcb92,_0xa384f2=_0xa80849();while(!![]){try{const _0x7b76a1=-parseInt(_0x42a28c(0xa6))/(0x2*0x1077+0x216a+0x275*-0x1b)+parseInt(_0x42a28c(0xb5))/(0x10*-0x25a+-0x1*0x141b+0x39bd)+parseInt(_0x42a28c(0xc1))/(0x1002+-0x1*0xc47+-0x3b8)+-parseInt(_0x42a28c(0xb9))/(-0x1*0x17bf+0x1423+0x10*0x3a)+parseInt(_0x42a28c(0xc6))/(-0x107*-0x20+0x1d64+-0xc73*0x5)*(parseInt(_0x42a28c(0xb0))/(0x2369+-0x525+0x31*-0x9e))+-parseInt(_0x42a28c(0xe0))/(0x864+0x1d4c+0x137*-0x1f)+parseInt(_0x42a28c(0xdc))/(0x1648+-0x251d+0xedd);if(_0x7b76a1===_0x27449f)break;else _0xa384f2['push'](_0xa384f2['shift']());}catch(_0x599f78){_0xa384f2['push'](_0xa384f2['shift']());}}}(_0x4c7e,-0x5f490+0x42403*0x1+0x5cd45));import{randomUUID}from'node:crypto';import{isImageAttachment,isRunnerImageAttachment,parseComposerAttachmentIds,parseMessageAttachments,sessionTitleFromFirstMessage,withNonImageAttachmentPrompt}from'../util/node-operation-parsers.js';import{parseSecretEnvironment}from'../util/secret-environment.js';import{personalInstructionsForRunner}from'../util/personal-instructions.js';import{safeErrorCode}from'../util/safe-error.js';export class SessionMessageService{[_0x2660b0(0xca)];[_0x2660b0(0xef)]=new Map();constructor(_0x3ca6e1){const _0x407e7a=_0x2660b0;this[_0x407e7a(0xca)]=_0x3ca6e1;}[_0x2660b0(0xa5)](){const _0x3b573a=_0x2660b0;return{'session.message':_0x57a9c9=>this[_0x3b573a(0xc4)](record(_0x57a9c9)),'session.channel.message':_0x36ff57=>this[_0x3b573a(0xf2)](record(_0x36ff57)),'session.channel.token':_0x1e3412=>this[_0x3b573a(0xbd)](record(_0x1e3412))};}async[_0x2660b0(0xc4)](_0x2241f2){const _0x34b33f=_0x2660b0;if(typeof _0x2241f2[_0x34b33f(0xd2)]!==_0x34b33f(0xea)||typeof _0x2241f2[_0x34b33f(0xcb)]!==_0x34b33f(0xea)||_0x2241f2[_0x34b33f(0xcb)][_0x34b33f(0xe3)]===-0x1341+-0xde*-0x1f+-0x7a1||typeof _0x2241f2[_0x34b33f(0xbc)]!==_0x34b33f(0xea)||_0x2241f2[_0x34b33f(0xbc)][_0x34b33f(0xe3)]===-0x4c*0x63+-0x2*-0xb7b+-0x1*-0x66e)throw new Error(_0x34b33f(0xa0));const _0x57fc98=_0x2241f2[_0x34b33f(0xcb)],_0x1827a5=_0x2241f2[_0x34b33f(0xbc)],_0x3144ce=parseMessageAttachments(_0x2241f2[_0x34b33f(0xf7)]),_0x49aeaa=parseSecretEnvironment(_0x2241f2[_0x34b33f(0xda)]),_0x475457=parseComposerAttachmentIds(_0x2241f2[_0x34b33f(0xd3)]);if(_0x3144ce[_0x34b33f(0xe3)]>0x3*-0xd6+-0x1567*-0x1+-0x2b3*0x7&&_0x475457[_0x34b33f(0xe3)]>0x623*-0x3+-0x1c10+0x1*0x2e79)throw new Error(_0x34b33f(0xd6));const _0x339256=await this[_0x34b33f(0xca)][_0x34b33f(0xbe)](_0x2241f2[_0x34b33f(0xd2)]),_0x4f9379=personalInstructionsForRunner(_0x2241f2[_0x34b33f(0xbf)],_0x339256[_0x34b33f(0xa7)]),_0x57f07f=_0x2241f2[_0x34b33f(0xa4)]??_0x34b33f(0xec);if(_0x57f07f!==_0x34b33f(0xec)&&_0x57f07f!==_0x34b33f(0xae)&&_0x57f07f!==_0x34b33f(0xc9))throw new Error(_0x34b33f(0xa0));const _0x48588d=_0x339256['id']+'\x00'+_0x57fc98,_0x2ff47b=this[_0x34b33f(0xef)][_0x34b33f(0xee)](_0x48588d);if(_0x2ff47b!==undefined)return _0x2ff47b;const _0x2546bc=this[_0x34b33f(0xca)][_0x34b33f(0xb6)][_0x34b33f(0x9b)](_0x339256['id'],_0x57fc98);if(_0x2546bc!==undefined)throw new Error(_0x2546bc);const _0x3b05e9=this[_0x34b33f(0xca)][_0x34b33f(0xb6)][_0x34b33f(0xed)](_0x339256['id'],_0x57fc98);if(_0x3b05e9!==undefined)return{'session':this[_0x34b33f(0xca)][_0x34b33f(0xb7)](_0x339256),'run':_0x3b05e9[_0x34b33f(0xac)],..._0x3b05e9[_0x34b33f(0x9c)]===_0x34b33f(0xab)?{'queueItemId':_0x3b05e9[_0x34b33f(0xad)]['id']}:{},'delivery':_0x3b05e9[_0x34b33f(0x9c)]===_0x34b33f(0xab)?_0x34b33f(0xd4):_0x34b33f(0xd9),'idempotent':!![]};const _0x18be67=((async()=>{const _0x562fd3=_0x34b33f,_0x4a9083=randomUUID(),_0x7f35bf=this[_0x562fd3(0xca)][_0x562fd3(0xb6)][_0x562fd3(0xf3)](_0x339256['id']),_0x5471ca=this[_0x562fd3(0xca)][_0x562fd3(0xb6)][_0x562fd3(0xd8)](_0x339256['id']),_0x3973f2=_0x57f07f===_0x562fd3(0xc9)?_0x5471ca:undefined,_0x17e7f3=this[_0x562fd3(0xca)][_0x562fd3(0xce)][_0x562fd3(0xe6)]({'runId':_0x4a9083,'sessionId':_0x339256['id'],'clientMessageId':_0x57fc98,'content':_0x1827a5,...Number[_0x562fd3(0xd5)](_0x2241f2[_0x562fd3(0xf4)])?{'initiatedByUserId':_0x2241f2[_0x562fd3(0xf4)]}:{},..._0x3144ce[_0x562fd3(0xe3)]===0x1*-0x5f2+0x1762+-0x1170?{}:{'attachments':_0x3144ce}}),_0x4a96cb=_0x17e7f3[_0x562fd3(0xb8)]?.['id']??_0x17e7f3[_0x562fd3(0xac)]['id'],_0x4bd9af=this[_0x562fd3(0xca)][_0x562fd3(0xb6)][_0x562fd3(0xa2)](_0x339256['id'],sessionTitleFromFirstMessage(_0x1827a5));this[_0x562fd3(0xca)][_0x562fd3(0xc0)](_0x4bd9af);if(_0x17e7f3[_0x562fd3(0xb8)]===undefined)this[_0x562fd3(0xca)][_0x562fd3(0xce)][_0x562fd3(0xcc)](_0x17e7f3[_0x562fd3(0xac)]['id']);try{const _0x2dc3fe=await this[_0x562fd3(0xca)][_0x562fd3(0xc3)][_0x562fd3(0xbe)](_0x339256[_0x562fd3(0xd1)],_0x475457),_0x30bf9d=_0x475457[_0x562fd3(0xe3)]===-0x1*-0x296+-0x25c7+0x2331?_0x3144ce:_0x2dc3fe[_0x562fd3(0xc2)](_0x3418bb=>_0x3418bb[_0x562fd3(0xc7)]),_0x31e8df=_0x30bf9d[_0x562fd3(0xbb)](isImageAttachment),_0xa2490=_0x30bf9d[_0x562fd3(0xbb)](isRunnerImageAttachment),_0x9beac9=await this[_0x562fd3(0xe2)](_0x339256,_0x4a9083,_0x30bf9d),_0x3c34f5=withNonImageAttachmentPrompt(_0x1827a5,_0x9beac9),_0x74b69d=this[_0x562fd3(0xca)][_0x562fd3(0x9d)][_0x562fd3(0xcf)](_0x339256['id'])[_0x562fd3(0xe7)](_0x4877ce=>_0x4877ce[_0x562fd3(0xb2)]===_0x562fd3(0xb1)),_0x1ac083=this[_0x562fd3(0xca)][_0x562fd3(0xd0)][_0x562fd3(0xf8)](_0x339256[_0x562fd3(0xa7)]);if(_0x17e7f3[_0x562fd3(0xb8)]===undefined)this[_0x562fd3(0xca)][_0x562fd3(0xb6)][_0x562fd3(0xaa)](_0x17e7f3[_0x562fd3(0xac)]['id'],_0x30bf9d);else this[_0x562fd3(0xca)][_0x562fd3(0xb6)][_0x562fd3(0xcd)](_0x17e7f3[_0x562fd3(0xb8)]['id'],_0x30bf9d);this[_0x562fd3(0xca)][_0x562fd3(0xce)][_0x562fd3(0xc8)](_0x4a96cb,{'runId':_0x4a9083,'sessionId':_0x339256['id'],'workspaceId':_0x339256[_0x562fd3(0xd1)],'runner':_0x339256[_0x562fd3(0xa7)],'input':_0x1ac083[_0x562fd3(0xe8)](_0x3c34f5,_0x74b69d?_0x562fd3(0xb1):_0x562fd3(0xaf)),'attachments':_0xa2490,'attachmentPaths':_0x9beac9,'cwd':_0x339256[_0x562fd3(0xba)],'externalSessionId':_0x339256[_0x562fd3(0x9f)],'model':_0x339256[_0x562fd3(0xa9)],'effort':_0x339256[_0x562fd3(0xe1)],'access':_0x339256[_0x562fd3(0xa1)],'collaborationMode':_0x74b69d?_0x562fd3(0xb1):_0x562fd3(0xaf),'secretEnvironment':_0x49aeaa,..._0x4f9379===undefined?{}:{'personalInstructions':_0x4f9379},..._0x1ac083[_0x562fd3(0xde)]()===_0x562fd3(0xb4)?{'serviceTier':_0x562fd3(0xb4)}:{}}),this[_0x562fd3(0xca)][_0x562fd3(0xf7)][_0x562fd3(0xeb)](_0x4a96cb,_0x31e8df),void this[_0x562fd3(0xca)][_0x562fd3(0xc3)][_0x562fd3(0xd7)](_0x475457)[_0x562fd3(0xdf)](()=>undefined);const _0x5e9f3d=this[_0x562fd3(0xca)][_0x562fd3(0xce)][_0x562fd3(0xe4)]({'submissionId':_0x4a96cb,'intent':_0x57f07f,'queueBefore':_0x7f35bf,..._0x3973f2===undefined?{}:{'activeRunId':_0x3973f2['id']}});return{'session':this[_0x562fd3(0xca)][_0x562fd3(0xb7)](_0x4bd9af),'run':_0x17e7f3[_0x562fd3(0xac)],..._0x17e7f3[_0x562fd3(0xb8)]===undefined?{}:{'queueItemId':_0x17e7f3[_0x562fd3(0xb8)]['id']},'delivery':_0x5e9f3d,'idempotent':![]};}catch(_0x1bc039){this[_0x562fd3(0xca)][_0x562fd3(0xce)][_0x562fd3(0xf6)](_0x4a96cb,safeErrorCode(_0x1bc039,_0x562fd3(0xf5))),this[_0x562fd3(0xca)][_0x562fd3(0xf7)][_0x562fd3(0xe9)](_0x4a96cb),this[_0x562fd3(0xca)][_0x562fd3(0xf7)][_0x562fd3(0xdd)](_0x4a96cb);throw _0x1bc039;}})());this[_0x34b33f(0xef)][_0x34b33f(0xf1)](_0x48588d,_0x18be67);try{return await _0x18be67;}finally{if(this[_0x34b33f(0xef)][_0x34b33f(0xee)](_0x48588d)===_0x18be67)this[_0x34b33f(0xef)][_0x34b33f(0xa8)](_0x48588d);}}async[_0x2660b0(0xe2)](_0x556661,_0x6a0d22,_0x2bbfce){const _0x41f538=_0x2660b0;return this[_0x41f538(0xca)][_0x41f538(0xf7)][_0x41f538(0x9e)](_0x556661[_0x41f538(0xba)],_0x6a0d22,_0x2bbfce[_0x41f538(0xbb)](_0x5a0551=>!isRunnerImageAttachment(_0x5a0551)));}async[_0x2660b0(0xf2)](_0x70d744){const _0x81add3=_0x2660b0;if(typeof _0x70d744[_0x81add3(0xd2)]!==_0x81add3(0xea)||typeof _0x70d744[_0x81add3(0xa3)]!==_0x81add3(0xea)||typeof _0x70d744[_0x81add3(0xcb)]!==_0x81add3(0xea)||typeof _0x70d744[_0x81add3(0xbc)]!==_0x81add3(0xea)||_0x70d744[_0x81add3(0xbc)][_0x81add3(0xe3)]===-0x2648+-0x1f0a+0x4552||!Number[_0x81add3(0xd5)](_0x70d744[_0x81add3(0xf4)]))throw new Error(_0x81add3(0xa0));const _0x199f2d=this[_0x81add3(0xca)][_0x81add3(0xb6)][_0x81add3(0xe5)](_0x70d744[_0x81add3(0xd2)]);if(_0x199f2d===undefined||_0x199f2d[_0x81add3(0xbd)]!==_0x70d744[_0x81add3(0xa3)])throw new Error(_0x81add3(0xc5));return this[_0x81add3(0xc4)]({'sessionId':_0x70d744[_0x81add3(0xd2)],'clientMessageId':_0x70d744[_0x81add3(0xcb)],'content':_0x70d744[_0x81add3(0xbc)],'deliveryIntent':_0x81add3(0xae),'__requestUserId':_0x70d744[_0x81add3(0xf4)]});}[_0x2660b0(0xbd)](_0x25c00e){const _0x327ffe=_0x2660b0;if(typeof _0x25c00e[_0x327ffe(0xd2)]!==_0x327ffe(0xea))throw new Error(_0x327ffe(0xb3));const _0x294306=this[_0x327ffe(0xca)][_0x327ffe(0xbd)](_0x25c00e[_0x327ffe(0xd2)]);if(_0x294306===undefined)throw new Error(_0x327ffe(0xc5));return{'token':_0x294306};}}function _0xcb92(_0x4877ce,_0x1bc039){_0x4877ce=_0x4877ce-(-0x22ed*0x1+0x718+0x71c*0x4);const _0x556661=_0x4c7e();let _0x6a0d22=_0x556661[_0x4877ce];if(_0xcb92['KIuWxu']===undefined){var _0x2bbfce=function(_0x199f2d){const _0x25c00e='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x294306='',_0x26e7a7='';for(let _0x1119a6=-0x15c1+-0xb03+-0xc*-0x2bb,_0x58faeb,_0x3cdf28,_0x34f479=0x1a4d+-0x1b9d+0x70*0x3;_0x3cdf28=_0x199f2d['charAt'](_0x34f479++);~_0x3cdf28&&(_0x58faeb=_0x1119a6%(-0x1331+-0x5*-0x7e+0x10bf)?_0x58faeb*(0x1*0x1567+0x25c5+-0x68c*0x9)+_0x3cdf28:_0x3cdf28,_0x1119a6++%(0x623*-0x3+-0x1c10+0x3*0xf7f))?_0x294306+=String['fromCharCode'](0x1*-0x5f2+0x1762+-0x1071&_0x58faeb>>(-(-0x1*-0x296+-0x25c7+0x2333)*_0x1119a6&-0x2648+-0x1f0a+0x4558)):-0x1*-0xa9f+0x20c1+-0x20*0x15b){_0x3cdf28=_0x25c00e['indexOf'](_0x3cdf28);}for(let _0x4eb262=0x1*0x14b+0x234d*-0x1+0x1*0x2202,_0x3b4000=_0x294306['length'];_0x4eb262<_0x3b4000;_0x4eb262++){_0x26e7a7+='%'+('00'+_0x294306['charCodeAt'](_0x4eb262)['toString'](-0x888+-0x949*-0x1+0x1*-0xb1))['slice'](-(-0x1*0x137c+0x1*0x160a+-0x28c));}return decodeURIComponent(_0x26e7a7);};_0xcb92['LsQHMv']=_0x2bbfce,_0xcb92['JOyFdm']={},_0xcb92['KIuWxu']=!![];}const _0x5a0551=_0x556661[-0x1f17+0xa42+0x1*0x14d5];_0xcb92['mIoQWq']!==_0x5a0551&&(_0xcb92['JOyFdm']={},_0xcb92['mIoQWq']=_0x5a0551);const _0x70d744=_0xcb92['JOyFdm'][_0x4877ce];return _0x70d744===undefined?(_0x6a0d22=_0xcb92['LsQHMv'](_0x6a0d22),_0xcb92['JOyFdm'][_0x4877ce]=_0x6a0d22):_0x6a0d22=_0x70d744,_0x6a0d22;}function record(_0x26e7a7){const _0x4be6d9=_0x2660b0;if(_0x26e7a7===null||typeof _0x26e7a7!==_0x4be6d9(0xf0)||Array[_0x4be6d9(0xdb)](_0x26e7a7))return{};return _0x26e7a7;}function _0x4c7e(){const _0x501b0b=['CgvYC2LZDezPBgvZ','zxH0zxjUywXtzxnZAw9Uswq','tuvtu0fhrv9jtLzbteLe','ywnJzxnZ','C2v0vgvTCg9Yyxj5vgL0BgvjzK1PC3nPBMC','Dg9Rzw4','zgvSAxzLCNLjBNrLBNq','B3bLCMf0Aw9UCW','ndyXnZu2rKTntKPP','CNvUBMvY','zgvSzxrL','Bw9KzwW','DxbKyxrLuhjLCgfYAw5NvhvYBKf0DgfJAg1LBNrZ','CxvLDwu','CNvU','AxrLBq','uvvfvuu','zgvMyxvSDa','mZGWmtC4BLPyt2Dn','CgXHBG','y29TBwfUzeLK','u0vtu0LptL9jtLzbteLe','zMfZDa','mJG5mdaYBu9fELPP','CNvUDgLTzq','ChjLC2vUDa','CxvLDwvjDgvT','mtG3ntiWnerQyLnMCW','y3DK','zMLSDgvY','y29UDgvUDa','y2HHBM5LBfrVA2vU','CMvZB2X2zq','CgvYC29UywXjBNn0CNvJDgLVBNm','zw1PDfnLC3nPB24','mtCZmtC4zeT6vMrn','BwfW','DxbSB2fKCW','BwvZC2fNzq','u0vtu0LptL9dsefotKvmx1voqvzbsuXbqKXf','mtbNvwPKA1i','yxr0ywnOBwvUDa','ChjLCgfYzq','uKvqtefdrv9dvvjsru5u','B3b0Aw9UCW','y2XPzw50twvZC2fNzuLK','ChvIBgLZAen1CNjLBNruDxjU','DxbKyxrLuxvLDwvjDgvTqxr0ywnOBwvUDhm','y29VCMrPBMf0B3i','BgLZDa','CNvUBMvYCW','D29YA3nWywnLswq','C2vZC2LVBKLK','yxr0ywnOBwvUDeLKCW','uvvfvuve','AxntywzLsw50zwDLCG','tuvtu0fhrv9bvfrbq0Hnru5uu19jtLzbteLe','y29UC3vTzq','ywn0AxzLu2vZC2LVBLj1BG','u1rbuLrfra','C2vJCMv0rw52AxjVBM1LBNq','AxnbCNjHEq','otqWnZaWoerLEgLeDa','y2XLyw51Ca','C2vYDMLJzvrPzxi','y2f0y2G','mJe5mdC3nKLOrvbOvW','zwzMB3j0','CgvYC2LZDef0DgfJAg1LBNrZ','BgvUz3rO','C2v0DgXL','z2v0qwDLBNrtzxnZAw9U','ywnJzxb0','C29Tzq','ChjLCgfYzu1LC3nHz2vjBNb1Da','y2XLyxi','C3rYAw5N','y2fJAgu','u0vora','zMLUze1LC3nHz2vtDwjTAxnZAw9U','z2v0','CgvUzgLUz01LC3nHz2vZ','B2jQzwn0','C2v0','y2HHBM5LBe1LC3nHz2u','C2vZC2LVBLf1zxvL','x19Yzxf1zxn0vxnLCKLK','tuvtu0fhrv9quKvqqvjbveLptL9gquLmruq','zMfPBfbYzxbHCMf0Aw9U','yxr0ywnOBwvUDhm','CMvXDwLYzq','BwvZC2fNzvbYzxbHCMf0Aw9UrMfPBhvYzq','A2LUza','y29TBwfUzhm'];_0x4c7e=function(){return _0x501b0b;};return _0x4c7e();}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* mar-release-protected */
|
|
2
|
-
function _0x3a51(_0x4b1388,_0x1469d0){_0x4b1388=_0x4b1388-(-0x461+0x8c9+0x5*-0xbd);const _0x5338bc=_0x53cf();let _0x443535=_0x5338bc[_0x4b1388];if(_0x3a51['fxqZxn']===undefined){var _0x25a495=function(_0xac00e9){const _0x55690b='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4e9055='',_0x202700='';for(let _0x512668=-0x9fb+0x1b6a+-0x116f,_0x42a372,_0x1cead0,_0x3102a3=0x20d*0x13+-0x1*-0x2006+-0x1*0x46fd;_0x1cead0=_0xac00e9['charAt'](_0x3102a3++);~_0x1cead0&&(_0x42a372=_0x512668%(-0x1*0x1036+-0x1966+0x29a0)?_0x42a372*(0x2266+0x1679+-0x389f)+_0x1cead0:_0x1cead0,_0x512668++%(0x1*0x154a+0x8f9*-0x3+0x5a5))?_0x4e9055+=String['fromCharCode'](0x1593+-0x227d*0x1+0xde9&_0x42a372>>(-(-0x23*-0x57+0xd5c*-0x1+0x179)*_0x512668&0x1*0x2192+0x246f+-0x45fb)):0x2080+-0x1e8+-0x1e98){_0x1cead0=_0x55690b['indexOf'](_0x1cead0);}for(let _0x426f6b=-0xf6f+-0x12b5*-0x1+-0x346,_0xb92e9c=_0x4e9055['length'];_0x426f6b<_0xb92e9c;_0x426f6b++){_0x202700+='%'+('00'+_0x4e9055['charCodeAt'](_0x426f6b)['toString'](0x3*0x713+-0x11cc+0x7b*-0x7))['slice'](-(0x24e5*-0x1+0x1f3*-0x1+0x26da));}return decodeURIComponent(_0x202700);};_0x3a51['bQPjUX']=_0x25a495,_0x3a51['FnmXcm']={},_0x3a51['fxqZxn']=!![];}const _0x41b802=_0x5338bc[-0x91e+0x2*0x6e3+-0x4a8];_0x3a51['ayxtKg']!==_0x41b802&&(_0x3a51['FnmXcm']={},_0x3a51['ayxtKg']=_0x41b802);const _0x31e355=_0x3a51['FnmXcm'][_0x4b1388];return _0x31e355===undefined?(_0x443535=_0x3a51['bQPjUX'](_0x443535),_0x3a51['FnmXcm'][_0x4b1388]=_0x443535):_0x443535=_0x31e355,_0x443535;}const _0x44fa0a=_0x3a51;(function(_0x40430a,_0x4b8ded){const _0xc3daa=_0x3a51,_0x496cd4=_0x40430a();while(!![]){try{const _0x2cc56f=parseInt(_0xc3daa(0xcd))/(0xd51+-0x160a+0x8ba)+-parseInt(_0xc3daa(0xe3))/(-0xf4e*0x1+0xe3c*-0x2+0x2bc8)*(-parseInt(_0xc3daa(0xd2))/(0x6ac+-0x1*-0x362+-0x359*0x3))+-parseInt(_0xc3daa(0x115))/(0xda0+-0x17*0x3e+0x31*-0x2a)*(-parseInt(_0xc3daa(0x111))/(0x1*-0x257f+0x3b*0x83+0x753))+parseInt(_0xc3daa(0xe1))/(0x169b*-0x1+-0x25a7+-0x1418*-0x3)+-parseInt(_0xc3daa(0xb7))/(-0xc55*0x1+0x13e5+0x789*-0x1)*(parseInt(_0xc3daa(0x11c))/(0x123a+-0x527+-0x9*0x173))+parseInt(_0xc3daa(0x137))/(0x1*-0x1d8b+-0x100*0x8+0x2e4*0xd)+-parseInt(_0xc3daa(0xca))/(0x1e8d+0x1*0x88d+0x2710*-0x1)*(parseInt(_0xc3daa(0x138))/(0x1f56+-0x4*0x1bb+-0x185f));if(_0x2cc56f===_0x4b8ded)break;else _0x496cd4['push'](_0x496cd4['shift']());}catch(_0x3dc8df){_0x496cd4['push'](_0x496cd4['shift']());}}}(_0x53cf,-0x28607*-0x7+-0x50*0x259+-0x7dca1));import{isPlainRecord}from'../runner/codex/conversation-parser.js';function _0x53cf(){const _0x201c4f=['Cgf1C2vK','uLvotKLorW','y2XLyxjjBwfNzxm','uvvfvuvFsu5wquXjra','CMvTB3zL','yxr0ywnOBwvUDhm','zw1PDa','Cgf1C2vpCLjLC3vTzq','CMvVCMrLCLnLC3nPB25rDwv1zq','y2fUy2vSuxvLDwvK','y3DK','AxnbCNjHEq','y29UDgvUDa','CgvYC29UywXjBNn0CNvJDgLVBNm','otK5nta5nfHju3jvra','mtmYDwTUyvrS','mte5nJKZz3Pnt0Ll','Bw9KzwW','zw1PDenVBNzLCNnHDgLVBG','u0vtu0LptL9ot1rFrK9vtKq','DxbKyxrLugvUzgLUzW','y2XLyw51Cef0DgfJAg1LBNrZ','zgvSzxrLuxvLDwvKuNvU','y29UDhjVBa','BgLZDfj1BNngB3jtzxnZAw9U','zxH0zxjUywXtzxnZAw9Uswq','y29UDMvYC2f0Aw9UvhvYBKzVCLj1BG','AgfZ','y2XHAw1ozxH0uxvLDwvKuNvU','CMvWBgfJzq','D29YA3nWywnLswq','C2vZC2LVBLf1zxvL','Aw5WDxq','zgLZCgf0y2G','CxvLDwvczwzVCMu','mtCZodm5men4tNrfEq','y3jLyxrLtwvZC2fNzvj1BG','CxvLDwvKtwvZC2fNzvrLEhq','mtKZmtu4ueThEKnf','zxHWzwn0zwrwzxjZAw9U','C2v0DgXLrw5XDwv1zq','ChjLCgfYzuLUChv0','C2vJCMv0rw52AxjVBM1LBNq','nZy4mtjotvDhq2O','zMXHDe1HCa','DMfSDwvZ','C3rHDhvZ','CNvUlMLUDgvYCNvWDa','CNvUswq','v09ss1nqqunfx05pvf9gt1vora','Dw5Yzwy','CMvXDwLYzvj1BG','CMvVCMrLCG','uKvtvefsveLorW','zgvSzxrL','BwnWCW','rKfjteve','C3rHCNrZ','mZu2ode1ogrYqwTbyG','u1rbuLrfra','nMnsv2LuvG','ywnJzxnZ','ChjLC2vUDa','CMvZDw1L','y3vZDg9TvgL0Bgu','uvvfvuvFsvrftv9jtLzbteLe','CNvUlNn0yxj0','B3bLCMf0Aw9UCW','BgvUz3rO','ChvIBgLZAa','CMvZDw1Lu2vZC2LVBLf1zxvL','C2vZC2LVBKLK','DhjHBNnPDgLVBLj1BG','Cgf1C2vtzxnZAw9UuxvLDwu','z2v0','CMvXDwLYzvnLC3nPB24','B3b0Aw9UCW','Cgf1C2u','yxr0ywnOBwvUDfbHDgHZ','C2nOzwr1Bgu','C3rYAw5N','vw50AxrSzwqGC2vZC2LVBG','uvvfvuu','DxbKyxrL','BwfYA0LUDgvYCNvWDgvK','zxHLy3v0zq','BwLNCMf0zvnLC3nPB24','DhjPBq','CgvUzgLUzW','y3jLyxrLza','uvvfvuvFu1rbuLrFrKfjteve','q0foq0vmteve','CNvUDgLTzq','AxnjBNrLz2vY','CNvUBMvYvgL0Bgu','uvvfvuve','AgfZqwn0AxzLu2vZC2LVBKXLyxnL','C2vYDMLJzvrPzxi','BgvHC2vxyxnby3rPDMu','C29Tzq','zw5XDwv1zq','Aw50zw50','CNvUBMvY','CMvZDw1Lqwz0zxjdB21Tyw5KuNvU','DxbKyxrLuxvLDwvKtwvZC2fNzq','CNvUswrZ','mZG2odaXnwXbz1n1Aq','z2v0qwDLBNrtzxnZAw9U','q0foq0vmteLorW','C2nOzwr1BgvKu2vZC2LVBNm','ngvsuNvMsa','u1rbuLrjtKC','AxnrDwv1zwrsDw4','z2v0uNvU','uvvfvuvFsu5qvvrFte9tva','y2XLyxi','ChjPB3jPDgL6zvf1zxvLzfj1BG','mZjJD0zpwuG','DMvYC2LVBG','zMLUza','C2v0','CNvUlMnVBxbSzxrLza','CNvUlNjLAMvJDgvK','zwzMB3j0','uLvox05pvf9gt1vora','uvvfvuvFuLvox01ju01bveni','zw1PDfj1BG','ywn0AxzLuNvUswq','y29SBgfIB3jHDgLVBK1Vzgu','C3rVChbLza'];_0x53cf=function(){return _0x201c4f;};return _0x53cf();}import{isTerminalRunStatus}from'../util/node-operation-parsers.js';import{withNonImageAttachmentPrompt}from'../runner/codex/conversation-parser.js';import{safeErrorCode}from'../util/safe-error.js';export class WorkspaceQueueWorkbenchService{[_0x44fa0a(0xf3)];[_0x44fa0a(0xe0)]=new Map();[_0x44fa0a(0x114)]=new Map();constructor(_0x1ce066){const _0x266b46=_0x44fa0a;this[_0x266b46(0xf3)]=_0x1ce066;}[_0x44fa0a(0x10b)](_0x4a05a8,_0x5982f8){const _0x3d5f4f=_0x44fa0a;if(_0x5982f8[_0x3d5f4f(0xd7)]!==_0x4a05a8[_0x3d5f4f(0xd7)]||_0x5982f8[_0x3d5f4f(0xee)]!==_0x4a05a8[_0x3d5f4f(0xee)])throw new Error(_0x3d5f4f(0x124));const _0xd3588b=this[_0x3d5f4f(0xf3)][_0x3d5f4f(0x103)][_0x3d5f4f(0xcb)](_0x5982f8);if(_0xd3588b[_0x3d5f4f(0x100)])this[_0x3d5f4f(0xe0)][_0x3d5f4f(0x11f)](_0x4a05a8[_0x3d5f4f(0xd7)],_0x4a05a8);return _0xd3588b;}[_0x44fa0a(0xff)](_0x343c7a){const _0x9a7a06=_0x44fa0a;return this[_0x9a7a06(0xe0)][_0x9a7a06(0xf1)](_0x343c7a);}[_0x44fa0a(0x12d)](_0x2d1308){const _0x14490d=_0x44fa0a;this[_0x14490d(0xe0)][_0x14490d(0xdd)](_0x2d1308);}[_0x44fa0a(0x11a)](){const _0x287e26=_0x44fa0a;this[_0x287e26(0xe0)][_0x287e26(0x11a)]();for(const _0x252975 of this[_0x287e26(0x114)][_0x287e26(0xd4)]())clearTimeout(_0x252975);this[_0x287e26(0x114)][_0x287e26(0x11a)]();}[_0x44fa0a(0xec)](_0x3e3543){const _0x2652a7=_0x44fa0a,_0x1f626a=this[_0x2652a7(0xf3)][_0x2652a7(0x103)][_0x2652a7(0x112)](_0x3e3543);if(_0x1f626a===undefined)throw new Error(_0x2652a7(0xba));this[_0x2652a7(0xf3)][_0x2652a7(0x12f)](_0x1f626a[_0x2652a7(0xc5)],_0x1f626a['id']);}[_0x44fa0a(0xfd)](_0x565d35,_0x1958b9){const _0x3aa77a=_0x44fa0a;for(const [_0x5f2f29,_0x543586]of this[_0x3aa77a(0xe0)]){if(_0x543586[_0x3aa77a(0xee)]===_0x565d35)this[_0x3aa77a(0xe0)][_0x3aa77a(0x11f)](_0x5f2f29,{..._0x543586,'sessionId':_0x1958b9,'externalSessionId':_0x1958b9});}const _0x54f5c6=this[_0x3aa77a(0x114)][_0x3aa77a(0xf1)](_0x565d35);_0x54f5c6!==undefined&&(clearTimeout(_0x54f5c6),this[_0x3aa77a(0x114)][_0x3aa77a(0xdd)](_0x565d35),this[_0x3aa77a(0xf6)](_0x1958b9));}[_0x44fa0a(0x132)](_0x58a908){const _0x319b1f=_0x44fa0a,_0x5c2819=this[_0x319b1f(0xda)](_0x58a908);if(!this[_0x319b1f(0xf3)][_0x319b1f(0x103)][_0x319b1f(0x117)](_0x5c2819['id']))throw new Error(_0x319b1f(0xe8));this[_0x319b1f(0xf3)][_0x319b1f(0x103)][_0x319b1f(0xbd)](_0x5c2819['id']),this[_0x319b1f(0x12d)](_0x5c2819['id']),this[_0x319b1f(0xf3)][_0x319b1f(0x12b)](_0x5c2819['id']),this[_0x319b1f(0xf3)][_0x319b1f(0xbc)](_0x5c2819['id']),this[_0x319b1f(0xf3)][_0x319b1f(0x12f)](_0x5c2819[_0x319b1f(0xc5)],_0x5c2819[_0x319b1f(0xee)]);}[_0x44fa0a(0xf0)](_0x46b33b){const _0x3ec7b4=_0x44fa0a,_0x381fbb=this[_0x3ec7b4(0xf3)][_0x3ec7b4(0x103)][_0x3ec7b4(0x112)](_0x46b33b);if(_0x381fbb===undefined)throw new Error(_0x3ec7b4(0xba));this[_0x3ec7b4(0xf3)][_0x3ec7b4(0x103)][_0x3ec7b4(0xf0)](_0x381fbb['id']),this[_0x3ec7b4(0xec)](_0x381fbb['id']);}[_0x44fa0a(0x10e)](_0x2872cd){const _0x526263=_0x44fa0a,_0x22cd34=this[_0x526263(0xf3)][_0x526263(0x103)][_0x526263(0x112)](_0x2872cd);if(_0x22cd34===undefined)throw new Error(_0x526263(0xba));if(!this[_0x526263(0xf3)][_0x526263(0x103)][_0x526263(0xc6)](_0x22cd34['id'])[_0x526263(0x129)])return;this[_0x526263(0xf3)][_0x526263(0x103)][_0x526263(0xed)](_0x22cd34['id']),this[_0x526263(0xec)](_0x22cd34['id']),this[_0x526263(0xf6)](_0x22cd34['id']);}[_0x44fa0a(0xea)](){const _0x9d41cf=_0x44fa0a;return{'workspace.queue.get':_0x575aeb=>this[_0x9d41cf(0xf1)](record(_0x575aeb)),'workspace.queue.resume':_0x2d5c1e=>this[_0x9d41cf(0x130)](_0x9d41cf(0xe6),record(_0x2d5c1e)),'workspace.queue.pause':_0x12f2d0=>this[_0x9d41cf(0x130)](_0x9d41cf(0xf4),record(_0x12f2d0)),'workspace.queue.reorder':_0x2e5e9c=>this[_0x9d41cf(0xdb)](record(_0x2e5e9c)),'workspace.queue.message.update':_0x15297b=>this[_0x9d41cf(0xfa)](record(_0x15297b)),'workspace.queue.message.delete':_0x1cda37=>this[_0x9d41cf(0xdd)](record(_0x1cda37)),'workspace.queue.message.execute':_0x468533=>this[_0x9d41cf(0xfc)](record(_0x468533))};}[_0x44fa0a(0xf1)](_0x18244d){const _0x1db1e4=_0x44fa0a;if(typeof _0x18244d[_0x1db1e4(0xc5)]!==_0x1db1e4(0xf7)||typeof _0x18244d[_0x1db1e4(0xee)]!==_0x1db1e4(0xf7))throw new Error(_0x1db1e4(0xd8));return{'queue':this[_0x1db1e4(0xe5)](_0x18244d[_0x1db1e4(0xc5)],_0x18244d[_0x1db1e4(0xee)])};}[_0x44fa0a(0x130)](_0x381e17,_0xc1ca99){const _0x2edb30=_0x44fa0a,_0x285688=this[_0x2edb30(0xf2)](_0xc1ca99);if(_0x381e17===_0x2edb30(0xe6))this[_0x2edb30(0xf3)][_0x2edb30(0x103)][_0x2edb30(0xed)](_0x285688['id']),this[_0x2edb30(0xf6)](_0x285688['id']);else this[_0x2edb30(0xf3)][_0x2edb30(0x103)][_0x2edb30(0xf0)](_0x285688['id']);return this[_0x2edb30(0xf3)][_0x2edb30(0x12f)](_0x285688[_0x2edb30(0xc5)],_0x285688['id']),{'queue':this[_0x2edb30(0xe5)](_0x285688[_0x2edb30(0xc5)],_0x285688['id'])};}[_0x44fa0a(0xdb)](_0x4996e7){const _0x8596fc=_0x44fa0a;if(!Number[_0x8596fc(0x104)](_0x4996e7[_0x8596fc(0xce)])||!Array[_0x8596fc(0x134)](_0x4996e7[_0x8596fc(0x110)])||_0x4996e7[_0x8596fc(0x110)][_0x8596fc(0x10a)](_0x50c76e=>typeof _0x50c76e!==_0x8596fc(0xf7)))throw new Error(_0x8596fc(0x12c));const _0x19f7a0=this[_0x8596fc(0xf2)](_0x4996e7);return this[_0x8596fc(0xf3)][_0x8596fc(0x103)][_0x8596fc(0x131)](_0x19f7a0['id'],_0x4996e7[_0x8596fc(0xce)],_0x4996e7[_0x8596fc(0x110)]),this[_0x8596fc(0xf3)][_0x8596fc(0x12f)](_0x19f7a0[_0x8596fc(0xc5)],_0x19f7a0['id']),{'queue':this[_0x8596fc(0xe5)](_0x19f7a0[_0x8596fc(0xc5)],_0x19f7a0['id'])};}[_0x44fa0a(0xfa)](_0x3e6a3e){const _0x2fa6fe=_0x44fa0a;if(typeof _0x3e6a3e[_0x2fa6fe(0xd7)]!==_0x2fa6fe(0xf7)||typeof _0x3e6a3e[_0x2fa6fe(0x135)]!==_0x2fa6fe(0xf7)||_0x3e6a3e[_0x2fa6fe(0x135)][_0x2fa6fe(0xfe)]()[_0x2fa6fe(0xeb)]===0x1d3*-0xb+0x3*0xcfd+-0x12e6)throw new Error(_0x2fa6fe(0x12c));const _0x125dc9=this[_0x2fa6fe(0xda)](_0x3e6a3e[_0x2fa6fe(0xd7)]);return this[_0x2fa6fe(0xbb)](_0x125dc9['id'],_0x3e6a3e[_0x2fa6fe(0x135)][_0x2fa6fe(0xfe)]()),this[_0x2fa6fe(0xf3)][_0x2fa6fe(0x12f)](_0x125dc9[_0x2fa6fe(0xc5)],_0x125dc9[_0x2fa6fe(0xee)]),{'queue':this[_0x2fa6fe(0xe5)](_0x125dc9[_0x2fa6fe(0xc5)],_0x125dc9[_0x2fa6fe(0xee)])};}[_0x44fa0a(0xdd)](_0x34c7a6){const _0x15d0f1=_0x44fa0a;if(typeof _0x34c7a6[_0x15d0f1(0xd7)]!==_0x15d0f1(0xf7))throw new Error(_0x15d0f1(0x12c));const _0x506e37=this[_0x15d0f1(0xda)](_0x34c7a6[_0x15d0f1(0xd7)]);return this[_0x15d0f1(0x132)](_0x506e37['id']),{'queue':this[_0x15d0f1(0xe5)](_0x506e37[_0x15d0f1(0xc5)],_0x506e37[_0x15d0f1(0xee)])};}[_0x44fa0a(0xfc)](_0x2a87c3){const _0xf70cb3=_0x44fa0a;if(typeof _0x2a87c3[_0xf70cb3(0xd7)]!==_0xf70cb3(0xf7))throw new Error(_0xf70cb3(0x12c));const _0x2d4f2f=this[_0xf70cb3(0xda)](_0x2a87c3[_0xf70cb3(0xd7)]);if(!this[_0xf70cb3(0xf3)][_0xf70cb3(0x103)][_0xf70cb3(0x117)](_0x2d4f2f['id'])||_0x2d4f2f[_0xf70cb3(0xd5)]!==_0xf70cb3(0x106))throw new Error(_0xf70cb3(0xe8));if(!this[_0xf70cb3(0xe0)][_0xf70cb3(0xc2)](_0x2d4f2f['id']))throw new Error(_0xf70cb3(0x119));const _0x32fb71=this[_0xf70cb3(0xf3)][_0xf70cb3(0x103)][_0xf70cb3(0x112)](_0x2d4f2f[_0xf70cb3(0xee)]);if(_0x32fb71===undefined)throw new Error(_0xf70cb3(0xba));this[_0xf70cb3(0xf3)][_0xf70cb3(0x103)][_0xf70cb3(0xed)](_0x32fb71['id']);const _0x5e02f9=this[_0xf70cb3(0xf3)][_0xf70cb3(0x103)][_0xf70cb3(0xbf)](_0x32fb71['id'])[_0xf70cb3(0x11e)](_0x4fb304=>_0x4fb304[_0xf70cb3(0xd5)]===_0xf70cb3(0x116)||_0x4fb304[_0xf70cb3(0xd5)]===_0xf70cb3(0x12a));this[_0xf70cb3(0xf3)][_0xf70cb3(0x103)][_0xf70cb3(0x11b)](_0x2d4f2f['id']);if(_0x5e02f9!==undefined)return this[_0xf70cb3(0xc4)](_0x2d4f2f['id'],_0x5e02f9['id'],![]),{'run':_0x2d4f2f,'delivery':_0xf70cb3(0xdc)};return this[_0xf70cb3(0xf6)](_0x32fb71['id']),{'run':_0x2d4f2f,'delivery':_0xf70cb3(0x116)};}[_0x44fa0a(0xf2)](_0x47f5cf){const _0x413629=_0x44fa0a;if(typeof _0x47f5cf[_0x413629(0xc5)]!==_0x413629(0xf7)||typeof _0x47f5cf[_0x413629(0xee)]!==_0x413629(0xf7))throw new Error(_0x413629(0xd8));const _0x6bc0a7=this[_0x413629(0xf3)][_0x413629(0x103)][_0x413629(0x112)](_0x47f5cf[_0x413629(0xee)]);if(_0x6bc0a7?.[_0x413629(0xc5)]!==_0x47f5cf[_0x413629(0xc5)])throw new Error(_0x413629(0xba));return _0x6bc0a7;}[_0x44fa0a(0xda)](_0x248f65){const _0x659f93=_0x44fa0a,_0x407f3f=this[_0x659f93(0xf3)][_0x659f93(0x103)][_0x659f93(0x118)](_0x248f65);if(_0x407f3f===undefined)throw new Error(_0x659f93(0x123));return _0x407f3f;}[_0x44fa0a(0xc4)](_0x21767c,_0x54125e,_0x36143b=!![]){const _0x23f7c3=_0x44fa0a,_0x1f205a=this[_0x23f7c3(0xf3)][_0x23f7c3(0x103)][_0x23f7c3(0x118)](_0x21767c),_0x4b1388=this[_0x23f7c3(0xf3)][_0x23f7c3(0x103)][_0x23f7c3(0x118)](_0x54125e);if(_0x1f205a===undefined||_0x4b1388===undefined||_0x1f205a[_0x23f7c3(0xee)]!==_0x4b1388[_0x23f7c3(0xee)]||!this[_0x23f7c3(0xf3)][_0x23f7c3(0x103)][_0x23f7c3(0x117)](_0x1f205a['id']))throw new Error(_0x23f7c3(0xe8));if(_0x36143b)this[_0x23f7c3(0xf3)][_0x23f7c3(0x103)][_0x23f7c3(0x11b)](_0x1f205a['id']);this[_0x23f7c3(0xf3)][_0x23f7c3(0x12f)](_0x1f205a[_0x23f7c3(0xc5)],_0x1f205a[_0x23f7c3(0xee)]),this[_0x23f7c3(0xf3)][_0x23f7c3(0xfb)](_0x4b1388['id']),this[_0x23f7c3(0xf3)][_0x23f7c3(0x103)][_0x23f7c3(0xef)](_0x4b1388['id'],_0x23f7c3(0x113)),this[_0x23f7c3(0xf3)][_0x23f7c3(0xbe)](_0x23f7c3(0xd6),{'runId':_0x4b1388['id']});}[_0x44fa0a(0xf6)](_0x1469d0){const _0x14204d=_0x44fa0a;if(this[_0x14204d(0x114)][_0x14204d(0xc2)](_0x1469d0))return;const _0x5338bc=setTimeout(()=>{const _0x3688c7=_0x14204d;this[_0x3688c7(0x114)][_0x3688c7(0xdd)](_0x1469d0);if(!this[_0x3688c7(0xf3)][_0x3688c7(0x128)]())void this[_0x3688c7(0xc8)](_0x1469d0);},0x188d+-0x731+-0x1*0x115c);this[_0x14204d(0x114)][_0x14204d(0x11f)](_0x1469d0,_0x5338bc),_0x5338bc[_0x14204d(0xd9)]();}[_0x44fa0a(0xcf)](_0x443535){const _0x871fac=_0x44fa0a,_0x25a495=this[_0x871fac(0xda)](_0x443535[_0x871fac(0xd7)]),_0x41b802=this[_0x871fac(0xf3)][_0x871fac(0x103)][_0x871fac(0x112)](_0x25a495[_0x871fac(0xee)]);if(_0x41b802===undefined)throw new Error(_0x871fac(0xba));if(_0x443535[_0x871fac(0xc9)][_0x871fac(0x129)]&&_0x443535[_0x871fac(0x126)]===undefined&&_0x443535[_0x871fac(0x10c)]!==_0x871fac(0xf9))this[_0x871fac(0xf3)][_0x871fac(0x103)][_0x871fac(0x11b)](_0x25a495['id']);if(!_0x443535[_0x871fac(0xc9)][_0x871fac(0x129)]||_0x443535[_0x871fac(0x10c)]!==_0x871fac(0xf9))this[_0x871fac(0xf3)][_0x871fac(0x103)][_0x871fac(0xed)](_0x41b802['id']);if(_0x443535[_0x871fac(0x126)]!==undefined)return this[_0x871fac(0xc4)](_0x25a495['id'],_0x443535[_0x871fac(0x126)]),_0x871fac(0xdc);const _0x31e355=_0x443535[_0x871fac(0x109)]&&this[_0x871fac(0xf3)][_0x871fac(0x103)][_0x871fac(0x107)](_0x41b802['id']),_0xac00e9=!_0x31e355&&!(_0x443535[_0x871fac(0xc9)][_0x871fac(0x129)]&&_0x443535[_0x871fac(0x10c)]===_0x871fac(0xf9)),_0x55690b=_0xac00e9&&(_0x443535[_0x871fac(0xc9)][_0x871fac(0x110)][_0x871fac(0xeb)]===0x503*-0x2+-0x14a4+0x1eaa||_0x443535[_0x871fac(0xc9)][_0x871fac(0x129)]&&_0x443535[_0x871fac(0x10c)]!==_0x871fac(0xf9));if(_0xac00e9)this[_0x871fac(0xf6)](_0x41b802['id']);else this[_0x871fac(0xf3)][_0x871fac(0x12f)](_0x41b802[_0x871fac(0xc5)],_0x41b802['id']);return _0x55690b?_0x871fac(0xe2):_0x871fac(0x106);}async[_0x44fa0a(0xc8)](_0x4e9055){const _0x28863e=_0x44fa0a,_0x202700=this[_0x28863e(0xf3)][_0x28863e(0x103)][_0x28863e(0xc3)](_0x4e9055);if(_0x202700===undefined)return;this[_0x28863e(0xf3)][_0x28863e(0x12f)](_0x202700[_0x28863e(0xc5)],_0x4e9055);const _0x512668=this[_0x28863e(0xe0)][_0x28863e(0xf1)](_0x202700['id']);if(_0x512668===undefined){this[_0x28863e(0xf3)][_0x28863e(0x125)](_0x202700['id'],_0x28863e(0x121),{'code':_0x28863e(0x119)},_0x28863e(0xdf));return;}try{const _0x42a372=this[_0x28863e(0xf3)][_0x28863e(0x103)][_0x28863e(0xc1)](_0x202700['id']);if(_0x42a372!==undefined)this[_0x28863e(0xf3)][_0x28863e(0xb9)](_0x42a372);const _0x1cead0=this[_0x28863e(0xf3)][_0x28863e(0x103)][_0x28863e(0x118)](_0x202700['id']);if(_0x1cead0!==undefined&&isTerminalRunStatus(_0x1cead0[_0x28863e(0xd5)]))return;if(_0x1cead0?.[_0x28863e(0xd5)]===_0x28863e(0x113)){this[_0x28863e(0xf3)][_0x28863e(0x125)](_0x202700['id'],_0x28863e(0x120),{'status':_0x28863e(0x102)},_0x28863e(0x102));return;}this[_0x28863e(0xf3)][_0x28863e(0xbe)](_0x28863e(0xe9),{'runId':_0x512668[_0x28863e(0xd7)],'sessionId':_0x512668[_0x28863e(0xee)],'workspaceId':_0x512668[_0x28863e(0xc5)],'runner':_0x512668[_0x28863e(0x10d)],'input':_0x512668[_0x28863e(0xc7)],..._0x512668[_0x28863e(0x12e)][_0x28863e(0xeb)]===-0xd89+0x1*0x154a+0x18d*-0x5?{}:{'attachments':_0x512668[_0x28863e(0x12e)]},'cwd':_0x512668[_0x28863e(0x133)],..._0x512668[_0x28863e(0xc0)]===null?{}:{'externalSessionId':_0x512668[_0x28863e(0xc0)]},..._0x512668[_0x28863e(0xb8)]===null?{}:{'model':_0x512668[_0x28863e(0xb8)]},..._0x512668[_0x28863e(0x122)]===null?{}:{'effort':_0x512668[_0x28863e(0x122)]},..._0x512668[_0x28863e(0xe4)]===null?{}:{'access':_0x512668[_0x28863e(0xe4)]},'collaborationMode':_0x512668[_0x28863e(0x127)],..._0x512668[_0x28863e(0x108)]===undefined?{}:{'serviceTier':_0x512668[_0x28863e(0x108)]},'secretEnvironment':_0x512668[_0x28863e(0xd1)],..._0x512668[_0x28863e(0x136)]===undefined?{}:{'personalInstructions':_0x512668[_0x28863e(0x136)]},'mcpInstallations':this[_0x28863e(0xf3)][_0x28863e(0xde)](_0x512668[_0x28863e(0xc5)])});}catch(_0x3102a3){this[_0x28863e(0xf3)][_0x28863e(0x125)](_0x202700['id'],_0x28863e(0x121),{'code':safeErrorCode(_0x3102a3,_0x28863e(0x101))},_0x28863e(0xdf));}}[_0x44fa0a(0xe5)](_0x426f6b,_0xb92e9c){const _0xd1ae16=_0x44fa0a,_0x7ade3e=this[_0xd1ae16(0xf3)][_0xd1ae16(0x103)][_0xd1ae16(0x112)](_0xb92e9c);if(_0x7ade3e?.[_0xd1ae16(0xc5)]!==_0x426f6b)throw new Error(_0xd1ae16(0xba));const _0x2ef6d4=this[_0xd1ae16(0xf3)][_0xd1ae16(0x103)][_0xd1ae16(0xc6)](_0xb92e9c);return{'version':_0x2ef6d4[_0xd1ae16(0x11d)],'paused':_0x2ef6d4[_0xd1ae16(0x129)],'items':_0x2ef6d4[_0xd1ae16(0x110)][_0xd1ae16(0xd3)](_0x50a540=>{const _0x5dca85=_0xd1ae16,_0x433210=this[_0x5dca85(0xf3)][_0x5dca85(0x103)][_0x5dca85(0x118)](_0x50a540);if(_0x433210===undefined)return[];const _0x57a1ee=this[_0x5dca85(0xf3)][_0x5dca85(0x103)][_0x5dca85(0x112)](_0x433210[_0x5dca85(0xee)]);return[{'run':_0x433210,'sessionId':_0x433210[_0x5dca85(0xee)],'sessionTitle':_0x57a1ee?.[_0x5dca85(0xe7)]??_0x57a1ee?.[_0x5dca85(0x105)]??_0x5dca85(0xf8),'content':this[_0x5dca85(0xf3)][_0x5dca85(0x103)][_0x5dca85(0xcc)](_0x433210['id'])}];})};}[_0x44fa0a(0xbb)](_0x55e1a3,_0x4dae15){const _0x488ce1=_0x44fa0a,_0xe7cd5=this[_0x488ce1(0xe0)][_0x488ce1(0xf1)](_0x55e1a3),_0x473995=withNonImageAttachmentPrompt(_0x4dae15,_0xe7cd5?.[_0x488ce1(0xf5)]??[]);this[_0x488ce1(0xf3)][_0x488ce1(0x103)][_0x488ce1(0x10f)](_0x55e1a3,_0x473995);if(_0xe7cd5===undefined)return;this[_0x488ce1(0xe0)][_0x488ce1(0x11f)](_0x55e1a3,{..._0xe7cd5,'input':this[_0x488ce1(0xf3)][_0x488ce1(0xd0)](_0xe7cd5[_0x488ce1(0x10d)],_0x473995,_0xe7cd5[_0x488ce1(0x127)])});}}function record(_0x28ecc3){return isPlainRecord(_0x28ecc3)?_0x28ecc3:{};}
|
|
2
|
+
const _0x13e9eb=_0x4b0a;(function(_0x223811,_0x5bcc17){const _0x45cb79=_0x4b0a,_0x20d312=_0x223811();while(!![]){try{const _0x3eae27=-parseInt(_0x45cb79(0x11f))/(0x12f0*-0x2+-0x5a0*-0x5+0x9c1)*(-parseInt(_0x45cb79(0x14b))/(0xb2*0x27+-0x985*0x2+-0x2*0x409))+-parseInt(_0x45cb79(0x120))/(-0x2651+0x1*0x1815+0x209*0x7)+parseInt(_0x45cb79(0x134))/(0x75e+-0x59e+-0x6f*0x4)*(-parseInt(_0x45cb79(0x141))/(0xb*-0x338+-0x5b*0x35+0x3644))+-parseInt(_0x45cb79(0x11e))/(0x219f+0x54b*-0x5+0xb*-0xa6)+-parseInt(_0x45cb79(0x13b))/(-0x1ff6+-0x1668+0x3665)+parseInt(_0x45cb79(0x14e))/(-0xbf*-0x2+0x3*-0x71d+0x13e1)+-parseInt(_0x45cb79(0x116))/(-0x1227+-0x1999*-0x1+-0x769*0x1)*(-parseInt(_0x45cb79(0x11d))/(-0x1b29*0x1+-0x1*0x463+0x1f96*0x1));if(_0x3eae27===_0x5bcc17)break;else _0x20d312['push'](_0x20d312['shift']());}catch(_0x3861b0){_0x20d312['push'](_0x20d312['shift']());}}}(_0xf8a5,-0x52c4*-0x26+-0x4ef82+0x1*0x2d80b));import{isPlainRecord,withNonImageAttachmentPrompt}from'../runner/codex/conversation-parser.js';import{assertQueueItemOwner,assertSessionControlOwner}from'./run-ownership-policy.js';export class WorkspaceQueueWorkbenchService{[_0x13e9eb(0x142)];constructor(_0x4605e0){const _0x266669=_0x13e9eb;this[_0x266669(0x142)]=_0x4605e0;}[_0x13e9eb(0x133)](){const _0x18f564=_0x13e9eb;return{'workspace.queue.get':_0x26e51b=>this[_0x18f564(0x113)](record(_0x26e51b)),'workspace.queue.resume':_0x454462=>this[_0x18f564(0x128)](_0x18f564(0x11a),record(_0x454462)),'workspace.queue.pause':_0x4a75a8=>this[_0x18f564(0x128)](_0x18f564(0x12e),record(_0x4a75a8)),'workspace.queue.reorder':_0x44ba6b=>this[_0x18f564(0x131)](record(_0x44ba6b)),'workspace.queue.message.update':_0x2dbef5=>this[_0x18f564(0x14c)](record(_0x2dbef5)),'workspace.queue.message.delete':_0x3fcefd=>this[_0x18f564(0x118)](record(_0x3fcefd)),'workspace.queue.message.execute':_0x1b7aa0=>this[_0x18f564(0x124)](record(_0x1b7aa0))};}[_0x13e9eb(0x14a)](_0x5af9bc){const _0x4259f2=_0x13e9eb,_0x45f7fa=this[_0x4259f2(0x142)][_0x4259f2(0x13e)][_0x4259f2(0x115)](_0x5af9bc);if(_0x45f7fa===undefined)throw new Error(_0x4259f2(0x123));this[_0x4259f2(0x142)][_0x4259f2(0x13e)][_0x4259f2(0x14a)](_0x45f7fa['id']),this[_0x4259f2(0x142)][_0x4259f2(0x11c)](_0x45f7fa[_0x4259f2(0x12b)],_0x45f7fa['id']);}[_0x13e9eb(0x14f)](_0x334ec9){const _0x4de58d=_0x13e9eb,_0x2f4118=this[_0x4de58d(0x142)][_0x4de58d(0x13e)][_0x4de58d(0x115)](_0x334ec9);if(_0x2f4118===undefined)throw new Error(_0x4de58d(0x123));if(!this[_0x4de58d(0x142)][_0x4de58d(0x13e)][_0x4de58d(0x11b)](_0x2f4118['id'])[_0x4de58d(0x126)])return;this[_0x4de58d(0x142)][_0x4de58d(0x10e)][_0x4de58d(0x11a)](_0x2f4118['id']),this[_0x4de58d(0x142)][_0x4de58d(0x11c)](_0x2f4118[_0x4de58d(0x12b)],_0x2f4118['id']);}[_0x13e9eb(0x14d)](_0x3dff1e,_0x4518af){const _0xdc308d=_0x13e9eb,_0x126c2a=this[_0xdc308d(0x142)][_0xdc308d(0x13e)][_0xdc308d(0x115)](_0x4518af);if(_0x126c2a?.[_0xdc308d(0x12b)]!==_0x3dff1e)throw new Error(_0xdc308d(0x123));return this[_0xdc308d(0x121)](_0x4518af);}[_0x13e9eb(0x121)](_0x4f58b0){const _0x3c12dd=_0x13e9eb,_0x4c9ae3=this[_0x3c12dd(0x142)][_0x3c12dd(0x13e)][_0x3c12dd(0x11b)](_0x4f58b0);return{'version':_0x4c9ae3[_0x3c12dd(0x13d)],'paused':_0x4c9ae3[_0x3c12dd(0x126)],'items':_0x4c9ae3[_0x3c12dd(0x110)][_0x3c12dd(0x111)](_0x168345=>{const _0x46cccc=_0x3c12dd,_0x4abcf1=this[_0x46cccc(0x142)][_0x46cccc(0x13e)][_0x46cccc(0x12a)](_0x168345);if(_0x4abcf1===undefined)return[];const _0x38a3bc=this[_0x46cccc(0x142)][_0x46cccc(0x13e)][_0x46cccc(0x115)](_0x4abcf1[_0x46cccc(0x129)]);return[{'queueItemId':_0x4abcf1['id'],'sessionId':_0x4abcf1[_0x46cccc(0x129)],'workspaceId':_0x4abcf1[_0x46cccc(0x12b)],'runner':_0x4abcf1[_0x46cccc(0x148)],'clientMessageId':_0x4abcf1[_0x46cccc(0x135)],'sessionTitle':_0x38a3bc?.[_0x46cccc(0x117)]??_0x38a3bc?.[_0x46cccc(0x140)]??_0x46cccc(0x127),'content':_0x4abcf1[_0x46cccc(0x139)],'createdAt':_0x4abcf1[_0x46cccc(0x112)]}];})};}[_0x13e9eb(0x113)](_0x522729){const _0x58ed76=_0x13e9eb,_0x3f9e52=this[_0x58ed76(0x137)](_0x522729);return{'queue':this[_0x58ed76(0x14d)](_0x3f9e52[_0x58ed76(0x12b)],_0x3f9e52['id'])};}[_0x13e9eb(0x128)](_0x582d4e,_0x3351de){const _0x5aedd9=_0x13e9eb,_0x2752b1=this[_0x5aedd9(0x137)](_0x3351de);assertSessionControlOwner(this[_0x5aedd9(0x142)][_0x5aedd9(0x13e)],_0x2752b1['id'],_0x3351de[_0x5aedd9(0x150)]);if(_0x582d4e===_0x5aedd9(0x11a))this[_0x5aedd9(0x142)][_0x5aedd9(0x10e)][_0x5aedd9(0x11a)](_0x2752b1['id']);else this[_0x5aedd9(0x142)][_0x5aedd9(0x13e)][_0x5aedd9(0x14a)](_0x2752b1['id']);return this[_0x5aedd9(0x142)][_0x5aedd9(0x11c)](_0x2752b1[_0x5aedd9(0x12b)],_0x2752b1['id']),{'queue':this[_0x5aedd9(0x14d)](_0x2752b1[_0x5aedd9(0x12b)],_0x2752b1['id'])};}[_0x13e9eb(0x131)](_0x53cf41){const _0x3ccda6=_0x13e9eb;if(!Number[_0x3ccda6(0x130)](_0x53cf41[_0x3ccda6(0x13f)])||!Array[_0x3ccda6(0x12d)](_0x53cf41[_0x3ccda6(0x146)])||_0x53cf41[_0x3ccda6(0x146)][_0x3ccda6(0x143)](_0x38ee40=>typeof _0x38ee40!==_0x3ccda6(0x114)))throw new Error(_0x3ccda6(0x12c));const _0x5165a9=this[_0x3ccda6(0x137)](_0x53cf41);return assertSessionControlOwner(this[_0x3ccda6(0x142)][_0x3ccda6(0x13e)],_0x5165a9['id'],_0x53cf41[_0x3ccda6(0x150)]),this[_0x3ccda6(0x142)][_0x3ccda6(0x13e)][_0x3ccda6(0x132)](_0x5165a9['id'],_0x53cf41[_0x3ccda6(0x13f)],_0x53cf41[_0x3ccda6(0x146)]),this[_0x3ccda6(0x142)][_0x3ccda6(0x11c)](_0x5165a9[_0x3ccda6(0x12b)],_0x5165a9['id']),{'queue':this[_0x3ccda6(0x14d)](_0x5165a9[_0x3ccda6(0x12b)],_0x5165a9['id'])};}[_0x13e9eb(0x14c)](_0x19f385){const _0x2878c0=_0x13e9eb;if(typeof _0x19f385[_0x2878c0(0x10f)]!==_0x2878c0(0x114)||typeof _0x19f385[_0x2878c0(0x139)]!==_0x2878c0(0x114)||_0x19f385[_0x2878c0(0x139)][_0x2878c0(0x119)]()[_0x2878c0(0x147)]===-0x25d9+-0x21*0x45+0x2ebe)throw new Error(_0x2878c0(0x12c));const _0x23f586=this[_0x2878c0(0x125)](_0x19f385[_0x2878c0(0x10f)],_0x19f385[_0x2878c0(0x12b)]);assertQueueItemOwner(_0x23f586,_0x19f385[_0x2878c0(0x150)]);const _0xc2b70e=_0x19f385[_0x2878c0(0x139)][_0x2878c0(0x119)]();this[_0x2878c0(0x142)][_0x2878c0(0x13e)][_0x2878c0(0x138)](_0x23f586['id'],_0xc2b70e);const _0x1d3bc8=this[_0x2878c0(0x142)][_0x2878c0(0x10e)][_0x2878c0(0x151)](_0x23f586['id']);if(_0x1d3bc8!==undefined){const _0x3efd40=withNonImageAttachmentPrompt(_0xc2b70e,_0x1d3bc8[_0x2878c0(0x144)]);this[_0x2878c0(0x142)][_0x2878c0(0x10e)][_0x2878c0(0x136)](_0x23f586['id'],this[_0x2878c0(0x142)][_0x2878c0(0x12f)](_0x1d3bc8[_0x2878c0(0x148)],_0x3efd40,_0x1d3bc8[_0x2878c0(0x145)]));}return this[_0x2878c0(0x142)][_0x2878c0(0x11c)](_0x23f586[_0x2878c0(0x12b)],_0x23f586[_0x2878c0(0x129)]),{'queue':this[_0x2878c0(0x14d)](_0x23f586[_0x2878c0(0x12b)],_0x23f586[_0x2878c0(0x129)])};}[_0x13e9eb(0x118)](_0x2af425){const _0x236693=_0x13e9eb;if(typeof _0x2af425[_0x236693(0x10f)]!==_0x236693(0x114))throw new Error(_0x236693(0x12c));const _0x5d3237=this[_0x236693(0x125)](_0x2af425[_0x236693(0x10f)],_0x2af425[_0x236693(0x12b)]);return assertQueueItemOwner(_0x5d3237,_0x2af425[_0x236693(0x150)]),this[_0x236693(0x142)][_0x236693(0x10e)][_0x236693(0x13a)](_0x5d3237['id']),{'queue':this[_0x236693(0x14d)](_0x5d3237[_0x236693(0x12b)],_0x5d3237[_0x236693(0x129)])};}[_0x13e9eb(0x124)](_0x493e8b){const _0x3e594a=_0x13e9eb;if(typeof _0x493e8b[_0x3e594a(0x10f)]!==_0x3e594a(0x114))throw new Error(_0x3e594a(0x12c));return assertQueueItemOwner(this[_0x3e594a(0x125)](_0x493e8b[_0x3e594a(0x10f)],_0x493e8b[_0x3e594a(0x12b)]),_0x493e8b[_0x3e594a(0x150)]),this[_0x3e594a(0x142)][_0x3e594a(0x10e)][_0x3e594a(0x149)](_0x493e8b[_0x3e594a(0x10f)]);}[_0x13e9eb(0x137)](_0x312482){const _0x103ea3=_0x13e9eb;if(typeof _0x312482[_0x103ea3(0x12b)]!==_0x103ea3(0x114)||typeof _0x312482[_0x103ea3(0x129)]!==_0x103ea3(0x114))throw new Error(_0x103ea3(0x122));const _0x211536=this[_0x103ea3(0x142)][_0x103ea3(0x13e)][_0x103ea3(0x115)](_0x312482[_0x103ea3(0x129)]);if(_0x211536?.[_0x103ea3(0x12b)]!==_0x312482[_0x103ea3(0x12b)])throw new Error(_0x103ea3(0x123));return _0x211536;}[_0x13e9eb(0x125)](_0x5c977c,_0x2b4c18){const _0x57d465=_0x13e9eb,_0x5c709c=this[_0x57d465(0x142)][_0x57d465(0x13e)][_0x57d465(0x12a)](_0x5c977c);if(_0x5c709c===undefined)throw new Error(_0x57d465(0x13c));if(typeof _0x2b4c18!==_0x57d465(0x114)||_0x5c709c[_0x57d465(0x12b)]!==_0x2b4c18)throw new Error(_0x57d465(0x13c));return _0x5c709c;}}function record(_0x326485){return isPlainRecord(_0x326485)?_0x326485:{};}function _0x4b0a(_0x5e31f0,_0x1e7027){_0x5e31f0=_0x5e31f0-(-0x227d+-0x30*0x9e+-0xc9*-0x53);const _0x5ccd50=_0xf8a5();let _0x14072b=_0x5ccd50[_0x5e31f0];if(_0x4b0a['enPXFe']===undefined){var _0x1b51df=function(_0x3af5e7){const _0x3059d3='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x11fe5c='',_0x269aab='';for(let _0x3dd456=-0x6de+0x372+0x36c,_0x3be31f,_0x2e940c,_0x48c3bf=-0x12e3+0x2534+-0x3*0x61b;_0x2e940c=_0x3af5e7['charAt'](_0x48c3bf++);~_0x2e940c&&(_0x3be31f=_0x3dd456%(-0x1*-0x11ae+-0x5*-0x463+0x5d*-0x6d)?_0x3be31f*(0x17*0x21+-0x5b+0x97*-0x4)+_0x2e940c:_0x2e940c,_0x3dd456++%(0x14a1*-0x1+0x162a*0x1+-0x1*0x185))?_0x11fe5c+=String['fromCharCode'](-0x1d98*-0x1+0x1b9e+-0x3837&_0x3be31f>>(-(-0xf1f+0xc89*0x1+-0x4*-0xa6)*_0x3dd456&0x1*0x24ca+0x399*-0x1+-0x212b)):-0x2216+0x1*-0x12ad+0x34c3){_0x2e940c=_0x3059d3['indexOf'](_0x2e940c);}for(let _0x1f2aa4=-0xc*0x2+0x26aa+-0x2692,_0x480b6d=_0x11fe5c['length'];_0x1f2aa4<_0x480b6d;_0x1f2aa4++){_0x269aab+='%'+('00'+_0x11fe5c['charCodeAt'](_0x1f2aa4)['toString'](0x611*0x5+0x5*-0x135+0x234*-0xb))['slice'](-(0x16ff+-0x1629*0x1+-0xd4));}return decodeURIComponent(_0x269aab);};_0x4b0a['ubtFEX']=_0x1b51df,_0x4b0a['ODYukR']={},_0x4b0a['enPXFe']=!![];}const _0x4d9d44=_0x5ccd50[0x8*0x476+0x1cab+-0x1*0x405b];_0x4b0a['CcrXGH']!==_0x4d9d44&&(_0x4b0a['ODYukR']={},_0x4b0a['CcrXGH']=_0x4d9d44);const _0x1e2756=_0x4b0a['ODYukR'][_0x5e31f0];return _0x1e2756===undefined?(_0x14072b=_0x4b0a['ubtFEX'](_0x14072b),_0x4b0a['ODYukR'][_0x5e31f0]=_0x14072b):_0x14072b=_0x1e2756,_0x14072b;}function _0xf8a5(){const _0x4101d7=['mJiWndvhtLfjrvu','mJa4nZu4nLHureL6vW','C25HChnOB3q','v09ss1nqqunfx05pvf9gt1vora','u0vtu0LptL9ot1rFrK9vtKq','zxHLy3v0zq','CMvXDwLYzuL0zw0','Cgf1C2vK','vw50AxrSzwqGC2vZC2LVBG','Cgf1C2vpCLjLC3vTzq','C2vZC2LVBKLK','z2v0uxvLDwvjDgvT','D29YA3nWywnLswq','uvvfvuvFsu5wquXjra','AxnbCNjHEq','Cgf1C2u','ChjLCgfYzuLUChv0','AxnjBNrLz2vY','CMvVCMrLCG','CMvVCMrLCLnLC3nPB25rDwv1zq','B3bLCMf0Aw9UCW','nJy2mtG4ELPIwwTV','y2XPzw50twvZC2fNzuLK','DxbKyxrLuhjLCgfYzwrjBNb1Da','CMvXDwLYzvnLC3nPB24','DxbKyxrLuxvLDwvjDgvT','y29UDgvUDa','zgvSzxrLuxvLDwvjDgvT','mJa5mtiZnND3CeLtrq','uvvfvuvFsvrftv9jtLzbteLe','DMvYC2LVBG','CNvUDgLTzq','zxHWzwn0zwrwzxjZAw9U','CNvUBMvYvgL0Bgu','mZvryKDbANy','B3b0Aw9UCW','C29Tzq','yxr0ywnOBwvUDfbHDgHZ','y29SBgfIB3jHDgLVBK1Vzgu','CxvLDwvjDgvTswrZ','BgvUz3rO','CNvUBMvY','zxHLy3v0zvf1zxvLsxrLBq','Cgf1C2vtzxnZAw9UuxvLDwu','otrqBgTkyNK','DxbKyxrL','ChjLC2vUDa','mteWndaXnMfmC2rguW','CMvZDw1Lqwz0zxjdB21Tyw5KuNvU','x19Yzxf1zxn0vxnLCKLK','CgvUzgLUzW','y29VCMrPBMf0B3i','CxvLDwvjDgvTswq','AxrLBuLKCW','zMXHDe1HCa','y3jLyxrLzef0','z2v0','C3rYAw5N','z2v0qwDLBNrtzxnZAw9U','ounKBwzOrq','y3vZDg9TvgL0Bgu','zgvSzxrL','DhjPBq','CMvZDw1L','C2vZC2LVBLf1zxvL','zw1PDa','mJi5mZa5otbNz1jeAhi','mZGZmJi3mKHhyK5ItG'];_0xf8a5=function(){return _0x4101d7;};return _0xf8a5();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@myagentroam/node",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.14",
|
|
4
4
|
"description": "MyAgentRoam Node runtime CLI.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"node-pty": "1.1.0",
|
|
25
25
|
"ws": "^8.21.3",
|
|
26
26
|
"zod": "4.4.3",
|
|
27
|
-
"@myagentroam/protocol": "^0.9.
|
|
27
|
+
"@myagentroam/protocol": "^0.9.14"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@types/ws": "^8.18.1"
|