@uipath/delegate-cli 1.203.0-preview.20260927102104 β†’ 1.203.0-preview.20260928154025

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 _0x274d5f=_0x1e36;(function(_0x30c6ce,_0xc1a1b6){const _0x565088=_0x1e36,_0x50a3c4=_0x30c6ce();while(!![]){try{const _0x160fe0=parseInt(_0x565088(0x12a))/0x1*(-parseInt(_0x565088(0xb1))/0x2)+-parseInt(_0x565088(0xed))/0x3*(-parseInt(_0x565088(0x11d))/0x4)+-parseInt(_0x565088(0xde))/0x5*(-parseInt(_0x565088(0xb9))/0x6)+parseInt(_0x565088(0xc7))/0x7*(-parseInt(_0x565088(0x115))/0x8)+-parseInt(_0x565088(0x149))/0x9+-parseInt(_0x565088(0xd0))/0xa*(parseInt(_0x565088(0xb3))/0xb)+parseInt(_0x565088(0x143))/0xc;if(_0x160fe0===_0xc1a1b6)break;else _0x50a3c4['push'](_0x50a3c4['shift']());}catch(_0xf7006c){_0x50a3c4['push'](_0x50a3c4['shift']());}}}(_0x4ba4,0x7f243));const __dirname=import.meta.dirname;import _0xd0b784 from'fs';import _0x575eed from'path';import{clearLine as _0x93a7e6,createInterface as _0x87ffb2,cursorTo as _0x4869f5}from'node:readline';import{BUSINESS_ANALYSIS_PRELOADED_SKILLS as _0x5e439d,DelegateAgent as _0x2ea88c,InteropProcess as _0x496c1b,describeBaseUrlRejection as _0x2cbc7f,getAuthFilePath as _0x2cdf4a,isCloudBaseUrl as _0x2c55b7,isSafeProjectFolderSegment as _0x500db9,listTenants as _0x5d1c87,loadAndRefreshAuth as _0x1e3d8d,loadAndRefreshSdkLogin as _0x3e5d08,parsePlatformBaseUrl as _0x1a870c,resolveBackendUrl as _0x3608a3,runHealthCheck as _0x1ebac3,runHostCommand as _0x145c58,runLoginFlow as _0x50950b,saveAuthData as _0x1d533f,switchTenant as _0xc4de7c,ENV_TO_CLOUD as _0x42a2aa}from'@uipath/delegate-sdk';var ee=[_0x274d5f(0x132),_0x274d5f(0x151),_0x274d5f(0x13e),_0x274d5f(0x92),_0x274d5f(0x89),'whoami','check'],N=['low',_0x274d5f(0x129),_0x274d5f(0xc0),_0x274d5f(0xcc),'max'],te=_0x5e439d;function p(_0x3c0f3e,_0x908f5a,_0x14e4e6,_0x6da62a){const _0xdb6945=_0x274d5f;let _0x2a9f5c=_0x3c0f3e[_0x908f5a];return(!_0x2a9f5c||_0x2a9f5c[_0xdb6945(0xd2)]>0x1&&_0x2a9f5c[_0xdb6945(0xf9)]('-'))&&(console[_0xdb6945(0xe0)](_0x14e4e6+_0xdb6945(0xbe)+_0x6da62a+'.'),process[_0xdb6945(0x14a)](0x2)),_0x2a9f5c;}function ne(_0x25f96f){const _0x2be03e=_0x274d5f;let _0xe1cb9e={'subcommand':'','prompt':'','print':!0x1,'keepAlive':!0x1,'cleanup':!0x1,'headless':!0x1,'noComputerUse':!0x1,'cartographer':!0x1,'noConnections':!0x1,'noSecurity':!0x1,'quiet':!0x1,'verbose':!0x1,'preloadSkills':[],'skipEnvCheck':!0x1,'help':!0x1,'version':!0x1};ee[_0x2be03e(0xb7)](_0x25f96f[0x0])&&(_0xe1cb9e[_0x2be03e(0x13d)]=_0x25f96f[0x0],_0x25f96f=_0x25f96f['slice'](0x1));let _0x1aae97=[];for(let _0x4fff68=0x0;_0x4fff68<_0x25f96f[_0x2be03e(0xd2)];_0x4fff68++){let _0x580801=_0x25f96f[_0x4fff68];switch(_0x580801){case _0x2be03e(0x12f):case'-p':_0xe1cb9e['print']=!0x0;break;case _0x2be03e(0xd5):_0xe1cb9e['keepAlive']=!0x0;break;case _0x2be03e(0xf4):_0xe1cb9e[_0x2be03e(0xbd)]=!0x0;break;case _0x2be03e(0xc6):_0xe1cb9e[_0x2be03e(0x147)]=!0x0;break;case _0x2be03e(0x117):_0xe1cb9e[_0x2be03e(0x9e)]=!0x0;break;case'--cartographer':_0xe1cb9e['cartographer']=!0x0,_0xe1cb9e[_0x2be03e(0x9e)]=!0x0,_0xe1cb9e[_0x2be03e(0x8e)][_0x2be03e(0x146)](...te);break;case _0x2be03e(0xe5):_0xe1cb9e[_0x2be03e(0xe8)]=!0x0;break;case'--no-security':_0xe1cb9e[_0x2be03e(0x12e)]=!0x0;break;case _0x2be03e(0xc1):case'-q':_0xe1cb9e[_0x2be03e(0x14d)]=!0x0;break;case _0x2be03e(0xd6):_0xe1cb9e['verbose']=!0x0;break;case _0x2be03e(0xab):_0xe1cb9e[_0x2be03e(0x125)]=_0x25f96f[++_0x4fff68];break;case'--model':_0xe1cb9e[_0x2be03e(0x95)]=_0x25f96f[++_0x4fff68];break;case _0x2be03e(0xf6):_0xe1cb9e[_0x2be03e(0x11f)]=_0x25f96f[++_0x4fff68];break;case'--interop':_0xe1cb9e[_0x2be03e(0x113)]=_0x25f96f[++_0x4fff68];break;case _0x2be03e(0xdf):_0xe1cb9e[_0x2be03e(0x118)]=_0x25f96f[++_0x4fff68];break;case _0x2be03e(0xef):_0xe1cb9e[_0x2be03e(0x8e)][_0x2be03e(0x146)](p(_0x25f96f,++_0x4fff68,_0x580801,_0x2be03e(0x14e)));break;case'--project':{let _0x26eb0f=p(_0x25f96f,++_0x4fff68,_0x580801,_0x2be03e(0xfb));_0x500db9(_0x26eb0f)||(console[_0x2be03e(0xe0)]('Invalid\x20--project:\x20\x22'+_0x26eb0f+'\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[_0x2be03e(0x14a)](0x2)),_0xe1cb9e[_0x2be03e(0x8f)]=_0x26eb0f;break;}case _0x2be03e(0x10e):_0xe1cb9e[_0x2be03e(0x116)]=p(_0x25f96f,++_0x4fff68,_0x580801,_0x2be03e(0xc4));break;case _0x2be03e(0x140):_0xe1cb9e['workingDirectory']=_0x575eed[_0x2be03e(0xee)](process[_0x2be03e(0x109)](),p(_0x25f96f,++_0x4fff68,_0x580801,_0x2be03e(0x8a)));break;case _0x2be03e(0x126):_0xe1cb9e['bundledSkillsPath']=_0x575eed[_0x2be03e(0xee)](process['cwd'](),p(_0x25f96f,++_0x4fff68,_0x580801,'a\x20directory\x20path'));break;case'--effort':{let _0x165e1f=p(_0x25f96f,++_0x4fff68,_0x580801,_0x2be03e(0x145));N[_0x2be03e(0xb7)](_0x165e1f)||(console[_0x2be03e(0xe0)]('Invalid\x20--effort:\x20'+_0x165e1f+_0x2be03e(0x110)+N[_0x2be03e(0xcb)](_0x2be03e(0x152))+'.'),process[_0x2be03e(0x14a)](0x2)),_0xe1cb9e[_0x2be03e(0x86)]=_0x165e1f;break;}case _0x2be03e(0xc3):{let _0xf73110=_0x25f96f[++_0x4fff68];(!_0xf73110||_0xf73110[_0x2be03e(0xf9)]('--'))&&(console[_0x2be03e(0xe0)](_0x2be03e(0xda)),process[_0x2be03e(0x14a)](0x2)),_0xe1cb9e[_0x2be03e(0x151)]=_0xf73110;break;}case _0x2be03e(0x9d):{let _0x2845a9=_0x25f96f[++_0x4fff68];[_0x2be03e(0xa7),_0x2be03e(0xbc),_0x2be03e(0xcd),_0x2be03e(0x105)]['includes'](_0x2845a9)||(console[_0x2be03e(0xe0)](_0x2be03e(0xf1)+_0x2845a9+_0x2be03e(0xaf)),process[_0x2be03e(0x14a)](0x2)),_0xe1cb9e[_0x2be03e(0xa0)]=_0x2845a9;break;}case'--url':case _0x2be03e(0x138):{let _0x38f08c=p(_0x25f96f,++_0x4fff68,_0x580801,_0x2be03e(0x99)),_0x4180e9=_0x1a870c(_0x38f08c);if(_0x4180e9['ok']===!0x1){console[_0x2be03e(0xe0)](_0x2cbc7f(_0x38f08c,_0x4180e9[_0x2be03e(0xae)])),process[_0x2be03e(0x14a)](0x2);break;}_0xe1cb9e[_0x2be03e(0x12d)]=_0x4180e9[_0x2be03e(0x123)];break;}case _0x2be03e(0x87):_0xe1cb9e[_0x2be03e(0x122)]=!0x0;break;case'-h':case _0x2be03e(0xfe):_0xe1cb9e[_0x2be03e(0x139)]=!0x0;break;case'-v':case _0x2be03e(0x7b):_0xe1cb9e[_0x2be03e(0x141)]=!0x0;break;default:_0x580801[_0x2be03e(0xf9)]('--')&&(console[_0x2be03e(0xe0)]('Unknown\x20flag:\x20'+_0x580801),process[_0x2be03e(0x14a)](0x2)),_0x1aae97[_0x2be03e(0x146)](_0x580801);}}return _0xe1cb9e[_0x2be03e(0x151)]!==void 0x0&&_0xe1cb9e['subcommand']!=='login'&&(console[_0x2be03e(0xe0)](_0x2be03e(0xa1)),process[_0x2be03e(0x14a)](0x2)),_0xe1cb9e[_0x2be03e(0x12d)]!==void 0x0&&_0xe1cb9e['env']!==void 0x0&&(console['error'](_0x2be03e(0x13f)),process['exit'](0x2)),_0xe1cb9e[_0x2be03e(0x12d)]!==void 0x0&&_0xe1cb9e['subcommand']!=='login'&&(console['error'](_0x2be03e(0x11c)),process[_0x2be03e(0x14a)](0x2)),_0xe1cb9e['skipEnvCheck']&&_0xe1cb9e[_0x2be03e(0x13d)]!=='login'&&(console[_0x2be03e(0xe0)](_0x2be03e(0xa8)),process[_0x2be03e(0x14a)](0x2)),_0xe1cb9e[_0x2be03e(0x8e)]=[...new Set(_0xe1cb9e[_0x2be03e(0x8e)])],_0xe1cb9e[_0x2be03e(0x10c)]=_0x1aae97[_0x2be03e(0xcb)]('\x20'),_0xe1cb9e;}function oe(){const _0x20e96a=_0x274d5f;let _0xae9851=_0x20e96a(0xbb)['trim']();console['log'](_0xae9851);}function se(){const _0x253011=_0x274d5f;try{return JSON[_0x253011(0x83)](_0xd0b784[_0x253011(0x9b)](_0x575eed[_0x253011(0xcb)](__dirname,'..','package.json'),_0x253011(0x8c)))['version']||_0x253011(0x120);}catch{return'unknown';}}var re=0x7d0;async function C(_0x143e60,_0x3a696a){const _0x393f08=_0x274d5f;let _0x409e02=_0x3a696a?[_0x3a696a]:[];for await(let _0x3bd395 of _0x143e60)_0x409e02[_0x393f08(0x146)](Buffer[_0x393f08(0x81)](_0x3bd395));return Buffer['concat'](_0x409e02)[_0x393f08(0xf5)](_0x393f08(0x8c))[_0x393f08(0xad)]();}function _0x4ba4(){const _0x45bccb=['bind','\x20(in\x20','--help','workingDirectory','json','hide','tenantName','Base\x20URL:\x20\x20\x20\x20\x20','\x20(current)','localhost','write','content','\x20(resume\x20with\x20--session\x20','cwd','The\x20saved\x20CLI\x20login\x20could\x20not\x20be\x20refreshed.\x20Run\x20`delegate-cli\x20login`\x20again.','\x0aπŸ€”\x20','prompt','\x20(Delegate\x20desktop\x20app\x20fallback)','--session','X-Uipath-Tenantid','.\x20Use\x20','MODELS','Token:\x20\x20\x20\x20\x20\x20\x20\x20expires\x20','interopPath','Session:\x20','40uaMdVd','sessionId','--no-computer-use','workerId','):\x0a\x0a','Tenants\x20of\x20','You>\x20','--url\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Other\x20commands\x20follow\x20the\x20saved\x20login,\x20or\x20--backend\x20<url>.','8SBELCo','No\x20CLI\x20login\x20found.\x20Note:\x20the\x20CLI\x20is\x20currently\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20','runnerUrl','unknown','Organization:\x20','skipEnvCheck','baseUrl','stdin','backendUrl','--skills-path','isDesktopFallback','close','medium','3KmxzYx','tool_call','message','url','noSecurity','--print','once','lastType','login','--env\x20localhost\x20has\x20no\x20OAuth\x20flow;\x20pick\x20alpha,\x20staging,\x20or\x20production.','entries','No\x20CLI\x20login\x20found\x20β€”\x20nothing\x20to\x20remove.','origin','Removed\x20','--authority','help','round','expiresAt','check','subcommand','models','Pass\x20either\x20--env\x20(a\x20named\x20cloud)\x20or\x20--url\x20(any\x20other\x20deployment),\x20not\x20both.','--working-dir','version','existsSync','20342484BeCSSF','keepAlive','an\x20effort\x20tier','push','headless','statusText','568224AXywMp','exit','accessToken','stdout','quiet','a\x20skill\x20name','\x20\x20\x20\x20','GET\x20','tenant','\x20|\x20','\x0aUse\x20with:\x20delegate-cli\x20--model\x20<id>\x20\x22<prompt>\x22\x0a','--version','auth','verbose','now','Switch\x20with:\x20delegate-cli\x20tenant\x20<name>\x0a','\x20min)','from','spawn','parse','sendMessage','show','effort','--skip-env-check',';\x20the\x20saved\x20login\x20still\x20uses\x20','logout','a\x20directory\x20path','argv','utf-8','orgLogicalName','preloadSkills','projectId',']\x20Backend\x20URL:\x20','tenantId','host','UIPATH_BASE_URL\x20is\x20unusable.\x20','isTTY','model','Tenant:\x20','skip','catch','a\x20deployment\x20URL,\x20e.g.\x20https://automationsuite.contoso.com','SIGINT','readFileSync','map','--env','noComputerUse','\x0aAvailable\x20models\x20(','env','--tenant\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Switch\x20tenants\x20with:\x20delegate-cli\x20tenant\x20<name>','log','tool','done','Bearer\x20','onEvent','alpha','--skip-env-check\x20applies\x20to\x20`delegate-cli\x20login`\x20only.','type','object','--backend',',\x20whose\x20tenant\x20is\x20chosen\x20in\x20the\x20app.\x20Run\x20`delegate-cli\x20login\x20--env\x20<env>`\x20for\x20a\x20CLI\x20login\x20of\x20your\x20own.','trim','rejection','.\x20Use\x20alpha\x20|\x20staging\x20|\x20production\x20|\x20localhost.','checks','450130xxIevl','floor','44qCgtFp','Token:\x20\x20\x20\x20\x20\x20\x20\x20expired\x20','test','Enter\x20sends\x20a\x20message.\x20/exit\x20or\x20EOF\x20exits;\x20Ctrl+C\x20stops\x20and\x20exits.\x0a','includes','then','6fGceaZ','resume','\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\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\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\x20and\x20interop\x20without\x20sending\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20a\x20prompt;\x20exits\x201\x20when\x20any\x20check\x20fails\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,\x20kimi_k3).\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default:\x20gemini_3_6_flash.\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--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-checklist\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\x20Extra\x20bundled-skills\x20directory\x20(merged\x20with\x20the\x20installed\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20app\x27s\x20skills\x20and\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\x20Pin\x20the\x20session\x20id\x20(must\x20exist\x20on\x20the\x20backend,\x20or\x20be\x20one\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20first\x20message\x20creates)\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-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\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','staging','cleanup','\x20requires\x20','stop','high','--quiet','toISOString','--tenant','a\x20session\x20id','slice','--headless','1069502FDnYNy','Deployment:\x20\x20\x20','name','No\x20CLI\x20login\x20to\x20switch:\x20the\x20CLI\x20is\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20','join','xhigh','production','[env=','asyncIterator','1430420qtRcWK','exitCode','length','data','UiPath\x20Cloud','--keep-alive','--verbose','unknown\x20slug','restore','initialize','--tenant\x20requires\x20a\x20tenant\x20name.','βœ“\x20Done\x0a','[saved\x20login]\x20Backend\x20URL:\x20','off','2742605Jvvwhj','--worker-id','error','πŸ”§\x20','thinking','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','description','--no-connections','end','Missing\x20prompt.\x20Pass\x20it\x20as\x20an\x20argument,\x20pipe\x20it\x20via\x20stdin,\x20or\x20run\x20`delegate-cli\x20--help`.','noConnections','bundledSkillsPath','.aria','organizationId','status','527208aCinix','resolve','--preload-skill','/v1/config','Invalid\x20--env:\x20','Tenant\x20not\x20switched:\x20could\x20not\x20write\x20','\x20β†’\x20','--cleanup','toString','--runner-url','stderr','file','startsWith','session_start','a\x20project\x20id'];_0x4ba4=function(){return _0x45bccb;};return _0x4ba4();}function ie(_0x42eead,_0x252a64){return new Promise(_0x2de396=>{const _0x20ec6f=_0x1e36;let _0x58b892=_0x5584dd=>{const _0x1ec9e3=_0x1e36;clearTimeout(_0x5a2836),_0x42eead[_0x1ec9e3(0xdd)](_0x1ec9e3(0xd3),_0x2954b8),_0x42eead[_0x1ec9e3(0xdd)]('end',_0x316667),_0x42eead[_0x1ec9e3(0xdd)](_0x1ec9e3(0xe0),_0x316667),_0x42eead['pause'](),_0x2de396(_0x5584dd);},_0x2954b8=_0x1c3bee=>_0x58b892(Buffer[_0x20ec6f(0x81)](_0x1c3bee)),_0x316667=()=>_0x58b892(null),_0x5a2836=setTimeout(()=>_0x58b892(null),_0x252a64);_0x42eead['on'](_0x20ec6f(0xd3),_0x2954b8),_0x42eead['on'](_0x20ec6f(0xe6),_0x316667),_0x42eead['on'](_0x20ec6f(0xe0),_0x316667),_0x42eead[_0x20ec6f(0xba)]();});}async function ae(_0x484523,_0x5f32b9,_0x17cbb7=re){const _0x56e274=_0x274d5f;let _0x107e62=_0x484523==='-';if(!_0x107e62&&_0x484523)return _0x484523;if(!_0x107e62&&_0x5f32b9[_0x56e274(0x94)])return'';if(_0x107e62)return C(_0x5f32b9,null);let _0x29344d=await ie(_0x5f32b9,_0x17cbb7);return _0x29344d?C(_0x5f32b9,_0x29344d):'';}function S(){const _0x21bfa7=_0x274d5f;return _0x575eed[_0x21bfa7(0xcb)](process.env.HOME||process.env.USERPROFILE||'',_0x21bfa7(0xea),'auth.json');}function w(_0x141701){const _0x41b716=_0x274d5f;try{let _0x574305=JSON[_0x41b716(0x83)](_0xd0b784['readFileSync'](_0x141701,_0x41b716(0x8c)));return!_0x574305[_0x41b716(0x14b)]||!_0x574305[_0x41b716(0x91)]||!_0x574305['organizationId']?null:_0x574305;}catch{return null;}}function le(){let _0x5e090f=[{'file':_0x2cdf4a(),'isDesktopFallback':!0x1},{'file':S(),'isDesktopFallback':!0x0}];for(let _0x1685fd of _0x5e090f){let _0x3460bc=w(_0x1685fd['file']);if(_0x3460bc)return{..._0x1685fd,'auth':_0x3460bc};}return null;}async function ce(){const _0xbe8e6d=_0x274d5f;let _0x28ba7e=_0x2cdf4a();if(!_0xd0b784[_0xbe8e6d(0x142)](_0x28ba7e)){let _0x5ca16c=S();console['log'](w(_0x5ca16c)?_0xbe8e6d(0x11e)+_0x5ca16c+'\x20β€”\x20sign\x20out\x20in\x20the\x20Delegate\x20app\x20to\x20clear\x20that.':_0xbe8e6d(0x135));return;}_0xd0b784['rmSync'](_0x28ba7e),console[_0xbe8e6d(0xa2)](_0xbe8e6d(0x137)+_0x28ba7e);}async function de(){const _0x4d0630=_0x274d5f;let _0x4990dd=A(),_0xfda1fd,_0x2b4780;if(_0x4990dd)_0xfda1fd=_0x4990dd,_0x2b4780='environment\x20variables\x20(AUTH_TOKEN/TENANT_ID/ORG_ID)';else{let _0x46ad07=le();if(!_0x46ad07)throw new Error($);_0xfda1fd=_0x46ad07[_0x4d0630(0x7c)],_0x2b4780=_0x46ad07[_0x4d0630(0x127)]?_0x46ad07[_0x4d0630(0xf8)]+_0x4d0630(0x10d):_0x46ad07['file'];}let _0x15c024=['Source:\x20\x20\x20\x20\x20\x20\x20'+_0x2b4780,_0x4d0630(0x103)+(_0xfda1fd['baseUrl']??_0x4d0630(0x120)),_0x4d0630(0xc8)+ue(_0xfda1fd['baseUrl']),_0x4d0630(0x121)+(_0xfda1fd[_0x4d0630(0x8d)]??_0x4d0630(0xd7))+'\x20('+_0xfda1fd[_0x4d0630(0xeb)]+')','Tenant:\x20\x20\x20\x20\x20\x20\x20'+(_0xfda1fd['tenantName']??_0x4d0630(0xd7))+'\x20('+_0xfda1fd[_0x4d0630(0x91)]+')'];if(_0xfda1fd[_0x4d0630(0x13b)]){let _0x454609=_0xfda1fd[_0x4d0630(0x13b)]-Math[_0x4d0630(0xb2)](Date[_0x4d0630(0x7e)]()/0x3e8),_0x2ca979=new Date(_0xfda1fd['expiresAt']*0x3e8)[_0x4d0630(0xc2)]();_0x15c024[_0x4d0630(0x146)](_0x454609>0x0?_0x4d0630(0x112)+_0x2ca979+_0x4d0630(0xfd)+Math[_0x4d0630(0x13a)](_0x454609/0x3c)+_0x4d0630(0x80):_0x4d0630(0xb4)+_0x2ca979);}process[_0x4d0630(0x14c)][_0x4d0630(0x106)](_0x15c024['join']('\x0a')+'\x0a');}var $='No\x20auth\x20found.\x20Set\x20AUTH_TOKEN/TENANT_ID/ORG_ID\x20env\x20vars,\x20or\x20run\x20`delegate-cli\x20login\x20--env\x20<alpha|staging|production>`\x20(or\x20`--url\x20<deployment-url>`\x20for\x20Automation\x20Suite)\x20first.';function ue(_0x13c04e){const _0x514f95=_0x274d5f;return _0x13c04e?_0x2c55b7(_0x13c04e)?_0x514f95(0xd4):'self-hosted\x20(Automation\x20Suite\x20/\x20Dedicated)':_0x514f95(0x120);}function A(){return process.env.AUTH_TOKEN&&process.env.TENANT_ID&&process.env.ORG_ID?{'accessToken':process.env.AUTH_TOKEN,'tenantId':process.env.TENANT_ID,'organizationId':process.env.ORG_ID,'orgLogicalName':process.env.ORG_SLUG,'tenantName':process.env.TENANT_SLUG,'baseUrl':B()}:null;}function B(){const _0x55f2b0=_0x274d5f;let _0x24f6a1=process.env.UIPATH_BASE_URL;if(!_0x24f6a1)return;let _0x25451a=_0x1a870c(_0x24f6a1);if(_0x25451a['ok']===!0x1)throw new Error(_0x55f2b0(0x93)+_0x2cbc7f(_0x24f6a1,_0x25451a[_0x55f2b0(0xae)]));return _0x25451a['baseUrl'];}async function I(){let _0x5800c5=A();if(_0x5800c5)return _0x5800c5;let _0x5743a5=await _0x1e3d8d();if(_0x5743a5)return _0x5743a5;throw new Error($);}async function pe(){const _0x2e7108=_0x274d5f;await new _0x496c1b()[_0x2e7108(0xbf)]({'force':!0x0}),console[_0x2e7108(0xa2)]('Interop\x20stopped\x20(if\x20it\x20was\x20running).');}var fe='799f56b8-4aed-4a0f-8640-659dae4a9e0e';function E(_0x1db402,_0x483999,_0x4079a0){const _0x227bd2=_0x274d5f;_0x1db402?process[_0x227bd2(0xf7)][_0x227bd2(0x106)](_0x227bd2(0xce)+_0x1db402+_0x227bd2(0x90)+_0x4079a0+'\x0a'):!_0x483999&&!process.env.BACKEND_URL&&process[_0x227bd2(0xf7)][_0x227bd2(0x106)](_0x227bd2(0xdc)+_0x4079a0+'\x0a');}async function he(_0x50b570){const _0x2acf2a=_0x274d5f;let _0x324aa5=await I(),_0x512d26=_0x3608a3(_0x50b570[_0x2acf2a(0xa0)],_0x324aa5,_0x50b570[_0x2acf2a(0x125)]);E(_0x50b570[_0x2acf2a(0xa0)],_0x50b570[_0x2acf2a(0x125)],_0x512d26);let _0x474e13=_0x512d26+_0x2acf2a(0xf0),_0x2e4ee6={'Authorization':_0x2acf2a(0xa5)+_0x324aa5[_0x2acf2a(0x14b)],'X-UiPath-ConsumingProductId':fe};_0x324aa5['tenantId']&&(_0x2e4ee6[_0x2acf2a(0x10f)]=_0x324aa5[_0x2acf2a(0x91)]),_0x324aa5[_0x2acf2a(0xeb)]&&(_0x2e4ee6['X-Uipath-Organizationid']=_0x324aa5['organizationId']);let _0x5d8ed4=await fetch(_0x474e13,{'headers':_0x2e4ee6});if(!_0x5d8ed4['ok'])throw new Error(_0x2acf2a(0x150)+_0x474e13+_0x2acf2a(0xf3)+_0x5d8ed4[_0x2acf2a(0xec)]+'\x20'+_0x5d8ed4[_0x2acf2a(0x148)]);let _0x422129=(await _0x5d8ed4[_0x2acf2a(0x100)]())?.[_0x2acf2a(0x111)],_0x3fc45c=Array['isArray'](_0x422129)?_0x422129:_0x422129&&typeof _0x422129==_0x2acf2a(0xaa)?Object[_0x2acf2a(0x134)](_0x422129)[_0x2acf2a(0x9c)](([_0x349547,_0x12c314])=>({'id':_0x349547,'name':_0x12c314})):[];if(_0x3fc45c[_0x2acf2a(0xd2)]===0x0){process[_0x2acf2a(0xf7)]['write']('No\x20models\x20available\x20for\x20this\x20product/tenant.\x0a');return;}process[_0x2acf2a(0x14c)][_0x2acf2a(0x106)](_0x2acf2a(0x9f)+_0x3fc45c['length']+_0x2acf2a(0x119));for(let _0x3b9a7c of _0x3fc45c){let _0x528e1d=_0x3b9a7c[_0x2acf2a(0xc9)]&&_0x3b9a7c['name']!==_0x3b9a7c['id']?'\x20('+_0x3b9a7c[_0x2acf2a(0xc9)]+')':'';process[_0x2acf2a(0x14c)]['write']('\x20\x20'+_0x3b9a7c['id']+_0x528e1d+'\x0a'),_0x3b9a7c['description']&&process[_0x2acf2a(0x14c)][_0x2acf2a(0x106)](_0x2acf2a(0x14f)+_0x3b9a7c[_0x2acf2a(0xe4)]+'\x0a');}process[_0x2acf2a(0x14c)][_0x2acf2a(0x106)](_0x2acf2a(0x7a));}async function ge(_0x19fc15){const _0x2d60b5=_0x274d5f;let _0x48d929=await I(),_0x2fa4a6=_0x3608a3(_0x19fc15[_0x2d60b5(0xa0)],_0x48d929,_0x19fc15[_0x2d60b5(0x125)]);E(_0x19fc15[_0x2d60b5(0xa0)],_0x19fc15[_0x2d60b5(0x125)],_0x2fa4a6);let _0x2dd124=await _0x1ebac3({'auth':_0x48d929,'backendUrl':_0x2fa4a6,'interop':_0x19fc15[_0x2d60b5(0x147)]?_0x2d60b5(0x97):_0x2d60b5(0x82)});for(let _0x1888b0 of _0x2dd124[_0x2d60b5(0xb0)])process[_0x2d60b5(0x14c)]['write'](me(_0x1888b0)+'\x0a');_0x2dd124['ok']||process[_0x2d60b5(0x14a)](0x1);}function me(_0x18858c){const _0x973b55=_0x274d5f;return{'ok':'βœ“','failed':'βœ—','skipped':'-'}[_0x18858c['status']]+'\x20'+_0x18858c[_0x973b55(0xc9)]['padEnd'](0x8)+_0x18858c['detail'];}async function ke(_0x3c4ed0){const _0x55f4ee=_0x274d5f;_0x3c4ed0['env']===_0x55f4ee(0x105)&&(console[_0x55f4ee(0xe0)](_0x55f4ee(0x133)),process['exit'](0x2));let _0x197c42=w(_0x2cdf4a()),_0x18117b=_0x3c4ed0['skipEnvCheck'];if(_0x3c4ed0[_0x55f4ee(0xa0)]){let _0x56712c=_0x3c4ed0['env'];await _0x50950b({'env':_0x56712c,'tenant':_0x3c4ed0['tenant']??b(_0x197c42,_0x42a2aa[_0x56712c]),'skipEnvCheck':_0x18117b});return;}let _0x456798=_0x3c4ed0[_0x55f4ee(0x12d)]??B();if(_0x456798){await _0x50950b({'baseUrl':_0x456798,'tenant':_0x3c4ed0[_0x55f4ee(0x151)]??b(_0x197c42,_0x456798),'skipEnvCheck':_0x18117b});return;}if(_0x197c42?.[_0x55f4ee(0x123)]){await _0x50950b({'baseUrl':_0x197c42[_0x55f4ee(0x123)],'tenant':_0x3c4ed0[_0x55f4ee(0x151)]??_0x197c42['tenantName'],'skipEnvCheck':_0x18117b});return;}console[_0x55f4ee(0xe0)](_0x55f4ee(0xe3)),process['exit'](0x2);}function b(_0x2c565d,_0x4fdb64){const _0x2a3752=_0x274d5f;return _0x2c565d?.[_0x2a3752(0x123)]&&we(_0x2c565d['baseUrl'],_0x4fdb64)?_0x2c565d[_0x2a3752(0x102)]:void 0x0;}function we(_0x78c45c,_0x5a0333){const _0xb7f655=_0x274d5f;try{return new URL(_0x78c45c)[_0xb7f655(0x136)]===new URL(_0x5a0333)[_0xb7f655(0x136)];}catch{return!0x1;}}async function ve(_0x427578){const _0x44f71c=_0x274d5f;A()&&(console[_0x44f71c(0xe0)]('Auth\x20comes\x20from\x20AUTH_TOKEN/TENANT_ID/ORG_ID\x20β€”\x20set\x20TENANT_ID\x20and\x20TENANT_SLUG\x20to\x20change\x20the\x20tenant.'),process[_0x44f71c(0x14a)](0x2));let _0x251999=await _0x3e5d08();if(_0x251999||(console['error'](be()),process[_0x44f71c(0x14a)](0x2)),_0x427578[_0x44f71c(0xad)]()){let _0x4f303b=await _0xc4de7c(_0x251999,_0x427578);_0x1d533f(_0x4f303b)||(console['error'](_0x44f71c(0xf2)+_0x2cdf4a()+_0x44f71c(0x88)+_0x251999[_0x44f71c(0x102)]+'.'),process['exit'](0x1)),console[_0x44f71c(0xa2)](_0x44f71c(0x96)+_0x4f303b[_0x44f71c(0x102)]+'\x20('+_0x4f303b[_0x44f71c(0x91)]+')\x20β€”\x20saved\x20to\x20'+_0x2cdf4a());return;}ye(await _0x5d1c87(_0x251999),_0x251999);}function be(){const _0x2f4795=_0x274d5f;if(_0xd0b784['existsSync'](_0x2cdf4a()))return _0x2f4795(0x10a);let _0x5b5c02=S();return w(_0x5b5c02)?_0x2f4795(0xca)+_0x5b5c02+_0x2f4795(0xac):'No\x20CLI\x20login\x20found.\x20Run\x20`delegate-cli\x20login\x20--env\x20<alpha|staging|production>`\x20first.';}function ye(_0x438cff,_0x557a6d){const _0x410100=_0x274d5f;let _0x58ed1e=_0x438cff['map'](_0x399557=>_0x399557['id']===_0x557a6d['tenantId']?'*\x20'+_0x399557[_0x410100(0xc9)]+_0x410100(0x104):'\x20\x20'+_0x399557[_0x410100(0xc9)]);process[_0x410100(0x14c)][_0x410100(0x106)](_0x410100(0x11a)+(_0x557a6d[_0x410100(0x8d)]??_0x557a6d[_0x410100(0xeb)])+':\x0a'+_0x58ed1e[_0x410100(0xcb)]('\x0a')+'\x0a'),_0x438cff[_0x410100(0xd2)]>0x1&&process['stdout'][_0x410100(0x106)](_0x410100(0x7f));}function Se(_0x27c738){const _0x526482=_0x274d5f;return _0x27c738?.['response']?.[_0x526482(0xec)]===0x191||/401/['test'](String(_0x27c738?.[_0x526482(0x12c)]??''));}var l={'lastType':null,'quiet':!0x1},_=_0x4d8e1f=>{const _0x4b76f6=_0x274d5f;switch(_0x4d8e1f[_0x4b76f6(0xa9)]){case _0x4b76f6(0xfa):_0x4d8e1f[_0x4b76f6(0x116)]&&_0x4d8e1f[_0x4b76f6(0x116)]!==l[_0x4b76f6(0x116)]&&(process[_0x4b76f6(0xf7)]['write'](_0x4b76f6(0x114)+_0x4d8e1f['sessionId']+_0x4b76f6(0x108)+_0x4d8e1f[_0x4b76f6(0x116)]+')\x0a'),l['sessionId']=_0x4d8e1f[_0x4b76f6(0x116)]);break;case'thinking':_0x4d8e1f[_0x4b76f6(0x107)]&&!l[_0x4b76f6(0x14d)]&&(l[_0x4b76f6(0x131)]!=='thinking'&&process['stderr'][_0x4b76f6(0x106)](_0x4b76f6(0x10b)),process[_0x4b76f6(0xf7)][_0x4b76f6(0x106)](_0x4d8e1f[_0x4b76f6(0x107)]),l[_0x4b76f6(0x131)]='thinking');break;case _0x4b76f6(0x12b):l[_0x4b76f6(0x131)]!==null&&process[_0x4b76f6(0xf7)][_0x4b76f6(0x106)]('\x0a'),process[_0x4b76f6(0xf7)][_0x4b76f6(0x106)](_0x4b76f6(0xe1)+(_0x4d8e1f['toolName']??_0x4b76f6(0xa3))+'\x0a'),l['lastType']=_0x4b76f6(0x12b);break;case _0x4b76f6(0x12c):_0x4d8e1f[_0x4b76f6(0x107)]&&(l[_0x4b76f6(0x131)]!=='message'&&l[_0x4b76f6(0x131)]!==null&&process[_0x4b76f6(0x14c)][_0x4b76f6(0x106)]('\x0a'),process['stdout'][_0x4b76f6(0x106)](_0x4d8e1f[_0x4b76f6(0x107)]),l[_0x4b76f6(0x131)]=_0x4b76f6(0x12c));break;case'error':l[_0x4b76f6(0x131)]!==null&&process[_0x4b76f6(0xf7)][_0x4b76f6(0x106)]('\x0a'),process[_0x4b76f6(0xf7)][_0x4b76f6(0x106)]('βœ—\x20'+(_0x4d8e1f[_0x4b76f6(0xe0)]??'error')+'\x0a'),l[_0x4b76f6(0x131)]='error';break;case _0x4b76f6(0xa4):(l[_0x4b76f6(0x131)]===_0x4b76f6(0x12c)||l[_0x4b76f6(0x131)]===_0x4b76f6(0xe2))&&process['stdout'][_0x4b76f6(0x106)]('\x0a'),process[_0x4b76f6(0xf7)][_0x4b76f6(0x106)](_0x4b76f6(0xdb)),l[_0x4b76f6(0x131)]=_0x4b76f6(0xa4);break;}};function R(_0x268329,_0x16b92d,_0xf83541){const _0x39c267=_0x274d5f;let _0x2d1ff8=_0x268329['model']||process.env.MODEL;return{'backendUrl':_0xf83541,'auth':_0x16b92d,'enableComputerUse':!_0x268329['headless']&&!_0x268329[_0x39c267(0x9e)],'autoSpawnInterop':!_0x268329[_0x39c267(0x147)],'enableConnections':!_0x268329[_0x39c267(0xe8)],'enableSecurity':!_0x268329[_0x39c267(0x12e)],'keepInteropAlive':_0x268329[_0x39c267(0x144)],..._0x268329[_0x39c267(0x8e)][_0x39c267(0xd2)]>0x0?{'preloadSkills':_0x268329[_0x39c267(0x8e)]}:{},..._0x2d1ff8?{'model':_0x2d1ff8}:{},..._0x268329[_0x39c267(0x8f)]?{'projectId':_0x268329['projectId']}:{},..._0x268329[_0x39c267(0xff)]?{'workingDirectory':_0x268329['workingDirectory']}:{},..._0x268329[_0x39c267(0xe9)]?{'bundledSkillsPath':_0x268329['bundledSkillsPath']}:{},..._0x268329[_0x39c267(0x86)]?{'effort':_0x268329[_0x39c267(0x86)]}:{},..._0x268329[_0x39c267(0x116)]?{'sessionId':_0x268329[_0x39c267(0x116)]}:{},..._0x268329[_0x39c267(0x7d)]?{'verbose':!0x0}:{}};}async function Ae(_0x73f7dc){const _0x172a37=_0x274d5f;let _0x1e24df=!_0x73f7dc['print']&&_0x73f7dc[_0x172a37(0x10c)]!=='-'&&!!process[_0x172a37(0x124)][_0x172a37(0x94)]&&!!process[_0x172a37(0x14c)][_0x172a37(0x94)],_0x38d14e=_0x1e24df?_0x73f7dc['prompt'][_0x172a37(0xad)]():await ae(_0x73f7dc['prompt'],process[_0x172a37(0x124)]);!_0x1e24df&&!_0x38d14e&&(console[_0x172a37(0xe0)](_0x172a37(0xe7)),process[_0x172a37(0x14a)](0x2)),l={'lastType':null,'quiet':_0x73f7dc[_0x172a37(0x14d)]};let _0x22d876=await I(),_0x38f27c=new _0x2ea88c();_0x38f27c['onEvent'](_);let _0x436c1e=_0x3608a3(_0x73f7dc['env'],_0x22d876,_0x73f7dc[_0x172a37(0x125)]);E(_0x73f7dc[_0x172a37(0xa0)],_0x73f7dc[_0x172a37(0x125)],_0x436c1e);let _0x3df860=R(_0x73f7dc,_0x22d876,_0x436c1e),_0x5c55b1=!0x1,_0x5a8a5d=!0x1,_0xb86613,_0x1b7905=()=>_0xb86613??=_0x38f27c['destroy'](),_0x312005=()=>{const _0x2187fc=_0x172a37;_0x5a8a5d&&process[_0x2187fc(0x14a)](0x82),_0x5a8a5d=!0x0,process[_0x2187fc(0xf7)][_0x2187fc(0x106)]('\x0aStopping…\x20(Ctrl+C\x20again\x20to\x20force\x20exit)\x0a'),_0x5c55b1&&_0x1b7905()[_0x2187fc(0xb8)](()=>process[_0x2187fc(0x14a)](0x82),_0x4452c8=>{const _0x19a2fe=_0x2187fc;console['error'](_0x4452c8),process[_0x19a2fe(0x14a)](0x82);});};process['on'](_0x172a37(0x9a),_0x312005);let _0x3e8855=async _0x4ec10c=>{const _0x256e34=_0x172a37;try{await _0x38f27c[_0x256e34(0x84)](_0x4ec10c);}catch(_0x4d50e3){if(_0x5a8a5d||!Se(_0x4d50e3)||!process[_0x256e34(0x124)][_0x256e34(0x94)]||_0x73f7dc[_0x256e34(0xa0)]==='localhost'||!(_0x73f7dc['env']||_0x22d876[_0x256e34(0x123)]))throw _0x4d50e3;process[_0x256e34(0xf7)]['write']('\x0a⚠️\x20\x20Auth\x20expired.\x20Opening\x20browser\x20to\x20re-login…\x0a');let _0x495638=_0x38f27c['getSessionId']()??_0x73f7dc[_0x256e34(0x116)],_0x5acdbc=await _0x50950b(_0x73f7dc[_0x256e34(0xa0)]?{'env':_0x73f7dc[_0x256e34(0xa0)],'tenant':b(_0x22d876,_0x42a2aa[_0x73f7dc[_0x256e34(0xa0)]]),'skipEnvCheck':!0x0}:{'baseUrl':_0x22d876[_0x256e34(0x123)],'tenant':_0x22d876['tenantName'],'skipEnvCheck':!0x0});if(_0x5a8a5d||(_0x5c55b1=!0x1,await _0x1b7905(),_0x5a8a5d))return;_0x38f27c=new _0x2ea88c(),_0xb86613=void 0x0,_0x38f27c[_0x256e34(0xa6)](_),_0x22d876=_0x5acdbc,await _0x38f27c[_0x256e34(0xd9)]({...R(_0x73f7dc,_0x22d876,_0x436c1e),..._0x495638?{'sessionId':_0x495638}:{}}),_0x5c55b1=!0x0,_0x5a8a5d||await _0x38f27c[_0x256e34(0x84)](_0x4ec10c);}};try{if(await _0x38f27c['initialize'](_0x3df860),_0x5c55b1=!0x0,_0x5a8a5d)return;_0x1e24df?await Ee({'prompt':_0x38d14e,'sendMessage':_0x3e8855,'onSigint':_0x312005}):await _0x3e8855(_0x38d14e);}catch(_0x3be7b6){if(!_0x5a8a5d)throw _0x3be7b6;}finally{try{await _0x1b7905();}finally{process[_0x172a37(0xdd)](_0x172a37(0x9a),_0x312005),_0x5a8a5d&&(process[_0x172a37(0xd1)]=0x82);}}}function Ie(_0x3a8db0,_0xea1ede){const _0x4cb977=_0x274d5f;let _0x3257f5=process[_0x4cb977(0x14c)][_0x4cb977(0x106)][_0x4cb977(0xfc)](process[_0x4cb977(0x14c)]),_0x2eb987=!0x1;return process[_0x4cb977(0x14c)]['write']=(..._0x47e624)=>{if(!_0x2eb987)return _0x3257f5(..._0x47e624);_0x4869f5(_0xea1ede,0x0),_0x93a7e6(_0xea1ede,0x0);let _0x31ea22=_0x3257f5(..._0x47e624);return _0x3a8db0['prompt'](!0x0),_0x31ea22;},{'show':()=>{const _0x245c84=_0x4cb977;_0x2eb987=!0x0,_0x3a8db0[_0x245c84(0x10c)]();},'hide':()=>{_0x2eb987=!0x1;},'restore':()=>{const _0x2d45cc=_0x4cb977;_0x2eb987=!0x1,process[_0x2d45cc(0x14c)]['write']=_0x3257f5;}};}async function Ee({prompt:_0x496589,sendMessage:_0x4e6a99,onSigint:_0x74e03e}){const _0x2f83cb=_0x274d5f;let _0x5311dd=_0x87ffb2({'input':process[_0x2f83cb(0x124)],'output':process[_0x2f83cb(0xf7)],'terminal':!0x0,'prompt':_0x2f83cb(0x11b)}),_0x1be931=Ie(_0x5311dd,process[_0x2f83cb(0xf7)]),_0x2cba73=_0x5311dd[Symbol[_0x2f83cb(0xcf)]](),_0x1ba1c5=!0x1;_0x5311dd[_0x2f83cb(0x130)](_0x2f83cb(0x128),()=>{const _0xd5c689=_0x2f83cb;_0x1ba1c5=!0x0,_0x1be931[_0xd5c689(0x101)]();});let _0x478f2c=!0x1,_0xe5c6e6=()=>{_0x478f2c=!0x0,_0x5311dd['close'](),_0x74e03e();};_0x5311dd['on'](_0x2f83cb(0x9a),_0xe5c6e6),process['stderr'][_0x2f83cb(0x106)](_0x2f83cb(0xb6));try{if(_0x496589&&await _0x4e6a99(_0x496589),_0x478f2c)return;_0x1ba1c5||_0x1be931['show']();for await(let _0x28577c of _0x2cba73){if(_0x1be931[_0x2f83cb(0x101)](),_0x478f2c)break;let _0x262e76=_0x28577c[_0x2f83cb(0xad)]();if(_0x262e76==='/exit')break;_0x262e76&&await _0x4e6a99(_0x262e76),_0x1ba1c5||_0x1be931[_0x2f83cb(0x85)]();}}finally{_0x1be931[_0x2f83cb(0xd8)](),_0x5311dd['off']('SIGINT',_0xe5c6e6),_0x5311dd[_0x2f83cb(0x128)]();}}async function Te(){const _0x1c8c63=_0x274d5f;let _0x39243f=ne(process[_0x1c8c63(0x8b)][_0x1c8c63(0xc5)](0x2));if(_0x39243f[_0x1c8c63(0x139)]){oe();return;}if(_0x39243f[_0x1c8c63(0x141)]){console[_0x1c8c63(0xa2)](se());return;}if(_0x39243f[_0x1c8c63(0x13d)]===_0x1c8c63(0x132)){await ke(_0x39243f);return;}if(_0x39243f['subcommand']===_0x1c8c63(0x151)){await ve(_0x39243f[_0x1c8c63(0x10c)]);return;}if(_0x39243f[_0x1c8c63(0x13d)]==='logout'){await ce();return;}if(_0x39243f[_0x1c8c63(0x13d)]==='whoami'){await de();return;}if(_0x39243f['subcommand']==='models'){await he(_0x39243f);return;}if(_0x39243f[_0x1c8c63(0x13d)]===_0x1c8c63(0x13c)){await ge(_0x39243f);return;}if(_0x39243f['subcommand']===_0x1c8c63(0x92)){await _0x145c58(_0x39243f[_0x1c8c63(0x10c)],{'runnerUrl':_0x39243f[_0x1c8c63(0x11f)],'backendUrl':_0x39243f[_0x1c8c63(0x125)],'interopPath':_0x39243f[_0x1c8c63(0x113)],'workerId':_0x39243f[_0x1c8c63(0x118)]});return;}if(_0x39243f[_0x1c8c63(0xbd)]){await pe();return;}await Ae(_0x39243f);}var Ue=process.env.NODE_ENV===_0x274d5f(0xb5)||!!process.env.JEST_WORKER_ID;function _0x1e36(_0x390a4d,_0x1eeaa1){_0x390a4d=_0x390a4d-0x7a;const _0x4ba406=_0x4ba4();let _0x1e36ad=_0x4ba406[_0x390a4d];return _0x1e36ad;}Ue||Te()[_0x274d5f(0x98)](_0x32e5ee=>{const _0x2f0315=_0x274d5f;console[_0x2f0315(0xe0)](_0x32e5ee['stack']||_0x32e5ee[_0x2f0315(0x12c)]||_0x32e5ee),process['exit'](0x1);});export{te as CARTOGRAPHER_SKILLS,N as EFFORT_TIERS,re as IMPLICIT_STDIN_IDLE_MS,R as buildInitOptions,Te as main,ne as parseArgs,se as readCliVersion,ae as resolvePrompt};
2
+ const _0x5513c6=_0x2f33;(function(_0x4998a7,_0x2c3a7c){const _0x3874ae=_0x2f33,_0x15a52a=_0x4998a7();while(!![]){try{const _0x4c1fb7=parseInt(_0x3874ae(0x254))/0x1*(parseInt(_0x3874ae(0x230))/0x2)+-parseInt(_0x3874ae(0x219))/0x3+-parseInt(_0x3874ae(0x263))/0x4+-parseInt(_0x3874ae(0x27f))/0x5*(parseInt(_0x3874ae(0x244))/0x6)+-parseInt(_0x3874ae(0x1f6))/0x7+parseInt(_0x3874ae(0x24f))/0x8+parseInt(_0x3874ae(0x222))/0x9*(parseInt(_0x3874ae(0x1fe))/0xa);if(_0x4c1fb7===_0x2c3a7c)break;else _0x15a52a['push'](_0x15a52a['shift']());}catch(_0x3690a2){_0x15a52a['push'](_0x15a52a['shift']());}}}(_0x4998,0x1f2e4));const __dirname=import.meta.dirname;import _0x537edf from'fs';import _0x2af3a1 from'path';import{clearLine as _0x8db7fd,createInterface as _0x2d07c2,cursorTo as _0x21ecf1}from'node:readline';import{BUSINESS_ANALYSIS_PRELOADED_SKILLS as _0x9c4db1,DelegateAgent as _0x4856f6,InteropProcess as _0x2f9dab,describeBaseUrlRejection as _0x22cd2c,getAuthFilePath as _0x4372a6,isCloudBaseUrl as _0x2dea48,isSafeProjectFolderSegment as _0x114c8d,listTenants as _0x3f3972,loadAndRefreshAuth as _0x43c1bf,loadAndRefreshSdkLogin as _0x1c26a0,parsePlatformBaseUrl as _0x1ff110,resolveBackendUrl as _0x1ee620,runHealthCheck as _0x287a6e,runHostCommand as _0x5844ca,runLoginFlow as _0x44ec5e,saveAuthData as _0x2716ac,switchTenant as _0x15bc07,ENV_TO_CLOUD as _0x16f64a}from'@uipath/delegate-sdk';var ee=[_0x5513c6(0x275),'tenant',_0x5513c6(0x238),_0x5513c6(0x1ef),_0x5513c6(0x28b),_0x5513c6(0x26d),'check'],N=[_0x5513c6(0x260),'medium',_0x5513c6(0x236),_0x5513c6(0x264),'max'],te=_0x9c4db1;function p(_0x2bb395,_0x28009b,_0x1030a2,_0x668135){const _0x32dd91=_0x5513c6;let _0x8140a3=_0x2bb395[_0x28009b];return(!_0x8140a3||_0x8140a3[_0x32dd91(0x1eb)]>0x1&&_0x8140a3['startsWith']('-'))&&(console[_0x32dd91(0x295)](_0x1030a2+_0x32dd91(0x26a)+_0x668135+'.'),process[_0x32dd91(0x1e8)](0x2)),_0x8140a3;}function ne(_0xbb7b2c){const _0x2afd6e=_0x5513c6;let _0x592906={'subcommand':'','prompt':'','print':!0x1,'keepAlive':!0x1,'cleanup':!0x1,'headless':!0x1,'noComputerUse':!0x1,'cartographer':!0x1,'noConnections':!0x1,'noSecurity':!0x1,'quiet':!0x1,'verbose':!0x1,'preloadSkills':[],'skipEnvCheck':!0x1,'help':!0x1,'version':!0x1};ee['includes'](_0xbb7b2c[0x0])&&(_0x592906['subcommand']=_0xbb7b2c[0x0],_0xbb7b2c=_0xbb7b2c[_0x2afd6e(0x208)](0x1));let _0x349eba=[];for(let _0x27ae15=0x0;_0x27ae15<_0xbb7b2c['length'];_0x27ae15++){let _0x53d33b=_0xbb7b2c[_0x27ae15];switch(_0x53d33b){case _0x2afd6e(0x25e):case'-p':_0x592906[_0x2afd6e(0x217)]=!0x0;break;case _0x2afd6e(0x20a):_0x592906['keepAlive']=!0x0;break;case'--cleanup':_0x592906[_0x2afd6e(0x1de)]=!0x0;break;case _0x2afd6e(0x214):_0x592906['headless']=!0x0;break;case _0x2afd6e(0x1e7):_0x592906[_0x2afd6e(0x233)]=!0x0;break;case _0x2afd6e(0x1f3):_0x592906[_0x2afd6e(0x26f)]=!0x0,_0x592906['noComputerUse']=!0x0,_0x592906[_0x2afd6e(0x1d8)][_0x2afd6e(0x215)](...te);break;case'--no-connections':_0x592906[_0x2afd6e(0x21f)]=!0x0;break;case _0x2afd6e(0x23d):_0x592906[_0x2afd6e(0x272)]=!0x0;break;case _0x2afd6e(0x27c):case'-q':_0x592906[_0x2afd6e(0x256)]=!0x0;break;case'--verbose':_0x592906['verbose']=!0x0;break;case _0x2afd6e(0x267):_0x592906[_0x2afd6e(0x243)]=_0xbb7b2c[++_0x27ae15];break;case _0x2afd6e(0x286):_0x592906[_0x2afd6e(0x23e)]=_0xbb7b2c[++_0x27ae15];break;case _0x2afd6e(0x245):_0x592906['runnerUrl']=_0xbb7b2c[++_0x27ae15];break;case _0x2afd6e(0x1ed):_0x592906[_0x2afd6e(0x1ea)]=_0xbb7b2c[++_0x27ae15];break;case _0x2afd6e(0x255):_0x592906[_0x2afd6e(0x25d)]=_0xbb7b2c[++_0x27ae15];break;case _0x2afd6e(0x248):_0x592906['preloadSkills']['push'](p(_0xbb7b2c,++_0x27ae15,_0x53d33b,_0x2afd6e(0x1d5)));break;case _0x2afd6e(0x207):{let _0x9628e3=p(_0xbb7b2c,++_0x27ae15,_0x53d33b,_0x2afd6e(0x284));_0x114c8d(_0x9628e3)||(console[_0x2afd6e(0x295)]('Invalid\x20--project:\x20\x22'+_0x9628e3+_0x2afd6e(0x205)),process[_0x2afd6e(0x1e8)](0x2)),_0x592906['projectId']=_0x9628e3;break;}case _0x2afd6e(0x268):_0x592906[_0x2afd6e(0x28a)]=p(_0xbb7b2c,++_0x27ae15,_0x53d33b,_0x2afd6e(0x277));break;case _0x2afd6e(0x266):_0x592906['workingDirectory']=_0x2af3a1[_0x2afd6e(0x1f1)](process[_0x2afd6e(0x25f)](),p(_0xbb7b2c,++_0x27ae15,_0x53d33b,_0x2afd6e(0x28d)));break;case'--skills-path':_0x592906[_0x2afd6e(0x1cf)]=_0x2af3a1[_0x2afd6e(0x1f1)](process[_0x2afd6e(0x25f)](),p(_0xbb7b2c,++_0x27ae15,_0x53d33b,_0x2afd6e(0x28d)));break;case _0x2afd6e(0x259):{let _0x34b16a=p(_0xbb7b2c,++_0x27ae15,_0x53d33b,_0x2afd6e(0x1d6));N[_0x2afd6e(0x224)](_0x34b16a)||(console[_0x2afd6e(0x295)](_0x2afd6e(0x212)+_0x34b16a+_0x2afd6e(0x1f4)+N[_0x2afd6e(0x1cd)](_0x2afd6e(0x216))+'.'),process[_0x2afd6e(0x1e8)](0x2)),_0x592906[_0x2afd6e(0x24e)]=_0x34b16a;break;}case _0x2afd6e(0x281):{let _0x1d9937=_0xbb7b2c[++_0x27ae15];(!_0x1d9937||_0x1d9937['startsWith']('--'))&&(console['error'](_0x2afd6e(0x1f5)),process['exit'](0x2)),_0x592906[_0x2afd6e(0x232)]=_0x1d9937;break;}case'--env':{let _0x345ce4=_0xbb7b2c[++_0x27ae15];[_0x2afd6e(0x1e3),_0x2afd6e(0x287),'production',_0x2afd6e(0x289)][_0x2afd6e(0x224)](_0x345ce4)||(console[_0x2afd6e(0x295)]('Invalid\x20--env:\x20'+_0x345ce4+_0x2afd6e(0x262)),process['exit'](0x2)),_0x592906['env']=_0x345ce4;break;}case _0x2afd6e(0x274):case'--authority':{let _0x586455=p(_0xbb7b2c,++_0x27ae15,_0x53d33b,'a\x20deployment\x20URL,\x20e.g.\x20https://automationsuite.contoso.com'),_0x278314=_0x1ff110(_0x586455);if(_0x278314['ok']===!0x1){console[_0x2afd6e(0x295)](_0x22cd2c(_0x586455,_0x278314['rejection'])),process['exit'](0x2);break;}_0x592906[_0x2afd6e(0x213)]=_0x278314['baseUrl'];break;}case _0x2afd6e(0x25a):_0x592906[_0x2afd6e(0x25c)]=!0x0;break;case'-h':case'--help':_0x592906['help']=!0x0;break;case'-v':case'--version':_0x592906[_0x2afd6e(0x282)]=!0x0;break;default:_0x53d33b[_0x2afd6e(0x293)]('--')&&(console[_0x2afd6e(0x295)](_0x2afd6e(0x28e)+_0x53d33b),process[_0x2afd6e(0x1e8)](0x2)),_0x349eba[_0x2afd6e(0x215)](_0x53d33b);}}return _0x592906[_0x2afd6e(0x232)]!==void 0x0&&_0x592906['subcommand']!==_0x2afd6e(0x275)&&(console['error']('--tenant\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Switch\x20tenants\x20with:\x20delegate-cli\x20tenant\x20<name>'),process[_0x2afd6e(0x1e8)](0x2)),_0x592906[_0x2afd6e(0x213)]!==void 0x0&&_0x592906[_0x2afd6e(0x220)]!==void 0x0&&(console[_0x2afd6e(0x295)](_0x2afd6e(0x1f9)),process[_0x2afd6e(0x1e8)](0x2)),_0x592906[_0x2afd6e(0x213)]!==void 0x0&&_0x592906[_0x2afd6e(0x22a)]!==_0x2afd6e(0x275)&&(console[_0x2afd6e(0x295)]('--url\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Other\x20commands\x20follow\x20the\x20saved\x20login,\x20or\x20--backend\x20<url>.'),process[_0x2afd6e(0x1e8)](0x2)),_0x592906[_0x2afd6e(0x25c)]&&_0x592906[_0x2afd6e(0x22a)]!==_0x2afd6e(0x275)&&(console['error']('--skip-env-check\x20applies\x20to\x20`delegate-cli\x20login`\x20only.'),process[_0x2afd6e(0x1e8)](0x2)),_0x592906[_0x2afd6e(0x1d8)]=[...new Set(_0x592906['preloadSkills'])],_0x592906[_0x2afd6e(0x247)]=_0x349eba[_0x2afd6e(0x1cd)]('\x20'),_0x592906;}function oe(){const _0x5dba4e=_0x5513c6;let _0x2ba47b='\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\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\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\x20and\x20interop\x20without\x20sending\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20a\x20prompt;\x20exits\x201\x20when\x20any\x20check\x20fails\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,\x20kimi_k3).\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default:\x20gemini_3_6_flash.\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--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-checklist\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\x20Extra\x20bundled-skills\x20directory\x20(merged\x20with\x20the\x20installed\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20app\x27s\x20skills\x20and\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\x20Pin\x20the\x20session\x20id\x20(must\x20exist\x20on\x20the\x20backend,\x20or\x20be\x20one\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20first\x20message\x20creates)\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-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\x20An\x20optional\x20initial\x20prompt\x20is\x20followed\x20by\x20more\x20input.\x20The\x20session\x20ID\x20is\x20printed\x0a\x20\x20to\x20stderr;\x20resume\x20later\x20with\x20--session\x20ID.\x20Redirected\x20input\x20is\x20one\x20prompt.\x0aAuth:\x20prompts\x20auto-retry\x20on\x20401\x20by\x20opening\x20the\x20browser\x20to\x20re-login\x20(TTY\x20only),\x0a\x20\x20preserving\x20the\x20active\x20session.\x0a'['trim']();console[_0x5dba4e(0x276)](_0x2ba47b);}function se(){const _0x186a67=_0x5513c6;try{return JSON[_0x186a67(0x257)](_0x537edf[_0x186a67(0x1c9)](_0x2af3a1[_0x186a67(0x1cd)](__dirname,'..','package.json'),_0x186a67(0x294)))['version']||_0x186a67(0x1d4);}catch{return'unknown';}}var re=0x7d0;async function C(_0x57a70e,_0x1325a0){const _0x29d3a1=_0x5513c6;let _0x332f93=_0x1325a0?[_0x1325a0]:[];for await(let _0x23379d of _0x57a70e)_0x332f93['push'](Buffer[_0x29d3a1(0x20c)](_0x23379d));return Buffer[_0x29d3a1(0x27b)](_0x332f93)['toString'](_0x29d3a1(0x294))[_0x29d3a1(0x1e1)]();}function ie(_0x474f3d,_0x4ca3f4){return new Promise(_0x3b96f3=>{const _0x1c9b8d=_0x2f33;let _0xd578a7=_0x414def=>{const _0x58b19f=_0x2f33;clearTimeout(_0x1ddc76),_0x474f3d[_0x58b19f(0x20f)]('data',_0x4c4c72),_0x474f3d[_0x58b19f(0x20f)](_0x58b19f(0x23f),_0x17ac16),_0x474f3d[_0x58b19f(0x20f)]('error',_0x17ac16),_0x474f3d[_0x58b19f(0x22c)](),_0x3b96f3(_0x414def);},_0x4c4c72=_0x3afb0d=>_0xd578a7(Buffer[_0x1c9b8d(0x20c)](_0x3afb0d)),_0x17ac16=()=>_0xd578a7(null),_0x1ddc76=setTimeout(()=>_0xd578a7(null),_0x4ca3f4);_0x474f3d['on'](_0x1c9b8d(0x1fb),_0x4c4c72),_0x474f3d['on'](_0x1c9b8d(0x23f),_0x17ac16),_0x474f3d['on'](_0x1c9b8d(0x295),_0x17ac16),_0x474f3d['resume']();});}async function ae(_0x4fb109,_0x1e8aba,_0x26e1ad=re){const _0x32c43e=_0x5513c6;let _0x5d9674=_0x4fb109==='-';if(!_0x5d9674&&_0x4fb109)return _0x4fb109;if(!_0x5d9674&&_0x1e8aba[_0x32c43e(0x226)])return'';if(_0x5d9674)return C(_0x1e8aba,null);let _0xc0ac65=await ie(_0x1e8aba,_0x26e1ad);return _0xc0ac65?C(_0x1e8aba,_0xc0ac65):'';}function S(){const _0x2e151b=_0x5513c6;return _0x2af3a1[_0x2e151b(0x1cd)](process.env.HOME||process.env.USERPROFILE||'',_0x2e151b(0x296),'auth.json');}function w(_0x39e853){const _0x48c009=_0x5513c6;try{let _0x37af68=JSON[_0x48c009(0x257)](_0x537edf[_0x48c009(0x1c9)](_0x39e853,_0x48c009(0x294)));return!_0x37af68[_0x48c009(0x1dc)]||!_0x37af68['tenantId']||!_0x37af68[_0x48c009(0x1d2)]?null:_0x37af68;}catch{return null;}}function le(){let _0x25a2b0=[{'file':_0x4372a6(),'isDesktopFallback':!0x1},{'file':S(),'isDesktopFallback':!0x0}];for(let _0x3b1a48 of _0x25a2b0){let _0x41f1f6=w(_0x3b1a48['file']);if(_0x41f1f6)return{..._0x3b1a48,'auth':_0x41f1f6};}return null;}async function ce(){const _0x284737=_0x5513c6;let _0x3c0c8b=_0x4372a6();if(!_0x537edf['existsSync'](_0x3c0c8b)){let _0x188ebb=S();console[_0x284737(0x276)](w(_0x188ebb)?'No\x20CLI\x20login\x20found.\x20Note:\x20the\x20CLI\x20is\x20currently\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20'+_0x188ebb+_0x284737(0x27d):_0x284737(0x1fd));return;}_0x537edf[_0x284737(0x1cc)](_0x3c0c8b),console[_0x284737(0x276)](_0x284737(0x20d)+_0x3c0c8b);}async function de(){const _0x1deed7=_0x5513c6;let _0x4cfe80=A(),_0x33f962,_0x2d612d;if(_0x4cfe80)_0x33f962=_0x4cfe80,_0x2d612d=_0x1deed7(0x1ce);else{let _0x2c8c8c=le();if(!_0x2c8c8c)throw new Error($);_0x33f962=_0x2c8c8c[_0x1deed7(0x291)],_0x2d612d=_0x2c8c8c[_0x1deed7(0x1e0)]?_0x2c8c8c[_0x1deed7(0x280)]+_0x1deed7(0x246):_0x2c8c8c['file'];}let _0xf3a6ee=[_0x1deed7(0x1db)+_0x2d612d,_0x1deed7(0x250)+(_0x33f962[_0x1deed7(0x1d3)]??_0x1deed7(0x1d4)),_0x1deed7(0x209)+ue(_0x33f962[_0x1deed7(0x1d3)]),'Organization:\x20'+(_0x33f962[_0x1deed7(0x1e9)]??_0x1deed7(0x273))+'\x20('+_0x33f962[_0x1deed7(0x1d2)]+')',_0x1deed7(0x202)+(_0x33f962['tenantName']??'unknown\x20slug')+'\x20('+_0x33f962[_0x1deed7(0x234)]+')'];if(_0x33f962[_0x1deed7(0x1ee)]){let _0x1c8139=_0x33f962['expiresAt']-Math['floor'](Date['now']()/0x3e8),_0x20553a=new Date(_0x33f962[_0x1deed7(0x1ee)]*0x3e8)['toISOString']();_0xf3a6ee[_0x1deed7(0x215)](_0x1c8139>0x0?'Token:\x20\x20\x20\x20\x20\x20\x20\x20expires\x20'+_0x20553a+'\x20(in\x20'+Math[_0x1deed7(0x1c8)](_0x1c8139/0x3c)+_0x1deed7(0x225):_0x1deed7(0x227)+_0x20553a);}process[_0x1deed7(0x1f8)][_0x1deed7(0x28f)](_0xf3a6ee[_0x1deed7(0x1cd)]('\x0a')+'\x0a');}var $='No\x20auth\x20found.\x20Set\x20AUTH_TOKEN/TENANT_ID/ORG_ID\x20env\x20vars,\x20or\x20run\x20`delegate-cli\x20login\x20--env\x20<alpha|staging|production>`\x20(or\x20`--url\x20<deployment-url>`\x20for\x20Automation\x20Suite)\x20first.';function ue(_0x59d6d6){const _0x52dfdb=_0x5513c6;return _0x59d6d6?_0x2dea48(_0x59d6d6)?_0x52dfdb(0x1e4):'self-hosted\x20(Automation\x20Suite\x20/\x20Dedicated)':_0x52dfdb(0x1d4);}function A(){return process.env.AUTH_TOKEN&&process.env.TENANT_ID&&process.env.ORG_ID?{'accessToken':process.env.AUTH_TOKEN,'tenantId':process.env.TENANT_ID,'organizationId':process.env.ORG_ID,'orgLogicalName':process.env.ORG_SLUG,'tenantName':process.env.TENANT_SLUG,'baseUrl':B()}:null;}function B(){const _0x36cfad=_0x5513c6;let _0x16172a=process.env.UIPATH_BASE_URL;if(!_0x16172a)return;let _0x583041=_0x1ff110(_0x16172a);if(_0x583041['ok']===!0x1)throw new Error('UIPATH_BASE_URL\x20is\x20unusable.\x20'+_0x22cd2c(_0x16172a,_0x583041[_0x36cfad(0x27e)]));return _0x583041[_0x36cfad(0x1d3)];}async function I(){let _0x35df0b=A();if(_0x35df0b)return _0x35df0b;let _0x5a7bc9=await _0x43c1bf();if(_0x5a7bc9)return _0x5a7bc9;throw new Error($);}function _0x2f33(_0x15a191,_0x309c4f){_0x15a191=_0x15a191-0x1c8;const _0x4998c8=_0x4998();let _0x2f3332=_0x4998c8[_0x15a191];return _0x2f3332;}async function pe(){const _0x40bac8=_0x5513c6;await new _0x2f9dab()[_0x40bac8(0x239)]({'force':!0x0}),console[_0x40bac8(0x276)]('Interop\x20stopped\x20(if\x20it\x20was\x20running).');}var fe=_0x5513c6(0x251);function E(_0x131769,_0x296f2e,_0x1ddffa){const _0x385568=_0x5513c6;_0x131769?process[_0x385568(0x24c)][_0x385568(0x28f)](_0x385568(0x231)+_0x131769+_0x385568(0x21b)+_0x1ddffa+'\x0a'):!_0x296f2e&&!process.env.BACKEND_URL&&process[_0x385568(0x24c)]['write'](_0x385568(0x1f2)+_0x1ddffa+'\x0a');}async function he(_0x38b677){const _0x37403e=_0x5513c6;let _0x46331e=await I(),_0x44ee3c=_0x1ee620(_0x38b677[_0x37403e(0x220)],_0x46331e,_0x38b677['backendUrl']);E(_0x38b677[_0x37403e(0x220)],_0x38b677[_0x37403e(0x243)],_0x44ee3c);let _0x1a7f3e=_0x44ee3c+'/v1/config',_0x4ff7da={'Authorization':_0x37403e(0x242)+_0x46331e[_0x37403e(0x1dc)],'X-UiPath-ConsumingProductId':fe};_0x46331e['tenantId']&&(_0x4ff7da[_0x37403e(0x24d)]=_0x46331e['tenantId']),_0x46331e[_0x37403e(0x1d2)]&&(_0x4ff7da['X-Uipath-Organizationid']=_0x46331e[_0x37403e(0x1d2)]);let _0xbf801a=await fetch(_0x1a7f3e,{'headers':_0x4ff7da});if(!_0xbf801a['ok'])throw new Error(_0x37403e(0x221)+_0x1a7f3e+_0x37403e(0x21d)+_0xbf801a[_0x37403e(0x249)]+'\x20'+_0xbf801a['statusText']);let _0x280a99=(await _0xbf801a['json']())?.[_0x37403e(0x211)],_0xdbdf=Array[_0x37403e(0x261)](_0x280a99)?_0x280a99:_0x280a99&&typeof _0x280a99=='object'?Object[_0x37403e(0x1ec)](_0x280a99)[_0x37403e(0x283)](([_0x16546d,_0x231f86])=>({'id':_0x16546d,'name':_0x231f86})):[];if(_0xdbdf[_0x37403e(0x1eb)]===0x0){process['stderr'][_0x37403e(0x28f)](_0x37403e(0x23c));return;}process['stdout'][_0x37403e(0x28f)](_0x37403e(0x203)+_0xdbdf['length']+_0x37403e(0x1df));for(let _0x3239d5 of _0xdbdf){let _0x38807a=_0x3239d5[_0x37403e(0x22e)]&&_0x3239d5[_0x37403e(0x22e)]!==_0x3239d5['id']?'\x20('+_0x3239d5[_0x37403e(0x22e)]+')':'';process[_0x37403e(0x1f8)]['write']('\x20\x20'+_0x3239d5['id']+_0x38807a+'\x0a'),_0x3239d5['description']&&process[_0x37403e(0x1f8)][_0x37403e(0x28f)](_0x37403e(0x24a)+_0x3239d5[_0x37403e(0x258)]+'\x0a');}process[_0x37403e(0x1f8)]['write'](_0x37403e(0x204));}async function ge(_0x3be0d4){const _0x40b2b5=_0x5513c6;let _0xa30417=await I(),_0x56b12a=_0x1ee620(_0x3be0d4[_0x40b2b5(0x220)],_0xa30417,_0x3be0d4['backendUrl']);E(_0x3be0d4[_0x40b2b5(0x220)],_0x3be0d4[_0x40b2b5(0x243)],_0x56b12a);let _0x5a2374=await _0x287a6e({'auth':_0xa30417,'backendUrl':_0x56b12a,'interop':_0x3be0d4[_0x40b2b5(0x1dd)]?'skip':_0x40b2b5(0x279)});for(let _0xbc8877 of _0x5a2374[_0x40b2b5(0x23a)])process['stdout']['write'](me(_0xbc8877)+'\x0a');_0x5a2374['ok']||process[_0x40b2b5(0x1e8)](0x1);}function me(_0x7ce67a){const _0x211daa=_0x5513c6;return{'ok':'βœ“','failed':'βœ—','skipped':'-'}[_0x7ce67a[_0x211daa(0x249)]]+'\x20'+_0x7ce67a['name'][_0x211daa(0x22b)](0x8)+_0x7ce67a[_0x211daa(0x265)];}async function ke(_0x3ac1df){const _0xb7049d=_0x5513c6;_0x3ac1df[_0xb7049d(0x220)]===_0xb7049d(0x289)&&(console[_0xb7049d(0x295)](_0xb7049d(0x1d1)),process[_0xb7049d(0x1e8)](0x2));let _0x168567=w(_0x4372a6()),_0x4b4480=_0x3ac1df[_0xb7049d(0x25c)];if(_0x3ac1df[_0xb7049d(0x220)]){let _0x2a9876=_0x3ac1df[_0xb7049d(0x220)];await _0x44ec5e({'env':_0x2a9876,'tenant':_0x3ac1df['tenant']??b(_0x168567,_0x16f64a[_0x2a9876]),'skipEnvCheck':_0x4b4480});return;}let _0x26e61b=_0x3ac1df[_0xb7049d(0x213)]??B();if(_0x26e61b){await _0x44ec5e({'baseUrl':_0x26e61b,'tenant':_0x3ac1df[_0xb7049d(0x232)]??b(_0x168567,_0x26e61b),'skipEnvCheck':_0x4b4480});return;}if(_0x168567?.[_0xb7049d(0x1d3)]){await _0x44ec5e({'baseUrl':_0x168567['baseUrl'],'tenant':_0x3ac1df['tenant']??_0x168567[_0xb7049d(0x278)],'skipEnvCheck':_0x4b4480});return;}console[_0xb7049d(0x295)](_0xb7049d(0x206)),process[_0xb7049d(0x1e8)](0x2);}function b(_0x72e77c,_0x26a20d){const _0x2aa246=_0x5513c6;return _0x72e77c?.[_0x2aa246(0x1d3)]&&we(_0x72e77c['baseUrl'],_0x26a20d)?_0x72e77c[_0x2aa246(0x278)]:void 0x0;}function we(_0x4d742f,_0xcc23dd){const _0x5477a7=_0x5513c6;try{return new URL(_0x4d742f)[_0x5477a7(0x269)]===new URL(_0xcc23dd)['origin'];}catch{return!0x1;}}async function ve(_0x1bb544){const _0x139462=_0x5513c6;A()&&(console[_0x139462(0x295)]('Auth\x20comes\x20from\x20AUTH_TOKEN/TENANT_ID/ORG_ID\x20β€”\x20set\x20TENANT_ID\x20and\x20TENANT_SLUG\x20to\x20change\x20the\x20tenant.'),process[_0x139462(0x1e8)](0x2));let _0x167f2d=await _0x1c26a0();if(_0x167f2d||(console['error'](be()),process[_0x139462(0x1e8)](0x2)),_0x1bb544['trim']()){let _0x20e1ce=await _0x15bc07(_0x167f2d,_0x1bb544);_0x2716ac(_0x20e1ce)||(console['error']('Tenant\x20not\x20switched:\x20could\x20not\x20write\x20'+_0x4372a6()+';\x20the\x20saved\x20login\x20still\x20uses\x20'+_0x167f2d['tenantName']+'.'),process[_0x139462(0x1e8)](0x1)),console[_0x139462(0x276)](_0x139462(0x26c)+_0x20e1ce[_0x139462(0x278)]+'\x20('+_0x20e1ce[_0x139462(0x234)]+')\x20β€”\x20saved\x20to\x20'+_0x4372a6());return;}ye(await _0x3f3972(_0x167f2d),_0x167f2d);}function be(){const _0x5b9e15=_0x5513c6;if(_0x537edf[_0x5b9e15(0x218)](_0x4372a6()))return'The\x20saved\x20CLI\x20login\x20could\x20not\x20be\x20refreshed.\x20Run\x20`delegate-cli\x20login`\x20again.';let _0x18a8de=S();return w(_0x18a8de)?'No\x20CLI\x20login\x20to\x20switch:\x20the\x20CLI\x20is\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20'+_0x18a8de+_0x5b9e15(0x21c):_0x5b9e15(0x1ff);}function ye(_0x1072ac,_0x51d59a){const _0x509cec=_0x5513c6;let _0x2ef132=_0x1072ac['map'](_0x2ee3af=>_0x2ee3af['id']===_0x51d59a['tenantId']?'*\x20'+_0x2ee3af['name']+'\x20(current)':'\x20\x20'+_0x2ee3af[_0x509cec(0x22e)]);process[_0x509cec(0x1f8)][_0x509cec(0x28f)](_0x509cec(0x1f0)+(_0x51d59a[_0x509cec(0x1e9)]??_0x51d59a[_0x509cec(0x1d2)])+':\x0a'+_0x2ef132[_0x509cec(0x1cd)]('\x0a')+'\x0a'),_0x1072ac[_0x509cec(0x1eb)]>0x1&&process[_0x509cec(0x1f8)][_0x509cec(0x28f)](_0x509cec(0x270));}function Se(_0x48c0f5){const _0x245d9b=_0x5513c6;return _0x48c0f5?.[_0x245d9b(0x1ca)]?.[_0x245d9b(0x249)]===0x191||/401/['test'](String(_0x48c0f5?.[_0x245d9b(0x1da)]??''));}var l={'lastType':null,'quiet':!0x1},_=_0x391832=>{const _0x157154=_0x5513c6;switch(_0x391832[_0x157154(0x1e2)]){case _0x157154(0x210):_0x391832[_0x157154(0x28a)]&&_0x391832[_0x157154(0x28a)]!==l[_0x157154(0x28a)]&&(process['stderr'][_0x157154(0x28f)]('Session:\x20'+_0x391832[_0x157154(0x28a)]+_0x157154(0x235)+_0x391832[_0x157154(0x28a)]+')\x0a'),l[_0x157154(0x28a)]=_0x391832[_0x157154(0x28a)]);break;case _0x157154(0x21e):_0x391832[_0x157154(0x1e5)]&&!l[_0x157154(0x256)]&&(l[_0x157154(0x1cb)]!==_0x157154(0x21e)&&process['stderr']['write'](_0x157154(0x253)),process['stderr']['write'](_0x391832[_0x157154(0x1e5)]),l['lastType']='thinking');break;case _0x157154(0x1e6):l['lastType']!==null&&process['stderr'][_0x157154(0x28f)]('\x0a'),process[_0x157154(0x24c)][_0x157154(0x28f)](_0x157154(0x290)+(_0x391832[_0x157154(0x25b)]??_0x157154(0x201))+'\x0a'),l[_0x157154(0x1cb)]='tool_call';break;case'message':_0x391832['content']&&(l['lastType']!=='message'&&l['lastType']!==null&&process[_0x157154(0x1f8)][_0x157154(0x28f)]('\x0a'),process[_0x157154(0x1f8)][_0x157154(0x28f)](_0x391832['content']),l['lastType']=_0x157154(0x1da));break;case _0x157154(0x295):l[_0x157154(0x1cb)]!==null&&process[_0x157154(0x24c)][_0x157154(0x28f)]('\x0a'),process[_0x157154(0x24c)][_0x157154(0x28f)]('βœ—\x20'+(_0x391832[_0x157154(0x295)]??_0x157154(0x295))+'\x0a'),l['lastType']=_0x157154(0x295);break;case _0x157154(0x200):(l['lastType']===_0x157154(0x1da)||l[_0x157154(0x1cb)]===_0x157154(0x21e))&&process[_0x157154(0x1f8)][_0x157154(0x28f)]('\x0a'),process[_0x157154(0x24c)][_0x157154(0x28f)](_0x157154(0x22f)),l[_0x157154(0x1cb)]=_0x157154(0x200);break;}};function R(_0x23cf61,_0x328899,_0x137894){const _0x5afb11=_0x5513c6;let _0x15a3a5=_0x23cf61[_0x5afb11(0x23e)]||process.env.MODEL;return{'backendUrl':_0x137894,'auth':_0x328899,'enableComputerUse':!_0x23cf61['headless']&&!_0x23cf61[_0x5afb11(0x233)],'autoSpawnInterop':!_0x23cf61['headless'],'enableConnections':!_0x23cf61[_0x5afb11(0x21f)],'enableSecurity':!_0x23cf61['noSecurity'],'keepInteropAlive':_0x23cf61[_0x5afb11(0x20b)],..._0x23cf61[_0x5afb11(0x1d8)]['length']>0x0?{'preloadSkills':_0x23cf61[_0x5afb11(0x1d8)]}:{},..._0x15a3a5?{'model':_0x15a3a5}:{},..._0x23cf61[_0x5afb11(0x240)]?{'projectId':_0x23cf61[_0x5afb11(0x240)]}:{},..._0x23cf61['workingDirectory']?{'workingDirectory':_0x23cf61[_0x5afb11(0x1d9)]}:{},..._0x23cf61[_0x5afb11(0x1cf)]?{'bundledSkillsPath':_0x23cf61['bundledSkillsPath']}:{},..._0x23cf61[_0x5afb11(0x24e)]?{'effort':_0x23cf61[_0x5afb11(0x24e)]}:{},..._0x23cf61[_0x5afb11(0x28a)]?{'sessionId':_0x23cf61[_0x5afb11(0x28a)]}:{},..._0x23cf61[_0x5afb11(0x26b)]?{'verbose':!0x0}:{}};}async function Ae(_0x5e5e68){const _0x290b0e=_0x5513c6;let _0x245e00=!_0x5e5e68['print']&&_0x5e5e68[_0x290b0e(0x247)]!=='-'&&!!process['stdin'][_0x290b0e(0x226)]&&!!process[_0x290b0e(0x1f8)][_0x290b0e(0x226)],_0x37bf9c=_0x245e00?_0x5e5e68['prompt'][_0x290b0e(0x1e1)]():await ae(_0x5e5e68[_0x290b0e(0x247)],process[_0x290b0e(0x241)]);!_0x245e00&&!_0x37bf9c&&(console[_0x290b0e(0x295)](_0x290b0e(0x21a)),process[_0x290b0e(0x1e8)](0x2)),l={'lastType':null,'quiet':_0x5e5e68[_0x290b0e(0x256)]};let _0x54adfb=await I(),_0x3d979c=new _0x4856f6();_0x3d979c[_0x290b0e(0x252)](_);let _0x4b9ea1=_0x1ee620(_0x5e5e68['env'],_0x54adfb,_0x5e5e68[_0x290b0e(0x243)]);E(_0x5e5e68[_0x290b0e(0x220)],_0x5e5e68['backendUrl'],_0x4b9ea1);let _0x58fcb4=R(_0x5e5e68,_0x54adfb,_0x4b9ea1),_0x28e23c=!0x1,_0x31b6e6=!0x1,_0x4dcb43,_0x3898e9=()=>_0x4dcb43??=_0x3d979c[_0x290b0e(0x228)](),_0x1a0611=()=>{const _0x4a62e8=_0x290b0e;_0x31b6e6&&process['exit'](0x82),_0x31b6e6=!0x0,process[_0x4a62e8(0x24c)]['write'](_0x4a62e8(0x288)),_0x28e23c&&_0x3898e9()[_0x4a62e8(0x292)](()=>process[_0x4a62e8(0x1e8)](0x82),_0x1c48ae=>{const _0x3be778=_0x4a62e8;console[_0x3be778(0x295)](_0x1c48ae),process['exit'](0x82);});};process['on'](_0x290b0e(0x20e),_0x1a0611);let _0x22b246=async _0x2ff45c=>{const _0x60d14d=_0x290b0e;try{await _0x3d979c['sendMessage'](_0x2ff45c);}catch(_0x33e314){if(_0x31b6e6||!Se(_0x33e314)||!process[_0x60d14d(0x241)][_0x60d14d(0x226)]||_0x5e5e68[_0x60d14d(0x220)]===_0x60d14d(0x289)||!(_0x5e5e68['env']||_0x54adfb[_0x60d14d(0x1d3)]))throw _0x33e314;process['stderr'][_0x60d14d(0x28f)](_0x60d14d(0x22d));let _0x5c643e=_0x3d979c[_0x60d14d(0x1d7)]()??_0x5e5e68[_0x60d14d(0x28a)],_0x2d6eaf=await _0x44ec5e(_0x5e5e68[_0x60d14d(0x220)]?{'env':_0x5e5e68[_0x60d14d(0x220)],'tenant':b(_0x54adfb,_0x16f64a[_0x5e5e68[_0x60d14d(0x220)]]),'skipEnvCheck':!0x0}:{'baseUrl':_0x54adfb[_0x60d14d(0x1d3)],'tenant':_0x54adfb[_0x60d14d(0x278)],'skipEnvCheck':!0x0});if(_0x31b6e6||(_0x28e23c=!0x1,await _0x3898e9(),_0x31b6e6))return;_0x3d979c=new _0x4856f6(),_0x4dcb43=void 0x0,_0x3d979c[_0x60d14d(0x252)](_),_0x54adfb=_0x2d6eaf,await _0x3d979c['initialize']({...R(_0x5e5e68,_0x54adfb,_0x4b9ea1),..._0x5c643e?{'sessionId':_0x5c643e}:{}}),_0x28e23c=!0x0,_0x31b6e6||await _0x3d979c[_0x60d14d(0x1d0)](_0x2ff45c);}};try{if(await _0x3d979c[_0x290b0e(0x1f7)](_0x58fcb4),_0x28e23c=!0x0,_0x31b6e6)return;_0x245e00?await Ee({'prompt':_0x37bf9c,'sendMessage':_0x22b246,'onSigint':_0x1a0611}):await _0x22b246(_0x37bf9c);}catch(_0x5bd453){if(!_0x31b6e6)throw _0x5bd453;}finally{try{await _0x3898e9();}finally{process['off'](_0x290b0e(0x20e),_0x1a0611),_0x31b6e6&&(process[_0x290b0e(0x271)]=0x82);}}}function Ie(_0x290df1,_0xa4ef37){const _0x3cdb9b=_0x5513c6;let _0x3a41c4=process[_0x3cdb9b(0x1f8)][_0x3cdb9b(0x28f)]['bind'](process['stdout']),_0x1a088=!0x1;return process[_0x3cdb9b(0x1f8)][_0x3cdb9b(0x28f)]=(..._0x17abb6)=>{const _0x59e0a4=_0x3cdb9b;if(!_0x1a088)return _0x3a41c4(..._0x17abb6);_0x21ecf1(_0xa4ef37,0x0),_0x8db7fd(_0xa4ef37,0x0);let _0x2cd847=_0x3a41c4(..._0x17abb6);return _0x290df1[_0x59e0a4(0x247)](!0x0),_0x2cd847;},{'show':()=>{const _0x14a7ef=_0x3cdb9b;_0x1a088=!0x0,_0x290df1[_0x14a7ef(0x247)]();},'hide':()=>{_0x1a088=!0x1;},'restore':()=>{const _0x2896ec=_0x3cdb9b;_0x1a088=!0x1,process[_0x2896ec(0x1f8)][_0x2896ec(0x28f)]=_0x3a41c4;}};}async function Ee({prompt:_0x4988f9,sendMessage:_0x16a1fb,onSigint:_0x38dbea}){const _0x12e078=_0x5513c6;let _0xd9dbd5=_0x2d07c2({'input':process['stdin'],'output':process[_0x12e078(0x24c)],'terminal':!0x0,'prompt':_0x12e078(0x24b)}),_0xb0147f=Ie(_0xd9dbd5,process[_0x12e078(0x24c)]),_0x42e98c=_0xd9dbd5[Symbol['asyncIterator']](),_0x187a9f=!0x1;_0xd9dbd5[_0x12e078(0x229)]('close',()=>{const _0x39d8ce=_0x12e078;_0x187a9f=!0x0,_0xb0147f[_0x39d8ce(0x27a)]();});let _0x169184=!0x1,_0x52c454=()=>{const _0x21b768=_0x12e078;_0x169184=!0x0,_0xd9dbd5[_0x21b768(0x28c)](),_0x38dbea();};_0xd9dbd5['on'](_0x12e078(0x20e),_0x52c454),process['stderr'][_0x12e078(0x28f)](_0x12e078(0x23b));try{if(_0x4988f9&&await _0x16a1fb(_0x4988f9),_0x169184)return;_0x187a9f||_0xb0147f[_0x12e078(0x26e)]();for await(let _0x556bdc of _0x42e98c){if(_0xb0147f[_0x12e078(0x27a)](),_0x169184)break;let _0xfe4f29=_0x556bdc[_0x12e078(0x1e1)]();if(_0xfe4f29==='/exit')break;_0xfe4f29&&await _0x16a1fb(_0xfe4f29),_0x187a9f||_0xb0147f[_0x12e078(0x26e)]();}}finally{_0xb0147f[_0x12e078(0x1fa)](),_0xd9dbd5[_0x12e078(0x20f)](_0x12e078(0x20e),_0x52c454),_0xd9dbd5['close']();}}async function Te(){const _0x328c01=_0x5513c6;let _0xfc3709=ne(process['argv']['slice'](0x2));if(_0xfc3709[_0x328c01(0x237)]){oe();return;}if(_0xfc3709[_0x328c01(0x282)]){console['log'](se());return;}if(_0xfc3709['subcommand']==='login'){await ke(_0xfc3709);return;}if(_0xfc3709[_0x328c01(0x22a)]===_0x328c01(0x232)){await ve(_0xfc3709[_0x328c01(0x247)]);return;}if(_0xfc3709['subcommand']==='logout'){await ce();return;}if(_0xfc3709[_0x328c01(0x22a)]===_0x328c01(0x26d)){await de();return;}if(_0xfc3709['subcommand']===_0x328c01(0x238)){await he(_0xfc3709);return;}if(_0xfc3709[_0x328c01(0x22a)]==='check'){await ge(_0xfc3709);return;}if(_0xfc3709['subcommand']==='host'){await _0x5844ca(_0xfc3709['prompt'],{'runnerUrl':_0xfc3709[_0x328c01(0x285)],'backendUrl':_0xfc3709[_0x328c01(0x243)],'interopPath':_0xfc3709[_0x328c01(0x1ea)],'workerId':_0xfc3709[_0x328c01(0x25d)]});return;}if(_0xfc3709[_0x328c01(0x1de)]){await pe();return;}await Ae(_0xfc3709);}var Ue=process.env.NODE_ENV===_0x5513c6(0x1fc)||!!process.env.JEST_WORKER_ID;function _0x4998(){const _0xb83b73=['\x0a⚠️\x20\x20Auth\x20expired.\x20Opening\x20browser\x20to\x20re-login…\x0a','name','βœ“\x20Done\x0a','4lNHYOv','[env=','tenant','noComputerUse','tenantId','\x20(resume\x20with\x20--session\x20','high','help','models','stop','checks','Enter\x20sends\x20a\x20message.\x20/exit\x20or\x20EOF\x20exits;\x20Ctrl+C\x20stops\x20and\x20exits.\x0a','No\x20models\x20available\x20for\x20this\x20product/tenant.\x0a','--no-security','model','end','projectId','stdin','Bearer\x20','backendUrl','18sGxPZw','--runner-url','\x20(Delegate\x20desktop\x20app\x20fallback)','prompt','--preload-skill','status','\x20\x20\x20\x20','You>\x20','stderr','X-Uipath-Tenantid','effort','809864MuTjRz','Base\x20URL:\x20\x20\x20\x20\x20','799f56b8-4aed-4a0f-8640-659dae4a9e0e','onEvent','\x0aπŸ€”\x20','60206aZDlbc','--worker-id','quiet','parse','description','--effort','--skip-env-check','toolName','skipEnvCheck','workerId','--print','cwd','low','isArray','.\x20Use\x20alpha\x20|\x20staging\x20|\x20production\x20|\x20localhost.','479596eUIwEg','xhigh','detail','--working-dir','--backend','--session','origin','\x20requires\x20','verbose','Tenant:\x20','whoami','show','cartographer','Switch\x20with:\x20delegate-cli\x20tenant\x20<name>\x0a','exitCode','noSecurity','unknown\x20slug','--url','login','log','a\x20session\x20id','tenantName','spawn','hide','concat','--quiet','\x20β€”\x20sign\x20out\x20in\x20the\x20Delegate\x20app\x20to\x20clear\x20that.','rejection','120535xbiMzX','file','--tenant','version','map','a\x20project\x20id','runnerUrl','--model','staging','\x0aStopping…\x20(Ctrl+C\x20again\x20to\x20force\x20exit)\x0a','localhost','sessionId','logout','close','a\x20directory\x20path','Unknown\x20flag:\x20','write','πŸ”§\x20','auth','then','startsWith','utf-8','error','.aria','round','readFileSync','response','lastType','rmSync','join','environment\x20variables\x20(AUTH_TOKEN/TENANT_ID/ORG_ID)','bundledSkillsPath','sendMessage','--env\x20localhost\x20has\x20no\x20OAuth\x20flow;\x20pick\x20alpha,\x20staging,\x20or\x20production.','organizationId','baseUrl','unknown','a\x20skill\x20name','an\x20effort\x20tier','getSessionId','preloadSkills','workingDirectory','message','Source:\x20\x20\x20\x20\x20\x20\x20','accessToken','headless','cleanup','):\x0a\x0a','isDesktopFallback','trim','type','alpha','UiPath\x20Cloud','content','tool_call','--no-computer-use','exit','orgLogicalName','interopPath','length','entries','--interop','expiresAt','host','Tenants\x20of\x20','resolve','[saved\x20login]\x20Backend\x20URL:\x20','--cartographer','.\x20Use\x20','--tenant\x20requires\x20a\x20tenant\x20name.','885640HundOW','initialize','stdout','Pass\x20either\x20--env\x20(a\x20named\x20cloud)\x20or\x20--url\x20(any\x20other\x20deployment),\x20not\x20both.','restore','data','test','No\x20CLI\x20login\x20found\x20β€”\x20nothing\x20to\x20remove.','1100qnyHtl','No\x20CLI\x20login\x20found.\x20Run\x20`delegate-cli\x20login\x20--env\x20<alpha|staging|production>`\x20first.','done','tool','Tenant:\x20\x20\x20\x20\x20\x20\x20','\x0aAvailable\x20models\x20(','\x0aUse\x20with:\x20delegate-cli\x20--model\x20<id>\x20\x22<prompt>\x22\x0a','\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).','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','--project','slice','Deployment:\x20\x20\x20','--keep-alive','keepAlive','from','Removed\x20','SIGINT','off','session_start','MODELS','Invalid\x20--effort:\x20','url','--headless','push','\x20|\x20','print','existsSync','220527JbSGSg','Missing\x20prompt.\x20Pass\x20it\x20as\x20an\x20argument,\x20pipe\x20it\x20via\x20stdin,\x20or\x20run\x20`delegate-cli\x20--help`.',']\x20Backend\x20URL:\x20',',\x20whose\x20tenant\x20is\x20chosen\x20in\x20the\x20app.\x20Run\x20`delegate-cli\x20login\x20--env\x20<env>`\x20for\x20a\x20CLI\x20login\x20of\x20your\x20own.','\x20β†’\x20','thinking','noConnections','env','GET\x20','24408oWVCsP','stack','includes','\x20min)','isTTY','Token:\x20\x20\x20\x20\x20\x20\x20\x20expired\x20','destroy','once','subcommand','padEnd','pause'];_0x4998=function(){return _0xb83b73;};return _0x4998();}Ue||Te()['catch'](_0x6cbb86=>{const _0x259f8b=_0x5513c6;console[_0x259f8b(0x295)](_0x6cbb86[_0x259f8b(0x223)]||_0x6cbb86[_0x259f8b(0x1da)]||_0x6cbb86),process['exit'](0x1);});export{te as CARTOGRAPHER_SKILLS,N as EFFORT_TIERS,re as IMPLICIT_STDIN_IDLE_MS,R as buildInitOptions,Te as main,ne as parseArgs,se as readCliVersion,ae as resolvePrompt};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uipath/delegate-cli",
3
- "version": "1.203.0-preview.20260927102104",
3
+ "version": "1.203.0-preview.20260928154025",
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.203.0-preview.20260927102104"
25
+ "@uipath/delegate-sdk": "1.203.0-preview.20260928154025"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@types/node": "^22.0.0",