@myagentroam/node 0.9.20 → 0.9.22

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.
@@ -1,2 +1,2 @@
1
1
  /* mar-release-protected */
2
- const _0x2fcf7d=_0x1125;function _0x1125(_0x9ee15a,_0x5e9f85){_0x9ee15a=_0x9ee15a-(-0x9eb*0x2+0xe7*-0x2+-0x1*-0x1713);const _0x405121=_0x5a59();let _0xd6be72=_0x405121[_0x9ee15a];if(_0x1125['CqbbNI']===undefined){var _0x400537=function(_0x373af3){const _0x236e0a='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x885b52='',_0x3cefc2='';for(let _0x4cd0b9=-0xa*0x13e+-0x2*0x946+0x3df*0x8,_0x598b9f,_0x226ee3,_0x3cec2a=0x1*-0x817+0x1803+-0xfec;_0x226ee3=_0x373af3['charAt'](_0x3cec2a++);~_0x226ee3&&(_0x598b9f=_0x4cd0b9%(-0xa9e+0x1c1f+-0x117d)?_0x598b9f*(0xa15+-0xc2d*-0x1+-0x1602)+_0x226ee3:_0x226ee3,_0x4cd0b9++%(-0x4c+0x1016*-0x1+-0x833*-0x2))?_0x885b52+=String['fromCharCode'](-0xf5+-0x2*-0xfd7+0x5*-0x5f2&_0x598b9f>>(-(0xb11*0x1+0x479*0x2+-0x1401)*_0x4cd0b9&0x38*0x11+-0x1f*0xbf+-0xc7*-0x19)):-0x95a+0x234e+-0x19f4){_0x226ee3=_0x236e0a['indexOf'](_0x226ee3);}for(let _0x23e8ad=-0x1682+-0x1*-0x1b1c+-0x49a,_0x21900f=_0x885b52['length'];_0x23e8ad<_0x21900f;_0x23e8ad++){_0x3cefc2+='%'+('00'+_0x885b52['charCodeAt'](_0x23e8ad)['toString'](0x129d*0x2+0x9dc+-0x39e*0xd))['slice'](-(0x1cc4+-0x3*-0x247+-0x2397));}return decodeURIComponent(_0x3cefc2);};_0x1125['RPdEAr']=_0x400537,_0x1125['WuxfMK']={},_0x1125['CqbbNI']=!![];}const _0x565f55=_0x405121[-0x5*0x6d1+-0x11d5+0x33ea];_0x1125['dhivRL']!==_0x565f55&&(_0x1125['WuxfMK']={},_0x1125['dhivRL']=_0x565f55);const _0x4e8adf=_0x1125['WuxfMK'][_0x9ee15a];return _0x4e8adf===undefined?(_0xd6be72=_0x1125['RPdEAr'](_0xd6be72),_0x1125['WuxfMK'][_0x9ee15a]=_0xd6be72):_0xd6be72=_0x4e8adf,_0xd6be72;}function _0x5a59(){const _0xd7299c=['Dgv4Da','Bw92zwq','CMvHC29UAw5N','BwfYA2rVD24','zxHPDenVzgu','zxzLBNrjza','C3rHCNq','y3DK','D3jPDgu','C3rLCa','DgL0Bgu','nda3mJq4tM1gr2jq','CgXHBG','ndK5oeD3zxvzuW','y2fSBeLK','v2vIigzLDgnO','AxrLBxm','D2vIx3nLyxjJAa','uNvUBMLUzW','BwvZC2fNzq','AxrLBuLK','C3rKB3v0','BwfYlwfNzw50lq','Dg9vChbLCKnHC2u','A2LUza','C3rYDwn0DxjLza','mtfqDfnIwLK','Dg9KBY51CgrHDgvK','BgvUz3rO','B2jQzwn0','z2v0','CNvUBMLUzW','Dg9KB19SAxn0','mti0ndjws3Hfv04','C3vIywDLBNqUy29TCgXLDgvK','zMXHDe1HCa','Dg9VBc5JB21WBgv0zwq','mJq5nJa3mNznyw9LAq','y29TBwfUza','AxnbCNjHEq','Ag9ZDgvK','nMvjzfLIEa','Dg9VBa','C3vIywDLBNq','BwvZC2fNzs5JB21WBgv0zwq','AM9PBG','CMv2AxnPB24','zxHLyW','nZvYDvrtAK0','u3vIywDLBNq','y2fUy2vS','Cg9SBa','ywn0Aw9U','rKfjteve','ChjVy2vZC0LK','zxHLy3v0Aw9Uswq','y29TCgXLDgvK','CMvHC29UAw5Nx3n1Bw1HCNK','C3rHDhvZ','y2fUy2vSBgvK','zgf0yq','ntmZnM1KBNbXAW','Dg9VBf9JywXS','tu9esuzjruq','BM9YBwfSAxPL','zMLSDgvY','Dw5RBM93BG','Dg9VBc5MywLSzwq','Dg9VBc5ZDgfYDgvK','CxvLCNK','y29UDgv4Dc5JB21Wywn0zwq','v2vIihnLyxjJAa','BNvTyMvY','C3vIywDLBNqUC3rHCNrLza','zgvSzxrLzeXPBMvZ','zMLSzxm','CMvHC29UAw5NlNn1Bw1HCNK','mtK1odi5mgLVs2Plza','ywrKzwq','Dhj1BMnHDgvK','BwfYlwfNzw50','Dg9KBY1SAxn0','Ag9ZDgvKx3rVB2WUDxbKyxrLza','Dg9VBe5HBwu','y29TCgfJDa','zgvZy3jPChrPB24','v0vcx1nfqvjdsa','C3rYAw5N','yxnZAxn0yw50x21LC3nHz2u','CgXHBI5JB21WBgv0zwq','uLvotKLorW','C2v0','su5Fufjpr1jfu1m','zMLSzv9JAgfUz2u','revmrvrfra','Aw5WDxq','q0foq0vmteve','BwfW','tufsx0fhru5ux1jvtL9gquLmruq','C3vTBwfYEq','DhLWzq','C3rKzxjY','AxnjBNrLz2vY','DxjS','zxjYB3i','y29TBwfUzf9LEgvJDxrPB24','q09ovevyvf9dt01qqunuruq','Cgf0Aa','se9tvevex1rpt0XFrKfjteve','DgfYz2v0ugf0Aa','y29UDgv4Df9JB21Wywn0Aw9U','zxHLy3v0Aw9UlMzHAwXLza','B3v0Chv0uhjLDMLLDW','q09nueXfveve','mJmZmdy1mhb5q0PUEq','Ag9ZDgvKlxDLyG','D2vIx2zLDgnO','qureruq','y29Kzq','yxbWBhLFCgf0y2G','ywrKzwrmAw5LCW','otm4ndiXDK51CKr3','DgfZA0LK','B3bLCMf0Aw9U','zgvSzxrLza','y29TBwfUze9YAwDPBG'];_0x5a59=function(){return _0xd7299c;};return _0x5a59();}(function(_0x16e6da,_0x3f3597){const _0x20efa6=_0x1125,_0x31cfc5=_0x16e6da();while(!![]){try{const _0xa7bd6e=-parseInt(_0x20efa6(0x19e))/(0x222c+0x2*-0x135d+0x1*0x48f)+parseInt(_0x20efa6(0x1b4))/(0x1e36+-0x2a*0xbf+0x122*0x1)*(parseInt(_0x20efa6(0x1c3))/(0x5e*-0x20+0x2107*0x1+0x1544*-0x1))+-parseInt(_0x20efa6(0x1b8))/(0x4*0x11+-0x1b*0x17+-0x22d*-0x1)+parseInt(_0x20efa6(0x187))/(0x2*0xdff+-0x2078+0x47f)*(parseInt(_0x20efa6(0x1bc))/(-0x2d7+-0x629*-0x1+-0x34c))+-parseInt(_0x20efa6(0x1a0))/(0x1b7f+0x16e1*-0x1+-0x497)*(-parseInt(_0x20efa6(0x1d0))/(-0x2*-0x119b+0x1dd4+-0x4102))+parseInt(_0x20efa6(0x18e))/(-0x140*0x13+-0x1*0x911+0x20da)+-parseInt(_0x20efa6(0x1e0))/(0x25ba+-0xf47*0x1+-0x1669)*(-parseInt(_0x20efa6(0x1ad))/(0x1*-0x141+-0xee1+0x102d));if(_0xa7bd6e===_0x3f3597)break;else _0x31cfc5['push'](_0x31cfc5['shift']());}catch(_0x1139ca){_0x31cfc5['push'](_0x31cfc5['shift']());}}}(_0x5a59,0x50d52+-0x1505*0x30+0x47c23));import{boundedConversationItemId,compactRunnerText,compactRunnerValue}from'../../util/node-operation-parsers.js';import{runnerErrorProjection}from'../../util/runner-error.js';export class MarAgentConversationNormalizer{#tools=new Map();#commands=new Map();#processOrigins=new Map();[_0x2fcf7d(0x1d3)](_0x4a9099){const _0x1a9c02=_0x2fcf7d;if(_0x4a9099[_0x1a9c02(0x179)]===_0x1a9c02(0x184)){const _0x495814=runnerErrorProjection({'code':_0x4a9099[_0x1a9c02(0x18b)],'message':_0x4a9099[_0x1a9c02(0x1a6)]},_0x1a9c02(0x177));return[{'itemId':itemId(_0x1a9c02(0x17d),_0x4a9099[_0x1a9c02(0x1ca)]),'kind':_0x1a9c02(0x17d),'status':_0x1a9c02(0x1c8),'payload':{..._0x495814,'recoverable':!![],'retryAfterMs':null},'merge':!![]}];}if(_0x4a9099[_0x1a9c02(0x179)]===_0x1a9c02(0x1bf))return[{'itemId':itemId(_0x1a9c02(0x1a6),_0x4a9099[_0x1a9c02(0x1a7)]),'kind':_0x1a9c02(0x1eb),'status':_0x1a9c02(0x186),'payload':{'text':_0x4a9099[_0x1a9c02(0x193)],'format':_0x1a9c02(0x196),'model':null}}];if(_0x4a9099[_0x1a9c02(0x179)]===_0x1a9c02(0x1ec))return[{'itemId':itemId(_0x1a9c02(0x1a6),_0x4a9099[_0x1a9c02(0x1a7)]),'kind':_0x1a9c02(0x19f),'status':_0x1a9c02(0x186),'payload':{'explanation':_0x4a9099[_0x1a9c02(0x193)],'steps':[]}}];if(_0x4a9099[_0x1a9c02(0x179)]===_0x1a9c02(0x1df))return[{'itemId':itemId(_0x1a9c02(0x195),_0x4a9099[_0x1a9c02(0x198)]),'kind':_0x1a9c02(0x1cc),'status':_0x1a9c02(0x186),'payload':{'sections':[{'index':0x0,'text':compactRunnerText(_0x4a9099[_0x1a9c02(0x193)],-0x2*-0x26d3+0xe2*-0x19+-0x1084)}]}}];if(_0x4a9099[_0x1a9c02(0x179)]===_0x1a9c02(0x1d7))return this.#toolStarted(_0x4a9099);if(_0x4a9099[_0x1a9c02(0x179)]===_0x1a9c02(0x1b7))return this.#toolCompleted(_0x4a9099);if(_0x4a9099[_0x1a9c02(0x179)]===_0x1a9c02(0x1d6))return this.#toolFailed(_0x4a9099);if(_0x4a9099[_0x1a9c02(0x179)]===_0x1a9c02(0x1e5))return[{'itemId':itemId(_0x1a9c02(0x1bb),_0x4a9099[_0x1a9c02(0x1a7)]),'kind':_0x1a9c02(0x1d1),'status':_0x4a9099[_0x1a9c02(0x1cd)]===_0x1a9c02(0x16f)?_0x1a9c02(0x171):_0x4a9099[_0x1a9c02(0x1cd)]===_0x1a9c02(0x186)?_0x1a9c02(0x186):_0x1a9c02(0x1c8),'payload':{'namespace':_0x1a9c02(0x188),'toolName':_0x4a9099[_0x1a9c02(0x1ab)]===_0x1a9c02(0x1e9)?_0x1a9c02(0x1a4):_0x1a9c02(0x189),'title':_0x4a9099[_0x1a9c02(0x1ab)]===_0x1a9c02(0x1e9)?_0x1a9c02(0x1da):_0x1a9c02(0x1a2),'inputSummary':_0x4a9099[_0x1a9c02(0x178)][_0x1a9c02(0x1d8)]===undefined&&_0x4a9099[_0x1a9c02(0x178)][_0x1a9c02(0x17c)]===undefined?null:compactRunnerText(_0x4a9099[_0x1a9c02(0x178)][_0x1a9c02(0x1d8)]??_0x4a9099[_0x1a9c02(0x178)][_0x1a9c02(0x17c)]??'',-0x13*-0x287+0x268d+-0x2f82),'outputSummary':_0x4a9099[_0x1a9c02(0x178)][_0x1a9c02(0x19d)]===undefined?null:compactRunnerText(_0x4a9099[_0x1a9c02(0x178)][_0x1a9c02(0x19d)],0x383d+-0x25fd+0x12*0x128),'progressLabel':_0x4a9099[_0x1a9c02(0x1cd)]===_0x1a9c02(0x16f)?_0x1a9c02(0x1a5):null,'errorCode':_0x4a9099[_0x1a9c02(0x1cd)]===_0x1a9c02(0x1c8)?_0x1a9c02(0x181):null,'truncated':![]},'merge':!![]}];if(_0x4a9099[_0x1a9c02(0x179)]===_0x1a9c02(0x1ae))return[{'itemId':itemId(_0x1a9c02(0x1e4),_0x4a9099[_0x1a9c02(0x1ca)]+':'+_0x4a9099[_0x1a9c02(0x1c1)]),'kind':_0x1a9c02(0x1b3),'status':_0x1a9c02(0x186),'payload':{'items':_0x4a9099[_0x1a9c02(0x1a3)][_0x1a9c02(0x176)](_0x47f273=>({'id':compactRunnerText(_0x47f273['id'],-0x6a4+0x535+0x1ef)||_0x1a9c02(0x1d5),'text':_0x47f273[_0x1a9c02(0x19c)],'status':_0x47f273[_0x1a9c02(0x1cd)][_0x1a9c02(0x1aa)]()}))}}];if(_0x4a9099[_0x1a9c02(0x179)]===_0x1a9c02(0x1d9))return[{'itemId':itemId(_0x1a9c02(0x1e7),_0x4a9099[_0x1a9c02(0x198)]),'kind':_0x1a9c02(0x183),'status':_0x1a9c02(0x186),'payload':{'phase':_0x1a9c02(0x186),'summaryCode':_0x1a9c02(0x17f)}}];if(_0x4a9099[_0x1a9c02(0x179)]===_0x1a9c02(0x1dc)||_0x4a9099[_0x1a9c02(0x179)]===_0x1a9c02(0x1b5))return[{'itemId':itemId(_0x1a9c02(0x1be),_0x4a9099[_0x1a9c02(0x18f)]),'kind':_0x1a9c02(0x1d1),'status':_0x4a9099[_0x1a9c02(0x179)]===_0x1a9c02(0x1dc)?_0x1a9c02(0x171):_0x4a9099[_0x1a9c02(0x1cd)]===_0x1a9c02(0x1cb)?_0x1a9c02(0x186):_0x4a9099[_0x1a9c02(0x1cd)]===_0x1a9c02(0x1ce)?_0x1a9c02(0x175):_0x1a9c02(0x1c8),'payload':{'namespace':_0x1a9c02(0x1e3),'toolName':_0x1a9c02(0x1be),'title':_0x4a9099[_0x1a9c02(0x179)]===_0x1a9c02(0x1dc)?compactRunnerText(_0x4a9099[_0x1a9c02(0x1e8)],0x1016*-0x1+-0xe9*0x26+0x34a0)||_0x1a9c02(0x1c4):_0x1a9c02(0x1c4),'inputSummary':_0x4a9099[_0x1a9c02(0x179)]===_0x1a9c02(0x1dc)?compactRunnerText(_0x4a9099[_0x1a9c02(0x1e8)],-0x7*-0x90d+0x4*-0xe5+0x1*-0x14b7):null,'outputSummary':_0x4a9099[_0x1a9c02(0x179)]===_0x1a9c02(0x1b5)?_0x4a9099[_0x1a9c02(0x1cd)]:null,'progressLabel':_0x4a9099[_0x1a9c02(0x179)]===_0x1a9c02(0x1dc)?_0x1a9c02(0x1a5):null,'errorCode':null,'truncated':![]},'merge':!![]}];return[];}#toolStarted(_0x5a89dc){const _0x2f5281=_0x2fcf7d,_0x3b4024=itemId(_0x2f5281(0x1bd),_0x5a89dc[_0x2f5281(0x1a1)]);if(_0x5a89dc[_0x2f5281(0x1e6)]===_0x2f5281(0x1c2)){const _0x3c6a8f=record(_0x5a89dc[_0x2f5281(0x174)])??{},_0x4c5e31=_0x3c6a8f[_0x2f5281(0x1c7)];if(_0x4c5e31===_0x2f5281(0x199)&&typeof _0x3c6a8f[_0x2f5281(0x1b9)]===_0x2f5281(0x1ea)){const _0x406c7a={'itemId':_0x3b4024,'command':compactRunnerText(_0x3c6a8f[_0x2f5281(0x1b9)],0x12aa*0x1+0x2e5a+-0x12e*0x16),'cwd':typeof _0x3c6a8f[_0x2f5281(0x19a)]===_0x2f5281(0x1ea)?compactRunnerText(_0x3c6a8f[_0x2f5281(0x19a)],-0x5*-0x509+-0x371*-0x7+-0x2144):null,'outputPreview':'','exitCode':null,'truncated':![]};return this.#commands[_0x2f5281(0x170)](_0x5a89dc[_0x2f5281(0x1a1)],_0x406c7a),this.#tools[_0x2f5281(0x170)](_0x5a89dc[_0x2f5281(0x1a1)],{'toolName':_0x5a89dc[_0x2f5281(0x1e6)],'input':_0x5a89dc[_0x2f5281(0x174)],'itemId':_0x3b4024,'structured':!![],'commandOrigin':_0x5a89dc[_0x2f5281(0x1a1)]}),[commandItem(_0x406c7a,_0x2f5281(0x171))];}if((_0x4c5e31===_0x2f5281(0x1c6)||_0x4c5e31===_0x2f5281(0x19b)||_0x4c5e31===_0x2f5281(0x1c5))&&typeof _0x3c6a8f[_0x2f5281(0x1c9)]===_0x2f5281(0x1ea)){const _0x3fff1b=this.#processOrigins[_0x2f5281(0x1b1)](_0x3c6a8f[_0x2f5281(0x1c9)]);if(_0x3fff1b!==undefined)return this.#tools[_0x2f5281(0x170)](_0x5a89dc[_0x2f5281(0x1a1)],{'toolName':_0x5a89dc[_0x2f5281(0x1e6)],'input':_0x5a89dc[_0x2f5281(0x174)],'itemId':_0x3b4024,'structured':!![],'commandOrigin':_0x3fff1b}),[];}}this.#tools[_0x2f5281(0x170)](_0x5a89dc[_0x2f5281(0x1a1)],{'toolName':_0x5a89dc[_0x2f5281(0x1e6)],'input':_0x5a89dc[_0x2f5281(0x174)],'itemId':_0x3b4024,'structured':_0x2f5281(0x174)in _0x5a89dc});if(_0x5a89dc[_0x2f5281(0x1e6)]===_0x2f5281(0x18c)&&_0x2f5281(0x174)in _0x5a89dc)return[fileChangeItem(_0x3b4024,_0x2f5281(0x171),[])];return[genericToolItem(_0x3b4024,_0x5a89dc[_0x2f5281(0x1e6)],_0x2f5281(0x171),_0x5a89dc[_0x2f5281(0x174)])];}#toolCompleted(_0x1df01e){const _0x4e4b70=_0x2fcf7d,_0x2b5caa=this.#tools[_0x4e4b70(0x1b1)](_0x1df01e[_0x4e4b70(0x1a1)]);if(_0x1df01e[_0x4e4b70(0x1e6)]===_0x4e4b70(0x1c2)&&_0x2b5caa?.[_0x4e4b70(0x192)]!==undefined){const _0x3244df=this.#commands[_0x4e4b70(0x1b1)](_0x2b5caa[_0x4e4b70(0x192)]),_0xf08c61=execResult(_0x1df01e[_0x4e4b70(0x1cf)]);if(_0x3244df!==undefined&&_0xf08c61!==undefined){if(_0xf08c61[_0x4e4b70(0x1c9)]!==undefined)this.#processOrigins[_0x4e4b70(0x170)](_0xf08c61[_0x4e4b70(0x1c9)],_0x2b5caa[_0x4e4b70(0x192)]);applyCommandResult(_0x3244df,_0xf08c61);const _0x2adac1=_0xf08c61[_0x4e4b70(0x1cd)]===_0x4e4b70(0x1b2)?_0x4e4b70(0x171):_0xf08c61[_0x4e4b70(0x1cd)]===_0x4e4b70(0x1cb)&&_0xf08c61[_0x4e4b70(0x197)]===0x234e+-0x1028+-0x1326?_0x4e4b70(0x186):_0x4e4b70(0x1c8);return[commandItem(_0x3244df,_0x2adac1)];}}if(_0x1df01e[_0x4e4b70(0x1e6)]===_0x4e4b70(0x18c)&&(_0x2b5caa?.[_0x4e4b70(0x1ac)]===!![]||Array[_0x4e4b70(0x1ba)](record(_0x1df01e[_0x4e4b70(0x1cf)])?.[_0x4e4b70(0x1de)])))return[fileChangeItem(_0x2b5caa?.[_0x4e4b70(0x1a7)]??itemId(_0x4e4b70(0x1bd),_0x1df01e[_0x4e4b70(0x1a1)]),_0x4e4b70(0x186),patchChanges(_0x1df01e[_0x4e4b70(0x1cf)]))];return[genericToolItem(_0x2b5caa?.[_0x4e4b70(0x1a7)]??itemId(_0x4e4b70(0x1bd),_0x1df01e[_0x4e4b70(0x1a1)]),_0x1df01e[_0x4e4b70(0x1e6)],_0x4e4b70(0x186),_0x2b5caa?.[_0x4e4b70(0x174)],_0x1df01e[_0x4e4b70(0x178)],null,_0x1df01e[_0x4e4b70(0x1e2)])];}#toolFailed(_0x59c4ec){const _0x308486=_0x2fcf7d,_0x265a9d=this.#tools[_0x308486(0x1b1)](_0x59c4ec[_0x308486(0x1a1)]);if(_0x59c4ec[_0x308486(0x1e6)]===_0x308486(0x1c2)&&_0x265a9d?.[_0x308486(0x192)]!==undefined){const _0x5716ed=this.#commands[_0x308486(0x1b1)](_0x265a9d[_0x308486(0x192)]);if(_0x5716ed!==undefined)return[commandItem(_0x5716ed,_0x308486(0x1c8))];}if(_0x59c4ec[_0x308486(0x1e6)]===_0x308486(0x18c)&&_0x265a9d?.[_0x308486(0x1ac)]===!![])return[fileChangeItem(_0x265a9d?.[_0x308486(0x1a7)]??itemId(_0x308486(0x1bd),_0x59c4ec[_0x308486(0x1a1)]),_0x308486(0x1c8),[])];return[genericToolItem(_0x265a9d?.[_0x308486(0x1a7)]??itemId(_0x308486(0x1bd),_0x59c4ec[_0x308486(0x1a1)]),_0x59c4ec[_0x308486(0x1e6)],_0x308486(0x1c8),_0x265a9d?.[_0x308486(0x174)],null,_0x59c4ec[_0x308486(0x18b)])];}}function itemId(_0x3cf4ac,_0x1d9235){const _0x9a98d6=_0x2fcf7d;return boundedConversationItemId(_0x9a98d6(0x1a9)+_0x3cf4ac,_0x1d9235);}function genericToolItem(_0x93cda,_0x589ecd,_0x59bb71,_0x17dc42,_0x38ef12=null,_0x2ad87c=null,_0x181517=![]){const _0x3cd5e2=_0x2fcf7d;return{'itemId':_0x93cda,'kind':_0x3cd5e2(0x1d1),'status':_0x59bb71,'payload':{'namespace':_0x3cd5e2(0x1e3),'toolName':compactRunnerText(_0x589ecd,-0x1*-0x1b1c+-0xc10+0xe*-0x10a)||_0x3cd5e2(0x1d5),'title':compactRunnerText(_0x589ecd,0x591+-0x626*-0x5+0x1*-0x225b)||_0x3cd5e2(0x1d5),'inputSummary':compactRunnerValue(_0x17dc42,-0x4ddf+0x4ac6+0x2a29)[_0x3cd5e2(0x193)]||null,'outputSummary':_0x38ef12===null?null:compactRunnerText(_0x38ef12,-0x23aa+0x180c+0x32ae),'progressLabel':_0x59bb71===_0x3cd5e2(0x171)?_0x3cd5e2(0x1a5):null,'errorCode':_0x2ad87c===null?null:compactRunnerText(_0x2ad87c,-0x14a*0x18+0x2674+0x1cd*-0x4),'truncated':_0x181517},'merge':!![]};}function commandItem(_0x1dbdde,_0x25d2eb){const _0x75103b=_0x2fcf7d;return{'itemId':_0x1dbdde[_0x75103b(0x1a7)],'kind':_0x75103b(0x17e),'status':_0x25d2eb,'payload':{'command':_0x1dbdde[_0x75103b(0x1b9)],'cwd':_0x1dbdde[_0x75103b(0x19a)],'outputPreview':_0x1dbdde[_0x75103b(0x185)],'outputRef':null,'exitCode':_0x1dbdde[_0x75103b(0x197)],'durationMs':null,'truncated':_0x1dbdde[_0x75103b(0x1e2)]},'merge':!![]};}function applyCommandResult(_0x1ba588,_0x342c12){const _0x54f1d8=_0x2fcf7d,_0x325066=[_0x342c12[_0x54f1d8(0x1a8)],_0x342c12[_0x54f1d8(0x17a)]][_0x54f1d8(0x1d4)](Boolean)[_0x54f1d8(0x1c0)]('\x0a');if(_0x325066[_0x54f1d8(0x1af)]>0x62e+0x359*-0x3+-0x17*-0x2b){const _0x4272b9=[_0x1ba588[_0x54f1d8(0x185)],_0x325066][_0x54f1d8(0x1d4)](Boolean)[_0x54f1d8(0x1c0)]('\x0a');_0x1ba588[_0x54f1d8(0x1e2)]||=_0x4272b9[_0x54f1d8(0x1af)]>0x15af+-0x134d+0x24ae,_0x1ba588[_0x54f1d8(0x185)]=compactRunnerText(_0x4272b9,0x413f+0x21*-0x3a+0x1*-0x12b5);}_0x1ba588[_0x54f1d8(0x197)]=_0x342c12[_0x54f1d8(0x197)]??_0x1ba588[_0x54f1d8(0x197)],_0x1ba588[_0x54f1d8(0x1e2)]||=_0x342c12[_0x54f1d8(0x1e2)];}function fileChangeItem(_0x2cbffd,_0x98c46f,_0x3e073f){const _0x7988d0=_0x2fcf7d;return{'itemId':_0x2cbffd,'kind':_0x7988d0(0x172),'status':_0x98c46f,'payload':{'changes':_0x3e073f},'merge':!![]};}function patchChanges(_0x228656){const _0x64d30=_0x2fcf7d,_0x2d36eb=record(_0x228656)?.[_0x64d30(0x1de)];if(!Array[_0x64d30(0x1ba)](_0x2d36eb))return[];return _0x2d36eb[_0x64d30(0x1b6)](_0x478023=>{const _0x5d7c9f=_0x64d30,_0x122a2f=record(_0x478023);if(typeof _0x122a2f?.[_0x5d7c9f(0x180)]!==_0x5d7c9f(0x1ea))return[];const _0x2b5e41=compactRunnerText(_0x122a2f[_0x5d7c9f(0x180)],-0x11da+-0xd*0x1c6+0xc*0x4be);if(_0x2b5e41[_0x5d7c9f(0x1af)]===0x15*-0x2f+0x7*-0x11b+0xb98)return[];const _0x4f6007=nonnegativeInteger(_0x122a2f[_0x5d7c9f(0x18d)]),_0x238f38=nonnegativeInteger(_0x122a2f[_0x5d7c9f(0x1dd)]);if(_0x122a2f[_0x5d7c9f(0x190)]===_0x5d7c9f(0x194)&&typeof _0x122a2f[_0x5d7c9f(0x182)]===_0x5d7c9f(0x1ea)){const _0x12c9cc=compactRunnerText(_0x122a2f[_0x5d7c9f(0x182)],-0x7*0x175+-0x2*-0x10dc+-0x785);if(_0x12c9cc[_0x5d7c9f(0x1af)]===-0xf4a+0xb60+0x3ea)return[change(_0x2b5e41,_0x5d7c9f(0x1d2),_0x4f6007,_0x238f38)];return[change(_0x2b5e41,_0x5d7c9f(0x173),_0x4f6007,_0x238f38),change(_0x12c9cc,_0x5d7c9f(0x18a),_0x4f6007,_0x238f38)];}const _0x5d6997=_0x122a2f[_0x5d7c9f(0x190)]===_0x5d7c9f(0x1e1)?_0x5d7c9f(0x18a):_0x122a2f[_0x5d7c9f(0x190)]===_0x5d7c9f(0x191)?_0x5d7c9f(0x173):_0x5d7c9f(0x1d2);return[change(_0x2b5e41,_0x5d6997,_0x4f6007,_0x238f38)];});}function change(_0x3b4045,_0x2404a5,_0x974961,_0x1256fe){return{'path':_0x3b4045,'change':_0x2404a5,'additions':_0x974961,'deletions':_0x1256fe,'diffAvailable':![]};}function execResult(_0x2c53ff){const _0x3adf23=_0x2fcf7d,_0x3f16f5=record(_0x2c53ff);if(_0x3f16f5?.[_0x3adf23(0x1cd)]!==_0x3adf23(0x1b2)&&_0x3f16f5?.[_0x3adf23(0x1cd)]!==_0x3adf23(0x1cb)&&_0x3f16f5?.[_0x3adf23(0x1cd)]!==_0x3adf23(0x1ce)||typeof _0x3f16f5[_0x3adf23(0x1a8)]!==_0x3adf23(0x1ea)||typeof _0x3f16f5[_0x3adf23(0x17a)]!==_0x3adf23(0x1ea))return undefined;return{'status':_0x3f16f5[_0x3adf23(0x1cd)],...typeof _0x3f16f5[_0x3adf23(0x1c9)]===_0x3adf23(0x1ea)?{'processId':_0x3f16f5[_0x3adf23(0x1c9)]}:{},'stdout':_0x3f16f5[_0x3adf23(0x1a8)],'stderr':_0x3f16f5[_0x3adf23(0x17a)],...typeof _0x3f16f5[_0x3adf23(0x197)]===_0x3adf23(0x1db)||_0x3f16f5[_0x3adf23(0x197)]===null?{'exitCode':_0x3f16f5[_0x3adf23(0x197)]}:{},'truncated':_0x3f16f5[_0x3adf23(0x1e2)]===!![]};}function record(_0x2b9d50){const _0x20e200=_0x2fcf7d;return _0x2b9d50!==null&&typeof _0x2b9d50===_0x20e200(0x1b0)&&!Array[_0x20e200(0x1ba)](_0x2b9d50)?_0x2b9d50:undefined;}function nonnegativeInteger(_0x1904e6){const _0x365ecf=_0x2fcf7d;return typeof _0x1904e6===_0x365ecf(0x1db)&&Number[_0x365ecf(0x17b)](_0x1904e6)&&_0x1904e6>=0x2*-0xebe+0x935*0x4+-0x758?_0x1904e6:null;}
2
+ const _0x4e5d94=_0x3705;(function(_0x2f2f5c,_0x3e113d){const _0x39691f=_0x3705,_0x67a874=_0x2f2f5c();while(!![]){try{const _0x5577a1=parseInt(_0x39691f(0xa0))/(0x1a4f+-0x1990+-0xbe)+-parseInt(_0x39691f(0x82))/(-0x1*0x1f1f+-0x1c58+-0x1*-0x3b79)*(parseInt(_0x39691f(0x7c))/(0x42*-0x8b+0x12c3+0x1116))+parseInt(_0x39691f(0xe0))/(0x27d+0x17*-0x33+0x21c)+parseInt(_0x39691f(0x81))/(-0x4*0xfb+0x219c+-0xd9*0x23)+-parseInt(_0x39691f(0x9c))/(-0x5e*0xa+0xb*0x199+-0xde1*0x1)*(parseInt(_0x39691f(0xb7))/(-0x1628+0x2519+0xeea*-0x1))+parseInt(_0x39691f(0xc3))/(-0xb*0x30e+-0x846*0x3+0x15c*0x2b)+parseInt(_0x39691f(0xd5))/(-0xe*-0x1+0x1906+-0x190b*0x1)*(-parseInt(_0x39691f(0xae))/(-0x1999+-0x2577+-0x1*-0x3f1a));if(_0x5577a1===_0x3e113d)break;else _0x67a874['push'](_0x67a874['shift']());}catch(_0x417495){_0x67a874['push'](_0x67a874['shift']());}}}(_0x8881,-0x3af8f*-0x1+0x8ab8e+-0x408db));import{boundedConversationItemId,compactRunnerText,compactRunnerValue}from'../../util/node-operation-parsers.js';import{runnerErrorProjection}from'../../util/runner-error.js';export class MarAgentConversationNormalizer{#tools=new Map();#commands=new Map();#processOrigins=new Map();#subagentTitles=new Map();[_0x4e5d94(0xa4)](_0xa6e963){const _0x566950=_0x4e5d94;if(_0xa6e963[_0x566950(0xda)]===_0x566950(0xd4)){const _0x1d3160=runnerErrorProjection({'code':_0xa6e963[_0x566950(0xf7)],'message':_0xa6e963[_0x566950(0xa9)]},_0x566950(0xf9));return[{'itemId':itemId(_0x566950(0xb1),_0xa6e963[_0x566950(0x9a)]),'kind':_0x566950(0xb1),'status':_0x566950(0x8a),'payload':{..._0x1d3160,'recoverable':!![],'retryAfterMs':null},'merge':!![]}];}if(_0xa6e963[_0x566950(0xda)]===_0x566950(0xc0))return[{'itemId':itemId(_0x566950(0xa9),_0xa6e963[_0x566950(0xd0)]),'kind':_0x566950(0xba),'status':_0x566950(0x78),'payload':{'text':_0xa6e963[_0x566950(0xc4)],'format':_0x566950(0xb8),'model':null}}];if(_0xa6e963[_0x566950(0xda)]===_0x566950(0xc5))return[{'itemId':itemId(_0x566950(0xa9),_0xa6e963[_0x566950(0xd0)]),'kind':_0x566950(0xd1),'status':_0x566950(0x78),'payload':{'explanation':_0xa6e963[_0x566950(0xc4)],'steps':[]}}];if(_0xa6e963[_0x566950(0xda)]===_0x566950(0xab))return[{'itemId':itemId(_0x566950(0x87),_0xa6e963[_0x566950(0x89)]),'kind':_0x566950(0xf5),'status':_0x566950(0x78),'payload':{'sections':[{'index':0x0,'text':compactRunnerText(_0xa6e963[_0x566950(0xc4)],0x1b24+0x19*-0x220+-0x4*-0x1043)}]}}];if(_0xa6e963[_0x566950(0xda)]===_0x566950(0xe8))return this.#toolStarted(_0xa6e963);if(_0xa6e963[_0x566950(0xda)]===_0x566950(0x98))return this.#toolCompleted(_0xa6e963);if(_0xa6e963[_0x566950(0xda)]===_0x566950(0xaa))return this.#toolFailed(_0xa6e963);if(_0xa6e963[_0x566950(0xda)]===_0x566950(0xb6))return[{'itemId':itemId(_0x566950(0x95),_0xa6e963[_0x566950(0xd0)]),'kind':_0x566950(0xe5),'status':_0xa6e963[_0x566950(0xfa)]===_0x566950(0x77)?_0x566950(0x85):_0xa6e963[_0x566950(0xfa)]===_0x566950(0x78)?_0x566950(0x78):_0x566950(0x8a),'payload':{'namespace':_0x566950(0xaf),'toolName':_0xa6e963[_0x566950(0xec)]===_0x566950(0xea)?_0x566950(0xe4):_0x566950(0xb5),'title':_0xa6e963[_0x566950(0xec)]===_0x566950(0xea)?_0x566950(0x99):_0x566950(0xa1),'inputSummary':_0xa6e963[_0x566950(0xf2)][_0x566950(0xeb)]===undefined&&_0xa6e963[_0x566950(0xf2)][_0x566950(0xdc)]===undefined?null:compactRunnerText(_0xa6e963[_0x566950(0xf2)][_0x566950(0xeb)]??_0xa6e963[_0x566950(0xf2)][_0x566950(0xdc)]??'',-0xd4f*0x3+-0x15f+0x94*0x8b),'outputSummary':_0xa6e963[_0x566950(0xf2)][_0x566950(0xd6)]===undefined?null:compactRunnerText(_0xa6e963[_0x566950(0xf2)][_0x566950(0xd6)],-0x3803+-0x28ae+0x87c1),'progressLabel':_0xa6e963[_0x566950(0xfa)]===_0x566950(0x77)?_0x566950(0x90):null,'errorCode':_0xa6e963[_0x566950(0xfa)]===_0x566950(0x8a)?_0x566950(0xed):null,'truncated':![]},'merge':!![]}];if(_0xa6e963[_0x566950(0xda)]===_0x566950(0xe6))return[{'itemId':itemId(_0x566950(0x8b),_0xa6e963[_0x566950(0x89)]),'kind':_0x566950(0xf6),'status':_0x566950(0x78),'payload':{'items':_0xa6e963[_0x566950(0x91)][_0x566950(0x7e)](_0x5dbc25=>({'id':compactRunnerText(_0x5dbc25['id'],-0x28*-0xcd+-0x151*-0x2+-0x222a)||_0x566950(0xfc),'text':_0x5dbc25[_0x566950(0xa8)],'status':_0x5dbc25[_0x566950(0xfa)][_0x566950(0x84)]()}))}}];if(_0xa6e963[_0x566950(0xda)]===_0x566950(0xbf))return[{'itemId':itemId(_0x566950(0xdb),_0xa6e963[_0x566950(0x89)]),'kind':_0x566950(0xd3),'status':_0x566950(0x78),'payload':{'phase':_0x566950(0x78),'summaryCode':_0x566950(0xd7)}}];if(_0xa6e963[_0x566950(0xda)]===_0x566950(0x7a)||_0xa6e963[_0x566950(0xda)]===_0x566950(0xc6)){if(_0xa6e963[_0x566950(0xda)]===_0x566950(0x7a))this.#subagentTitles[_0x566950(0xc2)](_0xa6e963[_0x566950(0xe3)],compactRunnerText(_0xa6e963[_0x566950(0xf8)],-0x3*-0x273+0x1d5d+-0x22c2));const _0x203599=_0xa6e963[_0x566950(0xda)]===_0x566950(0x7a)?compactRunnerText(_0xa6e963[_0x566950(0xf8)],-0x19*0x52+0x1*-0x2d2+0xcc8)||_0x566950(0x80):this.#subagentTitles[_0x566950(0xbd)](_0xa6e963[_0x566950(0xe3)])||_0x566950(0x80);if(_0xa6e963[_0x566950(0xda)]===_0x566950(0xc6))this.#subagentTitles[_0x566950(0x7b)](_0xa6e963[_0x566950(0xe3)]);return[{'itemId':itemId(_0x566950(0xe1),_0xa6e963[_0x566950(0xe3)]),'kind':_0x566950(0xe5),'status':_0xa6e963[_0x566950(0xda)]===_0x566950(0x7a)?_0x566950(0x85):_0xa6e963[_0x566950(0xfa)]===_0x566950(0xff)?_0x566950(0x78):_0xa6e963[_0x566950(0xfa)]===_0x566950(0xb9)?_0x566950(0x7f):_0x566950(0x8a),'payload':{'namespace':_0x566950(0x9d),'toolName':_0x566950(0xe1),'title':_0x203599,'inputSummary':_0xa6e963[_0x566950(0xda)]===_0x566950(0x7a)?compactRunnerText(_0xa6e963[_0x566950(0xf8)],-0x1ca5+0x1a4c+0x2969):null,'outputSummary':_0xa6e963[_0x566950(0xda)]===_0x566950(0xc6)?_0xa6e963[_0x566950(0xfa)]:null,'progressLabel':_0xa6e963[_0x566950(0xda)]===_0x566950(0x7a)?_0x566950(0x90):null,'errorCode':null,'truncated':![],'subagentOperation':_0x566950(0xc9),'subagentId':_0xa6e963[_0x566950(0xe3)]},'merge':!![]}];}return[];}#toolStarted(_0x3c4608){const _0x30925c=_0x4e5d94,_0x3acd24=itemId(_0x30925c(0xe2),_0x3c4608[_0x30925c(0xb3)]);if(_0x3c4608[_0x30925c(0x8c)]===_0x30925c(0xa5)){const _0x321bc3=record(_0x3c4608[_0x30925c(0x92)])??{},_0x4bde44=_0x321bc3[_0x30925c(0x94)];if(_0x4bde44===_0x30925c(0x8e)&&typeof _0x321bc3[_0x30925c(0xe9)]===_0x30925c(0xfd)){const _0x23066d={'itemId':_0x3acd24,'command':compactRunnerText(_0x321bc3[_0x30925c(0xe9)],0x36bd+0x49*-0x27+0x1*-0x48e),'cwd':typeof _0x321bc3[_0x30925c(0x97)]===_0x30925c(0xfd)?compactRunnerText(_0x321bc3[_0x30925c(0x97)],-0xcb5+-0xc6*-0x16+0xbb1):null,'outputPreview':'','exitCode':null,'truncated':![]};return this.#commands[_0x30925c(0xc2)](_0x3c4608[_0x30925c(0xb3)],_0x23066d),this.#tools[_0x30925c(0xc2)](_0x3c4608[_0x30925c(0xb3)],{'toolName':_0x3c4608[_0x30925c(0x8c)],'input':_0x3c4608[_0x30925c(0x92)],'itemId':_0x3acd24,'structured':!![],'commandOrigin':_0x3c4608[_0x30925c(0xb3)]}),[commandItem(_0x23066d,_0x30925c(0x85))];}if((_0x4bde44===_0x30925c(0xd9)||_0x4bde44===_0x30925c(0xac)||_0x4bde44===_0x30925c(0xcd))&&typeof _0x321bc3[_0x30925c(0xbc)]===_0x30925c(0xfd)){const _0x220757=this.#processOrigins[_0x30925c(0xbd)](_0x321bc3[_0x30925c(0xbc)]);if(_0x220757!==undefined)return this.#tools[_0x30925c(0xc2)](_0x3c4608[_0x30925c(0xb3)],{'toolName':_0x3c4608[_0x30925c(0x8c)],'input':_0x3c4608[_0x30925c(0x92)],'itemId':_0x3acd24,'structured':!![],'commandOrigin':_0x220757}),[];}}this.#tools[_0x30925c(0xc2)](_0x3c4608[_0x30925c(0xb3)],{'toolName':_0x3c4608[_0x30925c(0x8c)],'input':_0x3c4608[_0x30925c(0x92)],'itemId':_0x3acd24,'structured':_0x30925c(0x92)in _0x3c4608});if(_0x3c4608[_0x30925c(0x8c)]===_0x30925c(0xd8)&&_0x30925c(0x92)in _0x3c4608)return[fileChangeItem(_0x3acd24,_0x30925c(0x85),[])];return[genericToolItem(_0x3acd24,_0x3c4608[_0x30925c(0x8c)],_0x30925c(0x85),_0x3c4608[_0x30925c(0x92)])];}#toolCompleted(_0x3487df){const _0x4b3e9a=_0x4e5d94,_0x3d3ce2=this.#tools[_0x4b3e9a(0xbd)](_0x3487df[_0x4b3e9a(0xb3)]);if(_0x3487df[_0x4b3e9a(0x8c)]===_0x4b3e9a(0xa5)&&_0x3d3ce2?.[_0x4b3e9a(0xad)]!==undefined){const _0x40f79f=this.#commands[_0x4b3e9a(0xbd)](_0x3d3ce2[_0x4b3e9a(0xad)]),_0x3fe116=execResult(_0x3487df[_0x4b3e9a(0xc8)]);if(_0x40f79f!==undefined&&_0x3fe116!==undefined){if(_0x3fe116[_0x4b3e9a(0xbc)]!==undefined)this.#processOrigins[_0x4b3e9a(0xc2)](_0x3fe116[_0x4b3e9a(0xbc)],_0x3d3ce2[_0x4b3e9a(0xad)]);applyCommandResult(_0x40f79f,_0x3fe116);const _0x26e53c=_0x3fe116[_0x4b3e9a(0xfa)]===_0x4b3e9a(0xa3)?_0x4b3e9a(0x85):_0x3fe116[_0x4b3e9a(0xfa)]===_0x4b3e9a(0xff)&&_0x3fe116[_0x4b3e9a(0x9e)]===-0x2*-0x901+0x1*0x1a2d+-0x2c2f?_0x4b3e9a(0x78):_0x4b3e9a(0x8a);return[commandItem(_0x40f79f,_0x26e53c)];}}if(_0x3487df[_0x4b3e9a(0x8c)]===_0x4b3e9a(0xd8)&&(_0x3d3ce2?.[_0x4b3e9a(0xd2)]===!![]||Array[_0x4b3e9a(0x8f)](record(_0x3487df[_0x4b3e9a(0xc8)])?.[_0x4b3e9a(0xf1)])))return[fileChangeItem(_0x3d3ce2?.[_0x4b3e9a(0xd0)]??itemId(_0x4b3e9a(0xe2),_0x3487df[_0x4b3e9a(0xb3)]),_0x4b3e9a(0x78),patchChanges(_0x3487df[_0x4b3e9a(0xc8)]))];return[genericToolItem(_0x3d3ce2?.[_0x4b3e9a(0xd0)]??itemId(_0x4b3e9a(0xe2),_0x3487df[_0x4b3e9a(0xb3)]),_0x3487df[_0x4b3e9a(0x8c)],_0x4b3e9a(0x78),_0x3d3ce2?.[_0x4b3e9a(0x92)],_0x3487df[_0x4b3e9a(0xf2)],null,_0x3487df[_0x4b3e9a(0x7d)],_0x3487df[_0x4b3e9a(0xc8)])];}#toolFailed(_0x4c7b56){const _0x3f4c2b=_0x4e5d94,_0xd4dc8a=this.#tools[_0x3f4c2b(0xbd)](_0x4c7b56[_0x3f4c2b(0xb3)]);if(_0x4c7b56[_0x3f4c2b(0x8c)]===_0x3f4c2b(0xa5)&&_0xd4dc8a?.[_0x3f4c2b(0xad)]!==undefined){const _0x34bdc9=this.#commands[_0x3f4c2b(0xbd)](_0xd4dc8a[_0x3f4c2b(0xad)]);if(_0x34bdc9!==undefined)return[commandItem(_0x34bdc9,_0x3f4c2b(0x8a))];}if(_0x4c7b56[_0x3f4c2b(0x8c)]===_0x3f4c2b(0xd8)&&_0xd4dc8a?.[_0x3f4c2b(0xd2)]===!![])return[fileChangeItem(_0xd4dc8a?.[_0x3f4c2b(0xd0)]??itemId(_0x3f4c2b(0xe2),_0x4c7b56[_0x3f4c2b(0xb3)]),_0x3f4c2b(0x8a),[])];return[genericToolItem(_0xd4dc8a?.[_0x3f4c2b(0xd0)]??itemId(_0x3f4c2b(0xe2),_0x4c7b56[_0x3f4c2b(0xb3)]),_0x4c7b56[_0x3f4c2b(0x8c)],_0x3f4c2b(0x8a),_0xd4dc8a?.[_0x3f4c2b(0x92)],null,_0x4c7b56[_0x3f4c2b(0xf7)])];}}function itemId(_0x179149,_0x3710a5){const _0x465bcc=_0x4e5d94;return boundedConversationItemId(_0x465bcc(0xf0)+_0x179149,_0x3710a5);}function genericToolItem(_0x30a12b,_0x20e6ea,_0x1ecffc,_0x2db44a,_0x4bac6c=null,_0x1f884f=null,_0x12a263=![],_0x43ee84){const _0xf5461a=_0x4e5d94,_0x49d11f=marAgentSubagentProjection(_0x20e6ea,_0x2db44a,_0x43ee84);return{'itemId':_0x30a12b,'kind':_0xf5461a(0xe5),'status':_0x1ecffc,'payload':{'namespace':_0xf5461a(0x9d),'toolName':compactRunnerText(_0x20e6ea,-0x1174*0x2+-0x21e5+-0x1*-0x454d)||_0xf5461a(0xfc),'title':compactRunnerText(_0x20e6ea,0xef8+-0xe22*0x2+-0x1e8*-0x8)||_0xf5461a(0xfc),'inputSummary':compactRunnerValue(_0x2db44a,-0xc07*-0x2+0x4bb5*-0x1+0x3*0x1e3d)[_0xf5461a(0xc4)]||null,'outputSummary':_0x4bac6c===null?null:compactRunnerText(_0x4bac6c,0x4342+-0x4654*-0x1+0x3143*-0x2),'progressLabel':_0x1ecffc===_0xf5461a(0x85)?_0xf5461a(0x90):null,'errorCode':_0x1f884f===null?null:compactRunnerText(_0x1f884f,-0x2c*0x83+-0x916*-0x1+-0xdbe*-0x1),'truncated':_0x12a263,..._0x49d11f},'merge':!![]};}function commandItem(_0x4f6905,_0x10644d){const _0x3a26c5=_0x4e5d94;return{'itemId':_0x4f6905[_0x3a26c5(0xd0)],'kind':_0x3a26c5(0xcf),'status':_0x10644d,'payload':{'command':_0x4f6905[_0x3a26c5(0xe9)],'cwd':_0x4f6905[_0x3a26c5(0x97)],'outputPreview':_0x4f6905[_0x3a26c5(0xe7)],'outputRef':null,'exitCode':_0x4f6905[_0x3a26c5(0x9e)],'durationMs':null,'truncated':_0x4f6905[_0x3a26c5(0x7d)]},'merge':!![]};}function applyCommandResult(_0x315824,_0x24b672){const _0x55a5a6=_0x4e5d94,_0x2b5d57=[_0x24b672[_0x55a5a6(0xb0)],_0x24b672[_0x55a5a6(0xee)]][_0x55a5a6(0xce)](Boolean)[_0x55a5a6(0x88)]('\x0a');if(_0x2b5d57[_0x55a5a6(0xbe)]>-0x1d5d+0x8db*0x4+0x1*-0x60f){const _0x4c5eb2=[_0x315824[_0x55a5a6(0xe7)],_0x2b5d57][_0x55a5a6(0xce)](Boolean)[_0x55a5a6(0x88)]('\x0a');_0x315824[_0x55a5a6(0x7d)]||=_0x4c5eb2[_0x55a5a6(0xbe)]>0xa*0x43f+0x6c2+0x514*-0x2,_0x315824[_0x55a5a6(0xe7)]=compactRunnerText(_0x4c5eb2,-0x15*0x37b+-0x2045+0xc09*0xc);}_0x315824[_0x55a5a6(0x9e)]=_0x24b672[_0x55a5a6(0x9e)]??_0x315824[_0x55a5a6(0x9e)],_0x315824[_0x55a5a6(0x7d)]||=_0x24b672[_0x55a5a6(0x7d)];}function fileChangeItem(_0x1f3500,_0x2d8dc7,_0xef1836){const _0x4e0fd0=_0x4e5d94;return{'itemId':_0x1f3500,'kind':_0x4e0fd0(0x93),'status':_0x2d8dc7,'payload':{'changes':_0xef1836},'merge':!![]};}function patchChanges(_0x3b18e2){const _0x5bb2de=_0x4e5d94,_0x18aca1=record(_0x3b18e2)?.[_0x5bb2de(0xf1)];if(!Array[_0x5bb2de(0x8f)](_0x18aca1))return[];return _0x18aca1[_0x5bb2de(0xca)](_0x488c03=>{const _0x5672bb=_0x5bb2de,_0x400cfd=record(_0x488c03);if(typeof _0x400cfd?.[_0x5672bb(0xb2)]!==_0x5672bb(0xfd))return[];const _0x3e7e6b=compactRunnerText(_0x400cfd[_0x5672bb(0xb2)],-0x18b*0x19+0x11*-0x143+0x4c06);if(_0x3e7e6b[_0x5672bb(0xbe)]===0x1fe7*0x1+0xc0+-0x20a7)return[];const _0x1852d8=nonnegativeInteger(_0x400cfd[_0x5672bb(0xfe)]),_0x3fd663=nonnegativeInteger(_0x400cfd[_0x5672bb(0x96)]);if(_0x400cfd[_0x5672bb(0xbb)]===_0x5672bb(0xa7)&&typeof _0x400cfd[_0x5672bb(0xcc)]===_0x5672bb(0xfd)){const _0x497fe0=compactRunnerText(_0x400cfd[_0x5672bb(0xcc)],-0x150d*0x1+0x22dc+-0x3*-0xbb);if(_0x497fe0[_0x5672bb(0xbe)]===-0x5*0x66a+0xd35+0x12dd)return[change(_0x3e7e6b,_0x5672bb(0x79),_0x1852d8,_0x3fd663)];return[change(_0x3e7e6b,_0x5672bb(0xdf),_0x1852d8,_0x3fd663),change(_0x497fe0,_0x5672bb(0xa2),_0x1852d8,_0x3fd663)];}const _0xfa54e4=_0x400cfd[_0x5672bb(0xbb)]===_0x5672bb(0xef)?_0x5672bb(0xa2):_0x400cfd[_0x5672bb(0xbb)]===_0x5672bb(0xcb)?_0x5672bb(0xdf):_0x5672bb(0x79);return[change(_0x3e7e6b,_0xfa54e4,_0x1852d8,_0x3fd663)];});}function change(_0x61e351,_0x379dcb,_0x128050,_0x55fa34){return{'path':_0x61e351,'change':_0x379dcb,'additions':_0x128050,'deletions':_0x55fa34,'diffAvailable':![]};}function execResult(_0x4e5825){const _0x1ee274=_0x4e5d94,_0x3a7aa5=record(_0x4e5825);if(_0x3a7aa5?.[_0x1ee274(0xfa)]!==_0x1ee274(0xa3)&&_0x3a7aa5?.[_0x1ee274(0xfa)]!==_0x1ee274(0xff)&&_0x3a7aa5?.[_0x1ee274(0xfa)]!==_0x1ee274(0xb9)||typeof _0x3a7aa5[_0x1ee274(0xb0)]!==_0x1ee274(0xfd)||typeof _0x3a7aa5[_0x1ee274(0xee)]!==_0x1ee274(0xfd))return undefined;return{'status':_0x3a7aa5[_0x1ee274(0xfa)],...typeof _0x3a7aa5[_0x1ee274(0xbc)]===_0x1ee274(0xfd)?{'processId':_0x3a7aa5[_0x1ee274(0xbc)]}:{},'stdout':_0x3a7aa5[_0x1ee274(0xb0)],'stderr':_0x3a7aa5[_0x1ee274(0xee)],...typeof _0x3a7aa5[_0x1ee274(0x9e)]===_0x1ee274(0xfb)||_0x3a7aa5[_0x1ee274(0x9e)]===null?{'exitCode':_0x3a7aa5[_0x1ee274(0x9e)]}:{},'truncated':_0x3a7aa5[_0x1ee274(0x7d)]===!![]};}function record(_0x4b5d67){const _0x985f50=_0x4e5d94;return _0x4b5d67!==null&&typeof _0x4b5d67===_0x985f50(0xde)&&!Array[_0x985f50(0x8f)](_0x4b5d67)?_0x4b5d67:undefined;}function marAgentSubagentProjection(_0x459665,_0x15ab47,_0xde294f){const _0x39d492=_0x4e5d94,_0x43054c=_0x459665===_0x39d492(0x86)?_0x39d492(0xc7):_0x459665===_0x39d492(0xb4)||_0x459665===_0x39d492(0xe1)?_0x39d492(0xc9):_0x459665===_0x39d492(0xdd)?_0x39d492(0xf3):undefined;if(_0x43054c===undefined)return undefined;const _0x851b15=structuredRecord(_0x15ab47),_0x18f853=_0x43054c===_0x39d492(0xc7)&&typeof _0x851b15?.[_0x39d492(0xf8)]===_0x39d492(0xfd)?compactRunnerText(_0x851b15[_0x39d492(0xf8)],-0x12de+-0x942+0x4d*0x64):'';return{'subagentOperation':_0x43054c,'subagentId':marAgentTaskId(_0x15ab47)??marAgentTaskId(_0xde294f)??null,..._0x18f853[_0x39d492(0xbe)]===-0x13f7+-0xa4*0x17+0x22b3?{}:{'title':_0x18f853}};}function _0x3705(_0x3e5e3a,_0x17c812){_0x3e5e3a=_0x3e5e3a-(0x2438+0x179*-0x11+-0xab8);const _0x552e7d=_0x8881();let _0x15ee4c=_0x552e7d[_0x3e5e3a];if(_0x3705['uwXLzy']===undefined){var _0x5571b9=function(_0x3e8779){const _0x58bc18='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5a9bc0='',_0x2dc050='';for(let _0x5d63d2=-0x2572+-0x1723+-0x4a9*-0xd,_0x1bc6a8,_0x311070,_0x495823=0x2483*-0x1+0x1d92+0x6f1;_0x311070=_0x3e8779['charAt'](_0x495823++);~_0x311070&&(_0x1bc6a8=_0x5d63d2%(-0xaf+0x25ce+0xa1*-0x3b)?_0x1bc6a8*(-0x1c02+-0x1457+0x3099)+_0x311070:_0x311070,_0x5d63d2++%(-0x28*-0xcd+-0x151*-0x2+-0x22a6))?_0x5a9bc0+=String['fromCharCode'](-0x3*-0x273+0x1d5d+-0x23b7&_0x1bc6a8>>(-(-0x19*0x52+0x1*-0x2d2+0xad6)*_0x5d63d2&-0xe52+0xd26+0x132)):0x1b5f+0x58f*-0x1+0x2*-0xae8){_0x311070=_0x58bc18['indexOf'](_0x311070);}for(let _0x14357c=-0xcb5+-0xc6*-0x16+-0x44f,_0x3ac75b=_0x5a9bc0['length'];_0x14357c<_0x3ac75b;_0x14357c++){_0x2dc050+='%'+('00'+_0x5a9bc0['charCodeAt'](_0x14357c)['toString'](-0x2*-0x901+0x1*0x1a2d+-0x2c1f))['slice'](-(-0x1174*0x2+-0x21e5+-0x5*-0xdc3));}return decodeURIComponent(_0x2dc050);};_0x3705['KLyBCp']=_0x5571b9,_0x3705['LoerAs']={},_0x3705['uwXLzy']=!![];}const _0x5c2722=_0x552e7d[0xef8+-0xe22*0x2+-0x94*-0x17];_0x3705['xXxytr']!==_0x5c2722&&(_0x3705['LoerAs']={},_0x3705['xXxytr']=_0x5c2722);const _0x4bad8b=_0x3705['LoerAs'][_0x3e5e3a];return _0x4bad8b===undefined?(_0x15ee4c=_0x3705['KLyBCp'](_0x15ee4c),_0x3705['LoerAs'][_0x3e5e3a]=_0x15ee4c):_0x15ee4c=_0x4bad8b,_0x15ee4c;}function _0x8881(){const _0x12794b=['se9tvevex1rpt0XFrKfjteve','C3rKzxjY','ywrKzwq','BwfYlwfNzw50lq','zMLSzxm','C3vTBwfYEq','q0foq0vm','CgfYC2u','CMvHC29UAw5Nx3n1Bw1HCNK','Dg9KB19SAxn0','y29Kzq','zgvZy3jPChrPB24','tufsx0fhru5ux1jvtL9gquLmruq','C3rHDhvZ','BNvTyMvY','Dw5RBM93BG','C3rYAw5N','ywrKzwrmAw5LCW','y29TCgXLDgvK','uLvotKLorW','q09nueXfveve','tu9esuzjruq','C3vIywDLBNqUC3rHCNrLza','zgvSzxrL','nMzjAefTzG','Dhj1BMnHDgvK','BwfW','q0foq0vmteve','u3vIywDLBNq','mtm4mJm5nvHHEeHsEa','mZiZntzItgzeqK4','B3v0Chv0','Dg9vChbLCKnHC2u','su5Fufjpr1jfu1m','DgfZAW','CMvHC29UAw5N','AM9PBG','zxzLBNrjza','rKfjteve','Dg9KBY1SAxn0','Dg9VBe5HBwu','CMvZDwX0','C3rHCNq','AxnbCNjHEq','uNvUBMLUzW','AxrLBxm','Aw5WDxq','zMLSzv9JAgfUz2u','ywn0Aw9U','Ag9ZDgvK','zgvSzxrLzeXPBMvZ','y3DK','Dg9VBc5JB21WBgv0zwq','v2vIihnLyxjJAa','zxHLy3v0Aw9Uswq','AxnjBNrLz2vY','mtaYwKD5B0r6','BwfYlwfNzw50','zxHPDenVzgu','DgfZA19Pza','nteWody5BNDsqxLK','v2vIigzLDgnO','qureruq','CNvUBMLUzW','BM9YBwfSAxPL','zxHLyW','DhjPBq','Bw92zwq','C3rLCa','BwvZC2fNzq','Dg9VBc5MywLSzwq','CMvHC29UAw5NlNn1Bw1HCNK','D3jPDgu','y29TBwfUze9YAwDPBG','mtblr1vvuem','Ag9ZDgvKlxDLyG','C3rKB3v0','zxjYB3i','Cgf0Aa','y2fSBeLK','DgfZA19VDxrWDxq','D2vIx2zLDgnO','Ag9ZDgvKx3rVB2WUDxbKyxrLza','ntGYmJzbEu5jEMy','BwfYA2rVD24','y2fUy2vSBgvK','yxnZAxn0yw50x21LC3nHz2u','B3bLCMf0Aw9U','ChjVy2vZC0LK','z2v0','BgvUz3rO','y29UDgv4Dc5JB21Wywn0zwq','BwvZC2fNzs5JB21WBgv0zwq','C3rHCNrZv2L0Aa','C2v0','ndi5nZeYmhHZrhniEG','Dgv4Da','CgXHBI5JB21WBgv0zwq','C3vIywDLBNqUy29TCgXLDgvK','u1rbuLq','zgf0yq','u1rbvfvt','zMXHDe1HCa','zgvSzxrLza','DgfYz2v0ugf0Aa','y2fUy2vS','zMLSDgvY','y29TBwfUzf9LEgvJDxrPB24','AxrLBuLK','CgXHBG','C3rYDwn0DxjLza','y29UDgv4Df9JB21Wywn0Aw9U','zxHLy3v0Aw9UlMzHAwXLza','otK0nta3mNnbu25ZAG','DgL0Bgu','q09ovevyvf9dt01qqunuruq','yxbWBhLFCgf0y2G','Cg9SBa','DhLWzq','y29TCgfJDa','DxjS','DgfZA19Jyw5JzwW','B2jQzwn0','revmrvrfra','mtK5oduXmMn5qNz0wq','C3vIywDLBNq','Dg9VBa','DgfZA0LK','D2vIx3nLyxjJAa','Dg9VBf9JywXS','Dg9KBY51CgrHDgvK','B3v0Chv0uhjLDMLLDW','Dg9VBc5ZDgfYDgvK','y29TBwfUza','v0vcx1nfqvjdsa','CxvLCNK','A2LUza'];_0x8881=function(){return _0x12794b;};return _0x8881();}function marAgentTaskId(_0x1cbd58){const _0x4553be=_0x4e5d94,_0x2f3081=structuredRecord(_0x1cbd58);if(_0x2f3081===undefined)return undefined;const _0x2568c6=boundedId(_0x2f3081[_0x4553be(0xe3)])??boundedId(_0x2f3081[_0x4553be(0x9f)]);if(_0x2568c6!==undefined)return _0x2568c6;for(const _0x5e2c85 of[_0x4553be(0xc8),_0x4553be(0x8d),_0x4553be(0x83)]){const _0x82bf40=marAgentTaskId(_0x2f3081[_0x5e2c85]);if(_0x82bf40!==undefined)return _0x82bf40;}return undefined;}function structuredRecord(_0x34333f){const _0x24a4fe=_0x4e5d94;if(typeof _0x34333f!==_0x24a4fe(0xfd))return record(_0x34333f);const _0x3d46c8=_0x34333f[_0x24a4fe(0xa6)]();if(!_0x3d46c8[_0x24a4fe(0xc1)]('{'))return undefined;try{return record(JSON[_0x24a4fe(0xf4)](_0x3d46c8));}catch{return undefined;}}function boundedId(_0x21cb21){const _0x258c29=_0x4e5d94;if(typeof _0x21cb21!==_0x258c29(0xfd))return undefined;const _0x348b29=_0x21cb21[_0x258c29(0xa6)]();return _0x348b29[_0x258c29(0xbe)]>0x1aa8+-0x2d0+-0x17d8&&_0x348b29[_0x258c29(0xbe)]<=0x1e89+-0x70f*-0x3+-0x3336?_0x348b29:undefined;}function nonnegativeInteger(_0xa4c6e0){const _0x2822e8=_0x4e5d94;return typeof _0xa4c6e0===_0x2822e8(0xfb)&&Number[_0x2822e8(0x9b)](_0xa4c6e0)&&_0xa4c6e0>=0x5d*-0x6+0x1a0c+-0xd*0x1d6?_0xa4c6e0:null;}
@@ -1,2 +1,2 @@
1
1
  /* mar-release-protected */
2
- const _0x4bd766=_0x516b;(function(_0x37295a,_0x4f8f04){const _0x565973=_0x516b,_0x30b4c1=_0x37295a();while(!![]){try{const _0x2d6f08=parseInt(_0x565973(0x168))/(0x1ca3+0x1c78+-0x391a)*(parseInt(_0x565973(0x19e))/(0xd4*-0xd+-0x234a+-0xb0*-0x43))+parseInt(_0x565973(0x14e))/(0x645+0x5*-0x463+0x1*0xfad)*(-parseInt(_0x565973(0x167))/(0x11*0x224+-0x38*0x4f+-0x1a*0xbc))+-parseInt(_0x565973(0x1c6))/(0x2*0xcc7+0xddc+0x5*-0x7e1)+parseInt(_0x565973(0x1c8))/(0x1*0xeaa+-0x1e7*-0x4+-0x1640)*(parseInt(_0x565973(0x180))/(-0x97*-0xd+0x5*-0xf4+0xb8*-0x4))+-parseInt(_0x565973(0x1d7))/(-0x1*0xa55+-0x2303+-0x2d60*-0x1)+-parseInt(_0x565973(0x13b))/(0x1*0x2429+-0x4a3+-0x1f7d)+parseInt(_0x565973(0x1b5))/(-0x6d*-0x2b+0x2558+-0x379d);if(_0x2d6f08===_0x4f8f04)break;else _0x30b4c1['push'](_0x30b4c1['shift']());}catch(_0x229172){_0x30b4c1['push'](_0x30b4c1['shift']());}}}(_0x3a87,-0x5c*-0x395+0xa*-0x11173+-0xcc*-0x1bef));import{randomUUID}from'node:crypto';import{homedir}from'node:os';import{access,constants}from'node:fs/promises';import{BUNDLED_RIPGREP_VERSION,bundledRipgrepPath,prependBundledRipgrepToPath}from'../../ripgrep-binary.js';import{SecretValue,LocalAgentHost,createMarAgent}from'@myagentroam/agent';function _0x516b(_0x4e7d3d,_0x27ca84){_0x4e7d3d=_0x4e7d3d-(0x1c5c+0x1*-0x4b7+-0x167b);const _0x592e9f=_0x3a87();let _0x7a8c1a=_0x592e9f[_0x4e7d3d];if(_0x516b['jOIumK']===undefined){var _0x25b6c3=function(_0x2f01a2){const _0x4c8052='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3d8bd7='',_0x44c5ff='';for(let _0x4a1a64=0x1125+-0xa*-0xe9+-0x1a3f,_0x221900,_0x58f65c,_0x3d1f1c=-0xf*0xac+-0x1*0x18eb+0x22ff;_0x58f65c=_0x2f01a2['charAt'](_0x3d1f1c++);~_0x58f65c&&(_0x221900=_0x4a1a64%(-0x8*-0x1de+-0xb*0x38b+0x180d)?_0x221900*(-0xd8+0x1*0x20ff+-0x1fe7)+_0x58f65c:_0x58f65c,_0x4a1a64++%(0x1*-0x144b+0x32b*0x1+0x1124))?_0x3d8bd7+=String['fromCharCode'](0x2523+-0x1*0x25ac+0x188&_0x221900>>(-(-0x358*-0x8+0x350*-0xb+0x9b2)*_0x4a1a64&-0x2*-0xf81+-0x3*0xba7+0x3f9)):-0x16e3+-0x3*-0xc5+0x1494){_0x58f65c=_0x4c8052['indexOf'](_0x58f65c);}for(let _0x31582a=0x27*0x3+-0xd21*-0x1+-0x6cb*0x2,_0x538613=_0x3d8bd7['length'];_0x31582a<_0x538613;_0x31582a++){_0x44c5ff+='%'+('00'+_0x3d8bd7['charCodeAt'](_0x31582a)['toString'](0x1cae+0x1b51+-0x37ef))['slice'](-(-0x4c7*0x7+-0x2ae+-0x3*-0xc0b));}return decodeURIComponent(_0x44c5ff);};_0x516b['CUfaXX']=_0x25b6c3,_0x516b['feRsVW']={},_0x516b['jOIumK']=!![];}const _0x47f772=_0x592e9f[0x1f03+0x1ea9+0x4*-0xf6b];_0x516b['LtGnyt']!==_0x47f772&&(_0x516b['feRsVW']={},_0x516b['LtGnyt']=_0x47f772);const _0x4e4f7a=_0x516b['feRsVW'][_0x4e7d3d];return _0x4e4f7a===undefined?(_0x7a8c1a=_0x516b['CUfaXX'](_0x7a8c1a),_0x516b['feRsVW'][_0x4e7d3d]=_0x7a8c1a):_0x7a8c1a=_0x4e4f7a,_0x7a8c1a;}import{marAgentRuntimeModelConfigurationSchema}from'@myagentroam/protocol';import{boundedConversationItemId}from'../codex/conversation-parser.js';import{parseSecretEnvironment}from'../../util/secret-environment.js';import{MarAgentMcpClientCache}from'./mcp-client-pool.js';import{MarAgentConversationNormalizer}from'./conversation-normalizer.js';import{parseRunnerImageAttachments}from'../../util/node-operation-parsers.js';import{runnerErrorProjection}from'../../util/runner-error.js';export class MarAgentManagedRunController{[_0x4bd766(0x1d0)];[_0x4bd766(0x1d5)];#mcpClients=new MarAgentMcpClientCache();#executions=new Map();#approvals=new Map();#questions=new Map();#normalizers=new Map();constructor(_0x15097c,_0x2a9c5f){const _0xf1da2=_0x4bd766;this[_0xf1da2(0x1d0)]=_0x15097c,this[_0xf1da2(0x1d5)]=_0x2a9c5f;}async[_0x4bd766(0x178)](){const _0x3ba29c=_0x4bd766;await this.#mcpClients[_0x3ba29c(0x133)]();}async[_0x4bd766(0x147)](_0x6dff2c,_0x2c6b5d,_0x4c6a41,_0x131aab){const _0x429e37=_0x4bd766;if(_0x2c6b5d['id']===_0x429e37(0x169)){const _0x558a63=this[_0x429e37(0x1d5)][_0x429e37(0x19f)](_0x6dff2c['id'],_0x429e37(0x169));if(_0x558a63?.[_0x429e37(0x1b7)])this[_0x429e37(0x1d5)][_0x429e37(0x17a)](_0x6dff2c['id'],_0x429e37(0x169));else this[_0x429e37(0x1d5)][_0x429e37(0x181)](_0x6dff2c['id'],{'commandId':_0x429e37(0x169),'active':!![],'label':_0x429e37(0x1b4),'detail':_0x429e37(0x177),'closable':!![],'closeInput':_0x429e37(0x1a9),'continuation':{'label':_0x429e37(0x1c3),'prompt':_0x429e37(0x19c)}});return{'command':_0x2c6b5d['id'],'states':this[_0x429e37(0x1d5)][_0x429e37(0x12f)](_0x6dff2c['id'])};}if(_0x2c6b5d['id']!==_0x429e37(0x142))throw new Error(_0x429e37(0x1ca));if(_0x6dff2c[_0x429e37(0x1a3)]===null||_0x6dff2c[_0x429e37(0x143)]!==_0x429e37(0x184))throw new Error(_0x429e37(0x1ca));const _0x165434=marAgentRuntimeModelConfigurationSchema[_0x429e37(0x198)](_0x131aab[_0x429e37(0x159)]);if(!_0x165434[_0x429e37(0x1a7)]||_0x165434[_0x429e37(0x14b)]['id']!==_0x6dff2c[_0x429e37(0x1b2)])throw new Error(_0x429e37(0x1ca));const _0x5bc345=_0x165434[_0x429e37(0x14b)],_0x1bf5db=randomUUID();return void this[_0x429e37(0x1a8)]({'runId':_0x1bf5db,'sessionId':_0x6dff2c['id'],'input':_0x4c6a41,'cwd':_0x6dff2c[_0x429e37(0x1ac)],'model':toSdkModel(_0x5bc345),'models':resolveRunModels(_0x5bc345,_0x131aab[_0x429e37(0x1d3)]),'effort':_0x6dff2c[_0x429e37(0x1a2)]??'','access':_0x6dff2c[_0x429e37(0x197)]===_0x429e37(0x189)?_0x429e37(0x189):_0x429e37(0x12e),'mode':_0x2c6b5d['id'],'externalSessionId':_0x6dff2c[_0x429e37(0x1a3)],'mcpServers':[],'images':[]}),{'command':_0x2c6b5d['id'],'run':this[_0x429e37(0x1d5)][_0x429e37(0x1a8)](_0x1bf5db),'states':this[_0x429e37(0x1d5)][_0x429e37(0x12f)](_0x6dff2c['id'])};}[_0x4bd766(0x17e)](_0x551c0e){const _0x4ee470=_0x4bd766,_0x195cd3=_0x551c0e[_0x4ee470(0x174)];if(_0x195cd3[_0x4ee470(0x1d0)]!==_0x4ee470(0x16f)||typeof _0x195cd3[_0x4ee470(0x199)]!==_0x4ee470(0x1bf)||typeof _0x195cd3[_0x4ee470(0x16e)]!==_0x4ee470(0x1bf)||typeof _0x195cd3[_0x4ee470(0x176)]!==_0x4ee470(0x1bf)||typeof _0x195cd3[_0x4ee470(0x1ac)]!==_0x4ee470(0x1bf)||typeof _0x195cd3[_0x4ee470(0x1b2)]!==_0x4ee470(0x1bf)||this[_0x4ee470(0x1d5)][_0x4ee470(0x1b7)][_0x4ee470(0x1a6)](_0x195cd3[_0x4ee470(0x199)]))return;const _0x2aa38a=marAgentRuntimeModelConfigurationSchema[_0x4ee470(0x198)](_0x195cd3[_0x4ee470(0x159)]);if(!_0x2aa38a[_0x4ee470(0x1a7)]||_0x2aa38a[_0x4ee470(0x14b)]['id']!==_0x195cd3[_0x4ee470(0x1b2)]){this[_0x4ee470(0x1d5)][_0x4ee470(0x17d)](_0x195cd3[_0x4ee470(0x199)],_0x4ee470(0x1c2),{'code':_0x4ee470(0x153)},_0x4ee470(0x1bd));return;}const _0x5a013b=_0x2aa38a[_0x4ee470(0x14b)];let _0x408266,_0x4e7d3d;try{_0x408266=this[_0x4ee470(0x1d0)][_0x4ee470(0x1b6)](_0x195cd3[_0x4ee470(0x17c)],parseSecretEnvironment(_0x195cd3[_0x4ee470(0x132)])),_0x4e7d3d=parseRunnerImageAttachments(_0x195cd3[_0x4ee470(0x1ce)]);}catch{this[_0x4ee470(0x1d5)][_0x4ee470(0x17d)](_0x195cd3[_0x4ee470(0x199)],_0x4ee470(0x1c2),{'code':_0x4ee470(0x149)},_0x4ee470(0x1bd));return;}void this[_0x4ee470(0x1a8)]({'runId':_0x195cd3[_0x4ee470(0x199)],'sessionId':_0x195cd3[_0x4ee470(0x16e)],'input':_0x195cd3[_0x4ee470(0x176)],'cwd':_0x195cd3[_0x4ee470(0x1ac)],'model':toSdkModel(_0x5a013b),'models':resolveRunModels(_0x5a013b,_0x195cd3[_0x4ee470(0x1d3)]),'effort':typeof _0x195cd3[_0x4ee470(0x1a2)]===_0x4ee470(0x1bf)?_0x195cd3[_0x4ee470(0x1a2)]:'','access':_0x195cd3[_0x4ee470(0x197)]===_0x4ee470(0x189)?_0x4ee470(0x189):_0x4ee470(0x12e),'mode':_0x195cd3[_0x4ee470(0x155)]===_0x4ee470(0x169)?_0x4ee470(0x169):_0x4ee470(0x1a8),'mcpServers':_0x408266,'images':_0x4e7d3d[_0x4ee470(0x165)](_0x27ca84=>({'mimeType':_0x27ca84[_0x4ee470(0x185)],'dataBase64':_0x27ca84[_0x4ee470(0x144)]})),...typeof _0x195cd3[_0x4ee470(0x12b)]===_0x4ee470(0x1bf)?{'clientMessageId':_0x195cd3[_0x4ee470(0x12b)]}:{},...typeof _0x195cd3[_0x4ee470(0x1a3)]===_0x4ee470(0x1bf)?{'externalSessionId':_0x195cd3[_0x4ee470(0x1a3)]}:{},...typeof _0x195cd3[_0x4ee470(0x18a)]===_0x4ee470(0x1bf)?{'personalInstructions':_0x195cd3[_0x4ee470(0x18a)]}:{}});}[_0x4bd766(0x17f)](_0x592e9f,_0x7a8c1a){const _0x5997f6=_0x4bd766,_0x25b6c3=this.#executions[_0x5997f6(0x194)](_0x592e9f);if(!_0x25b6c3)return![];return _0x25b6c3[_0x5997f6(0x17f)](),this[_0x5997f6(0x1d5)][_0x5997f6(0x17d)](_0x592e9f,_0x5997f6(0x156),{'intent':_0x7a8c1a},_0x5997f6(0x16c)),!![];}[_0x4bd766(0x1c0)](_0x47f772){const _0x136c68=_0x4bd766,_0x4e4f7a=this.#approvals[_0x136c68(0x194)](_0x47f772[_0x136c68(0x15b)]);if(!_0x4e4f7a||_0x4e4f7a[_0x136c68(0x199)]!==_0x47f772[_0x136c68(0x199)])return![];return clearTimeout(_0x4e4f7a[_0x136c68(0x1a1)]),_0x4e4f7a[_0x136c68(0x1c1)](),this.#approvals[_0x136c68(0x182)](_0x47f772[_0x136c68(0x15b)]),_0x4e4f7a[_0x136c68(0x170)](_0x47f772[_0x136c68(0x18f)]===_0x136c68(0x1b8)?_0x136c68(0x12d):_0x136c68(0x179)),!![];}[_0x4bd766(0x188)](_0x2f01a2,_0x4c8052,_0x3d8bd7){const _0x58795f=_0x4bd766,_0x44c5ff=this.#questions[_0x58795f(0x194)](_0x4c8052);if(!_0x44c5ff||_0x44c5ff[_0x58795f(0x199)]!==_0x2f01a2)return![];return clearTimeout(_0x44c5ff[_0x58795f(0x1a1)]),_0x44c5ff[_0x58795f(0x1c1)](),this.#questions[_0x58795f(0x182)](_0x4c8052),_0x44c5ff[_0x58795f(0x170)](Object[_0x58795f(0x1bb)](Object[_0x58795f(0x18b)](_0x3d8bd7)[_0x58795f(0x165)](([_0x4a1a64,_0x221900])=>[_0x4a1a64,Array[_0x58795f(0x162)](_0x221900)&&_0x221900[_0x58795f(0x19d)]===-0x137c+-0x20bd+-0xe*-0x3bb?_0x221900[0xefa+-0x5d5*0x1+-0x1*0x925]:_0x221900]))),!![];}async[_0x4bd766(0x1a8)](_0x58f65c){const _0x499d69=_0x4bd766;this[_0x499d69(0x1d5)][_0x499d69(0x1b7)][_0x499d69(0x16a)](_0x58f65c[_0x499d69(0x199)]),this[_0x499d69(0x1d5)][_0x499d69(0x173)]({'runId':_0x58f65c[_0x499d69(0x199)],'sessionId':_0x58f65c[_0x499d69(0x16e)],'runner':_0x499d69(0x16f),'cwd':_0x58f65c[_0x499d69(0x1ac)],..._0x58f65c[_0x499d69(0x1a3)]?{'externalSessionId':_0x58f65c[_0x499d69(0x1a3)]}:{}}),this[_0x499d69(0x1d5)][_0x499d69(0x17d)](_0x58f65c[_0x499d69(0x199)],_0x499d69(0x14d),{},_0x499d69(0x13c));let _0x3d1f1c,_0x31582a;try{_0x3d1f1c=await this.#mcpClients[_0x499d69(0x16d)](_0x58f65c[_0x499d69(0x1d4)],_0x58f65c[_0x499d69(0x1ac)],{'reusable':!executionScopedMcp(_0x58f65c[_0x499d69(0x1d4)])});const _0x538613=_0x3d1f1c[_0x499d69(0x18e)],_0x510f16=await availableBundledRipgrep(),_0x48f4b1=new LocalAgentHost({'mode':_0x499d69(0x1c7),'homeDirectory':homedir(),'workspace':_0x58f65c[_0x499d69(0x1ac)],'environment':_0x510f16===undefined?process.env:prependBundledRipgrepToPath(process.env,_0x510f16),'guaranteedCommands':_0x510f16===undefined?{}:{'rg':BUNDLED_RIPGREP_VERSION},'approve':async(_0x58d2ba,_0x556d0d)=>_0x58f65c[_0x499d69(0x197)]===_0x499d69(0x189)?_0x499d69(0x12d):this[_0x499d69(0x1d1)](_0x58f65c[_0x499d69(0x199)],_0x58d2ba,_0x556d0d),'question':async(_0x5530e9,_0x4d67ad)=>this[_0x499d69(0x148)](_0x58f65c[_0x499d69(0x199)],_0x5530e9,_0x4d67ad),'mcpTools':_0x538613[_0x499d69(0x160)](),'callMcp':async _0x62cfd6=>_0x538613[_0x499d69(0x14a)](_0x62cfd6[_0x499d69(0x15d)],_0x62cfd6[_0x499d69(0x145)]),'webSearch':(_0x3f8cd9,_0x68e03d)=>this[_0x499d69(0x1d5)][_0x499d69(0x1b9)](_0x3f8cd9,_0x68e03d),'allowUntrustedTls':allowsUntrustedWebFetchTls(process.env)});_0x31582a=await createMarAgent({'mode':_0x499d69(0x1c7),'host':_0x48f4b1,'models':_0x58f65c[_0x499d69(0x12a)],'defaultModelId':_0x58f65c[_0x499d69(0x1b2)]['id'],..._0x58f65c[_0x499d69(0x18a)]?{'systemInstruction':_0x58f65c[_0x499d69(0x18a)]}:{}});const _0x28160c=_0x58f65c[_0x499d69(0x1a3)]?await _0x31582a[_0x499d69(0x134)](_0x58f65c[_0x499d69(0x1a3)]):await _0x31582a[_0x499d69(0x1af)]({'workspace':_0x58f65c[_0x499d69(0x1ac)]});if(!_0x58f65c[_0x499d69(0x1a3)])this[_0x499d69(0x1d5)][_0x499d69(0x15a)](_0x58f65c[_0x499d69(0x16e)],_0x28160c['id']);const _0x560840={'prompt':_0x58f65c[_0x499d69(0x176)],..._0x58f65c[_0x499d69(0x12b)]?{'clientMessageId':_0x58f65c[_0x499d69(0x12b)]}:{},'modelId':_0x58f65c[_0x499d69(0x1b2)]['id'],..._0x58f65c[_0x499d69(0x1a2)]?{'reasoningEffort':_0x58f65c[_0x499d69(0x1a2)]}:{},'access':_0x58f65c[_0x499d69(0x197)],'images':_0x58f65c[_0x499d69(0x1db)]},_0xf5dd13=_0x58f65c[_0x499d69(0x1ad)]===_0x499d69(0x169)?_0x28160c[_0x499d69(0x169)]({..._0x560840}):_0x58f65c[_0x499d69(0x1ad)]===_0x499d69(0x142)?_0x28160c[_0x499d69(0x142)](_0x560840):_0x28160c[_0x499d69(0x1a8)](_0x560840);this.#executions[_0x499d69(0x183)](_0x58f65c[_0x499d69(0x199)],{'cancel':()=>_0xf5dd13[_0x499d69(0x17f)](),'dispose':()=>_0x31582a[_0x499d69(0x178)]()}),this[_0x499d69(0x1d5)][_0x499d69(0x17d)](_0x58f65c[_0x499d69(0x199)],_0x499d69(0x18d),{},_0x499d69(0x16c));for await(const _0x328162 of _0xf5dd13)this[_0x499d69(0x19b)](_0x58f65c[_0x499d69(0x199)],_0x328162);const _0x592d4b=await _0xf5dd13[_0x499d69(0x17b)]();await this[_0x499d69(0x1d5)][_0x499d69(0x136)](_0x28160c['id'],_0x58f65c[_0x499d69(0x1ac)]);const _0x25ba08=_0x592d4b[_0x499d69(0x138)]===_0x499d69(0x157)?_0x499d69(0x1cb):_0x592d4b[_0x499d69(0x138)]===_0x499d69(0x1b0)?_0x499d69(0x131):_0x499d69(0x1bd);this[_0x499d69(0x1d5)][_0x499d69(0x17d)](_0x58f65c[_0x499d69(0x199)],_0x25ba08===_0x499d69(0x1cb)?_0x499d69(0x158):_0x25ba08===_0x499d69(0x131)?_0x499d69(0x193):_0x499d69(0x15e),{'status':_0x25ba08,..._0x592d4b[_0x499d69(0x1aa)]?{'code':_0x592d4b[_0x499d69(0x1aa)]}:{}},_0x25ba08);}catch(_0x36fad4){const _0x441899=runnerErrorProjection(_0x36fad4,_0x499d69(0x146));this[_0x499d69(0x1d5)][_0x499d69(0x172)](_0x58f65c[_0x499d69(0x199)],{'itemId':boundedConversationItemId(_0x499d69(0x1c5),_0x58f65c[_0x499d69(0x199)]),'kind':_0x499d69(0x141),'status':_0x499d69(0x1bd),'payload':{..._0x441899,'recoverable':!![],'retryAfterMs':null}}),this[_0x499d69(0x1d5)][_0x499d69(0x17d)](_0x58f65c[_0x499d69(0x199)],_0x499d69(0x15e),_0x441899,_0x499d69(0x1bd));}finally{this[_0x499d69(0x18c)](_0x58f65c[_0x499d69(0x199)]),this.#normalizers[_0x499d69(0x182)](_0x58f65c[_0x499d69(0x199)]),this[_0x499d69(0x1d5)][_0x499d69(0x1b7)][_0x499d69(0x182)](_0x58f65c[_0x499d69(0x199)]),this.#executions[_0x499d69(0x182)](_0x58f65c[_0x499d69(0x199)]),await _0x31582a?.[_0x499d69(0x178)]()[_0x499d69(0x13d)](()=>undefined),await _0x3d1f1c?.[_0x499d69(0x14f)]()[_0x499d69(0x13d)](()=>undefined);}}[_0x4bd766(0x1d1)](_0x26f5b1,_0x5b2047,_0x4fa167=new AbortController()[_0x4bd766(0x1b3)]){const _0x293d82=_0x4bd766,_0x578146=randomUUID(),_0x19e488=Date[_0x293d82(0x1bc)]()+(0x1c32+-0x10d8+-0x4*0x2d4)*(0xd24b+0xdae8+0x36b*-0x39),_0x5bd18e={'category':_0x5b2047[_0x293d82(0x15d)]===_0x293d82(0x190)?_0x293d82(0x150):_0x5b2047[_0x293d82(0x15d)]===_0x293d82(0x137)?_0x293d82(0x135):_0x293d82(0x1d8),'toolName':_0x5b2047[_0x293d82(0x15d)],'reason':_0x293d82(0x15f)};return this[_0x293d82(0x1d5)][_0x293d82(0x163)]({'runId':_0x26f5b1,'approvalId':_0x578146,'payload':_0x5bd18e,'expiresAt':_0x19e488}),this[_0x293d82(0x1d5)][_0x293d82(0x1d6)]({'runId':_0x26f5b1,'approvalId':_0x578146,'payload':_0x5bd18e,'expiresAt':_0x19e488}),new Promise(_0x47522d=>{const _0x59743d=_0x293d82,_0x342ba6=()=>_0x410bad(_0x59743d(0x179)),_0x410bad=_0x5df57e=>{const _0x17c654=_0x59743d,_0x2813b9=this.#approvals[_0x17c654(0x194)](_0x578146);if(!_0x2813b9)return;clearTimeout(_0x2813b9[_0x17c654(0x1a1)]),_0x2813b9[_0x17c654(0x1c1)](),this.#approvals[_0x17c654(0x182)](_0x578146),_0x47522d(_0x5df57e);},_0x2d2f10=setTimeout(()=>{const _0x1f689a=_0x59743d;_0x410bad(_0x1f689a(0x179));},(-0x33*-0x1+-0xf14*-0x1+-0xf3d)*(0x11c70+-0x1946*0x1+-0x14e*0x13));_0x2d2f10[_0x59743d(0x1a0)](),_0x4fa167[_0x59743d(0x1c4)](_0x59743d(0x130),_0x342ba6,{'once':!![]}),this.#approvals[_0x59743d(0x183)](_0x578146,{'runId':_0x26f5b1,'resolve':_0x47522d,'timer':_0x2d2f10,'cleanup':()=>_0x4fa167[_0x59743d(0x14c)](_0x59743d(0x130),_0x342ba6)});if(_0x4fa167[_0x59743d(0x1d9)])_0x342ba6();});}[_0x4bd766(0x148)](_0x25be1d,_0x5f3be3,_0x580a24=new AbortController()[_0x4bd766(0x1b3)]){const _0x22cce0=_0x4bd766,_0x1dacde=normalizeQuestions(_0x5f3be3[_0x22cce0(0x161)]);if(_0x1dacde[_0x22cce0(0x19d)]===0x1a8a+-0xf2a*-0x2+-0x1*0x38de)return Promise[_0x22cce0(0x170)]({});return this[_0x22cce0(0x1d5)][_0x22cce0(0x172)](_0x25be1d,{'itemId':boundedConversationItemId(_0x22cce0(0x191),_0x5f3be3[_0x22cce0(0x140)]),'kind':_0x22cce0(0x1ab),'status':_0x22cce0(0x12c),'payload':{'requestId':_0x5f3be3[_0x22cce0(0x140)],'questions':_0x1dacde}}),new Promise(_0x306803=>{const _0x440245=_0x22cce0,_0x23162a=()=>_0x3d9853({}),_0x3d9853=_0x491720=>{const _0xeb7a40=_0x516b,_0x4a5390=this.#questions[_0xeb7a40(0x194)](_0x5f3be3[_0xeb7a40(0x140)]);if(!_0x4a5390)return;clearTimeout(_0x4a5390[_0xeb7a40(0x1a1)]),_0x4a5390[_0xeb7a40(0x1c1)](),this.#questions[_0xeb7a40(0x182)](_0x5f3be3[_0xeb7a40(0x140)]),_0x306803(_0x491720);},_0x3cc230=setTimeout(()=>{_0x3d9853({});},(0x86a+-0x971+-0x5b*-0x3)*(0x8e71+0x4d*-0x2f0+0x13e1f*0x1));_0x3cc230[_0x440245(0x1a0)](),_0x580a24[_0x440245(0x1c4)](_0x440245(0x130),_0x23162a,{'once':!![]}),this.#questions[_0x440245(0x183)](_0x5f3be3[_0x440245(0x140)],{'runId':_0x25be1d,'resolve':_0x306803,'timer':_0x3cc230,'cleanup':()=>_0x580a24[_0x440245(0x14c)](_0x440245(0x130),_0x23162a)});if(_0x580a24[_0x440245(0x1d9)])_0x23162a();});}[_0x4bd766(0x18c)](_0x31faf8){const _0x4573b9=_0x4bd766;for(const [_0x208cc8,_0x4ae454]of this.#approvals){if(_0x4ae454[_0x4573b9(0x199)]!==_0x31faf8)continue;clearTimeout(_0x4ae454[_0x4573b9(0x1a1)]),_0x4ae454[_0x4573b9(0x1c1)](),this.#approvals[_0x4573b9(0x182)](_0x208cc8),_0x4ae454[_0x4573b9(0x170)](_0x4573b9(0x179));}for(const [_0x3c4500,_0x50109b]of this.#questions){if(_0x50109b[_0x4573b9(0x199)]!==_0x31faf8)continue;clearTimeout(_0x50109b[_0x4573b9(0x1a1)]),_0x50109b[_0x4573b9(0x1c1)](),this.#questions[_0x4573b9(0x182)](_0x3c4500),_0x50109b[_0x4573b9(0x170)]({});}}[_0x4bd766(0x19b)](_0x3d0897,_0x583a31){const _0x59af9e=_0x4bd766;if(_0x583a31[_0x59af9e(0x195)]===_0x59af9e(0x164))this[_0x59af9e(0x1d5)][_0x59af9e(0x17d)](_0x3d0897,_0x59af9e(0x13e),{'text':_0x583a31[_0x59af9e(0x1a5)],'phase':_0x583a31[_0x59af9e(0x166)],'itemId':boundedConversationItemId(_0x59af9e(0x1cf),_0x583a31[_0x59af9e(0x1ba)])});else{let _0x588698=this.#normalizers[_0x59af9e(0x194)](_0x3d0897);_0x588698===undefined&&(_0x588698=new MarAgentConversationNormalizer(),this.#normalizers[_0x59af9e(0x183)](_0x3d0897,_0x588698));for(const _0x347396 of _0x588698[_0x59af9e(0x151)](_0x583a31))this[_0x59af9e(0x1d5)][_0x59af9e(0x172)](_0x3d0897,{'itemId':_0x347396[_0x59af9e(0x1ba)],'kind':_0x347396[_0x59af9e(0x16b)],'status':_0x347396[_0x59af9e(0x138)],'payload':_0x347396[_0x59af9e(0x174)],..._0x347396[_0x59af9e(0x13f)]===undefined?{}:{'merge':_0x347396[_0x59af9e(0x13f)]}});}}}export function allowsUntrustedWebFetchTls(_0x5e1862){const _0x6222bc=_0x4bd766;return _0x5e1862[_0x6222bc(0x192)]!=='0';}function executionScopedMcp(_0x36c0d5){const _0x25fd43=_0x4bd766;return _0x36c0d5[_0x25fd43(0x171)](_0x1269a7=>_0x1269a7[_0x25fd43(0x186)]===_0x25fd43(0x1c9));}function _0x3a87(){const _0x210157=['zgLZCg9Zzq','zgvUAwvK','y2XLyxjdB21Tyw5Ku3rHDgu','CMvZDwX0','BwnWsw5ZDgfSBgf0Aw9UCW','zw1PDa','C3rHCNq','y2fUy2vS','n3Dgv1v5wa','C2v0q29TBwfUzfn0yxrL','zgvSzxrL','C2v0','tufsx01btKfhruq','BwLTzq','BgLMzwn5y2XL','u0Lor0Xfx1nftevdva','CMvZCg9UzfvZzxjjBNb1Da','zNvSBc1Hy2nLC3m','CgvYC29UywXjBNn0CNvJDgLVBNm','zw50CMLLCW','y2XLyxjjBNrLCMfJDgLVBNm','CNvUlNj1BM5PBMC','Cg9VBa','zgvJAxnPB24','yxbWBhLFCgf0y2G','BwfYlwfNzw50lxf1zxn0Aw9U','tufsx0fhru5ux1DfqL9grvrdsf9bteXpv19vtLrsvvnururFveXt','CNvUlMnHBMnLBgXLza','z2v0','DhLWzq','ChvZAa','ywnJzxnZ','C2fMzvbHCNnL','CNvUswq','zMLSDgvY','ChjVAMvJDa','sw1WBgvTzw50ihrOzsbWBgfUigfIB3zLlG','BgvUz3rO','nZeWmtHHALDMquS','y29TBwfUzfn0yxrL','Dw5Yzwy','DgLTzxi','zwzMB3j0','zxH0zxjUywXtzxnZAw9Uswq','BgfIzwW','zgvSDge','AgfZ','C3vJy2vZCW','CNvU','l3bSyw4','zxjYB3jdB2rL','DxnLCL9PBNb1Df9Yzxf1zxn0','y3DK','Bw9Kzq','zMXHDe1HCa','y3jLyxrLu2vZC2LVBG','y2fUy2vSBgvK','CxvLC3rPB24','Bw9KzwW','C2LNBMfS','ugXHBIbnB2rL','mJCWndGYotbrt1jkDLe','BwnWq29UzMLNDxjHDgLVBG','ywn0AxzL','qvbquK9wruq','D2vIu2vHCMnO','AxrLBuLK','zNjVBuvUDhjPzxm','BM93','rKfjteve','yxbPs2v5','C3rYAw5N','zgvJAwrLqxbWCM92ywW','y2XLyw51Ca','CNvUlNjLAMvJDgvK','sw1WBgvTzw50','ywrKrxzLBNrmAxn0zw5LCG','BwfYlwfNzw50lwvYCM9Y','ntm2ntCXmgvMuM9VuW','BM9Kzq','ntG0mJaXneTcB25vDa','rvHfq1vusu9o','uLvotKvsx0nptu1btKrFvu5bvKfjtefcteu','u1vdq0vfreve','zgvZy3jPChrPB24','wf9psW','yxr0ywnOBwvUDhm','BwfYlwfNzw50lw1LC3nHz2u','CNvUBMvY','CMvXDwvZDefWChjVDMfS','u0HpuLrFvevyva','BwfYqwDLBNrnB2rLBhm','BwnWu2vYDMvYCW','Ag9ZDa','ChvIBgLZAefWChjVDMfS','otKYntC0ngTtD2zoEG','ve9pta','ywjVCNrLza','B3b0Aw9UCW','Aw1Hz2vZ','Bw9KzwXZ','y2XPzw50twvZC2fNzuLK','uevoreLorW','yxbWCM92zwq','B24TCMvXDwvZDa','y29TBwfUzfn0yxrLCW','ywjVCNq','q0foq0vmteve','C2vJCMv0rw52AxjVBM1LBNq','y2XVC2u','B3bLBLnLC3nPB24','q09ntufora','C3LUy1rPDgXL','zxHLyW','C3rHDhvZ','CgXHDgzVCM0','rL9psW','mJq3mJGXm3PkwKTTtG','u1rbuLrjtKC','y2f0y2G','Dgv4Dc5KzwX0yq','BwvYz2u','CMvXDwvZDeLK','zxjYB3i','y29TCgfJDa','BMf0AxzLq29UDhjVBa','zgf0yujHC2u2na','yxjNDw1LBNrZ','tufsx0fhru5ux1jvtL9gquLmruq','zxHLy3v0zunVBw1HBMq','CMvXDwvZDff1zxn0Aw9U','tufsx0fhru5ux01duf9dt05gsuDFsu5wquXjra','y2fSBa','zgf0yq','CMvTB3zLrxzLBNrmAxn0zw5LCG','CNvUlNn0yxj0zwq','mJa4mtG1wgXKAgnl','CMvSzwfZzq','rKLmrv9dsefor0u','BM9YBwfSAxPL','B2jQzwn0','tufsx0fhru5ux01prevmx0nptKzjr19jtLzbteLe','BxvSDgLtzwXLy3q','y29SBgfIB3jHDgLVBK1Vzgu','CNvUlMnHBMnLBgXPBMC','y29TCgXLDgvK','CNvUlMnVBxbSzxrLza','BwfYqwDLBNrnB2rLBa','ChjVBw90zq','yxbWCM92ywXjza','D2LUmZi','BMfTzq','CNvUlMzHAwXLza','tufsiefNzw50ihjLCxvLC3rLzcbWzxjTAxnZAw9UigzVCIb0AgLZihrVB2WGy2fSBc4','zgvMAw5PDgLVBNm','CxvLC3rPB25Z','AxnbCNjHEq','y3jLyxrLqxbWCM92ywW','BwvZC2fNzs5KzwX0yq','BwfW','CgHHC2u','otjyy1LyywW','mZHZB3nArLi','CgXHBG','ywrK','A2LUza','uLvotKLorW','ywnXDwLYzq','C2vZC2LVBKLK','BwfYlwfNzw50','CMvZB2X2zq','C29Tzq','zw1PDeL0zw0','ywrVChq','Cgf5Bg9Hza','tvvmveLFu0vmrunu','Aw5WDxq','u3vIC2vXDwvUDcbTzxnZywDLCYbYDw4GAw4GCMvHzc1VBMX5ifbSyw4Gtw9Kzs4'];_0x3a87=function(){return _0x210157;};return _0x3a87();}async function availableBundledRipgrep(){const _0x3aa344=_0x4bd766;try{const _0x3c8163=bundledRipgrepPath();return await access(_0x3c8163,process[_0x3aa344(0x139)]===_0x3aa344(0x15c)?constants[_0x3aa344(0x13a)]:constants[_0x3aa344(0x1cd)]),_0x3c8163;}catch{return undefined;}}function normalizeQuestions(_0x43c630){const _0x3a7889=_0x4bd766;return _0x43c630[_0x3a7889(0x1ae)](_0x4a0891=>{const _0x2e42c0=_0x3a7889;if(_0x4a0891===null||typeof _0x4a0891!==_0x2e42c0(0x152)||Array[_0x2e42c0(0x162)](_0x4a0891))return[];const _0x58f003=_0x4a0891;if(typeof _0x58f003['id']!==_0x2e42c0(0x1bf)||typeof _0x58f003[_0x2e42c0(0x1b1)]!==_0x2e42c0(0x1bf))return[];const _0x3264bb=Array[_0x2e42c0(0x162)](_0x58f003[_0x2e42c0(0x1da)])?_0x58f003[_0x2e42c0(0x1da)][_0x2e42c0(0x1ae)](_0x5eb9e7=>{const _0x34be4d=_0x2e42c0;if(_0x5eb9e7===null||typeof _0x5eb9e7!==_0x34be4d(0x152)||Array[_0x34be4d(0x162)](_0x5eb9e7))return[];const _0x5dc3e0=_0x5eb9e7;if(typeof _0x5dc3e0[_0x34be4d(0x1a4)]!==_0x34be4d(0x1bf))return[];return[{'value':_0x5dc3e0[_0x34be4d(0x1a4)],'label':_0x5dc3e0[_0x34be4d(0x1a4)],'description':typeof _0x5dc3e0[_0x34be4d(0x1cc)]===_0x34be4d(0x1bf)?_0x5dc3e0[_0x34be4d(0x1cc)]:null}];}):[],_0x38622e=_0x58f003[_0x2e42c0(0x154)]===!![];return[{'id':_0x58f003['id'],'prompt':_0x58f003[_0x2e42c0(0x1b1)],'input':_0x3264bb[_0x2e42c0(0x19d)]===-0x4c3*-0x6+0x171*-0x13+-0x12f?_0x2e42c0(0x1d2):_0x38622e?_0x2e42c0(0x175):_0x2e42c0(0x187),'options':_0x3264bb,'allowOther':!![],..._0x38622e?{'multiSelect':!![]}:{}}];});}function toSdkModel(_0x427383){const _0x570dab=_0x4bd766;return{..._0x427383,'apiKey':new SecretValue(_0x427383[_0x570dab(0x1be)])};}export function resolveRunModels(_0x437fdd,_0x51a9b){const _0x469560=_0x4bd766,_0x3b0161=[_0x437fdd];if(Array[_0x469560(0x162)](_0x51a9b))for(const _0x435b0a of _0x51a9b){const _0x58fee4=marAgentRuntimeModelConfigurationSchema[_0x469560(0x198)](_0x435b0a);if(_0x58fee4[_0x469560(0x1a7)]&&_0x58fee4[_0x469560(0x14b)]['id']!==_0x437fdd['id'])_0x3b0161[_0x469560(0x196)](_0x58fee4[_0x469560(0x14b)]);}const _0x25183e=new Set();return _0x3b0161[_0x469560(0x19a)](_0x5658be=>{const _0x135f69=_0x469560;if(_0x25183e[_0x135f69(0x1a6)](_0x5658be['id']))return![];return _0x25183e[_0x135f69(0x16a)](_0x5658be['id']),!![];})[_0x469560(0x165)](toSdkModel);}
2
+ const _0x510b81=_0x4d0c;(function(_0x549bfb,_0x2b6a4d){const _0x4b7617=_0x4d0c,_0x44d116=_0x549bfb();while(!![]){try{const _0x37b4b5=parseInt(_0x4b7617(0x13a))/(-0x5db+0xe57*-0x1+0x1433*0x1)+parseInt(_0x4b7617(0xbf))/(-0xf12+-0xae5*-0x2+-0x6b6*0x1)*(-parseInt(_0x4b7617(0x83))/(0x1dc4+-0x13fa+-0x1*0x9c7))+parseInt(_0x4b7617(0xcb))/(0x19a5+-0x10fd*0x1+-0x1c*0x4f)*(parseInt(_0x4b7617(0xb7))/(0x1f20+-0xefd+-0x101e))+parseInt(_0x4b7617(0x9b))/(-0x20c+0x2123*-0x1+0x2335*0x1)+-parseInt(_0x4b7617(0xe7))/(-0x7*0x1aa+-0x1231*-0x2+0x1*-0x18b5)*(-parseInt(_0x4b7617(0x13f))/(0x2*0x615+0x19d+-0xdbf))+parseInt(_0x4b7617(0x108))/(0x12e*-0x7+-0x132b+0x1b76)+-parseInt(_0x4b7617(0xee))/(-0x14*0x17b+-0x1*0x1fbb+-0x1*-0x3d61)*(parseInt(_0x4b7617(0x145))/(-0x2f*0x57+0x62*-0x59+0x3216));if(_0x37b4b5===_0x2b6a4d)break;else _0x44d116['push'](_0x44d116['shift']());}catch(_0x201adc){_0x44d116['push'](_0x44d116['shift']());}}}(_0x3cf3,0x204a0+0x6b*0x3d22+-0x662ae*0x2));import{createHash,randomUUID}from'node:crypto';import{homedir}from'node:os';import{access,constants}from'node:fs/promises';import{BUNDLED_RIPGREP_VERSION,bundledRipgrepPath,prependBundledRipgrepToPath}from'../../ripgrep-binary.js';import{SecretValue,LocalAgentHost,createMarAgent}from'@myagentroam/agent';import{marAgentRuntimeModelConfigurationSchema}from'@myagentroam/protocol';function _0x3cf3(){const _0x539c38=['D2vIu2vHCMnO','CNvUswq','BwvYz2u','z3vHCMfUDgvLzenVBw1HBMrZ','zxjYB3i','CxvLC3rPB25Z','DhLWzq','D2LUmZi','zgvSzxrL','l3bSyw4','mJuWndG3m3r1D1bYyW','C3rHDhvZ','BwvZC2fNzs5KzwX0yq','ywn0AxzL','y3jLyxrLqwDLBNq','AgfZ','BwfYlwfNzw50lxf1zxn0Aw9U','mtaZmdbMDw9RD3m','rvHfq1vusu9o','BwfYqwDLBNrnB2rLBa','BxvSDgLtzwXLy3q','zgvJAxnPB24','CMvXDwvZDff1zxn0Aw9U','CNvUlMnVBxbSzxrLza','ywDLBNq','BwfYlwfNzw50lw1LC3nHz2u','ve9pta','tufsx0fhru5ux1jvtL9dt05uuK9mtevsx0rju1bpu0ve','ywn0AxzLqwnJzxnZ','C3rHCNq','CMvSzwfZzq','CMvZDwX0','ywjVCNrLza','ywrKrxzLBNrmAxn0zw5LCG','BwfW','CMv0ywLUywjSzq','A2LUza','y29TBwfUzfn0yxrL','zgvSDge','CMv2zwfS','tufsx01btKfhruq','u0Lor0Xfx1nftevdva','zgf0yujHC2u2na','mteZnZmXmZHiAhHlD2C','AxnbCNjHEq','uLvotKLorW','wf9psW','zNvSBc1Hy2nLC3m','BwfYlwfNzw50lwvYCM9Y','CNvU','BgvUz3rO','C3LUy1rPDgXL','y29TCgXLDgvK','ywnXDwLYzq','CNvUlNj1BM5PBMC','zgf0yq','ChvZAa','DxbKyxrL','yxr0ywnOBwvUDhm','y2f0y2G','C2HHmJu2','CMvXDwvZDeLK','uevoreLorW','BgfIzwW','zMLUza','y3DK','BwnWu2vYDMvYCW','y2fUy2vS','yxbPs2v5','C2v0','Dgv4Dc5KzwX0yq','zgvJAwrLqxbWCM92ywW','CgXHDgzVCM0','tufsx0fhru5ux01prevmx0nptKzjr19jtLzbteLe','zMLUywXSEq','zgLZCg9Zzq','CMvZB2X2zq','C29YDa','CxvLC3rPB24','C2vJCMv0rw52AxjVBM1LBNq','CNvUlNjLAMvJDgvK','ywnJzxnZ','Ag9ZDa','BwnWtgvHC2u','CNvUlMzHAwXLza','zgLNzxn0','CMvSzwfZzvnLC3nPB24','BwfYqwDLBNrnB2rLBhm','C29Tzq','B3bLBLnLC3nPB24','zw1PDa','CgHHC2u','C2fMzvbHCNnL','mta4mJuWn2DgC01utq','CNvUlMnHBMnLBgXLza','C2vZC2LVBKLK','tvvmveLFu0vmrunu','tufsx0fhru5ux1DfqL9grvrdsf9bteXpv19vtLrsvvnururFveXt','mtzeveLLB2m','BMfTzq','y2XPzw50twvZC2fNzuLK','zxHLy3v0zunVBw1HBMq','rKLmrv9dsefor0u','zNjVBuvUDhjPzxm','nti4otLTCeHXseC','BM9YBwfSAxPL','CgvYC29UywXjBNn0CNvJDgLVBNm','tufsx0fhru5ux1nfu1njt05FuLvoveLnrv9bq1rjvKu','uLvotKvsx0nptu1btKrFvu5bvKfjtefcteu','BwfYlwfNzw50','BMf0AxzLq29UDhjVBa','BM93','CNvUlMnHBMnLBgXPBMC','y2XLyw51Ca','ugXHBIbnB2rL','B2jQzwn0','zMLSDgvY','Bw9KzwXZ','zw1PDeL0zw0','mZnksxjxA04','C3rYAw5N','zw52AxjVBM1LBNq','B3b0Aw9UCW','tufsx0fhru5ux1jvtL9gquLmruq','C2vZC2LVBG','DxnLCL9PBNb1Df9Yzxf1zxn0','z2v0','BgLMzwn5y2XL','qvbquK9wruq','yxbWBhLFCgf0y2G','u3vIC2vXDwvUDcbTzxnZywDLCYbYDw4GAw4GCMvHzc1VBMX5ifbSyw4Gtw9Kzs4','C3vJy2vZCW','yxbWCM92ywXjza','ywrVChq','BM9Kzq','y2fSBa','ChjVBw90zq','CMvTB3zLrxzLBNrmAxn0zw5LCG','BwnWsw5ZDgfSBgf0Aw9UCW','zwzMB3j0','rKfjteve','zxHLyW','y2XLyxjjBNrLCMfJDgLVBNm','mte2mJa0ntjWtuHhqw0','Cg9VBa','y3jLyxrLu2vZC2LVBG','CMvZCg9UzfvZzxjjBNb1Da','y29SBgfIB3jHDgLVBK1Vzgu','yxbWCM92zwq','CNvUBMvY','y3jLyxrLqxbWCM92ywW','DgLTzxi','zxH0zxjUywXtzxnZAw9Uswq','BwLTzq','zMLUz2vYChjPBNq','C2LNBMfS','CgXHBG','C3rYAw5NAwz5','sw1WBgvTzw50ihrOzsbWBgfUigfIB3zLlG','zgvUAwvK','ywXS','zw50CMLLCW','CNvUlNn0yxj0zwq','CMvZB3vYy2vjzgXLvhrStxm','rL9psW','Aw5WDxq','u1vdq0vfreve','DMfSDwvZ','q09ntufora','ywrK','zxjYB3jdB2rL','nJmWmJqYmenbsgjWCG','CMvXDwvZDefWChjVDMfS','ChvIBgLZAefWChjVDMfS','sw1WBgvTzw50','Dw5Yzwy','yxjNDw1LBNrZ','tufsx0fhru5ux01duf9dt05gsuDFsu5wquXjra','tufsiefNzw50ihjLCxvLC3rLzcbWzxjTAxnZAw9UigzVCIb0AgLZihrVB2WGy2fSBc4','nJeWodzOt2zfsvC','AwrSzvrPBwvY','C2v0q29TBwfUzfn0yxrL','u0HpuLrFvevyva','ywn0AxzLuNvUswq','ywXSu2v0DgXLza','B24TCMvXDwvZDa','y2fUy2vSBgvK','zgvZy3jPChrPB24','Agv4','Cgf5Bg9Hza','CMvSzwfZzwq','nevWEvfcua','tufsx0fhru5ux1nfu1njt05FuLvoveLnrv9sruXfqvnfra','ywjVCNq','Bg9JywXLq29TCgfYzq','zMXHDe1HCa','Bw9KzwW','y29TBwfUzfn0yxrLCW','AxrLBuLK','y2XVC2u','q0foq0vmteve','BwnWq29UzMLNDxjHDgLVBG','ChjVAMvJDa','Bw9Kzq','y2XLyxjdB21Tyw5Ku3rHDgu','u1rbuLrjtKC','y29TCgfJDa','Aw1Hz2vZ','zgvMAw5PDgLVBNm'];_0x3cf3=function(){return _0x539c38;};return _0x3cf3();}import{boundedConversationItemId}from'../codex/conversation-parser.js';import{parseSecretEnvironment}from'../../util/secret-environment.js';import{MarAgentMcpClientCache}from'./mcp-client-pool.js';function _0x4d0c(_0x1b3f97,_0x309d71){_0x1b3f97=_0x1b3f97-(0x6b*-0x49+-0x1253+0x3159);const _0x185324=_0x3cf3();let _0x465fdd=_0x185324[_0x1b3f97];if(_0x4d0c['UySqMN']===undefined){var _0x2597e0=function(_0x2e086d){const _0x4cc367='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x44c0b4='',_0xf42cdf='';for(let _0x261b3a=0x1f4+-0x683+0x48f,_0x6e0ca5,_0xa963bf,_0x52c4c4=-0x6*-0x19+-0x214e+0x20b8;_0xa963bf=_0x2e086d['charAt'](_0x52c4c4++);~_0xa963bf&&(_0x6e0ca5=_0x261b3a%(0x2476+-0x12a7+-0x38f*0x5)?_0x6e0ca5*(-0x802+0x42*-0x75+0x2*0x1336)+_0xa963bf:_0xa963bf,_0x261b3a++%(-0xc05+0xb*-0xd1+-0x4*-0x541))?_0x44c0b4+=String['fromCharCode'](-0x1131+0x54e+-0x1*-0xce2&_0x6e0ca5>>(-(0x3*-0xa45+-0x157*0x1+0x2028)*_0x261b3a&0xce*0x19+0x35*-0x17+-0x5*0x311)):-0x41b*0x2+-0x6*0x2b6+0x187a){_0xa963bf=_0x4cc367['indexOf'](_0xa963bf);}for(let _0x154894=-0x1*-0x689+0xb*-0x18a+0x1*0xa65,_0xc3384=_0x44c0b4['length'];_0x154894<_0xc3384;_0x154894++){_0xf42cdf+='%'+('00'+_0x44c0b4['charCodeAt'](_0x154894)['toString'](-0x1*0x753+0xce*-0x5+-0x1*-0xb69))['slice'](-(-0x1*-0x26+-0x236*-0x4+-0x8fc));}return decodeURIComponent(_0xf42cdf);};_0x4d0c['cLxtUV']=_0x2597e0,_0x4d0c['aaENUA']={},_0x4d0c['UySqMN']=!![];}const _0x46ddc2=_0x185324[0x70*0x3a+-0x1a3f*0x1+0xdf];_0x4d0c['hTsUEJ']!==_0x46ddc2&&(_0x4d0c['aaENUA']={},_0x4d0c['hTsUEJ']=_0x46ddc2);const _0x1bbde2=_0x4d0c['aaENUA'][_0x1b3f97];return _0x1bbde2===undefined?(_0x465fdd=_0x4d0c['cLxtUV'](_0x465fdd),_0x4d0c['aaENUA'][_0x1b3f97]=_0x465fdd):_0x465fdd=_0x1bbde2,_0x465fdd;}import{MarAgentConversationNormalizer}from'./conversation-normalizer.js';import{parseRunnerImageAttachments}from'../../util/node-operation-parsers.js';import{runnerErrorProjection}from'../../util/runner-error.js';export class MarAgentManagedRunController{[_0x510b81(0xa1)];[_0x510b81(0x12f)];#mcpClients=new MarAgentMcpClientCache();#executions=new Map();#sessionRuntimes=new Map();#runtimeAcquisitions=new Map();#runtimeCreations=new Map();#sessionReleases=new Map();#approvals=new Map();#questions=new Map();#normalizers=new Map();#resourceIdleTtlMs;#createAgent;#disposePromise;#disposed=![];constructor(_0x4ea914,_0xfa6fee,_0x58a75d={}){const _0x94399=_0x510b81;this[_0x94399(0xa1)]=_0x4ea914,this[_0x94399(0x12f)]=_0xfa6fee,this.#resourceIdleTtlMs=_0x58a75d[_0x94399(0xaf)]??-0x2610+-0x5*-0x167+0x1096d,this.#createAgent=_0x58a75d[_0x94399(0xeb)]??createMarAgent;}[_0x510b81(0x128)](){if(this.#disposePromise!==undefined)return this.#disposePromise;return this.#disposed=!![],this.#disposePromise=((async()=>{const _0x3e1567=_0x4d0c;for(const _0x48f73d of this.#executions[_0x3e1567(0xb3)]())_0x48f73d[_0x3e1567(0x120)]();await Promise[_0x3e1567(0xc4)]([...new Set(this.#runtimeAcquisitions[_0x3e1567(0xb3)]())]);for(const _0x58f61e of this.#executions[_0x3e1567(0xb3)]())_0x58f61e[_0x3e1567(0x120)]();await Promise[_0x3e1567(0xac)]([...new Set(this.#sessionRuntimes[_0x3e1567(0xb3)]())][_0x3e1567(0xff)](_0x14740b=>this.#releaseRuntime(_0x14740b))),await this.#mcpClients[_0x3e1567(0xd3)]();})()),this.#disposePromise;}[_0x510b81(0x133)](_0x161743){const _0x5a30de=_0x510b81,_0x1b3f97=this.#sessionReleases[_0x5a30de(0x8a)](_0x161743);if(_0x1b3f97!==undefined)return _0x1b3f97;const _0x309d71=((async()=>{const _0x46f6a7=_0x5a30de;await this.#runtimeAcquisitions[_0x46f6a7(0x8a)](_0x161743)?.[_0x46f6a7(0x118)](()=>undefined);const _0x465fdd=this.#sessionRuntimes[_0x46f6a7(0x8a)](_0x161743);if(_0x465fdd===undefined)return;if(_0x465fdd[_0x46f6a7(0xc3)]!==undefined)this.#executions[_0x46f6a7(0x8a)](_0x465fdd[_0x46f6a7(0xc3)])?.[_0x46f6a7(0x120)]();await this.#releaseRuntime(_0x465fdd);})()),_0x185324=_0x309d71[_0x5a30de(0x127)](()=>{const _0x19f594=_0x5a30de;if(this.#sessionReleases[_0x19f594(0x8a)](_0x161743)===_0x185324)this.#sessionReleases[_0x19f594(0xe5)](_0x161743);});return this.#sessionReleases[_0x5a30de(0x122)](_0x161743,_0x185324),_0x185324;}async[_0x510b81(0x142)](_0x2597e0,_0x46ddc2,_0x1bbde2,_0x2e086d){const _0x24ce65=_0x510b81;if(_0x46ddc2['id']===_0x24ce65(0xa8)){const _0x261b3a=this[_0x24ce65(0x12f)][_0x24ce65(0x102)](_0x2597e0['id'],_0x24ce65(0xa8));if(_0x261b3a?.[_0x24ce65(0xea)])this[_0x24ce65(0x12f)][_0x24ce65(0xd8)](_0x2597e0['id'],_0x24ce65(0xa8));else this[_0x24ce65(0x12f)][_0x24ce65(0xc1)](_0x2597e0['id'],{'commandId':_0x24ce65(0xa8),'active':!![],'label':_0x24ce65(0x14f),'detail':_0x24ce65(0x8e),'closable':!![],'closeInput':_0x24ce65(0xe6),'continuation':{'label':_0x24ce65(0xba),'prompt':_0x24ce65(0xaa)}});return{'command':_0x46ddc2['id'],'states':this[_0x24ce65(0x12f)][_0x24ce65(0xd1)](_0x2597e0['id'])};}if(_0x46ddc2['id']!==_0x24ce65(0xda))throw new Error(_0x24ce65(0x149));if(_0x2597e0[_0x24ce65(0xa4)]===null||_0x2597e0[_0x24ce65(0x14b)]!==_0x24ce65(0x105))throw new Error(_0x24ce65(0x149));const _0x4cc367=marAgentRuntimeModelConfigurationSchema[_0x24ce65(0x139)](_0x2e086d[_0x24ce65(0xf0)]);if(!_0x4cc367[_0x24ce65(0x8f)]||_0x4cc367[_0x24ce65(0x114)]['id']!==_0x2597e0[_0x24ce65(0xd0)])throw new Error(_0x24ce65(0x149));const _0x44c0b4=_0x4cc367[_0x24ce65(0x114)],_0xf42cdf=randomUUID();return void this[_0x24ce65(0x10e)]({'runId':_0xf42cdf,'sessionId':_0x2597e0['id'],'input':_0x1bbde2,'cwd':_0x2597e0[_0x24ce65(0x11e)],'model':toSdkModel(_0x44c0b4),'models':resolveRunModels(_0x44c0b4,_0x2e086d[_0x24ce65(0x134)]),'effort':_0x2597e0[_0x24ce65(0x97)]??'','access':_0x2597e0[_0x24ce65(0x12e)]===_0x24ce65(0x10c)?_0x24ce65(0x10c):_0x24ce65(0xc5),'mode':_0x46ddc2['id'],'externalSessionId':_0x2597e0[_0x24ce65(0xa4)],'mcpServers':[],'images':[]}),{'command':_0x46ddc2['id'],'run':this[_0x24ce65(0x12f)][_0x24ce65(0x10e)](_0xf42cdf),'states':this[_0x24ce65(0x12f)][_0x24ce65(0xd1)](_0x2597e0['id'])};}[_0x510b81(0xfa)](_0x6e0ca5){const _0x48d952=_0x510b81,_0xa963bf=_0x6e0ca5[_0x48d952(0xc9)];if(_0xa963bf[_0x48d952(0xa1)]!==_0x48d952(0x14a)||typeof _0xa963bf[_0x48d952(0xde)]!==_0x48d952(0x84)||typeof _0xa963bf[_0x48d952(0x13c)]!==_0x48d952(0x84)||typeof _0xa963bf[_0x48d952(0xb1)]!==_0x48d952(0x84)||typeof _0xa963bf[_0x48d952(0x11e)]!==_0x48d952(0x84)||typeof _0xa963bf[_0x48d952(0xd0)]!==_0x48d952(0x84)||this[_0x48d952(0x12f)][_0x48d952(0xea)][_0x48d952(0xec)](_0xa963bf[_0x48d952(0xde)]))return;const _0x52c4c4=marAgentRuntimeModelConfigurationSchema[_0x48d952(0x139)](_0xa963bf[_0x48d952(0xf0)]);if(!_0x52c4c4[_0x48d952(0x8f)]||_0x52c4c4[_0x48d952(0x114)]['id']!==_0xa963bf[_0x48d952(0xd0)]){this[_0x48d952(0x12f)][_0x48d952(0x137)](_0xa963bf[_0x48d952(0xde)],_0x48d952(0x12d),{'code':_0x48d952(0x126)},_0x48d952(0x98));return;}const _0x154894=_0x52c4c4[_0x48d952(0x114)];let _0xc3384,_0x56411c;try{_0xc3384=this[_0x48d952(0xa1)][_0x48d952(0xd5)](_0xa963bf[_0x48d952(0x96)],parseSecretEnvironment(_0xa963bf[_0x48d952(0x12c)])),_0x56411c=parseRunnerImageAttachments(_0xa963bf[_0x48d952(0x117)]);}catch{this[_0x48d952(0x12f)][_0x48d952(0x137)](_0xa963bf[_0x48d952(0xde)],_0x48d952(0x12d),{'code':_0x48d952(0xbd)},_0x48d952(0x98));return;}void this[_0x48d952(0x10e)]({'runId':_0xa963bf[_0x48d952(0xde)],'sessionId':_0xa963bf[_0x48d952(0x13c)],'input':_0xa963bf[_0x48d952(0xb1)],'cwd':_0xa963bf[_0x48d952(0x11e)],'model':toSdkModel(_0x154894),'models':resolveRunModels(_0x154894,_0xa963bf[_0x48d952(0x134)]),'effort':typeof _0xa963bf[_0x48d952(0x97)]===_0x48d952(0x84)?_0xa963bf[_0x48d952(0x97)]:'','access':_0xa963bf[_0x48d952(0x12e)]===_0x48d952(0x10c)?_0x48d952(0x10c):_0x48d952(0xc5),'mode':_0xa963bf[_0x48d952(0x9f)]===_0x48d952(0xa8)?_0x48d952(0xa8):_0x48d952(0x10e),'mcpServers':_0xc3384,'images':_0x56411c[_0x48d952(0xff)](_0x5b650f=>({'mimeType':_0x5b650f[_0x48d952(0xa5)],'dataBase64':_0x5b650f[_0x48d952(0x107)]})),...typeof _0xa963bf[_0x48d952(0x141)]===_0x48d952(0x84)?{'clientMessageId':_0xa963bf[_0x48d952(0x141)]}:{},...typeof _0xa963bf[_0x48d952(0xa4)]===_0x48d952(0x84)?{'externalSessionId':_0xa963bf[_0x48d952(0xa4)]}:{},...typeof _0xa963bf[_0x48d952(0x147)]===_0x48d952(0x84)?{'personalInstructions':_0xa963bf[_0x48d952(0x147)]}:{}});}[_0x510b81(0x120)](_0x3a6afb,_0x4c7061){const _0x21b3d4=_0x510b81,_0x40d6f2=this.#executions[_0x21b3d4(0x8a)](_0x3a6afb);if(!_0x40d6f2)return![];return _0x40d6f2[_0x21b3d4(0x120)](),this[_0x21b3d4(0x12f)][_0x21b3d4(0x137)](_0x3a6afb,_0x21b3d4(0x14d),{'intent':_0x4c7061},_0x21b3d4(0x10a)),!![];}[_0x510b81(0x124)](_0x215de1){const _0x5c4af4=_0x510b81,_0x4261ad=this.#approvals[_0x5c4af4(0x8a)](_0x215de1[_0x5c4af4(0x90)]);if(!_0x4261ad||_0x4261ad[_0x5c4af4(0xde)]!==_0x215de1[_0x5c4af4(0xde)])return![];return clearTimeout(_0x4261ad[_0x5c4af4(0xa3)]),_0x4261ad[_0x5c4af4(0x14e)](),this.#approvals[_0x5c4af4(0xe5)](_0x215de1[_0x5c4af4(0x90)]),_0x4261ad[_0x5c4af4(0x129)](_0x215de1[_0x5c4af4(0xf2)]===_0x5c4af4(0x8c)?_0x5c4af4(0xa0):_0x5c4af4(0xab)),!![];}[_0x510b81(0x9e)](_0x4fa2c9,_0x604278,_0x545283){const _0x393b5e=_0x510b81,_0x2bd8f2=this.#questions[_0x393b5e(0x8a)](_0x604278);if(!_0x2bd8f2||_0x2bd8f2[_0x393b5e(0xde)]!==_0x4fa2c9)return![];return clearTimeout(_0x2bd8f2[_0x393b5e(0xa3)]),_0x2bd8f2[_0x393b5e(0x14e)](),this.#questions[_0x393b5e(0xe5)](_0x604278),_0x2bd8f2[_0x393b5e(0x129)](Object[_0x393b5e(0x144)](Object[_0x393b5e(0xad)](_0x545283)[_0x393b5e(0xff)](([_0x35f451,_0x5b129e])=>[_0x35f451,Array[_0x393b5e(0x109)](_0x5b129e)&&_0x5b129e[_0x393b5e(0x10f)]===-0x10c2+0x2476+-0x13b3?_0x5b129e[0x904+-0x154c+0xc48]:_0x5b129e]))),!![];}async[_0x510b81(0x10e)](_0x57f83e){const _0x2edbf3=_0x510b81;this[_0x2edbf3(0x12f)][_0x2edbf3(0xea)][_0x2edbf3(0xb5)](_0x57f83e[_0x2edbf3(0xde)]),this[_0x2edbf3(0x12f)][_0x2edbf3(0x91)]({'runId':_0x57f83e[_0x2edbf3(0xde)],'sessionId':_0x57f83e[_0x2edbf3(0x13c)],'runner':_0x2edbf3(0x14a),'cwd':_0x57f83e[_0x2edbf3(0x11e)],..._0x57f83e[_0x2edbf3(0xa4)]?{'externalSessionId':_0x57f83e[_0x2edbf3(0xa4)]}:{}}),this[_0x2edbf3(0x12f)][_0x2edbf3(0x137)](_0x57f83e[_0x2edbf3(0xde)],_0x2edbf3(0xae),{},_0x2edbf3(0xd9));let _0x56073d;try{const _0x20130e=_0x57f83e[_0x2edbf3(0xa4)]??_0x57f83e[_0x2edbf3(0x13c)],_0x56e50e=[...new Set([_0x20130e,_0x57f83e[_0x2edbf3(0x13c)]])];if(_0x56e50e[_0x2edbf3(0x135)](_0x5bbfdb=>this.#runtimeAcquisitions[_0x2edbf3(0x8a)](_0x5bbfdb)!==undefined))throw new Error(_0x2edbf3(0x148));const _0x3751bf=this.#acquireRuntime(_0x57f83e);for(const _0xfc474e of _0x56e50e)this.#runtimeAcquisitions[_0x2edbf3(0x122)](_0xfc474e,_0x3751bf);try{_0x56073d=await _0x3751bf;}finally{for(const _0x3b877 of _0x56e50e)if(this.#runtimeAcquisitions[_0x2edbf3(0x8a)](_0x3b877)===_0x3751bf)this.#runtimeAcquisitions[_0x2edbf3(0xe5)](_0x3b877);}if(this.#disposed||this.#sessionReleases[_0x2edbf3(0xec)](_0x20130e)||this.#sessionReleases[_0x2edbf3(0xec)](_0x57f83e[_0x2edbf3(0x13c)])||this.#sessionReleases[_0x2edbf3(0xec)](_0x56073d[_0x2edbf3(0x88)]['id'])){await this.#releaseRuntime(_0x56073d);throw new Error(_0x2edbf3(0xcc));}if(_0x56073d[_0x2edbf3(0xc3)]!==undefined)throw new Error(_0x2edbf3(0x148));_0x56073d[_0x2edbf3(0xc3)]=_0x57f83e[_0x2edbf3(0xde)],_0x56073d[_0x2edbf3(0xf9)]=_0x57f83e[_0x2edbf3(0x12e)];const _0x1c5615=_0x56073d[_0x2edbf3(0x88)],_0x17a148={'prompt':_0x57f83e[_0x2edbf3(0xb1)],..._0x57f83e[_0x2edbf3(0x141)]?{'clientMessageId':_0x57f83e[_0x2edbf3(0x141)]}:{},'modelId':_0x57f83e[_0x2edbf3(0xd0)]['id'],..._0x57f83e[_0x2edbf3(0x97)]?{'reasoningEffort':_0x57f83e[_0x2edbf3(0x97)]}:{},'access':_0x57f83e[_0x2edbf3(0x12e)],'images':_0x57f83e[_0x2edbf3(0xdb)]},_0x1d3a31=_0x57f83e[_0x2edbf3(0xd7)]===_0x2edbf3(0xa8)?_0x1c5615[_0x2edbf3(0xa8)]({..._0x17a148}):_0x57f83e[_0x2edbf3(0xd7)]===_0x2edbf3(0xda)?_0x1c5615[_0x2edbf3(0xda)](_0x17a148):_0x1c5615[_0x2edbf3(0x10e)](_0x17a148);this.#executions[_0x2edbf3(0x122)](_0x57f83e[_0x2edbf3(0xde)],{'cancel':()=>_0x1d3a31[_0x2edbf3(0x120)]()}),this[_0x2edbf3(0x12f)][_0x2edbf3(0x137)](_0x57f83e[_0x2edbf3(0xde)],_0x2edbf3(0x113),{},_0x2edbf3(0x10a));for await(const _0x10f417 of _0x1d3a31)this[_0x2edbf3(0xd6)](_0x57f83e[_0x2edbf3(0xde)],_0x10f417);const _0x54021d=await _0x1d3a31[_0x2edbf3(0xfc)]();await this[_0x2edbf3(0x12f)][_0x2edbf3(0x110)](_0x1c5615['id'],_0x57f83e[_0x2edbf3(0x11e)]);const _0x29722c=_0x54021d[_0x2edbf3(0xe8)]===_0x2edbf3(0x111)?_0x2edbf3(0xb2):_0x54021d[_0x2edbf3(0xe8)]===_0x2edbf3(0xc6)?_0x2edbf3(0xd4):_0x2edbf3(0x98);this[_0x2edbf3(0x12f)][_0x2edbf3(0x137)](_0x57f83e[_0x2edbf3(0xde)],_0x29722c===_0x2edbf3(0xb2)?_0x2edbf3(0xf4):_0x29722c===_0x2edbf3(0xd4)?_0x2edbf3(0x13b):_0x2edbf3(0x131),{'status':_0x29722c,..._0x54021d[_0x2edbf3(0xb6)]?{'code':_0x54021d[_0x2edbf3(0xb6)]}:{}},_0x29722c);}catch(_0x4981d1){const _0x4e1541=runnerErrorProjection(_0x4981d1,_0x2edbf3(0x87));this[_0x2edbf3(0x12f)][_0x2edbf3(0x153)](_0x57f83e[_0x2edbf3(0xde)],{'itemId':boundedConversationItemId(_0x2edbf3(0x10d),_0x57f83e[_0x2edbf3(0xde)]),'kind':_0x2edbf3(0xe1),'status':_0x2edbf3(0x98),'payload':{..._0x4e1541,'recoverable':!![],'retryAfterMs':null}}),this[_0x2edbf3(0x12f)][_0x2edbf3(0x137)](_0x57f83e[_0x2edbf3(0xde)],_0x2edbf3(0x131),_0x4e1541,_0x2edbf3(0x98));}finally{this[_0x2edbf3(0x9a)](_0x57f83e[_0x2edbf3(0xde)]),this.#normalizers[_0x2edbf3(0xe5)](_0x57f83e[_0x2edbf3(0xde)]),this[_0x2edbf3(0x12f)][_0x2edbf3(0xea)][_0x2edbf3(0xe5)](_0x57f83e[_0x2edbf3(0xde)]),this.#executions[_0x2edbf3(0xe5)](_0x57f83e[_0x2edbf3(0xde)]);_0x56073d?.[_0x2edbf3(0xc3)]===_0x57f83e[_0x2edbf3(0xde)]&&(delete _0x56073d[_0x2edbf3(0xc3)],delete _0x56073d[_0x2edbf3(0xf9)]);if(_0x56073d!==undefined){if(_0x56073d[_0x2edbf3(0x100)])this.#scheduleRuntimeRelease(_0x56073d);else await this.#releaseRuntime(_0x56073d);}}}async #acquireRuntime(_0x552f2d){const _0x269ad2=_0x510b81;if(this.#disposed)throw new Error(_0x269ad2(0xf8));const _0x2b1999=_0x552f2d[_0x269ad2(0xa4)]??_0x552f2d[_0x269ad2(0x13c)],_0x3f76af=await resolveMarAgentHostRuntimeConfiguration();if(this.#disposed)throw new Error(_0x269ad2(0xf8));const _0xdb0fc8=sessionRuntimeFingerprint(_0x552f2d,_0x3f76af),_0x29b55a=[...new Set([_0x2b1999,_0x552f2d[_0x269ad2(0x13c)]])],_0x4f92f6=_0x29b55a[_0x269ad2(0xff)](_0x53f7b1=>this.#runtimeCreations[_0x269ad2(0x8a)](_0x53f7b1))[_0x269ad2(0x11d)](_0x5eb0da=>_0x5eb0da!==undefined);if(_0x4f92f6!==undefined)return await _0x4f92f6,this.#acquireRuntime(_0x552f2d);const _0x951777=this.#sessionRuntimes[_0x269ad2(0x8a)](_0x2b1999);if(_0x951777!==undefined){if(_0x951777[_0x269ad2(0xc3)]!==undefined)throw new Error(_0x269ad2(0x148));if(!_0x951777[_0x269ad2(0xca)]&&_0x951777[_0x269ad2(0xfb)]===undefined&&_0x951777[_0x269ad2(0xa6)]===_0xdb0fc8)return _0x951777[_0x269ad2(0xc0)]!==undefined&&(clearTimeout(_0x951777[_0x269ad2(0xc0)]),delete _0x951777[_0x269ad2(0xc0)]),_0x951777;await this.#releaseRuntime(_0x951777);}const _0x4e04ba=this.#createRuntime(_0x552f2d,_0x2b1999,_0xdb0fc8,_0x3f76af);for(const _0x138225 of _0x29b55a)this.#runtimeCreations[_0x269ad2(0x122)](_0x138225,_0x4e04ba);try{return await _0x4e04ba;}finally{for(const _0x720812 of _0x29b55a)if(this.#runtimeCreations[_0x269ad2(0x8a)](_0x720812)===_0x4e04ba)this.#runtimeCreations[_0x269ad2(0xe5)](_0x720812);}}async #createRuntime(_0x35d3f5,_0x24ef5a,_0x22b265,_0x200583){const _0x220516=_0x510b81,_0x521d6d=!executionScopedMcp(_0x35d3f5[_0x220516(0x11f)]),_0x1f23b5=await this.#mcpClients[_0x220516(0x112)](_0x35d3f5[_0x220516(0x11f)],_0x35d3f5[_0x220516(0x11e)],{'reusable':_0x521d6d});let _0x2ef288,_0x1b3286;try{const _0xce7c99=_0x1f23b5[_0x220516(0x9c)],_0x5d6500=new LocalAgentHost({'mode':_0x220516(0x92),'homeDirectory':homedir(),'workspace':_0x35d3f5[_0x220516(0x11e)],'environment':_0x200583[_0x220516(0x85)],'guaranteedCommands':_0x200583[_0x220516(0xe0)],'approve':async(_0x580198,_0x32b837)=>{const _0x1721cc=_0x220516,_0xfcd284=_0x1b3286?.[_0x1721cc(0xc3)],_0x2e34fc=_0x1b3286?.[_0x1721cc(0xf9)];if(_0xfcd284===undefined||_0x2e34fc===undefined)return _0x1721cc(0xab);return _0x2e34fc===_0x1721cc(0x10c)?_0x1721cc(0xa0):this[_0x1721cc(0xb8)](_0xfcd284,_0x580198,_0x32b837);},'question':async(_0x239e31,_0x1beed1)=>{const _0x3059d7=_0x220516,_0x42edce=_0x1b3286?.[_0x3059d7(0xc3)];return _0x42edce===undefined?{}:this[_0x3059d7(0xf3)](_0x42edce,_0x239e31,_0x1beed1);},'mcpTools':_0xce7c99[_0x220516(0xdc)](),'callMcp':async _0x56e1a8=>_0xce7c99[_0x220516(0x93)](_0x56e1a8[_0x220516(0x140)],_0x56e1a8[_0x220516(0xbc)]),'webSearch':(_0x577ca2,_0x58c73d)=>this[_0x220516(0x12f)][_0x220516(0xdd)](_0x577ca2,_0x58c73d),'allowUntrustedTls':allowsUntrustedWebFetchTls(_0x200583[_0x220516(0x85)]),'resourceIdleTtlMs':this.#resourceIdleTtlMs});_0x2ef288=await this.#createAgent({'mode':_0x220516(0x92),'host':_0x5d6500,'models':_0x35d3f5[_0x220516(0x152)],'defaultModelId':_0x35d3f5[_0x220516(0xd0)]['id'],..._0x35d3f5[_0x220516(0x147)]?{'systemInstruction':_0x35d3f5[_0x220516(0x147)]}:{}});const _0x12442d=_0x35d3f5[_0x220516(0xa4)]?await _0x2ef288[_0x220516(0x136)](_0x35d3f5[_0x220516(0xa4)]):await _0x2ef288[_0x220516(0x9d)]({'workspace':_0x35d3f5[_0x220516(0x11e)]});_0x1b3286={'fingerprint':_0x22b265,'agent':_0x2ef288,'session':_0x12442d,'mcpLease':_0x1f23b5,'retainable':_0x521d6d,'released':![]},this.#sessionRuntimes[_0x220516(0x122)](_0x24ef5a,_0x1b3286),this.#sessionRuntimes[_0x220516(0x122)](_0x12442d['id'],_0x1b3286);if(!_0x35d3f5[_0x220516(0xa4)])this[_0x220516(0x12f)][_0x220516(0x94)](_0x35d3f5[_0x220516(0x13c)],_0x12442d['id']);return _0x1b3286;}catch(_0x1a709d){await _0x2ef288?.[_0x220516(0x128)]()[_0x220516(0x118)](()=>undefined),await _0x1f23b5[_0x220516(0xfb)]()[_0x220516(0x118)](()=>undefined);throw _0x1a709d;}}#scheduleRuntimeRelease(_0x17dd6c){const _0x5e9dd6=_0x510b81;if(_0x17dd6c[_0x5e9dd6(0xca)]||_0x17dd6c[_0x5e9dd6(0xfb)]!==undefined)return;if(_0x17dd6c[_0x5e9dd6(0xc0)]!==undefined)clearTimeout(_0x17dd6c[_0x5e9dd6(0xc0)]);_0x17dd6c[_0x5e9dd6(0xc0)]=setTimeout(()=>{const _0x37c628=_0x5e9dd6;delete _0x17dd6c[_0x37c628(0xc0)],void this.#releaseRuntime(_0x17dd6c);},this.#resourceIdleTtlMs),_0x17dd6c[_0x5e9dd6(0xc0)][_0x5e9dd6(0xbb)]();}#releaseRuntime(_0x2a6100){const _0x390323=_0x510b81;if(_0x2a6100[_0x390323(0xfb)]!==undefined)return _0x2a6100[_0x390323(0xfb)];return _0x2a6100[_0x390323(0xfb)]=((async()=>{const _0xa4c0d8=_0x390323;_0x2a6100[_0xa4c0d8(0xca)]=!![];_0x2a6100[_0xa4c0d8(0xc0)]!==undefined&&(clearTimeout(_0x2a6100[_0xa4c0d8(0xc0)]),delete _0x2a6100[_0xa4c0d8(0xc0)]);try{await _0x2a6100[_0xa4c0d8(0xf5)][_0xa4c0d8(0x128)]();}finally{await _0x2a6100[_0xa4c0d8(0x130)][_0xa4c0d8(0xfb)]()[_0xa4c0d8(0x118)](()=>undefined);for(const [_0x249f12,_0x8c5aaf]of this.#sessionRuntimes)if(_0x8c5aaf===_0x2a6100)this.#sessionRuntimes[_0xa4c0d8(0xe5)](_0x249f12);}})()),_0x2a6100[_0x390323(0xfb)];}[_0x510b81(0xb8)](_0x3d6c37,_0x33db4d,_0x140c33=new AbortController()[_0x510b81(0xa7)]){const _0x9b42b7=_0x510b81,_0x532ff6=randomUUID(),_0x42c332=Date[_0x9b42b7(0x14c)]()+(0x1*0x12fb+0x1167+-0x2458)*(0x1*-0xb087+0x71b5+0x12932),_0x29b3dc={'category':_0x33db4d[_0x9b42b7(0x140)]===_0x9b42b7(0x8d)?_0x9b42b7(0x143):_0x33db4d[_0x9b42b7(0x140)]===_0x9b42b7(0x99)?_0x9b42b7(0xb4):_0x9b42b7(0xf7),'toolName':_0x33db4d[_0x9b42b7(0x140)],'reason':_0x9b42b7(0xbe)};return this[_0x9b42b7(0x12f)][_0x9b42b7(0xa2)]({'runId':_0x3d6c37,'approvalId':_0x532ff6,'payload':_0x29b3dc,'expiresAt':_0x42c332}),this[_0x9b42b7(0x12f)][_0x9b42b7(0xb9)]({'runId':_0x3d6c37,'approvalId':_0x532ff6,'payload':_0x29b3dc,'expiresAt':_0x42c332}),new Promise(_0x3377d3=>{const _0x3f5032=_0x9b42b7,_0x5c6824=()=>_0x7efcbe(_0x3f5032(0xab)),_0x7efcbe=_0x3b5840=>{const _0x10ab2b=_0x3f5032,_0x10fa16=this.#approvals[_0x10ab2b(0x8a)](_0x532ff6);if(!_0x10fa16)return;clearTimeout(_0x10fa16[_0x10ab2b(0xa3)]),_0x10fa16[_0x10ab2b(0x14e)](),this.#approvals[_0x10ab2b(0xe5)](_0x532ff6),_0x3377d3(_0x3b5840);},_0x5a7ca7=setTimeout(()=>{const _0xe1dc92=_0x3f5032;_0x7efcbe(_0xe1dc92(0xab));},(0x54e+-0x1*0x1f1b+0x19d7)*(0x24c*-0x7+0xde07+0x1c6d));_0x5a7ca7[_0x3f5032(0xbb)](),_0x140c33[_0x3f5032(0xfe)](_0x3f5032(0xcd),_0x5c6824,{'once':!![]}),this.#approvals[_0x3f5032(0x122)](_0x532ff6,{'runId':_0x3d6c37,'resolve':_0x3377d3,'timer':_0x5a7ca7,'cleanup':()=>_0x140c33[_0x3f5032(0x95)](_0x3f5032(0xcd),_0x5c6824)});if(_0x140c33[_0x3f5032(0xfd)])_0x5c6824();});}[_0x510b81(0xf3)](_0x5bb9c9,_0x2f2d29,_0xaa526f=new AbortController()[_0x510b81(0xa7)]){const _0x506d98=_0x510b81,_0x45296f=normalizeQuestions(_0x2f2d29[_0x506d98(0xe2)]);if(_0x45296f[_0x506d98(0x10f)]===0xce*0x19+0x35*-0x17+-0x1*0xf5b)return Promise[_0x506d98(0x129)]({});return this[_0x506d98(0x12f)][_0x506d98(0x153)](_0x5bb9c9,{'itemId':boundedConversationItemId(_0x506d98(0xed),_0x2f2d29[_0x506d98(0x11a)]),'kind':_0x506d98(0x89),'status':_0x506d98(0x11b),'payload':{'requestId':_0x2f2d29[_0x506d98(0x11a)],'questions':_0x45296f}}),new Promise(_0x13733f=>{const _0x308e7f=_0x506d98,_0xf8b1c4=()=>_0x21f3db({}),_0x21f3db=_0xcc03bb=>{const _0x3e29f1=_0x4d0c,_0x1b5c85=this.#questions[_0x3e29f1(0x8a)](_0x2f2d29[_0x3e29f1(0x11a)]);if(!_0x1b5c85)return;clearTimeout(_0x1b5c85[_0x3e29f1(0xa3)]),_0x1b5c85[_0x3e29f1(0x14e)](),this.#questions[_0x3e29f1(0xe5)](_0x2f2d29[_0x3e29f1(0x11a)]),_0x13733f(_0xcc03bb);},_0x1d17e6=setTimeout(()=>{_0x21f3db({});},(-0x41b*0x2+-0x6*0x2b6+0x1884)*(-0x1*-0x4e67+0xe*-0xe83+0x1*0x16723));_0x1d17e6[_0x308e7f(0xbb)](),_0xaa526f[_0x308e7f(0xfe)](_0x308e7f(0xcd),_0xf8b1c4,{'once':!![]}),this.#questions[_0x308e7f(0x122)](_0x2f2d29[_0x308e7f(0x11a)],{'runId':_0x5bb9c9,'resolve':_0x13733f,'timer':_0x1d17e6,'cleanup':()=>_0xaa526f[_0x308e7f(0x95)](_0x308e7f(0xcd),_0xf8b1c4)});if(_0xaa526f[_0x308e7f(0xfd)])_0xf8b1c4();});}[_0x510b81(0x9a)](_0x47e2ed){const _0x19f847=_0x510b81;for(const [_0x479b5a,_0x23e2dd]of this.#approvals){if(_0x23e2dd[_0x19f847(0xde)]!==_0x47e2ed)continue;clearTimeout(_0x23e2dd[_0x19f847(0xa3)]),_0x23e2dd[_0x19f847(0x14e)](),this.#approvals[_0x19f847(0xe5)](_0x479b5a),_0x23e2dd[_0x19f847(0x129)](_0x19f847(0xab));}for(const [_0x1388fa,_0x51a11d]of this.#questions){if(_0x51a11d[_0x19f847(0xde)]!==_0x47e2ed)continue;clearTimeout(_0x51a11d[_0x19f847(0xa3)]),_0x51a11d[_0x19f847(0x14e)](),this.#questions[_0x19f847(0xe5)](_0x1388fa),_0x51a11d[_0x19f847(0x129)]({});}}[_0x510b81(0xd6)](_0x4ff4e6,_0x4e2395){const _0xd926c8=_0x510b81;if(_0x4e2395[_0xd926c8(0xe3)]===_0xd926c8(0xe9))this[_0xd926c8(0x12f)][_0xd926c8(0x137)](_0x4ff4e6,_0xd926c8(0x123),{'text':_0x4e2395[_0xd926c8(0x103)],'phase':_0x4e2395[_0xd926c8(0x138)],'itemId':boundedConversationItemId(_0xd926c8(0xf6),_0x4e2395[_0xd926c8(0xd2)])});else{let _0xf1cf13=this.#normalizers[_0xd926c8(0x8a)](_0x4ff4e6);_0xf1cf13===undefined&&(_0xf1cf13=new MarAgentConversationNormalizer(),this.#normalizers[_0xd926c8(0x122)](_0x4ff4e6,_0xf1cf13));for(const _0x216157 of _0xf1cf13[_0xd926c8(0x146)](_0x4e2395))this[_0xd926c8(0x12f)][_0xd926c8(0x153)](_0x4ff4e6,{'itemId':_0x216157[_0xd926c8(0xd2)],'kind':_0x216157[_0xd926c8(0x101)],'status':_0x216157[_0xd926c8(0xe8)],'payload':_0x216157[_0xd926c8(0xc9)],..._0x216157[_0xd926c8(0xdf)]===undefined?{}:{'merge':_0x216157[_0xd926c8(0xdf)]}});}}}function sessionRuntimeFingerprint(_0x121efe,_0x53a7df){const _0x548526=_0x510b81;return createHash(_0x548526(0x119))[_0x548526(0x116)](JSON[_0x548526(0xa9)]({'cwd':_0x121efe[_0x548526(0x11e)],'defaultModelId':_0x121efe[_0x548526(0xd0)]['id'],'models':_0x121efe[_0x548526(0x152)][_0x548526(0xff)](_0x5cd74b=>({..._0x5cd74b,'apiKey':createHash(_0x548526(0x119))[_0x548526(0x116)](_0x5cd74b[_0x548526(0x121)][_0x548526(0x104)]())[_0x548526(0x132)](_0x548526(0xc8))})),'personalInstructions':_0x121efe[_0x548526(0x147)]??'','mcpServers':_0x121efe[_0x548526(0x11f)],'environment':Object[_0x548526(0xad)](_0x53a7df[_0x548526(0x85)])[_0x548526(0x151)](_0x31d992=>_0x31d992[-0x1*0x753+0xce*-0x5+-0x1*-0xb5a]!==undefined)[_0x548526(0x12a)](([_0x5a7270],[_0x20713f])=>_0x5a7270[_0x548526(0xce)](_0x20713f)),'guaranteedCommands':Object[_0x548526(0xad)](_0x53a7df[_0x548526(0xe0)])[_0x548526(0x12a)](([_0x4ec8a7],[_0x500aff])=>_0x4ec8a7[_0x548526(0xce)](_0x500aff))}))[_0x548526(0x132)](_0x548526(0xc8));}export function allowsUntrustedWebFetchTls(_0x15e0fd){const _0x21b204=_0x510b81;return _0x15e0fd[_0x21b204(0x13e)]!=='0';}function executionScopedMcp(_0x39de1e){const _0x493aa9=_0x510b81;return _0x39de1e[_0x493aa9(0x135)](_0x1857cc=>_0x1857cc[_0x493aa9(0x8b)]===_0x493aa9(0xef));}async function resolveMarAgentHostRuntimeConfiguration(){const _0x5e9ab1={...process.env},_0x29dda9=await availableBundledRipgrep();return{'environment':_0x29dda9===undefined?_0x5e9ab1:prependBundledRipgrepToPath(_0x5e9ab1,_0x29dda9),'guaranteedCommands':_0x29dda9===undefined?{}:{'rg':BUNDLED_RIPGREP_VERSION}};}async function availableBundledRipgrep(){const _0x1b5e38=_0x510b81;try{const _0x7ef306=bundledRipgrepPath();return await access(_0x7ef306,process[_0x1b5e38(0x125)]===_0x1b5e38(0xe4)?constants[_0x1b5e38(0xb0)]:constants[_0x1b5e38(0x10b)]),_0x7ef306;}catch{return undefined;}}function normalizeQuestions(_0xae2d4){const _0x583620=_0x510b81;return _0xae2d4[_0x583620(0xcf)](_0xeb116e=>{const _0x126b21=_0x583620;if(_0xeb116e===null||typeof _0xeb116e!==_0x126b21(0x150)||Array[_0x126b21(0x109)](_0xeb116e))return[];const _0x668099=_0xeb116e;if(typeof _0x668099['id']!==_0x126b21(0x84)||typeof _0x668099[_0x126b21(0x12b)]!==_0x126b21(0x84))return[];const _0x3f8cf4=Array[_0x126b21(0x109)](_0x668099[_0x126b21(0x86)])?_0x668099[_0x126b21(0x86)][_0x126b21(0xcf)](_0x3e7e54=>{const _0x2d370a=_0x126b21;if(_0x3e7e54===null||typeof _0x3e7e54!==_0x2d370a(0x150)||Array[_0x2d370a(0x109)](_0x3e7e54))return[];const _0xb46b92=_0x3e7e54;if(typeof _0xb46b92[_0x2d370a(0x11c)]!==_0x2d370a(0x84))return[];return[{'value':_0xb46b92[_0x2d370a(0x11c)],'label':_0xb46b92[_0x2d370a(0x11c)],'description':typeof _0xb46b92[_0x2d370a(0xc7)]===_0x2d370a(0x84)?_0xb46b92[_0x2d370a(0xc7)]:null}];}):[],_0x1b870d=_0x668099[_0x126b21(0xf1)]===!![];return[{'id':_0x668099['id'],'prompt':_0x668099[_0x126b21(0x12b)],'input':_0x3f8cf4[_0x126b21(0x10f)]===-0x1*-0x26+-0x236*-0x4+-0x8fe?_0x126b21(0xc2):_0x1b870d?_0x126b21(0x13d):_0x126b21(0x106),'options':_0x3f8cf4,'allowOther':!![],..._0x1b870d?{'multiSelect':!![]}:{}}];});}function toSdkModel(_0x5bd6ac){const _0x39a6b2=_0x510b81;return{..._0x5bd6ac,'apiKey':new SecretValue(_0x5bd6ac[_0x39a6b2(0x121)])};}export function resolveRunModels(_0x54ac3a,_0x58e912){const _0x311367=_0x510b81,_0x4382fb=[_0x54ac3a];if(Array[_0x311367(0x109)](_0x58e912))for(const _0x2e8751 of _0x58e912){const _0x43d296=marAgentRuntimeModelConfigurationSchema[_0x311367(0x139)](_0x2e8751);if(_0x43d296[_0x311367(0x8f)]&&_0x43d296[_0x311367(0x114)]['id']!==_0x54ac3a['id'])_0x4382fb[_0x311367(0x115)](_0x43d296[_0x311367(0x114)]);}const _0x969172=new Set();return _0x4382fb[_0x311367(0x151)](_0x30f895=>{const _0x2464a2=_0x311367;if(_0x969172[_0x2464a2(0xec)](_0x30f895['id']))return![];return _0x969172[_0x2464a2(0xb5)](_0x30f895['id']),!![];})[_0x311367(0xff)](toSdkModel);}
@@ -1,2 +1,2 @@
1
1
  /* mar-release-protected */
2
- const _0x32d66f=_0x14ad;(function(_0x5684af,_0x232374){const _0x4462ac=_0x14ad,_0x4edbcb=_0x5684af();while(!![]){try{const _0x525d63=parseInt(_0x4462ac(0x1d9))/(-0x7*0x274+-0x1d1f+0x4*0xb93)*(parseInt(_0x4462ac(0x1d7))/(0x125f+0x171f+-0x297c))+parseInt(_0x4462ac(0x220))/(-0x228d+-0xacf+0x73*0x65)+-parseInt(_0x4462ac(0x200))/(-0x3a2*0x1+-0xbd1+0xf77)+-parseInt(_0x4462ac(0x211))/(0x26ba*0x1+-0x5d8+0x20dd*-0x1)+-parseInt(_0x4462ac(0x213))/(0x7c6+0x1873+-0x2033*0x1)*(-parseInt(_0x4462ac(0x22c))/(-0x125*-0x6+0x17bf+-0x1e96))+-parseInt(_0x4462ac(0x1fd))/(0x2206+0x133f*-0x1+-0xebf)*(parseInt(_0x4462ac(0x205))/(0x8*0x347+-0xaed+-0xf42))+parseInt(_0x4462ac(0x239))/(0xc9a+0x4*0x617+-0x24ec*0x1);if(_0x525d63===_0x232374)break;else _0x4edbcb['push'](_0x4edbcb['shift']());}catch(_0x5b4b16){_0x4edbcb['push'](_0x4edbcb['shift']());}}}(_0xa36f,0x3ec83*-0x1+0x2*0x4336f+0x1*0xacdd));import{marAgentModelSummarySchema}from'@myagentroam/protocol';import{openMarAgentSessionCatalog}from'@myagentroam/agent';import{homedir}from'node:os';import{resolve}from'node:path';import{AbstractRunner}from'./abstract-runner.js';import{projectMarAgentHistory}from'./mar-agent/history-projection.js';function _0x14ad(_0x1000d4,_0xe969e6){_0x1000d4=_0x1000d4-(0xa22+-0x1121+-0x70*-0x14);const _0x5557f4=_0xa36f();let _0x32eeeb=_0x5557f4[_0x1000d4];if(_0x14ad['dKPlbD']===undefined){var _0x7ac5cb=function(_0x4debfa){const _0x58db6c='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2c9b0e='',_0x2881a7='';for(let _0x56d354=-0x1eb3+0x1bb*-0x3+0x23e4*0x1,_0x3578e5,_0x48ea42,_0xdcd4b1=0x1e5c+0x11*0x89+0xd*-0x309;_0x48ea42=_0x4debfa['charAt'](_0xdcd4b1++);~_0x48ea42&&(_0x3578e5=_0x56d354%(0x7*-0x4fd+0x182+0x216d*0x1)?_0x3578e5*(-0xea*0x1a+0xd9d+-0xa67*-0x1)+_0x48ea42:_0x48ea42,_0x56d354++%(-0x914+-0x1*0xe3+-0x16d*-0x7))?_0x2c9b0e+=String['fromCharCode'](0x211b+-0x4b0+-0x1b6c&_0x3578e5>>(-(0x127d+0x105d+-0x22d8)*_0x56d354&-0x1d5a*0x1+0x1cb2+0xae)):-0x4b6+0xcf4+-0x2*0x41f){_0x48ea42=_0x58db6c['indexOf'](_0x48ea42);}for(let _0x4c9989=0x12e*-0xd+-0xa9+0xfff,_0x5cf550=_0x2c9b0e['length'];_0x4c9989<_0x5cf550;_0x4c9989++){_0x2881a7+='%'+('00'+_0x2c9b0e['charCodeAt'](_0x4c9989)['toString'](-0x9*0x175+-0x1994+0x26c1))['slice'](-(0x1*-0x1f74+0x1026+-0x3d4*-0x4));}return decodeURIComponent(_0x2881a7);};_0x14ad['yYZxlx']=_0x7ac5cb,_0x14ad['OPLquA']={},_0x14ad['dKPlbD']=!![];}const _0x1e3958=_0x5557f4[-0x3fd*0x7+0xce+0x1b1d];_0x14ad['wboNLu']!==_0x1e3958&&(_0x14ad['OPLquA']={},_0x14ad['wboNLu']=_0x1e3958);const _0x1ac262=_0x14ad['OPLquA'][_0x1000d4];return _0x1ac262===undefined?(_0x32eeeb=_0x14ad['yYZxlx'](_0x32eeeb),_0x14ad['OPLquA'][_0x1000d4]=_0x32eeeb):_0x32eeeb=_0x1ac262,_0x32eeeb;}export class MarAgentRunner extends AbstractRunner{[_0x32d66f(0x208)];[_0x32d66f(0x23c)]=_0x32d66f(0x240);[_0x32d66f(0x206)]=_0x32d66f(0x233);#models=[];constructor(_0xffbde=homedir()){const _0x4347f7=_0x32d66f;super(),this[_0x4347f7(0x208)]=_0xffbde;}[_0x32d66f(0x21a)](_0x2f6f46){const _0x9e47e3=_0x32d66f;this.#models=Array[_0x9e47e3(0x225)](_0x2f6f46)?_0x2f6f46[_0x9e47e3(0x21b)](isModelSummary):[];}[_0x32d66f(0x230)](_0xbdd95e){const _0x515970=_0x32d66f;if(!this[_0x515970(0x222)](_0xbdd95e))return undefined;return this[_0x515970(0x210)]();}[_0x32d66f(0x222)](_0x52b5b8){const _0x5dbd2f=_0x32d66f;return _0x52b5b8[_0x5dbd2f(0x1d0)]?.[_0x5dbd2f(0x222)]===!![];}[_0x32d66f(0x210)](){const _0x55c896=_0x32d66f,_0x37da72=this.#models[_0x55c896(0x21b)](_0xd794b=>_0xd794b[_0x55c896(0x231)]);return{'runner':_0x55c896(0x240),'models':_0x37da72[_0x55c896(0x1d1)]((_0x1b80e0,_0x12eb21)=>({'id':_0x1b80e0['id'],'label':_0x1b80e0[_0x55c896(0x23c)],'supportedEfforts':[..._0x1b80e0[_0x55c896(0x1dc)]],..._0x12eb21===0x1f0*0xb+-0x3*-0xaff+0x1*-0x364d?{'isDefault':!![]}:{}})),'accessOptions':[{'id':_0x55c896(0x1da),'label':_0x55c896(0x1f8),'description':_0x55c896(0x23f)},{'id':_0x55c896(0x1cf),'label':_0x55c896(0x1f4),'description':_0x55c896(0x1e7)}],'commands':[_0x55c896(0x1dd),_0x55c896(0x241)][_0x55c896(0x1d1)](_0x29f06a=>({'id':_0x29f06a,'runner':_0x55c896(0x240),'label':'/'+_0x29f06a,'description':_0x29f06a===_0x55c896(0x1dd)?_0x55c896(0x1f3):_0x29f06a===_0x55c896(0x241)?_0x55c896(0x212):_0x55c896(0x232),'inputHint':'/'+_0x29f06a,'source':_0x55c896(0x1f0),'interaction':_0x29f06a===_0x55c896(0x241)?_0x55c896(0x1f6):_0x55c896(0x204),'available':!![],'reasonCode':null})),'capabilities':[_0x55c896(0x219),_0x55c896(0x1c5),_0x55c896(0x214),_0x55c896(0x1f2),_0x55c896(0x241),_0x55c896(0x1dd),_0x55c896(0x1f1),_0x55c896(0x1f5)]};}[_0x32d66f(0x20c)](_0x3f7f6c){const _0x3863eb=_0x32d66f;if(_0x3f7f6c[_0x3863eb(0x238)]!==this[_0x3863eb(0x23c)])return![];const _0x2be432=this[_0x3863eb(0x210)](),_0x2af298=_0x2be432[_0x3863eb(0x20a)][_0x3863eb(0x1ec)](_0x5dfc4c=>_0x5dfc4c['id']===_0x3f7f6c[_0x3863eb(0x1e6)]);return _0x2af298!==undefined&&(_0x2af298[_0x3863eb(0x1d3)][_0x3863eb(0x1ce)]===0x24e1+0x3d*0x1f+-0x2c44*0x1?_0x3f7f6c[_0x3863eb(0x1df)]==='':_0x2af298[_0x3863eb(0x1d3)][_0x3863eb(0x23a)](_0x3f7f6c[_0x3863eb(0x1df)]))&&_0x2be432[_0x3863eb(0x22b)][_0x3863eb(0x201)](_0x24cf1d=>_0x24cf1d['id']===_0x3f7f6c[_0x3863eb(0x21f)]);}[_0x32d66f(0x1cb)](){const _0x3396be=_0x32d66f,_0x1cf8db=this[_0x3396be(0x210)](),_0x2ee1bd=_0x1cf8db[_0x3396be(0x20a)][0xb08+0x3*0xb9b+-0x2dd9];return{'runner':_0x3396be(0x240),'model':_0x2ee1bd?.['id']??'','effort':_0x2ee1bd?.[_0x3396be(0x1d3)][-0xea8+0x2104+-0x125c]??'','access':_0x3396be(0x1da)};}[_0x32d66f(0x1c8)](_0x4ca394,_0x4db24f,_0xe8cb2d){const _0x41118c=_0x32d66f;if(!this[_0x41118c(0x222)](_0x4db24f))return{'activity':_0x41118c(0x22a),'control':{'level':_0x41118c(0x22a),'capabilities':[]},'runtime':{'level':_0x41118c(0x22a),'capabilities':[],'reasonCode':_0x41118c(0x202)},'commandStates':_0xe8cb2d[_0x41118c(0x229)]};const _0x59af18=_0x4ca394[_0x41118c(0x216)]===_0x41118c(0x215),_0x1faf35=_0xe8cb2d[_0x41118c(0x20d)]?_0x41118c(0x235):_0x41118c(0x223),_0x1078d2=[_0x41118c(0x203),_0x41118c(0x1e0),_0x41118c(0x219),_0x41118c(0x1e8),_0x41118c(0x21e),_0x41118c(0x1f9),_0x41118c(0x20f),_0x41118c(0x23b),_0x41118c(0x1cc),_0x41118c(0x1c6),_0x41118c(0x22f)];return{'activity':_0x1faf35,'control':{'level':_0x59af18?_0x41118c(0x23d):_0x41118c(0x1ff),'capabilities':[_0x41118c(0x203),_0x41118c(0x1e0),_0x41118c(0x219),_0x41118c(0x21e)]},'runtime':{'level':_0x59af18?_0x41118c(0x23d):_0x41118c(0x1ff),'capabilities':_0x1078d2,'reasonCode':null},'commandStates':_0xe8cb2d[_0x41118c(0x229)]};}[_0x32d66f(0x1e1)](_0x46086a,_0x1b15f5){const _0x45dd41=_0x32d66f;if(_0x46086a[_0x45dd41(0x238)]!==this[_0x45dd41(0x23c)]||_0x46086a[_0x45dd41(0x237)]===null||!_0x1b15f5[_0x45dd41(0x222)])return Promise[_0x45dd41(0x1c9)]({'failureCode':_0x45dd41(0x202)});const _0x888c77=_0x1b15f5[_0x45dd41(0x1fe)](_0x46086a['id']);if(_0x888c77)return Promise[_0x45dd41(0x1c9)]({'session':_0x1b15f5[_0x45dd41(0x1ed)](_0x888c77),'activity':_0x45dd41(0x223)});const _0x686886=_0x1b15f5[_0x45dd41(0x1ee)](_0x46086a),_0x94c338=_0x686886?_0x1b15f5[_0x45dd41(0x1db)](_0x686886['id']):_0x1b15f5[_0x45dd41(0x227)](_0x46086a);if(!_0x94c338)return Promise[_0x45dd41(0x1c9)]({'failureCode':_0x45dd41(0x1c4)});return _0x1b15f5[_0x45dd41(0x218)](_0x46086a[_0x45dd41(0x237)],_0x94c338['id']),Promise[_0x45dd41(0x1c9)]({'session':_0x1b15f5[_0x45dd41(0x1ed)](_0x94c338),'activity':_0x45dd41(0x223)});}async[_0x32d66f(0x22d)](_0x4365f1,_0x55824d){const _0x266efa=_0x32d66f;let _0x30b4ae;try{_0x30b4ae=await openMarAgentSessionCatalog({'homeDirectory':this[_0x266efa(0x208)]});const _0x219008=await _0x30b4ae[_0x266efa(0x1fc)]({'limit':0xc8}),_0x59f118=_0x55824d?[_0x55824d]:_0x4365f1[_0x266efa(0x1ca)];return _0x219008[_0x266efa(0x1e4)][_0x266efa(0x209)](_0x393e74=>{const _0x113999=_0x266efa,_0xd9cf57=_0x59f118[_0x113999(0x1ec)](_0x30abc9=>resolve(_0x30abc9[_0x113999(0x1f7)])===resolve(_0x393e74[_0x113999(0x1e2)]));if(!_0xd9cf57)return[];return[_0x4365f1[_0x113999(0x1ef)]({'workspace':_0xd9cf57,'runner':this[_0x113999(0x23c)],'externalSessionId':_0x393e74['id'],'cwd':_0x393e74[_0x113999(0x1e2)],'title':_0x393e74[_0x113999(0x217)],'titleOrigin':_0x113999(0x221),'lastActivityAt':Date[_0x113999(0x1fa)](_0x393e74[_0x113999(0x20e)])})];});}catch{return[];}finally{await _0x30b4ae?.[_0x266efa(0x1c3)]()[_0x266efa(0x1d6)](()=>undefined);}}async[_0x32d66f(0x1e5)](_0x5386e6,_0x166011){const _0x4b051f=_0x32d66f;if(_0x5386e6[_0x4b051f(0x238)]!==this[_0x4b051f(0x23c)]||_0x5386e6[_0x4b051f(0x237)]!==_0x166011)return![];const _0xf93d20=await openMarAgentSessionCatalog({'homeDirectory':this[_0x4b051f(0x208)]});try{return await _0xf93d20[_0x4b051f(0x1c2)](_0x166011),!![];}finally{await _0xf93d20[_0x4b051f(0x1c3)]()[_0x4b051f(0x1d6)](()=>undefined);}}async[_0x32d66f(0x1cd)](_0x2322a2,_0x1000d4){const _0x48dc16=_0x32d66f;if(_0x2322a2[_0x48dc16(0x238)]!==this[_0x48dc16(0x23c)]||_0x2322a2[_0x48dc16(0x237)]!==_0x1000d4)return undefined;const _0xe969e6=await openMarAgentSessionCatalog({'homeDirectory':this[_0x48dc16(0x208)]});try{let _0x5557f4;do{const _0x32eeeb=await _0xe969e6[_0x48dc16(0x1fc)]({'limit':0xc8,..._0x5557f4?{'cursor':_0x5557f4}:{}}),_0x7ac5cb=_0x32eeeb[_0x48dc16(0x1e4)][_0x48dc16(0x1ec)](_0x1e3958=>_0x1e3958['id']===_0x1000d4)?.[_0x48dc16(0x217)];if(_0x7ac5cb!==undefined)return _0x7ac5cb;_0x5557f4=_0x32eeeb[_0x48dc16(0x1e9)];}while(_0x5557f4!==undefined);return undefined;}finally{await _0xe969e6[_0x48dc16(0x1c3)]()[_0x48dc16(0x1d6)](()=>undefined);}}async[_0x32d66f(0x23e)](_0x1ac262,_0x4debfa){const _0x4cf4e9=_0x32d66f;if(_0x1ac262[_0x4cf4e9(0x237)]===null)return undefined;const _0x58db6c=await openMarAgentSessionCatalog({'homeDirectory':this[_0x4cf4e9(0x208)]});try{const _0x2c9b0e=_0x4debfa[_0x4cf4e9(0x224)]??-0x156a+-0x26f*-0xa+-0x2*0x171;let _0x2881a7=_0x4debfa[_0x4cf4e9(0x1d4)],_0x56d354,_0x3578e5=[],_0x48ea42=[];do{const _0xdcd4b1=await _0x58db6c[_0x4cf4e9(0x1ea)](_0x1ac262[_0x4cf4e9(0x237)],{..._0x2881a7===undefined?{}:{'cursor':_0x2881a7},'limit':0x3e8});_0x3578e5=[..._0xdcd4b1[_0x4cf4e9(0x228)],..._0x3578e5],_0x56d354=_0xdcd4b1[_0x4cf4e9(0x1e9)],_0x48ea42=projectMarAgentHistory(_0x1ac262,_0x3578e5),_0x2881a7=_0x56d354;}while(_0x48ea42[_0x4cf4e9(0x1ce)]<=_0x2c9b0e&&_0x56d354!==undefined);if(_0x48ea42[_0x4cf4e9(0x1ce)]>_0x2c9b0e){const _0x4c9989=_0x48ea42[_0x4cf4e9(0x1de)](-_0x2c9b0e),_0x5cf550=firstSequenceForTurn(_0x3578e5,_0x4c9989[-0xf07+0x1*-0x1b2f+0x2a36]['id']);return{'turns':_0x4c9989,'nextCursor':_0x5cf550===undefined?_0x56d354??null:String(_0x5cf550)};}return{'turns':_0x48ea42,'nextCursor':_0x56d354??null};}catch{return undefined;}finally{await _0x58db6c[_0x4cf4e9(0x1c3)]()[_0x4cf4e9(0x1d6)](()=>undefined);}}async[_0x32d66f(0x21c)](_0x91550c){const _0xaeb7ea=_0x32d66f,_0x5a290f=await _0x91550c[_0xaeb7ea(0x207)]();return _0x5a290f===undefined?undefined:{..._0x5a290f,'source':_0xaeb7ea(0x1e3)};}async[_0x32d66f(0x1d8)](_0x441e6b){const _0x2f0865=_0x32d66f;if(_0x441e6b[_0x2f0865(0x237)]===null||_0x441e6b[_0x2f0865(0x1e6)]===null)return undefined;const _0x5326c1=this.#models[_0x2f0865(0x1ec)](_0x477743=>_0x477743['id']===_0x441e6b[_0x2f0865(0x1e6)]);if(_0x5326c1===undefined)return undefined;let _0x3b6845;try{_0x3b6845=await openMarAgentSessionCatalog({'homeDirectory':this[_0x2f0865(0x208)]});const _0x2843b8=await _0x3b6845[_0x2f0865(0x22e)](_0x441e6b[_0x2f0865(0x237)]);return _0x2843b8===undefined?undefined:{'model':_0x5326c1[_0x2f0865(0x1c7)],'usedTokens':_0x2843b8[_0x2f0865(0x226)],'maxTokens':_0x5326c1[_0x2f0865(0x234)]};}catch{return undefined;}finally{await _0x3b6845?.[_0x2f0865(0x1c3)]()[_0x2f0865(0x1d6)](()=>undefined);}}[_0x32d66f(0x1eb)](){}}function _0xa36f(){const _0x2708aa=['ChjVBw90zq','CMvHC29UAw5NrwzMB3j0CW','y29TCgfJDa','C2XPy2u','zwzMB3j0','zxzLBNrZlMXPDMu','CMvZDw1LrxH0zxjUywW','D29YA3nWywnL','BMf0AxzL','C2vZC2LVBNm','CMvTB3zLtMf0AxzL','Bw9KzwW','u2TPCcbbz2vUDcbHChbYB3zHBhmUieHVC3qGDMfSAwrHDgLVBIbYzw1HAw5ZigfJDgL2zsbHBMqGBM8GqwDLBNqGC2fUzgjVEcbPCYbWCM92AwrLzc4','DhvYBI5XDwv1zq','BMv4Den1CNnVCG','AgLZDg9YEq','C3rVCa','zMLUza','zw5ZDxjLq29UzMLNDxjHDgLVBG','ChjVAMvJDgLVBKzVCG','y3jLyxrLuhjVAMvJDgLVBG','tufsx1jvtLrjtuu','BwnW','DxnLCI1PBNb1Da','q29TCgfJDcb0AguGy3vYCMvUDcbZzxnZAw9UignVBNrLEhqU','rNvSBcbHy2nLC3m','C3vIywDLBNq','ve9hr0Xf','Cgf0Aa','t24TCMvXDwvZDa','CNvUlMnHBMnLBa','CgfYC2u','C2fMzvbHCNnL','BgLZDa','mZy4C3bTuezK','y3vYCMvUDfjLC3vTzwq','uKvtvu1bqKXf','odq3nJa0thD1A2DQ','C29Tzq','uLvotKvsx1voqvzbsuXbqKXf','AgLZDg9YEs5YzwfK','su1nrurjqvrfx0fdveLptG','mJC1ndLjtenuEwC','zgLZy292zxj5u2nVCgu','B2zMAwnPywW','Ag9TzurPCMvJDg9YEq','zMXHDe1HCa','Bw9KzwXZ','zxzLBNq','C3vWCg9YDhndB25MAwD1CMf0Aw9U','BwfUywDLzefJDgL2zq','BgfZDefJDgL2Axr5qxq','yxbWCM92ywWUCMvZCg9Uza','ChjVzMLSzuzVCLzHBgLKyxrPB24','mtqYmdi2nwTODfLYCq','vg9Nz2XLignVBgXHyM9YyxrPDMuGugXHBIbnB2rLlG','mZzsDLbbDvm','yxbWCM92ywW','tufsx01btKfhruq','BMf0AxzLq29UDhjVBa','DgL0Bgu','CMvTzw1Izxjnyw5Hz2vKtMf0AxzL','DhvYBI5ZDgfYDa','y29UzMLNDxjLtw9KzwXZ','zMLSDgvY','CMvHzenVBNzLCNnHDgLVBKHPC3rVCNK','A2LUza','DhvYBI5PBNrLCNj1Chq','ywnJzxnZ','nJy3ndKXs0fdz0PP','tKfusvzf','yxzHAwXHyMXL','surmrq','BgLTAxq','AxnbCNjHEq','Aw5WDxruB2TLBNm','y3jLyxrL','zw50CMLLCW','y29TBwfUzfn0yxrLCW','vu5bvKfjtefcteu','ywnJzxnZt3b0Aw9UCW','nJi4nJDIEeLoAgq','zgLZy292zxjtzxnZAw9UCW','y29UDgv4DfvZywDL','C2vZC2LVBI5WAw4','ChjVzMLSzq','zw5HyMXLza','ugXHBIb0AguGCMvXDwvZDgvKihDVCMSGyMvMB3jLigLTCgXLBwvUDgf0Aw9UlG','quXmx1DpuKTtuefdrvm','y29UDgv4DfDPBMrVD1rVA2vUCW','tufoquDfrf9bq1rjvKu','C2vXDwvUy2u','zxH0zxjUywXtzxnZAw9Uswq','CNvUBMvY','ndqXntu2meHfsLLtAG','Aw5JBhvKzxm','DxnLCI1PBNb1Dc5YzxnWB25K','BMfTzq','tufoquDfra','CMvHze9MzMLJAwfSq29UDMvYC2f0Aw9U','qxnRigjLzM9Yzsb0B29SCYb3AxrOihnPzguGzwzMzwn0CY4GvgHPCYbPCYbUB3qGyw4GB3bLCMf0Aw5Nlxn5C3rLBsbZyw5KyM94lG','BwfYlwfNzw50','CgXHBG','DxnLCG','zgvSzxrL','y2XVC2u','uLvotKvsx1jfu1vnrv9gquLmruq','y29UDMvYC2f0Aw9U','C2vZC2LVBI5Yzw1VDMu','Bw9KzwXjza','ChjLC2vUDfnLC3nPB24','CMvZB2X2zq','D29YA3nWywnLCW','zgvMyxvSDenVBMzPz3vYyxrPB24','C2vZC2LVBI5Yzw5HBwu','CMvHze1HBMfNzwrsDw5UzxjuAxrSzq','BgvUz3rO','zNvSBc1Hy2nLC3m','BwfYqwDLBNq','BwfW','DhvYBKLK','C3vWCg9YDgvKrwzMB3j0CW','y3vYC29Y','C3vJy2vZCW','y2f0y2G','nteZmdGYt3jStvDn','CMvHzenVBNrLEhrvC2fNzq','muvLAhD6yW','B24TCMvXDwvZDa'];_0xa36f=function(){return _0x2708aa;};return _0xa36f();}function firstSequenceForTurn(_0x201378,_0x4c4857){const _0x2272f4=_0x32d66f;return _0x201378[_0x2272f4(0x1ec)](_0x5cf3a9=>_0x5cf3a9[_0x2272f4(0x21d)]===_0x2272f4(0x1c1)?_0x5cf3a9[_0x2272f4(0x1d2)]===_0x4c4857:_0x5cf3a9[_0x2272f4(0x20b)][_0x2272f4(0x1d2)]===_0x4c4857)?.[_0x2272f4(0x236)];}function isModelSummary(_0x5c3fb3){const _0x119a4f=_0x32d66f;return marAgentModelSummarySchema[_0x119a4f(0x1fb)](_0x5c3fb3)[_0x119a4f(0x1d5)];}
2
+ const _0x29ffbf=_0xac70;(function(_0xf7df21,_0x3de06b){const _0xfc5e7c=_0xac70,_0x4bdc4a=_0xf7df21();while(!![]){try{const _0x2d1c92=parseInt(_0xfc5e7c(0x1fb))/(0x162*0x9+0x621+-0x1292)*(parseInt(_0xfc5e7c(0x252))/(0x202d+0x7f*0xe+0x20f*-0x13))+parseInt(_0xfc5e7c(0x22d))/(0x2416+0x2e3*-0x2+-0x1e4d)+parseInt(_0xfc5e7c(0x242))/(0x1bba+0x507+-0x1*0x20bd)*(-parseInt(_0xfc5e7c(0x262))/(0xa68+-0x68*-0x59+-0x5*0x94f))+-parseInt(_0xfc5e7c(0x23d))/(-0xe81*-0x1+0x1*-0xc61+-0x21a)*(-parseInt(_0xfc5e7c(0x1fa))/(-0x11ce+0x17b0+-0x5db))+-parseInt(_0xfc5e7c(0x233))/(-0x77f*-0x1+0xc8*-0x21+0x1251)+parseInt(_0xfc5e7c(0x22f))/(-0x147b+0x352*-0xa+0x35b8)+-parseInt(_0xfc5e7c(0x232))/(-0x6*0x4c8+0x949+0x1371);if(_0x2d1c92===_0x3de06b)break;else _0x4bdc4a['push'](_0x4bdc4a['shift']());}catch(_0x1b8f0d){_0x4bdc4a['push'](_0x4bdc4a['shift']());}}}(_0x5596,0xb*-0xe6e3+-0x47a55+-0x18a208*-0x1));function _0xac70(_0x156b38,_0x480b07){_0x156b38=_0x156b38-(-0x3bf*0x4+0xb15*-0x1+-0x1*-0x1bf1);const _0x5baa22=_0x5596();let _0x191389=_0x5baa22[_0x156b38];if(_0xac70['AZFihU']===undefined){var _0x128c63=function(_0x2a10ff){const _0x4deb11='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1c571b='',_0x59c2fc='';for(let _0x286159=0x1498+0x17e5+-0x2c7d,_0x2eeac6,_0x174352,_0x48c54e=0x2331+-0x1*-0x1393+-0xdb1*0x4;_0x174352=_0x2a10ff['charAt'](_0x48c54e++);~_0x174352&&(_0x2eeac6=_0x286159%(0x8*-0x28c+0x27*-0xeb+0x3831)?_0x2eeac6*(0x798+0x2626*0x1+-0x2d7e)+_0x174352:_0x174352,_0x286159++%(-0x1*0x287+-0x56*0x4f+0x5*0x5d1))?_0x1c571b+=String['fromCharCode'](-0x996+-0x136f+0x1e04&_0x2eeac6>>(-(0xa40+-0x1822+0xe*0xfe)*_0x286159&-0x1a5*-0x15+-0x35+-0x224e*0x1)):-0x1990+0x22ab+0x14d*-0x7){_0x174352=_0x4deb11['indexOf'](_0x174352);}for(let _0x2e49ce=0x1*0xc11+0x3c*-0x93+-0x209*-0xb,_0x250f0f=_0x1c571b['length'];_0x2e49ce<_0x250f0f;_0x2e49ce++){_0x59c2fc+='%'+('00'+_0x1c571b['charCodeAt'](_0x2e49ce)['toString'](0x124c+-0x1f3f+-0xd03*-0x1))['slice'](-(-0x4d*0x3c+0x2*0xb93+-0x518*0x1));}return decodeURIComponent(_0x59c2fc);};_0xac70['euBWar']=_0x128c63,_0xac70['DBzgqT']={},_0xac70['AZFihU']=!![];}const _0x92ce2a=_0x5baa22[-0x1a*-0xf8+0x1*-0x17f0+-0x1*0x140];_0xac70['Kzlhvg']!==_0x92ce2a&&(_0xac70['DBzgqT']={},_0xac70['Kzlhvg']=_0x92ce2a);const _0x4ca5ec=_0xac70['DBzgqT'][_0x156b38];return _0x4ca5ec===undefined?(_0x191389=_0xac70['euBWar'](_0x191389),_0xac70['DBzgqT'][_0x156b38]=_0x191389):_0x191389=_0x4ca5ec,_0x191389;}import{marAgentModelSummarySchema}from'@myagentroam/protocol';import{openMarAgentSessionCatalog}from'@myagentroam/agent';import{homedir}from'node:os';import{resolve}from'node:path';import{AbstractRunner}from'./abstract-runner.js';import{projectMarAgentHistory}from'./mar-agent/history-projection.js';export class MarAgentRunner extends AbstractRunner{[_0x29ffbf(0x1f0)];[_0x29ffbf(0x1f2)]=_0x29ffbf(0x212);[_0x29ffbf(0x223)]=_0x29ffbf(0x1e1);#models=[];#releaseSessionResources;constructor(_0x2019c5=homedir()){const _0x2924f1=_0x29ffbf;super(),this[_0x2924f1(0x1f0)]=_0x2019c5;}[_0x29ffbf(0x20b)](_0x1332dd){const _0x46c068=_0x29ffbf;this.#models=Array[_0x46c068(0x23b)](_0x1332dd)?_0x1332dd[_0x46c068(0x21c)](isModelSummary):[];}[_0x29ffbf(0x256)](_0x572111){this.#releaseSessionResources=_0x572111;}[_0x29ffbf(0x231)](_0x432e6c){const _0x3f24a6=_0x29ffbf;if(!this[_0x3f24a6(0x1ff)](_0x432e6c))return undefined;return this[_0x3f24a6(0x1eb)]();}[_0x29ffbf(0x1ff)](_0x59d64b){const _0x8498d9=_0x29ffbf;return _0x59d64b[_0x8498d9(0x21e)]?.[_0x8498d9(0x1ff)]===!![];}[_0x29ffbf(0x1eb)](){const _0x1634cf=_0x29ffbf,_0x2f6fc8=this.#models[_0x1634cf(0x21c)](_0x363158=>_0x363158[_0x1634cf(0x234)]);return{'runner':_0x1634cf(0x212),'models':_0x2f6fc8[_0x1634cf(0x1ea)]((_0x1375fc,_0x14101b)=>({'id':_0x1375fc['id'],'label':_0x1375fc[_0x1634cf(0x1f2)],'supportedEfforts':[..._0x1375fc[_0x1634cf(0x24b)]],..._0x14101b===-0x2024+0x10f*-0xc+0x2cd8?{'isDefault':!![]}:{}})),'accessOptions':[{'id':_0x1634cf(0x221),'label':_0x1634cf(0x1ef),'description':_0x1634cf(0x243)},{'id':_0x1634cf(0x264),'label':_0x1634cf(0x24a),'description':_0x1634cf(0x239)}],'commands':[...[_0x1634cf(0x205),_0x1634cf(0x22c)][_0x1634cf(0x1ea)](_0x4ebfd5=>({'id':_0x4ebfd5,'runner':_0x1634cf(0x212),'label':'/'+_0x4ebfd5,'description':_0x4ebfd5===_0x1634cf(0x205)?_0x1634cf(0x1e2):_0x1634cf(0x209),'inputHint':'/'+_0x4ebfd5,'source':_0x1634cf(0x1f7),'interaction':_0x4ebfd5===_0x1634cf(0x22c)?_0x1634cf(0x214):_0x1634cf(0x213),'available':!![],'reasonCode':null})),{'id':_0x1634cf(0x246),'runner':_0x1634cf(0x212),'label':_0x1634cf(0x257),'stateLabel':_0x1634cf(0x1e3),'description':_0x1634cf(0x202),'inputHint':_0x1634cf(0x257),'source':_0x1634cf(0x1f7),'interaction':_0x1634cf(0x214),'available':!![],'reasonCode':null}],'capabilities':[_0x1634cf(0x21d),_0x1634cf(0x20d),_0x1634cf(0x1fc),_0x1634cf(0x208),_0x1634cf(0x22c),_0x1634cf(0x205),_0x1634cf(0x1f8),_0x1634cf(0x25d)]};}[_0x29ffbf(0x225)](_0x96d022){const _0x284d26=_0x29ffbf;if(_0x96d022[_0x284d26(0x20e)]!==this[_0x284d26(0x1f2)])return![];const _0x107d9c=this[_0x284d26(0x1eb)](),_0x5a00e8=_0x107d9c[_0x284d26(0x219)][_0x284d26(0x253)](_0x2c166e=>_0x2c166e['id']===_0x96d022[_0x284d26(0x207)]);return _0x5a00e8!==undefined&&(_0x5a00e8[_0x284d26(0x259)][_0x284d26(0x1e4)]===-0x982*-0x2+-0x362+-0xfa2?_0x96d022[_0x284d26(0x228)]==='':_0x5a00e8[_0x284d26(0x259)][_0x284d26(0x1f1)](_0x96d022[_0x284d26(0x228)]))&&_0x107d9c[_0x284d26(0x24e)][_0x284d26(0x201)](_0xb5c1f2=>_0xb5c1f2['id']===_0x96d022[_0x284d26(0x22a)]);}[_0x29ffbf(0x240)](){const _0x527281=_0x29ffbf,_0x4b4366=this[_0x527281(0x1eb)](),_0x56d89f=_0x4b4366[_0x527281(0x219)][0xd*0x1c4+0xa69+0x215d*-0x1];return{'runner':_0x527281(0x212),'model':_0x56d89f?.['id']??'','effort':_0x56d89f?.[_0x527281(0x259)][-0x14*0x1cd+0x232c+0xd8]??'','access':_0x527281(0x221)};}[_0x29ffbf(0x1e6)](_0x3e6a36,_0x5a31c1,_0x334126){const _0xa69964=_0x29ffbf;if(!this[_0xa69964(0x1ff)](_0x5a31c1))return{'activity':_0xa69964(0x1f4),'control':{'level':_0xa69964(0x1f4),'capabilities':[]},'runtime':{'level':_0xa69964(0x1f4),'capabilities':[],'reasonCode':_0xa69964(0x249)},'commandStates':_0x334126[_0xa69964(0x25a)]};const _0x30bd82=_0x3e6a36[_0xa69964(0x251)]===_0xa69964(0x25f),_0x51a7c7=_0x334126[_0xa69964(0x261)]?_0xa69964(0x210):_0xa69964(0x230),_0x4366a9=[_0xa69964(0x1f3),_0xa69964(0x204),_0xa69964(0x21d),_0xa69964(0x23a),_0xa69964(0x1fe),_0xa69964(0x25b),_0xa69964(0x226),_0xa69964(0x21f),_0xa69964(0x1e5),_0xa69964(0x200),_0xa69964(0x222)];return{'activity':_0x51a7c7,'control':{'level':_0x30bd82?_0xa69964(0x203):_0xa69964(0x1e7),'capabilities':[_0xa69964(0x1f3),_0xa69964(0x204),_0xa69964(0x21d),_0xa69964(0x1fe)]},'runtime':{'level':_0x30bd82?_0xa69964(0x203):_0xa69964(0x1e7),'capabilities':_0x4366a9,'reasonCode':null},'commandStates':_0x334126[_0xa69964(0x25a)]};}[_0x29ffbf(0x216)](_0x4a97eb,_0x136d25){const _0x580c69=_0x29ffbf;if(_0x4a97eb[_0x580c69(0x20e)]!==this[_0x580c69(0x1f2)]||_0x4a97eb[_0x580c69(0x1ee)]===null||!_0x136d25[_0x580c69(0x1ff)])return Promise[_0x580c69(0x20f)]({'failureCode':_0x580c69(0x249)});const _0x460513=_0x136d25[_0x580c69(0x254)](_0x4a97eb['id']);if(_0x460513)return Promise[_0x580c69(0x20f)]({'session':_0x136d25[_0x580c69(0x20c)](_0x460513),'activity':_0x580c69(0x230)});const _0x98d746=_0x136d25[_0x580c69(0x238)](_0x4a97eb),_0xf89969=_0x98d746?_0x136d25[_0x580c69(0x248)](_0x98d746['id']):_0x136d25[_0x580c69(0x224)](_0x4a97eb);if(!_0xf89969)return Promise[_0x580c69(0x20f)]({'failureCode':_0x580c69(0x263)});return _0x136d25[_0x580c69(0x1e0)](_0x4a97eb[_0x580c69(0x1ee)],_0xf89969['id']),Promise[_0x580c69(0x20f)]({'session':_0x136d25[_0x580c69(0x20c)](_0xf89969),'activity':_0x580c69(0x230)});}async[_0x29ffbf(0x23c)](_0x254a4c,_0x442c31){const _0x2bdcba=_0x29ffbf;let _0xacfdfa;try{_0xacfdfa=await openMarAgentSessionCatalog({'homeDirectory':this[_0x2bdcba(0x1f0)]});const _0x19a988=await _0xacfdfa[_0x2bdcba(0x258)]({'limit':0xc8}),_0x4bf086=_0x442c31?[_0x442c31]:_0x254a4c[_0x2bdcba(0x23f)];return _0x19a988[_0x2bdcba(0x24c)][_0x2bdcba(0x1f6)](_0x549d67=>{const _0x42a42c=_0x2bdcba,_0x16a4fa=_0x4bf086[_0x42a42c(0x253)](_0x398a5d=>resolve(_0x398a5d[_0x42a42c(0x247)])===resolve(_0x549d67[_0x42a42c(0x206)]));if(!_0x16a4fa)return[];return[_0x254a4c[_0x42a42c(0x217)]({'workspace':_0x16a4fa,'runner':this[_0x42a42c(0x1f2)],'externalSessionId':_0x549d67['id'],'cwd':_0x549d67[_0x42a42c(0x206)],'title':_0x549d67[_0x42a42c(0x244)],'titleOrigin':_0x42a42c(0x260),'lastActivityAt':Date[_0x42a42c(0x250)](_0x549d67[_0x42a42c(0x1e9)])})];});}catch{return[];}finally{await _0xacfdfa?.[_0x2bdcba(0x21a)]()[_0x2bdcba(0x245)](()=>undefined);}}async[_0x29ffbf(0x22e)](_0x46d8db,_0x4921b1){const _0x4e69ca=_0x29ffbf;if(_0x46d8db[_0x4e69ca(0x20e)]!==this[_0x4e69ca(0x1f2)]||_0x46d8db[_0x4e69ca(0x1ee)]!==_0x4921b1)return![];await this.#releaseSessionResources?.(_0x4921b1);const _0x1497f6=await openMarAgentSessionCatalog({'homeDirectory':this[_0x4e69ca(0x1f0)]});try{return await _0x1497f6[_0x4e69ca(0x1ed)](_0x4921b1),!![];}finally{await _0x1497f6[_0x4e69ca(0x21a)]()[_0x4e69ca(0x245)](()=>undefined);}}async[_0x29ffbf(0x22b)](_0x4e6df7,_0x127926){const _0x5e454b=_0x29ffbf;if(_0x4e6df7[_0x5e454b(0x20e)]!==this[_0x5e454b(0x1f2)]||_0x4e6df7[_0x5e454b(0x1ee)]!==_0x127926)return undefined;const _0x5a8510=await openMarAgentSessionCatalog({'homeDirectory':this[_0x5e454b(0x1f0)]});try{let _0x20428b;do{const _0x38ae9b=await _0x5a8510[_0x5e454b(0x258)]({'limit':0xc8,..._0x20428b?{'cursor':_0x20428b}:{}}),_0x312913=_0x38ae9b[_0x5e454b(0x24c)][_0x5e454b(0x253)](_0x526c1f=>_0x526c1f['id']===_0x127926)?.[_0x5e454b(0x244)];if(_0x312913!==undefined)return _0x312913;_0x20428b=_0x38ae9b[_0x5e454b(0x237)];}while(_0x20428b!==undefined);return undefined;}finally{await _0x5a8510[_0x5e454b(0x21a)]()[_0x5e454b(0x245)](()=>undefined);}}async[_0x29ffbf(0x1fd)](_0x2caeb7,_0x156b38){const _0x35755b=_0x29ffbf;if(_0x2caeb7[_0x35755b(0x1ee)]===null)return undefined;const _0x480b07=await openMarAgentSessionCatalog({'homeDirectory':this[_0x35755b(0x1f0)]});try{const _0x5baa22=_0x156b38[_0x35755b(0x220)]??-0x3d1*-0x4+0x26*-0x7a+0x2e2;let _0x191389=_0x156b38[_0x35755b(0x229)],_0x128c63,_0x92ce2a=[],_0x4ca5ec=[];do{const _0x2a10ff=await _0x480b07[_0x35755b(0x1f5)](_0x2caeb7[_0x35755b(0x1ee)],{..._0x191389===undefined?{}:{'cursor':_0x191389},'limit':0x3e8});_0x92ce2a=[..._0x2a10ff[_0x35755b(0x215)],..._0x92ce2a],_0x128c63=_0x2a10ff[_0x35755b(0x237)],_0x4ca5ec=projectMarAgentHistory(_0x2caeb7,_0x92ce2a),_0x191389=_0x128c63;}while(_0x4ca5ec[_0x35755b(0x1e4)]<=_0x5baa22&&_0x128c63!==undefined);if(_0x4ca5ec[_0x35755b(0x1e4)]>_0x5baa22){const _0x4deb11=_0x4ca5ec[_0x35755b(0x24f)](-_0x5baa22),_0x1c571b=firstSequenceForTurn(_0x92ce2a,_0x4deb11[-0x136f+-0x1dae+-0x17d*-0x21]['id']);return{'turns':_0x4deb11,'nextCursor':_0x1c571b===undefined?_0x128c63??null:String(_0x1c571b)};}return{'turns':_0x4ca5ec,'nextCursor':_0x128c63??null};}catch{return undefined;}finally{await _0x480b07[_0x35755b(0x21a)]()[_0x35755b(0x245)](()=>undefined);}}async[_0x29ffbf(0x255)](_0x59c2fc){const _0x4fcdb2=_0x29ffbf,_0x286159=await _0x59c2fc[_0x4fcdb2(0x25c)]();return _0x286159===undefined?undefined:{..._0x286159,'source':_0x4fcdb2(0x236)};}async[_0x29ffbf(0x218)](_0x2eeac6){const _0x4128a1=_0x29ffbf;if(_0x2eeac6[_0x4128a1(0x1ee)]===null||_0x2eeac6[_0x4128a1(0x207)]===null)return undefined;const _0x174352=this.#models[_0x4128a1(0x253)](_0x2e49ce=>_0x2e49ce['id']===_0x2eeac6[_0x4128a1(0x207)]);if(_0x174352===undefined)return undefined;let _0x48c54e;try{_0x48c54e=await openMarAgentSessionCatalog({'homeDirectory':this[_0x4128a1(0x1f0)]});const _0x250f0f=await _0x48c54e[_0x4128a1(0x20a)](_0x2eeac6[_0x4128a1(0x1ee)]);return _0x250f0f===undefined?undefined:{'model':_0x174352[_0x4128a1(0x241)],'usedTokens':_0x250f0f[_0x4128a1(0x21b)],'maxTokens':_0x174352[_0x4128a1(0x25e)]};}catch{return undefined;}finally{await _0x48c54e?.[_0x4128a1(0x21a)]()[_0x4128a1(0x245)](()=>undefined);}}[_0x29ffbf(0x211)](){}}function firstSequenceForTurn(_0x352740,_0x577412){const _0x6bfef8=_0x29ffbf;return _0x352740[_0x6bfef8(0x253)](_0x277c1c=>_0x277c1c[_0x6bfef8(0x235)]===_0x6bfef8(0x24d)?_0x277c1c[_0x6bfef8(0x1f9)]===_0x577412:_0x277c1c[_0x6bfef8(0x1ec)][_0x6bfef8(0x1f9)]===_0x577412)?.[_0x6bfef8(0x1e8)];}function isModelSummary(_0x49e3e9){const _0x6b0b11=_0x29ffbf;return marAgentModelSummarySchema[_0x6b0b11(0x23e)](_0x49e3e9)[_0x6b0b11(0x227)];}function _0x5596(){const _0x2b8df3=['y29UDMvYC2f0Aw9U','CNvUBMvY','CMvZB2X2zq','tufoquDfrf9bq1rjvKu','C3rVCa','BwfYlwfNzw50','su1nrurjqvrfx0fdveLptG','ve9hr0Xf','zw50CMLLCW','CMvZDw1LrxH0zxjUywW','y3jLyxrLuhjVAMvJDgLVBG','CMvHzenVBNrLEhrvC2fNzq','Bw9KzwXZ','y2XVC2u','Aw5WDxruB2TLBNm','zMLSDgvY','DhvYBI5ZDgfYDa','BwfYqwDLBNq','DxnLCI1PBNb1Dc5YzxnWB25K','BgLTAxq','B24TCMvXDwvZDa','C2vZC2LVBI5WAw4','zgLZy292zxj5u2nVCgu','y3jLyxrL','C3vWCg9YDhndB25MAwD1CMf0Aw9U','yxbWCM92ywWUCMvZCg9Uza','C3vJy2vZCW','zwzMB3j0','y3vYC29Y','ywnJzxnZ','CMvHze1HBMfNzwrsDw5UzxjuAxrSzq','CgXHBG','mZKZmdmXnxvru3zOyG','CMvTB3zLtMf0AxzL','mta1mJuXndbfzNLoAwm','surmrq','ChjVzMLSzq','mJi5nda0nZbjC0HLBg8','nda1otaZmNveAKjTvW','zw5HyMXLza','A2LUza','BMf0AxzL','BMv4Den1CNnVCG','ChjVAMvJDgLVBKzVCG','u2TPCcbbz2vUDcbHChbYB3zHBhmUieHVC3qGDMfSAwrHDgLVBIbYzw1HAw5ZigfJDgL2zsbHBMqGBM8GqwDLBNqGC2fUzgjVEcbPCYbWCM92AwrLzc4','DhvYBI5XDwv1zq','AxnbCNjHEq','zgLZy292zxjtzxnZAw9UCW','odK5ndu0r3Lftvzi','C2fMzvbHCNnL','D29YA3nWywnLCW','zgvMyxvSDenVBMzPz3vYyxrPB24','Bw9KzwXjza','ndG4nJKYA3fzBKX2','qxnRigjLzM9Yzsb0B29SCYb3AxrOihnPzguGzwzMzwn0CY4GvgHPCYbPCYbUB3qGyw4GB3bLCMf0Aw5Nlxn5C3rLBsbZyw5KyM94lG','DgL0Bgu','y2f0y2G','BwLZC2LVBG','Cgf0Aa','ChjVBw90zq','uLvotKvsx1voqvzbsuXbqKXf','rNvSBcbHy2nLC3m','CMvHC29UAw5NrwzMB3j0CW','C2vZC2LVBNm','DxnLCG','ywnJzxnZt3b0Aw9UCW','C2XPy2u','CgfYC2u','BMf0AxzLq29UDhjVBa','mLn4sxP0rq','zMLUza','y3vYCMvUDfjLC3vTzwq','CMvHzenVBNzLCNnHDgLVBKHPC3rVCNK','C2v0u2vZC2LVBLjLC291CMnLuMvSzwfZzxi','l21PC3nPB24','BgLZDa','C3vWCg9YDgvKrwzMB3j0CW','y29TBwfUzfn0yxrLCW','CNvUlMnHBMnLBa','B2zMAwnPywW','C3vIywDLBNq','y29UDgv4DfDPBMrVD1rVA2vUCW','tufsx01btKfhruq','tKfusvzf','BwfUywDLzefJDgL2zq','mZbOyuXSzwO','uLvotKvsx1jfu1vnrv9gquLmruq','zNvSBc1Hy2nLC3m','CMvTzw1Izxjnyw5Hz2vKtMf0AxzL','quXmx1DpuKTtuefdrvm','q29TCgfJDcb0AguGy3vYCMvUDcbZzxnZAw9UignVBNrLEhqU','twLZC2LVBG','BgvUz3rO','C2vZC2LVBI5Yzw5HBwu','ChjLC2vUDfnLC3nPB24','uKvtvu1bqKXf','C2vXDwvUy2u','BgfZDefJDgL2Axr5qxq','BwfW','ChjVzMLSzuzVCLzHBgLKyxrPB24','zxzLBNq','zgvSzxrL','zxH0zxjUywXtzxnZAw9Uswq','t24TCMvXDwvZDa','Ag9TzurPCMvJDg9YEq','Aw5JBhvKzxm','BMfTzq','AgLZDg9YEs5YzwfK','vu5bvKfjtefcteu','AgLZDg9YEq','zMXHDe1HCa','tufsx1jvtLrjtuu','BwnW','DhvYBKLK','mJfmC1LnshG','mti3ntG3oe1HzKr4wq','yxbWCM92ywW','CMvHze9MzMLJAwfSq29UDMvYC2f0Aw9U','DhvYBI5PBNrLCNj1Chq','yxzHAwXHyMXL','C2vZC2LVBI5Yzw1VDMu','C29Tzq','rw50zxiGCgvYC2LZDgvUDcbnAxnZAw9Uig1VzguU','tufoquDfra','zxzLBNrZlMXPDMu','y29TCgfJDa','D29YA3nWywnL','Bw9KzwW','DxnLCI1PBNb1Da','vg9Nz2XLignVBgXHyM9YyxrPDMuGugXHBIbnB2rLlG','y29UDgv4DfvZywDL','y29UzMLNDxjLtw9KzwXZ','zw5ZDxjLq29UzMLNDxjHDgLVBG'];_0x5596=function(){return _0x2b8df3;};return _0x5596();}
@@ -1,2 +1,2 @@
1
1
  /* mar-release-protected */
2
- (function(_0x2ef04a,_0x429dac){const _0x4c6ef3=_0x245f,_0x538e3d=_0x2ef04a();while(!![]){try{const _0x35616d=parseInt(_0x4c6ef3(0x157))/(0x2ac*0x3+-0x7*0x123+-0xe)+-parseInt(_0x4c6ef3(0x16b))/(0x223d+0x1fb4+0x41ef*-0x1)+parseInt(_0x4c6ef3(0x160))/(0x1*0x12aa+0x2267*-0x1+0xfc0)*(-parseInt(_0x4c6ef3(0x15e))/(0x13be+-0x1a05*-0x1+-0x2dbf))+-parseInt(_0x4c6ef3(0x163))/(-0x2533+0xe*0x2e+0x4*0x8ad)*(-parseInt(_0x4c6ef3(0x15b))/(-0x3*0xa21+0x5*0x19e+0x1653))+parseInt(_0x4c6ef3(0x177))/(0x1536+-0xd01+-0x82e*0x1)+parseInt(_0x4c6ef3(0x175))/(-0x5*0x271+0x6b*-0x33+0x6b6*0x5)*(parseInt(_0x4c6ef3(0x169))/(0x24d7+0x1dd2+-0x10*0x42a))+-parseInt(_0x4c6ef3(0x168))/(0xe35*-0x1+-0x1b95+0x29d4);if(_0x35616d===_0x429dac)break;else _0x538e3d['push'](_0x538e3d['shift']());}catch(_0x332a24){_0x538e3d['push'](_0x538e3d['shift']());}}}(_0x2a4d,0xb81*0x27+0xfcab7+0x1*-0x96161));import{compactRunnerText,compactRunnerValue}from'../../util/node-operation-parsers.js';function _0x245f(_0x5cffb9,_0x5f28bd){_0x5cffb9=_0x5cffb9-(0x1fee+-0x187f+-0xd*0x78);const _0xafdfca=_0x2a4d();let _0x3d952a=_0xafdfca[_0x5cffb9];if(_0x245f['uatOcz']===undefined){var _0x4ba3ec=function(_0x38199a){const _0x39abfb='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x56d1a4='',_0x540061='';for(let _0x4126a5=-0x8*-0x386+-0xc9e+-0x2*0x7c9,_0x5d6dee,_0x49eaf0,_0x5d3297=-0xe45+0x106+0xd3f;_0x49eaf0=_0x38199a['charAt'](_0x5d3297++);~_0x49eaf0&&(_0x5d6dee=_0x4126a5%(-0x1f66+-0x18bf+0x3829*0x1)?_0x5d6dee*(0x27*0x20+-0x1*0x13eb+0xf4b)+_0x49eaf0:_0x49eaf0,_0x4126a5++%(-0x131a+0x2e9*0x9+0x1*-0x713))?_0x56d1a4+=String['fromCharCode'](0x4f*0x6c+-0x1*-0x1acf+-0x2*0x1d92&_0x5d6dee>>(-(0xaa9*0x1+0x1*0xc1d+-0x16c4)*_0x4126a5&0xb*-0x344+-0x1*-0x140b+0xfe7)):-0x1*-0x1672+-0x1*0x22db+0xc69){_0x49eaf0=_0x39abfb['indexOf'](_0x49eaf0);}for(let _0x226fbb=-0x62*-0x5d+0x12b9+0x3653*-0x1,_0x391cd2=_0x56d1a4['length'];_0x226fbb<_0x391cd2;_0x226fbb++){_0x540061+='%'+('00'+_0x56d1a4['charCodeAt'](_0x226fbb)['toString'](0x14d9+0x3*-0x35f+-0xaac))['slice'](-(0x23e7+0xda5+-0x2*0x18c5));}return decodeURIComponent(_0x540061);};_0x245f['dJYzAM']=_0x4ba3ec,_0x245f['mLtPwe']={},_0x245f['uatOcz']=!![];}const _0x503711=_0xafdfca[-0x121*0x1c+0x2439*-0x1+0x43d5];_0x245f['WQYayd']!==_0x503711&&(_0x245f['mLtPwe']={},_0x245f['WQYayd']=_0x503711);const _0x1bb397=_0x245f['mLtPwe'][_0x5cffb9];return _0x1bb397===undefined?(_0x3d952a=_0x245f['dJYzAM'](_0x3d952a),_0x245f['mLtPwe'][_0x5cffb9]=_0x3d952a):_0x3d952a=_0x1bb397,_0x3d952a;}export function normalizeOpenCodeTool(_0x38929f,_0x555669){const _0x2f57ad=_0x245f,_0x2afc6d=_0x555669?.[_0x2f57ad(0x16f)]===_0x2f57ad(0x16a)?_0x2f57ad(0x164):_0x555669?.[_0x2f57ad(0x16f)]===_0x2f57ad(0x15a)?_0x2f57ad(0x16e):_0x2f57ad(0x158),_0x20fa42=record(_0x555669?.[_0x2f57ad(0x171)]),_0x4b1572=_0x38929f[_0x2f57ad(0x16d)](),_0x5256c8=compactRunnerText(_0x38929f,-0xc47+0xa19+-0x31*-0xe)||_0x2f57ad(0x173);if(_0x4b1572===_0x2f57ad(0x170)||_0x4b1572===_0x2f57ad(0x161)||_0x4b1572===_0x2f57ad(0x176))return{'kind':_0x2f57ad(0x159),'payload':{'command':compactRunnerText(typeof _0x20fa42?.[_0x2f57ad(0x174)]===_0x2f57ad(0x15d)?_0x20fa42[_0x2f57ad(0x174)]:typeof _0x20fa42?.[_0x2f57ad(0x176)]===_0x2f57ad(0x15d)?_0x20fa42[_0x2f57ad(0x176)]:_0x5256c8,-0xa42+-0x4daf+0x7f01),'cwd':typeof _0x20fa42?.[_0x2f57ad(0x165)]===_0x2f57ad(0x15d)?compactRunnerText(_0x20fa42[_0x2f57ad(0x165)],0x1*-0x203c+0x16a0+0x95*0x2c):null,'outputPreview':typeof _0x555669?.[_0x2f57ad(0x15c)]===_0x2f57ad(0x15d)?compactRunnerText(_0x555669[_0x2f57ad(0x15c)],0x448d+-0x2394+-0x1*-0x617):'','outputRef':null,'exitCode':typeof _0x555669?.[_0x2f57ad(0x17a)]===_0x2f57ad(0x172)?_0x555669[_0x2f57ad(0x17a)]:null,'durationMs':null,'truncated':![]}};return{'kind':_0x2f57ad(0x178),'payload':{'namespace':_0x2f57ad(0x15f),'toolName':_0x5256c8,'title':compactRunnerText(typeof _0x555669?.[_0x2f57ad(0x179)]===_0x2f57ad(0x15d)?_0x555669[_0x2f57ad(0x179)]:_0x38929f,0x7*0x355+0xe96*0x2+0x39*-0xe3)||_0x5256c8,'inputSummary':compactRunnerValue(_0x555669?.[_0x2f57ad(0x171)],-0x1*-0xa34+0x6*-0x44d+0x36aa*0x1)[_0x2f57ad(0x162)]||null,'outputSummary':typeof _0x555669?.[_0x2f57ad(0x15c)]===_0x2f57ad(0x15d)?compactRunnerText(_0x555669[_0x2f57ad(0x15c)],0x3992+0xc32+0x1eb4*-0x1):null,'progressLabel':null,'errorCode':_0x2afc6d===_0x2f57ad(0x16e)?_0x2f57ad(0x166):null,'truncated':![]}};}function record(_0x4d77c2){const _0x16fcc2=_0x245f;return _0x4d77c2!==null&&typeof _0x4d77c2===_0x16fcc2(0x167)&&!Array[_0x16fcc2(0x16c)](_0x4d77c2)?_0x4d77c2:undefined;}function _0x2a4d(){const _0x30cdf0=['y29TBwfUzf9LEgvJDxrPB24','zxjYB3i','odm1otaYDLPWtMTm','B3v0Chv0','C3rYAw5N','odq0uNbfyLzu','B3bLBMnVzgu','mZGZn21zwMzJua','C2HLBgW','Dgv4Da','mZvJwu9zC0y','q09nueXfveve','y3DK','t1bftKnprevFve9ptf9gquLmruq','B2jQzwn0','mtqYnJyZntbwu2D5y3i','ntyWndnKv0TyteC','y29TCgXLDgvK','nZq1ndyWzwjlALvA','AxnbCNjHEq','Dg9mB3DLCKnHC2u','rKfjteve','C3rHDhvZ','yMfZAa','Aw5WDxq','BNvTyMvY','Dw5RBM93BG','y29TBwfUza','nZeYt1LSqKPo','y21K','mZu5mdi2nur6wff3Ba','Dg9VBf9JywXS','DgL0Bgu','zxHPDenVzgu','ntyXotu0weP6zeX2','su5Fufjpr1jfu1m'];_0x2a4d=function(){return _0x30cdf0;};return _0x2a4d();}
2
+ (function(_0x5874f4,_0x4e2d20){const _0x25aadb=_0x3861,_0x5ae719=_0x5874f4();while(!![]){try{const _0xbda897=parseInt(_0x25aadb(0xce))/(-0x1*-0x1255+-0x1*0xb8+-0xa1*0x1c)+-parseInt(_0x25aadb(0xe5))/(0x47*-0x34+0x1e3f+0xfd1*-0x1)*(-parseInt(_0x25aadb(0xe4))/(0x78a+0x3b*0x76+0xb93*-0x3))+parseInt(_0x25aadb(0xdd))/(0x78*-0x1f+0x1a6*-0xb+-0x5e*-0x59)+-parseInt(_0x25aadb(0xe0))/(0x27*-0xdf+-0xd*-0x10e+0x16*0xec)+parseInt(_0x25aadb(0xbe))/(0x133b*0x1+0x139*-0x7+-0xaa6)+parseInt(_0x25aadb(0xe1))/(-0xc6a+-0x814+0x67*0x33)*(parseInt(_0x25aadb(0xd2))/(-0xb0f*0x1+-0x2272+0x1*0x2d89))+-parseInt(_0x25aadb(0xca))/(0x1099+0x1*-0xd15+0x3*-0x129);if(_0xbda897===_0x4e2d20)break;else _0x5ae719['push'](_0x5ae719['shift']());}catch(_0x20a922){_0x5ae719['push'](_0x5ae719['shift']());}}}(_0x5054,-0xd740d+0x73bda+0x1159ce));import{compactRunnerText,compactRunnerValue}from'../../util/node-operation-parsers.js';export function normalizeOpenCodeTool(_0x281f07,_0x47b837){const _0x46187f=_0x3861,_0x488b88=_0x47b837?.[_0x46187f(0xcd)]===_0x46187f(0xbf)?_0x46187f(0xe3):_0x47b837?.[_0x46187f(0xcd)]===_0x46187f(0xc0)?_0x46187f(0xdf):_0x46187f(0xc1),_0x3353b0=record(_0x47b837?.[_0x46187f(0xd5)]),_0x59e2d5=_0x281f07[_0x46187f(0xc3)](),_0x35d623=compactRunnerText(_0x281f07,-0x1f*0xe2+0xde+-0x48*-0x60)||_0x46187f(0xcf),_0x120ed=openCodeSubagentProjection(_0x281f07,_0x47b837?.[_0x46187f(0xd5)],_0x47b837?.[_0x46187f(0xd9)]);if(_0x59e2d5===_0x46187f(0xc5)||_0x59e2d5===_0x46187f(0xd3)||_0x59e2d5===_0x46187f(0xde))return{'kind':_0x46187f(0xdc),'payload':{'command':compactRunnerText(typeof _0x3353b0?.[_0x46187f(0xe6)]===_0x46187f(0xd0)?_0x3353b0[_0x46187f(0xe6)]:typeof _0x3353b0?.[_0x46187f(0xde)]===_0x46187f(0xd0)?_0x3353b0[_0x46187f(0xde)]:_0x35d623,-0xde7*-0x1+0x4b*-0x86+0x406b),'cwd':typeof _0x3353b0?.[_0x46187f(0xe7)]===_0x46187f(0xd0)?compactRunnerText(_0x3353b0[_0x46187f(0xe7)],0x1c92+-0x6*0x11c+-0x5ea):null,'outputPreview':typeof _0x47b837?.[_0x46187f(0xd9)]===_0x46187f(0xd0)?compactRunnerText(_0x47b837[_0x46187f(0xd9)],-0x2d*-0x121+-0xcc0+0x103):'','outputRef':null,'exitCode':typeof _0x47b837?.[_0x46187f(0xcb)]===_0x46187f(0xc6)?_0x47b837[_0x46187f(0xcb)]:null,'durationMs':null,'truncated':![]}};return{'kind':_0x46187f(0xbd),'payload':{'namespace':_0x46187f(0xc2),'toolName':_0x35d623,'title':compactRunnerText(typeof _0x47b837?.[_0x46187f(0xc4)]===_0x46187f(0xd0)?_0x47b837[_0x46187f(0xc4)]:_0x281f07,0x234b+0x4*-0x7b9+-0x273)||_0x35d623,'inputSummary':compactRunnerValue(_0x47b837?.[_0x46187f(0xd5)],-0x3c05+0x4caf+-0x1*-0x1666)[_0x46187f(0xcc)]||null,'outputSummary':typeof _0x47b837?.[_0x46187f(0xd9)]===_0x46187f(0xd0)?compactRunnerText(_0x47b837[_0x46187f(0xd9)],-0x1*-0x1d59+-0x3df*-0xa+-0x23b*0xd):null,'progressLabel':null,'errorCode':_0x488b88===_0x46187f(0xdf)?_0x46187f(0xc7):null,'truncated':![],..._0x120ed}};}function record(_0x4de90b){const _0x5251d1=_0x3861;return _0x4de90b!==null&&typeof _0x4de90b===_0x5251d1(0xe2)&&!Array[_0x5251d1(0xd4)](_0x4de90b)?_0x4de90b:undefined;}function _0x5054(){const _0x210f71=['mJy0mJe2mhfrExDjAG','y21K','rKfjteve','mti4mZa3nvfntg92Aa','n1zXq2ffDG','B2jQzwn0','q09nueXfveve','owHyuwPJCG','mti1ntrqvLL5t1q','y29TBwfUza','y3DK','DgfZA0LK','u1rbuLq','Dg9VBf9JywXS','nJa5nta0vfjIBwvY','y29TCgXLDgvK','zxjYB3i','su5Fufjpr1jfu1m','B3bLBMnVzgu','Dg9mB3DLCKnHC2u','DgL0Bgu','yMfZAa','BNvTyMvY','t1bftKnprevFve9ptf9gquLmruq','DgfZA19Pza','CMvZDwX0','nJyWnda3ng51uM9hBW','zxHPDenVzgu','Dgv4Da','C3rHDhvZ','nJC2mZqXBurSvvbc','Dw5RBM93BG','C3rYAw5N','zxHLyW','mJeWmdGZmKjTBw1dCq','C2HLBgW','AxnbCNjHEq','Aw5WDxq','DhjPBq','DgfZAW','BgvUz3rO','B3v0Chv0','uKvtvu1f','zgvZy3jPChrPB24','y29TBwfUzf9LEgvJDxrPB24'];_0x5054=function(){return _0x210f71;};return _0x5054();}function _0x3861(_0x337dcc,_0x392251){_0x337dcc=_0x337dcc-(-0x2092+-0x175*0x11+0x3a14);const _0x699fb7=_0x5054();let _0x3026cb=_0x699fb7[_0x337dcc];if(_0x3861['NEHmmm']===undefined){var _0x34f9ec=function(_0x37c9c0){const _0x296e24='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2edb6c='',_0x5165fd='';for(let _0x41945c=-0x1431+-0x2063+0x3494,_0x82eb38,_0x3ec08e,_0x372a21=0xde+0x3+-0xf*0xf;_0x3ec08e=_0x37c9c0['charAt'](_0x372a21++);~_0x3ec08e&&(_0x82eb38=_0x41945c%(-0x251*-0x3+0x43*-0x4b+0xcb2)?_0x82eb38*(0x1c92+-0x6*0x11c+-0x15aa)+_0x3ec08e:_0x3ec08e,_0x41945c++%(-0x7*-0x3a1+-0x660+-0x1303))?_0x2edb6c+=String['fromCharCode'](0x234b+0x4*-0x7b9+-0x368&_0x82eb38>>(-(-0x1e03+0x2658+-0x1*0x853)*_0x41945c&-0x1*-0xeac+-0x3df*-0x5+-0x6cd*0x5)):-0x12d6+-0x853+0x199*0x11){_0x3ec08e=_0x296e24['indexOf'](_0x3ec08e);}for(let _0x555c59=0x332*0x6+0x8*0x421+-0x3434,_0xb09969=_0x2edb6c['length'];_0x555c59<_0xb09969;_0x555c59++){_0x5165fd+='%'+('00'+_0x2edb6c['charCodeAt'](_0x555c59)['toString'](0x1fe9+0x991+-0x296a))['slice'](-(-0xfbb*-0x1+-0x1f3+0x2b*-0x52));}return decodeURIComponent(_0x5165fd);};_0x3861['VuncKY']=_0x34f9ec,_0x3861['jiVUQo']={},_0x3861['NEHmmm']=!![];}const _0x323adf=_0x699fb7[0x16e3+0x19a3*-0x1+0x40*0xb];_0x3861['BPJUEZ']!==_0x323adf&&(_0x3861['jiVUQo']={},_0x3861['BPJUEZ']=_0x323adf);const _0x4bef7e=_0x3861['jiVUQo'][_0x337dcc];return _0x4bef7e===undefined?(_0x3026cb=_0x3861['VuncKY'](_0x3026cb),_0x3861['jiVUQo'][_0x337dcc]=_0x3026cb):_0x3026cb=_0x4bef7e,_0x3026cb;}function openCodeSubagentProjection(_0x3d5b33,_0x28d8e0,_0x3d4714){const _0x19bfee=_0x3861;if(_0x3d5b33[_0x19bfee(0xc3)]()!==_0x19bfee(0xd7))return undefined;const _0x59417b=record(_0x28d8e0),_0x3fd22d=boundedId(_0x59417b?.[_0x19bfee(0xc8)])??boundedId(_0x59417b?.[_0x19bfee(0xe8)]),_0x201e3e=openCodeTaskResult(_0x3d4714),_0x2348f6=typeof _0x59417b?.[_0x19bfee(0xdb)]===_0x19bfee(0xd0)?compactRunnerText(_0x59417b[_0x19bfee(0xdb)],-0x12d6+-0x853+0x101*0x1d):'';return{'subagentOperation':_0x3fd22d===undefined?_0x19bfee(0xe9):_0x19bfee(0xda),'subagentId':_0x3fd22d??_0x201e3e?.[_0x19bfee(0xe8)]??null,..._0x2348f6[_0x19bfee(0xd8)]===0x332*0x6+0x8*0x421+-0x3434?{}:{'title':_0x2348f6},..._0x201e3e===undefined?{}:{'outputSummary':compactRunnerText(_0x201e3e[_0x19bfee(0xc9)],0x3fd1+0x1322+-0x2be3)||null}};}function openCodeTaskResult(_0x29e1c7){const _0x4cf131=_0x3861;if(typeof _0x29e1c7!==_0x4cf131(0xd0))return undefined;const _0x3fb17f=/^<task\s+[^>]*\bid="([^"]+)"[^>]*>[\s\S]*?<task_result>([\s\S]*?)<\/task_result>[\s\S]*?<\/task>$/u[_0x4cf131(0xd1)](_0x29e1c7[_0x4cf131(0xd6)]()),_0x2e993a=boundedId(_0x3fb17f?.[-0xfbb*-0x1+-0x1f3+0x1*-0xdc7]);return _0x2e993a===undefined||_0x3fb17f?.[0x16e3+0x19a3*-0x1+0x161*0x2]===undefined?undefined:{'taskId':_0x2e993a,'result':_0x3fb17f[0x31e+0x1*-0x2426+0x1085*0x2][_0x4cf131(0xd6)]()};}function boundedId(_0x26923b){const _0x3d5f6a=_0x3861;if(typeof _0x26923b!==_0x3d5f6a(0xd0))return undefined;const _0x5dbdd9=_0x26923b[_0x3d5f6a(0xd6)]();return _0x5dbdd9[_0x3d5f6a(0xd8)]>0x6a3+-0x521*0x1+-0x182&&_0x5dbdd9[_0x3d5f6a(0xd8)]<=-0x278*-0x5+0xe*0x70+-0x28*0x73?_0x5dbdd9:undefined;}
@@ -1,2 +1,2 @@
1
1
  /* mar-release-protected */
2
- const _0x55e1c5=_0x5c0b;(function(_0x43eefa,_0x281fe2){const _0x47d27a=_0x5c0b,_0x55923d=_0x43eefa();while(!![]){try{const _0x43fc03=parseInt(_0x47d27a(0x206))/(-0x1f34*-0x1+-0x9ef*-0x1+-0xc3*0x36)+-parseInt(_0x47d27a(0x201))/(0x25a1+-0x5*0x33b+-0x4*0x55e)+parseInt(_0x47d27a(0x1f7))/(-0x11d0+0x11*0x130+0x1*-0x25d)+-parseInt(_0x47d27a(0x209))/(-0x2227+0x579+0x1cb2)*(parseInt(_0x47d27a(0x1e3))/(0x8*0xf3+-0xfd6*0x2+0x1f*0xc7))+parseInt(_0x47d27a(0x203))/(-0x1*0x107f+0x6d8+0x9ad)*(-parseInt(_0x47d27a(0x207))/(0x69c+0x1f*0x35+-0x4*0x340))+-parseInt(_0x47d27a(0x208))/(0x12f1+-0x8e8+0xd*-0xc5)*(-parseInt(_0x47d27a(0x210))/(-0x1c*0x51+0x1*0x155c+-0xc77))+parseInt(_0x47d27a(0x1ff))/(0x2b*0x11+-0x8bd+0x5ec);if(_0x43fc03===_0x281fe2)break;else _0x55923d['push'](_0x55923d['shift']());}catch(_0x369faf){_0x55923d['push'](_0x55923d['shift']());}}}(_0x291d,0x2c43b*-0x7+-0x1d326*0x2+0x20d00f));function _0x5c0b(_0x5680a8,_0x5ce954){_0x5680a8=_0x5680a8-(-0x109c+-0xa6a*0x3+0x1094*0x3);const _0x5461bb=_0x291d();let _0x36f591=_0x5461bb[_0x5680a8];if(_0x5c0b['dBvWrX']===undefined){var _0x15e2c1=function(_0x5d9810){const _0x3f87da='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4e3f41='',_0x55c657='';for(let _0x3bcfd6=-0x15*0xc1+-0x16ee+0x1*0x26c3,_0x3fccae,_0x44a726,_0x56ffcf=0x1*-0x1663+-0x1bc3+0x3226;_0x44a726=_0x5d9810['charAt'](_0x56ffcf++);~_0x44a726&&(_0x3fccae=_0x3bcfd6%(0xe17+-0x1b2b+0x2*0x68c)?_0x3fccae*(-0x1*-0xc7d+-0xd02+-0xc5*-0x1)+_0x44a726:_0x44a726,_0x3bcfd6++%(-0x1*0x11b2+0x7d5*-0x3+-0x2935*-0x1))?_0x4e3f41+=String['fromCharCode'](-0xc7c+-0x2666+0x33e1*0x1&_0x3fccae>>(-(0x12f2+-0x1*-0x1ad5+-0x1*0x2dc5)*_0x3bcfd6&-0x1*-0x1c1b+0x1cd4+-0x1*0x38e9)):0x2f*-0x2f+0x26e+0x633*0x1){_0x44a726=_0x3f87da['indexOf'](_0x44a726);}for(let _0x124901=-0x19f*-0x13+-0x11cb+-0xd02,_0x31cafd=_0x4e3f41['length'];_0x124901<_0x31cafd;_0x124901++){_0x55c657+='%'+('00'+_0x4e3f41['charCodeAt'](_0x124901)['toString'](0x1*0x1005+-0xff5+0x0))['slice'](-(0x16*0x79+-0x2bc*0x6+0x604));}return decodeURIComponent(_0x55c657);};_0x5c0b['VWLnnE']=_0x15e2c1,_0x5c0b['WTcGtd']={},_0x5c0b['dBvWrX']=!![];}const _0x4eef0d=_0x5461bb[-0x1963+-0x727+0x208a];_0x5c0b['nYUtFH']!==_0x4eef0d&&(_0x5c0b['WTcGtd']={},_0x5c0b['nYUtFH']=_0x4eef0d);const _0xaa6280=_0x5c0b['WTcGtd'][_0x5680a8];return _0xaa6280===undefined?(_0x36f591=_0x5c0b['VWLnnE'](_0x36f591),_0x5c0b['WTcGtd'][_0x5680a8]=_0x36f591):_0x36f591=_0xaa6280,_0x36f591;}import{inspectWorkspace}from'../workspace.js';export class NodeWorkspaceCoordinator{[_0x55e1c5(0x1fc)];constructor(_0x1900ec){const _0x201019=_0x55e1c5;this[_0x201019(0x1fc)]=_0x1900ec;}[_0x55e1c5(0x1ea)](_0x567cdf){const _0x5a6909=_0x55e1c5;if(typeof _0x567cdf!==_0x5a6909(0x1e7))throw new Error(_0x5a6909(0x20d));const _0x3f52b0=this[_0x5a6909(0x1fc)][_0x5a6909(0x1f5)]()?.[_0x5a6909(0x1f1)](_0x567cdf);if(_0x3f52b0===undefined)throw new Error(_0x5a6909(0x20d));return _0x3f52b0;}[_0x55e1c5(0x1f6)](_0x3ca54f){const _0x3d6029=_0x55e1c5;this[_0x3d6029(0x1fc)][_0x3d6029(0x1f9)][_0x3d6029(0x20c)](_0x3ca54f);}[_0x55e1c5(0x1f4)](_0x145ceb){const _0x34744f=_0x55e1c5;return this[_0x34744f(0x1fc)][_0x34744f(0x1ee)][_0x34744f(0x1ec)](_0x145ceb);}[_0x55e1c5(0x1fb)](_0xdcd858){const _0x3453b8=_0x55e1c5;this[_0x3453b8(0x1fc)][_0x3453b8(0x1e9)][_0x3453b8(0x1fb)](_0xdcd858);for(const _0x50badc of[_0x3453b8(0x1e4),_0x3453b8(0x1e9)]){if(!this[_0x3453b8(0x1fc)][_0x3453b8(0x1f9)][_0x3453b8(0x1fe)](_0xdcd858,_0x50badc))continue;this[_0x3453b8(0x1fc)][_0x3453b8(0x1fd)](_0xdcd858,_0x50badc);}}[_0x55e1c5(0x1ef)](_0x3b1b1e){const _0x61ad2c=_0x55e1c5;this[_0x61ad2c(0x1fc)][_0x61ad2c(0x1e9)][_0x61ad2c(0x1fb)](_0x3b1b1e);}[_0x55e1c5(0x20a)](_0x298ee3){const _0x5ba0a7=_0x55e1c5,_0x209a80=this[_0x5ba0a7(0x1fc)][_0x5ba0a7(0x1f5)]();if(_0x209a80===undefined)return;const _0x40e310={'id':_0x298ee3['id'],'workspaceId':_0x298ee3[_0x5ba0a7(0x1fa)],'profileId':_0x298ee3[_0x5ba0a7(0x204)],'state':_0x298ee3[_0x5ba0a7(0x1f2)],'exitCode':_0x298ee3[_0x5ba0a7(0x20b)],'rows':_0x298ee3[_0x5ba0a7(0x1e6)],'cols':_0x298ee3[_0x5ba0a7(0x1ed)],'latestSequence':_0x298ee3[_0x5ba0a7(0x1eb)],'createdAt':_0x298ee3[_0x5ba0a7(0x1f0)],'updatedAt':_0x298ee3[_0x5ba0a7(0x205)]};_0x209a80[_0x5ba0a7(0x1f3)](_0x40e310);}async[_0x55e1c5(0x20f)](_0xe8750a){const _0x4fa183=_0x55e1c5,_0x23148d=typeof _0xe8750a[_0x4fa183(0x202)]===_0x4fa183(0x1e8)&&_0xe8750a[_0x4fa183(0x202)]!==null&&_0x4fa183(0x200)in _0xe8750a[_0x4fa183(0x202)]?_0xe8750a[_0x4fa183(0x202)][_0x4fa183(0x200)]:undefined,_0x22e6bc=this[_0x4fa183(0x1fc)][_0x4fa183(0x1f8)]();if(typeof _0x23148d!==_0x4fa183(0x1e7)||_0x22e6bc===undefined){this[_0x4fa183(0x1fc)][_0x4fa183(0x20e)](_0x4fa183(0x211),{'error':_0x4fa183(0x1e2)},_0xe8750a['id']);return;}try{const _0x417299=await inspectWorkspace(_0x23148d,_0x22e6bc[_0x4fa183(0x1e5)]);this[_0x4fa183(0x1fc)][_0x4fa183(0x20e)](_0x4fa183(0x211),_0x417299,_0xe8750a['id']);}catch{this[_0x4fa183(0x1fc)][_0x4fa183(0x20e)](_0x4fa183(0x211),{'error':_0x4fa183(0x1e2)},_0xe8750a['id']);}}}function _0x291d(){const _0x53d30c=['oxLZvLLvra','D29YA3nWywnLlMLUC3bLy3qUCMvZDwX0','v09ss1nqqunfx0LovKfmsuq','mteXodm4nufAvw9cAq','zMLSzxm','ywXSB3DLzfjVB3rZ','CM93CW','C3rYAw5N','B2jQzwn0','y2HHBMDLCW','CMvXDwLYzq','Bgf0zxn0u2vXDwvUy2u','y2fJAgvK','y29SCW','C2vZC2LVBNm','Aw52ywXPzgf0zunOyw5Nzxm','y3jLyxrLzef0','z2v0v29YA3nWywnL','C3rHDgu','C2f2zvrLCM1PBMfSu2vZC2LVBG','y2fJAgvKu2vZC2LVBNm','zgf0ywjHC2u','y2XLyxjxyxrJAgvZ','mJi3mdyWnfnuvNvSuq','y29UzMLN','D2f0y2HLCW','D29YA3nWywnLswq','Aw52ywXPzgf0zq','B3b0Aw9UCW','zw1PDa','Dg9WAwnby3rPDMu','nJKWntm3mgfszLPjuq','Cgf0Aa','odu1mJe4uNDtEKP4','Cgf5Bg9Hza','mJq2nZKYCMrlCfjg','ChjVzMLSzuLK','DxbKyxrLzef0','ndeWnteXywjMsvLn','mty4BevhCfjl','mZm4mdK5mKXJy2P2Bq','nhL1qKnkDa','CgvYC2LZDfrLCM1PBMfS','zxHPDenVzgu','y2XLyxi','v09ss1nqqunfx05pvf9gt1vora','C2vUza','Aw5ZCgvJDa'];_0x291d=function(){return _0x53d30c;};return _0x291d();}
2
+ const _0x791a3c=_0x18e0;function _0x18e0(_0x23f0c3,_0x54a631){_0x23f0c3=_0x23f0c3-(-0x47*0x5c+-0x19a4*0x1+-0xc6*-0x43);const _0x532dc5=_0x30f8();let _0x3fb2d5=_0x532dc5[_0x23f0c3];if(_0x18e0['BuQdfU']===undefined){var _0x69f258=function(_0xea771f){const _0x68ef45='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2a3c69='',_0x4331f5='';for(let _0x424f6f=0x1029+0x1e01+0x137*-0x26,_0x3252d4,_0x47bd73,_0x20be68=-0x248d+-0x2516+-0x49a3*-0x1;_0x47bd73=_0xea771f['charAt'](_0x20be68++);~_0x47bd73&&(_0x3252d4=_0x424f6f%(-0xae*0x22+0xc9*-0x24+0x3364)?_0x3252d4*(-0x1ab*0x5+-0x217d+0x2a14)+_0x47bd73:_0x47bd73,_0x424f6f++%(0x21*-0x4+0x9f2*-0x2+-0xa36*-0x2))?_0x2a3c69+=String['fromCharCode'](-0x1*-0x19a1+-0x13*0x16f+0x29b&_0x3252d4>>(-(-0x1712*-0x1+0x1de9+-0x34f9)*_0x424f6f&-0x1213+0x74b*-0x5+0x3690)):-0x3*0xbfb+-0xf9+0x24ea){_0x47bd73=_0x68ef45['indexOf'](_0x47bd73);}for(let _0x4ba9b6=-0x77a*-0x3+-0x382+-0x12ec,_0x59792b=_0x2a3c69['length'];_0x4ba9b6<_0x59792b;_0x4ba9b6++){_0x4331f5+='%'+('00'+_0x2a3c69['charCodeAt'](_0x4ba9b6)['toString'](-0x1*0x1387+0x1ee7+-0xb50))['slice'](-(0x6*0xc5+0x1174+-0x10*0x161));}return decodeURIComponent(_0x4331f5);};_0x18e0['MAJCir']=_0x69f258,_0x18e0['iynbXa']={},_0x18e0['BuQdfU']=!![];}const _0x334849=_0x532dc5[-0x26f+-0xca1*0x1+0xf10];_0x18e0['UqlCYu']!==_0x334849&&(_0x18e0['iynbXa']={},_0x18e0['UqlCYu']=_0x334849);const _0x8201bd=_0x18e0['iynbXa'][_0x23f0c3];return _0x8201bd===undefined?(_0x3fb2d5=_0x18e0['MAJCir'](_0x3fb2d5),_0x18e0['iynbXa'][_0x23f0c3]=_0x3fb2d5):_0x3fb2d5=_0x8201bd,_0x3fb2d5;}function _0x30f8(){const _0x488d04=['zw1PDa','Aw52ywXPzgf0zunOyw5Nzxm','tK9erv9dt05gsuDFvu5bvKfjtefcteu','mtnqvMLUtum','mtG3ntC4neLKqMvOza','y29TBwL0twv0ywrHDge','mJa0mZi0m3HJs0joCG','otaZCM9UyM5i','Aw5ZCgvJDa','C3rYAw5N','y29SCW','C3rHDgu','DxbKyxrLzef0','nhD0BLvlCa','y3jLyxrLzef0','tK9erv9eqvrbqKftrv9vtKfwquLmqujmrq','v09ss1nqqunfx05pvf9gt1vora','mJfhywn0vvq','z2v0v29YA3nWywnL','C2f2zvDVCMTZCgfJzq','B3b0Aw9UCW','D29YA3nWywnLswq','Cgf5Bg9Hza','mJvIzKrmquW','mtq2mZe1mwX4t3Hzza','mteYndm0nNfhChLYEq','zgf0ywjHC2u','Aw52ywXPzgf0zq','y2HHBMDLCW','ChjVzMLSzuLK','D2f0y2HLCW','ywXSB3DLzfjVB3rZ','B2jQzwn0','mJa2ntmYmtjSuejdA1K','D29YA3nWywnLlMLUC3bLy3qUCMvZDwX0','Cgf0Aa','Aw5ZCgvJDe1LDgfKyxrH','z2L0u3vTBwfYEq','mJHsEgn6rNm','CMvXDwLYzq','CM93CW','odmYotCZmfbxAxzhsa','mtfHD3zHDe4','y29UzMLN','C2vZC2LVBNm','y2fJAgvK','C2vUza','A2LUza','v09ss1nqqunfx05pvf9bteXpv0ve','CgvYC2LZDfrLCM1PBMfS','y2XLyxi','y2fJAgvKu2vZC2LVBNm','y2XLyxjxyxrJAgvZ','zMLSzxm','v09ss1nqqunfx0LovKfmsuq','C2f2zvrLCM1PBMfSu2vZC2LVBG','Bgf0zxn0u2vXDwvUy2u','r0Lux1DpuKTtuefdrq','zxHPDenVzgu','Dg9WAwnby3rPDMu'];_0x30f8=function(){return _0x488d04;};return _0x30f8();}(function(_0x195c05,_0x2b3fcb){const _0x3b8eba=_0x18e0,_0x1d7e3a=_0x195c05();while(!![]){try{const _0x6eb47e=-parseInt(_0x3b8eba(0xbf))/(-0x1*0x18c3+-0x2ad*0x7+0x2b7f)*(parseInt(_0x3b8eba(0xde))/(0x15a9+-0x119f+0x18*-0x2b))+-parseInt(_0x3b8eba(0xd0))/(0x16f6+-0x109e*0x2+0xa49*0x1)*(parseInt(_0x3b8eba(0xc5))/(-0x1f0d*0x1+-0x263b+0x454c))+-parseInt(_0x3b8eba(0xcf))/(-0x57*-0x5a+-0x2318+0x487)*(-parseInt(_0x3b8eba(0xd1))/(0x1bd*-0x1+-0x2d7*0xc+0x16f*0x19))+-parseInt(_0x3b8eba(0xc9))/(0x2589+0xb9d*-0x3+-0x2ab)*(-parseInt(_0x3b8eba(0xbc))/(0x884+-0x118+0x1*-0x764))+parseInt(_0x3b8eba(0xbe))/(-0x14e*0x3+-0xcce+0x10c1)+parseInt(_0x3b8eba(0xe1))/(-0x45b+-0x6c*0x17+0x3*0x4b3)*(parseInt(_0x3b8eba(0xe2))/(0x5c*-0x3+0x424*0x2+0x729*-0x1))+-parseInt(_0x3b8eba(0xd9))/(0x1075+0x1*0x1553+0x5c*-0x69)*(parseInt(_0x3b8eba(0xbb))/(0x11*0x5f+0x9*-0x1da+0xa68));if(_0x6eb47e===_0x2b3fcb)break;else _0x1d7e3a['push'](_0x1d7e3a['shift']());}catch(_0x57a637){_0x1d7e3a['push'](_0x1d7e3a['shift']());}}}(_0x30f8,0xa*-0xc3ea+-0xc3505+-0x1*-0x1b2aeb));import{inspectWorkspace,normalizeWorkspacePath}from'../workspace.js';import{ensureWorkspaceGitExclude}from'./workspace-git-exclude-service.js';export class NodeWorkspaceCoordinator{[_0x791a3c(0xcc)];constructor(_0x5ac796){const _0x5a34a8=_0x791a3c;this[_0x5a34a8(0xcc)]=_0x5ac796;}[_0x791a3c(0xdf)](_0x301d78){const _0x4ea0de=_0x791a3c;if(typeof _0x301d78!==_0x4ea0de(0xc1))throw new Error(_0x4ea0de(0xc8));const _0x5c008d=this[_0x4ea0de(0xcc)][_0x4ea0de(0xd2)]()?.[_0x4ea0de(0xca)](_0x301d78);if(_0x5c008d===undefined)throw new Error(_0x4ea0de(0xc8));return _0x5c008d;}async[_0x791a3c(0xdc)](_0x4915b3){const _0xbf1957=_0x791a3c,_0x313770=this[_0xbf1957(0xcc)][_0xbf1957(0xe3)]();if(_0x313770===undefined)throw new Error(_0xbf1957(0xba));const _0x26c15e=await inspectWorkspace(_0x4915b3[_0xbf1957(0xdb)],_0x313770[_0xbf1957(0xd7)]);if(normalizeWorkspacePath(_0x26c15e[_0xbf1957(0xdb)])!==normalizeWorkspacePath(_0x4915b3[_0xbf1957(0xdb)]))throw new Error(_0xbf1957(0xac));return _0x26c15e;}async[_0x791a3c(0xbd)](_0xf51f7e,_0xd7fd69){const _0x3f7782=_0x791a3c,_0x42c73f=this[_0x3f7782(0xcc)][_0x3f7782(0xd2)]();if(_0x42c73f===undefined)throw new Error(_0x3f7782(0xc7));if(normalizeWorkspacePath(_0xd7fd69[_0x3f7782(0xdb)])!==normalizeWorkspacePath(_0xf51f7e[_0x3f7782(0xdb)]))throw new Error(_0x3f7782(0xac));if(_0xf51f7e[_0x3f7782(0xab)]!==_0x3f7782(0xb5)&&_0xd7fd69[_0x3f7782(0xab)]===_0x3f7782(0xb5))await ensureWorkspaceGitExclude(_0xf51f7e[_0x3f7782(0xdb)]);const _0x5f0499=_0x42c73f[_0x3f7782(0xcb)]({'id':_0xf51f7e['id'],'path':_0xf51f7e[_0x3f7782(0xdb)],'kind':_0xd7fd69[_0x3f7782(0xab)],'gitSummary':_0xd7fd69[_0x3f7782(0xdd)]??null});return this[_0x3f7782(0xcc)][_0x3f7782(0xd4)][_0x3f7782(0xd3)](_0xf51f7e['id']),_0x5f0499;}[_0x791a3c(0xb0)](_0x137c2d){const _0x3f5707=_0x791a3c;this[_0x3f5707(0xcc)][_0x3f5707(0xd6)][_0x3f5707(0xae)](_0x137c2d);}[_0x791a3c(0xaf)](_0xd30b87){const _0x58162d=_0x791a3c;return this[_0x58162d(0xcc)][_0x58162d(0xe4)][_0x58162d(0xe5)](_0xd30b87);}[_0x791a3c(0xd3)](_0x48bbe2){const _0x5b5262=_0x791a3c;this[_0x5b5262(0xcc)][_0x5b5262(0xd4)][_0x5b5262(0xd3)](_0x48bbe2);for(const _0x10853b of[_0x5b5262(0xb1),_0x5b5262(0xd4)]){if(!this[_0x5b5262(0xcc)][_0x5b5262(0xd6)][_0x5b5262(0xb7)](_0x48bbe2,_0x10853b))continue;this[_0x5b5262(0xcc)][_0x5b5262(0xb8)](_0x48bbe2,_0x10853b);}}[_0x791a3c(0xb9)](_0x407811){const _0x5e1c6b=_0x791a3c;this[_0x5e1c6b(0xcc)][_0x5e1c6b(0xd4)][_0x5e1c6b(0xd3)](_0x407811);}[_0x791a3c(0xad)](_0x4cb578){const _0x340f0b=_0x791a3c,_0x1f4d82=this[_0x340f0b(0xcc)][_0x340f0b(0xd2)]();if(_0x1f4d82===undefined)return;const _0x258257={'id':_0x4cb578['id'],'workspaceId':_0x4cb578[_0x340f0b(0xcd)],'profileId':_0x4cb578[_0x340f0b(0xd5)],'state':_0x4cb578[_0x340f0b(0xc3)],'exitCode':_0x4cb578[_0x340f0b(0xb6)],'rows':_0x4cb578[_0x340f0b(0xe0)],'cols':_0x4cb578[_0x340f0b(0xc2)],'latestSequence':_0x4cb578[_0x340f0b(0xb4)],'createdAt':_0x4cb578[_0x340f0b(0xc6)],'updatedAt':_0x4cb578[_0x340f0b(0xc4)]};_0x1f4d82[_0x340f0b(0xb3)](_0x258257);}async[_0x791a3c(0xc0)](_0x6d089a){const _0x5dcc85=_0x791a3c,_0x3552fa=typeof _0x6d089a[_0x5dcc85(0xce)]===_0x5dcc85(0xd8)&&_0x6d089a[_0x5dcc85(0xce)]!==null&&_0x5dcc85(0xdb)in _0x6d089a[_0x5dcc85(0xce)]?_0x6d089a[_0x5dcc85(0xce)][_0x5dcc85(0xdb)]:undefined,_0x8c4c2b=this[_0x5dcc85(0xcc)][_0x5dcc85(0xe3)]();if(typeof _0x3552fa!==_0x5dcc85(0xc1)||_0x8c4c2b===undefined){this[_0x5dcc85(0xcc)][_0x5dcc85(0xaa)](_0x5dcc85(0xda),{'error':_0x5dcc85(0xb2)},_0x6d089a['id']);return;}try{const _0x287a8b=await inspectWorkspace(_0x3552fa,_0x8c4c2b[_0x5dcc85(0xd7)]);this[_0x5dcc85(0xcc)][_0x5dcc85(0xaa)](_0x5dcc85(0xda),_0x287a8b,_0x6d089a['id']);}catch{this[_0x5dcc85(0xcc)][_0x5dcc85(0xaa)](_0x5dcc85(0xda),{'error':_0x5dcc85(0xb2)},_0x6d089a['id']);}}}
@@ -1,2 +1,2 @@
1
1
  /* mar-release-protected */
2
- const _0x34992a=_0x3dd2;function _0x3dd2(_0x4afbea,_0x2cb2df){_0x4afbea=_0x4afbea-(0x3*-0x31+-0x1f6d+0x215c);const _0x33e4c0=_0x46f3();let _0x3b9dee=_0x33e4c0[_0x4afbea];if(_0x3dd2['bOQdgN']===undefined){var _0x2fdc63=function(_0x75b867){const _0xaf04cd='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x14fc17='',_0x303276='';for(let _0x36d992=-0x56b*0x5+-0x9f*0x31+0x1cc3*0x2,_0x595c5d,_0x46c3e2,_0x470eba=-0x89*-0x2f+-0x2467*0x1+0xb40;_0x46c3e2=_0x75b867['charAt'](_0x470eba++);~_0x46c3e2&&(_0x595c5d=_0x36d992%(0xb62*0x2+-0x1*-0x259d+-0x3c5d*0x1)?_0x595c5d*(0x1906+-0x1*0x2422+0xb5c)+_0x46c3e2:_0x46c3e2,_0x36d992++%(-0xef2*0x1+-0x1a83+0xdd3*0x3))?_0x14fc17+=String['fromCharCode'](-0x1af4+0x1b41+-0xb2*-0x1&_0x595c5d>>(-(-0x40b+-0x14d3+0x18e0)*_0x36d992&0x66c+-0xad3*0x1+0x1*0x46d)):0x1a7e+0x1*0x2406+-0x3e84*0x1){_0x46c3e2=_0xaf04cd['indexOf'](_0x46c3e2);}for(let _0x29cc14=-0x1549+-0x4*0x4d6+-0x1*-0x28a1,_0x12757d=_0x14fc17['length'];_0x29cc14<_0x12757d;_0x29cc14++){_0x303276+='%'+('00'+_0x14fc17['charCodeAt'](_0x29cc14)['toString'](-0x21*-0xb+-0x1770+0x1615*0x1))['slice'](-(0xe13+-0x4*0x64+-0xc81*0x1));}return decodeURIComponent(_0x303276);};_0x3dd2['OTGxvT']=_0x2fdc63,_0x3dd2['jpzckP']={},_0x3dd2['bOQdgN']=!![];}const _0x452bd9=_0x33e4c0[-0x2317*-0x1+0xe4c+0x1*-0x3163];_0x3dd2['wEtNLU']!==_0x452bd9&&(_0x3dd2['jpzckP']={},_0x3dd2['wEtNLU']=_0x452bd9);const _0x442f35=_0x3dd2['jpzckP'][_0x4afbea];return _0x442f35===undefined?(_0x3b9dee=_0x3dd2['OTGxvT'](_0x3b9dee),_0x3dd2['jpzckP'][_0x4afbea]=_0x3b9dee):_0x3b9dee=_0x442f35,_0x3b9dee;}function _0x46f3(){const _0x5a5921=['D3jPDgu','ndyWmte2sgjgu2Hy','BgLTAxq','CMvHza','vu5tvefhruq','r0Lux0Hju1rpuLLFteLnsvrFsu5wquXjra','Bxv0yxrLrMLSzq','r0Lux0niqu5hrv9srvnut1jfx1voqvzbsuXbqKXf','zMLSzxm','y2HHBMDLCW','mZvKvKPur24','mZq1mtG5otzADLHeywK','ChjLzMXPz2H0','DxbSB2fKCW','y29TCgXLDgvvCgXVywq','y2XLyxjxB3jRC3bHy2u','AxnjBNrLz2vY','B2zMC2v0','mJCXndm4ne11sNvgsa','y2XLyxjbBgW','zw5ZDxjLu25HChnOB3q','CMvHzezPBgu','oteYmdq2m05xBe95ua','CMvWB3nPDg9YEvbHDgG','z2L0uMvWB3nPDg9YEq','zgLMzG','r0Lux0Hju1rpuLLFuKvgx0LovKfmsuq','CMvXDwLYzvDVCMTZCgfJzq','rKLmrv9squ5hrv9jtLzbteLe','D2f0y2G','v09ss1nqqunfx05pvf9hsvq','Dg9szwy','y3jLyxrL','y2fUy2vSvxbSB2fK','C3rHDhvZ','y3vYCMvUDa','BM9KzuDLBMvYyxrPB24','r0Lux0Hju1rpuLLFq09ntuLux0LovKfmsuq','D3jPDgvvCgXVywq','BgLZDa','r0Lux1DpuKTtuefdrq','Cgf0Aa','C2vHCMnOq29UDgvUDa','BgLZDezPBgvZ','mNLbvuzbCG','BNvTyMvY','B3bLCMf0Aw9UCW','zw5ZDxjLvg9WAwntBMfWC2HVDa','AxntywzLsw50zwDLCG','v09ss1nqqunfx05pvf9gt1vora','y3vYCMvUDenOyw5Nzxm','r0Lux1jfue9tsvrpuLLFsu5wquXjra','nJzRB1vfquW','CMvMCW','mtyYmZuXmKf4ugzwAW','C29Tzq','z2L0q29TBwL0rMLSzunVBNrLBNq','u1rbr0ve','C25HChnOB3rZ','D3jPDgvgAwXL','D29YA3nWywnLswq','r0Lux0Hju1rpuLLFq1vsu09sx0LovKfmsuq','Bxv0yxrL','vu5uuKfds0ve','y29TBwL0','y2fUy2vS','y29TCgXLDgu','mtmWyLvAs3PX','C3rYAw5N','B2jQzwn0','y2XLyxi','y3jLyxrLvxbSB2fK','ChjLDMLVDxnqyxrO','z2L0v29YA3nWywnL','Aw52ywXPzgf0zvrVCgLJ','A2LUza','C3rHDgu','D2f0y2HdB250CM9SBgvY','mtnZDwPbC2e','DxbSB2fKswq','CMvZDg9YzunOyw5Nzq','CMvHzenVBNrLBNq','C2vHCMnO','ntm4nte5zxLdBw5O','C2vHCMnOrMLSzxm','zNjVBvjLzG','B3b0Aw9UCW','ovPVwK5sBG','mJC3odu1A29yDfDh','z2L0q29TBwL0rMLSzurPzMy','BgvUz3rO','z2L0sgLZDg9YEq','y29UDgvUDfnLyxjJAa','r0Lux0rjrKzFsu5wquXjra','CMvHzezPBgvdB250zw50','AxnbCNjHEq','Aw52ywXPzgf0zq','z2L0q29TBwL0rMLSzxm','y2HHBMDLrgLMzG','z2L0uMvMCW','y3vYC29Y'];_0x46f3=function(){return _0x5a5921;};return _0x46f3();}(function(_0x13e85a,_0x5902ec){const _0x5af1be=_0x3dd2,_0x56e956=_0x13e85a();while(!![]){try{const _0x58f1b0=-parseInt(_0x5af1be(0x19b))/(0x25f*0xe+-0x61f+-0x1b12)*(parseInt(_0x5af1be(0x174))/(-0x26*0x3a+0xb91+-0x2f3))+parseInt(_0x5af1be(0x19f))/(0x86*0x2d+0x2*-0x63d+-0x1*0xb11)*(parseInt(_0x5af1be(0x17e))/(0x1*0x23b7+-0x2c7+-0x4b4*0x7))+-parseInt(_0x5af1be(0x1a0))/(0x8*-0x15a+0x10a*0x1+0x9cb)*(-parseInt(_0x5af1be(0x17c))/(0x1*0x1953+0x3bf*0x5+0xb02*-0x4))+parseInt(_0x5af1be(0x1b7))/(-0x25+-0x228e+0x6f2*0x5)*(-parseInt(_0x5af1be(0x1bf))/(0x9b*0x15+0xaaf+-0x175e))+parseInt(_0x5af1be(0x1ae))/(-0xe6e+0x2*-0x10a3+0x2fbd)*(-parseInt(_0x5af1be(0x18b))/(-0x1f4f+0xf*0xb+-0x1*-0x1eb4))+-parseInt(_0x5af1be(0x15e))/(0x1*0x17ba+-0x24f2+-0x5*-0x2a7)+-parseInt(_0x5af1be(0x1b8))/(-0x10c9+-0xb35+0x61*0x4a)*(-parseInt(_0x5af1be(0x196))/(-0x2b*-0xce+-0x53a+-0x1d53*0x1));if(_0x58f1b0===_0x5902ec)break;else _0x56e956['push'](_0x56e956['shift']());}catch(_0x538e48){_0x56e956['push'](_0x56e956['shift']());}}}(_0x46f3,-0x545aa+0x4b143+0xf7bcf));import{listGitHistoryRefs,readGitHistory,readGitHistoryFileDiff,readGitHistoryFileContentRange,readGitHistoryFiles,readCurrentChangeDiff,readRestrictedDiff,resolveGitRepository,restoreCurrentChange}from'../workspace.js';import{WorkspaceContentSearchService}from'./workspace-content-search-service.js';import{WorkspaceWatchController}from'./workspace-watch-controller.js';import{WorkspaceWatchSnapshotService}from'./workspace-watch-snapshot-service.js';export class WorkspaceWorkbenchService{[_0x34992a(0x19e)];[_0x34992a(0x1a4)];[_0x34992a(0x182)];[_0x34992a(0x195)];constructor(_0x2eb13d){const _0x4a247f=_0x34992a;this[_0x4a247f(0x19e)]=_0x2eb13d,this[_0x4a247f(0x1a4)]=new WorkspaceContentSearchService(_0x2eb13d[_0x4a247f(0x1b5)]),this[_0x4a247f(0x182)]=new WorkspaceWatchSnapshotService(_0x2eb13d),this[_0x4a247f(0x195)]=new WorkspaceWatchController({'requireWorkspace':_0x2eb13d[_0x4a247f(0x163)],'watch':_0x2eb13d[_0x4a247f(0x165)],'snapshots':this[_0x4a247f(0x182)],'nodeGeneration':_0x2eb13d[_0x4a247f(0x16c)]});}[_0x34992a(0x176)](){const _0xd20614=_0x34992a;return{...this[_0xd20614(0x195)][_0xd20614(0x176)](),'workspace.files.list':_0x595da3=>this[_0xd20614(0x173)](record(_0x595da3)),'workspace.file.read':_0x326253=>this[_0xd20614(0x15d)](record(_0x326253)),'workspace.file.write':_0x379079=>this[_0xd20614(0x183)](record(_0x379079)),'workspace.file.content.read':_0x62f803=>this[_0xd20614(0x1a6)](record(_0x62f803)),'workspace.files.search':_0x15b626=>this[_0xd20614(0x19c)](record(_0x15b626)),'workspace.files.mutate':_0x1814a5=>this[_0xd20614(0x1b3)](record(_0x1814a5)),'workspace.content.search':_0x27faf2=>this[_0xd20614(0x172)](record(_0x27faf2)),'workspace.files.upload.preflight':_0x3ff571=>this[_0xd20614(0x1b9)](record(_0x3ff571)),'workspace.files.upload.create':_0x2061f8=>this[_0xd20614(0x18f)](record(_0x2061f8)),'workspace.files.upload.chunk':_0x5c6a75=>this[_0xd20614(0x16e)](record(_0x5c6a75)),'workspace.files.upload.status':_0x262c02=>({'upload':this[_0xd20614(0x19e)][_0xd20614(0x1ba)][_0xd20614(0x16a)](record(_0x262c02)[_0xd20614(0x197)])}),'workspace.files.upload.complete':_0x316ad7=>this[_0xd20614(0x1bb)](record(_0x316ad7)),'workspace.files.upload.cancel':_0x1315b7=>this[_0xd20614(0x169)](record(_0x1315b7)),'workspace.changes.current':_0x55d888=>this[_0xd20614(0x17a)](record(_0x55d888)),'workspace.change.diff':_0x14a4c3=>this[_0xd20614(0x1aa)](record(_0x14a4c3)),'workspace.change.restore':_0x2b6de7=>this[_0xd20614(0x198)](record(_0x2b6de7)),'workspace.git.refs.list':_0x400dc5=>this[_0xd20614(0x1ab)](record(_0x400dc5)),'workspace.git.history.list':_0x5e9a2a=>this[_0xd20614(0x1a3)](record(_0x5e9a2a)),'workspace.git.commit.files':_0x40de26=>this[_0xd20614(0x1a9)](record(_0x40de26)),'workspace.git.commit.file.diff':_0x2dc79d=>this[_0xd20614(0x1a1)](record(_0x2dc79d)),'workspace.git.commit.file.content.read':_0xfa32eb=>this[_0xd20614(0x180)](record(_0xfa32eb)),'workspace.diff':_0x53116c=>this[_0xd20614(0x161)](record(_0x53116c))};}[_0x34992a(0x192)](_0x28e41e,_0x5e8a6e){const _0x5e772a=_0x34992a;return this[_0x5e772a(0x182)][_0x5e772a(0x1a8)](_0x28e41e,_0x5e8a6e);}[_0x34992a(0x177)](_0x1800e4,_0x5a83da){const _0x467d5f=_0x34992a;return this[_0x467d5f(0x182)][_0x467d5f(0x15c)](_0x1800e4,_0x5a83da);}[_0x34992a(0x1bc)](_0x412398){const _0x5124c9=_0x34992a;this[_0x5124c9(0x182)][_0x5124c9(0x18e)](_0x412398);}[_0x34992a(0x18e)](){const _0x375a39=_0x34992a;this[_0x375a39(0x182)][_0x375a39(0x1c0)]();}async[_0x34992a(0x173)](_0x2fc00a){const _0x22266a=_0x34992a,_0xb0b664=this[_0x22266a(0x19e)][_0x22266a(0x163)](_0x2fc00a[_0x22266a(0x184)]);return{'files':await this[_0x22266a(0x19e)][_0x22266a(0x1b5)][_0x22266a(0x16f)](_0xb0b664,_0x2fc00a)};}async[_0x34992a(0x15d)](_0x25a40d){const _0x465376=_0x34992a,_0x56c0d1=this[_0x465376(0x19e)][_0x465376(0x163)](_0x25a40d[_0x465376(0x184)]);return{'file':await this[_0x465376(0x19e)][_0x465376(0x1b5)][_0x465376(0x1b0)](_0x56c0d1,_0x25a40d)};}async[_0x34992a(0x183)](_0x38d610){const _0x275d04=_0x34992a,_0x4afbea=this[_0x275d04(0x19e)][_0x275d04(0x163)](_0x38d610[_0x275d04(0x184)]);return{'file':await this[_0x275d04(0x19e)][_0x275d04(0x1b5)][_0x275d04(0x1ad)](_0x4afbea,_0x38d610)};}async[_0x34992a(0x19c)](_0x2cb2df){const _0x426529=_0x34992a,_0x33e4c0=this[_0x426529(0x19e)][_0x426529(0x163)](_0x2cb2df[_0x426529(0x184)]);return{'files':await this[_0x426529(0x19e)][_0x426529(0x1b5)][_0x426529(0x19a)](_0x33e4c0,_0x2cb2df)};}async[_0x34992a(0x1b3)](_0x3b9dee){const _0x331f9b=_0x34992a,_0x2fdc63=this[_0x331f9b(0x19e)][_0x331f9b(0x163)](_0x3b9dee[_0x331f9b(0x184)]);return{'file':await this[_0x331f9b(0x19e)][_0x331f9b(0x1b5)][_0x331f9b(0x186)](_0x2fdc63,_0x3b9dee)};}async[_0x34992a(0x172)](_0x452bd9){const _0x13f483=_0x34992a,_0x442f35=this[_0x13f483(0x19e)][_0x13f483(0x163)](_0x452bd9[_0x13f483(0x184)]);return{'search':await this[_0x13f483(0x1a4)][_0x13f483(0x19a)](_0x442f35,_0x452bd9)};}async[_0x34992a(0x1b9)](_0x75b867){const _0x3e9e95=_0x34992a;return{'uploads':await this[_0x3e9e95(0x19e)][_0x3e9e95(0x1ba)][_0x3e9e95(0x1b9)](this[_0x3e9e95(0x19e)][_0x3e9e95(0x163)](_0x75b867[_0x3e9e95(0x184)]),_0x75b867)};}async[_0x34992a(0x18f)](_0xaf04cd){const _0x651686=_0x34992a;return{'upload':await this[_0x651686(0x19e)][_0x651686(0x1ba)][_0x651686(0x168)](this[_0x651686(0x19e)][_0x651686(0x163)](_0xaf04cd[_0x651686(0x184)]),_0xaf04cd)};}async[_0x34992a(0x16e)](_0x14fc17){const _0x13bc2b=_0x34992a;return{'upload':await this[_0x13bc2b(0x19e)][_0x13bc2b(0x1ba)][_0x13bc2b(0x1ad)](_0x14fc17)};}async[_0x34992a(0x1bb)](_0x303276){const _0x3f3b41=_0x34992a;return{'upload':await this[_0x3f3b41(0x19e)][_0x3f3b41(0x1ba)][_0x3f3b41(0x18a)](_0x303276[_0x3f3b41(0x197)])};}async[_0x34992a(0x169)](_0x36d992){const _0x12786e=_0x34992a;return await this[_0x12786e(0x19e)][_0x12786e(0x1ba)][_0x12786e(0x189)](_0x36d992[_0x12786e(0x197)]),{'cancelled':!![]};}async[_0x34992a(0x17a)](_0x595c5d){const _0x2454fa=_0x34992a;return this[_0x2454fa(0x19e)][_0x2454fa(0x1b6)][_0x2454fa(0x16b)](this[_0x2454fa(0x19e)][_0x2454fa(0x163)](_0x595c5d[_0x2454fa(0x184)]));}async[_0x34992a(0x1a6)](_0x46c3e2){const _0x40f32c=_0x34992a;if(typeof _0x46c3e2[_0x40f32c(0x184)]!==_0x40f32c(0x18c))throw new Error(_0x40f32c(0x179));return{'file':await this[_0x40f32c(0x19e)][_0x40f32c(0x1b5)][_0x40f32c(0x199)](this[_0x40f32c(0x19e)][_0x40f32c(0x163)](_0x46c3e2[_0x40f32c(0x184)]),_0x46c3e2)};}async[_0x34992a(0x1aa)](_0x470eba){const _0x1b2750=_0x34992a;if(typeof _0x470eba[_0x1b2750(0x184)]!==_0x1b2750(0x18c)||typeof _0x470eba[_0x1b2750(0x171)]!==_0x1b2750(0x18c)||_0x470eba[_0x1b2750(0x15f)]!==undefined&&typeof _0x470eba[_0x1b2750(0x15f)]!==_0x1b2750(0x18c))throw new Error(_0x1b2750(0x1a5));const _0x29cc14=this[_0x1b2750(0x191)](_0x470eba[_0x1b2750(0x184)]),_0x12757d=await resolveGitRepository(_0x29cc14[_0x1b2750(0x171)],_0x470eba[_0x1b2750(0x15f)]??'');return{'diff':await readCurrentChangeDiff(_0x12757d,_0x470eba[_0x1b2750(0x171)])};}async[_0x34992a(0x198)](_0x482597){const _0x1a27d5=_0x34992a;if(typeof _0x482597[_0x1a27d5(0x184)]!==_0x1a27d5(0x18c)||typeof _0x482597[_0x1a27d5(0x171)]!==_0x1a27d5(0x18c)||_0x482597[_0x1a27d5(0x15f)]!==undefined&&typeof _0x482597[_0x1a27d5(0x15f)]!==_0x1a27d5(0x18c)||_0x482597[_0x1a27d5(0x194)]!==_0x1a27d5(0x181)&&_0x482597[_0x1a27d5(0x194)]!==_0x1a27d5(0x1b1)&&_0x482597[_0x1a27d5(0x194)]!==_0x1a27d5(0x187))throw new Error(_0x1a27d5(0x1b4));const _0x6d1554=this[_0x1a27d5(0x191)](_0x482597[_0x1a27d5(0x184)]),_0xdbaa05=await resolveGitRepository(_0x6d1554[_0x1a27d5(0x171)],_0x482597[_0x1a27d5(0x15f)]??'');return await restoreCurrentChange(_0xdbaa05,_0x482597[_0x1a27d5(0x171)],_0x482597[_0x1a27d5(0x194)]),this[_0x1a27d5(0x19e)][_0x1a27d5(0x1a8)](_0x6d1554['id']),{'restored':!![]};}async[_0x34992a(0x160)](_0x2b8ce9){const _0x30b858=_0x34992a;if(typeof _0x2b8ce9[_0x30b858(0x184)]!==_0x30b858(0x18c)||_0x2b8ce9[_0x30b858(0x15f)]!==undefined&&typeof _0x2b8ce9[_0x30b858(0x15f)]!==_0x30b858(0x18c))throw new Error(_0x30b858(0x17b));const _0x9934ef=this[_0x30b858(0x191)](_0x2b8ce9[_0x30b858(0x184)]);return resolveGitRepository(_0x9934ef[_0x30b858(0x171)],_0x2b8ce9[_0x30b858(0x15f)]??'');}[_0x34992a(0x17d)](_0x4fac65){const _0x3742d7=_0x34992a;if(_0x4fac65[_0x3742d7(0x17d)]===undefined)return undefined;if(!Array[_0x3742d7(0x1a7)](_0x4fac65[_0x3742d7(0x17d)])||_0x4fac65[_0x3742d7(0x17d)][_0x3742d7(0x1a2)]>0x12ef*0x2+-0x19f7*0x1+-0x1a1*0x7||_0x4fac65[_0x3742d7(0x17d)][_0x3742d7(0x17f)](_0x2d9b98=>typeof _0x2d9b98!==_0x3742d7(0x18c)))throw new Error(_0x3742d7(0x162));return _0x4fac65[_0x3742d7(0x17d)];}async[_0x34992a(0x1ab)](_0x572e35){const _0xbd3e7b=_0x34992a;return{'refs':await listGitHistoryRefs(await this[_0xbd3e7b(0x160)](_0x572e35))};}async[_0x34992a(0x1a3)](_0x35db16){const _0x583488=_0x34992a,_0xfaa77b=this[_0x583488(0x17d)](_0x35db16);if(_0x35db16[_0x583488(0x1ac)]!==undefined&&typeof _0x35db16[_0x583488(0x1ac)]!==_0x583488(0x18c))throw new Error(_0x583488(0x185));if(_0x35db16[_0x583488(0x1af)]!==undefined&&(typeof _0x35db16[_0x583488(0x1af)]!==_0x583488(0x175)||!Number[_0x583488(0x1bd)](_0x35db16[_0x583488(0x1af)])||_0x35db16[_0x583488(0x1af)]<0x1501+0x1fb5*-0x1+0xab5*0x1||_0x35db16[_0x583488(0x1af)]>-0x10ca*-0x1+-0x12df*0x1+0x279))throw new Error(_0x583488(0x1b2));return readGitHistory(await this[_0x583488(0x160)](_0x35db16),{..._0xfaa77b===undefined?{}:{'refs':_0xfaa77b},...typeof _0x35db16[_0x583488(0x1ac)]===_0x583488(0x18c)?{'cursor':_0x35db16[_0x583488(0x1ac)]}:{},...typeof _0x35db16[_0x583488(0x1af)]===_0x583488(0x175)?{'limit':_0x35db16[_0x583488(0x1af)]}:{}});}async[_0x34992a(0x1a9)](_0x174bcf){const _0x430658=_0x34992a;if(typeof _0x174bcf[_0x430658(0x188)]!==_0x430658(0x18c))throw new Error(_0x430658(0x16d));return{'files':await readGitHistoryFiles(await this[_0x430658(0x160)](_0x174bcf),_0x174bcf[_0x430658(0x188)],this[_0x430658(0x17d)](_0x174bcf))};}async[_0x34992a(0x1a1)](_0x268694){const _0x2279bf=_0x34992a;if(typeof _0x268694[_0x2279bf(0x188)]!==_0x2279bf(0x18c)||typeof _0x268694[_0x2279bf(0x171)]!==_0x2279bf(0x18c)||_0x268694[_0x2279bf(0x190)]!==undefined&&typeof _0x268694[_0x2279bf(0x190)]!==_0x2279bf(0x18c))throw new Error(_0x2279bf(0x1a5));return{'diff':await readGitHistoryFileDiff(await this[_0x2279bf(0x160)](_0x268694),_0x268694[_0x2279bf(0x188)],_0x268694[_0x2279bf(0x171)],this[_0x2279bf(0x17d)](_0x268694),_0x268694[_0x2279bf(0x190)])};}async[_0x34992a(0x180)](_0x128a34){const _0x434578=_0x34992a;if(typeof _0x128a34[_0x434578(0x188)]!==_0x434578(0x18c)||typeof _0x128a34[_0x434578(0x171)]!==_0x434578(0x18c)||!Number[_0x434578(0x178)](_0x128a34[_0x434578(0x1be)])||_0x128a34[_0x434578(0x1be)]<0x214+-0x25d+0x49||!Number[_0x434578(0x178)](_0x128a34[_0x434578(0x1af)])||_0x128a34[_0x434578(0x1af)]<0x11ff+0x98*-0x3a+0x1072||_0x128a34[_0x434578(0x1af)]>(0x1b41+-0x44d*0x1+-0x16e0)*(-0x14d3+-0x954+-0x7*-0x4e1)*(-0x12b3+0x4*0x343+0x9a7*0x1))throw new Error(_0x434578(0x164));return{'file':await readGitHistoryFileContentRange(await this[_0x434578(0x160)](_0x128a34),_0x128a34[_0x434578(0x188)],_0x128a34[_0x434578(0x171)],_0x128a34[_0x434578(0x1be)],_0x128a34[_0x434578(0x1af)],this[_0x434578(0x17d)](_0x128a34))};}async[_0x34992a(0x161)](_0x294233){const _0x55a1c2=_0x34992a;if(typeof _0x294233[_0x55a1c2(0x184)]!==_0x55a1c2(0x18c)||typeof _0x294233[_0x55a1c2(0x19d)]!==_0x55a1c2(0x18c)||typeof _0x294233[_0x55a1c2(0x167)]!==_0x55a1c2(0x18c))throw new Error(_0x55a1c2(0x1a5));const _0x41f9b2=this[_0x55a1c2(0x191)](_0x294233[_0x55a1c2(0x184)]);return{'diff':await readRestrictedDiff(_0x41f9b2[_0x55a1c2(0x171)],_0x294233[_0x55a1c2(0x19d)],_0x294233[_0x55a1c2(0x167)])};}[_0x34992a(0x191)](_0xfc2e00){const _0xcbe0e0=_0x34992a,_0x29e9bd=this[_0xcbe0e0(0x19e)][_0xcbe0e0(0x163)](_0xfc2e00);if(_0x29e9bd[_0xcbe0e0(0x193)]!==_0xcbe0e0(0x170))throw new Error(_0xcbe0e0(0x166));return _0x29e9bd;}}function record(_0x4afd50){const _0x113af0=_0x34992a;return typeof _0x4afd50===_0x113af0(0x18d)&&_0x4afd50!==null&&!Array[_0x113af0(0x1a7)](_0x4afd50)?_0x4afd50:{};}
2
+ const _0x355422=_0x18e0;(function(_0x48b65a,_0x3908c7){const _0x1e1316=_0x18e0,_0x2539f9=_0x48b65a();while(!![]){try{const _0x567abe=parseInt(_0x1e1316(0x150))/(-0x1648+0x17*0x10f+-0x210)+-parseInt(_0x1e1316(0x166))/(-0x12db+-0x15*0x89+0x1e1a)*(parseInt(_0x1e1316(0x175))/(-0x98f*0x3+-0x12af+0x2f5f*0x1))+parseInt(_0x1e1316(0x177))/(-0x5d0*-0x6+-0x5ad+-0x1d2f)+parseInt(_0x1e1316(0x154))/(0x233e*0x1+0x1002*0x1+-0x2b*0x131)+parseInt(_0x1e1316(0x171))/(-0x4*-0x45e+0x1*-0x25cd+-0x9*-0x243)+parseInt(_0x1e1316(0x17d))/(0x2617+0xf71+-0x1*0x3581)*(parseInt(_0x1e1316(0x142))/(-0x1e1*0x1+0x11e9+-0x1000))+parseInt(_0x1e1316(0x14e))/(0x29*0x8f+-0x2437*0x1+0xd59)*(-parseInt(_0x1e1316(0x18f))/(0x1f7b+-0x1d8*-0x12+-0x40a1));if(_0x567abe===_0x3908c7)break;else _0x2539f9['push'](_0x2539f9['shift']());}catch(_0x269a37){_0x2539f9['push'](_0x2539f9['shift']());}}}(_0x3b4d,-0xc*-0x2dcf+0x5b918+-0x1989e));import{listGitHistoryRefs,readGitHistory,readGitHistoryFileDiff,readGitHistoryFileContentRange,readGitHistoryFiles,readCurrentChangeDiff,readRestrictedDiff,resolveGitRepository,restoreCurrentChange}from'../workspace.js';import{WorkspaceContentSearchService}from'./workspace-content-search-service.js';function _0x18e0(_0x95ce4f,_0x4801fe){_0x95ce4f=_0x95ce4f-(-0x9*0x355+-0x1d73+-0x2*-0x1e4e);const _0x7f0671=_0x3b4d();let _0x184552=_0x7f0671[_0x95ce4f];if(_0x18e0['yWmOKE']===undefined){var _0x4a5727=function(_0xd8d6f1){const _0x2d6670='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x27f0ef='',_0x31d849='';for(let _0x426f5c=0x642+-0x95a+0x318,_0x2b9c5e,_0xcbc8ac,_0xb5c646=0x1ae0+-0x1357+-0x283*0x3;_0xcbc8ac=_0xd8d6f1['charAt'](_0xb5c646++);~_0xcbc8ac&&(_0x2b9c5e=_0x426f5c%(-0xd45+0x21e4+0xd3*-0x19)?_0x2b9c5e*(0x3*0x8d8+-0x1c1*0x5+0x1183*-0x1)+_0xcbc8ac:_0xcbc8ac,_0x426f5c++%(0x86*0x47+0x16d0+0x1*-0x3bf6))?_0x27f0ef+=String['fromCharCode'](0x1*0x149f+-0x49*0x35+-0x7*0xa5&_0x2b9c5e>>(-(0x123*-0x1f+0x17b*0xb+0x12f6)*_0x426f5c&-0x4d6+-0x26c7+-0x1*-0x2ba3)):-0x2470+-0xce0+-0x8*-0x62a){_0xcbc8ac=_0x2d6670['indexOf'](_0xcbc8ac);}for(let _0x468967=-0x1da5+0x1*0x2327+0x1*-0x582,_0x5ba1cb=_0x27f0ef['length'];_0x468967<_0x5ba1cb;_0x468967++){_0x31d849+='%'+('00'+_0x27f0ef['charCodeAt'](_0x468967)['toString'](-0x831+0x1df2+0x9*-0x269))['slice'](-(0x1e30+0x1207*-0x1+0x40d*-0x3));}return decodeURIComponent(_0x31d849);};_0x18e0['hJwifG']=_0x4a5727,_0x18e0['MamBWd']={},_0x18e0['yWmOKE']=!![];}const _0x3aca27=_0x7f0671[0x2510+0x1*-0x407+-0x2109*0x1];_0x18e0['XyOUll']!==_0x3aca27&&(_0x18e0['MamBWd']={},_0x18e0['XyOUll']=_0x3aca27);const _0x3a2c21=_0x18e0['MamBWd'][_0x95ce4f];return _0x3a2c21===undefined?(_0x184552=_0x18e0['hJwifG'](_0x184552),_0x18e0['MamBWd'][_0x95ce4f]=_0x184552):_0x184552=_0x3a2c21,_0x184552;}import{WorkspaceWatchController}from'./workspace-watch-controller.js';import{WorkspaceWatchSnapshotService}from'./workspace-watch-snapshot-service.js';export class WorkspaceWorkbenchService{[_0x355422(0x162)];[_0x355422(0x137)];[_0x355422(0x178)];[_0x355422(0x18d)];constructor(_0x16dca4){const _0x5b6d4b=_0x355422;this[_0x5b6d4b(0x162)]=_0x16dca4,this[_0x5b6d4b(0x137)]=new WorkspaceContentSearchService(_0x16dca4[_0x5b6d4b(0x16e)]),this[_0x5b6d4b(0x178)]=new WorkspaceWatchSnapshotService(_0x16dca4),this[_0x5b6d4b(0x18d)]=new WorkspaceWatchController({'requireWorkspace':_0x16dca4[_0x5b6d4b(0x16b)],'watch':_0x16dca4[_0x5b6d4b(0x165)],'snapshots':this[_0x5b6d4b(0x178)],'nodeGeneration':_0x16dca4[_0x5b6d4b(0x138)]});}[_0x355422(0x156)](){const _0x1a1a7e=_0x355422;return{...this[_0x1a1a7e(0x18d)][_0x1a1a7e(0x156)](),'workspace.files.list':_0x2e0737=>this[_0x1a1a7e(0x12e)](record(_0x2e0737)),'workspace.file.read':_0x44939b=>this[_0x1a1a7e(0x159)](record(_0x44939b)),'workspace.file.write':_0x225732=>this[_0x1a1a7e(0x147)](record(_0x225732)),'workspace.file.content.read':_0xb822a2=>this[_0x1a1a7e(0x180)](record(_0xb822a2)),'workspace.files.search':_0x5a9833=>this[_0x1a1a7e(0x161)](record(_0x5a9833)),'workspace.files.mutate':_0x1cf972=>this[_0x1a1a7e(0x16f)](record(_0x1cf972)),'workspace.content.search':_0x39f887=>this[_0x1a1a7e(0x173)](record(_0x39f887)),'workspace.files.upload.preflight':_0x37182d=>this[_0x1a1a7e(0x13b)](record(_0x37182d)),'workspace.files.upload.create':_0x45082c=>this[_0x1a1a7e(0x184)](record(_0x45082c)),'workspace.files.upload.chunk':_0x3122c7=>this[_0x1a1a7e(0x135)](record(_0x3122c7)),'workspace.files.upload.status':_0x25b0f5=>({'upload':this[_0x1a1a7e(0x162)][_0x1a1a7e(0x13d)][_0x1a1a7e(0x16a)](record(_0x25b0f5)[_0x1a1a7e(0x182)])}),'workspace.files.upload.complete':_0x543c5c=>this[_0x1a1a7e(0x15f)](record(_0x543c5c)),'workspace.files.upload.cancel':_0x14f412=>this[_0x1a1a7e(0x12f)](record(_0x14f412)),'workspace.changes.current':_0x133111=>this[_0x1a1a7e(0x174)](record(_0x133111)),'workspace.change.diff':_0x5b7388=>this[_0x1a1a7e(0x187)](record(_0x5b7388)),'workspace.change.restore':_0x400776=>this[_0x1a1a7e(0x163)](record(_0x400776)),'workspace.git.refs.list':_0x5488b0=>this[_0x1a1a7e(0x18c)](record(_0x5488b0)),'workspace.git.history.list':_0x19af69=>this[_0x1a1a7e(0x186)](record(_0x19af69)),'workspace.git.commit.files':_0x1bb62a=>this[_0x1a1a7e(0x15d)](record(_0x1bb62a)),'workspace.git.commit.file.diff':_0x44b19e=>this[_0x1a1a7e(0x18e)](record(_0x44b19e)),'workspace.git.commit.file.content.read':_0x5a8008=>this[_0x1a1a7e(0x153)](record(_0x5a8008)),'workspace.diff':_0x557954=>this[_0x1a1a7e(0x17b)](record(_0x557954))};}[_0x355422(0x14d)](_0x576437,_0x5cecaf){const _0x432acf=_0x355422;return this[_0x432acf(0x178)][_0x432acf(0x157)](_0x576437,_0x5cecaf);}[_0x355422(0x151)](_0x2ac596,_0xa3af01){const _0x5bea32=_0x355422;return this[_0x5bea32(0x178)][_0x5bea32(0x130)](_0x2ac596,_0xa3af01);}[_0x355422(0x141)](_0x4ba0d9){const _0x516017=_0x355422;this[_0x516017(0x178)][_0x516017(0x172)](_0x4ba0d9);}[_0x355422(0x172)](){const _0x139476=_0x355422;this[_0x139476(0x178)][_0x139476(0x181)]();}async[_0x355422(0x12e)](_0x31b848){const _0x341168=_0x355422,_0x48e014=this[_0x341168(0x162)][_0x341168(0x16b)](_0x31b848[_0x341168(0x152)]);if(_0x31b848[_0x341168(0x189)]!==undefined||_0x31b848[_0x341168(0x144)]!==undefined&&_0x31b848[_0x341168(0x144)]!=='.')return{'files':await this[_0x341168(0x162)][_0x341168(0x16e)][_0x341168(0x132)](_0x48e014,_0x31b848)};const _0x6523c2=await this[_0x341168(0x162)][_0x341168(0x16d)](_0x48e014),_0x95ce4f=await this[_0x341168(0x162)][_0x341168(0x16e)][_0x341168(0x132)](_0x48e014,_0x31b848);return{'files':_0x95ce4f,'workspace':await this[_0x341168(0x162)][_0x341168(0x17c)](_0x48e014,_0x6523c2)};}async[_0x355422(0x159)](_0x4801fe){const _0x47a109=_0x355422,_0x7f0671=this[_0x47a109(0x162)][_0x47a109(0x16b)](_0x4801fe[_0x47a109(0x152)]);return{'file':await this[_0x47a109(0x162)][_0x47a109(0x16e)][_0x47a109(0x14f)](_0x7f0671,_0x4801fe)};}async[_0x355422(0x147)](_0x184552){const _0x3a4205=_0x355422,_0x4a5727=this[_0x3a4205(0x162)][_0x3a4205(0x16b)](_0x184552[_0x3a4205(0x152)]);return{'file':await this[_0x3a4205(0x162)][_0x3a4205(0x16e)][_0x3a4205(0x188)](_0x4a5727,_0x184552)};}async[_0x355422(0x161)](_0x3aca27){const _0x4ca309=_0x355422,_0x3a2c21=this[_0x4ca309(0x162)][_0x4ca309(0x16b)](_0x3aca27[_0x4ca309(0x152)]);return{'files':await this[_0x4ca309(0x162)][_0x4ca309(0x16e)][_0x4ca309(0x17f)](_0x3a2c21,_0x3aca27)};}async[_0x355422(0x16f)](_0xd8d6f1){const _0x3604aa=_0x355422,_0x2d6670=this[_0x3604aa(0x162)][_0x3604aa(0x16b)](_0xd8d6f1[_0x3604aa(0x152)]);return{'file':await this[_0x3604aa(0x162)][_0x3604aa(0x16e)][_0x3604aa(0x14a)](_0x2d6670,_0xd8d6f1)};}async[_0x355422(0x173)](_0x27f0ef){const _0x4a1595=_0x355422,_0x31d849=this[_0x4a1595(0x162)][_0x4a1595(0x16b)](_0x27f0ef[_0x4a1595(0x152)]);return{'search':await this[_0x4a1595(0x137)][_0x4a1595(0x17f)](_0x31d849,_0x27f0ef)};}async[_0x355422(0x13b)](_0x426f5c){const _0x569111=_0x355422;return{'uploads':await this[_0x569111(0x162)][_0x569111(0x13d)][_0x569111(0x13b)](this[_0x569111(0x162)][_0x569111(0x16b)](_0x426f5c[_0x569111(0x152)]),_0x426f5c)};}async[_0x355422(0x184)](_0x2b9c5e){const _0x107da8=_0x355422;return{'upload':await this[_0x107da8(0x162)][_0x107da8(0x13d)][_0x107da8(0x143)](this[_0x107da8(0x162)][_0x107da8(0x16b)](_0x2b9c5e[_0x107da8(0x152)]),_0x2b9c5e)};}async[_0x355422(0x135)](_0xcbc8ac){const _0x3e0c98=_0x355422;return{'upload':await this[_0x3e0c98(0x162)][_0x3e0c98(0x13d)][_0x3e0c98(0x188)](_0xcbc8ac)};}async[_0x355422(0x15f)](_0xb5c646){const _0x47abe2=_0x355422;return{'upload':await this[_0x47abe2(0x162)][_0x47abe2(0x13d)][_0x47abe2(0x170)](_0xb5c646[_0x47abe2(0x182)])};}async[_0x355422(0x12f)](_0x468967){const _0x4c0596=_0x355422;return await this[_0x4c0596(0x162)][_0x4c0596(0x13d)][_0x4c0596(0x15c)](_0x468967[_0x4c0596(0x182)]),{'cancelled':!![]};}async[_0x355422(0x174)](_0x5ba1cb){const _0x2ae9cf=_0x355422;return this[_0x2ae9cf(0x162)][_0x2ae9cf(0x134)][_0x2ae9cf(0x168)](this[_0x2ae9cf(0x162)][_0x2ae9cf(0x16b)](_0x5ba1cb[_0x2ae9cf(0x152)]));}async[_0x355422(0x180)](_0x5188fd){const _0x4cd8e2=_0x355422;if(typeof _0x5188fd[_0x4cd8e2(0x152)]!==_0x4cd8e2(0x14b))throw new Error(_0x4cd8e2(0x13c));return{'file':await this[_0x4cd8e2(0x162)][_0x4cd8e2(0x16e)][_0x4cd8e2(0x164)](this[_0x4cd8e2(0x162)][_0x4cd8e2(0x16b)](_0x5188fd[_0x4cd8e2(0x152)]),_0x5188fd)};}async[_0x355422(0x187)](_0x1ad416){const _0x3829ee=_0x355422;if(typeof _0x1ad416[_0x3829ee(0x152)]!==_0x3829ee(0x14b)||typeof _0x1ad416[_0x3829ee(0x144)]!==_0x3829ee(0x14b)||_0x1ad416[_0x3829ee(0x14c)]!==undefined&&typeof _0x1ad416[_0x3829ee(0x14c)]!==_0x3829ee(0x14b))throw new Error(_0x3829ee(0x148));const _0x2b4257=this[_0x3829ee(0x167)](_0x1ad416[_0x3829ee(0x152)]),_0x16fa55=await resolveGitRepository(_0x2b4257[_0x3829ee(0x144)],_0x1ad416[_0x3829ee(0x14c)]??'');return{'diff':await readCurrentChangeDiff(_0x16fa55,_0x1ad416[_0x3829ee(0x144)])};}async[_0x355422(0x163)](_0x2e3024){const _0x3536be=_0x355422;if(typeof _0x2e3024[_0x3536be(0x152)]!==_0x3536be(0x14b)||typeof _0x2e3024[_0x3536be(0x144)]!==_0x3536be(0x14b)||_0x2e3024[_0x3536be(0x14c)]!==undefined&&typeof _0x2e3024[_0x3536be(0x14c)]!==_0x3536be(0x14b)||_0x2e3024[_0x3536be(0x15a)]!==_0x3536be(0x179)&&_0x2e3024[_0x3536be(0x15a)]!==_0x3536be(0x13a)&&_0x2e3024[_0x3536be(0x15a)]!==_0x3536be(0x145))throw new Error(_0x3536be(0x136));const _0xbd76a=this[_0x3536be(0x167)](_0x2e3024[_0x3536be(0x152)]),_0x599394=await resolveGitRepository(_0xbd76a[_0x3536be(0x144)],_0x2e3024[_0x3536be(0x14c)]??'');return await restoreCurrentChange(_0x599394,_0x2e3024[_0x3536be(0x144)],_0x2e3024[_0x3536be(0x15a)]),this[_0x3536be(0x162)][_0x3536be(0x157)](_0xbd76a['id']),{'restored':!![]};}async[_0x355422(0x131)](_0x513412){const _0x89fb93=_0x355422;if(typeof _0x513412[_0x89fb93(0x152)]!==_0x89fb93(0x14b)||_0x513412[_0x89fb93(0x14c)]!==undefined&&typeof _0x513412[_0x89fb93(0x14c)]!==_0x89fb93(0x14b))throw new Error(_0x89fb93(0x149));const _0x10a8c5=this[_0x89fb93(0x167)](_0x513412[_0x89fb93(0x152)]);return resolveGitRepository(_0x10a8c5[_0x89fb93(0x144)],_0x513412[_0x89fb93(0x14c)]??'');}[_0x355422(0x18a)](_0x4109bd){const _0x575b95=_0x355422;if(_0x4109bd[_0x575b95(0x18a)]===undefined)return undefined;if(!Array[_0x575b95(0x17e)](_0x4109bd[_0x575b95(0x18a)])||_0x4109bd[_0x575b95(0x18a)][_0x575b95(0x158)]>-0x14*0x185+-0x1ad1+0x39b5||_0x4109bd[_0x575b95(0x18a)][_0x575b95(0x155)](_0x2baeb0=>typeof _0x2baeb0!==_0x575b95(0x14b)))throw new Error(_0x575b95(0x160));return _0x4109bd[_0x575b95(0x18a)];}async[_0x355422(0x18c)](_0x33cdb6){const _0x5c0ac3=_0x355422;return{'refs':await listGitHistoryRefs(await this[_0x5c0ac3(0x131)](_0x33cdb6))};}async[_0x355422(0x186)](_0xeb50a){const _0x18fbf5=_0x355422,_0x4b0a7a=this[_0x18fbf5(0x18a)](_0xeb50a);if(_0xeb50a[_0x18fbf5(0x189)]!==undefined&&typeof _0xeb50a[_0x18fbf5(0x189)]!==_0x18fbf5(0x14b))throw new Error(_0x18fbf5(0x176));if(_0xeb50a[_0x18fbf5(0x12c)]!==undefined&&(typeof _0xeb50a[_0x18fbf5(0x12c)]!==_0x18fbf5(0x15b)||!Number[_0x18fbf5(0x12d)](_0xeb50a[_0x18fbf5(0x12c)])||_0xeb50a[_0x18fbf5(0x12c)]<0x1719+-0x1*0x1c02+0x4ea||_0xeb50a[_0x18fbf5(0x12c)]>-0x1*-0xad+0x3*0x76b+-0x241*0xa))throw new Error(_0x18fbf5(0x15e));return readGitHistory(await this[_0x18fbf5(0x131)](_0xeb50a),{..._0x4b0a7a===undefined?{}:{'refs':_0x4b0a7a},...typeof _0xeb50a[_0x18fbf5(0x189)]===_0x18fbf5(0x14b)?{'cursor':_0xeb50a[_0x18fbf5(0x189)]}:{},...typeof _0xeb50a[_0x18fbf5(0x12c)]===_0x18fbf5(0x15b)?{'limit':_0xeb50a[_0x18fbf5(0x12c)]}:{}});}async[_0x355422(0x15d)](_0x31c6df){const _0x38c7df=_0x355422;if(typeof _0x31c6df[_0x38c7df(0x185)]!==_0x38c7df(0x14b))throw new Error(_0x38c7df(0x13e));return{'files':await readGitHistoryFiles(await this[_0x38c7df(0x131)](_0x31c6df),_0x31c6df[_0x38c7df(0x185)],this[_0x38c7df(0x18a)](_0x31c6df))};}async[_0x355422(0x18e)](_0xf445dc){const _0xa9d45=_0x355422;if(typeof _0xf445dc[_0xa9d45(0x185)]!==_0xa9d45(0x14b)||typeof _0xf445dc[_0xa9d45(0x144)]!==_0xa9d45(0x14b)||_0xf445dc[_0xa9d45(0x133)]!==undefined&&typeof _0xf445dc[_0xa9d45(0x133)]!==_0xa9d45(0x14b))throw new Error(_0xa9d45(0x148));return{'diff':await readGitHistoryFileDiff(await this[_0xa9d45(0x131)](_0xf445dc),_0xf445dc[_0xa9d45(0x185)],_0xf445dc[_0xa9d45(0x144)],this[_0xa9d45(0x18a)](_0xf445dc),_0xf445dc[_0xa9d45(0x133)])};}async[_0x355422(0x153)](_0x2503c7){const _0x58a7ba=_0x355422;if(typeof _0x2503c7[_0x58a7ba(0x185)]!==_0x58a7ba(0x14b)||typeof _0x2503c7[_0x58a7ba(0x144)]!==_0x58a7ba(0x14b)||!Number[_0x58a7ba(0x13f)](_0x2503c7[_0x58a7ba(0x17a)])||_0x2503c7[_0x58a7ba(0x17a)]<0x8e*0x34+0x24b*0x9+-0x317b||!Number[_0x58a7ba(0x13f)](_0x2503c7[_0x58a7ba(0x12c)])||_0x2503c7[_0x58a7ba(0x12c)]<-0x1*-0x3c7+0xd*0x23+-0x31*0x1d||_0x2503c7[_0x58a7ba(0x12c)]>(0x9e4+0x832*-0x1+0xcf*-0x2)*(0x16ba+-0xc39+-0x681)*(-0x1a54+0x2c5+0x1b8f))throw new Error(_0x58a7ba(0x183));return{'file':await readGitHistoryFileContentRange(await this[_0x58a7ba(0x131)](_0x2503c7),_0x2503c7[_0x58a7ba(0x185)],_0x2503c7[_0x58a7ba(0x144)],_0x2503c7[_0x58a7ba(0x17a)],_0x2503c7[_0x58a7ba(0x12c)],this[_0x58a7ba(0x18a)](_0x2503c7))};}async[_0x355422(0x17b)](_0x233acb){const _0x1dce14=_0x355422;if(typeof _0x233acb[_0x1dce14(0x152)]!==_0x1dce14(0x14b)||typeof _0x233acb[_0x1dce14(0x169)]!==_0x1dce14(0x14b)||typeof _0x233acb[_0x1dce14(0x18b)]!==_0x1dce14(0x14b))throw new Error(_0x1dce14(0x148));const _0x236c83=this[_0x1dce14(0x167)](_0x233acb[_0x1dce14(0x152)]);return{'diff':await readRestrictedDiff(_0x236c83[_0x1dce14(0x144)],_0x233acb[_0x1dce14(0x169)],_0x233acb[_0x1dce14(0x18b)])};}[_0x355422(0x167)](_0x5d86b7){const _0x14d5fa=_0x355422,_0x19752e=this[_0x14d5fa(0x162)][_0x14d5fa(0x16b)](_0x5d86b7);if(_0x19752e[_0x14d5fa(0x139)]!==_0x14d5fa(0x140))throw new Error(_0x14d5fa(0x146));return _0x19752e;}}function record(_0x155e4e){const _0x1208cf=_0x355422;return typeof _0x155e4e===_0x1208cf(0x16c)&&_0x155e4e!==null&&!Array[_0x1208cf(0x17e)](_0x155e4e)?_0x155e4e:{};}function _0x3b4d(){const _0x5e7739=['CMvHzezPBgvdB250zw50','y2XLyxjbBgW','DxbSB2fKswq','rKLmrv9squ5hrv9jtLzbteLe','y3jLyxrLvxbSB2fK','y29TBwL0','z2L0sgLZDg9YEq','y2HHBMDLrgLMzG','D3jPDgu','y3vYC29Y','CMvMCW','Dg9szwy','z2L0uMvMCW','D2f0y2HdB250CM9SBgvY','z2L0q29TBwL0rMLSzurPzMy','mtK1ota1nZbQtLjjvKW','BgLTAxq','AxnjBNrLz2vY','BgLZDezPBgvZ','y2fUy2vSvxbSB2fK','zw5ZDxjLu25HChnOB3q','z2L0uMvWB3nPDg9YEq','BgLZDa','ChjLDMLVDxnqyxrO','y2HHBMDLCW','D3jPDgvvCgXVywq','r0Lux0niqu5hrv9srvnut1jfx1voqvzbsuXbqKXf','y29UDgvUDfnLyxjJAa','BM9KzuDLBMvYyxrPB24','A2LUza','vu5tvefhruq','ChjLzMXPz2H0','v09ss1nqqunfx05pvf9gt1vora','DxbSB2fKCW','r0Lux0Hju1rpuLLFq09ntuLux0LovKfmsuq','AxntywzLsw50zwDLCG','r0Lux1DpuKTtuefdrq','y2XLyxjxB3jRC3bHy2u','mtG0uvHwzMjo','y3jLyxrL','Cgf0Aa','vu5uuKfds0ve','v09ss1nqqunfx05pvf9hsvq','D3jPDgvgAwXL','r0Lux0rjrKzFsu5wquXjra','r0Lux1jfue9tsvrpuLLFsu5wquXjra','Bxv0yxrL','C3rYAw5N','CMvWB3nPDg9YEvbHDgG','Aw52ywXPzgf0zvrVCgLJ','oxjNwNn4Eq','CMvHza','otmYndbcvKnNtK8','zw5ZDxjLvg9WAwntBMfWC2HVDa','D29YA3nWywnLswq','z2L0q29TBwL0rMLSzunVBNrLBNq','mZi1mtK1mefptNjHyq','C29Tzq','B3bLCMf0Aw9UCW','Aw52ywXPzgf0zq','BgvUz3rO','CMvHzezPBgu','C3rHDgu','BNvTyMvY','y2fUy2vS','z2L0q29TBwL0rMLSzxm','r0Lux0Hju1rpuLLFteLnsvrFsu5wquXjra','y29TCgXLDgvvCgXVywq','r0Lux0Hju1rpuLLFuKvgx0LovKfmsuq','C2vHCMnOrMLSzxm','B3b0Aw9UCW','CMvZDg9YzunOyw5Nzq','CMvHzenVBNrLBNq','D2f0y2G','mJG3mJG4suPqrKDc','z2L0v29YA3nWywnL','y3vYCMvUDa','zNjVBvjLzG','C3rHDhvZ','CMvXDwLYzvDVCMTZCgfJzq','B2jQzwn0','Aw5ZCgvJDfDVCMTZCgfJzq','zMLSzxm','Bxv0yxrLrMLSzq','y29TCgXLDgu','ndi4odqYohLYzeXQAa','y2XLyxi','C2vHCMnOq29UDgvUDa','y3vYCMvUDenOyw5Nzxm','m2T4A0f5Aa','r0Lux0Hju1rpuLLFq1vsu09sx0LovKfmsuq','mZaZmdKZnLbjD3jICa','C25HChnOB3rZ','u1rbr0ve','B2zMC2v0','zgLMzG','y29TBwL0v29YA3nWywnL','ota2mJLRtK5guhC','AxnbCNjHEq','C2vHCMnO'];_0x3b4d=function(){return _0x5e7739;};return _0x3b4d();}