@myagentroam/node 0.9.22 → 0.9.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
1
  /* mar-release-protected */
2
- (function(_0x5aa623,_0x239cd9){const _0x3bf32b=_0x4c01,_0x4ba33f=_0x5aa623();while(!![]){try{const _0x49411f=parseInt(_0x3bf32b(0xb0))/(0x5*0x63a+-0xb9e*-0x1+-0x2abf)*(parseInt(_0x3bf32b(0x10e))/(-0x24ff+0x123f+-0x2ae*-0x7))+parseInt(_0x3bf32b(0xce))/(-0x5c7*-0x3+-0x16b6+0x564)*(-parseInt(_0x3bf32b(0xa8))/(0x7b5+0x1a2f*0x1+0x4*-0x878))+parseInt(_0x3bf32b(0xfe))/(-0x37*-0x7c+0xd61+-0x2800)+parseInt(_0x3bf32b(0x101))/(0x1fbb+0x1*0x12b3+-0x4*0xc9a)+-parseInt(_0x3bf32b(0x102))/(-0x391+-0x76*0x43+0x227a)+-parseInt(_0x3bf32b(0xf5))/(-0x19f9+-0x20a1+0x3aa2)+-parseInt(_0x3bf32b(0x8c))/(0x1*0x7c4+-0x317*-0x2+-0xde9);if(_0x49411f===_0x239cd9)break;else _0x4ba33f['push'](_0x4ba33f['shift']());}catch(_0x3b4971){_0x4ba33f['push'](_0x4ba33f['shift']());}}}(_0x4093,0x3be*-0x301+0x1*-0xc8803+0x20e59f));function _0x4093(){const _0x104be5=['CxvLC3rPB24','mZKZDu5MquLM','C2HHmJu2','CgXHDgzVCM0','zMXHDe1HCa','ChvZAa','ywjZ','yxnZAxn0yw50x21LC3nHz2u','CMfJzq','DhvYBNm','C3rHCNrZv2L0Aa','A2LUza','q09nueXfveve','Dhj1BMnHDgvK','D2LUzg93uMvHzeXPBwL0','q09ervHFveHsrufex0nxrf9jtLzbteLe','C3vIqwDLBNq','C29YDa','oM5HDgL2ztO','BgfZDefJDgL2Axr5qxq','C291CMnLrxzLBNruExbL','DxbKyxrL','ChjLDMLLDW','BwfW','Aw5WDxruCNvUy2f0zwq','C3rYAw5N','y291BNq','Bwf4vg9Rzw5Z','zxjYB3i','BMf0AxzLswq','Aw5WDxq','ntfxvu14EvO','Dg9vChbLCKnHC2u','DgvZDa','Aw5qCM9NCMvZCW','CNvUBMvY','C2vJDgLVBNm','BwfYA2rVD24','Aw1Hz2vbDhrHy2HTzw50CW','u0HpuLrFvevyva','C291CMnLs2LUza','BMf0AxzLlwzPBgu','yxr0ywnOBwvUDhm','zNjVBq','zMLSzufUy2HVCG','y29TCgXLDgvKqxq','y2HHCMfJDgvYCW','qxnRvxnLCLf1zxn0Aw9U','zw50CNK','y2XHDwrLlwnVzgu','C3rHDhvZ','AxnbCNjHEq','Aw5WDxrtDw1Tyxj5','zgf0yq','CM9Szq','C3rHCNrLzef0','zMfPBgvK','u1vdq0vfreve','CxvLC3rPB25Z','BMfTzq','AxntAwrLy2HHAw4','DhjPBq','B3v0Chv0u3vTBwfYEq','DgL0Bgu','x0Lex01ju1njtKC','D2LUzg93rw5K','Dg9tDhjPBMC','DgHYzwfK','CNvUswq','Dg9mB3DLCKnHC2u','nde3mty4ohvKB25hza','DxnLCL9PBNb1Df9Yzxf1zxn0','CgXHBG','rvHurvjoquXFqunusvzf','Bw9KzwW','D2LUmZi','vvnfuG','CMvHC29UAw5Nx3n1Bw1HCNK','BwvZC2fNzq','ndy1ndyWnxDztLHfrW','C3rYAw5NAwz5','yMfZzty0DxjS','mti5nZa1mfviDufXvG','mZG4ndi1oe1oCLn0sa','BM90tg9HzgvK','y3vYC29YuMvZzxq','Dg9VBe5HBwu','Dg9VBf9JywXS','phbYB3bVC2vKx3bSyw4+','qundrvburuq','y3jLyxrLzef0','BgvUz3rO','Dw5RBM93BG','BxvSDgLtzwXLy3q','y3vYC29Y','ndy3oe9owvzhsG','zMLUzeXHC3q','tvvmveLFu0vmrunu','B3v0Chv0vhj1BMnHDgvK','CMvWBgfJzq','C2XPy2u','C2vZC2LVBKLK','ywn0AxzL','BMf0AxzLoG','C3vTBwfYEq','y2XHDwrLlxf1zxn0Aw9Ulq','surmrq','yw5JAg9YqNL0zxm','rKfjteve','AwrSzq','zw50CMLLCW','C3vIywDLBNq','C2v0','BwLU','zgLZDgfUy2u','C291CMnL','mteYoti5m3jqAMfJvG','zMLSztO','Dgv4Da','DxnLCL9TzxnZywDL','Dg9VBfvZzuLK','DMfSDwvZ','zgvZy3jPChrPB24','B3b0Aw9UCW','BgLTAxq','DxnLzfrVA2vUCW','D2LUzg93u3rHCNq','B2jQzwn0','oML0zw06','Dw5Yzwy','zMLSDgvY','AxrLBxm','C29Tzq','C25HChnOB3rfBMq','ve9ptf9fwevdvvrjt05FrKfjteve','u0Lor0Xfx1nftevdva','Bwf4','y3DK','z2v0','y29KzxG','y2XPzw50twvZC2fNzuLK','CMvKDwnL','zgLNzxn0','Cgf5Bg9Hza','nJi3mdHMwuvqtMu','BgfIzwW','zMLUza','AxrLBs0','vu5bvKfjtefcteu','DhLWzq','q09ervHF'];_0x4093=function(){return _0x104be5;};return _0x4093();}import{createHash}from'node:crypto';import{fileURLToPath}from'node:url';import{stripClaudePlanTag}from'../runner-command-engine.js';import{stripMissionStartPrompt}from'../service/mission-runtime.js';import{parseCodexComposerImageMarkers}from'../runner/codex/composer-image-markers.js';import{normalizeCodexTool}from'../runner/codex/tool-normalizer.js';import{normalizeClaudeTool}from'../runner/claude/tool-normalizer.js';import{compactRunnerText,isPlainRecord,nativePageEnd}from'./node-operation-parsers.js';export function extractId(_0x1c0c39,_0x5d722a){const _0x5e601f=_0x4c01;if(typeof _0x1c0c39===_0x5e601f(0x97)&&_0x1c0c39!==null&&_0x5d722a in _0x1c0c39&&typeof _0x1c0c39[_0x5d722a]===_0x5e601f(0x97)&&_0x1c0c39[_0x5d722a]!==null&&typeof _0x1c0c39[_0x5d722a]['id']===_0x5e601f(0xc8))return _0x1c0c39[_0x5d722a]['id'];throw new Error(_0x5e601f(0xae)+_0x5d722a[_0x5e601f(0xcf)]()+_0x5e601f(0xef));}export async function settleWithin(_0x4fdd95,_0x1c9cae){const _0x5d0cc4=_0x4c01;let _0x1e3755;try{return await Promise[_0x5d0cc4(0xb7)]([_0x4fdd95,new Promise(_0x2b9cfa=>{const _0x26b465=_0x5d0cc4;_0x1e3755=setTimeout(()=>_0x2b9cfa(undefined),_0x1c9cae),_0x1e3755[_0x26b465(0x99)]();})]);}finally{if(_0x1e3755!==undefined)clearTimeout(_0x1e3755);}}export function extractCodexThreads(_0x184f49){const _0xd04076=_0x4c01;if(typeof _0x184f49!==_0xd04076(0x97)||_0x184f49===null||!(_0xd04076(0xe4)in _0x184f49))return[];const _0x221039=_0x184f49[_0xd04076(0xe4)];if(!Array[_0xd04076(0xe2)](_0x221039))return[];return _0x221039[_0xd04076(0xb3)](_0x1a8049=>{const _0x54e330=_0xd04076;if(typeof _0x1a8049!==_0x54e330(0x97)||_0x1a8049===null)return[];const _0x293a8e=_0x1a8049;if(typeof _0x293a8e['id']!==_0x54e330(0xc8))return[];const _0x42525a=typeof _0x293a8e[_0x54e330(0xd7)]===_0x54e330(0xc8)?_0x293a8e[_0x54e330(0xd7)]:typeof _0x293a8e[_0x54e330(0x8b)]===_0x54e330(0xc8)?_0x293a8e[_0x54e330(0x8b)]:typeof _0x293a8e[_0x54e330(0x8b)]===_0x54e330(0x97)&&_0x293a8e[_0x54e330(0x8b)]!==null&&typeof _0x293a8e[_0x54e330(0x8b)][_0x54e330(0xba)]===_0x54e330(0xc8)?_0x293a8e[_0x54e330(0x8b)][_0x54e330(0xba)]:undefined,_0x55d501=isPlainRecord(_0x293a8e[_0x54e330(0x8b)])?_0x293a8e[_0x54e330(0x8b)]:undefined,_0x156e51=_0x42525a===_0x54e330(0x87)||_0x55d501?.[_0x54e330(0xba)]===_0x54e330(0x87)||isPlainRecord(_0x55d501?.[_0x54e330(0x87)])||isPlainRecord(_0x55d501?.[_0x54e330(0xbf)]),_0x4732e0=typeof _0x293a8e[_0x54e330(0xea)]===_0x54e330(0xc8)&&_0x293a8e[_0x54e330(0xea)][_0x54e330(0xec)]()[_0x54e330(0x10a)]>0xe8f+0x2*0x25+-0xed9?_0x293a8e[_0x54e330(0xea)][_0x54e330(0xec)]():typeof _0x293a8e[_0x54e330(0xc5)]===_0x54e330(0xc8)&&_0x293a8e[_0x54e330(0xc5)][_0x54e330(0xec)]()[_0x54e330(0x10a)]>-0x1*0x1052+0x163c+-0x5ea?_0x293a8e[_0x54e330(0xc5)][_0x54e330(0xec)]():undefined;return[{'id':_0x293a8e['id'],'source':_0x42525a,'derived':_0x156e51,'cwd':_0x293a8e[_0x54e330(0xa1)],'title':_0x4732e0}];});}export function codexThreadActivity(_0x2347de){const _0x22b608=_0x4c01;if(!isPlainRecord(_0x2347de)||!isPlainRecord(_0x2347de[_0x22b608(0xf2)]))return _0x22b608(0xac);const _0x1b8d76=_0x2347de[_0x22b608(0xf2)][_0x22b608(0xe1)];if(!isPlainRecord(_0x1b8d76)||typeof _0x1b8d76[_0x22b608(0xad)]!==_0x22b608(0xc8))return _0x22b608(0xac);if(_0x1b8d76[_0x22b608(0xad)]===_0x22b608(0x7e))return _0x22b608(0xf8);if(_0x1b8d76[_0x22b608(0xad)]===_0x22b608(0x85)||_0x1b8d76[_0x22b608(0xad)]===_0x22b608(0x103))return _0x22b608(0x82);return _0x22b608(0xac);}export function codexActiveTurnId(_0x558632){const _0x1ca7ee=_0x4c01;if(!isPlainRecord(_0x558632)||!isPlainRecord(_0x558632[_0x1ca7ee(0xf2)])||!Array[_0x1ca7ee(0xe2)](_0x558632[_0x1ca7ee(0xf2)][_0x1ca7ee(0xb8)]))return undefined;const _0x3aa77d=_0x558632[_0x1ca7ee(0xf2)][_0x1ca7ee(0xb8)][_0x1ca7ee(0xaa)](_0x133963=>isPlainRecord(_0x133963)&&typeof _0x133963['id']===_0x1ca7ee(0xc8)&&(_0x133963[_0x1ca7ee(0xe1)]===_0x1ca7ee(0x7e)||_0x133963[_0x1ca7ee(0xe1)]===_0x1ca7ee(0xd1)));return isPlainRecord(_0x3aa77d)&&typeof _0x3aa77d['id']===_0x1ca7ee(0xc8)?_0x3aa77d['id']:undefined;}export function codexThreadCwd(_0x3bbe46){const _0x5b4cbe=_0x4c01;if(typeof _0x3bbe46!==_0x5b4cbe(0xc8)||_0x3bbe46[_0x5b4cbe(0x10a)]===-0x2673+-0x1f1b+0x2*0x22c7)throw new Error(_0x5b4cbe(0xbe));if(!_0x3bbe46[_0x5b4cbe(0xb9)](_0x5b4cbe(0x8d)))return _0x3bbe46;try{return fileURLToPath(_0x3bbe46);}catch{throw new Error(_0x5b4cbe(0xbe));}}export function isWithinWorkspace(_0xdc0c5c,_0x554611){const _0x2cee2b=_0x4c01,_0x1485ef=_0x474e88=>{const _0x5887ae=_0x4c01,_0x14ab9b=_0x474e88[_0x5887ae(0x112)](/[\\/]+/g,'/')[_0x5887ae(0x112)](/\/$/,'');return process[_0x5887ae(0xb2)]===_0x5887ae(0xfa)?_0x14ab9b[_0x5887ae(0xf4)]():_0x14ab9b;},_0x4dabdd=_0x1485ef(_0xdc0c5c),_0x59ea42=_0x1485ef(_0x554611);if(_0x4dabdd===_0x59ea42)return!![];return _0x4dabdd[_0x2cee2b(0xb9)](_0x59ea42+'/');}export function claudeDiscoveredSession(_0xff0fba,_0x216e44){const _0x2300b9=_0x4c01;if(typeof _0xff0fba!==_0x2300b9(0x97)||_0xff0fba===null)return undefined;const _0x584bff=_0xff0fba;if(_0x584bff[_0x2300b9(0xeb)]===!![])return undefined;const _0x12c812=typeof _0x584bff[_0x2300b9(0x114)]===_0x2300b9(0xc8)?_0x584bff[_0x2300b9(0x114)]:typeof _0x584bff['id']===_0x2300b9(0xc8)?_0x584bff['id']:undefined;if(_0x12c812===undefined||_0x12c812[_0x2300b9(0x10a)]===0x4c1+-0x5e*0x1d+0x5e5)return undefined;const _0x5b0ee3=typeof _0x584bff[_0x2300b9(0x80)]===_0x2300b9(0xc8)?_0x584bff[_0x2300b9(0x80)]:typeof _0x584bff[_0x2300b9(0xee)]===_0x2300b9(0xc8)?_0x584bff[_0x2300b9(0xee)]:undefined,_0x101dfc=typeof _0x584bff[_0x2300b9(0xa1)]===_0x2300b9(0xc8)&&_0x584bff[_0x2300b9(0xa1)][_0x2300b9(0x10a)]>-0x822+0x10d6+-0x2*0x45a?_0x584bff[_0x2300b9(0xa1)]:_0x216e44;return{'externalSessionId':_0x12c812,'cwd':_0x101dfc,..._0x5b0ee3===undefined?{}:{'title':_0x5b0ee3[_0x2300b9(0x113)](-0x57*-0x3d+-0x1c67+0x7ac,0x1cac+0x819+0x40d*-0x9)}};}export function latestNativeActivity(_0x526495){const _0x3aa3d2=_0x4c01;return _0x526495[_0x3aa3d2(0xc2)];}export function sameContextUsage(_0x45b71d,_0x2ba375){const _0x7ec00=_0x4c01;return _0x45b71d[_0x7ec00(0xf9)]===_0x2ba375[_0x7ec00(0xf9)]&&_0x45b71d[_0x7ec00(0x95)]===_0x2ba375[_0x7ec00(0x95)]&&_0x45b71d[_0x7ec00(0xca)]===_0x2ba375[_0x7ec00(0xca)];}export function isNativeHistory(_0x167b89){const _0x11ff8a=_0x4c01;return typeof _0x167b89===_0x11ff8a(0x97)&&_0x167b89!==null&&Array[_0x11ff8a(0xe2)](_0x167b89[_0x11ff8a(0x9b)]);}export function deduplicateDirectSessions(_0x336a03){const _0xdbfd17=_0x4c01,_0x248e94=new Map();for(const _0x3049bc of _0x336a03){const _0x5d9421=_0x248e94[_0xdbfd17(0xa2)](_0x3049bc['id']);if(_0x5d9421===undefined||_0x5d9421[_0xdbfd17(0xc2)]<_0x3049bc[_0xdbfd17(0xc2)])_0x248e94[_0xdbfd17(0x88)](_0x3049bc['id'],_0x3049bc);}return[..._0x248e94[_0xdbfd17(0x91)]()][_0xdbfd17(0xc0)]((_0x42325e,_0x5a6ed2)=>_0x5a6ed2[_0xdbfd17(0xc2)]-_0x42325e[_0xdbfd17(0xc2)]);}export function nativeConversationPage(_0x3b6850,_0x555f37,_0x3dd6bf,_0x169a14=[],_0x29befc=()=>[]){const _0x356399=_0x4c01,_0x2e8428=Math[_0x356399(0x89)](Math[_0x356399(0xa0)](_0x3dd6bf[_0x356399(0x94)]??-0x13*0x6b+0xae*0x6+0x3fb,-0x1*-0x112d+-0x55*0x13+-0x3*0x39f),-0x2*0xa99+0x588+0x119e),_0x5838c4=_0x555f37[_0x356399(0x104)]===!![]?undefined:_0x3dd6bf[_0x356399(0x10d)],_0x337ad8=nativeTranscriptTurns(_0x555f37[_0x356399(0x9b)]),_0x18ae72=nativeTranscriptTurnIds(_0x3b6850['id'],_0x337ad8),_0x160218=nativePageEnd(_0x5838c4,_0x3b6850['id'],_0x337ad8[_0x356399(0x10a)]),_0x7cb43f=Math[_0x356399(0xa0)](0x114*0xd+0xd0b+-0x3*0x905,_0x160218-_0x2e8428),_0x194fda=_0x337ad8[_0x356399(0x113)](_0x7cb43f,_0x160218)[_0x356399(0xc6)]((_0x32398c,_0xf8546e)=>{const _0x3814bb=_0x356399,_0x1b7b38=_0x32398c[_0x3814bb(0xaa)](({entry:_0x29b959})=>_0x29b959[_0x3814bb(0xba)]===_0x3814bb(0xfd)&&_0x29b959[_0x3814bb(0xe5)]===_0x3814bb(0xfb))?.[_0x3814bb(0xdf)],_0x3715f2=_0x1b7b38?.[_0x3814bb(0xba)]===_0x3814bb(0xfd)?nativeUserClientMessageId(_0x3b6850[_0x3814bb(0xd2)],_0x1b7b38,_0x1b7b38[_0x3814bb(0x109)],_0x169a14):null,_0x41a501=typeof _0x3715f2===_0x3814bb(0xc8)?_0x169a14[_0x3814bb(0xaa)](_0x4a2ff0=>runtimeTurnClientMessageId(_0x4a2ff0)===_0x3715f2):undefined,_0x3ef09a=_0x41a501?.['id']??_0x18ae72[_0x7cb43f+_0xf8546e],_0x529788=nativeTranscriptItemIdentities(_0x32398c),_0x42e965=_0x32398c[_0x3814bb(0xc6)](({entry:_0x4ce8ec,index:_0x454293},_0x310b66)=>({...nativeTranscriptConversationItem(_0x3b6850,_0x4ce8ec,_0x454293,_0x529788[_0x310b66],_0x3ef09a,_0x169a14,_0x29befc),'runId':_0x41a501?.[_0x3814bb(0xf3)]??null})),_0x289b38=(_0x41a501?.[_0x3814bb(0x9b)]??[])[_0x3814bb(0x9a)](_0xf993b4=>_0xf993b4[_0x3814bb(0xba)]===_0x3814bb(0xcb))[_0x3814bb(0xc6)](_0x243314=>({..._0x243314,'turnId':_0x3ef09a,'runId':_0x41a501?.[_0x3814bb(0xf3)]??null})),_0x531db2=runtimeAssistantProjectionMoreComplete(_0x41a501,_0x42e965)?_0x41a501[_0x3814bb(0x9b)][_0x3814bb(0xc6)](_0x3236fd=>({..._0x3236fd,'turnId':_0x3ef09a,'runId':_0x41a501[_0x3814bb(0xf3)]})):[..._0x42e965,..._0x289b38[_0x3814bb(0x9a)](_0x1c02a0=>!_0x42e965[_0x3814bb(0x9c)](_0x3a25d7=>_0x3a25d7['id']===_0x1c02a0['id']))],_0x2118c6=_0x531db2[0x1129+0x1*0x1a6b+-0x2b94]?.[_0x3814bb(0xe6)]??null,_0x10855e=_0x531db2['at'](-(-0x23*-0xe3+0x1*0xc91+-0x1*0x2b99))?.[_0x3814bb(0xdc)]??_0x2118c6,_0x34ffda=lastNativeItemId(_0x32398c);return{'id':_0x3ef09a,'sessionId':_0x3b6850['id'],'runId':_0x41a501?.[_0x3814bb(0xf3)]??null,'userItemId':_0x531db2[_0x3814bb(0xaa)](_0x481801=>_0x481801[_0x3814bb(0xba)]===_0x3814bb(0x8f))?.['id']??null,'status':_0x289b38[_0x3814bb(0x10a)]>-0x3*0x853+-0x1df*0x7+-0x2612*-0x1?_0x3814bb(0x84):_0x3814bb(0xe8),'model':null,'effort':null,'access':null,..._0x34ffda===undefined||_0x3b6850[_0x3814bb(0xd2)]!==_0x3814bb(0xe0)?{}:{'rewind':{'before':lastNativeItemId(_0x337ad8[_0x7cb43f+_0xf8546e-(-0x2445+-0x25df+-0x3*-0x18b7)]??[])??null,'after':_0x34ffda}},'items':_0x531db2,'startedAt':_0x2118c6,'completedAt':_0x10855e};}),_0x84af40=_0x194fda,_0x49e661=_0x7cb43f,_0xd97d45={'sessionId':_0x3b6850['id'],..._0x555f37[_0x356399(0x9d)]===undefined?{}:{'snapshotEnd':_0x555f37[_0x356399(0x9d)]},..._0x555f37[_0x356399(0xf0)]===undefined?{}:{'nextEnd':_0x555f37[_0x356399(0xf0)]},..._0x555f37[_0x356399(0xdb)]===undefined?{}:{'fileAnchor':_0x555f37[_0x356399(0xdb)]},..._0x555f37[_0x356399(0x83)]===undefined?{}:{'anchorBytes':_0x555f37[_0x356399(0x83)]},'readLimit':_0x555f37[_0x356399(0xbd)]??_0x2e8428},_0x4e14bd=_0x555f37[_0x356399(0xbc)]===!![]&&_0x555f37[_0x356399(0x96)]!==undefined&&_0x555f37[_0x356399(0x9d)]!==undefined&&_0x555f37[_0x356399(0xdb)]!==undefined&&_0x555f37[_0x356399(0x83)]!==undefined?Buffer[_0x356399(0xda)](JSON[_0x356399(0xff)]({'sessionId':_0x3b6850['id'],'snapshotEnd':_0x555f37[_0x356399(0x9d)],'nextEnd':_0x555f37[_0x356399(0x96)],'fileAnchor':_0x555f37[_0x356399(0xdb)],'anchorBytes':_0x555f37[_0x356399(0x83)],'readLimit':_0x555f37[_0x356399(0xbd)]??_0x2e8428}))[_0x356399(0xf1)](_0x356399(0x100)):null;return{'turns':_0x84af40,'nextCursor':_0x49e661>0x3*0x709+0x16fc+-0x2c17?Buffer[_0x356399(0xda)](JSON[_0x356399(0xff)]({..._0xd97d45,'end':_0x49e661}))[_0x356399(0xf1)](_0x356399(0x100)):_0x4e14bd};}export function runtimeAssistantProjectionMoreComplete(_0x3f629a,_0x505def){const _0x2c0d5d=_0x4c01;if(_0x3f629a===undefined)return![];const _0x1ddff0=_0x24f5e3=>_0x24f5e3[_0x2c0d5d(0xa5)]((_0x196443,_0x26a942)=>{const _0x47aa26=_0x2c0d5d;if(_0x26a942[_0x47aa26(0xba)]!==_0x47aa26(0xb6)||!isPlainRecord(_0x26a942[_0x47aa26(0xa7)]))return _0x196443;return{'count':_0x196443[_0x47aa26(0xc9)]+(-0x4ed*-0x2+-0x1acc+0x10f3*0x1),'characters':_0x196443[_0x47aa26(0xdd)]+(typeof _0x26a942[_0x47aa26(0xa7)][_0x47aa26(0x8e)]===_0x47aa26(0xc8)?_0x26a942[_0x47aa26(0xa7)][_0x47aa26(0x8e)][_0x47aa26(0x10a)]:-0xf7a+0x18e8*-0x1+-0x6bb*-0x6)};},{'count':0x0,'characters':0x0}),_0x63a487=_0x1ddff0(_0x3f629a[_0x2c0d5d(0x9b)]),_0x47ec28=_0x1ddff0(_0x505def);return _0x63a487[_0x2c0d5d(0xc9)]>_0x47ec28[_0x2c0d5d(0xc9)]||_0x63a487[_0x2c0d5d(0xdd)]>_0x47ec28[_0x2c0d5d(0xdd)];}function runtimeTurnClientMessageId(_0x1bd680){const _0x32955f=_0x4c01,_0x5889f7=_0x1bd680[_0x32955f(0x9b)][_0x32955f(0xaa)](_0x2bef1=>_0x2bef1[_0x32955f(0xba)]===_0x32955f(0x8f));return isPlainRecord(_0x5889f7?.[_0x32955f(0xa7)])&&typeof _0x5889f7[_0x32955f(0xa7)][_0x32955f(0xa4)]===_0x32955f(0xc8)?_0x5889f7[_0x32955f(0xa7)][_0x32955f(0xa4)]:undefined;}function lastNativeItemId(_0x1ce41f){const _0x5b396f=_0x4c01;return _0x1ce41f[_0x5b396f(0x10f)](({entry:_0x1021ee})=>_0x1021ee[_0x5b396f(0xcc)]!==undefined)?.[_0x5b396f(0xdf)][_0x5b396f(0xcc)];}function nativeTranscriptTurnIds(_0x181730,_0x3e1b3f){const _0x1cb092=_0x4c01,_0x2b9e6a=new Map();return _0x3e1b3f[_0x1cb092(0xc6)](_0x12cdd5=>{const _0x528e6b=_0x1cb092,_0x25631d=_0x12cdd5[_0x528e6b(0xaa)](({entry:_0x5d80be})=>_0x5d80be[_0x528e6b(0xba)]===_0x528e6b(0xfd)&&_0x5d80be[_0x528e6b(0xe5)]===_0x528e6b(0xfb))?.[_0x528e6b(0xdf)],_0x4bc355=_0x25631d??_0x12cdd5[-0x1bfb+-0xef4+-0x2aef*-0x1]?.[_0x528e6b(0xdf)],_0x5f3a61=_0x4bc355?.[_0x528e6b(0xcc)]??nativeTranscriptItemFingerprint(_0x4bc355),_0x160c9e=_0x2b9e6a[_0x528e6b(0xa2)](_0x5f3a61)??0xc8c*-0x1+0x123f+-0x1*0x5b3;return _0x2b9e6a[_0x528e6b(0x88)](_0x5f3a61,_0x160c9e+(-0x3*0xa77+-0x222c+-0x4192*-0x1)),_0x181730+_0x528e6b(0xc1)+_0x5f3a61+(_0x160c9e===-0x3*-0x49d+0xc25+-0x19fc?'':':'+_0x160c9e);});}function _0x4c01(_0x38d898,_0x3c7666){_0x38d898=_0x38d898-(0x9d*0x6+-0x865+0x2b*0x1f);const _0x3c20c6=_0x4093();let _0x2db087=_0x3c20c6[_0x38d898];if(_0x4c01['kFuMPD']===undefined){var _0x1135e8=function(_0x1eb5f5){const _0x4bfdb0='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x17781f='',_0x3209a8='';for(let _0x4ef97c=0x245c+0x1*0xec1+-0x331d,_0x36bda6,_0x17725c,_0x5d3c8=0x1889+0x108f+0x2*-0x148c;_0x17725c=_0x1eb5f5['charAt'](_0x5d3c8++);~_0x17725c&&(_0x36bda6=_0x4ef97c%(-0x335+-0x12fc+0x1635)?_0x36bda6*(0x2*-0x23f+-0x5*0x7cd+0x2bbf)+_0x17725c:_0x17725c,_0x4ef97c++%(0x10ee+-0x19bd+-0x8d3*-0x1))?_0x17781f+=String['fromCharCode'](-0x264d+-0x12ee*-0x2+-0x17*-0x10&_0x36bda6>>(-(0x2*-0xfdd+-0x206e+0x402a)*_0x4ef97c&0x1649+0x1*0x1ffa+-0x363d)):0x14d2+-0x1*-0x1db9+-0x39*0xe3){_0x17725c=_0x4bfdb0['indexOf'](_0x17725c);}for(let _0x27744=-0x1*-0x41b+-0x182c+0xb*0x1d3,_0x32187b=_0x17781f['length'];_0x27744<_0x32187b;_0x27744++){_0x3209a8+='%'+('00'+_0x17781f['charCodeAt'](_0x27744)['toString'](-0x12a8+0x2*-0xdc7+0x1723*0x2))['slice'](-(-0x1854+0x1271*0x1+0x5e5));}return decodeURIComponent(_0x3209a8);};_0x4c01['LxsWzz']=_0x1135e8,_0x4c01['UesBCZ']={},_0x4c01['kFuMPD']=!![];}const _0x1fb369=_0x3c20c6[0x1e7d+0x9*0x131+-0x19*0x1a6];_0x4c01['mkkyRv']!==_0x1fb369&&(_0x4c01['UesBCZ']={},_0x4c01['mkkyRv']=_0x1fb369);const _0x5b0f3d=_0x4c01['UesBCZ'][_0x38d898];return _0x5b0f3d===undefined?(_0x2db087=_0x4c01['LxsWzz'](_0x2db087),_0x4c01['UesBCZ'][_0x38d898]=_0x2db087):_0x2db087=_0x5b0f3d,_0x2db087;}function nativeTranscriptItemIdentities(_0x4baaa8){const _0x553d04=_0x4c01,_0xcbfc24=new Map();for(const {entry:_0xf16c4c}of _0x4baaa8)if(_0xf16c4c[_0x553d04(0xcc)]!==undefined)_0xcbfc24[_0x553d04(0x88)](_0xf16c4c[_0x553d04(0xcc)],(_0xcbfc24[_0x553d04(0xa2)](_0xf16c4c[_0x553d04(0xcc)])??0x48a*0x1+0x3a3*-0x4+0xa02)+(-0x18f4+-0x26a6+0x3f9b));const _0x154f2c=new Map();return _0x4baaa8[_0x553d04(0xc6)](({entry:_0x112b25})=>{const _0x28eabb=_0x553d04,_0xbf1b21=_0x112b25[_0x28eabb(0xcc)]!==undefined&&_0xcbfc24[_0x28eabb(0xa2)](_0x112b25[_0x28eabb(0xcc)])===0x1*-0x122c+0x2fe*-0x2+-0x1829*-0x1?_0x112b25[_0x28eabb(0xcc)]:''+(_0x112b25[_0x28eabb(0xcc)]===undefined?'':_0x112b25[_0x28eabb(0xcc)]+':')+nativeTranscriptItemFingerprint(_0x112b25),_0x4b4b3e=_0x154f2c[_0x28eabb(0xa2)](_0xbf1b21)??-0x1*-0xb3f+0x1683+-0x95*0x3a;return _0x154f2c[_0x28eabb(0x88)](_0xbf1b21,_0x4b4b3e+(-0xa*0xaa+0x26b3+-0x200e)),_0x4b4b3e===0x49d+0x577+-0xa14?_0xbf1b21:_0xbf1b21+':'+_0x4b4b3e;});}function nativeTranscriptItemFingerprint(_0x28ab63){const _0x94ee3=_0x4c01;return createHash(_0x94ee3(0xb1))[_0x94ee3(0xc4)](JSON[_0x94ee3(0xff)](_0x28ab63??null))[_0x94ee3(0xa6)](_0x94ee3(0x100))[_0x94ee3(0x113)](-0x201c+0xb*0x3d+0x1d7d,0xe2e+-0x173b+-0x925*-0x1);}function nativeTranscriptTurns(_0x56dfec){const _0x32162f=_0x4c01,_0x574c90=[];let _0xb14318=[];for(const [_0x3ac059,_0x153220]of _0x56dfec[_0x32162f(0x86)]()){_0x153220[_0x32162f(0xba)]===_0x32162f(0xfd)&&_0x153220[_0x32162f(0xe5)]===_0x32162f(0xfb)&&_0xb14318[_0x32162f(0x10a)]>-0x2212+-0x3*0xccd+0x4879&&(_0x574c90[_0x32162f(0xb4)](_0xb14318),_0xb14318=[]),_0xb14318[_0x32162f(0xb4)]({'entry':_0x153220,'index':_0x3ac059});}if(_0xb14318[_0x32162f(0x10a)]>0x10a*0x24+-0x6a*-0x4+-0x14*0x1f4)_0x574c90[_0x32162f(0xb4)](_0xb14318);return _0x574c90;}function nativeTranscriptConversationItem(_0x5edc40,_0x57d045,_0x4ce554,_0x48081c,_0x5acaa3,_0x5d8932,_0x39bd2c){const _0x171a7b=_0x4c01,_0x3a7087=_0x57d045[_0x171a7b(0x109)],_0x1f9a44=_0x57d045[_0x171a7b(0xba)]===_0x171a7b(0x106),_0x37dd4e=_0x57d045[_0x171a7b(0xba)]===_0x171a7b(0x10b),_0x44452e=_0x57d045[_0x171a7b(0xba)]===_0x171a7b(0xfc),_0x36ca30=_0x5edc40[_0x171a7b(0xd2)]===_0x171a7b(0xe0)&&_0x1f9a44?normalizeClaudeTool(_0x57d045[_0x171a7b(0x105)],_0x57d045[_0x171a7b(0xcd)],_0x57d045[_0x171a7b(0xed)],_0x57d045[_0x171a7b(0xe7)],_0x57d045[_0x171a7b(0xc7)]||_0x57d045[_0x171a7b(0x111)]):undefined,_0x5d04af=_0x5edc40[_0x171a7b(0xd2)]===_0x171a7b(0xa3)&&_0x1f9a44?normalizeCodexTool({'name':_0x57d045[_0x171a7b(0x105)],'namespace':_0x171a7b(0xa3),'rawInput':_0x57d045[_0x171a7b(0xcd)],'inputSummary':_0x57d045[_0x171a7b(0xe3)],'outputSummary':_0x57d045[_0x171a7b(0xed)],'truncated':_0x57d045[_0x171a7b(0xc7)]||_0x57d045[_0x171a7b(0x111)],..._0x57d045[_0x171a7b(0xd5)]===undefined?{}:{'attachments':_0x57d045[_0x171a7b(0xd5)]}}):undefined,_0x21d92f=_0x5edc40[_0x171a7b(0xd2)]===_0x171a7b(0xe0)&&_0x1f9a44&&_0x57d045[_0x171a7b(0x105)]===_0x171a7b(0xde)&&isPlainRecord(_0x57d045[_0x171a7b(0xcd)])?claudeUserInputQuestions(_0x57d045[_0x171a7b(0xcd)]):[],_0x50da96=_0x21d92f[_0x171a7b(0x10a)]>0xaae*-0x2+-0x19eb*-0x1+0x185*-0x3,_0xf9b8af=_0x57d045[_0x171a7b(0xba)]===_0x171a7b(0xfd)&&_0x57d045[_0x171a7b(0xe5)]===_0x171a7b(0xfb)?nativeUserClientMessageId(_0x5edc40[_0x171a7b(0xd2)],_0x57d045,_0x3a7087,_0x5d8932):null,_0x1e2cc8=_0x57d045[_0x171a7b(0xba)]===_0x171a7b(0xfd)?_0x57d045[_0x171a7b(0xe5)]===_0x171a7b(0xfb)?nativeUserMessageText(_0x5edc40[_0x171a7b(0xd2)],_0x57d045[_0x171a7b(0x8e)]):_0x57d045[_0x171a7b(0x8e)]:'',_0x35d8e2=_0xf9b8af===null?undefined:runtimeUserMessagePayload(_0xf9b8af,_0x5d8932),_0x4bd725=Array[_0x171a7b(0xe2)](_0x35d8e2?.[_0x171a7b(0xd9)])?_0x35d8e2[_0x171a7b(0xd9)]:_0x57d045[_0x171a7b(0xba)]===_0x171a7b(0xfd)&&_0x57d045[_0x171a7b(0xe5)]===_0x171a7b(0xfb)&&_0x57d045[_0x171a7b(0xd5)]!==undefined?_0x39bd2c(_0x57d045[_0x171a7b(0xd5)]):[],_0x163671=_0x57d045[_0x171a7b(0xba)]===_0x171a7b(0xfd)&&_0x57d045[_0x171a7b(0xe5)]!==_0x171a7b(0xfb)?claudePlanText(_0x1e2cc8):undefined,_0x3a7354={'id':_0x5acaa3+_0x171a7b(0x98)+_0x48081c,'sessionId':_0x5edc40['id'],'turnId':_0x5acaa3,'runId':null,'parentItemId':null,'sourceSequence':_0x4ce554,'revision':0x0,'kind':_0x50da96?_0x171a7b(0xf6):_0x44452e?_0x171a7b(0xfc):_0x1f9a44?_0x36ca30?.[_0x171a7b(0xba)]??_0x5d04af?.[_0x171a7b(0xba)]??_0x171a7b(0x106):_0x37dd4e?_0x171a7b(0x10b):_0x57d045[_0x171a7b(0xba)]===_0x171a7b(0xfd)&&_0x57d045[_0x171a7b(0xe5)]===_0x171a7b(0xfb)?_0x171a7b(0x8f):_0x163671!==undefined?_0x171a7b(0xf7):_0x171a7b(0xb6),'status':_0x171a7b(0xbb),'payload':_0x50da96?{'requestId':_0x171a7b(0x7f)+(_0x57d045[_0x171a7b(0xba)]===_0x171a7b(0x106)?_0x57d045[_0x171a7b(0x90)]:_0x171a7b(0xab)+_0x48081c),'questions':_0x21d92f}:_0x44452e?{'sections':_0x57d045[_0x171a7b(0xd3)]}:_0x1f9a44?{..._0x36ca30?.[_0x171a7b(0xa7)]??_0x5d04af?.[_0x171a7b(0xa7)]??{'namespace':_0x5edc40[_0x171a7b(0xd2)],'toolName':_0x57d045[_0x171a7b(0x105)],'title':_0x57d045[_0x171a7b(0x105)],'inputSummary':_0x57d045[_0x171a7b(0xe3)],'outputSummary':_0x57d045[_0x171a7b(0xed)],'progressLabel':null,'errorCode':_0x57d045[_0x171a7b(0xe7)]?_0x171a7b(0x9e):null,'truncated':_0x57d045[_0x171a7b(0xc7)]||_0x57d045[_0x171a7b(0x111)]},..._0x57d045[_0x171a7b(0xd5)]===undefined?{}:{'attachments':_0x39bd2c(_0x57d045[_0x171a7b(0xd5)])}}:_0x37dd4e?{'sourceEventType':_0x57d045[_0x171a7b(0xc3)],'label':_0x57d045[_0x171a7b(0xa9)]}:_0x57d045[_0x171a7b(0xba)]===_0x171a7b(0xfd)&&_0x57d045[_0x171a7b(0xe5)]===_0x171a7b(0xfb)?{'clientMessageId':_0xf9b8af,'text':_0x1e2cc8,'contexts':[],'delivery':_0x171a7b(0x108),..._0x4bd725[_0x171a7b(0x10a)]===0x1684+-0x7*-0x484+-0x3620?{}:{'attachments':_0x4bd725}}:_0x163671!==undefined?{'explanation':compactRunnerText(_0x163671,-0x8125+0x6f2d+-0xf6*-0x64),'steps':[]}:{'text':_0x1e2cc8,'format':_0x171a7b(0xd4),'source':_0x171a7b(0xd8)},'startedAt':_0x3a7087,'completedAt':_0x3a7087};return _0x3a7354;}export function nativeUserClientMessageId(_0x54d1b6,_0x14f1bd,_0x457b25,_0x4cb0e8){const _0x8951bf=_0x4c01,_0x38b129=[];for(const _0x2c8ed0 of _0x4cb0e8){const _0x1b1f4f=_0x2c8ed0[_0x8951bf(0x9b)][_0x8951bf(0xaa)](_0x5f3ad3=>_0x5f3ad3[_0x8951bf(0xba)]===_0x8951bf(0x8f));if(_0x1b1f4f===undefined||!isPlainRecord(_0x1b1f4f[_0x8951bf(0xa7)]))continue;const _0x51fbc1=_0x1b1f4f[_0x8951bf(0xa7)],_0x10dd18=typeof _0x51fbc1[_0x8951bf(0xa4)]===_0x8951bf(0xc8)?_0x51fbc1[_0x8951bf(0xa4)]:null;if(_0x10dd18===null||_0x51fbc1[_0x8951bf(0x8e)]!==nativeUserMessageText(_0x54d1b6,_0x14f1bd[_0x8951bf(0x8e)]))continue;const _0x4e70cb=_0x1b1f4f[_0x8951bf(0xe6)]??_0x2c8ed0[_0x8951bf(0xe6)];_0x38b129[_0x8951bf(0xb4)]({'clientMessageId':_0x10dd18,'createdAt':_0x4e70cb??null});}if(_0x457b25===null)return _0x38b129[_0x8951bf(0x10a)]===-0x1*-0x2084+-0x10ac+-0xfd7?_0x38b129[0x2*-0x2a4+0x3*0x1d6+-0x3a][_0x8951bf(0xa4)]:null;const _0x5ac8ac=_0x38b129[_0x8951bf(0x9a)](_0x29e5ca=>_0x29e5ca[_0x8951bf(0x109)]!==null)[_0x8951bf(0xc6)](_0x32dfaf=>({..._0x32dfaf,'distance':Math[_0x8951bf(0xb5)](_0x457b25-_0x32dfaf[_0x8951bf(0x109)])}))[_0x8951bf(0x9a)](_0x5b348d=>_0x5b348d[_0x8951bf(0x8a)]<=-0xe51b+-0x327e+0x201f9)[_0x8951bf(0xc0)]((_0x1b63be,_0x579da1)=>_0x1b63be[_0x8951bf(0x8a)]-_0x579da1[_0x8951bf(0x8a)]);return _0x5ac8ac[0x18e3+0xf78+0x1*-0x285b]?.[_0x8951bf(0xa4)]??null;}function runtimeUserMessagePayload(_0x4d737c,_0x2d7998){const _0x2ade7d=_0x4c01;for(const _0x130393 of _0x2d7998){const _0x3f627c=_0x130393[_0x2ade7d(0x9b)][_0x2ade7d(0xaa)](_0x5744f3=>_0x5744f3[_0x2ade7d(0xba)]===_0x2ade7d(0x8f));if(!isPlainRecord(_0x3f627c?.[_0x2ade7d(0xa7)])||_0x3f627c[_0x2ade7d(0xa7)][_0x2ade7d(0xa4)]!==_0x4d737c)continue;return _0x3f627c[_0x2ade7d(0xa7)];}return undefined;}function nativeUserMessageText(_0x17134a,_0x351453){const _0xd917e9=_0x4c01,_0x2ec4e1=stripMissionStartPrompt(_0x351453),_0x1af817=_0x17134a===_0xd917e9(0xe0)?stripClaudePlanTag(_0x2ec4e1):_0x2ec4e1;if(_0x17134a!==_0xd917e9(0xa3))return _0x1af817;return parseCodexComposerImageMarkers(_0x1af817)[_0xd917e9(0x8e)];}export function claudePlanText(_0x296af6){const _0x106f10=_0x4c01,_0x5f53b4=_0x296af6[_0x106f10(0xec)]();if(!_0x5f53b4[_0x106f10(0xb9)](_0x106f10(0x107))||!/<\/proposed_plan>\s*$/[_0x106f10(0xd0)](_0x5f53b4))return undefined;const _0x3f2895=_0x5f53b4[_0x106f10(0x113)](_0x106f10(0x107)[_0x106f10(0x10a)])[_0x106f10(0x112)](/<\/proposed_plan>\s*$/,'')[_0x106f10(0xec)]();return _0x3f2895[_0x106f10(0x10a)]>-0x12d2+0x22bc+-0xfea?_0x3f2895:undefined;}export function claudeUserInputQuestions(_0x34aa7e){const _0x395157=_0x4c01;if(!Array[_0x395157(0xe2)](_0x34aa7e[_0x395157(0xe9)])||_0x34aa7e[_0x395157(0xe9)][_0x395157(0x10a)]===0x182*0x1+-0x67*0x15+-0x1*-0x6f1||_0x34aa7e[_0x395157(0xe9)][_0x395157(0x10a)]>-0x1684+0x560+-0x44a*-0x4)return[];const _0x97049=_0x34aa7e[_0x395157(0xe9)][_0x395157(0xc6)]((_0x423bf4,_0xa12a10)=>{const _0x1c208e=_0x395157;if(!isPlainRecord(_0x423bf4)||typeof _0x423bf4[_0x1c208e(0xaf)]!==_0x1c208e(0xc8))return undefined;const _0x44827e=Array[_0x1c208e(0xe2)](_0x423bf4[_0x1c208e(0x93)])?_0x423bf4[_0x1c208e(0x93)][_0x1c208e(0xb3)](_0x3a523b=>{const _0x337441=_0x1c208e;if(!isPlainRecord(_0x3a523b)||typeof _0x3a523b[_0x337441(0xa9)]!==_0x337441(0xc8))return[];const _0x4758e0=compactRunnerText(_0x3a523b[_0x337441(0xa9)],-0x886+-0x235f+-0x1*-0x2dd9);return _0x4758e0[_0x337441(0x10a)]===0xffb+0xf45+-0x1f40?[]:[{'value':_0x4758e0,'label':_0x4758e0,'description':typeof _0x3a523b[_0x337441(0x92)]===_0x337441(0xc8)?compactRunnerText(_0x3a523b[_0x337441(0x92)],0x1d2e+0x1*-0x14d5+-0x471):null}];}):[],_0x267d04=_0x423bf4[_0x1c208e(0x10c)]===!![];return{'id':_0x1c208e(0x81)+_0xa12a10,'prompt':compactRunnerText(_0x423bf4[_0x1c208e(0xaf)],0x17+-0xf8a+-0x1*-0x22fb),'input':_0x44827e[_0x1c208e(0x10a)]===0x133*0x2+0x14d8+-0x173e?_0x1c208e(0xd6):_0x267d04?_0x1c208e(0x110):_0x1c208e(0x9f),'options':_0x44827e,'allowOther':!![],'multiSelect':_0x267d04};});return _0x97049[_0x395157(0x9c)](_0x50dc70=>_0x50dc70===undefined)?[]:_0x97049;}
2
+ (function(_0x186c3a,_0xf0c6fb){const _0x49b519=_0x43ae,_0x4e871c=_0x186c3a();while(!![]){try{const _0x1963fd=-parseInt(_0x49b519(0xbe))/(0x1*0x1111+0x607+-0x1*0x1717)+parseInt(_0x49b519(0x110))/(-0x2*-0xefb+-0x2ff+-0x1af5)*(-parseInt(_0x49b519(0xcc))/(0xaf9+-0x682+-0x474))+-parseInt(_0x49b519(0x100))/(0xc1*-0x31+-0x3*0x259+0x2c00)*(parseInt(_0x49b519(0xc1))/(-0x2672+-0x2119+0x4790))+parseInt(_0x49b519(0xa9))/(-0x1691+0x4*0x2bf+0xb9b*0x1)*(-parseInt(_0x49b519(0x131))/(-0x1793+0xe5*-0x5+-0x1*-0x1c13))+-parseInt(_0x49b519(0xe4))/(-0x29*-0x3+0x4dd*-0x1+0x46a)+-parseInt(_0x49b519(0xb2))/(0x22ba+0x87*0x2a+-0x38d7)*(-parseInt(_0x49b519(0x127))/(-0x3f0+-0x1ada+0x1ed4))+parseInt(_0x49b519(0x118))/(0x4f*0x13+-0x183c+0x126a);if(_0x1963fd===_0xf0c6fb)break;else _0x4e871c['push'](_0x4e871c['shift']());}catch(_0x26838d){_0x4e871c['push'](_0x4e871c['shift']());}}}(_0xb419,-0xcb9*0x89+-0x98c41+0x15f87d));import{createHash}from'node:crypto';import{fileURLToPath}from'node:url';import{stripClaudePlanTag}from'../runner-command-engine.js';import{stripMissionStartPrompt}from'../service/mission-runtime.js';import{parseCodexComposerImageMarkers}from'../runner/codex/composer-image-markers.js';import{normalizeCodexTool}from'../runner/codex/tool-normalizer.js';import{normalizeClaudeTool}from'../runner/claude/tool-normalizer.js';import{compactRunnerText,isPlainRecord,nativePageEnd}from'./node-operation-parsers.js';export function extractId(_0x4f64e3,_0xa37386){const _0x57840d=_0x43ae;if(typeof _0x4f64e3===_0x57840d(0x108)&&_0x4f64e3!==null&&_0xa37386 in _0x4f64e3&&typeof _0x4f64e3[_0xa37386]===_0x57840d(0x108)&&_0x4f64e3[_0xa37386]!==null&&typeof _0x4f64e3[_0xa37386]['id']===_0x57840d(0xe3))return _0x4f64e3[_0xa37386]['id'];throw new Error(_0x57840d(0xa2)+_0xa37386[_0x57840d(0x10a)]()+_0x57840d(0xa3));}export async function settleWithin(_0x593f4c,_0x6f2180){const _0x1488cf=_0x43ae;let _0x4b20bd;try{return await Promise[_0x1488cf(0xcb)]([_0x593f4c,new Promise(_0x1987dc=>{const _0x287aac=_0x1488cf;_0x4b20bd=setTimeout(()=>_0x1987dc(undefined),_0x6f2180),_0x4b20bd[_0x287aac(0xf6)]();})]);}finally{if(_0x4b20bd!==undefined)clearTimeout(_0x4b20bd);}}export function extractCodexThreads(_0x30ddd8){const _0x323084=_0x43ae;if(typeof _0x30ddd8!==_0x323084(0x108)||_0x30ddd8===null||!(_0x323084(0xd4)in _0x30ddd8))return[];const _0x36e8af=_0x30ddd8[_0x323084(0xd4)];if(!Array[_0x323084(0x119)](_0x36e8af))return[];return _0x36e8af[_0x323084(0xf9)](_0x172eb7=>{const _0x19b69c=_0x323084;if(typeof _0x172eb7!==_0x19b69c(0x108)||_0x172eb7===null)return[];const _0x17f92f=_0x172eb7;if(typeof _0x17f92f['id']!==_0x19b69c(0xe3))return[];const _0x396105=typeof _0x17f92f[_0x19b69c(0xf4)]===_0x19b69c(0xe3)?_0x17f92f[_0x19b69c(0xf4)]:typeof _0x17f92f[_0x19b69c(0xaf)]===_0x19b69c(0xe3)?_0x17f92f[_0x19b69c(0xaf)]:typeof _0x17f92f[_0x19b69c(0xaf)]===_0x19b69c(0x108)&&_0x17f92f[_0x19b69c(0xaf)]!==null&&typeof _0x17f92f[_0x19b69c(0xaf)][_0x19b69c(0xf1)]===_0x19b69c(0xe3)?_0x17f92f[_0x19b69c(0xaf)][_0x19b69c(0xf1)]:undefined,_0x16fc60=isPlainRecord(_0x17f92f[_0x19b69c(0xaf)])?_0x17f92f[_0x19b69c(0xaf)]:undefined,_0x23afbc=_0x396105===_0x19b69c(0x122)||_0x16fc60?.[_0x19b69c(0xf1)]===_0x19b69c(0x122)||isPlainRecord(_0x16fc60?.[_0x19b69c(0x122)])||isPlainRecord(_0x16fc60?.[_0x19b69c(0xc3)]),_0x7d1ff0=typeof _0x17f92f[_0x19b69c(0xcf)]===_0x19b69c(0xe3)&&_0x17f92f[_0x19b69c(0xcf)][_0x19b69c(0xa7)]()[_0x19b69c(0xc7)]>0x3ae+-0x1a77*-0x1+0x1e25*-0x1?_0x17f92f[_0x19b69c(0xcf)][_0x19b69c(0xa7)]():typeof _0x17f92f[_0x19b69c(0xd3)]===_0x19b69c(0xe3)&&_0x17f92f[_0x19b69c(0xd3)][_0x19b69c(0xa7)]()[_0x19b69c(0xc7)]>0x3f7*0x5+-0x71a+-0xcb9*0x1?_0x17f92f[_0x19b69c(0xd3)][_0x19b69c(0xa7)]():undefined;return[{'id':_0x17f92f['id'],'source':_0x396105,'derived':_0x23afbc,'cwd':_0x17f92f[_0x19b69c(0xd2)],'title':_0x7d1ff0}];});}export function codexThreadActivity(_0x2d9d18){const _0xd32624=_0x43ae;if(!isPlainRecord(_0x2d9d18)||!isPlainRecord(_0x2d9d18[_0xd32624(0x114)]))return _0xd32624(0xc0);const _0x2b88e2=_0x2d9d18[_0xd32624(0x114)][_0xd32624(0xfe)];if(!isPlainRecord(_0x2b88e2)||typeof _0x2b88e2[_0xd32624(0x120)]!==_0xd32624(0xe3))return _0xd32624(0xc0);if(_0x2b88e2[_0xd32624(0x120)]===_0xd32624(0xf8))return _0xd32624(0xd5);if(_0x2b88e2[_0xd32624(0x120)]===_0xd32624(0xe2)||_0x2b88e2[_0xd32624(0x120)]===_0xd32624(0x135))return _0xd32624(0x11f);return _0xd32624(0xc0);}export function codexActiveTurnId(_0x28c626){const _0x30ffe4=_0x43ae;if(!isPlainRecord(_0x28c626)||!isPlainRecord(_0x28c626[_0x30ffe4(0x114)])||!Array[_0x30ffe4(0x119)](_0x28c626[_0x30ffe4(0x114)][_0x30ffe4(0xc2)]))return undefined;const _0x339f20=_0x28c626[_0x30ffe4(0x114)][_0x30ffe4(0xc2)][_0x30ffe4(0x101)](_0x5f5783=>isPlainRecord(_0x5f5783)&&typeof _0x5f5783['id']===_0x30ffe4(0xe3)&&(_0x5f5783[_0x30ffe4(0xfe)]===_0x30ffe4(0xf8)||_0x5f5783[_0x30ffe4(0xfe)]===_0x30ffe4(0xde)));return isPlainRecord(_0x339f20)&&typeof _0x339f20['id']===_0x30ffe4(0xe3)?_0x339f20['id']:undefined;}export function codexThreadCwd(_0x14a040){const _0x2c2b35=_0x43ae;if(typeof _0x14a040!==_0x2c2b35(0xe3)||_0x14a040[_0x2c2b35(0xc7)]===-0x109*-0x1e+-0x1*-0x231a+-0x4228)throw new Error(_0x2c2b35(0x11d));if(!_0x14a040[_0x2c2b35(0xd6)](_0x2c2b35(0x105)))return _0x14a040;try{return fileURLToPath(_0x14a040);}catch{throw new Error(_0x2c2b35(0x11d));}}export function isWithinWorkspace(_0xc36245,_0x151334){const _0x5b59ec=_0x43ae,_0x172094=_0xc7813a=>{const _0x53a03b=_0x43ae,_0x223361=_0xc7813a[_0x53a03b(0xef)](/[\\/]+/g,'/')[_0x53a03b(0xef)](/\/$/,'');return process[_0x53a03b(0xce)]===_0x53a03b(0xdf)?_0x223361[_0x53a03b(0xc9)]():_0x223361;},_0x2607f0=_0x172094(_0xc36245),_0x282793=_0x172094(_0x151334);if(_0x2607f0===_0x282793)return!![];return _0x2607f0[_0x5b59ec(0xd6)](_0x282793+'/');}export function claudeDiscoveredSession(_0x28eee7,_0x27f243){const _0x31a9c2=_0x43ae;if(typeof _0x28eee7!==_0x31a9c2(0x108)||_0x28eee7===null)return undefined;const _0x557220=_0x28eee7;if(_0x557220[_0x31a9c2(0xdc)]===!![])return undefined;const _0x1670c0=typeof _0x557220[_0x31a9c2(0xdd)]===_0x31a9c2(0xe3)?_0x557220[_0x31a9c2(0xdd)]:typeof _0x557220['id']===_0x31a9c2(0xe3)?_0x557220['id']:undefined;if(_0x1670c0===undefined||_0x1670c0[_0x31a9c2(0xc7)]===-0x256f+-0x2589+0x4af8)return undefined;const _0x56f97c=typeof _0x557220[_0x31a9c2(0x123)]===_0x31a9c2(0xe3)?_0x557220[_0x31a9c2(0x123)]:typeof _0x557220[_0x31a9c2(0x113)]===_0x31a9c2(0xe3)?_0x557220[_0x31a9c2(0x113)]:undefined,_0x41f7ed=typeof _0x557220[_0x31a9c2(0xd2)]===_0x31a9c2(0xe3)&&_0x557220[_0x31a9c2(0xd2)][_0x31a9c2(0xc7)]>-0xe33+-0x268b+0x34be?_0x557220[_0x31a9c2(0xd2)]:_0x27f243;return{'externalSessionId':_0x1670c0,'cwd':_0x41f7ed,..._0x56f97c===undefined?{}:{'title':_0x56f97c[_0x31a9c2(0x130)](0x1ccc+0x195b+-0x3627,0xd4*0x13+-0x7*-0x321+-0x2553)}};}export function latestNativeActivity(_0x2131de){const _0x24930b=_0x43ae;return _0x2131de[_0x24930b(0x12e)];}export function sameContextUsage(_0x3c075b,_0x298ba7){const _0x33ac9c=_0x43ae;return _0x3c075b[_0x33ac9c(0x125)]===_0x298ba7[_0x33ac9c(0x125)]&&_0x3c075b[_0x33ac9c(0xfd)]===_0x298ba7[_0x33ac9c(0xfd)]&&_0x3c075b[_0x33ac9c(0x12d)]===_0x298ba7[_0x33ac9c(0x12d)];}export function isNativeHistory(_0x2803f1){const _0x4761b8=_0x43ae;return typeof _0x2803f1===_0x4761b8(0x108)&&_0x2803f1!==null&&Array[_0x4761b8(0x119)](_0x2803f1[_0x4761b8(0x11c)]);}export function deduplicateDirectSessions(_0x500ec4){const _0x127a8b=_0x43ae,_0x1a0ca2=new Map();for(const _0x364125 of _0x500ec4){const _0x572929=_0x1a0ca2[_0x127a8b(0x12a)](_0x364125['id']);if(_0x572929===undefined||_0x572929[_0x127a8b(0x12e)]<_0x364125[_0x127a8b(0x12e)])_0x1a0ca2[_0x127a8b(0xd7)](_0x364125['id'],_0x364125);}return[..._0x1a0ca2[_0x127a8b(0x124)]()][_0x127a8b(0xc5)]((_0xaad4c0,_0x1f5cf9)=>_0x1f5cf9[_0x127a8b(0x12e)]-_0xaad4c0[_0x127a8b(0x12e)]);}export function nativeConversationPage(_0x210fc7,_0x205f07,_0x5469cd,_0x130cc3=[],_0x357388=()=>[]){const _0x3074ec=_0x43ae,_0x162d0f=Math[_0x3074ec(0xd9)](Math[_0x3074ec(0xaa)](_0x5469cd[_0x3074ec(0xed)]??-0x1e8e+-0x1*0x139+0x1fe5,-0x1d*0xb8+-0xa63*0x3+-0xe*-0x3b7),0xb*0x172+0xcf7*-0x3+-0x3*-0x851),_0x441f4b=_0x205f07[_0x3074ec(0x133)]===!![]?undefined:_0x5469cd[_0x3074ec(0xcd)],_0x2e5f58=nativeTranscriptTurns(_0x205f07[_0x3074ec(0x11c)]),_0x1cc79d=nativeTranscriptTurnIds(_0x210fc7['id'],_0x2e5f58),_0x2f29dd=nativePageEnd(_0x441f4b,_0x210fc7['id'],_0x2e5f58[_0x3074ec(0xc7)]),_0x2e7c21=Math[_0x3074ec(0xaa)](0x1a*-0x102+-0x4*0x412+0x2*0x153e,_0x2f29dd-_0x162d0f),_0x235530=_0x2e5f58[_0x3074ec(0x130)](_0x2e7c21,_0x2f29dd)[_0x3074ec(0xfb)]((_0x194679,_0x3e6a93)=>{const _0x3870e5=_0x3074ec,_0x487124=_0x194679[_0x3870e5(0x101)](({entry:_0x23f68c})=>_0x23f68c[_0x3870e5(0xf1)]===_0x3870e5(0xf3)&&_0x23f68c[_0x3870e5(0x9f)]===_0x3870e5(0x112))?.[_0x3870e5(0x106)],_0xd04aad=_0x487124?.[_0x3870e5(0xf1)]===_0x3870e5(0xf3)?nativeUserClientMessageId(_0x210fc7[_0x3870e5(0xf0)],_0x487124,_0x487124[_0x3870e5(0xba)],_0x130cc3):null,_0x48ab5f=typeof _0xd04aad===_0x3870e5(0xe3)?_0x130cc3[_0x3870e5(0x101)](_0x5b95d4=>runtimeTurnClientMessageId(_0x5b95d4)===_0xd04aad):undefined,_0xa414aa=_0x48ab5f?.['id']??_0x1cc79d[_0x2e7c21+_0x3e6a93],_0x2fa0a9=nativeTranscriptItemIdentities(_0x194679),_0x457868=_0x194679[_0x3870e5(0xfb)](({entry:_0x47a011,index:_0x4b932f},_0x8643e8)=>({...nativeTranscriptConversationItem(_0x210fc7,_0x47a011,_0x4b932f,_0x2fa0a9[_0x8643e8],_0xa414aa,_0x130cc3,_0x357388),'runId':_0x48ab5f?.[_0x3870e5(0xfc)]??null})),_0xb7041e=(_0x48ab5f?.[_0x3870e5(0x11c)]??[])[_0x3870e5(0xec)](_0x43cec6=>_0x43cec6[_0x3870e5(0xf1)]===_0x3870e5(0xc8))[_0x3870e5(0xfb)](_0x3c77b9=>({..._0x3c77b9,'turnId':_0xa414aa,'runId':_0x48ab5f?.[_0x3870e5(0xfc)]??null})),_0x57d6ce=runtimeAssistantProjectionMoreComplete(_0x48ab5f,_0x457868)?_0x48ab5f[_0x3870e5(0x11c)][_0x3870e5(0xfb)](_0x40f677=>({..._0x40f677,'turnId':_0xa414aa,'runId':_0x48ab5f[_0x3870e5(0xfc)]})):[..._0x457868,..._0xb7041e[_0x3870e5(0xec)](_0x44fd28=>!_0x457868[_0x3870e5(0xe7)](_0x515b4b=>_0x515b4b['id']===_0x44fd28['id']))],_0x397b4c=_0x57d6ce[0x143b+-0x5*-0x6f9+-0x3718*0x1]?.[_0x3870e5(0xb7)]??null,_0x3163b4=_0x57d6ce['at'](-(0x12cd+-0x70*-0x5+-0x14fc))?.[_0x3870e5(0xb3)]??_0x397b4c,_0x5b3f01=lastNativeItemId(_0x194679);return{'id':_0xa414aa,'sessionId':_0x210fc7['id'],'runId':_0x48ab5f?.[_0x3870e5(0xfc)]??null,'userItemId':_0x57d6ce[_0x3870e5(0x101)](_0xcad2b8=>_0xcad2b8[_0x3870e5(0xf1)]===_0x3870e5(0x10b))?.['id']??null,'status':_0xb7041e[_0x3870e5(0xc7)]>-0x8a5+-0x253+-0xaf8*-0x1?_0x3870e5(0xb4):_0x3870e5(0xa5),'model':null,'effort':null,'access':null,..._0x5b3f01===undefined||_0x210fc7[_0x3870e5(0xf0)]!==_0x3870e5(0xee)?{}:{'rewind':{'before':lastNativeItemId(_0x2e5f58[_0x2e7c21+_0x3e6a93-(-0x1*0x107+0x5e*0x43+-0x1792)]??[])??null,'after':_0x5b3f01}},'items':_0x57d6ce,'startedAt':_0x397b4c,'completedAt':_0x3163b4};}),_0x1c8fbe=_0x235530,_0x3aae68=_0x2e7c21,_0x2ff75d={'sessionId':_0x210fc7['id'],..._0x205f07[_0x3074ec(0xb9)]===undefined?{}:{'snapshotEnd':_0x205f07[_0x3074ec(0xb9)]},..._0x205f07[_0x3074ec(0x115)]===undefined?{}:{'nextEnd':_0x205f07[_0x3074ec(0x115)]},..._0x205f07[_0x3074ec(0x11e)]===undefined?{}:{'fileAnchor':_0x205f07[_0x3074ec(0x11e)]},..._0x205f07[_0x3074ec(0xf5)]===undefined?{}:{'anchorBytes':_0x205f07[_0x3074ec(0xf5)]},'readLimit':_0x205f07[_0x3074ec(0xe5)]??_0x162d0f},_0x2fd0dc=_0x205f07[_0x3074ec(0x137)]===!![]&&_0x205f07[_0x3074ec(0x104)]!==undefined&&_0x205f07[_0x3074ec(0xb9)]!==undefined&&_0x205f07[_0x3074ec(0x11e)]!==undefined&&_0x205f07[_0x3074ec(0xf5)]!==undefined?Buffer[_0x3074ec(0xc4)](JSON[_0x3074ec(0xe0)]({'sessionId':_0x210fc7['id'],'snapshotEnd':_0x205f07[_0x3074ec(0xb9)],'nextEnd':_0x205f07[_0x3074ec(0x104)],'fileAnchor':_0x205f07[_0x3074ec(0x11e)],'anchorBytes':_0x205f07[_0x3074ec(0xf5)],'readLimit':_0x205f07[_0x3074ec(0xe5)]??_0x162d0f}))[_0x3074ec(0x117)](_0x3074ec(0xad)):null;return{'turns':_0x1c8fbe,'nextCursor':_0x3aae68>-0x1*-0x337+-0xf9*-0x13+-0x15b2?Buffer[_0x3074ec(0xc4)](JSON[_0x3074ec(0xe0)]({..._0x2ff75d,'end':_0x3aae68}))[_0x3074ec(0x117)](_0x3074ec(0xad)):_0x2fd0dc};}export function runtimeAssistantProjectionMoreComplete(_0x2aacc4,_0x275b37){const _0x1087c6=_0x43ae;if(_0x2aacc4===undefined)return![];const _0x299275=_0x8f4351=>_0x8f4351[_0x1087c6(0xc6)]((_0x420a61,_0x556031)=>{const _0x95d9d4=_0x1087c6;if(_0x556031[_0x95d9d4(0xf1)]!==_0x95d9d4(0xac)||!isPlainRecord(_0x556031[_0x95d9d4(0xb5)]))return _0x420a61;return{'count':_0x420a61[_0x95d9d4(0x107)]+(0x1a94+-0x207*-0x9+-0x2cd2),'characters':_0x420a61[_0x95d9d4(0xa8)]+(typeof _0x556031[_0x95d9d4(0xb5)][_0x95d9d4(0xa0)]===_0x95d9d4(0xe3)?_0x556031[_0x95d9d4(0xb5)][_0x95d9d4(0xa0)][_0x95d9d4(0xc7)]:0x61*0x10+0x228e+-0x289e)};},{'count':0x0,'characters':0x0}),_0x2a9d44=_0x299275(_0x2aacc4[_0x1087c6(0x11c)]),_0x54b156=_0x299275(_0x275b37);return _0x2a9d44[_0x1087c6(0x107)]>_0x54b156[_0x1087c6(0x107)]||_0x2a9d44[_0x1087c6(0xa8)]>_0x54b156[_0x1087c6(0xa8)];}function _0x43ae(_0x252396,_0x2cd9ba){_0x252396=_0x252396-(0xf8e+-0x16db*-0x1+-0xa4*0x3b);const _0x2ddf3d=_0xb419();let _0x1d7cb1=_0x2ddf3d[_0x252396];if(_0x43ae['ZIEqHH']===undefined){var _0x400445=function(_0x4db6d4){const _0x58946c='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x17f917='',_0x5b37df='';for(let _0x482d14=0x1*0x166+-0x343*0x1+-0x1dd*-0x1,_0x229298,_0x339d18,_0x463e2b=-0x4*-0x36a+0x5d8*0x6+-0x30b8;_0x339d18=_0x4db6d4['charAt'](_0x463e2b++);~_0x339d18&&(_0x229298=_0x482d14%(0x7da*0x4+-0x382*0x7+-0x2*0x36b)?_0x229298*(-0x2068+-0x256f+0x4617)+_0x339d18:_0x339d18,_0x482d14++%(-0xbb0+-0xe33+0x19e7))?_0x17f917+=String['fromCharCode'](-0xdf*0x1+0x1ccc+-0x1aee&_0x229298>>(-(0xd4*0x13+-0x7*-0x321+-0x25a1)*_0x482d14&-0x1e8e+-0x1*0x139+0x1fcd)):-0x1d*0xb8+-0xa63*0x3+-0x1*-0x3401){_0x339d18=_0x58946c['indexOf'](_0x339d18);}for(let _0x59360b=0xb*0x172+0xcf7*-0x3+-0x1d*-0xcb,_0x2df7be=_0x17f917['length'];_0x59360b<_0x2df7be;_0x59360b++){_0x5b37df+='%'+('00'+_0x17f917['charCodeAt'](_0x59360b)['toString'](0x1a*-0x102+-0x4*0x412+0x4*0xaa3))['slice'](-(0x143b+-0x5*-0x6f9+-0x3716*0x1));}return decodeURIComponent(_0x5b37df);};_0x43ae['KExybL']=_0x400445,_0x43ae['mMkjpx']={},_0x43ae['ZIEqHH']=!![];}const _0xcf76b=_0x2ddf3d[0x12cd+-0x70*-0x5+-0x14fd];_0x43ae['OAClza']!==_0xcf76b&&(_0x43ae['mMkjpx']={},_0x43ae['OAClza']=_0xcf76b);const _0x2e6f0e=_0x43ae['mMkjpx'][_0x252396];return _0x2e6f0e===undefined?(_0x1d7cb1=_0x43ae['KExybL'](_0x1d7cb1),_0x43ae['mMkjpx'][_0x252396]=_0x1d7cb1):_0x1d7cb1=_0x2e6f0e,_0x1d7cb1;}function runtimeTurnClientMessageId(_0x3e8e23){const _0x48cf3f=_0x43ae,_0x31dd7c=_0x3e8e23[_0x48cf3f(0x11c)][_0x48cf3f(0x101)](_0x36d84b=>_0x36d84b[_0x48cf3f(0xf1)]===_0x48cf3f(0x10b));return isPlainRecord(_0x31dd7c?.[_0x48cf3f(0xb5)])&&typeof _0x31dd7c[_0x48cf3f(0xb5)][_0x48cf3f(0x12f)]===_0x48cf3f(0xe3)?_0x31dd7c[_0x48cf3f(0xb5)][_0x48cf3f(0x12f)]:undefined;}function lastNativeItemId(_0x111e4b){const _0x5def02=_0x43ae;return _0x111e4b[_0x5def02(0x12c)](({entry:_0x46833a})=>_0x46833a[_0x5def02(0xb1)]!==undefined)?.[_0x5def02(0x106)][_0x5def02(0xb1)];}function _0xb419(){const _0x371d13=['mte0mxf6v3r3vW','AxrLBs0','y3vYC29YuMvZzxq','B3b0Aw9UCW','BM90tg9HzgvK','zgLZDgfUy2u','Dhj1BMnHDgvK','qxnRvxnLCLf1zxn0Aw9U','C2HHmJu2','CM9Szq','Dgv4Da','Dg9VBf9JywXS','q09ervHF','x0Lex01ju1njtKC','CxvLC3rPB24','u1vdq0vfreve','y29UDgv4Df9JB21Wywn0Aw9U','DhjPBq','y2HHCMfJDgvYCW','nJC3ne52uKfPtW','Bwf4','Aw5WDxruCNvUy2f0zwq','yxnZAxn0yw50x21LC3nHz2u','yMfZzty0DxjS','Dg9VBe5HBwu','C291CMnL','Aw5WDxrtDw1Tyxj5','BMf0AxzLswq','oxfsA09MvG','y29TCgXLDgvKqxq','rKfjteve','Cgf5Bg9Hza','CxvLC3rPB25Z','C3rHCNrLzef0','u0Lor0Xfx1nftevdva','C25HChnOB3rfBMq','y3jLyxrLzef0','BwfYA2rVD24','q09nueXfveve','DxnLCL9PBNb1Df9Yzxf1zxn0','mtmXntKXz0vjDg5s','u0HpuLrFvevyva','vu5bvKfjtefcteu','mtu4nJmZmePSrLz5BW','DhvYBNm','C3vIqwDLBNq','zNjVBq','C29YDa','CMvKDwnL','BgvUz3rO','zxjYB3i','Dg9mB3DLCKnHC2u','C2vJDgLVBNm','CMfJzq','mJeWmZyZy3j4D0fH','y3vYC29Y','CgXHDgzVCM0','BMfTzq','BgfIzwW','BMf0AxzLlwzPBgu','y3DK','ChjLDMLLDW','zgf0yq','rvHurvjoquXFqunusvzf','C3rHCNrZv2L0Aa','C2v0','C291CMnLrxzLBNruExbL','BwLU','oML0zw06','B3v0Chv0vhj1BMnHDgvK','AxntAwrLy2HHAw4','C2vZC2LVBKLK','Aw5qCM9NCMvZCW','D2LUmZi','C3rYAw5NAwz5','zgLNzxn0','AwrSzq','C3rYAw5N','ndK4ndmZnKzSr1fJvG','D2LUzg93uMvHzeXPBwL0','CgHHC2u','C29Tzq','BxvSDgLtzwXLy3q','tvvmveLFu0vmrunu','ChvZAa','y2XHDwrLlxf1zxn0Aw9Ulq','zMLSDgvY','BgLTAxq','y2XHDwrLlwnVzgu','CMvWBgfJzq','CNvUBMvY','A2LUza','Dg9VBfvZzuLK','BwvZC2fNzq','C291CMnLs2LUza','yw5JAg9YqNL0zxm','Dw5Yzwy','CgXHBG','ywn0AxzL','zMXHDe1HCa','Dw5RBM93BG','BwfW','CNvUswq','DxnLzfrVA2vUCW','C3rHDhvZ','ve9ptf9fwevdvvrjt05FrKfjteve','nhnhqNLKzq','zMLUza','y29KzxG','zMfPBgvK','D2LUzg93u3rHCNq','zMLSztO','zw50CNK','y291BNq','B2jQzwn0','qundrvburuq','Dg9vChbLCKnHC2u','DxnLCL9TzxnZywDL','ywjZ','B3v0Chv0u3vTBwfYEq','zw50CMLLCW','zgvZy3jPChrPB24','mtz0y25Suem','BMf0AxzLoG','vvnfuG','DgL0Bgu','DgHYzwfK','D2LUzg93rw5K','oM5HDgL2ztO','Dg9tDhjPBMC','mtK2ntq2nJHbtfjPu2G','AxnbCNjHEq','DgvZDa','yxr0ywnOBwvUDhm','AxrLBxm','q09ervHFveHsrufex0nxrf9jtLzbteLe','zMLSzufUy2HVCG','surmrq','DhLWzq','Aw1Hz2vbDhrHy2HTzw50CW','C3vIywDLBNq','C3vTBwfYEq','DMfSDwvZ','Bw9KzwW','Aw5WDxq','mZK4mdm3meXNuufhBa','phbYB3bVC2vKx3bSyw4+','DxbKyxrL','z2v0','CMvHC29UAw5Nx3n1Bw1HCNK','zMLUzeXHC3q','Bwf4vg9Rzw5Z','BgfZDefJDgL2Axr5qxq','y2XPzw50twvZC2fNzuLK','C2XPy2u'];_0xb419=function(){return _0x371d13;};return _0xb419();}function nativeTranscriptTurnIds(_0xf2831a,_0x27b601){const _0x173948=_0x43ae,_0x5cf8db=new Map();return _0x27b601[_0x173948(0xfb)](_0x4b9f4b=>{const _0x37eabf=_0x173948,_0x2bf3d7=_0x4b9f4b[_0x37eabf(0x101)](({entry:_0x5c737e})=>_0x5c737e[_0x37eabf(0xf1)]===_0x37eabf(0xf3)&&_0x5c737e[_0x37eabf(0x9f)]===_0x37eabf(0x112))?.[_0x37eabf(0x106)],_0x161a86=_0x2bf3d7??_0x4b9f4b[0x9*-0x33b+0x4*0x4fd+-0x1d3*-0x5]?.[_0x37eabf(0x106)],_0x263a77=_0x161a86?.[_0x37eabf(0xb1)]??nativeTranscriptItemFingerprint(_0x161a86),_0x13e096=_0x5cf8db[_0x37eabf(0x12a)](_0x263a77)??0x204e*-0x1+-0xf*0x14b+0x5*0xa57;return _0x5cf8db[_0x37eabf(0xd7)](_0x263a77,_0x13e096+(0x3f5*-0x8+0x1d39+0x270)),_0xf2831a+_0x37eabf(0x116)+_0x263a77+(_0x13e096===-0xd73*0x1+-0x7*0x2a1+-0x38a*-0x9?'':':'+_0x13e096);});}function nativeTranscriptItemIdentities(_0x18123f){const _0xbb64ca=_0x43ae,_0x1ebad1=new Map();for(const {entry:_0x48d588}of _0x18123f)if(_0x48d588[_0xbb64ca(0xb1)]!==undefined)_0x1ebad1[_0xbb64ca(0xd7)](_0x48d588[_0xbb64ca(0xb1)],(_0x1ebad1[_0xbb64ca(0x12a)](_0x48d588[_0xbb64ca(0xb1)])??0x5b8+0x11aa+-0x1762)+(0x45b+-0x1*-0xeef+-0x1349));const _0x27bc60=new Map();return _0x18123f[_0xbb64ca(0xfb)](({entry:_0x1b801d})=>{const _0x4b6278=_0xbb64ca,_0x41ae98=_0x1b801d[_0x4b6278(0xb1)]!==undefined&&_0x1ebad1[_0x4b6278(0x12a)](_0x1b801d[_0x4b6278(0xb1)])===0xc62+-0x1a1e+0xdbd?_0x1b801d[_0x4b6278(0xb1)]:''+(_0x1b801d[_0x4b6278(0xb1)]===undefined?'':_0x1b801d[_0x4b6278(0xb1)]+':')+nativeTranscriptItemFingerprint(_0x1b801d),_0x4750e2=_0x27bc60[_0x4b6278(0x12a)](_0x41ae98)??0x179*0x14+0x1ece*0x1+-0x3c42;return _0x27bc60[_0x4b6278(0xd7)](_0x41ae98,_0x4750e2+(0x2*0xa6a+-0xb7c*0x2+0x9*0x3d)),_0x4750e2===-0xb*0x10f+0x1558+-0x9b3?_0x41ae98:_0x41ae98+':'+_0x4750e2;});}function nativeTranscriptItemFingerprint(_0x15d684){const _0x1d6bdd=_0x43ae;return createHash(_0x1d6bdd(0x9e))[_0x1d6bdd(0x129)](JSON[_0x1d6bdd(0xe0)](_0x15d684??null))[_0x1d6bdd(0xe1)](_0x1d6bdd(0xad))[_0x1d6bdd(0x130)](0x3*0x138+-0x85f*-0x3+-0x1cc5,-0x15e2+0x19f6+-0x3fc);}function nativeTranscriptTurns(_0x44798b){const _0x1365ab=_0x43ae,_0x2e19e0=[];let _0x383301=[];for(const [_0x89405c,_0x2653ac]of _0x44798b[_0x1365ab(0x10e)]()){_0x2653ac[_0x1365ab(0xf1)]===_0x1365ab(0xf3)&&_0x2653ac[_0x1365ab(0x9f)]===_0x1365ab(0x112)&&_0x383301[_0x1365ab(0xc7)]>-0x2557+-0x311*-0xb+0x21*0x1c&&(_0x2e19e0[_0x1365ab(0xea)](_0x383301),_0x383301=[]),_0x383301[_0x1365ab(0xea)]({'entry':_0x2653ac,'index':_0x89405c});}if(_0x383301[_0x1365ab(0xc7)]>0x1d99+0x1*-0x12c1+-0xad8)_0x2e19e0[_0x1365ab(0xea)](_0x383301);return _0x2e19e0;}function nativeTranscriptConversationItem(_0x1f2454,_0x26534f,_0x5bf859,_0x2dce03,_0x1375ab,_0x53f8c9,_0x1b029d){const _0x1de226=_0x43ae,_0x7e9a69=_0x26534f[_0x1de226(0xba)],_0x167170=_0x26534f[_0x1de226(0xf1)]===_0x1de226(0xa1),_0x442faa=_0x26534f[_0x1de226(0xf1)]===_0x1de226(0xfa),_0x46cd85=_0x26534f[_0x1de226(0xf1)]===_0x1de226(0x12b),_0xc05ca0=_0x26534f[_0x1de226(0xf1)]===_0x1de226(0xa6),_0x491923=_0x1f2454[_0x1de226(0xf0)]===_0x1de226(0xee)&&_0x167170?normalizeClaudeTool(_0x26534f[_0x1de226(0xae)],_0x26534f[_0x1de226(0x126)],_0x26534f[_0x1de226(0x10d)],_0x26534f[_0x1de226(0x103)],_0x26534f[_0x1de226(0xab)]||_0x26534f[_0x1de226(0xdb)]):undefined,_0x303866=_0x1f2454[_0x1de226(0xf0)]===_0x1de226(0x102)&&_0x167170?normalizeCodexTool({'name':_0x26534f[_0x1de226(0xae)],'namespace':_0x1de226(0x102),'rawInput':_0x26534f[_0x1de226(0x126)],'inputSummary':_0x26534f[_0x1de226(0xb0)],'outputSummary':_0x26534f[_0x1de226(0x10d)],'truncated':_0x26534f[_0x1de226(0xab)]||_0x26534f[_0x1de226(0xdb)],..._0x26534f[_0x1de226(0x121)]===undefined?{}:{'attachments':_0x26534f[_0x1de226(0x121)]}}):undefined,_0x4dfe58=_0x1f2454[_0x1de226(0xf0)]===_0x1de226(0xee)&&_0x167170&&_0x26534f[_0x1de226(0xae)]===_0x1de226(0x9d)&&isPlainRecord(_0x26534f[_0x1de226(0x126)])?claudeUserInputQuestions(_0x26534f[_0x1de226(0x126)]):[],_0x3f658f=_0x4dfe58[_0x1de226(0xc7)]>0xb29+0xb26+-0x1*0x164f,_0x5aea59=_0x26534f[_0x1de226(0xf1)]===_0x1de226(0xf3)&&_0x26534f[_0x1de226(0x9f)]===_0x1de226(0x112)?nativeUserClientMessageId(_0x1f2454[_0x1de226(0xf0)],_0x26534f,_0x7e9a69,_0x53f8c9):null,_0x5d7a13=_0x26534f[_0x1de226(0xf1)]===_0x1de226(0xf3)?_0x26534f[_0x1de226(0x9f)]===_0x1de226(0x112)?nativeUserMessageText(_0x1f2454[_0x1de226(0xf0)],_0x26534f[_0x1de226(0xa0)]):_0x26534f[_0x1de226(0xa0)]:'',_0x38c2cf=_0x5aea59===null?undefined:runtimeUserMessagePayload(_0x5aea59,_0x53f8c9),_0x1d04db=Array[_0x1de226(0x119)](_0x38c2cf?.[_0x1de226(0x11b)])?_0x38c2cf[_0x1de226(0x11b)]:_0x26534f[_0x1de226(0xf1)]===_0x1de226(0xf3)&&_0x26534f[_0x1de226(0x9f)]===_0x1de226(0x112)&&_0x26534f[_0x1de226(0x121)]!==undefined?_0x1b029d(_0x26534f[_0x1de226(0x121)]):[],_0x26a212=_0x26534f[_0x1de226(0xf1)]===_0x1de226(0xf3)&&_0x26534f[_0x1de226(0x9f)]!==_0x1de226(0x112)?claudePlanText(_0x5d7a13):undefined,_0x819786={'id':_0x1375ab+_0x1de226(0xda)+_0x2dce03,'sessionId':_0x1f2454['id'],'turnId':_0x1375ab,'runId':null,'parentItemId':null,'sourceSequence':_0x5bf859,'revision':0x0,'kind':_0x3f658f?_0x1de226(0xbd):_0x46cd85?_0x1de226(0x12b):_0xc05ca0?_0x1de226(0xa6):_0x167170?_0x491923?.[_0x1de226(0xf1)]??_0x303866?.[_0x1de226(0xf1)]??_0x1de226(0xa1):_0x442faa?_0x1de226(0xfa):_0x26534f[_0x1de226(0xf1)]===_0x1de226(0xf3)&&_0x26534f[_0x1de226(0x9f)]===_0x1de226(0x112)?_0x1de226(0x10b):_0x26a212!==undefined?_0x1de226(0xf7):_0x1de226(0xac),'status':_0x1de226(0xbc),'payload':_0x3f658f?{'requestId':_0x1de226(0x111)+(_0x26534f[_0x1de226(0xf1)]===_0x1de226(0xa1)?_0x26534f[_0x1de226(0xf2)]:_0x1de226(0x132)+_0x2dce03),'questions':_0x4dfe58}:_0x46cd85?{'sections':_0x26534f[_0x1de226(0xca)]}:_0xc05ca0?{'phase':_0x26534f[_0x1de226(0xe6)],'summary':_0x26534f[_0x1de226(0x123)]}:_0x167170?{..._0x491923?.[_0x1de226(0xb5)]??_0x303866?.[_0x1de226(0xb5)]??{'namespace':_0x1f2454[_0x1de226(0xf0)],'toolName':_0x26534f[_0x1de226(0xae)],'title':_0x26534f[_0x1de226(0xae)],'inputSummary':_0x26534f[_0x1de226(0xb0)],'outputSummary':_0x26534f[_0x1de226(0x10d)],'progressLabel':null,'errorCode':_0x26534f[_0x1de226(0x103)]?_0x1de226(0xff):null,'truncated':_0x26534f[_0x1de226(0xab)]||_0x26534f[_0x1de226(0xdb)]},..._0x26534f[_0x1de226(0x121)]===undefined?{}:{'attachments':_0x1b029d(_0x26534f[_0x1de226(0x121)])}}:_0x442faa?{'sourceEventType':_0x26534f[_0x1de226(0xd8)],'label':_0x26534f[_0x1de226(0xd0)]}:_0x26534f[_0x1de226(0xf1)]===_0x1de226(0xf3)&&_0x26534f[_0x1de226(0x9f)]===_0x1de226(0x112)?{'clientMessageId':_0x5aea59,'text':_0x5d7a13,'contexts':[],'delivery':_0x1de226(0x109),..._0x1d04db[_0x1de226(0xc7)]===0x268f+-0x51c+0x1*-0x2173?{}:{'attachments':_0x1d04db}}:_0x26a212!==undefined?{'explanation':compactRunnerText(_0x26a212,0x1*0x610f+0x1be5*0x2+-0x4ab9),'steps':[]}:{'text':_0x5d7a13,'format':_0x1de226(0xbb),'source':_0x1de226(0xd1)},'startedAt':_0x7e9a69,'completedAt':_0x7e9a69};return _0x819786;}export function nativeUserClientMessageId(_0x25aa5a,_0x4392f,_0x356c4d,_0x174c2d){const _0x3a360b=_0x43ae,_0x17c8d4=[];for(const _0x29d12d of _0x174c2d){const _0x3d98f3=_0x29d12d[_0x3a360b(0x11c)][_0x3a360b(0x101)](_0x19bcf3=>_0x19bcf3[_0x3a360b(0xf1)]===_0x3a360b(0x10b));if(_0x3d98f3===undefined||!isPlainRecord(_0x3d98f3[_0x3a360b(0xb5)]))continue;const _0x5aec8b=_0x3d98f3[_0x3a360b(0xb5)],_0x277545=typeof _0x5aec8b[_0x3a360b(0x12f)]===_0x3a360b(0xe3)?_0x5aec8b[_0x3a360b(0x12f)]:null;if(_0x277545===null||_0x5aec8b[_0x3a360b(0xa0)]!==nativeUserMessageText(_0x25aa5a,_0x4392f[_0x3a360b(0xa0)]))continue;const _0x59859c=_0x3d98f3[_0x3a360b(0xb7)]??_0x29d12d[_0x3a360b(0xb7)];_0x17c8d4[_0x3a360b(0xea)]({'clientMessageId':_0x277545,'createdAt':_0x59859c??null});}if(_0x356c4d===null)return _0x17c8d4[_0x3a360b(0xc7)]===0xcde+-0x21f5+-0x546*-0x4?_0x17c8d4[0x1c8b+-0x2350+-0x1*-0x6c5][_0x3a360b(0x12f)]:null;const _0x49568c=_0x17c8d4[_0x3a360b(0xec)](_0x5ad566=>_0x5ad566[_0x3a360b(0xba)]!==null)[_0x3a360b(0xfb)](_0x159aca=>({..._0x159aca,'distance':Math[_0x3a360b(0x10c)](_0x356c4d-_0x159aca[_0x3a360b(0xba)])}))[_0x3a360b(0xec)](_0x5da53a=>_0x5da53a[_0x3a360b(0x136)]<=0x1*-0xac51+-0x1*0x1254d+0x2*0x15dff)[_0x3a360b(0xc5)]((_0x489fe0,_0x2f0d57)=>_0x489fe0[_0x3a360b(0x136)]-_0x2f0d57[_0x3a360b(0x136)]);return _0x49568c[-0x2f*0xce+0x132c+-0xb*-0x1b2]?.[_0x3a360b(0x12f)]??null;}function runtimeUserMessagePayload(_0x5efae2,_0x4d3423){const _0x4ae3e5=_0x43ae;for(const _0x53fb8c of _0x4d3423){const _0x3e5541=_0x53fb8c[_0x4ae3e5(0x11c)][_0x4ae3e5(0x101)](_0x446de6=>_0x446de6[_0x4ae3e5(0xf1)]===_0x4ae3e5(0x10b));if(!isPlainRecord(_0x3e5541?.[_0x4ae3e5(0xb5)])||_0x3e5541[_0x4ae3e5(0xb5)][_0x4ae3e5(0x12f)]!==_0x5efae2)continue;return _0x3e5541[_0x4ae3e5(0xb5)];}return undefined;}function nativeUserMessageText(_0x5e13ef,_0x2a474a){const _0xb8efc0=_0x43ae,_0x5ed162=stripMissionStartPrompt(_0x2a474a),_0x4673b1=_0x5e13ef===_0xb8efc0(0xee)?stripClaudePlanTag(_0x5ed162):_0x5ed162;if(_0x5e13ef!==_0xb8efc0(0x102))return _0x4673b1;return parseCodexComposerImageMarkers(_0x4673b1)[_0xb8efc0(0xa0)];}export function claudePlanText(_0x57a24c){const _0x4d51c9=_0x43ae,_0x58ec6f=_0x57a24c[_0x4d51c9(0xa7)]();if(!_0x58ec6f[_0x4d51c9(0xd6)](_0x4d51c9(0x128))||!/<\/proposed_plan>\s*$/[_0x4d51c9(0x11a)](_0x58ec6f))return undefined;const _0x270cd1=_0x58ec6f[_0x4d51c9(0x130)](_0x4d51c9(0x128)[_0x4d51c9(0xc7)])[_0x4d51c9(0xef)](/<\/proposed_plan>\s*$/,'')[_0x4d51c9(0xa7)]();return _0x270cd1[_0x4d51c9(0xc7)]>-0x9b1+-0x1406+0x1*0x1db7?_0x270cd1:undefined;}export function claudeUserInputQuestions(_0x4c8b43){const _0x2c1abd=_0x43ae;if(!Array[_0x2c1abd(0x119)](_0x4c8b43[_0x2c1abd(0xb6)])||_0x4c8b43[_0x2c1abd(0xb6)][_0x2c1abd(0xc7)]===0x4c7*-0x1+0x1fc5*-0x1+0x923*0x4||_0x4c8b43[_0x2c1abd(0xb6)][_0x2c1abd(0xc7)]>0x190c+-0x1*0x1106+0x29*-0x32)return[];const _0x493648=_0x4c8b43[_0x2c1abd(0xb6)][_0x2c1abd(0xfb)]((_0x1bc1ec,_0xc4cd03)=>{const _0x35d1f3=_0x2c1abd;if(!isPlainRecord(_0x1bc1ec)||typeof _0x1bc1ec[_0x35d1f3(0xa4)]!==_0x35d1f3(0xe3))return undefined;const _0x274569=Array[_0x35d1f3(0x119)](_0x1bc1ec[_0x35d1f3(0x134)])?_0x1bc1ec[_0x35d1f3(0x134)][_0x35d1f3(0xf9)](_0x1229c3=>{const _0x28e1bc=_0x35d1f3;if(!isPlainRecord(_0x1229c3)||typeof _0x1229c3[_0x28e1bc(0xd0)]!==_0x28e1bc(0xe3))return[];const _0x4ac138=compactRunnerText(_0x1229c3[_0x28e1bc(0xd0)],0x4*0x17f+-0x1ef8+-0x35e*-0x8);return _0x4ac138[_0x28e1bc(0xc7)]===0xb3*-0x16+-0x1276+0x21d8?[]:[{'value':_0x4ac138,'label':_0x4ac138,'description':typeof _0x1229c3[_0x28e1bc(0x10f)]===_0x28e1bc(0xe3)?compactRunnerText(_0x1229c3[_0x28e1bc(0x10f)],0xb33+0x2d*-0x6a+0xb57):null}];}):[],_0x1fd612=_0x1bc1ec[_0x35d1f3(0xe8)]===!![];return{'id':_0x35d1f3(0xeb)+_0xc4cd03,'prompt':compactRunnerText(_0x1bc1ec[_0x35d1f3(0xa4)],-0x2*0x1063+0x6a6+0x16d4*0x2),'input':_0x274569[_0x35d1f3(0xc7)]===0xd99*-0x1+-0x1ad8+0x11*0x261?_0x35d1f3(0xbf):_0x1fd612?_0x35d1f3(0xe9):_0x35d1f3(0xb8),'options':_0x274569,'allowOther':!![],'multiSelect':_0x1fd612};});return _0x493648[_0x2c1abd(0xe7)](_0x2e0f4a=>_0x2e0f4a===undefined)?[]:_0x493648;}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myagentroam/node",
3
- "version": "0.9.22",
3
+ "version": "0.9.23",
4
4
  "description": "MyAgentRoam Node runtime CLI.",
5
5
  "type": "module",
6
6
  "files": [
@@ -25,8 +25,8 @@
25
25
  "node-pty": "1.1.0",
26
26
  "ws": "^8.21.3",
27
27
  "zod": "4.4.3",
28
- "@myagentroam/agent": "^0.9.22",
29
- "@myagentroam/protocol": "^0.9.22"
28
+ "@myagentroam/agent": "^0.9.23",
29
+ "@myagentroam/protocol": "^0.9.23"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@types/ws": "^8.18.1"