@uipath/cartographer-cli 0.0.0-stage → 1.207.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. package/LICENSE +204 -0
  2. package/README.md +648 -2
  3. package/dist/cli.mjs +2 -0
  4. package/package.json +31 -4
package/dist/cli.mjs ADDED
@@ -0,0 +1,2 @@
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();
package/package.json CHANGED
@@ -1,6 +1,33 @@
1
1
  {
2
2
  "name": "@uipath/cartographer-cli",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "1.207.0",
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
+ "license": "Apache-2.0",
6
+ "type": "commonjs",
7
+ "bin": {
8
+ "cartographer-cli": "./dist/cli.mjs"
9
+ },
10
+ "publishConfig": {
11
+ "registry": "https://npm.pkg.github.com/"
12
+ },
13
+ "files": [
14
+ "dist",
15
+ "README.md",
16
+ "LICENSE"
17
+ ],
18
+ "scripts": {
19
+ "build": "node build.mjs",
20
+ "prepublishOnly": "npm run build",
21
+ "publish:internal": "npm publish --@uipath:registry=https://npm.pkg.github.com/ --ignore-scripts",
22
+ "publish:npmjs": "npm publish --@uipath:registry=https://registry.npmjs.org/ --access public --ignore-scripts"
23
+ },
24
+ "dependencies": {
25
+ "@uipath/delegate-sdk": "1.207.0"
26
+ },
27
+ "devDependencies": {
28
+ "@types/node": "^22.0.0",
29
+ "esbuild": "^0.25.0",
30
+ "javascript-obfuscator": "5.3.0",
31
+ "typescript": "^5.6.0"
32
+ }
33
+ }