@uipath/delegate-cli 1.204.0-preview.20261020135613 → 1.204.0-preview.20261021081349

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 _0x205463=_0x1435;(function(_0x2f48dd,_0x295f24){const _0x5eb014=_0x1435,_0x3a1663=_0x2f48dd();while(!![]){try{const _0x181ef7=parseInt(_0x5eb014(0x19d))/0x1+-parseInt(_0x5eb014(0x29e))/0x2+parseInt(_0x5eb014(0x282))/0x3*(-parseInt(_0x5eb014(0x21b))/0x4)+parseInt(_0x5eb014(0x14a))/0x5*(-parseInt(_0x5eb014(0x276))/0x6)+-parseInt(_0x5eb014(0x208))/0x7*(-parseInt(_0x5eb014(0x220))/0x8)+parseInt(_0x5eb014(0x192))/0x9+parseInt(_0x5eb014(0x2c7))/0xa;if(_0x181ef7===_0x295f24)break;else _0x3a1663['push'](_0x3a1663['shift']());}catch(_0x4c006e){_0x3a1663['push'](_0x3a1663['shift']());}}}(_0x5336,0x825a3));const __dirname=import.meta.dirname;import _0x5adcf5 from'fs';import _0x1149fa from'path';import{clearLine as _0x16b5d7,createInterface as _0x2c5ed3,cursorTo as _0x43fd90}from'node:readline';import{BUSINESS_ANALYSIS_PRELOADED_SKILLS as _0x29095e,DelegateAgent as _0x3d1629,cancelTurn as _0x5adf81,InteropProcess as _0x4465dc,complete as _0x198846,DEFAULT_MODEL as _0x31b076,createBackendClient as _0x43fc0a,evaluate as _0x447759,isCompletionRequestError as _0x1fbb99,isEvaluationRequestError as _0xfd8426,isTranscriptionError as _0xab39f5,rerank as _0x35dc3e,transcribe as _0x5b45b5,verify as _0x2c3246,acceptDelegation as _0x4f706d,cancelDelegation as _0x1c506f,claimDelegation as _0x54828d,completeDelegation as _0x14d770,createDelegation as _0x58a7a8,deleteDelegation as _0x16f498,dismissDelegation as _0x293d93,getSessionDelegations as _0xce1f2d,isDelegationError as _0x5bbb7d,listDelegations as _0x192780,listOrgUsers as _0x5a0039,previewDelegation as _0x524f6a,TurnResultCollector as _0x241bd7,agentEventToJsonLine as _0x4d7438,describeBaseUrlRejection as _0x1ed09a,getActivitySummary as _0x2d76e0,getAuthFilePath as _0x29364f,getByoWarnings as _0x94fb68,getCartographerAllowance as _0x45b8e4,getDailyBreakdown as _0x1f4c08,getLicensingSummary as _0x499b3e,getMonthlySpending as _0x21d33d,isOutputFormat as _0x724727,isCloudBaseUrl as _0x2d3e8b,isSafeProjectFolderSegment as _0xe484c8,listModels as _0x328f17,listSessions as _0xe0737c,getSession as _0x5222ba,renameSession as _0xc9a249,deleteSession as _0x2b620f,deleteSessionTaskLog as _0x14ad33,forkSession as _0x1308a8,isBackendRequestError as _0x433fca,MAX_SESSION_PAGE_SIZE as _0x456d73,listTenants as _0x37def1,loadAndRefreshAuth as _0x25b0bd,loadAndRefreshSdkLogin as _0x3cd393,parsePlatformBaseUrl as _0x4b34d7,resolveBackendUrl as _0x58f72b,runHealthCheck as _0x2b6e4a,runHostCommand as _0x1e3278,runLoginFlow as _0x1b42c0,runTurnForResult as _0x185d06,saveAuthData as _0x23220b,switchTenant as _0xd4b98b,toJsonLine as _0x4fc92a,ENV_TO_CLOUD as _0x5ed554,OUTPUT_FORMATS as _0x2ab679}from'@uipath/delegate-sdk';var mt=[_0x205463(0x259),_0x205463(0x135),_0x205463(0x22f),'host',_0x205463(0x204),'whoami',_0x205463(0x1c4),'sessions',_0x205463(0x25a),_0x205463(0x12f),_0x205463(0x2ea),_0x205463(0x268),_0x205463(0x1b0),_0x205463(0x136),_0x205463(0x1c9),_0x205463(0x1f6)],W=['','models',_0x205463(0x26c),_0x205463(0x1c4),_0x205463(0x270),'usage',_0x205463(0x12f),_0x205463(0x2ea),_0x205463(0x268),_0x205463(0x1b0),_0x205463(0x136),_0x205463(0x1c9),_0x205463(0x1f6)],G=[_0x205463(0x193),_0x205463(0x216),_0x205463(0x26d),_0x205463(0x20b),_0x205463(0x240)],ft=_0x29095e;function p(_0x17903e,_0x41f62d,_0x51cfb7,_0x431e4f){const _0x2a14d8=_0x205463;let _0x3233a0=_0x17903e[_0x41f62d];return(!_0x3233a0||_0x3233a0[_0x2a14d8(0x24d)]>0x1&&_0x3233a0[_0x2a14d8(0x23a)]('-'))&&(console['error'](_0x51cfb7+'\x20requires\x20'+_0x431e4f+'.'),process[_0x2a14d8(0x2b2)](0x2)),_0x3233a0;}function N(_0x460bd2,_0x20f0e9,_0x24e541,_0x4f0bd3){const _0x486ee1=_0x205463;let _0x497345=p(_0x460bd2,_0x20f0e9,_0x24e541,_0x486ee1(0x23c)),_0x430102=Number(_0x497345);return(!/^\d+$/['test'](_0x497345)||_0x430102<0x1||!Number[_0x486ee1(0x15a)](_0x430102)||_0x4f0bd3!==void 0x0&&_0x430102>_0x4f0bd3)&&(console[_0x486ee1(0x2d9)](_0x24e541+_0x486ee1(0x2cd)+(_0x4f0bd3===void 0x0?_0x486ee1(0x1da):_0x486ee1(0x2e6)+_0x4f0bd3)+_0x486ee1(0x297)+_0x497345+'.'),process[_0x486ee1(0x2b2)](0x2)),_0x430102;}function ht(_0x55253c){const _0x39fad5=_0x205463;let _0x4f7ffa={'subcommand':'','prompt':'','print':!0x1,'keepAlive':!0x1,'cleanup':!0x1,'headless':!0x1,'noComputerUse':!0x1,'cartographer':!0x1,'noConnections':!0x1,'noSecurity':!0x1,'noMemory':!0x1,'taskAutomation':!0x1,'quiet':!0x1,'verbose':!0x1,'outputFormat':'text','preloadSkills':[],'attachments':[],'skipEnvCheck':!0x1,'includeSubAgents':!0x1,'operands':[],'help':!0x1,'version':!0x1};mt[_0x39fad5(0x16c)](_0x55253c[0x0])&&(_0x4f7ffa[_0x39fad5(0x28b)]=_0x55253c[0x0],_0x55253c=_0x55253c[_0x39fad5(0x184)](0x1));let _0xdf8bf3=[];for(let _0x227160=0x0;_0x227160<_0x55253c[_0x39fad5(0x24d)];_0x227160++){let _0xa77a47=_0x55253c[_0x227160];switch(_0xa77a47){case _0x39fad5(0x237):case'-p':_0x4f7ffa[_0x39fad5(0x29c)]=!0x0;break;case'--keep-alive':_0x4f7ffa[_0x39fad5(0x258)]=!0x0;break;case _0x39fad5(0x26f):_0x4f7ffa['cleanup']=!0x0;break;case _0x39fad5(0x14b):_0x4f7ffa['headless']=!0x0;break;case _0x39fad5(0x18a):_0x4f7ffa[_0x39fad5(0x2b3)]=!0x0;break;case _0x39fad5(0x29a):_0x4f7ffa[_0x39fad5(0x13c)]=!0x0,_0x4f7ffa[_0x39fad5(0x2b3)]=!0x0,_0x4f7ffa[_0x39fad5(0x22b)][_0x39fad5(0x2c8)](...ft);break;case _0x39fad5(0x163):_0x4f7ffa['noConnections']=!0x0;break;case _0x39fad5(0x201):_0x4f7ffa[_0x39fad5(0x164)]=!0x0;break;case _0x39fad5(0x172):_0x4f7ffa[_0x39fad5(0x24b)]=!0x0;break;case _0x39fad5(0x1ab):_0x4f7ffa['taskAutomation']=!0x0;break;case _0x39fad5(0x21a):case'-q':_0x4f7ffa[_0x39fad5(0x1c6)]=!0x0;break;case _0x39fad5(0x170):_0x4f7ffa[_0x39fad5(0x1fc)]=!0x0;break;case'--backend':_0x4f7ffa[_0x39fad5(0x271)]=_0x55253c[++_0x227160];break;case _0x39fad5(0x1d7):_0x4f7ffa['model']=_0x55253c[++_0x227160];break;case _0x39fad5(0x1a9):_0x4f7ffa[_0x39fad5(0x25f)]=_0x55253c[++_0x227160];break;case'--interop':_0x4f7ffa[_0x39fad5(0x146)]=_0x55253c[++_0x227160];break;case'--worker-id':_0x4f7ffa[_0x39fad5(0x2b5)]=_0x55253c[++_0x227160];break;case _0x39fad5(0x1f7):_0x4f7ffa[_0x39fad5(0x22b)][_0x39fad5(0x2c8)](p(_0x55253c,++_0x227160,_0xa77a47,'a\x20skill\x20name'));break;case _0x39fad5(0x243):{let _0x4810a8=p(_0x55253c,++_0x227160,_0xa77a47,_0x39fad5(0x291));_0xe484c8(_0x4810a8)||(console[_0x39fad5(0x2d9)](_0x39fad5(0x280)+_0x4810a8+'\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[_0x39fad5(0x2b2)](0x2)),_0x4f7ffa[_0x39fad5(0x26a)]=_0x4810a8;break;}case _0x39fad5(0x212):{let _0x24d066=p(_0x55253c,++_0x227160,_0xa77a47,'a\x20format\x20('+_0x2ab679[_0x39fad5(0x2d2)]('\x20|\x20')+')');_0x724727(_0x24d066)||(console['error']('Invalid\x20--output-format:\x20'+_0x24d066+_0x39fad5(0x1de)+_0x2ab679[_0x39fad5(0x2d2)](_0x39fad5(0x1bb))+'.'),process[_0x39fad5(0x2b2)](0x2)),_0x4f7ffa[_0x39fad5(0x2bb)]=_0x24d066;break;}case'--session':_0x4f7ffa[_0x39fad5(0x2e1)]=p(_0x55253c,++_0x227160,_0xa77a47,'a\x20session\x20id');break;case _0x39fad5(0x17f):_0x4f7ffa[_0x39fad5(0x275)]=N(_0x55253c,++_0x227160,_0xa77a47);break;case _0x39fad5(0x190):_0x4f7ffa[_0x39fad5(0x22a)]=N(_0x55253c,++_0x227160,_0xa77a47,_0x456d73);break;case _0x39fad5(0x25b):_0x4f7ffa[_0x39fad5(0x16a)]=!0x0;break;case _0x39fad5(0x21e):_0x4f7ffa[_0x39fad5(0x14e)]=p(_0x55253c,++_0x227160,_0xa77a47,_0x39fad5(0x1aa));break;case _0x39fad5(0x235):{let _0x84717=_0x1149fa[_0x39fad5(0x1d6)](process[_0x39fad5(0x149)](),p(_0x55253c,++_0x227160,_0xa77a47,'a\x20file\x20path'));_0x5adcf5[_0x39fad5(0x199)](_0x84717)||(console[_0x39fad5(0x2d9)]('--attach:\x20no\x20such\x20file\x20or\x20folder:\x20'+_0x84717),process[_0x39fad5(0x2b2)](0x2)),_0x4f7ffa[_0x39fad5(0x230)][_0x39fad5(0x2c8)](_0x84717);break;}case _0x39fad5(0x12e):_0x4f7ffa['turnId']=p(_0x55253c,++_0x227160,_0xa77a47,_0x39fad5(0x174));break;case _0x39fad5(0x20c):_0x4f7ffa[_0x39fad5(0x225)]=p(_0x55253c,++_0x227160,_0xa77a47,_0x39fad5(0x2b7));break;case _0x39fad5(0x205):_0x4f7ffa[_0x39fad5(0x132)]=p(_0x55253c,++_0x227160,_0xa77a47,'a\x20briefing\x20text');break;case _0x39fad5(0x16e):_0x4f7ffa[_0x39fad5(0x1a3)]=N(_0x55253c,++_0x227160,_0xa77a47,0x16d);break;case _0x39fad5(0x187):_0x4f7ffa[_0x39fad5(0x263)]=_0x1149fa[_0x39fad5(0x1d6)](process[_0x39fad5(0x149)](),p(_0x55253c,++_0x227160,_0xa77a47,_0x39fad5(0x1ef)));break;case _0x39fad5(0x1f4):_0x4f7ffa[_0x39fad5(0x2be)]=_0x1149fa[_0x39fad5(0x1d6)](process[_0x39fad5(0x149)](),p(_0x55253c,++_0x227160,_0xa77a47,_0x39fad5(0x1ef)));break;case _0x39fad5(0x252):{let _0x23c3a0=p(_0x55253c,++_0x227160,_0xa77a47,_0x39fad5(0x292));G[_0x39fad5(0x16c)](_0x23c3a0)||(console[_0x39fad5(0x2d9)](_0x39fad5(0x173)+_0x23c3a0+_0x39fad5(0x1de)+G[_0x39fad5(0x2d2)](_0x39fad5(0x1bb))+'.'),process[_0x39fad5(0x2b2)](0x2)),_0x4f7ffa[_0x39fad5(0x1ad)]=_0x23c3a0;break;}case _0x39fad5(0x1fa):{let _0x43352e=_0x55253c[++_0x227160];(!_0x43352e||_0x43352e[_0x39fad5(0x23a)]('--'))&&(console['error'](_0x39fad5(0x277)),process[_0x39fad5(0x2b2)](0x2)),_0x4f7ffa['tenant']=_0x43352e;break;}case _0x39fad5(0x2c1):{let _0xbc4138=_0x55253c[++_0x227160];[_0x39fad5(0x1d9),_0x39fad5(0x293),_0x39fad5(0x2e8),_0x39fad5(0x189)]['includes'](_0xbc4138)||(console['error'](_0x39fad5(0x1a4)+_0xbc4138+_0x39fad5(0x1df)),process[_0x39fad5(0x2b2)](0x2)),_0x4f7ffa[_0x39fad5(0x2bf)]=_0xbc4138;break;}case _0x39fad5(0x211):case _0x39fad5(0x2ad):{let _0x3a2801=p(_0x55253c,++_0x227160,_0xa77a47,_0x39fad5(0x2a9)),_0x4ceda4=_0x4b34d7(_0x3a2801);if(_0x4ceda4['ok']===!0x1){console[_0x39fad5(0x2d9)](_0x1ed09a(_0x3a2801,_0x4ceda4[_0x39fad5(0x241)])),process[_0x39fad5(0x2b2)](0x2);break;}_0x4f7ffa[_0x39fad5(0x221)]=_0x4ceda4[_0x39fad5(0x283)];break;}case'--skip-env-check':_0x4f7ffa[_0x39fad5(0x16d)]=!0x0;break;case'-h':case _0x39fad5(0x19e):_0x4f7ffa['help']=!0x0;break;case'-v':case'--version':_0x4f7ffa[_0x39fad5(0x251)]=!0x0;break;default:_0xa77a47[_0x39fad5(0x23a)]('--')&&(console['error']('Unknown\x20flag:\x20'+_0xa77a47),process['exit'](0x2)),_0xdf8bf3[_0x39fad5(0x2c8)](_0xa77a47);}}return _0x4f7ffa[_0x39fad5(0x135)]!==void 0x0&&_0x4f7ffa[_0x39fad5(0x28b)]!==_0x39fad5(0x259)&&(console[_0x39fad5(0x2d9)](_0x39fad5(0x16f)),process[_0x39fad5(0x2b2)](0x2)),_0x4f7ffa['url']!==void 0x0&&_0x4f7ffa[_0x39fad5(0x2bf)]!==void 0x0&&(console['error'](_0x39fad5(0x13e)),process['exit'](0x2)),_0x4f7ffa[_0x39fad5(0x221)]!==void 0x0&&_0x4f7ffa['subcommand']!==_0x39fad5(0x259)&&(console['error'](_0x39fad5(0x1c5)),process[_0x39fad5(0x2b2)](0x2)),_0x4f7ffa[_0x39fad5(0x1a3)]!==void 0x0&&_0x4f7ffa[_0x39fad5(0x28b)]!==_0x39fad5(0x25a)&&(console[_0x39fad5(0x2d9)]('--days\x20applies\x20to\x20`delegate-cli\x20usage\x20activity|daily`\x20only.'),process['exit'](0x2)),_0x4f7ffa[_0x39fad5(0x14e)]!==void 0x0&&(_0x4f7ffa['subcommand']!==_0x39fad5(0x1b0)&&_0x4f7ffa[_0x39fad5(0x28b)]!==''||_0x4f7ffa['cleanup'])&&(console[_0x39fad5(0x2d9)](_0x39fad5(0x27f)),process[_0x39fad5(0x2b2)](0x2)),_0x4f7ffa[_0x39fad5(0x230)][_0x39fad5(0x24d)]>0x0&&(_0x4f7ffa[_0x39fad5(0x28b)]!==''||_0x4f7ffa[_0x39fad5(0x131)])&&(console[_0x39fad5(0x2d9)](_0x39fad5(0x1fb)),process[_0x39fad5(0x2b2)](0x2)),_0x4f7ffa['taskAutomation']&&(_0x4f7ffa[_0x39fad5(0x28b)]!==''||_0x4f7ffa[_0x39fad5(0x131)])&&(console[_0x39fad5(0x2d9)]('--task-automation\x20applies\x20to\x20prompts\x20only.'),process[_0x39fad5(0x2b2)](0x2)),_0x4f7ffa[_0x39fad5(0x16b)]&&(_0x4f7ffa[_0x39fad5(0x15b)]||_0x4f7ffa[_0x39fad5(0x2b3)])&&(console[_0x39fad5(0x2d9)](_0x39fad5(0x1b1)),process[_0x39fad5(0x2b2)](0x2)),_0x4f7ffa['skipEnvCheck']&&_0x4f7ffa[_0x39fad5(0x28b)]!==_0x39fad5(0x259)&&(console[_0x39fad5(0x2d9)]('--skip-env-check\x20applies\x20to\x20`delegate-cli\x20login`\x20only.'),process[_0x39fad5(0x2b2)](0x2)),_0x4f7ffa[_0x39fad5(0x2bb)]!==_0x39fad5(0x2c4)&&!W['includes'](_0x4f7ffa[_0x39fad5(0x28b)])&&(console[_0x39fad5(0x2d9)](_0x39fad5(0x1b9)+_0x4f7ffa['outputFormat']+_0x39fad5(0x1a2)+W[_0x39fad5(0x1fd)](Boolean)[_0x39fad5(0x2d2)](',\x20')+'.'),process[_0x39fad5(0x2b2)](0x2)),(_0x4f7ffa['page']!==void 0x0||_0x4f7ffa[_0x39fad5(0x22a)]!==void 0x0||_0x4f7ffa[_0x39fad5(0x16a)])&&_0x4f7ffa[_0x39fad5(0x28b)]!=='sessions'&&(console[_0x39fad5(0x2d9)]('--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`delegate-cli\x20sessions`\x20only.'),process[_0x39fad5(0x2b2)](0x2)),(_0x4f7ffa['delegateTo']!==void 0x0||_0x4f7ffa['contextSummary']!==void 0x0)&&_0x4f7ffa['subcommand']!=='delegations'&&(console[_0x39fad5(0x2d9)](_0x39fad5(0x177)),process['exit'](0x2)),_0x4f7ffa[_0x39fad5(0x182)]!==void 0x0&&_0x4f7ffa['subcommand']!=='sessions'&&(console[_0x39fad5(0x2d9)](_0x39fad5(0x183)),process[_0x39fad5(0x2b2)](0x2)),_0x4f7ffa['preloadSkills']=[...new Set(_0x4f7ffa[_0x39fad5(0x22b)])],_0x4f7ffa[_0x39fad5(0x2e9)]=_0xdf8bf3,_0x4f7ffa[_0x39fad5(0x278)]=_0xdf8bf3[_0x39fad5(0x2d2)]('\x20'),_0x4f7ffa;}var S=_0x2f7c12=>{const _0x24c797=_0x205463;process[_0x24c797(0x143)][_0x24c797(0x1ca)](_0x2f7c12);};function gt(){const _0x4541e7=_0x205463;let _0x4baed9=process[_0x4541e7(0x143)]['write'],_0x372987=_0x4baed9[_0x4541e7(0x159)](process[_0x4541e7(0x143)]),_0x2d5b30=S;return S=_0x5e877c=>{_0x372987(_0x5e877c);},process['stdout']['write']=(..._0x5d21cf)=>process['stderr'][_0x4541e7(0x1ca)](..._0x5d21cf),()=>{const _0x563557=_0x4541e7;process['stdout'][_0x563557(0x1ca)]=_0x4baed9,S=_0x2d5b30;};}function l(_0x313801,_0x3cd04c,_0x1b286b){const _0x4e6d7c=_0x205463;if(_0x313801['outputFormat']===_0x4e6d7c(0x2c4)){_0x1b286b(_0x3cd04c);return;}S(_0x4fc92a(_0x3cd04c));}function wt(){const _0xdadf61=_0x205463;let _0x4d5cbb=_0xdadf61(0x2a0)[_0xdadf61(0x2a3)]();console['log'](_0x4d5cbb);}function yt(){const _0x2fbd93=_0x205463;try{return JSON[_0x2fbd93(0x196)](_0x5adcf5[_0x2fbd93(0x2f1)](_0x1149fa['join'](__dirname,'..',_0x2fbd93(0x2f2)),'utf-8'))[_0x2fbd93(0x251)]||_0x2fbd93(0x2d6);}catch{return'unknown';}}var kt=0x7d0;async function K(_0x30b2b5,_0x25feee){const _0x5245e8=_0x205463;let _0x4801d6=_0x25feee?[_0x25feee]:[];for await(let _0x5674d8 of _0x30b2b5)_0x4801d6['push'](Buffer[_0x5245e8(0x140)](_0x5674d8));return Buffer[_0x5245e8(0x2a7)](_0x4801d6)[_0x5245e8(0x2d0)](_0x5245e8(0x17a))[_0x5245e8(0x2a3)]();}function St(_0x5b053d,_0x24fe92){return new Promise(_0x42bdca=>{const _0x44fa34=_0x1435;let _0x4bc432=_0x5e7847=>{const _0xac5f3f=_0x1435;clearTimeout(_0x3aaf00),_0x5b053d[_0xac5f3f(0x265)](_0xac5f3f(0x185),_0x10d337),_0x5b053d[_0xac5f3f(0x265)](_0xac5f3f(0x23e),_0x19d0de),_0x5b053d['off'](_0xac5f3f(0x2d9),_0x19d0de),_0x5b053d['pause'](),_0x42bdca(_0x5e7847);},_0x10d337=_0x23cd85=>_0x4bc432(Buffer[_0x44fa34(0x140)](_0x23cd85)),_0x19d0de=()=>_0x4bc432(null),_0x3aaf00=setTimeout(()=>_0x4bc432(null),_0x24fe92);_0x5b053d['on'](_0x44fa34(0x185),_0x10d337),_0x5b053d['on']('end',_0x19d0de),_0x5b053d['on'](_0x44fa34(0x2d9),_0x19d0de),_0x5b053d['resume']();});}async function I(_0x20c520,_0x42f361,_0x279888=kt){const _0x3a26da=_0x205463;let _0x3d0e4f=_0x20c520==='-';if(!_0x3d0e4f&&_0x20c520)return _0x20c520;if(!_0x3d0e4f&&_0x42f361[_0x3a26da(0x2b4)])return'';if(_0x3d0e4f)return K(_0x42f361,null);let _0xff9cf4=await St(_0x42f361,_0x279888);return _0xff9cf4?K(_0x42f361,_0xff9cf4):'';}function L(){const _0x20303d=_0x205463;return _0x1149fa[_0x20303d(0x2d2)](process.env.HOME||process.env.USERPROFILE||'',_0x20303d(0x298),'auth.json');}function $(_0x1033dc){const _0x54a63a=_0x205463;try{let _0x3518cb=JSON[_0x54a63a(0x196)](_0x5adcf5['readFileSync'](_0x1033dc,_0x54a63a(0x17a)));return!_0x3518cb['accessToken']||!_0x3518cb['tenantId']||!_0x3518cb[_0x54a63a(0x1e8)]?null:_0x3518cb;}catch{return null;}}function bt(){const _0x4fd0ad=_0x205463;let _0x1b8007=[{'file':_0x29364f(),'isDesktopFallback':!0x1},{'file':L(),'isDesktopFallback':!0x0}];for(let _0x440f45 of _0x1b8007){let _0x5778ca=$(_0x440f45[_0x4fd0ad(0x1db)]);if(_0x5778ca)return{..._0x440f45,'auth':_0x5778ca};}return null;}async function vt(){const _0x5d3c38=_0x205463;let _0x15b528=_0x29364f();if(!_0x5adcf5[_0x5d3c38(0x199)](_0x15b528)){let _0x44b5ff=L();console[_0x5d3c38(0x1ac)]($(_0x44b5ff)?_0x5d3c38(0x2a1)+_0x44b5ff+_0x5d3c38(0x23b):'No\x20CLI\x20login\x20found\x20—\x20nothing\x20to\x20remove.');return;}_0x5adcf5[_0x5d3c38(0x2dd)](_0x15b528),console[_0x5d3c38(0x1ac)](_0x5d3c38(0x28f)+_0x15b528);}async function At(_0x3fd440){const _0x179d26=_0x205463;let _0x214727=O(),_0x15035b,_0x1652d3;if(_0x214727)_0x15035b=_0x214727,_0x1652d3=_0x179d26(0x24e);else{let _0x551a41=bt();if(!_0x551a41)throw new Error(le);_0x15035b=_0x551a41[_0x179d26(0x1b8)],_0x1652d3=_0x551a41[_0x179d26(0x180)]?_0x551a41[_0x179d26(0x1db)]+'\x20(Delegate\x20desktop\x20app\x20fallback)':_0x551a41['file'];}let _0x17b67d={'source':_0x1652d3,'baseUrl':_0x15035b[_0x179d26(0x283)]??null,'deployment':Et(_0x15035b[_0x179d26(0x283)]),'organization':{'id':_0x15035b[_0x179d26(0x1e8)],'slug':_0x15035b['orgLogicalName']??null},'tenant':{'id':_0x15035b[_0x179d26(0x264)],'name':_0x15035b[_0x179d26(0x274)]??null},'tokenExpiresAt':_0x15035b[_0x179d26(0x1bf)]?new Date(_0x15035b['expiresAt']*0x3e8)[_0x179d26(0x2dc)]():null};l(_0x3fd440,_0x17b67d,()=>{const _0x1c64ab=_0x179d26;let _0x53e2ba=[_0x1c64ab(0x244)+_0x1652d3,_0x1c64ab(0x254)+(_0x15035b[_0x1c64ab(0x283)]??'unknown'),_0x1c64ab(0x2ee)+_0x17b67d[_0x1c64ab(0x224)],_0x1c64ab(0x238)+(_0x15035b['orgLogicalName']??_0x1c64ab(0x1d0))+'\x20('+_0x15035b['organizationId']+')',_0x1c64ab(0x2f4)+(_0x15035b[_0x1c64ab(0x274)]??_0x1c64ab(0x1d0))+'\x20('+_0x15035b[_0x1c64ab(0x264)]+')'];if(_0x15035b[_0x1c64ab(0x1bf)]){let _0x32645a=_0x15035b[_0x1c64ab(0x1bf)]-Math[_0x1c64ab(0x17e)](Date[_0x1c64ab(0x1f3)]()/0x3e8);_0x53e2ba[_0x1c64ab(0x2c8)](_0x32645a>0x0?_0x1c64ab(0x294)+_0x17b67d[_0x1c64ab(0x2eb)]+_0x1c64ab(0x1c2)+Math['round'](_0x32645a/0x3c)+_0x1c64ab(0x21d):_0x1c64ab(0x1d3)+_0x17b67d[_0x1c64ab(0x2eb)]);}process[_0x1c64ab(0x143)]['write'](_0x53e2ba[_0x1c64ab(0x2d2)]('\x0a')+'\x0a');});}var le=_0x205463(0x1b4);function Et(_0x51654d){const _0x4a5778=_0x205463;return _0x51654d?_0x2d3e8b(_0x51654d)?_0x4a5778(0x22d):'self-hosted\x20(Automation\x20Suite\x20/\x20Dedicated)':'unknown';}function O(){let _0x4ee884=process.env.AUTH_TOKEN_FILE;return(process.env.AUTH_TOKEN||_0x4ee884)&&process.env.TENANT_ID&&process.env.ORG_ID?{'accessToken':_0x4ee884?It(_0x4ee884):process.env.AUTH_TOKEN,..._0x4ee884?{'accessTokenFile':_0x4ee884}:{},'tenantId':process.env.TENANT_ID,'organizationId':process.env.ORG_ID,'orgLogicalName':process.env.ORG_SLUG,'tenantName':process.env.TENANT_SLUG,'baseUrl':ce()}:null;}function It(_0x36651d){const _0x9bdd3f=_0x205463;let _0x2e0d7d;try{_0x2e0d7d=_0x5adcf5[_0x9bdd3f(0x2f1)](_0x36651d,_0x9bdd3f(0x17a))['trim']();}catch(_0x48627a){throw new Error(_0x9bdd3f(0x202)+_0x36651d+_0x9bdd3f(0x19f)+_0x48627a['message']);}let _0x5e13d9=_0x2e0d7d[_0x9bdd3f(0x23a)](_0x9bdd3f(0x2ef))?_0x2e0d7d[_0x9bdd3f(0x184)](0x7)[_0x9bdd3f(0x2a3)]():_0x2e0d7d;if(!_0x5e13d9)throw new Error(_0x9bdd3f(0x202)+_0x36651d+'\x27\x20is\x20empty.');return _0x5e13d9;}function ce(){const _0xe596b4=_0x205463;let _0x42e573=process.env.UIPATH_BASE_URL;if(!_0x42e573)return;let _0x51e6e3=_0x4b34d7(_0x42e573);if(_0x51e6e3['ok']===!0x1)throw new Error(_0xe596b4(0x1b2)+_0x1ed09a(_0x42e573,_0x51e6e3[_0xe596b4(0x241)]));return _0x51e6e3[_0xe596b4(0x283)];}async function P(){let _0x4c41ba=O();if(_0x4c41ba)return _0x4c41ba;let _0x3ac03c=await _0x25b0bd();if(_0x3ac03c)return _0x3ac03c;throw new Error(le);}async function $t(){const _0x3e7074=_0x205463;await new _0x4465dc()['stop']({'force':!0x0}),console[_0x3e7074(0x1ac)]('Interop\x20stopped\x20(if\x20it\x20was\x20running).');}function F(_0x20e8b8,_0x45af8e,_0x4b2414){const _0x3a2742=_0x205463;_0x20e8b8?process[_0x3a2742(0x26b)][_0x3a2742(0x1ca)]('[env='+_0x20e8b8+_0x3a2742(0x195)+_0x4b2414+'\x0a'):!_0x45af8e&&!process.env.BACKEND_URL&&process['stderr'][_0x3a2742(0x1ca)](_0x3a2742(0x154)+_0x4b2414+'\x0a');}function _0x1435(_0x2c36b5,_0x5704c4){_0x2c36b5=_0x2c36b5-0x12e;const _0x533693=_0x5336();let _0x1435ad=_0x533693[_0x2c36b5];return _0x1435ad;}async function f(_0x218f30){const _0x5941cd=_0x205463;let _0x4053a1=await P(),_0x33c359=_0x58f72b(_0x218f30[_0x5941cd(0x2bf)],_0x4053a1,_0x218f30[_0x5941cd(0x271)]);return F(_0x218f30[_0x5941cd(0x2bf)],_0x218f30[_0x5941cd(0x271)],_0x33c359),{'auth':_0x4053a1,'backendUrl':_0x33c359,'client':_0x43fc0a({'auth':_0x4053a1,'backendUrl':_0x33c359})};}async function Tt(_0x10da03){const _0x22e793=_0x205463;let {client:_0x372ddb}=await f(_0x10da03),[_0x770a02,_0x4bbdb5]=await Promise[_0x22e793(0x1e7)]([_0x328f17(_0x372ddb),_0x94fb68(_0x372ddb)[_0x22e793(0x231)](_0x49d105=>(process[_0x22e793(0x26b)]['write'](_0x22e793(0x262)+(_0x49d105 instanceof Error?_0x49d105[_0x22e793(0x2ba)]:String(_0x49d105))+'\x0a'),{}))]),_0x367c9b=_0x770a02[_0x22e793(0x14c)](_0x1fdaf8=>_0x4bbdb5[_0x1fdaf8['id']]?{..._0x1fdaf8,'byoWarning':_0x4bbdb5[_0x1fdaf8['id']]}:_0x1fdaf8);l(_0x10da03,_0x367c9b,xt);}function xt(_0x22e30b){const _0x4ed544=_0x205463;if(_0x22e30b[_0x4ed544(0x24d)]===0x0){process[_0x4ed544(0x26b)][_0x4ed544(0x1ca)](_0x4ed544(0x1d5));return;}process[_0x4ed544(0x143)][_0x4ed544(0x1ca)](_0x4ed544(0x250)+_0x22e30b[_0x4ed544(0x24d)]+'):\x0a\x0a');for(let _0x43f9e2 of _0x22e30b){let _0x5aece4=_0x43f9e2['name']&&_0x43f9e2[_0x4ed544(0x269)]!==_0x43f9e2['id']?'\x20('+_0x43f9e2[_0x4ed544(0x269)]+')':'';process[_0x4ed544(0x143)][_0x4ed544(0x1ca)]('\x20\x20'+_0x43f9e2['id']+_0x5aece4+'\x0a'),_0x43f9e2[_0x4ed544(0x24c)]&&process[_0x4ed544(0x143)][_0x4ed544(0x1ca)]('\x20\x20\x20\x20'+_0x43f9e2[_0x4ed544(0x24c)]+'\x0a'),_0x43f9e2['locked']&&process[_0x4ed544(0x143)][_0x4ed544(0x1ca)]('\x20\x20\x20\x20Not\x20available\x20on\x20this\x20plan'+(_0x43f9e2[_0x4ed544(0x15f)]?'\x20('+_0x43f9e2['lockReason']+')':'')+'\x0a'),_0x43f9e2['byoWarning']&&process['stdout'][_0x4ed544(0x1ca)](_0x4ed544(0x200)+_0x43f9e2[_0x4ed544(0x287)]+'\x0a');}process[_0x4ed544(0x143)][_0x4ed544(0x1ca)](_0x4ed544(0x227));}var z=[_0x205463(0x2c0),_0x205463(0x299),_0x205463(0x1ba),'delete','cancel',_0x205463(0x17d)];async function Dt(_0x4237e4){const _0x894744=_0x205463;let [_0x51cc65='',_0x25f590='',..._0x22b0a3]=_0x4237e4[_0x894744(0x2e9)];if(_0x51cc65&&!z[_0x894744(0x16c)](_0x51cc65)&&(console[_0x894744(0x2d9)](_0x894744(0x2c9)+_0x51cc65+'.\x20Use:\x20'+z['join'](_0x894744(0x1bb))+'.'),process[_0x894744(0x2b2)](0x2)),_0x4237e4[_0x894744(0x182)]!==void 0x0&&_0x51cc65!==_0x894744(0x2ae)&&(console[_0x894744(0x2d9)](_0x894744(0x183)),process[_0x894744(0x2b2)](0x2)),_0x51cc65&&_0x51cc65!==_0x894744(0x2c0)){await Ut(_0x4237e4,_0x51cc65,_0x25f590,_0x22b0a3[_0x894744(0x2d2)]('\x20')['trim']());return;}_0x4237e4[_0x894744(0x2e9)]['length']>0x1&&(console['error'](_0x894744(0x171)),process[_0x894744(0x2b2)](0x2));let {client:_0x56227e}=await f(_0x4237e4),_0x261b11=await _0xe0737c(_0x56227e,{'page':_0x4237e4[_0x894744(0x275)],'pageSize':_0x4237e4[_0x894744(0x22a)],'includeSubAgents':_0x4237e4[_0x894744(0x16a)]});l(_0x4237e4,_0x261b11,Rt);}async function Ut(_0x39d26e,_0x5d27aa,_0x1326f7,_0x32f0b5){const _0x1d5df0=_0x205463;if((_0x39d26e['page']!==void 0x0||_0x39d26e[_0x1d5df0(0x22a)]!==void 0x0||_0x39d26e[_0x1d5df0(0x16a)])&&(console[_0x1d5df0(0x2d9)](_0x1d5df0(0x272)),process[_0x1d5df0(0x2b2)](0x2)),_0x5d27aa==='cancel'){await Nt(_0x39d26e,_0x1326f7,_0x32f0b5);return;}if(_0x5d27aa===_0x1d5df0(0x17d)){await Ct(_0x39d26e,_0x1326f7,_0x32f0b5);return;}(!_0x1326f7||_0x5d27aa==='rename'!=!!_0x32f0b5)&&(console[_0x1d5df0(0x2d9)](_0x1d5df0(0x2df)+_0x5d27aa+_0x1d5df0(0x2b8)+(_0x5d27aa===_0x1d5df0(0x1ba)?_0x1d5df0(0x1ae):'')),process[_0x1d5df0(0x2b2)](0x2));let {client:_0x395ee1}=await f(_0x39d26e);try{if(_0x5d27aa===_0x1d5df0(0x299)){let _0xfb6394=await _0x5222ba(_0x395ee1,_0x1326f7);_0xfb6394||V(_0x1326f7),l(_0x39d26e,_0xfb6394,_t);}else{if(_0x5d27aa===_0x1d5df0(0x1ba)){let _0x2a54ca=await _0xc9a249(_0x395ee1,_0x1326f7,_0x32f0b5);l(_0x39d26e,_0x2a54ca,_0x1b11ec=>{const _0x939091=_0x1d5df0;process[_0x939091(0x143)][_0x939091(0x1ca)](_0x939091(0x2b9)+_0x1b11ec['id']+':\x20'+_0x1b11ec[_0x939091(0x2ac)]+'\x0a');});}else await _0x2b620f(_0x395ee1,_0x1326f7),await _0x14ad33(_0x1326f7,_0x39d26e[_0x1d5df0(0x263)]),l(_0x39d26e,{'id':_0x1326f7,'deleted':!0x0},_0x17d889=>{const _0x3c9d4b=_0x1d5df0;process[_0x3c9d4b(0x143)][_0x3c9d4b(0x1ca)](_0x3c9d4b(0x178)+_0x17d889['id']+'.\x0a');});}}catch(_0x2dcbc9){if(!_0x433fca(_0x2dcbc9,0x194))throw _0x2dcbc9;V(_0x1326f7);}}function V(_0x2f8477){const _0x4a2eb8=_0x205463;console['error']('Session\x20'+_0x2f8477+_0x4a2eb8(0x27b)),process[_0x4a2eb8(0x2b2)](0x1);}function _t(_0x1e30e7){const _0x165a1d=_0x205463;process['stdout']['write'](_0x165a1d(0x222)+_0x1e30e7['id']+'\x0a'),process[_0x165a1d(0x143)][_0x165a1d(0x1ca)](_0x165a1d(0x28a)+_0x1e30e7[_0x165a1d(0x2ac)]+'\x0a'),process[_0x165a1d(0x143)][_0x165a1d(0x1ca)](_0x165a1d(0x2db)+_0x1e30e7['userId']+'\x0a'),process[_0x165a1d(0x143)]['write']('Organization\x20\x20'+_0x1e30e7['organizationId']+'\x0a'),_0x1e30e7['delegationId']&&process[_0x165a1d(0x143)][_0x165a1d(0x1ca)]('Delegation\x20\x20\x20\x20'+_0x1e30e7[_0x165a1d(0x2b1)]+'\x0a');}async function Nt(_0xe9d06b,_0x40a11c,_0xde184f){const _0x16da3f=_0x205463;(!_0x40a11c||_0xde184f||!_0xe9d06b[_0x16da3f(0x182)])&&(console[_0x16da3f(0x2d9)](_0x16da3f(0x266)),process[_0x16da3f(0x2b2)](0x2));let {client:_0x53731f}=await f(_0xe9d06b),_0x1c350e=await _0x5adf81(_0x53731f,_0x40a11c,_0xe9d06b[_0x16da3f(0x182)]);l(_0xe9d06b,{'sessionId':_0x40a11c,'turnId':_0xe9d06b['turnId'],'cancelled':_0x1c350e},_0x2f3b4c=>{const _0x5596bc=_0x16da3f;_0x2f3b4c[_0x5596bc(0x1e2)]?process[_0x5596bc(0x143)][_0x5596bc(0x1ca)](_0x5596bc(0x1be)+_0x2f3b4c[_0x5596bc(0x182)]+_0x5596bc(0x1cf)+_0x2f3b4c[_0x5596bc(0x2e1)]+'.\x0a'):process[_0x5596bc(0x26b)][_0x5596bc(0x1ca)](_0x5596bc(0x18b)+_0x2f3b4c[_0x5596bc(0x182)]+'\x20in\x20progress\x20on\x20session\x20'+_0x2f3b4c['sessionId']+'.\x0a');}),_0x1c350e||(process[_0x16da3f(0x1b7)]=0x1);}async function Ct(_0x71da8,_0x13eb21,_0x1af14b){const _0x1a27b6=_0x205463;(!_0x13eb21||/\s/[_0x1a27b6(0x24a)](_0x1af14b))&&(console['error'](_0x1a27b6(0x1ee)),process[_0x1a27b6(0x2b2)](0x2));let {client:_0x29c4f0}=await f(_0x71da8),_0x188a0e;try{_0x188a0e=await _0x1308a8(_0x29c4f0,_0x13eb21,{'atMessageId':_0x1af14b||void 0x0});}catch(_0x5546bd){if(!_0x433fca(_0x5546bd,0x194))throw _0x5546bd;console[_0x1a27b6(0x2d9)]('Session\x20'+_0x13eb21+_0x1a27b6(0x1e4)+(_0x1af14b?_0x1a27b6(0x256)+_0x1af14b:'')+'.'),process[_0x1a27b6(0x2b2)](0x1);}l(_0x71da8,_0x188a0e,_0x2bbc3c=>{const _0x45e24c=_0x1a27b6;process['stdout']['write'](_0x45e24c(0x20f)+_0x13eb21+_0x45e24c(0x28e)+_0x2bbc3c['id']+'.\x0a'),process[_0x45e24c(0x26b)][_0x45e24c(0x1ca)](_0x45e24c(0x160)+_0x2bbc3c['id']+_0x45e24c(0x2f5));});}function Rt({sessions:_0xe2d611,page:_0x502ea1,isLastPage:_0x253f74}){const _0x8852d1=_0x205463;if(_0xe2d611['length']===0x0)process['stderr'][_0x8852d1(0x1ca)](_0x8852d1(0x145)+_0x502ea1+'.\x0a');else{process['stdout'][_0x8852d1(0x1ca)]('ID'['padEnd'](0x24)+'\x20\x20'+'UPDATED'[_0x8852d1(0x2d4)](0x13)+_0x8852d1(0x242));for(let _0x3f9a2a of _0xe2d611){let _0x224589=_0x3f9a2a[_0x8852d1(0x1c7)]['replace']('T','\x20')['slice'](0x0,0x13),_0x4c4cbc=_0x3f9a2a[_0x8852d1(0x13b)]?_0x8852d1(0x19c)+_0x3f9a2a[_0x8852d1(0x13b)]+')':'';process[_0x8852d1(0x143)]['write'](_0x3f9a2a['id']['padEnd'](0x24)+'\x20\x20'+_0x224589[_0x8852d1(0x2d4)](0x13)+'\x20\x20'+_0x3f9a2a[_0x8852d1(0x2ac)]+_0x4c4cbc+'\x0a');}}_0x253f74||process[_0x8852d1(0x26b)][_0x8852d1(0x1ca)](_0x8852d1(0x2e3)+(_0x502ea1+0x1)+'\x0a');}async function Lt(_0x380177){const _0x37df23=_0x205463;let _0x5df648=await P(),_0x20b7b9=_0x58f72b(_0x380177[_0x37df23(0x2bf)],_0x5df648,_0x380177[_0x37df23(0x271)]);F(_0x380177[_0x37df23(0x2bf)],_0x380177[_0x37df23(0x271)],_0x20b7b9);let _0x4d05c8=await _0x2b6e4a({'auth':_0x5df648,'backendUrl':_0x20b7b9,'interop':_0x380177[_0x37df23(0x15b)]?_0x37df23(0x166):_0x37df23(0x296)});l(_0x380177,_0x4d05c8,({checks:_0xcc55ab})=>{for(let _0x220446 of _0xcc55ab)process['stdout']['write'](Ot(_0x220446)+'\x0a');}),_0x4d05c8['ok']||process[_0x37df23(0x2b2)](0x1);}function Ot(_0x2ad9df){const _0xccd8cd=_0x205463;return{'ok':'✓','failed':'✗','skipped':'-'}[_0x2ad9df[_0xccd8cd(0x1af)]]+'\x20'+_0x2ad9df[_0xccd8cd(0x269)][_0xccd8cd(0x2d4)](0xa)+_0x2ad9df[_0xccd8cd(0x219)];}var Pt=['',_0x205463(0x1d2),_0x205463(0x289)];async function Ft(_0x42c2fe){const _0x42f5b3=_0x205463;let _0x825708=_0x42c2fe['prompt'];Pt[_0x42f5b3(0x16c)](_0x825708)||(console[_0x42f5b3(0x2d9)](_0x42f5b3(0x153)+_0x42c2fe['prompt']+_0x42f5b3(0x2f3)),process[_0x42f5b3(0x2b2)](0x2)),_0x825708===''&&_0x42c2fe[_0x42f5b3(0x1a3)]!==void 0x0&&(console['error'](_0x42f5b3(0x26e)),process['exit'](0x2)),_0x825708!==''&&_0x42c2fe[_0x42f5b3(0x2e1)]!==void 0x0&&(console[_0x42f5b3(0x2d9)](_0x42f5b3(0x2cf)),process['exit'](0x2));let {client:_0x11e0f4}=await f(_0x42c2fe);if(_0x825708===_0x42f5b3(0x1d2)){l(_0x42c2fe,await _0x2d76e0(_0x11e0f4,{'days':_0x42c2fe[_0x42f5b3(0x1a3)]}),Mt);return;}if(_0x825708===_0x42f5b3(0x289)){l(_0x42c2fe,await _0x1f4c08(_0x11e0f4,{'days':_0x42c2fe['days']}),Bt);return;}let [_0x2f4254,_0x4efd0e,_0x48e31c]=await Promise[_0x42f5b3(0x1e7)]([_0x499b3e(_0x11e0f4,{'sessionId':_0x42c2fe[_0x42f5b3(0x2e1)]}),_0x21d33d(_0x11e0f4),_0x45b8e4(_0x11e0f4)]);l(_0x42c2fe,{'licensing':_0x2f4254,'monthlySpending':_0x4efd0e,'cartographerAllowance':_0x48e31c},jt);}function jt(_0x445fbe){const _0x229464=_0x205463;let {licensing:_0x177edc,monthlySpending:_0xc7e5c4,cartographerAllowance:_0x26de01}=_0x445fbe,_0x411731=[_0x177edc['limit_enabled']?_0x229464(0x248)+_0x177edc[_0x229464(0x167)]['toFixed'](0x1)+_0x229464(0x1d1)+(_0x177edc[_0x229464(0x29f)]??0x0)+_0x229464(0x1a8)+(_0x177edc[_0x229464(0x2a8)]>0x0?',\x20'+_0x177edc['extra_pool_consumed_pu']+_0x229464(0x194):'')+'\x20(resets\x20'+_0x177edc[_0x229464(0x19a)]+')':'Licensing:\x20\x20\x20\x20no\x20licensing\x20quota\x20applies','Spending:\x20\x20\x20\x20\x20$'+_0xc7e5c4['monthly_spend_usd']['toFixed'](0x2)+_0x229464(0x1a5)+(_0xc7e5c4[_0x229464(0x21c)]&&_0xc7e5c4[_0x229464(0x2e7)]!==null?'\x20of\x20a\x20$'+_0xc7e5c4[_0x229464(0x2e7)][_0x229464(0x15d)](0x2)+_0x229464(0x1c8):'\x20(no\x20cap\x20enforced)'),_0x229464(0x1f8)+_0x26de01[_0x229464(0x175)]+'\x20('+_0x26de01[_0x229464(0x18d)]+')'];_0x177edc[_0x229464(0x1cd)]!==null&&_0x177edc[_0x229464(0x1cd)]!==void 0x0&&_0x411731[_0x229464(0x2c8)](_0x229464(0x2bc)+_0x177edc['session_consumed_pu']+_0x229464(0x138)),process[_0x229464(0x143)][_0x229464(0x1ca)](_0x411731['join']('\x0a')+'\x0a');}function Mt(_0x49557f){const _0x5b0fc4=_0x205463;let _0x34f0e9=[_0x5b0fc4(0x2da)+_0x49557f['period_days']+_0x5b0fc4(0x2cb)+_0x49557f['total_sessions']+_0x5b0fc4(0x2d7)+_0x49557f[_0x5b0fc4(0x158)]+_0x5b0fc4(0x2c3),'Cost:\x20\x20\x20$'+_0x49557f[_0x5b0fc4(0x24f)][_0x5b0fc4(0x15d)](0x2)+_0x5b0fc4(0x233)+_0x49557f[_0x5b0fc4(0x209)][_0x5b0fc4(0x15d)](0x2)+_0x5b0fc4(0x18e)+_0x49557f[_0x5b0fc4(0x255)]+'\x20token\x20units)','Tokens:\x20'+_0x49557f[_0x5b0fc4(0x15c)]+_0x5b0fc4(0x139)+_0x49557f[_0x5b0fc4(0x1a6)]+_0x5b0fc4(0x18c)];for(let [_0x26b217,_0x1e5a5b]of Object[_0x5b0fc4(0x19b)](_0x49557f[_0x5b0fc4(0x1a7)]))_0x34f0e9[_0x5b0fc4(0x2c8)]('\x20\x20'+_0x26b217+':\x20'+_0x1e5a5b+_0x5b0fc4(0x236));process[_0x5b0fc4(0x143)][_0x5b0fc4(0x1ca)](_0x34f0e9[_0x5b0fc4(0x2d2)]('\x0a')+'\x0a');}function Bt(_0x351261){const _0x304c02=_0x205463;if(_0x351261[_0x304c02(0x1b6)][_0x304c02(0x24d)]===0x0){process['stdout'][_0x304c02(0x1ca)](_0x304c02(0x288)+_0x351261[_0x304c02(0x223)]+_0x304c02(0x2cc));return;}let _0x2d5e8d=[_0x304c02(0x134)];for(let _0x25500f of _0x351261[_0x304c02(0x1b6)])_0x2d5e8d[_0x304c02(0x2c8)](_0x25500f[_0x304c02(0x2aa)]+'\x20\x20'+String(_0x25500f[_0x304c02(0x169)])['padStart'](0xb)+'\x20\x20'+String(_0x25500f[_0x304c02(0x181)])[_0x304c02(0x162)](0xd)+'\x20\x20'+String(_0x25500f[_0x304c02(0x1fe)])[_0x304c02(0x162)](0x11));process['stdout'][_0x304c02(0x1ca)](_0x2d5e8d[_0x304c02(0x2d2)]('\x0a')+'\x0a');}async function Ht(_0x141f64,_0x178bc9){const _0x18fecb=_0x205463;let _0x439cff=await qt(_0x141f64['prompt'],_0x178bc9);_0x141f64[_0x18fecb(0x14d)]&&(_0x439cff[_0x18fecb(0x14d)]=_0x141f64[_0x18fecb(0x14d)]);let {client:_0x80535d}=await f(_0x141f64);try{_0x178bc9===_0x18fecb(0x12f)?l(_0x141f64,await _0x447759(_0x80535d,_0x439cff,void 0x0),Wt):_0x178bc9===_0x18fecb(0x2ea)?l(_0x141f64,await _0x35dc3e(_0x80535d,_0x439cff,void 0x0),Gt):l(_0x141f64,await _0x2c3246(_0x80535d,_0x439cff,void 0x0),Kt);}catch(_0x540acc){if(!_0xfd8426(_0x540acc))throw _0x540acc;console[_0x18fecb(0x2d9)](_0x540acc['message']),process[_0x18fecb(0x2b2)](0x1);}}async function qt(_0x47c9a1,_0x2ad0f4){const _0x15f28a=_0x205463;let _0x5ad1fe;try{_0x5ad1fe=_0x47c9a1&&_0x47c9a1!=='-'?_0x5adcf5[_0x15f28a(0x2f1)](_0x1149fa[_0x15f28a(0x1d6)](_0x47c9a1),_0x15f28a(0x17a)):await I(_0x47c9a1,process[_0x15f28a(0x2b6)]);}catch(_0x18ca3a){console[_0x15f28a(0x2d9)](_0x2ad0f4+_0x15f28a(0x27d)+_0x18ca3a[_0x15f28a(0x2ba)]+').'),process[_0x15f28a(0x2b2)](0x2);}return _0x5ad1fe||(console[_0x15f28a(0x2d9)](_0x2ad0f4+_0x15f28a(0x2a4)+_0x2ad0f4+_0x15f28a(0x186)),process['exit'](0x2)),de(_0x5ad1fe,_0x2ad0f4,_0x15f28a(0x2a2));}function de(_0x5814e8,_0x3aed0c,_0x5e7c95){const _0x30d601=_0x205463;let _0x35b907;try{_0x35b907=JSON['parse'](_0x5814e8);}catch(_0x4a994a){console[_0x30d601(0x2d9)](_0x3aed0c+':\x20'+_0x5e7c95+_0x30d601(0x151)+_0x4a994a['message']+').'),process['exit'](0x2);}return(typeof _0x35b907!=_0x30d601(0x141)||_0x35b907===null||Array[_0x30d601(0x2d1)](_0x35b907))&&(console[_0x30d601(0x2d9)](_0x3aed0c+':\x20'+_0x5e7c95+_0x30d601(0x214)),process[_0x30d601(0x2b2)](0x2)),_0x35b907;}function ue(_0x501b43,_0xda6133){const _0x26fcf7=_0x205463;let _0x142de9;try{_0x142de9=_0x5adcf5[_0x26fcf7(0x2f1)](_0x1149fa[_0x26fcf7(0x1d6)](_0x501b43),'utf-8');}catch(_0x39cb20){console[_0x26fcf7(0x2d9)](_0xda6133+':\x20cannot\x20read\x20the\x20JSON\x20schema\x20('+_0x39cb20[_0x26fcf7(0x2ba)]+').'),process[_0x26fcf7(0x2b2)](0x2);}return de(_0x142de9,_0xda6133,_0x26fcf7(0x161));}async function Jt(_0x1de684){const _0x5d1fba=_0x205463;_0x1de684[_0x5d1fba(0x14e)]===void 0x0&&(console[_0x5d1fba(0x2d9)](_0x5d1fba(0x279)),process['exit'](0x2));let _0x5972fa=ue(_0x1de684['jsonSchemaPath'],_0x5d1fba(0x1b0)),_0x57478e=(await I(_0x1de684[_0x5d1fba(0x278)],process[_0x5d1fba(0x2b6)]))['trim']();_0x57478e||(console[_0x5d1fba(0x2d9)](_0x5d1fba(0x1dc)),process[_0x5d1fba(0x2b2)](0x2));let {client:_0x49b84c}=await f(_0x1de684);try{let _0x19d339=await _0x198846(_0x49b84c,{'prompt':_0x57478e,'jsonSchema':_0x5972fa,'model':_0x1de684[_0x5d1fba(0x14d)]||process.env.MODEL||_0x31b076,..._0x1de684[_0x5d1fba(0x2e1)]!==void 0x0&&{'sessionId':_0x1de684[_0x5d1fba(0x2e1)]}},void 0x0);l(_0x1de684,_0x19d339,_0x3a46bb=>{const _0x4d00de=_0x5d1fba;process[_0x4d00de(0x143)][_0x4d00de(0x1ca)](JSON['stringify'](_0x3a46bb[_0x4d00de(0x290)],null,0x2)+'\x0a');});}catch(_0x5e2d7a){if(!_0x1fbb99(_0x5e2d7a))throw _0x5e2d7a;console[_0x5d1fba(0x2d9)](_0x5e2d7a[_0x5d1fba(0x2ba)]),process['exit'](0x1);}}function j(_0x3bc46a){const _0x3e1fee=_0x205463;process[_0x3e1fee(0x143)][_0x3e1fee(0x1ca)](_0x3e1fee(0x165)+_0x3bc46a[_0x3e1fee(0x14d)]+'\x20('+_0x3bc46a['model_version']+_0x3e1fee(0x133)+_0x3bc46a['usage'][_0x3e1fee(0x2e5)]+_0x3e1fee(0x2af));}function Wt(_0x3ccbbc){const _0x3f827e=_0x205463;j(_0x3ccbbc);for(let _0x546d4b of Object[_0x3f827e(0x284)](_0x3ccbbc[_0x3f827e(0x1f1)])){let _0x3536cd=_0x3ccbbc[_0x3f827e(0x1f1)][_0x546d4b],_0x14ba05=_0x3536cd[_0x3f827e(0x2ed)]===_0x3f827e(0x22e)?'probability\x20'+_0x3536cd['probability'][_0x3f827e(0x15d)](0x2):_0x3536cd[_0x3f827e(0x2ed)]===_0x3f827e(0x20a)?_0x3f827e(0x25e)+_0x3536cd['choice']+_0x3f827e(0x144)+_0x3536cd[_0x3f827e(0x197)]['toFixed'](0x2)+')':_0x3f827e(0x218)+_0x3536cd[_0x3f827e(0x198)][_0x3f827e(0x15d)](0x2)+_0x3f827e(0x144)+_0x3536cd['confidence'][_0x3f827e(0x15d)](0x2)+')';process['stdout'][_0x3f827e(0x1ca)]('\x20\x20'+_0x546d4b+':\x20'+_0x14ba05+'\x0a');}}function Gt(_0x2b8481){const _0x3eb041=_0x205463;j(_0x2b8481),_0x2b8481[_0x3eb041(0x2d5)][_0x3eb041(0x2c5)]((_0x5cf91c,_0x2848b7)=>{const _0x23fade=_0x3eb041;process[_0x23fade(0x143)][_0x23fade(0x1ca)]('\x20\x20'+(_0x2848b7+0x1)+'.\x20'+_0x5cf91c['id']+'\x20\x20'+_0x5cf91c[_0x23fade(0x198)][_0x23fade(0x15d)](0x3)+'\x20\x20(input\x20#'+_0x5cf91c[_0x23fade(0x13a)]+')\x0a');});}function Kt(_0x50c4b2){const _0x3a380b=_0x205463;j(_0x50c4b2),process[_0x3a380b(0x143)][_0x3a380b(0x1ca)](_0x3a380b(0x246)+_0x50c4b2[_0x3a380b(0x2a6)]+'\x0a');for(let _0x7c0140 of _0x50c4b2[_0x3a380b(0x2d5)])process['stdout'][_0x3a380b(0x1ca)]('\x20\x20'+_0x7c0140['id']+':\x20'+_0x7c0140[_0x3a380b(0x1e0)]+'\x20(confidence\x20'+_0x7c0140[_0x3a380b(0x197)][_0x3a380b(0x15d)](0x2)+')\x0a');}async function zt(_0x14f779){const _0x2ad1ea=_0x205463;let _0x3f3d9a=_0x14f779[_0x2ad1ea(0x278)][_0x2ad1ea(0x2a3)]();_0x3f3d9a||(console['error'](_0x2ad1ea(0x1e9)),process[_0x2ad1ea(0x2b2)](0x2));let {client:_0x6ad3a1}=await f(_0x14f779);try{let _0x4d88ec=_0x3f3d9a==='-'?{'data':await Vt(process[_0x2ad1ea(0x2b6)])}:_0x3f3d9a;l(_0x14f779,await _0x5b45b5(_0x6ad3a1,_0x4d88ec,void 0x0),_0x4ef51c=>{const _0x44da91=_0x2ad1ea;process[_0x44da91(0x143)][_0x44da91(0x1ca)](_0x4ef51c[_0x44da91(0x2c4)]+'\x0a');});}catch(_0x372cf2){if(_0xab39f5(_0x372cf2)&&(console['error'](_0x372cf2[_0x2ad1ea(0x2ba)]),process[_0x2ad1ea(0x2b2)](_0x372cf2['status']===void 0x0?0x2:0x1)),typeof _0x372cf2?.['code']!='string')throw _0x372cf2;console[_0x2ad1ea(0x2d9)](_0x2ad1ea(0x207)+_0x3f3d9a+'\x20('+_0x372cf2['message']+').'),process[_0x2ad1ea(0x2b2)](0x2);}}async function Vt(_0x2c87d1){const _0x2d2da7=_0x205463;let _0xd87791=[];for await(let _0x5f15d0 of _0x2c87d1)_0xd87791[_0x2d2da7(0x2c8)](Buffer[_0x2d2da7(0x140)](_0x5f15d0));return Buffer[_0x2d2da7(0x2a7)](_0xd87791);}var Y=['list',_0x205463(0x210),_0x205463(0x299),_0x205463(0x22c),_0x205463(0x15e),_0x205463(0x1b0),_0x205463(0x285),_0x205463(0x1d8),_0x205463(0x2ae),_0x205463(0x1bc)],X={'list':_0x205463(0x25c),'pending':_0x205463(0x27e),'show':_0x205463(0x2e0),'create':_0x205463(0x27a),'claim':_0x205463(0x1a0),'complete':_0x205463(0x1bd),'accept':_0x205463(0x27c),'dismiss':_0x205463(0x281),'cancel':_0x205463(0x245),'delete':'delegations\x20delete\x20<delegation-id>'};async function Yt(_0x360d0a){const _0x27f48c=_0x205463;let [_0x4f1fd7='',_0x2f4e8d='',..._0x77ae67]=_0x360d0a[_0x27f48c(0x2e9)];Y['includes'](_0x4f1fd7)||(console[_0x27f48c(0x2d9)]((_0x4f1fd7?_0x27f48c(0x1c3)+_0x4f1fd7+'.\x20':'')+_0x27f48c(0x18f)+Y[_0x27f48c(0x2d2)](_0x27f48c(0x1bb))+'.'),process[_0x27f48c(0x2b2)](0x2));let _0x1ef944=_0x4f1fd7;_0x1ef944!=='create'&&(_0x360d0a['delegateTo']!==void 0x0||_0x360d0a[_0x27f48c(0x132)]!==void 0x0||_0x360d0a[_0x27f48c(0x2e1)]!==void 0x0)&&(console['error'](_0x27f48c(0x2ec)),process[_0x27f48c(0x2b2)](0x2));let _0xceb36a=(_0x1ef944==='create'?_0x360d0a[_0x27f48c(0x2e9)]['slice'](0x1):_0x77ae67)[_0x27f48c(0x2d2)]('\x20')[_0x27f48c(0x2a3)](),_0x9fb994=_0x1ef944===_0x27f48c(0x22c)||_0x1ef944===_0x27f48c(0x1b0);(_0x1ef944!==_0x27f48c(0x22c)&&!_0x2f4e8d||(_0x9fb994?!_0xceb36a:_0xceb36a)||_0x1ef944===_0x27f48c(0x22c)&&!_0x360d0a[_0x27f48c(0x2e1)])&&(console[_0x27f48c(0x2d9)](_0x27f48c(0x28c)+X[_0x1ef944]),process[_0x27f48c(0x2b2)](0x2));let _0x439b73=_0x9fb994&&_0xceb36a==='-'?(await I('-',process[_0x27f48c(0x2b6)]))[_0x27f48c(0x2a3)]():_0xceb36a;_0x9fb994&&!_0x439b73&&(console[_0x27f48c(0x2d9)](_0x27f48c(0x28c)+X[_0x1ef944]+_0x27f48c(0x229)),process[_0x27f48c(0x2b2)](0x2));let {client:_0x23b68e}=await f(_0x360d0a);try{await Xt(_0x360d0a,_0x23b68e,_0x1ef944,_0x2f4e8d,_0x439b73);}catch(_0x272bfe){if(!_0x5bbb7d(_0x272bfe))throw _0x272bfe;console[_0x27f48c(0x2d9)](_0x272bfe[_0x27f48c(0x2ba)]),process[_0x27f48c(0x2b2)](0x1);}}async function Xt(_0x15dfb3,_0x3ff539,_0x39fe7a,_0x1b53c9,_0x3ec9fa){const _0x652b5b=_0x205463;switch(_0x39fe7a){case _0x652b5b(0x2c0):l(_0x15dfb3,await _0x192780(_0x3ff539,_0x1b53c9),Qt);return;case _0x652b5b(0x210):l(_0x15dfb3,await _0xce1f2d(_0x3ff539,_0x1b53c9),_0x40c197=>{const _0xcc30c9=_0x652b5b;_0x40c197[_0xcc30c9(0x247)]&&process[_0xcc30c9(0x143)]['write'](_0xcc30c9(0x273)+_0x40c197[_0xcc30c9(0x247)]['id']+'\x20('+_0x40c197[_0xcc30c9(0x247)][_0xcc30c9(0x1af)]+_0xcc30c9(0x191)),_0x40c197['pendingResults'][_0xcc30c9(0x24d)]===0x0&&process['stderr'][_0xcc30c9(0x1ca)]('No\x20answers\x20awaiting\x20acceptance.\x0a');for(let _0x329461 of _0x40c197['pendingResults'])process[_0xcc30c9(0x143)][_0xcc30c9(0x1ca)]('\x0a'+_0x329461['id']+'\x20\x20from\x20'+(_0x329461[_0xcc30c9(0x1ce)]??_0xcc30c9(0x2c2))+'\x20\x20'+(_0x329461[_0xcc30c9(0x1e6)]??'')+'\x0a'+(_0x329461[_0xcc30c9(0x2de)]?.['content']??'')+'\x0a');_0x40c197[_0xcc30c9(0x1b3)][_0xcc30c9(0x24d)]>0x0&&process['stderr'][_0xcc30c9(0x1ca)](_0xcc30c9(0x234));});return;case _0x652b5b(0x299):l(_0x15dfb3,await _0x524f6a(_0x3ff539,_0x1b53c9),Q);return;case'create':{let _0x53cd1f=await _0x58a7a8(_0x3ff539,{'sessionId':_0x15dfb3[_0x652b5b(0x2e1)],'task':_0x3ec9fa,..._0x15dfb3[_0x652b5b(0x132)]!==void 0x0&&{'contextSummary':_0x15dfb3[_0x652b5b(0x132)]},..._0x15dfb3['delegateTo']!==void 0x0&&{'recipient':_0x15dfb3['delegateTo']}});l(_0x15dfb3,_0x53cd1f,_0x1661d3=>{const _0x4ad55f=_0x652b5b;_0x1661d3[_0x4ad55f(0x17c)]?process['stdout']['write']('Delegated\x20'+_0x1661d3['delegationId']+_0x4ad55f(0x157)+_0x1661d3[_0x4ad55f(0x17c)][_0x4ad55f(0x1eb)]+'\x20<'+_0x1661d3[_0x4ad55f(0x17c)][_0x4ad55f(0x253)]+_0x4ad55f(0x20d)):process['stdout'][_0x4ad55f(0x1ca)](_0x4ad55f(0x1f5)+_0x1661d3[_0x4ad55f(0x2b1)]+'.\x20Share:\x20'+_0x1661d3[_0x4ad55f(0x286)]+'\x0a');});return;}case _0x652b5b(0x15e):{let _0xe36c40=await _0x54828d(_0x3ff539,_0x1b53c9);l(_0x15dfb3,_0xe36c40,_0x28c6f3=>{const _0x590929=_0x652b5b;Q(_0x28c6f3),process['stdout'][_0x590929(0x1ca)]('Session\x20\x20\x20\x20\x20\x20\x20'+_0x28c6f3[_0x590929(0x2e1)]+'\x0a'),process['stderr'][_0x590929(0x1ca)]('Work\x20on\x20it\x20with:\x20delegate-cli\x20--session\x20'+_0x28c6f3[_0x590929(0x2e1)]+_0x590929(0x13f)+_0x28c6f3[_0x590929(0x2b1)]+_0x590929(0x1e5));});return;}case _0x652b5b(0x1b0):{let {alreadyCompleted:_0x1a8f54}=await _0x14d770(_0x3ff539,_0x1b53c9,{'content':_0x3ec9fa});l(_0x15dfb3,{'delegationId':_0x1b53c9,'alreadyCompleted':_0x1a8f54},_0x2ce5a3=>{const _0xaf9665=_0x652b5b;process[_0xaf9665(0x143)][_0xaf9665(0x1ca)]((_0x2ce5a3[_0xaf9665(0x1e3)]?'Already\x20answered':_0xaf9665(0x215))+'\x20delegation\x20'+_0x2ce5a3[_0xaf9665(0x2b1)]+'.\x0a');});return;}case _0x652b5b(0x285):{let _0x64288=await _0x4f706d(_0x3ff539,_0x1b53c9);l(_0x15dfb3,{'delegationId':_0x1b53c9,..._0x64288},_0x339d15=>{const _0x385c74=_0x652b5b;process['stdout'][_0x385c74(0x1ca)]((_0x339d15[_0x385c74(0x267)]?_0x385c74(0x295):'Accepted')+_0x385c74(0x1a1)+_0x339d15[_0x385c74(0x2b1)]+'.\x0a');});return;}default:{let _0x312d39={'dismiss':_0x293d93,'cancel':_0x1c506f,'delete':_0x16f498}[_0x39fe7a];await _0x312d39(_0x3ff539,_0x1b53c9);let _0xeacba3={'dismiss':'dismissed','cancel':_0x652b5b(0x1e2),'delete':_0x652b5b(0x25d)}[_0x39fe7a];l(_0x15dfb3,{'delegationId':_0x1b53c9,[_0xeacba3]:!0x0},()=>{const _0x16d823=_0x652b5b;process['stdout'][_0x16d823(0x1ca)](''+_0xeacba3[0x0][_0x16d823(0x29b)]()+_0xeacba3[_0x16d823(0x184)](0x1)+_0x16d823(0x1a1)+_0x1b53c9+'.\x0a');});}}}function Qt(_0x1da8c0){const _0x14edb0=_0x205463;if(_0x1da8c0[_0x14edb0(0x24d)]===0x0){process[_0x14edb0(0x26b)][_0x14edb0(0x1ca)](_0x14edb0(0x2e2));return;}process[_0x14edb0(0x143)][_0x14edb0(0x1ca)]('ID'[_0x14edb0(0x2d4)](0x24)+'\x20\x20'+_0x14edb0(0x2ab)['padEnd'](0x9)+'\x20\x20'+_0x14edb0(0x1dd)[_0x14edb0(0x2d4)](0x18)+_0x14edb0(0x1ff));for(let _0x214af6 of _0x1da8c0)process[_0x14edb0(0x143)][_0x14edb0(0x1ca)](_0x214af6['id']['padEnd'](0x24)+'\x20\x20'+_0x214af6[_0x14edb0(0x1af)][_0x14edb0(0x2d4)](0x9)+'\x20\x20'+(_0x214af6[_0x14edb0(0x1ce)]??'-')['padEnd'](0x18)+'\x20\x20'+(_0x214af6[_0x14edb0(0x1e6)]??'')+'\x0a');}function Q(_0x32ffde){const _0x2305ae=_0x205463;process[_0x2305ae(0x143)]['write'](_0x2305ae(0x176)+(_0x32ffde[_0x2305ae(0x2d3)]??'-')+'\x0a'),_0x32ffde[_0x2305ae(0x2a5)]&&process[_0x2305ae(0x143)][_0x2305ae(0x1ca)]('Session\x20\x20\x20\x20\x20\x20\x20'+_0x32ffde[_0x2305ae(0x2a5)]+'\x0a'),process['stdout'][_0x2305ae(0x1ca)](_0x2305ae(0x203)+(_0x32ffde['task']??'-')+'\x0a'),_0x32ffde[_0x2305ae(0x132)]&&process[_0x2305ae(0x143)][_0x2305ae(0x1ca)]('\x0a'+_0x32ffde[_0x2305ae(0x132)]+'\x0a\x0a');}async function Zt(_0x549ddb){const _0x1e4a0f=_0x205463;_0x549ddb[_0x1e4a0f(0x278)][_0x1e4a0f(0x2a3)]()||(console['error']('Usage:\x20delegate-cli\x20org-users\x20<name\x20or\x20email\x20prefix>'),process['exit'](0x2));let {client:_0x17ff52}=await f(_0x549ddb),_0x587063;try{_0x587063=await _0x5a0039(_0x17ff52,_0x549ddb[_0x1e4a0f(0x278)]);}catch(_0x40a773){if(!_0x5bbb7d(_0x40a773))throw _0x40a773;console['error'](_0x40a773['message']),process[_0x1e4a0f(0x2b2)](0x1);}l(_0x549ddb,_0x587063,_0x24531d=>{const _0x453190=_0x1e4a0f;_0x24531d[_0x453190(0x24d)]===0x0&&process[_0x453190(0x26b)][_0x453190(0x1ca)](_0x453190(0x142)+_0x549ddb[_0x453190(0x278)]['trim']()+'\x22.\x0a');for(let _0x3b5c58 of _0x24531d)process[_0x453190(0x143)][_0x453190(0x1ca)](_0x3b5c58[_0x453190(0x253)]['padEnd'](0x20)+'\x20\x20'+_0x3b5c58['displayName']+'\x0a');});}async function en(_0x45b276){const _0x285dfe=_0x205463;_0x45b276[_0x285dfe(0x2bf)]===_0x285dfe(0x189)&&(console['error'](_0x285dfe(0x148)),process[_0x285dfe(0x2b2)](0x2));let _0x72dee=$(_0x29364f()),_0x24513b=_0x45b276[_0x285dfe(0x16d)];if(_0x45b276['env']){let _0x5b69f0=_0x45b276[_0x285dfe(0x2bf)];await _0x1b42c0({'env':_0x5b69f0,'tenant':_0x45b276[_0x285dfe(0x135)]??C(_0x72dee,_0x5ed554[_0x5b69f0]),'skipEnvCheck':_0x24513b});return;}let _0x1395c1=_0x45b276[_0x285dfe(0x221)]??ce();if(_0x1395c1){await _0x1b42c0({'baseUrl':_0x1395c1,'tenant':_0x45b276['tenant']??C(_0x72dee,_0x1395c1),'skipEnvCheck':_0x24513b});return;}if(_0x72dee?.[_0x285dfe(0x283)]){await _0x1b42c0({'baseUrl':_0x72dee[_0x285dfe(0x283)],'tenant':_0x45b276[_0x285dfe(0x135)]??_0x72dee[_0x285dfe(0x274)],'skipEnvCheck':_0x24513b});return;}console[_0x285dfe(0x2d9)](_0x285dfe(0x226)),process[_0x285dfe(0x2b2)](0x2);}function C(_0x4f11ff,_0x485e8b){const _0x5342b9=_0x205463;return _0x4f11ff?.['baseUrl']&&tn(_0x4f11ff[_0x5342b9(0x283)],_0x485e8b)?_0x4f11ff[_0x5342b9(0x274)]:void 0x0;}function tn(_0x52d686,_0x4c07a5){const _0x355bcf=_0x205463;try{return new URL(_0x52d686)[_0x355bcf(0x206)]===new URL(_0x4c07a5)['origin'];}catch{return!0x1;}}function _0x5336(){const _0x58625c=['daily','Title\x20\x20\x20\x20\x20\x20\x20\x20\x20','subcommand','Usage:\x20delegate-cli\x20','finish','\x20into\x20','Removed\x20','structured','a\x20project\x20id','an\x20effort\x20tier','staging','Token:\x20\x20\x20\x20\x20\x20\x20\x20expires\x20','Already\x20accepted','spawn',',\x20got\x20','.aria','show','--cartographer','toUpperCase','print','No\x20CLI\x20login\x20found.\x20Run\x20`delegate-cli\x20login\x20--env\x20<alpha|staging|production>`\x20first.','931920OuWkzP','total_quota_pu','\x0adelegate-cli\x20—\x20Delegate\x20agent\x20CLI\x0a\x0aUsage:\x0a\x20\x20delegate-cli\x20[flags]\x20[\x22<prompt>\x22]\x20\x20\x20\x20Start\x20a\x20conversation\x20in\x20a\x20terminal\x0a\x20\x20delegate-cli\x20--print\x20\x22<prompt>\x22\x20\x20\x20\x20\x20\x20Send\x20one\x20prompt,\x20print\x20the\x20response,\x20and\x20exit\x0a\x20\x20delegate-cli\x20[flags]\x20-\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Read\x20one\x20prompt\x20from\x20stdin\x20through\x20EOF,\x20then\x20exit\x0a\x20\x20delegate-cli\x20-p\x20\x22<prompt>\x22\x20--output-format\x20json|stream-json\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20One\x20turn\x20with\x20JSON-only\x20stdout;\x20exit\x201\x20on\x20error\x0a\x20\x20delegate-cli\x20--json-schema\x20FILE\x20\x22<prompt>\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20One\x20turn,\x20then\x20its\x20result\x20extracted\x20as\x20JSON\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20matching\x20the\x20schema\x20in\x20FILE\x20(printed\x20after\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20answer;\x20\x22structured\x22\x20in\x20the\x20JSON\x20result);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20exit\x201\x20when\x20the\x20extraction\x20fails\x0a\x20\x20delegate-cli\x20--attach\x20PATH\x20[--attach\x20PATH\x20...]\x20\x22<prompt>\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Send\x20files\x20or\x20folders\x20with\x20the\x20first\x20message\x0a\x20\x20delegate-cli\x20login\x20[--env\x20NAME\x20|\x20--url\x20BASE]\x20[--tenant\x20NAME]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20OAuth\x20browser\x20login\x20→\x20~/.aria/sdk-auth.json.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--env\x20or\x20--url\x20required\x20on\x20FIRST\x20login;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20afterwards\x20defaults\x20to\x20the\x20saved\x20login\x27s\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20deployment.\x20--tenant\x20picks\x20a\x20tenant\x20by\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20name;\x20without\x20it\x20a\x20re-login\x20keeps\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20saved\x20tenant\x0a\x20\x20delegate-cli\x20tenant\x20[NAME]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20the\x20organization\x27s\x20tenants,\x20or\x20switch\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20saved\x20login\x20to\x20NAME\x20(no\x20browser)\x0a\x20\x20delegate-cli\x20logout\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Remove\x20the\x20saved\x20CLI\x20login\x0a\x20\x20delegate-cli\x20whoami\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20the\x20current\x20login\x20(org,\x20tenant,\x20token\x20expiry)\x0a\x20\x20delegate-cli\x20models\x20[--env\x20NAME]\x20\x20\x20\x20\x20List\x20available\x20LLM\x20models\x20for\x20the\x20current\x20tenant,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20with\x20any\x20BYO\x20configuration\x20warning\x20per\x20model\x0a\x20\x20delegate-cli\x20sessions\x20[list]\x20[--page\x20N]\x20[--limit\x20N]\x20[--include-subagents]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20your\x20backend\x20chat\x20sessions,\x20most\x20recently\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20active\x20first\x20(resume\x20one\x20with\x20--session\x20ID)\x0a\x20\x20delegate-cli\x20sessions\x20show|delete\x20ID\x20Show\x20one\x20session\x27s\x20title\x20and\x20owner,\x20or\x20delete\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20it\x20with\x20its\x20messages\x20and\x20sub-agents\x20(no\x20prompt)\x0a\x20\x20delegate-cli\x20sessions\x20rename\x20ID\x20TITLE\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Rename\x20a\x20session\x20(1-500\x20characters)\x0a\x20\x20delegate-cli\x20sessions\x20fork\x20ID\x20[MESSAGE]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Copy\x20session\x20ID\x20into\x20a\x20new\x20session,\x20up\x20to\x20and\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20including\x20message\x20MESSAGE\x20(default:\x20all\x20of\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20it);\x20continue\x20it\x20with\x20--session\x20NEW_ID\x0a\x20\x20delegate-cli\x20sessions\x20cancel\x20ID\x20--turn\x20TURN\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Cancel\x20turn\x20TURN\x20running\x20on\x20session\x20ID\x20in\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20another\x20process;\x20exits\x201\x20when\x20no\x20such\x20turn\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20is\x20in\x20progress\x0a\x20\x20delegate-cli\x20check\x20[--env\x20NAME]\x20[--headless]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Verify\x20auth,\x20backend\x20readiness,\x20backend\x20and\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20interop\x20without\x20sending\x20a\x20prompt;\x20exits\x201\x20when\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20any\x20check\x20fails\x0a\x20\x20delegate-cli\x20usage\x20[--session\x20ID]\x20\x20\x20\x20Quota\x20and\x20spend:\x20licensing\x20quota,\x20monthly\x20spend\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20and\x20cap,\x20Cartographer\x20allowance\x0a\x20\x20delegate-cli\x20usage\x20activity|daily\x20[--days\x20N]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Activity\x20totals,\x20or\x20per-day\x20usage,\x20over\x20the\x20last\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20N\x20days\x20(1-365,\x20default\x2030)\x0a\x20\x20delegate-cli\x20evaluate|rerank|verify\x20FILE|-\x20[--model\x20ID]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Stateless\x20typed\x20judgments:\x20send\x20the\x20JSON\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20request\x20in\x20FILE\x20(or\x20stdin\x20with\x20-)\x20to\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20/v1/completions/<command>\x20and\x20print\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20answers;\x20--model\x20overrides\x20its\x20\x22model\x22.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Exits\x201\x20when\x20the\x20backend\x20rejects\x20it\x0a\x20\x20delegate-cli\x20complete\x20--json-schema\x20FILE\x20[--model\x20ID]\x20[--session\x20ID]\x20\x22<prompt>\x22|-\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20One\x20structured\x20completion,\x20no\x20agent\x20turn:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20print\x20the\x20JSON\x20object\x20matching\x20the\x20schema\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20in\x20FILE\x20(--output-format\x20json\x20prints\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{structured,\x20usage});\x20--session\x20adds\x20that\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20session\x27s\x20history\x20as\x20context.\x20Exits\x201\x20when\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20output\x20fails\x20the\x20schema\x20(422)\x20or\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20backend\x20rejects\x20the\x20request\x0a\x20\x20delegate-cli\x20transcribe\x20FILE|-\x20\x20\x20\x20\x20\x20\x20Speech-to-text\x20(Whisper):\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\x2025\x20MiB.\x20Exits\x202\x20when\x20the\x20audio\x20is\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20refused\x20locally,\x201\x20when\x20the\x20backend\x20rejects\x20it\x0a\x20\x20delegate-cli\x20org-users\x20QUERY\x20\x20\x20\x20\x20\x20\x20\x20\x20Search\x20your\x20organization\x27s\x20users\x20by\x20name\x20or\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20email\x20prefix\x20(2-100\x20characters)\x0a\x20\x20delegate-cli\x20delegations\x20create\x20--session\x20ID\x20[--to\x20WHO]\x20[--summary\x20TEXT]\x20\x22<task>\x22|-\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Hand\x20a\x20task\x20from\x20session\x20ID\x20to\x20a\x20colleague\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(WHO:\x20an\x20email,\x20or\x20a\x20name\x20matching\x20one\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20person);\x20without\x20--to,\x20print\x20a\x20link\x20anyone\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20in\x20the\x20organization\x20can\x20claim\x0a\x20\x20delegate-cli\x20delegations\x20pending\x20SESSION\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Answers\x20to\x20delegations\x20from\x20SESSION\x20that\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20await\x20acceptance\x20(poll\x20this)\x0a\x20\x20delegate-cli\x20delegations\x20accept|dismiss|cancel|delete\x20ID\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Take\x20an\x20answer\x20into\x20its\x20session,\x20drop\x20it,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20withdraw\x20a\x20live\x20delegation,\x20or\x20delete\x20it\x0a\x20\x20delegate-cli\x20delegations\x20list\x20PROJECT\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Every\x20delegation\x20targeting\x20a\x20backend\x20project\x0a\x20\x20delegate-cli\x20delegations\x20show|claim\x20ID|LINK\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Read\x20a\x20delegation\x20assigned\x20to\x20you\x20(or\x20a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20delegate://delegation/…\x20link),\x20or\x20claim\x20it:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20prints\x20the\x20session\x20to\x20work\x20it\x20in\x0a\x20\x20delegate-cli\x20delegations\x20complete\x20ID\x20\x22<answer>\x22|-\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Send\x20the\x20answer\x20to\x20a\x20delegation\x20you\x20claimed\x0a\x20\x20delegate-cli\x20host\x20[flags]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Run\x20this\x20PC\x20as\x20a\x20remote\x20worker\x20until\x20Ctrl+C\x0a\x20\x20delegate-cli\x20host\x20install\x20[flags]\x20\x20\x20\x20Auto-start\x20the\x20host\x20at\x20login\x20(macOS\x20LaunchAgent\x20/\x20Windows\x20Scheduled\x20Task)\x0a\x20\x20delegate-cli\x20host\x20uninstall\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Remove\x20auto-start\x0a\x20\x20delegate-cli\x20host\x20status\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20auto-start\x20state\x0a\x20\x20delegate-cli\x20--cleanup\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Stop\x20running\x20interop\x0a\x0aFlags:\x0a\x20\x20-p,\x20--print\x20\x20\x20\x20\x20\x20\x20Run\x20one\x20turn\x20and\x20exit,\x20including\x20any\x20tool\x20execution.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Automatic\x20when\x20stdin\x20or\x20stdout\x20is\x20not\x20a\x20terminal,\x20or\x20with\x20-\x0a\x20\x20--env\x20NAME\x20\x20\x20\x20\x20\x20\x20\x20alpha\x20|\x20staging\x20|\x20production\x20|\x20localhost\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Composes\x20backend\x20URL\x20from\x20saved\x20auth\x20(org/tenant\x20slugs).\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Omitted\x20→\x20the\x20deployment\x20you\x20logged\x20into\x20(delegate-cli\x20login).\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20localhost\x20→\x20http://localhost:5002.\x20No\x20saved\x20login\x20and\x20no\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--env/--backend/BACKEND_URL\x20is\x20an\x20error\x20—\x20never\x20a\x20guess.\x0a\x20\x20--url\x20BASE\x20\x20\x20\x20\x20\x20\x20\x20(login)\x20Base\x20URL\x20of\x20a\x20deployment\x20that\x20is\x20not\x20a\x20named\x20cloud\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20—\x20Automation\x20Suite,\x20Dedicated,\x20Public\x20Sector.\x20Accepts\x20a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20tenant\x20path\x20or\x20a\x20trailing\x20/identity_\x20and\x20reduces\x20it\x20to\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20origin.\x20Mutually\x20exclusive\x20with\x20--env;\x20also\x20settable\x20via\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20UIPATH_BASE_URL.\x20Alias:\x20--authority.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Automation\x20Suite\x20needs\x2026.10+\x20with\x20the\x20Delegate\x20service;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20the\x20deployment\x20rejects\x20the\x20built-in\x20client,\x20register\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20your\x20own\x20—\x20see\x20UIPATH_CLIENT_ID\x20in\x20the\x20README\x0a\x20\x20--skip-env-check\x20\x20(login)\x20Do\x20not\x20check\x20the\x20deployment\x20before\x20signing\x20in.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Escape\x20hatch\x20for\x20a\x20deployment\x20that\x20hides\x20its\x20OIDC\x20discovery\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20document\x20or\x20serves\x20Identity\x20from\x20another\x20origin;\x20it\x20also\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20gives\x20up\x20the\x20diagnosis\x20when\x20something\x20is\x20really\x20wrong\x0a\x20\x20--backend\x20URL\x20\x20\x20\x20\x20Full\x20backend\x20URL\x20—\x20escape\x20hatch\x20overrides\x20--env\x0a\x20\x20--tenant\x20NAME\x20\x20\x20\x20\x20(login)\x20Tenant\x20to\x20sign\x20into,\x20by\x20name\x20(case-insensitive).\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default:\x20the\x20saved\x20login\x27s\x20tenant\x20on\x20that\x20cloud,\x20else\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20org\x27s\x20first\x20tenant.\x20Later:\x20delegate-cli\x20tenant\x20<name>\x0a\x20\x20--model\x20NAME\x20\x20\x20\x20\x20\x20LLM\x20model\x20id\x20(e.g.\x20claude_sonnet_5_5,\x20kimi_k3).\x20Checked\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20against\x20the\x20tenant\x27s\x20catalog\x20(delegate-cli\x20models)\x20before\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20run\x20starts;\x20an\x20unknown\x20id\x20fails\x20and\x20lists\x20the\x20valid\x20ones.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default:\x20gpt_5_6_luna.\x20Also\x20settable\x20via\x20MODEL\x20env\x20var.\x0a\x20\x20--keep-alive\x20\x20\x20\x20\x20\x20Reuse/leave\x20interop\x20running\x20across\x20invocations\x0a\x20\x20--headless\x20\x20\x20\x20\x20\x20\x20\x20Skip\x20interop\x20(text-only\x20prompts)\x0a\x20\x20--no-computer-use\x20Keep\x20interop\x20—\x20file,\x20Office,\x20PDF\x20and\x20shell\x20tools\x20keep\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20working\x20—\x20but\x20drop\x20the\x20screen:\x20no\x20screenshots,\x20no\x20window\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20list,\x20no\x20UI-automation\x20tools.\x20Cuts\x20image\x20tokens\x20and\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20per-turn\x20screen\x20capture,\x20and\x20stops\x20desktop\x20window\x20titles\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20leaving\x20the\x20machine.\x20Use\x20for\x20document\x20and\x20file\x20work.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--headless\x20implies\x20this\x20and\x20turns\x20interop\x20off\x20as\x20well\x0a\x20\x20--no-connections\x20\x20Disable\x20orchestrator\x20ConnectionService\x20(silences\x20404\x20warnings)\x0a\x20\x20--no-security\x20\x20\x20\x20\x20Disable\x20tool\x20security\x20wrapper\x20(use\x20only\x20for\x20debugging)\x0a\x20\x20--no-memory\x20\x20\x20\x20\x20\x20\x20Do\x20not\x20send\x20the\x20Delegate\x20app\x27s\x20local\x20long-term\x20memories\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20with\x20each\x20turn,\x20and\x20do\x20not\x20ask\x20the\x20model\x20to\x20save\x20new\x20ones\x0a\x20\x20--task-automation\x20Record\x20every\x20UI\x20action\x20of\x20the\x20run,\x20with\x20the\x20selector\x20of\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20element\x20it\x20acted\x20on,\x20to\x20<working-dir>/captures/<session>/\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(~/.aria-sdk\x20without\x20--working-dir),\x20so\x20you\x20can\x20then\x20ask\x20for\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20task\x20as\x20a\x20UiPath\x20coded\x20workflow\x20(uipath-taskautomation\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20skill).\x20The\x20log\x20holds\x20on-screen\x20text\x20and\x20your\x20requests;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20typed\x20values\x20are\x20masked.\x20Needs\x20computer\x20use.\x20Ignored\x20with\x20a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20warning\x20where\x20the\x20deployment\x20does\x20not\x20offer\x20it\x20yet\x0a\x20\x20--attach\x20PATH\x20\x20\x20\x20\x20File\x20or\x20folder\x20sent\x20with\x20the\x20first\x20message\x20(repeatable),\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20as\x20the\x20Delegate\x20app\x20sends\x20attached\x20files:\x20images\x20inline,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20PDFs\x20and\x20other\x20documents\x20as\x20a\x20path\x20the\x20agent\x20reads,\x20text\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20inline\x20up\x20to\x2016,000\x20characters.\x2030\x20MiB\x20per\x20message\x20in\x20all;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20larger\x20files\x20go\x20as\x20a\x20path.\x20In\x20a\x20conversation,\x20later\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20messages\x20carry\x20none\x20of\x20their\x20own,\x20but\x20the\x20first\x20message\x27s\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20stay\x20in\x20context\x0a\x20\x20--preload-skill\x20NAME\x20\x20Preload\x20a\x20skill\x20into\x20the\x20session\x20(repeatable).\x20The\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20skill\x27s\x20content\x20is\x20attached\x20before\x20the\x20first\x20model\x20turn\x20—\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20same\x20mechanism\x20as\x20project\x20preloaded\x20skills\x20in\x20the\x20app\x0a\x20\x20--cartographer\x20\x20\x20\x20Cartographer\x20engagement\x20preset.\x20Equivalent\x20to\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--no-computer-use\x20--preload-skill\x20business-analysis\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--preload-skill\x20project-task-list\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--preload-skill\x20knowledge-base.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Add\x20--project/--working-dir\x20for\x20where\x20the\x20files\x20live,\x20and\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20extra\x20--preload-skill\x20flags\x20for\x20more\x20skills\x20—\x20a\x20skill\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20preset\x20already\x20covers\x20is\x20not\x20preloaded\x20twice.\x20An\x20explicit\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--headless\x20still\x20wins\x20and\x20turns\x20interop\x20off\x0a\x20\x20--project\x20ID\x20\x20\x20\x20\x20\x20Route\x20the\x20session\x27s\x20local\x20wiki\x20and\x20plans\x20to\x20a\x20project\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(<working-dir>/projects/<ID>/wiki).\x20Client-side\x20key\x20only\x0a\x20\x20--working-dir\x20PATH\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Shell\x20cwd\x20for\x20the\x20agent\x20and\x20root\x20for\x20SDK-local\x20state.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Relative\x20paths\x20resolve\x20against\x20the\x20current\x20directory;\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20directory\x20is\x20created\x20if\x20missing\x0a\x20\x20--skills-path\x20PATH\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Folder\x20of\x20custom\x20skills,\x20loaded\x20on\x20top\x20of\x20the\x20skills\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20package\x20ships;\x20wins\x20on\x20a\x20name\x20clash\x20(also:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20DELEGATE_BUNDLED_SKILLS_PATH)\x0a\x20\x20--effort\x20TIER\x20\x20\x20\x20\x20Reasoning\x20effort:\x20low\x20|\x20medium\x20|\x20high\x20|\x20xhigh\x20|\x20max.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default:\x20the\x20model\x27s\x20recommended\x20tier\x0a\x20\x20--session\x20ID\x20\x20\x20\x20\x20\x20Continue\x20an\x20existing\x20backend\x20session\x20(an\x20unknown\x20id\x20exits\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x201;\x20the\x20backend\x20assigns\x20new\x20ids).\x20For\x20complete:\x20the\x20session\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20whose\x20history\x20is\x20the\x20context\x0a\x20\x20--json-schema\x20FILE\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20JSON\x20schema\x20the\x20structured\x20answer\x20must\x20match\x20(complete,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20and\x20prompts:\x20implies\x20--print)\x0a\x20\x20--runner-url\x20URL\x20\x20(host)\x20Runner\x20worker\x20WS\x20URL.\x20Required;\x20or\x20CONTROL_PLANE_WS_URL\x20env\x0a\x20\x20--interop\x20PATH\x20\x20\x20\x20(host)\x20Interop\x20binary\x20path;\x20or\x20INTEROP_EXECUTABLE_PATH\x20env.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Absent\x20→\x20registration/discovery\x20only,\x20tool\x20execution\x20disabled\x0a\x20\x20--worker-id\x20ID\x20\x20\x20\x20(host)\x20Stable\x20worker\x20identity;\x20or\x20WORKER_ID\x20env.\x20Default:\x20hostname\x0a\x20\x20--page\x20N\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(sessions)\x20Page\x20to\x20show,\x20from\x201.\x20Default:\x201\x0a\x20\x20--limit\x20N\x20\x20\x20\x20\x20\x20\x20\x20\x20(sessions)\x20Rows\x20per\x20page,\x201-100.\x20Default:\x2030\x0a\x20\x20--include-subagents\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(sessions)\x20Also\x20list\x20sub-agent\x20sessions,\x20hidden\x20by\x20default\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20as\x20in\x20the\x20desktop\x20app\x27s\x20history\x0a\x20\x20--to\x20WHO\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(delegations\x20create)\x20Assign\x20to\x20this\x20person:\x20an\x20email,\x20or\x20a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20name\x20that\x20matches\x20exactly\x20one\x20colleague\x20(see\x20org-users)\x0a\x20\x20--summary\x20TEXT\x20\x20\x20\x20(delegations\x20create)\x20The\x20briefing\x20the\x20person\x20starts\x20from.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default:\x20empty,\x20for\x20a\x20task\x20that\x20stands\x20on\x20its\x20own\x0a\x20\x20--output-format\x20FMT\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20text\x20(default)\x20|\x20json\x20|\x20stream-json.\x20json\x20prints\x20one\x20result\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20object\x20on\x20exit;\x20stream-json\x20prints\x20every\x20agent\x20event\x20as\x20one\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20JSON\x20line,\x20then\x20the\x20result.\x20Both\x20keep\x20stdout\x20JSON-only\x20(logs,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20progress\x20and\x20the\x20session\x20id\x20go\x20to\x20stderr),\x20imply\x20--print,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20and\x20exit\x201\x20when\x20the\x20turn\x20ends\x20in\x20error.\x20Also\x20honoured\x20by\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20every\x20subcommand\x20that\x20prints\x20a\x20result\x20(all\x20but\x20login,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20logout,\x20tenant\x20and\x20host)\x0a\x20\x20-q,\x20--quiet\x20\x20\x20\x20\x20\x20\x20Suppress\x20🤔\x20thinking\x20output\x20to\x20stderr\x0a\x20\x20--verbose\x20\x20\x20\x20\x20\x20\x20\x20\x20Surface\x20the\x20SDK\x27s\x20and\x20the\x20framework\x27s\x20own\x20logs.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Diagnostics\x20only,\x20on\x20stdout;\x20independent\x20of\x20-q\x0a\x20\x20-h,\x20--help\x20\x20\x20\x20\x20\x20\x20\x20Show\x20this\x20help\x0a\x20\x20-v,\x20--version\x20\x20\x20\x20\x20Print\x20the\x20installed\x20CLI\x20version\x0a\x0aConversation:\x20Enter\x20sends\x20a\x20message;\x20/exit\x20or\x20EOF\x20exits;\x20Ctrl+C\x20stops\x20and\x20exits.\x0a\x20\x20Ctrl+C\x20during\x20a\x20turn\x20cancels\x20it\x20on\x20the\x20backend\x20too;\x20a\x20second\x20Ctrl+C\x20force-exits.\x0a\x20\x20An\x20optional\x20initial\x20prompt\x20is\x20followed\x20by\x20more\x20input.\x20The\x20session\x20ID\x20is\x20printed\x0a\x20\x20to\x20stderr;\x20resume\x20later\x20with\x20--session\x20ID.\x20Redirected\x20input\x20is\x20one\x20prompt.\x0aAuth:\x20prompts\x20auto-retry\x20on\x20401\x20by\x20opening\x20the\x20browser\x20to\x20re-login\x20(TTY\x20only),\x0a\x20\x20preserving\x20the\x20active\x20session.\x0a','No\x20CLI\x20login\x20found.\x20Note:\x20the\x20CLI\x20is\x20currently\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20','the\x20request','trim','\x20needs\x20a\x20JSON\x20request:\x20delegate-cli\x20','sourceTitle','rubric_version','concat','extra_pool_consumed_pu','a\x20deployment\x20URL,\x20e.g.\x20https://automationsuite.contoso.com','date','STATUS','title','--authority','cancel','\x20tokens\x0a','tool_call','delegationId','exit','noComputerUse','isTTY','workerId','stdin','an\x20email\x20address\x20or\x20name','\x20<id>','Renamed\x20','message','outputFormat','Session:\x20\x20\x20\x20\x20\x20','stack','bundledSkillsPath','env','list','--env','a\x20colleague','\x20active\x20days','text','forEach','No\x20CLI\x20login\x20to\x20switch:\x20the\x20CLI\x20is\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20','2074530aPBddB','push','Unknown\x20sessions\x20action:\x20','toolName','\x20days:\x20','\x20days.\x0a','\x20must\x20be\x20a\x20whole\x20number\x20','content','--session\x20applies\x20to\x20the\x20`delegate-cli\x20usage`\x20summary\x20only.','toString','isArray','join','sourceUserEmail','padEnd','results','unknown','\x20sessions\x20on\x20',')\x20—\x20saved\x20to\x20','error','Last\x20','Owner\x20\x20\x20\x20\x20\x20\x20\x20\x20','toISOString','rmSync','result','Usage:\x20delegate-cli\x20sessions\x20','delegations\x20show\x20<delegation-id|delegate://delegation/…>','sessionId','No\x20delegations.\x0a','More:\x20delegate-cli\x20sessions\x20--page\x20','✓\x20Done\x0a','total_tokens','from\x201\x20to\x20','monthly_limit_usd','production','operands','rerank','tokenExpiresAt','--to,\x20--summary\x20and\x20--session\x20apply\x20to\x20`delegate-cli\x20delegations\x20create`\x20only.','type','Deployment:\x20\x20\x20','Bearer\x20','You>\x20','readFileSync','package.json','.\x20Use\x20`delegate-cli\x20usage`,\x20`usage\x20activity`\x20or\x20`usage\x20daily`.','Tenant:\x20\x20\x20\x20\x20\x20\x20','\x20\x22<prompt>\x22\x0a','--turn','evaluate','lastType','cleanup','contextSummary','),\x20','Date\x20\x20\x20\x20\x20\x20\x20\x20Token\x20units\x20\x20Prompt\x20tokens\x20\x20Completion\x20tokens','tenant','transcribe','turn_start','\x20PU','\x20prompt,\x20','index','parentSessionId','cartographer','\x20--turn\x20','Pass\x20either\x20--env\x20(a\x20named\x20cloud)\x20or\x20--url\x20(any\x20other\x20deployment),\x20not\x20both.','\x20\x22<prompt>\x22\x0aAnswer\x20with:\x20delegate-cli\x20delegations\x20complete\x20','from','object','No\x20one\x20matches\x20\x22','stdout','\x20(confidence\x20','No\x20sessions\x20on\x20page\x20','interopPath','\x20(cancel\x20with:\x20delegate-cli\x20sessions\x20cancel\x20','--env\x20localhost\x20has\x20no\x20OAuth\x20flow;\x20pick\x20alpha,\x20staging,\x20or\x20production.','cwd','265VfeHZu','--headless','map','model','jsonSchemaPath','close','onEvent','\x20is\x20not\x20valid\x20JSON\x20(','tool','Unknown\x20usage\x20view:\x20','[saved\x20login]\x20Backend\x20URL:\x20','destroy','stringify','\x20to\x20','active_days','bind','isSafeInteger','headless','total_prompt_tokens','toFixed','claim','lockReason','Continue\x20it\x20with:\x20delegate-cli\x20--session\x20','the\x20JSON\x20schema','padStart','--no-connections','noSecurity','Model\x20','skip','pct_used',';\x20the\x20saved\x20login\x20still\x20uses\x20','token_units','includeSubAgents','taskAutomation','includes','skipEnvCheck','--days','--tenant\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Switch\x20tenants\x20with:\x20delegate-cli\x20tenant\x20<name>','--verbose','Usage:\x20delegate-cli\x20sessions\x20[list]\x20[--page\x20N]\x20[--limit\x20N]\x20[--include-subagents]','--no-memory','Invalid\x20--effort:\x20','a\x20turn\x20id','mode','From\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','--to\x20and\x20--summary\x20apply\x20to\x20`delegate-cli\x20delegations\x20create`\x20only.','Deleted\x20session\x20','SIGINT','utf-8','response','assignedUser','fork','floor','--page','isDesktopFallback','prompt_tokens','turnId','--turn\x20applies\x20to\x20`delegate-cli\x20sessions\x20cancel`\x20only.','slice','data','\x20<file.json>,\x20or\x20-\x20to\x20read\x20stdin.','--working-dir',',\x20whose\x20tenant\x20is\x20chosen\x20in\x20the\x20app.\x20Run\x20`delegate-cli\x20login\x20--env\x20<env>`\x20for\x20a\x20CLI\x20login\x20of\x20your\x20own.','localhost','--no-computer-use','No\x20turn\x20','\x20completion','model_id','\x20from\x20','Use:\x20delegate-cli\x20delegations\x20','--limit',').\x0a','6783597LlTpnb','low','\x20PU\x20beyond\x20quota',']\x20Backend\x20URL:\x20','parse','confidence','score','existsSync','period_end','entries','\x20\x20(sub-agent\x20of\x20','406733RpOtNX','--help','\x27\x20cannot\x20be\x20read:\x20','delegations\x20claim\x20<delegation-id|delegate://delegation/…>','\x20delegation\x20','\x20applies\x20to\x20prompts\x20and\x20to\x20these\x20commands\x20only:\x20','days','Invalid\x20--env:\x20','\x20this\x20month','total_completion_tokens','models_breakdown','\x20PU\x20used','--runner-url','a\x20JSON\x20schema\x20file','--task-automation','log','effort','\x20<title>','status','complete','--task-automation\x20needs\x20computer\x20use:\x20the\x20task\x20log\x20is\x20written\x20by\x20the\x20UI-automation\x20tools.\x20Drop\x20--headless,\x20--no-computer-use\x20and\x20--cartographer.','UIPATH_BASE_URL\x20is\x20unusable.\x20','pendingResults','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.','\x0aStopping…\x20(Ctrl+C\x20again\x20to\x20force\x20exit)\x0a','daily_usage','exitCode','auth','--output-format\x20','rename','\x20|\x20','delete','delegations\x20complete\x20<delegation-id>\x20\x22<answer>\x22|-','Cancel\x20requested\x20for\x20turn\x20','expiresAt','hide','delegate-cli','\x20(in\x20','Unknown\x20delegations\x20action:\x20','check','--url\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Other\x20commands\x20follow\x20the\x20saved\x20login,\x20or\x20--backend\x20<url>.','quiet','updatedAt','\x20cap','delegations','write','Tenant\x20not\x20switched:\x20could\x20not\x20write\x20','once','session_consumed_pu','assignedUserEmail','\x20of\x20session\x20','unknown\x20slug','%\x20of\x20','activity','Token:\x20\x20\x20\x20\x20\x20\x20\x20expired\x20','\x20(current)','No\x20models\x20available\x20for\x20this\x20product/tenant.\x0a','resolve','--model','dismiss','alpha','1\x20or\x20more','file','complete\x20needs\x20a\x20prompt:\x20delegate-cli\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22,\x20or\x20-\x20to\x20read\x20stdin.','ASSIGNEE','.\x20Use\x20','.\x20Use\x20alpha\x20|\x20staging\x20|\x20production\x20|\x20localhost.','verdict','done','cancelled','alreadyCompleted','\x20not\x20found,\x20has\x20no\x20messages','\x20\x22<answer>\x22\x0a','task','all','organizationId','transcribe\x20needs\x20audio:\x20delegate-cli\x20transcribe\x20<file>,\x20or\x20-\x20to\x20read\x20stdin.','Structured\x20output\x20failed:\x20','displayName','restore','No\x20structured\x20output:\x20the\x20turn\x20failed\x20(','Usage:\x20delegate-cli\x20sessions\x20fork\x20<id>\x20[<message-id>]','a\x20directory\x20path','Switch\x20with:\x20delegate-cli\x20tenant\x20<name>\x0a','answers','getTurnUsageHistory','now','--skills-path','Created\x20delegation\x20','org-users','--preload-skill','Cartographer:\x20','getSessionId','--tenant','--attach\x20applies\x20to\x20prompts\x20only.','verbose','filter','completion_tokens','\x20\x20TASK\x0a','\x20\x20\x20\x20BYO\x20warning:\x20','--no-security','AUTH_TOKEN_FILE\x20\x27','Task\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','logout','--summary','origin','transcribe:\x20cannot\x20read\x20','671468CfxSEF','estimated_cost_usd','choice','xhigh','--to','>.\x0a','structuredError','Forked\x20','pending','--url','--output-format','sendMessage','\x20must\x20be\x20a\x20JSON\x20object.','Answered','medium','\x0a⚠️\x20\x20Auth\x20expired.\x20Opening\x20browser\x20to\x20re-login…\x0a','score\x20','detail','--quiet','2276kOiRlr','limit_enabled','\x20min)','--json-schema','Missing\x20prompt.\x20Pass\x20it\x20as\x20an\x20argument,\x20pipe\x20it\x20via\x20stdin,\x20or\x20run\x20`delegate-cli\x20--help`.','88XJzoLR','url','ID\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','period_days','deployment','delegateTo','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','\x0aUse\x20with:\x20delegate-cli\x20--model\x20<id>\x20\x22<prompt>\x22\x0a','thinking','\x20(stdin\x20was\x20empty)','limit','preloadSkills','create','UiPath\x20Cloud','probability','models','attachments','catch','add','\x20(estimated\x20$','\x0aAccept\x20one\x20with:\x20delegate-cli\x20delegations\x20accept\x20<id>\x0a','--attach','\x20token\x20units','--print','Organization:\x20','/exit','startsWith','\x20—\x20sign\x20out\x20in\x20the\x20Delegate\x20app\x20to\x20clear\x20that.','a\x20number','\x0a🤔\x20','end','host','max','rejection','\x20\x20TITLE\x0a','--project','Source:\x20\x20\x20\x20\x20\x20\x20','delegations\x20cancel\x20<delegation-id>','Rubric\x20','delegation','Licensing:\x20\x20\x20\x20','isError','test','noMemory','description','length','environment\x20variables\x20(AUTH_TOKEN/TENANT_ID/ORG_ID)','total_cost_usd','\x0aAvailable\x20models\x20(','version','--effort','email','Base\x20URL:\x20\x20\x20\x20\x20','total_token_units',',\x20or\x20holds\x20no\x20message\x20','then','keepAlive','login','usage','--include-subagents','delegations\x20list\x20<backend-project-id>','deleted','choice\x20','runnerUrl','stream-json','initialize','Could\x20not\x20check\x20BYO\x20model\x20warnings:\x20','workingDirectory','tenantId','off','Usage:\x20delegate-cli\x20sessions\x20cancel\x20<session-id>\x20--turn\x20<turn-id>','alreadyAccepted','verify','name','projectId','stderr','whoami','high','--days\x20applies\x20to\x20`delegate-cli\x20usage\x20activity|daily`;\x20the\x20summary\x20covers\x20the\x20current\x20month.','--cleanup','sessions','backendUrl','--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`delegate-cli\x20sessions\x20[list]`\x20only.','Claimed\x20from\x20delegation\x20','tenantName','page','61338tdLZGp','--tenant\x20requires\x20a\x20tenant\x20name.','prompt','complete\x20needs\x20--json-schema\x20<file>:\x20delegate-cli\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22.','delegations\x20create\x20--session\x20<id>\x20[--to\x20<email|name>]\x20[--summary\x20<text>]\x20\x22<task>\x22|-','\x20not\x20found.','delegations\x20accept\x20<delegation-id>',':\x20cannot\x20read\x20the\x20request\x20(','delegations\x20pending\x20<session-id>','--json-schema\x20applies\x20to\x20prompts\x20and\x20to\x20`delegate-cli\x20complete`\x20only.','Invalid\x20--project:\x20\x22','delegations\x20dismiss\x20<delegation-id>','4647ixmTgI','baseUrl','keys','accept','deepLink','byoWarning','No\x20usage\x20in\x20the\x20last\x20'];_0x5336=function(){return _0x58625c;};return _0x5336();}async function nn(_0x5561c7){const _0x174b98=_0x205463;O()&&(console[_0x174b98(0x2d9)]('Auth\x20comes\x20from\x20AUTH_TOKEN/TENANT_ID/ORG_ID\x20—\x20set\x20TENANT_ID\x20and\x20TENANT_SLUG\x20to\x20change\x20the\x20tenant.'),process[_0x174b98(0x2b2)](0x2));let _0x14a598=await _0x3cd393();if(_0x14a598||(console[_0x174b98(0x2d9)](on()),process[_0x174b98(0x2b2)](0x2)),_0x5561c7['trim']()){let _0x30d9ab=await _0xd4b98b(_0x14a598,_0x5561c7);_0x23220b(_0x30d9ab)||(console['error'](_0x174b98(0x1cb)+_0x29364f()+_0x174b98(0x168)+_0x14a598[_0x174b98(0x274)]+'.'),process['exit'](0x1)),console[_0x174b98(0x1ac)]('Tenant:\x20'+_0x30d9ab['tenantName']+'\x20('+_0x30d9ab[_0x174b98(0x264)]+_0x174b98(0x2d8)+_0x29364f());return;}sn(await _0x37def1(_0x14a598),_0x14a598);}function on(){const _0x3a7af0=_0x205463;if(_0x5adcf5[_0x3a7af0(0x199)](_0x29364f()))return'The\x20saved\x20CLI\x20login\x20could\x20not\x20be\x20refreshed.\x20Run\x20`delegate-cli\x20login`\x20again.';let _0x304765=L();return $(_0x304765)?_0x3a7af0(0x2c6)+_0x304765+_0x3a7af0(0x188):_0x3a7af0(0x29d);}function sn(_0x281606,_0x126d14){const _0x3faa7c=_0x205463;let _0x3b8405=_0x281606['map'](_0x37be82=>_0x37be82['id']===_0x126d14[_0x3faa7c(0x264)]?'*\x20'+_0x37be82['name']+_0x3faa7c(0x1d4):'\x20\x20'+_0x37be82[_0x3faa7c(0x269)]);process['stdout'][_0x3faa7c(0x1ca)]('Tenants\x20of\x20'+(_0x126d14['orgLogicalName']??_0x126d14['organizationId'])+':\x0a'+_0x3b8405[_0x3faa7c(0x2d2)]('\x0a')+'\x0a'),_0x281606['length']>0x1&&process[_0x3faa7c(0x143)][_0x3faa7c(0x1ca)](_0x3faa7c(0x1f0));}function rn(_0x31ef01){const _0x135af1=_0x205463;return _0x31ef01?.[_0x135af1(0x17b)]?.['status']===0x191||/401/[_0x135af1(0x24a)](String(_0x31ef01?.[_0x135af1(0x2ba)]??''));}var d={'lastType':null,'quiet':!0x1},an=_0x42fd5b=>{const _0x27a3f0=_0x205463;switch(_0x42fd5b[_0x27a3f0(0x2ed)]){case'session_start':_0x42fd5b['sessionId']&&_0x42fd5b[_0x27a3f0(0x2e1)]!==d[_0x27a3f0(0x2e1)]&&(process[_0x27a3f0(0x26b)]['write']('Session:\x20'+_0x42fd5b[_0x27a3f0(0x2e1)]+'\x20(resume\x20with\x20--session\x20'+_0x42fd5b[_0x27a3f0(0x2e1)]+')\x0a'),d['sessionId']=_0x42fd5b['sessionId']);break;case _0x27a3f0(0x137):_0x42fd5b[_0x27a3f0(0x182)]&&_0x42fd5b[_0x27a3f0(0x182)]!==d[_0x27a3f0(0x182)]&&(d[_0x27a3f0(0x130)]!==null&&process[_0x27a3f0(0x26b)][_0x27a3f0(0x1ca)]('\x0a'),process['stderr'][_0x27a3f0(0x1ca)]('Turn:\x20'+_0x42fd5b[_0x27a3f0(0x182)]+_0x27a3f0(0x147)+_0x42fd5b['sessionId']+_0x27a3f0(0x13d)+_0x42fd5b[_0x27a3f0(0x182)]+')\x0a'),d[_0x27a3f0(0x182)]=_0x42fd5b[_0x27a3f0(0x182)],d[_0x27a3f0(0x130)]=_0x27a3f0(0x137));break;case _0x27a3f0(0x228):_0x42fd5b[_0x27a3f0(0x2ce)]&&!d[_0x27a3f0(0x1c6)]&&(d['lastType']!==_0x27a3f0(0x228)&&process[_0x27a3f0(0x26b)][_0x27a3f0(0x1ca)](_0x27a3f0(0x23d)),process['stderr']['write'](_0x42fd5b[_0x27a3f0(0x2ce)]),d[_0x27a3f0(0x130)]=_0x27a3f0(0x228));break;case _0x27a3f0(0x2b0):d[_0x27a3f0(0x130)]!==null&&process[_0x27a3f0(0x26b)]['write']('\x0a'),process['stderr'][_0x27a3f0(0x1ca)]('🔧\x20'+(_0x42fd5b[_0x27a3f0(0x2ca)]??_0x27a3f0(0x152))+'\x0a'),d[_0x27a3f0(0x130)]=_0x27a3f0(0x2b0);break;case'message':_0x42fd5b[_0x27a3f0(0x2ce)]&&(d['lastType']!==_0x27a3f0(0x2ba)&&d['lastType']!==null&&process[_0x27a3f0(0x143)][_0x27a3f0(0x1ca)]('\x0a'),process[_0x27a3f0(0x143)]['write'](_0x42fd5b[_0x27a3f0(0x2ce)]),d[_0x27a3f0(0x130)]='message');break;case _0x27a3f0(0x2d9):d[_0x27a3f0(0x130)]!==null&&process['stderr'][_0x27a3f0(0x1ca)]('\x0a'),process[_0x27a3f0(0x26b)]['write']('✗\x20'+(_0x42fd5b[_0x27a3f0(0x2d9)]??_0x27a3f0(0x2d9))+'\x0a'),d[_0x27a3f0(0x130)]=_0x27a3f0(0x2d9);break;case _0x27a3f0(0x1e1):(d[_0x27a3f0(0x130)]===_0x27a3f0(0x2ba)||d[_0x27a3f0(0x130)]==='thinking')&&process[_0x27a3f0(0x143)][_0x27a3f0(0x1ca)]('\x0a'),process[_0x27a3f0(0x26b)][_0x27a3f0(0x1ca)](_0x27a3f0(0x2e4)),d[_0x27a3f0(0x130)]=_0x27a3f0(0x1e1);break;}};function Z(_0xfba5d1,_0xf91e18,_0x5376e9){const _0x2ba02d=_0x205463;let _0x317a31=_0xfba5d1[_0x2ba02d(0x14d)]||process.env.MODEL;return{'backendUrl':_0x5376e9,'auth':_0xf91e18,'enableComputerUse':!_0xfba5d1[_0x2ba02d(0x15b)]&&!_0xfba5d1[_0x2ba02d(0x2b3)],'autoSpawnInterop':!_0xfba5d1[_0x2ba02d(0x15b)],'enableConnections':!_0xfba5d1['noConnections'],'enableSecurity':!_0xfba5d1[_0x2ba02d(0x164)],'keepInteropAlive':_0xfba5d1[_0x2ba02d(0x258)],..._0xfba5d1[_0x2ba02d(0x24b)]?{'enableMemory':!0x1}:{},..._0xfba5d1[_0x2ba02d(0x16b)]?{'enableTaskAutomation':!0x0}:{},..._0xfba5d1[_0x2ba02d(0x22b)][_0x2ba02d(0x24d)]>0x0?{'preloadSkills':_0xfba5d1[_0x2ba02d(0x22b)]}:{},..._0x317a31?{'model':_0x317a31}:{},..._0xfba5d1[_0x2ba02d(0x26a)]?{'projectId':_0xfba5d1['projectId']}:{},..._0xfba5d1[_0x2ba02d(0x263)]?{'workingDirectory':_0xfba5d1[_0x2ba02d(0x263)]}:{},..._0xfba5d1[_0x2ba02d(0x2be)]?{'bundledSkillsPath':_0xfba5d1[_0x2ba02d(0x2be)]}:{},..._0xfba5d1['effort']?{'effort':_0xfba5d1[_0x2ba02d(0x1ad)]}:{},..._0xfba5d1[_0x2ba02d(0x2e1)]?{'sessionId':_0xfba5d1[_0x2ba02d(0x2e1)]}:{},..._0xfba5d1[_0x2ba02d(0x1fc)]?{'verbose':!0x0}:{}};}async function ln(_0x3858fa){const _0x1419ad=_0x205463;let _0xf3cc54=_0x3858fa[_0x1419ad(0x2bb)]!==_0x1419ad(0x2c4),_0x5252aa=_0x3858fa['jsonSchemaPath']===void 0x0?null:ue(_0x3858fa[_0x1419ad(0x14e)],_0x1419ad(0x1c1)),_0x5282b0=!_0xf3cc54&&!_0x5252aa&&!_0x3858fa[_0x1419ad(0x29c)]&&_0x3858fa[_0x1419ad(0x278)]!=='-'&&!!process[_0x1419ad(0x2b6)][_0x1419ad(0x2b4)]&&!!process[_0x1419ad(0x143)][_0x1419ad(0x2b4)],_0x3ad76d=_0x5282b0?_0x3858fa['prompt'][_0x1419ad(0x2a3)]():await I(_0x3858fa['prompt'],process[_0x1419ad(0x2b6)]);if(!_0x5282b0&&!_0x3ad76d&&(console[_0x1419ad(0x2d9)](_0x1419ad(0x21f)),process[_0x1419ad(0x2b2)](0x2)),!_0xf3cc54){await ee(_0x3858fa,_0x3ad76d,_0x5282b0,null,_0x5252aa);return;}let _0x41ca3d=!0x1,_0x7b2055=_0xfcc7dc=>{const _0x1296ab=_0x1419ad;_0x41ca3d=!0x0,S(_0x4fc92a(_0xfcc7dc)),(_0xfcc7dc[_0x1296ab(0x249)]||_0xfcc7dc[_0x1296ab(0x20e)])&&(process[_0x1296ab(0x1b7)]=0x1);},_0x4187d6=Date[_0x1419ad(0x1f3)]();try{await ee(_0x3858fa,_0x3ad76d,!0x1,_0x7b2055,_0x5252aa);}catch(_0x1fd39e){if(_0x41ca3d)throw _0x1fd39e;process[_0x1419ad(0x26b)][_0x1419ad(0x1ca)]((_0x1fd39e instanceof Error?_0x1fd39e['stack']??_0x1fd39e[_0x1419ad(0x2ba)]:String(_0x1fd39e))+'\x0a'),_0x7b2055(new _0x241bd7(_0x4187d6)[_0x1419ad(0x28d)]({'endedAtMs':Date[_0x1419ad(0x1f3)](),'usage':[],'error':_0x1fd39e}));}}async function ee(_0x44d727,_0x38f11a,_0x3b4cb6,_0x3307fc,_0x7713f6){const _0x348df2=_0x205463;d={'lastType':null,'quiet':_0x44d727[_0x348df2(0x1c6)]};let _0x2b4cc8=new Set(),_0x14a70a=_0x18fd41=>{const _0x41b567=_0x348df2;(!_0x3307fc||_0x18fd41[_0x41b567(0x2ed)]==='session_start'||_0x18fd41['type']==='turn_start')&&an(_0x18fd41);for(let _0x158935 of _0x2b4cc8)_0x158935(_0x18fd41);},_0x5bd221=await P(),_0x44cd70=new _0x3d1629();_0x44cd70['onEvent'](_0x14a70a);let _0x99b52f=_0x58f72b(_0x44d727['env'],_0x5bd221,_0x44d727[_0x348df2(0x271)]);F(_0x44d727['env'],_0x44d727['backendUrl'],_0x99b52f);let _0x456cfc=Z(_0x44d727,_0x5bd221,_0x99b52f),_0xadfcbc=!0x1,_0x2d1f50=!0x1,_0x52cd4b,_0x9f6382=()=>_0x52cd4b??=_0x44cd70[_0x348df2(0x155)](),_0x357102=()=>{const _0x2bd8cf=_0x348df2;_0x2d1f50&&process[_0x2bd8cf(0x2b2)](0x82),_0x2d1f50=!0x0,process[_0x2bd8cf(0x26b)][_0x2bd8cf(0x1ca)](_0x2bd8cf(0x1b5)),_0xadfcbc&&_0x44cd70[_0x2bd8cf(0x2ae)]()[_0x2bd8cf(0x231)](_0x6c1973=>console['error'](_0x6c1973))['then'](_0x9f6382)[_0x2bd8cf(0x257)](()=>process[_0x2bd8cf(0x2b2)](0x82),_0x1698ad=>{const _0x21c00c=_0x2bd8cf;console[_0x21c00c(0x2d9)](_0x1698ad),process['exit'](0x82);});};process['on'](_0x348df2(0x179),_0x357102);let _0x136b35=_0x44d727['attachments'],_0x404dc1=async _0x44254a=>{const _0x4a4cfa=_0x348df2;let _0x535e1b=_0x136b35;_0x136b35=[];let _0x3c764c=()=>_0x44cd70[_0x4a4cfa(0x213)](_0x44254a,{'attachments':_0x535e1b});try{return await _0x3c764c();}catch(_0x3ffc3c){if(_0x2d1f50||!rn(_0x3ffc3c)||!process['stdin'][_0x4a4cfa(0x2b4)]||_0x44d727['env']===_0x4a4cfa(0x189)||!(_0x44d727[_0x4a4cfa(0x2bf)]||_0x5bd221['baseUrl']))throw _0x3ffc3c;process[_0x4a4cfa(0x26b)][_0x4a4cfa(0x1ca)](_0x4a4cfa(0x217));let _0x325e37=_0x44cd70[_0x4a4cfa(0x1f9)]()??_0x44d727[_0x4a4cfa(0x2e1)],_0x173505=await _0x1b42c0(_0x44d727[_0x4a4cfa(0x2bf)]?{'env':_0x44d727[_0x4a4cfa(0x2bf)],'tenant':C(_0x5bd221,_0x5ed554[_0x44d727['env']]),'skipEnvCheck':!0x0}:{'baseUrl':_0x5bd221[_0x4a4cfa(0x283)],'tenant':_0x5bd221[_0x4a4cfa(0x274)],'skipEnvCheck':!0x0}),_0x1da87d={'text':'','failed':!0x1,'sessionId':_0x325e37};return _0x2d1f50||(_0xadfcbc=!0x1,await _0x9f6382(),_0x2d1f50)?_0x1da87d:(_0x44cd70=new _0x3d1629(),_0x52cd4b=void 0x0,_0x44cd70[_0x4a4cfa(0x150)](_0x14a70a),_0x5bd221=_0x173505,await _0x44cd70[_0x4a4cfa(0x261)]({...Z(_0x44d727,_0x5bd221,_0x99b52f),..._0x325e37?{'sessionId':_0x325e37}:{}}),_0xadfcbc=!0x0,_0x2d1f50?_0x1da87d:_0x3c764c());}};try{if(await _0x44cd70[_0x348df2(0x261)](_0x456cfc),_0xadfcbc=!0x0,_0x2d1f50)return;if(_0x3b4cb6)await un({'prompt':_0x38f11a,'sendMessage':_0x404dc1,'onSigint':_0x357102});else{if(_0x3307fc||_0x7713f6){let _0x10c504=_0x44d727['outputFormat']===_0x348df2(0x260)?_0x41e60f=>S(_0x4d7438(_0x41e60f)):()=>{},_0xad1892=await _0x185d06({'onEvent':_0x26b3df=>(_0x2b4cc8[_0x348df2(0x232)](_0x26b3df),()=>{const _0x2ba69e=_0x348df2;_0x2b4cc8[_0x2ba69e(0x1bc)](_0x26b3df);}),'sendMessage':_0x8aff12=>_0x404dc1(_0x8aff12),'getSessionId':()=>_0x44cd70[_0x348df2(0x1f9)](),'getTurnUsageHistory':_0x3b8dd0=>_0x44cd70[_0x348df2(0x1f2)](_0x3b8dd0),'complete':_0x2ecfe9=>_0x44cd70[_0x348df2(0x1b0)](_0x2ecfe9)},_0x38f11a,void 0x0,_0x10c504,_0x7713f6?{'outputSchema':_0x7713f6}:void 0x0);_0x3307fc?_0x3307fc(_0xad1892):cn(_0xad1892);}else await _0x404dc1(_0x38f11a);}}catch(_0x56e985){if(!_0x2d1f50)throw _0x56e985;}finally{try{await _0x9f6382();}finally{process[_0x348df2(0x265)](_0x348df2(0x179),_0x357102),_0x2d1f50&&(process[_0x348df2(0x1b7)]=0x82);}}}function cn(_0x24e798){const _0x37a449=_0x205463;_0x24e798['structuredError']?(console[_0x37a449(0x2d9)](_0x37a449(0x1ea)+_0x24e798['structuredError'][_0x37a449(0x2ba)]),process[_0x37a449(0x1b7)]=0x1):_0x24e798[_0x37a449(0x249)]?(console[_0x37a449(0x2d9)](_0x37a449(0x1ed)+_0x24e798[_0x37a449(0x2d9)]+').'),process['exitCode']=0x1):process[_0x37a449(0x143)]['write'](JSON[_0x37a449(0x156)](_0x24e798[_0x37a449(0x290)],null,0x2)+'\x0a');}function dn(_0x43aebf,_0x3db9a0){const _0x21167b=_0x205463;let _0x1aa4cc=process[_0x21167b(0x143)][_0x21167b(0x1ca)]['bind'](process[_0x21167b(0x143)]),_0x8e378e=!0x1;return process['stdout'][_0x21167b(0x1ca)]=(..._0x446c59)=>{const _0x25e2a7=_0x21167b;if(!_0x8e378e)return _0x1aa4cc(..._0x446c59);_0x43fd90(_0x3db9a0,0x0),_0x16b5d7(_0x3db9a0,0x0);let _0x2d74d9=_0x1aa4cc(..._0x446c59);return _0x43aebf[_0x25e2a7(0x278)](!0x0),_0x2d74d9;},{'show':()=>{const _0x4240ca=_0x21167b;_0x8e378e=!0x0,_0x43aebf[_0x4240ca(0x278)]();},'hide':()=>{_0x8e378e=!0x1;},'restore':()=>{const _0x32c928=_0x21167b;_0x8e378e=!0x1,process[_0x32c928(0x143)][_0x32c928(0x1ca)]=_0x1aa4cc;}};}async function un({prompt:_0x56d18f,sendMessage:_0x4cab77,onSigint:_0x3e1308}){const _0x5483ad=_0x205463;let _0x325c13=_0x2c5ed3({'input':process['stdin'],'output':process[_0x5483ad(0x26b)],'terminal':!0x0,'prompt':_0x5483ad(0x2f0)}),_0x31f7de=dn(_0x325c13,process[_0x5483ad(0x26b)]),_0x119a8b=_0x325c13[Symbol['asyncIterator']](),_0x5b5eb0=!0x1;_0x325c13[_0x5483ad(0x1cc)](_0x5483ad(0x14f),()=>{const _0x5b042e=_0x5483ad;_0x5b5eb0=!0x0,_0x31f7de[_0x5b042e(0x1c0)]();});let _0x415b96=!0x1,_0x5e2bcc=()=>{const _0x488056=_0x5483ad;_0x415b96=!0x0,_0x325c13[_0x488056(0x14f)](),_0x3e1308();};_0x325c13['on'](_0x5483ad(0x179),_0x5e2bcc),process['stderr'][_0x5483ad(0x1ca)]('Enter\x20sends\x20a\x20message.\x20/exit\x20or\x20EOF\x20exits;\x20Ctrl+C\x20stops\x20and\x20exits.\x0a');try{if(_0x56d18f&&await _0x4cab77(_0x56d18f),_0x415b96)return;_0x5b5eb0||_0x31f7de[_0x5483ad(0x299)]();for await(let _0x50e2cd of _0x119a8b){if(_0x31f7de[_0x5483ad(0x1c0)](),_0x415b96)break;let _0xdb1184=_0x50e2cd[_0x5483ad(0x2a3)]();if(_0xdb1184===_0x5483ad(0x239))break;_0xdb1184&&await _0x4cab77(_0xdb1184),_0x5b5eb0||_0x31f7de[_0x5483ad(0x299)]();}}finally{_0x31f7de[_0x5483ad(0x1ec)](),_0x325c13['off'](_0x5483ad(0x179),_0x5e2bcc),_0x325c13[_0x5483ad(0x14f)]();}}async function pn(){const _0x1e61ec=_0x205463;let _0x5b5d18=ht(process['argv'][_0x1e61ec(0x184)](0x2));if(_0x5b5d18[_0x1e61ec(0x2bb)]==='text'){await te(_0x5b5d18);return;}let _0x266773=gt();try{await te(_0x5b5d18);}finally{_0x266773();}}async function te(_0xf2ab89){const _0x4da108=_0x205463;if(_0xf2ab89['help']){wt();return;}if(_0xf2ab89['version']){console[_0x4da108(0x1ac)](yt());return;}if(_0xf2ab89[_0x4da108(0x28b)]===_0x4da108(0x259)){await en(_0xf2ab89);return;}if(_0xf2ab89['subcommand']===_0x4da108(0x135)){await nn(_0xf2ab89[_0x4da108(0x278)]);return;}if(_0xf2ab89[_0x4da108(0x28b)]===_0x4da108(0x204)){await vt();return;}if(_0xf2ab89['subcommand']===_0x4da108(0x26c)){await At(_0xf2ab89);return;}if(_0xf2ab89[_0x4da108(0x28b)]===_0x4da108(0x22f)){await Tt(_0xf2ab89);return;}if(_0xf2ab89[_0x4da108(0x28b)]===_0x4da108(0x1c4)){await Lt(_0xf2ab89);return;}if(_0xf2ab89[_0x4da108(0x28b)]===_0x4da108(0x270)){await Dt(_0xf2ab89);return;}if(_0xf2ab89[_0x4da108(0x28b)]===_0x4da108(0x25a)){await Ft(_0xf2ab89);return;}if(_0xf2ab89[_0x4da108(0x28b)]===_0x4da108(0x12f)||_0xf2ab89[_0x4da108(0x28b)]===_0x4da108(0x2ea)||_0xf2ab89[_0x4da108(0x28b)]===_0x4da108(0x268)){await Ht(_0xf2ab89,_0xf2ab89['subcommand']);return;}if(_0xf2ab89[_0x4da108(0x28b)]===_0x4da108(0x1b0)){await Jt(_0xf2ab89);return;}if(_0xf2ab89[_0x4da108(0x28b)]==='transcribe'){await zt(_0xf2ab89);return;}if(_0xf2ab89[_0x4da108(0x28b)]===_0x4da108(0x1c9)){await Yt(_0xf2ab89);return;}if(_0xf2ab89[_0x4da108(0x28b)]===_0x4da108(0x1f6)){await Zt(_0xf2ab89);return;}if(_0xf2ab89[_0x4da108(0x28b)]===_0x4da108(0x23f)){await _0x1e3278(_0xf2ab89[_0x4da108(0x278)],{'runnerUrl':_0xf2ab89[_0x4da108(0x25f)],'backendUrl':_0xf2ab89['backendUrl'],'interopPath':_0xf2ab89[_0x4da108(0x146)],'workerId':_0xf2ab89['workerId']});return;}if(_0xf2ab89[_0x4da108(0x131)]){await $t();return;}await ln(_0xf2ab89);}var mn=process.env.NODE_ENV===_0x205463(0x24a)||!!process.env.JEST_WORKER_ID;mn||pn()[_0x205463(0x231)](_0xba6688=>{const _0x25d0d7=_0x205463;console[_0x25d0d7(0x2d9)](_0xba6688[_0x25d0d7(0x2bd)]||_0xba6688['message']||_0xba6688),process['exit'](0x1);});export{ft as CARTOGRAPHER_SKILLS,G as EFFORT_TIERS,kt as IMPLICIT_STDIN_IDLE_MS,Z as buildInitOptions,pn as main,ht as parseArgs,yt as readCliVersion,I as resolvePrompt,gt as routeStdoutToStderr,l as writeCommandResult};
2
+ const _0x2002b5=_0x213b;(function(_0x32bdb1,_0x25840b){const _0x4ef770=_0x213b,_0x51b01e=_0x32bdb1();while(!![]){try{const _0x179759=parseInt(_0x4ef770(0x2e7))/0x1+-parseInt(_0x4ef770(0x251))/0x2*(-parseInt(_0x4ef770(0x1e6))/0x3)+-parseInt(_0x4ef770(0x26d))/0x4*(-parseInt(_0x4ef770(0x33e))/0x5)+-parseInt(_0x4ef770(0x28a))/0x6*(parseInt(_0x4ef770(0x24d))/0x7)+parseInt(_0x4ef770(0x19c))/0x8+-parseInt(_0x4ef770(0x350))/0x9+-parseInt(_0x4ef770(0x34b))/0xa;if(_0x179759===_0x25840b)break;else _0x51b01e['push'](_0x51b01e['shift']());}catch(_0x2ba32a){_0x51b01e['push'](_0x51b01e['shift']());}}}(_0x49a5,0x8b3e6));const __dirname=import.meta.dirname;import _0x1bbe55 from'fs';import _0x192bdc from'path';import{clearLine as _0x5c9b50,createInterface as _0x49b099,cursorTo as _0x201b33}from'node:readline';import{BUSINESS_ANALYSIS_PRELOADED_SKILLS as _0x51bdb6,DelegateAgent as _0x25c932,cancelTurn as _0x477663,InteropProcess as _0x379e6b,complete as _0x6cec1b,DEFAULT_MODEL as _0x49442a,createBackendClient as _0x33fee6,evaluate as _0x57f506,isCompletionRequestError as _0x92f2c,isEvaluationRequestError as _0x5cb04,isTranscriptionError as _0x52b48e,rerank as _0x6e2c8b,transcribe as _0x326f1a,verify as _0x5186f5,acceptDelegation as _0x2ae8fd,cancelDelegation as _0x323b85,claimDelegation as _0x4e48e7,completeDelegation as _0x370d10,createDelegation as _0x10acc6,deleteDelegation as _0x8eeb2f,dismissDelegation as _0x5e1751,getSessionDelegations as _0x26045f,isDelegationError as _0x281853,listDelegations as _0x1b96c4,listOrgUsers as _0x535011,previewDelegation as _0x51d242,TurnResultCollector as _0x1a16aa,agentEventToJsonLine as _0x28cde4,describeBaseUrlRejection as _0x6e7e36,getActivitySummary as _0x81b7b1,getAuthFilePath as _0x1721dd,getByoWarnings as _0x55b2a9,getCartographerAllowance as _0x1b9689,getDailyBreakdown as _0x398569,getLicensingSummary as _0x4b1a1c,getMonthlySpending as _0x50b5fb,isOutputFormat as _0x5e94b3,isCloudBaseUrl as _0x4f3317,isSafeProjectFolderSegment as _0x404435,listModels as _0x53cd65,listSessions as _0x4edf34,getSession as _0x546f6d,renameSession as _0x269122,deleteSession as _0x16a2e1,deleteSessionTaskLog as _0x2e0216,forkSession as _0x28259d,isBackendRequestError as _0xab1571,MAX_SESSION_PAGE_SIZE as _0x28db6d,listTenants as _0x5e8e8a,loadAndRefreshAuth as _0x403165,loadAndRefreshSdkLogin as _0x5a6e85,parsePlatformBaseUrl as _0xf3dfcd,resolveBackendUrl as _0x4b501e,runHealthCheck as _0x5e8f73,runHostCommand as _0x4eeb18,runLoginFlow as _0x1236ef,runTurnForResult as _0x55ab42,saveAuthData as _0x2c82c0,switchTenant as _0x148ca4,toJsonLine as _0x39a43f,ENV_TO_CLOUD as _0x1b1584,OUTPUT_FORMATS as _0x58e692}from'@uipath/delegate-sdk';var mt=['login',_0x2002b5(0x1cf),_0x2002b5(0x1b4),_0x2002b5(0x1d8),_0x2002b5(0x238),_0x2002b5(0x1f5),_0x2002b5(0x285),_0x2002b5(0x1d7),_0x2002b5(0x2ce),_0x2002b5(0x2dc),_0x2002b5(0x32c),'verify',_0x2002b5(0x330),_0x2002b5(0x1b5),_0x2002b5(0x25b),'org-users'],W=['',_0x2002b5(0x1b4),_0x2002b5(0x1f5),_0x2002b5(0x285),_0x2002b5(0x1d7),_0x2002b5(0x2ce),_0x2002b5(0x2dc),_0x2002b5(0x32c),'verify',_0x2002b5(0x330),_0x2002b5(0x1b5),_0x2002b5(0x25b),_0x2002b5(0x290)],G=[_0x2002b5(0x342),_0x2002b5(0x30d),_0x2002b5(0x235),_0x2002b5(0x249),_0x2002b5(0x33a)],ft=_0x51bdb6;function p(_0x32580a,_0x3743d4,_0xe7ad6a,_0x1349e8){const _0x36eedc=_0x2002b5;let _0xe7a0e8=_0x32580a[_0x3743d4];return(!_0xe7a0e8||_0xe7a0e8[_0x36eedc(0x1bb)]>0x1&&_0xe7a0e8['startsWith']('-'))&&(console['error'](_0xe7ad6a+_0x36eedc(0x22d)+_0x1349e8+'.'),process['exit'](0x2)),_0xe7a0e8;}function N(_0x127bdc,_0x46d726,_0x414bcd,_0x171f93){const _0x594149=_0x2002b5;let _0x42f3b8=p(_0x127bdc,_0x46d726,_0x414bcd,_0x594149(0x309)),_0x40fa67=Number(_0x42f3b8);return(!/^\d+$/[_0x594149(0x1ac)](_0x42f3b8)||_0x40fa67<0x1||!Number['isSafeInteger'](_0x40fa67)||_0x171f93!==void 0x0&&_0x40fa67>_0x171f93)&&(console[_0x594149(0x212)](_0x414bcd+'\x20must\x20be\x20a\x20whole\x20number\x20'+(_0x171f93===void 0x0?_0x594149(0x296):_0x594149(0x300)+_0x171f93)+_0x594149(0x26e)+_0x42f3b8+'.'),process['exit'](0x2)),_0x40fa67;}function ht(_0x4681b0){const _0x3a875e=_0x2002b5;let _0x2717c7={'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':_0x3a875e(0x25f),'preloadSkills':[],'attachments':[],'skipEnvCheck':!0x1,'includeSubAgents':!0x1,'operands':[],'help':!0x1,'version':!0x1};mt[_0x3a875e(0x358)](_0x4681b0[0x0])&&(_0x2717c7[_0x3a875e(0x2ee)]=_0x4681b0[0x0],_0x4681b0=_0x4681b0[_0x3a875e(0x33d)](0x1));let _0xd2e352=[];for(let _0x15f43b=0x0;_0x15f43b<_0x4681b0['length'];_0x15f43b++){let _0x52a695=_0x4681b0[_0x15f43b];switch(_0x52a695){case _0x3a875e(0x2f7):case'-p':_0x2717c7[_0x3a875e(0x334)]=!0x0;break;case'--keep-alive':_0x2717c7['keepAlive']=!0x0;break;case _0x3a875e(0x307):_0x2717c7[_0x3a875e(0x27e)]=!0x0;break;case _0x3a875e(0x1cd):_0x2717c7['headless']=!0x0;break;case _0x3a875e(0x33f):_0x2717c7[_0x3a875e(0x2e0)]=!0x0;break;case _0x3a875e(0x1f1):_0x2717c7[_0x3a875e(0x23b)]=!0x0,_0x2717c7['noComputerUse']=!0x0,_0x2717c7[_0x3a875e(0x346)][_0x3a875e(0x250)](...ft);break;case'--no-connections':_0x2717c7[_0x3a875e(0x1d6)]=!0x0;break;case'--no-security':_0x2717c7['noSecurity']=!0x0;break;case _0x3a875e(0x257):_0x2717c7[_0x3a875e(0x331)]=!0x0;break;case'--task-automation':_0x2717c7['taskAutomation']=!0x0;break;case _0x3a875e(0x1bf):case'-q':_0x2717c7[_0x3a875e(0x32e)]=!0x0;break;case'--verbose':_0x2717c7[_0x3a875e(0x2b3)]=!0x0;break;case _0x3a875e(0x325):_0x2717c7['backendUrl']=_0x4681b0[++_0x15f43b];break;case _0x3a875e(0x19a):_0x2717c7[_0x3a875e(0x316)]=_0x4681b0[++_0x15f43b];break;case _0x3a875e(0x2ae):_0x2717c7[_0x3a875e(0x2ac)]=_0x4681b0[++_0x15f43b];break;case _0x3a875e(0x34f):_0x2717c7[_0x3a875e(0x31e)]=_0x4681b0[++_0x15f43b];break;case _0x3a875e(0x2c3):_0x2717c7[_0x3a875e(0x338)]=_0x4681b0[++_0x15f43b];break;case _0x3a875e(0x1ec):_0x2717c7[_0x3a875e(0x346)]['push'](p(_0x4681b0,++_0x15f43b,_0x52a695,_0x3a875e(0x2e4)));break;case _0x3a875e(0x1ef):{let _0x4209fa=p(_0x4681b0,++_0x15f43b,_0x52a695,_0x3a875e(0x356));_0x404435(_0x4209fa)||(console[_0x3a875e(0x212)](_0x3a875e(0x336)+_0x4209fa+'\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[_0x3a875e(0x260)](0x2)),_0x2717c7[_0x3a875e(0x2ef)]=_0x4209fa;break;}case _0x3a875e(0x2a8):{let _0x3ce92e=p(_0x4681b0,++_0x15f43b,_0x52a695,_0x3a875e(0x30e)+_0x58e692[_0x3a875e(0x2d5)](_0x3a875e(0x1cc))+')');_0x5e94b3(_0x3ce92e)||(console['error'](_0x3a875e(0x32d)+_0x3ce92e+_0x3a875e(0x2fa)+_0x58e692[_0x3a875e(0x2d5)](_0x3a875e(0x1cc))+'.'),process[_0x3a875e(0x260)](0x2)),_0x2717c7[_0x3a875e(0x276)]=_0x3ce92e;break;}case _0x3a875e(0x23f):_0x2717c7[_0x3a875e(0x246)]=p(_0x4681b0,++_0x15f43b,_0x52a695,'a\x20session\x20id');break;case _0x3a875e(0x22b):_0x2717c7[_0x3a875e(0x2d9)]=N(_0x4681b0,++_0x15f43b,_0x52a695);break;case _0x3a875e(0x1a2):_0x2717c7[_0x3a875e(0x30b)]=N(_0x4681b0,++_0x15f43b,_0x52a695,_0x28db6d);break;case _0x3a875e(0x268):_0x2717c7['includeSubAgents']=!0x0;break;case _0x3a875e(0x230):_0x2717c7['jsonSchemaPath']=p(_0x4681b0,++_0x15f43b,_0x52a695,_0x3a875e(0x252));break;case'--attach':{let _0x421459=_0x192bdc[_0x3a875e(0x2fe)](process[_0x3a875e(0x2ad)](),p(_0x4681b0,++_0x15f43b,_0x52a695,'a\x20file\x20path'));_0x1bbe55[_0x3a875e(0x1cb)](_0x421459)||(console['error'](_0x3a875e(0x205)+_0x421459),process[_0x3a875e(0x260)](0x2)),_0x2717c7[_0x3a875e(0x286)]['push'](_0x421459);break;}case _0x3a875e(0x34c):_0x2717c7[_0x3a875e(0x220)]=p(_0x4681b0,++_0x15f43b,_0x52a695,'a\x20turn\x20id');break;case _0x3a875e(0x293):_0x2717c7[_0x3a875e(0x359)]=p(_0x4681b0,++_0x15f43b,_0x52a695,'an\x20email\x20address\x20or\x20name');break;case _0x3a875e(0x24f):_0x2717c7[_0x3a875e(0x320)]=p(_0x4681b0,++_0x15f43b,_0x52a695,_0x3a875e(0x34e));break;case'--days':_0x2717c7['days']=N(_0x4681b0,++_0x15f43b,_0x52a695,0x16d);break;case _0x3a875e(0x27c):_0x2717c7[_0x3a875e(0x202)]=_0x192bdc[_0x3a875e(0x2fe)](process[_0x3a875e(0x2ad)](),p(_0x4681b0,++_0x15f43b,_0x52a695,_0x3a875e(0x209)));break;case _0x3a875e(0x31b):_0x2717c7['bundledSkillsPath']=_0x192bdc['resolve'](process['cwd'](),p(_0x4681b0,++_0x15f43b,_0x52a695,_0x3a875e(0x209)));break;case _0x3a875e(0x210):{let _0x4aaffb=p(_0x4681b0,++_0x15f43b,_0x52a695,_0x3a875e(0x216));G[_0x3a875e(0x358)](_0x4aaffb)||(console['error']('Invalid\x20--effort:\x20'+_0x4aaffb+'.\x20Use\x20'+G[_0x3a875e(0x2d5)]('\x20|\x20')+'.'),process[_0x3a875e(0x260)](0x2)),_0x2717c7[_0x3a875e(0x2ed)]=_0x4aaffb;break;}case _0x3a875e(0x242):{let _0x57712b=_0x4681b0[++_0x15f43b];(!_0x57712b||_0x57712b['startsWith']('--'))&&(console['error']('--tenant\x20requires\x20a\x20tenant\x20name.'),process[_0x3a875e(0x260)](0x2)),_0x2717c7[_0x3a875e(0x1cf)]=_0x57712b;break;}case _0x3a875e(0x2a5):{let _0x305803=_0x4681b0[++_0x15f43b];[_0x3a875e(0x2e6),'staging',_0x3a875e(0x2b7),_0x3a875e(0x1ad)]['includes'](_0x305803)||(console['error']('Invalid\x20--env:\x20'+_0x305803+'.\x20Use\x20alpha\x20|\x20staging\x20|\x20production\x20|\x20localhost.'),process[_0x3a875e(0x260)](0x2)),_0x2717c7[_0x3a875e(0x1c0)]=_0x305803;break;}case _0x3a875e(0x349):case'--authority':{let _0x567bc9=p(_0x4681b0,++_0x15f43b,_0x52a695,'a\x20deployment\x20URL,\x20e.g.\x20https://automationsuite.contoso.com'),_0x2219f4=_0xf3dfcd(_0x567bc9);if(_0x2219f4['ok']===!0x1){console[_0x3a875e(0x212)](_0x6e7e36(_0x567bc9,_0x2219f4[_0x3a875e(0x2a3)])),process[_0x3a875e(0x260)](0x2);break;}_0x2717c7['url']=_0x2219f4[_0x3a875e(0x1a8)];break;}case _0x3a875e(0x20d):_0x2717c7['skipEnvCheck']=!0x0;break;case'-h':case _0x3a875e(0x337):_0x2717c7[_0x3a875e(0x2c5)]=!0x0;break;case'-v':case _0x3a875e(0x29f):_0x2717c7['version']=!0x0;break;default:_0x52a695[_0x3a875e(0x1da)]('--')&&(console[_0x3a875e(0x212)](_0x3a875e(0x244)+_0x52a695),process[_0x3a875e(0x260)](0x2)),_0xd2e352[_0x3a875e(0x250)](_0x52a695);}}return _0x2717c7['tenant']!==void 0x0&&_0x2717c7[_0x3a875e(0x2ee)]!==_0x3a875e(0x24a)&&(console[_0x3a875e(0x212)]('--tenant\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Switch\x20tenants\x20with:\x20delegate-cli\x20tenant\x20<name>'),process[_0x3a875e(0x260)](0x2)),_0x2717c7['url']!==void 0x0&&_0x2717c7[_0x3a875e(0x1c0)]!==void 0x0&&(console[_0x3a875e(0x212)](_0x3a875e(0x2f0)),process[_0x3a875e(0x260)](0x2)),_0x2717c7[_0x3a875e(0x313)]!==void 0x0&&_0x2717c7[_0x3a875e(0x2ee)]!==_0x3a875e(0x24a)&&(console['error']('--url\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Other\x20commands\x20follow\x20the\x20saved\x20login,\x20or\x20--backend\x20<url>.'),process[_0x3a875e(0x260)](0x2)),_0x2717c7['days']!==void 0x0&&_0x2717c7[_0x3a875e(0x2ee)]!==_0x3a875e(0x2ce)&&(console[_0x3a875e(0x212)](_0x3a875e(0x201)),process[_0x3a875e(0x260)](0x2)),_0x2717c7[_0x3a875e(0x32a)]!==void 0x0&&(_0x2717c7['subcommand']!=='complete'&&_0x2717c7[_0x3a875e(0x2ee)]!==''||_0x2717c7[_0x3a875e(0x27e)])&&(console[_0x3a875e(0x212)](_0x3a875e(0x1fd)),process['exit'](0x2)),_0x2717c7[_0x3a875e(0x286)]['length']>0x0&&(_0x2717c7['subcommand']!==''||_0x2717c7[_0x3a875e(0x27e)])&&(console['error']('--attach\x20applies\x20to\x20prompts\x20only.'),process[_0x3a875e(0x260)](0x2)),_0x2717c7[_0x3a875e(0x282)]&&(_0x2717c7[_0x3a875e(0x2ee)]!==''||_0x2717c7[_0x3a875e(0x27e)])&&(console[_0x3a875e(0x212)](_0x3a875e(0x344)),process[_0x3a875e(0x260)](0x2)),_0x2717c7[_0x3a875e(0x282)]&&(_0x2717c7[_0x3a875e(0x22a)]||_0x2717c7[_0x3a875e(0x2e0)])&&(console[_0x3a875e(0x212)](_0x3a875e(0x327)),process['exit'](0x2)),_0x2717c7['skipEnvCheck']&&_0x2717c7[_0x3a875e(0x2ee)]!==_0x3a875e(0x24a)&&(console[_0x3a875e(0x212)](_0x3a875e(0x234)),process[_0x3a875e(0x260)](0x2)),_0x2717c7['outputFormat']!==_0x3a875e(0x25f)&&!W[_0x3a875e(0x358)](_0x2717c7[_0x3a875e(0x2ee)])&&(console[_0x3a875e(0x212)](_0x3a875e(0x1ee)+_0x2717c7['outputFormat']+_0x3a875e(0x207)+W[_0x3a875e(0x1c3)](Boolean)[_0x3a875e(0x2d5)](',\x20')+'.'),process['exit'](0x2)),(_0x2717c7[_0x3a875e(0x2d9)]!==void 0x0||_0x2717c7[_0x3a875e(0x30b)]!==void 0x0||_0x2717c7[_0x3a875e(0x2de)])&&_0x2717c7[_0x3a875e(0x2ee)]!==_0x3a875e(0x1d7)&&(console[_0x3a875e(0x212)](_0x3a875e(0x1de)),process[_0x3a875e(0x260)](0x2)),(_0x2717c7[_0x3a875e(0x359)]!==void 0x0||_0x2717c7['contextSummary']!==void 0x0)&&_0x2717c7[_0x3a875e(0x2ee)]!==_0x3a875e(0x25b)&&(console[_0x3a875e(0x212)](_0x3a875e(0x289)),process[_0x3a875e(0x260)](0x2)),_0x2717c7[_0x3a875e(0x220)]!==void 0x0&&_0x2717c7['subcommand']!==_0x3a875e(0x1d7)&&(console[_0x3a875e(0x212)](_0x3a875e(0x2a2)),process[_0x3a875e(0x260)](0x2)),_0x2717c7[_0x3a875e(0x346)]=[...new Set(_0x2717c7[_0x3a875e(0x346)])],_0x2717c7[_0x3a875e(0x272)]=_0xd2e352,_0x2717c7[_0x3a875e(0x2c6)]=_0xd2e352[_0x3a875e(0x2d5)]('\x20'),_0x2717c7;}var S=_0xbc9422=>{const _0x377018=_0x2002b5;process[_0x377018(0x218)][_0x377018(0x1dc)](_0xbc9422);};function gt(){const _0x3074ab=_0x2002b5;let _0xdd1593=process[_0x3074ab(0x218)][_0x3074ab(0x1dc)],_0x4add33=_0xdd1593[_0x3074ab(0x2fb)](process[_0x3074ab(0x218)]),_0x474958=S;return S=_0x3df6db=>{_0x4add33(_0x3df6db);},process['stdout'][_0x3074ab(0x1dc)]=(..._0x225d42)=>process['stderr']['write'](..._0x225d42),()=>{const _0x1a7adf=_0x3074ab;process[_0x1a7adf(0x218)][_0x1a7adf(0x1dc)]=_0xdd1593,S=_0x474958;};}function l(_0x1cf995,_0x1eb5c8,_0xfb3b15){const _0x28bb6e=_0x2002b5;if(_0x1cf995[_0x28bb6e(0x276)]===_0x28bb6e(0x25f)){_0xfb3b15(_0x1eb5c8);return;}S(_0x39a43f(_0x1eb5c8));}function wt(){const _0x37a61b=_0x2002b5;let _0x5a80f9=_0x37a61b(0x2d8)[_0x37a61b(0x1d3)]();console['log'](_0x5a80f9);}function yt(){const _0x663038=_0x2002b5;try{return JSON[_0x663038(0x227)](_0x1bbe55[_0x663038(0x2c0)](_0x192bdc[_0x663038(0x2d5)](__dirname,'..',_0x663038(0x2bf)),_0x663038(0x1e9)))[_0x663038(0x2a1)]||'unknown';}catch{return _0x663038(0x1a1);}}var kt=0x7d0;async function K(_0x5d33bf,_0x247979){const _0x493f43=_0x2002b5;let _0x252e47=_0x247979?[_0x247979]:[];for await(let _0x42d8ce of _0x5d33bf)_0x252e47[_0x493f43(0x250)](Buffer[_0x493f43(0x21a)](_0x42d8ce));return Buffer[_0x493f43(0x329)](_0x252e47)[_0x493f43(0x2b4)](_0x493f43(0x1e9))[_0x493f43(0x1d3)]();}function _0x213b(_0x37b271,_0x2526a2){_0x37b271=_0x37b271-0x197;const _0x49a5e2=_0x49a5();let _0x213b5b=_0x49a5e2[_0x37b271];return _0x213b5b;}function St(_0x4ea920,_0x4b38f3){return new Promise(_0x584196=>{const _0x49c8a1=_0x213b;let _0x12a1bb=_0x8e3d86=>{const _0x4da369=_0x213b;clearTimeout(_0x22cc75),_0x4ea920[_0x4da369(0x288)]('data',_0x2208d5),_0x4ea920['off'](_0x4da369(0x199),_0x40581d),_0x4ea920[_0x4da369(0x288)](_0x4da369(0x212),_0x40581d),_0x4ea920['pause'](),_0x584196(_0x8e3d86);},_0x2208d5=_0x5a0d71=>_0x12a1bb(Buffer[_0x49c8a1(0x21a)](_0x5a0d71)),_0x40581d=()=>_0x12a1bb(null),_0x22cc75=setTimeout(()=>_0x12a1bb(null),_0x4b38f3);_0x4ea920['on'](_0x49c8a1(0x253),_0x2208d5),_0x4ea920['on']('end',_0x40581d),_0x4ea920['on']('error',_0x40581d),_0x4ea920[_0x49c8a1(0x248)]();});}async function I(_0x582555,_0x1e6402,_0x26c610=kt){const _0x33d35a=_0x2002b5;let _0x1078f1=_0x582555==='-';if(!_0x1078f1&&_0x582555)return _0x582555;if(!_0x1078f1&&_0x1e6402[_0x33d35a(0x20f)])return'';if(_0x1078f1)return K(_0x1e6402,null);let _0x214bfc=await St(_0x1e6402,_0x26c610);return _0x214bfc?K(_0x1e6402,_0x214bfc):'';}function L(){const _0x9daebe=_0x2002b5;return _0x192bdc[_0x9daebe(0x2d5)](process.env.HOME||process.env.USERPROFILE||'',_0x9daebe(0x2ea),_0x9daebe(0x2c2));}function $(_0x2177d0){const _0x1f406b=_0x2002b5;try{let _0x34b5c5=JSON[_0x1f406b(0x227)](_0x1bbe55[_0x1f406b(0x2c0)](_0x2177d0,_0x1f406b(0x1e9)));return!_0x34b5c5[_0x1f406b(0x2bd)]||!_0x34b5c5['tenantId']||!_0x34b5c5['organizationId']?null:_0x34b5c5;}catch{return null;}}function bt(){let _0x7bdff6=[{'file':_0x1721dd(),'isDesktopFallback':!0x1},{'file':L(),'isDesktopFallback':!0x0}];for(let _0x80b204 of _0x7bdff6){let _0x15930d=$(_0x80b204['file']);if(_0x15930d)return{..._0x80b204,'auth':_0x15930d};}return null;}async function vt(){const _0x2c96a0=_0x2002b5;let _0xaad1e6=_0x1721dd();if(!_0x1bbe55[_0x2c96a0(0x1cb)](_0xaad1e6)){let _0x3931b2=L();console[_0x2c96a0(0x30c)]($(_0x3931b2)?_0x2c96a0(0x317)+_0x3931b2+_0x2c96a0(0x1f7):_0x2c96a0(0x20a));return;}_0x1bbe55[_0x2c96a0(0x197)](_0xaad1e6),console[_0x2c96a0(0x30c)](_0x2c96a0(0x261)+_0xaad1e6);}async function At(_0x4f5cf5){const _0x558520=_0x2002b5;let _0x4763eb=O(),_0xce6ff4,_0x273166;if(_0x4763eb)_0xce6ff4=_0x4763eb,_0x273166=_0x558520(0x348);else{let _0x3df856=bt();if(!_0x3df856)throw new Error(le);_0xce6ff4=_0x3df856[_0x558520(0x200)],_0x273166=_0x3df856[_0x558520(0x2b5)]?_0x3df856['file']+_0x558520(0x2ff):_0x3df856[_0x558520(0x2ba)];}let _0x23dcf8={'source':_0x273166,'baseUrl':_0xce6ff4[_0x558520(0x1a8)]??null,'deployment':Et(_0xce6ff4['baseUrl']),'organization':{'id':_0xce6ff4[_0x558520(0x2b6)],'slug':_0xce6ff4['orgLogicalName']??null},'tenant':{'id':_0xce6ff4[_0x558520(0x312)],'name':_0xce6ff4[_0x558520(0x303)]??null},'tokenExpiresAt':_0xce6ff4[_0x558520(0x324)]?new Date(_0xce6ff4['expiresAt']*0x3e8)[_0x558520(0x245)]():null};l(_0x4f5cf5,_0x23dcf8,()=>{const _0xc9cdeb=_0x558520;let _0x396a5c=['Source:\x20\x20\x20\x20\x20\x20\x20'+_0x273166,_0xc9cdeb(0x352)+(_0xce6ff4['baseUrl']??_0xc9cdeb(0x1a1)),'Deployment:\x20\x20\x20'+_0x23dcf8['deployment'],_0xc9cdeb(0x2ab)+(_0xce6ff4['orgLogicalName']??_0xc9cdeb(0x321))+'\x20('+_0xce6ff4[_0xc9cdeb(0x2b6)]+')',_0xc9cdeb(0x1a7)+(_0xce6ff4['tenantName']??_0xc9cdeb(0x321))+'\x20('+_0xce6ff4[_0xc9cdeb(0x312)]+')'];if(_0xce6ff4[_0xc9cdeb(0x324)]){let _0x5c8475=_0xce6ff4[_0xc9cdeb(0x324)]-Math['floor'](Date['now']()/0x3e8);_0x396a5c['push'](_0x5c8475>0x0?_0xc9cdeb(0x24c)+_0x23dcf8[_0xc9cdeb(0x20b)]+_0xc9cdeb(0x31a)+Math[_0xc9cdeb(0x295)](_0x5c8475/0x3c)+'\x20min)':'Token:\x20\x20\x20\x20\x20\x20\x20\x20expired\x20'+_0x23dcf8[_0xc9cdeb(0x20b)]);}process['stdout'][_0xc9cdeb(0x1dc)](_0x396a5c[_0xc9cdeb(0x2d5)]('\x0a')+'\x0a');});}var le=_0x2002b5(0x255);function Et(_0x5a3ee5){const _0x1d4a2a=_0x2002b5;return _0x5a3ee5?_0x4f3317(_0x5a3ee5)?'UiPath\x20Cloud':_0x1d4a2a(0x306):_0x1d4a2a(0x1a1);}function O(){let _0x49edd8=process.env.AUTH_TOKEN_FILE;return(process.env.AUTH_TOKEN||_0x49edd8)&&process.env.TENANT_ID&&process.env.ORG_ID?{'accessToken':_0x49edd8?It(_0x49edd8):process.env.AUTH_TOKEN,..._0x49edd8?{'accessTokenFile':_0x49edd8}:{},'tenantId':process.env.TENANT_ID,'organizationId':process.env.ORG_ID,'orgLogicalName':process.env.ORG_SLUG,'tenantName':process.env.TENANT_SLUG,'baseUrl':ce()}:null;}function It(_0x407021){const _0xb081d8=_0x2002b5;let _0x40057a;try{_0x40057a=_0x1bbe55[_0xb081d8(0x2c0)](_0x407021,_0xb081d8(0x1e9))['trim']();}catch(_0x560f55){throw new Error('AUTH_TOKEN_FILE\x20\x27'+_0x407021+'\x27\x20cannot\x20be\x20read:\x20'+_0x560f55[_0xb081d8(0x259)]);}let _0x356615=_0x40057a['startsWith'](_0xb081d8(0x25e))?_0x40057a['slice'](0x7)[_0xb081d8(0x1d3)]():_0x40057a;if(!_0x356615)throw new Error(_0xb081d8(0x1db)+_0x407021+'\x27\x20is\x20empty.');return _0x356615;}function ce(){const _0x2d9fda=_0x2002b5;let _0x34bfd7=process.env.UIPATH_BASE_URL;if(!_0x34bfd7)return;let _0x2db0b1=_0xf3dfcd(_0x34bfd7);if(_0x2db0b1['ok']===!0x1)throw new Error('UIPATH_BASE_URL\x20is\x20unusable.\x20'+_0x6e7e36(_0x34bfd7,_0x2db0b1[_0x2d9fda(0x2a3)]));return _0x2db0b1[_0x2d9fda(0x1a8)];}async function P(){let _0x594b3d=O();if(_0x594b3d)return _0x594b3d;let _0x301d2a=await _0x403165();if(_0x301d2a)return _0x301d2a;throw new Error(le);}async function $t(){const _0x539cd4=_0x2002b5;await new _0x379e6b()['stop']({'force':!0x0}),console[_0x539cd4(0x30c)](_0x539cd4(0x208));}function F(_0x23b471,_0x14ac1b,_0x48c454){const _0x65a269=_0x2002b5;_0x23b471?process[_0x65a269(0x2af)][_0x65a269(0x1dc)](_0x65a269(0x1d1)+_0x23b471+_0x65a269(0x2cb)+_0x48c454+'\x0a'):!_0x14ac1b&&!process.env.BACKEND_URL&&process['stderr'][_0x65a269(0x1dc)]('[saved\x20login]\x20Backend\x20URL:\x20'+_0x48c454+'\x0a');}async function f(_0x28b8ef){const _0x5e7eac=_0x2002b5;let _0x2048d0=await P(),_0x2db07a=_0x4b501e(_0x28b8ef['env'],_0x2048d0,_0x28b8ef[_0x5e7eac(0x204)]);return F(_0x28b8ef[_0x5e7eac(0x1c0)],_0x28b8ef[_0x5e7eac(0x204)],_0x2db07a),{'auth':_0x2048d0,'backendUrl':_0x2db07a,'client':_0x33fee6({'auth':_0x2048d0,'backendUrl':_0x2db07a})};}async function Tt(_0x52b337){const _0x408bbb=_0x2002b5;let {client:_0x4c958d}=await f(_0x52b337),[_0x451a9c,_0x56da85]=await Promise[_0x408bbb(0x27b)]([_0x53cd65(_0x4c958d),_0x55b2a9(_0x4c958d)['catch'](_0xe05d60=>(process[_0x408bbb(0x2af)][_0x408bbb(0x1dc)](_0x408bbb(0x236)+(_0xe05d60 instanceof Error?_0xe05d60[_0x408bbb(0x259)]:String(_0xe05d60))+'\x0a'),{}))]),_0xe3f4f8=_0x451a9c[_0x408bbb(0x2e2)](_0x111eb0=>_0x56da85[_0x111eb0['id']]?{..._0x111eb0,'byoWarning':_0x56da85[_0x111eb0['id']]}:_0x111eb0);l(_0x52b337,_0xe3f4f8,xt);}function xt(_0x375358){const _0x42fa5b=_0x2002b5;if(_0x375358[_0x42fa5b(0x1bb)]===0x0){process['stderr'][_0x42fa5b(0x1dc)](_0x42fa5b(0x1d5));return;}process[_0x42fa5b(0x218)][_0x42fa5b(0x1dc)](_0x42fa5b(0x1c1)+_0x375358[_0x42fa5b(0x1bb)]+_0x42fa5b(0x2a7));for(let _0x5972e3 of _0x375358){let _0x4162f6=_0x5972e3[_0x42fa5b(0x2a6)]&&_0x5972e3[_0x42fa5b(0x2a6)]!==_0x5972e3['id']?'\x20('+_0x5972e3[_0x42fa5b(0x2a6)]+')':'';process['stdout'][_0x42fa5b(0x1dc)]('\x20\x20'+_0x5972e3['id']+_0x4162f6+'\x0a'),_0x5972e3[_0x42fa5b(0x2cf)]&&process[_0x42fa5b(0x218)][_0x42fa5b(0x1dc)](_0x42fa5b(0x1f3)+_0x5972e3['description']+'\x0a'),_0x5972e3[_0x42fa5b(0x318)]&&process['stdout']['write'](_0x42fa5b(0x23c)+(_0x5972e3[_0x42fa5b(0x1ed)]?'\x20('+_0x5972e3[_0x42fa5b(0x1ed)]+')':'')+'\x0a'),_0x5972e3['byoWarning']&&process[_0x42fa5b(0x218)][_0x42fa5b(0x1dc)](_0x42fa5b(0x31c)+_0x5972e3[_0x42fa5b(0x2eb)]+'\x0a');}process['stdout'][_0x42fa5b(0x1dc)]('\x0aUse\x20with:\x20delegate-cli\x20--model\x20<id>\x20\x22<prompt>\x22\x0a');}var z=[_0x2002b5(0x353),_0x2002b5(0x1ae),_0x2002b5(0x1be),_0x2002b5(0x2d2),_0x2002b5(0x2f3),'fork'];async function Dt(_0x44c148){const _0x59448d=_0x2002b5;let [_0x6b76cb='',_0x20b2a6='',..._0x301a60]=_0x44c148['operands'];if(_0x6b76cb&&!z['includes'](_0x6b76cb)&&(console[_0x59448d(0x212)]('Unknown\x20sessions\x20action:\x20'+_0x6b76cb+_0x59448d(0x28c)+z[_0x59448d(0x2d5)](_0x59448d(0x1cc))+'.'),process[_0x59448d(0x260)](0x2)),_0x44c148[_0x59448d(0x220)]!==void 0x0&&_0x6b76cb!==_0x59448d(0x2f3)&&(console[_0x59448d(0x212)](_0x59448d(0x2a2)),process[_0x59448d(0x260)](0x2)),_0x6b76cb&&_0x6b76cb!==_0x59448d(0x353)){await Ut(_0x44c148,_0x6b76cb,_0x20b2a6,_0x301a60[_0x59448d(0x2d5)]('\x20')[_0x59448d(0x1d3)]());return;}_0x44c148[_0x59448d(0x272)][_0x59448d(0x1bb)]>0x1&&(console['error'](_0x59448d(0x278)),process[_0x59448d(0x260)](0x2));let {client:_0x5e5221}=await f(_0x44c148),_0x225164=await _0x4edf34(_0x5e5221,{'page':_0x44c148['page'],'pageSize':_0x44c148[_0x59448d(0x30b)],'includeSubAgents':_0x44c148[_0x59448d(0x2de)]});l(_0x44c148,_0x225164,Rt);}async function Ut(_0x82c00d,_0x16f2f4,_0x242c27,_0x1ed01a){const _0x56ea2f=_0x2002b5;if((_0x82c00d[_0x56ea2f(0x2d9)]!==void 0x0||_0x82c00d[_0x56ea2f(0x30b)]!==void 0x0||_0x82c00d[_0x56ea2f(0x2de)])&&(console['error']('--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`delegate-cli\x20sessions\x20[list]`\x20only.'),process[_0x56ea2f(0x260)](0x2)),_0x16f2f4===_0x56ea2f(0x2f3)){await Nt(_0x82c00d,_0x242c27,_0x1ed01a);return;}if(_0x16f2f4===_0x56ea2f(0x287)){await Ct(_0x82c00d,_0x242c27,_0x1ed01a);return;}(!_0x242c27||_0x16f2f4===_0x56ea2f(0x1be)!=!!_0x1ed01a)&&(console['error'](_0x56ea2f(0x310)+_0x16f2f4+_0x56ea2f(0x26f)+(_0x16f2f4===_0x56ea2f(0x1be)?_0x56ea2f(0x214):'')),process[_0x56ea2f(0x260)](0x2));let {client:_0x5b6132}=await f(_0x82c00d);try{if(_0x16f2f4===_0x56ea2f(0x1ae)){let _0x63dc44=await _0x546f6d(_0x5b6132,_0x242c27);_0x63dc44||V(_0x242c27),l(_0x82c00d,_0x63dc44,_t);}else{if(_0x16f2f4==='rename'){let _0x394d52=await _0x269122(_0x5b6132,_0x242c27,_0x1ed01a);l(_0x82c00d,_0x394d52,_0xadcae6=>{const _0x44e812=_0x56ea2f;process[_0x44e812(0x218)][_0x44e812(0x1dc)]('Renamed\x20'+_0xadcae6['id']+':\x20'+_0xadcae6[_0x44e812(0x2f5)]+'\x0a');});}else await _0x16a2e1(_0x5b6132,_0x242c27),await _0x2e0216(_0x242c27,_0x82c00d[_0x56ea2f(0x202)]),l(_0x82c00d,{'id':_0x242c27,'deleted':!0x0},_0x4c9eee=>{const _0x3a7c79=_0x56ea2f;process[_0x3a7c79(0x218)]['write'](_0x3a7c79(0x28e)+_0x4c9eee['id']+'.\x0a');});}}catch(_0x4a92a2){if(!_0xab1571(_0x4a92a2,0x194))throw _0x4a92a2;V(_0x242c27);}}function V(_0x51648c){const _0x5b398f=_0x2002b5;console[_0x5b398f(0x212)](_0x5b398f(0x343)+_0x51648c+'\x20not\x20found.'),process['exit'](0x1);}function _t(_0x44bedb){const _0x56d68e=_0x2002b5;process[_0x56d68e(0x218)][_0x56d68e(0x1dc)](_0x56d68e(0x280)+_0x44bedb['id']+'\x0a'),process[_0x56d68e(0x218)][_0x56d68e(0x1dc)]('Title\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x44bedb[_0x56d68e(0x2f5)]+'\x0a'),process[_0x56d68e(0x218)][_0x56d68e(0x1dc)](_0x56d68e(0x297)+_0x44bedb[_0x56d68e(0x1fb)]+'\x0a'),process[_0x56d68e(0x218)][_0x56d68e(0x1dc)](_0x56d68e(0x2e9)+_0x44bedb[_0x56d68e(0x2b6)]+'\x0a'),_0x44bedb[_0x56d68e(0x1e1)]&&process[_0x56d68e(0x218)][_0x56d68e(0x1dc)](_0x56d68e(0x2cd)+_0x44bedb[_0x56d68e(0x1e1)]+'\x0a');}async function Nt(_0x31c612,_0x2ae2fc,_0x2b40a5){const _0x396f51=_0x2002b5;(!_0x2ae2fc||_0x2b40a5||!_0x31c612[_0x396f51(0x220)])&&(console[_0x396f51(0x212)]('Usage:\x20delegate-cli\x20sessions\x20cancel\x20<session-id>\x20--turn\x20<turn-id>'),process[_0x396f51(0x260)](0x2));let {client:_0x4e6abb}=await f(_0x31c612),_0x5d84df=await _0x477663(_0x4e6abb,_0x2ae2fc,_0x31c612['turnId']);l(_0x31c612,{'sessionId':_0x2ae2fc,'turnId':_0x31c612[_0x396f51(0x220)],'cancelled':_0x5d84df},_0x1da803=>{const _0xbbafc2=_0x396f51;_0x1da803['cancelled']?process[_0xbbafc2(0x218)][_0xbbafc2(0x1dc)](_0xbbafc2(0x225)+_0x1da803[_0xbbafc2(0x220)]+'\x20of\x20session\x20'+_0x1da803['sessionId']+'.\x0a'):process['stderr'][_0xbbafc2(0x1dc)](_0xbbafc2(0x1fa)+_0x1da803['turnId']+'\x20in\x20progress\x20on\x20session\x20'+_0x1da803[_0xbbafc2(0x246)]+'.\x0a');}),_0x5d84df||(process[_0x396f51(0x2a9)]=0x1);}async function Ct(_0xdd5c60,_0x1b88d3,_0x3f292e){const _0x16e015=_0x2002b5;(!_0x1b88d3||/\s/[_0x16e015(0x1ac)](_0x3f292e))&&(console[_0x16e015(0x212)](_0x16e015(0x315)),process[_0x16e015(0x260)](0x2));let {client:_0x26129d}=await f(_0xdd5c60),_0x21057a;try{_0x21057a=await _0x28259d(_0x26129d,_0x1b88d3,{'atMessageId':_0x3f292e||void 0x0});}catch(_0x2691be){if(!_0xab1571(_0x2691be,0x194))throw _0x2691be;console[_0x16e015(0x212)](_0x16e015(0x343)+_0x1b88d3+'\x20not\x20found,\x20has\x20no\x20messages'+(_0x3f292e?_0x16e015(0x323)+_0x3f292e:'')+'.'),process[_0x16e015(0x260)](0x1);}l(_0xdd5c60,_0x21057a,_0x108800=>{const _0x117cc7=_0x16e015;process['stdout'][_0x117cc7(0x1dc)](_0x117cc7(0x1bd)+_0x1b88d3+_0x117cc7(0x2c8)+_0x108800['id']+'.\x0a'),process['stderr']['write'](_0x117cc7(0x28d)+_0x108800['id']+_0x117cc7(0x333));});}function Rt({sessions:_0x450b4c,page:_0x46d3cc,isLastPage:_0x43c900}){const _0x4370b3=_0x2002b5;if(_0x450b4c[_0x4370b3(0x1bb)]===0x0)process[_0x4370b3(0x2af)][_0x4370b3(0x1dc)]('No\x20sessions\x20on\x20page\x20'+_0x46d3cc+'.\x0a');else{process[_0x4370b3(0x218)][_0x4370b3(0x1dc)]('ID'[_0x4370b3(0x29b)](0x24)+'\x20\x20'+'UPDATED'[_0x4370b3(0x29b)](0x13)+_0x4370b3(0x291));for(let _0x48b7c6 of _0x450b4c){let _0x17c4c8=_0x48b7c6[_0x4370b3(0x247)][_0x4370b3(0x2d1)]('T','\x20')[_0x4370b3(0x33d)](0x0,0x13),_0x57ec91=_0x48b7c6[_0x4370b3(0x1f0)]?_0x4370b3(0x284)+_0x48b7c6[_0x4370b3(0x1f0)]+')':'';process[_0x4370b3(0x218)][_0x4370b3(0x1dc)](_0x48b7c6['id'][_0x4370b3(0x29b)](0x24)+'\x20\x20'+_0x17c4c8['padEnd'](0x13)+'\x20\x20'+_0x48b7c6[_0x4370b3(0x2f5)]+_0x57ec91+'\x0a');}}_0x43c900||process[_0x4370b3(0x2af)][_0x4370b3(0x1dc)](_0x4370b3(0x1e3)+(_0x46d3cc+0x1)+'\x0a');}async function Lt(_0x1fa300){const _0x2197d5=_0x2002b5;let _0x35cb11=await P(),_0x54614e=_0x4b501e(_0x1fa300[_0x2197d5(0x1c0)],_0x35cb11,_0x1fa300[_0x2197d5(0x204)]);F(_0x1fa300[_0x2197d5(0x1c0)],_0x1fa300['backendUrl'],_0x54614e);let _0x205fcd=await _0x5e8f73({'auth':_0x35cb11,'backendUrl':_0x54614e,'interop':_0x1fa300['headless']?_0x2197d5(0x269):_0x2197d5(0x2f1)});l(_0x1fa300,_0x205fcd,({checks:_0x47eb03})=>{const _0x50216d=_0x2197d5;for(let _0x564e7d of _0x47eb03)process['stdout'][_0x50216d(0x1dc)](Ot(_0x564e7d)+'\x0a');}),_0x205fcd['ok']||process[_0x2197d5(0x260)](0x1);}function Ot(_0xf4c5ed){const _0x378490=_0x2002b5;return{'ok':'✓','failed':'✗','skipped':'-'}[_0xf4c5ed['status']]+'\x20'+_0xf4c5ed[_0x378490(0x2a6)][_0x378490(0x29b)](0xa)+_0xf4c5ed[_0x378490(0x231)];}var Pt=['',_0x2002b5(0x232),_0x2002b5(0x19b)];async function Ft(_0x3e2138){const _0x3f03e4=_0x2002b5;let _0xbdebc7=_0x3e2138['prompt'];Pt[_0x3f03e4(0x358)](_0xbdebc7)||(console['error']('Unknown\x20usage\x20view:\x20'+_0x3e2138['prompt']+_0x3f03e4(0x25c)),process[_0x3f03e4(0x260)](0x2)),_0xbdebc7===''&&_0x3e2138[_0x3f03e4(0x1c6)]!==void 0x0&&(console[_0x3f03e4(0x212)](_0x3f03e4(0x274)),process[_0x3f03e4(0x260)](0x2)),_0xbdebc7!==''&&_0x3e2138[_0x3f03e4(0x246)]!==void 0x0&&(console[_0x3f03e4(0x212)]('--session\x20applies\x20to\x20the\x20`delegate-cli\x20usage`\x20summary\x20only.'),process[_0x3f03e4(0x260)](0x2));let {client:_0x2cbb8b}=await f(_0x3e2138);if(_0xbdebc7==='activity'){l(_0x3e2138,await _0x81b7b1(_0x2cbb8b,{'days':_0x3e2138[_0x3f03e4(0x1c6)]}),Mt);return;}if(_0xbdebc7===_0x3f03e4(0x19b)){l(_0x3e2138,await _0x398569(_0x2cbb8b,{'days':_0x3e2138[_0x3f03e4(0x1c6)]}),Bt);return;}let [_0xa66d60,_0x4b7438,_0x4ac30f]=await Promise['all']([_0x4b1a1c(_0x2cbb8b,{'sessionId':_0x3e2138['sessionId']}),_0x50b5fb(_0x2cbb8b),_0x1b9689(_0x2cbb8b)]);l(_0x3e2138,{'licensing':_0xa66d60,'monthlySpending':_0x4b7438,'cartographerAllowance':_0x4ac30f},jt);}function jt(_0x152503){const _0x49c3cd=_0x2002b5;let {licensing:_0xda98e5,monthlySpending:_0x55bbf8,cartographerAllowance:_0x27ddd9}=_0x152503,_0x4757b2=[_0xda98e5[_0x49c3cd(0x2c7)]?_0x49c3cd(0x1d9)+_0xda98e5[_0x49c3cd(0x1f9)][_0x49c3cd(0x1ce)](0x1)+'%\x20of\x20'+(_0xda98e5[_0x49c3cd(0x263)]??0x0)+_0x49c3cd(0x345)+(_0xda98e5[_0x49c3cd(0x1e8)]>0x0?',\x20'+_0xda98e5[_0x49c3cd(0x1e8)]+_0x49c3cd(0x23d):'')+_0x49c3cd(0x2ec)+_0xda98e5[_0x49c3cd(0x1dd)]+')':_0x49c3cd(0x215),_0x49c3cd(0x239)+_0x55bbf8[_0x49c3cd(0x319)][_0x49c3cd(0x1ce)](0x2)+'\x20this\x20month'+(_0x55bbf8['limit_enabled']&&_0x55bbf8[_0x49c3cd(0x1d0)]!==null?_0x49c3cd(0x29c)+_0x55bbf8[_0x49c3cd(0x1d0)]['toFixed'](0x2)+_0x49c3cd(0x26a):_0x49c3cd(0x298)),'Cartographer:\x20'+_0x27ddd9[_0x49c3cd(0x1b9)]+'\x20('+_0x27ddd9[_0x49c3cd(0x223)]+')'];_0xda98e5[_0x49c3cd(0x2bc)]!==null&&_0xda98e5[_0x49c3cd(0x2bc)]!==void 0x0&&_0x4757b2[_0x49c3cd(0x250)](_0x49c3cd(0x270)+_0xda98e5[_0x49c3cd(0x2bc)]+_0x49c3cd(0x240)),process[_0x49c3cd(0x218)][_0x49c3cd(0x1dc)](_0x4757b2[_0x49c3cd(0x2d5)]('\x0a')+'\x0a');}function Mt(_0x1bfd7d){const _0x3c1cbe=_0x2002b5;let _0x561be4=[_0x3c1cbe(0x1b1)+_0x1bfd7d['period_days']+_0x3c1cbe(0x2f6)+_0x1bfd7d[_0x3c1cbe(0x1e5)]+_0x3c1cbe(0x1a3)+_0x1bfd7d[_0x3c1cbe(0x233)]+_0x3c1cbe(0x1b7),_0x3c1cbe(0x1f2)+_0x1bfd7d['total_cost_usd'][_0x3c1cbe(0x1ce)](0x2)+_0x3c1cbe(0x2bb)+_0x1bfd7d[_0x3c1cbe(0x2fd)][_0x3c1cbe(0x1ce)](0x2)+'\x20from\x20'+_0x1bfd7d[_0x3c1cbe(0x279)]+'\x20token\x20units)',_0x3c1cbe(0x22c)+_0x1bfd7d[_0x3c1cbe(0x1c4)]+_0x3c1cbe(0x2e1)+_0x1bfd7d[_0x3c1cbe(0x1a4)]+'\x20completion'];for(let [_0x4e80f4,_0x586bd0]of Object[_0x3c1cbe(0x326)](_0x1bfd7d['models_breakdown']))_0x561be4[_0x3c1cbe(0x250)]('\x20\x20'+_0x4e80f4+':\x20'+_0x586bd0+_0x3c1cbe(0x2e5));process['stdout'][_0x3c1cbe(0x1dc)](_0x561be4['join']('\x0a')+'\x0a');}function Bt(_0x837eda){const _0xf867ee=_0x2002b5;if(_0x837eda[_0xf867ee(0x1e2)][_0xf867ee(0x1bb)]===0x0){process[_0xf867ee(0x218)][_0xf867ee(0x1dc)](_0xf867ee(0x2be)+_0x837eda[_0xf867ee(0x2d0)]+_0xf867ee(0x2d6));return;}let _0x379f2e=[_0xf867ee(0x21e)];for(let _0x398bb1 of _0x837eda[_0xf867ee(0x1e2)])_0x379f2e[_0xf867ee(0x250)](_0x398bb1[_0xf867ee(0x2dd)]+'\x20\x20'+String(_0x398bb1[_0xf867ee(0x198)])[_0xf867ee(0x26c)](0xb)+'\x20\x20'+String(_0x398bb1[_0xf867ee(0x1fc)])['padStart'](0xd)+'\x20\x20'+String(_0x398bb1[_0xf867ee(0x1a0)])[_0xf867ee(0x26c)](0x11));process[_0xf867ee(0x218)][_0xf867ee(0x1dc)](_0x379f2e[_0xf867ee(0x2d5)]('\x0a')+'\x0a');}async function Ht(_0x430a1f,_0x45d63a){const _0x3d2511=_0x2002b5;let _0x24ceff=await qt(_0x430a1f['prompt'],_0x45d63a);_0x430a1f[_0x3d2511(0x316)]&&(_0x24ceff[_0x3d2511(0x316)]=_0x430a1f[_0x3d2511(0x316)]);let {client:_0x3ccd10}=await f(_0x430a1f);try{_0x45d63a===_0x3d2511(0x2dc)?l(_0x430a1f,await _0x57f506(_0x3ccd10,_0x24ceff,void 0x0),Wt):_0x45d63a==='rerank'?l(_0x430a1f,await _0x6e2c8b(_0x3ccd10,_0x24ceff,void 0x0),Gt):l(_0x430a1f,await _0x5186f5(_0x3ccd10,_0x24ceff,void 0x0),Kt);}catch(_0x53a919){if(!_0x5cb04(_0x53a919))throw _0x53a919;console[_0x3d2511(0x212)](_0x53a919[_0x3d2511(0x259)]),process[_0x3d2511(0x260)](0x1);}}async function qt(_0x1e2af8,_0x5cd295){const _0x27267b=_0x2002b5;let _0xb9b891;try{_0xb9b891=_0x1e2af8&&_0x1e2af8!=='-'?_0x1bbe55[_0x27267b(0x2c0)](_0x192bdc['resolve'](_0x1e2af8),_0x27267b(0x1e9)):await I(_0x1e2af8,process[_0x27267b(0x237)]);}catch(_0x11eee9){console[_0x27267b(0x212)](_0x5cd295+_0x27267b(0x1ff)+_0x11eee9[_0x27267b(0x259)]+').'),process[_0x27267b(0x260)](0x2);}return _0xb9b891||(console[_0x27267b(0x212)](_0x5cd295+_0x27267b(0x31d)+_0x5cd295+'\x20<file.json>,\x20or\x20-\x20to\x20read\x20stdin.'),process[_0x27267b(0x260)](0x2)),de(_0xb9b891,_0x5cd295,_0x27267b(0x20e));}function de(_0xa78ad4,_0x214090,_0x32684e){const _0x3c2877=_0x2002b5;let _0x1b8a81;try{_0x1b8a81=JSON[_0x3c2877(0x227)](_0xa78ad4);}catch(_0x4fa4d1){console['error'](_0x214090+':\x20'+_0x32684e+_0x3c2877(0x1c9)+_0x4fa4d1[_0x3c2877(0x259)]+').'),process[_0x3c2877(0x260)](0x2);}return(typeof _0x1b8a81!=_0x3c2877(0x2c1)||_0x1b8a81===null||Array[_0x3c2877(0x347)](_0x1b8a81))&&(console[_0x3c2877(0x212)](_0x214090+':\x20'+_0x32684e+'\x20must\x20be\x20a\x20JSON\x20object.'),process[_0x3c2877(0x260)](0x2)),_0x1b8a81;}function ue(_0x5dd759,_0x49aa5b){const _0x5e923a=_0x2002b5;let _0x382bf4;try{_0x382bf4=_0x1bbe55['readFileSync'](_0x192bdc[_0x5e923a(0x2fe)](_0x5dd759),_0x5e923a(0x1e9));}catch(_0xe2e004){console[_0x5e923a(0x212)](_0x49aa5b+_0x5e923a(0x203)+_0xe2e004[_0x5e923a(0x259)]+').'),process[_0x5e923a(0x260)](0x2);}return de(_0x382bf4,_0x49aa5b,'the\x20JSON\x20schema');}async function Jt(_0x4083e2){const _0x29a734=_0x2002b5;_0x4083e2[_0x29a734(0x32a)]===void 0x0&&(console[_0x29a734(0x212)](_0x29a734(0x302)),process[_0x29a734(0x260)](0x2));let _0x1d34ec=ue(_0x4083e2[_0x29a734(0x32a)],_0x29a734(0x330)),_0x199616=(await I(_0x4083e2[_0x29a734(0x2c6)],process[_0x29a734(0x237)]))[_0x29a734(0x1d3)]();_0x199616||(console[_0x29a734(0x212)]('complete\x20needs\x20a\x20prompt:\x20delegate-cli\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22,\x20or\x20-\x20to\x20read\x20stdin.'),process[_0x29a734(0x260)](0x2));let {client:_0x531265}=await f(_0x4083e2);try{let _0x464695=await _0x6cec1b(_0x531265,{'prompt':_0x199616,'jsonSchema':_0x1d34ec,'model':_0x4083e2[_0x29a734(0x316)]||process.env.MODEL||_0x49442a,..._0x4083e2[_0x29a734(0x246)]!==void 0x0&&{'sessionId':_0x4083e2[_0x29a734(0x246)]}},void 0x0);l(_0x4083e2,_0x464695,_0x2aaec5=>{const _0x2f0f1d=_0x29a734;process[_0x2f0f1d(0x218)][_0x2f0f1d(0x1dc)](JSON['stringify'](_0x2aaec5[_0x2f0f1d(0x304)],null,0x2)+'\x0a');});}catch(_0x2fbbea){if(!_0x92f2c(_0x2fbbea))throw _0x2fbbea;console[_0x29a734(0x212)](_0x2fbbea[_0x29a734(0x259)]),process[_0x29a734(0x260)](0x1);}}function j(_0x1317ba){const _0x24943c=_0x2002b5;process[_0x24943c(0x218)][_0x24943c(0x1dc)](_0x24943c(0x2da)+_0x1317ba[_0x24943c(0x316)]+'\x20('+_0x1317ba[_0x24943c(0x1b8)]+_0x24943c(0x1d2)+_0x1317ba[_0x24943c(0x2ce)][_0x24943c(0x206)]+'\x20tokens\x0a');}function Wt(_0x33f760){const _0x17e746=_0x2002b5;j(_0x33f760);for(let _0x37716c of Object[_0x17e746(0x24b)](_0x33f760[_0x17e746(0x357)])){let _0x255cb8=_0x33f760['answers'][_0x37716c],_0x54d824=_0x255cb8[_0x17e746(0x1b2)]==='probability'?_0x17e746(0x27f)+_0x255cb8['probability'][_0x17e746(0x1ce)](0x2):_0x255cb8[_0x17e746(0x1b2)]===_0x17e746(0x22e)?_0x17e746(0x26b)+_0x255cb8['choice']+_0x17e746(0x351)+_0x255cb8[_0x17e746(0x292)]['toFixed'](0x2)+')':_0x17e746(0x1df)+_0x255cb8['score'][_0x17e746(0x1ce)](0x2)+_0x17e746(0x351)+_0x255cb8[_0x17e746(0x292)][_0x17e746(0x1ce)](0x2)+')';process['stdout'][_0x17e746(0x1dc)]('\x20\x20'+_0x37716c+':\x20'+_0x54d824+'\x0a');}}function Gt(_0x3d82e5){const _0x4d0b71=_0x2002b5;j(_0x3d82e5),_0x3d82e5[_0x4d0b71(0x299)]['forEach']((_0x4ffc17,_0x35faec)=>{const _0x286b33=_0x4d0b71;process['stdout'][_0x286b33(0x1dc)]('\x20\x20'+(_0x35faec+0x1)+'.\x20'+_0x4ffc17['id']+'\x20\x20'+_0x4ffc17[_0x286b33(0x2c4)][_0x286b33(0x1ce)](0x3)+_0x286b33(0x213)+_0x4ffc17[_0x286b33(0x322)]+')\x0a');});}function Kt(_0x58b14b){const _0x21a540=_0x2002b5;j(_0x58b14b),process['stdout']['write']('Rubric\x20'+_0x58b14b[_0x21a540(0x2e3)]+'\x0a');for(let _0x38dd25 of _0x58b14b[_0x21a540(0x299)])process[_0x21a540(0x218)][_0x21a540(0x1dc)]('\x20\x20'+_0x38dd25['id']+':\x20'+_0x38dd25['verdict']+_0x21a540(0x351)+_0x38dd25['confidence']['toFixed'](0x2)+')\x0a');}async function zt(_0x327fe8){const _0x1d318c=_0x2002b5;let _0x505716=_0x327fe8[_0x1d318c(0x2c6)]['trim']();_0x505716||(console[_0x1d318c(0x212)]('transcribe\x20needs\x20audio:\x20delegate-cli\x20transcribe\x20<file>,\x20or\x20-\x20to\x20read\x20stdin.'),process[_0x1d318c(0x260)](0x2));let {client:_0x2072a6}=await f(_0x327fe8);try{let _0x130dcf=_0x505716==='-'?{'data':await Vt(process['stdin'])}:_0x505716;l(_0x327fe8,await _0x326f1a(_0x2072a6,_0x130dcf,void 0x0),_0x43da18=>{const _0x266bad=_0x1d318c;process['stdout'][_0x266bad(0x1dc)](_0x43da18[_0x266bad(0x25f)]+'\x0a');});}catch(_0x2ba8e4){if(_0x52b48e(_0x2ba8e4)&&(console[_0x1d318c(0x212)](_0x2ba8e4[_0x1d318c(0x259)]),process[_0x1d318c(0x260)](_0x2ba8e4[_0x1d318c(0x29e)]===void 0x0?0x2:0x1)),typeof _0x2ba8e4?.[_0x1d318c(0x1bc)]!=_0x1d318c(0x311))throw _0x2ba8e4;console[_0x1d318c(0x212)](_0x1d318c(0x23a)+_0x505716+'\x20('+_0x2ba8e4[_0x1d318c(0x259)]+').'),process[_0x1d318c(0x260)](0x2);}}async function Vt(_0x80b3fe){const _0xb8c087=_0x2002b5;let _0x172d1f=[];for await(let _0x199d99 of _0x80b3fe)_0x172d1f['push'](Buffer[_0xb8c087(0x21a)](_0x199d99));return Buffer[_0xb8c087(0x329)](_0x172d1f);}var Y=['list',_0x2002b5(0x1f8),_0x2002b5(0x1ae),'create',_0x2002b5(0x228),_0x2002b5(0x330),_0x2002b5(0x27a),_0x2002b5(0x273),'cancel',_0x2002b5(0x2d2)],X={'list':_0x2002b5(0x1c5),'pending':_0x2002b5(0x340),'show':'delegations\x20show\x20<delegation-id|delegate://delegation/…>','create':_0x2002b5(0x335),'claim':_0x2002b5(0x2f9),'complete':'delegations\x20complete\x20<delegation-id>\x20\x22<answer>\x22|-','accept':_0x2002b5(0x1a6),'dismiss':_0x2002b5(0x211),'cancel':_0x2002b5(0x294),'delete':_0x2002b5(0x258)};async function Yt(_0x49e7d0){const _0x2b12f2=_0x2002b5;let [_0x48b97d='',_0xc59bd5='',..._0x1c4b0a]=_0x49e7d0[_0x2b12f2(0x272)];Y[_0x2b12f2(0x358)](_0x48b97d)||(console['error']((_0x48b97d?'Unknown\x20delegations\x20action:\x20'+_0x48b97d+'.\x20':'')+_0x2b12f2(0x19d)+Y[_0x2b12f2(0x2d5)](_0x2b12f2(0x1cc))+'.'),process['exit'](0x2));let _0x323783=_0x48b97d;_0x323783!==_0x2b12f2(0x33b)&&(_0x49e7d0[_0x2b12f2(0x359)]!==void 0x0||_0x49e7d0[_0x2b12f2(0x320)]!==void 0x0||_0x49e7d0[_0x2b12f2(0x246)]!==void 0x0)&&(console['error'](_0x2b12f2(0x19e)),process[_0x2b12f2(0x260)](0x2));let _0x16d2ff=(_0x323783==='create'?_0x49e7d0[_0x2b12f2(0x272)]['slice'](0x1):_0x1c4b0a)[_0x2b12f2(0x2d5)]('\x20')[_0x2b12f2(0x1d3)](),_0x56038e=_0x323783===_0x2b12f2(0x33b)||_0x323783===_0x2b12f2(0x330);(_0x323783!==_0x2b12f2(0x33b)&&!_0xc59bd5||(_0x56038e?!_0x16d2ff:_0x16d2ff)||_0x323783==='create'&&!_0x49e7d0[_0x2b12f2(0x246)])&&(console[_0x2b12f2(0x212)](_0x2b12f2(0x243)+X[_0x323783]),process['exit'](0x2));let _0x260d27=_0x56038e&&_0x16d2ff==='-'?(await I('-',process['stdin']))[_0x2b12f2(0x1d3)]():_0x16d2ff;_0x56038e&&!_0x260d27&&(console[_0x2b12f2(0x212)](_0x2b12f2(0x243)+X[_0x323783]+_0x2b12f2(0x265)),process[_0x2b12f2(0x260)](0x2));let {client:_0x16c20a}=await f(_0x49e7d0);try{await Xt(_0x49e7d0,_0x16c20a,_0x323783,_0xc59bd5,_0x260d27);}catch(_0x4f263c){if(!_0x281853(_0x4f263c))throw _0x4f263c;console[_0x2b12f2(0x212)](_0x4f263c['message']),process['exit'](0x1);}}async function Xt(_0x490c99,_0xc736fc,_0x4593d9,_0x5e4f58,_0xf689a7){const _0x17f201=_0x2002b5;switch(_0x4593d9){case _0x17f201(0x353):l(_0x490c99,await _0x1b96c4(_0xc736fc,_0x5e4f58),Qt);return;case _0x17f201(0x1f8):l(_0x490c99,await _0x26045f(_0xc736fc,_0x5e4f58),_0x217dad=>{const _0x54fcda=_0x17f201;_0x217dad[_0x54fcda(0x341)]&&process[_0x54fcda(0x218)][_0x54fcda(0x1dc)](_0x54fcda(0x271)+_0x217dad['delegation']['id']+'\x20('+_0x217dad[_0x54fcda(0x341)][_0x54fcda(0x29e)]+_0x54fcda(0x2f2)),_0x217dad[_0x54fcda(0x21d)][_0x54fcda(0x1bb)]===0x0&&process['stderr']['write'](_0x54fcda(0x1f4));for(let _0x578519 of _0x217dad[_0x54fcda(0x21d)])process[_0x54fcda(0x218)][_0x54fcda(0x1dc)]('\x0a'+_0x578519['id']+_0x54fcda(0x1ab)+(_0x578519[_0x54fcda(0x2e8)]??_0x54fcda(0x1b3))+'\x20\x20'+(_0x578519[_0x54fcda(0x28b)]??'')+'\x0a'+(_0x578519[_0x54fcda(0x1ca)]?.[_0x54fcda(0x1b6)]??'')+'\x0a');_0x217dad[_0x54fcda(0x21d)][_0x54fcda(0x1bb)]>0x0&&process['stderr']['write'](_0x54fcda(0x275));});return;case'show':l(_0x490c99,await _0x51d242(_0xc736fc,_0x5e4f58),Q);return;case _0x17f201(0x33b):{let _0x85eebc=await _0x10acc6(_0xc736fc,{'sessionId':_0x490c99[_0x17f201(0x246)],'task':_0xf689a7,..._0x490c99[_0x17f201(0x320)]!==void 0x0&&{'contextSummary':_0x490c99[_0x17f201(0x320)]},..._0x490c99['delegateTo']!==void 0x0&&{'recipient':_0x490c99[_0x17f201(0x359)]}});l(_0x490c99,_0x85eebc,_0xc4e207=>{const _0x20f4b2=_0x17f201;_0xc4e207['assignedUser']?process[_0x20f4b2(0x218)][_0x20f4b2(0x1dc)](_0x20f4b2(0x1af)+_0xc4e207['delegationId']+'\x20to\x20'+_0xc4e207[_0x20f4b2(0x301)][_0x20f4b2(0x328)]+'\x20<'+_0xc4e207[_0x20f4b2(0x301)][_0x20f4b2(0x266)]+_0x20f4b2(0x254)):process[_0x20f4b2(0x218)][_0x20f4b2(0x1dc)]('Created\x20delegation\x20'+_0xc4e207[_0x20f4b2(0x1e1)]+_0x20f4b2(0x308)+_0xc4e207[_0x20f4b2(0x1b0)]+'\x0a');});return;}case _0x17f201(0x228):{let _0x47bce8=await _0x4e48e7(_0xc736fc,_0x5e4f58);l(_0x490c99,_0x47bce8,_0x4d3bee=>{const _0x3b9efc=_0x17f201;Q(_0x4d3bee),process[_0x3b9efc(0x218)][_0x3b9efc(0x1dc)](_0x3b9efc(0x339)+_0x4d3bee[_0x3b9efc(0x246)]+'\x0a'),process[_0x3b9efc(0x2af)][_0x3b9efc(0x1dc)](_0x3b9efc(0x1ba)+_0x4d3bee[_0x3b9efc(0x246)]+_0x3b9efc(0x22f)+_0x4d3bee['delegationId']+_0x3b9efc(0x2b0));});return;}case _0x17f201(0x330):{let {alreadyCompleted:_0x298a02}=await _0x370d10(_0xc736fc,_0x5e4f58,{'content':_0xf689a7});l(_0x490c99,{'delegationId':_0x5e4f58,'alreadyCompleted':_0x298a02},_0x40a878=>{const _0x41e1ee=_0x17f201;process[_0x41e1ee(0x218)][_0x41e1ee(0x1dc)]((_0x40a878[_0x41e1ee(0x2fc)]?_0x41e1ee(0x355):_0x41e1ee(0x2d7))+'\x20delegation\x20'+_0x40a878[_0x41e1ee(0x1e1)]+'.\x0a');});return;}case _0x17f201(0x27a):{let _0x186054=await _0x2ae8fd(_0xc736fc,_0x5e4f58);l(_0x490c99,{'delegationId':_0x5e4f58,..._0x186054},_0x5eb528=>{const _0x7f9a96=_0x17f201;process[_0x7f9a96(0x218)][_0x7f9a96(0x1dc)]((_0x5eb528[_0x7f9a96(0x2d4)]?_0x7f9a96(0x2aa):'Accepted')+_0x7f9a96(0x27d)+_0x5eb528[_0x7f9a96(0x1e1)]+'.\x0a');});return;}default:{let _0x2d8d86={'dismiss':_0x5e1751,'cancel':_0x323b85,'delete':_0x8eeb2f}[_0x4593d9];await _0x2d8d86(_0xc736fc,_0x5e4f58);let _0x551893={'dismiss':'dismissed','cancel':_0x17f201(0x2b8),'delete':'deleted'}[_0x4593d9];l(_0x490c99,{'delegationId':_0x5e4f58,[_0x551893]:!0x0},()=>{const _0x5d20e1=_0x17f201;process[_0x5d20e1(0x218)][_0x5d20e1(0x1dc)](''+_0x551893[0x0][_0x5d20e1(0x281)]()+_0x551893[_0x5d20e1(0x33d)](0x1)+_0x5d20e1(0x27d)+_0x5e4f58+'.\x0a');});}}}function Qt(_0x468d03){const _0x3eceff=_0x2002b5;if(_0x468d03[_0x3eceff(0x1bb)]===0x0){process['stderr']['write']('No\x20delegations.\x0a');return;}process[_0x3eceff(0x218)][_0x3eceff(0x1dc)]('ID'[_0x3eceff(0x29b)](0x24)+'\x20\x20'+_0x3eceff(0x21b)[_0x3eceff(0x29b)](0x9)+'\x20\x20'+_0x3eceff(0x283)[_0x3eceff(0x29b)](0x18)+_0x3eceff(0x30f));for(let _0x170150 of _0x468d03)process[_0x3eceff(0x218)][_0x3eceff(0x1dc)](_0x170150['id'][_0x3eceff(0x29b)](0x24)+'\x20\x20'+_0x170150[_0x3eceff(0x29e)][_0x3eceff(0x29b)](0x9)+'\x20\x20'+(_0x170150[_0x3eceff(0x2e8)]??'-')[_0x3eceff(0x29b)](0x18)+'\x20\x20'+(_0x170150[_0x3eceff(0x28b)]??'')+'\x0a');}function Q(_0x30992d){const _0x35a703=_0x2002b5;process[_0x35a703(0x218)][_0x35a703(0x1dc)](_0x35a703(0x34a)+(_0x30992d[_0x35a703(0x33c)]??'-')+'\x0a'),_0x30992d[_0x35a703(0x1fe)]&&process[_0x35a703(0x218)][_0x35a703(0x1dc)](_0x35a703(0x339)+_0x30992d[_0x35a703(0x1fe)]+'\x0a'),process[_0x35a703(0x218)][_0x35a703(0x1dc)](_0x35a703(0x2b9)+(_0x30992d[_0x35a703(0x28b)]??'-')+'\x0a'),_0x30992d[_0x35a703(0x320)]&&process[_0x35a703(0x218)][_0x35a703(0x1dc)]('\x0a'+_0x30992d[_0x35a703(0x320)]+'\x0a\x0a');}async function Zt(_0xdee4f3){const _0x39c2c8=_0x2002b5;_0xdee4f3[_0x39c2c8(0x2c6)][_0x39c2c8(0x1d3)]()||(console[_0x39c2c8(0x212)]('Usage:\x20delegate-cli\x20org-users\x20<name\x20or\x20email\x20prefix>'),process['exit'](0x2));let {client:_0x1b5b70}=await f(_0xdee4f3),_0x5df9c0;try{_0x5df9c0=await _0x535011(_0x1b5b70,_0xdee4f3[_0x39c2c8(0x2c6)]);}catch(_0x48f2fb){if(!_0x281853(_0x48f2fb))throw _0x48f2fb;console[_0x39c2c8(0x212)](_0x48f2fb[_0x39c2c8(0x259)]),process[_0x39c2c8(0x260)](0x1);}l(_0xdee4f3,_0x5df9c0,_0x2a4e90=>{const _0x88700d=_0x39c2c8;_0x2a4e90[_0x88700d(0x1bb)]===0x0&&process['stderr'][_0x88700d(0x1dc)]('No\x20one\x20matches\x20\x22'+_0xdee4f3[_0x88700d(0x2c6)]['trim']()+'\x22.\x0a');for(let _0x11abc3 of _0x2a4e90)process['stdout']['write'](_0x11abc3[_0x88700d(0x266)][_0x88700d(0x29b)](0x20)+'\x20\x20'+_0x11abc3[_0x88700d(0x328)]+'\x0a');});}async function en(_0x41a0c5){const _0x5e60ad=_0x2002b5;_0x41a0c5[_0x5e60ad(0x1c0)]==='localhost'&&(console[_0x5e60ad(0x212)](_0x5e60ad(0x31f)),process[_0x5e60ad(0x260)](0x2));let _0x227e71=$(_0x1721dd()),_0x4323c8=_0x41a0c5['skipEnvCheck'];if(_0x41a0c5[_0x5e60ad(0x1c0)]){let _0xf8976b=_0x41a0c5['env'];await _0x1236ef({'env':_0xf8976b,'tenant':_0x41a0c5[_0x5e60ad(0x1cf)]??C(_0x227e71,_0x1b1584[_0xf8976b]),'skipEnvCheck':_0x4323c8});return;}let _0x6b89c0=_0x41a0c5['url']??ce();if(_0x6b89c0){await _0x1236ef({'baseUrl':_0x6b89c0,'tenant':_0x41a0c5[_0x5e60ad(0x1cf)]??C(_0x227e71,_0x6b89c0),'skipEnvCheck':_0x4323c8});return;}if(_0x227e71?.[_0x5e60ad(0x1a8)]){await _0x1236ef({'baseUrl':_0x227e71[_0x5e60ad(0x1a8)],'tenant':_0x41a0c5[_0x5e60ad(0x1cf)]??_0x227e71[_0x5e60ad(0x303)],'skipEnvCheck':_0x4323c8});return;}console['error'](_0x5e60ad(0x277)),process[_0x5e60ad(0x260)](0x2);}function C(_0x5ebb67,_0x53fc66){const _0x29cee1=_0x2002b5;return _0x5ebb67?.[_0x29cee1(0x1a8)]&&tn(_0x5ebb67[_0x29cee1(0x1a8)],_0x53fc66)?_0x5ebb67[_0x29cee1(0x303)]:void 0x0;}function tn(_0x24d77b,_0x86215e){const _0x4b37a5=_0x2002b5;try{return new URL(_0x24d77b)[_0x4b37a5(0x2c9)]===new URL(_0x86215e)[_0x4b37a5(0x2c9)];}catch{return!0x1;}}async function nn(_0x1fa9fc){const _0x51d5c5=_0x2002b5;O()&&(console['error'](_0x51d5c5(0x222)),process['exit'](0x2));let _0x3ac7bc=await _0x5a6e85();if(_0x3ac7bc||(console[_0x51d5c5(0x212)](on()),process[_0x51d5c5(0x260)](0x2)),_0x1fa9fc[_0x51d5c5(0x1d3)]()){let _0x2aa9fe=await _0x148ca4(_0x3ac7bc,_0x1fa9fc);_0x2c82c0(_0x2aa9fe)||(console[_0x51d5c5(0x212)](_0x51d5c5(0x262)+_0x1721dd()+';\x20the\x20saved\x20login\x20still\x20uses\x20'+_0x3ac7bc['tenantName']+'.'),process[_0x51d5c5(0x260)](0x1)),console[_0x51d5c5(0x30c)](_0x51d5c5(0x314)+_0x2aa9fe[_0x51d5c5(0x303)]+'\x20('+_0x2aa9fe['tenantId']+')\x20—\x20saved\x20to\x20'+_0x1721dd());return;}sn(await _0x5e8e8a(_0x3ac7bc),_0x3ac7bc);}function on(){const _0x498f58=_0x2002b5;if(_0x1bbe55[_0x498f58(0x1cb)](_0x1721dd()))return'The\x20saved\x20CLI\x20login\x20could\x20not\x20be\x20refreshed.\x20Run\x20`delegate-cli\x20login`\x20again.';let _0x182553=L();return $(_0x182553)?_0x498f58(0x1e0)+_0x182553+',\x20whose\x20tenant\x20is\x20chosen\x20in\x20the\x20app.\x20Run\x20`delegate-cli\x20login\x20--env\x20<env>`\x20for\x20a\x20CLI\x20login\x20of\x20your\x20own.':_0x498f58(0x2d3);}function sn(_0x58305a,_0x293418){const _0x2f0488=_0x2002b5;let _0x13f47a=_0x58305a[_0x2f0488(0x2e2)](_0x474953=>_0x474953['id']===_0x293418[_0x2f0488(0x312)]?'*\x20'+_0x474953[_0x2f0488(0x2a6)]+'\x20(current)':'\x20\x20'+_0x474953['name']);process['stdout'][_0x2f0488(0x1dc)](_0x2f0488(0x29a)+(_0x293418[_0x2f0488(0x23e)]??_0x293418[_0x2f0488(0x2b6)])+':\x0a'+_0x13f47a['join']('\x0a')+'\x0a'),_0x58305a['length']>0x1&&process[_0x2f0488(0x218)][_0x2f0488(0x1dc)](_0x2f0488(0x25a));}function rn(_0x1d8abe){const _0x95345=_0x2002b5;return _0x1d8abe?.[_0x95345(0x32b)]?.[_0x95345(0x29e)]===0x191||/401/[_0x95345(0x1ac)](String(_0x1d8abe?.[_0x95345(0x259)]??''));}var d={'lastType':null,'quiet':!0x1},an=_0x25af03=>{const _0x213a3c=_0x2002b5;switch(_0x25af03[_0x213a3c(0x1b2)]){case _0x213a3c(0x21f):_0x25af03['sessionId']&&_0x25af03['sessionId']!==d['sessionId']&&(process['stderr']['write'](_0x213a3c(0x2cc)+_0x25af03['sessionId']+_0x213a3c(0x1c8)+_0x25af03[_0x213a3c(0x246)]+')\x0a'),d['sessionId']=_0x25af03[_0x213a3c(0x246)]);break;case _0x213a3c(0x219):_0x25af03['turnId']&&_0x25af03['turnId']!==d[_0x213a3c(0x220)]&&(d[_0x213a3c(0x29d)]!==null&&process[_0x213a3c(0x2af)][_0x213a3c(0x1dc)]('\x0a'),process['stderr'][_0x213a3c(0x1dc)](_0x213a3c(0x1f6)+_0x25af03[_0x213a3c(0x220)]+_0x213a3c(0x221)+_0x25af03[_0x213a3c(0x246)]+_0x213a3c(0x217)+_0x25af03[_0x213a3c(0x220)]+')\x0a'),d['turnId']=_0x25af03['turnId'],d[_0x213a3c(0x29d)]='turn_start');break;case _0x213a3c(0x1a9):_0x25af03[_0x213a3c(0x1b6)]&&!d[_0x213a3c(0x32e)]&&(d[_0x213a3c(0x29d)]!==_0x213a3c(0x1a9)&&process[_0x213a3c(0x2af)][_0x213a3c(0x1dc)](_0x213a3c(0x25d)),process[_0x213a3c(0x2af)][_0x213a3c(0x1dc)](_0x25af03[_0x213a3c(0x1b6)]),d['lastType']=_0x213a3c(0x1a9));break;case _0x213a3c(0x1e4):d[_0x213a3c(0x29d)]!==null&&process[_0x213a3c(0x2af)]['write']('\x0a'),process[_0x213a3c(0x2af)][_0x213a3c(0x1dc)](_0x213a3c(0x2b2)+(_0x25af03[_0x213a3c(0x1aa)]??_0x213a3c(0x1a5))+'\x0a'),d['lastType']=_0x213a3c(0x1e4);break;case _0x213a3c(0x259):_0x25af03[_0x213a3c(0x1b6)]&&(d[_0x213a3c(0x29d)]!==_0x213a3c(0x259)&&d[_0x213a3c(0x29d)]!==null&&process[_0x213a3c(0x218)][_0x213a3c(0x1dc)]('\x0a'),process['stdout'][_0x213a3c(0x1dc)](_0x25af03['content']),d[_0x213a3c(0x29d)]='message');break;case _0x213a3c(0x212):d[_0x213a3c(0x29d)]!==null&&process[_0x213a3c(0x2af)]['write']('\x0a'),process['stderr']['write']('✗\x20'+(_0x25af03[_0x213a3c(0x212)]??_0x213a3c(0x212))+'\x0a'),d[_0x213a3c(0x29d)]=_0x213a3c(0x212);break;case _0x213a3c(0x267):(d['lastType']===_0x213a3c(0x259)||d['lastType']===_0x213a3c(0x1a9))&&process[_0x213a3c(0x218)][_0x213a3c(0x1dc)]('\x0a'),process[_0x213a3c(0x2af)][_0x213a3c(0x1dc)]('✓\x20Done\x0a'),d[_0x213a3c(0x29d)]=_0x213a3c(0x267);break;}};function Z(_0x50d042,_0x3883a4,_0x2d2e6f){const _0x739660=_0x2002b5;let _0x1d0b18=_0x50d042[_0x739660(0x316)]||process.env.MODEL;return{'backendUrl':_0x2d2e6f,'auth':_0x3883a4,'enableComputerUse':!_0x50d042[_0x739660(0x22a)]&&!_0x50d042[_0x739660(0x2e0)],'autoSpawnInterop':!_0x50d042[_0x739660(0x22a)],'enableConnections':!_0x50d042[_0x739660(0x1d6)],'enableSecurity':!_0x50d042[_0x739660(0x2a0)],'keepInteropAlive':_0x50d042['keepAlive'],..._0x50d042[_0x739660(0x331)]?{'enableMemory':!0x1}:{},..._0x50d042['taskAutomation']?{'enableTaskAutomation':!0x0}:{},..._0x50d042['preloadSkills'][_0x739660(0x1bb)]>0x0?{'preloadSkills':_0x50d042['preloadSkills']}:{},..._0x1d0b18?{'model':_0x1d0b18}:{},..._0x50d042[_0x739660(0x2ef)]?{'projectId':_0x50d042[_0x739660(0x2ef)]}:{},..._0x50d042[_0x739660(0x202)]?{'workingDirectory':_0x50d042[_0x739660(0x202)]}:{},..._0x50d042[_0x739660(0x305)]?{'bundledSkillsPath':_0x50d042['bundledSkillsPath']}:{},..._0x50d042[_0x739660(0x2ed)]?{'effort':_0x50d042[_0x739660(0x2ed)]}:{},..._0x50d042[_0x739660(0x246)]?{'sessionId':_0x50d042[_0x739660(0x246)]}:{},..._0x50d042[_0x739660(0x2b3)]?{'verbose':!0x0}:{}};}function _0x49a5(){const _0x442f98=['active_days','--skip-env-check\x20applies\x20to\x20`delegate-cli\x20login`\x20only.','high','Could\x20not\x20check\x20BYO\x20model\x20warnings:\x20','stdin','logout','Spending:\x20\x20\x20\x20\x20$','transcribe:\x20cannot\x20read\x20','cartographer','\x20\x20\x20\x20Not\x20available\x20on\x20this\x20plan','\x20PU\x20beyond\x20quota','orgLogicalName','--session','\x20PU','SIGINT','--tenant','Usage:\x20delegate-cli\x20','Unknown\x20flag:\x20','toISOString','sessionId','updatedAt','resume','xhigh','login','keys','Token:\x20\x20\x20\x20\x20\x20\x20\x20expires\x20','7yDKTQS','structuredError','--summary','push','556kmVxIU','a\x20JSON\x20schema\x20file','data','>.\x0a','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.','then','--no-memory','delegations\x20delete\x20<delegation-id>','message','Switch\x20with:\x20delegate-cli\x20tenant\x20<name>\x0a','delegations','.\x20Use\x20`delegate-cli\x20usage`,\x20`usage\x20activity`\x20or\x20`usage\x20daily`.','\x0a🤔\x20','Bearer\x20','text','exit','Removed\x20','Tenant\x20not\x20switched:\x20could\x20not\x20write\x20','total_quota_pu','argv','\x20(stdin\x20was\x20empty)','email','done','--include-subagents','skip','\x20cap','choice\x20','padStart','64GRDdcb',',\x20got\x20','\x20<id>','Session:\x20\x20\x20\x20\x20\x20','Claimed\x20from\x20delegation\x20','operands','dismiss','--days\x20applies\x20to\x20`delegate-cli\x20usage\x20activity|daily`;\x20the\x20summary\x20covers\x20the\x20current\x20month.','\x0aAccept\x20one\x20with:\x20delegate-cli\x20delegations\x20accept\x20<id>\x0a','outputFormat','First\x20login\x20requires\x20--env\x20or\x20--url.\x20Usage:\x20delegate-cli\x20login\x20--env\x20<alpha|staging|production>,\x20or\x20delegate-cli\x20login\x20--url\x20https://automationsuite.contoso.com','Usage:\x20delegate-cli\x20sessions\x20[list]\x20[--page\x20N]\x20[--limit\x20N]\x20[--include-subagents]','total_token_units','accept','all','--working-dir','\x20delegation\x20','cleanup','probability\x20','ID\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','toUpperCase','taskAutomation','ASSIGNEE','\x20\x20(sub-agent\x20of\x20','check','attachments','fork','off','--to\x20and\x20--summary\x20apply\x20to\x20`delegate-cli\x20delegations\x20create`\x20only.','5075064qBXblj','task','.\x20Use:\x20','Continue\x20it\x20with:\x20delegate-cli\x20--session\x20','Deleted\x20session\x20','delegate-cli','org-users','\x20\x20TITLE\x0a','confidence','--to','delegations\x20cancel\x20<delegation-id>','round','1\x20or\x20more','Owner\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20(no\x20cap\x20enforced)','results','Tenants\x20of\x20','padEnd','\x20of\x20a\x20$','lastType','status','--version','noSecurity','version','--turn\x20applies\x20to\x20`delegate-cli\x20sessions\x20cancel`\x20only.','rejection','stream-json','--env','name','):\x0a\x0a','--output-format','exitCode','Already\x20accepted','Organization:\x20','runnerUrl','cwd','--runner-url','stderr','\x20\x22<answer>\x22\x0a','\x0a⚠️\x20\x20Auth\x20expired.\x20Opening\x20browser\x20to\x20re-login…\x0a','🔧\x20','verbose','toString','isDesktopFallback','organizationId','production','cancelled','Task\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','file','\x20(estimated\x20$','session_consumed_pu','accessToken','No\x20usage\x20in\x20the\x20last\x20','package.json','readFileSync','object','auth.json','--worker-id','score','help','prompt','limit_enabled','\x20into\x20','origin','asyncIterator',']\x20Backend\x20URL:\x20','Session:\x20','Delegation\x20\x20\x20\x20','usage','description','period_days','replace','delete','No\x20CLI\x20login\x20found.\x20Run\x20`delegate-cli\x20login\x20--env\x20<alpha|staging|production>`\x20first.','alreadyAccepted','join','\x20days.\x0a','Answered','\x0adelegate-cli\x20—\x20Delegate\x20agent\x20CLI\x0a\x0aUsage:\x0a\x20\x20delegate-cli\x20[flags]\x20[\x22<prompt>\x22]\x20\x20\x20\x20Start\x20a\x20conversation\x20in\x20a\x20terminal\x0a\x20\x20delegate-cli\x20--print\x20\x22<prompt>\x22\x20\x20\x20\x20\x20\x20Send\x20one\x20prompt,\x20print\x20the\x20response,\x20and\x20exit\x0a\x20\x20delegate-cli\x20[flags]\x20-\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Read\x20one\x20prompt\x20from\x20stdin\x20through\x20EOF,\x20then\x20exit\x0a\x20\x20delegate-cli\x20-p\x20\x22<prompt>\x22\x20--output-format\x20json|stream-json\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20One\x20turn\x20with\x20JSON-only\x20stdout;\x20exit\x201\x20on\x20error\x0a\x20\x20delegate-cli\x20--json-schema\x20FILE\x20\x22<prompt>\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20One\x20turn,\x20then\x20its\x20result\x20extracted\x20as\x20JSON\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20matching\x20the\x20schema\x20in\x20FILE\x20(printed\x20after\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20answer;\x20\x22structured\x22\x20in\x20the\x20JSON\x20result);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20exit\x201\x20when\x20the\x20extraction\x20fails\x0a\x20\x20delegate-cli\x20--attach\x20PATH\x20[--attach\x20PATH\x20...]\x20\x22<prompt>\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Send\x20files\x20or\x20folders\x20with\x20the\x20first\x20message\x0a\x20\x20delegate-cli\x20login\x20[--env\x20NAME\x20|\x20--url\x20BASE]\x20[--tenant\x20NAME]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20OAuth\x20browser\x20login\x20→\x20~/.aria/sdk-auth.json.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--env\x20or\x20--url\x20required\x20on\x20FIRST\x20login;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20afterwards\x20defaults\x20to\x20the\x20saved\x20login\x27s\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20deployment.\x20--tenant\x20picks\x20a\x20tenant\x20by\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20name;\x20without\x20it\x20a\x20re-login\x20keeps\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20saved\x20tenant\x0a\x20\x20delegate-cli\x20tenant\x20[NAME]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20the\x20organization\x27s\x20tenants,\x20or\x20switch\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20saved\x20login\x20to\x20NAME\x20(no\x20browser)\x0a\x20\x20delegate-cli\x20logout\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Remove\x20the\x20saved\x20CLI\x20login\x0a\x20\x20delegate-cli\x20whoami\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20the\x20current\x20login\x20(org,\x20tenant,\x20token\x20expiry)\x0a\x20\x20delegate-cli\x20models\x20[--env\x20NAME]\x20\x20\x20\x20\x20List\x20available\x20LLM\x20models\x20for\x20the\x20current\x20tenant,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20with\x20any\x20BYO\x20configuration\x20warning\x20per\x20model\x0a\x20\x20delegate-cli\x20sessions\x20[list]\x20[--page\x20N]\x20[--limit\x20N]\x20[--include-subagents]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20your\x20backend\x20chat\x20sessions,\x20most\x20recently\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20active\x20first\x20(resume\x20one\x20with\x20--session\x20ID)\x0a\x20\x20delegate-cli\x20sessions\x20show|delete\x20ID\x20Show\x20one\x20session\x27s\x20title\x20and\x20owner,\x20or\x20delete\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20it\x20with\x20its\x20messages\x20and\x20sub-agents\x20(no\x20prompt)\x0a\x20\x20delegate-cli\x20sessions\x20rename\x20ID\x20TITLE\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Rename\x20a\x20session\x20(1-500\x20characters)\x0a\x20\x20delegate-cli\x20sessions\x20fork\x20ID\x20[MESSAGE]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Copy\x20session\x20ID\x20into\x20a\x20new\x20session,\x20up\x20to\x20and\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20including\x20message\x20MESSAGE\x20(default:\x20all\x20of\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20it);\x20continue\x20it\x20with\x20--session\x20NEW_ID\x0a\x20\x20delegate-cli\x20sessions\x20cancel\x20ID\x20--turn\x20TURN\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Cancel\x20turn\x20TURN\x20running\x20on\x20session\x20ID\x20in\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20another\x20process;\x20exits\x201\x20when\x20no\x20such\x20turn\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20is\x20in\x20progress\x0a\x20\x20delegate-cli\x20check\x20[--env\x20NAME]\x20[--headless]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Verify\x20auth,\x20backend\x20readiness,\x20backend\x20and\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20interop\x20without\x20sending\x20a\x20prompt;\x20exits\x201\x20when\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20any\x20check\x20fails\x0a\x20\x20delegate-cli\x20usage\x20[--session\x20ID]\x20\x20\x20\x20Quota\x20and\x20spend:\x20licensing\x20quota,\x20monthly\x20spend\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20and\x20cap,\x20Cartographer\x20allowance\x0a\x20\x20delegate-cli\x20usage\x20activity|daily\x20[--days\x20N]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Activity\x20totals,\x20or\x20per-day\x20usage,\x20over\x20the\x20last\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20N\x20days\x20(1-365,\x20default\x2030)\x0a\x20\x20delegate-cli\x20evaluate|rerank|verify\x20FILE|-\x20[--model\x20ID]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Stateless\x20typed\x20judgments:\x20send\x20the\x20JSON\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20request\x20in\x20FILE\x20(or\x20stdin\x20with\x20-)\x20to\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20/v1/completions/<command>\x20and\x20print\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20answers;\x20--model\x20overrides\x20its\x20\x22model\x22.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Exits\x201\x20when\x20the\x20backend\x20rejects\x20it\x0a\x20\x20delegate-cli\x20complete\x20--json-schema\x20FILE\x20[--model\x20ID]\x20[--session\x20ID]\x20\x22<prompt>\x22|-\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20One\x20structured\x20completion,\x20no\x20agent\x20turn:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20print\x20the\x20JSON\x20object\x20matching\x20the\x20schema\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20in\x20FILE\x20(--output-format\x20json\x20prints\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{structured,\x20usage});\x20--session\x20adds\x20that\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20session\x27s\x20history\x20as\x20context.\x20Exits\x201\x20when\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20output\x20fails\x20the\x20schema\x20(422)\x20or\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20backend\x20rejects\x20the\x20request\x0a\x20\x20delegate-cli\x20transcribe\x20FILE|-\x20\x20\x20\x20\x20\x20\x20Speech-to-text\x20(Whisper):\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\x2025\x20MiB.\x20Exits\x202\x20when\x20the\x20audio\x20is\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20refused\x20locally,\x201\x20when\x20the\x20backend\x20rejects\x20it\x0a\x20\x20delegate-cli\x20org-users\x20QUERY\x20\x20\x20\x20\x20\x20\x20\x20\x20Search\x20your\x20organization\x27s\x20users\x20by\x20name\x20or\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20email\x20prefix\x20(2-100\x20characters)\x0a\x20\x20delegate-cli\x20delegations\x20create\x20--session\x20ID\x20[--to\x20WHO]\x20[--summary\x20TEXT]\x20\x22<task>\x22|-\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Hand\x20a\x20task\x20from\x20session\x20ID\x20to\x20a\x20colleague\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(WHO:\x20an\x20email,\x20or\x20a\x20name\x20matching\x20one\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20person);\x20without\x20--to,\x20print\x20a\x20link\x20anyone\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20in\x20the\x20organization\x20can\x20claim\x0a\x20\x20delegate-cli\x20delegations\x20pending\x20SESSION\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Answers\x20to\x20delegations\x20from\x20SESSION\x20that\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20await\x20acceptance\x20(poll\x20this)\x0a\x20\x20delegate-cli\x20delegations\x20accept|dismiss|cancel|delete\x20ID\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Take\x20an\x20answer\x20into\x20its\x20session,\x20drop\x20it,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20withdraw\x20a\x20live\x20delegation,\x20or\x20delete\x20it\x0a\x20\x20delegate-cli\x20delegations\x20list\x20PROJECT\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Every\x20delegation\x20targeting\x20a\x20backend\x20project\x0a\x20\x20delegate-cli\x20delegations\x20show|claim\x20ID|LINK\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Read\x20a\x20delegation\x20assigned\x20to\x20you\x20(or\x20a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20delegate://delegation/…\x20link),\x20or\x20claim\x20it:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20prints\x20the\x20session\x20to\x20work\x20it\x20in\x0a\x20\x20delegate-cli\x20delegations\x20complete\x20ID\x20\x22<answer>\x22|-\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Send\x20the\x20answer\x20to\x20a\x20delegation\x20you\x20claimed\x0a\x20\x20delegate-cli\x20host\x20[flags]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Run\x20this\x20PC\x20as\x20a\x20remote\x20worker\x20until\x20Ctrl+C\x0a\x20\x20delegate-cli\x20host\x20install\x20[flags]\x20\x20\x20\x20Auto-start\x20the\x20host\x20at\x20login\x20(macOS\x20LaunchAgent\x20/\x20Windows\x20Scheduled\x20Task)\x0a\x20\x20delegate-cli\x20host\x20uninstall\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Remove\x20auto-start\x0a\x20\x20delegate-cli\x20host\x20status\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20auto-start\x20state\x0a\x20\x20delegate-cli\x20--cleanup\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Stop\x20running\x20interop\x0a\x0aFlags:\x0a\x20\x20-p,\x20--print\x20\x20\x20\x20\x20\x20\x20Run\x20one\x20turn\x20and\x20exit,\x20including\x20any\x20tool\x20execution.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Automatic\x20when\x20stdin\x20or\x20stdout\x20is\x20not\x20a\x20terminal,\x20or\x20with\x20-\x0a\x20\x20--env\x20NAME\x20\x20\x20\x20\x20\x20\x20\x20alpha\x20|\x20staging\x20|\x20production\x20|\x20localhost\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Composes\x20backend\x20URL\x20from\x20saved\x20auth\x20(org/tenant\x20slugs).\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Omitted\x20→\x20the\x20deployment\x20you\x20logged\x20into\x20(delegate-cli\x20login).\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20localhost\x20→\x20http://localhost:5002.\x20No\x20saved\x20login\x20and\x20no\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--env/--backend/BACKEND_URL\x20is\x20an\x20error\x20—\x20never\x20a\x20guess.\x0a\x20\x20--url\x20BASE\x20\x20\x20\x20\x20\x20\x20\x20(login)\x20Base\x20URL\x20of\x20a\x20deployment\x20that\x20is\x20not\x20a\x20named\x20cloud\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20—\x20Automation\x20Suite,\x20Dedicated,\x20Public\x20Sector.\x20Accepts\x20a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20tenant\x20path\x20or\x20a\x20trailing\x20/identity_\x20and\x20reduces\x20it\x20to\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20origin.\x20Mutually\x20exclusive\x20with\x20--env;\x20also\x20settable\x20via\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20UIPATH_BASE_URL.\x20Alias:\x20--authority.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Automation\x20Suite\x20needs\x2026.10+\x20with\x20the\x20Delegate\x20service;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20the\x20deployment\x20rejects\x20the\x20built-in\x20client,\x20register\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20your\x20own\x20—\x20see\x20UIPATH_CLIENT_ID\x20in\x20the\x20README\x0a\x20\x20--skip-env-check\x20\x20(login)\x20Do\x20not\x20check\x20the\x20deployment\x20before\x20signing\x20in.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Escape\x20hatch\x20for\x20a\x20deployment\x20that\x20hides\x20its\x20OIDC\x20discovery\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20document\x20or\x20serves\x20Identity\x20from\x20another\x20origin;\x20it\x20also\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20gives\x20up\x20the\x20diagnosis\x20when\x20something\x20is\x20really\x20wrong\x0a\x20\x20--backend\x20URL\x20\x20\x20\x20\x20Full\x20backend\x20URL\x20—\x20escape\x20hatch\x20overrides\x20--env\x0a\x20\x20--tenant\x20NAME\x20\x20\x20\x20\x20(login)\x20Tenant\x20to\x20sign\x20into,\x20by\x20name\x20(case-insensitive).\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default:\x20the\x20saved\x20login\x27s\x20tenant\x20on\x20that\x20cloud,\x20else\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20org\x27s\x20first\x20tenant.\x20Later:\x20delegate-cli\x20tenant\x20<name>\x0a\x20\x20--model\x20NAME\x20\x20\x20\x20\x20\x20LLM\x20model\x20id\x20(e.g.\x20claude_sonnet_5_5,\x20kimi_k3).\x20Checked\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20against\x20the\x20tenant\x27s\x20catalog\x20(delegate-cli\x20models)\x20before\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20run\x20starts;\x20an\x20unknown\x20id\x20fails\x20and\x20lists\x20the\x20valid\x20ones.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default:\x20gpt_5_6_luna.\x20Also\x20settable\x20via\x20MODEL\x20env\x20var.\x0a\x20\x20--keep-alive\x20\x20\x20\x20\x20\x20Reuse/leave\x20interop\x20running\x20across\x20invocations\x0a\x20\x20--headless\x20\x20\x20\x20\x20\x20\x20\x20Skip\x20interop\x20(text-only\x20prompts)\x0a\x20\x20--no-computer-use\x20Keep\x20interop\x20—\x20file,\x20Office,\x20PDF\x20and\x20shell\x20tools\x20keep\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20working\x20—\x20but\x20drop\x20the\x20screen:\x20no\x20screenshots,\x20no\x20window\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20list,\x20no\x20UI-automation\x20tools.\x20Cuts\x20image\x20tokens\x20and\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20per-turn\x20screen\x20capture,\x20and\x20stops\x20desktop\x20window\x20titles\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20leaving\x20the\x20machine.\x20Use\x20for\x20document\x20and\x20file\x20work.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--headless\x20implies\x20this\x20and\x20turns\x20interop\x20off\x20as\x20well\x0a\x20\x20--no-connections\x20\x20Disable\x20orchestrator\x20ConnectionService\x20(silences\x20404\x20warnings)\x0a\x20\x20--no-security\x20\x20\x20\x20\x20Disable\x20tool\x20security\x20wrapper\x20(use\x20only\x20for\x20debugging)\x0a\x20\x20--no-memory\x20\x20\x20\x20\x20\x20\x20Do\x20not\x20send\x20the\x20Delegate\x20app\x27s\x20local\x20long-term\x20memories\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20with\x20each\x20turn,\x20and\x20do\x20not\x20ask\x20the\x20model\x20to\x20save\x20new\x20ones\x0a\x20\x20--task-automation\x20Record\x20every\x20UI\x20action\x20of\x20the\x20run,\x20with\x20the\x20selector\x20of\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20element\x20it\x20acted\x20on,\x20to\x20<working-dir>/captures/<session>/\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(~/.aria-sdk\x20without\x20--working-dir),\x20so\x20you\x20can\x20then\x20ask\x20for\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20task\x20as\x20a\x20UiPath\x20coded\x20workflow\x20(uipath-taskautomation\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20skill).\x20The\x20log\x20holds\x20on-screen\x20text\x20and\x20your\x20requests;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20typed\x20values\x20are\x20masked.\x20Needs\x20computer\x20use.\x20Ignored\x20with\x20a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20warning\x20where\x20the\x20deployment\x20does\x20not\x20offer\x20it\x20yet\x0a\x20\x20--attach\x20PATH\x20\x20\x20\x20\x20File\x20or\x20folder\x20sent\x20with\x20the\x20first\x20message\x20(repeatable),\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20as\x20the\x20Delegate\x20app\x20sends\x20attached\x20files:\x20images\x20inline,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20PDFs\x20and\x20other\x20documents\x20as\x20a\x20path\x20the\x20agent\x20reads,\x20text\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20inline\x20up\x20to\x2016,000\x20characters.\x2030\x20MiB\x20per\x20message\x20in\x20all;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20larger\x20files\x20go\x20as\x20a\x20path.\x20In\x20a\x20conversation,\x20later\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20messages\x20carry\x20none\x20of\x20their\x20own,\x20but\x20the\x20first\x20message\x27s\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20stay\x20in\x20context\x0a\x20\x20--preload-skill\x20NAME\x20\x20Preload\x20a\x20skill\x20into\x20the\x20session\x20(repeatable).\x20The\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20skill\x27s\x20content\x20is\x20attached\x20before\x20the\x20first\x20model\x20turn\x20—\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20same\x20mechanism\x20as\x20project\x20preloaded\x20skills\x20in\x20the\x20app\x0a\x20\x20--cartographer\x20\x20\x20\x20Cartographer\x20engagement\x20preset.\x20Equivalent\x20to\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--no-computer-use\x20--preload-skill\x20business-analysis\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--preload-skill\x20project-task-list\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--preload-skill\x20knowledge-base.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Add\x20--project/--working-dir\x20for\x20where\x20the\x20files\x20live,\x20and\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20extra\x20--preload-skill\x20flags\x20for\x20more\x20skills\x20—\x20a\x20skill\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20preset\x20already\x20covers\x20is\x20not\x20preloaded\x20twice.\x20An\x20explicit\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--headless\x20still\x20wins\x20and\x20turns\x20interop\x20off\x0a\x20\x20--project\x20ID\x20\x20\x20\x20\x20\x20Route\x20the\x20session\x27s\x20local\x20wiki\x20and\x20plans\x20to\x20a\x20project\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(<working-dir>/projects/<ID>/wiki).\x20Client-side\x20key\x20only\x0a\x20\x20--working-dir\x20PATH\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Shell\x20cwd\x20for\x20the\x20agent\x20and\x20root\x20for\x20SDK-local\x20state.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Relative\x20paths\x20resolve\x20against\x20the\x20current\x20directory;\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20directory\x20is\x20created\x20if\x20missing\x0a\x20\x20--skills-path\x20PATH\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Folder\x20of\x20custom\x20skills,\x20loaded\x20on\x20top\x20of\x20the\x20skills\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20package\x20ships;\x20wins\x20on\x20a\x20name\x20clash\x20(also:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20DELEGATE_BUNDLED_SKILLS_PATH)\x0a\x20\x20--effort\x20TIER\x20\x20\x20\x20\x20Reasoning\x20effort:\x20low\x20|\x20medium\x20|\x20high\x20|\x20xhigh\x20|\x20max.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default:\x20the\x20model\x27s\x20recommended\x20tier\x0a\x20\x20--session\x20ID\x20\x20\x20\x20\x20\x20Continue\x20an\x20existing\x20backend\x20session\x20(an\x20unknown\x20id\x20exits\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x201;\x20the\x20backend\x20assigns\x20new\x20ids).\x20For\x20complete:\x20the\x20session\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20whose\x20history\x20is\x20the\x20context\x0a\x20\x20--json-schema\x20FILE\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20JSON\x20schema\x20the\x20structured\x20answer\x20must\x20match\x20(complete,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20and\x20prompts:\x20implies\x20--print)\x0a\x20\x20--runner-url\x20URL\x20\x20(host)\x20Runner\x20worker\x20WS\x20URL.\x20Required;\x20or\x20CONTROL_PLANE_WS_URL\x20env\x0a\x20\x20--interop\x20PATH\x20\x20\x20\x20(host)\x20Interop\x20binary\x20path;\x20or\x20INTEROP_EXECUTABLE_PATH\x20env.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Absent\x20→\x20registration/discovery\x20only,\x20tool\x20execution\x20disabled\x0a\x20\x20--worker-id\x20ID\x20\x20\x20\x20(host)\x20Stable\x20worker\x20identity;\x20or\x20WORKER_ID\x20env.\x20Default:\x20hostname\x0a\x20\x20--page\x20N\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(sessions)\x20Page\x20to\x20show,\x20from\x201.\x20Default:\x201\x0a\x20\x20--limit\x20N\x20\x20\x20\x20\x20\x20\x20\x20\x20(sessions)\x20Rows\x20per\x20page,\x201-100.\x20Default:\x2030\x0a\x20\x20--include-subagents\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(sessions)\x20Also\x20list\x20sub-agent\x20sessions,\x20hidden\x20by\x20default\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20as\x20in\x20the\x20desktop\x20app\x27s\x20history\x0a\x20\x20--to\x20WHO\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(delegations\x20create)\x20Assign\x20to\x20this\x20person:\x20an\x20email,\x20or\x20a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20name\x20that\x20matches\x20exactly\x20one\x20colleague\x20(see\x20org-users)\x0a\x20\x20--summary\x20TEXT\x20\x20\x20\x20(delegations\x20create)\x20The\x20briefing\x20the\x20person\x20starts\x20from.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default:\x20empty,\x20for\x20a\x20task\x20that\x20stands\x20on\x20its\x20own\x0a\x20\x20--output-format\x20FMT\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20text\x20(default)\x20|\x20json\x20|\x20stream-json.\x20json\x20prints\x20one\x20result\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20object\x20on\x20exit;\x20stream-json\x20prints\x20every\x20agent\x20event\x20as\x20one\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20JSON\x20line,\x20then\x20the\x20result.\x20Both\x20keep\x20stdout\x20JSON-only\x20(logs,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20progress\x20and\x20the\x20session\x20id\x20go\x20to\x20stderr),\x20imply\x20--print,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20and\x20exit\x201\x20when\x20the\x20turn\x20ends\x20in\x20error.\x20Also\x20honoured\x20by\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20every\x20subcommand\x20that\x20prints\x20a\x20result\x20(all\x20but\x20login,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20logout,\x20tenant\x20and\x20host)\x0a\x20\x20-q,\x20--quiet\x20\x20\x20\x20\x20\x20\x20Suppress\x20🤔\x20thinking\x20output\x20to\x20stderr\x0a\x20\x20--verbose\x20\x20\x20\x20\x20\x20\x20\x20\x20Surface\x20the\x20SDK\x27s\x20and\x20the\x20framework\x27s\x20own\x20logs.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Diagnostics\x20only,\x20on\x20stdout;\x20independent\x20of\x20-q\x0a\x20\x20-h,\x20--help\x20\x20\x20\x20\x20\x20\x20\x20Show\x20this\x20help\x0a\x20\x20-v,\x20--version\x20\x20\x20\x20\x20Print\x20the\x20installed\x20CLI\x20version\x0a\x0aConversation:\x20Enter\x20sends\x20a\x20message;\x20/exit\x20or\x20EOF\x20exits;\x20Ctrl+C\x20stops\x20and\x20exits.\x0a\x20\x20Ctrl+C\x20during\x20a\x20turn\x20cancels\x20it\x20on\x20the\x20backend\x20too;\x20a\x20second\x20Ctrl+C\x20force-exits.\x0a\x20\x20An\x20optional\x20initial\x20prompt\x20is\x20followed\x20by\x20more\x20input.\x20The\x20session\x20ID\x20is\x20printed\x0a\x20\x20to\x20stderr;\x20resume\x20later\x20with\x20--session\x20ID.\x20Redirected\x20input\x20is\x20one\x20prompt.\x0aAuth:\x20prompts\x20auto-retry\x20on\x20401\x20by\x20opening\x20the\x20browser\x20to\x20re-login\x20(TTY\x20only),\x0a\x20\x20preserving\x20the\x20active\x20session.\x0a','page','Model\x20','Enter\x20sends\x20a\x20message.\x20/exit\x20or\x20EOF\x20exits;\x20Ctrl+C\x20stops\x20and\x20exits.\x0a','evaluate','date','includeSubAgents','onEvent','noComputerUse','\x20prompt,\x20','map','rubric_version','a\x20skill\x20name','\x20token\x20units','alpha','176586JySnpQ','assignedUserEmail','Organization\x20\x20','.aria','byoWarning','\x20(resets\x20','effort','subcommand','projectId','Pass\x20either\x20--env\x20(a\x20named\x20cloud)\x20or\x20--url\x20(any\x20other\x20deployment),\x20not\x20both.','spawn',').\x0a','cancel','once','title','\x20days:\x20','--print','isError','delegations\x20claim\x20<delegation-id|delegate://delegation/…>','.\x20Use\x20','bind','alreadyCompleted','estimated_cost_usd','resolve','\x20(Delegate\x20desktop\x20app\x20fallback)','from\x201\x20to\x20','assignedUser','complete\x20needs\x20--json-schema\x20<file>:\x20delegate-cli\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22.','tenantName','structured','bundledSkillsPath','self-hosted\x20(Automation\x20Suite\x20/\x20Dedicated)','--cleanup','.\x20Share:\x20','a\x20number','close','limit','log','medium','a\x20format\x20(','\x20\x20TASK\x0a','Usage:\x20delegate-cli\x20sessions\x20','string','tenantId','url','Tenant:\x20','Usage:\x20delegate-cli\x20sessions\x20fork\x20<id>\x20[<message-id>]','model','No\x20CLI\x20login\x20found.\x20Note:\x20the\x20CLI\x20is\x20currently\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20','locked','monthly_spend_usd','\x20(in\x20','--skills-path','\x20\x20\x20\x20BYO\x20warning:\x20','\x20needs\x20a\x20JSON\x20request:\x20delegate-cli\x20','interopPath','--env\x20localhost\x20has\x20no\x20OAuth\x20flow;\x20pick\x20alpha,\x20staging,\x20or\x20production.','contextSummary','unknown\x20slug','index',',\x20or\x20holds\x20no\x20message\x20','expiresAt','--backend','entries','--task-automation\x20needs\x20computer\x20use:\x20the\x20task\x20log\x20is\x20written\x20by\x20the\x20UI-automation\x20tools.\x20Drop\x20--headless,\x20--no-computer-use\x20and\x20--cartographer.','displayName','concat','jsonSchemaPath','response','rerank','Invalid\x20--output-format:\x20','quiet','sendMessage','complete','noMemory','You>\x20','\x20\x22<prompt>\x22\x0a','print','delegations\x20create\x20--session\x20<id>\x20[--to\x20<email|name>]\x20[--summary\x20<text>]\x20\x22<task>\x22|-','Invalid\x20--project:\x20\x22','--help','workerId','Session\x20\x20\x20\x20\x20\x20\x20','max','create','sourceUserEmail','slice','338680Cyfvou','--no-computer-use','delegations\x20pending\x20<session-id>','delegation','low','Session\x20','--task-automation\x20applies\x20to\x20prompts\x20only.','\x20PU\x20used','preloadSkills','isArray','environment\x20variables\x20(AUTH_TOKEN/TENANT_ID/ORG_ID)','--url','From\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','13663720hoHzbN','--turn','getSessionId','a\x20briefing\x20text','--interop','1196127TQhQou','\x20(confidence\x20','Base\x20URL:\x20\x20\x20\x20\x20','list','restore','Already\x20answered','a\x20project\x20id','answers','includes','delegateTo','rmSync','token_units','end','--model','daily','5512392xZKgbJ','Use:\x20delegate-cli\x20delegations\x20','--to,\x20--summary\x20and\x20--session\x20apply\x20to\x20`delegate-cli\x20delegations\x20create`\x20only.','catch','completion_tokens','unknown','--limit','\x20sessions\x20on\x20','total_completion_tokens','tool','delegations\x20accept\x20<delegation-id>','Tenant:\x20\x20\x20\x20\x20\x20\x20','baseUrl','thinking','toolName','\x20\x20from\x20','test','localhost','show','Delegated\x20','deepLink','Last\x20','type','a\x20colleague','models','transcribe','content','\x20active\x20days','model_version','mode','Work\x20on\x20it\x20with:\x20delegate-cli\x20--session\x20','length','code','Forked\x20','rename','--quiet','env','\x0aAvailable\x20models\x20(','getTurnUsageHistory','filter','total_prompt_tokens','delegations\x20list\x20<backend-project-id>','days','Missing\x20prompt.\x20Pass\x20it\x20as\x20an\x20argument,\x20pipe\x20it\x20via\x20stdin,\x20or\x20run\x20`delegate-cli\x20--help`.','\x20(resume\x20with\x20--session\x20','\x20is\x20not\x20valid\x20JSON\x20(','result','existsSync','\x20|\x20','--headless','toFixed','tenant','monthly_limit_usd','[env=','),\x20','trim','stack','No\x20models\x20available\x20for\x20this\x20product/tenant.\x0a','noConnections','sessions','host','Licensing:\x20\x20\x20\x20','startsWith','AUTH_TOKEN_FILE\x20\x27','write','period_end','--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`delegate-cli\x20sessions`\x20only.','score\x20','No\x20CLI\x20login\x20to\x20switch:\x20the\x20CLI\x20is\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20','delegationId','daily_usage','More:\x20delegate-cli\x20sessions\x20--page\x20','tool_call','total_sessions','10425ABafIO','finish','extra_pool_consumed_pu','utf-8','hide','now','--preload-skill','lockReason','--output-format\x20','--project','parentSessionId','--cartographer','Cost:\x20\x20\x20$','\x20\x20\x20\x20','No\x20answers\x20awaiting\x20acceptance.\x0a','whoami','Turn:\x20','\x20—\x20sign\x20out\x20in\x20the\x20Delegate\x20app\x20to\x20clear\x20that.','pending','pct_used','No\x20turn\x20','userId','prompt_tokens','--json-schema\x20applies\x20to\x20prompts\x20and\x20to\x20`delegate-cli\x20complete`\x20only.','sourceTitle',':\x20cannot\x20read\x20the\x20request\x20(','auth','--days\x20applies\x20to\x20`delegate-cli\x20usage\x20activity|daily`\x20only.','workingDirectory',':\x20cannot\x20read\x20the\x20JSON\x20schema\x20(','backendUrl','--attach:\x20no\x20such\x20file\x20or\x20folder:\x20','total_tokens','\x20applies\x20to\x20prompts\x20and\x20to\x20these\x20commands\x20only:\x20','Interop\x20stopped\x20(if\x20it\x20was\x20running).','a\x20directory\x20path','No\x20CLI\x20login\x20found\x20—\x20nothing\x20to\x20remove.','tokenExpiresAt','No\x20structured\x20output:\x20the\x20turn\x20failed\x20(','--skip-env-check','the\x20request','isTTY','--effort','delegations\x20dismiss\x20<delegation-id>','error','\x20\x20(input\x20#','\x20<title>','Licensing:\x20\x20\x20\x20no\x20licensing\x20quota\x20applies','an\x20effort\x20tier','\x20--turn\x20','stdout','turn_start','from','STATUS','initialize','pendingResults','Date\x20\x20\x20\x20\x20\x20\x20\x20Token\x20units\x20\x20Prompt\x20tokens\x20\x20Completion\x20tokens','session_start','turnId','\x20(cancel\x20with:\x20delegate-cli\x20sessions\x20cancel\x20','Auth\x20comes\x20from\x20AUTH_TOKEN/TENANT_ID/ORG_ID\x20—\x20set\x20TENANT_ID\x20and\x20TENANT_SLUG\x20to\x20change\x20the\x20tenant.','model_id','Structured\x20output\x20failed:\x20','Cancel\x20requested\x20for\x20turn\x20','stringify','parse','claim','/exit','headless','--page','Tokens:\x20','\x20requires\x20','choice','\x20\x22<prompt>\x22\x0aAnswer\x20with:\x20delegate-cli\x20delegations\x20complete\x20','--json-schema','detail','activity'];_0x49a5=function(){return _0x442f98;};return _0x49a5();}async function ln(_0x39af0e){const _0x115b70=_0x2002b5;let _0x456452=_0x39af0e[_0x115b70(0x276)]!==_0x115b70(0x25f),_0x4e84e6=_0x39af0e['jsonSchemaPath']===void 0x0?null:ue(_0x39af0e[_0x115b70(0x32a)],_0x115b70(0x28f)),_0x7e31bc=!_0x456452&&!_0x4e84e6&&!_0x39af0e[_0x115b70(0x334)]&&_0x39af0e['prompt']!=='-'&&!!process[_0x115b70(0x237)][_0x115b70(0x20f)]&&!!process[_0x115b70(0x218)][_0x115b70(0x20f)],_0x3c0620=_0x7e31bc?_0x39af0e['prompt'][_0x115b70(0x1d3)]():await I(_0x39af0e[_0x115b70(0x2c6)],process[_0x115b70(0x237)]);if(!_0x7e31bc&&!_0x3c0620&&(console[_0x115b70(0x212)](_0x115b70(0x1c7)),process['exit'](0x2)),!_0x456452){await ee(_0x39af0e,_0x3c0620,_0x7e31bc,null,_0x4e84e6);return;}let _0x2edc9a=!0x1,_0x1dbd4d=_0x141f73=>{const _0x3007ac=_0x115b70;_0x2edc9a=!0x0,S(_0x39a43f(_0x141f73)),(_0x141f73[_0x3007ac(0x2f8)]||_0x141f73[_0x3007ac(0x24e)])&&(process['exitCode']=0x1);},_0x138e43=Date[_0x115b70(0x1eb)]();try{await ee(_0x39af0e,_0x3c0620,!0x1,_0x1dbd4d,_0x4e84e6);}catch(_0x663cd5){if(_0x2edc9a)throw _0x663cd5;process['stderr']['write']((_0x663cd5 instanceof Error?_0x663cd5[_0x115b70(0x1d4)]??_0x663cd5[_0x115b70(0x259)]:String(_0x663cd5))+'\x0a'),_0x1dbd4d(new _0x1a16aa(_0x138e43)[_0x115b70(0x1e7)]({'endedAtMs':Date['now'](),'usage':[],'error':_0x663cd5}));}}async function ee(_0x5e74c3,_0x36f0ae,_0xaa39b7,_0x4e8d6e,_0x522f62){const _0x1f4ba0=_0x2002b5;d={'lastType':null,'quiet':_0x5e74c3[_0x1f4ba0(0x32e)]};let _0x5f1448=new Set(),_0x5dd0ad=_0x25b3a6=>{const _0x2b167b=_0x1f4ba0;(!_0x4e8d6e||_0x25b3a6['type']===_0x2b167b(0x21f)||_0x25b3a6[_0x2b167b(0x1b2)]===_0x2b167b(0x219))&&an(_0x25b3a6);for(let _0x47829a of _0x5f1448)_0x47829a(_0x25b3a6);},_0x3f8b4f=await P(),_0x548afa=new _0x25c932();_0x548afa[_0x1f4ba0(0x2df)](_0x5dd0ad);let _0x3df70d=_0x4b501e(_0x5e74c3[_0x1f4ba0(0x1c0)],_0x3f8b4f,_0x5e74c3['backendUrl']);F(_0x5e74c3[_0x1f4ba0(0x1c0)],_0x5e74c3[_0x1f4ba0(0x204)],_0x3df70d);let _0x34ff11=Z(_0x5e74c3,_0x3f8b4f,_0x3df70d),_0x3dfbf0=!0x1,_0x3a61f1=!0x1,_0x5f14ce,_0x429757=()=>_0x5f14ce??=_0x548afa['destroy'](),_0x41a439=()=>{const _0x30575f=_0x1f4ba0;_0x3a61f1&&process['exit'](0x82),_0x3a61f1=!0x0,process[_0x30575f(0x2af)][_0x30575f(0x1dc)]('\x0aStopping…\x20(Ctrl+C\x20again\x20to\x20force\x20exit)\x0a'),_0x3dfbf0&&_0x548afa[_0x30575f(0x2f3)]()[_0x30575f(0x19f)](_0x1e1fea=>console[_0x30575f(0x212)](_0x1e1fea))[_0x30575f(0x256)](_0x429757)[_0x30575f(0x256)](()=>process[_0x30575f(0x260)](0x82),_0x16a2d6=>{console['error'](_0x16a2d6),process['exit'](0x82);});};process['on'](_0x1f4ba0(0x241),_0x41a439);let _0x3e8c5d=_0x5e74c3[_0x1f4ba0(0x286)],_0x1fc485=async _0x11c270=>{const _0x41533d=_0x1f4ba0;let _0x3bc9b3=_0x3e8c5d;_0x3e8c5d=[];let _0x1b00c4=()=>_0x548afa[_0x41533d(0x32f)](_0x11c270,{'attachments':_0x3bc9b3});try{return await _0x1b00c4();}catch(_0x37601c){if(_0x3a61f1||!rn(_0x37601c)||!process['stdin'][_0x41533d(0x20f)]||_0x5e74c3[_0x41533d(0x1c0)]===_0x41533d(0x1ad)||!(_0x5e74c3[_0x41533d(0x1c0)]||_0x3f8b4f[_0x41533d(0x1a8)]))throw _0x37601c;process[_0x41533d(0x2af)][_0x41533d(0x1dc)](_0x41533d(0x2b1));let _0x2edd68=_0x548afa[_0x41533d(0x34d)]()??_0x5e74c3[_0x41533d(0x246)],_0xae6a94=await _0x1236ef(_0x5e74c3[_0x41533d(0x1c0)]?{'env':_0x5e74c3[_0x41533d(0x1c0)],'tenant':C(_0x3f8b4f,_0x1b1584[_0x5e74c3[_0x41533d(0x1c0)]]),'skipEnvCheck':!0x0}:{'baseUrl':_0x3f8b4f[_0x41533d(0x1a8)],'tenant':_0x3f8b4f[_0x41533d(0x303)],'skipEnvCheck':!0x0}),_0x228f88={'text':'','failed':!0x1,'sessionId':_0x2edd68};return _0x3a61f1||(_0x3dfbf0=!0x1,await _0x429757(),_0x3a61f1)?_0x228f88:(_0x548afa=new _0x25c932(),_0x5f14ce=void 0x0,_0x548afa[_0x41533d(0x2df)](_0x5dd0ad),_0x3f8b4f=_0xae6a94,await _0x548afa[_0x41533d(0x21c)]({...Z(_0x5e74c3,_0x3f8b4f,_0x3df70d),..._0x2edd68?{'sessionId':_0x2edd68}:{}}),_0x3dfbf0=!0x0,_0x3a61f1?_0x228f88:_0x1b00c4());}};try{if(await _0x548afa[_0x1f4ba0(0x21c)](_0x34ff11),_0x3dfbf0=!0x0,_0x3a61f1)return;if(_0xaa39b7)await un({'prompt':_0x36f0ae,'sendMessage':_0x1fc485,'onSigint':_0x41a439});else{if(_0x4e8d6e||_0x522f62){let _0x35741a=_0x5e74c3[_0x1f4ba0(0x276)]===_0x1f4ba0(0x2a4)?_0xc2adc8=>S(_0x28cde4(_0xc2adc8)):()=>{},_0x5bc5d1=await _0x55ab42({'onEvent':_0x54533a=>(_0x5f1448['add'](_0x54533a),()=>{const _0x3d828c=_0x1f4ba0;_0x5f1448[_0x3d828c(0x2d2)](_0x54533a);}),'sendMessage':_0xc33e70=>_0x1fc485(_0xc33e70),'getSessionId':()=>_0x548afa[_0x1f4ba0(0x34d)](),'getTurnUsageHistory':_0x16b525=>_0x548afa[_0x1f4ba0(0x1c2)](_0x16b525),'complete':_0x1f275b=>_0x548afa[_0x1f4ba0(0x330)](_0x1f275b)},_0x36f0ae,void 0x0,_0x35741a,_0x522f62?{'outputSchema':_0x522f62}:void 0x0);_0x4e8d6e?_0x4e8d6e(_0x5bc5d1):cn(_0x5bc5d1);}else await _0x1fc485(_0x36f0ae);}}catch(_0x117603){if(!_0x3a61f1)throw _0x117603;}finally{try{await _0x429757();}finally{process[_0x1f4ba0(0x288)](_0x1f4ba0(0x241),_0x41a439),_0x3a61f1&&(process['exitCode']=0x82);}}}function cn(_0x5ab977){const _0x2d9c9f=_0x2002b5;_0x5ab977[_0x2d9c9f(0x24e)]?(console[_0x2d9c9f(0x212)](_0x2d9c9f(0x224)+_0x5ab977['structuredError'][_0x2d9c9f(0x259)]),process[_0x2d9c9f(0x2a9)]=0x1):_0x5ab977[_0x2d9c9f(0x2f8)]?(console[_0x2d9c9f(0x212)](_0x2d9c9f(0x20c)+_0x5ab977[_0x2d9c9f(0x212)]+').'),process[_0x2d9c9f(0x2a9)]=0x1):process['stdout'][_0x2d9c9f(0x1dc)](JSON[_0x2d9c9f(0x226)](_0x5ab977[_0x2d9c9f(0x304)],null,0x2)+'\x0a');}function dn(_0x2bec57,_0x2e2dff){const _0x5b9ccc=_0x2002b5;let _0x350452=process[_0x5b9ccc(0x218)][_0x5b9ccc(0x1dc)]['bind'](process['stdout']),_0x649d65=!0x1;return process[_0x5b9ccc(0x218)][_0x5b9ccc(0x1dc)]=(..._0x359beb)=>{const _0x41d6e4=_0x5b9ccc;if(!_0x649d65)return _0x350452(..._0x359beb);_0x201b33(_0x2e2dff,0x0),_0x5c9b50(_0x2e2dff,0x0);let _0x1e10bb=_0x350452(..._0x359beb);return _0x2bec57[_0x41d6e4(0x2c6)](!0x0),_0x1e10bb;},{'show':()=>{const _0x42fa1b=_0x5b9ccc;_0x649d65=!0x0,_0x2bec57[_0x42fa1b(0x2c6)]();},'hide':()=>{_0x649d65=!0x1;},'restore':()=>{const _0x876672=_0x5b9ccc;_0x649d65=!0x1,process[_0x876672(0x218)][_0x876672(0x1dc)]=_0x350452;}};}async function un({prompt:_0x574ccc,sendMessage:_0x4dbf57,onSigint:_0x1b20ed}){const _0x3c77f1=_0x2002b5;let _0x230903=_0x49b099({'input':process['stdin'],'output':process[_0x3c77f1(0x2af)],'terminal':!0x0,'prompt':_0x3c77f1(0x332)}),_0x162199=dn(_0x230903,process[_0x3c77f1(0x2af)]),_0x150a4b=_0x230903[Symbol[_0x3c77f1(0x2ca)]](),_0x15b6b0=!0x1;_0x230903[_0x3c77f1(0x2f4)](_0x3c77f1(0x30a),()=>{const _0x460139=_0x3c77f1;_0x15b6b0=!0x0,_0x162199[_0x460139(0x1ea)]();});let _0x52716f=!0x1,_0x285e95=()=>{const _0x1bd425=_0x3c77f1;_0x52716f=!0x0,_0x230903[_0x1bd425(0x30a)](),_0x1b20ed();};_0x230903['on']('SIGINT',_0x285e95),process[_0x3c77f1(0x2af)][_0x3c77f1(0x1dc)](_0x3c77f1(0x2db));try{if(_0x574ccc&&await _0x4dbf57(_0x574ccc),_0x52716f)return;_0x15b6b0||_0x162199[_0x3c77f1(0x1ae)]();for await(let _0x52a46b of _0x150a4b){if(_0x162199[_0x3c77f1(0x1ea)](),_0x52716f)break;let _0x4192cd=_0x52a46b['trim']();if(_0x4192cd===_0x3c77f1(0x229))break;_0x4192cd&&await _0x4dbf57(_0x4192cd),_0x15b6b0||_0x162199[_0x3c77f1(0x1ae)]();}}finally{_0x162199[_0x3c77f1(0x354)](),_0x230903[_0x3c77f1(0x288)](_0x3c77f1(0x241),_0x285e95),_0x230903[_0x3c77f1(0x30a)]();}}async function pn(){const _0x52b2c8=_0x2002b5;let _0xe73da6=ht(process[_0x52b2c8(0x264)][_0x52b2c8(0x33d)](0x2));if(_0xe73da6['outputFormat']===_0x52b2c8(0x25f)){await te(_0xe73da6);return;}let _0x37f35b=gt();try{await te(_0xe73da6);}finally{_0x37f35b();}}async function te(_0x48ef96){const _0x4651fc=_0x2002b5;if(_0x48ef96['help']){wt();return;}if(_0x48ef96[_0x4651fc(0x2a1)]){console[_0x4651fc(0x30c)](yt());return;}if(_0x48ef96['subcommand']===_0x4651fc(0x24a)){await en(_0x48ef96);return;}if(_0x48ef96[_0x4651fc(0x2ee)]===_0x4651fc(0x1cf)){await nn(_0x48ef96['prompt']);return;}if(_0x48ef96[_0x4651fc(0x2ee)]===_0x4651fc(0x238)){await vt();return;}if(_0x48ef96[_0x4651fc(0x2ee)]==='whoami'){await At(_0x48ef96);return;}if(_0x48ef96[_0x4651fc(0x2ee)]===_0x4651fc(0x1b4)){await Tt(_0x48ef96);return;}if(_0x48ef96[_0x4651fc(0x2ee)]===_0x4651fc(0x285)){await Lt(_0x48ef96);return;}if(_0x48ef96[_0x4651fc(0x2ee)]==='sessions'){await Dt(_0x48ef96);return;}if(_0x48ef96[_0x4651fc(0x2ee)]===_0x4651fc(0x2ce)){await Ft(_0x48ef96);return;}if(_0x48ef96[_0x4651fc(0x2ee)]===_0x4651fc(0x2dc)||_0x48ef96[_0x4651fc(0x2ee)]===_0x4651fc(0x32c)||_0x48ef96[_0x4651fc(0x2ee)]==='verify'){await Ht(_0x48ef96,_0x48ef96[_0x4651fc(0x2ee)]);return;}if(_0x48ef96[_0x4651fc(0x2ee)]===_0x4651fc(0x330)){await Jt(_0x48ef96);return;}if(_0x48ef96['subcommand']===_0x4651fc(0x1b5)){await zt(_0x48ef96);return;}if(_0x48ef96[_0x4651fc(0x2ee)]===_0x4651fc(0x25b)){await Yt(_0x48ef96);return;}if(_0x48ef96[_0x4651fc(0x2ee)]==='org-users'){await Zt(_0x48ef96);return;}if(_0x48ef96[_0x4651fc(0x2ee)]===_0x4651fc(0x1d8)){await _0x4eeb18(_0x48ef96[_0x4651fc(0x2c6)],{'runnerUrl':_0x48ef96[_0x4651fc(0x2ac)],'backendUrl':_0x48ef96[_0x4651fc(0x204)],'interopPath':_0x48ef96[_0x4651fc(0x31e)],'workerId':_0x48ef96[_0x4651fc(0x338)]});return;}if(_0x48ef96['cleanup']){await $t();return;}await ln(_0x48ef96);}var mn=process.env.NODE_ENV===_0x2002b5(0x1ac)||!!process.env.JEST_WORKER_ID;mn||pn()['catch'](_0x2d2f71=>{const _0x241418=_0x2002b5;console[_0x241418(0x212)](_0x2d2f71[_0x241418(0x1d4)]||_0x2d2f71[_0x241418(0x259)]||_0x2d2f71),process[_0x241418(0x260)](0x1);});export{ft as CARTOGRAPHER_SKILLS,G as EFFORT_TIERS,kt as IMPLICIT_STDIN_IDLE_MS,Z as buildInitOptions,pn as main,ht as parseArgs,yt as readCliVersion,I as resolvePrompt,gt as routeStdoutToStderr,l as writeCommandResult};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uipath/delegate-cli",
3
- "version": "1.204.0-preview.20261020135613",
3
+ "version": "1.204.0-preview.20261021081349",
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.204.0-preview.20261020135613"
25
+ "@uipath/delegate-sdk": "1.204.0-preview.20261021081349"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@types/node": "^22.0.0",