@uipath/cartographer-cli 1.207.0 → 1.208.0-preview.20261203181205

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/cli.mjs +1 -1
  2. package/package.json +2 -2
package/dist/cli.mjs CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- const _0x4c3e6e=_0x3b04;(function(_0x4ffdc2,_0x1665c4){const _0x4f6336=_0x3b04,_0x3eb12b=_0x4ffdc2();while(!![]){try{const _0x514a3a=parseInt(_0x4f6336(0x1bf))/0x1+-parseInt(_0x4f6336(0x137))/0x2+-parseInt(_0x4f6336(0x304))/0x3*(parseInt(_0x4f6336(0x333))/0x4)+-parseInt(_0x4f6336(0xf4))/0x5+-parseInt(_0x4f6336(0x309))/0x6*(-parseInt(_0x4f6336(0x1ef))/0x7)+-parseInt(_0x4f6336(0x28f))/0x8+parseInt(_0x4f6336(0x224))/0x9*(parseInt(_0x4f6336(0x1af))/0xa);if(_0x514a3a===_0x1665c4)break;else _0x3eb12b['push'](_0x3eb12b['shift']());}catch(_0x148dc3){_0x3eb12b['push'](_0x3eb12b['shift']());}}}(_0x4dc0,0x4cf90));const __dirname=import.meta.dirname;var L=(_0x863abb,_0xdde705)=>()=>(_0x863abb&&(_0xdde705=_0x863abb(_0x863abb=0x0)),_0xdde705),Ye=(_0x1158df,_0x410231)=>()=>(_0x410231||_0x1158df((_0x410231={'exports':{}})[_0x4c3e6e(0x155)],_0x410231),_0x410231['exports']);import{isOnStepGrid as _0x2b5a3c}from'@uipath/delegate-sdk';function A(_0x4b28a8){const _0x23398e=_0x4c3e6e;return _0x4b28a8['replace'](/\u001b\[[0-?]*[ -/]*[@-~]|\u001b\][^\u0007\u001b]*(\u0007|\u001b\\)?|\u001b./g,'')[_0x23398e(0x23f)](/[\u0000-\u0008\u000b-\u001f\u007f-\u009f]/g,'');}function ne(_0x57c2e5){const _0x43c988=_0x4c3e6e;return A(_0x57c2e5[_0x43c988(0xfb)]??(_0x57c2e5[_0x43c988(0x232)]===M?_0x43c988(0x10b):_0x57c2e5['id']));}function Ve(_0x100121,_0x134fef,_0x44f11f){const _0x35aada=_0x4c3e6e;let _0x102e53=[''+(_0x44f11f>0x1?'['+_0x134fef+'/'+_0x44f11f+']\x20':'')+A(_0x100121[_0x35aada(0x1ae)])+(_0x100121[_0x35aada(0x275)]?_0x35aada(0x1b1):''),A(_0x100121[_0x35aada(0x1bc)])];return _0x100121['type']===_0x35aada(0x13a)&&_0x100121[_0x35aada(0x274)][_0x35aada(0x17c)]((_0x1c3de2,_0x1f393c)=>{const _0x5d29d0=_0x35aada;let _0x485792=_0x1c3de2[_0x5d29d0(0x232)]===M?'\x20(type\x20your\x20own)':'',_0x4d75ef=_0x1c3de2['description']?_0x5d29d0(0x15d)+A(_0x1c3de2[_0x5d29d0(0x13c)]):'';_0x102e53[_0x5d29d0(0x191)]('\x20\x20'+(_0x1f393c+0x1)+'.\x20'+ne(_0x1c3de2)+_0x485792+_0x4d75ef);}),_0x102e53[_0x35aada(0x31d)]('\x0a');}function oe(_0x309705,_0xaa4f25){const _0x47f737=_0x4c3e6e;let _0x1429f7=_0x309705[_0x47f737(0x328)](/[\s,]+/)[_0x47f737(0x231)](Boolean);if(_0x1429f7[_0x47f737(0x162)]===0x0)return null;let _0x5f3207=_0x1429f7[_0x47f737(0x29f)](_0x50020a=>/^\d+$/[_0x47f737(0x2ae)](_0x50020a)?Number(_0x50020a):NaN);return _0x5f3207[_0x47f737(0x2b1)](_0x425615=>!Number['isInteger'](_0x425615)||_0x425615<0x1||_0x425615>_0xaa4f25)?null:[...new Set(_0x5f3207)][_0x47f737(0x29f)](_0x959721=>_0x959721-0x1);}function Xe(_0x2def0b){const _0x322f0e=_0x4c3e6e;return typeof _0x2def0b==_0x322f0e(0x169)&&_0x2def0b!==null&&_0x322f0e(0x312)in _0x2def0b;}async function j(_0x124eec,_0x3b499f,_0x47b79f,_0x3859c4){const _0x293e78=_0x4c3e6e;for(;;){let _0x37e193=(await _0x124eec(_0x3b499f))[_0x293e78(0x316)]();if(_0x37e193==='')return;let _0x521979=_0x3859c4(_0x37e193);if(!Xe(_0x521979))return _0x521979;_0x47b79f(_0x521979['refused']+'\x0a');}}async function Ze(_0x68e8eb,_0x337b03,_0x16d1ef){const _0x22405d=_0x4c3e6e;if(_0x68e8eb[_0x22405d(0x274)]['length']===0x0||_0x68e8eb[_0x22405d(0x274)][_0x22405d(0x228)](_0x4e9d57=>_0x4e9d57[_0x22405d(0x232)]===M)){let _0x4e1d06=(await _0x337b03(_0x22405d(0x107)))['trim']();return _0x4e1d06===''?void 0x0:{'text':_0x4e1d06};}let _0x34f1c8=_0x68e8eb[_0x22405d(0x274)][_0x22405d(0x1d7)](_0x40e151=>_0x40e151['kind']===M),_0x5107b9=_0x68e8eb[_0x22405d(0x2cd)]?_0x22405d(0x2ef):_0x22405d(0xf7)+(_0x34f1c8>=0x0?_0x22405d(0x212):'')+'\x20(Enter\x20to\x20skip):\x20',_0x58a7b2=await j(_0x337b03,_0x5107b9,_0x16d1ef,_0x29d662=>{const _0x5da855=_0x22405d;let _0x56d090=oe(_0x29d662,_0x68e8eb[_0x5da855(0x274)]['length']);return _0x56d090&&(_0x68e8eb[_0x5da855(0x2cd)]||_0x56d090[_0x5da855(0x162)]===0x1)?_0x56d090:!_0x68e8eb[_0x5da855(0x2cd)]&&_0x34f1c8>=0x0?{'typed':_0x29d662}:{'refused':_0x68e8eb['multiSelect']?_0x5da855(0x1f1)+_0x68e8eb[_0x5da855(0x274)][_0x5da855(0x162)]+'.':'Enter\x20one\x20number\x20from\x201\x20to\x20'+_0x68e8eb[_0x5da855(0x274)]['length']+'.'};});if(_0x58a7b2===void 0x0)return;if(!Array[_0x22405d(0x130)](_0x58a7b2))return{'text':_0x58a7b2[_0x22405d(0x2c6)]};let _0x2ee777=_0x58a7b2['map'](_0x4530c6=>_0x68e8eb['options'][_0x4530c6]['id']),_0x18d7b7=_0x2ee777[_0x22405d(0x100)](M)?await j(_0x337b03,ne(_0x68e8eb['options'][_0x34f1c8])+':\x20',_0x16d1ef,_0x43eb2b=>_0x43eb2b):void 0x0;if(!(_0x2ee777[_0x22405d(0x100)](M)&&_0x18d7b7===void 0x0))return _0x68e8eb[_0x22405d(0x2cd)]?{'optionIds':_0x2ee777,..._0x18d7b7!==void 0x0?{'text':_0x18d7b7}:{}}:_0x18d7b7!==void 0x0?{'text':_0x18d7b7}:{'optionId':_0x2ee777[0x0]};}async function et(_0x2f0975,_0x1d0569,_0x2b82ca){const _0x14765e=_0x4c3e6e;let _0x58662a={};for(let _0x37da9b of _0x2f0975[_0x14765e(0x16a)]){let _0x3a03a5=_0x37da9b['default']??_0x37da9b[_0x14765e(0x27d)],_0x34c0f2=_0x37da9b[_0x14765e(0x151)]??0x1,_0x558dd3=_0x37da9b[_0x14765e(0x2a1)]?'\x20'+A(_0x37da9b[_0x14765e(0x2a1)]):'',_0x189c08=_0x14765e(0x310)+_0x37da9b[_0x14765e(0x27d)]+_0x14765e(0x116)+_0x37da9b[_0x14765e(0x343)]+(_0x34c0f2!==0x1?_0x14765e(0x258)+_0x34c0f2:''),_0x58ad46=await j(_0x1d0569,A(_0x37da9b[_0x14765e(0xfb)])+'\x20['+_0x37da9b[_0x14765e(0x27d)]+'-'+_0x37da9b['max']+_0x558dd3+_0x14765e(0x145)+_0x3a03a5+_0x14765e(0x2c4),_0x2b82ca,_0x36a20b=>{const _0x54b016=_0x14765e;let _0x58383e=Number(_0x36a20b);return Number[_0x54b016(0x33d)](_0x58383e)&&_0x58383e>=_0x37da9b[_0x54b016(0x27d)]&&_0x58383e<=_0x37da9b[_0x54b016(0x343)]&&_0x2b5a3c(_0x58383e,_0x37da9b['min'],_0x34c0f2)?_0x58383e:{'refused':_0x54b016(0x250)+_0x189c08+'.'};});_0x58662a[_0x37da9b['id']]=_0x58ad46??_0x3a03a5;}return{'values':_0x58662a};}async function tt(_0x42c3fc,_0x16b47e,_0x3ebf63){const _0x17d227=_0x4c3e6e;_0x3ebf63(_0x42c3fc[_0x17d227(0x355)][_0x17d227(0x29f)]((_0x564a08,_0x5aeed)=>'\x20\x20'+(_0x5aeed+0x1)+'.\x20'+A(_0x564a08[_0x17d227(0xfb)]))[_0x17d227(0x31d)]('\x0a')+'\x0a');let _0x32ecb0={};for(let _0x451e0e of _0x42c3fc[_0x17d227(0x2dc)]){let _0x151c9d=await j(_0x16b47e,A(_0x451e0e['label'])+':\x20bucket\x20number\x20(Enter\x20to\x20leave\x20out):\x20',_0x3ebf63,_0x352400=>{const _0x2e9d9c=_0x17d227;let _0x15fd7e=oe(_0x352400,_0x42c3fc[_0x2e9d9c(0x355)]['length']);return _0x15fd7e&&_0x15fd7e[_0x2e9d9c(0x162)]===0x1?_0x15fd7e[0x0]:{'refused':'Enter\x20one\x20number\x20from\x201\x20to\x20'+_0x42c3fc[_0x2e9d9c(0x355)]['length']+'.'};});if(_0x151c9d===void 0x0)continue;let _0x4ecc15=_0x42c3fc[_0x17d227(0x355)][_0x151c9d],_0x24ac75={};for(let _0x3c3f54 of _0x4ecc15['subFields']??[]){let _0x5e471e='\x20\x20'+A(_0x3c3f54[_0x17d227(0xfb)])+(_0x3c3f54[_0x17d227(0x275)]?_0x17d227(0x1b1):'')+':\x20',_0x1f2d7a=await j(_0x16b47e,_0x5e471e,_0x3ebf63,_0x53fc39=>_0x53fc39);for(;_0x1f2d7a===void 0x0&&!_0x3c3f54[_0x17d227(0x275)];)_0x3ebf63(A(_0x3c3f54[_0x17d227(0xfb)])+_0x17d227(0x345)),_0x1f2d7a=await j(_0x16b47e,_0x5e471e,_0x3ebf63,_0x3ba743=>_0x3ba743);_0x1f2d7a!==void 0x0&&(_0x24ac75[_0x3c3f54['id']]=_0x1f2d7a);}_0x32ecb0[_0x451e0e['id']]={'bucket':_0x4ecc15['id'],...Object[_0x17d227(0xf8)](_0x24ac75)['length']>0x0?{'subFields':_0x24ac75}:{}};}return Object[_0x17d227(0xf8)](_0x32ecb0)[_0x17d227(0x162)]>0x0?{'assignments':_0x32ecb0}:void 0x0;}async function nt(_0x4474bd,_0x352060,_0xb14a8c){const _0x344986=_0x4c3e6e;if(_0x4474bd[_0x344986(0x27c)]===_0x344986(0x13a))return Ze(_0x4474bd,_0x352060,_0xb14a8c);if(_0x4474bd[_0x344986(0x27c)]==='numeric')return et(_0x4474bd,_0x352060,_0xb14a8c);if(_0x4474bd['type']===_0x344986(0x21f))return tt(_0x4474bd,_0x352060,_0xb14a8c);let _0xc36b75=(await _0x352060(_0x344986(0x305)))[_0x344986(0x316)]();return _0xc36b75===''?void 0x0:{'text':_0xc36b75};}function se(_0x4d7ff9,_0x234353){return async _0x4baa0d=>{const _0x36be80=_0x3b04;let _0x1459a1=_0x4d7ff9();if(!_0x1459a1)throw new Error(_0x36be80(0x2f1));let _0x1a6a79=async _0x41407e=>{const _0x19c2d8=_0x36be80;if(_0x4baa0d['signal'][_0x19c2d8(0x22a)])throw new Error(_0x19c2d8(0x2a9));let _0x435d64=await _0x1459a1[_0x19c2d8(0x147)](_0x41407e,_0x4baa0d['signal']);if(_0x435d64===null)throw new Error(_0x19c2d8(0x223));return _0x435d64;};try{_0x234353('\x0a'+(_0x4baa0d[_0x36be80(0x23a)]?A(_0x4baa0d[_0x36be80(0x23a)])+'\x0a':''));let _0x5b1677={};for(let [_0x2a3a8c,_0x2ab09a]of _0x4baa0d[_0x36be80(0x264)][_0x36be80(0x1a6)]()){_0x234353('\x0a'+Ve(_0x2ab09a,_0x2a3a8c+0x1,_0x4baa0d[_0x36be80(0x264)][_0x36be80(0x162)])+'\x0a');let _0x4d8fa2=await nt(_0x2ab09a,_0x1a6a79,_0x234353);_0x4d8fa2!==void 0x0&&(_0x5b1677[_0x2ab09a['id']]=_0x4d8fa2);}return{'answers':_0x5b1677};}finally{_0x1459a1[_0x36be80(0x20b)]();}};}var M,re=L(()=>{const _0x5d5046=_0x4c3e6e;M=_0x5d5046(0x2db);});import{createInterface as _0x288e38}from'node:readline';function ie(_0x49ce12){const _0x369f9e=_0x4c3e6e;return B[_0x369f9e(0x100)](_0x49ce12);}function st(_0x484c4d){const _0x229833=_0x4c3e6e;if(typeof _0x484c4d==_0x229833(0x1cd))return _0x484c4d;if(!Array[_0x229833(0x130)](_0x484c4d))return;let _0x3a43fa=[];for(let _0x1875e0 of _0x484c4d){if(typeof _0x1875e0!=_0x229833(0x169)||_0x1875e0===null)return;let {type:_0x457897,text:_0x7193a4}=_0x1875e0;if(_0x457897!==_0x229833(0x13a)||typeof _0x7193a4!='string')return;_0x3a43fa[_0x229833(0x191)](_0x7193a4);}return _0x3a43fa[_0x229833(0x31d)]('\x0a');}function rt(_0xcd954a){const _0x228d57=_0x4c3e6e;if(_0xcd954a[_0x228d57(0x316)]()==='')return null;let _0x493f5e;try{_0x493f5e=JSON[_0x228d57(0x2b7)](_0xcd954a);}catch{throw new N(_0x228d57(0x25e));}if(typeof _0x493f5e!=_0x228d57(0x169)||_0x493f5e===null)throw new N(_0x228d57(0x255));let {type:_0x1d0c1b,message:_0x2f2ded,uuid:_0x41fe65}=_0x493f5e;if(_0x1d0c1b!==_0x228d57(0x2d1))throw new N(_0x228d57(0x329)+JSON[_0x228d57(0x323)](_0x1d0c1b)+',\x20not\x20\x22user\x22');let _0x431929=st(_0x2f2ded?.[_0x228d57(0x30f)]);if(_0x431929===void 0x0)throw new N(_0x228d57(0x216));if(_0x431929['trim']()==='')throw new N('an\x20input\x20line\x20has\x20an\x20empty\x20message');return{'text':_0x431929,'uuid':typeof _0x41fe65==_0x228d57(0x1cd)?_0x41fe65:void 0x0};}function ae(_0x50be88,_0x264d35){const _0x41a89a=_0x4c3e6e;return JSON[_0x41a89a(0x323)]({'type':'user','message':{'role':_0x41a89a(0x2d1),'content':_0x50be88['text']},'session_id':_0x264d35,..._0x50be88[_0x41a89a(0x27e)]===void 0x0?{}:{'uuid':_0x50be88[_0x41a89a(0x27e)]},'isReplay':!0x0})+'\x0a';}async function*le(_0x52ecef,_0x4b76ca){const _0x522b73=_0x4c3e6e;let _0x6d05e2=_0x288e38({'input':_0x52ecef,'crlfDelay':0x1/0x0});try{for await(let _0x286dbb of _0x6d05e2){let _0x621c3a;try{_0x621c3a=rt(_0x286dbb);}catch(_0x281fd6){if(!(_0x281fd6 instanceof N))throw _0x281fd6;_0x4b76ca(_0x281fd6);continue;}_0x621c3a&&(yield _0x621c3a);}}finally{_0x6d05e2[_0x522b73(0x34b)]();}}var B,N,K=L(()=>{const _0x5c9643=_0x4c3e6e;B=[_0x5c9643(0x13a),_0x5c9643(0x31e)],N=class extends Error{};});function ce(_0x3d916e){const _0x491f30=_0x4c3e6e;let {input:_0x750223,getAgent:_0x27d537,replay:_0x5a7ac4,onEvent:_0x3532e1,write:_0x5eb52c,warn:_0x513dc8,isRunStopNotice:_0x414748,actionableErrorText:_0xb22db9}=_0x3d916e,_0x5aa7e4=0x0,_0x557383=0x0,_0x315dcf=Promise['resolve'](),_0x4f6232=!0x1,_0x206007=()=>{},_0x4e2a32=new Promise(_0x1660b6=>{_0x206007=_0x1660b6;}),_0x5e4e16=[],_0x5b1225=_0x3532e1(_0x19a024=>{const _0x1cca6a=_0x3b04;_0x19a024[_0x1cca6a(0x27c)]===_0x1cca6a(0x1eb)&&(_0x206007(),_0x5e4e16['shift']()?.());}),_0x467b4c=_0xb4f04d=>{const _0x4a89e7=_0x3b04;_0x5a7ac4&&_0x5eb52c(ae(_0xb4f04d,_0x27d537()[_0x4a89e7(0x1b2)]()));},_0x90ce72=(async()=>{const _0x44e696=_0x3b04;await _0x4e2a32;for await(let _0x17c1fa of _0x750223[_0x44e696(0x282)]){if(_0x4f6232)return;_0x5aa7e4===0x0&&(_0x557383=_0x27d537()[_0x44e696(0x295)]()['length']),_0x5aa7e4++;let _0x37f59d=new Promise(_0x1feec4=>{_0x5e4e16['push'](()=>{_0x467b4c(_0x17c1fa),_0x1feec4();});}),_0x362e90=()=>{const _0x56a0cd=_0x44e696;_0x5aa7e4--,_0x5e4e16[_0x56a0cd(0x2c0)]();},_0x5a39c8=_0x27d537()[_0x44e696(0x177)](_0x17c1fa[_0x44e696(0x13a)]);_0x315dcf=_0x5a39c8[_0x44e696(0xf6)](()=>{});try{await _0x5a39c8?await Promise[_0x44e696(0x349)]([_0x37f59d,_0x27d537()['waitForIdle']()]):(_0x362e90(),_0x513dc8('A\x20steering\x20message\x20arrived\x20after\x20the\x20turn\x20ended:\x20not\x20read.\x0a'));}catch(_0x3eac6b){_0x362e90(),_0x513dc8('A\x20steering\x20message\x20was\x20not\x20sent:\x20'+(_0x3eac6b instanceof Error?_0x3eac6b[_0x44e696(0x213)]:String(_0x3eac6b))+'\x0a');}}})()[_0x491f30(0xf6)](_0xa369e2=>{const _0x352513=_0x491f30;_0x513dc8('Steering\x20input\x20stopped:\x20'+(_0xa369e2 instanceof Error?_0xa369e2[_0x352513(0x213)]:String(_0xa369e2))+'\x0a');});return{'settle':async _0x461fde=>{const _0x5cd897=_0x491f30;if(await _0x315dcf,_0x5aa7e4===0x0)return _0x461fde;await _0x27d537()[_0x5cd897(0x13e)]();for(let _0x110c90 of _0x5e4e16)_0x110c90();_0x5e4e16=[];let _0x38d70c=_0x27d537()[_0x5cd897(0x295)]()[_0x5cd897(0x281)](_0x557383)[_0x5cd897(0x350)](_0x3a7ec5=>_0x3a7ec5[_0x5cd897(0x15b)]===_0x5cd897(0x22b)||_0x414748(_0x3a7ec5)||_0x3a7ec5[_0x5cd897(0x27c)]==='ai'&&_0x3a7ec5[_0x5cd897(0x15b)]!=='agent_thought'&&_0x3a7ec5[_0x5cd897(0x15b)]!=='followUpsRenderer'&&!!_0x3a7ec5[_0x5cd897(0x30f)]);if(!_0x38d70c)return{..._0x461fde,'failed':!0x0,'text':'The\x20steering\x20message\x20was\x20not\x20answered:\x20its\x20turn\x20did\x20not\x20run\x20or\x20added\x20no\x20reply.'};let _0x565ba7=_0x38d70c[_0x5cd897(0x15b)]===_0x5cd897(0x22b);return typeof _0x38d70c[_0x5cd897(0x30f)]!=_0x5cd897(0x1cd)?{..._0x461fde,'failed':_0x565ba7}:{..._0x461fde,'failed':_0x565ba7,'text':_0x565ba7?_0xb22db9(_0x38d70c[_0x5cd897(0x30f)]):_0x38d70c[_0x5cd897(0x30f)]};},'stop':()=>{const _0x45588a=_0x491f30;_0x4f6232=!0x0,_0x5b1225(),_0x750223[_0x45588a(0x34b)]();}};}var de=L(()=>{K();});import _0x1c5473 from'fs';import _0x46415a from'path';import{clearLine as _0x3ef7f0,createInterface as _0x1c612e,cursorTo as _0x2da078}from'node:readline';function _0x4dc0(){const _0x4ed131=['--computer-use\x20turns\x20the\x20screen\x20on,\x20and\x20--headless\x20and\x20--no-computer-use\x20turn\x20it\x20off:\x20pass\x20one\x20of\x20them.','an\x20input\x20line\x20has\x20no\x20message.content,\x20a\x20string\x20or\x20a\x20list\x20of\x20text\x20blocks','Licensing:\x20\x20\x20\x20','Use:\x20','\x20--session\x20','response','Invalid\x20--output-format:\x20','\x0a\x0aUsage:\x0a\x20\x20','--tenant','check','bucket','\x20\x20from\x20','\x20sessions\x20[list]`\x20only.','updatedAt','Input\x20closed\x20before\x20the\x20question\x20was\x20answered.','9oMmCSR','\x20delegations\x20show|claim\x20ID|LINK\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Read\x20a\x20delegation\x20assigned\x20to\x20you\x20(or\x20a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20delegate://delegation/…\x20link),\x20or\x20claim\x20it:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20prints\x20the\x20session\x20to\x20work\x20it\x20in\x0a\x20\x20','Tenant:\x20','\x20delegations\x20create`\x20only.','every','runnerUrl','aborted','actionable_error','a\x20directory\x20path','date','evaluate','Unknown\x20flag:\x20','\x20models)\x20before\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20run\x20starts;\x20an\x20unknown\x20id\x20fails\x20and\x20lists\x20the\x20valid\x20ones.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default:\x20gpt_5_6_luna.\x20Also\x20settable\x20via\x20MODEL\x20env\x20var.\x0a\x20\x20--keep-alive\x20\x20\x20\x20\x20\x20Reuse/leave\x20interop\x20running\x20across\x20invocations\x0a\x20\x20--headless\x20\x20\x20\x20\x20\x20\x20\x20Skip\x20interop\x20(text-only\x20prompts)\x0a\x20\x20--no-computer-use\x20Keep\x20interop\x20—\x20file,\x20Office,\x20PDF\x20and\x20shell\x20tools\x20keep\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20working\x20—\x20but\x20drop\x20the\x20screen:\x20no\x20screenshots,\x20no\x20window\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20list,\x20no\x20UI-automation\x20tools.\x20Cuts\x20image\x20tokens\x20and\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20per-turn\x20screen\x20capture,\x20and\x20stops\x20desktop\x20window\x20titles\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20leaving\x20the\x20machine.\x20Use\x20for\x20document\x20and\x20file\x20work.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--headless\x20implies\x20this\x20and\x20turns\x20interop\x20off\x20as\x20well\x0a\x20\x20--no-connections\x20\x20Disable\x20orchestrator\x20ConnectionService\x20(silences\x20404\x20warnings)\x0a\x20\x20--no-security\x20\x20\x20\x20\x20Disable\x20tool\x20security\x20wrapper\x20(use\x20only\x20for\x20debugging)\x0a\x20\x20--no-memory\x20\x20\x20\x20\x20\x20\x20Do\x20not\x20send\x20the\x20Delegate\x20app\x27s\x20local\x20long-term\x20memories\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20with\x20each\x20turn,\x20and\x20do\x20not\x20ask\x20the\x20model\x20to\x20save\x20new\x20ones\x0a\x20\x20--task-automation\x20Record\x20every\x20UI\x20action\x20of\x20the\x20run,\x20with\x20the\x20selector\x20of\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20element\x20it\x20acted\x20on,\x20to\x20<working-dir>/captures/<session>/\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(~/.aria-sdk\x20without\x20--working-dir),\x20so\x20you\x20can\x20then\x20ask\x20for\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20task\x20as\x20a\x20UiPath\x20coded\x20workflow\x20(uipath-taskautomation\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20skill).\x20The\x20log\x20holds\x20on-screen\x20text\x20and\x20your\x20requests;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20typed\x20values\x20are\x20masked.\x20Needs\x20computer\x20use.\x20Ignored\x20with\x20a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20warning\x20where\x20the\x20deployment\x20does\x20not\x20offer\x20it\x20yet\x0a\x20\x20--attach\x20PATH\x20\x20\x20\x20\x20File\x20or\x20folder\x20sent\x20with\x20the\x20first\x20message\x20(repeatable),\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20as\x20the\x20Delegate\x20app\x20sends\x20attached\x20files:\x20images\x20inline,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20PDFs\x20and\x20other\x20documents\x20as\x20a\x20path\x20the\x20agent\x20reads,\x20text\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20inline\x20up\x20to\x2016,000\x20characters.\x2030\x20MiB\x20per\x20message\x20in\x20all;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20larger\x20files\x20go\x20as\x20a\x20path.\x20In\x20a\x20conversation,\x20later\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20messages\x20carry\x20none\x20of\x20their\x20own,\x20but\x20the\x20first\x20message\x27s\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20stay\x20in\x20context\x0a\x20\x20--preload-skill\x20NAME\x20\x20Preload\x20a\x20skill\x20into\x20the\x20session\x20(repeatable).\x20The\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20skill\x27s\x20content\x20is\x20attached\x20before\x20the\x20first\x20model\x20turn\x20—\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20same\x20mechanism\x20as\x20project\x20preloaded\x20skills\x20in\x20the\x20app\x0a\x20\x20--project\x20ID\x20\x20\x20\x20\x20\x20Route\x20the\x20session\x27s\x20local\x20wiki\x20and\x20plans\x20to\x20a\x20project\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(<working-dir>/projects/<ID>/wiki).\x20Client-side\x20key\x20only\x0a\x20\x20--vertical\x20ID\x20\x20\x20\x20\x20Run\x20the\x20session\x20as\x20that\x20product\x27s\x20vertical,\x20as\x20its\x20tab\x20in\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20desktop\x20app\x20does,\x20with\x20no\x20desktop\x20app\x20installed.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default:\x20none\x0a\x20\x20--working-dir\x20PATH\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Shell\x20cwd\x20for\x20the\x20agent\x20and\x20root\x20for\x20SDK-local\x20state.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Relative\x20paths\x20resolve\x20against\x20the\x20current\x20directory;\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20directory\x20is\x20created\x20if\x20missing\x0a\x20\x20--skills-path\x20PATH\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Folder\x20of\x20custom\x20skills,\x20loaded\x20on\x20top\x20of\x20the\x20skills\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20package\x20ships;\x20wins\x20on\x20a\x20name\x20clash\x20(also:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20DELEGATE_BUNDLED_SKILLS_PATH)\x0a\x20\x20--effort\x20TIER\x20\x20\x20\x20\x20Reasoning\x20effort:\x20low\x20|\x20medium\x20|\x20high\x20|\x20xhigh\x20|\x20max.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default:\x20the\x20model\x27s\x20recommended\x20tier\x0a\x20\x20--session\x20ID\x20\x20\x20\x20\x20\x20Continue\x20an\x20existing\x20backend\x20session\x20(an\x20unknown\x20id\x20exits\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x201;\x20the\x20backend\x20assigns\x20new\x20ids).\x20For\x20complete:\x20the\x20session\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20whose\x20history\x20is\x20the\x20context\x0a\x20\x20--json-schema\x20FILE\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20JSON\x20schema\x20the\x20structured\x20answer\x20must\x20match\x20(complete,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20and\x20prompts:\x20implies\x20--print)\x0a\x20\x20--runner-url\x20URL\x20\x20(host)\x20Runner\x20worker\x20WS\x20URL.\x20Required;\x20or\x20CONTROL_PLANE_WS_URL\x20env\x0a\x20\x20--interop\x20PATH\x20\x20\x20\x20(host)\x20Interop\x20binary\x20path;\x20or\x20INTEROP_EXECUTABLE_PATH\x20env.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Absent\x20→\x20registration/discovery\x20only,\x20tool\x20execution\x20disabled\x0a\x20\x20--worker-id\x20ID\x20\x20\x20\x20(host)\x20Stable\x20worker\x20identity;\x20or\x20WORKER_ID\x20env.\x20Default:\x20hostname\x0a\x20\x20--page\x20N\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(sessions)\x20Page\x20to\x20show,\x20from\x201.\x20Default:\x201\x0a\x20\x20--limit\x20N\x20\x20\x20\x20\x20\x20\x20\x20\x20(sessions)\x20Rows\x20per\x20page,\x201-100.\x20Default:\x2030\x0a\x20\x20--include-subagents\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(sessions)\x20Also\x20list\x20sub-agent\x20sessions,\x20hidden\x20by\x20default\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20as\x20in\x20the\x20desktop\x20app\x27s\x20history\x0a\x20\x20--to\x20WHO\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(delegations\x20create)\x20Assign\x20to\x20this\x20person:\x20an\x20email,\x20or\x20a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20name\x20that\x20matches\x20exactly\x20one\x20colleague\x20(see\x20org-users)\x0a\x20\x20--summary\x20TEXT\x20\x20\x20\x20(delegations\x20create)\x20The\x20briefing\x20the\x20person\x20starts\x20from.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default:\x20empty,\x20for\x20a\x20task\x20that\x20stands\x20on\x20its\x20own\x0a\x20\x20--output-format\x20FMT\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20text\x20(default)\x20|\x20json\x20|\x20stream-json.\x20json\x20prints\x20one\x20result\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20object\x20on\x20exit;\x20stream-json\x20prints\x20every\x20agent\x20event\x20as\x20one\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20JSON\x20line,\x20then\x20the\x20result.\x20Both\x20keep\x20stdout\x20JSON-only\x20(logs,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20progress\x20and\x20the\x20session\x20id\x20go\x20to\x20stderr),\x20imply\x20--print,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20and\x20exit\x201\x20when\x20the\x20turn\x20ends\x20in\x20error.\x20Also\x20honoured\x20by\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20every\x20subcommand\x20that\x20prints\x20a\x20result\x20(all\x20but\x20login,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20logout,\x20tenant\x20and\x20host)\x0a\x20\x20--input-format\x20FMT\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20text\x20(default)\x20|\x20stream-json.\x20stream-json\x20reads\x20one\x20JSON\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20user\x20message\x20per\x20line\x20on\x20stdin\x20while\x20the\x20turn\x20runs:\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20first\x20is\x20the\x20prompt\x20(give\x20none\x20as\x20an\x20argument),\x20each\x20later\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20one\x20steers\x20the\x20turn\x20in\x20flight.\x20Needs\x20--output-format\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20stream-json\x0a\x20\x20--replay-user-messages\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(--input-format\x20stream-json)\x20Echo\x20each\x20steering\x20message\x20on\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20stdout\x20(isReplay:\x20true,\x20same\x20uuid)\x20once\x20the\x20agent\x20takes\x20it\x0a\x20\x20-q,\x20--quiet\x20\x20\x20\x20\x20\x20\x20Suppress\x20🤔\x20thinking\x20output\x20to\x20stderr\x0a\x20\x20--verbose\x20\x20\x20\x20\x20\x20\x20\x20\x20Surface\x20the\x20SDK\x27s\x20and\x20the\x20framework\x27s\x20own\x20logs.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Diagnostics\x20only,\x20on\x20stdout;\x20independent\x20of\x20-q\x0a','filter','kind','workingDirectory','Cartographer\x20agent\x20CLI','an\x20email\x20address\x20or\x20name','\x20--json-schema\x20FILE\x20\x22<prompt>\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20One\x20turn,\x20then\x20its\x20result\x20extracted\x20as\x20JSON\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20matching\x20the\x20schema\x20in\x20FILE\x20(printed\x20after\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20answer;\x20\x22structured\x22\x20in\x20the\x20JSON\x20result);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20exit\x201\x20when\x20the\x20extraction\x20fails\x0a\x20\x20','\x20sessions\x20fork\x20ID\x20[MESSAGE]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Copy\x20session\x20ID\x20into\x20a\x20new\x20session,\x20up\x20to\x20and\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20including\x20message\x20MESSAGE\x20(default:\x20all\x20of\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20it);\x20continue\x20it\x20with\x20--session\x20NEW_ID\x0a\x20\x20','log','Invalid\x20--effort:\x20','intro','Source:\x20\x20\x20\x20\x20\x20\x20','\x20as\x20\x22','includeSubAgents','--attach:\x20no\x20such\x20file\x20or\x20folder:\x20','replace','alreadyAccepted','\x0aAvailable\x20models\x20(','exec','startsWith','--worker-id','contextSummary','end','jsonSchemaPath','ASSIGNEE','extra_pool_consumed_pu','No\x20auth\x20found.\x20Set\x20AUTH_TOKEN\x20(or\x20AUTH_TOKEN_FILE)/TENANT_ID/ORG_ID\x20env\x20vars,\x20or\x20run\x20`','\x0a⚠️\x20\x20Auth\x20expired.\x20Opening\x20browser\x20to\x20re-login…\x0a','--url\x20applies\x20to\x20`','.aria','stderr',']\x20Backend\x20URL:\x20','Enter\x20a\x20number\x20','\x20--turn\x20','\x20usage\x20activity|daily`\x20only.','--input-format\x20and\x20--replay-user-messages\x20apply\x20to\x20prompts\x20only.','outputFormat','an\x20input\x20line\x20is\x20not\x20a\x20JSON\x20object','Continue\x20it\x20with:\x20','--days','\x20in\x20steps\x20of\x20','product','--attach\x20applies\x20to\x20prompts\x20only.','Model\x20','command','--session\x20applies\x20to\x20the\x20`','an\x20input\x20line\x20is\x20not\x20JSON','total_cost_usd','a\x20briefing\x20text','delegations\x20claim\x20<delegation-id|delegate://delegation/…>','export','pendingResults','questions','No\x20CLI\x20login\x20found.\x20Run\x20`','choice\x20','\x20<title>','No\x20CLI\x20login\x20found\x20—\x20nothing\x20to\x20remove.','\x27\x20cannot\x20be\x20read:\x20','\x20login\x20--env\x20<alpha|staging|production>,\x20or\x20','\x20maps\x20share\x20--project\x20ID\x20--remote\x20URL|PATH\x20--map-name\x20NAME\x20[--working-dir\x20PATH]','a\x20JSON\x20schema\x20file','Tenants\x20of\x20','session_consumed_pu','rubric_version','),\x20','lockReason','\x20prompt,\x20','email','options','optional','--skip-env-check\x20applies\x20to\x20`','\x20usage\x20[--session\x20ID]\x20\x20\x20\x20Quota\x20and\x20spend:\x20licensing\x20quota,\x20monthly\x20spend\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20and\x20cap\x0a\x20\x20','settle','show','cancelled','\x20evaluate|rerank|verify\x20FILE|-\x20[--model\x20ID]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Stateless\x20typed\x20judgments:\x20send\x20the\x20JSON\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20request\x20in\x20FILE\x20(or\x20stdin\x20with\x20-)\x20to\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20/v1/completions/<command>\x20and\x20print\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20answers;\x20--model\x20overrides\x20its\x20\x22model\x22.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Exits\x201\x20when\x20the\x20backend\x20rejects\x20it\x0a\x20\x20','type','min','uuid','limit_enabled','--limit','slice','messages','activity','\x20(estimated\x20$','inputFormat','hide','\x20—\x20sign\x20out\x20in\x20the\x20Delegate\x20app\x20to\x20clear\x20that.','\x20delegations\x20list\x20PROJECT\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Every\x20delegation\x20targeting\x20a\x20backend\x20project\x0a\x20\x20','dismiss','\x20delegations\x20','delegations\x20list\x20<backend-project-id>','\x20whoami\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20the\x20current\x20login\x20(org,\x20tenant,\x20token\x20expiry)\x0a\x20\x20','a\x20vertical\x20id','Organization:\x20','2726864NeFnxl','skip','toUpperCase','\x20login`\x20only.\x20Other\x20commands\x20follow\x20the\x20saved\x20login,\x20or\x20--backend\x20<url>.','\x20completion','list','getSessionMessages','UPDATED','verbose','assignedUserEmail','\x20\x22<prompt>\x22\x0aAnswer\x20with:\x20','cleanup','Already\x20answered','orgLogicalName','fork',':\x20cannot\x20read\x20the\x20JSON\x20schema\x20(','map','--turn','unit','period_days','delegations\x20accept\x20<delegation-id>','No\x20turn\x20','machineOutput','toFixed','task','effort','The\x20turn\x20was\x20cancelled.','host','\x20host\x20uninstall\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Remove\x20auto-start\x0a\x20\x20','replayUserMessages','The\x20saved\x20CLI\x20login\x20could\x20not\x20be\x20refreshed.\x20Run\x20`','test','computerUse','sessions','some','input','complete\x20needs\x20a\x20prompt:\x20','delegation','\x20\x22<prompt>\x22\x0a','\x0a🤔\x20','parse','displayName','\x20not\x20found,\x20has\x20no\x20messages','self-hosted\x20(Automation\x20Suite\x20/\x20Dedicated)','No\x20sessions\x20on\x20page\x20','active_days','Base\x20URL:\x20\x20\x20\x20\x20','quiet','Tokens:\x20','pop','the\x20JSON\x20schema','Cartographer:\x20every\x20session\x20runs\x20as\x20the\x20cartographer\x20vertical\x20(its\x20prompt,\x0a\x20\x20and\x20the\x20Map\x20of\x20Work\x20of\x20the\x20--project\x20folder)\x20without\x20computer\x20use,\x20with\x0a\x20\x20these\x20skills\x20preloaded:\x20','You>\x20','):\x20','\x20<file.json>,\x20or\x20-\x20to\x20read\x20stdin.','typed','--working-dir','interopPath','readFileSync','padEnd','Unknown\x20sessions\x20action:\x20','total_token_units','multiSelect','\x0aAccept\x20one\x20with:\x20','\x20of\x20session\x20','answers','user','thinking','\x20sessions\x20cancel\x20','\x20-p\x20\x22<prompt>\x22\x20--output-format\x20json|stream-json\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20One\x20turn\x20with\x20JSON-only\x20stdout;\x20exit\x201\x20on\x20error\x0a\x20\x20','score\x20','Could\x20not\x20check\x20BYO\x20model\x20warnings:\x20','transcribe','.\x20Drop\x20--vertical.','token_units','\x20usage`,\x20`usage\x20activity`\x20or\x20`usage\x20daily`.','userinput','items','\x20complete`\x20only.','Claimed\x20from\x20delegation\x20','\x20PU\x20used','\x20sessions\x20[list]\x20[--page\x20N]\x20[--limit\x20N]\x20[--include-subagents]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20your\x20backend\x20chat\x20sessions,\x20most\x20recently\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20active\x20first\x20(resume\x20one\x20with\x20--session\x20ID)\x0a\x20\x20','env','.\x20Use:\x20','--task-automation','\x20min)','--replay-user-messages\x20needs\x20--input-format\x20stream-json.','\x20—\x20','Work\x20on\x20it\x20with:\x20','Already\x20accepted','\x20\x20\x20\x20','workerId','\x0aStopping…\x20(Ctrl+C\x20again\x20to\x20force\x20exit)\x0a','model_version','--session','\x22.\x0a','Numbers,\x20separated\x20by\x20commas\x20(Enter\x20to\x20skip):\x20','First\x20login\x20requires\x20--env\x20or\x20--url.\x20Usage:\x20','There\x20is\x20no\x20terminal\x20input\x20to\x20answer\x20from.','userId','logout','\x20(current)','Token:\x20\x20\x20\x20\x20\x20\x20\x20expired\x20','commandFlags','\x20(stdin\x20was\x20empty)','Created\x20delegation\x20',',\x20or\x20holds\x20no\x20message\x20','toolName','pause','--map-name','\x20transcribe\x20FILE|-\x20\x20\x20\x20\x20\x20\x20Speech-to-text:\x20print\x20the\x20text\x20of\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20audio\x20in\x20FILE,\x20or\x20on\x20stdin\x20with\x20-.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20mp3,\x20mp4,\x20mpeg,\x20mpga,\x20m4a,\x20wav\x20or\x20webm,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20up\x20to\x2014\x20MB.\x20Exits\x202\x20when\x20the\x20audio\x20is\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20refused\x20locally,\x201\x20when\x20the\x20backend\x20rejects\x20it\x0a','Bearer\x20','subcommand','the\x20request','transcribe\x20needs\x20audio:\x20','\x20sessions\x20show|delete\x20ID\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20one\x20session\x27s\x20title\x20and\x20owner,\x20or\x20delete\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20it\x20with\x20its\x20messages\x20and\x20sub-agents\x20(no\x20prompt)\x0a\x20\x20','assignedUser','23127QTNTPg','Your\x20answer,\x20as\x20text\x20(the\x20CLI\x20attaches\x20no\x20files;\x20Enter\x20to\x20skip):\x20','cancel','monthly_spend_usd','opt-in','6LiLFTA','Title\x20\x20\x20\x20\x20\x20\x20\x20\x20','parentSessionId','auth.json','\x20check\x20[--env\x20NAME]\x20[--headless]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Verify\x20auth,\x20backend\x20readiness,\x20backend\x20and\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20interop\x20without\x20sending\x20a\x20prompt;\x20exits\x201\x20when\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20any\x20check\x20fails\x0a\x20\x20','total_sessions','content','from\x20','maps\x20','refused','erase','\x20\x20\x20\x20BYO\x20warning:\x20','\x20tenant\x20[NAME]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20the\x20organization\x27s\x20tenants,\x20or\x20switch\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20saved\x20login\x20to\x20NAME\x20(no\x20browser)\x0a\x20\x20','trim','No\x20usage\x20in\x20the\x20last\x20','No\x20CLI\x20login\x20found.\x20Note:\x20the\x20CLI\x20is\x20currently\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20','about','write','--input-format\x20stream-json\x20needs\x20--output-format\x20stream-json:\x20the\x20steering\x20messages\x20are\x20answered\x20on\x20stdout.','return','join','stream-json','add','\x20(confidence\x20','--to,\x20--summary\x20and\x20--session\x20apply\x20to\x20`','--skip-env-check','stringify','\x20must\x20be\x20a\x20JSON\x20object.','\x20--model\x20<id>\x20\x22<prompt>\x22\x0a','a\x20session\x20id','models_breakdown','split','an\x20input\x20line\x20has\x20type\x20','/exit','\x20\x20(input\x20#','resolve','bundledSkillsPath','delegations\x20dismiss\x20<delegation-id>','isTTY','--interop','transcribe:\x20cannot\x20read\x20','verdict','48DpQiyz','abort','\x20sessions`\x20only.','--tenant\x20requires\x20a\x20tenant\x20name.','No\x20answers\x20awaiting\x20acceptance.\x0a','--days\x20applies\x20to\x20`','\x20logout\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Remove\x20the\x20saved\x20CLI\x20login\x0a\x20\x20','complete\x20needs\x20--json-schema\x20<file>:\x20','--to\x20and\x20--summary\x20apply\x20to\x20`','UIPATH_BASE_URL\x20is\x20unusable.\x20','isFinite','all','\x20token\x20units','tokenExpiresAt','Session:\x20','daily_usage','max','error','\x20is\x20required.\x0a','locked','total_completion_tokens','--to','race','attachments','close','destroy','No\x20one\x20matches\x20\x22','now','sourceUserEmail','findLast','Tenant\x20not\x20switched:\x20could\x20not\x20write\x20','addEventListener','unknown','\x20sessions\x20','buckets','--replay-user-messages','UiPath\x20Cloud','shift','2408080EDMYQF','--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`','catch','Number','keys','rmSync','from','label','valueFlags','lastType','toString','):\x0a\x0a','includes','SIGINT','\x20login\x20--env\x20<env>`\x20for\x20a\x20CLI\x20login\x20of\x20your\x20own.','--env\x20localhost\x20has\x20no\x20OAuth\x20flow;\x20pick\x20alpha,\x20staging,\x20or\x20production.','cartographer-cli','finish','alpha','Your\x20answer\x20(Enter\x20to\x20skip):\x20','isSafeInteger','delegations\x20show\x20<delegation-id|delegate://delegation/…>','share','Something\x20else','\x20\x20-h,\x20--help\x20\x20\x20\x20\x20\x20\x20\x20Show\x20this\x20help\x0a\x20\x20-v,\x20--version\x20\x20\x20\x20\x20Print\x20the\x20installed\x20CLI\x20version\x0a\x0aConversation:\x20Enter\x20sends\x20a\x20message;\x20/exit\x20or\x20EOF\x20exits;\x20Ctrl+C\x20stops\x20and\x20exits.\x0a\x20\x20Ctrl+C\x20during\x20a\x20turn\x20cancels\x20it\x20on\x20the\x20backend\x20too;\x20a\x20second\x20Ctrl+C\x20force-exits.\x0a\x20\x20An\x20optional\x20initial\x20prompt\x20is\x20followed\x20by\x20more\x20input.\x20The\x20session\x20ID\x20is\x20printed\x0a\x20\x20to\x20stderr;\x20resume\x20later\x20with\x20--session\x20ID.\x20Redirected\x20input\x20is\x20one\x20prompt.\x0aAuth:\x20prompts\x20auto-retry\x20on\x20401\x20by\x20opening\x20the\x20browser\x20to\x20re-login\x20(TTY\x20only),\x0a\x20\x20preserving\x20the\x20active\x20session.','\x20|\x20','padStart','--verbose','stdout','\x20sessions\x20cancel`\x20only.','rejection','\x20sessions\x20--page\x20','\x20is\x20not\x20valid\x20JSON\x20(','--page','\x20to\x20',',\x20got\x20','high','help','\x20must\x20be\x20a\x20whole\x20number\x20','byoWarning','a\x20format\x20(','noComputerUse','done','preloadSkills','probability\x20','total_prompt_tokens','Session\x20\x20\x20\x20\x20\x20\x20','models','stop','--project','oneTurn','expiresAt','model','delegateTo','\x20delegations\x20pending\x20SESSION\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Answers\x20to\x20delegations\x20from\x20SESSION\x20that\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20await\x20acceptance\x20(poll\x20this)\x0a\x20\x20','detail','\x20login\x20[--env\x20NAME\x20|\x20--url\x20BASE]\x20[--tenant\x20NAME]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20OAuth\x20browser\x20login\x20→\x20~/.aria/sdk-auth.json.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--env\x20or\x20--url\x20required\x20on\x20FIRST\x20login;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20afterwards\x20defaults\x20to\x20the\x20saved\x20login\x27s\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20deployment.\x20--tenant\x20picks\x20a\x20tenant\x20by\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20name;\x20without\x20it\x20a\x20re-login\x20keeps\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20saved\x20tenant\x0a\x20\x20','localhost','tenant','--preload-skill','isArray','complete','index','No\x20delegations.\x0a','Auth\x20comes\x20from\x20AUTH_TOKEN/TENANT_ID/ORG_ID\x20—\x20set\x20TENANT_ID\x20and\x20TENANT_SLUG\x20to\x20change\x20the\x20tenant.','days','delegations\x20pending\x20<session-id>','1072130qeDYhE','headless','noSecurity','text','--task-automation\x20needs\x20computer\x20use:\x20the\x20task\x20log\x20is\x20written\x20by\x20the\x20UI-automation\x20tools.\x20','description','a\x20deployment\x20URL,\x20e.g.\x20https://automationsuite.contoso.com','waitForIdle','.\x0a\x20\x20Pair\x20it\x20with\x20--project/--working-dir\x20for\x20where\x20the\x20files\x20live;\x20extra\x0a\x20\x20--preload-skill\x20flags\x20add\x20skills,\x20and\x20one\x20already\x20preloaded\x20is\x20not\x20preloaded\x0a\x20\x20twice.\x20--headless\x20still\x20turns\x20interop\x20off;\x20another\x20--vertical\x20ID\x20is\x20refused.','\x20[flags]\x20-\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Read\x20one\x20prompt\x20from\x20stdin\x20through\x20EOF,\x20then\x20exit\x0a\x20\x20','--quiet','\x20days.\x0a','\x20sessions\x20[list]\x20[--page\x20N]\x20[--limit\x20N]\x20[--include-subagents]','staging',']\x20(Enter\x20for\x20','rerank','readLine','usage','\x0aUse\x20with:\x20','\x20runs\x20without\x20computer\x20use.','\x20maps\x20share`\x20only.','.\x20Share:\x20','results','prompt_tokens','package.json','stack','step','exitCode','a\x20file://\x20URL\x20or\x20an\x20absolute\x20path','login','exports','\x20\x22<answer>\x22\x0a','\x20--cleanup\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Stop\x20running\x20interop\x0a\x0aFlags:\x0a\x20\x20-p,\x20--print\x20\x20\x20\x20\x20\x20\x20Run\x20one\x20turn\x20and\x20exit,\x20including\x20any\x20tool\x20execution.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Automatic\x20when\x20stdin\x20or\x20stdout\x20is\x20not\x20a\x20terminal,\x20or\x20with\x20-\x0a\x20\x20--env\x20NAME\x20\x20\x20\x20\x20\x20\x20\x20alpha\x20|\x20staging\x20|\x20production\x20|\x20localhost\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Composes\x20backend\x20URL\x20from\x20saved\x20auth\x20(org/tenant\x20slugs).\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Omitted\x20→\x20the\x20deployment\x20you\x20logged\x20into\x20(','\x20requires\x20','auth','\x20\x20--remote\x20URL|PATH\x20(maps\x20share)\x20The\x20bare\x20git\x20repository\x20to\x20share\x20to:\x20a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20file://\x20URL\x20or\x20an\x20absolute\x20path,\x20on\x20this\x20computer\x20or\x20a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20shared\x20drive.\x20Create\x20it\x20first\x20(git\x20init\x20--bare)\x0a\x20\x20--map-name\x20NAME\x20\x20\x20(maps\x20share)\x20The\x20Map\x27s\x20name\x20in\x20that\x20repository,\x20beside\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20other\x20projects\x27\x20Maps:\x20up\x20to\x2064\x20letters,\x20digits,\x20\x22.\x22,\x20\x22_\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20or\x20\x22-\x22,\x20starting\x20with\x20a\x20letter\x20or\x20digit','widget','score','\x20-\x20','Invalid\x20--input-format:\x20','a\x20skill\x20name','origin','operands','length','removeEventListener','--output-format','spawn','whoami','\x20delegations\x20complete\x20ID\x20\x22<answer>\x22|-\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Send\x20the\x20answer\x20to\x20a\x20delegation\x20you\x20claimed\x0a\x20\x20','\x20\x20(sub-agent\x20of\x20','object','fields','\x20delegation\x20','--task-automation\x20applies\x20to\x20prompts\x20only.','page',').\x0a','name','off','baseUrl','Cancel\x20requested\x20for\x20turn\x20','--json-schema','rename','\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22,\x20or\x20-\x20to\x20read\x20stdin.','cwd','steer','--no-computer-use','dismissed','--headless','vertical','forEach','monthly_limit_usd','Usage:\x20','floor','once','choice','Unknown\x20usage\x20view:\x20','--cleanup','--summary','\x20delegations\x20create\x20--session\x20ID\x20[--to\x20WHO]\x20[--summary\x20TEXT]\x20\x22<task>\x22|-\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Hand\x20a\x20task\x20from\x20session\x20ID\x20to\x20a\x20colleague\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(WHO:\x20an\x20email,\x20or\x20a\x20name\x20matching\x20one\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20person);\x20without\x20--to,\x20print\x20a\x20link\x20anyone\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20in\x20the\x20organization\x20can\x20claim\x0a\x20\x20','\x20tenant\x20<name>\x0a\x20\x20--model\x20NAME\x20\x20\x20\x20\x20\x20LLM\x20model\x20id\x20(e.g.\x20claude_sonnet_5_5,\x20kimi_k3).\x20Checked\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20against\x20the\x20tenant\x27s\x20catalog\x20(','tool_call','find','Interop\x20stopped\x20(if\x20it\x20was\x20running).','AUTH_TOKEN_FILE\x20\x27','accept','--version','hasOwn','setPrompt','skipEnvCheck','existsSync','push','bin','stdin','Unknown\x20delegations\x20action:\x20','Deployment:\x20\x20\x20','version','\x20transcribe\x20<file>,\x20or\x20-\x20to\x20read\x20stdin.','getTurnUsageHistory','noMemory','\x20--help`.','--include-subagents',',\x20whose\x20tenant\x20is\x20chosen\x20in\x20the\x20app.\x20Run\x20`','\x20sessions\x20on\x20','create','toISOString','limit','delete','--json-schema\x20applies\x20to\x20prompts\x20and\x20to\x20`',':\x20ignored\x0a','\x20of\x20a\x20$','Tenant:\x20\x20\x20\x20\x20\x20\x20','entries','alreadyCompleted','--no-memory','data','Answered','\x20\x20TITLE\x0a','Rubric\x20','deepLink','header','8805310XmjTHT','delegations\x20delete\x20<delegation-id>','\x20(optional)','getSessionId','estimated_cost_usd','tenantName','Invalid\x20--env:\x20','--vertical','Enter\x20sends\x20a\x20message.\x20/exit\x20or\x20EOF\x20exits;\x20Ctrl+C\x20stops\x20and\x20exits.\x0a','--effort','projectId','\x20into\x20','cartographer','question','\x20of\x20the\x20Map\x20of\x20Work\x20of\x20','backendUrl','549113eYZDHy','Shared\x20the\x20Map\x20of\x20Work\x20of\x20','concat','turnId','delegationId','low','isError','restore','confidence','Session\x20','Missing\x20prompt.\x20Pass\x20it\x20as\x20an\x20argument,\x20pipe\x20it\x20via\x20stdin,\x20or\x20run\x20`','a\x20colleague','agentName','daily','string','pending','\x20--print\x20\x22<prompt>\x22\x20\x20\x20\x20\x20\x20Send\x20one\x20prompt,\x20print\x20the\x20response,\x20and\x20exit\x0a\x20\x20','More:\x20','\x20in\x20progress\x20on\x20session\x20','🔧\x20','from\x201\x20to\x20','exit','--output-format\x20','--print','findIndex','\x20(in\x20','a\x20number','.\x20Use\x20`','value','verify','organizationId','url','Structured\x20output\x20failed:\x20','status','\x20this\x20month','STATUS','print','initialize','\x20host\x20[flags]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Run\x20this\x20PC\x20as\x20a\x20remote\x20worker\x20until\x20Ctrl+C\x0a\x20\x20','--input-format','commands','never','maps','delegations','turn_start','\x20sessions\x20rename\x20ID\x20TITLE\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Rename\x20a\x20session\x20(1-500\x20characters)\x0a\x20\x20','✓\x20Done\x0a','\x20login).\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20localhost\x20→\x20http://localhost:5002.\x20No\x20saved\x20login\x20and\x20no\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--env/--backend/BACKEND_URL\x20is\x20an\x20error\x20—\x20never\x20a\x20guess.\x0a\x20\x20--url\x20BASE\x20\x20\x20\x20\x20\x20\x20\x20(login)\x20Base\x20URL\x20of\x20a\x20deployment\x20that\x20is\x20not\x20a\x20named\x20cloud\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20—\x20Automation\x20Suite,\x20Dedicated,\x20Public\x20Sector.\x20Accepts\x20a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20tenant\x20path\x20or\x20a\x20trailing\x20/identity_\x20and\x20reduces\x20it\x20to\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20origin.\x20Mutually\x20exclusive\x20with\x20--env;\x20also\x20settable\x20via\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20UIPATH_BASE_URL.\x20Alias:\x20--authority.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Automation\x20Suite\x20needs\x2026.10+\x20with\x20the\x20Delegate\x20service;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20the\x20deployment\x20rejects\x20the\x20built-in\x20client,\x20register\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20your\x20own\x20—\x20see\x20UIPATH_CLIENT_ID\x20in\x20the\x20README\x0a\x20\x20--skip-env-check\x20\x20(login)\x20Do\x20not\x20check\x20the\x20deployment\x20before\x20signing\x20in.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Escape\x20hatch\x20for\x20a\x20deployment\x20that\x20hides\x20its\x20OIDC\x20discovery\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20document\x20or\x20serves\x20Identity\x20from\x20another\x20origin;\x20it\x20also\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20gives\x20up\x20the\x20diagnosis\x20when\x20something\x20is\x20really\x20wrong\x0a\x20\x20--backend\x20URL\x20\x20\x20\x20\x20Full\x20backend\x20URL\x20—\x20escape\x20hatch\x20overrides\x20--env\x0a\x20\x20--tenant\x20NAME\x20\x20\x20\x20\x20(login)\x20Tenant\x20to\x20sign\x20into,\x20by\x20name\x20(case-insensitive).\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default:\x20the\x20saved\x20login\x27s\x20tenant\x20on\x20that\x20cloud,\x20else\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20org\x27s\x20first\x20tenant.\x20Later:\x20','2356781JIfqiN','total_quota_pu','Enter\x20numbers\x20from\x201\x20to\x20','\x20(cancel\x20with:\x20','utf-8','\x20\x20cartographer-cli\x20export\x20TYPE\x20[DOCUMENT_ID]\x20--project\x20ID\x20[--working-dir\x20PATH]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Export\x20a\x20project\x27s\x20living\x20document\x20(TYPE:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20pdd,\x20sdd,\x20...)\x20to\x20.docx,\x20as\x20an\x20agent\x27s\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20/livingdoc/export\x20does,\x20from\x20the\x20local\x20disk:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20no\x20login\x20or\x20interop.\x20--project\x20and\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--working-dir\x20name\x20the\x20project\x20as\x20the\x20run\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20that\x20wrote\x20it\x20did.\x20DOCUMENT_ID\x20(the\x20draft\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20path)\x20picks\x20one\x20of\x20several\x20documents\x20of\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20TYPE.\x20Prints\x20the\x20.docx\x20path;\x20exits\x201\x20when\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20there\x20is\x20no\x20such\x20document\x20or\x20export\x20fails\x0a\x20\x20cartographer-cli\x20maps\x20share\x20--project\x20ID\x20--remote\x20URL|PATH\x20--map-name\x20NAME\x20[--working-dir\x20PATH]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Share\x20a\x20project\x27s\x20Map\x20of\x20Work,\x20as\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20desktop\x20app\x27s\x20Share\x20does\x20with\x20New\x20map\x20of\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20work:\x20its\x20history,\x20change\x20requests\x20and\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20versions\x20go\x20to\x20a\x20bare\x20git\x20repository\x20on\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this\x20computer\x20or\x20a\x20shared\x20drive\x20(a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20file://\x20URL\x20or\x20an\x20absolute\x20path),\x20under\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20NAME,\x20and\x20publish\x20there\x20from\x20then\x20on.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Join\x20it\x20in\x20the\x20app\x20with\x20Existing\x20map\x20of\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20work.\x20GitHub\x20is\x20not\x20available\x20here\x20yet.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20No\x20login\x20or\x20interop;\x20exits\x201\x20when\x20refused\x0a\x20\x20cartographer-cli\x20maps\x20save-version\x20MESSAGE\x20--project\x20ID\x20[--working-dir\x20PATH]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Save\x20version,\x20as\x20in\x20the\x20desktop\x20app:\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20map\x27s\x20next\x200.x\x20version\x20(0.1.0\x20first),\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20named\x20MESSAGE.\x20Exits\x201\x20when\x20refused,\x20as\x20on\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20a\x20settled\x20map,\x20which\x20gets\x20versions\x20from\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20applied\x20change\x20requests\x20only','--turn\x20applies\x20to\x20`','--input-format\x20stream-json\x20reads\x20the\x20prompt\x20from\x20stdin:\x20pass\x20no\x20prompt\x20argument.','org-users','sessionId','taskAutomation','--model','.\x20Use\x20','deployment','unknown\x20slug','sourceTitle','\x20(no\x20cap\x20enforced)','Pass\x20either\x20--env\x20(a\x20named\x20cloud)\x20or\x20--url\x20(any\x20other\x20deployment),\x20not\x20both.','session_start','--attach','Invalid\x20--project:\x20\x22','title','\x20tokens\x0a','\x20usage\x20activity|daily\x20[--days\x20N]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Activity\x20totals,\x20or\x20per-day\x20usage,\x20over\x20the\x20last\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20N\x20days\x20(1-365,\x20default\x2030)\x0a\x20\x20','\x20login\x20--env\x20<alpha|staging|production>`\x20first.','file','then','noConnections','endQuestions','tenantId','[saved\x20login]\x20Backend\x20URL:\x20','structuredError','prompt','--skills-path','onEvent','\x20or\x20your\x20own\x20answer','message','Delegated\x20'];_0x4dc0=function(){return _0x4ed131;};return _0x4dc0();}import{DelegateAgent as _0x1d4ec2,cancelTurn as _0x36c894,InteropProcess as _0x2cb708,complete as _0x24b7b8,DEFAULT_MODEL as _0x4bac45,createBackendClient as _0x3ba3b1,evaluate as _0x24ddcf,isCompletionRequestError as _0x540c2d,isEvaluationRequestError as _0x1ca38d,isTranscriptionError as _0x163e5f,rerank as _0x23cc7e,transcribe as _0x330d5a,verify as _0x52cdb0,acceptDelegation as _0x169c7d,cancelDelegation as _0x4fdb47,claimDelegation as _0x5d03d7,completeDelegation as _0x2e22d6,createDelegation as _0x2f2ff2,deleteDelegation as _0x45665d,dismissDelegation as _0x17c6d3,getSessionDelegations as _0x592d8d,isDelegationError as _0x421ea2,listDelegations as _0x349ef2,listOrgUsers as _0x2d92f0,previewDelegation as _0x1dc406,TurnResultCollector as _0x3afe9c,agentEventToJsonLine as _0x29f9bd,describeBaseUrlRejection as _0x24c4f8,getActivitySummary as _0x415f7a,getAuthFilePath as _0x452605,getByoWarnings as _0x4c71c2,getDailyBreakdown as _0x2c0108,getLicensingSummary as _0x46509c,getMonthlySpending as _0x392962,isOutputFormat as _0x128bb2,isCloudBaseUrl as _0x3dd912,isSafeProjectFolderSegment as _0x1a688d,listModels as _0x1e1551,listSessions as _0x240b47,getSession as _0x16e62a,renameSession as _0x3b9e1a,deleteSession as _0x4d5861,deleteSessionTaskLog as _0x2cf531,forkSession as _0x2f001b,isBackendRequestError as _0x564fb7,MAX_SESSION_PAGE_SIZE as _0x369aa5,listTenants as _0x5b19c6,loadAndRefreshAuth as _0x34fd91,loadAndRefreshSdkLogin as _0x322d09,parsePlatformBaseUrl as _0x480d83,resolveBackendUrl as _0x1422b5,runHealthCheck as _0x3d36e8,runHostCommand as _0xcc764d,runLoginFlow as _0x74c8c9,runTurnForResult as _0xb74849,saveAuthData as _0x3a372f,switchTenant as _0x209b9d,toJsonLine as _0xed8b3,ENV_TO_CLOUD as _0x473ce1,OUTPUT_FORMATS as _0x5463dd,isRunStopNotice as _0x18503d,extractActionableErrorText as _0x17d8e9}from'@uipath/delegate-sdk';function k(_0x2de155,_0x4ce679,_0x4354f1,_0x3fce9b){const _0xb3c8ba=_0x4c3e6e;let _0x5af32e=_0x2de155[_0x4ce679];return(!_0x5af32e||_0x5af32e[_0xb3c8ba(0x162)]>0x1&&_0x5af32e[_0xb3c8ba(0x243)]('-'))&&(console['error'](_0x4354f1+_0xb3c8ba(0x158)+_0x3fce9b+'.'),process[_0xb3c8ba(0x1d4)](0x2)),_0x5af32e;}function Q(_0x5df3a3,_0x409553,_0x58c349,_0x19fa67){const _0x2215eb=_0x4c3e6e;let _0x3378f7=k(_0x5df3a3,_0x409553,_0x58c349,_0x2215eb(0x1d9)),_0x5cd118=Number(_0x3378f7);return(!/^\d+$/[_0x2215eb(0x2ae)](_0x3378f7)||_0x5cd118<0x1||!Number[_0x2215eb(0x108)](_0x5cd118)||_0x19fa67!==void 0x0&&_0x5cd118>_0x19fa67)&&(console[_0x2215eb(0x344)](_0x58c349+_0x2215eb(0x11a)+(_0x19fa67===void 0x0?'1\x20or\x20more':_0x2215eb(0x1d3)+_0x19fa67)+_0x2215eb(0x117)+_0x3378f7+'.'),process[_0x2215eb(0x1d4)](0x2)),_0x5cd118;}function an(_0x326fca,_0x44eb03){const _0x2ffc17=_0x4c3e6e;let _0x11cc0a={'product':_0x44eb03,'subcommand':'','prompt':'','print':!0x1,'keepAlive':!0x1,'cleanup':!0x1,'headless':!0x1,'commandFlags':{},'noComputerUse':_0x44eb03[_0x2ffc17(0x2af)]===_0x2ffc17(0x1e8),'computerUse':!0x1,'noConnections':!0x1,'noSecurity':!0x1,'noMemory':!0x1,'taskAutomation':!0x1,'quiet':!0x1,'verbose':!0x1,'outputFormat':'text','inputFormat':_0x2ffc17(0x13a),'replayUserMessages':!0x1,'preloadSkills':[..._0x44eb03[_0x2ffc17(0x11f)]??[]],'attachments':[],'skipEnvCheck':!0x1,'includeSubAgents':!0x1,'operands':[],'help':!0x1,'version':!0x1},_0x604ff0=_0x44eb03[_0x2ffc17(0x1e7)]?.[_0x2ffc17(0x188)](_0x29a9a7=>_0x29a9a7[_0x2ffc17(0x16f)]===_0x326fca[0x0]);_0x604ff0?(_0x11cc0a[_0x2ffc17(0x25c)]=_0x604ff0,_0x11cc0a[_0x2ffc17(0x2ff)]=_0x604ff0[_0x2ffc17(0x16f)],_0x326fca=_0x326fca[_0x2ffc17(0x281)](0x1)):sn['includes'](_0x326fca[0x0])&&(_0x11cc0a['subcommand']=_0x326fca[0x0],_0x326fca=_0x326fca[_0x2ffc17(0x281)](0x1));let _0x59dd1c=[];for(let _0x2c8224=0x0;_0x2c8224<_0x326fca['length'];_0x2c8224++){let _0x1c1478=_0x326fca[_0x2c8224];switch(_0x1c1478){case _0x2ffc17(0x1d6):case'-p':_0x11cc0a[_0x2ffc17(0x1e3)]=!0x0;break;case'--keep-alive':_0x11cc0a['keepAlive']=!0x0;break;case _0x2ffc17(0x183):_0x11cc0a['cleanup']=!0x0;break;case _0x2ffc17(0x17a):_0x11cc0a['headless']=!0x0;break;case _0x2ffc17(0x178):_0x11cc0a['noComputerUse']=!0x0;break;case'--no-connections':_0x11cc0a[_0x2ffc17(0x20a)]=!0x0;break;case'--no-security':_0x11cc0a[_0x2ffc17(0x139)]=!0x0;break;case _0x2ffc17(0x1a8):_0x11cc0a['noMemory']=!0x0;break;case _0x2ffc17(0x2e3):_0x11cc0a[_0x2ffc17(0x1f9)]=!0x0;break;case _0x2ffc17(0x141):case'-q':_0x11cc0a[_0x2ffc17(0x2be)]=!0x0;break;case _0x2ffc17(0x10f):_0x11cc0a[_0x2ffc17(0x297)]=!0x0;break;case'--backend':_0x11cc0a[_0x2ffc17(0x1be)]=_0x326fca[++_0x2c8224];break;case _0x2ffc17(0x1fa):_0x11cc0a['model']=_0x326fca[++_0x2c8224];break;case'--runner-url':_0x11cc0a['runnerUrl']=_0x326fca[++_0x2c8224];break;case _0x2ffc17(0x330):_0x11cc0a[_0x2ffc17(0x2c8)]=_0x326fca[++_0x2c8224];break;case _0x2ffc17(0x244):_0x11cc0a['workerId']=_0x326fca[++_0x2c8224];break;case _0x2ffc17(0x12f):_0x11cc0a['preloadSkills'][_0x2ffc17(0x191)](k(_0x326fca,++_0x2c8224,_0x1c1478,_0x2ffc17(0x15f)));break;case _0x2ffc17(0x125):{let _0x5ceb97=k(_0x326fca,++_0x2c8224,_0x1c1478,'a\x20project\x20id');_0x1a688d(_0x5ceb97)||(console['error'](_0x2ffc17(0x203)+_0x5ceb97+'\x22.\x20Use\x20a\x20single\x20folder-safe\x20segment\x20such\x20as\x20invoice-approval\x20(letters,\x20digits,\x20spaces,\x20\x22_\x22,\x20\x22-\x22,\x20\x22.\x22,\x20parentheses;\x20at\x20most\x2064\x20characters;\x20not\x20starting\x20with\x20\x22.\x22\x20or\x20ending\x20with\x20\x22.\x22\x20or\x20a\x20space).'),process[_0x2ffc17(0x1d4)](0x2)),_0x11cc0a[_0x2ffc17(0x1b9)]=_0x5ceb97;break;}case _0x2ffc17(0x1b6):_0x11cc0a[_0x2ffc17(0x17b)]=k(_0x326fca,++_0x2c8224,_0x1c1478,_0x2ffc17(0x28d));break;case _0x2ffc17(0x164):{let _0x4073f2=k(_0x326fca,++_0x2c8224,_0x1c1478,_0x2ffc17(0x11c)+_0x5463dd['join']('\x20|\x20')+')');_0x128bb2(_0x4073f2)||(console[_0x2ffc17(0x344)](_0x2ffc17(0x21b)+_0x4073f2+_0x2ffc17(0x1fb)+_0x5463dd[_0x2ffc17(0x31d)](_0x2ffc17(0x10d))+'.'),process[_0x2ffc17(0x1d4)](0x2)),_0x11cc0a[_0x2ffc17(0x254)]=_0x4073f2;break;}case _0x2ffc17(0x1e6):{let _0x1aedf0=k(_0x326fca,++_0x2c8224,_0x1c1478,_0x2ffc17(0x11c)+B[_0x2ffc17(0x31d)](_0x2ffc17(0x10d))+')');ie(_0x1aedf0)||(console[_0x2ffc17(0x344)](_0x2ffc17(0x15e)+_0x1aedf0+_0x2ffc17(0x1fb)+B[_0x2ffc17(0x31d)](_0x2ffc17(0x10d))+'.'),process[_0x2ffc17(0x1d4)](0x2)),_0x11cc0a[_0x2ffc17(0x285)]=_0x1aedf0;break;}case _0x2ffc17(0xf1):_0x11cc0a[_0x2ffc17(0x2ac)]=!0x0;break;case _0x2ffc17(0x2ed):_0x11cc0a[_0x2ffc17(0x1f8)]=k(_0x326fca,++_0x2c8224,_0x1c1478,_0x2ffc17(0x326));break;case _0x2ffc17(0x115):_0x11cc0a[_0x2ffc17(0x16d)]=Q(_0x326fca,++_0x2c8224,_0x1c1478);break;case _0x2ffc17(0x280):_0x11cc0a[_0x2ffc17(0x1a0)]=Q(_0x326fca,++_0x2c8224,_0x1c1478,_0x369aa5);break;case _0x2ffc17(0x19b):_0x11cc0a[_0x2ffc17(0x23d)]=!0x0;break;case _0x2ffc17(0x173):_0x11cc0a['jsonSchemaPath']=k(_0x326fca,++_0x2c8224,_0x1c1478,_0x2ffc17(0x26c));break;case _0x2ffc17(0x202):{let _0x4ffb8b=_0x46415a['resolve'](process['cwd'](),k(_0x326fca,++_0x2c8224,_0x1c1478,'a\x20file\x20path'));_0x1c5473[_0x2ffc17(0x190)](_0x4ffb8b)||(console['error'](_0x2ffc17(0x23e)+_0x4ffb8b),process['exit'](0x2)),_0x11cc0a[_0x2ffc17(0x34a)][_0x2ffc17(0x191)](_0x4ffb8b);break;}case _0x2ffc17(0x2a0):_0x11cc0a[_0x2ffc17(0x1c2)]=k(_0x326fca,++_0x2c8224,_0x1c1478,'a\x20turn\x20id');break;case _0x2ffc17(0x348):_0x11cc0a[_0x2ffc17(0x129)]=k(_0x326fca,++_0x2c8224,_0x1c1478,_0x2ffc17(0x235));break;case _0x2ffc17(0x184):_0x11cc0a['contextSummary']=k(_0x326fca,++_0x2c8224,_0x1c1478,_0x2ffc17(0x260));break;case _0x2ffc17(0x257):_0x11cc0a[_0x2ffc17(0x135)]=Q(_0x326fca,++_0x2c8224,_0x1c1478,0x16d);break;case _0x2ffc17(0x2c7):_0x11cc0a[_0x2ffc17(0x233)]=_0x46415a[_0x2ffc17(0x32c)](process[_0x2ffc17(0x176)](),k(_0x326fca,++_0x2c8224,_0x1c1478,_0x2ffc17(0x22c)));break;case _0x2ffc17(0x210):_0x11cc0a['bundledSkillsPath']=_0x46415a[_0x2ffc17(0x32c)](process[_0x2ffc17(0x176)](),k(_0x326fca,++_0x2c8224,_0x1c1478,_0x2ffc17(0x22c)));break;case _0x2ffc17(0x1b8):{let _0xe21d89=k(_0x326fca,++_0x2c8224,_0x1c1478,'an\x20effort\x20tier');ge[_0x2ffc17(0x100)](_0xe21d89)||(console[_0x2ffc17(0x344)](_0x2ffc17(0x239)+_0xe21d89+_0x2ffc17(0x1fb)+ge['join'](_0x2ffc17(0x10d))+'.'),process[_0x2ffc17(0x1d4)](0x2)),_0x11cc0a['effort']=_0xe21d89;break;}case _0x2ffc17(0x21d):{let _0x2a7021=_0x326fca[++_0x2c8224];(!_0x2a7021||_0x2a7021['startsWith']('--'))&&(console[_0x2ffc17(0x344)](_0x2ffc17(0x336)),process[_0x2ffc17(0x1d4)](0x2)),_0x11cc0a[_0x2ffc17(0x12e)]=_0x2a7021;break;}case'--env':{let _0x466beb=_0x326fca[++_0x2c8224];[_0x2ffc17(0x106),_0x2ffc17(0x144),'production','localhost'][_0x2ffc17(0x100)](_0x466beb)||(console['error'](_0x2ffc17(0x1b5)+_0x466beb+'.\x20Use\x20alpha\x20|\x20staging\x20|\x20production\x20|\x20localhost.'),process[_0x2ffc17(0x1d4)](0x2)),_0x11cc0a['env']=_0x466beb;break;}case'--url':case'--authority':{let _0x3de1fc=k(_0x326fca,++_0x2c8224,_0x1c1478,_0x2ffc17(0x13d)),_0x470a70=_0x480d83(_0x3de1fc);if(_0x470a70['ok']===!0x1){console[_0x2ffc17(0x344)](_0x24c4f8(_0x3de1fc,_0x470a70[_0x2ffc17(0x112)])),process[_0x2ffc17(0x1d4)](0x2);break;}_0x11cc0a[_0x2ffc17(0x1de)]=_0x470a70[_0x2ffc17(0x171)];break;}case _0x2ffc17(0x322):_0x11cc0a[_0x2ffc17(0x18f)]=!0x0;break;case'-h':case'--help':_0x11cc0a['help']=!0x0;break;case'-v':case _0x2ffc17(0x18c):_0x11cc0a[_0x2ffc17(0x196)]=!0x0;break;default:if(_0x604ff0&&Object[_0x2ffc17(0x18d)](_0x604ff0[_0x2ffc17(0xfc)],_0x1c1478)){_0x11cc0a[_0x2ffc17(0x2f6)][_0x1c1478]=k(_0x326fca,++_0x2c8224,_0x1c1478,_0x604ff0[_0x2ffc17(0xfc)][_0x1c1478]);break;}if(_0x1c1478==='--computer-use'&&_0x44eb03[_0x2ffc17(0x2af)]===_0x2ffc17(0x308)){_0x11cc0a[_0x2ffc17(0x2af)]=!0x0;break;}_0x1c1478[_0x2ffc17(0x243)]('--')&&(console[_0x2ffc17(0x344)](_0x2ffc17(0x22f)+_0x1c1478),process['exit'](0x2)),_0x59dd1c[_0x2ffc17(0x191)](_0x1c1478);}}_0x11cc0a['tenant']!==void 0x0&&_0x11cc0a[_0x2ffc17(0x2ff)]!==_0x2ffc17(0x154)&&(console[_0x2ffc17(0x344)]('--tenant\x20applies\x20to\x20`'+_0x11cc0a[_0x2ffc17(0x259)][_0x2ffc17(0x192)]+'\x20login`\x20only.\x20Switch\x20tenants\x20with:\x20'+_0x11cc0a[_0x2ffc17(0x259)]['bin']+'\x20tenant\x20<name>'),process['exit'](0x2)),_0x11cc0a[_0x2ffc17(0x1de)]!==void 0x0&&_0x11cc0a['env']!==void 0x0&&(console[_0x2ffc17(0x344)](_0x2ffc17(0x200)),process['exit'](0x2)),_0x11cc0a[_0x2ffc17(0x1de)]!==void 0x0&&_0x11cc0a[_0x2ffc17(0x2ff)]!==_0x2ffc17(0x154)&&(console[_0x2ffc17(0x344)](_0x2ffc17(0x24c)+_0x11cc0a[_0x2ffc17(0x259)][_0x2ffc17(0x192)]+_0x2ffc17(0x292)),process['exit'](0x2)),_0x11cc0a[_0x2ffc17(0x135)]!==void 0x0&&_0x11cc0a[_0x2ffc17(0x2ff)]!==_0x2ffc17(0x148)&&(console[_0x2ffc17(0x344)](_0x2ffc17(0x338)+_0x11cc0a[_0x2ffc17(0x259)][_0x2ffc17(0x192)]+_0x2ffc17(0x252)),process[_0x2ffc17(0x1d4)](0x2)),_0x11cc0a[_0x2ffc17(0x247)]!==void 0x0&&(_0x11cc0a[_0x2ffc17(0x2ff)]!==_0x2ffc17(0x131)&&_0x11cc0a[_0x2ffc17(0x2ff)]!==''||_0x11cc0a[_0x2ffc17(0x29a)])&&(console[_0x2ffc17(0x344)](_0x2ffc17(0x1a2)+_0x11cc0a[_0x2ffc17(0x259)][_0x2ffc17(0x192)]+_0x2ffc17(0x2dd)),process['exit'](0x2)),_0x11cc0a[_0x2ffc17(0x34a)][_0x2ffc17(0x162)]>0x0&&(_0x11cc0a[_0x2ffc17(0x2ff)]!==''||_0x11cc0a[_0x2ffc17(0x29a)])&&(console['error'](_0x2ffc17(0x25a)),process['exit'](0x2)),_0x11cc0a[_0x2ffc17(0x1f9)]&&(_0x11cc0a[_0x2ffc17(0x2ff)]!==''||_0x11cc0a[_0x2ffc17(0x29a)])&&(console['error'](_0x2ffc17(0x16c)),process[_0x2ffc17(0x1d4)](0x2)),_0x11cc0a[_0x2ffc17(0x2af)]&&(_0x11cc0a[_0x2ffc17(0x138)]||_0x11cc0a['noComputerUse'])&&(console['error'](_0x2ffc17(0x215)),process[_0x2ffc17(0x1d4)](0x2)),_0x44eb03[_0x2ffc17(0x2af)]==='opt-in'&&!_0x11cc0a['computerUse']&&(_0x11cc0a['noComputerUse']=!0x0),_0x11cc0a[_0x2ffc17(0x1f9)]&&(_0x11cc0a[_0x2ffc17(0x138)]||_0x11cc0a['noComputerUse'])&&(console['error'](_0x2ffc17(0x13b)+(_0x44eb03[_0x2ffc17(0x2af)]===_0x2ffc17(0x1e8)?_0x44eb03[_0x2ffc17(0x192)]+_0x2ffc17(0x14a):_0x44eb03[_0x2ffc17(0x2af)]==='opt-in'?'Add\x20--computer-use.':'Drop\x20--headless\x20and\x20--no-computer-use.')),process[_0x2ffc17(0x1d4)](0x2)),_0x44eb03[_0x2ffc17(0x17b)]!==void 0x0&&(_0x11cc0a[_0x2ffc17(0x17b)]!==void 0x0&&_0x11cc0a[_0x2ffc17(0x17b)][_0x2ffc17(0x316)]()!==_0x44eb03['vertical']&&(console['error'](_0x44eb03[_0x2ffc17(0x192)]+'\x20runs\x20the\x20'+_0x44eb03[_0x2ffc17(0x17b)]+'\x20vertical,\x20so\x20it\x20cannot\x20run\x20as\x20--vertical\x20'+_0x11cc0a[_0x2ffc17(0x17b)]+_0x2ffc17(0x2d8)),process[_0x2ffc17(0x1d4)](0x2)),_0x11cc0a[_0x2ffc17(0x17b)]=_0x44eb03[_0x2ffc17(0x17b)]),_0x11cc0a[_0x2ffc17(0x18f)]&&_0x11cc0a[_0x2ffc17(0x2ff)]!=='login'&&(console[_0x2ffc17(0x344)](_0x2ffc17(0x276)+_0x11cc0a[_0x2ffc17(0x259)][_0x2ffc17(0x192)]+'\x20login`\x20only.'),process[_0x2ffc17(0x1d4)](0x2));let _0x490418=[...rn,...(_0x44eb03[_0x2ffc17(0x1e7)]??[])[_0x2ffc17(0x231)](_0x4ead45=>_0x4ead45[_0x2ffc17(0x2a5)])['map'](_0x5cd6c9=>_0x5cd6c9[_0x2ffc17(0x16f)])];return _0x11cc0a[_0x2ffc17(0x254)]!==_0x2ffc17(0x13a)&&!_0x490418[_0x2ffc17(0x100)](_0x11cc0a[_0x2ffc17(0x2ff)])&&(console['error'](_0x2ffc17(0x1d5)+_0x11cc0a[_0x2ffc17(0x254)]+'\x20applies\x20to\x20prompts\x20and\x20to\x20these\x20commands\x20only:\x20'+_0x490418['filter'](Boolean)[_0x2ffc17(0x31d)](',\x20')+'.'),process[_0x2ffc17(0x1d4)](0x2)),(_0x11cc0a['inputFormat']!==_0x2ffc17(0x13a)||_0x11cc0a[_0x2ffc17(0x2ac)])&&_0x11cc0a['subcommand']!==''&&(console[_0x2ffc17(0x344)](_0x2ffc17(0x253)),process[_0x2ffc17(0x1d4)](0x2)),_0x11cc0a['replayUserMessages']&&_0x11cc0a[_0x2ffc17(0x285)]!==_0x2ffc17(0x31e)&&(console[_0x2ffc17(0x344)](_0x2ffc17(0x2e5)),process[_0x2ffc17(0x1d4)](0x2)),_0x11cc0a[_0x2ffc17(0x285)]===_0x2ffc17(0x31e)&&_0x11cc0a[_0x2ffc17(0x254)]!==_0x2ffc17(0x31e)&&(console[_0x2ffc17(0x344)](_0x2ffc17(0x31b)),process[_0x2ffc17(0x1d4)](0x2)),(_0x11cc0a[_0x2ffc17(0x16d)]!==void 0x0||_0x11cc0a['limit']!==void 0x0||_0x11cc0a['includeSubAgents'])&&_0x11cc0a['subcommand']!=='sessions'&&(console[_0x2ffc17(0x344)](_0x2ffc17(0xf5)+_0x11cc0a[_0x2ffc17(0x259)]['bin']+_0x2ffc17(0x335)),process[_0x2ffc17(0x1d4)](0x2)),(_0x11cc0a[_0x2ffc17(0x129)]!==void 0x0||_0x11cc0a[_0x2ffc17(0x245)]!==void 0x0)&&_0x11cc0a[_0x2ffc17(0x2ff)]!==_0x2ffc17(0x1ea)&&(console[_0x2ffc17(0x344)](_0x2ffc17(0x33b)+_0x11cc0a[_0x2ffc17(0x259)][_0x2ffc17(0x192)]+_0x2ffc17(0x227)),process[_0x2ffc17(0x1d4)](0x2)),_0x11cc0a['turnId']!==void 0x0&&_0x11cc0a[_0x2ffc17(0x2ff)]!==_0x2ffc17(0x2b0)&&(console[_0x2ffc17(0x344)](_0x2ffc17(0x1f5)+_0x11cc0a[_0x2ffc17(0x259)][_0x2ffc17(0x192)]+'\x20sessions\x20cancel`\x20only.'),process[_0x2ffc17(0x1d4)](0x2)),_0x11cc0a['preloadSkills']=[...new Set(_0x11cc0a[_0x2ffc17(0x11f)])],_0x11cc0a['operands']=_0x59dd1c,_0x11cc0a[_0x2ffc17(0x20f)]=_0x59dd1c[_0x2ffc17(0x31d)]('\x20'),_0x11cc0a[_0x2ffc17(0x285)]===_0x2ffc17(0x31e)&&_0x11cc0a[_0x2ffc17(0x20f)]!==''&&(console[_0x2ffc17(0x344)](_0x2ffc17(0x1f6)),process[_0x2ffc17(0x1d4)](0x2)),_0x11cc0a;}function ln(){const _0x309b65=_0x4c3e6e;let _0x581466=process[_0x309b65(0x110)][_0x309b65(0x31a)],_0x361a2b=_0x581466['bind'](process[_0x309b65(0x110)]),_0x11d10f=O;return O=_0x12e557=>{_0x361a2b(_0x12e557);},process['stdout'][_0x309b65(0x31a)]=(..._0x474272)=>process[_0x309b65(0x24e)][_0x309b65(0x31a)](..._0x474272),()=>{const _0x4de31b=_0x309b65;process[_0x4de31b(0x110)]['write']=_0x581466,O=_0x11d10f;};}function m(_0x3f642e,_0x265238,_0xcf09db){const _0xef478c=_0x4c3e6e;if(_0x3f642e[_0xef478c(0x254)]===_0xef478c(0x13a)){_0xcf09db(_0x265238);return;}O(_0xed8b3(_0x265238));}function cn(_0x2761ae){const _0x3357b1=_0x4c3e6e;let _0x59ebde=_0x2761ae[_0x3357b1(0x192)],_0x553dcd=_0x2761ae[_0x3357b1(0x119)]?.[_0x3357b1(0x1e7)]?_0x2761ae[_0x3357b1(0x119)]['commands']+'\x0a':'',_0x3feed4=_0x2761ae[_0x3357b1(0x119)]?.['flags']?_0x2761ae[_0x3357b1(0x119)]['flags']+'\x0a':'',_0x39bfc1=_0x2761ae[_0x3357b1(0x119)]?.[_0x3357b1(0x319)]?'\x0a\x0a'+_0x2761ae[_0x3357b1(0x119)][_0x3357b1(0x319)]:'',_0x46e90a=('\x0a'+_0x59ebde+_0x3357b1(0x2e6)+_0x2761ae[_0x3357b1(0x204)]+_0x3357b1(0x21c)+_0x59ebde+'\x20[flags]\x20[\x22<prompt>\x22]\x20\x20\x20\x20Start\x20a\x20conversation\x20in\x20a\x20terminal\x0a\x20\x20'+_0x59ebde+_0x3357b1(0x1cf)+_0x59ebde+_0x3357b1(0x140)+_0x59ebde+_0x3357b1(0x2d4)+_0x59ebde+_0x3357b1(0x236)+_0x59ebde+'\x20--attach\x20PATH\x20[--attach\x20PATH\x20...]\x20\x22<prompt>\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Send\x20files\x20or\x20folders\x20with\x20the\x20first\x20message\x0a\x20\x20'+_0x59ebde+_0x3357b1(0x12c)+_0x59ebde+_0x3357b1(0x315)+_0x59ebde+_0x3357b1(0x339)+_0x59ebde+_0x3357b1(0x28c)+_0x59ebde+'\x20models\x20[--env\x20NAME]\x20\x20\x20\x20\x20List\x20available\x20LLM\x20models\x20for\x20the\x20current\x20tenant,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20with\x20any\x20BYO\x20configuration\x20warning\x20per\x20model\x0a\x20\x20'+_0x59ebde+_0x3357b1(0x2e0)+_0x59ebde+_0x3357b1(0x302)+_0x59ebde+_0x3357b1(0x1ec)+_0x59ebde+_0x3357b1(0x237)+_0x59ebde+'\x20sessions\x20cancel\x20ID\x20--turn\x20TURN\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Cancel\x20turn\x20TURN\x20running\x20on\x20session\x20ID\x20in\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20another\x20process;\x20exits\x201\x20when\x20no\x20such\x20turn\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20is\x20in\x20progress\x0a\x20\x20'+_0x59ebde+_0x3357b1(0x30d)+_0x59ebde+_0x3357b1(0x277)+_0x59ebde+_0x3357b1(0x206)+_0x59ebde+_0x3357b1(0x27b)+_0x59ebde+'\x20complete\x20--json-schema\x20FILE\x20[--model\x20ID]\x20[--session\x20ID]\x20\x22<prompt>\x22|-\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20One\x20structured\x20completion,\x20no\x20agent\x20turn:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20print\x20the\x20JSON\x20object\x20matching\x20the\x20schema\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20in\x20FILE\x20(--output-format\x20json\x20prints\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{structured,\x20usage});\x20--session\x20adds\x20that\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20session\x27s\x20history\x20as\x20context.\x20Exits\x201\x20when\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20output\x20fails\x20the\x20schema\x20(422)\x20or\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20backend\x20rejects\x20the\x20request\x0a\x20\x20'+_0x59ebde+_0x3357b1(0x2fd)+_0x553dcd+'\x20\x20'+_0x59ebde+'\x20org-users\x20QUERY\x20\x20\x20\x20\x20\x20\x20\x20\x20Search\x20your\x20organization\x27s\x20users\x20by\x20name\x20or\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20email\x20prefix\x20(2-100\x20characters)\x0a\x20\x20'+_0x59ebde+_0x3357b1(0x185)+_0x59ebde+_0x3357b1(0x12a)+_0x59ebde+'\x20delegations\x20accept|dismiss|cancel|delete\x20ID\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Take\x20an\x20answer\x20into\x20its\x20session,\x20drop\x20it,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20withdraw\x20a\x20live\x20delegation,\x20or\x20delete\x20it\x0a\x20\x20'+_0x59ebde+_0x3357b1(0x288)+_0x59ebde+_0x3357b1(0x225)+_0x59ebde+_0x3357b1(0x167)+_0x59ebde+_0x3357b1(0x1e5)+_0x59ebde+'\x20host\x20install\x20[flags]\x20\x20\x20\x20Auto-start\x20the\x20host\x20at\x20login\x20(macOS\x20LaunchAgent\x20/\x20Windows\x20Scheduled\x20Task)\x0a\x20\x20'+_0x59ebde+_0x3357b1(0x2ab)+_0x59ebde+'\x20host\x20status\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20auto-start\x20state\x0a\x20\x20'+_0x59ebde+_0x3357b1(0x157)+_0x59ebde+_0x3357b1(0x1ee)+_0x59ebde+_0x3357b1(0x186)+_0x59ebde+_0x3357b1(0x230)+_0x3feed4+_0x3357b1(0x10c)+_0x39bfc1+'\x0a')[_0x3357b1(0x316)]();console[_0x3357b1(0x238)](dn(_0x46e90a));}function dn(_0x47b994){const _0x2fa480=_0x4c3e6e;return _0x47b994[_0x2fa480(0x328)]('\x0a')[_0x2fa480(0x29f)](_0x18092f=>{const _0x1c17cf=_0x2fa480;let _0x184e39=/^( \S.*?\S)( {2,})(\S.*)$/[_0x1c17cf(0x242)](_0x18092f);return!_0x184e39||_0x184e39[0x1][_0x1c17cf(0x162)]+_0x184e39[0x2][_0x1c17cf(0x162)]<=he?_0x18092f:_0x184e39[0x1]+'\x20'['repeat'](Math[_0x1c17cf(0x343)](0x2,he-_0x184e39[0x1][_0x1c17cf(0x162)]))+_0x184e39[0x3];})[_0x2fa480(0x31d)]('\x0a');}function un(){const _0x5be13c=_0x4c3e6e;try{return JSON[_0x5be13c(0x2b7)](_0x1c5473['readFileSync'](_0x46415a[_0x5be13c(0x31d)](__dirname,'..',_0x5be13c(0x14f)),_0x5be13c(0x1f3)))['version']||_0x5be13c(0x353);}catch{return _0x5be13c(0x353);}}async function ye(_0x4657ef,_0x3eabb1){const _0x57084d=_0x4c3e6e;let _0x1757cc=_0x3eabb1?[_0x3eabb1]:[];for await(let _0x57b588 of _0x4657ef)_0x1757cc[_0x57084d(0x191)](Buffer[_0x57084d(0xfa)](_0x57b588));return Buffer[_0x57084d(0x1c1)](_0x1757cc)[_0x57084d(0xfe)](_0x57084d(0x1f3))[_0x57084d(0x316)]();}function mn(_0x44b05f,_0x893942){return new Promise(_0x2f5fdc=>{const _0xe9fde0=_0x3b04;let _0x4e6ed5=_0x308028=>{const _0xe28cf2=_0x3b04;clearTimeout(_0x7528f1),_0x44b05f[_0xe28cf2(0x170)](_0xe28cf2(0x1a9),_0x7c1ecc),_0x44b05f[_0xe28cf2(0x170)](_0xe28cf2(0x246),_0x1d8bdb),_0x44b05f[_0xe28cf2(0x170)]('error',_0x1d8bdb),_0x44b05f[_0xe28cf2(0x2fb)](),_0x2f5fdc(_0x308028);},_0x7c1ecc=_0x53d3f5=>_0x4e6ed5(Buffer[_0xe9fde0(0xfa)](_0x53d3f5)),_0x1d8bdb=()=>_0x4e6ed5(null),_0x7528f1=setTimeout(()=>_0x4e6ed5(null),_0x893942);_0x44b05f['on'](_0xe9fde0(0x1a9),_0x7c1ecc),_0x44b05f['on'](_0xe9fde0(0x246),_0x1d8bdb),_0x44b05f['on'](_0xe9fde0(0x344),_0x1d8bdb),_0x44b05f['resume']();});}async function J(_0x5915b4,_0x945273,_0x16f7bf=pn){const _0x4ab184=_0x4c3e6e;let _0x31af2e=_0x5915b4==='-';if(!_0x31af2e&&_0x5915b4)return _0x5915b4;if(!_0x31af2e&&_0x945273[_0x4ab184(0x32f)])return'';if(_0x31af2e)return ye(_0x945273,null);let _0x53d64e=await mn(_0x945273,_0x16f7bf);return _0x53d64e?ye(_0x945273,_0x53d64e):'';}function z(){const _0x3c185b=_0x4c3e6e;return _0x46415a[_0x3c185b(0x31d)](process.env.HOME||process.env.USERPROFILE||'',_0x3c185b(0x24d),_0x3c185b(0x30c));}function G(_0x1e0bed){const _0x5205bd=_0x4c3e6e;try{let _0x4c6d2e=JSON[_0x5205bd(0x2b7)](_0x1c5473[_0x5205bd(0x2c9)](_0x1e0bed,_0x5205bd(0x1f3)));return!_0x4c6d2e['accessToken']||!_0x4c6d2e[_0x5205bd(0x20c)]||!_0x4c6d2e[_0x5205bd(0x1dd)]?null:_0x4c6d2e;}catch{return null;}}function fn(){const _0xc6f9c9=_0x4c3e6e;let _0x1072cb=[{'file':_0x452605(),'isDesktopFallback':!0x1},{'file':z(),'isDesktopFallback':!0x0}];for(let _0x5bcff7 of _0x1072cb){let _0x18d488=G(_0x5bcff7[_0xc6f9c9(0x208)]);if(_0x18d488)return{..._0x5bcff7,'auth':_0x18d488};}return null;}async function gn(){const _0x363680=_0x4c3e6e;let _0x3a18af=_0x452605();if(!_0x1c5473[_0x363680(0x190)](_0x3a18af)){let _0x377cbf=z();console[_0x363680(0x238)](G(_0x377cbf)?_0x363680(0x318)+_0x377cbf+_0x363680(0x287):_0x363680(0x268));return;}_0x1c5473[_0x363680(0xf9)](_0x3a18af),console[_0x363680(0x238)]('Removed\x20'+_0x3a18af);}async function hn(_0xdc2614){const _0x530fb2=_0x4c3e6e;let _0x59f668=V(),_0xb565d2,_0x1fdb33;if(_0x59f668)_0xb565d2=_0x59f668,_0x1fdb33='environment\x20variables\x20(AUTH_TOKEN/TENANT_ID/ORG_ID)';else{let _0x15ccb7=fn();if(!_0x15ccb7)throw new Error(Ne(_0xdc2614[_0x530fb2(0x259)][_0x530fb2(0x192)]));_0xb565d2=_0x15ccb7[_0x530fb2(0x159)],_0x1fdb33=_0x15ccb7['isDesktopFallback']?_0x15ccb7[_0x530fb2(0x208)]+'\x20(Delegate\x20desktop\x20app\x20fallback)':_0x15ccb7[_0x530fb2(0x208)];}let _0x2f7ee7={'source':_0x1fdb33,'baseUrl':_0xb565d2[_0x530fb2(0x171)]??null,'deployment':yn(_0xb565d2[_0x530fb2(0x171)]),'organization':{'id':_0xb565d2[_0x530fb2(0x1dd)],'slug':_0xb565d2['orgLogicalName']??null},'tenant':{'id':_0xb565d2['tenantId'],'name':_0xb565d2[_0x530fb2(0x1b4)]??null},'tokenExpiresAt':_0xb565d2['expiresAt']?new Date(_0xb565d2[_0x530fb2(0x127)]*0x3e8)[_0x530fb2(0x19f)]():null};m(_0xdc2614,_0x2f7ee7,()=>{const _0x177229=_0x530fb2;let _0x30d07b=[_0x177229(0x23b)+_0x1fdb33,_0x177229(0x2bd)+(_0xb565d2[_0x177229(0x171)]??_0x177229(0x353)),_0x177229(0x195)+_0x2f7ee7[_0x177229(0x1fc)],_0x177229(0x28e)+(_0xb565d2['orgLogicalName']??_0x177229(0x1fd))+'\x20('+_0xb565d2[_0x177229(0x1dd)]+')',_0x177229(0x1a5)+(_0xb565d2[_0x177229(0x1b4)]??'unknown\x20slug')+'\x20('+_0xb565d2[_0x177229(0x20c)]+')'];if(_0xb565d2[_0x177229(0x127)]){let _0x1c9e80=_0xb565d2[_0x177229(0x127)]-Math[_0x177229(0x17f)](Date[_0x177229(0x34e)]()/0x3e8);_0x30d07b[_0x177229(0x191)](_0x1c9e80>0x0?'Token:\x20\x20\x20\x20\x20\x20\x20\x20expires\x20'+_0x2f7ee7[_0x177229(0x340)]+_0x177229(0x1d8)+Math['round'](_0x1c9e80/0x3c)+_0x177229(0x2e4):_0x177229(0x2f5)+_0x2f7ee7[_0x177229(0x340)]);}process[_0x177229(0x110)]['write'](_0x30d07b[_0x177229(0x31d)]('\x0a')+'\x0a');});}function Ne(_0xdc673){const _0x3fc51a=_0x4c3e6e;return _0x3fc51a(0x24a)+_0xdc673+'\x20login\x20--env\x20<alpha|staging|production>`\x20(or\x20`--url\x20<deployment-url>`\x20for\x20Automation\x20Suite)\x20first.';}function yn(_0x1c6c6){const _0x1bf0d8=_0x4c3e6e;return _0x1c6c6?_0x3dd912(_0x1c6c6)?_0x1bf0d8(0xf2):_0x1bf0d8(0x2ba):_0x1bf0d8(0x353);}function V(){let _0x369c5b=process.env.AUTH_TOKEN_FILE;return(process.env.AUTH_TOKEN||_0x369c5b)&&process.env.TENANT_ID&&process.env.ORG_ID?{'accessToken':_0x369c5b?wn(_0x369c5b):process.env.AUTH_TOKEN,..._0x369c5b?{'accessTokenFile':_0x369c5b}:{},'tenantId':process.env.TENANT_ID,'organizationId':process.env.ORG_ID,'orgLogicalName':process.env.ORG_SLUG,'tenantName':process.env.TENANT_SLUG,'baseUrl':Ce()}:null;}function wn(_0x568a64){const _0xe229e7=_0x4c3e6e;let _0x41ddfa;try{_0x41ddfa=_0x1c5473[_0xe229e7(0x2c9)](_0x568a64,_0xe229e7(0x1f3))[_0xe229e7(0x316)]();}catch(_0x16f82e){throw new Error(_0xe229e7(0x18a)+_0x568a64+_0xe229e7(0x269)+_0x16f82e['message']);}let _0x1c0976=_0x41ddfa[_0xe229e7(0x243)](_0xe229e7(0x2fe))?_0x41ddfa[_0xe229e7(0x281)](0x7)[_0xe229e7(0x316)]():_0x41ddfa;if(!_0x1c0976)throw new Error(_0xe229e7(0x18a)+_0x568a64+'\x27\x20is\x20empty.');return _0x1c0976;}function Ce(){const _0x1cff58=_0x4c3e6e;let _0x8af11e=process.env.UIPATH_BASE_URL;if(!_0x8af11e)return;let _0xa7bcc6=_0x480d83(_0x8af11e);if(_0xa7bcc6['ok']===!0x1)throw new Error(_0x1cff58(0x33c)+_0x24c4f8(_0x8af11e,_0xa7bcc6[_0x1cff58(0x112)]));return _0xa7bcc6['baseUrl'];}async function X(_0x70686d){let _0x4778b4=V();if(_0x4778b4)return _0x4778b4;let _0x7443e9=await _0x34fd91();if(_0x7443e9)return _0x7443e9;throw new Error(Ne(_0x70686d));}async function bn(){const _0x20f604=_0x4c3e6e;await new _0x2cb708()['stop']({'force':!0x0}),console[_0x20f604(0x238)](_0x20f604(0x189));}function Z(_0x2c1b6c,_0x5645db,_0x23c533){const _0x58775a=_0x4c3e6e;_0x2c1b6c?process[_0x58775a(0x24e)][_0x58775a(0x31a)]('[env='+_0x2c1b6c+_0x58775a(0x24f)+_0x23c533+'\x0a'):!_0x5645db&&!process.env.BACKEND_URL&&process[_0x58775a(0x24e)][_0x58775a(0x31a)](_0x58775a(0x20d)+_0x23c533+'\x0a');}async function x(_0x234220){const _0x51ba18=_0x4c3e6e;let _0x1a9f6f=await X(_0x234220['product'][_0x51ba18(0x192)]),_0x5c922d=_0x1422b5(_0x234220[_0x51ba18(0x2e1)],_0x1a9f6f,_0x234220['backendUrl']);return Z(_0x234220[_0x51ba18(0x2e1)],_0x234220[_0x51ba18(0x1be)],_0x5c922d),{'auth':_0x1a9f6f,'backendUrl':_0x5c922d,'client':_0x3ba3b1({'auth':_0x1a9f6f,'backendUrl':_0x5c922d})};}async function kn(_0x5a24d3){const _0x3f3f15=_0x4c3e6e;let {client:_0x546a4e}=await x(_0x5a24d3),[_0x408cf2,_0x49c16a]=await Promise[_0x3f3f15(0x33e)]([_0x1e1551(_0x546a4e),_0x4c71c2(_0x546a4e)[_0x3f3f15(0xf6)](_0x32dabf=>(process[_0x3f3f15(0x24e)][_0x3f3f15(0x31a)](_0x3f3f15(0x2d6)+(_0x32dabf instanceof Error?_0x32dabf[_0x3f3f15(0x213)]:String(_0x32dabf))+'\x0a'),{}))]),_0x1b5089=_0x408cf2[_0x3f3f15(0x29f)](_0x50bd8b=>_0x49c16a[_0x50bd8b['id']]?{..._0x50bd8b,'byoWarning':_0x49c16a[_0x50bd8b['id']]}:_0x50bd8b);m(_0x5a24d3,_0x1b5089,_0x35a2db=>vn(_0x35a2db,_0x5a24d3[_0x3f3f15(0x259)][_0x3f3f15(0x192)]));}function vn(_0x43f83a,_0x337940){const _0x522dfb=_0x4c3e6e;if(_0x43f83a[_0x522dfb(0x162)]===0x0){process[_0x522dfb(0x24e)][_0x522dfb(0x31a)]('No\x20models\x20available\x20for\x20this\x20product/tenant.\x0a');return;}process[_0x522dfb(0x110)][_0x522dfb(0x31a)](_0x522dfb(0x241)+_0x43f83a[_0x522dfb(0x162)]+_0x522dfb(0xff));for(let _0x3238ac of _0x43f83a){let _0x87ca5c=_0x3238ac['name']&&_0x3238ac[_0x522dfb(0x16f)]!==_0x3238ac['id']?'\x20('+_0x3238ac['name']+')':'';process[_0x522dfb(0x110)][_0x522dfb(0x31a)]('\x20\x20'+_0x3238ac['id']+_0x87ca5c+'\x0a'),_0x3238ac[_0x522dfb(0x13c)]&&process['stdout'][_0x522dfb(0x31a)](_0x522dfb(0x2e9)+_0x3238ac[_0x522dfb(0x13c)]+'\x0a'),_0x3238ac[_0x522dfb(0x346)]&&process[_0x522dfb(0x110)][_0x522dfb(0x31a)]('\x20\x20\x20\x20Not\x20available\x20on\x20this\x20plan'+(_0x3238ac[_0x522dfb(0x271)]?'\x20('+_0x3238ac[_0x522dfb(0x271)]+')':'')+'\x0a'),_0x3238ac[_0x522dfb(0x11b)]&&process[_0x522dfb(0x110)]['write'](_0x522dfb(0x314)+_0x3238ac[_0x522dfb(0x11b)]+'\x0a');}process[_0x522dfb(0x110)][_0x522dfb(0x31a)](_0x522dfb(0x149)+_0x337940+_0x522dfb(0x325));}async function Sn(_0x2ea8f3){const _0x5424cc=_0x4c3e6e;let [_0x5b62c3='',_0x71239f='',..._0x234805]=_0x2ea8f3[_0x5424cc(0x161)];if(_0x5b62c3&&!we[_0x5424cc(0x100)](_0x5b62c3)&&(console[_0x5424cc(0x344)](_0x5424cc(0x2cb)+_0x5b62c3+_0x5424cc(0x2e2)+we[_0x5424cc(0x31d)](_0x5424cc(0x10d))+'.'),process[_0x5424cc(0x1d4)](0x2)),_0x2ea8f3[_0x5424cc(0x1c2)]!==void 0x0&&_0x5b62c3!==_0x5424cc(0x306)&&(console[_0x5424cc(0x344)]('--turn\x20applies\x20to\x20`'+_0x2ea8f3[_0x5424cc(0x259)][_0x5424cc(0x192)]+_0x5424cc(0x111)),process['exit'](0x2)),_0x5b62c3&&_0x5b62c3!=='list'){await $n(_0x2ea8f3,_0x5b62c3,_0x71239f,_0x234805['join']('\x20')['trim']());return;}_0x2ea8f3[_0x5424cc(0x161)][_0x5424cc(0x162)]>0x1&&(console[_0x5424cc(0x344)](_0x5424cc(0x17e)+_0x2ea8f3[_0x5424cc(0x259)][_0x5424cc(0x192)]+_0x5424cc(0x143)),process[_0x5424cc(0x1d4)](0x2));let {client:_0x19c7b6}=await x(_0x2ea8f3),_0x2a3c13=await _0x240b47(_0x19c7b6,{'page':_0x2ea8f3[_0x5424cc(0x16d)],'pageSize':_0x2ea8f3[_0x5424cc(0x1a0)],'includeSubAgents':_0x2ea8f3['includeSubAgents']});m(_0x2ea8f3,_0x2a3c13,_0x4e23b6=>In(_0x4e23b6,_0x2ea8f3[_0x5424cc(0x259)][_0x5424cc(0x192)]));}async function $n(_0xe56ebc,_0x4fd35e,_0x1d121b,_0x5b7bc4){const _0x417880=_0x4c3e6e;if((_0xe56ebc[_0x417880(0x16d)]!==void 0x0||_0xe56ebc[_0x417880(0x1a0)]!==void 0x0||_0xe56ebc['includeSubAgents'])&&(console[_0x417880(0x344)]('--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`'+_0xe56ebc['product']['bin']+_0x417880(0x221)),process[_0x417880(0x1d4)](0x2)),_0x4fd35e==='cancel'){await xn(_0xe56ebc,_0x1d121b,_0x5b7bc4);return;}if(_0x4fd35e===_0x417880(0x29d)){await En(_0xe56ebc,_0x1d121b,_0x5b7bc4);return;}(!_0x1d121b||_0x4fd35e==='rename'!=!!_0x5b7bc4)&&(console[_0x417880(0x344)](_0x417880(0x17e)+_0xe56ebc[_0x417880(0x259)][_0x417880(0x192)]+_0x417880(0x354)+_0x4fd35e+'\x20<id>'+(_0x4fd35e===_0x417880(0x174)?_0x417880(0x267):'')),process[_0x417880(0x1d4)](0x2));let {client:_0x2b80be}=await x(_0xe56ebc);try{if(_0x4fd35e===_0x417880(0x279)){let _0x14d5b0=await _0x16e62a(_0x2b80be,_0x1d121b);_0x14d5b0||be(_0x1d121b),m(_0xe56ebc,_0x14d5b0,An);}else{if(_0x4fd35e===_0x417880(0x174)){let _0x19f8b5=await _0x3b9e1a(_0x2b80be,_0x1d121b,_0x5b7bc4);m(_0xe56ebc,_0x19f8b5,_0x51bfa9=>{const _0x2da2fe=_0x417880;process[_0x2da2fe(0x110)][_0x2da2fe(0x31a)]('Renamed\x20'+_0x51bfa9['id']+':\x20'+_0x51bfa9[_0x2da2fe(0x204)]+'\x0a');});}else await _0x4d5861(_0x2b80be,_0x1d121b),await _0x2cf531(_0x1d121b,_0xe56ebc[_0x417880(0x233)]),m(_0xe56ebc,{'id':_0x1d121b,'deleted':!0x0},_0x10c2ce=>{const _0xa0d77b=_0x417880;process[_0xa0d77b(0x110)]['write']('Deleted\x20session\x20'+_0x10c2ce['id']+'.\x0a');});}}catch(_0x2d1065){if(!_0x564fb7(_0x2d1065,0x194))throw _0x2d1065;be(_0x1d121b);}}function be(_0x463b55){const _0x1e5a6b=_0x4c3e6e;console[_0x1e5a6b(0x344)](_0x1e5a6b(0x1c8)+_0x463b55+'\x20not\x20found.'),process['exit'](0x1);}function An(_0x57a01d){const _0xca9642=_0x4c3e6e;process[_0xca9642(0x110)]['write']('ID\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x57a01d['id']+'\x0a'),process['stdout'][_0xca9642(0x31a)](_0xca9642(0x30a)+_0x57a01d[_0xca9642(0x204)]+'\x0a'),process[_0xca9642(0x110)]['write']('Owner\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x57a01d[_0xca9642(0x2f2)]+'\x0a'),process[_0xca9642(0x110)][_0xca9642(0x31a)]('Organization\x20\x20'+_0x57a01d[_0xca9642(0x1dd)]+'\x0a'),_0x57a01d[_0xca9642(0x1c3)]&&process['stdout'][_0xca9642(0x31a)]('Delegation\x20\x20\x20\x20'+_0x57a01d[_0xca9642(0x1c3)]+'\x0a');}async function xn(_0x565a88,_0x370251,_0x57f740){const _0x4b2e95=_0x4c3e6e;(!_0x370251||_0x57f740||!_0x565a88[_0x4b2e95(0x1c2)])&&(console[_0x4b2e95(0x344)]('Usage:\x20'+_0x565a88[_0x4b2e95(0x259)]['bin']+'\x20sessions\x20cancel\x20<session-id>\x20--turn\x20<turn-id>'),process[_0x4b2e95(0x1d4)](0x2));let {client:_0x2fd7c2}=await x(_0x565a88),_0x59281c=await _0x36c894(_0x2fd7c2,_0x370251,_0x565a88[_0x4b2e95(0x1c2)]);m(_0x565a88,{'sessionId':_0x370251,'turnId':_0x565a88[_0x4b2e95(0x1c2)],'cancelled':_0x59281c},_0x4717ec=>{const _0x4210a0=_0x4b2e95;_0x4717ec['cancelled']?process[_0x4210a0(0x110)][_0x4210a0(0x31a)](_0x4210a0(0x172)+_0x4717ec[_0x4210a0(0x1c2)]+_0x4210a0(0x2cf)+_0x4717ec[_0x4210a0(0x1f8)]+'.\x0a'):process[_0x4210a0(0x24e)][_0x4210a0(0x31a)](_0x4210a0(0x2a4)+_0x4717ec['turnId']+_0x4210a0(0x1d1)+_0x4717ec['sessionId']+'.\x0a');}),_0x59281c||(process[_0x4b2e95(0x152)]=0x1);}async function En(_0x242103,_0x4aa811,_0x58eb93){const _0x4ba0ec=_0x4c3e6e;(!_0x4aa811||/\s/[_0x4ba0ec(0x2ae)](_0x58eb93))&&(console['error'](_0x4ba0ec(0x17e)+_0x242103[_0x4ba0ec(0x259)][_0x4ba0ec(0x192)]+'\x20sessions\x20fork\x20<id>\x20[<message-id>]'),process[_0x4ba0ec(0x1d4)](0x2));let {client:_0x35a593}=await x(_0x242103),_0x43a9de;try{_0x43a9de=await _0x2f001b(_0x35a593,_0x4aa811,{'atMessageId':_0x58eb93||void 0x0});}catch(_0x22bce2){if(!_0x564fb7(_0x22bce2,0x194))throw _0x22bce2;console['error'](_0x4ba0ec(0x1c8)+_0x4aa811+_0x4ba0ec(0x2b9)+(_0x58eb93?_0x4ba0ec(0x2f9)+_0x58eb93:'')+'.'),process['exit'](0x1);}m(_0x242103,_0x43a9de,_0x3b17e9=>{const _0x192b7a=_0x4ba0ec;process[_0x192b7a(0x110)][_0x192b7a(0x31a)]('Forked\x20'+_0x4aa811+_0x192b7a(0x1ba)+_0x3b17e9['id']+'.\x0a'),process[_0x192b7a(0x24e)][_0x192b7a(0x31a)](_0x192b7a(0x256)+_0x242103[_0x192b7a(0x259)]['bin']+_0x192b7a(0x219)+_0x3b17e9['id']+_0x192b7a(0x2b5));});}function In({sessions:_0x4d24f1,page:_0x506bfc,isLastPage:_0x336f78},_0x405f87){const _0xe8af7d=_0x4c3e6e;if(_0x4d24f1[_0xe8af7d(0x162)]===0x0)process[_0xe8af7d(0x24e)][_0xe8af7d(0x31a)](_0xe8af7d(0x2bb)+_0x506bfc+'.\x0a');else{process[_0xe8af7d(0x110)][_0xe8af7d(0x31a)]('ID'[_0xe8af7d(0x2ca)](0x24)+'\x20\x20'+_0xe8af7d(0x296)[_0xe8af7d(0x2ca)](0x13)+_0xe8af7d(0x1ab));for(let _0x50089a of _0x4d24f1){let _0x1f45c1=_0x50089a[_0xe8af7d(0x222)][_0xe8af7d(0x23f)]('T','\x20')['slice'](0x0,0x13),_0x4c4ea7=_0x50089a[_0xe8af7d(0x30b)]?_0xe8af7d(0x168)+_0x50089a['parentSessionId']+')':'';process[_0xe8af7d(0x110)][_0xe8af7d(0x31a)](_0x50089a['id'][_0xe8af7d(0x2ca)](0x24)+'\x20\x20'+_0x1f45c1[_0xe8af7d(0x2ca)](0x13)+'\x20\x20'+_0x50089a[_0xe8af7d(0x204)]+_0x4c4ea7+'\x0a');}}_0x336f78||process[_0xe8af7d(0x24e)][_0xe8af7d(0x31a)](_0xe8af7d(0x1d0)+_0x405f87+_0xe8af7d(0x113)+(_0x506bfc+0x1)+'\x0a');}async function Tn(_0xd45fa2){const _0x2a4a46=_0x4c3e6e;let _0x3ade2c=await X(_0xd45fa2[_0x2a4a46(0x259)][_0x2a4a46(0x192)]),_0x4b9a4f=_0x1422b5(_0xd45fa2[_0x2a4a46(0x2e1)],_0x3ade2c,_0xd45fa2[_0x2a4a46(0x1be)]);Z(_0xd45fa2[_0x2a4a46(0x2e1)],_0xd45fa2[_0x2a4a46(0x1be)],_0x4b9a4f);let _0x4eec32=await _0x3d36e8({'auth':_0x3ade2c,'backendUrl':_0x4b9a4f,'interop':_0xd45fa2['headless']?_0x2a4a46(0x290):_0x2a4a46(0x165)});m(_0xd45fa2,_0x4eec32,({checks:_0x3c65c0})=>{const _0x2e6389=_0x2a4a46;for(let _0x555226 of _0x3c65c0)process[_0x2e6389(0x110)][_0x2e6389(0x31a)](Un(_0x555226)+'\x0a');}),_0x4eec32['ok']||process[_0x2a4a46(0x1d4)](0x1);}function Un(_0x36ccce){const _0xda80d6=_0x4c3e6e;return{'ok':'✓','failed':'✗','skipped':'-'}[_0x36ccce[_0xda80d6(0x1e0)]]+'\x20'+_0x36ccce[_0xda80d6(0x16f)]['padEnd'](0xa)+_0x36ccce[_0xda80d6(0x12b)];}async function Pn(_0x44afab){const _0x1c8945=_0x4c3e6e;let _0x500b6d=_0x44afab[_0x1c8945(0x20f)];Dn[_0x1c8945(0x100)](_0x500b6d)||(console[_0x1c8945(0x344)](_0x1c8945(0x182)+_0x44afab[_0x1c8945(0x20f)]+_0x1c8945(0x1da)+_0x44afab[_0x1c8945(0x259)][_0x1c8945(0x192)]+_0x1c8945(0x2da)),process['exit'](0x2)),_0x500b6d===''&&_0x44afab[_0x1c8945(0x135)]!==void 0x0&&(console[_0x1c8945(0x344)]('--days\x20applies\x20to\x20`'+_0x44afab[_0x1c8945(0x259)]['bin']+'\x20usage\x20activity|daily`;\x20the\x20summary\x20covers\x20the\x20current\x20month.'),process[_0x1c8945(0x1d4)](0x2)),_0x500b6d!==''&&_0x44afab[_0x1c8945(0x1f8)]!==void 0x0&&(console[_0x1c8945(0x344)](_0x1c8945(0x25d)+_0x44afab[_0x1c8945(0x259)][_0x1c8945(0x192)]+'\x20usage`\x20summary\x20only.'),process[_0x1c8945(0x1d4)](0x2));let {client:_0x4d5e44}=await x(_0x44afab);if(_0x500b6d===_0x1c8945(0x283)){m(_0x44afab,await _0x415f7a(_0x4d5e44,{'days':_0x44afab['days']}),Cn);return;}if(_0x500b6d===_0x1c8945(0x1cc)){m(_0x44afab,await _0x2c0108(_0x4d5e44,{'days':_0x44afab[_0x1c8945(0x135)]}),Rn);return;}let [_0x59ec97,_0x379b38]=await Promise['all']([_0x46509c(_0x4d5e44,{'sessionId':_0x44afab[_0x1c8945(0x1f8)]}),_0x392962(_0x4d5e44)]);m(_0x44afab,{'licensing':_0x59ec97,'monthlySpending':_0x379b38},Nn);}function Nn(_0x526cbf){const _0xae7925=_0x4c3e6e;let {licensing:_0x4c5974,monthlySpending:_0x3b2ce4}=_0x526cbf,_0x5056ed=[_0x4c5974[_0xae7925(0x27f)]?_0xae7925(0x217)+_0x4c5974['pct_used'][_0xae7925(0x2a6)](0x1)+'%\x20of\x20'+(_0x4c5974[_0xae7925(0x1f0)]??0x0)+_0xae7925(0x2df)+(_0x4c5974[_0xae7925(0x249)]>0x0?',\x20'+_0x4c5974[_0xae7925(0x249)]+'\x20PU\x20beyond\x20quota':'')+'\x20(resets\x20'+_0x4c5974['period_end']+')':'Licensing:\x20\x20\x20\x20no\x20licensing\x20quota\x20applies','Spending:\x20\x20\x20\x20\x20$'+_0x3b2ce4[_0xae7925(0x307)]['toFixed'](0x2)+_0xae7925(0x1e1)+(_0x3b2ce4[_0xae7925(0x27f)]&&_0x3b2ce4[_0xae7925(0x17d)]!==null?_0xae7925(0x1a4)+_0x3b2ce4[_0xae7925(0x17d)][_0xae7925(0x2a6)](0x2)+'\x20cap':_0xae7925(0x1ff))];_0x4c5974['session_consumed_pu']!==null&&_0x4c5974[_0xae7925(0x26e)]!==void 0x0&&_0x5056ed[_0xae7925(0x191)]('Session:\x20\x20\x20\x20\x20\x20'+_0x4c5974[_0xae7925(0x26e)]+'\x20PU'),process[_0xae7925(0x110)][_0xae7925(0x31a)](_0x5056ed[_0xae7925(0x31d)]('\x0a')+'\x0a');}function Cn(_0x1edc90){const _0x34e6f9=_0x4c3e6e;let _0x3dd494=['Last\x20'+_0x1edc90[_0x34e6f9(0x2a2)]+'\x20days:\x20'+_0x1edc90[_0x34e6f9(0x30e)]+_0x34e6f9(0x19d)+_0x1edc90[_0x34e6f9(0x2bc)]+'\x20active\x20days','Cost:\x20\x20\x20$'+_0x1edc90[_0x34e6f9(0x25f)]['toFixed'](0x2)+_0x34e6f9(0x284)+_0x1edc90[_0x34e6f9(0x1b3)][_0x34e6f9(0x2a6)](0x2)+'\x20from\x20'+_0x1edc90[_0x34e6f9(0x2cc)]+'\x20token\x20units)',_0x34e6f9(0x2bf)+_0x1edc90[_0x34e6f9(0x121)]+_0x34e6f9(0x272)+_0x1edc90[_0x34e6f9(0x347)]+_0x34e6f9(0x293)];for(let [_0x47678f,_0x2efb7c]of Object[_0x34e6f9(0x1a6)](_0x1edc90[_0x34e6f9(0x327)]))_0x3dd494['push']('\x20\x20'+_0x47678f+':\x20'+_0x2efb7c+_0x34e6f9(0x33f));process[_0x34e6f9(0x110)][_0x34e6f9(0x31a)](_0x3dd494[_0x34e6f9(0x31d)]('\x0a')+'\x0a');}function Rn(_0xec6024){const _0x34921b=_0x4c3e6e;if(_0xec6024['daily_usage'][_0x34921b(0x162)]===0x0){process[_0x34921b(0x110)]['write'](_0x34921b(0x317)+_0xec6024[_0x34921b(0x2a2)]+_0x34921b(0x142));return;}let _0x246677=['Date\x20\x20\x20\x20\x20\x20\x20\x20Token\x20units\x20\x20Prompt\x20tokens\x20\x20Completion\x20tokens'];for(let _0x2bcc39 of _0xec6024[_0x34921b(0x342)])_0x246677[_0x34921b(0x191)](_0x2bcc39[_0x34921b(0x22d)]+'\x20\x20'+String(_0x2bcc39[_0x34921b(0x2d9)])['padStart'](0xb)+'\x20\x20'+String(_0x2bcc39[_0x34921b(0x14e)])[_0x34921b(0x10e)](0xd)+'\x20\x20'+String(_0x2bcc39['completion_tokens'])[_0x34921b(0x10e)](0x11));process[_0x34921b(0x110)][_0x34921b(0x31a)](_0x246677[_0x34921b(0x31d)]('\x0a')+'\x0a');}async function _n(_0x36d302,_0x238f7f){const _0x333782=_0x4c3e6e;let _0x474734=await On(_0x36d302[_0x333782(0x20f)],_0x238f7f,_0x36d302[_0x333782(0x259)][_0x333782(0x192)]);_0x36d302[_0x333782(0x128)]&&(_0x474734[_0x333782(0x128)]=_0x36d302[_0x333782(0x128)]);let {client:_0x49548a}=await x(_0x36d302);try{_0x238f7f===_0x333782(0x22e)?m(_0x36d302,await _0x24ddcf(_0x49548a,_0x474734,void 0x0),Mn):_0x238f7f==='rerank'?m(_0x36d302,await _0x23cc7e(_0x49548a,_0x474734,void 0x0),jn):m(_0x36d302,await _0x52cdb0(_0x49548a,_0x474734,void 0x0),Fn);}catch(_0x304a4f){if(!_0x1ca38d(_0x304a4f))throw _0x304a4f;console[_0x333782(0x344)](_0x304a4f[_0x333782(0x213)]),process['exit'](0x1);}}async function On(_0x48c0f2,_0x1a2a20,_0x444ca5){const _0x4b2c4b=_0x4c3e6e;let _0x3c3d6e;try{_0x3c3d6e=_0x48c0f2&&_0x48c0f2!=='-'?_0x1c5473[_0x4b2c4b(0x2c9)](_0x46415a['resolve'](_0x48c0f2),'utf-8'):await J(_0x48c0f2,process[_0x4b2c4b(0x193)]);}catch(_0x3dd158){console[_0x4b2c4b(0x344)](_0x1a2a20+':\x20cannot\x20read\x20the\x20request\x20('+_0x3dd158[_0x4b2c4b(0x213)]+').'),process[_0x4b2c4b(0x1d4)](0x2);}return _0x3c3d6e||(console['error'](_0x1a2a20+'\x20needs\x20a\x20JSON\x20request:\x20'+_0x444ca5+'\x20'+_0x1a2a20+_0x4b2c4b(0x2c5)),process[_0x4b2c4b(0x1d4)](0x2)),Re(_0x3c3d6e,_0x1a2a20,_0x4b2c4b(0x300));}function Re(_0x40ca6f,_0x461a8e,_0x154bb0){const _0x3769b7=_0x4c3e6e;let _0xc720c5;try{_0xc720c5=JSON['parse'](_0x40ca6f);}catch(_0x1780d3){console['error'](_0x461a8e+':\x20'+_0x154bb0+_0x3769b7(0x114)+_0x1780d3[_0x3769b7(0x213)]+').'),process[_0x3769b7(0x1d4)](0x2);}return(typeof _0xc720c5!=_0x3769b7(0x169)||_0xc720c5===null||Array[_0x3769b7(0x130)](_0xc720c5))&&(console[_0x3769b7(0x344)](_0x461a8e+':\x20'+_0x154bb0+_0x3769b7(0x324)),process['exit'](0x2)),_0xc720c5;}function _e(_0x365989,_0x2597b4){const _0x29e079=_0x4c3e6e;let _0x589151;try{_0x589151=_0x1c5473['readFileSync'](_0x46415a['resolve'](_0x365989),_0x29e079(0x1f3));}catch(_0x5e7eb9){console[_0x29e079(0x344)](_0x2597b4+_0x29e079(0x29e)+_0x5e7eb9[_0x29e079(0x213)]+').'),process[_0x29e079(0x1d4)](0x2);}return Re(_0x589151,_0x2597b4,_0x29e079(0x2c1));}async function Ln(_0x2965c1){const _0x3dd9cb=_0x4c3e6e;_0x2965c1[_0x3dd9cb(0x247)]===void 0x0&&(console[_0x3dd9cb(0x344)](_0x3dd9cb(0x33a)+_0x2965c1[_0x3dd9cb(0x259)][_0x3dd9cb(0x192)]+'\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22.'),process[_0x3dd9cb(0x1d4)](0x2));let _0x5156b7=_e(_0x2965c1[_0x3dd9cb(0x247)],_0x3dd9cb(0x131)),_0x3cbca8=(await J(_0x2965c1[_0x3dd9cb(0x20f)],process[_0x3dd9cb(0x193)]))[_0x3dd9cb(0x316)]();_0x3cbca8||(console[_0x3dd9cb(0x344)](_0x3dd9cb(0x2b3)+_0x2965c1[_0x3dd9cb(0x259)][_0x3dd9cb(0x192)]+_0x3dd9cb(0x175)),process['exit'](0x2));let {client:_0x3a4143}=await x(_0x2965c1);try{let _0x5929f9=await _0x24b7b8(_0x3a4143,{'prompt':_0x3cbca8,'jsonSchema':_0x5156b7,'model':_0x2965c1[_0x3dd9cb(0x128)]||process.env.MODEL||_0x4bac45,..._0x2965c1[_0x3dd9cb(0x1f8)]!==void 0x0&&{'sessionId':_0x2965c1[_0x3dd9cb(0x1f8)]}},void 0x0);m(_0x2965c1,_0x5929f9,_0x18e3b1=>{const _0x503021=_0x3dd9cb;process[_0x503021(0x110)][_0x503021(0x31a)](JSON[_0x503021(0x323)](_0x18e3b1['structured'],null,0x2)+'\x0a');});}catch(_0x4e6b7b){if(!_0x540c2d(_0x4e6b7b))throw _0x4e6b7b;console['error'](_0x4e6b7b[_0x3dd9cb(0x213)]),process[_0x3dd9cb(0x1d4)](0x1);}}function ee(_0x5e1019){const _0x21e05c=_0x4c3e6e;process[_0x21e05c(0x110)][_0x21e05c(0x31a)](_0x21e05c(0x25b)+_0x5e1019[_0x21e05c(0x128)]+'\x20('+_0x5e1019[_0x21e05c(0x2ec)]+_0x21e05c(0x270)+_0x5e1019['usage']['total_tokens']+_0x21e05c(0x205));}function Mn(_0x237d9f){const _0x127159=_0x4c3e6e;ee(_0x237d9f);for(let _0xd276cf of Object[_0x127159(0xf8)](_0x237d9f[_0x127159(0x2d0)])){let _0x10e12d=_0x237d9f[_0x127159(0x2d0)][_0xd276cf],_0x4ef550=_0x10e12d[_0x127159(0x27c)]==='probability'?_0x127159(0x120)+_0x10e12d['probability'][_0x127159(0x2a6)](0x2):_0x10e12d[_0x127159(0x27c)]===_0x127159(0x181)?_0x127159(0x266)+_0x10e12d[_0x127159(0x181)]+_0x127159(0x320)+_0x10e12d[_0x127159(0x1c7)][_0x127159(0x2a6)](0x2)+')':_0x127159(0x2d5)+_0x10e12d[_0x127159(0x15c)]['toFixed'](0x2)+'\x20(confidence\x20'+_0x10e12d[_0x127159(0x1c7)][_0x127159(0x2a6)](0x2)+')';process[_0x127159(0x110)][_0x127159(0x31a)]('\x20\x20'+_0xd276cf+':\x20'+_0x4ef550+'\x0a');}}function jn(_0x125657){const _0x11e471=_0x4c3e6e;ee(_0x125657),_0x125657[_0x11e471(0x14d)]['forEach']((_0x5bdde0,_0x3a68a3)=>{const _0x69f7f3=_0x11e471;process[_0x69f7f3(0x110)][_0x69f7f3(0x31a)]('\x20\x20'+(_0x3a68a3+0x1)+'.\x20'+_0x5bdde0['id']+'\x20\x20'+_0x5bdde0[_0x69f7f3(0x15c)][_0x69f7f3(0x2a6)](0x3)+_0x69f7f3(0x32b)+_0x5bdde0[_0x69f7f3(0x132)]+')\x0a');});}function Fn(_0x452b40){const _0x277c41=_0x4c3e6e;ee(_0x452b40),process[_0x277c41(0x110)][_0x277c41(0x31a)](_0x277c41(0x1ac)+_0x452b40[_0x277c41(0x26f)]+'\x0a');for(let _0x4349c3 of _0x452b40[_0x277c41(0x14d)])process[_0x277c41(0x110)][_0x277c41(0x31a)]('\x20\x20'+_0x4349c3['id']+':\x20'+_0x4349c3[_0x277c41(0x332)]+_0x277c41(0x320)+_0x4349c3[_0x277c41(0x1c7)][_0x277c41(0x2a6)](0x2)+')\x0a');}async function Bn(_0x598759){const _0x5b9795=_0x4c3e6e;let _0x150b99=_0x598759[_0x5b9795(0x20f)][_0x5b9795(0x316)]();_0x150b99||(console[_0x5b9795(0x344)](_0x5b9795(0x301)+_0x598759[_0x5b9795(0x259)]['bin']+_0x5b9795(0x197)),process[_0x5b9795(0x1d4)](0x2));let {client:_0x9354d7}=await x(_0x598759);try{let _0x12d98b=_0x150b99==='-'?{'data':await Hn(process[_0x5b9795(0x193)])}:_0x150b99;m(_0x598759,await _0x330d5a(_0x9354d7,_0x12d98b,void 0x0),_0x12ead7=>{const _0x3e4571=_0x5b9795;process[_0x3e4571(0x110)][_0x3e4571(0x31a)](_0x12ead7['text']+'\x0a');});}catch(_0x3e2c80){if(_0x163e5f(_0x3e2c80)&&(console['error'](_0x3e2c80[_0x5b9795(0x213)]),process[_0x5b9795(0x1d4)](_0x3e2c80[_0x5b9795(0x1e0)]===void 0x0?0x2:0x1)),typeof _0x3e2c80?.['code']!=_0x5b9795(0x1cd))throw _0x3e2c80;console[_0x5b9795(0x344)](_0x5b9795(0x331)+_0x150b99+'\x20('+_0x3e2c80[_0x5b9795(0x213)]+').'),process['exit'](0x2);}}async function Hn(_0x15575a){const _0x39e36b=_0x4c3e6e;let _0x42b672=[];for await(let _0x5a8ddc of _0x15575a)_0x42b672[_0x39e36b(0x191)](Buffer[_0x39e36b(0xfa)](_0x5a8ddc));return Buffer[_0x39e36b(0x1c1)](_0x42b672);}async function Jn(_0x4f394){const _0x430ba7=_0x4c3e6e;let [_0x52f018='',_0xbea9bd='',..._0x33f845]=_0x4f394['operands'];ke[_0x430ba7(0x100)](_0x52f018)||(console[_0x430ba7(0x344)]((_0x52f018?_0x430ba7(0x194)+_0x52f018+'.\x20':'')+_0x430ba7(0x218)+_0x4f394['product']['bin']+_0x430ba7(0x28a)+ke[_0x430ba7(0x31d)]('\x20|\x20')+'.'),process[_0x430ba7(0x1d4)](0x2));let _0x3b355f=_0x52f018;_0x3b355f!==_0x430ba7(0x19e)&&(_0x4f394[_0x430ba7(0x129)]!==void 0x0||_0x4f394[_0x430ba7(0x245)]!==void 0x0||_0x4f394[_0x430ba7(0x1f8)]!==void 0x0)&&(console[_0x430ba7(0x344)](_0x430ba7(0x321)+_0x4f394[_0x430ba7(0x259)][_0x430ba7(0x192)]+_0x430ba7(0x227)),process[_0x430ba7(0x1d4)](0x2));let _0x5d83eb=(_0x3b355f===_0x430ba7(0x19e)?_0x4f394[_0x430ba7(0x161)][_0x430ba7(0x281)](0x1):_0x33f845)['join']('\x20')['trim'](),_0x281620=_0x3b355f===_0x430ba7(0x19e)||_0x3b355f==='complete';(_0x3b355f!==_0x430ba7(0x19e)&&!_0xbea9bd||(_0x281620?!_0x5d83eb:_0x5d83eb)||_0x3b355f===_0x430ba7(0x19e)&&!_0x4f394['sessionId'])&&(console['error'](_0x430ba7(0x17e)+_0x4f394[_0x430ba7(0x259)][_0x430ba7(0x192)]+'\x20'+ve[_0x3b355f]),process[_0x430ba7(0x1d4)](0x2));let _0x11dadb=_0x281620&&_0x5d83eb==='-'?(await J('-',process['stdin']))[_0x430ba7(0x316)]():_0x5d83eb;_0x281620&&!_0x11dadb&&(console[_0x430ba7(0x344)](_0x430ba7(0x17e)+_0x4f394[_0x430ba7(0x259)][_0x430ba7(0x192)]+'\x20'+ve[_0x3b355f]+_0x430ba7(0x2f7)),process['exit'](0x2));let {client:_0x381558}=await x(_0x4f394);try{await Gn(_0x4f394,_0x381558,_0x3b355f,_0xbea9bd,_0x11dadb);}catch(_0x28151d){if(!_0x421ea2(_0x28151d))throw _0x28151d;console[_0x430ba7(0x344)](_0x28151d['message']),process['exit'](0x1);}}async function Gn(_0x24364c,_0x1dd2fd,_0x46d12d,_0x5a9b78,_0x417e91){const _0x24a42c=_0x4c3e6e;switch(_0x46d12d){case'list':m(_0x24364c,await _0x349ef2(_0x1dd2fd,_0x5a9b78),Wn);return;case _0x24a42c(0x1ce):m(_0x24364c,await _0x592d8d(_0x1dd2fd,_0x5a9b78),_0x1d7ffe=>{const _0x476713=_0x24a42c;_0x1d7ffe['delegation']&&process['stdout'][_0x476713(0x31a)](_0x476713(0x2de)+_0x1d7ffe[_0x476713(0x2b4)]['id']+'\x20('+_0x1d7ffe[_0x476713(0x2b4)][_0x476713(0x1e0)]+_0x476713(0x16e)),_0x1d7ffe[_0x476713(0x263)][_0x476713(0x162)]===0x0&&process[_0x476713(0x24e)]['write'](_0x476713(0x337));for(let _0x570112 of _0x1d7ffe[_0x476713(0x263)])process[_0x476713(0x110)][_0x476713(0x31a)]('\x0a'+_0x570112['id']+_0x476713(0x220)+(_0x570112[_0x476713(0x298)]??_0x476713(0x1ca))+'\x20\x20'+(_0x570112[_0x476713(0x2a7)]??'')+'\x0a'+(_0x570112['result']?.[_0x476713(0x30f)]??'')+'\x0a');_0x1d7ffe[_0x476713(0x263)][_0x476713(0x162)]>0x0&&process[_0x476713(0x24e)][_0x476713(0x31a)](_0x476713(0x2ce)+_0x24364c[_0x476713(0x259)]['bin']+'\x20delegations\x20accept\x20<id>\x0a');});return;case'show':m(_0x24364c,await _0x1dc406(_0x1dd2fd,_0x5a9b78),Se);return;case _0x24a42c(0x19e):{let _0x9ab6de=await _0x2f2ff2(_0x1dd2fd,{'sessionId':_0x24364c[_0x24a42c(0x1f8)],'task':_0x417e91,..._0x24364c[_0x24a42c(0x245)]!==void 0x0&&{'contextSummary':_0x24364c[_0x24a42c(0x245)]},..._0x24364c['delegateTo']!==void 0x0&&{'recipient':_0x24364c['delegateTo']}});m(_0x24364c,_0x9ab6de,_0x1ce3dc=>{const _0x74f218=_0x24a42c;_0x1ce3dc[_0x74f218(0x303)]?process['stdout'][_0x74f218(0x31a)](_0x74f218(0x214)+_0x1ce3dc[_0x74f218(0x1c3)]+_0x74f218(0x116)+_0x1ce3dc[_0x74f218(0x303)][_0x74f218(0x2b8)]+'\x20<'+_0x1ce3dc[_0x74f218(0x303)][_0x74f218(0x273)]+'>.\x0a'):process[_0x74f218(0x110)][_0x74f218(0x31a)](_0x74f218(0x2f8)+_0x1ce3dc[_0x74f218(0x1c3)]+_0x74f218(0x14c)+_0x1ce3dc[_0x74f218(0x1ad)]+'\x0a');});return;}case'claim':{let _0x1c782d=await _0x5d03d7(_0x1dd2fd,_0x5a9b78);m(_0x24364c,_0x1c782d,_0x314436=>{const _0x297b6b=_0x24a42c;Se(_0x314436),process[_0x297b6b(0x110)][_0x297b6b(0x31a)](_0x297b6b(0x122)+_0x314436[_0x297b6b(0x1f8)]+'\x0a'),process[_0x297b6b(0x24e)][_0x297b6b(0x31a)](_0x297b6b(0x2e7)+_0x24364c[_0x297b6b(0x259)][_0x297b6b(0x192)]+_0x297b6b(0x219)+_0x314436['sessionId']+_0x297b6b(0x299)+_0x24364c[_0x297b6b(0x259)]['bin']+'\x20delegations\x20complete\x20'+_0x314436['delegationId']+_0x297b6b(0x156));});return;}case _0x24a42c(0x131):{let {alreadyCompleted:_0x1f306a}=await _0x2e22d6(_0x1dd2fd,_0x5a9b78,{'content':_0x417e91});m(_0x24364c,{'delegationId':_0x5a9b78,'alreadyCompleted':_0x1f306a},_0x3f208a=>{const _0x2bedc9=_0x24a42c;process['stdout'][_0x2bedc9(0x31a)]((_0x3f208a[_0x2bedc9(0x1a7)]?_0x2bedc9(0x29b):_0x2bedc9(0x1aa))+_0x2bedc9(0x16b)+_0x3f208a[_0x2bedc9(0x1c3)]+'.\x0a');});return;}case _0x24a42c(0x18b):{let _0x83a6b1=await _0x169c7d(_0x1dd2fd,_0x5a9b78);m(_0x24364c,{'delegationId':_0x5a9b78,..._0x83a6b1},_0x179526=>{const _0x7d15d3=_0x24a42c;process[_0x7d15d3(0x110)][_0x7d15d3(0x31a)]((_0x179526[_0x7d15d3(0x240)]?_0x7d15d3(0x2e8):'Accepted')+_0x7d15d3(0x16b)+_0x179526[_0x7d15d3(0x1c3)]+'.\x0a');});return;}default:{let _0x1bc245={'dismiss':_0x17c6d3,'cancel':_0x4fdb47,'delete':_0x45665d}[_0x46d12d];await _0x1bc245(_0x1dd2fd,_0x5a9b78);let _0xcdf12f={'dismiss':_0x24a42c(0x179),'cancel':_0x24a42c(0x27a),'delete':'deleted'}[_0x46d12d];m(_0x24364c,{'delegationId':_0x5a9b78,[_0xcdf12f]:!0x0},()=>{const _0x2affca=_0x24a42c;process[_0x2affca(0x110)][_0x2affca(0x31a)](''+_0xcdf12f[0x0][_0x2affca(0x291)]()+_0xcdf12f[_0x2affca(0x281)](0x1)+_0x2affca(0x16b)+_0x5a9b78+'.\x0a');});}}}function Wn(_0x6ea09){const _0x58c22d=_0x4c3e6e;if(_0x6ea09[_0x58c22d(0x162)]===0x0){process[_0x58c22d(0x24e)][_0x58c22d(0x31a)](_0x58c22d(0x133));return;}process[_0x58c22d(0x110)]['write']('ID'['padEnd'](0x24)+'\x20\x20'+_0x58c22d(0x1e2)[_0x58c22d(0x2ca)](0x9)+'\x20\x20'+_0x58c22d(0x248)['padEnd'](0x18)+'\x20\x20TASK\x0a');for(let _0x301061 of _0x6ea09)process[_0x58c22d(0x110)][_0x58c22d(0x31a)](_0x301061['id'][_0x58c22d(0x2ca)](0x24)+'\x20\x20'+_0x301061[_0x58c22d(0x1e0)][_0x58c22d(0x2ca)](0x9)+'\x20\x20'+(_0x301061[_0x58c22d(0x298)]??'-')[_0x58c22d(0x2ca)](0x18)+'\x20\x20'+(_0x301061[_0x58c22d(0x2a7)]??'')+'\x0a');}function Se(_0x548fa7){const _0x1141cf=_0x4c3e6e;process[_0x1141cf(0x110)][_0x1141cf(0x31a)]('From\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x548fa7[_0x1141cf(0x34f)]??'-')+'\x0a'),_0x548fa7[_0x1141cf(0x1fe)]&&process[_0x1141cf(0x110)][_0x1141cf(0x31a)](_0x1141cf(0x122)+_0x548fa7[_0x1141cf(0x1fe)]+'\x0a'),process['stdout'][_0x1141cf(0x31a)]('Task\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x548fa7[_0x1141cf(0x2a7)]??'-')+'\x0a'),_0x548fa7[_0x1141cf(0x245)]&&process[_0x1141cf(0x110)][_0x1141cf(0x31a)]('\x0a'+_0x548fa7[_0x1141cf(0x245)]+'\x0a\x0a');}async function Kn(_0x58a7ab){const _0x4a9b6e=_0x4c3e6e;_0x58a7ab[_0x4a9b6e(0x20f)]['trim']()||(console[_0x4a9b6e(0x344)](_0x4a9b6e(0x17e)+_0x58a7ab[_0x4a9b6e(0x259)]['bin']+'\x20org-users\x20<name\x20or\x20email\x20prefix>'),process[_0x4a9b6e(0x1d4)](0x2));let {client:_0x2372b6}=await x(_0x58a7ab),_0x5552fe;try{_0x5552fe=await _0x2d92f0(_0x2372b6,_0x58a7ab[_0x4a9b6e(0x20f)]);}catch(_0x478716){if(!_0x421ea2(_0x478716))throw _0x478716;console[_0x4a9b6e(0x344)](_0x478716[_0x4a9b6e(0x213)]),process[_0x4a9b6e(0x1d4)](0x1);}m(_0x58a7ab,_0x5552fe,_0x5208d1=>{const _0x43af29=_0x4a9b6e;_0x5208d1['length']===0x0&&process[_0x43af29(0x24e)][_0x43af29(0x31a)](_0x43af29(0x34d)+_0x58a7ab[_0x43af29(0x20f)]['trim']()+_0x43af29(0x2ee));for(let _0x3d87a6 of _0x5208d1)process[_0x43af29(0x110)][_0x43af29(0x31a)](_0x3d87a6[_0x43af29(0x273)]['padEnd'](0x20)+'\x20\x20'+_0x3d87a6['displayName']+'\x0a');});}async function Qn(_0x4fc397){const _0x1ceaa2=_0x4c3e6e;_0x4fc397[_0x1ceaa2(0x2e1)]===_0x1ceaa2(0x12d)&&(console['error'](_0x1ceaa2(0x103)),process[_0x1ceaa2(0x1d4)](0x2));let _0x1acaeb=G(_0x452605()),_0x2f5fe7=_0x4fc397[_0x1ceaa2(0x18f)];if(_0x4fc397[_0x1ceaa2(0x2e1)]){let _0x5b35a9=_0x4fc397['env'];await _0x74c8c9({'env':_0x5b35a9,'tenant':_0x4fc397[_0x1ceaa2(0x12e)]??q(_0x1acaeb,_0x473ce1[_0x5b35a9]),'skipEnvCheck':_0x2f5fe7});return;}let _0x3d33ce=_0x4fc397[_0x1ceaa2(0x1de)]??Ce();if(_0x3d33ce){await _0x74c8c9({'baseUrl':_0x3d33ce,'tenant':_0x4fc397[_0x1ceaa2(0x12e)]??q(_0x1acaeb,_0x3d33ce),'skipEnvCheck':_0x2f5fe7});return;}if(_0x1acaeb?.['baseUrl']){await _0x74c8c9({'baseUrl':_0x1acaeb[_0x1ceaa2(0x171)],'tenant':_0x4fc397[_0x1ceaa2(0x12e)]??_0x1acaeb[_0x1ceaa2(0x1b4)],'skipEnvCheck':_0x2f5fe7});return;}console[_0x1ceaa2(0x344)](_0x1ceaa2(0x2f0)+_0x4fc397[_0x1ceaa2(0x259)][_0x1ceaa2(0x192)]+_0x1ceaa2(0x26a)+_0x4fc397[_0x1ceaa2(0x259)][_0x1ceaa2(0x192)]+'\x20login\x20--url\x20https://automationsuite.contoso.com'),process[_0x1ceaa2(0x1d4)](0x2);}function q(_0x526f65,_0x475ce3){const _0x50442a=_0x4c3e6e;return _0x526f65?.[_0x50442a(0x171)]&&qn(_0x526f65['baseUrl'],_0x475ce3)?_0x526f65[_0x50442a(0x1b4)]:void 0x0;}function qn(_0x37c5d4,_0xd3826f){const _0x4498d2=_0x4c3e6e;try{return new URL(_0x37c5d4)[_0x4498d2(0x160)]===new URL(_0xd3826f)[_0x4498d2(0x160)];}catch{return!0x1;}}async function Yn(_0xf41d54,_0x1f670e){const _0x5ed536=_0x4c3e6e;V()&&(console[_0x5ed536(0x344)](_0x5ed536(0x134)),process[_0x5ed536(0x1d4)](0x2));let _0x15aca3=await _0x322d09();if(_0x15aca3||(console[_0x5ed536(0x344)](zn(_0x1f670e)),process[_0x5ed536(0x1d4)](0x2)),_0xf41d54[_0x5ed536(0x316)]()){let _0x3b9b8d=await _0x209b9d(_0x15aca3,_0xf41d54);_0x3a372f(_0x3b9b8d)||(console[_0x5ed536(0x344)](_0x5ed536(0x351)+_0x452605()+';\x20the\x20saved\x20login\x20still\x20uses\x20'+_0x15aca3[_0x5ed536(0x1b4)]+'.'),process[_0x5ed536(0x1d4)](0x1)),console[_0x5ed536(0x238)](_0x5ed536(0x226)+_0x3b9b8d[_0x5ed536(0x1b4)]+'\x20('+_0x3b9b8d['tenantId']+')\x20—\x20saved\x20to\x20'+_0x452605());return;}Vn(await _0x5b19c6(_0x15aca3),_0x15aca3,_0x1f670e);}function zn(_0x566567){const _0x328c77=_0x4c3e6e;if(_0x1c5473['existsSync'](_0x452605()))return _0x328c77(0x2ad)+_0x566567+'\x20login`\x20again.';let _0xd611c4=z();return G(_0xd611c4)?'No\x20CLI\x20login\x20to\x20switch:\x20the\x20CLI\x20is\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20'+_0xd611c4+_0x328c77(0x19c)+_0x566567+_0x328c77(0x102):_0x328c77(0x265)+_0x566567+_0x328c77(0x207);}function Vn(_0x25bc7d,_0x3d617b,_0x23a5be){const _0x8baa58=_0x4c3e6e;let _0x356d71=_0x25bc7d[_0x8baa58(0x29f)](_0x424591=>_0x424591['id']===_0x3d617b['tenantId']?'*\x20'+_0x424591[_0x8baa58(0x16f)]+_0x8baa58(0x2f4):'\x20\x20'+_0x424591[_0x8baa58(0x16f)]);process[_0x8baa58(0x110)][_0x8baa58(0x31a)](_0x8baa58(0x26d)+(_0x3d617b[_0x8baa58(0x29c)]??_0x3d617b[_0x8baa58(0x1dd)])+':\x0a'+_0x356d71[_0x8baa58(0x31d)]('\x0a')+'\x0a'),_0x25bc7d['length']>0x1&&process[_0x8baa58(0x110)][_0x8baa58(0x31a)]('Switch\x20with:\x20'+_0x23a5be+'\x20tenant\x20<name>\x0a');}function Xn(_0x595150){const _0x2ea2b5=_0x4c3e6e;return _0x595150?.[_0x2ea2b5(0x21a)]?.[_0x2ea2b5(0x1e0)]===0x191||/401/[_0x2ea2b5(0x2ae)](String(_0x595150?.[_0x2ea2b5(0x213)]??''));}function $e(_0x457057,_0x43c9bc,_0x1ff03c,_0x4b5d3c){const _0x4e5400=_0x4c3e6e;let _0x479a48=_0x457057[_0x4e5400(0x128)]||process.env.MODEL;return{'backendUrl':_0x1ff03c,'auth':_0x43c9bc,'enableComputerUse':!_0x457057[_0x4e5400(0x138)]&&!_0x457057[_0x4e5400(0x11d)],'autoSpawnInterop':!_0x457057[_0x4e5400(0x138)],'enableConnections':!_0x457057[_0x4e5400(0x20a)],'enableSecurity':!_0x457057['noSecurity'],'keepInteropAlive':_0x457057['keepAlive'],..._0x4b5d3c[_0x4e5400(0x126)]?{'enableBackgroundCommands':!0x1}:{},..._0x457057[_0x4e5400(0x199)]?{'enableMemory':!0x1}:{},..._0x457057[_0x4e5400(0x1f9)]?{'enableTaskAutomation':!0x0}:{},..._0x457057['preloadSkills'][_0x4e5400(0x162)]>0x0?{'preloadSkills':_0x457057[_0x4e5400(0x11f)]}:{},..._0x479a48?{'model':_0x479a48}:{},..._0x457057[_0x4e5400(0x1b9)]?{'projectId':_0x457057['projectId']}:{},..._0x457057['vertical']?{'vertical':_0x457057[_0x4e5400(0x17b)]}:{},..._0x457057[_0x4e5400(0x233)]?{'workingDirectory':_0x457057[_0x4e5400(0x233)]}:{},..._0x457057[_0x4e5400(0x32d)]?{'bundledSkillsPath':_0x457057[_0x4e5400(0x32d)]}:{},..._0x457057[_0x4e5400(0x2a8)]?{'effort':_0x457057[_0x4e5400(0x2a8)]}:{},..._0x457057[_0x4e5400(0x1f8)]?{'sessionId':_0x457057['sessionId']}:{},..._0x457057[_0x4e5400(0x297)]?{'verbose':!0x0}:{},..._0x457057['product'][_0x4e5400(0x1cb)]?{'agentName':_0x457057[_0x4e5400(0x259)][_0x4e5400(0x1cb)]}:{}};}async function Zn(_0x3fcd12){const _0x3acccf=_0x4c3e6e;let _0x40b4a1=_0x3fcd12[_0x3acccf(0x254)]!=='text',_0x432dc3=_0x3fcd12[_0x3acccf(0x247)]===void 0x0?null:_e(_0x3fcd12[_0x3acccf(0x247)],_0x3fcd12[_0x3acccf(0x259)][_0x3acccf(0x192)]),_0x421a3a=!_0x40b4a1&&!_0x432dc3&&!_0x3fcd12[_0x3acccf(0x1e3)]&&_0x3fcd12['prompt']!=='-'&&!!process[_0x3acccf(0x193)][_0x3acccf(0x32f)]&&!!process['stdout']['isTTY'],_0x3d22aa=_0x3fcd12[_0x3acccf(0x285)]===_0x3acccf(0x31e)?le(process[_0x3acccf(0x193)],_0x3d6d52=>{const _0x206d5e=_0x3acccf;process[_0x206d5e(0x24e)][_0x206d5e(0x31a)](_0x3d6d52['message']+_0x206d5e(0x1a3));}):null,_0x25f22a=_0x3d22aa?(await _0x3d22aa['next']())[_0x3acccf(0x1db)]:void 0x0,_0x418a64=_0x3d22aa?_0x25f22a?.[_0x3acccf(0x13a)]??'':_0x421a3a?_0x3fcd12[_0x3acccf(0x20f)][_0x3acccf(0x316)]():await J(_0x3fcd12['prompt'],process[_0x3acccf(0x193)]);if(!_0x421a3a&&!_0x418a64&&(console[_0x3acccf(0x344)](_0x3acccf(0x1c9)+_0x3fcd12[_0x3acccf(0x259)][_0x3acccf(0x192)]+_0x3acccf(0x19a)),process[_0x3acccf(0x1d4)](0x2)),!_0x40b4a1){await Ae(_0x3fcd12,_0x418a64,_0x421a3a,null,_0x432dc3,null);return;}let _0x1b35af=!0x1,_0x33a3a8=_0x33e063=>{_0x1b35af=!0x0,O(_0xed8b3(_0x33e063)),(_0x33e063['isError']||_0x33e063['structuredError'])&&(process['exitCode']=0x1);},_0x6b54c8=Date[_0x3acccf(0x34e)]();try{await Ae(_0x3fcd12,_0x418a64,!0x1,_0x33a3a8,_0x432dc3,_0x3d22aa?{'messages':_0x3d22aa,'first':_0x25f22a,'close':()=>{const _0x5b52ff=_0x3acccf;process['stdin'][_0x5b52ff(0x2fb)]();}}:null);}catch(_0x4a90ab){if(_0x1b35af)throw _0x4a90ab;process[_0x3acccf(0x24e)]['write']((_0x4a90ab instanceof Error?_0x4a90ab[_0x3acccf(0x150)]??_0x4a90ab['message']:String(_0x4a90ab))+'\x0a'),_0x33a3a8(new _0x3afe9c(_0x6b54c8)[_0x3acccf(0x105)]({'endedAtMs':Date['now'](),'usage':[],'error':_0x4a90ab}));}finally{_0x3d22aa&&(process['stdin'][_0x3acccf(0x2fb)](),_0x3d22aa[_0x3acccf(0x31c)](void 0x0));}}async function Ae(_0x105dcf,_0x29937b,_0x571470,_0x51b1cb,_0x4b48f5,_0x32a646){const _0x1a67b6=_0x4c3e6e;y={'lastType':null,'quiet':_0x105dcf['quiet'],'bin':_0x105dcf['product']['bin']};let _0x223458=new Set(),_0x4fde0f,_0x3449d4=_0x1134f6=>{const _0xe5cf2f=_0x3b04;(!_0x51b1cb||_0x1134f6[_0xe5cf2f(0x27c)]===_0xe5cf2f(0x201)||_0x1134f6[_0xe5cf2f(0x27c)]===_0xe5cf2f(0x1eb))&&(_0x4fde0f??Oe)(_0x1134f6);for(let _0xa587ad of _0x223458)_0xa587ad(_0x1134f6);},_0x580eb8=await X(_0x105dcf['product']['bin']),_0x3a7346=new _0x1d4ec2();_0x3a7346[_0x1a67b6(0x211)](_0x3449d4);let _0x1dd752=_0x1422b5(_0x105dcf[_0x1a67b6(0x2e1)],_0x580eb8,_0x105dcf[_0x1a67b6(0x1be)]);Z(_0x105dcf[_0x1a67b6(0x2e1)],_0x105dcf['backendUrl'],_0x1dd752);let _0x2d779a={'input':null},_0x1ba82c=_0x571470?se(()=>_0x2d779a[_0x1a67b6(0x2b2)],_0x31572b=>{process['stderr']['write'](_0x31572b);}):null,_0x4b8a39=_0x5e6725=>_0x1ba82c?{..._0x5e6725,'askUser':_0x1ba82c}:_0x5e6725,_0x2056ef=_0x4b8a39($e(_0x105dcf,_0x580eb8,_0x1dd752,{'oneTurn':!_0x571470})),_0x3a9ec2=!0x1,_0x45d77c=!0x1,_0x1e4609,_0x12d75f=()=>_0x1e4609??=_0x3a7346[_0x1a67b6(0x34c)](),_0x8711ef=()=>{const _0x5b488b=_0x1a67b6;_0x45d77c&&process[_0x5b488b(0x1d4)](0x82),_0x45d77c=!0x0,process[_0x5b488b(0x24e)][_0x5b488b(0x31a)](_0x5b488b(0x2eb)),_0x3a9ec2&&_0x3a7346[_0x5b488b(0x306)]()['catch'](_0x25e274=>console[_0x5b488b(0x344)](_0x25e274))['then'](_0x12d75f)[_0x5b488b(0x209)](()=>process[_0x5b488b(0x1d4)](0x82),_0x253adf=>{const _0x2ae4e6=_0x5b488b;console[_0x2ae4e6(0x344)](_0x253adf),process[_0x2ae4e6(0x1d4)](0x82);});};process['on'](_0x1a67b6(0x101),_0x8711ef);let _0x249b14=_0x105dcf[_0x1a67b6(0x34a)],_0xb64ed8=async _0x3672af=>{const _0x36b577=_0x1a67b6;let _0x10a816=_0x249b14;_0x249b14=[];let _0x54a627=()=>_0x3a7346['sendMessage'](_0x3672af,{'attachments':_0x10a816});try{return await _0x54a627();}catch(_0x4b48cd){if(_0x45d77c||!Xn(_0x4b48cd)||!process[_0x36b577(0x193)][_0x36b577(0x32f)]||_0x105dcf[_0x36b577(0x2e1)]===_0x36b577(0x12d)||!(_0x105dcf[_0x36b577(0x2e1)]||_0x580eb8['baseUrl']))throw _0x4b48cd;process['stderr'][_0x36b577(0x31a)](_0x36b577(0x24b));let _0x2b5b9d=_0x3a7346[_0x36b577(0x1b2)]()??_0x105dcf['sessionId'],_0x205809=await _0x74c8c9(_0x105dcf[_0x36b577(0x2e1)]?{'env':_0x105dcf[_0x36b577(0x2e1)],'tenant':q(_0x580eb8,_0x473ce1[_0x105dcf[_0x36b577(0x2e1)]]),'skipEnvCheck':!0x0}:{'baseUrl':_0x580eb8[_0x36b577(0x171)],'tenant':_0x580eb8[_0x36b577(0x1b4)],'skipEnvCheck':!0x0}),_0x426441={'text':'','failed':!0x1,'sessionId':_0x2b5b9d};return _0x45d77c||(_0x3a9ec2=!0x1,await _0x12d75f(),_0x45d77c)?_0x426441:(_0x3a7346=new _0x1d4ec2(),_0x1e4609=void 0x0,_0x3a7346[_0x36b577(0x211)](_0x3449d4),_0x580eb8=_0x205809,await _0x3a7346[_0x36b577(0x1e4)]({..._0x4b8a39($e(_0x105dcf,_0x580eb8,_0x1dd752,{'oneTurn':!_0x571470})),..._0x2b5b9d?{'sessionId':_0x2b5b9d}:{}}),_0x3a9ec2=!0x0,_0x45d77c?_0x426441:_0x54a627());}};try{if(await _0x3a7346[_0x1a67b6(0x1e4)](_0x2056ef),_0x3a9ec2=!0x0,_0x45d77c)return;if(_0x571470)await no({'prompt':_0x29937b,'sendMessage':_0xb64ed8,'onSigint':_0x8711ef,'setAnswerInput':_0x1506c3=>{const _0xa4833b=_0x1a67b6;_0x2d779a[_0xa4833b(0x2b2)]=_0x1506c3;},'registerEventPrinter':_0x364e7a=>(_0x4fde0f=_0x364e7a,()=>{_0x4fde0f=void 0x0;})});else{if(_0x51b1cb||_0x4b48f5){let _0xd48809=_0x105dcf[_0x1a67b6(0x254)]==='stream-json'?_0x2599fc=>O(_0x29f9bd(_0x2599fc)):()=>{},_0x50b37b=_0x32a646?ce({'input':_0x32a646,'getAgent':()=>_0x3a7346,'replay':_0x105dcf[_0x1a67b6(0x2ac)],'onEvent':_0x2abe68=>(_0x223458[_0x1a67b6(0x31f)](_0x2abe68),()=>{const _0x1f0164=_0x1a67b6;_0x223458[_0x1f0164(0x1a1)](_0x2abe68);}),'write':O,'isRunStopNotice':_0x18503d,'actionableErrorText':_0x17d8e9,'warn':_0x1ff570=>{const _0x3b7417=_0x1a67b6;process[_0x3b7417(0x24e)][_0x3b7417(0x31a)](_0x1ff570);}}):null,_0x3a48a4=await _0xb74849({'onEvent':_0x534257=>(_0x223458[_0x1a67b6(0x31f)](_0x534257),()=>{const _0x41d96c=_0x1a67b6;_0x223458[_0x41d96c(0x1a1)](_0x534257);}),'sendMessage':async _0x36df27=>{const _0xb6a2b7=_0x1a67b6;try{let _0x2ad1f2=await _0xb64ed8(_0x36df27);return _0x50b37b?await _0x50b37b[_0xb6a2b7(0x278)](_0x2ad1f2):_0x2ad1f2;}finally{_0x50b37b?.[_0xb6a2b7(0x124)]();}},'getSessionId':()=>_0x3a7346['getSessionId'](),'getTurnUsageHistory':_0x579bae=>_0x3a7346[_0x1a67b6(0x198)](_0x579bae),'complete':_0x298d8b=>_0x3a7346[_0x1a67b6(0x131)](_0x298d8b)},_0x29937b,void 0x0,_0xd48809,_0x4b48f5?{'outputSchema':_0x4b48f5}:void 0x0);_0x51b1cb?_0x51b1cb(_0x3a48a4):eo(_0x3a48a4);}else await _0xb64ed8(_0x29937b);}}catch(_0x155a73){if(!_0x45d77c)throw _0x155a73;}finally{try{await _0x12d75f();}finally{process[_0x1a67b6(0x170)](_0x1a67b6(0x101),_0x8711ef),_0x45d77c&&(process['exitCode']=0x82);}}}function eo(_0xb7439c){const _0x2b0adc=_0x4c3e6e;_0xb7439c[_0x2b0adc(0x20e)]?(console[_0x2b0adc(0x344)](_0x2b0adc(0x1df)+_0xb7439c[_0x2b0adc(0x20e)][_0x2b0adc(0x213)]),process['exitCode']=0x1):_0xb7439c[_0x2b0adc(0x1c5)]?(console['error']('No\x20structured\x20output:\x20the\x20turn\x20failed\x20('+_0xb7439c[_0x2b0adc(0x344)]+').'),process['exitCode']=0x1):process['stdout'][_0x2b0adc(0x31a)](JSON[_0x2b0adc(0x323)](_0xb7439c['structured'],null,0x2)+'\x0a');}function to(_0x4cefff,_0x10604f){const _0x1a37ab=_0x4c3e6e;let _0x2f481c=process['stdout'][_0x1a37ab(0x31a)]['bind'](process[_0x1a37ab(0x110)]),_0x2ae264=!0x1;return process[_0x1a37ab(0x110)][_0x1a37ab(0x31a)]=(..._0x2889d5)=>{if(!_0x2ae264)return _0x2f481c(..._0x2889d5);_0x2da078(_0x10604f,0x0),_0x3ef7f0(_0x10604f,0x0);let _0x1f8909=_0x2f481c(..._0x2889d5);return _0x4cefff['prompt'](!0x0),_0x1f8909;},{'show':()=>{const _0x355a34=_0x1a37ab;_0x2ae264=!0x0,_0x4cefff[_0x355a34(0x20f)]();},'hide':()=>{_0x2ae264=!0x1;},'erase':()=>{_0x2ae264&&(_0x2da078(_0x10604f,0x0),_0x3ef7f0(_0x10604f,0x0)),_0x2ae264=!0x1;},'restore':()=>{_0x2ae264=!0x1,process['stdout']['write']=_0x2f481c;}};}async function no({prompt:_0x4b8e4f,sendMessage:_0x92d2e6,onSigint:_0x1c66db,setAnswerInput:_0x2f93ea,registerEventPrinter:_0x46ea01}){const _0x765e1d=_0x4c3e6e;let _0x845d3d=_0x1c612e({'input':process['stdin'],'output':process[_0x765e1d(0x24e)],'terminal':!0x0,'prompt':_0x765e1d(0x2c3)}),_0x1e4f5e=to(_0x845d3d,process[_0x765e1d(0x24e)]),_0x386051=[],_0x17d89b,_0xdb91cd,_0x512784,_0x5a9f34=!0x1,_0x740af7=!0x1,_0x5cef43=!0x1,_0x16e6be=Promise[_0x765e1d(0x32c)](),_0xb485e2,_0x57a8c0=_0x46ea01(_0x38cb05=>{const _0x49bc62=_0x765e1d;_0x38cb05[_0x49bc62(0x27c)]===_0x49bc62(0x201)&&(_0x1e4f5e[_0x49bc62(0x313)](),_0x16e6be=new Promise(_0x39bf85=>{_0xb485e2=_0x39bf85;})),Oe(_0x38cb05),_0x38cb05['type']===_0x49bc62(0x11e)&&(_0xb485e2?.(),_0xb485e2=void 0x0,!_0x5cef43&&!_0x5a9f34&&_0x1e4f5e[_0x49bc62(0x279)]());}),_0xcfff3d=()=>{const _0x11071c=_0x765e1d;_0x740af7=!0x0,_0xb485e2?.(),_0x1c66db(),_0x845d3d[_0x11071c(0x34b)]();};_0x845d3d['on']('line',_0xa2a8bd=>{const _0x1a5ca5=_0x765e1d;_0x512784?_0x512784(_0xa2a8bd):_0x17d89b?_0x17d89b[_0x1a5ca5(0x191)](_0xa2a8bd):_0xdb91cd?_0xdb91cd(_0xa2a8bd):_0x386051[_0x1a5ca5(0x191)](_0xa2a8bd);}),_0x845d3d[_0x765e1d(0x180)](_0x765e1d(0x34b),()=>{_0x5a9f34=!0x0,_0x1e4f5e['hide'](),_0x17d89b&&!_0x740af7&&_0xcfff3d(),_0xdb91cd?.(null);});let _0x5bab8c=()=>_0x386051[_0x765e1d(0x162)]>0x0?Promise['resolve'](_0x386051['shift']()):_0x5a9f34?Promise[_0x765e1d(0x32c)](null):new Promise(_0x1af37d=>{_0xdb91cd=_0x210a69=>{_0xdb91cd=void 0x0,_0x1af37d(_0x210a69);};});_0x2f93ea({'readLine':(_0x141a4a,_0x571bef)=>new Promise((_0x53223d,_0x5865f1)=>{const _0x5de889=_0x765e1d;if(_0x5a9f34&&!_0x17d89b){_0x53223d(null);return;}_0x17d89b??=[];let _0x53fb23=_0x17d89b[_0x5de889(0xf3)]();if(_0x53fb23!==void 0x0){_0x53223d(_0x53fb23);return;}let _0x16b601=()=>{const _0x410132=_0x5de889;_0x512784=void 0x0,_0x571bef[_0x410132(0x163)]('abort',_0x180843),_0x1e4f5e[_0x410132(0x286)](),_0x845d3d[_0x410132(0x18e)](_0x410132(0x2c3));},_0x180843=()=>{const _0x4ef3a0=_0x5de889;_0x16b601(),_0x5865f1(new Error(_0x4ef3a0(0x2a9)));};_0x571bef[_0x5de889(0x352)](_0x5de889(0x334),_0x180843,{'once':!0x0}),!_0x5a9f34&&(_0x512784=_0x5e4a9c=>{_0x16b601(),_0x53223d(_0x5e4a9c);},_0x845d3d[_0x5de889(0x18e)](_0x141a4a),_0x1e4f5e[_0x5de889(0x279)]());}),'endQuestions':()=>{const _0x49e505=_0x765e1d;_0x17d89b&&_0x386051[_0x49e505(0x191)](..._0x17d89b),_0x17d89b=void 0x0;}}),_0x845d3d['on'](_0x765e1d(0x101),_0xcfff3d),process['stderr']['write'](_0x765e1d(0x1b7));let _0x1ad3f9=async _0x510ba0=>{_0x5cef43=!0x0;try{await _0x92d2e6(_0x510ba0);}finally{_0x5cef43=!0x1;}};try{if(_0x4b8e4f&&await _0x1ad3f9(_0x4b8e4f),_0x740af7)return;!_0x5a9f34&&!_0xb485e2&&_0x1e4f5e[_0x765e1d(0x279)]();for(let _0x42e701=await _0x5bab8c();_0x42e701!==null&&(_0x1e4f5e['hide'](),!_0x740af7);_0x42e701=await _0x5bab8c()){let _0x17bee3=_0x42e701[_0x765e1d(0x316)]();if(_0x17bee3===_0x765e1d(0x32a))break;_0x17bee3&&await _0x1ad3f9(_0x17bee3),!_0x5a9f34&&!_0xb485e2&&_0x1e4f5e[_0x765e1d(0x279)]();}for(;!_0x740af7&&_0xb485e2;)await _0x16e6be;}finally{_0x2f93ea(null),_0x57a8c0(),_0x1e4f5e[_0x765e1d(0x1c6)](),_0x845d3d['off'](_0x765e1d(0x101),_0xcfff3d),_0x845d3d[_0x765e1d(0x34b)]();}}async function Le(_0x3c2340,_0x1a2d56){const _0x247837=_0x4c3e6e;await oo(_0x3c2340,_0x1a2d56)[_0x247837(0x11e)];}function oo(_0x2b57dd,_0x562caf){const _0xfa99d8=_0x4c3e6e;let _0x133b4f=an(_0x562caf,_0x2b57dd);if(_0x133b4f['outputFormat']===_0xfa99d8(0x13a))return{'done':xe(_0x133b4f),'releaseStdout':()=>{}};let _0x1a781c=ln();return{'done':xe(_0x133b4f),'releaseStdout':_0x1a781c};}async function xe(_0x310142){const _0xbb6b59=_0x4c3e6e;if(_0x310142[_0xbb6b59(0x119)]){cn(_0x310142[_0xbb6b59(0x259)]);return;}if(_0x310142[_0xbb6b59(0x196)]){console[_0xbb6b59(0x238)](un());return;}if(_0x310142[_0xbb6b59(0x25c)]){await _0x310142['command']['run'](_0x310142);return;}if(_0x310142[_0xbb6b59(0x2ff)]==='login'){await Qn(_0x310142);return;}if(_0x310142[_0xbb6b59(0x2ff)]===_0xbb6b59(0x12e)){await Yn(_0x310142[_0xbb6b59(0x20f)],_0x310142[_0xbb6b59(0x259)][_0xbb6b59(0x192)]);return;}if(_0x310142['subcommand']==='logout'){await gn();return;}if(_0x310142[_0xbb6b59(0x2ff)]===_0xbb6b59(0x166)){await hn(_0x310142);return;}if(_0x310142[_0xbb6b59(0x2ff)]===_0xbb6b59(0x123)){await kn(_0x310142);return;}if(_0x310142['subcommand']===_0xbb6b59(0x21e)){await Tn(_0x310142);return;}if(_0x310142['subcommand']===_0xbb6b59(0x2b0)){await Sn(_0x310142);return;}if(_0x310142[_0xbb6b59(0x2ff)]===_0xbb6b59(0x148)){await Pn(_0x310142);return;}if(_0x310142['subcommand']===_0xbb6b59(0x22e)||_0x310142['subcommand']===_0xbb6b59(0x146)||_0x310142['subcommand']===_0xbb6b59(0x1dc)){await _n(_0x310142,_0x310142[_0xbb6b59(0x2ff)]);return;}if(_0x310142[_0xbb6b59(0x2ff)]===_0xbb6b59(0x131)){await Ln(_0x310142);return;}if(_0x310142['subcommand']===_0xbb6b59(0x2d7)){await Bn(_0x310142);return;}if(_0x310142[_0xbb6b59(0x2ff)]==='delegations'){await Jn(_0x310142);return;}if(_0x310142[_0xbb6b59(0x2ff)]==='org-users'){await Kn(_0x310142);return;}if(_0x310142[_0xbb6b59(0x2ff)]===_0xbb6b59(0x2aa)){await _0xcc764d(_0x310142['prompt'],{'cliName':_0x310142[_0xbb6b59(0x259)][_0xbb6b59(0x192)],'runnerUrl':_0x310142[_0xbb6b59(0x229)],'backendUrl':_0x310142['backendUrl'],'interopPath':_0x310142[_0xbb6b59(0x2c8)],'workerId':_0x310142[_0xbb6b59(0x2ea)]});return;}if(_0x310142['cleanup']){await bn();return;}await Zn(_0x310142);}function Me(_0x41dcb8){const _0x5d328f=_0x4c3e6e;let _0x406582=_0x41dcb8;console['error'](_0x406582?.['stack']||_0x406582?.[_0x5d328f(0x213)]||_0x41dcb8),process['exit'](0x1);}var sn,rn,ge,O,he,pn,we,Dn,ke,ve,y,Oe,te=L(()=>{const _0x393600=_0x4c3e6e;re(),K(),de(),(sn=['login',_0x393600(0x12e),'models',_0x393600(0x2aa),_0x393600(0x2f3),'whoami',_0x393600(0x21e),_0x393600(0x2b0),_0x393600(0x148),_0x393600(0x22e),_0x393600(0x146),_0x393600(0x1dc),_0x393600(0x131),_0x393600(0x2d7),_0x393600(0x1ea),'org-users'],rn=['',_0x393600(0x123),_0x393600(0x166),'check',_0x393600(0x2b0),'usage',_0x393600(0x22e),_0x393600(0x146),'verify',_0x393600(0x131),_0x393600(0x2d7),_0x393600(0x1ea),_0x393600(0x1f7)],ge=[_0x393600(0x1c4),'medium',_0x393600(0x118),'xhigh','max']),O=_0xaca5be=>{const _0x134ed5=_0x393600;process['stdout'][_0x134ed5(0x31a)](_0xaca5be);},he=0x27,pn=0x7d0,we=['list',_0x393600(0x279),_0x393600(0x174),_0x393600(0x1a1),_0x393600(0x306),_0x393600(0x29d)],Dn=['','activity',_0x393600(0x1cc)],(ke=[_0x393600(0x294),_0x393600(0x1ce),_0x393600(0x279),_0x393600(0x19e),'claim','complete',_0x393600(0x18b),_0x393600(0x289),'cancel','delete'],ve={'list':_0x393600(0x28b),'pending':_0x393600(0x136),'show':_0x393600(0x109),'create':'delegations\x20create\x20--session\x20<id>\x20[--to\x20<email|name>]\x20[--summary\x20<text>]\x20\x22<task>\x22|-','claim':_0x393600(0x261),'complete':'delegations\x20complete\x20<delegation-id>\x20\x22<answer>\x22|-','accept':_0x393600(0x2a3),'dismiss':_0x393600(0x32e),'cancel':'delegations\x20cancel\x20<delegation-id>','delete':_0x393600(0x1b0)}),(y={'lastType':null,'quiet':!0x1,'bin':''},Oe=_0x4025cd=>{const _0x4a8ffb=_0x393600;switch(_0x4025cd[_0x4a8ffb(0x27c)]){case'session_start':_0x4025cd[_0x4a8ffb(0x1f8)]&&_0x4025cd[_0x4a8ffb(0x1f8)]!==y['sessionId']&&(process[_0x4a8ffb(0x24e)]['write'](_0x4a8ffb(0x341)+_0x4025cd[_0x4a8ffb(0x1f8)]+'\x20(resume\x20with\x20--session\x20'+_0x4025cd[_0x4a8ffb(0x1f8)]+')\x0a'),y[_0x4a8ffb(0x1f8)]=_0x4025cd[_0x4a8ffb(0x1f8)]);break;case _0x4a8ffb(0x1eb):_0x4025cd[_0x4a8ffb(0x1c2)]&&_0x4025cd[_0x4a8ffb(0x1c2)]!==y[_0x4a8ffb(0x1c2)]&&(y[_0x4a8ffb(0xfd)]!==null&&process[_0x4a8ffb(0x24e)][_0x4a8ffb(0x31a)]('\x0a'),process[_0x4a8ffb(0x24e)][_0x4a8ffb(0x31a)]('Turn:\x20'+_0x4025cd[_0x4a8ffb(0x1c2)]+_0x4a8ffb(0x1f2)+y[_0x4a8ffb(0x192)]+_0x4a8ffb(0x2d3)+_0x4025cd[_0x4a8ffb(0x1f8)]+_0x4a8ffb(0x251)+_0x4025cd[_0x4a8ffb(0x1c2)]+')\x0a'),y[_0x4a8ffb(0x1c2)]=_0x4025cd[_0x4a8ffb(0x1c2)],y[_0x4a8ffb(0xfd)]=_0x4a8ffb(0x1eb));break;case _0x4a8ffb(0x2d2):_0x4025cd[_0x4a8ffb(0x30f)]&&!y[_0x4a8ffb(0x2be)]&&(y[_0x4a8ffb(0xfd)]!==_0x4a8ffb(0x2d2)&&process['stderr']['write'](_0x4a8ffb(0x2b6)),process['stderr']['write'](_0x4025cd[_0x4a8ffb(0x30f)]),y['lastType']=_0x4a8ffb(0x2d2));break;case _0x4a8ffb(0x187):y[_0x4a8ffb(0xfd)]!==null&&process[_0x4a8ffb(0x24e)][_0x4a8ffb(0x31a)]('\x0a'),process[_0x4a8ffb(0x24e)][_0x4a8ffb(0x31a)](_0x4a8ffb(0x1d2)+(_0x4025cd[_0x4a8ffb(0x2fa)]??'tool')+'\x0a'),y[_0x4a8ffb(0xfd)]=_0x4a8ffb(0x187);break;case _0x4a8ffb(0x213):_0x4025cd[_0x4a8ffb(0x30f)]&&(y[_0x4a8ffb(0xfd)]!==_0x4a8ffb(0x213)&&y[_0x4a8ffb(0xfd)]!==null&&process[_0x4a8ffb(0x110)][_0x4a8ffb(0x31a)]('\x0a'),process[_0x4a8ffb(0x110)]['write'](_0x4025cd[_0x4a8ffb(0x30f)]),y[_0x4a8ffb(0xfd)]='message');break;case _0x4a8ffb(0x344):y[_0x4a8ffb(0xfd)]!==null&&process[_0x4a8ffb(0x24e)][_0x4a8ffb(0x31a)]('\x0a'),process[_0x4a8ffb(0x24e)]['write']('✗\x20'+(_0x4025cd[_0x4a8ffb(0x344)]??'error')+'\x0a'),y['lastType']=_0x4a8ffb(0x344);break;case _0x4a8ffb(0x11e):(y[_0x4a8ffb(0xfd)]===_0x4a8ffb(0x213)||y[_0x4a8ffb(0xfd)]===_0x4a8ffb(0x2d2))&&process[_0x4a8ffb(0x110)]['write']('\x0a'),process[_0x4a8ffb(0x24e)][_0x4a8ffb(0x31a)](_0x4a8ffb(0x1ed)),y[_0x4a8ffb(0xfd)]='done';break;}});});import{exportLivingDocument as _0x51a4f3,saveMapVersion as _0x3c9a94,shareMap as _0x118712}from'@uipath/delegate-sdk';async function Be(_0x1c8502,_0x40e4a6){const _0x315db5=_0x4c3e6e;try{return await _0x40e4a6();}catch(_0x2622cb){let _0xfbd08e=_0x2622cb?.['paths'],_0x183a5b=Array[_0x315db5(0x130)](_0xfbd08e)&&_0xfbd08e[_0x315db5(0x162)]>0x0?'\x20('+_0xfbd08e['join'](',\x20')+')':'';console[_0x315db5(0x344)](_0x315db5(0x311)+_0x1c8502+':\x20'+(_0x2622cb instanceof Error?_0x2622cb[_0x315db5(0x213)]:String(_0x2622cb))+_0x183a5b),process[_0x315db5(0x1d4)](0x1);}}var He,je,Fe,Je,Ge=L(()=>{const _0xc78e2b=_0x4c3e6e;te(),(He={'name':_0xc78e2b(0x262),'machineOutput':!0x0,'valueFlags':{},async 'run'(_0x3b25d4){const _0x4d6e7b=_0xc78e2b;let [_0x6b580d,_0x38e805,..._0xeff9af]=_0x3b25d4[_0x4d6e7b(0x161)];(!_0x6b580d||_0xeff9af[_0x4d6e7b(0x162)]>0x0||!_0x3b25d4[_0x4d6e7b(0x1b9)])&&(console[_0x4d6e7b(0x344)]('Usage:\x20'+_0x3b25d4[_0x4d6e7b(0x259)]['bin']+'\x20export\x20TYPE\x20[DOCUMENT_ID]\x20--project\x20ID\x20[--working-dir\x20PATH]'),process['exit'](0x2));let _0xe75758;try{_0xe75758=await _0x51a4f3({'projectId':_0x3b25d4[_0x4d6e7b(0x1b9)],'type':_0x6b580d,..._0x38e805?{'documentId':_0x38e805}:{},..._0x3b25d4['workingDirectory']?{'workingDirectory':_0x3b25d4[_0x4d6e7b(0x233)]}:{}});}catch(_0x424c8b){console['error']('export:\x20'+(_0x424c8b instanceof Error?_0x424c8b[_0x4d6e7b(0x213)]:String(_0x424c8b))),process[_0x4d6e7b(0x1d4)](0x1);}m(_0x3b25d4,_0xe75758,_0x3d3f45=>{const _0x1fb22d=_0x4d6e7b;process[_0x1fb22d(0x110)][_0x1fb22d(0x31a)](_0x3d3f45[_0x1fb22d(0x213)]+'\x0a');});}},je=_0x144ac7=>'Usage:\x20'+_0x144ac7+_0xc78e2b(0x26b),Fe=_0x2bb032=>_0xc78e2b(0x17e)+_0x2bb032+'\x20maps\x20save-version\x20MESSAGE\x20--project\x20ID\x20[--working-dir\x20PATH]',Je={'name':_0xc78e2b(0x1e9),'machineOutput':!0x0,'valueFlags':{'--remote':_0xc78e2b(0x153),'--map-name':'a\x20Map\x20name'},async 'run'(_0x58b23c){const _0x22279f=_0xc78e2b;let _0x237214=_0x58b23c['product'][_0x22279f(0x192)],[_0x39eb80='',..._0x3d6fa9]=_0x58b23c[_0x22279f(0x161)],_0x46c1c2=_0x58b23c[_0x22279f(0x2f6)]['--remote'],_0x65f8a1=_0x58b23c['commandFlags'][_0x22279f(0x2fc)];if((_0x46c1c2!==void 0x0||_0x65f8a1!==void 0x0)&&_0x39eb80!==_0x22279f(0x10a)&&(console['error']('--remote\x20and\x20--map-name\x20apply\x20to\x20`'+_0x237214+_0x22279f(0x14b)),process[_0x22279f(0x1d4)](0x2)),_0x39eb80===_0x22279f(0x10a)){(_0x3d6fa9[_0x22279f(0x162)]>0x0||!_0x58b23c[_0x22279f(0x1b9)]||!_0x46c1c2||!_0x65f8a1)&&(console[_0x22279f(0x344)](je(_0x237214)),process['exit'](0x2));let _0x3e1f7f=await Be('share',()=>_0x118712({'projectId':_0x58b23c[_0x22279f(0x1b9)],'remote':_0x46c1c2,'mapName':_0x65f8a1,..._0x58b23c[_0x22279f(0x233)]?{'workingDirectory':_0x58b23c['workingDirectory']}:{}}));m(_0x58b23c,_0x3e1f7f,_0x1f0e38=>{const _0x54394a=_0x22279f;process[_0x54394a(0x110)]['write'](_0x54394a(0x1c0)+_0x58b23c[_0x54394a(0x1b9)]+_0x54394a(0x116)+_0x1f0e38['remote']+_0x54394a(0x23c)+_0x1f0e38['mapName']+_0x54394a(0x2ee));});return;}if(_0x39eb80==='save-version'){let _0x527329=_0x3d6fa9[_0x22279f(0x31d)]('\x20')[_0x22279f(0x316)]();(!_0x527329||!_0x58b23c['projectId'])&&(console[_0x22279f(0x344)](Fe(_0x237214)),process[_0x22279f(0x1d4)](0x2));let _0x2d0233=await Be('save-version',()=>_0x3c9a94({'projectId':_0x58b23c[_0x22279f(0x1b9)],'message':_0x527329,..._0x58b23c[_0x22279f(0x233)]?{'workingDirectory':_0x58b23c[_0x22279f(0x233)]}:{}}));m(_0x58b23c,_0x2d0233,_0x1dc67f=>{const _0x50cea3=_0x22279f;process[_0x50cea3(0x110)]['write']('Saved\x20version\x20'+_0x1dc67f['version']+_0x50cea3(0x1bd)+_0x58b23c[_0x50cea3(0x1b9)]+':\x20'+_0x1dc67f[_0x50cea3(0x213)]+'\x0a');});return;}console['error'](je(_0x237214)+'\x0a'+Fe(_0x237214)),process[_0x22279f(0x1d4)](0x2);}});});import{BUSINESS_ANALYSIS_PRELOADED_SKILLS as _0x2cba5a}from'@uipath/delegate-sdk';function _0x3b04(_0x16037f,_0x500712){_0x16037f=_0x16037f-0xf1;const _0x4dc09b=_0x4dc0();let _0x3b04dc=_0x4dc09b[_0x16037f];return _0x3b04dc;}var lo,We,co,uo,po,Ke,Qe=L(()=>{const _0x327d52=_0x4c3e6e;Ge(),(lo=_0x327d52(0x1bb),We=_0x2cba5a,co=_0x327d52(0x1f4),uo=_0x327d52(0x15a),po=_0x327d52(0x2c2)+We[_0x327d52(0x31d)](',\x20')+_0x327d52(0x13f),Ke={'bin':_0x327d52(0x104),'title':_0x327d52(0x234),'vertical':lo,'computerUse':_0x327d52(0x1e8),'preloadSkills':We,'commands':[He,Je],'help':{'commands':co,'flags':uo,'about':po}});}),mo=Ye(()=>{const _0x414680=_0x4c3e6e;te(),Qe(),Le(Ke,process['argv']['slice'](0x2))[_0x414680(0xf6)](Me);});export default mo();
2
+ const _0x1727a5=_0x36a3;(function(_0x1c8ff0,_0x42a5bb){const _0x3d54d4=_0x36a3,_0xae964c=_0x1c8ff0();while(!![]){try{const _0x175e18=-parseInt(_0x3d54d4(0x2a0))/0x1*(parseInt(_0x3d54d4(0x22c))/0x2)+parseInt(_0x3d54d4(0x1dd))/0x3+-parseInt(_0x3d54d4(0x338))/0x4*(-parseInt(_0x3d54d4(0x22e))/0x5)+-parseInt(_0x3d54d4(0x19d))/0x6+parseInt(_0x3d54d4(0x354))/0x7+parseInt(_0x3d54d4(0x259))/0x8*(-parseInt(_0x3d54d4(0x112))/0x9)+-parseInt(_0x3d54d4(0x1fa))/0xa;if(_0x175e18===_0x42a5bb)break;else _0xae964c['push'](_0xae964c['shift']());}catch(_0x52b26d){_0xae964c['push'](_0xae964c['shift']());}}}(_0xe413,0x3e5fc));const __dirname=import.meta.dirname;var L=(_0x22a838,_0x3412fe)=>()=>(_0x22a838&&(_0x3412fe=_0x22a838(_0x22a838=0x0)),_0x3412fe),Ye=(_0x23588c,_0x35dad3)=>()=>(_0x35dad3||_0x23588c((_0x35dad3={'exports':{}})[_0x1727a5(0x1e1)],_0x35dad3),_0x35dad3['exports']);import{isOnStepGrid as _0x517278}from'@uipath/delegate-sdk';function A(_0x349312){const _0x332ef8=_0x1727a5;return _0x349312[_0x332ef8(0xfd)](/\u001b\[[0-?]*[ -/]*[@-~]|\u001b\][^\u0007\u001b]*(\u0007|\u001b\\)?|\u001b./g,'')[_0x332ef8(0xfd)](/[\u0000-\u0008\u000b-\u001f\u007f-\u009f]/g,'');}function ne(_0x7f3779){return A(_0x7f3779['label']??(_0x7f3779['kind']===M?'Something\x20else':_0x7f3779['id']));}function Ve(_0x35cf13,_0x2b20a9,_0x1686d6){const _0x4b8c06=_0x1727a5;let _0x23bd4c=[''+(_0x1686d6>0x1?'['+_0x2b20a9+'/'+_0x1686d6+']\x20':'')+A(_0x35cf13[_0x4b8c06(0x245)])+(_0x35cf13['optional']?_0x4b8c06(0x20b):''),A(_0x35cf13['question'])];return _0x35cf13[_0x4b8c06(0x176)]===_0x4b8c06(0x1c3)&&_0x35cf13[_0x4b8c06(0x16a)][_0x4b8c06(0x15f)]((_0x3016cd,_0x101714)=>{const _0x2a1b0e=_0x4b8c06;let _0x364e31=_0x3016cd[_0x2a1b0e(0x17c)]===M?_0x2a1b0e(0x1df):'',_0x233bce=_0x3016cd[_0x2a1b0e(0x2aa)]?'\x20-\x20'+A(_0x3016cd['description']):'';_0x23bd4c['push']('\x20\x20'+(_0x101714+0x1)+'.\x20'+ne(_0x3016cd)+_0x364e31+_0x233bce);}),_0x23bd4c['join']('\x0a');}function oe(_0x12ee6b,_0x472cf5){const _0x2315aa=_0x1727a5;let _0x2ab5e3=_0x12ee6b[_0x2315aa(0x23a)](/[\s,]+/)['filter'](Boolean);if(_0x2ab5e3[_0x2315aa(0x153)]===0x0)return null;let _0xa041a4=_0x2ab5e3[_0x2315aa(0x233)](_0x596e57=>/^\d+$/[_0x2315aa(0x315)](_0x596e57)?Number(_0x596e57):NaN);return _0xa041a4[_0x2315aa(0x20e)](_0x22ab54=>!Number[_0x2315aa(0x126)](_0x22ab54)||_0x22ab54<0x1||_0x22ab54>_0x472cf5)?null:[...new Set(_0xa041a4)][_0x2315aa(0x233)](_0x5b95c9=>_0x5b95c9-0x1);}function Xe(_0x5c7b51){const _0x11ef83=_0x1727a5;return typeof _0x5c7b51==_0x11ef83(0x139)&&_0x5c7b51!==null&&_0x11ef83(0x14b)in _0x5c7b51;}async function j(_0x5a269b,_0xb4b6b3,_0x1985f2,_0x5df284){const _0x59cd19=_0x1727a5;for(;;){let _0x5cb754=(await _0x5a269b(_0xb4b6b3))[_0x59cd19(0x312)]();if(_0x5cb754==='')return;let _0x14010e=_0x5df284(_0x5cb754);if(!Xe(_0x14010e))return _0x14010e;_0x1985f2(_0x14010e[_0x59cd19(0x14b)]+'\x0a');}}async function Ze(_0x4363f8,_0x507f68,_0x5081b6){const _0x16c4a8=_0x1727a5;if(_0x4363f8[_0x16c4a8(0x16a)]['length']===0x0||_0x4363f8[_0x16c4a8(0x16a)]['every'](_0x291702=>_0x291702[_0x16c4a8(0x17c)]===M)){let _0x5d9800=(await _0x507f68(_0x16c4a8(0x1ca)))[_0x16c4a8(0x312)]();return _0x5d9800===''?void 0x0:{'text':_0x5d9800};}let _0x218e89=_0x4363f8[_0x16c4a8(0x16a)]['findIndex'](_0x350e77=>_0x350e77['kind']===M),_0x145d0d=_0x4363f8[_0x16c4a8(0x14f)]?_0x16c4a8(0x32d):'Number'+(_0x218e89>=0x0?'\x20or\x20your\x20own\x20answer':'')+_0x16c4a8(0x2f6),_0x4129d3=await j(_0x507f68,_0x145d0d,_0x5081b6,_0x462686=>{const _0x494002=_0x16c4a8;let _0x353be2=oe(_0x462686,_0x4363f8[_0x494002(0x16a)][_0x494002(0x153)]);return _0x353be2&&(_0x4363f8[_0x494002(0x14f)]||_0x353be2[_0x494002(0x153)]===0x1)?_0x353be2:!_0x4363f8[_0x494002(0x14f)]&&_0x218e89>=0x0?{'typed':_0x462686}:{'refused':_0x4363f8[_0x494002(0x14f)]?_0x494002(0x135)+_0x4363f8[_0x494002(0x16a)][_0x494002(0x153)]+'.':_0x494002(0x246)+_0x4363f8[_0x494002(0x16a)][_0x494002(0x153)]+'.'};});if(_0x4129d3===void 0x0)return;if(!Array[_0x16c4a8(0x1d0)](_0x4129d3))return{'text':_0x4129d3[_0x16c4a8(0x20f)]};let _0x5ca52b=_0x4129d3['map'](_0x7f4f0c=>_0x4363f8[_0x16c4a8(0x16a)][_0x7f4f0c]['id']),_0xaa79fd=_0x5ca52b[_0x16c4a8(0x33d)](M)?await j(_0x507f68,ne(_0x4363f8['options'][_0x218e89])+':\x20',_0x5081b6,_0x16b716=>_0x16b716):void 0x0;if(!(_0x5ca52b[_0x16c4a8(0x33d)](M)&&_0xaa79fd===void 0x0))return _0x4363f8[_0x16c4a8(0x14f)]?{'optionIds':_0x5ca52b,..._0xaa79fd!==void 0x0?{'text':_0xaa79fd}:{}}:_0xaa79fd!==void 0x0?{'text':_0xaa79fd}:{'optionId':_0x5ca52b[0x0]};}async function et(_0x3022c8,_0x3f0a96,_0x5b872e){const _0x458ab7=_0x1727a5;let _0x5ebe53={};for(let _0x409e96 of _0x3022c8[_0x458ab7(0x1c0)]){let _0x4849de=_0x409e96['default']??_0x409e96[_0x458ab7(0x26a)],_0x593387=_0x409e96['step']??0x1,_0xcb1d16=_0x409e96[_0x458ab7(0x2f8)]?'\x20'+A(_0x409e96[_0x458ab7(0x2f8)]):'',_0xb0bd7d=_0x458ab7(0x13a)+_0x409e96[_0x458ab7(0x26a)]+'\x20to\x20'+_0x409e96[_0x458ab7(0x2ee)]+(_0x593387!==0x1?_0x458ab7(0x2fe)+_0x593387:''),_0x4f9b14=await j(_0x3f0a96,A(_0x409e96[_0x458ab7(0x236)])+'\x20['+_0x409e96[_0x458ab7(0x26a)]+'-'+_0x409e96[_0x458ab7(0x2ee)]+_0xcb1d16+_0x458ab7(0x33c)+_0x4849de+_0x458ab7(0x1ee),_0x5b872e,_0x5d28b2=>{const _0x27b78c=_0x458ab7;let _0x33cc19=Number(_0x5d28b2);return Number[_0x27b78c(0x1f7)](_0x33cc19)&&_0x33cc19>=_0x409e96[_0x27b78c(0x26a)]&&_0x33cc19<=_0x409e96[_0x27b78c(0x2ee)]&&_0x517278(_0x33cc19,_0x409e96[_0x27b78c(0x26a)],_0x593387)?_0x33cc19:{'refused':_0x27b78c(0x180)+_0xb0bd7d+'.'};});_0x5ebe53[_0x409e96['id']]=_0x4f9b14??_0x4849de;}return{'values':_0x5ebe53};}async function tt(_0x191279,_0x4aa294,_0x5793f1){const _0x246dae=_0x1727a5;_0x5793f1(_0x191279[_0x246dae(0x221)][_0x246dae(0x233)]((_0x4537d1,_0x2e8c43)=>'\x20\x20'+(_0x2e8c43+0x1)+'.\x20'+A(_0x4537d1[_0x246dae(0x236)]))[_0x246dae(0x10a)]('\x0a')+'\x0a');let _0x4114f9={};for(let _0x40a566 of _0x191279[_0x246dae(0x11c)]){let _0xa4ffb6=await j(_0x4aa294,A(_0x40a566[_0x246dae(0x236)])+_0x246dae(0xef),_0x5793f1,_0x17a016=>{const _0x15c36c=_0x246dae;let _0x5840a4=oe(_0x17a016,_0x191279[_0x15c36c(0x221)][_0x15c36c(0x153)]);return _0x5840a4&&_0x5840a4[_0x15c36c(0x153)]===0x1?_0x5840a4[0x0]:{'refused':_0x15c36c(0x246)+_0x191279[_0x15c36c(0x221)][_0x15c36c(0x153)]+'.'};});if(_0xa4ffb6===void 0x0)continue;let _0x282262=_0x191279[_0x246dae(0x221)][_0xa4ffb6],_0x5abe52={};for(let _0x170805 of _0x282262[_0x246dae(0x215)]??[]){let _0x382f09='\x20\x20'+A(_0x170805[_0x246dae(0x236)])+(_0x170805[_0x246dae(0x1b8)]?_0x246dae(0x20b):'')+':\x20',_0x4aa142=await j(_0x4aa294,_0x382f09,_0x5793f1,_0x191ac5=>_0x191ac5);for(;_0x4aa142===void 0x0&&!_0x170805[_0x246dae(0x1b8)];)_0x5793f1(A(_0x170805[_0x246dae(0x236)])+_0x246dae(0x260)),_0x4aa142=await j(_0x4aa294,_0x382f09,_0x5793f1,_0x30281e=>_0x30281e);_0x4aa142!==void 0x0&&(_0x5abe52[_0x170805['id']]=_0x4aa142);}_0x4114f9[_0x40a566['id']]={'bucket':_0x282262['id'],...Object[_0x246dae(0x316)](_0x5abe52)[_0x246dae(0x153)]>0x0?{'subFields':_0x5abe52}:{}};}return Object[_0x246dae(0x316)](_0x4114f9)['length']>0x0?{'assignments':_0x4114f9}:void 0x0;}async function nt(_0xcd0642,_0x3d6e74,_0x453589){const _0x31b123=_0x1727a5;if(_0xcd0642[_0x31b123(0x176)]==='text')return Ze(_0xcd0642,_0x3d6e74,_0x453589);if(_0xcd0642[_0x31b123(0x176)]===_0x31b123(0x178))return et(_0xcd0642,_0x3d6e74,_0x453589);if(_0xcd0642[_0x31b123(0x176)]===_0x31b123(0x355))return tt(_0xcd0642,_0x3d6e74,_0x453589);let _0x4ae1ec=(await _0x3d6e74(_0x31b123(0x11a)))[_0x31b123(0x312)]();return _0x4ae1ec===''?void 0x0:{'text':_0x4ae1ec};}function se(_0x305286,_0x31f659){return async _0x2087c3=>{const _0x35c1e3=_0x36a3;let _0x520be9=_0x305286();if(!_0x520be9)throw new Error('There\x20is\x20no\x20terminal\x20input\x20to\x20answer\x20from.');let _0x2ab46e=async _0x5bc2ad=>{const _0x40ef45=_0x36a3;if(_0x2087c3['signal'][_0x40ef45(0x265)])throw new Error(_0x40ef45(0x339));let _0x51474=await _0x520be9[_0x40ef45(0xe9)](_0x5bc2ad,_0x2087c3[_0x40ef45(0x326)]);if(_0x51474===null)throw new Error(_0x40ef45(0x1b7));return _0x51474;};try{_0x31f659('\x0a'+(_0x2087c3[_0x35c1e3(0xe6)]?A(_0x2087c3[_0x35c1e3(0xe6)])+'\x0a':''));let _0x48be7f={};for(let [_0x31edc5,_0x5348ac]of _0x2087c3[_0x35c1e3(0x2b5)][_0x35c1e3(0x168)]()){_0x31f659('\x0a'+Ve(_0x5348ac,_0x31edc5+0x1,_0x2087c3[_0x35c1e3(0x2b5)][_0x35c1e3(0x153)])+'\x0a');let _0x2b537e=await nt(_0x5348ac,_0x2ab46e,_0x31f659);_0x2b537e!==void 0x0&&(_0x48be7f[_0x5348ac['id']]=_0x2b537e);}return{'answers':_0x48be7f};}finally{_0x520be9[_0x35c1e3(0x2ff)]();}};}var M,re=L(()=>{const _0x641c5b=_0x1727a5;M=_0x641c5b(0x163);});import{createInterface as _0x5bacdf}from'node:readline';function ie(_0x416788){const _0x461559=_0x1727a5;return B[_0x461559(0x33d)](_0x416788);}function st(_0x166182){const _0x5b412a=_0x1727a5;if(typeof _0x166182=='string')return _0x166182;if(!Array[_0x5b412a(0x1d0)](_0x166182))return;let _0x268d0c=[];for(let _0xeda0df of _0x166182){if(typeof _0xeda0df!=_0x5b412a(0x139)||_0xeda0df===null)return;let {type:_0x21e1c7,text:_0x2c668d}=_0xeda0df;if(_0x21e1c7!==_0x5b412a(0x1c3)||typeof _0x2c668d!=_0x5b412a(0x302))return;_0x268d0c[_0x5b412a(0x199)](_0x2c668d);}return _0x268d0c[_0x5b412a(0x10a)]('\x0a');}function rt(_0x35b325){const _0x34d721=_0x1727a5;if(_0x35b325[_0x34d721(0x312)]()==='')return null;let _0xf12d53;try{_0xf12d53=JSON['parse'](_0x35b325);}catch{throw new N(_0x34d721(0x1ad));}if(typeof _0xf12d53!='object'||_0xf12d53===null)throw new N(_0x34d721(0x1f9));let {type:_0x2b4f51,message:_0x3061ae,uuid:_0x1f5e45}=_0xf12d53;if(_0x2b4f51!=='user')throw new N(_0x34d721(0x2c3)+JSON[_0x34d721(0x268)](_0x2b4f51)+_0x34d721(0x1ae));let _0x23d1e8=st(_0x3061ae?.['content']);if(_0x23d1e8===void 0x0)throw new N(_0x34d721(0x114));if(_0x23d1e8[_0x34d721(0x312)]()==='')throw new N(_0x34d721(0xe7));return{'text':_0x23d1e8,'uuid':typeof _0x1f5e45==_0x34d721(0x302)?_0x1f5e45:void 0x0};}function ae(_0x255e8a,_0x3b8e88){const _0x488fa2=_0x1727a5;return JSON['stringify']({'type':_0x488fa2(0x2d8),'message':{'role':_0x488fa2(0x2d8),'content':_0x255e8a[_0x488fa2(0x1c3)]},'session_id':_0x3b8e88,..._0x255e8a['uuid']===void 0x0?{}:{'uuid':_0x255e8a['uuid']},'isReplay':!0x0})+'\x0a';}async function*le(_0xcc6487,_0x5d79e2){const _0x88e2b=_0x1727a5;let _0xd80bd7=_0x5bacdf({'input':_0xcc6487,'crlfDelay':0x1/0x0});try{for await(let _0x3caa25 of _0xd80bd7){let _0xc85e0d;try{_0xc85e0d=rt(_0x3caa25);}catch(_0x2605f0){if(!(_0x2605f0 instanceof N))throw _0x2605f0;_0x5d79e2(_0x2605f0);continue;}_0xc85e0d&&(yield _0xc85e0d);}}finally{_0xd80bd7[_0x88e2b(0x288)]();}}var B,N,K=L(()=>{const _0x3d0854=_0x1727a5;B=[_0x3d0854(0x1c3),_0x3d0854(0x2a7)],N=class extends Error{};});function ce(_0x1c9146){const _0x492893=_0x1727a5;let {input:_0x5b896d,getAgent:_0x53e910,replay:_0x4d02d3,onEvent:_0x293477,write:_0x2e79fd,warn:_0x33ce8c,isRunStopNotice:_0x3a79a3,actionableErrorText:_0xec3e6d}=_0x1c9146,_0x465647=0x0,_0x1c17ce=0x0,_0x13f7e1=Promise[_0x492893(0x17e)](),_0xe2bdbb=!0x1,_0x11b165=()=>{},_0x4e9ce0=new Promise(_0x2d8ac9=>{_0x11b165=_0x2d8ac9;}),_0x3aa2de=[],_0x139b31=_0x293477(_0x2e9755=>{const _0x5265c6=_0x492893;_0x2e9755[_0x5265c6(0x176)]===_0x5265c6(0x255)&&(_0x11b165(),_0x3aa2de[_0x5265c6(0x157)]()?.());}),_0xf2b48a=_0x11767a=>{const _0x4a628a=_0x492893;_0x4d02d3&&_0x2e79fd(ae(_0x11767a,_0x53e910()[_0x4a628a(0x251)]()));},_0x3da0f0=(async()=>{const _0x568380=_0x492893;await _0x4e9ce0;for await(let _0x15cf17 of _0x5b896d[_0x568380(0x31f)]){if(_0xe2bdbb)return;_0x465647===0x0&&(_0x1c17ce=_0x53e910()['getSessionMessages']()[_0x568380(0x153)]),_0x465647++;let _0x13b890=new Promise(_0x462272=>{const _0x3596ee=_0x568380;_0x3aa2de[_0x3596ee(0x199)](()=>{_0xf2b48a(_0x15cf17),_0x462272();});}),_0x5a40ee=()=>{_0x465647--,_0x3aa2de['pop']();},_0x2c7858=_0x53e910()['steer'](_0x15cf17[_0x568380(0x1c3)]);_0x13f7e1=_0x2c7858['catch'](()=>{});try{await _0x2c7858?await Promise[_0x568380(0x343)]([_0x13b890,_0x53e910()[_0x568380(0x103)]()]):(_0x5a40ee(),_0x33ce8c(_0x568380(0x194)));}catch(_0x21e43b){_0x5a40ee(),_0x33ce8c(_0x568380(0x228)+(_0x21e43b instanceof Error?_0x21e43b['message']:String(_0x21e43b))+'\x0a');}}})()[_0x492893(0x34e)](_0x4651f8=>{const _0x2ac1c9=_0x492893;_0x33ce8c(_0x2ac1c9(0x16d)+(_0x4651f8 instanceof Error?_0x4651f8[_0x2ac1c9(0x2a2)]:String(_0x4651f8))+'\x0a');});return{'settle':async _0x15f6e0=>{const _0x1f0e81=_0x492893;if(await _0x13f7e1,_0x465647===0x0)return _0x15f6e0;await _0x53e910()[_0x1f0e81(0x103)]();for(let _0x9cb588 of _0x3aa2de)_0x9cb588();_0x3aa2de=[];let _0x41d36e=_0x53e910()[_0x1f0e81(0x149)]()[_0x1f0e81(0x165)](_0x1c17ce)[_0x1f0e81(0x1d9)](_0x176774=>_0x176774['widget']===_0x1f0e81(0x334)||_0x3a79a3(_0x176774)||_0x176774[_0x1f0e81(0x176)]==='ai'&&_0x176774[_0x1f0e81(0x1de)]!==_0x1f0e81(0x187)&&_0x176774[_0x1f0e81(0x1de)]!==_0x1f0e81(0x294)&&!!_0x176774['content']);if(!_0x41d36e)return{..._0x15f6e0,'failed':!0x0,'text':_0x1f0e81(0x282)};let _0x5a6480=_0x41d36e[_0x1f0e81(0x1de)]==='actionable_error';return typeof _0x41d36e['content']!='string'?{..._0x15f6e0,'failed':_0x5a6480}:{..._0x15f6e0,'failed':_0x5a6480,'text':_0x5a6480?_0xec3e6d(_0x41d36e[_0x1f0e81(0x2ed)]):_0x41d36e['content']};},'stop':()=>{const _0x1efebb=_0x492893;_0xe2bdbb=!0x0,_0x139b31(),_0x5b896d[_0x1efebb(0x288)]();}};}var de=L(()=>{K();});import _0x4559f8 from'fs';import _0x436140 from'path';import{clearLine as _0x5d6056,createInterface as _0x26bdb8,cursorTo as _0x18c6cc}from'node:readline';import{DelegateAgent as _0x1f2250,cancelTurn as _0x3a4f0c,InteropProcess as _0x40fe20,complete as _0x5d3c18,DEFAULT_MODEL as _0x1d9766,createBackendClient as _0x2a775e,evaluate as _0x53f1f7,isCompletionRequestError as _0x321fec,isEvaluationRequestError as _0x3c1953,isTranscriptionError as _0x1aff61,rerank as _0x1cdc35,transcribe as _0x308598,verify as _0x25979e,acceptDelegation as _0xdac512,cancelDelegation as _0x54acf2,claimDelegation as _0x3f4cd9,completeDelegation as _0x43f2e7,createDelegation as _0x2adf8d,deleteDelegation as _0xb25e62,dismissDelegation as _0x303208,getSessionDelegations as _0x4ae442,isDelegationError as _0x449151,listDelegations as _0x3a0758,listOrgUsers as _0x2573ee,previewDelegation as _0x2ffb29,TurnResultCollector as _0x55760d,agentEventToJsonLine as _0x97dad,describeBaseUrlRejection as _0x36d6d7,getActivitySummary as _0x448067,getAuthFilePath as _0x54c8e3,getByoWarnings as _0x4883cc,getDailyBreakdown as _0x3599b1,getLicensingSummary as _0x3134d2,getMonthlySpending as _0x18c3ce,isOutputFormat as _0x352151,isCloudBaseUrl as _0xd8e6fe,isSafeProjectFolderSegment as _0x292746,listModels as _0xd5aeb,listSessions as _0x2eee28,getSession as _0xbeb984,renameSession as _0x26600f,deleteSession as _0x4a3685,deleteSessionTaskLog as _0xd2a878,forkSession as _0x2a0d1c,isBackendRequestError as _0x2c7d94,MAX_SESSION_PAGE_SIZE as _0x3dae6c,listTenants as _0x44c6ef,loadAndRefreshAuth as _0x6e506d,loadAndRefreshSdkLogin as _0x20a8c0,parsePlatformBaseUrl as _0x392ddf,resolveBackendUrl as _0x69f4c3,runHealthCheck as _0x109fc8,runHostCommand as _0x29c471,runLoginFlow as _0x177d5d,runTurnForResult as _0x4b321d,saveAuthData as _0x3f46f4,switchTenant as _0x1d95a8,toJsonLine as _0x2234f7,ENV_TO_CLOUD as _0x572fa2,OUTPUT_FORMATS as _0x325a5f,isRunStopNotice as _0x582d9e,extractActionableErrorText as _0x1c9c3a}from'@uipath/delegate-sdk';function k(_0x511913,_0x1a14cd,_0x108716,_0x207daa){const _0x45f954=_0x1727a5;let _0x51cce9=_0x511913[_0x1a14cd];return(!_0x51cce9||_0x51cce9[_0x45f954(0x153)]>0x1&&_0x51cce9[_0x45f954(0x1d6)]('-'))&&(console['error'](_0x108716+_0x45f954(0x286)+_0x207daa+'.'),process[_0x45f954(0x204)](0x2)),_0x51cce9;}function Q(_0x391d7e,_0x243023,_0x3132ad,_0x584efb){const _0xd1712f=_0x1727a5;let _0x54327b=k(_0x391d7e,_0x243023,_0x3132ad,_0xd1712f(0x305)),_0x2ec49d=Number(_0x54327b);return(!/^\d+$/[_0xd1712f(0x315)](_0x54327b)||_0x2ec49d<0x1||!Number[_0xd1712f(0x2e3)](_0x2ec49d)||_0x584efb!==void 0x0&&_0x2ec49d>_0x584efb)&&(console['error'](_0x3132ad+_0xd1712f(0x258)+(_0x584efb===void 0x0?_0xd1712f(0x121):_0xd1712f(0x1c2)+_0x584efb)+_0xd1712f(0x30f)+_0x54327b+'.'),process[_0xd1712f(0x204)](0x2)),_0x2ec49d;}function an(_0x266999,_0x53b6c2){const _0x1301a3=_0x1727a5;let _0xad448a={'product':_0x53b6c2,'subcommand':'','prompt':'','print':!0x1,'keepAlive':!0x1,'cleanup':!0x1,'headless':!0x1,'commandFlags':{},'noComputerUse':_0x53b6c2[_0x1301a3(0x28d)]===_0x1301a3(0x26d),'computerUse':!0x1,'noConnections':!0x1,'noSecurity':!0x1,'noMemory':!0x1,'taskAutomation':!0x1,'quiet':!0x1,'verbose':!0x1,'outputFormat':_0x1301a3(0x1c3),'inputFormat':'text','replayUserMessages':!0x1,'preloadSkills':[..._0x53b6c2['preloadSkills']??[]],'attachments':[],'skipEnvCheck':!0x1,'includeSubAgents':!0x1,'operands':[],'help':!0x1,'version':!0x1},_0x526daa=_0x53b6c2[_0x1301a3(0x145)]?.[_0x1301a3(0x1f5)](_0x20df5c=>_0x20df5c['name']===_0x266999[0x0]);_0x526daa?(_0xad448a[_0x1301a3(0x1b9)]=_0x526daa,_0xad448a['subcommand']=_0x526daa[_0x1301a3(0x1b4)],_0x266999=_0x266999[_0x1301a3(0x165)](0x1)):sn[_0x1301a3(0x33d)](_0x266999[0x0])&&(_0xad448a[_0x1301a3(0x2bc)]=_0x266999[0x0],_0x266999=_0x266999['slice'](0x1));let _0x2fd77a=[];for(let _0x4c75ea=0x0;_0x4c75ea<_0x266999[_0x1301a3(0x153)];_0x4c75ea++){let _0x408e72=_0x266999[_0x4c75ea];switch(_0x408e72){case'--print':case'-p':_0xad448a[_0x1301a3(0x248)]=!0x0;break;case _0x1301a3(0x32b):_0xad448a['keepAlive']=!0x0;break;case _0x1301a3(0x25f):_0xad448a[_0x1301a3(0x2e1)]=!0x0;break;case _0x1301a3(0xfa):_0xad448a[_0x1301a3(0x1cc)]=!0x0;break;case'--no-computer-use':_0xad448a['noComputerUse']=!0x0;break;case'--no-connections':_0xad448a[_0x1301a3(0x23b)]=!0x0;break;case'--no-security':_0xad448a[_0x1301a3(0x2e2)]=!0x0;break;case'--no-memory':_0xad448a['noMemory']=!0x0;break;case'--task-automation':_0xad448a[_0x1301a3(0x279)]=!0x0;break;case _0x1301a3(0x2ab):case'-q':_0xad448a[_0x1301a3(0x272)]=!0x0;break;case _0x1301a3(0x2d2):_0xad448a[_0x1301a3(0x2b3)]=!0x0;break;case _0x1301a3(0x2af):_0xad448a['backendUrl']=_0x266999[++_0x4c75ea];break;case _0x1301a3(0x229):_0xad448a[_0x1301a3(0x2f5)]=_0x266999[++_0x4c75ea];break;case _0x1301a3(0x119):_0xad448a[_0x1301a3(0x28e)]=_0x266999[++_0x4c75ea];break;case _0x1301a3(0x1ef):_0xad448a[_0x1301a3(0x182)]=_0x266999[++_0x4c75ea];break;case _0x1301a3(0x24c):_0xad448a[_0x1301a3(0x31b)]=_0x266999[++_0x4c75ea];break;case _0x1301a3(0x171):_0xad448a[_0x1301a3(0x344)]['push'](k(_0x266999,++_0x4c75ea,_0x408e72,_0x1301a3(0x1a9)));break;case _0x1301a3(0x212):{let _0x1be8a8=k(_0x266999,++_0x4c75ea,_0x408e72,_0x1301a3(0x27d));_0x292746(_0x1be8a8)||(console[_0x1301a3(0xe8)]('Invalid\x20--project:\x20\x22'+_0x1be8a8+_0x1301a3(0x1fe)),process['exit'](0x2)),_0xad448a[_0x1301a3(0x10e)]=_0x1be8a8;break;}case _0x1301a3(0x155):_0xad448a[_0x1301a3(0x1cf)]=k(_0x266999,++_0x4c75ea,_0x408e72,'a\x20vertical\x20id');break;case _0x1301a3(0x1aa):{let _0x4df5a9=k(_0x266999,++_0x4c75ea,_0x408e72,_0x1301a3(0xe2)+_0x325a5f[_0x1301a3(0x10a)]('\x20|\x20')+')');_0x352151(_0x4df5a9)||(console[_0x1301a3(0xe8)](_0x1301a3(0x159)+_0x4df5a9+'.\x20Use\x20'+_0x325a5f[_0x1301a3(0x10a)]('\x20|\x20')+'.'),process[_0x1301a3(0x204)](0x2)),_0xad448a[_0x1301a3(0x329)]=_0x4df5a9;break;}case _0x1301a3(0x2ea):{let _0x4e905d=k(_0x266999,++_0x4c75ea,_0x408e72,_0x1301a3(0xe2)+B[_0x1301a3(0x10a)]('\x20|\x20')+')');ie(_0x4e905d)||(console[_0x1301a3(0xe8)](_0x1301a3(0x247)+_0x4e905d+_0x1301a3(0x14a)+B[_0x1301a3(0x10a)](_0x1301a3(0x2db))+'.'),process[_0x1301a3(0x204)](0x2)),_0xad448a['inputFormat']=_0x4e905d;break;}case _0x1301a3(0x100):_0xad448a[_0x1301a3(0x30a)]=!0x0;break;case'--session':_0xad448a['sessionId']=k(_0x266999,++_0x4c75ea,_0x408e72,'a\x20session\x20id');break;case _0x1301a3(0x1f4):_0xad448a[_0x1301a3(0x196)]=Q(_0x266999,++_0x4c75ea,_0x408e72);break;case _0x1301a3(0x1b0):_0xad448a[_0x1301a3(0x1a6)]=Q(_0x266999,++_0x4c75ea,_0x408e72,_0x3dae6c);break;case'--include-subagents':_0xad448a[_0x1301a3(0x1f1)]=!0x0;break;case _0x1301a3(0x2bb):_0xad448a[_0x1301a3(0x1a3)]=k(_0x266999,++_0x4c75ea,_0x408e72,_0x1301a3(0x133));break;case _0x1301a3(0x29f):{let _0x1f1d1f=_0x436140['resolve'](process[_0x1301a3(0x34f)](),k(_0x266999,++_0x4c75ea,_0x408e72,_0x1301a3(0x1fb)));_0x4559f8[_0x1301a3(0x266)](_0x1f1d1f)||(console[_0x1301a3(0xe8)]('--attach:\x20no\x20such\x20file\x20or\x20folder:\x20'+_0x1f1d1f),process[_0x1301a3(0x204)](0x2)),_0xad448a['attachments'][_0x1301a3(0x199)](_0x1f1d1f);break;}case _0x1301a3(0x18e):_0xad448a[_0x1301a3(0x1d5)]=k(_0x266999,++_0x4c75ea,_0x408e72,_0x1301a3(0x1fd));break;case _0x1301a3(0x177):_0xad448a[_0x1301a3(0x107)]=k(_0x266999,++_0x4c75ea,_0x408e72,_0x1301a3(0x167));break;case _0x1301a3(0x16c):_0xad448a[_0x1301a3(0x217)]=k(_0x266999,++_0x4c75ea,_0x408e72,_0x1301a3(0x2f3));break;case'--days':_0xad448a[_0x1301a3(0x150)]=Q(_0x266999,++_0x4c75ea,_0x408e72,0x16d);break;case'--working-dir':_0xad448a['workingDirectory']=_0x436140[_0x1301a3(0x17e)](process['cwd'](),k(_0x266999,++_0x4c75ea,_0x408e72,_0x1301a3(0x20d)));break;case _0x1301a3(0x173):_0xad448a[_0x1301a3(0x218)]=_0x436140[_0x1301a3(0x17e)](process['cwd'](),k(_0x266999,++_0x4c75ea,_0x408e72,_0x1301a3(0x20d)));break;case _0x1301a3(0x30d):{let _0x13629a=k(_0x266999,++_0x4c75ea,_0x408e72,_0x1301a3(0x1d1));ge[_0x1301a3(0x33d)](_0x13629a)||(console[_0x1301a3(0xe8)](_0x1301a3(0x19b)+_0x13629a+_0x1301a3(0x14a)+ge[_0x1301a3(0x10a)](_0x1301a3(0x2db))+'.'),process[_0x1301a3(0x204)](0x2)),_0xad448a[_0x1301a3(0x2fd)]=_0x13629a;break;}case _0x1301a3(0xee):{let _0x567022=_0x266999[++_0x4c75ea];(!_0x567022||_0x567022[_0x1301a3(0x1d6)]('--'))&&(console[_0x1301a3(0xe8)](_0x1301a3(0x102)),process[_0x1301a3(0x204)](0x2)),_0xad448a['tenant']=_0x567022;break;}case _0x1301a3(0x151):{let _0x343c55=_0x266999[++_0x4c75ea];['alpha','staging',_0x1301a3(0x277),_0x1301a3(0x203)][_0x1301a3(0x33d)](_0x343c55)||(console['error'](_0x1301a3(0x21d)+_0x343c55+_0x1301a3(0x1e2)),process[_0x1301a3(0x204)](0x2)),_0xad448a[_0x1301a3(0x15e)]=_0x343c55;break;}case _0x1301a3(0x240):case _0x1301a3(0x11b):{let _0x18d7f8=k(_0x266999,++_0x4c75ea,_0x408e72,_0x1301a3(0x2f1)),_0x5ba54e=_0x392ddf(_0x18d7f8);if(_0x5ba54e['ok']===!0x1){console['error'](_0x36d6d7(_0x18d7f8,_0x5ba54e[_0x1301a3(0x2a5)])),process['exit'](0x2);break;}_0xad448a['url']=_0x5ba54e[_0x1301a3(0x2d3)];break;}case _0x1301a3(0x1b2):_0xad448a[_0x1301a3(0x1bc)]=!0x0;break;case'-h':case _0x1301a3(0xdf):_0xad448a[_0x1301a3(0xf9)]=!0x0;break;case'-v':case _0x1301a3(0x336):_0xad448a[_0x1301a3(0x29a)]=!0x0;break;default:if(_0x526daa&&Object['hasOwn'](_0x526daa[_0x1301a3(0x120)],_0x408e72)){_0xad448a[_0x1301a3(0x2c8)][_0x408e72]=k(_0x266999,++_0x4c75ea,_0x408e72,_0x526daa[_0x1301a3(0x120)][_0x408e72]);break;}if(_0x408e72===_0x1301a3(0x16f)&&_0x53b6c2[_0x1301a3(0x28d)]===_0x1301a3(0x23f)){_0xad448a[_0x1301a3(0x28d)]=!0x0;break;}_0x408e72[_0x1301a3(0x1d6)]('--')&&(console[_0x1301a3(0xe8)](_0x1301a3(0x349)+_0x408e72),process[_0x1301a3(0x204)](0x2)),_0x2fd77a[_0x1301a3(0x199)](_0x408e72);}}_0xad448a[_0x1301a3(0x19a)]!==void 0x0&&_0xad448a[_0x1301a3(0x2bc)]!=='login'&&(console[_0x1301a3(0xe8)](_0x1301a3(0x22b)+_0xad448a['product'][_0x1301a3(0x2da)]+_0x1301a3(0x351)+_0xad448a[_0x1301a3(0x231)][_0x1301a3(0x2da)]+_0x1301a3(0x267)),process[_0x1301a3(0x204)](0x2)),_0xad448a[_0x1301a3(0x1c8)]!==void 0x0&&_0xad448a[_0x1301a3(0x15e)]!==void 0x0&&(console['error']('Pass\x20either\x20--env\x20(a\x20named\x20cloud)\x20or\x20--url\x20(any\x20other\x20deployment),\x20not\x20both.'),process['exit'](0x2)),_0xad448a['url']!==void 0x0&&_0xad448a['subcommand']!=='login'&&(console[_0x1301a3(0xe8)](_0x1301a3(0xeb)+_0xad448a[_0x1301a3(0x231)]['bin']+_0x1301a3(0x269)),process[_0x1301a3(0x204)](0x2)),_0xad448a[_0x1301a3(0x150)]!==void 0x0&&_0xad448a[_0x1301a3(0x2bc)]!==_0x1301a3(0x2be)&&(console[_0x1301a3(0xe8)](_0x1301a3(0x116)+_0xad448a[_0x1301a3(0x231)]['bin']+'\x20usage\x20activity|daily`\x20only.'),process[_0x1301a3(0x204)](0x2)),_0xad448a[_0x1301a3(0x1a3)]!==void 0x0&&(_0xad448a[_0x1301a3(0x2bc)]!==_0x1301a3(0x356)&&_0xad448a[_0x1301a3(0x2bc)]!==''||_0xad448a[_0x1301a3(0x2e1)])&&(console['error'](_0x1301a3(0x2ad)+_0xad448a[_0x1301a3(0x231)]['bin']+'\x20complete`\x20only.'),process[_0x1301a3(0x204)](0x2)),_0xad448a[_0x1301a3(0x15c)][_0x1301a3(0x153)]>0x0&&(_0xad448a[_0x1301a3(0x2bc)]!==''||_0xad448a[_0x1301a3(0x2e1)])&&(console[_0x1301a3(0xe8)](_0x1301a3(0xe1)),process[_0x1301a3(0x204)](0x2)),_0xad448a[_0x1301a3(0x279)]&&(_0xad448a[_0x1301a3(0x2bc)]!==''||_0xad448a[_0x1301a3(0x2e1)])&&(console['error'](_0x1301a3(0x29e)),process[_0x1301a3(0x204)](0x2)),_0xad448a[_0x1301a3(0x28d)]&&(_0xad448a[_0x1301a3(0x1cc)]||_0xad448a[_0x1301a3(0x2dc)])&&(console['error'](_0x1301a3(0x1bf)),process['exit'](0x2)),_0x53b6c2[_0x1301a3(0x28d)]===_0x1301a3(0x23f)&&!_0xad448a[_0x1301a3(0x28d)]&&(_0xad448a[_0x1301a3(0x2dc)]=!0x0),_0xad448a[_0x1301a3(0x279)]&&(_0xad448a[_0x1301a3(0x1cc)]||_0xad448a[_0x1301a3(0x2dc)])&&(console[_0x1301a3(0xe8)](_0x1301a3(0x10c)+(_0x53b6c2[_0x1301a3(0x28d)]===_0x1301a3(0x26d)?_0x53b6c2[_0x1301a3(0x2da)]+_0x1301a3(0x26c):_0x53b6c2[_0x1301a3(0x28d)]==='opt-in'?_0x1301a3(0x24f):_0x1301a3(0x314))),process['exit'](0x2)),_0x53b6c2[_0x1301a3(0x1cf)]!==void 0x0&&(_0xad448a['vertical']!==void 0x0&&_0xad448a[_0x1301a3(0x1cf)][_0x1301a3(0x312)]()!==_0x53b6c2['vertical']&&(console['error'](_0x53b6c2['bin']+'\x20runs\x20the\x20'+_0x53b6c2[_0x1301a3(0x1cf)]+_0x1301a3(0x333)+_0xad448a[_0x1301a3(0x1cf)]+'.\x20Drop\x20--vertical.'),process['exit'](0x2)),_0xad448a[_0x1301a3(0x1cf)]=_0x53b6c2['vertical']),_0xad448a[_0x1301a3(0x1bc)]&&_0xad448a[_0x1301a3(0x2bc)]!=='login'&&(console['error'](_0x1301a3(0x1bd)+_0xad448a[_0x1301a3(0x231)][_0x1301a3(0x2da)]+_0x1301a3(0x317)),process[_0x1301a3(0x204)](0x2));let _0x4335bd=[...rn,...(_0x53b6c2[_0x1301a3(0x145)]??[])[_0x1301a3(0x27f)](_0x53adc4=>_0x53adc4[_0x1301a3(0x226)])['map'](_0x36129c=>_0x36129c[_0x1301a3(0x1b4)])];return _0xad448a[_0x1301a3(0x329)]!==_0x1301a3(0x1c3)&&!_0x4335bd[_0x1301a3(0x33d)](_0xad448a['subcommand'])&&(console[_0x1301a3(0xe8)](_0x1301a3(0x1a2)+_0xad448a[_0x1301a3(0x329)]+_0x1301a3(0x2ae)+_0x4335bd[_0x1301a3(0x27f)](Boolean)[_0x1301a3(0x10a)](',\x20')+'.'),process[_0x1301a3(0x204)](0x2)),(_0xad448a[_0x1301a3(0x25e)]!==_0x1301a3(0x1c3)||_0xad448a[_0x1301a3(0x30a)])&&_0xad448a[_0x1301a3(0x2bc)]!==''&&(console[_0x1301a3(0xe8)](_0x1301a3(0x201)),process[_0x1301a3(0x204)](0x2)),_0xad448a[_0x1301a3(0x30a)]&&_0xad448a[_0x1301a3(0x25e)]!==_0x1301a3(0x2a7)&&(console['error']('--replay-user-messages\x20needs\x20--input-format\x20stream-json.'),process['exit'](0x2)),_0xad448a[_0x1301a3(0x25e)]===_0x1301a3(0x2a7)&&_0xad448a[_0x1301a3(0x329)]!=='stream-json'&&(console['error'](_0x1301a3(0x1e9)),process[_0x1301a3(0x204)](0x2)),(_0xad448a[_0x1301a3(0x196)]!==void 0x0||_0xad448a[_0x1301a3(0x1a6)]!==void 0x0||_0xad448a[_0x1301a3(0x1f1)])&&_0xad448a[_0x1301a3(0x2bc)]!=='sessions'&&(console[_0x1301a3(0xe8)](_0x1301a3(0x33f)+_0xad448a[_0x1301a3(0x231)][_0x1301a3(0x2da)]+_0x1301a3(0x290)),process[_0x1301a3(0x204)](0x2)),(_0xad448a['delegateTo']!==void 0x0||_0xad448a[_0x1301a3(0x217)]!==void 0x0)&&_0xad448a['subcommand']!=='delegations'&&(console[_0x1301a3(0xe8)]('--to\x20and\x20--summary\x20apply\x20to\x20`'+_0xad448a[_0x1301a3(0x231)][_0x1301a3(0x2da)]+_0x1301a3(0x1a5)),process['exit'](0x2)),_0xad448a[_0x1301a3(0x1d5)]!==void 0x0&&_0xad448a[_0x1301a3(0x2bc)]!=='sessions'&&(console[_0x1301a3(0xe8)]('--turn\x20applies\x20to\x20`'+_0xad448a['product'][_0x1301a3(0x2da)]+'\x20sessions\x20cancel`\x20only.'),process['exit'](0x2)),_0xad448a[_0x1301a3(0x344)]=[...new Set(_0xad448a[_0x1301a3(0x344)])],_0xad448a[_0x1301a3(0x26f)]=_0x2fd77a,_0xad448a['prompt']=_0x2fd77a[_0x1301a3(0x10a)]('\x20'),_0xad448a[_0x1301a3(0x25e)]===_0x1301a3(0x2a7)&&_0xad448a[_0x1301a3(0x257)]!==''&&(console[_0x1301a3(0xe8)]('--input-format\x20stream-json\x20reads\x20the\x20prompt\x20from\x20stdin:\x20pass\x20no\x20prompt\x20argument.'),process['exit'](0x2)),_0xad448a;}function ln(){const _0x2c21ce=_0x1727a5;let _0x5afdf9=process[_0x2c21ce(0x2d0)][_0x2c21ce(0x25c)],_0x4e3809=_0x5afdf9['bind'](process[_0x2c21ce(0x2d0)]),_0x10738f=O;return O=_0xba57d5=>{_0x4e3809(_0xba57d5);},process[_0x2c21ce(0x2d0)][_0x2c21ce(0x25c)]=(..._0x19ca53)=>process[_0x2c21ce(0x21e)][_0x2c21ce(0x25c)](..._0x19ca53),()=>{const _0x485a04=_0x2c21ce;process[_0x485a04(0x2d0)][_0x485a04(0x25c)]=_0x5afdf9,O=_0x10738f;};}function m(_0x2b6fae,_0x410001,_0x50ce76){const _0x469c3b=_0x1727a5;if(_0x2b6fae[_0x469c3b(0x329)]==='text'){_0x50ce76(_0x410001);return;}O(_0x2234f7(_0x410001));}function cn(_0x3502a1){const _0x575399=_0x1727a5;let _0x2d4e30=_0x3502a1['bin'],_0x50d0be=_0x3502a1['help']?.[_0x575399(0x145)]?_0x3502a1['help'][_0x575399(0x145)]+'\x0a':'',_0x18f192=_0x3502a1[_0x575399(0xf9)]?.[_0x575399(0x18d)]?_0x3502a1['help'][_0x575399(0x18d)]+'\x0a':'',_0x27d3a5=_0x3502a1[_0x575399(0xf9)]?.['about']?'\x0a\x0a'+_0x3502a1[_0x575399(0xf9)][_0x575399(0x21c)]:'',_0x3ce22c=('\x0a'+_0x2d4e30+_0x575399(0x1d8)+_0x3502a1['title']+_0x575399(0x244)+_0x2d4e30+_0x575399(0x2f2)+_0x2d4e30+_0x575399(0x1a8)+_0x2d4e30+_0x575399(0x2b1)+_0x2d4e30+'\x20-p\x20\x22<prompt>\x22\x20--output-format\x20json|stream-json\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20One\x20turn\x20with\x20JSON-only\x20stdout;\x20exit\x201\x20on\x20error\x0a\x20\x20'+_0x2d4e30+_0x575399(0x30b)+_0x2d4e30+_0x575399(0x17b)+_0x2d4e30+_0x575399(0x2d7)+_0x2d4e30+_0x575399(0xea)+_0x2d4e30+'\x20logout\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Remove\x20the\x20saved\x20CLI\x20login\x0a\x20\x20'+_0x2d4e30+_0x575399(0x2c7)+_0x2d4e30+_0x575399(0x280)+_0x2d4e30+_0x575399(0x123)+_0x2d4e30+_0x575399(0x254)+_0x2d4e30+_0x575399(0x29c)+_0x2d4e30+_0x575399(0x23e)+_0x2d4e30+_0x575399(0x141)+_0x2d4e30+_0x575399(0x310)+_0x2d4e30+_0x575399(0x1a4)+_0x2d4e30+_0x575399(0x21f)+_0x2d4e30+_0x575399(0x2b4)+_0x2d4e30+'\x20complete\x20--json-schema\x20FILE\x20[--model\x20ID]\x20[--session\x20ID]\x20\x22<prompt>\x22|-\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20One\x20structured\x20completion,\x20no\x20agent\x20turn:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20print\x20the\x20JSON\x20object\x20matching\x20the\x20schema\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20in\x20FILE\x20(--output-format\x20json\x20prints\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{structured,\x20usage});\x20--session\x20adds\x20that\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20session\x27s\x20history\x20as\x20context.\x20Exits\x201\x20when\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20output\x20fails\x20the\x20schema\x20(422)\x20or\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20backend\x20rejects\x20the\x20request\x0a\x20\x20'+_0x2d4e30+'\x20transcribe\x20FILE|-\x20\x20\x20\x20\x20\x20\x20Speech-to-text:\x20print\x20the\x20text\x20of\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20audio\x20in\x20FILE,\x20or\x20on\x20stdin\x20with\x20-.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20mp3,\x20mp4,\x20mpeg,\x20mpga,\x20m4a,\x20wav\x20or\x20webm,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20up\x20to\x2014\x20MB.\x20Exits\x202\x20when\x20the\x20audio\x20is\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20refused\x20locally,\x201\x20when\x20the\x20backend\x20rejects\x20it\x0a'+_0x50d0be+'\x20\x20'+_0x2d4e30+_0x575399(0x2c5)+_0x2d4e30+'\x20delegations\x20create\x20--session\x20ID\x20[--to\x20WHO]\x20[--summary\x20TEXT]\x20\x22<task>\x22|-\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Hand\x20a\x20task\x20from\x20session\x20ID\x20to\x20a\x20colleague\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(WHO:\x20an\x20email,\x20or\x20a\x20name\x20matching\x20one\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20person);\x20without\x20--to,\x20print\x20a\x20link\x20anyone\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20in\x20the\x20organization\x20can\x20claim\x0a\x20\x20'+_0x2d4e30+_0x575399(0x137)+_0x2d4e30+_0x575399(0x1c9)+_0x2d4e30+_0x575399(0xf4)+_0x2d4e30+'\x20delegations\x20show|claim\x20ID|LINK\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Read\x20a\x20delegation\x20assigned\x20to\x20you\x20(or\x20a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20delegate://delegation/…\x20link),\x20or\x20claim\x20it:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20prints\x20the\x20session\x20to\x20work\x20it\x20in\x0a\x20\x20'+_0x2d4e30+_0x575399(0x214)+_0x2d4e30+_0x575399(0x28b)+_0x2d4e30+'\x20host\x20install\x20[flags]\x20\x20\x20\x20Auto-start\x20the\x20host\x20at\x20login\x20(macOS\x20LaunchAgent\x20/\x20Windows\x20Scheduled\x20Task)\x0a\x20\x20'+_0x2d4e30+'\x20host\x20uninstall\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Remove\x20auto-start\x0a\x20\x20'+_0x2d4e30+_0x575399(0x2d4)+_0x2d4e30+_0x575399(0x2b2)+_0x2d4e30+'\x20login).\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20localhost\x20→\x20http://localhost:5002.\x20No\x20saved\x20login\x20and\x20no\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--env/--backend/BACKEND_URL\x20is\x20an\x20error\x20—\x20never\x20a\x20guess.\x0a\x20\x20--url\x20BASE\x20\x20\x20\x20\x20\x20\x20\x20(login)\x20Base\x20URL\x20of\x20a\x20deployment\x20that\x20is\x20not\x20a\x20named\x20cloud\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20—\x20Automation\x20Suite,\x20Dedicated,\x20Public\x20Sector.\x20Accepts\x20a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20tenant\x20path\x20or\x20a\x20trailing\x20/identity_\x20and\x20reduces\x20it\x20to\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20origin.\x20Mutually\x20exclusive\x20with\x20--env;\x20also\x20settable\x20via\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20UIPATH_BASE_URL.\x20Alias:\x20--authority.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Automation\x20Suite\x20needs\x2026.10+\x20with\x20the\x20Delegate\x20service;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20the\x20deployment\x20rejects\x20the\x20built-in\x20client,\x20register\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20your\x20own\x20—\x20see\x20UIPATH_CLIENT_ID\x20in\x20the\x20README\x0a\x20\x20--skip-env-check\x20\x20(login)\x20Do\x20not\x20check\x20the\x20deployment\x20before\x20signing\x20in.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Escape\x20hatch\x20for\x20a\x20deployment\x20that\x20hides\x20its\x20OIDC\x20discovery\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20document\x20or\x20serves\x20Identity\x20from\x20another\x20origin;\x20it\x20also\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20gives\x20up\x20the\x20diagnosis\x20when\x20something\x20is\x20really\x20wrong\x0a\x20\x20--backend\x20URL\x20\x20\x20\x20\x20Full\x20backend\x20URL\x20—\x20escape\x20hatch\x20overrides\x20--env\x0a\x20\x20--tenant\x20NAME\x20\x20\x20\x20\x20(login)\x20Tenant\x20to\x20sign\x20into,\x20by\x20name\x20(case-insensitive).\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default:\x20the\x20saved\x20login\x27s\x20tenant\x20on\x20that\x20cloud,\x20else\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20org\x27s\x20first\x20tenant.\x20Later:\x20'+_0x2d4e30+_0x575399(0x335)+_0x2d4e30+_0x575399(0x28c)+_0x18f192+_0x575399(0xf6)+_0x27d3a5+'\x0a')['trim']();console[_0x575399(0xff)](dn(_0x3ce22c));}function _0xe413(){const _0x118574=['.\x20Use\x20`','removeEventListener','url','\x20delegations\x20accept|dismiss|cancel|delete\x20ID\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Take\x20an\x20answer\x20into\x20its\x20session,\x20drop\x20it,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20withdraw\x20a\x20live\x20delegation,\x20or\x20delete\x20it\x0a\x20\x20','Your\x20answer\x20(Enter\x20to\x20skip):\x20','padStart','headless','\x20delegations\x20complete\x20','\x20of\x20session\x20','vertical','isArray','an\x20effort\x20tier','settle','verdict','Unknown\x20sessions\x20action:\x20','turnId','startsWith','rename','\x20—\x20','findLast','\x22.\x0a','Cancel\x20requested\x20for\x20turn\x20','\x20cap','870912RGbCBx','widget','\x20(type\x20your\x20own)','title','exports','.\x20Use\x20alpha\x20|\x20staging\x20|\x20production\x20|\x20localhost.','response','tokenExpiresAt','Enter\x20sends\x20a\x20message.\x20/exit\x20or\x20EOF\x20exits;\x20Ctrl+C\x20stops\x20and\x20exits.\x0a','whoami','complete\x20needs\x20--json-schema\x20<file>:\x20','model_version','--input-format\x20stream-json\x20needs\x20--output-format\x20stream-json:\x20the\x20steering\x20messages\x20are\x20answered\x20on\x20stdout.','maps','delegationId','thinking','\x20(cancel\x20with:\x20','):\x20','--interop','Tokens:\x20','includeSubAgents','unknown','stop','--page','find','rmSync','isFinite','structuredError','an\x20input\x20line\x20is\x20not\x20a\x20JSON\x20object','128610BHiegZ','a\x20file\x20path','verify','a\x20turn\x20id','\x22.\x20Use\x20a\x20single\x20folder-safe\x20segment\x20such\x20as\x20invoice-approval\x20(letters,\x20digits,\x20spaces,\x20\x22_\x22,\x20\x22-\x22,\x20\x22.\x22,\x20parentheses;\x20at\x20most\x2064\x20characters;\x20not\x20starting\x20with\x20\x22.\x22\x20or\x20ending\x20with\x20\x22.\x22\x20or\x20a\x20space).','spawn','transcribe:\x20cannot\x20read\x20','--input-format\x20and\x20--replay-user-messages\x20apply\x20to\x20prompts\x20only.','deployment','localhost','exit','Switch\x20with:\x20','repeat','\x20\x20\x20\x20','done','accessToken','delegations\x20complete\x20<delegation-id>\x20\x22<answer>\x22|-','\x20(optional)','delegations','a\x20directory\x20path','some','typed','\x20this\x20month',':\x20ignored\x0a','--project','Tenant\x20not\x20switched:\x20could\x20not\x20write\x20','\x20delegations\x20complete\x20ID\x20\x22<answer>\x22|-\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Send\x20the\x20answer\x20to\x20a\x20delegation\x20you\x20claimed\x0a\x20\x20','subFields','\x20\x20\x20\x20Not\x20available\x20on\x20this\x20plan','contextSummary','bundledSkillsPath','Saved\x20version\x20','--session\x20applies\x20to\x20the\x20`','logout','about','Invalid\x20--env:\x20','stderr','\x20usage\x20activity|daily\x20[--days\x20N]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Activity\x20totals,\x20or\x20per-day\x20usage,\x20over\x20the\x20last\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20N\x20days\x20(1-365,\x20default\x2030)\x0a\x20\x20','total_completion_tokens','buckets','--turn\x20applies\x20to\x20`','confidence','then','complete\x20needs\x20a\x20prompt:\x20','machineOutput','No\x20CLI\x20login\x20found.\x20Note:\x20the\x20CLI\x20is\x20currently\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20','A\x20steering\x20message\x20was\x20not\x20sent:\x20','--model','completion_tokens','--tenant\x20applies\x20to\x20`','21580pOFLCh','sourceTitle','848105KevAFm','Session:\x20','total_prompt_tokens','product','\x20(resume\x20with\x20--session\x20','map','value','Could\x20not\x20check\x20BYO\x20model\x20warnings:\x20','label','\x20not\x20found.','keepAlive','setPrompt','split','noConnections','delegations\x20accept\x20<delegation-id>','detail','\x20sessions\x20fork\x20ID\x20[MESSAGE]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Copy\x20session\x20ID\x20into\x20a\x20new\x20session,\x20up\x20to\x20and\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20including\x20message\x20MESSAGE\x20(default:\x20all\x20of\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20it);\x20continue\x20it\x20with\x20--session\x20NEW_ID\x0a\x20\x20','opt-in','--url','check','status','\x20sessions\x20--page\x20','\x0a\x0aUsage:\x0a\x20\x20','header','Enter\x20one\x20number\x20from\x201\x20to\x20','Invalid\x20--input-format:\x20','print','cancelled','host','session_consumed_pu','--worker-id','Unknown\x20delegations\x20action:\x20','delegation','Add\x20--computer-use.','save-version','getSessionId','exec','low','\x20sessions\x20show|delete\x20ID\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20one\x20session\x27s\x20title\x20and\x20owner,\x20or\x20delete\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20it\x20with\x20its\x20messages\x20and\x20sub-agents\x20(no\x20prompt)\x0a\x20\x20','turn_start','\x20\x20cartographer-cli\x20export\x20TYPE\x20[DOCUMENT_ID]\x20--project\x20ID\x20[--working-dir\x20PATH]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Export\x20a\x20project\x27s\x20living\x20document\x20(TYPE:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20pdd,\x20sdd,\x20...)\x20to\x20.docx,\x20as\x20an\x20agent\x27s\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20/livingdoc/export\x20does,\x20from\x20the\x20local\x20disk:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20no\x20login\x20or\x20interop.\x20--project\x20and\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--working-dir\x20name\x20the\x20project\x20as\x20the\x20run\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20that\x20wrote\x20it\x20did.\x20DOCUMENT_ID\x20(the\x20draft\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20path)\x20picks\x20one\x20of\x20several\x20documents\x20of\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20TYPE.\x20Prints\x20the\x20.docx\x20path;\x20exits\x201\x20when\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20there\x20is\x20no\x20such\x20document\x20or\x20export\x20fails\x0a\x20\x20cartographer-cli\x20maps\x20share\x20--project\x20ID\x20--remote\x20URL|PATH\x20--map-name\x20NAME\x20[--working-dir\x20PATH]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Share\x20a\x20project\x27s\x20Map\x20of\x20Work,\x20as\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20desktop\x20app\x27s\x20Share\x20does\x20with\x20New\x20map\x20of\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20work:\x20its\x20history,\x20change\x20requests\x20and\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20versions\x20go\x20to\x20a\x20bare\x20git\x20repository\x20on\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this\x20computer\x20or\x20a\x20shared\x20drive\x20(a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20file://\x20URL\x20or\x20an\x20absolute\x20path),\x20under\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20NAME,\x20and\x20publish\x20there\x20from\x20then\x20on.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Join\x20it\x20in\x20the\x20app\x20with\x20Existing\x20map\x20of\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20work.\x20GitHub\x20is\x20not\x20available\x20here\x20yet.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20No\x20login\x20or\x20interop;\x20exits\x201\x20when\x20refused\x0a\x20\x20cartographer-cli\x20maps\x20save-version\x20MESSAGE\x20--project\x20ID\x20[--working-dir\x20PATH]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Save\x20version,\x20as\x20in\x20the\x20desktop\x20app:\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20map\x27s\x20next\x200.x\x20version\x20(0.1.0\x20first),\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20named\x20MESSAGE.\x20Exits\x201\x20when\x20refused,\x20as\x20on\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20a\x20settled\x20map,\x20which\x20gets\x20versions\x20from\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20applied\x20change\x20requests\x20only','prompt','\x20must\x20be\x20a\x20whole\x20number\x20','1426192XdkmLc','\x20to\x20','tool_call','write','No\x20delegations.\x0a','inputFormat','--cleanup','\x20is\x20required.\x0a','cartographer-cli','sendMessage','bind','origin','aborted','existsSync','\x20tenant\x20<name>','stringify','\x20login`\x20only.\x20Other\x20commands\x20follow\x20the\x20saved\x20login,\x20or\x20--backend\x20<url>.','min','\x20must\x20be\x20a\x20JSON\x20object.','\x20runs\x20without\x20computer\x20use.','never','\x20\x20(sub-agent\x20of\x20','operands','delegations\x20delete\x20<delegation-id>','mapName','quiet','pendingResults','\x20login\x20--env\x20<alpha|staging|production>,\x20or\x20','\x20\x20--remote\x20URL|PATH\x20(maps\x20share)\x20The\x20bare\x20git\x20repository\x20to\x20share\x20to:\x20a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20file://\x20URL\x20or\x20an\x20absolute\x20path,\x20on\x20this\x20computer\x20or\x20a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20shared\x20drive.\x20Create\x20it\x20first\x20(git\x20init\x20--bare)\x0a\x20\x20--map-name\x20NAME\x20\x20\x20(maps\x20share)\x20The\x20Map\x27s\x20name\x20in\x20that\x20repository,\x20beside\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20other\x20projects\x27\x20Maps:\x20up\x20to\x2064\x20letters,\x20digits,\x20\x22.\x22,\x20\x22_\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20or\x20\x22-\x22,\x20starting\x20with\x20a\x20letter\x20or\x20digit','\x20\x20(input\x20#','production','round','taskAutomation','end','lockReason','SIGINT','a\x20project\x20id','limit_enabled','filter','\x20models\x20[--env\x20NAME]\x20\x20\x20\x20\x20List\x20available\x20LLM\x20models\x20for\x20the\x20current\x20tenant,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20with\x20any\x20BYO\x20configuration\x20warning\x20per\x20model\x0a\x20\x20','finish','The\x20steering\x20message\x20was\x20not\x20answered:\x20its\x20turn\x20did\x20not\x20run\x20or\x20added\x20no\x20reply.','No\x20turn\x20','self-hosted\x20(Automation\x20Suite\x20/\x20Dedicated)','.\x20Share:\x20','\x20requires\x20','tenantName','close','Accepted','cancel','\x20host\x20[flags]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Run\x20this\x20PC\x20as\x20a\x20remote\x20worker\x20until\x20Ctrl+C\x0a\x20\x20','\x20models)\x20before\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20run\x20starts;\x20an\x20unknown\x20id\x20fails\x20and\x20lists\x20the\x20valid\x20ones.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default:\x20gpt_5_6_luna.\x20Also\x20settable\x20via\x20MODEL\x20env\x20var.\x0a\x20\x20--keep-alive\x20\x20\x20\x20\x20\x20Reuse/leave\x20interop\x20running\x20across\x20invocations\x0a\x20\x20--headless\x20\x20\x20\x20\x20\x20\x20\x20Skip\x20interop\x20(text-only\x20prompts)\x0a\x20\x20--no-computer-use\x20Keep\x20interop\x20—\x20file,\x20Office,\x20PDF\x20and\x20shell\x20tools\x20keep\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20working\x20—\x20but\x20drop\x20the\x20screen:\x20no\x20screenshots,\x20no\x20window\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20list,\x20no\x20UI-automation\x20tools.\x20Cuts\x20image\x20tokens\x20and\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20per-turn\x20screen\x20capture,\x20and\x20stops\x20desktop\x20window\x20titles\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20leaving\x20the\x20machine.\x20Use\x20for\x20document\x20and\x20file\x20work.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--headless\x20implies\x20this\x20and\x20turns\x20interop\x20off\x20as\x20well\x0a\x20\x20--no-connections\x20\x20Disable\x20orchestrator\x20ConnectionService\x20(silences\x20404\x20warnings)\x0a\x20\x20--no-security\x20\x20\x20\x20\x20Disable\x20tool\x20security\x20wrapper\x20(use\x20only\x20for\x20debugging)\x0a\x20\x20--no-memory\x20\x20\x20\x20\x20\x20\x20Do\x20not\x20send\x20the\x20Delegate\x20app\x27s\x20local\x20long-term\x20memories\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20with\x20each\x20turn,\x20and\x20do\x20not\x20ask\x20the\x20model\x20to\x20save\x20new\x20ones\x0a\x20\x20--task-automation\x20Record\x20every\x20UI\x20action\x20of\x20the\x20run,\x20with\x20the\x20selector\x20of\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20element\x20it\x20acted\x20on,\x20to\x20<working-dir>/captures/<session>/\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(~/.aria-sdk\x20without\x20--working-dir),\x20so\x20you\x20can\x20then\x20ask\x20for\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20task\x20as\x20a\x20UiPath\x20coded\x20workflow\x20(uipath-taskautomation\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20skill).\x20The\x20log\x20holds\x20on-screen\x20text\x20and\x20your\x20requests;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20typed\x20values\x20are\x20masked.\x20Needs\x20computer\x20use.\x20Ignored\x20with\x20a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20warning\x20where\x20the\x20deployment\x20does\x20not\x20offer\x20it\x20yet\x0a\x20\x20--attach\x20PATH\x20\x20\x20\x20\x20File\x20or\x20folder\x20sent\x20with\x20the\x20first\x20message\x20(repeatable),\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20as\x20the\x20Delegate\x20app\x20sends\x20attached\x20files:\x20images\x20inline,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20PDFs\x20and\x20other\x20documents\x20as\x20a\x20path\x20the\x20agent\x20reads,\x20text\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20inline\x20up\x20to\x2016,000\x20characters.\x2030\x20MiB\x20per\x20message\x20in\x20all;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20larger\x20files\x20go\x20as\x20a\x20path.\x20In\x20a\x20conversation,\x20later\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20messages\x20carry\x20none\x20of\x20their\x20own,\x20but\x20the\x20first\x20message\x27s\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20stay\x20in\x20context\x0a\x20\x20--preload-skill\x20NAME\x20\x20Preload\x20a\x20skill\x20into\x20the\x20session\x20(repeatable).\x20The\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20skill\x27s\x20content\x20is\x20attached\x20before\x20the\x20first\x20model\x20turn\x20—\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20same\x20mechanism\x20as\x20project\x20preloaded\x20skills\x20in\x20the\x20app\x0a\x20\x20--project\x20ID\x20\x20\x20\x20\x20\x20Route\x20the\x20session\x27s\x20local\x20wiki\x20and\x20plans\x20to\x20a\x20project\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(<working-dir>/projects/<ID>/wiki).\x20Client-side\x20key\x20only\x0a\x20\x20--vertical\x20ID\x20\x20\x20\x20\x20Run\x20the\x20session\x20as\x20that\x20product\x27s\x20vertical,\x20as\x20its\x20tab\x20in\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20desktop\x20app\x20does,\x20with\x20no\x20desktop\x20app\x20installed.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default:\x20none\x0a\x20\x20--working-dir\x20PATH\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Shell\x20cwd\x20for\x20the\x20agent\x20and\x20root\x20for\x20SDK-local\x20state.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Relative\x20paths\x20resolve\x20against\x20the\x20current\x20directory;\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20directory\x20is\x20created\x20if\x20missing\x0a\x20\x20--skills-path\x20PATH\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Folder\x20of\x20custom\x20skills,\x20loaded\x20on\x20top\x20of\x20the\x20skills\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20package\x20ships;\x20wins\x20on\x20a\x20name\x20clash\x20(also:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20DELEGATE_BUNDLED_SKILLS_PATH)\x0a\x20\x20--effort\x20TIER\x20\x20\x20\x20\x20Reasoning\x20effort:\x20low\x20|\x20medium\x20|\x20high\x20|\x20xhigh\x20|\x20max.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default:\x20the\x20model\x27s\x20recommended\x20tier\x0a\x20\x20--session\x20ID\x20\x20\x20\x20\x20\x20Continue\x20an\x20existing\x20backend\x20session\x20(an\x20unknown\x20id\x20exits\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x201;\x20the\x20backend\x20assigns\x20new\x20ids).\x20For\x20complete:\x20the\x20session\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20whose\x20history\x20is\x20the\x20context\x0a\x20\x20--json-schema\x20FILE\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20JSON\x20schema\x20the\x20structured\x20answer\x20must\x20match\x20(complete,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20and\x20prompts:\x20implies\x20--print)\x0a\x20\x20--runner-url\x20URL\x20\x20(host)\x20Runner\x20worker\x20WS\x20URL.\x20Required;\x20or\x20CONTROL_PLANE_WS_URL\x20env\x0a\x20\x20--interop\x20PATH\x20\x20\x20\x20(host)\x20Interop\x20binary\x20path;\x20or\x20INTEROP_EXECUTABLE_PATH\x20env.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Absent\x20→\x20registration/discovery\x20only,\x20tool\x20execution\x20disabled\x0a\x20\x20--worker-id\x20ID\x20\x20\x20\x20(host)\x20Stable\x20worker\x20identity;\x20or\x20WORKER_ID\x20env.\x20Default:\x20hostname\x0a\x20\x20--page\x20N\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(sessions)\x20Page\x20to\x20show,\x20from\x201.\x20Default:\x201\x0a\x20\x20--limit\x20N\x20\x20\x20\x20\x20\x20\x20\x20\x20(sessions)\x20Rows\x20per\x20page,\x201-100.\x20Default:\x2030\x0a\x20\x20--include-subagents\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(sessions)\x20Also\x20list\x20sub-agent\x20sessions,\x20hidden\x20by\x20default\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20as\x20in\x20the\x20desktop\x20app\x27s\x20history\x0a\x20\x20--to\x20WHO\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(delegations\x20create)\x20Assign\x20to\x20this\x20person:\x20an\x20email,\x20or\x20a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20name\x20that\x20matches\x20exactly\x20one\x20colleague\x20(see\x20org-users)\x0a\x20\x20--summary\x20TEXT\x20\x20\x20\x20(delegations\x20create)\x20The\x20briefing\x20the\x20person\x20starts\x20from.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default:\x20empty,\x20for\x20a\x20task\x20that\x20stands\x20on\x20its\x20own\x0a\x20\x20--output-format\x20FMT\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20text\x20(default)\x20|\x20json\x20|\x20stream-json.\x20json\x20prints\x20one\x20result\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20object\x20on\x20exit;\x20stream-json\x20prints\x20every\x20agent\x20event\x20as\x20one\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20JSON\x20line,\x20then\x20the\x20result.\x20Both\x20keep\x20stdout\x20JSON-only\x20(logs,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20progress\x20and\x20the\x20session\x20id\x20go\x20to\x20stderr),\x20imply\x20--print,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20and\x20exit\x201\x20when\x20the\x20turn\x20ends\x20in\x20error.\x20Also\x20honoured\x20by\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20every\x20subcommand\x20that\x20prints\x20a\x20result\x20(all\x20but\x20login,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20logout,\x20tenant\x20and\x20host)\x0a\x20\x20--input-format\x20FMT\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20text\x20(default)\x20|\x20stream-json.\x20stream-json\x20reads\x20one\x20JSON\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20user\x20message\x20per\x20line\x20on\x20stdin\x20while\x20the\x20turn\x20runs:\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20first\x20is\x20the\x20prompt\x20(give\x20none\x20as\x20an\x20argument),\x20each\x20later\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20one\x20steers\x20the\x20turn\x20in\x20flight.\x20Needs\x20--output-format\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20stream-json\x0a\x20\x20--replay-user-messages\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(--input-format\x20stream-json)\x20Echo\x20each\x20steering\x20message\x20on\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20stdout\x20(isReplay:\x20true,\x20same\x20uuid)\x20once\x20the\x20agent\x20takes\x20it\x0a\x20\x20-q,\x20--quiet\x20\x20\x20\x20\x20\x20\x20Suppress\x20🤔\x20thinking\x20output\x20to\x20stderr\x0a\x20\x20--verbose\x20\x20\x20\x20\x20\x20\x20\x20\x20Surface\x20the\x20SDK\x27s\x20and\x20the\x20framework\x27s\x20own\x20logs.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Diagnostics\x20only,\x20on\x20stdout;\x20independent\x20of\x20-q\x0a','computerUse','runnerUrl','paths','\x20sessions`\x20only.','Created\x20delegation\x20','toFixed',':\x20cannot\x20read\x20the\x20JSON\x20schema\x20(','followUpsRenderer','Session\x20\x20\x20\x20\x20\x20\x20','),\x20','organizationId','period_end','total_tokens','version','byoWarning','\x20sessions\x20rename\x20ID\x20TITLE\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Rename\x20a\x20session\x20(1-500\x20characters)\x0a\x20\x20','Model\x20','--task-automation\x20applies\x20to\x20prompts\x20only.','--attach','7SWjpWr','\x20in\x20progress\x20on\x20session\x20','message','padEnd','Cost:\x20\x20\x20$','rejection','alreadyCompleted','stream-json','ASSIGNEE','choice\x20','description','--quiet','destroy','--json-schema\x20applies\x20to\x20prompts\x20and\x20to\x20`','\x20applies\x20to\x20prompts\x20and\x20to\x20these\x20commands\x20only:\x20','--backend','Turn:\x20','\x20[flags]\x20-\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Read\x20one\x20prompt\x20from\x20stdin\x20through\x20EOF,\x20then\x20exit\x0a\x20\x20','\x20--cleanup\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Stop\x20running\x20interop\x0a\x0aFlags:\x0a\x20\x20-p,\x20--print\x20\x20\x20\x20\x20\x20\x20Run\x20one\x20turn\x20and\x20exit,\x20including\x20any\x20tool\x20execution.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Automatic\x20when\x20stdin\x20or\x20stdout\x20is\x20not\x20a\x20terminal,\x20or\x20with\x20-\x0a\x20\x20--env\x20NAME\x20\x20\x20\x20\x20\x20\x20\x20alpha\x20|\x20staging\x20|\x20production\x20|\x20localhost\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Composes\x20backend\x20URL\x20from\x20saved\x20auth\x20(org/tenant\x20slugs).\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Omitted\x20→\x20the\x20deployment\x20you\x20logged\x20into\x20(','verbose','\x20evaluate|rerank|verify\x20FILE|-\x20[--model\x20ID]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Stateless\x20typed\x20judgments:\x20send\x20the\x20JSON\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20request\x20in\x20FILE\x20(or\x20stdin\x20with\x20-)\x20to\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20/v1/completions/<command>\x20and\x20print\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20answers;\x20--model\x20overrides\x20its\x20\x22model\x22.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Exits\x201\x20when\x20the\x20backend\x20rejects\x20it\x0a\x20\x20','questions','\x20(confidence\x20','resume','sessionId','Structured\x20output\x20failed:\x20','No\x20CLI\x20login\x20to\x20switch:\x20the\x20CLI\x20is\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20','--json-schema','subcommand','\x20usage`,\x20`usage\x20activity`\x20or\x20`usage\x20daily`.','usage','More:\x20','stdin','from','\x20transcribe\x20<file>,\x20or\x20-\x20to\x20read\x20stdin.','an\x20input\x20line\x20has\x20type\x20','toString','\x20org-users\x20QUERY\x20\x20\x20\x20\x20\x20\x20\x20\x20Search\x20your\x20organization\x27s\x20users\x20by\x20name\x20or\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20email\x20prefix\x20(2-100\x20characters)\x0a\x20\x20','Organization\x20\x20','\x20whoami\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20the\x20current\x20login\x20(org,\x20tenant,\x20token\x20expiry)\x0a\x20\x20','commandFlags','):\x0a\x0a','Session:\x20\x20\x20\x20\x20\x20','results','backendUrl','\x20(estimated\x20$','\x20token\x20units)','period_days','stdout','\x20usage\x20activity|daily`;\x20the\x20summary\x20covers\x20the\x20current\x20month.','--verbose','baseUrl','\x20host\x20status\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20auto-start\x20state\x0a\x20\x20','auth.json','\x0aUse\x20with:\x20','\x20login\x20[--env\x20NAME\x20|\x20--url\x20BASE]\x20[--tenant\x20NAME]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20OAuth\x20browser\x20login\x20→\x20~/.aria/sdk-auth.json.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--env\x20or\x20--url\x20required\x20on\x20FIRST\x20login;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20afterwards\x20defaults\x20to\x20the\x20saved\x20login\x27s\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20deployment.\x20--tenant\x20picks\x20a\x20tenant\x20by\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20name;\x20without\x20it\x20a\x20re-login\x20keeps\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20saved\x20tenant\x0a\x20\x20','user',';\x20the\x20saved\x20login\x20still\x20uses\x20','bin','\x20|\x20','noComputerUse','No\x20answers\x20awaiting\x20acceptance.\x0a','\x20completion','\x20of\x20the\x20Map\x20of\x20Work\x20of\x20','share','cleanup','noSecurity','isSafeInteger','isTTY','Licensing:\x20\x20\x20\x20no\x20licensing\x20quota\x20applies','\x20\x22<prompt>\x22\x0aAnswer\x20with:\x20','agentName','fork','orgLogicalName','--input-format','delegations\x20claim\x20<delegation-id|delegate://delegation/…>','models','content','max','total_cost_usd','transcribe','a\x20deployment\x20URL,\x20e.g.\x20https://automationsuite.contoso.com','\x20[flags]\x20[\x22<prompt>\x22]\x20\x20\x20\x20Start\x20a\x20conversation\x20in\x20a\x20terminal\x0a\x20\x20','a\x20briefing\x20text','a\x20colleague','model','\x20(Enter\x20to\x20skip):\x20','models_breakdown','unit','once','show','\x20\x20from\x20','skip','effort','\x20in\x20steps\x20of\x20','endQuestions','ID\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','login','string','\x20from\x20','delegations\x20dismiss\x20<delegation-id>','a\x20number','Deleted\x20session\x20',',\x20whose\x20tenant\x20is\x20chosen\x20in\x20the\x20app.\x20Run\x20`','task','workingDirectory','replayUserMessages','\x20--json-schema\x20FILE\x20\x22<prompt>\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20One\x20turn,\x20then\x20its\x20result\x20extracted\x20as\x20JSON\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20matching\x20the\x20schema\x20in\x20FILE\x20(printed\x20after\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20answer;\x20\x22structured\x22\x20in\x20the\x20JSON\x20result);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20exit\x201\x20when\x20the\x20extraction\x20fails\x0a\x20\x20','--remote\x20and\x20--map-name\x20apply\x20to\x20`','--effort','No\x20sessions\x20on\x20page\x20',',\x20got\x20','\x20check\x20[--env\x20NAME]\x20[--headless]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Verify\x20auth,\x20backend\x20readiness,\x20backend\x20and\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20interop\x20without\x20sending\x20a\x20prompt;\x20exits\x201\x20when\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20any\x20check\x20fails\x0a\x20\x20','export:\x20','trim','\x20(current)','Drop\x20--headless\x20and\x20--no-computer-use.','test','keys','\x20login`\x20only.','package.json','\x20sessions\x20[list]`\x20only.','Token:\x20\x20\x20\x20\x20\x20\x20\x20expires\x20','workerId','Tenant:\x20','floor','Last\x20','messages','Removed\x20','.\x20Use:\x20','email','org-users','\x20delegation\x20','index','signal','The\x20saved\x20CLI\x20login\x20could\x20not\x20be\x20refreshed.\x20Run\x20`','userId','outputFormat','\x20maps\x20save-version\x20MESSAGE\x20--project\x20ID\x20[--working-dir\x20PATH]','--keep-alive','Delegation\x20\x20\x20\x20','Numbers,\x20separated\x20by\x20commas\x20(Enter\x20to\x20skip):\x20','Forked\x20','delete','Cartographer:\x20every\x20session\x20runs\x20as\x20the\x20cartographer\x20vertical\x20(its\x20prompt,\x0a\x20\x20and\x20the\x20Map\x20of\x20Work\x20of\x20the\x20--project\x20folder)\x20without\x20computer\x20use,\x20with\x0a\x20\x20these\x20skills\x20preloaded:\x20','addEventListener','\x20(stdin\x20was\x20empty)','\x20vertical,\x20so\x20it\x20cannot\x20run\x20as\x20--vertical\x20','actionable_error','\x20tenant\x20<name>\x0a\x20\x20--model\x20NAME\x20\x20\x20\x20\x20\x20LLM\x20model\x20id\x20(e.g.\x20claude_sonnet_5_5,\x20kimi_k3).\x20Checked\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20against\x20the\x20tenant\x27s\x20catalog\x20(','--version','score\x20','4BcactO','The\x20turn\x20was\x20cancelled.','You>\x20','token_units',']\x20(Enter\x20for\x20','includes','exitCode','--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`','daily_usage','the\x20request','Claimed\x20from\x20delegation\x20','race','preloadSkills','Owner\x20\x20\x20\x20\x20\x20\x20\x20\x20','Spending:\x20\x20\x20\x20\x20$','\x20login\x20--env\x20<alpha|staging|production>`\x20(or\x20`--url\x20<deployment-url>`\x20for\x20Automation\x20Suite)\x20first.','result','Unknown\x20flag:\x20','evaluate','getTurnUsageHistory','initialize','Work\x20on\x20it\x20with:\x20','catch','cwd','\x20min)','\x20login`\x20only.\x20Switch\x20tenants\x20with:\x20','readFileSync','[env=','1605884uuZtFd','bucket','complete','list','--help','total_sessions','--attach\x20applies\x20to\x20prompts\x20only.','a\x20format\x20(','file','\x20PU\x20beyond\x20quota','No\x20usage\x20in\x20the\x20last\x20','intro','an\x20input\x20line\x20has\x20an\x20empty\x20message','error','readLine','\x20tenant\x20[NAME]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20the\x20organization\x27s\x20tenants,\x20or\x20switch\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20saved\x20login\x20to\x20NAME\x20(no\x20browser)\x0a\x20\x20','--url\x20applies\x20to\x20`','create','\x20PU','--tenant',':\x20bucket\x20number\x20(Enter\x20to\x20leave\x20out):\x20','delegations\x20list\x20<backend-project-id>','isError','prompt_tokens','high','\x20delegations\x20list\x20PROJECT\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Every\x20delegation\x20targeting\x20a\x20backend\x20project\x0a\x20\x20','displayName','\x20\x20-h,\x20--help\x20\x20\x20\x20\x20\x20\x20\x20Show\x20this\x20help\x0a\x20\x20-v,\x20--version\x20\x20\x20\x20\x20Print\x20the\x20installed\x20CLI\x20version\x0a\x0aConversation:\x20Enter\x20sends\x20a\x20message;\x20/exit\x20or\x20EOF\x20exits;\x20Ctrl+C\x20stops\x20and\x20exits.\x0a\x20\x20Ctrl+C\x20during\x20a\x20turn\x20cancels\x20it\x20on\x20the\x20backend\x20too;\x20a\x20second\x20Ctrl+C\x20force-exits.\x0a\x20\x20An\x20optional\x20initial\x20prompt\x20is\x20followed\x20by\x20more\x20input.\x20The\x20session\x20ID\x20is\x20printed\x0a\x20\x20to\x20stderr;\x20resume\x20later\x20with\x20--session\x20ID.\x20Redirected\x20input\x20is\x20one\x20prompt.\x0aAuth:\x20prompts\x20auto-retry\x20on\x20401\x20by\x20opening\x20the\x20browser\x20to\x20re-login\x20(TTY\x20only),\x0a\x20\x20preserving\x20the\x20active\x20session.','\x20prompt,\x20','assignedUser','help','--headless',').\x0a','Source:\x20\x20\x20\x20\x20\x20\x20','replace','\x20\x22<answer>\x22\x0a','log','--replay-user-messages','locked','--tenant\x20requires\x20a\x20tenant\x20name.','waitForIdle','\x20maps\x20share\x20--project\x20ID\x20--remote\x20URL|PATH\x20--map-name\x20NAME\x20[--working-dir\x20PATH]','\x20tenant\x20<name>\x0a','.aria','delegateTo','Tenant:\x20\x20\x20\x20\x20\x20\x20','abort','join','AUTH_TOKEN_FILE\x20\x27','--task-automation\x20needs\x20computer\x20use:\x20the\x20task\x20log\x20is\x20written\x20by\x20the\x20UI-automation\x20tools.\x20','add','projectId','score','input','\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22.','9iONccX','\x20login`\x20again.','an\x20input\x20line\x20has\x20no\x20message.content,\x20a\x20string\x20or\x20a\x20list\x20of\x20text\x20blocks','Bearer\x20','--days\x20applies\x20to\x20`','--to,\x20--summary\x20and\x20--session\x20apply\x20to\x20`','\x20sessions\x20cancel`\x20only.','--runner-url','Your\x20answer,\x20as\x20text\x20(the\x20CLI\x20attaches\x20no\x20files;\x20Enter\x20to\x20skip):\x20','--authority','items','structured','claim','\x20into\x20','valueFlags','1\x20or\x20more','\x20sessions\x20cancel\x20','\x20sessions\x20[list]\x20[--page\x20N]\x20[--limit\x20N]\x20[--include-subagents]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20your\x20backend\x20chat\x20sessions,\x20most\x20recently\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20active\x20first\x20(resume\x20one\x20with\x20--session\x20ID)\x0a\x20\x20','%\x20of\x20','transcribe\x20needs\x20audio:\x20','isInteger','alreadyAccepted','\x0aAvailable\x20models\x20(','Base\x20URL:\x20\x20\x20\x20\x20','answers','\x20(no\x20cap\x20enforced)','pending','xhigh','\x20(in\x20','choice','\x20needs\x20a\x20JSON\x20request:\x20','restore','--remote','a\x20JSON\x20schema\x20file','No\x20CLI\x20login\x20found.\x20Run\x20`','Enter\x20numbers\x20from\x201\x20to\x20','probability\x20','\x20delegations\x20pending\x20SESSION\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Answers\x20to\x20delegations\x20from\x20SESSION\x20that\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20await\x20acceptance\x20(poll\x20this)\x0a\x20\x20','concat','object','from\x20','\x20is\x20not\x20valid\x20JSON\x20(','utf-8','expiresAt','accept','>.\x0a',',\x20or\x20holds\x20no\x20message\x20','\x20sessions\x20cancel\x20ID\x20--turn\x20TURN\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Cancel\x20turn\x20TURN\x20running\x20on\x20session\x20ID\x20in\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20another\x20process;\x20exits\x201\x20when\x20no\x20such\x20turn\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20is\x20in\x20progress\x0a\x20\x20','Answered','\x0aAccept\x20one\x20with:\x20','Tenants\x20of\x20','commands','environment\x20variables\x20(AUTH_TOKEN/TENANT_ID/ORG_ID)','\x20of\x20a\x20$','\x20--session\x20','getSessionMessages','.\x20Use\x20','refused','Unknown\x20usage\x20view:\x20','Already\x20accepted','No\x20models\x20available\x20for\x20this\x20product/tenant.\x0a','multiSelect','days','--env','\x20org-users\x20<name\x20or\x20email\x20prefix>','length','delegations\x20cancel\x20<delegation-id>','--vertical','\x20as\x20\x22','shift','oneTurn','Invalid\x20--output-format:\x20','run','off','attachments','Continue\x20it\x20with:\x20','env','forEach','\x20(Delegate\x20desktop\x20app\x20fallback)','\x20login\x20--url\x20https://automationsuite.contoso.com','parse','userinput','deepLink','slice','export','an\x20email\x20address\x20or\x20name','entries','extra_pool_consumed_pu','options','No\x20structured\x20output:\x20the\x20turn\x20failed\x20(','--summary','Steering\x20input\x20stopped:\x20','rubric_version','--computer-use','remote','--preload-skill','\x20days.\x0a','--skills-path','sessions','noMemory','type','--to','numeric','stack','lastType','\x20--attach\x20PATH\x20[--attach\x20PATH\x20...]\x20\x22<prompt>\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Send\x20files\x20or\x20folders\x20with\x20the\x20first\x20message\x0a\x20\x20','kind','Session\x20','resolve','deleted','Enter\x20a\x20number\x20','\x20—\x20sign\x20out\x20in\x20the\x20Delegate\x20app\x20to\x20clear\x20that.','interopPath','parentSessionId','dismiss','Usage:\x20','date','agent_thought','rerank','unknown\x20slug','\x20--help`.',')\x20—\x20saved\x20to\x20','next','flags','--turn','line','pause','assignedUserEmail','No\x20CLI\x20login\x20found\x20—\x20nothing\x20to\x20remove.','a\x20file://\x20URL\x20or\x20an\x20absolute\x20path','A\x20steering\x20message\x20arrived\x20after\x20the\x20turn\x20ended:\x20not\x20read.\x0a','\x20(resets\x20','page','\x20--model\x20<id>\x20\x22<prompt>\x22\x0a','toolName','push','tenant','Invalid\x20--effort:\x20','monthly_limit_usd','1003128aJFctS','the\x20JSON\x20schema','tool','probability','hide','--output-format\x20','jsonSchemaPath','\x20usage\x20[--session\x20ID]\x20\x20\x20\x20Quota\x20and\x20spend:\x20licensing\x20quota,\x20monthly\x20spend\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20and\x20cap\x0a\x20\x20','\x20delegations\x20create`\x20only.','limit','\x20sessions\x20on\x20','\x20--print\x20\x22<prompt>\x22\x20\x20\x20\x20\x20\x20Send\x20one\x20prompt,\x20print\x20the\x20response,\x20and\x20exit\x0a\x20\x20','a\x20skill\x20name','--output-format','\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22,\x20or\x20-\x20to\x20read\x20stdin.','\x20delegations\x20accept\x20<id>\x0a','an\x20input\x20line\x20is\x20not\x20JSON',',\x20not\x20\x22user\x22','active_days','--limit','cartographer','--skip-env-check','Cartographer\x20agent\x20CLI','name','STATUS',':\x20cannot\x20read\x20the\x20request\x20(','Input\x20closed\x20before\x20the\x20question\x20was\x20answered.','optional','command','session_start','daily','skipEnvCheck','--skip-env-check\x20applies\x20to\x20`','isDesktopFallback','--computer-use\x20turns\x20the\x20screen\x20on,\x20and\x20--headless\x20and\x20--no-computer-use\x20turn\x20it\x20off:\x20pass\x20one\x20of\x20them.','fields','tenantId','from\x201\x20to\x20','text','activity','onEvent'];_0xe413=function(){return _0x118574;};return _0xe413();}function dn(_0xd795d3){const _0x389180=_0x1727a5;return _0xd795d3[_0x389180(0x23a)]('\x0a')[_0x389180(0x233)](_0x16e363=>{const _0x45f909=_0x389180;let _0x5a14a1=/^( \S.*?\S)( {2,})(\S.*)$/[_0x45f909(0x252)](_0x16e363);return!_0x5a14a1||_0x5a14a1[0x1][_0x45f909(0x153)]+_0x5a14a1[0x2][_0x45f909(0x153)]<=he?_0x16e363:_0x5a14a1[0x1]+'\x20'[_0x45f909(0x206)](Math['max'](0x2,he-_0x5a14a1[0x1][_0x45f909(0x153)]))+_0x5a14a1[0x3];})['join']('\x0a');}function un(){const _0x2f75dc=_0x1727a5;try{return JSON[_0x2f75dc(0x162)](_0x4559f8[_0x2f75dc(0x352)](_0x436140[_0x2f75dc(0x10a)](__dirname,'..',_0x2f75dc(0x318)),_0x2f75dc(0x13c)))['version']||_0x2f75dc(0x1f2);}catch{return _0x2f75dc(0x1f2);}}async function ye(_0x14c308,_0xab0683){const _0x14c9cb=_0x1727a5;let _0x1d0b5e=_0xab0683?[_0xab0683]:[];for await(let _0xe24aa6 of _0x14c308)_0x1d0b5e['push'](Buffer[_0x14c9cb(0x2c1)](_0xe24aa6));return Buffer[_0x14c9cb(0x138)](_0x1d0b5e)[_0x14c9cb(0x2c4)](_0x14c9cb(0x13c))[_0x14c9cb(0x312)]();}function mn(_0x2c8cad,_0x3efc03){return new Promise(_0x1aab65=>{const _0x2f002f=_0x36a3;let _0x5c4791=_0x26be30=>{const _0x4124d8=_0x36a3;clearTimeout(_0x4cb5f5),_0x2c8cad[_0x4124d8(0x15b)]('data',_0x4aa6ed),_0x2c8cad[_0x4124d8(0x15b)](_0x4124d8(0x27a),_0x5a560c),_0x2c8cad['off'](_0x4124d8(0xe8),_0x5a560c),_0x2c8cad['pause'](),_0x1aab65(_0x26be30);},_0x4aa6ed=_0x2663ba=>_0x5c4791(Buffer[_0x2f002f(0x2c1)](_0x2663ba)),_0x5a560c=()=>_0x5c4791(null),_0x4cb5f5=setTimeout(()=>_0x5c4791(null),_0x3efc03);_0x2c8cad['on']('data',_0x4aa6ed),_0x2c8cad['on'](_0x2f002f(0x27a),_0x5a560c),_0x2c8cad['on']('error',_0x5a560c),_0x2c8cad[_0x2f002f(0x2b7)]();});}async function J(_0x14c7b2,_0x5420ed,_0x54a3e9=pn){const _0x17f25d=_0x1727a5;let _0x208e97=_0x14c7b2==='-';if(!_0x208e97&&_0x14c7b2)return _0x14c7b2;if(!_0x208e97&&_0x5420ed[_0x17f25d(0x2e4)])return'';if(_0x208e97)return ye(_0x5420ed,null);let _0x5b6d21=await mn(_0x5420ed,_0x54a3e9);return _0x5b6d21?ye(_0x5420ed,_0x5b6d21):'';}function z(){const _0x50c7e3=_0x1727a5;return _0x436140[_0x50c7e3(0x10a)](process.env.HOME||process.env.USERPROFILE||'',_0x50c7e3(0x106),_0x50c7e3(0x2d5));}function G(_0x1aeb1b){const _0x2dcfc1=_0x1727a5;try{let _0x28a7e2=JSON[_0x2dcfc1(0x162)](_0x4559f8[_0x2dcfc1(0x352)](_0x1aeb1b,_0x2dcfc1(0x13c)));return!_0x28a7e2[_0x2dcfc1(0x209)]||!_0x28a7e2[_0x2dcfc1(0x1c1)]||!_0x28a7e2[_0x2dcfc1(0x297)]?null:_0x28a7e2;}catch{return null;}}function fn(){const _0x26feec=_0x1727a5;let _0x24746a=[{'file':_0x54c8e3(),'isDesktopFallback':!0x1},{'file':z(),'isDesktopFallback':!0x0}];for(let _0x15feb9 of _0x24746a){let _0x498ba5=G(_0x15feb9[_0x26feec(0xe3)]);if(_0x498ba5)return{..._0x15feb9,'auth':_0x498ba5};}return null;}async function gn(){const _0x209755=_0x1727a5;let _0x3fd3b2=_0x54c8e3();if(!_0x4559f8[_0x209755(0x266)](_0x3fd3b2)){let _0x33c7fe=z();console['log'](G(_0x33c7fe)?_0x209755(0x227)+_0x33c7fe+_0x209755(0x181):_0x209755(0x192));return;}_0x4559f8[_0x209755(0x1f6)](_0x3fd3b2),console[_0x209755(0xff)](_0x209755(0x320)+_0x3fd3b2);}async function hn(_0xbd1eeb){const _0x3950e4=_0x1727a5;let _0x580c2b=V(),_0xdd66bd,_0x1a40c7;if(_0x580c2b)_0xdd66bd=_0x580c2b,_0x1a40c7=_0x3950e4(0x146);else{let _0x908a4=fn();if(!_0x908a4)throw new Error(Ne(_0xbd1eeb[_0x3950e4(0x231)][_0x3950e4(0x2da)]));_0xdd66bd=_0x908a4['auth'],_0x1a40c7=_0x908a4[_0x3950e4(0x1be)]?_0x908a4[_0x3950e4(0xe3)]+_0x3950e4(0x160):_0x908a4[_0x3950e4(0xe3)];}let _0x5076f4={'source':_0x1a40c7,'baseUrl':_0xdd66bd[_0x3950e4(0x2d3)]??null,'deployment':yn(_0xdd66bd[_0x3950e4(0x2d3)]),'organization':{'id':_0xdd66bd['organizationId'],'slug':_0xdd66bd[_0x3950e4(0x2e9)]??null},'tenant':{'id':_0xdd66bd[_0x3950e4(0x1c1)],'name':_0xdd66bd['tenantName']??null},'tokenExpiresAt':_0xdd66bd[_0x3950e4(0x13d)]?new Date(_0xdd66bd[_0x3950e4(0x13d)]*0x3e8)['toISOString']():null};m(_0xbd1eeb,_0x5076f4,()=>{const _0x553b28=_0x3950e4;let _0xcf9690=[_0x553b28(0xfc)+_0x1a40c7,_0x553b28(0x129)+(_0xdd66bd['baseUrl']??_0x553b28(0x1f2)),'Deployment:\x20\x20\x20'+_0x5076f4[_0x553b28(0x202)],'Organization:\x20'+(_0xdd66bd[_0x553b28(0x2e9)]??'unknown\x20slug')+'\x20('+_0xdd66bd[_0x553b28(0x297)]+')',_0x553b28(0x108)+(_0xdd66bd['tenantName']??_0x553b28(0x189))+'\x20('+_0xdd66bd['tenantId']+')'];if(_0xdd66bd['expiresAt']){let _0x30fd7a=_0xdd66bd[_0x553b28(0x13d)]-Math[_0x553b28(0x31d)](Date['now']()/0x3e8);_0xcf9690[_0x553b28(0x199)](_0x30fd7a>0x0?_0x553b28(0x31a)+_0x5076f4[_0x553b28(0x1e4)]+_0x553b28(0x12e)+Math[_0x553b28(0x278)](_0x30fd7a/0x3c)+_0x553b28(0x350):'Token:\x20\x20\x20\x20\x20\x20\x20\x20expired\x20'+_0x5076f4['tokenExpiresAt']);}process[_0x553b28(0x2d0)]['write'](_0xcf9690[_0x553b28(0x10a)]('\x0a')+'\x0a');});}function Ne(_0x5243b7){const _0x157db2=_0x1727a5;return'No\x20auth\x20found.\x20Set\x20AUTH_TOKEN\x20(or\x20AUTH_TOKEN_FILE)/TENANT_ID/ORG_ID\x20env\x20vars,\x20or\x20run\x20`'+_0x5243b7+_0x157db2(0x347);}function yn(_0x232164){const _0x596b12=_0x1727a5;return _0x232164?_0xd8e6fe(_0x232164)?'UiPath\x20Cloud':_0x596b12(0x284):_0x596b12(0x1f2);}function V(){let _0x42c27b=process.env.AUTH_TOKEN_FILE;return(process.env.AUTH_TOKEN||_0x42c27b)&&process.env.TENANT_ID&&process.env.ORG_ID?{'accessToken':_0x42c27b?wn(_0x42c27b):process.env.AUTH_TOKEN,..._0x42c27b?{'accessTokenFile':_0x42c27b}:{},'tenantId':process.env.TENANT_ID,'organizationId':process.env.ORG_ID,'orgLogicalName':process.env.ORG_SLUG,'tenantName':process.env.TENANT_SLUG,'baseUrl':Ce()}:null;}function wn(_0x1eb353){const _0x1ed45e=_0x1727a5;let _0x2523b4;try{_0x2523b4=_0x4559f8[_0x1ed45e(0x352)](_0x1eb353,_0x1ed45e(0x13c))[_0x1ed45e(0x312)]();}catch(_0x2049d5){throw new Error(_0x1ed45e(0x10b)+_0x1eb353+'\x27\x20cannot\x20be\x20read:\x20'+_0x2049d5[_0x1ed45e(0x2a2)]);}let _0x539a59=_0x2523b4['startsWith'](_0x1ed45e(0x115))?_0x2523b4[_0x1ed45e(0x165)](0x7)[_0x1ed45e(0x312)]():_0x2523b4;if(!_0x539a59)throw new Error('AUTH_TOKEN_FILE\x20\x27'+_0x1eb353+'\x27\x20is\x20empty.');return _0x539a59;}function Ce(){const _0x20ea08=_0x1727a5;let _0x3658b0=process.env.UIPATH_BASE_URL;if(!_0x3658b0)return;let _0x1b741c=_0x392ddf(_0x3658b0);if(_0x1b741c['ok']===!0x1)throw new Error('UIPATH_BASE_URL\x20is\x20unusable.\x20'+_0x36d6d7(_0x3658b0,_0x1b741c[_0x20ea08(0x2a5)]));return _0x1b741c[_0x20ea08(0x2d3)];}async function X(_0x1ec51b){let _0x2c32ba=V();if(_0x2c32ba)return _0x2c32ba;let _0x3ee0f0=await _0x6e506d();if(_0x3ee0f0)return _0x3ee0f0;throw new Error(Ne(_0x1ec51b));}async function bn(){const _0x2b7b4e=_0x1727a5;await new _0x40fe20()[_0x2b7b4e(0x1f3)]({'force':!0x0}),console['log']('Interop\x20stopped\x20(if\x20it\x20was\x20running).');}function Z(_0x4531ff,_0x3f6569,_0x586975){const _0x50cc42=_0x1727a5;_0x4531ff?process[_0x50cc42(0x21e)][_0x50cc42(0x25c)](_0x50cc42(0x353)+_0x4531ff+']\x20Backend\x20URL:\x20'+_0x586975+'\x0a'):!_0x3f6569&&!process.env.BACKEND_URL&&process['stderr'][_0x50cc42(0x25c)]('[saved\x20login]\x20Backend\x20URL:\x20'+_0x586975+'\x0a');}async function x(_0x5a91aa){const _0x1de805=_0x1727a5;let _0x3481a7=await X(_0x5a91aa[_0x1de805(0x231)][_0x1de805(0x2da)]),_0x22a403=_0x69f4c3(_0x5a91aa['env'],_0x3481a7,_0x5a91aa[_0x1de805(0x2cc)]);return Z(_0x5a91aa[_0x1de805(0x15e)],_0x5a91aa[_0x1de805(0x2cc)],_0x22a403),{'auth':_0x3481a7,'backendUrl':_0x22a403,'client':_0x2a775e({'auth':_0x3481a7,'backendUrl':_0x22a403})};}function _0x36a3(_0x4f3c83,_0x1110be){_0x4f3c83=_0x4f3c83-0xdf;const _0xe4134a=_0xe413();let _0x36a3b8=_0xe4134a[_0x4f3c83];return _0x36a3b8;}async function kn(_0x3b1809){const _0x258a4d=_0x1727a5;let {client:_0x3580df}=await x(_0x3b1809),[_0x39b70c,_0x2d0946]=await Promise['all']([_0xd5aeb(_0x3580df),_0x4883cc(_0x3580df)[_0x258a4d(0x34e)](_0x5216c4=>(process[_0x258a4d(0x21e)][_0x258a4d(0x25c)](_0x258a4d(0x235)+(_0x5216c4 instanceof Error?_0x5216c4[_0x258a4d(0x2a2)]:String(_0x5216c4))+'\x0a'),{}))]),_0x5eef99=_0x39b70c[_0x258a4d(0x233)](_0x524620=>_0x2d0946[_0x524620['id']]?{..._0x524620,'byoWarning':_0x2d0946[_0x524620['id']]}:_0x524620);m(_0x3b1809,_0x5eef99,_0x5e6ac8=>vn(_0x5e6ac8,_0x3b1809['product'][_0x258a4d(0x2da)]));}function vn(_0x19a551,_0x2950bf){const _0x5e510f=_0x1727a5;if(_0x19a551[_0x5e510f(0x153)]===0x0){process['stderr'][_0x5e510f(0x25c)](_0x5e510f(0x14e));return;}process[_0x5e510f(0x2d0)][_0x5e510f(0x25c)](_0x5e510f(0x128)+_0x19a551[_0x5e510f(0x153)]+_0x5e510f(0x2c9));for(let _0x523e67 of _0x19a551){let _0x199337=_0x523e67[_0x5e510f(0x1b4)]&&_0x523e67[_0x5e510f(0x1b4)]!==_0x523e67['id']?'\x20('+_0x523e67['name']+')':'';process[_0x5e510f(0x2d0)][_0x5e510f(0x25c)]('\x20\x20'+_0x523e67['id']+_0x199337+'\x0a'),_0x523e67['description']&&process['stdout'][_0x5e510f(0x25c)](_0x5e510f(0x207)+_0x523e67['description']+'\x0a'),_0x523e67[_0x5e510f(0x101)]&&process[_0x5e510f(0x2d0)][_0x5e510f(0x25c)](_0x5e510f(0x216)+(_0x523e67[_0x5e510f(0x27b)]?'\x20('+_0x523e67[_0x5e510f(0x27b)]+')':'')+'\x0a'),_0x523e67[_0x5e510f(0x29b)]&&process[_0x5e510f(0x2d0)][_0x5e510f(0x25c)]('\x20\x20\x20\x20BYO\x20warning:\x20'+_0x523e67[_0x5e510f(0x29b)]+'\x0a');}process[_0x5e510f(0x2d0)][_0x5e510f(0x25c)](_0x5e510f(0x2d6)+_0x2950bf+_0x5e510f(0x197));}async function Sn(_0x1c1816){const _0x324ff2=_0x1727a5;let [_0x2df98='',_0x553993='',..._0x36df61]=_0x1c1816[_0x324ff2(0x26f)];if(_0x2df98&&!we['includes'](_0x2df98)&&(console[_0x324ff2(0xe8)](_0x324ff2(0x1d4)+_0x2df98+_0x324ff2(0x321)+we['join'](_0x324ff2(0x2db))+'.'),process['exit'](0x2)),_0x1c1816['turnId']!==void 0x0&&_0x2df98!==_0x324ff2(0x28a)&&(console[_0x324ff2(0xe8)](_0x324ff2(0x222)+_0x1c1816['product'][_0x324ff2(0x2da)]+_0x324ff2(0x118)),process[_0x324ff2(0x204)](0x2)),_0x2df98&&_0x2df98!==_0x324ff2(0x357)){await $n(_0x1c1816,_0x2df98,_0x553993,_0x36df61[_0x324ff2(0x10a)]('\x20')[_0x324ff2(0x312)]());return;}_0x1c1816[_0x324ff2(0x26f)][_0x324ff2(0x153)]>0x1&&(console[_0x324ff2(0xe8)](_0x324ff2(0x185)+_0x1c1816[_0x324ff2(0x231)][_0x324ff2(0x2da)]+'\x20sessions\x20[list]\x20[--page\x20N]\x20[--limit\x20N]\x20[--include-subagents]'),process[_0x324ff2(0x204)](0x2));let {client:_0x9af3b}=await x(_0x1c1816),_0x2b5b4b=await _0x2eee28(_0x9af3b,{'page':_0x1c1816['page'],'pageSize':_0x1c1816[_0x324ff2(0x1a6)],'includeSubAgents':_0x1c1816[_0x324ff2(0x1f1)]});m(_0x1c1816,_0x2b5b4b,_0x330292=>In(_0x330292,_0x1c1816[_0x324ff2(0x231)][_0x324ff2(0x2da)]));}async function $n(_0x382251,_0x19a120,_0x378349,_0x5f4afe){const _0x5c1891=_0x1727a5;if((_0x382251['page']!==void 0x0||_0x382251['limit']!==void 0x0||_0x382251[_0x5c1891(0x1f1)])&&(console[_0x5c1891(0xe8)](_0x5c1891(0x33f)+_0x382251[_0x5c1891(0x231)][_0x5c1891(0x2da)]+_0x5c1891(0x319)),process[_0x5c1891(0x204)](0x2)),_0x19a120===_0x5c1891(0x28a)){await xn(_0x382251,_0x378349,_0x5f4afe);return;}if(_0x19a120===_0x5c1891(0x2e8)){await En(_0x382251,_0x378349,_0x5f4afe);return;}(!_0x378349||_0x19a120===_0x5c1891(0x1d7)!=!!_0x5f4afe)&&(console[_0x5c1891(0xe8)](_0x5c1891(0x185)+_0x382251['product']['bin']+'\x20sessions\x20'+_0x19a120+'\x20<id>'+(_0x19a120==='rename'?'\x20<title>':'')),process['exit'](0x2));let {client:_0x1ec117}=await x(_0x382251);try{if(_0x19a120===_0x5c1891(0x2fa)){let _0x5750ab=await _0xbeb984(_0x1ec117,_0x378349);_0x5750ab||be(_0x378349),m(_0x382251,_0x5750ab,An);}else{if(_0x19a120===_0x5c1891(0x1d7)){let _0x4ed5ef=await _0x26600f(_0x1ec117,_0x378349,_0x5f4afe);m(_0x382251,_0x4ed5ef,_0x5335b0=>{const _0x5b2c83=_0x5c1891;process[_0x5b2c83(0x2d0)]['write']('Renamed\x20'+_0x5335b0['id']+':\x20'+_0x5335b0[_0x5b2c83(0x1e0)]+'\x0a');});}else await _0x4a3685(_0x1ec117,_0x378349),await _0xd2a878(_0x378349,_0x382251[_0x5c1891(0x309)]),m(_0x382251,{'id':_0x378349,'deleted':!0x0},_0x26048e=>{const _0x4ad99b=_0x5c1891;process[_0x4ad99b(0x2d0)]['write'](_0x4ad99b(0x306)+_0x26048e['id']+'.\x0a');});}}catch(_0x67d864){if(!_0x2c7d94(_0x67d864,0x194))throw _0x67d864;be(_0x378349);}}function be(_0x305fb2){const _0x4b8ccf=_0x1727a5;console[_0x4b8ccf(0xe8)](_0x4b8ccf(0x17d)+_0x305fb2+_0x4b8ccf(0x237)),process[_0x4b8ccf(0x204)](0x1);}function An(_0x3de0a1){const _0x3db9c6=_0x1727a5;process['stdout'][_0x3db9c6(0x25c)](_0x3db9c6(0x300)+_0x3de0a1['id']+'\x0a'),process[_0x3db9c6(0x2d0)][_0x3db9c6(0x25c)]('Title\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x3de0a1[_0x3db9c6(0x1e0)]+'\x0a'),process['stdout'][_0x3db9c6(0x25c)](_0x3db9c6(0x345)+_0x3de0a1[_0x3db9c6(0x328)]+'\x0a'),process[_0x3db9c6(0x2d0)][_0x3db9c6(0x25c)](_0x3db9c6(0x2c6)+_0x3de0a1[_0x3db9c6(0x297)]+'\x0a'),_0x3de0a1[_0x3db9c6(0x1eb)]&&process['stdout'][_0x3db9c6(0x25c)](_0x3db9c6(0x32c)+_0x3de0a1[_0x3db9c6(0x1eb)]+'\x0a');}async function xn(_0x4586cc,_0x56abd1,_0x822622){const _0x38eb97=_0x1727a5;(!_0x56abd1||_0x822622||!_0x4586cc[_0x38eb97(0x1d5)])&&(console[_0x38eb97(0xe8)](_0x38eb97(0x185)+_0x4586cc[_0x38eb97(0x231)][_0x38eb97(0x2da)]+'\x20sessions\x20cancel\x20<session-id>\x20--turn\x20<turn-id>'),process[_0x38eb97(0x204)](0x2));let {client:_0x486384}=await x(_0x4586cc),_0x2c15ca=await _0x3a4f0c(_0x486384,_0x56abd1,_0x4586cc[_0x38eb97(0x1d5)]);m(_0x4586cc,{'sessionId':_0x56abd1,'turnId':_0x4586cc[_0x38eb97(0x1d5)],'cancelled':_0x2c15ca},_0x34c9a9=>{const _0x49b4ef=_0x38eb97;_0x34c9a9[_0x49b4ef(0x249)]?process[_0x49b4ef(0x2d0)][_0x49b4ef(0x25c)](_0x49b4ef(0x1db)+_0x34c9a9[_0x49b4ef(0x1d5)]+_0x49b4ef(0x1ce)+_0x34c9a9[_0x49b4ef(0x2b8)]+'.\x0a'):process[_0x49b4ef(0x21e)]['write'](_0x49b4ef(0x283)+_0x34c9a9['turnId']+_0x49b4ef(0x2a1)+_0x34c9a9['sessionId']+'.\x0a');}),_0x2c15ca||(process['exitCode']=0x1);}async function En(_0x576534,_0x2e5717,_0x5b62bc){const _0x32f272=_0x1727a5;(!_0x2e5717||/\s/[_0x32f272(0x315)](_0x5b62bc))&&(console[_0x32f272(0xe8)](_0x32f272(0x185)+_0x576534['product'][_0x32f272(0x2da)]+'\x20sessions\x20fork\x20<id>\x20[<message-id>]'),process[_0x32f272(0x204)](0x2));let {client:_0x219def}=await x(_0x576534),_0x236f6c;try{_0x236f6c=await _0x2a0d1c(_0x219def,_0x2e5717,{'atMessageId':_0x5b62bc||void 0x0});}catch(_0x5f457b){if(!_0x2c7d94(_0x5f457b,0x194))throw _0x5f457b;console[_0x32f272(0xe8)](_0x32f272(0x17d)+_0x2e5717+'\x20not\x20found,\x20has\x20no\x20messages'+(_0x5b62bc?_0x32f272(0x140)+_0x5b62bc:'')+'.'),process[_0x32f272(0x204)](0x1);}m(_0x576534,_0x236f6c,_0x522727=>{const _0x188a0a=_0x32f272;process[_0x188a0a(0x2d0)][_0x188a0a(0x25c)](_0x188a0a(0x32e)+_0x2e5717+_0x188a0a(0x11f)+_0x522727['id']+'.\x0a'),process[_0x188a0a(0x21e)][_0x188a0a(0x25c)](_0x188a0a(0x15d)+_0x576534[_0x188a0a(0x231)][_0x188a0a(0x2da)]+_0x188a0a(0x148)+_0x522727['id']+'\x20\x22<prompt>\x22\x0a');});}function In({sessions:_0x2164f4,page:_0x1bb19b,isLastPage:_0x8f02a6},_0x24997c){const _0x343766=_0x1727a5;if(_0x2164f4[_0x343766(0x153)]===0x0)process[_0x343766(0x21e)][_0x343766(0x25c)](_0x343766(0x30e)+_0x1bb19b+'.\x0a');else{process['stdout']['write']('ID'[_0x343766(0x2a3)](0x24)+'\x20\x20'+'UPDATED'[_0x343766(0x2a3)](0x13)+'\x20\x20TITLE\x0a');for(let _0x2827ba of _0x2164f4){let _0x2a2d09=_0x2827ba['updatedAt'][_0x343766(0xfd)]('T','\x20')[_0x343766(0x165)](0x0,0x13),_0x5eead8=_0x2827ba[_0x343766(0x183)]?_0x343766(0x26e)+_0x2827ba[_0x343766(0x183)]+')':'';process[_0x343766(0x2d0)]['write'](_0x2827ba['id'][_0x343766(0x2a3)](0x24)+'\x20\x20'+_0x2a2d09[_0x343766(0x2a3)](0x13)+'\x20\x20'+_0x2827ba[_0x343766(0x1e0)]+_0x5eead8+'\x0a');}}_0x8f02a6||process[_0x343766(0x21e)][_0x343766(0x25c)](_0x343766(0x2bf)+_0x24997c+_0x343766(0x243)+(_0x1bb19b+0x1)+'\x0a');}async function Tn(_0x2f2420){const _0x4a77dc=_0x1727a5;let _0xdaff0a=await X(_0x2f2420[_0x4a77dc(0x231)]['bin']),_0x19f87e=_0x69f4c3(_0x2f2420['env'],_0xdaff0a,_0x2f2420[_0x4a77dc(0x2cc)]);Z(_0x2f2420[_0x4a77dc(0x15e)],_0x2f2420['backendUrl'],_0x19f87e);let _0x2c4266=await _0x109fc8({'auth':_0xdaff0a,'backendUrl':_0x19f87e,'interop':_0x2f2420['headless']?_0x4a77dc(0x2fc):_0x4a77dc(0x1ff)});m(_0x2f2420,_0x2c4266,({checks:_0x9c0e26})=>{const _0x2b2ba9=_0x4a77dc;for(let _0x47d9a8 of _0x9c0e26)process[_0x2b2ba9(0x2d0)]['write'](Un(_0x47d9a8)+'\x0a');}),_0x2c4266['ok']||process[_0x4a77dc(0x204)](0x1);}function Un(_0x2554cd){const _0x2096d1=_0x1727a5;return{'ok':'✓','failed':'✗','skipped':'-'}[_0x2554cd[_0x2096d1(0x242)]]+'\x20'+_0x2554cd[_0x2096d1(0x1b4)]['padEnd'](0xa)+_0x2554cd[_0x2096d1(0x23d)];}async function Pn(_0x5d5170){const _0x36a5d0=_0x1727a5;let _0x863265=_0x5d5170[_0x36a5d0(0x257)];Dn[_0x36a5d0(0x33d)](_0x863265)||(console[_0x36a5d0(0xe8)](_0x36a5d0(0x14c)+_0x5d5170[_0x36a5d0(0x257)]+_0x36a5d0(0x1c6)+_0x5d5170[_0x36a5d0(0x231)][_0x36a5d0(0x2da)]+_0x36a5d0(0x2bd)),process[_0x36a5d0(0x204)](0x2)),_0x863265===''&&_0x5d5170[_0x36a5d0(0x150)]!==void 0x0&&(console[_0x36a5d0(0xe8)](_0x36a5d0(0x116)+_0x5d5170[_0x36a5d0(0x231)][_0x36a5d0(0x2da)]+_0x36a5d0(0x2d1)),process[_0x36a5d0(0x204)](0x2)),_0x863265!==''&&_0x5d5170['sessionId']!==void 0x0&&(console[_0x36a5d0(0xe8)](_0x36a5d0(0x21a)+_0x5d5170[_0x36a5d0(0x231)][_0x36a5d0(0x2da)]+'\x20usage`\x20summary\x20only.'),process[_0x36a5d0(0x204)](0x2));let {client:_0x2e471b}=await x(_0x5d5170);if(_0x863265===_0x36a5d0(0x1c4)){m(_0x5d5170,await _0x448067(_0x2e471b,{'days':_0x5d5170['days']}),Cn);return;}if(_0x863265===_0x36a5d0(0x1bb)){m(_0x5d5170,await _0x3599b1(_0x2e471b,{'days':_0x5d5170[_0x36a5d0(0x150)]}),Rn);return;}let [_0x99e4f,_0x4fa7ff]=await Promise['all']([_0x3134d2(_0x2e471b,{'sessionId':_0x5d5170['sessionId']}),_0x18c3ce(_0x2e471b)]);m(_0x5d5170,{'licensing':_0x99e4f,'monthlySpending':_0x4fa7ff},Nn);}function Nn(_0x193147){const _0x1fd12b=_0x1727a5;let {licensing:_0x2c2f12,monthlySpending:_0x1a9fa0}=_0x193147,_0x29ae03=[_0x2c2f12[_0x1fd12b(0x27e)]?'Licensing:\x20\x20\x20\x20'+_0x2c2f12['pct_used'][_0x1fd12b(0x292)](0x1)+_0x1fd12b(0x124)+(_0x2c2f12['total_quota_pu']??0x0)+'\x20PU\x20used'+(_0x2c2f12['extra_pool_consumed_pu']>0x0?',\x20'+_0x2c2f12[_0x1fd12b(0x169)]+_0x1fd12b(0xe4):'')+_0x1fd12b(0x195)+_0x2c2f12[_0x1fd12b(0x298)]+')':_0x1fd12b(0x2e5),_0x1fd12b(0x346)+_0x1a9fa0['monthly_spend_usd'][_0x1fd12b(0x292)](0x2)+_0x1fd12b(0x210)+(_0x1a9fa0['limit_enabled']&&_0x1a9fa0[_0x1fd12b(0x19c)]!==null?_0x1fd12b(0x147)+_0x1a9fa0[_0x1fd12b(0x19c)][_0x1fd12b(0x292)](0x2)+_0x1fd12b(0x1dc):_0x1fd12b(0x12b))];_0x2c2f12['session_consumed_pu']!==null&&_0x2c2f12[_0x1fd12b(0x24b)]!==void 0x0&&_0x29ae03[_0x1fd12b(0x199)](_0x1fd12b(0x2ca)+_0x2c2f12[_0x1fd12b(0x24b)]+_0x1fd12b(0xed)),process['stdout'][_0x1fd12b(0x25c)](_0x29ae03[_0x1fd12b(0x10a)]('\x0a')+'\x0a');}function Cn(_0x57b03d){const _0x261fc2=_0x1727a5;let _0x5526f1=[_0x261fc2(0x31e)+_0x57b03d[_0x261fc2(0x2cf)]+'\x20days:\x20'+_0x57b03d[_0x261fc2(0xe0)]+_0x261fc2(0x1a7)+_0x57b03d[_0x261fc2(0x1af)]+'\x20active\x20days',_0x261fc2(0x2a4)+_0x57b03d[_0x261fc2(0x2ef)][_0x261fc2(0x292)](0x2)+_0x261fc2(0x2cd)+_0x57b03d['estimated_cost_usd'][_0x261fc2(0x292)](0x2)+_0x261fc2(0x303)+_0x57b03d['total_token_units']+_0x261fc2(0x2ce),_0x261fc2(0x1f0)+_0x57b03d[_0x261fc2(0x230)]+_0x261fc2(0xf7)+_0x57b03d[_0x261fc2(0x220)]+_0x261fc2(0x2de)];for(let [_0x616910,_0x7ba0b]of Object[_0x261fc2(0x168)](_0x57b03d[_0x261fc2(0x2f7)]))_0x5526f1['push']('\x20\x20'+_0x616910+':\x20'+_0x7ba0b+'\x20token\x20units');process[_0x261fc2(0x2d0)][_0x261fc2(0x25c)](_0x5526f1[_0x261fc2(0x10a)]('\x0a')+'\x0a');}function Rn(_0x4bc7e9){const _0x29e9c9=_0x1727a5;if(_0x4bc7e9[_0x29e9c9(0x340)][_0x29e9c9(0x153)]===0x0){process[_0x29e9c9(0x2d0)][_0x29e9c9(0x25c)](_0x29e9c9(0xe5)+_0x4bc7e9[_0x29e9c9(0x2cf)]+_0x29e9c9(0x172));return;}let _0x1275f7=['Date\x20\x20\x20\x20\x20\x20\x20\x20Token\x20units\x20\x20Prompt\x20tokens\x20\x20Completion\x20tokens'];for(let _0x1e0cd6 of _0x4bc7e9[_0x29e9c9(0x340)])_0x1275f7[_0x29e9c9(0x199)](_0x1e0cd6[_0x29e9c9(0x186)]+'\x20\x20'+String(_0x1e0cd6[_0x29e9c9(0x33b)])[_0x29e9c9(0x1cb)](0xb)+'\x20\x20'+String(_0x1e0cd6[_0x29e9c9(0xf2)])[_0x29e9c9(0x1cb)](0xd)+'\x20\x20'+String(_0x1e0cd6[_0x29e9c9(0x22a)])[_0x29e9c9(0x1cb)](0x11));process[_0x29e9c9(0x2d0)][_0x29e9c9(0x25c)](_0x1275f7[_0x29e9c9(0x10a)]('\x0a')+'\x0a');}async function _n(_0x4c9b78,_0x57ec67){const _0x3b2b6c=_0x1727a5;let _0xd47bf=await On(_0x4c9b78[_0x3b2b6c(0x257)],_0x57ec67,_0x4c9b78['product'][_0x3b2b6c(0x2da)]);_0x4c9b78['model']&&(_0xd47bf['model']=_0x4c9b78[_0x3b2b6c(0x2f5)]);let {client:_0x20c336}=await x(_0x4c9b78);try{_0x57ec67===_0x3b2b6c(0x34a)?m(_0x4c9b78,await _0x53f1f7(_0x20c336,_0xd47bf,void 0x0),Mn):_0x57ec67===_0x3b2b6c(0x188)?m(_0x4c9b78,await _0x1cdc35(_0x20c336,_0xd47bf,void 0x0),jn):m(_0x4c9b78,await _0x25979e(_0x20c336,_0xd47bf,void 0x0),Fn);}catch(_0x33a06c){if(!_0x3c1953(_0x33a06c))throw _0x33a06c;console['error'](_0x33a06c['message']),process[_0x3b2b6c(0x204)](0x1);}}async function On(_0x457116,_0x2d0f9d,_0x2c3d40){const _0x475620=_0x1727a5;let _0x11ef66;try{_0x11ef66=_0x457116&&_0x457116!=='-'?_0x4559f8['readFileSync'](_0x436140[_0x475620(0x17e)](_0x457116),_0x475620(0x13c)):await J(_0x457116,process[_0x475620(0x2c0)]);}catch(_0x3c4e42){console['error'](_0x2d0f9d+_0x475620(0x1b6)+_0x3c4e42[_0x475620(0x2a2)]+').'),process[_0x475620(0x204)](0x2);}return _0x11ef66||(console[_0x475620(0xe8)](_0x2d0f9d+_0x475620(0x130)+_0x2c3d40+'\x20'+_0x2d0f9d+'\x20<file.json>,\x20or\x20-\x20to\x20read\x20stdin.'),process[_0x475620(0x204)](0x2)),Re(_0x11ef66,_0x2d0f9d,_0x475620(0x341));}function Re(_0x42229e,_0x18c237,_0x3828b0){const _0x48f31e=_0x1727a5;let _0x19e68b;try{_0x19e68b=JSON[_0x48f31e(0x162)](_0x42229e);}catch(_0x5f0978){console[_0x48f31e(0xe8)](_0x18c237+':\x20'+_0x3828b0+_0x48f31e(0x13b)+_0x5f0978[_0x48f31e(0x2a2)]+').'),process[_0x48f31e(0x204)](0x2);}return(typeof _0x19e68b!=_0x48f31e(0x139)||_0x19e68b===null||Array[_0x48f31e(0x1d0)](_0x19e68b))&&(console[_0x48f31e(0xe8)](_0x18c237+':\x20'+_0x3828b0+_0x48f31e(0x26b)),process['exit'](0x2)),_0x19e68b;}function _e(_0x4aa1e4,_0x487d8d){const _0x386557=_0x1727a5;let _0x16f153;try{_0x16f153=_0x4559f8[_0x386557(0x352)](_0x436140[_0x386557(0x17e)](_0x4aa1e4),_0x386557(0x13c));}catch(_0x51b478){console['error'](_0x487d8d+_0x386557(0x293)+_0x51b478['message']+').'),process[_0x386557(0x204)](0x2);}return Re(_0x16f153,_0x487d8d,_0x386557(0x19e));}async function Ln(_0x2b70e1){const _0x2580c3=_0x1727a5;_0x2b70e1[_0x2580c3(0x1a3)]===void 0x0&&(console[_0x2580c3(0xe8)](_0x2580c3(0x1e7)+_0x2b70e1['product'][_0x2580c3(0x2da)]+_0x2580c3(0x111)),process['exit'](0x2));let _0x469447=_e(_0x2b70e1[_0x2580c3(0x1a3)],_0x2580c3(0x356)),_0x212ddc=(await J(_0x2b70e1[_0x2580c3(0x257)],process[_0x2580c3(0x2c0)]))[_0x2580c3(0x312)]();_0x212ddc||(console[_0x2580c3(0xe8)](_0x2580c3(0x225)+_0x2b70e1[_0x2580c3(0x231)][_0x2580c3(0x2da)]+_0x2580c3(0x1ab)),process[_0x2580c3(0x204)](0x2));let {client:_0x4a0bdb}=await x(_0x2b70e1);try{let _0x4be034=await _0x5d3c18(_0x4a0bdb,{'prompt':_0x212ddc,'jsonSchema':_0x469447,'model':_0x2b70e1[_0x2580c3(0x2f5)]||process.env.MODEL||_0x1d9766,..._0x2b70e1[_0x2580c3(0x2b8)]!==void 0x0&&{'sessionId':_0x2b70e1[_0x2580c3(0x2b8)]}},void 0x0);m(_0x2b70e1,_0x4be034,_0xb9c20b=>{const _0x46812e=_0x2580c3;process['stdout']['write'](JSON[_0x46812e(0x268)](_0xb9c20b[_0x46812e(0x11d)],null,0x2)+'\x0a');});}catch(_0x55a2e4){if(!_0x321fec(_0x55a2e4))throw _0x55a2e4;console[_0x2580c3(0xe8)](_0x55a2e4['message']),process[_0x2580c3(0x204)](0x1);}}function ee(_0x8efc7d){const _0x28b438=_0x1727a5;process[_0x28b438(0x2d0)][_0x28b438(0x25c)](_0x28b438(0x29d)+_0x8efc7d[_0x28b438(0x2f5)]+'\x20('+_0x8efc7d[_0x28b438(0x1e8)]+_0x28b438(0x296)+_0x8efc7d[_0x28b438(0x2be)][_0x28b438(0x299)]+'\x20tokens\x0a');}function Mn(_0x483966){const _0x17c84f=_0x1727a5;ee(_0x483966);for(let _0x1c5947 of Object[_0x17c84f(0x316)](_0x483966[_0x17c84f(0x12a)])){let _0x4e013f=_0x483966['answers'][_0x1c5947],_0x558fe4=_0x4e013f[_0x17c84f(0x176)]===_0x17c84f(0x1a0)?_0x17c84f(0x136)+_0x4e013f['probability']['toFixed'](0x2):_0x4e013f[_0x17c84f(0x176)]===_0x17c84f(0x12f)?_0x17c84f(0x2a9)+_0x4e013f[_0x17c84f(0x12f)]+'\x20(confidence\x20'+_0x4e013f['confidence'][_0x17c84f(0x292)](0x2)+')':_0x17c84f(0x337)+_0x4e013f[_0x17c84f(0x10f)][_0x17c84f(0x292)](0x2)+_0x17c84f(0x2b6)+_0x4e013f[_0x17c84f(0x223)][_0x17c84f(0x292)](0x2)+')';process['stdout'][_0x17c84f(0x25c)]('\x20\x20'+_0x1c5947+':\x20'+_0x558fe4+'\x0a');}}function jn(_0x442aae){const _0x5b0b33=_0x1727a5;ee(_0x442aae),_0x442aae[_0x5b0b33(0x2cb)][_0x5b0b33(0x15f)]((_0x506049,_0x449633)=>{const _0x18a986=_0x5b0b33;process['stdout'][_0x18a986(0x25c)]('\x20\x20'+(_0x449633+0x1)+'.\x20'+_0x506049['id']+'\x20\x20'+_0x506049[_0x18a986(0x10f)][_0x18a986(0x292)](0x3)+_0x18a986(0x276)+_0x506049[_0x18a986(0x325)]+')\x0a');});}function Fn(_0x524f0f){const _0x479f7a=_0x1727a5;ee(_0x524f0f),process[_0x479f7a(0x2d0)][_0x479f7a(0x25c)]('Rubric\x20'+_0x524f0f[_0x479f7a(0x16e)]+'\x0a');for(let _0x5eff62 of _0x524f0f[_0x479f7a(0x2cb)])process[_0x479f7a(0x2d0)][_0x479f7a(0x25c)]('\x20\x20'+_0x5eff62['id']+':\x20'+_0x5eff62[_0x479f7a(0x1d3)]+_0x479f7a(0x2b6)+_0x5eff62[_0x479f7a(0x223)][_0x479f7a(0x292)](0x2)+')\x0a');}async function Bn(_0xcb5fa1){const _0x32d2a5=_0x1727a5;let _0xcddfa4=_0xcb5fa1[_0x32d2a5(0x257)][_0x32d2a5(0x312)]();_0xcddfa4||(console[_0x32d2a5(0xe8)](_0x32d2a5(0x125)+_0xcb5fa1[_0x32d2a5(0x231)][_0x32d2a5(0x2da)]+_0x32d2a5(0x2c2)),process['exit'](0x2));let {client:_0x1ac5e6}=await x(_0xcb5fa1);try{let _0x2cb898=_0xcddfa4==='-'?{'data':await Hn(process[_0x32d2a5(0x2c0)])}:_0xcddfa4;m(_0xcb5fa1,await _0x308598(_0x1ac5e6,_0x2cb898,void 0x0),_0x1af454=>{process['stdout']['write'](_0x1af454['text']+'\x0a');});}catch(_0x5b4050){if(_0x1aff61(_0x5b4050)&&(console[_0x32d2a5(0xe8)](_0x5b4050['message']),process['exit'](_0x5b4050['status']===void 0x0?0x2:0x1)),typeof _0x5b4050?.['code']!=_0x32d2a5(0x302))throw _0x5b4050;console[_0x32d2a5(0xe8)](_0x32d2a5(0x200)+_0xcddfa4+'\x20('+_0x5b4050['message']+').'),process[_0x32d2a5(0x204)](0x2);}}async function Hn(_0x59b451){const _0x37ca2e=_0x1727a5;let _0x5d8022=[];for await(let _0x298497 of _0x59b451)_0x5d8022[_0x37ca2e(0x199)](Buffer[_0x37ca2e(0x2c1)](_0x298497));return Buffer['concat'](_0x5d8022);}async function Jn(_0x152965){const _0x5871a7=_0x1727a5;let [_0x5cf94a='',_0xc15a27='',..._0x558202]=_0x152965[_0x5871a7(0x26f)];ke[_0x5871a7(0x33d)](_0x5cf94a)||(console['error']((_0x5cf94a?_0x5871a7(0x24d)+_0x5cf94a+'.\x20':'')+'Use:\x20'+_0x152965[_0x5871a7(0x231)][_0x5871a7(0x2da)]+'\x20delegations\x20'+ke[_0x5871a7(0x10a)](_0x5871a7(0x2db))+'.'),process['exit'](0x2));let _0x4f4207=_0x5cf94a;_0x4f4207!==_0x5871a7(0xec)&&(_0x152965[_0x5871a7(0x107)]!==void 0x0||_0x152965[_0x5871a7(0x217)]!==void 0x0||_0x152965[_0x5871a7(0x2b8)]!==void 0x0)&&(console[_0x5871a7(0xe8)](_0x5871a7(0x117)+_0x152965[_0x5871a7(0x231)][_0x5871a7(0x2da)]+_0x5871a7(0x1a5)),process['exit'](0x2));let _0x225526=(_0x4f4207===_0x5871a7(0xec)?_0x152965[_0x5871a7(0x26f)][_0x5871a7(0x165)](0x1):_0x558202)[_0x5871a7(0x10a)]('\x20')[_0x5871a7(0x312)](),_0x47b511=_0x4f4207==='create'||_0x4f4207==='complete';(_0x4f4207!==_0x5871a7(0xec)&&!_0xc15a27||(_0x47b511?!_0x225526:_0x225526)||_0x4f4207==='create'&&!_0x152965[_0x5871a7(0x2b8)])&&(console[_0x5871a7(0xe8)](_0x5871a7(0x185)+_0x152965[_0x5871a7(0x231)]['bin']+'\x20'+ve[_0x4f4207]),process['exit'](0x2));let _0x284d26=_0x47b511&&_0x225526==='-'?(await J('-',process['stdin']))[_0x5871a7(0x312)]():_0x225526;_0x47b511&&!_0x284d26&&(console[_0x5871a7(0xe8)](_0x5871a7(0x185)+_0x152965[_0x5871a7(0x231)][_0x5871a7(0x2da)]+'\x20'+ve[_0x4f4207]+_0x5871a7(0x332)),process[_0x5871a7(0x204)](0x2));let {client:_0x3d9780}=await x(_0x152965);try{await Gn(_0x152965,_0x3d9780,_0x4f4207,_0xc15a27,_0x284d26);}catch(_0x1f4a83){if(!_0x449151(_0x1f4a83))throw _0x1f4a83;console[_0x5871a7(0xe8)](_0x1f4a83['message']),process['exit'](0x1);}}async function Gn(_0x1ba651,_0x4fab77,_0x3161ec,_0x40000d,_0x495dc9){const _0x23407a=_0x1727a5;switch(_0x3161ec){case _0x23407a(0x357):m(_0x1ba651,await _0x3a0758(_0x4fab77,_0x40000d),Wn);return;case'pending':m(_0x1ba651,await _0x4ae442(_0x4fab77,_0x40000d),_0x1992e4=>{const _0x54708e=_0x23407a;_0x1992e4[_0x54708e(0x24e)]&&process[_0x54708e(0x2d0)]['write'](_0x54708e(0x342)+_0x1992e4[_0x54708e(0x24e)]['id']+'\x20('+_0x1992e4[_0x54708e(0x24e)][_0x54708e(0x242)]+_0x54708e(0xfb)),_0x1992e4['pendingResults'][_0x54708e(0x153)]===0x0&&process[_0x54708e(0x21e)][_0x54708e(0x25c)](_0x54708e(0x2dd));for(let _0x337584 of _0x1992e4['pendingResults'])process[_0x54708e(0x2d0)][_0x54708e(0x25c)]('\x0a'+_0x337584['id']+_0x54708e(0x2fb)+(_0x337584[_0x54708e(0x191)]??_0x54708e(0x2f4))+'\x20\x20'+(_0x337584[_0x54708e(0x308)]??'')+'\x0a'+(_0x337584[_0x54708e(0x348)]?.['content']??'')+'\x0a');_0x1992e4[_0x54708e(0x273)][_0x54708e(0x153)]>0x0&&process[_0x54708e(0x21e)][_0x54708e(0x25c)](_0x54708e(0x143)+_0x1ba651['product'][_0x54708e(0x2da)]+_0x54708e(0x1ac));});return;case _0x23407a(0x2fa):m(_0x1ba651,await _0x2ffb29(_0x4fab77,_0x40000d),Se);return;case _0x23407a(0xec):{let _0xf719ee=await _0x2adf8d(_0x4fab77,{'sessionId':_0x1ba651[_0x23407a(0x2b8)],'task':_0x495dc9,..._0x1ba651[_0x23407a(0x217)]!==void 0x0&&{'contextSummary':_0x1ba651[_0x23407a(0x217)]},..._0x1ba651[_0x23407a(0x107)]!==void 0x0&&{'recipient':_0x1ba651['delegateTo']}});m(_0x1ba651,_0xf719ee,_0x1b6e87=>{const _0x1f71b0=_0x23407a;_0x1b6e87[_0x1f71b0(0xf8)]?process[_0x1f71b0(0x2d0)][_0x1f71b0(0x25c)]('Delegated\x20'+_0x1b6e87[_0x1f71b0(0x1eb)]+_0x1f71b0(0x25a)+_0x1b6e87[_0x1f71b0(0xf8)][_0x1f71b0(0xf5)]+'\x20<'+_0x1b6e87['assignedUser'][_0x1f71b0(0x322)]+_0x1f71b0(0x13f)):process[_0x1f71b0(0x2d0)][_0x1f71b0(0x25c)](_0x1f71b0(0x291)+_0x1b6e87[_0x1f71b0(0x1eb)]+_0x1f71b0(0x285)+_0x1b6e87[_0x1f71b0(0x164)]+'\x0a');});return;}case _0x23407a(0x11e):{let _0x4629f7=await _0x3f4cd9(_0x4fab77,_0x40000d);m(_0x1ba651,_0x4629f7,_0x2b407e=>{const _0x30b24e=_0x23407a;Se(_0x2b407e),process[_0x30b24e(0x2d0)][_0x30b24e(0x25c)](_0x30b24e(0x295)+_0x2b407e['sessionId']+'\x0a'),process['stderr']['write'](_0x30b24e(0x34d)+_0x1ba651[_0x30b24e(0x231)]['bin']+'\x20--session\x20'+_0x2b407e[_0x30b24e(0x2b8)]+_0x30b24e(0x2e6)+_0x1ba651[_0x30b24e(0x231)]['bin']+_0x30b24e(0x1cd)+_0x2b407e['delegationId']+_0x30b24e(0xfe));});return;}case _0x23407a(0x356):{let {alreadyCompleted:_0x272d4f}=await _0x43f2e7(_0x4fab77,_0x40000d,{'content':_0x495dc9});m(_0x1ba651,{'delegationId':_0x40000d,'alreadyCompleted':_0x272d4f},_0x1f35c8=>{const _0x2130d3=_0x23407a;process[_0x2130d3(0x2d0)][_0x2130d3(0x25c)]((_0x1f35c8[_0x2130d3(0x2a6)]?'Already\x20answered':_0x2130d3(0x142))+_0x2130d3(0x324)+_0x1f35c8[_0x2130d3(0x1eb)]+'.\x0a');});return;}case _0x23407a(0x13e):{let _0xee1b5b=await _0xdac512(_0x4fab77,_0x40000d);m(_0x1ba651,{'delegationId':_0x40000d,..._0xee1b5b},_0x2eadbf=>{const _0x159a88=_0x23407a;process[_0x159a88(0x2d0)][_0x159a88(0x25c)]((_0x2eadbf[_0x159a88(0x127)]?_0x159a88(0x14d):_0x159a88(0x289))+'\x20delegation\x20'+_0x2eadbf[_0x159a88(0x1eb)]+'.\x0a');});return;}default:{let _0x1ca5c1={'dismiss':_0x303208,'cancel':_0x54acf2,'delete':_0xb25e62}[_0x3161ec];await _0x1ca5c1(_0x4fab77,_0x40000d);let _0xeb0ad={'dismiss':'dismissed','cancel':_0x23407a(0x249),'delete':_0x23407a(0x17f)}[_0x3161ec];m(_0x1ba651,{'delegationId':_0x40000d,[_0xeb0ad]:!0x0},()=>{const _0x474f8f=_0x23407a;process[_0x474f8f(0x2d0)][_0x474f8f(0x25c)](''+_0xeb0ad[0x0]['toUpperCase']()+_0xeb0ad[_0x474f8f(0x165)](0x1)+_0x474f8f(0x324)+_0x40000d+'.\x0a');});}}}function Wn(_0x5cfd3c){const _0x468c41=_0x1727a5;if(_0x5cfd3c['length']===0x0){process['stderr'][_0x468c41(0x25c)](_0x468c41(0x25d));return;}process[_0x468c41(0x2d0)][_0x468c41(0x25c)]('ID'['padEnd'](0x24)+'\x20\x20'+_0x468c41(0x1b5)[_0x468c41(0x2a3)](0x9)+'\x20\x20'+_0x468c41(0x2a8)[_0x468c41(0x2a3)](0x18)+'\x20\x20TASK\x0a');for(let _0xd4d270 of _0x5cfd3c)process['stdout'][_0x468c41(0x25c)](_0xd4d270['id']['padEnd'](0x24)+'\x20\x20'+_0xd4d270[_0x468c41(0x242)][_0x468c41(0x2a3)](0x9)+'\x20\x20'+(_0xd4d270[_0x468c41(0x191)]??'-')['padEnd'](0x18)+'\x20\x20'+(_0xd4d270[_0x468c41(0x308)]??'')+'\x0a');}function Se(_0x3e2069){const _0x257005=_0x1727a5;process[_0x257005(0x2d0)][_0x257005(0x25c)]('From\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x3e2069['sourceUserEmail']??'-')+'\x0a'),_0x3e2069[_0x257005(0x22d)]&&process['stdout'][_0x257005(0x25c)]('Session\x20\x20\x20\x20\x20\x20\x20'+_0x3e2069['sourceTitle']+'\x0a'),process[_0x257005(0x2d0)][_0x257005(0x25c)]('Task\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x3e2069['task']??'-')+'\x0a'),_0x3e2069['contextSummary']&&process[_0x257005(0x2d0)]['write']('\x0a'+_0x3e2069['contextSummary']+'\x0a\x0a');}async function Kn(_0x1cf4cc){const _0x4ed598=_0x1727a5;_0x1cf4cc[_0x4ed598(0x257)][_0x4ed598(0x312)]()||(console[_0x4ed598(0xe8)](_0x4ed598(0x185)+_0x1cf4cc['product'][_0x4ed598(0x2da)]+_0x4ed598(0x152)),process[_0x4ed598(0x204)](0x2));let {client:_0x501d83}=await x(_0x1cf4cc),_0x2ce95a;try{_0x2ce95a=await _0x2573ee(_0x501d83,_0x1cf4cc[_0x4ed598(0x257)]);}catch(_0x5054b8){if(!_0x449151(_0x5054b8))throw _0x5054b8;console[_0x4ed598(0xe8)](_0x5054b8[_0x4ed598(0x2a2)]),process[_0x4ed598(0x204)](0x1);}m(_0x1cf4cc,_0x2ce95a,_0x4340ee=>{const _0x4c29d2=_0x4ed598;_0x4340ee[_0x4c29d2(0x153)]===0x0&&process[_0x4c29d2(0x21e)][_0x4c29d2(0x25c)]('No\x20one\x20matches\x20\x22'+_0x1cf4cc[_0x4c29d2(0x257)][_0x4c29d2(0x312)]()+'\x22.\x0a');for(let _0x5e8e47 of _0x4340ee)process[_0x4c29d2(0x2d0)]['write'](_0x5e8e47[_0x4c29d2(0x322)]['padEnd'](0x20)+'\x20\x20'+_0x5e8e47[_0x4c29d2(0xf5)]+'\x0a');});}async function Qn(_0x3b2193){const _0x48f457=_0x1727a5;_0x3b2193['env']===_0x48f457(0x203)&&(console[_0x48f457(0xe8)]('--env\x20localhost\x20has\x20no\x20OAuth\x20flow;\x20pick\x20alpha,\x20staging,\x20or\x20production.'),process['exit'](0x2));let _0x2058a1=G(_0x54c8e3()),_0x28ba25=_0x3b2193['skipEnvCheck'];if(_0x3b2193[_0x48f457(0x15e)]){let _0x2d68b0=_0x3b2193['env'];await _0x177d5d({'env':_0x2d68b0,'tenant':_0x3b2193[_0x48f457(0x19a)]??q(_0x2058a1,_0x572fa2[_0x2d68b0]),'skipEnvCheck':_0x28ba25});return;}let _0x320642=_0x3b2193['url']??Ce();if(_0x320642){await _0x177d5d({'baseUrl':_0x320642,'tenant':_0x3b2193[_0x48f457(0x19a)]??q(_0x2058a1,_0x320642),'skipEnvCheck':_0x28ba25});return;}if(_0x2058a1?.[_0x48f457(0x2d3)]){await _0x177d5d({'baseUrl':_0x2058a1[_0x48f457(0x2d3)],'tenant':_0x3b2193[_0x48f457(0x19a)]??_0x2058a1['tenantName'],'skipEnvCheck':_0x28ba25});return;}console[_0x48f457(0xe8)]('First\x20login\x20requires\x20--env\x20or\x20--url.\x20Usage:\x20'+_0x3b2193[_0x48f457(0x231)][_0x48f457(0x2da)]+_0x48f457(0x274)+_0x3b2193[_0x48f457(0x231)][_0x48f457(0x2da)]+_0x48f457(0x161)),process[_0x48f457(0x204)](0x2);}function q(_0x4195d7,_0x13c612){const _0x22ecc3=_0x1727a5;return _0x4195d7?.['baseUrl']&&qn(_0x4195d7[_0x22ecc3(0x2d3)],_0x13c612)?_0x4195d7['tenantName']:void 0x0;}function qn(_0x4b1bf0,_0x4b0bb0){const _0x4e761e=_0x1727a5;try{return new URL(_0x4b1bf0)[_0x4e761e(0x264)]===new URL(_0x4b0bb0)[_0x4e761e(0x264)];}catch{return!0x1;}}async function Yn(_0x5750b9,_0x5c42fb){const _0x43682b=_0x1727a5;V()&&(console[_0x43682b(0xe8)]('Auth\x20comes\x20from\x20AUTH_TOKEN/TENANT_ID/ORG_ID\x20—\x20set\x20TENANT_ID\x20and\x20TENANT_SLUG\x20to\x20change\x20the\x20tenant.'),process[_0x43682b(0x204)](0x2));let _0x567382=await _0x20a8c0();if(_0x567382||(console[_0x43682b(0xe8)](zn(_0x5c42fb)),process['exit'](0x2)),_0x5750b9[_0x43682b(0x312)]()){let _0x22b504=await _0x1d95a8(_0x567382,_0x5750b9);_0x3f46f4(_0x22b504)||(console['error'](_0x43682b(0x213)+_0x54c8e3()+_0x43682b(0x2d9)+_0x567382[_0x43682b(0x287)]+'.'),process[_0x43682b(0x204)](0x1)),console[_0x43682b(0xff)](_0x43682b(0x31c)+_0x22b504['tenantName']+'\x20('+_0x22b504['tenantId']+_0x43682b(0x18b)+_0x54c8e3());return;}Vn(await _0x44c6ef(_0x567382),_0x567382,_0x5c42fb);}function zn(_0x548e1f){const _0x259704=_0x1727a5;if(_0x4559f8[_0x259704(0x266)](_0x54c8e3()))return _0x259704(0x327)+_0x548e1f+_0x259704(0x113);let _0x247309=z();return G(_0x247309)?_0x259704(0x2ba)+_0x247309+_0x259704(0x307)+_0x548e1f+'\x20login\x20--env\x20<env>`\x20for\x20a\x20CLI\x20login\x20of\x20your\x20own.':_0x259704(0x134)+_0x548e1f+'\x20login\x20--env\x20<alpha|staging|production>`\x20first.';}function Vn(_0x271338,_0x1c4cd8,_0x20b1a9){const _0x137186=_0x1727a5;let _0x1c4715=_0x271338[_0x137186(0x233)](_0x49c78b=>_0x49c78b['id']===_0x1c4cd8[_0x137186(0x1c1)]?'*\x20'+_0x49c78b[_0x137186(0x1b4)]+_0x137186(0x313):'\x20\x20'+_0x49c78b[_0x137186(0x1b4)]);process[_0x137186(0x2d0)]['write'](_0x137186(0x144)+(_0x1c4cd8[_0x137186(0x2e9)]??_0x1c4cd8['organizationId'])+':\x0a'+_0x1c4715[_0x137186(0x10a)]('\x0a')+'\x0a'),_0x271338[_0x137186(0x153)]>0x1&&process[_0x137186(0x2d0)]['write'](_0x137186(0x205)+_0x20b1a9+_0x137186(0x105));}function Xn(_0x49f3ad){const _0x12e46a=_0x1727a5;return _0x49f3ad?.[_0x12e46a(0x1e3)]?.[_0x12e46a(0x242)]===0x191||/401/[_0x12e46a(0x315)](String(_0x49f3ad?.['message']??''));}function $e(_0x14c79e,_0x32e7eb,_0x520452,_0x2f87f3){const _0x163fbd=_0x1727a5;let _0x19fa85=_0x14c79e[_0x163fbd(0x2f5)]||process.env.MODEL;return{'backendUrl':_0x520452,'auth':_0x32e7eb,'enableComputerUse':!_0x14c79e[_0x163fbd(0x1cc)]&&!_0x14c79e[_0x163fbd(0x2dc)],'autoSpawnInterop':!_0x14c79e['headless'],'enableConnections':!_0x14c79e[_0x163fbd(0x23b)],'enableSecurity':!_0x14c79e[_0x163fbd(0x2e2)],'keepInteropAlive':_0x14c79e[_0x163fbd(0x238)],..._0x2f87f3[_0x163fbd(0x158)]?{'enableBackgroundCommands':!0x1}:{},..._0x14c79e[_0x163fbd(0x175)]?{'enableMemory':!0x1}:{},..._0x14c79e[_0x163fbd(0x279)]?{'enableTaskAutomation':!0x0}:{},..._0x14c79e['preloadSkills']['length']>0x0?{'preloadSkills':_0x14c79e[_0x163fbd(0x344)]}:{},..._0x19fa85?{'model':_0x19fa85}:{},..._0x14c79e[_0x163fbd(0x10e)]?{'projectId':_0x14c79e['projectId']}:{},..._0x14c79e['vertical']?{'vertical':_0x14c79e[_0x163fbd(0x1cf)]}:{},..._0x14c79e[_0x163fbd(0x309)]?{'workingDirectory':_0x14c79e[_0x163fbd(0x309)]}:{},..._0x14c79e[_0x163fbd(0x218)]?{'bundledSkillsPath':_0x14c79e['bundledSkillsPath']}:{},..._0x14c79e[_0x163fbd(0x2fd)]?{'effort':_0x14c79e[_0x163fbd(0x2fd)]}:{},..._0x14c79e[_0x163fbd(0x2b8)]?{'sessionId':_0x14c79e['sessionId']}:{},..._0x14c79e[_0x163fbd(0x2b3)]?{'verbose':!0x0}:{},..._0x14c79e[_0x163fbd(0x231)][_0x163fbd(0x2e7)]?{'agentName':_0x14c79e[_0x163fbd(0x231)]['agentName']}:{}};}async function Zn(_0x16c6bb){const _0x429f82=_0x1727a5;let _0x221028=_0x16c6bb[_0x429f82(0x329)]!==_0x429f82(0x1c3),_0x450f2f=_0x16c6bb[_0x429f82(0x1a3)]===void 0x0?null:_e(_0x16c6bb[_0x429f82(0x1a3)],_0x16c6bb[_0x429f82(0x231)][_0x429f82(0x2da)]),_0xf80569=!_0x221028&&!_0x450f2f&&!_0x16c6bb[_0x429f82(0x248)]&&_0x16c6bb[_0x429f82(0x257)]!=='-'&&!!process[_0x429f82(0x2c0)]['isTTY']&&!!process[_0x429f82(0x2d0)]['isTTY'],_0x3a6e4d=_0x16c6bb['inputFormat']===_0x429f82(0x2a7)?le(process[_0x429f82(0x2c0)],_0x7294f4=>{const _0x2f34ea=_0x429f82;process[_0x2f34ea(0x21e)][_0x2f34ea(0x25c)](_0x7294f4['message']+_0x2f34ea(0x211));}):null,_0x2dd907=_0x3a6e4d?(await _0x3a6e4d[_0x429f82(0x18c)]())[_0x429f82(0x234)]:void 0x0,_0x1b4a75=_0x3a6e4d?_0x2dd907?.['text']??'':_0xf80569?_0x16c6bb['prompt'][_0x429f82(0x312)]():await J(_0x16c6bb[_0x429f82(0x257)],process[_0x429f82(0x2c0)]);if(!_0xf80569&&!_0x1b4a75&&(console['error']('Missing\x20prompt.\x20Pass\x20it\x20as\x20an\x20argument,\x20pipe\x20it\x20via\x20stdin,\x20or\x20run\x20`'+_0x16c6bb['product'][_0x429f82(0x2da)]+_0x429f82(0x18a)),process[_0x429f82(0x204)](0x2)),!_0x221028){await Ae(_0x16c6bb,_0x1b4a75,_0xf80569,null,_0x450f2f,null);return;}let _0x3c4b22=!0x1,_0x38cd1b=_0xbdc71f=>{const _0x144c00=_0x429f82;_0x3c4b22=!0x0,O(_0x2234f7(_0xbdc71f)),(_0xbdc71f[_0x144c00(0xf1)]||_0xbdc71f[_0x144c00(0x1f8)])&&(process[_0x144c00(0x33e)]=0x1);},_0x3511a7=Date['now']();try{await Ae(_0x16c6bb,_0x1b4a75,!0x1,_0x38cd1b,_0x450f2f,_0x3a6e4d?{'messages':_0x3a6e4d,'first':_0x2dd907,'close':()=>{const _0x30319d=_0x429f82;process[_0x30319d(0x2c0)][_0x30319d(0x190)]();}}:null);}catch(_0x3c824d){if(_0x3c4b22)throw _0x3c824d;process[_0x429f82(0x21e)]['write']((_0x3c824d instanceof Error?_0x3c824d['stack']??_0x3c824d['message']:String(_0x3c824d))+'\x0a'),_0x38cd1b(new _0x55760d(_0x3511a7)[_0x429f82(0x281)]({'endedAtMs':Date['now'](),'usage':[],'error':_0x3c824d}));}finally{_0x3a6e4d&&(process[_0x429f82(0x2c0)]['pause'](),_0x3a6e4d['return'](void 0x0));}}async function Ae(_0x5342a0,_0x1e80ce,_0x594a16,_0x4f6922,_0x1d426b,_0x2c6923){const _0x1b0db1=_0x1727a5;y={'lastType':null,'quiet':_0x5342a0['quiet'],'bin':_0x5342a0[_0x1b0db1(0x231)][_0x1b0db1(0x2da)]};let _0x28581c=new Set(),_0x39ecd0,_0x5065c5=_0x491265=>{const _0x26a199=_0x1b0db1;(!_0x4f6922||_0x491265[_0x26a199(0x176)]===_0x26a199(0x1ba)||_0x491265[_0x26a199(0x176)]==='turn_start')&&(_0x39ecd0??Oe)(_0x491265);for(let _0x37fecc of _0x28581c)_0x37fecc(_0x491265);},_0x41284e=await X(_0x5342a0[_0x1b0db1(0x231)][_0x1b0db1(0x2da)]),_0x3fe974=new _0x1f2250();_0x3fe974[_0x1b0db1(0x1c5)](_0x5065c5);let _0x1a01f6=_0x69f4c3(_0x5342a0['env'],_0x41284e,_0x5342a0[_0x1b0db1(0x2cc)]);Z(_0x5342a0[_0x1b0db1(0x15e)],_0x5342a0[_0x1b0db1(0x2cc)],_0x1a01f6);let _0x36f497={'input':null},_0x196b43=_0x594a16?se(()=>_0x36f497[_0x1b0db1(0x110)],_0x54c699=>{const _0x47b404=_0x1b0db1;process[_0x47b404(0x21e)][_0x47b404(0x25c)](_0x54c699);}):null,_0x123f70=_0x164070=>_0x196b43?{..._0x164070,'askUser':_0x196b43}:_0x164070,_0x5742aa=_0x123f70($e(_0x5342a0,_0x41284e,_0x1a01f6,{'oneTurn':!_0x594a16})),_0xa91434=!0x1,_0x69fd64=!0x1,_0x2d8047,_0x45032e=()=>_0x2d8047??=_0x3fe974[_0x1b0db1(0x2ac)](),_0x412b90=()=>{const _0x6ed63e=_0x1b0db1;_0x69fd64&&process[_0x6ed63e(0x204)](0x82),_0x69fd64=!0x0,process['stderr']['write']('\x0aStopping…\x20(Ctrl+C\x20again\x20to\x20force\x20exit)\x0a'),_0xa91434&&_0x3fe974[_0x6ed63e(0x28a)]()[_0x6ed63e(0x34e)](_0x1ffec5=>console['error'](_0x1ffec5))['then'](_0x45032e)[_0x6ed63e(0x224)](()=>process['exit'](0x82),_0x500d50=>{const _0x5892e7=_0x6ed63e;console[_0x5892e7(0xe8)](_0x500d50),process['exit'](0x82);});};process['on'](_0x1b0db1(0x27c),_0x412b90);let _0x40e4f3=_0x5342a0[_0x1b0db1(0x15c)],_0x38fc07=async _0x22ffa=>{const _0xedfd1=_0x1b0db1;let _0x556a15=_0x40e4f3;_0x40e4f3=[];let _0x41d8a0=()=>_0x3fe974[_0xedfd1(0x262)](_0x22ffa,{'attachments':_0x556a15});try{return await _0x41d8a0();}catch(_0x575cca){if(_0x69fd64||!Xn(_0x575cca)||!process[_0xedfd1(0x2c0)][_0xedfd1(0x2e4)]||_0x5342a0[_0xedfd1(0x15e)]===_0xedfd1(0x203)||!(_0x5342a0['env']||_0x41284e['baseUrl']))throw _0x575cca;process[_0xedfd1(0x21e)]['write']('\x0a⚠️\x20\x20Auth\x20expired.\x20Opening\x20browser\x20to\x20re-login…\x0a');let _0x4e0859=_0x3fe974[_0xedfd1(0x251)]()??_0x5342a0[_0xedfd1(0x2b8)],_0x4db470=await _0x177d5d(_0x5342a0['env']?{'env':_0x5342a0['env'],'tenant':q(_0x41284e,_0x572fa2[_0x5342a0[_0xedfd1(0x15e)]]),'skipEnvCheck':!0x0}:{'baseUrl':_0x41284e[_0xedfd1(0x2d3)],'tenant':_0x41284e[_0xedfd1(0x287)],'skipEnvCheck':!0x0}),_0x66f464={'text':'','failed':!0x1,'sessionId':_0x4e0859};return _0x69fd64||(_0xa91434=!0x1,await _0x45032e(),_0x69fd64)?_0x66f464:(_0x3fe974=new _0x1f2250(),_0x2d8047=void 0x0,_0x3fe974['onEvent'](_0x5065c5),_0x41284e=_0x4db470,await _0x3fe974['initialize']({..._0x123f70($e(_0x5342a0,_0x41284e,_0x1a01f6,{'oneTurn':!_0x594a16})),..._0x4e0859?{'sessionId':_0x4e0859}:{}}),_0xa91434=!0x0,_0x69fd64?_0x66f464:_0x41d8a0());}};try{if(await _0x3fe974[_0x1b0db1(0x34c)](_0x5742aa),_0xa91434=!0x0,_0x69fd64)return;if(_0x594a16)await no({'prompt':_0x1e80ce,'sendMessage':_0x38fc07,'onSigint':_0x412b90,'setAnswerInput':_0x3df996=>{const _0x1e1bb6=_0x1b0db1;_0x36f497[_0x1e1bb6(0x110)]=_0x3df996;},'registerEventPrinter':_0xaf593=>(_0x39ecd0=_0xaf593,()=>{_0x39ecd0=void 0x0;})});else{if(_0x4f6922||_0x1d426b){let _0x333896=_0x5342a0[_0x1b0db1(0x329)]===_0x1b0db1(0x2a7)?_0x453028=>O(_0x97dad(_0x453028)):()=>{},_0x126151=_0x2c6923?ce({'input':_0x2c6923,'getAgent':()=>_0x3fe974,'replay':_0x5342a0['replayUserMessages'],'onEvent':_0x28e131=>(_0x28581c['add'](_0x28e131),()=>{const _0x27eab1=_0x1b0db1;_0x28581c[_0x27eab1(0x32f)](_0x28e131);}),'write':O,'isRunStopNotice':_0x582d9e,'actionableErrorText':_0x1c9c3a,'warn':_0x31748c=>{const _0x568920=_0x1b0db1;process[_0x568920(0x21e)][_0x568920(0x25c)](_0x31748c);}}):null,_0x4e5b3e=await _0x4b321d({'onEvent':_0x56126e=>(_0x28581c[_0x1b0db1(0x10d)](_0x56126e),()=>{const _0x4d1986=_0x1b0db1;_0x28581c[_0x4d1986(0x32f)](_0x56126e);}),'sendMessage':async _0x2b6569=>{const _0x190e95=_0x1b0db1;try{let _0x5c3019=await _0x38fc07(_0x2b6569);return _0x126151?await _0x126151[_0x190e95(0x1d2)](_0x5c3019):_0x5c3019;}finally{_0x126151?.[_0x190e95(0x1f3)]();}},'getSessionId':()=>_0x3fe974[_0x1b0db1(0x251)](),'getTurnUsageHistory':_0x10447d=>_0x3fe974[_0x1b0db1(0x34b)](_0x10447d),'complete':_0x4818b2=>_0x3fe974[_0x1b0db1(0x356)](_0x4818b2)},_0x1e80ce,void 0x0,_0x333896,_0x1d426b?{'outputSchema':_0x1d426b}:void 0x0);_0x4f6922?_0x4f6922(_0x4e5b3e):eo(_0x4e5b3e);}else await _0x38fc07(_0x1e80ce);}}catch(_0x5d791c){if(!_0x69fd64)throw _0x5d791c;}finally{try{await _0x45032e();}finally{process[_0x1b0db1(0x15b)](_0x1b0db1(0x27c),_0x412b90),_0x69fd64&&(process['exitCode']=0x82);}}}function eo(_0x31a4eb){const _0x9708ef=_0x1727a5;_0x31a4eb[_0x9708ef(0x1f8)]?(console['error'](_0x9708ef(0x2b9)+_0x31a4eb[_0x9708ef(0x1f8)][_0x9708ef(0x2a2)]),process[_0x9708ef(0x33e)]=0x1):_0x31a4eb['isError']?(console[_0x9708ef(0xe8)](_0x9708ef(0x16b)+_0x31a4eb[_0x9708ef(0xe8)]+').'),process[_0x9708ef(0x33e)]=0x1):process['stdout'][_0x9708ef(0x25c)](JSON['stringify'](_0x31a4eb[_0x9708ef(0x11d)],null,0x2)+'\x0a');}function to(_0x37955f,_0x37567f){const _0x40d576=_0x1727a5;let _0x1301d2=process[_0x40d576(0x2d0)][_0x40d576(0x25c)][_0x40d576(0x263)](process['stdout']),_0x2c3f33=!0x1;return process[_0x40d576(0x2d0)]['write']=(..._0x5c5472)=>{const _0x57ca62=_0x40d576;if(!_0x2c3f33)return _0x1301d2(..._0x5c5472);_0x18c6cc(_0x37567f,0x0),_0x5d6056(_0x37567f,0x0);let _0x3323ff=_0x1301d2(..._0x5c5472);return _0x37955f[_0x57ca62(0x257)](!0x0),_0x3323ff;},{'show':()=>{const _0x48d542=_0x40d576;_0x2c3f33=!0x0,_0x37955f[_0x48d542(0x257)]();},'hide':()=>{_0x2c3f33=!0x1;},'erase':()=>{_0x2c3f33&&(_0x18c6cc(_0x37567f,0x0),_0x5d6056(_0x37567f,0x0)),_0x2c3f33=!0x1;},'restore':()=>{const _0x33d332=_0x40d576;_0x2c3f33=!0x1,process[_0x33d332(0x2d0)]['write']=_0x1301d2;}};}async function no({prompt:_0x45fc5a,sendMessage:_0x21ba1a,onSigint:_0x7acd03,setAnswerInput:_0x47073d,registerEventPrinter:_0x326477}){const _0x4fc067=_0x1727a5;let _0x3d42e8=_0x26bdb8({'input':process[_0x4fc067(0x2c0)],'output':process[_0x4fc067(0x21e)],'terminal':!0x0,'prompt':_0x4fc067(0x33a)}),_0x5435fa=to(_0x3d42e8,process['stderr']),_0x4a1e04=[],_0x19415f,_0x2d7dce,_0x533094,_0x4b215b=!0x1,_0x306309=!0x1,_0x351cdf=!0x1,_0x95c70f=Promise['resolve'](),_0x51b7b5,_0x410990=_0x326477(_0x2c0962=>{const _0x1418ed=_0x4fc067;_0x2c0962[_0x1418ed(0x176)]==='session_start'&&(_0x5435fa['erase'](),_0x95c70f=new Promise(_0x50fdff=>{_0x51b7b5=_0x50fdff;})),Oe(_0x2c0962),_0x2c0962[_0x1418ed(0x176)]===_0x1418ed(0x208)&&(_0x51b7b5?.(),_0x51b7b5=void 0x0,!_0x351cdf&&!_0x4b215b&&_0x5435fa[_0x1418ed(0x2fa)]());}),_0x2e5611=()=>{const _0x19f1fa=_0x4fc067;_0x306309=!0x0,_0x51b7b5?.(),_0x7acd03(),_0x3d42e8[_0x19f1fa(0x288)]();};_0x3d42e8['on'](_0x4fc067(0x18f),_0x441b44=>{_0x533094?_0x533094(_0x441b44):_0x19415f?_0x19415f['push'](_0x441b44):_0x2d7dce?_0x2d7dce(_0x441b44):_0x4a1e04['push'](_0x441b44);}),_0x3d42e8[_0x4fc067(0x2f9)]('close',()=>{_0x4b215b=!0x0,_0x5435fa['hide'](),_0x19415f&&!_0x306309&&_0x2e5611(),_0x2d7dce?.(null);});let _0x207374=()=>_0x4a1e04[_0x4fc067(0x153)]>0x0?Promise[_0x4fc067(0x17e)](_0x4a1e04[_0x4fc067(0x157)]()):_0x4b215b?Promise[_0x4fc067(0x17e)](null):new Promise(_0x36ba96=>{_0x2d7dce=_0x165ca9=>{_0x2d7dce=void 0x0,_0x36ba96(_0x165ca9);};});_0x47073d({'readLine':(_0x50c4c6,_0x446741)=>new Promise((_0x53ec2d,_0x11be5a)=>{const _0x5f463f=_0x4fc067;if(_0x4b215b&&!_0x19415f){_0x53ec2d(null);return;}_0x19415f??=[];let _0x26c053=_0x19415f['shift']();if(_0x26c053!==void 0x0){_0x53ec2d(_0x26c053);return;}let _0x240ae0=()=>{const _0x480de5=_0x36a3;_0x533094=void 0x0,_0x446741[_0x480de5(0x1c7)](_0x480de5(0x109),_0x1d28db),_0x5435fa[_0x480de5(0x1a1)](),_0x3d42e8[_0x480de5(0x239)](_0x480de5(0x33a));},_0x1d28db=()=>{const _0x4e9b65=_0x36a3;_0x240ae0(),_0x11be5a(new Error(_0x4e9b65(0x339)));};_0x446741[_0x5f463f(0x331)]('abort',_0x1d28db,{'once':!0x0}),!_0x4b215b&&(_0x533094=_0x552547=>{_0x240ae0(),_0x53ec2d(_0x552547);},_0x3d42e8[_0x5f463f(0x239)](_0x50c4c6),_0x5435fa['show']());}),'endQuestions':()=>{const _0x40f24e=_0x4fc067;_0x19415f&&_0x4a1e04[_0x40f24e(0x199)](..._0x19415f),_0x19415f=void 0x0;}}),_0x3d42e8['on'](_0x4fc067(0x27c),_0x2e5611),process[_0x4fc067(0x21e)][_0x4fc067(0x25c)](_0x4fc067(0x1e5));let _0x37d322=async _0x32f965=>{_0x351cdf=!0x0;try{await _0x21ba1a(_0x32f965);}finally{_0x351cdf=!0x1;}};try{if(_0x45fc5a&&await _0x37d322(_0x45fc5a),_0x306309)return;!_0x4b215b&&!_0x51b7b5&&_0x5435fa[_0x4fc067(0x2fa)]();for(let _0x50d1d3=await _0x207374();_0x50d1d3!==null&&(_0x5435fa['hide'](),!_0x306309);_0x50d1d3=await _0x207374()){let _0x556319=_0x50d1d3['trim']();if(_0x556319==='/exit')break;_0x556319&&await _0x37d322(_0x556319),!_0x4b215b&&!_0x51b7b5&&_0x5435fa['show']();}for(;!_0x306309&&_0x51b7b5;)await _0x95c70f;}finally{_0x47073d(null),_0x410990(),_0x5435fa[_0x4fc067(0x131)](),_0x3d42e8[_0x4fc067(0x15b)]('SIGINT',_0x2e5611),_0x3d42e8['close']();}}async function Le(_0x272b72,_0x3d868f){const _0x470c4a=_0x1727a5;await oo(_0x272b72,_0x3d868f)[_0x470c4a(0x208)];}function oo(_0x25ba5c,_0x327387){let _0x1edd21=an(_0x327387,_0x25ba5c);if(_0x1edd21['outputFormat']==='text')return{'done':xe(_0x1edd21),'releaseStdout':()=>{}};let _0x251ca0=ln();return{'done':xe(_0x1edd21),'releaseStdout':_0x251ca0};}async function xe(_0x4f5fd3){const _0x151152=_0x1727a5;if(_0x4f5fd3[_0x151152(0xf9)]){cn(_0x4f5fd3['product']);return;}if(_0x4f5fd3[_0x151152(0x29a)]){console[_0x151152(0xff)](un());return;}if(_0x4f5fd3[_0x151152(0x1b9)]){await _0x4f5fd3[_0x151152(0x1b9)][_0x151152(0x15a)](_0x4f5fd3);return;}if(_0x4f5fd3[_0x151152(0x2bc)]===_0x151152(0x301)){await Qn(_0x4f5fd3);return;}if(_0x4f5fd3[_0x151152(0x2bc)]===_0x151152(0x19a)){await Yn(_0x4f5fd3[_0x151152(0x257)],_0x4f5fd3['product'][_0x151152(0x2da)]);return;}if(_0x4f5fd3['subcommand']===_0x151152(0x21b)){await gn();return;}if(_0x4f5fd3[_0x151152(0x2bc)]===_0x151152(0x1e6)){await hn(_0x4f5fd3);return;}if(_0x4f5fd3[_0x151152(0x2bc)]==='models'){await kn(_0x4f5fd3);return;}if(_0x4f5fd3[_0x151152(0x2bc)]===_0x151152(0x241)){await Tn(_0x4f5fd3);return;}if(_0x4f5fd3[_0x151152(0x2bc)]===_0x151152(0x174)){await Sn(_0x4f5fd3);return;}if(_0x4f5fd3['subcommand']==='usage'){await Pn(_0x4f5fd3);return;}if(_0x4f5fd3[_0x151152(0x2bc)]===_0x151152(0x34a)||_0x4f5fd3[_0x151152(0x2bc)]===_0x151152(0x188)||_0x4f5fd3[_0x151152(0x2bc)]===_0x151152(0x1fc)){await _n(_0x4f5fd3,_0x4f5fd3[_0x151152(0x2bc)]);return;}if(_0x4f5fd3['subcommand']===_0x151152(0x356)){await Ln(_0x4f5fd3);return;}if(_0x4f5fd3[_0x151152(0x2bc)]==='transcribe'){await Bn(_0x4f5fd3);return;}if(_0x4f5fd3[_0x151152(0x2bc)]===_0x151152(0x20c)){await Jn(_0x4f5fd3);return;}if(_0x4f5fd3[_0x151152(0x2bc)]===_0x151152(0x323)){await Kn(_0x4f5fd3);return;}if(_0x4f5fd3['subcommand']===_0x151152(0x24a)){await _0x29c471(_0x4f5fd3[_0x151152(0x257)],{'cliName':_0x4f5fd3['product'][_0x151152(0x2da)],'runnerUrl':_0x4f5fd3[_0x151152(0x28e)],'backendUrl':_0x4f5fd3['backendUrl'],'interopPath':_0x4f5fd3['interopPath'],'workerId':_0x4f5fd3[_0x151152(0x31b)]});return;}if(_0x4f5fd3['cleanup']){await bn();return;}await Zn(_0x4f5fd3);}function Me(_0x3d4f1c){const _0x5d6241=_0x1727a5;let _0x205798=_0x3d4f1c;console[_0x5d6241(0xe8)](_0x205798?.[_0x5d6241(0x179)]||_0x205798?.[_0x5d6241(0x2a2)]||_0x3d4f1c),process[_0x5d6241(0x204)](0x1);}var sn,rn,ge,O,he,pn,we,Dn,ke,ve,y,Oe,te=L(()=>{const _0x355759=_0x1727a5;re(),K(),de(),(sn=[_0x355759(0x301),'tenant',_0x355759(0x2ec),_0x355759(0x24a),_0x355759(0x21b),_0x355759(0x1e6),_0x355759(0x241),_0x355759(0x174),_0x355759(0x2be),_0x355759(0x34a),_0x355759(0x188),_0x355759(0x1fc),_0x355759(0x356),_0x355759(0x2f0),_0x355759(0x20c),'org-users'],rn=['',_0x355759(0x2ec),_0x355759(0x1e6),_0x355759(0x241),_0x355759(0x174),_0x355759(0x2be),_0x355759(0x34a),_0x355759(0x188),_0x355759(0x1fc),_0x355759(0x356),_0x355759(0x2f0),_0x355759(0x20c),_0x355759(0x323)],ge=[_0x355759(0x253),'medium',_0x355759(0xf3),_0x355759(0x12d),_0x355759(0x2ee)]),O=_0xee1b60=>{const _0x2d7698=_0x355759;process[_0x2d7698(0x2d0)][_0x2d7698(0x25c)](_0xee1b60);},he=0x27,pn=0x7d0,we=['list','show',_0x355759(0x1d7),_0x355759(0x32f),'cancel','fork'],Dn=['',_0x355759(0x1c4),_0x355759(0x1bb)],(ke=[_0x355759(0x357),_0x355759(0x12c),_0x355759(0x2fa),_0x355759(0xec),_0x355759(0x11e),_0x355759(0x356),_0x355759(0x13e),_0x355759(0x184),_0x355759(0x28a),'delete'],ve={'list':_0x355759(0xf0),'pending':'delegations\x20pending\x20<session-id>','show':'delegations\x20show\x20<delegation-id|delegate://delegation/…>','create':'delegations\x20create\x20--session\x20<id>\x20[--to\x20<email|name>]\x20[--summary\x20<text>]\x20\x22<task>\x22|-','claim':_0x355759(0x2eb),'complete':_0x355759(0x20a),'accept':_0x355759(0x23c),'dismiss':_0x355759(0x304),'cancel':_0x355759(0x154),'delete':_0x355759(0x270)}),(y={'lastType':null,'quiet':!0x1,'bin':''},Oe=_0x5e4d82=>{const _0x58a008=_0x355759;switch(_0x5e4d82[_0x58a008(0x176)]){case _0x58a008(0x1ba):_0x5e4d82[_0x58a008(0x2b8)]&&_0x5e4d82['sessionId']!==y[_0x58a008(0x2b8)]&&(process[_0x58a008(0x21e)][_0x58a008(0x25c)](_0x58a008(0x22f)+_0x5e4d82['sessionId']+_0x58a008(0x232)+_0x5e4d82[_0x58a008(0x2b8)]+')\x0a'),y[_0x58a008(0x2b8)]=_0x5e4d82[_0x58a008(0x2b8)]);break;case _0x58a008(0x255):_0x5e4d82[_0x58a008(0x1d5)]&&_0x5e4d82[_0x58a008(0x1d5)]!==y[_0x58a008(0x1d5)]&&(y[_0x58a008(0x17a)]!==null&&process[_0x58a008(0x21e)]['write']('\x0a'),process[_0x58a008(0x21e)][_0x58a008(0x25c)](_0x58a008(0x2b0)+_0x5e4d82[_0x58a008(0x1d5)]+_0x58a008(0x1ed)+y['bin']+_0x58a008(0x122)+_0x5e4d82[_0x58a008(0x2b8)]+'\x20--turn\x20'+_0x5e4d82[_0x58a008(0x1d5)]+')\x0a'),y[_0x58a008(0x1d5)]=_0x5e4d82[_0x58a008(0x1d5)],y['lastType']=_0x58a008(0x255));break;case _0x58a008(0x1ec):_0x5e4d82[_0x58a008(0x2ed)]&&!y[_0x58a008(0x272)]&&(y[_0x58a008(0x17a)]!==_0x58a008(0x1ec)&&process[_0x58a008(0x21e)]['write']('\x0a🤔\x20'),process[_0x58a008(0x21e)]['write'](_0x5e4d82['content']),y['lastType']=_0x58a008(0x1ec));break;case _0x58a008(0x25b):y['lastType']!==null&&process['stderr']['write']('\x0a'),process[_0x58a008(0x21e)][_0x58a008(0x25c)]('🔧\x20'+(_0x5e4d82[_0x58a008(0x198)]??_0x58a008(0x19f))+'\x0a'),y[_0x58a008(0x17a)]=_0x58a008(0x25b);break;case _0x58a008(0x2a2):_0x5e4d82[_0x58a008(0x2ed)]&&(y[_0x58a008(0x17a)]!==_0x58a008(0x2a2)&&y[_0x58a008(0x17a)]!==null&&process[_0x58a008(0x2d0)][_0x58a008(0x25c)]('\x0a'),process[_0x58a008(0x2d0)][_0x58a008(0x25c)](_0x5e4d82[_0x58a008(0x2ed)]),y['lastType']='message');break;case _0x58a008(0xe8):y[_0x58a008(0x17a)]!==null&&process[_0x58a008(0x21e)]['write']('\x0a'),process['stderr'][_0x58a008(0x25c)]('✗\x20'+(_0x5e4d82[_0x58a008(0xe8)]??_0x58a008(0xe8))+'\x0a'),y[_0x58a008(0x17a)]=_0x58a008(0xe8);break;case _0x58a008(0x208):(y['lastType']==='message'||y[_0x58a008(0x17a)]===_0x58a008(0x1ec))&&process[_0x58a008(0x2d0)][_0x58a008(0x25c)]('\x0a'),process['stderr'][_0x58a008(0x25c)]('✓\x20Done\x0a'),y['lastType']=_0x58a008(0x208);break;}});});import{exportLivingDocument as _0x1be4b9,saveMapVersion as _0x3f7384,shareMap as _0x16ada8}from'@uipath/delegate-sdk';async function Be(_0x32a10d,_0x1fd3d8){const _0x273e08=_0x1727a5;try{return await _0x1fd3d8();}catch(_0x246070){let _0x26bca8=_0x246070?.[_0x273e08(0x28f)],_0x1a9355=Array['isArray'](_0x26bca8)&&_0x26bca8[_0x273e08(0x153)]>0x0?'\x20('+_0x26bca8[_0x273e08(0x10a)](',\x20')+')':'';console[_0x273e08(0xe8)]('maps\x20'+_0x32a10d+':\x20'+(_0x246070 instanceof Error?_0x246070[_0x273e08(0x2a2)]:String(_0x246070))+_0x1a9355),process[_0x273e08(0x204)](0x1);}}var He,je,Fe,Je,Ge=L(()=>{const _0x5c693c=_0x1727a5;te(),(He={'name':_0x5c693c(0x166),'machineOutput':!0x0,'valueFlags':{},async 'run'(_0x2e2bf6){const _0x3f5988=_0x5c693c;let [_0x5d31c0,_0x472a10,..._0x282731]=_0x2e2bf6[_0x3f5988(0x26f)];(!_0x5d31c0||_0x282731[_0x3f5988(0x153)]>0x0||!_0x2e2bf6[_0x3f5988(0x10e)])&&(console[_0x3f5988(0xe8)]('Usage:\x20'+_0x2e2bf6[_0x3f5988(0x231)][_0x3f5988(0x2da)]+'\x20export\x20TYPE\x20[DOCUMENT_ID]\x20--project\x20ID\x20[--working-dir\x20PATH]'),process[_0x3f5988(0x204)](0x2));let _0x444db8;try{_0x444db8=await _0x1be4b9({'projectId':_0x2e2bf6[_0x3f5988(0x10e)],'type':_0x5d31c0,..._0x472a10?{'documentId':_0x472a10}:{},..._0x2e2bf6[_0x3f5988(0x309)]?{'workingDirectory':_0x2e2bf6['workingDirectory']}:{}});}catch(_0x29acd6){console[_0x3f5988(0xe8)](_0x3f5988(0x311)+(_0x29acd6 instanceof Error?_0x29acd6['message']:String(_0x29acd6))),process['exit'](0x1);}m(_0x2e2bf6,_0x444db8,_0x523a19=>{const _0x55661e=_0x3f5988;process[_0x55661e(0x2d0)][_0x55661e(0x25c)](_0x523a19[_0x55661e(0x2a2)]+'\x0a');});}},je=_0x40043f=>'Usage:\x20'+_0x40043f+_0x5c693c(0x104),Fe=_0x4063d2=>_0x5c693c(0x185)+_0x4063d2+_0x5c693c(0x32a),Je={'name':_0x5c693c(0x1ea),'machineOutput':!0x0,'valueFlags':{'--remote':_0x5c693c(0x193),'--map-name':'a\x20Map\x20name'},async 'run'(_0x583f6d){const _0x491fdf=_0x5c693c;let _0x37bc05=_0x583f6d[_0x491fdf(0x231)]['bin'],[_0xb3e901='',..._0x25a1e7]=_0x583f6d[_0x491fdf(0x26f)],_0x124c51=_0x583f6d[_0x491fdf(0x2c8)][_0x491fdf(0x132)],_0x86783c=_0x583f6d[_0x491fdf(0x2c8)]['--map-name'];if((_0x124c51!==void 0x0||_0x86783c!==void 0x0)&&_0xb3e901!==_0x491fdf(0x2e0)&&(console['error'](_0x491fdf(0x30c)+_0x37bc05+'\x20maps\x20share`\x20only.'),process[_0x491fdf(0x204)](0x2)),_0xb3e901==='share'){(_0x25a1e7[_0x491fdf(0x153)]>0x0||!_0x583f6d[_0x491fdf(0x10e)]||!_0x124c51||!_0x86783c)&&(console['error'](je(_0x37bc05)),process[_0x491fdf(0x204)](0x2));let _0x191e34=await Be(_0x491fdf(0x2e0),()=>_0x16ada8({'projectId':_0x583f6d[_0x491fdf(0x10e)],'remote':_0x124c51,'mapName':_0x86783c,..._0x583f6d['workingDirectory']?{'workingDirectory':_0x583f6d[_0x491fdf(0x309)]}:{}}));m(_0x583f6d,_0x191e34,_0x335dc4=>{const _0x5d7c81=_0x491fdf;process[_0x5d7c81(0x2d0)]['write']('Shared\x20the\x20Map\x20of\x20Work\x20of\x20'+_0x583f6d[_0x5d7c81(0x10e)]+'\x20to\x20'+_0x335dc4[_0x5d7c81(0x170)]+_0x5d7c81(0x156)+_0x335dc4[_0x5d7c81(0x271)]+_0x5d7c81(0x1da));});return;}if(_0xb3e901===_0x491fdf(0x250)){let _0x3c7e66=_0x25a1e7[_0x491fdf(0x10a)]('\x20')[_0x491fdf(0x312)]();(!_0x3c7e66||!_0x583f6d[_0x491fdf(0x10e)])&&(console['error'](Fe(_0x37bc05)),process['exit'](0x2));let _0x1037cb=await Be(_0x491fdf(0x250),()=>_0x3f7384({'projectId':_0x583f6d[_0x491fdf(0x10e)],'message':_0x3c7e66,..._0x583f6d['workingDirectory']?{'workingDirectory':_0x583f6d['workingDirectory']}:{}}));m(_0x583f6d,_0x1037cb,_0x59ffc6=>{const _0x4b7139=_0x491fdf;process[_0x4b7139(0x2d0)][_0x4b7139(0x25c)](_0x4b7139(0x219)+_0x59ffc6['version']+_0x4b7139(0x2df)+_0x583f6d['projectId']+':\x20'+_0x59ffc6['message']+'\x0a');});return;}console[_0x491fdf(0xe8)](je(_0x37bc05)+'\x0a'+Fe(_0x37bc05)),process[_0x491fdf(0x204)](0x2);}});});import{BUSINESS_ANALYSIS_PRELOADED_SKILLS as _0x3b7c82}from'@uipath/delegate-sdk';var lo,We,co,uo,po,Ke,Qe=L(()=>{const _0x26edf2=_0x1727a5;Ge(),(lo=_0x26edf2(0x1b1),We=_0x3b7c82,co=_0x26edf2(0x256),uo=_0x26edf2(0x275),po=_0x26edf2(0x330)+We[_0x26edf2(0x10a)](',\x20')+'.\x0a\x20\x20Pair\x20it\x20with\x20--project/--working-dir\x20for\x20where\x20the\x20files\x20live;\x20extra\x0a\x20\x20--preload-skill\x20flags\x20add\x20skills,\x20and\x20one\x20already\x20preloaded\x20is\x20not\x20preloaded\x0a\x20\x20twice.\x20--headless\x20still\x20turns\x20interop\x20off;\x20another\x20--vertical\x20ID\x20is\x20refused.',Ke={'bin':_0x26edf2(0x261),'title':_0x26edf2(0x1b3),'vertical':lo,'computerUse':_0x26edf2(0x26d),'preloadSkills':We,'commands':[He,Je],'help':{'commands':co,'flags':uo,'about':po}});}),mo=Ye(()=>{const _0x5956ed=_0x1727a5;te(),Qe(),Le(Ke,process['argv'][_0x5956ed(0x165)](0x2))[_0x5956ed(0x34e)](Me);});export default mo();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uipath/cartographer-cli",
3
- "version": "1.207.0",
3
+ "version": "1.208.0-preview.20261203181205",
4
4
  "description": "UiPath Cartographer CLI - document how work happens with the Cartographer agent from the terminal. Wraps @uipath/delegate-sdk; installing this package pulls the SDK in — no separate install.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "commonjs",
@@ -22,7 +22,7 @@
22
22
  "publish:npmjs": "npm publish --@uipath:registry=https://registry.npmjs.org/ --access public --ignore-scripts"
23
23
  },
24
24
  "dependencies": {
25
- "@uipath/delegate-sdk": "1.207.0"
25
+ "@uipath/delegate-sdk": "1.208.0-preview.20261203181205"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@types/node": "^22.0.0",