@uipath/delegate-cli 1.206.0-preview.20261123120404 → 1.206.0-preview.20261123172026

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/cli.mjs +1 -1
  2. package/package.json +2 -2
package/dist/cli.mjs CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- const _0x531086=_0xc26a;(function(_0x1506b9,_0x5e05dc){const _0x16ef49=_0xc26a,_0x42284d=_0x1506b9();while(!![]){try{const _0x33bb05=-parseInt(_0x16ef49(0x1f9))/0x1*(parseInt(_0x16ef49(0x244))/0x2)+-parseInt(_0x16ef49(0x176))/0x3*(parseInt(_0x16ef49(0x188))/0x4)+-parseInt(_0x16ef49(0x268))/0x5+-parseInt(_0x16ef49(0x279))/0x6+parseInt(_0x16ef49(0x2ae))/0x7+parseInt(_0x16ef49(0x34a))/0x8*(parseInt(_0x16ef49(0x26f))/0x9)+parseInt(_0x16ef49(0x2f0))/0xa;if(_0x33bb05===_0x5e05dc)break;else _0x42284d['push'](_0x42284d['shift']());}catch(_0x15a66c){_0x42284d['push'](_0x42284d['shift']());}}}(_0x6e23,0x2d0f6));const __dirname=import.meta.dirname;import _0x5c063e from'fs';import _0x4f0079 from'path';import{clearLine as _0xf88ffe,createInterface as _0x493a75,cursorTo as _0x2fc152}from'node:readline';import{isOnStepGrid as _0x183fc3}from'@uipath/delegate-sdk';var _=_0x531086(0x2f9);function S(_0x512026){const _0x337bfe=_0x531086;return _0x512026[_0x337bfe(0x2e7)](/\u001b\[[0-?]*[ -/]*[@-~]|\u001b\][^\u0007\u001b]*(\u0007|\u001b\\)?|\u001b./g,'')[_0x337bfe(0x2e7)](/[\u0000-\u0008\u000b-\u001f\u007f-\u009f]/g,'');}function V(_0x54869a){const _0x11c818=_0x531086;return S(_0x54869a[_0x11c818(0x288)]??(_0x54869a['kind']===_?'Something\x20else':_0x54869a['id']));}function Te(_0x5b9f8f,_0x4bf6c2,_0x28ef6f){const _0x1628e1=_0x531086;let _0x1409cb=[''+(_0x28ef6f>0x1?'['+_0x4bf6c2+'/'+_0x28ef6f+']\x20':'')+S(_0x5b9f8f[_0x1628e1(0x232)])+(_0x5b9f8f[_0x1628e1(0x2bf)]?_0x1628e1(0x174):''),S(_0x5b9f8f['question'])];return _0x5b9f8f[_0x1628e1(0x25f)]==='text'&&_0x5b9f8f['options'][_0x1628e1(0x2f3)]((_0x1b8550,_0x31c994)=>{const _0x48b99e=_0x1628e1;let _0x5eda5b=_0x1b8550[_0x48b99e(0x1dd)]===_?_0x48b99e(0x317):'',_0xb817eb=_0x1b8550['description']?_0x48b99e(0x1f2)+S(_0x1b8550[_0x48b99e(0x352)]):'';_0x1409cb[_0x48b99e(0x333)]('\x20\x20'+(_0x31c994+0x1)+'.\x20'+V(_0x1b8550)+_0x5eda5b+_0xb817eb);}),_0x1409cb[_0x1628e1(0x2ed)]('\x0a');}function X(_0x3534f1,_0x2ce45d){const _0x5cb190=_0x531086;let _0x2648d4=_0x3534f1[_0x5cb190(0x246)](/[\s,]+/)['filter'](Boolean);if(_0x2648d4[_0x5cb190(0x35f)]===0x0)return null;let _0x4bbf0b=_0x2648d4[_0x5cb190(0x33d)](_0x522f1f=>/^\d+$/[_0x5cb190(0x2dc)](_0x522f1f)?Number(_0x522f1f):NaN);return _0x4bbf0b[_0x5cb190(0x195)](_0x2a542b=>!Number[_0x5cb190(0x2d5)](_0x2a542b)||_0x2a542b<0x1||_0x2a542b>_0x2ce45d)?null:[...new Set(_0x4bbf0b)]['map'](_0x4dfafe=>_0x4dfafe-0x1);}function xe(_0x4b4b47){const _0x437913=_0x531086;return typeof _0x4b4b47==_0x437913(0x356)&&_0x4b4b47!==null&&_0x437913(0x2af)in _0x4b4b47;}async function R(_0x564d35,_0x5333fb,_0x5cff26,_0x8301d3){for(;;){let _0x49c542=(await _0x564d35(_0x5333fb))['trim']();if(_0x49c542==='')return;let _0x16296c=_0x8301d3(_0x49c542);if(!xe(_0x16296c))return _0x16296c;_0x5cff26(_0x16296c['refused']+'\x0a');}}async function De(_0x3101bd,_0x1d681d,_0x1d57f2){const _0x3a0d20=_0x531086;if(_0x3101bd[_0x3a0d20(0x2c7)]['length']===0x0||_0x3101bd['options']['every'](_0x2a2f44=>_0x2a2f44[_0x3a0d20(0x1dd)]===_)){let _0x39e758=(await _0x1d681d(_0x3a0d20(0x1f4)))[_0x3a0d20(0x231)]();return _0x39e758===''?void 0x0:{'text':_0x39e758};}let _0x1c80d1=_0x3101bd[_0x3a0d20(0x2c7)][_0x3a0d20(0x271)](_0x42ba97=>_0x42ba97[_0x3a0d20(0x1dd)]===_),_0x21568b=_0x3101bd[_0x3a0d20(0x1ba)]?_0x3a0d20(0x1f7):'Number'+(_0x1c80d1>=0x0?_0x3a0d20(0x31b):'')+_0x3a0d20(0x2d6),_0x694dc1=await R(_0x1d681d,_0x21568b,_0x1d57f2,_0x6493c6=>{const _0x4827ff=_0x3a0d20;let _0x407c86=X(_0x6493c6,_0x3101bd[_0x4827ff(0x2c7)]['length']);return _0x407c86&&(_0x3101bd[_0x4827ff(0x1ba)]||_0x407c86[_0x4827ff(0x35f)]===0x1)?_0x407c86:!_0x3101bd[_0x4827ff(0x1ba)]&&_0x1c80d1>=0x0?{'typed':_0x6493c6}:{'refused':_0x3101bd[_0x4827ff(0x1ba)]?'Enter\x20numbers\x20from\x201\x20to\x20'+_0x3101bd['options'][_0x4827ff(0x35f)]+'.':_0x4827ff(0x1cc)+_0x3101bd[_0x4827ff(0x2c7)]['length']+'.'};});if(_0x694dc1===void 0x0)return;if(!Array[_0x3a0d20(0x1af)](_0x694dc1))return{'text':_0x694dc1[_0x3a0d20(0x307)]};let _0x458353=_0x694dc1['map'](_0x48e18a=>_0x3101bd[_0x3a0d20(0x2c7)][_0x48e18a]['id']),_0x586e72=_0x458353[_0x3a0d20(0x304)](_)?await R(_0x1d681d,V(_0x3101bd['options'][_0x1c80d1])+':\x20',_0x1d57f2,_0x2cfcf2=>_0x2cfcf2):void 0x0;if(!(_0x458353[_0x3a0d20(0x304)](_)&&_0x586e72===void 0x0))return _0x3101bd['multiSelect']?{'optionIds':_0x458353,..._0x586e72!==void 0x0?{'text':_0x586e72}:{}}:_0x586e72!==void 0x0?{'text':_0x586e72}:{'optionId':_0x458353[0x0]};}async function Ue(_0xc95ddf,_0x1a7a94,_0x56ad43){const _0x11c36d=_0x531086;let _0x4c5a47={};for(let _0x42e0a9 of _0xc95ddf[_0x11c36d(0x215)]){let _0x58a643=_0x42e0a9[_0x11c36d(0x1a7)]??_0x42e0a9[_0x11c36d(0x2ee)],_0x53d444=_0x42e0a9[_0x11c36d(0x34d)]??0x1,_0x1f9824=_0x42e0a9[_0x11c36d(0x1a6)]?'\x20'+S(_0x42e0a9['unit']):'',_0x106789=_0x11c36d(0x269)+_0x42e0a9[_0x11c36d(0x2ee)]+'\x20to\x20'+_0x42e0a9[_0x11c36d(0x225)]+(_0x53d444!==0x1?_0x11c36d(0x27a)+_0x53d444:''),_0xa8c549=await R(_0x1a7a94,S(_0x42e0a9['label'])+'\x20['+_0x42e0a9[_0x11c36d(0x2ee)]+'-'+_0x42e0a9['max']+_0x1f9824+_0x11c36d(0x2d3)+_0x58a643+_0x11c36d(0x2c2),_0x56ad43,_0x44d306=>{const _0x46ae3d=_0x11c36d;let _0x24f2e8=Number(_0x44d306);return Number['isFinite'](_0x24f2e8)&&_0x24f2e8>=_0x42e0a9['min']&&_0x24f2e8<=_0x42e0a9[_0x46ae3d(0x225)]&&_0x183fc3(_0x24f2e8,_0x42e0a9[_0x46ae3d(0x2ee)],_0x53d444)?_0x24f2e8:{'refused':_0x46ae3d(0x2f4)+_0x106789+'.'};});_0x4c5a47[_0x42e0a9['id']]=_0xa8c549??_0x58a643;}return{'values':_0x4c5a47};}async function Ne(_0x4d94de,_0x438c3a,_0x15b5f4){const _0x4769a3=_0x531086;_0x15b5f4(_0x4d94de[_0x4769a3(0x1e2)][_0x4769a3(0x33d)]((_0x564411,_0x3e7a41)=>'\x20\x20'+(_0x3e7a41+0x1)+'.\x20'+S(_0x564411[_0x4769a3(0x288)]))[_0x4769a3(0x2ed)]('\x0a')+'\x0a');let _0x3195e4={};for(let _0xb3a46e of _0x4d94de[_0x4769a3(0x27c)]){let _0x163fef=await R(_0x438c3a,S(_0xb3a46e[_0x4769a3(0x288)])+':\x20bucket\x20number\x20(Enter\x20to\x20leave\x20out):\x20',_0x15b5f4,_0x3186b9=>{const _0x584c28=_0x4769a3;let _0x29def2=X(_0x3186b9,_0x4d94de[_0x584c28(0x1e2)][_0x584c28(0x35f)]);return _0x29def2&&_0x29def2[_0x584c28(0x35f)]===0x1?_0x29def2[0x0]:{'refused':_0x584c28(0x1cc)+_0x4d94de[_0x584c28(0x1e2)]['length']+'.'};});if(_0x163fef===void 0x0)continue;let _0x2f226d=_0x4d94de[_0x4769a3(0x1e2)][_0x163fef],_0x137da0={};for(let _0x481564 of _0x2f226d[_0x4769a3(0x192)]??[]){let _0x9cfb4b='\x20\x20'+S(_0x481564[_0x4769a3(0x288)])+(_0x481564[_0x4769a3(0x2bf)]?_0x4769a3(0x174):'')+':\x20',_0x265a2b=await R(_0x438c3a,_0x9cfb4b,_0x15b5f4,_0xf174c3=>_0xf174c3);for(;_0x265a2b===void 0x0&&!_0x481564[_0x4769a3(0x2bf)];)_0x15b5f4(S(_0x481564[_0x4769a3(0x288)])+_0x4769a3(0x2f1)),_0x265a2b=await R(_0x438c3a,_0x9cfb4b,_0x15b5f4,_0x14c505=>_0x14c505);_0x265a2b!==void 0x0&&(_0x137da0[_0x481564['id']]=_0x265a2b);}_0x3195e4[_0xb3a46e['id']]={'bucket':_0x2f226d['id'],...Object[_0x4769a3(0x17f)](_0x137da0)[_0x4769a3(0x35f)]>0x0?{'subFields':_0x137da0}:{}};}return Object[_0x4769a3(0x17f)](_0x3195e4)[_0x4769a3(0x35f)]>0x0?{'assignments':_0x3195e4}:void 0x0;}async function _e(_0x4a3f63,_0x465ac4,_0x4309ad){const _0x3415bb=_0x531086;if(_0x4a3f63[_0x3415bb(0x25f)]==='text')return De(_0x4a3f63,_0x465ac4,_0x4309ad);if(_0x4a3f63[_0x3415bb(0x25f)]==='numeric')return Ue(_0x4a3f63,_0x465ac4,_0x4309ad);if(_0x4a3f63['type']===_0x3415bb(0x296))return Ne(_0x4a3f63,_0x465ac4,_0x4309ad);let _0x54c138=(await _0x465ac4(_0x3415bb(0x1b6)))[_0x3415bb(0x231)]();return _0x54c138===''?void 0x0:{'text':_0x54c138};}function Z(_0x552105,_0x5e2a36){return async _0x2347ff=>{const _0x1b9be6=_0xc26a;let _0x18bb48=_0x552105();if(!_0x18bb48)throw new Error('There\x20is\x20no\x20terminal\x20input\x20to\x20answer\x20from.');let _0x206548=async _0x34ef83=>{const _0x3422b7=_0xc26a;if(_0x2347ff[_0x3422b7(0x170)][_0x3422b7(0x22d)])throw new Error(_0x3422b7(0x1bc));let _0x156365=await _0x18bb48['readLine'](_0x34ef83,_0x2347ff[_0x3422b7(0x170)]);if(_0x156365===null)throw new Error(_0x3422b7(0x17d));return _0x156365;};try{_0x5e2a36('\x0a'+(_0x2347ff[_0x1b9be6(0x2e9)]?S(_0x2347ff[_0x1b9be6(0x2e9)])+'\x0a':''));let _0x5990db={};for(let [_0x3fe9fb,_0x14baae]of _0x2347ff[_0x1b9be6(0x2a1)][_0x1b9be6(0x278)]()){_0x5e2a36('\x0a'+Te(_0x14baae,_0x3fe9fb+0x1,_0x2347ff[_0x1b9be6(0x2a1)][_0x1b9be6(0x35f)])+'\x0a');let _0xca17b=await _e(_0x14baae,_0x206548,_0x5e2a36);_0xca17b!==void 0x0&&(_0x5990db[_0x14baae['id']]=_0xca17b);}return{'answers':_0x5990db};}finally{_0x18bb48[_0x1b9be6(0x303)]();}};}import{BUSINESS_ANALYSIS_PRELOADED_SKILLS as _0x40aded,DelegateAgent as _0x14a24f,cancelTurn as _0x54776d,InteropProcess as _0x278e6f,complete as _0x169227,DEFAULT_MODEL as _0x56f0de,createBackendClient as _0x42e779,evaluate as _0x3f4a89,isCompletionRequestError as _0x26ec1d,isEvaluationRequestError as _0x5a1339,isTranscriptionError as _0x2cc142,rerank as _0x150849,transcribe as _0x4a01ed,verify as _0x354bc0,acceptDelegation as _0xe44e7f,cancelDelegation as _0x1bce2c,claimDelegation as _0x465239,completeDelegation as _0xf631aa,createDelegation as _0x3cedba,deleteDelegation as _0x3ffeb3,dismissDelegation as _0x4e4048,getSessionDelegations as _0x476d92,isDelegationError as _0x4eaa13,listDelegations as _0x20b2f3,listOrgUsers as _0x1200ba,previewDelegation as _0x501744,TurnResultCollector as _0x12e810,agentEventToJsonLine as _0x546aef,describeBaseUrlRejection as _0x135b49,getActivitySummary as _0x44f882,getAuthFilePath as _0x2c6131,getByoWarnings as _0x58e743,getCartographerAllowance as _0x47e3e3,getDailyBreakdown as _0x5e0916,getLicensingSummary as _0x5cd03d,getMonthlySpending as _0x2d4ef0,isOutputFormat as _0x52aed0,isCloudBaseUrl as _0x3c22a0,isSafeProjectFolderSegment as _0x472ede,listModels as _0x4273ae,listSessions as _0x5af17e,getSession as _0x32fac4,renameSession as _0x5cc980,deleteSession as _0x315977,deleteSessionTaskLog as _0x574d2b,forkSession as _0x232217,isBackendRequestError as _0x302fe6,MAX_SESSION_PAGE_SIZE as _0x1a8525,listTenants as _0x3bd1f4,loadAndRefreshAuth as _0x360304,loadAndRefreshSdkLogin as _0x1155d6,parsePlatformBaseUrl as _0x3cb564,resolveBackendUrl as _0x5987d2,runHealthCheck as _0x34ac66,runHostCommand as _0x4cce51,runLoginFlow as _0x96e922,runTurnForResult as _0x450292,saveAuthData as _0x2a0232,switchTenant as _0x328250,toJsonLine as _0xb21b9e,ENV_TO_CLOUD as _0x49f564,OUTPUT_FORMATS as _0x2a98f0}from'@uipath/delegate-sdk';var Nt=[_0x531086(0x16f),'tenant',_0x531086(0x167),_0x531086(0x298),_0x531086(0x1ce),'whoami',_0x531086(0x253),_0x531086(0x19b),_0x531086(0x1f5),_0x531086(0x242),'rerank',_0x531086(0x207),'complete',_0x531086(0x1fa),'delegations',_0x531086(0x31d)],se=['',_0x531086(0x167),_0x531086(0x2c3),_0x531086(0x253),'sessions',_0x531086(0x1f5),_0x531086(0x242),_0x531086(0x354),_0x531086(0x207),'complete',_0x531086(0x1fa),_0x531086(0x2da),'org-users'],re=[_0x531086(0x239),_0x531086(0x213),_0x531086(0x238),_0x531086(0x1d9),_0x531086(0x225)],_t=_0x40aded;function w(_0x3dc19c,_0x3c99b3,_0x50b481,_0x8c48a2){const _0x5cc0a4=_0x531086;let _0x4746a2=_0x3dc19c[_0x3c99b3];return(!_0x4746a2||_0x4746a2[_0x5cc0a4(0x35f)]>0x1&&_0x4746a2[_0x5cc0a4(0x2ba)]('-'))&&(console[_0x5cc0a4(0x290)](_0x50b481+'\x20requires\x20'+_0x8c48a2+'.'),process[_0x5cc0a4(0x2b3)](0x2)),_0x4746a2;}function J(_0x9c5d1e,_0x152fd0,_0x588aa5,_0x577681){const _0x399c1d=_0x531086;let _0x2096d1=w(_0x9c5d1e,_0x152fd0,_0x588aa5,_0x399c1d(0x20d)),_0x42bef6=Number(_0x2096d1);return(!/^\d+$/['test'](_0x2096d1)||_0x42bef6<0x1||!Number[_0x399c1d(0x29d)](_0x42bef6)||_0x577681!==void 0x0&&_0x42bef6>_0x577681)&&(console[_0x399c1d(0x290)](_0x588aa5+_0x399c1d(0x21a)+(_0x577681===void 0x0?_0x399c1d(0x28e):_0x399c1d(0x194)+_0x577681)+_0x399c1d(0x24d)+_0x2096d1+'.'),process[_0x399c1d(0x2b3)](0x2)),_0x42bef6;}function Rt(_0x3e7be9){const _0x5bb4f2=_0x531086;let _0x177c3e={'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':_0x5bb4f2(0x358),'preloadSkills':[],'attachments':[],'skipEnvCheck':!0x1,'includeSubAgents':!0x1,'operands':[],'help':!0x1,'version':!0x1};Nt['includes'](_0x3e7be9[0x0])&&(_0x177c3e[_0x5bb4f2(0x1ca)]=_0x3e7be9[0x0],_0x3e7be9=_0x3e7be9[_0x5bb4f2(0x27d)](0x1));let _0x9f5108=[];for(let _0x6a9731=0x0;_0x6a9731<_0x3e7be9[_0x5bb4f2(0x35f)];_0x6a9731++){let _0x22bc31=_0x3e7be9[_0x6a9731];switch(_0x22bc31){case'--print':case'-p':_0x177c3e[_0x5bb4f2(0x2ad)]=!0x0;break;case _0x5bb4f2(0x2a9):_0x177c3e['keepAlive']=!0x0;break;case'--cleanup':_0x177c3e[_0x5bb4f2(0x23a)]=!0x0;break;case'--headless':_0x177c3e[_0x5bb4f2(0x276)]=!0x0;break;case'--no-computer-use':_0x177c3e['noComputerUse']=!0x0;break;case'--cartographer':_0x177c3e['cartographer']=!0x0,_0x177c3e['noComputerUse']=!0x0,_0x177c3e[_0x5bb4f2(0x217)][_0x5bb4f2(0x333)](..._t);break;case _0x5bb4f2(0x1c0):_0x177c3e[_0x5bb4f2(0x316)]=!0x0;break;case _0x5bb4f2(0x2b5):_0x177c3e['noSecurity']=!0x0;break;case _0x5bb4f2(0x27b):_0x177c3e['noMemory']=!0x0;break;case _0x5bb4f2(0x337):_0x177c3e['taskAutomation']=!0x0;break;case _0x5bb4f2(0x2a8):case'-q':_0x177c3e[_0x5bb4f2(0x359)]=!0x0;break;case _0x5bb4f2(0x21c):_0x177c3e[_0x5bb4f2(0x360)]=!0x0;break;case _0x5bb4f2(0x2ff):_0x177c3e['backendUrl']=_0x3e7be9[++_0x6a9731];break;case'--model':_0x177c3e[_0x5bb4f2(0x1a1)]=_0x3e7be9[++_0x6a9731];break;case'--runner-url':_0x177c3e['runnerUrl']=_0x3e7be9[++_0x6a9731];break;case _0x5bb4f2(0x193):_0x177c3e[_0x5bb4f2(0x2cc)]=_0x3e7be9[++_0x6a9731];break;case _0x5bb4f2(0x2bc):_0x177c3e[_0x5bb4f2(0x1fc)]=_0x3e7be9[++_0x6a9731];break;case _0x5bb4f2(0x31f):_0x177c3e[_0x5bb4f2(0x217)]['push'](w(_0x3e7be9,++_0x6a9731,_0x22bc31,_0x5bb4f2(0x2d7)));break;case _0x5bb4f2(0x272):{let _0x39adc7=w(_0x3e7be9,++_0x6a9731,_0x22bc31,_0x5bb4f2(0x295));_0x472ede(_0x39adc7)||(console[_0x5bb4f2(0x290)](_0x5bb4f2(0x30c)+_0x39adc7+_0x5bb4f2(0x2c5)),process[_0x5bb4f2(0x2b3)](0x2)),_0x177c3e[_0x5bb4f2(0x297)]=_0x39adc7;break;}case _0x5bb4f2(0x28b):{let _0xf15cf0=w(_0x3e7be9,++_0x6a9731,_0x22bc31,_0x5bb4f2(0x181)+_0x2a98f0['join']('\x20|\x20')+')');_0x52aed0(_0xf15cf0)||(console['error'](_0x5bb4f2(0x277)+_0xf15cf0+_0x5bb4f2(0x332)+_0x2a98f0['join'](_0x5bb4f2(0x177))+'.'),process['exit'](0x2)),_0x177c3e['outputFormat']=_0xf15cf0;break;}case _0x5bb4f2(0x230):_0x177c3e[_0x5bb4f2(0x2a0)]=w(_0x3e7be9,++_0x6a9731,_0x22bc31,_0x5bb4f2(0x1be));break;case'--page':_0x177c3e[_0x5bb4f2(0x2de)]=J(_0x3e7be9,++_0x6a9731,_0x22bc31);break;case _0x5bb4f2(0x309):_0x177c3e[_0x5bb4f2(0x29f)]=J(_0x3e7be9,++_0x6a9731,_0x22bc31,_0x1a8525);break;case _0x5bb4f2(0x196):_0x177c3e[_0x5bb4f2(0x32f)]=!0x0;break;case _0x5bb4f2(0x2ca):_0x177c3e[_0x5bb4f2(0x30a)]=w(_0x3e7be9,++_0x6a9731,_0x22bc31,'a\x20JSON\x20schema\x20file');break;case'--attach':{let _0x1403a5=_0x4f0079[_0x5bb4f2(0x1a0)](process[_0x5bb4f2(0x262)](),w(_0x3e7be9,++_0x6a9731,_0x22bc31,_0x5bb4f2(0x1ff)));_0x5c063e[_0x5bb4f2(0x30f)](_0x1403a5)||(console[_0x5bb4f2(0x290)](_0x5bb4f2(0x34b)+_0x1403a5),process[_0x5bb4f2(0x2b3)](0x2)),_0x177c3e[_0x5bb4f2(0x1e4)][_0x5bb4f2(0x333)](_0x1403a5);break;}case _0x5bb4f2(0x2f6):_0x177c3e[_0x5bb4f2(0x214)]=w(_0x3e7be9,++_0x6a9731,_0x22bc31,'a\x20turn\x20id');break;case _0x5bb4f2(0x20b):_0x177c3e[_0x5bb4f2(0x27f)]=w(_0x3e7be9,++_0x6a9731,_0x22bc31,_0x5bb4f2(0x2ce));break;case _0x5bb4f2(0x280):_0x177c3e['contextSummary']=w(_0x3e7be9,++_0x6a9731,_0x22bc31,_0x5bb4f2(0x2b2));break;case'--days':_0x177c3e[_0x5bb4f2(0x24a)]=J(_0x3e7be9,++_0x6a9731,_0x22bc31,0x16d);break;case _0x5bb4f2(0x1dc):_0x177c3e[_0x5bb4f2(0x189)]=_0x4f0079[_0x5bb4f2(0x1a0)](process['cwd'](),w(_0x3e7be9,++_0x6a9731,_0x22bc31,'a\x20directory\x20path'));break;case _0x5bb4f2(0x1ad):_0x177c3e[_0x5bb4f2(0x28f)]=_0x4f0079[_0x5bb4f2(0x1a0)](process[_0x5bb4f2(0x262)](),w(_0x3e7be9,++_0x6a9731,_0x22bc31,_0x5bb4f2(0x2d4)));break;case _0x5bb4f2(0x300):{let _0x117088=w(_0x3e7be9,++_0x6a9731,_0x22bc31,_0x5bb4f2(0x247));re[_0x5bb4f2(0x304)](_0x117088)||(console[_0x5bb4f2(0x290)](_0x5bb4f2(0x266)+_0x117088+_0x5bb4f2(0x332)+re[_0x5bb4f2(0x2ed)](_0x5bb4f2(0x177))+'.'),process[_0x5bb4f2(0x2b3)](0x2)),_0x177c3e[_0x5bb4f2(0x302)]=_0x117088;break;}case _0x5bb4f2(0x1d7):{let _0x268d22=_0x3e7be9[++_0x6a9731];(!_0x268d22||_0x268d22['startsWith']('--'))&&(console[_0x5bb4f2(0x290)](_0x5bb4f2(0x1c2)),process[_0x5bb4f2(0x2b3)](0x2)),_0x177c3e[_0x5bb4f2(0x324)]=_0x268d22;break;}case'--env':{let _0x1218dc=_0x3e7be9[++_0x6a9731];[_0x5bb4f2(0x301),'staging',_0x5bb4f2(0x252),_0x5bb4f2(0x2a5)][_0x5bb4f2(0x304)](_0x1218dc)||(console[_0x5bb4f2(0x290)]('Invalid\x20--env:\x20'+_0x1218dc+_0x5bb4f2(0x20e)),process[_0x5bb4f2(0x2b3)](0x2)),_0x177c3e['env']=_0x1218dc;break;}case'--url':case _0x5bb4f2(0x227):{let _0x4100b3=w(_0x3e7be9,++_0x6a9731,_0x22bc31,_0x5bb4f2(0x2b1)),_0x16c08f=_0x3cb564(_0x4100b3);if(_0x16c08f['ok']===!0x1){console[_0x5bb4f2(0x290)](_0x135b49(_0x4100b3,_0x16c08f['rejection'])),process[_0x5bb4f2(0x2b3)](0x2);break;}_0x177c3e[_0x5bb4f2(0x16a)]=_0x16c08f[_0x5bb4f2(0x22e)];break;}case _0x5bb4f2(0x334):_0x177c3e['skipEnvCheck']=!0x0;break;case'-h':case'--help':_0x177c3e[_0x5bb4f2(0x292)]=!0x0;break;case'-v':case _0x5bb4f2(0x257):_0x177c3e[_0x5bb4f2(0x2e6)]=!0x0;break;default:_0x22bc31[_0x5bb4f2(0x2ba)]('--')&&(console[_0x5bb4f2(0x290)]('Unknown\x20flag:\x20'+_0x22bc31),process[_0x5bb4f2(0x2b3)](0x2)),_0x9f5108['push'](_0x22bc31);}}return _0x177c3e[_0x5bb4f2(0x324)]!==void 0x0&&_0x177c3e[_0x5bb4f2(0x1ca)]!==_0x5bb4f2(0x16f)&&(console[_0x5bb4f2(0x290)](_0x5bb4f2(0x287)),process[_0x5bb4f2(0x2b3)](0x2)),_0x177c3e['url']!==void 0x0&&_0x177c3e[_0x5bb4f2(0x16b)]!==void 0x0&&(console[_0x5bb4f2(0x290)](_0x5bb4f2(0x327)),process[_0x5bb4f2(0x2b3)](0x2)),_0x177c3e[_0x5bb4f2(0x16a)]!==void 0x0&&_0x177c3e['subcommand']!==_0x5bb4f2(0x16f)&&(console[_0x5bb4f2(0x290)](_0x5bb4f2(0x18e)),process['exit'](0x2)),_0x177c3e[_0x5bb4f2(0x24a)]!==void 0x0&&_0x177c3e['subcommand']!==_0x5bb4f2(0x1f5)&&(console[_0x5bb4f2(0x290)](_0x5bb4f2(0x26a)),process[_0x5bb4f2(0x2b3)](0x2)),_0x177c3e[_0x5bb4f2(0x30a)]!==void 0x0&&(_0x177c3e['subcommand']!==_0x5bb4f2(0x2fc)&&_0x177c3e['subcommand']!==''||_0x177c3e['cleanup'])&&(console[_0x5bb4f2(0x290)](_0x5bb4f2(0x210)),process[_0x5bb4f2(0x2b3)](0x2)),_0x177c3e[_0x5bb4f2(0x1e4)][_0x5bb4f2(0x35f)]>0x0&&(_0x177c3e[_0x5bb4f2(0x1ca)]!==''||_0x177c3e[_0x5bb4f2(0x23a)])&&(console[_0x5bb4f2(0x290)](_0x5bb4f2(0x2a4)),process[_0x5bb4f2(0x2b3)](0x2)),_0x177c3e[_0x5bb4f2(0x318)]&&(_0x177c3e[_0x5bb4f2(0x1ca)]!==''||_0x177c3e[_0x5bb4f2(0x23a)])&&(console['error'](_0x5bb4f2(0x255)),process['exit'](0x2)),_0x177c3e['taskAutomation']&&(_0x177c3e[_0x5bb4f2(0x276)]||_0x177c3e[_0x5bb4f2(0x347)])&&(console[_0x5bb4f2(0x290)](_0x5bb4f2(0x270)),process[_0x5bb4f2(0x2b3)](0x2)),_0x177c3e[_0x5bb4f2(0x2db)]&&_0x177c3e[_0x5bb4f2(0x1ca)]!=='login'&&(console[_0x5bb4f2(0x290)](_0x5bb4f2(0x249)),process[_0x5bb4f2(0x2b3)](0x2)),_0x177c3e[_0x5bb4f2(0x168)]!==_0x5bb4f2(0x358)&&!se[_0x5bb4f2(0x304)](_0x177c3e[_0x5bb4f2(0x1ca)])&&(console['error'](_0x5bb4f2(0x2b8)+_0x177c3e[_0x5bb4f2(0x168)]+_0x5bb4f2(0x2e0)+se[_0x5bb4f2(0x1ac)](Boolean)[_0x5bb4f2(0x2ed)](',\x20')+'.'),process[_0x5bb4f2(0x2b3)](0x2)),(_0x177c3e[_0x5bb4f2(0x2de)]!==void 0x0||_0x177c3e[_0x5bb4f2(0x29f)]!==void 0x0||_0x177c3e[_0x5bb4f2(0x32f)])&&_0x177c3e[_0x5bb4f2(0x1ca)]!==_0x5bb4f2(0x19b)&&(console[_0x5bb4f2(0x290)](_0x5bb4f2(0x357)),process['exit'](0x2)),(_0x177c3e[_0x5bb4f2(0x27f)]!==void 0x0||_0x177c3e[_0x5bb4f2(0x219)]!==void 0x0)&&_0x177c3e[_0x5bb4f2(0x1ca)]!==_0x5bb4f2(0x2da)&&(console[_0x5bb4f2(0x290)]('--to\x20and\x20--summary\x20apply\x20to\x20`delegate-cli\x20delegations\x20create`\x20only.'),process[_0x5bb4f2(0x2b3)](0x2)),_0x177c3e[_0x5bb4f2(0x214)]!==void 0x0&&_0x177c3e[_0x5bb4f2(0x1ca)]!==_0x5bb4f2(0x19b)&&(console[_0x5bb4f2(0x290)](_0x5bb4f2(0x2bd)),process['exit'](0x2)),_0x177c3e[_0x5bb4f2(0x217)]=[...new Set(_0x177c3e[_0x5bb4f2(0x217)])],_0x177c3e[_0x5bb4f2(0x328)]=_0x9f5108,_0x177c3e[_0x5bb4f2(0x26c)]=_0x9f5108['join']('\x20'),_0x177c3e;}var P=_0x12cc73=>{const _0x43737d=_0x531086;process[_0x43737d(0x32e)]['write'](_0x12cc73);};function Pt(){const _0x5386c1=_0x531086;let _0x388dbe=process[_0x5386c1(0x32e)]['write'],_0x378e37=_0x388dbe['bind'](process[_0x5386c1(0x32e)]),_0x59283f=P;return P=_0x5bf402=>{_0x378e37(_0x5bf402);},process[_0x5386c1(0x32e)][_0x5386c1(0x28c)]=(..._0x1c1109)=>process[_0x5386c1(0x31e)][_0x5386c1(0x28c)](..._0x1c1109),()=>{const _0x454f39=_0x5386c1;process[_0x454f39(0x32e)][_0x454f39(0x28c)]=_0x388dbe,P=_0x59283f;};}function u(_0x5dba73,_0x3e8ff4,_0x2b97e8){const _0x27eec0=_0x531086;if(_0x5dba73[_0x27eec0(0x168)]===_0x27eec0(0x358)){_0x2b97e8(_0x3e8ff4);return;}P(_0xb21b9e(_0x3e8ff4));}function Ct(){const _0x514f38=_0x531086;let _0x1d596f=_0x514f38(0x343)[_0x514f38(0x231)]();console['log'](_0x1d596f);}function Lt(){const _0x8e5471=_0x531086;try{return JSON[_0x8e5471(0x18c)](_0x5c063e[_0x8e5471(0x1c8)](_0x4f0079[_0x8e5471(0x2ed)](__dirname,'..',_0x8e5471(0x315)),_0x8e5471(0x335)))[_0x8e5471(0x2e6)]||_0x8e5471(0x310);}catch{return _0x8e5471(0x310);}}var Ot=0x7d0;async function ie(_0x295bd8,_0x55d0f4){const _0x51fb28=_0x531086;let _0x5b18b6=_0x55d0f4?[_0x55d0f4]:[];for await(let _0x4d5362 of _0x295bd8)_0x5b18b6[_0x51fb28(0x333)](Buffer[_0x51fb28(0x166)](_0x4d5362));return Buffer[_0x51fb28(0x17c)](_0x5b18b6)[_0x51fb28(0x171)]('utf-8')[_0x51fb28(0x231)]();}function Ft(_0x42aec6,_0x51ba7b){return new Promise(_0xbf33f6=>{const _0xa4f77b=_0xc26a;let _0x1e2f6d=_0x2738a3=>{const _0x410faa=_0xc26a;clearTimeout(_0xc905ed),_0x42aec6[_0x410faa(0x26e)](_0x410faa(0x275),_0x1ef56c),_0x42aec6[_0x410faa(0x26e)](_0x410faa(0x178),_0x1816e8),_0x42aec6[_0x410faa(0x26e)](_0x410faa(0x290),_0x1816e8),_0x42aec6[_0x410faa(0x2e2)](),_0xbf33f6(_0x2738a3);},_0x1ef56c=_0x1e4c1e=>_0x1e2f6d(Buffer[_0xa4f77b(0x166)](_0x1e4c1e)),_0x1816e8=()=>_0x1e2f6d(null),_0xc905ed=setTimeout(()=>_0x1e2f6d(null),_0x51ba7b);_0x42aec6['on'](_0xa4f77b(0x275),_0x1ef56c),_0x42aec6['on'](_0xa4f77b(0x178),_0x1816e8),_0x42aec6['on'](_0xa4f77b(0x290),_0x1816e8),_0x42aec6['resume']();});}async function j(_0x504547,_0x312cee,_0x154a45=Ot){const _0x115279=_0x531086;let _0x1f3bab=_0x504547==='-';if(!_0x1f3bab&&_0x504547)return _0x504547;if(!_0x1f3bab&&_0x312cee[_0x115279(0x2fe)])return'';if(_0x1f3bab)return ie(_0x312cee,null);let _0x5989fd=await Ft(_0x312cee,_0x154a45);return _0x5989fd?ie(_0x312cee,_0x5989fd):'';}function K(){const _0x57171d=_0x531086;return _0x4f0079[_0x57171d(0x2ed)](process.env.HOME||process.env.USERPROFILE||'',_0x57171d(0x30b),_0x57171d(0x236));}function M(_0x2a404f){const _0x4deeea=_0x531086;try{let _0x4b93dc=JSON[_0x4deeea(0x18c)](_0x5c063e[_0x4deeea(0x1c8)](_0x2a404f,_0x4deeea(0x335)));return!_0x4b93dc['accessToken']||!_0x4b93dc['tenantId']||!_0x4b93dc[_0x4deeea(0x25e)]?null:_0x4b93dc;}catch{return null;}}function jt(){const _0xc8398=_0x531086;let _0x16ae33=[{'file':_0x2c6131(),'isDesktopFallback':!0x1},{'file':K(),'isDesktopFallback':!0x0}];for(let _0x14f45d of _0x16ae33){let _0x48c77d=M(_0x14f45d[_0xc8398(0x1c9)]);if(_0x48c77d)return{..._0x14f45d,'auth':_0x48c77d};}return null;}async function Mt(){const _0x3b7e26=_0x531086;let _0x1083d7=_0x2c6131();if(!_0x5c063e[_0x3b7e26(0x30f)](_0x1083d7)){let _0x684d90=K();console['log'](M(_0x684d90)?_0x3b7e26(0x23d)+_0x684d90+_0x3b7e26(0x1b7):_0x3b7e26(0x35e));return;}_0x5c063e[_0x3b7e26(0x2dd)](_0x1083d7),console[_0x3b7e26(0x2f7)](_0x3b7e26(0x1cf)+_0x1083d7);}async function Bt(_0xbed6cf){const _0x252bb3=_0x531086;let _0x556c71=Q(),_0x174ea6,_0x5499b3;if(_0x556c71)_0x174ea6=_0x556c71,_0x5499b3=_0x252bb3(0x21f);else{let _0x493c2d=jt();if(!_0x493c2d)throw new Error(Se);_0x174ea6=_0x493c2d[_0x252bb3(0x35a)],_0x5499b3=_0x493c2d[_0x252bb3(0x1f6)]?_0x493c2d[_0x252bb3(0x1c9)]+_0x252bb3(0x2bb):_0x493c2d[_0x252bb3(0x1c9)];}let _0x8ca284={'source':_0x5499b3,'baseUrl':_0x174ea6[_0x252bb3(0x22e)]??null,'deployment':Ht(_0x174ea6[_0x252bb3(0x22e)]),'organization':{'id':_0x174ea6[_0x252bb3(0x25e)],'slug':_0x174ea6[_0x252bb3(0x1e8)]??null},'tenant':{'id':_0x174ea6[_0x252bb3(0x34f)],'name':_0x174ea6[_0x252bb3(0x1ef)]??null},'tokenExpiresAt':_0x174ea6[_0x252bb3(0x1eb)]?new Date(_0x174ea6['expiresAt']*0x3e8)['toISOString']():null};u(_0xbed6cf,_0x8ca284,()=>{const _0x195b59=_0x252bb3;let _0x439827=['Source:\x20\x20\x20\x20\x20\x20\x20'+_0x5499b3,_0x195b59(0x245)+(_0x174ea6[_0x195b59(0x22e)]??_0x195b59(0x310)),_0x195b59(0x243)+_0x8ca284[_0x195b59(0x34e)],_0x195b59(0x1de)+(_0x174ea6[_0x195b59(0x1e8)]??'unknown\x20slug')+'\x20('+_0x174ea6['organizationId']+')',_0x195b59(0x1da)+(_0x174ea6[_0x195b59(0x1ef)]??'unknown\x20slug')+'\x20('+_0x174ea6[_0x195b59(0x34f)]+')'];if(_0x174ea6['expiresAt']){let _0x59446c=_0x174ea6[_0x195b59(0x1eb)]-Math[_0x195b59(0x16e)](Date['now']()/0x3e8);_0x439827[_0x195b59(0x333)](_0x59446c>0x0?_0x195b59(0x34c)+_0x8ca284['tokenExpiresAt']+_0x195b59(0x2b4)+Math[_0x195b59(0x2c8)](_0x59446c/0x3c)+_0x195b59(0x30e):_0x195b59(0x2d1)+_0x8ca284['tokenExpiresAt']);}process[_0x195b59(0x32e)][_0x195b59(0x28c)](_0x439827[_0x195b59(0x2ed)]('\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(_0x55620a){return _0x55620a?_0x3c22a0(_0x55620a)?'UiPath\x20Cloud':'self-hosted\x20(Automation\x20Suite\x20/\x20Dedicated)':'unknown';}function Q(){let _0x15d63c=process.env.AUTH_TOKEN_FILE;return(process.env.AUTH_TOKEN||_0x15d63c)&&process.env.TENANT_ID&&process.env.ORG_ID?{'accessToken':_0x15d63c?Jt(_0x15d63c):process.env.AUTH_TOKEN,..._0x15d63c?{'accessTokenFile':_0x15d63c}:{},'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(_0x114a30){const _0x40a9d1=_0x531086;let _0x2cce4e;try{_0x2cce4e=_0x5c063e[_0x40a9d1(0x1c8)](_0x114a30,_0x40a9d1(0x335))[_0x40a9d1(0x231)]();}catch(_0x5ef761){throw new Error(_0x40a9d1(0x1e9)+_0x114a30+_0x40a9d1(0x350)+_0x5ef761[_0x40a9d1(0x251)]);}let _0x312e6a=_0x2cce4e[_0x40a9d1(0x2ba)]('Bearer\x20')?_0x2cce4e[_0x40a9d1(0x27d)](0x7)[_0x40a9d1(0x231)]():_0x2cce4e;if(!_0x312e6a)throw new Error(_0x40a9d1(0x1e9)+_0x114a30+_0x40a9d1(0x326));return _0x312e6a;}function ve(){const _0x1d7ddf=_0x531086;let _0x4f9a2b=process.env.UIPATH_BASE_URL;if(!_0x4f9a2b)return;let _0x4c177f=_0x3cb564(_0x4f9a2b);if(_0x4c177f['ok']===!0x1)throw new Error(_0x1d7ddf(0x29c)+_0x135b49(_0x4f9a2b,_0x4c177f[_0x1d7ddf(0x32c)]));return _0x4c177f[_0x1d7ddf(0x22e)];}async function q(){let _0x18cdaf=Q();if(_0x18cdaf)return _0x18cdaf;let _0xa343aa=await _0x360304();if(_0xa343aa)return _0xa343aa;throw new Error(Se);}async function Gt(){const _0x375818=_0x531086;await new _0x278e6f()[_0x375818(0x17b)]({'force':!0x0}),console[_0x375818(0x2f7)](_0x375818(0x33f));}function z(_0x4b5cb6,_0x45232c,_0x225c0){const _0x17c9ee=_0x531086;_0x4b5cb6?process[_0x17c9ee(0x31e)]['write'](_0x17c9ee(0x25d)+_0x4b5cb6+_0x17c9ee(0x344)+_0x225c0+'\x0a'):!_0x45232c&&!process.env.BACKEND_URL&&process[_0x17c9ee(0x31e)][_0x17c9ee(0x28c)](_0x17c9ee(0x1ea)+_0x225c0+'\x0a');}async function v(_0x376f1b){const _0x324a21=_0x531086;let _0x3097d5=await q(),_0x59c31c=_0x5987d2(_0x376f1b[_0x324a21(0x16b)],_0x3097d5,_0x376f1b[_0x324a21(0x28a)]);return z(_0x376f1b[_0x324a21(0x16b)],_0x376f1b[_0x324a21(0x28a)],_0x59c31c),{'auth':_0x3097d5,'backendUrl':_0x59c31c,'client':_0x42e779({'auth':_0x3097d5,'backendUrl':_0x59c31c})};}async function Wt(_0x35d8c1){const _0x3e0424=_0x531086;let {client:_0x1e028f}=await v(_0x35d8c1),[_0x15f06a,_0x1d0656]=await Promise[_0x3e0424(0x29e)]([_0x4273ae(_0x1e028f),_0x58e743(_0x1e028f)[_0x3e0424(0x26d)](_0x217fb8=>(process[_0x3e0424(0x31e)][_0x3e0424(0x28c)](_0x3e0424(0x31c)+(_0x217fb8 instanceof Error?_0x217fb8['message']:String(_0x217fb8))+'\x0a'),{}))]),_0x270e45=_0x15f06a[_0x3e0424(0x33d)](_0xe87a1b=>_0x1d0656[_0xe87a1b['id']]?{..._0xe87a1b,'byoWarning':_0x1d0656[_0xe87a1b['id']]}:_0xe87a1b);u(_0x35d8c1,_0x270e45,Kt);}function Kt(_0x365380){const _0x5b215b=_0x531086;if(_0x365380[_0x5b215b(0x35f)]===0x0){process['stderr'][_0x5b215b(0x28c)]('No\x20models\x20available\x20for\x20this\x20product/tenant.\x0a');return;}process[_0x5b215b(0x32e)]['write'](_0x5b215b(0x31a)+_0x365380['length']+_0x5b215b(0x1ec));for(let _0x49f94c of _0x365380){let _0x206d7c=_0x49f94c['name']&&_0x49f94c[_0x5b215b(0x361)]!==_0x49f94c['id']?'\x20('+_0x49f94c[_0x5b215b(0x361)]+')':'';process[_0x5b215b(0x32e)][_0x5b215b(0x28c)]('\x20\x20'+_0x49f94c['id']+_0x206d7c+'\x0a'),_0x49f94c[_0x5b215b(0x352)]&&process['stdout'][_0x5b215b(0x28c)](_0x5b215b(0x1f1)+_0x49f94c['description']+'\x0a'),_0x49f94c['locked']&&process[_0x5b215b(0x32e)][_0x5b215b(0x28c)]('\x20\x20\x20\x20Not\x20available\x20on\x20this\x20plan'+(_0x49f94c[_0x5b215b(0x25c)]?'\x20('+_0x49f94c[_0x5b215b(0x25c)]+')':'')+'\x0a'),_0x49f94c['byoWarning']&&process[_0x5b215b(0x32e)][_0x5b215b(0x28c)](_0x5b215b(0x2be)+_0x49f94c[_0x5b215b(0x226)]+'\x0a');}process['stdout'][_0x5b215b(0x28c)]('\x0aUse\x20with:\x20delegate-cli\x20--model\x20<id>\x20\x22<prompt>\x22\x0a');}var ae=['list',_0x531086(0x228),'rename',_0x531086(0x198),'cancel',_0x531086(0x1e3)];async function Qt(_0x35070c){const _0x2bda0c=_0x531086;let [_0x158c25='',_0x8c621a='',..._0x19871e]=_0x35070c['operands'];if(_0x158c25&&!ae[_0x2bda0c(0x304)](_0x158c25)&&(console[_0x2bda0c(0x290)](_0x2bda0c(0x24c)+_0x158c25+_0x2bda0c(0x345)+ae[_0x2bda0c(0x2ed)]('\x20|\x20')+'.'),process['exit'](0x2)),_0x35070c[_0x2bda0c(0x214)]!==void 0x0&&_0x158c25!==_0x2bda0c(0x183)&&(console[_0x2bda0c(0x290)](_0x2bda0c(0x2bd)),process['exit'](0x2)),_0x158c25&&_0x158c25!==_0x2bda0c(0x23b)){await qt(_0x35070c,_0x158c25,_0x8c621a,_0x19871e['join']('\x20')[_0x2bda0c(0x231)]());return;}_0x35070c[_0x2bda0c(0x328)]['length']>0x1&&(console[_0x2bda0c(0x290)](_0x2bda0c(0x1e6)),process[_0x2bda0c(0x2b3)](0x2));let {client:_0x394ffa}=await v(_0x35070c),_0x240757=await _0x5af17e(_0x394ffa,{'page':_0x35070c['page'],'pageSize':_0x35070c['limit'],'includeSubAgents':_0x35070c[_0x2bda0c(0x32f)]});u(_0x35070c,_0x240757,Xt);}async function qt(_0x45f6f2,_0x38a3e3,_0x52bbfd,_0x2bab46){const _0x4d6f82=_0x531086;if((_0x45f6f2[_0x4d6f82(0x2de)]!==void 0x0||_0x45f6f2[_0x4d6f82(0x29f)]!==void 0x0||_0x45f6f2['includeSubAgents'])&&(console[_0x4d6f82(0x290)](_0x4d6f82(0x23e)),process[_0x4d6f82(0x2b3)](0x2)),_0x38a3e3===_0x4d6f82(0x183)){await Yt(_0x45f6f2,_0x52bbfd,_0x2bab46);return;}if(_0x38a3e3===_0x4d6f82(0x1e3)){await Vt(_0x45f6f2,_0x52bbfd,_0x2bab46);return;}(!_0x52bbfd||_0x38a3e3==='rename'!=!!_0x2bab46)&&(console[_0x4d6f82(0x290)](_0x4d6f82(0x240)+_0x38a3e3+'\x20<id>'+(_0x38a3e3===_0x4d6f82(0x222)?_0x4d6f82(0x18d):'')),process[_0x4d6f82(0x2b3)](0x2));let {client:_0x4786aa}=await v(_0x45f6f2);try{if(_0x38a3e3==='show'){let _0x35860b=await _0x32fac4(_0x4786aa,_0x52bbfd);_0x35860b||le(_0x52bbfd),u(_0x45f6f2,_0x35860b,zt);}else{if(_0x38a3e3===_0x4d6f82(0x222)){let _0x2e3007=await _0x5cc980(_0x4786aa,_0x52bbfd,_0x2bab46);u(_0x45f6f2,_0x2e3007,_0x1c9628=>{const _0x21400c=_0x4d6f82;process[_0x21400c(0x32e)][_0x21400c(0x28c)](_0x21400c(0x1aa)+_0x1c9628['id']+':\x20'+_0x1c9628[_0x21400c(0x261)]+'\x0a');});}else await _0x315977(_0x4786aa,_0x52bbfd),await _0x574d2b(_0x52bbfd,_0x45f6f2[_0x4d6f82(0x189)]),u(_0x45f6f2,{'id':_0x52bbfd,'deleted':!0x0},_0x4ea790=>{const _0x222232=_0x4d6f82;process[_0x222232(0x32e)]['write']('Deleted\x20session\x20'+_0x4ea790['id']+'.\x0a');});}}catch(_0xef533b){if(!_0x302fe6(_0xef533b,0x194))throw _0xef533b;le(_0x52bbfd);}}function le(_0x354fa7){const _0x3afa7c=_0x531086;console[_0x3afa7c(0x290)](_0x3afa7c(0x2d8)+_0x354fa7+_0x3afa7c(0x2b7)),process['exit'](0x1);}function zt(_0x189b62){const _0x41aa28=_0x531086;process[_0x41aa28(0x32e)]['write']('ID\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x189b62['id']+'\x0a'),process['stdout']['write']('Title\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x189b62[_0x41aa28(0x261)]+'\x0a'),process['stdout']['write']('Owner\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x189b62[_0x41aa28(0x321)]+'\x0a'),process['stdout'][_0x41aa28(0x28c)](_0x41aa28(0x1a5)+_0x189b62['organizationId']+'\x0a'),_0x189b62[_0x41aa28(0x18f)]&&process['stdout'][_0x41aa28(0x28c)](_0x41aa28(0x1b5)+_0x189b62[_0x41aa28(0x18f)]+'\x0a');}async function Yt(_0x48abc6,_0x3492dc,_0x3a8e8b){const _0x41ac4a=_0x531086;(!_0x3492dc||_0x3a8e8b||!_0x48abc6[_0x41ac4a(0x214)])&&(console[_0x41ac4a(0x290)](_0x41ac4a(0x2a7)),process[_0x41ac4a(0x2b3)](0x2));let {client:_0x2c3ffe}=await v(_0x48abc6),_0x17f90d=await _0x54776d(_0x2c3ffe,_0x3492dc,_0x48abc6[_0x41ac4a(0x214)]);u(_0x48abc6,{'sessionId':_0x3492dc,'turnId':_0x48abc6[_0x41ac4a(0x214)],'cancelled':_0x17f90d},_0x27c516=>{const _0x374f08=_0x41ac4a;_0x27c516[_0x374f08(0x16c)]?process[_0x374f08(0x32e)][_0x374f08(0x28c)](_0x374f08(0x22c)+_0x27c516[_0x374f08(0x214)]+'\x20of\x20session\x20'+_0x27c516[_0x374f08(0x2a0)]+'.\x0a'):process['stderr'][_0x374f08(0x28c)](_0x374f08(0x289)+_0x27c516[_0x374f08(0x214)]+_0x374f08(0x1a9)+_0x27c516[_0x374f08(0x2a0)]+'.\x0a');}),_0x17f90d||(process[_0x41ac4a(0x248)]=0x1);}async function Vt(_0x2baab0,_0x1001f0,_0x587d4d){const _0x4f5517=_0x531086;(!_0x1001f0||/\s/[_0x4f5517(0x2dc)](_0x587d4d))&&(console[_0x4f5517(0x290)](_0x4f5517(0x204)),process['exit'](0x2));let {client:_0x10654e}=await v(_0x2baab0),_0x4a32d3;try{_0x4a32d3=await _0x232217(_0x10654e,_0x1001f0,{'atMessageId':_0x587d4d||void 0x0});}catch(_0x33a443){if(!_0x302fe6(_0x33a443,0x194))throw _0x33a443;console[_0x4f5517(0x290)](_0x4f5517(0x2d8)+_0x1001f0+_0x4f5517(0x184)+(_0x587d4d?_0x4f5517(0x32a)+_0x587d4d:'')+'.'),process['exit'](0x1);}u(_0x2baab0,_0x4a32d3,_0x3eed41=>{const _0x3785be=_0x4f5517;process[_0x3785be(0x32e)][_0x3785be(0x28c)](_0x3785be(0x33a)+_0x1001f0+'\x20into\x20'+_0x3eed41['id']+'.\x0a'),process[_0x3785be(0x31e)][_0x3785be(0x28c)](_0x3785be(0x2ef)+_0x3eed41['id']+_0x3785be(0x325));});}function Xt({sessions:_0x58e8b7,page:_0x38a2fd,isLastPage:_0xaa972f}){const _0x408d37=_0x531086;if(_0x58e8b7['length']===0x0)process[_0x408d37(0x31e)][_0x408d37(0x28c)]('No\x20sessions\x20on\x20page\x20'+_0x38a2fd+'.\x0a');else{process['stdout'][_0x408d37(0x28c)]('ID'[_0x408d37(0x1c5)](0x24)+'\x20\x20'+_0x408d37(0x2d9)[_0x408d37(0x1c5)](0x13)+_0x408d37(0x19c));for(let _0x5bfe41 of _0x58e8b7){let _0x1d56a4=_0x5bfe41[_0x408d37(0x1b4)][_0x408d37(0x2e7)]('T','\x20')[_0x408d37(0x27d)](0x0,0x13),_0x2aee89=_0x5bfe41[_0x408d37(0x32d)]?_0x408d37(0x29b)+_0x5bfe41[_0x408d37(0x32d)]+')':'';process[_0x408d37(0x32e)][_0x408d37(0x28c)](_0x5bfe41['id'][_0x408d37(0x1c5)](0x24)+'\x20\x20'+_0x1d56a4['padEnd'](0x13)+'\x20\x20'+_0x5bfe41[_0x408d37(0x261)]+_0x2aee89+'\x0a');}}_0xaa972f||process[_0x408d37(0x31e)]['write'](_0x408d37(0x2c4)+(_0x38a2fd+0x1)+'\x0a');}async function Zt(_0x5c34fa){const _0x4c6ce3=_0x531086;let _0x12ef0f=await q(),_0x2f2bd4=_0x5987d2(_0x5c34fa[_0x4c6ce3(0x16b)],_0x12ef0f,_0x5c34fa[_0x4c6ce3(0x28a)]);z(_0x5c34fa[_0x4c6ce3(0x16b)],_0x5c34fa[_0x4c6ce3(0x28a)],_0x2f2bd4);let _0xd77836=await _0x34ac66({'auth':_0x12ef0f,'backendUrl':_0x2f2bd4,'interop':_0x5c34fa[_0x4c6ce3(0x276)]?_0x4c6ce3(0x30d):_0x4c6ce3(0x33e)});u(_0x5c34fa,_0xd77836,({checks:_0x50d8cb})=>{const _0xab5a5b=_0x4c6ce3;for(let _0x321f5a of _0x50d8cb)process['stdout'][_0xab5a5b(0x28c)](en(_0x321f5a)+'\x0a');}),_0xd77836['ok']||process[_0x4c6ce3(0x2b3)](0x1);}function en(_0x45ae9c){const _0xad8e4f=_0x531086;return{'ok':'✓','failed':'✗','skipped':'-'}[_0x45ae9c[_0xad8e4f(0x172)]]+'\x20'+_0x45ae9c[_0xad8e4f(0x361)]['padEnd'](0xa)+_0x45ae9c[_0xad8e4f(0x235)];}var tn=['',_0x531086(0x273),'daily'];function _0xc26a(_0x4a04f2,_0x2228e2){_0x4a04f2=_0x4a04f2-0x166;const _0x6e232e=_0x6e23();let _0xc26ad4=_0x6e232e[_0x4a04f2];return _0xc26ad4;}async function nn(_0x38c94){const _0x10f52e=_0x531086;let _0x57cf8b=_0x38c94[_0x10f52e(0x26c)];tn[_0x10f52e(0x304)](_0x57cf8b)||(console[_0x10f52e(0x290)]('Unknown\x20usage\x20view:\x20'+_0x38c94[_0x10f52e(0x26c)]+_0x10f52e(0x229)),process['exit'](0x2)),_0x57cf8b===''&&_0x38c94['days']!==void 0x0&&(console[_0x10f52e(0x290)](_0x10f52e(0x1c6)),process['exit'](0x2)),_0x57cf8b!==''&&_0x38c94[_0x10f52e(0x2a0)]!==void 0x0&&(console[_0x10f52e(0x290)](_0x10f52e(0x2d0)),process['exit'](0x2));let {client:_0x464c38}=await v(_0x38c94);if(_0x57cf8b===_0x10f52e(0x273)){u(_0x38c94,await _0x44f882(_0x464c38,{'days':_0x38c94[_0x10f52e(0x24a)]}),sn);return;}if(_0x57cf8b===_0x10f52e(0x1bb)){u(_0x38c94,await _0x5e0916(_0x464c38,{'days':_0x38c94['days']}),rn);return;}let [_0x51ba3e,_0x198b85,_0x6c520f]=await Promise[_0x10f52e(0x29e)]([_0x5cd03d(_0x464c38,{'sessionId':_0x38c94[_0x10f52e(0x2a0)]}),_0x2d4ef0(_0x464c38),_0x47e3e3(_0x464c38)]);u(_0x38c94,{'licensing':_0x51ba3e,'monthlySpending':_0x198b85,'cartographerAllowance':_0x6c520f},on);}function on(_0x56abb0){const _0x2180e1=_0x531086;let {licensing:_0x3b09a8,monthlySpending:_0x35c21d,cartographerAllowance:_0x47455d}=_0x56abb0,_0x3bfc2e=[_0x3b09a8['limit_enabled']?_0x2180e1(0x19f)+_0x3b09a8[_0x2180e1(0x1df)]['toFixed'](0x1)+_0x2180e1(0x1d3)+(_0x3b09a8[_0x2180e1(0x20a)]??0x0)+_0x2180e1(0x2e5)+(_0x3b09a8['extra_pool_consumed_pu']>0x0?',\x20'+_0x3b09a8[_0x2180e1(0x349)]+_0x2180e1(0x263):'')+_0x2180e1(0x19a)+_0x3b09a8[_0x2180e1(0x1d4)]+')':'Licensing:\x20\x20\x20\x20no\x20licensing\x20quota\x20applies',_0x2180e1(0x314)+_0x35c21d[_0x2180e1(0x24f)][_0x2180e1(0x1b8)](0x2)+'\x20this\x20month'+(_0x35c21d[_0x2180e1(0x264)]&&_0x35c21d['monthly_limit_usd']!==null?_0x2180e1(0x2cd)+_0x35c21d[_0x2180e1(0x2a6)]['toFixed'](0x2)+_0x2180e1(0x336):_0x2180e1(0x2fd)),'Cartographer:\x20'+_0x47455d[_0x2180e1(0x206)]+'\x20('+_0x47455d['model_id']+')'];_0x3b09a8['session_consumed_pu']!==null&&_0x3b09a8['session_consumed_pu']!==void 0x0&&_0x3bfc2e[_0x2180e1(0x333)]('Session:\x20\x20\x20\x20\x20\x20'+_0x3b09a8[_0x2180e1(0x2c1)]+_0x2180e1(0x200)),process[_0x2180e1(0x32e)]['write'](_0x3bfc2e['join']('\x0a')+'\x0a');}function sn(_0x479083){const _0x20f576=_0x531086;let _0x5e1287=[_0x20f576(0x2ea)+_0x479083[_0x20f576(0x291)]+_0x20f576(0x323)+_0x479083[_0x20f576(0x1f0)]+'\x20sessions\x20on\x20'+_0x479083[_0x20f576(0x19e)]+_0x20f576(0x1d5),_0x20f576(0x293)+_0x479083['total_cost_usd'][_0x20f576(0x1b8)](0x2)+_0x20f576(0x282)+_0x479083['estimated_cost_usd']['toFixed'](0x2)+_0x20f576(0x180)+_0x479083[_0x20f576(0x1ae)]+'\x20token\x20units)',_0x20f576(0x1db)+_0x479083[_0x20f576(0x190)]+'\x20prompt,\x20'+_0x479083['total_completion_tokens']+_0x20f576(0x274)];for(let [_0x19845e,_0x2f49ae]of Object['entries'](_0x479083[_0x20f576(0x1fe)]))_0x5e1287[_0x20f576(0x333)]('\x20\x20'+_0x19845e+':\x20'+_0x2f49ae+_0x20f576(0x2fb));process[_0x20f576(0x32e)]['write'](_0x5e1287[_0x20f576(0x2ed)]('\x0a')+'\x0a');}function rn(_0x1507c5){const _0x5522ba=_0x531086;if(_0x1507c5[_0x5522ba(0x197)]['length']===0x0){process['stdout'][_0x5522ba(0x28c)](_0x5522ba(0x187)+_0x1507c5[_0x5522ba(0x291)]+'\x20days.\x0a');return;}let _0x4018a1=['Date\x20\x20\x20\x20\x20\x20\x20\x20Token\x20units\x20\x20Prompt\x20tokens\x20\x20Completion\x20tokens'];for(let _0x55a8ca of _0x1507c5[_0x5522ba(0x197)])_0x4018a1[_0x5522ba(0x333)](_0x55a8ca[_0x5522ba(0x1ab)]+'\x20\x20'+String(_0x55a8ca[_0x5522ba(0x355)])[_0x5522ba(0x237)](0xb)+'\x20\x20'+String(_0x55a8ca[_0x5522ba(0x223)])[_0x5522ba(0x237)](0xd)+'\x20\x20'+String(_0x55a8ca['completion_tokens'])[_0x5522ba(0x237)](0x11));process[_0x5522ba(0x32e)]['write'](_0x4018a1[_0x5522ba(0x2ed)]('\x0a')+'\x0a');}async function an(_0x116d4e,_0xf778c0){const _0x1873ef=_0x531086;let _0x298d39=await ln(_0x116d4e[_0x1873ef(0x26c)],_0xf778c0);_0x116d4e[_0x1873ef(0x1a1)]&&(_0x298d39[_0x1873ef(0x1a1)]=_0x116d4e[_0x1873ef(0x1a1)]);let {client:_0x59129e}=await v(_0x116d4e);try{_0xf778c0==='evaluate'?u(_0x116d4e,await _0x3f4a89(_0x59129e,_0x298d39,void 0x0),dn):_0xf778c0==='rerank'?u(_0x116d4e,await _0x150849(_0x59129e,_0x298d39,void 0x0),un):u(_0x116d4e,await _0x354bc0(_0x59129e,_0x298d39,void 0x0),pn);}catch(_0xf5f545){if(!_0x5a1339(_0xf5f545))throw _0xf5f545;console[_0x1873ef(0x290)](_0xf5f545['message']),process[_0x1873ef(0x2b3)](0x1);}}async function ln(_0x22cf04,_0x2b5416){const _0x4ee0de=_0x531086;let _0x231460;try{_0x231460=_0x22cf04&&_0x22cf04!=='-'?_0x5c063e[_0x4ee0de(0x1c8)](_0x4f0079['resolve'](_0x22cf04),_0x4ee0de(0x335)):await j(_0x22cf04,process['stdin']);}catch(_0x5c02dd){console[_0x4ee0de(0x290)](_0x2b5416+':\x20cannot\x20read\x20the\x20request\x20('+_0x5c02dd[_0x4ee0de(0x251)]+').'),process[_0x4ee0de(0x2b3)](0x2);}return _0x231460||(console[_0x4ee0de(0x290)](_0x2b5416+_0x4ee0de(0x2fa)+_0x2b5416+_0x4ee0de(0x29a)),process[_0x4ee0de(0x2b3)](0x2)),Ae(_0x231460,_0x2b5416,_0x4ee0de(0x250));}function Ae(_0x4067cf,_0x1f8f95,_0x58f6a8){const _0x46abe2=_0x531086;let _0x38a9e7;try{_0x38a9e7=JSON[_0x46abe2(0x18c)](_0x4067cf);}catch(_0x58035e){console[_0x46abe2(0x290)](_0x1f8f95+':\x20'+_0x58f6a8+_0x46abe2(0x331)+_0x58035e[_0x46abe2(0x251)]+').'),process[_0x46abe2(0x2b3)](0x2);}return(typeof _0x38a9e7!=_0x46abe2(0x356)||_0x38a9e7===null||Array[_0x46abe2(0x1af)](_0x38a9e7))&&(console[_0x46abe2(0x290)](_0x1f8f95+':\x20'+_0x58f6a8+_0x46abe2(0x2a3)),process[_0x46abe2(0x2b3)](0x2)),_0x38a9e7;}function $e(_0x1bc92e,_0x4ad0df){const _0x37365b=_0x531086;let _0x5ed7ff;try{_0x5ed7ff=_0x5c063e[_0x37365b(0x1c8)](_0x4f0079[_0x37365b(0x1a0)](_0x1bc92e),_0x37365b(0x335));}catch(_0x16e0bd){console[_0x37365b(0x290)](_0x4ad0df+_0x37365b(0x1c4)+_0x16e0bd[_0x37365b(0x251)]+').'),process['exit'](0x2);}return Ae(_0x5ed7ff,_0x4ad0df,'the\x20JSON\x20schema');}async function cn(_0x4660b9){const _0x373b37=_0x531086;_0x4660b9[_0x373b37(0x30a)]===void 0x0&&(console[_0x373b37(0x290)](_0x373b37(0x329)),process[_0x373b37(0x2b3)](0x2));let _0x215e61=$e(_0x4660b9['jsonSchemaPath'],_0x373b37(0x2fc)),_0xb401ee=(await j(_0x4660b9[_0x373b37(0x26c)],process[_0x373b37(0x220)]))['trim']();_0xb401ee||(console[_0x373b37(0x290)](_0x373b37(0x322)),process[_0x373b37(0x2b3)](0x2));let {client:_0x4323e9}=await v(_0x4660b9);try{let _0x37928f=await _0x169227(_0x4323e9,{'prompt':_0xb401ee,'jsonSchema':_0x215e61,'model':_0x4660b9[_0x373b37(0x1a1)]||process.env.MODEL||_0x56f0de,..._0x4660b9[_0x373b37(0x2a0)]!==void 0x0&&{'sessionId':_0x4660b9[_0x373b37(0x2a0)]}},void 0x0);u(_0x4660b9,_0x37928f,_0x496291=>{const _0x5c0dfc=_0x373b37;process[_0x5c0dfc(0x32e)][_0x5c0dfc(0x28c)](JSON[_0x5c0dfc(0x173)](_0x496291[_0x5c0dfc(0x2b9)],null,0x2)+'\x0a');});}catch(_0x58e000){if(!_0x26ec1d(_0x58e000))throw _0x58e000;console['error'](_0x58e000[_0x373b37(0x251)]),process[_0x373b37(0x2b3)](0x1);}}function Y(_0x451528){const _0x59174c=_0x531086;process[_0x59174c(0x32e)]['write'](_0x59174c(0x1cb)+_0x451528[_0x59174c(0x1a1)]+'\x20('+_0x451528[_0x59174c(0x24b)]+_0x59174c(0x1e7)+_0x451528['usage'][_0x59174c(0x1cd)]+_0x59174c(0x285));}function dn(_0x27552e){const _0xac446f=_0x531086;Y(_0x27552e);for(let _0x52655a of Object[_0xac446f(0x17f)](_0x27552e['answers'])){let _0x2cdb69=_0x27552e[_0xac446f(0x260)][_0x52655a],_0x59e7fa=_0x2cdb69['type']===_0xac446f(0x17e)?_0xac446f(0x2e4)+_0x2cdb69['probability'][_0xac446f(0x1b8)](0x2):_0x2cdb69['type']===_0xac446f(0x1a3)?_0xac446f(0x208)+_0x2cdb69[_0xac446f(0x1a3)]+_0xac446f(0x308)+_0x2cdb69[_0xac446f(0x27e)][_0xac446f(0x1b8)](0x2)+')':_0xac446f(0x256)+_0x2cdb69['score']['toFixed'](0x2)+_0xac446f(0x308)+_0x2cdb69[_0xac446f(0x27e)]['toFixed'](0x2)+')';process[_0xac446f(0x32e)]['write']('\x20\x20'+_0x52655a+':\x20'+_0x59e7fa+'\x0a');}}function un(_0x10336f){const _0x1afd4d=_0x531086;Y(_0x10336f),_0x10336f['results'][_0x1afd4d(0x2f3)]((_0x562b01,_0x212b0d)=>{const _0xa360b7=_0x1afd4d;process[_0xa360b7(0x32e)][_0xa360b7(0x28c)]('\x20\x20'+(_0x212b0d+0x1)+'.\x20'+_0x562b01['id']+'\x20\x20'+_0x562b01[_0xa360b7(0x2f5)][_0xa360b7(0x1b8)](0x3)+_0xa360b7(0x1bd)+_0x562b01[_0xa360b7(0x258)]+')\x0a');});}function pn(_0x585c21){const _0x40f0f1=_0x531086;Y(_0x585c21),process[_0x40f0f1(0x32e)][_0x40f0f1(0x28c)]('Rubric\x20'+_0x585c21[_0x40f0f1(0x267)]+'\x0a');for(let _0x1ed759 of _0x585c21[_0x40f0f1(0x1e5)])process[_0x40f0f1(0x32e)][_0x40f0f1(0x28c)]('\x20\x20'+_0x1ed759['id']+':\x20'+_0x1ed759[_0x40f0f1(0x22b)]+_0x40f0f1(0x308)+_0x1ed759[_0x40f0f1(0x27e)]['toFixed'](0x2)+')\x0a');}async function mn(_0x56be0a){const _0x4b77e7=_0x531086;let _0x169a09=_0x56be0a[_0x4b77e7(0x26c)][_0x4b77e7(0x231)]();_0x169a09||(console['error'](_0x4b77e7(0x202)),process[_0x4b77e7(0x2b3)](0x2));let {client:_0x3b3d46}=await v(_0x56be0a);try{let _0x40ca6b=_0x169a09==='-'?{'data':await fn(process['stdin'])}:_0x169a09;u(_0x56be0a,await _0x4a01ed(_0x3b3d46,_0x40ca6b,void 0x0),_0x3e2d65=>{const _0x300746=_0x4b77e7;process[_0x300746(0x32e)]['write'](_0x3e2d65['text']+'\x0a');});}catch(_0x5ee6db){if(_0x2cc142(_0x5ee6db)&&(console[_0x4b77e7(0x290)](_0x5ee6db[_0x4b77e7(0x251)]),process[_0x4b77e7(0x2b3)](_0x5ee6db['status']===void 0x0?0x2:0x1)),typeof _0x5ee6db?.['code']!=_0x4b77e7(0x211))throw _0x5ee6db;console[_0x4b77e7(0x290)]('transcribe:\x20cannot\x20read\x20'+_0x169a09+'\x20('+_0x5ee6db[_0x4b77e7(0x251)]+').'),process[_0x4b77e7(0x2b3)](0x2);}}async function fn(_0x3e3878){const _0x3b5229=_0x531086;let _0x13f0e2=[];for await(let _0x1e1b0e of _0x3e3878)_0x13f0e2['push'](Buffer[_0x3b5229(0x166)](_0x1e1b0e));return Buffer['concat'](_0x13f0e2);}var ce=[_0x531086(0x23b),_0x531086(0x2a2),'show',_0x531086(0x2c6),'claim','complete',_0x531086(0x351),_0x531086(0x1b9),_0x531086(0x183),_0x531086(0x198)],de={'list':_0x531086(0x330),'pending':'delegations\x20pending\x20<session-id>','show':_0x531086(0x17a),'create':_0x531086(0x1fb),'claim':'delegations\x20claim\x20<delegation-id|delegate://delegation/…>','complete':_0x531086(0x2ac),'accept':_0x531086(0x1a4),'dismiss':_0x531086(0x1ee),'cancel':_0x531086(0x2ab),'delete':_0x531086(0x33c)};async function gn(_0x2ec5ee){const _0x65553f=_0x531086;let [_0x42f1da='',_0x1bddf7='',..._0x1b33f8]=_0x2ec5ee[_0x65553f(0x328)];ce[_0x65553f(0x304)](_0x42f1da)||(console['error']((_0x42f1da?_0x65553f(0x299)+_0x42f1da+'.\x20':'')+_0x65553f(0x311)+ce[_0x65553f(0x2ed)]('\x20|\x20')+'.'),process[_0x65553f(0x2b3)](0x2));let _0x4b43e8=_0x42f1da;_0x4b43e8!==_0x65553f(0x2c6)&&(_0x2ec5ee[_0x65553f(0x27f)]!==void 0x0||_0x2ec5ee[_0x65553f(0x219)]!==void 0x0||_0x2ec5ee['sessionId']!==void 0x0)&&(console[_0x65553f(0x290)](_0x65553f(0x233)),process[_0x65553f(0x2b3)](0x2));let _0x52639a=(_0x4b43e8===_0x65553f(0x2c6)?_0x2ec5ee[_0x65553f(0x328)][_0x65553f(0x27d)](0x1):_0x1b33f8)['join']('\x20')['trim'](),_0x5ad099=_0x4b43e8==='create'||_0x4b43e8==='complete';(_0x4b43e8!==_0x65553f(0x2c6)&&!_0x1bddf7||(_0x5ad099?!_0x52639a:_0x52639a)||_0x4b43e8===_0x65553f(0x2c6)&&!_0x2ec5ee[_0x65553f(0x2a0)])&&(console['error'](_0x65553f(0x2c9)+de[_0x4b43e8]),process[_0x65553f(0x2b3)](0x2));let _0x27bed9=_0x5ad099&&_0x52639a==='-'?(await j('-',process[_0x65553f(0x220)]))[_0x65553f(0x231)]():_0x52639a;_0x5ad099&&!_0x27bed9&&(console[_0x65553f(0x290)](_0x65553f(0x2c9)+de[_0x4b43e8]+_0x65553f(0x1c1)),process[_0x65553f(0x2b3)](0x2));let {client:_0x105515}=await v(_0x2ec5ee);try{await hn(_0x2ec5ee,_0x105515,_0x4b43e8,_0x1bddf7,_0x27bed9);}catch(_0x7c62d7){if(!_0x4eaa13(_0x7c62d7))throw _0x7c62d7;console[_0x65553f(0x290)](_0x7c62d7[_0x65553f(0x251)]),process['exit'](0x1);}}async function hn(_0x40a2ef,_0x3c723c,_0x1d0fe3,_0x41863a,_0x1d45fe){const _0x153096=_0x531086;switch(_0x1d0fe3){case'list':u(_0x40a2ef,await _0x20b2f3(_0x3c723c,_0x41863a),yn);return;case _0x153096(0x2a2):u(_0x40a2ef,await _0x476d92(_0x3c723c,_0x41863a),_0x10e561=>{const _0x3d9590=_0x153096;_0x10e561[_0x3d9590(0x320)]&&process[_0x3d9590(0x32e)]['write']('Claimed\x20from\x20delegation\x20'+_0x10e561['delegation']['id']+'\x20('+_0x10e561[_0x3d9590(0x320)][_0x3d9590(0x172)]+_0x3d9590(0x1c3)),_0x10e561['pendingResults'][_0x3d9590(0x35f)]===0x0&&process[_0x3d9590(0x31e)][_0x3d9590(0x28c)](_0x3d9590(0x281));for(let _0x57c52e of _0x10e561[_0x3d9590(0x199)])process[_0x3d9590(0x32e)][_0x3d9590(0x28c)]('\x0a'+_0x57c52e['id']+_0x3d9590(0x2cb)+(_0x57c52e[_0x3d9590(0x20f)]??_0x3d9590(0x1d1))+'\x20\x20'+(_0x57c52e[_0x3d9590(0x18a)]??'')+'\x0a'+(_0x57c52e[_0x3d9590(0x2b6)]?.[_0x3d9590(0x2f2)]??'')+'\x0a');_0x10e561['pendingResults'][_0x3d9590(0x35f)]>0x0&&process[_0x3d9590(0x31e)]['write'](_0x3d9590(0x1d2));});return;case _0x153096(0x228):u(_0x40a2ef,await _0x501744(_0x3c723c,_0x41863a),ue);return;case _0x153096(0x2c6):{let _0x37298a=await _0x3cedba(_0x3c723c,{'sessionId':_0x40a2ef['sessionId'],'task':_0x1d45fe,..._0x40a2ef[_0x153096(0x219)]!==void 0x0&&{'contextSummary':_0x40a2ef[_0x153096(0x219)]},..._0x40a2ef[_0x153096(0x27f)]!==void 0x0&&{'recipient':_0x40a2ef[_0x153096(0x27f)]}});u(_0x40a2ef,_0x37298a,_0x591bb8=>{const _0x3bebaf=_0x153096;_0x591bb8[_0x3bebaf(0x2e8)]?process[_0x3bebaf(0x32e)]['write']('Delegated\x20'+_0x591bb8[_0x3bebaf(0x18f)]+_0x3bebaf(0x19d)+_0x591bb8[_0x3bebaf(0x2e8)]['displayName']+'\x20<'+_0x591bb8[_0x3bebaf(0x2e8)][_0x3bebaf(0x1b0)]+_0x3bebaf(0x201)):process[_0x3bebaf(0x32e)][_0x3bebaf(0x28c)](_0x3bebaf(0x2cf)+_0x591bb8[_0x3bebaf(0x18f)]+_0x3bebaf(0x32b)+_0x591bb8['deepLink']+'\x0a');});return;}case _0x153096(0x221):{let _0x310795=await _0x465239(_0x3c723c,_0x41863a);u(_0x40a2ef,_0x310795,_0x29dc25=>{const _0x27d59b=_0x153096;ue(_0x29dc25),process[_0x27d59b(0x32e)][_0x27d59b(0x28c)]('Session\x20\x20\x20\x20\x20\x20\x20'+_0x29dc25['sessionId']+'\x0a'),process['stderr']['write']('Work\x20on\x20it\x20with:\x20delegate-cli\x20--session\x20'+_0x29dc25[_0x27d59b(0x2a0)]+_0x27d59b(0x265)+_0x29dc25[_0x27d59b(0x18f)]+_0x27d59b(0x224));});return;}case _0x153096(0x2fc):{let {alreadyCompleted:_0x4a11d7}=await _0xf631aa(_0x3c723c,_0x41863a,{'content':_0x1d45fe});u(_0x40a2ef,{'delegationId':_0x41863a,'alreadyCompleted':_0x4a11d7},_0x40e46e=>{const _0xd39670=_0x153096;process[_0xd39670(0x32e)][_0xd39670(0x28c)]((_0x40e46e['alreadyCompleted']?_0xd39670(0x185):_0xd39670(0x24e))+'\x20delegation\x20'+_0x40e46e[_0xd39670(0x18f)]+'.\x0a');});return;}case _0x153096(0x351):{let _0x43317e=await _0xe44e7f(_0x3c723c,_0x41863a);u(_0x40a2ef,{'delegationId':_0x41863a,..._0x43317e},_0x45dc92=>{const _0x1c77a5=_0x153096;process['stdout'][_0x1c77a5(0x28c)]((_0x45dc92[_0x1c77a5(0x1e1)]?_0x1c77a5(0x294):_0x1c77a5(0x283))+_0x1c77a5(0x218)+_0x45dc92[_0x1c77a5(0x18f)]+'.\x0a');});return;}default:{let _0x289063={'dismiss':_0x4e4048,'cancel':_0x1bce2c,'delete':_0x3ffeb3}[_0x1d0fe3];await _0x289063(_0x3c723c,_0x41863a);let _0x30d471={'dismiss':'dismissed','cancel':'cancelled','delete':_0x153096(0x25a)}[_0x1d0fe3];u(_0x40a2ef,{'delegationId':_0x41863a,[_0x30d471]:!0x0},()=>{const _0x15a8a1=_0x153096;process[_0x15a8a1(0x32e)][_0x15a8a1(0x28c)](''+_0x30d471[0x0]['toUpperCase']()+_0x30d471[_0x15a8a1(0x27d)](0x1)+_0x15a8a1(0x218)+_0x41863a+'.\x0a');});}}}function yn(_0x48fa01){const _0x549f11=_0x531086;if(_0x48fa01[_0x549f11(0x35f)]===0x0){process[_0x549f11(0x31e)][_0x549f11(0x28c)](_0x549f11(0x241));return;}process[_0x549f11(0x32e)][_0x549f11(0x28c)]('ID'['padEnd'](0x24)+'\x20\x20'+'STATUS'[_0x549f11(0x1c5)](0x9)+'\x20\x20'+_0x549f11(0x2df)[_0x549f11(0x1c5)](0x18)+_0x549f11(0x191));for(let _0x5c077e of _0x48fa01)process[_0x549f11(0x32e)][_0x549f11(0x28c)](_0x5c077e['id'][_0x549f11(0x1c5)](0x24)+'\x20\x20'+_0x5c077e[_0x549f11(0x172)][_0x549f11(0x1c5)](0x9)+'\x20\x20'+(_0x5c077e[_0x549f11(0x20f)]??'-')[_0x549f11(0x1c5)](0x18)+'\x20\x20'+(_0x5c077e[_0x549f11(0x18a)]??'')+'\x0a');}function ue(_0x911004){const _0x3659d6=_0x531086;process[_0x3659d6(0x32e)][_0x3659d6(0x28c)](_0x3659d6(0x341)+(_0x911004['sourceUserEmail']??'-')+'\x0a'),_0x911004[_0x3659d6(0x1c7)]&&process[_0x3659d6(0x32e)][_0x3659d6(0x28c)](_0x3659d6(0x342)+_0x911004[_0x3659d6(0x1c7)]+'\x0a'),process[_0x3659d6(0x32e)][_0x3659d6(0x28c)](_0x3659d6(0x1a8)+(_0x911004[_0x3659d6(0x18a)]??'-')+'\x0a'),_0x911004[_0x3659d6(0x219)]&&process['stdout'][_0x3659d6(0x28c)]('\x0a'+_0x911004[_0x3659d6(0x219)]+'\x0a\x0a');}async function wn(_0x418d52){const _0x48caeb=_0x531086;_0x418d52['prompt'][_0x48caeb(0x231)]()||(console[_0x48caeb(0x290)](_0x48caeb(0x175)),process['exit'](0x2));let {client:_0x451715}=await v(_0x418d52),_0x92548b;try{_0x92548b=await _0x1200ba(_0x451715,_0x418d52[_0x48caeb(0x26c)]);}catch(_0x1dc855){if(!_0x4eaa13(_0x1dc855))throw _0x1dc855;console['error'](_0x1dc855[_0x48caeb(0x251)]),process['exit'](0x1);}u(_0x418d52,_0x92548b,_0x2c028e=>{const _0x13ccf5=_0x48caeb;_0x2c028e[_0x13ccf5(0x35f)]===0x0&&process[_0x13ccf5(0x31e)]['write'](_0x13ccf5(0x348)+_0x418d52[_0x13ccf5(0x26c)]['trim']()+_0x13ccf5(0x2f8));for(let _0x438c2d of _0x2c028e)process['stdout'][_0x13ccf5(0x28c)](_0x438c2d[_0x13ccf5(0x1b0)][_0x13ccf5(0x1c5)](0x20)+'\x20\x20'+_0x438c2d[_0x13ccf5(0x33b)]+'\x0a');});}async function kn(_0x3d95f8){const _0x594080=_0x531086;_0x3d95f8[_0x594080(0x16b)]===_0x594080(0x2a5)&&(console[_0x594080(0x290)](_0x594080(0x28d)),process[_0x594080(0x2b3)](0x2));let _0x33a2d0=M(_0x2c6131()),_0x281953=_0x3d95f8[_0x594080(0x2db)];if(_0x3d95f8['env']){let _0x260f5a=_0x3d95f8[_0x594080(0x16b)];await _0x96e922({'env':_0x260f5a,'tenant':_0x3d95f8[_0x594080(0x324)]??G(_0x33a2d0,_0x49f564[_0x260f5a]),'skipEnvCheck':_0x281953});return;}let _0x1ebf16=_0x3d95f8['url']??ve();if(_0x1ebf16){await _0x96e922({'baseUrl':_0x1ebf16,'tenant':_0x3d95f8['tenant']??G(_0x33a2d0,_0x1ebf16),'skipEnvCheck':_0x281953});return;}if(_0x33a2d0?.['baseUrl']){await _0x96e922({'baseUrl':_0x33a2d0['baseUrl'],'tenant':_0x3d95f8[_0x594080(0x324)]??_0x33a2d0[_0x594080(0x1ef)],'skipEnvCheck':_0x281953});return;}console[_0x594080(0x290)](_0x594080(0x2e1)),process['exit'](0x2);}function _0x6e23(){const _0x2a5e3b=['lockReason','[env=','organizationId','type','answers','title','cwd','\x20PU\x20beyond\x20quota','limit_enabled','\x20\x22<prompt>\x22\x0aAnswer\x20with:\x20delegate-cli\x20delegations\x20complete\x20','Invalid\x20--effort:\x20','rubric_version','76275yusQJz','from\x20','--days\x20applies\x20to\x20`delegate-cli\x20usage\x20activity|daily`\x20only.','bind','prompt','catch','off','9BBDyjn','--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.','findIndex','--project','activity','\x20completion','data','headless','Invalid\x20--output-format:\x20','entries','834054VIzbnH','\x20in\x20steps\x20of\x20','--no-memory','items','slice','confidence','delegateTo','--summary','No\x20answers\x20awaiting\x20acceptance.\x0a','\x20(estimated\x20$','Accepted','structuredError','\x20tokens\x0a','\x0aStopping…\x20(Ctrl+C\x20again\x20to\x20force\x20exit)\x0a','--tenant\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Switch\x20tenants\x20with:\x20delegate-cli\x20tenant\x20<name>','label','No\x20turn\x20','backendUrl','--output-format','write','--env\x20localhost\x20has\x20no\x20OAuth\x20flow;\x20pick\x20alpha,\x20staging,\x20or\x20production.','1\x20or\x20more','bundledSkillsPath','error','period_days','help','Cost:\x20\x20\x20$','Already\x20accepted','a\x20project\x20id','bucket','projectId','host','Unknown\x20delegations\x20action:\x20','\x20<file.json>,\x20or\x20-\x20to\x20read\x20stdin.','\x20\x20(sub-agent\x20of\x20','UIPATH_BASE_URL\x20is\x20unusable.\x20','isSafeInteger','all','limit','sessionId','questions','pending','\x20must\x20be\x20a\x20JSON\x20object.','--attach\x20applies\x20to\x20prompts\x20only.','localhost','monthly_limit_usd','Usage:\x20delegate-cli\x20sessions\x20cancel\x20<session-id>\x20--turn\x20<turn-id>','--quiet','--keep-alive','thinking','delegations\x20cancel\x20<delegation-id>','delegations\x20complete\x20<delegation-id>\x20\x22<answer>\x22|-','print','21399AKmxIS','refused','Tenant:\x20','a\x20deployment\x20URL,\x20e.g.\x20https://automationsuite.contoso.com','a\x20briefing\x20text','exit','\x20(in\x20','--no-security','result','\x20not\x20found.','--output-format\x20','structured','startsWith','\x20(Delegate\x20desktop\x20app\x20fallback)','--worker-id','--turn\x20applies\x20to\x20`delegate-cli\x20sessions\x20cancel`\x20only.','\x20\x20\x20\x20BYO\x20warning:\x20','optional','removeEventListener','session_consumed_pu','):\x20','whoami','More:\x20delegate-cli\x20sessions\x20--page\x20','\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).','create','options','round','Usage:\x20delegate-cli\x20','--json-schema','\x20\x20from\x20','interopPath','\x20of\x20a\x20$','an\x20email\x20address\x20or\x20name','Created\x20delegation\x20','--session\x20applies\x20to\x20the\x20`delegate-cli\x20usage`\x20summary\x20only.','Token:\x20\x20\x20\x20\x20\x20\x20\x20expired\x20','getTurnUsageHistory',']\x20(Enter\x20for\x20','a\x20directory\x20path','isInteger','\x20(Enter\x20to\x20skip):\x20','a\x20skill\x20name','Session\x20','UPDATED','delegations','skipEnvCheck','test','rmSync','page','ASSIGNEE','\x20applies\x20to\x20prompts\x20and\x20to\x20these\x20commands\x20only:\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','pause','origin','probability\x20','\x20PU\x20used','version','replace','assignedUser','intro','Last\x20','\x0a🤔\x20','noMemory','join','min','Continue\x20it\x20with:\x20delegate-cli\x20--session\x20','5000020AzttzQ','\x20is\x20required.\x0a','content','forEach','Enter\x20a\x20number\x20','score','--turn','log','\x22.\x0a','userinput','\x20needs\x20a\x20JSON\x20request:\x20delegate-cli\x20','\x20token\x20units','complete','\x20(no\x20cap\x20enforced)','isTTY','--backend','--effort','alpha','effort','endQuestions','includes','argv','SIGINT','typed','\x20(confidence\x20','--limit','jsonSchemaPath','.aria','Invalid\x20--project:\x20\x22','skip','\x20min)','existsSync','unknown','Use:\x20delegate-cli\x20delegations\x20','then','session_start','Spending:\x20\x20\x20\x20\x20$','package.json','noConnections','\x20(type\x20your\x20own)','taskAutomation','lastType','\x0aAvailable\x20models\x20(','\x20or\x20your\x20own\x20answer','Could\x20not\x20check\x20BYO\x20model\x20warnings:\x20','org-users','stderr','--preload-skill','delegation','userId','complete\x20needs\x20a\x20prompt:\x20delegate-cli\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22,\x20or\x20-\x20to\x20read\x20stdin.','\x20days:\x20','tenant','\x20\x22<prompt>\x22\x0a','\x27\x20is\x20empty.','Pass\x20either\x20--env\x20(a\x20named\x20cloud)\x20or\x20--url\x20(any\x20other\x20deployment),\x20not\x20both.','operands','complete\x20needs\x20--json-schema\x20<file>:\x20delegate-cli\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22.',',\x20or\x20holds\x20no\x20message\x20','.\x20Share:\x20','rejection','parentSessionId','stdout','includeSubAgents','delegations\x20list\x20<backend-project-id>','\x20is\x20not\x20valid\x20JSON\x20(','.\x20Use\x20','push','--skip-env-check','utf-8','\x20cap','--task-automation','turn_start','restore','Forked\x20','displayName','delegations\x20delete\x20<delegation-id>','map','spawn','Interop\x20stopped\x20(if\x20it\x20was\x20running).','shift','From\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Session\x20\x20\x20\x20\x20\x20\x20','\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',']\x20Backend\x20URL:\x20','.\x20Use:\x20','Enter\x20sends\x20a\x20message.\x20/exit\x20or\x20EOF\x20exits;\x20Ctrl+C\x20stops\x20and\x20exits.\x0a','noComputerUse','No\x20one\x20matches\x20\x22','extra_pool_consumed_pu','1541504boiQYW','--attach:\x20no\x20such\x20file\x20or\x20folder:\x20','Token:\x20\x20\x20\x20\x20\x20\x20\x20expires\x20','step','deployment','tenantId','\x27\x20cannot\x20be\x20read:\x20','accept','description','Switch\x20with:\x20delegate-cli\x20tenant\x20<name>\x0a','rerank','token_units','object','--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`delegate-cli\x20sessions`\x20only.','text','quiet','auth','Session:\x20','Auth\x20comes\x20from\x20AUTH_TOKEN/TENANT_ID/ORG_ID\x20—\x20set\x20TENANT_ID\x20and\x20TENANT_SLUG\x20to\x20change\x20the\x20tenant.','stream-json','No\x20CLI\x20login\x20found\x20—\x20nothing\x20to\x20remove.','length','verbose','name','from','models','outputFormat','sendMessage','url','env','cancelled','/exit','floor','login','signal','toString','status','stringify','\x20(optional)','Usage:\x20delegate-cli\x20org-users\x20<name\x20or\x20email\x20prefix>','3GaVkgG','\x20|\x20','end','hide','delegations\x20show\x20<delegation-id|delegate://delegation/…>','stop','concat','Input\x20closed\x20before\x20the\x20question\x20was\x20answered.','probability','keys','\x20from\x20','a\x20format\x20(','isError','cancel','\x20not\x20found,\x20has\x20no\x20messages','Already\x20answered',';\x20the\x20saved\x20login\x20still\x20uses\x20','No\x20usage\x20in\x20the\x20last\x20','1106168PpohKk','workingDirectory','task','stack','parse','\x20<title>','--url\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Other\x20commands\x20follow\x20the\x20saved\x20login,\x20or\x20--backend\x20<url>.','delegationId','total_prompt_tokens','\x20\x20TASK\x0a','subFields','--interop','from\x201\x20to\x20','some','--include-subagents','daily_usage','delete','pendingResults','\x20(resets\x20','sessions','\x20\x20TITLE\x0a','\x20to\x20','active_days','Licensing:\x20\x20\x20\x20','resolve','model','You>\x20','choice','delegations\x20accept\x20<delegation-id>','Organization\x20\x20','unit','default','Task\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20in\x20progress\x20on\x20session\x20','Renamed\x20','date','filter','--skills-path','total_token_units','isArray','email','add','✓\x20Done\x0a','No\x20structured\x20output:\x20the\x20turn\x20failed\x20(','updatedAt','Delegation\x20\x20\x20\x20','Your\x20answer,\x20as\x20text\x20(the\x20CLI\x20attaches\x20no\x20files;\x20Enter\x20to\x20skip):\x20','\x20—\x20sign\x20out\x20in\x20the\x20Delegate\x20app\x20to\x20clear\x20that.','toFixed','dismiss','multiSelect','daily','The\x20turn\x20was\x20cancelled.','\x20\x20(input\x20#','a\x20session\x20id',')\x20—\x20saved\x20to\x20','--no-connections','\x20(stdin\x20was\x20empty)','--tenant\x20requires\x20a\x20tenant\x20name.',').\x0a',':\x20cannot\x20read\x20the\x20JSON\x20schema\x20(','padEnd','--days\x20applies\x20to\x20`delegate-cli\x20usage\x20activity|daily`;\x20the\x20summary\x20covers\x20the\x20current\x20month.','sourceTitle','readFileSync','file','subcommand','Model\x20','Enter\x20one\x20number\x20from\x201\x20to\x20','total_tokens','logout','Removed\x20','Tenant\x20not\x20switched:\x20could\x20not\x20write\x20','a\x20colleague','\x0aAccept\x20one\x20with:\x20delegate-cli\x20delegations\x20accept\x20<id>\x0a','%\x20of\x20','period_end','\x20active\x20days','\x20(current)','--tenant','\x20(resume\x20with\x20--session\x20','xhigh','Tenant:\x20\x20\x20\x20\x20\x20\x20','Tokens:\x20','--working-dir','kind','Organization:\x20','pct_used','Tenants\x20of\x20','alreadyAccepted','buckets','fork','attachments','results','Usage:\x20delegate-cli\x20sessions\x20[list]\x20[--page\x20N]\x20[--limit\x20N]\x20[--include-subagents]','),\x20','orgLogicalName','AUTH_TOKEN_FILE\x20\x27','[saved\x20login]\x20Backend\x20URL:\x20','expiresAt','):\x0a\x0a',',\x20whose\x20tenant\x20is\x20chosen\x20in\x20the\x20app.\x20Run\x20`delegate-cli\x20login\x20--env\x20<env>`\x20for\x20a\x20CLI\x20login\x20of\x20your\x20own.','delegations\x20dismiss\x20<delegation-id>','tenantName','total_sessions','\x20\x20\x20\x20','\x20-\x20','No\x20CLI\x20login\x20to\x20switch:\x20the\x20CLI\x20is\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20','Your\x20answer\x20(Enter\x20to\x20skip):\x20','usage','isDesktopFallback','Numbers,\x20separated\x20by\x20commas\x20(Enter\x20to\x20skip):\x20','now','125XPIsKw','transcribe','delegations\x20create\x20--session\x20<id>\x20[--to\x20<email|name>]\x20[--summary\x20<text>]\x20\x22<task>\x22|-','workerId','delegate-cli','models_breakdown','a\x20file\x20path','\x20PU','>.\x0a','transcribe\x20needs\x20audio:\x20delegate-cli\x20transcribe\x20<file>,\x20or\x20-\x20to\x20read\x20stdin.','noSecurity','Usage:\x20delegate-cli\x20sessions\x20fork\x20<id>\x20[<message-id>]','Missing\x20prompt.\x20Pass\x20it\x20as\x20an\x20argument,\x20pipe\x20it\x20via\x20stdin,\x20or\x20run\x20`delegate-cli\x20--help`.','mode','verify','choice\x20','\x0a⚠️\x20\x20Auth\x20expired.\x20Opening\x20browser\x20to\x20re-login…\x0a','total_quota_pu','--to','setPrompt','a\x20number','.\x20Use\x20alpha\x20|\x20staging\x20|\x20production\x20|\x20localhost.','assignedUserEmail','--json-schema\x20applies\x20to\x20prompts\x20and\x20to\x20`delegate-cli\x20complete`\x20only.','string','input','medium','turnId','fields','done','preloadSkills','\x20delegation\x20','contextSummary','\x20must\x20be\x20a\x20whole\x20number\x20','erase','--verbose','getSessionId','No\x20CLI\x20login\x20found.\x20Run\x20`delegate-cli\x20login\x20--env\x20<alpha|staging|production>`\x20first.','environment\x20variables\x20(AUTH_TOKEN/TENANT_ID/ORG_ID)','stdin','claim','rename','prompt_tokens','\x20\x22<answer>\x22\x0a','max','byoWarning','--authority','show','.\x20Use\x20`delegate-cli\x20usage`,\x20`usage\x20activity`\x20or\x20`usage\x20daily`.','tool_call','verdict','Cancel\x20requested\x20for\x20turn\x20','aborted','baseUrl','runnerUrl','--session','trim','header','--to,\x20--summary\x20and\x20--session\x20apply\x20to\x20`delegate-cli\x20delegations\x20create`\x20only.','\x20(cancel\x20with:\x20delegate-cli\x20sessions\x20cancel\x20','detail','auth.json','padStart','high','low','cleanup','list','abort','No\x20CLI\x20login\x20found.\x20Note:\x20the\x20CLI\x20is\x20currently\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20','--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`delegate-cli\x20sessions\x20[list]`\x20only.','destroy','Usage:\x20delegate-cli\x20sessions\x20','No\x20delegations.\x0a','evaluate','Deployment:\x20\x20\x20','1286WCIsTQ','Base\x20URL:\x20\x20\x20\x20\x20','split','an\x20effort\x20tier','exitCode','--skip-env-check\x20applies\x20to\x20`delegate-cli\x20login`\x20only.','days','model_version','Unknown\x20sessions\x20action:\x20',',\x20got\x20','Answered','monthly_spend_usd','the\x20request','message','production','check','toolName','--task-automation\x20applies\x20to\x20prompts\x20only.','score\x20','--version','index','close','deleted','onEvent'];_0x6e23=function(){return _0x2a5e3b;};return _0x6e23();}function G(_0x56e2fa,_0x5dcbed){const _0x2aecce=_0x531086;return _0x56e2fa?.[_0x2aecce(0x22e)]&&bn(_0x56e2fa[_0x2aecce(0x22e)],_0x5dcbed)?_0x56e2fa[_0x2aecce(0x1ef)]:void 0x0;}function bn(_0xa3ba7f,_0x523df9){const _0x23a82a=_0x531086;try{return new URL(_0xa3ba7f)[_0x23a82a(0x2e3)]===new URL(_0x523df9)['origin'];}catch{return!0x1;}}async function Sn(_0x4348d8){const _0x234bd0=_0x531086;Q()&&(console[_0x234bd0(0x290)](_0x234bd0(0x35c)),process[_0x234bd0(0x2b3)](0x2));let _0x52d0fa=await _0x1155d6();if(_0x52d0fa||(console[_0x234bd0(0x290)](vn()),process['exit'](0x2)),_0x4348d8['trim']()){let _0x4a7e2a=await _0x328250(_0x52d0fa,_0x4348d8);_0x2a0232(_0x4a7e2a)||(console[_0x234bd0(0x290)](_0x234bd0(0x1d0)+_0x2c6131()+_0x234bd0(0x186)+_0x52d0fa['tenantName']+'.'),process[_0x234bd0(0x2b3)](0x1)),console['log'](_0x234bd0(0x2b0)+_0x4a7e2a[_0x234bd0(0x1ef)]+'\x20('+_0x4a7e2a['tenantId']+_0x234bd0(0x1bf)+_0x2c6131());return;}An(await _0x3bd1f4(_0x52d0fa),_0x52d0fa);}function vn(){const _0x3c2d25=_0x531086;if(_0x5c063e[_0x3c2d25(0x30f)](_0x2c6131()))return'The\x20saved\x20CLI\x20login\x20could\x20not\x20be\x20refreshed.\x20Run\x20`delegate-cli\x20login`\x20again.';let _0x11ba10=K();return M(_0x11ba10)?_0x3c2d25(0x1f3)+_0x11ba10+_0x3c2d25(0x1ed):_0x3c2d25(0x21e);}function An(_0x3d837c,_0x373340){const _0x5307b7=_0x531086;let _0xf7b2ca=_0x3d837c[_0x5307b7(0x33d)](_0x16d936=>_0x16d936['id']===_0x373340[_0x5307b7(0x34f)]?'*\x20'+_0x16d936['name']+_0x5307b7(0x1d6):'\x20\x20'+_0x16d936[_0x5307b7(0x361)]);process[_0x5307b7(0x32e)][_0x5307b7(0x28c)](_0x5307b7(0x1e0)+(_0x373340[_0x5307b7(0x1e8)]??_0x373340[_0x5307b7(0x25e)])+':\x0a'+_0xf7b2ca[_0x5307b7(0x2ed)]('\x0a')+'\x0a'),_0x3d837c[_0x5307b7(0x35f)]>0x1&&process[_0x5307b7(0x32e)][_0x5307b7(0x28c)](_0x5307b7(0x353));}function $n(_0x3b271e){const _0x4a35c8=_0x531086;return _0x3b271e?.['response']?.[_0x4a35c8(0x172)]===0x191||/401/['test'](String(_0x3b271e?.[_0x4a35c8(0x251)]??''));}var f={'lastType':null,'quiet':!0x1},Ee=_0xb2c38a=>{const _0x9c3202=_0x531086;switch(_0xb2c38a[_0x9c3202(0x25f)]){case _0x9c3202(0x313):_0xb2c38a['sessionId']&&_0xb2c38a[_0x9c3202(0x2a0)]!==f[_0x9c3202(0x2a0)]&&(process['stderr'][_0x9c3202(0x28c)](_0x9c3202(0x35b)+_0xb2c38a['sessionId']+_0x9c3202(0x1d8)+_0xb2c38a[_0x9c3202(0x2a0)]+')\x0a'),f[_0x9c3202(0x2a0)]=_0xb2c38a[_0x9c3202(0x2a0)]);break;case _0x9c3202(0x338):_0xb2c38a[_0x9c3202(0x214)]&&_0xb2c38a['turnId']!==f['turnId']&&(f['lastType']!==null&&process[_0x9c3202(0x31e)][_0x9c3202(0x28c)]('\x0a'),process[_0x9c3202(0x31e)][_0x9c3202(0x28c)]('Turn:\x20'+_0xb2c38a['turnId']+_0x9c3202(0x234)+_0xb2c38a['sessionId']+'\x20--turn\x20'+_0xb2c38a['turnId']+')\x0a'),f[_0x9c3202(0x214)]=_0xb2c38a['turnId'],f[_0x9c3202(0x319)]=_0x9c3202(0x338));break;case _0x9c3202(0x2aa):_0xb2c38a[_0x9c3202(0x2f2)]&&!f[_0x9c3202(0x359)]&&(f['lastType']!==_0x9c3202(0x2aa)&&process[_0x9c3202(0x31e)][_0x9c3202(0x28c)](_0x9c3202(0x2eb)),process[_0x9c3202(0x31e)][_0x9c3202(0x28c)](_0xb2c38a[_0x9c3202(0x2f2)]),f['lastType']=_0x9c3202(0x2aa));break;case'tool_call':f[_0x9c3202(0x319)]!==null&&process[_0x9c3202(0x31e)][_0x9c3202(0x28c)]('\x0a'),process[_0x9c3202(0x31e)]['write']('🔧\x20'+(_0xb2c38a[_0x9c3202(0x254)]??'tool')+'\x0a'),f['lastType']=_0x9c3202(0x22a);break;case _0x9c3202(0x251):_0xb2c38a['content']&&(f[_0x9c3202(0x319)]!=='message'&&f['lastType']!==null&&process[_0x9c3202(0x32e)][_0x9c3202(0x28c)]('\x0a'),process[_0x9c3202(0x32e)][_0x9c3202(0x28c)](_0xb2c38a[_0x9c3202(0x2f2)]),f[_0x9c3202(0x319)]=_0x9c3202(0x251));break;case _0x9c3202(0x290):f['lastType']!==null&&process['stderr']['write']('\x0a'),process[_0x9c3202(0x31e)][_0x9c3202(0x28c)]('✗\x20'+(_0xb2c38a[_0x9c3202(0x290)]??_0x9c3202(0x290))+'\x0a'),f[_0x9c3202(0x319)]=_0x9c3202(0x290);break;case _0x9c3202(0x216):(f[_0x9c3202(0x319)]==='message'||f[_0x9c3202(0x319)]===_0x9c3202(0x2aa))&&process[_0x9c3202(0x32e)][_0x9c3202(0x28c)]('\x0a'),process[_0x9c3202(0x31e)][_0x9c3202(0x28c)](_0x9c3202(0x1b2)),f[_0x9c3202(0x319)]=_0x9c3202(0x216);break;}};function pe(_0x11c7b1,_0x5d509b,_0x17b0b9,_0x4f6fe1){const _0x5ba276=_0x531086;let _0x195510=_0x11c7b1[_0x5ba276(0x1a1)]||process.env.MODEL;return{'backendUrl':_0x17b0b9,'auth':_0x5d509b,'enableComputerUse':!_0x11c7b1[_0x5ba276(0x276)]&&!_0x11c7b1[_0x5ba276(0x347)],'autoSpawnInterop':!_0x11c7b1[_0x5ba276(0x276)],'enableConnections':!_0x11c7b1[_0x5ba276(0x316)],'enableSecurity':!_0x11c7b1[_0x5ba276(0x203)],'keepInteropAlive':_0x11c7b1['keepAlive'],..._0x4f6fe1['oneTurn']?{'enableBackgroundCommands':!0x1}:{},..._0x11c7b1[_0x5ba276(0x2ec)]?{'enableMemory':!0x1}:{},..._0x11c7b1[_0x5ba276(0x318)]?{'enableTaskAutomation':!0x0}:{},..._0x11c7b1[_0x5ba276(0x217)][_0x5ba276(0x35f)]>0x0?{'preloadSkills':_0x11c7b1[_0x5ba276(0x217)]}:{},..._0x195510?{'model':_0x195510}:{},..._0x11c7b1[_0x5ba276(0x297)]?{'projectId':_0x11c7b1[_0x5ba276(0x297)]}:{},..._0x11c7b1[_0x5ba276(0x189)]?{'workingDirectory':_0x11c7b1[_0x5ba276(0x189)]}:{},..._0x11c7b1[_0x5ba276(0x28f)]?{'bundledSkillsPath':_0x11c7b1[_0x5ba276(0x28f)]}:{},..._0x11c7b1[_0x5ba276(0x302)]?{'effort':_0x11c7b1['effort']}:{},..._0x11c7b1[_0x5ba276(0x2a0)]?{'sessionId':_0x11c7b1[_0x5ba276(0x2a0)]}:{},..._0x11c7b1[_0x5ba276(0x360)]?{'verbose':!0x0}:{}};}async function En(_0x1f696b){const _0x566e3c=_0x531086;let _0x434822=_0x1f696b[_0x566e3c(0x168)]!==_0x566e3c(0x358),_0x308a36=_0x1f696b[_0x566e3c(0x30a)]===void 0x0?null:$e(_0x1f696b['jsonSchemaPath'],_0x566e3c(0x1fd)),_0x16d219=!_0x434822&&!_0x308a36&&!_0x1f696b['print']&&_0x1f696b['prompt']!=='-'&&!!process['stdin'][_0x566e3c(0x2fe)]&&!!process[_0x566e3c(0x32e)][_0x566e3c(0x2fe)],_0x1f7076=_0x16d219?_0x1f696b['prompt'][_0x566e3c(0x231)]():await j(_0x1f696b[_0x566e3c(0x26c)],process['stdin']);if(!_0x16d219&&!_0x1f7076&&(console['error'](_0x566e3c(0x205)),process[_0x566e3c(0x2b3)](0x2)),!_0x434822){await me(_0x1f696b,_0x1f7076,_0x16d219,null,_0x308a36);return;}let _0x4be25d=!0x1,_0x587714=_0x7208ee=>{const _0x58f4f9=_0x566e3c;_0x4be25d=!0x0,P(_0xb21b9e(_0x7208ee)),(_0x7208ee[_0x58f4f9(0x182)]||_0x7208ee[_0x58f4f9(0x284)])&&(process['exitCode']=0x1);},_0x3f3937=Date[_0x566e3c(0x1f8)]();try{await me(_0x1f696b,_0x1f7076,!0x1,_0x587714,_0x308a36);}catch(_0x553a5e){if(_0x4be25d)throw _0x553a5e;process['stderr'][_0x566e3c(0x28c)]((_0x553a5e instanceof Error?_0x553a5e['stack']??_0x553a5e[_0x566e3c(0x251)]:String(_0x553a5e))+'\x0a'),_0x587714(new _0x12e810(_0x3f3937)['finish']({'endedAtMs':Date[_0x566e3c(0x1f8)](),'usage':[],'error':_0x553a5e}));}}async function me(_0x4b16a0,_0x388a3e,_0x2f9ec9,_0x5098ff,_0x5ea149){const _0x386eca=_0x531086;f={'lastType':null,'quiet':_0x4b16a0[_0x386eca(0x359)]};let _0x20d0c6=new Set(),_0x8eecc1,_0x36e9ae=_0x2216aa=>{const _0x19437e=_0x386eca;(!_0x5098ff||_0x2216aa[_0x19437e(0x25f)]===_0x19437e(0x313)||_0x2216aa[_0x19437e(0x25f)]==='turn_start')&&(_0x8eecc1??Ee)(_0x2216aa);for(let _0x111c31 of _0x20d0c6)_0x111c31(_0x2216aa);},_0x20077d=await q(),_0x3ad26e=new _0x14a24f();_0x3ad26e[_0x386eca(0x25b)](_0x36e9ae);let _0x1db2af=_0x5987d2(_0x4b16a0[_0x386eca(0x16b)],_0x20077d,_0x4b16a0[_0x386eca(0x28a)]);z(_0x4b16a0[_0x386eca(0x16b)],_0x4b16a0[_0x386eca(0x28a)],_0x1db2af);let _0x597b19={'input':null},_0x23b40e=_0x2f9ec9?Z(()=>_0x597b19[_0x386eca(0x212)],_0x1ee6c9=>{const _0x1382fc=_0x386eca;process[_0x1382fc(0x31e)][_0x1382fc(0x28c)](_0x1ee6c9);}):null,_0x586511=_0x498eb1=>_0x23b40e?{..._0x498eb1,'askUser':_0x23b40e}:_0x498eb1,_0x11b876=_0x586511(pe(_0x4b16a0,_0x20077d,_0x1db2af,{'oneTurn':!_0x2f9ec9})),_0x396d0e=!0x1,_0x17dbe2=!0x1,_0x2830fa,_0x8f9f8d=()=>_0x2830fa??=_0x3ad26e[_0x386eca(0x23f)](),_0x176870=()=>{const _0x4f8536=_0x386eca;_0x17dbe2&&process[_0x4f8536(0x2b3)](0x82),_0x17dbe2=!0x0,process[_0x4f8536(0x31e)][_0x4f8536(0x28c)](_0x4f8536(0x286)),_0x396d0e&&_0x3ad26e[_0x4f8536(0x183)]()['catch'](_0x28a24c=>console[_0x4f8536(0x290)](_0x28a24c))[_0x4f8536(0x312)](_0x8f9f8d)[_0x4f8536(0x312)](()=>process[_0x4f8536(0x2b3)](0x82),_0x331313=>{const _0x2d50c7=_0x4f8536;console[_0x2d50c7(0x290)](_0x331313),process[_0x2d50c7(0x2b3)](0x82);});};process['on'](_0x386eca(0x306),_0x176870);let _0x1d6ead=_0x4b16a0[_0x386eca(0x1e4)],_0x180a84=async _0x3594d3=>{const _0x5764d8=_0x386eca;let _0x2e8bfc=_0x1d6ead;_0x1d6ead=[];let _0x589777=()=>_0x3ad26e[_0x5764d8(0x169)](_0x3594d3,{'attachments':_0x2e8bfc});try{return await _0x589777();}catch(_0x10dded){if(_0x17dbe2||!$n(_0x10dded)||!process[_0x5764d8(0x220)][_0x5764d8(0x2fe)]||_0x4b16a0[_0x5764d8(0x16b)]===_0x5764d8(0x2a5)||!(_0x4b16a0[_0x5764d8(0x16b)]||_0x20077d[_0x5764d8(0x22e)]))throw _0x10dded;process['stderr']['write'](_0x5764d8(0x209));let _0x5ab81f=_0x3ad26e[_0x5764d8(0x21d)]()??_0x4b16a0[_0x5764d8(0x2a0)],_0x38898e=await _0x96e922(_0x4b16a0[_0x5764d8(0x16b)]?{'env':_0x4b16a0[_0x5764d8(0x16b)],'tenant':G(_0x20077d,_0x49f564[_0x4b16a0[_0x5764d8(0x16b)]]),'skipEnvCheck':!0x0}:{'baseUrl':_0x20077d[_0x5764d8(0x22e)],'tenant':_0x20077d[_0x5764d8(0x1ef)],'skipEnvCheck':!0x0}),_0x2d73b1={'text':'','failed':!0x1,'sessionId':_0x5ab81f};return _0x17dbe2||(_0x396d0e=!0x1,await _0x8f9f8d(),_0x17dbe2)?_0x2d73b1:(_0x3ad26e=new _0x14a24f(),_0x2830fa=void 0x0,_0x3ad26e['onEvent'](_0x36e9ae),_0x20077d=_0x38898e,await _0x3ad26e['initialize']({..._0x586511(pe(_0x4b16a0,_0x20077d,_0x1db2af,{'oneTurn':!_0x2f9ec9})),..._0x5ab81f?{'sessionId':_0x5ab81f}:{}}),_0x396d0e=!0x0,_0x17dbe2?_0x2d73b1:_0x589777());}};try{if(await _0x3ad26e['initialize'](_0x11b876),_0x396d0e=!0x0,_0x17dbe2)return;if(_0x2f9ec9)await xn({'prompt':_0x388a3e,'sendMessage':_0x180a84,'onSigint':_0x176870,'setAnswerInput':_0x27c6bc=>{const _0x5b1afe=_0x386eca;_0x597b19[_0x5b1afe(0x212)]=_0x27c6bc;},'registerEventPrinter':_0x516190=>(_0x8eecc1=_0x516190,()=>{_0x8eecc1=void 0x0;})});else{if(_0x5098ff||_0x5ea149){let _0x4fdc32=_0x4b16a0[_0x386eca(0x168)]===_0x386eca(0x35d)?_0x42f3fb=>P(_0x546aef(_0x42f3fb)):()=>{},_0x27af71=await _0x450292({'onEvent':_0x8b5d14=>(_0x20d0c6[_0x386eca(0x1b1)](_0x8b5d14),()=>{_0x20d0c6['delete'](_0x8b5d14);}),'sendMessage':_0x1f464b=>_0x180a84(_0x1f464b),'getSessionId':()=>_0x3ad26e[_0x386eca(0x21d)](),'getTurnUsageHistory':_0x4a9bfd=>_0x3ad26e[_0x386eca(0x2d2)](_0x4a9bfd),'complete':_0x5536cd=>_0x3ad26e[_0x386eca(0x2fc)](_0x5536cd)},_0x388a3e,void 0x0,_0x4fdc32,_0x5ea149?{'outputSchema':_0x5ea149}:void 0x0);_0x5098ff?_0x5098ff(_0x27af71):In(_0x27af71);}else await _0x180a84(_0x388a3e);}}catch(_0x6086fc){if(!_0x17dbe2)throw _0x6086fc;}finally{try{await _0x8f9f8d();}finally{process[_0x386eca(0x26e)](_0x386eca(0x306),_0x176870),_0x17dbe2&&(process[_0x386eca(0x248)]=0x82);}}}function In(_0x209cd8){const _0xabb0d9=_0x531086;_0x209cd8['structuredError']?(console[_0xabb0d9(0x290)]('Structured\x20output\x20failed:\x20'+_0x209cd8[_0xabb0d9(0x284)][_0xabb0d9(0x251)]),process[_0xabb0d9(0x248)]=0x1):_0x209cd8['isError']?(console[_0xabb0d9(0x290)](_0xabb0d9(0x1b3)+_0x209cd8[_0xabb0d9(0x290)]+').'),process[_0xabb0d9(0x248)]=0x1):process[_0xabb0d9(0x32e)][_0xabb0d9(0x28c)](JSON['stringify'](_0x209cd8[_0xabb0d9(0x2b9)],null,0x2)+'\x0a');}function Tn(_0xc9227a,_0x1d7228){const _0xa26ad6=_0x531086;let _0x5d04e9=process[_0xa26ad6(0x32e)]['write'][_0xa26ad6(0x26b)](process[_0xa26ad6(0x32e)]),_0x1b3389=!0x1;return process['stdout'][_0xa26ad6(0x28c)]=(..._0x19d2ff)=>{if(!_0x1b3389)return _0x5d04e9(..._0x19d2ff);_0x2fc152(_0x1d7228,0x0),_0xf88ffe(_0x1d7228,0x0);let _0x15c12a=_0x5d04e9(..._0x19d2ff);return _0xc9227a['prompt'](!0x0),_0x15c12a;},{'show':()=>{const _0x4a6714=_0xa26ad6;_0x1b3389=!0x0,_0xc9227a[_0x4a6714(0x26c)]();},'hide':()=>{_0x1b3389=!0x1;},'erase':()=>{_0x1b3389&&(_0x2fc152(_0x1d7228,0x0),_0xf88ffe(_0x1d7228,0x0)),_0x1b3389=!0x1;},'restore':()=>{const _0x8b1f10=_0xa26ad6;_0x1b3389=!0x1,process[_0x8b1f10(0x32e)][_0x8b1f10(0x28c)]=_0x5d04e9;}};}async function xn({prompt:_0x3ce74c,sendMessage:_0xee5a35,onSigint:_0x399c8d,setAnswerInput:_0x4d7a57,registerEventPrinter:_0x28b22d}){const _0x4b1344=_0x531086;let _0x3bfeb=_0x493a75({'input':process[_0x4b1344(0x220)],'output':process[_0x4b1344(0x31e)],'terminal':!0x0,'prompt':_0x4b1344(0x1a2)}),_0xbf282f=Tn(_0x3bfeb,process['stderr']),_0x1bf86d=[],_0x136a40,_0x395db9,_0x1aefec,_0x58ba73=!0x1,_0xb65058=!0x1,_0x228e55=!0x1,_0x4e47ee=Promise[_0x4b1344(0x1a0)](),_0x5925ce,_0x182355=_0x28b22d(_0x19f46b=>{const _0xd8d32b=_0x4b1344;_0x19f46b[_0xd8d32b(0x25f)]===_0xd8d32b(0x313)&&(_0xbf282f[_0xd8d32b(0x21b)](),_0x4e47ee=new Promise(_0x521eae=>{_0x5925ce=_0x521eae;})),Ee(_0x19f46b),_0x19f46b[_0xd8d32b(0x25f)]===_0xd8d32b(0x216)&&(_0x5925ce?.(),_0x5925ce=void 0x0,!_0x228e55&&!_0x58ba73&&_0xbf282f['show']());}),_0x51a227=()=>{const _0x27c6cd=_0x4b1344;_0xb65058=!0x0,_0x5925ce?.(),_0x399c8d(),_0x3bfeb[_0x27c6cd(0x259)]();};_0x3bfeb['on']('line',_0x1c93bd=>{const _0x6646fd=_0x4b1344;_0x1aefec?_0x1aefec(_0x1c93bd):_0x136a40?_0x136a40[_0x6646fd(0x333)](_0x1c93bd):_0x395db9?_0x395db9(_0x1c93bd):_0x1bf86d[_0x6646fd(0x333)](_0x1c93bd);}),_0x3bfeb['once'](_0x4b1344(0x259),()=>{const _0x4561d9=_0x4b1344;_0x58ba73=!0x0,_0xbf282f[_0x4561d9(0x179)](),_0x136a40&&!_0xb65058&&_0x51a227(),_0x395db9?.(null);});let _0xeaa21f=()=>_0x1bf86d[_0x4b1344(0x35f)]>0x0?Promise['resolve'](_0x1bf86d['shift']()):_0x58ba73?Promise['resolve'](null):new Promise(_0x5d3927=>{_0x395db9=_0x2e294f=>{_0x395db9=void 0x0,_0x5d3927(_0x2e294f);};});_0x4d7a57({'readLine':(_0xbbc89b,_0x115db2)=>new Promise((_0x3623e4,_0x425169)=>{const _0x225892=_0x4b1344;if(_0x58ba73&&!_0x136a40){_0x3623e4(null);return;}_0x136a40??=[];let _0x3d8e01=_0x136a40[_0x225892(0x340)]();if(_0x3d8e01!==void 0x0){_0x3623e4(_0x3d8e01);return;}let _0x38f538=()=>{const _0x2a25ef=_0x225892;_0x1aefec=void 0x0,_0x115db2[_0x2a25ef(0x2c0)](_0x2a25ef(0x23c),_0x41e589),_0xbf282f[_0x2a25ef(0x179)](),_0x3bfeb[_0x2a25ef(0x20c)]('You>\x20');},_0x41e589=()=>{const _0x10a80c=_0x225892;_0x38f538(),_0x425169(new Error(_0x10a80c(0x1bc)));};_0x115db2['addEventListener']('abort',_0x41e589,{'once':!0x0}),!_0x58ba73&&(_0x1aefec=_0x43cd08=>{_0x38f538(),_0x3623e4(_0x43cd08);},_0x3bfeb['setPrompt'](_0xbbc89b),_0xbf282f[_0x225892(0x228)]());}),'endQuestions':()=>{const _0x347a79=_0x4b1344;_0x136a40&&_0x1bf86d[_0x347a79(0x333)](..._0x136a40),_0x136a40=void 0x0;}}),_0x3bfeb['on'](_0x4b1344(0x306),_0x51a227),process[_0x4b1344(0x31e)][_0x4b1344(0x28c)](_0x4b1344(0x346));let _0x129510=async _0x2fb5ed=>{_0x228e55=!0x0;try{await _0xee5a35(_0x2fb5ed);}finally{_0x228e55=!0x1;}};try{if(_0x3ce74c&&await _0x129510(_0x3ce74c),_0xb65058)return;!_0x58ba73&&!_0x5925ce&&_0xbf282f[_0x4b1344(0x228)]();for(let _0x18f803=await _0xeaa21f();_0x18f803!==null&&(_0xbf282f['hide'](),!_0xb65058);_0x18f803=await _0xeaa21f()){let _0x59a705=_0x18f803['trim']();if(_0x59a705===_0x4b1344(0x16d))break;_0x59a705&&await _0x129510(_0x59a705),!_0x58ba73&&!_0x5925ce&&_0xbf282f[_0x4b1344(0x228)]();}for(;!_0xb65058&&_0x5925ce;)await _0x4e47ee;}finally{_0x4d7a57(null),_0x182355(),_0xbf282f[_0x4b1344(0x339)](),_0x3bfeb[_0x4b1344(0x26e)](_0x4b1344(0x306),_0x51a227),_0x3bfeb[_0x4b1344(0x259)]();}}async function Dn(){const _0x3f2032=_0x531086;let _0x3b0ca8=Rt(process[_0x3f2032(0x305)][_0x3f2032(0x27d)](0x2));if(_0x3b0ca8[_0x3f2032(0x168)]===_0x3f2032(0x358)){await fe(_0x3b0ca8);return;}let _0x395396=Pt();try{await fe(_0x3b0ca8);}finally{_0x395396();}}async function fe(_0x436270){const _0x4000f7=_0x531086;if(_0x436270[_0x4000f7(0x292)]){Ct();return;}if(_0x436270[_0x4000f7(0x2e6)]){console[_0x4000f7(0x2f7)](Lt());return;}if(_0x436270['subcommand']===_0x4000f7(0x16f)){await kn(_0x436270);return;}if(_0x436270[_0x4000f7(0x1ca)]===_0x4000f7(0x324)){await Sn(_0x436270['prompt']);return;}if(_0x436270[_0x4000f7(0x1ca)]==='logout'){await Mt();return;}if(_0x436270[_0x4000f7(0x1ca)]===_0x4000f7(0x2c3)){await Bt(_0x436270);return;}if(_0x436270[_0x4000f7(0x1ca)]===_0x4000f7(0x167)){await Wt(_0x436270);return;}if(_0x436270[_0x4000f7(0x1ca)]===_0x4000f7(0x253)){await Zt(_0x436270);return;}if(_0x436270[_0x4000f7(0x1ca)]===_0x4000f7(0x19b)){await Qt(_0x436270);return;}if(_0x436270[_0x4000f7(0x1ca)]===_0x4000f7(0x1f5)){await nn(_0x436270);return;}if(_0x436270[_0x4000f7(0x1ca)]===_0x4000f7(0x242)||_0x436270['subcommand']==='rerank'||_0x436270[_0x4000f7(0x1ca)]===_0x4000f7(0x207)){await an(_0x436270,_0x436270['subcommand']);return;}if(_0x436270[_0x4000f7(0x1ca)]===_0x4000f7(0x2fc)){await cn(_0x436270);return;}if(_0x436270[_0x4000f7(0x1ca)]==='transcribe'){await mn(_0x436270);return;}if(_0x436270[_0x4000f7(0x1ca)]===_0x4000f7(0x2da)){await gn(_0x436270);return;}if(_0x436270[_0x4000f7(0x1ca)]==='org-users'){await wn(_0x436270);return;}if(_0x436270[_0x4000f7(0x1ca)]===_0x4000f7(0x298)){await _0x4cce51(_0x436270[_0x4000f7(0x26c)],{'runnerUrl':_0x436270[_0x4000f7(0x22f)],'backendUrl':_0x436270['backendUrl'],'interopPath':_0x436270[_0x4000f7(0x2cc)],'workerId':_0x436270['workerId']});return;}if(_0x436270['cleanup']){await Gt();return;}await En(_0x436270);}var Un=process.env.NODE_ENV===_0x531086(0x2dc)||!!process.env.JEST_WORKER_ID;Un||Dn()[_0x531086(0x26d)](_0x5b15a1=>{const _0x3714c4=_0x531086;console[_0x3714c4(0x290)](_0x5b15a1[_0x3714c4(0x18b)]||_0x5b15a1[_0x3714c4(0x251)]||_0x5b15a1),process['exit'](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 _0x33fd0a=_0x4db5;(function(_0x3a3779,_0x1c7f85){const _0x13491e=_0x4db5,_0x3baf2b=_0x3a3779();while(!![]){try{const _0x137d6b=parseInt(_0x13491e(0xb1))/0x1*(parseInt(_0x13491e(0xe1))/0x2)+-parseInt(_0x13491e(0xf7))/0x3+parseInt(_0x13491e(0xb3))/0x4+parseInt(_0x13491e(0x190))/0x5*(parseInt(_0x13491e(0x25d))/0x6)+parseInt(_0x13491e(0x1da))/0x7+parseInt(_0x13491e(0x1d1))/0x8+-parseInt(_0x13491e(0x128))/0x9;if(_0x137d6b===_0x1c7f85)break;else _0x3baf2b['push'](_0x3baf2b['shift']());}catch(_0x1ea3b1){_0x3baf2b['push'](_0x3baf2b['shift']());}}}(_0x5919,0x5de7e));const __dirname=import.meta.dirname;import _0x3a9423 from'fs';import _0x5f19ae from'path';import{clearLine as _0xb6a034,createInterface as _0x25e2d2,cursorTo as _0x32947d}from'node:readline';import{isOnStepGrid as _0x4ca3dc}from'@uipath/delegate-sdk';var _=_0x33fd0a(0x132);function S(_0x131bcd){const _0x57f7b2=_0x33fd0a;return _0x131bcd[_0x57f7b2(0xba)](/\u001b\[[0-?]*[ -/]*[@-~]|\u001b\][^\u0007\u001b]*(\u0007|\u001b\\)?|\u001b./g,'')[_0x57f7b2(0xba)](/[\u0000-\u0008\u000b-\u001f\u007f-\u009f]/g,'');}function V(_0x4350d8){const _0x4ddc43=_0x33fd0a;return S(_0x4350d8['label']??(_0x4350d8[_0x4ddc43(0x1f9)]===_?_0x4ddc43(0xd8):_0x4350d8['id']));}function Te(_0x39c5f3,_0x40965d,_0x1aac8c){const _0x5d2b90=_0x33fd0a;let _0x1c74d1=[''+(_0x1aac8c>0x1?'['+_0x40965d+'/'+_0x1aac8c+']\x20':'')+S(_0x39c5f3[_0x5d2b90(0xc0)])+(_0x39c5f3[_0x5d2b90(0x93)]?_0x5d2b90(0x1f6):''),S(_0x39c5f3[_0x5d2b90(0x241)])];return _0x39c5f3['type']===_0x5d2b90(0x259)&&_0x39c5f3[_0x5d2b90(0x191)][_0x5d2b90(0x1ca)]((_0x260d87,_0x17b22a)=>{const _0x24bb39=_0x5d2b90;let _0x1e1647=_0x260d87['kind']===_?_0x24bb39(0x1c4):'',_0x22797e=_0x260d87['description']?_0x24bb39(0x1a6)+S(_0x260d87['description']):'';_0x1c74d1[_0x24bb39(0xfd)]('\x20\x20'+(_0x17b22a+0x1)+'.\x20'+V(_0x260d87)+_0x1e1647+_0x22797e);}),_0x1c74d1['join']('\x0a');}function X(_0x5029bd,_0x36160e){const _0x43b421=_0x33fd0a;let _0xb6945f=_0x5029bd['split'](/[\s,]+/)[_0x43b421(0x18c)](Boolean);if(_0xb6945f['length']===0x0)return null;let _0x332161=_0xb6945f['map'](_0x368123=>/^\d+$/['test'](_0x368123)?Number(_0x368123):NaN);return _0x332161[_0x43b421(0x18f)](_0x10a060=>!Number[_0x43b421(0x16c)](_0x10a060)||_0x10a060<0x1||_0x10a060>_0x36160e)?null:[...new Set(_0x332161)][_0x43b421(0x1e0)](_0x4df1b3=>_0x4df1b3-0x1);}function xe(_0x362b9f){const _0xc881a0=_0x33fd0a;return typeof _0x362b9f==_0xc881a0(0x11c)&&_0x362b9f!==null&&_0xc881a0(0x150)in _0x362b9f;}async function R(_0x5729c2,_0x13733b,_0x2f653d,_0x365728){const _0x4391ba=_0x33fd0a;for(;;){let _0x495190=(await _0x5729c2(_0x13733b))[_0x4391ba(0x23f)]();if(_0x495190==='')return;let _0x58e2e3=_0x365728(_0x495190);if(!xe(_0x58e2e3))return _0x58e2e3;_0x2f653d(_0x58e2e3[_0x4391ba(0x150)]+'\x0a');}}async function De(_0x3cb698,_0x3e8737,_0x2eaf74){const _0x391f55=_0x33fd0a;if(_0x3cb698[_0x391f55(0x191)][_0x391f55(0x16b)]===0x0||_0x3cb698[_0x391f55(0x191)][_0x391f55(0x1ac)](_0x19fd43=>_0x19fd43['kind']===_)){let _0x4a1d2c=(await _0x3e8737(_0x391f55(0x82)))[_0x391f55(0x23f)]();return _0x4a1d2c===''?void 0x0:{'text':_0x4a1d2c};}let _0x55a200=_0x3cb698[_0x391f55(0x191)]['findIndex'](_0x344277=>_0x344277[_0x391f55(0x1f9)]===_),_0x2490e1=_0x3cb698['multiSelect']?_0x391f55(0x15b):_0x391f55(0x168)+(_0x55a200>=0x0?'\x20or\x20your\x20own\x20answer':'')+_0x391f55(0x1fa),_0x39a09c=await R(_0x3e8737,_0x2490e1,_0x2eaf74,_0x44cf20=>{const _0x1e0d02=_0x391f55;let _0x3f2c6d=X(_0x44cf20,_0x3cb698['options']['length']);return _0x3f2c6d&&(_0x3cb698[_0x1e0d02(0x249)]||_0x3f2c6d[_0x1e0d02(0x16b)]===0x1)?_0x3f2c6d:!_0x3cb698[_0x1e0d02(0x249)]&&_0x55a200>=0x0?{'typed':_0x44cf20}:{'refused':_0x3cb698['multiSelect']?_0x1e0d02(0x11f)+_0x3cb698[_0x1e0d02(0x191)]['length']+'.':'Enter\x20one\x20number\x20from\x201\x20to\x20'+_0x3cb698[_0x1e0d02(0x191)][_0x1e0d02(0x16b)]+'.'};});if(_0x39a09c===void 0x0)return;if(!Array[_0x391f55(0x1d5)](_0x39a09c))return{'text':_0x39a09c[_0x391f55(0x78)]};let _0x40e314=_0x39a09c[_0x391f55(0x1e0)](_0x758cb7=>_0x3cb698[_0x391f55(0x191)][_0x758cb7]['id']),_0x1584e1=_0x40e314[_0x391f55(0x185)](_)?await R(_0x3e8737,V(_0x3cb698[_0x391f55(0x191)][_0x55a200])+':\x20',_0x2eaf74,_0x9f8c70=>_0x9f8c70):void 0x0;if(!(_0x40e314[_0x391f55(0x185)](_)&&_0x1584e1===void 0x0))return _0x3cb698[_0x391f55(0x249)]?{'optionIds':_0x40e314,..._0x1584e1!==void 0x0?{'text':_0x1584e1}:{}}:_0x1584e1!==void 0x0?{'text':_0x1584e1}:{'optionId':_0x40e314[0x0]};}async function Ue(_0x350673,_0x2ed990,_0x5804de){const _0x2c4c36=_0x33fd0a;let _0x40dedf={};for(let _0x33118f of _0x350673[_0x2c4c36(0x108)]){let _0x1e9141=_0x33118f['default']??_0x33118f[_0x2c4c36(0x21b)],_0x195d3d=_0x33118f[_0x2c4c36(0x14a)]??0x1,_0x512606=_0x33118f[_0x2c4c36(0xfc)]?'\x20'+S(_0x33118f[_0x2c4c36(0xfc)]):'',_0x4e0087=_0x2c4c36(0x1f2)+_0x33118f[_0x2c4c36(0x21b)]+'\x20to\x20'+_0x33118f[_0x2c4c36(0x1ab)]+(_0x195d3d!==0x1?_0x2c4c36(0x25c)+_0x195d3d:''),_0x143ac1=await R(_0x2ed990,S(_0x33118f[_0x2c4c36(0xbf)])+'\x20['+_0x33118f[_0x2c4c36(0x21b)]+'-'+_0x33118f[_0x2c4c36(0x1ab)]+_0x512606+_0x2c4c36(0xb0)+_0x1e9141+_0x2c4c36(0xbb),_0x5804de,_0x29b3b2=>{const _0x3b54d6=_0x2c4c36;let _0x4386aa=Number(_0x29b3b2);return Number[_0x3b54d6(0xd2)](_0x4386aa)&&_0x4386aa>=_0x33118f[_0x3b54d6(0x21b)]&&_0x4386aa<=_0x33118f[_0x3b54d6(0x1ab)]&&_0x4ca3dc(_0x4386aa,_0x33118f[_0x3b54d6(0x21b)],_0x195d3d)?_0x4386aa:{'refused':_0x3b54d6(0x1b5)+_0x4e0087+'.'};});_0x40dedf[_0x33118f['id']]=_0x143ac1??_0x1e9141;}return{'values':_0x40dedf};}async function Ne(_0x127404,_0x45f78f,_0x30af31){const _0x374377=_0x33fd0a;_0x30af31(_0x127404[_0x374377(0x9a)]['map']((_0x5d371b,_0xb1c6fa)=>'\x20\x20'+(_0xb1c6fa+0x1)+'.\x20'+S(_0x5d371b[_0x374377(0xbf)]))[_0x374377(0xc3)]('\x0a')+'\x0a');let _0x1a0304={};for(let _0x3cddc7 of _0x127404[_0x374377(0x239)]){let _0x5377ab=await R(_0x45f78f,S(_0x3cddc7['label'])+_0x374377(0xbd),_0x30af31,_0x1d3964=>{const _0x3ee89c=_0x374377;let _0x16514f=X(_0x1d3964,_0x127404[_0x3ee89c(0x9a)][_0x3ee89c(0x16b)]);return _0x16514f&&_0x16514f[_0x3ee89c(0x16b)]===0x1?_0x16514f[0x0]:{'refused':_0x3ee89c(0x229)+_0x127404[_0x3ee89c(0x9a)]['length']+'.'};});if(_0x5377ab===void 0x0)continue;let _0x2c1683=_0x127404[_0x374377(0x9a)][_0x5377ab],_0x43c878={};for(let _0x478c36 of _0x2c1683[_0x374377(0x15d)]??[]){let _0x5ebc3e='\x20\x20'+S(_0x478c36['label'])+(_0x478c36[_0x374377(0x93)]?_0x374377(0x1f6):'')+':\x20',_0x4a39e7=await R(_0x45f78f,_0x5ebc3e,_0x30af31,_0x2d7f6f=>_0x2d7f6f);for(;_0x4a39e7===void 0x0&&!_0x478c36['optional'];)_0x30af31(S(_0x478c36[_0x374377(0xbf)])+'\x20is\x20required.\x0a'),_0x4a39e7=await R(_0x45f78f,_0x5ebc3e,_0x30af31,_0xe82304=>_0xe82304);_0x4a39e7!==void 0x0&&(_0x43c878[_0x478c36['id']]=_0x4a39e7);}_0x1a0304[_0x3cddc7['id']]={'bucket':_0x2c1683['id'],...Object['keys'](_0x43c878)[_0x374377(0x16b)]>0x0?{'subFields':_0x43c878}:{}};}return Object[_0x374377(0xe2)](_0x1a0304)[_0x374377(0x16b)]>0x0?{'assignments':_0x1a0304}:void 0x0;}async function _e(_0x31b34f,_0x1af354,_0x246998){const _0x3938a1=_0x33fd0a;if(_0x31b34f[_0x3938a1(0x174)]===_0x3938a1(0x259))return De(_0x31b34f,_0x1af354,_0x246998);if(_0x31b34f['type']===_0x3938a1(0x245))return Ue(_0x31b34f,_0x1af354,_0x246998);if(_0x31b34f[_0x3938a1(0x174)]===_0x3938a1(0x1ce))return Ne(_0x31b34f,_0x1af354,_0x246998);let _0x172fb2=(await _0x1af354(_0x3938a1(0xbc)))[_0x3938a1(0x23f)]();return _0x172fb2===''?void 0x0:{'text':_0x172fb2};}function Z(_0x56051e,_0x466d11){return async _0x1916c9=>{const _0x18bd09=_0x4db5;let _0x166112=_0x56051e();if(!_0x166112)throw new Error('There\x20is\x20no\x20terminal\x20input\x20to\x20answer\x20from.');let _0x155c66=async _0x498f15=>{const _0x19307f=_0x4db5;if(_0x1916c9['signal'][_0x19307f(0x164)])throw new Error('The\x20turn\x20was\x20cancelled.');let _0x20beec=await _0x166112[_0x19307f(0x199)](_0x498f15,_0x1916c9['signal']);if(_0x20beec===null)throw new Error(_0x19307f(0x24c));return _0x20beec;};try{_0x466d11('\x0a'+(_0x1916c9[_0x18bd09(0x23b)]?S(_0x1916c9[_0x18bd09(0x23b)])+'\x0a':''));let _0x3abf93={};for(let [_0x22def4,_0x1377cd]of _0x1916c9[_0x18bd09(0x23e)]['entries']()){_0x466d11('\x0a'+Te(_0x1377cd,_0x22def4+0x1,_0x1916c9[_0x18bd09(0x23e)][_0x18bd09(0x16b)])+'\x0a');let _0x5860c2=await _e(_0x1377cd,_0x155c66,_0x466d11);_0x5860c2!==void 0x0&&(_0x3abf93[_0x1377cd['id']]=_0x5860c2);}return{'answers':_0x3abf93};}finally{_0x166112['endQuestions']();}};}import{BUSINESS_ANALYSIS_PRELOADED_SKILLS as _0x3cafb6,DelegateAgent as _0x35f6a6,cancelTurn as _0x32db90,InteropProcess as _0x6212d3,complete as _0x5dcf06,DEFAULT_MODEL as _0x2c55f4,createBackendClient as _0x554f67,evaluate as _0x3ca222,isCompletionRequestError as _0x1e2b63,isEvaluationRequestError as _0x37b2c4,isTranscriptionError as _0x248667,rerank as _0x35deef,transcribe as _0x48f07c,verify as _0x57e0a5,acceptDelegation as _0x168cc9,cancelDelegation as _0x3415b5,claimDelegation as _0x391077,completeDelegation as _0x9d4fda,createDelegation as _0x158f7f,deleteDelegation as _0x134980,dismissDelegation as _0x203e08,getSessionDelegations as _0x52c717,isDelegationError as _0x3e90a8,listDelegations as _0x1aaceb,listOrgUsers as _0x4ebe33,previewDelegation as _0x2be8e0,TurnResultCollector as _0x5d64a4,agentEventToJsonLine as _0x3a4190,describeBaseUrlRejection as _0x420784,getActivitySummary as _0x5d26b7,getAuthFilePath as _0x3f43b8,getByoWarnings as _0x338dac,getCartographerAllowance as _0x49a3a4,getDailyBreakdown as _0x5ddec2,getLicensingSummary as _0x50ded1,getMonthlySpending as _0x520cd0,isOutputFormat as _0x4e474d,isCloudBaseUrl as _0x53cefc,isSafeProjectFolderSegment as _0x2adb63,listModels as _0x4c40a7,listSessions as _0x5001c9,getSession as _0x33c036,renameSession as _0x1c2dff,deleteSession as _0x1e4a0c,deleteSessionTaskLog as _0x16d34f,forkSession as _0xa344c0,isBackendRequestError as _0x132bb6,MAX_SESSION_PAGE_SIZE as _0x787c7e,listTenants as _0x36ebf8,loadAndRefreshAuth as _0x194907,loadAndRefreshSdkLogin as _0x3fc910,parsePlatformBaseUrl as _0x26d4df,resolveBackendUrl as _0x19c0bc,runHealthCheck as _0xc2d6eb,runHostCommand as _0x3fd6b5,runLoginFlow as _0x2ebee3,runTurnForResult as _0x50847f,saveAuthData as _0x8b9633,switchTenant as _0x57b03c,toJsonLine as _0x3f82fb,ENV_TO_CLOUD as _0x222cf,OUTPUT_FORMATS as _0x1e4f19}from'@uipath/delegate-sdk';var Nt=[_0x33fd0a(0xf4),_0x33fd0a(0x1b2),_0x33fd0a(0xc1),_0x33fd0a(0x104),'logout',_0x33fd0a(0x1af),_0x33fd0a(0x13e),_0x33fd0a(0x209),_0x33fd0a(0x233),_0x33fd0a(0x12d),_0x33fd0a(0x127),'verify','complete',_0x33fd0a(0x98),_0x33fd0a(0x156),_0x33fd0a(0x20b)],se=['',_0x33fd0a(0xc1),_0x33fd0a(0x1af),_0x33fd0a(0x13e),_0x33fd0a(0x209),_0x33fd0a(0x233),_0x33fd0a(0x12d),_0x33fd0a(0x127),_0x33fd0a(0x1f3),_0x33fd0a(0x20f),_0x33fd0a(0x98),_0x33fd0a(0x156),_0x33fd0a(0x20b)],re=['low',_0x33fd0a(0x1e3),_0x33fd0a(0x17e),'xhigh',_0x33fd0a(0x1ab)],_t=_0x3cafb6;function w(_0x3e8b5d,_0x3a1abf,_0x45b6bc,_0x10d3b1){const _0x2ec5b3=_0x33fd0a;let _0x3eb028=_0x3e8b5d[_0x3a1abf];return(!_0x3eb028||_0x3eb028[_0x2ec5b3(0x16b)]>0x1&&_0x3eb028[_0x2ec5b3(0x103)]('-'))&&(console['error'](_0x45b6bc+_0x2ec5b3(0xb4)+_0x10d3b1+'.'),process[_0x2ec5b3(0x8a)](0x2)),_0x3eb028;}function J(_0x87e3d5,_0x1bc336,_0xef5840,_0x590570){const _0x30f314=_0x33fd0a;let _0x4c7ac9=w(_0x87e3d5,_0x1bc336,_0xef5840,'a\x20number'),_0x34e58a=Number(_0x4c7ac9);return(!/^\d+$/[_0x30f314(0x84)](_0x4c7ac9)||_0x34e58a<0x1||!Number[_0x30f314(0x262)](_0x34e58a)||_0x590570!==void 0x0&&_0x34e58a>_0x590570)&&(console[_0x30f314(0x1b8)](_0xef5840+_0x30f314(0x14d)+(_0x590570===void 0x0?_0x30f314(0xd1):'from\x201\x20to\x20'+_0x590570)+',\x20got\x20'+_0x4c7ac9+'.'),process[_0x30f314(0x8a)](0x2)),_0x34e58a;}function Rt(_0x4fc81b){const _0x2755ae=_0x33fd0a;let _0x5b549a={'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[_0x2755ae(0x185)](_0x4fc81b[0x0])&&(_0x5b549a[_0x2755ae(0x12f)]=_0x4fc81b[0x0],_0x4fc81b=_0x4fc81b[_0x2755ae(0xe4)](0x1));let _0x3fc284=[];for(let _0x45aad6=0x0;_0x45aad6<_0x4fc81b[_0x2755ae(0x16b)];_0x45aad6++){let _0x5af347=_0x4fc81b[_0x45aad6];switch(_0x5af347){case _0x2755ae(0x180):case'-p':_0x5b549a['print']=!0x0;break;case _0x2755ae(0x22c):_0x5b549a['keepAlive']=!0x0;break;case _0x2755ae(0x266):_0x5b549a[_0x2755ae(0x267)]=!0x0;break;case _0x2755ae(0xbe):_0x5b549a['headless']=!0x0;break;case'--no-computer-use':_0x5b549a[_0x2755ae(0x247)]=!0x0;break;case _0x2755ae(0x129):_0x5b549a[_0x2755ae(0x1a8)]=!0x0,_0x5b549a[_0x2755ae(0x247)]=!0x0,_0x5b549a[_0x2755ae(0x230)][_0x2755ae(0xfd)](..._t);break;case _0x2755ae(0x250):_0x5b549a[_0x2755ae(0x74)]=!0x0;break;case _0x2755ae(0x22a):_0x5b549a[_0x2755ae(0x7a)]=!0x0;break;case _0x2755ae(0xb2):_0x5b549a[_0x2755ae(0x1a4)]=!0x0;break;case _0x2755ae(0x264):_0x5b549a['taskAutomation']=!0x0;break;case _0x2755ae(0xff):case'-q':_0x5b549a[_0x2755ae(0x13d)]=!0x0;break;case'--verbose':_0x5b549a[_0x2755ae(0x154)]=!0x0;break;case'--backend':_0x5b549a[_0x2755ae(0x235)]=_0x4fc81b[++_0x45aad6];break;case _0x2755ae(0x73):_0x5b549a[_0x2755ae(0x1bd)]=_0x4fc81b[++_0x45aad6];break;case _0x2755ae(0xde):_0x5b549a[_0x2755ae(0x171)]=_0x4fc81b[++_0x45aad6];break;case _0x2755ae(0x160):_0x5b549a[_0x2755ae(0x109)]=_0x4fc81b[++_0x45aad6];break;case _0x2755ae(0x187):_0x5b549a[_0x2755ae(0x1b7)]=_0x4fc81b[++_0x45aad6];break;case _0x2755ae(0x15e):_0x5b549a[_0x2755ae(0x230)][_0x2755ae(0xfd)](w(_0x4fc81b,++_0x45aad6,_0x5af347,_0x2755ae(0x244)));break;case _0x2755ae(0x222):{let _0x3a1d8b=w(_0x4fc81b,++_0x45aad6,_0x5af347,'a\x20project\x20id');_0x2adb63(_0x3a1d8b)||(console[_0x2755ae(0x1b8)](_0x2755ae(0x9c)+_0x3a1d8b+_0x2755ae(0x218)),process[_0x2755ae(0x8a)](0x2)),_0x5b549a[_0x2755ae(0x148)]=_0x3a1d8b;break;}case _0x2755ae(0x18a):{let _0x4f1feb=w(_0x4fc81b,++_0x45aad6,_0x5af347,_0x2755ae(0xd9)+_0x1e4f19[_0x2755ae(0xc3)]('\x20|\x20')+')');_0x4e474d(_0x4f1feb)||(console[_0x2755ae(0x1b8)](_0x2755ae(0x20c)+_0x4f1feb+_0x2755ae(0x9d)+_0x1e4f19['join'](_0x2755ae(0x75))+'.'),process[_0x2755ae(0x8a)](0x2)),_0x5b549a[_0x2755ae(0x210)]=_0x4f1feb;break;}case _0x2755ae(0xce):_0x5b549a[_0x2755ae(0xd0)]=w(_0x4fc81b,++_0x45aad6,_0x5af347,_0x2755ae(0xdc));break;case _0x2755ae(0x112):_0x5b549a[_0x2755ae(0xad)]=J(_0x4fc81b,++_0x45aad6,_0x5af347);break;case'--limit':_0x5b549a[_0x2755ae(0x238)]=J(_0x4fc81b,++_0x45aad6,_0x5af347,_0x787c7e);break;case'--include-subagents':_0x5b549a[_0x2755ae(0x215)]=!0x0;break;case _0x2755ae(0x155):_0x5b549a[_0x2755ae(0x16d)]=w(_0x4fc81b,++_0x45aad6,_0x5af347,'a\x20JSON\x20schema\x20file');break;case'--attach':{let _0x303db0=_0x5f19ae[_0x2755ae(0x1df)](process['cwd'](),w(_0x4fc81b,++_0x45aad6,_0x5af347,_0x2755ae(0x1e9)));_0x3a9423[_0x2755ae(0x12a)](_0x303db0)||(console['error'](_0x2755ae(0x95)+_0x303db0),process[_0x2755ae(0x8a)](0x2)),_0x5b549a[_0x2755ae(0x1ad)][_0x2755ae(0xfd)](_0x303db0);break;}case _0x2755ae(0xaf):_0x5b549a['turnId']=w(_0x4fc81b,++_0x45aad6,_0x5af347,_0x2755ae(0x179));break;case _0x2755ae(0x12e):_0x5b549a[_0x2755ae(0xef)]=w(_0x4fc81b,++_0x45aad6,_0x5af347,_0x2755ae(0x169));break;case _0x2755ae(0xc9):_0x5b549a['contextSummary']=w(_0x4fc81b,++_0x45aad6,_0x5af347,_0x2755ae(0x153));break;case _0x2755ae(0xf6):_0x5b549a['days']=J(_0x4fc81b,++_0x45aad6,_0x5af347,0x16d);break;case'--working-dir':_0x5b549a['workingDirectory']=_0x5f19ae['resolve'](process['cwd'](),w(_0x4fc81b,++_0x45aad6,_0x5af347,_0x2755ae(0x91)));break;case _0x2755ae(0x1dc):_0x5b549a[_0x2755ae(0x1f4)]=_0x5f19ae[_0x2755ae(0x1df)](process[_0x2755ae(0xcc)](),w(_0x4fc81b,++_0x45aad6,_0x5af347,_0x2755ae(0x91)));break;case _0x2755ae(0x10d):{let _0x203456=w(_0x4fc81b,++_0x45aad6,_0x5af347,_0x2755ae(0x25f));re['includes'](_0x203456)||(console[_0x2755ae(0x1b8)](_0x2755ae(0x11d)+_0x203456+_0x2755ae(0x9d)+re[_0x2755ae(0xc3)](_0x2755ae(0x75))+'.'),process[_0x2755ae(0x8a)](0x2)),_0x5b549a[_0x2755ae(0xfe)]=_0x203456;break;}case _0x2755ae(0x151):{let _0x1f5ac0=_0x4fc81b[++_0x45aad6];(!_0x1f5ac0||_0x1f5ac0[_0x2755ae(0x103)]('--'))&&(console[_0x2755ae(0x1b8)](_0x2755ae(0xec)),process['exit'](0x2)),_0x5b549a[_0x2755ae(0x1b2)]=_0x1f5ac0;break;}case'--env':{let _0x2776e9=_0x4fc81b[++_0x45aad6];[_0x2755ae(0x23a),'staging','production',_0x2755ae(0x243)][_0x2755ae(0x185)](_0x2776e9)||(console['error'](_0x2755ae(0x10f)+_0x2776e9+_0x2755ae(0x15a)),process[_0x2755ae(0x8a)](0x2)),_0x5b549a[_0x2755ae(0xa9)]=_0x2776e9;break;}case'--url':case'--authority':{let _0x1cd88c=w(_0x4fc81b,++_0x45aad6,_0x5af347,_0x2755ae(0x92)),_0x4be717=_0x26d4df(_0x1cd88c);if(_0x4be717['ok']===!0x1){console['error'](_0x420784(_0x1cd88c,_0x4be717['rejection'])),process[_0x2755ae(0x8a)](0x2);break;}_0x5b549a['url']=_0x4be717[_0x2755ae(0x12c)];break;}case _0x2755ae(0x167):_0x5b549a[_0x2755ae(0x248)]=!0x0;break;case'-h':case _0x2755ae(0x1f0):_0x5b549a[_0x2755ae(0x1a2)]=!0x0;break;case'-v':case _0x2755ae(0x17f):_0x5b549a['version']=!0x0;break;default:_0x5af347['startsWith']('--')&&(console['error'](_0x2755ae(0x1e4)+_0x5af347),process[_0x2755ae(0x8a)](0x2)),_0x3fc284[_0x2755ae(0xfd)](_0x5af347);}}return _0x5b549a['tenant']!==void 0x0&&_0x5b549a[_0x2755ae(0x12f)]!==_0x2755ae(0xf4)&&(console[_0x2755ae(0x1b8)](_0x2755ae(0x170)),process[_0x2755ae(0x8a)](0x2)),_0x5b549a[_0x2755ae(0x217)]!==void 0x0&&_0x5b549a[_0x2755ae(0xa9)]!==void 0x0&&(console[_0x2755ae(0x1b8)]('Pass\x20either\x20--env\x20(a\x20named\x20cloud)\x20or\x20--url\x20(any\x20other\x20deployment),\x20not\x20both.'),process['exit'](0x2)),_0x5b549a[_0x2755ae(0x217)]!==void 0x0&&_0x5b549a[_0x2755ae(0x12f)]!==_0x2755ae(0xf4)&&(console[_0x2755ae(0x1b8)](_0x2755ae(0x1d8)),process[_0x2755ae(0x8a)](0x2)),_0x5b549a[_0x2755ae(0x253)]!==void 0x0&&_0x5b549a[_0x2755ae(0x12f)]!=='usage'&&(console[_0x2755ae(0x1b8)](_0x2755ae(0x7e)),process[_0x2755ae(0x8a)](0x2)),_0x5b549a[_0x2755ae(0x16d)]!==void 0x0&&(_0x5b549a[_0x2755ae(0x12f)]!==_0x2755ae(0x20f)&&_0x5b549a[_0x2755ae(0x12f)]!==''||_0x5b549a[_0x2755ae(0x267)])&&(console[_0x2755ae(0x1b8)](_0x2755ae(0x99)),process[_0x2755ae(0x8a)](0x2)),_0x5b549a['attachments'][_0x2755ae(0x16b)]>0x0&&(_0x5b549a[_0x2755ae(0x12f)]!==''||_0x5b549a[_0x2755ae(0x267)])&&(console[_0x2755ae(0x1b8)]('--attach\x20applies\x20to\x20prompts\x20only.'),process['exit'](0x2)),_0x5b549a[_0x2755ae(0xaa)]&&(_0x5b549a['subcommand']!==''||_0x5b549a[_0x2755ae(0x267)])&&(console['error'](_0x2755ae(0x19e)),process[_0x2755ae(0x8a)](0x2)),_0x5b549a[_0x2755ae(0xaa)]&&(_0x5b549a[_0x2755ae(0x1dd)]||_0x5b549a['noComputerUse'])&&(console[_0x2755ae(0x1b8)](_0x2755ae(0xcf)),process[_0x2755ae(0x8a)](0x2)),_0x5b549a[_0x2755ae(0x248)]&&_0x5b549a[_0x2755ae(0x12f)]!==_0x2755ae(0xf4)&&(console['error'](_0x2755ae(0x260)),process[_0x2755ae(0x8a)](0x2)),_0x5b549a[_0x2755ae(0x210)]!==_0x2755ae(0x259)&&!se[_0x2755ae(0x185)](_0x5b549a[_0x2755ae(0x12f)])&&(console[_0x2755ae(0x1b8)](_0x2755ae(0x252)+_0x5b549a[_0x2755ae(0x210)]+_0x2755ae(0x25e)+se['filter'](Boolean)[_0x2755ae(0xc3)](',\x20')+'.'),process['exit'](0x2)),(_0x5b549a['page']!==void 0x0||_0x5b549a[_0x2755ae(0x238)]!==void 0x0||_0x5b549a[_0x2755ae(0x215)])&&_0x5b549a[_0x2755ae(0x12f)]!==_0x2755ae(0x209)&&(console[_0x2755ae(0x1b8)](_0x2755ae(0x143)),process['exit'](0x2)),(_0x5b549a[_0x2755ae(0xef)]!==void 0x0||_0x5b549a[_0x2755ae(0x25a)]!==void 0x0)&&_0x5b549a[_0x2755ae(0x12f)]!==_0x2755ae(0x156)&&(console['error'](_0x2755ae(0x1c6)),process[_0x2755ae(0x8a)](0x2)),_0x5b549a[_0x2755ae(0x216)]!==void 0x0&&_0x5b549a[_0x2755ae(0x12f)]!==_0x2755ae(0x209)&&(console[_0x2755ae(0x1b8)](_0x2755ae(0x23c)),process[_0x2755ae(0x8a)](0x2)),_0x5b549a['preloadSkills']=[...new Set(_0x5b549a[_0x2755ae(0x230)])],_0x5b549a[_0x2755ae(0xb7)]=_0x3fc284,_0x5b549a['prompt']=_0x3fc284[_0x2755ae(0xc3)]('\x20'),_0x5b549a;}var P=_0x38162e=>{const _0x330daa=_0x33fd0a;process[_0x330daa(0xf2)][_0x330daa(0x203)](_0x38162e);};function Pt(){const _0x28d44c=_0x33fd0a;let _0x2aa914=process[_0x28d44c(0xf2)][_0x28d44c(0x203)],_0x434207=_0x2aa914[_0x28d44c(0x182)](process['stdout']),_0x5dd06c=P;return P=_0x2811cb=>{_0x434207(_0x2811cb);},process[_0x28d44c(0xf2)]['write']=(..._0x53286)=>process['stderr']['write'](..._0x53286),()=>{const _0xd1683e=_0x28d44c;process[_0xd1683e(0xf2)][_0xd1683e(0x203)]=_0x2aa914,P=_0x5dd06c;};}function u(_0x347c85,_0x5c41cf,_0x58afd4){const _0x437eb3=_0x33fd0a;if(_0x347c85['outputFormat']===_0x437eb3(0x259)){_0x58afd4(_0x5c41cf);return;}P(_0x3f82fb(_0x5c41cf));}function Ct(){const _0x5b4544=_0x33fd0a;let _0x1f9c29=_0x5b4544(0x176)[_0x5b4544(0x23f)]();console[_0x5b4544(0x1b4)](_0x1f9c29);}function Lt(){const _0x2496c0=_0x33fd0a;try{return JSON['parse'](_0x3a9423['readFileSync'](_0x5f19ae[_0x2496c0(0xc3)](__dirname,'..','package.json'),_0x2496c0(0x1d4)))[_0x2496c0(0x196)]||'unknown';}catch{return _0x2496c0(0x226);}}var Ot=0x7d0;async function ie(_0x599fdc,_0x275f08){const _0x156ef0=_0x33fd0a;let _0x5df6ed=_0x275f08?[_0x275f08]:[];for await(let _0x3d8e51 of _0x599fdc)_0x5df6ed[_0x156ef0(0xfd)](Buffer[_0x156ef0(0x102)](_0x3d8e51));return Buffer[_0x156ef0(0xe5)](_0x5df6ed)['toString']('utf-8')[_0x156ef0(0x23f)]();}function Ft(_0x2581af,_0xb29b3f){return new Promise(_0x3ecff1=>{const _0x2afa47=_0x4db5;let _0x6d942=_0xa2e3db=>{const _0x4a67d7=_0x4db5;clearTimeout(_0x2528b8),_0x2581af[_0x4a67d7(0x1d7)](_0x4a67d7(0x120),_0x15c159),_0x2581af['off'](_0x4a67d7(0xe8),_0x44148b),_0x2581af['off'](_0x4a67d7(0x1b8),_0x44148b),_0x2581af[_0x4a67d7(0x188)](),_0x3ecff1(_0xa2e3db);},_0x15c159=_0x5f01f4=>_0x6d942(Buffer[_0x2afa47(0x102)](_0x5f01f4)),_0x44148b=()=>_0x6d942(null),_0x2528b8=setTimeout(()=>_0x6d942(null),_0xb29b3f);_0x2581af['on'](_0x2afa47(0x120),_0x15c159),_0x2581af['on'](_0x2afa47(0xe8),_0x44148b),_0x2581af['on']('error',_0x44148b),_0x2581af[_0x2afa47(0xf9)]();});}async function j(_0x56bedd,_0x485503,_0xc7c588=Ot){const _0x28c303=_0x33fd0a;let _0x218199=_0x56bedd==='-';if(!_0x218199&&_0x56bedd)return _0x56bedd;if(!_0x218199&&_0x485503[_0x28c303(0x9f)])return'';if(_0x218199)return ie(_0x485503,null);let _0x111e30=await Ft(_0x485503,_0xc7c588);return _0x111e30?ie(_0x485503,_0x111e30):'';}function _0x5919(){const _0x5b0244=['5inxoMg','options','stringify','period_days','Model\x20','--session\x20applies\x20to\x20the\x20`delegate-cli\x20usage`\x20summary\x20only.','version','--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`delegate-cli\x20sessions\x20[list]`\x20only.','Bearer\x20','readLine','completion_tokens','spawn','catch','index','--task-automation\x20applies\x20to\x20prompts\x20only.','workingDirectory','From\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','padStart','help','UIPATH_BASE_URL\x20is\x20unusable.\x20','noMemory','tool_call','\x20-\x20','No\x20CLI\x20login\x20found\x20—\x20nothing\x20to\x20remove.','cartographer','\x20(in\x20','transcribe:\x20cannot\x20read\x20','max','every','attachments','origin','whoami','restore','structuredError','tenant','\x20<file.json>,\x20or\x20-\x20to\x20read\x20stdin.','log','Enter\x20a\x20number\x20','message','workerId','error','\x0a⚠️\x20\x20Auth\x20expired.\x20Opening\x20browser\x20to\x20re-login…\x0a','deleted','byoWarning','now','model','Session:\x20\x20\x20\x20\x20\x20','\x20tokens\x0a','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','environment\x20variables\x20(AUTH_TOKEN/TENANT_ID/ORG_ID)','\x20this\x20month','then','\x20(type\x20your\x20own)','No\x20delegations.\x0a','--to\x20and\x20--summary\x20apply\x20to\x20`delegate-cli\x20delegations\x20create`\x20only.','removeEventListener','delegationId','exitCode','forEach','delegations\x20create\x20--session\x20<id>\x20[--to\x20<email|name>]\x20[--summary\x20<text>]\x20\x22<task>\x22|-','No\x20structured\x20output:\x20the\x20turn\x20failed\x20(','\x20to\x20','bucket','Last\x20','skip','5944600PlCwkm','\x20—\x20sign\x20out\x20in\x20the\x20Delegate\x20app\x20to\x20clear\x20that.','name','utf-8','isArray','shift','off','--url\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Other\x20commands\x20follow\x20the\x20saved\x20login,\x20or\x20--backend\x20<url>.','toISOString','4668741ZLdJzP','total_completion_tokens','--skills-path','headless','all','resolve','map','alreadyAccepted','probability\x20','medium','Unknown\x20flag:\x20','displayName','Unknown\x20usage\x20view:\x20','\x20completion','the\x20request','a\x20file\x20path','model_version','Forked\x20','delete','No\x20usage\x20in\x20the\x20last\x20','round','total_sessions','--help','SIGINT','from\x20','verify','bundledSkillsPath','stream-json','\x20(optional)','Tokens:\x20','Cost:\x20\x20\x20$','kind','\x20(Enter\x20to\x20skip):\x20','hide','readFileSync','results','Usage:\x20delegate-cli\x20sessions\x20[list]\x20[--page\x20N]\x20[--limit\x20N]\x20[--include-subagents]','\x20of\x20a\x20$','✓\x20Done\x0a','delegate-cli','\x0a🤔\x20','write','result','No\x20CLI\x20login\x20found.\x20Note:\x20the\x20CLI\x20is\x20currently\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20','\x0aAccept\x20one\x20with:\x20delegate-cli\x20delegations\x20accept\x20<id>\x0a','Could\x20not\x20check\x20BYO\x20model\x20warnings:\x20','structured','sessions','),\x20','org-users','Invalid\x20--output-format:\x20','tenantId','\x20PU','complete','outputFormat','monthly_spend_usd','email','description','period_end','includeSubAgents','turnId','url','\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).','\x20delegation\x20','model_id','min','ASSIGNEE','Licensing:\x20\x20\x20\x20','argv','ID\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','lastType','erase','--project','\x20cap','Cancel\x20requested\x20for\x20turn\x20','daily_usage','unknown','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.','probability','Enter\x20one\x20number\x20from\x201\x20to\x20','--no-security','pct_used','--keep-alive','delegations\x20complete\x20<delegation-id>\x20\x22<answer>\x22|-','\x20of\x20session\x20','Token:\x20\x20\x20\x20\x20\x20\x20\x20expires\x20','preloadSkills','--to,\x20--summary\x20and\x20--session\x20apply\x20to\x20`delegate-cli\x20delegations\x20create`\x20only.','delegations\x20list\x20<backend-project-id>','usage','dismissed','backendUrl','\x20token\x20units','assignedUserEmail','limit','items','alpha','intro','--turn\x20applies\x20to\x20`delegate-cli\x20sessions\x20cancel`\x20only.','Owner\x20\x20\x20\x20\x20\x20\x20\x20\x20','questions','trim','complete\x20needs\x20--json-schema\x20<file>:\x20delegate-cli\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22.','question','monthly_limit_usd','localhost','a\x20skill\x20name','numeric','Licensing:\x20\x20\x20\x20no\x20licensing\x20quota\x20applies','noComputerUse','skipEnvCheck','multiSelect','\x20\x20\x20\x20Not\x20available\x20on\x20this\x20plan','\x20into\x20','Input\x20closed\x20before\x20the\x20question\x20was\x20answered.','toFixed','\x20(cancel\x20with:\x20delegate-cli\x20sessions\x20cancel\x20',').\x0a','--no-connections','a\x20colleague','--output-format\x20','days','--env\x20localhost\x20has\x20no\x20OAuth\x20flow;\x20pick\x20alpha,\x20staging,\x20or\x20production.','🔧\x20','\x20\x20from\x20','\x0aStopping…\x20(Ctrl+C\x20again\x20to\x20force\x20exit)\x0a','\x20days:\x20','text','contextSummary','entries','\x20in\x20steps\x20of\x20','678138DuWnlM','\x20applies\x20to\x20prompts\x20and\x20to\x20these\x20commands\x20only:\x20','an\x20effort\x20tier','--skip-env-check\x20applies\x20to\x20`delegate-cli\x20login`\x20only.','organizationId','isSafeInteger','Created\x20delegation\x20','--task-automation','\x20sessions\x20on\x20','--cleanup','cleanup','\x20\x20TITLE\x0a','list','%\x20of\x20','title','UPDATED','create','--model','noConnections','\x20|\x20','toUpperCase','Removed\x20','typed','Switch\x20with:\x20delegate-cli\x20tenant\x20<name>\x0a','noSecurity','daily','activity','mode','--days\x20applies\x20to\x20`delegate-cli\x20usage\x20activity|daily`\x20only.','Use:\x20delegate-cli\x20delegations\x20','done','deployment','Your\x20answer\x20(Enter\x20to\x20skip):\x20','.\x20Use\x20`delegate-cli\x20usage`,\x20`usage\x20activity`\x20or\x20`usage\x20daily`.','test','\x0aUse\x20with:\x20delegate-cli\x20--model\x20<id>\x20\x22<prompt>\x22\x0a','sourceTitle','\x20\x22<answer>\x22\x0a','Organization\x20\x20','No\x20answers\x20awaiting\x20acceptance.\x0a','exit','\x20<id>','\x20(Delegate\x20desktop\x20app\x20fallback)','destroy','status','cancel','\x20<title>','a\x20directory\x20path','a\x20deployment\x20URL,\x20e.g.\x20https://automationsuite.contoso.com','optional','setPrompt','--attach:\x20no\x20such\x20file\x20or\x20folder:\x20','deepLink','Renamed\x20','transcribe','--json-schema\x20applies\x20to\x20prompts\x20and\x20to\x20`delegate-cli\x20complete`\x20only.','buckets','\x20\x20(sub-agent\x20of\x20','Invalid\x20--project:\x20\x22','.\x20Use\x20','detail','isTTY','self-hosted\x20(Automation\x20Suite\x20/\x20Dedicated)','[saved\x20login]\x20Backend\x20URL:\x20','answers',',\x20or\x20holds\x20no\x20message\x20','choice','session_start','accessToken','\x20--turn\x20','\x20is\x20not\x20valid\x20JSON\x20(','env','taskAutomation','\x20not\x20found,\x20has\x20no\x20messages','parse','page','No\x20one\x20matches\x20\x22','--turn',']\x20(Enter\x20for\x20','1TNeekI','--no-memory','1064936JGFxWP','\x20requires\x20',';\x20the\x20saved\x20login\x20still\x20uses\x20','\x20not\x20found.','operands','Tenants\x20of\x20','add','replace','):\x20','Your\x20answer,\x20as\x20text\x20(the\x20CLI\x20attaches\x20no\x20files;\x20Enter\x20to\x20skip):\x20',':\x20bucket\x20number\x20(Enter\x20to\x20leave\x20out):\x20','--headless','label','header','models','score\x20','join','\x20PU\x20beyond\x20quota','rename','delegation','\x20token\x20units)','\x20(estimated\x20$','--summary','getSessionId','tokenExpiresAt','cwd','\x27\x20is\x20empty.','--session','--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.','sessionId','1\x20or\x20more','isFinite','No\x20turn\x20','.\x20Share:\x20','Accepted','stop','\x20active\x20days','Something\x20else','a\x20format\x20(','stderr','Delegation\x20\x20\x20\x20','a\x20session\x20id','\x20\x22<prompt>\x22\x0a','--runner-url','turn_start','show','239452PpRloV','keys','The\x20saved\x20CLI\x20login\x20could\x20not\x20be\x20refreshed.\x20Run\x20`delegate-cli\x20login`\x20again.','slice','concat','\x20must\x20be\x20a\x20JSON\x20object.',']\x20Backend\x20URL:\x20','end','string','content','No\x20models\x20available\x20for\x20this\x20product/tenant.\x0a','--tenant\x20requires\x20a\x20tenant\x20name.','file','the\x20JSON\x20schema','delegateTo','floor','auth','stdout','\x20(confidence\x20','login','orgLogicalName','--days','226623fBXsVj','Enter\x20sends\x20a\x20message.\x20/exit\x20or\x20EOF\x20exits;\x20Ctrl+C\x20stops\x20and\x20exits.\x0a','resume','\x22.\x0a','pendingResults','unit','push','effort','--quiet','session_consumed_pu','Unknown\x20sessions\x20action:\x20','from','startsWith','host','Cartographer:\x20','delegations\x20pending\x20<session-id>','\x20min)','fields','interopPath','\x20\x22<prompt>\x22\x0aAnswer\x20with:\x20delegate-cli\x20delegations\x20complete\x20','Continue\x20it\x20with:\x20delegate-cli\x20--session\x20','padEnd','--effort','abort','Invalid\x20--env:\x20','expiresAt','updatedAt','--page','\x20\x20(input\x20#','The\x20turn\x20was\x20cancelled.','Session\x20','[env=','initialize','score','claim','assignedUser','alreadyCompleted','object','Invalid\x20--effort:\x20','close','Enter\x20numbers\x20from\x201\x20to\x20','data','Task\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Unknown\x20delegations\x20action:\x20','total_token_units','Spending:\x20\x20\x20\x20\x20$','task','unknown\x20slug','rerank','13039578oPRSAE','--cartographer','existsSync','Session\x20\x20\x20\x20\x20\x20\x20','baseUrl','evaluate','--to','subcommand','rmSync','sendMessage','userinput','Organization:\x20','active_days','extra_pool_consumed_pu','Already\x20answered','stdin','userId','\x20in\x20progress\x20on\x20session\x20','\x20\x20\x20\x20BYO\x20warning:\x20','sourceUserEmail','Deleted\x20session\x20','quiet','check','prompt','logout','Tenant:\x20','/exit','--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`delegate-cli\x20sessions`\x20only.','thinking','parentSessionId','\x0aAvailable\x20models\x20(','cancelled','projectId','input','step','pending','Delegated\x20','\x20must\x20be\x20a\x20whole\x20number\x20','AUTH_TOKEN_FILE\x20\x27','Usage:\x20delegate-cli\x20sessions\x20fork\x20<id>\x20[<message-id>]','refused','--tenant','isError','a\x20briefing\x20text','verbose','--json-schema','delegations','Usage:\x20delegate-cli\x20sessions\x20cancel\x20<session-id>\x20--turn\x20<turn-id>','estimated_cost_usd','Claimed\x20from\x20delegation\x20','.\x20Use\x20alpha\x20|\x20staging\x20|\x20production\x20|\x20localhost.','Numbers,\x20separated\x20by\x20commas\x20(Enter\x20to\x20skip):\x20','limit_enabled','subFields','--preload-skill','Interop\x20stopped\x20(if\x20it\x20was\x20running).','--interop','Usage:\x20delegate-cli\x20','delegations\x20show\x20<delegation-id|delegate://delegation/…>','stack','aborted','):\x0a\x0a','confidence','--skip-env-check','Number','an\x20email\x20address\x20or\x20name','You>\x20','length','isInteger','jsonSchemaPath','\x20(resets\x20','--days\x20applies\x20to\x20`delegate-cli\x20usage\x20activity|daily`;\x20the\x20summary\x20covers\x20the\x20current\x20month.','--tenant\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Switch\x20tenants\x20with:\x20delegate-cli\x20tenant\x20<name>','runnerUrl','auth.json','verdict','type',':\x20cannot\x20read\x20the\x20JSON\x20schema\x20(','\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','delegations\x20cancel\x20<delegation-id>','accept','a\x20turn\x20id','\x20prompt,\x20','total_prompt_tokens','fork','tool','high','--version','--print','No\x20CLI\x20login\x20found.\x20Run\x20`delegate-cli\x20login\x20--env\x20<alpha|staging|production>`\x20first.','bind','\x27\x20cannot\x20be\x20read:\x20','code','includes','Token:\x20\x20\x20\x20\x20\x20\x20\x20expired\x20','--worker-id','pause','dismiss','--output-format','Already\x20accepted','filter','More:\x20delegate-cli\x20sessions\x20--page\x20','tenantName','some'];_0x5919=function(){return _0x5b0244;};return _0x5919();}function K(){const _0x5af21d=_0x33fd0a;return _0x5f19ae[_0x5af21d(0xc3)](process.env.HOME||process.env.USERPROFILE||'','.aria',_0x5af21d(0x172));}function M(_0x26d256){const _0x45d47f=_0x33fd0a;try{let _0x34cbeb=JSON[_0x45d47f(0xac)](_0x3a9423['readFileSync'](_0x26d256,_0x45d47f(0x1d4)));return!_0x34cbeb[_0x45d47f(0xa6)]||!_0x34cbeb[_0x45d47f(0x20d)]||!_0x34cbeb[_0x45d47f(0x261)]?null:_0x34cbeb;}catch{return null;}}function jt(){const _0x5d6320=_0x33fd0a;let _0x1e7457=[{'file':_0x3f43b8(),'isDesktopFallback':!0x1},{'file':K(),'isDesktopFallback':!0x0}];for(let _0x9a4484 of _0x1e7457){let _0x11720c=M(_0x9a4484[_0x5d6320(0xed)]);if(_0x11720c)return{..._0x9a4484,'auth':_0x11720c};}return null;}async function Mt(){const _0x3cb342=_0x33fd0a;let _0x4916d0=_0x3f43b8();if(!_0x3a9423[_0x3cb342(0x12a)](_0x4916d0)){let _0x5ba100=K();console[_0x3cb342(0x1b4)](M(_0x5ba100)?_0x3cb342(0x205)+_0x5ba100+_0x3cb342(0x1d2):_0x3cb342(0x1a7));return;}_0x3a9423[_0x3cb342(0x130)](_0x4916d0),console[_0x3cb342(0x1b4)](_0x3cb342(0x77)+_0x4916d0);}async function Bt(_0x69beb6){const _0x58a1ed=_0x33fd0a;let _0x1bdc4c=Q(),_0x49d691,_0x51e8e7;if(_0x1bdc4c)_0x49d691=_0x1bdc4c,_0x51e8e7=_0x58a1ed(0x1c1);else{let _0x3bf3e1=jt();if(!_0x3bf3e1)throw new Error(Se);_0x49d691=_0x3bf3e1[_0x58a1ed(0xf1)],_0x51e8e7=_0x3bf3e1['isDesktopFallback']?_0x3bf3e1[_0x58a1ed(0xed)]+_0x58a1ed(0x8c):_0x3bf3e1[_0x58a1ed(0xed)];}let _0x2887d0={'source':_0x51e8e7,'baseUrl':_0x49d691[_0x58a1ed(0x12c)]??null,'deployment':Ht(_0x49d691['baseUrl']),'organization':{'id':_0x49d691['organizationId'],'slug':_0x49d691['orgLogicalName']??null},'tenant':{'id':_0x49d691[_0x58a1ed(0x20d)],'name':_0x49d691[_0x58a1ed(0x18e)]??null},'tokenExpiresAt':_0x49d691[_0x58a1ed(0x110)]?new Date(_0x49d691['expiresAt']*0x3e8)[_0x58a1ed(0x1d9)]():null};u(_0x69beb6,_0x2887d0,()=>{const _0x67500d=_0x58a1ed;let _0x2cdc23=['Source:\x20\x20\x20\x20\x20\x20\x20'+_0x51e8e7,'Base\x20URL:\x20\x20\x20\x20\x20'+(_0x49d691[_0x67500d(0x12c)]??'unknown'),'Deployment:\x20\x20\x20'+_0x2887d0[_0x67500d(0x81)],_0x67500d(0x133)+(_0x49d691[_0x67500d(0xf5)]??_0x67500d(0x126))+'\x20('+_0x49d691[_0x67500d(0x261)]+')','Tenant:\x20\x20\x20\x20\x20\x20\x20'+(_0x49d691[_0x67500d(0x18e)]??'unknown\x20slug')+'\x20('+_0x49d691[_0x67500d(0x20d)]+')'];if(_0x49d691['expiresAt']){let _0x242c72=_0x49d691['expiresAt']-Math[_0x67500d(0xf0)](Date[_0x67500d(0x1bc)]()/0x3e8);_0x2cdc23[_0x67500d(0xfd)](_0x242c72>0x0?_0x67500d(0x22f)+_0x2887d0[_0x67500d(0xcb)]+_0x67500d(0x1a9)+Math[_0x67500d(0x1ee)](_0x242c72/0x3c)+_0x67500d(0x107):_0x67500d(0x186)+_0x2887d0['tokenExpiresAt']);}process[_0x67500d(0xf2)][_0x67500d(0x203)](_0x2cdc23['join']('\x0a')+'\x0a');});}var Se=_0x33fd0a(0x227);function Ht(_0x1f8b21){const _0x24636f=_0x33fd0a;return _0x1f8b21?_0x53cefc(_0x1f8b21)?'UiPath\x20Cloud':_0x24636f(0xa0):_0x24636f(0x226);}function Q(){let _0x5dc303=process.env.AUTH_TOKEN_FILE;return(process.env.AUTH_TOKEN||_0x5dc303)&&process.env.TENANT_ID&&process.env.ORG_ID?{'accessToken':_0x5dc303?Jt(_0x5dc303):process.env.AUTH_TOKEN,..._0x5dc303?{'accessTokenFile':_0x5dc303}:{},'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(_0x3813a8){const _0x5f4b18=_0x33fd0a;let _0x3230c7;try{_0x3230c7=_0x3a9423[_0x5f4b18(0x1fc)](_0x3813a8,_0x5f4b18(0x1d4))[_0x5f4b18(0x23f)]();}catch(_0x280497){throw new Error(_0x5f4b18(0x14e)+_0x3813a8+_0x5f4b18(0x183)+_0x280497['message']);}let _0x57803=_0x3230c7[_0x5f4b18(0x103)](_0x5f4b18(0x198))?_0x3230c7[_0x5f4b18(0xe4)](0x7)[_0x5f4b18(0x23f)]():_0x3230c7;if(!_0x57803)throw new Error('AUTH_TOKEN_FILE\x20\x27'+_0x3813a8+_0x5f4b18(0xcd));return _0x57803;}function ve(){const _0x51adea=_0x33fd0a;let _0x3a66db=process.env.UIPATH_BASE_URL;if(!_0x3a66db)return;let _0x6e45e7=_0x26d4df(_0x3a66db);if(_0x6e45e7['ok']===!0x1)throw new Error(_0x51adea(0x1a3)+_0x420784(_0x3a66db,_0x6e45e7['rejection']));return _0x6e45e7[_0x51adea(0x12c)];}async function q(){let _0x392dc7=Q();if(_0x392dc7)return _0x392dc7;let _0x3a75fa=await _0x194907();if(_0x3a75fa)return _0x3a75fa;throw new Error(Se);}async function Gt(){const _0x3c9cbd=_0x33fd0a;await new _0x6212d3()[_0x3c9cbd(0xd6)]({'force':!0x0}),console[_0x3c9cbd(0x1b4)](_0x3c9cbd(0x15f));}function z(_0xc0346f,_0x35fe87,_0xbe14b8){const _0x18ab95=_0x33fd0a;_0xc0346f?process[_0x18ab95(0xda)][_0x18ab95(0x203)](_0x18ab95(0x116)+_0xc0346f+_0x18ab95(0xe7)+_0xbe14b8+'\x0a'):!_0x35fe87&&!process.env.BACKEND_URL&&process[_0x18ab95(0xda)][_0x18ab95(0x203)](_0x18ab95(0xa1)+_0xbe14b8+'\x0a');}async function v(_0x531d45){const _0x21783c=_0x33fd0a;let _0x1dae49=await q(),_0x582577=_0x19c0bc(_0x531d45[_0x21783c(0xa9)],_0x1dae49,_0x531d45[_0x21783c(0x235)]);return z(_0x531d45[_0x21783c(0xa9)],_0x531d45[_0x21783c(0x235)],_0x582577),{'auth':_0x1dae49,'backendUrl':_0x582577,'client':_0x554f67({'auth':_0x1dae49,'backendUrl':_0x582577})};}async function Wt(_0x259750){const _0x5e06b7=_0x33fd0a;let {client:_0x4d955c}=await v(_0x259750),[_0x4a2045,_0x68e9ee]=await Promise[_0x5e06b7(0x1de)]([_0x4c40a7(_0x4d955c),_0x338dac(_0x4d955c)[_0x5e06b7(0x19c)](_0x560b0b=>(process['stderr']['write'](_0x5e06b7(0x207)+(_0x560b0b instanceof Error?_0x560b0b[_0x5e06b7(0x1b6)]:String(_0x560b0b))+'\x0a'),{}))]),_0x54ad8f=_0x4a2045[_0x5e06b7(0x1e0)](_0x2f72b6=>_0x68e9ee[_0x2f72b6['id']]?{..._0x2f72b6,'byoWarning':_0x68e9ee[_0x2f72b6['id']]}:_0x2f72b6);u(_0x259750,_0x54ad8f,Kt);}function Kt(_0x38ac8a){const _0x289e5e=_0x33fd0a;if(_0x38ac8a[_0x289e5e(0x16b)]===0x0){process[_0x289e5e(0xda)][_0x289e5e(0x203)](_0x289e5e(0xeb));return;}process['stdout'][_0x289e5e(0x203)](_0x289e5e(0x146)+_0x38ac8a[_0x289e5e(0x16b)]+_0x289e5e(0x165));for(let _0x151dea of _0x38ac8a){let _0x327679=_0x151dea[_0x289e5e(0x1d3)]&&_0x151dea[_0x289e5e(0x1d3)]!==_0x151dea['id']?'\x20('+_0x151dea[_0x289e5e(0x1d3)]+')':'';process[_0x289e5e(0xf2)][_0x289e5e(0x203)]('\x20\x20'+_0x151dea['id']+_0x327679+'\x0a'),_0x151dea['description']&&process[_0x289e5e(0xf2)][_0x289e5e(0x203)]('\x20\x20\x20\x20'+_0x151dea[_0x289e5e(0x213)]+'\x0a'),_0x151dea['locked']&&process[_0x289e5e(0xf2)][_0x289e5e(0x203)](_0x289e5e(0x24a)+(_0x151dea['lockReason']?'\x20('+_0x151dea['lockReason']+')':'')+'\x0a'),_0x151dea[_0x289e5e(0x1bb)]&&process[_0x289e5e(0xf2)][_0x289e5e(0x203)](_0x289e5e(0x13a)+_0x151dea[_0x289e5e(0x1bb)]+'\x0a');}process[_0x289e5e(0xf2)][_0x289e5e(0x203)](_0x289e5e(0x85));}var ae=[_0x33fd0a(0x6e),_0x33fd0a(0xe0),_0x33fd0a(0xc5),_0x33fd0a(0x1ec),'cancel',_0x33fd0a(0x17c)];async function Qt(_0x4ec96f){const _0x110518=_0x33fd0a;let [_0x4c8da1='',_0x57ea24='',..._0x436e7c]=_0x4ec96f[_0x110518(0xb7)];if(_0x4c8da1&&!ae['includes'](_0x4c8da1)&&(console['error'](_0x110518(0x101)+_0x4c8da1+'.\x20Use:\x20'+ae[_0x110518(0xc3)]('\x20|\x20')+'.'),process[_0x110518(0x8a)](0x2)),_0x4ec96f[_0x110518(0x216)]!==void 0x0&&_0x4c8da1!==_0x110518(0x8f)&&(console[_0x110518(0x1b8)](_0x110518(0x23c)),process[_0x110518(0x8a)](0x2)),_0x4c8da1&&_0x4c8da1!==_0x110518(0x6e)){await qt(_0x4ec96f,_0x4c8da1,_0x57ea24,_0x436e7c['join']('\x20')[_0x110518(0x23f)]());return;}_0x4ec96f[_0x110518(0xb7)][_0x110518(0x16b)]>0x1&&(console[_0x110518(0x1b8)](_0x110518(0x1fe)),process[_0x110518(0x8a)](0x2));let {client:_0xa5facd}=await v(_0x4ec96f),_0x37dad2=await _0x5001c9(_0xa5facd,{'page':_0x4ec96f[_0x110518(0xad)],'pageSize':_0x4ec96f[_0x110518(0x238)],'includeSubAgents':_0x4ec96f[_0x110518(0x215)]});u(_0x4ec96f,_0x37dad2,Xt);}async function qt(_0x2a2e6a,_0x5b2fa8,_0xa54a58,_0x4dca04){const _0x55a6a0=_0x33fd0a;if((_0x2a2e6a[_0x55a6a0(0xad)]!==void 0x0||_0x2a2e6a[_0x55a6a0(0x238)]!==void 0x0||_0x2a2e6a['includeSubAgents'])&&(console[_0x55a6a0(0x1b8)](_0x55a6a0(0x197)),process['exit'](0x2)),_0x5b2fa8==='cancel'){await Yt(_0x2a2e6a,_0xa54a58,_0x4dca04);return;}if(_0x5b2fa8===_0x55a6a0(0x17c)){await Vt(_0x2a2e6a,_0xa54a58,_0x4dca04);return;}(!_0xa54a58||_0x5b2fa8===_0x55a6a0(0xc5)!=!!_0x4dca04)&&(console[_0x55a6a0(0x1b8)]('Usage:\x20delegate-cli\x20sessions\x20'+_0x5b2fa8+_0x55a6a0(0x8b)+(_0x5b2fa8===_0x55a6a0(0xc5)?_0x55a6a0(0x90):'')),process[_0x55a6a0(0x8a)](0x2));let {client:_0x77394f}=await v(_0x2a2e6a);try{if(_0x5b2fa8===_0x55a6a0(0xe0)){let _0x367c42=await _0x33c036(_0x77394f,_0xa54a58);_0x367c42||le(_0xa54a58),u(_0x2a2e6a,_0x367c42,zt);}else{if(_0x5b2fa8===_0x55a6a0(0xc5)){let _0x42ed95=await _0x1c2dff(_0x77394f,_0xa54a58,_0x4dca04);u(_0x2a2e6a,_0x42ed95,_0x59724a=>{const _0x3af257=_0x55a6a0;process[_0x3af257(0xf2)][_0x3af257(0x203)](_0x3af257(0x97)+_0x59724a['id']+':\x20'+_0x59724a[_0x3af257(0x70)]+'\x0a');});}else await _0x1e4a0c(_0x77394f,_0xa54a58),await _0x16d34f(_0xa54a58,_0x2a2e6a[_0x55a6a0(0x19f)]),u(_0x2a2e6a,{'id':_0xa54a58,'deleted':!0x0},_0x1dcc06=>{const _0x449b38=_0x55a6a0;process['stdout']['write'](_0x449b38(0x13c)+_0x1dcc06['id']+'.\x0a');});}}catch(_0x1e250c){if(!_0x132bb6(_0x1e250c,0x194))throw _0x1e250c;le(_0xa54a58);}}function le(_0x2e4e82){const _0xf9bfba=_0x33fd0a;console[_0xf9bfba(0x1b8)](_0xf9bfba(0x115)+_0x2e4e82+_0xf9bfba(0xb6)),process[_0xf9bfba(0x8a)](0x1);}function zt(_0x27b8e0){const _0x28c71a=_0x33fd0a;process['stdout']['write'](_0x28c71a(0x21f)+_0x27b8e0['id']+'\x0a'),process[_0x28c71a(0xf2)][_0x28c71a(0x203)]('Title\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x27b8e0['title']+'\x0a'),process[_0x28c71a(0xf2)][_0x28c71a(0x203)](_0x28c71a(0x23d)+_0x27b8e0[_0x28c71a(0x138)]+'\x0a'),process[_0x28c71a(0xf2)][_0x28c71a(0x203)](_0x28c71a(0x88)+_0x27b8e0[_0x28c71a(0x261)]+'\x0a'),_0x27b8e0[_0x28c71a(0x1c8)]&&process[_0x28c71a(0xf2)][_0x28c71a(0x203)](_0x28c71a(0xdb)+_0x27b8e0[_0x28c71a(0x1c8)]+'\x0a');}async function Yt(_0x32434c,_0x21c72c,_0x52ca04){const _0x48c93f=_0x33fd0a;(!_0x21c72c||_0x52ca04||!_0x32434c[_0x48c93f(0x216)])&&(console[_0x48c93f(0x1b8)](_0x48c93f(0x157)),process['exit'](0x2));let {client:_0x120ea1}=await v(_0x32434c),_0x52e323=await _0x32db90(_0x120ea1,_0x21c72c,_0x32434c['turnId']);u(_0x32434c,{'sessionId':_0x21c72c,'turnId':_0x32434c[_0x48c93f(0x216)],'cancelled':_0x52e323},_0x1c9b98=>{const _0x4c9cc4=_0x48c93f;_0x1c9b98[_0x4c9cc4(0x147)]?process['stdout'][_0x4c9cc4(0x203)](_0x4c9cc4(0x224)+_0x1c9b98[_0x4c9cc4(0x216)]+_0x4c9cc4(0x22e)+_0x1c9b98['sessionId']+'.\x0a'):process[_0x4c9cc4(0xda)][_0x4c9cc4(0x203)](_0x4c9cc4(0xd3)+_0x1c9b98['turnId']+_0x4c9cc4(0x139)+_0x1c9b98[_0x4c9cc4(0xd0)]+'.\x0a');}),_0x52e323||(process[_0x48c93f(0x1c9)]=0x1);}async function Vt(_0x20a5e5,_0x51bcb5,_0x5e84db){const _0x5399b6=_0x33fd0a;(!_0x51bcb5||/\s/[_0x5399b6(0x84)](_0x5e84db))&&(console['error'](_0x5399b6(0x14f)),process[_0x5399b6(0x8a)](0x2));let {client:_0x1a0683}=await v(_0x20a5e5),_0x44205d;try{_0x44205d=await _0xa344c0(_0x1a0683,_0x51bcb5,{'atMessageId':_0x5e84db||void 0x0});}catch(_0x3ac827){if(!_0x132bb6(_0x3ac827,0x194))throw _0x3ac827;console['error']('Session\x20'+_0x51bcb5+_0x5399b6(0xab)+(_0x5e84db?_0x5399b6(0xa3)+_0x5e84db:'')+'.'),process[_0x5399b6(0x8a)](0x1);}u(_0x20a5e5,_0x44205d,_0x4791b9=>{const _0x1a2b8a=_0x5399b6;process[_0x1a2b8a(0xf2)][_0x1a2b8a(0x203)](_0x1a2b8a(0x1eb)+_0x51bcb5+_0x1a2b8a(0x24b)+_0x4791b9['id']+'.\x0a'),process[_0x1a2b8a(0xda)][_0x1a2b8a(0x203)](_0x1a2b8a(0x10b)+_0x4791b9['id']+_0x1a2b8a(0xdd));});}function Xt({sessions:_0x57fcfc,page:_0x1bbc28,isLastPage:_0x2d0035}){const _0x4423da=_0x33fd0a;if(_0x57fcfc[_0x4423da(0x16b)]===0x0)process['stderr'][_0x4423da(0x203)]('No\x20sessions\x20on\x20page\x20'+_0x1bbc28+'.\x0a');else{process[_0x4423da(0xf2)][_0x4423da(0x203)]('ID'[_0x4423da(0x10c)](0x24)+'\x20\x20'+_0x4423da(0x71)[_0x4423da(0x10c)](0x13)+_0x4423da(0x268));for(let _0x4a0c5d of _0x57fcfc){let _0x6e13f7=_0x4a0c5d[_0x4423da(0x111)][_0x4423da(0xba)]('T','\x20')[_0x4423da(0xe4)](0x0,0x13),_0x4e1d1c=_0x4a0c5d[_0x4423da(0x145)]?_0x4423da(0x9b)+_0x4a0c5d[_0x4423da(0x145)]+')':'';process[_0x4423da(0xf2)][_0x4423da(0x203)](_0x4a0c5d['id'][_0x4423da(0x10c)](0x24)+'\x20\x20'+_0x6e13f7[_0x4423da(0x10c)](0x13)+'\x20\x20'+_0x4a0c5d[_0x4423da(0x70)]+_0x4e1d1c+'\x0a');}}_0x2d0035||process['stderr'][_0x4423da(0x203)](_0x4423da(0x18d)+(_0x1bbc28+0x1)+'\x0a');}async function Zt(_0x4210e0){const _0x454e30=_0x33fd0a;let _0x24f787=await q(),_0x547369=_0x19c0bc(_0x4210e0['env'],_0x24f787,_0x4210e0[_0x454e30(0x235)]);z(_0x4210e0['env'],_0x4210e0['backendUrl'],_0x547369);let _0x53d316=await _0xc2d6eb({'auth':_0x24f787,'backendUrl':_0x547369,'interop':_0x4210e0['headless']?_0x454e30(0x1d0):_0x454e30(0x19b)});u(_0x4210e0,_0x53d316,({checks:_0x17ab40})=>{const _0x4b2465=_0x454e30;for(let _0x4ebca7 of _0x17ab40)process['stdout'][_0x4b2465(0x203)](en(_0x4ebca7)+'\x0a');}),_0x53d316['ok']||process[_0x454e30(0x8a)](0x1);}function en(_0x5c1e32){const _0x28cd0f=_0x33fd0a;return{'ok':'✓','failed':'✗','skipped':'-'}[_0x5c1e32[_0x28cd0f(0x8e)]]+'\x20'+_0x5c1e32[_0x28cd0f(0x1d3)][_0x28cd0f(0x10c)](0xa)+_0x5c1e32[_0x28cd0f(0x9e)];}var tn=['','activity',_0x33fd0a(0x7b)];async function nn(_0x10e5c1){const _0x441c5a=_0x33fd0a;let _0x8ed351=_0x10e5c1['prompt'];tn['includes'](_0x8ed351)||(console[_0x441c5a(0x1b8)](_0x441c5a(0x1e6)+_0x10e5c1[_0x441c5a(0x13f)]+_0x441c5a(0x83)),process[_0x441c5a(0x8a)](0x2)),_0x8ed351===''&&_0x10e5c1[_0x441c5a(0x253)]!==void 0x0&&(console[_0x441c5a(0x1b8)](_0x441c5a(0x16f)),process['exit'](0x2)),_0x8ed351!==''&&_0x10e5c1[_0x441c5a(0xd0)]!==void 0x0&&(console[_0x441c5a(0x1b8)](_0x441c5a(0x195)),process[_0x441c5a(0x8a)](0x2));let {client:_0x380a32}=await v(_0x10e5c1);if(_0x8ed351===_0x441c5a(0x7c)){u(_0x10e5c1,await _0x5d26b7(_0x380a32,{'days':_0x10e5c1['days']}),sn);return;}if(_0x8ed351===_0x441c5a(0x7b)){u(_0x10e5c1,await _0x5ddec2(_0x380a32,{'days':_0x10e5c1['days']}),rn);return;}let [_0x500e99,_0x3e05f1,_0x1a13b6]=await Promise[_0x441c5a(0x1de)]([_0x50ded1(_0x380a32,{'sessionId':_0x10e5c1[_0x441c5a(0xd0)]}),_0x520cd0(_0x380a32),_0x49a3a4(_0x380a32)]);u(_0x10e5c1,{'licensing':_0x500e99,'monthlySpending':_0x3e05f1,'cartographerAllowance':_0x1a13b6},on);}function on(_0x56402d){const _0x25b72d=_0x33fd0a;let {licensing:_0x225e71,monthlySpending:_0x1c2a8c,cartographerAllowance:_0x9ad812}=_0x56402d,_0x3a8b3e=[_0x225e71[_0x25b72d(0x15c)]?_0x25b72d(0x21d)+_0x225e71[_0x25b72d(0x22b)]['toFixed'](0x1)+_0x25b72d(0x6f)+(_0x225e71['total_quota_pu']??0x0)+'\x20PU\x20used'+(_0x225e71[_0x25b72d(0x135)]>0x0?',\x20'+_0x225e71[_0x25b72d(0x135)]+_0x25b72d(0xc4):'')+_0x25b72d(0x16e)+_0x225e71[_0x25b72d(0x214)]+')':_0x25b72d(0x246),_0x25b72d(0x124)+_0x1c2a8c[_0x25b72d(0x211)][_0x25b72d(0x24d)](0x2)+_0x25b72d(0x1c2)+(_0x1c2a8c['limit_enabled']&&_0x1c2a8c['monthly_limit_usd']!==null?_0x25b72d(0x1ff)+_0x1c2a8c[_0x25b72d(0x242)][_0x25b72d(0x24d)](0x2)+_0x25b72d(0x223):'\x20(no\x20cap\x20enforced)'),_0x25b72d(0x105)+_0x9ad812[_0x25b72d(0x7d)]+'\x20('+_0x9ad812[_0x25b72d(0x21a)]+')'];_0x225e71['session_consumed_pu']!==null&&_0x225e71[_0x25b72d(0x100)]!==void 0x0&&_0x3a8b3e[_0x25b72d(0xfd)](_0x25b72d(0x1be)+_0x225e71['session_consumed_pu']+_0x25b72d(0x20e)),process['stdout']['write'](_0x3a8b3e[_0x25b72d(0xc3)]('\x0a')+'\x0a');}function sn(_0x5a9d20){const _0x628499=_0x33fd0a;let _0x4b1e55=[_0x628499(0x1cf)+_0x5a9d20[_0x628499(0x193)]+_0x628499(0x258)+_0x5a9d20[_0x628499(0x1ef)]+_0x628499(0x265)+_0x5a9d20[_0x628499(0x134)]+_0x628499(0xd7),_0x628499(0x1f8)+_0x5a9d20['total_cost_usd'][_0x628499(0x24d)](0x2)+_0x628499(0xc8)+_0x5a9d20[_0x628499(0x158)][_0x628499(0x24d)](0x2)+'\x20from\x20'+_0x5a9d20[_0x628499(0x123)]+_0x628499(0xc7),_0x628499(0x1f7)+_0x5a9d20[_0x628499(0x17b)]+_0x628499(0x17a)+_0x5a9d20[_0x628499(0x1db)]+_0x628499(0x1e7)];for(let [_0x244bf1,_0x525a36]of Object[_0x628499(0x25b)](_0x5a9d20['models_breakdown']))_0x4b1e55['push']('\x20\x20'+_0x244bf1+':\x20'+_0x525a36+_0x628499(0x236));process[_0x628499(0xf2)][_0x628499(0x203)](_0x4b1e55['join']('\x0a')+'\x0a');}function rn(_0x3e9936){const _0x19e23a=_0x33fd0a;if(_0x3e9936[_0x19e23a(0x225)][_0x19e23a(0x16b)]===0x0){process['stdout']['write'](_0x19e23a(0x1ed)+_0x3e9936[_0x19e23a(0x193)]+'\x20days.\x0a');return;}let _0x9efea=['Date\x20\x20\x20\x20\x20\x20\x20\x20Token\x20units\x20\x20Prompt\x20tokens\x20\x20Completion\x20tokens'];for(let _0x30654f of _0x3e9936['daily_usage'])_0x9efea[_0x19e23a(0xfd)](_0x30654f['date']+'\x20\x20'+String(_0x30654f['token_units'])['padStart'](0xb)+'\x20\x20'+String(_0x30654f['prompt_tokens'])[_0x19e23a(0x1a1)](0xd)+'\x20\x20'+String(_0x30654f[_0x19e23a(0x19a)])[_0x19e23a(0x1a1)](0x11));process[_0x19e23a(0xf2)]['write'](_0x9efea['join']('\x0a')+'\x0a');}async function an(_0x19939f,_0x20f88d){const _0x4b927b=_0x33fd0a;let _0x56165a=await ln(_0x19939f['prompt'],_0x20f88d);_0x19939f['model']&&(_0x56165a[_0x4b927b(0x1bd)]=_0x19939f['model']);let {client:_0x5611ec}=await v(_0x19939f);try{_0x20f88d===_0x4b927b(0x12d)?u(_0x19939f,await _0x3ca222(_0x5611ec,_0x56165a,void 0x0),dn):_0x20f88d===_0x4b927b(0x127)?u(_0x19939f,await _0x35deef(_0x5611ec,_0x56165a,void 0x0),un):u(_0x19939f,await _0x57e0a5(_0x5611ec,_0x56165a,void 0x0),pn);}catch(_0x2ebfea){if(!_0x37b2c4(_0x2ebfea))throw _0x2ebfea;console[_0x4b927b(0x1b8)](_0x2ebfea[_0x4b927b(0x1b6)]),process[_0x4b927b(0x8a)](0x1);}}async function ln(_0x3b79f7,_0x23a152){const _0x2d830b=_0x33fd0a;let _0x580950;try{_0x580950=_0x3b79f7&&_0x3b79f7!=='-'?_0x3a9423['readFileSync'](_0x5f19ae['resolve'](_0x3b79f7),_0x2d830b(0x1d4)):await j(_0x3b79f7,process['stdin']);}catch(_0x7f6770){console[_0x2d830b(0x1b8)](_0x23a152+':\x20cannot\x20read\x20the\x20request\x20('+_0x7f6770[_0x2d830b(0x1b6)]+').'),process[_0x2d830b(0x8a)](0x2);}return _0x580950||(console[_0x2d830b(0x1b8)](_0x23a152+'\x20needs\x20a\x20JSON\x20request:\x20delegate-cli\x20'+_0x23a152+_0x2d830b(0x1b3)),process[_0x2d830b(0x8a)](0x2)),Ae(_0x580950,_0x23a152,_0x2d830b(0x1e8));}function Ae(_0x884c65,_0x2b23a5,_0x53f28e){const _0xc73128=_0x33fd0a;let _0x1d56d8;try{_0x1d56d8=JSON[_0xc73128(0xac)](_0x884c65);}catch(_0x10ee31){console[_0xc73128(0x1b8)](_0x2b23a5+':\x20'+_0x53f28e+_0xc73128(0xa8)+_0x10ee31[_0xc73128(0x1b6)]+').'),process[_0xc73128(0x8a)](0x2);}return(typeof _0x1d56d8!='object'||_0x1d56d8===null||Array['isArray'](_0x1d56d8))&&(console[_0xc73128(0x1b8)](_0x2b23a5+':\x20'+_0x53f28e+_0xc73128(0xe6)),process['exit'](0x2)),_0x1d56d8;}function $e(_0x1d3a58,_0x55d1a9){const _0x1d880f=_0x33fd0a;let _0x1d829b;try{_0x1d829b=_0x3a9423[_0x1d880f(0x1fc)](_0x5f19ae['resolve'](_0x1d3a58),_0x1d880f(0x1d4));}catch(_0x50365e){console[_0x1d880f(0x1b8)](_0x55d1a9+_0x1d880f(0x175)+_0x50365e['message']+').'),process[_0x1d880f(0x8a)](0x2);}return Ae(_0x1d829b,_0x55d1a9,_0x1d880f(0xee));}async function cn(_0x40e46c){const _0x3c6986=_0x33fd0a;_0x40e46c['jsonSchemaPath']===void 0x0&&(console[_0x3c6986(0x1b8)](_0x3c6986(0x240)),process[_0x3c6986(0x8a)](0x2));let _0x1ff334=$e(_0x40e46c[_0x3c6986(0x16d)],_0x3c6986(0x20f)),_0x419020=(await j(_0x40e46c[_0x3c6986(0x13f)],process['stdin']))[_0x3c6986(0x23f)]();_0x419020||(console[_0x3c6986(0x1b8)]('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:_0x508227}=await v(_0x40e46c);try{let _0xdf1e48=await _0x5dcf06(_0x508227,{'prompt':_0x419020,'jsonSchema':_0x1ff334,'model':_0x40e46c[_0x3c6986(0x1bd)]||process.env.MODEL||_0x2c55f4,..._0x40e46c['sessionId']!==void 0x0&&{'sessionId':_0x40e46c['sessionId']}},void 0x0);u(_0x40e46c,_0xdf1e48,_0x5340d1=>{const _0x34057a=_0x3c6986;process[_0x34057a(0xf2)][_0x34057a(0x203)](JSON['stringify'](_0x5340d1[_0x34057a(0x208)],null,0x2)+'\x0a');});}catch(_0x63f483){if(!_0x1e2b63(_0x63f483))throw _0x63f483;console['error'](_0x63f483[_0x3c6986(0x1b6)]),process['exit'](0x1);}}function Y(_0x5b0dbd){const _0x429771=_0x33fd0a;process['stdout']['write'](_0x429771(0x194)+_0x5b0dbd[_0x429771(0x1bd)]+'\x20('+_0x5b0dbd[_0x429771(0x1ea)]+_0x429771(0x20a)+_0x5b0dbd[_0x429771(0x233)]['total_tokens']+_0x429771(0x1bf));}function dn(_0x327c62){const _0x3019b4=_0x33fd0a;Y(_0x327c62);for(let _0x7a2c13 of Object[_0x3019b4(0xe2)](_0x327c62[_0x3019b4(0xa2)])){let _0x513c06=_0x327c62[_0x3019b4(0xa2)][_0x7a2c13],_0x3071f8=_0x513c06[_0x3019b4(0x174)]===_0x3019b4(0x228)?_0x3019b4(0x1e2)+_0x513c06['probability'][_0x3019b4(0x24d)](0x2):_0x513c06['type']===_0x3019b4(0xa4)?'choice\x20'+_0x513c06[_0x3019b4(0xa4)]+'\x20(confidence\x20'+_0x513c06[_0x3019b4(0x166)][_0x3019b4(0x24d)](0x2)+')':_0x3019b4(0xc2)+_0x513c06[_0x3019b4(0x118)]['toFixed'](0x2)+_0x3019b4(0xf3)+_0x513c06[_0x3019b4(0x166)][_0x3019b4(0x24d)](0x2)+')';process[_0x3019b4(0xf2)][_0x3019b4(0x203)]('\x20\x20'+_0x7a2c13+':\x20'+_0x3071f8+'\x0a');}}function un(_0x17676e){const _0x52e5a9=_0x33fd0a;Y(_0x17676e),_0x17676e[_0x52e5a9(0x1fd)][_0x52e5a9(0x1ca)]((_0x3e7f20,_0x5135c1)=>{const _0x2a575a=_0x52e5a9;process[_0x2a575a(0xf2)]['write']('\x20\x20'+(_0x5135c1+0x1)+'.\x20'+_0x3e7f20['id']+'\x20\x20'+_0x3e7f20[_0x2a575a(0x118)]['toFixed'](0x3)+_0x2a575a(0x113)+_0x3e7f20[_0x2a575a(0x19d)]+')\x0a');});}function pn(_0x301faa){const _0x53ce4c=_0x33fd0a;Y(_0x301faa),process[_0x53ce4c(0xf2)][_0x53ce4c(0x203)]('Rubric\x20'+_0x301faa['rubric_version']+'\x0a');for(let _0x30f06b of _0x301faa[_0x53ce4c(0x1fd)])process[_0x53ce4c(0xf2)][_0x53ce4c(0x203)]('\x20\x20'+_0x30f06b['id']+':\x20'+_0x30f06b[_0x53ce4c(0x173)]+_0x53ce4c(0xf3)+_0x30f06b[_0x53ce4c(0x166)][_0x53ce4c(0x24d)](0x2)+')\x0a');}async function mn(_0x109a87){const _0x158c61=_0x33fd0a;let _0x3c97b9=_0x109a87[_0x158c61(0x13f)]['trim']();_0x3c97b9||(console['error']('transcribe\x20needs\x20audio:\x20delegate-cli\x20transcribe\x20<file>,\x20or\x20-\x20to\x20read\x20stdin.'),process[_0x158c61(0x8a)](0x2));let {client:_0x5e0e36}=await v(_0x109a87);try{let _0x1084dd=_0x3c97b9==='-'?{'data':await fn(process['stdin'])}:_0x3c97b9;u(_0x109a87,await _0x48f07c(_0x5e0e36,_0x1084dd,void 0x0),_0x1824c5=>{const _0xd8c5af=_0x158c61;process[_0xd8c5af(0xf2)][_0xd8c5af(0x203)](_0x1824c5[_0xd8c5af(0x259)]+'\x0a');});}catch(_0x2b3fce){if(_0x248667(_0x2b3fce)&&(console[_0x158c61(0x1b8)](_0x2b3fce[_0x158c61(0x1b6)]),process[_0x158c61(0x8a)](_0x2b3fce[_0x158c61(0x8e)]===void 0x0?0x2:0x1)),typeof _0x2b3fce?.[_0x158c61(0x184)]!=_0x158c61(0xe9))throw _0x2b3fce;console[_0x158c61(0x1b8)](_0x158c61(0x1aa)+_0x3c97b9+'\x20('+_0x2b3fce['message']+').'),process['exit'](0x2);}}async function fn(_0x590d16){const _0x3e6f98=_0x33fd0a;let _0x527a08=[];for await(let _0x29613b of _0x590d16)_0x527a08[_0x3e6f98(0xfd)](Buffer[_0x3e6f98(0x102)](_0x29613b));return Buffer[_0x3e6f98(0xe5)](_0x527a08);}function _0x4db5(_0x2e0d05,_0x3f143c){_0x2e0d05=_0x2e0d05-0x6e;const _0x591944=_0x5919();let _0x4db5d6=_0x591944[_0x2e0d05];return _0x4db5d6;}var ce=[_0x33fd0a(0x6e),_0x33fd0a(0x14b),_0x33fd0a(0xe0),'create',_0x33fd0a(0x119),'complete',_0x33fd0a(0x178),_0x33fd0a(0x189),_0x33fd0a(0x8f),_0x33fd0a(0x1ec)],de={'list':_0x33fd0a(0x232),'pending':_0x33fd0a(0x106),'show':_0x33fd0a(0x162),'create':_0x33fd0a(0x1cb),'claim':'delegations\x20claim\x20<delegation-id|delegate://delegation/…>','complete':_0x33fd0a(0x22d),'accept':'delegations\x20accept\x20<delegation-id>','dismiss':'delegations\x20dismiss\x20<delegation-id>','cancel':_0x33fd0a(0x177),'delete':'delegations\x20delete\x20<delegation-id>'};async function gn(_0x54f360){const _0x315a58=_0x33fd0a;let [_0x6fa045='',_0x195edd='',..._0x3bfb23]=_0x54f360[_0x315a58(0xb7)];ce[_0x315a58(0x185)](_0x6fa045)||(console[_0x315a58(0x1b8)]((_0x6fa045?_0x315a58(0x122)+_0x6fa045+'.\x20':'')+_0x315a58(0x7f)+ce[_0x315a58(0xc3)](_0x315a58(0x75))+'.'),process[_0x315a58(0x8a)](0x2));let _0x1a0c32=_0x6fa045;_0x1a0c32!==_0x315a58(0x72)&&(_0x54f360[_0x315a58(0xef)]!==void 0x0||_0x54f360['contextSummary']!==void 0x0||_0x54f360[_0x315a58(0xd0)]!==void 0x0)&&(console[_0x315a58(0x1b8)](_0x315a58(0x231)),process[_0x315a58(0x8a)](0x2));let _0x4a42fe=(_0x1a0c32===_0x315a58(0x72)?_0x54f360[_0x315a58(0xb7)]['slice'](0x1):_0x3bfb23)['join']('\x20')['trim'](),_0x141959=_0x1a0c32===_0x315a58(0x72)||_0x1a0c32==='complete';(_0x1a0c32!==_0x315a58(0x72)&&!_0x195edd||(_0x141959?!_0x4a42fe:_0x4a42fe)||_0x1a0c32==='create'&&!_0x54f360[_0x315a58(0xd0)])&&(console[_0x315a58(0x1b8)](_0x315a58(0x161)+de[_0x1a0c32]),process[_0x315a58(0x8a)](0x2));let _0xf21389=_0x141959&&_0x4a42fe==='-'?(await j('-',process[_0x315a58(0x137)]))[_0x315a58(0x23f)]():_0x4a42fe;_0x141959&&!_0xf21389&&(console['error'](_0x315a58(0x161)+de[_0x1a0c32]+'\x20(stdin\x20was\x20empty)'),process['exit'](0x2));let {client:_0x73f574}=await v(_0x54f360);try{await hn(_0x54f360,_0x73f574,_0x1a0c32,_0x195edd,_0xf21389);}catch(_0xd91863){if(!_0x3e90a8(_0xd91863))throw _0xd91863;console[_0x315a58(0x1b8)](_0xd91863[_0x315a58(0x1b6)]),process[_0x315a58(0x8a)](0x1);}}async function hn(_0x2f75e9,_0x58759c,_0x2b1a60,_0x54ec8b,_0x1f1b4a){const _0x1c0c94=_0x33fd0a;switch(_0x2b1a60){case _0x1c0c94(0x6e):u(_0x2f75e9,await _0x1aaceb(_0x58759c,_0x54ec8b),yn);return;case _0x1c0c94(0x14b):u(_0x2f75e9,await _0x52c717(_0x58759c,_0x54ec8b),_0x4a59fe=>{const _0x166659=_0x1c0c94;_0x4a59fe[_0x166659(0xc6)]&&process[_0x166659(0xf2)][_0x166659(0x203)](_0x166659(0x159)+_0x4a59fe[_0x166659(0xc6)]['id']+'\x20('+_0x4a59fe['delegation'][_0x166659(0x8e)]+_0x166659(0x24f)),_0x4a59fe[_0x166659(0xfb)]['length']===0x0&&process[_0x166659(0xda)]['write'](_0x166659(0x89));for(let _0x92fb09 of _0x4a59fe[_0x166659(0xfb)])process[_0x166659(0xf2)][_0x166659(0x203)]('\x0a'+_0x92fb09['id']+_0x166659(0x256)+(_0x92fb09[_0x166659(0x237)]??_0x166659(0x251))+'\x20\x20'+(_0x92fb09['task']??'')+'\x0a'+(_0x92fb09[_0x166659(0x204)]?.['content']??'')+'\x0a');_0x4a59fe[_0x166659(0xfb)][_0x166659(0x16b)]>0x0&&process[_0x166659(0xda)][_0x166659(0x203)](_0x166659(0x206));});return;case _0x1c0c94(0xe0):u(_0x2f75e9,await _0x2be8e0(_0x58759c,_0x54ec8b),ue);return;case _0x1c0c94(0x72):{let _0x24a3a2=await _0x158f7f(_0x58759c,{'sessionId':_0x2f75e9[_0x1c0c94(0xd0)],'task':_0x1f1b4a,..._0x2f75e9[_0x1c0c94(0x25a)]!==void 0x0&&{'contextSummary':_0x2f75e9['contextSummary']},..._0x2f75e9[_0x1c0c94(0xef)]!==void 0x0&&{'recipient':_0x2f75e9[_0x1c0c94(0xef)]}});u(_0x2f75e9,_0x24a3a2,_0x5cabae=>{const _0xdb7012=_0x1c0c94;_0x5cabae[_0xdb7012(0x11a)]?process[_0xdb7012(0xf2)][_0xdb7012(0x203)](_0xdb7012(0x14c)+_0x5cabae[_0xdb7012(0x1c8)]+_0xdb7012(0x1cd)+_0x5cabae[_0xdb7012(0x11a)][_0xdb7012(0x1e5)]+'\x20<'+_0x5cabae[_0xdb7012(0x11a)][_0xdb7012(0x212)]+'>.\x0a'):process['stdout']['write'](_0xdb7012(0x263)+_0x5cabae[_0xdb7012(0x1c8)]+_0xdb7012(0xd4)+_0x5cabae[_0xdb7012(0x96)]+'\x0a');});return;}case'claim':{let _0x31c1fb=await _0x391077(_0x58759c,_0x54ec8b);u(_0x2f75e9,_0x31c1fb,_0x1de09b=>{const _0x4f5e4f=_0x1c0c94;ue(_0x1de09b),process[_0x4f5e4f(0xf2)][_0x4f5e4f(0x203)](_0x4f5e4f(0x12b)+_0x1de09b['sessionId']+'\x0a'),process[_0x4f5e4f(0xda)]['write']('Work\x20on\x20it\x20with:\x20delegate-cli\x20--session\x20'+_0x1de09b[_0x4f5e4f(0xd0)]+_0x4f5e4f(0x10a)+_0x1de09b['delegationId']+_0x4f5e4f(0x87));});return;}case'complete':{let {alreadyCompleted:_0x2bfce7}=await _0x9d4fda(_0x58759c,_0x54ec8b,{'content':_0x1f1b4a});u(_0x2f75e9,{'delegationId':_0x54ec8b,'alreadyCompleted':_0x2bfce7},_0x20774e=>{const _0x362724=_0x1c0c94;process[_0x362724(0xf2)][_0x362724(0x203)]((_0x20774e[_0x362724(0x11b)]?_0x362724(0x136):'Answered')+_0x362724(0x219)+_0x20774e[_0x362724(0x1c8)]+'.\x0a');});return;}case'accept':{let _0x4b76a5=await _0x168cc9(_0x58759c,_0x54ec8b);u(_0x2f75e9,{'delegationId':_0x54ec8b,..._0x4b76a5},_0x544e52=>{const _0x53d0e1=_0x1c0c94;process['stdout'][_0x53d0e1(0x203)]((_0x544e52[_0x53d0e1(0x1e1)]?_0x53d0e1(0x18b):_0x53d0e1(0xd5))+_0x53d0e1(0x219)+_0x544e52['delegationId']+'.\x0a');});return;}default:{let _0x4429ff={'dismiss':_0x203e08,'cancel':_0x3415b5,'delete':_0x134980}[_0x2b1a60];await _0x4429ff(_0x58759c,_0x54ec8b);let _0x2115c5={'dismiss':_0x1c0c94(0x234),'cancel':_0x1c0c94(0x147),'delete':_0x1c0c94(0x1ba)}[_0x2b1a60];u(_0x2f75e9,{'delegationId':_0x54ec8b,[_0x2115c5]:!0x0},()=>{const _0x1e236a=_0x1c0c94;process[_0x1e236a(0xf2)][_0x1e236a(0x203)](''+_0x2115c5[0x0][_0x1e236a(0x76)]()+_0x2115c5[_0x1e236a(0xe4)](0x1)+_0x1e236a(0x219)+_0x54ec8b+'.\x0a');});}}}function yn(_0x3e2f06){const _0x4d89a8=_0x33fd0a;if(_0x3e2f06[_0x4d89a8(0x16b)]===0x0){process['stderr'][_0x4d89a8(0x203)](_0x4d89a8(0x1c5));return;}process[_0x4d89a8(0xf2)][_0x4d89a8(0x203)]('ID'[_0x4d89a8(0x10c)](0x24)+'\x20\x20'+'STATUS'[_0x4d89a8(0x10c)](0x9)+'\x20\x20'+_0x4d89a8(0x21c)[_0x4d89a8(0x10c)](0x18)+'\x20\x20TASK\x0a');for(let _0x2ae8d of _0x3e2f06)process[_0x4d89a8(0xf2)][_0x4d89a8(0x203)](_0x2ae8d['id'][_0x4d89a8(0x10c)](0x24)+'\x20\x20'+_0x2ae8d[_0x4d89a8(0x8e)]['padEnd'](0x9)+'\x20\x20'+(_0x2ae8d['assignedUserEmail']??'-')['padEnd'](0x18)+'\x20\x20'+(_0x2ae8d['task']??'')+'\x0a');}function ue(_0x83a1eb){const _0x15ff3a=_0x33fd0a;process['stdout']['write'](_0x15ff3a(0x1a0)+(_0x83a1eb[_0x15ff3a(0x13b)]??'-')+'\x0a'),_0x83a1eb[_0x15ff3a(0x86)]&&process[_0x15ff3a(0xf2)]['write']('Session\x20\x20\x20\x20\x20\x20\x20'+_0x83a1eb[_0x15ff3a(0x86)]+'\x0a'),process[_0x15ff3a(0xf2)][_0x15ff3a(0x203)](_0x15ff3a(0x121)+(_0x83a1eb[_0x15ff3a(0x125)]??'-')+'\x0a'),_0x83a1eb[_0x15ff3a(0x25a)]&&process[_0x15ff3a(0xf2)]['write']('\x0a'+_0x83a1eb[_0x15ff3a(0x25a)]+'\x0a\x0a');}async function wn(_0x497646){const _0x6d8184=_0x33fd0a;_0x497646[_0x6d8184(0x13f)][_0x6d8184(0x23f)]()||(console['error']('Usage:\x20delegate-cli\x20org-users\x20<name\x20or\x20email\x20prefix>'),process[_0x6d8184(0x8a)](0x2));let {client:_0x5e2d2f}=await v(_0x497646),_0x112522;try{_0x112522=await _0x4ebe33(_0x5e2d2f,_0x497646[_0x6d8184(0x13f)]);}catch(_0x294a40){if(!_0x3e90a8(_0x294a40))throw _0x294a40;console[_0x6d8184(0x1b8)](_0x294a40[_0x6d8184(0x1b6)]),process[_0x6d8184(0x8a)](0x1);}u(_0x497646,_0x112522,_0x23df9b=>{const _0x1067c5=_0x6d8184;_0x23df9b[_0x1067c5(0x16b)]===0x0&&process[_0x1067c5(0xda)]['write'](_0x1067c5(0xae)+_0x497646[_0x1067c5(0x13f)]['trim']()+_0x1067c5(0xfa));for(let _0x2fd3bb of _0x23df9b)process[_0x1067c5(0xf2)][_0x1067c5(0x203)](_0x2fd3bb['email'][_0x1067c5(0x10c)](0x20)+'\x20\x20'+_0x2fd3bb[_0x1067c5(0x1e5)]+'\x0a');});}async function kn(_0x44930f){const _0x342832=_0x33fd0a;_0x44930f[_0x342832(0xa9)]==='localhost'&&(console[_0x342832(0x1b8)](_0x342832(0x254)),process[_0x342832(0x8a)](0x2));let _0x5dea34=M(_0x3f43b8()),_0x27f211=_0x44930f[_0x342832(0x248)];if(_0x44930f[_0x342832(0xa9)]){let _0x1c4794=_0x44930f[_0x342832(0xa9)];await _0x2ebee3({'env':_0x1c4794,'tenant':_0x44930f['tenant']??G(_0x5dea34,_0x222cf[_0x1c4794]),'skipEnvCheck':_0x27f211});return;}let _0x1591b0=_0x44930f[_0x342832(0x217)]??ve();if(_0x1591b0){await _0x2ebee3({'baseUrl':_0x1591b0,'tenant':_0x44930f[_0x342832(0x1b2)]??G(_0x5dea34,_0x1591b0),'skipEnvCheck':_0x27f211});return;}if(_0x5dea34?.['baseUrl']){await _0x2ebee3({'baseUrl':_0x5dea34[_0x342832(0x12c)],'tenant':_0x44930f[_0x342832(0x1b2)]??_0x5dea34[_0x342832(0x18e)],'skipEnvCheck':_0x27f211});return;}console[_0x342832(0x1b8)](_0x342832(0x1c0)),process[_0x342832(0x8a)](0x2);}function G(_0x200b34,_0xf9fb3b){const _0x21e8f6=_0x33fd0a;return _0x200b34?.['baseUrl']&&bn(_0x200b34['baseUrl'],_0xf9fb3b)?_0x200b34[_0x21e8f6(0x18e)]:void 0x0;}function bn(_0x333d83,_0x4b9ee8){const _0xe30a9f=_0x33fd0a;try{return new URL(_0x333d83)['origin']===new URL(_0x4b9ee8)[_0xe30a9f(0x1ae)];}catch{return!0x1;}}async function Sn(_0x388eb8){const _0x138c12=_0x33fd0a;Q()&&(console[_0x138c12(0x1b8)]('Auth\x20comes\x20from\x20AUTH_TOKEN/TENANT_ID/ORG_ID\x20—\x20set\x20TENANT_ID\x20and\x20TENANT_SLUG\x20to\x20change\x20the\x20tenant.'),process['exit'](0x2));let _0x306ee3=await _0x3fc910();if(_0x306ee3||(console['error'](vn()),process[_0x138c12(0x8a)](0x2)),_0x388eb8[_0x138c12(0x23f)]()){let _0x239399=await _0x57b03c(_0x306ee3,_0x388eb8);_0x8b9633(_0x239399)||(console['error']('Tenant\x20not\x20switched:\x20could\x20not\x20write\x20'+_0x3f43b8()+_0x138c12(0xb5)+_0x306ee3[_0x138c12(0x18e)]+'.'),process['exit'](0x1)),console[_0x138c12(0x1b4)](_0x138c12(0x141)+_0x239399[_0x138c12(0x18e)]+'\x20('+_0x239399[_0x138c12(0x20d)]+')\x20—\x20saved\x20to\x20'+_0x3f43b8());return;}An(await _0x36ebf8(_0x306ee3),_0x306ee3);}function vn(){const _0x11690e=_0x33fd0a;if(_0x3a9423[_0x11690e(0x12a)](_0x3f43b8()))return _0x11690e(0xe3);let _0x4c7c5f=K();return M(_0x4c7c5f)?'No\x20CLI\x20login\x20to\x20switch:\x20the\x20CLI\x20is\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20'+_0x4c7c5f+',\x20whose\x20tenant\x20is\x20chosen\x20in\x20the\x20app.\x20Run\x20`delegate-cli\x20login\x20--env\x20<env>`\x20for\x20a\x20CLI\x20login\x20of\x20your\x20own.':_0x11690e(0x181);}function An(_0x79ecd3,_0x591793){const _0x16a3e5=_0x33fd0a;let _0x3834f8=_0x79ecd3['map'](_0x3cc73e=>_0x3cc73e['id']===_0x591793['tenantId']?'*\x20'+_0x3cc73e[_0x16a3e5(0x1d3)]+'\x20(current)':'\x20\x20'+_0x3cc73e[_0x16a3e5(0x1d3)]);process[_0x16a3e5(0xf2)][_0x16a3e5(0x203)](_0x16a3e5(0xb8)+(_0x591793[_0x16a3e5(0xf5)]??_0x591793['organizationId'])+':\x0a'+_0x3834f8[_0x16a3e5(0xc3)]('\x0a')+'\x0a'),_0x79ecd3['length']>0x1&&process[_0x16a3e5(0xf2)]['write'](_0x16a3e5(0x79));}function $n(_0x83bbc7){const _0x3c9f4c=_0x33fd0a;return _0x83bbc7?.['response']?.[_0x3c9f4c(0x8e)]===0x191||/401/[_0x3c9f4c(0x84)](String(_0x83bbc7?.[_0x3c9f4c(0x1b6)]??''));}var f={'lastType':null,'quiet':!0x1},Ee=_0x3e269d=>{const _0x11a565=_0x33fd0a;switch(_0x3e269d[_0x11a565(0x174)]){case _0x11a565(0xa5):_0x3e269d[_0x11a565(0xd0)]&&_0x3e269d[_0x11a565(0xd0)]!==f[_0x11a565(0xd0)]&&(process[_0x11a565(0xda)][_0x11a565(0x203)]('Session:\x20'+_0x3e269d[_0x11a565(0xd0)]+'\x20(resume\x20with\x20--session\x20'+_0x3e269d[_0x11a565(0xd0)]+')\x0a'),f[_0x11a565(0xd0)]=_0x3e269d['sessionId']);break;case _0x11a565(0xdf):_0x3e269d['turnId']&&_0x3e269d['turnId']!==f[_0x11a565(0x216)]&&(f['lastType']!==null&&process[_0x11a565(0xda)][_0x11a565(0x203)]('\x0a'),process[_0x11a565(0xda)]['write']('Turn:\x20'+_0x3e269d[_0x11a565(0x216)]+_0x11a565(0x24e)+_0x3e269d[_0x11a565(0xd0)]+_0x11a565(0xa7)+_0x3e269d[_0x11a565(0x216)]+')\x0a'),f['turnId']=_0x3e269d[_0x11a565(0x216)],f[_0x11a565(0x220)]=_0x11a565(0xdf));break;case _0x11a565(0x144):_0x3e269d[_0x11a565(0xea)]&&!f[_0x11a565(0x13d)]&&(f['lastType']!==_0x11a565(0x144)&&process[_0x11a565(0xda)][_0x11a565(0x203)](_0x11a565(0x202)),process[_0x11a565(0xda)][_0x11a565(0x203)](_0x3e269d[_0x11a565(0xea)]),f[_0x11a565(0x220)]='thinking');break;case'tool_call':f[_0x11a565(0x220)]!==null&&process['stderr'][_0x11a565(0x203)]('\x0a'),process[_0x11a565(0xda)][_0x11a565(0x203)](_0x11a565(0x255)+(_0x3e269d['toolName']??_0x11a565(0x17d))+'\x0a'),f['lastType']=_0x11a565(0x1a5);break;case _0x11a565(0x1b6):_0x3e269d[_0x11a565(0xea)]&&(f[_0x11a565(0x220)]!==_0x11a565(0x1b6)&&f[_0x11a565(0x220)]!==null&&process[_0x11a565(0xf2)][_0x11a565(0x203)]('\x0a'),process[_0x11a565(0xf2)]['write'](_0x3e269d['content']),f[_0x11a565(0x220)]='message');break;case _0x11a565(0x1b8):f[_0x11a565(0x220)]!==null&&process['stderr'][_0x11a565(0x203)]('\x0a'),process[_0x11a565(0xda)][_0x11a565(0x203)]('✗\x20'+(_0x3e269d['error']??'error')+'\x0a'),f['lastType']='error';break;case _0x11a565(0x80):(f[_0x11a565(0x220)]===_0x11a565(0x1b6)||f[_0x11a565(0x220)]===_0x11a565(0x144))&&process['stdout']['write']('\x0a'),process['stderr'][_0x11a565(0x203)](_0x11a565(0x200)),f[_0x11a565(0x220)]=_0x11a565(0x80);break;}};function pe(_0x22a46c,_0x2d402b,_0x2bd43d,_0x557abd){const _0x450b26=_0x33fd0a;let _0x15cfc9=_0x22a46c[_0x450b26(0x1bd)]||process.env.MODEL;return{'backendUrl':_0x2bd43d,'auth':_0x2d402b,'enableComputerUse':!_0x22a46c[_0x450b26(0x1dd)]&&!_0x22a46c[_0x450b26(0x247)],'autoSpawnInterop':!_0x22a46c[_0x450b26(0x1dd)],'enableConnections':!_0x22a46c[_0x450b26(0x74)],'enableSecurity':!_0x22a46c['noSecurity'],'keepInteropAlive':_0x22a46c['keepAlive'],..._0x557abd['oneTurn']?{'enableBackgroundCommands':!0x1}:{},..._0x22a46c['noMemory']?{'enableMemory':!0x1}:{},..._0x22a46c[_0x450b26(0xaa)]?{'enableTaskAutomation':!0x0}:{},..._0x22a46c[_0x450b26(0x230)][_0x450b26(0x16b)]>0x0?{'preloadSkills':_0x22a46c['preloadSkills']}:{},..._0x15cfc9?{'model':_0x15cfc9}:{},..._0x22a46c[_0x450b26(0x148)]?{'projectId':_0x22a46c[_0x450b26(0x148)]}:{},..._0x22a46c['workingDirectory']?{'workingDirectory':_0x22a46c[_0x450b26(0x19f)]}:{},..._0x22a46c[_0x450b26(0x1f4)]?{'bundledSkillsPath':_0x22a46c[_0x450b26(0x1f4)]}:{},..._0x22a46c[_0x450b26(0xfe)]?{'effort':_0x22a46c[_0x450b26(0xfe)]}:{},..._0x22a46c['sessionId']?{'sessionId':_0x22a46c[_0x450b26(0xd0)]}:{},..._0x22a46c[_0x450b26(0x154)]?{'verbose':!0x0}:{}};}async function En(_0x46a5cb){const _0xde06b6=_0x33fd0a;let _0x3f87f5=_0x46a5cb['outputFormat']!==_0xde06b6(0x259),_0x3316a1=_0x46a5cb[_0xde06b6(0x16d)]===void 0x0?null:$e(_0x46a5cb['jsonSchemaPath'],_0xde06b6(0x201)),_0x24e7e9=!_0x3f87f5&&!_0x3316a1&&!_0x46a5cb['print']&&_0x46a5cb[_0xde06b6(0x13f)]!=='-'&&!!process['stdin']['isTTY']&&!!process[_0xde06b6(0xf2)][_0xde06b6(0x9f)],_0x2f1b0c=_0x24e7e9?_0x46a5cb['prompt']['trim']():await j(_0x46a5cb[_0xde06b6(0x13f)],process[_0xde06b6(0x137)]);if(!_0x24e7e9&&!_0x2f1b0c&&(console['error']('Missing\x20prompt.\x20Pass\x20it\x20as\x20an\x20argument,\x20pipe\x20it\x20via\x20stdin,\x20or\x20run\x20`delegate-cli\x20--help`.'),process[_0xde06b6(0x8a)](0x2)),!_0x3f87f5){await me(_0x46a5cb,_0x2f1b0c,_0x24e7e9,null,_0x3316a1);return;}let _0x3cca75=!0x1,_0x3d0f2f=_0x1bca6a=>{const _0x4693f0=_0xde06b6;_0x3cca75=!0x0,P(_0x3f82fb(_0x1bca6a)),(_0x1bca6a[_0x4693f0(0x152)]||_0x1bca6a[_0x4693f0(0x1b1)])&&(process[_0x4693f0(0x1c9)]=0x1);},_0x73a95d=Date[_0xde06b6(0x1bc)]();try{await me(_0x46a5cb,_0x2f1b0c,!0x1,_0x3d0f2f,_0x3316a1);}catch(_0x1450a4){if(_0x3cca75)throw _0x1450a4;process[_0xde06b6(0xda)][_0xde06b6(0x203)]((_0x1450a4 instanceof Error?_0x1450a4[_0xde06b6(0x163)]??_0x1450a4[_0xde06b6(0x1b6)]:String(_0x1450a4))+'\x0a'),_0x3d0f2f(new _0x5d64a4(_0x73a95d)['finish']({'endedAtMs':Date[_0xde06b6(0x1bc)](),'usage':[],'error':_0x1450a4}));}}async function me(_0x5f4a30,_0x399974,_0x59d8db,_0x439dce,_0x13f0a1){const _0x2092ad=_0x33fd0a;f={'lastType':null,'quiet':_0x5f4a30[_0x2092ad(0x13d)]};let _0x22ca27=new Set(),_0x15e020,_0x104fee=_0x56d85d=>{const _0x50088c=_0x2092ad;(!_0x439dce||_0x56d85d[_0x50088c(0x174)]===_0x50088c(0xa5)||_0x56d85d[_0x50088c(0x174)]==='turn_start')&&(_0x15e020??Ee)(_0x56d85d);for(let _0x2edb4f of _0x22ca27)_0x2edb4f(_0x56d85d);},_0x325dd2=await q(),_0x18f4de=new _0x35f6a6();_0x18f4de['onEvent'](_0x104fee);let _0x4788f6=_0x19c0bc(_0x5f4a30[_0x2092ad(0xa9)],_0x325dd2,_0x5f4a30['backendUrl']);z(_0x5f4a30['env'],_0x5f4a30['backendUrl'],_0x4788f6);let _0x16090b={'input':null},_0x58692b=_0x59d8db?Z(()=>_0x16090b[_0x2092ad(0x149)],_0x5c4aac=>{process['stderr']['write'](_0x5c4aac);}):null,_0xd91cc7=_0x31eb5a=>_0x58692b?{..._0x31eb5a,'askUser':_0x58692b}:_0x31eb5a,_0x1c5964=_0xd91cc7(pe(_0x5f4a30,_0x325dd2,_0x4788f6,{'oneTurn':!_0x59d8db})),_0x2f130e=!0x1,_0x5c769e=!0x1,_0x2028d7,_0x43be6d=()=>_0x2028d7??=_0x18f4de[_0x2092ad(0x8d)](),_0xd96d7b=()=>{const _0x5b9527=_0x2092ad;_0x5c769e&&process['exit'](0x82),_0x5c769e=!0x0,process[_0x5b9527(0xda)]['write'](_0x5b9527(0x257)),_0x2f130e&&_0x18f4de['cancel']()['catch'](_0x53885a=>console['error'](_0x53885a))['then'](_0x43be6d)[_0x5b9527(0x1c3)](()=>process[_0x5b9527(0x8a)](0x82),_0x98426=>{const _0xd4f58d=_0x5b9527;console[_0xd4f58d(0x1b8)](_0x98426),process[_0xd4f58d(0x8a)](0x82);});};process['on'](_0x2092ad(0x1f1),_0xd96d7b);let _0x551090=_0x5f4a30[_0x2092ad(0x1ad)],_0x35050d=async _0x44eccd=>{const _0x58cc7f=_0x2092ad;let _0x38d1b0=_0x551090;_0x551090=[];let _0x188671=()=>_0x18f4de[_0x58cc7f(0x131)](_0x44eccd,{'attachments':_0x38d1b0});try{return await _0x188671();}catch(_0xc2aeac){if(_0x5c769e||!$n(_0xc2aeac)||!process['stdin'][_0x58cc7f(0x9f)]||_0x5f4a30[_0x58cc7f(0xa9)]===_0x58cc7f(0x243)||!(_0x5f4a30['env']||_0x325dd2[_0x58cc7f(0x12c)]))throw _0xc2aeac;process[_0x58cc7f(0xda)][_0x58cc7f(0x203)](_0x58cc7f(0x1b9));let _0x3b5062=_0x18f4de[_0x58cc7f(0xca)]()??_0x5f4a30[_0x58cc7f(0xd0)],_0x3cf37b=await _0x2ebee3(_0x5f4a30[_0x58cc7f(0xa9)]?{'env':_0x5f4a30[_0x58cc7f(0xa9)],'tenant':G(_0x325dd2,_0x222cf[_0x5f4a30[_0x58cc7f(0xa9)]]),'skipEnvCheck':!0x0}:{'baseUrl':_0x325dd2[_0x58cc7f(0x12c)],'tenant':_0x325dd2['tenantName'],'skipEnvCheck':!0x0}),_0x2e5980={'text':'','failed':!0x1,'sessionId':_0x3b5062};return _0x5c769e||(_0x2f130e=!0x1,await _0x43be6d(),_0x5c769e)?_0x2e5980:(_0x18f4de=new _0x35f6a6(),_0x2028d7=void 0x0,_0x18f4de['onEvent'](_0x104fee),_0x325dd2=_0x3cf37b,await _0x18f4de['initialize']({..._0xd91cc7(pe(_0x5f4a30,_0x325dd2,_0x4788f6,{'oneTurn':!_0x59d8db})),..._0x3b5062?{'sessionId':_0x3b5062}:{}}),_0x2f130e=!0x0,_0x5c769e?_0x2e5980:_0x188671());}};try{if(await _0x18f4de[_0x2092ad(0x117)](_0x1c5964),_0x2f130e=!0x0,_0x5c769e)return;if(_0x59d8db)await xn({'prompt':_0x399974,'sendMessage':_0x35050d,'onSigint':_0xd96d7b,'setAnswerInput':_0x524df8=>{const _0x507bd5=_0x2092ad;_0x16090b[_0x507bd5(0x149)]=_0x524df8;},'registerEventPrinter':_0x28e680=>(_0x15e020=_0x28e680,()=>{_0x15e020=void 0x0;})});else{if(_0x439dce||_0x13f0a1){let _0x6b406=_0x5f4a30[_0x2092ad(0x210)]===_0x2092ad(0x1f5)?_0x4376ff=>P(_0x3a4190(_0x4376ff)):()=>{},_0x5a60fe=await _0x50847f({'onEvent':_0x220d15=>(_0x22ca27[_0x2092ad(0xb9)](_0x220d15),()=>{_0x22ca27['delete'](_0x220d15);}),'sendMessage':_0x2fd448=>_0x35050d(_0x2fd448),'getSessionId':()=>_0x18f4de[_0x2092ad(0xca)](),'getTurnUsageHistory':_0x2a24e0=>_0x18f4de['getTurnUsageHistory'](_0x2a24e0),'complete':_0x28d66a=>_0x18f4de['complete'](_0x28d66a)},_0x399974,void 0x0,_0x6b406,_0x13f0a1?{'outputSchema':_0x13f0a1}:void 0x0);_0x439dce?_0x439dce(_0x5a60fe):In(_0x5a60fe);}else await _0x35050d(_0x399974);}}catch(_0x397bb6){if(!_0x5c769e)throw _0x397bb6;}finally{try{await _0x43be6d();}finally{process['off']('SIGINT',_0xd96d7b),_0x5c769e&&(process['exitCode']=0x82);}}}function In(_0x23d44d){const _0x437b43=_0x33fd0a;_0x23d44d[_0x437b43(0x1b1)]?(console[_0x437b43(0x1b8)]('Structured\x20output\x20failed:\x20'+_0x23d44d[_0x437b43(0x1b1)][_0x437b43(0x1b6)]),process[_0x437b43(0x1c9)]=0x1):_0x23d44d[_0x437b43(0x152)]?(console[_0x437b43(0x1b8)](_0x437b43(0x1cc)+_0x23d44d[_0x437b43(0x1b8)]+').'),process['exitCode']=0x1):process[_0x437b43(0xf2)][_0x437b43(0x203)](JSON[_0x437b43(0x192)](_0x23d44d['structured'],null,0x2)+'\x0a');}function Tn(_0x38a986,_0xf61c5d){const _0x55c2e5=_0x33fd0a;let _0x316259=process[_0x55c2e5(0xf2)][_0x55c2e5(0x203)]['bind'](process[_0x55c2e5(0xf2)]),_0x2a509b=!0x1;return process[_0x55c2e5(0xf2)][_0x55c2e5(0x203)]=(..._0x47a4cf)=>{if(!_0x2a509b)return _0x316259(..._0x47a4cf);_0x32947d(_0xf61c5d,0x0),_0xb6a034(_0xf61c5d,0x0);let _0x1fc043=_0x316259(..._0x47a4cf);return _0x38a986['prompt'](!0x0),_0x1fc043;},{'show':()=>{const _0xec6e1c=_0x55c2e5;_0x2a509b=!0x0,_0x38a986[_0xec6e1c(0x13f)]();},'hide':()=>{_0x2a509b=!0x1;},'erase':()=>{_0x2a509b&&(_0x32947d(_0xf61c5d,0x0),_0xb6a034(_0xf61c5d,0x0)),_0x2a509b=!0x1;},'restore':()=>{const _0x442f37=_0x55c2e5;_0x2a509b=!0x1,process['stdout'][_0x442f37(0x203)]=_0x316259;}};}async function xn({prompt:_0x190a65,sendMessage:_0x3c2aea,onSigint:_0x2298a8,setAnswerInput:_0x1db51f,registerEventPrinter:_0x4b3ef2}){const _0x3f593d=_0x33fd0a;let _0x3edfd6=_0x25e2d2({'input':process[_0x3f593d(0x137)],'output':process[_0x3f593d(0xda)],'terminal':!0x0,'prompt':_0x3f593d(0x16a)}),_0x3e8d0f=Tn(_0x3edfd6,process['stderr']),_0x465867=[],_0x4a35fc,_0x3b5470,_0x42b20f,_0x1674da=!0x1,_0x53691c=!0x1,_0x279b00=!0x1,_0x52d126=Promise[_0x3f593d(0x1df)](),_0xbdd80c,_0x5d1a49=_0x4b3ef2(_0x2db496=>{const _0xd2a0f1=_0x3f593d;_0x2db496[_0xd2a0f1(0x174)]===_0xd2a0f1(0xa5)&&(_0x3e8d0f[_0xd2a0f1(0x221)](),_0x52d126=new Promise(_0x2263fe=>{_0xbdd80c=_0x2263fe;})),Ee(_0x2db496),_0x2db496[_0xd2a0f1(0x174)]===_0xd2a0f1(0x80)&&(_0xbdd80c?.(),_0xbdd80c=void 0x0,!_0x279b00&&!_0x1674da&&_0x3e8d0f[_0xd2a0f1(0xe0)]());}),_0x395f83=()=>{_0x53691c=!0x0,_0xbdd80c?.(),_0x2298a8(),_0x3edfd6['close']();};_0x3edfd6['on']('line',_0x2a5297=>{const _0x40d490=_0x3f593d;_0x42b20f?_0x42b20f(_0x2a5297):_0x4a35fc?_0x4a35fc[_0x40d490(0xfd)](_0x2a5297):_0x3b5470?_0x3b5470(_0x2a5297):_0x465867[_0x40d490(0xfd)](_0x2a5297);}),_0x3edfd6['once'](_0x3f593d(0x11e),()=>{const _0x1a7e33=_0x3f593d;_0x1674da=!0x0,_0x3e8d0f[_0x1a7e33(0x1fb)](),_0x4a35fc&&!_0x53691c&&_0x395f83(),_0x3b5470?.(null);});let _0x494c81=()=>_0x465867[_0x3f593d(0x16b)]>0x0?Promise[_0x3f593d(0x1df)](_0x465867['shift']()):_0x1674da?Promise[_0x3f593d(0x1df)](null):new Promise(_0x49d456=>{_0x3b5470=_0x4600a4=>{_0x3b5470=void 0x0,_0x49d456(_0x4600a4);};});_0x1db51f({'readLine':(_0x5ac158,_0x94b65e)=>new Promise((_0x465743,_0x1d0162)=>{const _0x24213c=_0x3f593d;if(_0x1674da&&!_0x4a35fc){_0x465743(null);return;}_0x4a35fc??=[];let _0x2d1acd=_0x4a35fc[_0x24213c(0x1d6)]();if(_0x2d1acd!==void 0x0){_0x465743(_0x2d1acd);return;}let _0x7a684e=()=>{const _0x168728=_0x24213c;_0x42b20f=void 0x0,_0x94b65e[_0x168728(0x1c7)](_0x168728(0x10e),_0x3e01af),_0x3e8d0f[_0x168728(0x1fb)](),_0x3edfd6[_0x168728(0x94)]('You>\x20');},_0x3e01af=()=>{const _0x2f56f9=_0x24213c;_0x7a684e(),_0x1d0162(new Error(_0x2f56f9(0x114)));};_0x94b65e['addEventListener']('abort',_0x3e01af,{'once':!0x0}),!_0x1674da&&(_0x42b20f=_0x2183a3=>{_0x7a684e(),_0x465743(_0x2183a3);},_0x3edfd6[_0x24213c(0x94)](_0x5ac158),_0x3e8d0f[_0x24213c(0xe0)]());}),'endQuestions':()=>{const _0x26db0e=_0x3f593d;_0x4a35fc&&_0x465867[_0x26db0e(0xfd)](..._0x4a35fc),_0x4a35fc=void 0x0;}}),_0x3edfd6['on'](_0x3f593d(0x1f1),_0x395f83),process[_0x3f593d(0xda)]['write'](_0x3f593d(0xf8));let _0x5ce2f3=async _0x5193d6=>{_0x279b00=!0x0;try{await _0x3c2aea(_0x5193d6);}finally{_0x279b00=!0x1;}};try{if(_0x190a65&&await _0x5ce2f3(_0x190a65),_0x53691c)return;!_0x1674da&&!_0xbdd80c&&_0x3e8d0f[_0x3f593d(0xe0)]();for(let _0x345acc=await _0x494c81();_0x345acc!==null&&(_0x3e8d0f[_0x3f593d(0x1fb)](),!_0x53691c);_0x345acc=await _0x494c81()){let _0x4a58fa=_0x345acc['trim']();if(_0x4a58fa===_0x3f593d(0x142))break;_0x4a58fa&&await _0x5ce2f3(_0x4a58fa),!_0x1674da&&!_0xbdd80c&&_0x3e8d0f[_0x3f593d(0xe0)]();}for(;!_0x53691c&&_0xbdd80c;)await _0x52d126;}finally{_0x1db51f(null),_0x5d1a49(),_0x3e8d0f[_0x3f593d(0x1b0)](),_0x3edfd6[_0x3f593d(0x1d7)](_0x3f593d(0x1f1),_0x395f83),_0x3edfd6[_0x3f593d(0x11e)]();}}async function Dn(){const _0x4fa838=_0x33fd0a;let _0x1dad05=Rt(process[_0x4fa838(0x21e)]['slice'](0x2));if(_0x1dad05['outputFormat']==='text'){await fe(_0x1dad05);return;}let _0x3902f8=Pt();try{await fe(_0x1dad05);}finally{_0x3902f8();}}async function fe(_0x25ab96){const _0x2160f3=_0x33fd0a;if(_0x25ab96[_0x2160f3(0x1a2)]){Ct();return;}if(_0x25ab96[_0x2160f3(0x196)]){console['log'](Lt());return;}if(_0x25ab96[_0x2160f3(0x12f)]===_0x2160f3(0xf4)){await kn(_0x25ab96);return;}if(_0x25ab96[_0x2160f3(0x12f)]===_0x2160f3(0x1b2)){await Sn(_0x25ab96[_0x2160f3(0x13f)]);return;}if(_0x25ab96['subcommand']===_0x2160f3(0x140)){await Mt();return;}if(_0x25ab96[_0x2160f3(0x12f)]===_0x2160f3(0x1af)){await Bt(_0x25ab96);return;}if(_0x25ab96['subcommand']===_0x2160f3(0xc1)){await Wt(_0x25ab96);return;}if(_0x25ab96[_0x2160f3(0x12f)]===_0x2160f3(0x13e)){await Zt(_0x25ab96);return;}if(_0x25ab96[_0x2160f3(0x12f)]===_0x2160f3(0x209)){await Qt(_0x25ab96);return;}if(_0x25ab96[_0x2160f3(0x12f)]===_0x2160f3(0x233)){await nn(_0x25ab96);return;}if(_0x25ab96[_0x2160f3(0x12f)]===_0x2160f3(0x12d)||_0x25ab96[_0x2160f3(0x12f)]===_0x2160f3(0x127)||_0x25ab96[_0x2160f3(0x12f)]===_0x2160f3(0x1f3)){await an(_0x25ab96,_0x25ab96['subcommand']);return;}if(_0x25ab96[_0x2160f3(0x12f)]===_0x2160f3(0x20f)){await cn(_0x25ab96);return;}if(_0x25ab96[_0x2160f3(0x12f)]===_0x2160f3(0x98)){await mn(_0x25ab96);return;}if(_0x25ab96['subcommand']==='delegations'){await gn(_0x25ab96);return;}if(_0x25ab96[_0x2160f3(0x12f)]===_0x2160f3(0x20b)){await wn(_0x25ab96);return;}if(_0x25ab96[_0x2160f3(0x12f)]===_0x2160f3(0x104)){await _0x3fd6b5(_0x25ab96[_0x2160f3(0x13f)],{'runnerUrl':_0x25ab96[_0x2160f3(0x171)],'backendUrl':_0x25ab96['backendUrl'],'interopPath':_0x25ab96['interopPath'],'workerId':_0x25ab96[_0x2160f3(0x1b7)]});return;}if(_0x25ab96[_0x2160f3(0x267)]){await Gt();return;}await En(_0x25ab96);}var Un=process.env.NODE_ENV==='test'||!!process.env.JEST_WORKER_ID;Un||Dn()[_0x33fd0a(0x19c)](_0x10ef23=>{const _0x3dafbb=_0x33fd0a;console[_0x3dafbb(0x1b8)](_0x10ef23[_0x3dafbb(0x163)]||_0x10ef23[_0x3dafbb(0x1b6)]||_0x10ef23),process[_0x3dafbb(0x8a)](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.20261123120404",
3
+ "version": "1.206.0-preview.20261123172026",
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.20261123120404"
25
+ "@uipath/delegate-sdk": "1.206.0-preview.20261123172026"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@types/node": "^22.0.0",