@uipath/delegate-cli 1.206.0-preview.20261123022827 → 1.206.0-preview.20261123094028
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.mjs +1 -1
- package/package.json +2 -2
package/dist/cli.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
const _0x47eda6=_0x28b8;(function(_0x1262d9,_0x5c55c4){const _0x499c56=_0x28b8,_0x13acfc=_0x1262d9();while(!![]){try{const _0x50c327=-parseInt(_0x499c56(0x2bb))/0x1+-parseInt(_0x499c56(0x33f))/0x2*(-parseInt(_0x499c56(0x39c))/0x3)+-parseInt(_0x499c56(0x244))/0x4*(parseInt(_0x499c56(0x242))/0x5)+-parseInt(_0x499c56(0x3a2))/0x6+parseInt(_0x499c56(0x346))/0x7+-parseInt(_0x499c56(0x336))/0x8*(-parseInt(_0x499c56(0x33e))/0x9)+parseInt(_0x499c56(0x290))/0xa;if(_0x50c327===_0x5c55c4)break;else _0x13acfc['push'](_0x13acfc['shift']());}catch(_0x1e552b){_0x13acfc['push'](_0x13acfc['shift']());}}}(_0x49ba,0x72fe4));const __dirname=import.meta.dirname;import _0x2f3dd5 from'fs';import _0x27e621 from'path';import{clearLine as _0x384c52,createInterface as _0x504295,cursorTo as _0x3c4512}from'node:readline';import{isOnStepGrid as _0x174e71}from'@uipath/delegate-sdk';var _=_0x47eda6(0x260);function S(_0x881e4c){const _0x35f96d=_0x47eda6;return _0x881e4c[_0x35f96d(0x303)](/\u001b\[[0-?]*[ -/]*[@-~]|\u001b\][^\u0007\u001b]*(\u0007|\u001b\\)?|\u001b./g,'')[_0x35f96d(0x303)](/[\u0000-\u0008\u000b-\u001f\u007f-\u009f]/g,'');}function V(_0x33d673){const _0x442843=_0x47eda6;return S(_0x33d673[_0x442843(0x330)]??(_0x33d673['kind']===_?_0x442843(0x2dc):_0x33d673['id']));}function Te(_0x41d479,_0x16f440,_0x165d4a){const _0x3ce98a=_0x47eda6;let _0x2fc42c=[''+(_0x165d4a>0x1?'['+_0x16f440+'/'+_0x165d4a+']\x20':'')+S(_0x41d479[_0x3ce98a(0x37c)])+(_0x41d479['optional']?_0x3ce98a(0x2a8):''),S(_0x41d479[_0x3ce98a(0x253)])];return _0x41d479['type']===_0x3ce98a(0x33d)&&_0x41d479[_0x3ce98a(0x345)][_0x3ce98a(0x2bc)]((_0x2e6cba,_0x26aacf)=>{const _0x618a50=_0x3ce98a;let _0x2eafbf=_0x2e6cba['kind']===_?_0x618a50(0x397):'',_0x957b79=_0x2e6cba[_0x618a50(0x267)]?_0x618a50(0x1d4)+S(_0x2e6cba['description']):'';_0x2fc42c[_0x618a50(0x2b8)]('\x20\x20'+(_0x26aacf+0x1)+'.\x20'+V(_0x2e6cba)+_0x2eafbf+_0x957b79);}),_0x2fc42c['join']('\x0a');}function X(_0x3c28e1,_0x79e2b9){const _0x42357c=_0x47eda6;let _0x2ea7b1=_0x3c28e1[_0x42357c(0x21b)](/[\s,]+/)[_0x42357c(0x1e8)](Boolean);if(_0x2ea7b1[_0x42357c(0x2d0)]===0x0)return null;let _0x53cc46=_0x2ea7b1['map'](_0xf4325=>/^\d+$/[_0x42357c(0x323)](_0xf4325)?Number(_0xf4325):NaN);return _0x53cc46[_0x42357c(0x36d)](_0x450fa6=>!Number[_0x42357c(0x235)](_0x450fa6)||_0x450fa6<0x1||_0x450fa6>_0x79e2b9)?null:[...new Set(_0x53cc46)][_0x42357c(0x26c)](_0x582a28=>_0x582a28-0x1);}function xe(_0x4e661a){const _0x507d66=_0x47eda6;return typeof _0x4e661a==_0x507d66(0x27a)&&_0x4e661a!==null&&'refused'in _0x4e661a;}async function R(_0x4e96f6,_0xc8c98f,_0x11cc7b,_0x59e31c){const _0x20bab6=_0x47eda6;for(;;){let _0xa7c6cb=(await _0x4e96f6(_0xc8c98f))[_0x20bab6(0x27f)]();if(_0xa7c6cb==='')return;let _0x17cd01=_0x59e31c(_0xa7c6cb);if(!xe(_0x17cd01))return _0x17cd01;_0x11cc7b(_0x17cd01[_0x20bab6(0x281)]+'\x0a');}}async function De(_0x261c84,_0x4ba6bb,_0x5bb1b7){const _0x54343b=_0x47eda6;if(_0x261c84[_0x54343b(0x345)][_0x54343b(0x2d0)]===0x0||_0x261c84[_0x54343b(0x345)][_0x54343b(0x295)](_0x3cfd96=>_0x3cfd96[_0x54343b(0x31d)]===_)){let _0x4a70e3=(await _0x4ba6bb(_0x54343b(0x2e8)))[_0x54343b(0x27f)]();return _0x4a70e3===''?void 0x0:{'text':_0x4a70e3};}let _0x3a01a8=_0x261c84['options'][_0x54343b(0x3a3)](_0x153d21=>_0x153d21[_0x54343b(0x31d)]===_),_0x3b7d81=_0x261c84['multiSelect']?_0x54343b(0x25d):_0x54343b(0x216)+(_0x3a01a8>=0x0?_0x54343b(0x3a0):'')+_0x54343b(0x2eb),_0x2a0a5a=await R(_0x4ba6bb,_0x3b7d81,_0x5bb1b7,_0x17cb57=>{const _0x2ebca1=_0x54343b;let _0x1530f6=X(_0x17cb57,_0x261c84['options'][_0x2ebca1(0x2d0)]);return _0x1530f6&&(_0x261c84[_0x2ebca1(0x2d9)]||_0x1530f6[_0x2ebca1(0x2d0)]===0x1)?_0x1530f6:!_0x261c84[_0x2ebca1(0x2d9)]&&_0x3a01a8>=0x0?{'typed':_0x17cb57}:{'refused':_0x261c84[_0x2ebca1(0x2d9)]?_0x2ebca1(0x23e)+_0x261c84[_0x2ebca1(0x345)]['length']+'.':'Enter\x20one\x20number\x20from\x201\x20to\x20'+_0x261c84[_0x2ebca1(0x345)][_0x2ebca1(0x2d0)]+'.'};});if(_0x2a0a5a===void 0x0)return;if(!Array[_0x54343b(0x1c2)](_0x2a0a5a))return{'text':_0x2a0a5a[_0x54343b(0x390)]};let _0x4910ee=_0x2a0a5a[_0x54343b(0x26c)](_0x591778=>_0x261c84[_0x54343b(0x345)][_0x591778]['id']),_0x44b168=_0x4910ee[_0x54343b(0x296)](_)?await R(_0x4ba6bb,V(_0x261c84['options'][_0x3a01a8])+':\x20',_0x5bb1b7,_0x17b151=>_0x17b151):void 0x0;if(!(_0x4910ee[_0x54343b(0x296)](_)&&_0x44b168===void 0x0))return _0x261c84[_0x54343b(0x2d9)]?{'optionIds':_0x4910ee,..._0x44b168!==void 0x0?{'text':_0x44b168}:{}}:_0x44b168!==void 0x0?{'text':_0x44b168}:{'optionId':_0x4910ee[0x0]};}async function Ue(_0x326a58,_0x1eec45,_0x271d9c){const _0x1bd682=_0x47eda6;let _0xc5d77c={};for(let _0x22a475 of _0x326a58['fields']){let _0x459b4c=_0x22a475[_0x1bd682(0x3a6)]??_0x22a475[_0x1bd682(0x3b3)],_0x23ab7f=_0x22a475['step']??0x1,_0x586d75=_0x22a475[_0x1bd682(0x1ec)]?'\x20'+S(_0x22a475[_0x1bd682(0x1ec)]):'',_0x98f2ef=_0x1bd682(0x215)+_0x22a475[_0x1bd682(0x3b3)]+_0x1bd682(0x2a0)+_0x22a475[_0x1bd682(0x272)]+(_0x23ab7f!==0x1?_0x1bd682(0x305)+_0x23ab7f:''),_0x3084e1=await R(_0x1eec45,S(_0x22a475['label'])+'\x20['+_0x22a475[_0x1bd682(0x3b3)]+'-'+_0x22a475[_0x1bd682(0x272)]+_0x586d75+_0x1bd682(0x2d8)+_0x459b4c+_0x1bd682(0x34e),_0x271d9c,_0x4b2acc=>{const _0x303437=_0x1bd682;let _0x45a73a=Number(_0x4b2acc);return Number['isFinite'](_0x45a73a)&&_0x45a73a>=_0x22a475[_0x303437(0x3b3)]&&_0x45a73a<=_0x22a475['max']&&_0x174e71(_0x45a73a,_0x22a475[_0x303437(0x3b3)],_0x23ab7f)?_0x45a73a:{'refused':_0x303437(0x2f2)+_0x98f2ef+'.'};});_0xc5d77c[_0x22a475['id']]=_0x3084e1??_0x459b4c;}return{'values':_0xc5d77c};}async function Ne(_0x3618e6,_0x214c54,_0x3142f){const _0x43f70f=_0x47eda6;_0x3142f(_0x3618e6[_0x43f70f(0x28e)][_0x43f70f(0x26c)]((_0x3f1b70,_0x557d10)=>'\x20\x20'+(_0x557d10+0x1)+'.\x20'+S(_0x3f1b70[_0x43f70f(0x330)]))[_0x43f70f(0x280)]('\x0a')+'\x0a');let _0x34a947={};for(let _0x411db8 of _0x3618e6[_0x43f70f(0x320)]){let _0x246eda=await R(_0x214c54,S(_0x411db8[_0x43f70f(0x330)])+_0x43f70f(0x2d2),_0x3142f,_0x2d2bce=>{const _0x4f6b6d=_0x43f70f;let _0xc31237=X(_0x2d2bce,_0x3618e6[_0x4f6b6d(0x28e)][_0x4f6b6d(0x2d0)]);return _0xc31237&&_0xc31237[_0x4f6b6d(0x2d0)]===0x1?_0xc31237[0x0]:{'refused':_0x4f6b6d(0x319)+_0x3618e6[_0x4f6b6d(0x28e)][_0x4f6b6d(0x2d0)]+'.'};});if(_0x246eda===void 0x0)continue;let _0x47d15d=_0x3618e6[_0x43f70f(0x28e)][_0x246eda],_0x259732={};for(let _0x1e27db of _0x47d15d['subFields']??[]){let _0xdcb268='\x20\x20'+S(_0x1e27db[_0x43f70f(0x330)])+(_0x1e27db[_0x43f70f(0x210)]?_0x43f70f(0x2a8):'')+':\x20',_0x3c3f77=await R(_0x214c54,_0xdcb268,_0x3142f,_0x53ad16=>_0x53ad16);for(;_0x3c3f77===void 0x0&&!_0x1e27db['optional'];)_0x3142f(S(_0x1e27db[_0x43f70f(0x330)])+_0x43f70f(0x34d)),_0x3c3f77=await R(_0x214c54,_0xdcb268,_0x3142f,_0x18120b=>_0x18120b);_0x3c3f77!==void 0x0&&(_0x259732[_0x1e27db['id']]=_0x3c3f77);}_0x34a947[_0x411db8['id']]={'bucket':_0x47d15d['id'],...Object['keys'](_0x259732)[_0x43f70f(0x2d0)]>0x0?{'subFields':_0x259732}:{}};}return Object['keys'](_0x34a947)[_0x43f70f(0x2d0)]>0x0?{'assignments':_0x34a947}:void 0x0;}async function _e(_0x4bf914,_0x55d956,_0x44f436){const _0x27c291=_0x47eda6;if(_0x4bf914[_0x27c291(0x294)]===_0x27c291(0x33d))return De(_0x4bf914,_0x55d956,_0x44f436);if(_0x4bf914[_0x27c291(0x294)]===_0x27c291(0x27b))return Ue(_0x4bf914,_0x55d956,_0x44f436);if(_0x4bf914[_0x27c291(0x294)]===_0x27c291(0x22e))return Ne(_0x4bf914,_0x55d956,_0x44f436);let _0x249333=(await _0x55d956(_0x27c291(0x38a)))[_0x27c291(0x27f)]();return _0x249333===''?void 0x0:{'text':_0x249333};}function Z(_0x400543,_0x5921b2){return async _0xa0fd96=>{const _0x18513c=_0x28b8;let _0x3f6c1e=_0x400543();if(!_0x3f6c1e)throw new Error('There\x20is\x20no\x20terminal\x20input\x20to\x20answer\x20from.');let _0x4427ca=async _0x169ea1=>{const _0x42ee13=_0x28b8;if(_0xa0fd96[_0x42ee13(0x264)][_0x42ee13(0x39a)])throw new Error(_0x42ee13(0x395));let _0x31792a=await _0x3f6c1e[_0x42ee13(0x329)](_0x169ea1,_0xa0fd96[_0x42ee13(0x264)]);if(_0x31792a===null)throw new Error(_0x42ee13(0x343));return _0x31792a;};try{_0x5921b2('\x0a'+(_0xa0fd96[_0x18513c(0x2e2)]?S(_0xa0fd96[_0x18513c(0x2e2)])+'\x0a':''));let _0x1e6a17={};for(let [_0x5514b5,_0x48e85e]of _0xa0fd96[_0x18513c(0x231)]['entries']()){_0x5921b2('\x0a'+Te(_0x48e85e,_0x5514b5+0x1,_0xa0fd96[_0x18513c(0x231)][_0x18513c(0x2d0)])+'\x0a');let _0x49d8aa=await _e(_0x48e85e,_0x4427ca,_0x5921b2);_0x49d8aa!==void 0x0&&(_0x1e6a17[_0x48e85e['id']]=_0x49d8aa);}return{'answers':_0x1e6a17};}finally{_0x3f6c1e[_0x18513c(0x380)]();}};}import{BUSINESS_ANALYSIS_PRELOADED_SKILLS as _0x32d4f6,DelegateAgent as _0x2032d9,cancelTurn as _0x270762,InteropProcess as _0x43d79d,complete as _0x4ffcf5,DEFAULT_MODEL as _0x338702,createBackendClient as _0x3bd6fa,evaluate as _0x4c2016,isCompletionRequestError as _0x2a5269,isEvaluationRequestError as _0x1d5d67,isTranscriptionError as _0x5ed68a,rerank as _0x3fbc49,transcribe as _0x4378fe,verify as _0x3fc7d4,acceptDelegation as _0x4b6ff3,cancelDelegation as _0x48adb0,claimDelegation as _0x5e35c5,completeDelegation as _0x772f47,createDelegation as _0x5350cb,deleteDelegation as _0xa49735,dismissDelegation as _0x1fd37f,getSessionDelegations as _0x33768b,isDelegationError as _0x2d12c5,listDelegations as _0x1a6a70,listOrgUsers as _0x47c5f7,previewDelegation as _0x27c13c,TurnResultCollector as _0x4368e7,agentEventToJsonLine as _0x281f2f,describeBaseUrlRejection as _0x2d365a,getActivitySummary as _0x248ad0,getAuthFilePath as _0x22cbed,getByoWarnings as _0x31189e,getCartographerAllowance as _0x4a4c5a,getDailyBreakdown as _0x5ce58e,getLicensingSummary as _0xf4547a,getMonthlySpending as _0x4d9cdd,isOutputFormat as _0xa2b17c,isCloudBaseUrl as _0x3ee308,isSafeProjectFolderSegment as _0x13fd31,listModels as _0x98fc9d,listSessions as _0x8c84f2,getSession as _0x2fbfe6,renameSession as _0x2a4a5d,deleteSession as _0x27bb01,deleteSessionTaskLog as _0x4b9f80,forkSession as _0x9aa7b0,isBackendRequestError as _0x3f1621,MAX_SESSION_PAGE_SIZE as _0x5c531b,listTenants as _0x591b02,loadAndRefreshAuth as _0x570363,loadAndRefreshSdkLogin as _0x556481,parsePlatformBaseUrl as _0x2cac93,resolveBackendUrl as _0x5621a8,runHealthCheck as _0x221e91,runHostCommand as _0x31a718,runLoginFlow as _0x539e48,runTurnForResult as _0x72c58e,saveAuthData as _0x2ccd7d,switchTenant as _0x2a9c38,toJsonLine as _0x446fb3,ENV_TO_CLOUD as _0x5b466d,OUTPUT_FORMATS as _0x23c5c4}from'@uipath/delegate-sdk';var Nt=[_0x47eda6(0x1d0),'tenant',_0x47eda6(0x26f),_0x47eda6(0x1ef),_0x47eda6(0x255),_0x47eda6(0x353),_0x47eda6(0x2f5),_0x47eda6(0x36e),_0x47eda6(0x2ad),_0x47eda6(0x1c3),_0x47eda6(0x269),_0x47eda6(0x2b7),'complete',_0x47eda6(0x384),_0x47eda6(0x2e1),_0x47eda6(0x1c9)],se=['',_0x47eda6(0x26f),'whoami','check',_0x47eda6(0x36e),_0x47eda6(0x2ad),_0x47eda6(0x1c3),_0x47eda6(0x269),_0x47eda6(0x2b7),_0x47eda6(0x1d3),_0x47eda6(0x384),_0x47eda6(0x2e1),_0x47eda6(0x1c9)],re=['low',_0x47eda6(0x34a),'high','xhigh','max'],_t=_0x32d4f6;function w(_0x1bd985,_0x52f29a,_0x4f577a,_0xe199b){const _0x1df7d6=_0x47eda6;let _0x76a9f4=_0x1bd985[_0x52f29a];return(!_0x76a9f4||_0x76a9f4['length']>0x1&&_0x76a9f4[_0x1df7d6(0x29e)]('-'))&&(console[_0x1df7d6(0x1e5)](_0x4f577a+_0x1df7d6(0x1d1)+_0xe199b+'.'),process['exit'](0x2)),_0x76a9f4;}function J(_0x4353b3,_0x488a19,_0x5d28dd,_0x153446){const _0x50222b=_0x47eda6;let _0x540929=w(_0x4353b3,_0x488a19,_0x5d28dd,_0x50222b(0x3a9)),_0x187822=Number(_0x540929);return(!/^\d+$/[_0x50222b(0x323)](_0x540929)||_0x187822<0x1||!Number[_0x50222b(0x37d)](_0x187822)||_0x153446!==void 0x0&&_0x187822>_0x153446)&&(console[_0x50222b(0x1e5)](_0x5d28dd+_0x50222b(0x39e)+(_0x153446===void 0x0?_0x50222b(0x2aa):'from\x201\x20to\x20'+_0x153446)+_0x50222b(0x307)+_0x540929+'.'),process[_0x50222b(0x2ff)](0x2)),_0x187822;}function Rt(_0x370ea9){const _0x42deaa=_0x47eda6;let _0x1187af={'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':_0x42deaa(0x33d),'preloadSkills':[],'attachments':[],'skipEnvCheck':!0x1,'includeSubAgents':!0x1,'operands':[],'help':!0x1,'version':!0x1};Nt[_0x42deaa(0x296)](_0x370ea9[0x0])&&(_0x1187af['subcommand']=_0x370ea9[0x0],_0x370ea9=_0x370ea9[_0x42deaa(0x2fa)](0x1));let _0xa66d01=[];for(let _0x3101f1=0x0;_0x3101f1<_0x370ea9['length'];_0x3101f1++){let _0x3ca62a=_0x370ea9[_0x3101f1];switch(_0x3ca62a){case _0x42deaa(0x1cc):case'-p':_0x1187af['print']=!0x0;break;case _0x42deaa(0x25a):_0x1187af['keepAlive']=!0x0;break;case'--cleanup':_0x1187af['cleanup']=!0x0;break;case _0x42deaa(0x332):_0x1187af[_0x42deaa(0x1c8)]=!0x0;break;case _0x42deaa(0x24c):_0x1187af[_0x42deaa(0x232)]=!0x0;break;case _0x42deaa(0x1ff):_0x1187af['cartographer']=!0x0,_0x1187af[_0x42deaa(0x232)]=!0x0,_0x1187af[_0x42deaa(0x35c)][_0x42deaa(0x2b8)](..._t);break;case'--no-connections':_0x1187af[_0x42deaa(0x203)]=!0x0;break;case'--no-security':_0x1187af[_0x42deaa(0x301)]=!0x0;break;case _0x42deaa(0x3a8):_0x1187af[_0x42deaa(0x378)]=!0x0;break;case _0x42deaa(0x39f):_0x1187af[_0x42deaa(0x361)]=!0x0;break;case _0x42deaa(0x310):case'-q':_0x1187af['quiet']=!0x0;break;case _0x42deaa(0x3ab):_0x1187af[_0x42deaa(0x39d)]=!0x0;break;case _0x42deaa(0x2da):_0x1187af[_0x42deaa(0x347)]=_0x370ea9[++_0x3101f1];break;case'--model':_0x1187af[_0x42deaa(0x34c)]=_0x370ea9[++_0x3101f1];break;case'--runner-url':_0x1187af[_0x42deaa(0x1c5)]=_0x370ea9[++_0x3101f1];break;case _0x42deaa(0x285):_0x1187af[_0x42deaa(0x2ec)]=_0x370ea9[++_0x3101f1];break;case _0x42deaa(0x3a7):_0x1187af['workerId']=_0x370ea9[++_0x3101f1];break;case _0x42deaa(0x23c):_0x1187af[_0x42deaa(0x35c)][_0x42deaa(0x2b8)](w(_0x370ea9,++_0x3101f1,_0x3ca62a,_0x42deaa(0x1d9)));break;case _0x42deaa(0x3ad):{let _0x57ed29=w(_0x370ea9,++_0x3101f1,_0x3ca62a,_0x42deaa(0x38d));_0x13fd31(_0x57ed29)||(console[_0x42deaa(0x1e5)](_0x42deaa(0x1d6)+_0x57ed29+_0x42deaa(0x2df)),process[_0x42deaa(0x2ff)](0x2)),_0x1187af[_0x42deaa(0x249)]=_0x57ed29;break;}case _0x42deaa(0x299):{let _0x5cd043=w(_0x370ea9,++_0x3101f1,_0x3ca62a,_0x42deaa(0x26e)+_0x23c5c4[_0x42deaa(0x280)](_0x42deaa(0x1ca))+')');_0xa2b17c(_0x5cd043)||(console[_0x42deaa(0x1e5)]('Invalid\x20--output-format:\x20'+_0x5cd043+_0x42deaa(0x1da)+_0x23c5c4[_0x42deaa(0x280)]('\x20|\x20')+'.'),process[_0x42deaa(0x2ff)](0x2)),_0x1187af['outputFormat']=_0x5cd043;break;}case _0x42deaa(0x278):_0x1187af[_0x42deaa(0x257)]=w(_0x370ea9,++_0x3101f1,_0x3ca62a,_0x42deaa(0x21d));break;case _0x42deaa(0x2d4):_0x1187af[_0x42deaa(0x379)]=J(_0x370ea9,++_0x3101f1,_0x3ca62a);break;case _0x42deaa(0x20e):_0x1187af[_0x42deaa(0x324)]=J(_0x370ea9,++_0x3101f1,_0x3ca62a,_0x5c531b);break;case _0x42deaa(0x350):_0x1187af[_0x42deaa(0x3b0)]=!0x0;break;case _0x42deaa(0x250):_0x1187af[_0x42deaa(0x1f6)]=w(_0x370ea9,++_0x3101f1,_0x3ca62a,'a\x20JSON\x20schema\x20file');break;case _0x42deaa(0x1f9):{let _0x48b9e8=_0x27e621[_0x42deaa(0x1f4)](process['cwd'](),w(_0x370ea9,++_0x3101f1,_0x3ca62a,_0x42deaa(0x29d)));_0x2f3dd5[_0x42deaa(0x1e0)](_0x48b9e8)||(console[_0x42deaa(0x1e5)]('--attach:\x20no\x20such\x20file\x20or\x20folder:\x20'+_0x48b9e8),process[_0x42deaa(0x2ff)](0x2)),_0x1187af[_0x42deaa(0x35e)][_0x42deaa(0x2b8)](_0x48b9e8);break;}case _0x42deaa(0x1f1):_0x1187af[_0x42deaa(0x1f3)]=w(_0x370ea9,++_0x3101f1,_0x3ca62a,_0x42deaa(0x1dc));break;case _0x42deaa(0x31c):_0x1187af[_0x42deaa(0x309)]=w(_0x370ea9,++_0x3101f1,_0x3ca62a,_0x42deaa(0x29c));break;case _0x42deaa(0x355):_0x1187af[_0x42deaa(0x2e9)]=w(_0x370ea9,++_0x3101f1,_0x3ca62a,'a\x20briefing\x20text');break;case _0x42deaa(0x266):_0x1187af[_0x42deaa(0x22f)]=J(_0x370ea9,++_0x3101f1,_0x3ca62a,0x16d);break;case'--working-dir':_0x1187af[_0x42deaa(0x391)]=_0x27e621[_0x42deaa(0x1f4)](process[_0x42deaa(0x218)](),w(_0x370ea9,++_0x3101f1,_0x3ca62a,_0x42deaa(0x1d8)));break;case'--skills-path':_0x1187af[_0x42deaa(0x241)]=_0x27e621[_0x42deaa(0x1f4)](process[_0x42deaa(0x218)](),w(_0x370ea9,++_0x3101f1,_0x3ca62a,'a\x20directory\x20path'));break;case _0x42deaa(0x21f):{let _0x4e0971=w(_0x370ea9,++_0x3101f1,_0x3ca62a,_0x42deaa(0x325));re[_0x42deaa(0x296)](_0x4e0971)||(console[_0x42deaa(0x1e5)](_0x42deaa(0x37a)+_0x4e0971+_0x42deaa(0x1da)+re[_0x42deaa(0x280)](_0x42deaa(0x1ca))+'.'),process['exit'](0x2)),_0x1187af[_0x42deaa(0x2c9)]=_0x4e0971;break;}case _0x42deaa(0x283):{let _0x4d3f26=_0x370ea9[++_0x3101f1];(!_0x4d3f26||_0x4d3f26[_0x42deaa(0x29e)]('--'))&&(console[_0x42deaa(0x1e5)]('--tenant\x20requires\x20a\x20tenant\x20name.'),process[_0x42deaa(0x2ff)](0x2)),_0x1187af[_0x42deaa(0x1c0)]=_0x4d3f26;break;}case _0x42deaa(0x351):{let _0x2e68d7=_0x370ea9[++_0x3101f1];[_0x42deaa(0x326),'staging',_0x42deaa(0x2b4),'localhost'][_0x42deaa(0x296)](_0x2e68d7)||(console['error']('Invalid\x20--env:\x20'+_0x2e68d7+_0x42deaa(0x308)),process['exit'](0x2)),_0x1187af[_0x42deaa(0x381)]=_0x2e68d7;break;}case _0x42deaa(0x341):case _0x42deaa(0x311):{let _0x26da79=w(_0x370ea9,++_0x3101f1,_0x3ca62a,'a\x20deployment\x20URL,\x20e.g.\x20https://automationsuite.contoso.com'),_0x3a699a=_0x2cac93(_0x26da79);if(_0x3a699a['ok']===!0x1){console['error'](_0x2d365a(_0x26da79,_0x3a699a[_0x42deaa(0x246)])),process[_0x42deaa(0x2ff)](0x2);break;}_0x1187af[_0x42deaa(0x20a)]=_0x3a699a['baseUrl'];break;}case _0x42deaa(0x26a):_0x1187af['skipEnvCheck']=!0x0;break;case'-h':case _0x42deaa(0x28a):_0x1187af[_0x42deaa(0x2c0)]=!0x0;break;case'-v':case _0x42deaa(0x297):_0x1187af[_0x42deaa(0x1db)]=!0x0;break;default:_0x3ca62a[_0x42deaa(0x29e)]('--')&&(console[_0x42deaa(0x1e5)]('Unknown\x20flag:\x20'+_0x3ca62a),process[_0x42deaa(0x2ff)](0x2)),_0xa66d01['push'](_0x3ca62a);}}return _0x1187af['tenant']!==void 0x0&&_0x1187af[_0x42deaa(0x2e3)]!==_0x42deaa(0x1d0)&&(console['error']('--tenant\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Switch\x20tenants\x20with:\x20delegate-cli\x20tenant\x20<name>'),process[_0x42deaa(0x2ff)](0x2)),_0x1187af[_0x42deaa(0x20a)]!==void 0x0&&_0x1187af[_0x42deaa(0x381)]!==void 0x0&&(console['error'](_0x42deaa(0x327)),process['exit'](0x2)),_0x1187af['url']!==void 0x0&&_0x1187af[_0x42deaa(0x2e3)]!=='login'&&(console[_0x42deaa(0x1e5)](_0x42deaa(0x27d)),process[_0x42deaa(0x2ff)](0x2)),_0x1187af[_0x42deaa(0x22f)]!==void 0x0&&_0x1187af[_0x42deaa(0x2e3)]!==_0x42deaa(0x2ad)&&(console[_0x42deaa(0x1e5)](_0x42deaa(0x21c)),process[_0x42deaa(0x2ff)](0x2)),_0x1187af['jsonSchemaPath']!==void 0x0&&(_0x1187af[_0x42deaa(0x2e3)]!==_0x42deaa(0x1d3)&&_0x1187af['subcommand']!==''||_0x1187af['cleanup'])&&(console[_0x42deaa(0x1e5)]('--json-schema\x20applies\x20to\x20prompts\x20and\x20to\x20`delegate-cli\x20complete`\x20only.'),process[_0x42deaa(0x2ff)](0x2)),_0x1187af['attachments'][_0x42deaa(0x2d0)]>0x0&&(_0x1187af[_0x42deaa(0x2e3)]!==''||_0x1187af['cleanup'])&&(console[_0x42deaa(0x1e5)]('--attach\x20applies\x20to\x20prompts\x20only.'),process[_0x42deaa(0x2ff)](0x2)),_0x1187af['taskAutomation']&&(_0x1187af[_0x42deaa(0x2e3)]!==''||_0x1187af[_0x42deaa(0x214)])&&(console[_0x42deaa(0x1e5)](_0x42deaa(0x387)),process[_0x42deaa(0x2ff)](0x2)),_0x1187af[_0x42deaa(0x361)]&&(_0x1187af[_0x42deaa(0x1c8)]||_0x1187af['noComputerUse'])&&(console[_0x42deaa(0x1e5)](_0x42deaa(0x371)),process[_0x42deaa(0x2ff)](0x2)),_0x1187af[_0x42deaa(0x287)]&&_0x1187af['subcommand']!=='login'&&(console[_0x42deaa(0x1e5)](_0x42deaa(0x386)),process[_0x42deaa(0x2ff)](0x2)),_0x1187af[_0x42deaa(0x274)]!==_0x42deaa(0x33d)&&!se['includes'](_0x1187af[_0x42deaa(0x2e3)])&&(console[_0x42deaa(0x1e5)](_0x42deaa(0x30b)+_0x1187af['outputFormat']+'\x20applies\x20to\x20prompts\x20and\x20to\x20these\x20commands\x20only:\x20'+se[_0x42deaa(0x1e8)](Boolean)[_0x42deaa(0x280)](',\x20')+'.'),process[_0x42deaa(0x2ff)](0x2)),(_0x1187af['page']!==void 0x0||_0x1187af[_0x42deaa(0x324)]!==void 0x0||_0x1187af[_0x42deaa(0x3b0)])&&_0x1187af[_0x42deaa(0x2e3)]!==_0x42deaa(0x36e)&&(console[_0x42deaa(0x1e5)](_0x42deaa(0x2cf)),process[_0x42deaa(0x2ff)](0x2)),(_0x1187af[_0x42deaa(0x309)]!==void 0x0||_0x1187af[_0x42deaa(0x2e9)]!==void 0x0)&&_0x1187af[_0x42deaa(0x2e3)]!=='delegations'&&(console[_0x42deaa(0x1e5)]('--to\x20and\x20--summary\x20apply\x20to\x20`delegate-cli\x20delegations\x20create`\x20only.'),process[_0x42deaa(0x2ff)](0x2)),_0x1187af[_0x42deaa(0x1f3)]!==void 0x0&&_0x1187af[_0x42deaa(0x2e3)]!=='sessions'&&(console['error'](_0x42deaa(0x2ae)),process[_0x42deaa(0x2ff)](0x2)),_0x1187af[_0x42deaa(0x35c)]=[...new Set(_0x1187af['preloadSkills'])],_0x1187af[_0x42deaa(0x2ce)]=_0xa66d01,_0x1187af[_0x42deaa(0x3aa)]=_0xa66d01[_0x42deaa(0x280)]('\x20'),_0x1187af;}var P=_0x502dce=>{const _0x16eeb2=_0x47eda6;process[_0x16eeb2(0x28b)][_0x16eeb2(0x224)](_0x502dce);};function Pt(){const _0x3d3b63=_0x47eda6;let _0x6df821=process[_0x3d3b63(0x28b)]['write'],_0x2f9183=_0x6df821[_0x3d3b63(0x328)](process[_0x3d3b63(0x28b)]),_0x191c85=P;return P=_0xbfaf35=>{_0x2f9183(_0xbfaf35);},process['stdout'][_0x3d3b63(0x224)]=(..._0x4cf71b)=>process[_0x3d3b63(0x335)]['write'](..._0x4cf71b),()=>{const _0x1effe9=_0x3d3b63;process[_0x1effe9(0x28b)][_0x1effe9(0x224)]=_0x6df821,P=_0x191c85;};}function u(_0x44b21f,_0x372249,_0x4ff100){const _0x1fedeb=_0x47eda6;if(_0x44b21f[_0x1fedeb(0x274)]===_0x1fedeb(0x33d)){_0x4ff100(_0x372249);return;}P(_0x446fb3(_0x372249));}function Ct(){const _0x238727=_0x47eda6;let _0x110356=_0x238727(0x2b6)[_0x238727(0x27f)]();console['log'](_0x110356);}function Lt(){const _0x3dadf1=_0x47eda6;try{return JSON[_0x3dadf1(0x31a)](_0x2f3dd5[_0x3dadf1(0x212)](_0x27e621['join'](__dirname,'..',_0x3dadf1(0x2ab)),_0x3dadf1(0x21a)))[_0x3dadf1(0x1db)]||_0x3dadf1(0x352);}catch{return'unknown';}}var Ot=0x7d0;async function ie(_0x40a29c,_0x2afcc8){const _0x2f3578=_0x47eda6;let _0x105886=_0x2afcc8?[_0x2afcc8]:[];for await(let _0x42abc0 of _0x40a29c)_0x105886[_0x2f3578(0x2b8)](Buffer[_0x2f3578(0x369)](_0x42abc0));return Buffer['concat'](_0x105886)[_0x2f3578(0x1e1)](_0x2f3578(0x21a))[_0x2f3578(0x27f)]();}function Ft(_0x311622,_0x5be50e){return new Promise(_0x9ade68=>{const _0x51f5f2=_0x28b8;let _0x2eccd1=_0x4b3600=>{const _0x133d3c=_0x28b8;clearTimeout(_0x42ff03),_0x311622[_0x133d3c(0x38b)](_0x133d3c(0x34b),_0x36a667),_0x311622[_0x133d3c(0x38b)](_0x133d3c(0x312),_0x18f0fa),_0x311622[_0x133d3c(0x38b)](_0x133d3c(0x1e5),_0x18f0fa),_0x311622[_0x133d3c(0x2e6)](),_0x9ade68(_0x4b3600);},_0x36a667=_0x3e4046=>_0x2eccd1(Buffer['from'](_0x3e4046)),_0x18f0fa=()=>_0x2eccd1(null),_0x42ff03=setTimeout(()=>_0x2eccd1(null),_0x5be50e);_0x311622['on'](_0x51f5f2(0x34b),_0x36a667),_0x311622['on'](_0x51f5f2(0x312),_0x18f0fa),_0x311622['on'](_0x51f5f2(0x1e5),_0x18f0fa),_0x311622[_0x51f5f2(0x20b)]();});}async function j(_0x5a7207,_0x81d442,_0x551de0=Ot){const _0x120317=_0x47eda6;let _0x3b7f26=_0x5a7207==='-';if(!_0x3b7f26&&_0x5a7207)return _0x5a7207;if(!_0x3b7f26&&_0x81d442[_0x120317(0x340)])return'';if(_0x3b7f26)return ie(_0x81d442,null);let _0x161874=await Ft(_0x81d442,_0x551de0);return _0x161874?ie(_0x81d442,_0x161874):'';}function K(){const _0x17a270=_0x47eda6;return _0x27e621[_0x17a270(0x280)](process.env.HOME||process.env.USERPROFILE||'',_0x17a270(0x39b),'auth.json');}function M(_0x1eb705){const _0x42e708=_0x47eda6;try{let _0x26f039=JSON['parse'](_0x2f3dd5[_0x42e708(0x212)](_0x1eb705,_0x42e708(0x21a)));return!_0x26f039['accessToken']||!_0x26f039['tenantId']||!_0x26f039[_0x42e708(0x263)]?null:_0x26f039;}catch{return null;}}function jt(){const _0xbd36c1=_0x47eda6;let _0x2eab63=[{'file':_0x22cbed(),'isDesktopFallback':!0x1},{'file':K(),'isDesktopFallback':!0x0}];for(let _0x352437 of _0x2eab63){let _0x15e753=M(_0x352437[_0xbd36c1(0x302)]);if(_0x15e753)return{..._0x352437,'auth':_0x15e753};}return null;}async function Mt(){const _0x18a751=_0x47eda6;let _0x39137b=_0x22cbed();if(!_0x2f3dd5[_0x18a751(0x1e0)](_0x39137b)){let _0x1966ab=K();console[_0x18a751(0x21e)](M(_0x1966ab)?_0x18a751(0x349)+_0x1966ab+_0x18a751(0x27e):_0x18a751(0x333));return;}_0x2f3dd5[_0x18a751(0x229)](_0x39137b),console['log'](_0x18a751(0x2ac)+_0x39137b);}async function Bt(_0x5ab777){const _0xaaeb52=_0x47eda6;let _0x573774=Q(),_0x302002,_0x208044;if(_0x573774)_0x302002=_0x573774,_0x208044=_0xaaeb52(0x339);else{let _0x31b961=jt();if(!_0x31b961)throw new Error(Se);_0x302002=_0x31b961['auth'],_0x208044=_0x31b961['isDesktopFallback']?_0x31b961[_0xaaeb52(0x302)]+_0xaaeb52(0x204):_0x31b961[_0xaaeb52(0x302)];}let _0x4da10b={'source':_0x208044,'baseUrl':_0x302002[_0xaaeb52(0x239)]??null,'deployment':Ht(_0x302002[_0xaaeb52(0x239)]),'organization':{'id':_0x302002[_0xaaeb52(0x263)],'slug':_0x302002[_0xaaeb52(0x1ee)]??null},'tenant':{'id':_0x302002[_0xaaeb52(0x2c7)],'name':_0x302002['tenantName']??null},'tokenExpiresAt':_0x302002[_0xaaeb52(0x2ee)]?new Date(_0x302002[_0xaaeb52(0x2ee)]*0x3e8)['toISOString']():null};u(_0x5ab777,_0x4da10b,()=>{const _0x4361f0=_0xaaeb52;let _0x5b3218=[_0x4361f0(0x247)+_0x208044,_0x4361f0(0x219)+(_0x302002[_0x4361f0(0x239)]??_0x4361f0(0x352)),_0x4361f0(0x32c)+_0x4da10b['deployment'],_0x4361f0(0x2d6)+(_0x302002[_0x4361f0(0x1ee)]??'unknown\x20slug')+'\x20('+_0x302002[_0x4361f0(0x263)]+')','Tenant:\x20\x20\x20\x20\x20\x20\x20'+(_0x302002[_0x4361f0(0x32d)]??_0x4361f0(0x2a1))+'\x20('+_0x302002[_0x4361f0(0x2c7)]+')'];if(_0x302002[_0x4361f0(0x2ee)]){let _0xfbffe4=_0x302002[_0x4361f0(0x2ee)]-Math[_0x4361f0(0x388)](Date[_0x4361f0(0x24b)]()/0x3e8);_0x5b3218[_0x4361f0(0x2b8)](_0xfbffe4>0x0?_0x4361f0(0x221)+_0x4da10b[_0x4361f0(0x270)]+_0x4361f0(0x318)+Math[_0x4361f0(0x213)](_0xfbffe4/0x3c)+_0x4361f0(0x306):_0x4361f0(0x34f)+_0x4da10b[_0x4361f0(0x270)]);}process[_0x4361f0(0x28b)][_0x4361f0(0x224)](_0x5b3218[_0x4361f0(0x280)]('\x0a')+'\x0a');});}var Se=_0x47eda6(0x258);function Ht(_0x272ff3){const _0x4fc49f=_0x47eda6;return _0x272ff3?_0x3ee308(_0x272ff3)?'UiPath\x20Cloud':'self-hosted\x20(Automation\x20Suite\x20/\x20Dedicated)':_0x4fc49f(0x352);}function Q(){let _0x18d020=process.env.AUTH_TOKEN_FILE;return(process.env.AUTH_TOKEN||_0x18d020)&&process.env.TENANT_ID&&process.env.ORG_ID?{'accessToken':_0x18d020?Jt(_0x18d020):process.env.AUTH_TOKEN,..._0x18d020?{'accessTokenFile':_0x18d020}:{},'tenantId':process.env.TENANT_ID,'organizationId':process.env.ORG_ID,'orgLogicalName':process.env.ORG_SLUG,'tenantName':process.env.TENANT_SLUG,'baseUrl':ve()}:null;}function Jt(_0x5c7a24){const _0x13bcce=_0x47eda6;let _0x1a041c;try{_0x1a041c=_0x2f3dd5[_0x13bcce(0x212)](_0x5c7a24,_0x13bcce(0x21a))[_0x13bcce(0x27f)]();}catch(_0x2bdbd7){throw new Error(_0x13bcce(0x2c2)+_0x5c7a24+_0x13bcce(0x1d7)+_0x2bdbd7[_0x13bcce(0x374)]);}let _0x9b32e4=_0x1a041c['startsWith'](_0x13bcce(0x300))?_0x1a041c[_0x13bcce(0x2fa)](0x7)[_0x13bcce(0x27f)]():_0x1a041c;if(!_0x9b32e4)throw new Error(_0x13bcce(0x2c2)+_0x5c7a24+'\x27\x20is\x20empty.');return _0x9b32e4;}function ve(){const _0x312ce2=_0x47eda6;let _0x459368=process.env.UIPATH_BASE_URL;if(!_0x459368)return;let _0x4da705=_0x2cac93(_0x459368);if(_0x4da705['ok']===!0x1)throw new Error('UIPATH_BASE_URL\x20is\x20unusable.\x20'+_0x2d365a(_0x459368,_0x4da705[_0x312ce2(0x246)]));return _0x4da705['baseUrl'];}async function q(){let _0x5b98f6=Q();if(_0x5b98f6)return _0x5b98f6;let _0xac40e2=await _0x570363();if(_0xac40e2)return _0xac40e2;throw new Error(Se);}async function Gt(){const _0x557b81=_0x47eda6;await new _0x43d79d()[_0x557b81(0x201)]({'force':!0x0}),console['log']('Interop\x20stopped\x20(if\x20it\x20was\x20running).');}function _0x28b8(_0x45acce,_0x5ea9c1){_0x45acce=_0x45acce-0x1c0;const _0x49ba87=_0x49ba();let _0x28b8f2=_0x49ba87[_0x45acce];return _0x28b8f2;}function z(_0x5fa502,_0x55036b,_0x2d90d9){const _0x269f99=_0x47eda6;_0x5fa502?process['stderr']['write'](_0x269f99(0x2ed)+_0x5fa502+_0x269f99(0x363)+_0x2d90d9+'\x0a'):!_0x55036b&&!process.env.BACKEND_URL&&process[_0x269f99(0x335)]['write'](_0x269f99(0x251)+_0x2d90d9+'\x0a');}async function v(_0x163120){const _0x359063=_0x47eda6;let _0x10fae5=await q(),_0x38f3cb=_0x5621a8(_0x163120[_0x359063(0x381)],_0x10fae5,_0x163120['backendUrl']);return z(_0x163120[_0x359063(0x381)],_0x163120['backendUrl'],_0x38f3cb),{'auth':_0x10fae5,'backendUrl':_0x38f3cb,'client':_0x3bd6fa({'auth':_0x10fae5,'backendUrl':_0x38f3cb})};}async function Wt(_0x4ce0b2){const _0x5d3452=_0x47eda6;let {client:_0x116479}=await v(_0x4ce0b2),[_0x138ee1,_0x1fa9fe]=await Promise[_0x5d3452(0x2c3)]([_0x98fc9d(_0x116479),_0x31189e(_0x116479)['catch'](_0x2a1fd1=>(process[_0x5d3452(0x335)][_0x5d3452(0x224)]('Could\x20not\x20check\x20BYO\x20model\x20warnings:\x20'+(_0x2a1fd1 instanceof Error?_0x2a1fd1[_0x5d3452(0x374)]:String(_0x2a1fd1))+'\x0a'),{}))]),_0xe88b16=_0x138ee1['map'](_0x16454e=>_0x1fa9fe[_0x16454e['id']]?{..._0x16454e,'byoWarning':_0x1fa9fe[_0x16454e['id']]}:_0x16454e);u(_0x4ce0b2,_0xe88b16,Kt);}function Kt(_0x2086aa){const _0x340153=_0x47eda6;if(_0x2086aa[_0x340153(0x2d0)]===0x0){process['stderr'][_0x340153(0x224)](_0x340153(0x357));return;}process[_0x340153(0x28b)][_0x340153(0x224)](_0x340153(0x2a6)+_0x2086aa[_0x340153(0x2d0)]+_0x340153(0x35a));for(let _0x7cf1a8 of _0x2086aa){let _0x55bf84=_0x7cf1a8[_0x340153(0x24e)]&&_0x7cf1a8[_0x340153(0x24e)]!==_0x7cf1a8['id']?'\x20('+_0x7cf1a8['name']+')':'';process['stdout'][_0x340153(0x224)]('\x20\x20'+_0x7cf1a8['id']+_0x55bf84+'\x0a'),_0x7cf1a8[_0x340153(0x267)]&&process[_0x340153(0x28b)][_0x340153(0x224)](_0x340153(0x372)+_0x7cf1a8[_0x340153(0x267)]+'\x0a'),_0x7cf1a8[_0x340153(0x22a)]&&process[_0x340153(0x28b)]['write'](_0x340153(0x28d)+(_0x7cf1a8[_0x340153(0x2ef)]?'\x20('+_0x7cf1a8['lockReason']+')':'')+'\x0a'),_0x7cf1a8[_0x340153(0x377)]&&process[_0x340153(0x28b)]['write'](_0x340153(0x28f)+_0x7cf1a8[_0x340153(0x377)]+'\x0a');}process[_0x340153(0x28b)][_0x340153(0x224)](_0x340153(0x22b));}var ae=[_0x47eda6(0x1e6),_0x47eda6(0x273),'rename',_0x47eda6(0x2ba),_0x47eda6(0x206),_0x47eda6(0x32f)];async function Qt(_0x2c431f){const _0x22aa22=_0x47eda6;let [_0xa39ee1='',_0x152e5f='',..._0x3e0389]=_0x2c431f[_0x22aa22(0x2ce)];if(_0xa39ee1&&!ae[_0x22aa22(0x296)](_0xa39ee1)&&(console[_0x22aa22(0x1e5)](_0x22aa22(0x286)+_0xa39ee1+'.\x20Use:\x20'+ae['join'](_0x22aa22(0x1ca))+'.'),process['exit'](0x2)),_0x2c431f['turnId']!==void 0x0&&_0xa39ee1!==_0x22aa22(0x206)&&(console[_0x22aa22(0x1e5)](_0x22aa22(0x2ae)),process[_0x22aa22(0x2ff)](0x2)),_0xa39ee1&&_0xa39ee1!=='list'){await qt(_0x2c431f,_0xa39ee1,_0x152e5f,_0x3e0389[_0x22aa22(0x280)]('\x20')[_0x22aa22(0x27f)]());return;}_0x2c431f[_0x22aa22(0x2ce)][_0x22aa22(0x2d0)]>0x1&&(console[_0x22aa22(0x1e5)]('Usage:\x20delegate-cli\x20sessions\x20[list]\x20[--page\x20N]\x20[--limit\x20N]\x20[--include-subagents]'),process[_0x22aa22(0x2ff)](0x2));let {client:_0x184b9c}=await v(_0x2c431f),_0x5b303e=await _0x8c84f2(_0x184b9c,{'page':_0x2c431f[_0x22aa22(0x379)],'pageSize':_0x2c431f[_0x22aa22(0x324)],'includeSubAgents':_0x2c431f[_0x22aa22(0x3b0)]});u(_0x2c431f,_0x5b303e,Xt);}async function qt(_0x32aeee,_0x527b86,_0x358f2b,_0x2a75b6){const _0x59ebf5=_0x47eda6;if((_0x32aeee['page']!==void 0x0||_0x32aeee['limit']!==void 0x0||_0x32aeee[_0x59ebf5(0x3b0)])&&(console['error']('--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`delegate-cli\x20sessions\x20[list]`\x20only.'),process[_0x59ebf5(0x2ff)](0x2)),_0x527b86==='cancel'){await Yt(_0x32aeee,_0x358f2b,_0x2a75b6);return;}if(_0x527b86==='fork'){await Vt(_0x32aeee,_0x358f2b,_0x2a75b6);return;}(!_0x358f2b||_0x527b86===_0x59ebf5(0x360)!=!!_0x2a75b6)&&(console[_0x59ebf5(0x1e5)](_0x59ebf5(0x20f)+_0x527b86+_0x59ebf5(0x3ae)+(_0x527b86===_0x59ebf5(0x360)?_0x59ebf5(0x2dd):'')),process[_0x59ebf5(0x2ff)](0x2));let {client:_0x465d2b}=await v(_0x32aeee);try{if(_0x527b86===_0x59ebf5(0x273)){let _0x2788a9=await _0x2fbfe6(_0x465d2b,_0x358f2b);_0x2788a9||le(_0x358f2b),u(_0x32aeee,_0x2788a9,zt);}else{if(_0x527b86===_0x59ebf5(0x360)){let _0x4b0b14=await _0x2a4a5d(_0x465d2b,_0x358f2b,_0x2a75b6);u(_0x32aeee,_0x4b0b14,_0x1a70a6=>{const _0x56e05b=_0x59ebf5;process[_0x56e05b(0x28b)][_0x56e05b(0x224)](_0x56e05b(0x25e)+_0x1a70a6['id']+':\x20'+_0x1a70a6['title']+'\x0a');});}else await _0x27bb01(_0x465d2b,_0x358f2b),await _0x4b9f80(_0x358f2b,_0x32aeee[_0x59ebf5(0x391)]),u(_0x32aeee,{'id':_0x358f2b,'deleted':!0x0},_0x57479c=>{const _0x33e226=_0x59ebf5;process[_0x33e226(0x28b)][_0x33e226(0x224)](_0x33e226(0x23b)+_0x57479c['id']+'.\x0a');});}}catch(_0x29a2df){if(!_0x3f1621(_0x29a2df,0x194))throw _0x29a2df;le(_0x358f2b);}}function le(_0x16abf0){const _0x2fdc9f=_0x47eda6;console[_0x2fdc9f(0x1e5)](_0x2fdc9f(0x362)+_0x16abf0+_0x2fdc9f(0x2e4)),process[_0x2fdc9f(0x2ff)](0x1);}function zt(_0x572473){const _0x31e17c=_0x47eda6;process[_0x31e17c(0x28b)]['write']('ID\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x572473['id']+'\x0a'),process[_0x31e17c(0x28b)][_0x31e17c(0x224)](_0x31e17c(0x383)+_0x572473[_0x31e17c(0x202)]+'\x0a'),process[_0x31e17c(0x28b)][_0x31e17c(0x224)]('Owner\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x572473['userId']+'\x0a'),process['stdout'][_0x31e17c(0x224)](_0x31e17c(0x289)+_0x572473[_0x31e17c(0x263)]+'\x0a'),_0x572473['delegationId']&&process[_0x31e17c(0x28b)][_0x31e17c(0x224)](_0x31e17c(0x209)+_0x572473['delegationId']+'\x0a');}async function Yt(_0x1702e5,_0x3a1fc6,_0x3a7783){const _0x4a2678=_0x47eda6;(!_0x3a1fc6||_0x3a7783||!_0x1702e5[_0x4a2678(0x1f3)])&&(console[_0x4a2678(0x1e5)]('Usage:\x20delegate-cli\x20sessions\x20cancel\x20<session-id>\x20--turn\x20<turn-id>'),process['exit'](0x2));let {client:_0x54eb7b}=await v(_0x1702e5),_0x55a8a5=await _0x270762(_0x54eb7b,_0x3a1fc6,_0x1702e5[_0x4a2678(0x1f3)]);u(_0x1702e5,{'sessionId':_0x3a1fc6,'turnId':_0x1702e5['turnId'],'cancelled':_0x55a8a5},_0x4c13b2=>{const _0x30bb9f=_0x4a2678;_0x4c13b2[_0x30bb9f(0x2a4)]?process[_0x30bb9f(0x28b)][_0x30bb9f(0x224)](_0x30bb9f(0x207)+_0x4c13b2['turnId']+_0x30bb9f(0x223)+_0x4c13b2['sessionId']+'.\x0a'):process['stderr'][_0x30bb9f(0x224)](_0x30bb9f(0x2a3)+_0x4c13b2['turnId']+_0x30bb9f(0x2c8)+_0x4c13b2[_0x30bb9f(0x257)]+'.\x0a');}),_0x55a8a5||(process['exitCode']=0x1);}async function Vt(_0x5c6e14,_0x228ba1,_0x3b0af2){const _0x1a2d43=_0x47eda6;(!_0x228ba1||/\s/[_0x1a2d43(0x323)](_0x3b0af2))&&(console['error'](_0x1a2d43(0x334)),process[_0x1a2d43(0x2ff)](0x2));let {client:_0x430037}=await v(_0x5c6e14),_0x3c318f;try{_0x3c318f=await _0x9aa7b0(_0x430037,_0x228ba1,{'atMessageId':_0x3b0af2||void 0x0});}catch(_0x511a10){if(!_0x3f1621(_0x511a10,0x194))throw _0x511a10;console[_0x1a2d43(0x1e5)]('Session\x20'+_0x228ba1+_0x1a2d43(0x222)+(_0x3b0af2?',\x20or\x20holds\x20no\x20message\x20'+_0x3b0af2:'')+'.'),process[_0x1a2d43(0x2ff)](0x1);}u(_0x5c6e14,_0x3c318f,_0x19eebe=>{const _0x268451=_0x1a2d43;process[_0x268451(0x28b)]['write'](_0x268451(0x2a7)+_0x228ba1+'\x20into\x20'+_0x19eebe['id']+'.\x0a'),process[_0x268451(0x335)][_0x268451(0x224)](_0x268451(0x262)+_0x19eebe['id']+_0x268451(0x354));});}function Xt({sessions:_0x11e20f,page:_0xae18a4,isLastPage:_0x524e31}){const _0x41dcf5=_0x47eda6;if(_0x11e20f[_0x41dcf5(0x2d0)]===0x0)process[_0x41dcf5(0x335)][_0x41dcf5(0x224)](_0x41dcf5(0x348)+_0xae18a4+'.\x0a');else{process['stdout'][_0x41dcf5(0x224)]('ID'['padEnd'](0x24)+'\x20\x20'+'UPDATED'[_0x41dcf5(0x1fe)](0x13)+_0x41dcf5(0x268));for(let _0x1dd7b9 of _0x11e20f){let _0x450515=_0x1dd7b9[_0x41dcf5(0x1c4)][_0x41dcf5(0x303)]('T','\x20')[_0x41dcf5(0x2fa)](0x0,0x13),_0x6fedd4=_0x1dd7b9['parentSessionId']?_0x41dcf5(0x2d3)+_0x1dd7b9[_0x41dcf5(0x30a)]+')':'';process[_0x41dcf5(0x28b)][_0x41dcf5(0x224)](_0x1dd7b9['id'][_0x41dcf5(0x1fe)](0x24)+'\x20\x20'+_0x450515[_0x41dcf5(0x1fe)](0x13)+'\x20\x20'+_0x1dd7b9[_0x41dcf5(0x202)]+_0x6fedd4+'\x0a');}}_0x524e31||process[_0x41dcf5(0x335)]['write']('More:\x20delegate-cli\x20sessions\x20--page\x20'+(_0xae18a4+0x1)+'\x0a');}async function Zt(_0x54403b){const _0x3f1586=_0x47eda6;let _0x48d23a=await q(),_0x282fdb=_0x5621a8(_0x54403b['env'],_0x48d23a,_0x54403b[_0x3f1586(0x347)]);z(_0x54403b['env'],_0x54403b['backendUrl'],_0x282fdb);let _0x19a8fc=await _0x221e91({'auth':_0x48d23a,'backendUrl':_0x282fdb,'interop':_0x54403b[_0x3f1586(0x1c8)]?'skip':_0x3f1586(0x1de)});u(_0x54403b,_0x19a8fc,({checks:_0x1876c6})=>{const _0xe80818=_0x3f1586;for(let _0x3c2d64 of _0x1876c6)process[_0xe80818(0x28b)][_0xe80818(0x224)](en(_0x3c2d64)+'\x0a');}),_0x19a8fc['ok']||process[_0x3f1586(0x2ff)](0x1);}function en(_0x42b4a0){const _0xce1be=_0x47eda6;return{'ok':'✓','failed':'✗','skipped':'-'}[_0x42b4a0[_0xce1be(0x389)]]+'\x20'+_0x42b4a0[_0xce1be(0x24e)]['padEnd'](0xa)+_0x42b4a0[_0xce1be(0x2fb)];}var tn=['',_0x47eda6(0x2bd),_0x47eda6(0x35b)];async function nn(_0x17a018){const _0x4e336e=_0x47eda6;let _0x6b55e3=_0x17a018[_0x4e336e(0x3aa)];tn[_0x4e336e(0x296)](_0x6b55e3)||(console[_0x4e336e(0x1e5)](_0x4e336e(0x23f)+_0x17a018[_0x4e336e(0x3aa)]+_0x4e336e(0x398)),process[_0x4e336e(0x2ff)](0x2)),_0x6b55e3===''&&_0x17a018[_0x4e336e(0x22f)]!==void 0x0&&(console[_0x4e336e(0x1e5)](_0x4e336e(0x1fa)),process[_0x4e336e(0x2ff)](0x2)),_0x6b55e3!==''&&_0x17a018[_0x4e336e(0x257)]!==void 0x0&&(console[_0x4e336e(0x1e5)](_0x4e336e(0x342)),process['exit'](0x2));let {client:_0x3f4682}=await v(_0x17a018);if(_0x6b55e3===_0x4e336e(0x2bd)){u(_0x17a018,await _0x248ad0(_0x3f4682,{'days':_0x17a018[_0x4e336e(0x22f)]}),sn);return;}if(_0x6b55e3===_0x4e336e(0x35b)){u(_0x17a018,await _0x5ce58e(_0x3f4682,{'days':_0x17a018['days']}),rn);return;}let [_0x388a8a,_0x9ff93,_0x1e16c6]=await Promise['all']([_0xf4547a(_0x3f4682,{'sessionId':_0x17a018['sessionId']}),_0x4d9cdd(_0x3f4682),_0x4a4c5a(_0x3f4682)]);u(_0x17a018,{'licensing':_0x388a8a,'monthlySpending':_0x9ff93,'cartographerAllowance':_0x1e16c6},on);}function on(_0x27e4ef){const _0x4f7c16=_0x47eda6;let {licensing:_0x37d3fd,monthlySpending:_0x535e37,cartographerAllowance:_0x2f2ccb}=_0x27e4ef,_0x17ec14=[_0x37d3fd[_0x4f7c16(0x1e9)]?'Licensing:\x20\x20\x20\x20'+_0x37d3fd[_0x4f7c16(0x254)][_0x4f7c16(0x265)](0x1)+_0x4f7c16(0x28c)+(_0x37d3fd[_0x4f7c16(0x38c)]??0x0)+'\x20PU\x20used'+(_0x37d3fd[_0x4f7c16(0x22d)]>0x0?',\x20'+_0x37d3fd[_0x4f7c16(0x22d)]+_0x4f7c16(0x227):'')+_0x4f7c16(0x35d)+_0x37d3fd[_0x4f7c16(0x30f)]+')':'Licensing:\x20\x20\x20\x20no\x20licensing\x20quota\x20applies',_0x4f7c16(0x2c1)+_0x535e37[_0x4f7c16(0x314)][_0x4f7c16(0x265)](0x2)+'\x20this\x20month'+(_0x535e37[_0x4f7c16(0x1e9)]&&_0x535e37[_0x4f7c16(0x23d)]!==null?_0x4f7c16(0x31f)+_0x535e37['monthly_limit_usd'][_0x4f7c16(0x265)](0x2)+'\x20cap':_0x4f7c16(0x1ed)),_0x4f7c16(0x3b1)+_0x2f2ccb[_0x4f7c16(0x293)]+'\x20('+_0x2f2ccb[_0x4f7c16(0x394)]+')'];_0x37d3fd[_0x4f7c16(0x32b)]!==null&&_0x37d3fd[_0x4f7c16(0x32b)]!==void 0x0&&_0x17ec14[_0x4f7c16(0x2b8)]('Session:\x20\x20\x20\x20\x20\x20'+_0x37d3fd[_0x4f7c16(0x32b)]+_0x4f7c16(0x2f1)),process[_0x4f7c16(0x28b)][_0x4f7c16(0x224)](_0x17ec14[_0x4f7c16(0x280)]('\x0a')+'\x0a');}function sn(_0x45564b){const _0x2b295e=_0x47eda6;let _0x4dc289=[_0x2b295e(0x32e)+_0x45564b[_0x2b295e(0x31e)]+_0x2b295e(0x245)+_0x45564b['total_sessions']+'\x20sessions\x20on\x20'+_0x45564b['active_days']+_0x2b295e(0x317),'Cost:\x20\x20\x20$'+_0x45564b[_0x2b295e(0x366)][_0x2b295e(0x265)](0x2)+_0x2b295e(0x36b)+_0x45564b['estimated_cost_usd'][_0x2b295e(0x265)](0x2)+_0x2b295e(0x1c7)+_0x45564b['total_token_units']+_0x2b295e(0x288),_0x2b295e(0x1f8)+_0x45564b['total_prompt_tokens']+_0x2b295e(0x375)+_0x45564b[_0x2b295e(0x1d2)]+'\x20completion'];for(let [_0x4e66d2,_0x5b171e]of Object[_0x2b295e(0x33b)](_0x45564b[_0x2b295e(0x32a)]))_0x4dc289[_0x2b295e(0x2b8)]('\x20\x20'+_0x4e66d2+':\x20'+_0x5b171e+_0x2b295e(0x2f9));process[_0x2b295e(0x28b)][_0x2b295e(0x224)](_0x4dc289[_0x2b295e(0x280)]('\x0a')+'\x0a');}function rn(_0x7f3685){const _0x52ab4f=_0x47eda6;if(_0x7f3685['daily_usage'][_0x52ab4f(0x2d0)]===0x0){process['stdout'][_0x52ab4f(0x224)](_0x52ab4f(0x238)+_0x7f3685[_0x52ab4f(0x31e)]+_0x52ab4f(0x2d7));return;}let _0x46c911=[_0x52ab4f(0x1cb)];for(let _0xff3f5a of _0x7f3685[_0x52ab4f(0x364)])_0x46c911[_0x52ab4f(0x2b8)](_0xff3f5a[_0x52ab4f(0x2fc)]+'\x20\x20'+String(_0xff3f5a[_0x52ab4f(0x2f3)])[_0x52ab4f(0x26b)](0xb)+'\x20\x20'+String(_0xff3f5a[_0x52ab4f(0x331)])[_0x52ab4f(0x26b)](0xd)+'\x20\x20'+String(_0xff3f5a[_0x52ab4f(0x322)])[_0x52ab4f(0x26b)](0x11));process[_0x52ab4f(0x28b)][_0x52ab4f(0x224)](_0x46c911['join']('\x0a')+'\x0a');}async function an(_0x16265a,_0x3bf8ee){const _0x46e915=_0x47eda6;let _0x4b0a0a=await ln(_0x16265a['prompt'],_0x3bf8ee);_0x16265a[_0x46e915(0x34c)]&&(_0x4b0a0a['model']=_0x16265a['model']);let {client:_0x239ca0}=await v(_0x16265a);try{_0x3bf8ee===_0x46e915(0x1c3)?u(_0x16265a,await _0x4c2016(_0x239ca0,_0x4b0a0a,void 0x0),dn):_0x3bf8ee==='rerank'?u(_0x16265a,await _0x3fbc49(_0x239ca0,_0x4b0a0a,void 0x0),un):u(_0x16265a,await _0x3fc7d4(_0x239ca0,_0x4b0a0a,void 0x0),pn);}catch(_0x55f776){if(!_0x1d5d67(_0x55f776))throw _0x55f776;console[_0x46e915(0x1e5)](_0x55f776[_0x46e915(0x374)]),process[_0x46e915(0x2ff)](0x1);}}async function ln(_0x2e97af,_0x1e97d6){const _0x2de722=_0x47eda6;let _0x350014;try{_0x350014=_0x2e97af&&_0x2e97af!=='-'?_0x2f3dd5[_0x2de722(0x212)](_0x27e621['resolve'](_0x2e97af),_0x2de722(0x21a)):await j(_0x2e97af,process[_0x2de722(0x36f)]);}catch(_0x219f06){console[_0x2de722(0x1e5)](_0x1e97d6+_0x2de722(0x20d)+_0x219f06[_0x2de722(0x374)]+').'),process[_0x2de722(0x2ff)](0x2);}return _0x350014||(console[_0x2de722(0x1e5)](_0x1e97d6+_0x2de722(0x1f5)+_0x1e97d6+'\x20<file.json>,\x20or\x20-\x20to\x20read\x20stdin.'),process[_0x2de722(0x2ff)](0x2)),Ae(_0x350014,_0x1e97d6,'the\x20request');}function Ae(_0x471014,_0x113b15,_0x1bb7f4){const _0x467981=_0x47eda6;let _0x506921;try{_0x506921=JSON[_0x467981(0x31a)](_0x471014);}catch(_0x521b28){console[_0x467981(0x1e5)](_0x113b15+':\x20'+_0x1bb7f4+_0x467981(0x3a5)+_0x521b28[_0x467981(0x374)]+').'),process[_0x467981(0x2ff)](0x2);}return(typeof _0x506921!='object'||_0x506921===null||Array[_0x467981(0x1c2)](_0x506921))&&(console[_0x467981(0x1e5)](_0x113b15+':\x20'+_0x1bb7f4+'\x20must\x20be\x20a\x20JSON\x20object.'),process[_0x467981(0x2ff)](0x2)),_0x506921;}function $e(_0xdafca2,_0x991daf){const _0x1439c8=_0x47eda6;let _0x1ee115;try{_0x1ee115=_0x2f3dd5[_0x1439c8(0x212)](_0x27e621['resolve'](_0xdafca2),'utf-8');}catch(_0x37f123){console[_0x1439c8(0x1e5)](_0x991daf+_0x1439c8(0x370)+_0x37f123[_0x1439c8(0x374)]+').'),process['exit'](0x2);}return Ae(_0x1ee115,_0x991daf,_0x1439c8(0x2b9));}async function cn(_0x509ca7){const _0x2cb15a=_0x47eda6;_0x509ca7['jsonSchemaPath']===void 0x0&&(console['error'](_0x2cb15a(0x252)),process['exit'](0x2));let _0x59d477=$e(_0x509ca7[_0x2cb15a(0x1f6)],_0x2cb15a(0x1d3)),_0x5e3820=(await j(_0x509ca7['prompt'],process[_0x2cb15a(0x36f)]))[_0x2cb15a(0x27f)]();_0x5e3820||(console[_0x2cb15a(0x1e5)]('complete\x20needs\x20a\x20prompt:\x20delegate-cli\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22,\x20or\x20-\x20to\x20read\x20stdin.'),process[_0x2cb15a(0x2ff)](0x2));let {client:_0x86caad}=await v(_0x509ca7);try{let _0x3944f8=await _0x4ffcf5(_0x86caad,{'prompt':_0x5e3820,'jsonSchema':_0x59d477,'model':_0x509ca7[_0x2cb15a(0x34c)]||process.env.MODEL||_0x338702,..._0x509ca7[_0x2cb15a(0x257)]!==void 0x0&&{'sessionId':_0x509ca7[_0x2cb15a(0x257)]}},void 0x0);u(_0x509ca7,_0x3944f8,_0x267404=>{const _0x2912d0=_0x2cb15a;process[_0x2912d0(0x28b)]['write'](JSON['stringify'](_0x267404[_0x2912d0(0x237)],null,0x2)+'\x0a');});}catch(_0x5de9aa){if(!_0x2a5269(_0x5de9aa))throw _0x5de9aa;console[_0x2cb15a(0x1e5)](_0x5de9aa[_0x2cb15a(0x374)]),process[_0x2cb15a(0x2ff)](0x1);}}function Y(_0x19c1b0){const _0x2d2a59=_0x47eda6;process[_0x2d2a59(0x28b)][_0x2d2a59(0x224)](_0x2d2a59(0x23a)+_0x19c1b0[_0x2d2a59(0x34c)]+'\x20('+_0x19c1b0['model_version']+_0x2d2a59(0x217)+_0x19c1b0[_0x2d2a59(0x2ad)][_0x2d2a59(0x392)]+_0x2d2a59(0x1e3));}function dn(_0x333cf7){const _0x579962=_0x47eda6;Y(_0x333cf7);for(let _0x51012d of Object['keys'](_0x333cf7[_0x579962(0x3a1)])){let _0x741017=_0x333cf7[_0x579962(0x3a1)][_0x51012d],_0xe0e949=_0x741017[_0x579962(0x294)]===_0x579962(0x1fc)?'probability\x20'+_0x741017[_0x579962(0x1fc)]['toFixed'](0x2):_0x741017[_0x579962(0x294)]==='choice'?_0x579962(0x37f)+_0x741017['choice']+_0x579962(0x2a2)+_0x741017[_0x579962(0x2af)][_0x579962(0x265)](0x2)+')':_0x579962(0x316)+_0x741017[_0x579962(0x205)][_0x579962(0x265)](0x2)+_0x579962(0x2a2)+_0x741017[_0x579962(0x2af)][_0x579962(0x265)](0x2)+')';process[_0x579962(0x28b)][_0x579962(0x224)]('\x20\x20'+_0x51012d+':\x20'+_0xe0e949+'\x0a');}}function un(_0xcf99c3){const _0x44341a=_0x47eda6;Y(_0xcf99c3),_0xcf99c3[_0x44341a(0x315)][_0x44341a(0x2bc)]((_0x274df3,_0xd41e8c)=>{const _0x1de753=_0x44341a;process[_0x1de753(0x28b)][_0x1de753(0x224)]('\x20\x20'+(_0xd41e8c+0x1)+'.\x20'+_0x274df3['id']+'\x20\x20'+_0x274df3[_0x1de753(0x205)][_0x1de753(0x265)](0x3)+_0x1de753(0x220)+_0x274df3[_0x1de753(0x1f2)]+')\x0a');});}function pn(_0x46d11c){const _0x129e2d=_0x47eda6;Y(_0x46d11c),process[_0x129e2d(0x28b)]['write'](_0x129e2d(0x230)+_0x46d11c[_0x129e2d(0x33a)]+'\x0a');for(let _0x1c3e33 of _0x46d11c[_0x129e2d(0x315)])process[_0x129e2d(0x28b)][_0x129e2d(0x224)]('\x20\x20'+_0x1c3e33['id']+':\x20'+_0x1c3e33[_0x129e2d(0x25b)]+_0x129e2d(0x2a2)+_0x1c3e33[_0x129e2d(0x2af)][_0x129e2d(0x265)](0x2)+')\x0a');}async function mn(_0x176509){const _0x2d38a6=_0x47eda6;let _0x22e719=_0x176509[_0x2d38a6(0x3aa)][_0x2d38a6(0x27f)]();_0x22e719||(console[_0x2d38a6(0x1e5)](_0x2d38a6(0x337)),process[_0x2d38a6(0x2ff)](0x2));let {client:_0x4c4fcd}=await v(_0x176509);try{let _0x5aa95d=_0x22e719==='-'?{'data':await fn(process[_0x2d38a6(0x36f)])}:_0x22e719;u(_0x176509,await _0x4378fe(_0x4c4fcd,_0x5aa95d,void 0x0),_0x5e06f7=>{const _0x4c4bce=_0x2d38a6;process['stdout']['write'](_0x5e06f7[_0x4c4bce(0x33d)]+'\x0a');});}catch(_0x408a99){if(_0x5ed68a(_0x408a99)&&(console[_0x2d38a6(0x1e5)](_0x408a99[_0x2d38a6(0x374)]),process[_0x2d38a6(0x2ff)](_0x408a99[_0x2d38a6(0x389)]===void 0x0?0x2:0x1)),typeof _0x408a99?.[_0x2d38a6(0x234)]!=_0x2d38a6(0x25c))throw _0x408a99;console[_0x2d38a6(0x1e5)](_0x2d38a6(0x1f0)+_0x22e719+'\x20('+_0x408a99['message']+').'),process[_0x2d38a6(0x2ff)](0x2);}}async function fn(_0x1290cc){const _0x1d7118=_0x47eda6;let _0x492cbf=[];for await(let _0x388814 of _0x1290cc)_0x492cbf[_0x1d7118(0x2b8)](Buffer[_0x1d7118(0x369)](_0x388814));return Buffer['concat'](_0x492cbf);}function _0x49ba(){const _0x11ec3f=['existsSync','toString','a\x20colleague','\x20tokens\x0a','Already\x20accepted','error','list',').\x0a','filter','limit_enabled','print','\x0a⚠️\x20\x20Auth\x20expired.\x20Opening\x20browser\x20to\x20re-login…\x0a','unit','\x20(no\x20cap\x20enforced)','orgLogicalName','host','transcribe:\x20cannot\x20read\x20','--turn','index','turnId','resolve','\x20needs\x20a\x20JSON\x20request:\x20delegate-cli\x20','jsonSchemaPath','Delegated\x20','Tokens:\x20','--attach','--days\x20applies\x20to\x20`delegate-cli\x20usage\x20activity|daily`;\x20the\x20summary\x20covers\x20the\x20current\x20month.','sendMessage','probability','No\x20delegations.\x0a','padEnd','--cartographer','initialize','stop','title','noConnections','\x20(Delegate\x20desktop\x20app\x20fallback)','score','cancel','Cancel\x20requested\x20for\x20turn\x20','origin','Delegation\x20\x20\x20\x20','url','resume','session_start',':\x20cannot\x20read\x20the\x20request\x20(','--limit','Usage:\x20delegate-cli\x20sessions\x20','optional','delegations\x20claim\x20<delegation-id|delegate://delegation/…>','readFileSync','round','cleanup','from\x20','Number','),\x20','cwd','Base\x20URL:\x20\x20\x20\x20\x20','utf-8','split','--days\x20applies\x20to\x20`delegate-cli\x20usage\x20activity|daily`\x20only.','a\x20session\x20id','log','--effort','\x20\x20(input\x20#','Token:\x20\x20\x20\x20\x20\x20\x20\x20expires\x20','\x20not\x20found,\x20has\x20no\x20messages','\x20of\x20session\x20','write','delegations\x20accept\x20<delegation-id>','\x20(cancel\x20with:\x20delegate-cli\x20sessions\x20cancel\x20','\x20PU\x20beyond\x20quota','sourceTitle','rmSync','locked','\x0aUse\x20with:\x20delegate-cli\x20--model\x20<id>\x20\x22<prompt>\x22\x0a','Usage:\x20delegate-cli\x20org-users\x20<name\x20or\x20email\x20prefix>','extra_pool_consumed_pu','bucket','days','Rubric\x20','questions','noComputerUse','tool_call','code','isInteger','displayName','structured','No\x20usage\x20in\x20the\x20last\x20','baseUrl','Model\x20','Deleted\x20session\x20','--preload-skill','monthly_limit_usd','Enter\x20numbers\x20from\x201\x20to\x20','Unknown\x20usage\x20view:\x20','delegations\x20dismiss\x20<delegation-id>','bundledSkillsPath','239820KCNsnj','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','72RRmDBw','\x20days:\x20','rejection','Source:\x20\x20\x20\x20\x20\x20\x20','No\x20structured\x20output:\x20the\x20turn\x20failed\x20(','projectId','getSessionId','now','--no-computer-use','structuredError','name','delegationId','--json-schema','[saved\x20login]\x20Backend\x20URL:\x20','complete\x20needs\x20--json-schema\x20<file>:\x20delegate-cli\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22.','question','pct_used','logout','dismissed','sessionId','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.','turn_start','--keep-alive','verdict','string','Numbers,\x20separated\x20by\x20commas\x20(Enter\x20to\x20skip):\x20','Renamed\x20','Session:\x20','userinput','exitCode','Continue\x20it\x20with:\x20delegate-cli\x20--session\x20','organizationId','signal','toFixed','--days','description','\x20\x20TITLE\x0a','rerank','--skip-env-check','padStart','map','stream-json','a\x20format\x20(','models','tokenExpiresAt','finish','max','show','outputFormat','restore','once','\x0aStopping…\x20(Ctrl+C\x20again\x20to\x20force\x20exit)\x0a','--session','Missing\x20prompt.\x20Pass\x20it\x20as\x20an\x20argument,\x20pipe\x20it\x20via\x20stdin,\x20or\x20run\x20`delegate-cli\x20--help`.','object','numeric','delegations\x20list\x20<backend-project-id>','--url\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Other\x20commands\x20follow\x20the\x20saved\x20login,\x20or\x20--backend\x20<url>.','\x20—\x20sign\x20out\x20in\x20the\x20Delegate\x20app\x20to\x20clear\x20that.','trim','join','refused','assignedUser','--tenant','localhost','--interop','Unknown\x20sessions\x20action:\x20','skipEnvCheck','\x20token\x20units)','Organization\x20\x20','--help','stdout','%\x20of\x20','\x20\x20\x20\x20Not\x20available\x20on\x20this\x20plan','buckets','\x20\x20\x20\x20BYO\x20warning:\x20','13822200hZIYTz','sourceUserEmail','SIGINT','mode','type','every','includes','--version','onEvent','--output-format','delegations\x20pending\x20<session-id>','/exit','an\x20email\x20address\x20or\x20name','a\x20file\x20path','startsWith','keepAlive','\x20to\x20','unknown\x20slug','\x20(confidence\x20','No\x20turn\x20','cancelled','close','\x0aAvailable\x20models\x20(','Forked\x20','\x20(optional)','🔧\x20','1\x20or\x20more','package.json','Removed\x20','usage','--turn\x20applies\x20to\x20`delegate-cli\x20sessions\x20cancel`\x20only.','confidence','assignedUserEmail',')\x20—\x20saved\x20to\x20','done','deepLink','production','argv','\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--no-computer-use\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\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--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-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','verify','push','the\x20JSON\x20schema','delete','766758LAkVzt','forEach','activity','\x20--turn\x20','setPrompt','help','Spending:\x20\x20\x20\x20\x20$','AUTH_TOKEN_FILE\x20\x27','all','Already\x20answered','Accepted','\x22.\x0a','tenantId','\x20in\x20progress\x20on\x20session\x20','effort','erase','addEventListener','create','Task\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','operands','--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`delegate-cli\x20sessions`\x20only.','length','thinking',':\x20bucket\x20number\x20(Enter\x20to\x20leave\x20out):\x20','\x20\x20(sub-agent\x20of\x20','--page','\x20\x20from\x20','Organization:\x20','\x20days.\x0a',']\x20(Enter\x20for\x20','multiSelect','--backend','oneTurn','Something\x20else','\x20<title>','deleted','\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).','stack','delegations','intro','subcommand','\x20not\x20found.','Answered','pause','Session\x20\x20\x20\x20\x20\x20\x20','Your\x20answer\x20(Enter\x20to\x20skip):\x20','contextSummary','delegate-cli','\x20(Enter\x20to\x20skip):\x20','interopPath','[env=','expiresAt','lockReason','pendingResults','\x20PU','Enter\x20a\x20number\x20','token_units','shift','check','Claimed\x20from\x20delegation\x20','task','removeEventListener','\x20token\x20units','slice','detail','date','tool','Tenants\x20of\x20','exit','Bearer\x20','noSecurity','file','replace','alreadyAccepted','\x20in\x20steps\x20of\x20','\x20min)',',\x20got\x20','.\x20Use\x20alpha\x20|\x20staging\x20|\x20production\x20|\x20localhost.','delegateTo','parentSessionId','--output-format\x20','\x20(resume\x20with\x20--session\x20','destroy','delegations\x20complete\x20<delegation-id>\x20\x22<answer>\x22|-','period_end','--quiet','--authority','end','catch','monthly_spend_usd','results','score\x20','\x20active\x20days','\x20(in\x20','Enter\x20one\x20number\x20from\x201\x20to\x20','parse','delegation','--to','kind','period_days','\x20of\x20a\x20$','items','\x20(current)','completion_tokens','test','limit','an\x20effort\x20tier','alpha','Pass\x20either\x20--env\x20(a\x20named\x20cloud)\x20or\x20--url\x20(any\x20other\x20deployment),\x20not\x20both.','bind','readLine','models_breakdown','session_consumed_pu','Deployment:\x20\x20\x20','tenantName','Last\x20','fork','label','prompt_tokens','--headless','No\x20CLI\x20login\x20found\x20—\x20nothing\x20to\x20remove.','Usage:\x20delegate-cli\x20sessions\x20fork\x20<id>\x20[<message-id>]','stderr','214376cMtLei','transcribe\x20needs\x20audio:\x20delegate-cli\x20transcribe\x20<file>,\x20or\x20-\x20to\x20read\x20stdin.','toolName','environment\x20variables\x20(AUTH_TOKEN/TENANT_ID/ORG_ID)','rubric_version','entries','quiet','text','63NjRGAl','6178BunOcU','isTTY','--url','--session\x20applies\x20to\x20the\x20`delegate-cli\x20usage`\x20summary\x20only.','Input\x20closed\x20before\x20the\x20question\x20was\x20answered.','\x0aAccept\x20one\x20with:\x20delegate-cli\x20delegations\x20accept\x20<id>\x0a','options','5922980GXovwx','backendUrl','No\x20sessions\x20on\x20page\x20','No\x20CLI\x20login\x20found.\x20Note:\x20the\x20CLI\x20is\x20currently\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20','medium','data','model','\x20is\x20required.\x0a','):\x20','Token:\x20\x20\x20\x20\x20\x20\x20\x20expired\x20','--include-subagents','--env','unknown','whoami','\x20\x22<prompt>\x22\x0a','--summary','Usage:\x20delegate-cli\x20','No\x20models\x20available\x20for\x20this\x20product/tenant.\x0a','input','delegations\x20show\x20<delegation-id|delegate://delegation/…>','):\x0a\x0a','daily','preloadSkills','\x20(resets\x20','attachments','\x20\x22<answer>\x22\x0a','rename','taskAutomation','Session\x20',']\x20Backend\x20URL:\x20','daily_usage','workerId','total_cost_usd','\x20\x22<prompt>\x22\x0aAnswer\x20with:\x20delegate-cli\x20delegations\x20complete\x20','Unknown\x20delegations\x20action:\x20','from','Use:\x20delegate-cli\x20delegations\x20','\x20(estimated\x20$','hide','some','sessions','stdin',':\x20cannot\x20read\x20the\x20JSON\x20schema\x20(','--task-automation\x20needs\x20computer\x20use:\x20the\x20task\x20log\x20is\x20written\x20by\x20the\x20UI-automation\x20tools.\x20Drop\x20--headless,\x20--no-computer-use\x20and\x20--cartographer.','\x20\x20\x20\x20','lastType','message','\x20prompt,\x20','accept','byoWarning','noMemory','page','Invalid\x20--effort:\x20','>.\x0a','header','isSafeInteger','The\x20saved\x20CLI\x20login\x20could\x20not\x20be\x20refreshed.\x20Run\x20`delegate-cli\x20login`\x20again.','choice\x20','endQuestions','env','result','Title\x20\x20\x20\x20\x20\x20\x20\x20\x20','transcribe','then','--skip-env-check\x20applies\x20to\x20`delegate-cli\x20login`\x20only.','--task-automation\x20applies\x20to\x20prompts\x20only.','floor','status','Your\x20answer,\x20as\x20text\x20(the\x20CLI\x20attaches\x20no\x20files;\x20Enter\x20to\x20skip):\x20','off','total_quota_pu','a\x20project\x20id','No\x20one\x20matches\x20\x22','Tenant\x20not\x20switched:\x20could\x20not\x20write\x20','typed','workingDirectory','total_tokens','--to,\x20--summary\x20and\x20--session\x20apply\x20to\x20`delegate-cli\x20delegations\x20create`\x20only.','model_id','The\x20turn\x20was\x20cancelled.','Turn:\x20','\x20(type\x20your\x20own)','.\x20Use\x20`delegate-cli\x20usage`,\x20`usage\x20activity`\x20or\x20`usage\x20daily`.','email','aborted','.aria','381FbIjXt','verbose','\x20must\x20be\x20a\x20whole\x20number\x20','--task-automation','\x20or\x20your\x20own\x20answer','answers','4242720VNhekB','findIndex','Switch\x20with:\x20delegate-cli\x20tenant\x20<name>\x0a','\x20is\x20not\x20valid\x20JSON\x20(','default','--worker-id','--no-memory','a\x20number','prompt','--verbose','STATUS','--project','\x20<id>','delegations\x20delete\x20<delegation-id>','includeSubAgents','Cartographer:\x20','\x20delegation\x20','min','tenant','No\x20CLI\x20login\x20found.\x20Run\x20`delegate-cli\x20login\x20--env\x20<alpha|staging|production>`\x20first.','isArray','evaluate','updatedAt','runnerUrl','Enter\x20sends\x20a\x20message.\x20/exit\x20or\x20EOF\x20exits;\x20Ctrl+C\x20stops\x20and\x20exits.\x0a','\x20from\x20','headless','org-users','\x20|\x20','Date\x20\x20\x20\x20\x20\x20\x20\x20Token\x20units\x20\x20Prompt\x20tokens\x20\x20Completion\x20tokens','--print','content','dismiss',';\x20the\x20saved\x20login\x20still\x20uses\x20','login','\x20requires\x20','total_completion_tokens','complete','\x20-\x20','delegations\x20cancel\x20<delegation-id>','Invalid\x20--project:\x20\x22','\x27\x20cannot\x20be\x20read:\x20','a\x20directory\x20path','a\x20skill\x20name','.\x20Use\x20','version','a\x20turn\x20id','You>\x20','spawn','Work\x20on\x20it\x20with:\x20delegate-cli\x20--session\x20'];_0x49ba=function(){return _0x11ec3f;};return _0x49ba();}var ce=[_0x47eda6(0x1e6),'pending',_0x47eda6(0x273),'create','claim',_0x47eda6(0x1d3),'accept',_0x47eda6(0x1ce),_0x47eda6(0x206),_0x47eda6(0x2ba)],de={'list':_0x47eda6(0x27c),'pending':_0x47eda6(0x29a),'show':_0x47eda6(0x359),'create':'delegations\x20create\x20--session\x20<id>\x20[--to\x20<email|name>]\x20[--summary\x20<text>]\x20\x22<task>\x22|-','claim':_0x47eda6(0x211),'complete':_0x47eda6(0x30e),'accept':_0x47eda6(0x225),'dismiss':_0x47eda6(0x240),'cancel':_0x47eda6(0x1d5),'delete':_0x47eda6(0x3af)};async function gn(_0x357780){const _0x2c1b8d=_0x47eda6;let [_0xed889d='',_0x2e4178='',..._0x516405]=_0x357780['operands'];ce[_0x2c1b8d(0x296)](_0xed889d)||(console[_0x2c1b8d(0x1e5)]((_0xed889d?_0x2c1b8d(0x368)+_0xed889d+'.\x20':'')+_0x2c1b8d(0x36a)+ce[_0x2c1b8d(0x280)](_0x2c1b8d(0x1ca))+'.'),process[_0x2c1b8d(0x2ff)](0x2));let _0x3288df=_0xed889d;_0x3288df!==_0x2c1b8d(0x2cc)&&(_0x357780[_0x2c1b8d(0x309)]!==void 0x0||_0x357780[_0x2c1b8d(0x2e9)]!==void 0x0||_0x357780['sessionId']!==void 0x0)&&(console[_0x2c1b8d(0x1e5)](_0x2c1b8d(0x393)),process[_0x2c1b8d(0x2ff)](0x2));let _0x4a5e05=(_0x3288df==='create'?_0x357780[_0x2c1b8d(0x2ce)]['slice'](0x1):_0x516405)[_0x2c1b8d(0x280)]('\x20')['trim'](),_0xa36203=_0x3288df===_0x2c1b8d(0x2cc)||_0x3288df===_0x2c1b8d(0x1d3);(_0x3288df!==_0x2c1b8d(0x2cc)&&!_0x2e4178||(_0xa36203?!_0x4a5e05:_0x4a5e05)||_0x3288df===_0x2c1b8d(0x2cc)&&!_0x357780[_0x2c1b8d(0x257)])&&(console['error']('Usage:\x20delegate-cli\x20'+de[_0x3288df]),process[_0x2c1b8d(0x2ff)](0x2));let _0x194c46=_0xa36203&&_0x4a5e05==='-'?(await j('-',process[_0x2c1b8d(0x36f)]))[_0x2c1b8d(0x27f)]():_0x4a5e05;_0xa36203&&!_0x194c46&&(console[_0x2c1b8d(0x1e5)](_0x2c1b8d(0x356)+de[_0x3288df]+'\x20(stdin\x20was\x20empty)'),process['exit'](0x2));let {client:_0x52b532}=await v(_0x357780);try{await hn(_0x357780,_0x52b532,_0x3288df,_0x2e4178,_0x194c46);}catch(_0x4f6842){if(!_0x2d12c5(_0x4f6842))throw _0x4f6842;console['error'](_0x4f6842[_0x2c1b8d(0x374)]),process[_0x2c1b8d(0x2ff)](0x1);}}async function hn(_0x170220,_0x79eceb,_0xc86cc5,_0x25cdc6,_0x14a5c2){const _0x2052ee=_0x47eda6;switch(_0xc86cc5){case _0x2052ee(0x1e6):u(_0x170220,await _0x1a6a70(_0x79eceb,_0x25cdc6),yn);return;case'pending':u(_0x170220,await _0x33768b(_0x79eceb,_0x25cdc6),_0x277693=>{const _0x391f3e=_0x2052ee;_0x277693['delegation']&&process[_0x391f3e(0x28b)]['write'](_0x391f3e(0x2f6)+_0x277693[_0x391f3e(0x31b)]['id']+'\x20('+_0x277693[_0x391f3e(0x31b)][_0x391f3e(0x389)]+_0x391f3e(0x1e7)),_0x277693[_0x391f3e(0x2f0)][_0x391f3e(0x2d0)]===0x0&&process[_0x391f3e(0x335)][_0x391f3e(0x224)]('No\x20answers\x20awaiting\x20acceptance.\x0a');for(let _0x7d3685 of _0x277693[_0x391f3e(0x2f0)])process[_0x391f3e(0x28b)][_0x391f3e(0x224)]('\x0a'+_0x7d3685['id']+_0x391f3e(0x2d5)+(_0x7d3685[_0x391f3e(0x2b0)]??_0x391f3e(0x1e2))+'\x20\x20'+(_0x7d3685['task']??'')+'\x0a'+(_0x7d3685[_0x391f3e(0x382)]?.[_0x391f3e(0x1cd)]??'')+'\x0a');_0x277693[_0x391f3e(0x2f0)]['length']>0x0&&process['stderr']['write'](_0x391f3e(0x344));});return;case _0x2052ee(0x273):u(_0x170220,await _0x27c13c(_0x79eceb,_0x25cdc6),ue);return;case _0x2052ee(0x2cc):{let _0x5993f2=await _0x5350cb(_0x79eceb,{'sessionId':_0x170220[_0x2052ee(0x257)],'task':_0x14a5c2,..._0x170220[_0x2052ee(0x2e9)]!==void 0x0&&{'contextSummary':_0x170220[_0x2052ee(0x2e9)]},..._0x170220[_0x2052ee(0x309)]!==void 0x0&&{'recipient':_0x170220[_0x2052ee(0x309)]}});u(_0x170220,_0x5993f2,_0x3720a0=>{const _0xfcf6df=_0x2052ee;_0x3720a0[_0xfcf6df(0x282)]?process[_0xfcf6df(0x28b)][_0xfcf6df(0x224)](_0xfcf6df(0x1f7)+_0x3720a0[_0xfcf6df(0x24f)]+_0xfcf6df(0x2a0)+_0x3720a0[_0xfcf6df(0x282)][_0xfcf6df(0x236)]+'\x20<'+_0x3720a0[_0xfcf6df(0x282)][_0xfcf6df(0x399)]+_0xfcf6df(0x37b)):process[_0xfcf6df(0x28b)][_0xfcf6df(0x224)]('Created\x20delegation\x20'+_0x3720a0[_0xfcf6df(0x24f)]+'.\x20Share:\x20'+_0x3720a0[_0xfcf6df(0x2b3)]+'\x0a');});return;}case'claim':{let _0x49eb40=await _0x5e35c5(_0x79eceb,_0x25cdc6);u(_0x170220,_0x49eb40,_0x2bff01=>{const _0x4bb882=_0x2052ee;ue(_0x2bff01),process[_0x4bb882(0x28b)][_0x4bb882(0x224)](_0x4bb882(0x2e7)+_0x2bff01['sessionId']+'\x0a'),process['stderr'][_0x4bb882(0x224)](_0x4bb882(0x1df)+_0x2bff01[_0x4bb882(0x257)]+_0x4bb882(0x367)+_0x2bff01[_0x4bb882(0x24f)]+_0x4bb882(0x35f));});return;}case _0x2052ee(0x1d3):{let {alreadyCompleted:_0x5556e4}=await _0x772f47(_0x79eceb,_0x25cdc6,{'content':_0x14a5c2});u(_0x170220,{'delegationId':_0x25cdc6,'alreadyCompleted':_0x5556e4},_0x51971d=>{const _0x1b94ad=_0x2052ee;process['stdout']['write']((_0x51971d['alreadyCompleted']?_0x1b94ad(0x2c4):_0x1b94ad(0x2e5))+'\x20delegation\x20'+_0x51971d[_0x1b94ad(0x24f)]+'.\x0a');});return;}case _0x2052ee(0x376):{let _0x48f4b9=await _0x4b6ff3(_0x79eceb,_0x25cdc6);u(_0x170220,{'delegationId':_0x25cdc6,..._0x48f4b9},_0x351e5d=>{const _0x29545d=_0x2052ee;process[_0x29545d(0x28b)]['write']((_0x351e5d[_0x29545d(0x304)]?_0x29545d(0x1e4):_0x29545d(0x2c5))+'\x20delegation\x20'+_0x351e5d[_0x29545d(0x24f)]+'.\x0a');});return;}default:{let _0x19f570={'dismiss':_0x1fd37f,'cancel':_0x48adb0,'delete':_0xa49735}[_0xc86cc5];await _0x19f570(_0x79eceb,_0x25cdc6);let _0x124490={'dismiss':_0x2052ee(0x256),'cancel':_0x2052ee(0x2a4),'delete':_0x2052ee(0x2de)}[_0xc86cc5];u(_0x170220,{'delegationId':_0x25cdc6,[_0x124490]:!0x0},()=>{const _0xf6e676=_0x2052ee;process['stdout'][_0xf6e676(0x224)](''+_0x124490[0x0]['toUpperCase']()+_0x124490[_0xf6e676(0x2fa)](0x1)+_0xf6e676(0x3b2)+_0x25cdc6+'.\x0a');});}}}function yn(_0x14bc17){const _0x42a11f=_0x47eda6;if(_0x14bc17['length']===0x0){process[_0x42a11f(0x335)][_0x42a11f(0x224)](_0x42a11f(0x1fd));return;}process[_0x42a11f(0x28b)][_0x42a11f(0x224)]('ID'[_0x42a11f(0x1fe)](0x24)+'\x20\x20'+_0x42a11f(0x3ac)[_0x42a11f(0x1fe)](0x9)+'\x20\x20'+'ASSIGNEE'[_0x42a11f(0x1fe)](0x18)+'\x20\x20TASK\x0a');for(let _0x1faa54 of _0x14bc17)process[_0x42a11f(0x28b)]['write'](_0x1faa54['id'][_0x42a11f(0x1fe)](0x24)+'\x20\x20'+_0x1faa54['status'][_0x42a11f(0x1fe)](0x9)+'\x20\x20'+(_0x1faa54[_0x42a11f(0x2b0)]??'-')[_0x42a11f(0x1fe)](0x18)+'\x20\x20'+(_0x1faa54[_0x42a11f(0x2f7)]??'')+'\x0a');}function ue(_0x219b7c){const _0x5c58ea=_0x47eda6;process[_0x5c58ea(0x28b)][_0x5c58ea(0x224)]('From\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x219b7c[_0x5c58ea(0x291)]??'-')+'\x0a'),_0x219b7c['sourceTitle']&&process['stdout'][_0x5c58ea(0x224)](_0x5c58ea(0x2e7)+_0x219b7c[_0x5c58ea(0x228)]+'\x0a'),process[_0x5c58ea(0x28b)][_0x5c58ea(0x224)](_0x5c58ea(0x2cd)+(_0x219b7c['task']??'-')+'\x0a'),_0x219b7c[_0x5c58ea(0x2e9)]&&process[_0x5c58ea(0x28b)][_0x5c58ea(0x224)]('\x0a'+_0x219b7c[_0x5c58ea(0x2e9)]+'\x0a\x0a');}async function wn(_0x52119){const _0x2bb2b0=_0x47eda6;_0x52119[_0x2bb2b0(0x3aa)][_0x2bb2b0(0x27f)]()||(console[_0x2bb2b0(0x1e5)](_0x2bb2b0(0x22c)),process[_0x2bb2b0(0x2ff)](0x2));let {client:_0x109eec}=await v(_0x52119),_0x30afe6;try{_0x30afe6=await _0x47c5f7(_0x109eec,_0x52119[_0x2bb2b0(0x3aa)]);}catch(_0xf741f9){if(!_0x2d12c5(_0xf741f9))throw _0xf741f9;console[_0x2bb2b0(0x1e5)](_0xf741f9[_0x2bb2b0(0x374)]),process[_0x2bb2b0(0x2ff)](0x1);}u(_0x52119,_0x30afe6,_0x1647a9=>{const _0x142ef8=_0x2bb2b0;_0x1647a9[_0x142ef8(0x2d0)]===0x0&&process[_0x142ef8(0x335)][_0x142ef8(0x224)](_0x142ef8(0x38e)+_0x52119[_0x142ef8(0x3aa)][_0x142ef8(0x27f)]()+_0x142ef8(0x2c6));for(let _0x4903a4 of _0x1647a9)process[_0x142ef8(0x28b)][_0x142ef8(0x224)](_0x4903a4['email']['padEnd'](0x20)+'\x20\x20'+_0x4903a4[_0x142ef8(0x236)]+'\x0a');});}async function kn(_0x4a0698){const _0x2a8fdd=_0x47eda6;_0x4a0698['env']===_0x2a8fdd(0x284)&&(console[_0x2a8fdd(0x1e5)]('--env\x20localhost\x20has\x20no\x20OAuth\x20flow;\x20pick\x20alpha,\x20staging,\x20or\x20production.'),process[_0x2a8fdd(0x2ff)](0x2));let _0x1620c8=M(_0x22cbed()),_0x27b777=_0x4a0698[_0x2a8fdd(0x287)];if(_0x4a0698['env']){let _0x58ee80=_0x4a0698[_0x2a8fdd(0x381)];await _0x539e48({'env':_0x58ee80,'tenant':_0x4a0698['tenant']??G(_0x1620c8,_0x5b466d[_0x58ee80]),'skipEnvCheck':_0x27b777});return;}let _0x463468=_0x4a0698[_0x2a8fdd(0x20a)]??ve();if(_0x463468){await _0x539e48({'baseUrl':_0x463468,'tenant':_0x4a0698[_0x2a8fdd(0x1c0)]??G(_0x1620c8,_0x463468),'skipEnvCheck':_0x27b777});return;}if(_0x1620c8?.[_0x2a8fdd(0x239)]){await _0x539e48({'baseUrl':_0x1620c8['baseUrl'],'tenant':_0x4a0698[_0x2a8fdd(0x1c0)]??_0x1620c8[_0x2a8fdd(0x32d)],'skipEnvCheck':_0x27b777});return;}console[_0x2a8fdd(0x1e5)](_0x2a8fdd(0x243)),process[_0x2a8fdd(0x2ff)](0x2);}function G(_0x4c26fe,_0x5e8e9b){const _0x3515f7=_0x47eda6;return _0x4c26fe?.[_0x3515f7(0x239)]&&bn(_0x4c26fe[_0x3515f7(0x239)],_0x5e8e9b)?_0x4c26fe[_0x3515f7(0x32d)]:void 0x0;}function bn(_0x3a3a8a,_0x318724){const _0x2ff1cc=_0x47eda6;try{return new URL(_0x3a3a8a)[_0x2ff1cc(0x208)]===new URL(_0x318724)[_0x2ff1cc(0x208)];}catch{return!0x1;}}async function Sn(_0x26342c){const _0xf5c5ba=_0x47eda6;Q()&&(console[_0xf5c5ba(0x1e5)]('Auth\x20comes\x20from\x20AUTH_TOKEN/TENANT_ID/ORG_ID\x20—\x20set\x20TENANT_ID\x20and\x20TENANT_SLUG\x20to\x20change\x20the\x20tenant.'),process['exit'](0x2));let _0x1cd8f1=await _0x556481();if(_0x1cd8f1||(console['error'](vn()),process['exit'](0x2)),_0x26342c[_0xf5c5ba(0x27f)]()){let _0x44e897=await _0x2a9c38(_0x1cd8f1,_0x26342c);_0x2ccd7d(_0x44e897)||(console[_0xf5c5ba(0x1e5)](_0xf5c5ba(0x38f)+_0x22cbed()+_0xf5c5ba(0x1cf)+_0x1cd8f1['tenantName']+'.'),process[_0xf5c5ba(0x2ff)](0x1)),console[_0xf5c5ba(0x21e)]('Tenant:\x20'+_0x44e897[_0xf5c5ba(0x32d)]+'\x20('+_0x44e897[_0xf5c5ba(0x2c7)]+_0xf5c5ba(0x2b1)+_0x22cbed());return;}An(await _0x591b02(_0x1cd8f1),_0x1cd8f1);}function vn(){const _0x3e1305=_0x47eda6;if(_0x2f3dd5[_0x3e1305(0x1e0)](_0x22cbed()))return _0x3e1305(0x37e);let _0x23b6fd=K();return M(_0x23b6fd)?'No\x20CLI\x20login\x20to\x20switch:\x20the\x20CLI\x20is\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20'+_0x23b6fd+',\x20whose\x20tenant\x20is\x20chosen\x20in\x20the\x20app.\x20Run\x20`delegate-cli\x20login\x20--env\x20<env>`\x20for\x20a\x20CLI\x20login\x20of\x20your\x20own.':_0x3e1305(0x1c1);}function An(_0x325418,_0x3dd5e5){const _0x3d9337=_0x47eda6;let _0x28e9d9=_0x325418[_0x3d9337(0x26c)](_0x153389=>_0x153389['id']===_0x3dd5e5[_0x3d9337(0x2c7)]?'*\x20'+_0x153389[_0x3d9337(0x24e)]+_0x3d9337(0x321):'\x20\x20'+_0x153389['name']);process['stdout'][_0x3d9337(0x224)](_0x3d9337(0x2fe)+(_0x3dd5e5[_0x3d9337(0x1ee)]??_0x3dd5e5['organizationId'])+':\x0a'+_0x28e9d9['join']('\x0a')+'\x0a'),_0x325418[_0x3d9337(0x2d0)]>0x1&&process['stdout'][_0x3d9337(0x224)](_0x3d9337(0x3a4));}function $n(_0x33fa5d){const _0x55da16=_0x47eda6;return _0x33fa5d?.['response']?.['status']===0x191||/401/[_0x55da16(0x323)](String(_0x33fa5d?.['message']??''));}var f={'lastType':null,'quiet':!0x1},Ee=_0x59b21d=>{const _0x5e5425=_0x47eda6;switch(_0x59b21d[_0x5e5425(0x294)]){case _0x5e5425(0x20c):_0x59b21d['sessionId']&&_0x59b21d[_0x5e5425(0x257)]!==f['sessionId']&&(process['stderr'][_0x5e5425(0x224)](_0x5e5425(0x25f)+_0x59b21d['sessionId']+_0x5e5425(0x30c)+_0x59b21d[_0x5e5425(0x257)]+')\x0a'),f['sessionId']=_0x59b21d[_0x5e5425(0x257)]);break;case _0x5e5425(0x259):_0x59b21d[_0x5e5425(0x1f3)]&&_0x59b21d['turnId']!==f[_0x5e5425(0x1f3)]&&(f[_0x5e5425(0x373)]!==null&&process['stderr']['write']('\x0a'),process['stderr'][_0x5e5425(0x224)](_0x5e5425(0x396)+_0x59b21d[_0x5e5425(0x1f3)]+_0x5e5425(0x226)+_0x59b21d[_0x5e5425(0x257)]+_0x5e5425(0x2be)+_0x59b21d['turnId']+')\x0a'),f['turnId']=_0x59b21d[_0x5e5425(0x1f3)],f[_0x5e5425(0x373)]=_0x5e5425(0x259));break;case _0x5e5425(0x2d1):_0x59b21d[_0x5e5425(0x1cd)]&&!f[_0x5e5425(0x33c)]&&(f['lastType']!==_0x5e5425(0x2d1)&&process[_0x5e5425(0x335)][_0x5e5425(0x224)]('\x0a🤔\x20'),process[_0x5e5425(0x335)][_0x5e5425(0x224)](_0x59b21d['content']),f['lastType']=_0x5e5425(0x2d1));break;case _0x5e5425(0x233):f[_0x5e5425(0x373)]!==null&&process[_0x5e5425(0x335)][_0x5e5425(0x224)]('\x0a'),process['stderr'][_0x5e5425(0x224)](_0x5e5425(0x2a9)+(_0x59b21d[_0x5e5425(0x338)]??_0x5e5425(0x2fd))+'\x0a'),f[_0x5e5425(0x373)]=_0x5e5425(0x233);break;case _0x5e5425(0x374):_0x59b21d[_0x5e5425(0x1cd)]&&(f[_0x5e5425(0x373)]!==_0x5e5425(0x374)&&f['lastType']!==null&&process[_0x5e5425(0x28b)][_0x5e5425(0x224)]('\x0a'),process[_0x5e5425(0x28b)][_0x5e5425(0x224)](_0x59b21d[_0x5e5425(0x1cd)]),f[_0x5e5425(0x373)]='message');break;case _0x5e5425(0x1e5):f['lastType']!==null&&process[_0x5e5425(0x335)][_0x5e5425(0x224)]('\x0a'),process[_0x5e5425(0x335)][_0x5e5425(0x224)]('✗\x20'+(_0x59b21d[_0x5e5425(0x1e5)]??_0x5e5425(0x1e5))+'\x0a'),f[_0x5e5425(0x373)]=_0x5e5425(0x1e5);break;case'done':(f[_0x5e5425(0x373)]===_0x5e5425(0x374)||f['lastType']==='thinking')&&process['stdout'][_0x5e5425(0x224)]('\x0a'),process['stderr'][_0x5e5425(0x224)]('✓\x20Done\x0a'),f[_0x5e5425(0x373)]=_0x5e5425(0x2b2);break;}};function pe(_0xe831c0,_0x38ed73,_0x5cf0c9,_0x458ee0){const _0x714d4b=_0x47eda6;let _0x7eac1a=_0xe831c0['model']||process.env.MODEL;return{'backendUrl':_0x5cf0c9,'auth':_0x38ed73,'enableComputerUse':!_0xe831c0['headless']&&!_0xe831c0['noComputerUse'],'autoSpawnInterop':!_0xe831c0['headless'],'enableConnections':!_0xe831c0[_0x714d4b(0x203)],'enableSecurity':!_0xe831c0['noSecurity'],'keepInteropAlive':_0xe831c0[_0x714d4b(0x29f)],..._0x458ee0[_0x714d4b(0x2db)]?{'enableBackgroundCommands':!0x1}:{},..._0xe831c0['noMemory']?{'enableMemory':!0x1}:{},..._0xe831c0['taskAutomation']?{'enableTaskAutomation':!0x0}:{},..._0xe831c0[_0x714d4b(0x35c)][_0x714d4b(0x2d0)]>0x0?{'preloadSkills':_0xe831c0[_0x714d4b(0x35c)]}:{},..._0x7eac1a?{'model':_0x7eac1a}:{},..._0xe831c0[_0x714d4b(0x249)]?{'projectId':_0xe831c0['projectId']}:{},..._0xe831c0[_0x714d4b(0x391)]?{'workingDirectory':_0xe831c0[_0x714d4b(0x391)]}:{},..._0xe831c0[_0x714d4b(0x241)]?{'bundledSkillsPath':_0xe831c0[_0x714d4b(0x241)]}:{},..._0xe831c0['effort']?{'effort':_0xe831c0[_0x714d4b(0x2c9)]}:{},..._0xe831c0['sessionId']?{'sessionId':_0xe831c0[_0x714d4b(0x257)]}:{},..._0xe831c0['verbose']?{'verbose':!0x0}:{}};}async function En(_0xd4b8e0){const _0x3e7c56=_0x47eda6;let _0x4cb605=_0xd4b8e0[_0x3e7c56(0x274)]!==_0x3e7c56(0x33d),_0x8e75d2=_0xd4b8e0[_0x3e7c56(0x1f6)]===void 0x0?null:$e(_0xd4b8e0['jsonSchemaPath'],_0x3e7c56(0x2ea)),_0x3be16c=!_0x4cb605&&!_0x8e75d2&&!_0xd4b8e0[_0x3e7c56(0x1ea)]&&_0xd4b8e0[_0x3e7c56(0x3aa)]!=='-'&&!!process[_0x3e7c56(0x36f)][_0x3e7c56(0x340)]&&!!process['stdout']['isTTY'],_0x4610b8=_0x3be16c?_0xd4b8e0[_0x3e7c56(0x3aa)][_0x3e7c56(0x27f)]():await j(_0xd4b8e0[_0x3e7c56(0x3aa)],process[_0x3e7c56(0x36f)]);if(!_0x3be16c&&!_0x4610b8&&(console[_0x3e7c56(0x1e5)](_0x3e7c56(0x279)),process[_0x3e7c56(0x2ff)](0x2)),!_0x4cb605){await me(_0xd4b8e0,_0x4610b8,_0x3be16c,null,_0x8e75d2);return;}let _0x15d5fa=!0x1,_0x27f5c1=_0x2c1b1f=>{_0x15d5fa=!0x0,P(_0x446fb3(_0x2c1b1f)),(_0x2c1b1f['isError']||_0x2c1b1f['structuredError'])&&(process['exitCode']=0x1);},_0x311a7f=Date[_0x3e7c56(0x24b)]();try{await me(_0xd4b8e0,_0x4610b8,!0x1,_0x27f5c1,_0x8e75d2);}catch(_0x45f207){if(_0x15d5fa)throw _0x45f207;process['stderr'][_0x3e7c56(0x224)]((_0x45f207 instanceof Error?_0x45f207['stack']??_0x45f207[_0x3e7c56(0x374)]:String(_0x45f207))+'\x0a'),_0x27f5c1(new _0x4368e7(_0x311a7f)[_0x3e7c56(0x271)]({'endedAtMs':Date[_0x3e7c56(0x24b)](),'usage':[],'error':_0x45f207}));}}async function me(_0x43bf52,_0x2a8640,_0x328983,_0x416f57,_0xe30260){const _0x172eb4=_0x47eda6;f={'lastType':null,'quiet':_0x43bf52[_0x172eb4(0x33c)]};let _0x5be57c=new Set(),_0x17b4a7,_0x5e950b=_0x26234d=>{const _0x37ef34=_0x172eb4;(!_0x416f57||_0x26234d['type']==='session_start'||_0x26234d['type']===_0x37ef34(0x259))&&(_0x17b4a7??Ee)(_0x26234d);for(let _0x309cb1 of _0x5be57c)_0x309cb1(_0x26234d);},_0xb282a6=await q(),_0x5ca7f2=new _0x2032d9();_0x5ca7f2['onEvent'](_0x5e950b);let _0x4ab02c=_0x5621a8(_0x43bf52[_0x172eb4(0x381)],_0xb282a6,_0x43bf52[_0x172eb4(0x347)]);z(_0x43bf52[_0x172eb4(0x381)],_0x43bf52['backendUrl'],_0x4ab02c);let _0x3bf983={'input':null},_0x520abf=_0x328983?Z(()=>_0x3bf983[_0x172eb4(0x358)],_0x995451=>{const _0x7c0fe3=_0x172eb4;process[_0x7c0fe3(0x335)]['write'](_0x995451);}):null,_0x867149=_0x26262d=>_0x520abf?{..._0x26262d,'askUser':_0x520abf}:_0x26262d,_0x255d05=_0x867149(pe(_0x43bf52,_0xb282a6,_0x4ab02c,{'oneTurn':!_0x328983})),_0x21b270=!0x1,_0x2eafc4=!0x1,_0x278310,_0x57fde4=()=>_0x278310??=_0x5ca7f2[_0x172eb4(0x30d)](),_0x2408c8=()=>{const _0x168ea2=_0x172eb4;_0x2eafc4&&process[_0x168ea2(0x2ff)](0x82),_0x2eafc4=!0x0,process[_0x168ea2(0x335)][_0x168ea2(0x224)](_0x168ea2(0x277)),_0x21b270&&_0x5ca7f2['cancel']()[_0x168ea2(0x313)](_0x151758=>console[_0x168ea2(0x1e5)](_0x151758))[_0x168ea2(0x385)](_0x57fde4)[_0x168ea2(0x385)](()=>process[_0x168ea2(0x2ff)](0x82),_0x26a350=>{const _0xbc9db=_0x168ea2;console[_0xbc9db(0x1e5)](_0x26a350),process[_0xbc9db(0x2ff)](0x82);});};process['on'](_0x172eb4(0x292),_0x2408c8);let _0x5578a9=_0x43bf52['attachments'],_0x3d5d0c=async _0x1005b2=>{const _0x27c725=_0x172eb4;let _0x51432d=_0x5578a9;_0x5578a9=[];let _0x1a3d2c=()=>_0x5ca7f2[_0x27c725(0x1fb)](_0x1005b2,{'attachments':_0x51432d});try{return await _0x1a3d2c();}catch(_0x2ec1a9){if(_0x2eafc4||!$n(_0x2ec1a9)||!process[_0x27c725(0x36f)]['isTTY']||_0x43bf52[_0x27c725(0x381)]===_0x27c725(0x284)||!(_0x43bf52['env']||_0xb282a6[_0x27c725(0x239)]))throw _0x2ec1a9;process[_0x27c725(0x335)][_0x27c725(0x224)](_0x27c725(0x1eb));let _0x5199e2=_0x5ca7f2[_0x27c725(0x24a)]()??_0x43bf52[_0x27c725(0x257)],_0x5e31c6=await _0x539e48(_0x43bf52[_0x27c725(0x381)]?{'env':_0x43bf52[_0x27c725(0x381)],'tenant':G(_0xb282a6,_0x5b466d[_0x43bf52[_0x27c725(0x381)]]),'skipEnvCheck':!0x0}:{'baseUrl':_0xb282a6['baseUrl'],'tenant':_0xb282a6[_0x27c725(0x32d)],'skipEnvCheck':!0x0}),_0x1cbf2c={'text':'','failed':!0x1,'sessionId':_0x5199e2};return _0x2eafc4||(_0x21b270=!0x1,await _0x57fde4(),_0x2eafc4)?_0x1cbf2c:(_0x5ca7f2=new _0x2032d9(),_0x278310=void 0x0,_0x5ca7f2[_0x27c725(0x298)](_0x5e950b),_0xb282a6=_0x5e31c6,await _0x5ca7f2['initialize']({..._0x867149(pe(_0x43bf52,_0xb282a6,_0x4ab02c,{'oneTurn':!_0x328983})),..._0x5199e2?{'sessionId':_0x5199e2}:{}}),_0x21b270=!0x0,_0x2eafc4?_0x1cbf2c:_0x1a3d2c());}};try{if(await _0x5ca7f2[_0x172eb4(0x200)](_0x255d05),_0x21b270=!0x0,_0x2eafc4)return;if(_0x328983)await xn({'prompt':_0x2a8640,'sendMessage':_0x3d5d0c,'onSigint':_0x2408c8,'setAnswerInput':_0x5b1b02=>{_0x3bf983['input']=_0x5b1b02;},'registerEventPrinter':_0x3173a7=>(_0x17b4a7=_0x3173a7,()=>{_0x17b4a7=void 0x0;})});else{if(_0x416f57||_0xe30260){let _0x4a765e=_0x43bf52['outputFormat']===_0x172eb4(0x26d)?_0x3f16ff=>P(_0x281f2f(_0x3f16ff)):()=>{},_0x260afd=await _0x72c58e({'onEvent':_0x3bc516=>(_0x5be57c['add'](_0x3bc516),()=>{const _0x2bb28c=_0x172eb4;_0x5be57c[_0x2bb28c(0x2ba)](_0x3bc516);}),'sendMessage':_0x4093eb=>_0x3d5d0c(_0x4093eb),'getSessionId':()=>_0x5ca7f2[_0x172eb4(0x24a)](),'getTurnUsageHistory':_0x3c1c70=>_0x5ca7f2['getTurnUsageHistory'](_0x3c1c70),'complete':_0x238747=>_0x5ca7f2['complete'](_0x238747)},_0x2a8640,void 0x0,_0x4a765e,_0xe30260?{'outputSchema':_0xe30260}:void 0x0);_0x416f57?_0x416f57(_0x260afd):In(_0x260afd);}else await _0x3d5d0c(_0x2a8640);}}catch(_0x424835){if(!_0x2eafc4)throw _0x424835;}finally{try{await _0x57fde4();}finally{process[_0x172eb4(0x38b)](_0x172eb4(0x292),_0x2408c8),_0x2eafc4&&(process['exitCode']=0x82);}}}function In(_0x3f420f){const _0x2aa41c=_0x47eda6;_0x3f420f[_0x2aa41c(0x24d)]?(console['error']('Structured\x20output\x20failed:\x20'+_0x3f420f['structuredError'][_0x2aa41c(0x374)]),process[_0x2aa41c(0x261)]=0x1):_0x3f420f['isError']?(console[_0x2aa41c(0x1e5)](_0x2aa41c(0x248)+_0x3f420f['error']+').'),process[_0x2aa41c(0x261)]=0x1):process[_0x2aa41c(0x28b)][_0x2aa41c(0x224)](JSON['stringify'](_0x3f420f[_0x2aa41c(0x237)],null,0x2)+'\x0a');}function Tn(_0x7adcb2,_0x446ada){const _0x3fbf10=_0x47eda6;let _0x5b4485=process[_0x3fbf10(0x28b)][_0x3fbf10(0x224)][_0x3fbf10(0x328)](process[_0x3fbf10(0x28b)]),_0x43ce87=!0x1;return process[_0x3fbf10(0x28b)]['write']=(..._0x3f8674)=>{if(!_0x43ce87)return _0x5b4485(..._0x3f8674);_0x3c4512(_0x446ada,0x0),_0x384c52(_0x446ada,0x0);let _0x1186e8=_0x5b4485(..._0x3f8674);return _0x7adcb2['prompt'](!0x0),_0x1186e8;},{'show':()=>{const _0x8b82b4=_0x3fbf10;_0x43ce87=!0x0,_0x7adcb2[_0x8b82b4(0x3aa)]();},'hide':()=>{_0x43ce87=!0x1;},'erase':()=>{_0x43ce87&&(_0x3c4512(_0x446ada,0x0),_0x384c52(_0x446ada,0x0)),_0x43ce87=!0x1;},'restore':()=>{const _0x2f8be5=_0x3fbf10;_0x43ce87=!0x1,process[_0x2f8be5(0x28b)][_0x2f8be5(0x224)]=_0x5b4485;}};}async function xn({prompt:_0x335080,sendMessage:_0x2f3995,onSigint:_0x3e6936,setAnswerInput:_0x319df8,registerEventPrinter:_0x481632}){const _0x1acb31=_0x47eda6;let _0x276d84=_0x504295({'input':process['stdin'],'output':process[_0x1acb31(0x335)],'terminal':!0x0,'prompt':'You>\x20'}),_0x3b6ead=Tn(_0x276d84,process[_0x1acb31(0x335)]),_0x2310cf=[],_0x43553f,_0xecfff7,_0x41941c,_0x4a37a8=!0x1,_0x1e0722=!0x1,_0x22079d=!0x1,_0x34d4e2=Promise[_0x1acb31(0x1f4)](),_0x38dac0,_0x1b5971=_0x481632(_0x38fea1=>{const _0x5d23f2=_0x1acb31;_0x38fea1['type']==='session_start'&&(_0x3b6ead[_0x5d23f2(0x2ca)](),_0x34d4e2=new Promise(_0x9451dd=>{_0x38dac0=_0x9451dd;})),Ee(_0x38fea1),_0x38fea1[_0x5d23f2(0x294)]===_0x5d23f2(0x2b2)&&(_0x38dac0?.(),_0x38dac0=void 0x0,!_0x22079d&&!_0x4a37a8&&_0x3b6ead[_0x5d23f2(0x273)]());}),_0x1318ef=()=>{_0x1e0722=!0x0,_0x38dac0?.(),_0x3e6936(),_0x276d84['close']();};_0x276d84['on']('line',_0x24706f=>{const _0x38c3f8=_0x1acb31;_0x41941c?_0x41941c(_0x24706f):_0x43553f?_0x43553f[_0x38c3f8(0x2b8)](_0x24706f):_0xecfff7?_0xecfff7(_0x24706f):_0x2310cf['push'](_0x24706f);}),_0x276d84[_0x1acb31(0x276)](_0x1acb31(0x2a5),()=>{_0x4a37a8=!0x0,_0x3b6ead['hide'](),_0x43553f&&!_0x1e0722&&_0x1318ef(),_0xecfff7?.(null);});let _0x47c344=()=>_0x2310cf['length']>0x0?Promise[_0x1acb31(0x1f4)](_0x2310cf[_0x1acb31(0x2f4)]()):_0x4a37a8?Promise[_0x1acb31(0x1f4)](null):new Promise(_0x1536ce=>{_0xecfff7=_0xd31334=>{_0xecfff7=void 0x0,_0x1536ce(_0xd31334);};});_0x319df8({'readLine':(_0xa59339,_0x30faaf)=>new Promise((_0x3b31b0,_0x15f50a)=>{const _0x19dc1a=_0x1acb31;if(_0x4a37a8&&!_0x43553f){_0x3b31b0(null);return;}_0x43553f??=[];let _0x3a6320=_0x43553f['shift']();if(_0x3a6320!==void 0x0){_0x3b31b0(_0x3a6320);return;}let _0x40c214=()=>{const _0x186f71=_0x28b8;_0x41941c=void 0x0,_0x30faaf[_0x186f71(0x2f8)]('abort',_0x4af3b6),_0x3b6ead[_0x186f71(0x36c)](),_0x276d84['setPrompt'](_0x186f71(0x1dd));},_0x4af3b6=()=>{const _0x4fb6b8=_0x28b8;_0x40c214(),_0x15f50a(new Error(_0x4fb6b8(0x395)));};_0x30faaf[_0x19dc1a(0x2cb)]('abort',_0x4af3b6,{'once':!0x0}),!_0x4a37a8&&(_0x41941c=_0x23ed4a=>{_0x40c214(),_0x3b31b0(_0x23ed4a);},_0x276d84[_0x19dc1a(0x2bf)](_0xa59339),_0x3b6ead['show']());}),'endQuestions':()=>{_0x43553f&&_0x2310cf['push'](..._0x43553f),_0x43553f=void 0x0;}}),_0x276d84['on'](_0x1acb31(0x292),_0x1318ef),process['stderr']['write'](_0x1acb31(0x1c6));let _0x53f59f=async _0x1ef69a=>{_0x22079d=!0x0;try{await _0x2f3995(_0x1ef69a);}finally{_0x22079d=!0x1;}};try{if(_0x335080&&await _0x53f59f(_0x335080),_0x1e0722)return;!_0x4a37a8&&!_0x38dac0&&_0x3b6ead['show']();for(let _0x169420=await _0x47c344();_0x169420!==null&&(_0x3b6ead['hide'](),!_0x1e0722);_0x169420=await _0x47c344()){let _0x160377=_0x169420[_0x1acb31(0x27f)]();if(_0x160377===_0x1acb31(0x29b))break;_0x160377&&await _0x53f59f(_0x160377),!_0x4a37a8&&!_0x38dac0&&_0x3b6ead[_0x1acb31(0x273)]();}for(;!_0x1e0722&&_0x38dac0;)await _0x34d4e2;}finally{_0x319df8(null),_0x1b5971(),_0x3b6ead[_0x1acb31(0x275)](),_0x276d84[_0x1acb31(0x38b)](_0x1acb31(0x292),_0x1318ef),_0x276d84[_0x1acb31(0x2a5)]();}}async function Dn(){const _0x5ee3c8=_0x47eda6;let _0x3bd8f3=Rt(process[_0x5ee3c8(0x2b5)][_0x5ee3c8(0x2fa)](0x2));if(_0x3bd8f3[_0x5ee3c8(0x274)]===_0x5ee3c8(0x33d)){await fe(_0x3bd8f3);return;}let _0x757142=Pt();try{await fe(_0x3bd8f3);}finally{_0x757142();}}async function fe(_0x14443a){const _0x193321=_0x47eda6;if(_0x14443a[_0x193321(0x2c0)]){Ct();return;}if(_0x14443a[_0x193321(0x1db)]){console[_0x193321(0x21e)](Lt());return;}if(_0x14443a[_0x193321(0x2e3)]==='login'){await kn(_0x14443a);return;}if(_0x14443a[_0x193321(0x2e3)]==='tenant'){await Sn(_0x14443a[_0x193321(0x3aa)]);return;}if(_0x14443a[_0x193321(0x2e3)]===_0x193321(0x255)){await Mt();return;}if(_0x14443a[_0x193321(0x2e3)]===_0x193321(0x353)){await Bt(_0x14443a);return;}if(_0x14443a[_0x193321(0x2e3)]===_0x193321(0x26f)){await Wt(_0x14443a);return;}if(_0x14443a['subcommand']===_0x193321(0x2f5)){await Zt(_0x14443a);return;}if(_0x14443a[_0x193321(0x2e3)]===_0x193321(0x36e)){await Qt(_0x14443a);return;}if(_0x14443a[_0x193321(0x2e3)]===_0x193321(0x2ad)){await nn(_0x14443a);return;}if(_0x14443a[_0x193321(0x2e3)]===_0x193321(0x1c3)||_0x14443a['subcommand']===_0x193321(0x269)||_0x14443a['subcommand']===_0x193321(0x2b7)){await an(_0x14443a,_0x14443a[_0x193321(0x2e3)]);return;}if(_0x14443a[_0x193321(0x2e3)]===_0x193321(0x1d3)){await cn(_0x14443a);return;}if(_0x14443a[_0x193321(0x2e3)]===_0x193321(0x384)){await mn(_0x14443a);return;}if(_0x14443a['subcommand']===_0x193321(0x2e1)){await gn(_0x14443a);return;}if(_0x14443a[_0x193321(0x2e3)]===_0x193321(0x1c9)){await wn(_0x14443a);return;}if(_0x14443a['subcommand']===_0x193321(0x1ef)){await _0x31a718(_0x14443a[_0x193321(0x3aa)],{'runnerUrl':_0x14443a[_0x193321(0x1c5)],'backendUrl':_0x14443a[_0x193321(0x347)],'interopPath':_0x14443a[_0x193321(0x2ec)],'workerId':_0x14443a[_0x193321(0x365)]});return;}if(_0x14443a['cleanup']){await Gt();return;}await En(_0x14443a);}var Un=process.env.NODE_ENV===_0x47eda6(0x323)||!!process.env.JEST_WORKER_ID;Un||Dn()[_0x47eda6(0x313)](_0xc5bcff=>{const _0x4fede3=_0x47eda6;console['error'](_0xc5bcff[_0x4fede3(0x2e0)]||_0xc5bcff[_0x4fede3(0x374)]||_0xc5bcff),process[_0x4fede3(0x2ff)](0x1);});export{_t as CARTOGRAPHER_SKILLS,re as EFFORT_TIERS,Ot as IMPLICIT_STDIN_IDLE_MS,pe as buildInitOptions,Dn as main,Rt as parseArgs,Lt as readCliVersion,j as resolvePrompt,Pt as routeStdoutToStderr,u as writeCommandResult};
|
|
2
|
+
const _0x5c83f1=_0x132e;(function(_0x5c51f1,_0x5ae6b2){const _0x3d8e6c=_0x132e,_0x2e206b=_0x5c51f1();while(!![]){try{const _0x43651d=-parseInt(_0x3d8e6c(0x15c))/0x1+parseInt(_0x3d8e6c(0x16a))/0x2*(parseInt(_0x3d8e6c(0x144))/0x3)+-parseInt(_0x3d8e6c(0x225))/0x4*(parseInt(_0x3d8e6c(0x14e))/0x5)+-parseInt(_0x3d8e6c(0x116))/0x6*(parseInt(_0x3d8e6c(0x26f))/0x7)+parseInt(_0x3d8e6c(0x1df))/0x8*(-parseInt(_0x3d8e6c(0x20c))/0x9)+parseInt(_0x3d8e6c(0x12c))/0xa*(-parseInt(_0x3d8e6c(0x259))/0xb)+parseInt(_0x3d8e6c(0x1f0))/0xc*(parseInt(_0x3d8e6c(0x26b))/0xd);if(_0x43651d===_0x5ae6b2)break;else _0x2e206b['push'](_0x2e206b['shift']());}catch(_0x51fa2b){_0x2e206b['push'](_0x2e206b['shift']());}}}(_0x58dc,0xa586d));const __dirname=import.meta.dirname;import _0x409956 from'fs';import _0x2213bb from'path';import{clearLine as _0x1d6464,createInterface as _0x20564f,cursorTo as _0x4e443b}from'node:readline';import{isOnStepGrid as _0x3035c8}from'@uipath/delegate-sdk';var _=_0x5c83f1(0x2c6);function S(_0x855476){const _0x36353e=_0x5c83f1;return _0x855476[_0x36353e(0x128)](/\u001b\[[0-?]*[ -/]*[@-~]|\u001b\][^\u0007\u001b]*(\u0007|\u001b\\)?|\u001b./g,'')[_0x36353e(0x128)](/[\u0000-\u0008\u000b-\u001f\u007f-\u009f]/g,'');}function V(_0x27a8d6){const _0x18de06=_0x5c83f1;return S(_0x27a8d6[_0x18de06(0x1ce)]??(_0x27a8d6[_0x18de06(0xf1)]===_?_0x18de06(0x229):_0x27a8d6['id']));}function Te(_0xf92753,_0x37d77b,_0x4fc21b){const _0x33c4ca=_0x5c83f1;let _0x914774=[''+(_0x4fc21b>0x1?'['+_0x37d77b+'/'+_0x4fc21b+']\x20':'')+S(_0xf92753[_0x33c4ca(0x247)])+(_0xf92753[_0x33c4ca(0x106)]?_0x33c4ca(0xf0):''),S(_0xf92753['question'])];return _0xf92753[_0x33c4ca(0x1d3)]==='text'&&_0xf92753[_0x33c4ca(0x260)][_0x33c4ca(0x15d)]((_0x5aa65b,_0x225e5b)=>{const _0x5268fe=_0x33c4ca;let _0x288cb4=_0x5aa65b['kind']===_?_0x5268fe(0x2d9):'',_0x2ac56b=_0x5aa65b[_0x5268fe(0x167)]?_0x5268fe(0x2c3)+S(_0x5aa65b['description']):'';_0x914774[_0x5268fe(0x152)]('\x20\x20'+(_0x225e5b+0x1)+'.\x20'+V(_0x5aa65b)+_0x288cb4+_0x2ac56b);}),_0x914774['join']('\x0a');}function _0x132e(_0x20bd97,_0x2062b8){_0x20bd97=_0x20bd97-0xea;const _0x58dcf8=_0x58dc();let _0x132e77=_0x58dcf8[_0x20bd97];return _0x132e77;}function X(_0x4aa7df,_0x2addf0){const _0xbabf57=_0x5c83f1;let _0x24e614=_0x4aa7df[_0xbabf57(0x289)](/[\s,]+/)[_0xbabf57(0x240)](Boolean);if(_0x24e614['length']===0x0)return null;let _0x12dc10=_0x24e614['map'](_0x52089e=>/^\d+$/[_0xbabf57(0x23e)](_0x52089e)?Number(_0x52089e):NaN);return _0x12dc10[_0xbabf57(0x2bc)](_0x33ea93=>!Number[_0xbabf57(0x29d)](_0x33ea93)||_0x33ea93<0x1||_0x33ea93>_0x2addf0)?null:[...new Set(_0x12dc10)][_0xbabf57(0x22a)](_0x7dc914=>_0x7dc914-0x1);}function xe(_0x5734b0){const _0x5630df=_0x5c83f1;return typeof _0x5734b0=='object'&&_0x5734b0!==null&&_0x5630df(0x1aa)in _0x5734b0;}async function R(_0x37cb2e,_0x4e03d4,_0x464bfb,_0xf47a16){for(;;){let _0x3d3c15=(await _0x37cb2e(_0x4e03d4))['trim']();if(_0x3d3c15==='')return;let _0x3bbb06=_0xf47a16(_0x3d3c15);if(!xe(_0x3bbb06))return _0x3bbb06;_0x464bfb(_0x3bbb06['refused']+'\x0a');}}async function De(_0x190e0e,_0x52d6c0,_0x4ae7d6){const _0x34421a=_0x5c83f1;if(_0x190e0e[_0x34421a(0x260)][_0x34421a(0x1db)]===0x0||_0x190e0e[_0x34421a(0x260)]['every'](_0x23a73c=>_0x23a73c[_0x34421a(0xf1)]===_)){let _0x1f7b9f=(await _0x52d6c0(_0x34421a(0x1ba)))[_0x34421a(0x135)]();return _0x1f7b9f===''?void 0x0:{'text':_0x1f7b9f};}let _0x1da602=_0x190e0e[_0x34421a(0x260)]['findIndex'](_0x53d68c=>_0x53d68c[_0x34421a(0xf1)]===_),_0x267eb2=_0x190e0e[_0x34421a(0x10a)]?_0x34421a(0x265):_0x34421a(0x217)+(_0x1da602>=0x0?_0x34421a(0x2a8):'')+_0x34421a(0x12e),_0x174e7e=await R(_0x52d6c0,_0x267eb2,_0x4ae7d6,_0x3c0d9f=>{const _0x14f0a9=_0x34421a;let _0x38cfb7=X(_0x3c0d9f,_0x190e0e[_0x14f0a9(0x260)][_0x14f0a9(0x1db)]);return _0x38cfb7&&(_0x190e0e['multiSelect']||_0x38cfb7[_0x14f0a9(0x1db)]===0x1)?_0x38cfb7:!_0x190e0e[_0x14f0a9(0x10a)]&&_0x1da602>=0x0?{'typed':_0x3c0d9f}:{'refused':_0x190e0e[_0x14f0a9(0x10a)]?_0x14f0a9(0xeb)+_0x190e0e[_0x14f0a9(0x260)][_0x14f0a9(0x1db)]+'.':_0x14f0a9(0x103)+_0x190e0e[_0x14f0a9(0x260)]['length']+'.'};});if(_0x174e7e===void 0x0)return;if(!Array[_0x34421a(0x2c1)](_0x174e7e))return{'text':_0x174e7e[_0x34421a(0x242)]};let _0x525c1b=_0x174e7e[_0x34421a(0x22a)](_0x5b9139=>_0x190e0e[_0x34421a(0x260)][_0x5b9139]['id']),_0x4f7516=_0x525c1b['includes'](_)?await R(_0x52d6c0,V(_0x190e0e[_0x34421a(0x260)][_0x1da602])+':\x20',_0x4ae7d6,_0x1ba368=>_0x1ba368):void 0x0;if(!(_0x525c1b[_0x34421a(0x2da)](_)&&_0x4f7516===void 0x0))return _0x190e0e[_0x34421a(0x10a)]?{'optionIds':_0x525c1b,..._0x4f7516!==void 0x0?{'text':_0x4f7516}:{}}:_0x4f7516!==void 0x0?{'text':_0x4f7516}:{'optionId':_0x525c1b[0x0]};}async function Ue(_0x186053,_0x25d862,_0xbcbd22){const _0x20426f=_0x5c83f1;let _0x4b9a16={};for(let _0x1da10f of _0x186053['fields']){let _0x270754=_0x1da10f[_0x20426f(0x2b3)]??_0x1da10f[_0x20426f(0x25d)],_0x3560a3=_0x1da10f[_0x20426f(0x136)]??0x1,_0x6c8911=_0x1da10f['unit']?'\x20'+S(_0x1da10f[_0x20426f(0x1be)]):'',_0x4b0d09='from\x20'+_0x1da10f['min']+_0x20426f(0x23a)+_0x1da10f[_0x20426f(0x2c9)]+(_0x3560a3!==0x1?'\x20in\x20steps\x20of\x20'+_0x3560a3:''),_0x3e4af9=await R(_0x25d862,S(_0x1da10f[_0x20426f(0x1ce)])+'\x20['+_0x1da10f['min']+'-'+_0x1da10f[_0x20426f(0x2c9)]+_0x6c8911+_0x20426f(0x204)+_0x270754+_0x20426f(0x109),_0xbcbd22,_0x3fa237=>{const _0x1e82ba=_0x20426f;let _0x2fe329=Number(_0x3fa237);return Number['isFinite'](_0x2fe329)&&_0x2fe329>=_0x1da10f[_0x1e82ba(0x25d)]&&_0x2fe329<=_0x1da10f[_0x1e82ba(0x2c9)]&&_0x3035c8(_0x2fe329,_0x1da10f[_0x1e82ba(0x25d)],_0x3560a3)?_0x2fe329:{'refused':_0x1e82ba(0x174)+_0x4b0d09+'.'};});_0x4b9a16[_0x1da10f['id']]=_0x3e4af9??_0x270754;}return{'values':_0x4b9a16};}async function Ne(_0x41524a,_0x151dd2,_0x4e7772){const _0x3ab09e=_0x5c83f1;_0x4e7772(_0x41524a[_0x3ab09e(0x105)][_0x3ab09e(0x22a)]((_0x1a5092,_0xfff23d)=>'\x20\x20'+(_0xfff23d+0x1)+'.\x20'+S(_0x1a5092['label']))[_0x3ab09e(0xfd)]('\x0a')+'\x0a');let _0x5da486={};for(let _0x1739b4 of _0x41524a[_0x3ab09e(0x199)]){let _0x14bf33=await R(_0x151dd2,S(_0x1739b4[_0x3ab09e(0x1ce)])+_0x3ab09e(0x209),_0x4e7772,_0x78d60c=>{const _0x16a69e=_0x3ab09e;let _0x8fb5a=X(_0x78d60c,_0x41524a[_0x16a69e(0x105)][_0x16a69e(0x1db)]);return _0x8fb5a&&_0x8fb5a[_0x16a69e(0x1db)]===0x1?_0x8fb5a[0x0]:{'refused':_0x16a69e(0x103)+_0x41524a[_0x16a69e(0x105)][_0x16a69e(0x1db)]+'.'};});if(_0x14bf33===void 0x0)continue;let _0x477382=_0x41524a[_0x3ab09e(0x105)][_0x14bf33],_0x5daaba={};for(let _0x17a59b of _0x477382[_0x3ab09e(0x28c)]??[]){let _0x1897f6='\x20\x20'+S(_0x17a59b['label'])+(_0x17a59b[_0x3ab09e(0x106)]?_0x3ab09e(0xf0):'')+':\x20',_0x3e80d6=await R(_0x151dd2,_0x1897f6,_0x4e7772,_0x422384=>_0x422384);for(;_0x3e80d6===void 0x0&&!_0x17a59b[_0x3ab09e(0x106)];)_0x4e7772(S(_0x17a59b['label'])+_0x3ab09e(0x15a)),_0x3e80d6=await R(_0x151dd2,_0x1897f6,_0x4e7772,_0x2b4164=>_0x2b4164);_0x3e80d6!==void 0x0&&(_0x5daaba[_0x17a59b['id']]=_0x3e80d6);}_0x5da486[_0x1739b4['id']]={'bucket':_0x477382['id'],...Object[_0x3ab09e(0x17b)](_0x5daaba)[_0x3ab09e(0x1db)]>0x0?{'subFields':_0x5daaba}:{}};}return Object['keys'](_0x5da486)['length']>0x0?{'assignments':_0x5da486}:void 0x0;}async function _e(_0x2bac83,_0x100197,_0x411934){const _0x1e0bb6=_0x5c83f1;if(_0x2bac83[_0x1e0bb6(0x1d3)]==='text')return De(_0x2bac83,_0x100197,_0x411934);if(_0x2bac83[_0x1e0bb6(0x1d3)]===_0x1e0bb6(0x10f))return Ue(_0x2bac83,_0x100197,_0x411934);if(_0x2bac83[_0x1e0bb6(0x1d3)]===_0x1e0bb6(0x276))return Ne(_0x2bac83,_0x100197,_0x411934);let _0x6bc9d6=(await _0x100197(_0x1e0bb6(0x1d7)))['trim']();return _0x6bc9d6===''?void 0x0:{'text':_0x6bc9d6};}function Z(_0x2ffde5,_0x180602){return async _0x410faf=>{const _0x3c279d=_0x132e;let _0x223ce9=_0x2ffde5();if(!_0x223ce9)throw new Error('There\x20is\x20no\x20terminal\x20input\x20to\x20answer\x20from.');let _0xb6c4a=async _0x1b9a55=>{const _0x48f0a8=_0x132e;if(_0x410faf[_0x48f0a8(0x227)]['aborted'])throw new Error(_0x48f0a8(0x151));let _0x15a4b9=await _0x223ce9[_0x48f0a8(0x268)](_0x1b9a55,_0x410faf['signal']);if(_0x15a4b9===null)throw new Error(_0x48f0a8(0x2c5));return _0x15a4b9;};try{_0x180602('\x0a'+(_0x410faf[_0x3c279d(0x18b)]?S(_0x410faf[_0x3c279d(0x18b)])+'\x0a':''));let _0x8c245d={};for(let [_0x56dabb,_0x2fb2c1]of _0x410faf[_0x3c279d(0x15f)][_0x3c279d(0x18c)]()){_0x180602('\x0a'+Te(_0x2fb2c1,_0x56dabb+0x1,_0x410faf[_0x3c279d(0x15f)][_0x3c279d(0x1db)])+'\x0a');let _0x33e041=await _e(_0x2fb2c1,_0xb6c4a,_0x180602);_0x33e041!==void 0x0&&(_0x8c245d[_0x2fb2c1['id']]=_0x33e041);}return{'answers':_0x8c245d};}finally{_0x223ce9[_0x3c279d(0x100)]();}};}import{BUSINESS_ANALYSIS_PRELOADED_SKILLS as _0x1655c2,DelegateAgent as _0x2e4841,cancelTurn as _0xbd79f2,InteropProcess as _0x13f76b,complete as _0x4d1948,DEFAULT_MODEL as _0x4aa244,createBackendClient as _0x56a2a3,evaluate as _0x2b5000,isCompletionRequestError as _0x2d42b0,isEvaluationRequestError as _0x4fdd50,isTranscriptionError as _0x52abfd,rerank as _0x1623be,transcribe as _0xe1712,verify as _0x5109a6,acceptDelegation as _0x2a1d04,cancelDelegation as _0x360ce0,claimDelegation as _0x18ea23,completeDelegation as _0xcfd155,createDelegation as _0x471537,deleteDelegation as _0x3d34e9,dismissDelegation as _0x4b3331,getSessionDelegations as _0x3c13ed,isDelegationError as _0x286322,listDelegations as _0x349bf4,listOrgUsers as _0x5601ff,previewDelegation as _0xa69676,TurnResultCollector as _0x4c8a85,agentEventToJsonLine as _0x1ba357,describeBaseUrlRejection as _0x16b4c2,getActivitySummary as _0xb953f6,getAuthFilePath as _0x238e31,getByoWarnings as _0x1c6a8c,getCartographerAllowance as _0x3bb15b,getDailyBreakdown as _0x560d3e,getLicensingSummary as _0x2fef58,getMonthlySpending as _0x1116d9,isOutputFormat as _0x4a2dbe,isCloudBaseUrl as _0x13c3cb,isSafeProjectFolderSegment as _0x5b3f0a,listModels as _0x48d62f,listSessions as _0x1f87d6,getSession as _0x52a198,renameSession as _0x5924ae,deleteSession as _0x2616e1,deleteSessionTaskLog as _0x26e2aa,forkSession as _0xe06acc,isBackendRequestError as _0x58d31b,MAX_SESSION_PAGE_SIZE as _0x1d119f,listTenants as _0x517f78,loadAndRefreshAuth as _0x724a3b,loadAndRefreshSdkLogin as _0x5d3c24,parsePlatformBaseUrl as _0x4c1e38,resolveBackendUrl as _0x3a54f4,runHealthCheck as _0x45c4ff,runHostCommand as _0x34f364,runLoginFlow as _0x2f5019,runTurnForResult as _0x1a7057,saveAuthData as _0x3c12c7,switchTenant as _0x1c990a,toJsonLine as _0xc9c5f8,ENV_TO_CLOUD as _0x45cc04,OUTPUT_FORMATS as _0x41c8d6}from'@uipath/delegate-sdk';var Nt=[_0x5c83f1(0x185),_0x5c83f1(0x193),_0x5c83f1(0x1f2),_0x5c83f1(0x2c2),_0x5c83f1(0x13b),_0x5c83f1(0x12a),_0x5c83f1(0x1ab),_0x5c83f1(0x29a),_0x5c83f1(0x296),_0x5c83f1(0x1b5),_0x5c83f1(0x28b),_0x5c83f1(0x2d0),_0x5c83f1(0x2b1),_0x5c83f1(0x2c8),'delegations',_0x5c83f1(0x10b)],se=['','models',_0x5c83f1(0x12a),_0x5c83f1(0x1ab),_0x5c83f1(0x29a),_0x5c83f1(0x296),_0x5c83f1(0x1b5),'rerank','verify',_0x5c83f1(0x2b1),'transcribe',_0x5c83f1(0x18f),'org-users'],re=[_0x5c83f1(0x12f),'medium',_0x5c83f1(0x1ef),_0x5c83f1(0x228),'max'],_t=_0x1655c2;function w(_0x2edd16,_0x24db18,_0x392642,_0x429aad){const _0x22a75b=_0x5c83f1;let _0x2d5486=_0x2edd16[_0x24db18];return(!_0x2d5486||_0x2d5486['length']>0x1&&_0x2d5486[_0x22a75b(0x207)]('-'))&&(console[_0x22a75b(0x231)](_0x392642+'\x20requires\x20'+_0x429aad+'.'),process[_0x22a75b(0x186)](0x2)),_0x2d5486;}function J(_0x577e9f,_0x55676f,_0x4ea21d,_0xdf865b){const _0x213b14=_0x5c83f1;let _0x54fe2d=w(_0x577e9f,_0x55676f,_0x4ea21d,_0x213b14(0x2ca)),_0x4d6a4b=Number(_0x54fe2d);return(!/^\d+$/['test'](_0x54fe2d)||_0x4d6a4b<0x1||!Number[_0x213b14(0x221)](_0x4d6a4b)||_0xdf865b!==void 0x0&&_0x4d6a4b>_0xdf865b)&&(console['error'](_0x4ea21d+_0x213b14(0x197)+(_0xdf865b===void 0x0?'1\x20or\x20more':_0x213b14(0x14a)+_0xdf865b)+_0x213b14(0x255)+_0x54fe2d+'.'),process['exit'](0x2)),_0x4d6a4b;}function Rt(_0x42b92e){const _0x59e887=_0x5c83f1;let _0x19f6be={'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','preloadSkills':[],'attachments':[],'skipEnvCheck':!0x1,'includeSubAgents':!0x1,'operands':[],'help':!0x1,'version':!0x1};Nt[_0x59e887(0x2da)](_0x42b92e[0x0])&&(_0x19f6be['subcommand']=_0x42b92e[0x0],_0x42b92e=_0x42b92e[_0x59e887(0x26a)](0x1));let _0x5d15d3=[];for(let _0x2d84bb=0x0;_0x2d84bb<_0x42b92e[_0x59e887(0x1db)];_0x2d84bb++){let _0x51d78d=_0x42b92e[_0x2d84bb];switch(_0x51d78d){case _0x59e887(0x17c):case'-p':_0x19f6be[_0x59e887(0x2ce)]=!0x0;break;case _0x59e887(0x170):_0x19f6be[_0x59e887(0x224)]=!0x0;break;case'--cleanup':_0x19f6be[_0x59e887(0x280)]=!0x0;break;case'--headless':_0x19f6be['headless']=!0x0;break;case _0x59e887(0x1b2):_0x19f6be[_0x59e887(0x1bc)]=!0x0;break;case _0x59e887(0x263):_0x19f6be['cartographer']=!0x0,_0x19f6be[_0x59e887(0x1bc)]=!0x0,_0x19f6be[_0x59e887(0x233)][_0x59e887(0x152)](..._t);break;case'--no-connections':_0x19f6be[_0x59e887(0x2d5)]=!0x0;break;case _0x59e887(0x155):_0x19f6be['noSecurity']=!0x0;break;case _0x59e887(0x16e):_0x19f6be['noMemory']=!0x0;break;case'--task-automation':_0x19f6be['taskAutomation']=!0x0;break;case _0x59e887(0x244):case'-q':_0x19f6be[_0x59e887(0x194)]=!0x0;break;case _0x59e887(0x20a):_0x19f6be['verbose']=!0x0;break;case _0x59e887(0x134):_0x19f6be[_0x59e887(0xf9)]=_0x42b92e[++_0x2d84bb];break;case _0x59e887(0x211):_0x19f6be[_0x59e887(0x1c0)]=_0x42b92e[++_0x2d84bb];break;case'--runner-url':_0x19f6be[_0x59e887(0x24b)]=_0x42b92e[++_0x2d84bb];break;case _0x59e887(0x1ac):_0x19f6be[_0x59e887(0x264)]=_0x42b92e[++_0x2d84bb];break;case _0x59e887(0x29c):_0x19f6be[_0x59e887(0x1dd)]=_0x42b92e[++_0x2d84bb];break;case _0x59e887(0x177):_0x19f6be['preloadSkills'][_0x59e887(0x152)](w(_0x42b92e,++_0x2d84bb,_0x51d78d,'a\x20skill\x20name'));break;case _0x59e887(0x1bd):{let _0x47486b=w(_0x42b92e,++_0x2d84bb,_0x51d78d,'a\x20project\x20id');_0x5b3f0a(_0x47486b)||(console[_0x59e887(0x231)](_0x59e887(0x1a1)+_0x47486b+_0x59e887(0xf8)),process[_0x59e887(0x186)](0x2)),_0x19f6be[_0x59e887(0x214)]=_0x47486b;break;}case'--output-format':{let _0x29658=w(_0x42b92e,++_0x2d84bb,_0x51d78d,_0x59e887(0xef)+_0x41c8d6[_0x59e887(0xfd)](_0x59e887(0x222))+')');_0x4a2dbe(_0x29658)||(console[_0x59e887(0x231)]('Invalid\x20--output-format:\x20'+_0x29658+_0x59e887(0x1d9)+_0x41c8d6[_0x59e887(0xfd)]('\x20|\x20')+'.'),process[_0x59e887(0x186)](0x2)),_0x19f6be[_0x59e887(0xf3)]=_0x29658;break;}case _0x59e887(0x104):_0x19f6be['sessionId']=w(_0x42b92e,++_0x2d84bb,_0x51d78d,_0x59e887(0x292));break;case _0x59e887(0x1b0):_0x19f6be['page']=J(_0x42b92e,++_0x2d84bb,_0x51d78d);break;case'--limit':_0x19f6be[_0x59e887(0x14c)]=J(_0x42b92e,++_0x2d84bb,_0x51d78d,_0x1d119f);break;case _0x59e887(0x161):_0x19f6be['includeSubAgents']=!0x0;break;case _0x59e887(0x1c3):_0x19f6be[_0x59e887(0x19a)]=w(_0x42b92e,++_0x2d84bb,_0x51d78d,_0x59e887(0x1c8));break;case'--attach':{let _0x1484a0=_0x2213bb[_0x59e887(0x241)](process['cwd'](),w(_0x42b92e,++_0x2d84bb,_0x51d78d,_0x59e887(0x1fe)));_0x409956[_0x59e887(0x2dc)](_0x1484a0)||(console[_0x59e887(0x231)](_0x59e887(0x287)+_0x1484a0),process['exit'](0x2)),_0x19f6be['attachments'][_0x59e887(0x152)](_0x1484a0);break;}case _0x59e887(0x279):_0x19f6be['turnId']=w(_0x42b92e,++_0x2d84bb,_0x51d78d,'a\x20turn\x20id');break;case _0x59e887(0x113):_0x19f6be[_0x59e887(0x1e8)]=w(_0x42b92e,++_0x2d84bb,_0x51d78d,_0x59e887(0x266));break;case _0x59e887(0x29f):_0x19f6be['contextSummary']=w(_0x42b92e,++_0x2d84bb,_0x51d78d,'a\x20briefing\x20text');break;case'--days':_0x19f6be['days']=J(_0x42b92e,++_0x2d84bb,_0x51d78d,0x16d);break;case _0x59e887(0x157):_0x19f6be[_0x59e887(0x196)]=_0x2213bb[_0x59e887(0x241)](process[_0x59e887(0x25c)](),w(_0x42b92e,++_0x2d84bb,_0x51d78d,_0x59e887(0x294)));break;case'--skills-path':_0x19f6be[_0x59e887(0x283)]=_0x2213bb[_0x59e887(0x241)](process[_0x59e887(0x25c)](),w(_0x42b92e,++_0x2d84bb,_0x51d78d,_0x59e887(0x294)));break;case'--effort':{let _0x5cddb3=w(_0x42b92e,++_0x2d84bb,_0x51d78d,_0x59e887(0x2b6));re['includes'](_0x5cddb3)||(console['error'](_0x59e887(0x2bf)+_0x5cddb3+_0x59e887(0x1d9)+re[_0x59e887(0xfd)](_0x59e887(0x222))+'.'),process[_0x59e887(0x186)](0x2)),_0x19f6be[_0x59e887(0x29b)]=_0x5cddb3;break;}case _0x59e887(0x1a4):{let _0x17e200=_0x42b92e[++_0x2d84bb];(!_0x17e200||_0x17e200['startsWith']('--'))&&(console[_0x59e887(0x231)](_0x59e887(0x2bd)),process['exit'](0x2)),_0x19f6be[_0x59e887(0x193)]=_0x17e200;break;}case _0x59e887(0x277):{let _0x3e9226=_0x42b92e[++_0x2d84bb];[_0x59e887(0x2a4),_0x59e887(0x1ca),'production',_0x59e887(0x23f)][_0x59e887(0x2da)](_0x3e9226)||(console['error'](_0x59e887(0x153)+_0x3e9226+_0x59e887(0x2a0)),process[_0x59e887(0x186)](0x2)),_0x19f6be[_0x59e887(0x299)]=_0x3e9226;break;}case _0x59e887(0x1ad):case _0x59e887(0x13a):{let _0x4af92a=w(_0x42b92e,++_0x2d84bb,_0x51d78d,'a\x20deployment\x20URL,\x20e.g.\x20https://automationsuite.contoso.com'),_0x149055=_0x4c1e38(_0x4af92a);if(_0x149055['ok']===!0x1){console[_0x59e887(0x231)](_0x16b4c2(_0x4af92a,_0x149055[_0x59e887(0x1d4)])),process[_0x59e887(0x186)](0x2);break;}_0x19f6be[_0x59e887(0x17a)]=_0x149055[_0x59e887(0x166)];break;}case'--skip-env-check':_0x19f6be[_0x59e887(0x27d)]=!0x0;break;case'-h':case _0x59e887(0x2c7):_0x19f6be[_0x59e887(0x218)]=!0x0;break;case'-v':case _0x59e887(0x219):_0x19f6be[_0x59e887(0x18e)]=!0x0;break;default:_0x51d78d[_0x59e887(0x207)]('--')&&(console['error'](_0x59e887(0x148)+_0x51d78d),process[_0x59e887(0x186)](0x2)),_0x5d15d3[_0x59e887(0x152)](_0x51d78d);}}return _0x19f6be[_0x59e887(0x193)]!==void 0x0&&_0x19f6be[_0x59e887(0x291)]!=='login'&&(console[_0x59e887(0x231)]('--tenant\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Switch\x20tenants\x20with:\x20delegate-cli\x20tenant\x20<name>'),process[_0x59e887(0x186)](0x2)),_0x19f6be['url']!==void 0x0&&_0x19f6be[_0x59e887(0x299)]!==void 0x0&&(console[_0x59e887(0x231)]('Pass\x20either\x20--env\x20(a\x20named\x20cloud)\x20or\x20--url\x20(any\x20other\x20deployment),\x20not\x20both.'),process['exit'](0x2)),_0x19f6be[_0x59e887(0x17a)]!==void 0x0&&_0x19f6be[_0x59e887(0x291)]!==_0x59e887(0x185)&&(console[_0x59e887(0x231)]('--url\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Other\x20commands\x20follow\x20the\x20saved\x20login,\x20or\x20--backend\x20<url>.'),process['exit'](0x2)),_0x19f6be[_0x59e887(0x122)]!==void 0x0&&_0x19f6be['subcommand']!==_0x59e887(0x296)&&(console[_0x59e887(0x231)](_0x59e887(0x2a3)),process[_0x59e887(0x186)](0x2)),_0x19f6be[_0x59e887(0x19a)]!==void 0x0&&(_0x19f6be[_0x59e887(0x291)]!==_0x59e887(0x2b1)&&_0x19f6be[_0x59e887(0x291)]!==''||_0x19f6be['cleanup'])&&(console['error'](_0x59e887(0x175)),process[_0x59e887(0x186)](0x2)),_0x19f6be[_0x59e887(0x160)][_0x59e887(0x1db)]>0x0&&(_0x19f6be[_0x59e887(0x291)]!==''||_0x19f6be[_0x59e887(0x280)])&&(console[_0x59e887(0x231)]('--attach\x20applies\x20to\x20prompts\x20only.'),process[_0x59e887(0x186)](0x2)),_0x19f6be[_0x59e887(0x14b)]&&(_0x19f6be[_0x59e887(0x291)]!==''||_0x19f6be[_0x59e887(0x280)])&&(console[_0x59e887(0x231)](_0x59e887(0x24d)),process[_0x59e887(0x186)](0x2)),_0x19f6be['taskAutomation']&&(_0x19f6be['headless']||_0x19f6be['noComputerUse'])&&(console[_0x59e887(0x231)]('--task-automation\x20needs\x20computer\x20use:\x20the\x20task\x20log\x20is\x20written\x20by\x20the\x20UI-automation\x20tools.\x20Drop\x20--headless,\x20--no-computer-use\x20and\x20--cartographer.'),process[_0x59e887(0x186)](0x2)),_0x19f6be[_0x59e887(0x27d)]&&_0x19f6be[_0x59e887(0x291)]!==_0x59e887(0x185)&&(console[_0x59e887(0x231)](_0x59e887(0x290)),process['exit'](0x2)),_0x19f6be[_0x59e887(0xf3)]!=='text'&&!se[_0x59e887(0x2da)](_0x19f6be[_0x59e887(0x291)])&&(console['error'](_0x59e887(0x1f8)+_0x19f6be[_0x59e887(0xf3)]+_0x59e887(0x2a5)+se[_0x59e887(0x240)](Boolean)[_0x59e887(0xfd)](',\x20')+'.'),process[_0x59e887(0x186)](0x2)),(_0x19f6be[_0x59e887(0x200)]!==void 0x0||_0x19f6be[_0x59e887(0x14c)]!==void 0x0||_0x19f6be[_0x59e887(0x24c)])&&_0x19f6be[_0x59e887(0x291)]!=='sessions'&&(console[_0x59e887(0x231)](_0x59e887(0x24f)),process['exit'](0x2)),(_0x19f6be[_0x59e887(0x1e8)]!==void 0x0||_0x19f6be[_0x59e887(0x17f)]!==void 0x0)&&_0x19f6be[_0x59e887(0x291)]!=='delegations'&&(console[_0x59e887(0x231)](_0x59e887(0x288)),process['exit'](0x2)),_0x19f6be[_0x59e887(0xfe)]!==void 0x0&&_0x19f6be[_0x59e887(0x291)]!==_0x59e887(0x29a)&&(console['error'](_0x59e887(0x1c4)),process[_0x59e887(0x186)](0x2)),_0x19f6be[_0x59e887(0x233)]=[...new Set(_0x19f6be['preloadSkills'])],_0x19f6be[_0x59e887(0x272)]=_0x5d15d3,_0x19f6be[_0x59e887(0x183)]=_0x5d15d3[_0x59e887(0xfd)]('\x20'),_0x19f6be;}var P=_0x1e742b=>{const _0x1c2cd5=_0x5c83f1;process[_0x1c2cd5(0x220)]['write'](_0x1e742b);};function Pt(){const _0x538963=_0x5c83f1;let _0xb25f0b=process[_0x538963(0x220)]['write'],_0x395e76=_0xb25f0b[_0x538963(0x1c9)](process['stdout']),_0x18ceb0=P;return P=_0x9186e=>{_0x395e76(_0x9186e);},process[_0x538963(0x220)]['write']=(..._0x1acd1e)=>process[_0x538963(0x282)][_0x538963(0x1e0)](..._0x1acd1e),()=>{const _0xf6c031=_0x538963;process[_0xf6c031(0x220)][_0xf6c031(0x1e0)]=_0xb25f0b,P=_0x18ceb0;};}function u(_0x5e65c3,_0x29969c,_0x1fdfcd){if(_0x5e65c3['outputFormat']==='text'){_0x1fdfcd(_0x29969c);return;}P(_0xc9c5f8(_0x29969c));}function Ct(){const _0x5d64b7=_0x5c83f1;let _0x3a6a50='\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--no-computer-use\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\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--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-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'['trim']();console[_0x5d64b7(0x12d)](_0x3a6a50);}function Lt(){const _0x3a54a0=_0x5c83f1;try{return JSON['parse'](_0x409956[_0x3a54a0(0x298)](_0x2213bb[_0x3a54a0(0xfd)](__dirname,'..',_0x3a54a0(0x212)),'utf-8'))[_0x3a54a0(0x18e)]||_0x3a54a0(0x16b);}catch{return _0x3a54a0(0x16b);}}var Ot=0x7d0;async function ie(_0x260f5a,_0x2da1dd){const _0xd5c76b=_0x5c83f1;let _0x2e2723=_0x2da1dd?[_0x2da1dd]:[];for await(let _0x328e57 of _0x260f5a)_0x2e2723['push'](Buffer[_0xd5c76b(0x24e)](_0x328e57));return Buffer[_0xd5c76b(0x11f)](_0x2e2723)[_0xd5c76b(0x131)](_0xd5c76b(0x11c))[_0xd5c76b(0x135)]();}function Ft(_0xe87ad0,_0x376831){return new Promise(_0x509527=>{const _0x4a05d7=_0x132e;let _0x1806c1=_0x41a9c2=>{const _0x51f694=_0x132e;clearTimeout(_0x4d3e3c),_0xe87ad0[_0x51f694(0x150)](_0x51f694(0x28f),_0x3f4ba4),_0xe87ad0['off']('end',_0x118783),_0xe87ad0['off'](_0x51f694(0x231),_0x118783),_0xe87ad0['pause'](),_0x509527(_0x41a9c2);},_0x3f4ba4=_0x38f915=>_0x1806c1(Buffer[_0x4a05d7(0x24e)](_0x38f915)),_0x118783=()=>_0x1806c1(null),_0x4d3e3c=setTimeout(()=>_0x1806c1(null),_0x376831);_0xe87ad0['on']('data',_0x3f4ba4),_0xe87ad0['on'](_0x4a05d7(0x1af),_0x118783),_0xe87ad0['on']('error',_0x118783),_0xe87ad0[_0x4a05d7(0x15b)]();});}async function j(_0x44a204,_0x5ef2b9,_0x402974=Ot){const _0x5eebec=_0x5c83f1;let _0x567c21=_0x44a204==='-';if(!_0x567c21&&_0x44a204)return _0x44a204;if(!_0x567c21&&_0x5ef2b9[_0x5eebec(0x237)])return'';if(_0x567c21)return ie(_0x5ef2b9,null);let _0x20120d=await Ft(_0x5ef2b9,_0x402974);return _0x20120d?ie(_0x5ef2b9,_0x20120d):'';}function K(){const _0x32d035=_0x5c83f1;return _0x2213bb[_0x32d035(0xfd)](process.env.HOME||process.env.USERPROFILE||'',_0x32d035(0x180),_0x32d035(0x143));}function M(_0x9199e4){const _0x31c455=_0x5c83f1;try{let _0xe68d19=JSON[_0x31c455(0x2b0)](_0x409956[_0x31c455(0x298)](_0x9199e4,_0x31c455(0x11c)));return!_0xe68d19['accessToken']||!_0xe68d19[_0x31c455(0x145)]||!_0xe68d19[_0x31c455(0x1c5)]?null:_0xe68d19;}catch{return null;}}function jt(){const _0x1049a8=_0x5c83f1;let _0x4f6b93=[{'file':_0x238e31(),'isDesktopFallback':!0x1},{'file':K(),'isDesktopFallback':!0x0}];for(let _0x4184d6 of _0x4f6b93){let _0x20a702=M(_0x4184d6[_0x1049a8(0x1b8)]);if(_0x20a702)return{..._0x4184d6,'auth':_0x20a702};}return null;}async function Mt(){const _0xff8b1e=_0x5c83f1;let _0x23c5ba=_0x238e31();if(!_0x409956[_0xff8b1e(0x2dc)](_0x23c5ba)){let _0x397d8a=K();console['log'](M(_0x397d8a)?_0xff8b1e(0x2ad)+_0x397d8a+_0xff8b1e(0x251):'No\x20CLI\x20login\x20found\x20—\x20nothing\x20to\x20remove.');return;}_0x409956['rmSync'](_0x23c5ba),console[_0xff8b1e(0x12d)](_0xff8b1e(0x2a1)+_0x23c5ba);}async function Bt(_0x317c71){const _0xa41636=_0x5c83f1;let _0x191b9a=Q(),_0x4cc6eb,_0x51d127;if(_0x191b9a)_0x4cc6eb=_0x191b9a,_0x51d127='environment\x20variables\x20(AUTH_TOKEN/TENANT_ID/ORG_ID)';else{let _0x1bc2d4=jt();if(!_0x1bc2d4)throw new Error(Se);_0x4cc6eb=_0x1bc2d4[_0xa41636(0x2b8)],_0x51d127=_0x1bc2d4[_0xa41636(0x243)]?_0x1bc2d4[_0xa41636(0x1b8)]+'\x20(Delegate\x20desktop\x20app\x20fallback)':_0x1bc2d4['file'];}let _0x15bf92={'source':_0x51d127,'baseUrl':_0x4cc6eb[_0xa41636(0x166)]??null,'deployment':Ht(_0x4cc6eb['baseUrl']),'organization':{'id':_0x4cc6eb['organizationId'],'slug':_0x4cc6eb[_0xa41636(0x1d5)]??null},'tenant':{'id':_0x4cc6eb[_0xa41636(0x145)],'name':_0x4cc6eb[_0xa41636(0x22b)]??null},'tokenExpiresAt':_0x4cc6eb[_0xa41636(0x195)]?new Date(_0x4cc6eb[_0xa41636(0x195)]*0x3e8)[_0xa41636(0x156)]():null};u(_0x317c71,_0x15bf92,()=>{const _0x1cc0bb=_0xa41636;let _0x4d225b=[_0x1cc0bb(0x1a9)+_0x51d127,_0x1cc0bb(0x1b3)+(_0x4cc6eb[_0x1cc0bb(0x166)]??_0x1cc0bb(0x16b)),'Deployment:\x20\x20\x20'+_0x15bf92[_0x1cc0bb(0x16f)],_0x1cc0bb(0x1fb)+(_0x4cc6eb[_0x1cc0bb(0x1d5)]??_0x1cc0bb(0x154))+'\x20('+_0x4cc6eb['organizationId']+')',_0x1cc0bb(0x25f)+(_0x4cc6eb[_0x1cc0bb(0x22b)]??'unknown\x20slug')+'\x20('+_0x4cc6eb[_0x1cc0bb(0x145)]+')'];if(_0x4cc6eb[_0x1cc0bb(0x195)]){let _0x3edd13=_0x4cc6eb['expiresAt']-Math[_0x1cc0bb(0x273)](Date[_0x1cc0bb(0x295)]()/0x3e8);_0x4d225b[_0x1cc0bb(0x152)](_0x3edd13>0x0?'Token:\x20\x20\x20\x20\x20\x20\x20\x20expires\x20'+_0x15bf92['tokenExpiresAt']+_0x1cc0bb(0x23c)+Math[_0x1cc0bb(0x278)](_0x3edd13/0x3c)+_0x1cc0bb(0xec):'Token:\x20\x20\x20\x20\x20\x20\x20\x20expired\x20'+_0x15bf92[_0x1cc0bb(0x176)]);}process['stdout'][_0x1cc0bb(0x1e0)](_0x4d225b[_0x1cc0bb(0xfd)]('\x0a')+'\x0a');});}var Se='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.';function Ht(_0x86e7f7){const _0x471e0e=_0x5c83f1;return _0x86e7f7?_0x13c3cb(_0x86e7f7)?_0x471e0e(0x1cb):_0x471e0e(0x250):'unknown';}function Q(){let _0x43dac5=process.env.AUTH_TOKEN_FILE;return(process.env.AUTH_TOKEN||_0x43dac5)&&process.env.TENANT_ID&&process.env.ORG_ID?{'accessToken':_0x43dac5?Jt(_0x43dac5):process.env.AUTH_TOKEN,..._0x43dac5?{'accessTokenFile':_0x43dac5}:{},'tenantId':process.env.TENANT_ID,'organizationId':process.env.ORG_ID,'orgLogicalName':process.env.ORG_SLUG,'tenantName':process.env.TENANT_SLUG,'baseUrl':ve()}:null;}function Jt(_0x3c312f){const _0x5ad723=_0x5c83f1;let _0x3170c2;try{_0x3170c2=_0x409956[_0x5ad723(0x298)](_0x3c312f,_0x5ad723(0x11c))[_0x5ad723(0x135)]();}catch(_0x4c2834){throw new Error(_0x5ad723(0x16d)+_0x3c312f+'\x27\x20cannot\x20be\x20read:\x20'+_0x4c2834[_0x5ad723(0x267)]);}let _0x406e01=_0x3170c2['startsWith']('Bearer\x20')?_0x3170c2[_0x5ad723(0x26a)](0x7)[_0x5ad723(0x135)]():_0x3170c2;if(!_0x406e01)throw new Error(_0x5ad723(0x16d)+_0x3c312f+_0x5ad723(0x285));return _0x406e01;}function ve(){const _0x3707fc=_0x5c83f1;let _0x5be508=process.env.UIPATH_BASE_URL;if(!_0x5be508)return;let _0x1abd7d=_0x4c1e38(_0x5be508);if(_0x1abd7d['ok']===!0x1)throw new Error(_0x3707fc(0x20e)+_0x16b4c2(_0x5be508,_0x1abd7d['rejection']));return _0x1abd7d[_0x3707fc(0x166)];}async function q(){let _0x5ddaaa=Q();if(_0x5ddaaa)return _0x5ddaaa;let _0x46b55e=await _0x724a3b();if(_0x46b55e)return _0x46b55e;throw new Error(Se);}async function Gt(){const _0x24802e=_0x5c83f1;await new _0x13f76b()['stop']({'force':!0x0}),console['log'](_0x24802e(0xf6));}function z(_0x251fcc,_0x1321d5,_0x39d8e5){const _0x23bdf0=_0x5c83f1;_0x251fcc?process[_0x23bdf0(0x282)][_0x23bdf0(0x1e0)](_0x23bdf0(0x179)+_0x251fcc+_0x23bdf0(0x2ac)+_0x39d8e5+'\x0a'):!_0x1321d5&&!process.env.BACKEND_URL&&process[_0x23bdf0(0x282)][_0x23bdf0(0x1e0)]('[saved\x20login]\x20Backend\x20URL:\x20'+_0x39d8e5+'\x0a');}async function v(_0x38bb85){const _0x4d0b34=_0x5c83f1;let _0x40e08c=await q(),_0x1a0efd=_0x3a54f4(_0x38bb85['env'],_0x40e08c,_0x38bb85['backendUrl']);return z(_0x38bb85[_0x4d0b34(0x299)],_0x38bb85['backendUrl'],_0x1a0efd),{'auth':_0x40e08c,'backendUrl':_0x1a0efd,'client':_0x56a2a3({'auth':_0x40e08c,'backendUrl':_0x1a0efd})};}async function Wt(_0xb00de6){const _0x56295f=_0x5c83f1;let {client:_0x36e1bd}=await v(_0xb00de6),[_0xae4d7b,_0xdbe99]=await Promise[_0x56295f(0x213)]([_0x48d62f(_0x36e1bd),_0x1c6a8c(_0x36e1bd)['catch'](_0x142299=>(process[_0x56295f(0x282)][_0x56295f(0x1e0)](_0x56295f(0x1e7)+(_0x142299 instanceof Error?_0x142299[_0x56295f(0x267)]:String(_0x142299))+'\x0a'),{}))]),_0x25ed8d=_0xae4d7b[_0x56295f(0x22a)](_0x5536b5=>_0xdbe99[_0x5536b5['id']]?{..._0x5536b5,'byoWarning':_0xdbe99[_0x5536b5['id']]}:_0x5536b5);u(_0xb00de6,_0x25ed8d,Kt);}function Kt(_0x2247f8){const _0x3ad5a8=_0x5c83f1;if(_0x2247f8[_0x3ad5a8(0x1db)]===0x0){process['stderr']['write'](_0x3ad5a8(0x1c6));return;}process[_0x3ad5a8(0x220)][_0x3ad5a8(0x1e0)]('\x0aAvailable\x20models\x20('+_0x2247f8['length']+_0x3ad5a8(0x286));for(let _0x194e9b of _0x2247f8){let _0x210329=_0x194e9b[_0x3ad5a8(0x11b)]&&_0x194e9b[_0x3ad5a8(0x11b)]!==_0x194e9b['id']?'\x20('+_0x194e9b[_0x3ad5a8(0x11b)]+')':'';process[_0x3ad5a8(0x220)][_0x3ad5a8(0x1e0)]('\x20\x20'+_0x194e9b['id']+_0x210329+'\x0a'),_0x194e9b[_0x3ad5a8(0x167)]&&process[_0x3ad5a8(0x220)]['write'](_0x3ad5a8(0x1b7)+_0x194e9b[_0x3ad5a8(0x167)]+'\x0a'),_0x194e9b[_0x3ad5a8(0x115)]&&process[_0x3ad5a8(0x220)][_0x3ad5a8(0x1e0)](_0x3ad5a8(0x1f7)+(_0x194e9b['lockReason']?'\x20('+_0x194e9b[_0x3ad5a8(0x17d)]+')':'')+'\x0a'),_0x194e9b[_0x3ad5a8(0x26e)]&&process[_0x3ad5a8(0x220)][_0x3ad5a8(0x1e0)](_0x3ad5a8(0x206)+_0x194e9b['byoWarning']+'\x0a');}process[_0x3ad5a8(0x220)][_0x3ad5a8(0x1e0)]('\x0aUse\x20with:\x20delegate-cli\x20--model\x20<id>\x20\x22<prompt>\x22\x0a');}var ae=[_0x5c83f1(0x23d),'show','rename',_0x5c83f1(0x21b),'cancel',_0x5c83f1(0x2cd)];async function Qt(_0x2eca69){const _0xf55340=_0x5c83f1;let [_0x19784f='',_0x1fefda='',..._0x27e88d]=_0x2eca69['operands'];if(_0x19784f&&!ae[_0xf55340(0x2da)](_0x19784f)&&(console[_0xf55340(0x231)](_0xf55340(0x208)+_0x19784f+_0xf55340(0x254)+ae[_0xf55340(0xfd)](_0xf55340(0x222))+'.'),process[_0xf55340(0x186)](0x2)),_0x2eca69[_0xf55340(0xfe)]!==void 0x0&&_0x19784f!==_0xf55340(0x252)&&(console[_0xf55340(0x231)](_0xf55340(0x1c4)),process[_0xf55340(0x186)](0x2)),_0x19784f&&_0x19784f!==_0xf55340(0x23d)){await qt(_0x2eca69,_0x19784f,_0x1fefda,_0x27e88d[_0xf55340(0xfd)]('\x20')[_0xf55340(0x135)]());return;}_0x2eca69[_0xf55340(0x272)]['length']>0x1&&(console['error'](_0xf55340(0x125)),process[_0xf55340(0x186)](0x2));let {client:_0x57a760}=await v(_0x2eca69),_0x1a0940=await _0x1f87d6(_0x57a760,{'page':_0x2eca69['page'],'pageSize':_0x2eca69[_0xf55340(0x14c)],'includeSubAgents':_0x2eca69[_0xf55340(0x24c)]});u(_0x2eca69,_0x1a0940,Xt);}async function qt(_0x1a34c7,_0x545adc,_0x666770,_0x69e82d){const _0x3f4b01=_0x5c83f1;if((_0x1a34c7[_0x3f4b01(0x200)]!==void 0x0||_0x1a34c7[_0x3f4b01(0x14c)]!==void 0x0||_0x1a34c7[_0x3f4b01(0x24c)])&&(console[_0x3f4b01(0x231)](_0x3f4b01(0x21c)),process['exit'](0x2)),_0x545adc===_0x3f4b01(0x252)){await Yt(_0x1a34c7,_0x666770,_0x69e82d);return;}if(_0x545adc===_0x3f4b01(0x2cd)){await Vt(_0x1a34c7,_0x666770,_0x69e82d);return;}(!_0x666770||_0x545adc===_0x3f4b01(0x10e)!=!!_0x69e82d)&&(console[_0x3f4b01(0x231)](_0x3f4b01(0x15e)+_0x545adc+_0x3f4b01(0x230)+(_0x545adc===_0x3f4b01(0x10e)?'\x20<title>':'')),process['exit'](0x2));let {client:_0x4f8a90}=await v(_0x1a34c7);try{if(_0x545adc===_0x3f4b01(0x14d)){let _0x3b7dbc=await _0x52a198(_0x4f8a90,_0x666770);_0x3b7dbc||le(_0x666770),u(_0x1a34c7,_0x3b7dbc,zt);}else{if(_0x545adc===_0x3f4b01(0x10e)){let _0x4544e0=await _0x5924ae(_0x4f8a90,_0x666770,_0x69e82d);u(_0x1a34c7,_0x4544e0,_0xc60df8=>{const _0x50a863=_0x3f4b01;process[_0x50a863(0x220)][_0x50a863(0x1e0)](_0x50a863(0x158)+_0xc60df8['id']+':\x20'+_0xc60df8[_0x50a863(0x101)]+'\x0a');});}else await _0x2616e1(_0x4f8a90,_0x666770),await _0x26e2aa(_0x666770,_0x1a34c7[_0x3f4b01(0x196)]),u(_0x1a34c7,{'id':_0x666770,'deleted':!0x0},_0xda486a=>{const _0x52435c=_0x3f4b01;process[_0x52435c(0x220)][_0x52435c(0x1e0)](_0x52435c(0x226)+_0xda486a['id']+'.\x0a');});}}catch(_0xfde7bf){if(!_0x58d31b(_0xfde7bf,0x194))throw _0xfde7bf;le(_0x666770);}}function le(_0x5e0183){const _0x17d538=_0x5c83f1;console[_0x17d538(0x231)](_0x17d538(0x232)+_0x5e0183+_0x17d538(0x147)),process[_0x17d538(0x186)](0x1);}function zt(_0x458e2c){const _0x2f9b87=_0x5c83f1;process[_0x2f9b87(0x220)][_0x2f9b87(0x1e0)](_0x2f9b87(0x1b4)+_0x458e2c['id']+'\x0a'),process['stdout'][_0x2f9b87(0x1e0)](_0x2f9b87(0x223)+_0x458e2c['title']+'\x0a'),process['stdout'][_0x2f9b87(0x1e0)](_0x2f9b87(0x20d)+_0x458e2c['userId']+'\x0a'),process[_0x2f9b87(0x220)][_0x2f9b87(0x1e0)]('Organization\x20\x20'+_0x458e2c[_0x2f9b87(0x1c5)]+'\x0a'),_0x458e2c['delegationId']&&process[_0x2f9b87(0x220)][_0x2f9b87(0x1e0)](_0x2f9b87(0x205)+_0x458e2c[_0x2f9b87(0xea)]+'\x0a');}async function Yt(_0x5c7056,_0x3d9c50,_0x5df1b3){const _0x1c977f=_0x5c83f1;(!_0x3d9c50||_0x5df1b3||!_0x5c7056['turnId'])&&(console['error'](_0x1c977f(0x20f)),process[_0x1c977f(0x186)](0x2));let {client:_0x1fe4f1}=await v(_0x5c7056),_0x558825=await _0xbd79f2(_0x1fe4f1,_0x3d9c50,_0x5c7056[_0x1c977f(0xfe)]);u(_0x5c7056,{'sessionId':_0x3d9c50,'turnId':_0x5c7056[_0x1c977f(0xfe)],'cancelled':_0x558825},_0x40432f=>{const _0x4edcb0=_0x1c977f;_0x40432f[_0x4edcb0(0x2cf)]?process[_0x4edcb0(0x220)]['write'](_0x4edcb0(0x201)+_0x40432f[_0x4edcb0(0xfe)]+_0x4edcb0(0x1e1)+_0x40432f[_0x4edcb0(0x2a7)]+'.\x0a'):process[_0x4edcb0(0x282)][_0x4edcb0(0x1e0)](_0x4edcb0(0x269)+_0x40432f[_0x4edcb0(0xfe)]+_0x4edcb0(0x1c2)+_0x40432f[_0x4edcb0(0x2a7)]+'.\x0a');}),_0x558825||(process[_0x1c977f(0x10d)]=0x1);}async function Vt(_0x418586,_0x5e5a7d,_0x43e617){const _0x1d88c4=_0x5c83f1;(!_0x5e5a7d||/\s/[_0x1d88c4(0x23e)](_0x43e617))&&(console[_0x1d88c4(0x231)]('Usage:\x20delegate-cli\x20sessions\x20fork\x20<id>\x20[<message-id>]'),process[_0x1d88c4(0x186)](0x2));let {client:_0xfb004}=await v(_0x418586),_0x5b5e82;try{_0x5b5e82=await _0xe06acc(_0xfb004,_0x5e5a7d,{'atMessageId':_0x43e617||void 0x0});}catch(_0x46d305){if(!_0x58d31b(_0x46d305,0x194))throw _0x46d305;console['error'](_0x1d88c4(0x232)+_0x5e5a7d+_0x1d88c4(0x123)+(_0x43e617?_0x1d88c4(0x164)+_0x43e617:'')+'.'),process[_0x1d88c4(0x186)](0x1);}u(_0x418586,_0x5b5e82,_0x2c5da3=>{const _0x2ba27a=_0x1d88c4;process['stdout']['write']('Forked\x20'+_0x5e5a7d+_0x2ba27a(0x20b)+_0x2c5da3['id']+'.\x0a'),process[_0x2ba27a(0x282)]['write'](_0x2ba27a(0x1fc)+_0x2c5da3['id']+_0x2ba27a(0x1fd));});}function Xt({sessions:_0x27f570,page:_0x440a9a,isLastPage:_0x3d186f}){const _0xf021d4=_0x5c83f1;if(_0x27f570[_0xf021d4(0x1db)]===0x0)process['stderr'][_0xf021d4(0x1e0)](_0xf021d4(0x2cb)+_0x440a9a+'.\x0a');else{process[_0xf021d4(0x220)][_0xf021d4(0x1e0)]('ID'[_0xf021d4(0x13c)](0x24)+'\x20\x20'+'UPDATED'['padEnd'](0x13)+'\x20\x20TITLE\x0a');for(let _0x429123 of _0x27f570){let _0x29793e=_0x429123[_0xf021d4(0x127)][_0xf021d4(0x128)]('T','\x20')[_0xf021d4(0x26a)](0x0,0x13),_0x449ef8=_0x429123[_0xf021d4(0x118)]?'\x20\x20(sub-agent\x20of\x20'+_0x429123[_0xf021d4(0x118)]+')':'';process[_0xf021d4(0x220)][_0xf021d4(0x1e0)](_0x429123['id'][_0xf021d4(0x13c)](0x24)+'\x20\x20'+_0x29793e['padEnd'](0x13)+'\x20\x20'+_0x429123[_0xf021d4(0x101)]+_0x449ef8+'\x0a');}}_0x3d186f||process[_0xf021d4(0x282)]['write'](_0xf021d4(0x187)+(_0x440a9a+0x1)+'\x0a');}async function Zt(_0x16aacf){const _0x4e1b7a=_0x5c83f1;let _0x2bdd00=await q(),_0x334580=_0x3a54f4(_0x16aacf[_0x4e1b7a(0x299)],_0x2bdd00,_0x16aacf[_0x4e1b7a(0xf9)]);z(_0x16aacf[_0x4e1b7a(0x299)],_0x16aacf[_0x4e1b7a(0xf9)],_0x334580);let _0x637264=await _0x45c4ff({'auth':_0x2bdd00,'backendUrl':_0x334580,'interop':_0x16aacf['headless']?_0x4e1b7a(0x2d6):_0x4e1b7a(0x1eb)});u(_0x16aacf,_0x637264,({checks:_0x1d791d})=>{const _0x1c8681=_0x4e1b7a;for(let _0x53b587 of _0x1d791d)process[_0x1c8681(0x220)][_0x1c8681(0x1e0)](en(_0x53b587)+'\x0a');}),_0x637264['ok']||process[_0x4e1b7a(0x186)](0x1);}function en(_0xf1b048){const _0x2cde01=_0x5c83f1;return{'ok':'✓','failed':'✗','skipped':'-'}[_0xf1b048[_0x2cde01(0xf7)]]+'\x20'+_0xf1b048[_0x2cde01(0x11b)]['padEnd'](0xa)+_0xf1b048[_0x2cde01(0x1cf)];}var tn=['',_0x5c83f1(0x10c),'daily'];async function nn(_0x590dbd){const _0x350aa5=_0x5c83f1;let _0x15c36d=_0x590dbd[_0x350aa5(0x183)];tn[_0x350aa5(0x2da)](_0x15c36d)||(console['error'](_0x350aa5(0x1a5)+_0x590dbd[_0x350aa5(0x183)]+_0x350aa5(0x168)),process[_0x350aa5(0x186)](0x2)),_0x15c36d===''&&_0x590dbd[_0x350aa5(0x122)]!==void 0x0&&(console[_0x350aa5(0x231)](_0x350aa5(0x1a6)),process[_0x350aa5(0x186)](0x2)),_0x15c36d!==''&&_0x590dbd['sessionId']!==void 0x0&&(console[_0x350aa5(0x231)](_0x350aa5(0x2b9)),process['exit'](0x2));let {client:_0xb0e29d}=await v(_0x590dbd);if(_0x15c36d===_0x350aa5(0x10c)){u(_0x590dbd,await _0xb953f6(_0xb0e29d,{'days':_0x590dbd['days']}),sn);return;}if(_0x15c36d==='daily'){u(_0x590dbd,await _0x560d3e(_0xb0e29d,{'days':_0x590dbd[_0x350aa5(0x122)]}),rn);return;}let [_0x4b7423,_0x5fa438,_0x536f9c]=await Promise['all']([_0x2fef58(_0xb0e29d,{'sessionId':_0x590dbd[_0x350aa5(0x2a7)]}),_0x1116d9(_0xb0e29d),_0x3bb15b(_0xb0e29d)]);u(_0x590dbd,{'licensing':_0x4b7423,'monthlySpending':_0x5fa438,'cartographerAllowance':_0x536f9c},on);}function on(_0x372a3b){const _0x185b16=_0x5c83f1;let {licensing:_0x47e7c7,monthlySpending:_0x38f984,cartographerAllowance:_0x12a177}=_0x372a3b,_0xd4bcd3=[_0x47e7c7[_0x185b16(0x2d3)]?_0x185b16(0x203)+_0x47e7c7['pct_used'][_0x185b16(0x1e5)](0x1)+_0x185b16(0x22d)+(_0x47e7c7[_0x185b16(0x1f1)]??0x0)+'\x20PU\x20used'+(_0x47e7c7[_0x185b16(0x146)]>0x0?',\x20'+_0x47e7c7[_0x185b16(0x146)]+'\x20PU\x20beyond\x20quota':'')+'\x20(resets\x20'+_0x47e7c7[_0x185b16(0x2b2)]+')':_0x185b16(0x1ff),'Spending:\x20\x20\x20\x20\x20$'+_0x38f984[_0x185b16(0x246)]['toFixed'](0x2)+_0x185b16(0x2db)+(_0x38f984['limit_enabled']&&_0x38f984[_0x185b16(0x137)]!==null?_0x185b16(0x1e9)+_0x38f984[_0x185b16(0x137)][_0x185b16(0x1e5)](0x2)+'\x20cap':'\x20(no\x20cap\x20enforced)'),_0x185b16(0x189)+_0x12a177[_0x185b16(0x129)]+'\x20('+_0x12a177[_0x185b16(0x2d7)]+')'];_0x47e7c7[_0x185b16(0x2d4)]!==null&&_0x47e7c7[_0x185b16(0x2d4)]!==void 0x0&&_0xd4bcd3['push'](_0x185b16(0x25b)+_0x47e7c7[_0x185b16(0x2d4)]+'\x20PU'),process['stdout'][_0x185b16(0x1e0)](_0xd4bcd3[_0x185b16(0xfd)]('\x0a')+'\x0a');}function sn(_0xb8146f){const _0x174b20=_0x5c83f1;let _0x190093=[_0x174b20(0x2a6)+_0xb8146f[_0x174b20(0x17e)]+_0x174b20(0x2be)+_0xb8146f[_0x174b20(0x27b)]+_0x174b20(0x1ed)+_0xb8146f[_0x174b20(0xfc)]+_0x174b20(0x27a),_0x174b20(0x24a)+_0xb8146f[_0x174b20(0x182)][_0x174b20(0x1e5)](0x2)+_0x174b20(0x22e)+_0xb8146f[_0x174b20(0xee)][_0x174b20(0x1e5)](0x2)+_0x174b20(0x191)+_0xb8146f[_0x174b20(0x293)]+'\x20token\x20units)','Tokens:\x20'+_0xb8146f[_0x174b20(0x271)]+_0x174b20(0x1fa)+_0xb8146f[_0x174b20(0x114)]+'\x20completion'];for(let [_0x364219,_0x501791]of Object[_0x174b20(0x18c)](_0xb8146f[_0x174b20(0x28e)]))_0x190093[_0x174b20(0x152)]('\x20\x20'+_0x364219+':\x20'+_0x501791+'\x20token\x20units');process[_0x174b20(0x220)][_0x174b20(0x1e0)](_0x190093[_0x174b20(0xfd)]('\x0a')+'\x0a');}function rn(_0x3af7e3){const _0x59fb23=_0x5c83f1;if(_0x3af7e3[_0x59fb23(0x2ae)][_0x59fb23(0x1db)]===0x0){process[_0x59fb23(0x220)][_0x59fb23(0x1e0)](_0x59fb23(0x21e)+_0x3af7e3[_0x59fb23(0x17e)]+_0x59fb23(0x2c4));return;}let _0x2227c1=[_0x59fb23(0x140)];for(let _0x4be01b of _0x3af7e3[_0x59fb23(0x2ae)])_0x2227c1[_0x59fb23(0x152)](_0x4be01b['date']+'\x20\x20'+String(_0x4be01b[_0x59fb23(0xff)])[_0x59fb23(0x142)](0xb)+'\x20\x20'+String(_0x4be01b[_0x59fb23(0x2ba)])['padStart'](0xd)+'\x20\x20'+String(_0x4be01b[_0x59fb23(0x1bb)])[_0x59fb23(0x142)](0x11));process[_0x59fb23(0x220)][_0x59fb23(0x1e0)](_0x2227c1['join']('\x0a')+'\x0a');}async function an(_0x60c3cd,_0x4287f8){const _0x8b0cdb=_0x5c83f1;let _0x424efe=await ln(_0x60c3cd[_0x8b0cdb(0x183)],_0x4287f8);_0x60c3cd[_0x8b0cdb(0x1c0)]&&(_0x424efe[_0x8b0cdb(0x1c0)]=_0x60c3cd[_0x8b0cdb(0x1c0)]);let {client:_0x74c37b}=await v(_0x60c3cd);try{_0x4287f8===_0x8b0cdb(0x1b5)?u(_0x60c3cd,await _0x2b5000(_0x74c37b,_0x424efe,void 0x0),dn):_0x4287f8===_0x8b0cdb(0x28b)?u(_0x60c3cd,await _0x1623be(_0x74c37b,_0x424efe,void 0x0),un):u(_0x60c3cd,await _0x5109a6(_0x74c37b,_0x424efe,void 0x0),pn);}catch(_0x33f467){if(!_0x4fdd50(_0x33f467))throw _0x33f467;console[_0x8b0cdb(0x231)](_0x33f467[_0x8b0cdb(0x267)]),process['exit'](0x1);}}async function ln(_0x40fea1,_0x1f73d3){const _0x1cbea1=_0x5c83f1;let _0x5e1659;try{_0x5e1659=_0x40fea1&&_0x40fea1!=='-'?_0x409956[_0x1cbea1(0x298)](_0x2213bb[_0x1cbea1(0x241)](_0x40fea1),'utf-8'):await j(_0x40fea1,process[_0x1cbea1(0x130)]);}catch(_0x59cd4b){console[_0x1cbea1(0x231)](_0x1f73d3+_0x1cbea1(0x192)+_0x59cd4b[_0x1cbea1(0x267)]+').'),process[_0x1cbea1(0x186)](0x2);}return _0x5e1659||(console[_0x1cbea1(0x231)](_0x1f73d3+_0x1cbea1(0x120)+_0x1f73d3+_0x1cbea1(0x2a9)),process['exit'](0x2)),Ae(_0x5e1659,_0x1f73d3,_0x1cbea1(0x1d6));}function Ae(_0x2f54c4,_0x19c7f1,_0x38c20c){const _0x1f308a=_0x5c83f1;let _0x4551b8;try{_0x4551b8=JSON[_0x1f308a(0x2b0)](_0x2f54c4);}catch(_0x52ba20){console['error'](_0x19c7f1+':\x20'+_0x38c20c+_0x1f308a(0x11d)+_0x52ba20[_0x1f308a(0x267)]+').'),process[_0x1f308a(0x186)](0x2);}return(typeof _0x4551b8!=_0x1f308a(0x1da)||_0x4551b8===null||Array['isArray'](_0x4551b8))&&(console['error'](_0x19c7f1+':\x20'+_0x38c20c+_0x1f308a(0x1e4)),process['exit'](0x2)),_0x4551b8;}function $e(_0x4dbf06,_0x55600a){const _0x269533=_0x5c83f1;let _0x333b69;try{_0x333b69=_0x409956[_0x269533(0x298)](_0x2213bb[_0x269533(0x241)](_0x4dbf06),'utf-8');}catch(_0x4b115a){console[_0x269533(0x231)](_0x55600a+_0x269533(0x1cc)+_0x4b115a['message']+').'),process[_0x269533(0x186)](0x2);}return Ae(_0x333b69,_0x55600a,_0x269533(0x139));}async function cn(_0xea852e){const _0x430ac8=_0x5c83f1;_0xea852e[_0x430ac8(0x19a)]===void 0x0&&(console[_0x430ac8(0x231)]('complete\x20needs\x20--json-schema\x20<file>:\x20delegate-cli\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22.'),process[_0x430ac8(0x186)](0x2));let _0x2c0481=$e(_0xea852e[_0x430ac8(0x19a)],_0x430ac8(0x2b1)),_0x159f46=(await j(_0xea852e[_0x430ac8(0x183)],process[_0x430ac8(0x130)]))[_0x430ac8(0x135)]();_0x159f46||(console[_0x430ac8(0x231)]('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:_0x26c05b}=await v(_0xea852e);try{let _0x2721fc=await _0x4d1948(_0x26c05b,{'prompt':_0x159f46,'jsonSchema':_0x2c0481,'model':_0xea852e['model']||process.env.MODEL||_0x4aa244,..._0xea852e['sessionId']!==void 0x0&&{'sessionId':_0xea852e[_0x430ac8(0x2a7)]}},void 0x0);u(_0xea852e,_0x2721fc,_0x29eb38=>{const _0x14e48d=_0x430ac8;process[_0x14e48d(0x220)][_0x14e48d(0x1e0)](JSON['stringify'](_0x29eb38['structured'],null,0x2)+'\x0a');});}catch(_0x3570b7){if(!_0x2d42b0(_0x3570b7))throw _0x3570b7;console['error'](_0x3570b7[_0x430ac8(0x267)]),process['exit'](0x1);}}function Y(_0x8d33c5){const _0x276e0e=_0x5c83f1;process[_0x276e0e(0x220)][_0x276e0e(0x1e0)](_0x276e0e(0x173)+_0x8d33c5[_0x276e0e(0x1c0)]+'\x20('+_0x8d33c5['model_version']+_0x276e0e(0x13e)+_0x8d33c5[_0x276e0e(0x296)][_0x276e0e(0x16c)]+_0x276e0e(0x1ec));}function dn(_0x57e137){const _0x3f12ff=_0x5c83f1;Y(_0x57e137);for(let _0x4a9b13 of Object['keys'](_0x57e137[_0x3f12ff(0x245)])){let _0x45fb74=_0x57e137[_0x3f12ff(0x245)][_0x4a9b13],_0x5d3ad4=_0x45fb74['type']===_0x3f12ff(0x25e)?'probability\x20'+_0x45fb74[_0x3f12ff(0x25e)][_0x3f12ff(0x1e5)](0x2):_0x45fb74[_0x3f12ff(0x1d3)]===_0x3f12ff(0x19e)?_0x3f12ff(0x18d)+_0x45fb74[_0x3f12ff(0x19e)]+_0x3f12ff(0x138)+_0x45fb74[_0x3f12ff(0x1ee)][_0x3f12ff(0x1e5)](0x2)+')':_0x3f12ff(0x169)+_0x45fb74[_0x3f12ff(0x1d1)][_0x3f12ff(0x1e5)](0x2)+_0x3f12ff(0x138)+_0x45fb74[_0x3f12ff(0x1ee)]['toFixed'](0x2)+')';process[_0x3f12ff(0x220)][_0x3f12ff(0x1e0)]('\x20\x20'+_0x4a9b13+':\x20'+_0x5d3ad4+'\x0a');}}function un(_0x47d87f){const _0x335c08=_0x5c83f1;Y(_0x47d87f),_0x47d87f['results'][_0x335c08(0x15d)]((_0x3bc6e0,_0xdd43c)=>{const _0x337889=_0x335c08;process[_0x337889(0x220)]['write']('\x20\x20'+(_0xdd43c+0x1)+'.\x20'+_0x3bc6e0['id']+'\x20\x20'+_0x3bc6e0['score']['toFixed'](0x3)+'\x20\x20(input\x20#'+_0x3bc6e0[_0x337889(0x25a)]+')\x0a');});}function pn(_0x16afa0){const _0x32ad54=_0x5c83f1;Y(_0x16afa0),process['stdout']['write'](_0x32ad54(0x1f4)+_0x16afa0[_0x32ad54(0x171)]+'\x0a');for(let _0x549fa8 of _0x16afa0[_0x32ad54(0xfb)])process[_0x32ad54(0x220)][_0x32ad54(0x1e0)]('\x20\x20'+_0x549fa8['id']+':\x20'+_0x549fa8[_0x32ad54(0x270)]+_0x32ad54(0x138)+_0x549fa8['confidence'][_0x32ad54(0x1e5)](0x2)+')\x0a');}async function mn(_0x8746f5){const _0x2100bc=_0x5c83f1;let _0x1f45ff=_0x8746f5[_0x2100bc(0x183)]['trim']();_0x1f45ff||(console[_0x2100bc(0x231)](_0x2100bc(0x198)),process['exit'](0x2));let {client:_0x4ca7a3}=await v(_0x8746f5);try{let _0x5d3186=_0x1f45ff==='-'?{'data':await fn(process[_0x2100bc(0x130)])}:_0x1f45ff;u(_0x8746f5,await _0xe1712(_0x4ca7a3,_0x5d3186,void 0x0),_0x78cdad=>{const _0x4bb76b=_0x2100bc;process[_0x4bb76b(0x220)]['write'](_0x78cdad[_0x4bb76b(0x12b)]+'\x0a');});}catch(_0x2dd39f){if(_0x52abfd(_0x2dd39f)&&(console['error'](_0x2dd39f['message']),process[_0x2100bc(0x186)](_0x2dd39f[_0x2100bc(0xf7)]===void 0x0?0x2:0x1)),typeof _0x2dd39f?.[_0x2100bc(0x126)]!='string')throw _0x2dd39f;console[_0x2100bc(0x231)](_0x2100bc(0x234)+_0x1f45ff+'\x20('+_0x2dd39f[_0x2100bc(0x267)]+').'),process[_0x2100bc(0x186)](0x2);}}async function fn(_0xb92baa){const _0x4806ee=_0x5c83f1;let _0x42df66=[];for await(let _0x4d3ceb of _0xb92baa)_0x42df66[_0x4806ee(0x152)](Buffer[_0x4806ee(0x24e)](_0x4d3ceb));return Buffer[_0x4806ee(0x11f)](_0x42df66);}var ce=[_0x5c83f1(0x23d),_0x5c83f1(0x261),_0x5c83f1(0x14d),_0x5c83f1(0x111),'claim',_0x5c83f1(0x2b1),'accept',_0x5c83f1(0x112),_0x5c83f1(0x252),'delete'],de={'list':_0x5c83f1(0x2ab),'pending':_0x5c83f1(0x23b),'show':_0x5c83f1(0x284),'create':_0x5c83f1(0x1d0),'claim':_0x5c83f1(0x1e3),'complete':_0x5c83f1(0x28a),'accept':'delegations\x20accept\x20<delegation-id>','dismiss':_0x5c83f1(0x1c1),'cancel':_0x5c83f1(0x165),'delete':'delegations\x20delete\x20<delegation-id>'};async function gn(_0x56c2aa){const _0x4b7ef3=_0x5c83f1;let [_0x5af4a1='',_0x3e2c41='',..._0x59a25f]=_0x56c2aa[_0x4b7ef3(0x272)];ce[_0x4b7ef3(0x2da)](_0x5af4a1)||(console['error']((_0x5af4a1?_0x4b7ef3(0x2af)+_0x5af4a1+'.\x20':'')+_0x4b7ef3(0x248)+ce['join'](_0x4b7ef3(0x222))+'.'),process[_0x4b7ef3(0x186)](0x2));let _0x754a27=_0x5af4a1;_0x754a27!==_0x4b7ef3(0x111)&&(_0x56c2aa[_0x4b7ef3(0x1e8)]!==void 0x0||_0x56c2aa[_0x4b7ef3(0x17f)]!==void 0x0||_0x56c2aa[_0x4b7ef3(0x2a7)]!==void 0x0)&&(console[_0x4b7ef3(0x231)](_0x4b7ef3(0x178)),process[_0x4b7ef3(0x186)](0x2));let _0x36b9b2=(_0x754a27===_0x4b7ef3(0x111)?_0x56c2aa[_0x4b7ef3(0x272)]['slice'](0x1):_0x59a25f)['join']('\x20')[_0x4b7ef3(0x135)](),_0x293807=_0x754a27===_0x4b7ef3(0x111)||_0x754a27==='complete';(_0x754a27!==_0x4b7ef3(0x111)&&!_0x3e2c41||(_0x293807?!_0x36b9b2:_0x36b9b2)||_0x754a27===_0x4b7ef3(0x111)&&!_0x56c2aa[_0x4b7ef3(0x2a7)])&&(console[_0x4b7ef3(0x231)](_0x4b7ef3(0x133)+de[_0x754a27]),process[_0x4b7ef3(0x186)](0x2));let _0x48a928=_0x293807&&_0x36b9b2==='-'?(await j('-',process['stdin']))[_0x4b7ef3(0x135)]():_0x36b9b2;_0x293807&&!_0x48a928&&(console[_0x4b7ef3(0x231)](_0x4b7ef3(0x133)+de[_0x754a27]+_0x4b7ef3(0x239)),process[_0x4b7ef3(0x186)](0x2));let {client:_0x3fe8c3}=await v(_0x56c2aa);try{await hn(_0x56c2aa,_0x3fe8c3,_0x754a27,_0x3e2c41,_0x48a928);}catch(_0x39fade){if(!_0x286322(_0x39fade))throw _0x39fade;console[_0x4b7ef3(0x231)](_0x39fade[_0x4b7ef3(0x267)]),process['exit'](0x1);}}async function hn(_0x4c3ead,_0x566452,_0x1ebd35,_0x55cafa,_0x58cac8){const _0x5e6f7b=_0x5c83f1;switch(_0x1ebd35){case'list':u(_0x4c3ead,await _0x349bf4(_0x566452,_0x55cafa),yn);return;case _0x5e6f7b(0x261):u(_0x4c3ead,await _0x3c13ed(_0x566452,_0x55cafa),_0x5bf95c=>{const _0x5d5c48=_0x5e6f7b;_0x5bf95c[_0x5d5c48(0x1f5)]&&process[_0x5d5c48(0x220)][_0x5d5c48(0x1e0)]('Claimed\x20from\x20delegation\x20'+_0x5bf95c['delegation']['id']+'\x20('+_0x5bf95c[_0x5d5c48(0x1f5)][_0x5d5c48(0xf7)]+').\x0a'),_0x5bf95c[_0x5d5c48(0x21f)][_0x5d5c48(0x1db)]===0x0&&process[_0x5d5c48(0x282)]['write'](_0x5d5c48(0x108));for(let _0x2b5322 of _0x5bf95c[_0x5d5c48(0x21f)])process['stdout'][_0x5d5c48(0x1e0)]('\x0a'+_0x2b5322['id']+_0x5d5c48(0xf4)+(_0x2b5322[_0x5d5c48(0x172)]??'a\x20colleague')+'\x20\x20'+(_0x2b5322['task']??'')+'\x0a'+(_0x2b5322['result']?.[_0x5d5c48(0x190)]??'')+'\x0a');_0x5bf95c[_0x5d5c48(0x21f)][_0x5d5c48(0x1db)]>0x0&&process[_0x5d5c48(0x282)][_0x5d5c48(0x1e0)](_0x5d5c48(0x159));});return;case _0x5e6f7b(0x14d):u(_0x4c3ead,await _0xa69676(_0x566452,_0x55cafa),ue);return;case _0x5e6f7b(0x111):{let _0x431451=await _0x471537(_0x566452,{'sessionId':_0x4c3ead[_0x5e6f7b(0x2a7)],'task':_0x58cac8,..._0x4c3ead[_0x5e6f7b(0x17f)]!==void 0x0&&{'contextSummary':_0x4c3ead[_0x5e6f7b(0x17f)]},..._0x4c3ead['delegateTo']!==void 0x0&&{'recipient':_0x4c3ead[_0x5e6f7b(0x1e8)]}});u(_0x4c3ead,_0x431451,_0x126849=>{const _0xb9b3ef=_0x5e6f7b;_0x126849[_0xb9b3ef(0x22c)]?process[_0xb9b3ef(0x220)][_0xb9b3ef(0x1e0)](_0xb9b3ef(0x1d2)+_0x126849[_0xb9b3ef(0xea)]+'\x20to\x20'+_0x126849['assignedUser'][_0xb9b3ef(0x281)]+'\x20<'+_0x126849[_0xb9b3ef(0x22c)][_0xb9b3ef(0x141)]+_0xb9b3ef(0x256)):process[_0xb9b3ef(0x220)]['write'](_0xb9b3ef(0x22f)+_0x126849[_0xb9b3ef(0xea)]+'.\x20Share:\x20'+_0x126849[_0xb9b3ef(0x1bf)]+'\x0a');});return;}case'claim':{let _0x2a86a4=await _0x18ea23(_0x566452,_0x55cafa);u(_0x4c3ead,_0x2a86a4,_0x814689=>{const _0x18ecf7=_0x5e6f7b;ue(_0x814689),process['stdout'][_0x18ecf7(0x1e0)](_0x18ecf7(0x19f)+_0x814689[_0x18ecf7(0x2a7)]+'\x0a'),process[_0x18ecf7(0x282)][_0x18ecf7(0x1e0)](_0x18ecf7(0x102)+_0x814689[_0x18ecf7(0x2a7)]+'\x20\x22<prompt>\x22\x0aAnswer\x20with:\x20delegate-cli\x20delegations\x20complete\x20'+_0x814689[_0x18ecf7(0xea)]+'\x20\x22<answer>\x22\x0a');});return;}case'complete':{let {alreadyCompleted:_0x58fe1c}=await _0xcfd155(_0x566452,_0x55cafa,{'content':_0x58cac8});u(_0x4c3ead,{'delegationId':_0x55cafa,'alreadyCompleted':_0x58fe1c},_0x540243=>{const _0x926c37=_0x5e6f7b;process[_0x926c37(0x220)][_0x926c37(0x1e0)]((_0x540243[_0x926c37(0x21d)]?_0x926c37(0x28d):'Answered')+_0x926c37(0x1cd)+_0x540243[_0x926c37(0xea)]+'.\x0a');});return;}case'accept':{let _0x4c46d4=await _0x2a1d04(_0x566452,_0x55cafa);u(_0x4c3ead,{'delegationId':_0x55cafa,..._0x4c46d4},_0x18c103=>{const _0x5dfce9=_0x5e6f7b;process[_0x5dfce9(0x220)][_0x5dfce9(0x1e0)]((_0x18c103['alreadyAccepted']?'Already\x20accepted':'Accepted')+'\x20delegation\x20'+_0x18c103['delegationId']+'.\x0a');});return;}default:{let _0x187ea0={'dismiss':_0x4b3331,'cancel':_0x360ce0,'delete':_0x3d34e9}[_0x1ebd35];await _0x187ea0(_0x566452,_0x55cafa);let _0x583758={'dismiss':_0x5e6f7b(0x19c),'cancel':_0x5e6f7b(0x2cf),'delete':_0x5e6f7b(0x274)}[_0x1ebd35];u(_0x4c3ead,{'delegationId':_0x55cafa,[_0x583758]:!0x0},()=>{const _0x5b465a=_0x5e6f7b;process[_0x5b465a(0x220)][_0x5b465a(0x1e0)](''+_0x583758[0x0][_0x5b465a(0x110)]()+_0x583758['slice'](0x1)+_0x5b465a(0x1cd)+_0x55cafa+'.\x0a');});}}}function yn(_0x346417){const _0x2bf04b=_0x5c83f1;if(_0x346417[_0x2bf04b(0x1db)]===0x0){process[_0x2bf04b(0x282)][_0x2bf04b(0x1e0)](_0x2bf04b(0x1b9));return;}process['stdout'][_0x2bf04b(0x1e0)]('ID'[_0x2bf04b(0x13c)](0x24)+'\x20\x20'+_0x2bf04b(0x2bb)['padEnd'](0x9)+'\x20\x20'+_0x2bf04b(0x216)['padEnd'](0x18)+'\x20\x20TASK\x0a');for(let _0x4a0415 of _0x346417)process[_0x2bf04b(0x220)]['write'](_0x4a0415['id'][_0x2bf04b(0x13c)](0x24)+'\x20\x20'+_0x4a0415[_0x2bf04b(0xf7)][_0x2bf04b(0x13c)](0x9)+'\x20\x20'+(_0x4a0415[_0x2bf04b(0x172)]??'-')[_0x2bf04b(0x13c)](0x18)+'\x20\x20'+(_0x4a0415[_0x2bf04b(0x1a2)]??'')+'\x0a');}function ue(_0x2c63d0){const _0x15d811=_0x5c83f1;process[_0x15d811(0x220)]['write'](_0x15d811(0x2d8)+(_0x2c63d0['sourceUserEmail']??'-')+'\x0a'),_0x2c63d0[_0x15d811(0x2d1)]&&process[_0x15d811(0x220)][_0x15d811(0x1e0)](_0x15d811(0x19f)+_0x2c63d0[_0x15d811(0x2d1)]+'\x0a'),process[_0x15d811(0x220)][_0x15d811(0x1e0)](_0x15d811(0x1e6)+(_0x2c63d0[_0x15d811(0x1a2)]??'-')+'\x0a'),_0x2c63d0[_0x15d811(0x17f)]&&process[_0x15d811(0x220)][_0x15d811(0x1e0)]('\x0a'+_0x2c63d0[_0x15d811(0x17f)]+'\x0a\x0a');}async function wn(_0x15581e){const _0x5bebe6=_0x5c83f1;_0x15581e['prompt'][_0x5bebe6(0x135)]()||(console['error'](_0x5bebe6(0x2d2)),process[_0x5bebe6(0x186)](0x2));let {client:_0x3ca175}=await v(_0x15581e),_0x114f48;try{_0x114f48=await _0x5601ff(_0x3ca175,_0x15581e[_0x5bebe6(0x183)]);}catch(_0x27dc24){if(!_0x286322(_0x27dc24))throw _0x27dc24;console[_0x5bebe6(0x231)](_0x27dc24[_0x5bebe6(0x267)]),process[_0x5bebe6(0x186)](0x1);}u(_0x15581e,_0x114f48,_0x56718f=>{const _0x2a40c0=_0x5bebe6;_0x56718f['length']===0x0&&process[_0x2a40c0(0x282)]['write']('No\x20one\x20matches\x20\x22'+_0x15581e['prompt'][_0x2a40c0(0x135)]()+_0x2a40c0(0x11a));for(let _0x50bc04 of _0x56718f)process[_0x2a40c0(0x220)]['write'](_0x50bc04['email']['padEnd'](0x20)+'\x20\x20'+_0x50bc04['displayName']+'\x0a');});}async function kn(_0x1b8705){const _0x2afb63=_0x5c83f1;_0x1b8705[_0x2afb63(0x299)]==='localhost'&&(console['error'](_0x2afb63(0x2b5)),process['exit'](0x2));let _0x233445=M(_0x238e31()),_0x5df009=_0x1b8705['skipEnvCheck'];if(_0x1b8705[_0x2afb63(0x299)]){let _0x28dec4=_0x1b8705['env'];await _0x2f5019({'env':_0x28dec4,'tenant':_0x1b8705[_0x2afb63(0x193)]??G(_0x233445,_0x45cc04[_0x28dec4]),'skipEnvCheck':_0x5df009});return;}let _0x472a60=_0x1b8705[_0x2afb63(0x17a)]??ve();if(_0x472a60){await _0x2f5019({'baseUrl':_0x472a60,'tenant':_0x1b8705[_0x2afb63(0x193)]??G(_0x233445,_0x472a60),'skipEnvCheck':_0x5df009});return;}if(_0x233445?.[_0x2afb63(0x166)]){await _0x2f5019({'baseUrl':_0x233445[_0x2afb63(0x166)],'tenant':_0x1b8705[_0x2afb63(0x193)]??_0x233445['tenantName'],'skipEnvCheck':_0x5df009});return;}console[_0x2afb63(0x231)](_0x2afb63(0x249)),process[_0x2afb63(0x186)](0x2);}function _0x58dc(){const _0x48a010=['Use:\x20delegate-cli\x20delegations\x20','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','Cost:\x20\x20\x20$','runnerUrl','includeSubAgents','--task-automation\x20applies\x20to\x20prompts\x20only.','from','--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`delegate-cli\x20sessions`\x20only.','self-hosted\x20(Automation\x20Suite\x20/\x20Dedicated)','\x20—\x20sign\x20out\x20in\x20the\x20Delegate\x20app\x20to\x20clear\x20that.','cancel','oneTurn','.\x20Use:\x20',',\x20got\x20','>.\x0a','isError','catch','1441VZPsWh','index','Session:\x20\x20\x20\x20\x20\x20','cwd','min','probability','Tenant:\x20\x20\x20\x20\x20\x20\x20','options','pending','delegate-cli','--cartographer','interopPath','Numbers,\x20separated\x20by\x20commas\x20(Enter\x20to\x20skip):\x20','an\x20email\x20address\x20or\x20name','message','readLine','No\x20turn\x20','slice','65xiTiZt','add',',\x20whose\x20tenant\x20is\x20chosen\x20in\x20the\x20app.\x20Run\x20`delegate-cli\x20login\x20--env\x20<env>`\x20for\x20a\x20CLI\x20login\x20of\x20your\x20own.','byoWarning','7fPgJHM','verdict','total_prompt_tokens','operands','floor','deleted','structuredError','bucket','--env','round','--turn','\x20active\x20days','total_sessions','close','skipEnvCheck','getSessionId','noMemory','cleanup','displayName','stderr','bundledSkillsPath','delegations\x20show\x20<delegation-id|delegate://delegation/…>','\x27\x20is\x20empty.','):\x0a\x0a','--attach:\x20no\x20such\x20file\x20or\x20folder:\x20','--to\x20and\x20--summary\x20apply\x20to\x20`delegate-cli\x20delegations\x20create`\x20only.','split','delegations\x20complete\x20<delegation-id>\x20\x22<answer>\x22|-','rerank','subFields','Already\x20answered','models_breakdown','data','--skip-env-check\x20applies\x20to\x20`delegate-cli\x20login`\x20only.','subcommand','a\x20session\x20id','total_token_units','a\x20directory\x20path','now','usage','Auth\x20comes\x20from\x20AUTH_TOKEN/TENANT_ID/ORG_ID\x20—\x20set\x20TENANT_ID\x20and\x20TENANT_SLUG\x20to\x20change\x20the\x20tenant.','readFileSync','env','sessions','effort','--worker-id','isInteger','thinking','--summary','.\x20Use\x20alpha\x20|\x20staging\x20|\x20production\x20|\x20localhost.','Removed\x20','Tenants\x20of\x20','--days\x20applies\x20to\x20`delegate-cli\x20usage\x20activity|daily`\x20only.','alpha','\x20applies\x20to\x20prompts\x20and\x20to\x20these\x20commands\x20only:\x20','Last\x20','sessionId','\x20or\x20your\x20own\x20answer','\x20<file.json>,\x20or\x20-\x20to\x20read\x20stdin.','Missing\x20prompt.\x20Pass\x20it\x20as\x20an\x20argument,\x20pipe\x20it\x20via\x20stdin,\x20or\x20run\x20`delegate-cli\x20--help`.','delegations\x20list\x20<backend-project-id>',']\x20Backend\x20URL:\x20','No\x20CLI\x20login\x20found.\x20Note:\x20the\x20CLI\x20is\x20currently\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20','daily_usage','Unknown\x20delegations\x20action:\x20','parse','complete','period_end','default','\x20(resume\x20with\x20--session\x20','--env\x20localhost\x20has\x20no\x20OAuth\x20flow;\x20pick\x20alpha,\x20staging,\x20or\x20production.','an\x20effort\x20tier','verbose','auth','--session\x20applies\x20to\x20the\x20`delegate-cli\x20usage`\x20summary\x20only.','prompt_tokens','STATUS','some','--tenant\x20requires\x20a\x20tenant\x20name.','\x20days:\x20','Invalid\x20--effort:\x20','setPrompt','isArray','host','\x20-\x20','\x20days.\x0a','Input\x20closed\x20before\x20the\x20question\x20was\x20answered.','userinput','--help','transcribe','max','a\x20number','No\x20sessions\x20on\x20page\x20','erase','fork','print','cancelled','verify','sourceTitle','Usage:\x20delegate-cli\x20org-users\x20<name\x20or\x20email\x20prefix>','limit_enabled','session_consumed_pu','noConnections','skip','model_id','From\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20(type\x20your\x20own)','includes','\x20this\x20month','existsSync','delegationId','Enter\x20numbers\x20from\x201\x20to\x20','\x20min)','\x20(cancel\x20with:\x20delegate-cli\x20sessions\x20cancel\x20','estimated_cost_usd','a\x20format\x20(','\x20(optional)','kind','done','outputFormat','\x20\x20from\x20','Tenant:\x20','Interop\x20stopped\x20(if\x20it\x20was\x20running).','status','\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).','backendUrl','turn_start','results','active_days','join','turnId','token_units','endQuestions','title','Work\x20on\x20it\x20with:\x20delegate-cli\x20--session\x20','Enter\x20one\x20number\x20from\x201\x20to\x20','--session','buckets','optional','✓\x20Done\x0a','No\x20answers\x20awaiting\x20acceptance.\x0a','):\x20','multiSelect','org-users','activity','exitCode','rename','numeric','toUpperCase','create','dismiss','--to','total_completion_tokens','locked','2288934ghIyYb','Structured\x20output\x20failed:\x20','parentSessionId','sendMessage','\x22.\x0a','name','utf-8','\x20is\x20not\x20valid\x20JSON\x20(','SIGINT','concat','\x20needs\x20a\x20JSON\x20request:\x20delegate-cli\x20','stream-json','days','\x20not\x20found,\x20has\x20no\x20messages','shift','Usage:\x20delegate-cli\x20sessions\x20[list]\x20[--page\x20N]\x20[--limit\x20N]\x20[--include-subagents]','code','updatedAt','replace','mode','whoami','text','2930jEYQoJ','log','\x20(Enter\x20to\x20skip):\x20','low','stdin','toString','restore','Usage:\x20delegate-cli\x20','--backend','trim','step','monthly_limit_usd','\x20(confidence\x20','the\x20JSON\x20schema','--authority','logout','padEnd',';\x20the\x20saved\x20login\x20still\x20uses\x20','),\x20','argv','Date\x20\x20\x20\x20\x20\x20\x20\x20Token\x20units\x20\x20Prompt\x20tokens\x20\x20Completion\x20tokens','email','padStart','auth.json','93NnTbyq','tenantId','extra_pool_consumed_pu','\x20not\x20found.','Unknown\x20flag:\x20','abort','from\x201\x20to\x20','taskAutomation','limit','show','136975uisEvV','lastType','off','The\x20turn\x20was\x20cancelled.','push','Invalid\x20--env:\x20','unknown\x20slug','--no-security','toISOString','--working-dir','Renamed\x20','\x0aAccept\x20one\x20with:\x20delegate-cli\x20delegations\x20accept\x20<id>\x0a','\x20is\x20required.\x0a','resume','566109cVnqgn','forEach','Usage:\x20delegate-cli\x20sessions\x20','questions','attachments','--include-subagents','🔧\x20','The\x20saved\x20CLI\x20login\x20could\x20not\x20be\x20refreshed.\x20Run\x20`delegate-cli\x20login`\x20again.',',\x20or\x20holds\x20no\x20message\x20','delegations\x20cancel\x20<delegation-id>','baseUrl','description','.\x20Use\x20`delegate-cli\x20usage`,\x20`usage\x20activity`\x20or\x20`usage\x20daily`.','score\x20','77250dobHiJ','unknown','total_tokens','AUTH_TOKEN_FILE\x20\x27','--no-memory','deployment','--keep-alive','rubric_version','assignedUserEmail','Model\x20','Enter\x20a\x20number\x20','--json-schema\x20applies\x20to\x20prompts\x20and\x20to\x20`delegate-cli\x20complete`\x20only.','tokenExpiresAt','--preload-skill','--to,\x20--summary\x20and\x20--session\x20apply\x20to\x20`delegate-cli\x20delegations\x20create`\x20only.','[env=','url','keys','--print','lockReason','period_days','contextSummary','.aria','tool_call','total_cost_usd','prompt','Enter\x20sends\x20a\x20message.\x20/exit\x20or\x20EOF\x20exits;\x20Ctrl+C\x20stops\x20and\x20exits.\x0a','login','exit','More:\x20delegate-cli\x20sessions\x20--page\x20','destroy','Cartographer:\x20','initialize','intro','entries','choice\x20','version','delegations','content','\x20from\x20',':\x20cannot\x20read\x20the\x20request\x20(','tenant','quiet','expiresAt','workingDirectory','\x20must\x20be\x20a\x20whole\x20number\x20','transcribe\x20needs\x20audio:\x20delegate-cli\x20transcribe\x20<file>,\x20or\x20-\x20to\x20read\x20stdin.','items','jsonSchemaPath','hide','dismissed','/exit','choice','Session\x20\x20\x20\x20\x20\x20\x20','\x20--turn\x20','Invalid\x20--project:\x20\x22','task','finish','--tenant','Unknown\x20usage\x20view:\x20','--days\x20applies\x20to\x20`delegate-cli\x20usage\x20activity|daily`;\x20the\x20summary\x20covers\x20the\x20current\x20month.','removeEventListener','response','Source:\x20\x20\x20\x20\x20\x20\x20','refused','check','--interop','--url','input','end','--page','\x0a🤔\x20','--no-computer-use','Base\x20URL:\x20\x20\x20\x20\x20','ID\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','evaluate','No\x20CLI\x20login\x20found.\x20Run\x20`delegate-cli\x20login\x20--env\x20<alpha|staging|production>`\x20first.','\x20\x20\x20\x20','file','No\x20delegations.\x0a','Your\x20answer\x20(Enter\x20to\x20skip):\x20','completion_tokens','noComputerUse','--project','unit','deepLink','model','delegations\x20dismiss\x20<delegation-id>','\x20in\x20progress\x20on\x20session\x20','--json-schema','--turn\x20applies\x20to\x20`delegate-cli\x20sessions\x20cancel`\x20only.','organizationId','No\x20models\x20available\x20for\x20this\x20product/tenant.\x0a','then','a\x20JSON\x20schema\x20file','bind','staging','UiPath\x20Cloud',':\x20cannot\x20read\x20the\x20JSON\x20schema\x20(','\x20delegation\x20','label','detail','delegations\x20create\x20--session\x20<id>\x20[--to\x20<email|name>]\x20[--summary\x20<text>]\x20\x22<task>\x22|-','score','Delegated\x20','type','rejection','orgLogicalName','the\x20request','Your\x20answer,\x20as\x20text\x20(the\x20CLI\x20attaches\x20no\x20files;\x20Enter\x20to\x20skip):\x20','Switch\x20with:\x20delegate-cli\x20tenant\x20<name>\x0a','.\x20Use\x20','object','length','\x20(current)','workerId','onEvent','4672nmqQTR','write','\x20of\x20session\x20','once','delegations\x20claim\x20<delegation-id|delegate://delegation/…>','\x20must\x20be\x20a\x20JSON\x20object.','toFixed','Task\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Could\x20not\x20check\x20BYO\x20model\x20warnings:\x20','delegateTo','\x20of\x20a\x20$','headless','spawn','\x20tokens\x0a','\x20sessions\x20on\x20','confidence','high','5498964qKaoHN','total_quota_pu','models','No\x20structured\x20output:\x20the\x20turn\x20failed\x20(','Rubric\x20','delegation','origin','\x20\x20\x20\x20Not\x20available\x20on\x20this\x20plan','--output-format\x20','stack','\x20prompt,\x20','Organization:\x20','Continue\x20it\x20with:\x20delegate-cli\x20--session\x20','\x20\x22<prompt>\x22\x0a','a\x20file\x20path','Licensing:\x20\x20\x20\x20no\x20licensing\x20quota\x20applies','page','Cancel\x20requested\x20for\x20turn\x20','stringify','Licensing:\x20\x20\x20\x20',']\x20(Enter\x20for\x20','Delegation\x20\x20\x20\x20','\x20\x20\x20\x20BYO\x20warning:\x20','startsWith','Unknown\x20sessions\x20action:\x20',':\x20bucket\x20number\x20(Enter\x20to\x20leave\x20out):\x20','--verbose','\x20into\x20','11232PneFFz','Owner\x20\x20\x20\x20\x20\x20\x20\x20\x20','UIPATH_BASE_URL\x20is\x20unusable.\x20','Usage:\x20delegate-cli\x20sessions\x20cancel\x20<session-id>\x20--turn\x20<turn-id>','session_start','--model','package.json','all','projectId','You>\x20','ASSIGNEE','Number','help','--version',')\x20—\x20saved\x20to\x20','delete','--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`delegate-cli\x20sessions\x20[list]`\x20only.','alreadyCompleted','No\x20usage\x20in\x20the\x20last\x20','pendingResults','stdout','isSafeInteger','\x20|\x20','Title\x20\x20\x20\x20\x20\x20\x20\x20\x20','keepAlive','160FNIBaV','Deleted\x20session\x20','signal','xhigh','Something\x20else','map','tenantName','assignedUser','%\x20of\x20','\x20(estimated\x20$','Created\x20delegation\x20','\x20<id>','error','Session\x20','preloadSkills','transcribe:\x20cannot\x20read\x20','\x0a⚠️\x20\x20Auth\x20expired.\x20Opening\x20browser\x20to\x20re-login…\x0a','Turn:\x20','isTTY','Tenant\x20not\x20switched:\x20could\x20not\x20write\x20','\x20(stdin\x20was\x20empty)','\x20to\x20','delegations\x20pending\x20<session-id>','\x20(in\x20','list','test','localhost','filter','resolve','typed','isDesktopFallback','--quiet','answers','monthly_spend_usd','header'];_0x58dc=function(){return _0x48a010;};return _0x58dc();}function G(_0x582623,_0x389b1c){const _0x137b67=_0x5c83f1;return _0x582623?.[_0x137b67(0x166)]&&bn(_0x582623['baseUrl'],_0x389b1c)?_0x582623[_0x137b67(0x22b)]:void 0x0;}function bn(_0x5f1e37,_0x1f2b22){const _0x2469dd=_0x5c83f1;try{return new URL(_0x5f1e37)[_0x2469dd(0x1f6)]===new URL(_0x1f2b22)['origin'];}catch{return!0x1;}}async function Sn(_0x50d1e2){const _0xbe2e7c=_0x5c83f1;Q()&&(console[_0xbe2e7c(0x231)](_0xbe2e7c(0x297)),process[_0xbe2e7c(0x186)](0x2));let _0x8fae0f=await _0x5d3c24();if(_0x8fae0f||(console['error'](vn()),process[_0xbe2e7c(0x186)](0x2)),_0x50d1e2[_0xbe2e7c(0x135)]()){let _0x10e835=await _0x1c990a(_0x8fae0f,_0x50d1e2);_0x3c12c7(_0x10e835)||(console['error'](_0xbe2e7c(0x238)+_0x238e31()+_0xbe2e7c(0x13d)+_0x8fae0f[_0xbe2e7c(0x22b)]+'.'),process[_0xbe2e7c(0x186)](0x1)),console[_0xbe2e7c(0x12d)](_0xbe2e7c(0xf5)+_0x10e835['tenantName']+'\x20('+_0x10e835['tenantId']+_0xbe2e7c(0x21a)+_0x238e31());return;}An(await _0x517f78(_0x8fae0f),_0x8fae0f);}function vn(){const _0x1e6f5f=_0x5c83f1;if(_0x409956[_0x1e6f5f(0x2dc)](_0x238e31()))return _0x1e6f5f(0x163);let _0x1e2ba8=K();return M(_0x1e2ba8)?'No\x20CLI\x20login\x20to\x20switch:\x20the\x20CLI\x20is\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20'+_0x1e2ba8+_0x1e6f5f(0x26d):_0x1e6f5f(0x1b6);}function An(_0x329b7e,_0x3be9cf){const _0x4e07f8=_0x5c83f1;let _0x4abef4=_0x329b7e[_0x4e07f8(0x22a)](_0x2683d6=>_0x2683d6['id']===_0x3be9cf['tenantId']?'*\x20'+_0x2683d6[_0x4e07f8(0x11b)]+_0x4e07f8(0x1dc):'\x20\x20'+_0x2683d6[_0x4e07f8(0x11b)]);process[_0x4e07f8(0x220)][_0x4e07f8(0x1e0)](_0x4e07f8(0x2a2)+(_0x3be9cf['orgLogicalName']??_0x3be9cf[_0x4e07f8(0x1c5)])+':\x0a'+_0x4abef4[_0x4e07f8(0xfd)]('\x0a')+'\x0a'),_0x329b7e[_0x4e07f8(0x1db)]>0x1&&process[_0x4e07f8(0x220)][_0x4e07f8(0x1e0)](_0x4e07f8(0x1d8));}function $n(_0x107276){const _0x1bd35e=_0x5c83f1;return _0x107276?.[_0x1bd35e(0x1a8)]?.[_0x1bd35e(0xf7)]===0x191||/401/[_0x1bd35e(0x23e)](String(_0x107276?.['message']??''));}var f={'lastType':null,'quiet':!0x1},Ee=_0xb11d1=>{const _0x2b9e30=_0x5c83f1;switch(_0xb11d1[_0x2b9e30(0x1d3)]){case _0x2b9e30(0x210):_0xb11d1[_0x2b9e30(0x2a7)]&&_0xb11d1[_0x2b9e30(0x2a7)]!==f[_0x2b9e30(0x2a7)]&&(process[_0x2b9e30(0x282)][_0x2b9e30(0x1e0)]('Session:\x20'+_0xb11d1[_0x2b9e30(0x2a7)]+_0x2b9e30(0x2b4)+_0xb11d1[_0x2b9e30(0x2a7)]+')\x0a'),f[_0x2b9e30(0x2a7)]=_0xb11d1[_0x2b9e30(0x2a7)]);break;case _0x2b9e30(0xfa):_0xb11d1['turnId']&&_0xb11d1[_0x2b9e30(0xfe)]!==f[_0x2b9e30(0xfe)]&&(f[_0x2b9e30(0x14f)]!==null&&process[_0x2b9e30(0x282)]['write']('\x0a'),process[_0x2b9e30(0x282)][_0x2b9e30(0x1e0)](_0x2b9e30(0x236)+_0xb11d1[_0x2b9e30(0xfe)]+_0x2b9e30(0xed)+_0xb11d1[_0x2b9e30(0x2a7)]+_0x2b9e30(0x1a0)+_0xb11d1[_0x2b9e30(0xfe)]+')\x0a'),f[_0x2b9e30(0xfe)]=_0xb11d1[_0x2b9e30(0xfe)],f[_0x2b9e30(0x14f)]='turn_start');break;case _0x2b9e30(0x29e):_0xb11d1['content']&&!f['quiet']&&(f['lastType']!==_0x2b9e30(0x29e)&&process[_0x2b9e30(0x282)][_0x2b9e30(0x1e0)](_0x2b9e30(0x1b1)),process[_0x2b9e30(0x282)][_0x2b9e30(0x1e0)](_0xb11d1[_0x2b9e30(0x190)]),f[_0x2b9e30(0x14f)]=_0x2b9e30(0x29e));break;case'tool_call':f[_0x2b9e30(0x14f)]!==null&&process[_0x2b9e30(0x282)]['write']('\x0a'),process[_0x2b9e30(0x282)][_0x2b9e30(0x1e0)](_0x2b9e30(0x162)+(_0xb11d1['toolName']??'tool')+'\x0a'),f['lastType']=_0x2b9e30(0x181);break;case _0x2b9e30(0x267):_0xb11d1['content']&&(f[_0x2b9e30(0x14f)]!==_0x2b9e30(0x267)&&f[_0x2b9e30(0x14f)]!==null&&process[_0x2b9e30(0x220)]['write']('\x0a'),process[_0x2b9e30(0x220)][_0x2b9e30(0x1e0)](_0xb11d1[_0x2b9e30(0x190)]),f[_0x2b9e30(0x14f)]=_0x2b9e30(0x267));break;case'error':f[_0x2b9e30(0x14f)]!==null&&process[_0x2b9e30(0x282)][_0x2b9e30(0x1e0)]('\x0a'),process[_0x2b9e30(0x282)][_0x2b9e30(0x1e0)]('✗\x20'+(_0xb11d1[_0x2b9e30(0x231)]??_0x2b9e30(0x231))+'\x0a'),f[_0x2b9e30(0x14f)]=_0x2b9e30(0x231);break;case _0x2b9e30(0xf2):(f[_0x2b9e30(0x14f)]===_0x2b9e30(0x267)||f[_0x2b9e30(0x14f)]===_0x2b9e30(0x29e))&&process[_0x2b9e30(0x220)][_0x2b9e30(0x1e0)]('\x0a'),process[_0x2b9e30(0x282)][_0x2b9e30(0x1e0)](_0x2b9e30(0x107)),f[_0x2b9e30(0x14f)]=_0x2b9e30(0xf2);break;}};function pe(_0x47253d,_0x1b056b,_0x346ddf,_0x27a821){const _0x2317aa=_0x5c83f1;let _0x106a93=_0x47253d[_0x2317aa(0x1c0)]||process.env.MODEL;return{'backendUrl':_0x346ddf,'auth':_0x1b056b,'enableComputerUse':!_0x47253d['headless']&&!_0x47253d[_0x2317aa(0x1bc)],'autoSpawnInterop':!_0x47253d[_0x2317aa(0x1ea)],'enableConnections':!_0x47253d[_0x2317aa(0x2d5)],'enableSecurity':!_0x47253d['noSecurity'],'keepInteropAlive':_0x47253d['keepAlive'],..._0x27a821[_0x2317aa(0x253)]?{'enableBackgroundCommands':!0x1}:{},..._0x47253d[_0x2317aa(0x27f)]?{'enableMemory':!0x1}:{},..._0x47253d['taskAutomation']?{'enableTaskAutomation':!0x0}:{},..._0x47253d[_0x2317aa(0x233)][_0x2317aa(0x1db)]>0x0?{'preloadSkills':_0x47253d['preloadSkills']}:{},..._0x106a93?{'model':_0x106a93}:{},..._0x47253d['projectId']?{'projectId':_0x47253d['projectId']}:{},..._0x47253d['workingDirectory']?{'workingDirectory':_0x47253d[_0x2317aa(0x196)]}:{},..._0x47253d[_0x2317aa(0x283)]?{'bundledSkillsPath':_0x47253d[_0x2317aa(0x283)]}:{},..._0x47253d[_0x2317aa(0x29b)]?{'effort':_0x47253d['effort']}:{},..._0x47253d[_0x2317aa(0x2a7)]?{'sessionId':_0x47253d['sessionId']}:{},..._0x47253d[_0x2317aa(0x2b7)]?{'verbose':!0x0}:{}};}async function En(_0x85076c){const _0x158c2d=_0x5c83f1;let _0x4e524d=_0x85076c['outputFormat']!=='text',_0x1a1b60=_0x85076c[_0x158c2d(0x19a)]===void 0x0?null:$e(_0x85076c[_0x158c2d(0x19a)],_0x158c2d(0x262)),_0x5511ab=!_0x4e524d&&!_0x1a1b60&&!_0x85076c[_0x158c2d(0x2ce)]&&_0x85076c[_0x158c2d(0x183)]!=='-'&&!!process['stdin']['isTTY']&&!!process['stdout'][_0x158c2d(0x237)],_0x2d98d5=_0x5511ab?_0x85076c[_0x158c2d(0x183)][_0x158c2d(0x135)]():await j(_0x85076c[_0x158c2d(0x183)],process[_0x158c2d(0x130)]);if(!_0x5511ab&&!_0x2d98d5&&(console[_0x158c2d(0x231)](_0x158c2d(0x2aa)),process[_0x158c2d(0x186)](0x2)),!_0x4e524d){await me(_0x85076c,_0x2d98d5,_0x5511ab,null,_0x1a1b60);return;}let _0x91769f=!0x1,_0x2221b6=_0x4b0ebe=>{const _0xedde3c=_0x158c2d;_0x91769f=!0x0,P(_0xc9c5f8(_0x4b0ebe)),(_0x4b0ebe[_0xedde3c(0x257)]||_0x4b0ebe[_0xedde3c(0x275)])&&(process[_0xedde3c(0x10d)]=0x1);},_0xa8c738=Date[_0x158c2d(0x295)]();try{await me(_0x85076c,_0x2d98d5,!0x1,_0x2221b6,_0x1a1b60);}catch(_0x440318){if(_0x91769f)throw _0x440318;process[_0x158c2d(0x282)][_0x158c2d(0x1e0)]((_0x440318 instanceof Error?_0x440318['stack']??_0x440318[_0x158c2d(0x267)]:String(_0x440318))+'\x0a'),_0x2221b6(new _0x4c8a85(_0xa8c738)[_0x158c2d(0x1a3)]({'endedAtMs':Date[_0x158c2d(0x295)](),'usage':[],'error':_0x440318}));}}async function me(_0x13c52d,_0x1c28df,_0x3f654a,_0x32c283,_0x22a719){const _0x123804=_0x5c83f1;f={'lastType':null,'quiet':_0x13c52d['quiet']};let _0x2a9786=new Set(),_0x143598,_0x4d18d2=_0x45a2df=>{const _0x4cd28e=_0x132e;(!_0x32c283||_0x45a2df[_0x4cd28e(0x1d3)]==='session_start'||_0x45a2df['type']==='turn_start')&&(_0x143598??Ee)(_0x45a2df);for(let _0x302f8b of _0x2a9786)_0x302f8b(_0x45a2df);},_0x5e5b7e=await q(),_0x6b5e7c=new _0x2e4841();_0x6b5e7c[_0x123804(0x1de)](_0x4d18d2);let _0x1f3f98=_0x3a54f4(_0x13c52d[_0x123804(0x299)],_0x5e5b7e,_0x13c52d[_0x123804(0xf9)]);z(_0x13c52d[_0x123804(0x299)],_0x13c52d[_0x123804(0xf9)],_0x1f3f98);let _0x567ada={'input':null},_0x309df3=_0x3f654a?Z(()=>_0x567ada['input'],_0x546b4d=>{const _0xb33fa8=_0x123804;process[_0xb33fa8(0x282)]['write'](_0x546b4d);}):null,_0x3d8c64=_0x410565=>_0x309df3?{..._0x410565,'askUser':_0x309df3}:_0x410565,_0x19dba1=_0x3d8c64(pe(_0x13c52d,_0x5e5b7e,_0x1f3f98,{'oneTurn':!_0x3f654a})),_0x2540e6=!0x1,_0x10919e=!0x1,_0x3cba6e,_0x17e5af=()=>_0x3cba6e??=_0x6b5e7c[_0x123804(0x188)](),_0x59be38=()=>{const _0x1e8df2=_0x123804;_0x10919e&&process['exit'](0x82),_0x10919e=!0x0,process[_0x1e8df2(0x282)][_0x1e8df2(0x1e0)]('\x0aStopping…\x20(Ctrl+C\x20again\x20to\x20force\x20exit)\x0a'),_0x2540e6&&_0x6b5e7c[_0x1e8df2(0x252)]()[_0x1e8df2(0x258)](_0x36d4d2=>console[_0x1e8df2(0x231)](_0x36d4d2))[_0x1e8df2(0x1c7)](_0x17e5af)[_0x1e8df2(0x1c7)](()=>process[_0x1e8df2(0x186)](0x82),_0x1ee700=>{const _0x156916=_0x1e8df2;console['error'](_0x1ee700),process[_0x156916(0x186)](0x82);});};process['on'](_0x123804(0x11e),_0x59be38);let _0x35c57a=_0x13c52d[_0x123804(0x160)],_0x49a5fa=async _0x5c4e1d=>{const _0xadb364=_0x123804;let _0x1079d7=_0x35c57a;_0x35c57a=[];let _0xb0b240=()=>_0x6b5e7c[_0xadb364(0x119)](_0x5c4e1d,{'attachments':_0x1079d7});try{return await _0xb0b240();}catch(_0x298212){if(_0x10919e||!$n(_0x298212)||!process['stdin']['isTTY']||_0x13c52d[_0xadb364(0x299)]===_0xadb364(0x23f)||!(_0x13c52d[_0xadb364(0x299)]||_0x5e5b7e[_0xadb364(0x166)]))throw _0x298212;process[_0xadb364(0x282)]['write'](_0xadb364(0x235));let _0x1f4428=_0x6b5e7c[_0xadb364(0x27e)]()??_0x13c52d['sessionId'],_0x1ab0e6=await _0x2f5019(_0x13c52d[_0xadb364(0x299)]?{'env':_0x13c52d['env'],'tenant':G(_0x5e5b7e,_0x45cc04[_0x13c52d[_0xadb364(0x299)]]),'skipEnvCheck':!0x0}:{'baseUrl':_0x5e5b7e[_0xadb364(0x166)],'tenant':_0x5e5b7e['tenantName'],'skipEnvCheck':!0x0}),_0x47854f={'text':'','failed':!0x1,'sessionId':_0x1f4428};return _0x10919e||(_0x2540e6=!0x1,await _0x17e5af(),_0x10919e)?_0x47854f:(_0x6b5e7c=new _0x2e4841(),_0x3cba6e=void 0x0,_0x6b5e7c[_0xadb364(0x1de)](_0x4d18d2),_0x5e5b7e=_0x1ab0e6,await _0x6b5e7c[_0xadb364(0x18a)]({..._0x3d8c64(pe(_0x13c52d,_0x5e5b7e,_0x1f3f98,{'oneTurn':!_0x3f654a})),..._0x1f4428?{'sessionId':_0x1f4428}:{}}),_0x2540e6=!0x0,_0x10919e?_0x47854f:_0xb0b240());}};try{if(await _0x6b5e7c['initialize'](_0x19dba1),_0x2540e6=!0x0,_0x10919e)return;if(_0x3f654a)await xn({'prompt':_0x1c28df,'sendMessage':_0x49a5fa,'onSigint':_0x59be38,'setAnswerInput':_0x2ce5b=>{const _0xd8e6ab=_0x123804;_0x567ada[_0xd8e6ab(0x1ae)]=_0x2ce5b;},'registerEventPrinter':_0x607c27=>(_0x143598=_0x607c27,()=>{_0x143598=void 0x0;})});else{if(_0x32c283||_0x22a719){let _0x48542d=_0x13c52d[_0x123804(0xf3)]===_0x123804(0x121)?_0x44351e=>P(_0x1ba357(_0x44351e)):()=>{},_0x1be93a=await _0x1a7057({'onEvent':_0x18d742=>(_0x2a9786[_0x123804(0x26c)](_0x18d742),()=>{const _0x2b699b=_0x123804;_0x2a9786[_0x2b699b(0x21b)](_0x18d742);}),'sendMessage':_0x4a4986=>_0x49a5fa(_0x4a4986),'getSessionId':()=>_0x6b5e7c[_0x123804(0x27e)](),'getTurnUsageHistory':_0x5c0107=>_0x6b5e7c['getTurnUsageHistory'](_0x5c0107),'complete':_0x44ee6a=>_0x6b5e7c[_0x123804(0x2b1)](_0x44ee6a)},_0x1c28df,void 0x0,_0x48542d,_0x22a719?{'outputSchema':_0x22a719}:void 0x0);_0x32c283?_0x32c283(_0x1be93a):In(_0x1be93a);}else await _0x49a5fa(_0x1c28df);}}catch(_0x118b2b){if(!_0x10919e)throw _0x118b2b;}finally{try{await _0x17e5af();}finally{process[_0x123804(0x150)](_0x123804(0x11e),_0x59be38),_0x10919e&&(process[_0x123804(0x10d)]=0x82);}}}function In(_0xe08574){const _0x7cbca0=_0x5c83f1;_0xe08574[_0x7cbca0(0x275)]?(console[_0x7cbca0(0x231)](_0x7cbca0(0x117)+_0xe08574[_0x7cbca0(0x275)][_0x7cbca0(0x267)]),process[_0x7cbca0(0x10d)]=0x1):_0xe08574[_0x7cbca0(0x257)]?(console[_0x7cbca0(0x231)](_0x7cbca0(0x1f3)+_0xe08574['error']+').'),process[_0x7cbca0(0x10d)]=0x1):process[_0x7cbca0(0x220)]['write'](JSON[_0x7cbca0(0x202)](_0xe08574['structured'],null,0x2)+'\x0a');}function Tn(_0x5309a6,_0x29123d){const _0x91a132=_0x5c83f1;let _0x32b575=process['stdout']['write'][_0x91a132(0x1c9)](process[_0x91a132(0x220)]),_0x393cfa=!0x1;return process[_0x91a132(0x220)]['write']=(..._0x33b09b)=>{if(!_0x393cfa)return _0x32b575(..._0x33b09b);_0x4e443b(_0x29123d,0x0),_0x1d6464(_0x29123d,0x0);let _0xa5b799=_0x32b575(..._0x33b09b);return _0x5309a6['prompt'](!0x0),_0xa5b799;},{'show':()=>{const _0xba0e33=_0x91a132;_0x393cfa=!0x0,_0x5309a6[_0xba0e33(0x183)]();},'hide':()=>{_0x393cfa=!0x1;},'erase':()=>{_0x393cfa&&(_0x4e443b(_0x29123d,0x0),_0x1d6464(_0x29123d,0x0)),_0x393cfa=!0x1;},'restore':()=>{_0x393cfa=!0x1,process['stdout']['write']=_0x32b575;}};}async function xn({prompt:_0x111fae,sendMessage:_0x4ee48f,onSigint:_0x2ddd3a,setAnswerInput:_0x1761ef,registerEventPrinter:_0x38608c}){const _0x18a4b7=_0x5c83f1;let _0x5c6f17=_0x20564f({'input':process[_0x18a4b7(0x130)],'output':process['stderr'],'terminal':!0x0,'prompt':_0x18a4b7(0x215)}),_0x14a124=Tn(_0x5c6f17,process[_0x18a4b7(0x282)]),_0x4e75a0=[],_0x41939a,_0xb0ce33,_0x263fc4,_0x714d6d=!0x1,_0x5f0c38=!0x1,_0x435a73=!0x1,_0x1f6247=Promise[_0x18a4b7(0x241)](),_0xaac696,_0x483b9f=_0x38608c(_0x499207=>{const _0x4b7fe6=_0x18a4b7;_0x499207['type']===_0x4b7fe6(0x210)&&(_0x14a124[_0x4b7fe6(0x2cc)](),_0x1f6247=new Promise(_0xe84bb4=>{_0xaac696=_0xe84bb4;})),Ee(_0x499207),_0x499207[_0x4b7fe6(0x1d3)]===_0x4b7fe6(0xf2)&&(_0xaac696?.(),_0xaac696=void 0x0,!_0x435a73&&!_0x714d6d&&_0x14a124[_0x4b7fe6(0x14d)]());}),_0x580915=()=>{const _0x501aec=_0x18a4b7;_0x5f0c38=!0x0,_0xaac696?.(),_0x2ddd3a(),_0x5c6f17[_0x501aec(0x27c)]();};_0x5c6f17['on']('line',_0x2d5388=>{const _0x5d0019=_0x18a4b7;_0x263fc4?_0x263fc4(_0x2d5388):_0x41939a?_0x41939a[_0x5d0019(0x152)](_0x2d5388):_0xb0ce33?_0xb0ce33(_0x2d5388):_0x4e75a0[_0x5d0019(0x152)](_0x2d5388);}),_0x5c6f17[_0x18a4b7(0x1e2)](_0x18a4b7(0x27c),()=>{const _0x31202c=_0x18a4b7;_0x714d6d=!0x0,_0x14a124[_0x31202c(0x19b)](),_0x41939a&&!_0x5f0c38&&_0x580915(),_0xb0ce33?.(null);});let _0x3c2f08=()=>_0x4e75a0[_0x18a4b7(0x1db)]>0x0?Promise[_0x18a4b7(0x241)](_0x4e75a0['shift']()):_0x714d6d?Promise[_0x18a4b7(0x241)](null):new Promise(_0x4d8861=>{_0xb0ce33=_0x20067a=>{_0xb0ce33=void 0x0,_0x4d8861(_0x20067a);};});_0x1761ef({'readLine':(_0xcfb8bc,_0x68edab)=>new Promise((_0x34ca1b,_0x368e30)=>{const _0x358bfc=_0x18a4b7;if(_0x714d6d&&!_0x41939a){_0x34ca1b(null);return;}_0x41939a??=[];let _0x38fd9b=_0x41939a[_0x358bfc(0x124)]();if(_0x38fd9b!==void 0x0){_0x34ca1b(_0x38fd9b);return;}let _0xffe571=()=>{const _0x4b2f28=_0x358bfc;_0x263fc4=void 0x0,_0x68edab[_0x4b2f28(0x1a7)](_0x4b2f28(0x149),_0x13abf0),_0x14a124[_0x4b2f28(0x19b)](),_0x5c6f17[_0x4b2f28(0x2c0)](_0x4b2f28(0x215));},_0x13abf0=()=>{const _0xe886ba=_0x358bfc;_0xffe571(),_0x368e30(new Error(_0xe886ba(0x151)));};_0x68edab['addEventListener'](_0x358bfc(0x149),_0x13abf0,{'once':!0x0}),!_0x714d6d&&(_0x263fc4=_0xc37256=>{_0xffe571(),_0x34ca1b(_0xc37256);},_0x5c6f17['setPrompt'](_0xcfb8bc),_0x14a124[_0x358bfc(0x14d)]());}),'endQuestions':()=>{_0x41939a&&_0x4e75a0['push'](..._0x41939a),_0x41939a=void 0x0;}}),_0x5c6f17['on'](_0x18a4b7(0x11e),_0x580915),process[_0x18a4b7(0x282)][_0x18a4b7(0x1e0)](_0x18a4b7(0x184));let _0xadcce5=async _0x46d2ff=>{_0x435a73=!0x0;try{await _0x4ee48f(_0x46d2ff);}finally{_0x435a73=!0x1;}};try{if(_0x111fae&&await _0xadcce5(_0x111fae),_0x5f0c38)return;!_0x714d6d&&!_0xaac696&&_0x14a124[_0x18a4b7(0x14d)]();for(let _0x386df0=await _0x3c2f08();_0x386df0!==null&&(_0x14a124[_0x18a4b7(0x19b)](),!_0x5f0c38);_0x386df0=await _0x3c2f08()){let _0x5422ac=_0x386df0[_0x18a4b7(0x135)]();if(_0x5422ac===_0x18a4b7(0x19d))break;_0x5422ac&&await _0xadcce5(_0x5422ac),!_0x714d6d&&!_0xaac696&&_0x14a124[_0x18a4b7(0x14d)]();}for(;!_0x5f0c38&&_0xaac696;)await _0x1f6247;}finally{_0x1761ef(null),_0x483b9f(),_0x14a124[_0x18a4b7(0x132)](),_0x5c6f17[_0x18a4b7(0x150)]('SIGINT',_0x580915),_0x5c6f17[_0x18a4b7(0x27c)]();}}async function Dn(){const _0x4e7cfa=_0x5c83f1;let _0x359617=Rt(process[_0x4e7cfa(0x13f)][_0x4e7cfa(0x26a)](0x2));if(_0x359617['outputFormat']==='text'){await fe(_0x359617);return;}let _0x3b5681=Pt();try{await fe(_0x359617);}finally{_0x3b5681();}}async function fe(_0x462e05){const _0x19fcc2=_0x5c83f1;if(_0x462e05[_0x19fcc2(0x218)]){Ct();return;}if(_0x462e05[_0x19fcc2(0x18e)]){console[_0x19fcc2(0x12d)](Lt());return;}if(_0x462e05['subcommand']===_0x19fcc2(0x185)){await kn(_0x462e05);return;}if(_0x462e05[_0x19fcc2(0x291)]===_0x19fcc2(0x193)){await Sn(_0x462e05['prompt']);return;}if(_0x462e05[_0x19fcc2(0x291)]==='logout'){await Mt();return;}if(_0x462e05['subcommand']===_0x19fcc2(0x12a)){await Bt(_0x462e05);return;}if(_0x462e05[_0x19fcc2(0x291)]===_0x19fcc2(0x1f2)){await Wt(_0x462e05);return;}if(_0x462e05['subcommand']===_0x19fcc2(0x1ab)){await Zt(_0x462e05);return;}if(_0x462e05['subcommand']==='sessions'){await Qt(_0x462e05);return;}if(_0x462e05[_0x19fcc2(0x291)]===_0x19fcc2(0x296)){await nn(_0x462e05);return;}if(_0x462e05[_0x19fcc2(0x291)]===_0x19fcc2(0x1b5)||_0x462e05['subcommand']===_0x19fcc2(0x28b)||_0x462e05[_0x19fcc2(0x291)]===_0x19fcc2(0x2d0)){await an(_0x462e05,_0x462e05[_0x19fcc2(0x291)]);return;}if(_0x462e05[_0x19fcc2(0x291)]===_0x19fcc2(0x2b1)){await cn(_0x462e05);return;}if(_0x462e05[_0x19fcc2(0x291)]===_0x19fcc2(0x2c8)){await mn(_0x462e05);return;}if(_0x462e05[_0x19fcc2(0x291)]===_0x19fcc2(0x18f)){await gn(_0x462e05);return;}if(_0x462e05['subcommand']==='org-users'){await wn(_0x462e05);return;}if(_0x462e05[_0x19fcc2(0x291)]==='host'){await _0x34f364(_0x462e05['prompt'],{'runnerUrl':_0x462e05[_0x19fcc2(0x24b)],'backendUrl':_0x462e05[_0x19fcc2(0xf9)],'interopPath':_0x462e05[_0x19fcc2(0x264)],'workerId':_0x462e05['workerId']});return;}if(_0x462e05[_0x19fcc2(0x280)]){await Gt();return;}await En(_0x462e05);}var Un=process.env.NODE_ENV===_0x5c83f1(0x23e)||!!process.env.JEST_WORKER_ID;Un||Dn()[_0x5c83f1(0x258)](_0x130532=>{const _0x3fca58=_0x5c83f1;console[_0x3fca58(0x231)](_0x130532[_0x3fca58(0x1f9)]||_0x130532['message']||_0x130532),process[_0x3fca58(0x186)](0x1);});export{_t as CARTOGRAPHER_SKILLS,re as EFFORT_TIERS,Ot as IMPLICIT_STDIN_IDLE_MS,pe as buildInitOptions,Dn as main,Rt as parseArgs,Lt as readCliVersion,j as resolvePrompt,Pt as routeStdoutToStderr,u as writeCommandResult};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uipath/delegate-cli",
|
|
3
|
-
"version": "1.206.0-preview.
|
|
3
|
+
"version": "1.206.0-preview.20261123094028",
|
|
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.206.0-preview.
|
|
25
|
+
"@uipath/delegate-sdk": "1.206.0-preview.20261123094028"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@types/node": "^22.0.0",
|