@uipath/cartographer-cli 1.207.0 → 1.208.0-preview.20261203165256
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.mjs +1 -1
- 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 _0x4642c2=_0x50fd;(function(_0x28dcf2,_0x14ad98){const _0x458ebe=_0x50fd,_0x262e00=_0x28dcf2();while(!![]){try{const _0x29846b=parseInt(_0x458ebe(0x1c4))/0x1*(-parseInt(_0x458ebe(0x280))/0x2)+-parseInt(_0x458ebe(0x354))/0x3*(parseInt(_0x458ebe(0x2e6))/0x4)+parseInt(_0x458ebe(0x1cf))/0x5*(-parseInt(_0x458ebe(0x27d))/0x6)+parseInt(_0x458ebe(0x40e))/0x7+parseInt(_0x458ebe(0x215))/0x8+parseInt(_0x458ebe(0x334))/0x9+-parseInt(_0x458ebe(0x1a9))/0xa;if(_0x29846b===_0x14ad98)break;else _0x262e00['push'](_0x262e00['shift']());}catch(_0x17566b){_0x262e00['push'](_0x262e00['shift']());}}}(_0x542d,0xae20c));const __dirname=import.meta.dirname;var L=(_0x22655d,_0x49e30c)=>()=>(_0x22655d&&(_0x49e30c=_0x22655d(_0x22655d=0x0)),_0x49e30c),Ye=(_0x1d2789,_0x360d17)=>()=>(_0x360d17||_0x1d2789((_0x360d17={'exports':{}})[_0x4642c2(0x370)],_0x360d17),_0x360d17[_0x4642c2(0x370)]);import{isOnStepGrid as _0x8b9a92}from'@uipath/delegate-sdk';function A(_0x4001b5){return _0x4001b5['replace'](/\u001b\[[0-?]*[ -/]*[@-~]|\u001b\][^\u0007\u001b]*(\u0007|\u001b\\)?|\u001b./g,'')['replace'](/[\u0000-\u0008\u000b-\u001f\u007f-\u009f]/g,'');}function ne(_0x521bbe){const _0x282c64=_0x4642c2;return A(_0x521bbe[_0x282c64(0x29a)]??(_0x521bbe['kind']===M?'Something\x20else':_0x521bbe['id']));}function Ve(_0x50af04,_0x3c6808,_0x5a9124){const _0x519b9a=_0x4642c2;let _0x18a8bf=[''+(_0x5a9124>0x1?'['+_0x3c6808+'/'+_0x5a9124+']\x20':'')+A(_0x50af04['header'])+(_0x50af04[_0x519b9a(0x260)]?_0x519b9a(0x398):''),A(_0x50af04[_0x519b9a(0x28d)])];return _0x50af04[_0x519b9a(0x1dc)]===_0x519b9a(0x235)&&_0x50af04[_0x519b9a(0x372)]['forEach']((_0x4870ea,_0x5bb64f)=>{const _0xdd8c06=_0x519b9a;let _0x399018=_0x4870ea[_0xdd8c06(0x1ba)]===M?_0xdd8c06(0x2b1):'',_0x45bc0f=_0x4870ea['description']?'\x20-\x20'+A(_0x4870ea[_0xdd8c06(0x1b3)]):'';_0x18a8bf['push']('\x20\x20'+(_0x5bb64f+0x1)+'.\x20'+ne(_0x4870ea)+_0x399018+_0x45bc0f);}),_0x18a8bf[_0x519b9a(0x2d6)]('\x0a');}function oe(_0x4d6d3f,_0x32b101){const _0x470d20=_0x4642c2;let _0x331813=_0x4d6d3f['split'](/[\s,]+/)[_0x470d20(0x213)](Boolean);if(_0x331813[_0x470d20(0x2b7)]===0x0)return null;let _0x5d5a0e=_0x331813[_0x470d20(0x3d4)](_0x22ad40=>/^\d+$/['test'](_0x22ad40)?Number(_0x22ad40):NaN);return _0x5d5a0e[_0x470d20(0x1f7)](_0x13161a=>!Number[_0x470d20(0x261)](_0x13161a)||_0x13161a<0x1||_0x13161a>_0x32b101)?null:[...new Set(_0x5d5a0e)][_0x470d20(0x3d4)](_0x176fe8=>_0x176fe8-0x1);}function Xe(_0x1e621e){const _0x1b5a63=_0x4642c2;return typeof _0x1e621e==_0x1b5a63(0x1bd)&&_0x1e621e!==null&&_0x1b5a63(0x380)in _0x1e621e;}async function j(_0x19f794,_0x3eb76a,_0x31c77f,_0x5560d6){const _0x48e78f=_0x4642c2;for(;;){let _0x3d87ab=(await _0x19f794(_0x3eb76a))[_0x48e78f(0x21c)]();if(_0x3d87ab==='')return;let _0x2627f3=_0x5560d6(_0x3d87ab);if(!Xe(_0x2627f3))return _0x2627f3;_0x31c77f(_0x2627f3[_0x48e78f(0x380)]+'\x0a');}}async function Ze(_0x3d043c,_0x6c9e21,_0x2ea01c){const _0x523e5f=_0x4642c2;if(_0x3d043c[_0x523e5f(0x372)][_0x523e5f(0x2b7)]===0x0||_0x3d043c[_0x523e5f(0x372)][_0x523e5f(0x364)](_0x167992=>_0x167992[_0x523e5f(0x1ba)]===M)){let _0x474d5a=(await _0x6c9e21('Your\x20answer\x20(Enter\x20to\x20skip):\x20'))[_0x523e5f(0x21c)]();return _0x474d5a===''?void 0x0:{'text':_0x474d5a};}let _0x263e3d=_0x3d043c[_0x523e5f(0x372)][_0x523e5f(0x29e)](_0x4373df=>_0x4373df[_0x523e5f(0x1ba)]===M),_0x350228=_0x3d043c[_0x523e5f(0x279)]?'Numbers,\x20separated\x20by\x20commas\x20(Enter\x20to\x20skip):\x20':_0x523e5f(0x3f1)+(_0x263e3d>=0x0?'\x20or\x20your\x20own\x20answer':'')+'\x20(Enter\x20to\x20skip):\x20',_0x4cc946=await j(_0x6c9e21,_0x350228,_0x2ea01c,_0x4e22fc=>{const _0x4e440c=_0x523e5f;let _0x203bab=oe(_0x4e22fc,_0x3d043c[_0x4e440c(0x372)][_0x4e440c(0x2b7)]);return _0x203bab&&(_0x3d043c[_0x4e440c(0x279)]||_0x203bab[_0x4e440c(0x2b7)]===0x1)?_0x203bab:!_0x3d043c['multiSelect']&&_0x263e3d>=0x0?{'typed':_0x4e22fc}:{'refused':_0x3d043c[_0x4e440c(0x279)]?_0x4e440c(0x3d0)+_0x3d043c[_0x4e440c(0x372)][_0x4e440c(0x2b7)]+'.':_0x4e440c(0x340)+_0x3d043c[_0x4e440c(0x372)][_0x4e440c(0x2b7)]+'.'};});if(_0x4cc946===void 0x0)return;if(!Array[_0x523e5f(0x296)](_0x4cc946))return{'text':_0x4cc946[_0x523e5f(0x26c)]};let _0x5a65b5=_0x4cc946['map'](_0x4bda0c=>_0x3d043c[_0x523e5f(0x372)][_0x4bda0c]['id']),_0x51d88d=_0x5a65b5[_0x523e5f(0x217)](M)?await j(_0x6c9e21,ne(_0x3d043c[_0x523e5f(0x372)][_0x263e3d])+':\x20',_0x2ea01c,_0x518fd4=>_0x518fd4):void 0x0;if(!(_0x5a65b5[_0x523e5f(0x217)](M)&&_0x51d88d===void 0x0))return _0x3d043c[_0x523e5f(0x279)]?{'optionIds':_0x5a65b5,..._0x51d88d!==void 0x0?{'text':_0x51d88d}:{}}:_0x51d88d!==void 0x0?{'text':_0x51d88d}:{'optionId':_0x5a65b5[0x0]};}async function et(_0x47122f,_0x475f4a,_0x3b7fe7){const _0x2875dd=_0x4642c2;let _0x468593={};for(let _0x3422cf of _0x47122f[_0x2875dd(0x349)]){let _0x3963a4=_0x3422cf[_0x2875dd(0x3eb)]??_0x3422cf[_0x2875dd(0x219)],_0x46fe2b=_0x3422cf[_0x2875dd(0x282)]??0x1,_0x15199f=_0x3422cf[_0x2875dd(0x3f9)]?'\x20'+A(_0x3422cf[_0x2875dd(0x3f9)]):'',_0x180d88=_0x2875dd(0x3b2)+_0x3422cf['min']+_0x2875dd(0x2c0)+_0x3422cf[_0x2875dd(0x3a4)]+(_0x46fe2b!==0x1?'\x20in\x20steps\x20of\x20'+_0x46fe2b:''),_0x4ab243=await j(_0x475f4a,A(_0x3422cf[_0x2875dd(0x29a)])+'\x20['+_0x3422cf[_0x2875dd(0x219)]+'-'+_0x3422cf[_0x2875dd(0x3a4)]+_0x15199f+_0x2875dd(0x2bf)+_0x3963a4+_0x2875dd(0x38a),_0x3b7fe7,_0x335905=>{const _0x33283c=_0x2875dd;let _0xa67b0c=Number(_0x335905);return Number['isFinite'](_0xa67b0c)&&_0xa67b0c>=_0x3422cf[_0x33283c(0x219)]&&_0xa67b0c<=_0x3422cf[_0x33283c(0x3a4)]&&_0x8b9a92(_0xa67b0c,_0x3422cf[_0x33283c(0x219)],_0x46fe2b)?_0xa67b0c:{'refused':_0x33283c(0x33e)+_0x180d88+'.'};});_0x468593[_0x3422cf['id']]=_0x4ab243??_0x3963a4;}return{'values':_0x468593};}async function tt(_0x328e6d,_0x3525ad,_0x224c59){const _0x2e1318=_0x4642c2;_0x224c59(_0x328e6d[_0x2e1318(0x3cd)][_0x2e1318(0x3d4)]((_0x324884,_0x38e4d7)=>'\x20\x20'+(_0x38e4d7+0x1)+'.\x20'+A(_0x324884[_0x2e1318(0x29a)]))[_0x2e1318(0x2d6)]('\x0a')+'\x0a');let _0x5bf050={};for(let _0x1c077c of _0x328e6d[_0x2e1318(0x24e)]){let _0xb17f50=await j(_0x3525ad,A(_0x1c077c['label'])+_0x2e1318(0x1e4),_0x224c59,_0x5e38c5=>{const _0x33fbd3=_0x2e1318;let _0x25f4bd=oe(_0x5e38c5,_0x328e6d[_0x33fbd3(0x3cd)][_0x33fbd3(0x2b7)]);return _0x25f4bd&&_0x25f4bd[_0x33fbd3(0x2b7)]===0x1?_0x25f4bd[0x0]:{'refused':_0x33fbd3(0x340)+_0x328e6d[_0x33fbd3(0x3cd)][_0x33fbd3(0x2b7)]+'.'};});if(_0xb17f50===void 0x0)continue;let _0xc5bb16=_0x328e6d[_0x2e1318(0x3cd)][_0xb17f50],_0x5ba5b0={};for(let _0x52a17b of _0xc5bb16[_0x2e1318(0x3cc)]??[]){let _0x4f7b65='\x20\x20'+A(_0x52a17b[_0x2e1318(0x29a)])+(_0x52a17b[_0x2e1318(0x260)]?_0x2e1318(0x398):'')+':\x20',_0x3546ac=await j(_0x3525ad,_0x4f7b65,_0x224c59,_0x28eac8=>_0x28eac8);for(;_0x3546ac===void 0x0&&!_0x52a17b[_0x2e1318(0x260)];)_0x224c59(A(_0x52a17b[_0x2e1318(0x29a)])+_0x2e1318(0x331)),_0x3546ac=await j(_0x3525ad,_0x4f7b65,_0x224c59,_0xfeabbe=>_0xfeabbe);_0x3546ac!==void 0x0&&(_0x5ba5b0[_0x52a17b['id']]=_0x3546ac);}_0x5bf050[_0x1c077c['id']]={'bucket':_0xc5bb16['id'],...Object[_0x2e1318(0x2a9)](_0x5ba5b0)[_0x2e1318(0x2b7)]>0x0?{'subFields':_0x5ba5b0}:{}};}return Object[_0x2e1318(0x2a9)](_0x5bf050)[_0x2e1318(0x2b7)]>0x0?{'assignments':_0x5bf050}:void 0x0;}async function nt(_0x3eafe1,_0x4b036c,_0xd967aa){const _0xaaea9f=_0x4642c2;if(_0x3eafe1[_0xaaea9f(0x1dc)]===_0xaaea9f(0x235))return Ze(_0x3eafe1,_0x4b036c,_0xd967aa);if(_0x3eafe1['type']===_0xaaea9f(0x1b8))return et(_0x3eafe1,_0x4b036c,_0xd967aa);if(_0x3eafe1['type']===_0xaaea9f(0x227))return tt(_0x3eafe1,_0x4b036c,_0xd967aa);let _0x27f96e=(await _0x4b036c(_0xaaea9f(0x2b4)))[_0xaaea9f(0x21c)]();return _0x27f96e===''?void 0x0:{'text':_0x27f96e};}function se(_0x38a6c1,_0x320556){return async _0x268882=>{const _0x31798c=_0x50fd;let _0x285c7c=_0x38a6c1();if(!_0x285c7c)throw new Error(_0x31798c(0x396));let _0x422147=async _0x4e4395=>{const _0x57cb53=_0x31798c;if(_0x268882[_0x57cb53(0x1b5)][_0x57cb53(0x25a)])throw new Error('The\x20turn\x20was\x20cancelled.');let _0x140aa0=await _0x285c7c[_0x57cb53(0x1af)](_0x4e4395,_0x268882[_0x57cb53(0x1b5)]);if(_0x140aa0===null)throw new Error(_0x57cb53(0x40f));return _0x140aa0;};try{_0x320556('\x0a'+(_0x268882[_0x31798c(0x244)]?A(_0x268882[_0x31798c(0x244)])+'\x0a':''));let _0x64867f={};for(let [_0x8c3d46,_0x50fbec]of _0x268882['questions'][_0x31798c(0x2de)]()){_0x320556('\x0a'+Ve(_0x50fbec,_0x8c3d46+0x1,_0x268882[_0x31798c(0x1cd)][_0x31798c(0x2b7)])+'\x0a');let _0x3be64f=await nt(_0x50fbec,_0x422147,_0x320556);_0x3be64f!==void 0x0&&(_0x64867f[_0x50fbec['id']]=_0x3be64f);}return{'answers':_0x64867f};}finally{_0x285c7c[_0x31798c(0x28c)]();}};}var M,re=L(()=>{const _0x5d035d=_0x4642c2;M=_0x5d035d(0x2e8);});import{createInterface as _0x183094}from'node:readline';function ie(_0x4d11a0){const _0x5ab881=_0x4642c2;return B[_0x5ab881(0x217)](_0x4d11a0);}function st(_0x289ab){const _0x3308da=_0x4642c2;if(typeof _0x289ab==_0x3308da(0x265))return _0x289ab;if(!Array[_0x3308da(0x296)](_0x289ab))return;let _0xf3009a=[];for(let _0xa1645d of _0x289ab){if(typeof _0xa1645d!=_0x3308da(0x1bd)||_0xa1645d===null)return;let {type:_0x116189,text:_0x3b4b38}=_0xa1645d;if(_0x116189!==_0x3308da(0x235)||typeof _0x3b4b38!='string')return;_0xf3009a[_0x3308da(0x39d)](_0x3b4b38);}return _0xf3009a[_0x3308da(0x2d6)]('\x0a');}function rt(_0x35052b){const _0x25b6e3=_0x4642c2;if(_0x35052b['trim']()==='')return null;let _0x4f4788;try{_0x4f4788=JSON[_0x25b6e3(0x309)](_0x35052b);}catch{throw new N(_0x25b6e3(0x1d2));}if(typeof _0x4f4788!=_0x25b6e3(0x1bd)||_0x4f4788===null)throw new N(_0x25b6e3(0x359));let {type:_0x551895,message:_0x1f9dfc,uuid:_0x2d7f3d}=_0x4f4788;if(_0x551895!==_0x25b6e3(0x21e))throw new N('an\x20input\x20line\x20has\x20type\x20'+JSON[_0x25b6e3(0x1d0)](_0x551895)+',\x20not\x20\x22user\x22');let _0x43be52=st(_0x1f9dfc?.[_0x25b6e3(0x28f)]);if(_0x43be52===void 0x0)throw new N(_0x25b6e3(0x1de));if(_0x43be52[_0x25b6e3(0x21c)]()==='')throw new N(_0x25b6e3(0x3ea));return{'text':_0x43be52,'uuid':typeof _0x2d7f3d==_0x25b6e3(0x265)?_0x2d7f3d:void 0x0};}function ae(_0x5558c8,_0x308375){const _0x9364c8=_0x4642c2;return JSON[_0x9364c8(0x1d0)]({'type':_0x9364c8(0x21e),'message':{'role':_0x9364c8(0x21e),'content':_0x5558c8['text']},'session_id':_0x308375,..._0x5558c8[_0x9364c8(0x2af)]===void 0x0?{}:{'uuid':_0x5558c8['uuid']},'isReplay':!0x0})+'\x0a';}async function*le(_0x497b12,_0x32ed22){const _0x38adcc=_0x4642c2;let _0x24a7f0=_0x183094({'input':_0x497b12,'crlfDelay':0x1/0x0});try{for await(let _0x44b847 of _0x24a7f0){let _0x5c11ce;try{_0x5c11ce=rt(_0x44b847);}catch(_0x441370){if(!(_0x441370 instanceof N))throw _0x441370;_0x32ed22(_0x441370);continue;}_0x5c11ce&&(yield _0x5c11ce);}}finally{_0x24a7f0[_0x38adcc(0x1bf)]();}}var B,N,K=L(()=>{const _0x5abbc4=_0x4642c2;B=[_0x5abbc4(0x235),_0x5abbc4(0x214)],N=class extends Error{};});function ce(_0x51d8f1){const _0x174f8b=_0x4642c2;let {input:_0x53b4d6,getAgent:_0x5710ad,replay:_0x355192,onEvent:_0x5e81e4,write:_0x20a4d6,warn:_0x57a59b,isRunStopNotice:_0x18d44e,actionableErrorText:_0x300ebb}=_0x51d8f1,_0x3a57a=0x0,_0x23e19c=0x0,_0x37fe96=Promise[_0x174f8b(0x346)](),_0x481d46=!0x1,_0x48bbec=()=>{},_0x264c04=new Promise(_0x10251c=>{_0x48bbec=_0x10251c;}),_0x1f4773=[],_0x42259b=_0x5e81e4(_0x3873af=>{const _0x11d681=_0x174f8b;_0x3873af[_0x11d681(0x1dc)]===_0x11d681(0x2eb)&&(_0x48bbec(),_0x1f4773[_0x11d681(0x303)]()?.());}),_0x2b65a7=_0x45605f=>{const _0x4ee24a=_0x174f8b;_0x355192&&_0x20a4d6(ae(_0x45605f,_0x5710ad()[_0x4ee24a(0x242)]()));},_0x4e5f33=(async()=>{const _0x4c220b=_0x174f8b;await _0x264c04;for await(let _0x3afeaf of _0x53b4d6[_0x4c220b(0x201)]){if(_0x481d46)return;_0x3a57a===0x0&&(_0x23e19c=_0x5710ad()['getSessionMessages']()[_0x4c220b(0x2b7)]),_0x3a57a++;let _0x377d03=new Promise(_0x2df69b=>{const _0x549c58=_0x4c220b;_0x1f4773[_0x549c58(0x39d)](()=>{_0x2b65a7(_0x3afeaf),_0x2df69b();});}),_0x5bcc51=()=>{const _0x333aaf=_0x4c220b;_0x3a57a--,_0x1f4773[_0x333aaf(0x294)]();},_0x290fa1=_0x5710ad()['steer'](_0x3afeaf[_0x4c220b(0x235)]);_0x37fe96=_0x290fa1[_0x4c220b(0x225)](()=>{});try{await _0x290fa1?await Promise[_0x4c220b(0x25f)]([_0x377d03,_0x5710ad()['waitForIdle']()]):(_0x5bcc51(),_0x57a59b(_0x4c220b(0x3a1)));}catch(_0x5c2e04){_0x5bcc51(),_0x57a59b(_0x4c220b(0x298)+(_0x5c2e04 instanceof Error?_0x5c2e04[_0x4c220b(0x23a)]:String(_0x5c2e04))+'\x0a');}}})()[_0x174f8b(0x225)](_0x5518e6=>{const _0x369f9f=_0x174f8b;_0x57a59b(_0x369f9f(0x37e)+(_0x5518e6 instanceof Error?_0x5518e6[_0x369f9f(0x23a)]:String(_0x5518e6))+'\x0a');});return{'settle':async _0x38b5d4=>{const _0x53dfaf=_0x174f8b;if(await _0x37fe96,_0x3a57a===0x0)return _0x38b5d4;await _0x5710ad()[_0x53dfaf(0x2b8)]();for(let _0x1cf70e of _0x1f4773)_0x1cf70e();_0x1f4773=[];let _0x113451=_0x5710ad()[_0x53dfaf(0x361)]()[_0x53dfaf(0x1c5)](_0x23e19c)['findLast'](_0x47dd77=>_0x47dd77[_0x53dfaf(0x30e)]===_0x53dfaf(0x228)||_0x18d44e(_0x47dd77)||_0x47dd77[_0x53dfaf(0x1dc)]==='ai'&&_0x47dd77[_0x53dfaf(0x30e)]!=='agent_thought'&&_0x47dd77['widget']!==_0x53dfaf(0x2e1)&&!!_0x47dd77[_0x53dfaf(0x28f)]);if(!_0x113451)return{..._0x38b5d4,'failed':!0x0,'text':'The\x20steering\x20message\x20was\x20not\x20answered:\x20its\x20turn\x20did\x20not\x20run\x20or\x20added\x20no\x20reply.'};let _0x295247=_0x113451[_0x53dfaf(0x30e)]===_0x53dfaf(0x228);return typeof _0x113451[_0x53dfaf(0x28f)]!=_0x53dfaf(0x265)?{..._0x38b5d4,'failed':_0x295247}:{..._0x38b5d4,'failed':_0x295247,'text':_0x295247?_0x300ebb(_0x113451['content']):_0x113451[_0x53dfaf(0x28f)]};},'stop':()=>{const _0x43c2a2=_0x174f8b;_0x481d46=!0x0,_0x42259b(),_0x53b4d6[_0x43c2a2(0x1bf)]();}};}var de=L(()=>{K();});import _0x385e4a from'fs';import _0x20c50a from'path';import{clearLine as _0x1e780c,createInterface as _0x45ca1e,cursorTo as _0x3682b0}from'node:readline';import{DelegateAgent as _0x49af94,cancelTurn as _0xb3b5d0,InteropProcess as _0x5f0b5a,complete as _0x520cef,DEFAULT_MODEL as _0x14306e,createBackendClient as _0x3b5d7a,evaluate as _0x568a4c,isCompletionRequestError as _0x5d9332,isEvaluationRequestError as _0x4a5325,isTranscriptionError as _0x88771,rerank as _0x82b8eb,transcribe as _0x269b71,verify as _0x302f4f,acceptDelegation as _0x5ec255,cancelDelegation as _0x15d90a,claimDelegation as _0x1d0d97,completeDelegation as _0x2821fe,createDelegation as _0x392373,deleteDelegation as _0x457478,dismissDelegation as _0x255c18,getSessionDelegations as _0x41720e,isDelegationError as _0x5d3eb4,listDelegations as _0x250617,listOrgUsers as _0x2d8092,previewDelegation as _0x4570f3,TurnResultCollector as _0x2abd5c,agentEventToJsonLine as _0x767660,describeBaseUrlRejection as _0x516b42,getActivitySummary as _0x220773,getAuthFilePath as _0x5b6457,getByoWarnings as _0x56088f,getDailyBreakdown as _0x25de1f,getLicensingSummary as _0xca47b1,getMonthlySpending as _0x3fbe34,isOutputFormat as _0x42e9e9,isCloudBaseUrl as _0x29261e,isSafeProjectFolderSegment as _0x1a71d6,listModels as _0x89dfcf,listSessions as _0x21c554,getSession as _0x157ef9,renameSession as _0x59ea03,deleteSession as _0x4a3f57,deleteSessionTaskLog as _0x4dce28,forkSession as _0x5c3eb6,isBackendRequestError as _0x3665d7,MAX_SESSION_PAGE_SIZE as _0x7ddbb6,listTenants as _0xa85c8,loadAndRefreshAuth as _0x57f4fa,loadAndRefreshSdkLogin as _0xefb5f0,parsePlatformBaseUrl as _0xdbed35,resolveBackendUrl as _0xdff04d,runHealthCheck as _0xa802a1,runHostCommand as _0x3545f0,runLoginFlow as _0x3c93fd,runTurnForResult as _0x3d3192,saveAuthData as _0x10712c,switchTenant as _0x1ed4af,toJsonLine as _0x4c2f68,ENV_TO_CLOUD as _0x1b830a,OUTPUT_FORMATS as _0xff1406,isRunStopNotice as _0x4cfa9f,extractActionableErrorText as _0x1d67ed}from'@uipath/delegate-sdk';function k(_0xa3b68f,_0x41d9f6,_0x5be47b,_0x1aa0f4){const _0x3a7162=_0x4642c2;let _0x5de72d=_0xa3b68f[_0x41d9f6];return(!_0x5de72d||_0x5de72d[_0x3a7162(0x2b7)]>0x1&&_0x5de72d[_0x3a7162(0x251)]('-'))&&(console[_0x3a7162(0x24d)](_0x5be47b+_0x3a7162(0x332)+_0x1aa0f4+'.'),process[_0x3a7162(0x21f)](0x2)),_0x5de72d;}function Q(_0x509b63,_0x15ff04,_0x4e8881,_0x14df27){const _0x206a53=_0x4642c2;let _0x460bc1=k(_0x509b63,_0x15ff04,_0x4e8881,_0x206a53(0x270)),_0x3030bd=Number(_0x460bc1);return(!/^\d+$/[_0x206a53(0x1f9)](_0x460bc1)||_0x3030bd<0x1||!Number[_0x206a53(0x3f2)](_0x3030bd)||_0x14df27!==void 0x0&&_0x3030bd>_0x14df27)&&(console[_0x206a53(0x24d)](_0x4e8881+_0x206a53(0x2fc)+(_0x14df27===void 0x0?'1\x20or\x20more':_0x206a53(0x208)+_0x14df27)+',\x20got\x20'+_0x460bc1+'.'),process[_0x206a53(0x21f)](0x2)),_0x3030bd;}function an(_0x41bf3e,_0x52cc0e){const _0x5755f3=_0x4642c2;let _0x17c560={'product':_0x52cc0e,'subcommand':'','prompt':'','print':!0x1,'keepAlive':!0x1,'cleanup':!0x1,'headless':!0x1,'commandFlags':{},'noComputerUse':_0x52cc0e[_0x5755f3(0x393)]===_0x5755f3(0x3ee),'computerUse':!0x1,'noConnections':!0x1,'noSecurity':!0x1,'noMemory':!0x1,'taskAutomation':!0x1,'quiet':!0x1,'verbose':!0x1,'outputFormat':_0x5755f3(0x235),'inputFormat':'text','replayUserMessages':!0x1,'preloadSkills':[..._0x52cc0e['preloadSkills']??[]],'attachments':[],'skipEnvCheck':!0x1,'includeSubAgents':!0x1,'operands':[],'help':!0x1,'version':!0x1},_0xa298c1=_0x52cc0e[_0x5755f3(0x22e)]?.[_0x5755f3(0x293)](_0x24e16f=>_0x24e16f[_0x5755f3(0x1d3)]===_0x41bf3e[0x0]);_0xa298c1?(_0x17c560['command']=_0xa298c1,_0x17c560[_0x5755f3(0x30c)]=_0xa298c1[_0x5755f3(0x1d3)],_0x41bf3e=_0x41bf3e[_0x5755f3(0x1c5)](0x1)):sn[_0x5755f3(0x217)](_0x41bf3e[0x0])&&(_0x17c560[_0x5755f3(0x30c)]=_0x41bf3e[0x0],_0x41bf3e=_0x41bf3e[_0x5755f3(0x1c5)](0x1));let _0x110e5c=[];for(let _0xd38fe7=0x0;_0xd38fe7<_0x41bf3e[_0x5755f3(0x2b7)];_0xd38fe7++){let _0x35abfb=_0x41bf3e[_0xd38fe7];switch(_0x35abfb){case _0x5755f3(0x2e4):case'-p':_0x17c560[_0x5755f3(0x315)]=!0x0;break;case'--keep-alive':_0x17c560[_0x5755f3(0x32d)]=!0x0;break;case _0x5755f3(0x259):_0x17c560[_0x5755f3(0x37d)]=!0x0;break;case _0x5755f3(0x238):_0x17c560[_0x5755f3(0x273)]=!0x0;break;case _0x5755f3(0x240):_0x17c560['noComputerUse']=!0x0;break;case _0x5755f3(0x1ac):_0x17c560[_0x5755f3(0x2c2)]=!0x0;break;case'--no-security':_0x17c560[_0x5755f3(0x406)]=!0x0;break;case _0x5755f3(0x3a8):_0x17c560['noMemory']=!0x0;break;case _0x5755f3(0x33f):_0x17c560[_0x5755f3(0x203)]=!0x0;break;case _0x5755f3(0x1c6):case'-q':_0x17c560[_0x5755f3(0x1ff)]=!0x0;break;case _0x5755f3(0x233):_0x17c560[_0x5755f3(0x3b8)]=!0x0;break;case _0x5755f3(0x3ab):_0x17c560[_0x5755f3(0x36d)]=_0x41bf3e[++_0xd38fe7];break;case'--model':_0x17c560['model']=_0x41bf3e[++_0xd38fe7];break;case _0x5755f3(0x1a6):_0x17c560[_0x5755f3(0x1db)]=_0x41bf3e[++_0xd38fe7];break;case _0x5755f3(0x290):_0x17c560[_0x5755f3(0x1b4)]=_0x41bf3e[++_0xd38fe7];break;case _0x5755f3(0x1c1):_0x17c560[_0x5755f3(0x3ce)]=_0x41bf3e[++_0xd38fe7];break;case'--preload-skill':_0x17c560[_0x5755f3(0x338)][_0x5755f3(0x39d)](k(_0x41bf3e,++_0xd38fe7,_0x35abfb,_0x5755f3(0x24b)));break;case _0x5755f3(0x263):{let _0x2ae190=k(_0x41bf3e,++_0xd38fe7,_0x35abfb,'a\x20project\x20id');_0x1a71d6(_0x2ae190)||(console[_0x5755f3(0x24d)](_0x5755f3(0x3e9)+_0x2ae190+_0x5755f3(0x34a)),process[_0x5755f3(0x21f)](0x2)),_0x17c560[_0x5755f3(0x41b)]=_0x2ae190;break;}case _0x5755f3(0x2d7):_0x17c560[_0x5755f3(0x283)]=k(_0x41bf3e,++_0xd38fe7,_0x35abfb,'a\x20vertical\x20id');break;case'--output-format':{let _0x554959=k(_0x41bf3e,++_0xd38fe7,_0x35abfb,_0x5755f3(0x1e1)+_0xff1406[_0x5755f3(0x2d6)](_0x5755f3(0x3cf))+')');_0x42e9e9(_0x554959)||(console[_0x5755f3(0x24d)](_0x5755f3(0x381)+_0x554959+'.\x20Use\x20'+_0xff1406[_0x5755f3(0x2d6)](_0x5755f3(0x3cf))+'.'),process[_0x5755f3(0x21f)](0x2)),_0x17c560[_0x5755f3(0x2cc)]=_0x554959;break;}case _0x5755f3(0x413):{let _0x192676=k(_0x41bf3e,++_0xd38fe7,_0x35abfb,_0x5755f3(0x1e1)+B[_0x5755f3(0x2d6)]('\x20|\x20')+')');ie(_0x192676)||(console[_0x5755f3(0x24d)](_0x5755f3(0x325)+_0x192676+_0x5755f3(0x41e)+B[_0x5755f3(0x2d6)](_0x5755f3(0x3cf))+'.'),process['exit'](0x2)),_0x17c560[_0x5755f3(0x3bd)]=_0x192676;break;}case _0x5755f3(0x249):_0x17c560[_0x5755f3(0x366)]=!0x0;break;case'--session':_0x17c560[_0x5755f3(0x2dd)]=k(_0x41bf3e,++_0xd38fe7,_0x35abfb,'a\x20session\x20id');break;case'--page':_0x17c560[_0x5755f3(0x40b)]=Q(_0x41bf3e,++_0xd38fe7,_0x35abfb);break;case'--limit':_0x17c560['limit']=Q(_0x41bf3e,++_0xd38fe7,_0x35abfb,_0x7ddbb6);break;case _0x5755f3(0x386):_0x17c560[_0x5755f3(0x2b9)]=!0x0;break;case _0x5755f3(0x2e3):_0x17c560['jsonSchemaPath']=k(_0x41bf3e,++_0xd38fe7,_0x35abfb,_0x5755f3(0x348));break;case _0x5755f3(0x3b0):{let _0x37b922=_0x20c50a[_0x5755f3(0x346)](process[_0x5755f3(0x3f7)](),k(_0x41bf3e,++_0xd38fe7,_0x35abfb,_0x5755f3(0x31b)));_0x385e4a[_0x5755f3(0x2b5)](_0x37b922)||(console['error']('--attach:\x20no\x20such\x20file\x20or\x20folder:\x20'+_0x37b922),process[_0x5755f3(0x21f)](0x2)),_0x17c560[_0x5755f3(0x25d)]['push'](_0x37b922);break;}case _0x5755f3(0x2ad):_0x17c560[_0x5755f3(0x27b)]=k(_0x41bf3e,++_0xd38fe7,_0x35abfb,_0x5755f3(0x1ad));break;case _0x5755f3(0x281):_0x17c560[_0x5755f3(0x38b)]=k(_0x41bf3e,++_0xd38fe7,_0x35abfb,_0x5755f3(0x1ec));break;case'--summary':_0x17c560[_0x5755f3(0x2cb)]=k(_0x41bf3e,++_0xd38fe7,_0x35abfb,'a\x20briefing\x20text');break;case _0x5755f3(0x1df):_0x17c560[_0x5755f3(0x1b6)]=Q(_0x41bf3e,++_0xd38fe7,_0x35abfb,0x16d);break;case'--working-dir':_0x17c560[_0x5755f3(0x26a)]=_0x20c50a['resolve'](process[_0x5755f3(0x3f7)](),k(_0x41bf3e,++_0xd38fe7,_0x35abfb,_0x5755f3(0x2ce)));break;case _0x5755f3(0x3c5):_0x17c560[_0x5755f3(0x1f5)]=_0x20c50a['resolve'](process[_0x5755f3(0x3f7)](),k(_0x41bf3e,++_0xd38fe7,_0x35abfb,_0x5755f3(0x2ce)));break;case _0x5755f3(0x383):{let _0x236991=k(_0x41bf3e,++_0xd38fe7,_0x35abfb,_0x5755f3(0x3c3));ge['includes'](_0x236991)||(console[_0x5755f3(0x24d)](_0x5755f3(0x3f3)+_0x236991+_0x5755f3(0x41e)+ge[_0x5755f3(0x2d6)](_0x5755f3(0x3cf))+'.'),process[_0x5755f3(0x21f)](0x2)),_0x17c560[_0x5755f3(0x2f2)]=_0x236991;break;}case _0x5755f3(0x200):{let _0xa25a77=_0x41bf3e[++_0xd38fe7];(!_0xa25a77||_0xa25a77[_0x5755f3(0x251)]('--'))&&(console['error'](_0x5755f3(0x374)),process[_0x5755f3(0x21f)](0x2)),_0x17c560[_0x5755f3(0x25e)]=_0xa25a77;break;}case _0x5755f3(0x1dd):{let _0x4000a1=_0x41bf3e[++_0xd38fe7];[_0x5755f3(0x2fb),'staging','production',_0x5755f3(0x1f0)][_0x5755f3(0x217)](_0x4000a1)||(console[_0x5755f3(0x24d)](_0x5755f3(0x2ba)+_0x4000a1+_0x5755f3(0x20a)),process['exit'](0x2)),_0x17c560[_0x5755f3(0x2ff)]=_0x4000a1;break;}case _0x5755f3(0x2c5):case _0x5755f3(0x32b):{let _0x29da8e=k(_0x41bf3e,++_0xd38fe7,_0x35abfb,'a\x20deployment\x20URL,\x20e.g.\x20https://automationsuite.contoso.com'),_0xc2c4eb=_0xdbed35(_0x29da8e);if(_0xc2c4eb['ok']===!0x1){console['error'](_0x516b42(_0x29da8e,_0xc2c4eb[_0x5755f3(0x252)])),process['exit'](0x2);break;}_0x17c560[_0x5755f3(0x3b7)]=_0xc2c4eb['baseUrl'];break;}case _0x5755f3(0x399):_0x17c560[_0x5755f3(0x2be)]=!0x0;break;case'-h':case'--help':_0x17c560['help']=!0x0;break;case'-v':case _0x5755f3(0x2c9):_0x17c560[_0x5755f3(0x405)]=!0x0;break;default:if(_0xa298c1&&Object[_0x5755f3(0x2a8)](_0xa298c1['valueFlags'],_0x35abfb)){_0x17c560['commandFlags'][_0x35abfb]=k(_0x41bf3e,++_0xd38fe7,_0x35abfb,_0xa298c1[_0x5755f3(0x1c8)][_0x35abfb]);break;}if(_0x35abfb===_0x5755f3(0x1d1)&&_0x52cc0e['computerUse']===_0x5755f3(0x1ab)){_0x17c560['computerUse']=!0x0;break;}_0x35abfb[_0x5755f3(0x251)]('--')&&(console['error'](_0x5755f3(0x2d4)+_0x35abfb),process[_0x5755f3(0x21f)](0x2)),_0x110e5c[_0x5755f3(0x39d)](_0x35abfb);}}_0x17c560['tenant']!==void 0x0&&_0x17c560['subcommand']!==_0x5755f3(0x2c6)&&(console['error'](_0x5755f3(0x2a7)+_0x17c560['product'][_0x5755f3(0x248)]+'\x20login`\x20only.\x20Switch\x20tenants\x20with:\x20'+_0x17c560[_0x5755f3(0x2f5)][_0x5755f3(0x248)]+_0x5755f3(0x1ca)),process[_0x5755f3(0x21f)](0x2)),_0x17c560[_0x5755f3(0x3b7)]!==void 0x0&&_0x17c560[_0x5755f3(0x2ff)]!==void 0x0&&(console[_0x5755f3(0x24d)](_0x5755f3(0x239)),process['exit'](0x2)),_0x17c560[_0x5755f3(0x3b7)]!==void 0x0&&_0x17c560[_0x5755f3(0x30c)]!=='login'&&(console['error'](_0x5755f3(0x306)+_0x17c560[_0x5755f3(0x2f5)][_0x5755f3(0x248)]+'\x20login`\x20only.\x20Other\x20commands\x20follow\x20the\x20saved\x20login,\x20or\x20--backend\x20<url>.'),process['exit'](0x2)),_0x17c560[_0x5755f3(0x1b6)]!==void 0x0&&_0x17c560[_0x5755f3(0x30c)]!==_0x5755f3(0x3f6)&&(console[_0x5755f3(0x24d)]('--days\x20applies\x20to\x20`'+_0x17c560[_0x5755f3(0x2f5)]['bin']+'\x20usage\x20activity|daily`\x20only.'),process['exit'](0x2)),_0x17c560[_0x5755f3(0x39e)]!==void 0x0&&(_0x17c560[_0x5755f3(0x30c)]!==_0x5755f3(0x1e2)&&_0x17c560[_0x5755f3(0x30c)]!==''||_0x17c560[_0x5755f3(0x37d)])&&(console[_0x5755f3(0x24d)](_0x5755f3(0x3f5)+_0x17c560['product'][_0x5755f3(0x248)]+_0x5755f3(0x3c2)),process[_0x5755f3(0x21f)](0x2)),_0x17c560[_0x5755f3(0x25d)][_0x5755f3(0x2b7)]>0x0&&(_0x17c560['subcommand']!==''||_0x17c560['cleanup'])&&(console[_0x5755f3(0x24d)](_0x5755f3(0x2a1)),process[_0x5755f3(0x21f)](0x2)),_0x17c560[_0x5755f3(0x203)]&&(_0x17c560[_0x5755f3(0x30c)]!==''||_0x17c560['cleanup'])&&(console[_0x5755f3(0x24d)]('--task-automation\x20applies\x20to\x20prompts\x20only.'),process[_0x5755f3(0x21f)](0x2)),_0x17c560[_0x5755f3(0x393)]&&(_0x17c560[_0x5755f3(0x273)]||_0x17c560[_0x5755f3(0x209)])&&(console['error'](_0x5755f3(0x2d2)),process[_0x5755f3(0x21f)](0x2)),_0x52cc0e[_0x5755f3(0x393)]==='opt-in'&&!_0x17c560[_0x5755f3(0x393)]&&(_0x17c560[_0x5755f3(0x209)]=!0x0),_0x17c560[_0x5755f3(0x203)]&&(_0x17c560[_0x5755f3(0x273)]||_0x17c560[_0x5755f3(0x209)])&&(console[_0x5755f3(0x24d)](_0x5755f3(0x2d0)+(_0x52cc0e['computerUse']==='never'?_0x52cc0e[_0x5755f3(0x248)]+_0x5755f3(0x1e7):_0x52cc0e[_0x5755f3(0x393)]===_0x5755f3(0x1ab)?_0x5755f3(0x22b):_0x5755f3(0x336))),process['exit'](0x2)),_0x52cc0e['vertical']!==void 0x0&&(_0x17c560[_0x5755f3(0x283)]!==void 0x0&&_0x17c560[_0x5755f3(0x283)][_0x5755f3(0x21c)]()!==_0x52cc0e[_0x5755f3(0x283)]&&(console['error'](_0x52cc0e[_0x5755f3(0x248)]+_0x5755f3(0x3e4)+_0x52cc0e[_0x5755f3(0x283)]+_0x5755f3(0x3a2)+_0x17c560[_0x5755f3(0x283)]+_0x5755f3(0x32c)),process[_0x5755f3(0x21f)](0x2)),_0x17c560[_0x5755f3(0x283)]=_0x52cc0e[_0x5755f3(0x283)]),_0x17c560[_0x5755f3(0x2be)]&&_0x17c560[_0x5755f3(0x30c)]!==_0x5755f3(0x2c6)&&(console[_0x5755f3(0x24d)](_0x5755f3(0x328)+_0x17c560[_0x5755f3(0x2f5)][_0x5755f3(0x248)]+_0x5755f3(0x3dc)),process['exit'](0x2));let _0x5ab0fb=[...rn,...(_0x52cc0e[_0x5755f3(0x22e)]??[])[_0x5755f3(0x213)](_0x5d0919=>_0x5d0919['machineOutput'])[_0x5755f3(0x3d4)](_0x277c67=>_0x277c67['name'])];return _0x17c560['outputFormat']!==_0x5755f3(0x235)&&!_0x5ab0fb[_0x5755f3(0x217)](_0x17c560[_0x5755f3(0x30c)])&&(console[_0x5755f3(0x24d)](_0x5755f3(0x322)+_0x17c560[_0x5755f3(0x2cc)]+_0x5755f3(0x3e6)+_0x5ab0fb['filter'](Boolean)[_0x5755f3(0x2d6)](',\x20')+'.'),process[_0x5755f3(0x21f)](0x2)),(_0x17c560[_0x5755f3(0x3bd)]!==_0x5755f3(0x235)||_0x17c560[_0x5755f3(0x366)])&&_0x17c560[_0x5755f3(0x30c)]!==''&&(console[_0x5755f3(0x24d)](_0x5755f3(0x344)),process[_0x5755f3(0x21f)](0x2)),_0x17c560['replayUserMessages']&&_0x17c560[_0x5755f3(0x3bd)]!==_0x5755f3(0x214)&&(console[_0x5755f3(0x24d)](_0x5755f3(0x2d1)),process[_0x5755f3(0x21f)](0x2)),_0x17c560['inputFormat']===_0x5755f3(0x214)&&_0x17c560['outputFormat']!==_0x5755f3(0x214)&&(console[_0x5755f3(0x24d)](_0x5755f3(0x385)),process[_0x5755f3(0x21f)](0x2)),(_0x17c560[_0x5755f3(0x40b)]!==void 0x0||_0x17c560[_0x5755f3(0x39f)]!==void 0x0||_0x17c560[_0x5755f3(0x2b9)])&&_0x17c560[_0x5755f3(0x30c)]!==_0x5755f3(0x21a)&&(console['error'](_0x5755f3(0x204)+_0x17c560['product']['bin']+_0x5755f3(0x316)),process[_0x5755f3(0x21f)](0x2)),(_0x17c560[_0x5755f3(0x38b)]!==void 0x0||_0x17c560[_0x5755f3(0x2cb)]!==void 0x0)&&_0x17c560[_0x5755f3(0x30c)]!==_0x5755f3(0x1d5)&&(console[_0x5755f3(0x24d)](_0x5755f3(0x384)+_0x17c560['product'][_0x5755f3(0x248)]+_0x5755f3(0x21d)),process['exit'](0x2)),_0x17c560[_0x5755f3(0x27b)]!==void 0x0&&_0x17c560[_0x5755f3(0x30c)]!==_0x5755f3(0x21a)&&(console[_0x5755f3(0x24d)](_0x5755f3(0x1fa)+_0x17c560[_0x5755f3(0x2f5)][_0x5755f3(0x248)]+'\x20sessions\x20cancel`\x20only.'),process[_0x5755f3(0x21f)](0x2)),_0x17c560[_0x5755f3(0x338)]=[...new Set(_0x17c560['preloadSkills'])],_0x17c560[_0x5755f3(0x28b)]=_0x110e5c,_0x17c560[_0x5755f3(0x2ea)]=_0x110e5c['join']('\x20'),_0x17c560[_0x5755f3(0x3bd)]===_0x5755f3(0x214)&&_0x17c560[_0x5755f3(0x2ea)]!==''&&(console[_0x5755f3(0x24d)](_0x5755f3(0x20f)),process[_0x5755f3(0x21f)](0x2)),_0x17c560;}function ln(){const _0xf95960=_0x4642c2;let _0x5c1242=process[_0xf95960(0x232)]['write'],_0x27c555=_0x5c1242[_0xf95960(0x40c)](process[_0xf95960(0x232)]),_0xe49cd4=O;return O=_0x84ee2e=>{_0x27c555(_0x84ee2e);},process['stdout'][_0xf95960(0x210)]=(..._0x135d9c)=>process[_0xf95960(0x38f)][_0xf95960(0x210)](..._0x135d9c),()=>{const _0x559ce6=_0xf95960;process[_0x559ce6(0x232)]['write']=_0x5c1242,O=_0xe49cd4;};}function m(_0x9665ee,_0x20b6ec,_0x13ca8e){const _0x19b1a3=_0x4642c2;if(_0x9665ee[_0x19b1a3(0x2cc)]==='text'){_0x13ca8e(_0x20b6ec);return;}O(_0x4c2f68(_0x20b6ec));}function cn(_0x149009){const _0x1e233e=_0x4642c2;let _0x5c37f5=_0x149009[_0x1e233e(0x248)],_0x419f8a=_0x149009[_0x1e233e(0x1b2)]?.[_0x1e233e(0x22e)]?_0x149009[_0x1e233e(0x1b2)]['commands']+'\x0a':'',_0x103894=_0x149009[_0x1e233e(0x1b2)]?.[_0x1e233e(0x3d5)]?_0x149009[_0x1e233e(0x1b2)]['flags']+'\x0a':'',_0x553efd=_0x149009[_0x1e233e(0x1b2)]?.[_0x1e233e(0x3d1)]?'\x0a\x0a'+_0x149009[_0x1e233e(0x1b2)][_0x1e233e(0x3d1)]:'',_0x3231b0=('\x0a'+_0x5c37f5+_0x1e233e(0x2e0)+_0x149009[_0x1e233e(0x33c)]+_0x1e233e(0x3fb)+_0x5c37f5+_0x1e233e(0x373)+_0x5c37f5+_0x1e233e(0x3e0)+_0x5c37f5+_0x1e233e(0x1f8)+_0x5c37f5+'\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'+_0x5c37f5+_0x1e233e(0x2ee)+_0x5c37f5+_0x1e233e(0x24a)+_0x5c37f5+_0x1e233e(0x1f2)+_0x5c37f5+'\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'+_0x5c37f5+_0x1e233e(0x35f)+_0x5c37f5+_0x1e233e(0x2fe)+_0x5c37f5+'\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'+_0x5c37f5+_0x1e233e(0x24f)+_0x5c37f5+_0x1e233e(0x320)+_0x5c37f5+'\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'+_0x5c37f5+'\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'+_0x5c37f5+_0x1e233e(0x275)+_0x5c37f5+'\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'+_0x5c37f5+_0x1e233e(0x343)+_0x5c37f5+_0x1e233e(0x319)+_0x5c37f5+_0x1e233e(0x23d)+_0x5c37f5+_0x1e233e(0x307)+_0x5c37f5+_0x1e233e(0x2c3)+_0x419f8a+'\x20\x20'+_0x5c37f5+_0x1e233e(0x2e9)+_0x5c37f5+_0x1e233e(0x2a2)+_0x5c37f5+_0x1e233e(0x2ed)+_0x5c37f5+_0x1e233e(0x2cf)+_0x5c37f5+_0x1e233e(0x22c)+_0x5c37f5+_0x1e233e(0x22d)+_0x5c37f5+'\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'+_0x5c37f5+'\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'+_0x5c37f5+_0x1e233e(0x2a5)+_0x5c37f5+_0x1e233e(0x363)+_0x5c37f5+_0x1e233e(0x3a9)+_0x5c37f5+_0x1e233e(0x31e)+_0x5c37f5+'\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'+_0x5c37f5+'\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('+_0x5c37f5+_0x1e233e(0x323)+_0x103894+_0x1e233e(0x1a4)+_0x553efd+'\x0a')['trim']();console[_0x1e233e(0x29d)](dn(_0x3231b0));}function dn(_0x50bb43){const _0x6ddbd5=_0x4642c2;return _0x50bb43[_0x6ddbd5(0x22f)]('\x0a')[_0x6ddbd5(0x3d4)](_0x179637=>{const _0x5ac99d=_0x6ddbd5;let _0x52e96e=/^( \S.*?\S)( {2,})(\S.*)$/[_0x5ac99d(0x246)](_0x179637);return!_0x52e96e||_0x52e96e[0x1][_0x5ac99d(0x2b7)]+_0x52e96e[0x2][_0x5ac99d(0x2b7)]<=he?_0x179637:_0x52e96e[0x1]+'\x20'[_0x5ac99d(0x387)](Math[_0x5ac99d(0x3a4)](0x2,he-_0x52e96e[0x1][_0x5ac99d(0x2b7)]))+_0x52e96e[0x3];})[_0x6ddbd5(0x2d6)]('\x0a');}function un(){const _0x54387d=_0x4642c2;try{return JSON[_0x54387d(0x309)](_0x385e4a[_0x54387d(0x1e3)](_0x20c50a[_0x54387d(0x2d6)](__dirname,'..','package.json'),'utf-8'))['version']||_0x54387d(0x3ba);}catch{return _0x54387d(0x3ba);}}async function ye(_0x37dd86,_0x20b6ce){const _0x4af41f=_0x4642c2;let _0x27606b=_0x20b6ce?[_0x20b6ce]:[];for await(let _0x86de5 of _0x37dd86)_0x27606b[_0x4af41f(0x39d)](Buffer[_0x4af41f(0x337)](_0x86de5));return Buffer[_0x4af41f(0x3aa)](_0x27606b)[_0x4af41f(0x38d)](_0x4af41f(0x3a7))['trim']();}function mn(_0x258eb9,_0x189e47){return new Promise(_0x33283b=>{const _0x4ffb56=_0x50fd;let _0x18b7e3=_0x3afe7c=>{const _0x552e59=_0x50fd;clearTimeout(_0x2740ec),_0x258eb9['off'](_0x552e59(0x21b),_0x8e8435),_0x258eb9['off'](_0x552e59(0x23e),_0x543736),_0x258eb9[_0x552e59(0x2d3)](_0x552e59(0x24d),_0x543736),_0x258eb9[_0x552e59(0x285)](),_0x33283b(_0x3afe7c);},_0x8e8435=_0x2268dc=>_0x18b7e3(Buffer['from'](_0x2268dc)),_0x543736=()=>_0x18b7e3(null),_0x2740ec=setTimeout(()=>_0x18b7e3(null),_0x189e47);_0x258eb9['on'](_0x4ffb56(0x21b),_0x8e8435),_0x258eb9['on'](_0x4ffb56(0x23e),_0x543736),_0x258eb9['on'](_0x4ffb56(0x24d),_0x543736),_0x258eb9[_0x4ffb56(0x256)]();});}async function J(_0x15e791,_0x21afa2,_0x4f329e=pn){const _0x4a6ecc=_0x4642c2;let _0x59f6fc=_0x15e791==='-';if(!_0x59f6fc&&_0x15e791)return _0x15e791;if(!_0x59f6fc&&_0x21afa2[_0x4a6ecc(0x258)])return'';if(_0x59f6fc)return ye(_0x21afa2,null);let _0x11fbae=await mn(_0x21afa2,_0x4f329e);return _0x11fbae?ye(_0x21afa2,_0x11fbae):'';}function z(){const _0x77f799=_0x4642c2;return _0x20c50a[_0x77f799(0x2d6)](process.env.HOME||process.env.USERPROFILE||'',_0x77f799(0x2f8),_0x77f799(0x3c9));}function G(_0x2ac7f1){const _0xfa1c94=_0x4642c2;try{let _0x1e2583=JSON[_0xfa1c94(0x309)](_0x385e4a['readFileSync'](_0x2ac7f1,_0xfa1c94(0x3a7)));return!_0x1e2583[_0xfa1c94(0x318)]||!_0x1e2583[_0xfa1c94(0x262)]||!_0x1e2583[_0xfa1c94(0x311)]?null:_0x1e2583;}catch{return null;}}function fn(){let _0x24a48c=[{'file':_0x5b6457(),'isDesktopFallback':!0x1},{'file':z(),'isDesktopFallback':!0x0}];for(let _0x260934 of _0x24a48c){let _0x4dc28b=G(_0x260934['file']);if(_0x4dc28b)return{..._0x260934,'auth':_0x4dc28b};}return null;}async function gn(){const _0x4d7939=_0x4642c2;let _0x2209e9=_0x5b6457();if(!_0x385e4a['existsSync'](_0x2209e9)){let _0x49b149=z();console[_0x4d7939(0x29d)](G(_0x49b149)?_0x4d7939(0x1eb)+_0x49b149+_0x4d7939(0x3b3):_0x4d7939(0x226));return;}_0x385e4a['rmSync'](_0x2209e9),console[_0x4d7939(0x29d)](_0x4d7939(0x241)+_0x2209e9);}async function hn(_0x26b75d){const _0xdb0e25=_0x4642c2;let _0x563e85=V(),_0x4e4e24,_0x538d44;if(_0x563e85)_0x4e4e24=_0x563e85,_0x538d44=_0xdb0e25(0x1d8);else{let _0x5f4d9b=fn();if(!_0x5f4d9b)throw new Error(Ne(_0x26b75d[_0xdb0e25(0x2f5)][_0xdb0e25(0x248)]));_0x4e4e24=_0x5f4d9b[_0xdb0e25(0x1be)],_0x538d44=_0x5f4d9b[_0xdb0e25(0x3db)]?_0x5f4d9b[_0xdb0e25(0x375)]+_0xdb0e25(0x1fd):_0x5f4d9b[_0xdb0e25(0x375)];}let _0x29e484={'source':_0x538d44,'baseUrl':_0x4e4e24[_0xdb0e25(0x1e0)]??null,'deployment':yn(_0x4e4e24[_0xdb0e25(0x1e0)]),'organization':{'id':_0x4e4e24[_0xdb0e25(0x311)],'slug':_0x4e4e24[_0xdb0e25(0x2cd)]??null},'tenant':{'id':_0x4e4e24['tenantId'],'name':_0x4e4e24[_0xdb0e25(0x403)]??null},'tokenExpiresAt':_0x4e4e24[_0xdb0e25(0x1f1)]?new Date(_0x4e4e24['expiresAt']*0x3e8)['toISOString']():null};m(_0x26b75d,_0x29e484,()=>{const _0x21d20e=_0xdb0e25;let _0xfb2135=[_0x21d20e(0x3bf)+_0x538d44,_0x21d20e(0x2e2)+(_0x4e4e24[_0x21d20e(0x1e0)]??_0x21d20e(0x3ba)),'Deployment:\x20\x20\x20'+_0x29e484['deployment'],'Organization:\x20'+(_0x4e4e24[_0x21d20e(0x2cd)]??_0x21d20e(0x38e))+'\x20('+_0x4e4e24[_0x21d20e(0x311)]+')',_0x21d20e(0x3ed)+(_0x4e4e24[_0x21d20e(0x403)]??'unknown\x20slug')+'\x20('+_0x4e4e24[_0x21d20e(0x262)]+')'];if(_0x4e4e24[_0x21d20e(0x1f1)]){let _0x3e5b80=_0x4e4e24[_0x21d20e(0x1f1)]-Math[_0x21d20e(0x264)](Date[_0x21d20e(0x32f)]()/0x3e8);_0xfb2135['push'](_0x3e5b80>0x0?_0x21d20e(0x29c)+_0x29e484[_0x21d20e(0x20e)]+_0x21d20e(0x3fd)+Math[_0x21d20e(0x1d9)](_0x3e5b80/0x3c)+_0x21d20e(0x1e5):_0x21d20e(0x220)+_0x29e484[_0x21d20e(0x20e)]);}process[_0x21d20e(0x232)][_0x21d20e(0x210)](_0xfb2135[_0x21d20e(0x2d6)]('\x0a')+'\x0a');});}function Ne(_0x16b38f){const _0x41ea5e=_0x4642c2;return _0x41ea5e(0x41f)+_0x16b38f+_0x41ea5e(0x2e7);}function yn(_0x16a0d4){const _0x41aa5b=_0x4642c2;return _0x16a0d4?_0x29261e(_0x16a0d4)?_0x41aa5b(0x2dc):_0x41aa5b(0x3cb):_0x41aa5b(0x3ba);}function _0x50fd(_0x1d0de7,_0x7ba02a){_0x1d0de7=_0x1d0de7-0x1a4;const _0x542d4d=_0x542d();let _0x50fde4=_0x542d4d[_0x1d0de7];return _0x50fde4;}function V(){let _0x1c10cb=process.env.AUTH_TOKEN_FILE;return(process.env.AUTH_TOKEN||_0x1c10cb)&&process.env.TENANT_ID&&process.env.ORG_ID?{'accessToken':_0x1c10cb?wn(_0x1c10cb):process.env.AUTH_TOKEN,..._0x1c10cb?{'accessTokenFile':_0x1c10cb}:{},'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(_0x2bb00d){const _0x4f16f8=_0x4642c2;let _0x5a01c3;try{_0x5a01c3=_0x385e4a[_0x4f16f8(0x1e3)](_0x2bb00d,_0x4f16f8(0x3a7))[_0x4f16f8(0x21c)]();}catch(_0x2ec2ac){throw new Error('AUTH_TOKEN_FILE\x20\x27'+_0x2bb00d+'\x27\x20cannot\x20be\x20read:\x20'+_0x2ec2ac[_0x4f16f8(0x23a)]);}let _0x20bd7c=_0x5a01c3[_0x4f16f8(0x251)]('Bearer\x20')?_0x5a01c3['slice'](0x7)['trim']():_0x5a01c3;if(!_0x20bd7c)throw new Error(_0x4f16f8(0x408)+_0x2bb00d+_0x4f16f8(0x378));return _0x20bd7c;}function Ce(){const _0x2b3cb4=_0x4642c2;let _0x4e32c6=process.env.UIPATH_BASE_URL;if(!_0x4e32c6)return;let _0x240388=_0xdbed35(_0x4e32c6);if(_0x240388['ok']===!0x1)throw new Error(_0x2b3cb4(0x268)+_0x516b42(_0x4e32c6,_0x240388[_0x2b3cb4(0x252)]));return _0x240388['baseUrl'];}async function X(_0x54cf63){let _0x51d286=V();if(_0x51d286)return _0x51d286;let _0x259744=await _0x57f4fa();if(_0x259744)return _0x259744;throw new Error(Ne(_0x54cf63));}async function bn(){const _0x2de792=_0x4642c2;await new _0x5f0b5a()['stop']({'force':!0x0}),console[_0x2de792(0x29d)](_0x2de792(0x36f));}function Z(_0x124321,_0x52ee21,_0xe92629){const _0x2d632a=_0x4642c2;_0x124321?process[_0x2d632a(0x38f)][_0x2d632a(0x210)](_0x2d632a(0x28a)+_0x124321+_0x2d632a(0x32e)+_0xe92629+'\x0a'):!_0x52ee21&&!process.env.BACKEND_URL&&process[_0x2d632a(0x38f)]['write']('[saved\x20login]\x20Backend\x20URL:\x20'+_0xe92629+'\x0a');}async function x(_0x58d8f3){const _0x4eb0c4=_0x4642c2;let _0x1ea040=await X(_0x58d8f3[_0x4eb0c4(0x2f5)][_0x4eb0c4(0x248)]),_0x220ac0=_0xdff04d(_0x58d8f3[_0x4eb0c4(0x2ff)],_0x1ea040,_0x58d8f3[_0x4eb0c4(0x36d)]);return Z(_0x58d8f3[_0x4eb0c4(0x2ff)],_0x58d8f3[_0x4eb0c4(0x36d)],_0x220ac0),{'auth':_0x1ea040,'backendUrl':_0x220ac0,'client':_0x3b5d7a({'auth':_0x1ea040,'backendUrl':_0x220ac0})};}async function kn(_0xd04642){const _0x3bc7a7=_0x4642c2;let {client:_0x5c79c6}=await x(_0xd04642),[_0x55c7a9,_0x570ad4]=await Promise[_0x3bc7a7(0x20b)]([_0x89dfcf(_0x5c79c6),_0x56088f(_0x5c79c6)[_0x3bc7a7(0x225)](_0x2a946c=>(process['stderr']['write'](_0x3bc7a7(0x216)+(_0x2a946c instanceof Error?_0x2a946c[_0x3bc7a7(0x23a)]:String(_0x2a946c))+'\x0a'),{}))]),_0x3cf14c=_0x55c7a9[_0x3bc7a7(0x3d4)](_0x8c7b97=>_0x570ad4[_0x8c7b97['id']]?{..._0x8c7b97,'byoWarning':_0x570ad4[_0x8c7b97['id']]}:_0x8c7b97);m(_0xd04642,_0x3cf14c,_0x52588b=>vn(_0x52588b,_0xd04642[_0x3bc7a7(0x2f5)][_0x3bc7a7(0x248)]));}function vn(_0x4daffb,_0x27bc2f){const _0x4a5b30=_0x4642c2;if(_0x4daffb['length']===0x0){process[_0x4a5b30(0x38f)][_0x4a5b30(0x210)]('No\x20models\x20available\x20for\x20this\x20product/tenant.\x0a');return;}process['stdout'][_0x4a5b30(0x210)](_0x4a5b30(0x3e8)+_0x4daffb[_0x4a5b30(0x2b7)]+'):\x0a\x0a');for(let _0x8912d8 of _0x4daffb){let _0x27020d=_0x8912d8['name']&&_0x8912d8['name']!==_0x8912d8['id']?'\x20('+_0x8912d8[_0x4a5b30(0x1d3)]+')':'';process[_0x4a5b30(0x232)][_0x4a5b30(0x210)]('\x20\x20'+_0x8912d8['id']+_0x27020d+'\x0a'),_0x8912d8[_0x4a5b30(0x1b3)]&&process[_0x4a5b30(0x232)][_0x4a5b30(0x210)](_0x4a5b30(0x302)+_0x8912d8[_0x4a5b30(0x1b3)]+'\x0a'),_0x8912d8[_0x4a5b30(0x255)]&&process['stdout'][_0x4a5b30(0x210)](_0x4a5b30(0x415)+(_0x8912d8[_0x4a5b30(0x2c8)]?'\x20('+_0x8912d8[_0x4a5b30(0x2c8)]+')':'')+'\x0a'),_0x8912d8[_0x4a5b30(0x1c3)]&&process['stdout'][_0x4a5b30(0x210)]('\x20\x20\x20\x20BYO\x20warning:\x20'+_0x8912d8[_0x4a5b30(0x1c3)]+'\x0a');}process[_0x4a5b30(0x232)][_0x4a5b30(0x210)](_0x4a5b30(0x253)+_0x27bc2f+_0x4a5b30(0x1a5));}async function Sn(_0x35f4ce){const _0xe32a28=_0x4642c2;let [_0x56b20e='',_0x160cff='',..._0x55ac11]=_0x35f4ce[_0xe32a28(0x28b)];if(_0x56b20e&&!we[_0xe32a28(0x217)](_0x56b20e)&&(console[_0xe32a28(0x24d)](_0xe32a28(0x1bb)+_0x56b20e+'.\x20Use:\x20'+we[_0xe32a28(0x2d6)](_0xe32a28(0x3cf))+'.'),process[_0xe32a28(0x21f)](0x2)),_0x35f4ce[_0xe32a28(0x27b)]!==void 0x0&&_0x56b20e!==_0xe32a28(0x295)&&(console[_0xe32a28(0x24d)]('--turn\x20applies\x20to\x20`'+_0x35f4ce[_0xe32a28(0x2f5)][_0xe32a28(0x248)]+_0xe32a28(0x35e)),process[_0xe32a28(0x21f)](0x2)),_0x56b20e&&_0x56b20e!==_0xe32a28(0x1bc)){await $n(_0x35f4ce,_0x56b20e,_0x160cff,_0x55ac11[_0xe32a28(0x2d6)]('\x20')[_0xe32a28(0x21c)]());return;}_0x35f4ce[_0xe32a28(0x28b)]['length']>0x1&&(console['error'](_0xe32a28(0x1e6)+_0x35f4ce[_0xe32a28(0x2f5)][_0xe32a28(0x248)]+_0xe32a28(0x3c8)),process[_0xe32a28(0x21f)](0x2));let {client:_0x2c300b}=await x(_0x35f4ce),_0x1380c3=await _0x21c554(_0x2c300b,{'page':_0x35f4ce[_0xe32a28(0x40b)],'pageSize':_0x35f4ce[_0xe32a28(0x39f)],'includeSubAgents':_0x35f4ce[_0xe32a28(0x2b9)]});m(_0x35f4ce,_0x1380c3,_0x882ed5=>In(_0x882ed5,_0x35f4ce[_0xe32a28(0x2f5)]['bin']));}async function $n(_0x298d93,_0x5ce768,_0x517ef7,_0x597be1){const _0x11b6fd=_0x4642c2;if((_0x298d93[_0x11b6fd(0x40b)]!==void 0x0||_0x298d93[_0x11b6fd(0x39f)]!==void 0x0||_0x298d93[_0x11b6fd(0x2b9)])&&(console['error'](_0x11b6fd(0x204)+_0x298d93[_0x11b6fd(0x2f5)][_0x11b6fd(0x248)]+_0x11b6fd(0x2e5)),process[_0x11b6fd(0x21f)](0x2)),_0x5ce768==='cancel'){await xn(_0x298d93,_0x517ef7,_0x597be1);return;}if(_0x5ce768===_0x11b6fd(0x2c4)){await En(_0x298d93,_0x517ef7,_0x597be1);return;}(!_0x517ef7||_0x5ce768===_0x11b6fd(0x27c)!=!!_0x597be1)&&(console[_0x11b6fd(0x24d)](_0x11b6fd(0x1e6)+_0x298d93[_0x11b6fd(0x2f5)][_0x11b6fd(0x248)]+_0x11b6fd(0x222)+_0x5ce768+_0x11b6fd(0x412)+(_0x5ce768===_0x11b6fd(0x27c)?'\x20<title>':'')),process[_0x11b6fd(0x21f)](0x2));let {client:_0x5afc1f}=await x(_0x298d93);try{if(_0x5ce768===_0x11b6fd(0x34e)){let _0x4406fa=await _0x157ef9(_0x5afc1f,_0x517ef7);_0x4406fa||be(_0x517ef7),m(_0x298d93,_0x4406fa,An);}else{if(_0x5ce768===_0x11b6fd(0x27c)){let _0x51f832=await _0x59ea03(_0x5afc1f,_0x517ef7,_0x597be1);m(_0x298d93,_0x51f832,_0x5b4307=>{const _0x2c617a=_0x11b6fd;process['stdout'][_0x2c617a(0x210)](_0x2c617a(0x34c)+_0x5b4307['id']+':\x20'+_0x5b4307[_0x2c617a(0x33c)]+'\x0a');});}else await _0x4a3f57(_0x5afc1f,_0x517ef7),await _0x4dce28(_0x517ef7,_0x298d93[_0x11b6fd(0x26a)]),m(_0x298d93,{'id':_0x517ef7,'deleted':!0x0},_0x5ba3a5=>{const _0x3e354d=_0x11b6fd;process[_0x3e354d(0x232)][_0x3e354d(0x210)](_0x3e354d(0x300)+_0x5ba3a5['id']+'.\x0a');});}}catch(_0x408ae7){if(!_0x3665d7(_0x408ae7,0x194))throw _0x408ae7;be(_0x517ef7);}}function be(_0x1f40b8){const _0x36f074=_0x4642c2;console[_0x36f074(0x24d)](_0x36f074(0x211)+_0x1f40b8+_0x36f074(0x1cb)),process[_0x36f074(0x21f)](0x1);}function An(_0x675548){const _0x9cf97d=_0x4642c2;process[_0x9cf97d(0x232)]['write'](_0x9cf97d(0x1c0)+_0x675548['id']+'\x0a'),process[_0x9cf97d(0x232)]['write'](_0x9cf97d(0x1f4)+_0x675548[_0x9cf97d(0x33c)]+'\x0a'),process[_0x9cf97d(0x232)][_0x9cf97d(0x210)](_0x9cf97d(0x3ca)+_0x675548[_0x9cf97d(0x3e2)]+'\x0a'),process[_0x9cf97d(0x232)]['write'](_0x9cf97d(0x1ed)+_0x675548[_0x9cf97d(0x311)]+'\x0a'),_0x675548[_0x9cf97d(0x2a4)]&&process[_0x9cf97d(0x232)]['write'](_0x9cf97d(0x341)+_0x675548[_0x9cf97d(0x2a4)]+'\x0a');}async function xn(_0x2cd806,_0x579ea0,_0x20b23f){const _0x99f03=_0x4642c2;(!_0x579ea0||_0x20b23f||!_0x2cd806[_0x99f03(0x27b)])&&(console[_0x99f03(0x24d)](_0x99f03(0x1e6)+_0x2cd806[_0x99f03(0x2f5)]['bin']+'\x20sessions\x20cancel\x20<session-id>\x20--turn\x20<turn-id>'),process[_0x99f03(0x21f)](0x2));let {client:_0x31b312}=await x(_0x2cd806),_0x18a005=await _0xb3b5d0(_0x31b312,_0x579ea0,_0x2cd806[_0x99f03(0x27b)]);m(_0x2cd806,{'sessionId':_0x579ea0,'turnId':_0x2cd806[_0x99f03(0x27b)],'cancelled':_0x18a005},_0x383e4a=>{const _0x30991c=_0x99f03;_0x383e4a[_0x30991c(0x355)]?process[_0x30991c(0x232)][_0x30991c(0x210)](_0x30991c(0x2d9)+_0x383e4a[_0x30991c(0x27b)]+_0x30991c(0x3d9)+_0x383e4a['sessionId']+'.\x0a'):process['stderr']['write'](_0x30991c(0x326)+_0x383e4a['turnId']+'\x20in\x20progress\x20on\x20session\x20'+_0x383e4a[_0x30991c(0x2dd)]+'.\x0a');}),_0x18a005||(process[_0x99f03(0x2d8)]=0x1);}async function En(_0x3010e3,_0x58c7fc,_0x5abb77){const _0x56bade=_0x4642c2;(!_0x58c7fc||/\s/[_0x56bade(0x1f9)](_0x5abb77))&&(console['error'](_0x56bade(0x1e6)+_0x3010e3[_0x56bade(0x2f5)][_0x56bade(0x248)]+_0x56bade(0x382)),process[_0x56bade(0x21f)](0x2));let {client:_0x30745c}=await x(_0x3010e3),_0x3e9767;try{_0x3e9767=await _0x5c3eb6(_0x30745c,_0x58c7fc,{'atMessageId':_0x5abb77||void 0x0});}catch(_0x3a7c17){if(!_0x3665d7(_0x3a7c17,0x194))throw _0x3a7c17;console['error']('Session\x20'+_0x58c7fc+'\x20not\x20found,\x20has\x20no\x20messages'+(_0x5abb77?_0x56bade(0x394)+_0x5abb77:'')+'.'),process['exit'](0x1);}m(_0x3010e3,_0x3e9767,_0x3ba527=>{const _0x126f85=_0x56bade;process[_0x126f85(0x232)][_0x126f85(0x210)]('Forked\x20'+_0x58c7fc+_0x126f85(0x287)+_0x3ba527['id']+'.\x0a'),process[_0x126f85(0x38f)][_0x126f85(0x210)](_0x126f85(0x301)+_0x3010e3[_0x126f85(0x2f5)][_0x126f85(0x248)]+_0x126f85(0x31c)+_0x3ba527['id']+'\x20\x22<prompt>\x22\x0a');});}function In({sessions:_0xb9d87c,page:_0x2cca85,isLastPage:_0x739f32},_0x154cdd){const _0x2bf67c=_0x4642c2;if(_0xb9d87c[_0x2bf67c(0x2b7)]===0x0)process[_0x2bf67c(0x38f)]['write'](_0x2bf67c(0x3d3)+_0x2cca85+'.\x0a');else{process[_0x2bf67c(0x232)][_0x2bf67c(0x210)]('ID'[_0x2bf67c(0x37a)](0x24)+'\x20\x20'+_0x2bf67c(0x3e1)[_0x2bf67c(0x37a)](0x13)+'\x20\x20TITLE\x0a');for(let _0x69cf4e of _0xb9d87c){let _0x7ba175=_0x69cf4e[_0x2bf67c(0x2f4)][_0x2bf67c(0x37b)]('T','\x20')[_0x2bf67c(0x1c5)](0x0,0x13),_0xc091fc=_0x69cf4e[_0x2bf67c(0x25b)]?_0x2bf67c(0x1b0)+_0x69cf4e[_0x2bf67c(0x25b)]+')':'';process['stdout'][_0x2bf67c(0x210)](_0x69cf4e['id']['padEnd'](0x24)+'\x20\x20'+_0x7ba175['padEnd'](0x13)+'\x20\x20'+_0x69cf4e[_0x2bf67c(0x33c)]+_0xc091fc+'\x0a');}}_0x739f32||process[_0x2bf67c(0x38f)][_0x2bf67c(0x210)](_0x2bf67c(0x30a)+_0x154cdd+_0x2bf67c(0x421)+(_0x2cca85+0x1)+'\x0a');}async function Tn(_0xd9bb36){const _0x383560=_0x4642c2;let _0x1af602=await X(_0xd9bb36[_0x383560(0x2f5)]['bin']),_0xccc9cd=_0xdff04d(_0xd9bb36[_0x383560(0x2ff)],_0x1af602,_0xd9bb36[_0x383560(0x36d)]);Z(_0xd9bb36[_0x383560(0x2ff)],_0xd9bb36[_0x383560(0x36d)],_0xccc9cd);let _0x4f9118=await _0xa802a1({'auth':_0x1af602,'backendUrl':_0xccc9cd,'interop':_0xd9bb36[_0x383560(0x273)]?_0x383560(0x414):_0x383560(0x3ef)});m(_0xd9bb36,_0x4f9118,({checks:_0x54b56f})=>{const _0x583f48=_0x383560;for(let _0x1f1f95 of _0x54b56f)process[_0x583f48(0x232)][_0x583f48(0x210)](Un(_0x1f1f95)+'\x0a');}),_0x4f9118['ok']||process['exit'](0x1);}function Un(_0x2a99a2){const _0x21b647=_0x4642c2;return{'ok':'✓','failed':'✗','skipped':'-'}[_0x2a99a2['status']]+'\x20'+_0x2a99a2[_0x21b647(0x1d3)]['padEnd'](0xa)+_0x2a99a2[_0x21b647(0x2a6)];}async function Pn(_0x21f25e){const _0x24a1b6=_0x4642c2;let _0x1fe778=_0x21f25e[_0x24a1b6(0x2ea)];Dn[_0x24a1b6(0x217)](_0x1fe778)||(console['error'](_0x24a1b6(0x2aa)+_0x21f25e[_0x24a1b6(0x2ea)]+'.\x20Use\x20`'+_0x21f25e[_0x24a1b6(0x2f5)][_0x24a1b6(0x248)]+_0x24a1b6(0x37f)),process[_0x24a1b6(0x21f)](0x2)),_0x1fe778===''&&_0x21f25e[_0x24a1b6(0x1b6)]!==void 0x0&&(console[_0x24a1b6(0x24d)](_0x24a1b6(0x3ae)+_0x21f25e['product']['bin']+'\x20usage\x20activity|daily`;\x20the\x20summary\x20covers\x20the\x20current\x20month.'),process['exit'](0x2)),_0x1fe778!==''&&_0x21f25e[_0x24a1b6(0x2dd)]!==void 0x0&&(console[_0x24a1b6(0x24d)](_0x24a1b6(0x397)+_0x21f25e[_0x24a1b6(0x2f5)]['bin']+_0x24a1b6(0x34b)),process['exit'](0x2));let {client:_0xf4a47b}=await x(_0x21f25e);if(_0x1fe778===_0x24a1b6(0x39a)){m(_0x21f25e,await _0x220773(_0xf4a47b,{'days':_0x21f25e[_0x24a1b6(0x1b6)]}),Cn);return;}if(_0x1fe778===_0x24a1b6(0x205)){m(_0x21f25e,await _0x25de1f(_0xf4a47b,{'days':_0x21f25e[_0x24a1b6(0x1b6)]}),Rn);return;}let [_0x52fd14,_0x366730]=await Promise[_0x24a1b6(0x20b)]([_0xca47b1(_0xf4a47b,{'sessionId':_0x21f25e[_0x24a1b6(0x2dd)]}),_0x3fbe34(_0xf4a47b)]);m(_0x21f25e,{'licensing':_0x52fd14,'monthlySpending':_0x366730},Nn);}function Nn(_0x403c4d){const _0x39239c=_0x4642c2;let {licensing:_0x7ca1da,monthlySpending:_0x76863f}=_0x403c4d,_0x493d91=[_0x7ca1da[_0x39239c(0x40a)]?_0x39239c(0x2c1)+_0x7ca1da[_0x39239c(0x34f)][_0x39239c(0x371)](0x1)+'%\x20of\x20'+(_0x7ca1da['total_quota_pu']??0x0)+_0x39239c(0x3e7)+(_0x7ca1da['extra_pool_consumed_pu']>0x0?',\x20'+_0x7ca1da['extra_pool_consumed_pu']+_0x39239c(0x352):'')+_0x39239c(0x2ac)+_0x7ca1da[_0x39239c(0x3e5)]+')':'Licensing:\x20\x20\x20\x20no\x20licensing\x20quota\x20applies',_0x39239c(0x390)+_0x76863f[_0x39239c(0x30b)][_0x39239c(0x371)](0x2)+_0x39239c(0x392)+(_0x76863f[_0x39239c(0x40a)]&&_0x76863f['monthly_limit_usd']!==null?'\x20of\x20a\x20$'+_0x76863f[_0x39239c(0x34d)][_0x39239c(0x371)](0x2)+_0x39239c(0x333):'\x20(no\x20cap\x20enforced)')];_0x7ca1da['session_consumed_pu']!==null&&_0x7ca1da[_0x39239c(0x29b)]!==void 0x0&&_0x493d91[_0x39239c(0x39d)](_0x39239c(0x3bb)+_0x7ca1da['session_consumed_pu']+_0x39239c(0x2f3)),process['stdout'][_0x39239c(0x210)](_0x493d91[_0x39239c(0x2d6)]('\x0a')+'\x0a');}function Cn(_0x1b2128){const _0x3b7b27=_0x4642c2;let _0x176392=[_0x3b7b27(0x269)+_0x1b2128[_0x3b7b27(0x1b1)]+_0x3b7b27(0x407)+_0x1b2128[_0x3b7b27(0x2fa)]+_0x3b7b27(0x409)+_0x1b2128[_0x3b7b27(0x1a7)]+'\x20active\x20days',_0x3b7b27(0x377)+_0x1b2128[_0x3b7b27(0x3a6)][_0x3b7b27(0x371)](0x2)+_0x3b7b27(0x420)+_0x1b2128[_0x3b7b27(0x31f)][_0x3b7b27(0x371)](0x2)+'\x20from\x20'+_0x1b2128[_0x3b7b27(0x353)]+'\x20token\x20units)',_0x3b7b27(0x250)+_0x1b2128['total_prompt_tokens']+_0x3b7b27(0x3ff)+_0x1b2128[_0x3b7b27(0x351)]+'\x20completion'];for(let [_0x401bb4,_0x3b39f1]of Object['entries'](_0x1b2128[_0x3b7b27(0x292)]))_0x176392[_0x3b7b27(0x39d)]('\x20\x20'+_0x401bb4+':\x20'+_0x3b39f1+_0x3b7b27(0x2b0));process['stdout'][_0x3b7b27(0x210)](_0x176392[_0x3b7b27(0x2d6)]('\x0a')+'\x0a');}function Rn(_0x1f4b13){const _0x362c9d=_0x4642c2;if(_0x1f4b13[_0x362c9d(0x3c1)][_0x362c9d(0x2b7)]===0x0){process[_0x362c9d(0x232)][_0x362c9d(0x210)](_0x362c9d(0x3c6)+_0x1f4b13[_0x362c9d(0x1b1)]+'\x20days.\x0a');return;}let _0x20eaca=[_0x362c9d(0x1ea)];for(let _0x7f5041 of _0x1f4b13['daily_usage'])_0x20eaca[_0x362c9d(0x39d)](_0x7f5041[_0x362c9d(0x358)]+'\x20\x20'+String(_0x7f5041[_0x362c9d(0x418)])[_0x362c9d(0x3d6)](0xb)+'\x20\x20'+String(_0x7f5041[_0x362c9d(0x276)])[_0x362c9d(0x3d6)](0xd)+'\x20\x20'+String(_0x7f5041[_0x362c9d(0x1d4)])[_0x362c9d(0x3d6)](0x11));process['stdout'][_0x362c9d(0x210)](_0x20eaca[_0x362c9d(0x2d6)]('\x0a')+'\x0a');}async function _n(_0x46c2f8,_0x29f38c){const _0xfd254d=_0x4642c2;let _0x2c3cda=await On(_0x46c2f8[_0xfd254d(0x2ea)],_0x29f38c,_0x46c2f8[_0xfd254d(0x2f5)]['bin']);_0x46c2f8['model']&&(_0x2c3cda[_0xfd254d(0x1d6)]=_0x46c2f8['model']);let {client:_0x1c1af7}=await x(_0x46c2f8);try{_0x29f38c===_0xfd254d(0x24c)?m(_0x46c2f8,await _0x568a4c(_0x1c1af7,_0x2c3cda,void 0x0),Mn):_0x29f38c==='rerank'?m(_0x46c2f8,await _0x82b8eb(_0x1c1af7,_0x2c3cda,void 0x0),jn):m(_0x46c2f8,await _0x302f4f(_0x1c1af7,_0x2c3cda,void 0x0),Fn);}catch(_0x5306b5){if(!_0x4a5325(_0x5306b5))throw _0x5306b5;console[_0xfd254d(0x24d)](_0x5306b5['message']),process[_0xfd254d(0x21f)](0x1);}}async function On(_0x3b22c4,_0x208083,_0x23d56b){const _0x1e2041=_0x4642c2;let _0xf8aa03;try{_0xf8aa03=_0x3b22c4&&_0x3b22c4!=='-'?_0x385e4a[_0x1e2041(0x1e3)](_0x20c50a['resolve'](_0x3b22c4),_0x1e2041(0x3a7)):await J(_0x3b22c4,process[_0x1e2041(0x221)]);}catch(_0x5ec326){console[_0x1e2041(0x24d)](_0x208083+_0x1e2041(0x3c0)+_0x5ec326['message']+').'),process[_0x1e2041(0x21f)](0x2);}return _0xf8aa03||(console[_0x1e2041(0x24d)](_0x208083+_0x1e2041(0x23f)+_0x23d56b+'\x20'+_0x208083+_0x1e2041(0x1e9)),process[_0x1e2041(0x21f)](0x2)),Re(_0xf8aa03,_0x208083,_0x1e2041(0x30f));}function Re(_0xd46a9,_0x309584,_0x425556){const _0x372c56=_0x4642c2;let _0x2d71ec;try{_0x2d71ec=JSON[_0x372c56(0x309)](_0xd46a9);}catch(_0x368f45){console[_0x372c56(0x24d)](_0x309584+':\x20'+_0x425556+_0x372c56(0x33a)+_0x368f45[_0x372c56(0x23a)]+').'),process[_0x372c56(0x21f)](0x2);}return(typeof _0x2d71ec!=_0x372c56(0x1bd)||_0x2d71ec===null||Array[_0x372c56(0x296)](_0x2d71ec))&&(console[_0x372c56(0x24d)](_0x309584+':\x20'+_0x425556+_0x372c56(0x345)),process[_0x372c56(0x21f)](0x2)),_0x2d71ec;}function _e(_0x49c56e,_0x4b2d7b){const _0x49bd25=_0x4642c2;let _0x564888;try{_0x564888=_0x385e4a[_0x49bd25(0x1e3)](_0x20c50a[_0x49bd25(0x346)](_0x49c56e),'utf-8');}catch(_0x3a38e0){console['error'](_0x4b2d7b+_0x49bd25(0x2b3)+_0x3a38e0[_0x49bd25(0x23a)]+').'),process[_0x49bd25(0x21f)](0x2);}return Re(_0x564888,_0x4b2d7b,'the\x20JSON\x20schema');}async function Ln(_0x39e3ba){const _0x417f0d=_0x4642c2;_0x39e3ba[_0x417f0d(0x39e)]===void 0x0&&(console[_0x417f0d(0x24d)](_0x417f0d(0x297)+_0x39e3ba[_0x417f0d(0x2f5)][_0x417f0d(0x248)]+_0x417f0d(0x206)),process[_0x417f0d(0x21f)](0x2));let _0x15353d=_e(_0x39e3ba[_0x417f0d(0x39e)],_0x417f0d(0x1e2)),_0xda0268=(await J(_0x39e3ba['prompt'],process['stdin']))[_0x417f0d(0x21c)]();_0xda0268||(console['error'](_0x417f0d(0x400)+_0x39e3ba[_0x417f0d(0x2f5)][_0x417f0d(0x248)]+_0x417f0d(0x36c)),process['exit'](0x2));let {client:_0x24b03d}=await x(_0x39e3ba);try{let _0x451d45=await _0x520cef(_0x24b03d,{'prompt':_0xda0268,'jsonSchema':_0x15353d,'model':_0x39e3ba[_0x417f0d(0x1d6)]||process.env.MODEL||_0x14306e,..._0x39e3ba['sessionId']!==void 0x0&&{'sessionId':_0x39e3ba[_0x417f0d(0x2dd)]}},void 0x0);m(_0x39e3ba,_0x451d45,_0x3963d2=>{const _0xbab728=_0x417f0d;process[_0xbab728(0x232)]['write'](JSON[_0xbab728(0x1d0)](_0x3963d2['structured'],null,0x2)+'\x0a');});}catch(_0x17abc4){if(!_0x5d9332(_0x17abc4))throw _0x17abc4;console[_0x417f0d(0x24d)](_0x17abc4[_0x417f0d(0x23a)]),process[_0x417f0d(0x21f)](0x1);}}function ee(_0x27e91b){const _0x3123fd=_0x4642c2;process[_0x3123fd(0x232)][_0x3123fd(0x210)]('Model\x20'+_0x27e91b[_0x3123fd(0x1d6)]+'\x20('+_0x27e91b[_0x3123fd(0x3e3)]+_0x3123fd(0x357)+_0x27e91b[_0x3123fd(0x3f6)][_0x3123fd(0x2f1)]+_0x3123fd(0x3a5));}function Mn(_0x433748){const _0x5de0e9=_0x4642c2;ee(_0x433748);for(let _0x410e05 of Object['keys'](_0x433748[_0x5de0e9(0x41c)])){let _0x314924=_0x433748[_0x5de0e9(0x41c)][_0x410e05],_0x999d04=_0x314924[_0x5de0e9(0x1dc)]==='probability'?_0x5de0e9(0x32a)+_0x314924[_0x5de0e9(0x20d)][_0x5de0e9(0x371)](0x2):_0x314924[_0x5de0e9(0x1dc)]===_0x5de0e9(0x317)?'choice\x20'+_0x314924['choice']+_0x5de0e9(0x39c)+_0x314924[_0x5de0e9(0x376)][_0x5de0e9(0x371)](0x2)+')':_0x5de0e9(0x278)+_0x314924[_0x5de0e9(0x411)]['toFixed'](0x2)+'\x20(confidence\x20'+_0x314924[_0x5de0e9(0x376)][_0x5de0e9(0x371)](0x2)+')';process['stdout']['write']('\x20\x20'+_0x410e05+':\x20'+_0x999d04+'\x0a');}}function jn(_0x406653){const _0x27e5ba=_0x4642c2;ee(_0x406653),_0x406653[_0x27e5ba(0x391)][_0x27e5ba(0x1da)]((_0x453a57,_0x16b9cf)=>{const _0x505ffc=_0x27e5ba;process[_0x505ffc(0x232)]['write']('\x20\x20'+(_0x16b9cf+0x1)+'.\x20'+_0x453a57['id']+'\x20\x20'+_0x453a57[_0x505ffc(0x411)][_0x505ffc(0x371)](0x3)+_0x505ffc(0x245)+_0x453a57[_0x505ffc(0x2a0)]+')\x0a');});}function Fn(_0x27c9d7){const _0x3ba4b1=_0x4642c2;ee(_0x27c9d7),process[_0x3ba4b1(0x232)][_0x3ba4b1(0x210)](_0x3ba4b1(0x237)+_0x27c9d7['rubric_version']+'\x0a');for(let _0x210bfd of _0x27c9d7[_0x3ba4b1(0x391)])process[_0x3ba4b1(0x232)][_0x3ba4b1(0x210)]('\x20\x20'+_0x210bfd['id']+':\x20'+_0x210bfd[_0x3ba4b1(0x1a8)]+_0x3ba4b1(0x39c)+_0x210bfd[_0x3ba4b1(0x376)][_0x3ba4b1(0x371)](0x2)+')\x0a');}async function Bn(_0x538a6c){const _0x567b9e=_0x4642c2;let _0x170506=_0x538a6c[_0x567b9e(0x2ea)][_0x567b9e(0x21c)]();_0x170506||(console[_0x567b9e(0x24d)]('transcribe\x20needs\x20audio:\x20'+_0x538a6c[_0x567b9e(0x2f5)][_0x567b9e(0x248)]+_0x567b9e(0x2a3)),process[_0x567b9e(0x21f)](0x2));let {client:_0x2fc907}=await x(_0x538a6c);try{let _0x594aa3=_0x170506==='-'?{'data':await Hn(process['stdin'])}:_0x170506;m(_0x538a6c,await _0x269b71(_0x2fc907,_0x594aa3,void 0x0),_0x581ddb=>{const _0x1ec943=_0x567b9e;process['stdout'][_0x1ec943(0x210)](_0x581ddb[_0x1ec943(0x235)]+'\x0a');});}catch(_0x190774){if(_0x88771(_0x190774)&&(console['error'](_0x190774[_0x567b9e(0x23a)]),process[_0x567b9e(0x21f)](_0x190774[_0x567b9e(0x1ae)]===void 0x0?0x2:0x1)),typeof _0x190774?.[_0x567b9e(0x379)]!=_0x567b9e(0x265))throw _0x190774;console[_0x567b9e(0x24d)]('transcribe:\x20cannot\x20read\x20'+_0x170506+'\x20('+_0x190774['message']+').'),process[_0x567b9e(0x21f)](0x2);}}async function Hn(_0x5a36a8){const _0x490e1a=_0x4642c2;let _0x268822=[];for await(let _0x58ca58 of _0x5a36a8)_0x268822['push'](Buffer[_0x490e1a(0x337)](_0x58ca58));return Buffer['concat'](_0x268822);}async function Jn(_0x362741){const _0x120f2b=_0x4642c2;let [_0x4bdae3='',_0x5cbae6='',..._0x20d946]=_0x362741['operands'];ke[_0x120f2b(0x217)](_0x4bdae3)||(console[_0x120f2b(0x24d)]((_0x4bdae3?'Unknown\x20delegations\x20action:\x20'+_0x4bdae3+'.\x20':'')+_0x120f2b(0x3d2)+_0x362741[_0x120f2b(0x2f5)][_0x120f2b(0x248)]+_0x120f2b(0x347)+ke[_0x120f2b(0x2d6)](_0x120f2b(0x3cf))+'.'),process['exit'](0x2));let _0x152c17=_0x4bdae3;_0x152c17!==_0x120f2b(0x327)&&(_0x362741[_0x120f2b(0x38b)]!==void 0x0||_0x362741[_0x120f2b(0x2cb)]!==void 0x0||_0x362741[_0x120f2b(0x2dd)]!==void 0x0)&&(console[_0x120f2b(0x24d)](_0x120f2b(0x1fc)+_0x362741[_0x120f2b(0x2f5)][_0x120f2b(0x248)]+_0x120f2b(0x21d)),process['exit'](0x2));let _0x43a366=(_0x152c17===_0x120f2b(0x327)?_0x362741[_0x120f2b(0x28b)]['slice'](0x1):_0x20d946)[_0x120f2b(0x2d6)]('\x20')['trim'](),_0x3dd2fe=_0x152c17===_0x120f2b(0x327)||_0x152c17===_0x120f2b(0x1e2);(_0x152c17!=='create'&&!_0x5cbae6||(_0x3dd2fe?!_0x43a366:_0x43a366)||_0x152c17===_0x120f2b(0x327)&&!_0x362741['sessionId'])&&(console[_0x120f2b(0x24d)](_0x120f2b(0x1e6)+_0x362741[_0x120f2b(0x2f5)][_0x120f2b(0x248)]+'\x20'+ve[_0x152c17]),process[_0x120f2b(0x21f)](0x2));let _0x1d2978=_0x3dd2fe&&_0x43a366==='-'?(await J('-',process['stdin']))[_0x120f2b(0x21c)]():_0x43a366;_0x3dd2fe&&!_0x1d2978&&(console[_0x120f2b(0x24d)](_0x120f2b(0x1e6)+_0x362741[_0x120f2b(0x2f5)]['bin']+'\x20'+ve[_0x152c17]+_0x120f2b(0x274)),process[_0x120f2b(0x21f)](0x2));let {client:_0x198097}=await x(_0x362741);try{await Gn(_0x362741,_0x198097,_0x152c17,_0x5cbae6,_0x1d2978);}catch(_0x17d463){if(!_0x5d3eb4(_0x17d463))throw _0x17d463;console[_0x120f2b(0x24d)](_0x17d463[_0x120f2b(0x23a)]),process['exit'](0x1);}}async function Gn(_0x49f3e3,_0x23b45b,_0x3c497e,_0x417efc,_0x4c9abf){const _0x534d0d=_0x4642c2;switch(_0x3c497e){case _0x534d0d(0x1bc):m(_0x49f3e3,await _0x250617(_0x23b45b,_0x417efc),Wn);return;case _0x534d0d(0x1b7):m(_0x49f3e3,await _0x41720e(_0x23b45b,_0x417efc),_0x392151=>{const _0x473f26=_0x534d0d;_0x392151['delegation']&&process[_0x473f26(0x232)][_0x473f26(0x210)](_0x473f26(0x33d)+_0x392151[_0x473f26(0x1c2)]['id']+'\x20('+_0x392151[_0x473f26(0x1c2)][_0x473f26(0x1ae)]+_0x473f26(0x410)),_0x392151[_0x473f26(0x3a3)][_0x473f26(0x2b7)]===0x0&&process[_0x473f26(0x38f)][_0x473f26(0x210)](_0x473f26(0x2f0));for(let _0x430411 of _0x392151[_0x473f26(0x3a3)])process[_0x473f26(0x232)][_0x473f26(0x210)]('\x0a'+_0x430411['id']+_0x473f26(0x401)+(_0x430411[_0x473f26(0x417)]??_0x473f26(0x3a0))+'\x20\x20'+(_0x430411['task']??'')+'\x0a'+(_0x430411[_0x473f26(0x230)]?.['content']??'')+'\x0a');_0x392151[_0x473f26(0x3a3)][_0x473f26(0x2b7)]>0x0&&process[_0x473f26(0x38f)][_0x473f26(0x210)]('\x0aAccept\x20one\x20with:\x20'+_0x49f3e3[_0x473f26(0x2f5)][_0x473f26(0x248)]+_0x473f26(0x2f9));});return;case _0x534d0d(0x34e):m(_0x49f3e3,await _0x4570f3(_0x23b45b,_0x417efc),Se);return;case _0x534d0d(0x327):{let _0x1194a2=await _0x392373(_0x23b45b,{'sessionId':_0x49f3e3['sessionId'],'task':_0x4c9abf,..._0x49f3e3[_0x534d0d(0x2cb)]!==void 0x0&&{'contextSummary':_0x49f3e3[_0x534d0d(0x2cb)]},..._0x49f3e3['delegateTo']!==void 0x0&&{'recipient':_0x49f3e3[_0x534d0d(0x38b)]}});m(_0x49f3e3,_0x1194a2,_0x54d632=>{const _0x539223=_0x534d0d;_0x54d632[_0x539223(0x40d)]?process[_0x539223(0x232)]['write'](_0x539223(0x365)+_0x54d632['delegationId']+_0x539223(0x2c0)+_0x54d632[_0x539223(0x40d)]['displayName']+'\x20<'+_0x54d632[_0x539223(0x40d)][_0x539223(0x299)]+_0x539223(0x312)):process[_0x539223(0x232)]['write'](_0x539223(0x231)+_0x54d632['delegationId']+_0x539223(0x2d5)+_0x54d632[_0x539223(0x3d8)]+'\x0a');});return;}case'claim':{let _0x266476=await _0x1d0d97(_0x23b45b,_0x417efc);m(_0x49f3e3,_0x266476,_0x1983f8=>{const _0x19b340=_0x534d0d;Se(_0x1983f8),process[_0x19b340(0x232)]['write']('Session\x20\x20\x20\x20\x20\x20\x20'+_0x1983f8[_0x19b340(0x2dd)]+'\x0a'),process[_0x19b340(0x38f)]['write'](_0x19b340(0x33b)+_0x49f3e3['product'][_0x19b340(0x248)]+_0x19b340(0x31c)+_0x1983f8[_0x19b340(0x2dd)]+_0x19b340(0x3b5)+_0x49f3e3[_0x19b340(0x2f5)][_0x19b340(0x248)]+_0x19b340(0x1cc)+_0x1983f8[_0x19b340(0x2a4)]+_0x19b340(0x2ab));});return;}case _0x534d0d(0x1e2):{let {alreadyCompleted:_0x2064fe}=await _0x2821fe(_0x23b45b,_0x417efc,{'content':_0x4c9abf});m(_0x49f3e3,{'delegationId':_0x417efc,'alreadyCompleted':_0x2064fe},_0x45d1b3=>{const _0x39e6bb=_0x534d0d;process[_0x39e6bb(0x232)][_0x39e6bb(0x210)]((_0x45d1b3[_0x39e6bb(0x3f4)]?_0x39e6bb(0x257):_0x39e6bb(0x3ec))+_0x39e6bb(0x2ef)+_0x45d1b3['delegationId']+'.\x0a');});return;}case _0x534d0d(0x31a):{let _0x2dd87e=await _0x5ec255(_0x23b45b,_0x417efc);m(_0x49f3e3,{'delegationId':_0x417efc,..._0x2dd87e},_0x242f74=>{const _0x5f0411=_0x534d0d;process[_0x5f0411(0x232)][_0x5f0411(0x210)]((_0x242f74[_0x5f0411(0x35b)]?'Already\x20accepted':'Accepted')+'\x20delegation\x20'+_0x242f74[_0x5f0411(0x2a4)]+'.\x0a');});return;}default:{let _0x3f7ae6={'dismiss':_0x255c18,'cancel':_0x15d90a,'delete':_0x457478}[_0x3c497e];await _0x3f7ae6(_0x23b45b,_0x417efc);let _0x1af5c2={'dismiss':_0x534d0d(0x35d),'cancel':'cancelled','delete':_0x534d0d(0x308)}[_0x3c497e];m(_0x49f3e3,{'delegationId':_0x417efc,[_0x1af5c2]:!0x0},()=>{const _0x11cd59=_0x534d0d;process[_0x11cd59(0x232)]['write'](''+_0x1af5c2[0x0][_0x11cd59(0x419)]()+_0x1af5c2[_0x11cd59(0x1c5)](0x1)+_0x11cd59(0x2ef)+_0x417efc+'.\x0a');});}}}function Wn(_0x3bae2b){const _0x4afc6b=_0x4642c2;if(_0x3bae2b[_0x4afc6b(0x2b7)]===0x0){process[_0x4afc6b(0x38f)]['write'](_0x4afc6b(0x3da));return;}process[_0x4afc6b(0x232)]['write']('ID'[_0x4afc6b(0x37a)](0x24)+'\x20\x20'+_0x4afc6b(0x36b)['padEnd'](0x9)+'\x20\x20'+_0x4afc6b(0x2c7)[_0x4afc6b(0x37a)](0x18)+'\x20\x20TASK\x0a');for(let _0x31e6ce of _0x3bae2b)process[_0x4afc6b(0x232)][_0x4afc6b(0x210)](_0x31e6ce['id']['padEnd'](0x24)+'\x20\x20'+_0x31e6ce[_0x4afc6b(0x1ae)]['padEnd'](0x9)+'\x20\x20'+(_0x31e6ce[_0x4afc6b(0x417)]??'-')[_0x4afc6b(0x37a)](0x18)+'\x20\x20'+(_0x31e6ce[_0x4afc6b(0x305)]??'')+'\x0a');}function Se(_0x260b54){const _0x385589=_0x4642c2;process[_0x385589(0x232)][_0x385589(0x210)](_0x385589(0x2b2)+(_0x260b54[_0x385589(0x1aa)]??'-')+'\x0a'),_0x260b54[_0x385589(0x3fc)]&&process[_0x385589(0x232)][_0x385589(0x210)]('Session\x20\x20\x20\x20\x20\x20\x20'+_0x260b54[_0x385589(0x3fc)]+'\x0a'),process[_0x385589(0x232)][_0x385589(0x210)](_0x385589(0x389)+(_0x260b54[_0x385589(0x305)]??'-')+'\x0a'),_0x260b54['contextSummary']&&process[_0x385589(0x232)][_0x385589(0x210)]('\x0a'+_0x260b54[_0x385589(0x2cb)]+'\x0a\x0a');}async function Kn(_0x320bd5){const _0x2c35a7=_0x4642c2;_0x320bd5[_0x2c35a7(0x2ea)][_0x2c35a7(0x21c)]()||(console[_0x2c35a7(0x24d)](_0x2c35a7(0x1e6)+_0x320bd5[_0x2c35a7(0x2f5)][_0x2c35a7(0x248)]+_0x2c35a7(0x3bc)),process[_0x2c35a7(0x21f)](0x2));let {client:_0x8a65e0}=await x(_0x320bd5),_0x2b5d56;try{_0x2b5d56=await _0x2d8092(_0x8a65e0,_0x320bd5[_0x2c35a7(0x2ea)]);}catch(_0x5640ea){if(!_0x5d3eb4(_0x5640ea))throw _0x5640ea;console[_0x2c35a7(0x24d)](_0x5640ea[_0x2c35a7(0x23a)]),process[_0x2c35a7(0x21f)](0x1);}m(_0x320bd5,_0x2b5d56,_0x3ac89d=>{const _0x29ee84=_0x2c35a7;_0x3ac89d[_0x29ee84(0x2b7)]===0x0&&process[_0x29ee84(0x38f)][_0x29ee84(0x210)](_0x29ee84(0x286)+_0x320bd5['prompt'][_0x29ee84(0x21c)]()+'\x22.\x0a');for(let _0x295fe7 of _0x3ac89d)process[_0x29ee84(0x232)][_0x29ee84(0x210)](_0x295fe7[_0x29ee84(0x299)][_0x29ee84(0x37a)](0x20)+'\x20\x20'+_0x295fe7['displayName']+'\x0a');});}async function Qn(_0x239705){const _0x3e9dbd=_0x4642c2;_0x239705[_0x3e9dbd(0x2ff)]===_0x3e9dbd(0x1f0)&&(console[_0x3e9dbd(0x24d)](_0x3e9dbd(0x2f7)),process['exit'](0x2));let _0x596007=G(_0x5b6457()),_0x1bfd68=_0x239705[_0x3e9dbd(0x2be)];if(_0x239705[_0x3e9dbd(0x2ff)]){let _0x1e43cf=_0x239705[_0x3e9dbd(0x2ff)];await _0x3c93fd({'env':_0x1e43cf,'tenant':_0x239705[_0x3e9dbd(0x25e)]??q(_0x596007,_0x1b830a[_0x1e43cf]),'skipEnvCheck':_0x1bfd68});return;}let _0x31d671=_0x239705[_0x3e9dbd(0x3b7)]??Ce();if(_0x31d671){await _0x3c93fd({'baseUrl':_0x31d671,'tenant':_0x239705['tenant']??q(_0x596007,_0x31d671),'skipEnvCheck':_0x1bfd68});return;}if(_0x596007?.[_0x3e9dbd(0x1e0)]){await _0x3c93fd({'baseUrl':_0x596007['baseUrl'],'tenant':_0x239705[_0x3e9dbd(0x25e)]??_0x596007[_0x3e9dbd(0x403)],'skipEnvCheck':_0x1bfd68});return;}console[_0x3e9dbd(0x24d)](_0x3e9dbd(0x36a)+_0x239705[_0x3e9dbd(0x2f5)]['bin']+_0x3e9dbd(0x3ac)+_0x239705[_0x3e9dbd(0x2f5)]['bin']+_0x3e9dbd(0x29f)),process['exit'](0x2);}function q(_0x3e1736,_0x2fd5f8){const _0x56ec54=_0x4642c2;return _0x3e1736?.[_0x56ec54(0x1e0)]&&qn(_0x3e1736[_0x56ec54(0x1e0)],_0x2fd5f8)?_0x3e1736[_0x56ec54(0x403)]:void 0x0;}function qn(_0x368d9d,_0x32d8f1){const _0x2a797a=_0x4642c2;try{return new URL(_0x368d9d)[_0x2a797a(0x27e)]===new URL(_0x32d8f1)[_0x2a797a(0x27e)];}catch{return!0x1;}}async function Yn(_0x5d643e,_0x5223c6){const _0x37df17=_0x4642c2;V()&&(console[_0x37df17(0x24d)](_0x37df17(0x3b4)),process[_0x37df17(0x21f)](0x2));let _0x3d1eb5=await _0xefb5f0();if(_0x3d1eb5||(console[_0x37df17(0x24d)](zn(_0x5223c6)),process[_0x37df17(0x21f)](0x2)),_0x5d643e['trim']()){let _0xe9ad76=await _0x1ed4af(_0x3d1eb5,_0x5d643e);_0x10712c(_0xe9ad76)||(console['error'](_0x37df17(0x30d)+_0x5b6457()+_0x37df17(0x272)+_0x3d1eb5[_0x37df17(0x403)]+'.'),process[_0x37df17(0x21f)](0x1)),console[_0x37df17(0x29d)](_0x37df17(0x3b6)+_0xe9ad76[_0x37df17(0x403)]+'\x20('+_0xe9ad76[_0x37df17(0x262)]+_0x37df17(0x243)+_0x5b6457());return;}Vn(await _0xa85c8(_0x3d1eb5),_0x3d1eb5,_0x5223c6);}function zn(_0x3e3c23){const _0x1956d0=_0x4642c2;if(_0x385e4a[_0x1956d0(0x2b5)](_0x5b6457()))return _0x1956d0(0x288)+_0x3e3c23+_0x1956d0(0x37c);let _0x1db47e=z();return G(_0x1db47e)?_0x1956d0(0x27a)+_0x1db47e+_0x1956d0(0x395)+_0x3e3c23+'\x20login\x20--env\x20<env>`\x20for\x20a\x20CLI\x20login\x20of\x20your\x20own.':_0x1956d0(0x1c7)+_0x3e3c23+_0x1956d0(0x3b9);}function Vn(_0x12f8f5,_0x300f38,_0x3d697d){const _0x452f1f=_0x4642c2;let _0xd5d6fc=_0x12f8f5[_0x452f1f(0x3d4)](_0x17b42d=>_0x17b42d['id']===_0x300f38[_0x452f1f(0x262)]?'*\x20'+_0x17b42d[_0x452f1f(0x1d3)]+_0x452f1f(0x368):'\x20\x20'+_0x17b42d[_0x452f1f(0x1d3)]);process[_0x452f1f(0x232)]['write'](_0x452f1f(0x1f6)+(_0x300f38[_0x452f1f(0x2cd)]??_0x300f38[_0x452f1f(0x311)])+':\x0a'+_0xd5d6fc[_0x452f1f(0x2d6)]('\x0a')+'\x0a'),_0x12f8f5[_0x452f1f(0x2b7)]>0x1&&process[_0x452f1f(0x232)][_0x452f1f(0x210)]('Switch\x20with:\x20'+_0x3d697d+_0x452f1f(0x356));}function Xn(_0x306b00){const _0x54a61c=_0x4642c2;return _0x306b00?.['response']?.[_0x54a61c(0x1ae)]===0x191||/401/['test'](String(_0x306b00?.[_0x54a61c(0x23a)]??''));}function $e(_0x53f193,_0x3a785a,_0x5787a6,_0x5790a5){const _0x1583ee=_0x4642c2;let _0x4a3ac2=_0x53f193[_0x1583ee(0x1d6)]||process.env.MODEL;return{'backendUrl':_0x5787a6,'auth':_0x3a785a,'enableComputerUse':!_0x53f193[_0x1583ee(0x273)]&&!_0x53f193['noComputerUse'],'autoSpawnInterop':!_0x53f193[_0x1583ee(0x273)],'enableConnections':!_0x53f193[_0x1583ee(0x2c2)],'enableSecurity':!_0x53f193['noSecurity'],'keepInteropAlive':_0x53f193[_0x1583ee(0x32d)],..._0x5790a5[_0x1583ee(0x3c4)]?{'enableBackgroundCommands':!0x1}:{},..._0x53f193[_0x1583ee(0x3df)]?{'enableMemory':!0x1}:{},..._0x53f193['taskAutomation']?{'enableTaskAutomation':!0x0}:{},..._0x53f193[_0x1583ee(0x338)][_0x1583ee(0x2b7)]>0x0?{'preloadSkills':_0x53f193[_0x1583ee(0x338)]}:{},..._0x4a3ac2?{'model':_0x4a3ac2}:{},..._0x53f193[_0x1583ee(0x41b)]?{'projectId':_0x53f193[_0x1583ee(0x41b)]}:{},..._0x53f193['vertical']?{'vertical':_0x53f193[_0x1583ee(0x283)]}:{},..._0x53f193[_0x1583ee(0x26a)]?{'workingDirectory':_0x53f193[_0x1583ee(0x26a)]}:{},..._0x53f193['bundledSkillsPath']?{'bundledSkillsPath':_0x53f193[_0x1583ee(0x1f5)]}:{},..._0x53f193['effort']?{'effort':_0x53f193[_0x1583ee(0x2f2)]}:{},..._0x53f193[_0x1583ee(0x2dd)]?{'sessionId':_0x53f193[_0x1583ee(0x2dd)]}:{},..._0x53f193['verbose']?{'verbose':!0x0}:{},..._0x53f193['product'][_0x1583ee(0x2b6)]?{'agentName':_0x53f193[_0x1583ee(0x2f5)][_0x1583ee(0x2b6)]}:{}};}async function Zn(_0x27c254){const _0x56cfa0=_0x4642c2;let _0x472fb9=_0x27c254['outputFormat']!==_0x56cfa0(0x235),_0x418444=_0x27c254[_0x56cfa0(0x39e)]===void 0x0?null:_e(_0x27c254[_0x56cfa0(0x39e)],_0x27c254[_0x56cfa0(0x2f5)][_0x56cfa0(0x248)]),_0x14e480=!_0x472fb9&&!_0x418444&&!_0x27c254['print']&&_0x27c254[_0x56cfa0(0x2ea)]!=='-'&&!!process[_0x56cfa0(0x221)][_0x56cfa0(0x258)]&&!!process[_0x56cfa0(0x232)][_0x56cfa0(0x258)],_0x1f99ea=_0x27c254[_0x56cfa0(0x3bd)]===_0x56cfa0(0x214)?le(process[_0x56cfa0(0x221)],_0x173ac1=>{const _0x4b178e=_0x56cfa0;process[_0x4b178e(0x38f)][_0x4b178e(0x210)](_0x173ac1[_0x4b178e(0x23a)]+_0x4b178e(0x28e));}):null,_0x159cb8=_0x1f99ea?(await _0x1f99ea['next']())['value']:void 0x0,_0x3fb553=_0x1f99ea?_0x159cb8?.[_0x56cfa0(0x235)]??'':_0x14e480?_0x27c254['prompt'][_0x56cfa0(0x21c)]():await J(_0x27c254[_0x56cfa0(0x2ea)],process[_0x56cfa0(0x221)]);if(!_0x14e480&&!_0x3fb553&&(console[_0x56cfa0(0x24d)]('Missing\x20prompt.\x20Pass\x20it\x20as\x20an\x20argument,\x20pipe\x20it\x20via\x20stdin,\x20or\x20run\x20`'+_0x27c254['product'][_0x56cfa0(0x248)]+_0x56cfa0(0x339)),process[_0x56cfa0(0x21f)](0x2)),!_0x472fb9){await Ae(_0x27c254,_0x3fb553,_0x14e480,null,_0x418444,null);return;}let _0x54e65b=!0x1,_0x18f25b=_0x5c7556=>{const _0x5d73cc=_0x56cfa0;_0x54e65b=!0x0,O(_0x4c2f68(_0x5c7556)),(_0x5c7556['isError']||_0x5c7556[_0x5d73cc(0x3be)])&&(process['exitCode']=0x1);},_0x518b24=Date[_0x56cfa0(0x32f)]();try{await Ae(_0x27c254,_0x3fb553,!0x1,_0x18f25b,_0x418444,_0x1f99ea?{'messages':_0x1f99ea,'first':_0x159cb8,'close':()=>{const _0xd3c086=_0x56cfa0;process[_0xd3c086(0x221)][_0xd3c086(0x285)]();}}:null);}catch(_0x46b72c){if(_0x54e65b)throw _0x46b72c;process[_0x56cfa0(0x38f)][_0x56cfa0(0x210)]((_0x46b72c instanceof Error?_0x46b72c['stack']??_0x46b72c[_0x56cfa0(0x23a)]:String(_0x46b72c))+'\x0a'),_0x18f25b(new _0x2abd5c(_0x518b24)[_0x56cfa0(0x224)]({'endedAtMs':Date['now'](),'usage':[],'error':_0x46b72c}));}finally{_0x1f99ea&&(process['stdin'][_0x56cfa0(0x285)](),_0x1f99ea['return'](void 0x0));}}async function Ae(_0x3a471f,_0x4df907,_0x5d192f,_0x548ec1,_0xac0bbd,_0x338982){const _0x1f29a1=_0x4642c2;y={'lastType':null,'quiet':_0x3a471f['quiet'],'bin':_0x3a471f['product'][_0x1f29a1(0x248)]};let _0x524099=new Set(),_0x599b4a,_0x5af870=_0x2f0a2a=>{const _0x4c0d84=_0x1f29a1;(!_0x548ec1||_0x2f0a2a['type']===_0x4c0d84(0x3c7)||_0x2f0a2a[_0x4c0d84(0x1dc)]===_0x4c0d84(0x2eb))&&(_0x599b4a??Oe)(_0x2f0a2a);for(let _0x543b75 of _0x524099)_0x543b75(_0x2f0a2a);},_0x3af67d=await X(_0x3a471f[_0x1f29a1(0x2f5)][_0x1f29a1(0x248)]),_0xeda1ad=new _0x49af94();_0xeda1ad['onEvent'](_0x5af870);let _0x4e8475=_0xdff04d(_0x3a471f['env'],_0x3af67d,_0x3a471f[_0x1f29a1(0x36d)]);Z(_0x3a471f[_0x1f29a1(0x2ff)],_0x3a471f[_0x1f29a1(0x36d)],_0x4e8475);let _0x9bf387={'input':null},_0x34099e=_0x5d192f?se(()=>_0x9bf387[_0x1f29a1(0x3f8)],_0x228a82=>{const _0x49d95e=_0x1f29a1;process['stderr'][_0x49d95e(0x210)](_0x228a82);}):null,_0x544c50=_0x514943=>_0x34099e?{..._0x514943,'askUser':_0x34099e}:_0x514943,_0x13c510=_0x544c50($e(_0x3a471f,_0x3af67d,_0x4e8475,{'oneTurn':!_0x5d192f})),_0x5a83e9=!0x1,_0x19f68c=!0x1,_0x386add,_0x1ce6d1=()=>_0x386add??=_0xeda1ad['destroy'](),_0x346a8b=()=>{const _0x1d255f=_0x1f29a1;_0x19f68c&&process['exit'](0x82),_0x19f68c=!0x0,process[_0x1d255f(0x38f)][_0x1d255f(0x210)]('\x0aStopping…\x20(Ctrl+C\x20again\x20to\x20force\x20exit)\x0a'),_0x5a83e9&&_0xeda1ad['cancel']()[_0x1d255f(0x225)](_0x31b7c4=>console[_0x1d255f(0x24d)](_0x31b7c4))[_0x1d255f(0x212)](_0x1ce6d1)[_0x1d255f(0x212)](()=>process[_0x1d255f(0x21f)](0x82),_0x562524=>{const _0x39d291=_0x1d255f;console[_0x39d291(0x24d)](_0x562524),process[_0x39d291(0x21f)](0x82);});};process['on'](_0x1f29a1(0x1fe),_0x346a8b);let _0x4ea61c=_0x3a471f[_0x1f29a1(0x25d)],_0x39fbf2=async _0x57dae6=>{const _0x2f2bc7=_0x1f29a1;let _0x42686b=_0x4ea61c;_0x4ea61c=[];let _0x1ffee7=()=>_0xeda1ad[_0x2f2bc7(0x369)](_0x57dae6,{'attachments':_0x42686b});try{return await _0x1ffee7();}catch(_0x2cc9a5){if(_0x19f68c||!Xn(_0x2cc9a5)||!process[_0x2f2bc7(0x221)]['isTTY']||_0x3a471f[_0x2f2bc7(0x2ff)]===_0x2f2bc7(0x1f0)||!(_0x3a471f[_0x2f2bc7(0x2ff)]||_0x3af67d['baseUrl']))throw _0x2cc9a5;process[_0x2f2bc7(0x38f)][_0x2f2bc7(0x210)](_0x2f2bc7(0x289));let _0x373e6f=_0xeda1ad[_0x2f2bc7(0x242)]()??_0x3a471f[_0x2f2bc7(0x2dd)],_0x1ebe44=await _0x3c93fd(_0x3a471f[_0x2f2bc7(0x2ff)]?{'env':_0x3a471f[_0x2f2bc7(0x2ff)],'tenant':q(_0x3af67d,_0x1b830a[_0x3a471f[_0x2f2bc7(0x2ff)]]),'skipEnvCheck':!0x0}:{'baseUrl':_0x3af67d[_0x2f2bc7(0x1e0)],'tenant':_0x3af67d[_0x2f2bc7(0x403)],'skipEnvCheck':!0x0}),_0x228d94={'text':'','failed':!0x1,'sessionId':_0x373e6f};return _0x19f68c||(_0x5a83e9=!0x1,await _0x1ce6d1(),_0x19f68c)?_0x228d94:(_0xeda1ad=new _0x49af94(),_0x386add=void 0x0,_0xeda1ad[_0x2f2bc7(0x26f)](_0x5af870),_0x3af67d=_0x1ebe44,await _0xeda1ad[_0x2f2bc7(0x39b)]({..._0x544c50($e(_0x3a471f,_0x3af67d,_0x4e8475,{'oneTurn':!_0x5d192f})),..._0x373e6f?{'sessionId':_0x373e6f}:{}}),_0x5a83e9=!0x0,_0x19f68c?_0x228d94:_0x1ffee7());}};try{if(await _0xeda1ad[_0x1f29a1(0x39b)](_0x13c510),_0x5a83e9=!0x0,_0x19f68c)return;if(_0x5d192f)await no({'prompt':_0x4df907,'sendMessage':_0x39fbf2,'onSigint':_0x346a8b,'setAnswerInput':_0x2c9fa5=>{_0x9bf387['input']=_0x2c9fa5;},'registerEventPrinter':_0x290bf5=>(_0x599b4a=_0x290bf5,()=>{_0x599b4a=void 0x0;})});else{if(_0x548ec1||_0xac0bbd){let _0x5c38a8=_0x3a471f[_0x1f29a1(0x2cc)]===_0x1f29a1(0x214)?_0x2132b3=>O(_0x767660(_0x2132b3)):()=>{},_0x621441=_0x338982?ce({'input':_0x338982,'getAgent':()=>_0xeda1ad,'replay':_0x3a471f[_0x1f29a1(0x366)],'onEvent':_0x248e1a=>(_0x524099['add'](_0x248e1a),()=>{_0x524099['delete'](_0x248e1a);}),'write':O,'isRunStopNotice':_0x4cfa9f,'actionableErrorText':_0x1d67ed,'warn':_0x378c42=>{const _0x3ee562=_0x1f29a1;process[_0x3ee562(0x38f)][_0x3ee562(0x210)](_0x378c42);}}):null,_0x2facfb=await _0x3d3192({'onEvent':_0xabe683=>(_0x524099[_0x1f29a1(0x3f0)](_0xabe683),()=>{_0x524099['delete'](_0xabe683);}),'sendMessage':async _0xfdd636=>{const _0x23dcdf=_0x1f29a1;try{let _0x4ff0fa=await _0x39fbf2(_0xfdd636);return _0x621441?await _0x621441[_0x23dcdf(0x2ec)](_0x4ff0fa):_0x4ff0fa;}finally{_0x621441?.[_0x23dcdf(0x3fe)]();}},'getSessionId':()=>_0xeda1ad['getSessionId'](),'getTurnUsageHistory':_0x5101a1=>_0xeda1ad[_0x1f29a1(0x304)](_0x5101a1),'complete':_0x5741e9=>_0xeda1ad[_0x1f29a1(0x1e2)](_0x5741e9)},_0x4df907,void 0x0,_0x5c38a8,_0xac0bbd?{'outputSchema':_0xac0bbd}:void 0x0);_0x548ec1?_0x548ec1(_0x2facfb):eo(_0x2facfb);}else await _0x39fbf2(_0x4df907);}}catch(_0x568b00){if(!_0x19f68c)throw _0x568b00;}finally{try{await _0x1ce6d1();}finally{process[_0x1f29a1(0x2d3)](_0x1f29a1(0x1fe),_0x346a8b),_0x19f68c&&(process[_0x1f29a1(0x2d8)]=0x82);}}}function eo(_0x22b1dd){const _0x17e04e=_0x4642c2;_0x22b1dd[_0x17e04e(0x3be)]?(console[_0x17e04e(0x24d)](_0x17e04e(0x271)+_0x22b1dd[_0x17e04e(0x3be)]['message']),process[_0x17e04e(0x2d8)]=0x1):_0x22b1dd[_0x17e04e(0x2db)]?(console['error'](_0x17e04e(0x26b)+_0x22b1dd[_0x17e04e(0x24d)]+').'),process['exitCode']=0x1):process[_0x17e04e(0x232)][_0x17e04e(0x210)](JSON[_0x17e04e(0x1d0)](_0x22b1dd[_0x17e04e(0x267)],null,0x2)+'\x0a');}function to(_0x219009,_0x2ee82a){const _0x36742f=_0x4642c2;let _0x42613c=process[_0x36742f(0x232)][_0x36742f(0x210)][_0x36742f(0x40c)](process[_0x36742f(0x232)]),_0x754a3c=!0x1;return process[_0x36742f(0x232)][_0x36742f(0x210)]=(..._0x14eb45)=>{const _0x570924=_0x36742f;if(!_0x754a3c)return _0x42613c(..._0x14eb45);_0x3682b0(_0x2ee82a,0x0),_0x1e780c(_0x2ee82a,0x0);let _0x372258=_0x42613c(..._0x14eb45);return _0x219009[_0x570924(0x2ea)](!0x0),_0x372258;},{'show':()=>{const _0x3057ac=_0x36742f;_0x754a3c=!0x0,_0x219009[_0x3057ac(0x2ea)]();},'hide':()=>{_0x754a3c=!0x1;},'erase':()=>{_0x754a3c&&(_0x3682b0(_0x2ee82a,0x0),_0x1e780c(_0x2ee82a,0x0)),_0x754a3c=!0x1;},'restore':()=>{const _0x56cbe9=_0x36742f;_0x754a3c=!0x1,process[_0x56cbe9(0x232)][_0x56cbe9(0x210)]=_0x42613c;}};}async function no({prompt:_0x258b54,sendMessage:_0x1fdd47,onSigint:_0xf1057e,setAnswerInput:_0x1c510a,registerEventPrinter:_0x5f57ff}){const _0x46487a=_0x4642c2;let _0x3dce57=_0x45ca1e({'input':process['stdin'],'output':process[_0x46487a(0x38f)],'terminal':!0x0,'prompt':'You>\x20'}),_0xbbaa72=to(_0x3dce57,process[_0x46487a(0x38f)]),_0x378d59=[],_0x4d34fb,_0x59ac2d,_0x266183,_0x1370ae=!0x1,_0xfebdc4=!0x1,_0x28f352=!0x1,_0x5ccc75=Promise['resolve'](),_0xdf0e6c,_0x25aaea=_0x5f57ff(_0x20a53a=>{const _0x5b25e6=_0x46487a;_0x20a53a[_0x5b25e6(0x1dc)]===_0x5b25e6(0x3c7)&&(_0xbbaa72[_0x5b25e6(0x3b1)](),_0x5ccc75=new Promise(_0x29344a=>{_0xdf0e6c=_0x29344a;})),Oe(_0x20a53a),_0x20a53a[_0x5b25e6(0x1dc)]===_0x5b25e6(0x362)&&(_0xdf0e6c?.(),_0xdf0e6c=void 0x0,!_0x28f352&&!_0x1370ae&&_0xbbaa72[_0x5b25e6(0x34e)]());}),_0x468e9c=()=>{const _0x2a4df7=_0x46487a;_0xfebdc4=!0x0,_0xdf0e6c?.(),_0xf1057e(),_0x3dce57[_0x2a4df7(0x1bf)]();};_0x3dce57['on']('line',_0x521d85=>{const _0x32a8c7=_0x46487a;_0x266183?_0x266183(_0x521d85):_0x4d34fb?_0x4d34fb[_0x32a8c7(0x39d)](_0x521d85):_0x59ac2d?_0x59ac2d(_0x521d85):_0x378d59[_0x32a8c7(0x39d)](_0x521d85);}),_0x3dce57[_0x46487a(0x3af)](_0x46487a(0x1bf),()=>{const _0xfb2652=_0x46487a;_0x1370ae=!0x0,_0xbbaa72[_0xfb2652(0x26d)](),_0x4d34fb&&!_0xfebdc4&&_0x468e9c(),_0x59ac2d?.(null);});let _0x515479=()=>_0x378d59[_0x46487a(0x2b7)]>0x0?Promise[_0x46487a(0x346)](_0x378d59[_0x46487a(0x303)]()):_0x1370ae?Promise[_0x46487a(0x346)](null):new Promise(_0x46a401=>{_0x59ac2d=_0x4c3b15=>{_0x59ac2d=void 0x0,_0x46a401(_0x4c3b15);};});_0x1c510a({'readLine':(_0x1350ba,_0xad24b2)=>new Promise((_0x489152,_0x3d5c88)=>{const _0xa2b589=_0x46487a;if(_0x1370ae&&!_0x4d34fb){_0x489152(null);return;}_0x4d34fb??=[];let _0x1d6db9=_0x4d34fb['shift']();if(_0x1d6db9!==void 0x0){_0x489152(_0x1d6db9);return;}let _0x1a4b14=()=>{const _0x3f3c6f=_0x50fd;_0x266183=void 0x0,_0xad24b2[_0x3f3c6f(0x2ae)](_0x3f3c6f(0x416),_0x5e8867),_0xbbaa72['hide'](),_0x3dce57['setPrompt']('You>\x20');},_0x5e8867=()=>{const _0x1c363a=_0x50fd;_0x1a4b14(),_0x3d5c88(new Error(_0x1c363a(0x38c)));};_0xad24b2[_0xa2b589(0x1c9)](_0xa2b589(0x416),_0x5e8867,{'once':!0x0}),!_0x1370ae&&(_0x266183=_0x1e3a4c=>{_0x1a4b14(),_0x489152(_0x1e3a4c);},_0x3dce57[_0xa2b589(0x321)](_0x1350ba),_0xbbaa72[_0xa2b589(0x34e)]());}),'endQuestions':()=>{_0x4d34fb&&_0x378d59['push'](..._0x4d34fb),_0x4d34fb=void 0x0;}}),_0x3dce57['on'](_0x46487a(0x1fe),_0x468e9c),process[_0x46487a(0x38f)][_0x46487a(0x210)](_0x46487a(0x41d));let _0x2a7dfe=async _0x3376cb=>{_0x28f352=!0x0;try{await _0x1fdd47(_0x3376cb);}finally{_0x28f352=!0x1;}};try{if(_0x258b54&&await _0x2a7dfe(_0x258b54),_0xfebdc4)return;!_0x1370ae&&!_0xdf0e6c&&_0xbbaa72['show']();for(let _0x1ff67e=await _0x515479();_0x1ff67e!==null&&(_0xbbaa72[_0x46487a(0x26d)](),!_0xfebdc4);_0x1ff67e=await _0x515479()){let _0x19f7e7=_0x1ff67e[_0x46487a(0x21c)]();if(_0x19f7e7===_0x46487a(0x2da))break;_0x19f7e7&&await _0x2a7dfe(_0x19f7e7),!_0x1370ae&&!_0xdf0e6c&&_0xbbaa72['show']();}for(;!_0xfebdc4&&_0xdf0e6c;)await _0x5ccc75;}finally{_0x1c510a(null),_0x25aaea(),_0xbbaa72[_0x46487a(0x360)](),_0x3dce57[_0x46487a(0x2d3)](_0x46487a(0x1fe),_0x468e9c),_0x3dce57['close']();}}async function Le(_0x5d51ed,_0x4e7265){const _0x361293=_0x4642c2;await oo(_0x5d51ed,_0x4e7265)[_0x361293(0x362)];}function oo(_0x3106c0,_0x1ce9e1){const _0x577d88=_0x4642c2;let _0x6fd9a1=an(_0x1ce9e1,_0x3106c0);if(_0x6fd9a1[_0x577d88(0x2cc)]===_0x577d88(0x235))return{'done':xe(_0x6fd9a1),'releaseStdout':()=>{}};let _0x3ab598=ln();return{'done':xe(_0x6fd9a1),'releaseStdout':_0x3ab598};}async function xe(_0x1a7eac){const _0x422cd1=_0x4642c2;if(_0x1a7eac[_0x422cd1(0x1b2)]){cn(_0x1a7eac[_0x422cd1(0x2f5)]);return;}if(_0x1a7eac[_0x422cd1(0x405)]){console['log'](un());return;}if(_0x1a7eac['command']){await _0x1a7eac[_0x422cd1(0x23b)]['run'](_0x1a7eac);return;}if(_0x1a7eac[_0x422cd1(0x30c)]===_0x422cd1(0x2c6)){await Qn(_0x1a7eac);return;}if(_0x1a7eac['subcommand']===_0x422cd1(0x25e)){await Yn(_0x1a7eac[_0x422cd1(0x2ea)],_0x1a7eac[_0x422cd1(0x2f5)]['bin']);return;}if(_0x1a7eac['subcommand']===_0x422cd1(0x229)){await gn();return;}if(_0x1a7eac[_0x422cd1(0x30c)]==='whoami'){await hn(_0x1a7eac);return;}if(_0x1a7eac['subcommand']==='models'){await kn(_0x1a7eac);return;}if(_0x1a7eac[_0x422cd1(0x30c)]==='check'){await Tn(_0x1a7eac);return;}if(_0x1a7eac[_0x422cd1(0x30c)]===_0x422cd1(0x21a)){await Sn(_0x1a7eac);return;}if(_0x1a7eac[_0x422cd1(0x30c)]===_0x422cd1(0x3f6)){await Pn(_0x1a7eac);return;}if(_0x1a7eac[_0x422cd1(0x30c)]===_0x422cd1(0x24c)||_0x1a7eac[_0x422cd1(0x30c)]===_0x422cd1(0x3fa)||_0x1a7eac[_0x422cd1(0x30c)]===_0x422cd1(0x1e8)){await _n(_0x1a7eac,_0x1a7eac[_0x422cd1(0x30c)]);return;}if(_0x1a7eac[_0x422cd1(0x30c)]===_0x422cd1(0x1e2)){await Ln(_0x1a7eac);return;}if(_0x1a7eac[_0x422cd1(0x30c)]===_0x422cd1(0x1ce)){await Bn(_0x1a7eac);return;}if(_0x1a7eac[_0x422cd1(0x30c)]===_0x422cd1(0x1d5)){await Jn(_0x1a7eac);return;}if(_0x1a7eac['subcommand']===_0x422cd1(0x388)){await Kn(_0x1a7eac);return;}if(_0x1a7eac['subcommand']===_0x422cd1(0x1ee)){await _0x3545f0(_0x1a7eac['prompt'],{'cliName':_0x1a7eac['product'][_0x422cd1(0x248)],'runnerUrl':_0x1a7eac[_0x422cd1(0x1db)],'backendUrl':_0x1a7eac['backendUrl'],'interopPath':_0x1a7eac[_0x422cd1(0x1b4)],'workerId':_0x1a7eac[_0x422cd1(0x3ce)]});return;}if(_0x1a7eac[_0x422cd1(0x37d)]){await bn();return;}await Zn(_0x1a7eac);}function Me(_0x143728){const _0x48da64=_0x4642c2;let _0x47a287=_0x143728;console[_0x48da64(0x24d)](_0x47a287?.['stack']||_0x47a287?.[_0x48da64(0x23a)]||_0x143728),process[_0x48da64(0x21f)](0x1);}var sn,rn,ge,O,he,pn,we,Dn,ke,ve,y,Oe,te=L(()=>{const _0x345b10=_0x4642c2;re(),K(),de(),(sn=[_0x345b10(0x2c6),'tenant',_0x345b10(0x1ef),_0x345b10(0x1ee),'logout','whoami',_0x345b10(0x22a),'sessions','usage',_0x345b10(0x24c),_0x345b10(0x3fa),_0x345b10(0x1e8),'complete','transcribe',_0x345b10(0x1d5),_0x345b10(0x388)],rn=['',_0x345b10(0x1ef),_0x345b10(0x1b9),_0x345b10(0x22a),_0x345b10(0x21a),'usage',_0x345b10(0x24c),_0x345b10(0x3fa),_0x345b10(0x1e8),'complete',_0x345b10(0x1ce),_0x345b10(0x1d5),_0x345b10(0x388)],ge=[_0x345b10(0x20c),_0x345b10(0x2bc),_0x345b10(0x2ca),_0x345b10(0x218),_0x345b10(0x3a4)]),O=_0x36a4e8=>{const _0x4f1241=_0x345b10;process[_0x4f1241(0x232)][_0x4f1241(0x210)](_0x36a4e8);},he=0x27,pn=0x7d0,we=[_0x345b10(0x1bc),_0x345b10(0x34e),'rename',_0x345b10(0x402),_0x345b10(0x295),_0x345b10(0x2c4)],Dn=['','activity',_0x345b10(0x205)],(ke=['list',_0x345b10(0x1b7),_0x345b10(0x34e),_0x345b10(0x327),_0x345b10(0x404),'complete','accept','dismiss',_0x345b10(0x295),_0x345b10(0x402)],ve={'list':_0x345b10(0x277),'pending':'delegations\x20pending\x20<session-id>','show':_0x345b10(0x35a),'create':_0x345b10(0x202),'claim':'delegations\x20claim\x20<delegation-id|delegate://delegation/…>','complete':_0x345b10(0x35c),'accept':_0x345b10(0x310),'dismiss':'delegations\x20dismiss\x20<delegation-id>','cancel':'delegations\x20cancel\x20<delegation-id>','delete':_0x345b10(0x367)}),(y={'lastType':null,'quiet':!0x1,'bin':''},Oe=_0x281eb2=>{const _0x29b84a=_0x345b10;switch(_0x281eb2['type']){case _0x29b84a(0x3c7):_0x281eb2[_0x29b84a(0x2dd)]&&_0x281eb2[_0x29b84a(0x2dd)]!==y[_0x29b84a(0x2dd)]&&(process[_0x29b84a(0x38f)][_0x29b84a(0x210)](_0x29b84a(0x3de)+_0x281eb2[_0x29b84a(0x2dd)]+_0x29b84a(0x31d)+_0x281eb2[_0x29b84a(0x2dd)]+')\x0a'),y[_0x29b84a(0x2dd)]=_0x281eb2[_0x29b84a(0x2dd)]);break;case _0x29b84a(0x2eb):_0x281eb2['turnId']&&_0x281eb2['turnId']!==y[_0x29b84a(0x27b)]&&(y[_0x29b84a(0x291)]!==null&&process['stderr']['write']('\x0a'),process['stderr'][_0x29b84a(0x210)]('Turn:\x20'+_0x281eb2[_0x29b84a(0x27b)]+_0x29b84a(0x207)+y['bin']+_0x29b84a(0x1d7)+_0x281eb2[_0x29b84a(0x2dd)]+_0x29b84a(0x3ad)+_0x281eb2[_0x29b84a(0x27b)]+')\x0a'),y[_0x29b84a(0x27b)]=_0x281eb2[_0x29b84a(0x27b)],y['lastType']=_0x29b84a(0x2eb));break;case _0x29b84a(0x25c):_0x281eb2[_0x29b84a(0x28f)]&&!y[_0x29b84a(0x1ff)]&&(y['lastType']!=='thinking'&&process[_0x29b84a(0x38f)][_0x29b84a(0x210)](_0x29b84a(0x254)),process[_0x29b84a(0x38f)][_0x29b84a(0x210)](_0x281eb2['content']),y[_0x29b84a(0x291)]='thinking');break;case'tool_call':y[_0x29b84a(0x291)]!==null&&process[_0x29b84a(0x38f)][_0x29b84a(0x210)]('\x0a'),process[_0x29b84a(0x38f)][_0x29b84a(0x210)](_0x29b84a(0x23c)+(_0x281eb2[_0x29b84a(0x330)]??'tool')+'\x0a'),y[_0x29b84a(0x291)]=_0x29b84a(0x342);break;case _0x29b84a(0x23a):_0x281eb2[_0x29b84a(0x28f)]&&(y[_0x29b84a(0x291)]!==_0x29b84a(0x23a)&&y[_0x29b84a(0x291)]!==null&&process['stdout'][_0x29b84a(0x210)]('\x0a'),process[_0x29b84a(0x232)][_0x29b84a(0x210)](_0x281eb2['content']),y[_0x29b84a(0x291)]=_0x29b84a(0x23a));break;case _0x29b84a(0x24d):y[_0x29b84a(0x291)]!==null&&process[_0x29b84a(0x38f)][_0x29b84a(0x210)]('\x0a'),process['stderr'][_0x29b84a(0x210)]('✗\x20'+(_0x281eb2[_0x29b84a(0x24d)]??'error')+'\x0a'),y[_0x29b84a(0x291)]='error';break;case _0x29b84a(0x362):(y[_0x29b84a(0x291)]==='message'||y[_0x29b84a(0x291)]==='thinking')&&process[_0x29b84a(0x232)][_0x29b84a(0x210)]('\x0a'),process[_0x29b84a(0x38f)][_0x29b84a(0x210)]('✓\x20Done\x0a'),y['lastType']=_0x29b84a(0x362);break;}});});import{exportLivingDocument as _0x267371,saveMapVersion as _0x28e9dc,shareMap as _0x28e749}from'@uipath/delegate-sdk';async function Be(_0x2c3df8,_0x5331a3){const _0x58e383=_0x4642c2;try{return await _0x5331a3();}catch(_0x40c5df){let _0x1ef6c4=_0x40c5df?.[_0x58e383(0x234)],_0x29cb9c=Array['isArray'](_0x1ef6c4)&&_0x1ef6c4['length']>0x0?'\x20('+_0x1ef6c4['join'](',\x20')+')':'';console[_0x58e383(0x24d)](_0x58e383(0x284)+_0x2c3df8+':\x20'+(_0x40c5df instanceof Error?_0x40c5df[_0x58e383(0x23a)]:String(_0x40c5df))+_0x29cb9c),process[_0x58e383(0x21f)](0x1);}}var He,je,Fe,Je,Ge=L(()=>{const _0x101917=_0x4642c2;te(),(He={'name':_0x101917(0x2bd),'machineOutput':!0x0,'valueFlags':{},async 'run'(_0x2ce3f5){const _0x30b9a5=_0x101917;let [_0x5ad0fa,_0x2c39a5,..._0x31cfa4]=_0x2ce3f5['operands'];(!_0x5ad0fa||_0x31cfa4['length']>0x0||!_0x2ce3f5[_0x30b9a5(0x41b)])&&(console[_0x30b9a5(0x24d)](_0x30b9a5(0x1e6)+_0x2ce3f5[_0x30b9a5(0x2f5)][_0x30b9a5(0x248)]+'\x20export\x20TYPE\x20[DOCUMENT_ID]\x20--project\x20ID\x20[--working-dir\x20PATH]'),process[_0x30b9a5(0x21f)](0x2));let _0x4dee68;try{_0x4dee68=await _0x267371({'projectId':_0x2ce3f5[_0x30b9a5(0x41b)],'type':_0x5ad0fa,..._0x2c39a5?{'documentId':_0x2c39a5}:{},..._0x2ce3f5[_0x30b9a5(0x26a)]?{'workingDirectory':_0x2ce3f5[_0x30b9a5(0x26a)]}:{}});}catch(_0x1d2248){console[_0x30b9a5(0x24d)](_0x30b9a5(0x329)+(_0x1d2248 instanceof Error?_0x1d2248[_0x30b9a5(0x23a)]:String(_0x1d2248))),process[_0x30b9a5(0x21f)](0x1);}m(_0x2ce3f5,_0x4dee68,_0x2dc7d0=>{const _0x2a1fab=_0x30b9a5;process[_0x2a1fab(0x232)]['write'](_0x2dc7d0['message']+'\x0a');});}},je=_0x4a932a=>_0x101917(0x1e6)+_0x4a932a+_0x101917(0x335),Fe=_0x389010=>_0x101917(0x1e6)+_0x389010+'\x20maps\x20save-version\x20MESSAGE\x20--project\x20ID\x20[--working-dir\x20PATH]',Je={'name':_0x101917(0x41a),'machineOutput':!0x0,'valueFlags':{'--remote':'a\x20file://\x20URL\x20or\x20an\x20absolute\x20path','--map-name':'a\x20Map\x20name'},async 'run'(_0x335553){const _0x3b4566=_0x101917;let _0x2c1113=_0x335553[_0x3b4566(0x2f5)][_0x3b4566(0x248)],[_0xbcb66f='',..._0x2604b7]=_0x335553[_0x3b4566(0x28b)],_0x4ddba6=_0x335553['commandFlags'][_0x3b4566(0x266)],_0x5ea3ff=_0x335553[_0x3b4566(0x2df)][_0x3b4566(0x350)];if((_0x4ddba6!==void 0x0||_0x5ea3ff!==void 0x0)&&_0xbcb66f!=='share'&&(console[_0x3b4566(0x24d)](_0x3b4566(0x236)+_0x2c1113+'\x20maps\x20share`\x20only.'),process[_0x3b4566(0x21f)](0x2)),_0xbcb66f===_0x3b4566(0x324)){(_0x2604b7[_0x3b4566(0x2b7)]>0x0||!_0x335553[_0x3b4566(0x41b)]||!_0x4ddba6||!_0x5ea3ff)&&(console['error'](je(_0x2c1113)),process[_0x3b4566(0x21f)](0x2));let _0x248442=await Be(_0x3b4566(0x324),()=>_0x28e749({'projectId':_0x335553[_0x3b4566(0x41b)],'remote':_0x4ddba6,'mapName':_0x5ea3ff,..._0x335553[_0x3b4566(0x26a)]?{'workingDirectory':_0x335553[_0x3b4566(0x26a)]}:{}}));m(_0x335553,_0x248442,_0x3061e3=>{const _0x457a40=_0x3b4566;process['stdout'][_0x457a40(0x210)](_0x457a40(0x314)+_0x335553['projectId']+_0x457a40(0x2c0)+_0x3061e3[_0x457a40(0x36e)]+'\x20as\x20\x22'+_0x3061e3[_0x457a40(0x247)]+_0x457a40(0x223));});return;}if(_0xbcb66f===_0x3b4566(0x313)){let _0x4319eb=_0x2604b7['join']('\x20')['trim']();(!_0x4319eb||!_0x335553[_0x3b4566(0x41b)])&&(console['error'](Fe(_0x2c1113)),process['exit'](0x2));let _0x397de6=await Be(_0x3b4566(0x313),()=>_0x28e9dc({'projectId':_0x335553[_0x3b4566(0x41b)],'message':_0x4319eb,..._0x335553[_0x3b4566(0x26a)]?{'workingDirectory':_0x335553[_0x3b4566(0x26a)]}:{}}));m(_0x335553,_0x397de6,_0x4ae4b2=>{const _0x24bb65=_0x3b4566;process[_0x24bb65(0x232)][_0x24bb65(0x210)](_0x24bb65(0x26e)+_0x4ae4b2[_0x24bb65(0x405)]+_0x24bb65(0x2bb)+_0x335553[_0x24bb65(0x41b)]+':\x20'+_0x4ae4b2[_0x24bb65(0x23a)]+'\x0a');});return;}console[_0x3b4566(0x24d)](je(_0x2c1113)+'\x0a'+Fe(_0x2c1113)),process['exit'](0x2);}});});import{BUSINESS_ANALYSIS_PRELOADED_SKILLS as _0x51cbe6}from'@uipath/delegate-sdk';function _0x542d(){const _0x551939=['isArray','complete\x20needs\x20--json-schema\x20<file>:\x20','A\x20steering\x20message\x20was\x20not\x20sent:\x20','email','label','session_consumed_pu','Token:\x20\x20\x20\x20\x20\x20\x20\x20expires\x20','log','findIndex','\x20login\x20--url\x20https://automationsuite.contoso.com','index','--attach\x20applies\x20to\x20prompts\x20only.','\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','\x20transcribe\x20<file>,\x20or\x20-\x20to\x20read\x20stdin.','delegationId','\x20host\x20install\x20[flags]\x20\x20\x20\x20Auto-start\x20the\x20host\x20at\x20login\x20(macOS\x20LaunchAgent\x20/\x20Windows\x20Scheduled\x20Task)\x0a\x20\x20','detail','--tenant\x20applies\x20to\x20`','hasOwn','keys','Unknown\x20usage\x20view:\x20','\x20\x22<answer>\x22\x0a','\x20(resets\x20','--turn','removeEventListener','uuid','\x20token\x20units','\x20(type\x20your\x20own)','From\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20',':\x20cannot\x20read\x20the\x20JSON\x20schema\x20(','Your\x20answer,\x20as\x20text\x20(the\x20CLI\x20attaches\x20no\x20files;\x20Enter\x20to\x20skip):\x20','existsSync','agentName','length','waitForIdle','includeSubAgents','Invalid\x20--env:\x20','\x20of\x20the\x20Map\x20of\x20Work\x20of\x20','medium','export','skipEnvCheck',']\x20(Enter\x20for\x20','\x20to\x20','Licensing:\x20\x20\x20\x20','noConnections','\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','fork','--url','login','ASSIGNEE','lockReason','--version','high','contextSummary','outputFormat','orgLogicalName','a\x20directory\x20path','\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','--task-automation\x20needs\x20computer\x20use:\x20the\x20task\x20log\x20is\x20written\x20by\x20the\x20UI-automation\x20tools.\x20','--replay-user-messages\x20needs\x20--input-format\x20stream-json.','--computer-use\x20turns\x20the\x20screen\x20on,\x20and\x20--headless\x20and\x20--no-computer-use\x20turn\x20it\x20off:\x20pass\x20one\x20of\x20them.','off','Unknown\x20flag:\x20','.\x20Share:\x20','join','--vertical','exitCode','Cancel\x20requested\x20for\x20turn\x20','/exit','isError','UiPath\x20Cloud','sessionId','entries','commandFlags','\x20—\x20','followUpsRenderer','Base\x20URL:\x20\x20\x20\x20\x20','--json-schema','--print','\x20sessions\x20[list]`\x20only.','1112ePsqlR','\x20login\x20--env\x20<alpha|staging|production>`\x20(or\x20`--url\x20<deployment-url>`\x20for\x20Automation\x20Suite)\x20first.','userinput','\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','prompt','turn_start','settle','\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','\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','\x20delegation\x20','No\x20answers\x20awaiting\x20acceptance.\x0a','total_tokens','effort','\x20PU','updatedAt','product','\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','--env\x20localhost\x20has\x20no\x20OAuth\x20flow;\x20pick\x20alpha,\x20staging,\x20or\x20production.','.aria','\x20delegations\x20accept\x20<id>\x0a','total_sessions','alpha','\x20must\x20be\x20a\x20whole\x20number\x20','cartographer','\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','env','Deleted\x20session\x20','Continue\x20it\x20with:\x20','\x20\x20\x20\x20','shift','getTurnUsageHistory','task','--url\x20applies\x20to\x20`','\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','deleted','parse','More:\x20','monthly_spend_usd','subcommand','Tenant\x20not\x20switched:\x20could\x20not\x20write\x20','widget','the\x20request','delegations\x20accept\x20<delegation-id>','organizationId','>.\x0a','save-version','Shared\x20the\x20Map\x20of\x20Work\x20of\x20','print','\x20sessions`\x20only.','choice','accessToken','\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','accept','a\x20file\x20path','\x20--session\x20','\x20(resume\x20with\x20--session\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(','estimated_cost_usd','\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','setPrompt','--output-format\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','share','Invalid\x20--input-format:\x20','No\x20turn\x20','create','--skip-env-check\x20applies\x20to\x20`','export:\x20','probability\x20','--authority','.\x20Drop\x20--vertical.','keepAlive',']\x20Backend\x20URL:\x20','now','toolName','\x20is\x20required.\x0a','\x20requires\x20','\x20cap','12595617SHoXly','\x20maps\x20share\x20--project\x20ID\x20--remote\x20URL|PATH\x20--map-name\x20NAME\x20[--working-dir\x20PATH]','Drop\x20--headless\x20and\x20--no-computer-use.','from','preloadSkills','\x20--help`.','\x20is\x20not\x20valid\x20JSON\x20(','Work\x20on\x20it\x20with:\x20','title','Claimed\x20from\x20delegation\x20','Enter\x20a\x20number\x20','--task-automation','Enter\x20one\x20number\x20from\x201\x20to\x20','Delegation\x20\x20\x20\x20','tool_call','\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','--input-format\x20and\x20--replay-user-messages\x20apply\x20to\x20prompts\x20only.','\x20must\x20be\x20a\x20JSON\x20object.','resolve','\x20delegations\x20','a\x20JSON\x20schema\x20file','fields','\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).','\x20usage`\x20summary\x20only.','Renamed\x20','monthly_limit_usd','show','pct_used','--map-name','total_completion_tokens','\x20PU\x20beyond\x20quota','total_token_units','471oMGrlT','cancelled','\x20tenant\x20<name>\x0a','),\x20','date','an\x20input\x20line\x20is\x20not\x20a\x20JSON\x20object','delegations\x20show\x20<delegation-id|delegate://delegation/…>','alreadyAccepted','delegations\x20complete\x20<delegation-id>\x20\x22<answer>\x22|-','dismissed','\x20sessions\x20cancel`\x20only.','\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','restore','getSessionMessages','done','\x20host\x20uninstall\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Remove\x20auto-start\x0a\x20\x20','every','Delegated\x20','replayUserMessages','delegations\x20delete\x20<delegation-id>','\x20(current)','sendMessage','First\x20login\x20requires\x20--env\x20or\x20--url.\x20Usage:\x20','STATUS','\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22,\x20or\x20-\x20to\x20read\x20stdin.','backendUrl','remote','Interop\x20stopped\x20(if\x20it\x20was\x20running).','exports','toFixed','options','\x20[flags]\x20[\x22<prompt>\x22]\x20\x20\x20\x20Start\x20a\x20conversation\x20in\x20a\x20terminal\x0a\x20\x20','--tenant\x20requires\x20a\x20tenant\x20name.','file','confidence','Cost:\x20\x20\x20$','\x27\x20is\x20empty.','code','padEnd','replace','\x20login`\x20again.','cleanup','Steering\x20input\x20stopped:\x20','\x20usage`,\x20`usage\x20activity`\x20or\x20`usage\x20daily`.','refused','Invalid\x20--output-format:\x20','\x20sessions\x20fork\x20<id>\x20[<message-id>]','--effort','--to\x20and\x20--summary\x20apply\x20to\x20`','--input-format\x20stream-json\x20needs\x20--output-format\x20stream-json:\x20the\x20steering\x20messages\x20are\x20answered\x20on\x20stdout.','--include-subagents','repeat','org-users','Task\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','):\x20','delegateTo','The\x20turn\x20was\x20cancelled.','toString','unknown\x20slug','stderr','Spending:\x20\x20\x20\x20\x20$','results','\x20this\x20month','computerUse',',\x20or\x20holds\x20no\x20message\x20',',\x20whose\x20tenant\x20is\x20chosen\x20in\x20the\x20app.\x20Run\x20`','There\x20is\x20no\x20terminal\x20input\x20to\x20answer\x20from.','--session\x20applies\x20to\x20the\x20`','\x20(optional)','--skip-env-check','activity','initialize','\x20(confidence\x20','push','jsonSchemaPath','limit','a\x20colleague','A\x20steering\x20message\x20arrived\x20after\x20the\x20turn\x20ended:\x20not\x20read.\x0a','\x20vertical,\x20so\x20it\x20cannot\x20run\x20as\x20--vertical\x20','pendingResults','max','\x20tokens\x0a','total_cost_usd','utf-8','--no-memory','\x20host\x20status\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20auto-start\x20state\x0a\x20\x20','concat','--backend','\x20login\x20--env\x20<alpha|staging|production>,\x20or\x20','\x20--turn\x20','--days\x20applies\x20to\x20`','once','--attach','erase','from\x20','\x20—\x20sign\x20out\x20in\x20the\x20Delegate\x20app\x20to\x20clear\x20that.','Auth\x20comes\x20from\x20AUTH_TOKEN/TENANT_ID/ORG_ID\x20—\x20set\x20TENANT_ID\x20and\x20TENANT_SLUG\x20to\x20change\x20the\x20tenant.','\x20\x22<prompt>\x22\x0aAnswer\x20with:\x20','Tenant:\x20','url','verbose','\x20login\x20--env\x20<alpha|staging|production>`\x20first.','unknown','Session:\x20\x20\x20\x20\x20\x20','\x20org-users\x20<name\x20or\x20email\x20prefix>','inputFormat','structuredError','Source:\x20\x20\x20\x20\x20\x20\x20',':\x20cannot\x20read\x20the\x20request\x20(','daily_usage','\x20complete`\x20only.','an\x20effort\x20tier','oneTurn','--skills-path','No\x20usage\x20in\x20the\x20last\x20','session_start','\x20sessions\x20[list]\x20[--page\x20N]\x20[--limit\x20N]\x20[--include-subagents]','auth.json','Owner\x20\x20\x20\x20\x20\x20\x20\x20\x20','self-hosted\x20(Automation\x20Suite\x20/\x20Dedicated)','subFields','buckets','workerId','\x20|\x20','Enter\x20numbers\x20from\x201\x20to\x20','about','Use:\x20','No\x20sessions\x20on\x20page\x20','map','flags','padStart','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','deepLink','\x20of\x20session\x20','No\x20delegations.\x0a','isDesktopFallback','\x20login`\x20only.','.\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.','Session:\x20','noMemory','\x20--print\x20\x22<prompt>\x22\x20\x20\x20\x20\x20\x20Send\x20one\x20prompt,\x20print\x20the\x20response,\x20and\x20exit\x0a\x20\x20','UPDATED','userId','model_version','\x20runs\x20the\x20','period_end','\x20applies\x20to\x20prompts\x20and\x20to\x20these\x20commands\x20only:\x20','\x20PU\x20used','\x0aAvailable\x20models\x20(','Invalid\x20--project:\x20\x22','an\x20input\x20line\x20has\x20an\x20empty\x20message','default','Answered','Tenant:\x20\x20\x20\x20\x20\x20\x20','never','spawn','add','Number','isSafeInteger','Invalid\x20--effort:\x20','alreadyCompleted','--json-schema\x20applies\x20to\x20prompts\x20and\x20to\x20`','usage','cwd','input','unit','rerank','\x0a\x0aUsage:\x0a\x20\x20','sourceTitle','\x20(in\x20','stop','\x20prompt,\x20','complete\x20needs\x20a\x20prompt:\x20','\x20\x20from\x20','delete','tenantName','claim','version','noSecurity','\x20days:\x20','AUTH_TOKEN_FILE\x20\x27','\x20sessions\x20on\x20','limit_enabled','page','bind','assignedUser','7542997bzaGUT','Input\x20closed\x20before\x20the\x20question\x20was\x20answered.',').\x0a','score','\x20<id>','--input-format','skip','\x20\x20\x20\x20Not\x20available\x20on\x20this\x20plan','abort','assignedUserEmail','token_units','toUpperCase','maps','projectId','answers','Enter\x20sends\x20a\x20message.\x20/exit\x20or\x20EOF\x20exits;\x20Ctrl+C\x20stops\x20and\x20exits.\x0a','.\x20Use\x20','No\x20auth\x20found.\x20Set\x20AUTH_TOKEN\x20(or\x20AUTH_TOKEN_FILE)/TENANT_ID/ORG_ID\x20env\x20vars,\x20or\x20run\x20`','\x20(estimated\x20$','\x20sessions\x20--page\x20','\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--model\x20<id>\x20\x22<prompt>\x22\x0a','--runner-url','active_days','verdict','10882620yqjRcT','sourceUserEmail','opt-in','--no-connections','a\x20turn\x20id','status','readLine','\x20\x20(sub-agent\x20of\x20','period_days','help','description','interopPath','signal','days','pending','numeric','whoami','kind','Unknown\x20sessions\x20action:\x20','list','object','auth','close','ID\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','--worker-id','delegation','byoWarning','59LQRuiV','slice','--quiet','No\x20CLI\x20login\x20found.\x20Run\x20`','valueFlags','addEventListener','\x20tenant\x20<name>','\x20not\x20found.','\x20delegations\x20complete\x20','questions','transcribe','3600335laMgqA','stringify','--computer-use','an\x20input\x20line\x20is\x20not\x20JSON','name','completion_tokens','delegations','model','\x20sessions\x20cancel\x20','environment\x20variables\x20(AUTH_TOKEN/TENANT_ID/ORG_ID)','round','forEach','runnerUrl','type','--env','an\x20input\x20line\x20has\x20no\x20message.content,\x20a\x20string\x20or\x20a\x20list\x20of\x20text\x20blocks','--days','baseUrl','a\x20format\x20(','complete','readFileSync',':\x20bucket\x20number\x20(Enter\x20to\x20leave\x20out):\x20','\x20min)','Usage:\x20','\x20runs\x20without\x20computer\x20use.','verify','\x20<file.json>,\x20or\x20-\x20to\x20read\x20stdin.','Date\x20\x20\x20\x20\x20\x20\x20\x20Token\x20units\x20\x20Prompt\x20tokens\x20\x20Completion\x20tokens','No\x20CLI\x20login\x20found.\x20Note:\x20the\x20CLI\x20is\x20currently\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20','an\x20email\x20address\x20or\x20name','Organization\x20\x20','host','models','localhost','expiresAt','\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','cartographer-cli','Title\x20\x20\x20\x20\x20\x20\x20\x20\x20','bundledSkillsPath','Tenants\x20of\x20','some','\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','test','--turn\x20applies\x20to\x20`','Cartographer\x20agent\x20CLI','--to,\x20--summary\x20and\x20--session\x20apply\x20to\x20`','\x20(Delegate\x20desktop\x20app\x20fallback)','SIGINT','quiet','--tenant','messages','delegations\x20create\x20--session\x20<id>\x20[--to\x20<email|name>]\x20[--summary\x20<text>]\x20\x22<task>\x22|-','taskAutomation','--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`','daily','\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22.','\x20(cancel\x20with:\x20','from\x201\x20to\x20','noComputerUse','.\x20Use\x20alpha\x20|\x20staging\x20|\x20production\x20|\x20localhost.','all','low','probability','tokenExpiresAt','--input-format\x20stream-json\x20reads\x20the\x20prompt\x20from\x20stdin:\x20pass\x20no\x20prompt\x20argument.','write','Session\x20','then','filter','stream-json','4460656vcMGKC','Could\x20not\x20check\x20BYO\x20model\x20warnings:\x20','includes','xhigh','min','sessions','data','trim','\x20delegations\x20create`\x20only.','user','exit','Token:\x20\x20\x20\x20\x20\x20\x20\x20expired\x20','stdin','\x20sessions\x20','\x22.\x0a','finish','catch','No\x20CLI\x20login\x20found\x20—\x20nothing\x20to\x20remove.','bucket','actionable_error','logout','check','Add\x20--computer-use.','\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','\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','commands','split','result','Created\x20delegation\x20','stdout','--verbose','paths','text','--remote\x20and\x20--map-name\x20apply\x20to\x20`','Rubric\x20','--headless','Pass\x20either\x20--env\x20(a\x20named\x20cloud)\x20or\x20--url\x20(any\x20other\x20deployment),\x20not\x20both.','message','command','🔧\x20','\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','end','\x20needs\x20a\x20JSON\x20request:\x20','--no-computer-use','Removed\x20','getSessionId',')\x20—\x20saved\x20to\x20','intro','\x20\x20(input\x20#','exec','mapName','bin','--replay-user-messages','\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','a\x20skill\x20name','evaluate','error','items','\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','Tokens:\x20','startsWith','rejection','\x0aUse\x20with:\x20','\x0a🤔\x20','locked','resume','Already\x20answered','isTTY','--cleanup','aborted','parentSessionId','thinking','attachments','tenant','race','optional','isInteger','tenantId','--project','floor','string','--remote','structured','UIPATH_BASE_URL\x20is\x20unusable.\x20','Last\x20','workingDirectory','No\x20structured\x20output:\x20the\x20turn\x20failed\x20(','typed','hide','Saved\x20version\x20','onEvent','a\x20number','Structured\x20output\x20failed:\x20',';\x20the\x20saved\x20login\x20still\x20uses\x20','headless','\x20(stdin\x20was\x20empty)','\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','prompt_tokens','delegations\x20list\x20<backend-project-id>','score\x20','multiSelect','No\x20CLI\x20login\x20to\x20switch:\x20the\x20CLI\x20is\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20','turnId','rename','6lsUbkP','origin','argv','15914GAHyqC','--to','step','vertical','maps\x20','pause','No\x20one\x20matches\x20\x22','\x20into\x20','The\x20saved\x20CLI\x20login\x20could\x20not\x20be\x20refreshed.\x20Run\x20`','\x0a⚠️\x20\x20Auth\x20expired.\x20Opening\x20browser\x20to\x20re-login…\x0a','[env=','operands','endQuestions','question',':\x20ignored\x0a','content','--interop','lastType','models_breakdown','find','pop','cancel'];_0x542d=function(){return _0x551939;};return _0x542d();}var lo,We,co,uo,po,Ke,Qe=L(()=>{const _0x46f051=_0x4642c2;Ge(),(lo=_0x46f051(0x2fd),We=_0x51cbe6,co='\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',uo=_0x46f051(0x2f6),po=_0x46f051(0x3d7)+We['join'](',\x20')+_0x46f051(0x3dd),Ke={'bin':_0x46f051(0x1f3),'title':_0x46f051(0x1fb),'vertical':lo,'computerUse':'never','preloadSkills':We,'commands':[He,Je],'help':{'commands':co,'flags':uo,'about':po}});}),mo=Ye(()=>{const _0x287036=_0x4642c2;te(),Qe(),Le(Ke,process[_0x287036(0x27f)]['slice'](0x2))[_0x287036(0x225)](Me);});export default mo();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uipath/cartographer-cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.208.0-preview.20261203165256",
|
|
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.
|
|
25
|
+
"@uipath/delegate-sdk": "1.208.0-preview.20261203165256"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@types/node": "^22.0.0",
|