@uipath/delegate-cli 1.207.0-preview.20261125075217 → 1.207.0-preview.20261125093155

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/cli.mjs +1 -1
  2. package/package.json +2 -2
package/dist/cli.mjs CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- const _0x586b23=_0x33b8;(function(_0x4adbf6,_0x3ed327){const _0x450fa0=_0x33b8,_0x5a7aa3=_0x4adbf6();while(!![]){try{const _0x2a67ae=-parseInt(_0x450fa0(0x2db))/0x1+parseInt(_0x450fa0(0x28b))/0x2+-parseInt(_0x450fa0(0x17c))/0x3*(-parseInt(_0x450fa0(0x2fb))/0x4)+parseInt(_0x450fa0(0x1de))/0x5*(parseInt(_0x450fa0(0x2c3))/0x6)+parseInt(_0x450fa0(0x384))/0x7*(-parseInt(_0x450fa0(0x311))/0x8)+-parseInt(_0x450fa0(0x359))/0x9+-parseInt(_0x450fa0(0x2ed))/0xa;if(_0x2a67ae===_0x3ed327)break;else _0x5a7aa3['push'](_0x5a7aa3['shift']());}catch(_0x4ad1ce){_0x5a7aa3['push'](_0x5a7aa3['shift']());}}}(_0x450d,0xa20d4));const __dirname=import.meta.dirname;import _0x5f55e2 from'fs';function _0x33b8(_0x5b1cec,_0x5c4125){_0x5b1cec=_0x5b1cec-0x173;const _0x450d67=_0x450d();let _0x33b8ba=_0x450d67[_0x5b1cec];return _0x33b8ba;}import _0x2e69e0 from'path';import{clearLine as _0x2e237f,createInterface as _0xdfbf3c,cursorTo as _0x300f2c}from'node:readline';import{isOnStepGrid as _0x30f67f}from'@uipath/delegate-sdk';var L=_0x586b23(0x1ed);function E(_0x5e2eee){const _0x4cf4a0=_0x586b23;return _0x5e2eee[_0x4cf4a0(0x2a9)](/\u001b\[[0-?]*[ -/]*[@-~]|\u001b\][^\u0007\u001b]*(\u0007|\u001b\\)?|\u001b./g,'')['replace'](/[\u0000-\u0008\u000b-\u001f\u007f-\u009f]/g,'');}function ee(_0x2c4e31){const _0x38e269=_0x586b23;return E(_0x2c4e31[_0x38e269(0x1c1)]??(_0x2c4e31['kind']===L?_0x38e269(0x22d):_0x2c4e31['id']));}function Ce(_0x293055,_0x3f5812,_0x578e8d){const _0x16ca61=_0x586b23;let _0x145178=[''+(_0x578e8d>0x1?'['+_0x3f5812+'/'+_0x578e8d+']\x20':'')+E(_0x293055[_0x16ca61(0x2ac)])+(_0x293055['optional']?'\x20(optional)':''),E(_0x293055['question'])];return _0x293055[_0x16ca61(0x26d)]==='text'&&_0x293055[_0x16ca61(0x174)][_0x16ca61(0x22b)]((_0x11059d,_0x483130)=>{const _0x399384=_0x16ca61;let _0x2615e8=_0x11059d[_0x399384(0x17b)]===L?'\x20(type\x20your\x20own)':'',_0x4e672c=_0x11059d[_0x399384(0x32b)]?_0x399384(0x25d)+E(_0x11059d[_0x399384(0x32b)]):'';_0x145178[_0x399384(0x24b)]('\x20\x20'+(_0x483130+0x1)+'.\x20'+ee(_0x11059d)+_0x2615e8+_0x4e672c);}),_0x145178[_0x16ca61(0x204)]('\x0a');}function te(_0x267cb4,_0x53894b){const _0x10674d=_0x586b23;let _0x596a11=_0x267cb4[_0x10674d(0x241)](/[\s,]+/)[_0x10674d(0x286)](Boolean);if(_0x596a11[_0x10674d(0x21f)]===0x0)return null;let _0x1021e0=_0x596a11[_0x10674d(0x227)](_0x2a554b=>/^\d+$/[_0x10674d(0x22c)](_0x2a554b)?Number(_0x2a554b):NaN);return _0x1021e0[_0x10674d(0x2b0)](_0x21938b=>!Number[_0x10674d(0x32a)](_0x21938b)||_0x21938b<0x1||_0x21938b>_0x53894b)?null:[...new Set(_0x1021e0)][_0x10674d(0x227)](_0x26a554=>_0x26a554-0x1);}function Oe(_0x6f351b){const _0x52fdb7=_0x586b23;return typeof _0x6f351b==_0x52fdb7(0x29e)&&_0x6f351b!==null&&_0x52fdb7(0x232)in _0x6f351b;}async function F(_0x331e0c,_0x204e19,_0x37dee1,_0x37399c){const _0x725652=_0x586b23;for(;;){let _0x513e70=(await _0x331e0c(_0x204e19))[_0x725652(0x34b)]();if(_0x513e70==='')return;let _0x1c7dec=_0x37399c(_0x513e70);if(!Oe(_0x1c7dec))return _0x1c7dec;_0x37dee1(_0x1c7dec['refused']+'\x0a');}}async function Le(_0x1f5a60,_0x246864,_0x485de5){const _0x34166f=_0x586b23;if(_0x1f5a60[_0x34166f(0x174)][_0x34166f(0x21f)]===0x0||_0x1f5a60['options'][_0x34166f(0x31e)](_0x359e5f=>_0x359e5f[_0x34166f(0x17b)]===L)){let _0x29004c=(await _0x246864(_0x34166f(0x21c)))[_0x34166f(0x34b)]();return _0x29004c===''?void 0x0:{'text':_0x29004c};}let _0x46eee1=_0x1f5a60[_0x34166f(0x174)][_0x34166f(0x2da)](_0x341d56=>_0x341d56[_0x34166f(0x17b)]===L),_0x5aabe3=_0x1f5a60[_0x34166f(0x175)]?_0x34166f(0x288):_0x34166f(0x219)+(_0x46eee1>=0x0?_0x34166f(0x37f):'')+_0x34166f(0x2b1),_0x50c311=await F(_0x246864,_0x5aabe3,_0x485de5,_0x2f638e=>{const _0x1757c0=_0x34166f;let _0x5932cb=te(_0x2f638e,_0x1f5a60[_0x1757c0(0x174)][_0x1757c0(0x21f)]);return _0x5932cb&&(_0x1f5a60['multiSelect']||_0x5932cb[_0x1757c0(0x21f)]===0x1)?_0x5932cb:!_0x1f5a60[_0x1757c0(0x175)]&&_0x46eee1>=0x0?{'typed':_0x2f638e}:{'refused':_0x1f5a60[_0x1757c0(0x175)]?_0x1757c0(0x37e)+_0x1f5a60[_0x1757c0(0x174)][_0x1757c0(0x21f)]+'.':_0x1757c0(0x2ce)+_0x1f5a60[_0x1757c0(0x174)]['length']+'.'};});if(_0x50c311===void 0x0)return;if(!Array[_0x34166f(0x256)](_0x50c311))return{'text':_0x50c311[_0x34166f(0x297)]};let _0x5b71a3=_0x50c311['map'](_0x1f3ded=>_0x1f5a60['options'][_0x1f3ded]['id']),_0x5dba69=_0x5b71a3[_0x34166f(0x317)](L)?await F(_0x246864,ee(_0x1f5a60[_0x34166f(0x174)][_0x46eee1])+':\x20',_0x485de5,_0x110d24=>_0x110d24):void 0x0;if(!(_0x5b71a3[_0x34166f(0x317)](L)&&_0x5dba69===void 0x0))return _0x1f5a60[_0x34166f(0x175)]?{'optionIds':_0x5b71a3,..._0x5dba69!==void 0x0?{'text':_0x5dba69}:{}}:_0x5dba69!==void 0x0?{'text':_0x5dba69}:{'optionId':_0x5b71a3[0x0]};}async function Fe(_0x241a73,_0x5b97c2,_0x55d67f){const _0x342aee=_0x586b23;let _0x28587c={};for(let _0x22e249 of _0x241a73[_0x342aee(0x281)]){let _0x25ce45=_0x22e249['default']??_0x22e249[_0x342aee(0x173)],_0x5f5d8e=_0x22e249[_0x342aee(0x290)]??0x1,_0x2f4c80=_0x22e249[_0x342aee(0x2d8)]?'\x20'+E(_0x22e249[_0x342aee(0x2d8)]):'',_0x5daee3=_0x342aee(0x24e)+_0x22e249['min']+_0x342aee(0x26f)+_0x22e249[_0x342aee(0x1a5)]+(_0x5f5d8e!==0x1?_0x342aee(0x1af)+_0x5f5d8e:''),_0x1e31ff=await F(_0x5b97c2,E(_0x22e249[_0x342aee(0x1c1)])+'\x20['+_0x22e249['min']+'-'+_0x22e249[_0x342aee(0x1a5)]+_0x2f4c80+']\x20(Enter\x20for\x20'+_0x25ce45+_0x342aee(0x337),_0x55d67f,_0x1fc4aa=>{const _0x1ad529=_0x342aee;let _0x1bc9d6=Number(_0x1fc4aa);return Number[_0x1ad529(0x211)](_0x1bc9d6)&&_0x1bc9d6>=_0x22e249[_0x1ad529(0x173)]&&_0x1bc9d6<=_0x22e249[_0x1ad529(0x1a5)]&&_0x30f67f(_0x1bc9d6,_0x22e249[_0x1ad529(0x173)],_0x5f5d8e)?_0x1bc9d6:{'refused':'Enter\x20a\x20number\x20'+_0x5daee3+'.'};});_0x28587c[_0x22e249['id']]=_0x1e31ff??_0x25ce45;}return{'values':_0x28587c};}async function Me(_0x45ee86,_0x3a8d89,_0x521b71){const _0xe5efdb=_0x586b23;_0x521b71(_0x45ee86[_0xe5efdb(0x2ea)][_0xe5efdb(0x227)]((_0x5714be,_0x4d1533)=>'\x20\x20'+(_0x4d1533+0x1)+'.\x20'+E(_0x5714be[_0xe5efdb(0x1c1)]))['join']('\x0a')+'\x0a');let _0xa4e57f={};for(let _0xf45400 of _0x45ee86[_0xe5efdb(0x1fd)]){let _0x39a4b8=await F(_0x3a8d89,E(_0xf45400[_0xe5efdb(0x1c1)])+_0xe5efdb(0x2b4),_0x521b71,_0x7fb868=>{const _0x3458ec=_0xe5efdb;let _0x52e049=te(_0x7fb868,_0x45ee86[_0x3458ec(0x2ea)][_0x3458ec(0x21f)]);return _0x52e049&&_0x52e049[_0x3458ec(0x21f)]===0x1?_0x52e049[0x0]:{'refused':'Enter\x20one\x20number\x20from\x201\x20to\x20'+_0x45ee86[_0x3458ec(0x2ea)]['length']+'.'};});if(_0x39a4b8===void 0x0)continue;let _0x4cf660=_0x45ee86[_0xe5efdb(0x2ea)][_0x39a4b8],_0x566bdb={};for(let _0x3b9a14 of _0x4cf660[_0xe5efdb(0x17e)]??[]){let _0x228a8d='\x20\x20'+E(_0x3b9a14[_0xe5efdb(0x1c1)])+(_0x3b9a14[_0xe5efdb(0x289)]?'\x20(optional)':'')+':\x20',_0x1c3bb2=await F(_0x3a8d89,_0x228a8d,_0x521b71,_0x2efc1d=>_0x2efc1d);for(;_0x1c3bb2===void 0x0&&!_0x3b9a14[_0xe5efdb(0x289)];)_0x521b71(E(_0x3b9a14[_0xe5efdb(0x1c1)])+_0xe5efdb(0x1be)),_0x1c3bb2=await F(_0x3a8d89,_0x228a8d,_0x521b71,_0x2de065=>_0x2de065);_0x1c3bb2!==void 0x0&&(_0x566bdb[_0x3b9a14['id']]=_0x1c3bb2);}_0xa4e57f[_0xf45400['id']]={'bucket':_0x4cf660['id'],...Object[_0xe5efdb(0x1fa)](_0x566bdb)[_0xe5efdb(0x21f)]>0x0?{'subFields':_0x566bdb}:{}};}return Object[_0xe5efdb(0x1fa)](_0xa4e57f)[_0xe5efdb(0x21f)]>0x0?{'assignments':_0xa4e57f}:void 0x0;}async function je(_0x270329,_0x48cece,_0x300ea8){const _0x36a313=_0x586b23;if(_0x270329[_0x36a313(0x26d)]===_0x36a313(0x369))return Le(_0x270329,_0x48cece,_0x300ea8);if(_0x270329[_0x36a313(0x26d)]===_0x36a313(0x2f0))return Fe(_0x270329,_0x48cece,_0x300ea8);if(_0x270329[_0x36a313(0x26d)]===_0x36a313(0x372))return Me(_0x270329,_0x48cece,_0x300ea8);let _0x335bd0=(await _0x48cece(_0x36a313(0x2c0)))[_0x36a313(0x34b)]();return _0x335bd0===''?void 0x0:{'text':_0x335bd0};}function ne(_0x234869,_0x5be9df){return async _0x53a60f=>{const _0x2f82df=_0x33b8;let _0x2cf9b3=_0x234869();if(!_0x2cf9b3)throw new Error(_0x2f82df(0x18e));let _0x538ca2=async _0x57dca7=>{const _0x51262a=_0x2f82df;if(_0x53a60f[_0x51262a(0x1e9)][_0x51262a(0x2bc)])throw new Error(_0x51262a(0x341));let _0x54d6c3=await _0x2cf9b3[_0x51262a(0x271)](_0x57dca7,_0x53a60f[_0x51262a(0x1e9)]);if(_0x54d6c3===null)throw new Error(_0x51262a(0x1ca));return _0x54d6c3;};try{_0x5be9df('\x0a'+(_0x53a60f[_0x2f82df(0x23e)]?E(_0x53a60f['intro'])+'\x0a':''));let _0x53cba8={};for(let [_0x4dd8d3,_0x1f2498]of _0x53a60f[_0x2f82df(0x2d9)][_0x2f82df(0x194)]()){_0x5be9df('\x0a'+Ce(_0x1f2498,_0x4dd8d3+0x1,_0x53a60f['questions'][_0x2f82df(0x21f)])+'\x0a');let _0x499166=await je(_0x1f2498,_0x538ca2,_0x5be9df);_0x499166!==void 0x0&&(_0x53cba8[_0x1f2498['id']]=_0x499166);}return{'answers':_0x53cba8};}finally{_0x2cf9b3['endQuestions']();}};}import{createInterface as _0x2cf5bd}from'node:readline';var j=[_0x586b23(0x369),_0x586b23(0x1bd)];function se(_0x2793d1){const _0x156728=_0x586b23;return j[_0x156728(0x317)](_0x2793d1);}var _=class extends Error{};function Je(_0x4f12b1){const _0x2a56c4=_0x586b23;if(typeof _0x4f12b1=='string')return _0x4f12b1;if(!Array[_0x2a56c4(0x256)](_0x4f12b1))return;let _0x913429=[];for(let _0x352807 of _0x4f12b1){if(typeof _0x352807!=_0x2a56c4(0x29e)||_0x352807===null)return;let {type:_0xfd0e64,text:_0x19085a}=_0x352807;if(_0xfd0e64!==_0x2a56c4(0x369)||typeof _0x19085a!=_0x2a56c4(0x209))return;_0x913429[_0x2a56c4(0x24b)](_0x19085a);}return _0x913429[_0x2a56c4(0x204)]('\x0a');}function He(_0xf3bc91){const _0x2c03a4=_0x586b23;if(_0xf3bc91[_0x2c03a4(0x34b)]()==='')return null;let _0xec053b;try{_0xec053b=JSON[_0x2c03a4(0x380)](_0xf3bc91);}catch{throw new _(_0x2c03a4(0x2d1));}if(typeof _0xec053b!=_0x2c03a4(0x29e)||_0xec053b===null)throw new _(_0x2c03a4(0x29f));let {type:_0x362bb7,message:_0x58d688,uuid:_0x206c56}=_0xec053b;if(_0x362bb7!=='user')throw new _(_0x2c03a4(0x2bf)+JSON[_0x2c03a4(0x282)](_0x362bb7)+_0x2c03a4(0x23d));let _0x3ee4e2=Je(_0x58d688?.[_0x2c03a4(0x1cc)]);if(_0x3ee4e2===void 0x0)throw new _(_0x2c03a4(0x2fd));if(_0x3ee4e2[_0x2c03a4(0x34b)]()==='')throw new _('an\x20input\x20line\x20has\x20an\x20empty\x20message');return{'text':_0x3ee4e2,'uuid':typeof _0x206c56=='string'?_0x206c56:void 0x0};}function oe(_0x2e797b,_0xa5e2e){const _0x270187=_0x586b23;return JSON[_0x270187(0x282)]({'type':'user','message':{'role':_0x270187(0x2e6),'content':_0x2e797b['text']},'session_id':_0xa5e2e,..._0x2e797b['uuid']===void 0x0?{}:{'uuid':_0x2e797b['uuid']},'isReplay':!0x0})+'\x0a';}async function*re(_0x5066fd,_0x496ce8){let _0x32321b=_0x2cf5bd({'input':_0x5066fd,'crlfDelay':0x1/0x0});try{for await(let _0x2d8bf3 of _0x32321b){let _0x463b37;try{_0x463b37=He(_0x2d8bf3);}catch(_0x5305c0){if(!(_0x5305c0 instanceof _))throw _0x5305c0;_0x496ce8(_0x5305c0);continue;}_0x463b37&&(yield _0x463b37);}}finally{_0x32321b['close']();}}import{BUSINESS_ANALYSIS_PRELOADED_SKILLS as _0x69a9aa,DelegateAgent as _0x4a7653,cancelTurn as _0x2da8bb,InteropProcess as _0x6d6af5,complete as _0x2675ad,DEFAULT_MODEL as _0x3427db,createBackendClient as _0x328497,evaluate as _0x1d08d2,isCompletionRequestError as _0x62bf57,isEvaluationRequestError as _0x268e7e,isTranscriptionError as _0x5b467f,rerank as _0x47d4dc,transcribe as _0x5b6bde,verify as _0x29a36a,acceptDelegation as _0x34c971,cancelDelegation as _0x2f8647,claimDelegation as _0x42bffa,completeDelegation as _0x5aa6c3,createDelegation as _0x22d0ea,deleteDelegation as _0x256bdc,dismissDelegation as _0x5114aa,getSessionDelegations as _0x1cc734,isDelegationError as _0x1f33d4,listDelegations as _0x4915a8,listOrgUsers as _0x2e27ef,previewDelegation as _0x4ef627,TurnResultCollector as _0xcd2426,agentEventToJsonLine as _0x313ad8,describeBaseUrlRejection as _0x2353a5,getActivitySummary as _0x67fff5,getAuthFilePath as _0x3a3374,getByoWarnings as _0x15acbd,getCartographerAllowance as _0x54cfdd,getDailyBreakdown as _0x16a219,getLicensingSummary as _0x43b17c,getMonthlySpending as _0x71e957,isOutputFormat as _0xe02066,isCloudBaseUrl as _0x3a6f9c,isSafeProjectFolderSegment as _0x3f76d9,listModels as _0x3fe691,listSessions as _0x199dc9,getSession as _0x236eb7,renameSession as _0x4dfa5f,deleteSession as _0x356404,deleteSessionTaskLog as _0x231b8e,forkSession as _0x4c9466,isBackendRequestError as _0x1fbcf7,MAX_SESSION_PAGE_SIZE as _0x4ff40b,listTenants as _0x139acf,loadAndRefreshAuth as _0x3b8b30,loadAndRefreshSdkLogin as _0x1e69a0,parsePlatformBaseUrl as _0x3adab1,resolveBackendUrl as _0x2bb30b,runHealthCheck as _0x37e4f6,runHostCommand as _0x2286c4,runLoginFlow as _0x1e98a3,runTurnForResult as _0xb41006,saveAuthData as _0x4cbb1e,switchTenant as _0x7d1ddd,toJsonLine as _0x1b33c8,ENV_TO_CLOUD as _0x4fc387,OUTPUT_FORMATS as _0x9f4db5,isRunStopNotice as _0x4b5374,extractActionableErrorText as _0x21aa46}from'@uipath/delegate-sdk';function ie(_0x2d0ea9){const _0x1a9636=_0x586b23;let {input:_0x140993,getAgent:_0x3e6a4b,replay:_0x69c787,onEvent:_0x4c8235,write:_0x38e4c5,warn:_0x3a5922,isRunStopNotice:_0x60e6a9,actionableErrorText:_0x3ed0d0}=_0x2d0ea9,_0x46f74b=0x0,_0x2052f7=0x0,_0x237665=Promise['resolve'](),_0x5546af=!0x1,_0x193021=()=>{},_0x5256de=new Promise(_0x18ad19=>{_0x193021=_0x18ad19;}),_0x12ce9f=[],_0x1bd6f5=_0x4c8235(_0x4d8ed5=>{const _0x28c5a8=_0x33b8;_0x4d8ed5[_0x28c5a8(0x26d)]===_0x28c5a8(0x279)&&(_0x193021(),_0x12ce9f[_0x28c5a8(0x373)]()?.());}),_0x4de54a=_0x38a7b9=>{const _0x944523=_0x33b8;_0x69c787&&_0x38e4c5(oe(_0x38a7b9,_0x3e6a4b()[_0x944523(0x2fe)]()));},_0x35d20e=(async()=>{const _0xa25fd3=_0x33b8;await _0x5256de;for await(let _0x4bf584 of _0x140993[_0xa25fd3(0x302)]){if(_0x5546af)return;_0x46f74b===0x0&&(_0x2052f7=_0x3e6a4b()[_0xa25fd3(0x33b)]()[_0xa25fd3(0x21f)]),_0x46f74b++;let _0xbb09a5=new Promise(_0x4ca08f=>{const _0x724cb2=_0xa25fd3;_0x12ce9f[_0x724cb2(0x24b)](()=>{_0x4de54a(_0x4bf584),_0x4ca08f();});}),_0x2e8042=()=>{const _0x595f76=_0xa25fd3;_0x46f74b--,_0x12ce9f[_0x595f76(0x235)]();},_0x4bc2bb=_0x3e6a4b()[_0xa25fd3(0x315)](_0x4bf584['text']);_0x237665=_0x4bc2bb[_0xa25fd3(0x382)](()=>{});try{await _0x4bc2bb?await Promise[_0xa25fd3(0x325)]([_0xbb09a5,_0x3e6a4b()[_0xa25fd3(0x1ad)]()]):(_0x2e8042(),_0x3a5922(_0xa25fd3(0x331)));}catch(_0x29f76a){_0x2e8042(),_0x3a5922(_0xa25fd3(0x268)+(_0x29f76a instanceof Error?_0x29f76a[_0xa25fd3(0x1f5)]:String(_0x29f76a))+'\x0a');}}})()[_0x1a9636(0x382)](_0x46c371=>{_0x3a5922('Steering\x20input\x20stopped:\x20'+(_0x46c371 instanceof Error?_0x46c371['message']:String(_0x46c371))+'\x0a');});return{'settle':async _0x5d9a9f=>{const _0x46d6ea=_0x1a9636;if(await _0x237665,_0x46f74b===0x0)return _0x5d9a9f;await _0x3e6a4b()['waitForIdle']();for(let _0x48a37f of _0x12ce9f)_0x48a37f();_0x12ce9f=[];let _0x2950bf=_0x3e6a4b()[_0x46d6ea(0x33b)]()[_0x46d6ea(0x30c)](_0x2052f7)[_0x46d6ea(0x2e7)](_0x425cb2=>_0x425cb2[_0x46d6ea(0x267)]===_0x46d6ea(0x253)||_0x60e6a9(_0x425cb2)||_0x425cb2[_0x46d6ea(0x26d)]==='ai'&&_0x425cb2[_0x46d6ea(0x267)]!=='agent_thought'&&_0x425cb2[_0x46d6ea(0x267)]!==_0x46d6ea(0x33f)&&!!_0x425cb2[_0x46d6ea(0x1cc)]);if(!_0x2950bf)return{..._0x5d9a9f,'failed':!0x0,'text':_0x46d6ea(0x26b)};let _0x3fe06f=_0x2950bf[_0x46d6ea(0x267)]===_0x46d6ea(0x253);return typeof _0x2950bf['content']!=_0x46d6ea(0x209)?{..._0x5d9a9f,'failed':_0x3fe06f}:{..._0x5d9a9f,'failed':_0x3fe06f,'text':_0x3fe06f?_0x3ed0d0(_0x2950bf[_0x46d6ea(0x1cc)]):_0x2950bf['content']};},'stop':()=>{const _0x12c3a3=_0x1a9636;_0x5546af=!0x0,_0x1bd6f5(),_0x140993[_0x12c3a3(0x18c)]();}};}var Gt=[_0x586b23(0x309),_0x586b23(0x19e),'models',_0x586b23(0x351),'logout',_0x586b23(0x27e),_0x586b23(0x22a),_0x586b23(0x2b2),_0x586b23(0x313),_0x586b23(0x259),_0x586b23(0x25f),_0x586b23(0x29a),_0x586b23(0x23a),_0x586b23(0x2cc),'delegations',_0x586b23(0x36d)],ue=['',_0x586b23(0x225),_0x586b23(0x27e),_0x586b23(0x22a),'sessions','usage','evaluate','rerank',_0x586b23(0x29a),_0x586b23(0x23a),'transcribe','delegations','org-users'],pe=['low',_0x586b23(0x198),_0x586b23(0x34f),'xhigh',_0x586b23(0x1a5)],Wt=_0x69a9aa,B=_0x586b23(0x34e);function b(_0x48c3d5,_0x2f0cba,_0xf9e36b,_0x3cddce){const _0x4cd0c9=_0x586b23;let _0x3254dc=_0x48c3d5[_0x2f0cba];return(!_0x3254dc||_0x3254dc[_0x4cd0c9(0x21f)]>0x1&&_0x3254dc[_0x4cd0c9(0x23c)]('-'))&&(console['error'](_0xf9e36b+_0x4cd0c9(0x262)+_0x3cddce+'.'),process[_0x4cd0c9(0x181)](0x2)),_0x3254dc;}function K(_0x269f98,_0x17a883,_0x255d53,_0x48aceb){const _0x53886d=_0x586b23;let _0xf65a81=b(_0x269f98,_0x17a883,_0x255d53,'a\x20number'),_0x79301e=Number(_0xf65a81);return(!/^\d+$/['test'](_0xf65a81)||_0x79301e<0x1||!Number[_0x53886d(0x255)](_0x79301e)||_0x48aceb!==void 0x0&&_0x79301e>_0x48aceb)&&(console['error'](_0x255d53+_0x53886d(0x371)+(_0x48aceb===void 0x0?_0x53886d(0x305):'from\x201\x20to\x20'+_0x48aceb)+_0x53886d(0x1e6)+_0xf65a81+'.'),process['exit'](0x2)),_0x79301e;}function Kt(_0x3995ac){const _0x3a9550=_0x586b23;let _0x56a29c={'subcommand':'','prompt':'','print':!0x1,'keepAlive':!0x1,'cleanup':!0x1,'headless':!0x1,'noComputerUse':!0x1,'cartographer':!0x1,'noConnections':!0x1,'noSecurity':!0x1,'noMemory':!0x1,'taskAutomation':!0x1,'quiet':!0x1,'verbose':!0x1,'outputFormat':'text','inputFormat':_0x3a9550(0x369),'replayUserMessages':!0x1,'preloadSkills':[],'attachments':[],'skipEnvCheck':!0x1,'includeSubAgents':!0x1,'operands':[],'help':!0x1,'version':!0x1};Gt[_0x3a9550(0x317)](_0x3995ac[0x0])&&(_0x56a29c['subcommand']=_0x3995ac[0x0],_0x3995ac=_0x3995ac[_0x3a9550(0x30c)](0x1));let _0x42e7b6=[];for(let _0x228af5=0x0;_0x228af5<_0x3995ac['length'];_0x228af5++){let _0x8c2d25=_0x3995ac[_0x228af5];switch(_0x8c2d25){case'--print':case'-p':_0x56a29c[_0x3a9550(0x19d)]=!0x0;break;case _0x3a9550(0x339):_0x56a29c[_0x3a9550(0x280)]=!0x0;break;case'--cleanup':_0x56a29c[_0x3a9550(0x251)]=!0x0;break;case'--headless':_0x56a29c[_0x3a9550(0x2b9)]=!0x0;break;case _0x3a9550(0x25c):_0x56a29c[_0x3a9550(0x1ba)]=!0x0;break;case _0x3a9550(0x35b):_0x56a29c[_0x3a9550(0x34e)]=!0x0,_0x56a29c[_0x3a9550(0x1ba)]=!0x0,_0x56a29c[_0x3a9550(0x26e)][_0x3a9550(0x24b)](...Wt);break;case _0x3a9550(0x36a):_0x56a29c[_0x3a9550(0x2a0)]=!0x0;break;case'--no-security':_0x56a29c[_0x3a9550(0x1f3)]=!0x0;break;case _0x3a9550(0x294):_0x56a29c[_0x3a9550(0x1da)]=!0x0;break;case _0x3a9550(0x334):_0x56a29c[_0x3a9550(0x1cd)]=!0x0;break;case _0x3a9550(0x1f9):case'-q':_0x56a29c['quiet']=!0x0;break;case _0x3a9550(0x307):_0x56a29c[_0x3a9550(0x2d7)]=!0x0;break;case _0x3a9550(0x340):_0x56a29c[_0x3a9550(0x1d1)]=_0x3995ac[++_0x228af5];break;case _0x3a9550(0x1c7):_0x56a29c[_0x3a9550(0x1db)]=_0x3995ac[++_0x228af5];break;case _0x3a9550(0x27c):_0x56a29c[_0x3a9550(0x18d)]=_0x3995ac[++_0x228af5];break;case _0x3a9550(0x2c6):_0x56a29c[_0x3a9550(0x1e0)]=_0x3995ac[++_0x228af5];break;case _0x3a9550(0x2be):_0x56a29c['workerId']=_0x3995ac[++_0x228af5];break;case _0x3a9550(0x346):_0x56a29c[_0x3a9550(0x26e)][_0x3a9550(0x24b)](b(_0x3995ac,++_0x228af5,_0x8c2d25,_0x3a9550(0x35f)));break;case'--project':{let _0x347055=b(_0x3995ac,++_0x228af5,_0x8c2d25,_0x3a9550(0x18f));_0x3f76d9(_0x347055)||(console[_0x3a9550(0x1ce)](_0x3a9550(0x1e4)+_0x347055+'\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[_0x3a9550(0x181)](0x2)),_0x56a29c[_0x3a9550(0x31d)]=_0x347055;break;}case'--vertical':_0x56a29c[_0x3a9550(0x32d)]=b(_0x3995ac,++_0x228af5,_0x8c2d25,_0x3a9550(0x37d));break;case _0x3a9550(0x196):{let _0x3b94b0=b(_0x3995ac,++_0x228af5,_0x8c2d25,_0x3a9550(0x27b)+_0x9f4db5[_0x3a9550(0x204)](_0x3a9550(0x2ab))+')');_0xe02066(_0x3b94b0)||(console[_0x3a9550(0x1ce)](_0x3a9550(0x2f7)+_0x3b94b0+_0x3a9550(0x298)+_0x9f4db5[_0x3a9550(0x204)](_0x3a9550(0x2ab))+'.'),process['exit'](0x2)),_0x56a29c[_0x3a9550(0x19b)]=_0x3b94b0;break;}case _0x3a9550(0x250):{let _0x2ce101=b(_0x3995ac,++_0x228af5,_0x8c2d25,_0x3a9550(0x27b)+j['join'](_0x3a9550(0x2ab))+')');se(_0x2ce101)||(console[_0x3a9550(0x1ce)]('Invalid\x20--input-format:\x20'+_0x2ce101+_0x3a9550(0x298)+j[_0x3a9550(0x204)](_0x3a9550(0x2ab))+'.'),process[_0x3a9550(0x181)](0x2)),_0x56a29c[_0x3a9550(0x2e8)]=_0x2ce101;break;}case'--replay-user-messages':_0x56a29c[_0x3a9550(0x36c)]=!0x0;break;case _0x3a9550(0x187):_0x56a29c[_0x3a9550(0x1f2)]=b(_0x3995ac,++_0x228af5,_0x8c2d25,_0x3a9550(0x2c1));break;case _0x3a9550(0x319):_0x56a29c[_0x3a9550(0x1bf)]=K(_0x3995ac,++_0x228af5,_0x8c2d25);break;case _0x3a9550(0x224):_0x56a29c['limit']=K(_0x3995ac,++_0x228af5,_0x8c2d25,_0x4ff40b);break;case _0x3a9550(0x1ff):_0x56a29c[_0x3a9550(0x24d)]=!0x0;break;case _0x3a9550(0x274):_0x56a29c['jsonSchemaPath']=b(_0x3995ac,++_0x228af5,_0x8c2d25,_0x3a9550(0x1a2));break;case _0x3a9550(0x2dc):{let _0x531ba2=_0x2e69e0['resolve'](process[_0x3a9550(0x2fc)](),b(_0x3995ac,++_0x228af5,_0x8c2d25,_0x3a9550(0x208)));_0x5f55e2[_0x3a9550(0x1b4)](_0x531ba2)||(console[_0x3a9550(0x1ce)](_0x3a9550(0x240)+_0x531ba2),process[_0x3a9550(0x181)](0x2)),_0x56a29c[_0x3a9550(0x367)][_0x3a9550(0x24b)](_0x531ba2);break;}case _0x3a9550(0x1d7):_0x56a29c[_0x3a9550(0x257)]=b(_0x3995ac,++_0x228af5,_0x8c2d25,'a\x20turn\x20id');break;case'--to':_0x56a29c[_0x3a9550(0x270)]=b(_0x3995ac,++_0x228af5,_0x8c2d25,_0x3a9550(0x2df));break;case _0x3a9550(0x197):_0x56a29c[_0x3a9550(0x1f7)]=b(_0x3995ac,++_0x228af5,_0x8c2d25,_0x3a9550(0x24c));break;case _0x3a9550(0x2ba):_0x56a29c['days']=K(_0x3995ac,++_0x228af5,_0x8c2d25,0x16d);break;case'--working-dir':_0x56a29c[_0x3a9550(0x296)]=_0x2e69e0[_0x3a9550(0x245)](process[_0x3a9550(0x2fc)](),b(_0x3995ac,++_0x228af5,_0x8c2d25,_0x3a9550(0x2ec)));break;case _0x3a9550(0x261):_0x56a29c[_0x3a9550(0x378)]=_0x2e69e0[_0x3a9550(0x245)](process['cwd'](),b(_0x3995ac,++_0x228af5,_0x8c2d25,_0x3a9550(0x2ec)));break;case _0x3a9550(0x27d):{let _0x50f128=b(_0x3995ac,++_0x228af5,_0x8c2d25,_0x3a9550(0x220));pe[_0x3a9550(0x317)](_0x50f128)||(console[_0x3a9550(0x1ce)](_0x3a9550(0x237)+_0x50f128+_0x3a9550(0x298)+pe['join'](_0x3a9550(0x2ab))+'.'),process[_0x3a9550(0x181)](0x2)),_0x56a29c['effort']=_0x50f128;break;}case _0x3a9550(0x20d):{let _0x3d1448=_0x3995ac[++_0x228af5];(!_0x3d1448||_0x3d1448[_0x3a9550(0x23c)]('--'))&&(console['error'](_0x3a9550(0x228)),process['exit'](0x2)),_0x56a29c[_0x3a9550(0x19e)]=_0x3d1448;break;}case _0x3a9550(0x308):{let _0x432030=_0x3995ac[++_0x228af5];[_0x3a9550(0x1b5),_0x3a9550(0x190),'production',_0x3a9550(0x2af)][_0x3a9550(0x317)](_0x432030)||(console[_0x3a9550(0x1ce)](_0x3a9550(0x22f)+_0x432030+_0x3a9550(0x193)),process[_0x3a9550(0x181)](0x2)),_0x56a29c[_0x3a9550(0x1e2)]=_0x432030;break;}case'--url':case _0x3a9550(0x353):{let _0x4a0336=b(_0x3995ac,++_0x228af5,_0x8c2d25,_0x3a9550(0x1a3)),_0x3df3d9=_0x3adab1(_0x4a0336);if(_0x3df3d9['ok']===!0x1){console['error'](_0x2353a5(_0x4a0336,_0x3df3d9[_0x3a9550(0x370)])),process[_0x3a9550(0x181)](0x2);break;}_0x56a29c[_0x3a9550(0x1c8)]=_0x3df3d9[_0x3a9550(0x320)];break;}case _0x3a9550(0x239):_0x56a29c['skipEnvCheck']=!0x0;break;case'-h':case'--help':_0x56a29c[_0x3a9550(0x35d)]=!0x0;break;case'-v':case'--version':_0x56a29c[_0x3a9550(0x304)]=!0x0;break;default:_0x8c2d25[_0x3a9550(0x23c)]('--')&&(console['error']('Unknown\x20flag:\x20'+_0x8c2d25),process[_0x3a9550(0x181)](0x2)),_0x42e7b6[_0x3a9550(0x24b)](_0x8c2d25);}}return _0x56a29c[_0x3a9550(0x19e)]!==void 0x0&&_0x56a29c[_0x3a9550(0x322)]!==_0x3a9550(0x309)&&(console['error'](_0x3a9550(0x1c3)),process[_0x3a9550(0x181)](0x2)),_0x56a29c[_0x3a9550(0x1c8)]!==void 0x0&&_0x56a29c[_0x3a9550(0x1e2)]!==void 0x0&&(console[_0x3a9550(0x1ce)](_0x3a9550(0x183)),process[_0x3a9550(0x181)](0x2)),_0x56a29c[_0x3a9550(0x1c8)]!==void 0x0&&_0x56a29c[_0x3a9550(0x322)]!=='login'&&(console[_0x3a9550(0x1ce)](_0x3a9550(0x1d9)),process[_0x3a9550(0x181)](0x2)),_0x56a29c['days']!==void 0x0&&_0x56a29c[_0x3a9550(0x322)]!==_0x3a9550(0x313)&&(console[_0x3a9550(0x1ce)](_0x3a9550(0x218)),process[_0x3a9550(0x181)](0x2)),_0x56a29c['jsonSchemaPath']!==void 0x0&&(_0x56a29c[_0x3a9550(0x322)]!==_0x3a9550(0x23a)&&_0x56a29c[_0x3a9550(0x322)]!==''||_0x56a29c['cleanup'])&&(console[_0x3a9550(0x1ce)]('--json-schema\x20applies\x20to\x20prompts\x20and\x20to\x20`delegate-cli\x20complete`\x20only.'),process[_0x3a9550(0x181)](0x2)),_0x56a29c[_0x3a9550(0x367)][_0x3a9550(0x21f)]>0x0&&(_0x56a29c['subcommand']!==''||_0x56a29c[_0x3a9550(0x251)])&&(console['error']('--attach\x20applies\x20to\x20prompts\x20only.'),process[_0x3a9550(0x181)](0x2)),_0x56a29c[_0x3a9550(0x1cd)]&&(_0x56a29c[_0x3a9550(0x322)]!==''||_0x56a29c[_0x3a9550(0x251)])&&(console['error'](_0x3a9550(0x275)),process[_0x3a9550(0x181)](0x2)),_0x56a29c[_0x3a9550(0x1cd)]&&(_0x56a29c[_0x3a9550(0x2b9)]||_0x56a29c[_0x3a9550(0x1ba)]||_0x56a29c[_0x3a9550(0x32d)]?.[_0x3a9550(0x34b)]()===B)&&(console[_0x3a9550(0x1ce)](_0x3a9550(0x336)),process[_0x3a9550(0x181)](0x2)),_0x56a29c[_0x3a9550(0x34e)]&&(_0x56a29c['vertical']!==void 0x0&&_0x56a29c[_0x3a9550(0x32d)][_0x3a9550(0x34b)]()!==B&&(console['error'](_0x3a9550(0x202)+B+_0x3a9550(0x352)+_0x56a29c[_0x3a9550(0x32d)]+_0x3a9550(0x2ae)),process[_0x3a9550(0x181)](0x2)),_0x56a29c['vertical']=B),_0x56a29c['skipEnvCheck']&&_0x56a29c[_0x3a9550(0x322)]!=='login'&&(console['error']('--skip-env-check\x20applies\x20to\x20`delegate-cli\x20login`\x20only.'),process[_0x3a9550(0x181)](0x2)),_0x56a29c[_0x3a9550(0x19b)]!==_0x3a9550(0x369)&&!ue['includes'](_0x56a29c[_0x3a9550(0x322)])&&(console[_0x3a9550(0x1ce)](_0x3a9550(0x1b7)+_0x56a29c['outputFormat']+'\x20applies\x20to\x20prompts\x20and\x20to\x20these\x20commands\x20only:\x20'+ue[_0x3a9550(0x286)](Boolean)[_0x3a9550(0x204)](',\x20')+'.'),process[_0x3a9550(0x181)](0x2)),(_0x56a29c[_0x3a9550(0x2e8)]!=='text'||_0x56a29c['replayUserMessages'])&&_0x56a29c[_0x3a9550(0x322)]!==''&&(console['error'](_0x3a9550(0x264)),process[_0x3a9550(0x181)](0x2)),_0x56a29c['replayUserMessages']&&_0x56a29c[_0x3a9550(0x2e8)]!=='stream-json'&&(console[_0x3a9550(0x1ce)](_0x3a9550(0x2aa)),process[_0x3a9550(0x181)](0x2)),_0x56a29c['inputFormat']==='stream-json'&&_0x56a29c[_0x3a9550(0x19b)]!==_0x3a9550(0x1bd)&&(console[_0x3a9550(0x1ce)](_0x3a9550(0x234)),process[_0x3a9550(0x181)](0x2)),(_0x56a29c['page']!==void 0x0||_0x56a29c[_0x3a9550(0x1f1)]!==void 0x0||_0x56a29c['includeSubAgents'])&&_0x56a29c[_0x3a9550(0x322)]!==_0x3a9550(0x2b2)&&(console[_0x3a9550(0x1ce)]('--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`delegate-cli\x20sessions`\x20only.'),process[_0x3a9550(0x181)](0x2)),(_0x56a29c['delegateTo']!==void 0x0||_0x56a29c[_0x3a9550(0x1f7)]!==void 0x0)&&_0x56a29c[_0x3a9550(0x322)]!==_0x3a9550(0x295)&&(console['error'](_0x3a9550(0x347)),process[_0x3a9550(0x181)](0x2)),_0x56a29c['turnId']!==void 0x0&&_0x56a29c[_0x3a9550(0x322)]!==_0x3a9550(0x2b2)&&(console[_0x3a9550(0x1ce)](_0x3a9550(0x2a8)),process[_0x3a9550(0x181)](0x2)),_0x56a29c['preloadSkills']=[...new Set(_0x56a29c[_0x3a9550(0x26e)])],_0x56a29c[_0x3a9550(0x21b)]=_0x42e7b6,_0x56a29c[_0x3a9550(0x32e)]=_0x42e7b6[_0x3a9550(0x204)]('\x20'),_0x56a29c['inputFormat']===_0x3a9550(0x1bd)&&_0x56a29c['prompt']!==''&&(console['error'](_0x3a9550(0x314)),process[_0x3a9550(0x181)](0x2)),_0x56a29c;}var O=_0x36562b=>{const _0x1241c3=_0x586b23;process['stdout'][_0x1241c3(0x1e8)](_0x36562b);};function _0x450d(){const _0x172ad8=['delegations\x20dismiss\x20<delegation-id>','Session\x20\x20\x20\x20\x20\x20\x20','\x20(estimated\x20$','all','\x20PU\x20beyond\x20quota','rename','user','findLast','inputFormat','You>\x20','buckets','input','a\x20directory\x20path','8608670cFeeYf','abort','\x20\x20\x20\x20','numeric','\x0aStopping…\x20(Ctrl+C\x20again\x20to\x20force\x20exit)\x0a','complete\x20needs\x20--json-schema\x20<file>:\x20delegate-cli\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22.','then','create','delegation','toUpperCase','Invalid\x20--output-format:\x20','mode','Spending:\x20\x20\x20\x20\x20$','\x20days:\x20','40nzQvDm','cwd','an\x20input\x20line\x20has\x20no\x20message.content,\x20a\x20string\x20or\x20a\x20list\x20of\x20text\x20blocks','getSessionId','cancelled','model_id','hide','messages','extra_pool_consumed_pu','version','1\x20or\x20more','UPDATED','--verbose','--env','login','Deployment:\x20\x20\x20','No\x20delegations.\x0a','slice','effort','Unknown\x20sessions\x20action:\x20','Date\x20\x20\x20\x20\x20\x20\x20\x20Token\x20units\x20\x20Prompt\x20tokens\x20\x20Completion\x20tokens','end','2321104lwFQra','delegations\x20accept\x20<delegation-id>','usage','--input-format\x20stream-json\x20reads\x20the\x20prompt\x20from\x20stdin:\x20pass\x20no\x20prompt\x20argument.','steer','Model\x20','includes','total_prompt_tokens','--page','data','initialize','\x20(cancel\x20with:\x20delegate-cli\x20sessions\x20cancel\x20','projectId','every','\x20in\x20progress\x20on\x20session\x20','baseUrl','Title\x20\x20\x20\x20\x20\x20\x20\x20\x20','subcommand','.\x20Use\x20`delegate-cli\x20usage`,\x20`usage\x20activity`\x20or\x20`usage\x20daily`.','skip','race','floor','estimated_cost_usd','Session\x20','\x20\x20\x20\x20BYO\x20warning:\x20','isInteger','description','limit_enabled','vertical','prompt','done','delegations\x20delete\x20<delegation-id>','A\x20steering\x20message\x20arrived\x20after\x20the\x20turn\x20ended:\x20not\x20read.\x0a','SIGINT','setPrompt','--task-automation','delegations\x20list\x20<backend-project-id>','--task-automation\x20needs\x20computer\x20use:\x20the\x20task\x20log\x20is\x20written\x20by\x20the\x20UI-automation\x20tools.\x20Drop\x20--headless,\x20--no-computer-use,\x20--cartographer\x20and\x20--vertical\x20cartographer.','):\x20','isError','--keep-alive','complete\x20needs\x20a\x20prompt:\x20delegate-cli\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22,\x20or\x20-\x20to\x20read\x20stdin.','getSessionMessages','isTTY','probability','\x20—\x20sign\x20out\x20in\x20the\x20Delegate\x20app\x20to\x20clear\x20that.','followUpsRenderer','--backend','The\x20turn\x20was\x20cancelled.','Removed\x20','unknown',',\x20whose\x20tenant\x20is\x20chosen\x20in\x20the\x20app.\x20Run\x20`delegate-cli\x20login\x20--env\x20<env>`\x20for\x20a\x20CLI\x20login\x20of\x20your\x20own.','userId','--preload-skill','--to\x20and\x20--summary\x20apply\x20to\x20`delegate-cli\x20delegations\x20create`\x20only.','lastType','Continue\x20it\x20with:\x20delegate-cli\x20--session\x20','\x20\x22<prompt>\x22\x0aAnswer\x20with:\x20delegate-cli\x20delegations\x20complete\x20','trim','finish','auth','cartographer','high','Last\x20','host','\x20vertical,\x20so\x20it\x20cannot\x20run\x20as\x20--vertical\x20','--authority','spawn','Base\x20URL:\x20\x20\x20\x20\x20','No\x20turn\x20','tokenExpiresAt','\x20from\x20','850869SJXrTl','stdout','--cartographer','now','help','\x20PU\x20used','a\x20skill\x20name','lockReason','settle','[saved\x20login]\x20Backend\x20URL:\x20','No\x20one\x20matches\x20\x22','\x27\x20is\x20empty.','🔧\x20','utf-8','attachments','No\x20usage\x20in\x20the\x20last\x20','text','--no-connections','Session:\x20','replayUserMessages','org-users','alreadyCompleted','package.json','rejection','\x20must\x20be\x20a\x20whole\x20number\x20','bucket','shift','Tenant:\x20\x20\x20\x20\x20\x20\x20','\x20\x20from\x20','thinking','status','bundledSkillsPath','\x20(in\x20','pct_used','transcribe:\x20cannot\x20read\x20','response','a\x20vertical\x20id','Enter\x20numbers\x20from\x201\x20to\x20','\x20or\x20your\x20own\x20answer','parse','Delegation\x20\x20\x20\x20','catch','title','14mSjSiC','fork','off','deepLink',').\x0a','bind','Licensing:\x20\x20\x20\x20no\x20licensing\x20quota\x20applies','auth.json','min','options','multiSelect','STATUS','origin','file','\x20is\x20not\x20valid\x20JSON\x20(','\x0a🤔\x20','kind','304068ATWIrs','Claimed\x20from\x20delegation\x20','subFields','expiresAt','tenantName','exit','token_units','Pass\x20either\x20--env\x20(a\x20named\x20cloud)\x20or\x20--url\x20(any\x20other\x20deployment),\x20not\x20both.','readFileSync','from','Tokens:\x20','--session','More:\x20delegate-cli\x20sessions\x20--page\x20','return','toFixed','name','close','runnerUrl','There\x20is\x20no\x20terminal\x20input\x20to\x20answer\x20from.','a\x20project\x20id','staging','\x20(stdin\x20was\x20empty)','\x20must\x20be\x20a\x20JSON\x20object.','.\x20Use\x20alpha\x20|\x20staging\x20|\x20production\x20|\x20localhost.','entries','Deleted\x20session\x20','--output-format','--summary','medium','session_consumed_pu','tenantId','outputFormat','transcribe\x20needs\x20audio:\x20delegate-cli\x20transcribe\x20<file>,\x20or\x20-\x20to\x20read\x20stdin.','print','tenant','task','oneTurn','--days\x20applies\x20to\x20`delegate-cli\x20usage\x20activity|daily`;\x20the\x20summary\x20covers\x20the\x20current\x20month.','a\x20JSON\x20schema\x20file','a\x20deployment\x20URL,\x20e.g.\x20https://automationsuite.contoso.com','prompt_tokens','max','Bearer\x20','\x20sessions\x20on\x20','Switch\x20with:\x20delegate-cli\x20tenant\x20<name>\x0a',',\x20or\x20holds\x20no\x20message\x20','structured','days','\x0aUse\x20with:\x20delegate-cli\x20--model\x20<id>\x20\x22<prompt>\x22\x0a','waitForIdle','No\x20auth\x20found.\x20Set\x20AUTH_TOKEN\x20(or\x20AUTH_TOKEN_FILE)/TENANT_ID/ORG_ID\x20env\x20vars,\x20or\x20run\x20`delegate-cli\x20login\x20--env\x20<alpha|staging|production>`\x20(or\x20`--url\x20<deployment-url>`\x20for\x20Automation\x20Suite)\x20first.','\x20in\x20steps\x20of\x20','displayName','Created\x20delegation\x20','Organization\x20\x20','\x20<title>','existsSync','alpha','answers','--output-format\x20','\x20(resets\x20','--to,\x20--summary\x20and\x20--session\x20apply\x20to\x20`delegate-cli\x20delegations\x20create`\x20only.','noComputerUse','stderr','detail','stream-json','\x20is\x20required.\x0a','page','rmSync','label','\x20(confidence\x20','--tenant\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Switch\x20tenants\x20with:\x20delegate-cli\x20tenant\x20<name>','Rubric\x20','tool','session_start','--model','url','quiet','Input\x20closed\x20before\x20the\x20question\x20was\x20answered.','claim','content','taskAutomation','error','sourceTitle','Enter\x20sends\x20a\x20message.\x20/exit\x20or\x20EOF\x20exits;\x20Ctrl+C\x20stops\x20and\x20exits.\x0a','backendUrl','From\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','No\x20CLI\x20login\x20found.\x20Run\x20`delegate-cli\x20login\x20--env\x20<alpha|staging|production>`\x20first.','accept','monthly_spend_usd','✓\x20Done\x0a','--turn','updatedAt','--url\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Other\x20commands\x20follow\x20the\x20saved\x20login,\x20or\x20--backend\x20<url>.','noMemory','model','\x20not\x20found,\x20has\x20no\x20messages','argv','65riWJPv','erase','interopPath','Tenants\x20of\x20','env','structuredError','Invalid\x20--project:\x20\x22','models_breakdown',',\x20got\x20','daily_usage','write','signal','Cost:\x20\x20\x20$','the\x20JSON\x20schema','The\x20saved\x20CLI\x20login\x20could\x20not\x20be\x20refreshed.\x20Run\x20`delegate-cli\x20login`\x20again.','userinput','choice\x20','\x20\x20\x20\x20Not\x20available\x20on\x20this\x20plan','index','limit','sessionId','noSecurity','\x20(current)','message','Already\x20answered','contextSummary','Turn:\x20','--quiet','keys','cancel','log','items','>.\x0a','--include-subagents','add','dismiss','--cartographer\x20runs\x20the\x20','jsonSchemaPath','join','alreadyAccepted','email','line','a\x20file\x20path','string','Answered','dismissed','%\x20of\x20','--tenant','resume',':\x20cannot\x20read\x20the\x20JSON\x20schema\x20(','Unknown\x20delegations\x20action:\x20','isFinite','delegations\x20show\x20<delegation-id|delegate://delegation/…>','delegationId','skipEnvCheck','workerId','completion_tokens','Usage:\x20delegate-cli\x20sessions\x20[list]\x20[--page\x20N]\x20[--limit\x20N]\x20[--include-subagents]','--days\x20applies\x20to\x20`delegate-cli\x20usage\x20activity|daily`\x20only.','Number','delegate-cli','operands','Your\x20answer\x20(Enter\x20to\x20skip):\x20','list','\x20\x20TASK\x0a','length','an\x20effort\x20tier','period_days','ASSIGNEE','parentSessionId','--limit','models','total_tokens','map','--tenant\x20requires\x20a\x20tenant\x20name.','\x20of\x20a\x20$','check','forEach','test','Something\x20else','delegations\x20claim\x20<delegation-id|delegate://delegation/…>','Invalid\x20--env:\x20','\x20<id>','pause','refused','show','--input-format\x20stream-json\x20needs\x20--output-format\x20stream-json:\x20the\x20steering\x20messages\x20are\x20answered\x20on\x20stdout.','pop','.aria','Invalid\x20--effort:\x20','assignedUser','--skip-env-check','complete','assignedUserEmail','startsWith',',\x20not\x20\x22user\x22','intro','\x20tokens\x0a','--attach:\x20no\x20such\x20file\x20or\x20folder:\x20','split','No\x20sessions\x20on\x20page\x20','\x20\x22<prompt>\x22\x0a','No\x20answers\x20awaiting\x20acceptance.\x0a','resolve','delegations\x20complete\x20<delegation-id>\x20\x22<answer>\x22|-','stdin','--session\x20applies\x20to\x20the\x20`delegate-cli\x20usage`\x20summary\x20only.','Interop\x20stopped\x20(if\x20it\x20was\x20running).','active_days','push','a\x20briefing\x20text','includeSubAgents','from\x20','deployment','--input-format','cleanup','\x20\x20(input\x20#','actionable_error','/exit','isSafeInteger','isArray','turnId','\x22.\x0a','evaluate','Task\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','total_sessions','--no-computer-use','\x20-\x20','exitCode','rerank','next','--skills-path','\x20requires\x20','Delegated\x20','--input-format\x20and\x20--replay-user-messages\x20apply\x20to\x20prompts\x20only.','once','\x20days.\x0a','widget','A\x20steering\x20message\x20was\x20not\x20sent:\x20','Auth\x20comes\x20from\x20AUTH_TOKEN/TENANT_ID/ORG_ID\x20—\x20set\x20TENANT_ID\x20and\x20TENANT_SLUG\x20to\x20change\x20the\x20tenant.','Structured\x20output\x20failed:\x20','The\x20steering\x20message\x20was\x20not\x20answered:\x20its\x20turn\x20did\x20not\x20run\x20or\x20added\x20no\x20reply.','environment\x20variables\x20(AUTH_TOKEN/TENANT_ID/ORG_ID)','type','preloadSkills','\x20to\x20','delegateTo','readLine','Cancel\x20requested\x20for\x20turn\x20','Accepted','--json-schema','--task-automation\x20applies\x20to\x20prompts\x20only.','):\x0a\x0a','accessToken','delete','turn_start','date','a\x20format\x20(','--runner-url','--effort','whoami','No\x20CLI\x20login\x20found.\x20Note:\x20the\x20CLI\x20is\x20currently\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20','keepAlive','fields','stringify','byoWarning','total_cost_usd','UiPath\x20Cloud','filter','Tenant:\x20','Numbers,\x20separated\x20by\x20commas\x20(Enter\x20to\x20skip):\x20','optional','\x20active\x20days','1188384jKiqtr','Cartographer:\x20','Tenant\x20not\x20switched:\x20could\x20not\x20write\x20','pendingResults','orgLogicalName','step','Organization:\x20','daily','tool_call','--no-memory','delegations','workingDirectory','typed','.\x20Use\x20','Usage:\x20delegate-cli\x20','verify','total_token_units','period_end','\x0aAccept\x20one\x20with:\x20delegate-cli\x20delegations\x20accept\x20<id>\x0a','object','an\x20input\x20line\x20is\x20not\x20a\x20JSON\x20object','noConnections','monthly_limit_usd','\x20\x20TITLE\x0a','toISOString','isDesktopFallback','value','Source:\x20\x20\x20\x20\x20\x20\x20','organizationId','--turn\x20applies\x20to\x20`delegate-cli\x20sessions\x20cancel`\x20only.','replace','--replay-user-messages\x20needs\x20--input-format\x20stream-json.','\x20|\x20','header','total_quota_pu','.\x20Drop\x20one\x20of\x20the\x20two.','localhost','some','\x20(Enter\x20to\x20skip):\x20','sessions','\x20of\x20session\x20',':\x20bucket\x20number\x20(Enter\x20to\x20leave\x20out):\x20','result','unknown\x20slug','\x20delegation\x20','AUTH_TOKEN_FILE\x20\x27','headless','--days','results','aborted','round','--worker-id','an\x20input\x20line\x20has\x20type\x20','Your\x20answer,\x20as\x20text\x20(the\x20CLI\x20attaches\x20no\x20files;\x20Enter\x20to\x20skip):\x20','a\x20session\x20id','confidence','408570yIhAKx','probability\x20','pending','--interop','Missing\x20prompt.\x20Pass\x20it\x20as\x20an\x20argument,\x20pipe\x20it\x20via\x20stdin,\x20or\x20run\x20`delegate-cli\x20--help`.',')\x20—\x20saved\x20to\x20','stop','stack','\x27\x20cannot\x20be\x20read:\x20','transcribe','\x20--turn\x20','Enter\x20one\x20number\x20from\x201\x20to\x20','padEnd','sendMessage','an\x20input\x20line\x20is\x20not\x20JSON','No\x20CLI\x20login\x20found\x20—\x20nothing\x20to\x20remove.','choice','delegations\x20create\x20--session\x20<id>\x20[--to\x20<email|name>]\x20[--summary\x20<text>]\x20\x22<task>\x22|-','destroy','self-hosted\x20(Automation\x20Suite\x20/\x20Dedicated)','verbose','unit','questions','findIndex','293539kptmzR','--attach','.\x20Share:\x20','\x20completion','an\x20email\x20address\x20or\x20name'];_0x450d=function(){return _0x172ad8;};return _0x450d();}function Qt(){const _0x2e3084=_0x586b23;let _0x395ff8=process['stdout'][_0x2e3084(0x1e8)],_0x26278f=_0x395ff8[_0x2e3084(0x389)](process[_0x2e3084(0x35a)]),_0x5f345f=O;return O=_0x32cd90=>{_0x26278f(_0x32cd90);},process[_0x2e3084(0x35a)][_0x2e3084(0x1e8)]=(..._0x3ceb12)=>process[_0x2e3084(0x1bb)][_0x2e3084(0x1e8)](..._0x3ceb12),()=>{const _0xf8c6ee=_0x2e3084;process[_0xf8c6ee(0x35a)]['write']=_0x395ff8,O=_0x5f345f;};}function m(_0x4652fc,_0x25e586,_0xf2258a){const _0x337234=_0x586b23;if(_0x4652fc[_0x337234(0x19b)]==='text'){_0xf2258a(_0x25e586);return;}O(_0x1b33c8(_0x25e586));}function qt(){const _0x234118=_0x586b23;let _0x1873b8='\x0adelegate-cli\x20—\x20Delegate\x20agent\x20CLI\x0a\x0aUsage:\x0a\x20\x20delegate-cli\x20[flags]\x20[\x22<prompt>\x22]\x20\x20\x20\x20Start\x20a\x20conversation\x20in\x20a\x20terminal\x0a\x20\x20delegate-cli\x20--print\x20\x22<prompt>\x22\x20\x20\x20\x20\x20\x20Send\x20one\x20prompt,\x20print\x20the\x20response,\x20and\x20exit\x0a\x20\x20delegate-cli\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\x20delegate-cli\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\x20delegate-cli\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\x20delegate-cli\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\x20delegate-cli\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\x20delegate-cli\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\x20delegate-cli\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\x20delegate-cli\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\x20delegate-cli\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\x20delegate-cli\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\x20delegate-cli\x20sessions\x20show|delete\x20ID\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\x20delegate-cli\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\x20delegate-cli\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\x20delegate-cli\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\x20delegate-cli\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\x20delegate-cli\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,\x20Cartographer\x20allowance\x0a\x20\x20delegate-cli\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\x20delegate-cli\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\x20delegate-cli\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\x20delegate-cli\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\x20\x20delegate-cli\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\x20delegate-cli\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\x20delegate-cli\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\x20delegate-cli\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\x20delegate-cli\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\x20delegate-cli\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\x20delegate-cli\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\x20delegate-cli\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\x20delegate-cli\x20host\x20install\x20[flags]\x20\x20\x20\x20Auto-start\x20the\x20host\x20at\x20login\x20(macOS\x20LaunchAgent\x20/\x20Windows\x20Scheduled\x20Task)\x0a\x20\x20delegate-cli\x20host\x20uninstall\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Remove\x20auto-start\x0a\x20\x20delegate-cli\x20host\x20status\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20auto-start\x20state\x0a\x20\x20delegate-cli\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(delegate-cli\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:\x20delegate-cli\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(delegate-cli\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--cartographer\x20\x20\x20\x20Cartographer\x20engagement\x20preset.\x20Equivalent\x20to\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--vertical\x20cartographer\x20--no-computer-use\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--preload-skill\x20business-analysis\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--preload-skill\x20project-task-list\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--preload-skill\x20knowledge-base\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--preload-skill\x20source-coverage\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--preload-skill\x20note-taker.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Add\x20--project/--working-dir\x20for\x20where\x20the\x20files\x20live,\x20and\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20extra\x20--preload-skill\x20flags\x20for\x20more\x20skills\x20—\x20a\x20skill\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20preset\x20already\x20covers\x20is\x20not\x20preloaded\x20twice.\x20An\x20explicit\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--headless\x20still\x20wins\x20and\x20turns\x20interop\x20off;\x20another\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--vertical\x20ID\x20is\x20refused\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\x20cartographer\x20brings\x20the\x20Map\x20of\x20Work\x20and,\x20without\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--preload-skill,\x20its\x20template\x27s\x20skills.\x20Default:\x20Delegate\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\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.\x0a'[_0x234118(0x34b)]();console['log'](_0x1873b8);}function zt(){const _0x70e139=_0x586b23;try{return JSON[_0x70e139(0x380)](_0x5f55e2[_0x70e139(0x184)](_0x2e69e0[_0x70e139(0x204)](__dirname,'..',_0x70e139(0x36f)),_0x70e139(0x366)))['version']||'unknown';}catch{return'unknown';}}var Yt=0x7d0;async function me(_0x1522f9,_0x5dfe60){const _0x46a0d5=_0x586b23;let _0x5833dc=_0x5dfe60?[_0x5dfe60]:[];for await(let _0x33439c of _0x1522f9)_0x5833dc[_0x46a0d5(0x24b)](Buffer[_0x46a0d5(0x185)](_0x33439c));return Buffer['concat'](_0x5833dc)['toString'](_0x46a0d5(0x366))[_0x46a0d5(0x34b)]();}function Vt(_0x48f2c5,_0x107e40){return new Promise(_0x2c0fdc=>{const _0x1a792f=_0x33b8;let _0x58b98f=_0x2091ef=>{const _0x10d8c5=_0x33b8;clearTimeout(_0x42c3d0),_0x48f2c5[_0x10d8c5(0x386)](_0x10d8c5(0x31a),_0x2c077e),_0x48f2c5[_0x10d8c5(0x386)](_0x10d8c5(0x310),_0xf9cf27),_0x48f2c5[_0x10d8c5(0x386)](_0x10d8c5(0x1ce),_0xf9cf27),_0x48f2c5['pause'](),_0x2c0fdc(_0x2091ef);},_0x2c077e=_0x3ed54f=>_0x58b98f(Buffer[_0x1a792f(0x185)](_0x3ed54f)),_0xf9cf27=()=>_0x58b98f(null),_0x42c3d0=setTimeout(()=>_0x58b98f(null),_0x107e40);_0x48f2c5['on'](_0x1a792f(0x31a),_0x2c077e),_0x48f2c5['on'](_0x1a792f(0x310),_0xf9cf27),_0x48f2c5['on']('error',_0xf9cf27),_0x48f2c5[_0x1a792f(0x20e)]();});}async function H(_0x362715,_0x1cb4c5,_0x31d920=Yt){const _0x5a21bf=_0x586b23;let _0x52dba9=_0x362715==='-';if(!_0x52dba9&&_0x362715)return _0x362715;if(!_0x52dba9&&_0x1cb4c5[_0x5a21bf(0x33c)])return'';if(_0x52dba9)return me(_0x1cb4c5,null);let _0x560740=await Vt(_0x1cb4c5,_0x31d920);return _0x560740?me(_0x1cb4c5,_0x560740):'';}function z(){const _0x5946aa=_0x586b23;return _0x2e69e0[_0x5946aa(0x204)](process.env.HOME||process.env.USERPROFILE||'',_0x5946aa(0x236),_0x5946aa(0x38b));}function G(_0x252590){const _0x3c458c=_0x586b23;try{let _0x278e9c=JSON[_0x3c458c(0x380)](_0x5f55e2[_0x3c458c(0x184)](_0x252590,_0x3c458c(0x366)));return!_0x278e9c[_0x3c458c(0x277)]||!_0x278e9c[_0x3c458c(0x19a)]||!_0x278e9c[_0x3c458c(0x2a7)]?null:_0x278e9c;}catch{return null;}}function Xt(){let _0x11a4d7=[{'file':_0x3a3374(),'isDesktopFallback':!0x1},{'file':z(),'isDesktopFallback':!0x0}];for(let _0x3ab81f of _0x11a4d7){let _0x2d0fae=G(_0x3ab81f['file']);if(_0x2d0fae)return{..._0x3ab81f,'auth':_0x2d0fae};}return null;}async function Zt(){const _0x4aa390=_0x586b23;let _0x5ce44d=_0x3a3374();if(!_0x5f55e2[_0x4aa390(0x1b4)](_0x5ce44d)){let _0x384092=z();console['log'](G(_0x384092)?_0x4aa390(0x27f)+_0x384092+_0x4aa390(0x33e):_0x4aa390(0x2d2));return;}_0x5f55e2[_0x4aa390(0x1c0)](_0x5ce44d),console['log'](_0x4aa390(0x342)+_0x5ce44d);}async function en(_0x27df7a){const _0x1cd07c=_0x586b23;let _0x35f9ea=Y(),_0x592f7a,_0x38b8b0;if(_0x35f9ea)_0x592f7a=_0x35f9ea,_0x38b8b0=_0x1cd07c(0x26c);else{let _0x473004=Xt();if(!_0x473004)throw new Error(Te);_0x592f7a=_0x473004[_0x1cd07c(0x34d)],_0x38b8b0=_0x473004[_0x1cd07c(0x2a4)]?_0x473004[_0x1cd07c(0x178)]+'\x20(Delegate\x20desktop\x20app\x20fallback)':_0x473004[_0x1cd07c(0x178)];}let _0x124b5a={'source':_0x38b8b0,'baseUrl':_0x592f7a[_0x1cd07c(0x320)]??null,'deployment':tn(_0x592f7a[_0x1cd07c(0x320)]),'organization':{'id':_0x592f7a[_0x1cd07c(0x2a7)],'slug':_0x592f7a['orgLogicalName']??null},'tenant':{'id':_0x592f7a['tenantId'],'name':_0x592f7a[_0x1cd07c(0x180)]??null},'tokenExpiresAt':_0x592f7a[_0x1cd07c(0x17f)]?new Date(_0x592f7a[_0x1cd07c(0x17f)]*0x3e8)[_0x1cd07c(0x2a3)]():null};m(_0x27df7a,_0x124b5a,()=>{const _0x314c0d=_0x1cd07c;let _0x182d73=[_0x314c0d(0x2a6)+_0x38b8b0,_0x314c0d(0x355)+(_0x592f7a[_0x314c0d(0x320)]??_0x314c0d(0x343)),_0x314c0d(0x30a)+_0x124b5a[_0x314c0d(0x24f)],_0x314c0d(0x291)+(_0x592f7a['orgLogicalName']??'unknown\x20slug')+'\x20('+_0x592f7a['organizationId']+')',_0x314c0d(0x374)+(_0x592f7a[_0x314c0d(0x180)]??_0x314c0d(0x2b6))+'\x20('+_0x592f7a[_0x314c0d(0x19a)]+')'];if(_0x592f7a[_0x314c0d(0x17f)]){let _0x6f4fe6=_0x592f7a[_0x314c0d(0x17f)]-Math[_0x314c0d(0x326)](Date['now']()/0x3e8);_0x182d73['push'](_0x6f4fe6>0x0?'Token:\x20\x20\x20\x20\x20\x20\x20\x20expires\x20'+_0x124b5a[_0x314c0d(0x357)]+_0x314c0d(0x379)+Math[_0x314c0d(0x2bd)](_0x6f4fe6/0x3c)+'\x20min)':'Token:\x20\x20\x20\x20\x20\x20\x20\x20expired\x20'+_0x124b5a[_0x314c0d(0x357)]);}process[_0x314c0d(0x35a)][_0x314c0d(0x1e8)](_0x182d73[_0x314c0d(0x204)]('\x0a')+'\x0a');});}var Te=_0x586b23(0x1ae);function tn(_0x44af6b){const _0x5cdaa1=_0x586b23;return _0x44af6b?_0x3a6f9c(_0x44af6b)?_0x5cdaa1(0x285):_0x5cdaa1(0x2d6):_0x5cdaa1(0x343);}function Y(){let _0x2cbbe1=process.env.AUTH_TOKEN_FILE;return(process.env.AUTH_TOKEN||_0x2cbbe1)&&process.env.TENANT_ID&&process.env.ORG_ID?{'accessToken':_0x2cbbe1?nn(_0x2cbbe1):process.env.AUTH_TOKEN,..._0x2cbbe1?{'accessTokenFile':_0x2cbbe1}:{},'tenantId':process.env.TENANT_ID,'organizationId':process.env.ORG_ID,'orgLogicalName':process.env.ORG_SLUG,'tenantName':process.env.TENANT_SLUG,'baseUrl':Ue()}:null;}function nn(_0xe8754){const _0x352648=_0x586b23;let _0x32e081;try{_0x32e081=_0x5f55e2[_0x352648(0x184)](_0xe8754,'utf-8')[_0x352648(0x34b)]();}catch(_0x552e9b){throw new Error('AUTH_TOKEN_FILE\x20\x27'+_0xe8754+_0x352648(0x2cb)+_0x552e9b['message']);}let _0xb36d4d=_0x32e081['startsWith'](_0x352648(0x1a6))?_0x32e081[_0x352648(0x30c)](0x7)[_0x352648(0x34b)]():_0x32e081;if(!_0xb36d4d)throw new Error(_0x352648(0x2b8)+_0xe8754+_0x352648(0x364));return _0xb36d4d;}function Ue(){const _0x1fb444=_0x586b23;let _0x22191c=process.env.UIPATH_BASE_URL;if(!_0x22191c)return;let _0x173208=_0x3adab1(_0x22191c);if(_0x173208['ok']===!0x1)throw new Error('UIPATH_BASE_URL\x20is\x20unusable.\x20'+_0x2353a5(_0x22191c,_0x173208[_0x1fb444(0x370)]));return _0x173208[_0x1fb444(0x320)];}async function V(){let _0x5bd0f5=Y();if(_0x5bd0f5)return _0x5bd0f5;let _0x52742c=await _0x3b8b30();if(_0x52742c)return _0x52742c;throw new Error(Te);}async function sn(){const _0x1e6d82=_0x586b23;await new _0x6d6af5()[_0x1e6d82(0x2c9)]({'force':!0x0}),console['log'](_0x1e6d82(0x249));}function X(_0x2c942b,_0x8e287d,_0x1a03da){const _0xbe273a=_0x586b23;_0x2c942b?process[_0xbe273a(0x1bb)][_0xbe273a(0x1e8)]('[env='+_0x2c942b+']\x20Backend\x20URL:\x20'+_0x1a03da+'\x0a'):!_0x8e287d&&!process.env.BACKEND_URL&&process['stderr'][_0xbe273a(0x1e8)](_0xbe273a(0x362)+_0x1a03da+'\x0a');}async function $(_0x25c2b9){const _0x22668e=_0x586b23;let _0x4b6061=await V(),_0x376f75=_0x2bb30b(_0x25c2b9[_0x22668e(0x1e2)],_0x4b6061,_0x25c2b9['backendUrl']);return X(_0x25c2b9['env'],_0x25c2b9[_0x22668e(0x1d1)],_0x376f75),{'auth':_0x4b6061,'backendUrl':_0x376f75,'client':_0x328497({'auth':_0x4b6061,'backendUrl':_0x376f75})};}async function on(_0xae2c86){const _0x5d1034=_0x586b23;let {client:_0x287ec5}=await $(_0xae2c86),[_0x1a9435,_0x1ce931]=await Promise[_0x5d1034(0x2e3)]([_0x3fe691(_0x287ec5),_0x15acbd(_0x287ec5)['catch'](_0x5e2f1d=>(process[_0x5d1034(0x1bb)][_0x5d1034(0x1e8)]('Could\x20not\x20check\x20BYO\x20model\x20warnings:\x20'+(_0x5e2f1d instanceof Error?_0x5e2f1d[_0x5d1034(0x1f5)]:String(_0x5e2f1d))+'\x0a'),{}))]),_0x1ad7a9=_0x1a9435[_0x5d1034(0x227)](_0x4061a8=>_0x1ce931[_0x4061a8['id']]?{..._0x4061a8,'byoWarning':_0x1ce931[_0x4061a8['id']]}:_0x4061a8);m(_0xae2c86,_0x1ad7a9,rn);}function rn(_0x2c83fb){const _0x6765fd=_0x586b23;if(_0x2c83fb[_0x6765fd(0x21f)]===0x0){process[_0x6765fd(0x1bb)][_0x6765fd(0x1e8)]('No\x20models\x20available\x20for\x20this\x20product/tenant.\x0a');return;}process[_0x6765fd(0x35a)][_0x6765fd(0x1e8)]('\x0aAvailable\x20models\x20('+_0x2c83fb[_0x6765fd(0x21f)]+_0x6765fd(0x276));for(let _0x2e4ce3 of _0x2c83fb){let _0x40937c=_0x2e4ce3[_0x6765fd(0x18b)]&&_0x2e4ce3[_0x6765fd(0x18b)]!==_0x2e4ce3['id']?'\x20('+_0x2e4ce3[_0x6765fd(0x18b)]+')':'';process['stdout'][_0x6765fd(0x1e8)]('\x20\x20'+_0x2e4ce3['id']+_0x40937c+'\x0a'),_0x2e4ce3['description']&&process[_0x6765fd(0x35a)]['write'](_0x6765fd(0x2ef)+_0x2e4ce3[_0x6765fd(0x32b)]+'\x0a'),_0x2e4ce3['locked']&&process['stdout'][_0x6765fd(0x1e8)](_0x6765fd(0x1ef)+(_0x2e4ce3[_0x6765fd(0x360)]?'\x20('+_0x2e4ce3[_0x6765fd(0x360)]+')':'')+'\x0a'),_0x2e4ce3['byoWarning']&&process[_0x6765fd(0x35a)]['write'](_0x6765fd(0x329)+_0x2e4ce3[_0x6765fd(0x283)]+'\x0a');}process[_0x6765fd(0x35a)][_0x6765fd(0x1e8)](_0x6765fd(0x1ac));}var fe=[_0x586b23(0x21d),_0x586b23(0x233),'rename','delete','cancel',_0x586b23(0x385)];async function an(_0x23d6aa){const _0x1506f6=_0x586b23;let [_0x1c1793='',_0x49069b='',..._0x7a1344]=_0x23d6aa['operands'];if(_0x1c1793&&!fe[_0x1506f6(0x317)](_0x1c1793)&&(console[_0x1506f6(0x1ce)](_0x1506f6(0x30e)+_0x1c1793+'.\x20Use:\x20'+fe[_0x1506f6(0x204)](_0x1506f6(0x2ab))+'.'),process['exit'](0x2)),_0x23d6aa[_0x1506f6(0x257)]!==void 0x0&&_0x1c1793!==_0x1506f6(0x1fb)&&(console[_0x1506f6(0x1ce)](_0x1506f6(0x2a8)),process[_0x1506f6(0x181)](0x2)),_0x1c1793&&_0x1c1793!==_0x1506f6(0x21d)){await ln(_0x23d6aa,_0x1c1793,_0x49069b,_0x7a1344[_0x1506f6(0x204)]('\x20')[_0x1506f6(0x34b)]());return;}_0x23d6aa[_0x1506f6(0x21b)][_0x1506f6(0x21f)]>0x1&&(console['error'](_0x1506f6(0x217)),process[_0x1506f6(0x181)](0x2));let {client:_0x1af17a}=await $(_0x23d6aa),_0x21bec6=await _0x199dc9(_0x1af17a,{'page':_0x23d6aa['page'],'pageSize':_0x23d6aa['limit'],'includeSubAgents':_0x23d6aa[_0x1506f6(0x24d)]});m(_0x23d6aa,_0x21bec6,pn);}async function ln(_0x20a1c0,_0x63130a,_0x23aae2,_0x520e82){const _0x4b5cb3=_0x586b23;if((_0x20a1c0['page']!==void 0x0||_0x20a1c0[_0x4b5cb3(0x1f1)]!==void 0x0||_0x20a1c0['includeSubAgents'])&&(console[_0x4b5cb3(0x1ce)]('--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`delegate-cli\x20sessions\x20[list]`\x20only.'),process[_0x4b5cb3(0x181)](0x2)),_0x63130a===_0x4b5cb3(0x1fb)){await dn(_0x20a1c0,_0x23aae2,_0x520e82);return;}if(_0x63130a===_0x4b5cb3(0x385)){await un(_0x20a1c0,_0x23aae2,_0x520e82);return;}(!_0x23aae2||_0x63130a===_0x4b5cb3(0x2e5)!=!!_0x520e82)&&(console[_0x4b5cb3(0x1ce)]('Usage:\x20delegate-cli\x20sessions\x20'+_0x63130a+_0x4b5cb3(0x230)+(_0x63130a===_0x4b5cb3(0x2e5)?_0x4b5cb3(0x1b3):'')),process['exit'](0x2));let {client:_0x3c79b7}=await $(_0x20a1c0);try{if(_0x63130a===_0x4b5cb3(0x233)){let _0x485e2f=await _0x236eb7(_0x3c79b7,_0x23aae2);_0x485e2f||ge(_0x23aae2),m(_0x20a1c0,_0x485e2f,cn);}else{if(_0x63130a==='rename'){let _0x5c1e6c=await _0x4dfa5f(_0x3c79b7,_0x23aae2,_0x520e82);m(_0x20a1c0,_0x5c1e6c,_0xd1549d=>{const _0x6b2aac=_0x4b5cb3;process[_0x6b2aac(0x35a)]['write']('Renamed\x20'+_0xd1549d['id']+':\x20'+_0xd1549d['title']+'\x0a');});}else await _0x356404(_0x3c79b7,_0x23aae2),await _0x231b8e(_0x23aae2,_0x20a1c0[_0x4b5cb3(0x296)]),m(_0x20a1c0,{'id':_0x23aae2,'deleted':!0x0},_0x121ca5=>{const _0x1ec076=_0x4b5cb3;process[_0x1ec076(0x35a)]['write'](_0x1ec076(0x195)+_0x121ca5['id']+'.\x0a');});}}catch(_0x5e2c54){if(!_0x1fbcf7(_0x5e2c54,0x194))throw _0x5e2c54;ge(_0x23aae2);}}function ge(_0x569b16){const _0x31c8db=_0x586b23;console[_0x31c8db(0x1ce)](_0x31c8db(0x328)+_0x569b16+'\x20not\x20found.'),process[_0x31c8db(0x181)](0x1);}function cn(_0x435948){const _0x19cae7=_0x586b23;process[_0x19cae7(0x35a)][_0x19cae7(0x1e8)]('ID\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x435948['id']+'\x0a'),process[_0x19cae7(0x35a)][_0x19cae7(0x1e8)](_0x19cae7(0x321)+_0x435948[_0x19cae7(0x383)]+'\x0a'),process[_0x19cae7(0x35a)][_0x19cae7(0x1e8)]('Owner\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x435948[_0x19cae7(0x345)]+'\x0a'),process[_0x19cae7(0x35a)][_0x19cae7(0x1e8)](_0x19cae7(0x1b2)+_0x435948['organizationId']+'\x0a'),_0x435948[_0x19cae7(0x213)]&&process[_0x19cae7(0x35a)][_0x19cae7(0x1e8)](_0x19cae7(0x381)+_0x435948[_0x19cae7(0x213)]+'\x0a');}async function dn(_0x11ee36,_0x242dad,_0xc85ac3){const _0x5e301c=_0x586b23;(!_0x242dad||_0xc85ac3||!_0x11ee36[_0x5e301c(0x257)])&&(console[_0x5e301c(0x1ce)]('Usage:\x20delegate-cli\x20sessions\x20cancel\x20<session-id>\x20--turn\x20<turn-id>'),process[_0x5e301c(0x181)](0x2));let {client:_0x2019cb}=await $(_0x11ee36),_0x36cce4=await _0x2da8bb(_0x2019cb,_0x242dad,_0x11ee36[_0x5e301c(0x257)]);m(_0x11ee36,{'sessionId':_0x242dad,'turnId':_0x11ee36['turnId'],'cancelled':_0x36cce4},_0x2fe256=>{const _0x3a0bbe=_0x5e301c;_0x2fe256[_0x3a0bbe(0x2ff)]?process[_0x3a0bbe(0x35a)]['write'](_0x3a0bbe(0x272)+_0x2fe256[_0x3a0bbe(0x257)]+_0x3a0bbe(0x2b3)+_0x2fe256['sessionId']+'.\x0a'):process['stderr'][_0x3a0bbe(0x1e8)](_0x3a0bbe(0x356)+_0x2fe256[_0x3a0bbe(0x257)]+_0x3a0bbe(0x31f)+_0x2fe256['sessionId']+'.\x0a');}),_0x36cce4||(process[_0x5e301c(0x25e)]=0x1);}async function un(_0x2c5f8f,_0x185137,_0x48e5af){const _0x20f8b2=_0x586b23;(!_0x185137||/\s/['test'](_0x48e5af))&&(console[_0x20f8b2(0x1ce)]('Usage:\x20delegate-cli\x20sessions\x20fork\x20<id>\x20[<message-id>]'),process[_0x20f8b2(0x181)](0x2));let {client:_0xa9f80a}=await $(_0x2c5f8f),_0xf4cf43;try{_0xf4cf43=await _0x4c9466(_0xa9f80a,_0x185137,{'atMessageId':_0x48e5af||void 0x0});}catch(_0x35977a){if(!_0x1fbcf7(_0x35977a,0x194))throw _0x35977a;console[_0x20f8b2(0x1ce)](_0x20f8b2(0x328)+_0x185137+_0x20f8b2(0x1dc)+(_0x48e5af?_0x20f8b2(0x1a9)+_0x48e5af:'')+'.'),process['exit'](0x1);}m(_0x2c5f8f,_0xf4cf43,_0x104676=>{const _0x84b363=_0x20f8b2;process['stdout'][_0x84b363(0x1e8)]('Forked\x20'+_0x185137+'\x20into\x20'+_0x104676['id']+'.\x0a'),process[_0x84b363(0x1bb)]['write'](_0x84b363(0x349)+_0x104676['id']+_0x84b363(0x243));});}function pn({sessions:_0xcc61c7,page:_0x33bd2e,isLastPage:_0xb3b56f}){const _0x4bdb04=_0x586b23;if(_0xcc61c7[_0x4bdb04(0x21f)]===0x0)process[_0x4bdb04(0x1bb)]['write'](_0x4bdb04(0x242)+_0x33bd2e+'.\x0a');else{process[_0x4bdb04(0x35a)][_0x4bdb04(0x1e8)]('ID'[_0x4bdb04(0x2cf)](0x24)+'\x20\x20'+_0x4bdb04(0x306)[_0x4bdb04(0x2cf)](0x13)+_0x4bdb04(0x2a2));for(let _0x384878 of _0xcc61c7){let _0x48ed82=_0x384878[_0x4bdb04(0x1d8)][_0x4bdb04(0x2a9)]('T','\x20')[_0x4bdb04(0x30c)](0x0,0x13),_0x5b7a57=_0x384878['parentSessionId']?'\x20\x20(sub-agent\x20of\x20'+_0x384878[_0x4bdb04(0x223)]+')':'';process[_0x4bdb04(0x35a)][_0x4bdb04(0x1e8)](_0x384878['id']['padEnd'](0x24)+'\x20\x20'+_0x48ed82[_0x4bdb04(0x2cf)](0x13)+'\x20\x20'+_0x384878['title']+_0x5b7a57+'\x0a');}}_0xb3b56f||process[_0x4bdb04(0x1bb)][_0x4bdb04(0x1e8)](_0x4bdb04(0x188)+(_0x33bd2e+0x1)+'\x0a');}async function mn(_0x5b3bcf){const _0x172edd=_0x586b23;let _0x45cb17=await V(),_0x5e6bd6=_0x2bb30b(_0x5b3bcf['env'],_0x45cb17,_0x5b3bcf[_0x172edd(0x1d1)]);X(_0x5b3bcf[_0x172edd(0x1e2)],_0x5b3bcf[_0x172edd(0x1d1)],_0x5e6bd6);let _0x1add9b=await _0x37e4f6({'auth':_0x45cb17,'backendUrl':_0x5e6bd6,'interop':_0x5b3bcf[_0x172edd(0x2b9)]?_0x172edd(0x324):_0x172edd(0x354)});m(_0x5b3bcf,_0x1add9b,({checks:_0x575bb6})=>{const _0xa75b04=_0x172edd;for(let _0xb3fc2d of _0x575bb6)process[_0xa75b04(0x35a)][_0xa75b04(0x1e8)](fn(_0xb3fc2d)+'\x0a');}),_0x1add9b['ok']||process[_0x172edd(0x181)](0x1);}function fn(_0x7338ab){const _0x35ac39=_0x586b23;return{'ok':'✓','failed':'✗','skipped':'-'}[_0x7338ab[_0x35ac39(0x377)]]+'\x20'+_0x7338ab[_0x35ac39(0x18b)][_0x35ac39(0x2cf)](0xa)+_0x7338ab[_0x35ac39(0x1bc)];}var gn=['','activity',_0x586b23(0x292)];async function hn(_0x2cb867){const _0x3d504d=_0x586b23;let _0x2b280f=_0x2cb867[_0x3d504d(0x32e)];gn[_0x3d504d(0x317)](_0x2b280f)||(console['error']('Unknown\x20usage\x20view:\x20'+_0x2cb867[_0x3d504d(0x32e)]+_0x3d504d(0x323)),process[_0x3d504d(0x181)](0x2)),_0x2b280f===''&&_0x2cb867[_0x3d504d(0x1ab)]!==void 0x0&&(console[_0x3d504d(0x1ce)](_0x3d504d(0x1a1)),process['exit'](0x2)),_0x2b280f!==''&&_0x2cb867[_0x3d504d(0x1f2)]!==void 0x0&&(console[_0x3d504d(0x1ce)](_0x3d504d(0x248)),process[_0x3d504d(0x181)](0x2));let {client:_0x213e8e}=await $(_0x2cb867);if(_0x2b280f==='activity'){m(_0x2cb867,await _0x67fff5(_0x213e8e,{'days':_0x2cb867['days']}),wn);return;}if(_0x2b280f===_0x3d504d(0x292)){m(_0x2cb867,await _0x16a219(_0x213e8e,{'days':_0x2cb867[_0x3d504d(0x1ab)]}),kn);return;}let [_0x416368,_0x41ecb8,_0x290cbe]=await Promise[_0x3d504d(0x2e3)]([_0x43b17c(_0x213e8e,{'sessionId':_0x2cb867[_0x3d504d(0x1f2)]}),_0x71e957(_0x213e8e),_0x54cfdd(_0x213e8e)]);m(_0x2cb867,{'licensing':_0x416368,'monthlySpending':_0x41ecb8,'cartographerAllowance':_0x290cbe},yn);}function yn(_0x114e36){const _0x23f397=_0x586b23;let {licensing:_0x15de00,monthlySpending:_0x19b56a,cartographerAllowance:_0x502fea}=_0x114e36,_0x3ee6b0=[_0x15de00[_0x23f397(0x32c)]?'Licensing:\x20\x20\x20\x20'+_0x15de00[_0x23f397(0x37a)][_0x23f397(0x18a)](0x1)+_0x23f397(0x20c)+(_0x15de00[_0x23f397(0x2ad)]??0x0)+_0x23f397(0x35e)+(_0x15de00[_0x23f397(0x303)]>0x0?',\x20'+_0x15de00[_0x23f397(0x303)]+_0x23f397(0x2e4):'')+_0x23f397(0x1b8)+_0x15de00[_0x23f397(0x29c)]+')':_0x23f397(0x38a),_0x23f397(0x2f9)+_0x19b56a[_0x23f397(0x1d5)]['toFixed'](0x2)+'\x20this\x20month'+(_0x19b56a[_0x23f397(0x32c)]&&_0x19b56a[_0x23f397(0x2a1)]!==null?_0x23f397(0x229)+_0x19b56a[_0x23f397(0x2a1)][_0x23f397(0x18a)](0x2)+'\x20cap':'\x20(no\x20cap\x20enforced)'),_0x23f397(0x28c)+_0x502fea[_0x23f397(0x2f8)]+'\x20('+_0x502fea[_0x23f397(0x300)]+')'];_0x15de00[_0x23f397(0x199)]!==null&&_0x15de00[_0x23f397(0x199)]!==void 0x0&&_0x3ee6b0[_0x23f397(0x24b)]('Session:\x20\x20\x20\x20\x20\x20'+_0x15de00[_0x23f397(0x199)]+'\x20PU'),process[_0x23f397(0x35a)][_0x23f397(0x1e8)](_0x3ee6b0['join']('\x0a')+'\x0a');}function wn(_0x111b2f){const _0x23edef=_0x586b23;let _0x1a58cd=[_0x23edef(0x350)+_0x111b2f[_0x23edef(0x221)]+_0x23edef(0x2fa)+_0x111b2f[_0x23edef(0x25b)]+_0x23edef(0x1a7)+_0x111b2f[_0x23edef(0x24a)]+_0x23edef(0x28a),_0x23edef(0x1ea)+_0x111b2f[_0x23edef(0x284)][_0x23edef(0x18a)](0x2)+_0x23edef(0x2e2)+_0x111b2f[_0x23edef(0x327)][_0x23edef(0x18a)](0x2)+_0x23edef(0x358)+_0x111b2f[_0x23edef(0x29b)]+'\x20token\x20units)',_0x23edef(0x186)+_0x111b2f[_0x23edef(0x318)]+'\x20prompt,\x20'+_0x111b2f['total_completion_tokens']+_0x23edef(0x2de)];for(let [_0x2f8492,_0x519f1e]of Object['entries'](_0x111b2f[_0x23edef(0x1e5)]))_0x1a58cd[_0x23edef(0x24b)]('\x20\x20'+_0x2f8492+':\x20'+_0x519f1e+'\x20token\x20units');process[_0x23edef(0x35a)]['write'](_0x1a58cd[_0x23edef(0x204)]('\x0a')+'\x0a');}function kn(_0x180878){const _0x326222=_0x586b23;if(_0x180878[_0x326222(0x1e7)][_0x326222(0x21f)]===0x0){process[_0x326222(0x35a)]['write'](_0x326222(0x368)+_0x180878[_0x326222(0x221)]+_0x326222(0x266));return;}let _0x562df3=[_0x326222(0x30f)];for(let _0x244380 of _0x180878[_0x326222(0x1e7)])_0x562df3[_0x326222(0x24b)](_0x244380[_0x326222(0x27a)]+'\x20\x20'+String(_0x244380[_0x326222(0x182)])['padStart'](0xb)+'\x20\x20'+String(_0x244380[_0x326222(0x1a4)])['padStart'](0xd)+'\x20\x20'+String(_0x244380[_0x326222(0x216)])['padStart'](0x11));process[_0x326222(0x35a)][_0x326222(0x1e8)](_0x562df3[_0x326222(0x204)]('\x0a')+'\x0a');}async function bn(_0x39a450,_0x4ca3cf){const _0x15d7fa=_0x586b23;let _0x233c5e=await Sn(_0x39a450[_0x15d7fa(0x32e)],_0x4ca3cf);_0x39a450['model']&&(_0x233c5e[_0x15d7fa(0x1db)]=_0x39a450[_0x15d7fa(0x1db)]);let {client:_0x3ce2bf}=await $(_0x39a450);try{_0x4ca3cf===_0x15d7fa(0x259)?m(_0x39a450,await _0x1d08d2(_0x3ce2bf,_0x233c5e,void 0x0),An):_0x4ca3cf===_0x15d7fa(0x25f)?m(_0x39a450,await _0x47d4dc(_0x3ce2bf,_0x233c5e,void 0x0),En):m(_0x39a450,await _0x29a36a(_0x3ce2bf,_0x233c5e,void 0x0),$n);}catch(_0x11fca6){if(!_0x268e7e(_0x11fca6))throw _0x11fca6;console[_0x15d7fa(0x1ce)](_0x11fca6[_0x15d7fa(0x1f5)]),process['exit'](0x1);}}async function Sn(_0x4c8bf1,_0x55f2bd){const _0x2bb912=_0x586b23;let _0x2e8598;try{_0x2e8598=_0x4c8bf1&&_0x4c8bf1!=='-'?_0x5f55e2['readFileSync'](_0x2e69e0['resolve'](_0x4c8bf1),'utf-8'):await H(_0x4c8bf1,process[_0x2bb912(0x247)]);}catch(_0x2c3f5d){console['error'](_0x55f2bd+':\x20cannot\x20read\x20the\x20request\x20('+_0x2c3f5d[_0x2bb912(0x1f5)]+').'),process['exit'](0x2);}return _0x2e8598||(console[_0x2bb912(0x1ce)](_0x55f2bd+'\x20needs\x20a\x20JSON\x20request:\x20delegate-cli\x20'+_0x55f2bd+'\x20<file.json>,\x20or\x20-\x20to\x20read\x20stdin.'),process[_0x2bb912(0x181)](0x2)),De(_0x2e8598,_0x55f2bd,'the\x20request');}function De(_0x2b984c,_0x4d18b1,_0x37f084){const _0x32f731=_0x586b23;let _0x172a5f;try{_0x172a5f=JSON[_0x32f731(0x380)](_0x2b984c);}catch(_0x1386ef){console[_0x32f731(0x1ce)](_0x4d18b1+':\x20'+_0x37f084+_0x32f731(0x179)+_0x1386ef[_0x32f731(0x1f5)]+').'),process[_0x32f731(0x181)](0x2);}return(typeof _0x172a5f!=_0x32f731(0x29e)||_0x172a5f===null||Array['isArray'](_0x172a5f))&&(console[_0x32f731(0x1ce)](_0x4d18b1+':\x20'+_0x37f084+_0x32f731(0x192)),process[_0x32f731(0x181)](0x2)),_0x172a5f;}function Ne(_0x598d87,_0x581b58){const _0xbda1bb=_0x586b23;let _0x16d480;try{_0x16d480=_0x5f55e2[_0xbda1bb(0x184)](_0x2e69e0[_0xbda1bb(0x245)](_0x598d87),_0xbda1bb(0x366));}catch(_0x41c3e3){console['error'](_0x581b58+_0xbda1bb(0x20f)+_0x41c3e3['message']+').'),process[_0xbda1bb(0x181)](0x2);}return De(_0x16d480,_0x581b58,_0xbda1bb(0x1eb));}async function vn(_0x435bee){const _0x413e45=_0x586b23;_0x435bee['jsonSchemaPath']===void 0x0&&(console['error'](_0x413e45(0x2f2)),process[_0x413e45(0x181)](0x2));let _0x59b3dc=Ne(_0x435bee[_0x413e45(0x203)],_0x413e45(0x23a)),_0x162faf=(await H(_0x435bee[_0x413e45(0x32e)],process[_0x413e45(0x247)]))[_0x413e45(0x34b)]();_0x162faf||(console[_0x413e45(0x1ce)](_0x413e45(0x33a)),process['exit'](0x2));let {client:_0x26d1fe}=await $(_0x435bee);try{let _0x205ac0=await _0x2675ad(_0x26d1fe,{'prompt':_0x162faf,'jsonSchema':_0x59b3dc,'model':_0x435bee[_0x413e45(0x1db)]||process.env.MODEL||_0x3427db,..._0x435bee[_0x413e45(0x1f2)]!==void 0x0&&{'sessionId':_0x435bee[_0x413e45(0x1f2)]}},void 0x0);m(_0x435bee,_0x205ac0,_0x130cf6=>{const _0x3322a0=_0x413e45;process[_0x3322a0(0x35a)][_0x3322a0(0x1e8)](JSON[_0x3322a0(0x282)](_0x130cf6[_0x3322a0(0x1aa)],null,0x2)+'\x0a');});}catch(_0x130a75){if(!_0x62bf57(_0x130a75))throw _0x130a75;console[_0x413e45(0x1ce)](_0x130a75[_0x413e45(0x1f5)]),process['exit'](0x1);}}function Z(_0x3d7a88){const _0x54b244=_0x586b23;process[_0x54b244(0x35a)][_0x54b244(0x1e8)](_0x54b244(0x316)+_0x3d7a88[_0x54b244(0x1db)]+'\x20('+_0x3d7a88['model_version']+'),\x20'+_0x3d7a88[_0x54b244(0x313)][_0x54b244(0x226)]+_0x54b244(0x23f));}function An(_0x527e28){const _0x2b780e=_0x586b23;Z(_0x527e28);for(let _0x3135f1 of Object[_0x2b780e(0x1fa)](_0x527e28[_0x2b780e(0x1b6)])){let _0x2bf39b=_0x527e28[_0x2b780e(0x1b6)][_0x3135f1],_0x542907=_0x2bf39b[_0x2b780e(0x26d)]===_0x2b780e(0x33d)?_0x2b780e(0x2c4)+_0x2bf39b[_0x2b780e(0x33d)][_0x2b780e(0x18a)](0x2):_0x2bf39b[_0x2b780e(0x26d)]===_0x2b780e(0x2d3)?_0x2b780e(0x1ee)+_0x2bf39b[_0x2b780e(0x2d3)]+_0x2b780e(0x1c2)+_0x2bf39b[_0x2b780e(0x2c2)]['toFixed'](0x2)+')':'score\x20'+_0x2bf39b['score'][_0x2b780e(0x18a)](0x2)+_0x2b780e(0x1c2)+_0x2bf39b['confidence'][_0x2b780e(0x18a)](0x2)+')';process[_0x2b780e(0x35a)]['write']('\x20\x20'+_0x3135f1+':\x20'+_0x542907+'\x0a');}}function En(_0x59319d){const _0x24164c=_0x586b23;Z(_0x59319d),_0x59319d[_0x24164c(0x2bb)][_0x24164c(0x22b)]((_0x24bed7,_0x210a68)=>{const _0x130aca=_0x24164c;process[_0x130aca(0x35a)][_0x130aca(0x1e8)]('\x20\x20'+(_0x210a68+0x1)+'.\x20'+_0x24bed7['id']+'\x20\x20'+_0x24bed7['score'][_0x130aca(0x18a)](0x3)+_0x130aca(0x252)+_0x24bed7[_0x130aca(0x1f0)]+')\x0a');});}function $n(_0x4fee41){const _0x264a0f=_0x586b23;Z(_0x4fee41),process[_0x264a0f(0x35a)][_0x264a0f(0x1e8)](_0x264a0f(0x1c4)+_0x4fee41['rubric_version']+'\x0a');for(let _0x5e12fd of _0x4fee41[_0x264a0f(0x2bb)])process[_0x264a0f(0x35a)][_0x264a0f(0x1e8)]('\x20\x20'+_0x5e12fd['id']+':\x20'+_0x5e12fd['verdict']+'\x20(confidence\x20'+_0x5e12fd[_0x264a0f(0x2c2)][_0x264a0f(0x18a)](0x2)+')\x0a');}async function xn(_0x3ea83f){const _0x209a71=_0x586b23;let _0x44dfd2=_0x3ea83f[_0x209a71(0x32e)]['trim']();_0x44dfd2||(console[_0x209a71(0x1ce)](_0x209a71(0x19c)),process[_0x209a71(0x181)](0x2));let {client:_0x7b5963}=await $(_0x3ea83f);try{let _0x4479ed=_0x44dfd2==='-'?{'data':await In(process[_0x209a71(0x247)])}:_0x44dfd2;m(_0x3ea83f,await _0x5b6bde(_0x7b5963,_0x4479ed,void 0x0),_0x20e394=>{const _0x1cf1b1=_0x209a71;process[_0x1cf1b1(0x35a)][_0x1cf1b1(0x1e8)](_0x20e394[_0x1cf1b1(0x369)]+'\x0a');});}catch(_0x17b82f){if(_0x5b467f(_0x17b82f)&&(console[_0x209a71(0x1ce)](_0x17b82f[_0x209a71(0x1f5)]),process[_0x209a71(0x181)](_0x17b82f[_0x209a71(0x377)]===void 0x0?0x2:0x1)),typeof _0x17b82f?.['code']!=_0x209a71(0x209))throw _0x17b82f;console[_0x209a71(0x1ce)](_0x209a71(0x37b)+_0x44dfd2+'\x20('+_0x17b82f['message']+').'),process[_0x209a71(0x181)](0x2);}}async function In(_0x5da3fe){const _0x35f85e=_0x586b23;let _0x35d119=[];for await(let _0x33358c of _0x5da3fe)_0x35d119[_0x35f85e(0x24b)](Buffer[_0x35f85e(0x185)](_0x33358c));return Buffer['concat'](_0x35d119);}var he=[_0x586b23(0x21d),_0x586b23(0x2c5),_0x586b23(0x233),'create',_0x586b23(0x1cb),_0x586b23(0x23a),'accept',_0x586b23(0x201),_0x586b23(0x1fb),_0x586b23(0x278)],ye={'list':_0x586b23(0x335),'pending':'delegations\x20pending\x20<session-id>','show':_0x586b23(0x212),'create':_0x586b23(0x2d4),'claim':_0x586b23(0x22e),'complete':_0x586b23(0x246),'accept':_0x586b23(0x312),'dismiss':_0x586b23(0x2e0),'cancel':'delegations\x20cancel\x20<delegation-id>','delete':_0x586b23(0x330)};async function Tn(_0x51f6b7){const _0x51dc24=_0x586b23;let [_0x5535b0='',_0x4c5678='',..._0x3b1f2b]=_0x51f6b7[_0x51dc24(0x21b)];he[_0x51dc24(0x317)](_0x5535b0)||(console[_0x51dc24(0x1ce)]((_0x5535b0?_0x51dc24(0x210)+_0x5535b0+'.\x20':'')+'Use:\x20delegate-cli\x20delegations\x20'+he[_0x51dc24(0x204)](_0x51dc24(0x2ab))+'.'),process[_0x51dc24(0x181)](0x2));let _0xf9bbc3=_0x5535b0;_0xf9bbc3!=='create'&&(_0x51f6b7[_0x51dc24(0x270)]!==void 0x0||_0x51f6b7['contextSummary']!==void 0x0||_0x51f6b7[_0x51dc24(0x1f2)]!==void 0x0)&&(console['error'](_0x51dc24(0x1b9)),process[_0x51dc24(0x181)](0x2));let _0xbe8c95=(_0xf9bbc3===_0x51dc24(0x2f4)?_0x51f6b7[_0x51dc24(0x21b)]['slice'](0x1):_0x3b1f2b)[_0x51dc24(0x204)]('\x20')[_0x51dc24(0x34b)](),_0x2893cf=_0xf9bbc3===_0x51dc24(0x2f4)||_0xf9bbc3===_0x51dc24(0x23a);(_0xf9bbc3!==_0x51dc24(0x2f4)&&!_0x4c5678||(_0x2893cf?!_0xbe8c95:_0xbe8c95)||_0xf9bbc3===_0x51dc24(0x2f4)&&!_0x51f6b7[_0x51dc24(0x1f2)])&&(console['error'](_0x51dc24(0x299)+ye[_0xf9bbc3]),process[_0x51dc24(0x181)](0x2));let _0x1cf598=_0x2893cf&&_0xbe8c95==='-'?(await H('-',process[_0x51dc24(0x247)]))[_0x51dc24(0x34b)]():_0xbe8c95;_0x2893cf&&!_0x1cf598&&(console[_0x51dc24(0x1ce)](_0x51dc24(0x299)+ye[_0xf9bbc3]+_0x51dc24(0x191)),process[_0x51dc24(0x181)](0x2));let {client:_0x512349}=await $(_0x51f6b7);try{await Un(_0x51f6b7,_0x512349,_0xf9bbc3,_0x4c5678,_0x1cf598);}catch(_0x37599e){if(!_0x1f33d4(_0x37599e))throw _0x37599e;console[_0x51dc24(0x1ce)](_0x37599e[_0x51dc24(0x1f5)]),process[_0x51dc24(0x181)](0x1);}}async function Un(_0x4b0875,_0x470ca2,_0x29d361,_0x145499,_0x3a7fbe){const _0x2a9855=_0x586b23;switch(_0x29d361){case _0x2a9855(0x21d):m(_0x4b0875,await _0x4915a8(_0x470ca2,_0x145499),Dn);return;case _0x2a9855(0x2c5):m(_0x4b0875,await _0x1cc734(_0x470ca2,_0x145499),_0x351a9d=>{const _0x26058c=_0x2a9855;_0x351a9d['delegation']&&process[_0x26058c(0x35a)][_0x26058c(0x1e8)](_0x26058c(0x17d)+_0x351a9d[_0x26058c(0x2f5)]['id']+'\x20('+_0x351a9d[_0x26058c(0x2f5)]['status']+_0x26058c(0x388)),_0x351a9d[_0x26058c(0x28e)][_0x26058c(0x21f)]===0x0&&process[_0x26058c(0x1bb)][_0x26058c(0x1e8)](_0x26058c(0x244));for(let _0x2215f2 of _0x351a9d[_0x26058c(0x28e)])process[_0x26058c(0x35a)][_0x26058c(0x1e8)]('\x0a'+_0x2215f2['id']+_0x26058c(0x375)+(_0x2215f2[_0x26058c(0x23b)]??'a\x20colleague')+'\x20\x20'+(_0x2215f2[_0x26058c(0x19f)]??'')+'\x0a'+(_0x2215f2[_0x26058c(0x2b5)]?.['content']??'')+'\x0a');_0x351a9d['pendingResults'][_0x26058c(0x21f)]>0x0&&process[_0x26058c(0x1bb)][_0x26058c(0x1e8)](_0x26058c(0x29d));});return;case'show':m(_0x4b0875,await _0x4ef627(_0x470ca2,_0x145499),we);return;case'create':{let _0x377a62=await _0x22d0ea(_0x470ca2,{'sessionId':_0x4b0875[_0x2a9855(0x1f2)],'task':_0x3a7fbe,..._0x4b0875['contextSummary']!==void 0x0&&{'contextSummary':_0x4b0875[_0x2a9855(0x1f7)]},..._0x4b0875[_0x2a9855(0x270)]!==void 0x0&&{'recipient':_0x4b0875[_0x2a9855(0x270)]}});m(_0x4b0875,_0x377a62,_0x8619f3=>{const _0x5a0593=_0x2a9855;_0x8619f3[_0x5a0593(0x238)]?process[_0x5a0593(0x35a)][_0x5a0593(0x1e8)](_0x5a0593(0x263)+_0x8619f3['delegationId']+_0x5a0593(0x26f)+_0x8619f3[_0x5a0593(0x238)]['displayName']+'\x20<'+_0x8619f3['assignedUser']['email']+_0x5a0593(0x1fe)):process[_0x5a0593(0x35a)][_0x5a0593(0x1e8)](_0x5a0593(0x1b1)+_0x8619f3[_0x5a0593(0x213)]+_0x5a0593(0x2dd)+_0x8619f3[_0x5a0593(0x387)]+'\x0a');});return;}case'claim':{let _0x4532d5=await _0x42bffa(_0x470ca2,_0x145499);m(_0x4b0875,_0x4532d5,_0xfdc43a=>{const _0xcc0305=_0x2a9855;we(_0xfdc43a),process[_0xcc0305(0x35a)][_0xcc0305(0x1e8)]('Session\x20\x20\x20\x20\x20\x20\x20'+_0xfdc43a[_0xcc0305(0x1f2)]+'\x0a'),process[_0xcc0305(0x1bb)]['write']('Work\x20on\x20it\x20with:\x20delegate-cli\x20--session\x20'+_0xfdc43a[_0xcc0305(0x1f2)]+_0xcc0305(0x34a)+_0xfdc43a['delegationId']+'\x20\x22<answer>\x22\x0a');});return;}case'complete':{let {alreadyCompleted:_0x55c5ac}=await _0x5aa6c3(_0x470ca2,_0x145499,{'content':_0x3a7fbe});m(_0x4b0875,{'delegationId':_0x145499,'alreadyCompleted':_0x55c5ac},_0x355797=>{const _0x1a5580=_0x2a9855;process[_0x1a5580(0x35a)][_0x1a5580(0x1e8)]((_0x355797[_0x1a5580(0x36e)]?_0x1a5580(0x1f6):_0x1a5580(0x20a))+_0x1a5580(0x2b7)+_0x355797[_0x1a5580(0x213)]+'.\x0a');});return;}case _0x2a9855(0x1d4):{let _0x582f57=await _0x34c971(_0x470ca2,_0x145499);m(_0x4b0875,{'delegationId':_0x145499,..._0x582f57},_0x147d77=>{const _0x175c6b=_0x2a9855;process['stdout'][_0x175c6b(0x1e8)]((_0x147d77[_0x175c6b(0x205)]?'Already\x20accepted':_0x175c6b(0x273))+_0x175c6b(0x2b7)+_0x147d77[_0x175c6b(0x213)]+'.\x0a');});return;}default:{let _0x5ba5b3={'dismiss':_0x5114aa,'cancel':_0x2f8647,'delete':_0x256bdc}[_0x29d361];await _0x5ba5b3(_0x470ca2,_0x145499);let _0x5985f3={'dismiss':_0x2a9855(0x20b),'cancel':_0x2a9855(0x2ff),'delete':'deleted'}[_0x29d361];m(_0x4b0875,{'delegationId':_0x145499,[_0x5985f3]:!0x0},()=>{const _0x374634=_0x2a9855;process[_0x374634(0x35a)][_0x374634(0x1e8)](''+_0x5985f3[0x0][_0x374634(0x2f6)]()+_0x5985f3[_0x374634(0x30c)](0x1)+'\x20delegation\x20'+_0x145499+'.\x0a');});}}}function Dn(_0x255433){const _0x46daa3=_0x586b23;if(_0x255433[_0x46daa3(0x21f)]===0x0){process['stderr']['write'](_0x46daa3(0x30b));return;}process[_0x46daa3(0x35a)][_0x46daa3(0x1e8)]('ID'['padEnd'](0x24)+'\x20\x20'+_0x46daa3(0x176)[_0x46daa3(0x2cf)](0x9)+'\x20\x20'+_0x46daa3(0x222)[_0x46daa3(0x2cf)](0x18)+_0x46daa3(0x21e));for(let _0x173b07 of _0x255433)process[_0x46daa3(0x35a)][_0x46daa3(0x1e8)](_0x173b07['id'][_0x46daa3(0x2cf)](0x24)+'\x20\x20'+_0x173b07[_0x46daa3(0x377)][_0x46daa3(0x2cf)](0x9)+'\x20\x20'+(_0x173b07[_0x46daa3(0x23b)]??'-')['padEnd'](0x18)+'\x20\x20'+(_0x173b07[_0x46daa3(0x19f)]??'')+'\x0a');}function we(_0x351845){const _0x13f280=_0x586b23;process[_0x13f280(0x35a)][_0x13f280(0x1e8)](_0x13f280(0x1d2)+(_0x351845['sourceUserEmail']??'-')+'\x0a'),_0x351845[_0x13f280(0x1cf)]&&process['stdout'][_0x13f280(0x1e8)](_0x13f280(0x2e1)+_0x351845['sourceTitle']+'\x0a'),process['stdout'][_0x13f280(0x1e8)](_0x13f280(0x25a)+(_0x351845['task']??'-')+'\x0a'),_0x351845[_0x13f280(0x1f7)]&&process[_0x13f280(0x35a)]['write']('\x0a'+_0x351845[_0x13f280(0x1f7)]+'\x0a\x0a');}async function Nn(_0x3708f2){const _0x27f6c5=_0x586b23;_0x3708f2[_0x27f6c5(0x32e)][_0x27f6c5(0x34b)]()||(console[_0x27f6c5(0x1ce)]('Usage:\x20delegate-cli\x20org-users\x20<name\x20or\x20email\x20prefix>'),process['exit'](0x2));let {client:_0xc80c82}=await $(_0x3708f2),_0x3c2d53;try{_0x3c2d53=await _0x2e27ef(_0xc80c82,_0x3708f2[_0x27f6c5(0x32e)]);}catch(_0x516d38){if(!_0x1f33d4(_0x516d38))throw _0x516d38;console[_0x27f6c5(0x1ce)](_0x516d38['message']),process[_0x27f6c5(0x181)](0x1);}m(_0x3708f2,_0x3c2d53,_0x6cd762=>{const _0x303ec9=_0x27f6c5;_0x6cd762[_0x303ec9(0x21f)]===0x0&&process[_0x303ec9(0x1bb)][_0x303ec9(0x1e8)](_0x303ec9(0x363)+_0x3708f2[_0x303ec9(0x32e)]['trim']()+_0x303ec9(0x258));for(let _0x212341 of _0x6cd762)process['stdout'][_0x303ec9(0x1e8)](_0x212341[_0x303ec9(0x206)][_0x303ec9(0x2cf)](0x20)+'\x20\x20'+_0x212341[_0x303ec9(0x1b0)]+'\x0a');});}async function _n(_0x4b5d66){const _0x334b4a=_0x586b23;_0x4b5d66[_0x334b4a(0x1e2)]===_0x334b4a(0x2af)&&(console[_0x334b4a(0x1ce)]('--env\x20localhost\x20has\x20no\x20OAuth\x20flow;\x20pick\x20alpha,\x20staging,\x20or\x20production.'),process['exit'](0x2));let _0x1a18cb=G(_0x3a3374()),_0x17dfac=_0x4b5d66[_0x334b4a(0x214)];if(_0x4b5d66[_0x334b4a(0x1e2)]){let _0x65e402=_0x4b5d66[_0x334b4a(0x1e2)];await _0x1e98a3({'env':_0x65e402,'tenant':_0x4b5d66['tenant']??Q(_0x1a18cb,_0x4fc387[_0x65e402]),'skipEnvCheck':_0x17dfac});return;}let _0xd85a23=_0x4b5d66[_0x334b4a(0x1c8)]??Ue();if(_0xd85a23){await _0x1e98a3({'baseUrl':_0xd85a23,'tenant':_0x4b5d66[_0x334b4a(0x19e)]??Q(_0x1a18cb,_0xd85a23),'skipEnvCheck':_0x17dfac});return;}if(_0x1a18cb?.['baseUrl']){await _0x1e98a3({'baseUrl':_0x1a18cb[_0x334b4a(0x320)],'tenant':_0x4b5d66[_0x334b4a(0x19e)]??_0x1a18cb[_0x334b4a(0x180)],'skipEnvCheck':_0x17dfac});return;}console['error']('First\x20login\x20requires\x20--env\x20or\x20--url.\x20Usage:\x20delegate-cli\x20login\x20--env\x20<alpha|staging|production>,\x20or\x20delegate-cli\x20login\x20--url\x20https://automationsuite.contoso.com'),process[_0x334b4a(0x181)](0x2);}function Q(_0xd575fc,_0x11d343){const _0x41cfd2=_0x586b23;return _0xd575fc?.[_0x41cfd2(0x320)]&&Rn(_0xd575fc[_0x41cfd2(0x320)],_0x11d343)?_0xd575fc[_0x41cfd2(0x180)]:void 0x0;}function Rn(_0x49c17d,_0x4bab67){const _0x1a3858=_0x586b23;try{return new URL(_0x49c17d)[_0x1a3858(0x177)]===new URL(_0x4bab67)['origin'];}catch{return!0x1;}}async function Pn(_0x513233){const _0x24ecac=_0x586b23;Y()&&(console['error'](_0x24ecac(0x269)),process[_0x24ecac(0x181)](0x2));let _0x15ac44=await _0x1e69a0();if(_0x15ac44||(console[_0x24ecac(0x1ce)](Cn()),process[_0x24ecac(0x181)](0x2)),_0x513233[_0x24ecac(0x34b)]()){let _0x18cc40=await _0x7d1ddd(_0x15ac44,_0x513233);_0x4cbb1e(_0x18cc40)||(console[_0x24ecac(0x1ce)](_0x24ecac(0x28d)+_0x3a3374()+';\x20the\x20saved\x20login\x20still\x20uses\x20'+_0x15ac44[_0x24ecac(0x180)]+'.'),process['exit'](0x1)),console[_0x24ecac(0x1fc)](_0x24ecac(0x287)+_0x18cc40[_0x24ecac(0x180)]+'\x20('+_0x18cc40[_0x24ecac(0x19a)]+_0x24ecac(0x2c8)+_0x3a3374());return;}On(await _0x139acf(_0x15ac44),_0x15ac44);}function Cn(){const _0x435dfe=_0x586b23;if(_0x5f55e2['existsSync'](_0x3a3374()))return _0x435dfe(0x1ec);let _0x4f4288=z();return G(_0x4f4288)?'No\x20CLI\x20login\x20to\x20switch:\x20the\x20CLI\x20is\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20'+_0x4f4288+_0x435dfe(0x344):_0x435dfe(0x1d3);}function On(_0x5a8062,_0x35338d){const _0x14511f=_0x586b23;let _0x1113d4=_0x5a8062[_0x14511f(0x227)](_0x1b8c68=>_0x1b8c68['id']===_0x35338d[_0x14511f(0x19a)]?'*\x20'+_0x1b8c68[_0x14511f(0x18b)]+_0x14511f(0x1f4):'\x20\x20'+_0x1b8c68[_0x14511f(0x18b)]);process[_0x14511f(0x35a)][_0x14511f(0x1e8)](_0x14511f(0x1e1)+(_0x35338d[_0x14511f(0x28f)]??_0x35338d[_0x14511f(0x2a7)])+':\x0a'+_0x1113d4[_0x14511f(0x204)]('\x0a')+'\x0a'),_0x5a8062[_0x14511f(0x21f)]>0x1&&process[_0x14511f(0x35a)]['write'](_0x14511f(0x1a8));}function Ln(_0x2bd6ae){const _0x3f0d40=_0x586b23;return _0x2bd6ae?.[_0x3f0d40(0x37c)]?.['status']===0x191||/401/['test'](String(_0x2bd6ae?.[_0x3f0d40(0x1f5)]??''));}var w={'lastType':null,'quiet':!0x1},_e=_0x41b7ca=>{const _0x2c1ffb=_0x586b23;switch(_0x41b7ca['type']){case _0x2c1ffb(0x1c6):_0x41b7ca['sessionId']&&_0x41b7ca['sessionId']!==w['sessionId']&&(process['stderr'][_0x2c1ffb(0x1e8)](_0x2c1ffb(0x36b)+_0x41b7ca[_0x2c1ffb(0x1f2)]+'\x20(resume\x20with\x20--session\x20'+_0x41b7ca[_0x2c1ffb(0x1f2)]+')\x0a'),w[_0x2c1ffb(0x1f2)]=_0x41b7ca[_0x2c1ffb(0x1f2)]);break;case'turn_start':_0x41b7ca[_0x2c1ffb(0x257)]&&_0x41b7ca['turnId']!==w[_0x2c1ffb(0x257)]&&(w[_0x2c1ffb(0x348)]!==null&&process[_0x2c1ffb(0x1bb)][_0x2c1ffb(0x1e8)]('\x0a'),process['stderr'][_0x2c1ffb(0x1e8)](_0x2c1ffb(0x1f8)+_0x41b7ca[_0x2c1ffb(0x257)]+_0x2c1ffb(0x31c)+_0x41b7ca[_0x2c1ffb(0x1f2)]+_0x2c1ffb(0x2cd)+_0x41b7ca['turnId']+')\x0a'),w[_0x2c1ffb(0x257)]=_0x41b7ca[_0x2c1ffb(0x257)],w[_0x2c1ffb(0x348)]=_0x2c1ffb(0x279));break;case _0x2c1ffb(0x376):_0x41b7ca[_0x2c1ffb(0x1cc)]&&!w[_0x2c1ffb(0x1c9)]&&(w[_0x2c1ffb(0x348)]!==_0x2c1ffb(0x376)&&process[_0x2c1ffb(0x1bb)][_0x2c1ffb(0x1e8)](_0x2c1ffb(0x17a)),process['stderr'][_0x2c1ffb(0x1e8)](_0x41b7ca[_0x2c1ffb(0x1cc)]),w[_0x2c1ffb(0x348)]=_0x2c1ffb(0x376));break;case _0x2c1ffb(0x293):w[_0x2c1ffb(0x348)]!==null&&process['stderr'][_0x2c1ffb(0x1e8)]('\x0a'),process[_0x2c1ffb(0x1bb)][_0x2c1ffb(0x1e8)](_0x2c1ffb(0x365)+(_0x41b7ca['toolName']??_0x2c1ffb(0x1c5))+'\x0a'),w[_0x2c1ffb(0x348)]=_0x2c1ffb(0x293);break;case _0x2c1ffb(0x1f5):_0x41b7ca['content']&&(w['lastType']!==_0x2c1ffb(0x1f5)&&w[_0x2c1ffb(0x348)]!==null&&process['stdout'][_0x2c1ffb(0x1e8)]('\x0a'),process[_0x2c1ffb(0x35a)]['write'](_0x41b7ca[_0x2c1ffb(0x1cc)]),w[_0x2c1ffb(0x348)]=_0x2c1ffb(0x1f5));break;case _0x2c1ffb(0x1ce):w[_0x2c1ffb(0x348)]!==null&&process[_0x2c1ffb(0x1bb)]['write']('\x0a'),process[_0x2c1ffb(0x1bb)][_0x2c1ffb(0x1e8)]('✗\x20'+(_0x41b7ca[_0x2c1ffb(0x1ce)]??_0x2c1ffb(0x1ce))+'\x0a'),w[_0x2c1ffb(0x348)]=_0x2c1ffb(0x1ce);break;case'done':(w[_0x2c1ffb(0x348)]===_0x2c1ffb(0x1f5)||w[_0x2c1ffb(0x348)]===_0x2c1ffb(0x376))&&process[_0x2c1ffb(0x35a)][_0x2c1ffb(0x1e8)]('\x0a'),process[_0x2c1ffb(0x1bb)]['write'](_0x2c1ffb(0x1d6)),w[_0x2c1ffb(0x348)]='done';break;}};function ke(_0x3239fe,_0x2749a4,_0x1c0123,_0x3ef71f){const _0x3f7184=_0x586b23;let _0x1ea57f=_0x3239fe[_0x3f7184(0x1db)]||process.env.MODEL;return{'backendUrl':_0x1c0123,'auth':_0x2749a4,'enableComputerUse':!_0x3239fe[_0x3f7184(0x2b9)]&&!_0x3239fe[_0x3f7184(0x1ba)],'autoSpawnInterop':!_0x3239fe[_0x3f7184(0x2b9)],'enableConnections':!_0x3239fe[_0x3f7184(0x2a0)],'enableSecurity':!_0x3239fe[_0x3f7184(0x1f3)],'keepInteropAlive':_0x3239fe[_0x3f7184(0x280)],..._0x3ef71f[_0x3f7184(0x1a0)]?{'enableBackgroundCommands':!0x1}:{},..._0x3239fe[_0x3f7184(0x1da)]?{'enableMemory':!0x1}:{},..._0x3239fe['taskAutomation']?{'enableTaskAutomation':!0x0}:{},..._0x3239fe[_0x3f7184(0x26e)]['length']>0x0?{'preloadSkills':_0x3239fe[_0x3f7184(0x26e)]}:{},..._0x1ea57f?{'model':_0x1ea57f}:{},..._0x3239fe['projectId']?{'projectId':_0x3239fe[_0x3f7184(0x31d)]}:{},..._0x3239fe['vertical']?{'vertical':_0x3239fe[_0x3f7184(0x32d)]}:{},..._0x3239fe[_0x3f7184(0x296)]?{'workingDirectory':_0x3239fe[_0x3f7184(0x296)]}:{},..._0x3239fe['bundledSkillsPath']?{'bundledSkillsPath':_0x3239fe[_0x3f7184(0x378)]}:{},..._0x3239fe[_0x3f7184(0x30d)]?{'effort':_0x3239fe[_0x3f7184(0x30d)]}:{},..._0x3239fe[_0x3f7184(0x1f2)]?{'sessionId':_0x3239fe[_0x3f7184(0x1f2)]}:{},..._0x3239fe[_0x3f7184(0x2d7)]?{'verbose':!0x0}:{}};}async function Fn(_0x14186f){const _0x58a0d7=_0x586b23;let _0x4b5697=_0x14186f[_0x58a0d7(0x19b)]!=='text',_0x28f67e=_0x14186f[_0x58a0d7(0x203)]===void 0x0?null:Ne(_0x14186f[_0x58a0d7(0x203)],_0x58a0d7(0x21a)),_0x5ea934=!_0x4b5697&&!_0x28f67e&&!_0x14186f[_0x58a0d7(0x19d)]&&_0x14186f[_0x58a0d7(0x32e)]!=='-'&&!!process[_0x58a0d7(0x247)][_0x58a0d7(0x33c)]&&!!process[_0x58a0d7(0x35a)][_0x58a0d7(0x33c)],_0x5e9676=_0x14186f[_0x58a0d7(0x2e8)]===_0x58a0d7(0x1bd)?re(process['stdin'],_0x490a4c=>{const _0x5a53e1=_0x58a0d7;process['stderr']['write'](_0x490a4c[_0x5a53e1(0x1f5)]+':\x20ignored\x0a');}):null,_0x1c0db4=_0x5e9676?(await _0x5e9676[_0x58a0d7(0x260)]())[_0x58a0d7(0x2a5)]:void 0x0,_0x3d79c3=_0x5e9676?_0x1c0db4?.[_0x58a0d7(0x369)]??'':_0x5ea934?_0x14186f['prompt'][_0x58a0d7(0x34b)]():await H(_0x14186f[_0x58a0d7(0x32e)],process['stdin']);if(!_0x5ea934&&!_0x3d79c3&&(console[_0x58a0d7(0x1ce)](_0x58a0d7(0x2c7)),process[_0x58a0d7(0x181)](0x2)),!_0x4b5697){await be(_0x14186f,_0x3d79c3,_0x5ea934,null,_0x28f67e,null);return;}let _0x107451=!0x1,_0x5310a6=_0x22616b=>{const _0x39b68a=_0x58a0d7;_0x107451=!0x0,O(_0x1b33c8(_0x22616b)),(_0x22616b[_0x39b68a(0x338)]||_0x22616b[_0x39b68a(0x1e3)])&&(process[_0x39b68a(0x25e)]=0x1);},_0x1b2df4=Date['now']();try{await be(_0x14186f,_0x3d79c3,!0x1,_0x5310a6,_0x28f67e,_0x5e9676?{'messages':_0x5e9676,'first':_0x1c0db4,'close':()=>{const _0x2dcd8e=_0x58a0d7;process[_0x2dcd8e(0x247)][_0x2dcd8e(0x231)]();}}:null);}catch(_0x196f86){if(_0x107451)throw _0x196f86;process['stderr']['write']((_0x196f86 instanceof Error?_0x196f86[_0x58a0d7(0x2ca)]??_0x196f86[_0x58a0d7(0x1f5)]:String(_0x196f86))+'\x0a'),_0x5310a6(new _0xcd2426(_0x1b2df4)[_0x58a0d7(0x34c)]({'endedAtMs':Date[_0x58a0d7(0x35c)](),'usage':[],'error':_0x196f86}));}finally{_0x5e9676&&(process['stdin'][_0x58a0d7(0x231)](),_0x5e9676[_0x58a0d7(0x189)](void 0x0));}}async function be(_0x3ad958,_0x5a0323,_0x361a86,_0x690420,_0x53f6a0,_0x41bdc9){const _0x3fd5ec=_0x586b23;w={'lastType':null,'quiet':_0x3ad958[_0x3fd5ec(0x1c9)]};let _0x38f393=new Set(),_0xa7c8d5,_0x3a2b55=_0x48f821=>{const _0x31d4ae=_0x3fd5ec;(!_0x690420||_0x48f821[_0x31d4ae(0x26d)]===_0x31d4ae(0x1c6)||_0x48f821[_0x31d4ae(0x26d)]===_0x31d4ae(0x279))&&(_0xa7c8d5??_e)(_0x48f821);for(let _0x57feb2 of _0x38f393)_0x57feb2(_0x48f821);},_0xa66f7e=await V(),_0x4fea00=new _0x4a7653();_0x4fea00['onEvent'](_0x3a2b55);let _0x4b12bc=_0x2bb30b(_0x3ad958['env'],_0xa66f7e,_0x3ad958[_0x3fd5ec(0x1d1)]);X(_0x3ad958[_0x3fd5ec(0x1e2)],_0x3ad958[_0x3fd5ec(0x1d1)],_0x4b12bc);let _0x4b5f7f={'input':null},_0x26a854=_0x361a86?ne(()=>_0x4b5f7f[_0x3fd5ec(0x2eb)],_0x59043a=>{const _0x33fdc9=_0x3fd5ec;process['stderr'][_0x33fdc9(0x1e8)](_0x59043a);}):null,_0x10e75c=_0x2cb138=>_0x26a854?{..._0x2cb138,'askUser':_0x26a854}:_0x2cb138,_0x4955c9=_0x10e75c(ke(_0x3ad958,_0xa66f7e,_0x4b12bc,{'oneTurn':!_0x361a86})),_0xe2a1c=!0x1,_0x5b3416=!0x1,_0x1dfc95,_0x20e7d8=()=>_0x1dfc95??=_0x4fea00[_0x3fd5ec(0x2d5)](),_0x130df8=()=>{const _0x2e7e14=_0x3fd5ec;_0x5b3416&&process[_0x2e7e14(0x181)](0x82),_0x5b3416=!0x0,process[_0x2e7e14(0x1bb)][_0x2e7e14(0x1e8)](_0x2e7e14(0x2f1)),_0xe2a1c&&_0x4fea00[_0x2e7e14(0x1fb)]()[_0x2e7e14(0x382)](_0x397616=>console[_0x2e7e14(0x1ce)](_0x397616))[_0x2e7e14(0x2f3)](_0x20e7d8)[_0x2e7e14(0x2f3)](()=>process['exit'](0x82),_0x2d5ff4=>{const _0x131e3e=_0x2e7e14;console[_0x131e3e(0x1ce)](_0x2d5ff4),process[_0x131e3e(0x181)](0x82);});};process['on'](_0x3fd5ec(0x332),_0x130df8);let _0x5b3cd7=_0x3ad958[_0x3fd5ec(0x367)],_0x706441=async _0x4d73aa=>{const _0x14f0e1=_0x3fd5ec;let _0x6efaf3=_0x5b3cd7;_0x5b3cd7=[];let _0x3adc22=()=>_0x4fea00[_0x14f0e1(0x2d0)](_0x4d73aa,{'attachments':_0x6efaf3});try{return await _0x3adc22();}catch(_0x4d8dc4){if(_0x5b3416||!Ln(_0x4d8dc4)||!process['stdin'][_0x14f0e1(0x33c)]||_0x3ad958[_0x14f0e1(0x1e2)]===_0x14f0e1(0x2af)||!(_0x3ad958[_0x14f0e1(0x1e2)]||_0xa66f7e[_0x14f0e1(0x320)]))throw _0x4d8dc4;process[_0x14f0e1(0x1bb)][_0x14f0e1(0x1e8)]('\x0a⚠️\x20\x20Auth\x20expired.\x20Opening\x20browser\x20to\x20re-login…\x0a');let _0x509fc6=_0x4fea00[_0x14f0e1(0x2fe)]()??_0x3ad958['sessionId'],_0x41b9de=await _0x1e98a3(_0x3ad958[_0x14f0e1(0x1e2)]?{'env':_0x3ad958[_0x14f0e1(0x1e2)],'tenant':Q(_0xa66f7e,_0x4fc387[_0x3ad958[_0x14f0e1(0x1e2)]]),'skipEnvCheck':!0x0}:{'baseUrl':_0xa66f7e[_0x14f0e1(0x320)],'tenant':_0xa66f7e[_0x14f0e1(0x180)],'skipEnvCheck':!0x0}),_0xf6a377={'text':'','failed':!0x1,'sessionId':_0x509fc6};return _0x5b3416||(_0xe2a1c=!0x1,await _0x20e7d8(),_0x5b3416)?_0xf6a377:(_0x4fea00=new _0x4a7653(),_0x1dfc95=void 0x0,_0x4fea00['onEvent'](_0x3a2b55),_0xa66f7e=_0x41b9de,await _0x4fea00[_0x14f0e1(0x31b)]({..._0x10e75c(ke(_0x3ad958,_0xa66f7e,_0x4b12bc,{'oneTurn':!_0x361a86})),..._0x509fc6?{'sessionId':_0x509fc6}:{}}),_0xe2a1c=!0x0,_0x5b3416?_0xf6a377:_0x3adc22());}};try{if(await _0x4fea00[_0x3fd5ec(0x31b)](_0x4955c9),_0xe2a1c=!0x0,_0x5b3416)return;if(_0x361a86)await Bn({'prompt':_0x5a0323,'sendMessage':_0x706441,'onSigint':_0x130df8,'setAnswerInput':_0x3a9456=>{const _0x48d8f4=_0x3fd5ec;_0x4b5f7f[_0x48d8f4(0x2eb)]=_0x3a9456;},'registerEventPrinter':_0x39b493=>(_0xa7c8d5=_0x39b493,()=>{_0xa7c8d5=void 0x0;})});else{if(_0x690420||_0x53f6a0){let _0x295a66=_0x3ad958[_0x3fd5ec(0x19b)]===_0x3fd5ec(0x1bd)?_0x359a88=>O(_0x313ad8(_0x359a88)):()=>{},_0x2d2aef=_0x41bdc9?ie({'input':_0x41bdc9,'getAgent':()=>_0x4fea00,'replay':_0x3ad958['replayUserMessages'],'onEvent':_0x561cf3=>(_0x38f393[_0x3fd5ec(0x200)](_0x561cf3),()=>{_0x38f393['delete'](_0x561cf3);}),'write':O,'isRunStopNotice':_0x4b5374,'actionableErrorText':_0x21aa46,'warn':_0x1223b2=>{const _0x277c05=_0x3fd5ec;process[_0x277c05(0x1bb)][_0x277c05(0x1e8)](_0x1223b2);}}):null,_0x3d08c8=await _0xb41006({'onEvent':_0x2fa6ca=>(_0x38f393[_0x3fd5ec(0x200)](_0x2fa6ca),()=>{const _0x10db8d=_0x3fd5ec;_0x38f393[_0x10db8d(0x278)](_0x2fa6ca);}),'sendMessage':async _0x4c8f59=>{const _0x48745c=_0x3fd5ec;try{let _0x521d76=await _0x706441(_0x4c8f59);return _0x2d2aef?await _0x2d2aef[_0x48745c(0x361)](_0x521d76):_0x521d76;}finally{_0x2d2aef?.[_0x48745c(0x2c9)]();}},'getSessionId':()=>_0x4fea00['getSessionId'](),'getTurnUsageHistory':_0x54558d=>_0x4fea00['getTurnUsageHistory'](_0x54558d),'complete':_0x4fc1b7=>_0x4fea00[_0x3fd5ec(0x23a)](_0x4fc1b7)},_0x5a0323,void 0x0,_0x295a66,_0x53f6a0?{'outputSchema':_0x53f6a0}:void 0x0);_0x690420?_0x690420(_0x3d08c8):Mn(_0x3d08c8);}else await _0x706441(_0x5a0323);}}catch(_0x1f4b60){if(!_0x5b3416)throw _0x1f4b60;}finally{try{await _0x20e7d8();}finally{process[_0x3fd5ec(0x386)](_0x3fd5ec(0x332),_0x130df8),_0x5b3416&&(process[_0x3fd5ec(0x25e)]=0x82);}}}function Mn(_0x247091){const _0x5db2aa=_0x586b23;_0x247091[_0x5db2aa(0x1e3)]?(console[_0x5db2aa(0x1ce)](_0x5db2aa(0x26a)+_0x247091[_0x5db2aa(0x1e3)][_0x5db2aa(0x1f5)]),process['exitCode']=0x1):_0x247091['isError']?(console[_0x5db2aa(0x1ce)]('No\x20structured\x20output:\x20the\x20turn\x20failed\x20('+_0x247091[_0x5db2aa(0x1ce)]+').'),process[_0x5db2aa(0x25e)]=0x1):process[_0x5db2aa(0x35a)][_0x5db2aa(0x1e8)](JSON[_0x5db2aa(0x282)](_0x247091[_0x5db2aa(0x1aa)],null,0x2)+'\x0a');}function jn(_0x576bd9,_0x21e664){const _0x6bb849=_0x586b23;let _0x156dfd=process[_0x6bb849(0x35a)][_0x6bb849(0x1e8)]['bind'](process[_0x6bb849(0x35a)]),_0x558dff=!0x1;return process[_0x6bb849(0x35a)][_0x6bb849(0x1e8)]=(..._0x596934)=>{if(!_0x558dff)return _0x156dfd(..._0x596934);_0x300f2c(_0x21e664,0x0),_0x2e237f(_0x21e664,0x0);let _0xa341e1=_0x156dfd(..._0x596934);return _0x576bd9['prompt'](!0x0),_0xa341e1;},{'show':()=>{const _0x4b1f5a=_0x6bb849;_0x558dff=!0x0,_0x576bd9[_0x4b1f5a(0x32e)]();},'hide':()=>{_0x558dff=!0x1;},'erase':()=>{_0x558dff&&(_0x300f2c(_0x21e664,0x0),_0x2e237f(_0x21e664,0x0)),_0x558dff=!0x1;},'restore':()=>{const _0x2a4b79=_0x6bb849;_0x558dff=!0x1,process[_0x2a4b79(0x35a)]['write']=_0x156dfd;}};}async function Bn({prompt:_0x192e9c,sendMessage:_0x86b087,onSigint:_0x384b9e,setAnswerInput:_0x127e6c,registerEventPrinter:_0x51f78b}){const _0x2e0a5b=_0x586b23;let _0x22d9cf=_0xdfbf3c({'input':process['stdin'],'output':process[_0x2e0a5b(0x1bb)],'terminal':!0x0,'prompt':'You>\x20'}),_0x507fc2=jn(_0x22d9cf,process[_0x2e0a5b(0x1bb)]),_0x167eda=[],_0x1a1c1e,_0x35c0f9,_0x392998,_0x1ec576=!0x1,_0x8de742=!0x1,_0x3d3916=!0x1,_0x208556=Promise[_0x2e0a5b(0x245)](),_0x34d144,_0xd013ec=_0x51f78b(_0x5ebb40=>{const _0x3cd1f3=_0x2e0a5b;_0x5ebb40[_0x3cd1f3(0x26d)]===_0x3cd1f3(0x1c6)&&(_0x507fc2[_0x3cd1f3(0x1df)](),_0x208556=new Promise(_0x70bdbc=>{_0x34d144=_0x70bdbc;})),_e(_0x5ebb40),_0x5ebb40[_0x3cd1f3(0x26d)]===_0x3cd1f3(0x32f)&&(_0x34d144?.(),_0x34d144=void 0x0,!_0x3d3916&&!_0x1ec576&&_0x507fc2[_0x3cd1f3(0x233)]());}),_0x31f9a1=()=>{const _0x209ab4=_0x2e0a5b;_0x8de742=!0x0,_0x34d144?.(),_0x384b9e(),_0x22d9cf[_0x209ab4(0x18c)]();};_0x22d9cf['on'](_0x2e0a5b(0x207),_0x1bf5f2=>{const _0x1140cc=_0x2e0a5b;_0x392998?_0x392998(_0x1bf5f2):_0x1a1c1e?_0x1a1c1e[_0x1140cc(0x24b)](_0x1bf5f2):_0x35c0f9?_0x35c0f9(_0x1bf5f2):_0x167eda[_0x1140cc(0x24b)](_0x1bf5f2);}),_0x22d9cf[_0x2e0a5b(0x265)]('close',()=>{_0x1ec576=!0x0,_0x507fc2['hide'](),_0x1a1c1e&&!_0x8de742&&_0x31f9a1(),_0x35c0f9?.(null);});let _0x591760=()=>_0x167eda[_0x2e0a5b(0x21f)]>0x0?Promise['resolve'](_0x167eda['shift']()):_0x1ec576?Promise[_0x2e0a5b(0x245)](null):new Promise(_0x121d5f=>{_0x35c0f9=_0x1e0758=>{_0x35c0f9=void 0x0,_0x121d5f(_0x1e0758);};});_0x127e6c({'readLine':(_0x21ed95,_0x2414ec)=>new Promise((_0x59bd6f,_0x15fe88)=>{const _0x1258c5=_0x2e0a5b;if(_0x1ec576&&!_0x1a1c1e){_0x59bd6f(null);return;}_0x1a1c1e??=[];let _0x534420=_0x1a1c1e['shift']();if(_0x534420!==void 0x0){_0x59bd6f(_0x534420);return;}let _0x4e5adb=()=>{const _0x4ea8cd=_0x33b8;_0x392998=void 0x0,_0x2414ec['removeEventListener']('abort',_0x2f3afd),_0x507fc2[_0x4ea8cd(0x301)](),_0x22d9cf[_0x4ea8cd(0x333)](_0x4ea8cd(0x2e9));},_0x2f3afd=()=>{_0x4e5adb(),_0x15fe88(new Error('The\x20turn\x20was\x20cancelled.'));};_0x2414ec['addEventListener'](_0x1258c5(0x2ee),_0x2f3afd,{'once':!0x0}),!_0x1ec576&&(_0x392998=_0x3dd335=>{_0x4e5adb(),_0x59bd6f(_0x3dd335);},_0x22d9cf[_0x1258c5(0x333)](_0x21ed95),_0x507fc2['show']());}),'endQuestions':()=>{const _0x441bf0=_0x2e0a5b;_0x1a1c1e&&_0x167eda[_0x441bf0(0x24b)](..._0x1a1c1e),_0x1a1c1e=void 0x0;}}),_0x22d9cf['on'](_0x2e0a5b(0x332),_0x31f9a1),process['stderr'][_0x2e0a5b(0x1e8)](_0x2e0a5b(0x1d0));let _0x17f1ad=async _0x74427f=>{_0x3d3916=!0x0;try{await _0x86b087(_0x74427f);}finally{_0x3d3916=!0x1;}};try{if(_0x192e9c&&await _0x17f1ad(_0x192e9c),_0x8de742)return;!_0x1ec576&&!_0x34d144&&_0x507fc2[_0x2e0a5b(0x233)]();for(let _0x183e65=await _0x591760();_0x183e65!==null&&(_0x507fc2[_0x2e0a5b(0x301)](),!_0x8de742);_0x183e65=await _0x591760()){let _0x5339f0=_0x183e65['trim']();if(_0x5339f0===_0x2e0a5b(0x254))break;_0x5339f0&&await _0x17f1ad(_0x5339f0),!_0x1ec576&&!_0x34d144&&_0x507fc2[_0x2e0a5b(0x233)]();}for(;!_0x8de742&&_0x34d144;)await _0x208556;}finally{_0x127e6c(null),_0xd013ec(),_0x507fc2['restore'](),_0x22d9cf[_0x2e0a5b(0x386)](_0x2e0a5b(0x332),_0x31f9a1),_0x22d9cf[_0x2e0a5b(0x18c)]();}}async function Jn(){const _0xf1485d=_0x586b23;let _0x11b7c2=Kt(process[_0xf1485d(0x1dd)][_0xf1485d(0x30c)](0x2));if(_0x11b7c2[_0xf1485d(0x19b)]===_0xf1485d(0x369)){await Se(_0x11b7c2);return;}let _0x1d24b4=Qt();try{await Se(_0x11b7c2);}finally{_0x1d24b4();}}async function Se(_0x4d0691){const _0x3a2c4e=_0x586b23;if(_0x4d0691[_0x3a2c4e(0x35d)]){qt();return;}if(_0x4d0691['version']){console['log'](zt());return;}if(_0x4d0691[_0x3a2c4e(0x322)]==='login'){await _n(_0x4d0691);return;}if(_0x4d0691[_0x3a2c4e(0x322)]===_0x3a2c4e(0x19e)){await Pn(_0x4d0691[_0x3a2c4e(0x32e)]);return;}if(_0x4d0691[_0x3a2c4e(0x322)]==='logout'){await Zt();return;}if(_0x4d0691[_0x3a2c4e(0x322)]==='whoami'){await en(_0x4d0691);return;}if(_0x4d0691[_0x3a2c4e(0x322)]===_0x3a2c4e(0x225)){await on(_0x4d0691);return;}if(_0x4d0691['subcommand']===_0x3a2c4e(0x22a)){await mn(_0x4d0691);return;}if(_0x4d0691[_0x3a2c4e(0x322)]===_0x3a2c4e(0x2b2)){await an(_0x4d0691);return;}if(_0x4d0691[_0x3a2c4e(0x322)]===_0x3a2c4e(0x313)){await hn(_0x4d0691);return;}if(_0x4d0691['subcommand']===_0x3a2c4e(0x259)||_0x4d0691[_0x3a2c4e(0x322)]==='rerank'||_0x4d0691[_0x3a2c4e(0x322)]==='verify'){await bn(_0x4d0691,_0x4d0691[_0x3a2c4e(0x322)]);return;}if(_0x4d0691[_0x3a2c4e(0x322)]===_0x3a2c4e(0x23a)){await vn(_0x4d0691);return;}if(_0x4d0691['subcommand']===_0x3a2c4e(0x2cc)){await xn(_0x4d0691);return;}if(_0x4d0691[_0x3a2c4e(0x322)]===_0x3a2c4e(0x295)){await Tn(_0x4d0691);return;}if(_0x4d0691[_0x3a2c4e(0x322)]===_0x3a2c4e(0x36d)){await Nn(_0x4d0691);return;}if(_0x4d0691['subcommand']===_0x3a2c4e(0x351)){await _0x2286c4(_0x4d0691[_0x3a2c4e(0x32e)],{'runnerUrl':_0x4d0691[_0x3a2c4e(0x18d)],'backendUrl':_0x4d0691[_0x3a2c4e(0x1d1)],'interopPath':_0x4d0691[_0x3a2c4e(0x1e0)],'workerId':_0x4d0691[_0x3a2c4e(0x215)]});return;}if(_0x4d0691[_0x3a2c4e(0x251)]){await sn();return;}await Fn(_0x4d0691);}var Hn=process.env.NODE_ENV===_0x586b23(0x22c)||!!process.env.JEST_WORKER_ID;Hn||Jn()[_0x586b23(0x382)](_0x5c4086=>{const _0x24bf39=_0x586b23;console[_0x24bf39(0x1ce)](_0x5c4086['stack']||_0x5c4086['message']||_0x5c4086),process[_0x24bf39(0x181)](0x1);});export{Wt as CARTOGRAPHER_SKILLS,pe as EFFORT_TIERS,Yt as IMPLICIT_STDIN_IDLE_MS,ke as buildInitOptions,Jn as main,Kt as parseArgs,zt as readCliVersion,H as resolvePrompt,Qt as routeStdoutToStderr,m as writeCommandResult};
2
+ const _0xfbbd45=_0x3b39;(function(_0x15739a,_0x327c04){const _0xffa800=_0x3b39,_0x2b795c=_0x15739a();while(!![]){try{const _0x475178=-parseInt(_0xffa800(0x18e))/0x1*(-parseInt(_0xffa800(0x153))/0x2)+parseInt(_0xffa800(0x128))/0x3+-parseInt(_0xffa800(0x222))/0x4+-parseInt(_0xffa800(0x237))/0x5+-parseInt(_0xffa800(0x284))/0x6+parseInt(_0xffa800(0x1fd))/0x7+-parseInt(_0xffa800(0x16b))/0x8;if(_0x475178===_0x327c04)break;else _0x2b795c['push'](_0x2b795c['shift']());}catch(_0x5c5a65){_0x2b795c['push'](_0x2b795c['shift']());}}}(_0x34a6,0xc14e9));const __dirname=import.meta.dirname;import _0x35be10 from'fs';import _0x57dac8 from'path';function _0x3b39(_0x3551af,_0x43356d){_0x3551af=_0x3551af-0x128;const _0x34a6a5=_0x34a6();let _0x3b3917=_0x34a6a5[_0x3551af];return _0x3b3917;}import{clearLine as _0x129d64,createInterface as _0x6ea595,cursorTo as _0x5b5e43}from'node:readline';import{isOnStepGrid as _0x1a75eb}from'@uipath/delegate-sdk';var L='userinput';function E(_0x551789){const _0x2c024f=_0x3b39;return _0x551789[_0x2c024f(0x247)](/\u001b\[[0-?]*[ -/]*[@-~]|\u001b\][^\u0007\u001b]*(\u0007|\u001b\\)?|\u001b./g,'')[_0x2c024f(0x247)](/[\u0000-\u0008\u000b-\u001f\u007f-\u009f]/g,'');}function ee(_0x12256f){return E(_0x12256f['label']??(_0x12256f['kind']===L?'Something\x20else':_0x12256f['id']));}function Ce(_0x350642,_0x52a2d0,_0x3d9b2f){const _0x3c9865=_0x3b39;let _0x5ca376=[''+(_0x3d9b2f>0x1?'['+_0x52a2d0+'/'+_0x3d9b2f+']\x20':'')+E(_0x350642[_0x3c9865(0x1db)])+(_0x350642['optional']?'\x20(optional)':''),E(_0x350642['question'])];return _0x350642[_0x3c9865(0x152)]===_0x3c9865(0x1b0)&&_0x350642[_0x3c9865(0x135)][_0x3c9865(0x317)]((_0x21f39b,_0x313a33)=>{const _0x447a73=_0x3c9865;let _0x444dd5=_0x21f39b['kind']===L?_0x447a73(0x2b3):'',_0x2bcec4=_0x21f39b[_0x447a73(0x172)]?_0x447a73(0x2ab)+E(_0x21f39b['description']):'';_0x5ca376['push']('\x20\x20'+(_0x313a33+0x1)+'.\x20'+ee(_0x21f39b)+_0x444dd5+_0x2bcec4);}),_0x5ca376['join']('\x0a');}function te(_0x21e381,_0x193460){const _0x31fe43=_0x3b39;let _0x290181=_0x21e381['split'](/[\s,]+/)[_0x31fe43(0x266)](Boolean);if(_0x290181[_0x31fe43(0x2e2)]===0x0)return null;let _0x4e5c9b=_0x290181['map'](_0x84b5cc=>/^\d+$/[_0x31fe43(0x33c)](_0x84b5cc)?Number(_0x84b5cc):NaN);return _0x4e5c9b[_0x31fe43(0x1bc)](_0x2e07c2=>!Number[_0x31fe43(0x2cb)](_0x2e07c2)||_0x2e07c2<0x1||_0x2e07c2>_0x193460)?null:[...new Set(_0x4e5c9b)]['map'](_0x5bb95b=>_0x5bb95b-0x1);}function Oe(_0x1d77b8){const _0x7dfddc=_0x3b39;return typeof _0x1d77b8==_0x7dfddc(0x334)&&_0x1d77b8!==null&&_0x7dfddc(0x29b)in _0x1d77b8;}async function F(_0x2a5c8a,_0x4a47b4,_0x3b3d32,_0x4178c0){const _0x53a848=_0x3b39;for(;;){let _0x233e72=(await _0x2a5c8a(_0x4a47b4))[_0x53a848(0x2a9)]();if(_0x233e72==='')return;let _0x4c0ef9=_0x4178c0(_0x233e72);if(!Oe(_0x4c0ef9))return _0x4c0ef9;_0x3b3d32(_0x4c0ef9[_0x53a848(0x29b)]+'\x0a');}}async function Le(_0x1104a5,_0x254566,_0x54a4a9){const _0x227659=_0x3b39;if(_0x1104a5[_0x227659(0x135)][_0x227659(0x2e2)]===0x0||_0x1104a5[_0x227659(0x135)]['every'](_0x4c48a1=>_0x4c48a1['kind']===L)){let _0x26c907=(await _0x254566(_0x227659(0x1ea)))[_0x227659(0x2a9)]();return _0x26c907===''?void 0x0:{'text':_0x26c907};}let _0x32bdbe=_0x1104a5[_0x227659(0x135)][_0x227659(0x19d)](_0x562e40=>_0x562e40[_0x227659(0x1b4)]===L),_0x46ac25=_0x1104a5[_0x227659(0x238)]?_0x227659(0x270):_0x227659(0x23c)+(_0x32bdbe>=0x0?_0x227659(0x1d5):'')+_0x227659(0x24a),_0xe262b6=await F(_0x254566,_0x46ac25,_0x54a4a9,_0x2d240e=>{const _0x213687=_0x227659;let _0x5a7f7e=te(_0x2d240e,_0x1104a5[_0x213687(0x135)]['length']);return _0x5a7f7e&&(_0x1104a5[_0x213687(0x238)]||_0x5a7f7e['length']===0x1)?_0x5a7f7e:!_0x1104a5[_0x213687(0x238)]&&_0x32bdbe>=0x0?{'typed':_0x2d240e}:{'refused':_0x1104a5[_0x213687(0x238)]?_0x213687(0x1bf)+_0x1104a5['options']['length']+'.':_0x213687(0x21e)+_0x1104a5['options'][_0x213687(0x2e2)]+'.'};});if(_0xe262b6===void 0x0)return;if(!Array[_0x227659(0x1d6)](_0xe262b6))return{'text':_0xe262b6['typed']};let _0x25b644=_0xe262b6[_0x227659(0x29e)](_0x48a802=>_0x1104a5[_0x227659(0x135)][_0x48a802]['id']),_0x101f81=_0x25b644[_0x227659(0x204)](L)?await F(_0x254566,ee(_0x1104a5[_0x227659(0x135)][_0x32bdbe])+':\x20',_0x54a4a9,_0x1cc509=>_0x1cc509):void 0x0;if(!(_0x25b644[_0x227659(0x204)](L)&&_0x101f81===void 0x0))return _0x1104a5[_0x227659(0x238)]?{'optionIds':_0x25b644,..._0x101f81!==void 0x0?{'text':_0x101f81}:{}}:_0x101f81!==void 0x0?{'text':_0x101f81}:{'optionId':_0x25b644[0x0]};}async function Fe(_0x248115,_0x3c86e7,_0x191791){const _0x155c3c=_0x3b39;let _0x214c11={};for(let _0x2792a5 of _0x248115[_0x155c3c(0x226)]){let _0x1cb33b=_0x2792a5[_0x155c3c(0x210)]??_0x2792a5[_0x155c3c(0x278)],_0x4c7c4d=_0x2792a5['step']??0x1,_0x2e216f=_0x2792a5[_0x155c3c(0x27b)]?'\x20'+E(_0x2792a5[_0x155c3c(0x27b)]):'',_0x397de6=_0x155c3c(0x1b1)+_0x2792a5[_0x155c3c(0x278)]+'\x20to\x20'+_0x2792a5['max']+(_0x4c7c4d!==0x1?_0x155c3c(0x1fb)+_0x4c7c4d:''),_0x5d88b1=await F(_0x3c86e7,E(_0x2792a5[_0x155c3c(0x296)])+'\x20['+_0x2792a5[_0x155c3c(0x278)]+'-'+_0x2792a5[_0x155c3c(0x192)]+_0x2e216f+_0x155c3c(0x293)+_0x1cb33b+_0x155c3c(0x164),_0x191791,_0x3ba140=>{const _0x30c477=_0x155c3c;let _0x587dd1=Number(_0x3ba140);return Number['isFinite'](_0x587dd1)&&_0x587dd1>=_0x2792a5[_0x30c477(0x278)]&&_0x587dd1<=_0x2792a5[_0x30c477(0x192)]&&_0x1a75eb(_0x587dd1,_0x2792a5[_0x30c477(0x278)],_0x4c7c4d)?_0x587dd1:{'refused':_0x30c477(0x21c)+_0x397de6+'.'};});_0x214c11[_0x2792a5['id']]=_0x5d88b1??_0x1cb33b;}return{'values':_0x214c11};}async function Me(_0x1e2949,_0x3f5dfb,_0x4a188c){const _0x252b2f=_0x3b39;_0x4a188c(_0x1e2949[_0x252b2f(0x30f)][_0x252b2f(0x29e)]((_0x4d3e64,_0x52dc18)=>'\x20\x20'+(_0x52dc18+0x1)+'.\x20'+E(_0x4d3e64[_0x252b2f(0x296)]))['join']('\x0a')+'\x0a');let _0xfb29cb={};for(let _0x31ec98 of _0x1e2949[_0x252b2f(0x313)]){let _0x40abbe=await F(_0x3f5dfb,E(_0x31ec98['label'])+_0x252b2f(0x22d),_0x4a188c,_0x2dafc4=>{const _0x24cb4f=_0x252b2f;let _0xe83108=te(_0x2dafc4,_0x1e2949[_0x24cb4f(0x30f)][_0x24cb4f(0x2e2)]);return _0xe83108&&_0xe83108[_0x24cb4f(0x2e2)]===0x1?_0xe83108[0x0]:{'refused':_0x24cb4f(0x21e)+_0x1e2949[_0x24cb4f(0x30f)][_0x24cb4f(0x2e2)]+'.'};});if(_0x40abbe===void 0x0)continue;let _0x18befb=_0x1e2949['buckets'][_0x40abbe],_0x509c23={};for(let _0x2ceb26 of _0x18befb[_0x252b2f(0x1bd)]??[]){let _0x5cdd2b='\x20\x20'+E(_0x2ceb26[_0x252b2f(0x296)])+(_0x2ceb26['optional']?'\x20(optional)':'')+':\x20',_0x5ac462=await F(_0x3f5dfb,_0x5cdd2b,_0x4a188c,_0x34ddfe=>_0x34ddfe);for(;_0x5ac462===void 0x0&&!_0x2ceb26['optional'];)_0x4a188c(E(_0x2ceb26[_0x252b2f(0x296)])+_0x252b2f(0x2de)),_0x5ac462=await F(_0x3f5dfb,_0x5cdd2b,_0x4a188c,_0x5f29d1=>_0x5f29d1);_0x5ac462!==void 0x0&&(_0x509c23[_0x2ceb26['id']]=_0x5ac462);}_0xfb29cb[_0x31ec98['id']]={'bucket':_0x18befb['id'],...Object[_0x252b2f(0x15f)](_0x509c23)[_0x252b2f(0x2e2)]>0x0?{'subFields':_0x509c23}:{}};}return Object[_0x252b2f(0x15f)](_0xfb29cb)['length']>0x0?{'assignments':_0xfb29cb}:void 0x0;}async function je(_0xa55386,_0x529d96,_0x5dce0f){const _0x3b2abb=_0x3b39;if(_0xa55386['type']===_0x3b2abb(0x1b0))return Le(_0xa55386,_0x529d96,_0x5dce0f);if(_0xa55386[_0x3b2abb(0x152)]==='numeric')return Fe(_0xa55386,_0x529d96,_0x5dce0f);if(_0xa55386['type']===_0x3b2abb(0x290))return Me(_0xa55386,_0x529d96,_0x5dce0f);let _0x2a9bf5=(await _0x529d96(_0x3b2abb(0x27f)))[_0x3b2abb(0x2a9)]();return _0x2a9bf5===''?void 0x0:{'text':_0x2a9bf5};}function ne(_0x11c872,_0x4d7903){return async _0x3376ce=>{const _0x2ab0f0=_0x3b39;let _0x2b7519=_0x11c872();if(!_0x2b7519)throw new Error(_0x2ab0f0(0x13a));let _0x182409=async _0x4f5017=>{const _0xde2256=_0x2ab0f0;if(_0x3376ce[_0xde2256(0x1dc)]['aborted'])throw new Error(_0xde2256(0x2c5));let _0x543dd0=await _0x2b7519['readLine'](_0x4f5017,_0x3376ce[_0xde2256(0x1dc)]);if(_0x543dd0===null)throw new Error(_0xde2256(0x22c));return _0x543dd0;};try{_0x4d7903('\x0a'+(_0x3376ce[_0x2ab0f0(0x1cc)]?E(_0x3376ce[_0x2ab0f0(0x1cc)])+'\x0a':''));let _0x2482f8={};for(let [_0x3ceae7,_0x58929a]of _0x3376ce[_0x2ab0f0(0x261)]['entries']()){_0x4d7903('\x0a'+Ce(_0x58929a,_0x3ceae7+0x1,_0x3376ce[_0x2ab0f0(0x261)][_0x2ab0f0(0x2e2)])+'\x0a');let _0x4b3853=await je(_0x58929a,_0x182409,_0x4d7903);_0x4b3853!==void 0x0&&(_0x2482f8[_0x58929a['id']]=_0x4b3853);}return{'answers':_0x2482f8};}finally{_0x2b7519['endQuestions']();}};}import{createInterface as _0x54462a}from'node:readline';var j=[_0xfbbd45(0x1b0),_0xfbbd45(0x170)];function se(_0x5d631c){const _0x25b91f=_0xfbbd45;return j[_0x25b91f(0x204)](_0x5d631c);}var _=class extends Error{};function Je(_0xc5638c){const _0x324fb4=_0xfbbd45;if(typeof _0xc5638c==_0x324fb4(0x2b9))return _0xc5638c;if(!Array[_0x324fb4(0x1d6)](_0xc5638c))return;let _0x4a0aa3=[];for(let _0x462d6f of _0xc5638c){if(typeof _0x462d6f!=_0x324fb4(0x334)||_0x462d6f===null)return;let {type:_0x38d285,text:_0x231b73}=_0x462d6f;if(_0x38d285!==_0x324fb4(0x1b0)||typeof _0x231b73!=_0x324fb4(0x2b9))return;_0x4a0aa3[_0x324fb4(0x32e)](_0x231b73);}return _0x4a0aa3[_0x324fb4(0x1c4)]('\x0a');}function He(_0x3036bd){const _0x5d3e88=_0xfbbd45;if(_0x3036bd[_0x5d3e88(0x2a9)]()==='')return null;let _0x130b0f;try{_0x130b0f=JSON[_0x5d3e88(0x243)](_0x3036bd);}catch{throw new _(_0x5d3e88(0x18d));}if(typeof _0x130b0f!=_0x5d3e88(0x334)||_0x130b0f===null)throw new _(_0x5d3e88(0x17f));let {type:_0x463e78,message:_0x423b4d,uuid:_0x3e4351}=_0x130b0f;if(_0x463e78!=='user')throw new _(_0x5d3e88(0x2ec)+JSON['stringify'](_0x463e78)+_0x5d3e88(0x316));let _0x3faaff=Je(_0x423b4d?.[_0x5d3e88(0x2e8)]);if(_0x3faaff===void 0x0)throw new _('an\x20input\x20line\x20has\x20no\x20message.content,\x20a\x20string\x20or\x20a\x20list\x20of\x20text\x20blocks');if(_0x3faaff[_0x5d3e88(0x2a9)]()==='')throw new _(_0x5d3e88(0x30e));return{'text':_0x3faaff,'uuid':typeof _0x3e4351==_0x5d3e88(0x2b9)?_0x3e4351:void 0x0};}function oe(_0x3c17de,_0x3426b7){const _0x4bfeca=_0xfbbd45;return JSON['stringify']({'type':'user','message':{'role':'user','content':_0x3c17de[_0x4bfeca(0x1b0)]},'session_id':_0x3426b7,..._0x3c17de[_0x4bfeca(0x17c)]===void 0x0?{}:{'uuid':_0x3c17de[_0x4bfeca(0x17c)]},'isReplay':!0x0})+'\x0a';}async function*re(_0x3e47b3,_0x1fa223){const _0x48a94b=_0xfbbd45;let _0x2032d9=_0x54462a({'input':_0x3e47b3,'crlfDelay':0x1/0x0});try{for await(let _0x377d3c of _0x2032d9){let _0x43c673;try{_0x43c673=He(_0x377d3c);}catch(_0x2a5885){if(!(_0x2a5885 instanceof _))throw _0x2a5885;_0x1fa223(_0x2a5885);continue;}_0x43c673&&(yield _0x43c673);}}finally{_0x2032d9[_0x48a94b(0x2fd)]();}}import{BUSINESS_ANALYSIS_PRELOADED_SKILLS as _0x50b31f,DelegateAgent as _0x381698,cancelTurn as _0x2bcddb,InteropProcess as _0x2ba202,complete as _0x54f4ac,DEFAULT_MODEL as _0xbd4904,createBackendClient as _0x55d743,evaluate as _0x832557,isCompletionRequestError as _0x2178f6,isEvaluationRequestError as _0x28aeae,isTranscriptionError as _0x10c0e2,rerank as _0x41ae7a,transcribe as _0x7318e1,verify as _0x7b9509,acceptDelegation as _0x34c16d,cancelDelegation as _0x20cc73,claimDelegation as _0x15e3bb,completeDelegation as _0x31e35e,createDelegation as _0x167382,deleteDelegation as _0x39214a,dismissDelegation as _0x5003af,getSessionDelegations as _0x5607a1,isDelegationError as _0x4afe6d,listDelegations as _0x3bde5d,listOrgUsers as _0x3a5b35,previewDelegation as _0x296149,TurnResultCollector as _0x10039c,agentEventToJsonLine as _0x67e209,describeBaseUrlRejection as _0x29ade9,getActivitySummary as _0x432164,getAuthFilePath as _0x1ea832,getByoWarnings as _0x490799,getCartographerAllowance as _0x41e7e1,getDailyBreakdown as _0x2d6fc2,getLicensingSummary as _0x49e7db,getMonthlySpending as _0x450b71,isOutputFormat as _0x3e80e1,isCloudBaseUrl as _0x2ee7df,isSafeProjectFolderSegment as _0x404d45,listModels as _0x119ad6,listSessions as _0x258752,getSession as _0x286e21,renameSession as _0x1b8b3f,deleteSession as _0xc3e9e1,deleteSessionTaskLog as _0x3fd834,forkSession as _0x16fcfd,isBackendRequestError as _0x49bded,MAX_SESSION_PAGE_SIZE as _0x3e7ebc,listTenants as _0x43f056,loadAndRefreshAuth as _0x2355bd,loadAndRefreshSdkLogin as _0x57531f,parsePlatformBaseUrl as _0x30979a,resolveBackendUrl as _0x176dde,runHealthCheck as _0x6d500c,runHostCommand as _0x4d2af8,runLoginFlow as _0x5b4857,runTurnForResult as _0x405ae1,saveAuthData as _0x59cf01,switchTenant as _0x1ef51e,toJsonLine as _0xf2cc65,ENV_TO_CLOUD as _0x27fbc3,OUTPUT_FORMATS as _0x2a5358,isRunStopNotice as _0xa51482,extractActionableErrorText as _0x364d52}from'@uipath/delegate-sdk';function ie(_0x3d8b4f){const _0x149bb8=_0xfbbd45;let {input:_0xb4f991,getAgent:_0x55eb26,replay:_0x56127d,onEvent:_0x3099cb,write:_0x3167af,warn:_0x3fcec7,isRunStopNotice:_0x1eb107,actionableErrorText:_0x43e4bc}=_0x3d8b4f,_0x4f8dc0=0x0,_0x59cf60=0x0,_0x561a80=Promise[_0x149bb8(0x239)](),_0x23f6a0=!0x1,_0x391a0f=()=>{},_0x42dfe9=new Promise(_0x35e0cd=>{_0x391a0f=_0x35e0cd;}),_0x5bb9a5=[],_0x1a8646=_0x3099cb(_0x78f793=>{const _0x3dad28=_0x149bb8;_0x78f793[_0x3dad28(0x152)]==='turn_start'&&(_0x391a0f(),_0x5bb9a5[_0x3dad28(0x1b3)]()?.());}),_0x85bb2e=_0x1928f6=>{const _0x19ee63=_0x149bb8;_0x56127d&&_0x3167af(oe(_0x1928f6,_0x55eb26()[_0x19ee63(0x1d8)]()));},_0x5192c2=(async()=>{const _0x49c3cd=_0x149bb8;await _0x42dfe9;for await(let _0x210ed1 of _0xb4f991[_0x49c3cd(0x24d)]){if(_0x23f6a0)return;_0x4f8dc0===0x0&&(_0x59cf60=_0x55eb26()['getSessionMessages']()[_0x49c3cd(0x2e2)]),_0x4f8dc0++;let _0x1f64da=new Promise(_0x40fbae=>{const _0x1b773c=_0x49c3cd;_0x5bb9a5[_0x1b773c(0x32e)](()=>{_0x85bb2e(_0x210ed1),_0x40fbae();});}),_0x522b0e=()=>{_0x4f8dc0--,_0x5bb9a5['pop']();},_0x19306b=_0x55eb26()[_0x49c3cd(0x2bb)](_0x210ed1['text']);_0x561a80=_0x19306b[_0x49c3cd(0x193)](()=>{});try{await _0x19306b?await Promise[_0x49c3cd(0x2c1)]([_0x1f64da,_0x55eb26()['waitForIdle']()]):(_0x522b0e(),_0x3fcec7(_0x49c3cd(0x2a4)));}catch(_0xd6ced0){_0x522b0e(),_0x3fcec7(_0x49c3cd(0x231)+(_0xd6ced0 instanceof Error?_0xd6ced0[_0x49c3cd(0x180)]:String(_0xd6ced0))+'\x0a');}}})()[_0x149bb8(0x193)](_0x48207d=>{const _0x14cfb3=_0x149bb8;_0x3fcec7(_0x14cfb3(0x13b)+(_0x48207d instanceof Error?_0x48207d[_0x14cfb3(0x180)]:String(_0x48207d))+'\x0a');});return{'settle':async _0x53b9a7=>{const _0x3b236c=_0x149bb8;if(await _0x561a80,_0x4f8dc0===0x0)return _0x53b9a7;await _0x55eb26()['waitForIdle']();for(let _0x4532bd of _0x5bb9a5)_0x4532bd();_0x5bb9a5=[];let _0x46584a=_0x55eb26()[_0x3b236c(0x1b9)]()[_0x3b236c(0x17e)](_0x59cf60)['findLast'](_0x9fce6e=>_0x9fce6e[_0x3b236c(0x2d4)]==='actionable_error'||_0x1eb107(_0x9fce6e)||_0x9fce6e[_0x3b236c(0x152)]==='ai'&&_0x9fce6e['widget']!==_0x3b236c(0x28f)&&_0x9fce6e[_0x3b236c(0x2d4)]!==_0x3b236c(0x189)&&!!_0x9fce6e[_0x3b236c(0x2e8)]);if(!_0x46584a)return{..._0x53b9a7,'failed':!0x0,'text':_0x3b236c(0x21d)};let _0x31092b=_0x46584a[_0x3b236c(0x2d4)]==='actionable_error';return typeof _0x46584a['content']!='string'?{..._0x53b9a7,'failed':_0x31092b}:{..._0x53b9a7,'failed':_0x31092b,'text':_0x31092b?_0x43e4bc(_0x46584a[_0x3b236c(0x2e8)]):_0x46584a['content']};},'stop':()=>{const _0x3f316a=_0x149bb8;_0x23f6a0=!0x0,_0x1a8646(),_0xb4f991[_0x3f316a(0x2fd)]();}};}var Gt=['login','tenant',_0xfbbd45(0x2ae),_0xfbbd45(0x1e5),_0xfbbd45(0x1b5),_0xfbbd45(0x147),_0xfbbd45(0x252),_0xfbbd45(0x2d1),'usage',_0xfbbd45(0x185),_0xfbbd45(0x17d),_0xfbbd45(0x1a9),_0xfbbd45(0x163),_0xfbbd45(0x251),_0xfbbd45(0x1cb),_0xfbbd45(0x24b)],ue=['','models',_0xfbbd45(0x147),'check',_0xfbbd45(0x2d1),_0xfbbd45(0x23f),'evaluate',_0xfbbd45(0x17d),'verify',_0xfbbd45(0x163),_0xfbbd45(0x251),_0xfbbd45(0x1cb),_0xfbbd45(0x24b)],pe=[_0xfbbd45(0x2b7),_0xfbbd45(0x2f7),_0xfbbd45(0x2b2),'xhigh',_0xfbbd45(0x192)],Wt=_0x50b31f,B=_0xfbbd45(0x146);function b(_0x14a5ec,_0x11b5a1,_0x4cc4fb,_0x3b8544){const _0x2cc239=_0xfbbd45;let _0x3df6f8=_0x14a5ec[_0x11b5a1];return(!_0x3df6f8||_0x3df6f8[_0x2cc239(0x2e2)]>0x1&&_0x3df6f8[_0x2cc239(0x165)]('-'))&&(console[_0x2cc239(0x12f)](_0x4cc4fb+_0x2cc239(0x158)+_0x3b8544+'.'),process[_0x2cc239(0x1c6)](0x2)),_0x3df6f8;}function K(_0x293649,_0xe51981,_0x44ea86,_0x2798b6){const _0x26da69=_0xfbbd45;let _0x571aee=b(_0x293649,_0xe51981,_0x44ea86,_0x26da69(0x1d9)),_0x4a58cf=Number(_0x571aee);return(!/^\d+$/[_0x26da69(0x33c)](_0x571aee)||_0x4a58cf<0x1||!Number[_0x26da69(0x15d)](_0x4a58cf)||_0x2798b6!==void 0x0&&_0x4a58cf>_0x2798b6)&&(console[_0x26da69(0x12f)](_0x44ea86+_0x26da69(0x2d8)+(_0x2798b6===void 0x0?_0x26da69(0x2eb):_0x26da69(0x321)+_0x2798b6)+_0x26da69(0x2ee)+_0x571aee+'.'),process['exit'](0x2)),_0x4a58cf;}function Kt(_0x48244e){const _0x2941c0=_0xfbbd45;let _0x12b5ea={'subcommand':'','prompt':'','print':!0x1,'keepAlive':!0x1,'cleanup':!0x1,'headless':!0x1,'noComputerUse':!0x1,'cartographer':!0x1,'noConnections':!0x1,'noSecurity':!0x1,'noMemory':!0x1,'taskAutomation':!0x1,'quiet':!0x1,'verbose':!0x1,'outputFormat':_0x2941c0(0x1b0),'inputFormat':_0x2941c0(0x1b0),'replayUserMessages':!0x1,'preloadSkills':[],'attachments':[],'skipEnvCheck':!0x1,'includeSubAgents':!0x1,'operands':[],'help':!0x1,'version':!0x1};Gt[_0x2941c0(0x204)](_0x48244e[0x0])&&(_0x12b5ea[_0x2941c0(0x212)]=_0x48244e[0x0],_0x48244e=_0x48244e[_0x2941c0(0x17e)](0x1));let _0x37b3ba=[];for(let _0x31ad0f=0x0;_0x31ad0f<_0x48244e[_0x2941c0(0x2e2)];_0x31ad0f++){let _0x54bd1c=_0x48244e[_0x31ad0f];switch(_0x54bd1c){case _0x2941c0(0x2da):case'-p':_0x12b5ea[_0x2941c0(0x32d)]=!0x0;break;case'--keep-alive':_0x12b5ea[_0x2941c0(0x331)]=!0x0;break;case _0x2941c0(0x291):_0x12b5ea[_0x2941c0(0x1da)]=!0x0;break;case _0x2941c0(0x327):_0x12b5ea[_0x2941c0(0x190)]=!0x0;break;case'--no-computer-use':_0x12b5ea[_0x2941c0(0x179)]=!0x0;break;case _0x2941c0(0x33e):_0x12b5ea[_0x2941c0(0x146)]=!0x0,_0x12b5ea['noComputerUse']=!0x0,_0x12b5ea[_0x2941c0(0x235)][_0x2941c0(0x32e)](...Wt);break;case'--no-connections':_0x12b5ea['noConnections']=!0x0;break;case _0x2941c0(0x1f0):_0x12b5ea[_0x2941c0(0x12c)]=!0x0;break;case _0x2941c0(0x1f4):_0x12b5ea[_0x2941c0(0x19f)]=!0x0;break;case _0x2941c0(0x298):_0x12b5ea[_0x2941c0(0x14a)]=!0x0;break;case _0x2941c0(0x2bf):case'-q':_0x12b5ea['quiet']=!0x0;break;case _0x2941c0(0x1d4):_0x12b5ea[_0x2941c0(0x279)]=!0x0;break;case _0x2941c0(0x140):_0x12b5ea[_0x2941c0(0x2ba)]=_0x48244e[++_0x31ad0f];break;case _0x2941c0(0x301):_0x12b5ea['model']=_0x48244e[++_0x31ad0f];break;case _0x2941c0(0x18a):_0x12b5ea[_0x2941c0(0x314)]=_0x48244e[++_0x31ad0f];break;case'--interop':_0x12b5ea[_0x2941c0(0x33d)]=_0x48244e[++_0x31ad0f];break;case _0x2941c0(0x324):_0x12b5ea['workerId']=_0x48244e[++_0x31ad0f];break;case _0x2941c0(0x1a4):_0x12b5ea[_0x2941c0(0x235)][_0x2941c0(0x32e)](b(_0x48244e,++_0x31ad0f,_0x54bd1c,'a\x20skill\x20name'));break;case _0x2941c0(0x211):{let _0x549777=b(_0x48244e,++_0x31ad0f,_0x54bd1c,_0x2941c0(0x223));_0x404d45(_0x549777)||(console['error'](_0x2941c0(0x33b)+_0x549777+_0x2941c0(0x2a5)),process[_0x2941c0(0x1c6)](0x2)),_0x12b5ea[_0x2941c0(0x340)]=_0x549777;break;}case _0x2941c0(0x25f):_0x12b5ea['vertical']=b(_0x48244e,++_0x31ad0f,_0x54bd1c,'a\x20vertical\x20id');break;case'--output-format':{let _0x5b8ace=b(_0x48244e,++_0x31ad0f,_0x54bd1c,'a\x20format\x20('+_0x2a5358['join'](_0x2941c0(0x2e6))+')');_0x3e80e1(_0x5b8ace)||(console[_0x2941c0(0x12f)]('Invalid\x20--output-format:\x20'+_0x5b8ace+_0x2941c0(0x31b)+_0x2a5358['join']('\x20|\x20')+'.'),process['exit'](0x2)),_0x12b5ea[_0x2941c0(0x335)]=_0x5b8ace;break;}case _0x2941c0(0x181):{let _0x54b641=b(_0x48244e,++_0x31ad0f,_0x54bd1c,'a\x20format\x20('+j[_0x2941c0(0x1c4)]('\x20|\x20')+')');se(_0x54b641)||(console[_0x2941c0(0x12f)](_0x2941c0(0x1d7)+_0x54b641+'.\x20Use\x20'+j[_0x2941c0(0x1c4)]('\x20|\x20')+'.'),process[_0x2941c0(0x1c6)](0x2)),_0x12b5ea[_0x2941c0(0x203)]=_0x54b641;break;}case _0x2941c0(0x200):_0x12b5ea[_0x2941c0(0x14b)]=!0x0;break;case'--session':_0x12b5ea[_0x2941c0(0x262)]=b(_0x48244e,++_0x31ad0f,_0x54bd1c,_0x2941c0(0x336));break;case _0x2941c0(0x22e):_0x12b5ea[_0x2941c0(0x1f5)]=K(_0x48244e,++_0x31ad0f,_0x54bd1c);break;case'--limit':_0x12b5ea[_0x2941c0(0x2d2)]=K(_0x48244e,++_0x31ad0f,_0x54bd1c,_0x3e7ebc);break;case _0x2941c0(0x326):_0x12b5ea[_0x2941c0(0x2f5)]=!0x0;break;case _0x2941c0(0x1d0):_0x12b5ea['jsonSchemaPath']=b(_0x48244e,++_0x31ad0f,_0x54bd1c,_0x2941c0(0x2b4));break;case _0x2941c0(0x2cd):{let _0x3105f1=_0x57dac8[_0x2941c0(0x239)](process[_0x2941c0(0x1c0)](),b(_0x48244e,++_0x31ad0f,_0x54bd1c,_0x2941c0(0x30d)));_0x35be10[_0x2941c0(0x1ad)](_0x3105f1)||(console['error'](_0x2941c0(0x2c7)+_0x3105f1),process['exit'](0x2)),_0x12b5ea[_0x2941c0(0x1c1)][_0x2941c0(0x32e)](_0x3105f1);break;}case _0x2941c0(0x277):_0x12b5ea[_0x2941c0(0x280)]=b(_0x48244e,++_0x31ad0f,_0x54bd1c,_0x2941c0(0x2bd));break;case _0x2941c0(0x173):_0x12b5ea[_0x2941c0(0x31a)]=b(_0x48244e,++_0x31ad0f,_0x54bd1c,_0x2941c0(0x1e7));break;case _0x2941c0(0x208):_0x12b5ea[_0x2941c0(0x198)]=b(_0x48244e,++_0x31ad0f,_0x54bd1c,_0x2941c0(0x248));break;case _0x2941c0(0x30c):_0x12b5ea[_0x2941c0(0x188)]=K(_0x48244e,++_0x31ad0f,_0x54bd1c,0x16d);break;case'--working-dir':_0x12b5ea['workingDirectory']=_0x57dac8['resolve'](process[_0x2941c0(0x1c0)](),b(_0x48244e,++_0x31ad0f,_0x54bd1c,_0x2941c0(0x1eb)));break;case _0x2941c0(0x2d7):_0x12b5ea[_0x2941c0(0x1de)]=_0x57dac8[_0x2941c0(0x239)](process[_0x2941c0(0x1c0)](),b(_0x48244e,++_0x31ad0f,_0x54bd1c,'a\x20directory\x20path'));break;case _0x2941c0(0x1cf):{let _0xdbb46c=b(_0x48244e,++_0x31ad0f,_0x54bd1c,_0x2941c0(0x175));pe['includes'](_0xdbb46c)||(console[_0x2941c0(0x12f)](_0x2941c0(0x292)+_0xdbb46c+_0x2941c0(0x31b)+pe[_0x2941c0(0x1c4)](_0x2941c0(0x2e6))+'.'),process[_0x2941c0(0x1c6)](0x2)),_0x12b5ea[_0x2941c0(0x2ce)]=_0xdbb46c;break;}case'--tenant':{let _0x1d4c2f=_0x48244e[++_0x31ad0f];(!_0x1d4c2f||_0x1d4c2f[_0x2941c0(0x165)]('--'))&&(console['error'](_0x2941c0(0x187)),process[_0x2941c0(0x1c6)](0x2)),_0x12b5ea[_0x2941c0(0x13f)]=_0x1d4c2f;break;}case _0x2941c0(0x12e):{let _0x2bc977=_0x48244e[++_0x31ad0f];['alpha',_0x2941c0(0x22a),'production',_0x2941c0(0x26a)][_0x2941c0(0x204)](_0x2bc977)||(console[_0x2941c0(0x12f)]('Invalid\x20--env:\x20'+_0x2bc977+_0x2941c0(0x2dc)),process[_0x2941c0(0x1c6)](0x2)),_0x12b5ea[_0x2941c0(0x14d)]=_0x2bc977;break;}case'--url':case _0x2941c0(0x171):{let _0x45f012=b(_0x48244e,++_0x31ad0f,_0x54bd1c,_0x2941c0(0x1ce)),_0x45fe3f=_0x30979a(_0x45f012);if(_0x45fe3f['ok']===!0x1){console[_0x2941c0(0x12f)](_0x29ade9(_0x45f012,_0x45fe3f[_0x2941c0(0x241)])),process[_0x2941c0(0x1c6)](0x2);break;}_0x12b5ea[_0x2941c0(0x195)]=_0x45fe3f[_0x2941c0(0x32b)];break;}case _0x2941c0(0x311):_0x12b5ea[_0x2941c0(0x236)]=!0x0;break;case'-h':case'--help':_0x12b5ea[_0x2941c0(0x143)]=!0x0;break;case'-v':case _0x2941c0(0x159):_0x12b5ea[_0x2941c0(0x17b)]=!0x0;break;default:_0x54bd1c['startsWith']('--')&&(console[_0x2941c0(0x12f)](_0x2941c0(0x2c3)+_0x54bd1c),process[_0x2941c0(0x1c6)](0x2)),_0x37b3ba['push'](_0x54bd1c);}}return _0x12b5ea[_0x2941c0(0x13f)]!==void 0x0&&_0x12b5ea[_0x2941c0(0x212)]!==_0x2941c0(0x14e)&&(console[_0x2941c0(0x12f)](_0x2941c0(0x24f)),process[_0x2941c0(0x1c6)](0x2)),_0x12b5ea[_0x2941c0(0x195)]!==void 0x0&&_0x12b5ea[_0x2941c0(0x14d)]!==void 0x0&&(console[_0x2941c0(0x12f)]('Pass\x20either\x20--env\x20(a\x20named\x20cloud)\x20or\x20--url\x20(any\x20other\x20deployment),\x20not\x20both.'),process[_0x2941c0(0x1c6)](0x2)),_0x12b5ea[_0x2941c0(0x195)]!==void 0x0&&_0x12b5ea[_0x2941c0(0x212)]!=='login'&&(console[_0x2941c0(0x12f)](_0x2941c0(0x2b6)),process[_0x2941c0(0x1c6)](0x2)),_0x12b5ea['days']!==void 0x0&&_0x12b5ea[_0x2941c0(0x212)]!==_0x2941c0(0x23f)&&(console['error'](_0x2941c0(0x259)),process[_0x2941c0(0x1c6)](0x2)),_0x12b5ea[_0x2941c0(0x1d2)]!==void 0x0&&(_0x12b5ea['subcommand']!==_0x2941c0(0x163)&&_0x12b5ea[_0x2941c0(0x212)]!==''||_0x12b5ea[_0x2941c0(0x1da)])&&(console['error']('--json-schema\x20applies\x20to\x20prompts\x20and\x20to\x20`delegate-cli\x20complete`\x20only.'),process[_0x2941c0(0x1c6)](0x2)),_0x12b5ea[_0x2941c0(0x1c1)]['length']>0x0&&(_0x12b5ea['subcommand']!==''||_0x12b5ea[_0x2941c0(0x1da)])&&(console[_0x2941c0(0x12f)](_0x2941c0(0x25d)),process[_0x2941c0(0x1c6)](0x2)),_0x12b5ea[_0x2941c0(0x14a)]&&(_0x12b5ea[_0x2941c0(0x212)]!==''||_0x12b5ea[_0x2941c0(0x1da)])&&(console[_0x2941c0(0x12f)](_0x2941c0(0x294)),process[_0x2941c0(0x1c6)](0x2)),_0x12b5ea[_0x2941c0(0x14a)]&&(_0x12b5ea[_0x2941c0(0x190)]||_0x12b5ea[_0x2941c0(0x179)]||_0x12b5ea[_0x2941c0(0x1d3)]?.[_0x2941c0(0x2a9)]()===B)&&(console['error'](_0x2941c0(0x272)),process[_0x2941c0(0x1c6)](0x2)),_0x12b5ea[_0x2941c0(0x146)]&&(_0x12b5ea[_0x2941c0(0x1d3)]!==void 0x0&&_0x12b5ea[_0x2941c0(0x1d3)][_0x2941c0(0x2a9)]()!==B&&(console[_0x2941c0(0x12f)](_0x2941c0(0x2e7)+B+'\x20vertical,\x20so\x20it\x20cannot\x20run\x20as\x20--vertical\x20'+_0x12b5ea[_0x2941c0(0x1d3)]+'.\x20Drop\x20one\x20of\x20the\x20two.'),process[_0x2941c0(0x1c6)](0x2)),_0x12b5ea['vertical']=B),_0x12b5ea[_0x2941c0(0x236)]&&_0x12b5ea[_0x2941c0(0x212)]!=='login'&&(console[_0x2941c0(0x12f)](_0x2941c0(0x1cd)),process[_0x2941c0(0x1c6)](0x2)),_0x12b5ea[_0x2941c0(0x335)]!==_0x2941c0(0x1b0)&&!ue['includes'](_0x12b5ea[_0x2941c0(0x212)])&&(console['error'](_0x2941c0(0x1e4)+_0x12b5ea[_0x2941c0(0x335)]+_0x2941c0(0x20d)+ue[_0x2941c0(0x266)](Boolean)['join'](',\x20')+'.'),process['exit'](0x2)),(_0x12b5ea[_0x2941c0(0x203)]!==_0x2941c0(0x1b0)||_0x12b5ea[_0x2941c0(0x14b)])&&_0x12b5ea['subcommand']!==''&&(console[_0x2941c0(0x12f)](_0x2941c0(0x26e)),process[_0x2941c0(0x1c6)](0x2)),_0x12b5ea[_0x2941c0(0x14b)]&&_0x12b5ea[_0x2941c0(0x203)]!==_0x2941c0(0x170)&&(console['error'](_0x2941c0(0x1f2)),process[_0x2941c0(0x1c6)](0x2)),_0x12b5ea[_0x2941c0(0x203)]===_0x2941c0(0x170)&&_0x12b5ea[_0x2941c0(0x335)]!==_0x2941c0(0x170)&&(console[_0x2941c0(0x12f)](_0x2941c0(0x1ec)),process[_0x2941c0(0x1c6)](0x2)),(_0x12b5ea['page']!==void 0x0||_0x12b5ea[_0x2941c0(0x2d2)]!==void 0x0||_0x12b5ea[_0x2941c0(0x2f5)])&&_0x12b5ea['subcommand']!=='sessions'&&(console[_0x2941c0(0x12f)](_0x2941c0(0x337)),process['exit'](0x2)),(_0x12b5ea['delegateTo']!==void 0x0||_0x12b5ea['contextSummary']!==void 0x0)&&_0x12b5ea[_0x2941c0(0x212)]!==_0x2941c0(0x1cb)&&(console[_0x2941c0(0x12f)](_0x2941c0(0x2d5)),process[_0x2941c0(0x1c6)](0x2)),_0x12b5ea['turnId']!==void 0x0&&_0x12b5ea[_0x2941c0(0x212)]!=='sessions'&&(console[_0x2941c0(0x12f)](_0x2941c0(0x33f)),process[_0x2941c0(0x1c6)](0x2)),_0x12b5ea[_0x2941c0(0x235)]=[...new Set(_0x12b5ea[_0x2941c0(0x235)])],_0x12b5ea[_0x2941c0(0x16e)]=_0x37b3ba,_0x12b5ea[_0x2941c0(0x136)]=_0x37b3ba[_0x2941c0(0x1c4)]('\x20'),_0x12b5ea[_0x2941c0(0x203)]===_0x2941c0(0x170)&&_0x12b5ea['prompt']!==''&&(console['error']('--input-format\x20stream-json\x20reads\x20the\x20prompt\x20from\x20stdin:\x20pass\x20no\x20prompt\x20argument.'),process[_0x2941c0(0x1c6)](0x2)),_0x12b5ea;}var O=_0xb10a76=>{const _0x10f80e=_0xfbbd45;process[_0x10f80e(0x299)][_0x10f80e(0x2cf)](_0xb10a76);};function Qt(){const _0x36c85d=_0xfbbd45;let _0x3def73=process[_0x36c85d(0x299)][_0x36c85d(0x2cf)],_0x21e754=_0x3def73[_0x36c85d(0x2ef)](process[_0x36c85d(0x299)]),_0x2777b2=O;return O=_0x28ef26=>{_0x21e754(_0x28ef26);},process[_0x36c85d(0x299)][_0x36c85d(0x2cf)]=(..._0x506523)=>process[_0x36c85d(0x2fa)][_0x36c85d(0x2cf)](..._0x506523),()=>{const _0x36a067=_0x36c85d;process[_0x36a067(0x299)][_0x36a067(0x2cf)]=_0x3def73,O=_0x2777b2;};}function m(_0x183daf,_0x5517b9,_0x4a7bf4){const _0x5f2a22=_0xfbbd45;if(_0x183daf['outputFormat']===_0x5f2a22(0x1b0)){_0x4a7bf4(_0x5517b9);return;}O(_0xf2cc65(_0x5517b9));}function qt(){const _0x3ceead=_0xfbbd45;let _0x45aa69=_0x3ceead(0x2e1)[_0x3ceead(0x2a9)]();console[_0x3ceead(0x33a)](_0x45aa69);}function zt(){const _0x3feb70=_0xfbbd45;try{return JSON['parse'](_0x35be10['readFileSync'](_0x57dac8[_0x3feb70(0x1c4)](__dirname,'..',_0x3feb70(0x157)),'utf-8'))[_0x3feb70(0x17b)]||_0x3feb70(0x1a3);}catch{return _0x3feb70(0x1a3);}}var Yt=0x7d0;async function me(_0x2aac27,_0x3b9e6a){const _0x378d80=_0xfbbd45;let _0x1884f8=_0x3b9e6a?[_0x3b9e6a]:[];for await(let _0x471154 of _0x2aac27)_0x1884f8[_0x378d80(0x32e)](Buffer[_0x378d80(0x144)](_0x471154));return Buffer['concat'](_0x1884f8)['toString'](_0x378d80(0x2f9))[_0x378d80(0x2a9)]();}function Vt(_0x20fa16,_0x28dac4){return new Promise(_0x57153a=>{const _0x131cd0=_0x3b39;let _0x1e166f=_0x455008=>{const _0x1911b1=_0x3b39;clearTimeout(_0x25a215),_0x20fa16['off']('data',_0x63eef3),_0x20fa16[_0x1911b1(0x2e3)](_0x1911b1(0x1b8),_0x19f0b1),_0x20fa16[_0x1911b1(0x2e3)]('error',_0x19f0b1),_0x20fa16[_0x1911b1(0x2fb)](),_0x57153a(_0x455008);},_0x63eef3=_0x3baff6=>_0x1e166f(Buffer[_0x131cd0(0x144)](_0x3baff6)),_0x19f0b1=()=>_0x1e166f(null),_0x25a215=setTimeout(()=>_0x1e166f(null),_0x28dac4);_0x20fa16['on']('data',_0x63eef3),_0x20fa16['on']('end',_0x19f0b1),_0x20fa16['on']('error',_0x19f0b1),_0x20fa16[_0x131cd0(0x2e0)]();});}async function H(_0x4bcdc3,_0x1d3d0c,_0x5e60c4=Yt){let _0x1b100f=_0x4bcdc3==='-';if(!_0x1b100f&&_0x4bcdc3)return _0x4bcdc3;if(!_0x1b100f&&_0x1d3d0c['isTTY'])return'';if(_0x1b100f)return me(_0x1d3d0c,null);let _0x276bae=await Vt(_0x1d3d0c,_0x5e60c4);return _0x276bae?me(_0x1d3d0c,_0x276bae):'';}function z(){const _0x412976=_0xfbbd45;return _0x57dac8['join'](process.env.HOME||process.env.USERPROFILE||'',_0x412976(0x1fe),_0x412976(0x183));}function G(_0x546d2c){const _0x565017=_0xfbbd45;try{let _0xfe6fc7=JSON['parse'](_0x35be10[_0x565017(0x1ca)](_0x546d2c,_0x565017(0x2f9)));return!_0xfe6fc7[_0x565017(0x216)]||!_0xfe6fc7[_0x565017(0x283)]||!_0xfe6fc7[_0x565017(0x20c)]?null:_0xfe6fc7;}catch{return null;}}function Xt(){const _0x473dbc=_0xfbbd45;let _0x57dbe4=[{'file':_0x1ea832(),'isDesktopFallback':!0x1},{'file':z(),'isDesktopFallback':!0x0}];for(let _0x17fa35 of _0x57dbe4){let _0x55d9d8=G(_0x17fa35[_0x473dbc(0x305)]);if(_0x55d9d8)return{..._0x17fa35,'auth':_0x55d9d8};}return null;}async function Zt(){const _0x121df1=_0xfbbd45;let _0x16cac1=_0x1ea832();if(!_0x35be10[_0x121df1(0x1ad)](_0x16cac1)){let _0x250f37=z();console[_0x121df1(0x33a)](G(_0x250f37)?'No\x20CLI\x20login\x20found.\x20Note:\x20the\x20CLI\x20is\x20currently\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20'+_0x250f37+_0x121df1(0x22f):_0x121df1(0x254));return;}_0x35be10['rmSync'](_0x16cac1),console[_0x121df1(0x33a)](_0x121df1(0x1ae)+_0x16cac1);}async function en(_0x3ad746){const _0x5284fa=_0xfbbd45;let _0x7ee56e=Y(),_0x1d8226,_0x14cbed;if(_0x7ee56e)_0x1d8226=_0x7ee56e,_0x14cbed=_0x5284fa(0x207);else{let _0x3288e4=Xt();if(!_0x3288e4)throw new Error(Te);_0x1d8226=_0x3288e4['auth'],_0x14cbed=_0x3288e4[_0x5284fa(0x1a6)]?_0x3288e4['file']+_0x5284fa(0x1a2):_0x3288e4[_0x5284fa(0x305)];}let _0x438df5={'source':_0x14cbed,'baseUrl':_0x1d8226[_0x5284fa(0x32b)]??null,'deployment':tn(_0x1d8226[_0x5284fa(0x32b)]),'organization':{'id':_0x1d8226[_0x5284fa(0x20c)],'slug':_0x1d8226[_0x5284fa(0x1df)]??null},'tenant':{'id':_0x1d8226['tenantId'],'name':_0x1d8226['tenantName']??null},'tokenExpiresAt':_0x1d8226[_0x5284fa(0x168)]?new Date(_0x1d8226[_0x5284fa(0x168)]*0x3e8)[_0x5284fa(0x320)]():null};m(_0x3ad746,_0x438df5,()=>{const _0x5e3561=_0x5284fa;let _0x21cd0f=[_0x5e3561(0x21f)+_0x14cbed,_0x5e3561(0x2ca)+(_0x1d8226[_0x5e3561(0x32b)]??'unknown'),_0x5e3561(0x2f3)+_0x438df5['deployment'],_0x5e3561(0x1bb)+(_0x1d8226[_0x5e3561(0x1df)]??_0x5e3561(0x310))+'\x20('+_0x1d8226[_0x5e3561(0x20c)]+')',_0x5e3561(0x263)+(_0x1d8226[_0x5e3561(0x339)]??'unknown\x20slug')+'\x20('+_0x1d8226[_0x5e3561(0x283)]+')'];if(_0x1d8226[_0x5e3561(0x168)]){let _0x282f18=_0x1d8226['expiresAt']-Math['floor'](Date[_0x5e3561(0x16a)]()/0x3e8);_0x21cd0f[_0x5e3561(0x32e)](_0x282f18>0x0?_0x5e3561(0x209)+_0x438df5[_0x5e3561(0x27c)]+_0x5e3561(0x1b6)+Math['round'](_0x282f18/0x3c)+_0x5e3561(0x274):_0x5e3561(0x197)+_0x438df5['tokenExpiresAt']);}process[_0x5e3561(0x299)][_0x5e3561(0x2cf)](_0x21cd0f[_0x5e3561(0x1c4)]('\x0a')+'\x0a');});}var Te=_0xfbbd45(0x28e);function tn(_0x50380d){const _0x4d33b2=_0xfbbd45;return _0x50380d?_0x2ee7df(_0x50380d)?_0x4d33b2(0x2d0):_0x4d33b2(0x323):_0x4d33b2(0x1a3);}function Y(){let _0x11f392=process.env.AUTH_TOKEN_FILE;return(process.env.AUTH_TOKEN||_0x11f392)&&process.env.TENANT_ID&&process.env.ORG_ID?{'accessToken':_0x11f392?nn(_0x11f392):process.env.AUTH_TOKEN,..._0x11f392?{'accessTokenFile':_0x11f392}:{},'tenantId':process.env.TENANT_ID,'organizationId':process.env.ORG_ID,'orgLogicalName':process.env.ORG_SLUG,'tenantName':process.env.TENANT_SLUG,'baseUrl':Ue()}:null;}function _0x34a6(){const _0x19d577=['More:\x20delegate-cli\x20sessions\x20--page\x20','--quiet','\x20not\x20found.','race','pct_used','Unknown\x20flag:\x20','--days\x20applies\x20to\x20`delegate-cli\x20usage\x20activity|daily`;\x20the\x20summary\x20covers\x20the\x20current\x20month.','The\x20turn\x20was\x20cancelled.','score','--attach:\x20no\x20such\x20file\x20or\x20folder:\x20','confidence','No\x20CLI\x20login\x20to\x20switch:\x20the\x20CLI\x20is\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20','Base\x20URL:\x20\x20\x20\x20\x20','isInteger','Model\x20','--attach','effort','write','UiPath\x20Cloud','sessions','limit','The\x20saved\x20CLI\x20login\x20could\x20not\x20be\x20refreshed.\x20Run\x20`delegate-cli\x20login`\x20again.','widget','--to\x20and\x20--summary\x20apply\x20to\x20`delegate-cli\x20delegations\x20create`\x20only.','\x20(confidence\x20','--skills-path','\x20must\x20be\x20a\x20whole\x20number\x20','parentSessionId','--print','Cancel\x20requested\x20for\x20turn\x20','.\x20Use\x20alpha\x20|\x20staging\x20|\x20production\x20|\x20localhost.','index','\x20is\x20required.\x0a','Unknown\x20sessions\x20action:\x20','resume','\x0adelegate-cli\x20—\x20Delegate\x20agent\x20CLI\x0a\x0aUsage:\x0a\x20\x20delegate-cli\x20[flags]\x20[\x22<prompt>\x22]\x20\x20\x20\x20Start\x20a\x20conversation\x20in\x20a\x20terminal\x0a\x20\x20delegate-cli\x20--print\x20\x22<prompt>\x22\x20\x20\x20\x20\x20\x20Send\x20one\x20prompt,\x20print\x20the\x20response,\x20and\x20exit\x0a\x20\x20delegate-cli\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\x20delegate-cli\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\x20delegate-cli\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\x20delegate-cli\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\x20delegate-cli\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\x20delegate-cli\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\x20delegate-cli\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\x20delegate-cli\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\x20delegate-cli\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\x20delegate-cli\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\x20delegate-cli\x20sessions\x20show|delete\x20ID\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\x20delegate-cli\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\x20delegate-cli\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\x20delegate-cli\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\x20delegate-cli\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\x20delegate-cli\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,\x20Cartographer\x20allowance\x0a\x20\x20delegate-cli\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\x20delegate-cli\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\x20delegate-cli\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\x20delegate-cli\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\x20\x20delegate-cli\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\x20delegate-cli\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\x20delegate-cli\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\x20delegate-cli\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\x20delegate-cli\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\x20delegate-cli\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\x20delegate-cli\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\x20delegate-cli\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\x20delegate-cli\x20host\x20install\x20[flags]\x20\x20\x20\x20Auto-start\x20the\x20host\x20at\x20login\x20(macOS\x20LaunchAgent\x20/\x20Windows\x20Scheduled\x20Task)\x0a\x20\x20delegate-cli\x20host\x20uninstall\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Remove\x20auto-start\x0a\x20\x20delegate-cli\x20host\x20status\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20auto-start\x20state\x0a\x20\x20delegate-cli\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(delegate-cli\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:\x20delegate-cli\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(delegate-cli\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--cartographer\x20\x20\x20\x20Cartographer\x20engagement\x20preset.\x20Equivalent\x20to\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--vertical\x20cartographer\x20--no-computer-use\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--preload-skill\x20business-analysis\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--preload-skill\x20project-task-list\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--preload-skill\x20knowledge-base\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--preload-skill\x20source-coverage\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--preload-skill\x20note-taker.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Add\x20--project/--working-dir\x20for\x20where\x20the\x20files\x20live,\x20and\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20extra\x20--preload-skill\x20flags\x20for\x20more\x20skills\x20—\x20a\x20skill\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20preset\x20already\x20covers\x20is\x20not\x20preloaded\x20twice.\x20An\x20explicit\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--headless\x20still\x20wins\x20and\x20turns\x20interop\x20off;\x20another\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--vertical\x20ID\x20is\x20refused\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\x20cartographer\x20brings\x20the\x20Map\x20of\x20Work\x20and,\x20without\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--preload-skill,\x20its\x20template\x27s\x20skills.\x20Default:\x20Delegate\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\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.\x0a','length','off','input','noConnections','\x20|\x20','--cartographer\x20runs\x20the\x20','content','model_id','sourceTitle','1\x20or\x20more','an\x20input\x20line\x20has\x20type\x20','\x20delegation\x20',',\x20got\x20','bind','):\x0a\x0a','value','Forked\x20','Deployment:\x20\x20\x20','tool_call','includeSubAgents','Session:\x20\x20\x20\x20\x20\x20','medium','\x20cap','utf-8','stderr','pause','From\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','close','assignedUserEmail','.\x20Use:\x20','\x20PU\x20used','--model','/exit','byoWarning','mode','file','Tenants\x20of\x20',').\x0a','\x20\x22<prompt>\x22\x0a','lockReason','email','prompt_tokens','--days','a\x20file\x20path','an\x20input\x20line\x20has\x20an\x20empty\x20message','buckets','unknown\x20slug','--skip-env-check','Session\x20\x20\x20\x20\x20\x20\x20','items','runnerUrl','UPDATED',',\x20not\x20\x22user\x22','forEach','cancel','entries','delegateTo','.\x20Use\x20','delegations\x20accept\x20<delegation-id>','fork','argv','ASSIGNEE','toISOString','from\x201\x20to\x20','Delegated\x20','self-hosted\x20(Automation\x20Suite\x20/\x20Dedicated)','--worker-id','tool','--include-subagents','--headless','delegations\x20delete\x20<delegation-id>','\x20prompt,\x20','Renamed\x20','baseUrl','probability','print','push','task','\x20days.\x0a','keepAlive','\x0a⚠️\x20\x20Auth\x20expired.\x20Opening\x20browser\x20to\x20re-login…\x0a','\x20into\x20','object','outputFormat','a\x20session\x20id','--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`delegate-cli\x20sessions`\x20only.','Created\x20delegation\x20','tenantName','log','Invalid\x20--project:\x20\x22','test','interopPath','--cartographer','--turn\x20applies\x20to\x20`delegate-cli\x20sessions\x20cancel`\x20only.','projectId','initialize','cancelled','3780210OifmEN','delegations\x20cancel\x20<delegation-id>','quiet','\x20(no\x20cap\x20enforced)','noSecurity',';\x20the\x20saved\x20login\x20still\x20uses\x20','--env','error','Unknown\x20usage\x20view:\x20','line','\x20token\x20units','Cartographer:\x20','No\x20one\x20matches\x20\x22','options','prompt','response','lastType','\x20\x20from\x20','There\x20is\x20no\x20terminal\x20input\x20to\x20answer\x20from.','Steering\x20input\x20stopped:\x20','Already\x20accepted','accept','\x20(resume\x20with\x20--session\x20','tenant','--backend','removeEventListener','assignedUser','help','from','estimated_cost_usd','cartographer','whoami','getTurnUsageHistory','Already\x20answered','taskAutomation','replayUserMessages','extra_pool_consumed_pu','env','login','restore','--env\x20localhost\x20has\x20no\x20OAuth\x20flow;\x20pick\x20alpha,\x20staging,\x20or\x20production.','toolName','type','2eDigdm','\x20not\x20found,\x20has\x20no\x20messages','monthly_limit_usd','\x0aStopping…\x20(Ctrl+C\x20again\x20to\x20force\x20exit)\x0a','package.json','\x20requires\x20','--version','delete','settle','transcribe\x20needs\x20audio:\x20delegate-cli\x20transcribe\x20<file>,\x20or\x20-\x20to\x20read\x20stdin.','isSafeInteger','),\x20','keys','\x20<title>','.\x20Use\x20`delegate-cli\x20usage`,\x20`usage\x20activity`\x20or\x20`usage\x20daily`.','session_start','complete','):\x20','startsWith','\x20\x20(sub-agent\x20of\x20','session_consumed_pu','expiresAt','title','now','1448976DpqViw','toUpperCase','%\x20of\x20','operands','delegations\x20pending\x20<session-id>','stream-json','--authority','description','--to','Tenant\x20not\x20switched:\x20could\x20not\x20write\x20','an\x20effort\x20tier',',\x20or\x20holds\x20no\x20message\x20','You>\x20','Structured\x20output\x20failed:\x20','noComputerUse','No\x20turn\x20','version','uuid','rerank','slice','an\x20input\x20line\x20is\x20not\x20a\x20JSON\x20object','message','--input-format','Tenant:\x20','auth.json','\x20\x20\x20\x20','evaluate','delegationId','--tenant\x20requires\x20a\x20tenant\x20name.','days','followUpsRenderer','--runner-url','UIPATH_BASE_URL\x20is\x20unusable.\x20','claim','an\x20input\x20line\x20is\x20not\x20JSON','1422926JwmOIS','\x20tokens\x0a','headless','\x20\x20TASK\x0a','max','catch','delegations\x20create\x20--session\x20<id>\x20[--to\x20<email|name>]\x20[--summary\x20<text>]\x20\x22<task>\x22|-','url','probability\x20','Token:\x20\x20\x20\x20\x20\x20\x20\x20expired\x20','contextSummary','Answered','🔧\x20','No\x20usage\x20in\x20the\x20last\x20','complete\x20needs\x20--json-schema\x20<file>:\x20delegate-cli\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22.','findIndex','\x20\x20(input\x20#','noMemory','Usage:\x20delegate-cli\x20sessions\x20cancel\x20<session-id>\x20--turn\x20<turn-id>','answers','\x20(Delegate\x20desktop\x20app\x20fallback)','unknown','--preload-skill','pending','isDesktopFallback','limit_enabled','list','verify','finish','\x20(estimated\x20$','once','existsSync','Removed\x20','Deleted\x20session\x20','text','from\x20','completion_tokens','shift','kind','logout','\x20(in\x20','token_units','end','getSessionMessages','the\x20JSON\x20schema','Organization:\x20','some','subFields','\x27\x20is\x20empty.','Enter\x20numbers\x20from\x201\x20to\x20','cwd','attachments','\x20<id>','\x20from\x20','join','stop','exit','delegation','hide','padEnd','readFileSync','delegations','intro','--skip-env-check\x20applies\x20to\x20`delegate-cli\x20login`\x20only.','a\x20deployment\x20URL,\x20e.g.\x20https://automationsuite.contoso.com','--effort','--json-schema','total_prompt_tokens','jsonSchemaPath','vertical','--verbose','\x20or\x20your\x20own\x20answer','isArray','Invalid\x20--input-format:\x20','getSessionId','a\x20number','cleanup','header','signal','\x20(cancel\x20with:\x20delegate-cli\x20sessions\x20cancel\x20','bundledSkillsPath','orgLogicalName','deepLink','\x0aAccept\x20one\x20with:\x20delegate-cli\x20delegations\x20accept\x20<id>\x0a','total_completion_tokens','done','--output-format\x20','host','skip','an\x20email\x20address\x20or\x20name','Switch\x20with:\x20delegate-cli\x20tenant\x20<name>\x0a','\x20(resets\x20','Your\x20answer\x20(Enter\x20to\x20skip):\x20','a\x20directory\x20path','--input-format\x20stream-json\x20needs\x20--output-format\x20stream-json:\x20the\x20steering\x20messages\x20are\x20answered\x20on\x20stdout.','results','Usage:\x20delegate-cli\x20sessions\x20[list]\x20[--page\x20N]\x20[--limit\x20N]\x20[--include-subagents]','period_days','--no-security','return','--replay-user-messages\x20needs\x20--input-format\x20stream-json.','Date\x20\x20\x20\x20\x20\x20\x20\x20Token\x20units\x20\x20Prompt\x20tokens\x20\x20Completion\x20tokens','--no-memory','page','stringify','\x0aUse\x20with:\x20delegate-cli\x20--model\x20<id>\x20\x22<prompt>\x22\x0a','\x20\x22<prompt>\x22\x0aAnswer\x20with:\x20delegate-cli\x20delegations\x20complete\x20','period_end','model_version','\x20in\x20steps\x20of\x20','score\x20','4926355FpRVHj','.aria','\x20sessions\x20on\x20','--replay-user-messages','AUTH_TOKEN_FILE\x20\x27','choice','inputFormat','includes','daily_usage','Unknown\x20delegations\x20action:\x20','environment\x20variables\x20(AUTH_TOKEN/TENANT_ID/ORG_ID)','--summary','Token:\x20\x20\x20\x20\x20\x20\x20\x20expires\x20','detail','concat','organizationId','\x20applies\x20to\x20prompts\x20and\x20to\x20these\x20commands\x20only:\x20','isTTY','✓\x20Done\x0a','default','--project','subcommand','Owner\x20\x20\x20\x20\x20\x20\x20\x20\x20','stack','name','accessToken','models_breakdown','[saved\x20login]\x20Backend\x20URL:\x20','delegations\x20dismiss\x20<delegation-id>','create','\x0a🤔\x20','Enter\x20a\x20number\x20','The\x20steering\x20message\x20was\x20not\x20answered:\x20its\x20turn\x20did\x20not\x20run\x20or\x20added\x20no\x20reply.','Enter\x20one\x20number\x20from\x201\x20to\x20','Source:\x20\x20\x20\x20\x20\x20\x20','\x20is\x20not\x20valid\x20JSON\x20(','\x20needs\x20a\x20JSON\x20request:\x20delegate-cli\x20','2376064zhdsEx','a\x20project\x20id','Spending:\x20\x20\x20\x20\x20$','abort','fields','Licensing:\x20\x20\x20\x20','displayName','\x20days:\x20','staging','dismissed','Input\x20closed\x20before\x20the\x20question\x20was\x20answered.',':\x20bucket\x20number\x20(Enter\x20to\x20leave\x20out):\x20','--page','\x20—\x20sign\x20out\x20in\x20the\x20Delegate\x20app\x20to\x20clear\x20that.','workingDirectory','A\x20steering\x20message\x20was\x20not\x20sent:\x20','result','updatedAt',']\x20Backend\x20URL:\x20','preloadSkills','skipEnvCheck','4896170MkfliE','multiSelect','resolve','delegate-cli','\x20(stdin\x20was\x20empty)','Number','[env=','First\x20login\x20requires\x20--env\x20or\x20--url.\x20Usage:\x20delegate-cli\x20login\x20--env\x20<alpha|staging|production>,\x20or\x20delegate-cli\x20login\x20--url\x20https://automationsuite.contoso.com','usage','Usage:\x20delegate-cli\x20','rejection','Interop\x20stopped\x20(if\x20it\x20was\x20running).','parse','\x20this\x20month','erase','\x20in\x20progress\x20on\x20session\x20','replace','a\x20briefing\x20text','\x20--turn\x20','\x20(Enter\x20to\x20skip):\x20','org-users','>.\x0a','messages','Usage:\x20delegate-cli\x20sessions\x20fork\x20<id>\x20[<message-id>]','--tenant\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Switch\x20tenants\x20with:\x20delegate-cli\x20tenant\x20<name>','delegations\x20complete\x20<delegation-id>\x20\x22<answer>\x22|-','transcribe','check','Usage:\x20delegate-cli\x20org-users\x20<name\x20or\x20email\x20prefix>','No\x20CLI\x20login\x20found\x20—\x20nothing\x20to\x20remove.','toFixed','status','choice\x20','Turn:\x20','--days\x20applies\x20to\x20`delegate-cli\x20usage\x20activity|daily`\x20only.','\x20\x22<answer>\x22\x0a',',\x20whose\x20tenant\x20is\x20chosen\x20in\x20the\x20app.\x20Run\x20`delegate-cli\x20login\x20--env\x20<env>`\x20for\x20a\x20CLI\x20login\x20of\x20your\x20own.','\x20to\x20','--attach\x20applies\x20to\x20prompts\x20only.','total_cost_usd','--vertical','\x20PU','questions','sessionId','Tenant:\x20\x20\x20\x20\x20\x20\x20','workerId','Work\x20on\x20it\x20with:\x20delegate-cli\x20--session\x20','filter','.\x20Share:\x20','Title\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20token\x20units)','localhost','stdin','No\x20structured\x20output:\x20the\x20turn\x20failed\x20(','turn_start','--input-format\x20and\x20--replay-user-messages\x20apply\x20to\x20prompts\x20only.','\x20active\x20days','Numbers,\x20separated\x20by\x20commas\x20(Enter\x20to\x20skip):\x20','addEventListener','--task-automation\x20needs\x20computer\x20use:\x20the\x20task\x20log\x20is\x20written\x20by\x20the\x20UI-automation\x20tools.\x20Drop\x20--headless,\x20--no-computer-use,\x20--cartographer\x20and\x20--vertical\x20cartographer.','Claimed\x20from\x20delegation\x20','\x20min)','total_tokens','No\x20answers\x20awaiting\x20acceptance.\x0a','--turn','min','verbose','structuredError','unit','tokenExpiresAt','ID\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','alreadyCompleted','Your\x20answer,\x20as\x20text\x20(the\x20CLI\x20attaches\x20no\x20files;\x20Enter\x20to\x20skip):\x20','turnId','\x20of\x20a\x20$','SIGINT','tenantId','5043624bTRPjX','Tokens:\x20','model','oneTurn','Session:\x20','rubric_version','No\x20delegations.\x0a','\x20(current)','\x20of\x20session\x20','\x0aAvailable\x20models\x20(','No\x20auth\x20found.\x20Set\x20AUTH_TOKEN\x20(or\x20AUTH_TOKEN_FILE)/TENANT_ID/ORG_ID\x20env\x20vars,\x20or\x20run\x20`delegate-cli\x20login\x20--env\x20<alpha|staging|production>`\x20(or\x20`--url\x20<deployment-url>`\x20for\x20Automation\x20Suite)\x20first.','agent_thought','bucket','--cleanup','Invalid\x20--effort:\x20',']\x20(Enter\x20for\x20','--task-automation\x20applies\x20to\x20prompts\x20only.','setPrompt','label','active_days','--task-automation','stdout','\x20\x20\x20\x20Not\x20available\x20on\x20this\x20plan','refused','exitCode','add','map','\x20\x20TITLE\x0a','show','pendingResults','\x20\x20\x20\x20BYO\x20warning:\x20','Cost:\x20\x20\x20$','A\x20steering\x20message\x20arrived\x20after\x20the\x20turn\x20ended:\x20not\x20read.\x0a','\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).','Licensing:\x20\x20\x20\x20no\x20licensing\x20quota\x20applies','code','--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`delegate-cli\x20sessions\x20[list]`\x20only.','trim','structured','\x20-\x20','thinking',':\x20ignored\x0a','models','Session\x20','activity','origin','high','\x20(type\x20your\x20own)','a\x20JSON\x20schema\x20file','all','--url\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Other\x20commands\x20follow\x20the\x20saved\x20login,\x20or\x20--backend\x20<url>.','low','padStart','string','backendUrl','steer','Continue\x20it\x20with:\x20delegate-cli\x20--session\x20','a\x20turn\x20id'];_0x34a6=function(){return _0x19d577;};return _0x34a6();}function nn(_0x2c17ff){const _0x2fdb70=_0xfbbd45;let _0x316204;try{_0x316204=_0x35be10[_0x2fdb70(0x1ca)](_0x2c17ff,_0x2fdb70(0x2f9))[_0x2fdb70(0x2a9)]();}catch(_0x54c852){throw new Error('AUTH_TOKEN_FILE\x20\x27'+_0x2c17ff+'\x27\x20cannot\x20be\x20read:\x20'+_0x54c852['message']);}let _0x56050d=_0x316204[_0x2fdb70(0x165)]('Bearer\x20')?_0x316204[_0x2fdb70(0x17e)](0x7)[_0x2fdb70(0x2a9)]():_0x316204;if(!_0x56050d)throw new Error(_0x2fdb70(0x201)+_0x2c17ff+_0x2fdb70(0x1be));return _0x56050d;}function Ue(){const _0x165737=_0xfbbd45;let _0x451df2=process.env.UIPATH_BASE_URL;if(!_0x451df2)return;let _0x237b25=_0x30979a(_0x451df2);if(_0x237b25['ok']===!0x1)throw new Error(_0x165737(0x18b)+_0x29ade9(_0x451df2,_0x237b25[_0x165737(0x241)]));return _0x237b25[_0x165737(0x32b)];}async function V(){let _0x2c8433=Y();if(_0x2c8433)return _0x2c8433;let _0x2e8f5b=await _0x2355bd();if(_0x2e8f5b)return _0x2e8f5b;throw new Error(Te);}async function sn(){const _0x37f3a8=_0xfbbd45;await new _0x2ba202()[_0x37f3a8(0x1c5)]({'force':!0x0}),console[_0x37f3a8(0x33a)](_0x37f3a8(0x242));}function X(_0x288215,_0x934ecf,_0x492fb4){const _0x5a186b=_0xfbbd45;_0x288215?process['stderr'][_0x5a186b(0x2cf)](_0x5a186b(0x23d)+_0x288215+_0x5a186b(0x234)+_0x492fb4+'\x0a'):!_0x934ecf&&!process.env.BACKEND_URL&&process[_0x5a186b(0x2fa)]['write'](_0x5a186b(0x218)+_0x492fb4+'\x0a');}async function $(_0x2ef177){const _0x4358b3=_0xfbbd45;let _0x557e74=await V(),_0x38e07f=_0x176dde(_0x2ef177[_0x4358b3(0x14d)],_0x557e74,_0x2ef177['backendUrl']);return X(_0x2ef177[_0x4358b3(0x14d)],_0x2ef177['backendUrl'],_0x38e07f),{'auth':_0x557e74,'backendUrl':_0x38e07f,'client':_0x55d743({'auth':_0x557e74,'backendUrl':_0x38e07f})};}async function on(_0x15f234){const _0x5a6b61=_0xfbbd45;let {client:_0x5a7575}=await $(_0x15f234),[_0x337970,_0x396852]=await Promise[_0x5a6b61(0x2b5)]([_0x119ad6(_0x5a7575),_0x490799(_0x5a7575)['catch'](_0x4fbdf7=>(process[_0x5a6b61(0x2fa)][_0x5a6b61(0x2cf)]('Could\x20not\x20check\x20BYO\x20model\x20warnings:\x20'+(_0x4fbdf7 instanceof Error?_0x4fbdf7[_0x5a6b61(0x180)]:String(_0x4fbdf7))+'\x0a'),{}))]),_0x20185c=_0x337970[_0x5a6b61(0x29e)](_0x26efe8=>_0x396852[_0x26efe8['id']]?{..._0x26efe8,'byoWarning':_0x396852[_0x26efe8['id']]}:_0x26efe8);m(_0x15f234,_0x20185c,rn);}function rn(_0x40f131){const _0x229cf6=_0xfbbd45;if(_0x40f131[_0x229cf6(0x2e2)]===0x0){process[_0x229cf6(0x2fa)][_0x229cf6(0x2cf)]('No\x20models\x20available\x20for\x20this\x20product/tenant.\x0a');return;}process[_0x229cf6(0x299)]['write'](_0x229cf6(0x28d)+_0x40f131[_0x229cf6(0x2e2)]+_0x229cf6(0x2f0));for(let _0x50dc85 of _0x40f131){let _0x2ec106=_0x50dc85[_0x229cf6(0x215)]&&_0x50dc85[_0x229cf6(0x215)]!==_0x50dc85['id']?'\x20('+_0x50dc85[_0x229cf6(0x215)]+')':'';process['stdout']['write']('\x20\x20'+_0x50dc85['id']+_0x2ec106+'\x0a'),_0x50dc85[_0x229cf6(0x172)]&&process[_0x229cf6(0x299)]['write'](_0x229cf6(0x184)+_0x50dc85[_0x229cf6(0x172)]+'\x0a'),_0x50dc85['locked']&&process[_0x229cf6(0x299)][_0x229cf6(0x2cf)](_0x229cf6(0x29a)+(_0x50dc85[_0x229cf6(0x309)]?'\x20('+_0x50dc85[_0x229cf6(0x309)]+')':'')+'\x0a'),_0x50dc85[_0x229cf6(0x303)]&&process['stdout'][_0x229cf6(0x2cf)](_0x229cf6(0x2a2)+_0x50dc85[_0x229cf6(0x303)]+'\x0a');}process[_0x229cf6(0x299)][_0x229cf6(0x2cf)](_0x229cf6(0x1f7));}var fe=[_0xfbbd45(0x1a8),'show','rename',_0xfbbd45(0x15a),'cancel',_0xfbbd45(0x31d)];async function an(_0x356cad){const _0x12f1cd=_0xfbbd45;let [_0x4563e4='',_0x3985da='',..._0x2a2a56]=_0x356cad[_0x12f1cd(0x16e)];if(_0x4563e4&&!fe['includes'](_0x4563e4)&&(console[_0x12f1cd(0x12f)](_0x12f1cd(0x2df)+_0x4563e4+_0x12f1cd(0x2ff)+fe['join'](_0x12f1cd(0x2e6))+'.'),process[_0x12f1cd(0x1c6)](0x2)),_0x356cad['turnId']!==void 0x0&&_0x4563e4!==_0x12f1cd(0x318)&&(console['error'](_0x12f1cd(0x33f)),process[_0x12f1cd(0x1c6)](0x2)),_0x4563e4&&_0x4563e4!=='list'){await ln(_0x356cad,_0x4563e4,_0x3985da,_0x2a2a56[_0x12f1cd(0x1c4)]('\x20')['trim']());return;}_0x356cad['operands'][_0x12f1cd(0x2e2)]>0x1&&(console[_0x12f1cd(0x12f)](_0x12f1cd(0x1ee)),process['exit'](0x2));let {client:_0x50a6b6}=await $(_0x356cad),_0x4ac028=await _0x258752(_0x50a6b6,{'page':_0x356cad['page'],'pageSize':_0x356cad[_0x12f1cd(0x2d2)],'includeSubAgents':_0x356cad[_0x12f1cd(0x2f5)]});m(_0x356cad,_0x4ac028,pn);}async function ln(_0x19bf48,_0x2ceaf5,_0x4ab0d6,_0x28dd59){const _0x52fb1b=_0xfbbd45;if((_0x19bf48[_0x52fb1b(0x1f5)]!==void 0x0||_0x19bf48[_0x52fb1b(0x2d2)]!==void 0x0||_0x19bf48[_0x52fb1b(0x2f5)])&&(console['error'](_0x52fb1b(0x2a8)),process[_0x52fb1b(0x1c6)](0x2)),_0x2ceaf5===_0x52fb1b(0x318)){await dn(_0x19bf48,_0x4ab0d6,_0x28dd59);return;}if(_0x2ceaf5===_0x52fb1b(0x31d)){await un(_0x19bf48,_0x4ab0d6,_0x28dd59);return;}(!_0x4ab0d6||_0x2ceaf5==='rename'!=!!_0x28dd59)&&(console[_0x52fb1b(0x12f)]('Usage:\x20delegate-cli\x20sessions\x20'+_0x2ceaf5+_0x52fb1b(0x1c2)+(_0x2ceaf5==='rename'?_0x52fb1b(0x160):'')),process[_0x52fb1b(0x1c6)](0x2));let {client:_0x8d1d3b}=await $(_0x19bf48);try{if(_0x2ceaf5===_0x52fb1b(0x2a0)){let _0x2997b8=await _0x286e21(_0x8d1d3b,_0x4ab0d6);_0x2997b8||ge(_0x4ab0d6),m(_0x19bf48,_0x2997b8,cn);}else{if(_0x2ceaf5==='rename'){let _0x3e96fc=await _0x1b8b3f(_0x8d1d3b,_0x4ab0d6,_0x28dd59);m(_0x19bf48,_0x3e96fc,_0x2e8f87=>{const _0x42ed3e=_0x52fb1b;process['stdout'][_0x42ed3e(0x2cf)](_0x42ed3e(0x32a)+_0x2e8f87['id']+':\x20'+_0x2e8f87[_0x42ed3e(0x169)]+'\x0a');});}else await _0xc3e9e1(_0x8d1d3b,_0x4ab0d6),await _0x3fd834(_0x4ab0d6,_0x19bf48[_0x52fb1b(0x230)]),m(_0x19bf48,{'id':_0x4ab0d6,'deleted':!0x0},_0x95ff99=>{const _0x4e6395=_0x52fb1b;process[_0x4e6395(0x299)]['write'](_0x4e6395(0x1af)+_0x95ff99['id']+'.\x0a');});}}catch(_0x2c1360){if(!_0x49bded(_0x2c1360,0x194))throw _0x2c1360;ge(_0x4ab0d6);}}function ge(_0x4439a7){const _0x4ce190=_0xfbbd45;console[_0x4ce190(0x12f)](_0x4ce190(0x2af)+_0x4439a7+_0x4ce190(0x2c0)),process['exit'](0x1);}function cn(_0x322738){const _0x1a4339=_0xfbbd45;process[_0x1a4339(0x299)][_0x1a4339(0x2cf)](_0x1a4339(0x27d)+_0x322738['id']+'\x0a'),process[_0x1a4339(0x299)][_0x1a4339(0x2cf)](_0x1a4339(0x268)+_0x322738[_0x1a4339(0x169)]+'\x0a'),process[_0x1a4339(0x299)][_0x1a4339(0x2cf)](_0x1a4339(0x213)+_0x322738['userId']+'\x0a'),process[_0x1a4339(0x299)][_0x1a4339(0x2cf)]('Organization\x20\x20'+_0x322738['organizationId']+'\x0a'),_0x322738[_0x1a4339(0x186)]&&process['stdout'][_0x1a4339(0x2cf)]('Delegation\x20\x20\x20\x20'+_0x322738[_0x1a4339(0x186)]+'\x0a');}async function dn(_0x31efdc,_0x120745,_0xdd7925){const _0x392fff=_0xfbbd45;(!_0x120745||_0xdd7925||!_0x31efdc[_0x392fff(0x280)])&&(console['error'](_0x392fff(0x1a0)),process['exit'](0x2));let {client:_0x2927c9}=await $(_0x31efdc),_0x348dfb=await _0x2bcddb(_0x2927c9,_0x120745,_0x31efdc[_0x392fff(0x280)]);m(_0x31efdc,{'sessionId':_0x120745,'turnId':_0x31efdc[_0x392fff(0x280)],'cancelled':_0x348dfb},_0x3c7ac8=>{const _0xa1f819=_0x392fff;_0x3c7ac8[_0xa1f819(0x342)]?process[_0xa1f819(0x299)][_0xa1f819(0x2cf)](_0xa1f819(0x2db)+_0x3c7ac8[_0xa1f819(0x280)]+_0xa1f819(0x28c)+_0x3c7ac8[_0xa1f819(0x262)]+'.\x0a'):process['stderr']['write'](_0xa1f819(0x17a)+_0x3c7ac8[_0xa1f819(0x280)]+_0xa1f819(0x246)+_0x3c7ac8[_0xa1f819(0x262)]+'.\x0a');}),_0x348dfb||(process['exitCode']=0x1);}async function un(_0x55eed1,_0x5a725f,_0x267760){const _0x38bf19=_0xfbbd45;(!_0x5a725f||/\s/['test'](_0x267760))&&(console['error'](_0x38bf19(0x24e)),process[_0x38bf19(0x1c6)](0x2));let {client:_0x16225b}=await $(_0x55eed1),_0xe033c0;try{_0xe033c0=await _0x16fcfd(_0x16225b,_0x5a725f,{'atMessageId':_0x267760||void 0x0});}catch(_0x4914a3){if(!_0x49bded(_0x4914a3,0x194))throw _0x4914a3;console[_0x38bf19(0x12f)]('Session\x20'+_0x5a725f+_0x38bf19(0x154)+(_0x267760?_0x38bf19(0x176)+_0x267760:'')+'.'),process[_0x38bf19(0x1c6)](0x1);}m(_0x55eed1,_0xe033c0,_0x17cc9f=>{const _0x2e18c0=_0x38bf19;process['stdout'][_0x2e18c0(0x2cf)](_0x2e18c0(0x2f2)+_0x5a725f+_0x2e18c0(0x333)+_0x17cc9f['id']+'.\x0a'),process[_0x2e18c0(0x2fa)][_0x2e18c0(0x2cf)](_0x2e18c0(0x2bc)+_0x17cc9f['id']+_0x2e18c0(0x308));});}function pn({sessions:_0x50a8fc,page:_0x5a5d55,isLastPage:_0x4ce0a2}){const _0x2e27df=_0xfbbd45;if(_0x50a8fc[_0x2e27df(0x2e2)]===0x0)process[_0x2e27df(0x2fa)][_0x2e27df(0x2cf)]('No\x20sessions\x20on\x20page\x20'+_0x5a5d55+'.\x0a');else{process[_0x2e27df(0x299)][_0x2e27df(0x2cf)]('ID'['padEnd'](0x24)+'\x20\x20'+_0x2e27df(0x315)[_0x2e27df(0x1c9)](0x13)+_0x2e27df(0x29f));for(let _0xfeb484 of _0x50a8fc){let _0x9d7883=_0xfeb484[_0x2e27df(0x233)][_0x2e27df(0x247)]('T','\x20')['slice'](0x0,0x13),_0x2de75d=_0xfeb484[_0x2e27df(0x2d9)]?_0x2e27df(0x166)+_0xfeb484['parentSessionId']+')':'';process[_0x2e27df(0x299)][_0x2e27df(0x2cf)](_0xfeb484['id'][_0x2e27df(0x1c9)](0x24)+'\x20\x20'+_0x9d7883[_0x2e27df(0x1c9)](0x13)+'\x20\x20'+_0xfeb484[_0x2e27df(0x169)]+_0x2de75d+'\x0a');}}_0x4ce0a2||process[_0x2e27df(0x2fa)]['write'](_0x2e27df(0x2be)+(_0x5a5d55+0x1)+'\x0a');}async function mn(_0x211b68){const _0x17731f=_0xfbbd45;let _0x16a14c=await V(),_0x29d87f=_0x176dde(_0x211b68[_0x17731f(0x14d)],_0x16a14c,_0x211b68[_0x17731f(0x2ba)]);X(_0x211b68[_0x17731f(0x14d)],_0x211b68[_0x17731f(0x2ba)],_0x29d87f);let _0x4b6c19=await _0x6d500c({'auth':_0x16a14c,'backendUrl':_0x29d87f,'interop':_0x211b68[_0x17731f(0x190)]?_0x17731f(0x1e6):'spawn'});m(_0x211b68,_0x4b6c19,({checks:_0x1e7529})=>{const _0x198084=_0x17731f;for(let _0x1baeda of _0x1e7529)process[_0x198084(0x299)]['write'](fn(_0x1baeda)+'\x0a');}),_0x4b6c19['ok']||process[_0x17731f(0x1c6)](0x1);}function fn(_0x103f85){const _0x2eaa03=_0xfbbd45;return{'ok':'✓','failed':'✗','skipped':'-'}[_0x103f85[_0x2eaa03(0x256)]]+'\x20'+_0x103f85[_0x2eaa03(0x215)][_0x2eaa03(0x1c9)](0xa)+_0x103f85[_0x2eaa03(0x20a)];}var gn=['','activity','daily'];async function hn(_0x57e213){const _0x5fb7a7=_0xfbbd45;let _0x261344=_0x57e213[_0x5fb7a7(0x136)];gn['includes'](_0x261344)||(console[_0x5fb7a7(0x12f)](_0x5fb7a7(0x130)+_0x57e213[_0x5fb7a7(0x136)]+_0x5fb7a7(0x161)),process['exit'](0x2)),_0x261344===''&&_0x57e213['days']!==void 0x0&&(console[_0x5fb7a7(0x12f)](_0x5fb7a7(0x2c4)),process[_0x5fb7a7(0x1c6)](0x2)),_0x261344!==''&&_0x57e213[_0x5fb7a7(0x262)]!==void 0x0&&(console['error']('--session\x20applies\x20to\x20the\x20`delegate-cli\x20usage`\x20summary\x20only.'),process[_0x5fb7a7(0x1c6)](0x2));let {client:_0x14f603}=await $(_0x57e213);if(_0x261344===_0x5fb7a7(0x2b0)){m(_0x57e213,await _0x432164(_0x14f603,{'days':_0x57e213[_0x5fb7a7(0x188)]}),wn);return;}if(_0x261344==='daily'){m(_0x57e213,await _0x2d6fc2(_0x14f603,{'days':_0x57e213[_0x5fb7a7(0x188)]}),kn);return;}let [_0x45439,_0x478503,_0x41b27f]=await Promise[_0x5fb7a7(0x2b5)]([_0x49e7db(_0x14f603,{'sessionId':_0x57e213[_0x5fb7a7(0x262)]}),_0x450b71(_0x14f603),_0x41e7e1(_0x14f603)]);m(_0x57e213,{'licensing':_0x45439,'monthlySpending':_0x478503,'cartographerAllowance':_0x41b27f},yn);}function yn(_0x2c39ef){const _0xcdc0f4=_0xfbbd45;let {licensing:_0x21f136,monthlySpending:_0x2ef424,cartographerAllowance:_0x3c8075}=_0x2c39ef,_0x164a9b=[_0x21f136[_0xcdc0f4(0x1a7)]?_0xcdc0f4(0x227)+_0x21f136[_0xcdc0f4(0x2c2)][_0xcdc0f4(0x255)](0x1)+_0xcdc0f4(0x16d)+(_0x21f136['total_quota_pu']??0x0)+_0xcdc0f4(0x300)+(_0x21f136[_0xcdc0f4(0x14c)]>0x0?',\x20'+_0x21f136['extra_pool_consumed_pu']+'\x20PU\x20beyond\x20quota':'')+_0xcdc0f4(0x1e9)+_0x21f136[_0xcdc0f4(0x1f9)]+')':_0xcdc0f4(0x2a6),_0xcdc0f4(0x224)+_0x2ef424['monthly_spend_usd'][_0xcdc0f4(0x255)](0x2)+_0xcdc0f4(0x244)+(_0x2ef424[_0xcdc0f4(0x1a7)]&&_0x2ef424[_0xcdc0f4(0x155)]!==null?_0xcdc0f4(0x281)+_0x2ef424[_0xcdc0f4(0x155)]['toFixed'](0x2)+_0xcdc0f4(0x2f8):_0xcdc0f4(0x12b)),_0xcdc0f4(0x133)+_0x3c8075[_0xcdc0f4(0x304)]+'\x20('+_0x3c8075[_0xcdc0f4(0x2e9)]+')'];_0x21f136[_0xcdc0f4(0x167)]!==null&&_0x21f136[_0xcdc0f4(0x167)]!==void 0x0&&_0x164a9b[_0xcdc0f4(0x32e)](_0xcdc0f4(0x2f6)+_0x21f136[_0xcdc0f4(0x167)]+_0xcdc0f4(0x260)),process[_0xcdc0f4(0x299)]['write'](_0x164a9b['join']('\x0a')+'\x0a');}function wn(_0x58d80e){const _0x3a32b8=_0xfbbd45;let _0x194316=['Last\x20'+_0x58d80e[_0x3a32b8(0x1ef)]+_0x3a32b8(0x229)+_0x58d80e['total_sessions']+_0x3a32b8(0x1ff)+_0x58d80e[_0x3a32b8(0x297)]+_0x3a32b8(0x26f),_0x3a32b8(0x2a3)+_0x58d80e[_0x3a32b8(0x25e)][_0x3a32b8(0x255)](0x2)+_0x3a32b8(0x1ab)+_0x58d80e[_0x3a32b8(0x145)][_0x3a32b8(0x255)](0x2)+_0x3a32b8(0x1c3)+_0x58d80e['total_token_units']+_0x3a32b8(0x269),_0x3a32b8(0x285)+_0x58d80e[_0x3a32b8(0x1d1)]+_0x3a32b8(0x329)+_0x58d80e[_0x3a32b8(0x1e2)]+'\x20completion'];for(let [_0x5b2a92,_0xc8d654]of Object[_0x3a32b8(0x319)](_0x58d80e[_0x3a32b8(0x217)]))_0x194316[_0x3a32b8(0x32e)]('\x20\x20'+_0x5b2a92+':\x20'+_0xc8d654+_0x3a32b8(0x132));process['stdout'][_0x3a32b8(0x2cf)](_0x194316['join']('\x0a')+'\x0a');}function kn(_0x2d61b7){const _0x57b928=_0xfbbd45;if(_0x2d61b7['daily_usage']['length']===0x0){process['stdout'][_0x57b928(0x2cf)](_0x57b928(0x19b)+_0x2d61b7[_0x57b928(0x1ef)]+_0x57b928(0x330));return;}let _0x3b766d=[_0x57b928(0x1f3)];for(let _0x33e0ae of _0x2d61b7[_0x57b928(0x205)])_0x3b766d[_0x57b928(0x32e)](_0x33e0ae['date']+'\x20\x20'+String(_0x33e0ae[_0x57b928(0x1b7)])['padStart'](0xb)+'\x20\x20'+String(_0x33e0ae[_0x57b928(0x30b)])[_0x57b928(0x2b8)](0xd)+'\x20\x20'+String(_0x33e0ae[_0x57b928(0x1b2)])['padStart'](0x11));process[_0x57b928(0x299)]['write'](_0x3b766d[_0x57b928(0x1c4)]('\x0a')+'\x0a');}async function bn(_0xcb3bff,_0x36190f){const _0x39d2e7=_0xfbbd45;let _0x2ee202=await Sn(_0xcb3bff['prompt'],_0x36190f);_0xcb3bff[_0x39d2e7(0x286)]&&(_0x2ee202[_0x39d2e7(0x286)]=_0xcb3bff[_0x39d2e7(0x286)]);let {client:_0x2252d0}=await $(_0xcb3bff);try{_0x36190f===_0x39d2e7(0x185)?m(_0xcb3bff,await _0x832557(_0x2252d0,_0x2ee202,void 0x0),An):_0x36190f===_0x39d2e7(0x17d)?m(_0xcb3bff,await _0x41ae7a(_0x2252d0,_0x2ee202,void 0x0),En):m(_0xcb3bff,await _0x7b9509(_0x2252d0,_0x2ee202,void 0x0),$n);}catch(_0x4302f7){if(!_0x28aeae(_0x4302f7))throw _0x4302f7;console['error'](_0x4302f7['message']),process[_0x39d2e7(0x1c6)](0x1);}}async function Sn(_0x39af63,_0x4139b8){const _0x550987=_0xfbbd45;let _0x53ba30;try{_0x53ba30=_0x39af63&&_0x39af63!=='-'?_0x35be10[_0x550987(0x1ca)](_0x57dac8['resolve'](_0x39af63),'utf-8'):await H(_0x39af63,process[_0x550987(0x26b)]);}catch(_0x1e359a){console[_0x550987(0x12f)](_0x4139b8+':\x20cannot\x20read\x20the\x20request\x20('+_0x1e359a['message']+').'),process[_0x550987(0x1c6)](0x2);}return _0x53ba30||(console['error'](_0x4139b8+_0x550987(0x221)+_0x4139b8+'\x20<file.json>,\x20or\x20-\x20to\x20read\x20stdin.'),process[_0x550987(0x1c6)](0x2)),De(_0x53ba30,_0x4139b8,'the\x20request');}function De(_0x219322,_0x336a0f,_0x4a9a36){const _0x485155=_0xfbbd45;let _0x5c67cf;try{_0x5c67cf=JSON['parse'](_0x219322);}catch(_0x42c375){console[_0x485155(0x12f)](_0x336a0f+':\x20'+_0x4a9a36+_0x485155(0x220)+_0x42c375[_0x485155(0x180)]+').'),process[_0x485155(0x1c6)](0x2);}return(typeof _0x5c67cf!=_0x485155(0x334)||_0x5c67cf===null||Array[_0x485155(0x1d6)](_0x5c67cf))&&(console[_0x485155(0x12f)](_0x336a0f+':\x20'+_0x4a9a36+'\x20must\x20be\x20a\x20JSON\x20object.'),process[_0x485155(0x1c6)](0x2)),_0x5c67cf;}function Ne(_0x4cd0a9,_0x3e49b4){const _0x3fc2b9=_0xfbbd45;let _0x38c969;try{_0x38c969=_0x35be10[_0x3fc2b9(0x1ca)](_0x57dac8[_0x3fc2b9(0x239)](_0x4cd0a9),_0x3fc2b9(0x2f9));}catch(_0x1f3a5c){console[_0x3fc2b9(0x12f)](_0x3e49b4+':\x20cannot\x20read\x20the\x20JSON\x20schema\x20('+_0x1f3a5c[_0x3fc2b9(0x180)]+').'),process[_0x3fc2b9(0x1c6)](0x2);}return De(_0x38c969,_0x3e49b4,_0x3fc2b9(0x1ba));}async function vn(_0x2fd37a){const _0xfcd0ac=_0xfbbd45;_0x2fd37a[_0xfcd0ac(0x1d2)]===void 0x0&&(console[_0xfcd0ac(0x12f)](_0xfcd0ac(0x19c)),process['exit'](0x2));let _0x37e3a3=Ne(_0x2fd37a[_0xfcd0ac(0x1d2)],_0xfcd0ac(0x163)),_0x538f56=(await H(_0x2fd37a['prompt'],process['stdin']))[_0xfcd0ac(0x2a9)]();_0x538f56||(console[_0xfcd0ac(0x12f)]('complete\x20needs\x20a\x20prompt:\x20delegate-cli\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22,\x20or\x20-\x20to\x20read\x20stdin.'),process['exit'](0x2));let {client:_0x6601f5}=await $(_0x2fd37a);try{let _0x28c0d6=await _0x54f4ac(_0x6601f5,{'prompt':_0x538f56,'jsonSchema':_0x37e3a3,'model':_0x2fd37a[_0xfcd0ac(0x286)]||process.env.MODEL||_0xbd4904,..._0x2fd37a['sessionId']!==void 0x0&&{'sessionId':_0x2fd37a[_0xfcd0ac(0x262)]}},void 0x0);m(_0x2fd37a,_0x28c0d6,_0x433733=>{const _0x5abcab=_0xfcd0ac;process[_0x5abcab(0x299)][_0x5abcab(0x2cf)](JSON['stringify'](_0x433733[_0x5abcab(0x2aa)],null,0x2)+'\x0a');});}catch(_0x5c3cc9){if(!_0x2178f6(_0x5c3cc9))throw _0x5c3cc9;console[_0xfcd0ac(0x12f)](_0x5c3cc9[_0xfcd0ac(0x180)]),process['exit'](0x1);}}function Z(_0x481793){const _0x53ed85=_0xfbbd45;process[_0x53ed85(0x299)][_0x53ed85(0x2cf)](_0x53ed85(0x2cc)+_0x481793[_0x53ed85(0x286)]+'\x20('+_0x481793[_0x53ed85(0x1fa)]+_0x53ed85(0x15e)+_0x481793[_0x53ed85(0x23f)][_0x53ed85(0x275)]+_0x53ed85(0x18f));}function An(_0x3f22cc){const _0x209eb2=_0xfbbd45;Z(_0x3f22cc);for(let _0x362362 of Object['keys'](_0x3f22cc[_0x209eb2(0x1a1)])){let _0x3f2d0d=_0x3f22cc[_0x209eb2(0x1a1)][_0x362362],_0x23f2f8=_0x3f2d0d[_0x209eb2(0x152)]===_0x209eb2(0x32c)?_0x209eb2(0x196)+_0x3f2d0d[_0x209eb2(0x32c)]['toFixed'](0x2):_0x3f2d0d[_0x209eb2(0x152)]===_0x209eb2(0x202)?_0x209eb2(0x257)+_0x3f2d0d['choice']+_0x209eb2(0x2d6)+_0x3f2d0d['confidence'][_0x209eb2(0x255)](0x2)+')':_0x209eb2(0x1fc)+_0x3f2d0d['score']['toFixed'](0x2)+'\x20(confidence\x20'+_0x3f2d0d['confidence'][_0x209eb2(0x255)](0x2)+')';process[_0x209eb2(0x299)][_0x209eb2(0x2cf)]('\x20\x20'+_0x362362+':\x20'+_0x23f2f8+'\x0a');}}function En(_0x1ca48e){const _0x35806f=_0xfbbd45;Z(_0x1ca48e),_0x1ca48e[_0x35806f(0x1ed)][_0x35806f(0x317)]((_0x2cd10f,_0x10c0fc)=>{const _0x12b75b=_0x35806f;process[_0x12b75b(0x299)][_0x12b75b(0x2cf)]('\x20\x20'+(_0x10c0fc+0x1)+'.\x20'+_0x2cd10f['id']+'\x20\x20'+_0x2cd10f[_0x12b75b(0x2c6)][_0x12b75b(0x255)](0x3)+_0x12b75b(0x19e)+_0x2cd10f[_0x12b75b(0x2dd)]+')\x0a');});}function $n(_0x410224){const _0x1c4ce5=_0xfbbd45;Z(_0x410224),process['stdout'][_0x1c4ce5(0x2cf)]('Rubric\x20'+_0x410224[_0x1c4ce5(0x289)]+'\x0a');for(let _0x29d648 of _0x410224[_0x1c4ce5(0x1ed)])process['stdout']['write']('\x20\x20'+_0x29d648['id']+':\x20'+_0x29d648['verdict']+_0x1c4ce5(0x2d6)+_0x29d648[_0x1c4ce5(0x2c8)][_0x1c4ce5(0x255)](0x2)+')\x0a');}async function xn(_0x572772){const _0x1ff0f8=_0xfbbd45;let _0x3d0b16=_0x572772[_0x1ff0f8(0x136)][_0x1ff0f8(0x2a9)]();_0x3d0b16||(console[_0x1ff0f8(0x12f)](_0x1ff0f8(0x15c)),process['exit'](0x2));let {client:_0xb50cb9}=await $(_0x572772);try{let _0x548b79=_0x3d0b16==='-'?{'data':await In(process[_0x1ff0f8(0x26b)])}:_0x3d0b16;m(_0x572772,await _0x7318e1(_0xb50cb9,_0x548b79,void 0x0),_0x3d9cc6=>{const _0x5a6400=_0x1ff0f8;process[_0x5a6400(0x299)][_0x5a6400(0x2cf)](_0x3d9cc6[_0x5a6400(0x1b0)]+'\x0a');});}catch(_0x49095a){if(_0x10c0e2(_0x49095a)&&(console['error'](_0x49095a[_0x1ff0f8(0x180)]),process[_0x1ff0f8(0x1c6)](_0x49095a[_0x1ff0f8(0x256)]===void 0x0?0x2:0x1)),typeof _0x49095a?.[_0x1ff0f8(0x2a7)]!=_0x1ff0f8(0x2b9))throw _0x49095a;console[_0x1ff0f8(0x12f)]('transcribe:\x20cannot\x20read\x20'+_0x3d0b16+'\x20('+_0x49095a[_0x1ff0f8(0x180)]+').'),process[_0x1ff0f8(0x1c6)](0x2);}}async function In(_0x284f03){const _0x374730=_0xfbbd45;let _0x414b93=[];for await(let _0x313378 of _0x284f03)_0x414b93[_0x374730(0x32e)](Buffer[_0x374730(0x144)](_0x313378));return Buffer[_0x374730(0x20b)](_0x414b93);}var he=[_0xfbbd45(0x1a8),_0xfbbd45(0x1a5),_0xfbbd45(0x2a0),_0xfbbd45(0x21a),_0xfbbd45(0x18c),'complete','accept','dismiss',_0xfbbd45(0x318),'delete'],ye={'list':'delegations\x20list\x20<backend-project-id>','pending':_0xfbbd45(0x16f),'show':'delegations\x20show\x20<delegation-id|delegate://delegation/…>','create':_0xfbbd45(0x194),'claim':'delegations\x20claim\x20<delegation-id|delegate://delegation/…>','complete':_0xfbbd45(0x250),'accept':_0xfbbd45(0x31c),'dismiss':_0xfbbd45(0x219),'cancel':_0xfbbd45(0x129),'delete':_0xfbbd45(0x328)};async function Tn(_0x56abb5){const _0x459bde=_0xfbbd45;let [_0x467fe4='',_0x55d6b3='',..._0x9deac]=_0x56abb5[_0x459bde(0x16e)];he[_0x459bde(0x204)](_0x467fe4)||(console['error']((_0x467fe4?_0x459bde(0x206)+_0x467fe4+'.\x20':'')+'Use:\x20delegate-cli\x20delegations\x20'+he[_0x459bde(0x1c4)](_0x459bde(0x2e6))+'.'),process[_0x459bde(0x1c6)](0x2));let _0x561c35=_0x467fe4;_0x561c35!=='create'&&(_0x56abb5['delegateTo']!==void 0x0||_0x56abb5[_0x459bde(0x198)]!==void 0x0||_0x56abb5['sessionId']!==void 0x0)&&(console['error']('--to,\x20--summary\x20and\x20--session\x20apply\x20to\x20`delegate-cli\x20delegations\x20create`\x20only.'),process['exit'](0x2));let _0x39ae3f=(_0x561c35==='create'?_0x56abb5[_0x459bde(0x16e)][_0x459bde(0x17e)](0x1):_0x9deac)[_0x459bde(0x1c4)]('\x20')['trim'](),_0x5e3f85=_0x561c35===_0x459bde(0x21a)||_0x561c35==='complete';(_0x561c35!==_0x459bde(0x21a)&&!_0x55d6b3||(_0x5e3f85?!_0x39ae3f:_0x39ae3f)||_0x561c35===_0x459bde(0x21a)&&!_0x56abb5[_0x459bde(0x262)])&&(console[_0x459bde(0x12f)](_0x459bde(0x240)+ye[_0x561c35]),process[_0x459bde(0x1c6)](0x2));let _0x50d102=_0x5e3f85&&_0x39ae3f==='-'?(await H('-',process[_0x459bde(0x26b)]))['trim']():_0x39ae3f;_0x5e3f85&&!_0x50d102&&(console[_0x459bde(0x12f)]('Usage:\x20delegate-cli\x20'+ye[_0x561c35]+_0x459bde(0x23b)),process[_0x459bde(0x1c6)](0x2));let {client:_0xfc0e4}=await $(_0x56abb5);try{await Un(_0x56abb5,_0xfc0e4,_0x561c35,_0x55d6b3,_0x50d102);}catch(_0x4e3bcf){if(!_0x4afe6d(_0x4e3bcf))throw _0x4e3bcf;console['error'](_0x4e3bcf[_0x459bde(0x180)]),process[_0x459bde(0x1c6)](0x1);}}async function Un(_0x4f5625,_0x67b9f2,_0x3a0226,_0x31b5e1,_0x1860a5){const _0x308753=_0xfbbd45;switch(_0x3a0226){case _0x308753(0x1a8):m(_0x4f5625,await _0x3bde5d(_0x67b9f2,_0x31b5e1),Dn);return;case'pending':m(_0x4f5625,await _0x5607a1(_0x67b9f2,_0x31b5e1),_0x545b57=>{const _0x5d5161=_0x308753;_0x545b57[_0x5d5161(0x1c7)]&&process[_0x5d5161(0x299)]['write'](_0x5d5161(0x273)+_0x545b57[_0x5d5161(0x1c7)]['id']+'\x20('+_0x545b57[_0x5d5161(0x1c7)][_0x5d5161(0x256)]+_0x5d5161(0x307)),_0x545b57[_0x5d5161(0x2a1)][_0x5d5161(0x2e2)]===0x0&&process[_0x5d5161(0x2fa)][_0x5d5161(0x2cf)](_0x5d5161(0x276));for(let _0x2334ae of _0x545b57[_0x5d5161(0x2a1)])process[_0x5d5161(0x299)][_0x5d5161(0x2cf)]('\x0a'+_0x2334ae['id']+_0x5d5161(0x139)+(_0x2334ae[_0x5d5161(0x2fe)]??'a\x20colleague')+'\x20\x20'+(_0x2334ae[_0x5d5161(0x32f)]??'')+'\x0a'+(_0x2334ae[_0x5d5161(0x232)]?.[_0x5d5161(0x2e8)]??'')+'\x0a');_0x545b57[_0x5d5161(0x2a1)][_0x5d5161(0x2e2)]>0x0&&process[_0x5d5161(0x2fa)][_0x5d5161(0x2cf)](_0x5d5161(0x1e1));});return;case _0x308753(0x2a0):m(_0x4f5625,await _0x296149(_0x67b9f2,_0x31b5e1),we);return;case _0x308753(0x21a):{let _0x499ac9=await _0x167382(_0x67b9f2,{'sessionId':_0x4f5625[_0x308753(0x262)],'task':_0x1860a5,..._0x4f5625['contextSummary']!==void 0x0&&{'contextSummary':_0x4f5625[_0x308753(0x198)]},..._0x4f5625[_0x308753(0x31a)]!==void 0x0&&{'recipient':_0x4f5625[_0x308753(0x31a)]}});m(_0x4f5625,_0x499ac9,_0x3b093d=>{const _0x39d94c=_0x308753;_0x3b093d[_0x39d94c(0x142)]?process['stdout']['write'](_0x39d94c(0x322)+_0x3b093d['delegationId']+_0x39d94c(0x25c)+_0x3b093d[_0x39d94c(0x142)][_0x39d94c(0x228)]+'\x20<'+_0x3b093d[_0x39d94c(0x142)][_0x39d94c(0x30a)]+_0x39d94c(0x24c)):process[_0x39d94c(0x299)][_0x39d94c(0x2cf)](_0x39d94c(0x338)+_0x3b093d[_0x39d94c(0x186)]+_0x39d94c(0x267)+_0x3b093d[_0x39d94c(0x1e0)]+'\x0a');});return;}case _0x308753(0x18c):{let _0x2cd1e2=await _0x15e3bb(_0x67b9f2,_0x31b5e1);m(_0x4f5625,_0x2cd1e2,_0x3f764c=>{const _0x29546e=_0x308753;we(_0x3f764c),process[_0x29546e(0x299)]['write'](_0x29546e(0x312)+_0x3f764c[_0x29546e(0x262)]+'\x0a'),process[_0x29546e(0x2fa)][_0x29546e(0x2cf)](_0x29546e(0x265)+_0x3f764c['sessionId']+_0x29546e(0x1f8)+_0x3f764c[_0x29546e(0x186)]+_0x29546e(0x25a));});return;}case _0x308753(0x163):{let {alreadyCompleted:_0x55a347}=await _0x31e35e(_0x67b9f2,_0x31b5e1,{'content':_0x1860a5});m(_0x4f5625,{'delegationId':_0x31b5e1,'alreadyCompleted':_0x55a347},_0x675a73=>{const _0x145e93=_0x308753;process[_0x145e93(0x299)]['write']((_0x675a73[_0x145e93(0x27e)]?_0x145e93(0x149):_0x145e93(0x199))+_0x145e93(0x2ed)+_0x675a73[_0x145e93(0x186)]+'.\x0a');});return;}case _0x308753(0x13d):{let _0x363e25=await _0x34c16d(_0x67b9f2,_0x31b5e1);m(_0x4f5625,{'delegationId':_0x31b5e1,..._0x363e25},_0x30dc35=>{const _0x7f83f0=_0x308753;process[_0x7f83f0(0x299)][_0x7f83f0(0x2cf)]((_0x30dc35['alreadyAccepted']?_0x7f83f0(0x13c):'Accepted')+_0x7f83f0(0x2ed)+_0x30dc35[_0x7f83f0(0x186)]+'.\x0a');});return;}default:{let _0x1c8a65={'dismiss':_0x5003af,'cancel':_0x20cc73,'delete':_0x39214a}[_0x3a0226];await _0x1c8a65(_0x67b9f2,_0x31b5e1);let _0x4f8e89={'dismiss':_0x308753(0x22b),'cancel':'cancelled','delete':'deleted'}[_0x3a0226];m(_0x4f5625,{'delegationId':_0x31b5e1,[_0x4f8e89]:!0x0},()=>{const _0x3f6924=_0x308753;process[_0x3f6924(0x299)][_0x3f6924(0x2cf)](''+_0x4f8e89[0x0][_0x3f6924(0x16c)]()+_0x4f8e89[_0x3f6924(0x17e)](0x1)+_0x3f6924(0x2ed)+_0x31b5e1+'.\x0a');});}}}function Dn(_0x5b200d){const _0x1fd38b=_0xfbbd45;if(_0x5b200d[_0x1fd38b(0x2e2)]===0x0){process['stderr'][_0x1fd38b(0x2cf)](_0x1fd38b(0x28a));return;}process[_0x1fd38b(0x299)][_0x1fd38b(0x2cf)]('ID'[_0x1fd38b(0x1c9)](0x24)+'\x20\x20'+'STATUS'['padEnd'](0x9)+'\x20\x20'+_0x1fd38b(0x31f)[_0x1fd38b(0x1c9)](0x18)+_0x1fd38b(0x191));for(let _0x52a8fd of _0x5b200d)process['stdout']['write'](_0x52a8fd['id'][_0x1fd38b(0x1c9)](0x24)+'\x20\x20'+_0x52a8fd[_0x1fd38b(0x256)][_0x1fd38b(0x1c9)](0x9)+'\x20\x20'+(_0x52a8fd['assignedUserEmail']??'-')[_0x1fd38b(0x1c9)](0x18)+'\x20\x20'+(_0x52a8fd['task']??'')+'\x0a');}function we(_0x126650){const _0x4b3527=_0xfbbd45;process['stdout'][_0x4b3527(0x2cf)](_0x4b3527(0x2fc)+(_0x126650['sourceUserEmail']??'-')+'\x0a'),_0x126650[_0x4b3527(0x2ea)]&&process[_0x4b3527(0x299)][_0x4b3527(0x2cf)](_0x4b3527(0x312)+_0x126650[_0x4b3527(0x2ea)]+'\x0a'),process[_0x4b3527(0x299)]['write']('Task\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x126650[_0x4b3527(0x32f)]??'-')+'\x0a'),_0x126650['contextSummary']&&process['stdout'][_0x4b3527(0x2cf)]('\x0a'+_0x126650[_0x4b3527(0x198)]+'\x0a\x0a');}async function Nn(_0x45264e){const _0x2c5708=_0xfbbd45;_0x45264e[_0x2c5708(0x136)][_0x2c5708(0x2a9)]()||(console[_0x2c5708(0x12f)](_0x2c5708(0x253)),process['exit'](0x2));let {client:_0x3a7103}=await $(_0x45264e),_0x6cefea;try{_0x6cefea=await _0x3a5b35(_0x3a7103,_0x45264e[_0x2c5708(0x136)]);}catch(_0x409ef5){if(!_0x4afe6d(_0x409ef5))throw _0x409ef5;console[_0x2c5708(0x12f)](_0x409ef5[_0x2c5708(0x180)]),process[_0x2c5708(0x1c6)](0x1);}m(_0x45264e,_0x6cefea,_0xd21699=>{const _0x10e430=_0x2c5708;_0xd21699[_0x10e430(0x2e2)]===0x0&&process[_0x10e430(0x2fa)][_0x10e430(0x2cf)](_0x10e430(0x134)+_0x45264e[_0x10e430(0x136)][_0x10e430(0x2a9)]()+'\x22.\x0a');for(let _0x473440 of _0xd21699)process[_0x10e430(0x299)][_0x10e430(0x2cf)](_0x473440[_0x10e430(0x30a)][_0x10e430(0x1c9)](0x20)+'\x20\x20'+_0x473440[_0x10e430(0x228)]+'\x0a');});}async function _n(_0x258358){const _0x174019=_0xfbbd45;_0x258358[_0x174019(0x14d)]==='localhost'&&(console['error'](_0x174019(0x150)),process['exit'](0x2));let _0x4b6aea=G(_0x1ea832()),_0x3cd72f=_0x258358[_0x174019(0x236)];if(_0x258358[_0x174019(0x14d)]){let _0x43845e=_0x258358[_0x174019(0x14d)];await _0x5b4857({'env':_0x43845e,'tenant':_0x258358['tenant']??Q(_0x4b6aea,_0x27fbc3[_0x43845e]),'skipEnvCheck':_0x3cd72f});return;}let _0x7e001c=_0x258358[_0x174019(0x195)]??Ue();if(_0x7e001c){await _0x5b4857({'baseUrl':_0x7e001c,'tenant':_0x258358[_0x174019(0x13f)]??Q(_0x4b6aea,_0x7e001c),'skipEnvCheck':_0x3cd72f});return;}if(_0x4b6aea?.['baseUrl']){await _0x5b4857({'baseUrl':_0x4b6aea[_0x174019(0x32b)],'tenant':_0x258358[_0x174019(0x13f)]??_0x4b6aea[_0x174019(0x339)],'skipEnvCheck':_0x3cd72f});return;}console[_0x174019(0x12f)](_0x174019(0x23e)),process[_0x174019(0x1c6)](0x2);}function Q(_0x3fe1db,_0x45b006){const _0x8a0c69=_0xfbbd45;return _0x3fe1db?.[_0x8a0c69(0x32b)]&&Rn(_0x3fe1db['baseUrl'],_0x45b006)?_0x3fe1db[_0x8a0c69(0x339)]:void 0x0;}function Rn(_0x1e6d36,_0x2c495d){const _0x355cf2=_0xfbbd45;try{return new URL(_0x1e6d36)[_0x355cf2(0x2b1)]===new URL(_0x2c495d)[_0x355cf2(0x2b1)];}catch{return!0x1;}}async function Pn(_0xac8a1e){const _0x148ed2=_0xfbbd45;Y()&&(console[_0x148ed2(0x12f)]('Auth\x20comes\x20from\x20AUTH_TOKEN/TENANT_ID/ORG_ID\x20—\x20set\x20TENANT_ID\x20and\x20TENANT_SLUG\x20to\x20change\x20the\x20tenant.'),process['exit'](0x2));let _0x2a6500=await _0x57531f();if(_0x2a6500||(console['error'](Cn()),process[_0x148ed2(0x1c6)](0x2)),_0xac8a1e['trim']()){let _0x1aa1f7=await _0x1ef51e(_0x2a6500,_0xac8a1e);_0x59cf01(_0x1aa1f7)||(console[_0x148ed2(0x12f)](_0x148ed2(0x174)+_0x1ea832()+_0x148ed2(0x12d)+_0x2a6500[_0x148ed2(0x339)]+'.'),process['exit'](0x1)),console[_0x148ed2(0x33a)](_0x148ed2(0x182)+_0x1aa1f7[_0x148ed2(0x339)]+'\x20('+_0x1aa1f7[_0x148ed2(0x283)]+')\x20—\x20saved\x20to\x20'+_0x1ea832());return;}On(await _0x43f056(_0x2a6500),_0x2a6500);}function Cn(){const _0x4bda56=_0xfbbd45;if(_0x35be10[_0x4bda56(0x1ad)](_0x1ea832()))return _0x4bda56(0x2d3);let _0x39a9ac=z();return G(_0x39a9ac)?_0x4bda56(0x2c9)+_0x39a9ac+_0x4bda56(0x25b):'No\x20CLI\x20login\x20found.\x20Run\x20`delegate-cli\x20login\x20--env\x20<alpha|staging|production>`\x20first.';}function On(_0x2c7b5a,_0x134894){const _0x4146d2=_0xfbbd45;let _0x1b0b2d=_0x2c7b5a['map'](_0x55d949=>_0x55d949['id']===_0x134894['tenantId']?'*\x20'+_0x55d949[_0x4146d2(0x215)]+_0x4146d2(0x28b):'\x20\x20'+_0x55d949[_0x4146d2(0x215)]);process[_0x4146d2(0x299)][_0x4146d2(0x2cf)](_0x4146d2(0x306)+(_0x134894['orgLogicalName']??_0x134894[_0x4146d2(0x20c)])+':\x0a'+_0x1b0b2d[_0x4146d2(0x1c4)]('\x0a')+'\x0a'),_0x2c7b5a[_0x4146d2(0x2e2)]>0x1&&process[_0x4146d2(0x299)][_0x4146d2(0x2cf)](_0x4146d2(0x1e8));}function Ln(_0x323186){const _0x4465d3=_0xfbbd45;return _0x323186?.[_0x4465d3(0x137)]?.[_0x4465d3(0x256)]===0x191||/401/[_0x4465d3(0x33c)](String(_0x323186?.[_0x4465d3(0x180)]??''));}var w={'lastType':null,'quiet':!0x1},_e=_0x3d33f7=>{const _0x16f39f=_0xfbbd45;switch(_0x3d33f7[_0x16f39f(0x152)]){case _0x16f39f(0x162):_0x3d33f7[_0x16f39f(0x262)]&&_0x3d33f7[_0x16f39f(0x262)]!==w[_0x16f39f(0x262)]&&(process[_0x16f39f(0x2fa)][_0x16f39f(0x2cf)](_0x16f39f(0x288)+_0x3d33f7[_0x16f39f(0x262)]+_0x16f39f(0x13e)+_0x3d33f7['sessionId']+')\x0a'),w[_0x16f39f(0x262)]=_0x3d33f7[_0x16f39f(0x262)]);break;case _0x16f39f(0x26d):_0x3d33f7[_0x16f39f(0x280)]&&_0x3d33f7['turnId']!==w['turnId']&&(w['lastType']!==null&&process[_0x16f39f(0x2fa)][_0x16f39f(0x2cf)]('\x0a'),process[_0x16f39f(0x2fa)][_0x16f39f(0x2cf)](_0x16f39f(0x258)+_0x3d33f7[_0x16f39f(0x280)]+_0x16f39f(0x1dd)+_0x3d33f7[_0x16f39f(0x262)]+_0x16f39f(0x249)+_0x3d33f7[_0x16f39f(0x280)]+')\x0a'),w['turnId']=_0x3d33f7[_0x16f39f(0x280)],w[_0x16f39f(0x138)]='turn_start');break;case _0x16f39f(0x2ac):_0x3d33f7[_0x16f39f(0x2e8)]&&!w[_0x16f39f(0x12a)]&&(w[_0x16f39f(0x138)]!==_0x16f39f(0x2ac)&&process[_0x16f39f(0x2fa)][_0x16f39f(0x2cf)](_0x16f39f(0x21b)),process['stderr'][_0x16f39f(0x2cf)](_0x3d33f7[_0x16f39f(0x2e8)]),w[_0x16f39f(0x138)]=_0x16f39f(0x2ac));break;case _0x16f39f(0x2f4):w[_0x16f39f(0x138)]!==null&&process[_0x16f39f(0x2fa)][_0x16f39f(0x2cf)]('\x0a'),process[_0x16f39f(0x2fa)]['write'](_0x16f39f(0x19a)+(_0x3d33f7[_0x16f39f(0x151)]??_0x16f39f(0x325))+'\x0a'),w[_0x16f39f(0x138)]=_0x16f39f(0x2f4);break;case _0x16f39f(0x180):_0x3d33f7[_0x16f39f(0x2e8)]&&(w[_0x16f39f(0x138)]!==_0x16f39f(0x180)&&w[_0x16f39f(0x138)]!==null&&process['stdout'][_0x16f39f(0x2cf)]('\x0a'),process[_0x16f39f(0x299)][_0x16f39f(0x2cf)](_0x3d33f7[_0x16f39f(0x2e8)]),w[_0x16f39f(0x138)]=_0x16f39f(0x180));break;case'error':w['lastType']!==null&&process[_0x16f39f(0x2fa)]['write']('\x0a'),process[_0x16f39f(0x2fa)][_0x16f39f(0x2cf)]('✗\x20'+(_0x3d33f7[_0x16f39f(0x12f)]??'error')+'\x0a'),w[_0x16f39f(0x138)]=_0x16f39f(0x12f);break;case _0x16f39f(0x1e3):(w['lastType']===_0x16f39f(0x180)||w[_0x16f39f(0x138)]===_0x16f39f(0x2ac))&&process['stdout'][_0x16f39f(0x2cf)]('\x0a'),process['stderr']['write'](_0x16f39f(0x20f)),w['lastType']=_0x16f39f(0x1e3);break;}};function ke(_0x28e79a,_0x187e93,_0x15adb7,_0x2674e1){const _0x5b8f32=_0xfbbd45;let _0x56243d=_0x28e79a['model']||process.env.MODEL;return{'backendUrl':_0x15adb7,'auth':_0x187e93,'enableComputerUse':!_0x28e79a[_0x5b8f32(0x190)]&&!_0x28e79a[_0x5b8f32(0x179)],'autoSpawnInterop':!_0x28e79a['headless'],'enableConnections':!_0x28e79a[_0x5b8f32(0x2e5)],'enableSecurity':!_0x28e79a[_0x5b8f32(0x12c)],'keepInteropAlive':_0x28e79a[_0x5b8f32(0x331)],..._0x2674e1[_0x5b8f32(0x287)]?{'enableBackgroundCommands':!0x1}:{},..._0x28e79a['noMemory']?{'enableMemory':!0x1}:{},..._0x28e79a[_0x5b8f32(0x14a)]?{'enableTaskAutomation':!0x0}:{},..._0x28e79a['preloadSkills'][_0x5b8f32(0x2e2)]>0x0?{'preloadSkills':_0x28e79a[_0x5b8f32(0x235)]}:{},..._0x56243d?{'model':_0x56243d}:{},..._0x28e79a['projectId']?{'projectId':_0x28e79a[_0x5b8f32(0x340)]}:{},..._0x28e79a['vertical']?{'vertical':_0x28e79a[_0x5b8f32(0x1d3)]}:{},..._0x28e79a[_0x5b8f32(0x230)]?{'workingDirectory':_0x28e79a[_0x5b8f32(0x230)]}:{},..._0x28e79a[_0x5b8f32(0x1de)]?{'bundledSkillsPath':_0x28e79a['bundledSkillsPath']}:{},..._0x28e79a[_0x5b8f32(0x2ce)]?{'effort':_0x28e79a[_0x5b8f32(0x2ce)]}:{},..._0x28e79a[_0x5b8f32(0x262)]?{'sessionId':_0x28e79a[_0x5b8f32(0x262)]}:{},..._0x28e79a[_0x5b8f32(0x279)]?{'verbose':!0x0}:{}};}async function Fn(_0x16dcc9){const _0x5c438f=_0xfbbd45;let _0x41752b=_0x16dcc9[_0x5c438f(0x335)]!=='text',_0x1877f1=_0x16dcc9[_0x5c438f(0x1d2)]===void 0x0?null:Ne(_0x16dcc9[_0x5c438f(0x1d2)],_0x5c438f(0x23a)),_0x2511fb=!_0x41752b&&!_0x1877f1&&!_0x16dcc9[_0x5c438f(0x32d)]&&_0x16dcc9[_0x5c438f(0x136)]!=='-'&&!!process['stdin']['isTTY']&&!!process[_0x5c438f(0x299)][_0x5c438f(0x20e)],_0x3fa08c=_0x16dcc9[_0x5c438f(0x203)]===_0x5c438f(0x170)?re(process[_0x5c438f(0x26b)],_0x2d0d65=>{const _0x332134=_0x5c438f;process[_0x332134(0x2fa)]['write'](_0x2d0d65[_0x332134(0x180)]+_0x332134(0x2ad));}):null,_0x34e43b=_0x3fa08c?(await _0x3fa08c['next']())[_0x5c438f(0x2f1)]:void 0x0,_0x4fe5e8=_0x3fa08c?_0x34e43b?.[_0x5c438f(0x1b0)]??'':_0x2511fb?_0x16dcc9[_0x5c438f(0x136)]['trim']():await H(_0x16dcc9['prompt'],process[_0x5c438f(0x26b)]);if(!_0x2511fb&&!_0x4fe5e8&&(console[_0x5c438f(0x12f)]('Missing\x20prompt.\x20Pass\x20it\x20as\x20an\x20argument,\x20pipe\x20it\x20via\x20stdin,\x20or\x20run\x20`delegate-cli\x20--help`.'),process[_0x5c438f(0x1c6)](0x2)),!_0x41752b){await be(_0x16dcc9,_0x4fe5e8,_0x2511fb,null,_0x1877f1,null);return;}let _0x35e5fc=!0x1,_0x4ffff7=_0x5819fe=>{const _0x4747ff=_0x5c438f;_0x35e5fc=!0x0,O(_0xf2cc65(_0x5819fe)),(_0x5819fe['isError']||_0x5819fe[_0x4747ff(0x27a)])&&(process['exitCode']=0x1);},_0x336df7=Date[_0x5c438f(0x16a)]();try{await be(_0x16dcc9,_0x4fe5e8,!0x1,_0x4ffff7,_0x1877f1,_0x3fa08c?{'messages':_0x3fa08c,'first':_0x34e43b,'close':()=>{const _0x268e86=_0x5c438f;process[_0x268e86(0x26b)]['pause']();}}:null);}catch(_0x9e8b16){if(_0x35e5fc)throw _0x9e8b16;process[_0x5c438f(0x2fa)][_0x5c438f(0x2cf)]((_0x9e8b16 instanceof Error?_0x9e8b16['stack']??_0x9e8b16[_0x5c438f(0x180)]:String(_0x9e8b16))+'\x0a'),_0x4ffff7(new _0x10039c(_0x336df7)[_0x5c438f(0x1aa)]({'endedAtMs':Date[_0x5c438f(0x16a)](),'usage':[],'error':_0x9e8b16}));}finally{_0x3fa08c&&(process[_0x5c438f(0x26b)][_0x5c438f(0x2fb)](),_0x3fa08c[_0x5c438f(0x1f1)](void 0x0));}}async function be(_0x43932d,_0x5187e4,_0x2f094b,_0x3cc9df,_0x5c7c8a,_0x1bc2d4){const _0x2b531d=_0xfbbd45;w={'lastType':null,'quiet':_0x43932d[_0x2b531d(0x12a)]};let _0x5c6dd0=new Set(),_0x496202,_0x4de155=_0x2c2f65=>{const _0x16a8d7=_0x2b531d;(!_0x3cc9df||_0x2c2f65[_0x16a8d7(0x152)]===_0x16a8d7(0x162)||_0x2c2f65[_0x16a8d7(0x152)]===_0x16a8d7(0x26d))&&(_0x496202??_e)(_0x2c2f65);for(let _0x1f19e3 of _0x5c6dd0)_0x1f19e3(_0x2c2f65);},_0x2ba4db=await V(),_0x128ab2=new _0x381698();_0x128ab2['onEvent'](_0x4de155);let _0x1ccb7e=_0x176dde(_0x43932d[_0x2b531d(0x14d)],_0x2ba4db,_0x43932d[_0x2b531d(0x2ba)]);X(_0x43932d[_0x2b531d(0x14d)],_0x43932d[_0x2b531d(0x2ba)],_0x1ccb7e);let _0x3bf50f={'input':null},_0x162c55=_0x2f094b?ne(()=>_0x3bf50f[_0x2b531d(0x2e4)],_0x57393d=>{const _0x2b0a50=_0x2b531d;process[_0x2b0a50(0x2fa)][_0x2b0a50(0x2cf)](_0x57393d);}):null,_0xf60c1d=_0x38d048=>_0x162c55?{..._0x38d048,'askUser':_0x162c55}:_0x38d048,_0x5a1821=_0xf60c1d(ke(_0x43932d,_0x2ba4db,_0x1ccb7e,{'oneTurn':!_0x2f094b})),_0x4968a2=!0x1,_0x54c898=!0x1,_0x3903d8,_0x2c7a84=()=>_0x3903d8??=_0x128ab2['destroy'](),_0x4318bc=()=>{const _0x1b4b37=_0x2b531d;_0x54c898&&process[_0x1b4b37(0x1c6)](0x82),_0x54c898=!0x0,process[_0x1b4b37(0x2fa)][_0x1b4b37(0x2cf)](_0x1b4b37(0x156)),_0x4968a2&&_0x128ab2[_0x1b4b37(0x318)]()[_0x1b4b37(0x193)](_0x19bfee=>console[_0x1b4b37(0x12f)](_0x19bfee))['then'](_0x2c7a84)['then'](()=>process[_0x1b4b37(0x1c6)](0x82),_0x4b9f7f=>{const _0xca342f=_0x1b4b37;console['error'](_0x4b9f7f),process[_0xca342f(0x1c6)](0x82);});};process['on'](_0x2b531d(0x282),_0x4318bc);let _0x247ca6=_0x43932d[_0x2b531d(0x1c1)],_0x1d4bcd=async _0xd0cf10=>{const _0x289934=_0x2b531d;let _0x37e4f4=_0x247ca6;_0x247ca6=[];let _0x177ae8=()=>_0x128ab2['sendMessage'](_0xd0cf10,{'attachments':_0x37e4f4});try{return await _0x177ae8();}catch(_0x15e6e6){if(_0x54c898||!Ln(_0x15e6e6)||!process[_0x289934(0x26b)][_0x289934(0x20e)]||_0x43932d[_0x289934(0x14d)]===_0x289934(0x26a)||!(_0x43932d[_0x289934(0x14d)]||_0x2ba4db['baseUrl']))throw _0x15e6e6;process[_0x289934(0x2fa)][_0x289934(0x2cf)](_0x289934(0x332));let _0x15ce89=_0x128ab2[_0x289934(0x1d8)]()??_0x43932d[_0x289934(0x262)],_0x113e5c=await _0x5b4857(_0x43932d[_0x289934(0x14d)]?{'env':_0x43932d['env'],'tenant':Q(_0x2ba4db,_0x27fbc3[_0x43932d[_0x289934(0x14d)]]),'skipEnvCheck':!0x0}:{'baseUrl':_0x2ba4db['baseUrl'],'tenant':_0x2ba4db['tenantName'],'skipEnvCheck':!0x0}),_0x4308e0={'text':'','failed':!0x1,'sessionId':_0x15ce89};return _0x54c898||(_0x4968a2=!0x1,await _0x2c7a84(),_0x54c898)?_0x4308e0:(_0x128ab2=new _0x381698(),_0x3903d8=void 0x0,_0x128ab2['onEvent'](_0x4de155),_0x2ba4db=_0x113e5c,await _0x128ab2[_0x289934(0x341)]({..._0xf60c1d(ke(_0x43932d,_0x2ba4db,_0x1ccb7e,{'oneTurn':!_0x2f094b})),..._0x15ce89?{'sessionId':_0x15ce89}:{}}),_0x4968a2=!0x0,_0x54c898?_0x4308e0:_0x177ae8());}};try{if(await _0x128ab2[_0x2b531d(0x341)](_0x5a1821),_0x4968a2=!0x0,_0x54c898)return;if(_0x2f094b)await Bn({'prompt':_0x5187e4,'sendMessage':_0x1d4bcd,'onSigint':_0x4318bc,'setAnswerInput':_0x3ad3b7=>{const _0x140d24=_0x2b531d;_0x3bf50f[_0x140d24(0x2e4)]=_0x3ad3b7;},'registerEventPrinter':_0x2e2cbb=>(_0x496202=_0x2e2cbb,()=>{_0x496202=void 0x0;})});else{if(_0x3cc9df||_0x5c7c8a){let _0x3cc61d=_0x43932d['outputFormat']===_0x2b531d(0x170)?_0x16e8b2=>O(_0x67e209(_0x16e8b2)):()=>{},_0x22cc37=_0x1bc2d4?ie({'input':_0x1bc2d4,'getAgent':()=>_0x128ab2,'replay':_0x43932d[_0x2b531d(0x14b)],'onEvent':_0xdbe9d1=>(_0x5c6dd0[_0x2b531d(0x29d)](_0xdbe9d1),()=>{const _0x7c8d39=_0x2b531d;_0x5c6dd0[_0x7c8d39(0x15a)](_0xdbe9d1);}),'write':O,'isRunStopNotice':_0xa51482,'actionableErrorText':_0x364d52,'warn':_0x1d3588=>{process['stderr']['write'](_0x1d3588);}}):null,_0x554ebf=await _0x405ae1({'onEvent':_0x2c3e04=>(_0x5c6dd0['add'](_0x2c3e04),()=>{_0x5c6dd0['delete'](_0x2c3e04);}),'sendMessage':async _0x16bdc8=>{const _0x57a2dc=_0x2b531d;try{let _0x4c0a74=await _0x1d4bcd(_0x16bdc8);return _0x22cc37?await _0x22cc37[_0x57a2dc(0x15b)](_0x4c0a74):_0x4c0a74;}finally{_0x22cc37?.[_0x57a2dc(0x1c5)]();}},'getSessionId':()=>_0x128ab2[_0x2b531d(0x1d8)](),'getTurnUsageHistory':_0x6e19af=>_0x128ab2[_0x2b531d(0x148)](_0x6e19af),'complete':_0x3e86e3=>_0x128ab2[_0x2b531d(0x163)](_0x3e86e3)},_0x5187e4,void 0x0,_0x3cc61d,_0x5c7c8a?{'outputSchema':_0x5c7c8a}:void 0x0);_0x3cc9df?_0x3cc9df(_0x554ebf):Mn(_0x554ebf);}else await _0x1d4bcd(_0x5187e4);}}catch(_0x17cf19){if(!_0x54c898)throw _0x17cf19;}finally{try{await _0x2c7a84();}finally{process[_0x2b531d(0x2e3)](_0x2b531d(0x282),_0x4318bc),_0x54c898&&(process['exitCode']=0x82);}}}function Mn(_0x386424){const _0x28bf28=_0xfbbd45;_0x386424[_0x28bf28(0x27a)]?(console['error'](_0x28bf28(0x178)+_0x386424[_0x28bf28(0x27a)][_0x28bf28(0x180)]),process[_0x28bf28(0x29c)]=0x1):_0x386424['isError']?(console['error'](_0x28bf28(0x26c)+_0x386424[_0x28bf28(0x12f)]+').'),process[_0x28bf28(0x29c)]=0x1):process[_0x28bf28(0x299)][_0x28bf28(0x2cf)](JSON[_0x28bf28(0x1f6)](_0x386424[_0x28bf28(0x2aa)],null,0x2)+'\x0a');}function jn(_0x173e3e,_0x51c463){const _0x45fec0=_0xfbbd45;let _0x857aaa=process[_0x45fec0(0x299)][_0x45fec0(0x2cf)][_0x45fec0(0x2ef)](process[_0x45fec0(0x299)]),_0x215ec1=!0x1;return process[_0x45fec0(0x299)][_0x45fec0(0x2cf)]=(..._0x543fd9)=>{const _0x40b935=_0x45fec0;if(!_0x215ec1)return _0x857aaa(..._0x543fd9);_0x5b5e43(_0x51c463,0x0),_0x129d64(_0x51c463,0x0);let _0x293191=_0x857aaa(..._0x543fd9);return _0x173e3e[_0x40b935(0x136)](!0x0),_0x293191;},{'show':()=>{_0x215ec1=!0x0,_0x173e3e['prompt']();},'hide':()=>{_0x215ec1=!0x1;},'erase':()=>{_0x215ec1&&(_0x5b5e43(_0x51c463,0x0),_0x129d64(_0x51c463,0x0)),_0x215ec1=!0x1;},'restore':()=>{const _0x3e2a05=_0x45fec0;_0x215ec1=!0x1,process[_0x3e2a05(0x299)]['write']=_0x857aaa;}};}async function Bn({prompt:_0x56e79b,sendMessage:_0x58665f,onSigint:_0x1b345a,setAnswerInput:_0x3be8f2,registerEventPrinter:_0x4fbdb7}){const _0x56de45=_0xfbbd45;let _0x7cdee6=_0x6ea595({'input':process[_0x56de45(0x26b)],'output':process['stderr'],'terminal':!0x0,'prompt':_0x56de45(0x177)}),_0x54c27f=jn(_0x7cdee6,process[_0x56de45(0x2fa)]),_0x27644f=[],_0x1bc94f,_0x758e24,_0x5e6970,_0x4880c1=!0x1,_0x30d3ba=!0x1,_0x299817=!0x1,_0x110687=Promise[_0x56de45(0x239)](),_0x3170a5,_0x3a8379=_0x4fbdb7(_0x1b88e6=>{const _0x1c9fdb=_0x56de45;_0x1b88e6[_0x1c9fdb(0x152)]===_0x1c9fdb(0x162)&&(_0x54c27f[_0x1c9fdb(0x245)](),_0x110687=new Promise(_0x577acb=>{_0x3170a5=_0x577acb;})),_e(_0x1b88e6),_0x1b88e6[_0x1c9fdb(0x152)]===_0x1c9fdb(0x1e3)&&(_0x3170a5?.(),_0x3170a5=void 0x0,!_0x299817&&!_0x4880c1&&_0x54c27f[_0x1c9fdb(0x2a0)]());}),_0x234129=()=>{const _0x789aba=_0x56de45;_0x30d3ba=!0x0,_0x3170a5?.(),_0x1b345a(),_0x7cdee6[_0x789aba(0x2fd)]();};_0x7cdee6['on'](_0x56de45(0x131),_0x1674bd=>{const _0x3e1fcc=_0x56de45;_0x5e6970?_0x5e6970(_0x1674bd):_0x1bc94f?_0x1bc94f['push'](_0x1674bd):_0x758e24?_0x758e24(_0x1674bd):_0x27644f[_0x3e1fcc(0x32e)](_0x1674bd);}),_0x7cdee6[_0x56de45(0x1ac)](_0x56de45(0x2fd),()=>{const _0x424d94=_0x56de45;_0x4880c1=!0x0,_0x54c27f[_0x424d94(0x1c8)](),_0x1bc94f&&!_0x30d3ba&&_0x234129(),_0x758e24?.(null);});let _0x1f88cd=()=>_0x27644f[_0x56de45(0x2e2)]>0x0?Promise[_0x56de45(0x239)](_0x27644f[_0x56de45(0x1b3)]()):_0x4880c1?Promise[_0x56de45(0x239)](null):new Promise(_0x12a377=>{_0x758e24=_0x2955ec=>{_0x758e24=void 0x0,_0x12a377(_0x2955ec);};});_0x3be8f2({'readLine':(_0x2c3ec4,_0x1933c9)=>new Promise((_0x400ecc,_0x4eee79)=>{const _0x4d152f=_0x56de45;if(_0x4880c1&&!_0x1bc94f){_0x400ecc(null);return;}_0x1bc94f??=[];let _0x2c2c78=_0x1bc94f['shift']();if(_0x2c2c78!==void 0x0){_0x400ecc(_0x2c2c78);return;}let _0x5ba571=()=>{const _0x436620=_0x3b39;_0x5e6970=void 0x0,_0x1933c9[_0x436620(0x141)](_0x436620(0x225),_0x511448),_0x54c27f['hide'](),_0x7cdee6[_0x436620(0x295)](_0x436620(0x177));},_0x511448=()=>{const _0x203c2b=_0x3b39;_0x5ba571(),_0x4eee79(new Error(_0x203c2b(0x2c5)));};_0x1933c9[_0x4d152f(0x271)]('abort',_0x511448,{'once':!0x0}),!_0x4880c1&&(_0x5e6970=_0x1fa509=>{_0x5ba571(),_0x400ecc(_0x1fa509);},_0x7cdee6[_0x4d152f(0x295)](_0x2c3ec4),_0x54c27f['show']());}),'endQuestions':()=>{const _0x568b94=_0x56de45;_0x1bc94f&&_0x27644f[_0x568b94(0x32e)](..._0x1bc94f),_0x1bc94f=void 0x0;}}),_0x7cdee6['on'](_0x56de45(0x282),_0x234129),process[_0x56de45(0x2fa)]['write']('Enter\x20sends\x20a\x20message.\x20/exit\x20or\x20EOF\x20exits;\x20Ctrl+C\x20stops\x20and\x20exits.\x0a');let _0xf4c092=async _0x1b4d84=>{_0x299817=!0x0;try{await _0x58665f(_0x1b4d84);}finally{_0x299817=!0x1;}};try{if(_0x56e79b&&await _0xf4c092(_0x56e79b),_0x30d3ba)return;!_0x4880c1&&!_0x3170a5&&_0x54c27f['show']();for(let _0x41b178=await _0x1f88cd();_0x41b178!==null&&(_0x54c27f['hide'](),!_0x30d3ba);_0x41b178=await _0x1f88cd()){let _0x895278=_0x41b178[_0x56de45(0x2a9)]();if(_0x895278===_0x56de45(0x302))break;_0x895278&&await _0xf4c092(_0x895278),!_0x4880c1&&!_0x3170a5&&_0x54c27f[_0x56de45(0x2a0)]();}for(;!_0x30d3ba&&_0x3170a5;)await _0x110687;}finally{_0x3be8f2(null),_0x3a8379(),_0x54c27f[_0x56de45(0x14f)](),_0x7cdee6[_0x56de45(0x2e3)](_0x56de45(0x282),_0x234129),_0x7cdee6[_0x56de45(0x2fd)]();}}async function Jn(){const _0x3a719b=_0xfbbd45;let _0x59a3e9=Kt(process[_0x3a719b(0x31e)]['slice'](0x2));if(_0x59a3e9[_0x3a719b(0x335)]===_0x3a719b(0x1b0)){await Se(_0x59a3e9);return;}let _0x30938b=Qt();try{await Se(_0x59a3e9);}finally{_0x30938b();}}async function Se(_0x3e3884){const _0x11bca3=_0xfbbd45;if(_0x3e3884['help']){qt();return;}if(_0x3e3884['version']){console['log'](zt());return;}if(_0x3e3884[_0x11bca3(0x212)]===_0x11bca3(0x14e)){await _n(_0x3e3884);return;}if(_0x3e3884['subcommand']===_0x11bca3(0x13f)){await Pn(_0x3e3884['prompt']);return;}if(_0x3e3884[_0x11bca3(0x212)]==='logout'){await Zt();return;}if(_0x3e3884[_0x11bca3(0x212)]===_0x11bca3(0x147)){await en(_0x3e3884);return;}if(_0x3e3884[_0x11bca3(0x212)]===_0x11bca3(0x2ae)){await on(_0x3e3884);return;}if(_0x3e3884[_0x11bca3(0x212)]==='check'){await mn(_0x3e3884);return;}if(_0x3e3884['subcommand']==='sessions'){await an(_0x3e3884);return;}if(_0x3e3884['subcommand']===_0x11bca3(0x23f)){await hn(_0x3e3884);return;}if(_0x3e3884[_0x11bca3(0x212)]===_0x11bca3(0x185)||_0x3e3884['subcommand']===_0x11bca3(0x17d)||_0x3e3884[_0x11bca3(0x212)]===_0x11bca3(0x1a9)){await bn(_0x3e3884,_0x3e3884[_0x11bca3(0x212)]);return;}if(_0x3e3884[_0x11bca3(0x212)]==='complete'){await vn(_0x3e3884);return;}if(_0x3e3884['subcommand']==='transcribe'){await xn(_0x3e3884);return;}if(_0x3e3884['subcommand']===_0x11bca3(0x1cb)){await Tn(_0x3e3884);return;}if(_0x3e3884[_0x11bca3(0x212)]===_0x11bca3(0x24b)){await Nn(_0x3e3884);return;}if(_0x3e3884[_0x11bca3(0x212)]===_0x11bca3(0x1e5)){await _0x4d2af8(_0x3e3884['prompt'],{'runnerUrl':_0x3e3884[_0x11bca3(0x314)],'backendUrl':_0x3e3884[_0x11bca3(0x2ba)],'interopPath':_0x3e3884['interopPath'],'workerId':_0x3e3884[_0x11bca3(0x264)]});return;}if(_0x3e3884[_0x11bca3(0x1da)]){await sn();return;}await Fn(_0x3e3884);}var Hn=process.env.NODE_ENV===_0xfbbd45(0x33c)||!!process.env.JEST_WORKER_ID;Hn||Jn()[_0xfbbd45(0x193)](_0x49871a=>{const _0x35dc95=_0xfbbd45;console[_0x35dc95(0x12f)](_0x49871a[_0x35dc95(0x214)]||_0x49871a['message']||_0x49871a),process[_0x35dc95(0x1c6)](0x1);});export{Wt as CARTOGRAPHER_SKILLS,pe as EFFORT_TIERS,Yt as IMPLICIT_STDIN_IDLE_MS,ke as buildInitOptions,Jn as main,Kt as parseArgs,zt as readCliVersion,H as resolvePrompt,Qt as routeStdoutToStderr,m as writeCommandResult};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uipath/delegate-cli",
3
- "version": "1.207.0-preview.20261125075217",
3
+ "version": "1.207.0-preview.20261125093155",
4
4
  "description": "UiPath Delegate CLI - drive the Delegate agent from the terminal. Wraps @uipath/delegate-sdk; installing this package pulls the SDK in — no separate install.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "commonjs",
@@ -22,7 +22,7 @@
22
22
  "publish:npmjs": "npm publish --@uipath:registry=https://registry.npmjs.org/ --access public --ignore-scripts"
23
23
  },
24
24
  "dependencies": {
25
- "@uipath/delegate-sdk": "1.207.0-preview.20261125075217"
25
+ "@uipath/delegate-sdk": "1.207.0-preview.20261125093155"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@types/node": "^22.0.0",