@uipath/delegate-cli 0.1.9 → 0.1.11

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 (3) hide show
  1. package/README.md +76 -11
  2. package/dist/cli.mjs +1 -1
  3. package/package.json +2 -2
package/README.md CHANGED
@@ -18,20 +18,24 @@ npm pulls the CLI, the SDK, and your platform's runtime package (Mac arm64, Win
18
18
 
19
19
  ```bash
20
20
  npx delegate-cli login --env production # once — browser OAuth → ~/.aria/sdk-auth.json
21
- npx delegate-cli "take a screenshot and tell me what's open"
21
+ npx delegate-cli # start a conversation
22
+ npx delegate-cli "take a screenshot and tell me what's open" # optional first message
23
+ npx delegate-cli --print "summarize this process" # one turn, then exit
22
24
  ```
23
25
 
24
26
  Commands default to the cloud you logged into; `--env` / `--backend` override per command. There is no hardcoded environment — with no saved login and no `--env`/`--backend`, commands error rather than guess.
25
27
 
26
- If the access token expires mid-session in a TTY, the CLI opens the browser, re-logs in, and retries the prompt automatically.
28
+ If the access token expires mid-session in a TTY, the CLI opens the browser, re-logs in, and retries the prompt automatically in the same session.
27
29
 
28
30
  ---
29
31
 
30
32
  ## CLI
31
33
 
32
34
  ```
33
- delegate-cli [flags] "<prompt>" Send a prompt to the agent
34
- delegate-cli [flags] - Read the prompt from stdin (also implied when stdin is piped)
35
+ delegate-cli [flags] ["<prompt>"] Start a conversation in a terminal
36
+ delegate-cli --print "<prompt>" Run one turn and exit (-p is shorthand)
37
+ delegate-cli [flags] - Read one prompt from stdin through EOF, then exit
38
+ Piped stdin also implies one-turn mode
35
39
  Explicit `-` waits for EOF; the implicit form gives up after 2 s
36
40
  of silence so a missing prompt errors instead of hanging
37
41
  delegate-cli login [--env NAME] [--tenant NAME]
@@ -56,26 +60,61 @@ delegate-cli --version
56
60
  delegate-cli --help
57
61
  ```
58
62
 
63
+ ### Conversations and one-turn mode
64
+
65
+ When both stdin and stdout are terminals, the CLI starts an interactive conversation. An optional prompt is sent first; otherwise it waits at `You> `. Enter sends a message, blank lines are ignored, and replies run sequentially in the same session. Each entered line is a separate message; use piped input or `-` for a multiline prompt.
66
+
67
+ Use `/exit` or EOF (Ctrl+D on an empty input line) to finish. EOF lets an active turn finish before exiting. Ctrl+C stops the CLI and exits with code 130; during initialization it waits for setup to settle before cleaning up. A second Ctrl+C forces immediate exit. The SDK and interop are cleaned up on exit, subject to `--keep-alive`.
68
+
69
+ `--print` / `-p` sends one prompt and exits after the response and any tool execution. This mode is also automatic when stdin **or** stdout is not a terminal, or when the prompt is `-`. Piped lines form one prompt, not separate turns. Missing input in one-turn mode exits with code 2.
70
+
71
+ The CLI prints the session ID to stderr when a session starts. Resume later with `delegate-cli --session <id>`, or send one follow-up with `delegate-cli --print --session <id> "..."`. Repeat the desired project, working-directory, model and tool options when starting a new invocation. The SDK reuses the session; the backend stores conversation history. A project ID shares local files but does not preserve the conversation by itself. Fatal errors exit after cleanup; the session ID can be used to resume.
72
+
73
+ Assistant responses go to stdout; terminal prompts, session IDs and progress go to stderr. `--verbose` additionally puts SDK diagnostics on stdout.
74
+
75
+ ### Machine access
76
+
77
+ Three levels of machine access, independent of conversation mode:
78
+
79
+ | | interop | screen + UI automation | file / Office / PDF / shell |
80
+ |---|---|---|---|
81
+ | default | yes | yes | yes |
82
+ | `--no-computer-use` | yes | **no** | yes |
83
+ | `--headless` | **no** | no | **no** |
84
+
85
+ `--cartographer` sits at the `--no-computer-use` level; adding `--headless` to it moves the whole invocation down a row.
86
+
59
87
  ### Flags
60
88
 
61
89
  | Flag | Default | What it does |
62
90
  |---|---|---|
91
+ | `-p`, `--print` | automatic outside a terminal | Send one prompt, execute any tools, print the response and exit. Otherwise, when stdin and stdout are terminals, accept follow-up messages interactively. Explicit `-` input also selects one-turn mode. |
63
92
  | `--env <name>` | saved login's cloud | `alpha` / `staging` / `production` / `localhost`. Composes the backend URL from saved org/tenant slugs; localhost → `http://localhost:5002`. Omitted → the cloud you logged into (`delegate-cli login`). With no saved login and no `--backend` / `BACKEND_URL` either, commands error — the CLI never guesses an environment. |
64
93
  | `--backend <url>` | — | Full backend URL — overrides `--env` and `BACKEND_URL`. |
65
94
  | `--tenant <name>` | saved login's tenant, else the org's first | (`login` only) Tenant to sign into, matched by name case-insensitively. Without it a re-login keeps the tenant of the saved login on that cloud. An unknown name fails and lists the tenants that exist; on any other command the flag is refused — switch an existing login with `delegate-cli tenant <name>`. |
66
95
  | `--model <id>` | `gemini_3_6_flash` | LLM id (use `delegate-cli models` to discover). Also via `MODEL` env. |
67
- | `--headless` | off | Skip interop. Text-only prompts. |
96
+ | `--headless` | off | Skip interop entirely. Text-only prompts: no screen **and** no file, Office, PDF or shell tools. Skills still load — they are read through Node, not interop. |
97
+ | `--no-computer-use` | off | Keep interop, drop the screen. File, Office, PDF and shell tools keep working; screenshots, the window list, the focused element and the UI-automation tools (`AppFind`, `AppAct`, `AppGetDescriptor`) all go. Cuts the image tokens and the per-turn screen capture, keeps desktop window titles off the wire, and removes the agent's ability to act on the desktop UI. The right default for document and file work on a real machine. `--headless` implies it. |
68
98
  | `--keep-alive` | off | Reuse / leave interop running across invocations. Skips the 10–20 s cold start on the next call. |
69
99
  | `--cleanup` | — | Force-stop the running interop (from `~/.delegate-sdk/interop.pid`) and exit. |
70
100
  | `--no-connections` | off | Disable orchestrator ConnectionService (silences 404 noise on tenants without orchestrator). |
71
101
  | `--no-security` | off | Disable tool security wrapper. Debug only. |
72
- | `--preload-skill <name>` | — | Preload a skill into the session (repeatable). |
102
+ | `--preload-skill <name>` | — | Preload a skill into the session before the first model turn (repeatable; SDK `preloadSkills`). A name given twice is preloaded once. |
103
+ | `--cartographer` | off | Cartographer engagement preset — shorthand for `--no-computer-use --preload-skill business-analysis --preload-skill project-checklist --preload-skill knowledge-base`. Add `--project` / `--working-dir` to say where the engagement's files live, and further `--preload-skill` flags for anything extra; a skill the preset already covers is **not** preloaded twice, whichever side of the flag it is named on. Pass `--headless` alongside it to drop interop as well (`--headless` always wins over the preset's `--no-computer-use`). |
104
+ | `--project <id>` | — | Bind the session to a project: wiki, plans, `checklist.md` and `progress.yaml` live under `<state root>/projects/<id>/` (the state root is `--working-dir`, else `~/.aria-sdk`), the preloaded skills' declared project files are copied there on the first message, and the project context (`ProjectId`, `ChecklistPath`, `ProgressPath`) is injected into every turn (SDK `projectId`). Client-side routing key only — the CLI never links a backend project row. |
105
+ | `--working-dir <path>` | `~/.aria-sdk` for state; process cwd for shells | Shell cwd for the agent and root for SDK-local state (SDK `workingDirectory`). Relative paths resolve against the current directory; **the directory is created if missing**. |
106
+ | `--skills-path <path>` | — | Extra bundled-skills directory, merged with `DELEGATE_BUNDLED_SKILLS_PATH` and the installed desktop app's skills (SDK `bundledSkillsPath`). Relative paths resolve against the current directory. |
107
+ | `--effort <tier>` | model's recommended tier | Reasoning effort: `low` / `medium` / `high` / `xhigh` / `max` (SDK `effort`). Any other value exits with code 2. |
108
+ | `--session <id>` | server-assigned | Pin the session id (SDK `sessionId`). Must be an existing backend session, or one the first message creates. Reuse it across invocations to continue one conversation — the agent then remembers earlier turns. Note that `--preload-skill` is stamped when the SDK *creates* a session, so passing it alongside `--session` does not reconfigure an existing one. |
73
109
  | `-q`, `--quiet` | off | Suppress 🤔 thinking on stderr. |
110
+ | `--verbose` | off | Print SDK and framework diagnostics (SDK `verbose`). Independent of `-q`. They share stdout with the answer, so do not pipe the answer with this on. |
74
111
  | `-v`, `--version` | — | Print the installed CLI version. |
75
112
  | `--runner-url <url>` | — | (host) Runner worker WS URL. Required; or `CONTROL_PLANE_WS_URL` env. |
76
113
  | `--interop <path>` | — | (host) Interop binary path; or `INTEROP_EXECUTABLE_PATH` env. Absent → registration/discovery only, tool execution disabled. |
77
114
  | `--worker-id <id>` | hostname | (host) Stable worker identity; or `WORKER_ID` env. |
78
115
 
116
+ `--preload-skill`, `--project`, `--session`, `--working-dir`, `--skills-path` and `--effort` require a value — a following flag, long (`--headless`) or short (`-p`), counts as missing and exits with code 2, as does any unknown flag. `--project` must be a single folder-safe segment (letters, digits, spaces, `_`, `-`, `.`, parentheses; at most 64 characters; not starting with `.` or ending with `.` or a space) — anything else exits with code 2 rather than silently routing the engagement's files to the session folder.
117
+
79
118
  ### Examples
80
119
 
81
120
  ```bash
@@ -83,7 +122,7 @@ delegate-cli --help
83
122
  npx delegate-cli -q --no-connections "open Chrome and search UiPath"
84
123
 
85
124
  # Target another environment for one command
86
- npx delegate-cli --env staging "open the org dashboard"
125
+ npx delegate-cli --print --env staging "open the org dashboard"
87
126
 
88
127
  # Pick a model
89
128
  npx delegate-cli --model claude_opus_4_8 "explain quantum entanglement"
@@ -94,9 +133,35 @@ npx delegate-cli --headless "summarize the last release notes"
94
133
  # Pipe the prompt from stdin
95
134
  cat notes.md | npx delegate-cli --headless -
96
135
 
97
- # Iterate fast with persistent interop
98
- npx delegate-cli --keep-alive "take a screenshot"
99
- npx delegate-cli --keep-alive "now describe the active window" # < 1 s, no spawn
136
+ # Resume the session ID printed by an earlier invocation
137
+ npx delegate-cli --headless --session <id>
138
+
139
+ # Project-scoped engagement, headless: state under ~/engagements/projects/invoice-approval,
140
+ # with the skills the task needs preloaded before the first model turn. Run the same
141
+ # command again later to reuse project files; add --session <id> to resume chat history.
142
+ npx delegate-cli --headless --project invoice-approval --working-dir ~/engagements \
143
+ --preload-skill business-analysis --preload-skill knowledge-base --preload-skill project-checklist \
144
+ "Start the engagement."
145
+
146
+ # Same engagement, but the agent needs to read and write real files. --no-computer-use
147
+ # keeps interop (so ReadFile/WriteFile/Office/PDF work) while dropping screenshots and
148
+ # the window list — no image tokens, and nothing about the desktop leaves the machine.
149
+ npx delegate-cli --no-computer-use --project invoice-approval --working-dir ~/engagements \
150
+ --preload-skill business-analysis --preload-skill knowledge-base --preload-skill project-checklist \
151
+ "Read the AS-IS notes and draft the process overview."
152
+
153
+ # The same command as above — --cartographer is shorthand for that whole flag set
154
+ npx delegate-cli --cartographer --project invoice-approval --working-dir ~/engagements \
155
+ "Read the AS-IS notes and draft the process overview."
156
+
157
+ # Preset plus one extra skill; business-analysis is already in the preset, so naming
158
+ # it again changes nothing — it is still preloaded exactly once
159
+ npx delegate-cli --cartographer --preload-skill task-design --project invoice-approval \
160
+ "Start the engagement."
161
+
162
+ # Separate one-turn commands with persistent interop
163
+ npx delegate-cli --print --keep-alive "take a screenshot"
164
+ npx delegate-cli --print --keep-alive --session <id> "now describe the active window"
100
165
  npx delegate-cli --cleanup # stop when done
101
166
 
102
167
  # Override backend URL fully
@@ -151,7 +216,7 @@ To change tenant afterwards, run `delegate-cli tenant <name>` — no browser: to
151
216
 
152
217
  `delegate-cli logout` deletes the saved CLI login and never the desktop app's file. When that fallback is what you are authenticating with, it says so rather than reporting nothing to remove — sign out in the Delegate app to clear it.
153
218
 
154
- Tokens with < 30 % lifetime left are refreshed proactively on startup. 401s in a TTY trigger the login flow inline and retry.
219
+ Tokens with < 30 % lifetime left are refreshed proactively on startup. 401s in a TTY trigger the login flow inline and retry once, preserving the active session and the selected tenant on the same cloud.
155
220
 
156
221
  To authenticate as your own identity app (custom `UIPATH_CLIENT_ID` / `UIPATH_CLIENT_SECRET`), see the "Using your own identity app" section in the `@uipath/delegate-sdk` README — the same environment variables apply to the CLI.
157
222
 
package/dist/cli.mjs CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- const _0x338425=_0x32d0;(function(_0x5ab125,_0x300fc7){const _0x4f1cde=_0x32d0,_0x2b8729=_0x5ab125();while(!![]){try{const _0x37ef7b=-parseInt(_0x4f1cde(0xf1))/0x1*(-parseInt(_0x4f1cde(0x120))/0x2)+parseInt(_0x4f1cde(0x11e))/0x3*(parseInt(_0x4f1cde(0x170))/0x4)+-parseInt(_0x4f1cde(0x124))/0x5*(-parseInt(_0x4f1cde(0x154))/0x6)+parseInt(_0x4f1cde(0x132))/0x7*(-parseInt(_0x4f1cde(0x148))/0x8)+-parseInt(_0x4f1cde(0x101))/0x9*(parseInt(_0x4f1cde(0x18e))/0xa)+-parseInt(_0x4f1cde(0x10f))/0xb*(parseInt(_0x4f1cde(0x180))/0xc)+-parseInt(_0x4f1cde(0x13a))/0xd*(-parseInt(_0x4f1cde(0xf0))/0xe);if(_0x37ef7b===_0x300fc7)break;else _0x2b8729['push'](_0x2b8729['shift']());}catch(_0x15c3e9){_0x2b8729['push'](_0x2b8729['shift']());}}}(_0x41bc,0x1fc35));const __dirname=import.meta.dirname;import _0x27be5b from'fs';import _0x3962bc from'path';import{DelegateAgent as _0x4e498c,InteropProcess as _0x416ad7,getAuthFilePath as _0x33ed2c,listTenants as _0x313711,loadAndRefreshAuth as _0x10347b,loadAndRefreshSdkLogin as _0x573145,resolveBackendUrl as _0x1cd7ef,runHealthCheck as _0x491bf0,runHostCommand as _0x4e3f5d,runLoginFlow as _0x15dec6,saveAuthData as _0x347155,switchTenant as _0x2dcaad,ENV_TO_CLOUD as _0x2faf1a}from'@uipath/delegate-sdk';var P=['login','tenant',_0x338425(0x139),_0x338425(0x191),_0x338425(0x12b),_0x338425(0x108),_0x338425(0xee)];function _0x32d0(_0x24d3da,_0x5e8bf8){_0x24d3da=_0x24d3da-0xed;const _0x41bcac=_0x41bc();let _0x32d03c=_0x41bcac[_0x24d3da];return _0x32d03c;}function x(_0x293773){const _0x149241=_0x338425;let _0x1d2d0d={'subcommand':'','prompt':'','keepAlive':!0x1,'cleanup':!0x1,'headless':!0x1,'noConnections':!0x1,'noSecurity':!0x1,'quiet':!0x1,'preloadSkills':[],'help':!0x1,'version':!0x1};P[_0x149241(0x186)](_0x293773[0x0])&&(_0x1d2d0d[_0x149241(0x188)]=_0x293773[0x0],_0x293773=_0x293773[_0x149241(0xfd)](0x1));let _0x9a2009=[];for(let _0x5c8ae9=0x0;_0x5c8ae9<_0x293773['length'];_0x5c8ae9++){let _0x577028=_0x293773[_0x5c8ae9];switch(_0x577028){case _0x149241(0x172):_0x1d2d0d['keepAlive']=!0x0;break;case _0x149241(0xf5):_0x1d2d0d[_0x149241(0x193)]=!0x0;break;case _0x149241(0x107):_0x1d2d0d['headless']=!0x0;break;case'--no-connections':_0x1d2d0d[_0x149241(0x15f)]=!0x0;break;case _0x149241(0x15c):_0x1d2d0d[_0x149241(0x145)]=!0x0;break;case _0x149241(0x114):case'-q':_0x1d2d0d[_0x149241(0x10a)]=!0x0;break;case _0x149241(0xf2):_0x1d2d0d[_0x149241(0x189)]=_0x293773[++_0x5c8ae9];break;case'--model':_0x1d2d0d[_0x149241(0xfa)]=_0x293773[++_0x5c8ae9];break;case _0x149241(0x178):_0x1d2d0d['runnerUrl']=_0x293773[++_0x5c8ae9];break;case _0x149241(0x115):_0x1d2d0d[_0x149241(0x109)]=_0x293773[++_0x5c8ae9];break;case _0x149241(0x103):_0x1d2d0d[_0x149241(0x125)]=_0x293773[++_0x5c8ae9];break;case _0x149241(0x141):{let _0x471f74=_0x293773[++_0x5c8ae9];(!_0x471f74||_0x471f74[_0x149241(0x14b)]('--'))&&(console[_0x149241(0xf9)](_0x149241(0x156)),process[_0x149241(0x196)](0x2)),_0x1d2d0d[_0x149241(0x164)]['push'](_0x471f74);break;}case _0x149241(0x15b):{let _0x3cb198=_0x293773[++_0x5c8ae9];(!_0x3cb198||_0x3cb198[_0x149241(0x14b)]('--'))&&(console[_0x149241(0xf9)](_0x149241(0x16b)),process['exit'](0x2)),_0x1d2d0d[_0x149241(0x152)]=_0x3cb198;break;}case _0x149241(0x147):{let _0x593ab2=_0x293773[++_0x5c8ae9];[_0x149241(0x138),_0x149241(0x146),_0x149241(0x11b),'localhost']['includes'](_0x593ab2)||(console[_0x149241(0xf9)]('Invalid\x20--env:\x20'+_0x593ab2+_0x149241(0x185)),process[_0x149241(0x196)](0x2)),_0x1d2d0d[_0x149241(0x17f)]=_0x593ab2;break;}case'-h':case'--help':_0x1d2d0d[_0x149241(0x175)]=!0x0;break;case'-v':case _0x149241(0x16f):_0x1d2d0d[_0x149241(0x171)]=!0x0;break;default:_0x577028[_0x149241(0x14b)]('--')&&(console[_0x149241(0xf9)](_0x149241(0x13e)+_0x577028),process[_0x149241(0x196)](0x2)),_0x9a2009[_0x149241(0x163)](_0x577028);}}return _0x1d2d0d[_0x149241(0x152)]!==void 0x0&&_0x1d2d0d[_0x149241(0x188)]!==_0x149241(0xf4)&&(console[_0x149241(0xf9)](_0x149241(0x144)),process[_0x149241(0x196)](0x2)),_0x1d2d0d[_0x149241(0x176)]=_0x9a2009[_0x149241(0x17e)]('\x20'),_0x1d2d0d;}function _0x41bc(){const _0x532039=['toolName','[env=','[saved\x20login]\x20Backend\x20URL:\x20','Tenant:\x20\x20\x20\x20\x20\x20\x20','50708grAeXz','isDesktopFallback','\x20(current)','stdin','localhost','initialize','alpha','models','1183LrRSDR','parse','keepAlive','X-Uipath-Organizationid','Unknown\x20flag:\x20','Token:\x20\x20\x20\x20\x20\x20\x20\x20expired\x20','No\x20CLI\x20login\x20to\x20switch:\x20the\x20CLI\x20is\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20','--preload-skill','stack','orgLogicalName','--tenant\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Switch\x20tenants\x20with:\x20delegate-cli\x20tenant\x20<name>','noSecurity','staging','--env','128ZmFZzV','799f56b8-4aed-4a0f-8640-659dae4a9e0e','\x20(Delegate\x20desktop\x20app\x20fallback)','startsWith',')\x20—\x20saved\x20to\x20','\x20—\x20sign\x20out\x20in\x20the\x20Delegate\x20app\x20to\x20clear\x20that.','Switch\x20with:\x20delegate-cli\x20tenant\x20<name>\x0a','response','Tenant:\x20','object','tenant','Missing\x20prompt.\x20Pass\x20it\x20as\x20an\x20argument,\x20pipe\x20it\x20via\x20stdin,\x20or\x20run\x20`delegate-cli\x20--help`.','6ZoOLcA','accessToken','--preload-skill\x20requires\x20a\x20skill\x20name.','round','.aria','MODELS','log','--tenant','--no-security','environment\x20variables\x20(AUTH_TOKEN/TENANT_ID/ORG_ID)','utf-8','noConnections','unknown','baseUrl','auth','push','preloadSkills','trim','entries','\x0aStopping…\x20(Ctrl+C\x20again\x20to\x20force\x20exit)\x0a','off','Interop\x20stopped\x20(if\x20it\x20was\x20running).','status','--tenant\x20requires\x20a\x20tenant\x20name.','No\x20CLI\x20login\x20found.\x20Note:\x20the\x20CLI\x20is\x20currently\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20','Auth\x20comes\x20from\x20AUTH_TOKEN/TENANT_ID/ORG_ID\x20—\x20set\x20TENANT_ID\x20and\x20TENANT_SLUG\x20to\x20change\x20the\x20tenant.','Source:\x20\x20\x20\x20\x20\x20\x20','--version','4ltUBbb','version','--keep-alive','end','tenantId','help','prompt','stdout','--runner-url','destroy','argv','isTTY','test','pause','join','env','48OpnErE','done',';\x20the\x20saved\x20login\x20still\x20uses\x20','readFileSync','tool_call','.\x20Use\x20alpha\x20|\x20staging\x20|\x20production\x20|\x20localhost.','includes','tool','subcommand','backendUrl','organizationId','SIGINT','rmSync','content','3580fUIYfP','skip','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(interactive\x20browser\x20OAuth)\x20first.','host','finally','cleanup','concat','Token:\x20\x20\x20\x20\x20\x20\x20\x20expires\x20','exit','\x20\x20\x20\x20','sendMessage','message','):\x0a\x0a','thinking','\x20min)','check','file','6790QbvtEz','17467ejAgFY','--backend','toString','login','--cleanup','from','tenantName','length','error','model','origin','stop','slice','\x20(in\x20','resume','write','2502QRDQGs','now','--worker-id',',\x20whose\x20tenant\x20is\x20chosen\x20in\x20the\x20app.\x20Run\x20`delegate-cli\x20login\x20--env\x20<env>`\x20for\x20a\x20CLI\x20login\x20of\x20your\x20own.','First\x20login\x20requires\x20--env.\x20Usage:\x20delegate-cli\x20login\x20--env\x20<alpha|staging|production>','headless','--headless','whoami','interopPath','quiet','No\x20models\x20available\x20for\x20this\x20product/tenant.\x0a','data','GET\x20','\x0a🤔\x20','221969mMkxMI','No\x20CLI\x20login\x20found\x20—\x20nothing\x20to\x20remove.','onEvent','No\x20CLI\x20login\x20found.\x20Run\x20`delegate-cli\x20login\x20--env\x20<alpha|staging|production>`\x20first.','description','--quiet','--interop',']\x20Backend\x20URL:\x20','catch','type','Removed\x20','Base\x20URL:\x20\x20\x20\x20\x20','production','\x0aAvailable\x20models\x20(','expiresAt','604209YCoeag','stderr','20VAORRf','\x0a⚠️\x20\x20Auth\x20expired.\x20Opening\x20browser\x20to\x20re-login…\x0a','lastType','detail','30185ZpAXeC','workerId','\x20→\x20','unknown\x20slug','name','spawn','floor','logout','existsSync','\x0adelegate-cli\x20—\x20Delegate\x20agent\x20CLI\x0a\x0aUsage:\x0a\x20\x20delegate-cli\x20[flags]\x20\x22<prompt>\x22\x20\x20\x20\x20\x20\x20Send\x20prompt\x20to\x20the\x20agent\x0a\x20\x20delegate-cli\x20[flags]\x20-\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Read\x20the\x20prompt\x20from\x20stdin\x20(also\x20implied\x20when\x20stdin\x20is\x20piped)\x0a\x20\x20delegate-cli\x20login\x20[--env\x20NAME]\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\x20required\x20on\x20FIRST\x20login;\x20afterwards\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20defaults\x20to\x20the\x20saved\x20login\x27s\x20cloud.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--tenant\x20picks\x20a\x20tenant\x20by\x20name;\x20without\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\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\x20a\x20re-login\x20keeps\x20the\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--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\x20cloud\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--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_k2_7_code).\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-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--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-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\x0aAuth:\x20prompts\x20auto-retry\x20on\x20401\x20by\x20opening\x20the\x20browser\x20to\x20re-login\x20(TTY\x20only).\x0a'];_0x41bc=function(){return _0x532039;};return _0x41bc();}function M(){const _0x3c5ebb=_0x338425;let _0x402912=_0x3c5ebb(0x12d)[_0x3c5ebb(0x165)]();console[_0x3c5ebb(0x15a)](_0x402912);}function B(){const _0x24212c=_0x338425;try{return JSON['parse'](_0x27be5b[_0x24212c(0x183)](_0x3962bc['join'](__dirname,'..','package.json'),_0x24212c(0x15e)))['version']||_0x24212c(0x160);}catch{return _0x24212c(0x160);}}var q=0x7d0;async function A(_0x9b014,_0xf2c6c8){const _0xbdb5d=_0x338425;let _0x3cbb83=_0xf2c6c8?[_0xf2c6c8]:[];for await(let _0x1cb790 of _0x9b014)_0x3cbb83[_0xbdb5d(0x163)](Buffer[_0xbdb5d(0xf6)](_0x1cb790));return Buffer[_0xbdb5d(0x194)](_0x3cbb83)[_0xbdb5d(0xf3)](_0xbdb5d(0x15e))[_0xbdb5d(0x165)]();}function F(_0x463bdb,_0x25ef81){return new Promise(_0x350854=>{const _0x2a768d=_0x32d0;let _0x206105=_0x4fe5d7=>{const _0x4f6627=_0x32d0;clearTimeout(_0x4071ee),_0x463bdb[_0x4f6627(0x168)](_0x4f6627(0x10c),_0x42a453),_0x463bdb[_0x4f6627(0x168)](_0x4f6627(0x173),_0xf16474),_0x463bdb[_0x4f6627(0x168)]('error',_0xf16474),_0x463bdb[_0x4f6627(0x17d)](),_0x350854(_0x4fe5d7);},_0x42a453=_0x26324a=>_0x206105(Buffer[_0x2a768d(0xf6)](_0x26324a)),_0xf16474=()=>_0x206105(null),_0x4071ee=setTimeout(()=>_0x206105(null),_0x25ef81);_0x463bdb['on']('data',_0x42a453),_0x463bdb['on'](_0x2a768d(0x173),_0xf16474),_0x463bdb['on'](_0x2a768d(0xf9),_0xf16474),_0x463bdb[_0x2a768d(0xff)]();});}async function H(_0x1c8370,_0x1a4ac8,_0x5ac80b=q){const _0x35b396=_0x338425;let _0x4f7d86=_0x1c8370==='-';if(!_0x4f7d86&&_0x1c8370)return _0x1c8370;if(!_0x4f7d86&&_0x1a4ac8[_0x35b396(0x17b)])return'';if(_0x4f7d86)return A(_0x1a4ac8,null);let _0x4840a4=await F(_0x1a4ac8,_0x5ac80b);return _0x4840a4?A(_0x1a4ac8,_0x4840a4):'';}function k(){const _0x3ecd3b=_0x338425;return _0x3962bc[_0x3ecd3b(0x17e)](process.env.HOME||process.env.USERPROFILE||'',_0x3ecd3b(0x158),'auth.json');}function f(_0x315964){const _0x59ffde=_0x338425;try{let _0xea55b4=JSON[_0x59ffde(0x13b)](_0x27be5b[_0x59ffde(0x183)](_0x315964,_0x59ffde(0x15e)));return!_0xea55b4[_0x59ffde(0x155)]||!_0xea55b4['tenantId']||!_0xea55b4[_0x59ffde(0x18a)]?null:_0xea55b4;}catch{return null;}}function G(){const _0x2d3351=_0x338425;let _0x556da0=[{'file':_0x33ed2c(),'isDesktopFallback':!0x1},{'file':k(),'isDesktopFallback':!0x0}];for(let _0x1378d2 of _0x556da0){let _0x566568=f(_0x1378d2[_0x2d3351(0xef)]);if(_0x566568)return{..._0x1378d2,'auth':_0x566568};}return null;}async function z(){const _0x13aee8=_0x338425;let _0xe72218=_0x33ed2c();if(!_0x27be5b[_0x13aee8(0x12c)](_0xe72218)){let _0x271eca=k();console['log'](f(_0x271eca)?_0x13aee8(0x16c)+_0x271eca+_0x13aee8(0x14d):_0x13aee8(0x110));return;}_0x27be5b[_0x13aee8(0x18c)](_0xe72218),console[_0x13aee8(0x15a)](_0x13aee8(0x119)+_0xe72218);}async function j(){const _0x46525b=_0x338425;let _0x45dee6=v(),_0x289b82,_0x27db6a;if(_0x45dee6)_0x289b82=_0x45dee6,_0x27db6a=_0x46525b(0x15d);else{let _0x37f67b=G();if(!_0x37f67b)throw new Error(N);_0x289b82=_0x37f67b[_0x46525b(0x162)],_0x27db6a=_0x37f67b[_0x46525b(0x133)]?_0x37f67b[_0x46525b(0xef)]+_0x46525b(0x14a):_0x37f67b['file'];}let _0x5bf162=[_0x46525b(0x16e)+_0x27db6a,_0x46525b(0x11a)+(_0x289b82['baseUrl']??_0x46525b(0x160)),'Organization:\x20'+(_0x289b82['orgLogicalName']??'unknown\x20slug')+'\x20('+_0x289b82[_0x46525b(0x18a)]+')',_0x46525b(0x131)+(_0x289b82[_0x46525b(0xf7)]??_0x46525b(0x127))+'\x20('+_0x289b82[_0x46525b(0x174)]+')'];if(_0x289b82['expiresAt']){let _0x367602=_0x289b82[_0x46525b(0x11d)]-Math[_0x46525b(0x12a)](Date[_0x46525b(0x102)]()/0x3e8),_0x42c52a=new Date(_0x289b82[_0x46525b(0x11d)]*0x3e8)['toISOString']();_0x5bf162['push'](_0x367602>0x0?_0x46525b(0x195)+_0x42c52a+_0x46525b(0xfe)+Math[_0x46525b(0x157)](_0x367602/0x3c)+_0x46525b(0xed):_0x46525b(0x13f)+_0x42c52a);}process[_0x46525b(0x177)][_0x46525b(0x100)](_0x5bf162[_0x46525b(0x17e)]('\x0a')+'\x0a');}var N=_0x338425(0x190);function v(){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':process.env.UIPATH_BASE_URL}:null;}async function w(){let _0x523c7d=v();if(_0x523c7d)return _0x523c7d;let _0x287078=await _0x10347b();if(_0x287078)return _0x287078;throw new Error(N);}async function K(){const _0x49723f=_0x338425;await new _0x416ad7()[_0x49723f(0xfc)]({'force':!0x0}),console['log'](_0x49723f(0x169));}var W=_0x338425(0x149);function b(_0x1ff965,_0x27c9a9,_0x3bc3ba){const _0xdff53b=_0x338425;_0x1ff965?process[_0xdff53b(0x11f)][_0xdff53b(0x100)](_0xdff53b(0x12f)+_0x1ff965+_0xdff53b(0x116)+_0x3bc3ba+'\x0a'):!_0x27c9a9&&!process.env.BACKEND_URL&&process['stderr'][_0xdff53b(0x100)](_0xdff53b(0x130)+_0x3bc3ba+'\x0a');}async function J(_0x12262b){const _0x419d06=_0x338425;let _0x1ca7d3=await w(),_0x18bc02=_0x1cd7ef(_0x12262b[_0x419d06(0x17f)],_0x1ca7d3,_0x12262b[_0x419d06(0x189)]);b(_0x12262b['env'],_0x12262b[_0x419d06(0x189)],_0x18bc02);let _0x3632d3=_0x18bc02+'/v1/config',_0x134ba4={'Authorization':'Bearer\x20'+_0x1ca7d3[_0x419d06(0x155)],'X-UiPath-ConsumingProductId':W};_0x1ca7d3[_0x419d06(0x174)]&&(_0x134ba4['X-Uipath-Tenantid']=_0x1ca7d3[_0x419d06(0x174)]),_0x1ca7d3[_0x419d06(0x18a)]&&(_0x134ba4[_0x419d06(0x13d)]=_0x1ca7d3[_0x419d06(0x18a)]);let _0x1faeb5=await fetch(_0x3632d3,{'headers':_0x134ba4});if(!_0x1faeb5['ok'])throw new Error(_0x419d06(0x10d)+_0x3632d3+_0x419d06(0x126)+_0x1faeb5['status']+'\x20'+_0x1faeb5['statusText']);let _0x5cae06=(await _0x1faeb5['json']())?.[_0x419d06(0x159)],_0x25500d=Array['isArray'](_0x5cae06)?_0x5cae06:_0x5cae06&&typeof _0x5cae06==_0x419d06(0x151)?Object[_0x419d06(0x166)](_0x5cae06)['map'](([_0x2dae50,_0x28be72])=>({'id':_0x2dae50,'name':_0x28be72})):[];if(_0x25500d['length']===0x0){process[_0x419d06(0x11f)][_0x419d06(0x100)](_0x419d06(0x10b));return;}process[_0x419d06(0x177)][_0x419d06(0x100)](_0x419d06(0x11c)+_0x25500d[_0x419d06(0xf8)]+_0x419d06(0x19a));for(let _0x2716c4 of _0x25500d){let _0xf35b74=_0x2716c4[_0x419d06(0x128)]&&_0x2716c4['name']!==_0x2716c4['id']?'\x20('+_0x2716c4[_0x419d06(0x128)]+')':'';process[_0x419d06(0x177)][_0x419d06(0x100)]('\x20\x20'+_0x2716c4['id']+_0xf35b74+'\x0a'),_0x2716c4[_0x419d06(0x113)]&&process[_0x419d06(0x177)]['write'](_0x419d06(0x197)+_0x2716c4['description']+'\x0a');}process[_0x419d06(0x177)][_0x419d06(0x100)]('\x0aUse\x20with:\x20delegate-cli\x20--model\x20<id>\x20\x22<prompt>\x22\x0a');}async function V(_0x431db3){const _0x5b81d6=_0x338425;let _0x4bb685=await w(),_0x331426=_0x1cd7ef(_0x431db3['env'],_0x4bb685,_0x431db3[_0x5b81d6(0x189)]);b(_0x431db3[_0x5b81d6(0x17f)],_0x431db3[_0x5b81d6(0x189)],_0x331426);let _0x4aa001=await _0x491bf0({'auth':_0x4bb685,'backendUrl':_0x331426,'interop':_0x431db3[_0x5b81d6(0x106)]?_0x5b81d6(0x18f):_0x5b81d6(0x129)});for(let _0x34fc65 of _0x4aa001['checks'])process['stdout'][_0x5b81d6(0x100)](X(_0x34fc65)+'\x0a');_0x4aa001['ok']||process['exit'](0x1);}function X(_0x156572){const _0xa2f811=_0x338425;return{'ok':'✓','failed':'✗','skipped':'-'}[_0x156572[_0xa2f811(0x16a)]]+'\x20'+_0x156572['name']['padEnd'](0x8)+_0x156572[_0xa2f811(0x123)];}async function Y(_0x419dc5){const _0x2c124d=_0x338425;_0x419dc5[_0x2c124d(0x17f)]===_0x2c124d(0x136)&&(console[_0x2c124d(0xf9)]('--env\x20localhost\x20has\x20no\x20OAuth\x20flow;\x20pick\x20alpha,\x20staging,\x20or\x20production.'),process[_0x2c124d(0x196)](0x2));let _0x17cda4=f(_0x33ed2c());if(_0x419dc5[_0x2c124d(0x17f)]){let _0x4ba723=_0x419dc5[_0x2c124d(0x17f)];await _0x15dec6({'env':_0x4ba723,'tenant':_0x419dc5[_0x2c124d(0x152)]??U(_0x17cda4,_0x2faf1a[_0x4ba723])});return;}if(_0x17cda4?.[_0x2c124d(0x161)]){await _0x15dec6({'baseUrl':_0x17cda4[_0x2c124d(0x161)],'tenant':_0x419dc5[_0x2c124d(0x152)]??_0x17cda4['tenantName']});return;}console[_0x2c124d(0xf9)](_0x2c124d(0x105)),process[_0x2c124d(0x196)](0x2);}function U(_0x3839b8,_0x2565eb){const _0x46c0e8=_0x338425;return _0x3839b8?.['baseUrl']&&Q(_0x3839b8[_0x46c0e8(0x161)],_0x2565eb)?_0x3839b8[_0x46c0e8(0xf7)]:void 0x0;}function Q(_0x22a7c3,_0x5cc3d5){const _0x585da4=_0x338425;try{return new URL(_0x22a7c3)['origin']===new URL(_0x5cc3d5)[_0x585da4(0xfb)];}catch{return!0x1;}}async function Z(_0x38e595){const _0x54aab5=_0x338425;v()&&(console[_0x54aab5(0xf9)](_0x54aab5(0x16d)),process['exit'](0x2));let _0x2fc333=await _0x573145();if(_0x2fc333||(console[_0x54aab5(0xf9)](ee()),process[_0x54aab5(0x196)](0x2)),_0x38e595[_0x54aab5(0x165)]()){let _0x515db0=await _0x2dcaad(_0x2fc333,_0x38e595);_0x347155(_0x515db0)||(console[_0x54aab5(0xf9)]('Tenant\x20not\x20switched:\x20could\x20not\x20write\x20'+_0x33ed2c()+_0x54aab5(0x182)+_0x2fc333[_0x54aab5(0xf7)]+'.'),process[_0x54aab5(0x196)](0x1)),console[_0x54aab5(0x15a)](_0x54aab5(0x150)+_0x515db0[_0x54aab5(0xf7)]+'\x20('+_0x515db0[_0x54aab5(0x174)]+_0x54aab5(0x14c)+_0x33ed2c());return;}ne(await _0x313711(_0x2fc333),_0x2fc333);}function ee(){const _0x102a15=_0x338425;if(_0x27be5b[_0x102a15(0x12c)](_0x33ed2c()))return'The\x20saved\x20CLI\x20login\x20could\x20not\x20be\x20refreshed.\x20Run\x20`delegate-cli\x20login`\x20again.';let _0x13767a=k();return f(_0x13767a)?_0x102a15(0x140)+_0x13767a+_0x102a15(0x104):_0x102a15(0x112);}function ne(_0x27114e,_0xb171fb){const _0x5990e8=_0x338425;let _0x1d212f=_0x27114e['map'](_0x5a5a0c=>_0x5a5a0c['id']===_0xb171fb[_0x5990e8(0x174)]?'*\x20'+_0x5a5a0c['name']+_0x5990e8(0x134):'\x20\x20'+_0x5a5a0c[_0x5990e8(0x128)]);process[_0x5990e8(0x177)][_0x5990e8(0x100)]('Tenants\x20of\x20'+(_0xb171fb[_0x5990e8(0x143)]??_0xb171fb[_0x5990e8(0x18a)])+':\x0a'+_0x1d212f[_0x5990e8(0x17e)]('\x0a')+'\x0a'),_0x27114e[_0x5990e8(0xf8)]>0x1&&process[_0x5990e8(0x177)][_0x5990e8(0x100)](_0x5990e8(0x14e));}function te(_0x38477e){const _0x41fe6c=_0x338425;return _0x38477e?.[_0x41fe6c(0x14f)]?.[_0x41fe6c(0x16a)]===0x191||/401/[_0x41fe6c(0x17c)](String(_0x38477e?.[_0x41fe6c(0x199)]??''));}var a={'lastType':null,'quiet':!0x1},S=_0x43256a=>{const _0x4a80e7=_0x338425;switch(_0x43256a[_0x4a80e7(0x118)]){case'thinking':_0x43256a[_0x4a80e7(0x18d)]&&!a[_0x4a80e7(0x10a)]&&(a[_0x4a80e7(0x122)]!==_0x4a80e7(0x19b)&&process[_0x4a80e7(0x11f)][_0x4a80e7(0x100)](_0x4a80e7(0x10e)),process[_0x4a80e7(0x11f)][_0x4a80e7(0x100)](_0x43256a[_0x4a80e7(0x18d)]),a[_0x4a80e7(0x122)]=_0x4a80e7(0x19b));break;case _0x4a80e7(0x184):a[_0x4a80e7(0x122)]!==null&&process[_0x4a80e7(0x11f)][_0x4a80e7(0x100)]('\x0a'),process['stderr'][_0x4a80e7(0x100)]('🔧\x20'+(_0x43256a[_0x4a80e7(0x12e)]??_0x4a80e7(0x187))+'\x0a'),a[_0x4a80e7(0x122)]=_0x4a80e7(0x184);break;case _0x4a80e7(0x199):_0x43256a[_0x4a80e7(0x18d)]&&(a[_0x4a80e7(0x122)]!==_0x4a80e7(0x199)&&a['lastType']!==null&&process['stdout']['write']('\x0a'),process[_0x4a80e7(0x177)][_0x4a80e7(0x100)](_0x43256a['content']),a['lastType']=_0x4a80e7(0x199));break;case _0x4a80e7(0xf9):a[_0x4a80e7(0x122)]!==null&&process[_0x4a80e7(0x11f)][_0x4a80e7(0x100)]('\x0a'),process[_0x4a80e7(0x11f)]['write']('✗\x20'+(_0x43256a[_0x4a80e7(0xf9)]??_0x43256a['message']??'error')+'\x0a'),a[_0x4a80e7(0x122)]=_0x4a80e7(0xf9);break;case _0x4a80e7(0x181):(a['lastType']===_0x4a80e7(0x199)||a[_0x4a80e7(0x122)]===_0x4a80e7(0x19b))&&process[_0x4a80e7(0x177)][_0x4a80e7(0x100)]('\x0a'),process[_0x4a80e7(0x11f)][_0x4a80e7(0x100)]('✓\x20Done\x0a'),a[_0x4a80e7(0x122)]=_0x4a80e7(0x181);break;}};async function oe(_0xfe4ba8){const _0x9128bc=_0x338425;let _0x33c23b=await H(_0xfe4ba8['prompt'],process[_0x9128bc(0x135)]);_0x33c23b||(console[_0x9128bc(0xf9)](_0x9128bc(0x153)),process[_0x9128bc(0x196)](0x2)),a[_0x9128bc(0x10a)]=_0xfe4ba8[_0x9128bc(0x10a)];let _0x1146fd=await w(),_0x2fc78c=new _0x4e498c();_0x2fc78c[_0x9128bc(0x111)](S);let _0x295465=_0x1cd7ef(_0xfe4ba8[_0x9128bc(0x17f)],_0x1146fd,_0xfe4ba8[_0x9128bc(0x189)]);b(_0xfe4ba8[_0x9128bc(0x17f)],_0xfe4ba8[_0x9128bc(0x189)],_0x295465);let _0x25a3f3={'backendUrl':_0x295465,'auth':_0x1146fd,'enableComputerUse':!_0xfe4ba8['headless'],'autoSpawnInterop':!_0xfe4ba8[_0x9128bc(0x106)],'enableConnections':!_0xfe4ba8['noConnections'],'enableSecurity':!_0xfe4ba8[_0x9128bc(0x145)],'keepInteropAlive':_0xfe4ba8[_0x9128bc(0x13c)],..._0xfe4ba8['preloadSkills'][_0x9128bc(0xf8)]>0x0?{'preloadSkills':_0xfe4ba8[_0x9128bc(0x164)]}:{},..._0xfe4ba8[_0x9128bc(0xfa)]||process.env.MODEL?{'model':_0xfe4ba8[_0x9128bc(0xfa)]||process.env.MODEL}:{}},_0x3c5682=!0x1,_0x594edc=!0x1,_0x2a3a80=()=>{const _0x34f3e9=_0x9128bc;_0x594edc&&process[_0x34f3e9(0x196)](0x82),_0x594edc=!0x0,process[_0x34f3e9(0x11f)][_0x34f3e9(0x100)](_0x34f3e9(0x167)),_0x3c5682?_0x2fc78c[_0x34f3e9(0x179)]()[_0x34f3e9(0x192)](()=>process[_0x34f3e9(0x196)](0x82)):process[_0x34f3e9(0x196)](0x82);};process['once'](_0x9128bc(0x18b),_0x2a3a80),await _0x2fc78c[_0x9128bc(0x137)](_0x25a3f3),_0x3c5682=!0x0;try{await _0x2fc78c[_0x9128bc(0x198)](_0x33c23b);}catch(_0x28fdd5){if(te(_0x28fdd5)&&process[_0x9128bc(0x135)]['isTTY']&&_0xfe4ba8[_0x9128bc(0x17f)]!==_0x9128bc(0x136)&&(_0xfe4ba8[_0x9128bc(0x17f)]||_0x1146fd[_0x9128bc(0x161)])){process[_0x9128bc(0x11f)]['write'](_0x9128bc(0x121));let _0x3fb5d0=await _0x15dec6(_0xfe4ba8[_0x9128bc(0x17f)]?{'env':_0xfe4ba8[_0x9128bc(0x17f)],'tenant':U(_0x1146fd,_0x2faf1a[_0xfe4ba8[_0x9128bc(0x17f)]])}:{'baseUrl':_0x1146fd[_0x9128bc(0x161)],'tenant':_0x1146fd[_0x9128bc(0xf7)]});await _0x2fc78c[_0x9128bc(0x179)](),_0x2fc78c=new _0x4e498c(),_0x2fc78c[_0x9128bc(0x111)](S),await _0x2fc78c['initialize']({..._0x25a3f3,'auth':_0x3fb5d0}),await _0x2fc78c[_0x9128bc(0x198)](_0x33c23b);}else throw _0x28fdd5;}finally{process[_0x9128bc(0x168)](_0x9128bc(0x18b),_0x2a3a80),await _0x2fc78c[_0x9128bc(0x179)]();}}async function se(){const _0x42368c=_0x338425;let _0x496c19=x(process[_0x42368c(0x17a)][_0x42368c(0xfd)](0x2));if(_0x496c19['help']){M();return;}if(_0x496c19[_0x42368c(0x171)]){console[_0x42368c(0x15a)](B());return;}if(_0x496c19[_0x42368c(0x188)]===_0x42368c(0xf4)){await Y(_0x496c19);return;}if(_0x496c19[_0x42368c(0x188)]===_0x42368c(0x152)){await Z(_0x496c19[_0x42368c(0x176)]);return;}if(_0x496c19[_0x42368c(0x188)]==='logout'){await z();return;}if(_0x496c19['subcommand']===_0x42368c(0x108)){await j();return;}if(_0x496c19[_0x42368c(0x188)]==='models'){await J(_0x496c19);return;}if(_0x496c19['subcommand']===_0x42368c(0xee)){await V(_0x496c19);return;}if(_0x496c19[_0x42368c(0x188)]===_0x42368c(0x191)){await _0x4e3f5d(_0x496c19[_0x42368c(0x176)],{'runnerUrl':_0x496c19['runnerUrl'],'backendUrl':_0x496c19['backendUrl'],'interopPath':_0x496c19[_0x42368c(0x109)],'workerId':_0x496c19[_0x42368c(0x125)]});return;}if(_0x496c19[_0x42368c(0x193)]){await K();return;}await oe(_0x496c19);}var re=process.env.NODE_ENV===_0x338425(0x17c)||!!process.env.JEST_WORKER_ID;re||se()[_0x338425(0x117)](_0x776195=>{const _0x5a8064=_0x338425;console[_0x5a8064(0xf9)](_0x776195[_0x5a8064(0x142)]||_0x776195[_0x5a8064(0x199)]||_0x776195),process[_0x5a8064(0x196)](0x1);});export{q as IMPLICIT_STDIN_IDLE_MS,se as main,x as parseArgs,B as readCliVersion,H as resolvePrompt};
2
+ const _0x4a471e=_0x4951;(function(_0x5c2b2a,_0x1a2c84){const _0x5664f6=_0x4951,_0x1179e3=_0x5c2b2a();while(!![]){try{const _0x2f7572=parseInt(_0x5664f6(0x28d))/0x1*(parseInt(_0x5664f6(0x204))/0x2)+parseInt(_0x5664f6(0x29a))/0x3+parseInt(_0x5664f6(0x226))/0x4*(-parseInt(_0x5664f6(0x2be))/0x5)+parseInt(_0x5664f6(0x248))/0x6*(parseInt(_0x5664f6(0x28e))/0x7)+-parseInt(_0x5664f6(0x25a))/0x8*(-parseInt(_0x5664f6(0x2b6))/0x9)+parseInt(_0x5664f6(0x24f))/0xa+-parseInt(_0x5664f6(0x272))/0xb*(parseInt(_0x5664f6(0x22a))/0xc);if(_0x2f7572===_0x1a2c84)break;else _0x1179e3['push'](_0x1179e3['shift']());}catch(_0x3a6712){_0x1179e3['push'](_0x1179e3['shift']());}}}(_0x3832,0xe6ae9));const __dirname=import.meta.dirname;import _0x50336b from'fs';import _0x204d85 from'path';import{clearLine as _0x2952ae,createInterface as _0x2a0627,cursorTo as _0x1f2531}from'node:readline';import{BUSINESS_ANALYSIS_PRELOADED_SKILLS as _0x10490e,DelegateAgent as _0xa7a291,InteropProcess as _0x2f0776,getAuthFilePath as _0x4ac8fe,isSafeProjectFolderSegment as _0x4051e0,listTenants as _0x3cbb89,loadAndRefreshAuth as _0x548865,loadAndRefreshSdkLogin as _0x55b849,resolveBackendUrl as _0x36a529,runHealthCheck as _0x643e52,runHostCommand as _0x495611,runLoginFlow as _0x3aa045,saveAuthData as _0x4c6fed,switchTenant as _0x51fa6b,ENV_TO_CLOUD as _0x1c9922}from'@uipath/delegate-sdk';var V=[_0x4a471e(0x2a2),_0x4a471e(0x290),_0x4a471e(0x1f1),_0x4a471e(0x295),'logout',_0x4a471e(0x240),_0x4a471e(0x213)],N=[_0x4a471e(0x236),_0x4a471e(0x216),'high',_0x4a471e(0x2a6),'max'],X=_0x10490e;function f(_0x405724,_0x405d55,_0x569cd1,_0x5f9cff){const _0x49067d=_0x4a471e;let _0x3bb0fb=_0x405724[_0x405d55];return(!_0x3bb0fb||_0x3bb0fb[_0x49067d(0x252)]>0x1&&_0x3bb0fb[_0x49067d(0x2bb)]('-'))&&(console['error'](_0x569cd1+'\x20requires\x20'+_0x5f9cff+'.'),process[_0x49067d(0x20a)](0x2)),_0x3bb0fb;}function Q(_0x189885){const _0xc9a055=_0x4a471e;let _0x533980={'subcommand':'','prompt':'','print':!0x1,'keepAlive':!0x1,'cleanup':!0x1,'headless':!0x1,'noComputerUse':!0x1,'cartographer':!0x1,'noConnections':!0x1,'noSecurity':!0x1,'quiet':!0x1,'verbose':!0x1,'preloadSkills':[],'help':!0x1,'version':!0x1};V[_0xc9a055(0x28a)](_0x189885[0x0])&&(_0x533980[_0xc9a055(0x206)]=_0x189885[0x0],_0x189885=_0x189885[_0xc9a055(0x2c3)](0x1));let _0x571ee1=[];for(let _0xee63d6=0x0;_0xee63d6<_0x189885[_0xc9a055(0x252)];_0xee63d6++){let _0x343358=_0x189885[_0xee63d6];switch(_0x343358){case'--print':case'-p':_0x533980[_0xc9a055(0x2aa)]=!0x0;break;case'--keep-alive':_0x533980['keepAlive']=!0x0;break;case _0xc9a055(0x221):_0x533980[_0xc9a055(0x22e)]=!0x0;break;case'--headless':_0x533980['headless']=!0x0;break;case _0xc9a055(0x1fa):_0x533980['noComputerUse']=!0x0;break;case _0xc9a055(0x228):_0x533980[_0xc9a055(0x2ab)]=!0x0,_0x533980[_0xc9a055(0x288)]=!0x0,_0x533980['preloadSkills'][_0xc9a055(0x2a1)](...X);break;case _0xc9a055(0x22b):_0x533980[_0xc9a055(0x270)]=!0x0;break;case _0xc9a055(0x25c):_0x533980[_0xc9a055(0x218)]=!0x0;break;case _0xc9a055(0x21e):case'-q':_0x533980[_0xc9a055(0x1f4)]=!0x0;break;case _0xc9a055(0x27f):_0x533980['verbose']=!0x0;break;case _0xc9a055(0x277):_0x533980['backendUrl']=_0x189885[++_0xee63d6];break;case _0xc9a055(0x27e):_0x533980[_0xc9a055(0x220)]=_0x189885[++_0xee63d6];break;case'--runner-url':_0x533980[_0xc9a055(0x283)]=_0x189885[++_0xee63d6];break;case _0xc9a055(0x276):_0x533980['interopPath']=_0x189885[++_0xee63d6];break;case _0xc9a055(0x217):_0x533980[_0xc9a055(0x1f5)]=_0x189885[++_0xee63d6];break;case _0xc9a055(0x227):_0x533980['preloadSkills'][_0xc9a055(0x2a1)](f(_0x189885,++_0xee63d6,_0x343358,_0xc9a055(0x210)));break;case _0xc9a055(0x234):{let _0xb00a24=f(_0x189885,++_0xee63d6,_0x343358,_0xc9a055(0x2af));_0x4051e0(_0xb00a24)||(console[_0xc9a055(0x280)]('Invalid\x20--project:\x20\x22'+_0xb00a24+'\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[_0xc9a055(0x20a)](0x2)),_0x533980[_0xc9a055(0x26d)]=_0xb00a24;break;}case _0xc9a055(0x287):_0x533980[_0xc9a055(0x26c)]=f(_0x189885,++_0xee63d6,_0x343358,_0xc9a055(0x261));break;case _0xc9a055(0x25d):_0x533980[_0xc9a055(0x285)]=_0x204d85[_0xc9a055(0x207)](process[_0xc9a055(0x274)](),f(_0x189885,++_0xee63d6,_0x343358,_0xc9a055(0x2c5)));break;case _0xc9a055(0x260):_0x533980[_0xc9a055(0x24e)]=_0x204d85[_0xc9a055(0x207)](process[_0xc9a055(0x274)](),f(_0x189885,++_0xee63d6,_0x343358,'a\x20directory\x20path'));break;case _0xc9a055(0x24d):{let _0x2db3ab=f(_0x189885,++_0xee63d6,_0x343358,_0xc9a055(0x1ff));N['includes'](_0x2db3ab)||(console[_0xc9a055(0x280)](_0xc9a055(0x200)+_0x2db3ab+_0xc9a055(0x266)+N[_0xc9a055(0x294)](_0xc9a055(0x251))+'.'),process[_0xc9a055(0x20a)](0x2)),_0x533980['effort']=_0x2db3ab;break;}case _0xc9a055(0x239):{let _0x2c8a44=_0x189885[++_0xee63d6];(!_0x2c8a44||_0x2c8a44[_0xc9a055(0x2bb)]('--'))&&(console[_0xc9a055(0x280)](_0xc9a055(0x224)),process[_0xc9a055(0x20a)](0x2)),_0x533980['tenant']=_0x2c8a44;break;}case _0xc9a055(0x244):{let _0x473fe2=_0x189885[++_0xee63d6];['alpha',_0xc9a055(0x22f),_0xc9a055(0x2a3),_0xc9a055(0x269)][_0xc9a055(0x28a)](_0x473fe2)||(console[_0xc9a055(0x280)](_0xc9a055(0x2b7)+_0x473fe2+_0xc9a055(0x23d)),process[_0xc9a055(0x20a)](0x2)),_0x533980[_0xc9a055(0x23c)]=_0x473fe2;break;}case'-h':case _0xc9a055(0x2bd):_0x533980[_0xc9a055(0x29b)]=!0x0;break;case'-v':case _0xc9a055(0x2ac):_0x533980['version']=!0x0;break;default:_0x343358['startsWith']('--')&&(console[_0xc9a055(0x280)](_0xc9a055(0x26a)+_0x343358),process[_0xc9a055(0x20a)](0x2)),_0x571ee1['push'](_0x343358);}}return _0x533980[_0xc9a055(0x290)]!==void 0x0&&_0x533980[_0xc9a055(0x206)]!==_0xc9a055(0x2a2)&&(console[_0xc9a055(0x280)]('--tenant\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Switch\x20tenants\x20with:\x20delegate-cli\x20tenant\x20<name>'),process[_0xc9a055(0x20a)](0x2)),_0x533980['preloadSkills']=[...new Set(_0x533980[_0xc9a055(0x223)])],_0x533980[_0xc9a055(0x21d)]=_0x571ee1[_0xc9a055(0x294)]('\x20'),_0x533980;}function Z(){const _0x4fc231=_0x4a471e;let _0xa74459=_0x4fc231(0x264)[_0x4fc231(0x297)]();console[_0x4fc231(0x265)](_0xa74459);}function ee(){const _0xe82cd0=_0x4a471e;try{return JSON[_0xe82cd0(0x1f0)](_0x50336b['readFileSync'](_0x204d85[_0xe82cd0(0x294)](__dirname,'..',_0xe82cd0(0x247)),_0xe82cd0(0x2a4)))[_0xe82cd0(0x2b2)]||'unknown';}catch{return _0xe82cd0(0x263);}}var te=0x7d0;async function L(_0x9bd3f9,_0x50273c){const _0x2ee0fe=_0x4a471e;let _0xecd7a=_0x50273c?[_0x50273c]:[];for await(let _0x3404fa of _0x9bd3f9)_0xecd7a[_0x2ee0fe(0x2a1)](Buffer[_0x2ee0fe(0x1fc)](_0x3404fa));return Buffer[_0x2ee0fe(0x25f)](_0xecd7a)[_0x2ee0fe(0x284)](_0x2ee0fe(0x2a4))[_0x2ee0fe(0x297)]();}function ne(_0x447567,_0x51f366){return new Promise(_0x3221ae=>{const _0x2d3f6a=_0x4951;let _0x12d7d2=_0x1fef96=>{const _0x27d01e=_0x4951;clearTimeout(_0x457f4b),_0x447567['off'](_0x27d01e(0x25b),_0x577ba0),_0x447567['off'](_0x27d01e(0x2a5),_0x409930),_0x447567[_0x27d01e(0x21a)]('error',_0x409930),_0x447567[_0x27d01e(0x256)](),_0x3221ae(_0x1fef96);},_0x577ba0=_0x2aa03d=>_0x12d7d2(Buffer['from'](_0x2aa03d)),_0x409930=()=>_0x12d7d2(null),_0x457f4b=setTimeout(()=>_0x12d7d2(null),_0x51f366);_0x447567['on'](_0x2d3f6a(0x25b),_0x577ba0),_0x447567['on'](_0x2d3f6a(0x2a5),_0x409930),_0x447567['on'](_0x2d3f6a(0x280),_0x409930),_0x447567[_0x2d3f6a(0x235)]();});}async function oe(_0x506b0d,_0x597b44,_0x3b6f5b=te){const _0xf2e8d=_0x4a471e;let _0x30ff0b=_0x506b0d==='-';if(!_0x30ff0b&&_0x506b0d)return _0x506b0d;if(!_0x30ff0b&&_0x597b44[_0xf2e8d(0x267)])return'';if(_0x30ff0b)return L(_0x597b44,null);let _0xd2c964=await ne(_0x597b44,_0x3b6f5b);return _0xd2c964?L(_0x597b44,_0xd2c964):'';}function S(){const _0x272053=_0x4a471e;return _0x204d85[_0x272053(0x294)](process.env.HOME||process.env.USERPROFILE||'',_0x272053(0x232),_0x272053(0x2b4));}function k(_0x31c9f0){const _0x5add28=_0x4a471e;try{let _0x5860f1=JSON[_0x5add28(0x1f0)](_0x50336b[_0x5add28(0x249)](_0x31c9f0,_0x5add28(0x2a4)));return!_0x5860f1[_0x5add28(0x1f8)]||!_0x5860f1[_0x5add28(0x211)]||!_0x5860f1[_0x5add28(0x2b9)]?null:_0x5860f1;}catch{return null;}}function se(){const _0x4e7758=_0x4a471e;let _0x4dc955=[{'file':_0x4ac8fe(),'isDesktopFallback':!0x1},{'file':S(),'isDesktopFallback':!0x0}];for(let _0x181c83 of _0x4dc955){let _0x46fb8e=k(_0x181c83[_0x4e7758(0x229)]);if(_0x46fb8e)return{..._0x181c83,'auth':_0x46fb8e};}return null;}async function re(){const _0x42c934=_0x4a471e;let _0x568bce=_0x4ac8fe();if(!_0x50336b[_0x42c934(0x26f)](_0x568bce)){let _0xfc6f41=S();console[_0x42c934(0x265)](k(_0xfc6f41)?'No\x20CLI\x20login\x20found.\x20Note:\x20the\x20CLI\x20is\x20currently\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20'+_0xfc6f41+_0x42c934(0x28f):'No\x20CLI\x20login\x20found\x20—\x20nothing\x20to\x20remove.');return;}_0x50336b[_0x42c934(0x243)](_0x568bce),console[_0x42c934(0x265)](_0x42c934(0x286)+_0x568bce);}async function ie(){const _0x4ddc4a=_0x4a471e;let _0x2c5431=y(),_0x3f3300,_0xeb5fdc;if(_0x2c5431)_0x3f3300=_0x2c5431,_0xeb5fdc='environment\x20variables\x20(AUTH_TOKEN/TENANT_ID/ORG_ID)';else{let _0x50bb11=se();if(!_0x50bb11)throw new Error(C);_0x3f3300=_0x50bb11[_0x4ddc4a(0x1fd)],_0xeb5fdc=_0x50bb11[_0x4ddc4a(0x27a)]?_0x50bb11[_0x4ddc4a(0x229)]+_0x4ddc4a(0x21b):_0x50bb11[_0x4ddc4a(0x229)];}let _0x1e52a2=[_0x4ddc4a(0x1f2)+_0xeb5fdc,_0x4ddc4a(0x2b3)+(_0x3f3300[_0x4ddc4a(0x28c)]??_0x4ddc4a(0x263)),_0x4ddc4a(0x2a0)+(_0x3f3300[_0x4ddc4a(0x29e)]??_0x4ddc4a(0x24c))+'\x20('+_0x3f3300[_0x4ddc4a(0x2b9)]+')',_0x4ddc4a(0x20c)+(_0x3f3300[_0x4ddc4a(0x1f7)]??'unknown\x20slug')+'\x20('+_0x3f3300['tenantId']+')'];if(_0x3f3300[_0x4ddc4a(0x23a)]){let _0xd3ed86=_0x3f3300[_0x4ddc4a(0x23a)]-Math[_0x4ddc4a(0x23b)](Date[_0x4ddc4a(0x259)]()/0x3e8),_0x510594=new Date(_0x3f3300['expiresAt']*0x3e8)['toISOString']();_0x1e52a2[_0x4ddc4a(0x2a1)](_0xd3ed86>0x0?_0x4ddc4a(0x278)+_0x510594+_0x4ddc4a(0x23e)+Math['round'](_0xd3ed86/0x3c)+_0x4ddc4a(0x23f):_0x4ddc4a(0x253)+_0x510594);}process[_0x4ddc4a(0x2c1)]['write'](_0x1e52a2[_0x4ddc4a(0x294)]('\x0a')+'\x0a');}var C=_0x4a471e(0x24b);function _0x4951(_0x50b515,_0x48e812){_0x50b515=_0x50b515-0x1ef;const _0x383239=_0x3832();let _0x4951ee=_0x383239[_0x50b515];return _0x4951ee;}function y(){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':process.env.UIPATH_BASE_URL}:null;}async function A(){let _0x548cd9=y();if(_0x548cd9)return _0x548cd9;let _0x5eb821=await _0x548865();if(_0x5eb821)return _0x5eb821;throw new Error(C);}async function ae(){const _0x4e6127=_0x4a471e;await new _0x2f0776()[_0x4e6127(0x291)]({'force':!0x0}),console['log'](_0x4e6127(0x27c));}var le=_0x4a471e(0x242);function I(_0x29e195,_0x5ddabc,_0x38dc9d){const _0x4ac3e7=_0x4a471e;_0x29e195?process[_0x4ac3e7(0x2b5)][_0x4ac3e7(0x299)](_0x4ac3e7(0x2c4)+_0x29e195+_0x4ac3e7(0x2ba)+_0x38dc9d+'\x0a'):!_0x5ddabc&&!process.env.BACKEND_URL&&process[_0x4ac3e7(0x2b5)][_0x4ac3e7(0x299)](_0x4ac3e7(0x203)+_0x38dc9d+'\x0a');}async function ce(_0x44c141){const _0x28f00c=_0x4a471e;let _0x449f13=await A(),_0x413670=_0x36a529(_0x44c141['env'],_0x449f13,_0x44c141[_0x28f00c(0x275)]);I(_0x44c141[_0x28f00c(0x23c)],_0x44c141['backendUrl'],_0x413670);let _0x3e270c=_0x413670+_0x28f00c(0x237),_0x23a184={'Authorization':'Bearer\x20'+_0x449f13[_0x28f00c(0x1f8)],'X-UiPath-ConsumingProductId':le};_0x449f13['tenantId']&&(_0x23a184[_0x28f00c(0x2c0)]=_0x449f13[_0x28f00c(0x211)]),_0x449f13[_0x28f00c(0x2b9)]&&(_0x23a184[_0x28f00c(0x208)]=_0x449f13[_0x28f00c(0x2b9)]);let _0x24962b=await fetch(_0x3e270c,{'headers':_0x23a184});if(!_0x24962b['ok'])throw new Error(_0x28f00c(0x292)+_0x3e270c+_0x28f00c(0x2bc)+_0x24962b[_0x28f00c(0x231)]+'\x20'+_0x24962b[_0x28f00c(0x27b)]);let _0x37374e=(await _0x24962b[_0x28f00c(0x201)]())?.[_0x28f00c(0x28b)],_0x127015=Array[_0x28f00c(0x22d)](_0x37374e)?_0x37374e:_0x37374e&&typeof _0x37374e==_0x28f00c(0x289)?Object['entries'](_0x37374e)['map'](([_0xb96896,_0x251d14])=>({'id':_0xb96896,'name':_0x251d14})):[];if(_0x127015['length']===0x0){process[_0x28f00c(0x2b5)][_0x28f00c(0x299)](_0x28f00c(0x230));return;}process[_0x28f00c(0x2c1)][_0x28f00c(0x299)](_0x28f00c(0x20e)+_0x127015[_0x28f00c(0x252)]+_0x28f00c(0x2a7));for(let _0x569efb of _0x127015){let _0x1425ec=_0x569efb['name']&&_0x569efb[_0x28f00c(0x205)]!==_0x569efb['id']?'\x20('+_0x569efb[_0x28f00c(0x205)]+')':'';process[_0x28f00c(0x2c1)]['write']('\x20\x20'+_0x569efb['id']+_0x1425ec+'\x0a'),_0x569efb[_0x28f00c(0x273)]&&process['stdout'][_0x28f00c(0x299)](_0x28f00c(0x27d)+_0x569efb[_0x28f00c(0x273)]+'\x0a');}process[_0x28f00c(0x2c1)]['write']('\x0aUse\x20with:\x20delegate-cli\x20--model\x20<id>\x20\x22<prompt>\x22\x0a');}async function de(_0x41b05b){const _0xf654e0=_0x4a471e;let _0x509030=await A(),_0x292443=_0x36a529(_0x41b05b[_0xf654e0(0x23c)],_0x509030,_0x41b05b[_0xf654e0(0x275)]);I(_0x41b05b[_0xf654e0(0x23c)],_0x41b05b['backendUrl'],_0x292443);let _0x303b78=await _0x643e52({'auth':_0x509030,'backendUrl':_0x292443,'interop':_0x41b05b[_0xf654e0(0x1f6)]?_0xf654e0(0x2bf):_0xf654e0(0x282)});for(let _0x2b7110 of _0x303b78[_0xf654e0(0x20d)])process[_0xf654e0(0x2c1)]['write'](ue(_0x2b7110)+'\x0a');_0x303b78['ok']||process['exit'](0x1);}function _0x3832(){const _0xca60ec=[',\x20whose\x20tenant\x20is\x20chosen\x20in\x20the\x20app.\x20Run\x20`delegate-cli\x20login\x20--env\x20<env>`\x20for\x20a\x20CLI\x20login\x20of\x20your\x20own.','preloadSkills','--tenant\x20requires\x20a\x20tenant\x20name.','bind','3860ghexVv','--preload-skill','--cartographer','file','67452yZqBNq','--no-connections','\x0aStopping…\x20(Ctrl+C\x20again\x20to\x20force\x20exit)\x0a','isArray','cleanup','staging','No\x20models\x20available\x20for\x20this\x20product/tenant.\x0a','status','.aria','No\x20CLI\x20login\x20found.\x20Run\x20`delegate-cli\x20login\x20--env\x20<alpha|staging|production>`\x20first.','--project','resume','low','/v1/config','show','--tenant','expiresAt','floor','env','.\x20Use\x20alpha\x20|\x20staging\x20|\x20production\x20|\x20localhost.','\x20(in\x20','\x20min)','whoami','Tenant\x20not\x20switched:\x20could\x20not\x20write\x20','799f56b8-4aed-4a0f-8640-659dae4a9e0e','rmSync','--env','done','close','package.json','2390412xRIvmM','readFileSync','Switch\x20with:\x20delegate-cli\x20tenant\x20<name>\x0a','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(interactive\x20browser\x20OAuth)\x20first.','unknown\x20slug','--effort','bundledSkillsPath','5939150WHrMrv','tool','\x20|\x20','length','Token:\x20\x20\x20\x20\x20\x20\x20\x20expired\x20','exitCode','restore','pause','origin','The\x20saved\x20CLI\x20login\x20could\x20not\x20be\x20refreshed.\x20Run\x20`delegate-cli\x20login`\x20again.','now','8ixvdJh','data','--no-security','--working-dir','getSessionId','concat','--skills-path','a\x20session\x20id','Enter\x20sends\x20a\x20message.\x20/exit\x20or\x20EOF\x20exits;\x20Ctrl+C\x20stops\x20and\x20exits.\x0a','unknown','\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[--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\x20required\x20on\x20FIRST\x20login;\x20afterwards\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20defaults\x20to\x20the\x20saved\x20login\x27s\x20cloud.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--tenant\x20picks\x20a\x20tenant\x20by\x20name;\x20without\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\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\x20a\x20re-login\x20keeps\x20the\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\x20cloud\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--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','log','.\x20Use\x20','isTTY','type','localhost','Unknown\x20flag:\x20','toolName','sessionId','projectId','interopPath','existsSync','noConnections','lastType','8844WxMCfI','description','cwd','backendUrl','--interop','--backend','Token:\x20\x20\x20\x20\x20\x20\x20\x20expires\x20','once','isDesktopFallback','statusText','Interop\x20stopped\x20(if\x20it\x20was\x20running).','\x20\x20\x20\x20','--model','--verbose','error','sendMessage','spawn','runnerUrl','toString','workingDirectory','Removed\x20','--session','noComputerUse','object','includes','MODELS','baseUrl','1jnVFxy','28PshGTC','\x20—\x20sign\x20out\x20in\x20the\x20Delegate\x20app\x20to\x20clear\x20that.','tenant','stop','GET\x20','initialize','join','host','logout','trim','tool_call','write','2218365bRIEBl','help','Session:\x20','\x20(resume\x20with\x20--session\x20','orgLogicalName','\x20(current)','Organization:\x20','push','login','production','utf-8','end','xhigh','):\x0a\x0a','You>\x20','session_start','print','cartographer','--version','onEvent','response','a\x20project\x20id','test','detail','version','Base\x20URL:\x20\x20\x20\x20\x20','auth.json','stderr','16089129GAMKaN','Invalid\x20--env:\x20','Tenants\x20of\x20','organizationId',']\x20Backend\x20URL:\x20','startsWith','\x20→\x20','--help','2075vzJFaU','skip','X-Uipath-Tenantid','stdout','thinking','slice','[env=','a\x20directory\x20path','effort','parse','models','Source:\x20\x20\x20\x20\x20\x20\x20','No\x20CLI\x20login\x20to\x20switch:\x20the\x20CLI\x20is\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20','quiet','workerId','headless','tenantName','accessToken','/exit','--no-computer-use','padEnd','from','auth','content','an\x20effort\x20tier','Invalid\x20--effort:\x20','json','hide','[saved\x20login]\x20Backend\x20URL:\x20','2299946DKzKYv','name','subcommand','resolve','X-Uipath-Organizationid','catch','exit','Tenant:\x20','Tenant:\x20\x20\x20\x20\x20\x20\x20','checks','\x0aAvailable\x20models\x20(','destroy','a\x20skill\x20name','tenantId','First\x20login\x20requires\x20--env.\x20Usage:\x20delegate-cli\x20login\x20--env\x20<alpha|staging|production>','check','stdin',';\x20the\x20saved\x20login\x20still\x20uses\x20','medium','--worker-id','noSecurity','--env\x20localhost\x20has\x20no\x20OAuth\x20flow;\x20pick\x20alpha,\x20staging,\x20or\x20production.','off','\x20(Delegate\x20desktop\x20app\x20fallback)','message','prompt','--quiet','SIGINT','model','--cleanup'];_0x3832=function(){return _0xca60ec;};return _0x3832();}function ue(_0x131c07){const _0x2857ab=_0x4a471e;return{'ok':'✓','failed':'✗','skipped':'-'}[_0x131c07[_0x2857ab(0x231)]]+'\x20'+_0x131c07['name'][_0x2857ab(0x1fb)](0x8)+_0x131c07[_0x2857ab(0x2b1)];}async function pe(_0xf087eb){const _0x5868ce=_0x4a471e;_0xf087eb[_0x5868ce(0x23c)]===_0x5868ce(0x269)&&(console['error'](_0x5868ce(0x219)),process[_0x5868ce(0x20a)](0x2));let _0x4b3253=k(_0x4ac8fe());if(_0xf087eb['env']){let _0x2b15f6=_0xf087eb[_0x5868ce(0x23c)];await _0x3aa045({'env':_0x2b15f6,'tenant':_0xf087eb[_0x5868ce(0x290)]??P(_0x4b3253,_0x1c9922[_0x2b15f6])});return;}if(_0x4b3253?.[_0x5868ce(0x28c)]){await _0x3aa045({'baseUrl':_0x4b3253['baseUrl'],'tenant':_0xf087eb[_0x5868ce(0x290)]??_0x4b3253[_0x5868ce(0x1f7)]});return;}console[_0x5868ce(0x280)](_0x5868ce(0x212)),process[_0x5868ce(0x20a)](0x2);}function P(_0x725231,_0x3bb43f){const _0x6e9f3=_0x4a471e;return _0x725231?.[_0x6e9f3(0x28c)]&&fe(_0x725231['baseUrl'],_0x3bb43f)?_0x725231['tenantName']:void 0x0;}function fe(_0x2be671,_0x3896e6){const _0x51911c=_0x4a471e;try{return new URL(_0x2be671)[_0x51911c(0x257)]===new URL(_0x3896e6)[_0x51911c(0x257)];}catch{return!0x1;}}async function he(_0xedb0f0){const _0x4d2016=_0x4a471e;y()&&(console['error']('Auth\x20comes\x20from\x20AUTH_TOKEN/TENANT_ID/ORG_ID\x20—\x20set\x20TENANT_ID\x20and\x20TENANT_SLUG\x20to\x20change\x20the\x20tenant.'),process['exit'](0x2));let _0x5cea32=await _0x55b849();if(_0x5cea32||(console[_0x4d2016(0x280)](ge()),process[_0x4d2016(0x20a)](0x2)),_0xedb0f0[_0x4d2016(0x297)]()){let _0x3af5a0=await _0x51fa6b(_0x5cea32,_0xedb0f0);_0x4c6fed(_0x3af5a0)||(console[_0x4d2016(0x280)](_0x4d2016(0x241)+_0x4ac8fe()+_0x4d2016(0x215)+_0x5cea32[_0x4d2016(0x1f7)]+'.'),process[_0x4d2016(0x20a)](0x1)),console[_0x4d2016(0x265)](_0x4d2016(0x20b)+_0x3af5a0['tenantName']+'\x20('+_0x3af5a0['tenantId']+')\x20—\x20saved\x20to\x20'+_0x4ac8fe());return;}me(await _0x3cbb89(_0x5cea32),_0x5cea32);}function ge(){const _0x1893e9=_0x4a471e;if(_0x50336b[_0x1893e9(0x26f)](_0x4ac8fe()))return _0x1893e9(0x258);let _0x44956b=S();return k(_0x44956b)?_0x1893e9(0x1f3)+_0x44956b+_0x1893e9(0x222):_0x1893e9(0x233);}function me(_0x478226,_0x2a4ec3){const _0x1ac7dd=_0x4a471e;let _0x1ebf8e=_0x478226['map'](_0x730194=>_0x730194['id']===_0x2a4ec3[_0x1ac7dd(0x211)]?'*\x20'+_0x730194[_0x1ac7dd(0x205)]+_0x1ac7dd(0x29f):'\x20\x20'+_0x730194['name']);process[_0x1ac7dd(0x2c1)][_0x1ac7dd(0x299)](_0x1ac7dd(0x2b8)+(_0x2a4ec3[_0x1ac7dd(0x29e)]??_0x2a4ec3[_0x1ac7dd(0x2b9)])+':\x0a'+_0x1ebf8e[_0x1ac7dd(0x294)]('\x0a')+'\x0a'),_0x478226['length']>0x1&&process[_0x1ac7dd(0x2c1)][_0x1ac7dd(0x299)](_0x1ac7dd(0x24a));}function ke(_0x7112ab){const _0x9c2736=_0x4a471e;return _0x7112ab?.[_0x9c2736(0x2ae)]?.[_0x9c2736(0x231)]===0x191||/401/[_0x9c2736(0x2b0)](String(_0x7112ab?.['message']??''));}var l={'lastType':null,'quiet':!0x1},_=_0x3c1a54=>{const _0x4e74f=_0x4a471e;switch(_0x3c1a54[_0x4e74f(0x268)]){case _0x4e74f(0x2a9):_0x3c1a54[_0x4e74f(0x26c)]&&_0x3c1a54[_0x4e74f(0x26c)]!==l['sessionId']&&(process[_0x4e74f(0x2b5)][_0x4e74f(0x299)](_0x4e74f(0x29c)+_0x3c1a54[_0x4e74f(0x26c)]+_0x4e74f(0x29d)+_0x3c1a54[_0x4e74f(0x26c)]+')\x0a'),l['sessionId']=_0x3c1a54[_0x4e74f(0x26c)]);break;case'thinking':_0x3c1a54['content']&&!l[_0x4e74f(0x1f4)]&&(l[_0x4e74f(0x271)]!=='thinking'&&process[_0x4e74f(0x2b5)][_0x4e74f(0x299)]('\x0a🤔\x20'),process[_0x4e74f(0x2b5)][_0x4e74f(0x299)](_0x3c1a54[_0x4e74f(0x1fe)]),l[_0x4e74f(0x271)]=_0x4e74f(0x2c2));break;case _0x4e74f(0x298):l[_0x4e74f(0x271)]!==null&&process[_0x4e74f(0x2b5)]['write']('\x0a'),process[_0x4e74f(0x2b5)][_0x4e74f(0x299)]('🔧\x20'+(_0x3c1a54[_0x4e74f(0x26b)]??_0x4e74f(0x250))+'\x0a'),l[_0x4e74f(0x271)]='tool_call';break;case _0x4e74f(0x21c):_0x3c1a54['content']&&(l[_0x4e74f(0x271)]!==_0x4e74f(0x21c)&&l[_0x4e74f(0x271)]!==null&&process[_0x4e74f(0x2c1)][_0x4e74f(0x299)]('\x0a'),process[_0x4e74f(0x2c1)][_0x4e74f(0x299)](_0x3c1a54[_0x4e74f(0x1fe)]),l[_0x4e74f(0x271)]='message');break;case _0x4e74f(0x280):l[_0x4e74f(0x271)]!==null&&process[_0x4e74f(0x2b5)][_0x4e74f(0x299)]('\x0a'),process['stderr'][_0x4e74f(0x299)]('✗\x20'+(_0x3c1a54[_0x4e74f(0x280)]??_0x4e74f(0x280))+'\x0a'),l[_0x4e74f(0x271)]=_0x4e74f(0x280);break;case _0x4e74f(0x245):(l[_0x4e74f(0x271)]===_0x4e74f(0x21c)||l[_0x4e74f(0x271)]===_0x4e74f(0x2c2))&&process['stdout'][_0x4e74f(0x299)]('\x0a'),process[_0x4e74f(0x2b5)][_0x4e74f(0x299)]('✓\x20Done\x0a'),l[_0x4e74f(0x271)]='done';break;}};function R(_0x54f481,_0x6d33ca,_0x46a181){const _0x30ecfe=_0x4a471e;let _0x5dd0f5=_0x54f481[_0x30ecfe(0x220)]||process.env.MODEL;return{'backendUrl':_0x46a181,'auth':_0x6d33ca,'enableComputerUse':!_0x54f481[_0x30ecfe(0x1f6)]&&!_0x54f481[_0x30ecfe(0x288)],'autoSpawnInterop':!_0x54f481[_0x30ecfe(0x1f6)],'enableConnections':!_0x54f481['noConnections'],'enableSecurity':!_0x54f481[_0x30ecfe(0x218)],'keepInteropAlive':_0x54f481['keepAlive'],..._0x54f481[_0x30ecfe(0x223)][_0x30ecfe(0x252)]>0x0?{'preloadSkills':_0x54f481['preloadSkills']}:{},..._0x5dd0f5?{'model':_0x5dd0f5}:{},..._0x54f481[_0x30ecfe(0x26d)]?{'projectId':_0x54f481[_0x30ecfe(0x26d)]}:{},..._0x54f481['workingDirectory']?{'workingDirectory':_0x54f481[_0x30ecfe(0x285)]}:{},..._0x54f481[_0x30ecfe(0x24e)]?{'bundledSkillsPath':_0x54f481['bundledSkillsPath']}:{},..._0x54f481[_0x30ecfe(0x1ef)]?{'effort':_0x54f481[_0x30ecfe(0x1ef)]}:{},..._0x54f481[_0x30ecfe(0x26c)]?{'sessionId':_0x54f481['sessionId']}:{},..._0x54f481['verbose']?{'verbose':!0x0}:{}};}async function we(_0x123ecb){const _0x6d5946=_0x4a471e;let _0xa9af73=!_0x123ecb[_0x6d5946(0x2aa)]&&_0x123ecb[_0x6d5946(0x21d)]!=='-'&&!!process[_0x6d5946(0x214)][_0x6d5946(0x267)]&&!!process['stdout'][_0x6d5946(0x267)],_0x3a79ef=_0xa9af73?_0x123ecb['prompt'][_0x6d5946(0x297)]():await oe(_0x123ecb[_0x6d5946(0x21d)],process[_0x6d5946(0x214)]);!_0xa9af73&&!_0x3a79ef&&(console[_0x6d5946(0x280)]('Missing\x20prompt.\x20Pass\x20it\x20as\x20an\x20argument,\x20pipe\x20it\x20via\x20stdin,\x20or\x20run\x20`delegate-cli\x20--help`.'),process['exit'](0x2)),l={'lastType':null,'quiet':_0x123ecb[_0x6d5946(0x1f4)]};let _0x575a32=await A(),_0x3e9284=new _0xa7a291();_0x3e9284[_0x6d5946(0x2ad)](_);let _0x534553=_0x36a529(_0x123ecb[_0x6d5946(0x23c)],_0x575a32,_0x123ecb[_0x6d5946(0x275)]);I(_0x123ecb[_0x6d5946(0x23c)],_0x123ecb[_0x6d5946(0x275)],_0x534553);let _0x549fbb=R(_0x123ecb,_0x575a32,_0x534553),_0x577eef=!0x1,_0x129f39=!0x1,_0x5b1dc4,_0x10568b=()=>_0x5b1dc4??=_0x3e9284[_0x6d5946(0x20f)](),_0x16429d=()=>{const _0x17c20d=_0x6d5946;_0x129f39&&process[_0x17c20d(0x20a)](0x82),_0x129f39=!0x0,process['stderr'][_0x17c20d(0x299)](_0x17c20d(0x22c)),_0x577eef&&_0x10568b()['then'](()=>process[_0x17c20d(0x20a)](0x82),_0x28f60f=>{const _0x56f927=_0x17c20d;console[_0x56f927(0x280)](_0x28f60f),process['exit'](0x82);});};process['on'](_0x6d5946(0x21f),_0x16429d);let _0x4b52a3=async _0x5742ee=>{const _0x22a950=_0x6d5946;try{await _0x3e9284[_0x22a950(0x281)](_0x5742ee);}catch(_0x36acdf){if(_0x129f39||!ke(_0x36acdf)||!process['stdin'][_0x22a950(0x267)]||_0x123ecb[_0x22a950(0x23c)]==='localhost'||!(_0x123ecb[_0x22a950(0x23c)]||_0x575a32['baseUrl']))throw _0x36acdf;process[_0x22a950(0x2b5)]['write']('\x0a⚠️\x20\x20Auth\x20expired.\x20Opening\x20browser\x20to\x20re-login…\x0a');let _0x3c3c49=_0x3e9284[_0x22a950(0x25e)]()??_0x123ecb[_0x22a950(0x26c)],_0xd03d27=await _0x3aa045(_0x123ecb[_0x22a950(0x23c)]?{'env':_0x123ecb[_0x22a950(0x23c)],'tenant':P(_0x575a32,_0x1c9922[_0x123ecb[_0x22a950(0x23c)]])}:{'baseUrl':_0x575a32[_0x22a950(0x28c)],'tenant':_0x575a32[_0x22a950(0x1f7)]});if(_0x129f39||(_0x577eef=!0x1,await _0x10568b(),_0x129f39))return;_0x3e9284=new _0xa7a291(),_0x5b1dc4=void 0x0,_0x3e9284[_0x22a950(0x2ad)](_),_0x575a32=_0xd03d27,await _0x3e9284[_0x22a950(0x293)]({...R(_0x123ecb,_0x575a32,_0x534553),..._0x3c3c49?{'sessionId':_0x3c3c49}:{}}),_0x577eef=!0x0,_0x129f39||await _0x3e9284[_0x22a950(0x281)](_0x5742ee);}};try{if(await _0x3e9284[_0x6d5946(0x293)](_0x549fbb),_0x577eef=!0x0,_0x129f39)return;_0xa9af73?await ve({'prompt':_0x3a79ef,'sendMessage':_0x4b52a3,'onSigint':_0x16429d}):await _0x4b52a3(_0x3a79ef);}catch(_0x1272bd){if(!_0x129f39)throw _0x1272bd;}finally{try{await _0x10568b();}finally{process[_0x6d5946(0x21a)](_0x6d5946(0x21f),_0x16429d),_0x129f39&&(process[_0x6d5946(0x254)]=0x82);}}}function be(_0x239ecb,_0x294b39){const _0x295a89=_0x4a471e;let _0x29ce3a=process['stdout'][_0x295a89(0x299)][_0x295a89(0x225)](process[_0x295a89(0x2c1)]),_0x3ec5b7=!0x1;return process[_0x295a89(0x2c1)]['write']=(..._0x723089)=>{const _0x4784cc=_0x295a89;if(!_0x3ec5b7)return _0x29ce3a(..._0x723089);_0x1f2531(_0x294b39,0x0),_0x2952ae(_0x294b39,0x0);let _0x2f9fa0=_0x29ce3a(..._0x723089);return _0x239ecb[_0x4784cc(0x21d)](!0x0),_0x2f9fa0;},{'show':()=>{const _0x7e9939=_0x295a89;_0x3ec5b7=!0x0,_0x239ecb[_0x7e9939(0x21d)]();},'hide':()=>{_0x3ec5b7=!0x1;},'restore':()=>{_0x3ec5b7=!0x1,process['stdout']['write']=_0x29ce3a;}};}async function ve({prompt:_0x233289,sendMessage:_0x1b847b,onSigint:_0x337257}){const _0x35e45a=_0x4a471e;let _0x5b207e=_0x2a0627({'input':process[_0x35e45a(0x214)],'output':process[_0x35e45a(0x2b5)],'terminal':!0x0,'prompt':_0x35e45a(0x2a8)}),_0x1e6490=be(_0x5b207e,process[_0x35e45a(0x2b5)]),_0x326291=_0x5b207e[Symbol['asyncIterator']](),_0x3f4b19=!0x1;_0x5b207e[_0x35e45a(0x279)](_0x35e45a(0x246),()=>{const _0x26fcde=_0x35e45a;_0x3f4b19=!0x0,_0x1e6490[_0x26fcde(0x202)]();});let _0x182ffe=!0x1,_0x2661ba=()=>{const _0x474f43=_0x35e45a;_0x182ffe=!0x0,_0x5b207e[_0x474f43(0x246)](),_0x337257();};_0x5b207e['on'](_0x35e45a(0x21f),_0x2661ba),process[_0x35e45a(0x2b5)][_0x35e45a(0x299)](_0x35e45a(0x262));try{if(_0x233289&&await _0x1b847b(_0x233289),_0x182ffe)return;_0x3f4b19||_0x1e6490[_0x35e45a(0x238)]();for await(let _0x1de48c of _0x326291){if(_0x1e6490['hide'](),_0x182ffe)break;let _0x48c93d=_0x1de48c[_0x35e45a(0x297)]();if(_0x48c93d===_0x35e45a(0x1f9))break;_0x48c93d&&await _0x1b847b(_0x48c93d),_0x3f4b19||_0x1e6490[_0x35e45a(0x238)]();}}finally{_0x1e6490[_0x35e45a(0x255)](),_0x5b207e[_0x35e45a(0x21a)](_0x35e45a(0x21f),_0x2661ba),_0x5b207e[_0x35e45a(0x246)]();}}async function Se(){const _0x5a82f5=_0x4a471e;let _0x267db0=Q(process['argv'][_0x5a82f5(0x2c3)](0x2));if(_0x267db0[_0x5a82f5(0x29b)]){Z();return;}if(_0x267db0['version']){console[_0x5a82f5(0x265)](ee());return;}if(_0x267db0['subcommand']===_0x5a82f5(0x2a2)){await pe(_0x267db0);return;}if(_0x267db0[_0x5a82f5(0x206)]==='tenant'){await he(_0x267db0[_0x5a82f5(0x21d)]);return;}if(_0x267db0[_0x5a82f5(0x206)]===_0x5a82f5(0x296)){await re();return;}if(_0x267db0[_0x5a82f5(0x206)]==='whoami'){await ie();return;}if(_0x267db0[_0x5a82f5(0x206)]===_0x5a82f5(0x1f1)){await ce(_0x267db0);return;}if(_0x267db0['subcommand']===_0x5a82f5(0x213)){await de(_0x267db0);return;}if(_0x267db0[_0x5a82f5(0x206)]==='host'){await _0x495611(_0x267db0['prompt'],{'runnerUrl':_0x267db0[_0x5a82f5(0x283)],'backendUrl':_0x267db0['backendUrl'],'interopPath':_0x267db0[_0x5a82f5(0x26e)],'workerId':_0x267db0['workerId']});return;}if(_0x267db0[_0x5a82f5(0x22e)]){await ae();return;}await we(_0x267db0);}var ye=process.env.NODE_ENV===_0x4a471e(0x2b0)||!!process.env.JEST_WORKER_ID;ye||Se()[_0x4a471e(0x209)](_0x7d9794=>{const _0x28d597=_0x4a471e;console['error'](_0x7d9794['stack']||_0x7d9794[_0x28d597(0x21c)]||_0x7d9794),process[_0x28d597(0x20a)](0x1);});export{X as CARTOGRAPHER_SKILLS,N as EFFORT_TIERS,te as IMPLICIT_STDIN_IDLE_MS,R as buildInitOptions,Se as main,Q as parseArgs,ee as readCliVersion,oe as resolvePrompt};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uipath/delegate-cli",
3
- "version": "0.1.9",
3
+ "version": "0.1.11",
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": "0.1.9"
25
+ "@uipath/delegate-sdk": "0.1.11"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@types/node": "^22.0.0",