@uipath/delegate-cli 1.207.0-preview.20261126124103 → 1.207.0-preview.20261126164959

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 _0x553a75=_0x4788;(function(_0x5e704,_0x3c41ee){const _0x37a3b8=_0x4788,_0x1962e5=_0x5e704();while(!![]){try{const _0x5e953b=-parseInt(_0x37a3b8(0x285))/0x1*(parseInt(_0x37a3b8(0x292))/0x2)+parseInt(_0x37a3b8(0x2f2))/0x3*(parseInt(_0x37a3b8(0x265))/0x4)+-parseInt(_0x37a3b8(0x252))/0x5+-parseInt(_0x37a3b8(0x121))/0x6*(parseInt(_0x37a3b8(0x270))/0x7)+parseInt(_0x37a3b8(0x2be))/0x8+parseInt(_0x37a3b8(0x153))/0x9+parseInt(_0x37a3b8(0x2d3))/0xa*(-parseInt(_0x37a3b8(0x28f))/0xb);if(_0x5e953b===_0x3c41ee)break;else _0x1962e5['push'](_0x1962e5['shift']());}catch(_0x3bbcce){_0x1962e5['push'](_0x1962e5['shift']());}}}(_0x79d9,0x303a6));const __dirname=import.meta.dirname;import _0x3c2bc9 from'fs';import _0x5d5241 from'path';import{clearLine as _0x55564a,createInterface as _0x431183,cursorTo as _0x21dbd4}from'node:readline';import{isOnStepGrid as _0x3dca77}from'@uipath/delegate-sdk';var L='userinput';function E(_0x459f36){const _0x264d68=_0x4788;return _0x459f36[_0x264d68(0x331)](/\u001b\[[0-?]*[ -/]*[@-~]|\u001b\][^\u0007\u001b]*(\u0007|\u001b\\)?|\u001b./g,'')[_0x264d68(0x331)](/[\u0000-\u0008\u000b-\u001f\u007f-\u009f]/g,'');}function ee(_0x40717a){const _0x41d879=_0x4788;return E(_0x40717a['label']??(_0x40717a[_0x41d879(0x29a)]===L?_0x41d879(0x254):_0x40717a['id']));}function Ce(_0x376082,_0x5efd85,_0x188f77){const _0x2ceb1b=_0x4788;let _0x23c294=[''+(_0x188f77>0x1?'['+_0x5efd85+'/'+_0x188f77+']\x20':'')+E(_0x376082[_0x2ceb1b(0x1e1)])+(_0x376082[_0x2ceb1b(0x259)]?_0x2ceb1b(0x2c2):''),E(_0x376082[_0x2ceb1b(0x2c1)])];return _0x376082[_0x2ceb1b(0x17c)]===_0x2ceb1b(0x249)&&_0x376082['options'][_0x2ceb1b(0x2aa)]((_0x25ca46,_0x374888)=>{const _0x36157f=_0x2ceb1b;let _0x3ae456=_0x25ca46[_0x36157f(0x29a)]===L?_0x36157f(0x1ab):'',_0x17fc2e=_0x25ca46[_0x36157f(0x2ef)]?'\x20-\x20'+E(_0x25ca46[_0x36157f(0x2ef)]):'';_0x23c294[_0x36157f(0x262)]('\x20\x20'+(_0x374888+0x1)+'.\x20'+ee(_0x25ca46)+_0x3ae456+_0x17fc2e);}),_0x23c294[_0x2ceb1b(0x274)]('\x0a');}function te(_0x5102ca,_0x419220){const _0x142b96=_0x4788;let _0x29c592=_0x5102ca['split'](/[\s,]+/)[_0x142b96(0x2cb)](Boolean);if(_0x29c592[_0x142b96(0x160)]===0x0)return null;let _0x15ad30=_0x29c592[_0x142b96(0x2af)](_0x5498e2=>/^\d+$/['test'](_0x5498e2)?Number(_0x5498e2):NaN);return _0x15ad30['some'](_0x21c276=>!Number[_0x142b96(0x1e5)](_0x21c276)||_0x21c276<0x1||_0x21c276>_0x419220)?null:[...new Set(_0x15ad30)][_0x142b96(0x2af)](_0x20f7ff=>_0x20f7ff-0x1);}function Oe(_0x5f5622){const _0x59c4d5=_0x4788;return typeof _0x5f5622==_0x59c4d5(0x224)&&_0x5f5622!==null&&_0x59c4d5(0x1fa)in _0x5f5622;}async function F(_0x4a0aee,_0x3579e2,_0x1d35d5,_0x333040){const _0x5e19c7=_0x4788;for(;;){let _0x39ae36=(await _0x4a0aee(_0x3579e2))['trim']();if(_0x39ae36==='')return;let _0x420faa=_0x333040(_0x39ae36);if(!Oe(_0x420faa))return _0x420faa;_0x1d35d5(_0x420faa[_0x5e19c7(0x1fa)]+'\x0a');}}async function Le(_0x3a6df6,_0x46941c,_0x31fe6a){const _0x13ea55=_0x4788;if(_0x3a6df6[_0x13ea55(0x187)][_0x13ea55(0x160)]===0x0||_0x3a6df6[_0x13ea55(0x187)][_0x13ea55(0x191)](_0x1a55a3=>_0x1a55a3[_0x13ea55(0x29a)]===L)){let _0x5e6acf=(await _0x46941c('Your\x20answer\x20(Enter\x20to\x20skip):\x20'))[_0x13ea55(0x184)]();return _0x5e6acf===''?void 0x0:{'text':_0x5e6acf};}let _0x19afc0=_0x3a6df6[_0x13ea55(0x187)][_0x13ea55(0x27a)](_0xf9dc25=>_0xf9dc25[_0x13ea55(0x29a)]===L),_0x5dba22=_0x3a6df6['multiSelect']?_0x13ea55(0x1d1):_0x13ea55(0x2df)+(_0x19afc0>=0x0?_0x13ea55(0x26c):'')+_0x13ea55(0x202),_0x4a6d84=await F(_0x46941c,_0x5dba22,_0x31fe6a,_0x35c938=>{const _0x60e666=_0x13ea55;let _0x1a4c70=te(_0x35c938,_0x3a6df6[_0x60e666(0x187)]['length']);return _0x1a4c70&&(_0x3a6df6[_0x60e666(0x16d)]||_0x1a4c70[_0x60e666(0x160)]===0x1)?_0x1a4c70:!_0x3a6df6[_0x60e666(0x16d)]&&_0x19afc0>=0x0?{'typed':_0x35c938}:{'refused':_0x3a6df6[_0x60e666(0x16d)]?_0x60e666(0x26a)+_0x3a6df6[_0x60e666(0x187)][_0x60e666(0x160)]+'.':_0x60e666(0x239)+_0x3a6df6[_0x60e666(0x187)][_0x60e666(0x160)]+'.'};});if(_0x4a6d84===void 0x0)return;if(!Array[_0x13ea55(0x1b7)](_0x4a6d84))return{'text':_0x4a6d84['typed']};let _0x1bd2d6=_0x4a6d84['map'](_0x35f649=>_0x3a6df6[_0x13ea55(0x187)][_0x35f649]['id']),_0x3651a0=_0x1bd2d6['includes'](L)?await F(_0x46941c,ee(_0x3a6df6[_0x13ea55(0x187)][_0x19afc0])+':\x20',_0x31fe6a,_0x59cfae=>_0x59cfae):void 0x0;if(!(_0x1bd2d6[_0x13ea55(0x256)](L)&&_0x3651a0===void 0x0))return _0x3a6df6[_0x13ea55(0x16d)]?{'optionIds':_0x1bd2d6,..._0x3651a0!==void 0x0?{'text':_0x3651a0}:{}}:_0x3651a0!==void 0x0?{'text':_0x3651a0}:{'optionId':_0x1bd2d6[0x0]};}async function Fe(_0x51760f,_0x18c9c5,_0x55baa3){const _0x22630e=_0x4788;let _0x1f3945={};for(let _0x336040 of _0x51760f[_0x22630e(0x28d)]){let _0x4a547f=_0x336040[_0x22630e(0x2cf)]??_0x336040['min'],_0x59915a=_0x336040['step']??0x1,_0x6b7038=_0x336040[_0x22630e(0x2fb)]?'\x20'+E(_0x336040['unit']):'',_0x10c46c=_0x22630e(0x1db)+_0x336040[_0x22630e(0x124)]+_0x22630e(0x210)+_0x336040[_0x22630e(0x24e)]+(_0x59915a!==0x1?'\x20in\x20steps\x20of\x20'+_0x59915a:''),_0x217ade=await F(_0x18c9c5,E(_0x336040['label'])+'\x20['+_0x336040[_0x22630e(0x124)]+'-'+_0x336040[_0x22630e(0x24e)]+_0x6b7038+']\x20(Enter\x20for\x20'+_0x4a547f+'):\x20',_0x55baa3,_0x5084c8=>{const _0x354659=_0x22630e;let _0x103809=Number(_0x5084c8);return Number[_0x354659(0x326)](_0x103809)&&_0x103809>=_0x336040['min']&&_0x103809<=_0x336040['max']&&_0x3dca77(_0x103809,_0x336040[_0x354659(0x124)],_0x59915a)?_0x103809:{'refused':_0x354659(0x169)+_0x10c46c+'.'};});_0x1f3945[_0x336040['id']]=_0x217ade??_0x4a547f;}return{'values':_0x1f3945};}async function Me(_0x57590e,_0x5e5a3a,_0x4ec53b){const _0x1c5f88=_0x4788;_0x4ec53b(_0x57590e['buckets']['map']((_0x4f2993,_0x54232c)=>'\x20\x20'+(_0x54232c+0x1)+'.\x20'+E(_0x4f2993[_0x1c5f88(0x18f)]))['join']('\x0a')+'\x0a');let _0x170741={};for(let _0x2b93da of _0x57590e['items']){let _0x57d615=await F(_0x5e5a3a,E(_0x2b93da[_0x1c5f88(0x18f)])+_0x1c5f88(0x1c0),_0x4ec53b,_0x412138=>{const _0x58acdc=_0x1c5f88;let _0x2c377e=te(_0x412138,_0x57590e[_0x58acdc(0x1fc)][_0x58acdc(0x160)]);return _0x2c377e&&_0x2c377e[_0x58acdc(0x160)]===0x1?_0x2c377e[0x0]:{'refused':_0x58acdc(0x239)+_0x57590e[_0x58acdc(0x1fc)][_0x58acdc(0x160)]+'.'};});if(_0x57d615===void 0x0)continue;let _0x4e2ddc=_0x57590e[_0x1c5f88(0x1fc)][_0x57d615],_0x32546a={};for(let _0x2a83dc of _0x4e2ddc[_0x1c5f88(0x2f4)]??[]){let _0x4e1b16='\x20\x20'+E(_0x2a83dc['label'])+(_0x2a83dc[_0x1c5f88(0x259)]?_0x1c5f88(0x2c2):'')+':\x20',_0x110479=await F(_0x5e5a3a,_0x4e1b16,_0x4ec53b,_0x46aa1f=>_0x46aa1f);for(;_0x110479===void 0x0&&!_0x2a83dc[_0x1c5f88(0x259)];)_0x4ec53b(E(_0x2a83dc[_0x1c5f88(0x18f)])+'\x20is\x20required.\x0a'),_0x110479=await F(_0x5e5a3a,_0x4e1b16,_0x4ec53b,_0x41cbeb=>_0x41cbeb);_0x110479!==void 0x0&&(_0x32546a[_0x2a83dc['id']]=_0x110479);}_0x170741[_0x2b93da['id']]={'bucket':_0x4e2ddc['id'],...Object[_0x1c5f88(0x2ce)](_0x32546a)[_0x1c5f88(0x160)]>0x0?{'subFields':_0x32546a}:{}};}return Object[_0x1c5f88(0x2ce)](_0x170741)[_0x1c5f88(0x160)]>0x0?{'assignments':_0x170741}:void 0x0;}async function je(_0x5ef7cf,_0x4ab67f,_0xbd0774){const _0x25d78e=_0x4788;if(_0x5ef7cf['type']===_0x25d78e(0x249))return Le(_0x5ef7cf,_0x4ab67f,_0xbd0774);if(_0x5ef7cf[_0x25d78e(0x17c)]===_0x25d78e(0x2a1))return Fe(_0x5ef7cf,_0x4ab67f,_0xbd0774);if(_0x5ef7cf['type']===_0x25d78e(0x161))return Me(_0x5ef7cf,_0x4ab67f,_0xbd0774);let _0x6e8108=(await _0x4ab67f('Your\x20answer,\x20as\x20text\x20(the\x20CLI\x20attaches\x20no\x20files;\x20Enter\x20to\x20skip):\x20'))[_0x25d78e(0x184)]();return _0x6e8108===''?void 0x0:{'text':_0x6e8108};}function ne(_0x54685f,_0x4c9ce1){return async _0x2334e0=>{const _0x590eaa=_0x4788;let _0xc9a741=_0x54685f();if(!_0xc9a741)throw new Error('There\x20is\x20no\x20terminal\x20input\x20to\x20answer\x20from.');let _0x58996c=async _0x56a8cd=>{const _0x39506c=_0x4788;if(_0x2334e0[_0x39506c(0x221)][_0x39506c(0x234)])throw new Error(_0x39506c(0x2ad));let _0x139c3f=await _0xc9a741['readLine'](_0x56a8cd,_0x2334e0[_0x39506c(0x221)]);if(_0x139c3f===null)throw new Error(_0x39506c(0x2f7));return _0x139c3f;};try{_0x4c9ce1('\x0a'+(_0x2334e0[_0x590eaa(0x143)]?E(_0x2334e0[_0x590eaa(0x143)])+'\x0a':''));let _0x4ea248={};for(let [_0x7acd3c,_0x53febd]of _0x2334e0[_0x590eaa(0x2ed)][_0x590eaa(0x2ab)]()){_0x4c9ce1('\x0a'+Ce(_0x53febd,_0x7acd3c+0x1,_0x2334e0['questions'][_0x590eaa(0x160)])+'\x0a');let _0x5818c1=await je(_0x53febd,_0x58996c,_0x4c9ce1);_0x5818c1!==void 0x0&&(_0x4ea248[_0x53febd['id']]=_0x5818c1);}return{'answers':_0x4ea248};}finally{_0xc9a741['endQuestions']();}};}import{createInterface as _0xe1dbbc}from'node:readline';var j=[_0x553a75(0x249),'stream-json'];function se(_0x151a8f){return j['includes'](_0x151a8f);}var _=class extends Error{};function Je(_0x2a1d9b){const _0x5380ef=_0x553a75;if(typeof _0x2a1d9b==_0x5380ef(0x14e))return _0x2a1d9b;if(!Array['isArray'](_0x2a1d9b))return;let _0x14bb83=[];for(let _0x3a1d74 of _0x2a1d9b){if(typeof _0x3a1d74!='object'||_0x3a1d74===null)return;let {type:_0x4ae015,text:_0x2e28a1}=_0x3a1d74;if(_0x4ae015!==_0x5380ef(0x249)||typeof _0x2e28a1!=_0x5380ef(0x14e))return;_0x14bb83[_0x5380ef(0x262)](_0x2e28a1);}return _0x14bb83['join']('\x0a');}function He(_0x1d9ec2){const _0x45d6e0=_0x553a75;if(_0x1d9ec2[_0x45d6e0(0x184)]()==='')return null;let _0x1e48af;try{_0x1e48af=JSON[_0x45d6e0(0x15b)](_0x1d9ec2);}catch{throw new _(_0x45d6e0(0x147));}if(typeof _0x1e48af!='object'||_0x1e48af===null)throw new _('an\x20input\x20line\x20is\x20not\x20a\x20JSON\x20object');let {type:_0x2bda98,message:_0x48daa6,uuid:_0x226698}=_0x1e48af;if(_0x2bda98!=='user')throw new _(_0x45d6e0(0x1c2)+JSON[_0x45d6e0(0x281)](_0x2bda98)+_0x45d6e0(0x2ea));let _0x536a9a=Je(_0x48daa6?.[_0x45d6e0(0x1bc)]);if(_0x536a9a===void 0x0)throw new _(_0x45d6e0(0x30f));if(_0x536a9a[_0x45d6e0(0x184)]()==='')throw new _(_0x45d6e0(0x22c));return{'text':_0x536a9a,'uuid':typeof _0x226698=='string'?_0x226698:void 0x0};}function oe(_0x2b4c1e,_0x29cc1e){const _0x1051b2=_0x553a75;return JSON[_0x1051b2(0x281)]({'type':_0x1051b2(0x148),'message':{'role':_0x1051b2(0x148),'content':_0x2b4c1e[_0x1051b2(0x249)]},'session_id':_0x29cc1e,..._0x2b4c1e['uuid']===void 0x0?{}:{'uuid':_0x2b4c1e[_0x1051b2(0x24c)]},'isReplay':!0x0})+'\x0a';}async function*re(_0x53d621,_0x387ac5){const _0x54399c=_0x553a75;let _0x49cba5=_0xe1dbbc({'input':_0x53d621,'crlfDelay':0x1/0x0});try{for await(let _0x7ad390 of _0x49cba5){let _0x359c37;try{_0x359c37=He(_0x7ad390);}catch(_0x560d36){if(!(_0x560d36 instanceof _))throw _0x560d36;_0x387ac5(_0x560d36);continue;}_0x359c37&&(yield _0x359c37);}}finally{_0x49cba5[_0x54399c(0x278)]();}}import{BUSINESS_ANALYSIS_PRELOADED_SKILLS as _0x4a72b2,DelegateAgent as _0x4f653c,cancelTurn as _0x1140d0,InteropProcess as _0x4dbe2b,complete as _0x48601c,DEFAULT_MODEL as _0x5d03bf,createBackendClient as _0x53a1a0,evaluate as _0x12f2ee,isCompletionRequestError as _0xd4726a,isEvaluationRequestError as _0x4098bb,isTranscriptionError as _0xc56fc8,rerank as _0x5d552c,transcribe as _0x286dfc,verify as _0x11fa08,acceptDelegation as _0x4f389f,cancelDelegation as _0x2d4231,claimDelegation as _0x4f5aff,completeDelegation as _0x3fd9e9,createDelegation as _0x53b551,deleteDelegation as _0x2b94a1,dismissDelegation as _0x298d8a,getSessionDelegations as _0x4baf5c,isDelegationError as _0x231031,listDelegations as _0x3cf438,listOrgUsers as _0x5ac997,previewDelegation as _0x757e2b,TurnResultCollector as _0x8492df,agentEventToJsonLine as _0x4f4d42,describeBaseUrlRejection as _0x3c5a15,getActivitySummary as _0x578ee5,getAuthFilePath as _0x44ab65,getByoWarnings as _0x24be30,getCartographerAllowance as _0x542aec,getDailyBreakdown as _0x5539f0,getLicensingSummary as _0x5d5b10,getMonthlySpending as _0x5ee29f,isOutputFormat as _0x15938a,isCloudBaseUrl as _0x529242,isSafeProjectFolderSegment as _0x185fd2,listModels as _0x3c2c99,listSessions as _0x560676,getSession as _0x7442a9,renameSession as _0x2fca2a,deleteSession as _0x20e800,deleteSessionTaskLog as _0x2c2c89,forkSession as _0x72a330,isBackendRequestError as _0x467613,MAX_SESSION_PAGE_SIZE as _0x31db90,listTenants as _0x20841a,loadAndRefreshAuth as _0x2f94eb,loadAndRefreshSdkLogin as _0x1a6951,parsePlatformBaseUrl as _0x168ce0,resolveBackendUrl as _0x4f64fe,runHealthCheck as _0xf02ba8,runHostCommand as _0x465f65,runLoginFlow as _0x2a74e6,runTurnForResult as _0x5c8732,saveAuthData as _0x4859eb,switchTenant as _0x471e12,toJsonLine as _0x307699,ENV_TO_CLOUD as _0x274d03,OUTPUT_FORMATS as _0x4f73c9,isRunStopNotice as _0x483e51,extractActionableErrorText as _0x3efee2}from'@uipath/delegate-sdk';function ie(_0x2f3ae7){const _0x5b5dc8=_0x553a75;let {input:_0x3bf36c,getAgent:_0x231b7e,replay:_0x16753a,onEvent:_0x397e7c,write:_0x4a555e,warn:_0x56323b,isRunStopNotice:_0x401cff,actionableErrorText:_0x3311c2}=_0x2f3ae7,_0x5b3132=0x0,_0x2c5f24=0x0,_0x2b78b7=Promise[_0x5b5dc8(0x273)](),_0x448a56=!0x1,_0x2811e1=()=>{},_0x1b968d=new Promise(_0x52919f=>{_0x2811e1=_0x52919f;}),_0x4b65bb=[],_0x2c0f1b=_0x397e7c(_0x13eebd=>{const _0x3ec02e=_0x5b5dc8;_0x13eebd[_0x3ec02e(0x17c)]===_0x3ec02e(0x132)&&(_0x2811e1(),_0x4b65bb[_0x3ec02e(0x1ea)]()?.());}),_0x63522b=_0x37ac15=>{const _0x9d7713=_0x5b5dc8;_0x16753a&&_0x4a555e(oe(_0x37ac15,_0x231b7e()[_0x9d7713(0x26e)]()));},_0x126f39=(async()=>{const _0x410759=_0x5b5dc8;await _0x1b968d;for await(let _0x3a8a1e of _0x3bf36c['messages']){if(_0x448a56)return;_0x5b3132===0x0&&(_0x2c5f24=_0x231b7e()[_0x410759(0x2bf)]()[_0x410759(0x160)]),_0x5b3132++;let _0x16b507=new Promise(_0x38ce7e=>{const _0x1c7c98=_0x410759;_0x4b65bb[_0x1c7c98(0x262)](()=>{_0x63522b(_0x3a8a1e),_0x38ce7e();});}),_0x299127=()=>{const _0x3525f9=_0x410759;_0x5b3132--,_0x4b65bb[_0x3525f9(0x31c)]();},_0x573c6f=_0x231b7e()[_0x410759(0x223)](_0x3a8a1e[_0x410759(0x249)]);_0x2b78b7=_0x573c6f[_0x410759(0x30a)](()=>{});try{await _0x573c6f?await Promise['race']([_0x16b507,_0x231b7e()[_0x410759(0x1bd)]()]):(_0x299127(),_0x56323b('A\x20steering\x20message\x20arrived\x20after\x20the\x20turn\x20ended:\x20not\x20read.\x0a'));}catch(_0x3c1d53){_0x299127(),_0x56323b(_0x410759(0x145)+(_0x3c1d53 instanceof Error?_0x3c1d53[_0x410759(0x325)]:String(_0x3c1d53))+'\x0a');}}})()['catch'](_0x3f8191=>{const _0x31b9d7=_0x5b5dc8;_0x56323b('Steering\x20input\x20stopped:\x20'+(_0x3f8191 instanceof Error?_0x3f8191[_0x31b9d7(0x325)]:String(_0x3f8191))+'\x0a');});return{'settle':async _0x548246=>{const _0x26256c=_0x5b5dc8;if(await _0x2b78b7,_0x5b3132===0x0)return _0x548246;await _0x231b7e()[_0x26256c(0x1bd)]();for(let _0x15d93b of _0x4b65bb)_0x15d93b();_0x4b65bb=[];let _0x52f7e2=_0x231b7e()[_0x26256c(0x2bf)]()[_0x26256c(0x1ff)](_0x2c5f24)[_0x26256c(0x1e0)](_0x1fb2e7=>_0x1fb2e7['widget']===_0x26256c(0x2d8)||_0x401cff(_0x1fb2e7)||_0x1fb2e7[_0x26256c(0x17c)]==='ai'&&_0x1fb2e7[_0x26256c(0x2ba)]!==_0x26256c(0x295)&&_0x1fb2e7[_0x26256c(0x2ba)]!==_0x26256c(0x2c6)&&!!_0x1fb2e7['content']);if(!_0x52f7e2)return{..._0x548246,'failed':!0x0,'text':_0x26256c(0x26f)};let _0x2e8511=_0x52f7e2[_0x26256c(0x2ba)]===_0x26256c(0x2d8);return typeof _0x52f7e2[_0x26256c(0x1bc)]!=_0x26256c(0x14e)?{..._0x548246,'failed':_0x2e8511}:{..._0x548246,'failed':_0x2e8511,'text':_0x2e8511?_0x3311c2(_0x52f7e2[_0x26256c(0x1bc)]):_0x52f7e2[_0x26256c(0x1bc)]};},'stop':()=>{const _0x46117d=_0x5b5dc8;_0x448a56=!0x0,_0x2c0f1b(),_0x3bf36c[_0x46117d(0x278)]();}};}var Gt=['login',_0x553a75(0x1f7),_0x553a75(0x211),'host',_0x553a75(0x15e),_0x553a75(0x321),_0x553a75(0x170),'sessions',_0x553a75(0x22f),'evaluate',_0x553a75(0x12b),'verify',_0x553a75(0x2d1),'transcribe','delegations',_0x553a75(0x317)],ue=['',_0x553a75(0x211),'whoami',_0x553a75(0x170),'sessions',_0x553a75(0x22f),_0x553a75(0x24a),_0x553a75(0x12b),_0x553a75(0x258),_0x553a75(0x2d1),_0x553a75(0x1e3),_0x553a75(0x134),_0x553a75(0x317)],pe=[_0x553a75(0x164),_0x553a75(0x2a4),_0x553a75(0x23f),_0x553a75(0x299),_0x553a75(0x24e)],Wt=_0x4a72b2,B='cartographer';function b(_0x5b5042,_0x3550c8,_0x920129,_0x5b5b48){const _0x104e43=_0x553a75;let _0x28e55e=_0x5b5042[_0x3550c8];return(!_0x28e55e||_0x28e55e['length']>0x1&&_0x28e55e[_0x104e43(0x293)]('-'))&&(console[_0x104e43(0x245)](_0x920129+_0x104e43(0x22d)+_0x5b5b48+'.'),process['exit'](0x2)),_0x28e55e;}function K(_0x3b27e7,_0x185f6f,_0x2732e5,_0x5530b6){const _0x55b4ca=_0x553a75;let _0x2f832a=b(_0x3b27e7,_0x185f6f,_0x2732e5,_0x55b4ca(0x2cc)),_0x5414c2=Number(_0x2f832a);return(!/^\d+$/['test'](_0x2f832a)||_0x5414c2<0x1||!Number['isSafeInteger'](_0x5414c2)||_0x5530b6!==void 0x0&&_0x5414c2>_0x5530b6)&&(console[_0x55b4ca(0x245)](_0x2732e5+_0x55b4ca(0x2fa)+(_0x5530b6===void 0x0?_0x55b4ca(0x2f9):'from\x201\x20to\x20'+_0x5530b6)+_0x55b4ca(0x209)+_0x2f832a+'.'),process[_0x55b4ca(0x1f9)](0x2)),_0x5414c2;}function Kt(_0x131a20){const _0x48e70f=_0x553a75;let _0x1dd962={'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':_0x48e70f(0x249),'inputFormat':_0x48e70f(0x249),'replayUserMessages':!0x1,'preloadSkills':[],'attachments':[],'skipEnvCheck':!0x1,'includeSubAgents':!0x1,'operands':[],'help':!0x1,'version':!0x1};Gt[_0x48e70f(0x256)](_0x131a20[0x0])&&(_0x1dd962[_0x48e70f(0x31d)]=_0x131a20[0x0],_0x131a20=_0x131a20[_0x48e70f(0x1ff)](0x1));let _0x3850ff=[];for(let _0x174625=0x0;_0x174625<_0x131a20[_0x48e70f(0x160)];_0x174625++){let _0x5efe0d=_0x131a20[_0x174625];switch(_0x5efe0d){case _0x48e70f(0x2da):case'-p':_0x1dd962['print']=!0x0;break;case _0x48e70f(0x21f):_0x1dd962[_0x48e70f(0x16f)]=!0x0;break;case'--cleanup':_0x1dd962[_0x48e70f(0x21c)]=!0x0;break;case'--headless':_0x1dd962['headless']=!0x0;break;case _0x48e70f(0x2eb):_0x1dd962['noComputerUse']=!0x0;break;case _0x48e70f(0x2db):_0x1dd962[_0x48e70f(0x141)]=!0x0,_0x1dd962[_0x48e70f(0x247)]=!0x0,_0x1dd962[_0x48e70f(0x25e)][_0x48e70f(0x262)](...Wt);break;case'--no-connections':_0x1dd962[_0x48e70f(0x1f6)]=!0x0;break;case _0x48e70f(0x2de):_0x1dd962[_0x48e70f(0x33a)]=!0x0;break;case'--no-memory':_0x1dd962[_0x48e70f(0x255)]=!0x0;break;case _0x48e70f(0x20b):_0x1dd962[_0x48e70f(0x1ca)]=!0x0;break;case _0x48e70f(0x1cc):case'-q':_0x1dd962[_0x48e70f(0x24b)]=!0x0;break;case _0x48e70f(0x128):_0x1dd962['verbose']=!0x0;break;case _0x48e70f(0x2b4):_0x1dd962[_0x48e70f(0x24d)]=_0x131a20[++_0x174625];break;case _0x48e70f(0x1bb):_0x1dd962[_0x48e70f(0x167)]=_0x131a20[++_0x174625];break;case _0x48e70f(0x230):_0x1dd962['runnerUrl']=_0x131a20[++_0x174625];break;case'--interop':_0x1dd962[_0x48e70f(0x155)]=_0x131a20[++_0x174625];break;case _0x48e70f(0x338):_0x1dd962[_0x48e70f(0x19f)]=_0x131a20[++_0x174625];break;case'--preload-skill':_0x1dd962[_0x48e70f(0x25e)][_0x48e70f(0x262)](b(_0x131a20,++_0x174625,_0x5efe0d,_0x48e70f(0x313)));break;case _0x48e70f(0x248):{let _0x3e9369=b(_0x131a20,++_0x174625,_0x5efe0d,_0x48e70f(0x290));_0x185fd2(_0x3e9369)||(console['error'](_0x48e70f(0x1a4)+_0x3e9369+_0x48e70f(0x193)),process['exit'](0x2)),_0x1dd962[_0x48e70f(0x2bd)]=_0x3e9369;break;}case _0x48e70f(0x238):_0x1dd962[_0x48e70f(0x29f)]=b(_0x131a20,++_0x174625,_0x5efe0d,_0x48e70f(0x15a));break;case'--output-format':{let _0x4e6d6f=b(_0x131a20,++_0x174625,_0x5efe0d,_0x48e70f(0x220)+_0x4f73c9['join'](_0x48e70f(0x14d))+')');_0x15938a(_0x4e6d6f)||(console['error'](_0x48e70f(0x27e)+_0x4e6d6f+_0x48e70f(0x13b)+_0x4f73c9['join'](_0x48e70f(0x14d))+'.'),process[_0x48e70f(0x1f9)](0x2)),_0x1dd962[_0x48e70f(0x131)]=_0x4e6d6f;break;}case'--input-format':{let _0x3bcef8=b(_0x131a20,++_0x174625,_0x5efe0d,'a\x20format\x20('+j[_0x48e70f(0x274)](_0x48e70f(0x14d))+')');se(_0x3bcef8)||(console['error'](_0x48e70f(0x1d9)+_0x3bcef8+_0x48e70f(0x13b)+j[_0x48e70f(0x274)]('\x20|\x20')+'.'),process['exit'](0x2)),_0x1dd962[_0x48e70f(0x1b8)]=_0x3bcef8;break;}case _0x48e70f(0x196):_0x1dd962['replayUserMessages']=!0x0;break;case _0x48e70f(0x1a9):_0x1dd962[_0x48e70f(0x240)]=b(_0x131a20,++_0x174625,_0x5efe0d,'a\x20session\x20id');break;case _0x48e70f(0x1a7):_0x1dd962[_0x48e70f(0x177)]=K(_0x131a20,++_0x174625,_0x5efe0d);break;case _0x48e70f(0x337):_0x1dd962[_0x48e70f(0x2a7)]=K(_0x131a20,++_0x174625,_0x5efe0d,_0x31db90);break;case'--include-subagents':_0x1dd962[_0x48e70f(0x2e1)]=!0x0;break;case'--json-schema':_0x1dd962[_0x48e70f(0x308)]=b(_0x131a20,++_0x174625,_0x5efe0d,_0x48e70f(0x1a5));break;case _0x48e70f(0x23b):{let _0x2101d7=_0x5d5241[_0x48e70f(0x273)](process[_0x48e70f(0x2ca)](),b(_0x131a20,++_0x174625,_0x5efe0d,_0x48e70f(0x1d2)));_0x3c2bc9['existsSync'](_0x2101d7)||(console[_0x48e70f(0x245)]('--attach:\x20no\x20such\x20file\x20or\x20folder:\x20'+_0x2101d7),process['exit'](0x2)),_0x1dd962[_0x48e70f(0x32b)][_0x48e70f(0x262)](_0x2101d7);break;}case'--turn':_0x1dd962[_0x48e70f(0x149)]=b(_0x131a20,++_0x174625,_0x5efe0d,_0x48e70f(0x236));break;case _0x48e70f(0x2e7):_0x1dd962[_0x48e70f(0x17e)]=b(_0x131a20,++_0x174625,_0x5efe0d,'an\x20email\x20address\x20or\x20name');break;case'--summary':_0x1dd962['contextSummary']=b(_0x131a20,++_0x174625,_0x5efe0d,_0x48e70f(0x330));break;case _0x48e70f(0x29e):_0x1dd962[_0x48e70f(0x241)]=K(_0x131a20,++_0x174625,_0x5efe0d,0x16d);break;case _0x48e70f(0x1e8):_0x1dd962[_0x48e70f(0x2a3)]=_0x5d5241['resolve'](process[_0x48e70f(0x2ca)](),b(_0x131a20,++_0x174625,_0x5efe0d,_0x48e70f(0x1cf)));break;case _0x48e70f(0x324):_0x1dd962[_0x48e70f(0x222)]=_0x5d5241[_0x48e70f(0x273)](process[_0x48e70f(0x2ca)](),b(_0x131a20,++_0x174625,_0x5efe0d,_0x48e70f(0x1cf)));break;case _0x48e70f(0x24f):{let _0x5349b7=b(_0x131a20,++_0x174625,_0x5efe0d,_0x48e70f(0x200));pe[_0x48e70f(0x256)](_0x5349b7)||(console['error'](_0x48e70f(0x2d0)+_0x5349b7+_0x48e70f(0x13b)+pe[_0x48e70f(0x274)]('\x20|\x20')+'.'),process['exit'](0x2)),_0x1dd962[_0x48e70f(0x323)]=_0x5349b7;break;}case _0x48e70f(0x186):{let _0x1c21b6=_0x131a20[++_0x174625];(!_0x1c21b6||_0x1c21b6[_0x48e70f(0x293)]('--'))&&(console[_0x48e70f(0x245)]('--tenant\x20requires\x20a\x20tenant\x20name.'),process[_0x48e70f(0x1f9)](0x2)),_0x1dd962[_0x48e70f(0x1f7)]=_0x1c21b6;break;}case _0x48e70f(0x2d4):{let _0x5a9502=_0x131a20[++_0x174625];[_0x48e70f(0x32c),_0x48e70f(0x215),_0x48e70f(0x2dc),_0x48e70f(0x31b)][_0x48e70f(0x256)](_0x5a9502)||(console[_0x48e70f(0x245)](_0x48e70f(0x185)+_0x5a9502+'.\x20Use\x20alpha\x20|\x20staging\x20|\x20production\x20|\x20localhost.'),process[_0x48e70f(0x1f9)](0x2)),_0x1dd962[_0x48e70f(0x25f)]=_0x5a9502;break;}case _0x48e70f(0x2f0):case _0x48e70f(0x122):{let _0x31316a=b(_0x131a20,++_0x174625,_0x5efe0d,_0x48e70f(0x188)),_0x23d23a=_0x168ce0(_0x31316a);if(_0x23d23a['ok']===!0x1){console['error'](_0x3c5a15(_0x31316a,_0x23d23a[_0x48e70f(0x17f)])),process['exit'](0x2);break;}_0x1dd962[_0x48e70f(0x309)]=_0x23d23a[_0x48e70f(0x30b)];break;}case'--skip-env-check':_0x1dd962[_0x48e70f(0x2d2)]=!0x0;break;case'-h':case _0x48e70f(0x237):_0x1dd962[_0x48e70f(0x2c5)]=!0x0;break;case'-v':case _0x48e70f(0x14c):_0x1dd962[_0x48e70f(0x31e)]=!0x0;break;default:_0x5efe0d[_0x48e70f(0x293)]('--')&&(console[_0x48e70f(0x245)]('Unknown\x20flag:\x20'+_0x5efe0d),process[_0x48e70f(0x1f9)](0x2)),_0x3850ff[_0x48e70f(0x262)](_0x5efe0d);}}return _0x1dd962[_0x48e70f(0x1f7)]!==void 0x0&&_0x1dd962[_0x48e70f(0x31d)]!==_0x48e70f(0x20d)&&(console[_0x48e70f(0x245)](_0x48e70f(0x139)),process[_0x48e70f(0x1f9)](0x2)),_0x1dd962[_0x48e70f(0x309)]!==void 0x0&&_0x1dd962[_0x48e70f(0x25f)]!==void 0x0&&(console[_0x48e70f(0x245)](_0x48e70f(0x1b2)),process[_0x48e70f(0x1f9)](0x2)),_0x1dd962['url']!==void 0x0&&_0x1dd962[_0x48e70f(0x31d)]!==_0x48e70f(0x20d)&&(console[_0x48e70f(0x245)]('--url\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Other\x20commands\x20follow\x20the\x20saved\x20login,\x20or\x20--backend\x20<url>.'),process[_0x48e70f(0x1f9)](0x2)),_0x1dd962[_0x48e70f(0x241)]!==void 0x0&&_0x1dd962['subcommand']!==_0x48e70f(0x22f)&&(console[_0x48e70f(0x245)](_0x48e70f(0x2c3)),process['exit'](0x2)),_0x1dd962[_0x48e70f(0x308)]!==void 0x0&&(_0x1dd962[_0x48e70f(0x31d)]!==_0x48e70f(0x2d1)&&_0x1dd962['subcommand']!==''||_0x1dd962[_0x48e70f(0x21c)])&&(console[_0x48e70f(0x245)](_0x48e70f(0x305)),process['exit'](0x2)),_0x1dd962[_0x48e70f(0x32b)][_0x48e70f(0x160)]>0x0&&(_0x1dd962[_0x48e70f(0x31d)]!==''||_0x1dd962[_0x48e70f(0x21c)])&&(console[_0x48e70f(0x245)](_0x48e70f(0x29b)),process['exit'](0x2)),_0x1dd962[_0x48e70f(0x1ca)]&&(_0x1dd962[_0x48e70f(0x31d)]!==''||_0x1dd962[_0x48e70f(0x21c)])&&(console[_0x48e70f(0x245)]('--task-automation\x20applies\x20to\x20prompts\x20only.'),process[_0x48e70f(0x1f9)](0x2)),_0x1dd962[_0x48e70f(0x1ca)]&&(_0x1dd962[_0x48e70f(0x18e)]||_0x1dd962[_0x48e70f(0x247)]||_0x1dd962[_0x48e70f(0x29f)]?.['trim']()===B)&&(console[_0x48e70f(0x245)](_0x48e70f(0x300)),process[_0x48e70f(0x1f9)](0x2)),_0x1dd962['cartographer']&&(_0x1dd962[_0x48e70f(0x29f)]!==void 0x0&&_0x1dd962[_0x48e70f(0x29f)][_0x48e70f(0x184)]()!==B&&(console[_0x48e70f(0x245)](_0x48e70f(0x31a)+B+_0x48e70f(0x2e0)+_0x1dd962[_0x48e70f(0x29f)]+'.\x20Drop\x20one\x20of\x20the\x20two.'),process[_0x48e70f(0x1f9)](0x2)),_0x1dd962['vertical']=B),_0x1dd962['skipEnvCheck']&&_0x1dd962[_0x48e70f(0x31d)]!==_0x48e70f(0x20d)&&(console[_0x48e70f(0x245)](_0x48e70f(0x2a2)),process[_0x48e70f(0x1f9)](0x2)),_0x1dd962[_0x48e70f(0x131)]!=='text'&&!ue['includes'](_0x1dd962[_0x48e70f(0x31d)])&&(console[_0x48e70f(0x245)](_0x48e70f(0x176)+_0x1dd962['outputFormat']+_0x48e70f(0x12c)+ue['filter'](Boolean)['join'](',\x20')+'.'),process[_0x48e70f(0x1f9)](0x2)),(_0x1dd962[_0x48e70f(0x1b8)]!==_0x48e70f(0x249)||_0x1dd962[_0x48e70f(0x2a5)])&&_0x1dd962['subcommand']!==''&&(console[_0x48e70f(0x245)]('--input-format\x20and\x20--replay-user-messages\x20apply\x20to\x20prompts\x20only.'),process[_0x48e70f(0x1f9)](0x2)),_0x1dd962[_0x48e70f(0x2a5)]&&_0x1dd962[_0x48e70f(0x1b8)]!==_0x48e70f(0x25b)&&(console[_0x48e70f(0x245)](_0x48e70f(0x1ec)),process['exit'](0x2)),_0x1dd962[_0x48e70f(0x1b8)]===_0x48e70f(0x25b)&&_0x1dd962[_0x48e70f(0x131)]!==_0x48e70f(0x25b)&&(console[_0x48e70f(0x245)](_0x48e70f(0x2fd)),process[_0x48e70f(0x1f9)](0x2)),(_0x1dd962[_0x48e70f(0x177)]!==void 0x0||_0x1dd962['limit']!==void 0x0||_0x1dd962['includeSubAgents'])&&_0x1dd962['subcommand']!==_0x48e70f(0x310)&&(console[_0x48e70f(0x245)](_0x48e70f(0x28b)),process[_0x48e70f(0x1f9)](0x2)),(_0x1dd962[_0x48e70f(0x17e)]!==void 0x0||_0x1dd962[_0x48e70f(0x213)]!==void 0x0)&&_0x1dd962[_0x48e70f(0x31d)]!==_0x48e70f(0x134)&&(console[_0x48e70f(0x245)]('--to\x20and\x20--summary\x20apply\x20to\x20`delegate-cli\x20delegations\x20create`\x20only.'),process[_0x48e70f(0x1f9)](0x2)),_0x1dd962[_0x48e70f(0x149)]!==void 0x0&&_0x1dd962[_0x48e70f(0x31d)]!==_0x48e70f(0x310)&&(console[_0x48e70f(0x245)](_0x48e70f(0x275)),process[_0x48e70f(0x1f9)](0x2)),_0x1dd962['preloadSkills']=[...new Set(_0x1dd962[_0x48e70f(0x25e)])],_0x1dd962[_0x48e70f(0x2d5)]=_0x3850ff,_0x1dd962[_0x48e70f(0x1fd)]=_0x3850ff[_0x48e70f(0x274)]('\x20'),_0x1dd962['inputFormat']===_0x48e70f(0x25b)&&_0x1dd962[_0x48e70f(0x1fd)]!==''&&(console[_0x48e70f(0x245)]('--input-format\x20stream-json\x20reads\x20the\x20prompt\x20from\x20stdin:\x20pass\x20no\x20prompt\x20argument.'),process[_0x48e70f(0x1f9)](0x2)),_0x1dd962;}var O=_0x2d7fae=>{const _0x40338f=_0x553a75;process['stdout'][_0x40338f(0x16b)](_0x2d7fae);};function Qt(){const _0x4f0475=_0x553a75;let _0x36dae8=process[_0x4f0475(0x284)][_0x4f0475(0x16b)],_0xbcc985=_0x36dae8[_0x4f0475(0x227)](process[_0x4f0475(0x284)]),_0x3af296=O;return O=_0x4957bf=>{_0xbcc985(_0x4957bf);},process[_0x4f0475(0x284)]['write']=(..._0x10a404)=>process[_0x4f0475(0x19e)][_0x4f0475(0x16b)](..._0x10a404),()=>{const _0x4dbb93=_0x4f0475;process[_0x4dbb93(0x284)][_0x4dbb93(0x16b)]=_0x36dae8,O=_0x3af296;};}function m(_0x2a7738,_0x24b737,_0x2079a6){const _0x133bba=_0x553a75;if(_0x2a7738[_0x133bba(0x131)]==='text'){_0x2079a6(_0x24b737);return;}O(_0x307699(_0x24b737));}function qt(){const _0x232960=_0x553a75;let _0x575646=_0x232960(0x32d)['trim']();console['log'](_0x575646);}function zt(){const _0xbfdac8=_0x553a75;try{return JSON['parse'](_0x3c2bc9[_0xbfdac8(0x2f5)](_0x5d5241[_0xbfdac8(0x274)](__dirname,'..',_0xbfdac8(0x12d)),_0xbfdac8(0x1ef)))['version']||_0xbfdac8(0x1d3);}catch{return'unknown';}}var Yt=0x7d0;async function me(_0x38b14b,_0x251940){const _0x16241e=_0x553a75;let _0xae7c36=_0x251940?[_0x251940]:[];for await(let _0x5ad568 of _0x38b14b)_0xae7c36[_0x16241e(0x262)](Buffer[_0x16241e(0x199)](_0x5ad568));return Buffer['concat'](_0xae7c36)['toString'](_0x16241e(0x1ef))[_0x16241e(0x184)]();}function Vt(_0x256951,_0x53702e){return new Promise(_0x1b79dc=>{const _0x2202ac=_0x4788;let _0xfe9ed3=_0xa07cf8=>{const _0x12169c=_0x4788;clearTimeout(_0x8d4588),_0x256951[_0x12169c(0x232)]('data',_0x55b583),_0x256951[_0x12169c(0x232)]('end',_0x3e1d90),_0x256951[_0x12169c(0x232)](_0x12169c(0x245),_0x3e1d90),_0x256951[_0x12169c(0x2f6)](),_0x1b79dc(_0xa07cf8);},_0x55b583=_0x4ad579=>_0xfe9ed3(Buffer[_0x2202ac(0x199)](_0x4ad579)),_0x3e1d90=()=>_0xfe9ed3(null),_0x8d4588=setTimeout(()=>_0xfe9ed3(null),_0x53702e);_0x256951['on']('data',_0x55b583),_0x256951['on'](_0x2202ac(0x1b5),_0x3e1d90),_0x256951['on'](_0x2202ac(0x245),_0x3e1d90),_0x256951[_0x2202ac(0x1c8)]();});}async function H(_0x2f2a4a,_0x2d539f,_0x1c4da2=Yt){const _0x223215=_0x553a75;let _0x20a484=_0x2f2a4a==='-';if(!_0x20a484&&_0x2f2a4a)return _0x2f2a4a;if(!_0x20a484&&_0x2d539f[_0x223215(0x14b)])return'';if(_0x20a484)return me(_0x2d539f,null);let _0x1e8835=await Vt(_0x2d539f,_0x1c4da2);return _0x1e8835?me(_0x2d539f,_0x1e8835):'';}function z(){const _0x490230=_0x553a75;return _0x5d5241['join'](process.env.HOME||process.env.USERPROFILE||'',_0x490230(0x2ae),_0x490230(0x244));}function G(_0x24011c){const _0xa7944a=_0x553a75;try{let _0x104df4=JSON[_0xa7944a(0x15b)](_0x3c2bc9['readFileSync'](_0x24011c,'utf-8'));return!_0x104df4[_0xa7944a(0x217)]||!_0x104df4[_0xa7944a(0x2c8)]||!_0x104df4[_0xa7944a(0x16a)]?null:_0x104df4;}catch{return null;}}function Xt(){const _0x341cd5=_0x553a75;let _0x194c2b=[{'file':_0x44ab65(),'isDesktopFallback':!0x1},{'file':z(),'isDesktopFallback':!0x0}];for(let _0x349d8a of _0x194c2b){let _0x197e65=G(_0x349d8a[_0x341cd5(0x140)]);if(_0x197e65)return{..._0x349d8a,'auth':_0x197e65};}return null;}async function Zt(){const _0x160763=_0x553a75;let _0x4a8e61=_0x44ab65();if(!_0x3c2bc9[_0x160763(0x123)](_0x4a8e61)){let _0x49be75=z();console[_0x160763(0x320)](G(_0x49be75)?_0x160763(0x332)+_0x49be75+_0x160763(0x1a8):_0x160763(0x130));return;}_0x3c2bc9[_0x160763(0x1f3)](_0x4a8e61),console[_0x160763(0x320)](_0x160763(0x26b)+_0x4a8e61);}async function en(_0x39e095){const _0x10d106=_0x553a75;let _0x3a1af9=Y(),_0x2a97b9,_0x504d3b;if(_0x3a1af9)_0x2a97b9=_0x3a1af9,_0x504d3b=_0x10d106(0x296);else{let _0x4582ae=Xt();if(!_0x4582ae)throw new Error(Te);_0x2a97b9=_0x4582ae[_0x10d106(0x201)],_0x504d3b=_0x4582ae[_0x10d106(0x162)]?_0x4582ae[_0x10d106(0x140)]+'\x20(Delegate\x20desktop\x20app\x20fallback)':_0x4582ae[_0x10d106(0x140)];}let _0x49c889={'source':_0x504d3b,'baseUrl':_0x2a97b9['baseUrl']??null,'deployment':tn(_0x2a97b9[_0x10d106(0x30b)]),'organization':{'id':_0x2a97b9[_0x10d106(0x16a)],'slug':_0x2a97b9[_0x10d106(0x27d)]??null},'tenant':{'id':_0x2a97b9['tenantId'],'name':_0x2a97b9[_0x10d106(0x175)]??null},'tokenExpiresAt':_0x2a97b9[_0x10d106(0x1e4)]?new Date(_0x2a97b9[_0x10d106(0x1e4)]*0x3e8)[_0x10d106(0x22e)]():null};m(_0x39e095,_0x49c889,()=>{const _0x140ebe=_0x10d106;let _0x356361=[_0x140ebe(0x180)+_0x504d3b,_0x140ebe(0x1c3)+(_0x2a97b9['baseUrl']??_0x140ebe(0x1d3)),_0x140ebe(0x261)+_0x49c889['deployment'],_0x140ebe(0x1d7)+(_0x2a97b9[_0x140ebe(0x27d)]??_0x140ebe(0x23c))+'\x20('+_0x2a97b9['organizationId']+')',_0x140ebe(0x2dd)+(_0x2a97b9['tenantName']??_0x140ebe(0x23c))+'\x20('+_0x2a97b9['tenantId']+')'];if(_0x2a97b9['expiresAt']){let _0x5bdba2=_0x2a97b9[_0x140ebe(0x1e4)]-Math[_0x140ebe(0x272)](Date[_0x140ebe(0x18a)]()/0x3e8);_0x356361[_0x140ebe(0x262)](_0x5bdba2>0x0?_0x140ebe(0x246)+_0x49c889[_0x140ebe(0x225)]+_0x140ebe(0x282)+Math[_0x140ebe(0x20e)](_0x5bdba2/0x3c)+_0x140ebe(0x253):_0x140ebe(0x280)+_0x49c889['tokenExpiresAt']);}process['stdout']['write'](_0x356361[_0x140ebe(0x274)]('\x0a')+'\x0a');});}var Te=_0x553a75(0x20f);function tn(_0x4a3923){const _0x227c9e=_0x553a75;return _0x4a3923?_0x529242(_0x4a3923)?_0x227c9e(0x1ba):_0x227c9e(0x2ff):_0x227c9e(0x1d3);}function Y(){let _0x30efe3=process.env.AUTH_TOKEN_FILE;return(process.env.AUTH_TOKEN||_0x30efe3)&&process.env.TENANT_ID&&process.env.ORG_ID?{'accessToken':_0x30efe3?nn(_0x30efe3):process.env.AUTH_TOKEN,..._0x30efe3?{'accessTokenFile':_0x30efe3}:{},'tenantId':process.env.TENANT_ID,'organizationId':process.env.ORG_ID,'orgLogicalName':process.env.ORG_SLUG,'tenantName':process.env.TENANT_SLUG,'baseUrl':Ue()}:null;}function nn(_0x29087a){const _0x318758=_0x553a75;let _0x170341;try{_0x170341=_0x3c2bc9[_0x318758(0x2f5)](_0x29087a,'utf-8')[_0x318758(0x184)]();}catch(_0x3383bb){throw new Error(_0x318758(0x1f0)+_0x29087a+_0x318758(0x13d)+_0x3383bb[_0x318758(0x325)]);}let _0x38e50d=_0x170341[_0x318758(0x293)](_0x318758(0x2bb))?_0x170341['slice'](0x7)[_0x318758(0x184)]():_0x170341;if(!_0x38e50d)throw new Error(_0x318758(0x1f0)+_0x29087a+'\x27\x20is\x20empty.');return _0x38e50d;}function Ue(){const _0x4afeec=_0x553a75;let _0x3a650e=process.env.UIPATH_BASE_URL;if(!_0x3a650e)return;let _0x4c47f5=_0x168ce0(_0x3a650e);if(_0x4c47f5['ok']===!0x1)throw new Error(_0x4afeec(0x327)+_0x3c5a15(_0x3a650e,_0x4c47f5[_0x4afeec(0x17f)]));return _0x4c47f5[_0x4afeec(0x30b)];}async function V(){let _0x361651=Y();if(_0x361651)return _0x361651;let _0xacb303=await _0x2f94eb();if(_0xacb303)return _0xacb303;throw new Error(Te);}async function sn(){const _0x5bdc03=_0x553a75;await new _0x4dbe2b()['stop']({'force':!0x0}),console[_0x5bdc03(0x320)](_0x5bdc03(0x257));}function X(_0x8cc639,_0x45bc62,_0x4c1c5c){const _0x3e10ca=_0x553a75;_0x8cc639?process['stderr'][_0x3e10ca(0x16b)]('[env='+_0x8cc639+_0x3e10ca(0x129)+_0x4c1c5c+'\x0a'):!_0x45bc62&&!process.env.BACKEND_URL&&process[_0x3e10ca(0x19e)][_0x3e10ca(0x16b)](_0x3e10ca(0x214)+_0x4c1c5c+'\x0a');}async function $(_0xdae908){const _0xbf11c0=_0x553a75;let _0x37358=await V(),_0x312575=_0x4f64fe(_0xdae908['env'],_0x37358,_0xdae908[_0xbf11c0(0x24d)]);return X(_0xdae908[_0xbf11c0(0x25f)],_0xdae908[_0xbf11c0(0x24d)],_0x312575),{'auth':_0x37358,'backendUrl':_0x312575,'client':_0x53a1a0({'auth':_0x37358,'backendUrl':_0x312575})};}async function on(_0x23502f){const _0xd3001=_0x553a75;let {client:_0x1f2976}=await $(_0x23502f),[_0x38336d,_0x3854f9]=await Promise['all']([_0x3c2c99(_0x1f2976),_0x24be30(_0x1f2976)['catch'](_0x35176e=>(process[_0xd3001(0x19e)][_0xd3001(0x16b)](_0xd3001(0x2a6)+(_0x35176e instanceof Error?_0x35176e['message']:String(_0x35176e))+'\x0a'),{}))]),_0x2396f7=_0x38336d[_0xd3001(0x2af)](_0x525d3e=>_0x3854f9[_0x525d3e['id']]?{..._0x525d3e,'byoWarning':_0x3854f9[_0x525d3e['id']]}:_0x525d3e);m(_0x23502f,_0x2396f7,rn);}function rn(_0xdcd4b9){const _0x3862f0=_0x553a75;if(_0xdcd4b9[_0x3862f0(0x160)]===0x0){process[_0x3862f0(0x19e)][_0x3862f0(0x16b)](_0x3862f0(0x2e2));return;}process[_0x3862f0(0x284)][_0x3862f0(0x16b)](_0x3862f0(0x16c)+_0xdcd4b9[_0x3862f0(0x160)]+_0x3862f0(0x339));for(let _0x339507 of _0xdcd4b9){let _0x5ce730=_0x339507[_0x3862f0(0x1a3)]&&_0x339507[_0x3862f0(0x1a3)]!==_0x339507['id']?'\x20('+_0x339507[_0x3862f0(0x1a3)]+')':'';process['stdout']['write']('\x20\x20'+_0x339507['id']+_0x5ce730+'\x0a'),_0x339507[_0x3862f0(0x2ef)]&&process['stdout'][_0x3862f0(0x16b)]('\x20\x20\x20\x20'+_0x339507[_0x3862f0(0x2ef)]+'\x0a'),_0x339507[_0x3862f0(0x13e)]&&process['stdout'][_0x3862f0(0x16b)](_0x3862f0(0x271)+(_0x339507[_0x3862f0(0x32e)]?'\x20('+_0x339507[_0x3862f0(0x32e)]+')':'')+'\x0a'),_0x339507[_0x3862f0(0x18d)]&&process[_0x3862f0(0x284)][_0x3862f0(0x16b)](_0x3862f0(0x1bf)+_0x339507['byoWarning']+'\x0a');}process[_0x3862f0(0x284)][_0x3862f0(0x16b)](_0x3862f0(0x135));}var fe=[_0x553a75(0x1f2),'show','rename',_0x553a75(0x13c),_0x553a75(0x286),_0x553a75(0x15f)];async function an(_0x5dad6e){const _0x5ccdc4=_0x553a75;let [_0x512927='',_0x30c3cd='',..._0x10239f]=_0x5dad6e[_0x5ccdc4(0x2d5)];if(_0x512927&&!fe[_0x5ccdc4(0x256)](_0x512927)&&(console[_0x5ccdc4(0x245)](_0x5ccdc4(0x1ed)+_0x512927+_0x5ccdc4(0x322)+fe['join'](_0x5ccdc4(0x14d))+'.'),process[_0x5ccdc4(0x1f9)](0x2)),_0x5dad6e[_0x5ccdc4(0x149)]!==void 0x0&&_0x512927!==_0x5ccdc4(0x286)&&(console['error']('--turn\x20applies\x20to\x20`delegate-cli\x20sessions\x20cancel`\x20only.'),process['exit'](0x2)),_0x512927&&_0x512927!==_0x5ccdc4(0x1f2)){await ln(_0x5dad6e,_0x512927,_0x30c3cd,_0x10239f['join']('\x20')[_0x5ccdc4(0x184)]());return;}_0x5dad6e[_0x5ccdc4(0x2d5)][_0x5ccdc4(0x160)]>0x1&&(console[_0x5ccdc4(0x245)](_0x5ccdc4(0x318)),process[_0x5ccdc4(0x1f9)](0x2));let {client:_0x23e351}=await $(_0x5dad6e),_0x5aa927=await _0x560676(_0x23e351,{'page':_0x5dad6e[_0x5ccdc4(0x177)],'pageSize':_0x5dad6e[_0x5ccdc4(0x2a7)],'includeSubAgents':_0x5dad6e[_0x5ccdc4(0x2e1)]});m(_0x5dad6e,_0x5aa927,pn);}async function ln(_0x23f6e9,_0x5b2767,_0x37d75a,_0x35bc5f){const _0xe041d6=_0x553a75;if((_0x23f6e9[_0xe041d6(0x177)]!==void 0x0||_0x23f6e9['limit']!==void 0x0||_0x23f6e9[_0xe041d6(0x2e1)])&&(console[_0xe041d6(0x245)](_0xe041d6(0x302)),process[_0xe041d6(0x1f9)](0x2)),_0x5b2767===_0xe041d6(0x286)){await dn(_0x23f6e9,_0x37d75a,_0x35bc5f);return;}if(_0x5b2767===_0xe041d6(0x15f)){await un(_0x23f6e9,_0x37d75a,_0x35bc5f);return;}(!_0x37d75a||_0x5b2767===_0xe041d6(0x18b)!=!!_0x35bc5f)&&(console['error'](_0xe041d6(0x1cb)+_0x5b2767+'\x20<id>'+(_0x5b2767===_0xe041d6(0x18b)?_0xe041d6(0x27c):'')),process['exit'](0x2));let {client:_0x23d0b2}=await $(_0x23f6e9);try{if(_0x5b2767===_0xe041d6(0x2ec)){let _0x2851ac=await _0x7442a9(_0x23d0b2,_0x37d75a);_0x2851ac||ge(_0x37d75a),m(_0x23f6e9,_0x2851ac,cn);}else{if(_0x5b2767===_0xe041d6(0x18b)){let _0x4d8e44=await _0x2fca2a(_0x23d0b2,_0x37d75a,_0x35bc5f);m(_0x23f6e9,_0x4d8e44,_0x13361e=>{const _0x40037f=_0xe041d6;process['stdout'][_0x40037f(0x16b)]('Renamed\x20'+_0x13361e['id']+':\x20'+_0x13361e[_0x40037f(0x144)]+'\x0a');});}else await _0x20e800(_0x23d0b2,_0x37d75a),await _0x2c2c89(_0x37d75a,_0x23f6e9[_0xe041d6(0x2a3)]),m(_0x23f6e9,{'id':_0x37d75a,'deleted':!0x0},_0x1a45fd=>{const _0x2cefe0=_0xe041d6;process['stdout'][_0x2cefe0(0x16b)](_0x2cefe0(0x21b)+_0x1a45fd['id']+'.\x0a');});}}catch(_0x5d11ec){if(!_0x467613(_0x5d11ec,0x194))throw _0x5d11ec;ge(_0x37d75a);}}function ge(_0x5de7f1){const _0x121ba8=_0x553a75;console[_0x121ba8(0x245)](_0x121ba8(0x336)+_0x5de7f1+_0x121ba8(0x22a)),process[_0x121ba8(0x1f9)](0x1);}function cn(_0x1beda0){const _0x2c3991=_0x553a75;process[_0x2c3991(0x284)]['write'](_0x2c3991(0x20a)+_0x1beda0['id']+'\x0a'),process[_0x2c3991(0x284)][_0x2c3991(0x16b)]('Title\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x1beda0[_0x2c3991(0x144)]+'\x0a'),process[_0x2c3991(0x284)][_0x2c3991(0x16b)](_0x2c3991(0x197)+_0x1beda0[_0x2c3991(0x183)]+'\x0a'),process[_0x2c3991(0x284)][_0x2c3991(0x16b)](_0x2c3991(0x1dd)+_0x1beda0[_0x2c3991(0x16a)]+'\x0a'),_0x1beda0[_0x2c3991(0x2a8)]&&process['stdout'][_0x2c3991(0x16b)]('Delegation\x20\x20\x20\x20'+_0x1beda0[_0x2c3991(0x2a8)]+'\x0a');}async function dn(_0x514542,_0x38b5f2,_0x101684){const _0x3dbdd6=_0x553a75;(!_0x38b5f2||_0x101684||!_0x514542[_0x3dbdd6(0x149)])&&(console[_0x3dbdd6(0x245)](_0x3dbdd6(0x2d6)),process[_0x3dbdd6(0x1f9)](0x2));let {client:_0x39407a}=await $(_0x514542),_0x5669cc=await _0x1140d0(_0x39407a,_0x38b5f2,_0x514542[_0x3dbdd6(0x149)]);m(_0x514542,{'sessionId':_0x38b5f2,'turnId':_0x514542[_0x3dbdd6(0x149)],'cancelled':_0x5669cc},_0x358e2c=>{const _0x360328=_0x3dbdd6;_0x358e2c[_0x360328(0x2c4)]?process[_0x360328(0x284)][_0x360328(0x16b)](_0x360328(0x152)+_0x358e2c[_0x360328(0x149)]+_0x360328(0x19d)+_0x358e2c[_0x360328(0x240)]+'.\x0a'):process['stderr']['write'](_0x360328(0x19a)+_0x358e2c['turnId']+_0x360328(0x17a)+_0x358e2c[_0x360328(0x240)]+'.\x0a');}),_0x5669cc||(process[_0x3dbdd6(0x1d0)]=0x1);}async function un(_0x14bb9a,_0x33fda2,_0x11c2da){const _0x42aa12=_0x553a75;(!_0x33fda2||/\s/[_0x42aa12(0x297)](_0x11c2da))&&(console[_0x42aa12(0x245)](_0x42aa12(0x269)),process['exit'](0x2));let {client:_0x19a2c8}=await $(_0x14bb9a),_0x1188c1;try{_0x1188c1=await _0x72a330(_0x19a2c8,_0x33fda2,{'atMessageId':_0x11c2da||void 0x0});}catch(_0x23497d){if(!_0x467613(_0x23497d,0x194))throw _0x23497d;console[_0x42aa12(0x245)](_0x42aa12(0x336)+_0x33fda2+'\x20not\x20found,\x20has\x20no\x20messages'+(_0x11c2da?_0x42aa12(0x2c7)+_0x11c2da:'')+'.'),process[_0x42aa12(0x1f9)](0x1);}m(_0x14bb9a,_0x1188c1,_0x5236ff=>{const _0x153617=_0x42aa12;process[_0x153617(0x284)][_0x153617(0x16b)](_0x153617(0x1a1)+_0x33fda2+_0x153617(0x29d)+_0x5236ff['id']+'.\x0a'),process[_0x153617(0x19e)][_0x153617(0x16b)]('Continue\x20it\x20with:\x20delegate-cli\x20--session\x20'+_0x5236ff['id']+_0x153617(0x1df));});}function pn({sessions:_0x4e46d6,page:_0x3c0f8c,isLastPage:_0x48d646}){const _0x5a58e6=_0x553a75;if(_0x4e46d6[_0x5a58e6(0x160)]===0x0)process[_0x5a58e6(0x19e)]['write'](_0x5a58e6(0x173)+_0x3c0f8c+'.\x0a');else{process[_0x5a58e6(0x284)][_0x5a58e6(0x16b)]('ID'[_0x5a58e6(0x1c5)](0x24)+'\x20\x20'+_0x5a58e6(0x1b4)[_0x5a58e6(0x1c5)](0x13)+_0x5a58e6(0x1de));for(let _0x147518 of _0x4e46d6){let _0x124682=_0x147518[_0x5a58e6(0x303)][_0x5a58e6(0x331)]('T','\x20')['slice'](0x0,0x13),_0x4bf3ce=_0x147518[_0x5a58e6(0x2e9)]?'\x20\x20(sub-agent\x20of\x20'+_0x147518['parentSessionId']+')':'';process[_0x5a58e6(0x284)][_0x5a58e6(0x16b)](_0x147518['id'][_0x5a58e6(0x1c5)](0x24)+'\x20\x20'+_0x124682['padEnd'](0x13)+'\x20\x20'+_0x147518[_0x5a58e6(0x144)]+_0x4bf3ce+'\x0a');}}_0x48d646||process[_0x5a58e6(0x19e)][_0x5a58e6(0x16b)]('More:\x20delegate-cli\x20sessions\x20--page\x20'+(_0x3c0f8c+0x1)+'\x0a');}async function mn(_0x37b3ff){const _0x782990=_0x553a75;let _0x35978f=await V(),_0x5f035a=_0x4f64fe(_0x37b3ff['env'],_0x35978f,_0x37b3ff[_0x782990(0x24d)]);X(_0x37b3ff[_0x782990(0x25f)],_0x37b3ff[_0x782990(0x24d)],_0x5f035a);let _0x2cd54e=await _0xf02ba8({'auth':_0x35978f,'backendUrl':_0x5f035a,'interop':_0x37b3ff[_0x782990(0x18e)]?_0x782990(0x21a):_0x782990(0x31f)});m(_0x37b3ff,_0x2cd54e,({checks:_0x2aab9b})=>{const _0x1a1e21=_0x782990;for(let _0x50dcf5 of _0x2aab9b)process['stdout'][_0x1a1e21(0x16b)](fn(_0x50dcf5)+'\x0a');}),_0x2cd54e['ok']||process[_0x782990(0x1f9)](0x1);}function fn(_0x10e2c8){const _0x1460c8=_0x553a75;return{'ok':'✓','failed':'✗','skipped':'-'}[_0x10e2c8[_0x1460c8(0x229)]]+'\x20'+_0x10e2c8[_0x1460c8(0x1a3)]['padEnd'](0xa)+_0x10e2c8['detail'];}var gn=['',_0x553a75(0x23e),_0x553a75(0x2b9)];async function hn(_0x609ff5){const _0x4bd300=_0x553a75;let _0x533bf7=_0x609ff5['prompt'];gn[_0x4bd300(0x256)](_0x533bf7)||(console['error']('Unknown\x20usage\x20view:\x20'+_0x609ff5[_0x4bd300(0x1fd)]+_0x4bd300(0x1e7)),process[_0x4bd300(0x1f9)](0x2)),_0x533bf7===''&&_0x609ff5['days']!==void 0x0&&(console[_0x4bd300(0x245)](_0x4bd300(0x228)),process[_0x4bd300(0x1f9)](0x2)),_0x533bf7!==''&&_0x609ff5['sessionId']!==void 0x0&&(console[_0x4bd300(0x245)](_0x4bd300(0x204)),process['exit'](0x2));let {client:_0x2cd7a2}=await $(_0x609ff5);if(_0x533bf7===_0x4bd300(0x23e)){m(_0x609ff5,await _0x578ee5(_0x2cd7a2,{'days':_0x609ff5[_0x4bd300(0x241)]}),wn);return;}if(_0x533bf7==='daily'){m(_0x609ff5,await _0x5539f0(_0x2cd7a2,{'days':_0x609ff5[_0x4bd300(0x241)]}),kn);return;}let [_0x185139,_0x463a67,_0x3a26e5]=await Promise[_0x4bd300(0x179)]([_0x5d5b10(_0x2cd7a2,{'sessionId':_0x609ff5[_0x4bd300(0x240)]}),_0x5ee29f(_0x2cd7a2),_0x542aec(_0x2cd7a2)]);m(_0x609ff5,{'licensing':_0x185139,'monthlySpending':_0x463a67,'cartographerAllowance':_0x3a26e5},yn);}function _0x79d9(){const _0x1692ca=['The\x20turn\x20was\x20cancelled.','.aria','map','extra_pool_consumed_pu','Model\x20','estimated_cost_usd','toUpperCase','--backend','erase','Usage:\x20delegate-cli\x20org-users\x20<name\x20or\x20email\x20prefix>','abort','total_tokens','daily','widget','Bearer\x20','You>\x20','projectId','2205848PXDJYS','getSessionMessages','transcribe\x20needs\x20audio:\x20delegate-cli\x20transcribe\x20<file>,\x20or\x20-\x20to\x20read\x20stdin.','question','\x20(optional)','--days\x20applies\x20to\x20`delegate-cli\x20usage\x20activity|daily`\x20only.','cancelled','help','followUpsRenderer',',\x20or\x20holds\x20no\x20message\x20','tenantId','Switch\x20with:\x20delegate-cli\x20tenant\x20<name>\x0a','cwd','filter','a\x20number','Task\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','keys','default','Invalid\x20--effort:\x20','complete','skipEnvCheck','20UUtDaY','--env','operands','Usage:\x20delegate-cli\x20sessions\x20cancel\x20<session-id>\x20--turn\x20<turn-id>','total_quota_pu','actionable_error','limit_enabled','--print','--cartographer','production','Tenant:\x20\x20\x20\x20\x20\x20\x20','--no-security','Number','\x20vertical,\x20so\x20it\x20cannot\x20run\x20as\x20--vertical\x20','includeSubAgents','No\x20models\x20available\x20for\x20this\x20product/tenant.\x0a','token_units','claim','Answered','accept','--to','structured','parentSessionId',',\x20not\x20\x22user\x22','--no-computer-use','show','questions','SIGINT','description','--url','),\x20','1437pnKVJO','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','subFields','readFileSync','pause','Input\x20closed\x20before\x20the\x20question\x20was\x20answered.','Tenants\x20of\x20','1\x20or\x20more','\x20must\x20be\x20a\x20whole\x20number\x20','unit','monthly_limit_usd','--input-format\x20stream-json\x20needs\x20--output-format\x20stream-json:\x20the\x20steering\x20messages\x20are\x20answered\x20on\x20stdout.','No\x20structured\x20output:\x20the\x20turn\x20failed\x20(','self-hosted\x20(Automation\x20Suite\x20/\x20Dedicated)','--task-automation\x20needs\x20computer\x20use:\x20the\x20task\x20log\x20is\x20written\x20by\x20the\x20UI-automation\x20tools.\x20Drop\x20--headless,\x20--no-computer-use,\x20--cartographer\x20and\x20--vertical\x20cartographer.','assignedUserEmail','--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`delegate-cli\x20sessions\x20[list]`\x20only.','updatedAt','Licensing:\x20\x20\x20\x20no\x20licensing\x20quota\x20applies','--json-schema\x20applies\x20to\x20prompts\x20and\x20to\x20`delegate-cli\x20complete`\x20only.','\x20(no\x20cap\x20enforced)','verbose','jsonSchemaPath','url','catch','baseUrl','\x20(resume\x20with\x20--session\x20','initialize','period_days','an\x20input\x20line\x20has\x20no\x20message.content,\x20a\x20string\x20or\x20a\x20list\x20of\x20text\x20blocks','sessions','padStart','delegations\x20show\x20<delegation-id|delegate://delegation/…>','a\x20skill\x20name','deepLink','No\x20CLI\x20login\x20to\x20switch:\x20the\x20CLI\x20is\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20','addEventListener','org-users','Usage:\x20delegate-cli\x20sessions\x20[list]\x20[--page\x20N]\x20[--limit\x20N]\x20[--include-subagents]','Date\x20\x20\x20\x20\x20\x20\x20\x20Token\x20units\x20\x20Prompt\x20tokens\x20\x20Completion\x20tokens','--cartographer\x20runs\x20the\x20','localhost','pop','subcommand','version','spawn','log','whoami','.\x20Use:\x20','effort','--skills-path','message','isFinite','UIPATH_BASE_URL\x20is\x20unusable.\x20','restore',':\x20cannot\x20read\x20the\x20JSON\x20schema\x20(','sendMessage','attachments','alpha','\x0adelegate-cli\x20—\x20Delegate\x20agent\x20CLI\x0a\x0aUsage:\x0a\x20\x20delegate-cli\x20[flags]\x20[\x22<prompt>\x22]\x20\x20\x20\x20Start\x20a\x20conversation\x20in\x20a\x20terminal\x0a\x20\x20delegate-cli\x20--print\x20\x22<prompt>\x22\x20\x20\x20\x20\x20\x20Send\x20one\x20prompt,\x20print\x20the\x20response,\x20and\x20exit\x0a\x20\x20delegate-cli\x20[flags]\x20-\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Read\x20one\x20prompt\x20from\x20stdin\x20through\x20EOF,\x20then\x20exit\x0a\x20\x20delegate-cli\x20-p\x20\x22<prompt>\x22\x20--output-format\x20json|stream-json\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20One\x20turn\x20with\x20JSON-only\x20stdout;\x20exit\x201\x20on\x20error\x0a\x20\x20delegate-cli\x20--json-schema\x20FILE\x20\x22<prompt>\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20One\x20turn,\x20then\x20its\x20result\x20extracted\x20as\x20JSON\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20matching\x20the\x20schema\x20in\x20FILE\x20(printed\x20after\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20answer;\x20\x22structured\x22\x20in\x20the\x20JSON\x20result);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20exit\x201\x20when\x20the\x20extraction\x20fails\x0a\x20\x20delegate-cli\x20--attach\x20PATH\x20[--attach\x20PATH\x20...]\x20\x22<prompt>\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Send\x20files\x20or\x20folders\x20with\x20the\x20first\x20message\x0a\x20\x20delegate-cli\x20login\x20[--env\x20NAME\x20|\x20--url\x20BASE]\x20[--tenant\x20NAME]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20OAuth\x20browser\x20login\x20→\x20~/.aria/sdk-auth.json.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--env\x20or\x20--url\x20required\x20on\x20FIRST\x20login;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20afterwards\x20defaults\x20to\x20the\x20saved\x20login\x27s\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20deployment.\x20--tenant\x20picks\x20a\x20tenant\x20by\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20name;\x20without\x20it\x20a\x20re-login\x20keeps\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20saved\x20tenant\x0a\x20\x20delegate-cli\x20tenant\x20[NAME]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20the\x20organization\x27s\x20tenants,\x20or\x20switch\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20saved\x20login\x20to\x20NAME\x20(no\x20browser)\x0a\x20\x20delegate-cli\x20logout\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Remove\x20the\x20saved\x20CLI\x20login\x0a\x20\x20delegate-cli\x20whoami\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20the\x20current\x20login\x20(org,\x20tenant,\x20token\x20expiry)\x0a\x20\x20delegate-cli\x20models\x20[--env\x20NAME]\x20\x20\x20\x20\x20List\x20available\x20LLM\x20models\x20for\x20the\x20current\x20tenant,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20with\x20any\x20BYO\x20configuration\x20warning\x20per\x20model\x0a\x20\x20delegate-cli\x20sessions\x20[list]\x20[--page\x20N]\x20[--limit\x20N]\x20[--include-subagents]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20your\x20backend\x20chat\x20sessions,\x20most\x20recently\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20active\x20first\x20(resume\x20one\x20with\x20--session\x20ID)\x0a\x20\x20delegate-cli\x20sessions\x20show|delete\x20ID\x20Show\x20one\x20session\x27s\x20title\x20and\x20owner,\x20or\x20delete\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20it\x20with\x20its\x20messages\x20and\x20sub-agents\x20(no\x20prompt)\x0a\x20\x20delegate-cli\x20sessions\x20rename\x20ID\x20TITLE\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Rename\x20a\x20session\x20(1-500\x20characters)\x0a\x20\x20delegate-cli\x20sessions\x20fork\x20ID\x20[MESSAGE]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Copy\x20session\x20ID\x20into\x20a\x20new\x20session,\x20up\x20to\x20and\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20including\x20message\x20MESSAGE\x20(default:\x20all\x20of\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20it);\x20continue\x20it\x20with\x20--session\x20NEW_ID\x0a\x20\x20delegate-cli\x20sessions\x20cancel\x20ID\x20--turn\x20TURN\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Cancel\x20turn\x20TURN\x20running\x20on\x20session\x20ID\x20in\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20another\x20process;\x20exits\x201\x20when\x20no\x20such\x20turn\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20is\x20in\x20progress\x0a\x20\x20delegate-cli\x20check\x20[--env\x20NAME]\x20[--headless]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Verify\x20auth,\x20backend\x20readiness,\x20backend\x20and\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20interop\x20without\x20sending\x20a\x20prompt;\x20exits\x201\x20when\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20any\x20check\x20fails\x0a\x20\x20delegate-cli\x20usage\x20[--session\x20ID]\x20\x20\x20\x20Quota\x20and\x20spend:\x20licensing\x20quota,\x20monthly\x20spend\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20and\x20cap,\x20Cartographer\x20allowance\x0a\x20\x20delegate-cli\x20usage\x20activity|daily\x20[--days\x20N]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Activity\x20totals,\x20or\x20per-day\x20usage,\x20over\x20the\x20last\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20N\x20days\x20(1-365,\x20default\x2030)\x0a\x20\x20delegate-cli\x20evaluate|rerank|verify\x20FILE|-\x20[--model\x20ID]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Stateless\x20typed\x20judgments:\x20send\x20the\x20JSON\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20request\x20in\x20FILE\x20(or\x20stdin\x20with\x20-)\x20to\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20/v1/completions/<command>\x20and\x20print\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20answers;\x20--model\x20overrides\x20its\x20\x22model\x22.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Exits\x201\x20when\x20the\x20backend\x20rejects\x20it\x0a\x20\x20delegate-cli\x20complete\x20--json-schema\x20FILE\x20[--model\x20ID]\x20[--session\x20ID]\x20\x22<prompt>\x22|-\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20One\x20structured\x20completion,\x20no\x20agent\x20turn:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20print\x20the\x20JSON\x20object\x20matching\x20the\x20schema\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20in\x20FILE\x20(--output-format\x20json\x20prints\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{structured,\x20usage});\x20--session\x20adds\x20that\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20session\x27s\x20history\x20as\x20context.\x20Exits\x201\x20when\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20output\x20fails\x20the\x20schema\x20(422)\x20or\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20backend\x20rejects\x20the\x20request\x0a\x20\x20delegate-cli\x20transcribe\x20FILE|-\x20\x20\x20\x20\x20\x20\x20Speech-to-text:\x20print\x20the\x20text\x20of\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20audio\x20in\x20FILE,\x20or\x20on\x20stdin\x20with\x20-.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20mp3,\x20mp4,\x20mpeg,\x20mpga,\x20m4a,\x20wav\x20or\x20webm,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20up\x20to\x2014\x20MB.\x20Exits\x202\x20when\x20the\x20audio\x20is\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20refused\x20locally,\x201\x20when\x20the\x20backend\x20rejects\x20it\x0a\x20\x20delegate-cli\x20org-users\x20QUERY\x20\x20\x20\x20\x20\x20\x20\x20\x20Search\x20your\x20organization\x27s\x20users\x20by\x20name\x20or\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20email\x20prefix\x20(2-100\x20characters)\x0a\x20\x20delegate-cli\x20delegations\x20create\x20--session\x20ID\x20[--to\x20WHO]\x20[--summary\x20TEXT]\x20\x22<task>\x22|-\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Hand\x20a\x20task\x20from\x20session\x20ID\x20to\x20a\x20colleague\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(WHO:\x20an\x20email,\x20or\x20a\x20name\x20matching\x20one\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20person);\x20without\x20--to,\x20print\x20a\x20link\x20anyone\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20in\x20the\x20organization\x20can\x20claim\x0a\x20\x20delegate-cli\x20delegations\x20pending\x20SESSION\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Answers\x20to\x20delegations\x20from\x20SESSION\x20that\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20await\x20acceptance\x20(poll\x20this)\x0a\x20\x20delegate-cli\x20delegations\x20accept|dismiss|cancel|delete\x20ID\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Take\x20an\x20answer\x20into\x20its\x20session,\x20drop\x20it,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20withdraw\x20a\x20live\x20delegation,\x20or\x20delete\x20it\x0a\x20\x20delegate-cli\x20delegations\x20list\x20PROJECT\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Every\x20delegation\x20targeting\x20a\x20backend\x20project\x0a\x20\x20delegate-cli\x20delegations\x20show|claim\x20ID|LINK\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Read\x20a\x20delegation\x20assigned\x20to\x20you\x20(or\x20a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20delegate://delegation/…\x20link),\x20or\x20claim\x20it:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20prints\x20the\x20session\x20to\x20work\x20it\x20in\x0a\x20\x20delegate-cli\x20delegations\x20complete\x20ID\x20\x22<answer>\x22|-\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Send\x20the\x20answer\x20to\x20a\x20delegation\x20you\x20claimed\x0a\x20\x20delegate-cli\x20host\x20[flags]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Run\x20this\x20PC\x20as\x20a\x20remote\x20worker\x20until\x20Ctrl+C\x0a\x20\x20delegate-cli\x20host\x20install\x20[flags]\x20\x20\x20\x20Auto-start\x20the\x20host\x20at\x20login\x20(macOS\x20LaunchAgent\x20/\x20Windows\x20Scheduled\x20Task)\x0a\x20\x20delegate-cli\x20host\x20uninstall\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Remove\x20auto-start\x0a\x20\x20delegate-cli\x20host\x20status\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20auto-start\x20state\x0a\x20\x20delegate-cli\x20--cleanup\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Stop\x20running\x20interop\x0a\x0aFlags:\x0a\x20\x20-p,\x20--print\x20\x20\x20\x20\x20\x20\x20Run\x20one\x20turn\x20and\x20exit,\x20including\x20any\x20tool\x20execution.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Automatic\x20when\x20stdin\x20or\x20stdout\x20is\x20not\x20a\x20terminal,\x20or\x20with\x20-\x0a\x20\x20--env\x20NAME\x20\x20\x20\x20\x20\x20\x20\x20alpha\x20|\x20staging\x20|\x20production\x20|\x20localhost\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Composes\x20backend\x20URL\x20from\x20saved\x20auth\x20(org/tenant\x20slugs).\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Omitted\x20→\x20the\x20deployment\x20you\x20logged\x20into\x20(delegate-cli\x20login).\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20localhost\x20→\x20http://localhost:5002.\x20No\x20saved\x20login\x20and\x20no\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--env/--backend/BACKEND_URL\x20is\x20an\x20error\x20—\x20never\x20a\x20guess.\x0a\x20\x20--url\x20BASE\x20\x20\x20\x20\x20\x20\x20\x20(login)\x20Base\x20URL\x20of\x20a\x20deployment\x20that\x20is\x20not\x20a\x20named\x20cloud\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20—\x20Automation\x20Suite,\x20Dedicated,\x20Public\x20Sector.\x20Accepts\x20a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20tenant\x20path\x20or\x20a\x20trailing\x20/identity_\x20and\x20reduces\x20it\x20to\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20origin.\x20Mutually\x20exclusive\x20with\x20--env;\x20also\x20settable\x20via\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20UIPATH_BASE_URL.\x20Alias:\x20--authority.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Automation\x20Suite\x20needs\x2026.10+\x20with\x20the\x20Delegate\x20service;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20the\x20deployment\x20rejects\x20the\x20built-in\x20client,\x20register\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20your\x20own\x20—\x20see\x20UIPATH_CLIENT_ID\x20in\x20the\x20README\x0a\x20\x20--skip-env-check\x20\x20(login)\x20Do\x20not\x20check\x20the\x20deployment\x20before\x20signing\x20in.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Escape\x20hatch\x20for\x20a\x20deployment\x20that\x20hides\x20its\x20OIDC\x20discovery\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20document\x20or\x20serves\x20Identity\x20from\x20another\x20origin;\x20it\x20also\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20gives\x20up\x20the\x20diagnosis\x20when\x20something\x20is\x20really\x20wrong\x0a\x20\x20--backend\x20URL\x20\x20\x20\x20\x20Full\x20backend\x20URL\x20—\x20escape\x20hatch\x20overrides\x20--env\x0a\x20\x20--tenant\x20NAME\x20\x20\x20\x20\x20(login)\x20Tenant\x20to\x20sign\x20into,\x20by\x20name\x20(case-insensitive).\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default:\x20the\x20saved\x20login\x27s\x20tenant\x20on\x20that\x20cloud,\x20else\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20org\x27s\x20first\x20tenant.\x20Later:\x20delegate-cli\x20tenant\x20<name>\x0a\x20\x20--model\x20NAME\x20\x20\x20\x20\x20\x20LLM\x20model\x20id\x20(e.g.\x20claude_sonnet_5_5,\x20kimi_k3).\x20Checked\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20against\x20the\x20tenant\x27s\x20catalog\x20(delegate-cli\x20models)\x20before\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20run\x20starts;\x20an\x20unknown\x20id\x20fails\x20and\x20lists\x20the\x20valid\x20ones.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default:\x20gpt_5_6_luna.\x20Also\x20settable\x20via\x20MODEL\x20env\x20var.\x0a\x20\x20--keep-alive\x20\x20\x20\x20\x20\x20Reuse/leave\x20interop\x20running\x20across\x20invocations\x0a\x20\x20--headless\x20\x20\x20\x20\x20\x20\x20\x20Skip\x20interop\x20(text-only\x20prompts)\x0a\x20\x20--no-computer-use\x20Keep\x20interop\x20—\x20file,\x20Office,\x20PDF\x20and\x20shell\x20tools\x20keep\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20working\x20—\x20but\x20drop\x20the\x20screen:\x20no\x20screenshots,\x20no\x20window\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20list,\x20no\x20UI-automation\x20tools.\x20Cuts\x20image\x20tokens\x20and\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20per-turn\x20screen\x20capture,\x20and\x20stops\x20desktop\x20window\x20titles\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20leaving\x20the\x20machine.\x20Use\x20for\x20document\x20and\x20file\x20work.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--headless\x20implies\x20this\x20and\x20turns\x20interop\x20off\x20as\x20well\x0a\x20\x20--no-connections\x20\x20Disable\x20orchestrator\x20ConnectionService\x20(silences\x20404\x20warnings)\x0a\x20\x20--no-security\x20\x20\x20\x20\x20Disable\x20tool\x20security\x20wrapper\x20(use\x20only\x20for\x20debugging)\x0a\x20\x20--no-memory\x20\x20\x20\x20\x20\x20\x20Do\x20not\x20send\x20the\x20Delegate\x20app\x27s\x20local\x20long-term\x20memories\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20with\x20each\x20turn,\x20and\x20do\x20not\x20ask\x20the\x20model\x20to\x20save\x20new\x20ones\x0a\x20\x20--task-automation\x20Record\x20every\x20UI\x20action\x20of\x20the\x20run,\x20with\x20the\x20selector\x20of\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20element\x20it\x20acted\x20on,\x20to\x20<working-dir>/captures/<session>/\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(~/.aria-sdk\x20without\x20--working-dir),\x20so\x20you\x20can\x20then\x20ask\x20for\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20task\x20as\x20a\x20UiPath\x20coded\x20workflow\x20(uipath-taskautomation\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20skill).\x20The\x20log\x20holds\x20on-screen\x20text\x20and\x20your\x20requests;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20typed\x20values\x20are\x20masked.\x20Needs\x20computer\x20use.\x20Ignored\x20with\x20a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20warning\x20where\x20the\x20deployment\x20does\x20not\x20offer\x20it\x20yet\x0a\x20\x20--attach\x20PATH\x20\x20\x20\x20\x20File\x20or\x20folder\x20sent\x20with\x20the\x20first\x20message\x20(repeatable),\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20as\x20the\x20Delegate\x20app\x20sends\x20attached\x20files:\x20images\x20inline,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20PDFs\x20and\x20other\x20documents\x20as\x20a\x20path\x20the\x20agent\x20reads,\x20text\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20inline\x20up\x20to\x2016,000\x20characters.\x2030\x20MiB\x20per\x20message\x20in\x20all;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20larger\x20files\x20go\x20as\x20a\x20path.\x20In\x20a\x20conversation,\x20later\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20messages\x20carry\x20none\x20of\x20their\x20own,\x20but\x20the\x20first\x20message\x27s\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20stay\x20in\x20context\x0a\x20\x20--preload-skill\x20NAME\x20\x20Preload\x20a\x20skill\x20into\x20the\x20session\x20(repeatable).\x20The\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20skill\x27s\x20content\x20is\x20attached\x20before\x20the\x20first\x20model\x20turn\x20—\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20same\x20mechanism\x20as\x20project\x20preloaded\x20skills\x20in\x20the\x20app\x0a\x20\x20--cartographer\x20\x20\x20\x20Cartographer\x20engagement\x20preset.\x20Equivalent\x20to\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--vertical\x20cartographer\x20--no-computer-use\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--preload-skill\x20business-analysis\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--preload-skill\x20project-task-list\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--preload-skill\x20knowledge-base\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--preload-skill\x20source-coverage\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--preload-skill\x20note-taker.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Add\x20--project/--working-dir\x20for\x20where\x20the\x20files\x20live,\x20and\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20extra\x20--preload-skill\x20flags\x20for\x20more\x20skills\x20—\x20a\x20skill\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20preset\x20already\x20covers\x20is\x20not\x20preloaded\x20twice.\x20An\x20explicit\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--headless\x20still\x20wins\x20and\x20turns\x20interop\x20off;\x20another\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--vertical\x20ID\x20is\x20refused\x0a\x20\x20--project\x20ID\x20\x20\x20\x20\x20\x20Route\x20the\x20session\x27s\x20local\x20wiki\x20and\x20plans\x20to\x20a\x20project\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(<working-dir>/projects/<ID>/wiki).\x20Client-side\x20key\x20only\x0a\x20\x20--vertical\x20ID\x20\x20\x20\x20\x20Run\x20the\x20session\x20as\x20that\x20product\x27s\x20vertical,\x20as\x20its\x20tab\x20in\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20desktop\x20app\x20does,\x20with\x20no\x20desktop\x20app\x20installed:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20cartographer\x20brings\x20the\x20Map\x20of\x20Work\x20and,\x20without\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--preload-skill,\x20its\x20template\x27s\x20skills.\x20Default:\x20Delegate\x0a\x20\x20--working-dir\x20PATH\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Shell\x20cwd\x20for\x20the\x20agent\x20and\x20root\x20for\x20SDK-local\x20state.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Relative\x20paths\x20resolve\x20against\x20the\x20current\x20directory;\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20directory\x20is\x20created\x20if\x20missing\x0a\x20\x20--skills-path\x20PATH\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Folder\x20of\x20custom\x20skills,\x20loaded\x20on\x20top\x20of\x20the\x20skills\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20package\x20ships;\x20wins\x20on\x20a\x20name\x20clash\x20(also:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20DELEGATE_BUNDLED_SKILLS_PATH)\x0a\x20\x20--effort\x20TIER\x20\x20\x20\x20\x20Reasoning\x20effort:\x20low\x20|\x20medium\x20|\x20high\x20|\x20xhigh\x20|\x20max.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default:\x20the\x20model\x27s\x20recommended\x20tier\x0a\x20\x20--session\x20ID\x20\x20\x20\x20\x20\x20Continue\x20an\x20existing\x20backend\x20session\x20(an\x20unknown\x20id\x20exits\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x201;\x20the\x20backend\x20assigns\x20new\x20ids).\x20For\x20complete:\x20the\x20session\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20whose\x20history\x20is\x20the\x20context\x0a\x20\x20--json-schema\x20FILE\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20JSON\x20schema\x20the\x20structured\x20answer\x20must\x20match\x20(complete,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20and\x20prompts:\x20implies\x20--print)\x0a\x20\x20--runner-url\x20URL\x20\x20(host)\x20Runner\x20worker\x20WS\x20URL.\x20Required;\x20or\x20CONTROL_PLANE_WS_URL\x20env\x0a\x20\x20--interop\x20PATH\x20\x20\x20\x20(host)\x20Interop\x20binary\x20path;\x20or\x20INTEROP_EXECUTABLE_PATH\x20env.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Absent\x20→\x20registration/discovery\x20only,\x20tool\x20execution\x20disabled\x0a\x20\x20--worker-id\x20ID\x20\x20\x20\x20(host)\x20Stable\x20worker\x20identity;\x20or\x20WORKER_ID\x20env.\x20Default:\x20hostname\x0a\x20\x20--page\x20N\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(sessions)\x20Page\x20to\x20show,\x20from\x201.\x20Default:\x201\x0a\x20\x20--limit\x20N\x20\x20\x20\x20\x20\x20\x20\x20\x20(sessions)\x20Rows\x20per\x20page,\x201-100.\x20Default:\x2030\x0a\x20\x20--include-subagents\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(sessions)\x20Also\x20list\x20sub-agent\x20sessions,\x20hidden\x20by\x20default\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20as\x20in\x20the\x20desktop\x20app\x27s\x20history\x0a\x20\x20--to\x20WHO\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(delegations\x20create)\x20Assign\x20to\x20this\x20person:\x20an\x20email,\x20or\x20a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20name\x20that\x20matches\x20exactly\x20one\x20colleague\x20(see\x20org-users)\x0a\x20\x20--summary\x20TEXT\x20\x20\x20\x20(delegations\x20create)\x20The\x20briefing\x20the\x20person\x20starts\x20from.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default:\x20empty,\x20for\x20a\x20task\x20that\x20stands\x20on\x20its\x20own\x0a\x20\x20--output-format\x20FMT\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20text\x20(default)\x20|\x20json\x20|\x20stream-json.\x20json\x20prints\x20one\x20result\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20object\x20on\x20exit;\x20stream-json\x20prints\x20every\x20agent\x20event\x20as\x20one\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20JSON\x20line,\x20then\x20the\x20result.\x20Both\x20keep\x20stdout\x20JSON-only\x20(logs,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20progress\x20and\x20the\x20session\x20id\x20go\x20to\x20stderr),\x20imply\x20--print,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20and\x20exit\x201\x20when\x20the\x20turn\x20ends\x20in\x20error.\x20Also\x20honoured\x20by\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20every\x20subcommand\x20that\x20prints\x20a\x20result\x20(all\x20but\x20login,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20logout,\x20tenant\x20and\x20host)\x0a\x20\x20--input-format\x20FMT\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20text\x20(default)\x20|\x20stream-json.\x20stream-json\x20reads\x20one\x20JSON\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20user\x20message\x20per\x20line\x20on\x20stdin\x20while\x20the\x20turn\x20runs:\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20first\x20is\x20the\x20prompt\x20(give\x20none\x20as\x20an\x20argument),\x20each\x20later\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20one\x20steers\x20the\x20turn\x20in\x20flight.\x20Needs\x20--output-format\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20stream-json\x0a\x20\x20--replay-user-messages\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(--input-format\x20stream-json)\x20Echo\x20each\x20steering\x20message\x20on\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20stdout\x20(isReplay:\x20true,\x20same\x20uuid)\x20once\x20the\x20agent\x20takes\x20it\x0a\x20\x20-q,\x20--quiet\x20\x20\x20\x20\x20\x20\x20Suppress\x20🤔\x20thinking\x20output\x20to\x20stderr\x0a\x20\x20--verbose\x20\x20\x20\x20\x20\x20\x20\x20\x20Surface\x20the\x20SDK\x27s\x20and\x20the\x20framework\x27s\x20own\x20logs.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Diagnostics\x20only,\x20on\x20stdout;\x20independent\x20of\x20-q\x0a\x20\x20-h,\x20--help\x20\x20\x20\x20\x20\x20\x20\x20Show\x20this\x20help\x0a\x20\x20-v,\x20--version\x20\x20\x20\x20\x20Print\x20the\x20installed\x20CLI\x20version\x0a\x0aConversation:\x20Enter\x20sends\x20a\x20message;\x20/exit\x20or\x20EOF\x20exits;\x20Ctrl+C\x20stops\x20and\x20exits.\x0a\x20\x20Ctrl+C\x20during\x20a\x20turn\x20cancels\x20it\x20on\x20the\x20backend\x20too;\x20a\x20second\x20Ctrl+C\x20force-exits.\x0a\x20\x20An\x20optional\x20initial\x20prompt\x20is\x20followed\x20by\x20more\x20input.\x20The\x20session\x20ID\x20is\x20printed\x0a\x20\x20to\x20stderr;\x20resume\x20later\x20with\x20--session\x20ID.\x20Redirected\x20input\x20is\x20one\x20prompt.\x0aAuth:\x20prompts\x20auto-retry\x20on\x20401\x20by\x20opening\x20the\x20browser\x20to\x20re-login\x20(TTY\x20only),\x0a\x20\x20preserving\x20the\x20active\x20session.\x0a','lockReason','\x20PU','a\x20briefing\x20text','replace','No\x20CLI\x20login\x20found.\x20Note:\x20the\x20CLI\x20is\x20currently\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20','STATUS','score\x20','date','Session\x20','--limit','--worker-id','):\x0a\x0a','noSecurity','510wHPATp','--authority','existsSync','min','.\x20Share:\x20','index','\x20needs\x20a\x20JSON\x20request:\x20delegate-cli\x20','--verbose',']\x20Backend\x20URL:\x20','\x0a🤔\x20','rerank','\x20applies\x20to\x20prompts\x20and\x20to\x20these\x20commands\x20only:\x20','package.json','\x20(cancel\x20with:\x20delegate-cli\x20sessions\x20cancel\x20','runnerUrl','No\x20CLI\x20login\x20found\x20—\x20nothing\x20to\x20remove.','outputFormat','turn_start','daily_usage','delegations','\x0aUse\x20with:\x20delegate-cli\x20--model\x20<id>\x20\x22<prompt>\x22\x0a','probability','delegations\x20cancel\x20<delegation-id>','\x20<file.json>,\x20or\x20-\x20to\x20read\x20stdin.','--tenant\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Switch\x20tenants\x20with:\x20delegate-cli\x20tenant\x20<name>','alreadyCompleted','.\x20Use\x20','delete','\x27\x20cannot\x20be\x20read:\x20','locked','onEvent','file','cartographer','displayName','intro','title','A\x20steering\x20message\x20was\x20not\x20sent:\x20','\x20(current)','an\x20input\x20line\x20is\x20not\x20JSON','user','turnId','destroy','isTTY','--version','\x20|\x20','string','\x20\x20TASK\x0a','complete\x20needs\x20--json-schema\x20<file>:\x20delegate-cli\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22.','ASSIGNEE','Cancel\x20requested\x20for\x20turn\x20','2507652PIXcJT','Accepted','interopPath','next','models_breakdown','sourceUserEmail','From\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','a\x20vertical\x20id','parse','input','\x20PU\x20used','logout','fork','length','bucket','isDesktopFallback','delegations\x20dismiss\x20<delegation-id>','low','removeEventListener','a\x20colleague','model','concat','Enter\x20a\x20number\x20','organizationId','write','\x0aAvailable\x20models\x20(','multiSelect','tool','keepAlive','check','Spending:\x20\x20\x20\x20\x20$','response','No\x20sessions\x20on\x20page\x20','confidence','tenantName','--output-format\x20','page','once','all','\x20in\x20progress\x20on\x20session\x20','session_start','type','verdict','delegateTo','rejection','Source:\x20\x20\x20\x20\x20\x20\x20','done','thinking','userId','trim','Invalid\x20--env:\x20','--tenant','options','a\x20deployment\x20URL,\x20e.g.\x20https://automationsuite.contoso.com','toFixed','now','rename','--env\x20localhost\x20has\x20no\x20OAuth\x20flow;\x20pick\x20alpha,\x20staging,\x20or\x20production.','byoWarning','headless','label','then','every',')\x20—\x20saved\x20to\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).','assignedUser','pendingResults','--replay-user-messages','Owner\x20\x20\x20\x20\x20\x20\x20\x20\x20',',\x20whose\x20tenant\x20is\x20chosen\x20in\x20the\x20app.\x20Run\x20`delegate-cli\x20login\x20--env\x20<env>`\x20for\x20a\x20CLI\x20login\x20of\x20your\x20own.','from','No\x20turn\x20','monthly_spend_usd','dismiss','\x20of\x20session\x20','stderr','workerId','Work\x20on\x20it\x20with:\x20delegate-cli\x20--session\x20','Forked\x20','origin','name','Invalid\x20--project:\x20\x22','a\x20JSON\x20schema\x20file','\x20(stdin\x20was\x20empty)','--page','\x20—\x20sign\x20out\x20in\x20the\x20Delegate\x20app\x20to\x20clear\x20that.','--session','rubric_version','\x20(type\x20your\x20own)','Cost:\x20\x20\x20$','\x0aStopping…\x20(Ctrl+C\x20again\x20to\x20force\x20exit)\x0a','total_sessions','create','delegations\x20claim\x20<delegation-id|delegate://delegation/…>','alreadyAccepted','Pass\x20either\x20--env\x20(a\x20named\x20cloud)\x20or\x20--url\x20(any\x20other\x20deployment),\x20not\x20both.','\x20prompt,\x20','UPDATED','end','\x20delegation\x20','isArray','inputFormat','pct_used','UiPath\x20Cloud','--model','content','waitForIdle','Already\x20answered','\x20\x20\x20\x20BYO\x20warning:\x20',':\x20bucket\x20number\x20(Enter\x20to\x20leave\x20out):\x20','\x20completion','an\x20input\x20line\x20has\x20type\x20','Base\x20URL:\x20\x20\x20\x20\x20','return','padEnd','\x20token\x20units)','probability\x20','resume','host','taskAutomation','Usage:\x20delegate-cli\x20sessions\x20','--quiet','result','delegations\x20create\x20--session\x20<id>\x20[--to\x20<email|name>]\x20[--summary\x20<text>]\x20\x22<task>\x22|-','a\x20directory\x20path','exitCode','Numbers,\x20separated\x20by\x20commas\x20(Enter\x20to\x20skip):\x20','a\x20file\x20path','unknown','Unknown\x20delegations\x20action:\x20','\x20\x22<answer>\x22\x0a','Usage:\x20delegate-cli\x20','Organization:\x20',':\x20cannot\x20read\x20the\x20request\x20(','Invalid\x20--input-format:\x20','settle','from\x20','\x20tokens\x0a','Organization\x20\x20','\x20\x20TITLE\x0a','\x20\x22<prompt>\x22\x0a','findLast','header','choice\x20','transcribe','expiresAt','isInteger','Tenant\x20not\x20switched:\x20could\x20not\x20write\x20','.\x20Use\x20`delegate-cli\x20usage`,\x20`usage\x20activity`\x20or\x20`usage\x20daily`.','--working-dir','delegations\x20complete\x20<delegation-id>\x20\x22<answer>\x22|-','shift','task','--replay-user-messages\x20needs\x20--input-format\x20stream-json.','Unknown\x20sessions\x20action:\x20','delegation','utf-8','AUTH_TOKEN_FILE\x20\x27','Structured\x20output\x20failed:\x20','list','rmSync','No\x20one\x20matches\x20\x22','stop','noConnections','tenant','Already\x20accepted','exit','refused','%\x20of\x20','buckets','prompt','finish','slice','an\x20effort\x20tier','auth','\x20(Enter\x20to\x20skip):\x20','tool_call','--session\x20applies\x20to\x20the\x20`delegate-cli\x20usage`\x20summary\x20only.','Tenant:\x20','Tokens:\x20','Auth\x20comes\x20from\x20AUTH_TOKEN/TENANT_ID/ORG_ID\x20—\x20set\x20TENANT_ID\x20and\x20TENANT_SLUG\x20to\x20change\x20the\x20tenant.','Cartographer:\x20',',\x20got\x20','ID\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','--task-automation','sourceTitle','login','round','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.','\x20to\x20','models','argv','contextSummary','[saved\x20login]\x20Backend\x20URL:\x20','staging','\x20cap','accessToken','\x0a⚠️\x20\x20Auth\x20expired.\x20Opening\x20browser\x20to\x20re-login…\x0a','pending','skip','Deleted\x20session\x20','cleanup','code','\x20from\x20','--keep-alive','a\x20format\x20(','signal','bundledSkillsPath','steer','object','tokenExpiresAt','toolName','bind','--days\x20applies\x20to\x20`delegate-cli\x20usage\x20activity|daily`;\x20the\x20summary\x20covers\x20the\x20current\x20month.','status','\x20not\x20found.','completion_tokens','an\x20input\x20line\x20has\x20an\x20empty\x20message','\x20requires\x20','toISOString','usage','--runner-url','\x20active\x20days','off','hide','aborted','deleted','a\x20turn\x20id','--help','--vertical','Enter\x20one\x20number\x20from\x201\x20to\x20','\x20\x20(input\x20#','--attach','unknown\x20slug','results','activity','high','sessionId','days','score','Session:\x20','auth.json','error','Token:\x20\x20\x20\x20\x20\x20\x20\x20expires\x20','noComputerUse','--project','text','evaluate','quiet','uuid','backendUrl','max','--effort','complete\x20needs\x20a\x20prompt:\x20delegate-cli\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22,\x20or\x20-\x20to\x20read\x20stdin.','Created\x20delegation\x20','301715rwwIns','\x20min)','Something\x20else','noMemory','includes','Interop\x20stopped\x20(if\x20it\x20was\x20running).','verify','optional','\x20this\x20month','stream-json','stack','\x20sessions\x20on\x20','preloadSkills','env','Session\x20\x20\x20\x20\x20\x20\x20','Deployment:\x20\x20\x20','push','active_days','\x20(estimated\x20$','2444MrpUkj','stdin','Claimed\x20from\x20delegation\x20','the\x20request','Usage:\x20delegate-cli\x20sessions\x20fork\x20<id>\x20[<message-id>]','Enter\x20numbers\x20from\x201\x20to\x20','Removed\x20','\x20or\x20your\x20own\x20answer','lastType','getSessionId','The\x20steering\x20message\x20was\x20not\x20answered:\x20its\x20turn\x20did\x20not\x20run\x20or\x20added\x20no\x20reply.','16779HFakHR','\x20\x20\x20\x20Not\x20available\x20on\x20this\x20plan','floor','resolve','join','--turn\x20applies\x20to\x20`delegate-cli\x20sessions\x20cancel`\x20only.','delegate-cli','choice','close','oneTurn','findIndex','🔧\x20','\x20<title>','orgLogicalName','Invalid\x20--output-format:\x20','isError','Token:\x20\x20\x20\x20\x20\x20\x20\x20expired\x20','stringify','\x20(in\x20','Delegated\x20','stdout','19kbYHBZ','cancel','answers','Missing\x20prompt.\x20Pass\x20it\x20as\x20an\x20argument,\x20pipe\x20it\x20via\x20stdin,\x20or\x20run\x20`delegate-cli\x20--help`.','session_consumed_pu','\x20must\x20be\x20a\x20JSON\x20object.','--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`delegate-cli\x20sessions`\x20only.','\x20PU\x20beyond\x20quota','fields','structuredError','1611401bwWKMg','a\x20project\x20id','line','9728RBfOAQ','startsWith','email','agent_thought','environment\x20variables\x20(AUTH_TOKEN/TENANT_ID/ORG_ID)','test','add','xhigh','kind','--attach\x20applies\x20to\x20prompts\x20only.',':\x20ignored\x0a','\x20into\x20','--days','vertical','value','numeric','--skip-env-check\x20applies\x20to\x20`delegate-cli\x20login`\x20only.','workingDirectory','medium','replayUserMessages','Could\x20not\x20check\x20BYO\x20model\x20warnings:\x20','limit','delegationId','\x20days.\x0a','forEach','entries','Use:\x20delegate-cli\x20delegations\x20'];_0x79d9=function(){return _0x1692ca;};return _0x79d9();}function yn(_0x3fd939){const _0x43a907=_0x553a75;let {licensing:_0x54d0d3,monthlySpending:_0x4eb98b,cartographerAllowance:_0x947605}=_0x3fd939,_0x1c38e9=[_0x54d0d3['limit_enabled']?'Licensing:\x20\x20\x20\x20'+_0x54d0d3[_0x43a907(0x1b9)][_0x43a907(0x189)](0x1)+_0x43a907(0x1fb)+(_0x54d0d3[_0x43a907(0x2d7)]??0x0)+_0x43a907(0x15d)+(_0x54d0d3[_0x43a907(0x2b0)]>0x0?',\x20'+_0x54d0d3[_0x43a907(0x2b0)]+_0x43a907(0x28c):'')+'\x20(resets\x20'+_0x54d0d3['period_end']+')':_0x43a907(0x304),_0x43a907(0x171)+_0x4eb98b[_0x43a907(0x19b)][_0x43a907(0x189)](0x2)+_0x43a907(0x25a)+(_0x4eb98b[_0x43a907(0x2d9)]&&_0x4eb98b[_0x43a907(0x2fc)]!==null?'\x20of\x20a\x20$'+_0x4eb98b[_0x43a907(0x2fc)][_0x43a907(0x189)](0x2)+_0x43a907(0x216):_0x43a907(0x306)),_0x43a907(0x208)+_0x947605['mode']+'\x20('+_0x947605['model_id']+')'];_0x54d0d3[_0x43a907(0x289)]!==null&&_0x54d0d3['session_consumed_pu']!==void 0x0&&_0x1c38e9['push']('Session:\x20\x20\x20\x20\x20\x20'+_0x54d0d3[_0x43a907(0x289)]+_0x43a907(0x32f)),process[_0x43a907(0x284)][_0x43a907(0x16b)](_0x1c38e9[_0x43a907(0x274)]('\x0a')+'\x0a');}function wn(_0x26d584){const _0x10db41=_0x553a75;let _0x2be5ba=['Last\x20'+_0x26d584[_0x10db41(0x30e)]+'\x20days:\x20'+_0x26d584[_0x10db41(0x1ae)]+_0x10db41(0x25d)+_0x26d584[_0x10db41(0x263)]+_0x10db41(0x231),_0x10db41(0x1ac)+_0x26d584['total_cost_usd']['toFixed'](0x2)+_0x10db41(0x264)+_0x26d584[_0x10db41(0x2b2)][_0x10db41(0x189)](0x2)+_0x10db41(0x21e)+_0x26d584['total_token_units']+_0x10db41(0x1c6),_0x10db41(0x206)+_0x26d584['total_prompt_tokens']+_0x10db41(0x1b3)+_0x26d584['total_completion_tokens']+_0x10db41(0x1c1)];for(let [_0x3312c1,_0x22239f]of Object[_0x10db41(0x2ab)](_0x26d584[_0x10db41(0x157)]))_0x2be5ba[_0x10db41(0x262)]('\x20\x20'+_0x3312c1+':\x20'+_0x22239f+'\x20token\x20units');process[_0x10db41(0x284)]['write'](_0x2be5ba[_0x10db41(0x274)]('\x0a')+'\x0a');}function kn(_0x26e6a1){const _0x481280=_0x553a75;if(_0x26e6a1[_0x481280(0x133)][_0x481280(0x160)]===0x0){process[_0x481280(0x284)]['write']('No\x20usage\x20in\x20the\x20last\x20'+_0x26e6a1[_0x481280(0x30e)]+_0x481280(0x2a9));return;}let _0x27ed2e=[_0x481280(0x319)];for(let _0x5d6f7d of _0x26e6a1[_0x481280(0x133)])_0x27ed2e[_0x481280(0x262)](_0x5d6f7d[_0x481280(0x335)]+'\x20\x20'+String(_0x5d6f7d[_0x481280(0x2e3)])[_0x481280(0x311)](0xb)+'\x20\x20'+String(_0x5d6f7d['prompt_tokens'])['padStart'](0xd)+'\x20\x20'+String(_0x5d6f7d[_0x481280(0x22b)])[_0x481280(0x311)](0x11));process['stdout'][_0x481280(0x16b)](_0x27ed2e[_0x481280(0x274)]('\x0a')+'\x0a');}async function bn(_0x49e0ee,_0x64a7a6){const _0x23e0ac=_0x553a75;let _0x11c3de=await Sn(_0x49e0ee[_0x23e0ac(0x1fd)],_0x64a7a6);_0x49e0ee[_0x23e0ac(0x167)]&&(_0x11c3de[_0x23e0ac(0x167)]=_0x49e0ee[_0x23e0ac(0x167)]);let {client:_0x19ea35}=await $(_0x49e0ee);try{_0x64a7a6===_0x23e0ac(0x24a)?m(_0x49e0ee,await _0x12f2ee(_0x19ea35,_0x11c3de,void 0x0),An):_0x64a7a6===_0x23e0ac(0x12b)?m(_0x49e0ee,await _0x5d552c(_0x19ea35,_0x11c3de,void 0x0),En):m(_0x49e0ee,await _0x11fa08(_0x19ea35,_0x11c3de,void 0x0),$n);}catch(_0x4fe790){if(!_0x4098bb(_0x4fe790))throw _0x4fe790;console[_0x23e0ac(0x245)](_0x4fe790['message']),process[_0x23e0ac(0x1f9)](0x1);}}async function Sn(_0x48fb8d,_0x1b9c7f){const _0x3266c2=_0x553a75;let _0x152f01;try{_0x152f01=_0x48fb8d&&_0x48fb8d!=='-'?_0x3c2bc9[_0x3266c2(0x2f5)](_0x5d5241[_0x3266c2(0x273)](_0x48fb8d),_0x3266c2(0x1ef)):await H(_0x48fb8d,process['stdin']);}catch(_0x4d98e9){console['error'](_0x1b9c7f+_0x3266c2(0x1d8)+_0x4d98e9[_0x3266c2(0x325)]+').'),process[_0x3266c2(0x1f9)](0x2);}return _0x152f01||(console['error'](_0x1b9c7f+_0x3266c2(0x127)+_0x1b9c7f+_0x3266c2(0x138)),process[_0x3266c2(0x1f9)](0x2)),De(_0x152f01,_0x1b9c7f,_0x3266c2(0x268));}function De(_0x7990b0,_0x353637,_0x6ffd76){const _0x2c0130=_0x553a75;let _0x2cd37e;try{_0x2cd37e=JSON[_0x2c0130(0x15b)](_0x7990b0);}catch(_0x1ae787){console[_0x2c0130(0x245)](_0x353637+':\x20'+_0x6ffd76+'\x20is\x20not\x20valid\x20JSON\x20('+_0x1ae787[_0x2c0130(0x325)]+').'),process[_0x2c0130(0x1f9)](0x2);}return(typeof _0x2cd37e!=_0x2c0130(0x224)||_0x2cd37e===null||Array[_0x2c0130(0x1b7)](_0x2cd37e))&&(console[_0x2c0130(0x245)](_0x353637+':\x20'+_0x6ffd76+_0x2c0130(0x28a)),process[_0x2c0130(0x1f9)](0x2)),_0x2cd37e;}function Ne(_0x1a51c3,_0x2dda0f){const _0x4c6ae7=_0x553a75;let _0x272d45;try{_0x272d45=_0x3c2bc9[_0x4c6ae7(0x2f5)](_0x5d5241[_0x4c6ae7(0x273)](_0x1a51c3),_0x4c6ae7(0x1ef));}catch(_0x443b14){console[_0x4c6ae7(0x245)](_0x2dda0f+_0x4c6ae7(0x329)+_0x443b14[_0x4c6ae7(0x325)]+').'),process[_0x4c6ae7(0x1f9)](0x2);}return De(_0x272d45,_0x2dda0f,'the\x20JSON\x20schema');}async function vn(_0x1fa670){const _0xd2162a=_0x553a75;_0x1fa670[_0xd2162a(0x308)]===void 0x0&&(console[_0xd2162a(0x245)](_0xd2162a(0x150)),process[_0xd2162a(0x1f9)](0x2));let _0x286010=Ne(_0x1fa670[_0xd2162a(0x308)],_0xd2162a(0x2d1)),_0x17f8dc=(await H(_0x1fa670[_0xd2162a(0x1fd)],process['stdin']))[_0xd2162a(0x184)]();_0x17f8dc||(console[_0xd2162a(0x245)](_0xd2162a(0x250)),process[_0xd2162a(0x1f9)](0x2));let {client:_0x256d3f}=await $(_0x1fa670);try{let _0x48c8d1=await _0x48601c(_0x256d3f,{'prompt':_0x17f8dc,'jsonSchema':_0x286010,'model':_0x1fa670[_0xd2162a(0x167)]||process.env.MODEL||_0x5d03bf,..._0x1fa670['sessionId']!==void 0x0&&{'sessionId':_0x1fa670[_0xd2162a(0x240)]}},void 0x0);m(_0x1fa670,_0x48c8d1,_0x2c165a=>{const _0x24cbab=_0xd2162a;process[_0x24cbab(0x284)]['write'](JSON['stringify'](_0x2c165a[_0x24cbab(0x2e8)],null,0x2)+'\x0a');});}catch(_0x340802){if(!_0xd4726a(_0x340802))throw _0x340802;console[_0xd2162a(0x245)](_0x340802['message']),process[_0xd2162a(0x1f9)](0x1);}}function Z(_0x471886){const _0x167485=_0x553a75;process[_0x167485(0x284)][_0x167485(0x16b)](_0x167485(0x2b1)+_0x471886[_0x167485(0x167)]+'\x20('+_0x471886['model_version']+_0x167485(0x2f1)+_0x471886['usage'][_0x167485(0x2b8)]+_0x167485(0x1dc));}function An(_0x475b86){const _0xa8e424=_0x553a75;Z(_0x475b86);for(let _0x53a652 of Object[_0xa8e424(0x2ce)](_0x475b86[_0xa8e424(0x287)])){let _0x1e1f6a=_0x475b86[_0xa8e424(0x287)][_0x53a652],_0x27fe30=_0x1e1f6a[_0xa8e424(0x17c)]===_0xa8e424(0x136)?_0xa8e424(0x1c7)+_0x1e1f6a[_0xa8e424(0x136)]['toFixed'](0x2):_0x1e1f6a[_0xa8e424(0x17c)]===_0xa8e424(0x277)?_0xa8e424(0x1e2)+_0x1e1f6a['choice']+'\x20(confidence\x20'+_0x1e1f6a[_0xa8e424(0x174)][_0xa8e424(0x189)](0x2)+')':_0xa8e424(0x334)+_0x1e1f6a[_0xa8e424(0x242)][_0xa8e424(0x189)](0x2)+'\x20(confidence\x20'+_0x1e1f6a[_0xa8e424(0x174)][_0xa8e424(0x189)](0x2)+')';process[_0xa8e424(0x284)][_0xa8e424(0x16b)]('\x20\x20'+_0x53a652+':\x20'+_0x27fe30+'\x0a');}}function En(_0xc4c362){const _0x17b105=_0x553a75;Z(_0xc4c362),_0xc4c362[_0x17b105(0x23d)]['forEach']((_0x5a53dd,_0x2f4a5a)=>{const _0x2dcd62=_0x17b105;process['stdout'][_0x2dcd62(0x16b)]('\x20\x20'+(_0x2f4a5a+0x1)+'.\x20'+_0x5a53dd['id']+'\x20\x20'+_0x5a53dd[_0x2dcd62(0x242)][_0x2dcd62(0x189)](0x3)+_0x2dcd62(0x23a)+_0x5a53dd[_0x2dcd62(0x126)]+')\x0a');});}function $n(_0x49d763){const _0x43052a=_0x553a75;Z(_0x49d763),process[_0x43052a(0x284)][_0x43052a(0x16b)]('Rubric\x20'+_0x49d763[_0x43052a(0x1aa)]+'\x0a');for(let _0x567af7 of _0x49d763[_0x43052a(0x23d)])process[_0x43052a(0x284)][_0x43052a(0x16b)]('\x20\x20'+_0x567af7['id']+':\x20'+_0x567af7[_0x43052a(0x17d)]+'\x20(confidence\x20'+_0x567af7['confidence'][_0x43052a(0x189)](0x2)+')\x0a');}async function xn(_0x2110a4){const _0x30845b=_0x553a75;let _0xca9842=_0x2110a4[_0x30845b(0x1fd)][_0x30845b(0x184)]();_0xca9842||(console[_0x30845b(0x245)](_0x30845b(0x2c0)),process['exit'](0x2));let {client:_0x347d57}=await $(_0x2110a4);try{let _0xef818d=_0xca9842==='-'?{'data':await In(process[_0x30845b(0x266)])}:_0xca9842;m(_0x2110a4,await _0x286dfc(_0x347d57,_0xef818d,void 0x0),_0x30ea88=>{const _0x4d8e1c=_0x30845b;process[_0x4d8e1c(0x284)][_0x4d8e1c(0x16b)](_0x30ea88['text']+'\x0a');});}catch(_0x5ba55c){if(_0xc56fc8(_0x5ba55c)&&(console[_0x30845b(0x245)](_0x5ba55c['message']),process[_0x30845b(0x1f9)](_0x5ba55c[_0x30845b(0x229)]===void 0x0?0x2:0x1)),typeof _0x5ba55c?.[_0x30845b(0x21d)]!=_0x30845b(0x14e))throw _0x5ba55c;console['error']('transcribe:\x20cannot\x20read\x20'+_0xca9842+'\x20('+_0x5ba55c[_0x30845b(0x325)]+').'),process[_0x30845b(0x1f9)](0x2);}}async function In(_0xa60815){const _0x348fb0=_0x553a75;let _0x3e7d36=[];for await(let _0x2d8208 of _0xa60815)_0x3e7d36[_0x348fb0(0x262)](Buffer['from'](_0x2d8208));return Buffer[_0x348fb0(0x168)](_0x3e7d36);}var he=[_0x553a75(0x1f2),_0x553a75(0x219),_0x553a75(0x2ec),'create','claim',_0x553a75(0x2d1),_0x553a75(0x2e6),_0x553a75(0x19c),'cancel','delete'],ye={'list':'delegations\x20list\x20<backend-project-id>','pending':'delegations\x20pending\x20<session-id>','show':_0x553a75(0x312),'create':_0x553a75(0x1ce),'claim':_0x553a75(0x1b0),'complete':_0x553a75(0x1e9),'accept':'delegations\x20accept\x20<delegation-id>','dismiss':_0x553a75(0x163),'cancel':_0x553a75(0x137),'delete':'delegations\x20delete\x20<delegation-id>'};async function Tn(_0x4c3b5d){const _0x419007=_0x553a75;let [_0x38235d='',_0x4821f1='',..._0x5bc602]=_0x4c3b5d['operands'];he[_0x419007(0x256)](_0x38235d)||(console[_0x419007(0x245)]((_0x38235d?_0x419007(0x1d4)+_0x38235d+'.\x20':'')+_0x419007(0x2ac)+he[_0x419007(0x274)]('\x20|\x20')+'.'),process[_0x419007(0x1f9)](0x2));let _0x50e102=_0x38235d;_0x50e102!=='create'&&(_0x4c3b5d['delegateTo']!==void 0x0||_0x4c3b5d[_0x419007(0x213)]!==void 0x0||_0x4c3b5d[_0x419007(0x240)]!==void 0x0)&&(console[_0x419007(0x245)]('--to,\x20--summary\x20and\x20--session\x20apply\x20to\x20`delegate-cli\x20delegations\x20create`\x20only.'),process[_0x419007(0x1f9)](0x2));let _0x4a3389=(_0x50e102==='create'?_0x4c3b5d['operands'][_0x419007(0x1ff)](0x1):_0x5bc602)['join']('\x20')['trim'](),_0x87635a=_0x50e102==='create'||_0x50e102===_0x419007(0x2d1);(_0x50e102!==_0x419007(0x1af)&&!_0x4821f1||(_0x87635a?!_0x4a3389:_0x4a3389)||_0x50e102===_0x419007(0x1af)&&!_0x4c3b5d[_0x419007(0x240)])&&(console[_0x419007(0x245)](_0x419007(0x1d6)+ye[_0x50e102]),process[_0x419007(0x1f9)](0x2));let _0xd03d25=_0x87635a&&_0x4a3389==='-'?(await H('-',process[_0x419007(0x266)]))[_0x419007(0x184)]():_0x4a3389;_0x87635a&&!_0xd03d25&&(console[_0x419007(0x245)](_0x419007(0x1d6)+ye[_0x50e102]+_0x419007(0x1a6)),process[_0x419007(0x1f9)](0x2));let {client:_0x13e359}=await $(_0x4c3b5d);try{await Un(_0x4c3b5d,_0x13e359,_0x50e102,_0x4821f1,_0xd03d25);}catch(_0x2ad8fa){if(!_0x231031(_0x2ad8fa))throw _0x2ad8fa;console[_0x419007(0x245)](_0x2ad8fa[_0x419007(0x325)]),process[_0x419007(0x1f9)](0x1);}}async function Un(_0x100b43,_0xa75bc8,_0x49b420,_0x2a9a47,_0x56f62c){const _0xbd05b5=_0x553a75;switch(_0x49b420){case _0xbd05b5(0x1f2):m(_0x100b43,await _0x3cf438(_0xa75bc8,_0x2a9a47),Dn);return;case _0xbd05b5(0x219):m(_0x100b43,await _0x4baf5c(_0xa75bc8,_0x2a9a47),_0x5ddab1=>{const _0x533a6e=_0xbd05b5;_0x5ddab1[_0x533a6e(0x1ee)]&&process[_0x533a6e(0x284)]['write'](_0x533a6e(0x267)+_0x5ddab1['delegation']['id']+'\x20('+_0x5ddab1['delegation']['status']+').\x0a'),_0x5ddab1[_0x533a6e(0x195)]['length']===0x0&&process[_0x533a6e(0x19e)][_0x533a6e(0x16b)]('No\x20answers\x20awaiting\x20acceptance.\x0a');for(let _0x187e2f of _0x5ddab1[_0x533a6e(0x195)])process['stdout'][_0x533a6e(0x16b)]('\x0a'+_0x187e2f['id']+'\x20\x20from\x20'+(_0x187e2f[_0x533a6e(0x301)]??_0x533a6e(0x166))+'\x20\x20'+(_0x187e2f[_0x533a6e(0x1eb)]??'')+'\x0a'+(_0x187e2f[_0x533a6e(0x1cd)]?.[_0x533a6e(0x1bc)]??'')+'\x0a');_0x5ddab1['pendingResults']['length']>0x0&&process[_0x533a6e(0x19e)][_0x533a6e(0x16b)]('\x0aAccept\x20one\x20with:\x20delegate-cli\x20delegations\x20accept\x20<id>\x0a');});return;case _0xbd05b5(0x2ec):m(_0x100b43,await _0x757e2b(_0xa75bc8,_0x2a9a47),we);return;case _0xbd05b5(0x1af):{let _0x2e7b6c=await _0x53b551(_0xa75bc8,{'sessionId':_0x100b43[_0xbd05b5(0x240)],'task':_0x56f62c,..._0x100b43[_0xbd05b5(0x213)]!==void 0x0&&{'contextSummary':_0x100b43[_0xbd05b5(0x213)]},..._0x100b43[_0xbd05b5(0x17e)]!==void 0x0&&{'recipient':_0x100b43[_0xbd05b5(0x17e)]}});m(_0x100b43,_0x2e7b6c,_0x2822f7=>{const _0xe35ec6=_0xbd05b5;_0x2822f7[_0xe35ec6(0x194)]?process[_0xe35ec6(0x284)][_0xe35ec6(0x16b)](_0xe35ec6(0x283)+_0x2822f7[_0xe35ec6(0x2a8)]+_0xe35ec6(0x210)+_0x2822f7[_0xe35ec6(0x194)][_0xe35ec6(0x142)]+'\x20<'+_0x2822f7[_0xe35ec6(0x194)][_0xe35ec6(0x294)]+'>.\x0a'):process[_0xe35ec6(0x284)][_0xe35ec6(0x16b)](_0xe35ec6(0x251)+_0x2822f7['delegationId']+_0xe35ec6(0x125)+_0x2822f7[_0xe35ec6(0x314)]+'\x0a');});return;}case _0xbd05b5(0x2e4):{let _0x5bd633=await _0x4f5aff(_0xa75bc8,_0x2a9a47);m(_0x100b43,_0x5bd633,_0x2db416=>{const _0x5b56ea=_0xbd05b5;we(_0x2db416),process[_0x5b56ea(0x284)][_0x5b56ea(0x16b)](_0x5b56ea(0x260)+_0x2db416[_0x5b56ea(0x240)]+'\x0a'),process['stderr'][_0x5b56ea(0x16b)](_0x5b56ea(0x1a0)+_0x2db416[_0x5b56ea(0x240)]+'\x20\x22<prompt>\x22\x0aAnswer\x20with:\x20delegate-cli\x20delegations\x20complete\x20'+_0x2db416[_0x5b56ea(0x2a8)]+_0x5b56ea(0x1d5));});return;}case _0xbd05b5(0x2d1):{let {alreadyCompleted:_0x218f79}=await _0x3fd9e9(_0xa75bc8,_0x2a9a47,{'content':_0x56f62c});m(_0x100b43,{'delegationId':_0x2a9a47,'alreadyCompleted':_0x218f79},_0xae3319=>{const _0x2c423a=_0xbd05b5;process[_0x2c423a(0x284)]['write']((_0xae3319[_0x2c423a(0x13a)]?_0x2c423a(0x1be):_0x2c423a(0x2e5))+_0x2c423a(0x1b6)+_0xae3319[_0x2c423a(0x2a8)]+'.\x0a');});return;}case _0xbd05b5(0x2e6):{let _0x346ad0=await _0x4f389f(_0xa75bc8,_0x2a9a47);m(_0x100b43,{'delegationId':_0x2a9a47,..._0x346ad0},_0x1f0404=>{const _0x44dab6=_0xbd05b5;process[_0x44dab6(0x284)][_0x44dab6(0x16b)]((_0x1f0404[_0x44dab6(0x1b1)]?_0x44dab6(0x1f8):_0x44dab6(0x154))+_0x44dab6(0x1b6)+_0x1f0404[_0x44dab6(0x2a8)]+'.\x0a');});return;}default:{let _0x4fc3c2={'dismiss':_0x298d8a,'cancel':_0x2d4231,'delete':_0x2b94a1}[_0x49b420];await _0x4fc3c2(_0xa75bc8,_0x2a9a47);let _0x1b0f5a={'dismiss':'dismissed','cancel':_0xbd05b5(0x2c4),'delete':_0xbd05b5(0x235)}[_0x49b420];m(_0x100b43,{'delegationId':_0x2a9a47,[_0x1b0f5a]:!0x0},()=>{const _0x15d129=_0xbd05b5;process[_0x15d129(0x284)][_0x15d129(0x16b)](''+_0x1b0f5a[0x0][_0x15d129(0x2b3)]()+_0x1b0f5a[_0x15d129(0x1ff)](0x1)+_0x15d129(0x1b6)+_0x2a9a47+'.\x0a');});}}}function Dn(_0x5c6314){const _0x28ff93=_0x553a75;if(_0x5c6314[_0x28ff93(0x160)]===0x0){process[_0x28ff93(0x19e)]['write']('No\x20delegations.\x0a');return;}process[_0x28ff93(0x284)][_0x28ff93(0x16b)]('ID'[_0x28ff93(0x1c5)](0x24)+'\x20\x20'+_0x28ff93(0x333)[_0x28ff93(0x1c5)](0x9)+'\x20\x20'+_0x28ff93(0x151)[_0x28ff93(0x1c5)](0x18)+_0x28ff93(0x14f));for(let _0x4912ea of _0x5c6314)process[_0x28ff93(0x284)][_0x28ff93(0x16b)](_0x4912ea['id'][_0x28ff93(0x1c5)](0x24)+'\x20\x20'+_0x4912ea[_0x28ff93(0x229)][_0x28ff93(0x1c5)](0x9)+'\x20\x20'+(_0x4912ea['assignedUserEmail']??'-')['padEnd'](0x18)+'\x20\x20'+(_0x4912ea[_0x28ff93(0x1eb)]??'')+'\x0a');}function we(_0x2f4dbc){const _0x4f971f=_0x553a75;process[_0x4f971f(0x284)][_0x4f971f(0x16b)](_0x4f971f(0x159)+(_0x2f4dbc[_0x4f971f(0x158)]??'-')+'\x0a'),_0x2f4dbc[_0x4f971f(0x20c)]&&process[_0x4f971f(0x284)]['write']('Session\x20\x20\x20\x20\x20\x20\x20'+_0x2f4dbc['sourceTitle']+'\x0a'),process[_0x4f971f(0x284)][_0x4f971f(0x16b)](_0x4f971f(0x2cd)+(_0x2f4dbc[_0x4f971f(0x1eb)]??'-')+'\x0a'),_0x2f4dbc[_0x4f971f(0x213)]&&process[_0x4f971f(0x284)]['write']('\x0a'+_0x2f4dbc[_0x4f971f(0x213)]+'\x0a\x0a');}async function Nn(_0x4f648f){const _0x334196=_0x553a75;_0x4f648f[_0x334196(0x1fd)]['trim']()||(console['error'](_0x334196(0x2b6)),process[_0x334196(0x1f9)](0x2));let {client:_0x25adbb}=await $(_0x4f648f),_0x427dc9;try{_0x427dc9=await _0x5ac997(_0x25adbb,_0x4f648f[_0x334196(0x1fd)]);}catch(_0x1ab2ac){if(!_0x231031(_0x1ab2ac))throw _0x1ab2ac;console[_0x334196(0x245)](_0x1ab2ac['message']),process[_0x334196(0x1f9)](0x1);}m(_0x4f648f,_0x427dc9,_0x535056=>{const _0x3046aa=_0x334196;_0x535056[_0x3046aa(0x160)]===0x0&&process[_0x3046aa(0x19e)]['write'](_0x3046aa(0x1f4)+_0x4f648f[_0x3046aa(0x1fd)][_0x3046aa(0x184)]()+'\x22.\x0a');for(let _0x1540de of _0x535056)process[_0x3046aa(0x284)]['write'](_0x1540de[_0x3046aa(0x294)][_0x3046aa(0x1c5)](0x20)+'\x20\x20'+_0x1540de[_0x3046aa(0x142)]+'\x0a');});}async function _n(_0xce542){const _0x46aa32=_0x553a75;_0xce542[_0x46aa32(0x25f)]==='localhost'&&(console['error'](_0x46aa32(0x18c)),process[_0x46aa32(0x1f9)](0x2));let _0x19f0b2=G(_0x44ab65()),_0x599770=_0xce542['skipEnvCheck'];if(_0xce542[_0x46aa32(0x25f)]){let _0x555dac=_0xce542[_0x46aa32(0x25f)];await _0x2a74e6({'env':_0x555dac,'tenant':_0xce542['tenant']??Q(_0x19f0b2,_0x274d03[_0x555dac]),'skipEnvCheck':_0x599770});return;}let _0x1a009d=_0xce542[_0x46aa32(0x309)]??Ue();if(_0x1a009d){await _0x2a74e6({'baseUrl':_0x1a009d,'tenant':_0xce542[_0x46aa32(0x1f7)]??Q(_0x19f0b2,_0x1a009d),'skipEnvCheck':_0x599770});return;}if(_0x19f0b2?.['baseUrl']){await _0x2a74e6({'baseUrl':_0x19f0b2['baseUrl'],'tenant':_0xce542[_0x46aa32(0x1f7)]??_0x19f0b2['tenantName'],'skipEnvCheck':_0x599770});return;}console[_0x46aa32(0x245)](_0x46aa32(0x2f3)),process['exit'](0x2);}function Q(_0x3082d3,_0x3501c1){const _0x131c4c=_0x553a75;return _0x3082d3?.[_0x131c4c(0x30b)]&&Rn(_0x3082d3[_0x131c4c(0x30b)],_0x3501c1)?_0x3082d3['tenantName']:void 0x0;}function Rn(_0x3cf43d,_0x169021){const _0x766700=_0x553a75;try{return new URL(_0x3cf43d)[_0x766700(0x1a2)]===new URL(_0x169021)['origin'];}catch{return!0x1;}}function _0x4788(_0x299a4f,_0x14aa20){_0x299a4f=_0x299a4f-0x121;const _0x79d91a=_0x79d9();let _0x478870=_0x79d91a[_0x299a4f];return _0x478870;}async function Pn(_0x296257){const _0x47d47b=_0x553a75;Y()&&(console[_0x47d47b(0x245)](_0x47d47b(0x207)),process[_0x47d47b(0x1f9)](0x2));let _0x14a015=await _0x1a6951();if(_0x14a015||(console[_0x47d47b(0x245)](Cn()),process[_0x47d47b(0x1f9)](0x2)),_0x296257['trim']()){let _0x41e837=await _0x471e12(_0x14a015,_0x296257);_0x4859eb(_0x41e837)||(console[_0x47d47b(0x245)](_0x47d47b(0x1e6)+_0x44ab65()+';\x20the\x20saved\x20login\x20still\x20uses\x20'+_0x14a015['tenantName']+'.'),process['exit'](0x1)),console[_0x47d47b(0x320)](_0x47d47b(0x205)+_0x41e837[_0x47d47b(0x175)]+'\x20('+_0x41e837['tenantId']+_0x47d47b(0x192)+_0x44ab65());return;}On(await _0x20841a(_0x14a015),_0x14a015);}function Cn(){const _0x2b51f0=_0x553a75;if(_0x3c2bc9[_0x2b51f0(0x123)](_0x44ab65()))return'The\x20saved\x20CLI\x20login\x20could\x20not\x20be\x20refreshed.\x20Run\x20`delegate-cli\x20login`\x20again.';let _0x403818=z();return G(_0x403818)?_0x2b51f0(0x315)+_0x403818+_0x2b51f0(0x198):'No\x20CLI\x20login\x20found.\x20Run\x20`delegate-cli\x20login\x20--env\x20<alpha|staging|production>`\x20first.';}function On(_0x48e7bf,_0x27d6dc){const _0x11f108=_0x553a75;let _0x5b4726=_0x48e7bf[_0x11f108(0x2af)](_0x42eb32=>_0x42eb32['id']===_0x27d6dc[_0x11f108(0x2c8)]?'*\x20'+_0x42eb32['name']+_0x11f108(0x146):'\x20\x20'+_0x42eb32['name']);process[_0x11f108(0x284)][_0x11f108(0x16b)](_0x11f108(0x2f8)+(_0x27d6dc[_0x11f108(0x27d)]??_0x27d6dc['organizationId'])+':\x0a'+_0x5b4726[_0x11f108(0x274)]('\x0a')+'\x0a'),_0x48e7bf[_0x11f108(0x160)]>0x1&&process[_0x11f108(0x284)][_0x11f108(0x16b)](_0x11f108(0x2c9));}function Ln(_0x168f34){const _0x576dd0=_0x553a75;return _0x168f34?.[_0x576dd0(0x172)]?.['status']===0x191||/401/['test'](String(_0x168f34?.[_0x576dd0(0x325)]??''));}var w={'lastType':null,'quiet':!0x1},_e=_0x42a85d=>{const _0x523f62=_0x553a75;switch(_0x42a85d[_0x523f62(0x17c)]){case _0x523f62(0x17b):_0x42a85d[_0x523f62(0x240)]&&_0x42a85d[_0x523f62(0x240)]!==w['sessionId']&&(process[_0x523f62(0x19e)][_0x523f62(0x16b)](_0x523f62(0x243)+_0x42a85d[_0x523f62(0x240)]+_0x523f62(0x30c)+_0x42a85d[_0x523f62(0x240)]+')\x0a'),w['sessionId']=_0x42a85d[_0x523f62(0x240)]);break;case _0x523f62(0x132):_0x42a85d[_0x523f62(0x149)]&&_0x42a85d[_0x523f62(0x149)]!==w[_0x523f62(0x149)]&&(w[_0x523f62(0x26d)]!==null&&process[_0x523f62(0x19e)][_0x523f62(0x16b)]('\x0a'),process[_0x523f62(0x19e)][_0x523f62(0x16b)]('Turn:\x20'+_0x42a85d[_0x523f62(0x149)]+_0x523f62(0x12e)+_0x42a85d[_0x523f62(0x240)]+'\x20--turn\x20'+_0x42a85d[_0x523f62(0x149)]+')\x0a'),w['turnId']=_0x42a85d['turnId'],w['lastType']=_0x523f62(0x132));break;case'thinking':_0x42a85d[_0x523f62(0x1bc)]&&!w[_0x523f62(0x24b)]&&(w['lastType']!==_0x523f62(0x182)&&process['stderr'][_0x523f62(0x16b)](_0x523f62(0x12a)),process[_0x523f62(0x19e)]['write'](_0x42a85d[_0x523f62(0x1bc)]),w[_0x523f62(0x26d)]=_0x523f62(0x182));break;case _0x523f62(0x203):w[_0x523f62(0x26d)]!==null&&process[_0x523f62(0x19e)][_0x523f62(0x16b)]('\x0a'),process['stderr'][_0x523f62(0x16b)](_0x523f62(0x27b)+(_0x42a85d[_0x523f62(0x226)]??_0x523f62(0x16e))+'\x0a'),w['lastType']=_0x523f62(0x203);break;case _0x523f62(0x325):_0x42a85d[_0x523f62(0x1bc)]&&(w[_0x523f62(0x26d)]!==_0x523f62(0x325)&&w['lastType']!==null&&process[_0x523f62(0x284)]['write']('\x0a'),process[_0x523f62(0x284)][_0x523f62(0x16b)](_0x42a85d[_0x523f62(0x1bc)]),w[_0x523f62(0x26d)]=_0x523f62(0x325));break;case _0x523f62(0x245):w['lastType']!==null&&process['stderr'][_0x523f62(0x16b)]('\x0a'),process[_0x523f62(0x19e)][_0x523f62(0x16b)]('✗\x20'+(_0x42a85d[_0x523f62(0x245)]??_0x523f62(0x245))+'\x0a'),w['lastType']=_0x523f62(0x245);break;case'done':(w[_0x523f62(0x26d)]===_0x523f62(0x325)||w[_0x523f62(0x26d)]===_0x523f62(0x182))&&process[_0x523f62(0x284)][_0x523f62(0x16b)]('\x0a'),process[_0x523f62(0x19e)][_0x523f62(0x16b)]('✓\x20Done\x0a'),w[_0x523f62(0x26d)]=_0x523f62(0x181);break;}};function ke(_0x4c2bb0,_0xb98ebc,_0x6f85f4,_0x29667f){const _0x1e2a34=_0x553a75;let _0x2e7403=_0x4c2bb0[_0x1e2a34(0x167)]||process.env.MODEL;return{'backendUrl':_0x6f85f4,'auth':_0xb98ebc,'enableComputerUse':!_0x4c2bb0[_0x1e2a34(0x18e)]&&!_0x4c2bb0['noComputerUse'],'autoSpawnInterop':!_0x4c2bb0[_0x1e2a34(0x18e)],'enableConnections':!_0x4c2bb0['noConnections'],'enableSecurity':!_0x4c2bb0[_0x1e2a34(0x33a)],'keepInteropAlive':_0x4c2bb0['keepAlive'],..._0x29667f[_0x1e2a34(0x279)]?{'enableBackgroundCommands':!0x1}:{},..._0x4c2bb0[_0x1e2a34(0x255)]?{'enableMemory':!0x1}:{},..._0x4c2bb0[_0x1e2a34(0x1ca)]?{'enableTaskAutomation':!0x0}:{},..._0x4c2bb0['preloadSkills'][_0x1e2a34(0x160)]>0x0?{'preloadSkills':_0x4c2bb0[_0x1e2a34(0x25e)]}:{},..._0x2e7403?{'model':_0x2e7403}:{},..._0x4c2bb0[_0x1e2a34(0x2bd)]?{'projectId':_0x4c2bb0['projectId']}:{},..._0x4c2bb0[_0x1e2a34(0x29f)]?{'vertical':_0x4c2bb0[_0x1e2a34(0x29f)]}:{},..._0x4c2bb0[_0x1e2a34(0x2a3)]?{'workingDirectory':_0x4c2bb0[_0x1e2a34(0x2a3)]}:{},..._0x4c2bb0['bundledSkillsPath']?{'bundledSkillsPath':_0x4c2bb0['bundledSkillsPath']}:{},..._0x4c2bb0[_0x1e2a34(0x323)]?{'effort':_0x4c2bb0[_0x1e2a34(0x323)]}:{},..._0x4c2bb0['sessionId']?{'sessionId':_0x4c2bb0['sessionId']}:{},..._0x4c2bb0[_0x1e2a34(0x307)]?{'verbose':!0x0}:{}};}async function Fn(_0x3f0e91){const _0x2ee1e7=_0x553a75;let _0x1bce81=_0x3f0e91[_0x2ee1e7(0x131)]!==_0x2ee1e7(0x249),_0x55a2e6=_0x3f0e91['jsonSchemaPath']===void 0x0?null:Ne(_0x3f0e91[_0x2ee1e7(0x308)],_0x2ee1e7(0x276)),_0x1003e9=!_0x1bce81&&!_0x55a2e6&&!_0x3f0e91['print']&&_0x3f0e91[_0x2ee1e7(0x1fd)]!=='-'&&!!process[_0x2ee1e7(0x266)][_0x2ee1e7(0x14b)]&&!!process['stdout'][_0x2ee1e7(0x14b)],_0x1b824a=_0x3f0e91[_0x2ee1e7(0x1b8)]==='stream-json'?re(process['stdin'],_0x45bfc7=>{const _0x330f0e=_0x2ee1e7;process[_0x330f0e(0x19e)][_0x330f0e(0x16b)](_0x45bfc7[_0x330f0e(0x325)]+_0x330f0e(0x29c));}):null,_0x284318=_0x1b824a?(await _0x1b824a[_0x2ee1e7(0x156)]())[_0x2ee1e7(0x2a0)]:void 0x0,_0x536abd=_0x1b824a?_0x284318?.[_0x2ee1e7(0x249)]??'':_0x1003e9?_0x3f0e91['prompt'][_0x2ee1e7(0x184)]():await H(_0x3f0e91[_0x2ee1e7(0x1fd)],process[_0x2ee1e7(0x266)]);if(!_0x1003e9&&!_0x536abd&&(console[_0x2ee1e7(0x245)](_0x2ee1e7(0x288)),process[_0x2ee1e7(0x1f9)](0x2)),!_0x1bce81){await be(_0x3f0e91,_0x536abd,_0x1003e9,null,_0x55a2e6,null);return;}let _0x3de31b=!0x1,_0xc95e87=_0x20b15e=>{const _0x27a674=_0x2ee1e7;_0x3de31b=!0x0,O(_0x307699(_0x20b15e)),(_0x20b15e['isError']||_0x20b15e['structuredError'])&&(process[_0x27a674(0x1d0)]=0x1);},_0x3e0d43=Date[_0x2ee1e7(0x18a)]();try{await be(_0x3f0e91,_0x536abd,!0x1,_0xc95e87,_0x55a2e6,_0x1b824a?{'messages':_0x1b824a,'first':_0x284318,'close':()=>{const _0x1de90b=_0x2ee1e7;process[_0x1de90b(0x266)]['pause']();}}:null);}catch(_0x1335d2){if(_0x3de31b)throw _0x1335d2;process[_0x2ee1e7(0x19e)][_0x2ee1e7(0x16b)]((_0x1335d2 instanceof Error?_0x1335d2[_0x2ee1e7(0x25c)]??_0x1335d2[_0x2ee1e7(0x325)]:String(_0x1335d2))+'\x0a'),_0xc95e87(new _0x8492df(_0x3e0d43)[_0x2ee1e7(0x1fe)]({'endedAtMs':Date[_0x2ee1e7(0x18a)](),'usage':[],'error':_0x1335d2}));}finally{_0x1b824a&&(process[_0x2ee1e7(0x266)][_0x2ee1e7(0x2f6)](),_0x1b824a[_0x2ee1e7(0x1c4)](void 0x0));}}async function be(_0x1725b1,_0x32b088,_0x395a2b,_0x7b8bdd,_0x35e588,_0x56b1e0){const _0x53de0a=_0x553a75;w={'lastType':null,'quiet':_0x1725b1[_0x53de0a(0x24b)]};let _0x2c97de=new Set(),_0x3c77c7,_0x40d5ca=_0x6243d3=>{const _0x2d58fc=_0x53de0a;(!_0x7b8bdd||_0x6243d3[_0x2d58fc(0x17c)]==='session_start'||_0x6243d3[_0x2d58fc(0x17c)]===_0x2d58fc(0x132))&&(_0x3c77c7??_e)(_0x6243d3);for(let _0x2c3ab2 of _0x2c97de)_0x2c3ab2(_0x6243d3);},_0x1c48e9=await V(),_0x285b87=new _0x4f653c();_0x285b87[_0x53de0a(0x13f)](_0x40d5ca);let _0x3ed7e7=_0x4f64fe(_0x1725b1['env'],_0x1c48e9,_0x1725b1['backendUrl']);X(_0x1725b1[_0x53de0a(0x25f)],_0x1725b1[_0x53de0a(0x24d)],_0x3ed7e7);let _0x2ea6f2={'input':null},_0xb518c5=_0x395a2b?ne(()=>_0x2ea6f2['input'],_0xfcd86d=>{const _0x43c84a=_0x53de0a;process[_0x43c84a(0x19e)][_0x43c84a(0x16b)](_0xfcd86d);}):null,_0x3582e8=_0x3532d2=>_0xb518c5?{..._0x3532d2,'askUser':_0xb518c5}:_0x3532d2,_0x78f78f=_0x3582e8(ke(_0x1725b1,_0x1c48e9,_0x3ed7e7,{'oneTurn':!_0x395a2b})),_0x243fb9=!0x1,_0x1dc6d9=!0x1,_0x3afc51,_0x18750c=()=>_0x3afc51??=_0x285b87[_0x53de0a(0x14a)](),_0x313116=()=>{const _0x2c0352=_0x53de0a;_0x1dc6d9&&process[_0x2c0352(0x1f9)](0x82),_0x1dc6d9=!0x0,process['stderr'][_0x2c0352(0x16b)](_0x2c0352(0x1ad)),_0x243fb9&&_0x285b87[_0x2c0352(0x286)]()['catch'](_0x451cab=>console[_0x2c0352(0x245)](_0x451cab))[_0x2c0352(0x190)](_0x18750c)[_0x2c0352(0x190)](()=>process['exit'](0x82),_0x37ea5e=>{console['error'](_0x37ea5e),process['exit'](0x82);});};process['on'](_0x53de0a(0x2ee),_0x313116);let _0x45564e=_0x1725b1[_0x53de0a(0x32b)],_0x37cb2d=async _0x247551=>{const _0x55d8b0=_0x53de0a;let _0x5157fe=_0x45564e;_0x45564e=[];let _0x4b7405=()=>_0x285b87[_0x55d8b0(0x32a)](_0x247551,{'attachments':_0x5157fe});try{return await _0x4b7405();}catch(_0x403cb6){if(_0x1dc6d9||!Ln(_0x403cb6)||!process[_0x55d8b0(0x266)][_0x55d8b0(0x14b)]||_0x1725b1[_0x55d8b0(0x25f)]===_0x55d8b0(0x31b)||!(_0x1725b1[_0x55d8b0(0x25f)]||_0x1c48e9[_0x55d8b0(0x30b)]))throw _0x403cb6;process['stderr'][_0x55d8b0(0x16b)](_0x55d8b0(0x218));let _0x434e64=_0x285b87[_0x55d8b0(0x26e)]()??_0x1725b1[_0x55d8b0(0x240)],_0x4f521b=await _0x2a74e6(_0x1725b1[_0x55d8b0(0x25f)]?{'env':_0x1725b1[_0x55d8b0(0x25f)],'tenant':Q(_0x1c48e9,_0x274d03[_0x1725b1['env']]),'skipEnvCheck':!0x0}:{'baseUrl':_0x1c48e9[_0x55d8b0(0x30b)],'tenant':_0x1c48e9[_0x55d8b0(0x175)],'skipEnvCheck':!0x0}),_0x2331f7={'text':'','failed':!0x1,'sessionId':_0x434e64};return _0x1dc6d9||(_0x243fb9=!0x1,await _0x18750c(),_0x1dc6d9)?_0x2331f7:(_0x285b87=new _0x4f653c(),_0x3afc51=void 0x0,_0x285b87[_0x55d8b0(0x13f)](_0x40d5ca),_0x1c48e9=_0x4f521b,await _0x285b87[_0x55d8b0(0x30d)]({..._0x3582e8(ke(_0x1725b1,_0x1c48e9,_0x3ed7e7,{'oneTurn':!_0x395a2b})),..._0x434e64?{'sessionId':_0x434e64}:{}}),_0x243fb9=!0x0,_0x1dc6d9?_0x2331f7:_0x4b7405());}};try{if(await _0x285b87[_0x53de0a(0x30d)](_0x78f78f),_0x243fb9=!0x0,_0x1dc6d9)return;if(_0x395a2b)await Bn({'prompt':_0x32b088,'sendMessage':_0x37cb2d,'onSigint':_0x313116,'setAnswerInput':_0x2c73ff=>{const _0x168e6c=_0x53de0a;_0x2ea6f2[_0x168e6c(0x15c)]=_0x2c73ff;},'registerEventPrinter':_0x588cad=>(_0x3c77c7=_0x588cad,()=>{_0x3c77c7=void 0x0;})});else{if(_0x7b8bdd||_0x35e588){let _0x59c81d=_0x1725b1[_0x53de0a(0x131)]===_0x53de0a(0x25b)?_0x4b5a1d=>O(_0x4f4d42(_0x4b5a1d)):()=>{},_0x3e0049=_0x56b1e0?ie({'input':_0x56b1e0,'getAgent':()=>_0x285b87,'replay':_0x1725b1[_0x53de0a(0x2a5)],'onEvent':_0x3b6b33=>(_0x2c97de[_0x53de0a(0x298)](_0x3b6b33),()=>{const _0x1dd414=_0x53de0a;_0x2c97de[_0x1dd414(0x13c)](_0x3b6b33);}),'write':O,'isRunStopNotice':_0x483e51,'actionableErrorText':_0x3efee2,'warn':_0xf10b29=>{const _0x2865b7=_0x53de0a;process[_0x2865b7(0x19e)][_0x2865b7(0x16b)](_0xf10b29);}}):null,_0xed8fbe=await _0x5c8732({'onEvent':_0x2cc573=>(_0x2c97de[_0x53de0a(0x298)](_0x2cc573),()=>{const _0x5ae8a0=_0x53de0a;_0x2c97de[_0x5ae8a0(0x13c)](_0x2cc573);}),'sendMessage':async _0x33a0f7=>{const _0x396878=_0x53de0a;try{let _0x59904d=await _0x37cb2d(_0x33a0f7);return _0x3e0049?await _0x3e0049[_0x396878(0x1da)](_0x59904d):_0x59904d;}finally{_0x3e0049?.[_0x396878(0x1f5)]();}},'getSessionId':()=>_0x285b87[_0x53de0a(0x26e)](),'getTurnUsageHistory':_0x547a7a=>_0x285b87['getTurnUsageHistory'](_0x547a7a),'complete':_0x490e69=>_0x285b87[_0x53de0a(0x2d1)](_0x490e69)},_0x32b088,void 0x0,_0x59c81d,_0x35e588?{'outputSchema':_0x35e588}:void 0x0);_0x7b8bdd?_0x7b8bdd(_0xed8fbe):Mn(_0xed8fbe);}else await _0x37cb2d(_0x32b088);}}catch(_0x221331){if(!_0x1dc6d9)throw _0x221331;}finally{try{await _0x18750c();}finally{process[_0x53de0a(0x232)](_0x53de0a(0x2ee),_0x313116),_0x1dc6d9&&(process['exitCode']=0x82);}}}function Mn(_0x338f78){const _0x17c340=_0x553a75;_0x338f78[_0x17c340(0x28e)]?(console[_0x17c340(0x245)](_0x17c340(0x1f1)+_0x338f78[_0x17c340(0x28e)][_0x17c340(0x325)]),process[_0x17c340(0x1d0)]=0x1):_0x338f78[_0x17c340(0x27f)]?(console[_0x17c340(0x245)](_0x17c340(0x2fe)+_0x338f78['error']+').'),process['exitCode']=0x1):process[_0x17c340(0x284)][_0x17c340(0x16b)](JSON[_0x17c340(0x281)](_0x338f78[_0x17c340(0x2e8)],null,0x2)+'\x0a');}function jn(_0x17ffbf,_0x309198){const _0x5630d7=_0x553a75;let _0x1f77b0=process['stdout'][_0x5630d7(0x16b)][_0x5630d7(0x227)](process[_0x5630d7(0x284)]),_0x813132=!0x1;return process['stdout'][_0x5630d7(0x16b)]=(..._0x24d235)=>{if(!_0x813132)return _0x1f77b0(..._0x24d235);_0x21dbd4(_0x309198,0x0),_0x55564a(_0x309198,0x0);let _0x4bb310=_0x1f77b0(..._0x24d235);return _0x17ffbf['prompt'](!0x0),_0x4bb310;},{'show':()=>{const _0x3f9c10=_0x5630d7;_0x813132=!0x0,_0x17ffbf[_0x3f9c10(0x1fd)]();},'hide':()=>{_0x813132=!0x1;},'erase':()=>{_0x813132&&(_0x21dbd4(_0x309198,0x0),_0x55564a(_0x309198,0x0)),_0x813132=!0x1;},'restore':()=>{const _0x2cfeaf=_0x5630d7;_0x813132=!0x1,process[_0x2cfeaf(0x284)]['write']=_0x1f77b0;}};}async function Bn({prompt:_0xe4aac0,sendMessage:_0x1f7511,onSigint:_0xe893d5,setAnswerInput:_0x1ab5f3,registerEventPrinter:_0x44c894}){const _0x5605c1=_0x553a75;let _0x285791=_0x431183({'input':process[_0x5605c1(0x266)],'output':process['stderr'],'terminal':!0x0,'prompt':_0x5605c1(0x2bc)}),_0x1170bf=jn(_0x285791,process[_0x5605c1(0x19e)]),_0xdf9da=[],_0x50b606,_0x47a0c2,_0x28c1d0,_0x4390f8=!0x1,_0x8c751c=!0x1,_0x56dab6=!0x1,_0x4fb6a6=Promise[_0x5605c1(0x273)](),_0x58bc54,_0x1ef8d7=_0x44c894(_0x15f20c=>{const _0x213b1e=_0x5605c1;_0x15f20c[_0x213b1e(0x17c)]===_0x213b1e(0x17b)&&(_0x1170bf[_0x213b1e(0x2b5)](),_0x4fb6a6=new Promise(_0x251b4a=>{_0x58bc54=_0x251b4a;})),_e(_0x15f20c),_0x15f20c[_0x213b1e(0x17c)]===_0x213b1e(0x181)&&(_0x58bc54?.(),_0x58bc54=void 0x0,!_0x56dab6&&!_0x4390f8&&_0x1170bf[_0x213b1e(0x2ec)]());}),_0xc87129=()=>{_0x8c751c=!0x0,_0x58bc54?.(),_0xe893d5(),_0x285791['close']();};_0x285791['on'](_0x5605c1(0x291),_0x3bad4c=>{const _0x2d6003=_0x5605c1;_0x28c1d0?_0x28c1d0(_0x3bad4c):_0x50b606?_0x50b606[_0x2d6003(0x262)](_0x3bad4c):_0x47a0c2?_0x47a0c2(_0x3bad4c):_0xdf9da['push'](_0x3bad4c);}),_0x285791[_0x5605c1(0x178)]('close',()=>{_0x4390f8=!0x0,_0x1170bf['hide'](),_0x50b606&&!_0x8c751c&&_0xc87129(),_0x47a0c2?.(null);});let _0x386b12=()=>_0xdf9da[_0x5605c1(0x160)]>0x0?Promise[_0x5605c1(0x273)](_0xdf9da[_0x5605c1(0x1ea)]()):_0x4390f8?Promise[_0x5605c1(0x273)](null):new Promise(_0x33b42b=>{_0x47a0c2=_0x2a51e0=>{_0x47a0c2=void 0x0,_0x33b42b(_0x2a51e0);};});_0x1ab5f3({'readLine':(_0x59d62b,_0x51006e)=>new Promise((_0x58496b,_0x450f1a)=>{const _0x40b441=_0x5605c1;if(_0x4390f8&&!_0x50b606){_0x58496b(null);return;}_0x50b606??=[];let _0x5681cc=_0x50b606[_0x40b441(0x1ea)]();if(_0x5681cc!==void 0x0){_0x58496b(_0x5681cc);return;}let _0x5e423f=()=>{const _0x44b5bf=_0x40b441;_0x28c1d0=void 0x0,_0x51006e[_0x44b5bf(0x165)](_0x44b5bf(0x2b7),_0x1540c7),_0x1170bf[_0x44b5bf(0x233)](),_0x285791['setPrompt'](_0x44b5bf(0x2bc));},_0x1540c7=()=>{const _0x2468f9=_0x40b441;_0x5e423f(),_0x450f1a(new Error(_0x2468f9(0x2ad)));};_0x51006e[_0x40b441(0x316)](_0x40b441(0x2b7),_0x1540c7,{'once':!0x0}),!_0x4390f8&&(_0x28c1d0=_0x110f6f=>{_0x5e423f(),_0x58496b(_0x110f6f);},_0x285791['setPrompt'](_0x59d62b),_0x1170bf['show']());}),'endQuestions':()=>{const _0x9911ec=_0x5605c1;_0x50b606&&_0xdf9da[_0x9911ec(0x262)](..._0x50b606),_0x50b606=void 0x0;}}),_0x285791['on']('SIGINT',_0xc87129),process['stderr'][_0x5605c1(0x16b)]('Enter\x20sends\x20a\x20message.\x20/exit\x20or\x20EOF\x20exits;\x20Ctrl+C\x20stops\x20and\x20exits.\x0a');let _0x20788f=async _0x35d0b7=>{_0x56dab6=!0x0;try{await _0x1f7511(_0x35d0b7);}finally{_0x56dab6=!0x1;}};try{if(_0xe4aac0&&await _0x20788f(_0xe4aac0),_0x8c751c)return;!_0x4390f8&&!_0x58bc54&&_0x1170bf[_0x5605c1(0x2ec)]();for(let _0x382c4c=await _0x386b12();_0x382c4c!==null&&(_0x1170bf[_0x5605c1(0x233)](),!_0x8c751c);_0x382c4c=await _0x386b12()){let _0x5bec47=_0x382c4c[_0x5605c1(0x184)]();if(_0x5bec47==='/exit')break;_0x5bec47&&await _0x20788f(_0x5bec47),!_0x4390f8&&!_0x58bc54&&_0x1170bf[_0x5605c1(0x2ec)]();}for(;!_0x8c751c&&_0x58bc54;)await _0x4fb6a6;}finally{_0x1ab5f3(null),_0x1ef8d7(),_0x1170bf[_0x5605c1(0x328)](),_0x285791[_0x5605c1(0x232)](_0x5605c1(0x2ee),_0xc87129),_0x285791[_0x5605c1(0x278)]();}}async function Jn(){const _0x136879=_0x553a75;let _0x19dac4=Kt(process[_0x136879(0x212)][_0x136879(0x1ff)](0x2));if(_0x19dac4[_0x136879(0x131)]==='text'){await Se(_0x19dac4);return;}let _0x2a6919=Qt();try{await Se(_0x19dac4);}finally{_0x2a6919();}}async function Se(_0x15b82f){const _0x2a5ce7=_0x553a75;if(_0x15b82f[_0x2a5ce7(0x2c5)]){qt();return;}if(_0x15b82f[_0x2a5ce7(0x31e)]){console[_0x2a5ce7(0x320)](zt());return;}if(_0x15b82f[_0x2a5ce7(0x31d)]==='login'){await _n(_0x15b82f);return;}if(_0x15b82f[_0x2a5ce7(0x31d)]===_0x2a5ce7(0x1f7)){await Pn(_0x15b82f['prompt']);return;}if(_0x15b82f[_0x2a5ce7(0x31d)]==='logout'){await Zt();return;}if(_0x15b82f['subcommand']===_0x2a5ce7(0x321)){await en(_0x15b82f);return;}if(_0x15b82f[_0x2a5ce7(0x31d)]===_0x2a5ce7(0x211)){await on(_0x15b82f);return;}if(_0x15b82f['subcommand']===_0x2a5ce7(0x170)){await mn(_0x15b82f);return;}if(_0x15b82f['subcommand']===_0x2a5ce7(0x310)){await an(_0x15b82f);return;}if(_0x15b82f['subcommand']==='usage'){await hn(_0x15b82f);return;}if(_0x15b82f[_0x2a5ce7(0x31d)]===_0x2a5ce7(0x24a)||_0x15b82f[_0x2a5ce7(0x31d)]===_0x2a5ce7(0x12b)||_0x15b82f[_0x2a5ce7(0x31d)]==='verify'){await bn(_0x15b82f,_0x15b82f[_0x2a5ce7(0x31d)]);return;}if(_0x15b82f[_0x2a5ce7(0x31d)]==='complete'){await vn(_0x15b82f);return;}if(_0x15b82f[_0x2a5ce7(0x31d)]===_0x2a5ce7(0x1e3)){await xn(_0x15b82f);return;}if(_0x15b82f['subcommand']==='delegations'){await Tn(_0x15b82f);return;}if(_0x15b82f[_0x2a5ce7(0x31d)]===_0x2a5ce7(0x317)){await Nn(_0x15b82f);return;}if(_0x15b82f[_0x2a5ce7(0x31d)]===_0x2a5ce7(0x1c9)){await _0x465f65(_0x15b82f['prompt'],{'runnerUrl':_0x15b82f[_0x2a5ce7(0x12f)],'backendUrl':_0x15b82f[_0x2a5ce7(0x24d)],'interopPath':_0x15b82f[_0x2a5ce7(0x155)],'workerId':_0x15b82f['workerId']});return;}if(_0x15b82f[_0x2a5ce7(0x21c)]){await sn();return;}await Fn(_0x15b82f);}var Hn=process.env.NODE_ENV===_0x553a75(0x297)||!!process.env.JEST_WORKER_ID;Hn||Jn()[_0x553a75(0x30a)](_0x35c9f1=>{const _0x47e260=_0x553a75;console[_0x47e260(0x245)](_0x35c9f1[_0x47e260(0x25c)]||_0x35c9f1['message']||_0x35c9f1),process[_0x47e260(0x1f9)](0x1);});export{Wt as CARTOGRAPHER_SKILLS,pe as EFFORT_TIERS,Yt as IMPLICIT_STDIN_IDLE_MS,ke as buildInitOptions,Jn as main,Kt as parseArgs,zt as readCliVersion,H as resolvePrompt,Qt as routeStdoutToStderr,m as writeCommandResult};
2
+ const _0x21c914=_0xc28c;(function(_0x4deb3c,_0x16567b){const _0x267993=_0xc28c,_0xf469b3=_0x4deb3c();while(!![]){try{const _0x4a3373=parseInt(_0x267993(0x1f4))/0x1*(parseInt(_0x267993(0x28c))/0x2)+parseInt(_0x267993(0x256))/0x3+-parseInt(_0x267993(0x317))/0x4+-parseInt(_0x267993(0x3c7))/0x5+-parseInt(_0x267993(0x3d9))/0x6*(parseInt(_0x267993(0x303))/0x7)+-parseInt(_0x267993(0x35b))/0x8+parseInt(_0x267993(0x28a))/0x9;if(_0x4a3373===_0x16567b)break;else _0xf469b3['push'](_0xf469b3['shift']());}catch(_0x56b5d1){_0xf469b3['push'](_0xf469b3['shift']());}}}(_0x3e93,0xf255d));const __dirname=import.meta.dirname;import _0x1796bd from'fs';import _0x2bc3be from'path';import{clearLine as _0x4a0f48,createInterface as _0x26eeef,cursorTo as _0x45d9bc}from'node:readline';import{isOnStepGrid as _0x5b7737}from'@uipath/delegate-sdk';var L=_0x21c914(0x3af);function E(_0x11fc15){const _0x53a673=_0x21c914;return _0x11fc15[_0x53a673(0x291)](/\u001b\[[0-?]*[ -/]*[@-~]|\u001b\][^\u0007\u001b]*(\u0007|\u001b\\)?|\u001b./g,'')['replace'](/[\u0000-\u0008\u000b-\u001f\u007f-\u009f]/g,'');}function ee(_0x1e4a92){const _0x159229=_0x21c914;return E(_0x1e4a92[_0x159229(0x3a6)]??(_0x1e4a92[_0x159229(0x38b)]===L?'Something\x20else':_0x1e4a92['id']));}function Ce(_0x4c5d0b,_0x43d247,_0x3ae16b){const _0x7734d2=_0x21c914;let _0x467526=[''+(_0x3ae16b>0x1?'['+_0x43d247+'/'+_0x3ae16b+']\x20':'')+E(_0x4c5d0b[_0x7734d2(0x2bc)])+(_0x4c5d0b[_0x7734d2(0x30d)]?'\x20(optional)':''),E(_0x4c5d0b['question'])];return _0x4c5d0b['type']===_0x7734d2(0x23d)&&_0x4c5d0b[_0x7734d2(0x38f)][_0x7734d2(0x289)]((_0x51ea3a,_0x2f09f8)=>{const _0x4a0502=_0x7734d2;let _0x382e99=_0x51ea3a[_0x4a0502(0x38b)]===L?_0x4a0502(0x3b7):'',_0x13567f=_0x51ea3a[_0x4a0502(0x26a)]?_0x4a0502(0x31b)+E(_0x51ea3a[_0x4a0502(0x26a)]):'';_0x467526['push']('\x20\x20'+(_0x2f09f8+0x1)+'.\x20'+ee(_0x51ea3a)+_0x382e99+_0x13567f);}),_0x467526[_0x7734d2(0x350)]('\x0a');}function te(_0x4ff416,_0x3ab6b0){const _0x1770e0=_0x21c914;let _0x322bed=_0x4ff416[_0x1770e0(0x2ab)](/[\s,]+/)[_0x1770e0(0x398)](Boolean);if(_0x322bed[_0x1770e0(0x253)]===0x0)return null;let _0x3dc073=_0x322bed['map'](_0x3f346c=>/^\d+$/[_0x1770e0(0x2b8)](_0x3f346c)?Number(_0x3f346c):NaN);return _0x3dc073[_0x1770e0(0x2eb)](_0x154f8b=>!Number[_0x1770e0(0x24a)](_0x154f8b)||_0x154f8b<0x1||_0x154f8b>_0x3ab6b0)?null:[...new Set(_0x3dc073)][_0x1770e0(0x346)](_0x597f48=>_0x597f48-0x1);}function Oe(_0x1b7902){const _0x225815=_0x21c914;return typeof _0x1b7902=='object'&&_0x1b7902!==null&&_0x225815(0x292)in _0x1b7902;}async function F(_0x4d262d,_0x15390c,_0x207d6c,_0x5f2b0d){const _0xf9c1b9=_0x21c914;for(;;){let _0x231192=(await _0x4d262d(_0x15390c))[_0xf9c1b9(0x2a1)]();if(_0x231192==='')return;let _0xecf5d1=_0x5f2b0d(_0x231192);if(!Oe(_0xecf5d1))return _0xecf5d1;_0x207d6c(_0xecf5d1[_0xf9c1b9(0x292)]+'\x0a');}}async function Le(_0x45a2b3,_0x4f36d5,_0x168cb8){const _0xf3c979=_0x21c914;if(_0x45a2b3[_0xf3c979(0x38f)]['length']===0x0||_0x45a2b3[_0xf3c979(0x38f)][_0xf3c979(0x33b)](_0x407673=>_0x407673[_0xf3c979(0x38b)]===L)){let _0x235b1e=(await _0x4f36d5(_0xf3c979(0x3b1)))[_0xf3c979(0x2a1)]();return _0x235b1e===''?void 0x0:{'text':_0x235b1e};}let _0x1fa653=_0x45a2b3['options'][_0xf3c979(0x33e)](_0x20b5d2=>_0x20b5d2[_0xf3c979(0x38b)]===L),_0x25c1eb=_0x45a2b3[_0xf3c979(0x285)]?'Numbers,\x20separated\x20by\x20commas\x20(Enter\x20to\x20skip):\x20':_0xf3c979(0x28d)+(_0x1fa653>=0x0?_0xf3c979(0x35c):'')+'\x20(Enter\x20to\x20skip):\x20',_0x3f107c=await F(_0x4f36d5,_0x25c1eb,_0x168cb8,_0x1603aa=>{const _0x2a2f1b=_0xf3c979;let _0x275d6c=te(_0x1603aa,_0x45a2b3[_0x2a2f1b(0x38f)][_0x2a2f1b(0x253)]);return _0x275d6c&&(_0x45a2b3[_0x2a2f1b(0x285)]||_0x275d6c[_0x2a2f1b(0x253)]===0x1)?_0x275d6c:!_0x45a2b3[_0x2a2f1b(0x285)]&&_0x1fa653>=0x0?{'typed':_0x1603aa}:{'refused':_0x45a2b3['multiSelect']?_0x2a2f1b(0x229)+_0x45a2b3[_0x2a2f1b(0x38f)][_0x2a2f1b(0x253)]+'.':_0x2a2f1b(0x302)+_0x45a2b3['options']['length']+'.'};});if(_0x3f107c===void 0x0)return;if(!Array['isArray'](_0x3f107c))return{'text':_0x3f107c[_0xf3c979(0x392)]};let _0x3ffde8=_0x3f107c[_0xf3c979(0x346)](_0x590775=>_0x45a2b3[_0xf3c979(0x38f)][_0x590775]['id']),_0x3ca9fd=_0x3ffde8[_0xf3c979(0x1e6)](L)?await F(_0x4f36d5,ee(_0x45a2b3['options'][_0x1fa653])+':\x20',_0x168cb8,_0x2cf603=>_0x2cf603):void 0x0;if(!(_0x3ffde8[_0xf3c979(0x1e6)](L)&&_0x3ca9fd===void 0x0))return _0x45a2b3[_0xf3c979(0x285)]?{'optionIds':_0x3ffde8,..._0x3ca9fd!==void 0x0?{'text':_0x3ca9fd}:{}}:_0x3ca9fd!==void 0x0?{'text':_0x3ca9fd}:{'optionId':_0x3ffde8[0x0]};}async function Fe(_0x372ca6,_0x1d9c8a,_0x38c655){const _0x4c4dae=_0x21c914;let _0x25063b={};for(let _0x4e68ac of _0x372ca6[_0x4c4dae(0x1f3)]){let _0x3a3ecf=_0x4e68ac[_0x4c4dae(0x1d8)]??_0x4e68ac['min'],_0x23748b=_0x4e68ac['step']??0x1,_0x4ba32e=_0x4e68ac[_0x4c4dae(0x245)]?'\x20'+E(_0x4e68ac[_0x4c4dae(0x245)]):'',_0x40294e=_0x4c4dae(0x2f0)+_0x4e68ac[_0x4c4dae(0x247)]+'\x20to\x20'+_0x4e68ac[_0x4c4dae(0x3b0)]+(_0x23748b!==0x1?_0x4c4dae(0x29b)+_0x23748b:''),_0x54e7d0=await F(_0x1d9c8a,E(_0x4e68ac[_0x4c4dae(0x3a6)])+'\x20['+_0x4e68ac['min']+'-'+_0x4e68ac['max']+_0x4ba32e+_0x4c4dae(0x2c9)+_0x3a3ecf+_0x4c4dae(0x356),_0x38c655,_0x3cdf1b=>{const _0x18e1e0=_0x4c4dae;let _0x338490=Number(_0x3cdf1b);return Number[_0x18e1e0(0x2dc)](_0x338490)&&_0x338490>=_0x4e68ac['min']&&_0x338490<=_0x4e68ac[_0x18e1e0(0x3b0)]&&_0x5b7737(_0x338490,_0x4e68ac[_0x18e1e0(0x247)],_0x23748b)?_0x338490:{'refused':'Enter\x20a\x20number\x20'+_0x40294e+'.'};});_0x25063b[_0x4e68ac['id']]=_0x54e7d0??_0x3a3ecf;}return{'values':_0x25063b};}async function Me(_0x44d46b,_0xaa02e8,_0x682436){const _0x186e9a=_0x21c914;_0x682436(_0x44d46b['buckets'][_0x186e9a(0x346)]((_0x171da4,_0x2f4cef)=>'\x20\x20'+(_0x2f4cef+0x1)+'.\x20'+E(_0x171da4[_0x186e9a(0x3a6)]))[_0x186e9a(0x350)]('\x0a')+'\x0a');let _0x455118={};for(let _0x175d44 of _0x44d46b[_0x186e9a(0x380)]){let _0x4ced51=await F(_0xaa02e8,E(_0x175d44['label'])+_0x186e9a(0x28b),_0x682436,_0x3cba70=>{const _0x8b335e=_0x186e9a;let _0x19762e=te(_0x3cba70,_0x44d46b['buckets']['length']);return _0x19762e&&_0x19762e['length']===0x1?_0x19762e[0x0]:{'refused':_0x8b335e(0x302)+_0x44d46b[_0x8b335e(0x1e1)]['length']+'.'};});if(_0x4ced51===void 0x0)continue;let _0x15d822=_0x44d46b[_0x186e9a(0x1e1)][_0x4ced51],_0x40b092={};for(let _0x46bf7b of _0x15d822[_0x186e9a(0x206)]??[]){let _0x392bbb='\x20\x20'+E(_0x46bf7b[_0x186e9a(0x3a6)])+(_0x46bf7b[_0x186e9a(0x30d)]?_0x186e9a(0x2ac):'')+':\x20',_0x27525d=await F(_0xaa02e8,_0x392bbb,_0x682436,_0x40c7d9=>_0x40c7d9);for(;_0x27525d===void 0x0&&!_0x46bf7b[_0x186e9a(0x30d)];)_0x682436(E(_0x46bf7b[_0x186e9a(0x3a6)])+_0x186e9a(0x335)),_0x27525d=await F(_0xaa02e8,_0x392bbb,_0x682436,_0x2b38a9=>_0x2b38a9);_0x27525d!==void 0x0&&(_0x40b092[_0x46bf7b['id']]=_0x27525d);}_0x455118[_0x175d44['id']]={'bucket':_0x15d822['id'],...Object[_0x186e9a(0x23f)](_0x40b092)['length']>0x0?{'subFields':_0x40b092}:{}};}return Object[_0x186e9a(0x23f)](_0x455118)[_0x186e9a(0x253)]>0x0?{'assignments':_0x455118}:void 0x0;}async function je(_0x1364ba,_0x477e5a,_0x47ecef){const _0x5f4a04=_0x21c914;if(_0x1364ba[_0x5f4a04(0x366)]===_0x5f4a04(0x23d))return Le(_0x1364ba,_0x477e5a,_0x47ecef);if(_0x1364ba[_0x5f4a04(0x366)]===_0x5f4a04(0x3cf))return Fe(_0x1364ba,_0x477e5a,_0x47ecef);if(_0x1364ba[_0x5f4a04(0x366)]===_0x5f4a04(0x1e5))return Me(_0x1364ba,_0x477e5a,_0x47ecef);let _0x5126e1=(await _0x477e5a(_0x5f4a04(0x3bb)))[_0x5f4a04(0x2a1)]();return _0x5126e1===''?void 0x0:{'text':_0x5126e1};}function ne(_0x85e7d0,_0x30354f){return async _0xc3bc92=>{const _0x41d70d=_0xc28c;let _0x421ec9=_0x85e7d0();if(!_0x421ec9)throw new Error(_0x41d70d(0x217));let _0x27d4ca=async _0x2bc80a=>{const _0x5bc286=_0x41d70d;if(_0xc3bc92[_0x5bc286(0x378)][_0x5bc286(0x2f7)])throw new Error(_0x5bc286(0x21d));let _0x16d377=await _0x421ec9[_0x5bc286(0x237)](_0x2bc80a,_0xc3bc92[_0x5bc286(0x378)]);if(_0x16d377===null)throw new Error(_0x5bc286(0x24d));return _0x16d377;};try{_0x30354f('\x0a'+(_0xc3bc92['intro']?E(_0xc3bc92[_0x41d70d(0x2a0)])+'\x0a':''));let _0x37605f={};for(let [_0x310080,_0x171d2c]of _0xc3bc92[_0x41d70d(0x385)][_0x41d70d(0x322)]()){_0x30354f('\x0a'+Ce(_0x171d2c,_0x310080+0x1,_0xc3bc92[_0x41d70d(0x385)][_0x41d70d(0x253)])+'\x0a');let _0x6304a0=await je(_0x171d2c,_0x27d4ca,_0x30354f);_0x6304a0!==void 0x0&&(_0x37605f[_0x171d2c['id']]=_0x6304a0);}return{'answers':_0x37605f};}finally{_0x421ec9[_0x41d70d(0x21a)]();}};}import{createInterface as _0x359108}from'node:readline';var j=[_0x21c914(0x23d),_0x21c914(0x3b4)];function se(_0xd447cd){const _0x3bb144=_0x21c914;return j[_0x3bb144(0x1e6)](_0xd447cd);}var _=class extends Error{};function Je(_0x1f895a){const _0x50b548=_0x21c914;if(typeof _0x1f895a==_0x50b548(0x265))return _0x1f895a;if(!Array['isArray'](_0x1f895a))return;let _0x13299a=[];for(let _0x4b09f8 of _0x1f895a){if(typeof _0x4b09f8!=_0x50b548(0x33c)||_0x4b09f8===null)return;let {type:_0xa6acd7,text:_0x48119d}=_0x4b09f8;if(_0xa6acd7!==_0x50b548(0x23d)||typeof _0x48119d!=_0x50b548(0x265))return;_0x13299a[_0x50b548(0x3c0)](_0x48119d);}return _0x13299a['join']('\x0a');}function He(_0x160704){const _0x35b0ef=_0x21c914;if(_0x160704[_0x35b0ef(0x2a1)]()==='')return null;let _0x1872be;try{_0x1872be=JSON[_0x35b0ef(0x2e1)](_0x160704);}catch{throw new _(_0x35b0ef(0x211));}if(typeof _0x1872be!=_0x35b0ef(0x33c)||_0x1872be===null)throw new _(_0x35b0ef(0x241));let {type:_0x2421a0,message:_0x394329,uuid:_0x5764ed}=_0x1872be;if(_0x2421a0!==_0x35b0ef(0x31a))throw new _('an\x20input\x20line\x20has\x20type\x20'+JSON[_0x35b0ef(0x2b2)](_0x2421a0)+_0x35b0ef(0x342));let _0x1d9cad=Je(_0x394329?.['content']);if(_0x1d9cad===void 0x0)throw new _(_0x35b0ef(0x3a8));if(_0x1d9cad['trim']()==='')throw new _(_0x35b0ef(0x323));return{'text':_0x1d9cad,'uuid':typeof _0x5764ed==_0x35b0ef(0x265)?_0x5764ed:void 0x0};}function oe(_0xde9a41,_0x336932){const _0x285e6f=_0x21c914;return JSON[_0x285e6f(0x2b2)]({'type':_0x285e6f(0x31a),'message':{'role':_0x285e6f(0x31a),'content':_0xde9a41[_0x285e6f(0x23d)]},'session_id':_0x336932,..._0xde9a41[_0x285e6f(0x382)]===void 0x0?{}:{'uuid':_0xde9a41[_0x285e6f(0x382)]},'isReplay':!0x0})+'\x0a';}async function*re(_0x5d4b37,_0x78a5bf){let _0x374bde=_0x359108({'input':_0x5d4b37,'crlfDelay':0x1/0x0});try{for await(let _0x447491 of _0x374bde){let _0x478314;try{_0x478314=He(_0x447491);}catch(_0xcacf79){if(!(_0xcacf79 instanceof _))throw _0xcacf79;_0x78a5bf(_0xcacf79);continue;}_0x478314&&(yield _0x478314);}}finally{_0x374bde['close']();}}import{BUSINESS_ANALYSIS_PRELOADED_SKILLS as _0x49f126,DelegateAgent as _0x1fcb59,cancelTurn as _0x1247ed,InteropProcess as _0x37ed04,complete as _0x59c22a,DEFAULT_MODEL as _0x16b451,createBackendClient as _0x45ecb9,evaluate as _0x555bb5,isCompletionRequestError as _0xed64d8,isEvaluationRequestError as _0x44e67f,isTranscriptionError as _0x354523,rerank as _0xedf7e9,transcribe as _0x769c69,verify as _0x1e2188,acceptDelegation as _0x2f44c9,cancelDelegation as _0x59b216,claimDelegation as _0x2f199c,completeDelegation as _0x334061,createDelegation as _0x56d3bc,deleteDelegation as _0x45aa0b,dismissDelegation as _0x346d35,getSessionDelegations as _0x1a4681,isDelegationError as _0x5982e7,listDelegations as _0x466d01,listOrgUsers as _0x44e8ff,previewDelegation as _0x2b056e,TurnResultCollector as _0x5414ee,agentEventToJsonLine as _0x15b104,describeBaseUrlRejection as _0x34d61f,getActivitySummary as _0x35c941,getAuthFilePath as _0x5cc8ac,getByoWarnings as _0x1558b5,getCartographerAllowance as _0x1d3c64,getDailyBreakdown as _0x2275d3,getLicensingSummary as _0x25e549,getMonthlySpending as _0x3a3089,isOutputFormat as _0x5456e9,isCloudBaseUrl as _0x41ae29,isSafeProjectFolderSegment as _0x590bab,listModels as _0x3b08dd,listSessions as _0x1e1786,getSession as _0x3060cf,renameSession as _0x385b16,deleteSession as _0xebbea2,deleteSessionTaskLog as _0x13d661,forkSession as _0x40d6c1,isBackendRequestError as _0x40c763,MAX_SESSION_PAGE_SIZE as _0x4fd244,listTenants as _0x42d933,loadAndRefreshAuth as _0x29c7a0,loadAndRefreshSdkLogin as _0x7ccefd,parsePlatformBaseUrl as _0x37dfb6,resolveBackendUrl as _0x26480f,runHealthCheck as _0x37bb21,runHostCommand as _0x43a6e0,runLoginFlow as _0xc99361,runTurnForResult as _0x49a027,saveAuthData as _0x2899c9,switchTenant as _0x42c571,toJsonLine as _0x3151dc,ENV_TO_CLOUD as _0x3e9df0,OUTPUT_FORMATS as _0x11a1fc,isRunStopNotice as _0x4e4636,extractActionableErrorText as _0x49c6de}from'@uipath/delegate-sdk';function ie(_0x241dc6){const _0x338b23=_0x21c914;let {input:_0x4a6f59,getAgent:_0x49cd0e,replay:_0x5693ab,onEvent:_0x402183,write:_0x4c44a1,warn:_0x41383f,isRunStopNotice:_0x350435,actionableErrorText:_0x3f730b}=_0x241dc6,_0x3b6df0=0x0,_0x30144e=0x0,_0x3f3975=Promise['resolve'](),_0x2426a2=!0x1,_0x592f71=()=>{},_0x236747=new Promise(_0x2f24d5=>{_0x592f71=_0x2f24d5;}),_0x3c6460=[],_0x4908be=_0x402183(_0x134050=>{const _0x376f00=_0xc28c;_0x134050[_0x376f00(0x366)]==='turn_start'&&(_0x592f71(),_0x3c6460[_0x376f00(0x1f1)]()?.());}),_0x34c76e=_0x2ecca7=>{const _0x415942=_0xc28c;_0x5693ab&&_0x4c44a1(oe(_0x2ecca7,_0x49cd0e()[_0x415942(0x2a3)]()));},_0x3a06bc=(async()=>{const _0x4e34e1=_0xc28c;await _0x236747;for await(let _0x532d5e of _0x4a6f59[_0x4e34e1(0x328)]){if(_0x2426a2)return;_0x3b6df0===0x0&&(_0x30144e=_0x49cd0e()[_0x4e34e1(0x220)]()[_0x4e34e1(0x253)]),_0x3b6df0++;let _0x16ac66=new Promise(_0x2bd422=>{const _0x176712=_0x4e34e1;_0x3c6460[_0x176712(0x3c0)](()=>{_0x34c76e(_0x532d5e),_0x2bd422();});}),_0x3eb508=()=>{const _0x5db137=_0x4e34e1;_0x3b6df0--,_0x3c6460[_0x5db137(0x2fe)]();},_0x50e48b=_0x49cd0e()['steer'](_0x532d5e[_0x4e34e1(0x23d)]);_0x3f3975=_0x50e48b['catch'](()=>{});try{await _0x50e48b?await Promise[_0x4e34e1(0x1e4)]([_0x16ac66,_0x49cd0e()['waitForIdle']()]):(_0x3eb508(),_0x41383f(_0x4e34e1(0x1ea)));}catch(_0x55c12d){_0x3eb508(),_0x41383f(_0x4e34e1(0x246)+(_0x55c12d instanceof Error?_0x55c12d[_0x4e34e1(0x2af)]:String(_0x55c12d))+'\x0a');}}})()[_0x338b23(0x216)](_0x284be8=>{const _0x183661=_0x338b23;_0x41383f(_0x183661(0x388)+(_0x284be8 instanceof Error?_0x284be8['message']:String(_0x284be8))+'\x0a');});return{'settle':async _0x1149f5=>{const _0x188fbb=_0x338b23;if(await _0x3f3975,_0x3b6df0===0x0)return _0x1149f5;await _0x49cd0e()[_0x188fbb(0x309)]();for(let _0x410893 of _0x3c6460)_0x410893();_0x3c6460=[];let _0x320cca=_0x49cd0e()[_0x188fbb(0x220)]()[_0x188fbb(0x34e)](_0x30144e)[_0x188fbb(0x39e)](_0x158241=>_0x158241[_0x188fbb(0x26f)]==='actionable_error'||_0x350435(_0x158241)||_0x158241[_0x188fbb(0x366)]==='ai'&&_0x158241[_0x188fbb(0x26f)]!=='agent_thought'&&_0x158241['widget']!=='followUpsRenderer'&&!!_0x158241['content']);if(!_0x320cca)return{..._0x1149f5,'failed':!0x0,'text':_0x188fbb(0x355)};let _0x3d4c7a=_0x320cca['widget']===_0x188fbb(0x263);return typeof _0x320cca[_0x188fbb(0x3cb)]!=_0x188fbb(0x265)?{..._0x1149f5,'failed':_0x3d4c7a}:{..._0x1149f5,'failed':_0x3d4c7a,'text':_0x3d4c7a?_0x3f730b(_0x320cca[_0x188fbb(0x3cb)]):_0x320cca[_0x188fbb(0x3cb)]};},'stop':()=>{const _0x3214c5=_0x338b23;_0x2426a2=!0x0,_0x4908be(),_0x4a6f59[_0x3214c5(0x39d)]();}};}var Gt=[_0x21c914(0x283),_0x21c914(0x29e),'models',_0x21c914(0x207),_0x21c914(0x21c),'whoami',_0x21c914(0x24b),_0x21c914(0x368),_0x21c914(0x215),_0x21c914(0x320),_0x21c914(0x3b2),_0x21c914(0x33a),_0x21c914(0x2de),_0x21c914(0x1e0),_0x21c914(0x22f),_0x21c914(0x2fb)],ue=['',_0x21c914(0x3ab),_0x21c914(0x3c5),_0x21c914(0x24b),_0x21c914(0x368),_0x21c914(0x215),'evaluate',_0x21c914(0x3b2),_0x21c914(0x33a),_0x21c914(0x2de),_0x21c914(0x1e0),'delegations',_0x21c914(0x2fb)],pe=['low',_0x21c914(0x36f),_0x21c914(0x2c5),_0x21c914(0x3c8),_0x21c914(0x3b0)],Wt=_0x49f126,B=_0x21c914(0x391);function b(_0x3a5263,_0x43bf23,_0x4af85b,_0x5ab684){const _0x3d27c8=_0x21c914;let _0x25b68a=_0x3a5263[_0x43bf23];return(!_0x25b68a||_0x25b68a[_0x3d27c8(0x253)]>0x1&&_0x25b68a[_0x3d27c8(0x3a0)]('-'))&&(console[_0x3d27c8(0x2c3)](_0x4af85b+_0x3d27c8(0x2e5)+_0x5ab684+'.'),process[_0x3d27c8(0x397)](0x2)),_0x25b68a;}function K(_0x4ce2b0,_0x172b46,_0x3a2b4e,_0x1615ff){const _0x27e788=_0x21c914;let _0x5d1629=b(_0x4ce2b0,_0x172b46,_0x3a2b4e,_0x27e788(0x1d9)),_0x2be1ff=Number(_0x5d1629);return(!/^\d+$/[_0x27e788(0x2b8)](_0x5d1629)||_0x2be1ff<0x1||!Number['isSafeInteger'](_0x2be1ff)||_0x1615ff!==void 0x0&&_0x2be1ff>_0x1615ff)&&(console[_0x27e788(0x2c3)](_0x3a2b4e+_0x27e788(0x2ba)+(_0x1615ff===void 0x0?'1\x20or\x20more':'from\x201\x20to\x20'+_0x1615ff)+_0x27e788(0x304)+_0x5d1629+'.'),process[_0x27e788(0x397)](0x2)),_0x2be1ff;}function Kt(_0x2d5212){const _0x259427=_0x21c914;let _0x21110c={'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':_0x259427(0x23d),'inputFormat':'text','replayUserMessages':!0x1,'preloadSkills':[],'attachments':[],'skipEnvCheck':!0x1,'includeSubAgents':!0x1,'operands':[],'help':!0x1,'version':!0x1};Gt[_0x259427(0x1e6)](_0x2d5212[0x0])&&(_0x21110c['subcommand']=_0x2d5212[0x0],_0x2d5212=_0x2d5212['slice'](0x1));let _0x3c05c8=[];for(let _0x5c0569=0x0;_0x5c0569<_0x2d5212['length'];_0x5c0569++){let _0x17efad=_0x2d5212[_0x5c0569];switch(_0x17efad){case _0x259427(0x29c):case'-p':_0x21110c[_0x259427(0x28e)]=!0x0;break;case'--keep-alive':_0x21110c['keepAlive']=!0x0;break;case _0x259427(0x369):_0x21110c[_0x259427(0x3d7)]=!0x0;break;case _0x259427(0x306):_0x21110c[_0x259427(0x3cc)]=!0x0;break;case'--no-computer-use':_0x21110c[_0x259427(0x25d)]=!0x0;break;case _0x259427(0x3bf):_0x21110c[_0x259427(0x391)]=!0x0,_0x21110c[_0x259427(0x25d)]=!0x0,_0x21110c[_0x259427(0x275)]['push'](...Wt);break;case _0x259427(0x22b):_0x21110c[_0x259427(0x286)]=!0x0;break;case _0x259427(0x248):_0x21110c[_0x259427(0x22e)]=!0x0;break;case _0x259427(0x363):_0x21110c[_0x259427(0x30b)]=!0x0;break;case _0x259427(0x3aa):_0x21110c[_0x259427(0x243)]=!0x0;break;case'--quiet':case'-q':_0x21110c['quiet']=!0x0;break;case _0x259427(0x2d4):_0x21110c[_0x259427(0x353)]=!0x0;break;case _0x259427(0x371):_0x21110c[_0x259427(0x3a4)]=_0x2d5212[++_0x5c0569];break;case _0x259427(0x293):_0x21110c[_0x259427(0x2a8)]=_0x2d5212[++_0x5c0569];break;case _0x259427(0x2d0):_0x21110c[_0x259427(0x1d1)]=_0x2d5212[++_0x5c0569];break;case'--interop':_0x21110c[_0x259427(0x239)]=_0x2d5212[++_0x5c0569];break;case'--worker-id':_0x21110c[_0x259427(0x375)]=_0x2d5212[++_0x5c0569];break;case _0x259427(0x2e6):_0x21110c['preloadSkills']['push'](b(_0x2d5212,++_0x5c0569,_0x17efad,_0x259427(0x2c2)));break;case'--project':{let _0x50f2e6=b(_0x2d5212,++_0x5c0569,_0x17efad,_0x259427(0x367));_0x590bab(_0x50f2e6)||(console['error'](_0x259427(0x3b3)+_0x50f2e6+_0x259427(0x3a7)),process[_0x259427(0x397)](0x2)),_0x21110c[_0x259427(0x3a5)]=_0x50f2e6;break;}case'--vertical':_0x21110c['vertical']=b(_0x2d5212,++_0x5c0569,_0x17efad,'a\x20vertical\x20id');break;case _0x259427(0x2b0):{let _0x48650f=b(_0x2d5212,++_0x5c0569,_0x17efad,_0x259427(0x2a9)+_0x11a1fc[_0x259427(0x350)](_0x259427(0x252))+')');_0x5456e9(_0x48650f)||(console[_0x259427(0x2c3)](_0x259427(0x314)+_0x48650f+_0x259427(0x1df)+_0x11a1fc[_0x259427(0x350)](_0x259427(0x252))+'.'),process[_0x259427(0x397)](0x2)),_0x21110c[_0x259427(0x34d)]=_0x48650f;break;}case _0x259427(0x2f4):{let _0x32886b=b(_0x2d5212,++_0x5c0569,_0x17efad,_0x259427(0x2a9)+j[_0x259427(0x350)](_0x259427(0x252))+')');se(_0x32886b)||(console[_0x259427(0x2c3)]('Invalid\x20--input-format:\x20'+_0x32886b+'.\x20Use\x20'+j['join']('\x20|\x20')+'.'),process[_0x259427(0x397)](0x2)),_0x21110c['inputFormat']=_0x32886b;break;}case _0x259427(0x261):_0x21110c[_0x259427(0x2d2)]=!0x0;break;case'--session':_0x21110c[_0x259427(0x2bf)]=b(_0x2d5212,++_0x5c0569,_0x17efad,_0x259427(0x337));break;case _0x259427(0x1fd):_0x21110c[_0x259427(0x2c8)]=K(_0x2d5212,++_0x5c0569,_0x17efad);break;case _0x259427(0x266):_0x21110c[_0x259427(0x2b1)]=K(_0x2d5212,++_0x5c0569,_0x17efad,_0x4fd244);break;case _0x259427(0x204):_0x21110c['includeSubAgents']=!0x0;break;case'--json-schema':_0x21110c[_0x259427(0x399)]=b(_0x2d5212,++_0x5c0569,_0x17efad,'a\x20JSON\x20schema\x20file');break;case _0x259427(0x1fa):{let _0x414872=_0x2bc3be[_0x259427(0x3d4)](process['cwd'](),b(_0x2d5212,++_0x5c0569,_0x17efad,_0x259427(0x2e2)));_0x1796bd[_0x259427(0x290)](_0x414872)||(console[_0x259427(0x2c3)](_0x259427(0x357)+_0x414872),process[_0x259427(0x397)](0x2)),_0x21110c[_0x259427(0x3b9)][_0x259427(0x3c0)](_0x414872);break;}case _0x259427(0x218):_0x21110c['turnId']=b(_0x2d5212,++_0x5c0569,_0x17efad,'a\x20turn\x20id');break;case _0x259427(0x2fd):_0x21110c['delegateTo']=b(_0x2d5212,++_0x5c0569,_0x17efad,_0x259427(0x251));break;case _0x259427(0x2c4):_0x21110c[_0x259427(0x244)]=b(_0x2d5212,++_0x5c0569,_0x17efad,_0x259427(0x26d));break;case _0x259427(0x3c4):_0x21110c[_0x259427(0x387)]=K(_0x2d5212,++_0x5c0569,_0x17efad,0x16d);break;case _0x259427(0x370):_0x21110c['workingDirectory']=_0x2bc3be[_0x259427(0x3d4)](process[_0x259427(0x29d)](),b(_0x2d5212,++_0x5c0569,_0x17efad,_0x259427(0x299)));break;case'--skills-path':_0x21110c[_0x259427(0x1dd)]=_0x2bc3be[_0x259427(0x3d4)](process['cwd'](),b(_0x2d5212,++_0x5c0569,_0x17efad,_0x259427(0x299)));break;case'--effort':{let _0x4dc9ad=b(_0x2d5212,++_0x5c0569,_0x17efad,_0x259427(0x1ed));pe[_0x259427(0x1e6)](_0x4dc9ad)||(console[_0x259427(0x2c3)](_0x259427(0x1cb)+_0x4dc9ad+'.\x20Use\x20'+pe[_0x259427(0x350)](_0x259427(0x252))+'.'),process[_0x259427(0x397)](0x2)),_0x21110c[_0x259427(0x360)]=_0x4dc9ad;break;}case'--tenant':{let _0x2e62df=_0x2d5212[++_0x5c0569];(!_0x2e62df||_0x2e62df[_0x259427(0x3a0)]('--'))&&(console['error'](_0x259427(0x1cd)),process[_0x259427(0x397)](0x2)),_0x21110c[_0x259427(0x29e)]=_0x2e62df;break;}case _0x259427(0x224):{let _0x3a5ba0=_0x2d5212[++_0x5c0569];['alpha',_0x259427(0x214),_0x259427(0x2be),_0x259427(0x1fe)]['includes'](_0x3a5ba0)||(console[_0x259427(0x2c3)](_0x259427(0x26e)+_0x3a5ba0+'.\x20Use\x20alpha\x20|\x20staging\x20|\x20production\x20|\x20localhost.'),process[_0x259427(0x397)](0x2)),_0x21110c[_0x259427(0x296)]=_0x3a5ba0;break;}case _0x259427(0x345):case _0x259427(0x1f2):{let _0x498ea2=b(_0x2d5212,++_0x5c0569,_0x17efad,_0x259427(0x27f)),_0x7f042=_0x37dfb6(_0x498ea2);if(_0x7f042['ok']===!0x1){console[_0x259427(0x2c3)](_0x34d61f(_0x498ea2,_0x7f042['rejection'])),process['exit'](0x2);break;}_0x21110c[_0x259427(0x2a4)]=_0x7f042[_0x259427(0x288)];break;}case'--skip-env-check':_0x21110c[_0x259427(0x1db)]=!0x0;break;case'-h':case _0x259427(0x22c):_0x21110c[_0x259427(0x228)]=!0x0;break;case'-v':case _0x259427(0x305):_0x21110c[_0x259427(0x37d)]=!0x0;break;default:_0x17efad['startsWith']('--')&&(console[_0x259427(0x2c3)](_0x259427(0x2ea)+_0x17efad),process[_0x259427(0x397)](0x2)),_0x3c05c8[_0x259427(0x3c0)](_0x17efad);}}return _0x21110c[_0x259427(0x29e)]!==void 0x0&&_0x21110c[_0x259427(0x2d9)]!==_0x259427(0x283)&&(console['error'](_0x259427(0x278)),process[_0x259427(0x397)](0x2)),_0x21110c[_0x259427(0x2a4)]!==void 0x0&&_0x21110c[_0x259427(0x296)]!==void 0x0&&(console[_0x259427(0x2c3)]('Pass\x20either\x20--env\x20(a\x20named\x20cloud)\x20or\x20--url\x20(any\x20other\x20deployment),\x20not\x20both.'),process[_0x259427(0x397)](0x2)),_0x21110c[_0x259427(0x2a4)]!==void 0x0&&_0x21110c[_0x259427(0x2d9)]!==_0x259427(0x283)&&(console[_0x259427(0x2c3)]('--url\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Other\x20commands\x20follow\x20the\x20saved\x20login,\x20or\x20--backend\x20<url>.'),process[_0x259427(0x397)](0x2)),_0x21110c[_0x259427(0x387)]!==void 0x0&&_0x21110c[_0x259427(0x2d9)]!=='usage'&&(console[_0x259427(0x2c3)]('--days\x20applies\x20to\x20`delegate-cli\x20usage\x20activity|daily`\x20only.'),process[_0x259427(0x397)](0x2)),_0x21110c[_0x259427(0x399)]!==void 0x0&&(_0x21110c[_0x259427(0x2d9)]!==_0x259427(0x2de)&&_0x21110c[_0x259427(0x2d9)]!==''||_0x21110c[_0x259427(0x3d7)])&&(console[_0x259427(0x2c3)]('--json-schema\x20applies\x20to\x20prompts\x20and\x20to\x20`delegate-cli\x20complete`\x20only.'),process[_0x259427(0x397)](0x2)),_0x21110c['attachments']['length']>0x0&&(_0x21110c[_0x259427(0x2d9)]!==''||_0x21110c[_0x259427(0x3d7)])&&(console[_0x259427(0x2c3)](_0x259427(0x250)),process[_0x259427(0x397)](0x2)),_0x21110c[_0x259427(0x243)]&&(_0x21110c[_0x259427(0x2d9)]!==''||_0x21110c[_0x259427(0x3d7)])&&(console['error'](_0x259427(0x2b5)),process[_0x259427(0x397)](0x2)),_0x21110c['taskAutomation']&&(_0x21110c['headless']||_0x21110c[_0x259427(0x25d)]||_0x21110c[_0x259427(0x20f)]?.[_0x259427(0x2a1)]()===B)&&(console[_0x259427(0x2c3)]('--task-automation\x20needs\x20computer\x20use:\x20the\x20task\x20log\x20is\x20written\x20by\x20the\x20UI-automation\x20tools.\x20Drop\x20--headless,\x20--no-computer-use,\x20--cartographer\x20and\x20--vertical\x20cartographer.'),process[_0x259427(0x397)](0x2)),_0x21110c[_0x259427(0x391)]&&(_0x21110c[_0x259427(0x20f)]!==void 0x0&&_0x21110c[_0x259427(0x20f)][_0x259427(0x2a1)]()!==B&&(console[_0x259427(0x2c3)]('--cartographer\x20runs\x20the\x20'+B+'\x20vertical,\x20so\x20it\x20cannot\x20run\x20as\x20--vertical\x20'+_0x21110c[_0x259427(0x20f)]+_0x259427(0x325)),process[_0x259427(0x397)](0x2)),_0x21110c['vertical']=B),_0x21110c['skipEnvCheck']&&_0x21110c['subcommand']!=='login'&&(console[_0x259427(0x2c3)]('--skip-env-check\x20applies\x20to\x20`delegate-cli\x20login`\x20only.'),process[_0x259427(0x397)](0x2)),_0x21110c['outputFormat']!==_0x259427(0x23d)&&!ue[_0x259427(0x1e6)](_0x21110c[_0x259427(0x2d9)])&&(console[_0x259427(0x2c3)](_0x259427(0x212)+_0x21110c[_0x259427(0x34d)]+_0x259427(0x329)+ue[_0x259427(0x398)](Boolean)[_0x259427(0x350)](',\x20')+'.'),process[_0x259427(0x397)](0x2)),(_0x21110c[_0x259427(0x383)]!==_0x259427(0x23d)||_0x21110c[_0x259427(0x2d2)])&&_0x21110c[_0x259427(0x2d9)]!==''&&(console[_0x259427(0x2c3)](_0x259427(0x39f)),process[_0x259427(0x397)](0x2)),_0x21110c[_0x259427(0x2d2)]&&_0x21110c[_0x259427(0x383)]!=='stream-json'&&(console[_0x259427(0x2c3)](_0x259427(0x384)),process[_0x259427(0x397)](0x2)),_0x21110c['inputFormat']===_0x259427(0x3b4)&&_0x21110c['outputFormat']!==_0x259427(0x3b4)&&(console[_0x259427(0x2c3)]('--input-format\x20stream-json\x20needs\x20--output-format\x20stream-json:\x20the\x20steering\x20messages\x20are\x20answered\x20on\x20stdout.'),process[_0x259427(0x397)](0x2)),(_0x21110c['page']!==void 0x0||_0x21110c['limit']!==void 0x0||_0x21110c[_0x259427(0x330)])&&_0x21110c['subcommand']!==_0x259427(0x368)&&(console['error'](_0x259427(0x2bb)),process[_0x259427(0x397)](0x2)),(_0x21110c['delegateTo']!==void 0x0||_0x21110c[_0x259427(0x244)]!==void 0x0)&&_0x21110c[_0x259427(0x2d9)]!==_0x259427(0x22f)&&(console[_0x259427(0x2c3)](_0x259427(0x3b5)),process[_0x259427(0x397)](0x2)),_0x21110c[_0x259427(0x2e7)]!==void 0x0&&_0x21110c[_0x259427(0x2d9)]!==_0x259427(0x368)&&(console[_0x259427(0x2c3)](_0x259427(0x2f8)),process['exit'](0x2)),_0x21110c['preloadSkills']=[...new Set(_0x21110c[_0x259427(0x275)])],_0x21110c['operands']=_0x3c05c8,_0x21110c[_0x259427(0x30c)]=_0x3c05c8[_0x259427(0x350)]('\x20'),_0x21110c[_0x259427(0x383)]===_0x259427(0x3b4)&&_0x21110c[_0x259427(0x30c)]!==''&&(console[_0x259427(0x2c3)](_0x259427(0x20a)),process[_0x259427(0x397)](0x2)),_0x21110c;}var O=_0x46f616=>{process['stdout']['write'](_0x46f616);};function Qt(){const _0x3218f0=_0x21c914;let _0x12f549=process[_0x3218f0(0x348)][_0x3218f0(0x205)],_0x2392e3=_0x12f549['bind'](process[_0x3218f0(0x348)]),_0x4d549e=O;return O=_0x421a2a=>{_0x2392e3(_0x421a2a);},process[_0x3218f0(0x348)]['write']=(..._0x4fe034)=>process[_0x3218f0(0x37f)][_0x3218f0(0x205)](..._0x4fe034),()=>{const _0x532b90=_0x3218f0;process['stdout'][_0x532b90(0x205)]=_0x12f549,O=_0x4d549e;};}function m(_0x3eadb9,_0x58c897,_0x57f55e){const _0x3fc295=_0x21c914;if(_0x3eadb9[_0x3fc295(0x34d)]===_0x3fc295(0x23d)){_0x57f55e(_0x58c897);return;}O(_0x3151dc(_0x58c897));}function qt(){const _0x46f4eb=_0x21c914;let _0x856d05='\x0adelegate-cli\x20—\x20Delegate\x20agent\x20CLI\x0a\x0aUsage:\x0a\x20\x20delegate-cli\x20[flags]\x20[\x22<prompt>\x22]\x20\x20\x20\x20Start\x20a\x20conversation\x20in\x20a\x20terminal\x0a\x20\x20delegate-cli\x20--print\x20\x22<prompt>\x22\x20\x20\x20\x20\x20\x20Send\x20one\x20prompt,\x20print\x20the\x20response,\x20and\x20exit\x0a\x20\x20delegate-cli\x20[flags]\x20-\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Read\x20one\x20prompt\x20from\x20stdin\x20through\x20EOF,\x20then\x20exit\x0a\x20\x20delegate-cli\x20-p\x20\x22<prompt>\x22\x20--output-format\x20json|stream-json\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20One\x20turn\x20with\x20JSON-only\x20stdout;\x20exit\x201\x20on\x20error\x0a\x20\x20delegate-cli\x20--json-schema\x20FILE\x20\x22<prompt>\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20One\x20turn,\x20then\x20its\x20result\x20extracted\x20as\x20JSON\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20matching\x20the\x20schema\x20in\x20FILE\x20(printed\x20after\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20answer;\x20\x22structured\x22\x20in\x20the\x20JSON\x20result);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20exit\x201\x20when\x20the\x20extraction\x20fails\x0a\x20\x20delegate-cli\x20--attach\x20PATH\x20[--attach\x20PATH\x20...]\x20\x22<prompt>\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Send\x20files\x20or\x20folders\x20with\x20the\x20first\x20message\x0a\x20\x20delegate-cli\x20login\x20[--env\x20NAME\x20|\x20--url\x20BASE]\x20[--tenant\x20NAME]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20OAuth\x20browser\x20login\x20→\x20~/.aria/sdk-auth.json.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--env\x20or\x20--url\x20required\x20on\x20FIRST\x20login;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20afterwards\x20defaults\x20to\x20the\x20saved\x20login\x27s\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20deployment.\x20--tenant\x20picks\x20a\x20tenant\x20by\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20name;\x20without\x20it\x20a\x20re-login\x20keeps\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20saved\x20tenant\x0a\x20\x20delegate-cli\x20tenant\x20[NAME]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20the\x20organization\x27s\x20tenants,\x20or\x20switch\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20saved\x20login\x20to\x20NAME\x20(no\x20browser)\x0a\x20\x20delegate-cli\x20logout\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Remove\x20the\x20saved\x20CLI\x20login\x0a\x20\x20delegate-cli\x20whoami\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20the\x20current\x20login\x20(org,\x20tenant,\x20token\x20expiry)\x0a\x20\x20delegate-cli\x20models\x20[--env\x20NAME]\x20\x20\x20\x20\x20List\x20available\x20LLM\x20models\x20for\x20the\x20current\x20tenant,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20with\x20any\x20BYO\x20configuration\x20warning\x20per\x20model\x0a\x20\x20delegate-cli\x20sessions\x20[list]\x20[--page\x20N]\x20[--limit\x20N]\x20[--include-subagents]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20your\x20backend\x20chat\x20sessions,\x20most\x20recently\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20active\x20first\x20(resume\x20one\x20with\x20--session\x20ID)\x0a\x20\x20delegate-cli\x20sessions\x20show|delete\x20ID\x20Show\x20one\x20session\x27s\x20title\x20and\x20owner,\x20or\x20delete\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20it\x20with\x20its\x20messages\x20and\x20sub-agents\x20(no\x20prompt)\x0a\x20\x20delegate-cli\x20sessions\x20rename\x20ID\x20TITLE\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Rename\x20a\x20session\x20(1-500\x20characters)\x0a\x20\x20delegate-cli\x20sessions\x20fork\x20ID\x20[MESSAGE]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Copy\x20session\x20ID\x20into\x20a\x20new\x20session,\x20up\x20to\x20and\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20including\x20message\x20MESSAGE\x20(default:\x20all\x20of\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20it);\x20continue\x20it\x20with\x20--session\x20NEW_ID\x0a\x20\x20delegate-cli\x20sessions\x20cancel\x20ID\x20--turn\x20TURN\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Cancel\x20turn\x20TURN\x20running\x20on\x20session\x20ID\x20in\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20another\x20process;\x20exits\x201\x20when\x20no\x20such\x20turn\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20is\x20in\x20progress\x0a\x20\x20delegate-cli\x20check\x20[--env\x20NAME]\x20[--headless]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Verify\x20auth,\x20backend\x20readiness,\x20backend\x20and\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20interop\x20without\x20sending\x20a\x20prompt;\x20exits\x201\x20when\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20any\x20check\x20fails\x0a\x20\x20delegate-cli\x20usage\x20[--session\x20ID]\x20\x20\x20\x20Quota\x20and\x20spend:\x20licensing\x20quota,\x20monthly\x20spend\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20and\x20cap,\x20Cartographer\x20allowance\x0a\x20\x20delegate-cli\x20usage\x20activity|daily\x20[--days\x20N]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Activity\x20totals,\x20or\x20per-day\x20usage,\x20over\x20the\x20last\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20N\x20days\x20(1-365,\x20default\x2030)\x0a\x20\x20delegate-cli\x20evaluate|rerank|verify\x20FILE|-\x20[--model\x20ID]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Stateless\x20typed\x20judgments:\x20send\x20the\x20JSON\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20request\x20in\x20FILE\x20(or\x20stdin\x20with\x20-)\x20to\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20/v1/completions/<command>\x20and\x20print\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20answers;\x20--model\x20overrides\x20its\x20\x22model\x22.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Exits\x201\x20when\x20the\x20backend\x20rejects\x20it\x0a\x20\x20delegate-cli\x20complete\x20--json-schema\x20FILE\x20[--model\x20ID]\x20[--session\x20ID]\x20\x22<prompt>\x22|-\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20One\x20structured\x20completion,\x20no\x20agent\x20turn:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20print\x20the\x20JSON\x20object\x20matching\x20the\x20schema\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20in\x20FILE\x20(--output-format\x20json\x20prints\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{structured,\x20usage});\x20--session\x20adds\x20that\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20session\x27s\x20history\x20as\x20context.\x20Exits\x201\x20when\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20output\x20fails\x20the\x20schema\x20(422)\x20or\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20backend\x20rejects\x20the\x20request\x0a\x20\x20delegate-cli\x20transcribe\x20FILE|-\x20\x20\x20\x20\x20\x20\x20Speech-to-text:\x20print\x20the\x20text\x20of\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20audio\x20in\x20FILE,\x20or\x20on\x20stdin\x20with\x20-.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20mp3,\x20mp4,\x20mpeg,\x20mpga,\x20m4a,\x20wav\x20or\x20webm,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20up\x20to\x2014\x20MB.\x20Exits\x202\x20when\x20the\x20audio\x20is\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20refused\x20locally,\x201\x20when\x20the\x20backend\x20rejects\x20it\x0a\x20\x20delegate-cli\x20org-users\x20QUERY\x20\x20\x20\x20\x20\x20\x20\x20\x20Search\x20your\x20organization\x27s\x20users\x20by\x20name\x20or\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20email\x20prefix\x20(2-100\x20characters)\x0a\x20\x20delegate-cli\x20delegations\x20create\x20--session\x20ID\x20[--to\x20WHO]\x20[--summary\x20TEXT]\x20\x22<task>\x22|-\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Hand\x20a\x20task\x20from\x20session\x20ID\x20to\x20a\x20colleague\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(WHO:\x20an\x20email,\x20or\x20a\x20name\x20matching\x20one\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20person);\x20without\x20--to,\x20print\x20a\x20link\x20anyone\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20in\x20the\x20organization\x20can\x20claim\x0a\x20\x20delegate-cli\x20delegations\x20pending\x20SESSION\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Answers\x20to\x20delegations\x20from\x20SESSION\x20that\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20await\x20acceptance\x20(poll\x20this)\x0a\x20\x20delegate-cli\x20delegations\x20accept|dismiss|cancel|delete\x20ID\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Take\x20an\x20answer\x20into\x20its\x20session,\x20drop\x20it,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20withdraw\x20a\x20live\x20delegation,\x20or\x20delete\x20it\x0a\x20\x20delegate-cli\x20delegations\x20list\x20PROJECT\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Every\x20delegation\x20targeting\x20a\x20backend\x20project\x0a\x20\x20delegate-cli\x20delegations\x20show|claim\x20ID|LINK\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Read\x20a\x20delegation\x20assigned\x20to\x20you\x20(or\x20a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20delegate://delegation/…\x20link),\x20or\x20claim\x20it:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20prints\x20the\x20session\x20to\x20work\x20it\x20in\x0a\x20\x20delegate-cli\x20delegations\x20complete\x20ID\x20\x22<answer>\x22|-\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Send\x20the\x20answer\x20to\x20a\x20delegation\x20you\x20claimed\x0a\x20\x20delegate-cli\x20host\x20[flags]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Run\x20this\x20PC\x20as\x20a\x20remote\x20worker\x20until\x20Ctrl+C\x0a\x20\x20delegate-cli\x20host\x20install\x20[flags]\x20\x20\x20\x20Auto-start\x20the\x20host\x20at\x20login\x20(macOS\x20LaunchAgent\x20/\x20Windows\x20Scheduled\x20Task)\x0a\x20\x20delegate-cli\x20host\x20uninstall\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Remove\x20auto-start\x0a\x20\x20delegate-cli\x20host\x20status\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20auto-start\x20state\x0a\x20\x20delegate-cli\x20--cleanup\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Stop\x20running\x20interop\x0a\x0aFlags:\x0a\x20\x20-p,\x20--print\x20\x20\x20\x20\x20\x20\x20Run\x20one\x20turn\x20and\x20exit,\x20including\x20any\x20tool\x20execution.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Automatic\x20when\x20stdin\x20or\x20stdout\x20is\x20not\x20a\x20terminal,\x20or\x20with\x20-\x0a\x20\x20--env\x20NAME\x20\x20\x20\x20\x20\x20\x20\x20alpha\x20|\x20staging\x20|\x20production\x20|\x20localhost\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Composes\x20backend\x20URL\x20from\x20saved\x20auth\x20(org/tenant\x20slugs).\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Omitted\x20→\x20the\x20deployment\x20you\x20logged\x20into\x20(delegate-cli\x20login).\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20localhost\x20→\x20http://localhost:5002.\x20No\x20saved\x20login\x20and\x20no\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--env/--backend/BACKEND_URL\x20is\x20an\x20error\x20—\x20never\x20a\x20guess.\x0a\x20\x20--url\x20BASE\x20\x20\x20\x20\x20\x20\x20\x20(login)\x20Base\x20URL\x20of\x20a\x20deployment\x20that\x20is\x20not\x20a\x20named\x20cloud\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20—\x20Automation\x20Suite,\x20Dedicated,\x20Public\x20Sector.\x20Accepts\x20a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20tenant\x20path\x20or\x20a\x20trailing\x20/identity_\x20and\x20reduces\x20it\x20to\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20origin.\x20Mutually\x20exclusive\x20with\x20--env;\x20also\x20settable\x20via\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20UIPATH_BASE_URL.\x20Alias:\x20--authority.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Automation\x20Suite\x20needs\x2026.10+\x20with\x20the\x20Delegate\x20service;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20the\x20deployment\x20rejects\x20the\x20built-in\x20client,\x20register\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20your\x20own\x20—\x20see\x20UIPATH_CLIENT_ID\x20in\x20the\x20README\x0a\x20\x20--skip-env-check\x20\x20(login)\x20Do\x20not\x20check\x20the\x20deployment\x20before\x20signing\x20in.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Escape\x20hatch\x20for\x20a\x20deployment\x20that\x20hides\x20its\x20OIDC\x20discovery\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20document\x20or\x20serves\x20Identity\x20from\x20another\x20origin;\x20it\x20also\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20gives\x20up\x20the\x20diagnosis\x20when\x20something\x20is\x20really\x20wrong\x0a\x20\x20--backend\x20URL\x20\x20\x20\x20\x20Full\x20backend\x20URL\x20—\x20escape\x20hatch\x20overrides\x20--env\x0a\x20\x20--tenant\x20NAME\x20\x20\x20\x20\x20(login)\x20Tenant\x20to\x20sign\x20into,\x20by\x20name\x20(case-insensitive).\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default:\x20the\x20saved\x20login\x27s\x20tenant\x20on\x20that\x20cloud,\x20else\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20org\x27s\x20first\x20tenant.\x20Later:\x20delegate-cli\x20tenant\x20<name>\x0a\x20\x20--model\x20NAME\x20\x20\x20\x20\x20\x20LLM\x20model\x20id\x20(e.g.\x20claude_sonnet_5_5,\x20kimi_k3).\x20Checked\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20against\x20the\x20tenant\x27s\x20catalog\x20(delegate-cli\x20models)\x20before\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20run\x20starts;\x20an\x20unknown\x20id\x20fails\x20and\x20lists\x20the\x20valid\x20ones.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default:\x20gpt_5_6_luna.\x20Also\x20settable\x20via\x20MODEL\x20env\x20var.\x0a\x20\x20--keep-alive\x20\x20\x20\x20\x20\x20Reuse/leave\x20interop\x20running\x20across\x20invocations\x0a\x20\x20--headless\x20\x20\x20\x20\x20\x20\x20\x20Skip\x20interop\x20(text-only\x20prompts)\x0a\x20\x20--no-computer-use\x20Keep\x20interop\x20—\x20file,\x20Office,\x20PDF\x20and\x20shell\x20tools\x20keep\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20working\x20—\x20but\x20drop\x20the\x20screen:\x20no\x20screenshots,\x20no\x20window\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20list,\x20no\x20UI-automation\x20tools.\x20Cuts\x20image\x20tokens\x20and\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20per-turn\x20screen\x20capture,\x20and\x20stops\x20desktop\x20window\x20titles\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20leaving\x20the\x20machine.\x20Use\x20for\x20document\x20and\x20file\x20work.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--headless\x20implies\x20this\x20and\x20turns\x20interop\x20off\x20as\x20well\x0a\x20\x20--no-connections\x20\x20Disable\x20orchestrator\x20ConnectionService\x20(silences\x20404\x20warnings)\x0a\x20\x20--no-security\x20\x20\x20\x20\x20Disable\x20tool\x20security\x20wrapper\x20(use\x20only\x20for\x20debugging)\x0a\x20\x20--no-memory\x20\x20\x20\x20\x20\x20\x20Do\x20not\x20send\x20the\x20Delegate\x20app\x27s\x20local\x20long-term\x20memories\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20with\x20each\x20turn,\x20and\x20do\x20not\x20ask\x20the\x20model\x20to\x20save\x20new\x20ones\x0a\x20\x20--task-automation\x20Record\x20every\x20UI\x20action\x20of\x20the\x20run,\x20with\x20the\x20selector\x20of\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20element\x20it\x20acted\x20on,\x20to\x20<working-dir>/captures/<session>/\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(~/.aria-sdk\x20without\x20--working-dir),\x20so\x20you\x20can\x20then\x20ask\x20for\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20task\x20as\x20a\x20UiPath\x20coded\x20workflow\x20(uipath-taskautomation\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20skill).\x20The\x20log\x20holds\x20on-screen\x20text\x20and\x20your\x20requests;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20typed\x20values\x20are\x20masked.\x20Needs\x20computer\x20use.\x20Ignored\x20with\x20a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20warning\x20where\x20the\x20deployment\x20does\x20not\x20offer\x20it\x20yet\x0a\x20\x20--attach\x20PATH\x20\x20\x20\x20\x20File\x20or\x20folder\x20sent\x20with\x20the\x20first\x20message\x20(repeatable),\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20as\x20the\x20Delegate\x20app\x20sends\x20attached\x20files:\x20images\x20inline,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20PDFs\x20and\x20other\x20documents\x20as\x20a\x20path\x20the\x20agent\x20reads,\x20text\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20inline\x20up\x20to\x2016,000\x20characters.\x2030\x20MiB\x20per\x20message\x20in\x20all;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20larger\x20files\x20go\x20as\x20a\x20path.\x20In\x20a\x20conversation,\x20later\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20messages\x20carry\x20none\x20of\x20their\x20own,\x20but\x20the\x20first\x20message\x27s\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20stay\x20in\x20context\x0a\x20\x20--preload-skill\x20NAME\x20\x20Preload\x20a\x20skill\x20into\x20the\x20session\x20(repeatable).\x20The\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20skill\x27s\x20content\x20is\x20attached\x20before\x20the\x20first\x20model\x20turn\x20—\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20same\x20mechanism\x20as\x20project\x20preloaded\x20skills\x20in\x20the\x20app\x0a\x20\x20--cartographer\x20\x20\x20\x20Cartographer\x20engagement\x20preset.\x20Equivalent\x20to\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--vertical\x20cartographer\x20--no-computer-use\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--preload-skill\x20business-analysis\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--preload-skill\x20project-task-list\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--preload-skill\x20knowledge-base\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--preload-skill\x20source-coverage\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--preload-skill\x20note-taker.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Add\x20--project/--working-dir\x20for\x20where\x20the\x20files\x20live,\x20and\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20extra\x20--preload-skill\x20flags\x20for\x20more\x20skills\x20—\x20a\x20skill\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20preset\x20already\x20covers\x20is\x20not\x20preloaded\x20twice.\x20An\x20explicit\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--headless\x20still\x20wins\x20and\x20turns\x20interop\x20off;\x20another\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--vertical\x20ID\x20is\x20refused\x0a\x20\x20--project\x20ID\x20\x20\x20\x20\x20\x20Route\x20the\x20session\x27s\x20local\x20wiki\x20and\x20plans\x20to\x20a\x20project\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(<working-dir>/projects/<ID>/wiki).\x20Client-side\x20key\x20only\x0a\x20\x20--vertical\x20ID\x20\x20\x20\x20\x20Run\x20the\x20session\x20as\x20that\x20product\x27s\x20vertical,\x20as\x20its\x20tab\x20in\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20desktop\x20app\x20does,\x20with\x20no\x20desktop\x20app\x20installed:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20cartographer\x20brings\x20the\x20Map\x20of\x20Work\x20and,\x20without\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--preload-skill,\x20its\x20template\x27s\x20skills.\x20Default:\x20Delegate\x0a\x20\x20--working-dir\x20PATH\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Shell\x20cwd\x20for\x20the\x20agent\x20and\x20root\x20for\x20SDK-local\x20state.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Relative\x20paths\x20resolve\x20against\x20the\x20current\x20directory;\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20directory\x20is\x20created\x20if\x20missing\x0a\x20\x20--skills-path\x20PATH\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Folder\x20of\x20custom\x20skills,\x20loaded\x20on\x20top\x20of\x20the\x20skills\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20package\x20ships;\x20wins\x20on\x20a\x20name\x20clash\x20(also:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20DELEGATE_BUNDLED_SKILLS_PATH)\x0a\x20\x20--effort\x20TIER\x20\x20\x20\x20\x20Reasoning\x20effort:\x20low\x20|\x20medium\x20|\x20high\x20|\x20xhigh\x20|\x20max.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default:\x20the\x20model\x27s\x20recommended\x20tier\x0a\x20\x20--session\x20ID\x20\x20\x20\x20\x20\x20Continue\x20an\x20existing\x20backend\x20session\x20(an\x20unknown\x20id\x20exits\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x201;\x20the\x20backend\x20assigns\x20new\x20ids).\x20For\x20complete:\x20the\x20session\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20whose\x20history\x20is\x20the\x20context\x0a\x20\x20--json-schema\x20FILE\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20JSON\x20schema\x20the\x20structured\x20answer\x20must\x20match\x20(complete,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20and\x20prompts:\x20implies\x20--print)\x0a\x20\x20--runner-url\x20URL\x20\x20(host)\x20Runner\x20worker\x20WS\x20URL.\x20Required;\x20or\x20CONTROL_PLANE_WS_URL\x20env\x0a\x20\x20--interop\x20PATH\x20\x20\x20\x20(host)\x20Interop\x20binary\x20path;\x20or\x20INTEROP_EXECUTABLE_PATH\x20env.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Absent\x20→\x20registration/discovery\x20only,\x20tool\x20execution\x20disabled\x0a\x20\x20--worker-id\x20ID\x20\x20\x20\x20(host)\x20Stable\x20worker\x20identity;\x20or\x20WORKER_ID\x20env.\x20Default:\x20hostname\x0a\x20\x20--page\x20N\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(sessions)\x20Page\x20to\x20show,\x20from\x201.\x20Default:\x201\x0a\x20\x20--limit\x20N\x20\x20\x20\x20\x20\x20\x20\x20\x20(sessions)\x20Rows\x20per\x20page,\x201-100.\x20Default:\x2030\x0a\x20\x20--include-subagents\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(sessions)\x20Also\x20list\x20sub-agent\x20sessions,\x20hidden\x20by\x20default\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20as\x20in\x20the\x20desktop\x20app\x27s\x20history\x0a\x20\x20--to\x20WHO\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(delegations\x20create)\x20Assign\x20to\x20this\x20person:\x20an\x20email,\x20or\x20a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20name\x20that\x20matches\x20exactly\x20one\x20colleague\x20(see\x20org-users)\x0a\x20\x20--summary\x20TEXT\x20\x20\x20\x20(delegations\x20create)\x20The\x20briefing\x20the\x20person\x20starts\x20from.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default:\x20empty,\x20for\x20a\x20task\x20that\x20stands\x20on\x20its\x20own\x0a\x20\x20--output-format\x20FMT\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20text\x20(default)\x20|\x20json\x20|\x20stream-json.\x20json\x20prints\x20one\x20result\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20object\x20on\x20exit;\x20stream-json\x20prints\x20every\x20agent\x20event\x20as\x20one\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20JSON\x20line,\x20then\x20the\x20result.\x20Both\x20keep\x20stdout\x20JSON-only\x20(logs,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20progress\x20and\x20the\x20session\x20id\x20go\x20to\x20stderr),\x20imply\x20--print,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20and\x20exit\x201\x20when\x20the\x20turn\x20ends\x20in\x20error.\x20Also\x20honoured\x20by\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20every\x20subcommand\x20that\x20prints\x20a\x20result\x20(all\x20but\x20login,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20logout,\x20tenant\x20and\x20host)\x0a\x20\x20--input-format\x20FMT\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20text\x20(default)\x20|\x20stream-json.\x20stream-json\x20reads\x20one\x20JSON\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20user\x20message\x20per\x20line\x20on\x20stdin\x20while\x20the\x20turn\x20runs:\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20first\x20is\x20the\x20prompt\x20(give\x20none\x20as\x20an\x20argument),\x20each\x20later\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20one\x20steers\x20the\x20turn\x20in\x20flight.\x20Needs\x20--output-format\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20stream-json\x0a\x20\x20--replay-user-messages\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(--input-format\x20stream-json)\x20Echo\x20each\x20steering\x20message\x20on\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20stdout\x20(isReplay:\x20true,\x20same\x20uuid)\x20once\x20the\x20agent\x20takes\x20it\x0a\x20\x20-q,\x20--quiet\x20\x20\x20\x20\x20\x20\x20Suppress\x20🤔\x20thinking\x20output\x20to\x20stderr\x0a\x20\x20--verbose\x20\x20\x20\x20\x20\x20\x20\x20\x20Surface\x20the\x20SDK\x27s\x20and\x20the\x20framework\x27s\x20own\x20logs.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Diagnostics\x20only,\x20on\x20stdout;\x20independent\x20of\x20-q\x0a\x20\x20-h,\x20--help\x20\x20\x20\x20\x20\x20\x20\x20Show\x20this\x20help\x0a\x20\x20-v,\x20--version\x20\x20\x20\x20\x20Print\x20the\x20installed\x20CLI\x20version\x0a\x0aConversation:\x20Enter\x20sends\x20a\x20message;\x20/exit\x20or\x20EOF\x20exits;\x20Ctrl+C\x20stops\x20and\x20exits.\x0a\x20\x20Ctrl+C\x20during\x20a\x20turn\x20cancels\x20it\x20on\x20the\x20backend\x20too;\x20a\x20second\x20Ctrl+C\x20force-exits.\x0a\x20\x20An\x20optional\x20initial\x20prompt\x20is\x20followed\x20by\x20more\x20input.\x20The\x20session\x20ID\x20is\x20printed\x0a\x20\x20to\x20stderr;\x20resume\x20later\x20with\x20--session\x20ID.\x20Redirected\x20input\x20is\x20one\x20prompt.\x0aAuth:\x20prompts\x20auto-retry\x20on\x20401\x20by\x20opening\x20the\x20browser\x20to\x20re-login\x20(TTY\x20only),\x0a\x20\x20preserving\x20the\x20active\x20session.\x0a'[_0x46f4eb(0x2a1)]();console[_0x46f4eb(0x24f)](_0x856d05);}function zt(){const _0x57e41e=_0x21c914;try{return JSON[_0x57e41e(0x2e1)](_0x1796bd['readFileSync'](_0x2bc3be[_0x57e41e(0x350)](__dirname,'..',_0x57e41e(0x35e)),_0x57e41e(0x2f2)))[_0x57e41e(0x37d)]||'unknown';}catch{return'unknown';}}var Yt=0x7d0;async function me(_0x564497,_0x403890){const _0x17fc48=_0x21c914;let _0x400108=_0x403890?[_0x403890]:[];for await(let _0x440ac0 of _0x564497)_0x400108['push'](Buffer[_0x17fc48(0x35f)](_0x440ac0));return Buffer[_0x17fc48(0x386)](_0x400108)[_0x17fc48(0x300)](_0x17fc48(0x2f2))[_0x17fc48(0x2a1)]();}function Vt(_0xecaa30,_0x4d9f50){return new Promise(_0x175d20=>{const _0x5b0f13=_0xc28c;let _0x4c47fe=_0x53d606=>{const _0x114fb0=_0xc28c;clearTimeout(_0x1083e5),_0xecaa30[_0x114fb0(0x331)](_0x114fb0(0x2b7),_0x46c79f),_0xecaa30['off'](_0x114fb0(0x394),_0x1592fd),_0xecaa30[_0x114fb0(0x331)]('error',_0x1592fd),_0xecaa30[_0x114fb0(0x36c)](),_0x175d20(_0x53d606);},_0x46c79f=_0x5a39af=>_0x4c47fe(Buffer[_0x5b0f13(0x35f)](_0x5a39af)),_0x1592fd=()=>_0x4c47fe(null),_0x1083e5=setTimeout(()=>_0x4c47fe(null),_0x4d9f50);_0xecaa30['on'](_0x5b0f13(0x2b7),_0x46c79f),_0xecaa30['on'](_0x5b0f13(0x394),_0x1592fd),_0xecaa30['on'](_0x5b0f13(0x2c3),_0x1592fd),_0xecaa30[_0x5b0f13(0x372)]();});}async function H(_0xe48bcf,_0x48e243,_0x463ed2=Yt){const _0x36f1dc=_0x21c914;let _0x4aac10=_0xe48bcf==='-';if(!_0x4aac10&&_0xe48bcf)return _0xe48bcf;if(!_0x4aac10&&_0x48e243[_0x36f1dc(0x38a)])return'';if(_0x4aac10)return me(_0x48e243,null);let _0x3ed9c8=await Vt(_0x48e243,_0x463ed2);return _0x3ed9c8?me(_0x48e243,_0x3ed9c8):'';}function z(){const _0x3c03cc=_0x21c914;return _0x2bc3be[_0x3c03cc(0x350)](process.env.HOME||process.env.USERPROFILE||'',_0x3c03cc(0x1ce),'auth.json');}function G(_0x3b86aa){const _0x483996=_0x21c914;try{let _0x2fb0a8=JSON[_0x483996(0x2e1)](_0x1796bd[_0x483996(0x254)](_0x3b86aa,'utf-8'));return!_0x2fb0a8[_0x483996(0x2e4)]||!_0x2fb0a8[_0x483996(0x32f)]||!_0x2fb0a8[_0x483996(0x2d6)]?null:_0x2fb0a8;}catch{return null;}}function Xt(){const _0x5c0d00=_0x21c914;let _0x4a8f6c=[{'file':_0x5cc8ac(),'isDesktopFallback':!0x1},{'file':z(),'isDesktopFallback':!0x0}];for(let _0x4bc5e9 of _0x4a8f6c){let _0x55a1bd=G(_0x4bc5e9[_0x5c0d00(0x1d4)]);if(_0x55a1bd)return{..._0x4bc5e9,'auth':_0x55a1bd};}return null;}async function Zt(){const _0x48120e=_0x21c914;let _0x2bd256=_0x5cc8ac();if(!_0x1796bd[_0x48120e(0x290)](_0x2bd256)){let _0x11e3c6=z();console[_0x48120e(0x24f)](G(_0x11e3c6)?'No\x20CLI\x20login\x20found.\x20Note:\x20the\x20CLI\x20is\x20currently\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20'+_0x11e3c6+_0x48120e(0x374):_0x48120e(0x333));return;}_0x1796bd[_0x48120e(0x2b4)](_0x2bd256),console[_0x48120e(0x24f)](_0x48120e(0x2ca)+_0x2bd256);}async function en(_0x32fe28){const _0x10d0fc=_0x21c914;let _0x17618c=Y(),_0x247b41,_0x1dd21c;if(_0x17618c)_0x247b41=_0x17618c,_0x1dd21c='environment\x20variables\x20(AUTH_TOKEN/TENANT_ID/ORG_ID)';else{let _0x5cbe69=Xt();if(!_0x5cbe69)throw new Error(Te);_0x247b41=_0x5cbe69['auth'],_0x1dd21c=_0x5cbe69[_0x10d0fc(0x1f9)]?_0x5cbe69[_0x10d0fc(0x1d4)]+'\x20(Delegate\x20desktop\x20app\x20fallback)':_0x5cbe69[_0x10d0fc(0x1d4)];}let _0x3bf89f={'source':_0x1dd21c,'baseUrl':_0x247b41[_0x10d0fc(0x288)]??null,'deployment':tn(_0x247b41['baseUrl']),'organization':{'id':_0x247b41[_0x10d0fc(0x2d6)],'slug':_0x247b41[_0x10d0fc(0x25b)]??null},'tenant':{'id':_0x247b41['tenantId'],'name':_0x247b41[_0x10d0fc(0x3ae)]??null},'tokenExpiresAt':_0x247b41[_0x10d0fc(0x272)]?new Date(_0x247b41[_0x10d0fc(0x272)]*0x3e8)['toISOString']():null};m(_0x32fe28,_0x3bf89f,()=>{const _0x4c9c6c=_0x10d0fc;let _0x12bbd4=['Source:\x20\x20\x20\x20\x20\x20\x20'+_0x1dd21c,_0x4c9c6c(0x24c)+(_0x247b41['baseUrl']??_0x4c9c6c(0x27c)),_0x4c9c6c(0x1f8)+_0x3bf89f[_0x4c9c6c(0x347)],_0x4c9c6c(0x236)+(_0x247b41[_0x4c9c6c(0x25b)]??'unknown\x20slug')+'\x20('+_0x247b41[_0x4c9c6c(0x2d6)]+')','Tenant:\x20\x20\x20\x20\x20\x20\x20'+(_0x247b41['tenantName']??'unknown\x20slug')+'\x20('+_0x247b41[_0x4c9c6c(0x32f)]+')'];if(_0x247b41[_0x4c9c6c(0x272)]){let _0x55505b=_0x247b41[_0x4c9c6c(0x272)]-Math[_0x4c9c6c(0x227)](Date[_0x4c9c6c(0x226)]()/0x3e8);_0x12bbd4[_0x4c9c6c(0x3c0)](_0x55505b>0x0?'Token:\x20\x20\x20\x20\x20\x20\x20\x20expires\x20'+_0x3bf89f[_0x4c9c6c(0x284)]+_0x4c9c6c(0x232)+Math[_0x4c9c6c(0x39c)](_0x55505b/0x3c)+_0x4c9c6c(0x279):_0x4c9c6c(0x1e2)+_0x3bf89f[_0x4c9c6c(0x284)]);}process[_0x4c9c6c(0x348)][_0x4c9c6c(0x205)](_0x12bbd4[_0x4c9c6c(0x350)]('\x0a')+'\x0a');});}function _0x3e93(){const _0x687545=['deployment','stdout','\x20needs\x20a\x20JSON\x20request:\x20delegate-cli\x20','\x0aStopping…\x20(Ctrl+C\x20again\x20to\x20force\x20exit)\x0a','From\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','total_completion_tokens','outputFormat','slice','delegations\x20show\x20<delegation-id|delegate://delegation/…>','join','self-hosted\x20(Automation\x20Suite\x20/\x20Dedicated)','locked','verbose','exitCode','The\x20steering\x20message\x20was\x20not\x20answered:\x20its\x20turn\x20did\x20not\x20run\x20or\x20added\x20no\x20reply.','):\x20','--attach:\x20no\x20such\x20file\x20or\x20folder:\x20','\x20(resume\x20with\x20--session\x20','Title\x20\x20\x20\x20\x20\x20\x20\x20\x20','hide','13655856iJVvyo','\x20or\x20your\x20own\x20answer',').\x0a','package.json','from','effort','--env\x20localhost\x20has\x20no\x20OAuth\x20flow;\x20pick\x20alpha,\x20staging,\x20or\x20production.','period_days','--no-memory','\x20in\x20progress\x20on\x20session\x20','✓\x20Done\x0a','type','a\x20project\x20id','sessions','--cleanup','\x20--turn\x20','SIGINT','pause','Continue\x20it\x20with:\x20delegate-cli\x20--session\x20','Task\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','medium','--working-dir','--backend','resume','Licensing:\x20\x20\x20\x20no\x20licensing\x20quota\x20applies','\x20—\x20sign\x20out\x20in\x20the\x20Delegate\x20app\x20to\x20clear\x20that.','workerId','model_version','toolName','signal','alreadyCompleted','thinking','/exit','delegations\x20claim\x20<delegation-id|delegate://delegation/…>','version','Organization\x20\x20','stderr','items','fork','uuid','inputFormat','--replay-user-messages\x20needs\x20--input-format\x20stream-json.','questions','concat','days','Steering\x20input\x20stopped:\x20','Could\x20not\x20check\x20BYO\x20model\x20warnings:\x20','isTTY','kind','operands','Session\x20\x20\x20\x20\x20\x20\x20','initialize','options','updatedAt','cartographer','typed','next','end','delegation','delegations\x20cancel\x20<delegation-id>','exit','filter','jsonSchemaPath','No\x20CLI\x20login\x20found.\x20Run\x20`delegate-cli\x20login\x20--env\x20<alpha|staging|production>`\x20first.','code','round','close','findLast','--input-format\x20and\x20--replay-user-messages\x20apply\x20to\x20prompts\x20only.','startsWith','estimated_cost_usd','%\x20of\x20','workingDirectory','backendUrl','projectId','label','\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).','an\x20input\x20line\x20has\x20no\x20message.content,\x20a\x20string\x20or\x20a\x20list\x20of\x20text\x20blocks','Claimed\x20from\x20delegation\x20','--task-automation','models','Work\x20on\x20it\x20with:\x20delegate-cli\x20--session\x20','\x20active\x20days','tenantName','userinput','max','Your\x20answer\x20(Enter\x20to\x20skip):\x20','rerank','Invalid\x20--project:\x20\x22','stream-json','--to\x20and\x20--summary\x20apply\x20to\x20`delegate-cli\x20delegations\x20create`\x20only.','Already\x20answered','\x20(type\x20your\x20own)','Enter\x20sends\x20a\x20message.\x20/exit\x20or\x20EOF\x20exits;\x20Ctrl+C\x20stops\x20and\x20exits.\x0a','attachments','Tokens:\x20','Your\x20answer,\x20as\x20text\x20(the\x20CLI\x20attaches\x20no\x20files;\x20Enter\x20to\x20skip):\x20','\x20PU','padStart','index','--cartographer','push','dismiss','\x20PU\x20used','monthly_spend_usd','--days','whoami','No\x20answers\x20awaiting\x20acceptance.\x0a','2207000tNaVUG','xhigh','show','email','content','headless','\x20(estimated\x20$','deepLink','numeric','session_consumed_pu','\x20(current)','padEnd','Usage:\x20delegate-cli\x20','resolve','\x20<id>','\x20sessions\x20on\x20','cleanup','getTurnUsageHistory','366yPJCDE','a\x20colleague','Deleted\x20session\x20','Invalid\x20--effort:\x20','delegations\x20accept\x20<delegation-id>','--tenant\x20requires\x20a\x20tenant\x20name.','.aria','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','probability','runnerUrl','spawn','delegations\x20dismiss\x20<delegation-id>','file','No\x20models\x20available\x20for\x20this\x20product/tenant.\x0a','byoWarning','\x20completion','default','a\x20number','done','skipEnvCheck','verdict','bundledSkillsPath','complete\x20needs\x20--json-schema\x20<file>:\x20delegate-cli\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22.','.\x20Use\x20','transcribe','buckets','Token:\x20\x20\x20\x20\x20\x20\x20\x20expired\x20','\x20(confidence\x20','race','bucket','includes','.\x20Share:\x20','parentSessionId','Usage:\x20delegate-cli\x20sessions\x20[list]\x20[--page\x20N]\x20[--limit\x20N]\x20[--include-subagents]','A\x20steering\x20message\x20arrived\x20after\x20the\x20turn\x20ended:\x20not\x20read.\x0a','then','origin','an\x20effort\x20tier','displayName','No\x20turn\x20','score','shift','--authority','fields','4584MjxzzF','\x20prompt,\x20','Session:\x20','bind','Deployment:\x20\x20\x20','isDesktopFallback','--attach','\x20token\x20units)','daily_usage','--page','localhost','\x27\x20cannot\x20be\x20read:\x20','--session\x20applies\x20to\x20the\x20`delegate-cli\x20usage`\x20summary\x20only.',':\x20ignored\x0a','Spending:\x20\x20\x20\x20\x20$','Answered','--include-subagents','write','subFields','host','erase','\x0aUse\x20with:\x20delegate-cli\x20--model\x20<id>\x20\x22<prompt>\x22\x0a','--input-format\x20stream-json\x20reads\x20the\x20prompt\x20from\x20stdin:\x20pass\x20no\x20prompt\x20argument.','--days\x20applies\x20to\x20`delegate-cli\x20usage\x20activity|daily`;\x20the\x20summary\x20covers\x20the\x20current\x20month.','\x20to\x20','\x20tokens\x0a','status','vertical','complete\x20needs\x20a\x20prompt:\x20delegate-cli\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22,\x20or\x20-\x20to\x20read\x20stdin.','an\x20input\x20line\x20is\x20not\x20JSON','--output-format\x20','active_days','staging','usage','catch','There\x20is\x20no\x20terminal\x20input\x20to\x20answer\x20from.','--turn','Date\x20\x20\x20\x20\x20\x20\x20\x20Token\x20units\x20\x20Prompt\x20tokens\x20\x20Completion\x20tokens','endQuestions',':\x20cannot\x20read\x20the\x20JSON\x20schema\x20(','logout','The\x20turn\x20was\x20cancelled.','Usage:\x20delegate-cli\x20sessions\x20cancel\x20<session-id>\x20--turn\x20<turn-id>','Rubric\x20','getSessionMessages','pending','\x20\x22<prompt>\x22\x0aAnswer\x20with:\x20delegate-cli\x20delegations\x20complete\x20','Cancel\x20requested\x20for\x20turn\x20','--env','Unknown\x20delegations\x20action:\x20','now','floor','help','Enter\x20numbers\x20from\x201\x20to\x20','input','--no-connections','--help','):\x0a\x0a','noSecurity','delegations','No\x20structured\x20output:\x20the\x20turn\x20failed\x20(','delegateTo','\x20(in\x20','Bearer\x20','Use:\x20delegate-cli\x20delegations\x20','total_cost_usd','Organization:\x20','readLine','answers','interopPath','accept','pct_used','\x20<file.json>,\x20or\x20-\x20to\x20read\x20stdin.','text','Delegation\x20\x20\x20\x20','keys','result','an\x20input\x20line\x20is\x20not\x20a\x20JSON\x20object','pendingResults','taskAutomation','contextSummary','unit','A\x20steering\x20message\x20was\x20not\x20sent:\x20','min','--no-security','You>\x20','isInteger','check','Base\x20URL:\x20\x20\x20\x20\x20','Input\x20closed\x20before\x20the\x20question\x20was\x20answered.','cancel','log','--attach\x20applies\x20to\x20prompts\x20only.','an\x20email\x20address\x20or\x20name','\x20|\x20','length','readFileSync','Session:\x20\x20\x20\x20\x20\x20','5325861ulqlIo','assignedUser','activity','oneTurn','Usage:\x20delegate-cli\x20sessions\x20fork\x20<id>\x20[<message-id>]','orgLogicalName','\x20PU\x20beyond\x20quota','noComputerUse','\x20from\x20','value','task','--replay-user-messages','toFixed','actionable_error','No\x20one\x20matches\x20\x22','string','--limit','\x20delegation\x20','model_id','assignedUserEmail','description','period_end',')\x20—\x20saved\x20to\x20','a\x20briefing\x20text','Invalid\x20--env:\x20','widget',':\x20cannot\x20read\x20the\x20request\x20(','list','expiresAt','cancelled','.\x20Use:\x20','preloadSkills','response','\x20must\x20be\x20a\x20JSON\x20object.','--tenant\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Switch\x20tenants\x20with:\x20delegate-cli\x20tenant\x20<name>','\x20min)','\x20\x20TASK\x0a','quiet','unknown','Tenant:\x20','tool','a\x20deployment\x20URL,\x20e.g.\x20https://automationsuite.contoso.com','--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`delegate-cli\x20sessions\x20[list]`\x20only.','tool_call','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.','login','tokenExpiresAt','multiSelect','noConnections','Interop\x20stopped\x20(if\x20it\x20was\x20running).','baseUrl','forEach','36957195yoHLRV',':\x20bucket\x20number\x20(Enter\x20to\x20leave\x20out):\x20','26WVRxBW','Number','print','\x20\x20\x20\x20','existsSync','replace','refused','--model','finish','stop','env','dismissed','add','a\x20directory\x20path','lastType','\x20in\x20steps\x20of\x20','--print','cwd','tenant','Accepted','intro','trim','return','getSessionId','url','UPDATED','confidence','structuredError','model','a\x20format\x20(','stdin','split','\x20(optional)','addEventListener','destroy','message','--output-format','limit','stringify','the\x20request','rmSync','--task-automation\x20applies\x20to\x20prompts\x20only.','sourceTitle','data','test','name','\x20must\x20be\x20a\x20whole\x20number\x20','--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`delegate-cli\x20sessions`\x20only.','header','\x20token\x20units','production','sessionId','Created\x20delegation\x20','\x20is\x20not\x20valid\x20JSON\x20(','a\x20skill\x20name','error','--summary','high','lockReason','\x20of\x20session\x20','page',']\x20(Enter\x20for\x20','Removed\x20','prompt_tokens','setPrompt','sourceUserEmail','daily','Cost:\x20\x20\x20$','--runner-url','title','replayUserMessages','UiPath\x20Cloud','--verbose','\x20into\x20','organizationId','\x20\x20from\x20','\x20(resets\x20','subcommand','detail','abort','isFinite','Unknown\x20usage\x20view:\x20','complete','\x0aAccept\x20one\x20with:\x20delegate-cli\x20delegations\x20accept\x20<id>\x0a','UIPATH_BASE_URL\x20is\x20unusable.\x20','parse','a\x20file\x20path','total_token_units','accessToken','\x20requires\x20','--preload-skill','turnId','\x20\x22<answer>\x22\x0a','all','Unknown\x20flag:\x20','some','alreadyAccepted','\x20days:\x20','keepAlive','token_units','from\x20','\x22.\x0a','utf-8','delegate-cli','--input-format','Last\x20','AUTH_TOKEN_FILE\x20\x27','aborted','--turn\x20applies\x20to\x20`delegate-cli\x20sessions\x20cancel`\x20only.','isError','More:\x20delegate-cli\x20sessions\x20--page\x20','org-users','extra_pool_consumed_pu','--to','pop','isArray','toString','removeEventListener','Enter\x20one\x20number\x20from\x201\x20to\x20','137578CDJujK',',\x20got\x20','--version','--headless','restore','Owner\x20\x20\x20\x20\x20\x20\x20\x20\x20','waitForIdle','stack','noMemory','prompt','optional','total_sessions','delegationId','session_start','sendMessage','\x20\x22<prompt>\x22\x0a','delete','Invalid\x20--output-format:\x20','once','Tenants\x20of\x20','6405412NxYwxq','.\x20Use\x20`delegate-cli\x20usage`,\x20`usage\x20activity`\x20or\x20`usage\x20daily`.','[env=','user','\x20-\x20','userId',';\x20the\x20saved\x20login\x20still\x20uses\x20','onEvent','turn_start','evaluate',']\x20Backend\x20URL:\x20','entries','an\x20input\x20line\x20has\x20an\x20empty\x20message','\x20\x20(sub-agent\x20of\x20','.\x20Drop\x20one\x20of\x20the\x20two.','\x20this\x20month','The\x20saved\x20CLI\x20login\x20could\x20not\x20be\x20refreshed.\x20Run\x20`delegate-cli\x20login`\x20again.','messages','\x20applies\x20to\x20prompts\x20and\x20to\x20these\x20commands\x20only:\x20','rejection','the\x20JSON\x20schema','claim','\x27\x20is\x20empty.','Structured\x20output\x20failed:\x20','tenantId','includeSubAgents','off','rename','No\x20CLI\x20login\x20found\x20—\x20nothing\x20to\x20remove.','limit_enabled','\x20is\x20required.\x0a','date','a\x20session\x20id','\x20not\x20found.','\x20days.\x0a','verify','every','object','delegations\x20complete\x20<delegation-id>\x20\x22<answer>\x22|-','findIndex','Switch\x20with:\x20delegate-cli\x20tenant\x20<name>\x0a','delegations\x20delete\x20<delegation-id>','create',',\x20not\x20\x22user\x22','\x20\x20\x20\x20Not\x20available\x20on\x20this\x20plan','results','--url','map'];_0x3e93=function(){return _0x687545;};return _0x3e93();}var Te=_0x21c914(0x282);function tn(_0x16b38d){const _0x4acd6d=_0x21c914;return _0x16b38d?_0x41ae29(_0x16b38d)?_0x4acd6d(0x2d3):_0x4acd6d(0x351):_0x4acd6d(0x27c);}function Y(){let _0x2e4fba=process.env.AUTH_TOKEN_FILE;return(process.env.AUTH_TOKEN||_0x2e4fba)&&process.env.TENANT_ID&&process.env.ORG_ID?{'accessToken':_0x2e4fba?nn(_0x2e4fba):process.env.AUTH_TOKEN,..._0x2e4fba?{'accessTokenFile':_0x2e4fba}:{},'tenantId':process.env.TENANT_ID,'organizationId':process.env.ORG_ID,'orgLogicalName':process.env.ORG_SLUG,'tenantName':process.env.TENANT_SLUG,'baseUrl':Ue()}:null;}function nn(_0x11162c){const _0xb94357=_0x21c914;let _0x47ac05;try{_0x47ac05=_0x1796bd[_0xb94357(0x254)](_0x11162c,_0xb94357(0x2f2))['trim']();}catch(_0x4bede4){throw new Error(_0xb94357(0x2f6)+_0x11162c+_0xb94357(0x1ff)+_0x4bede4['message']);}let _0x2627b9=_0x47ac05[_0xb94357(0x3a0)](_0xb94357(0x233))?_0x47ac05['slice'](0x7)[_0xb94357(0x2a1)]():_0x47ac05;if(!_0x2627b9)throw new Error(_0xb94357(0x2f6)+_0x11162c+_0xb94357(0x32d));return _0x2627b9;}function Ue(){const _0x18ece4=_0x21c914;let _0x56cb58=process.env.UIPATH_BASE_URL;if(!_0x56cb58)return;let _0x59c5be=_0x37dfb6(_0x56cb58);if(_0x59c5be['ok']===!0x1)throw new Error(_0x18ece4(0x2e0)+_0x34d61f(_0x56cb58,_0x59c5be[_0x18ece4(0x32a)]));return _0x59c5be[_0x18ece4(0x288)];}async function V(){let _0x25acea=Y();if(_0x25acea)return _0x25acea;let _0x819de0=await _0x29c7a0();if(_0x819de0)return _0x819de0;throw new Error(Te);}async function sn(){const _0x496956=_0x21c914;await new _0x37ed04()[_0x496956(0x295)]({'force':!0x0}),console[_0x496956(0x24f)](_0x496956(0x287));}function X(_0x549507,_0x539170,_0xbfecc1){const _0x4674e4=_0x21c914;_0x549507?process[_0x4674e4(0x37f)]['write'](_0x4674e4(0x319)+_0x549507+_0x4674e4(0x321)+_0xbfecc1+'\x0a'):!_0x539170&&!process.env.BACKEND_URL&&process[_0x4674e4(0x37f)][_0x4674e4(0x205)]('[saved\x20login]\x20Backend\x20URL:\x20'+_0xbfecc1+'\x0a');}async function $(_0x1714dc){const _0x419165=_0x21c914;let _0x54ad58=await V(),_0x18f285=_0x26480f(_0x1714dc[_0x419165(0x296)],_0x54ad58,_0x1714dc['backendUrl']);return X(_0x1714dc[_0x419165(0x296)],_0x1714dc[_0x419165(0x3a4)],_0x18f285),{'auth':_0x54ad58,'backendUrl':_0x18f285,'client':_0x45ecb9({'auth':_0x54ad58,'backendUrl':_0x18f285})};}async function on(_0x34ed9a){const _0x1409f8=_0x21c914;let {client:_0x5d8fed}=await $(_0x34ed9a),[_0x24edd5,_0x177884]=await Promise['all']([_0x3b08dd(_0x5d8fed),_0x1558b5(_0x5d8fed)[_0x1409f8(0x216)](_0x2675ab=>(process[_0x1409f8(0x37f)]['write'](_0x1409f8(0x389)+(_0x2675ab instanceof Error?_0x2675ab[_0x1409f8(0x2af)]:String(_0x2675ab))+'\x0a'),{}))]),_0x13ad23=_0x24edd5[_0x1409f8(0x346)](_0x3ec2b7=>_0x177884[_0x3ec2b7['id']]?{..._0x3ec2b7,'byoWarning':_0x177884[_0x3ec2b7['id']]}:_0x3ec2b7);m(_0x34ed9a,_0x13ad23,rn);}function rn(_0x563e9e){const _0x530ef6=_0x21c914;if(_0x563e9e['length']===0x0){process[_0x530ef6(0x37f)][_0x530ef6(0x205)](_0x530ef6(0x1d5));return;}process['stdout'][_0x530ef6(0x205)]('\x0aAvailable\x20models\x20('+_0x563e9e['length']+_0x530ef6(0x22d));for(let _0x220b15 of _0x563e9e){let _0x4d8c69=_0x220b15[_0x530ef6(0x2b9)]&&_0x220b15[_0x530ef6(0x2b9)]!==_0x220b15['id']?'\x20('+_0x220b15['name']+')':'';process[_0x530ef6(0x348)][_0x530ef6(0x205)]('\x20\x20'+_0x220b15['id']+_0x4d8c69+'\x0a'),_0x220b15[_0x530ef6(0x26a)]&&process[_0x530ef6(0x348)][_0x530ef6(0x205)](_0x530ef6(0x28f)+_0x220b15[_0x530ef6(0x26a)]+'\x0a'),_0x220b15[_0x530ef6(0x352)]&&process[_0x530ef6(0x348)][_0x530ef6(0x205)](_0x530ef6(0x343)+(_0x220b15[_0x530ef6(0x2c6)]?'\x20('+_0x220b15['lockReason']+')':'')+'\x0a'),_0x220b15[_0x530ef6(0x1d6)]&&process['stdout'][_0x530ef6(0x205)]('\x20\x20\x20\x20BYO\x20warning:\x20'+_0x220b15[_0x530ef6(0x1d6)]+'\x0a');}process[_0x530ef6(0x348)][_0x530ef6(0x205)](_0x530ef6(0x209));}var fe=[_0x21c914(0x271),_0x21c914(0x3c9),'rename','delete',_0x21c914(0x24e),_0x21c914(0x381)];async function an(_0x210e17){const _0x3aa9c1=_0x21c914;let [_0x3e6978='',_0x2b7fd0='',..._0x5f03d1]=_0x210e17['operands'];if(_0x3e6978&&!fe[_0x3aa9c1(0x1e6)](_0x3e6978)&&(console[_0x3aa9c1(0x2c3)]('Unknown\x20sessions\x20action:\x20'+_0x3e6978+_0x3aa9c1(0x274)+fe['join']('\x20|\x20')+'.'),process[_0x3aa9c1(0x397)](0x2)),_0x210e17[_0x3aa9c1(0x2e7)]!==void 0x0&&_0x3e6978!==_0x3aa9c1(0x24e)&&(console['error']('--turn\x20applies\x20to\x20`delegate-cli\x20sessions\x20cancel`\x20only.'),process[_0x3aa9c1(0x397)](0x2)),_0x3e6978&&_0x3e6978!==_0x3aa9c1(0x271)){await ln(_0x210e17,_0x3e6978,_0x2b7fd0,_0x5f03d1[_0x3aa9c1(0x350)]('\x20')[_0x3aa9c1(0x2a1)]());return;}_0x210e17[_0x3aa9c1(0x38c)][_0x3aa9c1(0x253)]>0x1&&(console[_0x3aa9c1(0x2c3)](_0x3aa9c1(0x1e9)),process[_0x3aa9c1(0x397)](0x2));let {client:_0x2969ac}=await $(_0x210e17),_0x13d9de=await _0x1e1786(_0x2969ac,{'page':_0x210e17[_0x3aa9c1(0x2c8)],'pageSize':_0x210e17['limit'],'includeSubAgents':_0x210e17[_0x3aa9c1(0x330)]});m(_0x210e17,_0x13d9de,pn);}async function ln(_0x3ce81e,_0x188d05,_0x1fd8b7,_0xbb8d80){const _0x6582a4=_0x21c914;if((_0x3ce81e[_0x6582a4(0x2c8)]!==void 0x0||_0x3ce81e[_0x6582a4(0x2b1)]!==void 0x0||_0x3ce81e['includeSubAgents'])&&(console[_0x6582a4(0x2c3)](_0x6582a4(0x280)),process['exit'](0x2)),_0x188d05===_0x6582a4(0x24e)){await dn(_0x3ce81e,_0x1fd8b7,_0xbb8d80);return;}if(_0x188d05==='fork'){await un(_0x3ce81e,_0x1fd8b7,_0xbb8d80);return;}(!_0x1fd8b7||_0x188d05===_0x6582a4(0x332)!=!!_0xbb8d80)&&(console[_0x6582a4(0x2c3)]('Usage:\x20delegate-cli\x20sessions\x20'+_0x188d05+_0x6582a4(0x3d5)+(_0x188d05==='rename'?'\x20<title>':'')),process[_0x6582a4(0x397)](0x2));let {client:_0x16579f}=await $(_0x3ce81e);try{if(_0x188d05==='show'){let _0x5bb1ee=await _0x3060cf(_0x16579f,_0x1fd8b7);_0x5bb1ee||ge(_0x1fd8b7),m(_0x3ce81e,_0x5bb1ee,cn);}else{if(_0x188d05==='rename'){let _0x25484b=await _0x385b16(_0x16579f,_0x1fd8b7,_0xbb8d80);m(_0x3ce81e,_0x25484b,_0x1a3621=>{const _0x15638f=_0x6582a4;process['stdout'][_0x15638f(0x205)]('Renamed\x20'+_0x1a3621['id']+':\x20'+_0x1a3621[_0x15638f(0x2d1)]+'\x0a');});}else await _0xebbea2(_0x16579f,_0x1fd8b7),await _0x13d661(_0x1fd8b7,_0x3ce81e[_0x6582a4(0x3a3)]),m(_0x3ce81e,{'id':_0x1fd8b7,'deleted':!0x0},_0x3367b5=>{const _0x30ef32=_0x6582a4;process[_0x30ef32(0x348)][_0x30ef32(0x205)](_0x30ef32(0x3db)+_0x3367b5['id']+'.\x0a');});}}catch(_0x4ab8d5){if(!_0x40c763(_0x4ab8d5,0x194))throw _0x4ab8d5;ge(_0x1fd8b7);}}function ge(_0x4f811e){const _0x2d25ab=_0x21c914;console[_0x2d25ab(0x2c3)]('Session\x20'+_0x4f811e+_0x2d25ab(0x338)),process[_0x2d25ab(0x397)](0x1);}function cn(_0x2fe19e){const _0x3e681b=_0x21c914;process[_0x3e681b(0x348)][_0x3e681b(0x205)]('ID\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x2fe19e['id']+'\x0a'),process[_0x3e681b(0x348)][_0x3e681b(0x205)](_0x3e681b(0x359)+_0x2fe19e[_0x3e681b(0x2d1)]+'\x0a'),process['stdout']['write'](_0x3e681b(0x308)+_0x2fe19e[_0x3e681b(0x31c)]+'\x0a'),process[_0x3e681b(0x348)][_0x3e681b(0x205)](_0x3e681b(0x37e)+_0x2fe19e[_0x3e681b(0x2d6)]+'\x0a'),_0x2fe19e[_0x3e681b(0x30f)]&&process[_0x3e681b(0x348)][_0x3e681b(0x205)](_0x3e681b(0x23e)+_0x2fe19e[_0x3e681b(0x30f)]+'\x0a');}async function dn(_0x31e87b,_0x5c0165,_0x5749fd){const _0x539f06=_0x21c914;(!_0x5c0165||_0x5749fd||!_0x31e87b['turnId'])&&(console[_0x539f06(0x2c3)](_0x539f06(0x21e)),process['exit'](0x2));let {client:_0x510682}=await $(_0x31e87b),_0x4b07e2=await _0x1247ed(_0x510682,_0x5c0165,_0x31e87b[_0x539f06(0x2e7)]);m(_0x31e87b,{'sessionId':_0x5c0165,'turnId':_0x31e87b['turnId'],'cancelled':_0x4b07e2},_0x387c8f=>{const _0x324d88=_0x539f06;_0x387c8f[_0x324d88(0x273)]?process[_0x324d88(0x348)][_0x324d88(0x205)](_0x324d88(0x223)+_0x387c8f[_0x324d88(0x2e7)]+_0x324d88(0x2c7)+_0x387c8f[_0x324d88(0x2bf)]+'.\x0a'):process['stderr'][_0x324d88(0x205)](_0x324d88(0x1ef)+_0x387c8f[_0x324d88(0x2e7)]+_0x324d88(0x364)+_0x387c8f['sessionId']+'.\x0a');}),_0x4b07e2||(process[_0x539f06(0x354)]=0x1);}async function un(_0x1fc39c,_0x1f8859,_0x1e00d7){const _0x591a84=_0x21c914;(!_0x1f8859||/\s/[_0x591a84(0x2b8)](_0x1e00d7))&&(console[_0x591a84(0x2c3)](_0x591a84(0x25a)),process[_0x591a84(0x397)](0x2));let {client:_0x10929d}=await $(_0x1fc39c),_0x153398;try{_0x153398=await _0x40d6c1(_0x10929d,_0x1f8859,{'atMessageId':_0x1e00d7||void 0x0});}catch(_0x21834e){if(!_0x40c763(_0x21834e,0x194))throw _0x21834e;console['error']('Session\x20'+_0x1f8859+'\x20not\x20found,\x20has\x20no\x20messages'+(_0x1e00d7?',\x20or\x20holds\x20no\x20message\x20'+_0x1e00d7:'')+'.'),process['exit'](0x1);}m(_0x1fc39c,_0x153398,_0x5720a7=>{const _0x3a8e8d=_0x591a84;process[_0x3a8e8d(0x348)][_0x3a8e8d(0x205)]('Forked\x20'+_0x1f8859+_0x3a8e8d(0x2d5)+_0x5720a7['id']+'.\x0a'),process[_0x3a8e8d(0x37f)]['write'](_0x3a8e8d(0x36d)+_0x5720a7['id']+_0x3a8e8d(0x312));});}function pn({sessions:_0x38f053,page:_0x35861d,isLastPage:_0x477b62}){const _0x571df7=_0x21c914;if(_0x38f053[_0x571df7(0x253)]===0x0)process[_0x571df7(0x37f)][_0x571df7(0x205)]('No\x20sessions\x20on\x20page\x20'+_0x35861d+'.\x0a');else{process[_0x571df7(0x348)]['write']('ID'['padEnd'](0x24)+'\x20\x20'+_0x571df7(0x2a5)[_0x571df7(0x3d2)](0x13)+'\x20\x20TITLE\x0a');for(let _0x556f00 of _0x38f053){let _0x1b9765=_0x556f00[_0x571df7(0x390)][_0x571df7(0x291)]('T','\x20')[_0x571df7(0x34e)](0x0,0x13),_0x3486f1=_0x556f00['parentSessionId']?_0x571df7(0x324)+_0x556f00[_0x571df7(0x1e8)]+')':'';process[_0x571df7(0x348)][_0x571df7(0x205)](_0x556f00['id']['padEnd'](0x24)+'\x20\x20'+_0x1b9765[_0x571df7(0x3d2)](0x13)+'\x20\x20'+_0x556f00[_0x571df7(0x2d1)]+_0x3486f1+'\x0a');}}_0x477b62||process[_0x571df7(0x37f)][_0x571df7(0x205)](_0x571df7(0x2fa)+(_0x35861d+0x1)+'\x0a');}async function mn(_0x5c41dc){const _0x1f32ff=_0x21c914;let _0x247d80=await V(),_0x445dda=_0x26480f(_0x5c41dc[_0x1f32ff(0x296)],_0x247d80,_0x5c41dc[_0x1f32ff(0x3a4)]);X(_0x5c41dc['env'],_0x5c41dc[_0x1f32ff(0x3a4)],_0x445dda);let _0x5c9ce4=await _0x37bb21({'auth':_0x247d80,'backendUrl':_0x445dda,'interop':_0x5c41dc['headless']?'skip':_0x1f32ff(0x1d2)});m(_0x5c41dc,_0x5c9ce4,({checks:_0x5e5f0f})=>{const _0x1bdebc=_0x1f32ff;for(let _0xd05ed0 of _0x5e5f0f)process[_0x1bdebc(0x348)][_0x1bdebc(0x205)](fn(_0xd05ed0)+'\x0a');}),_0x5c9ce4['ok']||process[_0x1f32ff(0x397)](0x1);}function fn(_0x41c06b){const _0x3e2415=_0x21c914;return{'ok':'✓','failed':'✗','skipped':'-'}[_0x41c06b[_0x3e2415(0x20e)]]+'\x20'+_0x41c06b[_0x3e2415(0x2b9)]['padEnd'](0xa)+_0x41c06b[_0x3e2415(0x2da)];}var gn=['',_0x21c914(0x258),'daily'];async function hn(_0x28e784){const _0x4d8a20=_0x21c914;let _0x3b22f2=_0x28e784[_0x4d8a20(0x30c)];gn[_0x4d8a20(0x1e6)](_0x3b22f2)||(console[_0x4d8a20(0x2c3)](_0x4d8a20(0x2dd)+_0x28e784[_0x4d8a20(0x30c)]+_0x4d8a20(0x318)),process[_0x4d8a20(0x397)](0x2)),_0x3b22f2===''&&_0x28e784['days']!==void 0x0&&(console[_0x4d8a20(0x2c3)](_0x4d8a20(0x20b)),process['exit'](0x2)),_0x3b22f2!==''&&_0x28e784[_0x4d8a20(0x2bf)]!==void 0x0&&(console[_0x4d8a20(0x2c3)](_0x4d8a20(0x200)),process['exit'](0x2));let {client:_0x26398b}=await $(_0x28e784);if(_0x3b22f2===_0x4d8a20(0x258)){m(_0x28e784,await _0x35c941(_0x26398b,{'days':_0x28e784[_0x4d8a20(0x387)]}),wn);return;}if(_0x3b22f2===_0x4d8a20(0x2ce)){m(_0x28e784,await _0x2275d3(_0x26398b,{'days':_0x28e784[_0x4d8a20(0x387)]}),kn);return;}let [_0x5eb66f,_0x540e52,_0x888ee1]=await Promise[_0x4d8a20(0x2e9)]([_0x25e549(_0x26398b,{'sessionId':_0x28e784[_0x4d8a20(0x2bf)]}),_0x3a3089(_0x26398b),_0x1d3c64(_0x26398b)]);m(_0x28e784,{'licensing':_0x5eb66f,'monthlySpending':_0x540e52,'cartographerAllowance':_0x888ee1},yn);}function yn(_0x2fe76b){const _0x54cde6=_0x21c914;let {licensing:_0x9c0fc0,monthlySpending:_0x563995,cartographerAllowance:_0x2b86ed}=_0x2fe76b,_0x3383ad=[_0x9c0fc0[_0x54cde6(0x334)]?'Licensing:\x20\x20\x20\x20'+_0x9c0fc0[_0x54cde6(0x23b)][_0x54cde6(0x262)](0x1)+_0x54cde6(0x3a2)+(_0x9c0fc0['total_quota_pu']??0x0)+_0x54cde6(0x3c2)+(_0x9c0fc0[_0x54cde6(0x2fc)]>0x0?',\x20'+_0x9c0fc0[_0x54cde6(0x2fc)]+_0x54cde6(0x25c):'')+_0x54cde6(0x2d8)+_0x9c0fc0[_0x54cde6(0x26b)]+')':_0x54cde6(0x373),_0x54cde6(0x202)+_0x563995[_0x54cde6(0x3c3)][_0x54cde6(0x262)](0x2)+_0x54cde6(0x326)+(_0x563995['limit_enabled']&&_0x563995['monthly_limit_usd']!==null?'\x20of\x20a\x20$'+_0x563995['monthly_limit_usd'][_0x54cde6(0x262)](0x2)+'\x20cap':'\x20(no\x20cap\x20enforced)'),'Cartographer:\x20'+_0x2b86ed['mode']+'\x20('+_0x2b86ed[_0x54cde6(0x268)]+')'];_0x9c0fc0[_0x54cde6(0x3d0)]!==null&&_0x9c0fc0[_0x54cde6(0x3d0)]!==void 0x0&&_0x3383ad[_0x54cde6(0x3c0)](_0x54cde6(0x255)+_0x9c0fc0[_0x54cde6(0x3d0)]+_0x54cde6(0x3bc)),process['stdout']['write'](_0x3383ad[_0x54cde6(0x350)]('\x0a')+'\x0a');}function wn(_0x4b66d8){const _0xbe59e6=_0x21c914;let _0x45dbfa=[_0xbe59e6(0x2f5)+_0x4b66d8[_0xbe59e6(0x362)]+_0xbe59e6(0x2ed)+_0x4b66d8[_0xbe59e6(0x30e)]+_0xbe59e6(0x3d6)+_0x4b66d8[_0xbe59e6(0x213)]+_0xbe59e6(0x3ad),_0xbe59e6(0x2cf)+_0x4b66d8[_0xbe59e6(0x235)][_0xbe59e6(0x262)](0x2)+_0xbe59e6(0x3cd)+_0x4b66d8[_0xbe59e6(0x3a1)][_0xbe59e6(0x262)](0x2)+_0xbe59e6(0x25e)+_0x4b66d8[_0xbe59e6(0x2e3)]+_0xbe59e6(0x1fb),_0xbe59e6(0x3ba)+_0x4b66d8['total_prompt_tokens']+_0xbe59e6(0x1f5)+_0x4b66d8[_0xbe59e6(0x34c)]+_0xbe59e6(0x1d7)];for(let [_0x5f1999,_0x14366e]of Object['entries'](_0x4b66d8['models_breakdown']))_0x45dbfa[_0xbe59e6(0x3c0)]('\x20\x20'+_0x5f1999+':\x20'+_0x14366e+_0xbe59e6(0x2bd));process[_0xbe59e6(0x348)][_0xbe59e6(0x205)](_0x45dbfa[_0xbe59e6(0x350)]('\x0a')+'\x0a');}function kn(_0x106be5){const _0x49782a=_0x21c914;if(_0x106be5['daily_usage'][_0x49782a(0x253)]===0x0){process[_0x49782a(0x348)][_0x49782a(0x205)]('No\x20usage\x20in\x20the\x20last\x20'+_0x106be5[_0x49782a(0x362)]+_0x49782a(0x339));return;}let _0x18a8f5=[_0x49782a(0x219)];for(let _0x5897a5 of _0x106be5[_0x49782a(0x1fc)])_0x18a8f5[_0x49782a(0x3c0)](_0x5897a5[_0x49782a(0x336)]+'\x20\x20'+String(_0x5897a5[_0x49782a(0x2ef)])[_0x49782a(0x3bd)](0xb)+'\x20\x20'+String(_0x5897a5[_0x49782a(0x2cb)])['padStart'](0xd)+'\x20\x20'+String(_0x5897a5['completion_tokens'])[_0x49782a(0x3bd)](0x11));process[_0x49782a(0x348)][_0x49782a(0x205)](_0x18a8f5[_0x49782a(0x350)]('\x0a')+'\x0a');}async function bn(_0x5ef173,_0x31a64a){const _0x125587=_0x21c914;let _0x4ec11e=await Sn(_0x5ef173[_0x125587(0x30c)],_0x31a64a);_0x5ef173[_0x125587(0x2a8)]&&(_0x4ec11e[_0x125587(0x2a8)]=_0x5ef173['model']);let {client:_0x1f40e2}=await $(_0x5ef173);try{_0x31a64a===_0x125587(0x320)?m(_0x5ef173,await _0x555bb5(_0x1f40e2,_0x4ec11e,void 0x0),An):_0x31a64a===_0x125587(0x3b2)?m(_0x5ef173,await _0xedf7e9(_0x1f40e2,_0x4ec11e,void 0x0),En):m(_0x5ef173,await _0x1e2188(_0x1f40e2,_0x4ec11e,void 0x0),$n);}catch(_0x37c4ee){if(!_0x44e67f(_0x37c4ee))throw _0x37c4ee;console[_0x125587(0x2c3)](_0x37c4ee[_0x125587(0x2af)]),process[_0x125587(0x397)](0x1);}}async function Sn(_0x5934ed,_0x209ea2){const _0x3c8666=_0x21c914;let _0x5d81cb;try{_0x5d81cb=_0x5934ed&&_0x5934ed!=='-'?_0x1796bd[_0x3c8666(0x254)](_0x2bc3be[_0x3c8666(0x3d4)](_0x5934ed),_0x3c8666(0x2f2)):await H(_0x5934ed,process[_0x3c8666(0x2aa)]);}catch(_0x2f5963){console[_0x3c8666(0x2c3)](_0x209ea2+_0x3c8666(0x270)+_0x2f5963['message']+').'),process[_0x3c8666(0x397)](0x2);}return _0x5d81cb||(console[_0x3c8666(0x2c3)](_0x209ea2+_0x3c8666(0x349)+_0x209ea2+_0x3c8666(0x23c)),process['exit'](0x2)),De(_0x5d81cb,_0x209ea2,_0x3c8666(0x2b3));}function De(_0x456799,_0x29a9c5,_0x7d40be){const _0x21896b=_0x21c914;let _0x146dd2;try{_0x146dd2=JSON['parse'](_0x456799);}catch(_0x12477b){console[_0x21896b(0x2c3)](_0x29a9c5+':\x20'+_0x7d40be+_0x21896b(0x2c1)+_0x12477b[_0x21896b(0x2af)]+').'),process['exit'](0x2);}return(typeof _0x146dd2!=_0x21896b(0x33c)||_0x146dd2===null||Array[_0x21896b(0x2ff)](_0x146dd2))&&(console[_0x21896b(0x2c3)](_0x29a9c5+':\x20'+_0x7d40be+_0x21896b(0x277)),process[_0x21896b(0x397)](0x2)),_0x146dd2;}function Ne(_0x1f5050,_0x387073){const _0x5cf356=_0x21c914;let _0x3a4f23;try{_0x3a4f23=_0x1796bd[_0x5cf356(0x254)](_0x2bc3be[_0x5cf356(0x3d4)](_0x1f5050),_0x5cf356(0x2f2));}catch(_0x555a47){console[_0x5cf356(0x2c3)](_0x387073+_0x5cf356(0x21b)+_0x555a47['message']+').'),process['exit'](0x2);}return De(_0x3a4f23,_0x387073,_0x5cf356(0x32b));}async function vn(_0x474a07){const _0x2ab48d=_0x21c914;_0x474a07[_0x2ab48d(0x399)]===void 0x0&&(console[_0x2ab48d(0x2c3)](_0x2ab48d(0x1de)),process[_0x2ab48d(0x397)](0x2));let _0x4a8cde=Ne(_0x474a07[_0x2ab48d(0x399)],'complete'),_0x439cea=(await H(_0x474a07[_0x2ab48d(0x30c)],process[_0x2ab48d(0x2aa)]))['trim']();_0x439cea||(console[_0x2ab48d(0x2c3)](_0x2ab48d(0x210)),process[_0x2ab48d(0x397)](0x2));let {client:_0xabc8bc}=await $(_0x474a07);try{let _0x11a1a9=await _0x59c22a(_0xabc8bc,{'prompt':_0x439cea,'jsonSchema':_0x4a8cde,'model':_0x474a07[_0x2ab48d(0x2a8)]||process.env.MODEL||_0x16b451,..._0x474a07[_0x2ab48d(0x2bf)]!==void 0x0&&{'sessionId':_0x474a07[_0x2ab48d(0x2bf)]}},void 0x0);m(_0x474a07,_0x11a1a9,_0xb09f8a=>{const _0x31e76f=_0x2ab48d;process[_0x31e76f(0x348)][_0x31e76f(0x205)](JSON['stringify'](_0xb09f8a['structured'],null,0x2)+'\x0a');});}catch(_0x151382){if(!_0xed64d8(_0x151382))throw _0x151382;console[_0x2ab48d(0x2c3)](_0x151382['message']),process[_0x2ab48d(0x397)](0x1);}}function Z(_0x5db5a4){const _0x314148=_0x21c914;process[_0x314148(0x348)]['write']('Model\x20'+_0x5db5a4[_0x314148(0x2a8)]+'\x20('+_0x5db5a4[_0x314148(0x376)]+'),\x20'+_0x5db5a4[_0x314148(0x215)]['total_tokens']+_0x314148(0x20d));}function An(_0x4d1b9e){const _0x4befd3=_0x21c914;Z(_0x4d1b9e);for(let _0x22398b of Object['keys'](_0x4d1b9e[_0x4befd3(0x238)])){let _0x46d7cf=_0x4d1b9e[_0x4befd3(0x238)][_0x22398b],_0xccb94=_0x46d7cf[_0x4befd3(0x366)]===_0x4befd3(0x1d0)?'probability\x20'+_0x46d7cf[_0x4befd3(0x1d0)]['toFixed'](0x2):_0x46d7cf[_0x4befd3(0x366)]==='choice'?'choice\x20'+_0x46d7cf['choice']+_0x4befd3(0x1e3)+_0x46d7cf[_0x4befd3(0x2a6)]['toFixed'](0x2)+')':'score\x20'+_0x46d7cf[_0x4befd3(0x1f0)][_0x4befd3(0x262)](0x2)+_0x4befd3(0x1e3)+_0x46d7cf[_0x4befd3(0x2a6)][_0x4befd3(0x262)](0x2)+')';process['stdout'][_0x4befd3(0x205)]('\x20\x20'+_0x22398b+':\x20'+_0xccb94+'\x0a');}}function En(_0x44b767){const _0x7dd726=_0x21c914;Z(_0x44b767),_0x44b767['results'][_0x7dd726(0x289)]((_0x1ab791,_0x53f266)=>{const _0x151b60=_0x7dd726;process[_0x151b60(0x348)][_0x151b60(0x205)]('\x20\x20'+(_0x53f266+0x1)+'.\x20'+_0x1ab791['id']+'\x20\x20'+_0x1ab791[_0x151b60(0x1f0)][_0x151b60(0x262)](0x3)+'\x20\x20(input\x20#'+_0x1ab791[_0x151b60(0x3be)]+')\x0a');});}function $n(_0x360021){const _0xe5420c=_0x21c914;Z(_0x360021),process[_0xe5420c(0x348)][_0xe5420c(0x205)](_0xe5420c(0x21f)+_0x360021['rubric_version']+'\x0a');for(let _0x55f6a0 of _0x360021[_0xe5420c(0x344)])process[_0xe5420c(0x348)][_0xe5420c(0x205)]('\x20\x20'+_0x55f6a0['id']+':\x20'+_0x55f6a0[_0xe5420c(0x1dc)]+_0xe5420c(0x1e3)+_0x55f6a0[_0xe5420c(0x2a6)][_0xe5420c(0x262)](0x2)+')\x0a');}async function xn(_0x1346de){const _0x20613e=_0x21c914;let _0x2328e0=_0x1346de[_0x20613e(0x30c)][_0x20613e(0x2a1)]();_0x2328e0||(console['error']('transcribe\x20needs\x20audio:\x20delegate-cli\x20transcribe\x20<file>,\x20or\x20-\x20to\x20read\x20stdin.'),process['exit'](0x2));let {client:_0x332c42}=await $(_0x1346de);try{let _0xab34ad=_0x2328e0==='-'?{'data':await In(process['stdin'])}:_0x2328e0;m(_0x1346de,await _0x769c69(_0x332c42,_0xab34ad,void 0x0),_0x2888a7=>{const _0x2e1b48=_0x20613e;process[_0x2e1b48(0x348)][_0x2e1b48(0x205)](_0x2888a7['text']+'\x0a');});}catch(_0x4c4cad){if(_0x354523(_0x4c4cad)&&(console[_0x20613e(0x2c3)](_0x4c4cad[_0x20613e(0x2af)]),process[_0x20613e(0x397)](_0x4c4cad[_0x20613e(0x20e)]===void 0x0?0x2:0x1)),typeof _0x4c4cad?.[_0x20613e(0x39b)]!=_0x20613e(0x265))throw _0x4c4cad;console[_0x20613e(0x2c3)]('transcribe:\x20cannot\x20read\x20'+_0x2328e0+'\x20('+_0x4c4cad['message']+').'),process[_0x20613e(0x397)](0x2);}}async function In(_0x523282){const _0x4f04ad=_0x21c914;let _0x230d42=[];for await(let _0x1bb29c of _0x523282)_0x230d42[_0x4f04ad(0x3c0)](Buffer['from'](_0x1bb29c));return Buffer[_0x4f04ad(0x386)](_0x230d42);}var he=[_0x21c914(0x271),_0x21c914(0x221),_0x21c914(0x3c9),_0x21c914(0x341),_0x21c914(0x32c),_0x21c914(0x2de),_0x21c914(0x23a),_0x21c914(0x3c1),_0x21c914(0x24e),'delete'],ye={'list':'delegations\x20list\x20<backend-project-id>','pending':'delegations\x20pending\x20<session-id>','show':_0x21c914(0x34f),'create':'delegations\x20create\x20--session\x20<id>\x20[--to\x20<email|name>]\x20[--summary\x20<text>]\x20\x22<task>\x22|-','claim':_0x21c914(0x37c),'complete':_0x21c914(0x33d),'accept':_0x21c914(0x1cc),'dismiss':_0x21c914(0x1d3),'cancel':_0x21c914(0x396),'delete':_0x21c914(0x340)};async function Tn(_0xc11501){const _0x32b9bb=_0x21c914;let [_0x3eff61='',_0x213989='',..._0x40c921]=_0xc11501['operands'];he['includes'](_0x3eff61)||(console[_0x32b9bb(0x2c3)]((_0x3eff61?_0x32b9bb(0x225)+_0x3eff61+'.\x20':'')+_0x32b9bb(0x234)+he[_0x32b9bb(0x350)]('\x20|\x20')+'.'),process[_0x32b9bb(0x397)](0x2));let _0xcf599d=_0x3eff61;_0xcf599d!==_0x32b9bb(0x341)&&(_0xc11501[_0x32b9bb(0x231)]!==void 0x0||_0xc11501[_0x32b9bb(0x244)]!==void 0x0||_0xc11501[_0x32b9bb(0x2bf)]!==void 0x0)&&(console[_0x32b9bb(0x2c3)]('--to,\x20--summary\x20and\x20--session\x20apply\x20to\x20`delegate-cli\x20delegations\x20create`\x20only.'),process['exit'](0x2));let _0x3a8427=(_0xcf599d===_0x32b9bb(0x341)?_0xc11501[_0x32b9bb(0x38c)][_0x32b9bb(0x34e)](0x1):_0x40c921)[_0x32b9bb(0x350)]('\x20')['trim'](),_0x2abfe6=_0xcf599d==='create'||_0xcf599d===_0x32b9bb(0x2de);(_0xcf599d!==_0x32b9bb(0x341)&&!_0x213989||(_0x2abfe6?!_0x3a8427:_0x3a8427)||_0xcf599d===_0x32b9bb(0x341)&&!_0xc11501[_0x32b9bb(0x2bf)])&&(console[_0x32b9bb(0x2c3)](_0x32b9bb(0x3d3)+ye[_0xcf599d]),process[_0x32b9bb(0x397)](0x2));let _0x79c2f0=_0x2abfe6&&_0x3a8427==='-'?(await H('-',process[_0x32b9bb(0x2aa)]))[_0x32b9bb(0x2a1)]():_0x3a8427;_0x2abfe6&&!_0x79c2f0&&(console[_0x32b9bb(0x2c3)](_0x32b9bb(0x3d3)+ye[_0xcf599d]+'\x20(stdin\x20was\x20empty)'),process[_0x32b9bb(0x397)](0x2));let {client:_0x3af2f8}=await $(_0xc11501);try{await Un(_0xc11501,_0x3af2f8,_0xcf599d,_0x213989,_0x79c2f0);}catch(_0x1aeb60){if(!_0x5982e7(_0x1aeb60))throw _0x1aeb60;console[_0x32b9bb(0x2c3)](_0x1aeb60[_0x32b9bb(0x2af)]),process[_0x32b9bb(0x397)](0x1);}}async function Un(_0x58db43,_0x25e006,_0x1515f6,_0x17894f,_0x3a95b2){const _0x40fc21=_0x21c914;switch(_0x1515f6){case _0x40fc21(0x271):m(_0x58db43,await _0x466d01(_0x25e006,_0x17894f),Dn);return;case _0x40fc21(0x221):m(_0x58db43,await _0x1a4681(_0x25e006,_0x17894f),_0x56e22d=>{const _0x12f19e=_0x40fc21;_0x56e22d[_0x12f19e(0x395)]&&process[_0x12f19e(0x348)][_0x12f19e(0x205)](_0x12f19e(0x3a9)+_0x56e22d['delegation']['id']+'\x20('+_0x56e22d['delegation'][_0x12f19e(0x20e)]+_0x12f19e(0x35d)),_0x56e22d[_0x12f19e(0x242)][_0x12f19e(0x253)]===0x0&&process[_0x12f19e(0x37f)][_0x12f19e(0x205)](_0x12f19e(0x3c6));for(let _0xce1762 of _0x56e22d['pendingResults'])process[_0x12f19e(0x348)][_0x12f19e(0x205)]('\x0a'+_0xce1762['id']+_0x12f19e(0x2d7)+(_0xce1762['assignedUserEmail']??_0x12f19e(0x3da))+'\x20\x20'+(_0xce1762[_0x12f19e(0x260)]??'')+'\x0a'+(_0xce1762[_0x12f19e(0x240)]?.[_0x12f19e(0x3cb)]??'')+'\x0a');_0x56e22d['pendingResults'][_0x12f19e(0x253)]>0x0&&process[_0x12f19e(0x37f)][_0x12f19e(0x205)](_0x12f19e(0x2df));});return;case _0x40fc21(0x3c9):m(_0x58db43,await _0x2b056e(_0x25e006,_0x17894f),we);return;case'create':{let _0x5df48d=await _0x56d3bc(_0x25e006,{'sessionId':_0x58db43[_0x40fc21(0x2bf)],'task':_0x3a95b2,..._0x58db43['contextSummary']!==void 0x0&&{'contextSummary':_0x58db43[_0x40fc21(0x244)]},..._0x58db43['delegateTo']!==void 0x0&&{'recipient':_0x58db43[_0x40fc21(0x231)]}});m(_0x58db43,_0x5df48d,_0xd0b7bc=>{const _0x138c68=_0x40fc21;_0xd0b7bc[_0x138c68(0x257)]?process[_0x138c68(0x348)]['write']('Delegated\x20'+_0xd0b7bc[_0x138c68(0x30f)]+_0x138c68(0x20c)+_0xd0b7bc['assignedUser'][_0x138c68(0x1ee)]+'\x20<'+_0xd0b7bc[_0x138c68(0x257)][_0x138c68(0x3ca)]+'>.\x0a'):process[_0x138c68(0x348)][_0x138c68(0x205)](_0x138c68(0x2c0)+_0xd0b7bc['delegationId']+_0x138c68(0x1e7)+_0xd0b7bc[_0x138c68(0x3ce)]+'\x0a');});return;}case _0x40fc21(0x32c):{let _0xab9f38=await _0x2f199c(_0x25e006,_0x17894f);m(_0x58db43,_0xab9f38,_0xa08274=>{const _0x16bd94=_0x40fc21;we(_0xa08274),process[_0x16bd94(0x348)][_0x16bd94(0x205)](_0x16bd94(0x38d)+_0xa08274[_0x16bd94(0x2bf)]+'\x0a'),process[_0x16bd94(0x37f)]['write'](_0x16bd94(0x3ac)+_0xa08274[_0x16bd94(0x2bf)]+_0x16bd94(0x222)+_0xa08274['delegationId']+_0x16bd94(0x2e8));});return;}case _0x40fc21(0x2de):{let {alreadyCompleted:_0x1644ed}=await _0x334061(_0x25e006,_0x17894f,{'content':_0x3a95b2});m(_0x58db43,{'delegationId':_0x17894f,'alreadyCompleted':_0x1644ed},_0x565380=>{const _0x435875=_0x40fc21;process[_0x435875(0x348)]['write']((_0x565380[_0x435875(0x379)]?_0x435875(0x3b6):_0x435875(0x203))+_0x435875(0x267)+_0x565380[_0x435875(0x30f)]+'.\x0a');});return;}case _0x40fc21(0x23a):{let _0x519d3a=await _0x2f44c9(_0x25e006,_0x17894f);m(_0x58db43,{'delegationId':_0x17894f,..._0x519d3a},_0xda873d=>{const _0x8635a0=_0x40fc21;process[_0x8635a0(0x348)][_0x8635a0(0x205)]((_0xda873d[_0x8635a0(0x2ec)]?'Already\x20accepted':_0x8635a0(0x29f))+_0x8635a0(0x267)+_0xda873d[_0x8635a0(0x30f)]+'.\x0a');});return;}default:{let _0x351ca5={'dismiss':_0x346d35,'cancel':_0x59b216,'delete':_0x45aa0b}[_0x1515f6];await _0x351ca5(_0x25e006,_0x17894f);let _0x45d8a1={'dismiss':_0x40fc21(0x297),'cancel':_0x40fc21(0x273),'delete':'deleted'}[_0x1515f6];m(_0x58db43,{'delegationId':_0x17894f,[_0x45d8a1]:!0x0},()=>{const _0xa0f038=_0x40fc21;process[_0xa0f038(0x348)]['write'](''+_0x45d8a1[0x0]['toUpperCase']()+_0x45d8a1[_0xa0f038(0x34e)](0x1)+_0xa0f038(0x267)+_0x17894f+'.\x0a');});}}}function Dn(_0x1acc31){const _0x41f32d=_0x21c914;if(_0x1acc31[_0x41f32d(0x253)]===0x0){process[_0x41f32d(0x37f)][_0x41f32d(0x205)]('No\x20delegations.\x0a');return;}process[_0x41f32d(0x348)][_0x41f32d(0x205)]('ID'[_0x41f32d(0x3d2)](0x24)+'\x20\x20'+'STATUS'[_0x41f32d(0x3d2)](0x9)+'\x20\x20'+'ASSIGNEE'[_0x41f32d(0x3d2)](0x18)+_0x41f32d(0x27a));for(let _0x4c501c of _0x1acc31)process[_0x41f32d(0x348)][_0x41f32d(0x205)](_0x4c501c['id']['padEnd'](0x24)+'\x20\x20'+_0x4c501c['status'][_0x41f32d(0x3d2)](0x9)+'\x20\x20'+(_0x4c501c[_0x41f32d(0x269)]??'-')[_0x41f32d(0x3d2)](0x18)+'\x20\x20'+(_0x4c501c[_0x41f32d(0x260)]??'')+'\x0a');}function we(_0x56e0c3){const _0x1569cc=_0x21c914;process['stdout']['write'](_0x1569cc(0x34b)+(_0x56e0c3[_0x1569cc(0x2cd)]??'-')+'\x0a'),_0x56e0c3[_0x1569cc(0x2b6)]&&process[_0x1569cc(0x348)][_0x1569cc(0x205)]('Session\x20\x20\x20\x20\x20\x20\x20'+_0x56e0c3[_0x1569cc(0x2b6)]+'\x0a'),process[_0x1569cc(0x348)][_0x1569cc(0x205)](_0x1569cc(0x36e)+(_0x56e0c3[_0x1569cc(0x260)]??'-')+'\x0a'),_0x56e0c3[_0x1569cc(0x244)]&&process[_0x1569cc(0x348)][_0x1569cc(0x205)]('\x0a'+_0x56e0c3['contextSummary']+'\x0a\x0a');}async function Nn(_0x582644){const _0x1411eb=_0x21c914;_0x582644['prompt'][_0x1411eb(0x2a1)]()||(console[_0x1411eb(0x2c3)]('Usage:\x20delegate-cli\x20org-users\x20<name\x20or\x20email\x20prefix>'),process['exit'](0x2));let {client:_0x1ce8db}=await $(_0x582644),_0x5ba134;try{_0x5ba134=await _0x44e8ff(_0x1ce8db,_0x582644[_0x1411eb(0x30c)]);}catch(_0xa94d20){if(!_0x5982e7(_0xa94d20))throw _0xa94d20;console[_0x1411eb(0x2c3)](_0xa94d20[_0x1411eb(0x2af)]),process[_0x1411eb(0x397)](0x1);}m(_0x582644,_0x5ba134,_0x57a9f9=>{const _0x5bdbe7=_0x1411eb;_0x57a9f9[_0x5bdbe7(0x253)]===0x0&&process[_0x5bdbe7(0x37f)][_0x5bdbe7(0x205)](_0x5bdbe7(0x264)+_0x582644[_0x5bdbe7(0x30c)][_0x5bdbe7(0x2a1)]()+_0x5bdbe7(0x2f1));for(let _0x3dcc91 of _0x57a9f9)process[_0x5bdbe7(0x348)]['write'](_0x3dcc91[_0x5bdbe7(0x3ca)][_0x5bdbe7(0x3d2)](0x20)+'\x20\x20'+_0x3dcc91['displayName']+'\x0a');});}async function _n(_0x36e3c3){const _0x5864dd=_0x21c914;_0x36e3c3['env']===_0x5864dd(0x1fe)&&(console[_0x5864dd(0x2c3)](_0x5864dd(0x361)),process[_0x5864dd(0x397)](0x2));let _0xdf5498=G(_0x5cc8ac()),_0x46dd2c=_0x36e3c3['skipEnvCheck'];if(_0x36e3c3['env']){let _0x21cc34=_0x36e3c3[_0x5864dd(0x296)];await _0xc99361({'env':_0x21cc34,'tenant':_0x36e3c3[_0x5864dd(0x29e)]??Q(_0xdf5498,_0x3e9df0[_0x21cc34]),'skipEnvCheck':_0x46dd2c});return;}let _0xd2319a=_0x36e3c3['url']??Ue();if(_0xd2319a){await _0xc99361({'baseUrl':_0xd2319a,'tenant':_0x36e3c3[_0x5864dd(0x29e)]??Q(_0xdf5498,_0xd2319a),'skipEnvCheck':_0x46dd2c});return;}if(_0xdf5498?.['baseUrl']){await _0xc99361({'baseUrl':_0xdf5498[_0x5864dd(0x288)],'tenant':_0x36e3c3[_0x5864dd(0x29e)]??_0xdf5498[_0x5864dd(0x3ae)],'skipEnvCheck':_0x46dd2c});return;}console[_0x5864dd(0x2c3)](_0x5864dd(0x1cf)),process[_0x5864dd(0x397)](0x2);}function Q(_0x3345ba,_0x2bc172){const _0x19e313=_0x21c914;return _0x3345ba?.['baseUrl']&&Rn(_0x3345ba[_0x19e313(0x288)],_0x2bc172)?_0x3345ba[_0x19e313(0x3ae)]:void 0x0;}function Rn(_0x227b3f,_0x5356c7){const _0x977956=_0x21c914;try{return new URL(_0x227b3f)['origin']===new URL(_0x5356c7)[_0x977956(0x1ec)];}catch{return!0x1;}}async function Pn(_0x4aa5ca){const _0x295e97=_0x21c914;Y()&&(console[_0x295e97(0x2c3)]('Auth\x20comes\x20from\x20AUTH_TOKEN/TENANT_ID/ORG_ID\x20—\x20set\x20TENANT_ID\x20and\x20TENANT_SLUG\x20to\x20change\x20the\x20tenant.'),process[_0x295e97(0x397)](0x2));let _0x36b8a3=await _0x7ccefd();if(_0x36b8a3||(console[_0x295e97(0x2c3)](Cn()),process[_0x295e97(0x397)](0x2)),_0x4aa5ca[_0x295e97(0x2a1)]()){let _0x3d81b0=await _0x42c571(_0x36b8a3,_0x4aa5ca);_0x2899c9(_0x3d81b0)||(console[_0x295e97(0x2c3)]('Tenant\x20not\x20switched:\x20could\x20not\x20write\x20'+_0x5cc8ac()+_0x295e97(0x31d)+_0x36b8a3[_0x295e97(0x3ae)]+'.'),process['exit'](0x1)),console[_0x295e97(0x24f)](_0x295e97(0x27d)+_0x3d81b0['tenantName']+'\x20('+_0x3d81b0[_0x295e97(0x32f)]+_0x295e97(0x26c)+_0x5cc8ac());return;}On(await _0x42d933(_0x36b8a3),_0x36b8a3);}function Cn(){const _0x500ec2=_0x21c914;if(_0x1796bd['existsSync'](_0x5cc8ac()))return _0x500ec2(0x327);let _0x5e9c50=z();return G(_0x5e9c50)?'No\x20CLI\x20login\x20to\x20switch:\x20the\x20CLI\x20is\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20'+_0x5e9c50+',\x20whose\x20tenant\x20is\x20chosen\x20in\x20the\x20app.\x20Run\x20`delegate-cli\x20login\x20--env\x20<env>`\x20for\x20a\x20CLI\x20login\x20of\x20your\x20own.':_0x500ec2(0x39a);}function On(_0x3cfe63,_0x2343fd){const _0x34bc63=_0x21c914;let _0x132ca6=_0x3cfe63['map'](_0x529eff=>_0x529eff['id']===_0x2343fd[_0x34bc63(0x32f)]?'*\x20'+_0x529eff['name']+_0x34bc63(0x3d1):'\x20\x20'+_0x529eff[_0x34bc63(0x2b9)]);process['stdout'][_0x34bc63(0x205)](_0x34bc63(0x316)+(_0x2343fd[_0x34bc63(0x25b)]??_0x2343fd[_0x34bc63(0x2d6)])+':\x0a'+_0x132ca6[_0x34bc63(0x350)]('\x0a')+'\x0a'),_0x3cfe63[_0x34bc63(0x253)]>0x1&&process[_0x34bc63(0x348)][_0x34bc63(0x205)](_0x34bc63(0x33f));}function Ln(_0x4397d6){const _0x255fdd=_0x21c914;return _0x4397d6?.[_0x255fdd(0x276)]?.[_0x255fdd(0x20e)]===0x191||/401/[_0x255fdd(0x2b8)](String(_0x4397d6?.[_0x255fdd(0x2af)]??''));}var w={'lastType':null,'quiet':!0x1},_e=_0x473c18=>{const _0x5dc0d8=_0x21c914;switch(_0x473c18[_0x5dc0d8(0x366)]){case _0x5dc0d8(0x310):_0x473c18[_0x5dc0d8(0x2bf)]&&_0x473c18[_0x5dc0d8(0x2bf)]!==w[_0x5dc0d8(0x2bf)]&&(process[_0x5dc0d8(0x37f)][_0x5dc0d8(0x205)](_0x5dc0d8(0x1f6)+_0x473c18['sessionId']+_0x5dc0d8(0x358)+_0x473c18[_0x5dc0d8(0x2bf)]+')\x0a'),w[_0x5dc0d8(0x2bf)]=_0x473c18[_0x5dc0d8(0x2bf)]);break;case _0x5dc0d8(0x31f):_0x473c18[_0x5dc0d8(0x2e7)]&&_0x473c18[_0x5dc0d8(0x2e7)]!==w[_0x5dc0d8(0x2e7)]&&(w[_0x5dc0d8(0x29a)]!==null&&process['stderr'][_0x5dc0d8(0x205)]('\x0a'),process[_0x5dc0d8(0x37f)][_0x5dc0d8(0x205)]('Turn:\x20'+_0x473c18[_0x5dc0d8(0x2e7)]+'\x20(cancel\x20with:\x20delegate-cli\x20sessions\x20cancel\x20'+_0x473c18[_0x5dc0d8(0x2bf)]+_0x5dc0d8(0x36a)+_0x473c18['turnId']+')\x0a'),w[_0x5dc0d8(0x2e7)]=_0x473c18[_0x5dc0d8(0x2e7)],w[_0x5dc0d8(0x29a)]=_0x5dc0d8(0x31f));break;case _0x5dc0d8(0x37a):_0x473c18[_0x5dc0d8(0x3cb)]&&!w[_0x5dc0d8(0x27b)]&&(w[_0x5dc0d8(0x29a)]!==_0x5dc0d8(0x37a)&&process[_0x5dc0d8(0x37f)]['write']('\x0a🤔\x20'),process['stderr']['write'](_0x473c18[_0x5dc0d8(0x3cb)]),w['lastType']='thinking');break;case _0x5dc0d8(0x281):w[_0x5dc0d8(0x29a)]!==null&&process['stderr'][_0x5dc0d8(0x205)]('\x0a'),process['stderr']['write']('🔧\x20'+(_0x473c18[_0x5dc0d8(0x377)]??_0x5dc0d8(0x27e))+'\x0a'),w[_0x5dc0d8(0x29a)]='tool_call';break;case _0x5dc0d8(0x2af):_0x473c18['content']&&(w[_0x5dc0d8(0x29a)]!=='message'&&w[_0x5dc0d8(0x29a)]!==null&&process[_0x5dc0d8(0x348)][_0x5dc0d8(0x205)]('\x0a'),process[_0x5dc0d8(0x348)][_0x5dc0d8(0x205)](_0x473c18[_0x5dc0d8(0x3cb)]),w[_0x5dc0d8(0x29a)]='message');break;case _0x5dc0d8(0x2c3):w[_0x5dc0d8(0x29a)]!==null&&process[_0x5dc0d8(0x37f)][_0x5dc0d8(0x205)]('\x0a'),process[_0x5dc0d8(0x37f)]['write']('✗\x20'+(_0x473c18[_0x5dc0d8(0x2c3)]??_0x5dc0d8(0x2c3))+'\x0a'),w['lastType']='error';break;case'done':(w[_0x5dc0d8(0x29a)]==='message'||w['lastType']===_0x5dc0d8(0x37a))&&process[_0x5dc0d8(0x348)][_0x5dc0d8(0x205)]('\x0a'),process['stderr'][_0x5dc0d8(0x205)](_0x5dc0d8(0x365)),w[_0x5dc0d8(0x29a)]=_0x5dc0d8(0x1da);break;}};function ke(_0x1f45df,_0x2936d3,_0x365232,_0xcaee0f){const _0x374a34=_0x21c914;let _0x204259=_0x1f45df['model']||process.env.MODEL;return{'backendUrl':_0x365232,'auth':_0x2936d3,'enableComputerUse':!_0x1f45df['headless']&&!_0x1f45df['noComputerUse'],'autoSpawnInterop':!_0x1f45df[_0x374a34(0x3cc)],'enableConnections':!_0x1f45df[_0x374a34(0x286)],'enableSecurity':!_0x1f45df[_0x374a34(0x22e)],'keepInteropAlive':_0x1f45df[_0x374a34(0x2ee)],..._0xcaee0f[_0x374a34(0x259)]?{'enableBackgroundCommands':!0x1}:{},..._0x1f45df[_0x374a34(0x30b)]?{'enableMemory':!0x1}:{},..._0x1f45df[_0x374a34(0x243)]?{'enableTaskAutomation':!0x0}:{},..._0x1f45df[_0x374a34(0x275)]['length']>0x0?{'preloadSkills':_0x1f45df[_0x374a34(0x275)]}:{},..._0x204259?{'model':_0x204259}:{},..._0x1f45df[_0x374a34(0x3a5)]?{'projectId':_0x1f45df[_0x374a34(0x3a5)]}:{},..._0x1f45df['vertical']?{'vertical':_0x1f45df[_0x374a34(0x20f)]}:{},..._0x1f45df['workingDirectory']?{'workingDirectory':_0x1f45df[_0x374a34(0x3a3)]}:{},..._0x1f45df[_0x374a34(0x1dd)]?{'bundledSkillsPath':_0x1f45df['bundledSkillsPath']}:{},..._0x1f45df[_0x374a34(0x360)]?{'effort':_0x1f45df['effort']}:{},..._0x1f45df['sessionId']?{'sessionId':_0x1f45df[_0x374a34(0x2bf)]}:{},..._0x1f45df[_0x374a34(0x353)]?{'verbose':!0x0}:{}};}async function Fn(_0x4a2928){const _0x422262=_0x21c914;let _0x551331=_0x4a2928['outputFormat']!==_0x422262(0x23d),_0x24fc3c=_0x4a2928['jsonSchemaPath']===void 0x0?null:Ne(_0x4a2928[_0x422262(0x399)],_0x422262(0x2f3)),_0x2ffec0=!_0x551331&&!_0x24fc3c&&!_0x4a2928['print']&&_0x4a2928[_0x422262(0x30c)]!=='-'&&!!process[_0x422262(0x2aa)]['isTTY']&&!!process[_0x422262(0x348)]['isTTY'],_0x122c15=_0x4a2928[_0x422262(0x383)]===_0x422262(0x3b4)?re(process[_0x422262(0x2aa)],_0x800cc6=>{const _0xae9874=_0x422262;process[_0xae9874(0x37f)][_0xae9874(0x205)](_0x800cc6[_0xae9874(0x2af)]+_0xae9874(0x201));}):null,_0x355cf3=_0x122c15?(await _0x122c15[_0x422262(0x393)]())[_0x422262(0x25f)]:void 0x0,_0x574e9f=_0x122c15?_0x355cf3?.[_0x422262(0x23d)]??'':_0x2ffec0?_0x4a2928[_0x422262(0x30c)][_0x422262(0x2a1)]():await H(_0x4a2928[_0x422262(0x30c)],process[_0x422262(0x2aa)]);if(!_0x2ffec0&&!_0x574e9f&&(console[_0x422262(0x2c3)]('Missing\x20prompt.\x20Pass\x20it\x20as\x20an\x20argument,\x20pipe\x20it\x20via\x20stdin,\x20or\x20run\x20`delegate-cli\x20--help`.'),process[_0x422262(0x397)](0x2)),!_0x551331){await be(_0x4a2928,_0x574e9f,_0x2ffec0,null,_0x24fc3c,null);return;}let _0x2e72af=!0x1,_0x13d4b1=_0x2352ae=>{const _0x4e428b=_0x422262;_0x2e72af=!0x0,O(_0x3151dc(_0x2352ae)),(_0x2352ae[_0x4e428b(0x2f9)]||_0x2352ae[_0x4e428b(0x2a7)])&&(process[_0x4e428b(0x354)]=0x1);},_0x5be2a6=Date['now']();try{await be(_0x4a2928,_0x574e9f,!0x1,_0x13d4b1,_0x24fc3c,_0x122c15?{'messages':_0x122c15,'first':_0x355cf3,'close':()=>{const _0x3fe1f0=_0x422262;process[_0x3fe1f0(0x2aa)][_0x3fe1f0(0x36c)]();}}:null);}catch(_0x2e9585){if(_0x2e72af)throw _0x2e9585;process['stderr']['write']((_0x2e9585 instanceof Error?_0x2e9585[_0x422262(0x30a)]??_0x2e9585['message']:String(_0x2e9585))+'\x0a'),_0x13d4b1(new _0x5414ee(_0x5be2a6)[_0x422262(0x294)]({'endedAtMs':Date['now'](),'usage':[],'error':_0x2e9585}));}finally{_0x122c15&&(process[_0x422262(0x2aa)][_0x422262(0x36c)](),_0x122c15[_0x422262(0x2a2)](void 0x0));}}async function be(_0x579d88,_0x16749a,_0x5e7b03,_0x433a30,_0x51ec36,_0x247a6a){const _0x4611ba=_0x21c914;w={'lastType':null,'quiet':_0x579d88[_0x4611ba(0x27b)]};let _0x3d5cd4=new Set(),_0x25ffac,_0x4ebecc=_0x53d5b9=>{const _0x8f10d=_0x4611ba;(!_0x433a30||_0x53d5b9[_0x8f10d(0x366)]===_0x8f10d(0x310)||_0x53d5b9['type']===_0x8f10d(0x31f))&&(_0x25ffac??_e)(_0x53d5b9);for(let _0x101dc1 of _0x3d5cd4)_0x101dc1(_0x53d5b9);},_0x236506=await V(),_0x5c017b=new _0x1fcb59();_0x5c017b[_0x4611ba(0x31e)](_0x4ebecc);let _0x12a5b4=_0x26480f(_0x579d88[_0x4611ba(0x296)],_0x236506,_0x579d88['backendUrl']);X(_0x579d88[_0x4611ba(0x296)],_0x579d88[_0x4611ba(0x3a4)],_0x12a5b4);let _0x422ea4={'input':null},_0xad9c68=_0x5e7b03?ne(()=>_0x422ea4['input'],_0x26aa85=>{const _0x9eb727=_0x4611ba;process[_0x9eb727(0x37f)][_0x9eb727(0x205)](_0x26aa85);}):null,_0x5c22af=_0x5b2088=>_0xad9c68?{..._0x5b2088,'askUser':_0xad9c68}:_0x5b2088,_0xf23d5b=_0x5c22af(ke(_0x579d88,_0x236506,_0x12a5b4,{'oneTurn':!_0x5e7b03})),_0x51e2b8=!0x1,_0x55360f=!0x1,_0x5d1b64,_0xdb8bef=()=>_0x5d1b64??=_0x5c017b[_0x4611ba(0x2ae)](),_0x1f877e=()=>{const _0x56e425=_0x4611ba;_0x55360f&&process['exit'](0x82),_0x55360f=!0x0,process['stderr'][_0x56e425(0x205)](_0x56e425(0x34a)),_0x51e2b8&&_0x5c017b[_0x56e425(0x24e)]()['catch'](_0x209774=>console[_0x56e425(0x2c3)](_0x209774))[_0x56e425(0x1eb)](_0xdb8bef)[_0x56e425(0x1eb)](()=>process[_0x56e425(0x397)](0x82),_0x587b88=>{const _0x2a6cd1=_0x56e425;console[_0x2a6cd1(0x2c3)](_0x587b88),process[_0x2a6cd1(0x397)](0x82);});};process['on'](_0x4611ba(0x36b),_0x1f877e);let _0x2f8152=_0x579d88[_0x4611ba(0x3b9)],_0x2e9b1a=async _0x347c70=>{const _0x15a447=_0x4611ba;let _0x5b73f0=_0x2f8152;_0x2f8152=[];let _0x23dcc8=()=>_0x5c017b[_0x15a447(0x311)](_0x347c70,{'attachments':_0x5b73f0});try{return await _0x23dcc8();}catch(_0x124c89){if(_0x55360f||!Ln(_0x124c89)||!process[_0x15a447(0x2aa)][_0x15a447(0x38a)]||_0x579d88[_0x15a447(0x296)]==='localhost'||!(_0x579d88[_0x15a447(0x296)]||_0x236506[_0x15a447(0x288)]))throw _0x124c89;process['stderr'][_0x15a447(0x205)]('\x0a⚠️\x20\x20Auth\x20expired.\x20Opening\x20browser\x20to\x20re-login…\x0a');let _0x58751d=_0x5c017b[_0x15a447(0x2a3)]()??_0x579d88['sessionId'],_0x1ba816=await _0xc99361(_0x579d88[_0x15a447(0x296)]?{'env':_0x579d88['env'],'tenant':Q(_0x236506,_0x3e9df0[_0x579d88[_0x15a447(0x296)]]),'skipEnvCheck':!0x0}:{'baseUrl':_0x236506[_0x15a447(0x288)],'tenant':_0x236506[_0x15a447(0x3ae)],'skipEnvCheck':!0x0}),_0x3f1ed4={'text':'','failed':!0x1,'sessionId':_0x58751d};return _0x55360f||(_0x51e2b8=!0x1,await _0xdb8bef(),_0x55360f)?_0x3f1ed4:(_0x5c017b=new _0x1fcb59(),_0x5d1b64=void 0x0,_0x5c017b[_0x15a447(0x31e)](_0x4ebecc),_0x236506=_0x1ba816,await _0x5c017b[_0x15a447(0x38e)]({..._0x5c22af(ke(_0x579d88,_0x236506,_0x12a5b4,{'oneTurn':!_0x5e7b03})),..._0x58751d?{'sessionId':_0x58751d}:{}}),_0x51e2b8=!0x0,_0x55360f?_0x3f1ed4:_0x23dcc8());}};try{if(await _0x5c017b[_0x4611ba(0x38e)](_0xf23d5b),_0x51e2b8=!0x0,_0x55360f)return;if(_0x5e7b03)await Bn({'prompt':_0x16749a,'sendMessage':_0x2e9b1a,'onSigint':_0x1f877e,'setAnswerInput':_0x4c22ab=>{const _0x1ece9a=_0x4611ba;_0x422ea4[_0x1ece9a(0x22a)]=_0x4c22ab;},'registerEventPrinter':_0x250c51=>(_0x25ffac=_0x250c51,()=>{_0x25ffac=void 0x0;})});else{if(_0x433a30||_0x51ec36){let _0x2baf18=_0x579d88[_0x4611ba(0x34d)]===_0x4611ba(0x3b4)?_0x2b1d71=>O(_0x15b104(_0x2b1d71)):()=>{},_0x13801c=_0x247a6a?ie({'input':_0x247a6a,'getAgent':()=>_0x5c017b,'replay':_0x579d88[_0x4611ba(0x2d2)],'onEvent':_0x253e35=>(_0x3d5cd4[_0x4611ba(0x298)](_0x253e35),()=>{const _0x46a045=_0x4611ba;_0x3d5cd4[_0x46a045(0x313)](_0x253e35);}),'write':O,'isRunStopNotice':_0x4e4636,'actionableErrorText':_0x49c6de,'warn':_0x32c4db=>{process['stderr']['write'](_0x32c4db);}}):null,_0x448ffc=await _0x49a027({'onEvent':_0x5eff03=>(_0x3d5cd4[_0x4611ba(0x298)](_0x5eff03),()=>{_0x3d5cd4['delete'](_0x5eff03);}),'sendMessage':async _0x4b7853=>{const _0x4003dd=_0x4611ba;try{let _0x3d73b2=await _0x2e9b1a(_0x4b7853);return _0x13801c?await _0x13801c['settle'](_0x3d73b2):_0x3d73b2;}finally{_0x13801c?.[_0x4003dd(0x295)]();}},'getSessionId':()=>_0x5c017b[_0x4611ba(0x2a3)](),'getTurnUsageHistory':_0x469ffa=>_0x5c017b[_0x4611ba(0x3d8)](_0x469ffa),'complete':_0x585a9c=>_0x5c017b[_0x4611ba(0x2de)](_0x585a9c)},_0x16749a,void 0x0,_0x2baf18,_0x51ec36?{'outputSchema':_0x51ec36}:void 0x0);_0x433a30?_0x433a30(_0x448ffc):Mn(_0x448ffc);}else await _0x2e9b1a(_0x16749a);}}catch(_0x59de6a){if(!_0x55360f)throw _0x59de6a;}finally{try{await _0xdb8bef();}finally{process[_0x4611ba(0x331)](_0x4611ba(0x36b),_0x1f877e),_0x55360f&&(process[_0x4611ba(0x354)]=0x82);}}}function Mn(_0x25e7a2){const _0x122bde=_0x21c914;_0x25e7a2['structuredError']?(console[_0x122bde(0x2c3)](_0x122bde(0x32e)+_0x25e7a2['structuredError'][_0x122bde(0x2af)]),process[_0x122bde(0x354)]=0x1):_0x25e7a2[_0x122bde(0x2f9)]?(console[_0x122bde(0x2c3)](_0x122bde(0x230)+_0x25e7a2[_0x122bde(0x2c3)]+').'),process[_0x122bde(0x354)]=0x1):process[_0x122bde(0x348)][_0x122bde(0x205)](JSON[_0x122bde(0x2b2)](_0x25e7a2['structured'],null,0x2)+'\x0a');}function jn(_0x227ea7,_0x112565){const _0x2ffba3=_0x21c914;let _0x39cc32=process[_0x2ffba3(0x348)][_0x2ffba3(0x205)][_0x2ffba3(0x1f7)](process[_0x2ffba3(0x348)]),_0x28c96a=!0x1;return process[_0x2ffba3(0x348)][_0x2ffba3(0x205)]=(..._0x51830d)=>{if(!_0x28c96a)return _0x39cc32(..._0x51830d);_0x45d9bc(_0x112565,0x0),_0x4a0f48(_0x112565,0x0);let _0x483bca=_0x39cc32(..._0x51830d);return _0x227ea7['prompt'](!0x0),_0x483bca;},{'show':()=>{_0x28c96a=!0x0,_0x227ea7['prompt']();},'hide':()=>{_0x28c96a=!0x1;},'erase':()=>{_0x28c96a&&(_0x45d9bc(_0x112565,0x0),_0x4a0f48(_0x112565,0x0)),_0x28c96a=!0x1;},'restore':()=>{const _0x983d74=_0x2ffba3;_0x28c96a=!0x1,process[_0x983d74(0x348)][_0x983d74(0x205)]=_0x39cc32;}};}async function Bn({prompt:_0x14ab9d,sendMessage:_0x1576f4,onSigint:_0x2474cf,setAnswerInput:_0x420db9,registerEventPrinter:_0x3e8297}){const _0x239177=_0x21c914;let _0x25e4bf=_0x26eeef({'input':process[_0x239177(0x2aa)],'output':process[_0x239177(0x37f)],'terminal':!0x0,'prompt':_0x239177(0x249)}),_0x497e6e=jn(_0x25e4bf,process['stderr']),_0x3906c1=[],_0x47c75f,_0xaa8d76,_0x3fd1ef,_0x438c58=!0x1,_0x16fb36=!0x1,_0x25732a=!0x1,_0x14d1cc=Promise[_0x239177(0x3d4)](),_0xaa2c1d,_0x5a1fb3=_0x3e8297(_0x36f6a4=>{const _0x53af00=_0x239177;_0x36f6a4['type']===_0x53af00(0x310)&&(_0x497e6e[_0x53af00(0x208)](),_0x14d1cc=new Promise(_0x147f9c=>{_0xaa2c1d=_0x147f9c;})),_e(_0x36f6a4),_0x36f6a4[_0x53af00(0x366)]==='done'&&(_0xaa2c1d?.(),_0xaa2c1d=void 0x0,!_0x25732a&&!_0x438c58&&_0x497e6e['show']());}),_0xca57bb=()=>{_0x16fb36=!0x0,_0xaa2c1d?.(),_0x2474cf(),_0x25e4bf['close']();};_0x25e4bf['on']('line',_0x5040a6=>{const _0x40b91d=_0x239177;_0x3fd1ef?_0x3fd1ef(_0x5040a6):_0x47c75f?_0x47c75f[_0x40b91d(0x3c0)](_0x5040a6):_0xaa8d76?_0xaa8d76(_0x5040a6):_0x3906c1[_0x40b91d(0x3c0)](_0x5040a6);}),_0x25e4bf[_0x239177(0x315)](_0x239177(0x39d),()=>{const _0x5b5fb0=_0x239177;_0x438c58=!0x0,_0x497e6e[_0x5b5fb0(0x35a)](),_0x47c75f&&!_0x16fb36&&_0xca57bb(),_0xaa8d76?.(null);});let _0x333456=()=>_0x3906c1[_0x239177(0x253)]>0x0?Promise[_0x239177(0x3d4)](_0x3906c1[_0x239177(0x1f1)]()):_0x438c58?Promise[_0x239177(0x3d4)](null):new Promise(_0x4599ca=>{_0xaa8d76=_0x2ecedc=>{_0xaa8d76=void 0x0,_0x4599ca(_0x2ecedc);};});_0x420db9({'readLine':(_0x2f37af,_0x44b5c7)=>new Promise((_0x3f6996,_0x34fb51)=>{const _0x2fecf9=_0x239177;if(_0x438c58&&!_0x47c75f){_0x3f6996(null);return;}_0x47c75f??=[];let _0x53a60a=_0x47c75f[_0x2fecf9(0x1f1)]();if(_0x53a60a!==void 0x0){_0x3f6996(_0x53a60a);return;}let _0x290322=()=>{const _0x5e2eaa=_0x2fecf9;_0x3fd1ef=void 0x0,_0x44b5c7[_0x5e2eaa(0x301)]('abort',_0x51f9c6),_0x497e6e[_0x5e2eaa(0x35a)](),_0x25e4bf['setPrompt'](_0x5e2eaa(0x249));},_0x51f9c6=()=>{const _0x28c67f=_0x2fecf9;_0x290322(),_0x34fb51(new Error(_0x28c67f(0x21d)));};_0x44b5c7[_0x2fecf9(0x2ad)](_0x2fecf9(0x2db),_0x51f9c6,{'once':!0x0}),!_0x438c58&&(_0x3fd1ef=_0x99ec55=>{_0x290322(),_0x3f6996(_0x99ec55);},_0x25e4bf[_0x2fecf9(0x2cc)](_0x2f37af),_0x497e6e['show']());}),'endQuestions':()=>{const _0x44aae8=_0x239177;_0x47c75f&&_0x3906c1[_0x44aae8(0x3c0)](..._0x47c75f),_0x47c75f=void 0x0;}}),_0x25e4bf['on'](_0x239177(0x36b),_0xca57bb),process[_0x239177(0x37f)][_0x239177(0x205)](_0x239177(0x3b8));let _0x2ad5d3=async _0x300f9d=>{_0x25732a=!0x0;try{await _0x1576f4(_0x300f9d);}finally{_0x25732a=!0x1;}};try{if(_0x14ab9d&&await _0x2ad5d3(_0x14ab9d),_0x16fb36)return;!_0x438c58&&!_0xaa2c1d&&_0x497e6e[_0x239177(0x3c9)]();for(let _0x15ba30=await _0x333456();_0x15ba30!==null&&(_0x497e6e[_0x239177(0x35a)](),!_0x16fb36);_0x15ba30=await _0x333456()){let _0x1bd044=_0x15ba30[_0x239177(0x2a1)]();if(_0x1bd044===_0x239177(0x37b))break;_0x1bd044&&await _0x2ad5d3(_0x1bd044),!_0x438c58&&!_0xaa2c1d&&_0x497e6e[_0x239177(0x3c9)]();}for(;!_0x16fb36&&_0xaa2c1d;)await _0x14d1cc;}finally{_0x420db9(null),_0x5a1fb3(),_0x497e6e[_0x239177(0x307)](),_0x25e4bf[_0x239177(0x331)](_0x239177(0x36b),_0xca57bb),_0x25e4bf[_0x239177(0x39d)]();}}async function Jn(){const _0x3a7080=_0x21c914;let _0x599e33=Kt(process['argv'][_0x3a7080(0x34e)](0x2));if(_0x599e33[_0x3a7080(0x34d)]===_0x3a7080(0x23d)){await Se(_0x599e33);return;}let _0x2a647f=Qt();try{await Se(_0x599e33);}finally{_0x2a647f();}}async function Se(_0x4e6db1){const _0x459d69=_0x21c914;if(_0x4e6db1[_0x459d69(0x228)]){qt();return;}if(_0x4e6db1['version']){console[_0x459d69(0x24f)](zt());return;}if(_0x4e6db1[_0x459d69(0x2d9)]===_0x459d69(0x283)){await _n(_0x4e6db1);return;}if(_0x4e6db1['subcommand']===_0x459d69(0x29e)){await Pn(_0x4e6db1['prompt']);return;}if(_0x4e6db1[_0x459d69(0x2d9)]==='logout'){await Zt();return;}if(_0x4e6db1[_0x459d69(0x2d9)]==='whoami'){await en(_0x4e6db1);return;}if(_0x4e6db1[_0x459d69(0x2d9)]===_0x459d69(0x3ab)){await on(_0x4e6db1);return;}if(_0x4e6db1[_0x459d69(0x2d9)]===_0x459d69(0x24b)){await mn(_0x4e6db1);return;}if(_0x4e6db1[_0x459d69(0x2d9)]===_0x459d69(0x368)){await an(_0x4e6db1);return;}if(_0x4e6db1[_0x459d69(0x2d9)]==='usage'){await hn(_0x4e6db1);return;}if(_0x4e6db1[_0x459d69(0x2d9)]===_0x459d69(0x320)||_0x4e6db1['subcommand']===_0x459d69(0x3b2)||_0x4e6db1[_0x459d69(0x2d9)]===_0x459d69(0x33a)){await bn(_0x4e6db1,_0x4e6db1[_0x459d69(0x2d9)]);return;}if(_0x4e6db1[_0x459d69(0x2d9)]===_0x459d69(0x2de)){await vn(_0x4e6db1);return;}if(_0x4e6db1['subcommand']===_0x459d69(0x1e0)){await xn(_0x4e6db1);return;}if(_0x4e6db1[_0x459d69(0x2d9)]===_0x459d69(0x22f)){await Tn(_0x4e6db1);return;}if(_0x4e6db1[_0x459d69(0x2d9)]==='org-users'){await Nn(_0x4e6db1);return;}if(_0x4e6db1[_0x459d69(0x2d9)]==='host'){await _0x43a6e0(_0x4e6db1[_0x459d69(0x30c)],{'runnerUrl':_0x4e6db1[_0x459d69(0x1d1)],'backendUrl':_0x4e6db1[_0x459d69(0x3a4)],'interopPath':_0x4e6db1[_0x459d69(0x239)],'workerId':_0x4e6db1[_0x459d69(0x375)]});return;}if(_0x4e6db1[_0x459d69(0x3d7)]){await sn();return;}await Fn(_0x4e6db1);}var Hn=process.env.NODE_ENV==='test'||!!process.env.JEST_WORKER_ID;function _0xc28c(_0x53e5a8,_0x46bd8e){_0x53e5a8=_0x53e5a8-0x1cb;const _0x3e935c=_0x3e93();let _0xc28c74=_0x3e935c[_0x53e5a8];return _0xc28c74;}Hn||Jn()[_0x21c914(0x216)](_0x42eeae=>{const _0x239bfa=_0x21c914;console[_0x239bfa(0x2c3)](_0x42eeae['stack']||_0x42eeae[_0x239bfa(0x2af)]||_0x42eeae),process['exit'](0x1);});export{Wt as CARTOGRAPHER_SKILLS,pe as EFFORT_TIERS,Yt as IMPLICIT_STDIN_IDLE_MS,ke as buildInitOptions,Jn as main,Kt as parseArgs,zt as readCliVersion,H as resolvePrompt,Qt as routeStdoutToStderr,m as writeCommandResult};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uipath/delegate-cli",
3
- "version": "1.207.0-preview.20261126124103",
3
+ "version": "1.207.0-preview.20261126164959",
4
4
  "description": "UiPath Delegate CLI - drive the Delegate agent from the terminal. Wraps @uipath/delegate-sdk; installing this package pulls the SDK in — no separate install.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "commonjs",
@@ -22,7 +22,7 @@
22
22
  "publish:npmjs": "npm publish --@uipath:registry=https://registry.npmjs.org/ --access public --ignore-scripts"
23
23
  },
24
24
  "dependencies": {
25
- "@uipath/delegate-sdk": "1.207.0-preview.20261126124103"
25
+ "@uipath/delegate-sdk": "1.207.0-preview.20261126164959"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@types/node": "^22.0.0",