@uipath/delegate-cli 1.208.0-preview.20261203155417 → 1.208.0-preview.20261203181205

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 +15 -70
  2. package/dist/cli.mjs +1 -1
  3. package/package.json +2 -2
package/README.md CHANGED
@@ -2,6 +2,11 @@
2
2
 
3
3
  Drive the UiPath Delegate agent from the terminal — login, prompts, screenshots, UI automation, all headless. A thin wrapper over `@uipath/delegate-sdk` (installed automatically as a dependency): the SDK owns the agent, interop, login, and host machinery; this package owns the terminal surface.
4
4
 
5
+ Two other CLIs have the same commands and flags, on another agent, and use the same saved login (`~/.aria/sdk-auth.json`):
6
+
7
+ - [`@uipath/autopilot-cli`](https://www.npmjs.com/package/@uipath/autopilot-cli) (`autopilot-cli`) answers as the UiPath Autopilot agent, without Delegate's desktop UI-automation guidance.
8
+ - [`@uipath/cartographer-cli`](https://www.npmjs.com/package/@uipath/cartographer-cli) (`cartographer-cli`) runs every session as a Cartographer engagement: interview, map a process, write its PDD and SDD. It has the `export` and `maps` commands, and is what `delegate-cli --cartographer` was.
9
+
5
10
  - **Platforms**: macOS arm64, Windows x64, Linux x64. Linux is text-only — run with `--headless`.
6
11
 
7
12
  ---
@@ -87,15 +92,6 @@ delegate-cli --json-schema FILE "<prompt>"
87
92
  the schema in FILE; exits 1 when extraction fails
88
93
  delegate-cli transcribe FILE|- Speech-to-text (transcription model): print the text of the audio
89
94
  in FILE (or stdin with -)
90
- delegate-cli export TYPE [DOCUMENT_ID] --project ID [--working-dir PATH]
91
- A project's living document (pdd, sdd, ...) to .docx
92
- from the local disk: no login or interop
93
- delegate-cli maps share --project ID --remote URL|PATH --map-name NAME [--working-dir PATH]
94
- Share a project's Map of Work to a bare git repository
95
- (file:// URL or absolute path), as the desktop app's
96
- Share does; no login or interop. See Sharing a Map of Work
97
- delegate-cli maps save-version MESSAGE --project ID [--working-dir PATH]
98
- Save version: the map's next 0.x (0.1.0 first)
99
95
  delegate-cli org-users QUERY Search your organization's users by name or email
100
96
  prefix, for delegations create --to
101
97
  delegate-cli delegations create --session ID [--to WHO] [--summary TEXT] "<task>"|-
@@ -225,7 +221,7 @@ fork=$(npx delegate-cli sessions fork <id> --output-format json | jq -r .id)
225
221
  npx delegate-cli --headless --session "$fork" "Try the other approach"
226
222
  ```
227
223
 
228
- The message id is a backend message id, the `id` of a message in the SDK's `getSessionMessages()` (see [Forking a session at a message](../sdk/README.md#forking-a-session-at-a-message)). A 404 means no such session, a session with no messages, or a message id that is not in it. It prints that on stderr and exits 1. A missing id, an extra operand, or a list flag exits 2 before any request. Only remote sessions can be forked, not a Delegate desktop conversation kept in the app's local store.
224
+ The message id is a backend message id, the `id` of a message in the SDK's `getSessionMessages()` (see [Forking a session at a message](../../sdk/README.md#forking-a-session-at-a-message)). A 404 means no such session, a session with no messages, or a message id that is not in it. It prints that on stderr and exits 1. A missing id, an extra operand, or a list flag exits 2 before any request. Only remote sessions can be forked, not a Delegate desktop conversation kept in the app's local store.
229
225
 
230
226
  ### Typed judgments (`evaluate`, `rerank`, `verify`)
231
227
 
@@ -323,7 +319,7 @@ You> Turn what you just did into a UiPath coded workflow.
323
319
  - Each `AppAct` step, with the selector of the element it acted on, and each request you sent are appended to `<working-dir>/captures/<session>/task-log-*.jsonl` (`~/.aria-sdk/captures/…` without `--working-dir`). The log keeps on-screen text, field labels and the start of each request; typed values and anything that reads as a credential are masked.
324
320
  - While the CLI runs, the backend is asked for a sturdier selector for each captured step. Work left when it exits is picked up by the next `--task-automation` run under the same login and state root.
325
321
  - Ask for the workflow in the same session: in the same conversation, or with `--session <id>` (and the same `--working-dir`) in a later invocation.
326
- - It needs computer use, so it exits 2 with `--headless`, `--no-computer-use`, `--cartographer` or `--vertical cartographer`, and on subcommands. Where the deployment does not offer task automation yet (it follows the desktop app's rollout and is not on the production cloud), the run starts with a warning and records nothing. The skill also needs the `uip` CLI on `PATH`, signed in with `uip login`.
322
+ - It needs computer use, so it exits 2 with `--headless` or `--no-computer-use`, and on subcommands. Where the deployment does not offer task automation yet (it follows the desktop app's rollout and is not on the production cloud), the run starts with a warning and records nothing. The skill also needs the `uip` CLI on `PATH`, signed in with `uip login`.
327
323
  - `uipath-taskautomation` ships with the SDK package (see [Skills](#skills)); a copy of your own in `--skills-path` replaces it.
328
324
  - `delegate-cli sessions delete <id>` removes the log with the session; give it the same `--working-dir` as the run.
329
325
 
@@ -347,27 +343,11 @@ cat memo.wav | delegate-cli transcribe - --output-format json # {"text":"…"}
347
343
  - Formats: mp3, mp4, mpeg, mpga, m4a, wav, webm — named by the file's extension; for stdin (`-`) the format is detected from the bytes. At most 14 MB. There is no language option; the model detects it (Gemini 3.1 Flash-Lite through LLM Gateway).
348
344
  - Audio the CLI refuses before uploading (unreadable file, unsupported format, empty, over 14 MB) prints the reason and exits 2. A backend rejection prints one line on stderr, such as `Transcription failed (400 empty): Audio file is empty.`, and exits 1.
349
345
 
350
- ### Sharing a Map of Work (`maps`)
351
-
352
- A Cartographer run (`--cartographer --project ID`) keeps the project's history in a local Map of Work under the state root (`<working-dir>/mow/<ID>/`). Two of the desktop app's person actions on it run from the CLI, from the local disk with no agent, login or interop (SDK `shareMap` and `saveMapVersion`):
353
-
354
- ```bash
355
- # Save version: the map's next 0.x version (0.1.0 first), named by the message
356
- delegate-cli maps save-version "Seeded from the automations" --project invoice-approval --working-dir ~/engagements
357
- # Saved version 0.1.0 of the Map of Work of invoice-approval: Seeded from the automations
358
-
359
- # Share: the Map's history, change requests and versions to a bare repository, under a Map name
360
- git init --bare /mnt/shared/maps.git
361
- delegate-cli maps share --project invoice-approval --working-dir ~/engagements \
362
- --remote file:///mnt/shared/maps.git --map-name invoicing
363
- # Shared the Map of Work of invoice-approval to file:///mnt/shared/maps.git as "invoicing".
364
- ```
346
+ <!-- delegate-cli only -->
347
+ ### Cartographer moved to `@uipath/cartographer-cli`
365
348
 
366
- - `maps share` is the app's Share with *New map of work*: the remote is a bare git repository given as a `file://` URL or an absolute path, on this computer or a shared drive, and several projects' Maps can share one repository, each under its own `--map-name`. The repository's default branch also gets a copy of the Map's latest content in a folder of that name. A name that holds only this Map's history (a share cut short, or one shared again after more work) is resumed; a name that holds another Map, a Map that is already shared, or a GitHub repository is refused. From then on the Map publishes to the remote at every checkpoint and version, a later Cartographer run's included.
367
- - Join the shared Map in the desktop app: in a fresh project, *Sharing* → *Use another git remote*, the same remote, then *Existing map of work* → *Use shared project*. Settling the current process and applying change requests stay the process owner's steps in the app.
368
- - `maps save-version` is the app's *Save version*, which the app offers while the map is unsettled: it is refused once the map is settled (`1.0.0`), when versions come only from applied change requests, and when nothing changed since the latest version.
369
- - A refusal prints its reason on stderr (`maps share: …`) and exits 1; a missing `--project`, `--remote`, `--map-name` or message prints the usage and exits 2. `--output-format json` prints the SDK's result: `{remote, mapName}`, or `{version, message, revision, date, changedFiles}`.
370
- - Run these between agent runs on the project, not during one: each process keeps its own Map of Work.
349
+ Cartographer has its own CLI now, `cartographer-cli` (`npm install @uipath/cartographer-cli`): every session runs as the Cartographer vertical, without computer use, with the Cartographer skills preloaded, and it has the `export` and `maps` commands. `delegate-cli --cartographer`, `--vertical cartographer`, `delegate-cli export` and `delegate-cli maps` are deprecated: they print the `cartographer-cli` command to run instead and exit 2. Both CLIs use the same saved login.
350
+ <!-- /delegate-cli only -->
371
351
 
372
352
  ### Delegating to people (`delegations`, `org-users`)
373
353
 
@@ -403,8 +383,6 @@ Three levels of machine access, independent of conversation mode:
403
383
  | `--no-computer-use` | yes | **no** | yes |
404
384
  | `--headless` | **no** | no | **no** |
405
385
 
406
- `--cartographer` runs the Cartographer vertical at the `--no-computer-use` level; adding `--headless` to it moves the whole invocation down a row.
407
-
408
386
  ### Flags
409
387
 
410
388
  | Flag | Default | What it does |
@@ -423,10 +401,9 @@ Three levels of machine access, independent of conversation mode:
423
401
  | `--no-connections` | off | Disable orchestrator ConnectionService (silences 404 noise on tenants without orchestrator). |
424
402
  | `--no-security` | off | Disable tool security wrapper. Debug only. |
425
403
  | `--no-memory` | off | Do not send the Delegate app's local long-term memories with each turn (SDK `enableMemory: false`). By default the CLI reads the same `Memories` folder the desktop app uses, and the model may save new preferences and learnings there with its file tools. |
426
- | `--task-automation` | off | Record every UI action of the run to the session's task log, so the agent can turn the task into a UiPath coded workflow (SDK `enableTaskAutomation`). Needs computer use: refused with `--headless`, `--no-computer-use` and `--cartographer`. See [Task automation](#task-automation---task-automation). |
404
+ | `--task-automation` | off | Record every UI action of the run to the session's task log, so the agent can turn the task into a UiPath coded workflow (SDK `enableTaskAutomation`). Needs computer use: refused with `--headless` and `--no-computer-use`. See [Task automation](#task-automation---task-automation). |
427
405
  | `--preload-skill <name>` | — | Preload a skill into the session before the first model turn (repeatable; SDK `preloadSkills`). A name given twice is preloaded once. |
428
- | `--cartographer` | off | Cartographer engagement preset — shorthand for `--vertical cartographer --no-computer-use --preload-skill business-analysis --preload-skill project-task-list --preload-skill knowledge-base --preload-skill source-coverage --preload-skill note-taker`, so the run is a Cartographer session (see `--vertical`). Add `--project` / `--working-dir` to say where the engagement's files live (`--project` is also the folder the Map of Work maps), 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`). `--vertical cartographer` alongside it changes nothing; another `--vertical` id exits with code 2. Before the preset ran the vertical it ran a Delegate session with the five skills; spell those flags out without `--vertical` for that. |
429
- | `--vertical <id>` | — | Run the session as that product's vertical, as its tab in the desktop app does, inside the CLI's process with no desktop app installed (SDK `vertical`). `cartographer`: the backend's Cartographer prompt profile, the `shell_app` stamp on the sessions the run creates (a session resumed with `--session` keeps its own), the Map of Work bound to `--project`, Cartographer cost attribution and its allowance check, machine-driving calls refused, `gpt_5_6_luna` starting at `xhigh` when no `--effort` is given and, without `--preload-skill`, its project template's skills. An id the SDK does not ship fails the run. Default: Delegate. |
406
+ | `--vertical <id>` | — | Run the session as that product's vertical, as its tab in the desktop app does, inside the CLI's process with no desktop app installed (SDK `vertical`). An id the SDK does not ship fails the run. `cartographer` is deprecated here: it prints the `cartographer-cli` command to run instead and exits 2. Default: none. |
430
407
  | `--project <id>` | — | Bind the session to a project: wiki, plans and `task-list.md` 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`, `TaskListPath`) is injected into every turn (SDK `projectId`). Rules in `<state root>/projects/<id>/agents.md` go to the model on the first turn of each new session. Client-side routing key only — the CLI never links a backend project row. |
431
408
  | `--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**. |
432
409
  | `--skills-path <path>` | — | Folder of your own skills, loaded on top of the [packaged skills](#skills) (SDK `bundledSkillsPath`); also `DELEGATE_BUNDLED_SKILLS_PATH`. On a name clash your copy wins. Relative paths resolve against the current directory. |
@@ -450,8 +427,6 @@ Three levels of machine access, independent of conversation mode:
450
427
  | `--turn <id>` | — | (`sessions cancel` only, required) Backend turn id to cancel. |
451
428
  | `--to <who>` | — | (`delegations create` only) Assign the task to this person: an email, or a name matching exactly one colleague. Without it the delegation is a shareable link. |
452
429
  | `--summary <text>` | empty | (`delegations create` only) The briefing the person starts from. |
453
- | `--remote <url-or-path>` | — | (`maps share` only, required) The bare git repository to share the Map to: a `file://` URL or an absolute path, on this computer or a shared drive. Passed as given; a GitHub repository is refused (exit 1). |
454
- | `--map-name <name>` | — | (`maps share` only, required) The Map's name in that repository, beside other projects' Maps: up to 64 letters, digits, `.`, `_` or `-`, starting with a letter or digit. |
455
430
 
456
431
  `--preload-skill`, `--project`, `--session`, `--working-dir`, `--skills-path`, `--effort`, `--days`, `--attach` and `--output-format` 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.
457
432
 
@@ -502,38 +477,6 @@ npx delegate-cli --no-computer-use --project invoice-approval --working-dir ~/en
502
477
  --preload-skill source-coverage --preload-skill note-taker \
503
478
  "Read the AS-IS notes and draft the process overview."
504
479
 
505
- # The same flags as a Cartographer session: --cartographer is that whole flag set plus
506
- # --vertical cartographer (Cartographer's prompt, and the Map of Work of the project folder)
507
- npx delegate-cli --cartographer --project invoice-approval --working-dir ~/engagements \
508
- "Read the AS-IS notes and draft the process overview."
509
-
510
- # Word deliverable of a living document the engagement wrote: the agent calls
511
- # /livingdoc/export, which writes ~/engagements/projects/invoice-approval/<slug>-PDD.docx.
512
- # It reads and writes through interop, so it needs --project and fails under --headless.
513
- npx delegate-cli --cartographer --project invoice-approval --working-dir ~/engagements \
514
- "Export the PDD to Word."
515
-
516
- # The same export without an agent, login or interop: reads the project's drafts and its
517
- # open change requests' documents from the local disk and prints the .docx path
518
- # (--output-format json: {docxPath, message}). Pass the draft path as a second argument
519
- # when the project holds two PDDs. BPMN diagrams are drawn, as in the agent's export
520
- # (it needs the optional @napi-rs/canvas); a Mermaid diagram (a Case, a flowchart)
521
- # becomes a placeholder line, and the message counts those.
522
- npx delegate-cli export pdd --project invoice-approval --working-dir ~/engagements
523
-
524
- # Hand the engagement's map to the desktop app: name a version, then share the project's
525
- # Map of Work to a bare repository on a shared drive under the Map name "invoicing".
526
- # No agent, login or interop. In the app, a fresh project joins it with Existing map of
527
- # work → Use shared project. See Sharing a Map of Work.
528
- npx delegate-cli maps save-version "Seeded from the automations" --project invoice-approval --working-dir ~/engagements
529
- npx delegate-cli maps share --project invoice-approval --working-dir ~/engagements \
530
- --remote file:///mnt/shared/maps.git --map-name invoicing
531
-
532
- # Preset plus one extra skill the package does not ship, loaded from a folder of your
533
- # own; business-analysis is already in the preset, so naming it again changes nothing
534
- npx delegate-cli --cartographer --skills-path ~/my-skills --preload-skill company-process-guide \
535
- --project invoice-approval "Start the engagement."
536
-
537
480
  # Separate one-turn commands with persistent interop
538
481
  npx delegate-cli --print --keep-alive "take a screenshot"
539
482
  npx delegate-cli --print --keep-alive --session <id> "now describe the active window"
@@ -614,6 +557,8 @@ npx delegate-cli host uninstall # idemp
614
557
 
615
558
  Flags/env present at `install` time are persisted into the OS entry.
616
559
 
560
+ The host is the same remote worker in `delegate-cli`, `autopilot-cli` and `cartographer-cli`, with one auto-start entry: `host install` from one replaces another's, and the entry runs the CLI that installed it, so run `delegate-cli host uninstall` before you remove the CLI that installed it.
561
+
617
562
  | OS | Mechanism | Notes |
618
563
  |---|---|---|
619
564
  | macOS | LaunchAgent `com.uipath.delegate.host` in `~/Library/LaunchAgents/` | Restarts on crash, not on clean exit. Logs: `~/Library/Logs/UiPathDelegateHost/`. |
package/dist/cli.mjs CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- const _0x2fdf32=_0x4fcd;(function(_0x26f9eb,_0x40f4fa){const _0x3fe931=_0x4fcd,_0x35dd52=_0x26f9eb();while(!![]){try{const _0x22409d=-parseInt(_0x3fe931(0x1cd))/0x1+parseInt(_0x3fe931(0x303))/0x2*(parseInt(_0x3fe931(0x171))/0x3)+parseInt(_0x3fe931(0x2ac))/0x4+-parseInt(_0x3fe931(0x31e))/0x5*(parseInt(_0x3fe931(0x1dc))/0x6)+-parseInt(_0x3fe931(0x2d4))/0x7+-parseInt(_0x3fe931(0x254))/0x8*(parseInt(_0x3fe931(0x376))/0x9)+parseInt(_0x3fe931(0x33d))/0xa;if(_0x22409d===_0x40f4fa)break;else _0x35dd52['push'](_0x35dd52['shift']());}catch(_0x23e417){_0x35dd52['push'](_0x35dd52['shift']());}}}(_0x541d,0xc7556));const __dirname=import.meta.dirname;import _0x1d127c from'fs';import _0x3ce0b7 from'path';import{clearLine as _0x34ff83,createInterface as _0x30f601,cursorTo as _0x145ea5}from'node:readline';import{isOnStepGrid as _0x1f7638}from'@uipath/delegate-sdk';function _0x4fcd(_0x1d128b,_0x37643e){_0x1d128b=_0x1d128b-0x160;const _0x541d4e=_0x541d();let _0x4fcd87=_0x541d4e[_0x1d128b];return _0x4fcd87;}var C=_0x2fdf32(0x19e);function E(_0x485163){return _0x485163['replace'](/\u001b\[[0-?]*[ -/]*[@-~]|\u001b\][^\u0007\u001b]*(\u0007|\u001b\\)?|\u001b./g,'')['replace'](/[\u0000-\u0008\u000b-\u001f\u007f-\u009f]/g,'');}function ee(_0x138eee){const _0x248e0f=_0x2fdf32;return E(_0x138eee[_0x248e0f(0x349)]??(_0x138eee[_0x248e0f(0x218)]===C?'Something\x20else':_0x138eee['id']));}function je(_0x33c939,_0x212dfe,_0x10f6ff){const _0x43600b=_0x2fdf32;let _0x5a98ed=[''+(_0x10f6ff>0x1?'['+_0x212dfe+'/'+_0x10f6ff+']\x20':'')+E(_0x33c939[_0x43600b(0x1e1)])+(_0x33c939[_0x43600b(0x1e8)]?_0x43600b(0x17b):''),E(_0x33c939['question'])];return _0x33c939[_0x43600b(0x360)]===_0x43600b(0x37a)&&_0x33c939[_0x43600b(0x26b)]['forEach']((_0x311287,_0x3a72af)=>{const _0x4047c9=_0x43600b;let _0x5481af=_0x311287[_0x4047c9(0x218)]===C?'\x20(type\x20your\x20own)':'',_0x4722d7=_0x311287[_0x4047c9(0x2ab)]?'\x20-\x20'+E(_0x311287[_0x4047c9(0x2ab)]):'';_0x5a98ed[_0x4047c9(0x304)]('\x20\x20'+(_0x3a72af+0x1)+'.\x20'+ee(_0x311287)+_0x5481af+_0x4722d7);}),_0x5a98ed[_0x43600b(0x181)]('\x0a');}function te(_0x2ac0c0,_0xf6863f){const _0x39c198=_0x2fdf32;let _0x13ee99=_0x2ac0c0['split'](/[\s,]+/)[_0x39c198(0x261)](Boolean);if(_0x13ee99['length']===0x0)return null;let _0x152e55=_0x13ee99['map'](_0x2aad04=>/^\d+$/[_0x39c198(0x231)](_0x2aad04)?Number(_0x2aad04):NaN);return _0x152e55['some'](_0x25f051=>!Number[_0x39c198(0x27c)](_0x25f051)||_0x25f051<0x1||_0x25f051>_0xf6863f)?null:[...new Set(_0x152e55)]['map'](_0x434e35=>_0x434e35-0x1);}function Me(_0x149d2b){const _0x45646b=_0x2fdf32;return typeof _0x149d2b==_0x45646b(0x26d)&&_0x149d2b!==null&&_0x45646b(0x1a2)in _0x149d2b;}async function j(_0x561cb2,_0x51ed29,_0x591941,_0x2d2a17){const _0x137059=_0x2fdf32;for(;;){let _0x3ca249=(await _0x561cb2(_0x51ed29))[_0x137059(0x323)]();if(_0x3ca249==='')return;let _0x1d6e8b=_0x2d2a17(_0x3ca249);if(!Me(_0x1d6e8b))return _0x1d6e8b;_0x591941(_0x1d6e8b[_0x137059(0x1a2)]+'\x0a');}}async function Fe(_0x100bd9,_0x435f94,_0x3c4cf5){const _0x6c683e=_0x2fdf32;if(_0x100bd9[_0x6c683e(0x26b)][_0x6c683e(0x370)]===0x0||_0x100bd9[_0x6c683e(0x26b)][_0x6c683e(0x369)](_0x4768cd=>_0x4768cd[_0x6c683e(0x218)]===C)){let _0x2b1dab=(await _0x435f94(_0x6c683e(0x26f)))[_0x6c683e(0x323)]();return _0x2b1dab===''?void 0x0:{'text':_0x2b1dab};}let _0x24ad4d=_0x100bd9[_0x6c683e(0x26b)][_0x6c683e(0x23b)](_0x70a2f8=>_0x70a2f8[_0x6c683e(0x218)]===C),_0x2620ef=_0x100bd9[_0x6c683e(0x28d)]?'Numbers,\x20separated\x20by\x20commas\x20(Enter\x20to\x20skip):\x20':_0x6c683e(0x19d)+(_0x24ad4d>=0x0?'\x20or\x20your\x20own\x20answer':'')+_0x6c683e(0x31f),_0x7686f5=await j(_0x435f94,_0x2620ef,_0x3c4cf5,_0x3155d5=>{const _0x224a15=_0x6c683e;let _0x132cbd=te(_0x3155d5,_0x100bd9['options'][_0x224a15(0x370)]);return _0x132cbd&&(_0x100bd9[_0x224a15(0x28d)]||_0x132cbd[_0x224a15(0x370)]===0x1)?_0x132cbd:!_0x100bd9[_0x224a15(0x28d)]&&_0x24ad4d>=0x0?{'typed':_0x3155d5}:{'refused':_0x100bd9[_0x224a15(0x28d)]?_0x224a15(0x310)+_0x100bd9['options']['length']+'.':_0x224a15(0x1fd)+_0x100bd9['options']['length']+'.'};});if(_0x7686f5===void 0x0)return;if(!Array[_0x6c683e(0x1bb)](_0x7686f5))return{'text':_0x7686f5['typed']};let _0x30802e=_0x7686f5['map'](_0x33b4e1=>_0x100bd9[_0x6c683e(0x26b)][_0x33b4e1]['id']),_0x2f9833=_0x30802e['includes'](C)?await j(_0x435f94,ee(_0x100bd9[_0x6c683e(0x26b)][_0x24ad4d])+':\x20',_0x3c4cf5,_0x3ac777=>_0x3ac777):void 0x0;if(!(_0x30802e['includes'](C)&&_0x2f9833===void 0x0))return _0x100bd9['multiSelect']?{'optionIds':_0x30802e,..._0x2f9833!==void 0x0?{'text':_0x2f9833}:{}}:_0x2f9833!==void 0x0?{'text':_0x2f9833}:{'optionId':_0x30802e[0x0]};}async function Be(_0x41e194,_0x40706b,_0xa69155){const _0x1f79e9=_0x2fdf32;let _0x4072c0={};for(let _0x438786 of _0x41e194[_0x1f79e9(0x19a)]){let _0x580cbb=_0x438786[_0x1f79e9(0x256)]??_0x438786[_0x1f79e9(0x296)],_0x1509b4=_0x438786['step']??0x1,_0x1b8393=_0x438786['unit']?'\x20'+E(_0x438786[_0x1f79e9(0x1b0)]):'',_0x50512b=_0x1f79e9(0x17d)+_0x438786['min']+'\x20to\x20'+_0x438786[_0x1f79e9(0x328)]+(_0x1509b4!==0x1?_0x1f79e9(0x290)+_0x1509b4:''),_0x2e83a6=await j(_0x40706b,E(_0x438786[_0x1f79e9(0x349)])+'\x20['+_0x438786[_0x1f79e9(0x296)]+'-'+_0x438786[_0x1f79e9(0x328)]+_0x1b8393+_0x1f79e9(0x307)+_0x580cbb+_0x1f79e9(0x381),_0xa69155,_0x441098=>{const _0x2410d3=_0x1f79e9;let _0x2525ca=Number(_0x441098);return Number['isFinite'](_0x2525ca)&&_0x2525ca>=_0x438786['min']&&_0x2525ca<=_0x438786[_0x2410d3(0x328)]&&_0x1f7638(_0x2525ca,_0x438786['min'],_0x1509b4)?_0x2525ca:{'refused':_0x2410d3(0x237)+_0x50512b+'.'};});_0x4072c0[_0x438786['id']]=_0x2e83a6??_0x580cbb;}return{'values':_0x4072c0};}async function He(_0x12f5d4,_0x3e187f,_0x52b468){const _0x541c0b=_0x2fdf32;_0x52b468(_0x12f5d4[_0x541c0b(0x375)][_0x541c0b(0x313)]((_0x5c8bb8,_0x20e157)=>'\x20\x20'+(_0x20e157+0x1)+'.\x20'+E(_0x5c8bb8[_0x541c0b(0x349)]))[_0x541c0b(0x181)]('\x0a')+'\x0a');let _0x20eca8={};for(let _0x48f59a of _0x12f5d4['items']){let _0x574c70=await j(_0x3e187f,E(_0x48f59a['label'])+_0x541c0b(0x1ec),_0x52b468,_0x1c9dc8=>{const _0x512e6f=_0x541c0b;let _0x475b7e=te(_0x1c9dc8,_0x12f5d4[_0x512e6f(0x375)]['length']);return _0x475b7e&&_0x475b7e['length']===0x1?_0x475b7e[0x0]:{'refused':_0x512e6f(0x1fd)+_0x12f5d4[_0x512e6f(0x375)][_0x512e6f(0x370)]+'.'};});if(_0x574c70===void 0x0)continue;let _0x4a6f16=_0x12f5d4[_0x541c0b(0x375)][_0x574c70],_0x3a7fdd={};for(let _0x5990ab of _0x4a6f16[_0x541c0b(0x229)]??[]){let _0x4d679f='\x20\x20'+E(_0x5990ab[_0x541c0b(0x349)])+(_0x5990ab['optional']?'\x20(optional)':'')+':\x20',_0x56275f=await j(_0x3e187f,_0x4d679f,_0x52b468,_0x1fb1bb=>_0x1fb1bb);for(;_0x56275f===void 0x0&&!_0x5990ab[_0x541c0b(0x1e8)];)_0x52b468(E(_0x5990ab['label'])+_0x541c0b(0x247)),_0x56275f=await j(_0x3e187f,_0x4d679f,_0x52b468,_0x1ef706=>_0x1ef706);_0x56275f!==void 0x0&&(_0x3a7fdd[_0x5990ab['id']]=_0x56275f);}_0x20eca8[_0x48f59a['id']]={'bucket':_0x4a6f16['id'],...Object['keys'](_0x3a7fdd)[_0x541c0b(0x370)]>0x0?{'subFields':_0x3a7fdd}:{}};}return Object[_0x541c0b(0x1cc)](_0x20eca8)[_0x541c0b(0x370)]>0x0?{'assignments':_0x20eca8}:void 0x0;}async function Je(_0x1a0178,_0x4c7eb5,_0x1458b0){const _0x44e387=_0x2fdf32;if(_0x1a0178[_0x44e387(0x360)]==='text')return Fe(_0x1a0178,_0x4c7eb5,_0x1458b0);if(_0x1a0178[_0x44e387(0x360)]===_0x44e387(0x245))return Be(_0x1a0178,_0x4c7eb5,_0x1458b0);if(_0x1a0178[_0x44e387(0x360)]==='bucket')return He(_0x1a0178,_0x4c7eb5,_0x1458b0);let _0x447a66=(await _0x4c7eb5('Your\x20answer,\x20as\x20text\x20(the\x20CLI\x20attaches\x20no\x20files;\x20Enter\x20to\x20skip):\x20'))[_0x44e387(0x323)]();return _0x447a66===''?void 0x0:{'text':_0x447a66};}function ne(_0x17dec1,_0x29f196){return async _0x61605f=>{const _0x1e3c6e=_0x4fcd;let _0x5304d7=_0x17dec1();if(!_0x5304d7)throw new Error('There\x20is\x20no\x20terminal\x20input\x20to\x20answer\x20from.');let _0x1891d0=async _0x6df45=>{const _0x432631=_0x4fcd;if(_0x61605f[_0x432631(0x1be)][_0x432631(0x281)])throw new Error(_0x432631(0x2d2));let _0x556c60=await _0x5304d7['readLine'](_0x6df45,_0x61605f[_0x432631(0x1be)]);if(_0x556c60===null)throw new Error(_0x432631(0x345));return _0x556c60;};try{_0x29f196('\x0a'+(_0x61605f[_0x1e3c6e(0x35e)]?E(_0x61605f[_0x1e3c6e(0x35e)])+'\x0a':''));let _0x27bdfe={};for(let [_0x3f8b7c,_0xd91bc]of _0x61605f[_0x1e3c6e(0x1c1)]['entries']()){_0x29f196('\x0a'+je(_0xd91bc,_0x3f8b7c+0x1,_0x61605f[_0x1e3c6e(0x1c1)][_0x1e3c6e(0x370)])+'\x0a');let _0x5c2ae6=await Je(_0xd91bc,_0x1891d0,_0x29f196);_0x5c2ae6!==void 0x0&&(_0x27bdfe[_0xd91bc['id']]=_0x5c2ae6);}return{'answers':_0x27bdfe};}finally{_0x5304d7['endQuestions']();}};}import{createInterface as _0x168a22}from'node:readline';var F=[_0x2fdf32(0x37a),_0x2fdf32(0x25e)];function se(_0x506f0b){const _0x326f51=_0x2fdf32;return F[_0x326f51(0x322)](_0x506f0b);}var P=class extends Error{};function We(_0x26aa5d){const _0x5b56fa=_0x2fdf32;if(typeof _0x26aa5d=='string')return _0x26aa5d;if(!Array[_0x5b56fa(0x1bb)](_0x26aa5d))return;let _0x293923=[];for(let _0x1d1f45 of _0x26aa5d){if(typeof _0x1d1f45!=_0x5b56fa(0x26d)||_0x1d1f45===null)return;let {type:_0x44803e,text:_0x55364a}=_0x1d1f45;if(_0x44803e!=='text'||typeof _0x55364a!=_0x5b56fa(0x23e))return;_0x293923[_0x5b56fa(0x304)](_0x55364a);}return _0x293923['join']('\x0a');}function Ke(_0x14326e){const _0x1998c2=_0x2fdf32;if(_0x14326e[_0x1998c2(0x323)]()==='')return null;let _0x5efce0;try{_0x5efce0=JSON['parse'](_0x14326e);}catch{throw new P(_0x1998c2(0x2a8));}if(typeof _0x5efce0!=_0x1998c2(0x26d)||_0x5efce0===null)throw new P('an\x20input\x20line\x20is\x20not\x20a\x20JSON\x20object');let {type:_0x4b98d8,message:_0x1e4252,uuid:_0x3cf30a}=_0x5efce0;if(_0x4b98d8!==_0x1998c2(0x201))throw new P(_0x1998c2(0x1a6)+JSON[_0x1998c2(0x1f0)](_0x4b98d8)+_0x1998c2(0x166));let _0x4c5a36=We(_0x1e4252?.['content']);if(_0x4c5a36===void 0x0)throw new P('an\x20input\x20line\x20has\x20no\x20message.content,\x20a\x20string\x20or\x20a\x20list\x20of\x20text\x20blocks');if(_0x4c5a36['trim']()==='')throw new P(_0x1998c2(0x2ba));return{'text':_0x4c5a36,'uuid':typeof _0x3cf30a==_0x1998c2(0x23e)?_0x3cf30a:void 0x0};}function oe(_0x4e961e,_0x29340d){const _0x433656=_0x2fdf32;return JSON[_0x433656(0x1f0)]({'type':_0x433656(0x201),'message':{'role':'user','content':_0x4e961e[_0x433656(0x37a)]},'session_id':_0x29340d,..._0x4e961e[_0x433656(0x2e6)]===void 0x0?{}:{'uuid':_0x4e961e[_0x433656(0x2e6)]},'isReplay':!0x0})+'\x0a';}async function*re(_0x15b58e,_0x4d19b6){const _0x4d339f=_0x2fdf32;let _0x16bee0=_0x168a22({'input':_0x15b58e,'crlfDelay':0x1/0x0});try{for await(let _0x47555c of _0x16bee0){let _0x58c10c;try{_0x58c10c=Ke(_0x47555c);}catch(_0x3f4492){if(!(_0x3f4492 instanceof P))throw _0x3f4492;_0x4d19b6(_0x3f4492);continue;}_0x58c10c&&(yield _0x58c10c);}}finally{_0x16bee0[_0x4d339f(0x239)]();}}import{BUSINESS_ANALYSIS_PRELOADED_SKILLS as _0x52784b,DelegateAgent as _0x45af6f,cancelTurn as _0x116088,InteropProcess as _0x296c35,complete as _0x7b6a96,DEFAULT_MODEL as _0x4cf21a,createBackendClient as _0x195f2e,evaluate as _0x387a70,isCompletionRequestError as _0x5b2c80,isEvaluationRequestError as _0x4d9d29,isTranscriptionError as _0x10a1be,rerank as _0x22f461,transcribe as _0x31525b,exportLivingDocument as _0xde1b32,saveMapVersion as _0x229d55,shareMap as _0x4e3378,verify as _0x4ecc80,acceptDelegation as _0x3b9f2e,cancelDelegation as _0x36c438,claimDelegation as _0x5b131e,completeDelegation as _0x43cd65,createDelegation as _0x174821,deleteDelegation as _0x4364ff,dismissDelegation as _0xa390f1,getSessionDelegations as _0x577db9,isDelegationError as _0x53517c,listDelegations as _0x208e16,listOrgUsers as _0x277d0f,previewDelegation as _0x203af4,TurnResultCollector as _0x176937,agentEventToJsonLine as _0x15f942,describeBaseUrlRejection as _0x153f99,getActivitySummary as _0x44810c,getAuthFilePath as _0x316b95,getByoWarnings as _0x33438e,getDailyBreakdown as _0x4d8f27,getLicensingSummary as _0x1d8b9a,getMonthlySpending as _0x4cd706,isOutputFormat as _0x1f47e5,isCloudBaseUrl as _0x249fa4,isSafeProjectFolderSegment as _0x34b8a8,listModels as _0x2ca4ff,listSessions as _0x528f25,getSession as _0x28dcd7,renameSession as _0x45ab8c,deleteSession as _0x1cc755,deleteSessionTaskLog as _0x2c3279,forkSession as _0x28f25f,isBackendRequestError as _0x53bcb1,MAX_SESSION_PAGE_SIZE as _0x50bd61,listTenants as _0x336124,loadAndRefreshAuth as _0x4e66f2,loadAndRefreshSdkLogin as _0x16f76f,parsePlatformBaseUrl as _0x4cd9ac,resolveBackendUrl as _0x212233,runHealthCheck as _0x5351d5,runHostCommand as _0x33efa7,runLoginFlow as _0x2d7742,runTurnForResult as _0x5cc5f6,saveAuthData as _0x28e3c2,switchTenant as _0x222b9c,toJsonLine as _0x31c8e9,ENV_TO_CLOUD as _0x18fdff,OUTPUT_FORMATS as _0x2f8769,isRunStopNotice as _0x104188,extractActionableErrorText as _0x2d0e9e}from'@uipath/delegate-sdk';function ie(_0x187f49){const _0x2a00cd=_0x2fdf32;let {input:_0x1f86ae,getAgent:_0x3524b1,replay:_0x3e505b,onEvent:_0x358e59,write:_0x5e5a97,warn:_0x5bd48e,isRunStopNotice:_0x2f5455,actionableErrorText:_0x48f3ea}=_0x187f49,_0x816266=0x0,_0x541eee=0x0,_0x2681c3=Promise[_0x2a00cd(0x170)](),_0x155aa1=!0x1,_0x2f72fc=()=>{},_0xb215be=new Promise(_0x46e194=>{_0x2f72fc=_0x46e194;}),_0x251160=[],_0x2ba7c9=_0x358e59(_0x7a0cf4=>{const _0x194a94=_0x2a00cd;_0x7a0cf4['type']===_0x194a94(0x384)&&(_0x2f72fc(),_0x251160['shift']()?.());}),_0x20c690=_0x197162=>{const _0x3590a2=_0x2a00cd;_0x3e505b&&_0x5e5a97(oe(_0x197162,_0x3524b1()[_0x3590a2(0x37d)]()));},_0x3910df=(async()=>{const _0x224490=_0x2a00cd;await _0xb215be;for await(let _0x54c110 of _0x1f86ae[_0x224490(0x284)]){if(_0x155aa1)return;_0x816266===0x0&&(_0x541eee=_0x3524b1()[_0x224490(0x215)]()[_0x224490(0x370)]),_0x816266++;let _0x478f0c=new Promise(_0xf222f8=>{const _0x132077=_0x224490;_0x251160[_0x132077(0x304)](()=>{_0x20c690(_0x54c110),_0xf222f8();});}),_0x2214ed=()=>{_0x816266--,_0x251160['pop']();},_0xe09f39=_0x3524b1()['steer'](_0x54c110[_0x224490(0x37a)]);_0x2681c3=_0xe09f39[_0x224490(0x1a8)](()=>{});try{await _0xe09f39?await Promise['race']([_0x478f0c,_0x3524b1()[_0x224490(0x347)]()]):(_0x2214ed(),_0x5bd48e(_0x224490(0x34d)));}catch(_0xc9e330){_0x2214ed(),_0x5bd48e('A\x20steering\x20message\x20was\x20not\x20sent:\x20'+(_0xc9e330 instanceof Error?_0xc9e330[_0x224490(0x371)]:String(_0xc9e330))+'\x0a');}}})()[_0x2a00cd(0x1a8)](_0x50ee78=>{const _0xfd29d=_0x2a00cd;_0x5bd48e(_0xfd29d(0x302)+(_0x50ee78 instanceof Error?_0x50ee78['message']:String(_0x50ee78))+'\x0a');});return{'settle':async _0x44e663=>{const _0x41c3d1=_0x2a00cd;if(await _0x2681c3,_0x816266===0x0)return _0x44e663;await _0x3524b1()['waitForIdle']();for(let _0x88cf40 of _0x251160)_0x88cf40();_0x251160=[];let _0x2fe497=_0x3524b1()[_0x41c3d1(0x215)]()[_0x41c3d1(0x2b4)](_0x541eee)[_0x41c3d1(0x197)](_0x103c88=>_0x103c88[_0x41c3d1(0x20c)]===_0x41c3d1(0x277)||_0x2f5455(_0x103c88)||_0x103c88['type']==='ai'&&_0x103c88[_0x41c3d1(0x20c)]!==_0x41c3d1(0x25b)&&_0x103c88['widget']!==_0x41c3d1(0x2a4)&&!!_0x103c88[_0x41c3d1(0x35a)]);if(!_0x2fe497)return{..._0x44e663,'failed':!0x0,'text':_0x41c3d1(0x335)};let _0x4f3280=_0x2fe497[_0x41c3d1(0x20c)]==='actionable_error';return typeof _0x2fe497[_0x41c3d1(0x35a)]!=_0x41c3d1(0x23e)?{..._0x44e663,'failed':_0x4f3280}:{..._0x44e663,'failed':_0x4f3280,'text':_0x4f3280?_0x48f3ea(_0x2fe497[_0x41c3d1(0x35a)]):_0x2fe497[_0x41c3d1(0x35a)]};},'stop':()=>{const _0x282f43=_0x2a00cd;_0x155aa1=!0x0,_0x2ba7c9(),_0x1f86ae[_0x282f43(0x239)]();}};}var Yt=[_0x2fdf32(0x31b),_0x2fdf32(0x2d8),'models','host',_0x2fdf32(0x250),_0x2fdf32(0x1e4),_0x2fdf32(0x212),_0x2fdf32(0x22f),_0x2fdf32(0x301),'evaluate','rerank',_0x2fdf32(0x226),_0x2fdf32(0x1d5),_0x2fdf32(0x1f9),_0x2fdf32(0x1ae),_0x2fdf32(0x1e7),'delegations',_0x2fdf32(0x24a)],ue=['',_0x2fdf32(0x1d7),_0x2fdf32(0x1e4),_0x2fdf32(0x212),'sessions','usage','evaluate',_0x2fdf32(0x365),'verify',_0x2fdf32(0x1d5),_0x2fdf32(0x1f9),_0x2fdf32(0x1ae),_0x2fdf32(0x1e7),'delegations',_0x2fdf32(0x24a)],pe=[_0x2fdf32(0x20e),_0x2fdf32(0x193),_0x2fdf32(0x199),_0x2fdf32(0x2fb),_0x2fdf32(0x328)],zt=_0x52784b,B=_0x2fdf32(0x1c6);function b(_0x2a1bcc,_0x4ee480,_0x9f76cf,_0xfa4ba9){const _0xbd0d26=_0x2fdf32;let _0x2656fa=_0x2a1bcc[_0x4ee480];return(!_0x2656fa||_0x2656fa[_0xbd0d26(0x370)]>0x1&&_0x2656fa[_0xbd0d26(0x342)]('-'))&&(console[_0xbd0d26(0x2a7)](_0x9f76cf+_0xbd0d26(0x214)+_0xfa4ba9+'.'),process[_0xbd0d26(0x2de)](0x2)),_0x2656fa;}function K(_0x2c767e,_0x4e8fdc,_0x35cbea,_0x77d524){const _0x14e0bb=_0x2fdf32;let _0x27bddf=b(_0x2c767e,_0x4e8fdc,_0x35cbea,_0x14e0bb(0x346)),_0x53e4f6=Number(_0x27bddf);return(!/^\d+$/[_0x14e0bb(0x231)](_0x27bddf)||_0x53e4f6<0x1||!Number['isSafeInteger'](_0x53e4f6)||_0x77d524!==void 0x0&&_0x53e4f6>_0x77d524)&&(console['error'](_0x35cbea+_0x14e0bb(0x225)+(_0x77d524===void 0x0?'1\x20or\x20more':_0x14e0bb(0x26c)+_0x77d524)+',\x20got\x20'+_0x27bddf+'.'),process[_0x14e0bb(0x2de)](0x2)),_0x53e4f6;}function Vt(_0x41cc33){const _0x27ed13=_0x2fdf32;let _0xddf36={'subcommand':'','prompt':'','print':!0x1,'keepAlive':!0x1,'cleanup':!0x1,'headless':!0x1,'noComputerUse':!0x1,'cartographer':!0x1,'noConnections':!0x1,'noSecurity':!0x1,'noMemory':!0x1,'taskAutomation':!0x1,'quiet':!0x1,'verbose':!0x1,'outputFormat':_0x27ed13(0x37a),'inputFormat':_0x27ed13(0x37a),'replayUserMessages':!0x1,'preloadSkills':[],'attachments':[],'skipEnvCheck':!0x1,'includeSubAgents':!0x1,'operands':[],'help':!0x1,'version':!0x1};Yt[_0x27ed13(0x322)](_0x41cc33[0x0])&&(_0xddf36['subcommand']=_0x41cc33[0x0],_0x41cc33=_0x41cc33[_0x27ed13(0x2b4)](0x1));let _0x30be8d=[];for(let _0x5961ce=0x0;_0x5961ce<_0x41cc33[_0x27ed13(0x370)];_0x5961ce++){let _0x2f852d=_0x41cc33[_0x5961ce];switch(_0x2f852d){case _0x27ed13(0x208):case'-p':_0xddf36[_0x27ed13(0x263)]=!0x0;break;case _0x27ed13(0x1d3):_0xddf36[_0x27ed13(0x1fe)]=!0x0;break;case _0x27ed13(0x297):_0xddf36[_0x27ed13(0x200)]=!0x0;break;case _0x27ed13(0x217):_0xddf36[_0x27ed13(0x2a6)]=!0x0;break;case _0x27ed13(0x2ff):_0xddf36[_0x27ed13(0x316)]=!0x0;break;case _0x27ed13(0x1a1):_0xddf36[_0x27ed13(0x1c6)]=!0x0,_0xddf36[_0x27ed13(0x316)]=!0x0,_0xddf36[_0x27ed13(0x1fc)][_0x27ed13(0x304)](...zt);break;case _0x27ed13(0x2ad):_0xddf36[_0x27ed13(0x267)]=!0x0;break;case _0x27ed13(0x299):_0xddf36[_0x27ed13(0x1f3)]=!0x0;break;case _0x27ed13(0x35f):_0xddf36[_0x27ed13(0x240)]=!0x0;break;case'--task-automation':_0xddf36[_0x27ed13(0x1a7)]=!0x0;break;case'--quiet':case'-q':_0xddf36[_0x27ed13(0x25f)]=!0x0;break;case _0x27ed13(0x362):_0xddf36[_0x27ed13(0x258)]=!0x0;break;case _0x27ed13(0x1cf):_0xddf36['backendUrl']=_0x41cc33[++_0x5961ce];break;case _0x27ed13(0x1b3):_0xddf36[_0x27ed13(0x1e3)]=_0x41cc33[++_0x5961ce];break;case _0x27ed13(0x2ca):_0xddf36[_0x27ed13(0x1c4)]=_0x41cc33[++_0x5961ce];break;case _0x27ed13(0x33f):_0xddf36[_0x27ed13(0x372)]=_0x41cc33[++_0x5961ce];break;case'--worker-id':_0xddf36['workerId']=_0x41cc33[++_0x5961ce];break;case _0x27ed13(0x177):_0xddf36['preloadSkills'][_0x27ed13(0x304)](b(_0x41cc33,++_0x5961ce,_0x2f852d,_0x27ed13(0x1bc)));break;case'--project':{let _0x4e13fd=b(_0x41cc33,++_0x5961ce,_0x2f852d,_0x27ed13(0x17c));_0x34b8a8(_0x4e13fd)||(console[_0x27ed13(0x2a7)]('Invalid\x20--project:\x20\x22'+_0x4e13fd+_0x27ed13(0x191)),process[_0x27ed13(0x2de)](0x2)),_0xddf36[_0x27ed13(0x2c2)]=_0x4e13fd;break;}case _0x27ed13(0x1cb):_0xddf36[_0x27ed13(0x348)]=b(_0x41cc33,++_0x5961ce,_0x2f852d,_0x27ed13(0x219));break;case _0x27ed13(0x298):{let _0x4e5ec4=b(_0x41cc33,++_0x5961ce,_0x2f852d,'a\x20format\x20('+_0x2f8769['join'](_0x27ed13(0x1b9))+')');_0x1f47e5(_0x4e5ec4)||(console[_0x27ed13(0x2a7)](_0x27ed13(0x2cc)+_0x4e5ec4+'.\x20Use\x20'+_0x2f8769[_0x27ed13(0x181)](_0x27ed13(0x1b9))+'.'),process[_0x27ed13(0x2de)](0x2)),_0xddf36['outputFormat']=_0x4e5ec4;break;}case _0x27ed13(0x35c):{let _0xf137a2=b(_0x41cc33,++_0x5961ce,_0x2f852d,_0x27ed13(0x1e0)+F[_0x27ed13(0x181)]('\x20|\x20')+')');se(_0xf137a2)||(console['error'](_0x27ed13(0x2a0)+_0xf137a2+_0x27ed13(0x221)+F[_0x27ed13(0x181)](_0x27ed13(0x1b9))+'.'),process[_0x27ed13(0x2de)](0x2)),_0xddf36[_0x27ed13(0x353)]=_0xf137a2;break;}case'--replay-user-messages':_0xddf36[_0x27ed13(0x17e)]=!0x0;break;case _0x27ed13(0x272):_0xddf36[_0x27ed13(0x238)]=b(_0x41cc33,++_0x5961ce,_0x2f852d,_0x27ed13(0x292));break;case _0x27ed13(0x2f7):_0xddf36[_0x27ed13(0x32a)]=K(_0x41cc33,++_0x5961ce,_0x2f852d);break;case _0x27ed13(0x25d):_0xddf36[_0x27ed13(0x180)]=K(_0x41cc33,++_0x5961ce,_0x2f852d,_0x50bd61);break;case _0x27ed13(0x19b):_0xddf36[_0x27ed13(0x188)]=!0x0;break;case _0x27ed13(0x165):_0xddf36[_0x27ed13(0x213)]=b(_0x41cc33,++_0x5961ce,_0x2f852d,_0x27ed13(0x266));break;case'--attach':{let _0x415773=_0x3ce0b7[_0x27ed13(0x170)](process['cwd'](),b(_0x41cc33,++_0x5961ce,_0x2f852d,_0x27ed13(0x189)));_0x1d127c[_0x27ed13(0x190)](_0x415773)||(console[_0x27ed13(0x2a7)]('--attach:\x20no\x20such\x20file\x20or\x20folder:\x20'+_0x415773),process[_0x27ed13(0x2de)](0x2)),_0xddf36[_0x27ed13(0x306)][_0x27ed13(0x304)](_0x415773);break;}case'--turn':_0xddf36[_0x27ed13(0x305)]=b(_0x41cc33,++_0x5961ce,_0x2f852d,_0x27ed13(0x33c));break;case _0x27ed13(0x164):_0xddf36[_0x27ed13(0x21e)]=b(_0x41cc33,++_0x5961ce,_0x2f852d,'an\x20email\x20address\x20or\x20name');break;case _0x27ed13(0x2cd):_0xddf36[_0x27ed13(0x280)]=b(_0x41cc33,++_0x5961ce,_0x2f852d,_0x27ed13(0x2d1));break;case _0x27ed13(0x2e5):_0xddf36[_0x27ed13(0x1a4)]=b(_0x41cc33,++_0x5961ce,_0x2f852d,_0x27ed13(0x352));break;case _0x27ed13(0x1d6):_0xddf36['mapName']=b(_0x41cc33,++_0x5961ce,_0x2f852d,_0x27ed13(0x338));break;case _0x27ed13(0x172):_0xddf36[_0x27ed13(0x253)]=K(_0x41cc33,++_0x5961ce,_0x2f852d,0x16d);break;case _0x27ed13(0x279):_0xddf36[_0x27ed13(0x2fd)]=_0x3ce0b7[_0x27ed13(0x170)](process[_0x27ed13(0x230)](),b(_0x41cc33,++_0x5961ce,_0x2f852d,_0x27ed13(0x2c3)));break;case _0x27ed13(0x202):_0xddf36[_0x27ed13(0x33e)]=_0x3ce0b7[_0x27ed13(0x170)](process[_0x27ed13(0x230)](),b(_0x41cc33,++_0x5961ce,_0x2f852d,'a\x20directory\x20path'));break;case'--effort':{let _0x1c968b=b(_0x41cc33,++_0x5961ce,_0x2f852d,_0x27ed13(0x2d3));pe['includes'](_0x1c968b)||(console[_0x27ed13(0x2a7)]('Invalid\x20--effort:\x20'+_0x1c968b+_0x27ed13(0x221)+pe[_0x27ed13(0x181)](_0x27ed13(0x1b9))+'.'),process[_0x27ed13(0x2de)](0x2)),_0xddf36[_0x27ed13(0x30c)]=_0x1c968b;break;}case _0x27ed13(0x207):{let _0x581b00=_0x41cc33[++_0x5961ce];(!_0x581b00||_0x581b00[_0x27ed13(0x342)]('--'))&&(console[_0x27ed13(0x2a7)](_0x27ed13(0x1ce)),process['exit'](0x2)),_0xddf36[_0x27ed13(0x2d8)]=_0x581b00;break;}case'--env':{let _0x44bef9=_0x41cc33[++_0x5961ce];[_0x27ed13(0x203),_0x27ed13(0x336),'production',_0x27ed13(0x22a)][_0x27ed13(0x322)](_0x44bef9)||(console[_0x27ed13(0x2a7)](_0x27ed13(0x27f)+_0x44bef9+_0x27ed13(0x248)),process['exit'](0x2)),_0xddf36[_0x27ed13(0x211)]=_0x44bef9;break;}case _0x27ed13(0x167):case'--authority':{let _0x29909b=b(_0x41cc33,++_0x5961ce,_0x2f852d,_0x27ed13(0x2a5)),_0x294511=_0x4cd9ac(_0x29909b);if(_0x294511['ok']===!0x1){console['error'](_0x153f99(_0x29909b,_0x294511['rejection'])),process['exit'](0x2);break;}_0xddf36[_0x27ed13(0x283)]=_0x294511[_0x27ed13(0x374)];break;}case _0x27ed13(0x2c4):_0xddf36[_0x27ed13(0x357)]=!0x0;break;case'-h':case'--help':_0xddf36['help']=!0x0;break;case'-v':case _0x27ed13(0x2b9):_0xddf36[_0x27ed13(0x1df)]=!0x0;break;default:_0x2f852d[_0x27ed13(0x342)]('--')&&(console[_0x27ed13(0x2a7)]('Unknown\x20flag:\x20'+_0x2f852d),process[_0x27ed13(0x2de)](0x2)),_0x30be8d[_0x27ed13(0x304)](_0x2f852d);}}return _0xddf36[_0x27ed13(0x2d8)]!==void 0x0&&_0xddf36[_0x27ed13(0x358)]!==_0x27ed13(0x31b)&&(console[_0x27ed13(0x2a7)](_0x27ed13(0x1c5)),process[_0x27ed13(0x2de)](0x2)),_0xddf36['url']!==void 0x0&&_0xddf36[_0x27ed13(0x211)]!==void 0x0&&(console[_0x27ed13(0x2a7)](_0x27ed13(0x308)),process[_0x27ed13(0x2de)](0x2)),_0xddf36[_0x27ed13(0x283)]!==void 0x0&&_0xddf36[_0x27ed13(0x358)]!==_0x27ed13(0x31b)&&(console[_0x27ed13(0x2a7)](_0x27ed13(0x2e4)),process[_0x27ed13(0x2de)](0x2)),_0xddf36[_0x27ed13(0x253)]!==void 0x0&&_0xddf36[_0x27ed13(0x358)]!==_0x27ed13(0x301)&&(console[_0x27ed13(0x2a7)](_0x27ed13(0x2a9)),process['exit'](0x2)),_0xddf36[_0x27ed13(0x213)]!==void 0x0&&(_0xddf36[_0x27ed13(0x358)]!==_0x27ed13(0x1d5)&&_0xddf36[_0x27ed13(0x358)]!==''||_0xddf36['cleanup'])&&(console[_0x27ed13(0x2a7)](_0x27ed13(0x28a)),process['exit'](0x2)),_0xddf36[_0x27ed13(0x306)][_0x27ed13(0x370)]>0x0&&(_0xddf36[_0x27ed13(0x358)]!==''||_0xddf36[_0x27ed13(0x200)])&&(console[_0x27ed13(0x2a7)](_0x27ed13(0x18a)),process['exit'](0x2)),_0xddf36[_0x27ed13(0x1a7)]&&(_0xddf36['subcommand']!==''||_0xddf36[_0x27ed13(0x200)])&&(console[_0x27ed13(0x2a7)](_0x27ed13(0x2c5)),process['exit'](0x2)),_0xddf36[_0x27ed13(0x1a7)]&&(_0xddf36[_0x27ed13(0x2a6)]||_0xddf36[_0x27ed13(0x316)]||_0xddf36['vertical']?.[_0x27ed13(0x323)]()===B)&&(console[_0x27ed13(0x2a7)]('--task-automation\x20needs\x20computer\x20use:\x20the\x20task\x20log\x20is\x20written\x20by\x20the\x20UI-automation\x20tools.\x20Drop\x20--headless,\x20--no-computer-use,\x20--cartographer\x20and\x20--vertical\x20cartographer.'),process[_0x27ed13(0x2de)](0x2)),_0xddf36['cartographer']&&(_0xddf36[_0x27ed13(0x348)]!==void 0x0&&_0xddf36[_0x27ed13(0x348)]['trim']()!==B&&(console['error']('--cartographer\x20runs\x20the\x20'+B+_0x27ed13(0x1d2)+_0xddf36['vertical']+'.\x20Drop\x20one\x20of\x20the\x20two.'),process[_0x27ed13(0x2de)](0x2)),_0xddf36[_0x27ed13(0x348)]=B),_0xddf36[_0x27ed13(0x357)]&&_0xddf36['subcommand']!==_0x27ed13(0x31b)&&(console[_0x27ed13(0x2a7)](_0x27ed13(0x25c)),process[_0x27ed13(0x2de)](0x2)),_0xddf36['outputFormat']!==_0x27ed13(0x37a)&&!ue[_0x27ed13(0x322)](_0xddf36['subcommand'])&&(console[_0x27ed13(0x2a7)](_0x27ed13(0x275)+_0xddf36['outputFormat']+_0x27ed13(0x356)+ue[_0x27ed13(0x261)](Boolean)[_0x27ed13(0x181)](',\x20')+'.'),process[_0x27ed13(0x2de)](0x2)),(_0xddf36[_0x27ed13(0x353)]!==_0x27ed13(0x37a)||_0xddf36[_0x27ed13(0x17e)])&&_0xddf36[_0x27ed13(0x358)]!==''&&(console[_0x27ed13(0x2a7)](_0x27ed13(0x2bb)),process['exit'](0x2)),_0xddf36['replayUserMessages']&&_0xddf36['inputFormat']!==_0x27ed13(0x25e)&&(console[_0x27ed13(0x2a7)](_0x27ed13(0x2e0)),process['exit'](0x2)),_0xddf36['inputFormat']==='stream-json'&&_0xddf36[_0x27ed13(0x286)]!==_0x27ed13(0x25e)&&(console[_0x27ed13(0x2a7)](_0x27ed13(0x1b6)),process[_0x27ed13(0x2de)](0x2)),(_0xddf36['page']!==void 0x0||_0xddf36[_0x27ed13(0x180)]!==void 0x0||_0xddf36[_0x27ed13(0x188)])&&_0xddf36[_0x27ed13(0x358)]!=='sessions'&&(console[_0x27ed13(0x2a7)](_0x27ed13(0x34e)),process[_0x27ed13(0x2de)](0x2)),(_0xddf36[_0x27ed13(0x21e)]!==void 0x0||_0xddf36['contextSummary']!==void 0x0)&&_0xddf36[_0x27ed13(0x358)]!==_0x27ed13(0x1db)&&(console[_0x27ed13(0x2a7)](_0x27ed13(0x2e3)),process['exit'](0x2)),_0xddf36[_0x27ed13(0x305)]!==void 0x0&&_0xddf36[_0x27ed13(0x358)]!==_0x27ed13(0x22f)&&(console[_0x27ed13(0x2a7)](_0x27ed13(0x36f)),process[_0x27ed13(0x2de)](0x2)),(_0xddf36[_0x27ed13(0x1a4)]!==void 0x0||_0xddf36[_0x27ed13(0x24f)]!==void 0x0)&&(_0xddf36[_0x27ed13(0x358)]!==_0x27ed13(0x1e7)||_0x30be8d[0x0]!==_0x27ed13(0x26a))&&(console[_0x27ed13(0x2a7)](_0x27ed13(0x20b)),process[_0x27ed13(0x2de)](0x2)),_0xddf36[_0x27ed13(0x1fc)]=[...new Set(_0xddf36[_0x27ed13(0x1fc)])],_0xddf36[_0x27ed13(0x174)]=_0x30be8d,_0xddf36[_0x27ed13(0x354)]=_0x30be8d['join']('\x20'),_0xddf36[_0x27ed13(0x353)]===_0x27ed13(0x25e)&&_0xddf36['prompt']!==''&&(console[_0x27ed13(0x2a7)](_0x27ed13(0x27d)),process[_0x27ed13(0x2de)](0x2)),_0xddf36;}var L=_0x4f6a8e=>{const _0x4a0c5a=_0x2fdf32;process[_0x4a0c5a(0x2f6)][_0x4a0c5a(0x24e)](_0x4f6a8e);};function Xt(){const _0x4fead7=_0x2fdf32;let _0x591c38=process[_0x4fead7(0x2f6)][_0x4fead7(0x24e)],_0x3f7fa9=_0x591c38[_0x4fead7(0x2fa)](process[_0x4fead7(0x2f6)]),_0x580827=L;return L=_0x575464=>{_0x3f7fa9(_0x575464);},process[_0x4fead7(0x2f6)]['write']=(..._0x2cabb3)=>process[_0x4fead7(0x2d6)][_0x4fead7(0x24e)](..._0x2cabb3),()=>{const _0x567dd9=_0x4fead7;process[_0x567dd9(0x2f6)][_0x567dd9(0x24e)]=_0x591c38,L=_0x580827;};}function m(_0x3e2332,_0x247284,_0x10c70f){const _0x14986a=_0x2fdf32;if(_0x3e2332[_0x14986a(0x286)]==='text'){_0x10c70f(_0x247284);return;}L(_0x31c8e9(_0x247284));}function Zt(){const _0x418013=_0x2fdf32;let _0xf576f8='\x0adelegate-cli\x20—\x20Delegate\x20agent\x20CLI\x0a\x0aUsage:\x0a\x20\x20delegate-cli\x20[flags]\x20[\x22<prompt>\x22]\x20\x20\x20\x20Start\x20a\x20conversation\x20in\x20a\x20terminal\x0a\x20\x20delegate-cli\x20--print\x20\x22<prompt>\x22\x20\x20\x20\x20\x20\x20Send\x20one\x20prompt,\x20print\x20the\x20response,\x20and\x20exit\x0a\x20\x20delegate-cli\x20[flags]\x20-\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Read\x20one\x20prompt\x20from\x20stdin\x20through\x20EOF,\x20then\x20exit\x0a\x20\x20delegate-cli\x20-p\x20\x22<prompt>\x22\x20--output-format\x20json|stream-json\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20One\x20turn\x20with\x20JSON-only\x20stdout;\x20exit\x201\x20on\x20error\x0a\x20\x20delegate-cli\x20--json-schema\x20FILE\x20\x22<prompt>\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20One\x20turn,\x20then\x20its\x20result\x20extracted\x20as\x20JSON\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20matching\x20the\x20schema\x20in\x20FILE\x20(printed\x20after\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20answer;\x20\x22structured\x22\x20in\x20the\x20JSON\x20result);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20exit\x201\x20when\x20the\x20extraction\x20fails\x0a\x20\x20delegate-cli\x20--attach\x20PATH\x20[--attach\x20PATH\x20...]\x20\x22<prompt>\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Send\x20files\x20or\x20folders\x20with\x20the\x20first\x20message\x0a\x20\x20delegate-cli\x20login\x20[--env\x20NAME\x20|\x20--url\x20BASE]\x20[--tenant\x20NAME]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20OAuth\x20browser\x20login\x20→\x20~/.aria/sdk-auth.json.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--env\x20or\x20--url\x20required\x20on\x20FIRST\x20login;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20afterwards\x20defaults\x20to\x20the\x20saved\x20login\x27s\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20deployment.\x20--tenant\x20picks\x20a\x20tenant\x20by\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20name;\x20without\x20it\x20a\x20re-login\x20keeps\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20saved\x20tenant\x0a\x20\x20delegate-cli\x20tenant\x20[NAME]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20the\x20organization\x27s\x20tenants,\x20or\x20switch\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20saved\x20login\x20to\x20NAME\x20(no\x20browser)\x0a\x20\x20delegate-cli\x20logout\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Remove\x20the\x20saved\x20CLI\x20login\x0a\x20\x20delegate-cli\x20whoami\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20the\x20current\x20login\x20(org,\x20tenant,\x20token\x20expiry)\x0a\x20\x20delegate-cli\x20models\x20[--env\x20NAME]\x20\x20\x20\x20\x20List\x20available\x20LLM\x20models\x20for\x20the\x20current\x20tenant,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20with\x20any\x20BYO\x20configuration\x20warning\x20per\x20model\x0a\x20\x20delegate-cli\x20sessions\x20[list]\x20[--page\x20N]\x20[--limit\x20N]\x20[--include-subagents]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20your\x20backend\x20chat\x20sessions,\x20most\x20recently\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20active\x20first\x20(resume\x20one\x20with\x20--session\x20ID)\x0a\x20\x20delegate-cli\x20sessions\x20show|delete\x20ID\x20Show\x20one\x20session\x27s\x20title\x20and\x20owner,\x20or\x20delete\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20it\x20with\x20its\x20messages\x20and\x20sub-agents\x20(no\x20prompt)\x0a\x20\x20delegate-cli\x20sessions\x20rename\x20ID\x20TITLE\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Rename\x20a\x20session\x20(1-500\x20characters)\x0a\x20\x20delegate-cli\x20sessions\x20fork\x20ID\x20[MESSAGE]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Copy\x20session\x20ID\x20into\x20a\x20new\x20session,\x20up\x20to\x20and\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20including\x20message\x20MESSAGE\x20(default:\x20all\x20of\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20it);\x20continue\x20it\x20with\x20--session\x20NEW_ID\x0a\x20\x20delegate-cli\x20sessions\x20cancel\x20ID\x20--turn\x20TURN\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Cancel\x20turn\x20TURN\x20running\x20on\x20session\x20ID\x20in\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20another\x20process;\x20exits\x201\x20when\x20no\x20such\x20turn\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20is\x20in\x20progress\x0a\x20\x20delegate-cli\x20check\x20[--env\x20NAME]\x20[--headless]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Verify\x20auth,\x20backend\x20readiness,\x20backend\x20and\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20interop\x20without\x20sending\x20a\x20prompt;\x20exits\x201\x20when\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20any\x20check\x20fails\x0a\x20\x20delegate-cli\x20usage\x20[--session\x20ID]\x20\x20\x20\x20Quota\x20and\x20spend:\x20licensing\x20quota,\x20monthly\x20spend\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20and\x20cap\x0a\x20\x20delegate-cli\x20usage\x20activity|daily\x20[--days\x20N]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Activity\x20totals,\x20or\x20per-day\x20usage,\x20over\x20the\x20last\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20N\x20days\x20(1-365,\x20default\x2030)\x0a\x20\x20delegate-cli\x20evaluate|rerank|verify\x20FILE|-\x20[--model\x20ID]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Stateless\x20typed\x20judgments:\x20send\x20the\x20JSON\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20request\x20in\x20FILE\x20(or\x20stdin\x20with\x20-)\x20to\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20/v1/completions/<command>\x20and\x20print\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20answers;\x20--model\x20overrides\x20its\x20\x22model\x22.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Exits\x201\x20when\x20the\x20backend\x20rejects\x20it\x0a\x20\x20delegate-cli\x20complete\x20--json-schema\x20FILE\x20[--model\x20ID]\x20[--session\x20ID]\x20\x22<prompt>\x22|-\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20One\x20structured\x20completion,\x20no\x20agent\x20turn:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20print\x20the\x20JSON\x20object\x20matching\x20the\x20schema\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20in\x20FILE\x20(--output-format\x20json\x20prints\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{structured,\x20usage});\x20--session\x20adds\x20that\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20session\x27s\x20history\x20as\x20context.\x20Exits\x201\x20when\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20output\x20fails\x20the\x20schema\x20(422)\x20or\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20backend\x20rejects\x20the\x20request\x0a\x20\x20delegate-cli\x20transcribe\x20FILE|-\x20\x20\x20\x20\x20\x20\x20Speech-to-text:\x20print\x20the\x20text\x20of\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20audio\x20in\x20FILE,\x20or\x20on\x20stdin\x20with\x20-.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20mp3,\x20mp4,\x20mpeg,\x20mpga,\x20m4a,\x20wav\x20or\x20webm,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20up\x20to\x2014\x20MB.\x20Exits\x202\x20when\x20the\x20audio\x20is\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20refused\x20locally,\x201\x20when\x20the\x20backend\x20rejects\x20it\x0a\x20\x20delegate-cli\x20export\x20TYPE\x20[DOCUMENT_ID]\x20--project\x20ID\x20[--working-dir\x20PATH]\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\x20Export\x20a\x20project\x27s\x20living\x20document\x20(TYPE:\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\x20pdd,\x20sdd,\x20...)\x20to\x20.docx,\x20as\x20an\x20agent\x27s\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20/livingdoc/export\x20does,\x20from\x20the\x20local\x20disk:\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\x20no\x20login\x20or\x20interop.\x20--project\x20and\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--working-dir\x20name\x20the\x20project\x20as\x20the\x20run\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\x20that\x20wrote\x20it\x20did.\x20DOCUMENT_ID\x20(the\x20draft\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\x20path)\x20picks\x20one\x20of\x20several\x20documents\x20of\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20TYPE.\x20Prints\x20the\x20.docx\x20path;\x20exits\x201\x20when\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20there\x20is\x20no\x20such\x20document\x20or\x20export\x20fails\x0a\x20\x20delegate-cli\x20maps\x20share\x20--project\x20ID\x20--remote\x20URL|PATH\x20--map-name\x20NAME\x20[--working-dir\x20PATH]\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\x20Share\x20a\x20project\x27s\x20Map\x20of\x20Work,\x20as\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20desktop\x20app\x27s\x20Share\x20does\x20with\x20New\x20map\x20of\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20work:\x20its\x20history,\x20change\x20requests\x20and\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20versions\x20go\x20to\x20a\x20bare\x20git\x20repository\x20on\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\x20this\x20computer\x20or\x20a\x20shared\x20drive\x20(a\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\x20file://\x20URL\x20or\x20an\x20absolute\x20path),\x20under\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20NAME,\x20and\x20publish\x20there\x20from\x20then\x20on.\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\x20Join\x20it\x20in\x20the\x20app\x20with\x20Existing\x20map\x20of\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20work.\x20GitHub\x20is\x20not\x20available\x20here\x20yet.\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\x20No\x20login\x20or\x20interop;\x20exits\x201\x20when\x20refused\x0a\x20\x20delegate-cli\x20maps\x20save-version\x20MESSAGE\x20--project\x20ID\x20[--working-dir\x20PATH]\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\x20Save\x20version,\x20as\x20in\x20the\x20desktop\x20app:\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20map\x27s\x20next\x200.x\x20version\x20(0.1.0\x20first),\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\x20named\x20MESSAGE.\x20Exits\x201\x20when\x20refused,\x20as\x20on\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\x20settled\x20map,\x20which\x20gets\x20versions\x20from\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\x20applied\x20change\x20requests\x20only\x0a\x20\x20delegate-cli\x20org-users\x20QUERY\x20\x20\x20\x20\x20\x20\x20\x20\x20Search\x20your\x20organization\x27s\x20users\x20by\x20name\x20or\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20email\x20prefix\x20(2-100\x20characters)\x0a\x20\x20delegate-cli\x20delegations\x20create\x20--session\x20ID\x20[--to\x20WHO]\x20[--summary\x20TEXT]\x20\x22<task>\x22|-\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Hand\x20a\x20task\x20from\x20session\x20ID\x20to\x20a\x20colleague\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(WHO:\x20an\x20email,\x20or\x20a\x20name\x20matching\x20one\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20person);\x20without\x20--to,\x20print\x20a\x20link\x20anyone\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20in\x20the\x20organization\x20can\x20claim\x0a\x20\x20delegate-cli\x20delegations\x20pending\x20SESSION\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Answers\x20to\x20delegations\x20from\x20SESSION\x20that\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20await\x20acceptance\x20(poll\x20this)\x0a\x20\x20delegate-cli\x20delegations\x20accept|dismiss|cancel|delete\x20ID\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Take\x20an\x20answer\x20into\x20its\x20session,\x20drop\x20it,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20withdraw\x20a\x20live\x20delegation,\x20or\x20delete\x20it\x0a\x20\x20delegate-cli\x20delegations\x20list\x20PROJECT\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Every\x20delegation\x20targeting\x20a\x20backend\x20project\x0a\x20\x20delegate-cli\x20delegations\x20show|claim\x20ID|LINK\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Read\x20a\x20delegation\x20assigned\x20to\x20you\x20(or\x20a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20delegate://delegation/…\x20link),\x20or\x20claim\x20it:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20prints\x20the\x20session\x20to\x20work\x20it\x20in\x0a\x20\x20delegate-cli\x20delegations\x20complete\x20ID\x20\x22<answer>\x22|-\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Send\x20the\x20answer\x20to\x20a\x20delegation\x20you\x20claimed\x0a\x20\x20delegate-cli\x20host\x20[flags]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Run\x20this\x20PC\x20as\x20a\x20remote\x20worker\x20until\x20Ctrl+C\x0a\x20\x20delegate-cli\x20host\x20install\x20[flags]\x20\x20\x20\x20Auto-start\x20the\x20host\x20at\x20login\x20(macOS\x20LaunchAgent\x20/\x20Windows\x20Scheduled\x20Task)\x0a\x20\x20delegate-cli\x20host\x20uninstall\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Remove\x20auto-start\x0a\x20\x20delegate-cli\x20host\x20status\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20auto-start\x20state\x0a\x20\x20delegate-cli\x20--cleanup\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Stop\x20running\x20interop\x0a\x0aFlags:\x0a\x20\x20-p,\x20--print\x20\x20\x20\x20\x20\x20\x20Run\x20one\x20turn\x20and\x20exit,\x20including\x20any\x20tool\x20execution.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Automatic\x20when\x20stdin\x20or\x20stdout\x20is\x20not\x20a\x20terminal,\x20or\x20with\x20-\x0a\x20\x20--env\x20NAME\x20\x20\x20\x20\x20\x20\x20\x20alpha\x20|\x20staging\x20|\x20production\x20|\x20localhost\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Composes\x20backend\x20URL\x20from\x20saved\x20auth\x20(org/tenant\x20slugs).\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Omitted\x20→\x20the\x20deployment\x20you\x20logged\x20into\x20(delegate-cli\x20login).\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20localhost\x20→\x20http://localhost:5002.\x20No\x20saved\x20login\x20and\x20no\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--env/--backend/BACKEND_URL\x20is\x20an\x20error\x20—\x20never\x20a\x20guess.\x0a\x20\x20--url\x20BASE\x20\x20\x20\x20\x20\x20\x20\x20(login)\x20Base\x20URL\x20of\x20a\x20deployment\x20that\x20is\x20not\x20a\x20named\x20cloud\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20—\x20Automation\x20Suite,\x20Dedicated,\x20Public\x20Sector.\x20Accepts\x20a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20tenant\x20path\x20or\x20a\x20trailing\x20/identity_\x20and\x20reduces\x20it\x20to\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20origin.\x20Mutually\x20exclusive\x20with\x20--env;\x20also\x20settable\x20via\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20UIPATH_BASE_URL.\x20Alias:\x20--authority.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Automation\x20Suite\x20needs\x2026.10+\x20with\x20the\x20Delegate\x20service;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20the\x20deployment\x20rejects\x20the\x20built-in\x20client,\x20register\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20your\x20own\x20—\x20see\x20UIPATH_CLIENT_ID\x20in\x20the\x20README\x0a\x20\x20--skip-env-check\x20\x20(login)\x20Do\x20not\x20check\x20the\x20deployment\x20before\x20signing\x20in.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Escape\x20hatch\x20for\x20a\x20deployment\x20that\x20hides\x20its\x20OIDC\x20discovery\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20document\x20or\x20serves\x20Identity\x20from\x20another\x20origin;\x20it\x20also\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20gives\x20up\x20the\x20diagnosis\x20when\x20something\x20is\x20really\x20wrong\x0a\x20\x20--backend\x20URL\x20\x20\x20\x20\x20Full\x20backend\x20URL\x20—\x20escape\x20hatch\x20overrides\x20--env\x0a\x20\x20--tenant\x20NAME\x20\x20\x20\x20\x20(login)\x20Tenant\x20to\x20sign\x20into,\x20by\x20name\x20(case-insensitive).\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default:\x20the\x20saved\x20login\x27s\x20tenant\x20on\x20that\x20cloud,\x20else\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20org\x27s\x20first\x20tenant.\x20Later:\x20delegate-cli\x20tenant\x20<name>\x0a\x20\x20--model\x20NAME\x20\x20\x20\x20\x20\x20LLM\x20model\x20id\x20(e.g.\x20claude_sonnet_5_5,\x20kimi_k3).\x20Checked\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20against\x20the\x20tenant\x27s\x20catalog\x20(delegate-cli\x20models)\x20before\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20run\x20starts;\x20an\x20unknown\x20id\x20fails\x20and\x20lists\x20the\x20valid\x20ones.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default:\x20gpt_5_6_luna.\x20Also\x20settable\x20via\x20MODEL\x20env\x20var.\x0a\x20\x20--keep-alive\x20\x20\x20\x20\x20\x20Reuse/leave\x20interop\x20running\x20across\x20invocations\x0a\x20\x20--headless\x20\x20\x20\x20\x20\x20\x20\x20Skip\x20interop\x20(text-only\x20prompts)\x0a\x20\x20--no-computer-use\x20Keep\x20interop\x20—\x20file,\x20Office,\x20PDF\x20and\x20shell\x20tools\x20keep\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20working\x20—\x20but\x20drop\x20the\x20screen:\x20no\x20screenshots,\x20no\x20window\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20list,\x20no\x20UI-automation\x20tools.\x20Cuts\x20image\x20tokens\x20and\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20per-turn\x20screen\x20capture,\x20and\x20stops\x20desktop\x20window\x20titles\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20leaving\x20the\x20machine.\x20Use\x20for\x20document\x20and\x20file\x20work.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--headless\x20implies\x20this\x20and\x20turns\x20interop\x20off\x20as\x20well\x0a\x20\x20--no-connections\x20\x20Disable\x20orchestrator\x20ConnectionService\x20(silences\x20404\x20warnings)\x0a\x20\x20--no-security\x20\x20\x20\x20\x20Disable\x20tool\x20security\x20wrapper\x20(use\x20only\x20for\x20debugging)\x0a\x20\x20--no-memory\x20\x20\x20\x20\x20\x20\x20Do\x20not\x20send\x20the\x20Delegate\x20app\x27s\x20local\x20long-term\x20memories\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20with\x20each\x20turn,\x20and\x20do\x20not\x20ask\x20the\x20model\x20to\x20save\x20new\x20ones\x0a\x20\x20--task-automation\x20Record\x20every\x20UI\x20action\x20of\x20the\x20run,\x20with\x20the\x20selector\x20of\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20element\x20it\x20acted\x20on,\x20to\x20<working-dir>/captures/<session>/\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(~/.aria-sdk\x20without\x20--working-dir),\x20so\x20you\x20can\x20then\x20ask\x20for\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20task\x20as\x20a\x20UiPath\x20coded\x20workflow\x20(uipath-taskautomation\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20skill).\x20The\x20log\x20holds\x20on-screen\x20text\x20and\x20your\x20requests;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20typed\x20values\x20are\x20masked.\x20Needs\x20computer\x20use.\x20Ignored\x20with\x20a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20warning\x20where\x20the\x20deployment\x20does\x20not\x20offer\x20it\x20yet\x0a\x20\x20--attach\x20PATH\x20\x20\x20\x20\x20File\x20or\x20folder\x20sent\x20with\x20the\x20first\x20message\x20(repeatable),\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20as\x20the\x20Delegate\x20app\x20sends\x20attached\x20files:\x20images\x20inline,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20PDFs\x20and\x20other\x20documents\x20as\x20a\x20path\x20the\x20agent\x20reads,\x20text\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20inline\x20up\x20to\x2016,000\x20characters.\x2030\x20MiB\x20per\x20message\x20in\x20all;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20larger\x20files\x20go\x20as\x20a\x20path.\x20In\x20a\x20conversation,\x20later\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20messages\x20carry\x20none\x20of\x20their\x20own,\x20but\x20the\x20first\x20message\x27s\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20stay\x20in\x20context\x0a\x20\x20--preload-skill\x20NAME\x20\x20Preload\x20a\x20skill\x20into\x20the\x20session\x20(repeatable).\x20The\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20skill\x27s\x20content\x20is\x20attached\x20before\x20the\x20first\x20model\x20turn\x20—\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20same\x20mechanism\x20as\x20project\x20preloaded\x20skills\x20in\x20the\x20app\x0a\x20\x20--cartographer\x20\x20\x20\x20Cartographer\x20engagement\x20preset.\x20Equivalent\x20to\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--vertical\x20cartographer\x20--no-computer-use\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--preload-skill\x20business-analysis\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--preload-skill\x20project-task-list\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--preload-skill\x20knowledge-base\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--preload-skill\x20source-coverage\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--preload-skill\x20note-taker.\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;\x20another\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--vertical\x20ID\x20is\x20refused\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--vertical\x20ID\x20\x20\x20\x20\x20Run\x20the\x20session\x20as\x20that\x20product\x27s\x20vertical,\x20as\x20its\x20tab\x20in\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20desktop\x20app\x20does,\x20with\x20no\x20desktop\x20app\x20installed:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20cartographer\x20brings\x20the\x20Map\x20of\x20Work\x20and,\x20without\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--preload-skill,\x20its\x20template\x27s\x20skills.\x20Default:\x20Delegate\x0a\x20\x20--working-dir\x20PATH\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Shell\x20cwd\x20for\x20the\x20agent\x20and\x20root\x20for\x20SDK-local\x20state.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Relative\x20paths\x20resolve\x20against\x20the\x20current\x20directory;\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20directory\x20is\x20created\x20if\x20missing\x0a\x20\x20--skills-path\x20PATH\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Folder\x20of\x20custom\x20skills,\x20loaded\x20on\x20top\x20of\x20the\x20skills\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20package\x20ships;\x20wins\x20on\x20a\x20name\x20clash\x20(also:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20DELEGATE_BUNDLED_SKILLS_PATH)\x0a\x20\x20--effort\x20TIER\x20\x20\x20\x20\x20Reasoning\x20effort:\x20low\x20|\x20medium\x20|\x20high\x20|\x20xhigh\x20|\x20max.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default:\x20the\x20model\x27s\x20recommended\x20tier\x0a\x20\x20--session\x20ID\x20\x20\x20\x20\x20\x20Continue\x20an\x20existing\x20backend\x20session\x20(an\x20unknown\x20id\x20exits\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x201;\x20the\x20backend\x20assigns\x20new\x20ids).\x20For\x20complete:\x20the\x20session\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20whose\x20history\x20is\x20the\x20context\x0a\x20\x20--json-schema\x20FILE\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20JSON\x20schema\x20the\x20structured\x20answer\x20must\x20match\x20(complete,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20and\x20prompts:\x20implies\x20--print)\x0a\x20\x20--runner-url\x20URL\x20\x20(host)\x20Runner\x20worker\x20WS\x20URL.\x20Required;\x20or\x20CONTROL_PLANE_WS_URL\x20env\x0a\x20\x20--interop\x20PATH\x20\x20\x20\x20(host)\x20Interop\x20binary\x20path;\x20or\x20INTEROP_EXECUTABLE_PATH\x20env.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Absent\x20→\x20registration/discovery\x20only,\x20tool\x20execution\x20disabled\x0a\x20\x20--worker-id\x20ID\x20\x20\x20\x20(host)\x20Stable\x20worker\x20identity;\x20or\x20WORKER_ID\x20env.\x20Default:\x20hostname\x0a\x20\x20--page\x20N\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(sessions)\x20Page\x20to\x20show,\x20from\x201.\x20Default:\x201\x0a\x20\x20--limit\x20N\x20\x20\x20\x20\x20\x20\x20\x20\x20(sessions)\x20Rows\x20per\x20page,\x201-100.\x20Default:\x2030\x0a\x20\x20--include-subagents\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(sessions)\x20Also\x20list\x20sub-agent\x20sessions,\x20hidden\x20by\x20default\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20as\x20in\x20the\x20desktop\x20app\x27s\x20history\x0a\x20\x20--to\x20WHO\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(delegations\x20create)\x20Assign\x20to\x20this\x20person:\x20an\x20email,\x20or\x20a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20name\x20that\x20matches\x20exactly\x20one\x20colleague\x20(see\x20org-users)\x0a\x20\x20--summary\x20TEXT\x20\x20\x20\x20(delegations\x20create)\x20The\x20briefing\x20the\x20person\x20starts\x20from.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default:\x20empty,\x20for\x20a\x20task\x20that\x20stands\x20on\x20its\x20own\x0a\x20\x20--remote\x20URL|PATH\x20(maps\x20share)\x20The\x20bare\x20git\x20repository\x20to\x20share\x20to:\x20a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20file://\x20URL\x20or\x20an\x20absolute\x20path,\x20on\x20this\x20computer\x20or\x20a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20shared\x20drive.\x20Create\x20it\x20first\x20(git\x20init\x20--bare)\x0a\x20\x20--map-name\x20NAME\x20\x20\x20(maps\x20share)\x20The\x20Map\x27s\x20name\x20in\x20that\x20repository,\x20beside\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20other\x20projects\x27\x20Maps:\x20up\x20to\x2064\x20letters,\x20digits,\x20\x22.\x22,\x20\x22_\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20or\x20\x22-\x22,\x20starting\x20with\x20a\x20letter\x20or\x20digit\x0a\x20\x20--output-format\x20FMT\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20text\x20(default)\x20|\x20json\x20|\x20stream-json.\x20json\x20prints\x20one\x20result\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20object\x20on\x20exit;\x20stream-json\x20prints\x20every\x20agent\x20event\x20as\x20one\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20JSON\x20line,\x20then\x20the\x20result.\x20Both\x20keep\x20stdout\x20JSON-only\x20(logs,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20progress\x20and\x20the\x20session\x20id\x20go\x20to\x20stderr),\x20imply\x20--print,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20and\x20exit\x201\x20when\x20the\x20turn\x20ends\x20in\x20error.\x20Also\x20honoured\x20by\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20every\x20subcommand\x20that\x20prints\x20a\x20result\x20(all\x20but\x20login,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20logout,\x20tenant\x20and\x20host)\x0a\x20\x20--input-format\x20FMT\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20text\x20(default)\x20|\x20stream-json.\x20stream-json\x20reads\x20one\x20JSON\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20user\x20message\x20per\x20line\x20on\x20stdin\x20while\x20the\x20turn\x20runs:\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20first\x20is\x20the\x20prompt\x20(give\x20none\x20as\x20an\x20argument),\x20each\x20later\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20one\x20steers\x20the\x20turn\x20in\x20flight.\x20Needs\x20--output-format\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20stream-json\x0a\x20\x20--replay-user-messages\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(--input-format\x20stream-json)\x20Echo\x20each\x20steering\x20message\x20on\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20stdout\x20(isReplay:\x20true,\x20same\x20uuid)\x20once\x20the\x20agent\x20takes\x20it\x0a\x20\x20-q,\x20--quiet\x20\x20\x20\x20\x20\x20\x20Suppress\x20🤔\x20thinking\x20output\x20to\x20stderr\x0a\x20\x20--verbose\x20\x20\x20\x20\x20\x20\x20\x20\x20Surface\x20the\x20SDK\x27s\x20and\x20the\x20framework\x27s\x20own\x20logs.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Diagnostics\x20only,\x20on\x20stdout;\x20independent\x20of\x20-q\x0a\x20\x20-h,\x20--help\x20\x20\x20\x20\x20\x20\x20\x20Show\x20this\x20help\x0a\x20\x20-v,\x20--version\x20\x20\x20\x20\x20Print\x20the\x20installed\x20CLI\x20version\x0a\x0aConversation:\x20Enter\x20sends\x20a\x20message;\x20/exit\x20or\x20EOF\x20exits;\x20Ctrl+C\x20stops\x20and\x20exits.\x0a\x20\x20Ctrl+C\x20during\x20a\x20turn\x20cancels\x20it\x20on\x20the\x20backend\x20too;\x20a\x20second\x20Ctrl+C\x20force-exits.\x0a\x20\x20An\x20optional\x20initial\x20prompt\x20is\x20followed\x20by\x20more\x20input.\x20The\x20session\x20ID\x20is\x20printed\x0a\x20\x20to\x20stderr;\x20resume\x20later\x20with\x20--session\x20ID.\x20Redirected\x20input\x20is\x20one\x20prompt.\x0aAuth:\x20prompts\x20auto-retry\x20on\x20401\x20by\x20opening\x20the\x20browser\x20to\x20re-login\x20(TTY\x20only),\x0a\x20\x20preserving\x20the\x20active\x20session.\x0a'['trim']();console[_0x418013(0x224)](_0xf576f8);}function en(){const _0x365406=_0x2fdf32;try{return JSON[_0x365406(0x16e)](_0x1d127c[_0x365406(0x21f)](_0x3ce0b7[_0x365406(0x181)](__dirname,'..','package.json'),_0x365406(0x2fe)))['version']||_0x365406(0x28e);}catch{return _0x365406(0x28e);}}var tn=0x7d0;async function me(_0x3808ee,_0x4edbbd){const _0xc4912=_0x2fdf32;let _0x31fcd1=_0x4edbbd?[_0x4edbbd]:[];for await(let _0x4d80f0 of _0x3808ee)_0x31fcd1[_0xc4912(0x304)](Buffer['from'](_0x4d80f0));return Buffer[_0xc4912(0x27b)](_0x31fcd1)[_0xc4912(0x175)]('utf-8')[_0xc4912(0x323)]();}function nn(_0x26cd18,_0x41642b){return new Promise(_0x7183e=>{const _0x44deb6=_0x4fcd;let _0x200e24=_0x1cad93=>{const _0x2cd6bc=_0x4fcd;clearTimeout(_0x248719),_0x26cd18[_0x2cd6bc(0x2d9)](_0x2cd6bc(0x32b),_0x570783),_0x26cd18[_0x2cd6bc(0x2d9)]('end',_0xc9c380),_0x26cd18[_0x2cd6bc(0x2d9)]('error',_0xc9c380),_0x26cd18[_0x2cd6bc(0x243)](),_0x7183e(_0x1cad93);},_0x570783=_0x16ca41=>_0x200e24(Buffer[_0x44deb6(0x332)](_0x16ca41)),_0xc9c380=()=>_0x200e24(null),_0x248719=setTimeout(()=>_0x200e24(null),_0x41642b);_0x26cd18['on'](_0x44deb6(0x32b),_0x570783),_0x26cd18['on'](_0x44deb6(0x21d),_0xc9c380),_0x26cd18['on'](_0x44deb6(0x2a7),_0xc9c380),_0x26cd18[_0x44deb6(0x2f2)]();});}async function J(_0x234e2c,_0x4d1cd5,_0x22a9e9=tn){const _0x539089=_0x2fdf32;let _0x5ccea7=_0x234e2c==='-';if(!_0x5ccea7&&_0x234e2c)return _0x234e2c;if(!_0x5ccea7&&_0x4d1cd5[_0x539089(0x2cb)])return'';if(_0x5ccea7)return me(_0x4d1cd5,null);let _0x3100de=await nn(_0x4d1cd5,_0x22a9e9);return _0x3100de?me(_0x4d1cd5,_0x3100de):'';}function Y(){const _0x3f064b=_0x2fdf32;return _0x3ce0b7[_0x3f064b(0x181)](process.env.HOME||process.env.USERPROFILE||'',_0x3f064b(0x18c),_0x3f064b(0x255));}function G(_0x4f1eb7){const _0x23b737=_0x2fdf32;try{let _0x2c3e8d=JSON[_0x23b737(0x16e)](_0x1d127c[_0x23b737(0x21f)](_0x4f1eb7,_0x23b737(0x2fe)));return!_0x2c3e8d[_0x23b737(0x1e2)]||!_0x2c3e8d[_0x23b737(0x2c7)]||!_0x2c3e8d[_0x23b737(0x329)]?null:_0x2c3e8d;}catch{return null;}}function sn(){const _0x31aab8=_0x2fdf32;let _0x462c64=[{'file':_0x316b95(),'isDesktopFallback':!0x1},{'file':Y(),'isDesktopFallback':!0x0}];for(let _0x133070 of _0x462c64){let _0x2c846a=G(_0x133070[_0x31aab8(0x216)]);if(_0x2c846a)return{..._0x133070,'auth':_0x2c846a};}return null;}async function on(){const _0x4fda74=_0x2fdf32;let _0x2b470f=_0x316b95();if(!_0x1d127c[_0x4fda74(0x190)](_0x2b470f)){let _0x6d9ea9=Y();console['log'](G(_0x6d9ea9)?'No\x20CLI\x20login\x20found.\x20Note:\x20the\x20CLI\x20is\x20currently\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20'+_0x6d9ea9+_0x4fda74(0x2db):_0x4fda74(0x198));return;}_0x1d127c['rmSync'](_0x2b470f),console[_0x4fda74(0x224)](_0x4fda74(0x363)+_0x2b470f);}async function rn(_0x5ec0e8){const _0x39e7ef=_0x2fdf32;let _0x5959d5=z(),_0x21c4bf,_0x302243;if(_0x5959d5)_0x21c4bf=_0x5959d5,_0x302243=_0x39e7ef(0x227);else{let _0x5bcb3b=sn();if(!_0x5bcb3b)throw new Error(Ne);_0x21c4bf=_0x5bcb3b[_0x39e7ef(0x1d0)],_0x302243=_0x5bcb3b['isDesktopFallback']?_0x5bcb3b['file']+_0x39e7ef(0x380):_0x5bcb3b['file'];}let _0xc2f83d={'source':_0x302243,'baseUrl':_0x21c4bf[_0x39e7ef(0x374)]??null,'deployment':an(_0x21c4bf[_0x39e7ef(0x374)]),'organization':{'id':_0x21c4bf[_0x39e7ef(0x329)],'slug':_0x21c4bf[_0x39e7ef(0x30a)]??null},'tenant':{'id':_0x21c4bf[_0x39e7ef(0x2c7)],'name':_0x21c4bf[_0x39e7ef(0x2b3)]??null},'tokenExpiresAt':_0x21c4bf['expiresAt']?new Date(_0x21c4bf[_0x39e7ef(0x1f8)]*0x3e8)['toISOString']():null};m(_0x5ec0e8,_0xc2f83d,()=>{const _0x41c48c=_0x39e7ef;let _0x3ac6cd=[_0x41c48c(0x23f)+_0x302243,_0x41c48c(0x382)+(_0x21c4bf[_0x41c48c(0x374)]??_0x41c48c(0x28e)),_0x41c48c(0x2df)+_0xc2f83d[_0x41c48c(0x291)],_0x41c48c(0x16d)+(_0x21c4bf['orgLogicalName']??_0x41c48c(0x185))+'\x20('+_0x21c4bf[_0x41c48c(0x329)]+')',_0x41c48c(0x311)+(_0x21c4bf['tenantName']??'unknown\x20slug')+'\x20('+_0x21c4bf['tenantId']+')'];if(_0x21c4bf[_0x41c48c(0x1f8)]){let _0x138cb2=_0x21c4bf[_0x41c48c(0x1f8)]-Math[_0x41c48c(0x2c1)](Date[_0x41c48c(0x31a)]()/0x3e8);_0x3ac6cd[_0x41c48c(0x304)](_0x138cb2>0x0?_0x41c48c(0x1e9)+_0xc2f83d['tokenExpiresAt']+_0x41c48c(0x320)+Math[_0x41c48c(0x1ef)](_0x138cb2/0x3c)+_0x41c48c(0x368):'Token:\x20\x20\x20\x20\x20\x20\x20\x20expired\x20'+_0xc2f83d[_0x41c48c(0x1da)]);}process[_0x41c48c(0x2f6)][_0x41c48c(0x24e)](_0x3ac6cd[_0x41c48c(0x181)]('\x0a')+'\x0a');});}var Ne='No\x20auth\x20found.\x20Set\x20AUTH_TOKEN\x20(or\x20AUTH_TOKEN_FILE)/TENANT_ID/ORG_ID\x20env\x20vars,\x20or\x20run\x20`delegate-cli\x20login\x20--env\x20<alpha|staging|production>`\x20(or\x20`--url\x20<deployment-url>`\x20for\x20Automation\x20Suite)\x20first.';function an(_0x4114b5){const _0x45f156=_0x2fdf32;return _0x4114b5?_0x249fa4(_0x4114b5)?_0x45f156(0x386):_0x45f156(0x179):_0x45f156(0x28e);}function z(){let _0x1389ba=process.env.AUTH_TOKEN_FILE;return(process.env.AUTH_TOKEN||_0x1389ba)&&process.env.TENANT_ID&&process.env.ORG_ID?{'accessToken':_0x1389ba?ln(_0x1389ba):process.env.AUTH_TOKEN,..._0x1389ba?{'accessTokenFile':_0x1389ba}:{},'tenantId':process.env.TENANT_ID,'organizationId':process.env.ORG_ID,'orgLogicalName':process.env.ORG_SLUG,'tenantName':process.env.TENANT_SLUG,'baseUrl':Pe()}:null;}function ln(_0x56ebad){const _0x405807=_0x2fdf32;let _0x7eeea7;try{_0x7eeea7=_0x1d127c[_0x405807(0x21f)](_0x56ebad,_0x405807(0x2fe))[_0x405807(0x323)]();}catch(_0x343933){throw new Error(_0x405807(0x1fa)+_0x56ebad+_0x405807(0x246)+_0x343933[_0x405807(0x371)]);}let _0x4f2619=_0x7eeea7[_0x405807(0x342)](_0x405807(0x1b8))?_0x7eeea7['slice'](0x7)[_0x405807(0x323)]():_0x7eeea7;if(!_0x4f2619)throw new Error(_0x405807(0x1fa)+_0x56ebad+_0x405807(0x183));return _0x4f2619;}function Pe(){const _0x4bb205=_0x2fdf32;let _0x5c4259=process.env.UIPATH_BASE_URL;if(!_0x5c4259)return;let _0x29f374=_0x4cd9ac(_0x5c4259);if(_0x29f374['ok']===!0x1)throw new Error('UIPATH_BASE_URL\x20is\x20unusable.\x20'+_0x153f99(_0x5c4259,_0x29f374[_0x4bb205(0x1b5)]));return _0x29f374['baseUrl'];}async function V(){let _0x490c0e=z();if(_0x490c0e)return _0x490c0e;let _0x361876=await _0x4e66f2();if(_0x361876)return _0x361876;throw new Error(Ne);}async function cn(){await new _0x296c35()['stop']({'force':!0x0}),console['log']('Interop\x20stopped\x20(if\x20it\x20was\x20running).');}function X(_0x5d3e95,_0x45a93f,_0x2aa91c){const _0x476be9=_0x2fdf32;_0x5d3e95?process[_0x476be9(0x2d6)][_0x476be9(0x24e)]('[env='+_0x5d3e95+_0x476be9(0x204)+_0x2aa91c+'\x0a'):!_0x45a93f&&!process.env.BACKEND_URL&&process[_0x476be9(0x2d6)][_0x476be9(0x24e)](_0x476be9(0x32e)+_0x2aa91c+'\x0a');}async function x(_0x5689d9){const _0x1a756a=_0x2fdf32;let _0x5cca45=await V(),_0x51d8e5=_0x212233(_0x5689d9[_0x1a756a(0x211)],_0x5cca45,_0x5689d9[_0x1a756a(0x220)]);return X(_0x5689d9['env'],_0x5689d9['backendUrl'],_0x51d8e5),{'auth':_0x5cca45,'backendUrl':_0x51d8e5,'client':_0x195f2e({'auth':_0x5cca45,'backendUrl':_0x51d8e5})};}async function dn(_0x529c2f){const _0x236b8d=_0x2fdf32;let {client:_0x1ea541}=await x(_0x529c2f),[_0x520ca2,_0x41a7b3]=await Promise['all']([_0x2ca4ff(_0x1ea541),_0x33438e(_0x1ea541)['catch'](_0x4253bf=>(process[_0x236b8d(0x2d6)][_0x236b8d(0x24e)](_0x236b8d(0x169)+(_0x4253bf instanceof Error?_0x4253bf[_0x236b8d(0x371)]:String(_0x4253bf))+'\x0a'),{}))]),_0x2050b2=_0x520ca2[_0x236b8d(0x313)](_0x39ee1b=>_0x41a7b3[_0x39ee1b['id']]?{..._0x39ee1b,'byoWarning':_0x41a7b3[_0x39ee1b['id']]}:_0x39ee1b);m(_0x529c2f,_0x2050b2,un);}function un(_0x228c8d){const _0x10a27a=_0x2fdf32;if(_0x228c8d['length']===0x0){process[_0x10a27a(0x2d6)][_0x10a27a(0x24e)](_0x10a27a(0x24c));return;}process[_0x10a27a(0x2f6)][_0x10a27a(0x24e)](_0x10a27a(0x22b)+_0x228c8d['length']+'):\x0a\x0a');for(let _0x3be976 of _0x228c8d){let _0x2a80ec=_0x3be976[_0x10a27a(0x195)]&&_0x3be976[_0x10a27a(0x195)]!==_0x3be976['id']?'\x20('+_0x3be976[_0x10a27a(0x195)]+')':'';process[_0x10a27a(0x2f6)][_0x10a27a(0x24e)]('\x20\x20'+_0x3be976['id']+_0x2a80ec+'\x0a'),_0x3be976[_0x10a27a(0x2ab)]&&process[_0x10a27a(0x2f6)][_0x10a27a(0x24e)](_0x10a27a(0x37f)+_0x3be976[_0x10a27a(0x2ab)]+'\x0a'),_0x3be976[_0x10a27a(0x1dd)]&&process[_0x10a27a(0x2f6)][_0x10a27a(0x24e)](_0x10a27a(0x1ed)+(_0x3be976[_0x10a27a(0x383)]?'\x20('+_0x3be976[_0x10a27a(0x383)]+')':'')+'\x0a'),_0x3be976[_0x10a27a(0x30d)]&&process['stdout']['write'](_0x10a27a(0x1b7)+_0x3be976[_0x10a27a(0x30d)]+'\x0a');}process[_0x10a27a(0x2f6)][_0x10a27a(0x24e)](_0x10a27a(0x287));}var fe=[_0x2fdf32(0x28b),_0x2fdf32(0x1b4),_0x2fdf32(0x1c2),_0x2fdf32(0x367),_0x2fdf32(0x2eb),_0x2fdf32(0x334)];async function pn(_0x4682d1){const _0x126a4e=_0x2fdf32;let [_0xcbd4ec='',_0x37e89d='',..._0x2156bc]=_0x4682d1[_0x126a4e(0x174)];if(_0xcbd4ec&&!fe[_0x126a4e(0x322)](_0xcbd4ec)&&(console[_0x126a4e(0x2a7)](_0x126a4e(0x168)+_0xcbd4ec+'.\x20Use:\x20'+fe[_0x126a4e(0x181)](_0x126a4e(0x1b9))+'.'),process['exit'](0x2)),_0x4682d1[_0x126a4e(0x305)]!==void 0x0&&_0xcbd4ec!=='cancel'&&(console[_0x126a4e(0x2a7)](_0x126a4e(0x36f)),process[_0x126a4e(0x2de)](0x2)),_0xcbd4ec&&_0xcbd4ec!==_0x126a4e(0x28b)){await mn(_0x4682d1,_0xcbd4ec,_0x37e89d,_0x2156bc[_0x126a4e(0x181)]('\x20')['trim']());return;}_0x4682d1[_0x126a4e(0x174)]['length']>0x1&&(console[_0x126a4e(0x2a7)](_0x126a4e(0x2f1)),process[_0x126a4e(0x2de)](0x2));let {client:_0x1ed111}=await x(_0x4682d1),_0xfd80da=await _0x528f25(_0x1ed111,{'page':_0x4682d1[_0x126a4e(0x32a)],'pageSize':_0x4682d1[_0x126a4e(0x180)],'includeSubAgents':_0x4682d1[_0x126a4e(0x188)]});m(_0x4682d1,_0xfd80da,yn);}async function mn(_0xcc27f0,_0x37d3ad,_0x11c783,_0x58cc73){const _0x8f1ce0=_0x2fdf32;if((_0xcc27f0[_0x8f1ce0(0x32a)]!==void 0x0||_0xcc27f0[_0x8f1ce0(0x180)]!==void 0x0||_0xcc27f0[_0x8f1ce0(0x188)])&&(console[_0x8f1ce0(0x2a7)]('--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`delegate-cli\x20sessions\x20[list]`\x20only.'),process[_0x8f1ce0(0x2de)](0x2)),_0x37d3ad===_0x8f1ce0(0x2eb)){await gn(_0xcc27f0,_0x11c783,_0x58cc73);return;}if(_0x37d3ad===_0x8f1ce0(0x334)){await hn(_0xcc27f0,_0x11c783,_0x58cc73);return;}(!_0x11c783||_0x37d3ad===_0x8f1ce0(0x1c2)!=!!_0x58cc73)&&(console[_0x8f1ce0(0x2a7)](_0x8f1ce0(0x1c8)+_0x37d3ad+_0x8f1ce0(0x2c6)+(_0x37d3ad==='rename'?_0x8f1ce0(0x235):'')),process[_0x8f1ce0(0x2de)](0x2));let {client:_0x3291fd}=await x(_0xcc27f0);try{if(_0x37d3ad===_0x8f1ce0(0x1b4)){let _0x304251=await _0x28dcd7(_0x3291fd,_0x11c783);_0x304251||ge(_0x11c783),m(_0xcc27f0,_0x304251,fn);}else{if(_0x37d3ad===_0x8f1ce0(0x1c2)){let _0x3979d6=await _0x45ab8c(_0x3291fd,_0x11c783,_0x58cc73);m(_0xcc27f0,_0x3979d6,_0x5a8db6=>{const _0x115511=_0x8f1ce0;process['stdout'][_0x115511(0x24e)]('Renamed\x20'+_0x5a8db6['id']+':\x20'+_0x5a8db6[_0x115511(0x16c)]+'\x0a');});}else await _0x1cc755(_0x3291fd,_0x11c783),await _0x2c3279(_0x11c783,_0xcc27f0[_0x8f1ce0(0x2fd)]),m(_0xcc27f0,{'id':_0x11c783,'deleted':!0x0},_0x34bbb6=>{const _0x3c703d=_0x8f1ce0;process[_0x3c703d(0x2f6)]['write'](_0x3c703d(0x2b5)+_0x34bbb6['id']+'.\x0a');});}}catch(_0x2d0fe2){if(!_0x53bcb1(_0x2d0fe2,0x194))throw _0x2d0fe2;ge(_0x11c783);}}function ge(_0x9c09e5){const _0x3b2c12=_0x2fdf32;console['error'](_0x3b2c12(0x282)+_0x9c09e5+_0x3b2c12(0x161)),process[_0x3b2c12(0x2de)](0x1);}function fn(_0x3fb463){const _0x313c90=_0x2fdf32;process[_0x313c90(0x2f6)][_0x313c90(0x24e)]('ID\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x3fb463['id']+'\x0a'),process[_0x313c90(0x2f6)][_0x313c90(0x24e)](_0x313c90(0x325)+_0x3fb463[_0x313c90(0x16c)]+'\x0a'),process[_0x313c90(0x2f6)][_0x313c90(0x24e)](_0x313c90(0x2f5)+_0x3fb463[_0x313c90(0x24d)]+'\x0a'),process[_0x313c90(0x2f6)]['write'](_0x313c90(0x28f)+_0x3fb463[_0x313c90(0x329)]+'\x0a'),_0x3fb463[_0x313c90(0x194)]&&process['stdout'][_0x313c90(0x24e)](_0x313c90(0x26e)+_0x3fb463['delegationId']+'\x0a');}async function gn(_0x117b56,_0x47ff75,_0x153f30){const _0x1dffd3=_0x2fdf32;(!_0x47ff75||_0x153f30||!_0x117b56['turnId'])&&(console[_0x1dffd3(0x2a7)]('Usage:\x20delegate-cli\x20sessions\x20cancel\x20<session-id>\x20--turn\x20<turn-id>'),process[_0x1dffd3(0x2de)](0x2));let {client:_0x41fa7a}=await x(_0x117b56),_0x3cd2eb=await _0x116088(_0x41fa7a,_0x47ff75,_0x117b56[_0x1dffd3(0x305)]);m(_0x117b56,{'sessionId':_0x47ff75,'turnId':_0x117b56[_0x1dffd3(0x305)],'cancelled':_0x3cd2eb},_0xa40e8c=>{const _0x3f1fe4=_0x1dffd3;_0xa40e8c[_0x3f1fe4(0x1ff)]?process[_0x3f1fe4(0x2f6)][_0x3f1fe4(0x24e)](_0x3f1fe4(0x1a0)+_0xa40e8c['turnId']+_0x3f1fe4(0x186)+_0xa40e8c[_0x3f1fe4(0x238)]+'.\x0a'):process[_0x3f1fe4(0x2d6)][_0x3f1fe4(0x24e)](_0x3f1fe4(0x2d5)+_0xa40e8c['turnId']+_0x3f1fe4(0x331)+_0xa40e8c[_0x3f1fe4(0x238)]+'.\x0a');}),_0x3cd2eb||(process[_0x1dffd3(0x162)]=0x1);}async function hn(_0x19a0da,_0x2fb06a,_0x477d23){const _0x30ccf5=_0x2fdf32;(!_0x2fb06a||/\s/['test'](_0x477d23))&&(console[_0x30ccf5(0x2a7)](_0x30ccf5(0x182)),process[_0x30ccf5(0x2de)](0x2));let {client:_0x243f07}=await x(_0x19a0da),_0x1f48fb;try{_0x1f48fb=await _0x28f25f(_0x243f07,_0x2fb06a,{'atMessageId':_0x477d23||void 0x0});}catch(_0x275cf6){if(!_0x53bcb1(_0x275cf6,0x194))throw _0x275cf6;console[_0x30ccf5(0x2a7)](_0x30ccf5(0x282)+_0x2fb06a+_0x30ccf5(0x257)+(_0x477d23?',\x20or\x20holds\x20no\x20message\x20'+_0x477d23:'')+'.'),process['exit'](0x1);}m(_0x19a0da,_0x1f48fb,_0x852bcd=>{const _0x4574bf=_0x30ccf5;process[_0x4574bf(0x2f6)][_0x4574bf(0x24e)](_0x4574bf(0x232)+_0x2fb06a+_0x4574bf(0x289)+_0x852bcd['id']+'.\x0a'),process[_0x4574bf(0x2d6)]['write'](_0x4574bf(0x2aa)+_0x852bcd['id']+_0x4574bf(0x1fb));});}function yn({sessions:_0x158527,page:_0x217bd9,isLastPage:_0x32574c}){const _0x69b634=_0x2fdf32;if(_0x158527[_0x69b634(0x370)]===0x0)process[_0x69b634(0x2d6)][_0x69b634(0x24e)]('No\x20sessions\x20on\x20page\x20'+_0x217bd9+'.\x0a');else{process[_0x69b634(0x2f6)][_0x69b634(0x24e)]('ID'[_0x69b634(0x1de)](0x24)+'\x20\x20'+'UPDATED'[_0x69b634(0x1de)](0x13)+_0x69b634(0x236));for(let _0x1d0f50 of _0x158527){let _0x54f737=_0x1d0f50[_0x69b634(0x30b)][_0x69b634(0x37e)]('T','\x20')['slice'](0x0,0x13),_0x14de9f=_0x1d0f50[_0x69b634(0x228)]?_0x69b634(0x318)+_0x1d0f50[_0x69b634(0x228)]+')':'';process[_0x69b634(0x2f6)][_0x69b634(0x24e)](_0x1d0f50['id'][_0x69b634(0x1de)](0x24)+'\x20\x20'+_0x54f737[_0x69b634(0x1de)](0x13)+'\x20\x20'+_0x1d0f50[_0x69b634(0x16c)]+_0x14de9f+'\x0a');}}_0x32574c||process[_0x69b634(0x2d6)][_0x69b634(0x24e)](_0x69b634(0x187)+(_0x217bd9+0x1)+'\x0a');}async function wn(_0x1e2864){const _0x585e4d=_0x2fdf32;let _0x4fbe9c=await V(),_0x170306=_0x212233(_0x1e2864['env'],_0x4fbe9c,_0x1e2864['backendUrl']);X(_0x1e2864[_0x585e4d(0x211)],_0x1e2864[_0x585e4d(0x220)],_0x170306);let _0x5b6dbc=await _0x5351d5({'auth':_0x4fbe9c,'backendUrl':_0x170306,'interop':_0x1e2864[_0x585e4d(0x2a6)]?_0x585e4d(0x206):_0x585e4d(0x2b6)});m(_0x1e2864,_0x5b6dbc,({checks:_0x388acb})=>{const _0x5970b6=_0x585e4d;for(let _0x198418 of _0x388acb)process[_0x5970b6(0x2f6)][_0x5970b6(0x24e)](kn(_0x198418)+'\x0a');}),_0x5b6dbc['ok']||process['exit'](0x1);}function kn(_0xc8e7c2){const _0x313a22=_0x2fdf32;return{'ok':'✓','failed':'✗','skipped':'-'}[_0xc8e7c2[_0x313a22(0x295)]]+'\x20'+_0xc8e7c2[_0x313a22(0x195)]['padEnd'](0xa)+_0xc8e7c2[_0x313a22(0x1d9)];}var bn=['',_0x2fdf32(0x2b7),_0x2fdf32(0x2f0)];async function vn(_0x4e80dc){const _0x4e4ce1=_0x2fdf32;let _0x9815bc=_0x4e80dc['prompt'];bn['includes'](_0x9815bc)||(console[_0x4e4ce1(0x2a7)](_0x4e4ce1(0x2ea)+_0x4e80dc[_0x4e4ce1(0x354)]+_0x4e4ce1(0x23d)),process[_0x4e4ce1(0x2de)](0x2)),_0x9815bc===''&&_0x4e80dc['days']!==void 0x0&&(console[_0x4e4ce1(0x2a7)](_0x4e4ce1(0x2e2)),process['exit'](0x2)),_0x9815bc!==''&&_0x4e80dc['sessionId']!==void 0x0&&(console[_0x4e4ce1(0x2a7)](_0x4e4ce1(0x1f7)),process[_0x4e4ce1(0x2de)](0x2));let {client:_0x52f7c7}=await x(_0x4e80dc);if(_0x9815bc==='activity'){m(_0x4e80dc,await _0x44810c(_0x52f7c7,{'days':_0x4e80dc[_0x4e4ce1(0x253)]}),An);return;}if(_0x9815bc===_0x4e4ce1(0x2f0)){m(_0x4e80dc,await _0x4d8f27(_0x52f7c7,{'days':_0x4e80dc[_0x4e4ce1(0x253)]}),En);return;}let [_0x1aa3f3,_0x19bcac]=await Promise[_0x4e4ce1(0x22d)]([_0x1d8b9a(_0x52f7c7,{'sessionId':_0x4e80dc[_0x4e4ce1(0x238)]}),_0x4cd706(_0x52f7c7)]);m(_0x4e80dc,{'licensing':_0x1aa3f3,'monthlySpending':_0x19bcac},Sn);}function Sn(_0x684738){const _0x25f6b2=_0x2fdf32;let {licensing:_0x5a0c19,monthlySpending:_0x579be7}=_0x684738,_0x112e20=[_0x5a0c19['limit_enabled']?_0x25f6b2(0x285)+_0x5a0c19[_0x25f6b2(0x160)][_0x25f6b2(0x2bf)](0x1)+_0x25f6b2(0x19c)+(_0x5a0c19['total_quota_pu']??0x0)+'\x20PU\x20used'+(_0x5a0c19[_0x25f6b2(0x337)]>0x0?',\x20'+_0x5a0c19['extra_pool_consumed_pu']+_0x25f6b2(0x274):'')+'\x20(resets\x20'+_0x5a0c19[_0x25f6b2(0x178)]+')':'Licensing:\x20\x20\x20\x20no\x20licensing\x20quota\x20applies',_0x25f6b2(0x1d1)+_0x579be7[_0x25f6b2(0x18f)][_0x25f6b2(0x2bf)](0x2)+_0x25f6b2(0x209)+(_0x579be7['limit_enabled']&&_0x579be7[_0x25f6b2(0x2b8)]!==null?_0x25f6b2(0x340)+_0x579be7['monthly_limit_usd'][_0x25f6b2(0x2bf)](0x2)+_0x25f6b2(0x24b):_0x25f6b2(0x210))];_0x5a0c19[_0x25f6b2(0x1a9)]!==null&&_0x5a0c19[_0x25f6b2(0x1a9)]!==void 0x0&&_0x112e20[_0x25f6b2(0x304)]('Session:\x20\x20\x20\x20\x20\x20'+_0x5a0c19['session_consumed_pu']+_0x25f6b2(0x373)),process[_0x25f6b2(0x2f6)][_0x25f6b2(0x24e)](_0x112e20[_0x25f6b2(0x181)]('\x0a')+'\x0a');}function An(_0x13d8cd){const _0x1673d8=_0x2fdf32;let _0x43a7dc=['Last\x20'+_0x13d8cd['period_days']+_0x1673d8(0x36d)+_0x13d8cd[_0x1673d8(0x273)]+_0x1673d8(0x269)+_0x13d8cd['active_days']+_0x1673d8(0x2b1),_0x1673d8(0x262)+_0x13d8cd[_0x1673d8(0x2bc)][_0x1673d8(0x2bf)](0x2)+'\x20(estimated\x20$'+_0x13d8cd[_0x1673d8(0x1c9)]['toFixed'](0x2)+_0x1673d8(0x1bd)+_0x13d8cd[_0x1673d8(0x300)]+_0x1673d8(0x192),_0x1673d8(0x28c)+_0x13d8cd[_0x1673d8(0x20d)]+'\x20prompt,\x20'+_0x13d8cd[_0x1673d8(0x23a)]+_0x1673d8(0x1b1)];for(let [_0x11f639,_0x24fb79]of Object[_0x1673d8(0x1ab)](_0x13d8cd[_0x1673d8(0x344)]))_0x43a7dc[_0x1673d8(0x304)]('\x20\x20'+_0x11f639+':\x20'+_0x24fb79+_0x1673d8(0x268));process['stdout']['write'](_0x43a7dc['join']('\x0a')+'\x0a');}function En(_0xb2b4bc){const _0x277394=_0x2fdf32;if(_0xb2b4bc[_0x277394(0x2d0)][_0x277394(0x370)]===0x0){process[_0x277394(0x2f6)][_0x277394(0x24e)](_0x277394(0x241)+_0xb2b4bc['period_days']+_0x277394(0x2d7));return;}let _0x1b6bb0=[_0x277394(0x1b2)];for(let _0x215dab of _0xb2b4bc['daily_usage'])_0x1b6bb0[_0x277394(0x304)](_0x215dab[_0x277394(0x34b)]+'\x20\x20'+String(_0x215dab[_0x277394(0x312)])[_0x277394(0x388)](0xb)+'\x20\x20'+String(_0x215dab[_0x277394(0x32d)])[_0x277394(0x388)](0xd)+'\x20\x20'+String(_0x215dab['completion_tokens'])[_0x277394(0x388)](0x11));process[_0x277394(0x2f6)][_0x277394(0x24e)](_0x1b6bb0[_0x277394(0x181)]('\x0a')+'\x0a');}async function xn(_0x18dc40,_0x7f30cc){const _0x1ee858=_0x2fdf32;let _0x313d4f=await In(_0x18dc40[_0x1ee858(0x354)],_0x7f30cc);_0x18dc40[_0x1ee858(0x1e3)]&&(_0x313d4f[_0x1ee858(0x1e3)]=_0x18dc40[_0x1ee858(0x1e3)]);let {client:_0x30fc6b}=await x(_0x18dc40);try{_0x7f30cc===_0x1ee858(0x379)?m(_0x18dc40,await _0x387a70(_0x30fc6b,_0x313d4f,void 0x0),Tn):_0x7f30cc===_0x1ee858(0x365)?m(_0x18dc40,await _0x22f461(_0x30fc6b,_0x313d4f,void 0x0),Dn):m(_0x18dc40,await _0x4ecc80(_0x30fc6b,_0x313d4f,void 0x0),Un);}catch(_0x555c85){if(!_0x4d9d29(_0x555c85))throw _0x555c85;console[_0x1ee858(0x2a7)](_0x555c85[_0x1ee858(0x371)]),process[_0x1ee858(0x2de)](0x1);}}async function In(_0x38b61d,_0x1295b4){const _0x36b02c=_0x2fdf32;let _0x3062c3;try{_0x3062c3=_0x38b61d&&_0x38b61d!=='-'?_0x1d127c[_0x36b02c(0x21f)](_0x3ce0b7[_0x36b02c(0x170)](_0x38b61d),_0x36b02c(0x2fe)):await J(_0x38b61d,process['stdin']);}catch(_0x4b44fc){console[_0x36b02c(0x2a7)](_0x1295b4+_0x36b02c(0x2cf)+_0x4b44fc['message']+').'),process[_0x36b02c(0x2de)](0x2);}return _0x3062c3||(console[_0x36b02c(0x2a7)](_0x1295b4+'\x20needs\x20a\x20JSON\x20request:\x20delegate-cli\x20'+_0x1295b4+'\x20<file.json>,\x20or\x20-\x20to\x20read\x20stdin.'),process['exit'](0x2)),_e(_0x3062c3,_0x1295b4,'the\x20request');}function _e(_0x39b49c,_0x1c8f0d,_0x3a7bc3){const _0x2246bd=_0x2fdf32;let _0x31aecc;try{_0x31aecc=JSON[_0x2246bd(0x16e)](_0x39b49c);}catch(_0x42d013){console[_0x2246bd(0x2a7)](_0x1c8f0d+':\x20'+_0x3a7bc3+_0x2246bd(0x20a)+_0x42d013[_0x2246bd(0x371)]+').'),process[_0x2246bd(0x2de)](0x2);}return(typeof _0x31aecc!='object'||_0x31aecc===null||Array[_0x2246bd(0x1bb)](_0x31aecc))&&(console[_0x2246bd(0x2a7)](_0x1c8f0d+':\x20'+_0x3a7bc3+_0x2246bd(0x2ae)),process[_0x2246bd(0x2de)](0x2)),_0x31aecc;}function Re(_0x348ede,_0x39c969){const _0x118199=_0x2fdf32;let _0x1b7ee5;try{_0x1b7ee5=_0x1d127c['readFileSync'](_0x3ce0b7[_0x118199(0x170)](_0x348ede),_0x118199(0x2fe));}catch(_0x56a825){console[_0x118199(0x2a7)](_0x39c969+_0x118199(0x34f)+_0x56a825[_0x118199(0x371)]+').'),process[_0x118199(0x2de)](0x2);}return _e(_0x1b7ee5,_0x39c969,_0x118199(0x326));}async function $n(_0x183bff){const _0x549581=_0x2fdf32;_0x183bff[_0x549581(0x213)]===void 0x0&&(console[_0x549581(0x2a7)](_0x549581(0x317)),process[_0x549581(0x2de)](0x2));let _0x52978c=Re(_0x183bff[_0x549581(0x213)],_0x549581(0x1d5)),_0x475fb3=(await J(_0x183bff['prompt'],process[_0x549581(0x2b0)]))[_0x549581(0x323)]();_0x475fb3||(console[_0x549581(0x2a7)]('complete\x20needs\x20a\x20prompt:\x20delegate-cli\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22,\x20or\x20-\x20to\x20read\x20stdin.'),process[_0x549581(0x2de)](0x2));let {client:_0x496b59}=await x(_0x183bff);try{let _0x48d6e0=await _0x7b6a96(_0x496b59,{'prompt':_0x475fb3,'jsonSchema':_0x52978c,'model':_0x183bff[_0x549581(0x1e3)]||process.env.MODEL||_0x4cf21a,..._0x183bff['sessionId']!==void 0x0&&{'sessionId':_0x183bff['sessionId']}},void 0x0);m(_0x183bff,_0x48d6e0,_0x387df6=>{const _0x2b9544=_0x549581;process[_0x2b9544(0x2f6)]['write'](JSON[_0x2b9544(0x1f0)](_0x387df6[_0x2b9544(0x32c)],null,0x2)+'\x0a');});}catch(_0x5079cf){if(!_0x5b2c80(_0x5079cf))throw _0x5079cf;console[_0x549581(0x2a7)](_0x5079cf[_0x549581(0x371)]),process[_0x549581(0x2de)](0x1);}}function Z(_0x784661){const _0x380eb5=_0x2fdf32;process['stdout']['write']('Model\x20'+_0x784661[_0x380eb5(0x1e3)]+'\x20('+_0x784661['model_version']+_0x380eb5(0x18b)+_0x784661[_0x380eb5(0x301)][_0x380eb5(0x1c7)]+_0x380eb5(0x2c9));}function Tn(_0x54ab38){const _0x4ef82f=_0x2fdf32;Z(_0x54ab38);for(let _0x40c097 of Object[_0x4ef82f(0x1cc)](_0x54ab38[_0x4ef82f(0x29e)])){let _0x280d11=_0x54ab38[_0x4ef82f(0x29e)][_0x40c097],_0x3ba919=_0x280d11[_0x4ef82f(0x360)]===_0x4ef82f(0x1c0)?_0x4ef82f(0x29c)+_0x280d11['probability'][_0x4ef82f(0x2bf)](0x2):_0x280d11[_0x4ef82f(0x360)]===_0x4ef82f(0x350)?_0x4ef82f(0x270)+_0x280d11[_0x4ef82f(0x350)]+_0x4ef82f(0x351)+_0x280d11[_0x4ef82f(0x1ad)][_0x4ef82f(0x2bf)](0x2)+')':_0x4ef82f(0x32f)+_0x280d11[_0x4ef82f(0x234)][_0x4ef82f(0x2bf)](0x2)+_0x4ef82f(0x351)+_0x280d11[_0x4ef82f(0x1ad)][_0x4ef82f(0x2bf)](0x2)+')';process[_0x4ef82f(0x2f6)][_0x4ef82f(0x24e)]('\x20\x20'+_0x40c097+':\x20'+_0x3ba919+'\x0a');}}function Dn(_0x13c3c7){const _0x493d75=_0x2fdf32;Z(_0x13c3c7),_0x13c3c7['results'][_0x493d75(0x31d)]((_0x1214c6,_0x40d169)=>{const _0xc71f5a=_0x493d75;process['stdout'][_0xc71f5a(0x24e)]('\x20\x20'+(_0x40d169+0x1)+'.\x20'+_0x1214c6['id']+'\x20\x20'+_0x1214c6['score'][_0xc71f5a(0x2bf)](0x3)+'\x20\x20(input\x20#'+_0x1214c6['index']+')\x0a');});}function Un(_0xcbeaec){const _0x5c043d=_0x2fdf32;Z(_0xcbeaec),process[_0x5c043d(0x2f6)][_0x5c043d(0x24e)]('Rubric\x20'+_0xcbeaec[_0x5c043d(0x355)]+'\x0a');for(let _0x4c717d of _0xcbeaec[_0x5c043d(0x294)])process[_0x5c043d(0x2f6)][_0x5c043d(0x24e)]('\x20\x20'+_0x4c717d['id']+':\x20'+_0x4c717d[_0x5c043d(0x1e6)]+_0x5c043d(0x351)+_0x4c717d['confidence'][_0x5c043d(0x2bf)](0x2)+')\x0a');}async function Nn(_0x4c202e){const _0x8175b5=_0x2fdf32;let _0x350b4c=_0x4c202e[_0x8175b5(0x354)][_0x8175b5(0x323)]();_0x350b4c||(console[_0x8175b5(0x2a7)](_0x8175b5(0x16a)),process[_0x8175b5(0x2de)](0x2));let {client:_0x93420c}=await x(_0x4c202e);try{let _0x189cba=_0x350b4c==='-'?{'data':await Rn(process[_0x8175b5(0x2b0)])}:_0x350b4c;m(_0x4c202e,await _0x31525b(_0x93420c,_0x189cba,void 0x0),_0x327cb4=>{const _0x59cbce=_0x8175b5;process[_0x59cbce(0x2f6)][_0x59cbce(0x24e)](_0x327cb4[_0x59cbce(0x37a)]+'\x0a');});}catch(_0x4c94e1){if(_0x10a1be(_0x4c94e1)&&(console[_0x8175b5(0x2a7)](_0x4c94e1[_0x8175b5(0x371)]),process[_0x8175b5(0x2de)](_0x4c94e1[_0x8175b5(0x295)]===void 0x0?0x2:0x1)),typeof _0x4c94e1?.['code']!=_0x8175b5(0x23e))throw _0x4c94e1;console['error'](_0x8175b5(0x2e7)+_0x350b4c+'\x20('+_0x4c94e1['message']+').'),process['exit'](0x2);}}async function Pn(_0xd231fc){const _0x53a009=_0x2fdf32;let [_0x537a16,_0x5a2f21,..._0x1291d4]=_0xd231fc[_0x53a009(0x174)];(!_0x537a16||_0x1291d4['length']>0x0||!_0xd231fc['projectId'])&&(console[_0x53a009(0x2a7)](_0x53a009(0x29b)),process[_0x53a009(0x2de)](0x2));let _0x265ee1;try{_0x265ee1=await _0xde1b32({'projectId':_0xd231fc[_0x53a009(0x2c2)],'type':_0x537a16,..._0x5a2f21?{'documentId':_0x5a2f21}:{},..._0xd231fc[_0x53a009(0x2fd)]?{'workingDirectory':_0xd231fc[_0x53a009(0x2fd)]}:{}});}catch(_0x2faa68){console[_0x53a009(0x2a7)](_0x53a009(0x176)+(_0x2faa68 instanceof Error?_0x2faa68['message']:String(_0x2faa68))),process[_0x53a009(0x2de)](0x1);}m(_0xd231fc,_0x265ee1,_0x1bcce3=>{const _0x28ae6d=_0x53a009;process[_0x28ae6d(0x2f6)][_0x28ae6d(0x24e)](_0x1bcce3['message']+'\x0a');});}var he=_0x2fdf32(0x361),ye=_0x2fdf32(0x341);async function _n(_0x5bb8ee){const _0x3bf28a=_0x2fdf32;let [_0x1aade7='',..._0x2c14ed]=_0x5bb8ee[_0x3bf28a(0x174)];if(_0x1aade7===_0x3bf28a(0x26a)){(_0x2c14ed['length']>0x0||!_0x5bb8ee['projectId']||!_0x5bb8ee[_0x3bf28a(0x1a4)]||!_0x5bb8ee[_0x3bf28a(0x24f)])&&(console[_0x3bf28a(0x2a7)](he),process[_0x3bf28a(0x2de)](0x2));let _0x10313d=await we('share',()=>_0x4e3378({'projectId':_0x5bb8ee[_0x3bf28a(0x2c2)],'remote':_0x5bb8ee[_0x3bf28a(0x1a4)],'mapName':_0x5bb8ee['mapName'],..._0x5bb8ee[_0x3bf28a(0x2fd)]?{'workingDirectory':_0x5bb8ee[_0x3bf28a(0x2fd)]}:{}}));m(_0x5bb8ee,_0x10313d,_0x4e3b2c=>{const _0x53875f=_0x3bf28a;process[_0x53875f(0x2f6)][_0x53875f(0x24e)](_0x53875f(0x293)+_0x5bb8ee[_0x53875f(0x2c2)]+_0x53875f(0x2a3)+_0x4e3b2c[_0x53875f(0x1a4)]+'\x20as\x20\x22'+_0x4e3b2c[_0x53875f(0x24f)]+_0x53875f(0x37c));});return;}if(_0x1aade7===_0x3bf28a(0x17a)){let _0x1a702a=_0x2c14ed[_0x3bf28a(0x181)]('\x20')[_0x3bf28a(0x323)]();(!_0x1a702a||!_0x5bb8ee[_0x3bf28a(0x2c2)])&&(console['error'](ye),process[_0x3bf28a(0x2de)](0x2));let _0x2089e9=await we(_0x3bf28a(0x17a),()=>_0x229d55({'projectId':_0x5bb8ee[_0x3bf28a(0x2c2)],'message':_0x1a702a,..._0x5bb8ee[_0x3bf28a(0x2fd)]?{'workingDirectory':_0x5bb8ee[_0x3bf28a(0x2fd)]}:{}}));m(_0x5bb8ee,_0x2089e9,_0x3be63f=>{const _0x30c3a1=_0x3bf28a;process[_0x30c3a1(0x2f6)][_0x30c3a1(0x24e)](_0x30c3a1(0x1ba)+_0x3be63f[_0x30c3a1(0x1df)]+_0x30c3a1(0x22c)+_0x5bb8ee[_0x30c3a1(0x2c2)]+':\x20'+_0x3be63f[_0x30c3a1(0x371)]+'\x0a');});return;}console[_0x3bf28a(0x2a7)](he+'\x0a'+ye),process[_0x3bf28a(0x2de)](0x2);}async function we(_0x160757,_0x21aae7){const _0x38c7b5=_0x2fdf32;try{return await _0x21aae7();}catch(_0x3929e7){let _0x4282d2=_0x3929e7?.[_0x38c7b5(0x36b)],_0x44eff6=Array['isArray'](_0x4282d2)&&_0x4282d2[_0x38c7b5(0x370)]>0x0?'\x20('+_0x4282d2['join'](',\x20')+')':'';console['error']('maps\x20'+_0x160757+':\x20'+(_0x3929e7 instanceof Error?_0x3929e7[_0x38c7b5(0x371)]:String(_0x3929e7))+_0x44eff6),process['exit'](0x1);}}async function Rn(_0x3cf0ca){const _0x55ef60=_0x2fdf32;let _0x3386c9=[];for await(let _0x4c3adc of _0x3cf0ca)_0x3386c9[_0x55ef60(0x304)](Buffer[_0x55ef60(0x332)](_0x4c3adc));return Buffer[_0x55ef60(0x27b)](_0x3386c9);}var ke=[_0x2fdf32(0x28b),_0x2fdf32(0x223),_0x2fdf32(0x1b4),_0x2fdf32(0x27a),'claim',_0x2fdf32(0x1d5),_0x2fdf32(0x249),'dismiss','cancel',_0x2fdf32(0x367)],be={'list':_0x2fdf32(0x35d),'pending':_0x2fdf32(0x2dc),'show':_0x2fdf32(0x222),'create':_0x2fdf32(0x23c),'claim':_0x2fdf32(0x36e),'complete':_0x2fdf32(0x205),'accept':_0x2fdf32(0x36c),'dismiss':_0x2fdf32(0x1ca),'cancel':_0x2fdf32(0x1e5),'delete':_0x2fdf32(0x1f1)};async function On(_0x1f8aed){const _0x380949=_0x2fdf32;let [_0x1e8dee='',_0x52e6f8='',..._0x28f172]=_0x1f8aed[_0x380949(0x174)];ke[_0x380949(0x322)](_0x1e8dee)||(console[_0x380949(0x2a7)]((_0x1e8dee?_0x380949(0x259)+_0x1e8dee+'.\x20':'')+_0x380949(0x2e9)+ke[_0x380949(0x181)](_0x380949(0x1b9))+'.'),process[_0x380949(0x2de)](0x2));let _0x448c6f=_0x1e8dee;_0x448c6f!==_0x380949(0x27a)&&(_0x1f8aed[_0x380949(0x21e)]!==void 0x0||_0x1f8aed['contextSummary']!==void 0x0||_0x1f8aed[_0x380949(0x238)]!==void 0x0)&&(console[_0x380949(0x2a7)]('--to,\x20--summary\x20and\x20--session\x20apply\x20to\x20`delegate-cli\x20delegations\x20create`\x20only.'),process[_0x380949(0x2de)](0x2));let _0x431fa6=(_0x448c6f===_0x380949(0x27a)?_0x1f8aed[_0x380949(0x174)][_0x380949(0x2b4)](0x1):_0x28f172)[_0x380949(0x181)]('\x20')['trim'](),_0x28011e=_0x448c6f===_0x380949(0x27a)||_0x448c6f===_0x380949(0x1d5);(_0x448c6f!=='create'&&!_0x52e6f8||(_0x28011e?!_0x431fa6:_0x431fa6)||_0x448c6f===_0x380949(0x27a)&&!_0x1f8aed[_0x380949(0x238)])&&(console[_0x380949(0x2a7)](_0x380949(0x1a5)+be[_0x448c6f]),process[_0x380949(0x2de)](0x2));let _0x2a8ec8=_0x28011e&&_0x431fa6==='-'?(await J('-',process[_0x380949(0x2b0)]))[_0x380949(0x323)]():_0x431fa6;_0x28011e&&!_0x2a8ec8&&(console['error'](_0x380949(0x1a5)+be[_0x448c6f]+'\x20(stdin\x20was\x20empty)'),process['exit'](0x2));let {client:_0x2e786c}=await x(_0x1f8aed);try{await Ln(_0x1f8aed,_0x2e786c,_0x448c6f,_0x52e6f8,_0x2a8ec8);}catch(_0x17d7f8){if(!_0x53517c(_0x17d7f8))throw _0x17d7f8;console[_0x380949(0x2a7)](_0x17d7f8[_0x380949(0x371)]),process[_0x380949(0x2de)](0x1);}}async function Ln(_0x1b5703,_0x291378,_0x385660,_0x220fd9,_0x47365c){const _0x24e24f=_0x2fdf32;switch(_0x385660){case _0x24e24f(0x28b):m(_0x1b5703,await _0x208e16(_0x291378,_0x220fd9),Cn);return;case _0x24e24f(0x223):m(_0x1b5703,await _0x577db9(_0x291378,_0x220fd9),_0x605318=>{const _0x519b8a=_0x24e24f;_0x605318[_0x519b8a(0x1ea)]&&process[_0x519b8a(0x2f6)][_0x519b8a(0x24e)](_0x519b8a(0x252)+_0x605318[_0x519b8a(0x1ea)]['id']+'\x20('+_0x605318['delegation'][_0x519b8a(0x295)]+').\x0a'),_0x605318[_0x519b8a(0x2dd)][_0x519b8a(0x370)]===0x0&&process[_0x519b8a(0x2d6)][_0x519b8a(0x24e)](_0x519b8a(0x2af));for(let _0x2c3455 of _0x605318[_0x519b8a(0x2dd)])process[_0x519b8a(0x2f6)][_0x519b8a(0x24e)]('\x0a'+_0x2c3455['id']+_0x519b8a(0x17f)+(_0x2c3455['assignedUserEmail']??'a\x20colleague')+'\x20\x20'+(_0x2c3455['task']??'')+'\x0a'+(_0x2c3455[_0x519b8a(0x1bf)]?.[_0x519b8a(0x35a)]??'')+'\x0a');_0x605318[_0x519b8a(0x2dd)][_0x519b8a(0x370)]>0x0&&process[_0x519b8a(0x2d6)]['write'](_0x519b8a(0x387));});return;case _0x24e24f(0x1b4):m(_0x1b5703,await _0x203af4(_0x291378,_0x220fd9),ve);return;case _0x24e24f(0x27a):{let _0x37a551=await _0x174821(_0x291378,{'sessionId':_0x1b5703['sessionId'],'task':_0x47365c,..._0x1b5703[_0x24e24f(0x280)]!==void 0x0&&{'contextSummary':_0x1b5703[_0x24e24f(0x280)]},..._0x1b5703[_0x24e24f(0x21e)]!==void 0x0&&{'recipient':_0x1b5703[_0x24e24f(0x21e)]}});m(_0x1b5703,_0x37a551,_0x4de3be=>{const _0x53db22=_0x24e24f;_0x4de3be[_0x53db22(0x2ed)]?process['stdout']['write'](_0x53db22(0x184)+_0x4de3be[_0x53db22(0x194)]+_0x53db22(0x2a3)+_0x4de3be[_0x53db22(0x2ed)]['displayName']+'\x20<'+_0x4de3be[_0x53db22(0x2ed)][_0x53db22(0x37b)]+_0x53db22(0x20f)):process[_0x53db22(0x2f6)][_0x53db22(0x24e)](_0x53db22(0x378)+_0x4de3be[_0x53db22(0x194)]+_0x53db22(0x265)+_0x4de3be['deepLink']+'\x0a');});return;}case _0x24e24f(0x366):{let _0x51ed8b=await _0x5b131e(_0x291378,_0x220fd9);m(_0x1b5703,_0x51ed8b,_0x71c0d1=>{const _0x1dc96b=_0x24e24f;ve(_0x71c0d1),process[_0x1dc96b(0x2f6)]['write'](_0x1dc96b(0x2f8)+_0x71c0d1[_0x1dc96b(0x238)]+'\x0a'),process[_0x1dc96b(0x2d6)][_0x1dc96b(0x24e)](_0x1dc96b(0x1c3)+_0x71c0d1['sessionId']+'\x20\x22<prompt>\x22\x0aAnswer\x20with:\x20delegate-cli\x20delegations\x20complete\x20'+_0x71c0d1['delegationId']+_0x1dc96b(0x33a));});return;}case _0x24e24f(0x1d5):{let {alreadyCompleted:_0x29560d}=await _0x43cd65(_0x291378,_0x220fd9,{'content':_0x47365c});m(_0x1b5703,{'delegationId':_0x220fd9,'alreadyCompleted':_0x29560d},_0x39cc92=>{const _0x2c1749=_0x24e24f;process[_0x2c1749(0x2f6)][_0x2c1749(0x24e)]((_0x39cc92['alreadyCompleted']?_0x2c1749(0x333):_0x2c1749(0x25a))+_0x2c1749(0x264)+_0x39cc92[_0x2c1749(0x194)]+'.\x0a');});return;}case _0x24e24f(0x249):{let _0x4342ad=await _0x3b9f2e(_0x291378,_0x220fd9);m(_0x1b5703,{'delegationId':_0x220fd9,..._0x4342ad},_0x5d9a03=>{const _0x4e6cdf=_0x24e24f;process['stdout'][_0x4e6cdf(0x24e)]((_0x5d9a03[_0x4e6cdf(0x2a1)]?'Already\x20accepted':'Accepted')+_0x4e6cdf(0x264)+_0x5d9a03[_0x4e6cdf(0x194)]+'.\x0a');});return;}default:{let _0x354371={'dismiss':_0xa390f1,'cancel':_0x36c438,'delete':_0x4364ff}[_0x385660];await _0x354371(_0x291378,_0x220fd9);let _0x5e13d2={'dismiss':_0x24e24f(0x2ee),'cancel':_0x24e24f(0x1ff),'delete':_0x24e24f(0x36a)}[_0x385660];m(_0x1b5703,{'delegationId':_0x220fd9,[_0x5e13d2]:!0x0},()=>{const _0x7cf915=_0x24e24f;process[_0x7cf915(0x2f6)][_0x7cf915(0x24e)](''+_0x5e13d2[0x0][_0x7cf915(0x29f)]()+_0x5e13d2[_0x7cf915(0x2b4)](0x1)+_0x7cf915(0x264)+_0x220fd9+'.\x0a');});}}}function Cn(_0x4a108c){const _0x16db37=_0x2fdf32;if(_0x4a108c['length']===0x0){process[_0x16db37(0x2d6)][_0x16db37(0x24e)](_0x16db37(0x2fc));return;}process[_0x16db37(0x2f6)][_0x16db37(0x24e)]('ID'[_0x16db37(0x1de)](0x24)+'\x20\x20'+_0x16db37(0x22e)[_0x16db37(0x1de)](0x9)+'\x20\x20'+_0x16db37(0x1ee)[_0x16db37(0x1de)](0x18)+_0x16db37(0x33b));for(let _0xf93439 of _0x4a108c)process[_0x16db37(0x2f6)][_0x16db37(0x24e)](_0xf93439['id']['padEnd'](0x24)+'\x20\x20'+_0xf93439['status']['padEnd'](0x9)+'\x20\x20'+(_0xf93439[_0x16db37(0x2bd)]??'-')[_0x16db37(0x1de)](0x18)+'\x20\x20'+(_0xf93439[_0x16db37(0x327)]??'')+'\x0a');}function ve(_0x2bbb23){const _0x59ed6a=_0x2fdf32;process[_0x59ed6a(0x2f6)][_0x59ed6a(0x24e)](_0x59ed6a(0x276)+(_0x2bbb23['sourceUserEmail']??'-')+'\x0a'),_0x2bbb23[_0x59ed6a(0x260)]&&process['stdout']['write'](_0x59ed6a(0x2f8)+_0x2bbb23[_0x59ed6a(0x260)]+'\x0a'),process['stdout'][_0x59ed6a(0x24e)](_0x59ed6a(0x324)+(_0x2bbb23['task']??'-')+'\x0a'),_0x2bbb23[_0x59ed6a(0x280)]&&process[_0x59ed6a(0x2f6)][_0x59ed6a(0x24e)]('\x0a'+_0x2bbb23[_0x59ed6a(0x280)]+'\x0a\x0a');}async function jn(_0x2b6f9b){const _0x3b92fd=_0x2fdf32;_0x2b6f9b[_0x3b92fd(0x354)][_0x3b92fd(0x323)]()||(console[_0x3b92fd(0x2a7)](_0x3b92fd(0x319)),process[_0x3b92fd(0x2de)](0x2));let {client:_0x48f182}=await x(_0x2b6f9b),_0x167349;try{_0x167349=await _0x277d0f(_0x48f182,_0x2b6f9b['prompt']);}catch(_0x1316b){if(!_0x53517c(_0x1316b))throw _0x1316b;console[_0x3b92fd(0x2a7)](_0x1316b[_0x3b92fd(0x371)]),process[_0x3b92fd(0x2de)](0x1);}m(_0x2b6f9b,_0x167349,_0x518a8d=>{const _0x3fcad5=_0x3b92fd;_0x518a8d[_0x3fcad5(0x370)]===0x0&&process[_0x3fcad5(0x2d6)][_0x3fcad5(0x24e)](_0x3fcad5(0x251)+_0x2b6f9b[_0x3fcad5(0x354)][_0x3fcad5(0x323)]()+_0x3fcad5(0x37c));for(let _0x559da5 of _0x518a8d)process[_0x3fcad5(0x2f6)][_0x3fcad5(0x24e)](_0x559da5['email'][_0x3fcad5(0x1de)](0x20)+'\x20\x20'+_0x559da5[_0x3fcad5(0x34a)]+'\x0a');});}async function Mn(_0x5249a5){const _0x2394d8=_0x2fdf32;_0x5249a5['env']==='localhost'&&(console[_0x2394d8(0x2a7)](_0x2394d8(0x21c)),process[_0x2394d8(0x2de)](0x2));let _0x31a9df=G(_0x316b95()),_0x32c63b=_0x5249a5[_0x2394d8(0x357)];if(_0x5249a5[_0x2394d8(0x211)]){let _0x137a1a=_0x5249a5[_0x2394d8(0x211)];await _0x2d7742({'env':_0x137a1a,'tenant':_0x5249a5[_0x2394d8(0x2d8)]??q(_0x31a9df,_0x18fdff[_0x137a1a]),'skipEnvCheck':_0x32c63b});return;}let _0x3d87b2=_0x5249a5[_0x2394d8(0x283)]??Pe();if(_0x3d87b2){await _0x2d7742({'baseUrl':_0x3d87b2,'tenant':_0x5249a5[_0x2394d8(0x2d8)]??q(_0x31a9df,_0x3d87b2),'skipEnvCheck':_0x32c63b});return;}if(_0x31a9df?.['baseUrl']){await _0x2d7742({'baseUrl':_0x31a9df[_0x2394d8(0x374)],'tenant':_0x5249a5['tenant']??_0x31a9df[_0x2394d8(0x2b3)],'skipEnvCheck':_0x32c63b});return;}console[_0x2394d8(0x2a7)](_0x2394d8(0x1f5)),process[_0x2394d8(0x2de)](0x2);}function _0x541d(){const _0x4c3d20=['\x20—\x20sign\x20out\x20in\x20the\x20Delegate\x20app\x20to\x20clear\x20that.','delegations\x20pending\x20<session-id>','pendingResults','exit','Deployment:\x20\x20\x20','--replay-user-messages\x20needs\x20--input-format\x20stream-json.','done','--days\x20applies\x20to\x20`delegate-cli\x20usage\x20activity|daily`;\x20the\x20summary\x20covers\x20the\x20current\x20month.','--to\x20and\x20--summary\x20apply\x20to\x20`delegate-cli\x20delegations\x20create`\x20only.','--url\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Other\x20commands\x20follow\x20the\x20saved\x20login,\x20or\x20--backend\x20<url>.','--remote','uuid','transcribe:\x20cannot\x20read\x20','once','Use:\x20delegate-cli\x20delegations\x20','Unknown\x20usage\x20view:\x20','cancel','origin','assignedUser','dismissed','stop','daily','Usage:\x20delegate-cli\x20sessions\x20[list]\x20[--page\x20N]\x20[--limit\x20N]\x20[--include-subagents]','resume','SIGINT','finish','Owner\x20\x20\x20\x20\x20\x20\x20\x20\x20','stdout','--page','Session\x20\x20\x20\x20\x20\x20\x20','line','bind','xhigh','No\x20delegations.\x0a','workingDirectory','utf-8','--no-computer-use','total_token_units','usage','Steering\x20input\x20stopped:\x20','8xwndwo','push','turnId','attachments',']\x20(Enter\x20for\x20','Pass\x20either\x20--env\x20(a\x20named\x20cloud)\x20or\x20--url\x20(any\x20other\x20deployment),\x20not\x20both.','structuredError','orgLogicalName','updatedAt','effort','byoWarning','input','hide','Enter\x20numbers\x20from\x201\x20to\x20','Tenant:\x20\x20\x20\x20\x20\x20\x20','token_units','map','settle',';\x20the\x20saved\x20login\x20still\x20uses\x20','noComputerUse','complete\x20needs\x20--json-schema\x20<file>:\x20delegate-cli\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22.','\x20\x20(sub-agent\x20of\x20','Usage:\x20delegate-cli\x20org-users\x20<name\x20or\x20email\x20prefix>','now','login','destroy','forEach','25SUPJxo','\x20(Enter\x20to\x20skip):\x20','\x20(in\x20','tool_call','includes','trim','Task\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Title\x20\x20\x20\x20\x20\x20\x20\x20\x20','the\x20JSON\x20schema','task','max','organizationId','page','data','structured','prompt_tokens','[saved\x20login]\x20Backend\x20URL:\x20','score\x20','initialize','\x20in\x20progress\x20on\x20session\x20','from','Already\x20answered','fork','The\x20steering\x20message\x20was\x20not\x20answered:\x20its\x20turn\x20did\x20not\x20run\x20or\x20added\x20no\x20reply.','staging','extra_pool_consumed_pu','a\x20Map\x20name','delegate-cli','\x20\x22<answer>\x22\x0a','\x20\x20TASK\x0a','a\x20turn\x20id','18059630ruNppf','bundledSkillsPath','--interop','\x20of\x20a\x20$','Usage:\x20delegate-cli\x20maps\x20save-version\x20MESSAGE\x20--project\x20ID\x20[--working-dir\x20PATH]','startsWith','then','models_breakdown','Input\x20closed\x20before\x20the\x20question\x20was\x20answered.','a\x20number','waitForIdle','vertical','label','displayName','date','host','A\x20steering\x20message\x20arrived\x20after\x20the\x20turn\x20ended:\x20not\x20read.\x0a','--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`delegate-cli\x20sessions`\x20only.',':\x20cannot\x20read\x20the\x20JSON\x20schema\x20(','choice','\x20(confidence\x20','a\x20file://\x20URL\x20or\x20an\x20absolute\x20path','inputFormat','prompt','rubric_version','\x20applies\x20to\x20prompts\x20and\x20to\x20these\x20commands\x20only:\x20','skipEnvCheck','subcommand','thinking','content','removeEventListener','--input-format','delegations\x20list\x20<backend-project-id>','intro','--no-memory','type','Usage:\x20delegate-cli\x20maps\x20share\x20--project\x20ID\x20--remote\x20URL|PATH\x20--map-name\x20NAME\x20[--working-dir\x20PATH]','--verbose','Removed\x20','sendMessage','rerank','claim','delete','\x20min)','every','deleted','paths','delegations\x20accept\x20<delegation-id>','\x20days:\x20','delegations\x20claim\x20<delegation-id|delegate://delegation/…>','--turn\x20applies\x20to\x20`delegate-cli\x20sessions\x20cancel`\x20only.','length','message','interopPath','\x20PU','baseUrl','buckets','6921ThZpFr','getTurnUsageHistory','Created\x20delegation\x20','evaluate','text','email','\x22.\x0a','getSessionId','replace','\x20\x20\x20\x20','\x20(Delegate\x20desktop\x20app\x20fallback)','):\x20','Base\x20URL:\x20\x20\x20\x20\x20','lockReason','turn_start','Tenant:\x20','UiPath\x20Cloud','\x0aAccept\x20one\x20with:\x20delegate-cli\x20delegations\x20accept\x20<id>\x0a','padStart','pct_used','\x20not\x20found.','exitCode',':\x20ignored\x0a','--to','--json-schema',',\x20not\x20\x22user\x22','--url','Unknown\x20sessions\x20action:\x20','Could\x20not\x20check\x20BYO\x20model\x20warnings:\x20','transcribe\x20needs\x20audio:\x20delegate-cli\x20transcribe\x20<file>,\x20or\x20-\x20to\x20read\x20stdin.','isError','title','Organization:\x20','parse','Tenant\x20not\x20switched:\x20could\x20not\x20write\x20','resolve','642111MtvPJh','--days','response','operands','toString','export:\x20','--preload-skill','period_end','self-hosted\x20(Automation\x20Suite\x20/\x20Dedicated)','save-version','\x20(optional)','a\x20project\x20id','from\x20','replayUserMessages','\x20\x20from\x20','limit','join','Usage:\x20delegate-cli\x20sessions\x20fork\x20<id>\x20[<message-id>]','\x27\x20is\x20empty.','Delegated\x20','unknown\x20slug','\x20of\x20session\x20','More:\x20delegate-cli\x20sessions\x20--page\x20','includeSubAgents','a\x20file\x20path','--attach\x20applies\x20to\x20prompts\x20only.','),\x20','.aria','\x20(resume\x20with\x20--session\x20','stack','monthly_spend_usd','existsSync','\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).','\x20token\x20units)','medium','delegationId','name','Structured\x20output\x20failed:\x20','findLast','No\x20CLI\x20login\x20found\x20—\x20nothing\x20to\x20remove.','high','fields','--include-subagents','%\x20of\x20','Number','userinput','return','Cancel\x20requested\x20for\x20turn\x20','--cartographer','refused','🔧\x20','remote','Usage:\x20delegate-cli\x20','an\x20input\x20line\x20has\x20type\x20','taskAutomation','catch','session_consumed_pu','next','entries','Switch\x20with:\x20delegate-cli\x20tenant\x20<name>\x0a','confidence','export','restore','unit','\x20completion','Date\x20\x20\x20\x20\x20\x20\x20\x20Token\x20units\x20\x20Prompt\x20tokens\x20\x20Completion\x20tokens','--model','show','rejection','--input-format\x20stream-json\x20needs\x20--output-format\x20stream-json:\x20the\x20steering\x20messages\x20are\x20answered\x20on\x20stdout.','\x20\x20\x20\x20BYO\x20warning:\x20','Bearer\x20','\x20|\x20','Saved\x20version\x20','isArray','a\x20skill\x20name','\x20from\x20','signal','result','probability','questions','rename','Work\x20on\x20it\x20with:\x20delegate-cli\x20--session\x20','runnerUrl','--tenant\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Switch\x20tenants\x20with:\x20delegate-cli\x20tenant\x20<name>','cartographer','total_tokens','Usage:\x20delegate-cli\x20sessions\x20','estimated_cost_usd','delegations\x20dismiss\x20<delegation-id>','--vertical','keys','238857YldxkZ','--tenant\x20requires\x20a\x20tenant\x20name.','--backend','auth','Spending:\x20\x20\x20\x20\x20$','\x20vertical,\x20so\x20it\x20cannot\x20run\x20as\x20--vertical\x20','--keep-alive','help','complete','--map-name','models','setPrompt','detail','tokenExpiresAt','delegations','1098078GPflCP','locked','padEnd','version','a\x20format\x20(','header','accessToken','model','whoami','delegations\x20cancel\x20<delegation-id>','verdict','maps','optional','Token:\x20\x20\x20\x20\x20\x20\x20\x20expires\x20','delegation',')\x20—\x20saved\x20to\x20',':\x20bucket\x20number\x20(Enter\x20to\x20leave\x20out):\x20','\x20\x20\x20\x20Not\x20available\x20on\x20this\x20plan','ASSIGNEE','round','stringify','delegations\x20delete\x20<delegation-id>','onEvent','noSecurity','No\x20CLI\x20login\x20to\x20switch:\x20the\x20CLI\x20is\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20','First\x20login\x20requires\x20--env\x20or\x20--url.\x20Usage:\x20delegate-cli\x20login\x20--env\x20<alpha|staging|production>,\x20or\x20delegate-cli\x20login\x20--url\x20https://automationsuite.contoso.com','Enter\x20sends\x20a\x20message.\x20/exit\x20or\x20EOF\x20exits;\x20Ctrl+C\x20stops\x20and\x20exits.\x0a','--session\x20applies\x20to\x20the\x20`delegate-cli\x20usage`\x20summary\x20only.','expiresAt','transcribe','AUTH_TOKEN_FILE\x20\x27','\x20\x22<prompt>\x22\x0a','preloadSkills','Enter\x20one\x20number\x20from\x201\x20to\x20','keepAlive','cancelled','cleanup','user','--skills-path','alpha',']\x20Backend\x20URL:\x20','delegations\x20complete\x20<delegation-id>\x20\x22<answer>\x22|-','skip','--tenant','--print','\x20this\x20month','\x20is\x20not\x20valid\x20JSON\x20(','--remote\x20and\x20--map-name\x20apply\x20to\x20`delegate-cli\x20maps\x20share`\x20only.','widget','total_prompt_tokens','low','>.\x0a','\x20(no\x20cap\x20enforced)','env','check','jsonSchemaPath','\x20requires\x20','getSessionMessages','file','--headless','kind','a\x20vertical\x20id','\x0aStopping…\x20(Ctrl+C\x20again\x20to\x20force\x20exit)\x0a','add','--env\x20localhost\x20has\x20no\x20OAuth\x20flow;\x20pick\x20alpha,\x20staging,\x20or\x20production.','end','delegateTo','readFileSync','backendUrl','.\x20Use\x20','delegations\x20show\x20<delegation-id|delegate://delegation/…>','pending','log','\x20must\x20be\x20a\x20whole\x20number\x20','verify','environment\x20variables\x20(AUTH_TOKEN/TENANT_ID/ORG_ID)','parentSessionId','subFields','localhost','\x0aAvailable\x20models\x20(','\x20of\x20the\x20Map\x20of\x20Work\x20of\x20','all','STATUS','sessions','cwd','test','Forked\x20','The\x20saved\x20CLI\x20login\x20could\x20not\x20be\x20refreshed.\x20Run\x20`delegate-cli\x20login`\x20again.','score','\x20<title>','\x20\x20TITLE\x0a','Enter\x20a\x20number\x20','sessionId','close','total_completion_tokens','findIndex','delegations\x20create\x20--session\x20<id>\x20[--to\x20<email|name>]\x20[--summary\x20<text>]\x20\x22<task>\x22|-','.\x20Use\x20`delegate-cli\x20usage`,\x20`usage\x20activity`\x20or\x20`usage\x20daily`.','string','Source:\x20\x20\x20\x20\x20\x20\x20','noMemory','No\x20usage\x20in\x20the\x20last\x20','\x20(cancel\x20with:\x20delegate-cli\x20sessions\x20cancel\x20','pause','\x0a🤔\x20','numeric','\x27\x20cannot\x20be\x20read:\x20','\x20is\x20required.\x0a','.\x20Use\x20alpha\x20|\x20staging\x20|\x20production\x20|\x20localhost.','accept','org-users','\x20cap','No\x20models\x20available\x20for\x20this\x20product/tenant.\x0a','userId','write','mapName','logout','No\x20one\x20matches\x20\x22','Claimed\x20from\x20delegation\x20','days','4936NezpEo','auth.json','default','\x20not\x20found,\x20has\x20no\x20messages','verbose','Unknown\x20delegations\x20action:\x20','Answered','agent_thought','--skip-env-check\x20applies\x20to\x20`delegate-cli\x20login`\x20only.','--limit','stream-json','quiet','sourceTitle','filter','Cost:\x20\x20\x20$','print','\x20delegation\x20','.\x20Share:\x20','a\x20JSON\x20schema\x20file','noConnections','\x20token\x20units','\x20sessions\x20on\x20','share','options','from\x201\x20to\x20','object','Delegation\x20\x20\x20\x20','Your\x20answer\x20(Enter\x20to\x20skip):\x20','choice\x20','lastType','--session','total_sessions','\x20PU\x20beyond\x20quota','--output-format\x20','From\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','actionable_error','Tenants\x20of\x20','--working-dir','create','concat','isInteger','--input-format\x20stream-json\x20reads\x20the\x20prompt\x20from\x20stdin:\x20pass\x20no\x20prompt\x20argument.','toolName','Invalid\x20--env:\x20','contextSummary','aborted','Session\x20','url','messages','Licensing:\x20\x20\x20\x20','outputFormat','\x0aUse\x20with:\x20delegate-cli\x20--model\x20<id>\x20\x22<prompt>\x22\x0a','Missing\x20prompt.\x20Pass\x20it\x20as\x20an\x20argument,\x20pipe\x20it\x20via\x20stdin,\x20or\x20run\x20`delegate-cli\x20--help`.','\x20into\x20','--json-schema\x20applies\x20to\x20prompts\x20and\x20to\x20`delegate-cli\x20complete`\x20only.','list','Tokens:\x20','multiSelect','unknown','Organization\x20\x20','\x20in\x20steps\x20of\x20','deployment','a\x20session\x20id','Shared\x20the\x20Map\x20of\x20Work\x20of\x20','results','status','min','--cleanup','--output-format','--no-security','\x0a⚠️\x20\x20Auth\x20expired.\x20Opening\x20browser\x20to\x20re-login…\x0a','Usage:\x20delegate-cli\x20export\x20TYPE\x20[DOCUMENT_ID]\x20--project\x20ID\x20[--working-dir\x20PATH]','probability\x20','\x20(current)','answers','toUpperCase','Invalid\x20--input-format:\x20','alreadyAccepted','erase','\x20to\x20','followUpsRenderer','a\x20deployment\x20URL,\x20e.g.\x20https://automationsuite.contoso.com','headless','error','an\x20input\x20line\x20is\x20not\x20JSON','--days\x20applies\x20to\x20`delegate-cli\x20usage\x20activity|daily`\x20only.','Continue\x20it\x20with:\x20delegate-cli\x20--session\x20','description','1550932ScLTCG','--no-connections','\x20must\x20be\x20a\x20JSON\x20object.','No\x20answers\x20awaiting\x20acceptance.\x0a','stdin','\x20active\x20days','session_start','tenantName','slice','Deleted\x20session\x20','spawn','activity','monthly_limit_usd','--version','an\x20input\x20line\x20has\x20an\x20empty\x20message','--input-format\x20and\x20--replay-user-messages\x20apply\x20to\x20prompts\x20only.','total_cost_usd','assignedUserEmail',',\x20whose\x20tenant\x20is\x20chosen\x20in\x20the\x20app.\x20Run\x20`delegate-cli\x20login\x20--env\x20<env>`\x20for\x20a\x20CLI\x20login\x20of\x20your\x20own.','toFixed','abort','floor','projectId','a\x20directory\x20path','--skip-env-check','--task-automation\x20applies\x20to\x20prompts\x20only.','\x20<id>','tenantId','Turn:\x20','\x20tokens\x0a','--runner-url','isTTY','Invalid\x20--output-format:\x20','--summary','shift',':\x20cannot\x20read\x20the\x20request\x20(','daily_usage','a\x20briefing\x20text','The\x20turn\x20was\x20cancelled.','an\x20effort\x20tier','4234853oVozmp','No\x20turn\x20','stderr','\x20days.\x0a','tenant','off','workerId'];_0x541d=function(){return _0x4c3d20;};return _0x541d();}function q(_0x13bf35,_0x58049b){const _0x43b00c=_0x2fdf32;return _0x13bf35?.[_0x43b00c(0x374)]&&Fn(_0x13bf35[_0x43b00c(0x374)],_0x58049b)?_0x13bf35[_0x43b00c(0x2b3)]:void 0x0;}function Fn(_0x123883,_0x4279c4){const _0x1ec609=_0x2fdf32;try{return new URL(_0x123883)[_0x1ec609(0x2ec)]===new URL(_0x4279c4)[_0x1ec609(0x2ec)];}catch{return!0x1;}}async function Bn(_0x395e4a){const _0x158503=_0x2fdf32;z()&&(console[_0x158503(0x2a7)]('Auth\x20comes\x20from\x20AUTH_TOKEN/TENANT_ID/ORG_ID\x20—\x20set\x20TENANT_ID\x20and\x20TENANT_SLUG\x20to\x20change\x20the\x20tenant.'),process[_0x158503(0x2de)](0x2));let _0x559ad4=await _0x16f76f();if(_0x559ad4||(console[_0x158503(0x2a7)](Hn()),process['exit'](0x2)),_0x395e4a[_0x158503(0x323)]()){let _0xd1fcc2=await _0x222b9c(_0x559ad4,_0x395e4a);_0x28e3c2(_0xd1fcc2)||(console[_0x158503(0x2a7)](_0x158503(0x16f)+_0x316b95()+_0x158503(0x315)+_0x559ad4['tenantName']+'.'),process[_0x158503(0x2de)](0x1)),console['log'](_0x158503(0x385)+_0xd1fcc2[_0x158503(0x2b3)]+'\x20('+_0xd1fcc2[_0x158503(0x2c7)]+_0x158503(0x1eb)+_0x316b95());return;}Jn(await _0x336124(_0x559ad4),_0x559ad4);}function Hn(){const _0x5b718a=_0x2fdf32;if(_0x1d127c[_0x5b718a(0x190)](_0x316b95()))return _0x5b718a(0x233);let _0x11f8a3=Y();return G(_0x11f8a3)?_0x5b718a(0x1f4)+_0x11f8a3+_0x5b718a(0x2be):'No\x20CLI\x20login\x20found.\x20Run\x20`delegate-cli\x20login\x20--env\x20<alpha|staging|production>`\x20first.';}function Jn(_0x9e61b0,_0x2fd660){const _0xfea09c=_0x2fdf32;let _0x4fa3e2=_0x9e61b0[_0xfea09c(0x313)](_0x41dd3a=>_0x41dd3a['id']===_0x2fd660['tenantId']?'*\x20'+_0x41dd3a['name']+_0xfea09c(0x29d):'\x20\x20'+_0x41dd3a[_0xfea09c(0x195)]);process['stdout']['write'](_0xfea09c(0x278)+(_0x2fd660[_0xfea09c(0x30a)]??_0x2fd660[_0xfea09c(0x329)])+':\x0a'+_0x4fa3e2[_0xfea09c(0x181)]('\x0a')+'\x0a'),_0x9e61b0['length']>0x1&&process['stdout']['write'](_0xfea09c(0x1ac));}function Gn(_0x45a067){const _0x5d76f2=_0x2fdf32;return _0x45a067?.[_0x5d76f2(0x173)]?.[_0x5d76f2(0x295)]===0x191||/401/['test'](String(_0x45a067?.[_0x5d76f2(0x371)]??''));}var w={'lastType':null,'quiet':!0x1},Oe=_0x3b0f79=>{const _0x4e1949=_0x2fdf32;switch(_0x3b0f79[_0x4e1949(0x360)]){case _0x4e1949(0x2b2):_0x3b0f79[_0x4e1949(0x238)]&&_0x3b0f79[_0x4e1949(0x238)]!==w[_0x4e1949(0x238)]&&(process[_0x4e1949(0x2d6)][_0x4e1949(0x24e)]('Session:\x20'+_0x3b0f79[_0x4e1949(0x238)]+_0x4e1949(0x18d)+_0x3b0f79[_0x4e1949(0x238)]+')\x0a'),w[_0x4e1949(0x238)]=_0x3b0f79['sessionId']);break;case _0x4e1949(0x384):_0x3b0f79['turnId']&&_0x3b0f79[_0x4e1949(0x305)]!==w[_0x4e1949(0x305)]&&(w[_0x4e1949(0x271)]!==null&&process[_0x4e1949(0x2d6)][_0x4e1949(0x24e)]('\x0a'),process[_0x4e1949(0x2d6)][_0x4e1949(0x24e)](_0x4e1949(0x2c8)+_0x3b0f79[_0x4e1949(0x305)]+_0x4e1949(0x242)+_0x3b0f79[_0x4e1949(0x238)]+'\x20--turn\x20'+_0x3b0f79[_0x4e1949(0x305)]+')\x0a'),w[_0x4e1949(0x305)]=_0x3b0f79[_0x4e1949(0x305)],w['lastType']=_0x4e1949(0x384));break;case _0x4e1949(0x359):_0x3b0f79[_0x4e1949(0x35a)]&&!w['quiet']&&(w['lastType']!==_0x4e1949(0x359)&&process[_0x4e1949(0x2d6)][_0x4e1949(0x24e)](_0x4e1949(0x244)),process[_0x4e1949(0x2d6)][_0x4e1949(0x24e)](_0x3b0f79[_0x4e1949(0x35a)]),w[_0x4e1949(0x271)]='thinking');break;case _0x4e1949(0x321):w[_0x4e1949(0x271)]!==null&&process[_0x4e1949(0x2d6)]['write']('\x0a'),process[_0x4e1949(0x2d6)][_0x4e1949(0x24e)](_0x4e1949(0x1a3)+(_0x3b0f79[_0x4e1949(0x27e)]??'tool')+'\x0a'),w['lastType']=_0x4e1949(0x321);break;case _0x4e1949(0x371):_0x3b0f79[_0x4e1949(0x35a)]&&(w['lastType']!==_0x4e1949(0x371)&&w[_0x4e1949(0x271)]!==null&&process[_0x4e1949(0x2f6)][_0x4e1949(0x24e)]('\x0a'),process[_0x4e1949(0x2f6)][_0x4e1949(0x24e)](_0x3b0f79['content']),w[_0x4e1949(0x271)]=_0x4e1949(0x371));break;case _0x4e1949(0x2a7):w[_0x4e1949(0x271)]!==null&&process['stderr'][_0x4e1949(0x24e)]('\x0a'),process['stderr']['write']('✗\x20'+(_0x3b0f79[_0x4e1949(0x2a7)]??_0x4e1949(0x2a7))+'\x0a'),w[_0x4e1949(0x271)]='error';break;case _0x4e1949(0x2e1):(w['lastType']===_0x4e1949(0x371)||w[_0x4e1949(0x271)]===_0x4e1949(0x359))&&process[_0x4e1949(0x2f6)][_0x4e1949(0x24e)]('\x0a'),process[_0x4e1949(0x2d6)]['write']('✓\x20Done\x0a'),w[_0x4e1949(0x271)]='done';break;}};function Se(_0x5ad399,_0x476139,_0x3a4d4a,_0x29b35c){const _0x59f370=_0x2fdf32;let _0x107926=_0x5ad399[_0x59f370(0x1e3)]||process.env.MODEL;return{'backendUrl':_0x3a4d4a,'auth':_0x476139,'enableComputerUse':!_0x5ad399[_0x59f370(0x2a6)]&&!_0x5ad399[_0x59f370(0x316)],'autoSpawnInterop':!_0x5ad399['headless'],'enableConnections':!_0x5ad399[_0x59f370(0x267)],'enableSecurity':!_0x5ad399[_0x59f370(0x1f3)],'keepInteropAlive':_0x5ad399['keepAlive'],..._0x29b35c['oneTurn']?{'enableBackgroundCommands':!0x1}:{},..._0x5ad399[_0x59f370(0x240)]?{'enableMemory':!0x1}:{},..._0x5ad399[_0x59f370(0x1a7)]?{'enableTaskAutomation':!0x0}:{},..._0x5ad399[_0x59f370(0x1fc)]['length']>0x0?{'preloadSkills':_0x5ad399[_0x59f370(0x1fc)]}:{},..._0x107926?{'model':_0x107926}:{},..._0x5ad399[_0x59f370(0x2c2)]?{'projectId':_0x5ad399['projectId']}:{},..._0x5ad399[_0x59f370(0x348)]?{'vertical':_0x5ad399[_0x59f370(0x348)]}:{},..._0x5ad399['workingDirectory']?{'workingDirectory':_0x5ad399[_0x59f370(0x2fd)]}:{},..._0x5ad399[_0x59f370(0x33e)]?{'bundledSkillsPath':_0x5ad399[_0x59f370(0x33e)]}:{},..._0x5ad399[_0x59f370(0x30c)]?{'effort':_0x5ad399[_0x59f370(0x30c)]}:{},..._0x5ad399[_0x59f370(0x238)]?{'sessionId':_0x5ad399[_0x59f370(0x238)]}:{},..._0x5ad399[_0x59f370(0x258)]?{'verbose':!0x0}:{}};}async function Wn(_0x59d086){const _0x2f8fab=_0x2fdf32;let _0x36fe51=_0x59d086[_0x2f8fab(0x286)]!==_0x2f8fab(0x37a),_0x26f01a=_0x59d086[_0x2f8fab(0x213)]===void 0x0?null:Re(_0x59d086[_0x2f8fab(0x213)],_0x2f8fab(0x339)),_0x4acd40=!_0x36fe51&&!_0x26f01a&&!_0x59d086[_0x2f8fab(0x263)]&&_0x59d086['prompt']!=='-'&&!!process[_0x2f8fab(0x2b0)]['isTTY']&&!!process[_0x2f8fab(0x2f6)]['isTTY'],_0x3c445f=_0x59d086[_0x2f8fab(0x353)]===_0x2f8fab(0x25e)?re(process[_0x2f8fab(0x2b0)],_0x3e582e=>{const _0x1d1be5=_0x2f8fab;process[_0x1d1be5(0x2d6)][_0x1d1be5(0x24e)](_0x3e582e['message']+_0x1d1be5(0x163));}):null,_0x27ac9d=_0x3c445f?(await _0x3c445f[_0x2f8fab(0x1aa)]())['value']:void 0x0,_0x309f92=_0x3c445f?_0x27ac9d?.[_0x2f8fab(0x37a)]??'':_0x4acd40?_0x59d086[_0x2f8fab(0x354)][_0x2f8fab(0x323)]():await J(_0x59d086[_0x2f8fab(0x354)],process[_0x2f8fab(0x2b0)]);if(!_0x4acd40&&!_0x309f92&&(console[_0x2f8fab(0x2a7)](_0x2f8fab(0x288)),process[_0x2f8fab(0x2de)](0x2)),!_0x36fe51){await Ae(_0x59d086,_0x309f92,_0x4acd40,null,_0x26f01a,null);return;}let _0x17adc9=!0x1,_0x36f30f=_0x2b70b0=>{const _0x5ad2a0=_0x2f8fab;_0x17adc9=!0x0,L(_0x31c8e9(_0x2b70b0)),(_0x2b70b0['isError']||_0x2b70b0[_0x5ad2a0(0x309)])&&(process[_0x5ad2a0(0x162)]=0x1);},_0x46cdb2=Date[_0x2f8fab(0x31a)]();try{await Ae(_0x59d086,_0x309f92,!0x1,_0x36f30f,_0x26f01a,_0x3c445f?{'messages':_0x3c445f,'first':_0x27ac9d,'close':()=>{const _0x5331b0=_0x2f8fab;process[_0x5331b0(0x2b0)]['pause']();}}:null);}catch(_0x180bc6){if(_0x17adc9)throw _0x180bc6;process['stderr'][_0x2f8fab(0x24e)]((_0x180bc6 instanceof Error?_0x180bc6[_0x2f8fab(0x18e)]??_0x180bc6['message']:String(_0x180bc6))+'\x0a'),_0x36f30f(new _0x176937(_0x46cdb2)[_0x2f8fab(0x2f4)]({'endedAtMs':Date[_0x2f8fab(0x31a)](),'usage':[],'error':_0x180bc6}));}finally{_0x3c445f&&(process['stdin']['pause'](),_0x3c445f[_0x2f8fab(0x19f)](void 0x0));}}async function Ae(_0x3487dd,_0x384b50,_0x1e2d98,_0x203b4c,_0x203f71,_0x374a21){const _0x243e08=_0x2fdf32;w={'lastType':null,'quiet':_0x3487dd[_0x243e08(0x25f)]};let _0x1bfd0b=new Set(),_0x3a4e45,_0x1b7488=_0x6a644b=>{const _0xc560b7=_0x243e08;(!_0x203b4c||_0x6a644b['type']===_0xc560b7(0x2b2)||_0x6a644b['type']===_0xc560b7(0x384))&&(_0x3a4e45??Oe)(_0x6a644b);for(let _0x2f679c of _0x1bfd0b)_0x2f679c(_0x6a644b);},_0x33dad7=await V(),_0x3d44dc=new _0x45af6f();_0x3d44dc[_0x243e08(0x1f2)](_0x1b7488);let _0x3e050a=_0x212233(_0x3487dd['env'],_0x33dad7,_0x3487dd[_0x243e08(0x220)]);X(_0x3487dd[_0x243e08(0x211)],_0x3487dd[_0x243e08(0x220)],_0x3e050a);let _0x31cbe6={'input':null},_0x41716e=_0x1e2d98?ne(()=>_0x31cbe6['input'],_0x50afbb=>{const _0x5cbbed=_0x243e08;process[_0x5cbbed(0x2d6)][_0x5cbbed(0x24e)](_0x50afbb);}):null,_0x34a0a4=_0x3fc132=>_0x41716e?{..._0x3fc132,'askUser':_0x41716e}:_0x3fc132,_0x219908=_0x34a0a4(Se(_0x3487dd,_0x33dad7,_0x3e050a,{'oneTurn':!_0x1e2d98})),_0x547168=!0x1,_0x51e977=!0x1,_0x35a988,_0x388fe6=()=>_0x35a988??=_0x3d44dc[_0x243e08(0x31c)](),_0x233937=()=>{const _0x2d9151=_0x243e08;_0x51e977&&process['exit'](0x82),_0x51e977=!0x0,process[_0x2d9151(0x2d6)][_0x2d9151(0x24e)](_0x2d9151(0x21a)),_0x547168&&_0x3d44dc[_0x2d9151(0x2eb)]()[_0x2d9151(0x1a8)](_0x4a3dbf=>console[_0x2d9151(0x2a7)](_0x4a3dbf))[_0x2d9151(0x343)](_0x388fe6)[_0x2d9151(0x343)](()=>process[_0x2d9151(0x2de)](0x82),_0x4b4c0b=>{console['error'](_0x4b4c0b),process['exit'](0x82);});};process['on'](_0x243e08(0x2f3),_0x233937);let _0x9c74c6=_0x3487dd['attachments'],_0x320eb1=async _0x546bd3=>{const _0x2688c7=_0x243e08;let _0x23ed34=_0x9c74c6;_0x9c74c6=[];let _0x2a63f8=()=>_0x3d44dc[_0x2688c7(0x364)](_0x546bd3,{'attachments':_0x23ed34});try{return await _0x2a63f8();}catch(_0x1c751a){if(_0x51e977||!Gn(_0x1c751a)||!process[_0x2688c7(0x2b0)][_0x2688c7(0x2cb)]||_0x3487dd['env']==='localhost'||!(_0x3487dd['env']||_0x33dad7[_0x2688c7(0x374)]))throw _0x1c751a;process[_0x2688c7(0x2d6)]['write'](_0x2688c7(0x29a));let _0x3cea31=_0x3d44dc['getSessionId']()??_0x3487dd['sessionId'],_0x239347=await _0x2d7742(_0x3487dd[_0x2688c7(0x211)]?{'env':_0x3487dd['env'],'tenant':q(_0x33dad7,_0x18fdff[_0x3487dd[_0x2688c7(0x211)]]),'skipEnvCheck':!0x0}:{'baseUrl':_0x33dad7[_0x2688c7(0x374)],'tenant':_0x33dad7[_0x2688c7(0x2b3)],'skipEnvCheck':!0x0}),_0xa3eb34={'text':'','failed':!0x1,'sessionId':_0x3cea31};return _0x51e977||(_0x547168=!0x1,await _0x388fe6(),_0x51e977)?_0xa3eb34:(_0x3d44dc=new _0x45af6f(),_0x35a988=void 0x0,_0x3d44dc[_0x2688c7(0x1f2)](_0x1b7488),_0x33dad7=_0x239347,await _0x3d44dc[_0x2688c7(0x330)]({..._0x34a0a4(Se(_0x3487dd,_0x33dad7,_0x3e050a,{'oneTurn':!_0x1e2d98})),..._0x3cea31?{'sessionId':_0x3cea31}:{}}),_0x547168=!0x0,_0x51e977?_0xa3eb34:_0x2a63f8());}};try{if(await _0x3d44dc[_0x243e08(0x330)](_0x219908),_0x547168=!0x0,_0x51e977)return;if(_0x1e2d98)await Qn({'prompt':_0x384b50,'sendMessage':_0x320eb1,'onSigint':_0x233937,'setAnswerInput':_0x19e395=>{const _0x1eaa1a=_0x243e08;_0x31cbe6[_0x1eaa1a(0x30e)]=_0x19e395;},'registerEventPrinter':_0x3151f3=>(_0x3a4e45=_0x3151f3,()=>{_0x3a4e45=void 0x0;})});else{if(_0x203b4c||_0x203f71){let _0xdbf1c=_0x3487dd['outputFormat']===_0x243e08(0x25e)?_0x50b00a=>L(_0x15f942(_0x50b00a)):()=>{},_0x1b16c7=_0x374a21?ie({'input':_0x374a21,'getAgent':()=>_0x3d44dc,'replay':_0x3487dd[_0x243e08(0x17e)],'onEvent':_0x59dede=>(_0x1bfd0b[_0x243e08(0x21b)](_0x59dede),()=>{const _0x3603e9=_0x243e08;_0x1bfd0b[_0x3603e9(0x367)](_0x59dede);}),'write':L,'isRunStopNotice':_0x104188,'actionableErrorText':_0x2d0e9e,'warn':_0x3b80b9=>{const _0x4ba4f0=_0x243e08;process[_0x4ba4f0(0x2d6)][_0x4ba4f0(0x24e)](_0x3b80b9);}}):null,_0x424223=await _0x5cc5f6({'onEvent':_0x523d56=>(_0x1bfd0b[_0x243e08(0x21b)](_0x523d56),()=>{const _0x35dbb7=_0x243e08;_0x1bfd0b[_0x35dbb7(0x367)](_0x523d56);}),'sendMessage':async _0x423151=>{const _0x877ba3=_0x243e08;try{let _0x174092=await _0x320eb1(_0x423151);return _0x1b16c7?await _0x1b16c7[_0x877ba3(0x314)](_0x174092):_0x174092;}finally{_0x1b16c7?.[_0x877ba3(0x2ef)]();}},'getSessionId':()=>_0x3d44dc[_0x243e08(0x37d)](),'getTurnUsageHistory':_0x3a5e21=>_0x3d44dc[_0x243e08(0x377)](_0x3a5e21),'complete':_0x315563=>_0x3d44dc[_0x243e08(0x1d5)](_0x315563)},_0x384b50,void 0x0,_0xdbf1c,_0x203f71?{'outputSchema':_0x203f71}:void 0x0);_0x203b4c?_0x203b4c(_0x424223):Kn(_0x424223);}else await _0x320eb1(_0x384b50);}}catch(_0x3d35db){if(!_0x51e977)throw _0x3d35db;}finally{try{await _0x388fe6();}finally{process[_0x243e08(0x2d9)]('SIGINT',_0x233937),_0x51e977&&(process[_0x243e08(0x162)]=0x82);}}}function Kn(_0x2752b4){const _0x4b336a=_0x2fdf32;_0x2752b4[_0x4b336a(0x309)]?(console[_0x4b336a(0x2a7)](_0x4b336a(0x196)+_0x2752b4[_0x4b336a(0x309)][_0x4b336a(0x371)]),process[_0x4b336a(0x162)]=0x1):_0x2752b4[_0x4b336a(0x16b)]?(console['error']('No\x20structured\x20output:\x20the\x20turn\x20failed\x20('+_0x2752b4[_0x4b336a(0x2a7)]+').'),process[_0x4b336a(0x162)]=0x1):process[_0x4b336a(0x2f6)][_0x4b336a(0x24e)](JSON[_0x4b336a(0x1f0)](_0x2752b4[_0x4b336a(0x32c)],null,0x2)+'\x0a');}function qn(_0xef312b,_0x3f2047){const _0x4c2f5d=_0x2fdf32;let _0x2c5d55=process['stdout'][_0x4c2f5d(0x24e)][_0x4c2f5d(0x2fa)](process[_0x4c2f5d(0x2f6)]),_0x1d5291=!0x1;return process[_0x4c2f5d(0x2f6)]['write']=(..._0x5967a3)=>{if(!_0x1d5291)return _0x2c5d55(..._0x5967a3);_0x145ea5(_0x3f2047,0x0),_0x34ff83(_0x3f2047,0x0);let _0xb17554=_0x2c5d55(..._0x5967a3);return _0xef312b['prompt'](!0x0),_0xb17554;},{'show':()=>{_0x1d5291=!0x0,_0xef312b['prompt']();},'hide':()=>{_0x1d5291=!0x1;},'erase':()=>{_0x1d5291&&(_0x145ea5(_0x3f2047,0x0),_0x34ff83(_0x3f2047,0x0)),_0x1d5291=!0x1;},'restore':()=>{const _0x8740fa=_0x4c2f5d;_0x1d5291=!0x1,process[_0x8740fa(0x2f6)][_0x8740fa(0x24e)]=_0x2c5d55;}};}async function Qn({prompt:_0x331f42,sendMessage:_0x1650d3,onSigint:_0x170dcf,setAnswerInput:_0x48d1bc,registerEventPrinter:_0x567429}){const _0xdc26a4=_0x2fdf32;let _0xd4fcb4=_0x30f601({'input':process[_0xdc26a4(0x2b0)],'output':process[_0xdc26a4(0x2d6)],'terminal':!0x0,'prompt':'You>\x20'}),_0x5b912d=qn(_0xd4fcb4,process['stderr']),_0xdaaba9=[],_0x4206f8,_0x4ed0c9,_0x265951,_0x453a3c=!0x1,_0xc00ce0=!0x1,_0x45279c=!0x1,_0x1e1dc9=Promise[_0xdc26a4(0x170)](),_0x1dd203,_0x4087e8=_0x567429(_0x2aa83d=>{const _0x3ef9ef=_0xdc26a4;_0x2aa83d[_0x3ef9ef(0x360)]===_0x3ef9ef(0x2b2)&&(_0x5b912d[_0x3ef9ef(0x2a2)](),_0x1e1dc9=new Promise(_0x14b93a=>{_0x1dd203=_0x14b93a;})),Oe(_0x2aa83d),_0x2aa83d[_0x3ef9ef(0x360)]===_0x3ef9ef(0x2e1)&&(_0x1dd203?.(),_0x1dd203=void 0x0,!_0x45279c&&!_0x453a3c&&_0x5b912d[_0x3ef9ef(0x1b4)]());}),_0x605537=()=>{const _0x252013=_0xdc26a4;_0xc00ce0=!0x0,_0x1dd203?.(),_0x170dcf(),_0xd4fcb4[_0x252013(0x239)]();};_0xd4fcb4['on'](_0xdc26a4(0x2f9),_0x2f4fd9=>{const _0x503442=_0xdc26a4;_0x265951?_0x265951(_0x2f4fd9):_0x4206f8?_0x4206f8[_0x503442(0x304)](_0x2f4fd9):_0x4ed0c9?_0x4ed0c9(_0x2f4fd9):_0xdaaba9[_0x503442(0x304)](_0x2f4fd9);}),_0xd4fcb4[_0xdc26a4(0x2e8)](_0xdc26a4(0x239),()=>{const _0x27d8f4=_0xdc26a4;_0x453a3c=!0x0,_0x5b912d[_0x27d8f4(0x30f)](),_0x4206f8&&!_0xc00ce0&&_0x605537(),_0x4ed0c9?.(null);});let _0x520c2a=()=>_0xdaaba9[_0xdc26a4(0x370)]>0x0?Promise[_0xdc26a4(0x170)](_0xdaaba9['shift']()):_0x453a3c?Promise[_0xdc26a4(0x170)](null):new Promise(_0x1f9c18=>{_0x4ed0c9=_0x1ce427=>{_0x4ed0c9=void 0x0,_0x1f9c18(_0x1ce427);};});_0x48d1bc({'readLine':(_0x1d71fe,_0x535777)=>new Promise((_0x20c15d,_0x6d9eca)=>{const _0x36a141=_0xdc26a4;if(_0x453a3c&&!_0x4206f8){_0x20c15d(null);return;}_0x4206f8??=[];let _0x44eabb=_0x4206f8[_0x36a141(0x2ce)]();if(_0x44eabb!==void 0x0){_0x20c15d(_0x44eabb);return;}let _0x3a6f71=()=>{const _0x85ac9b=_0x36a141;_0x265951=void 0x0,_0x535777[_0x85ac9b(0x35b)](_0x85ac9b(0x2c0),_0x149483),_0x5b912d[_0x85ac9b(0x30f)](),_0xd4fcb4['setPrompt']('You>\x20');},_0x149483=()=>{const _0x277797=_0x36a141;_0x3a6f71(),_0x6d9eca(new Error(_0x277797(0x2d2)));};_0x535777['addEventListener'](_0x36a141(0x2c0),_0x149483,{'once':!0x0}),!_0x453a3c&&(_0x265951=_0x4bf44c=>{_0x3a6f71(),_0x20c15d(_0x4bf44c);},_0xd4fcb4[_0x36a141(0x1d8)](_0x1d71fe),_0x5b912d[_0x36a141(0x1b4)]());}),'endQuestions':()=>{_0x4206f8&&_0xdaaba9['push'](..._0x4206f8),_0x4206f8=void 0x0;}}),_0xd4fcb4['on'](_0xdc26a4(0x2f3),_0x605537),process[_0xdc26a4(0x2d6)][_0xdc26a4(0x24e)](_0xdc26a4(0x1f6));let _0x3d6957=async _0x1e94ce=>{_0x45279c=!0x0;try{await _0x1650d3(_0x1e94ce);}finally{_0x45279c=!0x1;}};try{if(_0x331f42&&await _0x3d6957(_0x331f42),_0xc00ce0)return;!_0x453a3c&&!_0x1dd203&&_0x5b912d[_0xdc26a4(0x1b4)]();for(let _0x3ab1ef=await _0x520c2a();_0x3ab1ef!==null&&(_0x5b912d[_0xdc26a4(0x30f)](),!_0xc00ce0);_0x3ab1ef=await _0x520c2a()){let _0x98ae41=_0x3ab1ef[_0xdc26a4(0x323)]();if(_0x98ae41==='/exit')break;_0x98ae41&&await _0x3d6957(_0x98ae41),!_0x453a3c&&!_0x1dd203&&_0x5b912d[_0xdc26a4(0x1b4)]();}for(;!_0xc00ce0&&_0x1dd203;)await _0x1e1dc9;}finally{_0x48d1bc(null),_0x4087e8(),_0x5b912d[_0xdc26a4(0x1af)](),_0xd4fcb4['off'](_0xdc26a4(0x2f3),_0x605537),_0xd4fcb4[_0xdc26a4(0x239)]();}}async function Yn(){const _0x3932d2=_0x2fdf32;let _0x375e9d=Vt(process['argv']['slice'](0x2));if(_0x375e9d[_0x3932d2(0x286)]===_0x3932d2(0x37a)){await Ee(_0x375e9d);return;}let _0x48cd1e=Xt();try{await Ee(_0x375e9d);}finally{_0x48cd1e();}}async function Ee(_0x413095){const _0x343231=_0x2fdf32;if(_0x413095[_0x343231(0x1d4)]){Zt();return;}if(_0x413095[_0x343231(0x1df)]){console[_0x343231(0x224)](en());return;}if(_0x413095[_0x343231(0x358)]===_0x343231(0x31b)){await Mn(_0x413095);return;}if(_0x413095['subcommand']===_0x343231(0x2d8)){await Bn(_0x413095[_0x343231(0x354)]);return;}if(_0x413095[_0x343231(0x358)]==='logout'){await on();return;}if(_0x413095[_0x343231(0x358)]==='whoami'){await rn(_0x413095);return;}if(_0x413095[_0x343231(0x358)]===_0x343231(0x1d7)){await dn(_0x413095);return;}if(_0x413095[_0x343231(0x358)]===_0x343231(0x212)){await wn(_0x413095);return;}if(_0x413095['subcommand']==='sessions'){await pn(_0x413095);return;}if(_0x413095[_0x343231(0x358)]==='usage'){await vn(_0x413095);return;}if(_0x413095[_0x343231(0x358)]===_0x343231(0x379)||_0x413095['subcommand']===_0x343231(0x365)||_0x413095[_0x343231(0x358)]===_0x343231(0x226)){await xn(_0x413095,_0x413095[_0x343231(0x358)]);return;}if(_0x413095[_0x343231(0x358)]===_0x343231(0x1d5)){await $n(_0x413095);return;}if(_0x413095['subcommand']===_0x343231(0x1f9)){await Nn(_0x413095);return;}if(_0x413095[_0x343231(0x358)]===_0x343231(0x1ae)){await Pn(_0x413095);return;}if(_0x413095['subcommand']===_0x343231(0x1e7)){await _n(_0x413095);return;}if(_0x413095['subcommand']===_0x343231(0x1db)){await On(_0x413095);return;}if(_0x413095[_0x343231(0x358)]===_0x343231(0x24a)){await jn(_0x413095);return;}if(_0x413095['subcommand']===_0x343231(0x34c)){await _0x33efa7(_0x413095[_0x343231(0x354)],{'runnerUrl':_0x413095[_0x343231(0x1c4)],'backendUrl':_0x413095[_0x343231(0x220)],'interopPath':_0x413095[_0x343231(0x372)],'workerId':_0x413095[_0x343231(0x2da)]});return;}if(_0x413095[_0x343231(0x200)]){await cn();return;}await Wn(_0x413095);}var zn=process.env.NODE_ENV==='test'||!!process.env.JEST_WORKER_ID;zn||Yn()[_0x2fdf32(0x1a8)](_0x3380ec=>{const _0x1c5151=_0x2fdf32;console[_0x1c5151(0x2a7)](_0x3380ec[_0x1c5151(0x18e)]||_0x3380ec[_0x1c5151(0x371)]||_0x3380ec),process[_0x1c5151(0x2de)](0x1);});export{zt as CARTOGRAPHER_SKILLS,pe as EFFORT_TIERS,tn as IMPLICIT_STDIN_IDLE_MS,Se as buildInitOptions,Yn as main,Vt as parseArgs,en as readCliVersion,J as resolvePrompt,Xt as routeStdoutToStderr,m as writeCommandResult};
2
+ const _0x511361=_0xaca4;(function(_0x17e2d2,_0x31952f){const _0x4590fb=_0xaca4,_0x696f8b=_0x17e2d2();while(!![]){try{const _0x91707a=parseInt(_0x4590fb(0x1d6))/0x1+parseInt(_0x4590fb(0x357))/0x2+-parseInt(_0x4590fb(0x1df))/0x3+-parseInt(_0x4590fb(0x150))/0x4*(parseInt(_0x4590fb(0x24f))/0x5)+parseInt(_0x4590fb(0x20c))/0x6*(parseInt(_0x4590fb(0x2e8))/0x7)+-parseInt(_0x4590fb(0x12e))/0x8*(parseInt(_0x4590fb(0x272))/0x9)+parseInt(_0x4590fb(0x27f))/0xa;if(_0x91707a===_0x31952f)break;else _0x696f8b['push'](_0x696f8b['shift']());}catch(_0x4c120c){_0x696f8b['push'](_0x696f8b['shift']());}}}(_0x134f,0x254d6));const __dirname=import.meta.dirname;var L=(_0x2754a6,_0x34d2a1)=>()=>(_0x2754a6&&(_0x34d2a1=_0x2754a6(_0x2754a6=0x0)),_0x34d2a1),Qe=(_0x49adf3,_0x43b2ef)=>()=>(_0x43b2ef||_0x49adf3((_0x43b2ef={'exports':{}})[_0x511361(0x1f5)],_0x43b2ef),_0x43b2ef[_0x511361(0x1f5)]);function te(_0x360891,_0x5d4fd6){const _0x233369=_0x511361;let _0x56e824=_0x360891[_0x233369(0x31e)]('--cartographer'),_0x3281f6=Ve(_0x360891),_0xf7e918=qe[_0x233369(0x1bd)](_0x360891[0x0])?_0x360891[0x0]:void 0x0;if(_0x56e824<0x0&&_0x3281f6<0x0&&_0xf7e918===void 0x0)return;let _0xa49d50=new Set([_0x56e824,_0x3281f6,..._0x3281f6>=0x0?[_0x3281f6+0x1]:[]]);return(_0xf7e918!==void 0x0?_0x233369(0x20e)+_0xf7e918+'`':_0x56e824>=0x0?'`delegate-cli\x20--cartographer`':_0x233369(0x217))+_0x233369(0x263)+ze+('\x20\x20'+Ye(_0x360891,_0xa49d50,_0x5d4fd6));}function Ve(_0x358b4e){const _0xf39ff5=_0x511361;return _0x358b4e['findIndex']((_0x599541,_0x3a9855)=>_0x599541==='--vertical'&&_0x358b4e[_0x3a9855+0x1]?.[_0xf39ff5(0x32f)]()===Ke);}function Ye(_0xd48849,_0x160c60,_0x2fe252){const _0x24b5d1=_0x511361;return[_0x24b5d1(0x2c3),..._0xd48849[_0x24b5d1(0x1cd)]((_0x241394,_0xc92545)=>!_0x160c60['has'](_0xc92545))['map'](_0x18d566=>Xe(_0x18d566,_0x2fe252))]['join']('\x20');}function Xe(_0x445213,_0x39687c){const _0x2d0e0e=_0x511361;return _0x39687c===_0x2d0e0e(0x118)?/^[\w@%+=:,./\\-]+$/[_0x2d0e0e(0x250)](_0x445213)?_0x445213:/[$`]/['test'](_0x445213)?'\x27'+_0x445213['replace'](/'/g,'\x27\x27')+'\x27':'\x22'+_0x445213[_0x2d0e0e(0x236)](/"/g,'\x22\x22')+'\x22':/^[\w@%+=:,./-]+$/[_0x2d0e0e(0x250)](_0x445213)?_0x445213:'\x22'+_0x445213[_0x2d0e0e(0x236)](/(["\\$`])/g,_0x2d0e0e(0x2ea))+'\x22';}var Ke,qe,ze,ne=L(()=>{const _0x1063c6=_0x511361;Ke=_0x1063c6(0x179),qe=[_0x1063c6(0x138),_0x1063c6(0x1c1)],ze=_0x1063c6(0x256);});import{isOnStepGrid as _0xa50403}from'@uipath/delegate-sdk';function A(_0x34f275){return _0x34f275['replace'](/\u001b\[[0-?]*[ -/]*[@-~]|\u001b\][^\u0007\u001b]*(\u0007|\u001b\\)?|\u001b./g,'')['replace'](/[\u0000-\u0008\u000b-\u001f\u007f-\u009f]/g,'');}function _0x134f(){const _0x44afa4=['evaluate','index','stdin','Source:\x20\x20\x20\x20\x20\x20\x20','\x20vertical,\x20so\x20it\x20cannot\x20run\x20as\x20--vertical\x20','\x20host\x20uninstall\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Remove\x20auto-start\x0a\x20\x20','\x20—\x20sign\x20out\x20in\x20the\x20Delegate\x20app\x20to\x20clear\x20that.','list','exec','--worker-id','userinput','agentName','workingDirectory','stringify','logout','contextSummary','\x20transcribe\x20<file>,\x20or\x20-\x20to\x20read\x20stdin.','\x20transcribe\x20FILE|-\x20\x20\x20\x20\x20\x20\x20Speech-to-text:\x20print\x20the\x20text\x20of\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20audio\x20in\x20FILE,\x20or\x20on\x20stdin\x20with\x20-.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20mp3,\x20mp4,\x20mpeg,\x20mpga,\x20m4a,\x20wav\x20or\x20webm,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20up\x20to\x2014\x20MB.\x20Exits\x202\x20when\x20the\x20audio\x20is\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20refused\x20locally,\x201\x20when\x20the\x20backend\x20rejects\x20it\x0a','.\x20Drop\x20--vertical.','session_consumed_pu','confidence','setPrompt','hasOwn','onEvent','\x20prompt,\x20','--working-dir','split','\x20usage\x20activity|daily`\x20only.','readFileSync','settle','Work\x20on\x20it\x20with:\x20','--url\x20applies\x20to\x20`','status','isTTY','3878IZzGGN','staging','\x5c$1','\x20complete\x20--json-schema\x20FILE\x20[--model\x20ID]\x20[--session\x20ID]\x20\x22<prompt>\x22|-\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20One\x20structured\x20completion,\x20no\x20agent\x20turn:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20print\x20the\x20JSON\x20object\x20matching\x20the\x20schema\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20in\x20FILE\x20(--output-format\x20json\x20prints\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{structured,\x20usage});\x20--session\x20adds\x20that\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20session\x27s\x20history\x20as\x20context.\x20Exits\x201\x20when\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20output\x20fails\x20the\x20schema\x20(422)\x20or\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20backend\x20rejects\x20the\x20request\x0a\x20\x20','monthly_limit_usd','\x20(Delegate\x20desktop\x20app\x20fallback)','delegationId','\x20applies\x20to\x20prompts\x20and\x20to\x20these\x20commands\x20only:\x20','\x20token\x20units','skipEnvCheck','about','--limit','\x20tenant\x20<name>\x0a\x20\x20--model\x20NAME\x20\x20\x20\x20\x20\x20LLM\x20model\x20id\x20(e.g.\x20claude_sonnet_5_5,\x20kimi_k3).\x20Checked\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20against\x20the\x20tenant\x27s\x20catalog\x20(','verdict','replayUserMessages','readLine','\x20sessions\x20[list]\x20[--page\x20N]\x20[--limit\x20N]\x20[--include-subagents]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20your\x20backend\x20chat\x20sessions,\x20most\x20recently\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20active\x20first\x20(resume\x20one\x20with\x20--session\x20ID)\x0a\x20\x20','period_end','optional','--json-schema\x20applies\x20to\x20prompts\x20and\x20to\x20`','\x20sessions\x20--page\x20','\x20not\x20found,\x20has\x20no\x20messages','\x20login\x20--env\x20<alpha|staging|production>,\x20or\x20','all','content','Created\x20delegation\x20','\x20--cleanup\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Stop\x20running\x20interop\x0a\x0aFlags:\x0a\x20\x20-p,\x20--print\x20\x20\x20\x20\x20\x20\x20Run\x20one\x20turn\x20and\x20exit,\x20including\x20any\x20tool\x20execution.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Automatic\x20when\x20stdin\x20or\x20stdout\x20is\x20not\x20a\x20terminal,\x20or\x20with\x20-\x0a\x20\x20--env\x20NAME\x20\x20\x20\x20\x20\x20\x20\x20alpha\x20|\x20staging\x20|\x20production\x20|\x20localhost\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Composes\x20backend\x20URL\x20from\x20saved\x20auth\x20(org/tenant\x20slugs).\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Omitted\x20→\x20the\x20deployment\x20you\x20logged\x20into\x20(','help','\x20sessions\x20cancel\x20<session-id>\x20--turn\x20<turn-id>','rerank','noComputerUse','Session\x20\x20\x20\x20\x20\x20\x20','cancelled','Pass\x20either\x20--env\x20(a\x20named\x20cloud)\x20or\x20--url\x20(any\x20other\x20deployment),\x20not\x20both.','includeSubAgents','min','erase','--session','\x20delegations\x20create\x20--session\x20ID\x20[--to\x20WHO]\x20[--summary\x20TEXT]\x20\x22<task>\x22|-\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Hand\x20a\x20task\x20from\x20session\x20ID\x20to\x20a\x20colleague\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(WHO:\x20an\x20email,\x20or\x20a\x20name\x20matching\x20one\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20person);\x20without\x20--to,\x20print\x20a\x20link\x20anyone\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20in\x20the\x20organization\x20can\x20claim\x0a\x20\x20','Session\x20','Auth\x20comes\x20from\x20AUTH_TOKEN/TENANT_ID/ORG_ID\x20—\x20set\x20TENANT_ID\x20and\x20TENANT_SLUG\x20to\x20change\x20the\x20tenant.','join','--days','slice','No\x20CLI\x20login\x20to\x20switch:\x20the\x20CLI\x20is\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20','stream-json','file','stderr','Your\x20answer,\x20as\x20text\x20(the\x20CLI\x20attaches\x20no\x20files;\x20Enter\x20to\x20skip):\x20','\x20must\x20be\x20a\x20whole\x20number\x20','--computer-use\x20turns\x20the\x20screen\x20on,\x20and\x20--headless\x20and\x20--no-computer-use\x20turn\x20it\x20off:\x20pass\x20one\x20of\x20them.','.\x20Use\x20','turnId','\x20tenant\x20<name>\x0a','indexOf','email','subFields','\x20<file.json>,\x20or\x20-\x20to\x20read\x20stdin.','\x20usage`,\x20`usage\x20activity`\x20or\x20`usage\x20daily`.','--interop','\x20in\x20steps\x20of\x20','catch','model_version','\x20(stdin\x20was\x20empty)','\x20days.\x0a','\x20(confidence\x20','--keep-alive','unknown\x20slug','an\x20input\x20line\x20has\x20an\x20empty\x20message','\x0aUse\x20with:\x20','concat','trim','No\x20answers\x20awaiting\x20acceptance.\x0a','code','assignedUser','\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\x20','\x20\x20(input\x20#','--env\x20localhost\x20has\x20no\x20OAuth\x20flow;\x20pick\x20alpha,\x20staging,\x20or\x20production.','.\x20Use:\x20','value','findIndex','Add\x20--computer-use.','\x20delegations\x20list\x20PROJECT\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Every\x20delegation\x20targeting\x20a\x20backend\x20project\x0a\x20\x20','vertical','default','\x20sessions\x20fork\x20ID\x20[MESSAGE]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Copy\x20session\x20ID\x20into\x20a\x20new\x20session,\x20up\x20to\x20and\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20including\x20message\x20MESSAGE\x20(default:\x20all\x20of\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20it);\x20continue\x20it\x20with\x20--session\x20NEW_ID\x0a\x20\x20','fields','Cost:\x20\x20\x20$',':\x20cannot\x20read\x20the\x20request\x20(','some','length','delegations\x20create\x20--session\x20<id>\x20[--to\x20<email|name>]\x20[--summary\x20<text>]\x20\x22<task>\x22|-','Already\x20answered','Structured\x20output\x20failed:\x20','\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\x20','Answered','\x20models\x20[--env\x20NAME]\x20\x20\x20\x20\x20List\x20available\x20LLM\x20models\x20for\x20the\x20current\x20tenant,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20with\x20any\x20BYO\x20configuration\x20warning\x20per\x20model\x0a\x20\x20','\x20completion','Enter\x20numbers\x20from\x201\x20to\x20',':\x20ignored\x0a','detail','\x20\x22<answer>\x22\x0a','\x20org-users\x20<name\x20or\x20email\x20prefix>','\x20--model\x20<id>\x20\x22<prompt>\x22\x0a','buckets','every','noSecurity','\x20\x20-h,\x20--help\x20\x20\x20\x20\x20\x20\x20\x20Show\x20this\x20help\x0a\x20\x20-v,\x20--version\x20\x20\x20\x20\x20Print\x20the\x20installed\x20CLI\x20version\x0a\x0aConversation:\x20Enter\x20sends\x20a\x20message;\x20/exit\x20or\x20EOF\x20exits;\x20Ctrl+C\x20stops\x20and\x20exits.\x0a\x20\x20Ctrl+C\x20during\x20a\x20turn\x20cancels\x20it\x20on\x20the\x20backend\x20too;\x20a\x20second\x20Ctrl+C\x20force-exits.\x0a\x20\x20An\x20optional\x20initial\x20prompt\x20is\x20followed\x20by\x20more\x20input.\x20The\x20session\x20ID\x20is\x20printed\x0a\x20\x20to\x20stderr;\x20resume\x20later\x20with\x20--session\x20ID.\x20Redirected\x20input\x20is\x20one\x20prompt.\x0aAuth:\x20prompts\x20auto-retry\x20on\x20401\x20by\x20opening\x20the\x20browser\x20to\x20re-login\x20(TTY\x20only),\x0a\x20\x20preserving\x20the\x20active\x20session.','\x20delegations\x20create`\x20only.','isSafeInteger','A\x20steering\x20message\x20arrived\x20after\x20the\x20turn\x20ended:\x20not\x20read.\x0a','297846YWaQPD','pause','No\x20auth\x20found.\x20Set\x20AUTH_TOKEN\x20(or\x20AUTH_TOKEN_FILE)/TENANT_ID/ORG_ID\x20env\x20vars,\x20or\x20run\x20`','max','title','log','--print','\x20login\x20[--env\x20NAME\x20|\x20--url\x20BASE]\x20[--tenant\x20NAME]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20OAuth\x20browser\x20login\x20→\x20~/.aria/sdk-auth.json.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--env\x20or\x20--url\x20required\x20on\x20FIRST\x20login;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20afterwards\x20defaults\x20to\x20the\x20saved\x20login\x27s\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20deployment.\x20--tenant\x20picks\x20a\x20tenant\x20by\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20name;\x20without\x20it\x20a\x20re-login\x20keeps\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20saved\x20tenant\x0a\x20\x20','organizationId','localhost','bin','\x20org-users\x20QUERY\x20\x20\x20\x20\x20\x20\x20\x20\x20Search\x20your\x20organization\x27s\x20users\x20by\x20name\x20or\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20email\x20prefix\x20(2-100\x20characters)\x0a\x20\x20','addEventListener','Token:\x20\x20\x20\x20\x20\x20\x20\x20expired\x20','waitForIdle','forEach','session_start','preloadSkills','interopPath','rename','steer','quiet','\x20(no\x20cap\x20enforced)','extra_pool_consumed_pu','The\x20turn\x20was\x20cancelled.','initialize','header','Tenant:\x20','kind','\x20PU\x20used','\x27\x20cannot\x20be\x20read:\x20','locked','off','usage','\x22.\x0a','padStart','line','response','win32','package.json','total_tokens','argv','rmSync','verbose','xhigh','\x20login\x20--env\x20<alpha|staging|production>`\x20(or\x20`--url\x20<deployment-url>`\x20for\x20Automation\x20Suite)\x20first.','actionable_error','Interop\x20stopped\x20(if\x20it\x20was\x20running).','total_quota_pu','low','\x20(resets\x20','lockReason','No\x20turn\x20','\x20tokens\x0a','.aria','taskAutomation','structuredError','signal','Enter\x20one\x20number\x20from\x201\x20to\x20','lastType','1355768dvTcdJ','return','existsSync','\x20login\x20--url\x20https://automationsuite.contoso.com','--days\x20applies\x20to\x20`','env','No\x20CLI\x20login\x20found.\x20Run\x20`','\x20check\x20[--env\x20NAME]\x20[--headless]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Verify\x20auth,\x20backend\x20readiness,\x20backend\x20and\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20interop\x20without\x20sending\x20a\x20prompt;\x20exits\x201\x20when\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20any\x20check\x20fails\x0a\x20\x20','intro','\x20sessions\x20on\x20','export','STATUS','alreadyCompleted','--quiet','\x20delegations\x20accept\x20<id>\x0a','startsWith','restore','toISOString','write','\x20evaluate|rerank|verify\x20FILE|-\x20[--model\x20ID]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Stateless\x20typed\x20judgments:\x20send\x20the\x20JSON\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20request\x20in\x20FILE\x20(or\x20stdin\x20with\x20-)\x20to\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20/v1/completions/<command>\x20and\x20print\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20answers;\x20--model\x20overrides\x20its\x20\x22model\x22.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Exits\x201\x20when\x20the\x20backend\x20rejects\x20it\x0a\x20\x20','Enter\x20a\x20number\x20','name','\x20from\x20','From\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','%\x20of\x20','add','\x20\x20(sub-agent\x20of\x20','sendMessage','unit','\x20into\x20','items','map','\x20login`\x20only.','\x20sessions\x20rename\x20ID\x20TITLE\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Rename\x20a\x20session\x20(1-500\x20characters)\x0a\x20\x20','69456hfToLq',',\x20or\x20holds\x20no\x20message\x20','a\x20turn\x20id','now','\x20delegations\x20complete\x20','Token:\x20\x20\x20\x20\x20\x20\x20\x20expires\x20','--include-subagents','an\x20email\x20address\x20or\x20name','\x20needs\x20a\x20JSON\x20request:\x20','tool','step','models','pop','delegations\x20complete\x20<delegation-id>\x20\x22<answer>\x22|-','):\x0a\x0a','Already\x20accepted','delegations','\x20sessions\x20','model','\x20active\x20days','--tenant\x20requires\x20a\x20tenant\x20name.','[saved\x20login]\x20Backend\x20URL:\x20','widget','\x20is\x20required.\x0a','login','\x0aStopping…\x20(Ctrl+C\x20again\x20to\x20force\x20exit)\x0a','Turn:\x20','sourceUserEmail','headless','total_prompt_tokens','bucket','\x20--session\x20','oneTurn','--input-format\x20stream-json\x20needs\x20--output-format\x20stream-json:\x20the\x20steering\x20messages\x20are\x20answered\x20on\x20stdout.','\x20<title>','turn_start','fork','self-hosted\x20(Automation\x20Suite\x20/\x20Dedicated)','limit','pendingResults','\x20sessions\x20cancel\x20ID\x20--turn\x20TURN\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Cancel\x20turn\x20TURN\x20running\x20on\x20session\x20ID\x20in\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20another\x20process;\x20exits\x201\x20when\x20no\x20such\x20turn\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20is\x20in\x20progress\x0a\x20\x20','cartographer','\x20\x22<prompt>\x22\x0a','finish',';\x20the\x20saved\x20login\x20still\x20uses\x20','limit_enabled','Removed\x20','\x20in\x20progress\x20on\x20session\x20','multiSelect','Unknown\x20flag:\x20','print','delete','getSessionId','a\x20briefing\x20text','text','AUTH_TOKEN_FILE\x20\x27','Spending:\x20\x20\x20\x20\x20$','\x20(in\x20','results','findLast','\x20\x20\x20\x20Not\x20available\x20on\x20this\x20plan','Claimed\x20from\x20delegation\x20','options','abort','\x20PU','Numbers,\x20separated\x20by\x20commas\x20(Enter\x20to\x20skip):\x20','tenantId','--version','Tenant:\x20\x20\x20\x20\x20\x20\x20','No\x20CLI\x20login\x20found.\x20Note:\x20the\x20CLI\x20is\x20currently\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20','\x20(type\x20your\x20own)','answers','isArray','dismiss','transcribe','models_breakdown','prompt_tokens','host','delegations\x20cancel\x20<delegation-id>','tool_call','\x20login`\x20only.\x20Switch\x20tenants\x20with:\x20','\x20[flags]\x20[\x22<prompt>\x22]\x20\x20\x20\x20Start\x20a\x20conversation\x20in\x20a\x20terminal\x0a\x20\x20','>.\x0a','--verbose','Base\x20URL:\x20\x20\x20\x20\x20','utf-8','--no-connections','skip','--turn','from\x20','orgLogicalName','\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\x20',')\x20—\x20saved\x20to\x20','never','entries','flags','pending','Session:\x20','--url','Unknown\x20sessions\x20action:\x20','--skip-env-check\x20applies\x20to\x20`','description','a\x20format\x20(','\x20login`\x20only.\x20Other\x20commands\x20follow\x20the\x20saved\x20login,\x20or\x20--backend\x20<url>.','SIGINT','baseUrl','\x20this\x20month','user','hide','includes','\x0aAvailable\x20models\x20(','question','A\x20steering\x20message\x20was\x20not\x20sent:\x20','maps','outputFormat','a\x20colleague','from','\x20sessions\x20[list]\x20[--page\x20N]\x20[--limit\x20N]\x20[--include-subagents]','alpha','version','token_units','No\x20delegations.\x0a','More:\x20','unknown','rubric_version','filter','\x20login).\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20localhost\x20→\x20http://localhost:5002.\x20No\x20saved\x20login\x20and\x20no\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--env/--backend/BACKEND_URL\x20is\x20an\x20error\x20—\x20never\x20a\x20guess.\x0a\x20\x20--url\x20BASE\x20\x20\x20\x20\x20\x20\x20\x20(login)\x20Base\x20URL\x20of\x20a\x20deployment\x20that\x20is\x20not\x20a\x20named\x20cloud\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20—\x20Automation\x20Suite,\x20Dedicated,\x20Public\x20Sector.\x20Accepts\x20a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20tenant\x20path\x20or\x20a\x20trailing\x20/identity_\x20and\x20reduces\x20it\x20to\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20origin.\x20Mutually\x20exclusive\x20with\x20--env;\x20also\x20settable\x20via\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20UIPATH_BASE_URL.\x20Alias:\x20--authority.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Automation\x20Suite\x20needs\x2026.10+\x20with\x20the\x20Delegate\x20service;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20the\x20deployment\x20rejects\x20the\x20built-in\x20client,\x20register\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20your\x20own\x20—\x20see\x20UIPATH_CLIENT_ID\x20in\x20the\x20README\x0a\x20\x20--skip-env-check\x20\x20(login)\x20Do\x20not\x20check\x20the\x20deployment\x20before\x20signing\x20in.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Escape\x20hatch\x20for\x20a\x20deployment\x20that\x20hides\x20its\x20OIDC\x20discovery\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20document\x20or\x20serves\x20Identity\x20from\x20another\x20origin;\x20it\x20also\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20gives\x20up\x20the\x20diagnosis\x20when\x20something\x20is\x20really\x20wrong\x0a\x20\x20--backend\x20URL\x20\x20\x20\x20\x20Full\x20backend\x20URL\x20—\x20escape\x20hatch\x20overrides\x20--env\x0a\x20\x20--tenant\x20NAME\x20\x20\x20\x20\x20(login)\x20Tenant\x20to\x20sign\x20into,\x20by\x20name\x20(case-insensitive).\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default:\x20the\x20saved\x20login\x27s\x20tenant\x20on\x20that\x20cloud,\x20else\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20org\x27s\x20first\x20tenant.\x20Later:\x20','object','page','task','the\x20JSON\x20schema','choice\x20','--runner-url','\x20PU\x20beyond\x20quota','260921FJRGGd','No\x20one\x20matches\x20\x22','\x20token\x20units)','\x20to\x20','race','destroy','--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`','Licensing:\x20\x20\x20\x20','\x20delegation\x20','767148LNTMLw','endQuestions','[env=','questions','toolName','Unknown\x20usage\x20view:\x20',',\x20got\x20','Title\x20\x20\x20\x20\x20\x20\x20\x20\x20','padEnd','\x20delegations\x20','\x20sessions`\x20only.','a\x20directory\x20path','sessions','check','choice','computerUse','Something\x20else','\x20models)\x20before\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20run\x20starts;\x20an\x20unknown\x20id\x20fails\x20and\x20lists\x20the\x20valid\x20ones.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default:\x20gpt_5_6_luna.\x20Also\x20settable\x20via\x20MODEL\x20env\x20var.\x0a\x20\x20--keep-alive\x20\x20\x20\x20\x20\x20Reuse/leave\x20interop\x20running\x20across\x20invocations\x0a\x20\x20--headless\x20\x20\x20\x20\x20\x20\x20\x20Skip\x20interop\x20(text-only\x20prompts)\x0a\x20\x20--no-computer-use\x20Keep\x20interop\x20—\x20file,\x20Office,\x20PDF\x20and\x20shell\x20tools\x20keep\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20working\x20—\x20but\x20drop\x20the\x20screen:\x20no\x20screenshots,\x20no\x20window\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20list,\x20no\x20UI-automation\x20tools.\x20Cuts\x20image\x20tokens\x20and\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20per-turn\x20screen\x20capture,\x20and\x20stops\x20desktop\x20window\x20titles\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20leaving\x20the\x20machine.\x20Use\x20for\x20document\x20and\x20file\x20work.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--headless\x20implies\x20this\x20and\x20turns\x20interop\x20off\x20as\x20well\x0a\x20\x20--no-connections\x20\x20Disable\x20orchestrator\x20ConnectionService\x20(silences\x20404\x20warnings)\x0a\x20\x20--no-security\x20\x20\x20\x20\x20Disable\x20tool\x20security\x20wrapper\x20(use\x20only\x20for\x20debugging)\x0a\x20\x20--no-memory\x20\x20\x20\x20\x20\x20\x20Do\x20not\x20send\x20the\x20Delegate\x20app\x27s\x20local\x20long-term\x20memories\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20with\x20each\x20turn,\x20and\x20do\x20not\x20ask\x20the\x20model\x20to\x20save\x20new\x20ones\x0a\x20\x20--task-automation\x20Record\x20every\x20UI\x20action\x20of\x20the\x20run,\x20with\x20the\x20selector\x20of\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20element\x20it\x20acted\x20on,\x20to\x20<working-dir>/captures/<session>/\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(~/.aria-sdk\x20without\x20--working-dir),\x20so\x20you\x20can\x20then\x20ask\x20for\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20task\x20as\x20a\x20UiPath\x20coded\x20workflow\x20(uipath-taskautomation\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20skill).\x20The\x20log\x20holds\x20on-screen\x20text\x20and\x20your\x20requests;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20typed\x20values\x20are\x20masked.\x20Needs\x20computer\x20use.\x20Ignored\x20with\x20a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20warning\x20where\x20the\x20deployment\x20does\x20not\x20offer\x20it\x20yet\x0a\x20\x20--attach\x20PATH\x20\x20\x20\x20\x20File\x20or\x20folder\x20sent\x20with\x20the\x20first\x20message\x20(repeatable),\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20as\x20the\x20Delegate\x20app\x20sends\x20attached\x20files:\x20images\x20inline,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20PDFs\x20and\x20other\x20documents\x20as\x20a\x20path\x20the\x20agent\x20reads,\x20text\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20inline\x20up\x20to\x2016,000\x20characters.\x2030\x20MiB\x20per\x20message\x20in\x20all;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20larger\x20files\x20go\x20as\x20a\x20path.\x20In\x20a\x20conversation,\x20later\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20messages\x20carry\x20none\x20of\x20their\x20own,\x20but\x20the\x20first\x20message\x27s\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20stay\x20in\x20context\x0a\x20\x20--preload-skill\x20NAME\x20\x20Preload\x20a\x20skill\x20into\x20the\x20session\x20(repeatable).\x20The\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20skill\x27s\x20content\x20is\x20attached\x20before\x20the\x20first\x20model\x20turn\x20—\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20same\x20mechanism\x20as\x20project\x20preloaded\x20skills\x20in\x20the\x20app\x0a\x20\x20--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--vertical\x20ID\x20\x20\x20\x20\x20Run\x20the\x20session\x20as\x20that\x20product\x27s\x20vertical,\x20as\x20its\x20tab\x20in\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20desktop\x20app\x20does,\x20with\x20no\x20desktop\x20app\x20installed.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default:\x20none\x0a\x20\x20--working-dir\x20PATH\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Shell\x20cwd\x20for\x20the\x20agent\x20and\x20root\x20for\x20SDK-local\x20state.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Relative\x20paths\x20resolve\x20against\x20the\x20current\x20directory;\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20directory\x20is\x20created\x20if\x20missing\x0a\x20\x20--skills-path\x20PATH\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Folder\x20of\x20custom\x20skills,\x20loaded\x20on\x20top\x20of\x20the\x20skills\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20package\x20ships;\x20wins\x20on\x20a\x20name\x20clash\x20(also:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20DELEGATE_BUNDLED_SKILLS_PATH)\x0a\x20\x20--effort\x20TIER\x20\x20\x20\x20\x20Reasoning\x20effort:\x20low\x20|\x20medium\x20|\x20high\x20|\x20xhigh\x20|\x20max.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default:\x20the\x20model\x27s\x20recommended\x20tier\x0a\x20\x20--session\x20ID\x20\x20\x20\x20\x20\x20Continue\x20an\x20existing\x20backend\x20session\x20(an\x20unknown\x20id\x20exits\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x201;\x20the\x20backend\x20assigns\x20new\x20ids).\x20For\x20complete:\x20the\x20session\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20whose\x20history\x20is\x20the\x20context\x0a\x20\x20--json-schema\x20FILE\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20JSON\x20schema\x20the\x20structured\x20answer\x20must\x20match\x20(complete,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20and\x20prompts:\x20implies\x20--print)\x0a\x20\x20--runner-url\x20URL\x20\x20(host)\x20Runner\x20worker\x20WS\x20URL.\x20Required;\x20or\x20CONTROL_PLANE_WS_URL\x20env\x0a\x20\x20--interop\x20PATH\x20\x20\x20\x20(host)\x20Interop\x20binary\x20path;\x20or\x20INTEROP_EXECUTABLE_PATH\x20env.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Absent\x20→\x20registration/discovery\x20only,\x20tool\x20execution\x20disabled\x0a\x20\x20--worker-id\x20ID\x20\x20\x20\x20(host)\x20Stable\x20worker\x20identity;\x20or\x20WORKER_ID\x20env.\x20Default:\x20hostname\x0a\x20\x20--page\x20N\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(sessions)\x20Page\x20to\x20show,\x20from\x201.\x20Default:\x201\x0a\x20\x20--limit\x20N\x20\x20\x20\x20\x20\x20\x20\x20\x20(sessions)\x20Rows\x20per\x20page,\x201-100.\x20Default:\x2030\x0a\x20\x20--include-subagents\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(sessions)\x20Also\x20list\x20sub-agent\x20sessions,\x20hidden\x20by\x20default\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20as\x20in\x20the\x20desktop\x20app\x27s\x20history\x0a\x20\x20--to\x20WHO\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(delegations\x20create)\x20Assign\x20to\x20this\x20person:\x20an\x20email,\x20or\x20a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20name\x20that\x20matches\x20exactly\x20one\x20colleague\x20(see\x20org-users)\x0a\x20\x20--summary\x20TEXT\x20\x20\x20\x20(delegations\x20create)\x20The\x20briefing\x20the\x20person\x20starts\x20from.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default:\x20empty,\x20for\x20a\x20task\x20that\x20stands\x20on\x20its\x20own\x0a\x20\x20--output-format\x20FMT\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20text\x20(default)\x20|\x20json\x20|\x20stream-json.\x20json\x20prints\x20one\x20result\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20object\x20on\x20exit;\x20stream-json\x20prints\x20every\x20agent\x20event\x20as\x20one\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20JSON\x20line,\x20then\x20the\x20result.\x20Both\x20keep\x20stdout\x20JSON-only\x20(logs,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20progress\x20and\x20the\x20session\x20id\x20go\x20to\x20stderr),\x20imply\x20--print,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20and\x20exit\x201\x20when\x20the\x20turn\x20ends\x20in\x20error.\x20Also\x20honoured\x20by\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20every\x20subcommand\x20that\x20prints\x20a\x20result\x20(all\x20but\x20login,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20logout,\x20tenant\x20and\x20host)\x0a\x20\x20--input-format\x20FMT\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20text\x20(default)\x20|\x20stream-json.\x20stream-json\x20reads\x20one\x20JSON\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20user\x20message\x20per\x20line\x20on\x20stdin\x20while\x20the\x20turn\x20runs:\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20first\x20is\x20the\x20prompt\x20(give\x20none\x20as\x20an\x20argument),\x20each\x20later\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20one\x20steers\x20the\x20turn\x20in\x20flight.\x20Needs\x20--output-format\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20stream-json\x0a\x20\x20--replay-user-messages\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(--input-format\x20stream-json)\x20Echo\x20each\x20steering\x20message\x20on\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20stdout\x20(isReplay:\x20true,\x20same\x20uuid)\x20once\x20the\x20agent\x20takes\x20it\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','numeric','getSessionMessages','\x20sessions\x20show|delete\x20ID\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20one\x20session\x27s\x20title\x20and\x20owner,\x20or\x20delete\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20it\x20with\x20its\x20messages\x20and\x20sub-agents\x20(no\x20prompt)\x0a\x20\x20','end','exports','\x20runs\x20without\x20computer\x20use.','dismissed','bundledSkillsPath','Owner\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20or\x20your\x20own\x20answer','refused','stdout','\x20sessions\x20cancel`\x20only.','--tenant\x20applies\x20to\x20`','tenant','/exit','origin','stop','Switch\x20with:\x20','Unknown\x20delegations\x20action:\x20','\x20—\x20','close','--json-schema','noConnections','run','product','--cleanup','2694IMibrl','\x0aAccept\x20one\x20with:\x20','`delegate-cli\x20','Use:\x20','round','operands','\x20(optional)','claim','total_completion_tokens','exit','--replay-user-messages\x20needs\x20--input-format\x20stream-json.','`delegate-cli\x20--vertical\x20cartographer`','removeEventListener','Delegate\x20agent\x20CLI','\x20\x22<prompt>\x22\x0aAnswer\x20with:\x20',']\x20(Enter\x20for\x20','\x20sessions\x20cancel\x20','thinking','a\x20vertical\x20id','complete\x20needs\x20--json-schema\x20<file>:\x20','Bearer\x20','Date\x20\x20\x20\x20\x20\x20\x20\x20Token\x20units\x20\x20Prompt\x20tokens\x20\x20Completion\x20tokens','repeat','an\x20effort\x20tier','cancel','delegations\x20dismiss\x20<delegation-id>','keys','\x20(current)','Deployment:\x20\x20\x20','score','--skills-path','error','tenantName','\x20(Enter\x20to\x20skip):\x20','projectId','exitCode','--no-computer-use','--input-format\x20stream-json\x20reads\x20the\x20prompt\x20from\x20stdin:\x20pass\x20no\x20prompt\x20argument.','\x20usage\x20[--session\x20ID]\x20\x20\x20\x20Quota\x20and\x20spend:\x20licensing\x20quota,\x20monthly\x20spend\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20and\x20cap\x0a\x20\x20','toFixed','environment\x20variables\x20(AUTH_TOKEN/TENANT_ID/ORG_ID)','commands','replace','toString','total_cost_usd','delegateTo','The\x20saved\x20CLI\x20login\x20could\x20not\x20be\x20refreshed.\x20Run\x20`','\x20cap','label','org-users','subcommand','inputFormat','Drop\x20--headless\x20and\x20--no-computer-use.','--page','delegations\x20claim\x20<delegation-id|delegate://delegation/…>','expiresAt','\x20sessions\x20[list]`\x20only.','\x20is\x20not\x20valid\x20JSON\x20(','result','\x20delegations\x20pending\x20SESSION\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Answers\x20to\x20delegations\x20from\x20SESSION\x20that\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20await\x20acceptance\x20(poll\x20this)\x0a\x20\x20','date','\x20must\x20be\x20a\x20JSON\x20object.','--session\x20applies\x20to\x20the\x20`','bind','--help','\x20tenant\x20<name>','isInteger','60lMlYIr','test','machineOutput','once','complete\x20needs\x20a\x20prompt:\x20','isError','runnerUrl','It\x20always\x20runs\x20the\x20Cartographer\x20vertical,\x20without\x20computer\x20use,\x20with\x20the\x20Cartographer\x20skills\x20preloaded,\x0aand\x20has\x20the\x20export\x20and\x20maps\x20commands.\x20Install\x20it\x20(npm\x20install\x20@uipath/cartographer-cli)\x20and\x20run:\x0a','backendUrl','\x20days:\x20','.\x20Use\x20alpha\x20|\x20staging\x20|\x20production\x20|\x20localhost.','deleted','followUpsRenderer','Renamed\x20','sessionId','the\x20request','--skip-env-check','url','opt-in','days','\x20is\x20deprecated:\x20Cartographer\x20has\x20its\x20own\x20CLI\x20now,\x20@uipath/cartographer-cli.\x0a','\x20\x20\x20\x20','\x20runs\x20the\x20','assignedUserEmail','Licensing:\x20\x20\x20\x20no\x20licensing\x20quota\x20applies','delegate-cli','\x20\x20TITLE\x0a','Accepted','an\x20input\x20line\x20is\x20not\x20JSON','completion_tokens','Cancel\x20requested\x20for\x20turn\x20','parse','Continue\x20it\x20with:\x20','from\x201\x20to\x20','\x20delegations\x20complete\x20ID\x20\x22<answer>\x22|-\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Send\x20the\x20answer\x20to\x20a\x20delegation\x20you\x20claimed\x0a\x20\x20','9bMLHEV','rejection','attachments','\x27\x20is\x20empty.','Delegation\x20\x20\x20\x20','cwd','effort','period_days','activity','workerId','resume','typed','--attach\x20applies\x20to\x20prompts\x20only.','1277550xjefTd','Usage:\x20','--output-format\x20','message',']\x20Backend\x20URL:\x20','push','Last\x20','--tenant','delegation','Enter\x20sends\x20a\x20message.\x20/exit\x20or\x20EOF\x20exits;\x20Ctrl+C\x20stops\x20and\x20exits.\x0a','uuid','string','\x20-\x20','\x20\x20from\x20','whoami','a\x20project\x20id','\x20(resume\x20with\x20--session\x20','daily_usage','complete','resolve','UiPath\x20Cloud','total_sessions','shift','create','commandFlags','cleanup','structured','\x20--print\x20\x22<prompt>\x22\x20\x20\x20\x20\x20\x20Send\x20one\x20prompt,\x20print\x20the\x20response,\x20and\x20exit\x0a\x20\x20','data','displayName','a\x20number','\x20min)','valueFlags','Steering\x20input\x20stopped:\x20','accessToken','tokenExpiresAt','deployment','Invalid\x20--output-format:\x20','\x20complete`\x20only.','high','Invalid\x20--input-format:\x20','\x20<id>','\x20usage\x20activity|daily`;\x20the\x20summary\x20covers\x20the\x20current\x20month.','parentSessionId','--input-format\x20and\x20--replay-user-messages\x20apply\x20to\x20prompts\x20only.','\x20delegations\x20accept|dismiss|cancel|delete\x20ID\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Take\x20an\x20answer\x20into\x20its\x20session,\x20drop\x20it,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20withdraw\x20a\x20live\x20delegation,\x20or\x20delete\x20it\x0a\x20\x20','isDesktopFallback','sourceTitle','verify','\x20of\x20session\x20','probability','prompt','--turn\x20applies\x20to\x20`','--attach','✓\x20Done\x0a','No\x20sessions\x20on\x20page\x20','\x20|\x20','stack','No\x20CLI\x20login\x20found\x20—\x20nothing\x20to\x20remove.','transcribe:\x20cannot\x20read\x20','input','🔧\x20','byoWarning','jsonSchemaPath','accept','isFinite','You>\x20','Invalid\x20--env:\x20','cartographer-cli','type','show'];_0x134f=function(){return _0x44afa4;};return _0x134f();}function oe(_0x2f45b2){const _0x430725=_0x511361;return A(_0x2f45b2[_0x430725(0x23c)]??(_0x2f45b2[_0x430725(0x373)]===F?_0x430725(0x1ef):_0x2f45b2['id']));}function et(_0xf8a942,_0x2d7f71,_0x42f60b){const _0x35a7c2=_0x511361;let _0x4f1601=[''+(_0x42f60b>0x1?'['+_0x2d7f71+'/'+_0x42f60b+']\x20':'')+A(_0xf8a942[_0x35a7c2(0x371)])+(_0xf8a942['optional']?_0x35a7c2(0x212):''),A(_0xf8a942[_0x35a7c2(0x1bf)])];return _0xf8a942[_0x35a7c2(0x2c4)]===_0x35a7c2(0x186)&&_0xf8a942['options']['forEach']((_0x49742f,_0x598168)=>{const _0x38f911=_0x35a7c2;let _0x4dc05f=_0x49742f[_0x38f911(0x373)]===F?_0x38f911(0x196):'',_0x4312be=_0x49742f[_0x38f911(0x1b5)]?_0x38f911(0x28b)+A(_0x49742f[_0x38f911(0x1b5)]):'';_0x4f1601[_0x38f911(0x284)]('\x20\x20'+(_0x598168+0x1)+'.\x20'+oe(_0x49742f)+_0x4dc05f+_0x4312be);}),_0x4f1601['join']('\x0a');}function se(_0x1fbedc,_0x484e86){const _0x3a010f=_0x511361;let _0x122340=_0x1fbedc[_0x3a010f(0x2e0)](/[\s,]+/)[_0x3a010f(0x1cd)](Boolean);if(_0x122340['length']===0x0)return null;let _0x2a039b=_0x122340['map'](_0x3a74e3=>/^\d+$/[_0x3a010f(0x250)](_0x3a74e3)?Number(_0x3a74e3):NaN);return _0x2a039b[_0x3a010f(0x341)](_0x431a72=>!Number[_0x3a010f(0x24e)](_0x431a72)||_0x431a72<0x1||_0x431a72>_0x484e86)?null:[...new Set(_0x2a039b)]['map'](_0x3c7028=>_0x3c7028-0x1);}function tt(_0x560f18){const _0x37074c=_0x511361;return typeof _0x560f18==_0x37074c(0x1cf)&&_0x560f18!==null&&_0x37074c(0x1fb)in _0x560f18;}async function M(_0x470a9f,_0x14dea9,_0x5c4b33,_0x4ba6e4){const _0x3860d9=_0x511361;for(;;){let _0x1e4ea5=(await _0x470a9f(_0x14dea9))['trim']();if(_0x1e4ea5==='')return;let _0x4e9ea4=_0x4ba6e4(_0x1e4ea5);if(!tt(_0x4e9ea4))return _0x4e9ea4;_0x5c4b33(_0x4e9ea4[_0x3860d9(0x1fb)]+'\x0a');}}async function nt(_0x120bc5,_0x44cb61,_0x42ede9){const _0x569766=_0x511361;if(_0x120bc5['options'][_0x569766(0x342)]===0x0||_0x120bc5[_0x569766(0x18e)][_0x569766(0x351)](_0x202e33=>_0x202e33[_0x569766(0x373)]===F)){let _0x578975=(await _0x44cb61('Your\x20answer\x20(Enter\x20to\x20skip):\x20'))[_0x569766(0x32f)]();return _0x578975===''?void 0x0:{'text':_0x578975};}let _0x2088a9=_0x120bc5['options'][_0x569766(0x338)](_0x30df42=>_0x30df42[_0x569766(0x373)]===F),_0x5723e5=_0x120bc5[_0x569766(0x180)]?_0x569766(0x191):'Number'+(_0x2088a9>=0x0?_0x569766(0x1fa):'')+_0x569766(0x22d),_0x257eb0=await M(_0x44cb61,_0x5723e5,_0x42ede9,_0x52abdb=>{const _0xe3e0e0=_0x569766;let _0x404ef4=se(_0x52abdb,_0x120bc5[_0xe3e0e0(0x18e)]['length']);return _0x404ef4&&(_0x120bc5[_0xe3e0e0(0x180)]||_0x404ef4[_0xe3e0e0(0x342)]===0x1)?_0x404ef4:!_0x120bc5[_0xe3e0e0(0x180)]&&_0x2088a9>=0x0?{'typed':_0x52abdb}:{'refused':_0x120bc5[_0xe3e0e0(0x180)]?_0xe3e0e0(0x34a)+_0x120bc5[_0xe3e0e0(0x18e)][_0xe3e0e0(0x342)]+'.':'Enter\x20one\x20number\x20from\x201\x20to\x20'+_0x120bc5[_0xe3e0e0(0x18e)][_0xe3e0e0(0x342)]+'.'};});if(_0x257eb0===void 0x0)return;if(!Array[_0x569766(0x198)](_0x257eb0))return{'text':_0x257eb0[_0x569766(0x27d)]};let _0x13bd91=_0x257eb0[_0x569766(0x14d)](_0x4acd81=>_0x120bc5['options'][_0x4acd81]['id']),_0x127e71=_0x13bd91['includes'](F)?await M(_0x44cb61,oe(_0x120bc5[_0x569766(0x18e)][_0x2088a9])+':\x20',_0x42ede9,_0x4dc863=>_0x4dc863):void 0x0;if(!(_0x13bd91['includes'](F)&&_0x127e71===void 0x0))return _0x120bc5[_0x569766(0x180)]?{'optionIds':_0x13bd91,..._0x127e71!==void 0x0?{'text':_0x127e71}:{}}:_0x127e71!==void 0x0?{'text':_0x127e71}:{'optionId':_0x13bd91[0x0]};}async function ot(_0x4e872a,_0x52e07d,_0x2c7412){const _0x4ea4ac=_0x511361;let _0x32d3df={};for(let _0x51ec6f of _0x4e872a[_0x4ea4ac(0x33e)]){let _0xc27adc=_0x51ec6f[_0x4ea4ac(0x33c)]??_0x51ec6f[_0x4ea4ac(0x30b)],_0xbb78ba=_0x51ec6f[_0x4ea4ac(0x15a)]??0x1,_0x133eab=_0x51ec6f['unit']?'\x20'+A(_0x51ec6f[_0x4ea4ac(0x14a)]):'',_0x4a55fb=_0x4ea4ac(0x1a9)+_0x51ec6f['min']+_0x4ea4ac(0x1d9)+_0x51ec6f[_0x4ea4ac(0x35a)]+(_0xbb78ba!==0x1?_0x4ea4ac(0x324)+_0xbb78ba:''),_0x114b13=await M(_0x52e07d,A(_0x51ec6f[_0x4ea4ac(0x23c)])+'\x20['+_0x51ec6f['min']+'-'+_0x51ec6f[_0x4ea4ac(0x35a)]+_0x133eab+_0x4ea4ac(0x21b)+_0xc27adc+'):\x20',_0x2c7412,_0x1fb4b1=>{const _0x43218d=_0x4ea4ac;let _0x1453f6=Number(_0x1fb4b1);return Number[_0x43218d(0x2c0)](_0x1453f6)&&_0x1453f6>=_0x51ec6f[_0x43218d(0x30b)]&&_0x1453f6<=_0x51ec6f['max']&&_0xa50403(_0x1453f6,_0x51ec6f[_0x43218d(0x30b)],_0xbb78ba)?_0x1453f6:{'refused':_0x43218d(0x142)+_0x4a55fb+'.'};});_0x32d3df[_0x51ec6f['id']]=_0x114b13??_0xc27adc;}return{'values':_0x32d3df};}async function st(_0x250498,_0x2fce1c,_0x47ea5c){const _0x17a48a=_0x511361;_0x47ea5c(_0x250498[_0x17a48a(0x350)][_0x17a48a(0x14d)]((_0x4422b8,_0x172956)=>'\x20\x20'+(_0x172956+0x1)+'.\x20'+A(_0x4422b8[_0x17a48a(0x23c)]))['join']('\x0a')+'\x0a');let _0x3b658d={};for(let _0x3e67db of _0x250498[_0x17a48a(0x14c)]){let _0x43f31a=await M(_0x2fce1c,A(_0x3e67db[_0x17a48a(0x23c)])+':\x20bucket\x20number\x20(Enter\x20to\x20leave\x20out):\x20',_0x47ea5c,_0x5857ac=>{const _0x1b7591=_0x17a48a;let _0x4f2223=se(_0x5857ac,_0x250498['buckets'][_0x1b7591(0x342)]);return _0x4f2223&&_0x4f2223['length']===0x1?_0x4f2223[0x0]:{'refused':_0x1b7591(0x12c)+_0x250498[_0x1b7591(0x350)][_0x1b7591(0x342)]+'.'};});if(_0x43f31a===void 0x0)continue;let _0x36bf32=_0x250498[_0x17a48a(0x350)][_0x43f31a],_0x26ea3e={};for(let _0x543883 of _0x36bf32[_0x17a48a(0x320)]??[]){let _0x338c18='\x20\x20'+A(_0x543883[_0x17a48a(0x23c)])+(_0x543883[_0x17a48a(0x2fa)]?_0x17a48a(0x212):'')+':\x20',_0x1625e8=await M(_0x2fce1c,_0x338c18,_0x47ea5c,_0x4f843f=>_0x4f843f);for(;_0x1625e8===void 0x0&&!_0x543883['optional'];)_0x47ea5c(A(_0x543883[_0x17a48a(0x23c)])+_0x17a48a(0x167)),_0x1625e8=await M(_0x2fce1c,_0x338c18,_0x47ea5c,_0x2635ab=>_0x2635ab);_0x1625e8!==void 0x0&&(_0x26ea3e[_0x543883['id']]=_0x1625e8);}_0x3b658d[_0x3e67db['id']]={'bucket':_0x36bf32['id'],...Object[_0x17a48a(0x226)](_0x26ea3e)[_0x17a48a(0x342)]>0x0?{'subFields':_0x26ea3e}:{}};}return Object['keys'](_0x3b658d)[_0x17a48a(0x342)]>0x0?{'assignments':_0x3b658d}:void 0x0;}async function rt(_0x181588,_0x2f51c1,_0x1c747c){const _0x1afd3d=_0x511361;if(_0x181588[_0x1afd3d(0x2c4)]==='text')return nt(_0x181588,_0x2f51c1,_0x1c747c);if(_0x181588[_0x1afd3d(0x2c4)]===_0x1afd3d(0x1f1))return ot(_0x181588,_0x2f51c1,_0x1c747c);if(_0x181588['type']===_0x1afd3d(0x16e))return st(_0x181588,_0x2f51c1,_0x1c747c);let _0x4e2e65=(await _0x2f51c1(_0x1afd3d(0x318)))[_0x1afd3d(0x32f)]();return _0x4e2e65===''?void 0x0:{'text':_0x4e2e65};}function re(_0x4d9972,_0x18b70d){return async _0x4a22d7=>{const _0x21ba79=_0xaca4;let _0x40cee8=_0x4d9972();if(!_0x40cee8)throw new Error('There\x20is\x20no\x20terminal\x20input\x20to\x20answer\x20from.');let _0x574b92=async _0x323d65=>{const _0x1fed68=_0xaca4;if(_0x4a22d7[_0x1fed68(0x12b)]['aborted'])throw new Error('The\x20turn\x20was\x20cancelled.');let _0x270d0d=await _0x40cee8[_0x1fed68(0x2f7)](_0x323d65,_0x4a22d7['signal']);if(_0x270d0d===null)throw new Error('Input\x20closed\x20before\x20the\x20question\x20was\x20answered.');return _0x270d0d;};try{_0x18b70d('\x0a'+(_0x4a22d7[_0x21ba79(0x136)]?A(_0x4a22d7[_0x21ba79(0x136)])+'\x0a':''));let _0x1fbdcb={};for(let [_0x2e9abb,_0x2c1404]of _0x4a22d7[_0x21ba79(0x1e2)][_0x21ba79(0x1ae)]()){_0x18b70d('\x0a'+et(_0x2c1404,_0x2e9abb+0x1,_0x4a22d7[_0x21ba79(0x1e2)][_0x21ba79(0x342)])+'\x0a');let _0x137186=await rt(_0x2c1404,_0x574b92,_0x18b70d);_0x137186!==void 0x0&&(_0x1fbdcb[_0x2c1404['id']]=_0x137186);}return{'answers':_0x1fbdcb};}finally{_0x40cee8[_0x21ba79(0x1e0)]();}};}var F,ie=L(()=>{const _0x250789=_0x511361;F=_0x250789(0x2d0);});import{createInterface as _0x4b51f5}from'node:readline';function ae(_0x2784c5){const _0x47e962=_0x511361;return B[_0x47e962(0x1bd)](_0x2784c5);}function at(_0x5b82b9){const _0x4f936f=_0x511361;if(typeof _0x5b82b9==_0x4f936f(0x28a))return _0x5b82b9;if(!Array[_0x4f936f(0x198)](_0x5b82b9))return;let _0xa7c560=[];for(let _0xf3da9f of _0x5b82b9){if(typeof _0xf3da9f!=_0x4f936f(0x1cf)||_0xf3da9f===null)return;let {type:_0x5c21f5,text:_0x2fd758}=_0xf3da9f;if(_0x5c21f5!==_0x4f936f(0x186)||typeof _0x2fd758!=_0x4f936f(0x28a))return;_0xa7c560[_0x4f936f(0x284)](_0x2fd758);}return _0xa7c560[_0x4f936f(0x311)]('\x0a');}function lt(_0x32a412){const _0x2b29b9=_0x511361;if(_0x32a412['trim']()==='')return null;let _0x38a079;try{_0x38a079=JSON[_0x2b29b9(0x26e)](_0x32a412);}catch{throw new C(_0x2b29b9(0x26b));}if(typeof _0x38a079!=_0x2b29b9(0x1cf)||_0x38a079===null)throw new C('an\x20input\x20line\x20is\x20not\x20a\x20JSON\x20object');let {type:_0xb256d5,message:_0x15d53d,uuid:_0x52adc5}=_0x38a079;if(_0xb256d5!==_0x2b29b9(0x1bb))throw new C('an\x20input\x20line\x20has\x20type\x20'+JSON[_0x2b29b9(0x2d3)](_0xb256d5)+',\x20not\x20\x22user\x22');let _0x340cd9=at(_0x15d53d?.['content']);if(_0x340cd9===void 0x0)throw new C('an\x20input\x20line\x20has\x20no\x20message.content,\x20a\x20string\x20or\x20a\x20list\x20of\x20text\x20blocks');if(_0x340cd9[_0x2b29b9(0x32f)]()==='')throw new C(_0x2b29b9(0x32c));return{'text':_0x340cd9,'uuid':typeof _0x52adc5==_0x2b29b9(0x28a)?_0x52adc5:void 0x0};}function le(_0x2369e4,_0x24c394){const _0xf93736=_0x511361;return JSON[_0xf93736(0x2d3)]({'type':_0xf93736(0x1bb),'message':{'role':_0xf93736(0x1bb),'content':_0x2369e4[_0xf93736(0x186)]},'session_id':_0x24c394,..._0x2369e4[_0xf93736(0x289)]===void 0x0?{}:{'uuid':_0x2369e4[_0xf93736(0x289)]},'isReplay':!0x0})+'\x0a';}async function*ce(_0x30687e,_0x44c729){const _0x3da596=_0x511361;let _0x120cf9=_0x4b51f5({'input':_0x30687e,'crlfDelay':0x1/0x0});try{for await(let _0x5f3504 of _0x120cf9){let _0x22d92e;try{_0x22d92e=lt(_0x5f3504);}catch(_0x4dc758){if(!(_0x4dc758 instanceof C))throw _0x4dc758;_0x44c729(_0x4dc758);continue;}_0x22d92e&&(yield _0x22d92e);}}finally{_0x120cf9[_0x3da596(0x206)]();}}var B,C,Q=L(()=>{const _0x298447=_0x511361;B=['text',_0x298447(0x315)],C=class extends Error{};});function de(_0x52c887){const _0x251194=_0x511361;let {input:_0x140715,getAgent:_0x3f6bdf,replay:_0x11d41b,onEvent:_0x123b08,write:_0xb16c36,warn:_0x4a6b2f,isRunStopNotice:_0x5c55cd,actionableErrorText:_0x229bd8}=_0x52c887,_0x369715=0x0,_0x58ce4e=0x0,_0x3d7fd8=Promise[_0x251194(0x292)](),_0x491107=!0x1,_0x2a0451=()=>{},_0x8654a1=new Promise(_0x5a341b=>{_0x2a0451=_0x5a341b;}),_0x4ef00e=[],_0x3eef42=_0x123b08(_0x9ec0be=>{const _0x1ef47e=_0x251194;_0x9ec0be[_0x1ef47e(0x2c4)]===_0x1ef47e(0x173)&&(_0x2a0451(),_0x4ef00e[_0x1ef47e(0x295)]()?.());}),_0x182317=_0x164ba0=>{const _0x479c61=_0x251194;_0x11d41b&&_0xb16c36(le(_0x164ba0,_0x3f6bdf()[_0x479c61(0x184)]()));},_0x5bb3e7=(async()=>{const _0x520bc2=_0x251194;await _0x8654a1;for await(let _0xa0e306 of _0x140715['messages']){if(_0x491107)return;_0x369715===0x0&&(_0x58ce4e=_0x3f6bdf()['getSessionMessages']()[_0x520bc2(0x342)]),_0x369715++;let _0x4762c1=new Promise(_0x355005=>{_0x4ef00e['push'](()=>{_0x182317(_0xa0e306),_0x355005();});}),_0x1fc5c6=()=>{const _0x2265fc=_0x520bc2;_0x369715--,_0x4ef00e[_0x2265fc(0x15c)]();},_0x8b43d=_0x3f6bdf()[_0x520bc2(0x36b)](_0xa0e306[_0x520bc2(0x186)]);_0x3d7fd8=_0x8b43d[_0x520bc2(0x325)](()=>{});try{await _0x8b43d?await Promise[_0x520bc2(0x1da)]([_0x4762c1,_0x3f6bdf()[_0x520bc2(0x365)]()]):(_0x1fc5c6(),_0x4a6b2f(_0x520bc2(0x356)));}catch(_0x5df339){_0x1fc5c6(),_0x4a6b2f(_0x520bc2(0x1c0)+(_0x5df339 instanceof Error?_0x5df339['message']:String(_0x5df339))+'\x0a');}}})()[_0x251194(0x325)](_0x202218=>{const _0x1c5103=_0x251194;_0x4a6b2f(_0x1c5103(0x2a0)+(_0x202218 instanceof Error?_0x202218[_0x1c5103(0x282)]:String(_0x202218))+'\x0a');});return{'settle':async _0x4f3eab=>{const _0x36be89=_0x251194;if(await _0x3d7fd8,_0x369715===0x0)return _0x4f3eab;await _0x3f6bdf()['waitForIdle']();for(let _0x2148be of _0x4ef00e)_0x2148be();_0x4ef00e=[];let _0x50e814=_0x3f6bdf()[_0x36be89(0x1f2)]()[_0x36be89(0x313)](_0x58ce4e)[_0x36be89(0x18b)](_0x1c57a0=>_0x1c57a0[_0x36be89(0x166)]===_0x36be89(0x120)||_0x5c55cd(_0x1c57a0)||_0x1c57a0[_0x36be89(0x2c4)]==='ai'&&_0x1c57a0[_0x36be89(0x166)]!=='agent_thought'&&_0x1c57a0[_0x36be89(0x166)]!==_0x36be89(0x25b)&&!!_0x1c57a0[_0x36be89(0x300)]);if(!_0x50e814)return{..._0x4f3eab,'failed':!0x0,'text':'The\x20steering\x20message\x20was\x20not\x20answered:\x20its\x20turn\x20did\x20not\x20run\x20or\x20added\x20no\x20reply.'};let _0x2dfe57=_0x50e814[_0x36be89(0x166)]==='actionable_error';return typeof _0x50e814[_0x36be89(0x300)]!=_0x36be89(0x28a)?{..._0x4f3eab,'failed':_0x2dfe57}:{..._0x4f3eab,'failed':_0x2dfe57,'text':_0x2dfe57?_0x229bd8(_0x50e814['content']):_0x50e814[_0x36be89(0x300)]};},'stop':()=>{_0x491107=!0x0,_0x3eef42(),_0x140715['close']();}};}var ue=L(()=>{Q();});import _0x36ff96 from'fs';import _0x38fab9 from'path';import{clearLine as _0x2145ee,createInterface as _0x309c94,cursorTo as _0x2c299f}from'node:readline';import{DelegateAgent as _0x424e66,cancelTurn as _0xeaf235,InteropProcess as _0x47cc61,complete as _0x3de08f,DEFAULT_MODEL as _0x23cd12,createBackendClient as _0x5c52af,evaluate as _0x18b90c,isCompletionRequestError as _0x459aaa,isEvaluationRequestError as _0x142f7f,isTranscriptionError as _0x271972,rerank as _0x268cbb,transcribe as _0x27a535,verify as _0x2eccaa,acceptDelegation as _0xec2084,cancelDelegation as _0x450b5c,claimDelegation as _0x5dcd0b,completeDelegation as _0x4f177a,createDelegation as _0x536afa,deleteDelegation as _0x5044aa,dismissDelegation as _0x23172c,getSessionDelegations as _0x5f20ad,isDelegationError as _0x5ae288,listDelegations as _0x572205,listOrgUsers as _0x25fa20,previewDelegation as _0x2169df,TurnResultCollector as _0x2965b9,agentEventToJsonLine as _0x2250b1,describeBaseUrlRejection as _0x52ab12,getActivitySummary as _0x1b527d,getAuthFilePath as _0x20be7e,getByoWarnings as _0x2bceb7,getDailyBreakdown as _0x718164,getLicensingSummary as _0x10bd58,getMonthlySpending as _0x67ab63,isOutputFormat as _0x419ee8,isCloudBaseUrl as _0x2fed20,isSafeProjectFolderSegment as _0x10dfed,listModels as _0x437103,listSessions as _0x2a73c3,getSession as _0x25a608,renameSession as _0x169c73,deleteSession as _0x1f6880,deleteSessionTaskLog as _0x2b7571,forkSession as _0x37da9f,isBackendRequestError as _0x4c363b,MAX_SESSION_PAGE_SIZE as _0x3d196f,listTenants as _0x3684a0,loadAndRefreshAuth as _0x106b32,loadAndRefreshSdkLogin as _0x19af4a,parsePlatformBaseUrl as _0x3bd5f2,resolveBackendUrl as _0x3ab8d9,runHealthCheck as _0x50b0d1,runHostCommand as _0x5b041d,runLoginFlow as _0xf6217f,runTurnForResult as _0x53c096,saveAuthData as _0x3a417a,switchTenant as _0x476766,toJsonLine as _0x3922ed,ENV_TO_CLOUD as _0x4c4bd4,OUTPUT_FORMATS as _0x3adbb8,isRunStopNotice as _0x1dafbf,extractActionableErrorText as _0x25ae9f}from'@uipath/delegate-sdk';function k(_0x5b49b1,_0x285863,_0x1a1099,_0x540d55){const _0x19c567=_0x511361;let _0x461a25=_0x5b49b1[_0x285863];return(!_0x461a25||_0x461a25[_0x19c567(0x342)]>0x1&&_0x461a25[_0x19c567(0x13d)]('-'))&&(console[_0x19c567(0x22b)](_0x1a1099+'\x20requires\x20'+_0x540d55+'.'),process[_0x19c567(0x215)](0x2)),_0x461a25;}function K(_0x1d13f9,_0x249756,_0x485d19,_0x36f693){const _0x26b159=_0x511361;let _0x3a69e1=k(_0x1d13f9,_0x249756,_0x485d19,_0x26b159(0x29d)),_0x4d365a=Number(_0x3a69e1);return(!/^\d+$/[_0x26b159(0x250)](_0x3a69e1)||_0x4d365a<0x1||!Number[_0x26b159(0x355)](_0x4d365a)||_0x36f693!==void 0x0&&_0x4d365a>_0x36f693)&&(console['error'](_0x485d19+_0x26b159(0x319)+(_0x36f693===void 0x0?'1\x20or\x20more':_0x26b159(0x270)+_0x36f693)+_0x26b159(0x1e5)+_0x3a69e1+'.'),process[_0x26b159(0x215)](0x2)),_0x4d365a;}function dn(_0x2abde2,_0x542f3b){const _0x3009e8=_0x511361;let _0xb137e={'product':_0x542f3b,'subcommand':'','prompt':'','print':!0x1,'keepAlive':!0x1,'cleanup':!0x1,'headless':!0x1,'commandFlags':{},'noComputerUse':_0x542f3b[_0x3009e8(0x1ee)]===_0x3009e8(0x1ad),'computerUse':!0x1,'noConnections':!0x1,'noSecurity':!0x1,'noMemory':!0x1,'taskAutomation':!0x1,'quiet':!0x1,'verbose':!0x1,'outputFormat':'text','inputFormat':_0x3009e8(0x186),'replayUserMessages':!0x1,'preloadSkills':[..._0x542f3b[_0x3009e8(0x368)]??[]],'attachments':[],'skipEnvCheck':!0x1,'includeSubAgents':!0x1,'operands':[],'help':!0x1,'version':!0x1},_0x5c7ccd=_0x542f3b[_0x3009e8(0x235)]?.['find'](_0xe27fb3=>_0xe27fb3[_0x3009e8(0x143)]===_0x2abde2[0x0]);_0x5c7ccd?(_0xb137e['command']=_0x5c7ccd,_0xb137e[_0x3009e8(0x23e)]=_0x5c7ccd['name'],_0x2abde2=_0x2abde2[_0x3009e8(0x313)](0x1)):ln[_0x3009e8(0x1bd)](_0x2abde2[0x0])&&(_0xb137e[_0x3009e8(0x23e)]=_0x2abde2[0x0],_0x2abde2=_0x2abde2[_0x3009e8(0x313)](0x1));let _0x3c5bbe=[];for(let _0x19dc6d=0x0;_0x19dc6d<_0x2abde2[_0x3009e8(0x342)];_0x19dc6d++){let _0x1b3788=_0x2abde2[_0x19dc6d];switch(_0x1b3788){case _0x3009e8(0x35d):case'-p':_0xb137e[_0x3009e8(0x182)]=!0x0;break;case _0x3009e8(0x32a):_0xb137e['keepAlive']=!0x0;break;case _0x3009e8(0x20b):_0xb137e['cleanup']=!0x0;break;case'--headless':_0xb137e[_0x3009e8(0x16c)]=!0x0;break;case _0x3009e8(0x230):_0xb137e[_0x3009e8(0x306)]=!0x0;break;case _0x3009e8(0x1a6):_0xb137e[_0x3009e8(0x208)]=!0x0;break;case'--no-security':_0xb137e[_0x3009e8(0x352)]=!0x0;break;case'--no-memory':_0xb137e['noMemory']=!0x0;break;case'--task-automation':_0xb137e[_0x3009e8(0x129)]=!0x0;break;case _0x3009e8(0x13b):case'-q':_0xb137e['quiet']=!0x0;break;case _0x3009e8(0x1a3):_0xb137e['verbose']=!0x0;break;case'--backend':_0xb137e[_0x3009e8(0x257)]=_0x2abde2[++_0x19dc6d];break;case'--model':_0xb137e[_0x3009e8(0x162)]=_0x2abde2[++_0x19dc6d];break;case _0x3009e8(0x1d4):_0xb137e['runnerUrl']=_0x2abde2[++_0x19dc6d];break;case _0x3009e8(0x323):_0xb137e[_0x3009e8(0x369)]=_0x2abde2[++_0x19dc6d];break;case _0x3009e8(0x2cf):_0xb137e[_0x3009e8(0x27b)]=_0x2abde2[++_0x19dc6d];break;case'--preload-skill':_0xb137e[_0x3009e8(0x368)]['push'](k(_0x2abde2,++_0x19dc6d,_0x1b3788,'a\x20skill\x20name'));break;case'--project':{let _0x41ade4=k(_0x2abde2,++_0x19dc6d,_0x1b3788,_0x3009e8(0x28e));_0x10dfed(_0x41ade4)||(console['error']('Invalid\x20--project:\x20\x22'+_0x41ade4+'\x22.\x20Use\x20a\x20single\x20folder-safe\x20segment\x20such\x20as\x20invoice-approval\x20(letters,\x20digits,\x20spaces,\x20\x22_\x22,\x20\x22-\x22,\x20\x22.\x22,\x20parentheses;\x20at\x20most\x2064\x20characters;\x20not\x20starting\x20with\x20\x22.\x22\x20or\x20ending\x20with\x20\x22.\x22\x20or\x20a\x20space).'),process['exit'](0x2)),_0xb137e['projectId']=_0x41ade4;break;}case'--vertical':_0xb137e[_0x3009e8(0x33b)]=k(_0x2abde2,++_0x19dc6d,_0x1b3788,_0x3009e8(0x21e));break;case'--output-format':{let _0xa3b45c=k(_0x2abde2,++_0x19dc6d,_0x1b3788,_0x3009e8(0x1b6)+_0x3adbb8['join'](_0x3009e8(0x2b7))+')');_0x419ee8(_0xa3b45c)||(console['error'](_0x3009e8(0x2a4)+_0xa3b45c+_0x3009e8(0x31b)+_0x3adbb8[_0x3009e8(0x311)](_0x3009e8(0x2b7))+'.'),process[_0x3009e8(0x215)](0x2)),_0xb137e[_0x3009e8(0x1c2)]=_0xa3b45c;break;}case'--input-format':{let _0x2a98a9=k(_0x2abde2,++_0x19dc6d,_0x1b3788,_0x3009e8(0x1b6)+B['join'](_0x3009e8(0x2b7))+')');ae(_0x2a98a9)||(console['error'](_0x3009e8(0x2a7)+_0x2a98a9+_0x3009e8(0x31b)+B[_0x3009e8(0x311)](_0x3009e8(0x2b7))+'.'),process[_0x3009e8(0x215)](0x2)),_0xb137e[_0x3009e8(0x23f)]=_0x2a98a9;break;}case'--replay-user-messages':_0xb137e[_0x3009e8(0x2f6)]=!0x0;break;case _0x3009e8(0x30d):_0xb137e[_0x3009e8(0x25d)]=k(_0x2abde2,++_0x19dc6d,_0x1b3788,'a\x20session\x20id');break;case _0x3009e8(0x241):_0xb137e[_0x3009e8(0x1d0)]=K(_0x2abde2,++_0x19dc6d,_0x1b3788);break;case _0x3009e8(0x2f3):_0xb137e[_0x3009e8(0x176)]=K(_0x2abde2,++_0x19dc6d,_0x1b3788,_0x3d196f);break;case _0x3009e8(0x156):_0xb137e[_0x3009e8(0x30a)]=!0x0;break;case _0x3009e8(0x207):_0xb137e[_0x3009e8(0x2be)]=k(_0x2abde2,++_0x19dc6d,_0x1b3788,'a\x20JSON\x20schema\x20file');break;case _0x3009e8(0x2b4):{let _0x50c1fe=_0x38fab9[_0x3009e8(0x292)](process[_0x3009e8(0x277)](),k(_0x2abde2,++_0x19dc6d,_0x1b3788,'a\x20file\x20path'));_0x36ff96[_0x3009e8(0x130)](_0x50c1fe)||(console['error']('--attach:\x20no\x20such\x20file\x20or\x20folder:\x20'+_0x50c1fe),process[_0x3009e8(0x215)](0x2)),_0xb137e[_0x3009e8(0x274)]['push'](_0x50c1fe);break;}case _0x3009e8(0x1a8):_0xb137e[_0x3009e8(0x31c)]=k(_0x2abde2,++_0x19dc6d,_0x1b3788,_0x3009e8(0x152));break;case'--to':_0xb137e[_0x3009e8(0x239)]=k(_0x2abde2,++_0x19dc6d,_0x1b3788,_0x3009e8(0x157));break;case'--summary':_0xb137e['contextSummary']=k(_0x2abde2,++_0x19dc6d,_0x1b3788,_0x3009e8(0x185));break;case _0x3009e8(0x312):_0xb137e['days']=K(_0x2abde2,++_0x19dc6d,_0x1b3788,0x16d);break;case _0x3009e8(0x2df):_0xb137e[_0x3009e8(0x2d2)]=_0x38fab9[_0x3009e8(0x292)](process[_0x3009e8(0x277)](),k(_0x2abde2,++_0x19dc6d,_0x1b3788,_0x3009e8(0x1ea)));break;case _0x3009e8(0x22a):_0xb137e['bundledSkillsPath']=_0x38fab9['resolve'](process['cwd'](),k(_0x2abde2,++_0x19dc6d,_0x1b3788,'a\x20directory\x20path'));break;case'--effort':{let _0x28333a=k(_0x2abde2,++_0x19dc6d,_0x1b3788,_0x3009e8(0x223));he[_0x3009e8(0x1bd)](_0x28333a)||(console['error']('Invalid\x20--effort:\x20'+_0x28333a+_0x3009e8(0x31b)+he['join'](_0x3009e8(0x2b7))+'.'),process[_0x3009e8(0x215)](0x2)),_0xb137e['effort']=_0x28333a;break;}case _0x3009e8(0x286):{let _0xfad8b3=_0x2abde2[++_0x19dc6d];(!_0xfad8b3||_0xfad8b3[_0x3009e8(0x13d)]('--'))&&(console['error'](_0x3009e8(0x164)),process[_0x3009e8(0x215)](0x2)),_0xb137e[_0x3009e8(0x1ff)]=_0xfad8b3;break;}case'--env':{let _0x5a1dab=_0x2abde2[++_0x19dc6d];[_0x3009e8(0x1c6),_0x3009e8(0x2e9),'production','localhost'][_0x3009e8(0x1bd)](_0x5a1dab)||(console['error'](_0x3009e8(0x2c2)+_0x5a1dab+_0x3009e8(0x259)),process['exit'](0x2)),_0xb137e[_0x3009e8(0x133)]=_0x5a1dab;break;}case _0x3009e8(0x1b2):case'--authority':{let _0x33d05e=k(_0x2abde2,++_0x19dc6d,_0x1b3788,'a\x20deployment\x20URL,\x20e.g.\x20https://automationsuite.contoso.com'),_0x36a359=_0x3bd5f2(_0x33d05e);if(_0x36a359['ok']===!0x1){console[_0x3009e8(0x22b)](_0x52ab12(_0x33d05e,_0x36a359[_0x3009e8(0x273)])),process['exit'](0x2);break;}_0xb137e['url']=_0x36a359[_0x3009e8(0x1b9)];break;}case _0x3009e8(0x25f):_0xb137e[_0x3009e8(0x2f1)]=!0x0;break;case'-h':case _0x3009e8(0x24c):_0xb137e[_0x3009e8(0x303)]=!0x0;break;case'-v':case _0x3009e8(0x193):_0xb137e[_0x3009e8(0x1c7)]=!0x0;break;default:if(_0x5c7ccd&&Object[_0x3009e8(0x2dc)](_0x5c7ccd['valueFlags'],_0x1b3788)){_0xb137e[_0x3009e8(0x297)][_0x1b3788]=k(_0x2abde2,++_0x19dc6d,_0x1b3788,_0x5c7ccd[_0x3009e8(0x29f)][_0x1b3788]);break;}if(_0x1b3788==='--computer-use'&&_0x542f3b[_0x3009e8(0x1ee)]===_0x3009e8(0x261)){_0xb137e[_0x3009e8(0x1ee)]=!0x0;break;}_0x1b3788[_0x3009e8(0x13d)]('--')&&(console[_0x3009e8(0x22b)](_0x3009e8(0x181)+_0x1b3788),process[_0x3009e8(0x215)](0x2)),_0x3c5bbe['push'](_0x1b3788);}}_0xb137e[_0x3009e8(0x1ff)]!==void 0x0&&_0xb137e[_0x3009e8(0x23e)]!==_0x3009e8(0x168)&&(console['error'](_0x3009e8(0x1fe)+_0xb137e[_0x3009e8(0x20a)][_0x3009e8(0x361)]+_0x3009e8(0x1a0)+_0xb137e[_0x3009e8(0x20a)][_0x3009e8(0x361)]+_0x3009e8(0x24d)),process['exit'](0x2)),_0xb137e[_0x3009e8(0x260)]!==void 0x0&&_0xb137e[_0x3009e8(0x133)]!==void 0x0&&(console['error'](_0x3009e8(0x309)),process[_0x3009e8(0x215)](0x2)),_0xb137e[_0x3009e8(0x260)]!==void 0x0&&_0xb137e[_0x3009e8(0x23e)]!==_0x3009e8(0x168)&&(console['error'](_0x3009e8(0x2e5)+_0xb137e[_0x3009e8(0x20a)][_0x3009e8(0x361)]+_0x3009e8(0x1b7)),process[_0x3009e8(0x215)](0x2)),_0xb137e[_0x3009e8(0x262)]!==void 0x0&&_0xb137e[_0x3009e8(0x23e)]!==_0x3009e8(0x378)&&(console[_0x3009e8(0x22b)](_0x3009e8(0x132)+_0xb137e[_0x3009e8(0x20a)][_0x3009e8(0x361)]+_0x3009e8(0x2e1)),process[_0x3009e8(0x215)](0x2)),_0xb137e[_0x3009e8(0x2be)]!==void 0x0&&(_0xb137e[_0x3009e8(0x23e)]!=='complete'&&_0xb137e[_0x3009e8(0x23e)]!==''||_0xb137e['cleanup'])&&(console[_0x3009e8(0x22b)](_0x3009e8(0x2fb)+_0xb137e['product'][_0x3009e8(0x361)]+_0x3009e8(0x2a5)),process[_0x3009e8(0x215)](0x2)),_0xb137e[_0x3009e8(0x274)][_0x3009e8(0x342)]>0x0&&(_0xb137e['subcommand']!==''||_0xb137e[_0x3009e8(0x298)])&&(console[_0x3009e8(0x22b)](_0x3009e8(0x27e)),process['exit'](0x2)),_0xb137e[_0x3009e8(0x129)]&&(_0xb137e[_0x3009e8(0x23e)]!==''||_0xb137e[_0x3009e8(0x298)])&&(console[_0x3009e8(0x22b)]('--task-automation\x20applies\x20to\x20prompts\x20only.'),process[_0x3009e8(0x215)](0x2)),_0xb137e[_0x3009e8(0x1ee)]&&(_0xb137e['headless']||_0xb137e['noComputerUse'])&&(console[_0x3009e8(0x22b)](_0x3009e8(0x31a)),process[_0x3009e8(0x215)](0x2)),_0x542f3b[_0x3009e8(0x1ee)]===_0x3009e8(0x261)&&!_0xb137e[_0x3009e8(0x1ee)]&&(_0xb137e[_0x3009e8(0x306)]=!0x0),_0xb137e[_0x3009e8(0x129)]&&(_0xb137e['headless']||_0xb137e[_0x3009e8(0x306)])&&(console[_0x3009e8(0x22b)]('--task-automation\x20needs\x20computer\x20use:\x20the\x20task\x20log\x20is\x20written\x20by\x20the\x20UI-automation\x20tools.\x20'+(_0x542f3b[_0x3009e8(0x1ee)]===_0x3009e8(0x1ad)?_0x542f3b[_0x3009e8(0x361)]+_0x3009e8(0x1f6):_0x542f3b[_0x3009e8(0x1ee)]===_0x3009e8(0x261)?_0x3009e8(0x339):_0x3009e8(0x240))),process['exit'](0x2)),_0x542f3b[_0x3009e8(0x33b)]!==void 0x0&&(_0xb137e['vertical']!==void 0x0&&_0xb137e[_0x3009e8(0x33b)][_0x3009e8(0x32f)]()!==_0x542f3b[_0x3009e8(0x33b)]&&(console[_0x3009e8(0x22b)](_0x542f3b[_0x3009e8(0x361)]+_0x3009e8(0x265)+_0x542f3b[_0x3009e8(0x33b)]+_0x3009e8(0x2ca)+_0xb137e[_0x3009e8(0x33b)]+_0x3009e8(0x2d8)),process[_0x3009e8(0x215)](0x2)),_0xb137e[_0x3009e8(0x33b)]=_0x542f3b[_0x3009e8(0x33b)]),_0xb137e[_0x3009e8(0x2f1)]&&_0xb137e[_0x3009e8(0x23e)]!==_0x3009e8(0x168)&&(console[_0x3009e8(0x22b)](_0x3009e8(0x1b4)+_0xb137e[_0x3009e8(0x20a)]['bin']+_0x3009e8(0x14e)),process['exit'](0x2));let _0x42aa97=[...cn,...(_0x542f3b['commands']??[])[_0x3009e8(0x1cd)](_0x2604d2=>_0x2604d2[_0x3009e8(0x251)])[_0x3009e8(0x14d)](_0x1e3d9d=>_0x1e3d9d['name'])];return _0xb137e[_0x3009e8(0x1c2)]!==_0x3009e8(0x186)&&!_0x42aa97[_0x3009e8(0x1bd)](_0xb137e[_0x3009e8(0x23e)])&&(console[_0x3009e8(0x22b)](_0x3009e8(0x281)+_0xb137e[_0x3009e8(0x1c2)]+_0x3009e8(0x2ef)+_0x42aa97[_0x3009e8(0x1cd)](Boolean)[_0x3009e8(0x311)](',\x20')+'.'),process[_0x3009e8(0x215)](0x2)),(_0xb137e['inputFormat']!==_0x3009e8(0x186)||_0xb137e[_0x3009e8(0x2f6)])&&_0xb137e[_0x3009e8(0x23e)]!==''&&(console[_0x3009e8(0x22b)](_0x3009e8(0x2ab)),process[_0x3009e8(0x215)](0x2)),_0xb137e['replayUserMessages']&&_0xb137e[_0x3009e8(0x23f)]!=='stream-json'&&(console[_0x3009e8(0x22b)](_0x3009e8(0x216)),process[_0x3009e8(0x215)](0x2)),_0xb137e[_0x3009e8(0x23f)]===_0x3009e8(0x315)&&_0xb137e[_0x3009e8(0x1c2)]!==_0x3009e8(0x315)&&(console[_0x3009e8(0x22b)](_0x3009e8(0x171)),process[_0x3009e8(0x215)](0x2)),(_0xb137e[_0x3009e8(0x1d0)]!==void 0x0||_0xb137e[_0x3009e8(0x176)]!==void 0x0||_0xb137e[_0x3009e8(0x30a)])&&_0xb137e['subcommand']!=='sessions'&&(console[_0x3009e8(0x22b)](_0x3009e8(0x1dc)+_0xb137e[_0x3009e8(0x20a)][_0x3009e8(0x361)]+_0x3009e8(0x1e9)),process['exit'](0x2)),(_0xb137e['delegateTo']!==void 0x0||_0xb137e[_0x3009e8(0x2d5)]!==void 0x0)&&_0xb137e['subcommand']!=='delegations'&&(console[_0x3009e8(0x22b)]('--to\x20and\x20--summary\x20apply\x20to\x20`'+_0xb137e['product'][_0x3009e8(0x361)]+'\x20delegations\x20create`\x20only.'),process[_0x3009e8(0x215)](0x2)),_0xb137e['turnId']!==void 0x0&&_0xb137e[_0x3009e8(0x23e)]!==_0x3009e8(0x1eb)&&(console[_0x3009e8(0x22b)](_0x3009e8(0x2b3)+_0xb137e['product']['bin']+_0x3009e8(0x1fd)),process[_0x3009e8(0x215)](0x2)),_0xb137e[_0x3009e8(0x368)]=[...new Set(_0xb137e[_0x3009e8(0x368)])],_0xb137e[_0x3009e8(0x211)]=_0x3c5bbe,_0xb137e[_0x3009e8(0x2b2)]=_0x3c5bbe[_0x3009e8(0x311)]('\x20'),_0xb137e['inputFormat']===_0x3009e8(0x315)&&_0xb137e[_0x3009e8(0x2b2)]!==''&&(console['error'](_0x3009e8(0x231)),process['exit'](0x2)),_0xb137e;}function un(){const _0x213b93=_0x511361;let _0x4663ad=process[_0x213b93(0x1fc)][_0x213b93(0x140)],_0x206964=_0x4663ad[_0x213b93(0x24b)](process['stdout']),_0x34d31c=O;return O=_0x38cfd0=>{_0x206964(_0x38cfd0);},process['stdout'][_0x213b93(0x140)]=(..._0x430179)=>process[_0x213b93(0x317)]['write'](..._0x430179),()=>{const _0x33a08a=_0x213b93;process[_0x33a08a(0x1fc)][_0x33a08a(0x140)]=_0x4663ad,O=_0x34d31c;};}function m(_0x291641,_0x5a0946,_0x171a99){const _0x1e206a=_0x511361;if(_0x291641[_0x1e206a(0x1c2)]===_0x1e206a(0x186)){_0x171a99(_0x5a0946);return;}O(_0x3922ed(_0x5a0946));}function pn(_0x194b73){const _0x13d9b9=_0x511361;let _0x429dbb=_0x194b73[_0x13d9b9(0x361)],_0x50e55d=_0x194b73[_0x13d9b9(0x303)]?.[_0x13d9b9(0x235)]?_0x194b73[_0x13d9b9(0x303)]['commands']+'\x0a':'',_0x221e65=_0x194b73['help']?.[_0x13d9b9(0x1af)]?_0x194b73[_0x13d9b9(0x303)]['flags']+'\x0a':'',_0x36ea6a=_0x194b73[_0x13d9b9(0x303)]?.['about']?'\x0a\x0a'+_0x194b73[_0x13d9b9(0x303)][_0x13d9b9(0x2f2)]:'',_0x42e664=('\x0a'+_0x429dbb+_0x13d9b9(0x205)+_0x194b73['title']+'\x0a\x0aUsage:\x0a\x20\x20'+_0x429dbb+_0x13d9b9(0x1a1)+_0x429dbb+_0x13d9b9(0x29a)+_0x429dbb+_0x13d9b9(0x346)+_0x429dbb+'\x20-p\x20\x22<prompt>\x22\x20--output-format\x20json|stream-json\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20One\x20turn\x20with\x20JSON-only\x20stdout;\x20exit\x201\x20on\x20error\x0a\x20\x20'+_0x429dbb+'\x20--json-schema\x20FILE\x20\x22<prompt>\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20One\x20turn,\x20then\x20its\x20result\x20extracted\x20as\x20JSON\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20matching\x20the\x20schema\x20in\x20FILE\x20(printed\x20after\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20answer;\x20\x22structured\x22\x20in\x20the\x20JSON\x20result);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20exit\x201\x20when\x20the\x20extraction\x20fails\x0a\x20\x20'+_0x429dbb+'\x20--attach\x20PATH\x20[--attach\x20PATH\x20...]\x20\x22<prompt>\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Send\x20files\x20or\x20folders\x20with\x20the\x20first\x20message\x0a\x20\x20'+_0x429dbb+_0x13d9b9(0x35e)+_0x429dbb+_0x13d9b9(0x1ab)+_0x429dbb+'\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\x20'+_0x429dbb+_0x13d9b9(0x333)+_0x429dbb+_0x13d9b9(0x348)+_0x429dbb+_0x13d9b9(0x2f8)+_0x429dbb+_0x13d9b9(0x1f3)+_0x429dbb+_0x13d9b9(0x14f)+_0x429dbb+_0x13d9b9(0x33d)+_0x429dbb+_0x13d9b9(0x178)+_0x429dbb+_0x13d9b9(0x135)+_0x429dbb+_0x13d9b9(0x232)+_0x429dbb+'\x20usage\x20activity|daily\x20[--days\x20N]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Activity\x20totals,\x20or\x20per-day\x20usage,\x20over\x20the\x20last\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20N\x20days\x20(1-365,\x20default\x2030)\x0a\x20\x20'+_0x429dbb+_0x13d9b9(0x141)+_0x429dbb+_0x13d9b9(0x2eb)+_0x429dbb+_0x13d9b9(0x2d7)+_0x50e55d+'\x20\x20'+_0x429dbb+_0x13d9b9(0x362)+_0x429dbb+_0x13d9b9(0x30e)+_0x429dbb+_0x13d9b9(0x247)+_0x429dbb+_0x13d9b9(0x2ac)+_0x429dbb+_0x13d9b9(0x33a)+_0x429dbb+'\x20delegations\x20show|claim\x20ID|LINK\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Read\x20a\x20delegation\x20assigned\x20to\x20you\x20(or\x20a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20delegate://delegation/…\x20link),\x20or\x20claim\x20it:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20prints\x20the\x20session\x20to\x20work\x20it\x20in\x0a\x20\x20'+_0x429dbb+_0x13d9b9(0x271)+_0x429dbb+'\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\x20'+_0x429dbb+'\x20host\x20install\x20[flags]\x20\x20\x20\x20Auto-start\x20the\x20host\x20at\x20login\x20(macOS\x20LaunchAgent\x20/\x20Windows\x20Scheduled\x20Task)\x0a\x20\x20'+_0x429dbb+_0x13d9b9(0x2cb)+_0x429dbb+'\x20host\x20status\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20auto-start\x20state\x0a\x20\x20'+_0x429dbb+_0x13d9b9(0x302)+_0x429dbb+_0x13d9b9(0x1ce)+_0x429dbb+_0x13d9b9(0x2f4)+_0x429dbb+_0x13d9b9(0x1f0)+_0x221e65+_0x13d9b9(0x353)+_0x36ea6a+'\x0a')[_0x13d9b9(0x32f)]();console[_0x13d9b9(0x35c)](mn(_0x42e664));}function mn(_0x5eaddf){const _0x407a90=_0x511361;return _0x5eaddf[_0x407a90(0x2e0)]('\x0a')['map'](_0x409a5f=>{const _0x351fa4=_0x407a90;let _0x3d3a3b=/^( \S.*?\S)( {2,})(\S.*)$/[_0x351fa4(0x2ce)](_0x409a5f);return!_0x3d3a3b||_0x3d3a3b[0x1][_0x351fa4(0x342)]+_0x3d3a3b[0x2]['length']<=ye?_0x409a5f:_0x3d3a3b[0x1]+'\x20'[_0x351fa4(0x222)](Math[_0x351fa4(0x35a)](0x2,ye-_0x3d3a3b[0x1]['length']))+_0x3d3a3b[0x3];})[_0x407a90(0x311)]('\x0a');}function fn(){const _0xc450ec=_0x511361;try{return JSON['parse'](_0x36ff96[_0xc450ec(0x2e2)](_0x38fab9[_0xc450ec(0x311)](__dirname,'..',_0xc450ec(0x119)),_0xc450ec(0x1a5)))['version']||_0xc450ec(0x1cb);}catch{return _0xc450ec(0x1cb);}}async function we(_0x5bfe9f,_0x47698b){const _0x376283=_0x511361;let _0x26c180=_0x47698b?[_0x47698b]:[];for await(let _0x48ab80 of _0x5bfe9f)_0x26c180[_0x376283(0x284)](Buffer[_0x376283(0x1c4)](_0x48ab80));return Buffer[_0x376283(0x32e)](_0x26c180)[_0x376283(0x237)](_0x376283(0x1a5))[_0x376283(0x32f)]();}function hn(_0x57b22b,_0x20d321){return new Promise(_0x198cd2=>{const _0x4a4645=_0xaca4;let _0x14b497=_0x55d28c=>{const _0x3e44a8=_0xaca4;clearTimeout(_0x3c4b6b),_0x57b22b[_0x3e44a8(0x377)](_0x3e44a8(0x29b),_0xdd0a3a),_0x57b22b[_0x3e44a8(0x377)]('end',_0x4b0dd6),_0x57b22b[_0x3e44a8(0x377)](_0x3e44a8(0x22b),_0x4b0dd6),_0x57b22b[_0x3e44a8(0x358)](),_0x198cd2(_0x55d28c);},_0xdd0a3a=_0x394a49=>_0x14b497(Buffer[_0x4a4645(0x1c4)](_0x394a49)),_0x4b0dd6=()=>_0x14b497(null),_0x3c4b6b=setTimeout(()=>_0x14b497(null),_0x20d321);_0x57b22b['on'](_0x4a4645(0x29b),_0xdd0a3a),_0x57b22b['on'](_0x4a4645(0x1f4),_0x4b0dd6),_0x57b22b['on'](_0x4a4645(0x22b),_0x4b0dd6),_0x57b22b[_0x4a4645(0x27c)]();});}async function H(_0x21500e,_0x4da8d9,_0xe43ffb=gn){const _0x47d9cb=_0x511361;let _0x3b5d2c=_0x21500e==='-';if(!_0x3b5d2c&&_0x21500e)return _0x21500e;if(!_0x3b5d2c&&_0x4da8d9[_0x47d9cb(0x2e7)])return'';if(_0x3b5d2c)return we(_0x4da8d9,null);let _0x54d06c=await hn(_0x4da8d9,_0xe43ffb);return _0x54d06c?we(_0x4da8d9,_0x54d06c):'';}function V(){const _0x22cfb6=_0x511361;return _0x38fab9['join'](process.env.HOME||process.env.USERPROFILE||'',_0x22cfb6(0x128),'auth.json');}function G(_0x5953dc){const _0x457f91=_0x511361;try{let _0x3bc554=JSON[_0x457f91(0x26e)](_0x36ff96[_0x457f91(0x2e2)](_0x5953dc,_0x457f91(0x1a5)));return!_0x3bc554[_0x457f91(0x2a1)]||!_0x3bc554[_0x457f91(0x192)]||!_0x3bc554[_0x457f91(0x35f)]?null:_0x3bc554;}catch{return null;}}function yn(){const _0x30def6=_0x511361;let _0xb1a5=[{'file':_0x20be7e(),'isDesktopFallback':!0x1},{'file':V(),'isDesktopFallback':!0x0}];for(let _0x4813bc of _0xb1a5){let _0x412cd2=G(_0x4813bc[_0x30def6(0x316)]);if(_0x412cd2)return{..._0x4813bc,'auth':_0x412cd2};}return null;}async function wn(){const _0x26cbfb=_0x511361;let _0x688e6a=_0x20be7e();if(!_0x36ff96[_0x26cbfb(0x130)](_0x688e6a)){let _0x1d21da=V();console['log'](G(_0x1d21da)?_0x26cbfb(0x195)+_0x1d21da+_0x26cbfb(0x2cc):_0x26cbfb(0x2b9));return;}_0x36ff96[_0x26cbfb(0x11c)](_0x688e6a),console['log'](_0x26cbfb(0x17e)+_0x688e6a);}async function bn(_0x5ee302){const _0x3aff2b=_0x511361;let _0x1d664f=Y(),_0x1b6d89,_0x101a26;if(_0x1d664f)_0x1b6d89=_0x1d664f,_0x101a26=_0x3aff2b(0x234);else{let _0x907ea9=yn();if(!_0x907ea9)throw new Error(Pe(_0x5ee302[_0x3aff2b(0x20a)][_0x3aff2b(0x361)]));_0x1b6d89=_0x907ea9['auth'],_0x101a26=_0x907ea9[_0x3aff2b(0x2ad)]?_0x907ea9[_0x3aff2b(0x316)]+_0x3aff2b(0x2ed):_0x907ea9['file'];}let _0x584593={'source':_0x101a26,'baseUrl':_0x1b6d89[_0x3aff2b(0x1b9)]??null,'deployment':kn(_0x1b6d89[_0x3aff2b(0x1b9)]),'organization':{'id':_0x1b6d89[_0x3aff2b(0x35f)],'slug':_0x1b6d89['orgLogicalName']??null},'tenant':{'id':_0x1b6d89[_0x3aff2b(0x192)],'name':_0x1b6d89[_0x3aff2b(0x22c)]??null},'tokenExpiresAt':_0x1b6d89[_0x3aff2b(0x243)]?new Date(_0x1b6d89[_0x3aff2b(0x243)]*0x3e8)[_0x3aff2b(0x13f)]():null};m(_0x5ee302,_0x584593,()=>{const _0x15bced=_0x3aff2b;let _0x104da=[_0x15bced(0x2c9)+_0x101a26,_0x15bced(0x1a4)+(_0x1b6d89['baseUrl']??_0x15bced(0x1cb)),_0x15bced(0x228)+_0x584593[_0x15bced(0x2a3)],'Organization:\x20'+(_0x1b6d89[_0x15bced(0x1aa)]??_0x15bced(0x32b))+'\x20('+_0x1b6d89[_0x15bced(0x35f)]+')',_0x15bced(0x194)+(_0x1b6d89[_0x15bced(0x22c)]??_0x15bced(0x32b))+'\x20('+_0x1b6d89[_0x15bced(0x192)]+')'];if(_0x1b6d89[_0x15bced(0x243)]){let _0x2dc1fd=_0x1b6d89['expiresAt']-Math['floor'](Date['now']()/0x3e8);_0x104da[_0x15bced(0x284)](_0x2dc1fd>0x0?_0x15bced(0x155)+_0x584593[_0x15bced(0x2a2)]+_0x15bced(0x189)+Math[_0x15bced(0x210)](_0x2dc1fd/0x3c)+_0x15bced(0x29e):_0x15bced(0x364)+_0x584593[_0x15bced(0x2a2)]);}process[_0x15bced(0x1fc)]['write'](_0x104da[_0x15bced(0x311)]('\x0a')+'\x0a');});}function Pe(_0x2170db){const _0x2a2225=_0x511361;return _0x2a2225(0x359)+_0x2170db+_0x2a2225(0x11f);}function kn(_0x3ecdb3){const _0x2c6d6b=_0x511361;return _0x3ecdb3?_0x2fed20(_0x3ecdb3)?_0x2c6d6b(0x293):_0x2c6d6b(0x175):'unknown';}function Y(){let _0xb8d298=process.env.AUTH_TOKEN_FILE;return(process.env.AUTH_TOKEN||_0xb8d298)&&process.env.TENANT_ID&&process.env.ORG_ID?{'accessToken':_0xb8d298?vn(_0xb8d298):process.env.AUTH_TOKEN,..._0xb8d298?{'accessTokenFile':_0xb8d298}:{},'tenantId':process.env.TENANT_ID,'organizationId':process.env.ORG_ID,'orgLogicalName':process.env.ORG_SLUG,'tenantName':process.env.TENANT_SLUG,'baseUrl':Re()}:null;}function vn(_0x5e5f02){const _0x23711b=_0x511361;let _0x3c0f49;try{_0x3c0f49=_0x36ff96[_0x23711b(0x2e2)](_0x5e5f02,_0x23711b(0x1a5))[_0x23711b(0x32f)]();}catch(_0x5176ca){throw new Error(_0x23711b(0x187)+_0x5e5f02+_0x23711b(0x375)+_0x5176ca[_0x23711b(0x282)]);}let _0x3b4eaf=_0x3c0f49['startsWith'](_0x23711b(0x220))?_0x3c0f49['slice'](0x7)[_0x23711b(0x32f)]():_0x3c0f49;if(!_0x3b4eaf)throw new Error(_0x23711b(0x187)+_0x5e5f02+_0x23711b(0x275));return _0x3b4eaf;}function Re(){const _0x39435a=_0x511361;let _0x466b90=process.env.UIPATH_BASE_URL;if(!_0x466b90)return;let _0x1e0c77=_0x3bd5f2(_0x466b90);if(_0x1e0c77['ok']===!0x1)throw new Error('UIPATH_BASE_URL\x20is\x20unusable.\x20'+_0x52ab12(_0x466b90,_0x1e0c77[_0x39435a(0x273)]));return _0x1e0c77[_0x39435a(0x1b9)];}async function X(_0x38536b){let _0x2b9104=Y();if(_0x2b9104)return _0x2b9104;let _0x174bbc=await _0x106b32();if(_0x174bbc)return _0x174bbc;throw new Error(Pe(_0x38536b));}async function $n(){const _0x2b40a8=_0x511361;await new _0x47cc61()[_0x2b40a8(0x202)]({'force':!0x0}),console[_0x2b40a8(0x35c)](_0x2b40a8(0x121));}function Z(_0x4c3c10,_0x5ca945,_0x3154e0){const _0x53885a=_0x511361;_0x4c3c10?process[_0x53885a(0x317)][_0x53885a(0x140)](_0x53885a(0x1e1)+_0x4c3c10+_0x53885a(0x283)+_0x3154e0+'\x0a'):!_0x5ca945&&!process.env.BACKEND_URL&&process[_0x53885a(0x317)][_0x53885a(0x140)](_0x53885a(0x165)+_0x3154e0+'\x0a');}async function x(_0x4dff49){const _0x2ee410=_0x511361;let _0x495be0=await X(_0x4dff49[_0x2ee410(0x20a)][_0x2ee410(0x361)]),_0x225753=_0x3ab8d9(_0x4dff49['env'],_0x495be0,_0x4dff49[_0x2ee410(0x257)]);return Z(_0x4dff49[_0x2ee410(0x133)],_0x4dff49[_0x2ee410(0x257)],_0x225753),{'auth':_0x495be0,'backendUrl':_0x225753,'client':_0x5c52af({'auth':_0x495be0,'backendUrl':_0x225753})};}async function Sn(_0x3d6c97){const _0x5480d2=_0x511361;let {client:_0x43a530}=await x(_0x3d6c97),[_0x5f1a8d,_0x87ce07]=await Promise[_0x5480d2(0x2ff)]([_0x437103(_0x43a530),_0x2bceb7(_0x43a530)[_0x5480d2(0x325)](_0x1ba0e2=>(process['stderr'][_0x5480d2(0x140)]('Could\x20not\x20check\x20BYO\x20model\x20warnings:\x20'+(_0x1ba0e2 instanceof Error?_0x1ba0e2[_0x5480d2(0x282)]:String(_0x1ba0e2))+'\x0a'),{}))]),_0x42a345=_0x5f1a8d['map'](_0x36ee8d=>_0x87ce07[_0x36ee8d['id']]?{..._0x36ee8d,'byoWarning':_0x87ce07[_0x36ee8d['id']]}:_0x36ee8d);m(_0x3d6c97,_0x42a345,_0x381e93=>An(_0x381e93,_0x3d6c97['product']['bin']));}function An(_0x516d10,_0x398b67){const _0x5a62d5=_0x511361;if(_0x516d10[_0x5a62d5(0x342)]===0x0){process[_0x5a62d5(0x317)][_0x5a62d5(0x140)]('No\x20models\x20available\x20for\x20this\x20product/tenant.\x0a');return;}process[_0x5a62d5(0x1fc)][_0x5a62d5(0x140)](_0x5a62d5(0x1be)+_0x516d10[_0x5a62d5(0x342)]+_0x5a62d5(0x15e));for(let _0x2a01e7 of _0x516d10){let _0x189fb9=_0x2a01e7[_0x5a62d5(0x143)]&&_0x2a01e7['name']!==_0x2a01e7['id']?'\x20('+_0x2a01e7[_0x5a62d5(0x143)]+')':'';process['stdout']['write']('\x20\x20'+_0x2a01e7['id']+_0x189fb9+'\x0a'),_0x2a01e7['description']&&process[_0x5a62d5(0x1fc)][_0x5a62d5(0x140)](_0x5a62d5(0x264)+_0x2a01e7[_0x5a62d5(0x1b5)]+'\x0a'),_0x2a01e7[_0x5a62d5(0x376)]&&process['stdout'][_0x5a62d5(0x140)](_0x5a62d5(0x18c)+(_0x2a01e7['lockReason']?'\x20('+_0x2a01e7[_0x5a62d5(0x125)]+')':'')+'\x0a'),_0x2a01e7[_0x5a62d5(0x2bd)]&&process[_0x5a62d5(0x1fc)][_0x5a62d5(0x140)]('\x20\x20\x20\x20BYO\x20warning:\x20'+_0x2a01e7[_0x5a62d5(0x2bd)]+'\x0a');}process[_0x5a62d5(0x1fc)][_0x5a62d5(0x140)](_0x5a62d5(0x32d)+_0x398b67+_0x5a62d5(0x34f));}async function xn(_0x523dc2){const _0x2b7efc=_0x511361;let [_0x1c9236='',_0x1cf93e='',..._0x2cade6]=_0x523dc2['operands'];if(_0x1c9236&&!be['includes'](_0x1c9236)&&(console[_0x2b7efc(0x22b)](_0x2b7efc(0x1b3)+_0x1c9236+_0x2b7efc(0x336)+be[_0x2b7efc(0x311)]('\x20|\x20')+'.'),process[_0x2b7efc(0x215)](0x2)),_0x523dc2[_0x2b7efc(0x31c)]!==void 0x0&&_0x1c9236!==_0x2b7efc(0x224)&&(console[_0x2b7efc(0x22b)](_0x2b7efc(0x2b3)+_0x523dc2[_0x2b7efc(0x20a)][_0x2b7efc(0x361)]+_0x2b7efc(0x1fd)),process[_0x2b7efc(0x215)](0x2)),_0x1c9236&&_0x1c9236!==_0x2b7efc(0x2cd)){await En(_0x523dc2,_0x1c9236,_0x1cf93e,_0x2cade6['join']('\x20')[_0x2b7efc(0x32f)]());return;}_0x523dc2[_0x2b7efc(0x211)]['length']>0x1&&(console['error'](_0x2b7efc(0x280)+_0x523dc2[_0x2b7efc(0x20a)][_0x2b7efc(0x361)]+_0x2b7efc(0x1c5)),process['exit'](0x2));let {client:_0x193c0f}=await x(_0x523dc2),_0x38a2b3=await _0x2a73c3(_0x193c0f,{'page':_0x523dc2['page'],'pageSize':_0x523dc2[_0x2b7efc(0x176)],'includeSubAgents':_0x523dc2[_0x2b7efc(0x30a)]});m(_0x523dc2,_0x38a2b3,_0x2f906e=>Dn(_0x2f906e,_0x523dc2[_0x2b7efc(0x20a)]['bin']));}async function En(_0x4a4564,_0x440823,_0x196a44,_0x22d237){const _0x17c3c5=_0x511361;if((_0x4a4564[_0x17c3c5(0x1d0)]!==void 0x0||_0x4a4564[_0x17c3c5(0x176)]!==void 0x0||_0x4a4564[_0x17c3c5(0x30a)])&&(console['error'](_0x17c3c5(0x1dc)+_0x4a4564[_0x17c3c5(0x20a)][_0x17c3c5(0x361)]+_0x17c3c5(0x244)),process[_0x17c3c5(0x215)](0x2)),_0x440823===_0x17c3c5(0x224)){await Tn(_0x4a4564,_0x196a44,_0x22d237);return;}if(_0x440823===_0x17c3c5(0x174)){await Un(_0x4a4564,_0x196a44,_0x22d237);return;}(!_0x196a44||_0x440823==='rename'!=!!_0x22d237)&&(console[_0x17c3c5(0x22b)](_0x17c3c5(0x280)+_0x4a4564[_0x17c3c5(0x20a)][_0x17c3c5(0x361)]+_0x17c3c5(0x161)+_0x440823+_0x17c3c5(0x2a8)+(_0x440823===_0x17c3c5(0x36a)?_0x17c3c5(0x172):'')),process[_0x17c3c5(0x215)](0x2));let {client:_0x27e1b2}=await x(_0x4a4564);try{if(_0x440823===_0x17c3c5(0x2c5)){let _0x7e36a=await _0x25a608(_0x27e1b2,_0x196a44);_0x7e36a||ke(_0x196a44),m(_0x4a4564,_0x7e36a,In);}else{if(_0x440823===_0x17c3c5(0x36a)){let _0x4a6e01=await _0x169c73(_0x27e1b2,_0x196a44,_0x22d237);m(_0x4a4564,_0x4a6e01,_0x208265=>{const _0xa191b1=_0x17c3c5;process['stdout'][_0xa191b1(0x140)](_0xa191b1(0x25c)+_0x208265['id']+':\x20'+_0x208265['title']+'\x0a');});}else await _0x1f6880(_0x27e1b2,_0x196a44),await _0x2b7571(_0x196a44,_0x4a4564[_0x17c3c5(0x2d2)]),m(_0x4a4564,{'id':_0x196a44,'deleted':!0x0},_0x3cf53a=>{const _0x5dba31=_0x17c3c5;process[_0x5dba31(0x1fc)][_0x5dba31(0x140)]('Deleted\x20session\x20'+_0x3cf53a['id']+'.\x0a');});}}catch(_0x37391e){if(!_0x4c363b(_0x37391e,0x194))throw _0x37391e;ke(_0x196a44);}}function ke(_0x2d558c){const _0x16308b=_0x511361;console[_0x16308b(0x22b)](_0x16308b(0x30f)+_0x2d558c+'\x20not\x20found.'),process['exit'](0x1);}function In(_0xf8c9aa){const _0x5d7bdd=_0x511361;process[_0x5d7bdd(0x1fc)]['write']('ID\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0xf8c9aa['id']+'\x0a'),process[_0x5d7bdd(0x1fc)][_0x5d7bdd(0x140)](_0x5d7bdd(0x1e6)+_0xf8c9aa[_0x5d7bdd(0x35b)]+'\x0a'),process[_0x5d7bdd(0x1fc)][_0x5d7bdd(0x140)](_0x5d7bdd(0x1f9)+_0xf8c9aa['userId']+'\x0a'),process['stdout']['write']('Organization\x20\x20'+_0xf8c9aa['organizationId']+'\x0a'),_0xf8c9aa[_0x5d7bdd(0x2ee)]&&process[_0x5d7bdd(0x1fc)][_0x5d7bdd(0x140)](_0x5d7bdd(0x276)+_0xf8c9aa[_0x5d7bdd(0x2ee)]+'\x0a');}async function Tn(_0x2db750,_0x44aba7,_0x16d5ed){const _0x2055fe=_0x511361;(!_0x44aba7||_0x16d5ed||!_0x2db750[_0x2055fe(0x31c)])&&(console[_0x2055fe(0x22b)](_0x2055fe(0x280)+_0x2db750[_0x2055fe(0x20a)][_0x2055fe(0x361)]+_0x2055fe(0x304)),process['exit'](0x2));let {client:_0x405393}=await x(_0x2db750),_0x1525a7=await _0xeaf235(_0x405393,_0x44aba7,_0x2db750[_0x2055fe(0x31c)]);m(_0x2db750,{'sessionId':_0x44aba7,'turnId':_0x2db750[_0x2055fe(0x31c)],'cancelled':_0x1525a7},_0x39ddbe=>{const _0x3a5706=_0x2055fe;_0x39ddbe['cancelled']?process[_0x3a5706(0x1fc)]['write'](_0x3a5706(0x26d)+_0x39ddbe['turnId']+_0x3a5706(0x2b0)+_0x39ddbe[_0x3a5706(0x25d)]+'.\x0a'):process['stderr'][_0x3a5706(0x140)](_0x3a5706(0x126)+_0x39ddbe[_0x3a5706(0x31c)]+_0x3a5706(0x17f)+_0x39ddbe['sessionId']+'.\x0a');}),_0x1525a7||(process[_0x2055fe(0x22f)]=0x1);}async function Un(_0x2eaa2a,_0x343a0c,_0x4e44e2){const _0x3cf63a=_0x511361;(!_0x343a0c||/\s/[_0x3cf63a(0x250)](_0x4e44e2))&&(console['error'](_0x3cf63a(0x280)+_0x2eaa2a[_0x3cf63a(0x20a)][_0x3cf63a(0x361)]+'\x20sessions\x20fork\x20<id>\x20[<message-id>]'),process['exit'](0x2));let {client:_0x39cd81}=await x(_0x2eaa2a),_0x3b4eff;try{_0x3b4eff=await _0x37da9f(_0x39cd81,_0x343a0c,{'atMessageId':_0x4e44e2||void 0x0});}catch(_0x201f69){if(!_0x4c363b(_0x201f69,0x194))throw _0x201f69;console['error'](_0x3cf63a(0x30f)+_0x343a0c+_0x3cf63a(0x2fd)+(_0x4e44e2?_0x3cf63a(0x151)+_0x4e44e2:'')+'.'),process[_0x3cf63a(0x215)](0x1);}m(_0x2eaa2a,_0x3b4eff,_0x5b1c50=>{const _0x336976=_0x3cf63a;process['stdout'][_0x336976(0x140)]('Forked\x20'+_0x343a0c+_0x336976(0x14b)+_0x5b1c50['id']+'.\x0a'),process[_0x336976(0x317)][_0x336976(0x140)](_0x336976(0x26f)+_0x2eaa2a[_0x336976(0x20a)][_0x336976(0x361)]+_0x336976(0x16f)+_0x5b1c50['id']+_0x336976(0x17a));});}function Dn({sessions:_0x224e25,page:_0x21beb9,isLastPage:_0x29a64c},_0x817d42){const _0x3f3a5c=_0x511361;if(_0x224e25['length']===0x0)process[_0x3f3a5c(0x317)][_0x3f3a5c(0x140)](_0x3f3a5c(0x2b6)+_0x21beb9+'.\x0a');else{process['stdout'][_0x3f3a5c(0x140)]('ID'[_0x3f3a5c(0x1e7)](0x24)+'\x20\x20'+'UPDATED'['padEnd'](0x13)+_0x3f3a5c(0x269));for(let _0x100061 of _0x224e25){let _0x1b770e=_0x100061['updatedAt'][_0x3f3a5c(0x236)]('T','\x20')[_0x3f3a5c(0x313)](0x0,0x13),_0xda1d3a=_0x100061[_0x3f3a5c(0x2aa)]?_0x3f3a5c(0x148)+_0x100061[_0x3f3a5c(0x2aa)]+')':'';process[_0x3f3a5c(0x1fc)][_0x3f3a5c(0x140)](_0x100061['id'][_0x3f3a5c(0x1e7)](0x24)+'\x20\x20'+_0x1b770e[_0x3f3a5c(0x1e7)](0x13)+'\x20\x20'+_0x100061[_0x3f3a5c(0x35b)]+_0xda1d3a+'\x0a');}}_0x29a64c||process[_0x3f3a5c(0x317)]['write'](_0x3f3a5c(0x1ca)+_0x817d42+_0x3f3a5c(0x2fc)+(_0x21beb9+0x1)+'\x0a');}async function Nn(_0x1daeed){const _0x4a8b36=_0x511361;let _0xb96dd0=await X(_0x1daeed['product']['bin']),_0x51d610=_0x3ab8d9(_0x1daeed['env'],_0xb96dd0,_0x1daeed['backendUrl']);Z(_0x1daeed[_0x4a8b36(0x133)],_0x1daeed[_0x4a8b36(0x257)],_0x51d610);let _0x34a1a0=await _0x50b0d1({'auth':_0xb96dd0,'backendUrl':_0x51d610,'interop':_0x1daeed[_0x4a8b36(0x16c)]?_0x4a8b36(0x1a7):'spawn'});m(_0x1daeed,_0x34a1a0,({checks:_0x51406c})=>{const _0x28c976=_0x4a8b36;for(let _0x2ce7a0 of _0x51406c)process['stdout'][_0x28c976(0x140)](Cn(_0x2ce7a0)+'\x0a');}),_0x34a1a0['ok']||process[_0x4a8b36(0x215)](0x1);}function Cn(_0x167753){const _0x330f81=_0x511361;return{'ok':'✓','failed':'✗','skipped':'-'}[_0x167753[_0x330f81(0x2e6)]]+'\x20'+_0x167753['name'][_0x330f81(0x1e7)](0xa)+_0x167753[_0x330f81(0x34c)];}async function Rn(_0xe3f3d){const _0x501258=_0x511361;let _0x573950=_0xe3f3d[_0x501258(0x2b2)];Pn[_0x501258(0x1bd)](_0x573950)||(console['error'](_0x501258(0x1e4)+_0xe3f3d[_0x501258(0x2b2)]+'.\x20Use\x20`'+_0xe3f3d[_0x501258(0x20a)][_0x501258(0x361)]+_0x501258(0x322)),process[_0x501258(0x215)](0x2)),_0x573950===''&&_0xe3f3d[_0x501258(0x262)]!==void 0x0&&(console[_0x501258(0x22b)](_0x501258(0x132)+_0xe3f3d[_0x501258(0x20a)][_0x501258(0x361)]+_0x501258(0x2a9)),process['exit'](0x2)),_0x573950!==''&&_0xe3f3d[_0x501258(0x25d)]!==void 0x0&&(console[_0x501258(0x22b)](_0x501258(0x24a)+_0xe3f3d[_0x501258(0x20a)][_0x501258(0x361)]+'\x20usage`\x20summary\x20only.'),process[_0x501258(0x215)](0x2));let {client:_0x353b79}=await x(_0xe3f3d);if(_0x573950===_0x501258(0x27a)){m(_0xe3f3d,await _0x1b527d(_0x353b79,{'days':_0xe3f3d['days']}),On);return;}if(_0x573950==='daily'){m(_0xe3f3d,await _0x718164(_0x353b79,{'days':_0xe3f3d[_0x501258(0x262)]}),Ln);return;}let [_0x2908fb,_0x112775]=await Promise['all']([_0x10bd58(_0x353b79,{'sessionId':_0xe3f3d[_0x501258(0x25d)]}),_0x67ab63(_0x353b79)]);m(_0xe3f3d,{'licensing':_0x2908fb,'monthlySpending':_0x112775},_n);}function _n(_0xc564d2){const _0x5ac769=_0x511361;let {licensing:_0xc6c92a,monthlySpending:_0x3d8a1a}=_0xc564d2,_0x456c2d=[_0xc6c92a[_0x5ac769(0x17d)]?_0x5ac769(0x1dd)+_0xc6c92a['pct_used'][_0x5ac769(0x233)](0x1)+_0x5ac769(0x146)+(_0xc6c92a[_0x5ac769(0x122)]??0x0)+_0x5ac769(0x374)+(_0xc6c92a[_0x5ac769(0x36e)]>0x0?',\x20'+_0xc6c92a['extra_pool_consumed_pu']+_0x5ac769(0x1d5):'')+_0x5ac769(0x124)+_0xc6c92a[_0x5ac769(0x2f9)]+')':_0x5ac769(0x267),_0x5ac769(0x188)+_0x3d8a1a['monthly_spend_usd'][_0x5ac769(0x233)](0x2)+_0x5ac769(0x1ba)+(_0x3d8a1a[_0x5ac769(0x17d)]&&_0x3d8a1a[_0x5ac769(0x2ec)]!==null?'\x20of\x20a\x20$'+_0x3d8a1a[_0x5ac769(0x2ec)][_0x5ac769(0x233)](0x2)+_0x5ac769(0x23b):_0x5ac769(0x36d))];_0xc6c92a[_0x5ac769(0x2d9)]!==null&&_0xc6c92a['session_consumed_pu']!==void 0x0&&_0x456c2d[_0x5ac769(0x284)]('Session:\x20\x20\x20\x20\x20\x20'+_0xc6c92a[_0x5ac769(0x2d9)]+_0x5ac769(0x190)),process[_0x5ac769(0x1fc)][_0x5ac769(0x140)](_0x456c2d[_0x5ac769(0x311)]('\x0a')+'\x0a');}function On(_0x19a916){const _0x4116d4=_0x511361;let _0x1ed631=[_0x4116d4(0x285)+_0x19a916[_0x4116d4(0x279)]+_0x4116d4(0x258)+_0x19a916[_0x4116d4(0x294)]+_0x4116d4(0x137)+_0x19a916['active_days']+_0x4116d4(0x163),_0x4116d4(0x33f)+_0x19a916[_0x4116d4(0x238)]['toFixed'](0x2)+'\x20(estimated\x20$'+_0x19a916['estimated_cost_usd'][_0x4116d4(0x233)](0x2)+_0x4116d4(0x144)+_0x19a916['total_token_units']+_0x4116d4(0x1d8),'Tokens:\x20'+_0x19a916[_0x4116d4(0x16d)]+_0x4116d4(0x2de)+_0x19a916[_0x4116d4(0x214)]+_0x4116d4(0x349)];for(let [_0x18663a,_0x47d880]of Object[_0x4116d4(0x1ae)](_0x19a916[_0x4116d4(0x19b)]))_0x1ed631[_0x4116d4(0x284)]('\x20\x20'+_0x18663a+':\x20'+_0x47d880+_0x4116d4(0x2f0));process[_0x4116d4(0x1fc)]['write'](_0x1ed631[_0x4116d4(0x311)]('\x0a')+'\x0a');}function Ln(_0x2a83c5){const _0xcec438=_0x511361;if(_0x2a83c5[_0xcec438(0x290)][_0xcec438(0x342)]===0x0){process[_0xcec438(0x1fc)]['write']('No\x20usage\x20in\x20the\x20last\x20'+_0x2a83c5[_0xcec438(0x279)]+_0xcec438(0x328));return;}let _0x286737=[_0xcec438(0x221)];for(let _0x403c25 of _0x2a83c5['daily_usage'])_0x286737['push'](_0x403c25[_0xcec438(0x248)]+'\x20\x20'+String(_0x403c25[_0xcec438(0x1c8)])[_0xcec438(0x37a)](0xb)+'\x20\x20'+String(_0x403c25[_0xcec438(0x19c)])[_0xcec438(0x37a)](0xd)+'\x20\x20'+String(_0x403c25[_0xcec438(0x26c)])[_0xcec438(0x37a)](0x11));process[_0xcec438(0x1fc)]['write'](_0x286737[_0xcec438(0x311)]('\x0a')+'\x0a');}async function Fn(_0x53bd24,_0x38cd0e){const _0xc7a7c3=_0x511361;let _0x33c879=await Mn(_0x53bd24['prompt'],_0x38cd0e,_0x53bd24['product'][_0xc7a7c3(0x361)]);_0x53bd24[_0xc7a7c3(0x162)]&&(_0x33c879['model']=_0x53bd24[_0xc7a7c3(0x162)]);let {client:_0x203446}=await x(_0x53bd24);try{_0x38cd0e==='evaluate'?m(_0x53bd24,await _0x18b90c(_0x203446,_0x33c879,void 0x0),Bn):_0x38cd0e==='rerank'?m(_0x53bd24,await _0x268cbb(_0x203446,_0x33c879,void 0x0),Jn):m(_0x53bd24,await _0x2eccaa(_0x203446,_0x33c879,void 0x0),Hn);}catch(_0x4c5a80){if(!_0x142f7f(_0x4c5a80))throw _0x4c5a80;console['error'](_0x4c5a80['message']),process['exit'](0x1);}}async function Mn(_0x13dc54,_0x97a2b,_0x3e33a8){const _0x1ab53d=_0x511361;let _0x15ba76;try{_0x15ba76=_0x13dc54&&_0x13dc54!=='-'?_0x36ff96[_0x1ab53d(0x2e2)](_0x38fab9['resolve'](_0x13dc54),_0x1ab53d(0x1a5)):await H(_0x13dc54,process[_0x1ab53d(0x2c8)]);}catch(_0x7a70a){console[_0x1ab53d(0x22b)](_0x97a2b+_0x1ab53d(0x340)+_0x7a70a['message']+').'),process[_0x1ab53d(0x215)](0x2);}return _0x15ba76||(console[_0x1ab53d(0x22b)](_0x97a2b+_0x1ab53d(0x158)+_0x3e33a8+'\x20'+_0x97a2b+_0x1ab53d(0x321)),process[_0x1ab53d(0x215)](0x2)),_e(_0x15ba76,_0x97a2b,_0x1ab53d(0x25e));}function _e(_0xe12ca5,_0x1a4b90,_0x43a86e){const _0x4963cb=_0x511361;let _0x4b6672;try{_0x4b6672=JSON[_0x4963cb(0x26e)](_0xe12ca5);}catch(_0x4e3d4a){console[_0x4963cb(0x22b)](_0x1a4b90+':\x20'+_0x43a86e+_0x4963cb(0x245)+_0x4e3d4a['message']+').'),process['exit'](0x2);}return(typeof _0x4b6672!=_0x4963cb(0x1cf)||_0x4b6672===null||Array[_0x4963cb(0x198)](_0x4b6672))&&(console[_0x4963cb(0x22b)](_0x1a4b90+':\x20'+_0x43a86e+_0x4963cb(0x249)),process['exit'](0x2)),_0x4b6672;}function Oe(_0x31f5a2,_0x419c46){const _0x9e8731=_0x511361;let _0x16b7d0;try{_0x16b7d0=_0x36ff96['readFileSync'](_0x38fab9[_0x9e8731(0x292)](_0x31f5a2),_0x9e8731(0x1a5));}catch(_0x229f0a){console['error'](_0x419c46+':\x20cannot\x20read\x20the\x20JSON\x20schema\x20('+_0x229f0a[_0x9e8731(0x282)]+').'),process[_0x9e8731(0x215)](0x2);}return _e(_0x16b7d0,_0x419c46,_0x9e8731(0x1d2));}async function jn(_0x9cfce1){const _0x55f1e2=_0x511361;_0x9cfce1[_0x55f1e2(0x2be)]===void 0x0&&(console[_0x55f1e2(0x22b)](_0x55f1e2(0x21f)+_0x9cfce1['product'][_0x55f1e2(0x361)]+'\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22.'),process[_0x55f1e2(0x215)](0x2));let _0x3ea6f8=Oe(_0x9cfce1[_0x55f1e2(0x2be)],_0x55f1e2(0x291)),_0x411677=(await H(_0x9cfce1[_0x55f1e2(0x2b2)],process[_0x55f1e2(0x2c8)]))[_0x55f1e2(0x32f)]();_0x411677||(console['error'](_0x55f1e2(0x253)+_0x9cfce1[_0x55f1e2(0x20a)]['bin']+'\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22,\x20or\x20-\x20to\x20read\x20stdin.'),process[_0x55f1e2(0x215)](0x2));let {client:_0x1aa46b}=await x(_0x9cfce1);try{let _0x3fe7e3=await _0x3de08f(_0x1aa46b,{'prompt':_0x411677,'jsonSchema':_0x3ea6f8,'model':_0x9cfce1['model']||process.env.MODEL||_0x23cd12,..._0x9cfce1[_0x55f1e2(0x25d)]!==void 0x0&&{'sessionId':_0x9cfce1['sessionId']}},void 0x0);m(_0x9cfce1,_0x3fe7e3,_0x37ba6a=>{const _0x8c7d74=_0x55f1e2;process[_0x8c7d74(0x1fc)][_0x8c7d74(0x140)](JSON['stringify'](_0x37ba6a[_0x8c7d74(0x299)],null,0x2)+'\x0a');});}catch(_0x3ddff0){if(!_0x459aaa(_0x3ddff0))throw _0x3ddff0;console['error'](_0x3ddff0['message']),process[_0x55f1e2(0x215)](0x1);}}function ee(_0x13c365){const _0x5224f1=_0x511361;process[_0x5224f1(0x1fc)][_0x5224f1(0x140)]('Model\x20'+_0x13c365[_0x5224f1(0x162)]+'\x20('+_0x13c365[_0x5224f1(0x326)]+'),\x20'+_0x13c365[_0x5224f1(0x378)][_0x5224f1(0x11a)]+_0x5224f1(0x127));}function Bn(_0x362453){const _0x24dd07=_0x511361;ee(_0x362453);for(let _0x503521 of Object[_0x24dd07(0x226)](_0x362453[_0x24dd07(0x197)])){let _0x143553=_0x362453[_0x24dd07(0x197)][_0x503521],_0x200c37=_0x143553['type']===_0x24dd07(0x2b1)?'probability\x20'+_0x143553[_0x24dd07(0x2b1)]['toFixed'](0x2):_0x143553['type']===_0x24dd07(0x1ed)?_0x24dd07(0x1d3)+_0x143553[_0x24dd07(0x1ed)]+'\x20(confidence\x20'+_0x143553[_0x24dd07(0x2da)][_0x24dd07(0x233)](0x2)+')':'score\x20'+_0x143553[_0x24dd07(0x229)][_0x24dd07(0x233)](0x2)+_0x24dd07(0x329)+_0x143553['confidence'][_0x24dd07(0x233)](0x2)+')';process[_0x24dd07(0x1fc)][_0x24dd07(0x140)]('\x20\x20'+_0x503521+':\x20'+_0x200c37+'\x0a');}}function Jn(_0x5dd786){const _0x3ba9fc=_0x511361;ee(_0x5dd786),_0x5dd786[_0x3ba9fc(0x18a)][_0x3ba9fc(0x366)]((_0x5bfda5,_0x18cf5b)=>{const _0xf2fefa=_0x3ba9fc;process[_0xf2fefa(0x1fc)][_0xf2fefa(0x140)]('\x20\x20'+(_0x18cf5b+0x1)+'.\x20'+_0x5bfda5['id']+'\x20\x20'+_0x5bfda5[_0xf2fefa(0x229)][_0xf2fefa(0x233)](0x3)+_0xf2fefa(0x334)+_0x5bfda5[_0xf2fefa(0x2c7)]+')\x0a');});}function _0xaca4(_0x1ccc45,_0x5a660f){_0x1ccc45=_0x1ccc45-0x118;const _0x134f4d=_0x134f();let _0xaca47e=_0x134f4d[_0x1ccc45];return _0xaca47e;}function Hn(_0xd2913c){const _0x4fbc8e=_0x511361;ee(_0xd2913c),process[_0x4fbc8e(0x1fc)][_0x4fbc8e(0x140)]('Rubric\x20'+_0xd2913c[_0x4fbc8e(0x1cc)]+'\x0a');for(let _0x4853be of _0xd2913c[_0x4fbc8e(0x18a)])process[_0x4fbc8e(0x1fc)]['write']('\x20\x20'+_0x4853be['id']+':\x20'+_0x4853be[_0x4fbc8e(0x2f5)]+_0x4fbc8e(0x329)+_0x4853be[_0x4fbc8e(0x2da)][_0x4fbc8e(0x233)](0x2)+')\x0a');}async function Gn(_0x58dc53){const _0x5e5d76=_0x511361;let _0x55340f=_0x58dc53[_0x5e5d76(0x2b2)][_0x5e5d76(0x32f)]();_0x55340f||(console[_0x5e5d76(0x22b)]('transcribe\x20needs\x20audio:\x20'+_0x58dc53[_0x5e5d76(0x20a)][_0x5e5d76(0x361)]+_0x5e5d76(0x2d6)),process[_0x5e5d76(0x215)](0x2));let {client:_0x38ecc3}=await x(_0x58dc53);try{let _0x1395eb=_0x55340f==='-'?{'data':await Wn(process[_0x5e5d76(0x2c8)])}:_0x55340f;m(_0x58dc53,await _0x27a535(_0x38ecc3,_0x1395eb,void 0x0),_0x5cdee6=>{const _0x448d02=_0x5e5d76;process[_0x448d02(0x1fc)]['write'](_0x5cdee6['text']+'\x0a');});}catch(_0x4ac3c4){if(_0x271972(_0x4ac3c4)&&(console[_0x5e5d76(0x22b)](_0x4ac3c4[_0x5e5d76(0x282)]),process[_0x5e5d76(0x215)](_0x4ac3c4['status']===void 0x0?0x2:0x1)),typeof _0x4ac3c4?.[_0x5e5d76(0x331)]!=_0x5e5d76(0x28a))throw _0x4ac3c4;console['error'](_0x5e5d76(0x2ba)+_0x55340f+'\x20('+_0x4ac3c4['message']+').'),process[_0x5e5d76(0x215)](0x2);}}async function Wn(_0x7a0446){const _0x18e809=_0x511361;let _0x3671f0=[];for await(let _0x5251d3 of _0x7a0446)_0x3671f0['push'](Buffer[_0x18e809(0x1c4)](_0x5251d3));return Buffer[_0x18e809(0x32e)](_0x3671f0);}async function Qn(_0x3c55d8){const _0x2dfb36=_0x511361;let [_0x56e80d='',_0x5eef91='',..._0xa548cc]=_0x3c55d8[_0x2dfb36(0x211)];ve[_0x2dfb36(0x1bd)](_0x56e80d)||(console[_0x2dfb36(0x22b)]((_0x56e80d?_0x2dfb36(0x204)+_0x56e80d+'.\x20':'')+_0x2dfb36(0x20f)+_0x3c55d8[_0x2dfb36(0x20a)][_0x2dfb36(0x361)]+_0x2dfb36(0x1e8)+ve[_0x2dfb36(0x311)](_0x2dfb36(0x2b7))+'.'),process[_0x2dfb36(0x215)](0x2));let _0x4ecc48=_0x56e80d;_0x4ecc48!==_0x2dfb36(0x296)&&(_0x3c55d8[_0x2dfb36(0x239)]!==void 0x0||_0x3c55d8[_0x2dfb36(0x2d5)]!==void 0x0||_0x3c55d8['sessionId']!==void 0x0)&&(console['error']('--to,\x20--summary\x20and\x20--session\x20apply\x20to\x20`'+_0x3c55d8['product'][_0x2dfb36(0x361)]+_0x2dfb36(0x354)),process[_0x2dfb36(0x215)](0x2));let _0x3258c4=(_0x4ecc48===_0x2dfb36(0x296)?_0x3c55d8[_0x2dfb36(0x211)][_0x2dfb36(0x313)](0x1):_0xa548cc)[_0x2dfb36(0x311)]('\x20')[_0x2dfb36(0x32f)](),_0x608749=_0x4ecc48===_0x2dfb36(0x296)||_0x4ecc48===_0x2dfb36(0x291);(_0x4ecc48!==_0x2dfb36(0x296)&&!_0x5eef91||(_0x608749?!_0x3258c4:_0x3258c4)||_0x4ecc48===_0x2dfb36(0x296)&&!_0x3c55d8['sessionId'])&&(console[_0x2dfb36(0x22b)](_0x2dfb36(0x280)+_0x3c55d8[_0x2dfb36(0x20a)][_0x2dfb36(0x361)]+'\x20'+$e[_0x4ecc48]),process['exit'](0x2));let _0x5c7a12=_0x608749&&_0x3258c4==='-'?(await H('-',process['stdin']))['trim']():_0x3258c4;_0x608749&&!_0x5c7a12&&(console[_0x2dfb36(0x22b)](_0x2dfb36(0x280)+_0x3c55d8[_0x2dfb36(0x20a)][_0x2dfb36(0x361)]+'\x20'+$e[_0x4ecc48]+_0x2dfb36(0x327)),process[_0x2dfb36(0x215)](0x2));let {client:_0x52ebdb}=await x(_0x3c55d8);try{await Kn(_0x3c55d8,_0x52ebdb,_0x4ecc48,_0x5eef91,_0x5c7a12);}catch(_0x4e1c26){if(!_0x5ae288(_0x4e1c26))throw _0x4e1c26;console[_0x2dfb36(0x22b)](_0x4e1c26[_0x2dfb36(0x282)]),process[_0x2dfb36(0x215)](0x1);}}async function Kn(_0x2d2216,_0x20fe65,_0x10738b,_0x375f86,_0x582ff6){const _0x228646=_0x511361;switch(_0x10738b){case _0x228646(0x2cd):m(_0x2d2216,await _0x572205(_0x20fe65,_0x375f86),qn);return;case _0x228646(0x1b0):m(_0x2d2216,await _0x5f20ad(_0x20fe65,_0x375f86),_0x4f7459=>{const _0x44b1e0=_0x228646;_0x4f7459['delegation']&&process[_0x44b1e0(0x1fc)]['write'](_0x44b1e0(0x18d)+_0x4f7459['delegation']['id']+'\x20('+_0x4f7459[_0x44b1e0(0x287)][_0x44b1e0(0x2e6)]+').\x0a'),_0x4f7459['pendingResults'][_0x44b1e0(0x342)]===0x0&&process['stderr']['write'](_0x44b1e0(0x330));for(let _0x5d149d of _0x4f7459[_0x44b1e0(0x177)])process[_0x44b1e0(0x1fc)][_0x44b1e0(0x140)]('\x0a'+_0x5d149d['id']+_0x44b1e0(0x28c)+(_0x5d149d[_0x44b1e0(0x266)]??_0x44b1e0(0x1c3))+'\x20\x20'+(_0x5d149d[_0x44b1e0(0x1d1)]??'')+'\x0a'+(_0x5d149d[_0x44b1e0(0x246)]?.[_0x44b1e0(0x300)]??'')+'\x0a');_0x4f7459[_0x44b1e0(0x177)]['length']>0x0&&process[_0x44b1e0(0x317)][_0x44b1e0(0x140)](_0x44b1e0(0x20d)+_0x2d2216[_0x44b1e0(0x20a)]['bin']+_0x44b1e0(0x13c));});return;case _0x228646(0x2c5):m(_0x2d2216,await _0x2169df(_0x20fe65,_0x375f86),Se);return;case'create':{let _0x3265ee=await _0x536afa(_0x20fe65,{'sessionId':_0x2d2216[_0x228646(0x25d)],'task':_0x582ff6,..._0x2d2216[_0x228646(0x2d5)]!==void 0x0&&{'contextSummary':_0x2d2216[_0x228646(0x2d5)]},..._0x2d2216[_0x228646(0x239)]!==void 0x0&&{'recipient':_0x2d2216['delegateTo']}});m(_0x2d2216,_0x3265ee,_0x1881ce=>{const _0x4bd454=_0x228646;_0x1881ce[_0x4bd454(0x332)]?process[_0x4bd454(0x1fc)][_0x4bd454(0x140)]('Delegated\x20'+_0x1881ce[_0x4bd454(0x2ee)]+_0x4bd454(0x1d9)+_0x1881ce[_0x4bd454(0x332)]['displayName']+'\x20<'+_0x1881ce[_0x4bd454(0x332)][_0x4bd454(0x31f)]+_0x4bd454(0x1a2)):process[_0x4bd454(0x1fc)][_0x4bd454(0x140)](_0x4bd454(0x301)+_0x1881ce[_0x4bd454(0x2ee)]+'.\x20Share:\x20'+_0x1881ce['deepLink']+'\x0a');});return;}case'claim':{let _0x4e2d92=await _0x5dcd0b(_0x20fe65,_0x375f86);m(_0x2d2216,_0x4e2d92,_0x25911f=>{const _0x269768=_0x228646;Se(_0x25911f),process[_0x269768(0x1fc)][_0x269768(0x140)](_0x269768(0x307)+_0x25911f[_0x269768(0x25d)]+'\x0a'),process[_0x269768(0x317)][_0x269768(0x140)](_0x269768(0x2e4)+_0x2d2216[_0x269768(0x20a)][_0x269768(0x361)]+_0x269768(0x16f)+_0x25911f[_0x269768(0x25d)]+_0x269768(0x21a)+_0x2d2216['product'][_0x269768(0x361)]+_0x269768(0x154)+_0x25911f[_0x269768(0x2ee)]+_0x269768(0x34d));});return;}case'complete':{let {alreadyCompleted:_0x249207}=await _0x4f177a(_0x20fe65,_0x375f86,{'content':_0x582ff6});m(_0x2d2216,{'delegationId':_0x375f86,'alreadyCompleted':_0x249207},_0x2c3102=>{const _0x1e7bec=_0x228646;process[_0x1e7bec(0x1fc)][_0x1e7bec(0x140)]((_0x2c3102[_0x1e7bec(0x13a)]?_0x1e7bec(0x344):_0x1e7bec(0x347))+_0x1e7bec(0x1de)+_0x2c3102[_0x1e7bec(0x2ee)]+'.\x0a');});return;}case _0x228646(0x2bf):{let _0x57196c=await _0xec2084(_0x20fe65,_0x375f86);m(_0x2d2216,{'delegationId':_0x375f86,..._0x57196c},_0x37df2b=>{const _0x3f84c7=_0x228646;process[_0x3f84c7(0x1fc)]['write']((_0x37df2b['alreadyAccepted']?_0x3f84c7(0x15f):_0x3f84c7(0x26a))+'\x20delegation\x20'+_0x37df2b[_0x3f84c7(0x2ee)]+'.\x0a');});return;}default:{let _0x280d76={'dismiss':_0x23172c,'cancel':_0x450b5c,'delete':_0x5044aa}[_0x10738b];await _0x280d76(_0x20fe65,_0x375f86);let _0x45200a={'dismiss':_0x228646(0x1f7),'cancel':_0x228646(0x308),'delete':_0x228646(0x25a)}[_0x10738b];m(_0x2d2216,{'delegationId':_0x375f86,[_0x45200a]:!0x0},()=>{const _0x51760b=_0x228646;process[_0x51760b(0x1fc)][_0x51760b(0x140)](''+_0x45200a[0x0]['toUpperCase']()+_0x45200a[_0x51760b(0x313)](0x1)+_0x51760b(0x1de)+_0x375f86+'.\x0a');});}}}function qn(_0x1f8f06){const _0x664101=_0x511361;if(_0x1f8f06[_0x664101(0x342)]===0x0){process['stderr'][_0x664101(0x140)](_0x664101(0x1c9));return;}process['stdout'][_0x664101(0x140)]('ID'[_0x664101(0x1e7)](0x24)+'\x20\x20'+_0x664101(0x139)[_0x664101(0x1e7)](0x9)+'\x20\x20'+'ASSIGNEE'[_0x664101(0x1e7)](0x18)+'\x20\x20TASK\x0a');for(let _0x5b045c of _0x1f8f06)process[_0x664101(0x1fc)][_0x664101(0x140)](_0x5b045c['id'][_0x664101(0x1e7)](0x24)+'\x20\x20'+_0x5b045c[_0x664101(0x2e6)][_0x664101(0x1e7)](0x9)+'\x20\x20'+(_0x5b045c[_0x664101(0x266)]??'-')[_0x664101(0x1e7)](0x18)+'\x20\x20'+(_0x5b045c[_0x664101(0x1d1)]??'')+'\x0a');}function Se(_0x47aeaa){const _0x3d4583=_0x511361;process[_0x3d4583(0x1fc)][_0x3d4583(0x140)](_0x3d4583(0x145)+(_0x47aeaa[_0x3d4583(0x16b)]??'-')+'\x0a'),_0x47aeaa[_0x3d4583(0x2ae)]&&process[_0x3d4583(0x1fc)][_0x3d4583(0x140)](_0x3d4583(0x307)+_0x47aeaa[_0x3d4583(0x2ae)]+'\x0a'),process['stdout']['write']('Task\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x47aeaa[_0x3d4583(0x1d1)]??'-')+'\x0a'),_0x47aeaa[_0x3d4583(0x2d5)]&&process[_0x3d4583(0x1fc)][_0x3d4583(0x140)]('\x0a'+_0x47aeaa[_0x3d4583(0x2d5)]+'\x0a\x0a');}async function zn(_0x25eb36){const _0x24ba9d=_0x511361;_0x25eb36[_0x24ba9d(0x2b2)][_0x24ba9d(0x32f)]()||(console[_0x24ba9d(0x22b)](_0x24ba9d(0x280)+_0x25eb36['product']['bin']+_0x24ba9d(0x34e)),process[_0x24ba9d(0x215)](0x2));let {client:_0xd499e5}=await x(_0x25eb36),_0x1d40a4;try{_0x1d40a4=await _0x25fa20(_0xd499e5,_0x25eb36[_0x24ba9d(0x2b2)]);}catch(_0x911125){if(!_0x5ae288(_0x911125))throw _0x911125;console[_0x24ba9d(0x22b)](_0x911125['message']),process[_0x24ba9d(0x215)](0x1);}m(_0x25eb36,_0x1d40a4,_0x23adc4=>{const _0x1c11d7=_0x24ba9d;_0x23adc4['length']===0x0&&process[_0x1c11d7(0x317)][_0x1c11d7(0x140)](_0x1c11d7(0x1d7)+_0x25eb36[_0x1c11d7(0x2b2)]['trim']()+_0x1c11d7(0x379));for(let _0x33a4ae of _0x23adc4)process[_0x1c11d7(0x1fc)]['write'](_0x33a4ae[_0x1c11d7(0x31f)][_0x1c11d7(0x1e7)](0x20)+'\x20\x20'+_0x33a4ae[_0x1c11d7(0x29c)]+'\x0a');});}async function Vn(_0x5ed9d8){const _0x4217af=_0x511361;_0x5ed9d8[_0x4217af(0x133)]===_0x4217af(0x360)&&(console[_0x4217af(0x22b)](_0x4217af(0x335)),process[_0x4217af(0x215)](0x2));let _0x4d7fc7=G(_0x20be7e()),_0xf34075=_0x5ed9d8[_0x4217af(0x2f1)];if(_0x5ed9d8['env']){let _0x442992=_0x5ed9d8['env'];await _0xf6217f({'env':_0x442992,'tenant':_0x5ed9d8[_0x4217af(0x1ff)]??q(_0x4d7fc7,_0x4c4bd4[_0x442992]),'skipEnvCheck':_0xf34075});return;}let _0x5bc03e=_0x5ed9d8[_0x4217af(0x260)]??Re();if(_0x5bc03e){await _0xf6217f({'baseUrl':_0x5bc03e,'tenant':_0x5ed9d8[_0x4217af(0x1ff)]??q(_0x4d7fc7,_0x5bc03e),'skipEnvCheck':_0xf34075});return;}if(_0x4d7fc7?.[_0x4217af(0x1b9)]){await _0xf6217f({'baseUrl':_0x4d7fc7[_0x4217af(0x1b9)],'tenant':_0x5ed9d8[_0x4217af(0x1ff)]??_0x4d7fc7[_0x4217af(0x22c)],'skipEnvCheck':_0xf34075});return;}console[_0x4217af(0x22b)]('First\x20login\x20requires\x20--env\x20or\x20--url.\x20Usage:\x20'+_0x5ed9d8[_0x4217af(0x20a)][_0x4217af(0x361)]+_0x4217af(0x2fe)+_0x5ed9d8['product'][_0x4217af(0x361)]+_0x4217af(0x131)),process[_0x4217af(0x215)](0x2);}function q(_0x206ba0,_0x1446f4){const _0x425655=_0x511361;return _0x206ba0?.[_0x425655(0x1b9)]&&Yn(_0x206ba0[_0x425655(0x1b9)],_0x1446f4)?_0x206ba0[_0x425655(0x22c)]:void 0x0;}function Yn(_0x3336f9,_0x3c1dd1){const _0x1d9f15=_0x511361;try{return new URL(_0x3336f9)[_0x1d9f15(0x201)]===new URL(_0x3c1dd1)['origin'];}catch{return!0x1;}}async function Xn(_0x5879de,_0x3bea1b){const _0x2e8cd4=_0x511361;Y()&&(console[_0x2e8cd4(0x22b)](_0x2e8cd4(0x310)),process[_0x2e8cd4(0x215)](0x2));let _0x5b93d0=await _0x19af4a();if(_0x5b93d0||(console[_0x2e8cd4(0x22b)](Zn(_0x3bea1b)),process[_0x2e8cd4(0x215)](0x2)),_0x5879de['trim']()){let _0xfd70e9=await _0x476766(_0x5b93d0,_0x5879de);_0x3a417a(_0xfd70e9)||(console[_0x2e8cd4(0x22b)]('Tenant\x20not\x20switched:\x20could\x20not\x20write\x20'+_0x20be7e()+_0x2e8cd4(0x17c)+_0x5b93d0[_0x2e8cd4(0x22c)]+'.'),process['exit'](0x1)),console[_0x2e8cd4(0x35c)](_0x2e8cd4(0x372)+_0xfd70e9[_0x2e8cd4(0x22c)]+'\x20('+_0xfd70e9[_0x2e8cd4(0x192)]+_0x2e8cd4(0x1ac)+_0x20be7e());return;}eo(await _0x3684a0(_0x5b93d0),_0x5b93d0,_0x3bea1b);}function Zn(_0x5d6f21){const _0x522dca=_0x511361;if(_0x36ff96['existsSync'](_0x20be7e()))return _0x522dca(0x23a)+_0x5d6f21+'\x20login`\x20again.';let _0x1d7653=V();return G(_0x1d7653)?_0x522dca(0x314)+_0x1d7653+',\x20whose\x20tenant\x20is\x20chosen\x20in\x20the\x20app.\x20Run\x20`'+_0x5d6f21+'\x20login\x20--env\x20<env>`\x20for\x20a\x20CLI\x20login\x20of\x20your\x20own.':_0x522dca(0x134)+_0x5d6f21+'\x20login\x20--env\x20<alpha|staging|production>`\x20first.';}function eo(_0x3a5a73,_0x12dd61,_0x4a39bc){const _0x1ef8f9=_0x511361;let _0x47c592=_0x3a5a73[_0x1ef8f9(0x14d)](_0xb63c1e=>_0xb63c1e['id']===_0x12dd61[_0x1ef8f9(0x192)]?'*\x20'+_0xb63c1e['name']+_0x1ef8f9(0x227):'\x20\x20'+_0xb63c1e[_0x1ef8f9(0x143)]);process['stdout'][_0x1ef8f9(0x140)]('Tenants\x20of\x20'+(_0x12dd61[_0x1ef8f9(0x1aa)]??_0x12dd61[_0x1ef8f9(0x35f)])+':\x0a'+_0x47c592['join']('\x0a')+'\x0a'),_0x3a5a73[_0x1ef8f9(0x342)]>0x1&&process[_0x1ef8f9(0x1fc)]['write'](_0x1ef8f9(0x203)+_0x4a39bc+_0x1ef8f9(0x31d));}function to(_0x2b63d4){const _0x1d23e4=_0x511361;return _0x2b63d4?.[_0x1d23e4(0x37c)]?.[_0x1d23e4(0x2e6)]===0x191||/401/[_0x1d23e4(0x250)](String(_0x2b63d4?.['message']??''));}function Ae(_0x19267f,_0x2b789c,_0x35e3b9,_0x32aec8){const _0xc2fb77=_0x511361;let _0x36a62c=_0x19267f[_0xc2fb77(0x162)]||process.env.MODEL;return{'backendUrl':_0x35e3b9,'auth':_0x2b789c,'enableComputerUse':!_0x19267f[_0xc2fb77(0x16c)]&&!_0x19267f[_0xc2fb77(0x306)],'autoSpawnInterop':!_0x19267f[_0xc2fb77(0x16c)],'enableConnections':!_0x19267f[_0xc2fb77(0x208)],'enableSecurity':!_0x19267f['noSecurity'],'keepInteropAlive':_0x19267f['keepAlive'],..._0x32aec8[_0xc2fb77(0x170)]?{'enableBackgroundCommands':!0x1}:{},..._0x19267f['noMemory']?{'enableMemory':!0x1}:{},..._0x19267f[_0xc2fb77(0x129)]?{'enableTaskAutomation':!0x0}:{},..._0x19267f['preloadSkills']['length']>0x0?{'preloadSkills':_0x19267f[_0xc2fb77(0x368)]}:{},..._0x36a62c?{'model':_0x36a62c}:{},..._0x19267f['projectId']?{'projectId':_0x19267f[_0xc2fb77(0x22e)]}:{},..._0x19267f[_0xc2fb77(0x33b)]?{'vertical':_0x19267f[_0xc2fb77(0x33b)]}:{},..._0x19267f[_0xc2fb77(0x2d2)]?{'workingDirectory':_0x19267f[_0xc2fb77(0x2d2)]}:{},..._0x19267f[_0xc2fb77(0x1f8)]?{'bundledSkillsPath':_0x19267f[_0xc2fb77(0x1f8)]}:{},..._0x19267f[_0xc2fb77(0x278)]?{'effort':_0x19267f['effort']}:{},..._0x19267f[_0xc2fb77(0x25d)]?{'sessionId':_0x19267f[_0xc2fb77(0x25d)]}:{},..._0x19267f[_0xc2fb77(0x11d)]?{'verbose':!0x0}:{},..._0x19267f[_0xc2fb77(0x20a)][_0xc2fb77(0x2d1)]?{'agentName':_0x19267f[_0xc2fb77(0x20a)][_0xc2fb77(0x2d1)]}:{}};}async function no(_0x4ec170){const _0x13df25=_0x511361;let _0x576364=_0x4ec170[_0x13df25(0x1c2)]!==_0x13df25(0x186),_0x7b3b56=_0x4ec170[_0x13df25(0x2be)]===void 0x0?null:Oe(_0x4ec170[_0x13df25(0x2be)],_0x4ec170[_0x13df25(0x20a)][_0x13df25(0x361)]),_0x1442dc=!_0x576364&&!_0x7b3b56&&!_0x4ec170[_0x13df25(0x182)]&&_0x4ec170[_0x13df25(0x2b2)]!=='-'&&!!process[_0x13df25(0x2c8)][_0x13df25(0x2e7)]&&!!process[_0x13df25(0x1fc)][_0x13df25(0x2e7)],_0x55f26d=_0x4ec170[_0x13df25(0x23f)]==='stream-json'?ce(process[_0x13df25(0x2c8)],_0x52d4bb=>{const _0x4d020d=_0x13df25;process[_0x4d020d(0x317)][_0x4d020d(0x140)](_0x52d4bb[_0x4d020d(0x282)]+_0x4d020d(0x34b));}):null,_0x4cc797=_0x55f26d?(await _0x55f26d['next']())[_0x13df25(0x337)]:void 0x0,_0x2b65e1=_0x55f26d?_0x4cc797?.[_0x13df25(0x186)]??'':_0x1442dc?_0x4ec170['prompt']['trim']():await H(_0x4ec170[_0x13df25(0x2b2)],process[_0x13df25(0x2c8)]);if(!_0x1442dc&&!_0x2b65e1&&(console['error']('Missing\x20prompt.\x20Pass\x20it\x20as\x20an\x20argument,\x20pipe\x20it\x20via\x20stdin,\x20or\x20run\x20`'+_0x4ec170['product'][_0x13df25(0x361)]+'\x20--help`.'),process[_0x13df25(0x215)](0x2)),!_0x576364){await xe(_0x4ec170,_0x2b65e1,_0x1442dc,null,_0x7b3b56,null);return;}let _0x40a6ac=!0x1,_0x1c4e8a=_0x4cc92f=>{const _0x275428=_0x13df25;_0x40a6ac=!0x0,O(_0x3922ed(_0x4cc92f)),(_0x4cc92f[_0x275428(0x254)]||_0x4cc92f[_0x275428(0x12a)])&&(process[_0x275428(0x22f)]=0x1);},_0x27bdbc=Date[_0x13df25(0x153)]();try{await xe(_0x4ec170,_0x2b65e1,!0x1,_0x1c4e8a,_0x7b3b56,_0x55f26d?{'messages':_0x55f26d,'first':_0x4cc797,'close':()=>{const _0x419c64=_0x13df25;process[_0x419c64(0x2c8)][_0x419c64(0x358)]();}}:null);}catch(_0x44ed92){if(_0x40a6ac)throw _0x44ed92;process[_0x13df25(0x317)]['write']((_0x44ed92 instanceof Error?_0x44ed92[_0x13df25(0x2b8)]??_0x44ed92[_0x13df25(0x282)]:String(_0x44ed92))+'\x0a'),_0x1c4e8a(new _0x2965b9(_0x27bdbc)[_0x13df25(0x17b)]({'endedAtMs':Date['now'](),'usage':[],'error':_0x44ed92}));}finally{_0x55f26d&&(process['stdin'][_0x13df25(0x358)](),_0x55f26d[_0x13df25(0x12f)](void 0x0));}}async function xe(_0xb60695,_0x20fe6f,_0x130958,_0x459843,_0x3d9926,_0x3b6456){const _0x50e1eb=_0x511361;y={'lastType':null,'quiet':_0xb60695[_0x50e1eb(0x36c)],'bin':_0xb60695['product'][_0x50e1eb(0x361)]};let _0x445697=new Set(),_0x11b5c3,_0x5a6ab1=_0x15e733=>{const _0x49bf87=_0x50e1eb;(!_0x459843||_0x15e733[_0x49bf87(0x2c4)]===_0x49bf87(0x367)||_0x15e733[_0x49bf87(0x2c4)]==='turn_start')&&(_0x11b5c3??Le)(_0x15e733);for(let _0x20f8ea of _0x445697)_0x20f8ea(_0x15e733);},_0x34d6f4=await X(_0xb60695[_0x50e1eb(0x20a)][_0x50e1eb(0x361)]),_0x5babe5=new _0x424e66();_0x5babe5[_0x50e1eb(0x2dd)](_0x5a6ab1);let _0x278925=_0x3ab8d9(_0xb60695['env'],_0x34d6f4,_0xb60695[_0x50e1eb(0x257)]);Z(_0xb60695[_0x50e1eb(0x133)],_0xb60695[_0x50e1eb(0x257)],_0x278925);let _0xc8922={'input':null},_0x204a14=_0x130958?re(()=>_0xc8922[_0x50e1eb(0x2bb)],_0x1332f4=>{const _0x23c20d=_0x50e1eb;process[_0x23c20d(0x317)][_0x23c20d(0x140)](_0x1332f4);}):null,_0x243328=_0x367f8e=>_0x204a14?{..._0x367f8e,'askUser':_0x204a14}:_0x367f8e,_0x5b172c=_0x243328(Ae(_0xb60695,_0x34d6f4,_0x278925,{'oneTurn':!_0x130958})),_0x5a2961=!0x1,_0x2dbb65=!0x1,_0x49044d,_0x517163=()=>_0x49044d??=_0x5babe5[_0x50e1eb(0x1db)](),_0xeb8a22=()=>{const _0x3b772c=_0x50e1eb;_0x2dbb65&&process[_0x3b772c(0x215)](0x82),_0x2dbb65=!0x0,process[_0x3b772c(0x317)]['write'](_0x3b772c(0x169)),_0x5a2961&&_0x5babe5[_0x3b772c(0x224)]()['catch'](_0x280730=>console[_0x3b772c(0x22b)](_0x280730))['then'](_0x517163)['then'](()=>process[_0x3b772c(0x215)](0x82),_0x3600ed=>{const _0x12cefa=_0x3b772c;console[_0x12cefa(0x22b)](_0x3600ed),process[_0x12cefa(0x215)](0x82);});};process['on'](_0x50e1eb(0x1b8),_0xeb8a22);let _0x10f2aa=_0xb60695['attachments'],_0x145fd2=async _0x18c8c6=>{const _0x2a1122=_0x50e1eb;let _0x5c9830=_0x10f2aa;_0x10f2aa=[];let _0x295a30=()=>_0x5babe5[_0x2a1122(0x149)](_0x18c8c6,{'attachments':_0x5c9830});try{return await _0x295a30();}catch(_0x45735b){if(_0x2dbb65||!to(_0x45735b)||!process[_0x2a1122(0x2c8)]['isTTY']||_0xb60695[_0x2a1122(0x133)]===_0x2a1122(0x360)||!(_0xb60695['env']||_0x34d6f4[_0x2a1122(0x1b9)]))throw _0x45735b;process['stderr'][_0x2a1122(0x140)]('\x0a⚠️\x20\x20Auth\x20expired.\x20Opening\x20browser\x20to\x20re-login…\x0a');let _0xcebb72=_0x5babe5[_0x2a1122(0x184)]()??_0xb60695[_0x2a1122(0x25d)],_0x49328c=await _0xf6217f(_0xb60695[_0x2a1122(0x133)]?{'env':_0xb60695['env'],'tenant':q(_0x34d6f4,_0x4c4bd4[_0xb60695[_0x2a1122(0x133)]]),'skipEnvCheck':!0x0}:{'baseUrl':_0x34d6f4[_0x2a1122(0x1b9)],'tenant':_0x34d6f4[_0x2a1122(0x22c)],'skipEnvCheck':!0x0}),_0x4f18c7={'text':'','failed':!0x1,'sessionId':_0xcebb72};return _0x2dbb65||(_0x5a2961=!0x1,await _0x517163(),_0x2dbb65)?_0x4f18c7:(_0x5babe5=new _0x424e66(),_0x49044d=void 0x0,_0x5babe5[_0x2a1122(0x2dd)](_0x5a6ab1),_0x34d6f4=_0x49328c,await _0x5babe5[_0x2a1122(0x370)]({..._0x243328(Ae(_0xb60695,_0x34d6f4,_0x278925,{'oneTurn':!_0x130958})),..._0xcebb72?{'sessionId':_0xcebb72}:{}}),_0x5a2961=!0x0,_0x2dbb65?_0x4f18c7:_0x295a30());}};try{if(await _0x5babe5[_0x50e1eb(0x370)](_0x5b172c),_0x5a2961=!0x0,_0x2dbb65)return;if(_0x130958)await ro({'prompt':_0x20fe6f,'sendMessage':_0x145fd2,'onSigint':_0xeb8a22,'setAnswerInput':_0x5c1260=>{const _0x56a756=_0x50e1eb;_0xc8922[_0x56a756(0x2bb)]=_0x5c1260;},'registerEventPrinter':_0x5cf203=>(_0x11b5c3=_0x5cf203,()=>{_0x11b5c3=void 0x0;})});else{if(_0x459843||_0x3d9926){let _0x520c95=_0xb60695[_0x50e1eb(0x1c2)]===_0x50e1eb(0x315)?_0x1c4274=>O(_0x2250b1(_0x1c4274)):()=>{},_0x1158cf=_0x3b6456?de({'input':_0x3b6456,'getAgent':()=>_0x5babe5,'replay':_0xb60695[_0x50e1eb(0x2f6)],'onEvent':_0x353dd1=>(_0x445697[_0x50e1eb(0x147)](_0x353dd1),()=>{const _0x5de051=_0x50e1eb;_0x445697[_0x5de051(0x183)](_0x353dd1);}),'write':O,'isRunStopNotice':_0x1dafbf,'actionableErrorText':_0x25ae9f,'warn':_0x329320=>{const _0x54e011=_0x50e1eb;process['stderr'][_0x54e011(0x140)](_0x329320);}}):null,_0x284a60=await _0x53c096({'onEvent':_0x5adbb2=>(_0x445697[_0x50e1eb(0x147)](_0x5adbb2),()=>{const _0x4962a0=_0x50e1eb;_0x445697[_0x4962a0(0x183)](_0x5adbb2);}),'sendMessage':async _0x2502e9=>{const _0x134aa9=_0x50e1eb;try{let _0x39c80f=await _0x145fd2(_0x2502e9);return _0x1158cf?await _0x1158cf[_0x134aa9(0x2e3)](_0x39c80f):_0x39c80f;}finally{_0x1158cf?.['stop']();}},'getSessionId':()=>_0x5babe5[_0x50e1eb(0x184)](),'getTurnUsageHistory':_0x15be88=>_0x5babe5['getTurnUsageHistory'](_0x15be88),'complete':_0x348cb2=>_0x5babe5[_0x50e1eb(0x291)](_0x348cb2)},_0x20fe6f,void 0x0,_0x520c95,_0x3d9926?{'outputSchema':_0x3d9926}:void 0x0);_0x459843?_0x459843(_0x284a60):oo(_0x284a60);}else await _0x145fd2(_0x20fe6f);}}catch(_0x28c816){if(!_0x2dbb65)throw _0x28c816;}finally{try{await _0x517163();}finally{process[_0x50e1eb(0x377)](_0x50e1eb(0x1b8),_0xeb8a22),_0x2dbb65&&(process[_0x50e1eb(0x22f)]=0x82);}}}function oo(_0x18d5e2){const _0x5d0080=_0x511361;_0x18d5e2[_0x5d0080(0x12a)]?(console[_0x5d0080(0x22b)](_0x5d0080(0x345)+_0x18d5e2[_0x5d0080(0x12a)]['message']),process[_0x5d0080(0x22f)]=0x1):_0x18d5e2[_0x5d0080(0x254)]?(console['error']('No\x20structured\x20output:\x20the\x20turn\x20failed\x20('+_0x18d5e2[_0x5d0080(0x22b)]+').'),process[_0x5d0080(0x22f)]=0x1):process[_0x5d0080(0x1fc)][_0x5d0080(0x140)](JSON['stringify'](_0x18d5e2['structured'],null,0x2)+'\x0a');}function so(_0x38fe3f,_0x1fd27){const _0x4e1ac8=_0x511361;let _0x400942=process[_0x4e1ac8(0x1fc)][_0x4e1ac8(0x140)][_0x4e1ac8(0x24b)](process['stdout']),_0x15a676=!0x1;return process[_0x4e1ac8(0x1fc)][_0x4e1ac8(0x140)]=(..._0x34b345)=>{const _0x350e41=_0x4e1ac8;if(!_0x15a676)return _0x400942(..._0x34b345);_0x2c299f(_0x1fd27,0x0),_0x2145ee(_0x1fd27,0x0);let _0x26e0cf=_0x400942(..._0x34b345);return _0x38fe3f[_0x350e41(0x2b2)](!0x0),_0x26e0cf;},{'show':()=>{const _0x17692a=_0x4e1ac8;_0x15a676=!0x0,_0x38fe3f[_0x17692a(0x2b2)]();},'hide':()=>{_0x15a676=!0x1;},'erase':()=>{_0x15a676&&(_0x2c299f(_0x1fd27,0x0),_0x2145ee(_0x1fd27,0x0)),_0x15a676=!0x1;},'restore':()=>{const _0x25c2a6=_0x4e1ac8;_0x15a676=!0x1,process[_0x25c2a6(0x1fc)][_0x25c2a6(0x140)]=_0x400942;}};}async function ro({prompt:_0x20c715,sendMessage:_0x7958fd,onSigint:_0x1ae299,setAnswerInput:_0x494a17,registerEventPrinter:_0x3213cb}){const _0x3562bb=_0x511361;let _0x35912e=_0x309c94({'input':process[_0x3562bb(0x2c8)],'output':process[_0x3562bb(0x317)],'terminal':!0x0,'prompt':_0x3562bb(0x2c1)}),_0x1d2e25=so(_0x35912e,process[_0x3562bb(0x317)]),_0x517d77=[],_0xe328de,_0x2979ff,_0x10a8bd,_0x1fd218=!0x1,_0x150f37=!0x1,_0x436e6b=!0x1,_0x4d1f93=Promise[_0x3562bb(0x292)](),_0x1af742,_0x55aea8=_0x3213cb(_0x54b6fe=>{const _0x10bed5=_0x3562bb;_0x54b6fe[_0x10bed5(0x2c4)]===_0x10bed5(0x367)&&(_0x1d2e25[_0x10bed5(0x30c)](),_0x4d1f93=new Promise(_0xa4042b=>{_0x1af742=_0xa4042b;})),Le(_0x54b6fe),_0x54b6fe[_0x10bed5(0x2c4)]==='done'&&(_0x1af742?.(),_0x1af742=void 0x0,!_0x436e6b&&!_0x1fd218&&_0x1d2e25[_0x10bed5(0x2c5)]());}),_0x19cd8f=()=>{_0x150f37=!0x0,_0x1af742?.(),_0x1ae299(),_0x35912e['close']();};_0x35912e['on'](_0x3562bb(0x37b),_0x27458e=>{const _0x54cc14=_0x3562bb;_0x10a8bd?_0x10a8bd(_0x27458e):_0xe328de?_0xe328de[_0x54cc14(0x284)](_0x27458e):_0x2979ff?_0x2979ff(_0x27458e):_0x517d77[_0x54cc14(0x284)](_0x27458e);}),_0x35912e[_0x3562bb(0x252)](_0x3562bb(0x206),()=>{const _0x4ec110=_0x3562bb;_0x1fd218=!0x0,_0x1d2e25[_0x4ec110(0x1bc)](),_0xe328de&&!_0x150f37&&_0x19cd8f(),_0x2979ff?.(null);});let _0x280630=()=>_0x517d77[_0x3562bb(0x342)]>0x0?Promise['resolve'](_0x517d77[_0x3562bb(0x295)]()):_0x1fd218?Promise[_0x3562bb(0x292)](null):new Promise(_0x848e87=>{_0x2979ff=_0x175544=>{_0x2979ff=void 0x0,_0x848e87(_0x175544);};});_0x494a17({'readLine':(_0x24b2c9,_0x255067)=>new Promise((_0x5f8356,_0x17837a)=>{const _0x3c254c=_0x3562bb;if(_0x1fd218&&!_0xe328de){_0x5f8356(null);return;}_0xe328de??=[];let _0x1a81ba=_0xe328de['shift']();if(_0x1a81ba!==void 0x0){_0x5f8356(_0x1a81ba);return;}let _0x2ad52a=()=>{const _0xfadedf=_0xaca4;_0x10a8bd=void 0x0,_0x255067[_0xfadedf(0x218)](_0xfadedf(0x18f),_0x2775f7),_0x1d2e25[_0xfadedf(0x1bc)](),_0x35912e[_0xfadedf(0x2db)](_0xfadedf(0x2c1));},_0x2775f7=()=>{const _0x4c8576=_0xaca4;_0x2ad52a(),_0x17837a(new Error(_0x4c8576(0x36f)));};_0x255067[_0x3c254c(0x363)]('abort',_0x2775f7,{'once':!0x0}),!_0x1fd218&&(_0x10a8bd=_0x1c0cb9=>{_0x2ad52a(),_0x5f8356(_0x1c0cb9);},_0x35912e[_0x3c254c(0x2db)](_0x24b2c9),_0x1d2e25[_0x3c254c(0x2c5)]());}),'endQuestions':()=>{const _0x47feda=_0x3562bb;_0xe328de&&_0x517d77[_0x47feda(0x284)](..._0xe328de),_0xe328de=void 0x0;}}),_0x35912e['on']('SIGINT',_0x19cd8f),process['stderr'][_0x3562bb(0x140)](_0x3562bb(0x288));let _0x3556b6=async _0x574b72=>{_0x436e6b=!0x0;try{await _0x7958fd(_0x574b72);}finally{_0x436e6b=!0x1;}};try{if(_0x20c715&&await _0x3556b6(_0x20c715),_0x150f37)return;!_0x1fd218&&!_0x1af742&&_0x1d2e25[_0x3562bb(0x2c5)]();for(let _0x53d62b=await _0x280630();_0x53d62b!==null&&(_0x1d2e25[_0x3562bb(0x1bc)](),!_0x150f37);_0x53d62b=await _0x280630()){let _0x5a583f=_0x53d62b[_0x3562bb(0x32f)]();if(_0x5a583f===_0x3562bb(0x200))break;_0x5a583f&&await _0x3556b6(_0x5a583f),!_0x1fd218&&!_0x1af742&&_0x1d2e25[_0x3562bb(0x2c5)]();}for(;!_0x150f37&&_0x1af742;)await _0x4d1f93;}finally{_0x494a17(null),_0x55aea8(),_0x1d2e25[_0x3562bb(0x13e)](),_0x35912e[_0x3562bb(0x377)](_0x3562bb(0x1b8),_0x19cd8f),_0x35912e[_0x3562bb(0x206)]();}}async function Fe(_0x2948ed,_0x2f00ae){await io(_0x2948ed,_0x2f00ae)['done'];}function io(_0x191cb8,_0x5a02b3){const _0x51db19=_0x511361;let _0x209168=dn(_0x5a02b3,_0x191cb8);if(_0x209168['outputFormat']===_0x51db19(0x186))return{'done':Ee(_0x209168),'releaseStdout':()=>{}};let _0x16ed12=un();return{'done':Ee(_0x209168),'releaseStdout':_0x16ed12};}async function Ee(_0x15b8f6){const _0x5eac85=_0x511361;if(_0x15b8f6[_0x5eac85(0x303)]){pn(_0x15b8f6[_0x5eac85(0x20a)]);return;}if(_0x15b8f6[_0x5eac85(0x1c7)]){console[_0x5eac85(0x35c)](fn());return;}if(_0x15b8f6['command']){await _0x15b8f6['command'][_0x5eac85(0x209)](_0x15b8f6);return;}if(_0x15b8f6['subcommand']==='login'){await Vn(_0x15b8f6);return;}if(_0x15b8f6[_0x5eac85(0x23e)]===_0x5eac85(0x1ff)){await Xn(_0x15b8f6[_0x5eac85(0x2b2)],_0x15b8f6[_0x5eac85(0x20a)]['bin']);return;}if(_0x15b8f6['subcommand']===_0x5eac85(0x2d4)){await wn();return;}if(_0x15b8f6[_0x5eac85(0x23e)]===_0x5eac85(0x28d)){await bn(_0x15b8f6);return;}if(_0x15b8f6['subcommand']===_0x5eac85(0x15b)){await Sn(_0x15b8f6);return;}if(_0x15b8f6['subcommand']===_0x5eac85(0x1ec)){await Nn(_0x15b8f6);return;}if(_0x15b8f6[_0x5eac85(0x23e)]===_0x5eac85(0x1eb)){await xn(_0x15b8f6);return;}if(_0x15b8f6[_0x5eac85(0x23e)]===_0x5eac85(0x378)){await Rn(_0x15b8f6);return;}if(_0x15b8f6['subcommand']===_0x5eac85(0x2c6)||_0x15b8f6[_0x5eac85(0x23e)]==='rerank'||_0x15b8f6[_0x5eac85(0x23e)]===_0x5eac85(0x2af)){await Fn(_0x15b8f6,_0x15b8f6[_0x5eac85(0x23e)]);return;}if(_0x15b8f6[_0x5eac85(0x23e)]===_0x5eac85(0x291)){await jn(_0x15b8f6);return;}if(_0x15b8f6[_0x5eac85(0x23e)]===_0x5eac85(0x19a)){await Gn(_0x15b8f6);return;}if(_0x15b8f6[_0x5eac85(0x23e)]===_0x5eac85(0x160)){await Qn(_0x15b8f6);return;}if(_0x15b8f6[_0x5eac85(0x23e)]==='org-users'){await zn(_0x15b8f6);return;}if(_0x15b8f6[_0x5eac85(0x23e)]===_0x5eac85(0x19d)){await _0x5b041d(_0x15b8f6['prompt'],{'cliName':_0x15b8f6['product'][_0x5eac85(0x361)],'runnerUrl':_0x15b8f6[_0x5eac85(0x255)],'backendUrl':_0x15b8f6['backendUrl'],'interopPath':_0x15b8f6[_0x5eac85(0x369)],'workerId':_0x15b8f6[_0x5eac85(0x27b)]});return;}if(_0x15b8f6['cleanup']){await $n();return;}await no(_0x15b8f6);}function Me(_0x435a90){const _0x2c1cfa=_0x511361;let _0x5cd617=_0x435a90;console[_0x2c1cfa(0x22b)](_0x5cd617?.['stack']||_0x5cd617?.[_0x2c1cfa(0x282)]||_0x435a90),process[_0x2c1cfa(0x215)](0x1);}var ln,cn,he,O,ye,gn,be,Pn,ve,$e,y,Le,je=L(()=>{const _0x198175=_0x511361;ie(),Q(),ue(),(ln=[_0x198175(0x168),_0x198175(0x1ff),_0x198175(0x15b),'host',_0x198175(0x2d4),_0x198175(0x28d),'check',_0x198175(0x1eb),'usage',_0x198175(0x2c6),_0x198175(0x305),'verify',_0x198175(0x291),_0x198175(0x19a),_0x198175(0x160),_0x198175(0x23d)],cn=['','models',_0x198175(0x28d),_0x198175(0x1ec),_0x198175(0x1eb),_0x198175(0x378),'evaluate',_0x198175(0x305),_0x198175(0x2af),_0x198175(0x291),_0x198175(0x19a),_0x198175(0x160),'org-users'],he=[_0x198175(0x123),'medium',_0x198175(0x2a6),_0x198175(0x11e),_0x198175(0x35a)]),O=_0x52d9f3=>{const _0x415644=_0x198175;process[_0x415644(0x1fc)]['write'](_0x52d9f3);},ye=0x27,gn=0x7d0,be=[_0x198175(0x2cd),_0x198175(0x2c5),_0x198175(0x36a),_0x198175(0x183),_0x198175(0x224),_0x198175(0x174)],Pn=['',_0x198175(0x27a),'daily'],(ve=[_0x198175(0x2cd),'pending',_0x198175(0x2c5),_0x198175(0x296),_0x198175(0x213),_0x198175(0x291),_0x198175(0x2bf),_0x198175(0x199),_0x198175(0x224),'delete'],$e={'list':'delegations\x20list\x20<backend-project-id>','pending':'delegations\x20pending\x20<session-id>','show':'delegations\x20show\x20<delegation-id|delegate://delegation/…>','create':_0x198175(0x343),'claim':_0x198175(0x242),'complete':_0x198175(0x15d),'accept':'delegations\x20accept\x20<delegation-id>','dismiss':_0x198175(0x225),'cancel':_0x198175(0x19e),'delete':'delegations\x20delete\x20<delegation-id>'}),(y={'lastType':null,'quiet':!0x1,'bin':''},Le=_0x8b0eca=>{const _0x589214=_0x198175;switch(_0x8b0eca[_0x589214(0x2c4)]){case'session_start':_0x8b0eca[_0x589214(0x25d)]&&_0x8b0eca[_0x589214(0x25d)]!==y['sessionId']&&(process[_0x589214(0x317)][_0x589214(0x140)](_0x589214(0x1b1)+_0x8b0eca[_0x589214(0x25d)]+_0x589214(0x28f)+_0x8b0eca[_0x589214(0x25d)]+')\x0a'),y[_0x589214(0x25d)]=_0x8b0eca['sessionId']);break;case _0x589214(0x173):_0x8b0eca['turnId']&&_0x8b0eca[_0x589214(0x31c)]!==y[_0x589214(0x31c)]&&(y[_0x589214(0x12d)]!==null&&process[_0x589214(0x317)][_0x589214(0x140)]('\x0a'),process['stderr'][_0x589214(0x140)](_0x589214(0x16a)+_0x8b0eca[_0x589214(0x31c)]+'\x20(cancel\x20with:\x20'+y[_0x589214(0x361)]+_0x589214(0x21c)+_0x8b0eca[_0x589214(0x25d)]+'\x20--turn\x20'+_0x8b0eca[_0x589214(0x31c)]+')\x0a'),y[_0x589214(0x31c)]=_0x8b0eca[_0x589214(0x31c)],y[_0x589214(0x12d)]=_0x589214(0x173));break;case _0x589214(0x21d):_0x8b0eca['content']&&!y[_0x589214(0x36c)]&&(y[_0x589214(0x12d)]!==_0x589214(0x21d)&&process[_0x589214(0x317)][_0x589214(0x140)]('\x0a🤔\x20'),process[_0x589214(0x317)][_0x589214(0x140)](_0x8b0eca[_0x589214(0x300)]),y['lastType']='thinking');break;case _0x589214(0x19f):y[_0x589214(0x12d)]!==null&&process[_0x589214(0x317)]['write']('\x0a'),process[_0x589214(0x317)][_0x589214(0x140)](_0x589214(0x2bc)+(_0x8b0eca[_0x589214(0x1e3)]??_0x589214(0x159))+'\x0a'),y[_0x589214(0x12d)]=_0x589214(0x19f);break;case _0x589214(0x282):_0x8b0eca[_0x589214(0x300)]&&(y[_0x589214(0x12d)]!==_0x589214(0x282)&&y['lastType']!==null&&process['stdout'][_0x589214(0x140)]('\x0a'),process['stdout']['write'](_0x8b0eca[_0x589214(0x300)]),y[_0x589214(0x12d)]='message');break;case'error':y[_0x589214(0x12d)]!==null&&process[_0x589214(0x317)][_0x589214(0x140)]('\x0a'),process[_0x589214(0x317)][_0x589214(0x140)]('✗\x20'+(_0x8b0eca['error']??_0x589214(0x22b))+'\x0a'),y[_0x589214(0x12d)]=_0x589214(0x22b);break;case'done':(y[_0x589214(0x12d)]===_0x589214(0x282)||y['lastType']==='thinking')&&process['stdout'][_0x589214(0x140)]('\x0a'),process[_0x589214(0x317)]['write'](_0x589214(0x2b5)),y[_0x589214(0x12d)]='done';break;}});}),Be,Je=L(()=>{const _0x196a81=_0x511361;Be={'bin':_0x196a81(0x268),'title':_0x196a81(0x219)};}),ao=Qe(()=>{const _0x582cbb=_0x511361;ne(),je(),Je();var _0xf08fdd=process[_0x582cbb(0x11b)]['slice'](0x2),_0x579a5c=te(_0xf08fdd,process['platform']);_0x579a5c!==void 0x0&&(console['error'](_0x579a5c),process['exit'](0x2)),Fe(Be,_0xf08fdd)[_0x582cbb(0x325)](Me);});export default ao();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uipath/delegate-cli",
3
- "version": "1.208.0-preview.20261203155417",
3
+ "version": "1.208.0-preview.20261203181205",
4
4
  "description": "UiPath Delegate CLI - drive the Delegate agent from the terminal. Wraps @uipath/delegate-sdk; installing this package pulls the SDK in — no separate install.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "commonjs",
@@ -22,7 +22,7 @@
22
22
  "publish:npmjs": "npm publish --@uipath:registry=https://registry.npmjs.org/ --access public --ignore-scripts"
23
23
  },
24
24
  "dependencies": {
25
- "@uipath/delegate-sdk": "1.208.0-preview.20261203155417"
25
+ "@uipath/delegate-sdk": "1.208.0-preview.20261203181205"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@types/node": "^22.0.0",