@uipath/delegate-cli 1.208.0-preview.20261128200644 → 1.208.0-preview.20261203124958

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 _0x2282d3=_0xbcf4;(function(_0x3d9164,_0x2d1482){const _0xdd8f9d=_0xbcf4,_0x31c173=_0x3d9164();while(!![]){try{const _0x5858f9=parseInt(_0xdd8f9d(0x190))/0x1*(parseInt(_0xdd8f9d(0x173))/0x2)+parseInt(_0xdd8f9d(0x354))/0x3+parseInt(_0xdd8f9d(0x16d))/0x4*(-parseInt(_0xdd8f9d(0x2da))/0x5)+-parseInt(_0xdd8f9d(0x2fa))/0x6*(parseInt(_0xdd8f9d(0x1f0))/0x7)+-parseInt(_0xdd8f9d(0x1a4))/0x8*(-parseInt(_0xdd8f9d(0x24e))/0x9)+-parseInt(_0xdd8f9d(0x22d))/0xa*(-parseInt(_0xdd8f9d(0x259))/0xb)+-parseInt(_0xdd8f9d(0x25b))/0xc;if(_0x5858f9===_0x2d1482)break;else _0x31c173['push'](_0x31c173['shift']());}catch(_0x1f1385){_0x31c173['push'](_0x31c173['shift']());}}}(_0x470f,0x8474d));const __dirname=import.meta.dirname;import _0x3553b5 from'fs';import _0x118b57 from'path';import{clearLine as _0x4b0cf,createInterface as _0x52ab8f,cursorTo as _0x49a65c}from'node:readline';import{isOnStepGrid as _0x34c607}from'@uipath/delegate-sdk';var C='userinput';function E(_0x3b932e){const _0x3aa0b1=_0xbcf4;return _0x3b932e[_0x3aa0b1(0x22c)](/\u001b\[[0-?]*[ -/]*[@-~]|\u001b\][^\u0007\u001b]*(\u0007|\u001b\\)?|\u001b./g,'')[_0x3aa0b1(0x22c)](/[\u0000-\u0008\u000b-\u001f\u007f-\u009f]/g,'');}function ee(_0x283cdb){const _0x89af13=_0xbcf4;return E(_0x283cdb[_0x89af13(0x337)]??(_0x283cdb[_0x89af13(0x16b)]===C?'Something\x20else':_0x283cdb['id']));}function je(_0xb1365b,_0x5d8f83,_0x52aed0){const _0x57c4b1=_0xbcf4;let _0x842fb=[''+(_0x52aed0>0x1?'['+_0x5d8f83+'/'+_0x52aed0+']\x20':'')+E(_0xb1365b['header'])+(_0xb1365b[_0x57c4b1(0x295)]?'\x20(optional)':''),E(_0xb1365b[_0x57c4b1(0x1af)])];return _0xb1365b[_0x57c4b1(0x23a)]===_0x57c4b1(0x317)&&_0xb1365b[_0x57c4b1(0x1c7)]['forEach']((_0x5d748d,_0x31043d)=>{const _0x2403bb=_0x57c4b1;let _0x36b921=_0x5d748d[_0x2403bb(0x16b)]===C?_0x2403bb(0x192):'',_0x3046f8=_0x5d748d[_0x2403bb(0x2c6)]?'\x20-\x20'+E(_0x5d748d[_0x2403bb(0x2c6)]):'';_0x842fb[_0x2403bb(0x37c)]('\x20\x20'+(_0x31043d+0x1)+'.\x20'+ee(_0x5d748d)+_0x36b921+_0x3046f8);}),_0x842fb['join']('\x0a');}function te(_0x4b5bd6,_0x2c6069){const _0x5a469f=_0xbcf4;let _0x4ccd65=_0x4b5bd6[_0x5a469f(0x2e7)](/[\s,]+/)[_0x5a469f(0x2dd)](Boolean);if(_0x4ccd65['length']===0x0)return null;let _0x23a08f=_0x4ccd65[_0x5a469f(0x2f6)](_0x29c40a=>/^\d+$/[_0x5a469f(0x2fc)](_0x29c40a)?Number(_0x29c40a):NaN);return _0x23a08f[_0x5a469f(0x25f)](_0x4a5c1d=>!Number[_0x5a469f(0x222)](_0x4a5c1d)||_0x4a5c1d<0x1||_0x4a5c1d>_0x2c6069)?null:[...new Set(_0x23a08f)]['map'](_0x4c7421=>_0x4c7421-0x1);}function Me(_0x34023b){const _0x22c0fc=_0xbcf4;return typeof _0x34023b==_0x22c0fc(0x384)&&_0x34023b!==null&&_0x22c0fc(0x26c)in _0x34023b;}async function j(_0x20d823,_0x429360,_0x2786a1,_0x34decb){const _0x2d86fc=_0xbcf4;for(;;){let _0x351938=(await _0x20d823(_0x429360))[_0x2d86fc(0x31d)]();if(_0x351938==='')return;let _0x148295=_0x34decb(_0x351938);if(!Me(_0x148295))return _0x148295;_0x2786a1(_0x148295['refused']+'\x0a');}}async function Fe(_0x267f1f,_0x10fbf8,_0x2e377e){const _0x17e5d3=_0xbcf4;if(_0x267f1f[_0x17e5d3(0x1c7)][_0x17e5d3(0x1a9)]===0x0||_0x267f1f['options']['every'](_0x22a9db=>_0x22a9db[_0x17e5d3(0x16b)]===C)){let _0x1de482=(await _0x10fbf8(_0x17e5d3(0x1cf)))[_0x17e5d3(0x31d)]();return _0x1de482===''?void 0x0:{'text':_0x1de482};}let _0x348bb0=_0x267f1f[_0x17e5d3(0x1c7)][_0x17e5d3(0x2aa)](_0xe7b857=>_0xe7b857['kind']===C),_0x5662c2=_0x267f1f[_0x17e5d3(0x249)]?_0x17e5d3(0x328):_0x17e5d3(0x386)+(_0x348bb0>=0x0?'\x20or\x20your\x20own\x20answer':'')+'\x20(Enter\x20to\x20skip):\x20',_0x28a97a=await j(_0x10fbf8,_0x5662c2,_0x2e377e,_0x544e8c=>{const _0x2f18a9=_0x17e5d3;let _0x41c4f2=te(_0x544e8c,_0x267f1f[_0x2f18a9(0x1c7)][_0x2f18a9(0x1a9)]);return _0x41c4f2&&(_0x267f1f[_0x2f18a9(0x249)]||_0x41c4f2[_0x2f18a9(0x1a9)]===0x1)?_0x41c4f2:!_0x267f1f[_0x2f18a9(0x249)]&&_0x348bb0>=0x0?{'typed':_0x544e8c}:{'refused':_0x267f1f[_0x2f18a9(0x249)]?_0x2f18a9(0x19b)+_0x267f1f[_0x2f18a9(0x1c7)][_0x2f18a9(0x1a9)]+'.':_0x2f18a9(0x21e)+_0x267f1f[_0x2f18a9(0x1c7)][_0x2f18a9(0x1a9)]+'.'};});if(_0x28a97a===void 0x0)return;if(!Array[_0x17e5d3(0x339)](_0x28a97a))return{'text':_0x28a97a[_0x17e5d3(0x342)]};let _0x548137=_0x28a97a[_0x17e5d3(0x2f6)](_0x2cfe54=>_0x267f1f[_0x17e5d3(0x1c7)][_0x2cfe54]['id']),_0x3fb725=_0x548137[_0x17e5d3(0x1b7)](C)?await j(_0x10fbf8,ee(_0x267f1f[_0x17e5d3(0x1c7)][_0x348bb0])+':\x20',_0x2e377e,_0x2424b3=>_0x2424b3):void 0x0;if(!(_0x548137['includes'](C)&&_0x3fb725===void 0x0))return _0x267f1f[_0x17e5d3(0x249)]?{'optionIds':_0x548137,..._0x3fb725!==void 0x0?{'text':_0x3fb725}:{}}:_0x3fb725!==void 0x0?{'text':_0x3fb725}:{'optionId':_0x548137[0x0]};}async function Be(_0x5286b0,_0x4258d9,_0x22eed3){const _0x97c3be=_0xbcf4;let _0xfec2a6={};for(let _0x448fc9 of _0x5286b0[_0x97c3be(0x267)]){let _0x48d1c9=_0x448fc9[_0x97c3be(0x1e5)]??_0x448fc9['min'],_0x3ba3e5=_0x448fc9[_0x97c3be(0x35c)]??0x1,_0x3e0a8f=_0x448fc9[_0x97c3be(0x1f5)]?'\x20'+E(_0x448fc9[_0x97c3be(0x1f5)]):'',_0xb2243c=_0x97c3be(0x256)+_0x448fc9[_0x97c3be(0x225)]+_0x97c3be(0x31a)+_0x448fc9['max']+(_0x3ba3e5!==0x1?_0x97c3be(0x201)+_0x3ba3e5:''),_0x5193e0=await j(_0x4258d9,E(_0x448fc9['label'])+'\x20['+_0x448fc9['min']+'-'+_0x448fc9['max']+_0x3e0a8f+_0x97c3be(0x36f)+_0x48d1c9+'):\x20',_0x22eed3,_0x18eaba=>{const _0x2f20db=_0x97c3be;let _0x31133b=Number(_0x18eaba);return Number[_0x2f20db(0x21d)](_0x31133b)&&_0x31133b>=_0x448fc9[_0x2f20db(0x225)]&&_0x31133b<=_0x448fc9[_0x2f20db(0x237)]&&_0x34c607(_0x31133b,_0x448fc9['min'],_0x3ba3e5)?_0x31133b:{'refused':_0x2f20db(0x230)+_0xb2243c+'.'};});_0xfec2a6[_0x448fc9['id']]=_0x5193e0??_0x48d1c9;}return{'values':_0xfec2a6};}function _0xbcf4(_0x1e3b8e,_0x36c2f4){_0x1e3b8e=_0x1e3b8e-0x164;const _0x470f6d=_0x470f();let _0xbcf42f=_0x470f6d[_0x1e3b8e];return _0xbcf42f;}async function He(_0x26708f,_0x3fe17e,_0x1db848){const _0x5ee2dc=_0xbcf4;_0x1db848(_0x26708f[_0x5ee2dc(0x330)][_0x5ee2dc(0x2f6)]((_0x524cff,_0x534642)=>'\x20\x20'+(_0x534642+0x1)+'.\x20'+E(_0x524cff['label']))[_0x5ee2dc(0x2c2)]('\x0a')+'\x0a');let _0x39abbf={};for(let _0xa2857e of _0x26708f[_0x5ee2dc(0x2d9)]){let _0x1b4b84=await j(_0x3fe17e,E(_0xa2857e[_0x5ee2dc(0x337)])+_0x5ee2dc(0x24a),_0x1db848,_0x2fe815=>{const _0xb087d8=_0x5ee2dc;let _0x375c6a=te(_0x2fe815,_0x26708f[_0xb087d8(0x330)][_0xb087d8(0x1a9)]);return _0x375c6a&&_0x375c6a[_0xb087d8(0x1a9)]===0x1?_0x375c6a[0x0]:{'refused':_0xb087d8(0x21e)+_0x26708f['buckets'][_0xb087d8(0x1a9)]+'.'};});if(_0x1b4b84===void 0x0)continue;let _0x25e152=_0x26708f[_0x5ee2dc(0x330)][_0x1b4b84],_0x2d94f1={};for(let _0x58660a of _0x25e152[_0x5ee2dc(0x1e7)]??[]){let _0x5ee89c='\x20\x20'+E(_0x58660a['label'])+(_0x58660a[_0x5ee2dc(0x295)]?_0x5ee2dc(0x349):'')+':\x20',_0x234c4e=await j(_0x3fe17e,_0x5ee89c,_0x1db848,_0x45fec6=>_0x45fec6);for(;_0x234c4e===void 0x0&&!_0x58660a[_0x5ee2dc(0x295)];)_0x1db848(E(_0x58660a[_0x5ee2dc(0x337)])+_0x5ee2dc(0x1cc)),_0x234c4e=await j(_0x3fe17e,_0x5ee89c,_0x1db848,_0x13f6a0=>_0x13f6a0);_0x234c4e!==void 0x0&&(_0x2d94f1[_0x58660a['id']]=_0x234c4e);}_0x39abbf[_0xa2857e['id']]={'bucket':_0x25e152['id'],...Object[_0x5ee2dc(0x2d7)](_0x2d94f1)[_0x5ee2dc(0x1a9)]>0x0?{'subFields':_0x2d94f1}:{}};}return Object[_0x5ee2dc(0x2d7)](_0x39abbf)[_0x5ee2dc(0x1a9)]>0x0?{'assignments':_0x39abbf}:void 0x0;}async function Je(_0x2ce4f3,_0x218487,_0x3359dd){const _0x322b66=_0xbcf4;if(_0x2ce4f3['type']===_0x322b66(0x317))return Fe(_0x2ce4f3,_0x218487,_0x3359dd);if(_0x2ce4f3[_0x322b66(0x23a)]===_0x322b66(0x19f))return Be(_0x2ce4f3,_0x218487,_0x3359dd);if(_0x2ce4f3[_0x322b66(0x23a)]===_0x322b66(0x2a7))return He(_0x2ce4f3,_0x218487,_0x3359dd);let _0x214eb0=(await _0x218487(_0x322b66(0x226)))[_0x322b66(0x31d)]();return _0x214eb0===''?void 0x0:{'text':_0x214eb0};}function ne(_0x17cda2,_0x174fab){return async _0x40b2cf=>{const _0xd14800=_0xbcf4;let _0x46e17e=_0x17cda2();if(!_0x46e17e)throw new Error(_0xd14800(0x2a5));let _0x30302e=async _0xc3422c=>{const _0x1411df=_0xd14800;if(_0x40b2cf[_0x1411df(0x242)]['aborted'])throw new Error(_0x1411df(0x185));let _0x29351f=await _0x46e17e[_0x1411df(0x202)](_0xc3422c,_0x40b2cf[_0x1411df(0x242)]);if(_0x29351f===null)throw new Error(_0x1411df(0x25d));return _0x29351f;};try{_0x174fab('\x0a'+(_0x40b2cf[_0xd14800(0x27e)]?E(_0x40b2cf[_0xd14800(0x27e)])+'\x0a':''));let _0x5bdabe={};for(let [_0x2afc05,_0xfe9729]of _0x40b2cf[_0xd14800(0x1bc)]['entries']()){_0x174fab('\x0a'+je(_0xfe9729,_0x2afc05+0x1,_0x40b2cf[_0xd14800(0x1bc)]['length'])+'\x0a');let _0x4af6d3=await Je(_0xfe9729,_0x30302e,_0x174fab);_0x4af6d3!==void 0x0&&(_0x5bdabe[_0xfe9729['id']]=_0x4af6d3);}return{'answers':_0x5bdabe};}finally{_0x46e17e[_0xd14800(0x290)]();}};}import{createInterface as _0x14c151}from'node:readline';var F=[_0x2282d3(0x317),_0x2282d3(0x273)];function se(_0x1ac6f2){const _0x5da90e=_0x2282d3;return F[_0x5da90e(0x1b7)](_0x1ac6f2);}var P=class extends Error{};function We(_0x317e27){const _0x328f7b=_0x2282d3;if(typeof _0x317e27=='string')return _0x317e27;if(!Array[_0x328f7b(0x339)](_0x317e27))return;let _0x30b1e6=[];for(let _0x442df1 of _0x317e27){if(typeof _0x442df1!=_0x328f7b(0x384)||_0x442df1===null)return;let {type:_0x340fd9,text:_0x2951ef}=_0x442df1;if(_0x340fd9!==_0x328f7b(0x317)||typeof _0x2951ef!=_0x328f7b(0x319))return;_0x30b1e6[_0x328f7b(0x37c)](_0x2951ef);}return _0x30b1e6['join']('\x0a');}function Ke(_0x3923b9){const _0xa3f48b=_0x2282d3;if(_0x3923b9[_0xa3f48b(0x31d)]()==='')return null;let _0x5db39e;try{_0x5db39e=JSON[_0xa3f48b(0x2fd)](_0x3923b9);}catch{throw new P('an\x20input\x20line\x20is\x20not\x20JSON');}if(typeof _0x5db39e!='object'||_0x5db39e===null)throw new P(_0xa3f48b(0x35e));let {type:_0x432ca9,message:_0x20a316,uuid:_0x1c61bb}=_0x5db39e;if(_0x432ca9!==_0xa3f48b(0x1da))throw new P('an\x20input\x20line\x20has\x20type\x20'+JSON[_0xa3f48b(0x191)](_0x432ca9)+_0xa3f48b(0x257));let _0x595527=We(_0x20a316?.['content']);if(_0x595527===void 0x0)throw new P('an\x20input\x20line\x20has\x20no\x20message.content,\x20a\x20string\x20or\x20a\x20list\x20of\x20text\x20blocks');if(_0x595527[_0xa3f48b(0x31d)]()==='')throw new P('an\x20input\x20line\x20has\x20an\x20empty\x20message');return{'text':_0x595527,'uuid':typeof _0x1c61bb==_0xa3f48b(0x319)?_0x1c61bb:void 0x0};}function oe(_0x2f8ef9,_0x477df7){const _0x2ccf51=_0x2282d3;return JSON[_0x2ccf51(0x191)]({'type':_0x2ccf51(0x1da),'message':{'role':_0x2ccf51(0x1da),'content':_0x2f8ef9[_0x2ccf51(0x317)]},'session_id':_0x477df7,..._0x2f8ef9[_0x2ccf51(0x348)]===void 0x0?{}:{'uuid':_0x2f8ef9[_0x2ccf51(0x348)]},'isReplay':!0x0})+'\x0a';}async function*re(_0x5c778e,_0x328f7c){let _0x57ada2=_0x14c151({'input':_0x5c778e,'crlfDelay':0x1/0x0});try{for await(let _0x4ba2ef of _0x57ada2){let _0x12846e;try{_0x12846e=Ke(_0x4ba2ef);}catch(_0x40993f){if(!(_0x40993f instanceof P))throw _0x40993f;_0x328f7c(_0x40993f);continue;}_0x12846e&&(yield _0x12846e);}}finally{_0x57ada2['close']();}}import{BUSINESS_ANALYSIS_PRELOADED_SKILLS as _0x1368f1,DelegateAgent as _0x5f2174,cancelTurn as _0x17e647,InteropProcess as _0x1e0c12,complete as _0x3b0afe,DEFAULT_MODEL as _0x31d523,createBackendClient as _0x3ae63d,evaluate as _0x36dea4,isCompletionRequestError as _0x2ae45c,isEvaluationRequestError as _0x2db5f2,isTranscriptionError as _0x1cd269,rerank as _0x1d6121,transcribe as _0x4562f8,exportLivingDocument as _0x44dc35,saveMapVersion as _0x1f415b,shareMap as _0xeac7f6,verify as _0x525d68,acceptDelegation as _0x33fffc,cancelDelegation as _0x530249,claimDelegation as _0x365694,completeDelegation as _0x5d14d6,createDelegation as _0x560dcf,deleteDelegation as _0x3ca8d0,dismissDelegation as _0xdf45da,getSessionDelegations as _0x99b7e4,isDelegationError as _0x322b6a,listDelegations as _0x239a1e,listOrgUsers as _0x3b9920,previewDelegation as _0x333b31,TurnResultCollector as _0x2761dd,agentEventToJsonLine as _0x35c196,describeBaseUrlRejection as _0x10bfad,getActivitySummary as _0x5e5986,getAuthFilePath as _0x4c8f20,getByoWarnings as _0x54bb36,getDailyBreakdown as _0x59b3d8,getLicensingSummary as _0x535225,getMonthlySpending as _0x41ada2,isOutputFormat as _0x284d04,isCloudBaseUrl as _0x4f994f,isSafeProjectFolderSegment as _0x302030,listModels as _0x199db2,listSessions as _0x16d782,getSession as _0xa0af8a,renameSession as _0x636a5d,deleteSession as _0x15fcc2,deleteSessionTaskLog as _0x43680c,forkSession as _0x2e713d,isBackendRequestError as _0x15969b,MAX_SESSION_PAGE_SIZE as _0x434f68,listTenants as _0x31718c,loadAndRefreshAuth as _0x1760a0,loadAndRefreshSdkLogin as _0x5a99f2,parsePlatformBaseUrl as _0xc0a854,resolveBackendUrl as _0x3fcea2,runHealthCheck as _0x37456c,runHostCommand as _0x28a5df,runLoginFlow as _0x2d8730,runTurnForResult as _0x395692,saveAuthData as _0x3f45cc,switchTenant as _0x1ed84e,toJsonLine as _0x415a0b,ENV_TO_CLOUD as _0x1c0786,OUTPUT_FORMATS as _0x1665f4,isRunStopNotice as _0x5c18ff,extractActionableErrorText as _0xd6ed35}from'@uipath/delegate-sdk';function ie(_0xcd7a29){const _0x3dde2d=_0x2282d3;let {input:_0x30ca8a,getAgent:_0x1c0116,replay:_0x2a4733,onEvent:_0x208c0f,write:_0x1ecfb3,warn:_0x3728f6,isRunStopNotice:_0x5b44c2,actionableErrorText:_0x5dba93}=_0xcd7a29,_0x75c1e3=0x0,_0x2148b6=0x0,_0xedf7fc=Promise['resolve'](),_0x2be4da=!0x1,_0x112e4f=()=>{},_0x230e7b=new Promise(_0x805fe8=>{_0x112e4f=_0x805fe8;}),_0x45afb2=[],_0x3697a4=_0x208c0f(_0xbe1319=>{_0xbe1319['type']==='turn_start'&&(_0x112e4f(),_0x45afb2['shift']()?.());}),_0x4d112c=_0x34af81=>{_0x2a4733&&_0x1ecfb3(oe(_0x34af81,_0x1c0116()['getSessionId']()));},_0x243110=(async()=>{const _0xa6a2d4=_0xbcf4;await _0x230e7b;for await(let _0x32e477 of _0x30ca8a[_0xa6a2d4(0x346)]){if(_0x2be4da)return;_0x75c1e3===0x0&&(_0x2148b6=_0x1c0116()[_0xa6a2d4(0x2a8)]()[_0xa6a2d4(0x1a9)]),_0x75c1e3++;let _0x3fb00f=new Promise(_0x195553=>{const _0x25cb54=_0xa6a2d4;_0x45afb2[_0x25cb54(0x37c)](()=>{_0x4d112c(_0x32e477),_0x195553();});}),_0x4fe57a=()=>{const _0x282e94=_0xa6a2d4;_0x75c1e3--,_0x45afb2[_0x282e94(0x217)]();},_0x122dfe=_0x1c0116()[_0xa6a2d4(0x170)](_0x32e477[_0xa6a2d4(0x317)]);_0xedf7fc=_0x122dfe[_0xa6a2d4(0x17e)](()=>{});try{await _0x122dfe?await Promise[_0xa6a2d4(0x2f7)]([_0x3fb00f,_0x1c0116()[_0xa6a2d4(0x2bb)]()]):(_0x4fe57a(),_0x3728f6(_0xa6a2d4(0x198)));}catch(_0x168f26){_0x4fe57a(),_0x3728f6(_0xa6a2d4(0x23b)+(_0x168f26 instanceof Error?_0x168f26['message']:String(_0x168f26))+'\x0a');}}})()[_0x3dde2d(0x17e)](_0x5f2573=>{const _0x4365de=_0x3dde2d;_0x3728f6('Steering\x20input\x20stopped:\x20'+(_0x5f2573 instanceof Error?_0x5f2573[_0x4365de(0x224)]:String(_0x5f2573))+'\x0a');});return{'settle':async _0x217975=>{const _0xfe100f=_0x3dde2d;if(await _0xedf7fc,_0x75c1e3===0x0)return _0x217975;await _0x1c0116()[_0xfe100f(0x2bb)]();for(let _0x38d647 of _0x45afb2)_0x38d647();_0x45afb2=[];let _0xe04dad=_0x1c0116()[_0xfe100f(0x2a8)]()[_0xfe100f(0x2d4)](_0x2148b6)[_0xfe100f(0x220)](_0x5706b0=>_0x5706b0[_0xfe100f(0x298)]===_0xfe100f(0x24d)||_0x5b44c2(_0x5706b0)||_0x5706b0[_0xfe100f(0x23a)]==='ai'&&_0x5706b0['widget']!==_0xfe100f(0x266)&&_0x5706b0[_0xfe100f(0x298)]!==_0xfe100f(0x313)&&!!_0x5706b0[_0xfe100f(0x32c)]);if(!_0xe04dad)return{..._0x217975,'failed':!0x0,'text':'The\x20steering\x20message\x20was\x20not\x20answered:\x20its\x20turn\x20did\x20not\x20run\x20or\x20added\x20no\x20reply.'};let _0x2f7f01=_0xe04dad[_0xfe100f(0x298)]===_0xfe100f(0x24d);return typeof _0xe04dad[_0xfe100f(0x32c)]!='string'?{..._0x217975,'failed':_0x2f7f01}:{..._0x217975,'failed':_0x2f7f01,'text':_0x2f7f01?_0x5dba93(_0xe04dad['content']):_0xe04dad[_0xfe100f(0x32c)]};},'stop':()=>{_0x2be4da=!0x0,_0x3697a4(),_0x30ca8a['close']();}};}var Yt=[_0x2282d3(0x246),_0x2282d3(0x1b2),'models',_0x2282d3(0x1ec),_0x2282d3(0x18d),_0x2282d3(0x209),'check',_0x2282d3(0x1dd),'usage',_0x2282d3(0x229),'rerank',_0x2282d3(0x17f),'complete',_0x2282d3(0x26e),_0x2282d3(0x355),_0x2282d3(0x2ff),_0x2282d3(0x2ef),_0x2282d3(0x37a)],ue=['',_0x2282d3(0x1ac),_0x2282d3(0x209),_0x2282d3(0x1b0),'sessions',_0x2282d3(0x379),_0x2282d3(0x229),_0x2282d3(0x171),_0x2282d3(0x17f),_0x2282d3(0x24c),'transcribe',_0x2282d3(0x355),_0x2282d3(0x2ff),_0x2282d3(0x2ef),_0x2282d3(0x37a)],pe=[_0x2282d3(0x210),_0x2282d3(0x34c),_0x2282d3(0x1b8),_0x2282d3(0x2c7),_0x2282d3(0x237)],zt=_0x1368f1,B=_0x2282d3(0x18e);function b(_0x5961f2,_0x2dd10c,_0x28ddb0,_0x4c19ef){const _0x1e53fd=_0x2282d3;let _0x4f2306=_0x5961f2[_0x2dd10c];return(!_0x4f2306||_0x4f2306['length']>0x1&&_0x4f2306[_0x1e53fd(0x336)]('-'))&&(console['error'](_0x28ddb0+_0x1e53fd(0x303)+_0x4c19ef+'.'),process['exit'](0x2)),_0x4f2306;}function K(_0xebb506,_0x20554f,_0x5b66f4,_0x1237da){const _0x5868b2=_0x2282d3;let _0x482932=b(_0xebb506,_0x20554f,_0x5b66f4,_0x5868b2(0x2ad)),_0x45c72d=Number(_0x482932);return(!/^\d+$/[_0x5868b2(0x2fc)](_0x482932)||_0x45c72d<0x1||!Number[_0x5868b2(0x1d2)](_0x45c72d)||_0x1237da!==void 0x0&&_0x45c72d>_0x1237da)&&(console['error'](_0x5b66f4+_0x5868b2(0x236)+(_0x1237da===void 0x0?_0x5868b2(0x1a7):_0x5868b2(0x2e8)+_0x1237da)+',\x20got\x20'+_0x482932+'.'),process[_0x5868b2(0x2b9)](0x2)),_0x45c72d;}function Vt(_0x460a3f){const _0x2e892b=_0x2282d3;let _0x364118={'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':_0x2e892b(0x317),'inputFormat':_0x2e892b(0x317),'replayUserMessages':!0x1,'preloadSkills':[],'attachments':[],'skipEnvCheck':!0x1,'includeSubAgents':!0x1,'operands':[],'help':!0x1,'version':!0x1};Yt[_0x2e892b(0x1b7)](_0x460a3f[0x0])&&(_0x364118[_0x2e892b(0x36c)]=_0x460a3f[0x0],_0x460a3f=_0x460a3f['slice'](0x1));let _0x94b5e4=[];for(let _0x499588=0x0;_0x499588<_0x460a3f['length'];_0x499588++){let _0x212420=_0x460a3f[_0x499588];switch(_0x212420){case _0x2e892b(0x32f):case'-p':_0x364118[_0x2e892b(0x164)]=!0x0;break;case _0x2e892b(0x20a):_0x364118[_0x2e892b(0x233)]=!0x0;break;case _0x2e892b(0x294):_0x364118[_0x2e892b(0x31b)]=!0x0;break;case _0x2e892b(0x1b3):_0x364118['headless']=!0x0;break;case'--no-computer-use':_0x364118[_0x2e892b(0x2ae)]=!0x0;break;case _0x2e892b(0x277):_0x364118[_0x2e892b(0x18e)]=!0x0,_0x364118[_0x2e892b(0x2ae)]=!0x0,_0x364118[_0x2e892b(0x17d)][_0x2e892b(0x37c)](...zt);break;case'--no-connections':_0x364118[_0x2e892b(0x285)]=!0x0;break;case _0x2e892b(0x31c):_0x364118[_0x2e892b(0x325)]=!0x0;break;case'--no-memory':_0x364118['noMemory']=!0x0;break;case'--task-automation':_0x364118[_0x2e892b(0x24b)]=!0x0;break;case _0x2e892b(0x21a):case'-q':_0x364118[_0x2e892b(0x1d9)]=!0x0;break;case _0x2e892b(0x335):_0x364118['verbose']=!0x0;break;case _0x2e892b(0x2f5):_0x364118[_0x2e892b(0x33e)]=_0x460a3f[++_0x499588];break;case _0x2e892b(0x2d8):_0x364118['model']=_0x460a3f[++_0x499588];break;case'--runner-url':_0x364118['runnerUrl']=_0x460a3f[++_0x499588];break;case'--interop':_0x364118['interopPath']=_0x460a3f[++_0x499588];break;case _0x2e892b(0x284):_0x364118['workerId']=_0x460a3f[++_0x499588];break;case _0x2e892b(0x368):_0x364118[_0x2e892b(0x17d)][_0x2e892b(0x37c)](b(_0x460a3f,++_0x499588,_0x212420,_0x2e892b(0x1b9)));break;case _0x2e892b(0x363):{let _0x6d352c=b(_0x460a3f,++_0x499588,_0x212420,_0x2e892b(0x263));_0x302030(_0x6d352c)||(console[_0x2e892b(0x22e)](_0x2e892b(0x21b)+_0x6d352c+'\x22.\x20Use\x20a\x20single\x20folder-safe\x20segment\x20such\x20as\x20invoice-approval\x20(letters,\x20digits,\x20spaces,\x20\x22_\x22,\x20\x22-\x22,\x20\x22.\x22,\x20parentheses;\x20at\x20most\x2064\x20characters;\x20not\x20starting\x20with\x20\x22.\x22\x20or\x20ending\x20with\x20\x22.\x22\x20or\x20a\x20space).'),process['exit'](0x2)),_0x364118[_0x2e892b(0x17c)]=_0x6d352c;break;}case _0x2e892b(0x32d):_0x364118[_0x2e892b(0x33d)]=b(_0x460a3f,++_0x499588,_0x212420,'a\x20vertical\x20id');break;case _0x2e892b(0x316):{let _0x202e00=b(_0x460a3f,++_0x499588,_0x212420,_0x2e892b(0x29a)+_0x1665f4['join'](_0x2e892b(0x1d1))+')');_0x284d04(_0x202e00)||(console[_0x2e892b(0x22e)](_0x2e892b(0x2f0)+_0x202e00+'.\x20Use\x20'+_0x1665f4[_0x2e892b(0x2c2)](_0x2e892b(0x1d1))+'.'),process[_0x2e892b(0x2b9)](0x2)),_0x364118[_0x2e892b(0x195)]=_0x202e00;break;}case _0x2e892b(0x2c0):{let _0x5f7204=b(_0x460a3f,++_0x499588,_0x212420,_0x2e892b(0x29a)+F[_0x2e892b(0x2c2)](_0x2e892b(0x1d1))+')');se(_0x5f7204)||(console[_0x2e892b(0x22e)](_0x2e892b(0x27f)+_0x5f7204+_0x2e892b(0x2cd)+F[_0x2e892b(0x2c2)]('\x20|\x20')+'.'),process[_0x2e892b(0x2b9)](0x2)),_0x364118[_0x2e892b(0x189)]=_0x5f7204;break;}case _0x2e892b(0x2bc):_0x364118[_0x2e892b(0x26d)]=!0x0;break;case _0x2e892b(0x1fd):_0x364118[_0x2e892b(0x2a6)]=b(_0x460a3f,++_0x499588,_0x212420,_0x2e892b(0x361));break;case'--page':_0x364118[_0x2e892b(0x1f6)]=K(_0x460a3f,++_0x499588,_0x212420);break;case'--limit':_0x364118[_0x2e892b(0x310)]=K(_0x460a3f,++_0x499588,_0x212420,_0x434f68);break;case _0x2e892b(0x279):_0x364118[_0x2e892b(0x1a6)]=!0x0;break;case'--json-schema':_0x364118[_0x2e892b(0x280)]=b(_0x460a3f,++_0x499588,_0x212420,_0x2e892b(0x2eb));break;case'--attach':{let _0x1788e5=_0x118b57['resolve'](process[_0x2e892b(0x19d)](),b(_0x460a3f,++_0x499588,_0x212420,'a\x20file\x20path'));_0x3553b5[_0x2e892b(0x178)](_0x1788e5)||(console[_0x2e892b(0x22e)](_0x2e892b(0x2b1)+_0x1788e5),process[_0x2e892b(0x2b9)](0x2)),_0x364118[_0x2e892b(0x2de)][_0x2e892b(0x37c)](_0x1788e5);break;}case _0x2e892b(0x172):_0x364118['turnId']=b(_0x460a3f,++_0x499588,_0x212420,'a\x20turn\x20id');break;case _0x2e892b(0x258):_0x364118['delegateTo']=b(_0x460a3f,++_0x499588,_0x212420,_0x2e892b(0x28d));break;case _0x2e892b(0x231):_0x364118[_0x2e892b(0x28b)]=b(_0x460a3f,++_0x499588,_0x212420,_0x2e892b(0x33c));break;case _0x2e892b(0x17a):_0x364118[_0x2e892b(0x1c2)]=b(_0x460a3f,++_0x499588,_0x212420,_0x2e892b(0x1a0));break;case'--map-name':_0x364118['mapName']=b(_0x460a3f,++_0x499588,_0x212420,_0x2e892b(0x287));break;case'--days':_0x364118['days']=K(_0x460a3f,++_0x499588,_0x212420,0x16d);break;case _0x2e892b(0x366):_0x364118['workingDirectory']=_0x118b57['resolve'](process['cwd'](),b(_0x460a3f,++_0x499588,_0x212420,_0x2e892b(0x1e4)));break;case _0x2e892b(0x216):_0x364118['bundledSkillsPath']=_0x118b57['resolve'](process[_0x2e892b(0x19d)](),b(_0x460a3f,++_0x499588,_0x212420,_0x2e892b(0x1e4)));break;case _0x2e892b(0x193):{let _0x5e7774=b(_0x460a3f,++_0x499588,_0x212420,_0x2e892b(0x304));pe[_0x2e892b(0x1b7)](_0x5e7774)||(console[_0x2e892b(0x22e)]('Invalid\x20--effort:\x20'+_0x5e7774+'.\x20Use\x20'+pe[_0x2e892b(0x2c2)](_0x2e892b(0x1d1))+'.'),process[_0x2e892b(0x2b9)](0x2)),_0x364118['effort']=_0x5e7774;break;}case _0x2e892b(0x309):{let _0x26efa4=_0x460a3f[++_0x499588];(!_0x26efa4||_0x26efa4[_0x2e892b(0x336)]('--'))&&(console[_0x2e892b(0x22e)](_0x2e892b(0x315)),process[_0x2e892b(0x2b9)](0x2)),_0x364118['tenant']=_0x26efa4;break;}case _0x2e892b(0x232):{let _0xee2470=_0x460a3f[++_0x499588];[_0x2e892b(0x30b),_0x2e892b(0x312),_0x2e892b(0x270),_0x2e892b(0x2ac)][_0x2e892b(0x1b7)](_0xee2470)||(console[_0x2e892b(0x22e)](_0x2e892b(0x261)+_0xee2470+_0x2e892b(0x1fe)),process[_0x2e892b(0x2b9)](0x2)),_0x364118[_0x2e892b(0x380)]=_0xee2470;break;}case _0x2e892b(0x1eb):case _0x2e892b(0x182):{let _0xd79a3=b(_0x460a3f,++_0x499588,_0x212420,_0x2e892b(0x235)),_0x56213f=_0xc0a854(_0xd79a3);if(_0x56213f['ok']===!0x1){console['error'](_0x10bfad(_0xd79a3,_0x56213f[_0x2e892b(0x22f)])),process['exit'](0x2);break;}_0x364118[_0x2e892b(0x2e3)]=_0x56213f[_0x2e892b(0x260)];break;}case _0x2e892b(0x251):_0x364118['skipEnvCheck']=!0x0;break;case'-h':case'--help':_0x364118[_0x2e892b(0x343)]=!0x0;break;case'-v':case'--version':_0x364118[_0x2e892b(0x1d7)]=!0x0;break;default:_0x212420[_0x2e892b(0x336)]('--')&&(console[_0x2e892b(0x22e)]('Unknown\x20flag:\x20'+_0x212420),process[_0x2e892b(0x2b9)](0x2)),_0x94b5e4[_0x2e892b(0x37c)](_0x212420);}}return _0x364118['tenant']!==void 0x0&&_0x364118['subcommand']!==_0x2e892b(0x246)&&(console['error']('--tenant\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Switch\x20tenants\x20with:\x20delegate-cli\x20tenant\x20<name>'),process[_0x2e892b(0x2b9)](0x2)),_0x364118[_0x2e892b(0x2e3)]!==void 0x0&&_0x364118[_0x2e892b(0x380)]!==void 0x0&&(console['error'](_0x2e892b(0x218)),process[_0x2e892b(0x2b9)](0x2)),_0x364118[_0x2e892b(0x2e3)]!==void 0x0&&_0x364118[_0x2e892b(0x36c)]!==_0x2e892b(0x246)&&(console[_0x2e892b(0x22e)](_0x2e892b(0x180)),process[_0x2e892b(0x2b9)](0x2)),_0x364118[_0x2e892b(0x27d)]!==void 0x0&&_0x364118[_0x2e892b(0x36c)]!==_0x2e892b(0x379)&&(console[_0x2e892b(0x22e)](_0x2e892b(0x20b)),process['exit'](0x2)),_0x364118[_0x2e892b(0x280)]!==void 0x0&&(_0x364118[_0x2e892b(0x36c)]!==_0x2e892b(0x24c)&&_0x364118[_0x2e892b(0x36c)]!==''||_0x364118[_0x2e892b(0x31b)])&&(console['error'](_0x2e892b(0x357)),process[_0x2e892b(0x2b9)](0x2)),_0x364118[_0x2e892b(0x2de)][_0x2e892b(0x1a9)]>0x0&&(_0x364118['subcommand']!==''||_0x364118['cleanup'])&&(console[_0x2e892b(0x22e)]('--attach\x20applies\x20to\x20prompts\x20only.'),process[_0x2e892b(0x2b9)](0x2)),_0x364118[_0x2e892b(0x24b)]&&(_0x364118[_0x2e892b(0x36c)]!==''||_0x364118[_0x2e892b(0x31b)])&&(console[_0x2e892b(0x22e)]('--task-automation\x20applies\x20to\x20prompts\x20only.'),process[_0x2e892b(0x2b9)](0x2)),_0x364118[_0x2e892b(0x24b)]&&(_0x364118[_0x2e892b(0x1f9)]||_0x364118[_0x2e892b(0x2ae)]||_0x364118['vertical']?.['trim']()===B)&&(console[_0x2e892b(0x22e)](_0x2e892b(0x207)),process[_0x2e892b(0x2b9)](0x2)),_0x364118[_0x2e892b(0x18e)]&&(_0x364118[_0x2e892b(0x33d)]!==void 0x0&&_0x364118[_0x2e892b(0x33d)]['trim']()!==B&&(console[_0x2e892b(0x22e)]('--cartographer\x20runs\x20the\x20'+B+_0x2e892b(0x27c)+_0x364118[_0x2e892b(0x33d)]+_0x2e892b(0x1ef)),process[_0x2e892b(0x2b9)](0x2)),_0x364118['vertical']=B),_0x364118[_0x2e892b(0x2d3)]&&_0x364118[_0x2e892b(0x36c)]!=='login'&&(console[_0x2e892b(0x22e)]('--skip-env-check\x20applies\x20to\x20`delegate-cli\x20login`\x20only.'),process[_0x2e892b(0x2b9)](0x2)),_0x364118[_0x2e892b(0x195)]!==_0x2e892b(0x317)&&!ue[_0x2e892b(0x1b7)](_0x364118['subcommand'])&&(console['error']('--output-format\x20'+_0x364118['outputFormat']+'\x20applies\x20to\x20prompts\x20and\x20to\x20these\x20commands\x20only:\x20'+ue[_0x2e892b(0x2dd)](Boolean)[_0x2e892b(0x2c2)](',\x20')+'.'),process[_0x2e892b(0x2b9)](0x2)),(_0x364118[_0x2e892b(0x189)]!==_0x2e892b(0x317)||_0x364118[_0x2e892b(0x26d)])&&_0x364118[_0x2e892b(0x36c)]!==''&&(console[_0x2e892b(0x22e)](_0x2e892b(0x2cc)),process[_0x2e892b(0x2b9)](0x2)),_0x364118[_0x2e892b(0x26d)]&&_0x364118[_0x2e892b(0x189)]!==_0x2e892b(0x273)&&(console['error'](_0x2e892b(0x37e)),process['exit'](0x2)),_0x364118[_0x2e892b(0x189)]===_0x2e892b(0x273)&&_0x364118['outputFormat']!=='stream-json'&&(console['error']('--input-format\x20stream-json\x20needs\x20--output-format\x20stream-json:\x20the\x20steering\x20messages\x20are\x20answered\x20on\x20stdout.'),process[_0x2e892b(0x2b9)](0x2)),(_0x364118['page']!==void 0x0||_0x364118[_0x2e892b(0x310)]!==void 0x0||_0x364118[_0x2e892b(0x1a6)])&&_0x364118[_0x2e892b(0x36c)]!==_0x2e892b(0x1dd)&&(console[_0x2e892b(0x22e)](_0x2e892b(0x1e9)),process[_0x2e892b(0x2b9)](0x2)),(_0x364118['delegateTo']!==void 0x0||_0x364118[_0x2e892b(0x28b)]!==void 0x0)&&_0x364118[_0x2e892b(0x36c)]!==_0x2e892b(0x2ef)&&(console[_0x2e892b(0x22e)](_0x2e892b(0x2e4)),process['exit'](0x2)),_0x364118[_0x2e892b(0x186)]!==void 0x0&&_0x364118[_0x2e892b(0x36c)]!==_0x2e892b(0x1dd)&&(console[_0x2e892b(0x22e)]('--turn\x20applies\x20to\x20`delegate-cli\x20sessions\x20cancel`\x20only.'),process[_0x2e892b(0x2b9)](0x2)),(_0x364118[_0x2e892b(0x1c2)]!==void 0x0||_0x364118[_0x2e892b(0x1b1)]!==void 0x0)&&(_0x364118[_0x2e892b(0x36c)]!==_0x2e892b(0x2ff)||_0x94b5e4[0x0]!==_0x2e892b(0x34b))&&(console[_0x2e892b(0x22e)](_0x2e892b(0x1c9)),process['exit'](0x2)),_0x364118[_0x2e892b(0x17d)]=[...new Set(_0x364118[_0x2e892b(0x17d)])],_0x364118[_0x2e892b(0x1dc)]=_0x94b5e4,_0x364118[_0x2e892b(0x2d0)]=_0x94b5e4[_0x2e892b(0x2c2)]('\x20'),_0x364118[_0x2e892b(0x189)]===_0x2e892b(0x273)&&_0x364118[_0x2e892b(0x2d0)]!==''&&(console[_0x2e892b(0x22e)]('--input-format\x20stream-json\x20reads\x20the\x20prompt\x20from\x20stdin:\x20pass\x20no\x20prompt\x20argument.'),process[_0x2e892b(0x2b9)](0x2)),_0x364118;}function _0x470f(){const _0x41e2c3=['refused','replayUserMessages','transcribe','probability','production','Usage:\x20delegate-cli\x20sessions\x20cancel\x20<session-id>\x20--turn\x20<turn-id>','round','stream-json','restore','estimated_cost_usd','off','--cartographer','pause','--include-subagents','structured','No\x20delegations.\x0a','\x20vertical,\x20so\x20it\x20cannot\x20run\x20as\x20--vertical\x20','days','intro','Invalid\x20--input-format:\x20','jsonSchemaPath',']\x20Backend\x20URL:\x20','[saved\x20login]\x20Backend\x20URL:\x20','\x20(in\x20','--worker-id','noConnections','Session:\x20\x20\x20\x20\x20\x20','a\x20Map\x20name','\x20\x20(input\x20#','\x20\x20TASK\x0a','UiPath\x20Cloud','contextSummary','token_units','an\x20email\x20address\x20or\x20name','assignedUserEmail','displayName','endQuestions','shift','file','origin','--cleanup','optional','interopPath','stderr','widget','delete','a\x20format\x20(','tool_call','delegations\x20pending\x20<session-id>','Usage:\x20delegate-cli\x20maps\x20save-version\x20MESSAGE\x20--project\x20ID\x20[--working-dir\x20PATH]','turn_start','score','transcribe\x20needs\x20audio:\x20delegate-cli\x20transcribe\x20<file>,\x20or\x20-\x20to\x20read\x20stdin.','Already\x20accepted','rename','Created\x20delegation\x20','session_start','There\x20is\x20no\x20terminal\x20input\x20to\x20answer\x20from.','sessionId','bucket','getSessionMessages','sourceTitle','findIndex','Work\x20on\x20it\x20with:\x20delegate-cli\x20--session\x20','localhost','a\x20number','noComputerUse','✓\x20Done\x0a','limit_enabled','--attach:\x20no\x20such\x20file\x20or\x20folder:\x20','lockReason','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','byoWarning','daily_usage','onEvent','\x22.\x0a','entries','exit','tool','waitForIdle','--replay-user-messages','\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\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\x20export\x20TYPE\x20[DOCUMENT_ID]\x20--project\x20ID\x20[--working-dir\x20PATH]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Export\x20a\x20project\x27s\x20living\x20document\x20(TYPE:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20pdd,\x20sdd,\x20...)\x20to\x20.docx,\x20as\x20an\x20agent\x27s\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20/livingdoc/export\x20does,\x20from\x20the\x20local\x20disk:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20no\x20login\x20or\x20interop.\x20--project\x20and\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--working-dir\x20name\x20the\x20project\x20as\x20the\x20run\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20that\x20wrote\x20it\x20did.\x20DOCUMENT_ID\x20(the\x20draft\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20path)\x20picks\x20one\x20of\x20several\x20documents\x20of\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20TYPE.\x20Prints\x20the\x20.docx\x20path;\x20exits\x201\x20when\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20there\x20is\x20no\x20such\x20document\x20or\x20export\x20fails\x0a\x20\x20delegate-cli\x20maps\x20share\x20--project\x20ID\x20--remote\x20URL|PATH\x20--map-name\x20NAME\x20[--working-dir\x20PATH]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Share\x20a\x20project\x27s\x20Map\x20of\x20Work,\x20as\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20desktop\x20app\x27s\x20Share\x20does\x20with\x20New\x20map\x20of\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20work:\x20its\x20history,\x20change\x20requests\x20and\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20versions\x20go\x20to\x20a\x20bare\x20git\x20repository\x20on\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this\x20computer\x20or\x20a\x20shared\x20drive\x20(a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20file://\x20URL\x20or\x20an\x20absolute\x20path),\x20under\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20NAME,\x20and\x20publish\x20there\x20from\x20then\x20on.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Join\x20it\x20in\x20the\x20app\x20with\x20Existing\x20map\x20of\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20work.\x20GitHub\x20is\x20not\x20available\x20here\x20yet.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20No\x20login\x20or\x20interop;\x20exits\x201\x20when\x20refused\x0a\x20\x20delegate-cli\x20maps\x20save-version\x20MESSAGE\x20--project\x20ID\x20[--working-dir\x20PATH]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Save\x20version,\x20as\x20in\x20the\x20desktop\x20app:\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20map\x27s\x20next\x200.x\x20version\x20(0.1.0\x20first),\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20named\x20MESSAGE.\x20Exits\x201\x20when\x20refused,\x20as\x20on\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20a\x20settled\x20map,\x20which\x20gets\x20versions\x20from\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20applied\x20change\x20requests\x20only\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--remote\x20URL|PATH\x20(maps\x20share)\x20The\x20bare\x20git\x20repository\x20to\x20share\x20to:\x20a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20file://\x20URL\x20or\x20an\x20absolute\x20path,\x20on\x20this\x20computer\x20or\x20a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20shared\x20drive.\x20Create\x20it\x20first\x20(git\x20init\x20--bare)\x0a\x20\x20--map-name\x20NAME\x20\x20\x20(maps\x20share)\x20The\x20Map\x27s\x20name\x20in\x20that\x20repository,\x20beside\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20other\x20projects\x27\x20Maps:\x20up\x20to\x2064\x20letters,\x20digits,\x20\x22.\x22,\x20\x22_\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20or\x20\x22-\x22,\x20starting\x20with\x20a\x20letter\x20or\x20digit\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','\x0a🤔\x20','/exit','--input-format','Token:\x20\x20\x20\x20\x20\x20\x20\x20expires\x20','join','\x20<title>','Deployment:\x20\x20\x20','delegations\x20create\x20--session\x20<id>\x20[--to\x20<email|name>]\x20[--summary\x20<text>]\x20\x22<task>\x22|-','description','xhigh','\x20(resume\x20with\x20--session\x20','date','results','\x20from\x20','--input-format\x20and\x20--replay-user-messages\x20apply\x20to\x20prompts\x20only.','.\x20Use\x20','settle','cancelled','prompt','.\x20Share:\x20','thinking','skipEnvCheck','slice','\x20in\x20progress\x20on\x20session\x20','total_quota_pu','keys','--model','items','310URLUzQ','toFixed','toISOString','filter','attachments','readFileSync','line','create','\x0aUse\x20with:\x20delegate-cli\x20--model\x20<id>\x20\x22<prompt>\x22\x0a','url','--to\x20and\x20--summary\x20apply\x20to\x20`delegate-cli\x20delegations\x20create`\x20only.','write','Auth\x20comes\x20from\x20AUTH_TOKEN/TENANT_ID/ORG_ID\x20—\x20set\x20TENANT_ID\x20and\x20TENANT_SLUG\x20to\x20change\x20the\x20tenant.','split','from\x201\x20to\x20','unknown\x20slug','delegate-cli','a\x20JSON\x20schema\x20file','now','\x20\x20\x20\x20Not\x20available\x20on\x20this\x20plan','Token:\x20\x20\x20\x20\x20\x20\x20\x20expired\x20','delegations','Invalid\x20--output-format:\x20','value','Already\x20answered','organizationId','detail','--backend','map','race','No\x20one\x20matches\x20\x22','\x20must\x20be\x20a\x20JSON\x20object.','138dfUDqU','effort','test','parse','--turn\x20applies\x20to\x20`delegate-cli\x20sessions\x20cancel`\x20only.','maps','tokenExpiresAt','total_completion_tokens','removeEventListener','\x20requires\x20','an\x20effort\x20tier','\x20(estimated\x20$','dismiss','padStart','Owner\x20\x20\x20\x20\x20\x20\x20\x20\x20','--tenant','pct_used','alpha','),\x20','delegations\x20delete\x20<delegation-id>','\x20token\x20units','deleted','limit','\x20\x20TITLE\x0a','staging','followUpsRenderer','initialize','--tenant\x20requires\x20a\x20tenant\x20name.','--output-format','text','claim','string','\x20to\x20','cleanup','--no-security','trim','\x27\x20cannot\x20be\x20read:\x20','Tenant\x20not\x20switched:\x20could\x20not\x20write\x20','Usage:\x20delegate-cli\x20maps\x20share\x20--project\x20ID\x20--remote\x20URL|PATH\x20--map-name\x20NAME\x20[--working-dir\x20PATH]','padEnd','log',':\x20cannot\x20read\x20the\x20request\x20(','data','noSecurity','delegationId','\x20this\x20month','Numbers,\x20separated\x20by\x20commas\x20(Enter\x20to\x20skip):\x20','activity','\x20days.\x0a','Title\x20\x20\x20\x20\x20\x20\x20\x20\x20','content','--vertical','AUTH_TOKEN_FILE\x20\x27','--print','buckets','stdout','\x0aAvailable\x20models\x20(','isTTY','Usage:\x20delegate-cli\x20export\x20TYPE\x20[DOCUMENT_ID]\x20--project\x20ID\x20[--working-dir\x20PATH]','--verbose','startsWith','label','Usage:\x20delegate-cli\x20sessions\x20','isArray','Delegated\x20','getSessionId','a\x20briefing\x20text','vertical','backendUrl','\x20completion','Answered','total_cost_usd','typed','help','Session:\x20','model_version','messages','paths','uuid','\x20(optional)','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.','share','medium','from','return','daily','accessToken','Spending:\x20\x20\x20\x20\x20$','Turn:\x20','\x20min)','2933613QrDdlC','export','Use:\x20delegate-cli\x20delegations\x20','--json-schema\x20applies\x20to\x20prompts\x20and\x20to\x20`delegate-cli\x20complete`\x20only.','updatedAt','bind','\x20\x20from\x20','\x20(confidence\x20','step','.\x20Use:\x20','an\x20input\x20line\x20is\x20not\x20a\x20JSON\x20object','structuredError','--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`delegate-cli\x20sessions\x20[list]`\x20only.','a\x20session\x20id','stdin','--project',',\x20whose\x20tenant\x20is\x20chosen\x20in\x20the\x20app.\x20Run\x20`delegate-cli\x20login\x20--env\x20<env>`\x20for\x20a\x20CLI\x20login\x20of\x20your\x20own.','Unknown\x20sessions\x20action:\x20','--working-dir','Forked\x20','--preload-skill','monthly_limit_usd','Switch\x20with:\x20delegate-cli\x20tenant\x20<name>\x0a','package.json','subcommand','Missing\x20prompt.\x20Pass\x20it\x20as\x20an\x20argument,\x20pipe\x20it\x20via\x20stdin,\x20or\x20run\x20`delegate-cli\x20--help`.','Delegation\x20\x20\x20\x20',']\x20(Enter\x20for\x20','delegations\x20list\x20<backend-project-id>','ASSIGNEE','Removed\x20','stack','Structured\x20output\x20failed:\x20','delegation','No\x20CLI\x20login\x20found.\x20Note:\x20the\x20CLI\x20is\x20currently\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20','\x0a⚠️\x20\x20Auth\x20expired.\x20Opening\x20browser\x20to\x20re-login…\x0a','isError','usage','org-users','Deleted\x20session\x20','push','No\x20CLI\x20login\x20found.\x20Run\x20`delegate-cli\x20login\x20--env\x20<alpha|staging|production>`\x20first.','--replay-user-messages\x20needs\x20--input-format\x20stream-json.','self-hosted\x20(Automation\x20Suite\x20/\x20Dedicated)','env','No\x20sessions\x20on\x20page\x20',':\x20cannot\x20read\x20the\x20JSON\x20schema\x20(','\x20not\x20found.','object','parentSessionId','Number','print','Accepted','extra_pool_consumed_pu','Unknown\x20usage\x20view:\x20','Organization\x20\x20','done','end','kind',')\x20—\x20saved\x20to\x20','56328moLgFD','\x20delegation\x20','\x20\x20\x20\x20BYO\x20warning:\x20','steer','rerank','--turn','48OgTinC','locked','delegations\x20dismiss\x20<delegation-id>',':\x20ignored\x0a','delegations\x20claim\x20<delegation-id|delegate://delegation/…>','existsSync','resolve','--remote','next','projectId','preloadSkills','catch','verify','--url\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Other\x20commands\x20follow\x20the\x20saved\x20login,\x20or\x20--backend\x20<url>.','Cancel\x20requested\x20for\x20turn\x20','--authority','sendMessage','confidence','The\x20turn\x20was\x20cancelled.','turnId','pending','monthly_spend_usd','inputFormat','\x20of\x20session\x20','Usage:\x20delegate-cli\x20sessions\x20[list]\x20[--page\x20N]\x20[--limit\x20N]\x20[--include-subagents]','add','logout','cartographer','concat','18225xiWnyV','stringify','\x20(type\x20your\x20own)','--effort','\x20(current)','outputFormat','delegateTo','probability\x20','A\x20steering\x20message\x20arrived\x20after\x20the\x20turn\x20ended:\x20not\x20read.\x0a','verbose','Base\x20URL:\x20\x20\x20\x20\x20','Enter\x20numbers\x20from\x201\x20to\x20','bundledSkillsPath','cwd','close','numeric','a\x20file://\x20URL\x20or\x20an\x20absolute\x20path',';\x20the\x20saved\x20login\x20still\x20uses\x20','Bearer\x20','Usage:\x20delegate-cli\x20sessions\x20fork\x20<id>\x20[<message-id>]','5960RuaNdL','name','includeSubAgents','1\x20or\x20more','lastType','length','abort','Usage:\x20delegate-cli\x20','models','Date\x20\x20\x20\x20\x20\x20\x20\x20Token\x20units\x20\x20Prompt\x20tokens\x20\x20Completion\x20tokens','ID\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','question','check','mapName','tenant','--headless','assignedUser','answers','then','includes','high','a\x20skill\x20name','period_end','--session\x20applies\x20to\x20the\x20`delegate-cli\x20usage`\x20summary\x20only.','questions','\x20is\x20not\x20valid\x20JSON\x20(','hide','\x20into\x20','export:\x20','\x20\x20(sub-agent\x20of\x20','remote','verdict','Continue\x20it\x20with:\x20delegate-cli\x20--session\x20','cancel','delegations\x20show\x20<delegation-id|delegate://delegation/…>','options','pendingResults','--remote\x20and\x20--map-name\x20apply\x20to\x20`delegate-cli\x20maps\x20share`\x20only.','rmSync','\x20not\x20found,\x20has\x20no\x20messages','\x20is\x20required.\x0a','maps\x20','\x20prompt,\x20','Your\x20answer\x20(Enter\x20to\x20skip):\x20','🔧\x20','\x20|\x20','isSafeInteger','--days\x20applies\x20to\x20`delegate-cli\x20usage\x20activity|daily`;\x20the\x20summary\x20covers\x20the\x20current\x20month.','SIGINT','Rubric\x20','workingDirectory','version','userId','quiet','user','response','operands','sessions','No\x20usage\x20in\x20the\x20last\x20','destroy','choice','skip','the\x20JSON\x20schema','input','a\x20directory\x20path','default','\x20PU\x20beyond\x20quota','subFields','\x20\x22<answer>\x22\x0a','--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`delegate-cli\x20sessions`\x20only.','alreadyAccepted','--url','host','stop','\x20days:\x20','.\x20Drop\x20one\x20of\x20the\x20two.','133511UTtLMW','environment\x20variables\x20(AUTH_TOKEN/TENANT_ID/ORG_ID)','save-version','Session\x20\x20\x20\x20\x20\x20\x20','tenantName','unit','page','No\x20models\x20available\x20for\x20this\x20product/tenant.\x0a','prompt_tokens','headless','all','\x20\x22<prompt>\x22\x0a','You>\x20','--session','.\x20Use\x20alpha\x20|\x20staging\x20|\x20production\x20|\x20localhost.','sourceUserEmail','list','\x20in\x20steps\x20of\x20','readLine','orgLogicalName','active_days','\x20(Delegate\x20desktop\x20app\x20fallback)','--env\x20localhost\x20has\x20no\x20OAuth\x20flow;\x20pick\x20alpha,\x20staging,\x20or\x20production.','--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.','accept','whoami','--keep-alive','--days\x20applies\x20to\x20`delegate-cli\x20usage\x20activity|daily`\x20only.','exitCode','model','the\x20request','utf-8','low','):\x0a\x0a','completion_tokens',').\x0a','\x20(resets\x20','Organization:\x20','--skills-path','pop','Pass\x20either\x20--env\x20(a\x20named\x20cloud)\x20or\x20--url\x20(any\x20other\x20deployment),\x20not\x20both.','\x20<id>','--quiet','Invalid\x20--project:\x20\x22','No\x20structured\x20output:\x20the\x20turn\x20failed\x20(','isFinite','Enter\x20one\x20number\x20from\x201\x20to\x20','expiresAt','findLast','\x0aAccept\x20one\x20with:\x20delegate-cli\x20delegations\x20accept\x20<id>\x0a','isInteger','deepLink','message','min','Your\x20answer,\x20as\x20text\x20(the\x20CLI\x20attaches\x20no\x20files;\x20Enter\x20to\x20skip):\x20','title','once','evaluate','auth.json','score\x20','replace','10272890ELRDIp','error','rejection','Enter\x20a\x20number\x20','--summary','--env','keepAlive','getTurnUsageHistory','a\x20deployment\x20URL,\x20e.g.\x20https://automationsuite.contoso.com','\x20must\x20be\x20a\x20whole\x20number\x20','max','forEach','Tenants\x20of\x20','type','A\x20steering\x20message\x20was\x20not\x20sent:\x20','total_prompt_tokens','period_days','\x20(no\x20cap\x20enforced)','\x20<file.json>,\x20or\x20-\x20to\x20read\x20stdin.','transcribe:\x20cannot\x20read\x20','\x20sessions\x20on\x20','signal','Renamed\x20','erase','tenantId','login','\x20as\x20\x22','status','multiSelect',':\x20bucket\x20number\x20(Enter\x20to\x20leave\x20out):\x20','taskAutomation','complete','actionable_error','11709uxAQUS','delegations\x20complete\x20<delegation-id>\x20\x22<answer>\x22|-','runnerUrl','--skip-env-check','alreadyCompleted','show','oneTurn','unknown','from\x20',',\x20not\x20\x22user\x22','--to','11MQApCv','email','18690012lRNtfU','Model\x20','Input\x20closed\x20before\x20the\x20question\x20was\x20answered.','.\x20Use\x20`delegate-cli\x20usage`,\x20`usage\x20activity`\x20or\x20`usage\x20daily`.','some','baseUrl','Invalid\x20--env:\x20','code','a\x20project\x20id','%\x20of\x20','\x0aStopping…\x20(Ctrl+C\x20again\x20to\x20force\x20exit)\x0a','agent_thought','fields','Session\x20','task','argv','session_consumed_pu'];_0x470f=function(){return _0x41e2c3;};return _0x470f();}var L=_0x4c43a7=>{const _0x38aa27=_0x2282d3;process[_0x38aa27(0x331)][_0x38aa27(0x2e5)](_0x4c43a7);};function Xt(){const _0x1ef66e=_0x2282d3;let _0x27014e=process[_0x1ef66e(0x331)]['write'],_0x56c08b=_0x27014e[_0x1ef66e(0x359)](process[_0x1ef66e(0x331)]),_0x5e09c9=L;return L=_0x40c8d3=>{_0x56c08b(_0x40c8d3);},process[_0x1ef66e(0x331)][_0x1ef66e(0x2e5)]=(..._0x178d53)=>process[_0x1ef66e(0x297)][_0x1ef66e(0x2e5)](..._0x178d53),()=>{const _0xbb9bbd=_0x1ef66e;process[_0xbb9bbd(0x331)]['write']=_0x27014e,L=_0x5e09c9;};}function m(_0x126fc4,_0x53277d,_0x17de10){const _0x50d435=_0x2282d3;if(_0x126fc4[_0x50d435(0x195)]===_0x50d435(0x317)){_0x17de10(_0x53277d);return;}L(_0x415a0b(_0x53277d));}function Zt(){const _0x28ac85=_0x2282d3;let _0x27849f=_0x28ac85(0x2bd)[_0x28ac85(0x31d)]();console[_0x28ac85(0x322)](_0x27849f);}function en(){const _0x547952=_0x2282d3;try{return JSON['parse'](_0x3553b5['readFileSync'](_0x118b57[_0x547952(0x2c2)](__dirname,'..',_0x547952(0x36b)),'utf-8'))[_0x547952(0x1d7)]||_0x547952(0x255);}catch{return _0x547952(0x255);}}var tn=0x7d0;async function me(_0x6ea615,_0x234271){const _0x4888c9=_0x2282d3;let _0x19dec2=_0x234271?[_0x234271]:[];for await(let _0x10a6a7 of _0x6ea615)_0x19dec2[_0x4888c9(0x37c)](Buffer['from'](_0x10a6a7));return Buffer[_0x4888c9(0x18f)](_0x19dec2)['toString'](_0x4888c9(0x20f))['trim']();}function nn(_0x2e5af0,_0x512eea){return new Promise(_0x3ec1c0=>{const _0x261d1e=_0xbcf4;let _0x1043e2=_0x1b8f2d=>{const _0x5e6db5=_0xbcf4;clearTimeout(_0x3c0e9a),_0x2e5af0[_0x5e6db5(0x276)](_0x5e6db5(0x324),_0x4177c0),_0x2e5af0[_0x5e6db5(0x276)](_0x5e6db5(0x16a),_0x592582),_0x2e5af0[_0x5e6db5(0x276)](_0x5e6db5(0x22e),_0x592582),_0x2e5af0['pause'](),_0x3ec1c0(_0x1b8f2d);},_0x4177c0=_0x366690=>_0x1043e2(Buffer[_0x261d1e(0x34d)](_0x366690)),_0x592582=()=>_0x1043e2(null),_0x3c0e9a=setTimeout(()=>_0x1043e2(null),_0x512eea);_0x2e5af0['on'](_0x261d1e(0x324),_0x4177c0),_0x2e5af0['on'](_0x261d1e(0x16a),_0x592582),_0x2e5af0['on'](_0x261d1e(0x22e),_0x592582),_0x2e5af0['resume']();});}async function J(_0x1c2718,_0x2c46c8,_0x170c7b=tn){const _0x4646a0=_0x2282d3;let _0xac91cb=_0x1c2718==='-';if(!_0xac91cb&&_0x1c2718)return _0x1c2718;if(!_0xac91cb&&_0x2c46c8[_0x4646a0(0x333)])return'';if(_0xac91cb)return me(_0x2c46c8,null);let _0x2b8f3c=await nn(_0x2c46c8,_0x170c7b);return _0x2b8f3c?me(_0x2c46c8,_0x2b8f3c):'';}function Y(){const _0x5df5ed=_0x2282d3;return _0x118b57['join'](process.env.HOME||process.env.USERPROFILE||'','.aria',_0x5df5ed(0x22a));}function G(_0x1e8e8a){const _0x3e600f=_0x2282d3;try{let _0x440ba8=JSON[_0x3e600f(0x2fd)](_0x3553b5[_0x3e600f(0x2df)](_0x1e8e8a,_0x3e600f(0x20f)));return!_0x440ba8[_0x3e600f(0x350)]||!_0x440ba8['tenantId']||!_0x440ba8[_0x3e600f(0x2f3)]?null:_0x440ba8;}catch{return null;}}function sn(){const _0x27c826=_0x2282d3;let _0x4de3a8=[{'file':_0x4c8f20(),'isDesktopFallback':!0x1},{'file':Y(),'isDesktopFallback':!0x0}];for(let _0x65f681 of _0x4de3a8){let _0x1d28d3=G(_0x65f681[_0x27c826(0x292)]);if(_0x1d28d3)return{..._0x65f681,'auth':_0x1d28d3};}return null;}async function on(){const _0x225f07=_0x2282d3;let _0x29f750=_0x4c8f20();if(!_0x3553b5[_0x225f07(0x178)](_0x29f750)){let _0x34e217=Y();console[_0x225f07(0x322)](G(_0x34e217)?_0x225f07(0x376)+_0x34e217+'\x20—\x20sign\x20out\x20in\x20the\x20Delegate\x20app\x20to\x20clear\x20that.':'No\x20CLI\x20login\x20found\x20—\x20nothing\x20to\x20remove.');return;}_0x3553b5[_0x225f07(0x1ca)](_0x29f750),console[_0x225f07(0x322)](_0x225f07(0x372)+_0x29f750);}async function rn(_0x238cf9){const _0x2abe33=_0x2282d3;let _0x1f5e48=z(),_0x589e15,_0x1b46cd;if(_0x1f5e48)_0x589e15=_0x1f5e48,_0x1b46cd=_0x2abe33(0x1f1);else{let _0x2f03b0=sn();if(!_0x2f03b0)throw new Error(Ne);_0x589e15=_0x2f03b0['auth'],_0x1b46cd=_0x2f03b0['isDesktopFallback']?_0x2f03b0['file']+_0x2abe33(0x205):_0x2f03b0[_0x2abe33(0x292)];}let _0x518dd6={'source':_0x1b46cd,'baseUrl':_0x589e15['baseUrl']??null,'deployment':an(_0x589e15['baseUrl']),'organization':{'id':_0x589e15[_0x2abe33(0x2f3)],'slug':_0x589e15[_0x2abe33(0x203)]??null},'tenant':{'id':_0x589e15[_0x2abe33(0x245)],'name':_0x589e15[_0x2abe33(0x1f4)]??null},'tokenExpiresAt':_0x589e15[_0x2abe33(0x21f)]?new Date(_0x589e15[_0x2abe33(0x21f)]*0x3e8)[_0x2abe33(0x2dc)]():null};m(_0x238cf9,_0x518dd6,()=>{const _0x9338dc=_0x2abe33;let _0x58c0d8=['Source:\x20\x20\x20\x20\x20\x20\x20'+_0x1b46cd,_0x9338dc(0x19a)+(_0x589e15['baseUrl']??_0x9338dc(0x255)),_0x9338dc(0x2c4)+_0x518dd6['deployment'],_0x9338dc(0x215)+(_0x589e15[_0x9338dc(0x203)]??_0x9338dc(0x2e9))+'\x20('+_0x589e15[_0x9338dc(0x2f3)]+')','Tenant:\x20\x20\x20\x20\x20\x20\x20'+(_0x589e15[_0x9338dc(0x1f4)]??_0x9338dc(0x2e9))+'\x20('+_0x589e15[_0x9338dc(0x245)]+')'];if(_0x589e15['expiresAt']){let _0x135a2c=_0x589e15[_0x9338dc(0x21f)]-Math['floor'](Date['now']()/0x3e8);_0x58c0d8[_0x9338dc(0x37c)](_0x135a2c>0x0?_0x9338dc(0x2c1)+_0x518dd6[_0x9338dc(0x300)]+_0x9338dc(0x283)+Math[_0x9338dc(0x272)](_0x135a2c/0x3c)+_0x9338dc(0x353):_0x9338dc(0x2ee)+_0x518dd6['tokenExpiresAt']);}process[_0x9338dc(0x331)]['write'](_0x58c0d8['join']('\x0a')+'\x0a');});}var Ne=_0x2282d3(0x34a);function an(_0x47c17a){const _0x117c5c=_0x2282d3;return _0x47c17a?_0x4f994f(_0x47c17a)?_0x117c5c(0x28a):_0x117c5c(0x37f):'unknown';}function z(){let _0x9afe50=process.env.AUTH_TOKEN_FILE;return(process.env.AUTH_TOKEN||_0x9afe50)&&process.env.TENANT_ID&&process.env.ORG_ID?{'accessToken':_0x9afe50?ln(_0x9afe50):process.env.AUTH_TOKEN,..._0x9afe50?{'accessTokenFile':_0x9afe50}:{},'tenantId':process.env.TENANT_ID,'organizationId':process.env.ORG_ID,'orgLogicalName':process.env.ORG_SLUG,'tenantName':process.env.TENANT_SLUG,'baseUrl':Pe()}:null;}function ln(_0x2872fd){const _0x5a1d68=_0x2282d3;let _0x5cb840;try{_0x5cb840=_0x3553b5[_0x5a1d68(0x2df)](_0x2872fd,_0x5a1d68(0x20f))['trim']();}catch(_0x343872){throw new Error(_0x5a1d68(0x32e)+_0x2872fd+_0x5a1d68(0x31e)+_0x343872['message']);}let _0x40b0bf=_0x5cb840['startsWith'](_0x5a1d68(0x1a2))?_0x5cb840[_0x5a1d68(0x2d4)](0x7)['trim']():_0x5cb840;if(!_0x40b0bf)throw new Error(_0x5a1d68(0x32e)+_0x2872fd+'\x27\x20is\x20empty.');return _0x40b0bf;}function Pe(){const _0xf8ab6c=_0x2282d3;let _0x438587=process.env.UIPATH_BASE_URL;if(!_0x438587)return;let _0x5023a1=_0xc0a854(_0x438587);if(_0x5023a1['ok']===!0x1)throw new Error('UIPATH_BASE_URL\x20is\x20unusable.\x20'+_0x10bfad(_0x438587,_0x5023a1[_0xf8ab6c(0x22f)]));return _0x5023a1[_0xf8ab6c(0x260)];}async function V(){let _0x5f2f72=z();if(_0x5f2f72)return _0x5f2f72;let _0x421817=await _0x1760a0();if(_0x421817)return _0x421817;throw new Error(Ne);}async function cn(){const _0x84c250=_0x2282d3;await new _0x1e0c12()[_0x84c250(0x1ed)]({'force':!0x0}),console[_0x84c250(0x322)]('Interop\x20stopped\x20(if\x20it\x20was\x20running).');}function X(_0x5b09cb,_0x2d6c82,_0x5482f0){const _0x7a5543=_0x2282d3;_0x5b09cb?process['stderr'][_0x7a5543(0x2e5)]('[env='+_0x5b09cb+_0x7a5543(0x281)+_0x5482f0+'\x0a'):!_0x2d6c82&&!process.env.BACKEND_URL&&process[_0x7a5543(0x297)][_0x7a5543(0x2e5)](_0x7a5543(0x282)+_0x5482f0+'\x0a');}async function x(_0x27e236){const _0x1c43f0=_0x2282d3;let _0x44ff63=await V(),_0x54a289=_0x3fcea2(_0x27e236[_0x1c43f0(0x380)],_0x44ff63,_0x27e236[_0x1c43f0(0x33e)]);return X(_0x27e236[_0x1c43f0(0x380)],_0x27e236[_0x1c43f0(0x33e)],_0x54a289),{'auth':_0x44ff63,'backendUrl':_0x54a289,'client':_0x3ae63d({'auth':_0x44ff63,'backendUrl':_0x54a289})};}async function dn(_0x64fef9){const _0x44541f=_0x2282d3;let {client:_0x3c8009}=await x(_0x64fef9),[_0x443f44,_0x51fd57]=await Promise['all']([_0x199db2(_0x3c8009),_0x54bb36(_0x3c8009)[_0x44541f(0x17e)](_0x43b85f=>(process['stderr']['write']('Could\x20not\x20check\x20BYO\x20model\x20warnings:\x20'+(_0x43b85f instanceof Error?_0x43b85f[_0x44541f(0x224)]:String(_0x43b85f))+'\x0a'),{}))]),_0x2bb5ae=_0x443f44[_0x44541f(0x2f6)](_0x18cf61=>_0x51fd57[_0x18cf61['id']]?{..._0x18cf61,'byoWarning':_0x51fd57[_0x18cf61['id']]}:_0x18cf61);m(_0x64fef9,_0x2bb5ae,un);}function un(_0x2e6543){const _0x2e0a2a=_0x2282d3;if(_0x2e6543['length']===0x0){process[_0x2e0a2a(0x297)][_0x2e0a2a(0x2e5)](_0x2e0a2a(0x1f7));return;}process[_0x2e0a2a(0x331)][_0x2e0a2a(0x2e5)](_0x2e0a2a(0x332)+_0x2e6543['length']+_0x2e0a2a(0x211));for(let _0x1acfbc of _0x2e6543){let _0x2b7453=_0x1acfbc[_0x2e0a2a(0x1a5)]&&_0x1acfbc[_0x2e0a2a(0x1a5)]!==_0x1acfbc['id']?'\x20('+_0x1acfbc[_0x2e0a2a(0x1a5)]+')':'';process['stdout'][_0x2e0a2a(0x2e5)]('\x20\x20'+_0x1acfbc['id']+_0x2b7453+'\x0a'),_0x1acfbc[_0x2e0a2a(0x2c6)]&&process[_0x2e0a2a(0x331)][_0x2e0a2a(0x2e5)]('\x20\x20\x20\x20'+_0x1acfbc[_0x2e0a2a(0x2c6)]+'\x0a'),_0x1acfbc[_0x2e0a2a(0x174)]&&process[_0x2e0a2a(0x331)][_0x2e0a2a(0x2e5)](_0x2e0a2a(0x2ed)+(_0x1acfbc[_0x2e0a2a(0x2b2)]?'\x20('+_0x1acfbc['lockReason']+')':'')+'\x0a'),_0x1acfbc[_0x2e0a2a(0x2b4)]&&process[_0x2e0a2a(0x331)][_0x2e0a2a(0x2e5)](_0x2e0a2a(0x16f)+_0x1acfbc[_0x2e0a2a(0x2b4)]+'\x0a');}process[_0x2e0a2a(0x331)][_0x2e0a2a(0x2e5)](_0x2e0a2a(0x2e2));}var fe=['list','show',_0x2282d3(0x2a2),'delete',_0x2282d3(0x1c5),'fork'];async function pn(_0x48c0b5){const _0x547d00=_0x2282d3;let [_0x485120='',_0x1631be='',..._0x5d7751]=_0x48c0b5[_0x547d00(0x1dc)];if(_0x485120&&!fe[_0x547d00(0x1b7)](_0x485120)&&(console[_0x547d00(0x22e)](_0x547d00(0x365)+_0x485120+_0x547d00(0x35d)+fe[_0x547d00(0x2c2)](_0x547d00(0x1d1))+'.'),process[_0x547d00(0x2b9)](0x2)),_0x48c0b5['turnId']!==void 0x0&&_0x485120!=='cancel'&&(console[_0x547d00(0x22e)](_0x547d00(0x2fe)),process[_0x547d00(0x2b9)](0x2)),_0x485120&&_0x485120!==_0x547d00(0x200)){await mn(_0x48c0b5,_0x485120,_0x1631be,_0x5d7751['join']('\x20')[_0x547d00(0x31d)]());return;}_0x48c0b5[_0x547d00(0x1dc)][_0x547d00(0x1a9)]>0x1&&(console[_0x547d00(0x22e)](_0x547d00(0x18b)),process[_0x547d00(0x2b9)](0x2));let {client:_0x2609dc}=await x(_0x48c0b5),_0x25adf1=await _0x16d782(_0x2609dc,{'page':_0x48c0b5['page'],'pageSize':_0x48c0b5[_0x547d00(0x310)],'includeSubAgents':_0x48c0b5[_0x547d00(0x1a6)]});m(_0x48c0b5,_0x25adf1,yn);}async function mn(_0x5b80f7,_0x459921,_0x44443a,_0x47b828){const _0x5cc5b2=_0x2282d3;if((_0x5b80f7[_0x5cc5b2(0x1f6)]!==void 0x0||_0x5b80f7[_0x5cc5b2(0x310)]!==void 0x0||_0x5b80f7['includeSubAgents'])&&(console['error'](_0x5cc5b2(0x360)),process[_0x5cc5b2(0x2b9)](0x2)),_0x459921==='cancel'){await gn(_0x5b80f7,_0x44443a,_0x47b828);return;}if(_0x459921==='fork'){await hn(_0x5b80f7,_0x44443a,_0x47b828);return;}(!_0x44443a||_0x459921===_0x5cc5b2(0x2a2)!=!!_0x47b828)&&(console[_0x5cc5b2(0x22e)](_0x5cc5b2(0x338)+_0x459921+_0x5cc5b2(0x219)+(_0x459921===_0x5cc5b2(0x2a2)?_0x5cc5b2(0x2c3):'')),process['exit'](0x2));let {client:_0x55ffff}=await x(_0x5b80f7);try{if(_0x459921===_0x5cc5b2(0x253)){let _0x564b0a=await _0xa0af8a(_0x55ffff,_0x44443a);_0x564b0a||ge(_0x44443a),m(_0x5b80f7,_0x564b0a,fn);}else{if(_0x459921==='rename'){let _0x45317c=await _0x636a5d(_0x55ffff,_0x44443a,_0x47b828);m(_0x5b80f7,_0x45317c,_0x4ab896=>{const _0x439675=_0x5cc5b2;process[_0x439675(0x331)][_0x439675(0x2e5)](_0x439675(0x243)+_0x4ab896['id']+':\x20'+_0x4ab896[_0x439675(0x227)]+'\x0a');});}else await _0x15fcc2(_0x55ffff,_0x44443a),await _0x43680c(_0x44443a,_0x5b80f7[_0x5cc5b2(0x1d6)]),m(_0x5b80f7,{'id':_0x44443a,'deleted':!0x0},_0x1c1fc0=>{const _0x58bdd1=_0x5cc5b2;process[_0x58bdd1(0x331)][_0x58bdd1(0x2e5)](_0x58bdd1(0x37b)+_0x1c1fc0['id']+'.\x0a');});}}catch(_0x3a6c06){if(!_0x15969b(_0x3a6c06,0x194))throw _0x3a6c06;ge(_0x44443a);}}function ge(_0x3b13f6){const _0x12227b=_0x2282d3;console[_0x12227b(0x22e)](_0x12227b(0x268)+_0x3b13f6+_0x12227b(0x383)),process[_0x12227b(0x2b9)](0x1);}function fn(_0x2db779){const _0x159e5d=_0x2282d3;process[_0x159e5d(0x331)][_0x159e5d(0x2e5)](_0x159e5d(0x1ae)+_0x2db779['id']+'\x0a'),process[_0x159e5d(0x331)][_0x159e5d(0x2e5)](_0x159e5d(0x32b)+_0x2db779[_0x159e5d(0x227)]+'\x0a'),process[_0x159e5d(0x331)][_0x159e5d(0x2e5)](_0x159e5d(0x308)+_0x2db779[_0x159e5d(0x1d8)]+'\x0a'),process['stdout']['write'](_0x159e5d(0x168)+_0x2db779['organizationId']+'\x0a'),_0x2db779['delegationId']&&process[_0x159e5d(0x331)][_0x159e5d(0x2e5)](_0x159e5d(0x36e)+_0x2db779[_0x159e5d(0x326)]+'\x0a');}async function gn(_0x31e626,_0x47787e,_0x728ccd){const _0x3a0f29=_0x2282d3;(!_0x47787e||_0x728ccd||!_0x31e626[_0x3a0f29(0x186)])&&(console[_0x3a0f29(0x22e)](_0x3a0f29(0x271)),process[_0x3a0f29(0x2b9)](0x2));let {client:_0x44a286}=await x(_0x31e626),_0x5086d9=await _0x17e647(_0x44a286,_0x47787e,_0x31e626['turnId']);m(_0x31e626,{'sessionId':_0x47787e,'turnId':_0x31e626['turnId'],'cancelled':_0x5086d9},_0x498726=>{const _0x556653=_0x3a0f29;_0x498726[_0x556653(0x2cf)]?process['stdout'][_0x556653(0x2e5)](_0x556653(0x181)+_0x498726[_0x556653(0x186)]+_0x556653(0x18a)+_0x498726[_0x556653(0x2a6)]+'.\x0a'):process[_0x556653(0x297)][_0x556653(0x2e5)]('No\x20turn\x20'+_0x498726[_0x556653(0x186)]+_0x556653(0x2d5)+_0x498726[_0x556653(0x2a6)]+'.\x0a');}),_0x5086d9||(process[_0x3a0f29(0x20c)]=0x1);}async function hn(_0x21d14a,_0x1cdcb4,_0x243423){const _0x276f51=_0x2282d3;(!_0x1cdcb4||/\s/[_0x276f51(0x2fc)](_0x243423))&&(console[_0x276f51(0x22e)](_0x276f51(0x1a3)),process[_0x276f51(0x2b9)](0x2));let {client:_0x338d2e}=await x(_0x21d14a),_0x45537f;try{_0x45537f=await _0x2e713d(_0x338d2e,_0x1cdcb4,{'atMessageId':_0x243423||void 0x0});}catch(_0x481ebb){if(!_0x15969b(_0x481ebb,0x194))throw _0x481ebb;console[_0x276f51(0x22e)]('Session\x20'+_0x1cdcb4+_0x276f51(0x1cb)+(_0x243423?',\x20or\x20holds\x20no\x20message\x20'+_0x243423:'')+'.'),process[_0x276f51(0x2b9)](0x1);}m(_0x21d14a,_0x45537f,_0x26c7a1=>{const _0x367a22=_0x276f51;process[_0x367a22(0x331)][_0x367a22(0x2e5)](_0x367a22(0x367)+_0x1cdcb4+_0x367a22(0x1bf)+_0x26c7a1['id']+'.\x0a'),process[_0x367a22(0x297)][_0x367a22(0x2e5)](_0x367a22(0x1c4)+_0x26c7a1['id']+_0x367a22(0x1fb));});}function yn({sessions:_0x50db2e,page:_0x46d5a5,isLastPage:_0x2ae185}){const _0x7b0bc3=_0x2282d3;if(_0x50db2e[_0x7b0bc3(0x1a9)]===0x0)process[_0x7b0bc3(0x297)][_0x7b0bc3(0x2e5)](_0x7b0bc3(0x381)+_0x46d5a5+'.\x0a');else{process[_0x7b0bc3(0x331)][_0x7b0bc3(0x2e5)]('ID'[_0x7b0bc3(0x321)](0x24)+'\x20\x20'+'UPDATED'['padEnd'](0x13)+_0x7b0bc3(0x311));for(let _0x1f5e82 of _0x50db2e){let _0x32c076=_0x1f5e82[_0x7b0bc3(0x358)]['replace']('T','\x20')[_0x7b0bc3(0x2d4)](0x0,0x13),_0x17c4d1=_0x1f5e82[_0x7b0bc3(0x385)]?_0x7b0bc3(0x1c1)+_0x1f5e82[_0x7b0bc3(0x385)]+')':'';process['stdout'][_0x7b0bc3(0x2e5)](_0x1f5e82['id'][_0x7b0bc3(0x321)](0x24)+'\x20\x20'+_0x32c076[_0x7b0bc3(0x321)](0x13)+'\x20\x20'+_0x1f5e82['title']+_0x17c4d1+'\x0a');}}_0x2ae185||process[_0x7b0bc3(0x297)]['write']('More:\x20delegate-cli\x20sessions\x20--page\x20'+(_0x46d5a5+0x1)+'\x0a');}async function wn(_0x38fa62){const _0x1a3dad=_0x2282d3;let _0x58d9bc=await V(),_0x4a095c=_0x3fcea2(_0x38fa62[_0x1a3dad(0x380)],_0x58d9bc,_0x38fa62[_0x1a3dad(0x33e)]);X(_0x38fa62[_0x1a3dad(0x380)],_0x38fa62[_0x1a3dad(0x33e)],_0x4a095c);let _0x166257=await _0x37456c({'auth':_0x58d9bc,'backendUrl':_0x4a095c,'interop':_0x38fa62['headless']?_0x1a3dad(0x1e1):'spawn'});m(_0x38fa62,_0x166257,({checks:_0x2dc3b1})=>{const _0x414031=_0x1a3dad;for(let _0x40421d of _0x2dc3b1)process[_0x414031(0x331)][_0x414031(0x2e5)](kn(_0x40421d)+'\x0a');}),_0x166257['ok']||process[_0x1a3dad(0x2b9)](0x1);}function kn(_0xdd613){const _0x47a10e=_0x2282d3;return{'ok':'✓','failed':'✗','skipped':'-'}[_0xdd613[_0x47a10e(0x248)]]+'\x20'+_0xdd613[_0x47a10e(0x1a5)][_0x47a10e(0x321)](0xa)+_0xdd613[_0x47a10e(0x2f4)];}var bn=['',_0x2282d3(0x329),_0x2282d3(0x34f)];async function vn(_0x4de285){const _0x23e8d3=_0x2282d3;let _0xd7901c=_0x4de285['prompt'];bn[_0x23e8d3(0x1b7)](_0xd7901c)||(console[_0x23e8d3(0x22e)](_0x23e8d3(0x167)+_0x4de285['prompt']+_0x23e8d3(0x25e)),process[_0x23e8d3(0x2b9)](0x2)),_0xd7901c===''&&_0x4de285['days']!==void 0x0&&(console[_0x23e8d3(0x22e)](_0x23e8d3(0x1d3)),process['exit'](0x2)),_0xd7901c!==''&&_0x4de285[_0x23e8d3(0x2a6)]!==void 0x0&&(console[_0x23e8d3(0x22e)](_0x23e8d3(0x1bb)),process['exit'](0x2));let {client:_0x19b20f}=await x(_0x4de285);if(_0xd7901c===_0x23e8d3(0x329)){m(_0x4de285,await _0x5e5986(_0x19b20f,{'days':_0x4de285[_0x23e8d3(0x27d)]}),An);return;}if(_0xd7901c==='daily'){m(_0x4de285,await _0x59b3d8(_0x19b20f,{'days':_0x4de285['days']}),En);return;}let [_0x6fa628,_0x1a8aba]=await Promise[_0x23e8d3(0x1fa)]([_0x535225(_0x19b20f,{'sessionId':_0x4de285[_0x23e8d3(0x2a6)]}),_0x41ada2(_0x19b20f)]);m(_0x4de285,{'licensing':_0x6fa628,'monthlySpending':_0x1a8aba},Sn);}function Sn(_0x3602cc){const _0x380577=_0x2282d3;let {licensing:_0x228adb,monthlySpending:_0x2d5164}=_0x3602cc,_0x139bd3=[_0x228adb[_0x380577(0x2b0)]?'Licensing:\x20\x20\x20\x20'+_0x228adb[_0x380577(0x30a)][_0x380577(0x2db)](0x1)+_0x380577(0x264)+(_0x228adb[_0x380577(0x2d6)]??0x0)+'\x20PU\x20used'+(_0x228adb[_0x380577(0x166)]>0x0?',\x20'+_0x228adb[_0x380577(0x166)]+_0x380577(0x1e6):'')+_0x380577(0x214)+_0x228adb[_0x380577(0x1ba)]+')':'Licensing:\x20\x20\x20\x20no\x20licensing\x20quota\x20applies',_0x380577(0x351)+_0x2d5164[_0x380577(0x188)]['toFixed'](0x2)+_0x380577(0x327)+(_0x2d5164[_0x380577(0x2b0)]&&_0x2d5164[_0x380577(0x369)]!==null?'\x20of\x20a\x20$'+_0x2d5164[_0x380577(0x369)]['toFixed'](0x2)+'\x20cap':_0x380577(0x23e))];_0x228adb[_0x380577(0x26b)]!==null&&_0x228adb[_0x380577(0x26b)]!==void 0x0&&_0x139bd3[_0x380577(0x37c)](_0x380577(0x286)+_0x228adb['session_consumed_pu']+'\x20PU'),process['stdout'][_0x380577(0x2e5)](_0x139bd3['join']('\x0a')+'\x0a');}function An(_0x115546){const _0x39f821=_0x2282d3;let _0x4aa43e=['Last\x20'+_0x115546['period_days']+_0x39f821(0x1ee)+_0x115546['total_sessions']+_0x39f821(0x241)+_0x115546[_0x39f821(0x204)]+'\x20active\x20days','Cost:\x20\x20\x20$'+_0x115546[_0x39f821(0x341)][_0x39f821(0x2db)](0x2)+_0x39f821(0x305)+_0x115546[_0x39f821(0x275)][_0x39f821(0x2db)](0x2)+_0x39f821(0x2cb)+_0x115546['total_token_units']+'\x20token\x20units)','Tokens:\x20'+_0x115546[_0x39f821(0x23c)]+_0x39f821(0x1ce)+_0x115546[_0x39f821(0x301)]+_0x39f821(0x33f)];for(let [_0x25e210,_0x5da5c3]of Object[_0x39f821(0x2b8)](_0x115546['models_breakdown']))_0x4aa43e['push']('\x20\x20'+_0x25e210+':\x20'+_0x5da5c3+_0x39f821(0x30e));process[_0x39f821(0x331)]['write'](_0x4aa43e['join']('\x0a')+'\x0a');}function En(_0x737411){const _0x3f3bac=_0x2282d3;if(_0x737411['daily_usage'][_0x3f3bac(0x1a9)]===0x0){process[_0x3f3bac(0x331)][_0x3f3bac(0x2e5)](_0x3f3bac(0x1de)+_0x737411[_0x3f3bac(0x23d)]+_0x3f3bac(0x32a));return;}let _0x436bf1=[_0x3f3bac(0x1ad)];for(let _0x202cd3 of _0x737411[_0x3f3bac(0x2b5)])_0x436bf1['push'](_0x202cd3[_0x3f3bac(0x2c9)]+'\x20\x20'+String(_0x202cd3[_0x3f3bac(0x28c)])[_0x3f3bac(0x307)](0xb)+'\x20\x20'+String(_0x202cd3[_0x3f3bac(0x1f8)])[_0x3f3bac(0x307)](0xd)+'\x20\x20'+String(_0x202cd3[_0x3f3bac(0x212)])[_0x3f3bac(0x307)](0x11));process[_0x3f3bac(0x331)][_0x3f3bac(0x2e5)](_0x436bf1[_0x3f3bac(0x2c2)]('\x0a')+'\x0a');}async function xn(_0x1a4197,_0x17e762){const _0x312e5b=_0x2282d3;let _0x27320a=await In(_0x1a4197['prompt'],_0x17e762);_0x1a4197[_0x312e5b(0x20d)]&&(_0x27320a[_0x312e5b(0x20d)]=_0x1a4197[_0x312e5b(0x20d)]);let {client:_0x129fba}=await x(_0x1a4197);try{_0x17e762===_0x312e5b(0x229)?m(_0x1a4197,await _0x36dea4(_0x129fba,_0x27320a,void 0x0),Tn):_0x17e762===_0x312e5b(0x171)?m(_0x1a4197,await _0x1d6121(_0x129fba,_0x27320a,void 0x0),Dn):m(_0x1a4197,await _0x525d68(_0x129fba,_0x27320a,void 0x0),Un);}catch(_0x526552){if(!_0x2db5f2(_0x526552))throw _0x526552;console[_0x312e5b(0x22e)](_0x526552[_0x312e5b(0x224)]),process[_0x312e5b(0x2b9)](0x1);}}async function In(_0x282e27,_0x7e4a77){const _0x3d1492=_0x2282d3;let _0x23b10d;try{_0x23b10d=_0x282e27&&_0x282e27!=='-'?_0x3553b5[_0x3d1492(0x2df)](_0x118b57[_0x3d1492(0x179)](_0x282e27),_0x3d1492(0x20f)):await J(_0x282e27,process[_0x3d1492(0x362)]);}catch(_0x4a1e90){console['error'](_0x7e4a77+_0x3d1492(0x323)+_0x4a1e90[_0x3d1492(0x224)]+').'),process[_0x3d1492(0x2b9)](0x2);}return _0x23b10d||(console['error'](_0x7e4a77+'\x20needs\x20a\x20JSON\x20request:\x20delegate-cli\x20'+_0x7e4a77+_0x3d1492(0x23f)),process['exit'](0x2)),_e(_0x23b10d,_0x7e4a77,_0x3d1492(0x20e));}function _e(_0x57fcef,_0x212a0f,_0x116c81){const _0x4e3765=_0x2282d3;let _0x2fd70e;try{_0x2fd70e=JSON[_0x4e3765(0x2fd)](_0x57fcef);}catch(_0x4ca464){console[_0x4e3765(0x22e)](_0x212a0f+':\x20'+_0x116c81+_0x4e3765(0x1bd)+_0x4ca464[_0x4e3765(0x224)]+').'),process[_0x4e3765(0x2b9)](0x2);}return(typeof _0x2fd70e!='object'||_0x2fd70e===null||Array[_0x4e3765(0x339)](_0x2fd70e))&&(console['error'](_0x212a0f+':\x20'+_0x116c81+_0x4e3765(0x2f9)),process[_0x4e3765(0x2b9)](0x2)),_0x2fd70e;}function Re(_0x366f2a,_0x5d309f){const _0x19a881=_0x2282d3;let _0x5c2dc5;try{_0x5c2dc5=_0x3553b5[_0x19a881(0x2df)](_0x118b57[_0x19a881(0x179)](_0x366f2a),_0x19a881(0x20f));}catch(_0x3124dc){console['error'](_0x5d309f+_0x19a881(0x382)+_0x3124dc[_0x19a881(0x224)]+').'),process[_0x19a881(0x2b9)](0x2);}return _e(_0x5c2dc5,_0x5d309f,_0x19a881(0x1e2));}async function $n(_0xdd2ae1){const _0x5870c4=_0x2282d3;_0xdd2ae1[_0x5870c4(0x280)]===void 0x0&&(console['error']('complete\x20needs\x20--json-schema\x20<file>:\x20delegate-cli\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22.'),process[_0x5870c4(0x2b9)](0x2));let _0xfddf10=Re(_0xdd2ae1[_0x5870c4(0x280)],'complete'),_0x27ec4b=(await J(_0xdd2ae1['prompt'],process['stdin']))[_0x5870c4(0x31d)]();_0x27ec4b||(console[_0x5870c4(0x22e)]('complete\x20needs\x20a\x20prompt:\x20delegate-cli\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22,\x20or\x20-\x20to\x20read\x20stdin.'),process[_0x5870c4(0x2b9)](0x2));let {client:_0x5642cc}=await x(_0xdd2ae1);try{let _0x4f3475=await _0x3b0afe(_0x5642cc,{'prompt':_0x27ec4b,'jsonSchema':_0xfddf10,'model':_0xdd2ae1[_0x5870c4(0x20d)]||process.env.MODEL||_0x31d523,..._0xdd2ae1[_0x5870c4(0x2a6)]!==void 0x0&&{'sessionId':_0xdd2ae1[_0x5870c4(0x2a6)]}},void 0x0);m(_0xdd2ae1,_0x4f3475,_0x34f8e2=>{const _0x431626=_0x5870c4;process[_0x431626(0x331)][_0x431626(0x2e5)](JSON[_0x431626(0x191)](_0x34f8e2[_0x431626(0x27a)],null,0x2)+'\x0a');});}catch(_0x2e4333){if(!_0x2ae45c(_0x2e4333))throw _0x2e4333;console[_0x5870c4(0x22e)](_0x2e4333[_0x5870c4(0x224)]),process['exit'](0x1);}}function Z(_0x562da5){const _0x3af876=_0x2282d3;process[_0x3af876(0x331)][_0x3af876(0x2e5)](_0x3af876(0x25c)+_0x562da5[_0x3af876(0x20d)]+'\x20('+_0x562da5[_0x3af876(0x345)]+_0x3af876(0x30c)+_0x562da5[_0x3af876(0x379)]['total_tokens']+'\x20tokens\x0a');}function Tn(_0x3fdbfe){const _0x107cdb=_0x2282d3;Z(_0x3fdbfe);for(let _0xab1e9e of Object['keys'](_0x3fdbfe[_0x107cdb(0x1b5)])){let _0x431adf=_0x3fdbfe['answers'][_0xab1e9e],_0x200b1e=_0x431adf[_0x107cdb(0x23a)]==='probability'?_0x107cdb(0x197)+_0x431adf[_0x107cdb(0x26f)][_0x107cdb(0x2db)](0x2):_0x431adf['type']===_0x107cdb(0x1e0)?'choice\x20'+_0x431adf[_0x107cdb(0x1e0)]+'\x20(confidence\x20'+_0x431adf['confidence'][_0x107cdb(0x2db)](0x2)+')':_0x107cdb(0x22b)+_0x431adf[_0x107cdb(0x29f)][_0x107cdb(0x2db)](0x2)+_0x107cdb(0x35b)+_0x431adf['confidence'][_0x107cdb(0x2db)](0x2)+')';process[_0x107cdb(0x331)][_0x107cdb(0x2e5)]('\x20\x20'+_0xab1e9e+':\x20'+_0x200b1e+'\x0a');}}function Dn(_0x393107){const _0x81c19c=_0x2282d3;Z(_0x393107),_0x393107[_0x81c19c(0x2ca)][_0x81c19c(0x238)]((_0x2e938e,_0x3f1f18)=>{const _0x2ea154=_0x81c19c;process[_0x2ea154(0x331)][_0x2ea154(0x2e5)]('\x20\x20'+(_0x3f1f18+0x1)+'.\x20'+_0x2e938e['id']+'\x20\x20'+_0x2e938e[_0x2ea154(0x29f)][_0x2ea154(0x2db)](0x3)+_0x2ea154(0x288)+_0x2e938e['index']+')\x0a');});}function Un(_0x22ae88){const _0x3fad24=_0x2282d3;Z(_0x22ae88),process[_0x3fad24(0x331)][_0x3fad24(0x2e5)](_0x3fad24(0x1d5)+_0x22ae88['rubric_version']+'\x0a');for(let _0x3767a0 of _0x22ae88[_0x3fad24(0x2ca)])process['stdout']['write']('\x20\x20'+_0x3767a0['id']+':\x20'+_0x3767a0[_0x3fad24(0x1c3)]+'\x20(confidence\x20'+_0x3767a0[_0x3fad24(0x184)][_0x3fad24(0x2db)](0x2)+')\x0a');}async function Nn(_0x415555){const _0x513bc7=_0x2282d3;let _0x816a8a=_0x415555[_0x513bc7(0x2d0)][_0x513bc7(0x31d)]();_0x816a8a||(console[_0x513bc7(0x22e)](_0x513bc7(0x2a0)),process[_0x513bc7(0x2b9)](0x2));let {client:_0x200b48}=await x(_0x415555);try{let _0x40c221=_0x816a8a==='-'?{'data':await Rn(process['stdin'])}:_0x816a8a;m(_0x415555,await _0x4562f8(_0x200b48,_0x40c221,void 0x0),_0x304177=>{const _0x1c46c3=_0x513bc7;process[_0x1c46c3(0x331)]['write'](_0x304177[_0x1c46c3(0x317)]+'\x0a');});}catch(_0x169682){if(_0x1cd269(_0x169682)&&(console[_0x513bc7(0x22e)](_0x169682[_0x513bc7(0x224)]),process[_0x513bc7(0x2b9)](_0x169682['status']===void 0x0?0x2:0x1)),typeof _0x169682?.[_0x513bc7(0x262)]!=_0x513bc7(0x319))throw _0x169682;console[_0x513bc7(0x22e)](_0x513bc7(0x240)+_0x816a8a+'\x20('+_0x169682[_0x513bc7(0x224)]+').'),process[_0x513bc7(0x2b9)](0x2);}}async function Pn(_0x10f752){const _0x32efe8=_0x2282d3;let [_0x4e1f2f,_0x575679,..._0x4c9a55]=_0x10f752[_0x32efe8(0x1dc)];(!_0x4e1f2f||_0x4c9a55['length']>0x0||!_0x10f752['projectId'])&&(console[_0x32efe8(0x22e)](_0x32efe8(0x334)),process[_0x32efe8(0x2b9)](0x2));let _0x49273e;try{_0x49273e=await _0x44dc35({'projectId':_0x10f752[_0x32efe8(0x17c)],'type':_0x4e1f2f,..._0x575679?{'documentId':_0x575679}:{},..._0x10f752[_0x32efe8(0x1d6)]?{'workingDirectory':_0x10f752[_0x32efe8(0x1d6)]}:{}});}catch(_0x489593){console[_0x32efe8(0x22e)](_0x32efe8(0x1c0)+(_0x489593 instanceof Error?_0x489593[_0x32efe8(0x224)]:String(_0x489593))),process[_0x32efe8(0x2b9)](0x1);}m(_0x10f752,_0x49273e,_0x4bd9b9=>{const _0x17d1a3=_0x32efe8;process[_0x17d1a3(0x331)][_0x17d1a3(0x2e5)](_0x4bd9b9[_0x17d1a3(0x224)]+'\x0a');});}var he=_0x2282d3(0x320),ye=_0x2282d3(0x29d);async function _n(_0x3d227d){const _0x372dcf=_0x2282d3;let [_0x2535f5='',..._0x172b25]=_0x3d227d[_0x372dcf(0x1dc)];if(_0x2535f5===_0x372dcf(0x34b)){(_0x172b25[_0x372dcf(0x1a9)]>0x0||!_0x3d227d[_0x372dcf(0x17c)]||!_0x3d227d[_0x372dcf(0x1c2)]||!_0x3d227d[_0x372dcf(0x1b1)])&&(console[_0x372dcf(0x22e)](he),process[_0x372dcf(0x2b9)](0x2));let _0x268054=await we(_0x372dcf(0x34b),()=>_0xeac7f6({'projectId':_0x3d227d[_0x372dcf(0x17c)],'remote':_0x3d227d[_0x372dcf(0x1c2)],'mapName':_0x3d227d['mapName'],..._0x3d227d[_0x372dcf(0x1d6)]?{'workingDirectory':_0x3d227d[_0x372dcf(0x1d6)]}:{}}));m(_0x3d227d,_0x268054,_0x33cb5a=>{const _0x5f5869=_0x372dcf;process['stdout']['write']('Shared\x20the\x20Map\x20of\x20Work\x20of\x20'+_0x3d227d[_0x5f5869(0x17c)]+_0x5f5869(0x31a)+_0x33cb5a['remote']+_0x5f5869(0x247)+_0x33cb5a[_0x5f5869(0x1b1)]+_0x5f5869(0x2b7));});return;}if(_0x2535f5==='save-version'){let _0x3c9f14=_0x172b25[_0x372dcf(0x2c2)]('\x20')[_0x372dcf(0x31d)]();(!_0x3c9f14||!_0x3d227d[_0x372dcf(0x17c)])&&(console['error'](ye),process[_0x372dcf(0x2b9)](0x2));let _0x3c04e0=await we(_0x372dcf(0x1f2),()=>_0x1f415b({'projectId':_0x3d227d['projectId'],'message':_0x3c9f14,..._0x3d227d['workingDirectory']?{'workingDirectory':_0x3d227d[_0x372dcf(0x1d6)]}:{}}));m(_0x3d227d,_0x3c04e0,_0x4d0d75=>{const _0x5c9d78=_0x372dcf;process[_0x5c9d78(0x331)]['write']('Saved\x20version\x20'+_0x4d0d75[_0x5c9d78(0x1d7)]+'\x20of\x20the\x20Map\x20of\x20Work\x20of\x20'+_0x3d227d[_0x5c9d78(0x17c)]+':\x20'+_0x4d0d75[_0x5c9d78(0x224)]+'\x0a');});return;}console[_0x372dcf(0x22e)](he+'\x0a'+ye),process[_0x372dcf(0x2b9)](0x2);}async function we(_0xb26c96,_0x2f9154){const _0x4713f1=_0x2282d3;try{return await _0x2f9154();}catch(_0x32235e){let _0x11c748=_0x32235e?.[_0x4713f1(0x347)],_0x5d429b=Array[_0x4713f1(0x339)](_0x11c748)&&_0x11c748[_0x4713f1(0x1a9)]>0x0?'\x20('+_0x11c748[_0x4713f1(0x2c2)](',\x20')+')':'';console['error'](_0x4713f1(0x1cd)+_0xb26c96+':\x20'+(_0x32235e instanceof Error?_0x32235e['message']:String(_0x32235e))+_0x5d429b),process[_0x4713f1(0x2b9)](0x1);}}async function Rn(_0x2f2848){const _0xb873e3=_0x2282d3;let _0x330227=[];for await(let _0x25dbf3 of _0x2f2848)_0x330227[_0xb873e3(0x37c)](Buffer[_0xb873e3(0x34d)](_0x25dbf3));return Buffer[_0xb873e3(0x18f)](_0x330227);}var ke=[_0x2282d3(0x200),_0x2282d3(0x187),_0x2282d3(0x253),_0x2282d3(0x2e1),_0x2282d3(0x318),_0x2282d3(0x24c),_0x2282d3(0x208),_0x2282d3(0x306),_0x2282d3(0x1c5),'delete'],be={'list':_0x2282d3(0x370),'pending':_0x2282d3(0x29c),'show':_0x2282d3(0x1c6),'create':_0x2282d3(0x2c5),'claim':_0x2282d3(0x177),'complete':_0x2282d3(0x24f),'accept':'delegations\x20accept\x20<delegation-id>','dismiss':_0x2282d3(0x175),'cancel':'delegations\x20cancel\x20<delegation-id>','delete':_0x2282d3(0x30d)};async function On(_0x379237){const _0x159342=_0x2282d3;let [_0x27dc99='',_0x2ff644='',..._0x426471]=_0x379237[_0x159342(0x1dc)];ke[_0x159342(0x1b7)](_0x27dc99)||(console[_0x159342(0x22e)]((_0x27dc99?'Unknown\x20delegations\x20action:\x20'+_0x27dc99+'.\x20':'')+_0x159342(0x356)+ke[_0x159342(0x2c2)](_0x159342(0x1d1))+'.'),process['exit'](0x2));let _0x2cea49=_0x27dc99;_0x2cea49!=='create'&&(_0x379237[_0x159342(0x196)]!==void 0x0||_0x379237['contextSummary']!==void 0x0||_0x379237[_0x159342(0x2a6)]!==void 0x0)&&(console[_0x159342(0x22e)]('--to,\x20--summary\x20and\x20--session\x20apply\x20to\x20`delegate-cli\x20delegations\x20create`\x20only.'),process['exit'](0x2));let _0x3663db=(_0x2cea49===_0x159342(0x2e1)?_0x379237[_0x159342(0x1dc)]['slice'](0x1):_0x426471)[_0x159342(0x2c2)]('\x20')['trim'](),_0x3e5137=_0x2cea49===_0x159342(0x2e1)||_0x2cea49===_0x159342(0x24c);(_0x2cea49!==_0x159342(0x2e1)&&!_0x2ff644||(_0x3e5137?!_0x3663db:_0x3663db)||_0x2cea49===_0x159342(0x2e1)&&!_0x379237[_0x159342(0x2a6)])&&(console['error'](_0x159342(0x1ab)+be[_0x2cea49]),process[_0x159342(0x2b9)](0x2));let _0x119eb0=_0x3e5137&&_0x3663db==='-'?(await J('-',process[_0x159342(0x362)]))[_0x159342(0x31d)]():_0x3663db;_0x3e5137&&!_0x119eb0&&(console[_0x159342(0x22e)](_0x159342(0x1ab)+be[_0x2cea49]+'\x20(stdin\x20was\x20empty)'),process[_0x159342(0x2b9)](0x2));let {client:_0xce93b2}=await x(_0x379237);try{await Ln(_0x379237,_0xce93b2,_0x2cea49,_0x2ff644,_0x119eb0);}catch(_0x182a59){if(!_0x322b6a(_0x182a59))throw _0x182a59;console[_0x159342(0x22e)](_0x182a59[_0x159342(0x224)]),process[_0x159342(0x2b9)](0x1);}}async function Ln(_0x5c9a07,_0x5d0000,_0x10c4c1,_0x3e036d,_0x56bd15){const _0x2401e2=_0x2282d3;switch(_0x10c4c1){case _0x2401e2(0x200):m(_0x5c9a07,await _0x239a1e(_0x5d0000,_0x3e036d),Cn);return;case'pending':m(_0x5c9a07,await _0x99b7e4(_0x5d0000,_0x3e036d),_0x36d2fc=>{const _0x249a0d=_0x2401e2;_0x36d2fc['delegation']&&process['stdout'][_0x249a0d(0x2e5)]('Claimed\x20from\x20delegation\x20'+_0x36d2fc[_0x249a0d(0x375)]['id']+'\x20('+_0x36d2fc['delegation'][_0x249a0d(0x248)]+_0x249a0d(0x213)),_0x36d2fc['pendingResults'][_0x249a0d(0x1a9)]===0x0&&process[_0x249a0d(0x297)]['write']('No\x20answers\x20awaiting\x20acceptance.\x0a');for(let _0x37b7cd of _0x36d2fc[_0x249a0d(0x1c8)])process[_0x249a0d(0x331)][_0x249a0d(0x2e5)]('\x0a'+_0x37b7cd['id']+_0x249a0d(0x35a)+(_0x37b7cd[_0x249a0d(0x28e)]??'a\x20colleague')+'\x20\x20'+(_0x37b7cd[_0x249a0d(0x269)]??'')+'\x0a'+(_0x37b7cd['result']?.['content']??'')+'\x0a');_0x36d2fc[_0x249a0d(0x1c8)][_0x249a0d(0x1a9)]>0x0&&process['stderr']['write'](_0x249a0d(0x221));});return;case _0x2401e2(0x253):m(_0x5c9a07,await _0x333b31(_0x5d0000,_0x3e036d),ve);return;case _0x2401e2(0x2e1):{let _0x100b66=await _0x560dcf(_0x5d0000,{'sessionId':_0x5c9a07['sessionId'],'task':_0x56bd15,..._0x5c9a07[_0x2401e2(0x28b)]!==void 0x0&&{'contextSummary':_0x5c9a07['contextSummary']},..._0x5c9a07[_0x2401e2(0x196)]!==void 0x0&&{'recipient':_0x5c9a07[_0x2401e2(0x196)]}});m(_0x5c9a07,_0x100b66,_0x49c69a=>{const _0x4f215c=_0x2401e2;_0x49c69a['assignedUser']?process[_0x4f215c(0x331)]['write'](_0x4f215c(0x33a)+_0x49c69a[_0x4f215c(0x326)]+_0x4f215c(0x31a)+_0x49c69a[_0x4f215c(0x1b4)][_0x4f215c(0x28f)]+'\x20<'+_0x49c69a[_0x4f215c(0x1b4)][_0x4f215c(0x25a)]+'>.\x0a'):process[_0x4f215c(0x331)]['write'](_0x4f215c(0x2a3)+_0x49c69a['delegationId']+_0x4f215c(0x2d1)+_0x49c69a[_0x4f215c(0x223)]+'\x0a');});return;}case _0x2401e2(0x318):{let _0x4a81d7=await _0x365694(_0x5d0000,_0x3e036d);m(_0x5c9a07,_0x4a81d7,_0x1b59ff=>{const _0x10f3b5=_0x2401e2;ve(_0x1b59ff),process[_0x10f3b5(0x331)][_0x10f3b5(0x2e5)](_0x10f3b5(0x1f3)+_0x1b59ff['sessionId']+'\x0a'),process[_0x10f3b5(0x297)][_0x10f3b5(0x2e5)](_0x10f3b5(0x2ab)+_0x1b59ff[_0x10f3b5(0x2a6)]+'\x20\x22<prompt>\x22\x0aAnswer\x20with:\x20delegate-cli\x20delegations\x20complete\x20'+_0x1b59ff[_0x10f3b5(0x326)]+_0x10f3b5(0x1e8));});return;}case _0x2401e2(0x24c):{let {alreadyCompleted:_0x466474}=await _0x5d14d6(_0x5d0000,_0x3e036d,{'content':_0x56bd15});m(_0x5c9a07,{'delegationId':_0x3e036d,'alreadyCompleted':_0x466474},_0x770cc0=>{const _0x194c94=_0x2401e2;process[_0x194c94(0x331)][_0x194c94(0x2e5)]((_0x770cc0[_0x194c94(0x252)]?_0x194c94(0x2f2):_0x194c94(0x340))+'\x20delegation\x20'+_0x770cc0['delegationId']+'.\x0a');});return;}case _0x2401e2(0x208):{let _0x1faecd=await _0x33fffc(_0x5d0000,_0x3e036d);m(_0x5c9a07,{'delegationId':_0x3e036d,..._0x1faecd},_0x2a9e46=>{const _0x184500=_0x2401e2;process[_0x184500(0x331)][_0x184500(0x2e5)]((_0x2a9e46[_0x184500(0x1ea)]?_0x184500(0x2a1):_0x184500(0x165))+'\x20delegation\x20'+_0x2a9e46[_0x184500(0x326)]+'.\x0a');});return;}default:{let _0x1dfdc7={'dismiss':_0xdf45da,'cancel':_0x530249,'delete':_0x3ca8d0}[_0x10c4c1];await _0x1dfdc7(_0x5d0000,_0x3e036d);let _0x27e593={'dismiss':'dismissed','cancel':_0x2401e2(0x2cf),'delete':_0x2401e2(0x30f)}[_0x10c4c1];m(_0x5c9a07,{'delegationId':_0x3e036d,[_0x27e593]:!0x0},()=>{const _0x136007=_0x2401e2;process[_0x136007(0x331)]['write'](''+_0x27e593[0x0]['toUpperCase']()+_0x27e593[_0x136007(0x2d4)](0x1)+_0x136007(0x16e)+_0x3e036d+'.\x0a');});}}}function Cn(_0x11279a){const _0x579f81=_0x2282d3;if(_0x11279a[_0x579f81(0x1a9)]===0x0){process[_0x579f81(0x297)][_0x579f81(0x2e5)](_0x579f81(0x27b));return;}process[_0x579f81(0x331)][_0x579f81(0x2e5)]('ID'[_0x579f81(0x321)](0x24)+'\x20\x20'+'STATUS'[_0x579f81(0x321)](0x9)+'\x20\x20'+_0x579f81(0x371)[_0x579f81(0x321)](0x18)+_0x579f81(0x289));for(let _0x569421 of _0x11279a)process[_0x579f81(0x331)][_0x579f81(0x2e5)](_0x569421['id']['padEnd'](0x24)+'\x20\x20'+_0x569421[_0x579f81(0x248)][_0x579f81(0x321)](0x9)+'\x20\x20'+(_0x569421[_0x579f81(0x28e)]??'-')['padEnd'](0x18)+'\x20\x20'+(_0x569421[_0x579f81(0x269)]??'')+'\x0a');}function ve(_0x5c71d6){const _0x5103a4=_0x2282d3;process[_0x5103a4(0x331)][_0x5103a4(0x2e5)]('From\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x5c71d6[_0x5103a4(0x1ff)]??'-')+'\x0a'),_0x5c71d6[_0x5103a4(0x2a9)]&&process[_0x5103a4(0x331)]['write'](_0x5103a4(0x1f3)+_0x5c71d6['sourceTitle']+'\x0a'),process[_0x5103a4(0x331)][_0x5103a4(0x2e5)]('Task\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x5c71d6['task']??'-')+'\x0a'),_0x5c71d6['contextSummary']&&process[_0x5103a4(0x331)][_0x5103a4(0x2e5)]('\x0a'+_0x5c71d6[_0x5103a4(0x28b)]+'\x0a\x0a');}async function jn(_0x9cabc8){const _0x47eda4=_0x2282d3;_0x9cabc8[_0x47eda4(0x2d0)][_0x47eda4(0x31d)]()||(console[_0x47eda4(0x22e)]('Usage:\x20delegate-cli\x20org-users\x20<name\x20or\x20email\x20prefix>'),process[_0x47eda4(0x2b9)](0x2));let {client:_0x56b2c5}=await x(_0x9cabc8),_0x51dbe9;try{_0x51dbe9=await _0x3b9920(_0x56b2c5,_0x9cabc8[_0x47eda4(0x2d0)]);}catch(_0x191eec){if(!_0x322b6a(_0x191eec))throw _0x191eec;console['error'](_0x191eec[_0x47eda4(0x224)]),process[_0x47eda4(0x2b9)](0x1);}m(_0x9cabc8,_0x51dbe9,_0x10082a=>{const _0xcc8657=_0x47eda4;_0x10082a[_0xcc8657(0x1a9)]===0x0&&process['stderr']['write'](_0xcc8657(0x2f8)+_0x9cabc8[_0xcc8657(0x2d0)][_0xcc8657(0x31d)]()+'\x22.\x0a');for(let _0x5336f0 of _0x10082a)process['stdout'][_0xcc8657(0x2e5)](_0x5336f0[_0xcc8657(0x25a)][_0xcc8657(0x321)](0x20)+'\x20\x20'+_0x5336f0[_0xcc8657(0x28f)]+'\x0a');});}async function Mn(_0x4aafae){const _0x2a1969=_0x2282d3;_0x4aafae[_0x2a1969(0x380)]===_0x2a1969(0x2ac)&&(console[_0x2a1969(0x22e)](_0x2a1969(0x206)),process[_0x2a1969(0x2b9)](0x2));let _0x4865cc=G(_0x4c8f20()),_0x32ea40=_0x4aafae[_0x2a1969(0x2d3)];if(_0x4aafae['env']){let _0x45c896=_0x4aafae[_0x2a1969(0x380)];await _0x2d8730({'env':_0x45c896,'tenant':_0x4aafae[_0x2a1969(0x1b2)]??q(_0x4865cc,_0x1c0786[_0x45c896]),'skipEnvCheck':_0x32ea40});return;}let _0x1272c9=_0x4aafae[_0x2a1969(0x2e3)]??Pe();if(_0x1272c9){await _0x2d8730({'baseUrl':_0x1272c9,'tenant':_0x4aafae[_0x2a1969(0x1b2)]??q(_0x4865cc,_0x1272c9),'skipEnvCheck':_0x32ea40});return;}if(_0x4865cc?.[_0x2a1969(0x260)]){await _0x2d8730({'baseUrl':_0x4865cc['baseUrl'],'tenant':_0x4aafae[_0x2a1969(0x1b2)]??_0x4865cc[_0x2a1969(0x1f4)],'skipEnvCheck':_0x32ea40});return;}console['error'](_0x2a1969(0x2b3)),process[_0x2a1969(0x2b9)](0x2);}function q(_0x317369,_0x533a32){const _0x182644=_0x2282d3;return _0x317369?.[_0x182644(0x260)]&&Fn(_0x317369['baseUrl'],_0x533a32)?_0x317369['tenantName']:void 0x0;}function Fn(_0x150212,_0x3fb848){const _0xf1d49d=_0x2282d3;try{return new URL(_0x150212)[_0xf1d49d(0x293)]===new URL(_0x3fb848)[_0xf1d49d(0x293)];}catch{return!0x1;}}async function Bn(_0x2cf6ef){const _0x3c554d=_0x2282d3;z()&&(console[_0x3c554d(0x22e)](_0x3c554d(0x2e6)),process[_0x3c554d(0x2b9)](0x2));let _0x2953b1=await _0x5a99f2();if(_0x2953b1||(console[_0x3c554d(0x22e)](Hn()),process[_0x3c554d(0x2b9)](0x2)),_0x2cf6ef[_0x3c554d(0x31d)]()){let _0x12e261=await _0x1ed84e(_0x2953b1,_0x2cf6ef);_0x3f45cc(_0x12e261)||(console[_0x3c554d(0x22e)](_0x3c554d(0x31f)+_0x4c8f20()+_0x3c554d(0x1a1)+_0x2953b1[_0x3c554d(0x1f4)]+'.'),process['exit'](0x1)),console[_0x3c554d(0x322)]('Tenant:\x20'+_0x12e261['tenantName']+'\x20('+_0x12e261[_0x3c554d(0x245)]+_0x3c554d(0x16c)+_0x4c8f20());return;}Jn(await _0x31718c(_0x2953b1),_0x2953b1);}function Hn(){const _0x487a49=_0x2282d3;if(_0x3553b5['existsSync'](_0x4c8f20()))return'The\x20saved\x20CLI\x20login\x20could\x20not\x20be\x20refreshed.\x20Run\x20`delegate-cli\x20login`\x20again.';let _0x11551f=Y();return G(_0x11551f)?'No\x20CLI\x20login\x20to\x20switch:\x20the\x20CLI\x20is\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20'+_0x11551f+_0x487a49(0x364):_0x487a49(0x37d);}function Jn(_0x17ebca,_0x1352f5){const _0x463cfd=_0x2282d3;let _0x42eabc=_0x17ebca[_0x463cfd(0x2f6)](_0x19ce6a=>_0x19ce6a['id']===_0x1352f5[_0x463cfd(0x245)]?'*\x20'+_0x19ce6a[_0x463cfd(0x1a5)]+_0x463cfd(0x194):'\x20\x20'+_0x19ce6a[_0x463cfd(0x1a5)]);process[_0x463cfd(0x331)][_0x463cfd(0x2e5)](_0x463cfd(0x239)+(_0x1352f5['orgLogicalName']??_0x1352f5[_0x463cfd(0x2f3)])+':\x0a'+_0x42eabc[_0x463cfd(0x2c2)]('\x0a')+'\x0a'),_0x17ebca['length']>0x1&&process[_0x463cfd(0x331)][_0x463cfd(0x2e5)](_0x463cfd(0x36a));}function Gn(_0x3ceaf8){const _0x3a74b5=_0x2282d3;return _0x3ceaf8?.[_0x3a74b5(0x1db)]?.[_0x3a74b5(0x248)]===0x191||/401/[_0x3a74b5(0x2fc)](String(_0x3ceaf8?.['message']??''));}var w={'lastType':null,'quiet':!0x1},Oe=_0x487882=>{const _0x2bb45b=_0x2282d3;switch(_0x487882[_0x2bb45b(0x23a)]){case'session_start':_0x487882[_0x2bb45b(0x2a6)]&&_0x487882[_0x2bb45b(0x2a6)]!==w['sessionId']&&(process[_0x2bb45b(0x297)][_0x2bb45b(0x2e5)](_0x2bb45b(0x344)+_0x487882[_0x2bb45b(0x2a6)]+_0x2bb45b(0x2c8)+_0x487882['sessionId']+')\x0a'),w['sessionId']=_0x487882[_0x2bb45b(0x2a6)]);break;case _0x2bb45b(0x29e):_0x487882[_0x2bb45b(0x186)]&&_0x487882[_0x2bb45b(0x186)]!==w['turnId']&&(w[_0x2bb45b(0x1a8)]!==null&&process[_0x2bb45b(0x297)]['write']('\x0a'),process[_0x2bb45b(0x297)][_0x2bb45b(0x2e5)](_0x2bb45b(0x352)+_0x487882['turnId']+'\x20(cancel\x20with:\x20delegate-cli\x20sessions\x20cancel\x20'+_0x487882['sessionId']+'\x20--turn\x20'+_0x487882[_0x2bb45b(0x186)]+')\x0a'),w[_0x2bb45b(0x186)]=_0x487882['turnId'],w[_0x2bb45b(0x1a8)]=_0x2bb45b(0x29e));break;case'thinking':_0x487882[_0x2bb45b(0x32c)]&&!w['quiet']&&(w[_0x2bb45b(0x1a8)]!==_0x2bb45b(0x2d2)&&process[_0x2bb45b(0x297)][_0x2bb45b(0x2e5)](_0x2bb45b(0x2be)),process[_0x2bb45b(0x297)][_0x2bb45b(0x2e5)](_0x487882[_0x2bb45b(0x32c)]),w[_0x2bb45b(0x1a8)]=_0x2bb45b(0x2d2));break;case _0x2bb45b(0x29b):w['lastType']!==null&&process[_0x2bb45b(0x297)][_0x2bb45b(0x2e5)]('\x0a'),process[_0x2bb45b(0x297)][_0x2bb45b(0x2e5)](_0x2bb45b(0x1d0)+(_0x487882['toolName']??_0x2bb45b(0x2ba))+'\x0a'),w[_0x2bb45b(0x1a8)]=_0x2bb45b(0x29b);break;case'message':_0x487882[_0x2bb45b(0x32c)]&&(w[_0x2bb45b(0x1a8)]!==_0x2bb45b(0x224)&&w['lastType']!==null&&process[_0x2bb45b(0x331)][_0x2bb45b(0x2e5)]('\x0a'),process[_0x2bb45b(0x331)]['write'](_0x487882['content']),w[_0x2bb45b(0x1a8)]='message');break;case'error':w[_0x2bb45b(0x1a8)]!==null&&process[_0x2bb45b(0x297)][_0x2bb45b(0x2e5)]('\x0a'),process[_0x2bb45b(0x297)][_0x2bb45b(0x2e5)]('✗\x20'+(_0x487882[_0x2bb45b(0x22e)]??_0x2bb45b(0x22e))+'\x0a'),w[_0x2bb45b(0x1a8)]=_0x2bb45b(0x22e);break;case'done':(w[_0x2bb45b(0x1a8)]===_0x2bb45b(0x224)||w[_0x2bb45b(0x1a8)]===_0x2bb45b(0x2d2))&&process['stdout'][_0x2bb45b(0x2e5)]('\x0a'),process[_0x2bb45b(0x297)][_0x2bb45b(0x2e5)](_0x2bb45b(0x2af)),w[_0x2bb45b(0x1a8)]=_0x2bb45b(0x169);break;}};function Se(_0x41afee,_0x5b02f4,_0x10f9c5,_0xe55b34){const _0x55b263=_0x2282d3;let _0x1c0f09=_0x41afee[_0x55b263(0x20d)]||process.env.MODEL;return{'backendUrl':_0x10f9c5,'auth':_0x5b02f4,'enableComputerUse':!_0x41afee[_0x55b263(0x1f9)]&&!_0x41afee['noComputerUse'],'autoSpawnInterop':!_0x41afee[_0x55b263(0x1f9)],'enableConnections':!_0x41afee[_0x55b263(0x285)],'enableSecurity':!_0x41afee[_0x55b263(0x325)],'keepInteropAlive':_0x41afee[_0x55b263(0x233)],..._0xe55b34[_0x55b263(0x254)]?{'enableBackgroundCommands':!0x1}:{},..._0x41afee['noMemory']?{'enableMemory':!0x1}:{},..._0x41afee[_0x55b263(0x24b)]?{'enableTaskAutomation':!0x0}:{},..._0x41afee['preloadSkills']['length']>0x0?{'preloadSkills':_0x41afee[_0x55b263(0x17d)]}:{},..._0x1c0f09?{'model':_0x1c0f09}:{},..._0x41afee[_0x55b263(0x17c)]?{'projectId':_0x41afee[_0x55b263(0x17c)]}:{},..._0x41afee[_0x55b263(0x33d)]?{'vertical':_0x41afee[_0x55b263(0x33d)]}:{},..._0x41afee['workingDirectory']?{'workingDirectory':_0x41afee[_0x55b263(0x1d6)]}:{},..._0x41afee[_0x55b263(0x19c)]?{'bundledSkillsPath':_0x41afee[_0x55b263(0x19c)]}:{},..._0x41afee[_0x55b263(0x2fb)]?{'effort':_0x41afee[_0x55b263(0x2fb)]}:{},..._0x41afee[_0x55b263(0x2a6)]?{'sessionId':_0x41afee['sessionId']}:{},..._0x41afee[_0x55b263(0x199)]?{'verbose':!0x0}:{}};}async function Wn(_0x387654){const _0x5ef5fe=_0x2282d3;let _0x5e4f04=_0x387654[_0x5ef5fe(0x195)]!==_0x5ef5fe(0x317),_0x16d42c=_0x387654[_0x5ef5fe(0x280)]===void 0x0?null:Re(_0x387654[_0x5ef5fe(0x280)],_0x5ef5fe(0x2ea)),_0x534b6b=!_0x5e4f04&&!_0x16d42c&&!_0x387654['print']&&_0x387654[_0x5ef5fe(0x2d0)]!=='-'&&!!process[_0x5ef5fe(0x362)]['isTTY']&&!!process[_0x5ef5fe(0x331)][_0x5ef5fe(0x333)],_0x6b619f=_0x387654[_0x5ef5fe(0x189)]===_0x5ef5fe(0x273)?re(process['stdin'],_0x4ff5e4=>{const _0x563e02=_0x5ef5fe;process[_0x563e02(0x297)][_0x563e02(0x2e5)](_0x4ff5e4['message']+_0x563e02(0x176));}):null,_0x4e8ac5=_0x6b619f?(await _0x6b619f[_0x5ef5fe(0x17b)]())[_0x5ef5fe(0x2f1)]:void 0x0,_0x519237=_0x6b619f?_0x4e8ac5?.[_0x5ef5fe(0x317)]??'':_0x534b6b?_0x387654[_0x5ef5fe(0x2d0)][_0x5ef5fe(0x31d)]():await J(_0x387654[_0x5ef5fe(0x2d0)],process['stdin']);if(!_0x534b6b&&!_0x519237&&(console['error'](_0x5ef5fe(0x36d)),process[_0x5ef5fe(0x2b9)](0x2)),!_0x5e4f04){await Ae(_0x387654,_0x519237,_0x534b6b,null,_0x16d42c,null);return;}let _0x3e7a32=!0x1,_0x4e88e2=_0x5b5146=>{const _0x5e96f2=_0x5ef5fe;_0x3e7a32=!0x0,L(_0x415a0b(_0x5b5146)),(_0x5b5146[_0x5e96f2(0x378)]||_0x5b5146['structuredError'])&&(process[_0x5e96f2(0x20c)]=0x1);},_0x512acb=Date[_0x5ef5fe(0x2ec)]();try{await Ae(_0x387654,_0x519237,!0x1,_0x4e88e2,_0x16d42c,_0x6b619f?{'messages':_0x6b619f,'first':_0x4e8ac5,'close':()=>{const _0x178bf9=_0x5ef5fe;process[_0x178bf9(0x362)]['pause']();}}:null);}catch(_0x20f812){if(_0x3e7a32)throw _0x20f812;process['stderr'][_0x5ef5fe(0x2e5)]((_0x20f812 instanceof Error?_0x20f812['stack']??_0x20f812['message']:String(_0x20f812))+'\x0a'),_0x4e88e2(new _0x2761dd(_0x512acb)['finish']({'endedAtMs':Date[_0x5ef5fe(0x2ec)](),'usage':[],'error':_0x20f812}));}finally{_0x6b619f&&(process[_0x5ef5fe(0x362)][_0x5ef5fe(0x278)](),_0x6b619f[_0x5ef5fe(0x34e)](void 0x0));}}async function Ae(_0x115aef,_0x229cff,_0x3e6015,_0x3fe112,_0x334719,_0x1714e3){const _0x9cad54=_0x2282d3;w={'lastType':null,'quiet':_0x115aef[_0x9cad54(0x1d9)]};let _0x1ee812=new Set(),_0x42e38a,_0x1fd6a0=_0x4a5eb5=>{const _0x2040b2=_0x9cad54;(!_0x3fe112||_0x4a5eb5[_0x2040b2(0x23a)]===_0x2040b2(0x2a4)||_0x4a5eb5[_0x2040b2(0x23a)]===_0x2040b2(0x29e))&&(_0x42e38a??Oe)(_0x4a5eb5);for(let _0xee7adf of _0x1ee812)_0xee7adf(_0x4a5eb5);},_0x31a3d3=await V(),_0x33ca02=new _0x5f2174();_0x33ca02[_0x9cad54(0x2b6)](_0x1fd6a0);let _0x27023f=_0x3fcea2(_0x115aef[_0x9cad54(0x380)],_0x31a3d3,_0x115aef[_0x9cad54(0x33e)]);X(_0x115aef[_0x9cad54(0x380)],_0x115aef[_0x9cad54(0x33e)],_0x27023f);let _0x14fd64={'input':null},_0x2c38a0=_0x3e6015?ne(()=>_0x14fd64[_0x9cad54(0x1e3)],_0x53a2fc=>{const _0x1b8982=_0x9cad54;process[_0x1b8982(0x297)][_0x1b8982(0x2e5)](_0x53a2fc);}):null,_0x309edd=_0x485ffe=>_0x2c38a0?{..._0x485ffe,'askUser':_0x2c38a0}:_0x485ffe,_0x4ecefb=_0x309edd(Se(_0x115aef,_0x31a3d3,_0x27023f,{'oneTurn':!_0x3e6015})),_0x1ad68f=!0x1,_0x36ec2f=!0x1,_0x75a48b,_0x5af08c=()=>_0x75a48b??=_0x33ca02[_0x9cad54(0x1df)](),_0x4335af=()=>{const _0x4bfebd=_0x9cad54;_0x36ec2f&&process[_0x4bfebd(0x2b9)](0x82),_0x36ec2f=!0x0,process[_0x4bfebd(0x297)][_0x4bfebd(0x2e5)](_0x4bfebd(0x265)),_0x1ad68f&&_0x33ca02['cancel']()[_0x4bfebd(0x17e)](_0xcb8ac8=>console[_0x4bfebd(0x22e)](_0xcb8ac8))[_0x4bfebd(0x1b6)](_0x5af08c)['then'](()=>process['exit'](0x82),_0x41ed87=>{const _0x5a5377=_0x4bfebd;console[_0x5a5377(0x22e)](_0x41ed87),process[_0x5a5377(0x2b9)](0x82);});};process['on']('SIGINT',_0x4335af);let _0x19871f=_0x115aef[_0x9cad54(0x2de)],_0x1871f1=async _0x3fefc3=>{const _0x39222f=_0x9cad54;let _0x141511=_0x19871f;_0x19871f=[];let _0x131c9a=()=>_0x33ca02[_0x39222f(0x183)](_0x3fefc3,{'attachments':_0x141511});try{return await _0x131c9a();}catch(_0x13f65c){if(_0x36ec2f||!Gn(_0x13f65c)||!process[_0x39222f(0x362)][_0x39222f(0x333)]||_0x115aef[_0x39222f(0x380)]===_0x39222f(0x2ac)||!(_0x115aef[_0x39222f(0x380)]||_0x31a3d3['baseUrl']))throw _0x13f65c;process[_0x39222f(0x297)][_0x39222f(0x2e5)](_0x39222f(0x377));let _0x2d3f21=_0x33ca02[_0x39222f(0x33b)]()??_0x115aef[_0x39222f(0x2a6)],_0x4d57fe=await _0x2d8730(_0x115aef[_0x39222f(0x380)]?{'env':_0x115aef[_0x39222f(0x380)],'tenant':q(_0x31a3d3,_0x1c0786[_0x115aef[_0x39222f(0x380)]]),'skipEnvCheck':!0x0}:{'baseUrl':_0x31a3d3[_0x39222f(0x260)],'tenant':_0x31a3d3[_0x39222f(0x1f4)],'skipEnvCheck':!0x0}),_0x5a6236={'text':'','failed':!0x1,'sessionId':_0x2d3f21};return _0x36ec2f||(_0x1ad68f=!0x1,await _0x5af08c(),_0x36ec2f)?_0x5a6236:(_0x33ca02=new _0x5f2174(),_0x75a48b=void 0x0,_0x33ca02['onEvent'](_0x1fd6a0),_0x31a3d3=_0x4d57fe,await _0x33ca02[_0x39222f(0x314)]({..._0x309edd(Se(_0x115aef,_0x31a3d3,_0x27023f,{'oneTurn':!_0x3e6015})),..._0x2d3f21?{'sessionId':_0x2d3f21}:{}}),_0x1ad68f=!0x0,_0x36ec2f?_0x5a6236:_0x131c9a());}};try{if(await _0x33ca02[_0x9cad54(0x314)](_0x4ecefb),_0x1ad68f=!0x0,_0x36ec2f)return;if(_0x3e6015)await Qn({'prompt':_0x229cff,'sendMessage':_0x1871f1,'onSigint':_0x4335af,'setAnswerInput':_0xc55a64=>{const _0x543279=_0x9cad54;_0x14fd64[_0x543279(0x1e3)]=_0xc55a64;},'registerEventPrinter':_0x5e02bc=>(_0x42e38a=_0x5e02bc,()=>{_0x42e38a=void 0x0;})});else{if(_0x3fe112||_0x334719){let _0x22d725=_0x115aef[_0x9cad54(0x195)]===_0x9cad54(0x273)?_0x55b9fb=>L(_0x35c196(_0x55b9fb)):()=>{},_0x572f70=_0x1714e3?ie({'input':_0x1714e3,'getAgent':()=>_0x33ca02,'replay':_0x115aef[_0x9cad54(0x26d)],'onEvent':_0xac7d37=>(_0x1ee812[_0x9cad54(0x18c)](_0xac7d37),()=>{const _0x5a1231=_0x9cad54;_0x1ee812[_0x5a1231(0x299)](_0xac7d37);}),'write':L,'isRunStopNotice':_0x5c18ff,'actionableErrorText':_0xd6ed35,'warn':_0x19bb3d=>{const _0x34b3d7=_0x9cad54;process['stderr'][_0x34b3d7(0x2e5)](_0x19bb3d);}}):null,_0xb32282=await _0x395692({'onEvent':_0x306d70=>(_0x1ee812[_0x9cad54(0x18c)](_0x306d70),()=>{const _0x9bea35=_0x9cad54;_0x1ee812[_0x9bea35(0x299)](_0x306d70);}),'sendMessage':async _0x309bc5=>{const _0x5b4ba6=_0x9cad54;try{let _0x457ef4=await _0x1871f1(_0x309bc5);return _0x572f70?await _0x572f70[_0x5b4ba6(0x2ce)](_0x457ef4):_0x457ef4;}finally{_0x572f70?.[_0x5b4ba6(0x1ed)]();}},'getSessionId':()=>_0x33ca02['getSessionId'](),'getTurnUsageHistory':_0x479153=>_0x33ca02[_0x9cad54(0x234)](_0x479153),'complete':_0x3e2869=>_0x33ca02[_0x9cad54(0x24c)](_0x3e2869)},_0x229cff,void 0x0,_0x22d725,_0x334719?{'outputSchema':_0x334719}:void 0x0);_0x3fe112?_0x3fe112(_0xb32282):Kn(_0xb32282);}else await _0x1871f1(_0x229cff);}}catch(_0xc9d8b5){if(!_0x36ec2f)throw _0xc9d8b5;}finally{try{await _0x5af08c();}finally{process[_0x9cad54(0x276)]('SIGINT',_0x4335af),_0x36ec2f&&(process['exitCode']=0x82);}}}function Kn(_0x83296e){const _0x335973=_0x2282d3;_0x83296e['structuredError']?(console[_0x335973(0x22e)](_0x335973(0x374)+_0x83296e[_0x335973(0x35f)][_0x335973(0x224)]),process[_0x335973(0x20c)]=0x1):_0x83296e['isError']?(console[_0x335973(0x22e)](_0x335973(0x21c)+_0x83296e[_0x335973(0x22e)]+').'),process['exitCode']=0x1):process[_0x335973(0x331)][_0x335973(0x2e5)](JSON['stringify'](_0x83296e[_0x335973(0x27a)],null,0x2)+'\x0a');}function qn(_0x2d65ff,_0x12f935){const _0x131dbb=_0x2282d3;let _0x5f5753=process[_0x131dbb(0x331)][_0x131dbb(0x2e5)][_0x131dbb(0x359)](process[_0x131dbb(0x331)]),_0xf2a151=!0x1;return process[_0x131dbb(0x331)][_0x131dbb(0x2e5)]=(..._0x660a42)=>{const _0x5ea0c7=_0x131dbb;if(!_0xf2a151)return _0x5f5753(..._0x660a42);_0x49a65c(_0x12f935,0x0),_0x4b0cf(_0x12f935,0x0);let _0x1e706c=_0x5f5753(..._0x660a42);return _0x2d65ff[_0x5ea0c7(0x2d0)](!0x0),_0x1e706c;},{'show':()=>{const _0x132f50=_0x131dbb;_0xf2a151=!0x0,_0x2d65ff[_0x132f50(0x2d0)]();},'hide':()=>{_0xf2a151=!0x1;},'erase':()=>{_0xf2a151&&(_0x49a65c(_0x12f935,0x0),_0x4b0cf(_0x12f935,0x0)),_0xf2a151=!0x1;},'restore':()=>{const _0xdaf7=_0x131dbb;_0xf2a151=!0x1,process[_0xdaf7(0x331)][_0xdaf7(0x2e5)]=_0x5f5753;}};}async function Qn({prompt:_0x5a56df,sendMessage:_0xcc29f1,onSigint:_0x379fad,setAnswerInput:_0x5431ce,registerEventPrinter:_0x126c9f}){const _0x1c0bdd=_0x2282d3;let _0x371689=_0x52ab8f({'input':process[_0x1c0bdd(0x362)],'output':process['stderr'],'terminal':!0x0,'prompt':_0x1c0bdd(0x1fc)}),_0x9a71de=qn(_0x371689,process[_0x1c0bdd(0x297)]),_0x2e496a=[],_0xa9664d,_0x185876,_0xc951aa,_0x5b80b0=!0x1,_0x4accea=!0x1,_0x5cdb69=!0x1,_0xc63b56=Promise['resolve'](),_0x140203,_0x48514c=_0x126c9f(_0x2f325e=>{const _0x3f8a27=_0x1c0bdd;_0x2f325e['type']===_0x3f8a27(0x2a4)&&(_0x9a71de[_0x3f8a27(0x244)](),_0xc63b56=new Promise(_0x46b1d4=>{_0x140203=_0x46b1d4;})),Oe(_0x2f325e),_0x2f325e[_0x3f8a27(0x23a)]===_0x3f8a27(0x169)&&(_0x140203?.(),_0x140203=void 0x0,!_0x5cdb69&&!_0x5b80b0&&_0x9a71de[_0x3f8a27(0x253)]());}),_0x2b7b25=()=>{const _0x2909c5=_0x1c0bdd;_0x4accea=!0x0,_0x140203?.(),_0x379fad(),_0x371689[_0x2909c5(0x19e)]();};_0x371689['on'](_0x1c0bdd(0x2e0),_0x3c8fa4=>{const _0x40724d=_0x1c0bdd;_0xc951aa?_0xc951aa(_0x3c8fa4):_0xa9664d?_0xa9664d['push'](_0x3c8fa4):_0x185876?_0x185876(_0x3c8fa4):_0x2e496a[_0x40724d(0x37c)](_0x3c8fa4);}),_0x371689[_0x1c0bdd(0x228)](_0x1c0bdd(0x19e),()=>{const _0x246f6d=_0x1c0bdd;_0x5b80b0=!0x0,_0x9a71de[_0x246f6d(0x1be)](),_0xa9664d&&!_0x4accea&&_0x2b7b25(),_0x185876?.(null);});let _0x349e2c=()=>_0x2e496a['length']>0x0?Promise[_0x1c0bdd(0x179)](_0x2e496a[_0x1c0bdd(0x291)]()):_0x5b80b0?Promise[_0x1c0bdd(0x179)](null):new Promise(_0x180e51=>{_0x185876=_0x1236df=>{_0x185876=void 0x0,_0x180e51(_0x1236df);};});_0x5431ce({'readLine':(_0x467cea,_0x1c91b2)=>new Promise((_0x4f28ca,_0x4deda1)=>{const _0x5c64e5=_0x1c0bdd;if(_0x5b80b0&&!_0xa9664d){_0x4f28ca(null);return;}_0xa9664d??=[];let _0x9cf23e=_0xa9664d['shift']();if(_0x9cf23e!==void 0x0){_0x4f28ca(_0x9cf23e);return;}let _0x102ded=()=>{const _0x494d3e=_0xbcf4;_0xc951aa=void 0x0,_0x1c91b2[_0x494d3e(0x302)](_0x494d3e(0x1aa),_0x410113),_0x9a71de['hide'](),_0x371689['setPrompt'](_0x494d3e(0x1fc));},_0x410113=()=>{_0x102ded(),_0x4deda1(new Error('The\x20turn\x20was\x20cancelled.'));};_0x1c91b2['addEventListener'](_0x5c64e5(0x1aa),_0x410113,{'once':!0x0}),!_0x5b80b0&&(_0xc951aa=_0x3d1a10=>{_0x102ded(),_0x4f28ca(_0x3d1a10);},_0x371689['setPrompt'](_0x467cea),_0x9a71de['show']());}),'endQuestions':()=>{const _0x245822=_0x1c0bdd;_0xa9664d&&_0x2e496a[_0x245822(0x37c)](..._0xa9664d),_0xa9664d=void 0x0;}}),_0x371689['on'](_0x1c0bdd(0x1d4),_0x2b7b25),process[_0x1c0bdd(0x297)]['write']('Enter\x20sends\x20a\x20message.\x20/exit\x20or\x20EOF\x20exits;\x20Ctrl+C\x20stops\x20and\x20exits.\x0a');let _0xd6bcf5=async _0x467802=>{_0x5cdb69=!0x0;try{await _0xcc29f1(_0x467802);}finally{_0x5cdb69=!0x1;}};try{if(_0x5a56df&&await _0xd6bcf5(_0x5a56df),_0x4accea)return;!_0x5b80b0&&!_0x140203&&_0x9a71de[_0x1c0bdd(0x253)]();for(let _0x16e486=await _0x349e2c();_0x16e486!==null&&(_0x9a71de[_0x1c0bdd(0x1be)](),!_0x4accea);_0x16e486=await _0x349e2c()){let _0x15d063=_0x16e486['trim']();if(_0x15d063===_0x1c0bdd(0x2bf))break;_0x15d063&&await _0xd6bcf5(_0x15d063),!_0x5b80b0&&!_0x140203&&_0x9a71de[_0x1c0bdd(0x253)]();}for(;!_0x4accea&&_0x140203;)await _0xc63b56;}finally{_0x5431ce(null),_0x48514c(),_0x9a71de[_0x1c0bdd(0x274)](),_0x371689[_0x1c0bdd(0x276)](_0x1c0bdd(0x1d4),_0x2b7b25),_0x371689[_0x1c0bdd(0x19e)]();}}async function Yn(){const _0x952483=_0x2282d3;let _0x30a029=Vt(process[_0x952483(0x26a)][_0x952483(0x2d4)](0x2));if(_0x30a029[_0x952483(0x195)]===_0x952483(0x317)){await Ee(_0x30a029);return;}let _0x1a1cdd=Xt();try{await Ee(_0x30a029);}finally{_0x1a1cdd();}}async function Ee(_0x1c168e){const _0xa4a912=_0x2282d3;if(_0x1c168e[_0xa4a912(0x343)]){Zt();return;}if(_0x1c168e[_0xa4a912(0x1d7)]){console[_0xa4a912(0x322)](en());return;}if(_0x1c168e[_0xa4a912(0x36c)]===_0xa4a912(0x246)){await Mn(_0x1c168e);return;}if(_0x1c168e['subcommand']===_0xa4a912(0x1b2)){await Bn(_0x1c168e[_0xa4a912(0x2d0)]);return;}if(_0x1c168e[_0xa4a912(0x36c)]==='logout'){await on();return;}if(_0x1c168e['subcommand']==='whoami'){await rn(_0x1c168e);return;}if(_0x1c168e[_0xa4a912(0x36c)]===_0xa4a912(0x1ac)){await dn(_0x1c168e);return;}if(_0x1c168e['subcommand']===_0xa4a912(0x1b0)){await wn(_0x1c168e);return;}if(_0x1c168e[_0xa4a912(0x36c)]===_0xa4a912(0x1dd)){await pn(_0x1c168e);return;}if(_0x1c168e['subcommand']==='usage'){await vn(_0x1c168e);return;}if(_0x1c168e[_0xa4a912(0x36c)]===_0xa4a912(0x229)||_0x1c168e[_0xa4a912(0x36c)]==='rerank'||_0x1c168e[_0xa4a912(0x36c)]==='verify'){await xn(_0x1c168e,_0x1c168e[_0xa4a912(0x36c)]);return;}if(_0x1c168e[_0xa4a912(0x36c)]===_0xa4a912(0x24c)){await $n(_0x1c168e);return;}if(_0x1c168e[_0xa4a912(0x36c)]===_0xa4a912(0x26e)){await Nn(_0x1c168e);return;}if(_0x1c168e[_0xa4a912(0x36c)]===_0xa4a912(0x355)){await Pn(_0x1c168e);return;}if(_0x1c168e[_0xa4a912(0x36c)]===_0xa4a912(0x2ff)){await _n(_0x1c168e);return;}if(_0x1c168e[_0xa4a912(0x36c)]===_0xa4a912(0x2ef)){await On(_0x1c168e);return;}if(_0x1c168e[_0xa4a912(0x36c)]==='org-users'){await jn(_0x1c168e);return;}if(_0x1c168e[_0xa4a912(0x36c)]===_0xa4a912(0x1ec)){await _0x28a5df(_0x1c168e[_0xa4a912(0x2d0)],{'runnerUrl':_0x1c168e[_0xa4a912(0x250)],'backendUrl':_0x1c168e['backendUrl'],'interopPath':_0x1c168e[_0xa4a912(0x296)],'workerId':_0x1c168e['workerId']});return;}if(_0x1c168e[_0xa4a912(0x31b)]){await cn();return;}await Wn(_0x1c168e);}var zn=process.env.NODE_ENV===_0x2282d3(0x2fc)||!!process.env.JEST_WORKER_ID;zn||Yn()[_0x2282d3(0x17e)](_0x4c4904=>{const _0x1995b7=_0x2282d3;console[_0x1995b7(0x22e)](_0x4c4904[_0x1995b7(0x373)]||_0x4c4904[_0x1995b7(0x224)]||_0x4c4904),process['exit'](0x1);});export{zt as CARTOGRAPHER_SKILLS,pe as EFFORT_TIERS,tn as IMPLICIT_STDIN_IDLE_MS,Se as buildInitOptions,Yn as main,Vt as parseArgs,en as readCliVersion,J as resolvePrompt,Xt as routeStdoutToStderr,m as writeCommandResult};
2
+ const _0x1a931e=_0x56e5;(function(_0x26501c,_0x2ce1e0){const _0x5ca4f4=_0x56e5,_0x307b49=_0x26501c();while(!![]){try{const _0x41aed7=-parseInt(_0x5ca4f4(0x1d9))/0x1*(-parseInt(_0x5ca4f4(0x321))/0x2)+parseInt(_0x5ca4f4(0x1d6))/0x3*(parseInt(_0x5ca4f4(0x20d))/0x4)+parseInt(_0x5ca4f4(0x204))/0x5*(-parseInt(_0x5ca4f4(0x39c))/0x6)+parseInt(_0x5ca4f4(0x292))/0x7*(parseInt(_0x5ca4f4(0x274))/0x8)+parseInt(_0x5ca4f4(0x3d8))/0x9*(parseInt(_0x5ca4f4(0x2e8))/0xa)+-parseInt(_0x5ca4f4(0x2c0))/0xb*(-parseInt(_0x5ca4f4(0x248))/0xc)+-parseInt(_0x5ca4f4(0x27b))/0xd;if(_0x41aed7===_0x2ce1e0)break;else _0x307b49['push'](_0x307b49['shift']());}catch(_0x2be56a){_0x307b49['push'](_0x307b49['shift']());}}}(_0x1902,0x31d07));const __dirname=import.meta.dirname;import _0x497ddb from'fs';import _0x19280d from'path';import{clearLine as _0x3a74ee,createInterface as _0x4c74db,cursorTo as _0x193188}from'node:readline';import{isOnStepGrid as _0x379a42}from'@uipath/delegate-sdk';var C=_0x1a931e(0x333);function E(_0x40fbd8){const _0x597cc5=_0x1a931e;return _0x40fbd8[_0x597cc5(0x20b)](/\u001b\[[0-?]*[ -/]*[@-~]|\u001b\][^\u0007\u001b]*(\u0007|\u001b\\)?|\u001b./g,'')[_0x597cc5(0x20b)](/[\u0000-\u0008\u000b-\u001f\u007f-\u009f]/g,'');}function ee(_0x11f5e1){const _0x3fe72e=_0x1a931e;return E(_0x11f5e1[_0x3fe72e(0x216)]??(_0x11f5e1[_0x3fe72e(0x3d2)]===C?_0x3fe72e(0x235):_0x11f5e1['id']));}function je(_0x23a159,_0x5aacec,_0x317022){const _0x32fa22=_0x1a931e;let _0x424eea=[''+(_0x317022>0x1?'['+_0x5aacec+'/'+_0x317022+']\x20':'')+E(_0x23a159[_0x32fa22(0x26a)])+(_0x23a159[_0x32fa22(0x209)]?'\x20(optional)':''),E(_0x23a159['question'])];return _0x23a159[_0x32fa22(0x332)]==='text'&&_0x23a159['options'][_0x32fa22(0x276)]((_0x24c894,_0x395854)=>{const _0x7f0e12=_0x32fa22;let _0x20fdf5=_0x24c894['kind']===C?_0x7f0e12(0x3d0):'',_0x1b7804=_0x24c894[_0x7f0e12(0x2cb)]?_0x7f0e12(0x346)+E(_0x24c894['description']):'';_0x424eea[_0x7f0e12(0x3be)]('\x20\x20'+(_0x395854+0x1)+'.\x20'+ee(_0x24c894)+_0x20fdf5+_0x1b7804);}),_0x424eea[_0x32fa22(0x3af)]('\x0a');}function te(_0x16edcf,_0x1e45af){const _0x2b4000=_0x1a931e;let _0x4f0169=_0x16edcf[_0x2b4000(0x368)](/[\s,]+/)['filter'](Boolean);if(_0x4f0169[_0x2b4000(0x27f)]===0x0)return null;let _0x33bccd=_0x4f0169[_0x2b4000(0x2c2)](_0x52e105=>/^\d+$/[_0x2b4000(0x387)](_0x52e105)?Number(_0x52e105):NaN);return _0x33bccd['some'](_0x375927=>!Number[_0x2b4000(0x314)](_0x375927)||_0x375927<0x1||_0x375927>_0x1e45af)?null:[...new Set(_0x33bccd)][_0x2b4000(0x2c2)](_0x278260=>_0x278260-0x1);}function _0x56e5(_0x49ed0d,_0x350d51){_0x49ed0d=_0x49ed0d-0x1c3;const _0x190286=_0x1902();let _0x56e5cc=_0x190286[_0x49ed0d];return _0x56e5cc;}function Me(_0x41d294){const _0xdd1a4f=_0x1a931e;return typeof _0x41d294==_0xdd1a4f(0x1de)&&_0x41d294!==null&&_0xdd1a4f(0x21e)in _0x41d294;}async function j(_0x3daf93,_0x2e0d1b,_0x1dfbb9,_0x42fdff){const _0x3e63da=_0x1a931e;for(;;){let _0xbe6a29=(await _0x3daf93(_0x2e0d1b))[_0x3e63da(0x20a)]();if(_0xbe6a29==='')return;let _0x586822=_0x42fdff(_0xbe6a29);if(!Me(_0x586822))return _0x586822;_0x1dfbb9(_0x586822[_0x3e63da(0x21e)]+'\x0a');}}async function Fe(_0x22e044,_0x25ad68,_0x4d5790){const _0x1cc984=_0x1a931e;if(_0x22e044[_0x1cc984(0x3e9)][_0x1cc984(0x27f)]===0x0||_0x22e044['options'][_0x1cc984(0x3cc)](_0x229fd5=>_0x229fd5[_0x1cc984(0x3d2)]===C)){let _0x523fb3=(await _0x25ad68(_0x1cc984(0x2be)))[_0x1cc984(0x20a)]();return _0x523fb3===''?void 0x0:{'text':_0x523fb3};}let _0x565e55=_0x22e044[_0x1cc984(0x3e9)][_0x1cc984(0x309)](_0x2ad46d=>_0x2ad46d[_0x1cc984(0x3d2)]===C),_0x1d5687=_0x22e044[_0x1cc984(0x26e)]?_0x1cc984(0x28c):_0x1cc984(0x24b)+(_0x565e55>=0x0?_0x1cc984(0x3e6):'')+_0x1cc984(0x1f9),_0x223e39=await j(_0x25ad68,_0x1d5687,_0x4d5790,_0x51b984=>{const _0xae7d64=_0x1cc984;let _0xee1e1=te(_0x51b984,_0x22e044[_0xae7d64(0x3e9)][_0xae7d64(0x27f)]);return _0xee1e1&&(_0x22e044[_0xae7d64(0x26e)]||_0xee1e1['length']===0x1)?_0xee1e1:!_0x22e044[_0xae7d64(0x26e)]&&_0x565e55>=0x0?{'typed':_0x51b984}:{'refused':_0x22e044[_0xae7d64(0x26e)]?'Enter\x20numbers\x20from\x201\x20to\x20'+_0x22e044[_0xae7d64(0x3e9)][_0xae7d64(0x27f)]+'.':'Enter\x20one\x20number\x20from\x201\x20to\x20'+_0x22e044[_0xae7d64(0x3e9)][_0xae7d64(0x27f)]+'.'};});if(_0x223e39===void 0x0)return;if(!Array[_0x1cc984(0x223)](_0x223e39))return{'text':_0x223e39[_0x1cc984(0x25a)]};let _0x354743=_0x223e39[_0x1cc984(0x2c2)](_0x2267ce=>_0x22e044[_0x1cc984(0x3e9)][_0x2267ce]['id']),_0x1bb607=_0x354743[_0x1cc984(0x30c)](C)?await j(_0x25ad68,ee(_0x22e044['options'][_0x565e55])+':\x20',_0x4d5790,_0x4addd1=>_0x4addd1):void 0x0;if(!(_0x354743[_0x1cc984(0x30c)](C)&&_0x1bb607===void 0x0))return _0x22e044[_0x1cc984(0x26e)]?{'optionIds':_0x354743,..._0x1bb607!==void 0x0?{'text':_0x1bb607}:{}}:_0x1bb607!==void 0x0?{'text':_0x1bb607}:{'optionId':_0x354743[0x0]};}async function Be(_0x2fd7c4,_0x246e31,_0x525bab){const _0x4fbba1=_0x1a931e;let _0x1b7de2={};for(let _0x267e01 of _0x2fd7c4[_0x4fbba1(0x222)]){let _0xe8822b=_0x267e01[_0x4fbba1(0x2c4)]??_0x267e01['min'],_0x45d435=_0x267e01['step']??0x1,_0x37aa67=_0x267e01['unit']?'\x20'+E(_0x267e01['unit']):'',_0x2044ff='from\x20'+_0x267e01['min']+_0x4fbba1(0x3e2)+_0x267e01[_0x4fbba1(0x1d4)]+(_0x45d435!==0x1?_0x4fbba1(0x31c)+_0x45d435:''),_0x598511=await j(_0x246e31,E(_0x267e01['label'])+'\x20['+_0x267e01['min']+'-'+_0x267e01[_0x4fbba1(0x1d4)]+_0x37aa67+_0x4fbba1(0x3a1)+_0xe8822b+_0x4fbba1(0x2de),_0x525bab,_0x26571f=>{const _0x7ff0a3=_0x4fbba1;let _0x2e94b8=Number(_0x26571f);return Number[_0x7ff0a3(0x215)](_0x2e94b8)&&_0x2e94b8>=_0x267e01[_0x7ff0a3(0x355)]&&_0x2e94b8<=_0x267e01[_0x7ff0a3(0x1d4)]&&_0x379a42(_0x2e94b8,_0x267e01[_0x7ff0a3(0x355)],_0x45d435)?_0x2e94b8:{'refused':_0x7ff0a3(0x3cf)+_0x2044ff+'.'};});_0x1b7de2[_0x267e01['id']]=_0x598511??_0xe8822b;}return{'values':_0x1b7de2};}async function He(_0x25b426,_0x15a58c,_0x143384){const _0x165dd1=_0x1a931e;_0x143384(_0x25b426[_0x165dd1(0x3b5)][_0x165dd1(0x2c2)]((_0x18b4f4,_0x46b8a6)=>'\x20\x20'+(_0x46b8a6+0x1)+'.\x20'+E(_0x18b4f4[_0x165dd1(0x216)]))['join']('\x0a')+'\x0a');let _0x2b2ef4={};for(let _0x2a3971 of _0x25b426['items']){let _0x137b6f=await j(_0x15a58c,E(_0x2a3971[_0x165dd1(0x216)])+_0x165dd1(0x2ae),_0x143384,_0x598a86=>{const _0xd60a6e=_0x165dd1;let _0x18a6f2=te(_0x598a86,_0x25b426[_0xd60a6e(0x3b5)]['length']);return _0x18a6f2&&_0x18a6f2[_0xd60a6e(0x27f)]===0x1?_0x18a6f2[0x0]:{'refused':_0xd60a6e(0x393)+_0x25b426[_0xd60a6e(0x3b5)][_0xd60a6e(0x27f)]+'.'};});if(_0x137b6f===void 0x0)continue;let _0x5a9bd9=_0x25b426[_0x165dd1(0x3b5)][_0x137b6f],_0xb7574c={};for(let _0x4b845d of _0x5a9bd9['subFields']??[]){let _0x252f5a='\x20\x20'+E(_0x4b845d[_0x165dd1(0x216)])+(_0x4b845d[_0x165dd1(0x209)]?'\x20(optional)':'')+':\x20',_0x1e8794=await j(_0x15a58c,_0x252f5a,_0x143384,_0xe2c5a7=>_0xe2c5a7);for(;_0x1e8794===void 0x0&&!_0x4b845d[_0x165dd1(0x209)];)_0x143384(E(_0x4b845d[_0x165dd1(0x216)])+_0x165dd1(0x23c)),_0x1e8794=await j(_0x15a58c,_0x252f5a,_0x143384,_0x1438a7=>_0x1438a7);_0x1e8794!==void 0x0&&(_0xb7574c[_0x4b845d['id']]=_0x1e8794);}_0x2b2ef4[_0x2a3971['id']]={'bucket':_0x5a9bd9['id'],...Object[_0x165dd1(0x3c7)](_0xb7574c)[_0x165dd1(0x27f)]>0x0?{'subFields':_0xb7574c}:{}};}return Object[_0x165dd1(0x3c7)](_0x2b2ef4)[_0x165dd1(0x27f)]>0x0?{'assignments':_0x2b2ef4}:void 0x0;}async function Je(_0x2432bd,_0x1555ce,_0x3a6799){const _0xa2b629=_0x1a931e;if(_0x2432bd[_0xa2b629(0x332)]===_0xa2b629(0x25c))return Fe(_0x2432bd,_0x1555ce,_0x3a6799);if(_0x2432bd[_0xa2b629(0x332)]===_0xa2b629(0x2fe))return Be(_0x2432bd,_0x1555ce,_0x3a6799);if(_0x2432bd[_0xa2b629(0x332)]===_0xa2b629(0x30d))return He(_0x2432bd,_0x1555ce,_0x3a6799);let _0x271cca=(await _0x1555ce('Your\x20answer,\x20as\x20text\x20(the\x20CLI\x20attaches\x20no\x20files;\x20Enter\x20to\x20skip):\x20'))[_0xa2b629(0x20a)]();return _0x271cca===''?void 0x0:{'text':_0x271cca};}function ne(_0x15ae68,_0x9aaa68){return async _0x4ecf09=>{const _0x84f9f4=_0x56e5;let _0x32216a=_0x15ae68();if(!_0x32216a)throw new Error(_0x84f9f4(0x3a4));let _0x1edb5d=async _0x2b6f21=>{const _0xf389e8=_0x84f9f4;if(_0x4ecf09[_0xf389e8(0x3d6)][_0xf389e8(0x33c)])throw new Error(_0xf389e8(0x357));let _0x1adbde=await _0x32216a[_0xf389e8(0x3e7)](_0x2b6f21,_0x4ecf09[_0xf389e8(0x3d6)]);if(_0x1adbde===null)throw new Error(_0xf389e8(0x2f8));return _0x1adbde;};try{_0x9aaa68('\x0a'+(_0x4ecf09[_0x84f9f4(0x272)]?E(_0x4ecf09[_0x84f9f4(0x272)])+'\x0a':''));let _0x207116={};for(let [_0x4ba32e,_0x42741a]of _0x4ecf09[_0x84f9f4(0x2b3)][_0x84f9f4(0x1f1)]()){_0x9aaa68('\x0a'+je(_0x42741a,_0x4ba32e+0x1,_0x4ecf09[_0x84f9f4(0x2b3)][_0x84f9f4(0x27f)])+'\x0a');let _0x51a597=await Je(_0x42741a,_0x1edb5d,_0x9aaa68);_0x51a597!==void 0x0&&(_0x207116[_0x42741a['id']]=_0x51a597);}return{'answers':_0x207116};}finally{_0x32216a[_0x84f9f4(0x37c)]();}};}import{createInterface as _0x3b5dbd}from'node:readline';var F=[_0x1a931e(0x25c),_0x1a931e(0x2dd)];function se(_0x2e17e8){const _0x39b49d=_0x1a931e;return F[_0x39b49d(0x30c)](_0x2e17e8);}var P=class extends Error{};function We(_0x22f784){const _0x1fb643=_0x1a931e;if(typeof _0x22f784==_0x1fb643(0x1db))return _0x22f784;if(!Array[_0x1fb643(0x223)](_0x22f784))return;let _0x2667d0=[];for(let _0x2e8786 of _0x22f784){if(typeof _0x2e8786!='object'||_0x2e8786===null)return;let {type:_0x366fe3,text:_0x5737df}=_0x2e8786;if(_0x366fe3!==_0x1fb643(0x25c)||typeof _0x5737df!=_0x1fb643(0x1db))return;_0x2667d0[_0x1fb643(0x3be)](_0x5737df);}return _0x2667d0['join']('\x0a');}function Ke(_0x3df881){const _0x146d59=_0x1a931e;if(_0x3df881[_0x146d59(0x20a)]()==='')return null;let _0x24ad2a;try{_0x24ad2a=JSON[_0x146d59(0x30a)](_0x3df881);}catch{throw new P(_0x146d59(0x34c));}if(typeof _0x24ad2a!=_0x146d59(0x1de)||_0x24ad2a===null)throw new P(_0x146d59(0x1f4));let {type:_0x3c9493,message:_0x513e65,uuid:_0x27e44d}=_0x24ad2a;if(_0x3c9493!==_0x146d59(0x35e))throw new P('an\x20input\x20line\x20has\x20type\x20'+JSON[_0x146d59(0x3a8)](_0x3c9493)+_0x146d59(0x1f0));let _0x5d4d19=We(_0x513e65?.['content']);if(_0x5d4d19===void 0x0)throw new P(_0x146d59(0x227));if(_0x5d4d19[_0x146d59(0x20a)]()==='')throw new P('an\x20input\x20line\x20has\x20an\x20empty\x20message');return{'text':_0x5d4d19,'uuid':typeof _0x27e44d==_0x146d59(0x1db)?_0x27e44d:void 0x0};}function oe(_0x39b5b6,_0x44965f){const _0x56b9f5=_0x1a931e;return JSON[_0x56b9f5(0x3a8)]({'type':_0x56b9f5(0x35e),'message':{'role':_0x56b9f5(0x35e),'content':_0x39b5b6[_0x56b9f5(0x25c)]},'session_id':_0x44965f,..._0x39b5b6[_0x56b9f5(0x316)]===void 0x0?{}:{'uuid':_0x39b5b6['uuid']},'isReplay':!0x0})+'\x0a';}async function*re(_0x1533fd,_0x51a918){const _0x318984=_0x1a931e;let _0x4cf765=_0x3b5dbd({'input':_0x1533fd,'crlfDelay':0x1/0x0});try{for await(let _0x2f0264 of _0x4cf765){let _0xc0c570;try{_0xc0c570=Ke(_0x2f0264);}catch(_0x3d5a08){if(!(_0x3d5a08 instanceof P))throw _0x3d5a08;_0x51a918(_0x3d5a08);continue;}_0xc0c570&&(yield _0xc0c570);}}finally{_0x4cf765[_0x318984(0x341)]();}}import{BUSINESS_ANALYSIS_PRELOADED_SKILLS as _0x1f6c2c,DelegateAgent as _0x4d9850,cancelTurn as _0x5e1f1b,InteropProcess as _0x25fba3,complete as _0x2b0bcd,DEFAULT_MODEL as _0x52f024,createBackendClient as _0x46b394,evaluate as _0x3f8a44,isCompletionRequestError as _0x45ffbb,isEvaluationRequestError as _0x3bceba,isTranscriptionError as _0x296370,rerank as _0x2051cf,transcribe as _0x558eb9,exportLivingDocument as _0x2a3beb,saveMapVersion as _0x40d766,shareMap as _0x21b419,verify as _0x28c870,acceptDelegation as _0x58c8b8,cancelDelegation as _0x15930f,claimDelegation as _0x23e02b,completeDelegation as _0x2b00c2,createDelegation as _0x4fa2e3,deleteDelegation as _0x797c3e,dismissDelegation as _0x38b382,getSessionDelegations as _0x26a4a9,isDelegationError as _0x2e7a91,listDelegations as _0x47073d,listOrgUsers as _0x2b3a21,previewDelegation as _0x513e88,TurnResultCollector as _0x1b36e3,agentEventToJsonLine as _0x1b1c5d,describeBaseUrlRejection as _0x7829a2,getActivitySummary as _0x83b930,getAuthFilePath as _0x31cfd8,getByoWarnings as _0x2a84b1,getDailyBreakdown as _0x469891,getLicensingSummary as _0x3253f9,getMonthlySpending as _0x519ef0,isOutputFormat as _0x63d867,isCloudBaseUrl as _0x3c1c00,isSafeProjectFolderSegment as _0xcde0e1,listModels as _0xd43b73,listSessions as _0x216342,getSession as _0x323458,renameSession as _0x322795,deleteSession as _0x4d460a,deleteSessionTaskLog as _0x4ed5bd,forkSession as _0x1ef10d,isBackendRequestError as _0x3109c4,MAX_SESSION_PAGE_SIZE as _0x2dac24,listTenants as _0xa9c55d,loadAndRefreshAuth as _0x4c040d,loadAndRefreshSdkLogin as _0x47f550,parsePlatformBaseUrl as _0x49d416,resolveBackendUrl as _0x2b610e,runHealthCheck as _0x3d8b74,runHostCommand as _0xb2d2c,runLoginFlow as _0x4d58e3,runTurnForResult as _0x50e858,saveAuthData as _0x4231ab,switchTenant as _0x3ace51,toJsonLine as _0x19941c,ENV_TO_CLOUD as _0x1a1318,OUTPUT_FORMATS as _0x549d32,isRunStopNotice as _0x40fba9,extractActionableErrorText as _0x26303b}from'@uipath/delegate-sdk';function ie(_0x21590d){const _0x143912=_0x1a931e;let {input:_0x1107d6,getAgent:_0x25565f,replay:_0x1d64bd,onEvent:_0x20fa73,write:_0x8826f6,warn:_0x52eeb5,isRunStopNotice:_0xca3acc,actionableErrorText:_0x452255}=_0x21590d,_0x1a5b23=0x0,_0x138224=0x0,_0x5ce080=Promise[_0x143912(0x226)](),_0x1e47bb=!0x1,_0x15dd57=()=>{},_0x5c7f88=new Promise(_0x466c20=>{_0x15dd57=_0x466c20;}),_0xb35e5e=[],_0x4b2d7a=_0x20fa73(_0x1bc7d3=>{const _0x2b9c57=_0x143912;_0x1bc7d3[_0x2b9c57(0x332)]===_0x2b9c57(0x273)&&(_0x15dd57(),_0xb35e5e[_0x2b9c57(0x200)]()?.());}),_0x139489=_0x2e70a2=>{const _0x266b24=_0x143912;_0x1d64bd&&_0x8826f6(oe(_0x2e70a2,_0x25565f()[_0x266b24(0x1e7)]()));},_0x308686=(async()=>{const _0x2bf935=_0x143912;await _0x5c7f88;for await(let _0x4eb9d3 of _0x1107d6[_0x2bf935(0x3ea)]){if(_0x1e47bb)return;_0x1a5b23===0x0&&(_0x138224=_0x25565f()[_0x2bf935(0x2c7)]()['length']),_0x1a5b23++;let _0x421ac1=new Promise(_0x1fb128=>{_0xb35e5e['push'](()=>{_0x139489(_0x4eb9d3),_0x1fb128();});}),_0x2dbd5e=()=>{const _0xed1c02=_0x2bf935;_0x1a5b23--,_0xb35e5e[_0xed1c02(0x34a)]();},_0x3652d7=_0x25565f()[_0x2bf935(0x36c)](_0x4eb9d3[_0x2bf935(0x25c)]);_0x5ce080=_0x3652d7[_0x2bf935(0x2fc)](()=>{});try{await _0x3652d7?await Promise[_0x2bf935(0x23a)]([_0x421ac1,_0x25565f()[_0x2bf935(0x254)]()]):(_0x2dbd5e(),_0x52eeb5('A\x20steering\x20message\x20arrived\x20after\x20the\x20turn\x20ended:\x20not\x20read.\x0a'));}catch(_0x12fc02){_0x2dbd5e(),_0x52eeb5('A\x20steering\x20message\x20was\x20not\x20sent:\x20'+(_0x12fc02 instanceof Error?_0x12fc02['message']:String(_0x12fc02))+'\x0a');}}})()[_0x143912(0x2fc)](_0x13251e=>{const _0x169ef7=_0x143912;_0x52eeb5(_0x169ef7(0x2e1)+(_0x13251e instanceof Error?_0x13251e[_0x169ef7(0x3c3)]:String(_0x13251e))+'\x0a');});return{'settle':async _0x2729b2=>{const _0x6641dc=_0x143912;if(await _0x5ce080,_0x1a5b23===0x0)return _0x2729b2;await _0x25565f()['waitForIdle']();for(let _0x24e55d of _0xb35e5e)_0x24e55d();_0xb35e5e=[];let _0x41c66b=_0x25565f()[_0x6641dc(0x2c7)]()['slice'](_0x138224)[_0x6641dc(0x35a)](_0x2a13b8=>_0x2a13b8[_0x6641dc(0x2a8)]===_0x6641dc(0x3c6)||_0xca3acc(_0x2a13b8)||_0x2a13b8[_0x6641dc(0x332)]==='ai'&&_0x2a13b8[_0x6641dc(0x2a8)]!=='agent_thought'&&_0x2a13b8[_0x6641dc(0x2a8)]!==_0x6641dc(0x3a9)&&!!_0x2a13b8['content']);if(!_0x41c66b)return{..._0x2729b2,'failed':!0x0,'text':'The\x20steering\x20message\x20was\x20not\x20answered:\x20its\x20turn\x20did\x20not\x20run\x20or\x20added\x20no\x20reply.'};let _0x535133=_0x41c66b['widget']===_0x6641dc(0x3c6);return typeof _0x41c66b['content']!=_0x6641dc(0x1db)?{..._0x2729b2,'failed':_0x535133}:{..._0x2729b2,'failed':_0x535133,'text':_0x535133?_0x452255(_0x41c66b['content']):_0x41c66b['content']};},'stop':()=>{const _0x23306d=_0x143912;_0x1e47bb=!0x0,_0x4b2d7a(),_0x1107d6[_0x23306d(0x341)]();}};}var Yt=[_0x1a931e(0x38c),_0x1a931e(0x306),'models',_0x1a931e(0x257),_0x1a931e(0x3c5),_0x1a931e(0x2d8),'check',_0x1a931e(0x2b0),_0x1a931e(0x3b8),_0x1a931e(0x3cb),_0x1a931e(0x214),'verify',_0x1a931e(0x379),_0x1a931e(0x344),'export',_0x1a931e(0x394),'delegations',_0x1a931e(0x322)],ue=['',_0x1a931e(0x398),_0x1a931e(0x2d8),_0x1a931e(0x370),_0x1a931e(0x2b0),_0x1a931e(0x3b8),_0x1a931e(0x3cb),_0x1a931e(0x214),_0x1a931e(0x38a),_0x1a931e(0x379),_0x1a931e(0x344),_0x1a931e(0x329),'maps',_0x1a931e(0x2d1),_0x1a931e(0x322)],pe=[_0x1a931e(0x255),_0x1a931e(0x30f),_0x1a931e(0x373),'xhigh',_0x1a931e(0x1d4)],zt=_0x1f6c2c,B=_0x1a931e(0x3e3);function b(_0x23739f,_0x286dc1,_0x210d6d,_0x3e4c27){const _0x53c6fc=_0x1a931e;let _0x3f3f8c=_0x23739f[_0x286dc1];return(!_0x3f3f8c||_0x3f3f8c[_0x53c6fc(0x27f)]>0x1&&_0x3f3f8c[_0x53c6fc(0x2b2)]('-'))&&(console[_0x53c6fc(0x225)](_0x210d6d+'\x20requires\x20'+_0x3e4c27+'.'),process[_0x53c6fc(0x1e1)](0x2)),_0x3f3f8c;}function K(_0x2953d7,_0x592149,_0x99027c,_0x22afdc){const _0x2184b1=_0x1a931e;let _0x15f69e=b(_0x2953d7,_0x592149,_0x99027c,_0x2184b1(0x2fa)),_0x5a8e12=Number(_0x15f69e);return(!/^\d+$/[_0x2184b1(0x387)](_0x15f69e)||_0x5a8e12<0x1||!Number[_0x2184b1(0x32a)](_0x5a8e12)||_0x22afdc!==void 0x0&&_0x5a8e12>_0x22afdc)&&(console[_0x2184b1(0x225)](_0x99027c+_0x2184b1(0x2b1)+(_0x22afdc===void 0x0?_0x2184b1(0x353):_0x2184b1(0x338)+_0x22afdc)+_0x2184b1(0x260)+_0x15f69e+'.'),process[_0x2184b1(0x1e1)](0x2)),_0x5a8e12;}function Vt(_0x3ca50d){const _0x3838a4=_0x1a931e;let _0x4f88e3={'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':_0x3838a4(0x25c),'inputFormat':'text','replayUserMessages':!0x1,'preloadSkills':[],'attachments':[],'skipEnvCheck':!0x1,'includeSubAgents':!0x1,'operands':[],'help':!0x1,'version':!0x1};Yt[_0x3838a4(0x30c)](_0x3ca50d[0x0])&&(_0x4f88e3['subcommand']=_0x3ca50d[0x0],_0x3ca50d=_0x3ca50d[_0x3838a4(0x202)](0x1));let _0x382cb9=[];for(let _0x3a56f6=0x0;_0x3a56f6<_0x3ca50d[_0x3838a4(0x27f)];_0x3a56f6++){let _0x1d27ed=_0x3ca50d[_0x3a56f6];switch(_0x1d27ed){case _0x3838a4(0x32d):case'-p':_0x4f88e3[_0x3838a4(0x21f)]=!0x0;break;case _0x3838a4(0x2b9):_0x4f88e3[_0x3838a4(0x35f)]=!0x0;break;case _0x3838a4(0x356):_0x4f88e3[_0x3838a4(0x2bc)]=!0x0;break;case _0x3838a4(0x2f4):_0x4f88e3[_0x3838a4(0x266)]=!0x0;break;case _0x3838a4(0x38d):_0x4f88e3[_0x3838a4(0x36f)]=!0x0;break;case _0x3838a4(0x388):_0x4f88e3['cartographer']=!0x0,_0x4f88e3['noComputerUse']=!0x0,_0x4f88e3['preloadSkills']['push'](...zt);break;case'--no-connections':_0x4f88e3['noConnections']=!0x0;break;case _0x3838a4(0x378):_0x4f88e3[_0x3838a4(0x2bd)]=!0x0;break;case'--no-memory':_0x4f88e3[_0x3838a4(0x2b8)]=!0x0;break;case _0x3838a4(0x36d):_0x4f88e3['taskAutomation']=!0x0;break;case _0x3838a4(0x1c8):case'-q':_0x4f88e3[_0x3838a4(0x231)]=!0x0;break;case _0x3838a4(0x203):_0x4f88e3[_0x3838a4(0x3d4)]=!0x0;break;case _0x3838a4(0x26d):_0x4f88e3['backendUrl']=_0x3ca50d[++_0x3a56f6];break;case'--model':_0x4f88e3['model']=_0x3ca50d[++_0x3a56f6];break;case _0x3838a4(0x296):_0x4f88e3['runnerUrl']=_0x3ca50d[++_0x3a56f6];break;case _0x3838a4(0x3dc):_0x4f88e3[_0x3838a4(0x263)]=_0x3ca50d[++_0x3a56f6];break;case _0x3838a4(0x283):_0x4f88e3[_0x3838a4(0x3e4)]=_0x3ca50d[++_0x3a56f6];break;case'--preload-skill':_0x4f88e3['preloadSkills']['push'](b(_0x3ca50d,++_0x3a56f6,_0x1d27ed,_0x3838a4(0x342)));break;case _0x3838a4(0x31f):{let _0x2375d0=b(_0x3ca50d,++_0x3a56f6,_0x1d27ed,'a\x20project\x20id');_0xcde0e1(_0x2375d0)||(console[_0x3838a4(0x225)](_0x3838a4(0x2dc)+_0x2375d0+'\x22.\x20Use\x20a\x20single\x20folder-safe\x20segment\x20such\x20as\x20invoice-approval\x20(letters,\x20digits,\x20spaces,\x20\x22_\x22,\x20\x22-\x22,\x20\x22.\x22,\x20parentheses;\x20at\x20most\x2064\x20characters;\x20not\x20starting\x20with\x20\x22.\x22\x20or\x20ending\x20with\x20\x22.\x22\x20or\x20a\x20space).'),process[_0x3838a4(0x1e1)](0x2)),_0x4f88e3[_0x3838a4(0x26f)]=_0x2375d0;break;}case _0x3838a4(0x228):_0x4f88e3[_0x3838a4(0x2f5)]=b(_0x3ca50d,++_0x3a56f6,_0x1d27ed,_0x3838a4(0x337));break;case'--output-format':{let _0xa004f8=b(_0x3ca50d,++_0x3a56f6,_0x1d27ed,_0x3838a4(0x265)+_0x549d32[_0x3838a4(0x3af)](_0x3838a4(0x39f))+')');_0x63d867(_0xa004f8)||(console['error']('Invalid\x20--output-format:\x20'+_0xa004f8+'.\x20Use\x20'+_0x549d32['join'](_0x3838a4(0x39f))+'.'),process[_0x3838a4(0x1e1)](0x2)),_0x4f88e3[_0x3838a4(0x1c6)]=_0xa004f8;break;}case'--input-format':{let _0x55bfd7=b(_0x3ca50d,++_0x3a56f6,_0x1d27ed,'a\x20format\x20('+F[_0x3838a4(0x3af)](_0x3838a4(0x39f))+')');se(_0x55bfd7)||(console[_0x3838a4(0x225)]('Invalid\x20--input-format:\x20'+_0x55bfd7+_0x3838a4(0x36a)+F[_0x3838a4(0x3af)](_0x3838a4(0x39f))+'.'),process[_0x3838a4(0x1e1)](0x2)),_0x4f88e3['inputFormat']=_0x55bfd7;break;}case'--replay-user-messages':_0x4f88e3[_0x3838a4(0x34b)]=!0x0;break;case _0x3838a4(0x298):_0x4f88e3['sessionId']=b(_0x3ca50d,++_0x3a56f6,_0x1d27ed,_0x3838a4(0x212));break;case _0x3838a4(0x288):_0x4f88e3['page']=K(_0x3ca50d,++_0x3a56f6,_0x1d27ed);break;case'--limit':_0x4f88e3[_0x3838a4(0x1ca)]=K(_0x3ca50d,++_0x3a56f6,_0x1d27ed,_0x2dac24);break;case _0x3838a4(0x389):_0x4f88e3[_0x3838a4(0x367)]=!0x0;break;case'--json-schema':_0x4f88e3['jsonSchemaPath']=b(_0x3ca50d,++_0x3a56f6,_0x1d27ed,_0x3838a4(0x26b));break;case _0x3838a4(0x37a):{let _0x3dd5c9=_0x19280d[_0x3838a4(0x226)](process['cwd'](),b(_0x3ca50d,++_0x3a56f6,_0x1d27ed,_0x3838a4(0x38f)));_0x497ddb[_0x3838a4(0x295)](_0x3dd5c9)||(console['error'](_0x3838a4(0x27c)+_0x3dd5c9),process[_0x3838a4(0x1e1)](0x2)),_0x4f88e3[_0x3838a4(0x37e)]['push'](_0x3dd5c9);break;}case _0x3838a4(0x1cb):_0x4f88e3[_0x3838a4(0x2b6)]=b(_0x3ca50d,++_0x3a56f6,_0x1d27ed,_0x3838a4(0x293));break;case _0x3838a4(0x2ef):_0x4f88e3[_0x3838a4(0x34e)]=b(_0x3ca50d,++_0x3a56f6,_0x1d27ed,_0x3838a4(0x275));break;case _0x3838a4(0x20c):_0x4f88e3[_0x3838a4(0x232)]=b(_0x3ca50d,++_0x3a56f6,_0x1d27ed,_0x3838a4(0x2d4));break;case _0x3838a4(0x31e):_0x4f88e3['remote']=b(_0x3ca50d,++_0x3a56f6,_0x1d27ed,_0x3838a4(0x2c8));break;case'--map-name':_0x4f88e3['mapName']=b(_0x3ca50d,++_0x3a56f6,_0x1d27ed,_0x3838a4(0x325));break;case _0x3838a4(0x244):_0x4f88e3[_0x3838a4(0x303)]=K(_0x3ca50d,++_0x3a56f6,_0x1d27ed,0x16d);break;case _0x3838a4(0x230):_0x4f88e3[_0x3838a4(0x238)]=_0x19280d[_0x3838a4(0x226)](process['cwd'](),b(_0x3ca50d,++_0x3a56f6,_0x1d27ed,_0x3838a4(0x3c8)));break;case _0x3838a4(0x345):_0x4f88e3[_0x3838a4(0x362)]=_0x19280d[_0x3838a4(0x226)](process['cwd'](),b(_0x3ca50d,++_0x3a56f6,_0x1d27ed,'a\x20directory\x20path'));break;case _0x3838a4(0x242):{let _0x598fb2=b(_0x3ca50d,++_0x3a56f6,_0x1d27ed,_0x3838a4(0x2d7));pe[_0x3838a4(0x30c)](_0x598fb2)||(console['error'](_0x3838a4(0x21d)+_0x598fb2+_0x3838a4(0x36a)+pe[_0x3838a4(0x3af)]('\x20|\x20')+'.'),process['exit'](0x2)),_0x4f88e3[_0x3838a4(0x27a)]=_0x598fb2;break;}case'--tenant':{let _0x153a4a=_0x3ca50d[++_0x3a56f6];(!_0x153a4a||_0x153a4a[_0x3838a4(0x2b2)]('--'))&&(console['error'](_0x3838a4(0x22e)),process['exit'](0x2)),_0x4f88e3['tenant']=_0x153a4a;break;}case _0x3838a4(0x3ec):{let _0xbd1ea1=_0x3ca50d[++_0x3a56f6];[_0x3838a4(0x1eb),_0x3838a4(0x1ed),_0x3838a4(0x313),_0x3838a4(0x1ea)][_0x3838a4(0x30c)](_0xbd1ea1)||(console[_0x3838a4(0x225)](_0x3838a4(0x36e)+_0xbd1ea1+_0x3838a4(0x376)),process['exit'](0x2)),_0x4f88e3[_0x3838a4(0x317)]=_0xbd1ea1;break;}case _0x3838a4(0x285):case _0x3838a4(0x1fd):{let _0x19cc0e=b(_0x3ca50d,++_0x3a56f6,_0x1d27ed,_0x3838a4(0x240)),_0x27796e=_0x49d416(_0x19cc0e);if(_0x27796e['ok']===!0x1){console[_0x3838a4(0x225)](_0x7829a2(_0x19cc0e,_0x27796e[_0x3838a4(0x320)])),process[_0x3838a4(0x1e1)](0x2);break;}_0x4f88e3[_0x3838a4(0x2c6)]=_0x27796e[_0x3838a4(0x2ee)];break;}case _0x3838a4(0x3d1):_0x4f88e3[_0x3838a4(0x253)]=!0x0;break;case'-h':case'--help':_0x4f88e3['help']=!0x0;break;case'-v':case _0x3838a4(0x1d2):_0x4f88e3['version']=!0x0;break;default:_0x1d27ed['startsWith']('--')&&(console[_0x3838a4(0x225)]('Unknown\x20flag:\x20'+_0x1d27ed),process[_0x3838a4(0x1e1)](0x2)),_0x382cb9[_0x3838a4(0x3be)](_0x1d27ed);}}return _0x4f88e3[_0x3838a4(0x306)]!==void 0x0&&_0x4f88e3[_0x3838a4(0x279)]!==_0x3838a4(0x38c)&&(console['error']('--tenant\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Switch\x20tenants\x20with:\x20delegate-cli\x20tenant\x20<name>'),process[_0x3838a4(0x1e1)](0x2)),_0x4f88e3[_0x3838a4(0x2c6)]!==void 0x0&&_0x4f88e3[_0x3838a4(0x317)]!==void 0x0&&(console[_0x3838a4(0x225)](_0x3838a4(0x1fe)),process['exit'](0x2)),_0x4f88e3[_0x3838a4(0x2c6)]!==void 0x0&&_0x4f88e3[_0x3838a4(0x279)]!==_0x3838a4(0x38c)&&(console[_0x3838a4(0x225)](_0x3838a4(0x289)),process[_0x3838a4(0x1e1)](0x2)),_0x4f88e3[_0x3838a4(0x303)]!==void 0x0&&_0x4f88e3[_0x3838a4(0x279)]!=='usage'&&(console['error']('--days\x20applies\x20to\x20`delegate-cli\x20usage\x20activity|daily`\x20only.'),process[_0x3838a4(0x1e1)](0x2)),_0x4f88e3['jsonSchemaPath']!==void 0x0&&(_0x4f88e3[_0x3838a4(0x279)]!=='complete'&&_0x4f88e3[_0x3838a4(0x279)]!==''||_0x4f88e3[_0x3838a4(0x2bc)])&&(console[_0x3838a4(0x225)]('--json-schema\x20applies\x20to\x20prompts\x20and\x20to\x20`delegate-cli\x20complete`\x20only.'),process[_0x3838a4(0x1e1)](0x2)),_0x4f88e3['attachments'][_0x3838a4(0x27f)]>0x0&&(_0x4f88e3[_0x3838a4(0x279)]!==''||_0x4f88e3[_0x3838a4(0x2bc)])&&(console[_0x3838a4(0x225)](_0x3838a4(0x3ce)),process[_0x3838a4(0x1e1)](0x2)),_0x4f88e3['taskAutomation']&&(_0x4f88e3[_0x3838a4(0x279)]!==''||_0x4f88e3[_0x3838a4(0x2bc)])&&(console[_0x3838a4(0x225)](_0x3838a4(0x1f5)),process[_0x3838a4(0x1e1)](0x2)),_0x4f88e3[_0x3838a4(0x354)]&&(_0x4f88e3[_0x3838a4(0x266)]||_0x4f88e3[_0x3838a4(0x36f)]||_0x4f88e3['vertical']?.[_0x3838a4(0x20a)]()===B)&&(console['error'](_0x3838a4(0x271)),process[_0x3838a4(0x1e1)](0x2)),_0x4f88e3[_0x3838a4(0x3e3)]&&(_0x4f88e3[_0x3838a4(0x2f5)]!==void 0x0&&_0x4f88e3[_0x3838a4(0x2f5)][_0x3838a4(0x20a)]()!==B&&(console[_0x3838a4(0x225)](_0x3838a4(0x340)+B+_0x3838a4(0x360)+_0x4f88e3['vertical']+_0x3838a4(0x207)),process[_0x3838a4(0x1e1)](0x2)),_0x4f88e3[_0x3838a4(0x2f5)]=B),_0x4f88e3['skipEnvCheck']&&_0x4f88e3[_0x3838a4(0x279)]!==_0x3838a4(0x38c)&&(console[_0x3838a4(0x225)](_0x3838a4(0x3b2)),process['exit'](0x2)),_0x4f88e3[_0x3838a4(0x1c6)]!==_0x3838a4(0x25c)&&!ue[_0x3838a4(0x30c)](_0x4f88e3[_0x3838a4(0x279)])&&(console[_0x3838a4(0x225)](_0x3838a4(0x326)+_0x4f88e3[_0x3838a4(0x1c6)]+_0x3838a4(0x286)+ue['filter'](Boolean)[_0x3838a4(0x3af)](',\x20')+'.'),process[_0x3838a4(0x1e1)](0x2)),(_0x4f88e3['inputFormat']!==_0x3838a4(0x25c)||_0x4f88e3[_0x3838a4(0x34b)])&&_0x4f88e3['subcommand']!==''&&(console['error'](_0x3838a4(0x3e1)),process[_0x3838a4(0x1e1)](0x2)),_0x4f88e3['replayUserMessages']&&_0x4f88e3[_0x3838a4(0x217)]!==_0x3838a4(0x2dd)&&(console[_0x3838a4(0x225)](_0x3838a4(0x3a2)),process['exit'](0x2)),_0x4f88e3['inputFormat']===_0x3838a4(0x2dd)&&_0x4f88e3['outputFormat']!==_0x3838a4(0x2dd)&&(console[_0x3838a4(0x225)](_0x3838a4(0x21c)),process[_0x3838a4(0x1e1)](0x2)),(_0x4f88e3[_0x3838a4(0x3a5)]!==void 0x0||_0x4f88e3['limit']!==void 0x0||_0x4f88e3[_0x3838a4(0x367)])&&_0x4f88e3['subcommand']!==_0x3838a4(0x2b0)&&(console['error'](_0x3838a4(0x363)),process[_0x3838a4(0x1e1)](0x2)),(_0x4f88e3[_0x3838a4(0x34e)]!==void 0x0||_0x4f88e3['contextSummary']!==void 0x0)&&_0x4f88e3[_0x3838a4(0x279)]!=='delegations'&&(console[_0x3838a4(0x225)](_0x3838a4(0x3dd)),process[_0x3838a4(0x1e1)](0x2)),_0x4f88e3[_0x3838a4(0x2b6)]!==void 0x0&&_0x4f88e3[_0x3838a4(0x279)]!=='sessions'&&(console[_0x3838a4(0x225)](_0x3838a4(0x29e)),process[_0x3838a4(0x1e1)](0x2)),(_0x4f88e3[_0x3838a4(0x264)]!==void 0x0||_0x4f88e3['mapName']!==void 0x0)&&(_0x4f88e3[_0x3838a4(0x279)]!==_0x3838a4(0x394)||_0x382cb9[0x0]!=='share')&&(console['error'](_0x3838a4(0x2cd)),process[_0x3838a4(0x1e1)](0x2)),_0x4f88e3[_0x3838a4(0x1cd)]=[...new Set(_0x4f88e3[_0x3838a4(0x1cd)])],_0x4f88e3[_0x3838a4(0x1c9)]=_0x382cb9,_0x4f88e3[_0x3838a4(0x249)]=_0x382cb9[_0x3838a4(0x3af)]('\x20'),_0x4f88e3[_0x3838a4(0x217)]===_0x3838a4(0x2dd)&&_0x4f88e3[_0x3838a4(0x249)]!==''&&(console[_0x3838a4(0x225)]('--input-format\x20stream-json\x20reads\x20the\x20prompt\x20from\x20stdin:\x20pass\x20no\x20prompt\x20argument.'),process['exit'](0x2)),_0x4f88e3;}var L=_0x3bfb96=>{const _0x1592d2=_0x1a931e;process[_0x1592d2(0x251)][_0x1592d2(0x384)](_0x3bfb96);};function Xt(){const _0x4dd074=_0x1a931e;let _0x3f622b=process[_0x4dd074(0x251)][_0x4dd074(0x384)],_0x25e327=_0x3f622b[_0x4dd074(0x361)](process['stdout']),_0x1420aa=L;return L=_0x4c47f7=>{_0x25e327(_0x4c47f7);},process[_0x4dd074(0x251)][_0x4dd074(0x384)]=(..._0x21f677)=>process['stderr'][_0x4dd074(0x384)](..._0x21f677),()=>{const _0x22aa41=_0x4dd074;process[_0x22aa41(0x251)][_0x22aa41(0x384)]=_0x3f622b,L=_0x1420aa;};}function m(_0x1c02de,_0x167dee,_0x51b721){const _0x50ea28=_0x1a931e;if(_0x1c02de[_0x50ea28(0x1c6)]===_0x50ea28(0x25c)){_0x51b721(_0x167dee);return;}L(_0x19941c(_0x167dee));}function Zt(){const _0x3b8484=_0x1a931e;let _0x3584eb=_0x3b8484(0x2c9)[_0x3b8484(0x20a)]();console['log'](_0x3584eb);}function en(){const _0x3f6f07=_0x1a931e;try{return JSON[_0x3f6f07(0x30a)](_0x497ddb[_0x3f6f07(0x3ab)](_0x19280d[_0x3f6f07(0x3af)](__dirname,'..','package.json'),_0x3f6f07(0x2a9)))[_0x3f6f07(0x2f7)]||_0x3f6f07(0x24d);}catch{return _0x3f6f07(0x24d);}}var tn=0x7d0;async function me(_0x482171,_0x107b72){const _0x29bf36=_0x1a931e;let _0x20c249=_0x107b72?[_0x107b72]:[];for await(let _0x5280cb of _0x482171)_0x20c249[_0x29bf36(0x3be)](Buffer[_0x29bf36(0x3c9)](_0x5280cb));return Buffer['concat'](_0x20c249)[_0x29bf36(0x22a)](_0x29bf36(0x2a9))[_0x29bf36(0x20a)]();}function nn(_0xddf08b,_0x46e48b){return new Promise(_0x4227a9=>{const _0x3ffb4a=_0x56e5;let _0x44fd7=_0x6d617f=>{const _0x1ea0e3=_0x56e5;clearTimeout(_0x2bc62a),_0xddf08b[_0x1ea0e3(0x386)](_0x1ea0e3(0x351),_0x109484),_0xddf08b[_0x1ea0e3(0x386)](_0x1ea0e3(0x24c),_0x376239),_0xddf08b['off'](_0x1ea0e3(0x225),_0x376239),_0xddf08b['pause'](),_0x4227a9(_0x6d617f);},_0x109484=_0x6cb196=>_0x44fd7(Buffer[_0x3ffb4a(0x3c9)](_0x6cb196)),_0x376239=()=>_0x44fd7(null),_0x2bc62a=setTimeout(()=>_0x44fd7(null),_0x46e48b);_0xddf08b['on'](_0x3ffb4a(0x351),_0x109484),_0xddf08b['on'](_0x3ffb4a(0x24c),_0x376239),_0xddf08b['on']('error',_0x376239),_0xddf08b[_0x3ffb4a(0x310)]();});}async function J(_0x16477d,_0x4ce1ce,_0x1f81bd=tn){const _0x1f57c6=_0x1a931e;let _0x5cb3b2=_0x16477d==='-';if(!_0x5cb3b2&&_0x16477d)return _0x16477d;if(!_0x5cb3b2&&_0x4ce1ce[_0x1f57c6(0x343)])return'';if(_0x5cb3b2)return me(_0x4ce1ce,null);let _0x132edf=await nn(_0x4ce1ce,_0x1f81bd);return _0x132edf?me(_0x4ce1ce,_0x132edf):'';}function Y(){const _0x1728af=_0x1a931e;return _0x19280d[_0x1728af(0x3af)](process.env.HOME||process.env.USERPROFILE||'','.aria','auth.json');}function G(_0x938aeb){const _0x4766b5=_0x1a931e;try{let _0x2e2b67=JSON[_0x4766b5(0x30a)](_0x497ddb[_0x4766b5(0x3ab)](_0x938aeb,_0x4766b5(0x2a9)));return!_0x2e2b67[_0x4766b5(0x318)]||!_0x2e2b67['tenantId']||!_0x2e2b67[_0x4766b5(0x24a)]?null:_0x2e2b67;}catch{return null;}}function sn(){let _0x3d9b0f=[{'file':_0x31cfd8(),'isDesktopFallback':!0x1},{'file':Y(),'isDesktopFallback':!0x0}];for(let _0x514822 of _0x3d9b0f){let _0x4facfb=G(_0x514822['file']);if(_0x4facfb)return{..._0x514822,'auth':_0x4facfb};}return null;}async function on(){const _0x10a61d=_0x1a931e;let _0x552b9b=_0x31cfd8();if(!_0x497ddb['existsSync'](_0x552b9b)){let _0x215e62=Y();console[_0x10a61d(0x390)](G(_0x215e62)?_0x10a61d(0x28a)+_0x215e62+_0x10a61d(0x1cc):'No\x20CLI\x20login\x20found\x20—\x20nothing\x20to\x20remove.');return;}_0x497ddb[_0x10a61d(0x2cc)](_0x552b9b),console[_0x10a61d(0x390)](_0x10a61d(0x334)+_0x552b9b);}async function rn(_0xa9d539){const _0x268206=_0x1a931e;let _0x436e35=z(),_0x41e95d,_0x22cc0f;if(_0x436e35)_0x41e95d=_0x436e35,_0x22cc0f=_0x268206(0x31b);else{let _0x36e1aa=sn();if(!_0x36e1aa)throw new Error(Ne);_0x41e95d=_0x36e1aa[_0x268206(0x28e)],_0x22cc0f=_0x36e1aa[_0x268206(0x2c5)]?_0x36e1aa[_0x268206(0x2ac)]+_0x268206(0x243):_0x36e1aa[_0x268206(0x2ac)];}let _0x213cf4={'source':_0x22cc0f,'baseUrl':_0x41e95d[_0x268206(0x2ee)]??null,'deployment':an(_0x41e95d[_0x268206(0x2ee)]),'organization':{'id':_0x41e95d[_0x268206(0x24a)],'slug':_0x41e95d[_0x268206(0x1dd)]??null},'tenant':{'id':_0x41e95d[_0x268206(0x37b)],'name':_0x41e95d[_0x268206(0x3c2)]??null},'tokenExpiresAt':_0x41e95d['expiresAt']?new Date(_0x41e95d[_0x268206(0x392)]*0x3e8)[_0x268206(0x2df)]():null};m(_0xa9d539,_0x213cf4,()=>{const _0x481205=_0x268206;let _0x4eafef=[_0x481205(0x35b)+_0x22cc0f,_0x481205(0x268)+(_0x41e95d[_0x481205(0x2ee)]??_0x481205(0x24d)),_0x481205(0x1e2)+_0x213cf4[_0x481205(0x385)],_0x481205(0x2e9)+(_0x41e95d[_0x481205(0x1dd)]??_0x481205(0x2c3))+'\x20('+_0x41e95d[_0x481205(0x24a)]+')',_0x481205(0x372)+(_0x41e95d['tenantName']??'unknown\x20slug')+'\x20('+_0x41e95d['tenantId']+')'];if(_0x41e95d[_0x481205(0x392)]){let _0x3b3b13=_0x41e95d[_0x481205(0x392)]-Math[_0x481205(0x24f)](Date[_0x481205(0x25d)]()/0x3e8);_0x4eafef[_0x481205(0x3be)](_0x3b3b13>0x0?_0x481205(0x1ff)+_0x213cf4[_0x481205(0x3ad)]+_0x481205(0x399)+Math[_0x481205(0x22d)](_0x3b3b13/0x3c)+'\x20min)':_0x481205(0x25e)+_0x213cf4[_0x481205(0x3ad)]);}process[_0x481205(0x251)][_0x481205(0x384)](_0x4eafef[_0x481205(0x3af)]('\x0a')+'\x0a');});}var Ne=_0x1a931e(0x2f9);function an(_0x536668){const _0x37f3c8=_0x1a931e;return _0x536668?_0x3c1c00(_0x536668)?_0x37f3c8(0x2a5):'self-hosted\x20(Automation\x20Suite\x20/\x20Dedicated)':_0x37f3c8(0x24d);}function z(){let _0x231505=process.env.AUTH_TOKEN_FILE;return(process.env.AUTH_TOKEN||_0x231505)&&process.env.TENANT_ID&&process.env.ORG_ID?{'accessToken':_0x231505?ln(_0x231505):process.env.AUTH_TOKEN,..._0x231505?{'accessTokenFile':_0x231505}:{},'tenantId':process.env.TENANT_ID,'organizationId':process.env.ORG_ID,'orgLogicalName':process.env.ORG_SLUG,'tenantName':process.env.TENANT_SLUG,'baseUrl':Pe()}:null;}function ln(_0x524074){const _0x243e65=_0x1a931e;let _0x1ad321;try{_0x1ad321=_0x497ddb['readFileSync'](_0x524074,'utf-8')['trim']();}catch(_0x1610fa){throw new Error('AUTH_TOKEN_FILE\x20\x27'+_0x524074+_0x243e65(0x29c)+_0x1610fa[_0x243e65(0x3c3)]);}let _0x586df8=_0x1ad321[_0x243e65(0x2b2)](_0x243e65(0x281))?_0x1ad321[_0x243e65(0x202)](0x7)[_0x243e65(0x20a)]():_0x1ad321;if(!_0x586df8)throw new Error(_0x243e65(0x323)+_0x524074+'\x27\x20is\x20empty.');return _0x586df8;}function Pe(){const _0x4eab07=_0x1a931e;let _0x3b9f1f=process.env.UIPATH_BASE_URL;if(!_0x3b9f1f)return;let _0x101ed2=_0x49d416(_0x3b9f1f);if(_0x101ed2['ok']===!0x1)throw new Error(_0x4eab07(0x2d0)+_0x7829a2(_0x3b9f1f,_0x101ed2['rejection']));return _0x101ed2[_0x4eab07(0x2ee)];}async function V(){let _0x331df4=z();if(_0x331df4)return _0x331df4;let _0xdad9c3=await _0x4c040d();if(_0xdad9c3)return _0xdad9c3;throw new Error(Ne);}async function cn(){const _0x415caf=_0x1a931e;await new _0x25fba3()[_0x415caf(0x29a)]({'force':!0x0}),console[_0x415caf(0x390)](_0x415caf(0x366));}function X(_0x21ce7e,_0x34ffb4,_0x1b654b){const _0x4b321d=_0x1a931e;_0x21ce7e?process[_0x4b321d(0x2a6)]['write'](_0x4b321d(0x336)+_0x21ce7e+_0x4b321d(0x39d)+_0x1b654b+'\x0a'):!_0x34ffb4&&!process.env.BACKEND_URL&&process['stderr'][_0x4b321d(0x384)](_0x4b321d(0x3de)+_0x1b654b+'\x0a');}async function x(_0x6e8b07){const _0x25027a=_0x1a931e;let _0x2a4632=await V(),_0x68c4a3=_0x2b610e(_0x6e8b07['env'],_0x2a4632,_0x6e8b07[_0x25027a(0x2e6)]);return X(_0x6e8b07[_0x25027a(0x317)],_0x6e8b07['backendUrl'],_0x68c4a3),{'auth':_0x2a4632,'backendUrl':_0x68c4a3,'client':_0x46b394({'auth':_0x2a4632,'backendUrl':_0x68c4a3})};}async function dn(_0x6f1c38){const _0x15749d=_0x1a931e;let {client:_0x55d670}=await x(_0x6f1c38),[_0x2b8433,_0x55345e]=await Promise[_0x15749d(0x1ef)]([_0xd43b73(_0x55d670),_0x2a84b1(_0x55d670)['catch'](_0x1edc59=>(process[_0x15749d(0x2a6)][_0x15749d(0x384)](_0x15749d(0x3b9)+(_0x1edc59 instanceof Error?_0x1edc59[_0x15749d(0x3c3)]:String(_0x1edc59))+'\x0a'),{}))]),_0x462ff9=_0x2b8433[_0x15749d(0x2c2)](_0x416270=>_0x55345e[_0x416270['id']]?{..._0x416270,'byoWarning':_0x55345e[_0x416270['id']]}:_0x416270);m(_0x6f1c38,_0x462ff9,un);}function un(_0x36ca67){const _0x206571=_0x1a931e;if(_0x36ca67[_0x206571(0x27f)]===0x0){process[_0x206571(0x2a6)][_0x206571(0x384)](_0x206571(0x1e5));return;}process[_0x206571(0x251)][_0x206571(0x384)](_0x206571(0x3ac)+_0x36ca67[_0x206571(0x27f)]+_0x206571(0x307));for(let _0x519c38 of _0x36ca67){let _0x25433a=_0x519c38[_0x206571(0x30b)]&&_0x519c38[_0x206571(0x30b)]!==_0x519c38['id']?'\x20('+_0x519c38[_0x206571(0x30b)]+')':'';process[_0x206571(0x251)][_0x206571(0x384)]('\x20\x20'+_0x519c38['id']+_0x25433a+'\x0a'),_0x519c38[_0x206571(0x2cb)]&&process[_0x206571(0x251)][_0x206571(0x384)](_0x206571(0x23b)+_0x519c38[_0x206571(0x2cb)]+'\x0a'),_0x519c38[_0x206571(0x391)]&&process[_0x206571(0x251)][_0x206571(0x384)](_0x206571(0x23d)+(_0x519c38[_0x206571(0x1d3)]?'\x20('+_0x519c38[_0x206571(0x1d3)]+')':'')+'\x0a'),_0x519c38['byoWarning']&&process[_0x206571(0x251)][_0x206571(0x384)](_0x206571(0x280)+_0x519c38['byoWarning']+'\x0a');}process[_0x206571(0x251)][_0x206571(0x384)]('\x0aUse\x20with:\x20delegate-cli\x20--model\x20<id>\x20\x22<prompt>\x22\x0a');}var fe=[_0x1a931e(0x29f),_0x1a931e(0x2a1),_0x1a931e(0x2bb),_0x1a931e(0x3b0),_0x1a931e(0x304),_0x1a931e(0x331)];async function pn(_0x4e5a2a){const _0x1cae11=_0x1a931e;let [_0x3b0670='',_0x529a74='',..._0x377487]=_0x4e5a2a[_0x1cae11(0x1c9)];if(_0x3b0670&&!fe['includes'](_0x3b0670)&&(console[_0x1cae11(0x225)](_0x1cae11(0x3db)+_0x3b0670+'.\x20Use:\x20'+fe[_0x1cae11(0x3af)]('\x20|\x20')+'.'),process['exit'](0x2)),_0x4e5a2a[_0x1cae11(0x2b6)]!==void 0x0&&_0x3b0670!==_0x1cae11(0x304)&&(console[_0x1cae11(0x225)](_0x1cae11(0x29e)),process[_0x1cae11(0x1e1)](0x2)),_0x3b0670&&_0x3b0670!==_0x1cae11(0x29f)){await mn(_0x4e5a2a,_0x3b0670,_0x529a74,_0x377487[_0x1cae11(0x3af)]('\x20')['trim']());return;}_0x4e5a2a[_0x1cae11(0x1c9)][_0x1cae11(0x27f)]>0x1&&(console[_0x1cae11(0x225)]('Usage:\x20delegate-cli\x20sessions\x20[list]\x20[--page\x20N]\x20[--limit\x20N]\x20[--include-subagents]'),process['exit'](0x2));let {client:_0x2c735d}=await x(_0x4e5a2a),_0xcc9f5a=await _0x216342(_0x2c735d,{'page':_0x4e5a2a[_0x1cae11(0x3a5)],'pageSize':_0x4e5a2a[_0x1cae11(0x1ca)],'includeSubAgents':_0x4e5a2a[_0x1cae11(0x367)]});m(_0x4e5a2a,_0xcc9f5a,yn);}async function mn(_0x310324,_0x32b7f9,_0x2d47b7,_0x482155){const _0x372d4e=_0x1a931e;if((_0x310324['page']!==void 0x0||_0x310324[_0x372d4e(0x1ca)]!==void 0x0||_0x310324[_0x372d4e(0x367)])&&(console['error'](_0x372d4e(0x218)),process[_0x372d4e(0x1e1)](0x2)),_0x32b7f9===_0x372d4e(0x304)){await gn(_0x310324,_0x2d47b7,_0x482155);return;}if(_0x32b7f9===_0x372d4e(0x331)){await hn(_0x310324,_0x2d47b7,_0x482155);return;}(!_0x2d47b7||_0x32b7f9===_0x372d4e(0x2bb)!=!!_0x482155)&&(console['error']('Usage:\x20delegate-cli\x20sessions\x20'+_0x32b7f9+_0x372d4e(0x375)+(_0x32b7f9===_0x372d4e(0x2bb)?_0x372d4e(0x3c0):'')),process[_0x372d4e(0x1e1)](0x2));let {client:_0x5005b3}=await x(_0x310324);try{if(_0x32b7f9===_0x372d4e(0x2a1)){let _0x118d18=await _0x323458(_0x5005b3,_0x2d47b7);_0x118d18||ge(_0x2d47b7),m(_0x310324,_0x118d18,fn);}else{if(_0x32b7f9===_0x372d4e(0x2bb)){let _0xd9d18c=await _0x322795(_0x5005b3,_0x2d47b7,_0x482155);m(_0x310324,_0xd9d18c,_0x47bfea=>{const _0x10898a=_0x372d4e;process[_0x10898a(0x251)]['write'](_0x10898a(0x208)+_0x47bfea['id']+':\x20'+_0x47bfea['title']+'\x0a');});}else await _0x4d460a(_0x5005b3,_0x2d47b7),await _0x4ed5bd(_0x2d47b7,_0x310324[_0x372d4e(0x238)]),m(_0x310324,{'id':_0x2d47b7,'deleted':!0x0},_0x9835ce=>{process['stdout']['write']('Deleted\x20session\x20'+_0x9835ce['id']+'.\x0a');});}}catch(_0x140a63){if(!_0x3109c4(_0x140a63,0x194))throw _0x140a63;ge(_0x2d47b7);}}function ge(_0x28a2a4){const _0x41cb59=_0x1a931e;console[_0x41cb59(0x225)](_0x41cb59(0x291)+_0x28a2a4+_0x41cb59(0x3ca)),process[_0x41cb59(0x1e1)](0x1);}function fn(_0x58f052){const _0x53ab14=_0x1a931e;process[_0x53ab14(0x251)][_0x53ab14(0x384)]('ID\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x58f052['id']+'\x0a'),process['stdout'][_0x53ab14(0x384)](_0x53ab14(0x1da)+_0x58f052[_0x53ab14(0x1fa)]+'\x0a'),process[_0x53ab14(0x251)][_0x53ab14(0x384)](_0x53ab14(0x311)+_0x58f052[_0x53ab14(0x2b7)]+'\x0a'),process[_0x53ab14(0x251)]['write']('Organization\x20\x20'+_0x58f052[_0x53ab14(0x24a)]+'\x0a'),_0x58f052[_0x53ab14(0x2ec)]&&process['stdout']['write'](_0x53ab14(0x3d7)+_0x58f052[_0x53ab14(0x2ec)]+'\x0a');}async function gn(_0x224c29,_0x452874,_0x37795b){const _0x364a95=_0x1a931e;(!_0x452874||_0x37795b||!_0x224c29['turnId'])&&(console[_0x364a95(0x225)](_0x364a95(0x224)),process['exit'](0x2));let {client:_0x1a65b7}=await x(_0x224c29),_0xbe45f6=await _0x5e1f1b(_0x1a65b7,_0x452874,_0x224c29[_0x364a95(0x2b6)]);m(_0x224c29,{'sessionId':_0x452874,'turnId':_0x224c29['turnId'],'cancelled':_0xbe45f6},_0x451136=>{const _0x43f6c0=_0x364a95;_0x451136['cancelled']?process[_0x43f6c0(0x251)][_0x43f6c0(0x384)](_0x43f6c0(0x3a0)+_0x451136['turnId']+_0x43f6c0(0x369)+_0x451136['sessionId']+'.\x0a'):process['stderr'][_0x43f6c0(0x384)](_0x43f6c0(0x1dc)+_0x451136['turnId']+_0x43f6c0(0x2e0)+_0x451136['sessionId']+'.\x0a');}),_0xbe45f6||(process['exitCode']=0x1);}async function hn(_0x1bc2b2,_0x28ee2d,_0x30b075){const _0x421bc6=_0x1a931e;(!_0x28ee2d||/\s/[_0x421bc6(0x387)](_0x30b075))&&(console[_0x421bc6(0x225)](_0x421bc6(0x339)),process[_0x421bc6(0x1e1)](0x2));let {client:_0x261d6f}=await x(_0x1bc2b2),_0x3592ab;try{_0x3592ab=await _0x1ef10d(_0x261d6f,_0x28ee2d,{'atMessageId':_0x30b075||void 0x0});}catch(_0x258436){if(!_0x3109c4(_0x258436,0x194))throw _0x258436;console[_0x421bc6(0x225)](_0x421bc6(0x291)+_0x28ee2d+_0x421bc6(0x2cf)+(_0x30b075?_0x421bc6(0x2a4)+_0x30b075:'')+'.'),process[_0x421bc6(0x1e1)](0x1);}m(_0x1bc2b2,_0x3592ab,_0x1e7a32=>{const _0x513956=_0x421bc6;process[_0x513956(0x251)][_0x513956(0x384)](_0x513956(0x30e)+_0x28ee2d+_0x513956(0x371)+_0x1e7a32['id']+'.\x0a'),process[_0x513956(0x2a6)][_0x513956(0x384)](_0x513956(0x2fb)+_0x1e7a32['id']+_0x513956(0x213));});}function yn({sessions:_0x329547,page:_0x413ca2,isLastPage:_0x1494c6}){const _0x3ef648=_0x1a931e;if(_0x329547[_0x3ef648(0x27f)]===0x0)process[_0x3ef648(0x2a6)][_0x3ef648(0x384)](_0x3ef648(0x1f2)+_0x413ca2+'.\x0a');else{process[_0x3ef648(0x251)]['write']('ID'[_0x3ef648(0x28f)](0x24)+'\x20\x20'+_0x3ef648(0x1c3)[_0x3ef648(0x28f)](0x13)+'\x20\x20TITLE\x0a');for(let _0x1faa60 of _0x329547){let _0x58350f=_0x1faa60[_0x3ef648(0x29b)][_0x3ef648(0x20b)]('T','\x20')[_0x3ef648(0x202)](0x0,0x13),_0x136545=_0x1faa60['parentSessionId']?_0x3ef648(0x3ba)+_0x1faa60[_0x3ef648(0x1c5)]+')':'';process['stdout'][_0x3ef648(0x384)](_0x1faa60['id'][_0x3ef648(0x28f)](0x24)+'\x20\x20'+_0x58350f[_0x3ef648(0x28f)](0x13)+'\x20\x20'+_0x1faa60[_0x3ef648(0x1fa)]+_0x136545+'\x0a');}}_0x1494c6||process[_0x3ef648(0x2a6)]['write']('More:\x20delegate-cli\x20sessions\x20--page\x20'+(_0x413ca2+0x1)+'\x0a');}async function wn(_0x4846cc){const _0x21d633=_0x1a931e;let _0x4ca131=await V(),_0x49eee9=_0x2b610e(_0x4846cc[_0x21d633(0x317)],_0x4ca131,_0x4846cc[_0x21d633(0x2e6)]);X(_0x4846cc['env'],_0x4846cc['backendUrl'],_0x49eee9);let _0x21c728=await _0x3d8b74({'auth':_0x4ca131,'backendUrl':_0x49eee9,'interop':_0x4846cc[_0x21d633(0x266)]?_0x21d633(0x33a):'spawn'});m(_0x4846cc,_0x21c728,({checks:_0x50f902})=>{const _0xb09877=_0x21d633;for(let _0x1bd366 of _0x50f902)process[_0xb09877(0x251)][_0xb09877(0x384)](kn(_0x1bd366)+'\x0a');}),_0x21c728['ok']||process[_0x21d633(0x1e1)](0x1);}function kn(_0x3ec00a){const _0x2d83b6=_0x1a931e;return{'ok':'✓','failed':'✗','skipped':'-'}[_0x3ec00a['status']]+'\x20'+_0x3ec00a[_0x2d83b6(0x30b)][_0x2d83b6(0x28f)](0xa)+_0x3ec00a[_0x2d83b6(0x278)];}var bn=['',_0x1a931e(0x246),_0x1a931e(0x312)];async function vn(_0x125a8a){const _0x1385f3=_0x1a931e;let _0x3efda1=_0x125a8a['prompt'];bn[_0x1385f3(0x30c)](_0x3efda1)||(console[_0x1385f3(0x225)](_0x1385f3(0x219)+_0x125a8a[_0x1385f3(0x249)]+_0x1385f3(0x2f6)),process[_0x1385f3(0x1e1)](0x2)),_0x3efda1===''&&_0x125a8a['days']!==void 0x0&&(console[_0x1385f3(0x225)](_0x1385f3(0x381)),process[_0x1385f3(0x1e1)](0x2)),_0x3efda1!==''&&_0x125a8a[_0x1385f3(0x297)]!==void 0x0&&(console['error']('--session\x20applies\x20to\x20the\x20`delegate-cli\x20usage`\x20summary\x20only.'),process['exit'](0x2));let {client:_0x2e6da9}=await x(_0x125a8a);if(_0x3efda1===_0x1385f3(0x246)){m(_0x125a8a,await _0x83b930(_0x2e6da9,{'days':_0x125a8a[_0x1385f3(0x303)]}),An);return;}if(_0x3efda1===_0x1385f3(0x312)){m(_0x125a8a,await _0x469891(_0x2e6da9,{'days':_0x125a8a['days']}),En);return;}let [_0x11ae56,_0x7a0a15]=await Promise[_0x1385f3(0x1ef)]([_0x3253f9(_0x2e6da9,{'sessionId':_0x125a8a[_0x1385f3(0x297)]}),_0x519ef0(_0x2e6da9)]);m(_0x125a8a,{'licensing':_0x11ae56,'monthlySpending':_0x7a0a15},Sn);}function Sn(_0x57e8cd){const _0x15906e=_0x1a931e;let {licensing:_0xbb164d,monthlySpending:_0x107a4e}=_0x57e8cd,_0x19bd54=[_0xbb164d[_0x15906e(0x234)]?'Licensing:\x20\x20\x20\x20'+_0xbb164d[_0x15906e(0x1c4)][_0x15906e(0x1ec)](0x1)+_0x15906e(0x33e)+(_0xbb164d[_0x15906e(0x23f)]??0x0)+_0x15906e(0x328)+(_0xbb164d[_0x15906e(0x1cf)]>0x0?',\x20'+_0xbb164d[_0x15906e(0x1cf)]+'\x20PU\x20beyond\x20quota':'')+_0x15906e(0x22b)+_0xbb164d['period_end']+')':_0x15906e(0x32e),_0x15906e(0x277)+_0x107a4e['monthly_spend_usd'][_0x15906e(0x1ec)](0x2)+'\x20this\x20month'+(_0x107a4e[_0x15906e(0x234)]&&_0x107a4e['monthly_limit_usd']!==null?_0x15906e(0x1f6)+_0x107a4e['monthly_limit_usd'][_0x15906e(0x1ec)](0x2)+_0x15906e(0x3aa):_0x15906e(0x220))];_0xbb164d[_0x15906e(0x2d2)]!==null&&_0xbb164d[_0x15906e(0x2d2)]!==void 0x0&&_0x19bd54['push'](_0x15906e(0x327)+_0xbb164d[_0x15906e(0x2d2)]+_0x15906e(0x237)),process['stdout'][_0x15906e(0x384)](_0x19bd54['join']('\x0a')+'\x0a');}function An(_0x206276){const _0x475606=_0x1a931e;let _0x4dc5a3=[_0x475606(0x250)+_0x206276[_0x475606(0x39e)]+_0x475606(0x1d8)+_0x206276[_0x475606(0x2ad)]+_0x475606(0x259)+_0x206276[_0x475606(0x27d)]+_0x475606(0x319),_0x475606(0x27e)+_0x206276[_0x475606(0x2c1)][_0x475606(0x1ec)](0x2)+_0x475606(0x3bb)+_0x206276['estimated_cost_usd'][_0x475606(0x1ec)](0x2)+_0x475606(0x3b7)+_0x206276['total_token_units']+_0x475606(0x21a),'Tokens:\x20'+_0x206276['total_prompt_tokens']+_0x475606(0x330)+_0x206276[_0x475606(0x350)]+'\x20completion'];for(let [_0xfe736b,_0x310bd8]of Object['entries'](_0x206276['models_breakdown']))_0x4dc5a3[_0x475606(0x3be)]('\x20\x20'+_0xfe736b+':\x20'+_0x310bd8+'\x20token\x20units');process[_0x475606(0x251)]['write'](_0x4dc5a3[_0x475606(0x3af)]('\x0a')+'\x0a');}function En(_0x4c2829){const _0x7af0c7=_0x1a931e;if(_0x4c2829[_0x7af0c7(0x301)][_0x7af0c7(0x27f)]===0x0){process[_0x7af0c7(0x251)][_0x7af0c7(0x384)](_0x7af0c7(0x258)+_0x4c2829[_0x7af0c7(0x39e)]+_0x7af0c7(0x2b5));return;}let _0x50afa4=[_0x7af0c7(0x28b)];for(let _0x4aa15d of _0x4c2829[_0x7af0c7(0x301)])_0x50afa4[_0x7af0c7(0x3be)](_0x4aa15d['date']+'\x20\x20'+String(_0x4aa15d[_0x7af0c7(0x2a3)])[_0x7af0c7(0x299)](0xb)+'\x20\x20'+String(_0x4aa15d[_0x7af0c7(0x395)])[_0x7af0c7(0x299)](0xd)+'\x20\x20'+String(_0x4aa15d[_0x7af0c7(0x3d5)])[_0x7af0c7(0x299)](0x11));process['stdout']['write'](_0x50afa4[_0x7af0c7(0x3af)]('\x0a')+'\x0a');}async function xn(_0x24f45e,_0x506f6f){const _0x153c1e=_0x1a931e;let _0x1c2118=await In(_0x24f45e['prompt'],_0x506f6f);_0x24f45e[_0x153c1e(0x2ba)]&&(_0x1c2118[_0x153c1e(0x2ba)]=_0x24f45e[_0x153c1e(0x2ba)]);let {client:_0x1e0869}=await x(_0x24f45e);try{_0x506f6f===_0x153c1e(0x3cb)?m(_0x24f45e,await _0x3f8a44(_0x1e0869,_0x1c2118,void 0x0),Tn):_0x506f6f==='rerank'?m(_0x24f45e,await _0x2051cf(_0x1e0869,_0x1c2118,void 0x0),Dn):m(_0x24f45e,await _0x28c870(_0x1e0869,_0x1c2118,void 0x0),Un);}catch(_0x32389b){if(!_0x3bceba(_0x32389b))throw _0x32389b;console[_0x153c1e(0x225)](_0x32389b[_0x153c1e(0x3c3)]),process[_0x153c1e(0x1e1)](0x1);}}async function In(_0x3ca199,_0x47ed30){const _0x23ea4f=_0x1a931e;let _0x5d87f7;try{_0x5d87f7=_0x3ca199&&_0x3ca199!=='-'?_0x497ddb[_0x23ea4f(0x3ab)](_0x19280d['resolve'](_0x3ca199),_0x23ea4f(0x2a9)):await J(_0x3ca199,process[_0x23ea4f(0x2ff)]);}catch(_0x2729ec){console['error'](_0x47ed30+':\x20cannot\x20read\x20the\x20request\x20('+_0x2729ec[_0x23ea4f(0x3c3)]+').'),process[_0x23ea4f(0x1e1)](0x2);}return _0x5d87f7||(console[_0x23ea4f(0x225)](_0x47ed30+'\x20needs\x20a\x20JSON\x20request:\x20delegate-cli\x20'+_0x47ed30+_0x23ea4f(0x2ab)),process['exit'](0x2)),_e(_0x5d87f7,_0x47ed30,'the\x20request');}function _e(_0x977390,_0xd30488,_0x1d3bf2){const _0x29ee35=_0x1a931e;let _0x58a821;try{_0x58a821=JSON[_0x29ee35(0x30a)](_0x977390);}catch(_0x598a0a){console[_0x29ee35(0x225)](_0xd30488+':\x20'+_0x1d3bf2+_0x29ee35(0x397)+_0x598a0a[_0x29ee35(0x3c3)]+').'),process['exit'](0x2);}return(typeof _0x58a821!=_0x29ee35(0x1de)||_0x58a821===null||Array[_0x29ee35(0x223)](_0x58a821))&&(console[_0x29ee35(0x225)](_0xd30488+':\x20'+_0x1d3bf2+'\x20must\x20be\x20a\x20JSON\x20object.'),process[_0x29ee35(0x1e1)](0x2)),_0x58a821;}function Re(_0x4cf888,_0x3d1439){const _0x3490d2=_0x1a931e;let _0x5af1dd;try{_0x5af1dd=_0x497ddb[_0x3490d2(0x3ab)](_0x19280d[_0x3490d2(0x226)](_0x4cf888),'utf-8');}catch(_0x4309fc){console['error'](_0x3d1439+_0x3490d2(0x1d0)+_0x4309fc[_0x3490d2(0x3c3)]+').'),process[_0x3490d2(0x1e1)](0x2);}return _e(_0x5af1dd,_0x3d1439,_0x3490d2(0x305));}async function $n(_0x5d5f18){const _0x44e6f1=_0x1a931e;_0x5d5f18[_0x44e6f1(0x22f)]===void 0x0&&(console[_0x44e6f1(0x225)](_0x44e6f1(0x364)),process[_0x44e6f1(0x1e1)](0x2));let _0x20e6de=Re(_0x5d5f18['jsonSchemaPath'],_0x44e6f1(0x379)),_0x23adcb=(await J(_0x5d5f18[_0x44e6f1(0x249)],process['stdin']))[_0x44e6f1(0x20a)]();_0x23adcb||(console['error'](_0x44e6f1(0x31d)),process['exit'](0x2));let {client:_0x3a7760}=await x(_0x5d5f18);try{let _0x4d2da2=await _0x2b0bcd(_0x3a7760,{'prompt':_0x23adcb,'jsonSchema':_0x20e6de,'model':_0x5d5f18[_0x44e6f1(0x2ba)]||process.env.MODEL||_0x52f024,..._0x5d5f18[_0x44e6f1(0x297)]!==void 0x0&&{'sessionId':_0x5d5f18['sessionId']}},void 0x0);m(_0x5d5f18,_0x4d2da2,_0x492504=>{const _0x35db00=_0x44e6f1;process['stdout'][_0x35db00(0x384)](JSON[_0x35db00(0x3a8)](_0x492504[_0x35db00(0x38e)],null,0x2)+'\x0a');});}catch(_0x3c9c8e){if(!_0x45ffbb(_0x3c9c8e))throw _0x3c9c8e;console[_0x44e6f1(0x225)](_0x3c9c8e[_0x44e6f1(0x3c3)]),process[_0x44e6f1(0x1e1)](0x1);}}function Z(_0xf49730){const _0x557816=_0x1a931e;process['stdout']['write'](_0x557816(0x352)+_0xf49730['model']+'\x20('+_0xf49730[_0x557816(0x229)]+_0x557816(0x26c)+_0xf49730[_0x557816(0x3b8)][_0x557816(0x383)]+_0x557816(0x210));}function Tn(_0x290612){const _0x1733eb=_0x1a931e;Z(_0x290612);for(let _0x431eb9 of Object[_0x1733eb(0x3c7)](_0x290612['answers'])){let _0x29ebb8=_0x290612[_0x1733eb(0x2fd)][_0x431eb9],_0x5720e0=_0x29ebb8[_0x1733eb(0x332)]===_0x1733eb(0x3ae)?'probability\x20'+_0x29ebb8[_0x1733eb(0x3ae)][_0x1733eb(0x1ec)](0x2):_0x29ebb8[_0x1733eb(0x332)]==='choice'?_0x1733eb(0x211)+_0x29ebb8[_0x1733eb(0x3b6)]+_0x1733eb(0x38b)+_0x29ebb8['confidence']['toFixed'](0x2)+')':_0x1733eb(0x3df)+_0x29ebb8['score']['toFixed'](0x2)+'\x20(confidence\x20'+_0x29ebb8[_0x1733eb(0x36b)][_0x1733eb(0x1ec)](0x2)+')';process[_0x1733eb(0x251)]['write']('\x20\x20'+_0x431eb9+':\x20'+_0x5720e0+'\x0a');}}function Dn(_0x4e0375){const _0x548f4a=_0x1a931e;Z(_0x4e0375),_0x4e0375['results'][_0x548f4a(0x276)]((_0x11dee1,_0x5d95b0)=>{const _0xff8008=_0x548f4a;process[_0xff8008(0x251)][_0xff8008(0x384)]('\x20\x20'+(_0x5d95b0+0x1)+'.\x20'+_0x11dee1['id']+'\x20\x20'+_0x11dee1[_0xff8008(0x37d)][_0xff8008(0x1ec)](0x3)+_0xff8008(0x34f)+_0x11dee1[_0xff8008(0x1d5)]+')\x0a');});}function Un(_0x30198a){const _0x1b0015=_0x1a931e;Z(_0x30198a),process[_0x1b0015(0x251)][_0x1b0015(0x384)](_0x1b0015(0x33b)+_0x30198a['rubric_version']+'\x0a');for(let _0x132f0e of _0x30198a[_0x1b0015(0x2a0)])process[_0x1b0015(0x251)]['write']('\x20\x20'+_0x132f0e['id']+':\x20'+_0x132f0e[_0x1b0015(0x382)]+'\x20(confidence\x20'+_0x132f0e[_0x1b0015(0x36b)][_0x1b0015(0x1ec)](0x2)+')\x0a');}async function Nn(_0x2852d3){const _0x493ca8=_0x1a931e;let _0x32a11c=_0x2852d3['prompt']['trim']();_0x32a11c||(console[_0x493ca8(0x225)](_0x493ca8(0x20f)),process[_0x493ca8(0x1e1)](0x2));let {client:_0x18365b}=await x(_0x2852d3);try{let _0x2de034=_0x32a11c==='-'?{'data':await Rn(process[_0x493ca8(0x2ff)])}:_0x32a11c;m(_0x2852d3,await _0x558eb9(_0x18365b,_0x2de034,void 0x0),_0x492bda=>{const _0x49d95a=_0x493ca8;process[_0x49d95a(0x251)][_0x49d95a(0x384)](_0x492bda[_0x49d95a(0x25c)]+'\x0a');});}catch(_0x95a2dd){if(_0x296370(_0x95a2dd)&&(console['error'](_0x95a2dd[_0x493ca8(0x3c3)]),process[_0x493ca8(0x1e1)](_0x95a2dd[_0x493ca8(0x22c)]===void 0x0?0x2:0x1)),typeof _0x95a2dd?.['code']!=_0x493ca8(0x1db))throw _0x95a2dd;console[_0x493ca8(0x225)]('transcribe:\x20cannot\x20read\x20'+_0x32a11c+'\x20('+_0x95a2dd[_0x493ca8(0x3c3)]+').'),process['exit'](0x2);}}async function Pn(_0x3b3050){const _0x282584=_0x1a931e;let [_0x104563,_0x36555f,..._0x434e1f]=_0x3b3050['operands'];(!_0x104563||_0x434e1f[_0x282584(0x27f)]>0x0||!_0x3b3050[_0x282584(0x26f)])&&(console[_0x282584(0x225)]('Usage:\x20delegate-cli\x20export\x20TYPE\x20[DOCUMENT_ID]\x20--project\x20ID\x20[--working-dir\x20PATH]'),process['exit'](0x2));let _0x18cf7c;try{_0x18cf7c=await _0x2a3beb({'projectId':_0x3b3050['projectId'],'type':_0x104563,..._0x36555f?{'documentId':_0x36555f}:{},..._0x3b3050[_0x282584(0x238)]?{'workingDirectory':_0x3b3050[_0x282584(0x238)]}:{}});}catch(_0x2d5700){console['error']('export:\x20'+(_0x2d5700 instanceof Error?_0x2d5700[_0x282584(0x3c3)]:String(_0x2d5700))),process['exit'](0x1);}m(_0x3b3050,_0x18cf7c,_0x100b00=>{const _0x2b2520=_0x282584;process[_0x2b2520(0x251)][_0x2b2520(0x384)](_0x100b00[_0x2b2520(0x3c3)]+'\x0a');});}var he=_0x1a931e(0x3bc),ye=_0x1a931e(0x315);async function _n(_0x34f0a3){const _0x5955e4=_0x1a931e;let [_0x17a488='',..._0xc18a54]=_0x34f0a3[_0x5955e4(0x1c9)];if(_0x17a488===_0x5955e4(0x34d)){(_0xc18a54[_0x5955e4(0x27f)]>0x0||!_0x34f0a3['projectId']||!_0x34f0a3[_0x5955e4(0x264)]||!_0x34f0a3['mapName'])&&(console[_0x5955e4(0x225)](he),process[_0x5955e4(0x1e1)](0x2));let _0x4f2894=await we('share',()=>_0x21b419({'projectId':_0x34f0a3['projectId'],'remote':_0x34f0a3[_0x5955e4(0x264)],'mapName':_0x34f0a3[_0x5955e4(0x396)],..._0x34f0a3[_0x5955e4(0x238)]?{'workingDirectory':_0x34f0a3[_0x5955e4(0x238)]}:{}}));m(_0x34f0a3,_0x4f2894,_0x270dec=>{const _0x4dd513=_0x5955e4;process['stdout'][_0x4dd513(0x384)](_0x4dd513(0x287)+_0x34f0a3[_0x4dd513(0x26f)]+_0x4dd513(0x3e2)+_0x270dec[_0x4dd513(0x264)]+'\x20as\x20\x22'+_0x270dec[_0x4dd513(0x396)]+'\x22.\x0a');});return;}if(_0x17a488===_0x5955e4(0x359)){let _0x1e40ed=_0xc18a54['join']('\x20')[_0x5955e4(0x20a)]();(!_0x1e40ed||!_0x34f0a3[_0x5955e4(0x26f)])&&(console[_0x5955e4(0x225)](ye),process[_0x5955e4(0x1e1)](0x2));let _0x3410c0=await we('save-version',()=>_0x40d766({'projectId':_0x34f0a3['projectId'],'message':_0x1e40ed,..._0x34f0a3[_0x5955e4(0x238)]?{'workingDirectory':_0x34f0a3[_0x5955e4(0x238)]}:{}}));m(_0x34f0a3,_0x3410c0,_0x4c156b=>{const _0x304189=_0x5955e4;process['stdout']['write']('Saved\x20version\x20'+_0x4c156b[_0x304189(0x2f7)]+'\x20of\x20the\x20Map\x20of\x20Work\x20of\x20'+_0x34f0a3[_0x304189(0x26f)]+':\x20'+_0x4c156b[_0x304189(0x3c3)]+'\x0a');});return;}console[_0x5955e4(0x225)](he+'\x0a'+ye),process[_0x5955e4(0x1e1)](0x2);}async function we(_0x4d8f78,_0x536bb3){const _0x28eb29=_0x1a931e;try{return await _0x536bb3();}catch(_0x5412cf){let _0x58327f=_0x5412cf?.[_0x28eb29(0x33f)],_0x2d4d48=Array[_0x28eb29(0x223)](_0x58327f)&&_0x58327f[_0x28eb29(0x27f)]>0x0?'\x20('+_0x58327f[_0x28eb29(0x3af)](',\x20')+')':'';console[_0x28eb29(0x225)]('maps\x20'+_0x4d8f78+':\x20'+(_0x5412cf instanceof Error?_0x5412cf['message']:String(_0x5412cf))+_0x2d4d48),process[_0x28eb29(0x1e1)](0x1);}}async function Rn(_0x5ca7e0){const _0x4be792=_0x1a931e;let _0x389bc4=[];for await(let _0x4e0a80 of _0x5ca7e0)_0x389bc4[_0x4be792(0x3be)](Buffer[_0x4be792(0x3c9)](_0x4e0a80));return Buffer[_0x4be792(0x269)](_0x389bc4);}var ke=['list',_0x1a931e(0x1e3),'show',_0x1a931e(0x252),_0x1a931e(0x28d),_0x1a931e(0x379),_0x1a931e(0x2ea),_0x1a931e(0x2ca),_0x1a931e(0x304),_0x1a931e(0x3b0)],be={'list':'delegations\x20list\x20<backend-project-id>','pending':_0x1a931e(0x358),'show':_0x1a931e(0x236),'create':_0x1a931e(0x3d3),'claim':'delegations\x20claim\x20<delegation-id|delegate://delegation/…>','complete':_0x1a931e(0x221),'accept':_0x1a931e(0x3eb),'dismiss':_0x1a931e(0x1fc),'cancel':_0x1a931e(0x3bd),'delete':_0x1a931e(0x39a)};async function On(_0x5e3a63){const _0x21faf4=_0x1a931e;let [_0x286db0='',_0x1922c2='',..._0x7476d0]=_0x5e3a63['operands'];ke[_0x21faf4(0x30c)](_0x286db0)||(console[_0x21faf4(0x225)]((_0x286db0?'Unknown\x20delegations\x20action:\x20'+_0x286db0+'.\x20':'')+_0x21faf4(0x1c7)+ke[_0x21faf4(0x3af)](_0x21faf4(0x39f))+'.'),process['exit'](0x2));let _0x2d58a4=_0x286db0;_0x2d58a4!=='create'&&(_0x5e3a63[_0x21faf4(0x34e)]!==void 0x0||_0x5e3a63['contextSummary']!==void 0x0||_0x5e3a63[_0x21faf4(0x297)]!==void 0x0)&&(console[_0x21faf4(0x225)](_0x21faf4(0x262)),process[_0x21faf4(0x1e1)](0x2));let _0x119058=(_0x2d58a4===_0x21faf4(0x252)?_0x5e3a63[_0x21faf4(0x1c9)][_0x21faf4(0x202)](0x1):_0x7476d0)[_0x21faf4(0x3af)]('\x20')['trim'](),_0x58ecd9=_0x2d58a4===_0x21faf4(0x252)||_0x2d58a4===_0x21faf4(0x379);(_0x2d58a4!==_0x21faf4(0x252)&&!_0x1922c2||(_0x58ecd9?!_0x119058:_0x119058)||_0x2d58a4==='create'&&!_0x5e3a63[_0x21faf4(0x297)])&&(console[_0x21faf4(0x225)]('Usage:\x20delegate-cli\x20'+be[_0x2d58a4]),process[_0x21faf4(0x1e1)](0x2));let _0x2acc80=_0x58ecd9&&_0x119058==='-'?(await J('-',process[_0x21faf4(0x2ff)]))[_0x21faf4(0x20a)]():_0x119058;_0x58ecd9&&!_0x2acc80&&(console[_0x21faf4(0x225)]('Usage:\x20delegate-cli\x20'+be[_0x2d58a4]+'\x20(stdin\x20was\x20empty)'),process[_0x21faf4(0x1e1)](0x2));let {client:_0x18b3e0}=await x(_0x5e3a63);try{await Ln(_0x5e3a63,_0x18b3e0,_0x2d58a4,_0x1922c2,_0x2acc80);}catch(_0x36d8b8){if(!_0x2e7a91(_0x36d8b8))throw _0x36d8b8;console[_0x21faf4(0x225)](_0x36d8b8[_0x21faf4(0x3c3)]),process[_0x21faf4(0x1e1)](0x1);}}async function Ln(_0x36d768,_0x2eded1,_0x10be96,_0x5194d3,_0x1eb509){const _0xfab6b4=_0x1a931e;switch(_0x10be96){case'list':m(_0x36d768,await _0x47073d(_0x2eded1,_0x5194d3),Cn);return;case _0xfab6b4(0x1e3):m(_0x36d768,await _0x26a4a9(_0x2eded1,_0x5194d3),_0x5c1986=>{const _0x19c2fd=_0xfab6b4;_0x5c1986['delegation']&&process[_0x19c2fd(0x251)][_0x19c2fd(0x384)](_0x19c2fd(0x256)+_0x5c1986[_0x19c2fd(0x32f)]['id']+'\x20('+_0x5c1986[_0x19c2fd(0x32f)]['status']+_0x19c2fd(0x1e4)),_0x5c1986[_0x19c2fd(0x245)][_0x19c2fd(0x27f)]===0x0&&process['stderr']['write'](_0x19c2fd(0x25b));for(let _0x132002 of _0x5c1986['pendingResults'])process[_0x19c2fd(0x251)][_0x19c2fd(0x384)]('\x0a'+_0x132002['id']+'\x20\x20from\x20'+(_0x132002['assignedUserEmail']??_0x19c2fd(0x1d7))+'\x20\x20'+(_0x132002[_0x19c2fd(0x1d1)]??'')+'\x0a'+(_0x132002[_0x19c2fd(0x3b4)]?.[_0x19c2fd(0x23e)]??'')+'\x0a');_0x5c1986['pendingResults'][_0x19c2fd(0x27f)]>0x0&&process[_0x19c2fd(0x2a6)]['write'](_0x19c2fd(0x3e8));});return;case _0xfab6b4(0x2a1):m(_0x36d768,await _0x513e88(_0x2eded1,_0x5194d3),ve);return;case _0xfab6b4(0x252):{let _0x201207=await _0x4fa2e3(_0x2eded1,{'sessionId':_0x36d768[_0xfab6b4(0x297)],'task':_0x1eb509,..._0x36d768[_0xfab6b4(0x232)]!==void 0x0&&{'contextSummary':_0x36d768[_0xfab6b4(0x232)]},..._0x36d768['delegateTo']!==void 0x0&&{'recipient':_0x36d768[_0xfab6b4(0x34e)]}});m(_0x36d768,_0x201207,_0x20736f=>{const _0x59f77c=_0xfab6b4;_0x20736f['assignedUser']?process[_0x59f77c(0x251)]['write'](_0x59f77c(0x2f3)+_0x20736f[_0x59f77c(0x2ec)]+_0x59f77c(0x3e2)+_0x20736f[_0x59f77c(0x270)][_0x59f77c(0x2a7)]+'\x20<'+_0x20736f['assignedUser'][_0x59f77c(0x335)]+'>.\x0a'):process[_0x59f77c(0x251)]['write'](_0x59f77c(0x1f8)+_0x20736f[_0x59f77c(0x2ec)]+'.\x20Share:\x20'+_0x20736f[_0x59f77c(0x24e)]+'\x0a');});return;}case _0xfab6b4(0x28d):{let _0x15d8cc=await _0x23e02b(_0x2eded1,_0x5194d3);m(_0x36d768,_0x15d8cc,_0x3b34cd=>{const _0x423b78=_0xfab6b4;ve(_0x3b34cd),process['stdout'][_0x423b78(0x384)]('Session\x20\x20\x20\x20\x20\x20\x20'+_0x3b34cd['sessionId']+'\x0a'),process[_0x423b78(0x2a6)][_0x423b78(0x384)](_0x423b78(0x2e3)+_0x3b34cd['sessionId']+'\x20\x22<prompt>\x22\x0aAnswer\x20with:\x20delegate-cli\x20delegations\x20complete\x20'+_0x3b34cd[_0x423b78(0x2ec)]+'\x20\x22<answer>\x22\x0a');});return;}case _0xfab6b4(0x379):{let {alreadyCompleted:_0x342eeb}=await _0x2b00c2(_0x2eded1,_0x5194d3,{'content':_0x1eb509});m(_0x36d768,{'delegationId':_0x5194d3,'alreadyCompleted':_0x342eeb},_0x535018=>{const _0x27bfcb=_0xfab6b4;process[_0x27bfcb(0x251)][_0x27bfcb(0x384)]((_0x535018[_0x27bfcb(0x1fb)]?_0x27bfcb(0x2e5):'Answered')+_0x27bfcb(0x3bf)+_0x535018[_0x27bfcb(0x2ec)]+'.\x0a');});return;}case _0xfab6b4(0x2ea):{let _0x4458a5=await _0x58c8b8(_0x2eded1,_0x5194d3);m(_0x36d768,{'delegationId':_0x5194d3,..._0x4458a5},_0x31b71b=>{const _0x12709c=_0xfab6b4;process[_0x12709c(0x251)][_0x12709c(0x384)]((_0x31b71b[_0x12709c(0x35c)]?_0x12709c(0x29d):_0x12709c(0x2f1))+_0x12709c(0x3bf)+_0x31b71b[_0x12709c(0x2ec)]+'.\x0a');});return;}default:{let _0xf5f338={'dismiss':_0x38b382,'cancel':_0x15930f,'delete':_0x797c3e}[_0x10be96];await _0xf5f338(_0x2eded1,_0x5194d3);let _0x43417b={'dismiss':_0xfab6b4(0x206),'cancel':_0xfab6b4(0x2e7),'delete':'deleted'}[_0x10be96];m(_0x36d768,{'delegationId':_0x5194d3,[_0x43417b]:!0x0},()=>{const _0x8ddbba=_0xfab6b4;process[_0x8ddbba(0x251)]['write'](''+_0x43417b[0x0][_0x8ddbba(0x35d)]()+_0x43417b['slice'](0x1)+_0x8ddbba(0x3bf)+_0x5194d3+'.\x0a');});}}}function Cn(_0x578301){const _0x3e69ac=_0x1a931e;if(_0x578301[_0x3e69ac(0x27f)]===0x0){process[_0x3e69ac(0x2a6)][_0x3e69ac(0x384)](_0x3e69ac(0x2eb));return;}process[_0x3e69ac(0x251)][_0x3e69ac(0x384)]('ID'[_0x3e69ac(0x28f)](0x24)+'\x20\x20'+_0x3e69ac(0x3e5)[_0x3e69ac(0x28f)](0x9)+'\x20\x20'+_0x3e69ac(0x374)['padEnd'](0x18)+_0x3e69ac(0x2e2));for(let _0x40c47d of _0x578301)process[_0x3e69ac(0x251)][_0x3e69ac(0x384)](_0x40c47d['id'][_0x3e69ac(0x28f)](0x24)+'\x20\x20'+_0x40c47d['status']['padEnd'](0x9)+'\x20\x20'+(_0x40c47d[_0x3e69ac(0x302)]??'-')[_0x3e69ac(0x28f)](0x18)+'\x20\x20'+(_0x40c47d[_0x3e69ac(0x1d1)]??'')+'\x0a');}function ve(_0x57bb19){const _0xee0397=_0x1a931e;process['stdout'][_0xee0397(0x384)](_0xee0397(0x300)+(_0x57bb19[_0xee0397(0x2d9)]??'-')+'\x0a'),_0x57bb19['sourceTitle']&&process['stdout']['write']('Session\x20\x20\x20\x20\x20\x20\x20'+_0x57bb19[_0xee0397(0x1ce)]+'\x0a'),process[_0xee0397(0x251)][_0xee0397(0x384)](_0xee0397(0x308)+(_0x57bb19[_0xee0397(0x1d1)]??'-')+'\x0a'),_0x57bb19[_0xee0397(0x232)]&&process['stdout']['write']('\x0a'+_0x57bb19[_0xee0397(0x232)]+'\x0a\x0a');}function _0x1902(){const _0x46fbc6=['complete\x20needs\x20a\x20prompt:\x20delegate-cli\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22,\x20or\x20-\x20to\x20read\x20stdin.','--remote','--project','rejection','315292Ltyzql','org-users','AUTH_TOKEN_FILE\x20\x27','\x22.\x0a','a\x20Map\x20name','--output-format\x20','Session:\x20\x20\x20\x20\x20\x20','\x20PU\x20used','export','isSafeInteger','response','No\x20one\x20matches\x20\x22','--print','Licensing:\x20\x20\x20\x20no\x20licensing\x20quota\x20applies','delegation','\x20prompt,\x20','fork','type','userinput','Removed\x20','email','[env=','a\x20vertical\x20id','from\x201\x20to\x20','Usage:\x20delegate-cli\x20sessions\x20fork\x20<id>\x20[<message-id>]','skip','Rubric\x20','aborted','\x20(current)','%\x20of\x20','paths','--cartographer\x20runs\x20the\x20','close','a\x20skill\x20name','isTTY','transcribe','--skills-path','\x20-\x20','Structured\x20output\x20failed:\x20','line',')\x20—\x20saved\x20to\x20','pop','replayUserMessages','an\x20input\x20line\x20is\x20not\x20JSON','share','delegateTo','\x20\x20(input\x20#','total_completion_tokens','data','Model\x20','1\x20or\x20more','taskAutomation','min','--cleanup','The\x20turn\x20was\x20cancelled.','delegations\x20pending\x20<session-id>','save-version','findLast','Source:\x20\x20\x20\x20\x20\x20\x20','alreadyAccepted','toUpperCase','user','keepAlive','\x20vertical,\x20so\x20it\x20cannot\x20run\x20as\x20--vertical\x20','bind','bundledSkillsPath','--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`delegate-cli\x20sessions`\x20only.','complete\x20needs\x20--json-schema\x20<file>:\x20delegate-cli\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22.','tool_call','Interop\x20stopped\x20(if\x20it\x20was\x20running).','includeSubAgents','split','\x20of\x20session\x20','.\x20Use\x20','confidence','steer','--task-automation','Invalid\x20--env:\x20','noComputerUse','check','\x20into\x20','Tenant:\x20\x20\x20\x20\x20\x20\x20','high','ASSIGNEE','\x20<id>','.\x20Use\x20alpha\x20|\x20staging\x20|\x20production\x20|\x20localhost.','initialize','--no-security','complete','--attach','tenantId','endQuestions','score','attachments','No\x20structured\x20output:\x20the\x20turn\x20failed\x20(','Enter\x20sends\x20a\x20message.\x20/exit\x20or\x20EOF\x20exits;\x20Ctrl+C\x20stops\x20and\x20exits.\x0a','--days\x20applies\x20to\x20`delegate-cli\x20usage\x20activity|daily`;\x20the\x20summary\x20covers\x20the\x20current\x20month.','verdict','total_tokens','write','deployment','off','test','--cartographer','--include-subagents','verify','\x20(confidence\x20','login','--no-computer-use','structured','a\x20file\x20path','log','locked','expiresAt','Enter\x20one\x20number\x20from\x201\x20to\x20','maps','prompt_tokens','mapName','\x20is\x20not\x20valid\x20JSON\x20(','models','\x20(in\x20','delegations\x20delete\x20<delegation-id>','structuredError','162Dmsjvn',']\x20Backend\x20URL:\x20','period_days','\x20|\x20','Cancel\x20requested\x20for\x20turn\x20',']\x20(Enter\x20for\x20','--replay-user-messages\x20needs\x20--input-format\x20stream-json.','once','There\x20is\x20no\x20terminal\x20input\x20to\x20answer\x20from.','page','isError','\x0a⚠️\x20\x20Auth\x20expired.\x20Opening\x20browser\x20to\x20re-login…\x0a','stringify','followUpsRenderer','\x20cap','readFileSync','\x0aAvailable\x20models\x20(','tokenExpiresAt','probability','join','delete','hide','--skip-env-check\x20applies\x20to\x20`delegate-cli\x20login`\x20only.','lastType','result','buckets','choice','\x20from\x20','usage','Could\x20not\x20check\x20BYO\x20model\x20warnings:\x20','\x20\x20(sub-agent\x20of\x20','\x20(estimated\x20$','Usage:\x20delegate-cli\x20maps\x20share\x20--project\x20ID\x20--remote\x20URL|PATH\x20--map-name\x20NAME\x20[--working-dir\x20PATH]','delegations\x20cancel\x20<delegation-id>','push','\x20delegation\x20','\x20<title>','origin','tenantName','message','settle','logout','actionable_error','keys','a\x20directory\x20path','from','\x20not\x20found.','evaluate','every','abort','--attach\x20applies\x20to\x20prompts\x20only.','Enter\x20a\x20number\x20','\x20(type\x20your\x20own)','--skip-env-check','kind','delegations\x20create\x20--session\x20<id>\x20[--to\x20<email|name>]\x20[--summary\x20<text>]\x20\x22<task>\x22|-','verbose','completion_tokens','signal','Delegation\x20\x20\x20\x20','207oWNSZt','done','Tenant\x20not\x20switched:\x20could\x20not\x20write\x20','Unknown\x20sessions\x20action:\x20','--interop','--to\x20and\x20--summary\x20apply\x20to\x20`delegate-cli\x20delegations\x20create`\x20only.','[saved\x20login]\x20Backend\x20URL:\x20','score\x20','finish','--input-format\x20and\x20--replay-user-messages\x20apply\x20to\x20prompts\x20only.','\x20to\x20','cartographer','workerId','STATUS','\x20or\x20your\x20own\x20answer','readLine','\x0aAccept\x20one\x20with:\x20delegate-cli\x20delegations\x20accept\x20<id>\x0a','options','messages','delegations\x20accept\x20<delegation-id>','--env','UPDATED','pct_used','parentSessionId','outputFormat','Use:\x20delegate-cli\x20delegations\x20','--quiet','operands','limit','--turn','\x20—\x20sign\x20out\x20in\x20the\x20Delegate\x20app\x20to\x20clear\x20that.','preloadSkills','sourceTitle','extra_pool_consumed_pu',':\x20cannot\x20read\x20the\x20JSON\x20schema\x20(','task','--version','lockReason','max','index','177FYOGrb','a\x20colleague','\x20days:\x20','2ryoeRS','Title\x20\x20\x20\x20\x20\x20\x20\x20\x20','string','No\x20turn\x20','orgLogicalName','object','addEventListener','delegate-cli','exit','Deployment:\x20\x20\x20','pending',').\x0a','No\x20models\x20available\x20for\x20this\x20product/tenant.\x0a','Tenants\x20of\x20','getSessionId','removeEventListener','You>\x20','localhost','alpha','toFixed','staging','sendMessage','all',',\x20not\x20\x22user\x22','entries','No\x20sessions\x20on\x20page\x20','exitCode','an\x20input\x20line\x20is\x20not\x20a\x20JSON\x20object','--task-automation\x20applies\x20to\x20prompts\x20only.','\x20of\x20a\x20$','setPrompt','Created\x20delegation\x20','\x20(Enter\x20to\x20skip):\x20','title','alreadyCompleted','delegations\x20dismiss\x20<delegation-id>','--authority','Pass\x20either\x20--env\x20(a\x20named\x20cloud)\x20or\x20--url\x20(any\x20other\x20deployment),\x20not\x20both.','Token:\x20\x20\x20\x20\x20\x20\x20\x20expires\x20','shift','help','slice','--verbose','25285XsuBBc','Turn:\x20','dismissed','.\x20Drop\x20one\x20of\x20the\x20two.','Renamed\x20','optional','trim','replace','--summary','16208jbVxmT','getTurnUsageHistory','transcribe\x20needs\x20audio:\x20delegate-cli\x20transcribe\x20<file>,\x20or\x20-\x20to\x20read\x20stdin.','\x20tokens\x0a','choice\x20','a\x20session\x20id','\x20\x22<prompt>\x22\x0a','rerank','isFinite','label','inputFormat','--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`delegate-cli\x20sessions\x20[list]`\x20only.','Unknown\x20usage\x20view:\x20','\x20token\x20units)','then','--input-format\x20stream-json\x20needs\x20--output-format\x20stream-json:\x20the\x20steering\x20messages\x20are\x20answered\x20on\x20stdout.','Invalid\x20--effort:\x20','refused','print','\x20(no\x20cap\x20enforced)','delegations\x20complete\x20<delegation-id>\x20\x22<answer>\x22|-','fields','isArray','Usage:\x20delegate-cli\x20sessions\x20cancel\x20<session-id>\x20--turn\x20<turn-id>','error','resolve','an\x20input\x20line\x20has\x20no\x20message.content,\x20a\x20string\x20or\x20a\x20list\x20of\x20text\x20blocks','--vertical','model_version','toString','\x20(resets\x20','status','round','--tenant\x20requires\x20a\x20tenant\x20name.','jsonSchemaPath','--working-dir','quiet','contextSummary','session_start','limit_enabled','Something\x20else','delegations\x20show\x20<delegation-id|delegate://delegation/…>','\x20PU','workingDirectory','argv','race','\x20\x20\x20\x20','\x20is\x20required.\x0a','\x20\x20\x20\x20Not\x20available\x20on\x20this\x20plan','content','total_quota_pu','a\x20deployment\x20URL,\x20e.g.\x20https://automationsuite.contoso.com','add','--effort','\x20(Delegate\x20desktop\x20app\x20fallback)','--days','pendingResults','activity','tool','1898040sTqRcK','prompt','organizationId','Number','end','unknown','deepLink','floor','Last\x20','stdout','create','skipEnvCheck','waitForIdle','low','Claimed\x20from\x20delegation\x20','host','No\x20usage\x20in\x20the\x20last\x20','\x20sessions\x20on\x20','typed','No\x20answers\x20awaiting\x20acceptance.\x0a','text','now','Token:\x20\x20\x20\x20\x20\x20\x20\x20expired\x20','oneTurn',',\x20got\x20','erase','--to,\x20--summary\x20and\x20--session\x20apply\x20to\x20`delegate-cli\x20delegations\x20create`\x20only.','interopPath','remote','a\x20format\x20(','headless','SIGINT','Base\x20URL:\x20\x20\x20\x20\x20','concat','header','a\x20JSON\x20schema\x20file','),\x20','--backend','multiSelect','projectId','assignedUser','--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.','intro','turn_start','424xjcRbh','an\x20email\x20address\x20or\x20name','forEach','Spending:\x20\x20\x20\x20\x20$','detail','subcommand','effort','13285636btQoxr','--attach:\x20no\x20such\x20file\x20or\x20folder:\x20','active_days','Cost:\x20\x20\x20$','length','\x20\x20\x20\x20BYO\x20warning:\x20','Bearer\x20',';\x20the\x20saved\x20login\x20still\x20uses\x20','--worker-id','\x0a🤔\x20','--url','\x20applies\x20to\x20prompts\x20and\x20to\x20these\x20commands\x20only:\x20','Shared\x20the\x20Map\x20of\x20Work\x20of\x20','--page','--url\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Other\x20commands\x20follow\x20the\x20saved\x20login,\x20or\x20--backend\x20<url>.','No\x20CLI\x20login\x20found.\x20Note:\x20the\x20CLI\x20is\x20currently\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20','Date\x20\x20\x20\x20\x20\x20\x20\x20Token\x20units\x20\x20Prompt\x20tokens\x20\x20Completion\x20tokens','Numbers,\x20separated\x20by\x20commas\x20(Enter\x20to\x20skip):\x20','claim','auth','padEnd','\x20(cancel\x20with:\x20delegate-cli\x20sessions\x20cancel\x20','Session\x20','41993TLGnBX','a\x20turn\x20id','onEvent','existsSync','--runner-url','sessionId','--session','padStart','stop','updatedAt','\x27\x20cannot\x20be\x20read:\x20','Already\x20accepted','--turn\x20applies\x20to\x20`delegate-cli\x20sessions\x20cancel`\x20only.','list','results','show','input','token_units',',\x20or\x20holds\x20no\x20message\x20','UiPath\x20Cloud','stderr','displayName','widget','utf-8','stack','\x20<file.json>,\x20or\x20-\x20to\x20read\x20stdin.','file','total_sessions',':\x20bucket\x20number\x20(Enter\x20to\x20leave\x20out):\x20','\x0aStopping…\x20(Ctrl+C\x20again\x20to\x20force\x20exit)\x0a','sessions','\x20must\x20be\x20a\x20whole\x20number\x20','startsWith','questions','thinking','\x20days.\x0a','turnId','userId','noMemory','--keep-alive','model','rename','cleanup','noSecurity','Your\x20answer\x20(Enter\x20to\x20skip):\x20','pause','22PyaOAE','total_cost_usd','map','unknown\x20slug','default','isDesktopFallback','url','getSessionMessages','a\x20file://\x20URL\x20or\x20an\x20absolute\x20path','\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\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\x20export\x20TYPE\x20[DOCUMENT_ID]\x20--project\x20ID\x20[--working-dir\x20PATH]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Export\x20a\x20project\x27s\x20living\x20document\x20(TYPE:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20pdd,\x20sdd,\x20...)\x20to\x20.docx,\x20as\x20an\x20agent\x27s\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20/livingdoc/export\x20does,\x20from\x20the\x20local\x20disk:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20no\x20login\x20or\x20interop.\x20--project\x20and\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--working-dir\x20name\x20the\x20project\x20as\x20the\x20run\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20that\x20wrote\x20it\x20did.\x20DOCUMENT_ID\x20(the\x20draft\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20path)\x20picks\x20one\x20of\x20several\x20documents\x20of\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20TYPE.\x20Prints\x20the\x20.docx\x20path;\x20exits\x201\x20when\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20there\x20is\x20no\x20such\x20document\x20or\x20export\x20fails\x0a\x20\x20delegate-cli\x20maps\x20share\x20--project\x20ID\x20--remote\x20URL|PATH\x20--map-name\x20NAME\x20[--working-dir\x20PATH]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Share\x20a\x20project\x27s\x20Map\x20of\x20Work,\x20as\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20desktop\x20app\x27s\x20Share\x20does\x20with\x20New\x20map\x20of\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20work:\x20its\x20history,\x20change\x20requests\x20and\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20versions\x20go\x20to\x20a\x20bare\x20git\x20repository\x20on\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this\x20computer\x20or\x20a\x20shared\x20drive\x20(a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20file://\x20URL\x20or\x20an\x20absolute\x20path),\x20under\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20NAME,\x20and\x20publish\x20there\x20from\x20then\x20on.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Join\x20it\x20in\x20the\x20app\x20with\x20Existing\x20map\x20of\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20work.\x20GitHub\x20is\x20not\x20available\x20here\x20yet.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20No\x20login\x20or\x20interop;\x20exits\x201\x20when\x20refused\x0a\x20\x20delegate-cli\x20maps\x20save-version\x20MESSAGE\x20--project\x20ID\x20[--working-dir\x20PATH]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Save\x20version,\x20as\x20in\x20the\x20desktop\x20app:\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20map\x27s\x20next\x200.x\x20version\x20(0.1.0\x20first),\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20named\x20MESSAGE.\x20Exits\x201\x20when\x20refused,\x20as\x20on\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20a\x20settled\x20map,\x20which\x20gets\x20versions\x20from\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20applied\x20change\x20requests\x20only\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--remote\x20URL|PATH\x20(maps\x20share)\x20The\x20bare\x20git\x20repository\x20to\x20share\x20to:\x20a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20file://\x20URL\x20or\x20an\x20absolute\x20path,\x20on\x20this\x20computer\x20or\x20a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20shared\x20drive.\x20Create\x20it\x20first\x20(git\x20init\x20--bare)\x0a\x20\x20--map-name\x20NAME\x20\x20\x20(maps\x20share)\x20The\x20Map\x27s\x20name\x20in\x20that\x20repository,\x20beside\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20other\x20projects\x27\x20Maps:\x20up\x20to\x2064\x20letters,\x20digits,\x20\x22.\x22,\x20\x22_\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20or\x20\x22-\x22,\x20starting\x20with\x20a\x20letter\x20or\x20digit\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','dismiss','description','rmSync','--remote\x20and\x20--map-name\x20apply\x20to\x20`delegate-cli\x20maps\x20share`\x20only.','Auth\x20comes\x20from\x20AUTH_TOKEN/TENANT_ID/ORG_ID\x20—\x20set\x20TENANT_ID\x20and\x20TENANT_SLUG\x20to\x20change\x20the\x20tenant.','\x20not\x20found,\x20has\x20no\x20messages','UIPATH_BASE_URL\x20is\x20unusable.\x20','delegations','session_consumed_pu','\x20(resume\x20with\x20--session\x20','a\x20briefing\x20text','restore','No\x20CLI\x20login\x20found.\x20Run\x20`delegate-cli\x20login\x20--env\x20<alpha|staging|production>`\x20first.','an\x20effort\x20tier','whoami','sourceUserEmail','/exit','Missing\x20prompt.\x20Pass\x20it\x20as\x20an\x20argument,\x20pipe\x20it\x20via\x20stdin,\x20or\x20run\x20`delegate-cli\x20--help`.','Invalid\x20--project:\x20\x22','stream-json','):\x20','toISOString','\x20in\x20progress\x20on\x20session\x20','Steering\x20input\x20stopped:\x20','\x20\x20TASK\x0a','Work\x20on\x20it\x20with:\x20delegate-cli\x20--session\x20','destroy','Already\x20answered','backendUrl','cancelled','75610nldBQr','Organization:\x20','accept','No\x20delegations.\x0a','delegationId',':\x20ignored\x0a','baseUrl','--to',',\x20whose\x20tenant\x20is\x20chosen\x20in\x20the\x20app.\x20Run\x20`delegate-cli\x20login\x20--env\x20<env>`\x20for\x20a\x20CLI\x20login\x20of\x20your\x20own.','Accepted','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','Delegated\x20','--headless','vertical','.\x20Use\x20`delegate-cli\x20usage`,\x20`usage\x20activity`\x20or\x20`usage\x20daily`.','version','Input\x20closed\x20before\x20the\x20question\x20was\x20answered.','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.','a\x20number','Continue\x20it\x20with:\x20delegate-cli\x20--session\x20','catch','answers','numeric','stdin','From\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','daily_usage','assignedUserEmail','days','cancel','the\x20JSON\x20schema','tenant','):\x0a\x0a','Task\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','findIndex','parse','name','includes','bucket','Forked\x20','medium','resume','Owner\x20\x20\x20\x20\x20\x20\x20\x20\x20','daily','production','isInteger','Usage:\x20delegate-cli\x20maps\x20save-version\x20MESSAGE\x20--project\x20ID\x20[--working-dir\x20PATH]','uuid','env','accessToken','\x20active\x20days','✓\x20Done\x0a','environment\x20variables\x20(AUTH_TOKEN/TENANT_ID/ORG_ID)','\x20in\x20steps\x20of\x20'];_0x1902=function(){return _0x46fbc6;};return _0x1902();}async function jn(_0xd1657f){const _0x47ec7a=_0x1a931e;_0xd1657f[_0x47ec7a(0x249)][_0x47ec7a(0x20a)]()||(console[_0x47ec7a(0x225)]('Usage:\x20delegate-cli\x20org-users\x20<name\x20or\x20email\x20prefix>'),process[_0x47ec7a(0x1e1)](0x2));let {client:_0x3f0d7b}=await x(_0xd1657f),_0x1917b1;try{_0x1917b1=await _0x2b3a21(_0x3f0d7b,_0xd1657f[_0x47ec7a(0x249)]);}catch(_0x48fccd){if(!_0x2e7a91(_0x48fccd))throw _0x48fccd;console[_0x47ec7a(0x225)](_0x48fccd[_0x47ec7a(0x3c3)]),process[_0x47ec7a(0x1e1)](0x1);}m(_0xd1657f,_0x1917b1,_0x273667=>{const _0x539dc8=_0x47ec7a;_0x273667['length']===0x0&&process[_0x539dc8(0x2a6)][_0x539dc8(0x384)](_0x539dc8(0x32c)+_0xd1657f['prompt'][_0x539dc8(0x20a)]()+_0x539dc8(0x324));for(let _0xfa40b5 of _0x273667)process['stdout'][_0x539dc8(0x384)](_0xfa40b5[_0x539dc8(0x335)][_0x539dc8(0x28f)](0x20)+'\x20\x20'+_0xfa40b5[_0x539dc8(0x2a7)]+'\x0a');});}async function Mn(_0x5ae4a1){const _0x4fff56=_0x1a931e;_0x5ae4a1[_0x4fff56(0x317)]===_0x4fff56(0x1ea)&&(console[_0x4fff56(0x225)]('--env\x20localhost\x20has\x20no\x20OAuth\x20flow;\x20pick\x20alpha,\x20staging,\x20or\x20production.'),process[_0x4fff56(0x1e1)](0x2));let _0x19b17a=G(_0x31cfd8()),_0x2b2836=_0x5ae4a1['skipEnvCheck'];if(_0x5ae4a1[_0x4fff56(0x317)]){let _0x1e6b44=_0x5ae4a1[_0x4fff56(0x317)];await _0x4d58e3({'env':_0x1e6b44,'tenant':_0x5ae4a1[_0x4fff56(0x306)]??q(_0x19b17a,_0x1a1318[_0x1e6b44]),'skipEnvCheck':_0x2b2836});return;}let _0x5d4797=_0x5ae4a1[_0x4fff56(0x2c6)]??Pe();if(_0x5d4797){await _0x4d58e3({'baseUrl':_0x5d4797,'tenant':_0x5ae4a1['tenant']??q(_0x19b17a,_0x5d4797),'skipEnvCheck':_0x2b2836});return;}if(_0x19b17a?.[_0x4fff56(0x2ee)]){await _0x4d58e3({'baseUrl':_0x19b17a['baseUrl'],'tenant':_0x5ae4a1[_0x4fff56(0x306)]??_0x19b17a[_0x4fff56(0x3c2)],'skipEnvCheck':_0x2b2836});return;}console[_0x4fff56(0x225)](_0x4fff56(0x2f2)),process[_0x4fff56(0x1e1)](0x2);}function q(_0x5eaf3f,_0x58b145){const _0x1e6918=_0x1a931e;return _0x5eaf3f?.['baseUrl']&&Fn(_0x5eaf3f[_0x1e6918(0x2ee)],_0x58b145)?_0x5eaf3f[_0x1e6918(0x3c2)]:void 0x0;}function Fn(_0x4b1e88,_0x32d19e){const _0x11941d=_0x1a931e;try{return new URL(_0x4b1e88)[_0x11941d(0x3c1)]===new URL(_0x32d19e)[_0x11941d(0x3c1)];}catch{return!0x1;}}async function Bn(_0x14ba0e){const _0x1a6af4=_0x1a931e;z()&&(console[_0x1a6af4(0x225)](_0x1a6af4(0x2ce)),process[_0x1a6af4(0x1e1)](0x2));let _0x3d37ff=await _0x47f550();if(_0x3d37ff||(console[_0x1a6af4(0x225)](Hn()),process[_0x1a6af4(0x1e1)](0x2)),_0x14ba0e['trim']()){let _0x43c023=await _0x3ace51(_0x3d37ff,_0x14ba0e);_0x4231ab(_0x43c023)||(console[_0x1a6af4(0x225)](_0x1a6af4(0x3da)+_0x31cfd8()+_0x1a6af4(0x282)+_0x3d37ff[_0x1a6af4(0x3c2)]+'.'),process[_0x1a6af4(0x1e1)](0x1)),console[_0x1a6af4(0x390)]('Tenant:\x20'+_0x43c023[_0x1a6af4(0x3c2)]+'\x20('+_0x43c023['tenantId']+_0x1a6af4(0x349)+_0x31cfd8());return;}Jn(await _0xa9c55d(_0x3d37ff),_0x3d37ff);}function Hn(){const _0x913b=_0x1a931e;if(_0x497ddb[_0x913b(0x295)](_0x31cfd8()))return'The\x20saved\x20CLI\x20login\x20could\x20not\x20be\x20refreshed.\x20Run\x20`delegate-cli\x20login`\x20again.';let _0x2401d4=Y();return G(_0x2401d4)?'No\x20CLI\x20login\x20to\x20switch:\x20the\x20CLI\x20is\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20'+_0x2401d4+_0x913b(0x2f0):_0x913b(0x2d6);}function Jn(_0xe1b57a,_0x44ceb2){const _0xa1741d=_0x1a931e;let _0x1a0254=_0xe1b57a[_0xa1741d(0x2c2)](_0x3f1517=>_0x3f1517['id']===_0x44ceb2[_0xa1741d(0x37b)]?'*\x20'+_0x3f1517[_0xa1741d(0x30b)]+_0xa1741d(0x33d):'\x20\x20'+_0x3f1517['name']);process[_0xa1741d(0x251)][_0xa1741d(0x384)](_0xa1741d(0x1e6)+(_0x44ceb2['orgLogicalName']??_0x44ceb2[_0xa1741d(0x24a)])+':\x0a'+_0x1a0254['join']('\x0a')+'\x0a'),_0xe1b57a['length']>0x1&&process[_0xa1741d(0x251)][_0xa1741d(0x384)]('Switch\x20with:\x20delegate-cli\x20tenant\x20<name>\x0a');}function Gn(_0x1ee35c){const _0x5761a6=_0x1a931e;return _0x1ee35c?.[_0x5761a6(0x32b)]?.[_0x5761a6(0x22c)]===0x191||/401/[_0x5761a6(0x387)](String(_0x1ee35c?.[_0x5761a6(0x3c3)]??''));}var w={'lastType':null,'quiet':!0x1},Oe=_0x119249=>{const _0x554390=_0x1a931e;switch(_0x119249['type']){case _0x554390(0x233):_0x119249[_0x554390(0x297)]&&_0x119249[_0x554390(0x297)]!==w[_0x554390(0x297)]&&(process[_0x554390(0x2a6)]['write']('Session:\x20'+_0x119249[_0x554390(0x297)]+_0x554390(0x2d3)+_0x119249['sessionId']+')\x0a'),w[_0x554390(0x297)]=_0x119249[_0x554390(0x297)]);break;case _0x554390(0x273):_0x119249['turnId']&&_0x119249[_0x554390(0x2b6)]!==w[_0x554390(0x2b6)]&&(w[_0x554390(0x3b3)]!==null&&process[_0x554390(0x2a6)][_0x554390(0x384)]('\x0a'),process[_0x554390(0x2a6)][_0x554390(0x384)](_0x554390(0x205)+_0x119249[_0x554390(0x2b6)]+_0x554390(0x290)+_0x119249[_0x554390(0x297)]+'\x20--turn\x20'+_0x119249[_0x554390(0x2b6)]+')\x0a'),w[_0x554390(0x2b6)]=_0x119249[_0x554390(0x2b6)],w[_0x554390(0x3b3)]=_0x554390(0x273));break;case _0x554390(0x2b4):_0x119249['content']&&!w[_0x554390(0x231)]&&(w[_0x554390(0x3b3)]!=='thinking'&&process['stderr'][_0x554390(0x384)](_0x554390(0x284)),process[_0x554390(0x2a6)][_0x554390(0x384)](_0x119249[_0x554390(0x23e)]),w[_0x554390(0x3b3)]=_0x554390(0x2b4));break;case _0x554390(0x365):w[_0x554390(0x3b3)]!==null&&process[_0x554390(0x2a6)][_0x554390(0x384)]('\x0a'),process['stderr'][_0x554390(0x384)]('🔧\x20'+(_0x119249['toolName']??_0x554390(0x247))+'\x0a'),w[_0x554390(0x3b3)]=_0x554390(0x365);break;case _0x554390(0x3c3):_0x119249[_0x554390(0x23e)]&&(w['lastType']!==_0x554390(0x3c3)&&w['lastType']!==null&&process[_0x554390(0x251)][_0x554390(0x384)]('\x0a'),process[_0x554390(0x251)][_0x554390(0x384)](_0x119249[_0x554390(0x23e)]),w[_0x554390(0x3b3)]=_0x554390(0x3c3));break;case _0x554390(0x225):w[_0x554390(0x3b3)]!==null&&process[_0x554390(0x2a6)][_0x554390(0x384)]('\x0a'),process['stderr'][_0x554390(0x384)]('✗\x20'+(_0x119249[_0x554390(0x225)]??_0x554390(0x225))+'\x0a'),w['lastType']=_0x554390(0x225);break;case _0x554390(0x3d9):(w[_0x554390(0x3b3)]==='message'||w['lastType']==='thinking')&&process['stdout']['write']('\x0a'),process[_0x554390(0x2a6)][_0x554390(0x384)](_0x554390(0x31a)),w[_0x554390(0x3b3)]='done';break;}};function Se(_0x3c3a2f,_0x539645,_0x334d93,_0x16601d){const _0x4d7f11=_0x1a931e;let _0x10de1b=_0x3c3a2f[_0x4d7f11(0x2ba)]||process.env.MODEL;return{'backendUrl':_0x334d93,'auth':_0x539645,'enableComputerUse':!_0x3c3a2f[_0x4d7f11(0x266)]&&!_0x3c3a2f[_0x4d7f11(0x36f)],'autoSpawnInterop':!_0x3c3a2f[_0x4d7f11(0x266)],'enableConnections':!_0x3c3a2f['noConnections'],'enableSecurity':!_0x3c3a2f[_0x4d7f11(0x2bd)],'keepInteropAlive':_0x3c3a2f[_0x4d7f11(0x35f)],..._0x16601d[_0x4d7f11(0x25f)]?{'enableBackgroundCommands':!0x1}:{},..._0x3c3a2f[_0x4d7f11(0x2b8)]?{'enableMemory':!0x1}:{},..._0x3c3a2f[_0x4d7f11(0x354)]?{'enableTaskAutomation':!0x0}:{},..._0x3c3a2f['preloadSkills']['length']>0x0?{'preloadSkills':_0x3c3a2f[_0x4d7f11(0x1cd)]}:{},..._0x10de1b?{'model':_0x10de1b}:{},..._0x3c3a2f[_0x4d7f11(0x26f)]?{'projectId':_0x3c3a2f[_0x4d7f11(0x26f)]}:{},..._0x3c3a2f['vertical']?{'vertical':_0x3c3a2f[_0x4d7f11(0x2f5)]}:{},..._0x3c3a2f[_0x4d7f11(0x238)]?{'workingDirectory':_0x3c3a2f['workingDirectory']}:{},..._0x3c3a2f[_0x4d7f11(0x362)]?{'bundledSkillsPath':_0x3c3a2f[_0x4d7f11(0x362)]}:{},..._0x3c3a2f[_0x4d7f11(0x27a)]?{'effort':_0x3c3a2f[_0x4d7f11(0x27a)]}:{},..._0x3c3a2f[_0x4d7f11(0x297)]?{'sessionId':_0x3c3a2f[_0x4d7f11(0x297)]}:{},..._0x3c3a2f[_0x4d7f11(0x3d4)]?{'verbose':!0x0}:{}};}async function Wn(_0x197347){const _0x2a7a9c=_0x1a931e;let _0x5a59c2=_0x197347[_0x2a7a9c(0x1c6)]!=='text',_0x6b513=_0x197347[_0x2a7a9c(0x22f)]===void 0x0?null:Re(_0x197347[_0x2a7a9c(0x22f)],_0x2a7a9c(0x1e0)),_0x233f47=!_0x5a59c2&&!_0x6b513&&!_0x197347[_0x2a7a9c(0x21f)]&&_0x197347['prompt']!=='-'&&!!process['stdin']['isTTY']&&!!process[_0x2a7a9c(0x251)][_0x2a7a9c(0x343)],_0x2c6ea7=_0x197347[_0x2a7a9c(0x217)]===_0x2a7a9c(0x2dd)?re(process[_0x2a7a9c(0x2ff)],_0x5e95f7=>{const _0x1dc82f=_0x2a7a9c;process['stderr'][_0x1dc82f(0x384)](_0x5e95f7[_0x1dc82f(0x3c3)]+_0x1dc82f(0x2ed));}):null,_0x3a60e2=_0x2c6ea7?(await _0x2c6ea7['next']())['value']:void 0x0,_0x512555=_0x2c6ea7?_0x3a60e2?.[_0x2a7a9c(0x25c)]??'':_0x233f47?_0x197347[_0x2a7a9c(0x249)][_0x2a7a9c(0x20a)]():await J(_0x197347['prompt'],process[_0x2a7a9c(0x2ff)]);if(!_0x233f47&&!_0x512555&&(console[_0x2a7a9c(0x225)](_0x2a7a9c(0x2db)),process['exit'](0x2)),!_0x5a59c2){await Ae(_0x197347,_0x512555,_0x233f47,null,_0x6b513,null);return;}let _0x348e58=!0x1,_0x246d75=_0x161c2c=>{const _0x30589f=_0x2a7a9c;_0x348e58=!0x0,L(_0x19941c(_0x161c2c)),(_0x161c2c[_0x30589f(0x3a6)]||_0x161c2c[_0x30589f(0x39b)])&&(process[_0x30589f(0x1f3)]=0x1);},_0x183714=Date[_0x2a7a9c(0x25d)]();try{await Ae(_0x197347,_0x512555,!0x1,_0x246d75,_0x6b513,_0x2c6ea7?{'messages':_0x2c6ea7,'first':_0x3a60e2,'close':()=>{const _0x241cc2=_0x2a7a9c;process[_0x241cc2(0x2ff)][_0x241cc2(0x2bf)]();}}:null);}catch(_0x1e8a4a){if(_0x348e58)throw _0x1e8a4a;process[_0x2a7a9c(0x2a6)]['write']((_0x1e8a4a instanceof Error?_0x1e8a4a[_0x2a7a9c(0x2aa)]??_0x1e8a4a[_0x2a7a9c(0x3c3)]:String(_0x1e8a4a))+'\x0a'),_0x246d75(new _0x1b36e3(_0x183714)[_0x2a7a9c(0x3e0)]({'endedAtMs':Date[_0x2a7a9c(0x25d)](),'usage':[],'error':_0x1e8a4a}));}finally{_0x2c6ea7&&(process[_0x2a7a9c(0x2ff)]['pause'](),_0x2c6ea7['return'](void 0x0));}}async function Ae(_0x5c8fcc,_0x258c34,_0x5c07e5,_0x414fec,_0x3d36bd,_0x58125d){const _0x5ef1b4=_0x1a931e;w={'lastType':null,'quiet':_0x5c8fcc[_0x5ef1b4(0x231)]};let _0x3dd3e9=new Set(),_0x5eae74,_0x4f5689=_0x1be6fd=>{const _0x13f97d=_0x5ef1b4;(!_0x414fec||_0x1be6fd['type']===_0x13f97d(0x233)||_0x1be6fd[_0x13f97d(0x332)]===_0x13f97d(0x273))&&(_0x5eae74??Oe)(_0x1be6fd);for(let _0x1adbf2 of _0x3dd3e9)_0x1adbf2(_0x1be6fd);},_0x18adb9=await V(),_0x26cd46=new _0x4d9850();_0x26cd46[_0x5ef1b4(0x294)](_0x4f5689);let _0x304789=_0x2b610e(_0x5c8fcc[_0x5ef1b4(0x317)],_0x18adb9,_0x5c8fcc['backendUrl']);X(_0x5c8fcc[_0x5ef1b4(0x317)],_0x5c8fcc[_0x5ef1b4(0x2e6)],_0x304789);let _0xf7e18a={'input':null},_0x242ddc=_0x5c07e5?ne(()=>_0xf7e18a[_0x5ef1b4(0x2a2)],_0x27aa00=>{const _0x4fcc7a=_0x5ef1b4;process[_0x4fcc7a(0x2a6)][_0x4fcc7a(0x384)](_0x27aa00);}):null,_0x472374=_0x5466af=>_0x242ddc?{..._0x5466af,'askUser':_0x242ddc}:_0x5466af,_0x1b3acf=_0x472374(Se(_0x5c8fcc,_0x18adb9,_0x304789,{'oneTurn':!_0x5c07e5})),_0xd1e83f=!0x1,_0xf37163=!0x1,_0x3ffc67,_0xbdcf2d=()=>_0x3ffc67??=_0x26cd46[_0x5ef1b4(0x2e4)](),_0xbaf4ba=()=>{const _0xcab127=_0x5ef1b4;_0xf37163&&process['exit'](0x82),_0xf37163=!0x0,process[_0xcab127(0x2a6)][_0xcab127(0x384)](_0xcab127(0x2af)),_0xd1e83f&&_0x26cd46[_0xcab127(0x304)]()[_0xcab127(0x2fc)](_0x4787d3=>console[_0xcab127(0x225)](_0x4787d3))[_0xcab127(0x21b)](_0xbdcf2d)[_0xcab127(0x21b)](()=>process['exit'](0x82),_0x2c6a0f=>{const _0x407697=_0xcab127;console[_0x407697(0x225)](_0x2c6a0f),process['exit'](0x82);});};process['on']('SIGINT',_0xbaf4ba);let _0x355cd3=_0x5c8fcc['attachments'],_0x34a4c=async _0x5f0f51=>{const _0x1ad2b4=_0x5ef1b4;let _0x3dbeed=_0x355cd3;_0x355cd3=[];let _0x546f05=()=>_0x26cd46[_0x1ad2b4(0x1ee)](_0x5f0f51,{'attachments':_0x3dbeed});try{return await _0x546f05();}catch(_0x54daae){if(_0xf37163||!Gn(_0x54daae)||!process[_0x1ad2b4(0x2ff)][_0x1ad2b4(0x343)]||_0x5c8fcc[_0x1ad2b4(0x317)]==='localhost'||!(_0x5c8fcc[_0x1ad2b4(0x317)]||_0x18adb9[_0x1ad2b4(0x2ee)]))throw _0x54daae;process[_0x1ad2b4(0x2a6)][_0x1ad2b4(0x384)](_0x1ad2b4(0x3a7));let _0x49a2b0=_0x26cd46['getSessionId']()??_0x5c8fcc['sessionId'],_0x327350=await _0x4d58e3(_0x5c8fcc[_0x1ad2b4(0x317)]?{'env':_0x5c8fcc['env'],'tenant':q(_0x18adb9,_0x1a1318[_0x5c8fcc[_0x1ad2b4(0x317)]]),'skipEnvCheck':!0x0}:{'baseUrl':_0x18adb9['baseUrl'],'tenant':_0x18adb9[_0x1ad2b4(0x3c2)],'skipEnvCheck':!0x0}),_0x144b89={'text':'','failed':!0x1,'sessionId':_0x49a2b0};return _0xf37163||(_0xd1e83f=!0x1,await _0xbdcf2d(),_0xf37163)?_0x144b89:(_0x26cd46=new _0x4d9850(),_0x3ffc67=void 0x0,_0x26cd46[_0x1ad2b4(0x294)](_0x4f5689),_0x18adb9=_0x327350,await _0x26cd46['initialize']({..._0x472374(Se(_0x5c8fcc,_0x18adb9,_0x304789,{'oneTurn':!_0x5c07e5})),..._0x49a2b0?{'sessionId':_0x49a2b0}:{}}),_0xd1e83f=!0x0,_0xf37163?_0x144b89:_0x546f05());}};try{if(await _0x26cd46[_0x5ef1b4(0x377)](_0x1b3acf),_0xd1e83f=!0x0,_0xf37163)return;if(_0x5c07e5)await Qn({'prompt':_0x258c34,'sendMessage':_0x34a4c,'onSigint':_0xbaf4ba,'setAnswerInput':_0x1aabe2=>{_0xf7e18a['input']=_0x1aabe2;},'registerEventPrinter':_0x19519d=>(_0x5eae74=_0x19519d,()=>{_0x5eae74=void 0x0;})});else{if(_0x414fec||_0x3d36bd){let _0x5c9b26=_0x5c8fcc[_0x5ef1b4(0x1c6)]===_0x5ef1b4(0x2dd)?_0x353348=>L(_0x1b1c5d(_0x353348)):()=>{},_0x471bcc=_0x58125d?ie({'input':_0x58125d,'getAgent':()=>_0x26cd46,'replay':_0x5c8fcc[_0x5ef1b4(0x34b)],'onEvent':_0x35d8bc=>(_0x3dd3e9['add'](_0x35d8bc),()=>{_0x3dd3e9['delete'](_0x35d8bc);}),'write':L,'isRunStopNotice':_0x40fba9,'actionableErrorText':_0x26303b,'warn':_0x55c094=>{const _0x47d0e4=_0x5ef1b4;process['stderr'][_0x47d0e4(0x384)](_0x55c094);}}):null,_0xabd543=await _0x50e858({'onEvent':_0x30f656=>(_0x3dd3e9[_0x5ef1b4(0x241)](_0x30f656),()=>{const _0x120b3d=_0x5ef1b4;_0x3dd3e9[_0x120b3d(0x3b0)](_0x30f656);}),'sendMessage':async _0x4218c6=>{const _0x44e2a6=_0x5ef1b4;try{let _0x2e3317=await _0x34a4c(_0x4218c6);return _0x471bcc?await _0x471bcc[_0x44e2a6(0x3c4)](_0x2e3317):_0x2e3317;}finally{_0x471bcc?.[_0x44e2a6(0x29a)]();}},'getSessionId':()=>_0x26cd46['getSessionId'](),'getTurnUsageHistory':_0x3e1c34=>_0x26cd46[_0x5ef1b4(0x20e)](_0x3e1c34),'complete':_0x4a5754=>_0x26cd46[_0x5ef1b4(0x379)](_0x4a5754)},_0x258c34,void 0x0,_0x5c9b26,_0x3d36bd?{'outputSchema':_0x3d36bd}:void 0x0);_0x414fec?_0x414fec(_0xabd543):Kn(_0xabd543);}else await _0x34a4c(_0x258c34);}}catch(_0x1be0bb){if(!_0xf37163)throw _0x1be0bb;}finally{try{await _0xbdcf2d();}finally{process[_0x5ef1b4(0x386)](_0x5ef1b4(0x267),_0xbaf4ba),_0xf37163&&(process[_0x5ef1b4(0x1f3)]=0x82);}}}function Kn(_0xc5b22f){const _0x780a47=_0x1a931e;_0xc5b22f['structuredError']?(console[_0x780a47(0x225)](_0x780a47(0x347)+_0xc5b22f[_0x780a47(0x39b)][_0x780a47(0x3c3)]),process['exitCode']=0x1):_0xc5b22f[_0x780a47(0x3a6)]?(console[_0x780a47(0x225)](_0x780a47(0x37f)+_0xc5b22f['error']+').'),process[_0x780a47(0x1f3)]=0x1):process[_0x780a47(0x251)]['write'](JSON['stringify'](_0xc5b22f['structured'],null,0x2)+'\x0a');}function qn(_0x22468e,_0x49e303){const _0x352f72=_0x1a931e;let _0x5265d3=process[_0x352f72(0x251)][_0x352f72(0x384)][_0x352f72(0x361)](process[_0x352f72(0x251)]),_0xab6393=!0x1;return process[_0x352f72(0x251)][_0x352f72(0x384)]=(..._0x4acb79)=>{if(!_0xab6393)return _0x5265d3(..._0x4acb79);_0x193188(_0x49e303,0x0),_0x3a74ee(_0x49e303,0x0);let _0x1be9ee=_0x5265d3(..._0x4acb79);return _0x22468e['prompt'](!0x0),_0x1be9ee;},{'show':()=>{const _0x24c1f=_0x352f72;_0xab6393=!0x0,_0x22468e[_0x24c1f(0x249)]();},'hide':()=>{_0xab6393=!0x1;},'erase':()=>{_0xab6393&&(_0x193188(_0x49e303,0x0),_0x3a74ee(_0x49e303,0x0)),_0xab6393=!0x1;},'restore':()=>{const _0x21b207=_0x352f72;_0xab6393=!0x1,process[_0x21b207(0x251)][_0x21b207(0x384)]=_0x5265d3;}};}async function Qn({prompt:_0x47c949,sendMessage:_0x372c21,onSigint:_0x569f9e,setAnswerInput:_0x58741b,registerEventPrinter:_0x227ee7}){const _0x5d95f9=_0x1a931e;let _0x35277f=_0x4c74db({'input':process[_0x5d95f9(0x2ff)],'output':process[_0x5d95f9(0x2a6)],'terminal':!0x0,'prompt':_0x5d95f9(0x1e9)}),_0x281d2f=qn(_0x35277f,process[_0x5d95f9(0x2a6)]),_0x3effec=[],_0x1272b4,_0x4456e5,_0x557a19,_0x1064cf=!0x1,_0x264fdd=!0x1,_0x3d8bc8=!0x1,_0x2daabe=Promise['resolve'](),_0x4e51a1,_0x1d52b8=_0x227ee7(_0x30043d=>{const _0x3947d0=_0x5d95f9;_0x30043d[_0x3947d0(0x332)]===_0x3947d0(0x233)&&(_0x281d2f[_0x3947d0(0x261)](),_0x2daabe=new Promise(_0x32995e=>{_0x4e51a1=_0x32995e;})),Oe(_0x30043d),_0x30043d['type']==='done'&&(_0x4e51a1?.(),_0x4e51a1=void 0x0,!_0x3d8bc8&&!_0x1064cf&&_0x281d2f[_0x3947d0(0x2a1)]());}),_0x1a0e53=()=>{const _0x3c234b=_0x5d95f9;_0x264fdd=!0x0,_0x4e51a1?.(),_0x569f9e(),_0x35277f[_0x3c234b(0x341)]();};_0x35277f['on'](_0x5d95f9(0x348),_0x55f117=>{const _0x52eef2=_0x5d95f9;_0x557a19?_0x557a19(_0x55f117):_0x1272b4?_0x1272b4[_0x52eef2(0x3be)](_0x55f117):_0x4456e5?_0x4456e5(_0x55f117):_0x3effec['push'](_0x55f117);}),_0x35277f[_0x5d95f9(0x3a3)](_0x5d95f9(0x341),()=>{const _0x24255c=_0x5d95f9;_0x1064cf=!0x0,_0x281d2f[_0x24255c(0x3b1)](),_0x1272b4&&!_0x264fdd&&_0x1a0e53(),_0x4456e5?.(null);});let _0x432fbb=()=>_0x3effec[_0x5d95f9(0x27f)]>0x0?Promise[_0x5d95f9(0x226)](_0x3effec[_0x5d95f9(0x200)]()):_0x1064cf?Promise[_0x5d95f9(0x226)](null):new Promise(_0x3a7241=>{_0x4456e5=_0x27e4d4=>{_0x4456e5=void 0x0,_0x3a7241(_0x27e4d4);};});_0x58741b({'readLine':(_0x310b06,_0x281642)=>new Promise((_0x16a362,_0x576a11)=>{const _0x30d1a2=_0x5d95f9;if(_0x1064cf&&!_0x1272b4){_0x16a362(null);return;}_0x1272b4??=[];let _0x5613bc=_0x1272b4['shift']();if(_0x5613bc!==void 0x0){_0x16a362(_0x5613bc);return;}let _0x107419=()=>{const _0x3aa5a4=_0x56e5;_0x557a19=void 0x0,_0x281642[_0x3aa5a4(0x1e8)](_0x3aa5a4(0x3cd),_0xca9387),_0x281d2f['hide'](),_0x35277f['setPrompt'](_0x3aa5a4(0x1e9));},_0xca9387=()=>{const _0x13d012=_0x56e5;_0x107419(),_0x576a11(new Error(_0x13d012(0x357)));};_0x281642[_0x30d1a2(0x1df)](_0x30d1a2(0x3cd),_0xca9387,{'once':!0x0}),!_0x1064cf&&(_0x557a19=_0x4a8697=>{_0x107419(),_0x16a362(_0x4a8697);},_0x35277f[_0x30d1a2(0x1f7)](_0x310b06),_0x281d2f[_0x30d1a2(0x2a1)]());}),'endQuestions':()=>{_0x1272b4&&_0x3effec['push'](..._0x1272b4),_0x1272b4=void 0x0;}}),_0x35277f['on'](_0x5d95f9(0x267),_0x1a0e53),process[_0x5d95f9(0x2a6)][_0x5d95f9(0x384)](_0x5d95f9(0x380));let _0x29b756=async _0x4d86b2=>{_0x3d8bc8=!0x0;try{await _0x372c21(_0x4d86b2);}finally{_0x3d8bc8=!0x1;}};try{if(_0x47c949&&await _0x29b756(_0x47c949),_0x264fdd)return;!_0x1064cf&&!_0x4e51a1&&_0x281d2f[_0x5d95f9(0x2a1)]();for(let _0x44a50f=await _0x432fbb();_0x44a50f!==null&&(_0x281d2f[_0x5d95f9(0x3b1)](),!_0x264fdd);_0x44a50f=await _0x432fbb()){let _0x57dd11=_0x44a50f[_0x5d95f9(0x20a)]();if(_0x57dd11===_0x5d95f9(0x2da))break;_0x57dd11&&await _0x29b756(_0x57dd11),!_0x1064cf&&!_0x4e51a1&&_0x281d2f[_0x5d95f9(0x2a1)]();}for(;!_0x264fdd&&_0x4e51a1;)await _0x2daabe;}finally{_0x58741b(null),_0x1d52b8(),_0x281d2f[_0x5d95f9(0x2d5)](),_0x35277f[_0x5d95f9(0x386)](_0x5d95f9(0x267),_0x1a0e53),_0x35277f[_0x5d95f9(0x341)]();}}async function Yn(){const _0x271400=_0x1a931e;let _0x371eb2=Vt(process[_0x271400(0x239)][_0x271400(0x202)](0x2));if(_0x371eb2[_0x271400(0x1c6)]===_0x271400(0x25c)){await Ee(_0x371eb2);return;}let _0x15a5d3=Xt();try{await Ee(_0x371eb2);}finally{_0x15a5d3();}}async function Ee(_0x7568b9){const _0xfa99c2=_0x1a931e;if(_0x7568b9[_0xfa99c2(0x201)]){Zt();return;}if(_0x7568b9[_0xfa99c2(0x2f7)]){console[_0xfa99c2(0x390)](en());return;}if(_0x7568b9['subcommand']===_0xfa99c2(0x38c)){await Mn(_0x7568b9);return;}if(_0x7568b9[_0xfa99c2(0x279)]==='tenant'){await Bn(_0x7568b9[_0xfa99c2(0x249)]);return;}if(_0x7568b9[_0xfa99c2(0x279)]==='logout'){await on();return;}if(_0x7568b9[_0xfa99c2(0x279)]===_0xfa99c2(0x2d8)){await rn(_0x7568b9);return;}if(_0x7568b9[_0xfa99c2(0x279)]==='models'){await dn(_0x7568b9);return;}if(_0x7568b9[_0xfa99c2(0x279)]==='check'){await wn(_0x7568b9);return;}if(_0x7568b9[_0xfa99c2(0x279)]==='sessions'){await pn(_0x7568b9);return;}if(_0x7568b9[_0xfa99c2(0x279)]===_0xfa99c2(0x3b8)){await vn(_0x7568b9);return;}if(_0x7568b9[_0xfa99c2(0x279)]==='evaluate'||_0x7568b9[_0xfa99c2(0x279)]===_0xfa99c2(0x214)||_0x7568b9['subcommand']==='verify'){await xn(_0x7568b9,_0x7568b9[_0xfa99c2(0x279)]);return;}if(_0x7568b9[_0xfa99c2(0x279)]===_0xfa99c2(0x379)){await $n(_0x7568b9);return;}if(_0x7568b9[_0xfa99c2(0x279)]==='transcribe'){await Nn(_0x7568b9);return;}if(_0x7568b9['subcommand']===_0xfa99c2(0x329)){await Pn(_0x7568b9);return;}if(_0x7568b9[_0xfa99c2(0x279)]===_0xfa99c2(0x394)){await _n(_0x7568b9);return;}if(_0x7568b9['subcommand']==='delegations'){await On(_0x7568b9);return;}if(_0x7568b9[_0xfa99c2(0x279)]===_0xfa99c2(0x322)){await jn(_0x7568b9);return;}if(_0x7568b9['subcommand']===_0xfa99c2(0x257)){await _0xb2d2c(_0x7568b9[_0xfa99c2(0x249)],{'runnerUrl':_0x7568b9['runnerUrl'],'backendUrl':_0x7568b9['backendUrl'],'interopPath':_0x7568b9['interopPath'],'workerId':_0x7568b9['workerId']});return;}if(_0x7568b9[_0xfa99c2(0x2bc)]){await cn();return;}await Wn(_0x7568b9);}var zn=process.env.NODE_ENV===_0x1a931e(0x387)||!!process.env.JEST_WORKER_ID;zn||Yn()['catch'](_0x666c99=>{const _0x194220=_0x1a931e;console[_0x194220(0x225)](_0x666c99[_0x194220(0x2aa)]||_0x666c99[_0x194220(0x3c3)]||_0x666c99),process[_0x194220(0x1e1)](0x1);});export{zt as CARTOGRAPHER_SKILLS,pe as EFFORT_TIERS,tn as IMPLICIT_STDIN_IDLE_MS,Se as buildInitOptions,Yn as main,Vt as parseArgs,en as readCliVersion,J as resolvePrompt,Xt as routeStdoutToStderr,m as writeCommandResult};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uipath/delegate-cli",
3
- "version": "1.208.0-preview.20261128200644",
3
+ "version": "1.208.0-preview.20261203124958",
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.208.0-preview.20261128200644"
25
+ "@uipath/delegate-sdk": "1.208.0-preview.20261203124958"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@types/node": "^22.0.0",