@uipath/delegate-cli 0.1.9 → 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.
- package/README.md +76 -11
- package/dist/cli.mjs +1 -1
- 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
|
|
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>"
|
|
34
|
-
delegate-cli
|
|
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
|
-
#
|
|
98
|
-
npx delegate-cli --
|
|
99
|
-
|
|
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 _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.
|
|
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.
|
|
25
|
+
"@uipath/delegate-sdk": "0.1.10"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@types/node": "^22.0.0",
|