@uipath/delegate-cli 0.1.8 → 0.1.10

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 +81 -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]
@@ -44,6 +48,9 @@ delegate-cli tenant [NAME] List the organization's tenants, or switch
44
48
  delegate-cli logout Remove the saved CLI login
45
49
  delegate-cli whoami Show the current login (org, tenant, token expiry)
46
50
  delegate-cli models [--env NAME] List LLM models available on the tenant
51
+ delegate-cli check [--env NAME] [--headless]
52
+ Verify auth, backend and interop without sending a
53
+ prompt; exits 1 when any check fails
47
54
  delegate-cli host [flags] Run this PC as a remote worker until Ctrl+C
48
55
  delegate-cli host install [flags] Auto-start the host at login (macOS/Windows)
49
56
  delegate-cli host uninstall Remove auto-start
@@ -53,26 +60,61 @@ delegate-cli --version
53
60
  delegate-cli --help
54
61
  ```
55
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
+
56
87
  ### Flags
57
88
 
58
89
  | Flag | Default | What it does |
59
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. |
60
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. |
61
93
  | `--backend <url>` | — | Full backend URL — overrides `--env` and `BACKEND_URL`. |
62
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>`. |
63
95
  | `--model <id>` | `gemini_3_6_flash` | LLM id (use `delegate-cli models` to discover). Also via `MODEL` env. |
64
- | `--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. |
65
98
  | `--keep-alive` | off | Reuse / leave interop running across invocations. Skips the 10–20 s cold start on the next call. |
66
99
  | `--cleanup` | — | Force-stop the running interop (from `~/.delegate-sdk/interop.pid`) and exit. |
67
100
  | `--no-connections` | off | Disable orchestrator ConnectionService (silences 404 noise on tenants without orchestrator). |
68
101
  | `--no-security` | off | Disable tool security wrapper. Debug only. |
69
- | `--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. |
70
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. |
71
111
  | `-v`, `--version` | — | Print the installed CLI version. |
72
112
  | `--runner-url <url>` | — | (host) Runner worker WS URL. Required; or `CONTROL_PLANE_WS_URL` env. |
73
113
  | `--interop <path>` | — | (host) Interop binary path; or `INTEROP_EXECUTABLE_PATH` env. Absent → registration/discovery only, tool execution disabled. |
74
114
  | `--worker-id <id>` | hostname | (host) Stable worker identity; or `WORKER_ID` env. |
75
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
+
76
118
  ### Examples
77
119
 
78
120
  ```bash
@@ -80,7 +122,7 @@ delegate-cli --help
80
122
  npx delegate-cli -q --no-connections "open Chrome and search UiPath"
81
123
 
82
124
  # Target another environment for one command
83
- npx delegate-cli --env staging "open the org dashboard"
125
+ npx delegate-cli --print --env staging "open the org dashboard"
84
126
 
85
127
  # Pick a model
86
128
  npx delegate-cli --model claude_opus_4_8 "explain quantum entanglement"
@@ -91,9 +133,35 @@ npx delegate-cli --headless "summarize the last release notes"
91
133
  # Pipe the prompt from stdin
92
134
  cat notes.md | npx delegate-cli --headless -
93
135
 
94
- # Iterate fast with persistent interop
95
- npx delegate-cli --keep-alive "take a screenshot"
96
- 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"
97
165
  npx delegate-cli --cleanup # stop when done
98
166
 
99
167
  # Override backend URL fully
@@ -144,9 +212,11 @@ To change tenant afterwards, run `delegate-cli tenant <name>` — no browser: to
144
212
 
145
213
  `delegate-cli whoami` shows the active identity (auth source, org/tenant, token expiry). It is strictly read-only: no backend call, and no token refresh either — so an expired token is reported as expired instead of being silently rotated behind an inspection command. The `Source:` line names the file the credential actually came from, which may be the Delegate desktop app's `~/.aria/auth.json` (the SDK's read-only fallback).
146
214
 
215
+ `delegate-cli check` is the pre-flight a prompt would otherwise run implicitly, without sending one: it loads (and refreshes) auth and resolves the backend URL exactly like a prompt does, then prints three lines — `auth` (token not expired, and its organization and tenant match the backend URL), `backend` (one read-only `GET /v1/config` with the token), and `interop` (spawns the bundled interop, waits for `/health`, stops it again; `--headless` skips it). Any failed line makes the command exit 1, so a scheduler or a Robot job can gate on it. A saved login whose org/tenant slugs disagree with the backend URL — after a `--backend` override or a `tenant` switch — fails the `auth` line, and a prompt with the same combination is refused by the SDK before any request is sent.
216
+
147
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.
148
218
 
149
- 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.
150
220
 
151
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.
152
222
 
package/dist/cli.mjs CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- const _0x203660=_0x2bc1;function _0x2bc1(_0x5eb10a,_0x2484b7){_0x5eb10a=_0x5eb10a-0x149;const _0x47bc5c=_0x47bc();let _0x2bc1a7=_0x47bc5c[_0x5eb10a];return _0x2bc1a7;}(function(_0x3cdbea,_0x45b180){const _0x13bdf0=_0x2bc1,_0x50d4aa=_0x3cdbea();while(!![]){try{const _0x830a13=-parseInt(_0x13bdf0(0x1b9))/0x1+-parseInt(_0x13bdf0(0x1ee))/0x2*(parseInt(_0x13bdf0(0x16e))/0x3)+-parseInt(_0x13bdf0(0x160))/0x4+-parseInt(_0x13bdf0(0x191))/0x5+-parseInt(_0x13bdf0(0x1f4))/0x6+parseInt(_0x13bdf0(0x1ad))/0x7*(-parseInt(_0x13bdf0(0x17a))/0x8)+parseInt(_0x13bdf0(0x159))/0x9;if(_0x830a13===_0x45b180)break;else _0x50d4aa['push'](_0x50d4aa['shift']());}catch(_0x1f5704){_0x50d4aa['push'](_0x50d4aa['shift']());}}}(_0x47bc,0x3f8ba));const __dirname=import.meta.dirname;import _0x34a65f from'fs';import _0x547328 from'path';import{DelegateAgent as _0xf0320,InteropProcess as _0x1839de,buildDelegateServiceUrl as _0x53eb27,getAuthFilePath as _0x17ca9d,listTenants as _0x2455fb,loadAndRefreshAuth as _0x54275c,loadAndRefreshSdkLogin as _0x3b7ec8,runHostCommand as _0x176147,runLoginFlow as _0x447a5d,saveAuthData as _0x38a352,switchTenant as _0x53ab71}from'@uipath/delegate-sdk';var m={'alpha':_0x203660(0x1ab),'staging':_0x203660(0x199),'production':_0x203660(0x1b7)},P=[_0x203660(0x193),_0x203660(0x1b0),_0x203660(0x189),_0x203660(0x18d),_0x203660(0x1bc),_0x203660(0x1dc)];function x(_0x1f88cc){const _0x3fe376=_0x203660;let _0x1f962f={'subcommand':'','prompt':'','keepAlive':!0x1,'cleanup':!0x1,'headless':!0x1,'noConnections':!0x1,'noSecurity':!0x1,'quiet':!0x1,'preloadSkills':[],'help':!0x1,'version':!0x1};P[_0x3fe376(0x1b2)](_0x1f88cc[0x0])&&(_0x1f962f[_0x3fe376(0x19a)]=_0x1f88cc[0x0],_0x1f88cc=_0x1f88cc[_0x3fe376(0x153)](0x1));let _0x2af127=[];for(let _0x8d86a5=0x0;_0x8d86a5<_0x1f88cc[_0x3fe376(0x1e4)];_0x8d86a5++){let _0x2d9a21=_0x1f88cc[_0x8d86a5];switch(_0x2d9a21){case'--keep-alive':_0x1f962f[_0x3fe376(0x1ce)]=!0x0;break;case _0x3fe376(0x192):_0x1f962f[_0x3fe376(0x1d3)]=!0x0;break;case _0x3fe376(0x16f):_0x1f962f[_0x3fe376(0x14e)]=!0x0;break;case'--no-connections':_0x1f962f[_0x3fe376(0x1e5)]=!0x0;break;case _0x3fe376(0x16a):_0x1f962f[_0x3fe376(0x174)]=!0x0;break;case'--quiet':case'-q':_0x1f962f[_0x3fe376(0x1cb)]=!0x0;break;case _0x3fe376(0x1e1):_0x1f962f[_0x3fe376(0x1ec)]=_0x1f88cc[++_0x8d86a5];break;case _0x3fe376(0x1a3):_0x1f962f[_0x3fe376(0x1a4)]=_0x1f88cc[++_0x8d86a5];break;case _0x3fe376(0x152):_0x1f962f[_0x3fe376(0x1c1)]=_0x1f88cc[++_0x8d86a5];break;case _0x3fe376(0x167):_0x1f962f[_0x3fe376(0x156)]=_0x1f88cc[++_0x8d86a5];break;case _0x3fe376(0x14b):_0x1f962f[_0x3fe376(0x1d7)]=_0x1f88cc[++_0x8d86a5];break;case'--preload-skill':{let _0x170f5c=_0x1f88cc[++_0x8d86a5];(!_0x170f5c||_0x170f5c[_0x3fe376(0x1e8)]('--'))&&(console[_0x3fe376(0x1dd)](_0x3fe376(0x188)),process[_0x3fe376(0x16c)](0x2)),_0x1f962f['preloadSkills']['push'](_0x170f5c);break;}case _0x3fe376(0x172):{let _0x308504=_0x1f88cc[++_0x8d86a5];(!_0x308504||_0x308504[_0x3fe376(0x1e8)]('--'))&&(console[_0x3fe376(0x1dd)](_0x3fe376(0x14f)),process[_0x3fe376(0x16c)](0x2)),_0x1f962f[_0x3fe376(0x1b0)]=_0x308504;break;}case _0x3fe376(0x1c8):{let _0x3a64d1=_0x1f88cc[++_0x8d86a5];['alpha',_0x3fe376(0x18b),'production','localhost'][_0x3fe376(0x1b2)](_0x3a64d1)||(console[_0x3fe376(0x1dd)](_0x3fe376(0x175)+_0x3a64d1+_0x3fe376(0x18f)),process[_0x3fe376(0x16c)](0x2)),_0x1f962f[_0x3fe376(0x1cd)]=_0x3a64d1;break;}case'-h':case _0x3fe376(0x170):_0x1f962f[_0x3fe376(0x1a2)]=!0x0;break;case'-v':case _0x3fe376(0x1a7):_0x1f962f[_0x3fe376(0x176)]=!0x0;break;default:_0x2d9a21['startsWith']('--')&&(console[_0x3fe376(0x1dd)](_0x3fe376(0x182)+_0x2d9a21),process['exit'](0x2)),_0x2af127[_0x3fe376(0x1e2)](_0x2d9a21);}}return _0x1f962f[_0x3fe376(0x1b0)]!==void 0x0&&_0x1f962f[_0x3fe376(0x19a)]!=='login'&&(console[_0x3fe376(0x1dd)](_0x3fe376(0x186)),process[_0x3fe376(0x16c)](0x2)),_0x1f962f[_0x3fe376(0x14c)]=_0x2af127[_0x3fe376(0x185)]('\x20'),_0x1f962f;}function y(_0x382b6a,_0x3b2178,_0x752dc9){const _0x438e44=_0x203660;if(_0x752dc9)return _0x752dc9;if(process.env.BACKEND_URL)return process.env.BACKEND_URL;if(!_0x382b6a){if(_0x3b2178?.[_0x438e44(0x1d8)]&&_0x3b2178?.['orgLogicalName']&&_0x3b2178?.[_0x438e44(0x16b)])return _0x53eb27(_0x3b2178['baseUrl'],_0x3b2178['orgLogicalName'],_0x3b2178[_0x438e44(0x16b)]);throw new Error(_0x438e44(0x17e));}if(_0x382b6a===_0x438e44(0x15b))return'http://localhost:5002';let _0x5e2789=m[_0x382b6a],_0x4f1acd=_0x3b2178?.['orgLogicalName'],_0x252402=_0x3b2178?.['tenantName'];if(!_0x4f1acd||!_0x252402)throw new Error(_0x438e44(0x1b3)+_0x382b6a+'\x20needs\x20org/tenant\x20slugs.\x20Either:\x0a\x20\x20-\x20run\x20`delegate-cli\x20login\x20--env\x20'+_0x382b6a+_0x438e44(0x1a6));return _0x53eb27(_0x5e2789,_0x4f1acd,_0x252402);}function M(){const _0x502c3d=_0x203660;let _0x15deac=_0x502c3d(0x1bb)[_0x502c3d(0x197)]();console['log'](_0x15deac);}function B(){const _0x2ca875=_0x203660;try{return JSON[_0x2ca875(0x17d)](_0x34a65f[_0x2ca875(0x177)](_0x547328[_0x2ca875(0x185)](__dirname,'..',_0x2ca875(0x14a)),_0x2ca875(0x1ae)))['version']||_0x2ca875(0x1c0);}catch{return'unknown';}}var G=0x7d0;async function A(_0x9669f9,_0x33513c){const _0x184a58=_0x203660;let _0x5f2ad5=_0x33513c?[_0x33513c]:[];for await(let _0x27371b of _0x9669f9)_0x5f2ad5[_0x184a58(0x1e2)](Buffer[_0x184a58(0x1f0)](_0x27371b));return Buffer[_0x184a58(0x1f5)](_0x5f2ad5)[_0x184a58(0x1c9)](_0x184a58(0x1ae))[_0x184a58(0x197)]();}function q(_0x59d26c,_0x3dda43){return new Promise(_0x45c10b=>{const _0x3c7fd2=_0x2bc1;let _0x2b32db=_0x12af25=>{const _0x3ae6dd=_0x2bc1;clearTimeout(_0x186200),_0x59d26c[_0x3ae6dd(0x157)](_0x3ae6dd(0x1f2),_0x3b9d89),_0x59d26c['off'](_0x3ae6dd(0x194),_0xa6f435),_0x59d26c[_0x3ae6dd(0x157)]('error',_0xa6f435),_0x59d26c[_0x3ae6dd(0x1d1)](),_0x45c10b(_0x12af25);},_0x3b9d89=_0x2e3aad=>_0x2b32db(Buffer[_0x3c7fd2(0x1f0)](_0x2e3aad)),_0xa6f435=()=>_0x2b32db(null),_0x186200=setTimeout(()=>_0x2b32db(null),_0x3dda43);_0x59d26c['on']('data',_0x3b9d89),_0x59d26c['on']('end',_0xa6f435),_0x59d26c['on']('error',_0xa6f435),_0x59d26c[_0x3c7fd2(0x154)]();});}async function F(_0x59299b,_0x5dbbaf,_0x3ad473=G){let _0x37663c=_0x59299b==='-';if(!_0x37663c&&_0x59299b)return _0x59299b;if(!_0x37663c&&_0x5dbbaf['isTTY'])return'';if(_0x37663c)return A(_0x5dbbaf,null);let _0x183e56=await q(_0x5dbbaf,_0x3ad473);return _0x183e56?A(_0x5dbbaf,_0x183e56):'';}function v(){const _0x5ec814=_0x203660;return _0x547328[_0x5ec814(0x185)](process.env.HOME||process.env.USERPROFILE||'',_0x5ec814(0x18c),_0x5ec814(0x1b1));}function f(_0x39d956){const _0x39ac58=_0x203660;try{let _0x2b0b92=JSON[_0x39ac58(0x17d)](_0x34a65f['readFileSync'](_0x39d956,_0x39ac58(0x1ae)));return!_0x2b0b92[_0x39ac58(0x1d6)]||!_0x2b0b92['tenantId']||!_0x2b0b92[_0x39ac58(0x179)]?null:_0x2b0b92;}catch{return null;}}function j(){let _0x383a77=[{'file':_0x17ca9d(),'isDesktopFallback':!0x1},{'file':v(),'isDesktopFallback':!0x0}];for(let _0x290b7e of _0x383a77){let _0x4c953a=f(_0x290b7e['file']);if(_0x4c953a)return{..._0x290b7e,'auth':_0x4c953a};}return null;}async function z(){const _0x4b2fe2=_0x203660;let _0x1338ff=_0x17ca9d();if(!_0x34a65f[_0x4b2fe2(0x1de)](_0x1338ff)){let _0x80f962=v();console[_0x4b2fe2(0x163)](f(_0x80f962)?_0x4b2fe2(0x171)+_0x80f962+_0x4b2fe2(0x1bf):_0x4b2fe2(0x1e6));return;}_0x34a65f[_0x4b2fe2(0x14d)](_0x1338ff),console[_0x4b2fe2(0x163)](_0x4b2fe2(0x1a5)+_0x1338ff);}async function H(){const _0x21637b=_0x203660;let _0x2bf765=k(),_0x3df902,_0x2eab09;if(_0x2bf765)_0x3df902=_0x2bf765,_0x2eab09='environment\x20variables\x20(AUTH_TOKEN/TENANT_ID/ORG_ID)';else{let _0x346ca9=j();if(!_0x346ca9)throw new Error(N);_0x3df902=_0x346ca9[_0x21637b(0x19c)],_0x2eab09=_0x346ca9['isDesktopFallback']?_0x346ca9[_0x21637b(0x1c3)]+_0x21637b(0x1e3):_0x346ca9[_0x21637b(0x1c3)];}let _0x494794=[_0x21637b(0x19f)+_0x2eab09,'Base\x20URL:\x20\x20\x20\x20\x20'+(_0x3df902[_0x21637b(0x1d8)]??'unknown'),_0x21637b(0x1be)+(_0x3df902[_0x21637b(0x1af)]??'unknown\x20slug')+'\x20('+_0x3df902['organizationId']+')',_0x21637b(0x1cf)+(_0x3df902['tenantName']??_0x21637b(0x173))+'\x20('+_0x3df902['tenantId']+')'];if(_0x3df902[_0x21637b(0x187)]){let _0x4febba=_0x3df902[_0x21637b(0x187)]-Math[_0x21637b(0x1ed)](Date[_0x21637b(0x19d)]()/0x3e8),_0x1871e3=new Date(_0x3df902[_0x21637b(0x187)]*0x3e8)[_0x21637b(0x1c7)]();_0x494794[_0x21637b(0x1e2)](_0x4febba>0x0?_0x21637b(0x165)+_0x1871e3+'\x20(in\x20'+Math[_0x21637b(0x151)](_0x4febba/0x3c)+'\x20min)':_0x21637b(0x169)+_0x1871e3);}process[_0x21637b(0x180)][_0x21637b(0x1d0)](_0x494794['join']('\x0a')+'\x0a');}var N=_0x203660(0x1f1);function k(){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 E(){let _0x390e9f=k();if(_0x390e9f)return _0x390e9f;let _0x3f1180=await _0x54275c();if(_0x3f1180)return _0x3f1180;throw new Error(N);}async function K(){const _0x21eb7f=_0x203660;await new _0x1839de()[_0x21eb7f(0x17c)]({'force':!0x0}),console[_0x21eb7f(0x163)]('Interop\x20stopped\x20(if\x20it\x20was\x20running).');}var W=_0x203660(0x1ca);function U(_0x348181,_0x54b551,_0x355342){const _0x48cee8=_0x203660;_0x348181?process['stderr'][_0x48cee8(0x1d0)](_0x48cee8(0x1c2)+_0x348181+_0x48cee8(0x1a0)+_0x355342+'\x0a'):!_0x54b551&&!process.env.BACKEND_URL&&process[_0x48cee8(0x161)][_0x48cee8(0x1d0)](_0x48cee8(0x1d4)+_0x355342+'\x0a');}async function J(_0x403e61){const _0x3a6741=_0x203660;let _0x27b5eb=await E(),_0x402d7d=y(_0x403e61['env'],_0x27b5eb,_0x403e61[_0x3a6741(0x1ec)]);U(_0x403e61[_0x3a6741(0x1cd)],_0x403e61[_0x3a6741(0x1ec)],_0x402d7d);let _0x441f38=_0x402d7d+_0x3a6741(0x1a1),_0x21921e={'Authorization':_0x3a6741(0x1b6)+_0x27b5eb[_0x3a6741(0x1d6)],'X-UiPath-ConsumingProductId':W};_0x27b5eb[_0x3a6741(0x1c6)]&&(_0x21921e[_0x3a6741(0x1aa)]=_0x27b5eb[_0x3a6741(0x1c6)]),_0x27b5eb['organizationId']&&(_0x21921e['X-Uipath-Organizationid']=_0x27b5eb['organizationId']);let _0x2cffab=await fetch(_0x441f38,{'headers':_0x21921e});if(!_0x2cffab['ok'])throw new Error(_0x3a6741(0x1da)+_0x441f38+_0x3a6741(0x1bd)+_0x2cffab['status']+'\x20'+_0x2cffab[_0x3a6741(0x1c5)]);let _0x5645ca=(await _0x2cffab[_0x3a6741(0x1e9)]())?.[_0x3a6741(0x1b4)],_0x18b7d9=Array['isArray'](_0x5645ca)?_0x5645ca:_0x5645ca&&typeof _0x5645ca==_0x3a6741(0x162)?Object[_0x3a6741(0x1b5)](_0x5645ca)[_0x3a6741(0x149)](([_0x57aa58,_0x1a77bc])=>({'id':_0x57aa58,'name':_0x1a77bc})):[];if(_0x18b7d9[_0x3a6741(0x1e4)]===0x0){process[_0x3a6741(0x161)]['write'](_0x3a6741(0x17b));return;}process[_0x3a6741(0x180)][_0x3a6741(0x1d0)](_0x3a6741(0x18a)+_0x18b7d9['length']+_0x3a6741(0x1a8));for(let _0x56a6e8 of _0x18b7d9){let _0x245e99=_0x56a6e8[_0x3a6741(0x1d5)]&&_0x56a6e8[_0x3a6741(0x1d5)]!==_0x56a6e8['id']?'\x20('+_0x56a6e8['name']+')':'';process[_0x3a6741(0x180)][_0x3a6741(0x1d0)]('\x20\x20'+_0x56a6e8['id']+_0x245e99+'\x0a'),_0x56a6e8['description']&&process['stdout'][_0x3a6741(0x1d0)](_0x3a6741(0x1e0)+_0x56a6e8[_0x3a6741(0x1e7)]+'\x0a');}process['stdout'][_0x3a6741(0x1d0)]('\x0aUse\x20with:\x20delegate-cli\x20--model\x20<id>\x20\x22<prompt>\x22\x0a');}async function X(_0x2608f3){const _0x3261f2=_0x203660;_0x2608f3['env']===_0x3261f2(0x15b)&&(console[_0x3261f2(0x1dd)]('--env\x20localhost\x20has\x20no\x20OAuth\x20flow;\x20pick\x20alpha,\x20staging,\x20or\x20production.'),process[_0x3261f2(0x16c)](0x2));let _0x5931d9=f(_0x17ca9d());if(_0x2608f3[_0x3261f2(0x1cd)]){let _0x2d903b=_0x2608f3[_0x3261f2(0x1cd)];await _0x447a5d({'env':_0x2d903b,'tenant':_0x2608f3[_0x3261f2(0x1b0)]??L(_0x5931d9,m[_0x2d903b])});return;}if(_0x5931d9?.[_0x3261f2(0x1d8)]){await _0x447a5d({'baseUrl':_0x5931d9['baseUrl'],'tenant':_0x2608f3[_0x3261f2(0x1b0)]??_0x5931d9[_0x3261f2(0x16b)]});return;}console[_0x3261f2(0x1dd)]('First\x20login\x20requires\x20--env.\x20Usage:\x20delegate-cli\x20login\x20--env\x20<alpha|staging|production>'),process[_0x3261f2(0x16c)](0x2);}function L(_0x330f52,_0x31e6dc){return _0x330f52?.['baseUrl']&&V(_0x330f52['baseUrl'],_0x31e6dc)?_0x330f52['tenantName']:void 0x0;}function _0x47bc(){const _0xdd0966=['Bearer\x20','https://cloud.uipath.com','No\x20CLI\x20login\x20to\x20switch:\x20the\x20CLI\x20is\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20','95905ZnjIxp','Tenants\x20of\x20','\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\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','logout','\x20→\x20','Organization:\x20','\x20—\x20sign\x20out\x20in\x20the\x20Delegate\x20app\x20to\x20clear\x20that.','unknown','runnerUrl','[env=','file','content','statusText','tenantId','toISOString','--env','toString','799f56b8-4aed-4a0f-8640-659dae4a9e0e','quiet','sendMessage','env','keepAlive','Tenant:\x20\x20\x20\x20\x20\x20\x20','write','pause','tool','cleanup','[saved\x20login]\x20Backend\x20URL:\x20','name','accessToken','workerId','baseUrl','stdin','GET\x20','preloadSkills','whoami','error','existsSync','The\x20saved\x20CLI\x20login\x20could\x20not\x20be\x20refreshed.\x20Run\x20`delegate-cli\x20login`\x20again.','\x20\x20\x20\x20','--backend','push','\x20(Delegate\x20desktop\x20app\x20fallback)','length','noConnections','No\x20CLI\x20login\x20found\x20—\x20nothing\x20to\x20remove.','description','startsWith','json','🔧\x20',',\x20whose\x20tenant\x20is\x20chosen\x20in\x20the\x20app.\x20Run\x20`delegate-cli\x20login\x20--env\x20<env>`\x20for\x20a\x20CLI\x20login\x20of\x20your\x20own.','backendUrl','floor','72154auNzIU','thinking','from','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.','data','stack','700560vSxYdk','concat','map','package.json','--worker-id','prompt','rmSync','headless','--tenant\x20requires\x20a\x20tenant\x20name.','once','round','--runner-url','slice','resume','toolName','interopPath','off','origin','15182550lptJJt','onEvent','localhost','finally','No\x20CLI\x20login\x20found.\x20Run\x20`delegate-cli\x20login\x20--env\x20<alpha|staging|production>`\x20first.','lastType','Missing\x20prompt.\x20Pass\x20it\x20as\x20an\x20argument,\x20pipe\x20it\x20via\x20stdin,\x20or\x20run\x20`delegate-cli\x20--help`.','605228SlXHDF','stderr','object','log','initialize','Token:\x20\x20\x20\x20\x20\x20\x20\x20expires\x20','\x0a🤔\x20','--interop','response','Token:\x20\x20\x20\x20\x20\x20\x20\x20expired\x20','--no-security','tenantName','exit','SIGINT','9fgKTYJ','--headless','--help','No\x20CLI\x20login\x20found.\x20Note:\x20the\x20CLI\x20is\x20currently\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20','--tenant','unknown\x20slug','noSecurity','Invalid\x20--env:\x20','version','readFileSync','\x20(current)','organizationId','72blnBRU','No\x20models\x20available\x20for\x20this\x20product/tenant.\x0a','stop','parse','No\x20backend\x20selected.\x20Run\x20`delegate-cli\x20login\x20--env\x20<env>`\x20first\x20(commands\x20then\x20default\x20to\x20that\x20cloud),\x20or\x20pass\x20--env\x20<alpha|staging|production|localhost>\x20or\x20--backend\x20<url>\x20(or\x20set\x20BACKEND_URL).','\x0aStopping…\x20(Ctrl+C\x20again\x20to\x20force\x20exit)\x0a','stdout','isTTY','Unknown\x20flag:\x20','✓\x20Done\x0a','done','join','--tenant\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Switch\x20tenants\x20with:\x20delegate-cli\x20tenant\x20<name>','expiresAt','--preload-skill\x20requires\x20a\x20skill\x20name.','models','\x0aAvailable\x20models\x20(','staging','.aria','host','message','.\x20Use\x20alpha\x20|\x20staging\x20|\x20production\x20|\x20localhost.','tool_call','2481420mEasmy','--cleanup','login','end','argv','destroy','trim','status','https://staging.uipath.com','subcommand','test','auth','now','Tenant\x20not\x20switched:\x20could\x20not\x20write\x20','Source:\x20\x20\x20\x20\x20\x20\x20',']\x20Backend\x20URL:\x20','/v1/config','help','--model','model','Removed\x20','`\x20(writes\x20slugs\x20to\x20~/.aria/sdk-auth.json),\x20or\x0a\x20\x20-\x20set\x20ORG_SLUG\x20and\x20TENANT_SLUG\x20env\x20vars\x20alongside\x20ORG_ID/TENANT_ID,\x20or\x0a\x20\x20-\x20pass\x20the\x20full\x20URL\x20via\x20--backend\x20(overrides\x20--env).','--version','):\x0a\x0a',';\x20the\x20saved\x20login\x20still\x20uses\x20','X-Uipath-Tenantid','https://alpha.uipath.com','Auth\x20comes\x20from\x20AUTH_TOKEN/TENANT_ID/ORG_ID\x20—\x20set\x20TENANT_ID\x20and\x20TENANT_SLUG\x20to\x20change\x20the\x20tenant.','356363RPEYPU','utf-8','orgLogicalName','tenant','auth.json','includes','--env\x20','MODELS','entries'];_0x47bc=function(){return _0xdd0966;};return _0x47bc();}function V(_0xcf9d2f,_0x952345){const _0x28498d=_0x203660;try{return new URL(_0xcf9d2f)[_0x28498d(0x158)]===new URL(_0x952345)[_0x28498d(0x158)];}catch{return!0x1;}}async function Y(_0x3b96a4){const _0x30dc02=_0x203660;k()&&(console[_0x30dc02(0x1dd)](_0x30dc02(0x1ac)),process[_0x30dc02(0x16c)](0x2));let _0xdf7950=await _0x3b7ec8();if(_0xdf7950||(console['error'](Q()),process[_0x30dc02(0x16c)](0x2)),_0x3b96a4['trim']()){let _0x2b94e1=await _0x53ab71(_0xdf7950,_0x3b96a4);_0x38a352(_0x2b94e1)||(console[_0x30dc02(0x1dd)](_0x30dc02(0x19e)+_0x17ca9d()+_0x30dc02(0x1a9)+_0xdf7950[_0x30dc02(0x16b)]+'.'),process['exit'](0x1)),console[_0x30dc02(0x163)]('Tenant:\x20'+_0x2b94e1[_0x30dc02(0x16b)]+'\x20('+_0x2b94e1[_0x30dc02(0x1c6)]+')\x20—\x20saved\x20to\x20'+_0x17ca9d());return;}Z(await _0x2455fb(_0xdf7950),_0xdf7950);}function Q(){const _0x17e266=_0x203660;if(_0x34a65f[_0x17e266(0x1de)](_0x17ca9d()))return _0x17e266(0x1df);let _0x43bdc6=v();return f(_0x43bdc6)?_0x17e266(0x1b8)+_0x43bdc6+_0x17e266(0x1eb):_0x17e266(0x15d);}function Z(_0x326273,_0x4124be){const _0x4ed0b2=_0x203660;let _0x1fcf69=_0x326273[_0x4ed0b2(0x149)](_0x18d0f8=>_0x18d0f8['id']===_0x4124be['tenantId']?'*\x20'+_0x18d0f8[_0x4ed0b2(0x1d5)]+_0x4ed0b2(0x178):'\x20\x20'+_0x18d0f8[_0x4ed0b2(0x1d5)]);process['stdout'][_0x4ed0b2(0x1d0)](_0x4ed0b2(0x1ba)+(_0x4124be[_0x4ed0b2(0x1af)]??_0x4124be[_0x4ed0b2(0x179)])+':\x0a'+_0x1fcf69['join']('\x0a')+'\x0a'),_0x326273['length']>0x1&&process['stdout'][_0x4ed0b2(0x1d0)]('Switch\x20with:\x20delegate-cli\x20tenant\x20<name>\x0a');}function ee(_0x4985df){const _0x4639a9=_0x203660;return _0x4985df?.[_0x4639a9(0x168)]?.[_0x4639a9(0x198)]===0x191||/401/[_0x4639a9(0x19b)](String(_0x4985df?.['message']??''));}var a={'lastType':null,'quiet':!0x1},S=_0x13fdf6=>{const _0x45cc7b=_0x203660;switch(_0x13fdf6['type']){case'thinking':_0x13fdf6[_0x45cc7b(0x1c4)]&&!a[_0x45cc7b(0x1cb)]&&(a['lastType']!=='thinking'&&process['stderr'][_0x45cc7b(0x1d0)](_0x45cc7b(0x166)),process[_0x45cc7b(0x161)][_0x45cc7b(0x1d0)](_0x13fdf6['content']),a['lastType']=_0x45cc7b(0x1ef));break;case _0x45cc7b(0x190):a[_0x45cc7b(0x15e)]!==null&&process['stderr'][_0x45cc7b(0x1d0)]('\x0a'),process[_0x45cc7b(0x161)][_0x45cc7b(0x1d0)](_0x45cc7b(0x1ea)+(_0x13fdf6[_0x45cc7b(0x155)]??_0x45cc7b(0x1d2))+'\x0a'),a[_0x45cc7b(0x15e)]=_0x45cc7b(0x190);break;case _0x45cc7b(0x18e):_0x13fdf6[_0x45cc7b(0x1c4)]&&(a[_0x45cc7b(0x15e)]!==_0x45cc7b(0x18e)&&a['lastType']!==null&&process[_0x45cc7b(0x180)][_0x45cc7b(0x1d0)]('\x0a'),process[_0x45cc7b(0x180)]['write'](_0x13fdf6[_0x45cc7b(0x1c4)]),a['lastType']=_0x45cc7b(0x18e));break;case _0x45cc7b(0x1dd):a[_0x45cc7b(0x15e)]!==null&&process[_0x45cc7b(0x161)][_0x45cc7b(0x1d0)]('\x0a'),process[_0x45cc7b(0x161)][_0x45cc7b(0x1d0)]('✗\x20'+(_0x13fdf6['error']??_0x13fdf6[_0x45cc7b(0x18e)]??'error')+'\x0a'),a[_0x45cc7b(0x15e)]=_0x45cc7b(0x1dd);break;case'done':(a[_0x45cc7b(0x15e)]===_0x45cc7b(0x18e)||a[_0x45cc7b(0x15e)]==='thinking')&&process[_0x45cc7b(0x180)][_0x45cc7b(0x1d0)]('\x0a'),process[_0x45cc7b(0x161)][_0x45cc7b(0x1d0)](_0x45cc7b(0x183)),a[_0x45cc7b(0x15e)]=_0x45cc7b(0x184);break;}};async function ne(_0x2a95fd){const _0x2661c7=_0x203660;let _0x213ac1=await F(_0x2a95fd['prompt'],process[_0x2661c7(0x1d9)]);_0x213ac1||(console[_0x2661c7(0x1dd)](_0x2661c7(0x15f)),process[_0x2661c7(0x16c)](0x2)),a[_0x2661c7(0x1cb)]=_0x2a95fd['quiet'];let _0x11d8f1=await E(),_0x3b19ee=new _0xf0320();_0x3b19ee['onEvent'](S);let _0x18cc87=y(_0x2a95fd[_0x2661c7(0x1cd)],_0x11d8f1,_0x2a95fd['backendUrl']);U(_0x2a95fd[_0x2661c7(0x1cd)],_0x2a95fd[_0x2661c7(0x1ec)],_0x18cc87);let _0x1b0dd5={'backendUrl':_0x18cc87,'auth':_0x11d8f1,'enableComputerUse':!_0x2a95fd[_0x2661c7(0x14e)],'autoSpawnInterop':!_0x2a95fd['headless'],'enableConnections':!_0x2a95fd[_0x2661c7(0x1e5)],'enableSecurity':!_0x2a95fd['noSecurity'],'keepInteropAlive':_0x2a95fd[_0x2661c7(0x1ce)],..._0x2a95fd[_0x2661c7(0x1db)][_0x2661c7(0x1e4)]>0x0?{'preloadSkills':_0x2a95fd['preloadSkills']}:{},..._0x2a95fd[_0x2661c7(0x1a4)]||process.env.MODEL?{'model':_0x2a95fd[_0x2661c7(0x1a4)]||process.env.MODEL}:{}},_0xb49273=!0x1,_0x193c1b=!0x1,_0x19a9a4=()=>{const _0x44dbda=_0x2661c7;_0x193c1b&&process['exit'](0x82),_0x193c1b=!0x0,process[_0x44dbda(0x161)][_0x44dbda(0x1d0)](_0x44dbda(0x17f)),_0xb49273?_0x3b19ee[_0x44dbda(0x196)]()[_0x44dbda(0x15c)](()=>process[_0x44dbda(0x16c)](0x82)):process[_0x44dbda(0x16c)](0x82);};process[_0x2661c7(0x150)](_0x2661c7(0x16d),_0x19a9a4),await _0x3b19ee[_0x2661c7(0x164)](_0x1b0dd5),_0xb49273=!0x0;try{await _0x3b19ee[_0x2661c7(0x1cc)](_0x213ac1);}catch(_0x4df326){if(ee(_0x4df326)&&process[_0x2661c7(0x1d9)][_0x2661c7(0x181)]&&_0x2a95fd[_0x2661c7(0x1cd)]!==_0x2661c7(0x15b)&&(_0x2a95fd['env']||_0x11d8f1['baseUrl'])){process[_0x2661c7(0x161)][_0x2661c7(0x1d0)]('\x0a⚠️\x20\x20Auth\x20expired.\x20Opening\x20browser\x20to\x20re-login…\x0a');let _0x5c37ee=await _0x447a5d(_0x2a95fd[_0x2661c7(0x1cd)]?{'env':_0x2a95fd[_0x2661c7(0x1cd)],'tenant':L(_0x11d8f1,m[_0x2a95fd['env']])}:{'baseUrl':_0x11d8f1['baseUrl'],'tenant':_0x11d8f1[_0x2661c7(0x16b)]});await _0x3b19ee['destroy'](),_0x3b19ee=new _0xf0320(),_0x3b19ee[_0x2661c7(0x15a)](S),await _0x3b19ee[_0x2661c7(0x164)]({..._0x1b0dd5,'auth':_0x5c37ee}),await _0x3b19ee[_0x2661c7(0x1cc)](_0x213ac1);}else throw _0x4df326;}finally{process['off'](_0x2661c7(0x16d),_0x19a9a4),await _0x3b19ee[_0x2661c7(0x196)]();}}async function te(){const _0x4f02d9=_0x203660;let _0x1cd223=x(process[_0x4f02d9(0x195)][_0x4f02d9(0x153)](0x2));if(_0x1cd223[_0x4f02d9(0x1a2)]){M();return;}if(_0x1cd223[_0x4f02d9(0x176)]){console['log'](B());return;}if(_0x1cd223['subcommand']==='login'){await X(_0x1cd223);return;}if(_0x1cd223[_0x4f02d9(0x19a)]===_0x4f02d9(0x1b0)){await Y(_0x1cd223[_0x4f02d9(0x14c)]);return;}if(_0x1cd223[_0x4f02d9(0x19a)]===_0x4f02d9(0x1bc)){await z();return;}if(_0x1cd223[_0x4f02d9(0x19a)]==='whoami'){await H();return;}if(_0x1cd223[_0x4f02d9(0x19a)]==='models'){await J(_0x1cd223);return;}if(_0x1cd223[_0x4f02d9(0x19a)]==='host'){await _0x176147(_0x1cd223['prompt'],{'runnerUrl':_0x1cd223[_0x4f02d9(0x1c1)],'backendUrl':_0x1cd223['backendUrl'],'interopPath':_0x1cd223[_0x4f02d9(0x156)],'workerId':_0x1cd223[_0x4f02d9(0x1d7)]});return;}if(_0x1cd223[_0x4f02d9(0x1d3)]){await K();return;}await ne(_0x1cd223);}var oe=process.env.NODE_ENV===_0x203660(0x19b)||!!process.env.JEST_WORKER_ID;oe||te()['catch'](_0x4f19a8=>{const _0x59414f=_0x203660;console['error'](_0x4f19a8[_0x59414f(0x1f3)]||_0x4f19a8[_0x59414f(0x18e)]||_0x4f19a8),process[_0x59414f(0x16c)](0x1);});export{G as IMPLICIT_STDIN_IDLE_MS,te as main,x as parseArgs,B as readCliVersion,F as resolvePrompt};
2
+ const _0x151789=_0xe176;(function(_0x1851e6,_0x26b944){const _0x1133f6=_0xe176,_0x203dde=_0x1851e6();while(!![]){try{const _0x958672=parseInt(_0x1133f6(0x14c))/0x1+-parseInt(_0x1133f6(0x1d6))/0x2+-parseInt(_0x1133f6(0x195))/0x3+-parseInt(_0x1133f6(0x1a4))/0x4+-parseInt(_0x1133f6(0x1d5))/0x5+-parseInt(_0x1133f6(0x1d9))/0x6+parseInt(_0x1133f6(0x13c))/0x7*(parseInt(_0x1133f6(0x1cc))/0x8);if(_0x958672===_0x26b944)break;else _0x203dde['push'](_0x203dde['shift']());}catch(_0x4547ed){_0x203dde['push'](_0x203dde['shift']());}}}(_0x1438,0xf0bad));const __dirname=import.meta.dirname;import _0x251751 from'fs';import _0x19e2a0 from'path';import{clearLine as _0x28209e,createInterface as _0x1fbfed,cursorTo as _0x47268f}from'node:readline';import{BUSINESS_ANALYSIS_PRELOADED_SKILLS as _0x297c1d,DelegateAgent as _0x45fbe7,InteropProcess as _0x37f632,getAuthFilePath as _0x3563f1,isSafeProjectFolderSegment as _0x3e7aab,listTenants as _0x24e413,loadAndRefreshAuth as _0x69040e,loadAndRefreshSdkLogin as _0x13658d,resolveBackendUrl as _0x504f1e,runHealthCheck as _0x12d4d7,runHostCommand as _0x3fff39,runLoginFlow as _0x22a257,saveAuthData as _0x1690ab,switchTenant as _0x4dacfe,ENV_TO_CLOUD as _0x1e01ef}from'@uipath/delegate-sdk';var V=[_0x151789(0x1aa),'tenant',_0x151789(0x1de),_0x151789(0x1ea),_0x151789(0x165),_0x151789(0x1d0),'check'],N=[_0x151789(0x13d),_0x151789(0x1ad),'high',_0x151789(0x1d1),_0x151789(0x169)],X=_0x297c1d;function f(_0xa8caa5,_0xe45133,_0x262bcc,_0x1ae04f){const _0x487c18=_0x151789;let _0x47acd0=_0xa8caa5[_0xe45133];return(!_0x47acd0||_0x47acd0[_0x487c18(0x1f9)]>0x1&&_0x47acd0['startsWith']('-'))&&(console[_0x487c18(0x192)](_0x262bcc+_0x487c18(0x1cb)+_0x1ae04f+'.'),process[_0x487c18(0x151)](0x2)),_0x47acd0;}function Q(_0x223471){const _0x20c193=_0x151789;let _0x4f99fe={'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['includes'](_0x223471[0x0])&&(_0x4f99fe[_0x20c193(0x156)]=_0x223471[0x0],_0x223471=_0x223471[_0x20c193(0x1a0)](0x1));let _0x4c519f=[];for(let _0xaca8ac=0x0;_0xaca8ac<_0x223471[_0x20c193(0x1f9)];_0xaca8ac++){let _0x4b4b4a=_0x223471[_0xaca8ac];switch(_0x4b4b4a){case _0x20c193(0x144):case'-p':_0x4f99fe[_0x20c193(0x1b4)]=!0x0;break;case'--keep-alive':_0x4f99fe[_0x20c193(0x15b)]=!0x0;break;case _0x20c193(0x17a):_0x4f99fe[_0x20c193(0x1c8)]=!0x0;break;case _0x20c193(0x183):_0x4f99fe[_0x20c193(0x16d)]=!0x0;break;case _0x20c193(0x1e1):_0x4f99fe[_0x20c193(0x17c)]=!0x0;break;case _0x20c193(0x16e):_0x4f99fe[_0x20c193(0x1e2)]=!0x0,_0x4f99fe[_0x20c193(0x17c)]=!0x0,_0x4f99fe[_0x20c193(0x1ee)]['push'](...X);break;case _0x20c193(0x172):_0x4f99fe[_0x20c193(0x19d)]=!0x0;break;case'--no-security':_0x4f99fe[_0x20c193(0x182)]=!0x0;break;case _0x20c193(0x170):case'-q':_0x4f99fe[_0x20c193(0x163)]=!0x0;break;case _0x20c193(0x1e3):_0x4f99fe[_0x20c193(0x1f8)]=!0x0;break;case _0x20c193(0x184):_0x4f99fe[_0x20c193(0x1e0)]=_0x223471[++_0xaca8ac];break;case _0x20c193(0x153):_0x4f99fe[_0x20c193(0x1bb)]=_0x223471[++_0xaca8ac];break;case _0x20c193(0x1c7):_0x4f99fe[_0x20c193(0x188)]=_0x223471[++_0xaca8ac];break;case _0x20c193(0x1eb):_0x4f99fe[_0x20c193(0x1fe)]=_0x223471[++_0xaca8ac];break;case _0x20c193(0x1d7):_0x4f99fe['workerId']=_0x223471[++_0xaca8ac];break;case'--preload-skill':_0x4f99fe['preloadSkills'][_0x20c193(0x1fb)](f(_0x223471,++_0xaca8ac,_0x4b4b4a,_0x20c193(0x17d)));break;case _0x20c193(0x1ff):{let _0x31649d=f(_0x223471,++_0xaca8ac,_0x4b4b4a,_0x20c193(0x1cd));_0x3e7aab(_0x31649d)||(console[_0x20c193(0x192)](_0x20c193(0x1b1)+_0x31649d+_0x20c193(0x181)),process[_0x20c193(0x151)](0x2)),_0x4f99fe[_0x20c193(0x1f7)]=_0x31649d;break;}case'--session':_0x4f99fe['sessionId']=f(_0x223471,++_0xaca8ac,_0x4b4b4a,_0x20c193(0x209));break;case _0x20c193(0x1c6):_0x4f99fe[_0x20c193(0x207)]=_0x19e2a0[_0x20c193(0x1fd)](process[_0x20c193(0x17b)](),f(_0x223471,++_0xaca8ac,_0x4b4b4a,_0x20c193(0x1a3)));break;case _0x20c193(0x17f):_0x4f99fe[_0x20c193(0x193)]=_0x19e2a0[_0x20c193(0x1fd)](process[_0x20c193(0x17b)](),f(_0x223471,++_0xaca8ac,_0x4b4b4a,'a\x20directory\x20path'));break;case _0x20c193(0x1ca):{let _0x2f5d96=f(_0x223471,++_0xaca8ac,_0x4b4b4a,_0x20c193(0x1ec));N[_0x20c193(0x1bc)](_0x2f5d96)||(console[_0x20c193(0x192)](_0x20c193(0x174)+_0x2f5d96+'.\x20Use\x20'+N[_0x20c193(0x1e8)]('\x20|\x20')+'.'),process['exit'](0x2)),_0x4f99fe[_0x20c193(0x1f1)]=_0x2f5d96;break;}case _0x20c193(0x19a):{let _0xbf3a60=_0x223471[++_0xaca8ac];(!_0xbf3a60||_0xbf3a60[_0x20c193(0x1ce)]('--'))&&(console[_0x20c193(0x192)](_0x20c193(0x157)),process['exit'](0x2)),_0x4f99fe['tenant']=_0xbf3a60;break;}case _0x20c193(0x189):{let _0x2dd5cd=_0x223471[++_0xaca8ac];[_0x20c193(0x200),_0x20c193(0x141),_0x20c193(0x18c),_0x20c193(0x140)][_0x20c193(0x1bc)](_0x2dd5cd)||(console['error'](_0x20c193(0x1a8)+_0x2dd5cd+'.\x20Use\x20alpha\x20|\x20staging\x20|\x20production\x20|\x20localhost.'),process[_0x20c193(0x151)](0x2)),_0x4f99fe['env']=_0x2dd5cd;break;}case'-h':case _0x20c193(0x206):_0x4f99fe['help']=!0x0;break;case'-v':case'--version':_0x4f99fe[_0x20c193(0x1df)]=!0x0;break;default:_0x4b4b4a[_0x20c193(0x1ce)]('--')&&(console[_0x20c193(0x192)](_0x20c193(0x1f5)+_0x4b4b4a),process[_0x20c193(0x151)](0x2)),_0x4c519f[_0x20c193(0x1fb)](_0x4b4b4a);}}return _0x4f99fe['tenant']!==void 0x0&&_0x4f99fe[_0x20c193(0x156)]!==_0x20c193(0x1aa)&&(console[_0x20c193(0x192)](_0x20c193(0x1a5)),process[_0x20c193(0x151)](0x2)),_0x4f99fe[_0x20c193(0x1ee)]=[...new Set(_0x4f99fe[_0x20c193(0x1ee)])],_0x4f99fe[_0x20c193(0x1c1)]=_0x4c519f[_0x20c193(0x1e8)]('\x20'),_0x4f99fe;}function Z(){const _0x109714=_0x151789;let _0xdfbf8a='\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'[_0x109714(0x205)]();console['log'](_0xdfbf8a);}function ee(){const _0x5e23c8=_0x151789;try{return JSON[_0x5e23c8(0x1c0)](_0x251751['readFileSync'](_0x19e2a0['join'](__dirname,'..',_0x5e23c8(0x1a9)),_0x5e23c8(0x19f)))[_0x5e23c8(0x1df)]||'unknown';}catch{return _0x5e23c8(0x142);}}function _0xe176(_0x45883a,_0xe3e15d){_0x45883a=_0x45883a-0x13b;const _0x143855=_0x1438();let _0xe17667=_0x143855[_0x45883a];return _0xe17667;}var te=0x7d0;async function L(_0x1f9172,_0x5d0d6c){const _0x2db420=_0x151789;let _0x120cbb=_0x5d0d6c?[_0x5d0d6c]:[];for await(let _0x4cc2a3 of _0x1f9172)_0x120cbb['push'](Buffer[_0x2db420(0x197)](_0x4cc2a3));return Buffer['concat'](_0x120cbb)[_0x2db420(0x1c2)](_0x2db420(0x19f))[_0x2db420(0x205)]();}function ne(_0x3f7750,_0x4bda65){return new Promise(_0x4ac824=>{const _0x30b541=_0xe176;let _0x5c7768=_0x5403e5=>{const _0x36d42c=_0xe176;clearTimeout(_0x3ec876),_0x3f7750[_0x36d42c(0x1c4)](_0x36d42c(0x15f),_0x3f6ba2),_0x3f7750[_0x36d42c(0x1c4)](_0x36d42c(0x1ab),_0x155c3e),_0x3f7750[_0x36d42c(0x1c4)](_0x36d42c(0x192),_0x155c3e),_0x3f7750['pause'](),_0x4ac824(_0x5403e5);},_0x3f6ba2=_0x17489=>_0x5c7768(Buffer['from'](_0x17489)),_0x155c3e=()=>_0x5c7768(null),_0x3ec876=setTimeout(()=>_0x5c7768(null),_0x4bda65);_0x3f7750['on'](_0x30b541(0x15f),_0x3f6ba2),_0x3f7750['on'](_0x30b541(0x1ab),_0x155c3e),_0x3f7750['on'](_0x30b541(0x192),_0x155c3e),_0x3f7750[_0x30b541(0x1e6)]();});}async function oe(_0x548137,_0x33ccc6,_0x22229d=te){const _0x278af3=_0x151789;let _0x409a44=_0x548137==='-';if(!_0x409a44&&_0x548137)return _0x548137;if(!_0x409a44&&_0x33ccc6[_0x278af3(0x1b6)])return'';if(_0x409a44)return L(_0x33ccc6,null);let _0x364b09=await ne(_0x33ccc6,_0x22229d);return _0x364b09?L(_0x33ccc6,_0x364b09):'';}function S(){const _0x332cf0=_0x151789;return _0x19e2a0[_0x332cf0(0x1e8)](process.env.HOME||process.env.USERPROFILE||'',_0x332cf0(0x201),_0x332cf0(0x148));}function k(_0x53d622){const _0x1e1fae=_0x151789;try{let _0x4ae7e6=JSON['parse'](_0x251751[_0x1e1fae(0x202)](_0x53d622,_0x1e1fae(0x19f)));return!_0x4ae7e6[_0x1e1fae(0x13e)]||!_0x4ae7e6[_0x1e1fae(0x1af)]||!_0x4ae7e6[_0x1e1fae(0x1b7)]?null:_0x4ae7e6;}catch{return null;}}function se(){const _0x3ac0ad=_0x151789;let _0x376f32=[{'file':_0x3563f1(),'isDesktopFallback':!0x1},{'file':S(),'isDesktopFallback':!0x0}];for(let _0x5160eb of _0x376f32){let _0x3e0162=k(_0x5160eb[_0x3ac0ad(0x1be)]);if(_0x3e0162)return{..._0x5160eb,'auth':_0x3e0162};}return null;}async function re(){const _0x22a148=_0x151789;let _0x4fb7c2=_0x3563f1();if(!_0x251751['existsSync'](_0x4fb7c2)){let _0x1b1e90=S();console[_0x22a148(0x161)](k(_0x1b1e90)?_0x22a148(0x14f)+_0x1b1e90+_0x22a148(0x1ed):_0x22a148(0x13f));return;}_0x251751[_0x22a148(0x159)](_0x4fb7c2),console[_0x22a148(0x161)](_0x22a148(0x1d8)+_0x4fb7c2);}function _0x1438(){const _0x62d073=['--runner-url','cleanup','thinking','--effort','\x20requires\x20','21552hdeZdG','a\x20project\x20id','startsWith','Interop\x20stopped\x20(if\x20it\x20was\x20running).','whoami','xhigh','skip','name','initialize','6587035CfCFpS','2715394KfOWuk','--worker-id','Removed\x20','4111980vTyJhq','[saved\x20login]\x20Backend\x20URL:\x20','show','No\x20models\x20available\x20for\x20this\x20product/tenant.\x0a','Enter\x20sends\x20a\x20message.\x20/exit\x20or\x20EOF\x20exits;\x20Ctrl+C\x20stops\x20and\x20exits.\x0a','models','version','backendUrl','--no-computer-use','cartographer','--verbose','argv','/exit','resume','stderr','join','The\x20saved\x20CLI\x20login\x20could\x20not\x20be\x20refreshed.\x20Run\x20`delegate-cli\x20login`\x20again.','host','--interop','an\x20effort\x20tier','\x20—\x20sign\x20out\x20in\x20the\x20Delegate\x20app\x20to\x20clear\x20that.','preloadSkills','test','799f56b8-4aed-4a0f-8640-659dae4a9e0e','effort','help','getSessionId','once','Unknown\x20flag:\x20','Organization:\x20','projectId','verbose','length','/v1/config','push','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.','resolve','interopPath','--project','alpha','.aria','readFileSync','Tenant:\x20\x20\x20\x20\x20\x20\x20','Switch\x20with:\x20delegate-cli\x20tenant\x20<name>\x0a','trim','--help','workingDirectory','\x0aStopping…\x20(Ctrl+C\x20again\x20to\x20force\x20exit)\x0a','a\x20session\x20id','Bearer\x20','14567VyQcNx','low','accessToken','No\x20CLI\x20login\x20found\x20—\x20nothing\x20to\x20remove.','localhost','staging','unknown','floor','--print','tenantName','tool','Auth\x20comes\x20from\x20AUTH_TOKEN/TENANT_ID/ORG_ID\x20—\x20set\x20TENANT_ID\x20and\x20TENANT_SLUG\x20to\x20change\x20the\x20tenant.','auth.json','unknown\x20slug','statusText','stdout','721639yZPVxr','\x20→\x20','toISOString','No\x20CLI\x20login\x20found.\x20Note:\x20the\x20CLI\x20is\x20currently\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20','MODELS','exit','destroy','--model','detail','Tenant:\x20','subcommand','--tenant\x20requires\x20a\x20tenant\x20name.','sessionId','rmSync','entries','keepAlive','padEnd','Missing\x20prompt.\x20Pass\x20it\x20as\x20an\x20argument,\x20pipe\x20it\x20via\x20stdin,\x20or\x20run\x20`delegate-cli\x20--help`.','bind','data','\x0a🤔\x20','log','\x0aAvailable\x20models\x20(','quiet','):\x0a\x0a','logout','tenant','\x20min)','write','max','auth','Tenant\x20not\x20switched:\x20could\x20not\x20write\x20','onEvent','headless','--cartographer','type','--quiet','existsSync','--no-connections','Token:\x20\x20\x20\x20\x20\x20\x20\x20expired\x20','Invalid\x20--effort:\x20','exitCode','lastType','isDesktopFallback','env','Tenants\x20of\x20','--cleanup','cwd','noComputerUse','a\x20skill\x20name','stop','--skills-path','checks','\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).','noSecurity','--headless','--backend','X-Uipath-Organizationid','baseUrl','GET\x20','runnerUrl','--env','asyncIterator','You>\x20','production','catch','spawn','workerId','tool_call','sendMessage','error','bundledSkillsPath','origin','1420416aCnRyS','--env\x20localhost\x20has\x20no\x20OAuth\x20flow;\x20pick\x20alpha,\x20staging,\x20or\x20production.','from','close','description','--tenant','stdin','status','noConnections','environment\x20variables\x20(AUTH_TOKEN/TENANT_ID/ORG_ID)','utf-8','slice','map','json','a\x20directory\x20path','6031672hxLEeb','--tenant\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Switch\x20tenants\x20with:\x20delegate-cli\x20tenant\x20<name>','Token:\x20\x20\x20\x20\x20\x20\x20\x20expires\x20','orgLogicalName','Invalid\x20--env:\x20','package.json','login','end','object','medium','isArray','tenantId','content','Invalid\x20--project:\x20\x22',';\x20the\x20saved\x20login\x20still\x20uses\x20','message','print','stack','isTTY','organizationId','✓\x20Done\x0a','SIGINT','round','model','includes','hide','file','No\x20CLI\x20login\x20to\x20switch:\x20the\x20CLI\x20is\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20','parse','prompt','toString','[env=','off','expiresAt','--working-dir'];_0x1438=function(){return _0x62d073;};return _0x1438();}async function ie(){const _0x541121=_0x151789;let _0x38508a=y(),_0x315303,_0xd98918;if(_0x38508a)_0x315303=_0x38508a,_0xd98918=_0x541121(0x19e);else{let _0x5a5ecd=se();if(!_0x5a5ecd)throw new Error(C);_0x315303=_0x5a5ecd[_0x541121(0x16a)],_0xd98918=_0x5a5ecd[_0x541121(0x177)]?_0x5a5ecd[_0x541121(0x1be)]+'\x20(Delegate\x20desktop\x20app\x20fallback)':_0x5a5ecd['file'];}let _0x435002=['Source:\x20\x20\x20\x20\x20\x20\x20'+_0xd98918,'Base\x20URL:\x20\x20\x20\x20\x20'+(_0x315303[_0x541121(0x186)]??_0x541121(0x142)),_0x541121(0x1f6)+(_0x315303[_0x541121(0x1a7)]??_0x541121(0x149))+'\x20('+_0x315303[_0x541121(0x1b7)]+')',_0x541121(0x203)+(_0x315303['tenantName']??_0x541121(0x149))+'\x20('+_0x315303[_0x541121(0x1af)]+')'];if(_0x315303[_0x541121(0x1c5)]){let _0x17a4bd=_0x315303[_0x541121(0x1c5)]-Math[_0x541121(0x143)](Date['now']()/0x3e8),_0xf55260=new Date(_0x315303[_0x541121(0x1c5)]*0x3e8)[_0x541121(0x14e)]();_0x435002[_0x541121(0x1fb)](_0x17a4bd>0x0?_0x541121(0x1a6)+_0xf55260+'\x20(in\x20'+Math[_0x541121(0x1ba)](_0x17a4bd/0x3c)+_0x541121(0x167):_0x541121(0x173)+_0xf55260);}process['stdout'][_0x541121(0x168)](_0x435002[_0x541121(0x1e8)]('\x0a')+'\x0a');}var C=_0x151789(0x1fc);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 _0x186849=y();if(_0x186849)return _0x186849;let _0x237ef3=await _0x69040e();if(_0x237ef3)return _0x237ef3;throw new Error(C);}async function ae(){const _0x4da1be=_0x151789;await new _0x37f632()[_0x4da1be(0x17e)]({'force':!0x0}),console['log'](_0x4da1be(0x1cf));}var le=_0x151789(0x1f0);function I(_0x49cc55,_0x58575d,_0x59de64){const _0x3acb67=_0x151789;_0x49cc55?process[_0x3acb67(0x1e7)][_0x3acb67(0x168)](_0x3acb67(0x1c3)+_0x49cc55+']\x20Backend\x20URL:\x20'+_0x59de64+'\x0a'):!_0x58575d&&!process.env.BACKEND_URL&&process[_0x3acb67(0x1e7)][_0x3acb67(0x168)](_0x3acb67(0x1da)+_0x59de64+'\x0a');}async function ce(_0x11b94e){const _0x4234e7=_0x151789;let _0x116504=await A(),_0x5fd51b=_0x504f1e(_0x11b94e[_0x4234e7(0x178)],_0x116504,_0x11b94e[_0x4234e7(0x1e0)]);I(_0x11b94e[_0x4234e7(0x178)],_0x11b94e['backendUrl'],_0x5fd51b);let _0x1d1954=_0x5fd51b+_0x4234e7(0x1fa),_0x4ca77f={'Authorization':_0x4234e7(0x13b)+_0x116504[_0x4234e7(0x13e)],'X-UiPath-ConsumingProductId':le};_0x116504[_0x4234e7(0x1af)]&&(_0x4ca77f['X-Uipath-Tenantid']=_0x116504['tenantId']),_0x116504['organizationId']&&(_0x4ca77f[_0x4234e7(0x185)]=_0x116504[_0x4234e7(0x1b7)]);let _0x10d2d4=await fetch(_0x1d1954,{'headers':_0x4ca77f});if(!_0x10d2d4['ok'])throw new Error(_0x4234e7(0x187)+_0x1d1954+_0x4234e7(0x14d)+_0x10d2d4[_0x4234e7(0x19c)]+'\x20'+_0x10d2d4[_0x4234e7(0x14a)]);let _0xcbe1f2=(await _0x10d2d4[_0x4234e7(0x1a2)]())?.[_0x4234e7(0x150)],_0x384e3c=Array[_0x4234e7(0x1ae)](_0xcbe1f2)?_0xcbe1f2:_0xcbe1f2&&typeof _0xcbe1f2==_0x4234e7(0x1ac)?Object[_0x4234e7(0x15a)](_0xcbe1f2)['map'](([_0x5831f6,_0x5b7f54])=>({'id':_0x5831f6,'name':_0x5b7f54})):[];if(_0x384e3c[_0x4234e7(0x1f9)]===0x0){process['stderr'][_0x4234e7(0x168)](_0x4234e7(0x1dc));return;}process[_0x4234e7(0x14b)][_0x4234e7(0x168)](_0x4234e7(0x162)+_0x384e3c['length']+_0x4234e7(0x164));for(let _0x41d901 of _0x384e3c){let _0x1c53de=_0x41d901[_0x4234e7(0x1d3)]&&_0x41d901[_0x4234e7(0x1d3)]!==_0x41d901['id']?'\x20('+_0x41d901[_0x4234e7(0x1d3)]+')':'';process[_0x4234e7(0x14b)][_0x4234e7(0x168)]('\x20\x20'+_0x41d901['id']+_0x1c53de+'\x0a'),_0x41d901[_0x4234e7(0x199)]&&process[_0x4234e7(0x14b)][_0x4234e7(0x168)]('\x20\x20\x20\x20'+_0x41d901[_0x4234e7(0x199)]+'\x0a');}process[_0x4234e7(0x14b)][_0x4234e7(0x168)]('\x0aUse\x20with:\x20delegate-cli\x20--model\x20<id>\x20\x22<prompt>\x22\x0a');}async function de(_0x3ac095){const _0x3d924a=_0x151789;let _0x59e124=await A(),_0x28f31b=_0x504f1e(_0x3ac095[_0x3d924a(0x178)],_0x59e124,_0x3ac095[_0x3d924a(0x1e0)]);I(_0x3ac095[_0x3d924a(0x178)],_0x3ac095[_0x3d924a(0x1e0)],_0x28f31b);let _0x439bb2=await _0x12d4d7({'auth':_0x59e124,'backendUrl':_0x28f31b,'interop':_0x3ac095[_0x3d924a(0x16d)]?_0x3d924a(0x1d2):_0x3d924a(0x18e)});for(let _0x3b7d04 of _0x439bb2[_0x3d924a(0x180)])process['stdout'][_0x3d924a(0x168)](ue(_0x3b7d04)+'\x0a');_0x439bb2['ok']||process['exit'](0x1);}function ue(_0x1b0609){const _0x3d56af=_0x151789;return{'ok':'✓','failed':'✗','skipped':'-'}[_0x1b0609['status']]+'\x20'+_0x1b0609[_0x3d56af(0x1d3)][_0x3d56af(0x15c)](0x8)+_0x1b0609[_0x3d56af(0x154)];}async function pe(_0x45d7fe){const _0x4b9a15=_0x151789;_0x45d7fe['env']===_0x4b9a15(0x140)&&(console[_0x4b9a15(0x192)](_0x4b9a15(0x196)),process[_0x4b9a15(0x151)](0x2));let _0x3360d9=k(_0x3563f1());if(_0x45d7fe['env']){let _0x56ad18=_0x45d7fe[_0x4b9a15(0x178)];await _0x22a257({'env':_0x56ad18,'tenant':_0x45d7fe[_0x4b9a15(0x166)]??P(_0x3360d9,_0x1e01ef[_0x56ad18])});return;}if(_0x3360d9?.['baseUrl']){await _0x22a257({'baseUrl':_0x3360d9[_0x4b9a15(0x186)],'tenant':_0x45d7fe[_0x4b9a15(0x166)]??_0x3360d9[_0x4b9a15(0x145)]});return;}console['error']('First\x20login\x20requires\x20--env.\x20Usage:\x20delegate-cli\x20login\x20--env\x20<alpha|staging|production>'),process['exit'](0x2);}function P(_0x62e7a0,_0x3cfd7e){const _0x75263b=_0x151789;return _0x62e7a0?.['baseUrl']&&fe(_0x62e7a0['baseUrl'],_0x3cfd7e)?_0x62e7a0[_0x75263b(0x145)]:void 0x0;}function fe(_0x474221,_0x18a58d){const _0x334952=_0x151789;try{return new URL(_0x474221)[_0x334952(0x194)]===new URL(_0x18a58d)[_0x334952(0x194)];}catch{return!0x1;}}async function he(_0x4d42b1){const _0x3a34e1=_0x151789;y()&&(console[_0x3a34e1(0x192)](_0x3a34e1(0x147)),process[_0x3a34e1(0x151)](0x2));let _0x3a621f=await _0x13658d();if(_0x3a621f||(console[_0x3a34e1(0x192)](ge()),process['exit'](0x2)),_0x4d42b1[_0x3a34e1(0x205)]()){let _0x2b754a=await _0x4dacfe(_0x3a621f,_0x4d42b1);_0x1690ab(_0x2b754a)||(console[_0x3a34e1(0x192)](_0x3a34e1(0x16b)+_0x3563f1()+_0x3a34e1(0x1b2)+_0x3a621f[_0x3a34e1(0x145)]+'.'),process[_0x3a34e1(0x151)](0x1)),console[_0x3a34e1(0x161)](_0x3a34e1(0x155)+_0x2b754a['tenantName']+'\x20('+_0x2b754a[_0x3a34e1(0x1af)]+')\x20—\x20saved\x20to\x20'+_0x3563f1());return;}me(await _0x24e413(_0x3a621f),_0x3a621f);}function ge(){const _0x1ccc24=_0x151789;if(_0x251751[_0x1ccc24(0x171)](_0x3563f1()))return _0x1ccc24(0x1e9);let _0x1ae7f1=S();return k(_0x1ae7f1)?_0x1ccc24(0x1bf)+_0x1ae7f1+',\x20whose\x20tenant\x20is\x20chosen\x20in\x20the\x20app.\x20Run\x20`delegate-cli\x20login\x20--env\x20<env>`\x20for\x20a\x20CLI\x20login\x20of\x20your\x20own.':'No\x20CLI\x20login\x20found.\x20Run\x20`delegate-cli\x20login\x20--env\x20<alpha|staging|production>`\x20first.';}function me(_0x26027a,_0x448606){const _0x30d0be=_0x151789;let _0x4db311=_0x26027a[_0x30d0be(0x1a1)](_0x3d3fc1=>_0x3d3fc1['id']===_0x448606[_0x30d0be(0x1af)]?'*\x20'+_0x3d3fc1[_0x30d0be(0x1d3)]+'\x20(current)':'\x20\x20'+_0x3d3fc1[_0x30d0be(0x1d3)]);process[_0x30d0be(0x14b)][_0x30d0be(0x168)](_0x30d0be(0x179)+(_0x448606[_0x30d0be(0x1a7)]??_0x448606[_0x30d0be(0x1b7)])+':\x0a'+_0x4db311[_0x30d0be(0x1e8)]('\x0a')+'\x0a'),_0x26027a[_0x30d0be(0x1f9)]>0x1&&process['stdout']['write'](_0x30d0be(0x204));}function ke(_0x3a466d){const _0x4d4e4b=_0x151789;return _0x3a466d?.['response']?.[_0x4d4e4b(0x19c)]===0x191||/401/['test'](String(_0x3a466d?.[_0x4d4e4b(0x1b3)]??''));}var l={'lastType':null,'quiet':!0x1},_=_0x833c25=>{const _0x25e0ad=_0x151789;switch(_0x833c25[_0x25e0ad(0x16f)]){case'session_start':_0x833c25[_0x25e0ad(0x158)]&&_0x833c25[_0x25e0ad(0x158)]!==l[_0x25e0ad(0x158)]&&(process[_0x25e0ad(0x1e7)]['write']('Session:\x20'+_0x833c25[_0x25e0ad(0x158)]+'\x20(resume\x20with\x20--session\x20'+_0x833c25[_0x25e0ad(0x158)]+')\x0a'),l[_0x25e0ad(0x158)]=_0x833c25[_0x25e0ad(0x158)]);break;case _0x25e0ad(0x1c9):_0x833c25[_0x25e0ad(0x1b0)]&&!l['quiet']&&(l[_0x25e0ad(0x176)]!==_0x25e0ad(0x1c9)&&process[_0x25e0ad(0x1e7)][_0x25e0ad(0x168)](_0x25e0ad(0x160)),process[_0x25e0ad(0x1e7)][_0x25e0ad(0x168)](_0x833c25[_0x25e0ad(0x1b0)]),l['lastType']=_0x25e0ad(0x1c9));break;case _0x25e0ad(0x190):l['lastType']!==null&&process[_0x25e0ad(0x1e7)][_0x25e0ad(0x168)]('\x0a'),process[_0x25e0ad(0x1e7)][_0x25e0ad(0x168)]('🔧\x20'+(_0x833c25['toolName']??_0x25e0ad(0x146))+'\x0a'),l[_0x25e0ad(0x176)]=_0x25e0ad(0x190);break;case _0x25e0ad(0x1b3):_0x833c25[_0x25e0ad(0x1b0)]&&(l['lastType']!==_0x25e0ad(0x1b3)&&l[_0x25e0ad(0x176)]!==null&&process[_0x25e0ad(0x14b)][_0x25e0ad(0x168)]('\x0a'),process[_0x25e0ad(0x14b)][_0x25e0ad(0x168)](_0x833c25[_0x25e0ad(0x1b0)]),l['lastType']=_0x25e0ad(0x1b3));break;case _0x25e0ad(0x192):l['lastType']!==null&&process[_0x25e0ad(0x1e7)]['write']('\x0a'),process[_0x25e0ad(0x1e7)][_0x25e0ad(0x168)]('✗\x20'+(_0x833c25[_0x25e0ad(0x192)]??'error')+'\x0a'),l['lastType']=_0x25e0ad(0x192);break;case'done':(l[_0x25e0ad(0x176)]===_0x25e0ad(0x1b3)||l[_0x25e0ad(0x176)]==='thinking')&&process[_0x25e0ad(0x14b)]['write']('\x0a'),process[_0x25e0ad(0x1e7)][_0x25e0ad(0x168)](_0x25e0ad(0x1b8)),l[_0x25e0ad(0x176)]='done';break;}};function R(_0x34dc61,_0x32618d,_0x3b9b5a){const _0x2471a7=_0x151789;let _0x337c51=_0x34dc61[_0x2471a7(0x1bb)]||process.env.MODEL;return{'backendUrl':_0x3b9b5a,'auth':_0x32618d,'enableComputerUse':!_0x34dc61[_0x2471a7(0x16d)]&&!_0x34dc61[_0x2471a7(0x17c)],'autoSpawnInterop':!_0x34dc61[_0x2471a7(0x16d)],'enableConnections':!_0x34dc61[_0x2471a7(0x19d)],'enableSecurity':!_0x34dc61['noSecurity'],'keepInteropAlive':_0x34dc61[_0x2471a7(0x15b)],..._0x34dc61['preloadSkills'][_0x2471a7(0x1f9)]>0x0?{'preloadSkills':_0x34dc61[_0x2471a7(0x1ee)]}:{},..._0x337c51?{'model':_0x337c51}:{},..._0x34dc61['projectId']?{'projectId':_0x34dc61[_0x2471a7(0x1f7)]}:{},..._0x34dc61[_0x2471a7(0x207)]?{'workingDirectory':_0x34dc61[_0x2471a7(0x207)]}:{},..._0x34dc61['bundledSkillsPath']?{'bundledSkillsPath':_0x34dc61[_0x2471a7(0x193)]}:{},..._0x34dc61[_0x2471a7(0x1f1)]?{'effort':_0x34dc61[_0x2471a7(0x1f1)]}:{},..._0x34dc61[_0x2471a7(0x158)]?{'sessionId':_0x34dc61[_0x2471a7(0x158)]}:{},..._0x34dc61[_0x2471a7(0x1f8)]?{'verbose':!0x0}:{}};}async function we(_0x4398eb){const _0x2203c4=_0x151789;let _0x167985=!_0x4398eb[_0x2203c4(0x1b4)]&&_0x4398eb[_0x2203c4(0x1c1)]!=='-'&&!!process[_0x2203c4(0x19b)]['isTTY']&&!!process['stdout'][_0x2203c4(0x1b6)],_0x26911b=_0x167985?_0x4398eb[_0x2203c4(0x1c1)][_0x2203c4(0x205)]():await oe(_0x4398eb['prompt'],process[_0x2203c4(0x19b)]);!_0x167985&&!_0x26911b&&(console[_0x2203c4(0x192)](_0x2203c4(0x15d)),process[_0x2203c4(0x151)](0x2)),l={'lastType':null,'quiet':_0x4398eb[_0x2203c4(0x163)]};let _0x4d104d=await A(),_0x436eac=new _0x45fbe7();_0x436eac[_0x2203c4(0x16c)](_);let _0x729a39=_0x504f1e(_0x4398eb[_0x2203c4(0x178)],_0x4d104d,_0x4398eb['backendUrl']);I(_0x4398eb[_0x2203c4(0x178)],_0x4398eb[_0x2203c4(0x1e0)],_0x729a39);let _0x1cb443=R(_0x4398eb,_0x4d104d,_0x729a39),_0x3cfd95=!0x1,_0x45f378=!0x1,_0x91a31b,_0x33429a=()=>_0x91a31b??=_0x436eac[_0x2203c4(0x152)](),_0x2448d7=()=>{const _0x1e9c9d=_0x2203c4;_0x45f378&&process[_0x1e9c9d(0x151)](0x82),_0x45f378=!0x0,process[_0x1e9c9d(0x1e7)]['write'](_0x1e9c9d(0x208)),_0x3cfd95&&_0x33429a()['then'](()=>process[_0x1e9c9d(0x151)](0x82),_0x2c1c0e=>{const _0x5a13bc=_0x1e9c9d;console[_0x5a13bc(0x192)](_0x2c1c0e),process['exit'](0x82);});};process['on'](_0x2203c4(0x1b9),_0x2448d7);let _0x6d6b34=async _0x252d8a=>{const _0x5438fe=_0x2203c4;try{await _0x436eac[_0x5438fe(0x191)](_0x252d8a);}catch(_0x4e5fc1){if(_0x45f378||!ke(_0x4e5fc1)||!process[_0x5438fe(0x19b)][_0x5438fe(0x1b6)]||_0x4398eb[_0x5438fe(0x178)]===_0x5438fe(0x140)||!(_0x4398eb['env']||_0x4d104d['baseUrl']))throw _0x4e5fc1;process[_0x5438fe(0x1e7)][_0x5438fe(0x168)]('\x0a⚠️\x20\x20Auth\x20expired.\x20Opening\x20browser\x20to\x20re-login…\x0a');let _0x3ae9cf=_0x436eac[_0x5438fe(0x1f3)]()??_0x4398eb['sessionId'],_0x112ee5=await _0x22a257(_0x4398eb[_0x5438fe(0x178)]?{'env':_0x4398eb[_0x5438fe(0x178)],'tenant':P(_0x4d104d,_0x1e01ef[_0x4398eb['env']])}:{'baseUrl':_0x4d104d[_0x5438fe(0x186)],'tenant':_0x4d104d['tenantName']});if(_0x45f378||(_0x3cfd95=!0x1,await _0x33429a(),_0x45f378))return;_0x436eac=new _0x45fbe7(),_0x91a31b=void 0x0,_0x436eac[_0x5438fe(0x16c)](_),_0x4d104d=_0x112ee5,await _0x436eac[_0x5438fe(0x1d4)]({...R(_0x4398eb,_0x4d104d,_0x729a39),..._0x3ae9cf?{'sessionId':_0x3ae9cf}:{}}),_0x3cfd95=!0x0,_0x45f378||await _0x436eac['sendMessage'](_0x252d8a);}};try{if(await _0x436eac[_0x2203c4(0x1d4)](_0x1cb443),_0x3cfd95=!0x0,_0x45f378)return;_0x167985?await ve({'prompt':_0x26911b,'sendMessage':_0x6d6b34,'onSigint':_0x2448d7}):await _0x6d6b34(_0x26911b);}catch(_0x2ab5b7){if(!_0x45f378)throw _0x2ab5b7;}finally{try{await _0x33429a();}finally{process[_0x2203c4(0x1c4)]('SIGINT',_0x2448d7),_0x45f378&&(process[_0x2203c4(0x175)]=0x82);}}}function be(_0x3c5339,_0x1814a2){const _0x322812=_0x151789;let _0x237e1a=process[_0x322812(0x14b)][_0x322812(0x168)][_0x322812(0x15e)](process[_0x322812(0x14b)]),_0x339eb4=!0x1;return process['stdout'][_0x322812(0x168)]=(..._0xa6d28b)=>{const _0x6584ee=_0x322812;if(!_0x339eb4)return _0x237e1a(..._0xa6d28b);_0x47268f(_0x1814a2,0x0),_0x28209e(_0x1814a2,0x0);let _0x22e5f1=_0x237e1a(..._0xa6d28b);return _0x3c5339[_0x6584ee(0x1c1)](!0x0),_0x22e5f1;},{'show':()=>{_0x339eb4=!0x0,_0x3c5339['prompt']();},'hide':()=>{_0x339eb4=!0x1;},'restore':()=>{const _0x3d0981=_0x322812;_0x339eb4=!0x1,process[_0x3d0981(0x14b)][_0x3d0981(0x168)]=_0x237e1a;}};}async function ve({prompt:_0x4ecddc,sendMessage:_0x38e465,onSigint:_0x10a46c}){const _0x125a33=_0x151789;let _0x4a94de=_0x1fbfed({'input':process[_0x125a33(0x19b)],'output':process[_0x125a33(0x1e7)],'terminal':!0x0,'prompt':_0x125a33(0x18b)}),_0x588c41=be(_0x4a94de,process['stderr']),_0x1946ee=_0x4a94de[Symbol[_0x125a33(0x18a)]](),_0x2bbd19=!0x1;_0x4a94de[_0x125a33(0x1f4)](_0x125a33(0x198),()=>{_0x2bbd19=!0x0,_0x588c41['hide']();});let _0x2cc032=!0x1,_0x5d29e2=()=>{const _0x66f509=_0x125a33;_0x2cc032=!0x0,_0x4a94de[_0x66f509(0x198)](),_0x10a46c();};_0x4a94de['on'](_0x125a33(0x1b9),_0x5d29e2),process['stderr'][_0x125a33(0x168)](_0x125a33(0x1dd));try{if(_0x4ecddc&&await _0x38e465(_0x4ecddc),_0x2cc032)return;_0x2bbd19||_0x588c41[_0x125a33(0x1db)]();for await(let _0x99c7e4 of _0x1946ee){if(_0x588c41[_0x125a33(0x1bd)](),_0x2cc032)break;let _0x5f598f=_0x99c7e4[_0x125a33(0x205)]();if(_0x5f598f===_0x125a33(0x1e5))break;_0x5f598f&&await _0x38e465(_0x5f598f),_0x2bbd19||_0x588c41[_0x125a33(0x1db)]();}}finally{_0x588c41['restore'](),_0x4a94de[_0x125a33(0x1c4)](_0x125a33(0x1b9),_0x5d29e2),_0x4a94de[_0x125a33(0x198)]();}}async function Se(){const _0x47df27=_0x151789;let _0x4dd83d=Q(process[_0x47df27(0x1e4)]['slice'](0x2));if(_0x4dd83d[_0x47df27(0x1f2)]){Z();return;}if(_0x4dd83d[_0x47df27(0x1df)]){console['log'](ee());return;}if(_0x4dd83d[_0x47df27(0x156)]===_0x47df27(0x1aa)){await pe(_0x4dd83d);return;}if(_0x4dd83d[_0x47df27(0x156)]===_0x47df27(0x166)){await he(_0x4dd83d['prompt']);return;}if(_0x4dd83d['subcommand']===_0x47df27(0x165)){await re();return;}if(_0x4dd83d[_0x47df27(0x156)]===_0x47df27(0x1d0)){await ie();return;}if(_0x4dd83d['subcommand']==='models'){await ce(_0x4dd83d);return;}if(_0x4dd83d['subcommand']==='check'){await de(_0x4dd83d);return;}if(_0x4dd83d[_0x47df27(0x156)]===_0x47df27(0x1ea)){await _0x3fff39(_0x4dd83d[_0x47df27(0x1c1)],{'runnerUrl':_0x4dd83d['runnerUrl'],'backendUrl':_0x4dd83d['backendUrl'],'interopPath':_0x4dd83d[_0x47df27(0x1fe)],'workerId':_0x4dd83d[_0x47df27(0x18f)]});return;}if(_0x4dd83d[_0x47df27(0x1c8)]){await ae();return;}await we(_0x4dd83d);}var ye=process.env.NODE_ENV===_0x151789(0x1ef)||!!process.env.JEST_WORKER_ID;ye||Se()[_0x151789(0x18d)](_0x2bca67=>{const _0xe748fd=_0x151789;console[_0xe748fd(0x192)](_0x2bca67[_0xe748fd(0x1b5)]||_0x2bca67[_0xe748fd(0x1b3)]||_0x2bca67),process[_0xe748fd(0x151)](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.8",
3
+ "version": "0.1.10",
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.8"
25
+ "@uipath/delegate-sdk": "0.1.10"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@types/node": "^22.0.0",