@uipath/delegate-cli 1.207.0-preview.20261127133740 → 1.207.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +57 -2
- package/dist/cli.mjs +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -87,6 +87,15 @@ delegate-cli --json-schema FILE "<prompt>"
|
|
|
87
87
|
the schema in FILE; exits 1 when extraction fails
|
|
88
88
|
delegate-cli transcribe FILE|- Speech-to-text (transcription model): print the text of the audio
|
|
89
89
|
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)
|
|
90
99
|
delegate-cli org-users QUERY Search your organization's users by name or email
|
|
91
100
|
prefix, for delegations create --to
|
|
92
101
|
delegate-cli delegations create --session ID [--to WHO] [--summary TEXT] "<task>"|-
|
|
@@ -320,7 +329,7 @@ You> Turn what you just did into a UiPath coded workflow.
|
|
|
320
329
|
|
|
321
330
|
### Skills
|
|
322
331
|
|
|
323
|
-
The CLI uses the skills the `@uipath/delegate-sdk` package ships, with no Delegate desktop app needed: the Integration Service API skills (`jira`, `confluence`, `github`, `google-workspace`, `uipath-integrations`, `uipath-orchestrator`), the Office and document skills (`excel-architect`, `word-architect`, `powerpoint-architect`, `pdf-architect`, `office-convert`, `office-download`, `doc-coauthoring`, `internal-comms`, `knowledge-base`), `outlook-365`, `slack-operation`, `teams-operation`, `uipath-taskautomation`, `uipath-workflow-documenter`, `business-analysis`, `project-task-list`, `source-coverage`, `map-of-work`, `transcribe-media`, `media-tools` and `system-diagnostics`. The agent picks one when the task calls for it; `--preload-skill <name>` attaches one up front.
|
|
332
|
+
The CLI uses the skills the `@uipath/delegate-sdk` package ships, with no Delegate desktop app needed: the Integration Service API skills (`jira`, `confluence`, `github`, `google-workspace`, `uipath-integrations`, `uipath-orchestrator`), the Office and document skills (`excel-architect`, `word-architect`, `powerpoint-architect`, `pdf-architect`, `office-convert`, `office-download`, `doc-coauthoring`, `internal-comms`, `knowledge-base`), `outlook-365`, `slack-operation`, `teams-operation`, `uipath-taskautomation`, `uipath-workflow-documenter`, `business-analysis`, `project-task-list`, `source-coverage`, `map-of-work`, `uipath-planner`, `transcribe-media`, `media-tools` and `system-diagnostics`. The agent picks one when the task calls for it; `--preload-skill <name>` attaches one up front.
|
|
324
333
|
|
|
325
334
|
For anything else, put your skills in a folder (one sub-folder per skill, each with a `SKILL.md`) and pass `--skills-path <folder>`, or set `DELEGATE_BUNDLED_SKILLS_PATH`. They load on top of the packaged skills, and one with the same name as a packaged skill replaces it.
|
|
326
335
|
|
|
@@ -338,6 +347,28 @@ cat memo.wav | delegate-cli transcribe - --output-format json # {"text":"…"}
|
|
|
338
347
|
- 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).
|
|
339
348
|
- 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.
|
|
340
349
|
|
|
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
|
+
```
|
|
365
|
+
|
|
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.
|
|
371
|
+
|
|
341
372
|
### Delegating to people (`delegations`, `org-users`)
|
|
342
373
|
|
|
343
374
|
Hand a task to a colleague from a script or robot, and take the answer back — the Delegate app's "delegate to a person" flow. See the SDK README's "Delegating a task to a person" for the lifecycle and every error code.
|
|
@@ -396,7 +427,7 @@ Three levels of machine access, independent of conversation mode:
|
|
|
396
427
|
| `--preload-skill <name>` | — | Preload a skill into the session before the first model turn (repeatable; SDK `preloadSkills`). A name given twice is preloaded once. |
|
|
397
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. |
|
|
398
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. |
|
|
399
|
-
| `--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`). Client-side routing key only — the CLI never links a backend project row. |
|
|
430
|
+
| `--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. |
|
|
400
431
|
| `--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**. |
|
|
401
432
|
| `--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. |
|
|
402
433
|
| `--effort <tier>` | model's recommended tier | Reasoning effort: `low` / `medium` / `high` / `xhigh` / `max` (SDK `effort`). Any other value exits with code 2. |
|
|
@@ -419,6 +450,8 @@ Three levels of machine access, independent of conversation mode:
|
|
|
419
450
|
| `--turn <id>` | — | (`sessions cancel` only, required) Backend turn id to cancel. |
|
|
420
451
|
| `--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. |
|
|
421
452
|
| `--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. |
|
|
422
455
|
|
|
423
456
|
`--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.
|
|
424
457
|
|
|
@@ -474,6 +507,28 @@ npx delegate-cli --no-computer-use --project invoice-approval --working-dir ~/en
|
|
|
474
507
|
npx delegate-cli --cartographer --project invoice-approval --working-dir ~/engagements \
|
|
475
508
|
"Read the AS-IS notes and draft the process overview."
|
|
476
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
|
+
|
|
477
532
|
# Preset plus one extra skill the package does not ship, loaded from a folder of your
|
|
478
533
|
# own; business-analysis is already in the preset, so naming it again changes nothing
|
|
479
534
|
npx delegate-cli --cartographer --skills-path ~/my-skills --preload-skill company-process-guide \
|
package/dist/cli.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
const _0x547f85=_0x13e2;(function(_0x15287d,_0x5b2db7){const _0x32caf6=_0x13e2,_0xb976e=_0x15287d();while(!![]){try{const _0x4def3e=parseInt(_0x32caf6(0x2e2))/0x1*(-parseInt(_0x32caf6(0x2fa))/0x2)+parseInt(_0x32caf6(0x256))/0x3*(parseInt(_0x32caf6(0x2d3))/0x4)+-parseInt(_0x32caf6(0x2a2))/0x5*(-parseInt(_0x32caf6(0x107))/0x6)+-parseInt(_0x32caf6(0x2ba))/0x7*(-parseInt(_0x32caf6(0x24e))/0x8)+parseInt(_0x32caf6(0xfe))/0x9*(parseInt(_0x32caf6(0x1b9))/0xa)+parseInt(_0x32caf6(0x1ac))/0xb*(parseInt(_0x32caf6(0x291))/0xc)+-parseInt(_0x32caf6(0x209))/0xd*(parseInt(_0x32caf6(0x195))/0xe);if(_0x4def3e===_0x5b2db7)break;else _0xb976e['push'](_0xb976e['shift']());}catch(_0x3a289f){_0xb976e['push'](_0xb976e['shift']());}}}(_0x285d,0x479f2));const __dirname=import.meta.dirname;import _0x1e7393 from'fs';import _0x55c1e2 from'path';import{clearLine as _0x5f03f3,createInterface as _0xa0339c,cursorTo as _0x4d3364}from'node:readline';import{isOnStepGrid as _0x3e3468}from'@uipath/delegate-sdk';var C=_0x547f85(0x20d);function E(_0x54eddd){const _0x31d749=_0x547f85;return _0x54eddd[_0x31d749(0x159)](/\u001b\[[0-?]*[ -/]*[@-~]|\u001b\][^\u0007\u001b]*(\u0007|\u001b\\)?|\u001b./g,'')[_0x31d749(0x159)](/[\u0000-\u0008\u000b-\u001f\u007f-\u009f]/g,'');}function ee(_0x239138){const _0xabbca2=_0x547f85;return E(_0x239138[_0xabbca2(0x1bf)]??(_0x239138['kind']===C?_0xabbca2(0x121):_0x239138['id']));}function Oe(_0x4d8db0,_0x3759cd,_0x34c73b){const _0x2f36b3=_0x547f85;let _0x28d10b=[''+(_0x34c73b>0x1?'['+_0x3759cd+'/'+_0x34c73b+']\x20':'')+E(_0x4d8db0['header'])+(_0x4d8db0[_0x2f36b3(0x17c)]?'\x20(optional)':''),E(_0x4d8db0[_0x2f36b3(0x31e)])];return _0x4d8db0[_0x2f36b3(0x200)]===_0x2f36b3(0x2f3)&&_0x4d8db0[_0x2f36b3(0x319)][_0x2f36b3(0x29a)]((_0x437133,_0x3efd87)=>{const _0x8c05d0=_0x2f36b3;let _0x28db67=_0x437133[_0x8c05d0(0x2e8)]===C?_0x8c05d0(0x20e):'',_0x31f1cc=_0x437133[_0x8c05d0(0x1aa)]?_0x8c05d0(0x1ec)+E(_0x437133[_0x8c05d0(0x1aa)]):'';_0x28d10b[_0x8c05d0(0x1f0)]('\x20\x20'+(_0x3efd87+0x1)+'.\x20'+ee(_0x437133)+_0x28db67+_0x31f1cc);}),_0x28d10b[_0x2f36b3(0x2ac)]('\x0a');}function te(_0x56ac83,_0x2e392a){const _0x2fa2c5=_0x547f85;let _0x147dc8=_0x56ac83[_0x2fa2c5(0x2b9)](/[\s,]+/)[_0x2fa2c5(0x2bc)](Boolean);if(_0x147dc8[_0x2fa2c5(0x2cf)]===0x0)return null;let _0x25c787=_0x147dc8[_0x2fa2c5(0x27b)](_0x813669=>/^\d+$/[_0x2fa2c5(0x23f)](_0x813669)?Number(_0x813669):NaN);return _0x25c787[_0x2fa2c5(0x14c)](_0x244602=>!Number[_0x2fa2c5(0x1a7)](_0x244602)||_0x244602<0x1||_0x244602>_0x2e392a)?null:[...new Set(_0x25c787)][_0x2fa2c5(0x27b)](_0x3ea726=>_0x3ea726-0x1);}function Le(_0x4fc3ad){const _0x183dea=_0x547f85;return typeof _0x4fc3ad==_0x183dea(0x15a)&&_0x4fc3ad!==null&&_0x183dea(0x10b)in _0x4fc3ad;}async function F(_0x2db8ed,_0x318632,_0x3af8a9,_0x40f632){const _0xe7f310=_0x547f85;for(;;){let _0x14c7ba=(await _0x2db8ed(_0x318632))['trim']();if(_0x14c7ba==='')return;let _0x5f2123=_0x40f632(_0x14c7ba);if(!Le(_0x5f2123))return _0x5f2123;_0x3af8a9(_0x5f2123[_0xe7f310(0x10b)]+'\x0a');}}async function Ce(_0x2eb383,_0x1c818e,_0x383276){const _0x55ec19=_0x547f85;if(_0x2eb383[_0x55ec19(0x319)][_0x55ec19(0x2cf)]===0x0||_0x2eb383[_0x55ec19(0x319)][_0x55ec19(0x1c1)](_0x56b2bf=>_0x56b2bf[_0x55ec19(0x2e8)]===C)){let _0x581ab4=(await _0x1c818e(_0x55ec19(0x1c2)))[_0x55ec19(0x21d)]();return _0x581ab4===''?void 0x0:{'text':_0x581ab4};}let _0x58885a=_0x2eb383['options'][_0x55ec19(0x284)](_0xaec455=>_0xaec455[_0x55ec19(0x2e8)]===C),_0x516ea8=_0x2eb383['multiSelect']?_0x55ec19(0x214):_0x55ec19(0x2fb)+(_0x58885a>=0x0?_0x55ec19(0x1d6):'')+_0x55ec19(0x212),_0x3c7735=await F(_0x1c818e,_0x516ea8,_0x383276,_0x4b9be7=>{const _0x31077a=_0x55ec19;let _0x2b01e5=te(_0x4b9be7,_0x2eb383[_0x31077a(0x319)][_0x31077a(0x2cf)]);return _0x2b01e5&&(_0x2eb383[_0x31077a(0x312)]||_0x2b01e5[_0x31077a(0x2cf)]===0x1)?_0x2b01e5:!_0x2eb383[_0x31077a(0x312)]&&_0x58885a>=0x0?{'typed':_0x4b9be7}:{'refused':_0x2eb383['multiSelect']?_0x31077a(0x1dd)+_0x2eb383[_0x31077a(0x319)][_0x31077a(0x2cf)]+'.':_0x31077a(0x2b2)+_0x2eb383[_0x31077a(0x319)][_0x31077a(0x2cf)]+'.'};});if(_0x3c7735===void 0x0)return;if(!Array[_0x55ec19(0x298)](_0x3c7735))return{'text':_0x3c7735[_0x55ec19(0xff)]};let _0x5e9dd7=_0x3c7735[_0x55ec19(0x27b)](_0x536c11=>_0x2eb383[_0x55ec19(0x319)][_0x536c11]['id']),_0x15f409=_0x5e9dd7['includes'](C)?await F(_0x1c818e,ee(_0x2eb383[_0x55ec19(0x319)][_0x58885a])+':\x20',_0x383276,_0x81d7bf=>_0x81d7bf):void 0x0;if(!(_0x5e9dd7[_0x55ec19(0x281)](C)&&_0x15f409===void 0x0))return _0x2eb383[_0x55ec19(0x312)]?{'optionIds':_0x5e9dd7,..._0x15f409!==void 0x0?{'text':_0x15f409}:{}}:_0x15f409!==void 0x0?{'text':_0x15f409}:{'optionId':_0x5e9dd7[0x0]};}async function Fe(_0x3a5297,_0x94e445,_0x36f708){const _0xecb449=_0x547f85;let _0xaf9ff6={};for(let _0x493f9a of _0x3a5297[_0xecb449(0x10c)]){let _0x177261=_0x493f9a['default']??_0x493f9a[_0xecb449(0x2b6)],_0x3c0e07=_0x493f9a[_0xecb449(0x2c5)]??0x1,_0x1a16c5=_0x493f9a['unit']?'\x20'+E(_0x493f9a[_0xecb449(0x102)]):'',_0x525e1d=_0xecb449(0x211)+_0x493f9a[_0xecb449(0x2b6)]+_0xecb449(0x2ec)+_0x493f9a[_0xecb449(0x206)]+(_0x3c0e07!==0x1?_0xecb449(0x220)+_0x3c0e07:''),_0x5d0c7d=await F(_0x94e445,E(_0x493f9a['label'])+'\x20['+_0x493f9a['min']+'-'+_0x493f9a[_0xecb449(0x206)]+_0x1a16c5+']\x20(Enter\x20for\x20'+_0x177261+_0xecb449(0x2c2),_0x36f708,_0x11f80e=>{const _0x5baf5b=_0xecb449;let _0x3bb62d=Number(_0x11f80e);return Number['isFinite'](_0x3bb62d)&&_0x3bb62d>=_0x493f9a[_0x5baf5b(0x2b6)]&&_0x3bb62d<=_0x493f9a['max']&&_0x3e3468(_0x3bb62d,_0x493f9a['min'],_0x3c0e07)?_0x3bb62d:{'refused':_0x5baf5b(0x168)+_0x525e1d+'.'};});_0xaf9ff6[_0x493f9a['id']]=_0x5d0c7d??_0x177261;}return{'values':_0xaf9ff6};}async function Me(_0x11826b,_0x43f443,_0x1a4d83){const _0xeccb14=_0x547f85;_0x1a4d83(_0x11826b['buckets']['map']((_0x55e089,_0x24d171)=>'\x20\x20'+(_0x24d171+0x1)+'.\x20'+E(_0x55e089[_0xeccb14(0x1bf)]))[_0xeccb14(0x2ac)]('\x0a')+'\x0a');let _0x568dd9={};for(let _0x65fa7a of _0x11826b[_0xeccb14(0x26f)]){let _0x53c45e=await F(_0x43f443,E(_0x65fa7a[_0xeccb14(0x1bf)])+_0xeccb14(0x1df),_0x1a4d83,_0x515ea1=>{const _0x540f47=_0xeccb14;let _0x1bc812=te(_0x515ea1,_0x11826b[_0x540f47(0x198)][_0x540f47(0x2cf)]);return _0x1bc812&&_0x1bc812[_0x540f47(0x2cf)]===0x1?_0x1bc812[0x0]:{'refused':_0x540f47(0x2b2)+_0x11826b[_0x540f47(0x198)]['length']+'.'};});if(_0x53c45e===void 0x0)continue;let _0x4c1c39=_0x11826b[_0xeccb14(0x198)][_0x53c45e],_0x52baae={};for(let _0x8d3497 of _0x4c1c39[_0xeccb14(0x22c)]??[]){let _0x3f7bb4='\x20\x20'+E(_0x8d3497[_0xeccb14(0x1bf)])+(_0x8d3497['optional']?_0xeccb14(0x12a):'')+':\x20',_0x138567=await F(_0x43f443,_0x3f7bb4,_0x1a4d83,_0x3111d3=>_0x3111d3);for(;_0x138567===void 0x0&&!_0x8d3497['optional'];)_0x1a4d83(E(_0x8d3497['label'])+_0xeccb14(0x13c)),_0x138567=await F(_0x43f443,_0x3f7bb4,_0x1a4d83,_0x3c0533=>_0x3c0533);_0x138567!==void 0x0&&(_0x52baae[_0x8d3497['id']]=_0x138567);}_0x568dd9[_0x65fa7a['id']]={'bucket':_0x4c1c39['id'],...Object[_0xeccb14(0x17b)](_0x52baae)[_0xeccb14(0x2cf)]>0x0?{'subFields':_0x52baae}:{}};}return Object['keys'](_0x568dd9)[_0xeccb14(0x2cf)]>0x0?{'assignments':_0x568dd9}:void 0x0;}async function je(_0x14f882,_0x2f41a9,_0xf8f37a){const _0x380576=_0x547f85;if(_0x14f882['type']===_0x380576(0x2f3))return Ce(_0x14f882,_0x2f41a9,_0xf8f37a);if(_0x14f882[_0x380576(0x200)]===_0x380576(0x155))return Fe(_0x14f882,_0x2f41a9,_0xf8f37a);if(_0x14f882[_0x380576(0x200)]===_0x380576(0x112))return Me(_0x14f882,_0x2f41a9,_0xf8f37a);let _0x2911ff=(await _0x2f41a9(_0x380576(0x1fd)))['trim']();return _0x2911ff===''?void 0x0:{'text':_0x2911ff};}function ne(_0x3953c8,_0x5e2690){return async _0x4e48d1=>{const _0xc6b5bb=_0x13e2;let _0x1767e0=_0x3953c8();if(!_0x1767e0)throw new Error(_0xc6b5bb(0x1d5));let _0x59d9bb=async _0x17b273=>{const _0x167286=_0xc6b5bb;if(_0x4e48d1[_0x167286(0x223)][_0x167286(0x258)])throw new Error(_0x167286(0x24c));let _0x369474=await _0x1767e0['readLine'](_0x17b273,_0x4e48d1[_0x167286(0x223)]);if(_0x369474===null)throw new Error(_0x167286(0x1e3));return _0x369474;};try{_0x5e2690('\x0a'+(_0x4e48d1[_0xc6b5bb(0x210)]?E(_0x4e48d1[_0xc6b5bb(0x210)])+'\x0a':''));let _0x337581={};for(let [_0x33dc36,_0x153ed8]of _0x4e48d1[_0xc6b5bb(0x2f7)][_0xc6b5bb(0x1ab)]()){_0x5e2690('\x0a'+Oe(_0x153ed8,_0x33dc36+0x1,_0x4e48d1[_0xc6b5bb(0x2f7)][_0xc6b5bb(0x2cf)])+'\x0a');let _0x392d24=await je(_0x153ed8,_0x59d9bb,_0x5e2690);_0x392d24!==void 0x0&&(_0x337581[_0x153ed8['id']]=_0x392d24);}return{'answers':_0x337581};}finally{_0x1767e0['endQuestions']();}};}import{createInterface as _0xcf4f06}from'node:readline';var j=['text',_0x547f85(0x1a9)];function se(_0x41d73b){return j['includes'](_0x41d73b);}var _=class extends Error{};function Je(_0xa18190){const _0x3b90db=_0x547f85;if(typeof _0xa18190==_0x3b90db(0x276))return _0xa18190;if(!Array['isArray'](_0xa18190))return;let _0x349ad8=[];for(let _0x5f0d19 of _0xa18190){if(typeof _0x5f0d19!=_0x3b90db(0x15a)||_0x5f0d19===null)return;let {type:_0x338937,text:_0x587e04}=_0x5f0d19;if(_0x338937!==_0x3b90db(0x2f3)||typeof _0x587e04!='string')return;_0x349ad8[_0x3b90db(0x1f0)](_0x587e04);}return _0x349ad8[_0x3b90db(0x2ac)]('\x0a');}function He(_0x36f917){const _0x562eab=_0x547f85;if(_0x36f917[_0x562eab(0x21d)]()==='')return null;let _0x11ffcb;try{_0x11ffcb=JSON[_0x562eab(0x2f1)](_0x36f917);}catch{throw new _(_0x562eab(0x122));}if(typeof _0x11ffcb!='object'||_0x11ffcb===null)throw new _(_0x562eab(0x29b));let {type:_0x151751,message:_0x47ea37,uuid:_0x50d494}=_0x11ffcb;if(_0x151751!==_0x562eab(0x288))throw new _(_0x562eab(0x1d4)+JSON[_0x562eab(0x137)](_0x151751)+_0x562eab(0x2d9));let _0x4ed8d1=Je(_0x47ea37?.['content']);if(_0x4ed8d1===void 0x0)throw new _(_0x562eab(0x16f));if(_0x4ed8d1[_0x562eab(0x21d)]()==='')throw new _(_0x562eab(0x1b3));return{'text':_0x4ed8d1,'uuid':typeof _0x50d494=='string'?_0x50d494:void 0x0};}function oe(_0x2df4f4,_0x26d5be){const _0x254d04=_0x547f85;return JSON[_0x254d04(0x137)]({'type':_0x254d04(0x288),'message':{'role':_0x254d04(0x288),'content':_0x2df4f4[_0x254d04(0x2f3)]},'session_id':_0x26d5be,..._0x2df4f4['uuid']===void 0x0?{}:{'uuid':_0x2df4f4[_0x254d04(0x2fd)]},'isReplay':!0x0})+'\x0a';}async function*re(_0x428db1,_0x5e6268){const _0x50b3bb=_0x547f85;let _0x23780d=_0xcf4f06({'input':_0x428db1,'crlfDelay':0x1/0x0});try{for await(let _0xa155a7 of _0x23780d){let _0x1a45dd;try{_0x1a45dd=He(_0xa155a7);}catch(_0x2fd501){if(!(_0x2fd501 instanceof _))throw _0x2fd501;_0x5e6268(_0x2fd501);continue;}_0x1a45dd&&(yield _0x1a45dd);}}finally{_0x23780d[_0x50b3bb(0x2c0)]();}}import{BUSINESS_ANALYSIS_PRELOADED_SKILLS as _0x385328,DelegateAgent as _0x16d6e8,cancelTurn as _0x250830,InteropProcess as _0x342ada,complete as _0x445104,DEFAULT_MODEL as _0x4964e2,createBackendClient as _0x2b96d4,evaluate as _0x17b987,isCompletionRequestError as _0x536853,isEvaluationRequestError as _0x427c08,isTranscriptionError as _0x3bc8c4,rerank as _0x2b2344,transcribe as _0x2b5741,verify as _0x1828f5,acceptDelegation as _0x5389bf,cancelDelegation as _0x79350,claimDelegation as _0x1778c9,completeDelegation as _0x547f91,createDelegation as _0x5ee20f,deleteDelegation as _0x14e9f9,dismissDelegation as _0x184353,getSessionDelegations as _0x74bec2,isDelegationError as _0x4180ba,listDelegations as _0x5405dd,listOrgUsers as _0x5e402f,previewDelegation as _0x519530,TurnResultCollector as _0x3f7080,agentEventToJsonLine as _0x5438bb,describeBaseUrlRejection as _0x13f995,getActivitySummary as _0xf49311,getAuthFilePath as _0x4786cd,getByoWarnings as _0x10641e,getDailyBreakdown as _0x158e6f,getLicensingSummary as _0x3ff56f,getMonthlySpending as _0x55d02f,isOutputFormat as _0x488b7a,isCloudBaseUrl as _0x1cb9b2,isSafeProjectFolderSegment as _0x2a3e0a,listModels as _0x29c43b,listSessions as _0x12c22a,getSession as _0x4f7a05,renameSession as _0x5e82df,deleteSession as _0x22f654,deleteSessionTaskLog as _0x144ff3,forkSession as _0x20dc45,isBackendRequestError as _0x1baeec,MAX_SESSION_PAGE_SIZE as _0xe60dcf,listTenants as _0x2700ea,loadAndRefreshAuth as _0x40fed7,loadAndRefreshSdkLogin as _0x11c8eb,parsePlatformBaseUrl as _0xc66a6b,resolveBackendUrl as _0x1805bb,runHealthCheck as _0x45444b,runHostCommand as _0x286422,runLoginFlow as _0x28e205,runTurnForResult as _0xfb3472,saveAuthData as _0x5cd4fe,switchTenant as _0x3677fb,toJsonLine as _0x5b6371,ENV_TO_CLOUD as _0x4c4191,OUTPUT_FORMATS as _0x386fa5,isRunStopNotice as _0x3a976b,extractActionableErrorText as _0x31a1ba}from'@uipath/delegate-sdk';function ie(_0x5136d9){const _0x26e6f2=_0x547f85;let {input:_0x10b07a,getAgent:_0x333b11,replay:_0x3400af,onEvent:_0x30ba24,write:_0x38aa0d,warn:_0x24b816,isRunStopNotice:_0x33bbb6,actionableErrorText:_0x5b4aad}=_0x5136d9,_0x357145=0x0,_0x138ce2=0x0,_0x19eb6a=Promise[_0x26e6f2(0x130)](),_0x4f1ffe=!0x1,_0x1fd956=()=>{},_0x4e72a3=new Promise(_0x5d2547=>{_0x1fd956=_0x5d2547;}),_0x3f97aa=[],_0x54ed62=_0x30ba24(_0x40835a=>{const _0x5baf9b=_0x26e6f2;_0x40835a['type']===_0x5baf9b(0x164)&&(_0x1fd956(),_0x3f97aa['shift']()?.());}),_0x274775=_0x2d1f04=>{const _0xbe1648=_0x26e6f2;_0x3400af&&_0x38aa0d(oe(_0x2d1f04,_0x333b11()[_0xbe1648(0x2ae)]()));},_0x19702c=(async()=>{const _0x5630b5=_0x26e6f2;await _0x4e72a3;for await(let _0x1a26fb of _0x10b07a[_0x5630b5(0x30e)]){if(_0x4f1ffe)return;_0x357145===0x0&&(_0x138ce2=_0x333b11()[_0x5630b5(0x2cb)]()[_0x5630b5(0x2cf)]),_0x357145++;let _0x47df88=new Promise(_0x289708=>{_0x3f97aa['push'](()=>{_0x274775(_0x1a26fb),_0x289708();});}),_0x458904=()=>{const _0x3b1695=_0x5630b5;_0x357145--,_0x3f97aa[_0x3b1695(0x14e)]();},_0x4d1b61=_0x333b11()[_0x5630b5(0x127)](_0x1a26fb[_0x5630b5(0x2f3)]);_0x19eb6a=_0x4d1b61[_0x5630b5(0x2cc)](()=>{});try{await _0x4d1b61?await Promise[_0x5630b5(0x15c)]([_0x47df88,_0x333b11()[_0x5630b5(0x169)]()]):(_0x458904(),_0x24b816(_0x5630b5(0x1e5)));}catch(_0x27558e){_0x458904(),_0x24b816(_0x5630b5(0x108)+(_0x27558e instanceof Error?_0x27558e[_0x5630b5(0x12d)]:String(_0x27558e))+'\x0a');}}})()[_0x26e6f2(0x2cc)](_0x35b264=>{const _0x51635c=_0x26e6f2;_0x24b816(_0x51635c(0x18c)+(_0x35b264 instanceof Error?_0x35b264[_0x51635c(0x12d)]:String(_0x35b264))+'\x0a');});return{'settle':async _0x495760=>{const _0x95544c=_0x26e6f2;if(await _0x19eb6a,_0x357145===0x0)return _0x495760;await _0x333b11()['waitForIdle']();for(let _0x2576c4 of _0x3f97aa)_0x2576c4();_0x3f97aa=[];let _0x70e4=_0x333b11()[_0x95544c(0x2cb)]()[_0x95544c(0x156)](_0x138ce2)[_0x95544c(0x235)](_0x2793aa=>_0x2793aa['widget']==='actionable_error'||_0x33bbb6(_0x2793aa)||_0x2793aa[_0x95544c(0x200)]==='ai'&&_0x2793aa[_0x95544c(0x1bc)]!==_0x95544c(0x294)&&_0x2793aa[_0x95544c(0x1bc)]!==_0x95544c(0x1d9)&&!!_0x2793aa['content']);if(!_0x70e4)return{..._0x495760,'failed':!0x0,'text':_0x95544c(0x12f)};let _0x1ed11a=_0x70e4['widget']==='actionable_error';return typeof _0x70e4[_0x95544c(0x14b)]!=_0x95544c(0x276)?{..._0x495760,'failed':_0x1ed11a}:{..._0x495760,'failed':_0x1ed11a,'text':_0x1ed11a?_0x5b4aad(_0x70e4[_0x95544c(0x14b)]):_0x70e4[_0x95544c(0x14b)]};},'stop':()=>{_0x4f1ffe=!0x0,_0x54ed62(),_0x10b07a['close']();}};}var Ht=[_0x547f85(0x31d),'tenant',_0x547f85(0x2d2),_0x547f85(0x29e),_0x547f85(0x27e),_0x547f85(0x13a),_0x547f85(0x280),_0x547f85(0x129),_0x547f85(0x1bb),_0x547f85(0x2b3),_0x547f85(0x2af),_0x547f85(0x2c6),'complete','transcribe',_0x547f85(0x287),_0x547f85(0x2c7)],ue=['',_0x547f85(0x2d2),_0x547f85(0x13a),_0x547f85(0x280),'sessions',_0x547f85(0x1bb),_0x547f85(0x2b3),'rerank',_0x547f85(0x2c6),_0x547f85(0x2d8),'transcribe',_0x547f85(0x287),_0x547f85(0x2c7)],pe=[_0x547f85(0x2d5),_0x547f85(0x18b),_0x547f85(0x1fb),_0x547f85(0x315),_0x547f85(0x206)],Gt=_0x385328,B=_0x547f85(0x1d0);function b(_0x39a81e,_0x5f8711,_0x57c8fb,_0x2f2f3e){const _0x34503c=_0x547f85;let _0x298cb5=_0x39a81e[_0x5f8711];return(!_0x298cb5||_0x298cb5[_0x34503c(0x2cf)]>0x1&&_0x298cb5[_0x34503c(0x118)]('-'))&&(console[_0x34503c(0x26d)](_0x57c8fb+_0x34503c(0x30a)+_0x2f2f3e+'.'),process[_0x34503c(0x251)](0x2)),_0x298cb5;}function K(_0xc98620,_0x6b35c7,_0x45b000,_0x24c65f){const _0x3cc5d2=_0x547f85;let _0x1dbf2c=b(_0xc98620,_0x6b35c7,_0x45b000,_0x3cc5d2(0x117)),_0x107a41=Number(_0x1dbf2c);return(!/^\d+$/[_0x3cc5d2(0x23f)](_0x1dbf2c)||_0x107a41<0x1||!Number[_0x3cc5d2(0x317)](_0x107a41)||_0x24c65f!==void 0x0&&_0x107a41>_0x24c65f)&&(console[_0x3cc5d2(0x26d)](_0x45b000+'\x20must\x20be\x20a\x20whole\x20number\x20'+(_0x24c65f===void 0x0?_0x3cc5d2(0x320):_0x3cc5d2(0x179)+_0x24c65f)+_0x3cc5d2(0x233)+_0x1dbf2c+'.'),process[_0x3cc5d2(0x251)](0x2)),_0x107a41;}function Wt(_0x505cf0){const _0x16e926=_0x547f85;let _0x3d762b={'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':_0x16e926(0x2f3),'inputFormat':_0x16e926(0x2f3),'replayUserMessages':!0x1,'preloadSkills':[],'attachments':[],'skipEnvCheck':!0x1,'includeSubAgents':!0x1,'operands':[],'help':!0x1,'version':!0x1};Ht[_0x16e926(0x281)](_0x505cf0[0x0])&&(_0x3d762b[_0x16e926(0x2be)]=_0x505cf0[0x0],_0x505cf0=_0x505cf0[_0x16e926(0x156)](0x1));let _0x991ac6=[];for(let _0x135253=0x0;_0x135253<_0x505cf0[_0x16e926(0x2cf)];_0x135253++){let _0x7b6902=_0x505cf0[_0x135253];switch(_0x7b6902){case _0x16e926(0x1f1):case'-p':_0x3d762b[_0x16e926(0x318)]=!0x0;break;case _0x16e926(0x1c4):_0x3d762b[_0x16e926(0x307)]=!0x0;break;case _0x16e926(0x2f9):_0x3d762b['cleanup']=!0x0;break;case _0x16e926(0x2f8):_0x3d762b[_0x16e926(0x2bf)]=!0x0;break;case'--no-computer-use':_0x3d762b['noComputerUse']=!0x0;break;case _0x16e926(0x252):_0x3d762b['cartographer']=!0x0,_0x3d762b[_0x16e926(0x1d2)]=!0x0,_0x3d762b[_0x16e926(0x25e)][_0x16e926(0x1f0)](...Gt);break;case _0x16e926(0x2d6):_0x3d762b[_0x16e926(0x30f)]=!0x0;break;case'--no-security':_0x3d762b['noSecurity']=!0x0;break;case _0x16e926(0x178):_0x3d762b[_0x16e926(0x303)]=!0x0;break;case _0x16e926(0x22e):_0x3d762b[_0x16e926(0x1e4)]=!0x0;break;case _0x16e926(0x20b):case'-q':_0x3d762b[_0x16e926(0x1e7)]=!0x0;break;case _0x16e926(0x18f):_0x3d762b['verbose']=!0x0;break;case'--backend':_0x3d762b[_0x16e926(0x314)]=_0x505cf0[++_0x135253];break;case'--model':_0x3d762b[_0x16e926(0x196)]=_0x505cf0[++_0x135253];break;case _0x16e926(0x180):_0x3d762b[_0x16e926(0x171)]=_0x505cf0[++_0x135253];break;case _0x16e926(0x31b):_0x3d762b[_0x16e926(0x101)]=_0x505cf0[++_0x135253];break;case _0x16e926(0x290):_0x3d762b[_0x16e926(0x266)]=_0x505cf0[++_0x135253];break;case'--preload-skill':_0x3d762b[_0x16e926(0x25e)][_0x16e926(0x1f0)](b(_0x505cf0,++_0x135253,_0x7b6902,_0x16e926(0x23d)));break;case'--project':{let _0x1fb045=b(_0x505cf0,++_0x135253,_0x7b6902,'a\x20project\x20id');_0x2a3e0a(_0x1fb045)||(console[_0x16e926(0x26d)](_0x16e926(0x1be)+_0x1fb045+_0x16e926(0x183)),process[_0x16e926(0x251)](0x2)),_0x3d762b[_0x16e926(0x2a4)]=_0x1fb045;break;}case _0x16e926(0x1bd):_0x3d762b[_0x16e926(0x167)]=b(_0x505cf0,++_0x135253,_0x7b6902,'a\x20vertical\x20id');break;case _0x16e926(0x146):{let _0x39541a=b(_0x505cf0,++_0x135253,_0x7b6902,_0x16e926(0x17a)+_0x386fa5[_0x16e926(0x2ac)](_0x16e926(0x2b7))+')');_0x488b7a(_0x39541a)||(console[_0x16e926(0x26d)](_0x16e926(0x2f0)+_0x39541a+'.\x20Use\x20'+_0x386fa5[_0x16e926(0x2ac)](_0x16e926(0x2b7))+'.'),process[_0x16e926(0x251)](0x2)),_0x3d762b[_0x16e926(0x227)]=_0x39541a;break;}case _0x16e926(0x100):{let _0x5b8f96=b(_0x505cf0,++_0x135253,_0x7b6902,_0x16e926(0x17a)+j[_0x16e926(0x2ac)](_0x16e926(0x2b7))+')');se(_0x5b8f96)||(console['error'](_0x16e926(0x185)+_0x5b8f96+'.\x20Use\x20'+j[_0x16e926(0x2ac)](_0x16e926(0x2b7))+'.'),process['exit'](0x2)),_0x3d762b[_0x16e926(0x28d)]=_0x5b8f96;break;}case _0x16e926(0x131):_0x3d762b[_0x16e926(0x26a)]=!0x0;break;case _0x16e926(0x10d):_0x3d762b[_0x16e926(0x2f4)]=b(_0x505cf0,++_0x135253,_0x7b6902,'a\x20session\x20id');break;case _0x16e926(0x226):_0x3d762b[_0x16e926(0x172)]=K(_0x505cf0,++_0x135253,_0x7b6902);break;case _0x16e926(0x141):_0x3d762b[_0x16e926(0x311)]=K(_0x505cf0,++_0x135253,_0x7b6902,_0xe60dcf);break;case _0x16e926(0x2e4):_0x3d762b['includeSubAgents']=!0x0;break;case _0x16e926(0x1d7):_0x3d762b[_0x16e926(0x11d)]=b(_0x505cf0,++_0x135253,_0x7b6902,_0x16e926(0x147));break;case _0x16e926(0x23a):{let _0x37c9cb=_0x55c1e2[_0x16e926(0x130)](process[_0x16e926(0x134)](),b(_0x505cf0,++_0x135253,_0x7b6902,_0x16e926(0x2da)));_0x1e7393[_0x16e926(0x243)](_0x37c9cb)||(console[_0x16e926(0x26d)](_0x16e926(0x1b0)+_0x37c9cb),process[_0x16e926(0x251)](0x2)),_0x3d762b['attachments'][_0x16e926(0x1f0)](_0x37c9cb);break;}case _0x16e926(0x144):_0x3d762b[_0x16e926(0x173)]=b(_0x505cf0,++_0x135253,_0x7b6902,'a\x20turn\x20id');break;case _0x16e926(0x162):_0x3d762b['delegateTo']=b(_0x505cf0,++_0x135253,_0x7b6902,_0x16e926(0x149));break;case _0x16e926(0x16e):_0x3d762b[_0x16e926(0x139)]=b(_0x505cf0,++_0x135253,_0x7b6902,'a\x20briefing\x20text');break;case'--days':_0x3d762b[_0x16e926(0x219)]=K(_0x505cf0,++_0x135253,_0x7b6902,0x16d);break;case _0x16e926(0x322):_0x3d762b[_0x16e926(0x1ba)]=_0x55c1e2[_0x16e926(0x130)](process[_0x16e926(0x134)](),b(_0x505cf0,++_0x135253,_0x7b6902,_0x16e926(0x19c)));break;case _0x16e926(0x18e):_0x3d762b[_0x16e926(0x1ed)]=_0x55c1e2[_0x16e926(0x130)](process[_0x16e926(0x134)](),b(_0x505cf0,++_0x135253,_0x7b6902,_0x16e926(0x19c)));break;case _0x16e926(0x255):{let _0x3f647f=b(_0x505cf0,++_0x135253,_0x7b6902,_0x16e926(0x2fe));pe[_0x16e926(0x281)](_0x3f647f)||(console[_0x16e926(0x26d)](_0x16e926(0x1f7)+_0x3f647f+_0x16e926(0x181)+pe[_0x16e926(0x2ac)]('\x20|\x20')+'.'),process['exit'](0x2)),_0x3d762b['effort']=_0x3f647f;break;}case'--tenant':{let _0x166c8a=_0x505cf0[++_0x135253];(!_0x166c8a||_0x166c8a[_0x16e926(0x118)]('--'))&&(console[_0x16e926(0x26d)](_0x16e926(0x2ea)),process[_0x16e926(0x251)](0x2)),_0x3d762b[_0x16e926(0x323)]=_0x166c8a;break;}case _0x16e926(0x289):{let _0xa910ab=_0x505cf0[++_0x135253];['alpha',_0x16e926(0x228),_0x16e926(0x20c),'localhost'][_0x16e926(0x281)](_0xa910ab)||(console[_0x16e926(0x26d)](_0x16e926(0x2bb)+_0xa910ab+_0x16e926(0x15f)),process[_0x16e926(0x251)](0x2)),_0x3d762b[_0x16e926(0x2b5)]=_0xa910ab;break;}case _0x16e926(0x193):case _0x16e926(0x263):{let _0x43106e=b(_0x505cf0,++_0x135253,_0x7b6902,'a\x20deployment\x20URL,\x20e.g.\x20https://automationsuite.contoso.com'),_0x538f8b=_0xc66a6b(_0x43106e);if(_0x538f8b['ok']===!0x1){console['error'](_0x13f995(_0x43106e,_0x538f8b['rejection'])),process[_0x16e926(0x251)](0x2);break;}_0x3d762b[_0x16e926(0x1c9)]=_0x538f8b['baseUrl'];break;}case'--skip-env-check':_0x3d762b[_0x16e926(0x158)]=!0x0;break;case'-h':case _0x16e926(0x11c):_0x3d762b['help']=!0x0;break;case'-v':case _0x16e926(0x1ff):_0x3d762b[_0x16e926(0x12b)]=!0x0;break;default:_0x7b6902[_0x16e926(0x118)]('--')&&(console[_0x16e926(0x26d)](_0x16e926(0x2aa)+_0x7b6902),process['exit'](0x2)),_0x991ac6[_0x16e926(0x1f0)](_0x7b6902);}}return _0x3d762b[_0x16e926(0x323)]!==void 0x0&&_0x3d762b[_0x16e926(0x2be)]!==_0x16e926(0x31d)&&(console[_0x16e926(0x26d)](_0x16e926(0x1f8)),process[_0x16e926(0x251)](0x2)),_0x3d762b[_0x16e926(0x1c9)]!==void 0x0&&_0x3d762b['env']!==void 0x0&&(console[_0x16e926(0x26d)]('Pass\x20either\x20--env\x20(a\x20named\x20cloud)\x20or\x20--url\x20(any\x20other\x20deployment),\x20not\x20both.'),process[_0x16e926(0x251)](0x2)),_0x3d762b[_0x16e926(0x1c9)]!==void 0x0&&_0x3d762b[_0x16e926(0x2be)]!==_0x16e926(0x31d)&&(console['error']('--url\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Other\x20commands\x20follow\x20the\x20saved\x20login,\x20or\x20--backend\x20<url>.'),process[_0x16e926(0x251)](0x2)),_0x3d762b[_0x16e926(0x219)]!==void 0x0&&_0x3d762b[_0x16e926(0x2be)]!==_0x16e926(0x1bb)&&(console[_0x16e926(0x26d)](_0x16e926(0x203)),process['exit'](0x2)),_0x3d762b['jsonSchemaPath']!==void 0x0&&(_0x3d762b['subcommand']!=='complete'&&_0x3d762b[_0x16e926(0x2be)]!==''||_0x3d762b[_0x16e926(0x2e6)])&&(console[_0x16e926(0x26d)](_0x16e926(0x1d8)),process[_0x16e926(0x251)](0x2)),_0x3d762b['attachments'][_0x16e926(0x2cf)]>0x0&&(_0x3d762b[_0x16e926(0x2be)]!==''||_0x3d762b[_0x16e926(0x2e6)])&&(console[_0x16e926(0x26d)](_0x16e926(0x153)),process[_0x16e926(0x251)](0x2)),_0x3d762b[_0x16e926(0x1e4)]&&(_0x3d762b[_0x16e926(0x2be)]!==''||_0x3d762b['cleanup'])&&(console[_0x16e926(0x26d)](_0x16e926(0x154)),process['exit'](0x2)),_0x3d762b[_0x16e926(0x1e4)]&&(_0x3d762b['headless']||_0x3d762b[_0x16e926(0x1d2)]||_0x3d762b[_0x16e926(0x167)]?.['trim']()===B)&&(console[_0x16e926(0x26d)](_0x16e926(0x14a)),process[_0x16e926(0x251)](0x2)),_0x3d762b[_0x16e926(0x1d0)]&&(_0x3d762b[_0x16e926(0x167)]!==void 0x0&&_0x3d762b['vertical'][_0x16e926(0x21d)]()!==B&&(console[_0x16e926(0x26d)](_0x16e926(0x166)+B+_0x16e926(0x25b)+_0x3d762b[_0x16e926(0x167)]+_0x16e926(0x326)),process[_0x16e926(0x251)](0x2)),_0x3d762b[_0x16e926(0x167)]=B),_0x3d762b[_0x16e926(0x158)]&&_0x3d762b[_0x16e926(0x2be)]!==_0x16e926(0x31d)&&(console[_0x16e926(0x26d)]('--skip-env-check\x20applies\x20to\x20`delegate-cli\x20login`\x20only.'),process['exit'](0x2)),_0x3d762b[_0x16e926(0x227)]!==_0x16e926(0x2f3)&&!ue[_0x16e926(0x281)](_0x3d762b[_0x16e926(0x2be)])&&(console[_0x16e926(0x26d)](_0x16e926(0x135)+_0x3d762b[_0x16e926(0x227)]+'\x20applies\x20to\x20prompts\x20and\x20to\x20these\x20commands\x20only:\x20'+ue[_0x16e926(0x2bc)](Boolean)['join'](',\x20')+'.'),process[_0x16e926(0x251)](0x2)),(_0x3d762b[_0x16e926(0x28d)]!==_0x16e926(0x2f3)||_0x3d762b[_0x16e926(0x26a)])&&_0x3d762b[_0x16e926(0x2be)]!==''&&(console[_0x16e926(0x26d)](_0x16e926(0x2ef)),process['exit'](0x2)),_0x3d762b['replayUserMessages']&&_0x3d762b[_0x16e926(0x28d)]!=='stream-json'&&(console[_0x16e926(0x26d)](_0x16e926(0x31a)),process[_0x16e926(0x251)](0x2)),_0x3d762b[_0x16e926(0x28d)]===_0x16e926(0x1a9)&&_0x3d762b[_0x16e926(0x227)]!==_0x16e926(0x1a9)&&(console['error'](_0x16e926(0x16c)),process[_0x16e926(0x251)](0x2)),(_0x3d762b[_0x16e926(0x172)]!==void 0x0||_0x3d762b[_0x16e926(0x311)]!==void 0x0||_0x3d762b[_0x16e926(0x1a1)])&&_0x3d762b['subcommand']!==_0x16e926(0x129)&&(console[_0x16e926(0x26d)](_0x16e926(0x2c3)),process[_0x16e926(0x251)](0x2)),(_0x3d762b[_0x16e926(0x2ca)]!==void 0x0||_0x3d762b[_0x16e926(0x139)]!==void 0x0)&&_0x3d762b[_0x16e926(0x2be)]!==_0x16e926(0x287)&&(console['error'](_0x16e926(0x1fa)),process[_0x16e926(0x251)](0x2)),_0x3d762b[_0x16e926(0x173)]!==void 0x0&&_0x3d762b[_0x16e926(0x2be)]!=='sessions'&&(console[_0x16e926(0x26d)](_0x16e926(0x217)),process[_0x16e926(0x251)](0x2)),_0x3d762b[_0x16e926(0x25e)]=[...new Set(_0x3d762b[_0x16e926(0x25e)])],_0x3d762b[_0x16e926(0x24d)]=_0x991ac6,_0x3d762b['prompt']=_0x991ac6[_0x16e926(0x2ac)]('\x20'),_0x3d762b[_0x16e926(0x28d)]===_0x16e926(0x1a9)&&_0x3d762b['prompt']!==''&&(console[_0x16e926(0x26d)](_0x16e926(0x19d)),process[_0x16e926(0x251)](0x2)),_0x3d762b;}var L=_0x4fa016=>{const _0x3c23fa=_0x547f85;process['stdout'][_0x3c23fa(0x1b5)](_0x4fa016);};function Kt(){const _0x32f377=_0x547f85;let _0x4e12e6=process[_0x32f377(0x204)][_0x32f377(0x1b5)],_0x53bdee=_0x4e12e6['bind'](process[_0x32f377(0x204)]),_0x17015f=L;return L=_0x5228c3=>{_0x53bdee(_0x5228c3);},process[_0x32f377(0x204)][_0x32f377(0x1b5)]=(..._0x98d31)=>process[_0x32f377(0x2a9)][_0x32f377(0x1b5)](..._0x98d31),()=>{const _0x1c9046=_0x32f377;process[_0x1c9046(0x204)]['write']=_0x4e12e6,L=_0x17015f;};}function m(_0x1cc188,_0x268f1d,_0xd9bee3){const _0x146744=_0x547f85;if(_0x1cc188[_0x146744(0x227)]==='text'){_0xd9bee3(_0x268f1d);return;}L(_0x5b6371(_0x268f1d));}function Qt(){const _0x4eb8ab=_0x547f85;let _0x1181ca=_0x4eb8ab(0x2e0)[_0x4eb8ab(0x21d)]();console[_0x4eb8ab(0x31f)](_0x1181ca);}function qt(){const _0xf82218=_0x547f85;try{return JSON[_0xf82218(0x2f1)](_0x1e7393[_0xf82218(0x1ef)](_0x55c1e2['join'](__dirname,'..',_0xf82218(0x103)),_0xf82218(0x2e1)))[_0xf82218(0x12b)]||_0xf82218(0x229);}catch{return _0xf82218(0x229);}}var zt=0x7d0;async function me(_0x58e0cf,_0x41531c){const _0x574ba0=_0x547f85;let _0x3cb2f0=_0x41531c?[_0x41531c]:[];for await(let _0x5c8cc8 of _0x58e0cf)_0x3cb2f0[_0x574ba0(0x1f0)](Buffer['from'](_0x5c8cc8));return Buffer[_0x574ba0(0x1db)](_0x3cb2f0)['toString'](_0x574ba0(0x2e1))[_0x574ba0(0x21d)]();}function Yt(_0xc81530,_0x18d6a9){return new Promise(_0x175667=>{const _0x5e7299=_0x13e2;let _0x40115a=_0x5a1a47=>{const _0x4d558e=_0x13e2;clearTimeout(_0x1f73a1),_0xc81530[_0x4d558e(0x21e)](_0x4d558e(0x327),_0x39c698),_0xc81530['off'](_0x4d558e(0x1c3),_0x5f54dd),_0xc81530[_0x4d558e(0x21e)]('error',_0x5f54dd),_0xc81530[_0x4d558e(0x2a0)](),_0x175667(_0x5a1a47);},_0x39c698=_0x47ec8a=>_0x40115a(Buffer[_0x5e7299(0x150)](_0x47ec8a)),_0x5f54dd=()=>_0x40115a(null),_0x1f73a1=setTimeout(()=>_0x40115a(null),_0x18d6a9);_0xc81530['on']('data',_0x39c698),_0xc81530['on'](_0x5e7299(0x1c3),_0x5f54dd),_0xc81530['on'](_0x5e7299(0x26d),_0x5f54dd),_0xc81530['resume']();});}async function H(_0x3133f6,_0x40f414,_0x21e5b4=zt){const _0x16eb8d=_0x547f85;let _0xfeb1a3=_0x3133f6==='-';if(!_0xfeb1a3&&_0x3133f6)return _0x3133f6;if(!_0xfeb1a3&&_0x40f414[_0x16eb8d(0x222)])return'';if(_0xfeb1a3)return me(_0x40f414,null);let _0x565f95=await Yt(_0x40f414,_0x21e5b4);return _0x565f95?me(_0x40f414,_0x565f95):'';}function z(){const _0x15fc3d=_0x547f85;return _0x55c1e2['join'](process.env.HOME||process.env.USERPROFILE||'',_0x15fc3d(0x2de),_0x15fc3d(0x22a));}function G(_0xd17e86){const _0x590b19=_0x547f85;try{let _0x5bd972=JSON['parse'](_0x1e7393['readFileSync'](_0xd17e86,_0x590b19(0x2e1)));return!_0x5bd972[_0x590b19(0x296)]||!_0x5bd972[_0x590b19(0x1cb)]||!_0x5bd972[_0x590b19(0x1ce)]?null:_0x5bd972;}catch{return null;}}function Vt(){const _0x3377f1=_0x547f85;let _0x2a4e4a=[{'file':_0x4786cd(),'isDesktopFallback':!0x1},{'file':z(),'isDesktopFallback':!0x0}];for(let _0x3cf613 of _0x2a4e4a){let _0x12a3df=G(_0x3cf613[_0x3377f1(0x128)]);if(_0x12a3df)return{..._0x3cf613,'auth':_0x12a3df};}return null;}async function Xt(){const _0x3edf0d=_0x547f85;let _0x16352c=_0x4786cd();if(!_0x1e7393['existsSync'](_0x16352c)){let _0x3c1de7=z();console[_0x3edf0d(0x31f)](G(_0x3c1de7)?_0x3edf0d(0x310)+_0x3c1de7+_0x3edf0d(0x11f):_0x3edf0d(0x2dc));return;}_0x1e7393[_0x3edf0d(0x1a3)](_0x16352c),console['log'](_0x3edf0d(0x328)+_0x16352c);}async function Zt(_0x5553f0){const _0x37b376=_0x547f85;let _0x1ae573=Y(),_0x50472c,_0x4e4214;if(_0x1ae573)_0x50472c=_0x1ae573,_0x4e4214=_0x37b376(0x2ed);else{let _0x2a17cc=Vt();if(!_0x2a17cc)throw new Error(Te);_0x50472c=_0x2a17cc['auth'],_0x4e4214=_0x2a17cc['isDesktopFallback']?_0x2a17cc[_0x37b376(0x128)]+_0x37b376(0x174):_0x2a17cc[_0x37b376(0x128)];}let _0x126900={'source':_0x4e4214,'baseUrl':_0x50472c[_0x37b376(0x225)]??null,'deployment':en(_0x50472c[_0x37b376(0x225)]),'organization':{'id':_0x50472c['organizationId'],'slug':_0x50472c['orgLogicalName']??null},'tenant':{'id':_0x50472c['tenantId'],'name':_0x50472c[_0x37b376(0x28b)]??null},'tokenExpiresAt':_0x50472c['expiresAt']?new Date(_0x50472c[_0x37b376(0x10e)]*0x3e8)['toISOString']():null};m(_0x5553f0,_0x126900,()=>{const _0x241cf0=_0x37b376;let _0x48c4cf=['Source:\x20\x20\x20\x20\x20\x20\x20'+_0x4e4214,'Base\x20URL:\x20\x20\x20\x20\x20'+(_0x50472c[_0x241cf0(0x225)]??_0x241cf0(0x229)),_0x241cf0(0x13d)+_0x126900[_0x241cf0(0x1c6)],_0x241cf0(0x268)+(_0x50472c[_0x241cf0(0x2a1)]??'unknown\x20slug')+'\x20('+_0x50472c[_0x241cf0(0x1ce)]+')',_0x241cf0(0x160)+(_0x50472c[_0x241cf0(0x28b)]??_0x241cf0(0x22d))+'\x20('+_0x50472c[_0x241cf0(0x1cb)]+')'];if(_0x50472c[_0x241cf0(0x10e)]){let _0x2a04ff=_0x50472c[_0x241cf0(0x10e)]-Math[_0x241cf0(0x17f)](Date[_0x241cf0(0x1cf)]()/0x3e8);_0x48c4cf['push'](_0x2a04ff>0x0?_0x241cf0(0x316)+_0x126900[_0x241cf0(0x28a)]+'\x20(in\x20'+Math['round'](_0x2a04ff/0x3c)+_0x241cf0(0x208):'Token:\x20\x20\x20\x20\x20\x20\x20\x20expired\x20'+_0x126900[_0x241cf0(0x28a)]);}process[_0x241cf0(0x204)][_0x241cf0(0x1b5)](_0x48c4cf[_0x241cf0(0x2ac)]('\x0a')+'\x0a');});}var Te='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 en(_0x1809c6){const _0x5435af=_0x547f85;return _0x1809c6?_0x1cb9b2(_0x1809c6)?_0x5435af(0x238):_0x5435af(0x16a):_0x5435af(0x229);}function Y(){let _0x5b5408=process.env.AUTH_TOKEN_FILE;return(process.env.AUTH_TOKEN||_0x5b5408)&&process.env.TENANT_ID&&process.env.ORG_ID?{'accessToken':_0x5b5408?tn(_0x5b5408):process.env.AUTH_TOKEN,..._0x5b5408?{'accessTokenFile':_0x5b5408}:{},'tenantId':process.env.TENANT_ID,'organizationId':process.env.ORG_ID,'orgLogicalName':process.env.ORG_SLUG,'tenantName':process.env.TENANT_SLUG,'baseUrl':Ue()}:null;}function tn(_0x29a7c9){const _0xd726d3=_0x547f85;let _0x2ee68d;try{_0x2ee68d=_0x1e7393[_0xd726d3(0x1ef)](_0x29a7c9,_0xd726d3(0x2e1))[_0xd726d3(0x21d)]();}catch(_0x99ef9b){throw new Error(_0xd726d3(0x26e)+_0x29a7c9+_0xd726d3(0x1b1)+_0x99ef9b['message']);}let _0x3ce725=_0x2ee68d[_0xd726d3(0x118)]('Bearer\x20')?_0x2ee68d[_0xd726d3(0x156)](0x7)[_0xd726d3(0x21d)]():_0x2ee68d;if(!_0x3ce725)throw new Error(_0xd726d3(0x26e)+_0x29a7c9+_0xd726d3(0x306));return _0x3ce725;}function Ue(){const _0x595b8c=_0x547f85;let _0x374524=process.env.UIPATH_BASE_URL;if(!_0x374524)return;let _0x5170e6=_0xc66a6b(_0x374524);if(_0x5170e6['ok']===!0x1)throw new Error(_0x595b8c(0x19a)+_0x13f995(_0x374524,_0x5170e6[_0x595b8c(0x152)]));return _0x5170e6[_0x595b8c(0x225)];}async function V(){let _0x364447=Y();if(_0x364447)return _0x364447;let _0x4ac8f4=await _0x40fed7();if(_0x4ac8f4)return _0x4ac8f4;throw new Error(Te);}async function nn(){const _0x2f276e=_0x547f85;await new _0x342ada()[_0x2f276e(0x1b8)]({'force':!0x0}),console[_0x2f276e(0x31f)]('Interop\x20stopped\x20(if\x20it\x20was\x20running).');}function X(_0x213181,_0x4d855d,_0x208803){const _0x1ce77a=_0x547f85;_0x213181?process['stderr']['write']('[env='+_0x213181+_0x1ce77a(0x14f)+_0x208803+'\x0a'):!_0x4d855d&&!process.env.BACKEND_URL&&process['stderr'][_0x1ce77a(0x1b5)](_0x1ce77a(0x218)+_0x208803+'\x0a');}async function $(_0x279008){const _0x37862b=_0x547f85;let _0x4f450b=await V(),_0x1b68ff=_0x1805bb(_0x279008[_0x37862b(0x2b5)],_0x4f450b,_0x279008[_0x37862b(0x314)]);return X(_0x279008[_0x37862b(0x2b5)],_0x279008['backendUrl'],_0x1b68ff),{'auth':_0x4f450b,'backendUrl':_0x1b68ff,'client':_0x2b96d4({'auth':_0x4f450b,'backendUrl':_0x1b68ff})};}function _0x13e2(_0x2ee3ac,_0x1eca7e){_0x2ee3ac=_0x2ee3ac-0xfe;const _0x285de6=_0x285d();let _0x13e278=_0x285de6[_0x2ee3ac];return _0x13e278;}async function sn(_0x3b382f){const _0x25fb18=_0x547f85;let {client:_0x5ae36f}=await $(_0x3b382f),[_0x54c758,_0x549deb]=await Promise[_0x25fb18(0x313)]([_0x29c43b(_0x5ae36f),_0x10641e(_0x5ae36f)['catch'](_0x59bf8c=>(process['stderr'][_0x25fb18(0x1b5)](_0x25fb18(0x1e0)+(_0x59bf8c instanceof Error?_0x59bf8c['message']:String(_0x59bf8c))+'\x0a'),{}))]),_0x5bb089=_0x54c758[_0x25fb18(0x27b)](_0x1b4b34=>_0x549deb[_0x1b4b34['id']]?{..._0x1b4b34,'byoWarning':_0x549deb[_0x1b4b34['id']]}:_0x1b4b34);m(_0x3b382f,_0x5bb089,on);}function on(_0x538c39){const _0x182aa7=_0x547f85;if(_0x538c39[_0x182aa7(0x2cf)]===0x0){process[_0x182aa7(0x2a9)][_0x182aa7(0x1b5)](_0x182aa7(0x104));return;}process[_0x182aa7(0x204)][_0x182aa7(0x1b5)](_0x182aa7(0x240)+_0x538c39[_0x182aa7(0x2cf)]+_0x182aa7(0x224));for(let _0x321ae7 of _0x538c39){let _0x515014=_0x321ae7['name']&&_0x321ae7[_0x182aa7(0x11b)]!==_0x321ae7['id']?'\x20('+_0x321ae7[_0x182aa7(0x11b)]+')':'';process[_0x182aa7(0x204)]['write']('\x20\x20'+_0x321ae7['id']+_0x515014+'\x0a'),_0x321ae7[_0x182aa7(0x1aa)]&&process[_0x182aa7(0x204)]['write'](_0x182aa7(0x2b0)+_0x321ae7[_0x182aa7(0x1aa)]+'\x0a'),_0x321ae7['locked']&&process[_0x182aa7(0x204)]['write'](_0x182aa7(0x297)+(_0x321ae7['lockReason']?'\x20('+_0x321ae7[_0x182aa7(0x269)]+')':'')+'\x0a'),_0x321ae7[_0x182aa7(0x120)]&&process['stdout']['write'](_0x182aa7(0x272)+_0x321ae7[_0x182aa7(0x120)]+'\x0a');}process[_0x182aa7(0x204)][_0x182aa7(0x1b5)](_0x182aa7(0x207));}var fe=[_0x547f85(0x1ea),'show',_0x547f85(0x2ab),_0x547f85(0x1ee),_0x547f85(0x1d3),_0x547f85(0x188)];async function rn(_0x1ff616){const _0x51db5c=_0x547f85;let [_0xce9e8d='',_0x5d1dc6='',..._0xff4da4]=_0x1ff616[_0x51db5c(0x24d)];if(_0xce9e8d&&!fe[_0x51db5c(0x281)](_0xce9e8d)&&(console[_0x51db5c(0x26d)]('Unknown\x20sessions\x20action:\x20'+_0xce9e8d+'.\x20Use:\x20'+fe[_0x51db5c(0x2ac)](_0x51db5c(0x2b7))+'.'),process['exit'](0x2)),_0x1ff616[_0x51db5c(0x173)]!==void 0x0&&_0xce9e8d!=='cancel'&&(console[_0x51db5c(0x26d)](_0x51db5c(0x217)),process[_0x51db5c(0x251)](0x2)),_0xce9e8d&&_0xce9e8d!==_0x51db5c(0x1ea)){await an(_0x1ff616,_0xce9e8d,_0x5d1dc6,_0xff4da4['join']('\x20')[_0x51db5c(0x21d)]());return;}_0x1ff616[_0x51db5c(0x24d)]['length']>0x1&&(console[_0x51db5c(0x26d)](_0x51db5c(0x277)),process[_0x51db5c(0x251)](0x2));let {client:_0x3c9745}=await $(_0x1ff616),_0x20955a=await _0x12c22a(_0x3c9745,{'page':_0x1ff616[_0x51db5c(0x172)],'pageSize':_0x1ff616[_0x51db5c(0x311)],'includeSubAgents':_0x1ff616[_0x51db5c(0x1a1)]});m(_0x1ff616,_0x20955a,un);}async function an(_0x17990b,_0x4e95ff,_0x28e709,_0x3e60ec){const _0x1f100a=_0x547f85;if((_0x17990b[_0x1f100a(0x172)]!==void 0x0||_0x17990b['limit']!==void 0x0||_0x17990b[_0x1f100a(0x1a1)])&&(console['error'](_0x1f100a(0x262)),process['exit'](0x2)),_0x4e95ff===_0x1f100a(0x1d3)){await cn(_0x17990b,_0x28e709,_0x3e60ec);return;}if(_0x4e95ff===_0x1f100a(0x188)){await dn(_0x17990b,_0x28e709,_0x3e60ec);return;}(!_0x28e709||_0x4e95ff===_0x1f100a(0x2ab)!=!!_0x3e60ec)&&(console[_0x1f100a(0x26d)](_0x1f100a(0x2a7)+_0x4e95ff+_0x1f100a(0x242)+(_0x4e95ff===_0x1f100a(0x2ab)?'\x20<title>':'')),process[_0x1f100a(0x251)](0x2));let {client:_0x1e0b2b}=await $(_0x17990b);try{if(_0x4e95ff==='show'){let _0x1cbb37=await _0x4f7a05(_0x1e0b2b,_0x28e709);_0x1cbb37||ge(_0x28e709),m(_0x17990b,_0x1cbb37,ln);}else{if(_0x4e95ff===_0x1f100a(0x2ab)){let _0x19baf0=await _0x5e82df(_0x1e0b2b,_0x28e709,_0x3e60ec);m(_0x17990b,_0x19baf0,_0x4c3e81=>{const _0x4e5081=_0x1f100a;process['stdout'][_0x4e5081(0x1b5)](_0x4e5081(0x10a)+_0x4c3e81['id']+':\x20'+_0x4c3e81['title']+'\x0a');});}else await _0x22f654(_0x1e0b2b,_0x28e709),await _0x144ff3(_0x28e709,_0x17990b[_0x1f100a(0x1ba)]),m(_0x17990b,{'id':_0x28e709,'deleted':!0x0},_0x3aee87=>{const _0x3b3ca8=_0x1f100a;process['stdout']['write'](_0x3b3ca8(0x161)+_0x3aee87['id']+'.\x0a');});}}catch(_0x383bbf){if(!_0x1baeec(_0x383bbf,0x194))throw _0x383bbf;ge(_0x28e709);}}function ge(_0x13a57d){const _0x4b2d12=_0x547f85;console['error'](_0x4b2d12(0x205)+_0x13a57d+'\x20not\x20found.'),process[_0x4b2d12(0x251)](0x1);}function ln(_0x2aa746){const _0xe37a26=_0x547f85;process[_0xe37a26(0x204)][_0xe37a26(0x1b5)]('ID\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x2aa746['id']+'\x0a'),process[_0xe37a26(0x204)]['write'](_0xe37a26(0x300)+_0x2aa746[_0xe37a26(0x23b)]+'\x0a'),process['stdout'][_0xe37a26(0x1b5)](_0xe37a26(0x2d7)+_0x2aa746['userId']+'\x0a'),process['stdout'][_0xe37a26(0x1b5)](_0xe37a26(0x20a)+_0x2aa746[_0xe37a26(0x1ce)]+'\x0a'),_0x2aa746[_0xe37a26(0x2b4)]&&process[_0xe37a26(0x204)]['write'](_0xe37a26(0x148)+_0x2aa746[_0xe37a26(0x2b4)]+'\x0a');}async function cn(_0x24f95c,_0x188714,_0x3145f6){const _0x1e4f52=_0x547f85;(!_0x188714||_0x3145f6||!_0x24f95c[_0x1e4f52(0x173)])&&(console[_0x1e4f52(0x26d)](_0x1e4f52(0x140)),process[_0x1e4f52(0x251)](0x2));let {client:_0x4284a6}=await $(_0x24f95c),_0x65d408=await _0x250830(_0x4284a6,_0x188714,_0x24f95c[_0x1e4f52(0x173)]);m(_0x24f95c,{'sessionId':_0x188714,'turnId':_0x24f95c['turnId'],'cancelled':_0x65d408},_0x3ed310=>{const _0x41d2a5=_0x1e4f52;_0x3ed310['cancelled']?process[_0x41d2a5(0x204)]['write']('Cancel\x20requested\x20for\x20turn\x20'+_0x3ed310[_0x41d2a5(0x173)]+_0x41d2a5(0x119)+_0x3ed310['sessionId']+'.\x0a'):process[_0x41d2a5(0x2a9)][_0x41d2a5(0x1b5)](_0x41d2a5(0x110)+_0x3ed310[_0x41d2a5(0x173)]+_0x41d2a5(0x20f)+_0x3ed310[_0x41d2a5(0x2f4)]+'.\x0a');}),_0x65d408||(process[_0x1e4f52(0x136)]=0x1);}async function dn(_0x48b5ca,_0x247fc5,_0x158507){const _0x498c3b=_0x547f85;(!_0x247fc5||/\s/['test'](_0x158507))&&(console['error'](_0x498c3b(0x27a)),process[_0x498c3b(0x251)](0x2));let {client:_0xb5a019}=await $(_0x48b5ca),_0x393b38;try{_0x393b38=await _0x20dc45(_0xb5a019,_0x247fc5,{'atMessageId':_0x158507||void 0x0});}catch(_0x9f2e99){if(!_0x1baeec(_0x9f2e99,0x194))throw _0x9f2e99;console['error']('Session\x20'+_0x247fc5+'\x20not\x20found,\x20has\x20no\x20messages'+(_0x158507?_0x498c3b(0x1a6)+_0x158507:'')+'.'),process[_0x498c3b(0x251)](0x1);}m(_0x48b5ca,_0x393b38,_0x50596f=>{const _0x1a0042=_0x498c3b;process[_0x1a0042(0x204)][_0x1a0042(0x1b5)](_0x1a0042(0x197)+_0x247fc5+_0x1a0042(0x308)+_0x50596f['id']+'.\x0a'),process[_0x1a0042(0x2a9)][_0x1a0042(0x1b5)](_0x1a0042(0x12c)+_0x50596f['id']+_0x1a0042(0x175));});}function un({sessions:_0x5e5392,page:_0x4353e9,isLastPage:_0x5591b6}){const _0x1f0247=_0x547f85;if(_0x5e5392[_0x1f0247(0x2cf)]===0x0)process[_0x1f0247(0x2a9)][_0x1f0247(0x1b5)](_0x1f0247(0x11a)+_0x4353e9+'.\x0a');else{process[_0x1f0247(0x204)]['write']('ID'[_0x1f0247(0x170)](0x24)+'\x20\x20'+'UPDATED'[_0x1f0247(0x170)](0x13)+_0x1f0247(0x176));for(let _0x513825 of _0x5e5392){let _0x30c7de=_0x513825['updatedAt']['replace']('T','\x20')[_0x1f0247(0x156)](0x0,0x13),_0x5e7df9=_0x513825['parentSessionId']?_0x1f0247(0x29c)+_0x513825['parentSessionId']+')':'';process[_0x1f0247(0x204)][_0x1f0247(0x1b5)](_0x513825['id'][_0x1f0247(0x170)](0x24)+'\x20\x20'+_0x30c7de[_0x1f0247(0x170)](0x13)+'\x20\x20'+_0x513825[_0x1f0247(0x23b)]+_0x5e7df9+'\x0a');}}_0x5591b6||process['stderr']['write']('More:\x20delegate-cli\x20sessions\x20--page\x20'+(_0x4353e9+0x1)+'\x0a');}async function pn(_0xed0767){const _0x389fd2=_0x547f85;let _0x45a0bd=await V(),_0x13e3af=_0x1805bb(_0xed0767[_0x389fd2(0x2b5)],_0x45a0bd,_0xed0767[_0x389fd2(0x314)]);X(_0xed0767[_0x389fd2(0x2b5)],_0xed0767[_0x389fd2(0x314)],_0x13e3af);let _0xd5769b=await _0x45444b({'auth':_0x45a0bd,'backendUrl':_0x13e3af,'interop':_0xed0767[_0x389fd2(0x2bf)]?_0x389fd2(0x16b):_0x389fd2(0x165)});m(_0xed0767,_0xd5769b,({checks:_0x177cca})=>{for(let _0x4b3f17 of _0x177cca)process['stdout']['write'](mn(_0x4b3f17)+'\x0a');}),_0xd5769b['ok']||process['exit'](0x1);}function mn(_0x251cfb){const _0x22cbd0=_0x547f85;return{'ok':'✓','failed':'✗','skipped':'-'}[_0x251cfb['status']]+'\x20'+_0x251cfb['name']['padEnd'](0xa)+_0x251cfb[_0x22cbd0(0x1ae)];}var fn=['',_0x547f85(0x1ca),_0x547f85(0x299)];async function gn(_0x510bed){const _0x21d2cd=_0x547f85;let _0x43eb51=_0x510bed[_0x21d2cd(0x138)];fn[_0x21d2cd(0x281)](_0x43eb51)||(console['error'](_0x21d2cd(0x114)+_0x510bed[_0x21d2cd(0x138)]+'.\x20Use\x20`delegate-cli\x20usage`,\x20`usage\x20activity`\x20or\x20`usage\x20daily`.'),process[_0x21d2cd(0x251)](0x2)),_0x43eb51===''&&_0x510bed['days']!==void 0x0&&(console[_0x21d2cd(0x26d)](_0x21d2cd(0x2df)),process[_0x21d2cd(0x251)](0x2)),_0x43eb51!==''&&_0x510bed['sessionId']!==void 0x0&&(console['error'](_0x21d2cd(0x1a4)),process[_0x21d2cd(0x251)](0x2));let {client:_0x202323}=await $(_0x510bed);if(_0x43eb51===_0x21d2cd(0x1ca)){m(_0x510bed,await _0xf49311(_0x202323,{'days':_0x510bed[_0x21d2cd(0x219)]}),yn);return;}if(_0x43eb51===_0x21d2cd(0x299)){m(_0x510bed,await _0x158e6f(_0x202323,{'days':_0x510bed[_0x21d2cd(0x219)]}),wn);return;}let [_0x143612,_0x40d95c]=await Promise[_0x21d2cd(0x313)]([_0x3ff56f(_0x202323,{'sessionId':_0x510bed[_0x21d2cd(0x2f4)]}),_0x55d02f(_0x202323)]);m(_0x510bed,{'licensing':_0x143612,'monthlySpending':_0x40d95c},hn);}function hn(_0x4e56a5){const _0x266d1a=_0x547f85;let {licensing:_0x4428d7,monthlySpending:_0x39ed54}=_0x4e56a5,_0x393996=[_0x4428d7[_0x266d1a(0x26b)]?_0x266d1a(0x230)+_0x4428d7[_0x266d1a(0x1f4)][_0x266d1a(0x213)](0x1)+_0x266d1a(0x216)+(_0x4428d7[_0x266d1a(0x1d1)]??0x0)+_0x266d1a(0x295)+(_0x4428d7[_0x266d1a(0x259)]>0x0?',\x20'+_0x4428d7['extra_pool_consumed_pu']+_0x266d1a(0x21a):'')+_0x266d1a(0x115)+_0x4428d7['period_end']+')':_0x266d1a(0x273),'Spending:\x20\x20\x20\x20\x20$'+_0x39ed54['monthly_spend_usd'][_0x266d1a(0x213)](0x2)+_0x266d1a(0x274)+(_0x39ed54[_0x266d1a(0x26b)]&&_0x39ed54[_0x266d1a(0x124)]!==null?_0x266d1a(0x257)+_0x39ed54[_0x266d1a(0x124)]['toFixed'](0x2)+_0x266d1a(0x187):'\x20(no\x20cap\x20enforced)')];_0x4428d7[_0x266d1a(0x19b)]!==null&&_0x4428d7[_0x266d1a(0x19b)]!==void 0x0&&_0x393996['push'](_0x266d1a(0x151)+_0x4428d7[_0x266d1a(0x19b)]+_0x266d1a(0x191)),process['stdout'][_0x266d1a(0x1b5)](_0x393996['join']('\x0a')+'\x0a');}function yn(_0x2972cf){const _0x5dea96=_0x547f85;let _0x2ee555=[_0x5dea96(0x267)+_0x2972cf[_0x5dea96(0x221)]+_0x5dea96(0x232)+_0x2972cf[_0x5dea96(0x1fe)]+_0x5dea96(0x279)+_0x2972cf[_0x5dea96(0x1a0)]+'\x20active\x20days',_0x5dea96(0x2a5)+_0x2972cf[_0x5dea96(0x2fc)][_0x5dea96(0x213)](0x2)+_0x5dea96(0x248)+_0x2972cf[_0x5dea96(0x105)][_0x5dea96(0x213)](0x2)+_0x5dea96(0x28e)+_0x2972cf[_0x5dea96(0x30c)]+_0x5dea96(0x133),_0x5dea96(0x142)+_0x2972cf[_0x5dea96(0x190)]+_0x5dea96(0x1b7)+_0x2972cf['total_completion_tokens']+_0x5dea96(0x15b)];for(let [_0x363ed2,_0x350c51]of Object['entries'](_0x2972cf[_0x5dea96(0x2e7)]))_0x2ee555[_0x5dea96(0x1f0)]('\x20\x20'+_0x363ed2+':\x20'+_0x350c51+_0x5dea96(0x2ff));process[_0x5dea96(0x204)][_0x5dea96(0x1b5)](_0x2ee555[_0x5dea96(0x2ac)]('\x0a')+'\x0a');}function wn(_0x4d52b6){const _0x195bd7=_0x547f85;if(_0x4d52b6['daily_usage'][_0x195bd7(0x2cf)]===0x0){process['stdout'][_0x195bd7(0x1b5)]('No\x20usage\x20in\x20the\x20last\x20'+_0x4d52b6[_0x195bd7(0x221)]+_0x195bd7(0x145));return;}let _0x492baa=[_0x195bd7(0x24b)];for(let _0x41bc2c of _0x4d52b6[_0x195bd7(0x245)])_0x492baa[_0x195bd7(0x1f0)](_0x41bc2c[_0x195bd7(0x1e2)]+'\x20\x20'+String(_0x41bc2c[_0x195bd7(0x2e5)])[_0x195bd7(0x1da)](0xb)+'\x20\x20'+String(_0x41bc2c[_0x195bd7(0x2c4)])[_0x195bd7(0x1da)](0xd)+'\x20\x20'+String(_0x41bc2c[_0x195bd7(0x202)])[_0x195bd7(0x1da)](0x11));process['stdout']['write'](_0x492baa['join']('\x0a')+'\x0a');}async function kn(_0x1bd5c9,_0x357874){const _0x3e16a4=_0x547f85;let _0x31f9e6=await bn(_0x1bd5c9[_0x3e16a4(0x138)],_0x357874);_0x1bd5c9[_0x3e16a4(0x196)]&&(_0x31f9e6['model']=_0x1bd5c9[_0x3e16a4(0x196)]);let {client:_0x2e1d13}=await $(_0x1bd5c9);try{_0x357874===_0x3e16a4(0x2b3)?m(_0x1bd5c9,await _0x17b987(_0x2e1d13,_0x31f9e6,void 0x0),vn):_0x357874===_0x3e16a4(0x2af)?m(_0x1bd5c9,await _0x2b2344(_0x2e1d13,_0x31f9e6,void 0x0),An):m(_0x1bd5c9,await _0x1828f5(_0x2e1d13,_0x31f9e6,void 0x0),En);}catch(_0x1381b3){if(!_0x427c08(_0x1381b3))throw _0x1381b3;console[_0x3e16a4(0x26d)](_0x1381b3[_0x3e16a4(0x12d)]),process['exit'](0x1);}}async function bn(_0x2416cf,_0x1e334e){const _0x305dcc=_0x547f85;let _0x124278;try{_0x124278=_0x2416cf&&_0x2416cf!=='-'?_0x1e7393['readFileSync'](_0x55c1e2[_0x305dcc(0x130)](_0x2416cf),_0x305dcc(0x2e1)):await H(_0x2416cf,process[_0x305dcc(0x182)]);}catch(_0x34c6d2){console['error'](_0x1e334e+_0x305dcc(0x325)+_0x34c6d2[_0x305dcc(0x12d)]+').'),process[_0x305dcc(0x251)](0x2);}return _0x124278||(console['error'](_0x1e334e+_0x305dcc(0x278)+_0x1e334e+_0x305dcc(0x18a)),process[_0x305dcc(0x251)](0x2)),De(_0x124278,_0x1e334e,_0x305dcc(0x2cd));}function De(_0x245a86,_0x5cfe4c,_0x14f3a){const _0x1c6d49=_0x547f85;let _0x52f799;try{_0x52f799=JSON[_0x1c6d49(0x2f1)](_0x245a86);}catch(_0x4d2669){console[_0x1c6d49(0x26d)](_0x5cfe4c+':\x20'+_0x14f3a+'\x20is\x20not\x20valid\x20JSON\x20('+_0x4d2669[_0x1c6d49(0x12d)]+').'),process['exit'](0x2);}return(typeof _0x52f799!=_0x1c6d49(0x15a)||_0x52f799===null||Array['isArray'](_0x52f799))&&(console['error'](_0x5cfe4c+':\x20'+_0x14f3a+_0x1c6d49(0x2f2)),process[_0x1c6d49(0x251)](0x2)),_0x52f799;}function Ne(_0xe910e,_0x208639){const _0x35c81f=_0x547f85;let _0x13874e;try{_0x13874e=_0x1e7393[_0x35c81f(0x1ef)](_0x55c1e2[_0x35c81f(0x130)](_0xe910e),'utf-8');}catch(_0x563a65){console[_0x35c81f(0x26d)](_0x208639+':\x20cannot\x20read\x20the\x20JSON\x20schema\x20('+_0x563a65[_0x35c81f(0x12d)]+').'),process['exit'](0x2);}return De(_0x13874e,_0x208639,_0x35c81f(0x324));}async function Sn(_0x3b40f2){const _0x15f94e=_0x547f85;_0x3b40f2[_0x15f94e(0x11d)]===void 0x0&&(console['error'](_0x15f94e(0x12e)),process[_0x15f94e(0x251)](0x2));let _0x387ee7=Ne(_0x3b40f2[_0x15f94e(0x11d)],_0x15f94e(0x2d8)),_0x1bfd99=(await H(_0x3b40f2[_0x15f94e(0x138)],process[_0x15f94e(0x182)]))[_0x15f94e(0x21d)]();_0x1bfd99||(console[_0x15f94e(0x26d)](_0x15f94e(0x1a2)),process[_0x15f94e(0x251)](0x2));let {client:_0x85358b}=await $(_0x3b40f2);try{let _0x4f16db=await _0x445104(_0x85358b,{'prompt':_0x1bfd99,'jsonSchema':_0x387ee7,'model':_0x3b40f2['model']||process.env.MODEL||_0x4964e2,..._0x3b40f2[_0x15f94e(0x2f4)]!==void 0x0&&{'sessionId':_0x3b40f2[_0x15f94e(0x2f4)]}},void 0x0);m(_0x3b40f2,_0x4f16db,_0x594328=>{const _0xdf8d6d=_0x15f94e;process['stdout'][_0xdf8d6d(0x1b5)](JSON['stringify'](_0x594328[_0xdf8d6d(0x25a)],null,0x2)+'\x0a');});}catch(_0x1ed4f1){if(!_0x536853(_0x1ed4f1))throw _0x1ed4f1;console['error'](_0x1ed4f1[_0x15f94e(0x12d)]),process[_0x15f94e(0x251)](0x1);}}function _0x285d(){const _0x1819ff=['pause','orgLogicalName','105GMWSso','Turn:\x20','projectId','Cost:\x20\x20\x20$','score\x20','Usage:\x20delegate-cli\x20sessions\x20','setPrompt','stderr','Unknown\x20flag:\x20','rename','join','assignedUserEmail','getSessionId','rerank','\x20\x20\x20\x20','probability','Enter\x20one\x20number\x20from\x201\x20to\x20','evaluate','delegationId','env','min','\x20|\x20','displayName','split','4040085vQjONT','Invalid\x20--env:\x20','filter','result','subcommand','headless','close','shift','):\x20','--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`delegate-cli\x20sessions`\x20only.','prompt_tokens','step','verify','org-users','isError','\x20(cancel\x20with:\x20delegate-cli\x20sessions\x20cancel\x20','delegateTo','getSessionMessages','catch','the\x20request','✓\x20Done\x0a','length','--env\x20localhost\x20has\x20no\x20OAuth\x20flow;\x20pick\x20alpha,\x20staging,\x20or\x20production.','delegations\x20claim\x20<delegation-id|delegate://delegation/…>','models','144836wwyIWz','index','low','--no-connections','Owner\x20\x20\x20\x20\x20\x20\x20\x20\x20','complete',',\x20not\x20\x22user\x22','a\x20file\x20path','stack','No\x20CLI\x20login\x20found\x20—\x20nothing\x20to\x20remove.','choice\x20','.aria','--days\x20applies\x20to\x20`delegate-cli\x20usage\x20activity|daily`;\x20the\x20summary\x20covers\x20the\x20current\x20month.','\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\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--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','utf-8','4oUwLGS','rubric_version','--include-subagents','token_units','cleanup','models_breakdown','kind','lastType','--tenant\x20requires\x20a\x20tenant\x20name.','toolName','\x20to\x20','environment\x20variables\x20(AUTH_TOKEN/TENANT_ID/ORG_ID)','thinking','--input-format\x20and\x20--replay-user-messages\x20apply\x20to\x20prompts\x20only.','Invalid\x20--output-format:\x20','parse','\x20must\x20be\x20a\x20JSON\x20object.','text','sessionId','tool','Work\x20on\x20it\x20with:\x20delegate-cli\x20--session\x20','questions','--headless','--cleanup','169370cvGUBe','Number','total_cost_usd','uuid','an\x20effort\x20tier','\x20token\x20units','Title\x20\x20\x20\x20\x20\x20\x20\x20\x20','sourceTitle','transcribe\x20needs\x20audio:\x20delegate-cli\x20transcribe\x20<file>,\x20or\x20-\x20to\x20read\x20stdin.','noMemory',')\x20—\x20saved\x20to\x20','Tenants\x20of\x20','\x27\x20is\x20empty.','keepAlive','\x20into\x20','>.\x0a','\x20requires\x20','),\x20','total_token_units','Claimed\x20from\x20delegation\x20','messages','noConnections','No\x20CLI\x20login\x20found.\x20Note:\x20the\x20CLI\x20is\x20currently\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20','limit','multiSelect','all','backendUrl','xhigh','Token:\x20\x20\x20\x20\x20\x20\x20\x20expires\x20','isSafeInteger','print','options','--replay-user-messages\x20needs\x20--input-format\x20stream-json.','--interop','Auth\x20comes\x20from\x20AUTH_TOKEN/TENANT_ID/ORG_ID\x20—\x20set\x20TENANT_ID\x20and\x20TENANT_SLUG\x20to\x20change\x20the\x20tenant.','login','question','log','1\x20or\x20more','oneTurn','--working-dir','tenant','the\x20JSON\x20schema',':\x20cannot\x20read\x20the\x20request\x20(','.\x20Drop\x20one\x20of\x20the\x20two.','data','Removed\x20','2781UJeWyE','typed','--input-format','interopPath','unit','package.json','No\x20models\x20available\x20for\x20this\x20product/tenant.\x0a','estimated_cost_usd','\x0aAccept\x20one\x20with:\x20delegate-cli\x20delegations\x20accept\x20<id>\x0a','160224hPpmxT','A\x20steering\x20message\x20was\x20not\x20sent:\x20','From\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Renamed\x20','refused','fields','--session','expiresAt','STATUS','No\x20turn\x20','bind','bucket','\x20--turn\x20','Unknown\x20usage\x20view:\x20','\x20(resets\x20','removeEventListener','a\x20number','startsWith','\x20of\x20session\x20','No\x20sessions\x20on\x20page\x20','name','--help','jsonSchemaPath','task','\x20—\x20sign\x20out\x20in\x20the\x20Delegate\x20app\x20to\x20clear\x20that.','byoWarning','Something\x20else','an\x20input\x20line\x20is\x20not\x20JSON','Usage:\x20delegate-cli\x20','monthly_limit_usd','localhost','results','steer','file','sessions','\x20(optional)','version','Continue\x20it\x20with:\x20delegate-cli\x20--session\x20','message','complete\x20needs\x20--json-schema\x20<file>:\x20delegate-cli\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22.','The\x20steering\x20message\x20was\x20not\x20answered:\x20its\x20turn\x20did\x20not\x20run\x20or\x20added\x20no\x20reply.','resolve','--replay-user-messages','done','\x20token\x20units)','cwd','--output-format\x20','exitCode','stringify','prompt','contextSummary','whoami','create','\x20is\x20required.\x0a','Deployment:\x20\x20\x20','initialize','\x22.\x0a','Usage:\x20delegate-cli\x20sessions\x20cancel\x20<session-id>\x20--turn\x20<turn-id>','--limit','Tokens:\x20','ASSIGNEE','--turn','\x20days.\x0a','--output-format','a\x20JSON\x20schema\x20file','Delegation\x20\x20\x20\x20','an\x20email\x20address\x20or\x20name','--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.','content','some','dismiss','pop',']\x20Backend\x20URL:\x20','from','Session:\x20\x20\x20\x20\x20\x20','rejection','--attach\x20applies\x20to\x20prompts\x20only.','--task-automation\x20applies\x20to\x20prompts\x20only.','numeric','slice','return','skipEnvCheck','replace','object','\x20completion','race','alreadyAccepted','Rubric\x20','.\x20Use\x20alpha\x20|\x20staging\x20|\x20production\x20|\x20localhost.','Tenant:\x20\x20\x20\x20\x20\x20\x20','Deleted\x20session\x20','--to','transcribe','turn_start','spawn','--cartographer\x20runs\x20the\x20','vertical','Enter\x20a\x20number\x20','waitForIdle','self-hosted\x20(Automation\x20Suite\x20/\x20Dedicated)','skip','--input-format\x20stream-json\x20needs\x20--output-format\x20stream-json:\x20the\x20steering\x20messages\x20are\x20answered\x20on\x20stdout.','structuredError','--summary','an\x20input\x20line\x20has\x20no\x20message.content,\x20a\x20string\x20or\x20a\x20list\x20of\x20text\x20blocks','padEnd','runnerUrl','page','turnId','\x20(Delegate\x20desktop\x20app\x20fallback)','\x20\x22<prompt>\x22\x0a','\x20\x20TITLE\x0a','SIGINT','--no-memory','from\x201\x20to\x20','a\x20format\x20(','keys','optional','erase','delegations\x20cancel\x20<delegation-id>','floor','--runner-url','.\x20Use\x20','stdin','\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).','Session\x20\x20\x20\x20\x20\x20\x20','Invalid\x20--input-format:\x20','\x20(stdin\x20was\x20empty)','\x20cap','fork','deepLink','\x20<file.json>,\x20or\x20-\x20to\x20read\x20stdin.','medium','Steering\x20input\x20stopped:\x20','assignedUser','--skills-path','--verbose','total_prompt_tokens','\x20PU','Already\x20answered','--url','No\x20CLI\x20login\x20to\x20switch:\x20the\x20CLI\x20is\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20','11607050UkVYIL','model','Forked\x20','buckets','delegations\x20accept\x20<delegation-id>','UIPATH_BASE_URL\x20is\x20unusable.\x20','session_consumed_pu','a\x20directory\x20path','--input-format\x20stream-json\x20reads\x20the\x20prompt\x20from\x20stdin:\x20pass\x20no\x20prompt\x20argument.','score','\x20(confidence\x20','active_days','includeSubAgents','complete\x20needs\x20a\x20prompt:\x20delegate-cli\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22,\x20or\x20-\x20to\x20read\x20stdin.','rmSync','--session\x20applies\x20to\x20the\x20`delegate-cli\x20usage`\x20summary\x20only.','pendingResults',',\x20or\x20holds\x20no\x20message\x20','isInteger','abort','stream-json','description','entries','11FnNIgF','delegations\x20delete\x20<delegation-id>','detail','delegations\x20create\x20--session\x20<id>\x20[--to\x20<email|name>]\x20[--summary\x20<text>]\x20\x22<task>\x22|-','--attach:\x20no\x20such\x20file\x20or\x20folder:\x20','\x27\x20cannot\x20be\x20read:\x20','\x20\x20(input\x20#','an\x20input\x20line\x20has\x20an\x20empty\x20message','\x20(resume\x20with\x20--session\x20','write','email','\x20prompt,\x20','stop','18690auWGxw','workingDirectory','usage','widget','--vertical','Invalid\x20--project:\x20\x22','label','\x20delegation\x20','every','Your\x20answer\x20(Enter\x20to\x20skip):\x20','end','--keep-alive','Task\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','deployment','delegations\x20complete\x20<delegation-id>\x20\x22<answer>\x22|-',').\x0a','url','activity','tenantId','\x0a🤔\x20','delegation','organizationId','now','cartographer','total_quota_pu','noComputerUse','cancel','an\x20input\x20line\x20has\x20type\x20','There\x20is\x20no\x20terminal\x20input\x20to\x20answer\x20from.','\x20or\x20your\x20own\x20answer','--json-schema','--json-schema\x20applies\x20to\x20prompts\x20and\x20to\x20`delegate-cli\x20complete`\x20only.','followUpsRenderer','padStart','concat','Usage:\x20delegate-cli\x20org-users\x20<name\x20or\x20email\x20prefix>','Enter\x20numbers\x20from\x201\x20to\x20','Unknown\x20delegations\x20action:\x20',':\x20bucket\x20number\x20(Enter\x20to\x20leave\x20out):\x20','Could\x20not\x20check\x20BYO\x20model\x20warnings:\x20','session_start','date','Input\x20closed\x20before\x20the\x20question\x20was\x20answered.','taskAutomation','A\x20steering\x20message\x20arrived\x20after\x20the\x20turn\x20ended:\x20not\x20read.\x0a','--to,\x20--summary\x20and\x20--session\x20apply\x20to\x20`delegate-cli\x20delegations\x20create`\x20only.','quiet','\x0a⚠️\x20\x20Auth\x20expired.\x20Opening\x20browser\x20to\x20re-login…\x0a','No\x20answers\x20awaiting\x20acceptance.\x0a','list','Delegated\x20','\x20-\x20','bundledSkillsPath','delete','readFileSync','push','--print','alreadyCompleted','verbose','pct_used','next','Missing\x20prompt.\x20Pass\x20it\x20as\x20an\x20argument,\x20pipe\x20it\x20via\x20stdin,\x20or\x20run\x20`delegate-cli\x20--help`.','Invalid\x20--effort:\x20','--tenant\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Switch\x20tenants\x20with:\x20delegate-cli\x20tenant\x20<name>','addEventListener','--to\x20and\x20--summary\x20apply\x20to\x20`delegate-cli\x20delegations\x20create`\x20only.','high','delegations\x20dismiss\x20<delegation-id>','Your\x20answer,\x20as\x20text\x20(the\x20CLI\x20attaches\x20no\x20files;\x20Enter\x20to\x20skip):\x20','total_sessions','--version','type','Session:\x20','completion_tokens','--days\x20applies\x20to\x20`delegate-cli\x20usage\x20activity|daily`\x20only.','stdout','Session\x20','max','\x0aUse\x20with:\x20delegate-cli\x20--model\x20<id>\x20\x22<prompt>\x22\x0a','\x20min)','26MaOxSz','Organization\x20\x20','--quiet','production','userinput','\x20(type\x20your\x20own)','\x20in\x20progress\x20on\x20session\x20','intro','from\x20','\x20(Enter\x20to\x20skip):\x20','toFixed','Numbers,\x20separated\x20by\x20commas\x20(Enter\x20to\x20skip):\x20','code','%\x20of\x20','--turn\x20applies\x20to\x20`delegate-cli\x20sessions\x20cancel`\x20only.','[saved\x20login]\x20Backend\x20URL:\x20','days','\x20PU\x20beyond\x20quota','status','response','trim','off','deleted','\x20in\x20steps\x20of\x20','period_days','isTTY','signal','):\x0a\x0a','baseUrl','--page','outputFormat','staging','unknown','auth.json','\x20\x22<answer>\x22\x0a','subFields','unknown\x20slug','--task-automation','sendMessage','Licensing:\x20\x20\x20\x20','choice','\x20days:\x20',',\x20got\x20','onEvent','findLast','confidence','input','UiPath\x20Cloud','\x20tokens\x0a','--attach','title','.\x20Share:\x20','a\x20skill\x20name','settle','test','\x0aAvailable\x20models\x20(','delegate-cli','\x20<id>','existsSync','delegations\x20pending\x20<session-id>','daily_usage','answers','origin','\x20(estimated\x20$','Accepted','value','Date\x20\x20\x20\x20\x20\x20\x20\x20Token\x20units\x20\x20Prompt\x20tokens\x20\x20Completion\x20tokens','The\x20turn\x20was\x20cancelled.','operands','8TvtsOR','pending','Switch\x20with:\x20delegate-cli\x20tenant\x20<name>\x0a','exit','--cartographer','once','destroy','--effort','30awdhFQ','\x20of\x20a\x20$','aborted','extra_pool_consumed_pu','structured','\x20vertical,\x20so\x20it\x20cannot\x20run\x20as\x20--vertical\x20','Answered','No\x20delegations.\x0a','preloadSkills','Created\x20delegation\x20','Model\x20','Structured\x20output\x20failed:\x20','--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`delegate-cli\x20sessions\x20[list]`\x20only.','--authority','\x20\x20TASK\x0a','restore','workerId','Last\x20','Organization:\x20','lockReason','replayUserMessages','limit_enabled','tool_call','error','AUTH_TOKEN_FILE\x20\x27','items','claim','verdict','\x20\x20\x20\x20BYO\x20warning:\x20','Licensing:\x20\x20\x20\x20no\x20licensing\x20quota\x20applies','\x20this\x20month','help','string','Usage:\x20delegate-cli\x20sessions\x20[list]\x20[--page\x20N]\x20[--limit\x20N]\x20[--include-subagents]','\x20needs\x20a\x20JSON\x20request:\x20delegate-cli\x20','\x20sessions\x20on\x20','Usage:\x20delegate-cli\x20sessions\x20fork\x20<id>\x20[<message-id>]','map','attachments','hide','logout','accept','check','includes','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','effort','findIndex','delegations\x20list\x20<backend-project-id>','delegations\x20show\x20<delegation-id|delegate://delegation/…>','delegations','user','--env','tokenExpiresAt','tenantName',':\x20ignored\x0a','inputFormat','\x20from\x20','transcribe:\x20cannot\x20read\x20','--worker-id','2552424RLJspW','\x20(current)','show','agent_thought','\x20PU\x20used','accessToken','\x20\x20\x20\x20Not\x20available\x20on\x20this\x20plan','isArray','daily','forEach','an\x20input\x20line\x20is\x20not\x20a\x20JSON\x20object','\x20\x20(sub-agent\x20of\x20','No\x20structured\x20output:\x20the\x20turn\x20failed\x20(','host','sourceUserEmail'];_0x285d=function(){return _0x1819ff;};return _0x285d();}function Z(_0x66e555){const _0x61b234=_0x547f85;process[_0x61b234(0x204)][_0x61b234(0x1b5)](_0x61b234(0x260)+_0x66e555[_0x61b234(0x196)]+'\x20('+_0x66e555['model_version']+_0x61b234(0x30b)+_0x66e555[_0x61b234(0x1bb)]['total_tokens']+_0x61b234(0x239));}function vn(_0x5b0e66){const _0x580c59=_0x547f85;Z(_0x5b0e66);for(let _0x2524fc of Object['keys'](_0x5b0e66[_0x580c59(0x246)])){let _0x5c3fd6=_0x5b0e66['answers'][_0x2524fc],_0x4c25e9=_0x5c3fd6[_0x580c59(0x200)]===_0x580c59(0x2b1)?'probability\x20'+_0x5c3fd6['probability']['toFixed'](0x2):_0x5c3fd6[_0x580c59(0x200)]===_0x580c59(0x231)?_0x580c59(0x2dd)+_0x5c3fd6[_0x580c59(0x231)]+_0x580c59(0x19f)+_0x5c3fd6[_0x580c59(0x236)][_0x580c59(0x213)](0x2)+')':_0x580c59(0x2a6)+_0x5c3fd6[_0x580c59(0x19e)][_0x580c59(0x213)](0x2)+_0x580c59(0x19f)+_0x5c3fd6[_0x580c59(0x236)][_0x580c59(0x213)](0x2)+')';process['stdout'][_0x580c59(0x1b5)]('\x20\x20'+_0x2524fc+':\x20'+_0x4c25e9+'\x0a');}}function An(_0x507b99){const _0x256e58=_0x547f85;Z(_0x507b99),_0x507b99[_0x256e58(0x126)]['forEach']((_0x40497d,_0xbaa090)=>{const _0x39f231=_0x256e58;process['stdout']['write']('\x20\x20'+(_0xbaa090+0x1)+'.\x20'+_0x40497d['id']+'\x20\x20'+_0x40497d[_0x39f231(0x19e)][_0x39f231(0x213)](0x3)+_0x39f231(0x1b2)+_0x40497d[_0x39f231(0x2d4)]+')\x0a');});}function En(_0x574314){const _0x4b2de4=_0x547f85;Z(_0x574314),process[_0x4b2de4(0x204)][_0x4b2de4(0x1b5)](_0x4b2de4(0x15e)+_0x574314[_0x4b2de4(0x2e3)]+'\x0a');for(let _0x4bcd80 of _0x574314[_0x4b2de4(0x126)])process[_0x4b2de4(0x204)][_0x4b2de4(0x1b5)]('\x20\x20'+_0x4bcd80['id']+':\x20'+_0x4bcd80[_0x4b2de4(0x271)]+_0x4b2de4(0x19f)+_0x4bcd80['confidence']['toFixed'](0x2)+')\x0a');}async function $n(_0xe0bb4b){const _0x5d5cfb=_0x547f85;let _0xd935cf=_0xe0bb4b[_0x5d5cfb(0x138)][_0x5d5cfb(0x21d)]();_0xd935cf||(console[_0x5d5cfb(0x26d)](_0x5d5cfb(0x302)),process[_0x5d5cfb(0x251)](0x2));let {client:_0x43ca70}=await $(_0xe0bb4b);try{let _0xf2598f=_0xd935cf==='-'?{'data':await xn(process[_0x5d5cfb(0x182)])}:_0xd935cf;m(_0xe0bb4b,await _0x2b5741(_0x43ca70,_0xf2598f,void 0x0),_0x4be45a=>{const _0x5682b5=_0x5d5cfb;process['stdout'][_0x5682b5(0x1b5)](_0x4be45a['text']+'\x0a');});}catch(_0x562e20){if(_0x3bc8c4(_0x562e20)&&(console[_0x5d5cfb(0x26d)](_0x562e20['message']),process['exit'](_0x562e20[_0x5d5cfb(0x21b)]===void 0x0?0x2:0x1)),typeof _0x562e20?.[_0x5d5cfb(0x215)]!=_0x5d5cfb(0x276))throw _0x562e20;console[_0x5d5cfb(0x26d)](_0x5d5cfb(0x28f)+_0xd935cf+'\x20('+_0x562e20[_0x5d5cfb(0x12d)]+').'),process[_0x5d5cfb(0x251)](0x2);}}async function xn(_0x2ce980){const _0x59f8a5=_0x547f85;let _0x3b6590=[];for await(let _0x357912 of _0x2ce980)_0x3b6590['push'](Buffer[_0x59f8a5(0x150)](_0x357912));return Buffer[_0x59f8a5(0x1db)](_0x3b6590);}var he=[_0x547f85(0x1ea),'pending',_0x547f85(0x293),'create','claim',_0x547f85(0x2d8),'accept',_0x547f85(0x14d),'cancel',_0x547f85(0x1ee)],ye={'list':_0x547f85(0x285),'pending':_0x547f85(0x244),'show':_0x547f85(0x286),'create':_0x547f85(0x1af),'claim':_0x547f85(0x2d1),'complete':_0x547f85(0x1c7),'accept':_0x547f85(0x199),'dismiss':_0x547f85(0x1fc),'cancel':_0x547f85(0x17e),'delete':_0x547f85(0x1ad)};async function In(_0x3ff039){const _0x1898f2=_0x547f85;let [_0x55a7b0='',_0x1a2a24='',..._0x59bcff]=_0x3ff039[_0x1898f2(0x24d)];he[_0x1898f2(0x281)](_0x55a7b0)||(console[_0x1898f2(0x26d)]((_0x55a7b0?_0x1898f2(0x1de)+_0x55a7b0+'.\x20':'')+'Use:\x20delegate-cli\x20delegations\x20'+he[_0x1898f2(0x2ac)]('\x20|\x20')+'.'),process[_0x1898f2(0x251)](0x2));let _0x21ccae=_0x55a7b0;_0x21ccae!==_0x1898f2(0x13b)&&(_0x3ff039['delegateTo']!==void 0x0||_0x3ff039[_0x1898f2(0x139)]!==void 0x0||_0x3ff039[_0x1898f2(0x2f4)]!==void 0x0)&&(console[_0x1898f2(0x26d)](_0x1898f2(0x1e6)),process['exit'](0x2));let _0x407844=(_0x21ccae===_0x1898f2(0x13b)?_0x3ff039[_0x1898f2(0x24d)][_0x1898f2(0x156)](0x1):_0x59bcff)[_0x1898f2(0x2ac)]('\x20')[_0x1898f2(0x21d)](),_0x277eae=_0x21ccae===_0x1898f2(0x13b)||_0x21ccae===_0x1898f2(0x2d8);(_0x21ccae!==_0x1898f2(0x13b)&&!_0x1a2a24||(_0x277eae?!_0x407844:_0x407844)||_0x21ccae===_0x1898f2(0x13b)&&!_0x3ff039['sessionId'])&&(console[_0x1898f2(0x26d)](_0x1898f2(0x123)+ye[_0x21ccae]),process[_0x1898f2(0x251)](0x2));let _0x148dcf=_0x277eae&&_0x407844==='-'?(await H('-',process['stdin']))[_0x1898f2(0x21d)]():_0x407844;_0x277eae&&!_0x148dcf&&(console['error'](_0x1898f2(0x123)+ye[_0x21ccae]+_0x1898f2(0x186)),process[_0x1898f2(0x251)](0x2));let {client:_0x580225}=await $(_0x3ff039);try{await Tn(_0x3ff039,_0x580225,_0x21ccae,_0x1a2a24,_0x148dcf);}catch(_0x4085a2){if(!_0x4180ba(_0x4085a2))throw _0x4085a2;console['error'](_0x4085a2[_0x1898f2(0x12d)]),process['exit'](0x1);}}async function Tn(_0x1ed59d,_0x2ebc94,_0x1aeb24,_0xb951c1,_0x113854){const _0x628bb6=_0x547f85;switch(_0x1aeb24){case _0x628bb6(0x1ea):m(_0x1ed59d,await _0x5405dd(_0x2ebc94,_0xb951c1),Un);return;case _0x628bb6(0x24f):m(_0x1ed59d,await _0x74bec2(_0x2ebc94,_0xb951c1),_0x10834f=>{const _0x58dd37=_0x628bb6;_0x10834f['delegation']&&process[_0x58dd37(0x204)][_0x58dd37(0x1b5)](_0x58dd37(0x30d)+_0x10834f[_0x58dd37(0x1cd)]['id']+'\x20('+_0x10834f[_0x58dd37(0x1cd)][_0x58dd37(0x21b)]+_0x58dd37(0x1c8)),_0x10834f[_0x58dd37(0x1a5)][_0x58dd37(0x2cf)]===0x0&&process['stderr'][_0x58dd37(0x1b5)](_0x58dd37(0x1e9));for(let _0x22a79d of _0x10834f[_0x58dd37(0x1a5)])process['stdout'][_0x58dd37(0x1b5)]('\x0a'+_0x22a79d['id']+'\x20\x20from\x20'+(_0x22a79d[_0x58dd37(0x2ad)]??'a\x20colleague')+'\x20\x20'+(_0x22a79d[_0x58dd37(0x11e)]??'')+'\x0a'+(_0x22a79d[_0x58dd37(0x2bd)]?.[_0x58dd37(0x14b)]??'')+'\x0a');_0x10834f[_0x58dd37(0x1a5)][_0x58dd37(0x2cf)]>0x0&&process[_0x58dd37(0x2a9)][_0x58dd37(0x1b5)](_0x58dd37(0x106));});return;case _0x628bb6(0x293):m(_0x1ed59d,await _0x519530(_0x2ebc94,_0xb951c1),we);return;case'create':{let _0x1e7f9b=await _0x5ee20f(_0x2ebc94,{'sessionId':_0x1ed59d[_0x628bb6(0x2f4)],'task':_0x113854,..._0x1ed59d['contextSummary']!==void 0x0&&{'contextSummary':_0x1ed59d[_0x628bb6(0x139)]},..._0x1ed59d[_0x628bb6(0x2ca)]!==void 0x0&&{'recipient':_0x1ed59d[_0x628bb6(0x2ca)]}});m(_0x1ed59d,_0x1e7f9b,_0x8d1d22=>{const _0x32a0d6=_0x628bb6;_0x8d1d22[_0x32a0d6(0x18d)]?process[_0x32a0d6(0x204)]['write'](_0x32a0d6(0x1eb)+_0x8d1d22[_0x32a0d6(0x2b4)]+'\x20to\x20'+_0x8d1d22[_0x32a0d6(0x18d)][_0x32a0d6(0x2b8)]+'\x20<'+_0x8d1d22['assignedUser']['email']+_0x32a0d6(0x309)):process['stdout'][_0x32a0d6(0x1b5)](_0x32a0d6(0x25f)+_0x8d1d22[_0x32a0d6(0x2b4)]+_0x32a0d6(0x23c)+_0x8d1d22[_0x32a0d6(0x189)]+'\x0a');});return;}case _0x628bb6(0x270):{let _0x207401=await _0x1778c9(_0x2ebc94,_0xb951c1);m(_0x1ed59d,_0x207401,_0x3ff405=>{const _0x4074d1=_0x628bb6;we(_0x3ff405),process['stdout'][_0x4074d1(0x1b5)](_0x4074d1(0x184)+_0x3ff405[_0x4074d1(0x2f4)]+'\x0a'),process[_0x4074d1(0x2a9)][_0x4074d1(0x1b5)](_0x4074d1(0x2f6)+_0x3ff405[_0x4074d1(0x2f4)]+'\x20\x22<prompt>\x22\x0aAnswer\x20with:\x20delegate-cli\x20delegations\x20complete\x20'+_0x3ff405[_0x4074d1(0x2b4)]+_0x4074d1(0x22b));});return;}case _0x628bb6(0x2d8):{let {alreadyCompleted:_0xcea2ce}=await _0x547f91(_0x2ebc94,_0xb951c1,{'content':_0x113854});m(_0x1ed59d,{'delegationId':_0xb951c1,'alreadyCompleted':_0xcea2ce},_0x4cd013=>{const _0x5884c4=_0x628bb6;process['stdout'][_0x5884c4(0x1b5)]((_0x4cd013[_0x5884c4(0x1f2)]?_0x5884c4(0x192):_0x5884c4(0x25c))+_0x5884c4(0x1c0)+_0x4cd013[_0x5884c4(0x2b4)]+'.\x0a');});return;}case _0x628bb6(0x27f):{let _0x305411=await _0x5389bf(_0x2ebc94,_0xb951c1);m(_0x1ed59d,{'delegationId':_0xb951c1,..._0x305411},_0x507ba1=>{const _0x289ab4=_0x628bb6;process[_0x289ab4(0x204)][_0x289ab4(0x1b5)]((_0x507ba1[_0x289ab4(0x15d)]?'Already\x20accepted':_0x289ab4(0x249))+_0x289ab4(0x1c0)+_0x507ba1[_0x289ab4(0x2b4)]+'.\x0a');});return;}default:{let _0x23e21d={'dismiss':_0x184353,'cancel':_0x79350,'delete':_0x14e9f9}[_0x1aeb24];await _0x23e21d(_0x2ebc94,_0xb951c1);let _0x17fe1a={'dismiss':'dismissed','cancel':'cancelled','delete':_0x628bb6(0x21f)}[_0x1aeb24];m(_0x1ed59d,{'delegationId':_0xb951c1,[_0x17fe1a]:!0x0},()=>{const _0x34f48d=_0x628bb6;process[_0x34f48d(0x204)][_0x34f48d(0x1b5)](''+_0x17fe1a[0x0]['toUpperCase']()+_0x17fe1a[_0x34f48d(0x156)](0x1)+'\x20delegation\x20'+_0xb951c1+'.\x0a');});}}}function Un(_0x4def7e){const _0x3fcb2c=_0x547f85;if(_0x4def7e[_0x3fcb2c(0x2cf)]===0x0){process['stderr'][_0x3fcb2c(0x1b5)](_0x3fcb2c(0x25d));return;}process[_0x3fcb2c(0x204)][_0x3fcb2c(0x1b5)]('ID'[_0x3fcb2c(0x170)](0x24)+'\x20\x20'+_0x3fcb2c(0x10f)['padEnd'](0x9)+'\x20\x20'+_0x3fcb2c(0x143)['padEnd'](0x18)+_0x3fcb2c(0x264));for(let _0x13cfbc of _0x4def7e)process['stdout'][_0x3fcb2c(0x1b5)](_0x13cfbc['id']['padEnd'](0x24)+'\x20\x20'+_0x13cfbc['status'][_0x3fcb2c(0x170)](0x9)+'\x20\x20'+(_0x13cfbc[_0x3fcb2c(0x2ad)]??'-')[_0x3fcb2c(0x170)](0x18)+'\x20\x20'+(_0x13cfbc[_0x3fcb2c(0x11e)]??'')+'\x0a');}function we(_0x4c56f2){const _0x55e7e0=_0x547f85;process[_0x55e7e0(0x204)][_0x55e7e0(0x1b5)](_0x55e7e0(0x109)+(_0x4c56f2[_0x55e7e0(0x29f)]??'-')+'\x0a'),_0x4c56f2[_0x55e7e0(0x301)]&&process[_0x55e7e0(0x204)][_0x55e7e0(0x1b5)]('Session\x20\x20\x20\x20\x20\x20\x20'+_0x4c56f2['sourceTitle']+'\x0a'),process[_0x55e7e0(0x204)][_0x55e7e0(0x1b5)](_0x55e7e0(0x1c5)+(_0x4c56f2['task']??'-')+'\x0a'),_0x4c56f2[_0x55e7e0(0x139)]&&process[_0x55e7e0(0x204)][_0x55e7e0(0x1b5)]('\x0a'+_0x4c56f2[_0x55e7e0(0x139)]+'\x0a\x0a');}async function Dn(_0x21ce96){const _0x1a5aa1=_0x547f85;_0x21ce96[_0x1a5aa1(0x138)][_0x1a5aa1(0x21d)]()||(console['error'](_0x1a5aa1(0x1dc)),process[_0x1a5aa1(0x251)](0x2));let {client:_0x24f29e}=await $(_0x21ce96),_0x5d2779;try{_0x5d2779=await _0x5e402f(_0x24f29e,_0x21ce96[_0x1a5aa1(0x138)]);}catch(_0x33e9d1){if(!_0x4180ba(_0x33e9d1))throw _0x33e9d1;console[_0x1a5aa1(0x26d)](_0x33e9d1[_0x1a5aa1(0x12d)]),process[_0x1a5aa1(0x251)](0x1);}m(_0x21ce96,_0x5d2779,_0x121d1e=>{const _0x3f37dc=_0x1a5aa1;_0x121d1e[_0x3f37dc(0x2cf)]===0x0&&process[_0x3f37dc(0x2a9)][_0x3f37dc(0x1b5)]('No\x20one\x20matches\x20\x22'+_0x21ce96['prompt'][_0x3f37dc(0x21d)]()+_0x3f37dc(0x13f));for(let _0x4c5c24 of _0x121d1e)process[_0x3f37dc(0x204)]['write'](_0x4c5c24[_0x3f37dc(0x1b6)][_0x3f37dc(0x170)](0x20)+'\x20\x20'+_0x4c5c24[_0x3f37dc(0x2b8)]+'\x0a');});}async function Nn(_0x42c129){const _0xadd6cd=_0x547f85;_0x42c129[_0xadd6cd(0x2b5)]===_0xadd6cd(0x125)&&(console['error'](_0xadd6cd(0x2d0)),process[_0xadd6cd(0x251)](0x2));let _0x271b5f=G(_0x4786cd()),_0x324f8f=_0x42c129['skipEnvCheck'];if(_0x42c129[_0xadd6cd(0x2b5)]){let _0x241a1e=_0x42c129['env'];await _0x28e205({'env':_0x241a1e,'tenant':_0x42c129['tenant']??Q(_0x271b5f,_0x4c4191[_0x241a1e]),'skipEnvCheck':_0x324f8f});return;}let _0x247f9a=_0x42c129[_0xadd6cd(0x1c9)]??Ue();if(_0x247f9a){await _0x28e205({'baseUrl':_0x247f9a,'tenant':_0x42c129[_0xadd6cd(0x323)]??Q(_0x271b5f,_0x247f9a),'skipEnvCheck':_0x324f8f});return;}if(_0x271b5f?.[_0xadd6cd(0x225)]){await _0x28e205({'baseUrl':_0x271b5f[_0xadd6cd(0x225)],'tenant':_0x42c129[_0xadd6cd(0x323)]??_0x271b5f['tenantName'],'skipEnvCheck':_0x324f8f});return;}console[_0xadd6cd(0x26d)](_0xadd6cd(0x282)),process['exit'](0x2);}function Q(_0x5ca9fb,_0x1d39bd){const _0x846b13=_0x547f85;return _0x5ca9fb?.[_0x846b13(0x225)]&&_n(_0x5ca9fb[_0x846b13(0x225)],_0x1d39bd)?_0x5ca9fb['tenantName']:void 0x0;}function _n(_0x507038,_0x9bdba1){const _0x4d70d2=_0x547f85;try{return new URL(_0x507038)[_0x4d70d2(0x247)]===new URL(_0x9bdba1)[_0x4d70d2(0x247)];}catch{return!0x1;}}async function Rn(_0x30ce48){const _0x4ad506=_0x547f85;Y()&&(console['error'](_0x4ad506(0x31c)),process[_0x4ad506(0x251)](0x2));let _0x2f3d05=await _0x11c8eb();if(_0x2f3d05||(console['error'](Pn()),process[_0x4ad506(0x251)](0x2)),_0x30ce48[_0x4ad506(0x21d)]()){let _0x3cc693=await _0x3677fb(_0x2f3d05,_0x30ce48);_0x5cd4fe(_0x3cc693)||(console[_0x4ad506(0x26d)]('Tenant\x20not\x20switched:\x20could\x20not\x20write\x20'+_0x4786cd()+';\x20the\x20saved\x20login\x20still\x20uses\x20'+_0x2f3d05['tenantName']+'.'),process[_0x4ad506(0x251)](0x1)),console[_0x4ad506(0x31f)]('Tenant:\x20'+_0x3cc693['tenantName']+'\x20('+_0x3cc693[_0x4ad506(0x1cb)]+_0x4ad506(0x304)+_0x4786cd());return;}On(await _0x2700ea(_0x2f3d05),_0x2f3d05);}function Pn(){const _0x4194c5=_0x547f85;if(_0x1e7393[_0x4194c5(0x243)](_0x4786cd()))return'The\x20saved\x20CLI\x20login\x20could\x20not\x20be\x20refreshed.\x20Run\x20`delegate-cli\x20login`\x20again.';let _0x484daa=z();return G(_0x484daa)?_0x4194c5(0x194)+_0x484daa+',\x20whose\x20tenant\x20is\x20chosen\x20in\x20the\x20app.\x20Run\x20`delegate-cli\x20login\x20--env\x20<env>`\x20for\x20a\x20CLI\x20login\x20of\x20your\x20own.':'No\x20CLI\x20login\x20found.\x20Run\x20`delegate-cli\x20login\x20--env\x20<alpha|staging|production>`\x20first.';}function On(_0x194a2d,_0x55ab89){const _0x88c1ce=_0x547f85;let _0x1de993=_0x194a2d[_0x88c1ce(0x27b)](_0x3cd531=>_0x3cd531['id']===_0x55ab89[_0x88c1ce(0x1cb)]?'*\x20'+_0x3cd531[_0x88c1ce(0x11b)]+_0x88c1ce(0x292):'\x20\x20'+_0x3cd531[_0x88c1ce(0x11b)]);process[_0x88c1ce(0x204)][_0x88c1ce(0x1b5)](_0x88c1ce(0x305)+(_0x55ab89[_0x88c1ce(0x2a1)]??_0x55ab89[_0x88c1ce(0x1ce)])+':\x0a'+_0x1de993['join']('\x0a')+'\x0a'),_0x194a2d[_0x88c1ce(0x2cf)]>0x1&&process[_0x88c1ce(0x204)]['write'](_0x88c1ce(0x250));}function Ln(_0x29753e){const _0x1044c8=_0x547f85;return _0x29753e?.[_0x1044c8(0x21c)]?.['status']===0x191||/401/[_0x1044c8(0x23f)](String(_0x29753e?.[_0x1044c8(0x12d)]??''));}var w={'lastType':null,'quiet':!0x1},_e=_0x4ecc36=>{const _0x1bfcb6=_0x547f85;switch(_0x4ecc36[_0x1bfcb6(0x200)]){case _0x1bfcb6(0x1e1):_0x4ecc36[_0x1bfcb6(0x2f4)]&&_0x4ecc36['sessionId']!==w[_0x1bfcb6(0x2f4)]&&(process[_0x1bfcb6(0x2a9)]['write'](_0x1bfcb6(0x201)+_0x4ecc36[_0x1bfcb6(0x2f4)]+_0x1bfcb6(0x1b4)+_0x4ecc36[_0x1bfcb6(0x2f4)]+')\x0a'),w[_0x1bfcb6(0x2f4)]=_0x4ecc36[_0x1bfcb6(0x2f4)]);break;case _0x1bfcb6(0x164):_0x4ecc36['turnId']&&_0x4ecc36[_0x1bfcb6(0x173)]!==w[_0x1bfcb6(0x173)]&&(w[_0x1bfcb6(0x2e9)]!==null&&process[_0x1bfcb6(0x2a9)][_0x1bfcb6(0x1b5)]('\x0a'),process[_0x1bfcb6(0x2a9)][_0x1bfcb6(0x1b5)](_0x1bfcb6(0x2a3)+_0x4ecc36['turnId']+_0x1bfcb6(0x2c9)+_0x4ecc36[_0x1bfcb6(0x2f4)]+_0x1bfcb6(0x113)+_0x4ecc36['turnId']+')\x0a'),w[_0x1bfcb6(0x173)]=_0x4ecc36[_0x1bfcb6(0x173)],w[_0x1bfcb6(0x2e9)]=_0x1bfcb6(0x164));break;case _0x1bfcb6(0x2ee):_0x4ecc36[_0x1bfcb6(0x14b)]&&!w[_0x1bfcb6(0x1e7)]&&(w[_0x1bfcb6(0x2e9)]!==_0x1bfcb6(0x2ee)&&process[_0x1bfcb6(0x2a9)]['write'](_0x1bfcb6(0x1cc)),process[_0x1bfcb6(0x2a9)][_0x1bfcb6(0x1b5)](_0x4ecc36['content']),w[_0x1bfcb6(0x2e9)]=_0x1bfcb6(0x2ee));break;case'tool_call':w[_0x1bfcb6(0x2e9)]!==null&&process['stderr']['write']('\x0a'),process[_0x1bfcb6(0x2a9)][_0x1bfcb6(0x1b5)]('🔧\x20'+(_0x4ecc36[_0x1bfcb6(0x2eb)]??_0x1bfcb6(0x2f5))+'\x0a'),w[_0x1bfcb6(0x2e9)]=_0x1bfcb6(0x26c);break;case _0x1bfcb6(0x12d):_0x4ecc36[_0x1bfcb6(0x14b)]&&(w['lastType']!==_0x1bfcb6(0x12d)&&w[_0x1bfcb6(0x2e9)]!==null&&process[_0x1bfcb6(0x204)][_0x1bfcb6(0x1b5)]('\x0a'),process[_0x1bfcb6(0x204)][_0x1bfcb6(0x1b5)](_0x4ecc36['content']),w[_0x1bfcb6(0x2e9)]='message');break;case _0x1bfcb6(0x26d):w[_0x1bfcb6(0x2e9)]!==null&&process['stderr'][_0x1bfcb6(0x1b5)]('\x0a'),process[_0x1bfcb6(0x2a9)][_0x1bfcb6(0x1b5)]('✗\x20'+(_0x4ecc36[_0x1bfcb6(0x26d)]??_0x1bfcb6(0x26d))+'\x0a'),w[_0x1bfcb6(0x2e9)]=_0x1bfcb6(0x26d);break;case _0x1bfcb6(0x132):(w[_0x1bfcb6(0x2e9)]==='message'||w[_0x1bfcb6(0x2e9)]===_0x1bfcb6(0x2ee))&&process[_0x1bfcb6(0x204)][_0x1bfcb6(0x1b5)]('\x0a'),process[_0x1bfcb6(0x2a9)][_0x1bfcb6(0x1b5)](_0x1bfcb6(0x2ce)),w[_0x1bfcb6(0x2e9)]=_0x1bfcb6(0x132);break;}};function ke(_0x4b17b6,_0x5ceb24,_0x1070ac,_0xf37a39){const _0x2ba82d=_0x547f85;let _0x552f43=_0x4b17b6[_0x2ba82d(0x196)]||process.env.MODEL;return{'backendUrl':_0x1070ac,'auth':_0x5ceb24,'enableComputerUse':!_0x4b17b6['headless']&&!_0x4b17b6['noComputerUse'],'autoSpawnInterop':!_0x4b17b6['headless'],'enableConnections':!_0x4b17b6[_0x2ba82d(0x30f)],'enableSecurity':!_0x4b17b6['noSecurity'],'keepInteropAlive':_0x4b17b6[_0x2ba82d(0x307)],..._0xf37a39[_0x2ba82d(0x321)]?{'enableBackgroundCommands':!0x1}:{},..._0x4b17b6[_0x2ba82d(0x303)]?{'enableMemory':!0x1}:{},..._0x4b17b6['taskAutomation']?{'enableTaskAutomation':!0x0}:{},..._0x4b17b6[_0x2ba82d(0x25e)]['length']>0x0?{'preloadSkills':_0x4b17b6['preloadSkills']}:{},..._0x552f43?{'model':_0x552f43}:{},..._0x4b17b6[_0x2ba82d(0x2a4)]?{'projectId':_0x4b17b6['projectId']}:{},..._0x4b17b6['vertical']?{'vertical':_0x4b17b6[_0x2ba82d(0x167)]}:{},..._0x4b17b6['workingDirectory']?{'workingDirectory':_0x4b17b6[_0x2ba82d(0x1ba)]}:{},..._0x4b17b6[_0x2ba82d(0x1ed)]?{'bundledSkillsPath':_0x4b17b6[_0x2ba82d(0x1ed)]}:{},..._0x4b17b6['effort']?{'effort':_0x4b17b6[_0x2ba82d(0x283)]}:{},..._0x4b17b6[_0x2ba82d(0x2f4)]?{'sessionId':_0x4b17b6[_0x2ba82d(0x2f4)]}:{},..._0x4b17b6[_0x2ba82d(0x1f3)]?{'verbose':!0x0}:{}};}async function Cn(_0x468d58){const _0x2e05e5=_0x547f85;let _0x2ac877=_0x468d58[_0x2e05e5(0x227)]!=='text',_0x33ebaf=_0x468d58['jsonSchemaPath']===void 0x0?null:Ne(_0x468d58[_0x2e05e5(0x11d)],_0x2e05e5(0x241)),_0x27b0b9=!_0x2ac877&&!_0x33ebaf&&!_0x468d58[_0x2e05e5(0x318)]&&_0x468d58[_0x2e05e5(0x138)]!=='-'&&!!process[_0x2e05e5(0x182)][_0x2e05e5(0x222)]&&!!process['stdout']['isTTY'],_0x29b8dd=_0x468d58[_0x2e05e5(0x28d)]===_0x2e05e5(0x1a9)?re(process[_0x2e05e5(0x182)],_0x4ac7f1=>{const _0x3b7885=_0x2e05e5;process[_0x3b7885(0x2a9)][_0x3b7885(0x1b5)](_0x4ac7f1['message']+_0x3b7885(0x28c));}):null,_0x13e9a9=_0x29b8dd?(await _0x29b8dd[_0x2e05e5(0x1f5)]())[_0x2e05e5(0x24a)]:void 0x0,_0x1d1c77=_0x29b8dd?_0x13e9a9?.[_0x2e05e5(0x2f3)]??'':_0x27b0b9?_0x468d58[_0x2e05e5(0x138)][_0x2e05e5(0x21d)]():await H(_0x468d58[_0x2e05e5(0x138)],process[_0x2e05e5(0x182)]);if(!_0x27b0b9&&!_0x1d1c77&&(console['error'](_0x2e05e5(0x1f6)),process[_0x2e05e5(0x251)](0x2)),!_0x2ac877){await be(_0x468d58,_0x1d1c77,_0x27b0b9,null,_0x33ebaf,null);return;}let _0x3fc220=!0x1,_0x26d80d=_0x365590=>{const _0x1fd05c=_0x2e05e5;_0x3fc220=!0x0,L(_0x5b6371(_0x365590)),(_0x365590[_0x1fd05c(0x2c8)]||_0x365590['structuredError'])&&(process[_0x1fd05c(0x136)]=0x1);},_0x19c8b4=Date[_0x2e05e5(0x1cf)]();try{await be(_0x468d58,_0x1d1c77,!0x1,_0x26d80d,_0x33ebaf,_0x29b8dd?{'messages':_0x29b8dd,'first':_0x13e9a9,'close':()=>{const _0x487893=_0x2e05e5;process[_0x487893(0x182)][_0x487893(0x2a0)]();}}:null);}catch(_0xb5e7eb){if(_0x3fc220)throw _0xb5e7eb;process[_0x2e05e5(0x2a9)][_0x2e05e5(0x1b5)]((_0xb5e7eb instanceof Error?_0xb5e7eb[_0x2e05e5(0x2db)]??_0xb5e7eb['message']:String(_0xb5e7eb))+'\x0a'),_0x26d80d(new _0x3f7080(_0x19c8b4)['finish']({'endedAtMs':Date[_0x2e05e5(0x1cf)](),'usage':[],'error':_0xb5e7eb}));}finally{_0x29b8dd&&(process[_0x2e05e5(0x182)][_0x2e05e5(0x2a0)](),_0x29b8dd[_0x2e05e5(0x157)](void 0x0));}}async function be(_0x28fbee,_0x15faa5,_0x37d5e3,_0x47b8e4,_0x286517,_0x34c7e8){const _0x361997=_0x547f85;w={'lastType':null,'quiet':_0x28fbee[_0x361997(0x1e7)]};let _0x207e7e=new Set(),_0x4da068,_0x103daa=_0x34eed3=>{const _0x401f2d=_0x361997;(!_0x47b8e4||_0x34eed3[_0x401f2d(0x200)]==='session_start'||_0x34eed3[_0x401f2d(0x200)]===_0x401f2d(0x164))&&(_0x4da068??_e)(_0x34eed3);for(let _0xf9a978 of _0x207e7e)_0xf9a978(_0x34eed3);},_0x3ad19d=await V(),_0x40f3ac=new _0x16d6e8();_0x40f3ac['onEvent'](_0x103daa);let _0x113560=_0x1805bb(_0x28fbee[_0x361997(0x2b5)],_0x3ad19d,_0x28fbee['backendUrl']);X(_0x28fbee[_0x361997(0x2b5)],_0x28fbee[_0x361997(0x314)],_0x113560);let _0x2dcfc6={'input':null},_0x35370f=_0x37d5e3?ne(()=>_0x2dcfc6[_0x361997(0x237)],_0x59710f=>{const _0x543a38=_0x361997;process[_0x543a38(0x2a9)][_0x543a38(0x1b5)](_0x59710f);}):null,_0x5dfeb6=_0x582639=>_0x35370f?{..._0x582639,'askUser':_0x35370f}:_0x582639,_0x8a6d65=_0x5dfeb6(ke(_0x28fbee,_0x3ad19d,_0x113560,{'oneTurn':!_0x37d5e3})),_0x534f0d=!0x1,_0x1c6342=!0x1,_0x334fcc,_0x14b8a7=()=>_0x334fcc??=_0x40f3ac[_0x361997(0x254)](),_0x44d733=()=>{const _0x17a160=_0x361997;_0x1c6342&&process[_0x17a160(0x251)](0x82),_0x1c6342=!0x0,process[_0x17a160(0x2a9)]['write']('\x0aStopping…\x20(Ctrl+C\x20again\x20to\x20force\x20exit)\x0a'),_0x534f0d&&_0x40f3ac['cancel']()[_0x17a160(0x2cc)](_0x5a9007=>console[_0x17a160(0x26d)](_0x5a9007))['then'](_0x14b8a7)['then'](()=>process[_0x17a160(0x251)](0x82),_0xffe70=>{const _0x29a222=_0x17a160;console[_0x29a222(0x26d)](_0xffe70),process[_0x29a222(0x251)](0x82);});};process['on'](_0x361997(0x177),_0x44d733);let _0x1f2d6b=_0x28fbee[_0x361997(0x27c)],_0x4634aa=async _0x4598f8=>{const _0xd876e4=_0x361997;let _0x58adac=_0x1f2d6b;_0x1f2d6b=[];let _0xe62dca=()=>_0x40f3ac[_0xd876e4(0x22f)](_0x4598f8,{'attachments':_0x58adac});try{return await _0xe62dca();}catch(_0xdac511){if(_0x1c6342||!Ln(_0xdac511)||!process[_0xd876e4(0x182)][_0xd876e4(0x222)]||_0x28fbee[_0xd876e4(0x2b5)]===_0xd876e4(0x125)||!(_0x28fbee[_0xd876e4(0x2b5)]||_0x3ad19d['baseUrl']))throw _0xdac511;process['stderr'][_0xd876e4(0x1b5)](_0xd876e4(0x1e8));let _0x2e2c91=_0x40f3ac[_0xd876e4(0x2ae)]()??_0x28fbee[_0xd876e4(0x2f4)],_0x4cad83=await _0x28e205(_0x28fbee[_0xd876e4(0x2b5)]?{'env':_0x28fbee[_0xd876e4(0x2b5)],'tenant':Q(_0x3ad19d,_0x4c4191[_0x28fbee[_0xd876e4(0x2b5)]]),'skipEnvCheck':!0x0}:{'baseUrl':_0x3ad19d[_0xd876e4(0x225)],'tenant':_0x3ad19d[_0xd876e4(0x28b)],'skipEnvCheck':!0x0}),_0x41812f={'text':'','failed':!0x1,'sessionId':_0x2e2c91};return _0x1c6342||(_0x534f0d=!0x1,await _0x14b8a7(),_0x1c6342)?_0x41812f:(_0x40f3ac=new _0x16d6e8(),_0x334fcc=void 0x0,_0x40f3ac[_0xd876e4(0x234)](_0x103daa),_0x3ad19d=_0x4cad83,await _0x40f3ac[_0xd876e4(0x13e)]({..._0x5dfeb6(ke(_0x28fbee,_0x3ad19d,_0x113560,{'oneTurn':!_0x37d5e3})),..._0x2e2c91?{'sessionId':_0x2e2c91}:{}}),_0x534f0d=!0x0,_0x1c6342?_0x41812f:_0xe62dca());}};try{if(await _0x40f3ac[_0x361997(0x13e)](_0x8a6d65),_0x534f0d=!0x0,_0x1c6342)return;if(_0x37d5e3)await jn({'prompt':_0x15faa5,'sendMessage':_0x4634aa,'onSigint':_0x44d733,'setAnswerInput':_0x1fc535=>{const _0x448515=_0x361997;_0x2dcfc6[_0x448515(0x237)]=_0x1fc535;},'registerEventPrinter':_0x33b230=>(_0x4da068=_0x33b230,()=>{_0x4da068=void 0x0;})});else{if(_0x47b8e4||_0x286517){let _0x5a8488=_0x28fbee[_0x361997(0x227)]===_0x361997(0x1a9)?_0xa1b419=>L(_0x5438bb(_0xa1b419)):()=>{},_0x139051=_0x34c7e8?ie({'input':_0x34c7e8,'getAgent':()=>_0x40f3ac,'replay':_0x28fbee[_0x361997(0x26a)],'onEvent':_0x5734f5=>(_0x207e7e['add'](_0x5734f5),()=>{const _0x435f46=_0x361997;_0x207e7e[_0x435f46(0x1ee)](_0x5734f5);}),'write':L,'isRunStopNotice':_0x3a976b,'actionableErrorText':_0x31a1ba,'warn':_0xb212cf=>{const _0x2df4bf=_0x361997;process[_0x2df4bf(0x2a9)][_0x2df4bf(0x1b5)](_0xb212cf);}}):null,_0x42a4a3=await _0xfb3472({'onEvent':_0x5ff3db=>(_0x207e7e['add'](_0x5ff3db),()=>{const _0x42ce88=_0x361997;_0x207e7e[_0x42ce88(0x1ee)](_0x5ff3db);}),'sendMessage':async _0x4017a3=>{const _0x19df08=_0x361997;try{let _0x5830ff=await _0x4634aa(_0x4017a3);return _0x139051?await _0x139051[_0x19df08(0x23e)](_0x5830ff):_0x5830ff;}finally{_0x139051?.[_0x19df08(0x1b8)]();}},'getSessionId':()=>_0x40f3ac[_0x361997(0x2ae)](),'getTurnUsageHistory':_0x27fae2=>_0x40f3ac['getTurnUsageHistory'](_0x27fae2),'complete':_0x4390e4=>_0x40f3ac[_0x361997(0x2d8)](_0x4390e4)},_0x15faa5,void 0x0,_0x5a8488,_0x286517?{'outputSchema':_0x286517}:void 0x0);_0x47b8e4?_0x47b8e4(_0x42a4a3):Fn(_0x42a4a3);}else await _0x4634aa(_0x15faa5);}}catch(_0x28a596){if(!_0x1c6342)throw _0x28a596;}finally{try{await _0x14b8a7();}finally{process['off'](_0x361997(0x177),_0x44d733),_0x1c6342&&(process[_0x361997(0x136)]=0x82);}}}function Fn(_0x299442){const _0x1f3e8b=_0x547f85;_0x299442['structuredError']?(console[_0x1f3e8b(0x26d)](_0x1f3e8b(0x261)+_0x299442[_0x1f3e8b(0x16d)][_0x1f3e8b(0x12d)]),process['exitCode']=0x1):_0x299442[_0x1f3e8b(0x2c8)]?(console[_0x1f3e8b(0x26d)](_0x1f3e8b(0x29d)+_0x299442[_0x1f3e8b(0x26d)]+').'),process[_0x1f3e8b(0x136)]=0x1):process[_0x1f3e8b(0x204)][_0x1f3e8b(0x1b5)](JSON['stringify'](_0x299442[_0x1f3e8b(0x25a)],null,0x2)+'\x0a');}function Mn(_0xd8dfb3,_0x1688b4){const _0x55cae9=_0x547f85;let _0x11d33a=process['stdout'][_0x55cae9(0x1b5)][_0x55cae9(0x111)](process[_0x55cae9(0x204)]),_0x43f941=!0x1;return process[_0x55cae9(0x204)][_0x55cae9(0x1b5)]=(..._0x57dba3)=>{const _0x2a505f=_0x55cae9;if(!_0x43f941)return _0x11d33a(..._0x57dba3);_0x4d3364(_0x1688b4,0x0),_0x5f03f3(_0x1688b4,0x0);let _0xe4cb69=_0x11d33a(..._0x57dba3);return _0xd8dfb3[_0x2a505f(0x138)](!0x0),_0xe4cb69;},{'show':()=>{const _0x3d500b=_0x55cae9;_0x43f941=!0x0,_0xd8dfb3[_0x3d500b(0x138)]();},'hide':()=>{_0x43f941=!0x1;},'erase':()=>{_0x43f941&&(_0x4d3364(_0x1688b4,0x0),_0x5f03f3(_0x1688b4,0x0)),_0x43f941=!0x1;},'restore':()=>{const _0x352d3e=_0x55cae9;_0x43f941=!0x1,process['stdout'][_0x352d3e(0x1b5)]=_0x11d33a;}};}async function jn({prompt:_0x29f9f6,sendMessage:_0x39a8e1,onSigint:_0x49fec4,setAnswerInput:_0x4fe4e5,registerEventPrinter:_0x2442ae}){const _0x5f9bfb=_0x547f85;let _0x3fa9c2=_0xa0339c({'input':process[_0x5f9bfb(0x182)],'output':process[_0x5f9bfb(0x2a9)],'terminal':!0x0,'prompt':'You>\x20'}),_0x23e95e=Mn(_0x3fa9c2,process['stderr']),_0x32c0af=[],_0x4fe5f4,_0x19e884,_0x337d17,_0x129e2b=!0x1,_0x1442cc=!0x1,_0x218c56=!0x1,_0x5194ff=Promise['resolve'](),_0x41a3f7,_0x3f5126=_0x2442ae(_0x40c45b=>{const _0x9d3152=_0x5f9bfb;_0x40c45b[_0x9d3152(0x200)]===_0x9d3152(0x1e1)&&(_0x23e95e[_0x9d3152(0x17d)](),_0x5194ff=new Promise(_0x43a954=>{_0x41a3f7=_0x43a954;})),_e(_0x40c45b),_0x40c45b[_0x9d3152(0x200)]==='done'&&(_0x41a3f7?.(),_0x41a3f7=void 0x0,!_0x218c56&&!_0x129e2b&&_0x23e95e['show']());}),_0x1cc477=()=>{const _0x2dbfae=_0x5f9bfb;_0x1442cc=!0x0,_0x41a3f7?.(),_0x49fec4(),_0x3fa9c2[_0x2dbfae(0x2c0)]();};_0x3fa9c2['on']('line',_0x3937c7=>{const _0x33cc84=_0x5f9bfb;_0x337d17?_0x337d17(_0x3937c7):_0x4fe5f4?_0x4fe5f4['push'](_0x3937c7):_0x19e884?_0x19e884(_0x3937c7):_0x32c0af[_0x33cc84(0x1f0)](_0x3937c7);}),_0x3fa9c2[_0x5f9bfb(0x253)](_0x5f9bfb(0x2c0),()=>{_0x129e2b=!0x0,_0x23e95e['hide'](),_0x4fe5f4&&!_0x1442cc&&_0x1cc477(),_0x19e884?.(null);});let _0x206637=()=>_0x32c0af[_0x5f9bfb(0x2cf)]>0x0?Promise[_0x5f9bfb(0x130)](_0x32c0af[_0x5f9bfb(0x2c1)]()):_0x129e2b?Promise[_0x5f9bfb(0x130)](null):new Promise(_0x34a837=>{_0x19e884=_0x55dce4=>{_0x19e884=void 0x0,_0x34a837(_0x55dce4);};});_0x4fe4e5({'readLine':(_0x34c924,_0x3836f3)=>new Promise((_0x29f269,_0x196f0e)=>{const _0x28f8f7=_0x5f9bfb;if(_0x129e2b&&!_0x4fe5f4){_0x29f269(null);return;}_0x4fe5f4??=[];let _0x299fc8=_0x4fe5f4[_0x28f8f7(0x2c1)]();if(_0x299fc8!==void 0x0){_0x29f269(_0x299fc8);return;}let _0x5401b4=()=>{const _0x52bc25=_0x28f8f7;_0x337d17=void 0x0,_0x3836f3[_0x52bc25(0x116)](_0x52bc25(0x1a8),_0x4792f0),_0x23e95e['hide'](),_0x3fa9c2[_0x52bc25(0x2a8)]('You>\x20');},_0x4792f0=()=>{const _0x1797de=_0x28f8f7;_0x5401b4(),_0x196f0e(new Error(_0x1797de(0x24c)));};_0x3836f3[_0x28f8f7(0x1f9)](_0x28f8f7(0x1a8),_0x4792f0,{'once':!0x0}),!_0x129e2b&&(_0x337d17=_0xcf1f4e=>{_0x5401b4(),_0x29f269(_0xcf1f4e);},_0x3fa9c2['setPrompt'](_0x34c924),_0x23e95e['show']());}),'endQuestions':()=>{const _0x4f0403=_0x5f9bfb;_0x4fe5f4&&_0x32c0af[_0x4f0403(0x1f0)](..._0x4fe5f4),_0x4fe5f4=void 0x0;}}),_0x3fa9c2['on']('SIGINT',_0x1cc477),process[_0x5f9bfb(0x2a9)][_0x5f9bfb(0x1b5)]('Enter\x20sends\x20a\x20message.\x20/exit\x20or\x20EOF\x20exits;\x20Ctrl+C\x20stops\x20and\x20exits.\x0a');let _0x1453ac=async _0x32a25a=>{_0x218c56=!0x0;try{await _0x39a8e1(_0x32a25a);}finally{_0x218c56=!0x1;}};try{if(_0x29f9f6&&await _0x1453ac(_0x29f9f6),_0x1442cc)return;!_0x129e2b&&!_0x41a3f7&&_0x23e95e[_0x5f9bfb(0x293)]();for(let _0x587cf1=await _0x206637();_0x587cf1!==null&&(_0x23e95e[_0x5f9bfb(0x27d)](),!_0x1442cc);_0x587cf1=await _0x206637()){let _0x1cd116=_0x587cf1[_0x5f9bfb(0x21d)]();if(_0x1cd116==='/exit')break;_0x1cd116&&await _0x1453ac(_0x1cd116),!_0x129e2b&&!_0x41a3f7&&_0x23e95e['show']();}for(;!_0x1442cc&&_0x41a3f7;)await _0x5194ff;}finally{_0x4fe4e5(null),_0x3f5126(),_0x23e95e[_0x5f9bfb(0x265)](),_0x3fa9c2[_0x5f9bfb(0x21e)](_0x5f9bfb(0x177),_0x1cc477),_0x3fa9c2[_0x5f9bfb(0x2c0)]();}}async function Bn(){const _0x5b376d=_0x547f85;let _0x266523=Wt(process['argv']['slice'](0x2));if(_0x266523[_0x5b376d(0x227)]===_0x5b376d(0x2f3)){await Se(_0x266523);return;}let _0x4964cf=Kt();try{await Se(_0x266523);}finally{_0x4964cf();}}async function Se(_0x4fe029){const _0x3f254e=_0x547f85;if(_0x4fe029[_0x3f254e(0x275)]){Qt();return;}if(_0x4fe029[_0x3f254e(0x12b)]){console[_0x3f254e(0x31f)](qt());return;}if(_0x4fe029['subcommand']===_0x3f254e(0x31d)){await Nn(_0x4fe029);return;}if(_0x4fe029[_0x3f254e(0x2be)]==='tenant'){await Rn(_0x4fe029[_0x3f254e(0x138)]);return;}if(_0x4fe029[_0x3f254e(0x2be)]===_0x3f254e(0x27e)){await Xt();return;}if(_0x4fe029[_0x3f254e(0x2be)]===_0x3f254e(0x13a)){await Zt(_0x4fe029);return;}if(_0x4fe029['subcommand']===_0x3f254e(0x2d2)){await sn(_0x4fe029);return;}if(_0x4fe029[_0x3f254e(0x2be)]===_0x3f254e(0x280)){await pn(_0x4fe029);return;}if(_0x4fe029['subcommand']===_0x3f254e(0x129)){await rn(_0x4fe029);return;}if(_0x4fe029['subcommand']===_0x3f254e(0x1bb)){await gn(_0x4fe029);return;}if(_0x4fe029[_0x3f254e(0x2be)]===_0x3f254e(0x2b3)||_0x4fe029[_0x3f254e(0x2be)]===_0x3f254e(0x2af)||_0x4fe029[_0x3f254e(0x2be)]===_0x3f254e(0x2c6)){await kn(_0x4fe029,_0x4fe029[_0x3f254e(0x2be)]);return;}if(_0x4fe029['subcommand']===_0x3f254e(0x2d8)){await Sn(_0x4fe029);return;}if(_0x4fe029[_0x3f254e(0x2be)]===_0x3f254e(0x163)){await $n(_0x4fe029);return;}if(_0x4fe029[_0x3f254e(0x2be)]==='delegations'){await In(_0x4fe029);return;}if(_0x4fe029[_0x3f254e(0x2be)]===_0x3f254e(0x2c7)){await Dn(_0x4fe029);return;}if(_0x4fe029[_0x3f254e(0x2be)]===_0x3f254e(0x29e)){await _0x286422(_0x4fe029[_0x3f254e(0x138)],{'runnerUrl':_0x4fe029[_0x3f254e(0x171)],'backendUrl':_0x4fe029[_0x3f254e(0x314)],'interopPath':_0x4fe029[_0x3f254e(0x101)],'workerId':_0x4fe029[_0x3f254e(0x266)]});return;}if(_0x4fe029[_0x3f254e(0x2e6)]){await nn();return;}await Cn(_0x4fe029);}var Jn=process.env.NODE_ENV===_0x547f85(0x23f)||!!process.env.JEST_WORKER_ID;Jn||Bn()[_0x547f85(0x2cc)](_0x15bc65=>{const _0x53af87=_0x547f85;console[_0x53af87(0x26d)](_0x15bc65[_0x53af87(0x2db)]||_0x15bc65[_0x53af87(0x12d)]||_0x15bc65),process[_0x53af87(0x251)](0x1);});export{Gt as CARTOGRAPHER_SKILLS,pe as EFFORT_TIERS,zt as IMPLICIT_STDIN_IDLE_MS,ke as buildInitOptions,Bn as main,Wt as parseArgs,qt as readCliVersion,H as resolvePrompt,Kt as routeStdoutToStderr,m as writeCommandResult};
|
|
2
|
+
const _0x389148=_0x3d61;(function(_0x430f44,_0x56c2e3){const _0x2923fa=_0x3d61,_0x5485ae=_0x430f44();while(!![]){try{const _0x92150e=-parseInt(_0x2923fa(0x252))/0x1*(parseInt(_0x2923fa(0x16b))/0x2)+-parseInt(_0x2923fa(0x1ed))/0x3*(parseInt(_0x2923fa(0x232))/0x4)+parseInt(_0x2923fa(0x212))/0x5+-parseInt(_0x2923fa(0x166))/0x6*(-parseInt(_0x2923fa(0x1e1))/0x7)+parseInt(_0x2923fa(0x1f1))/0x8*(parseInt(_0x2923fa(0x230))/0x9)+-parseInt(_0x2923fa(0x273))/0xa*(-parseInt(_0x2923fa(0x227))/0xb)+-parseInt(_0x2923fa(0x1ac))/0xc;if(_0x92150e===_0x56c2e3)break;else _0x5485ae['push'](_0x5485ae['shift']());}catch(_0x1d6895){_0x5485ae['push'](_0x5485ae['shift']());}}}(_0x2497,0x7969d));const __dirname=import.meta.dirname;import _0x5567f6 from'fs';import _0x38b440 from'path';import{clearLine as _0x4d5227,createInterface as _0x16232b,cursorTo as _0x1e2f8c}from'node:readline';import{isOnStepGrid as _0x2a5064}from'@uipath/delegate-sdk';var C=_0x389148(0x319);function E(_0x46f591){const _0x4c523e=_0x389148;return _0x46f591[_0x4c523e(0x30a)](/\u001b\[[0-?]*[ -/]*[@-~]|\u001b\][^\u0007\u001b]*(\u0007|\u001b\\)?|\u001b./g,'')[_0x4c523e(0x30a)](/[\u0000-\u0008\u000b-\u001f\u007f-\u009f]/g,'');}function ee(_0xbcd77){const _0xc3c8df=_0x389148;return E(_0xbcd77[_0xc3c8df(0x23f)]??(_0xbcd77[_0xc3c8df(0xff)]===C?_0xc3c8df(0x229):_0xbcd77['id']));}function je(_0x566338,_0x4e54b0,_0x3630f7){const _0x448186=_0x389148;let _0x14a68f=[''+(_0x3630f7>0x1?'['+_0x4e54b0+'/'+_0x3630f7+']\x20':'')+E(_0x566338[_0x448186(0x14e)])+(_0x566338[_0x448186(0x18b)]?_0x448186(0x10e):''),E(_0x566338[_0x448186(0x1e9)])];return _0x566338[_0x448186(0x243)]===_0x448186(0x237)&&_0x566338[_0x448186(0x129)][_0x448186(0x21c)]((_0x27ad57,_0x13b31a)=>{const _0x5027af=_0x448186;let _0x93c107=_0x27ad57[_0x5027af(0xff)]===C?_0x5027af(0x2de):'',_0x3f337b=_0x27ad57[_0x5027af(0x169)]?_0x5027af(0x123)+E(_0x27ad57[_0x5027af(0x169)]):'';_0x14a68f['push']('\x20\x20'+(_0x13b31a+0x1)+'.\x20'+ee(_0x27ad57)+_0x93c107+_0x3f337b);}),_0x14a68f['join']('\x0a');}function te(_0x48de2f,_0x274bf9){const _0x1e27a7=_0x389148;let _0x3e9f35=_0x48de2f[_0x1e27a7(0x152)](/[\s,]+/)['filter'](Boolean);if(_0x3e9f35[_0x1e27a7(0x2c3)]===0x0)return null;let _0x39dfa3=_0x3e9f35['map'](_0x36dd54=>/^\d+$/[_0x1e27a7(0x12d)](_0x36dd54)?Number(_0x36dd54):NaN);return _0x39dfa3[_0x1e27a7(0x262)](_0x48851b=>!Number['isInteger'](_0x48851b)||_0x48851b<0x1||_0x48851b>_0x274bf9)?null:[...new Set(_0x39dfa3)][_0x1e27a7(0x1a2)](_0x5bc52d=>_0x5bc52d-0x1);}function Me(_0x2152d0){const _0xf90b04=_0x389148;return typeof _0x2152d0=='object'&&_0x2152d0!==null&&_0xf90b04(0x120)in _0x2152d0;}async function j(_0xd187a5,_0x5e8470,_0x4e00e2,_0x21bd1f){const _0x5d4f5f=_0x389148;for(;;){let _0x395a01=(await _0xd187a5(_0x5e8470))[_0x5d4f5f(0x266)]();if(_0x395a01==='')return;let _0x207ef4=_0x21bd1f(_0x395a01);if(!Me(_0x207ef4))return _0x207ef4;_0x4e00e2(_0x207ef4[_0x5d4f5f(0x120)]+'\x0a');}}async function Fe(_0x40395c,_0x315031,_0x5f80d1){const _0x15cf7d=_0x389148;if(_0x40395c[_0x15cf7d(0x129)][_0x15cf7d(0x2c3)]===0x0||_0x40395c[_0x15cf7d(0x129)][_0x15cf7d(0x14f)](_0x4ae613=>_0x4ae613[_0x15cf7d(0xff)]===C)){let _0x39ba83=(await _0x315031('Your\x20answer\x20(Enter\x20to\x20skip):\x20'))[_0x15cf7d(0x266)]();return _0x39ba83===''?void 0x0:{'text':_0x39ba83};}let _0x57620d=_0x40395c[_0x15cf7d(0x129)][_0x15cf7d(0x1b3)](_0x296e4c=>_0x296e4c[_0x15cf7d(0xff)]===C),_0x5c3533=_0x40395c['multiSelect']?'Numbers,\x20separated\x20by\x20commas\x20(Enter\x20to\x20skip):\x20':_0x15cf7d(0x15c)+(_0x57620d>=0x0?_0x15cf7d(0x2e4):'')+_0x15cf7d(0x130),_0x179419=await j(_0x315031,_0x5c3533,_0x5f80d1,_0x56b538=>{const _0x2bef4d=_0x15cf7d;let _0x215fb1=te(_0x56b538,_0x40395c[_0x2bef4d(0x129)][_0x2bef4d(0x2c3)]);return _0x215fb1&&(_0x40395c[_0x2bef4d(0x143)]||_0x215fb1[_0x2bef4d(0x2c3)]===0x1)?_0x215fb1:!_0x40395c[_0x2bef4d(0x143)]&&_0x57620d>=0x0?{'typed':_0x56b538}:{'refused':_0x40395c[_0x2bef4d(0x143)]?_0x2bef4d(0x2b1)+_0x40395c[_0x2bef4d(0x129)][_0x2bef4d(0x2c3)]+'.':_0x2bef4d(0x2e0)+_0x40395c[_0x2bef4d(0x129)][_0x2bef4d(0x2c3)]+'.'};});if(_0x179419===void 0x0)return;if(!Array[_0x15cf7d(0x201)](_0x179419))return{'text':_0x179419['typed']};let _0x1acf80=_0x179419[_0x15cf7d(0x1a2)](_0x430497=>_0x40395c['options'][_0x430497]['id']),_0xc2fd24=_0x1acf80[_0x15cf7d(0x2b5)](C)?await j(_0x315031,ee(_0x40395c['options'][_0x57620d])+':\x20',_0x5f80d1,_0x52b03b=>_0x52b03b):void 0x0;if(!(_0x1acf80[_0x15cf7d(0x2b5)](C)&&_0xc2fd24===void 0x0))return _0x40395c[_0x15cf7d(0x143)]?{'optionIds':_0x1acf80,..._0xc2fd24!==void 0x0?{'text':_0xc2fd24}:{}}:_0xc2fd24!==void 0x0?{'text':_0xc2fd24}:{'optionId':_0x1acf80[0x0]};}async function Be(_0xa0591c,_0x575f66,_0xeb9700){const _0x482d55=_0x389148;let _0x5827fc={};for(let _0x4738c7 of _0xa0591c[_0x482d55(0x1a7)]){let _0x4ab41c=_0x4738c7[_0x482d55(0x17f)]??_0x4738c7[_0x482d55(0x159)],_0x2f1592=_0x4738c7[_0x482d55(0x1ec)]??0x1,_0x5ce2fa=_0x4738c7['unit']?'\x20'+E(_0x4738c7[_0x482d55(0x247)]):'',_0x25f930=_0x482d55(0x1ee)+_0x4738c7['min']+_0x482d55(0x1f9)+_0x4738c7[_0x482d55(0x109)]+(_0x2f1592!==0x1?'\x20in\x20steps\x20of\x20'+_0x2f1592:''),_0x1658a1=await j(_0x575f66,E(_0x4738c7[_0x482d55(0x23f)])+'\x20['+_0x4738c7[_0x482d55(0x159)]+'-'+_0x4738c7[_0x482d55(0x109)]+_0x5ce2fa+_0x482d55(0x158)+_0x4ab41c+_0x482d55(0x30f),_0xeb9700,_0x967ee9=>{const _0xfcf0cc=_0x482d55;let _0x38f874=Number(_0x967ee9);return Number[_0xfcf0cc(0x2ca)](_0x38f874)&&_0x38f874>=_0x4738c7[_0xfcf0cc(0x159)]&&_0x38f874<=_0x4738c7[_0xfcf0cc(0x109)]&&_0x2a5064(_0x38f874,_0x4738c7[_0xfcf0cc(0x159)],_0x2f1592)?_0x38f874:{'refused':_0xfcf0cc(0x1ff)+_0x25f930+'.'};});_0x5827fc[_0x4738c7['id']]=_0x1658a1??_0x4ab41c;}return{'values':_0x5827fc};}async function He(_0x4e628a,_0x42d07d,_0x14dffe){const _0x3bc43b=_0x389148;_0x14dffe(_0x4e628a[_0x3bc43b(0x27f)]['map']((_0x3824c5,_0x88ebaf)=>'\x20\x20'+(_0x88ebaf+0x1)+'.\x20'+E(_0x3824c5['label']))['join']('\x0a')+'\x0a');let _0x1d0cb4={};for(let _0x1cfa2d of _0x4e628a[_0x3bc43b(0x222)]){let _0x442d2f=await j(_0x42d07d,E(_0x1cfa2d['label'])+_0x3bc43b(0x272),_0x14dffe,_0x3cd49f=>{const _0x465798=_0x3bc43b;let _0x597409=te(_0x3cd49f,_0x4e628a[_0x465798(0x27f)][_0x465798(0x2c3)]);return _0x597409&&_0x597409['length']===0x1?_0x597409[0x0]:{'refused':'Enter\x20one\x20number\x20from\x201\x20to\x20'+_0x4e628a[_0x465798(0x27f)][_0x465798(0x2c3)]+'.'};});if(_0x442d2f===void 0x0)continue;let _0x25d189=_0x4e628a['buckets'][_0x442d2f],_0x270fea={};for(let _0x4eba5a of _0x25d189[_0x3bc43b(0x29d)]??[]){let _0x470025='\x20\x20'+E(_0x4eba5a[_0x3bc43b(0x23f)])+(_0x4eba5a['optional']?_0x3bc43b(0x10e):'')+':\x20',_0x7d3c99=await j(_0x42d07d,_0x470025,_0x14dffe,_0x5e203b=>_0x5e203b);for(;_0x7d3c99===void 0x0&&!_0x4eba5a[_0x3bc43b(0x18b)];)_0x14dffe(E(_0x4eba5a[_0x3bc43b(0x23f)])+_0x3bc43b(0x2d9)),_0x7d3c99=await j(_0x42d07d,_0x470025,_0x14dffe,_0x54cd65=>_0x54cd65);_0x7d3c99!==void 0x0&&(_0x270fea[_0x4eba5a['id']]=_0x7d3c99);}_0x1d0cb4[_0x1cfa2d['id']]={'bucket':_0x25d189['id'],...Object[_0x3bc43b(0x25f)](_0x270fea)['length']>0x0?{'subFields':_0x270fea}:{}};}return Object[_0x3bc43b(0x25f)](_0x1d0cb4)['length']>0x0?{'assignments':_0x1d0cb4}:void 0x0;}async function Je(_0x4e0ca0,_0x53b967,_0x14b5f9){const _0xff566f=_0x389148;if(_0x4e0ca0[_0xff566f(0x243)]===_0xff566f(0x237))return Fe(_0x4e0ca0,_0x53b967,_0x14b5f9);if(_0x4e0ca0[_0xff566f(0x243)]==='numeric')return Be(_0x4e0ca0,_0x53b967,_0x14b5f9);if(_0x4e0ca0['type']===_0xff566f(0x1a4))return He(_0x4e0ca0,_0x53b967,_0x14b5f9);let _0x34500e=(await _0x53b967(_0xff566f(0x2ea)))[_0xff566f(0x266)]();return _0x34500e===''?void 0x0:{'text':_0x34500e};}function ne(_0x3db15d,_0x2b86e3){return async _0xb5b1ac=>{const _0x5e790e=_0x3d61;let _0x3f6759=_0x3db15d();if(!_0x3f6759)throw new Error('There\x20is\x20no\x20terminal\x20input\x20to\x20answer\x20from.');let _0x4b6689=async _0x4c5720=>{const _0x12aa6f=_0x3d61;if(_0xb5b1ac[_0x12aa6f(0x1d3)][_0x12aa6f(0x226)])throw new Error('The\x20turn\x20was\x20cancelled.');let _0xbeb294=await _0x3f6759[_0x12aa6f(0x106)](_0x4c5720,_0xb5b1ac[_0x12aa6f(0x1d3)]);if(_0xbeb294===null)throw new Error(_0x12aa6f(0x136));return _0xbeb294;};try{_0x2b86e3('\x0a'+(_0xb5b1ac[_0x5e790e(0x1d1)]?E(_0xb5b1ac[_0x5e790e(0x1d1)])+'\x0a':''));let _0x1719c1={};for(let [_0x3167fa,_0x4df94b]of _0xb5b1ac[_0x5e790e(0x267)][_0x5e790e(0x254)]()){_0x2b86e3('\x0a'+je(_0x4df94b,_0x3167fa+0x1,_0xb5b1ac[_0x5e790e(0x267)]['length'])+'\x0a');let _0x10ff98=await Je(_0x4df94b,_0x4b6689,_0x2b86e3);_0x10ff98!==void 0x0&&(_0x1719c1[_0x4df94b['id']]=_0x10ff98);}return{'answers':_0x1719c1};}finally{_0x3f6759[_0x5e790e(0x30b)]();}};}import{createInterface as _0x283622}from'node:readline';var F=['text',_0x389148(0x1f3)];function se(_0x1ff7b8){const _0x59e0cd=_0x389148;return F[_0x59e0cd(0x2b5)](_0x1ff7b8);}var P=class extends Error{};function We(_0x5e6f0d){const _0x51949e=_0x389148;if(typeof _0x5e6f0d=='string')return _0x5e6f0d;if(!Array[_0x51949e(0x201)](_0x5e6f0d))return;let _0x612f80=[];for(let _0x56b840 of _0x5e6f0d){if(typeof _0x56b840!='object'||_0x56b840===null)return;let {type:_0x166046,text:_0xdc0f19}=_0x56b840;if(_0x166046!=='text'||typeof _0xdc0f19!=_0x51949e(0x173))return;_0x612f80[_0x51949e(0x206)](_0xdc0f19);}return _0x612f80[_0x51949e(0x172)]('\x0a');}function Ke(_0x5b5246){const _0x5191ec=_0x389148;if(_0x5b5246[_0x5191ec(0x266)]()==='')return null;let _0x5146e1;try{_0x5146e1=JSON['parse'](_0x5b5246);}catch{throw new P(_0x5191ec(0x290));}if(typeof _0x5146e1!=_0x5191ec(0x1d6)||_0x5146e1===null)throw new P(_0x5191ec(0x216));let {type:_0x4bdc58,message:_0x2eff60,uuid:_0x5c985c}=_0x5146e1;if(_0x4bdc58!=='user')throw new P(_0x5191ec(0x1e8)+JSON['stringify'](_0x4bdc58)+',\x20not\x20\x22user\x22');let _0x31b369=We(_0x2eff60?.['content']);if(_0x31b369===void 0x0)throw new P('an\x20input\x20line\x20has\x20no\x20message.content,\x20a\x20string\x20or\x20a\x20list\x20of\x20text\x20blocks');if(_0x31b369[_0x5191ec(0x266)]()==='')throw new P(_0x5191ec(0x2e8));return{'text':_0x31b369,'uuid':typeof _0x5c985c=='string'?_0x5c985c:void 0x0};}function oe(_0x1a184d,_0x3d7d95){const _0x16872b=_0x389148;return JSON['stringify']({'type':'user','message':{'role':_0x16872b(0x22d),'content':_0x1a184d[_0x16872b(0x237)]},'session_id':_0x3d7d95,..._0x1a184d[_0x16872b(0x21f)]===void 0x0?{}:{'uuid':_0x1a184d['uuid']},'isReplay':!0x0})+'\x0a';}async function*re(_0x3c8575,_0x41bd31){const _0xf8cd8a=_0x389148;let _0x35e83e=_0x283622({'input':_0x3c8575,'crlfDelay':0x1/0x0});try{for await(let _0x19806c of _0x35e83e){let _0x33f06e;try{_0x33f06e=Ke(_0x19806c);}catch(_0x377215){if(!(_0x377215 instanceof P))throw _0x377215;_0x41bd31(_0x377215);continue;}_0x33f06e&&(yield _0x33f06e);}}finally{_0x35e83e[_0xf8cd8a(0x1be)]();}}import{BUSINESS_ANALYSIS_PRELOADED_SKILLS as _0x4b497a,DelegateAgent as _0x1702c2,cancelTurn as _0xb316d9,InteropProcess as _0xa9a5d5,complete as _0x248f15,DEFAULT_MODEL as _0x35be56,createBackendClient as _0x416340,evaluate as _0x49c324,isCompletionRequestError as _0xcb2f70,isEvaluationRequestError as _0x5e5ba7,isTranscriptionError as _0x466f6b,rerank as _0x517912,transcribe as _0x46c865,exportLivingDocument as _0x2d0ed7,saveMapVersion as _0x1d3723,shareMap as _0x217b10,verify as _0x1bc5ef,acceptDelegation as _0x33d747,cancelDelegation as _0x2793e9,claimDelegation as _0x196de5,completeDelegation as _0x1ce39f,createDelegation as _0x13c211,deleteDelegation as _0x3f4a60,dismissDelegation as _0x1939f5,getSessionDelegations as _0x570d2a,isDelegationError as _0x56b0e3,listDelegations as _0x5a3954,listOrgUsers as _0x35525e,previewDelegation as _0x25a4ac,TurnResultCollector as _0x501881,agentEventToJsonLine as _0x48dd08,describeBaseUrlRejection as _0x5f0e11,getActivitySummary as _0x116d4d,getAuthFilePath as _0x3dea55,getByoWarnings as _0x44db10,getDailyBreakdown as _0x3641fb,getLicensingSummary as _0x5d73a7,getMonthlySpending as _0x22eff0,isOutputFormat as _0x351feb,isCloudBaseUrl as _0x343d4c,isSafeProjectFolderSegment as _0x512943,listModels as _0xcf2854,listSessions as _0x12e203,getSession as _0x5a9259,renameSession as _0x1cae7b,deleteSession as _0x58df33,deleteSessionTaskLog as _0x21cfaa,forkSession as _0x33865e,isBackendRequestError as _0x15df9c,MAX_SESSION_PAGE_SIZE as _0x53567a,listTenants as _0x37da2d,loadAndRefreshAuth as _0x32efdf,loadAndRefreshSdkLogin as _0x1247f1,parsePlatformBaseUrl as _0x28340f,resolveBackendUrl as _0x48bc74,runHealthCheck as _0x3861ea,runHostCommand as _0x225326,runLoginFlow as _0x4245fd,runTurnForResult as _0x39bca5,saveAuthData as _0xf63c33,switchTenant as _0x477a89,toJsonLine as _0x34b807,ENV_TO_CLOUD as _0xe9a390,OUTPUT_FORMATS as _0x557578,isRunStopNotice as _0x3551a2,extractActionableErrorText as _0x3e2bf3}from'@uipath/delegate-sdk';function ie(_0xa37c03){const _0x45f777=_0x389148;let {input:_0xde15df,getAgent:_0x417667,replay:_0x4b29b1,onEvent:_0x72df1f,write:_0x3bc54a,warn:_0xab1b9e,isRunStopNotice:_0x2f29bc,actionableErrorText:_0xa00c8d}=_0xa37c03,_0x4359f8=0x0,_0x14d7ad=0x0,_0x275339=Promise[_0x45f777(0x22b)](),_0x4ed93b=!0x1,_0x5e38bd=()=>{},_0x5b88f2=new Promise(_0x1c7baa=>{_0x5e38bd=_0x1c7baa;}),_0x350fae=[],_0xac46c6=_0x72df1f(_0x493a4d=>{const _0x28bc6f=_0x45f777;_0x493a4d[_0x28bc6f(0x243)]===_0x28bc6f(0x197)&&(_0x5e38bd(),_0x350fae[_0x28bc6f(0x2c8)]()?.());}),_0x68329=_0x30566e=>{const _0xbc7e6=_0x45f777;_0x4b29b1&&_0x3bc54a(oe(_0x30566e,_0x417667()[_0xbc7e6(0x245)]()));},_0x416570=(async()=>{const _0x4d0fd7=_0x45f777;await _0x5b88f2;for await(let _0x4785be of _0xde15df['messages']){if(_0x4ed93b)return;_0x4359f8===0x0&&(_0x14d7ad=_0x417667()[_0x4d0fd7(0x1a0)]()[_0x4d0fd7(0x2c3)]),_0x4359f8++;let _0xe5fe3b=new Promise(_0x45ab59=>{_0x350fae['push'](()=>{_0x68329(_0x4785be),_0x45ab59();});}),_0xe9af4c=()=>{const _0x22007a=_0x4d0fd7;_0x4359f8--,_0x350fae[_0x22007a(0x2dc)]();},_0x1ad7eb=_0x417667()[_0x4d0fd7(0x148)](_0x4785be[_0x4d0fd7(0x237)]);_0x275339=_0x1ad7eb[_0x4d0fd7(0x121)](()=>{});try{await _0x1ad7eb?await Promise[_0x4d0fd7(0x242)]([_0xe5fe3b,_0x417667()['waitForIdle']()]):(_0xe9af4c(),_0xab1b9e('A\x20steering\x20message\x20arrived\x20after\x20the\x20turn\x20ended:\x20not\x20read.\x0a'));}catch(_0x594724){_0xe9af4c(),_0xab1b9e(_0x4d0fd7(0xfc)+(_0x594724 instanceof Error?_0x594724[_0x4d0fd7(0x2c9)]:String(_0x594724))+'\x0a');}}})()[_0x45f777(0x121)](_0x102e27=>{const _0x5e2959=_0x45f777;_0xab1b9e(_0x5e2959(0xf5)+(_0x102e27 instanceof Error?_0x102e27['message']:String(_0x102e27))+'\x0a');});return{'settle':async _0x217c33=>{const _0x406b61=_0x45f777;if(await _0x275339,_0x4359f8===0x0)return _0x217c33;await _0x417667()[_0x406b61(0x30d)]();for(let _0x2c3632 of _0x350fae)_0x2c3632();_0x350fae=[];let _0x2eb76d=_0x417667()[_0x406b61(0x1a0)]()[_0x406b61(0x1c3)](_0x14d7ad)[_0x406b61(0x306)](_0x3af384=>_0x3af384[_0x406b61(0x1f8)]===_0x406b61(0x22e)||_0x2f29bc(_0x3af384)||_0x3af384[_0x406b61(0x243)]==='ai'&&_0x3af384[_0x406b61(0x1f8)]!==_0x406b61(0x156)&&_0x3af384[_0x406b61(0x1f8)]!==_0x406b61(0x196)&&!!_0x3af384[_0x406b61(0x2b8)]);if(!_0x2eb76d)return{..._0x217c33,'failed':!0x0,'text':_0x406b61(0x2d6)};let _0x22bc2c=_0x2eb76d[_0x406b61(0x1f8)]===_0x406b61(0x22e);return typeof _0x2eb76d[_0x406b61(0x2b8)]!=_0x406b61(0x173)?{..._0x217c33,'failed':_0x22bc2c}:{..._0x217c33,'failed':_0x22bc2c,'text':_0x22bc2c?_0xa00c8d(_0x2eb76d[_0x406b61(0x2b8)]):_0x2eb76d['content']};},'stop':()=>{const _0x41d58d=_0x45f777;_0x4ed93b=!0x0,_0xac46c6(),_0xde15df[_0x41d58d(0x1be)]();}};}var Yt=[_0x389148(0x12e),_0x389148(0x2bf),_0x389148(0x13d),_0x389148(0x162),_0x389148(0x16d),_0x389148(0x304),_0x389148(0x23a),_0x389148(0x29b),_0x389148(0x150),_0x389148(0x296),_0x389148(0x168),_0x389148(0x19e),_0x389148(0x1d4),_0x389148(0x31b),_0x389148(0x1f6),_0x389148(0x284),_0x389148(0xf4),'org-users'],ue=['',_0x389148(0x13d),_0x389148(0x304),'check',_0x389148(0x29b),'usage',_0x389148(0x296),_0x389148(0x168),'verify',_0x389148(0x1d4),'transcribe',_0x389148(0x1f6),_0x389148(0x284),_0x389148(0xf4),'org-users'],pe=[_0x389148(0x1ca),_0x389148(0x1c1),'high','xhigh',_0x389148(0x109)],zt=_0x4b497a,B=_0x389148(0x203);function b(_0x42bab2,_0xc1d2f9,_0xcb7ad4,_0x517eff){const _0x1e39f0=_0x389148;let _0x151dbf=_0x42bab2[_0xc1d2f9];return(!_0x151dbf||_0x151dbf[_0x1e39f0(0x2c3)]>0x1&&_0x151dbf[_0x1e39f0(0x1cd)]('-'))&&(console[_0x1e39f0(0x100)](_0xcb7ad4+'\x20requires\x20'+_0x517eff+'.'),process[_0x1e39f0(0x278)](0x2)),_0x151dbf;}function K(_0x242a54,_0x2a01af,_0x4f43e0,_0x20963d){const _0x5b00cc=_0x389148;let _0x13e7b5=b(_0x242a54,_0x2a01af,_0x4f43e0,_0x5b00cc(0x142)),_0x4bd422=Number(_0x13e7b5);return(!/^\d+$/[_0x5b00cc(0x12d)](_0x13e7b5)||_0x4bd422<0x1||!Number['isSafeInteger'](_0x4bd422)||_0x20963d!==void 0x0&&_0x4bd422>_0x20963d)&&(console[_0x5b00cc(0x100)](_0x4f43e0+_0x5b00cc(0x28a)+(_0x20963d===void 0x0?_0x5b00cc(0x2ad):_0x5b00cc(0x110)+_0x20963d)+',\x20got\x20'+_0x13e7b5+'.'),process[_0x5b00cc(0x278)](0x2)),_0x4bd422;}function Vt(_0x5b0b51){const _0x55f97d=_0x389148;let _0x19841b={'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':'text','inputFormat':_0x55f97d(0x237),'replayUserMessages':!0x1,'preloadSkills':[],'attachments':[],'skipEnvCheck':!0x1,'includeSubAgents':!0x1,'operands':[],'help':!0x1,'version':!0x1};Yt[_0x55f97d(0x2b5)](_0x5b0b51[0x0])&&(_0x19841b[_0x55f97d(0x2db)]=_0x5b0b51[0x0],_0x5b0b51=_0x5b0b51[_0x55f97d(0x1c3)](0x1));let _0x58cdcc=[];for(let _0x3de42e=0x0;_0x3de42e<_0x5b0b51[_0x55f97d(0x2c3)];_0x3de42e++){let _0x59fac1=_0x5b0b51[_0x3de42e];switch(_0x59fac1){case _0x55f97d(0x2c2):case'-p':_0x19841b[_0x55f97d(0x17d)]=!0x0;break;case _0x55f97d(0x2d8):_0x19841b['keepAlive']=!0x0;break;case _0x55f97d(0x113):_0x19841b[_0x55f97d(0x26b)]=!0x0;break;case _0x55f97d(0x24f):_0x19841b[_0x55f97d(0x200)]=!0x0;break;case _0x55f97d(0x207):_0x19841b[_0x55f97d(0x128)]=!0x0;break;case'--cartographer':_0x19841b[_0x55f97d(0x203)]=!0x0,_0x19841b['noComputerUse']=!0x0,_0x19841b[_0x55f97d(0x101)]['push'](...zt);break;case _0x55f97d(0xfa):_0x19841b[_0x55f97d(0x2c0)]=!0x0;break;case _0x55f97d(0x2ed):_0x19841b[_0x55f97d(0x280)]=!0x0;break;case'--no-memory':_0x19841b[_0x55f97d(0x1eb)]=!0x0;break;case _0x55f97d(0x16f):_0x19841b['taskAutomation']=!0x0;break;case'--quiet':case'-q':_0x19841b[_0x55f97d(0x2c7)]=!0x0;break;case _0x55f97d(0x146):_0x19841b['verbose']=!0x0;break;case _0x55f97d(0x217):_0x19841b['backendUrl']=_0x5b0b51[++_0x3de42e];break;case _0x55f97d(0x167):_0x19841b[_0x55f97d(0x1a6)]=_0x5b0b51[++_0x3de42e];break;case _0x55f97d(0x1cb):_0x19841b[_0x55f97d(0x132)]=_0x5b0b51[++_0x3de42e];break;case _0x55f97d(0xf3):_0x19841b[_0x55f97d(0x118)]=_0x5b0b51[++_0x3de42e];break;case _0x55f97d(0x2bd):_0x19841b[_0x55f97d(0x155)]=_0x5b0b51[++_0x3de42e];break;case _0x55f97d(0x28e):_0x19841b['preloadSkills'][_0x55f97d(0x206)](b(_0x5b0b51,++_0x3de42e,_0x59fac1,_0x55f97d(0x1e4)));break;case _0x55f97d(0x1fe):{let _0x4aa83c=b(_0x5b0b51,++_0x3de42e,_0x59fac1,_0x55f97d(0x10b));_0x512943(_0x4aa83c)||(console[_0x55f97d(0x100)](_0x55f97d(0x175)+_0x4aa83c+_0x55f97d(0x270)),process[_0x55f97d(0x278)](0x2)),_0x19841b[_0x55f97d(0x104)]=_0x4aa83c;break;}case'--vertical':_0x19841b[_0x55f97d(0x2ec)]=b(_0x5b0b51,++_0x3de42e,_0x59fac1,_0x55f97d(0x2d4));break;case _0x55f97d(0x154):{let _0x42db0e=b(_0x5b0b51,++_0x3de42e,_0x59fac1,'a\x20format\x20('+_0x557578[_0x55f97d(0x172)](_0x55f97d(0x315))+')');_0x351feb(_0x42db0e)||(console[_0x55f97d(0x100)](_0x55f97d(0x1d5)+_0x42db0e+_0x55f97d(0x258)+_0x557578[_0x55f97d(0x172)](_0x55f97d(0x315))+'.'),process[_0x55f97d(0x278)](0x2)),_0x19841b[_0x55f97d(0x2df)]=_0x42db0e;break;}case _0x55f97d(0x17b):{let _0x56fcbf=b(_0x5b0b51,++_0x3de42e,_0x59fac1,_0x55f97d(0x122)+F['join'](_0x55f97d(0x315))+')');se(_0x56fcbf)||(console[_0x55f97d(0x100)](_0x55f97d(0x264)+_0x56fcbf+'.\x20Use\x20'+F[_0x55f97d(0x172)](_0x55f97d(0x315))+'.'),process[_0x55f97d(0x278)](0x2)),_0x19841b[_0x55f97d(0x2cb)]=_0x56fcbf;break;}case _0x55f97d(0x2b2):_0x19841b[_0x55f97d(0x134)]=!0x0;break;case'--session':_0x19841b[_0x55f97d(0x299)]=b(_0x5b0b51,++_0x3de42e,_0x59fac1,_0x55f97d(0x27b));break;case _0x55f97d(0x313):_0x19841b[_0x55f97d(0x2a9)]=K(_0x5b0b51,++_0x3de42e,_0x59fac1);break;case'--limit':_0x19841b[_0x55f97d(0x246)]=K(_0x5b0b51,++_0x3de42e,_0x59fac1,_0x53567a);break;case _0x55f97d(0x301):_0x19841b[_0x55f97d(0x157)]=!0x0;break;case _0x55f97d(0x183):_0x19841b[_0x55f97d(0x1ea)]=b(_0x5b0b51,++_0x3de42e,_0x59fac1,_0x55f97d(0x139));break;case'--attach':{let _0x129048=_0x38b440[_0x55f97d(0x22b)](process[_0x55f97d(0x231)](),b(_0x5b0b51,++_0x3de42e,_0x59fac1,_0x55f97d(0x2a7)));_0x5567f6['existsSync'](_0x129048)||(console[_0x55f97d(0x100)](_0x55f97d(0x145)+_0x129048),process['exit'](0x2)),_0x19841b[_0x55f97d(0x2f3)][_0x55f97d(0x206)](_0x129048);break;}case _0x55f97d(0x240):_0x19841b['turnId']=b(_0x5b0b51,++_0x3de42e,_0x59fac1,_0x55f97d(0x2cd));break;case _0x55f97d(0x1e6):_0x19841b['delegateTo']=b(_0x5b0b51,++_0x3de42e,_0x59fac1,_0x55f97d(0x298));break;case _0x55f97d(0x125):_0x19841b[_0x55f97d(0x2fe)]=b(_0x5b0b51,++_0x3de42e,_0x59fac1,'a\x20briefing\x20text');break;case _0x55f97d(0x2a8):_0x19841b[_0x55f97d(0x208)]=b(_0x5b0b51,++_0x3de42e,_0x59fac1,_0x55f97d(0x1cc));break;case _0x55f97d(0x1f4):_0x19841b[_0x55f97d(0x16e)]=b(_0x5b0b51,++_0x3de42e,_0x59fac1,_0x55f97d(0x185));break;case'--days':_0x19841b[_0x55f97d(0x2fc)]=K(_0x5b0b51,++_0x3de42e,_0x59fac1,0x16d);break;case'--working-dir':_0x19841b[_0x55f97d(0x29c)]=_0x38b440[_0x55f97d(0x22b)](process['cwd'](),b(_0x5b0b51,++_0x3de42e,_0x59fac1,_0x55f97d(0x2fb)));break;case _0x55f97d(0x25b):_0x19841b['bundledSkillsPath']=_0x38b440[_0x55f97d(0x22b)](process[_0x55f97d(0x231)](),b(_0x5b0b51,++_0x3de42e,_0x59fac1,_0x55f97d(0x2fb)));break;case'--effort':{let _0x2459f6=b(_0x5b0b51,++_0x3de42e,_0x59fac1,_0x55f97d(0x31d));pe[_0x55f97d(0x2b5)](_0x2459f6)||(console['error'](_0x55f97d(0x305)+_0x2459f6+_0x55f97d(0x258)+pe[_0x55f97d(0x172)]('\x20|\x20')+'.'),process[_0x55f97d(0x278)](0x2)),_0x19841b[_0x55f97d(0x2f7)]=_0x2459f6;break;}case _0x55f97d(0x1b6):{let _0x30d82e=_0x5b0b51[++_0x3de42e];(!_0x30d82e||_0x30d82e[_0x55f97d(0x1cd)]('--'))&&(console[_0x55f97d(0x100)]('--tenant\x20requires\x20a\x20tenant\x20name.'),process[_0x55f97d(0x278)](0x2)),_0x19841b[_0x55f97d(0x2bf)]=_0x30d82e;break;}case _0x55f97d(0x188):{let _0x53e7bf=_0x5b0b51[++_0x3de42e];[_0x55f97d(0x179),_0x55f97d(0x15d),_0x55f97d(0x311),_0x55f97d(0x1af)]['includes'](_0x53e7bf)||(console['error']('Invalid\x20--env:\x20'+_0x53e7bf+_0x55f97d(0x20f)),process['exit'](0x2)),_0x19841b[_0x55f97d(0x10c)]=_0x53e7bf;break;}case _0x55f97d(0x2e9):case'--authority':{let _0xf2a0d6=b(_0x5b0b51,++_0x3de42e,_0x59fac1,_0x55f97d(0x2ac)),_0x5cd687=_0x28340f(_0xf2a0d6);if(_0x5cd687['ok']===!0x1){console[_0x55f97d(0x100)](_0x5f0e11(_0xf2a0d6,_0x5cd687[_0x55f97d(0x2e7)])),process[_0x55f97d(0x278)](0x2);break;}_0x19841b['url']=_0x5cd687['baseUrl'];break;}case _0x55f97d(0x199):_0x19841b[_0x55f97d(0x178)]=!0x0;break;case'-h':case _0x55f97d(0x2f4):_0x19841b['help']=!0x0;break;case'-v':case'--version':_0x19841b[_0x55f97d(0x2e3)]=!0x0;break;default:_0x59fac1['startsWith']('--')&&(console[_0x55f97d(0x100)](_0x55f97d(0x286)+_0x59fac1),process[_0x55f97d(0x278)](0x2)),_0x58cdcc[_0x55f97d(0x206)](_0x59fac1);}}return _0x19841b[_0x55f97d(0x2bf)]!==void 0x0&&_0x19841b[_0x55f97d(0x2db)]!==_0x55f97d(0x12e)&&(console[_0x55f97d(0x100)]('--tenant\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Switch\x20tenants\x20with:\x20delegate-cli\x20tenant\x20<name>'),process[_0x55f97d(0x278)](0x2)),_0x19841b['url']!==void 0x0&&_0x19841b[_0x55f97d(0x10c)]!==void 0x0&&(console[_0x55f97d(0x100)](_0x55f97d(0x2e6)),process['exit'](0x2)),_0x19841b[_0x55f97d(0x2f2)]!==void 0x0&&_0x19841b[_0x55f97d(0x2db)]!==_0x55f97d(0x12e)&&(console[_0x55f97d(0x100)](_0x55f97d(0x2ff)),process[_0x55f97d(0x278)](0x2)),_0x19841b[_0x55f97d(0x2fc)]!==void 0x0&&_0x19841b['subcommand']!==_0x55f97d(0x150)&&(console['error'](_0x55f97d(0x131)),process[_0x55f97d(0x278)](0x2)),_0x19841b[_0x55f97d(0x1ea)]!==void 0x0&&(_0x19841b[_0x55f97d(0x2db)]!==_0x55f97d(0x1d4)&&_0x19841b['subcommand']!==''||_0x19841b[_0x55f97d(0x26b)])&&(console['error'](_0x55f97d(0x19b)),process[_0x55f97d(0x278)](0x2)),_0x19841b['attachments'][_0x55f97d(0x2c3)]>0x0&&(_0x19841b['subcommand']!==''||_0x19841b[_0x55f97d(0x26b)])&&(console[_0x55f97d(0x100)](_0x55f97d(0xfd)),process[_0x55f97d(0x278)](0x2)),_0x19841b[_0x55f97d(0x310)]&&(_0x19841b[_0x55f97d(0x2db)]!==''||_0x19841b[_0x55f97d(0x26b)])&&(console[_0x55f97d(0x100)](_0x55f97d(0x119)),process[_0x55f97d(0x278)](0x2)),_0x19841b[_0x55f97d(0x310)]&&(_0x19841b[_0x55f97d(0x200)]||_0x19841b[_0x55f97d(0x128)]||_0x19841b[_0x55f97d(0x2ec)]?.[_0x55f97d(0x266)]()===B)&&(console['error']('--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[_0x55f97d(0x278)](0x2)),_0x19841b[_0x55f97d(0x203)]&&(_0x19841b['vertical']!==void 0x0&&_0x19841b[_0x55f97d(0x2ec)][_0x55f97d(0x266)]()!==B&&(console[_0x55f97d(0x100)](_0x55f97d(0x2f1)+B+_0x55f97d(0x31a)+_0x19841b[_0x55f97d(0x2ec)]+_0x55f97d(0x18f)),process[_0x55f97d(0x278)](0x2)),_0x19841b['vertical']=B),_0x19841b[_0x55f97d(0x178)]&&_0x19841b[_0x55f97d(0x2db)]!=='login'&&(console[_0x55f97d(0x100)]('--skip-env-check\x20applies\x20to\x20`delegate-cli\x20login`\x20only.'),process[_0x55f97d(0x278)](0x2)),_0x19841b['outputFormat']!=='text'&&!ue[_0x55f97d(0x2b5)](_0x19841b[_0x55f97d(0x2db)])&&(console[_0x55f97d(0x100)](_0x55f97d(0x233)+_0x19841b['outputFormat']+'\x20applies\x20to\x20prompts\x20and\x20to\x20these\x20commands\x20only:\x20'+ue[_0x55f97d(0x17c)](Boolean)[_0x55f97d(0x172)](',\x20')+'.'),process['exit'](0x2)),(_0x19841b['inputFormat']!==_0x55f97d(0x237)||_0x19841b[_0x55f97d(0x134)])&&_0x19841b[_0x55f97d(0x2db)]!==''&&(console[_0x55f97d(0x100)](_0x55f97d(0x11f)),process[_0x55f97d(0x278)](0x2)),_0x19841b[_0x55f97d(0x134)]&&_0x19841b[_0x55f97d(0x2cb)]!==_0x55f97d(0x1f3)&&(console[_0x55f97d(0x100)](_0x55f97d(0x204)),process[_0x55f97d(0x278)](0x2)),_0x19841b['inputFormat']==='stream-json'&&_0x19841b[_0x55f97d(0x2df)]!=='stream-json'&&(console[_0x55f97d(0x100)](_0x55f97d(0x18e)),process['exit'](0x2)),(_0x19841b[_0x55f97d(0x2a9)]!==void 0x0||_0x19841b['limit']!==void 0x0||_0x19841b['includeSubAgents'])&&_0x19841b[_0x55f97d(0x2db)]!==_0x55f97d(0x29b)&&(console['error'](_0x55f97d(0x288)),process[_0x55f97d(0x278)](0x2)),(_0x19841b['delegateTo']!==void 0x0||_0x19841b[_0x55f97d(0x2fe)]!==void 0x0)&&_0x19841b['subcommand']!==_0x55f97d(0xf4)&&(console[_0x55f97d(0x100)]('--to\x20and\x20--summary\x20apply\x20to\x20`delegate-cli\x20delegations\x20create`\x20only.'),process[_0x55f97d(0x278)](0x2)),_0x19841b[_0x55f97d(0x1d9)]!==void 0x0&&_0x19841b[_0x55f97d(0x2db)]!==_0x55f97d(0x29b)&&(console[_0x55f97d(0x100)](_0x55f97d(0x30c)),process[_0x55f97d(0x278)](0x2)),(_0x19841b[_0x55f97d(0x208)]!==void 0x0||_0x19841b['mapName']!==void 0x0)&&(_0x19841b[_0x55f97d(0x2db)]!=='maps'||_0x58cdcc[0x0]!==_0x55f97d(0x1d8))&&(console[_0x55f97d(0x100)](_0x55f97d(0x211)),process[_0x55f97d(0x278)](0x2)),_0x19841b['preloadSkills']=[...new Set(_0x19841b[_0x55f97d(0x101)])],_0x19841b['operands']=_0x58cdcc,_0x19841b['prompt']=_0x58cdcc[_0x55f97d(0x172)]('\x20'),_0x19841b[_0x55f97d(0x2cb)]===_0x55f97d(0x1f3)&&_0x19841b[_0x55f97d(0x13a)]!==''&&(console['error']('--input-format\x20stream-json\x20reads\x20the\x20prompt\x20from\x20stdin:\x20pass\x20no\x20prompt\x20argument.'),process['exit'](0x2)),_0x19841b;}var L=_0x35234b=>{const _0x5ea6bf=_0x389148;process[_0x5ea6bf(0x2aa)]['write'](_0x35234b);};function Xt(){const _0x239572=_0x389148;let _0x4623ab=process[_0x239572(0x2aa)]['write'],_0x36e93c=_0x4623ab[_0x239572(0x2ae)](process['stdout']),_0xbc8200=L;return L=_0x1f2d41=>{_0x36e93c(_0x1f2d41);},process[_0x239572(0x2aa)][_0x239572(0x2a2)]=(..._0x2a4d79)=>process[_0x239572(0x2fd)][_0x239572(0x2a2)](..._0x2a4d79),()=>{const _0x25df23=_0x239572;process['stdout'][_0x25df23(0x2a2)]=_0x4623ab,L=_0xbc8200;};}function m(_0x5ab457,_0x96a033,_0x4d6a6d){const _0x23ca4b=_0x389148;if(_0x5ab457[_0x23ca4b(0x2df)]===_0x23ca4b(0x237)){_0x4d6a6d(_0x96a033);return;}L(_0x34b807(_0x96a033));}function Zt(){const _0x1f6454=_0x389148;let _0xb3fa8=_0x1f6454(0x2a5)[_0x1f6454(0x266)]();console[_0x1f6454(0x2d0)](_0xb3fa8);}function en(){const _0x574ee5=_0x389148;try{return JSON[_0x574ee5(0x26e)](_0x5567f6[_0x574ee5(0x26a)](_0x38b440[_0x574ee5(0x172)](__dirname,'..',_0x574ee5(0x28f)),'utf-8'))[_0x574ee5(0x2e3)]||_0x574ee5(0x160);}catch{return _0x574ee5(0x160);}}var tn=0x7d0;async function me(_0x2aeeea,_0x1abd28){const _0x224d34=_0x389148;let _0x1fb579=_0x1abd28?[_0x1abd28]:[];for await(let _0x293206 of _0x2aeeea)_0x1fb579[_0x224d34(0x206)](Buffer[_0x224d34(0x26f)](_0x293206));return Buffer[_0x224d34(0x174)](_0x1fb579)[_0x224d34(0x293)](_0x224d34(0x13e))['trim']();}function nn(_0x5621ea,_0x2eedd0){return new Promise(_0x4a1fe1=>{const _0x1f96ed=_0x3d61;let _0x43b00b=_0x8f820d=>{const _0x562bdc=_0x3d61;clearTimeout(_0x55cdd7),_0x5621ea['off'](_0x562bdc(0x29a),_0x44ec2e),_0x5621ea[_0x562bdc(0x1b0)](_0x562bdc(0x23c),_0x3120cd),_0x5621ea[_0x562bdc(0x1b0)](_0x562bdc(0x100),_0x3120cd),_0x5621ea['pause'](),_0x4a1fe1(_0x8f820d);},_0x44ec2e=_0x2ae765=>_0x43b00b(Buffer[_0x1f96ed(0x26f)](_0x2ae765)),_0x3120cd=()=>_0x43b00b(null),_0x55cdd7=setTimeout(()=>_0x43b00b(null),_0x2eedd0);_0x5621ea['on']('data',_0x44ec2e),_0x5621ea['on']('end',_0x3120cd),_0x5621ea['on'](_0x1f96ed(0x100),_0x3120cd),_0x5621ea[_0x1f96ed(0x2d5)]();});}async function J(_0x4e7eea,_0x3d9c56,_0x12b349=tn){const _0x1ab11c=_0x389148;let _0x6a8ad9=_0x4e7eea==='-';if(!_0x6a8ad9&&_0x4e7eea)return _0x4e7eea;if(!_0x6a8ad9&&_0x3d9c56[_0x1ab11c(0x133)])return'';if(_0x6a8ad9)return me(_0x3d9c56,null);let _0x3197b8=await nn(_0x3d9c56,_0x12b349);return _0x3197b8?me(_0x3d9c56,_0x3197b8):'';}function Y(){const _0xef5660=_0x389148;return _0x38b440[_0xef5660(0x172)](process.env.HOME||process.env.USERPROFILE||'',_0xef5660(0x2ce),'auth.json');}function G(_0x29ddaa){const _0x35d1b7=_0x389148;try{let _0x3cae1e=JSON[_0x35d1b7(0x26e)](_0x5567f6[_0x35d1b7(0x26a)](_0x29ddaa,_0x35d1b7(0x13e)));return!_0x3cae1e[_0x35d1b7(0x1c7)]||!_0x3cae1e[_0x35d1b7(0x2b9)]||!_0x3cae1e[_0x35d1b7(0x1e7)]?null:_0x3cae1e;}catch{return null;}}function sn(){const _0x4f8d91=_0x389148;let _0x577394=[{'file':_0x3dea55(),'isDesktopFallback':!0x1},{'file':Y(),'isDesktopFallback':!0x0}];for(let _0x410637 of _0x577394){let _0xb7f18b=G(_0x410637[_0x4f8d91(0x2c4)]);if(_0xb7f18b)return{..._0x410637,'auth':_0xb7f18b};}return null;}async function on(){const _0x412279=_0x389148;let _0x45f5a2=_0x3dea55();if(!_0x5567f6[_0x412279(0xfe)](_0x45f5a2)){let _0x460e34=Y();console[_0x412279(0x2d0)](G(_0x460e34)?_0x412279(0x13c)+_0x460e34+_0x412279(0x20a):_0x412279(0x1df));return;}_0x5567f6[_0x412279(0x274)](_0x45f5a2),console[_0x412279(0x2d0)](_0x412279(0x1fc)+_0x45f5a2);}async function rn(_0x291ec0){const _0x347ca6=_0x389148;let _0x1fc408=z(),_0xb44548,_0x1ceb53;if(_0x1fc408)_0xb44548=_0x1fc408,_0x1ceb53='environment\x20variables\x20(AUTH_TOKEN/TENANT_ID/ORG_ID)';else{let _0x129191=sn();if(!_0x129191)throw new Error(Ne);_0xb44548=_0x129191[_0x347ca6(0x28d)],_0x1ceb53=_0x129191[_0x347ca6(0x164)]?_0x129191[_0x347ca6(0x2c4)]+'\x20(Delegate\x20desktop\x20app\x20fallback)':_0x129191[_0x347ca6(0x2c4)];}let _0x2c4321={'source':_0x1ceb53,'baseUrl':_0xb44548[_0x347ca6(0x161)]??null,'deployment':an(_0xb44548[_0x347ca6(0x161)]),'organization':{'id':_0xb44548['organizationId'],'slug':_0xb44548[_0x347ca6(0x18c)]??null},'tenant':{'id':_0xb44548[_0x347ca6(0x2b9)],'name':_0xb44548[_0x347ca6(0x25c)]??null},'tokenExpiresAt':_0xb44548[_0x347ca6(0x190)]?new Date(_0xb44548[_0x347ca6(0x190)]*0x3e8)['toISOString']():null};m(_0x291ec0,_0x2c4321,()=>{const _0x327285=_0x347ca6;let _0x2ff2db=['Source:\x20\x20\x20\x20\x20\x20\x20'+_0x1ceb53,_0x327285(0x19d)+(_0xb44548[_0x327285(0x161)]??_0x327285(0x160)),_0x327285(0x300)+_0x2c4321[_0x327285(0x27c)],_0x327285(0x1f7)+(_0xb44548[_0x327285(0x18c)]??_0x327285(0x287))+'\x20('+_0xb44548[_0x327285(0x1e7)]+')',_0x327285(0x12a)+(_0xb44548['tenantName']??'unknown\x20slug')+'\x20('+_0xb44548[_0x327285(0x2b9)]+')'];if(_0xb44548['expiresAt']){let _0x1be96f=_0xb44548[_0x327285(0x190)]-Math[_0x327285(0x251)](Date[_0x327285(0x108)]()/0x3e8);_0x2ff2db[_0x327285(0x206)](_0x1be96f>0x0?_0x327285(0x320)+_0x2c4321[_0x327285(0x2d7)]+_0x327285(0x21a)+Math[_0x327285(0x292)](_0x1be96f/0x3c)+_0x327285(0x195):_0x327285(0x2dd)+_0x2c4321['tokenExpiresAt']);}process[_0x327285(0x2aa)][_0x327285(0x2a2)](_0x2ff2db[_0x327285(0x172)]('\x0a')+'\x0a');});}var Ne=_0x389148(0x11e);function an(_0x519b58){const _0x13e50c=_0x389148;return _0x519b58?_0x343d4c(_0x519b58)?'UiPath\x20Cloud':_0x13e50c(0x23e):'unknown';}function z(){let _0x2e07a0=process.env.AUTH_TOKEN_FILE;return(process.env.AUTH_TOKEN||_0x2e07a0)&&process.env.TENANT_ID&&process.env.ORG_ID?{'accessToken':_0x2e07a0?ln(_0x2e07a0):process.env.AUTH_TOKEN,..._0x2e07a0?{'accessTokenFile':_0x2e07a0}:{},'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(_0x5c2b60){const _0x41d2d0=_0x389148;let _0x47f65b;try{_0x47f65b=_0x5567f6[_0x41d2d0(0x26a)](_0x5c2b60,_0x41d2d0(0x13e))[_0x41d2d0(0x266)]();}catch(_0x1ea980){throw new Error(_0x41d2d0(0x192)+_0x5c2b60+'\x27\x20cannot\x20be\x20read:\x20'+_0x1ea980[_0x41d2d0(0x2c9)]);}let _0x1ca6fa=_0x47f65b[_0x41d2d0(0x1cd)](_0x41d2d0(0x10a))?_0x47f65b[_0x41d2d0(0x1c3)](0x7)[_0x41d2d0(0x266)]():_0x47f65b;if(!_0x1ca6fa)throw new Error(_0x41d2d0(0x192)+_0x5c2b60+_0x41d2d0(0x20d));return _0x1ca6fa;}function Pe(){const _0x4e42e6=_0x389148;let _0x64ac24=process.env.UIPATH_BASE_URL;if(!_0x64ac24)return;let _0x1804e2=_0x28340f(_0x64ac24);if(_0x1804e2['ok']===!0x1)throw new Error(_0x4e42e6(0x289)+_0x5f0e11(_0x64ac24,_0x1804e2[_0x4e42e6(0x2e7)]));return _0x1804e2[_0x4e42e6(0x161)];}async function V(){let _0x453f55=z();if(_0x453f55)return _0x453f55;let _0x343d08=await _0x32efdf();if(_0x343d08)return _0x343d08;throw new Error(Ne);}async function cn(){const _0x3a5783=_0x389148;await new _0xa9a5d5()[_0x3a5783(0x1b7)]({'force':!0x0}),console['log'](_0x3a5783(0x21e));}function X(_0x236156,_0x5db2c2,_0x23d5cb){const _0x33c52c=_0x389148;_0x236156?process[_0x33c52c(0x2fd)][_0x33c52c(0x2a2)]('[env='+_0x236156+_0x33c52c(0xf9)+_0x23d5cb+'\x0a'):!_0x5db2c2&&!process.env.BACKEND_URL&&process[_0x33c52c(0x2fd)]['write']('[saved\x20login]\x20Backend\x20URL:\x20'+_0x23d5cb+'\x0a');}async function x(_0x38dc2d){const _0x208cec=_0x389148;let _0x4b3bc0=await V(),_0x1bb689=_0x48bc74(_0x38dc2d[_0x208cec(0x10c)],_0x4b3bc0,_0x38dc2d[_0x208cec(0x2bb)]);return X(_0x38dc2d[_0x208cec(0x10c)],_0x38dc2d['backendUrl'],_0x1bb689),{'auth':_0x4b3bc0,'backendUrl':_0x1bb689,'client':_0x416340({'auth':_0x4b3bc0,'backendUrl':_0x1bb689})};}async function dn(_0x318e7c){const _0x381546=_0x389148;let {client:_0xd24577}=await x(_0x318e7c),[_0xfddc7c,_0x1e3136]=await Promise[_0x381546(0x30e)]([_0xcf2854(_0xd24577),_0x44db10(_0xd24577)[_0x381546(0x121)](_0x1b975e=>(process['stderr'][_0x381546(0x2a2)](_0x381546(0x1fb)+(_0x1b975e instanceof Error?_0x1b975e[_0x381546(0x2c9)]:String(_0x1b975e))+'\x0a'),{}))]),_0x158e4d=_0xfddc7c[_0x381546(0x1a2)](_0x48be5d=>_0x1e3136[_0x48be5d['id']]?{..._0x48be5d,'byoWarning':_0x1e3136[_0x48be5d['id']]}:_0x48be5d);m(_0x318e7c,_0x158e4d,un);}function un(_0x520a52){const _0x260a41=_0x389148;if(_0x520a52[_0x260a41(0x2c3)]===0x0){process['stderr'][_0x260a41(0x2a2)](_0x260a41(0x255));return;}process[_0x260a41(0x2aa)]['write'](_0x260a41(0x2be)+_0x520a52[_0x260a41(0x2c3)]+_0x260a41(0x1c2));for(let _0x2b3f17 of _0x520a52){let _0x473529=_0x2b3f17[_0x260a41(0x249)]&&_0x2b3f17[_0x260a41(0x249)]!==_0x2b3f17['id']?'\x20('+_0x2b3f17['name']+')':'';process[_0x260a41(0x2aa)][_0x260a41(0x2a2)]('\x20\x20'+_0x2b3f17['id']+_0x473529+'\x0a'),_0x2b3f17[_0x260a41(0x169)]&&process[_0x260a41(0x2aa)][_0x260a41(0x2a2)]('\x20\x20\x20\x20'+_0x2b3f17['description']+'\x0a'),_0x2b3f17[_0x260a41(0x102)]&&process['stdout']['write'](_0x260a41(0x17a)+(_0x2b3f17[_0x260a41(0x2c1)]?'\x20('+_0x2b3f17['lockReason']+')':'')+'\x0a'),_0x2b3f17[_0x260a41(0x253)]&&process[_0x260a41(0x2aa)][_0x260a41(0x2a2)](_0x260a41(0x221)+_0x2b3f17['byoWarning']+'\x0a');}process[_0x260a41(0x2aa)][_0x260a41(0x2a2)](_0x260a41(0x22a));}var fe=['list',_0x389148(0x27d),'rename','delete',_0x389148(0x1f5),'fork'];async function pn(_0x155ec6){const _0x3d6f73=_0x389148;let [_0x3d2a31='',_0x4e0b12='',..._0x2b684f]=_0x155ec6[_0x3d6f73(0x248)];if(_0x3d2a31&&!fe[_0x3d6f73(0x2b5)](_0x3d2a31)&&(console[_0x3d6f73(0x100)](_0x3d6f73(0x2ba)+_0x3d2a31+_0x3d6f73(0x2f5)+fe[_0x3d6f73(0x172)](_0x3d6f73(0x315))+'.'),process[_0x3d6f73(0x278)](0x2)),_0x155ec6[_0x3d6f73(0x1d9)]!==void 0x0&&_0x3d2a31!=='cancel'&&(console[_0x3d6f73(0x100)](_0x3d6f73(0x30c)),process[_0x3d6f73(0x278)](0x2)),_0x3d2a31&&_0x3d2a31!==_0x3d6f73(0x1e5)){await mn(_0x155ec6,_0x3d2a31,_0x4e0b12,_0x2b684f[_0x3d6f73(0x172)]('\x20')[_0x3d6f73(0x266)]());return;}_0x155ec6[_0x3d6f73(0x248)][_0x3d6f73(0x2c3)]>0x1&&(console[_0x3d6f73(0x100)](_0x3d6f73(0x11c)),process[_0x3d6f73(0x278)](0x2));let {client:_0x4473a5}=await x(_0x155ec6),_0x38d612=await _0x12e203(_0x4473a5,{'page':_0x155ec6[_0x3d6f73(0x2a9)],'pageSize':_0x155ec6[_0x3d6f73(0x246)],'includeSubAgents':_0x155ec6['includeSubAgents']});m(_0x155ec6,_0x38d612,yn);}function _0x3d61(_0xa918f3,_0x4c51dd){_0xa918f3=_0xa918f3-0xf3;const _0x249797=_0x2497();let _0x3d6113=_0x249797[_0xa918f3];return _0x3d6113;}async function mn(_0x2bcdd6,_0xbf8a5,_0x29c881,_0x51fd1c){const _0x426d2d=_0x389148;if((_0x2bcdd6[_0x426d2d(0x2a9)]!==void 0x0||_0x2bcdd6[_0x426d2d(0x246)]!==void 0x0||_0x2bcdd6[_0x426d2d(0x157)])&&(console[_0x426d2d(0x100)](_0x426d2d(0x268)),process[_0x426d2d(0x278)](0x2)),_0xbf8a5===_0x426d2d(0x1f5)){await gn(_0x2bcdd6,_0x29c881,_0x51fd1c);return;}if(_0xbf8a5===_0x426d2d(0x2a0)){await hn(_0x2bcdd6,_0x29c881,_0x51fd1c);return;}(!_0x29c881||_0xbf8a5===_0x426d2d(0x21b)!=!!_0x51fd1c)&&(console[_0x426d2d(0x100)](_0x426d2d(0x19f)+_0xbf8a5+'\x20<id>'+(_0xbf8a5===_0x426d2d(0x21b)?_0x426d2d(0x2f9):'')),process[_0x426d2d(0x278)](0x2));let {client:_0x6ace4d}=await x(_0x2bcdd6);try{if(_0xbf8a5===_0x426d2d(0x27d)){let _0xd93f26=await _0x5a9259(_0x6ace4d,_0x29c881);_0xd93f26||ge(_0x29c881),m(_0x2bcdd6,_0xd93f26,fn);}else{if(_0xbf8a5===_0x426d2d(0x21b)){let _0x584e31=await _0x1cae7b(_0x6ace4d,_0x29c881,_0x51fd1c);m(_0x2bcdd6,_0x584e31,_0x2f2b73=>{const _0x1530b9=_0x426d2d;process[_0x1530b9(0x2aa)][_0x1530b9(0x2a2)](_0x1530b9(0x307)+_0x2f2b73['id']+':\x20'+_0x2f2b73[_0x1530b9(0x187)]+'\x0a');});}else await _0x58df33(_0x6ace4d,_0x29c881),await _0x21cfaa(_0x29c881,_0x2bcdd6[_0x426d2d(0x29c)]),m(_0x2bcdd6,{'id':_0x29c881,'deleted':!0x0},_0x4cf781=>{const _0x52a775=_0x426d2d;process[_0x52a775(0x2aa)][_0x52a775(0x2a2)](_0x52a775(0x14c)+_0x4cf781['id']+'.\x0a');});}}catch(_0x46c7f8){if(!_0x15df9c(_0x46c7f8,0x194))throw _0x46c7f8;ge(_0x29c881);}}function ge(_0x312609){const _0x33a5b4=_0x389148;console[_0x33a5b4(0x100)](_0x33a5b4(0x1bd)+_0x312609+_0x33a5b4(0x165)),process['exit'](0x1);}function fn(_0xbf8f){const _0x468bbe=_0x389148;process['stdout'][_0x468bbe(0x2a2)](_0x468bbe(0x309)+_0xbf8f['id']+'\x0a'),process[_0x468bbe(0x2aa)][_0x468bbe(0x2a2)]('Title\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0xbf8f[_0x468bbe(0x187)]+'\x0a'),process[_0x468bbe(0x2aa)][_0x468bbe(0x2a2)](_0x468bbe(0x1aa)+_0xbf8f[_0x468bbe(0x182)]+'\x0a'),process['stdout'][_0x468bbe(0x2a2)]('Organization\x20\x20'+_0xbf8f[_0x468bbe(0x1e7)]+'\x0a'),_0xbf8f[_0x468bbe(0x1f2)]&&process['stdout'][_0x468bbe(0x2a2)](_0x468bbe(0x1d0)+_0xbf8f[_0x468bbe(0x1f2)]+'\x0a');}async function gn(_0x8e71dc,_0x30fc1e,_0x189897){const _0x76c163=_0x389148;(!_0x30fc1e||_0x189897||!_0x8e71dc['turnId'])&&(console[_0x76c163(0x100)](_0x76c163(0x2b7)),process[_0x76c163(0x278)](0x2));let {client:_0x72c392}=await x(_0x8e71dc),_0x5c1dd6=await _0xb316d9(_0x72c392,_0x30fc1e,_0x8e71dc[_0x76c163(0x1d9)]);m(_0x8e71dc,{'sessionId':_0x30fc1e,'turnId':_0x8e71dc[_0x76c163(0x1d9)],'cancelled':_0x5c1dd6},_0x14843b=>{const _0x3454ca=_0x76c163;_0x14843b[_0x3454ca(0x235)]?process[_0x3454ca(0x2aa)][_0x3454ca(0x2a2)](_0x3454ca(0x283)+_0x14843b[_0x3454ca(0x1d9)]+_0x3454ca(0x1f0)+_0x14843b[_0x3454ca(0x299)]+'.\x0a'):process[_0x3454ca(0x2fd)][_0x3454ca(0x2a2)](_0x3454ca(0x2a3)+_0x14843b[_0x3454ca(0x1d9)]+_0x3454ca(0x308)+_0x14843b[_0x3454ca(0x299)]+'.\x0a');}),_0x5c1dd6||(process[_0x76c163(0x317)]=0x1);}async function hn(_0x4dd14e,_0x41c3bf,_0x32813e){const _0x3d0c58=_0x389148;(!_0x41c3bf||/\s/[_0x3d0c58(0x12d)](_0x32813e))&&(console['error'](_0x3d0c58(0x24d)),process['exit'](0x2));let {client:_0x274839}=await x(_0x4dd14e),_0x501377;try{_0x501377=await _0x33865e(_0x274839,_0x41c3bf,{'atMessageId':_0x32813e||void 0x0});}catch(_0x5b61ba){if(!_0x15df9c(_0x5b61ba,0x194))throw _0x5b61ba;console[_0x3d0c58(0x100)]('Session\x20'+_0x41c3bf+_0x3d0c58(0x257)+(_0x32813e?_0x3d0c58(0x214)+_0x32813e:'')+'.'),process['exit'](0x1);}m(_0x4dd14e,_0x501377,_0x6d08cf=>{const _0x39bd3d=_0x3d0c58;process[_0x39bd3d(0x2aa)][_0x39bd3d(0x2a2)](_0x39bd3d(0x1a8)+_0x41c3bf+_0x39bd3d(0x241)+_0x6d08cf['id']+'.\x0a'),process[_0x39bd3d(0x2fd)][_0x39bd3d(0x2a2)](_0x39bd3d(0x163)+_0x6d08cf['id']+_0x39bd3d(0x1ad));});}function yn({sessions:_0x131c20,page:_0x1709c4,isLastPage:_0x54782b}){const _0xae912=_0x389148;if(_0x131c20[_0xae912(0x2c3)]===0x0)process[_0xae912(0x2fd)][_0xae912(0x2a2)]('No\x20sessions\x20on\x20page\x20'+_0x1709c4+'.\x0a');else{process['stdout'][_0xae912(0x2a2)]('ID'[_0xae912(0xf8)](0x24)+'\x20\x20'+_0xae912(0x256)['padEnd'](0x13)+_0xae912(0x114));for(let _0x3da016 of _0x131c20){let _0x5d64ea=_0x3da016['updatedAt']['replace']('T','\x20')['slice'](0x0,0x13),_0x2b1742=_0x3da016['parentSessionId']?_0xae912(0x1fa)+_0x3da016[_0xae912(0x25e)]+')':'';process[_0xae912(0x2aa)][_0xae912(0x2a2)](_0x3da016['id'][_0xae912(0xf8)](0x24)+'\x20\x20'+_0x5d64ea[_0xae912(0xf8)](0x13)+'\x20\x20'+_0x3da016[_0xae912(0x187)]+_0x2b1742+'\x0a');}}_0x54782b||process[_0xae912(0x2fd)][_0xae912(0x2a2)](_0xae912(0xfb)+(_0x1709c4+0x1)+'\x0a');}async function wn(_0x2e2447){const _0xdc4e4d=_0x389148;let _0x315054=await V(),_0x508708=_0x48bc74(_0x2e2447[_0xdc4e4d(0x10c)],_0x315054,_0x2e2447[_0xdc4e4d(0x2bb)]);X(_0x2e2447[_0xdc4e4d(0x10c)],_0x2e2447[_0xdc4e4d(0x2bb)],_0x508708);let _0x21fed4=await _0x3861ea({'auth':_0x315054,'backendUrl':_0x508708,'interop':_0x2e2447[_0xdc4e4d(0x200)]?'skip':_0xdc4e4d(0x10f)});m(_0x2e2447,_0x21fed4,({checks:_0x9f0e01})=>{const _0x4dc358=_0xdc4e4d;for(let _0x10b012 of _0x9f0e01)process['stdout'][_0x4dc358(0x2a2)](kn(_0x10b012)+'\x0a');}),_0x21fed4['ok']||process['exit'](0x1);}function kn(_0x11ea12){const _0xefac93=_0x389148;return{'ok':'✓','failed':'✗','skipped':'-'}[_0x11ea12[_0xefac93(0x271)]]+'\x20'+_0x11ea12[_0xefac93(0x249)]['padEnd'](0xa)+_0x11ea12['detail'];}var bn=['','activity',_0x389148(0x2af)];async function vn(_0x1e38c1){const _0x23f3b5=_0x389148;let _0x12bbd6=_0x1e38c1[_0x23f3b5(0x13a)];bn['includes'](_0x12bbd6)||(console['error'](_0x23f3b5(0x11d)+_0x1e38c1[_0x23f3b5(0x13a)]+_0x23f3b5(0x215)),process['exit'](0x2)),_0x12bbd6===''&&_0x1e38c1[_0x23f3b5(0x2fc)]!==void 0x0&&(console[_0x23f3b5(0x100)]('--days\x20applies\x20to\x20`delegate-cli\x20usage\x20activity|daily`;\x20the\x20summary\x20covers\x20the\x20current\x20month.'),process[_0x23f3b5(0x278)](0x2)),_0x12bbd6!==''&&_0x1e38c1[_0x23f3b5(0x299)]!==void 0x0&&(console[_0x23f3b5(0x100)](_0x23f3b5(0x153)),process[_0x23f3b5(0x278)](0x2));let {client:_0x3b76a8}=await x(_0x1e38c1);if(_0x12bbd6===_0x23f3b5(0x193)){m(_0x1e38c1,await _0x116d4d(_0x3b76a8,{'days':_0x1e38c1[_0x23f3b5(0x2fc)]}),An);return;}if(_0x12bbd6===_0x23f3b5(0x2af)){m(_0x1e38c1,await _0x3641fb(_0x3b76a8,{'days':_0x1e38c1['days']}),En);return;}let [_0x4ba15b,_0xa41bde]=await Promise[_0x23f3b5(0x30e)]([_0x5d73a7(_0x3b76a8,{'sessionId':_0x1e38c1[_0x23f3b5(0x299)]}),_0x22eff0(_0x3b76a8)]);m(_0x1e38c1,{'licensing':_0x4ba15b,'monthlySpending':_0xa41bde},Sn);}function Sn(_0x5c61fe){const _0x13d4f1=_0x389148;let {licensing:_0x2ad3c6,monthlySpending:_0x14a48b}=_0x5c61fe,_0x526b9c=[_0x2ad3c6[_0x13d4f1(0x276)]?_0x13d4f1(0x1c6)+_0x2ad3c6[_0x13d4f1(0x285)][_0x13d4f1(0x1fd)](0x1)+_0x13d4f1(0x321)+(_0x2ad3c6['total_quota_pu']??0x0)+_0x13d4f1(0x1dc)+(_0x2ad3c6[_0x13d4f1(0x250)]>0x0?',\x20'+_0x2ad3c6['extra_pool_consumed_pu']+_0x13d4f1(0x210):'')+_0x13d4f1(0x1b2)+_0x2ad3c6['period_end']+')':_0x13d4f1(0x260),'Spending:\x20\x20\x20\x20\x20$'+_0x14a48b[_0x13d4f1(0x1e0)][_0x13d4f1(0x1fd)](0x2)+_0x13d4f1(0x186)+(_0x14a48b[_0x13d4f1(0x276)]&&_0x14a48b[_0x13d4f1(0x1da)]!==null?_0x13d4f1(0x2a4)+_0x14a48b[_0x13d4f1(0x1da)][_0x13d4f1(0x1fd)](0x2)+_0x13d4f1(0x12f):'\x20(no\x20cap\x20enforced)')];_0x2ad3c6[_0x13d4f1(0x1cf)]!==null&&_0x2ad3c6['session_consumed_pu']!==void 0x0&&_0x526b9c[_0x13d4f1(0x206)](_0x13d4f1(0x295)+_0x2ad3c6[_0x13d4f1(0x1cf)]+_0x13d4f1(0x228)),process[_0x13d4f1(0x2aa)][_0x13d4f1(0x2a2)](_0x526b9c[_0x13d4f1(0x172)]('\x0a')+'\x0a');}function _0x2497(){const _0x2dce85=['multiSelect','\x20--turn\x20','--attach:\x20no\x20such\x20file\x20or\x20folder:\x20','--verbose','\x20days.\x0a','steer','The\x20turn\x20was\x20cancelled.','\x20must\x20be\x20a\x20JSON\x20object.','No\x20one\x20matches\x20\x22','Deleted\x20session\x20','🔧\x20','header','every','usage','choice','split','--session\x20applies\x20to\x20the\x20`delegate-cli\x20usage`\x20summary\x20only.','--output-format','workerId','agent_thought','includeSubAgents',']\x20(Enter\x20for\x20','min','),\x20','Tenants\x20of\x20','Number','staging','settle','\x20is\x20not\x20valid\x20JSON\x20(','unknown','baseUrl','host','Continue\x20it\x20with:\x20delegate-cli\x20--session\x20','isDesktopFallback','\x20not\x20found.','6wwNTnu','--model','rerank','description','delete','10FdDvjK','stack','logout','mapName','--task-automation','SIGINT','thinking','join','string','concat','Invalid\x20--project:\x20\x22','Accepted','value','skipEnvCheck','alpha','\x20\x20\x20\x20Not\x20available\x20on\x20this\x20plan','--input-format','filter','print','isError','default','dismissed','alreadyAccepted','userId','--json-schema','Answered','a\x20Map\x20name','\x20this\x20month','title','--env','restore','next','optional','orgLogicalName','No\x20structured\x20output:\x20the\x20turn\x20failed\x20(','--input-format\x20stream-json\x20needs\x20--output-format\x20stream-json:\x20the\x20steering\x20messages\x20are\x20answered\x20on\x20stdout.','.\x20Drop\x20one\x20of\x20the\x20two.','expiresAt','prompt_tokens','AUTH_TOKEN_FILE\x20\x27','activity','finish','\x20min)','followUpsRenderer','turn_start',',\x20whose\x20tenant\x20is\x20chosen\x20in\x20the\x20app.\x20Run\x20`delegate-cli\x20login\x20--env\x20<env>`\x20for\x20a\x20CLI\x20login\x20of\x20your\x20own.','--skip-env-check','\x20<file.json>,\x20or\x20-\x20to\x20read\x20stdin.','--json-schema\x20applies\x20to\x20prompts\x20and\x20to\x20`delegate-cli\x20complete`\x20only.','Usage:\x20delegate-cli\x20','Base\x20URL:\x20\x20\x20\x20\x20','verify','Usage:\x20delegate-cli\x20sessions\x20','getSessionMessages','Work\x20on\x20it\x20with:\x20delegate-cli\x20--session\x20','map','✓\x20Done\x0a','bucket','email','model','fields','Forked\x20','\x20(current)','Owner\x20\x20\x20\x20\x20\x20\x20\x20\x20','results','20054964KCaQVq','\x20\x22<prompt>\x22\x0a','probability','localhost','off','paths','\x20(resets\x20','findIndex','line','\x0aStopping…\x20(Ctrl+C\x20again\x20to\x20force\x20exit)\x0a','--tenant','stop','The\x20saved\x20CLI\x20login\x20could\x20not\x20be\x20refreshed.\x20Run\x20`delegate-cli\x20login`\x20again.','abort','\x20\x22<prompt>\x22\x0aAnswer\x20with:\x20delegate-cli\x20delegations\x20complete\x20','\x20\x20(input\x20#','save-version','Session\x20','close','delegation','Date\x20\x20\x20\x20\x20\x20\x20\x20Token\x20units\x20\x20Prompt\x20tokens\x20\x20Completion\x20tokens','medium','):\x0a\x0a','slice','total_sessions','assignedUserEmail','Licensing:\x20\x20\x20\x20','accessToken','stdin','completion_tokens','low','--runner-url','a\x20file://\x20URL\x20or\x20an\x20absolute\x20path','startsWith','oneTurn','session_consumed_pu','Delegation\x20\x20\x20\x20','intro','total_cost_usd','signal','complete','Invalid\x20--output-format:\x20','object','a\x20colleague','share','turnId','monthly_limit_usd','Tenant:\x20','\x20PU\x20used','deepLink','\x20completion','No\x20CLI\x20login\x20found\x20—\x20nothing\x20to\x20remove.','monthly_spend_usd','5099339iOVbFI','delegations\x20complete\x20<delegation-id>\x20\x22<answer>\x22|-','tool_call','a\x20skill\x20name','list','--to','organizationId','an\x20input\x20line\x20has\x20type\x20','question','jsonSchemaPath','noMemory','step','501AHClRH','from\x20','total_tokens','\x20of\x20session\x20','40tjgbQB','delegationId','stream-json','--map-name','cancel','export','Organization:\x20','widget','\x20to\x20','\x20\x20(sub-agent\x20of\x20','Could\x20not\x20check\x20BYO\x20model\x20warnings:\x20','Removed\x20','toFixed','--project','Enter\x20a\x20number\x20','headless','isArray','period_days','cartographer','--replay-user-messages\x20needs\x20--input-format\x20stream-json.','score','push','--no-computer-use','remote','Session:\x20','\x20—\x20sign\x20out\x20in\x20the\x20Delegate\x20app\x20to\x20clear\x20that.','Unknown\x20delegations\x20action:\x20','\x20as\x20\x22','\x27\x20is\x20empty.','\x20\x20from\x20','.\x20Use\x20alpha\x20|\x20staging\x20|\x20production\x20|\x20localhost.','\x20PU\x20beyond\x20quota','--remote\x20and\x20--map-name\x20apply\x20to\x20`delegate-cli\x20maps\x20share`\x20only.','1616960OmqXRF','getTurnUsageHistory',',\x20or\x20holds\x20no\x20message\x20','.\x20Use\x20`delegate-cli\x20usage`,\x20`usage\x20activity`\x20or\x20`usage\x20daily`.','an\x20input\x20line\x20is\x20not\x20a\x20JSON\x20object','--backend','task','structuredError','\x20(in\x20','rename','forEach','Already\x20answered','Interop\x20stopped\x20(if\x20it\x20was\x20running).','uuid','structured','\x20\x20\x20\x20BYO\x20warning:\x20','items','transcribe:\x20cannot\x20read\x20','bundledSkillsPath','delegateTo','aborted','2892428sVLZjm','\x20PU','Something\x20else','\x0aUse\x20with:\x20delegate-cli\x20--model\x20<id>\x20\x22<prompt>\x22\x0a','resolve',';\x20the\x20saved\x20login\x20still\x20uses\x20','user','actionable_error','displayName','1733436kPrKQw','cwd','1424WeqCGV','--output-format\x20','probability\x20','cancelled','delegate-cli','text','sourceUserEmail','verdict','check','model_version','end','pause','self-hosted\x20(Automation\x20Suite\x20/\x20Dedicated)','label','--turn','\x20into\x20','race','type','setPrompt','getSessionId','limit','unit','operands','name','sendMessage','toUpperCase','index','Usage:\x20delegate-cli\x20sessions\x20fork\x20<id>\x20[<message-id>]','No\x20CLI\x20login\x20to\x20switch:\x20the\x20CLI\x20is\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20','--headless','extra_pool_consumed_pu','floor','115145icSWDi','byoWarning','entries','No\x20models\x20available\x20for\x20this\x20product/tenant.\x0a','UPDATED','\x20not\x20found,\x20has\x20no\x20messages','.\x20Use\x20','Task\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','argv','--skills-path','tenantName','Claimed\x20from\x20delegation\x20','parentSessionId','keys','Licensing:\x20\x20\x20\x20no\x20licensing\x20quota\x20applies','erase','some','origin','Invalid\x20--input-format:\x20','\x20(cancel\x20with:\x20delegate-cli\x20sessions\x20cancel\x20','trim','questions','--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`delegate-cli\x20sessions\x20[list]`\x20only.','create','readFileSync','cleanup','\x20token\x20units)','\x20days:\x20','parse','from','\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).','status',':\x20bucket\x20number\x20(Enter\x20to\x20leave\x20out):\x20','30fZwsdp','rmSync','transcribe\x20needs\x20audio:\x20delegate-cli\x20transcribe\x20<file>,\x20or\x20-\x20to\x20read\x20stdin.','limit_enabled','\x20(estimated\x20$','exit','Tokens:\x20','complete\x20needs\x20a\x20prompt:\x20delegate-cli\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22,\x20or\x20-\x20to\x20read\x20stdin.','a\x20session\x20id','deployment','show','return','buckets','noSecurity','hide','session_start','Cancel\x20requested\x20for\x20turn\x20','maps','pct_used','Unknown\x20flag:\x20','unknown\x20slug','--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`delegate-cli\x20sessions`\x20only.','UIPATH_BASE_URL\x20is\x20unusable.\x20','\x20must\x20be\x20a\x20whole\x20number\x20','You>\x20','delegations\x20accept\x20<delegation-id>','auth','--preload-skill','package.json','an\x20input\x20line\x20is\x20not\x20JSON',':\x20ignored\x0a','round','toString','\x20prompt,\x20','Session:\x20\x20\x20\x20\x20\x20','evaluate','export:\x20','an\x20email\x20address\x20or\x20name','sessionId','data','sessions','workingDirectory','subFields','response','delegations\x20show\x20<delegation-id|delegate://delegation/…>','fork','/exit','write','No\x20turn\x20','\x20of\x20a\x20$','\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','From\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','a\x20file\x20path','--remote','page','stdout','add','a\x20deployment\x20URL,\x20e.g.\x20https://automationsuite.contoso.com','1\x20or\x20more','bind','daily','score\x20','Enter\x20numbers\x20from\x201\x20to\x20','--replay-user-messages','estimated_cost_usd','confidence','includes','ASSIGNEE','Usage:\x20delegate-cli\x20sessions\x20cancel\x20<session-id>\x20--turn\x20<turn-id>','content','tenantId','Unknown\x20sessions\x20action:\x20','backendUrl','answers','--worker-id','\x0aAvailable\x20models\x20(','tenant','noConnections','lockReason','--print','length','file','Use:\x20delegate-cli\x20delegations\x20','initialize','quiet','shift','message','isFinite','inputFormat','Usage:\x20delegate-cli\x20maps\x20share\x20--project\x20ID\x20--remote\x20URL|PATH\x20--map-name\x20NAME\x20[--working-dir\x20PATH]','a\x20turn\x20id','.aria','onEvent','log','Switch\x20with:\x20delegate-cli\x20tenant\x20<name>\x0a','Delegated\x20','Shared\x20the\x20Map\x20of\x20Work\x20of\x20','a\x20vertical\x20id','resume','The\x20steering\x20message\x20was\x20not\x20answered:\x20its\x20turn\x20did\x20not\x20run\x20or\x20added\x20no\x20reply.','tokenExpiresAt','--keep-alive','\x20is\x20required.\x0a','toolName','subcommand','pop','Token:\x20\x20\x20\x20\x20\x20\x20\x20expired\x20','\x20(type\x20your\x20own)','outputFormat','Enter\x20one\x20number\x20from\x201\x20to\x20','choice\x20','Rubric\x20','version','\x20or\x20your\x20own\x20answer','lastType','Pass\x20either\x20--env\x20(a\x20named\x20cloud)\x20or\x20--url\x20(any\x20other\x20deployment),\x20not\x20both.','rejection','an\x20input\x20line\x20has\x20an\x20empty\x20message','--url','Your\x20answer,\x20as\x20text\x20(the\x20CLI\x20attaches\x20no\x20files;\x20Enter\x20to\x20skip):\x20','\x20delegation\x20','vertical','--no-security','done','\x20active\x20days','\x20\x22<answer>\x22\x0a','--cartographer\x20runs\x20the\x20','url','attachments','--help','.\x20Use:\x20','\x22.\x0a','effort','No\x20CLI\x20login\x20found.\x20Run\x20`delegate-cli\x20login\x20--env\x20<alpha|staging|production>`\x20first.','\x20<title>','total_prompt_tokens','a\x20directory\x20path','days','stderr','contextSummary','--url\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Other\x20commands\x20follow\x20the\x20saved\x20login,\x20or\x20--backend\x20<url>.','Deployment:\x20\x20\x20','--include-subagents','token_units','delegations\x20dismiss\x20<delegation-id>','whoami','Invalid\x20--effort:\x20','findLast','Renamed\x20','\x20in\x20progress\x20on\x20session\x20','ID\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','replace','endQuestions','--turn\x20applies\x20to\x20`delegate-cli\x20sessions\x20cancel`\x20only.','waitForIdle','all','):\x20','taskAutomation','production','removeEventListener','--page',').\x0a','\x20|\x20','\x20of\x20the\x20Map\x20of\x20Work\x20of\x20','exitCode','total_completion_tokens','userinput','\x20vertical,\x20so\x20it\x20cannot\x20run\x20as\x20--vertical\x20','transcribe','code','an\x20effort\x20tier','sourceTitle','daily_usage','Token:\x20\x20\x20\x20\x20\x20\x20\x20expires\x20','%\x20of\x20','--interop','delegations','Steering\x20input\x20stopped:\x20','destroy','models_breakdown','padEnd',']\x20Backend\x20URL:\x20','--no-connections','More:\x20delegate-cli\x20sessions\x20--page\x20','A\x20steering\x20message\x20was\x20not\x20sent:\x20','--attach\x20applies\x20to\x20prompts\x20only.','existsSync','kind','error','preloadSkills','locked','active_days','projectId','--env\x20localhost\x20has\x20no\x20OAuth\x20flow;\x20pick\x20alpha,\x20staging,\x20or\x20production.','readLine','claim','now','max','Bearer\x20','a\x20project\x20id','env','No\x20answers\x20awaiting\x20acceptance.\x0a','\x20(optional)','spawn','from\x201\x20to\x20','assignedUser','Enter\x20sends\x20a\x20message.\x20/exit\x20or\x20EOF\x20exits;\x20Ctrl+C\x20stops\x20and\x20exits.\x0a','--cleanup','\x20\x20TITLE\x0a','addEventListener','Usage:\x20delegate-cli\x20export\x20TYPE\x20[DOCUMENT_ID]\x20--project\x20ID\x20[--working-dir\x20PATH]','\x20(confidence\x20','interopPath','--task-automation\x20applies\x20to\x20prompts\x20only.','then','alreadyCompleted','Usage:\x20delegate-cli\x20sessions\x20[list]\x20[--page\x20N]\x20[--limit\x20N]\x20[--include-subagents]','Unknown\x20usage\x20view:\x20','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.','--input-format\x20and\x20--replay-user-messages\x20apply\x20to\x20prompts\x20only.','refused','catch','a\x20format\x20(','\x20-\x20','delegations\x20list\x20<backend-project-id>','--summary','Last\x20','pendingResults','noComputerUse','options','Tenant:\x20\x20\x20\x20\x20\x20\x20','the\x20request','accept','test','login','\x20cap','\x20(Enter\x20to\x20skip):\x20','--days\x20applies\x20to\x20`delegate-cli\x20usage\x20activity|daily`\x20only.','runnerUrl','isTTY','replayUserMessages','padStart','Input\x20closed\x20before\x20the\x20question\x20was\x20answered.','\x20(stdin\x20was\x20empty)','total_token_units','a\x20JSON\x20schema\x20file','prompt','delegations\x20delete\x20<delegation-id>','No\x20CLI\x20login\x20found.\x20Note:\x20the\x20CLI\x20is\x20currently\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20','models','utf-8','org-users',')\x20—\x20saved\x20to\x20','stringify','a\x20number'];_0x2497=function(){return _0x2dce85;};return _0x2497();}function An(_0x310d7c){const _0x5c8c60=_0x389148;let _0x58ae62=[_0x5c8c60(0x126)+_0x310d7c['period_days']+_0x5c8c60(0x26d)+_0x310d7c[_0x5c8c60(0x1c4)]+'\x20sessions\x20on\x20'+_0x310d7c[_0x5c8c60(0x103)]+_0x5c8c60(0x2ef),'Cost:\x20\x20\x20$'+_0x310d7c[_0x5c8c60(0x1d2)][_0x5c8c60(0x1fd)](0x2)+_0x5c8c60(0x277)+_0x310d7c[_0x5c8c60(0x2b3)][_0x5c8c60(0x1fd)](0x2)+'\x20from\x20'+_0x310d7c[_0x5c8c60(0x138)]+_0x5c8c60(0x26c),_0x5c8c60(0x279)+_0x310d7c[_0x5c8c60(0x2fa)]+_0x5c8c60(0x294)+_0x310d7c[_0x5c8c60(0x318)]+_0x5c8c60(0x1de)];for(let [_0x795496,_0x571369]of Object[_0x5c8c60(0x254)](_0x310d7c[_0x5c8c60(0xf7)]))_0x58ae62[_0x5c8c60(0x206)]('\x20\x20'+_0x795496+':\x20'+_0x571369+'\x20token\x20units');process[_0x5c8c60(0x2aa)][_0x5c8c60(0x2a2)](_0x58ae62[_0x5c8c60(0x172)]('\x0a')+'\x0a');}function En(_0x582ee1){const _0x4dc569=_0x389148;if(_0x582ee1[_0x4dc569(0x31f)][_0x4dc569(0x2c3)]===0x0){process['stdout'][_0x4dc569(0x2a2)]('No\x20usage\x20in\x20the\x20last\x20'+_0x582ee1[_0x4dc569(0x202)]+_0x4dc569(0x147));return;}let _0x35cc0a=[_0x4dc569(0x1c0)];for(let _0x42ca9a of _0x582ee1[_0x4dc569(0x31f)])_0x35cc0a[_0x4dc569(0x206)](_0x42ca9a['date']+'\x20\x20'+String(_0x42ca9a[_0x4dc569(0x302)])['padStart'](0xb)+'\x20\x20'+String(_0x42ca9a[_0x4dc569(0x191)])[_0x4dc569(0x135)](0xd)+'\x20\x20'+String(_0x42ca9a[_0x4dc569(0x1c9)])[_0x4dc569(0x135)](0x11));process[_0x4dc569(0x2aa)][_0x4dc569(0x2a2)](_0x35cc0a[_0x4dc569(0x172)]('\x0a')+'\x0a');}async function xn(_0xa4dffa,_0x218b12){const _0x6b04f=_0x389148;let _0x16fd50=await In(_0xa4dffa[_0x6b04f(0x13a)],_0x218b12);_0xa4dffa[_0x6b04f(0x1a6)]&&(_0x16fd50[_0x6b04f(0x1a6)]=_0xa4dffa[_0x6b04f(0x1a6)]);let {client:_0x3eaeed}=await x(_0xa4dffa);try{_0x218b12===_0x6b04f(0x296)?m(_0xa4dffa,await _0x49c324(_0x3eaeed,_0x16fd50,void 0x0),Tn):_0x218b12===_0x6b04f(0x168)?m(_0xa4dffa,await _0x517912(_0x3eaeed,_0x16fd50,void 0x0),Dn):m(_0xa4dffa,await _0x1bc5ef(_0x3eaeed,_0x16fd50,void 0x0),Un);}catch(_0x1b3e66){if(!_0x5e5ba7(_0x1b3e66))throw _0x1b3e66;console[_0x6b04f(0x100)](_0x1b3e66[_0x6b04f(0x2c9)]),process[_0x6b04f(0x278)](0x1);}}async function In(_0x349a6c,_0x2adf06){const _0x2583f6=_0x389148;let _0x107021;try{_0x107021=_0x349a6c&&_0x349a6c!=='-'?_0x5567f6[_0x2583f6(0x26a)](_0x38b440[_0x2583f6(0x22b)](_0x349a6c),_0x2583f6(0x13e)):await J(_0x349a6c,process[_0x2583f6(0x1c8)]);}catch(_0x4425b9){console[_0x2583f6(0x100)](_0x2adf06+':\x20cannot\x20read\x20the\x20request\x20('+_0x4425b9['message']+').'),process['exit'](0x2);}return _0x107021||(console[_0x2583f6(0x100)](_0x2adf06+'\x20needs\x20a\x20JSON\x20request:\x20delegate-cli\x20'+_0x2adf06+_0x2583f6(0x19a)),process[_0x2583f6(0x278)](0x2)),_e(_0x107021,_0x2adf06,_0x2583f6(0x12b));}function _e(_0x2bce77,_0x3eb58a,_0x237dbb){const _0x37242e=_0x389148;let _0x5125af;try{_0x5125af=JSON['parse'](_0x2bce77);}catch(_0x3b359b){console[_0x37242e(0x100)](_0x3eb58a+':\x20'+_0x237dbb+_0x37242e(0x15f)+_0x3b359b['message']+').'),process[_0x37242e(0x278)](0x2);}return(typeof _0x5125af!=_0x37242e(0x1d6)||_0x5125af===null||Array[_0x37242e(0x201)](_0x5125af))&&(console[_0x37242e(0x100)](_0x3eb58a+':\x20'+_0x237dbb+_0x37242e(0x14a)),process['exit'](0x2)),_0x5125af;}function Re(_0x1dd28e,_0x5dbc70){const _0x58054c=_0x389148;let _0x1b1b47;try{_0x1b1b47=_0x5567f6[_0x58054c(0x26a)](_0x38b440[_0x58054c(0x22b)](_0x1dd28e),'utf-8');}catch(_0x132f36){console[_0x58054c(0x100)](_0x5dbc70+':\x20cannot\x20read\x20the\x20JSON\x20schema\x20('+_0x132f36['message']+').'),process['exit'](0x2);}return _e(_0x1b1b47,_0x5dbc70,'the\x20JSON\x20schema');}async function $n(_0x207a4f){const _0x295240=_0x389148;_0x207a4f[_0x295240(0x1ea)]===void 0x0&&(console['error']('complete\x20needs\x20--json-schema\x20<file>:\x20delegate-cli\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22.'),process[_0x295240(0x278)](0x2));let _0x1fd5d3=Re(_0x207a4f[_0x295240(0x1ea)],'complete'),_0x31c54c=(await J(_0x207a4f[_0x295240(0x13a)],process[_0x295240(0x1c8)]))[_0x295240(0x266)]();_0x31c54c||(console[_0x295240(0x100)](_0x295240(0x27a)),process[_0x295240(0x278)](0x2));let {client:_0x523c1c}=await x(_0x207a4f);try{let _0x1b0e0a=await _0x248f15(_0x523c1c,{'prompt':_0x31c54c,'jsonSchema':_0x1fd5d3,'model':_0x207a4f[_0x295240(0x1a6)]||process.env.MODEL||_0x35be56,..._0x207a4f[_0x295240(0x299)]!==void 0x0&&{'sessionId':_0x207a4f[_0x295240(0x299)]}},void 0x0);m(_0x207a4f,_0x1b0e0a,_0x346588=>{const _0x1c0314=_0x295240;process[_0x1c0314(0x2aa)][_0x1c0314(0x2a2)](JSON[_0x1c0314(0x141)](_0x346588[_0x1c0314(0x220)],null,0x2)+'\x0a');});}catch(_0x3a8137){if(!_0xcb2f70(_0x3a8137))throw _0x3a8137;console['error'](_0x3a8137[_0x295240(0x2c9)]),process[_0x295240(0x278)](0x1);}}function Z(_0x4211f5){const _0x1073b4=_0x389148;process[_0x1073b4(0x2aa)]['write']('Model\x20'+_0x4211f5[_0x1073b4(0x1a6)]+'\x20('+_0x4211f5[_0x1073b4(0x23b)]+_0x1073b4(0x15a)+_0x4211f5[_0x1073b4(0x150)][_0x1073b4(0x1ef)]+'\x20tokens\x0a');}function Tn(_0x59bd73){const _0x1cf370=_0x389148;Z(_0x59bd73);for(let _0x5aa354 of Object['keys'](_0x59bd73[_0x1cf370(0x2bc)])){let _0x383cfd=_0x59bd73[_0x1cf370(0x2bc)][_0x5aa354],_0x4fb1d4=_0x383cfd[_0x1cf370(0x243)]===_0x1cf370(0x1ae)?_0x1cf370(0x234)+_0x383cfd[_0x1cf370(0x1ae)]['toFixed'](0x2):_0x383cfd[_0x1cf370(0x243)]===_0x1cf370(0x151)?_0x1cf370(0x2e1)+_0x383cfd[_0x1cf370(0x151)]+_0x1cf370(0x117)+_0x383cfd[_0x1cf370(0x2b4)]['toFixed'](0x2)+')':_0x1cf370(0x2b0)+_0x383cfd[_0x1cf370(0x205)][_0x1cf370(0x1fd)](0x2)+_0x1cf370(0x117)+_0x383cfd[_0x1cf370(0x2b4)][_0x1cf370(0x1fd)](0x2)+')';process[_0x1cf370(0x2aa)]['write']('\x20\x20'+_0x5aa354+':\x20'+_0x4fb1d4+'\x0a');}}function Dn(_0xdc9a65){const _0x3b931c=_0x389148;Z(_0xdc9a65),_0xdc9a65[_0x3b931c(0x1ab)][_0x3b931c(0x21c)]((_0xce9aea,_0x4ecdcd)=>{const _0x3915b3=_0x3b931c;process[_0x3915b3(0x2aa)][_0x3915b3(0x2a2)]('\x20\x20'+(_0x4ecdcd+0x1)+'.\x20'+_0xce9aea['id']+'\x20\x20'+_0xce9aea[_0x3915b3(0x205)][_0x3915b3(0x1fd)](0x3)+_0x3915b3(0x1bb)+_0xce9aea[_0x3915b3(0x24c)]+')\x0a');});}function Un(_0x21c358){const _0x49ae88=_0x389148;Z(_0x21c358),process[_0x49ae88(0x2aa)]['write'](_0x49ae88(0x2e2)+_0x21c358['rubric_version']+'\x0a');for(let _0x14096f of _0x21c358[_0x49ae88(0x1ab)])process[_0x49ae88(0x2aa)][_0x49ae88(0x2a2)]('\x20\x20'+_0x14096f['id']+':\x20'+_0x14096f[_0x49ae88(0x239)]+'\x20(confidence\x20'+_0x14096f[_0x49ae88(0x2b4)][_0x49ae88(0x1fd)](0x2)+')\x0a');}async function Nn(_0x2e1fd0){const _0x15b0f2=_0x389148;let _0x1d5732=_0x2e1fd0[_0x15b0f2(0x13a)][_0x15b0f2(0x266)]();_0x1d5732||(console['error'](_0x15b0f2(0x275)),process[_0x15b0f2(0x278)](0x2));let {client:_0x2e86f4}=await x(_0x2e1fd0);try{let _0x28eb1c=_0x1d5732==='-'?{'data':await Rn(process[_0x15b0f2(0x1c8)])}:_0x1d5732;m(_0x2e1fd0,await _0x46c865(_0x2e86f4,_0x28eb1c,void 0x0),_0x96f8f8=>{const _0x21fd16=_0x15b0f2;process['stdout'][_0x21fd16(0x2a2)](_0x96f8f8['text']+'\x0a');});}catch(_0x176068){if(_0x466f6b(_0x176068)&&(console[_0x15b0f2(0x100)](_0x176068[_0x15b0f2(0x2c9)]),process['exit'](_0x176068[_0x15b0f2(0x271)]===void 0x0?0x2:0x1)),typeof _0x176068?.[_0x15b0f2(0x31c)]!=_0x15b0f2(0x173))throw _0x176068;console[_0x15b0f2(0x100)](_0x15b0f2(0x223)+_0x1d5732+'\x20('+_0x176068[_0x15b0f2(0x2c9)]+').'),process[_0x15b0f2(0x278)](0x2);}}async function Pn(_0x16a97c){const _0x52ac82=_0x389148;let [_0x5b72a9,_0x57f0ad,..._0x3f49e5]=_0x16a97c['operands'];(!_0x5b72a9||_0x3f49e5[_0x52ac82(0x2c3)]>0x0||!_0x16a97c[_0x52ac82(0x104)])&&(console['error'](_0x52ac82(0x116)),process[_0x52ac82(0x278)](0x2));let _0x56c35f;try{_0x56c35f=await _0x2d0ed7({'projectId':_0x16a97c[_0x52ac82(0x104)],'type':_0x5b72a9,..._0x57f0ad?{'documentId':_0x57f0ad}:{},..._0x16a97c[_0x52ac82(0x29c)]?{'workingDirectory':_0x16a97c[_0x52ac82(0x29c)]}:{}});}catch(_0x4b6ec0){console['error'](_0x52ac82(0x297)+(_0x4b6ec0 instanceof Error?_0x4b6ec0['message']:String(_0x4b6ec0))),process[_0x52ac82(0x278)](0x1);}m(_0x16a97c,_0x56c35f,_0x1a7895=>{const _0x330760=_0x52ac82;process[_0x330760(0x2aa)]['write'](_0x1a7895[_0x330760(0x2c9)]+'\x0a');});}var he=_0x389148(0x2cc),ye='Usage:\x20delegate-cli\x20maps\x20save-version\x20MESSAGE\x20--project\x20ID\x20[--working-dir\x20PATH]';async function _n(_0x30859c){const _0x426b0b=_0x389148;let [_0x1c28f5='',..._0xfe0703]=_0x30859c[_0x426b0b(0x248)];if(_0x1c28f5===_0x426b0b(0x1d8)){(_0xfe0703[_0x426b0b(0x2c3)]>0x0||!_0x30859c[_0x426b0b(0x104)]||!_0x30859c[_0x426b0b(0x208)]||!_0x30859c[_0x426b0b(0x16e)])&&(console[_0x426b0b(0x100)](he),process[_0x426b0b(0x278)](0x2));let _0x1376dd=await we(_0x426b0b(0x1d8),()=>_0x217b10({'projectId':_0x30859c[_0x426b0b(0x104)],'remote':_0x30859c[_0x426b0b(0x208)],'mapName':_0x30859c[_0x426b0b(0x16e)],..._0x30859c[_0x426b0b(0x29c)]?{'workingDirectory':_0x30859c['workingDirectory']}:{}}));m(_0x30859c,_0x1376dd,_0x149ec7=>{const _0x24b232=_0x426b0b;process[_0x24b232(0x2aa)][_0x24b232(0x2a2)](_0x24b232(0x2d3)+_0x30859c[_0x24b232(0x104)]+_0x24b232(0x1f9)+_0x149ec7[_0x24b232(0x208)]+_0x24b232(0x20c)+_0x149ec7[_0x24b232(0x16e)]+_0x24b232(0x2f6));});return;}if(_0x1c28f5===_0x426b0b(0x1bc)){let _0x4b3fce=_0xfe0703['join']('\x20')[_0x426b0b(0x266)]();(!_0x4b3fce||!_0x30859c[_0x426b0b(0x104)])&&(console[_0x426b0b(0x100)](ye),process[_0x426b0b(0x278)](0x2));let _0x3d11bc=await we(_0x426b0b(0x1bc),()=>_0x1d3723({'projectId':_0x30859c[_0x426b0b(0x104)],'message':_0x4b3fce,..._0x30859c['workingDirectory']?{'workingDirectory':_0x30859c[_0x426b0b(0x29c)]}:{}}));m(_0x30859c,_0x3d11bc,_0x5149f6=>{const _0x31fbd4=_0x426b0b;process[_0x31fbd4(0x2aa)][_0x31fbd4(0x2a2)]('Saved\x20version\x20'+_0x5149f6[_0x31fbd4(0x2e3)]+_0x31fbd4(0x316)+_0x30859c[_0x31fbd4(0x104)]+':\x20'+_0x5149f6[_0x31fbd4(0x2c9)]+'\x0a');});return;}console[_0x426b0b(0x100)](he+'\x0a'+ye),process[_0x426b0b(0x278)](0x2);}async function we(_0xb6689d,_0xa9dc16){const _0xc3a628=_0x389148;try{return await _0xa9dc16();}catch(_0x5f0f25){let _0x3956ce=_0x5f0f25?.[_0xc3a628(0x1b1)],_0x463104=Array['isArray'](_0x3956ce)&&_0x3956ce[_0xc3a628(0x2c3)]>0x0?'\x20('+_0x3956ce[_0xc3a628(0x172)](',\x20')+')':'';console[_0xc3a628(0x100)]('maps\x20'+_0xb6689d+':\x20'+(_0x5f0f25 instanceof Error?_0x5f0f25[_0xc3a628(0x2c9)]:String(_0x5f0f25))+_0x463104),process['exit'](0x1);}}async function Rn(_0x385801){const _0x696a40=_0x389148;let _0x12265d=[];for await(let _0x3d87e6 of _0x385801)_0x12265d[_0x696a40(0x206)](Buffer[_0x696a40(0x26f)](_0x3d87e6));return Buffer[_0x696a40(0x174)](_0x12265d);}var ke=['list','pending','show',_0x389148(0x269),_0x389148(0x107),_0x389148(0x1d4),_0x389148(0x12c),'dismiss',_0x389148(0x1f5),'delete'],be={'list':_0x389148(0x124),'pending':'delegations\x20pending\x20<session-id>','show':_0x389148(0x29f),'create':'delegations\x20create\x20--session\x20<id>\x20[--to\x20<email|name>]\x20[--summary\x20<text>]\x20\x22<task>\x22|-','claim':'delegations\x20claim\x20<delegation-id|delegate://delegation/…>','complete':_0x389148(0x1e2),'accept':_0x389148(0x28c),'dismiss':_0x389148(0x303),'cancel':'delegations\x20cancel\x20<delegation-id>','delete':_0x389148(0x13b)};async function On(_0x4810ff){const _0x511da8=_0x389148;let [_0x36c973='',_0xa4a853='',..._0x4798cc]=_0x4810ff['operands'];ke[_0x511da8(0x2b5)](_0x36c973)||(console['error']((_0x36c973?_0x511da8(0x20b)+_0x36c973+'.\x20':'')+_0x511da8(0x2c5)+ke[_0x511da8(0x172)](_0x511da8(0x315))+'.'),process[_0x511da8(0x278)](0x2));let _0x26c179=_0x36c973;_0x26c179!==_0x511da8(0x269)&&(_0x4810ff[_0x511da8(0x225)]!==void 0x0||_0x4810ff['contextSummary']!==void 0x0||_0x4810ff[_0x511da8(0x299)]!==void 0x0)&&(console['error']('--to,\x20--summary\x20and\x20--session\x20apply\x20to\x20`delegate-cli\x20delegations\x20create`\x20only.'),process['exit'](0x2));let _0x3f7791=(_0x26c179===_0x511da8(0x269)?_0x4810ff[_0x511da8(0x248)][_0x511da8(0x1c3)](0x1):_0x4798cc)[_0x511da8(0x172)]('\x20')[_0x511da8(0x266)](),_0x256aa9=_0x26c179===_0x511da8(0x269)||_0x26c179===_0x511da8(0x1d4);(_0x26c179!=='create'&&!_0xa4a853||(_0x256aa9?!_0x3f7791:_0x3f7791)||_0x26c179===_0x511da8(0x269)&&!_0x4810ff[_0x511da8(0x299)])&&(console[_0x511da8(0x100)](_0x511da8(0x19c)+be[_0x26c179]),process[_0x511da8(0x278)](0x2));let _0x5c0567=_0x256aa9&&_0x3f7791==='-'?(await J('-',process[_0x511da8(0x1c8)]))[_0x511da8(0x266)]():_0x3f7791;_0x256aa9&&!_0x5c0567&&(console[_0x511da8(0x100)]('Usage:\x20delegate-cli\x20'+be[_0x26c179]+_0x511da8(0x137)),process[_0x511da8(0x278)](0x2));let {client:_0x8c09df}=await x(_0x4810ff);try{await Ln(_0x4810ff,_0x8c09df,_0x26c179,_0xa4a853,_0x5c0567);}catch(_0x2257f5){if(!_0x56b0e3(_0x2257f5))throw _0x2257f5;console['error'](_0x2257f5[_0x511da8(0x2c9)]),process['exit'](0x1);}}async function Ln(_0x243741,_0x412b5b,_0x32da37,_0xb2c95,_0x5a6ec7){const _0x3bacd7=_0x389148;switch(_0x32da37){case _0x3bacd7(0x1e5):m(_0x243741,await _0x5a3954(_0x412b5b,_0xb2c95),Cn);return;case'pending':m(_0x243741,await _0x570d2a(_0x412b5b,_0xb2c95),_0x592f50=>{const _0x535cb3=_0x3bacd7;_0x592f50[_0x535cb3(0x1bf)]&&process['stdout'][_0x535cb3(0x2a2)](_0x535cb3(0x25d)+_0x592f50[_0x535cb3(0x1bf)]['id']+'\x20('+_0x592f50[_0x535cb3(0x1bf)]['status']+_0x535cb3(0x314)),_0x592f50[_0x535cb3(0x127)][_0x535cb3(0x2c3)]===0x0&&process['stderr']['write'](_0x535cb3(0x10d));for(let _0x3408da of _0x592f50[_0x535cb3(0x127)])process['stdout'][_0x535cb3(0x2a2)]('\x0a'+_0x3408da['id']+_0x535cb3(0x20e)+(_0x3408da[_0x535cb3(0x1c5)]??_0x535cb3(0x1d7))+'\x20\x20'+(_0x3408da['task']??'')+'\x0a'+(_0x3408da['result']?.[_0x535cb3(0x2b8)]??'')+'\x0a');_0x592f50['pendingResults']['length']>0x0&&process[_0x535cb3(0x2fd)][_0x535cb3(0x2a2)]('\x0aAccept\x20one\x20with:\x20delegate-cli\x20delegations\x20accept\x20<id>\x0a');});return;case _0x3bacd7(0x27d):m(_0x243741,await _0x25a4ac(_0x412b5b,_0xb2c95),ve);return;case _0x3bacd7(0x269):{let _0x38ea6b=await _0x13c211(_0x412b5b,{'sessionId':_0x243741['sessionId'],'task':_0x5a6ec7,..._0x243741[_0x3bacd7(0x2fe)]!==void 0x0&&{'contextSummary':_0x243741[_0x3bacd7(0x2fe)]},..._0x243741[_0x3bacd7(0x225)]!==void 0x0&&{'recipient':_0x243741[_0x3bacd7(0x225)]}});m(_0x243741,_0x38ea6b,_0x223dba=>{const _0x298008=_0x3bacd7;_0x223dba[_0x298008(0x111)]?process[_0x298008(0x2aa)][_0x298008(0x2a2)](_0x298008(0x2d2)+_0x223dba['delegationId']+'\x20to\x20'+_0x223dba['assignedUser'][_0x298008(0x22f)]+'\x20<'+_0x223dba[_0x298008(0x111)][_0x298008(0x1a5)]+'>.\x0a'):process[_0x298008(0x2aa)][_0x298008(0x2a2)]('Created\x20delegation\x20'+_0x223dba['delegationId']+'.\x20Share:\x20'+_0x223dba[_0x298008(0x1dd)]+'\x0a');});return;}case _0x3bacd7(0x107):{let _0x336f99=await _0x196de5(_0x412b5b,_0xb2c95);m(_0x243741,_0x336f99,_0x19094f=>{const _0x1d2537=_0x3bacd7;ve(_0x19094f),process['stdout'][_0x1d2537(0x2a2)]('Session\x20\x20\x20\x20\x20\x20\x20'+_0x19094f[_0x1d2537(0x299)]+'\x0a'),process[_0x1d2537(0x2fd)][_0x1d2537(0x2a2)](_0x1d2537(0x1a1)+_0x19094f['sessionId']+_0x1d2537(0x1ba)+_0x19094f[_0x1d2537(0x1f2)]+_0x1d2537(0x2f0));});return;}case _0x3bacd7(0x1d4):{let {alreadyCompleted:_0x4d840a}=await _0x1ce39f(_0x412b5b,_0xb2c95,{'content':_0x5a6ec7});m(_0x243741,{'delegationId':_0xb2c95,'alreadyCompleted':_0x4d840a},_0x382024=>{const _0x5d12d8=_0x3bacd7;process[_0x5d12d8(0x2aa)][_0x5d12d8(0x2a2)]((_0x382024[_0x5d12d8(0x11b)]?_0x5d12d8(0x21d):_0x5d12d8(0x184))+_0x5d12d8(0x2eb)+_0x382024[_0x5d12d8(0x1f2)]+'.\x0a');});return;}case'accept':{let _0x47e130=await _0x33d747(_0x412b5b,_0xb2c95);m(_0x243741,{'delegationId':_0xb2c95,..._0x47e130},_0x327256=>{const _0x2059be=_0x3bacd7;process[_0x2059be(0x2aa)][_0x2059be(0x2a2)]((_0x327256[_0x2059be(0x181)]?'Already\x20accepted':_0x2059be(0x176))+_0x2059be(0x2eb)+_0x327256[_0x2059be(0x1f2)]+'.\x0a');});return;}default:{let _0xb2f25d={'dismiss':_0x1939f5,'cancel':_0x2793e9,'delete':_0x3f4a60}[_0x32da37];await _0xb2f25d(_0x412b5b,_0xb2c95);let _0x2add2a={'dismiss':_0x3bacd7(0x180),'cancel':'cancelled','delete':'deleted'}[_0x32da37];m(_0x243741,{'delegationId':_0xb2c95,[_0x2add2a]:!0x0},()=>{const _0x5bfbf0=_0x3bacd7;process[_0x5bfbf0(0x2aa)]['write'](''+_0x2add2a[0x0][_0x5bfbf0(0x24b)]()+_0x2add2a[_0x5bfbf0(0x1c3)](0x1)+_0x5bfbf0(0x2eb)+_0xb2c95+'.\x0a');});}}}function Cn(_0x30d1d1){const _0x361646=_0x389148;if(_0x30d1d1[_0x361646(0x2c3)]===0x0){process[_0x361646(0x2fd)][_0x361646(0x2a2)]('No\x20delegations.\x0a');return;}process[_0x361646(0x2aa)][_0x361646(0x2a2)]('ID'['padEnd'](0x24)+'\x20\x20'+'STATUS'[_0x361646(0xf8)](0x9)+'\x20\x20'+_0x361646(0x2b6)[_0x361646(0xf8)](0x18)+'\x20\x20TASK\x0a');for(let _0x281906 of _0x30d1d1)process[_0x361646(0x2aa)][_0x361646(0x2a2)](_0x281906['id']['padEnd'](0x24)+'\x20\x20'+_0x281906['status'][_0x361646(0xf8)](0x9)+'\x20\x20'+(_0x281906['assignedUserEmail']??'-')[_0x361646(0xf8)](0x18)+'\x20\x20'+(_0x281906[_0x361646(0x218)]??'')+'\x0a');}function ve(_0x3faae4){const _0x340b71=_0x389148;process[_0x340b71(0x2aa)][_0x340b71(0x2a2)](_0x340b71(0x2a6)+(_0x3faae4[_0x340b71(0x238)]??'-')+'\x0a'),_0x3faae4[_0x340b71(0x31e)]&&process[_0x340b71(0x2aa)][_0x340b71(0x2a2)]('Session\x20\x20\x20\x20\x20\x20\x20'+_0x3faae4[_0x340b71(0x31e)]+'\x0a'),process[_0x340b71(0x2aa)]['write'](_0x340b71(0x259)+(_0x3faae4['task']??'-')+'\x0a'),_0x3faae4[_0x340b71(0x2fe)]&&process['stdout']['write']('\x0a'+_0x3faae4[_0x340b71(0x2fe)]+'\x0a\x0a');}async function jn(_0x11a895){const _0xf410f9=_0x389148;_0x11a895[_0xf410f9(0x13a)][_0xf410f9(0x266)]()||(console[_0xf410f9(0x100)]('Usage:\x20delegate-cli\x20org-users\x20<name\x20or\x20email\x20prefix>'),process[_0xf410f9(0x278)](0x2));let {client:_0x5f79f4}=await x(_0x11a895),_0x237fa8;try{_0x237fa8=await _0x35525e(_0x5f79f4,_0x11a895['prompt']);}catch(_0x2c8ecd){if(!_0x56b0e3(_0x2c8ecd))throw _0x2c8ecd;console[_0xf410f9(0x100)](_0x2c8ecd[_0xf410f9(0x2c9)]),process[_0xf410f9(0x278)](0x1);}m(_0x11a895,_0x237fa8,_0x68160c=>{const _0x748c27=_0xf410f9;_0x68160c['length']===0x0&&process['stderr'][_0x748c27(0x2a2)](_0x748c27(0x14b)+_0x11a895[_0x748c27(0x13a)][_0x748c27(0x266)]()+_0x748c27(0x2f6));for(let _0x3f2c78 of _0x68160c)process[_0x748c27(0x2aa)]['write'](_0x3f2c78[_0x748c27(0x1a5)][_0x748c27(0xf8)](0x20)+'\x20\x20'+_0x3f2c78[_0x748c27(0x22f)]+'\x0a');});}async function Mn(_0x29e22b){const _0x11e73b=_0x389148;_0x29e22b['env']===_0x11e73b(0x1af)&&(console[_0x11e73b(0x100)](_0x11e73b(0x105)),process[_0x11e73b(0x278)](0x2));let _0x15e901=G(_0x3dea55()),_0x1b0bf0=_0x29e22b[_0x11e73b(0x178)];if(_0x29e22b[_0x11e73b(0x10c)]){let _0x18b9ec=_0x29e22b[_0x11e73b(0x10c)];await _0x4245fd({'env':_0x18b9ec,'tenant':_0x29e22b[_0x11e73b(0x2bf)]??q(_0x15e901,_0xe9a390[_0x18b9ec]),'skipEnvCheck':_0x1b0bf0});return;}let _0x882574=_0x29e22b[_0x11e73b(0x2f2)]??Pe();if(_0x882574){await _0x4245fd({'baseUrl':_0x882574,'tenant':_0x29e22b['tenant']??q(_0x15e901,_0x882574),'skipEnvCheck':_0x1b0bf0});return;}if(_0x15e901?.[_0x11e73b(0x161)]){await _0x4245fd({'baseUrl':_0x15e901[_0x11e73b(0x161)],'tenant':_0x29e22b[_0x11e73b(0x2bf)]??_0x15e901['tenantName'],'skipEnvCheck':_0x1b0bf0});return;}console['error']('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'),process['exit'](0x2);}function q(_0x34b3c5,_0xae29af){const _0x1c5c58=_0x389148;return _0x34b3c5?.[_0x1c5c58(0x161)]&&Fn(_0x34b3c5[_0x1c5c58(0x161)],_0xae29af)?_0x34b3c5[_0x1c5c58(0x25c)]:void 0x0;}function Fn(_0x51ee94,_0x1a90cf){const _0x1e7417=_0x389148;try{return new URL(_0x51ee94)[_0x1e7417(0x263)]===new URL(_0x1a90cf)[_0x1e7417(0x263)];}catch{return!0x1;}}async function Bn(_0x56a9e8){const _0x4dc712=_0x389148;z()&&(console[_0x4dc712(0x100)]('Auth\x20comes\x20from\x20AUTH_TOKEN/TENANT_ID/ORG_ID\x20—\x20set\x20TENANT_ID\x20and\x20TENANT_SLUG\x20to\x20change\x20the\x20tenant.'),process['exit'](0x2));let _0x576725=await _0x1247f1();if(_0x576725||(console[_0x4dc712(0x100)](Hn()),process[_0x4dc712(0x278)](0x2)),_0x56a9e8[_0x4dc712(0x266)]()){let _0x4fce87=await _0x477a89(_0x576725,_0x56a9e8);_0xf63c33(_0x4fce87)||(console[_0x4dc712(0x100)]('Tenant\x20not\x20switched:\x20could\x20not\x20write\x20'+_0x3dea55()+_0x4dc712(0x22c)+_0x576725['tenantName']+'.'),process[_0x4dc712(0x278)](0x1)),console['log'](_0x4dc712(0x1db)+_0x4fce87[_0x4dc712(0x25c)]+'\x20('+_0x4fce87['tenantId']+_0x4dc712(0x140)+_0x3dea55());return;}Jn(await _0x37da2d(_0x576725),_0x576725);}function Hn(){const _0x566333=_0x389148;if(_0x5567f6['existsSync'](_0x3dea55()))return _0x566333(0x1b8);let _0xec916f=Y();return G(_0xec916f)?_0x566333(0x24e)+_0xec916f+_0x566333(0x198):_0x566333(0x2f8);}function Jn(_0x3fb8ae,_0x1f6bad){const _0x352628=_0x389148;let _0x1b9425=_0x3fb8ae[_0x352628(0x1a2)](_0x1983a4=>_0x1983a4['id']===_0x1f6bad[_0x352628(0x2b9)]?'*\x20'+_0x1983a4['name']+_0x352628(0x1a9):'\x20\x20'+_0x1983a4[_0x352628(0x249)]);process[_0x352628(0x2aa)][_0x352628(0x2a2)](_0x352628(0x15b)+(_0x1f6bad['orgLogicalName']??_0x1f6bad[_0x352628(0x1e7)])+':\x0a'+_0x1b9425[_0x352628(0x172)]('\x0a')+'\x0a'),_0x3fb8ae['length']>0x1&&process[_0x352628(0x2aa)][_0x352628(0x2a2)](_0x352628(0x2d1));}function Gn(_0x5138c8){const _0x5aa074=_0x389148;return _0x5138c8?.[_0x5aa074(0x29e)]?.[_0x5aa074(0x271)]===0x191||/401/['test'](String(_0x5138c8?.['message']??''));}var w={'lastType':null,'quiet':!0x1},Oe=_0x4cda90=>{const _0x3e6eea=_0x389148;switch(_0x4cda90['type']){case _0x3e6eea(0x282):_0x4cda90[_0x3e6eea(0x299)]&&_0x4cda90[_0x3e6eea(0x299)]!==w[_0x3e6eea(0x299)]&&(process[_0x3e6eea(0x2fd)][_0x3e6eea(0x2a2)](_0x3e6eea(0x209)+_0x4cda90[_0x3e6eea(0x299)]+'\x20(resume\x20with\x20--session\x20'+_0x4cda90[_0x3e6eea(0x299)]+')\x0a'),w[_0x3e6eea(0x299)]=_0x4cda90[_0x3e6eea(0x299)]);break;case _0x3e6eea(0x197):_0x4cda90['turnId']&&_0x4cda90['turnId']!==w[_0x3e6eea(0x1d9)]&&(w[_0x3e6eea(0x2e5)]!==null&&process[_0x3e6eea(0x2fd)][_0x3e6eea(0x2a2)]('\x0a'),process[_0x3e6eea(0x2fd)][_0x3e6eea(0x2a2)]('Turn:\x20'+_0x4cda90[_0x3e6eea(0x1d9)]+_0x3e6eea(0x265)+_0x4cda90[_0x3e6eea(0x299)]+_0x3e6eea(0x144)+_0x4cda90[_0x3e6eea(0x1d9)]+')\x0a'),w[_0x3e6eea(0x1d9)]=_0x4cda90[_0x3e6eea(0x1d9)],w['lastType']='turn_start');break;case _0x3e6eea(0x171):_0x4cda90[_0x3e6eea(0x2b8)]&&!w[_0x3e6eea(0x2c7)]&&(w[_0x3e6eea(0x2e5)]!=='thinking'&&process['stderr'][_0x3e6eea(0x2a2)]('\x0a🤔\x20'),process[_0x3e6eea(0x2fd)][_0x3e6eea(0x2a2)](_0x4cda90[_0x3e6eea(0x2b8)]),w['lastType']=_0x3e6eea(0x171));break;case _0x3e6eea(0x1e3):w['lastType']!==null&&process[_0x3e6eea(0x2fd)][_0x3e6eea(0x2a2)]('\x0a'),process[_0x3e6eea(0x2fd)][_0x3e6eea(0x2a2)](_0x3e6eea(0x14d)+(_0x4cda90[_0x3e6eea(0x2da)]??'tool')+'\x0a'),w[_0x3e6eea(0x2e5)]=_0x3e6eea(0x1e3);break;case _0x3e6eea(0x2c9):_0x4cda90[_0x3e6eea(0x2b8)]&&(w[_0x3e6eea(0x2e5)]!==_0x3e6eea(0x2c9)&&w[_0x3e6eea(0x2e5)]!==null&&process[_0x3e6eea(0x2aa)][_0x3e6eea(0x2a2)]('\x0a'),process[_0x3e6eea(0x2aa)][_0x3e6eea(0x2a2)](_0x4cda90[_0x3e6eea(0x2b8)]),w['lastType']=_0x3e6eea(0x2c9));break;case _0x3e6eea(0x100):w[_0x3e6eea(0x2e5)]!==null&&process[_0x3e6eea(0x2fd)]['write']('\x0a'),process[_0x3e6eea(0x2fd)][_0x3e6eea(0x2a2)]('✗\x20'+(_0x4cda90['error']??_0x3e6eea(0x100))+'\x0a'),w['lastType']=_0x3e6eea(0x100);break;case _0x3e6eea(0x2ee):(w[_0x3e6eea(0x2e5)]===_0x3e6eea(0x2c9)||w[_0x3e6eea(0x2e5)]===_0x3e6eea(0x171))&&process[_0x3e6eea(0x2aa)]['write']('\x0a'),process[_0x3e6eea(0x2fd)][_0x3e6eea(0x2a2)](_0x3e6eea(0x1a3)),w['lastType']=_0x3e6eea(0x2ee);break;}};function Se(_0xd9d9b1,_0x1970bd,_0x3cc3d7,_0x30541f){const _0x56a474=_0x389148;let _0x22bbb0=_0xd9d9b1['model']||process.env.MODEL;return{'backendUrl':_0x3cc3d7,'auth':_0x1970bd,'enableComputerUse':!_0xd9d9b1[_0x56a474(0x200)]&&!_0xd9d9b1['noComputerUse'],'autoSpawnInterop':!_0xd9d9b1[_0x56a474(0x200)],'enableConnections':!_0xd9d9b1['noConnections'],'enableSecurity':!_0xd9d9b1[_0x56a474(0x280)],'keepInteropAlive':_0xd9d9b1['keepAlive'],..._0x30541f[_0x56a474(0x1ce)]?{'enableBackgroundCommands':!0x1}:{},..._0xd9d9b1['noMemory']?{'enableMemory':!0x1}:{},..._0xd9d9b1['taskAutomation']?{'enableTaskAutomation':!0x0}:{},..._0xd9d9b1[_0x56a474(0x101)]['length']>0x0?{'preloadSkills':_0xd9d9b1[_0x56a474(0x101)]}:{},..._0x22bbb0?{'model':_0x22bbb0}:{},..._0xd9d9b1['projectId']?{'projectId':_0xd9d9b1[_0x56a474(0x104)]}:{},..._0xd9d9b1[_0x56a474(0x2ec)]?{'vertical':_0xd9d9b1[_0x56a474(0x2ec)]}:{},..._0xd9d9b1['workingDirectory']?{'workingDirectory':_0xd9d9b1[_0x56a474(0x29c)]}:{},..._0xd9d9b1['bundledSkillsPath']?{'bundledSkillsPath':_0xd9d9b1[_0x56a474(0x224)]}:{},..._0xd9d9b1['effort']?{'effort':_0xd9d9b1[_0x56a474(0x2f7)]}:{},..._0xd9d9b1[_0x56a474(0x299)]?{'sessionId':_0xd9d9b1[_0x56a474(0x299)]}:{},..._0xd9d9b1['verbose']?{'verbose':!0x0}:{}};}async function Wn(_0xb5635a){const _0x54620a=_0x389148;let _0x5c3f92=_0xb5635a[_0x54620a(0x2df)]!=='text',_0x2f7ed0=_0xb5635a[_0x54620a(0x1ea)]===void 0x0?null:Re(_0xb5635a[_0x54620a(0x1ea)],_0x54620a(0x236)),_0x1a14e6=!_0x5c3f92&&!_0x2f7ed0&&!_0xb5635a[_0x54620a(0x17d)]&&_0xb5635a[_0x54620a(0x13a)]!=='-'&&!!process[_0x54620a(0x1c8)]['isTTY']&&!!process[_0x54620a(0x2aa)][_0x54620a(0x133)],_0x2e38b3=_0xb5635a[_0x54620a(0x2cb)]==='stream-json'?re(process[_0x54620a(0x1c8)],_0x1e1212=>{const _0x2bd693=_0x54620a;process[_0x2bd693(0x2fd)][_0x2bd693(0x2a2)](_0x1e1212['message']+_0x2bd693(0x291));}):null,_0x21ce4c=_0x2e38b3?(await _0x2e38b3[_0x54620a(0x18a)]())[_0x54620a(0x177)]:void 0x0,_0x1c5165=_0x2e38b3?_0x21ce4c?.['text']??'':_0x1a14e6?_0xb5635a['prompt'][_0x54620a(0x266)]():await J(_0xb5635a['prompt'],process['stdin']);if(!_0x1a14e6&&!_0x1c5165&&(console['error']('Missing\x20prompt.\x20Pass\x20it\x20as\x20an\x20argument,\x20pipe\x20it\x20via\x20stdin,\x20or\x20run\x20`delegate-cli\x20--help`.'),process[_0x54620a(0x278)](0x2)),!_0x5c3f92){await Ae(_0xb5635a,_0x1c5165,_0x1a14e6,null,_0x2f7ed0,null);return;}let _0x5af749=!0x1,_0x2aa0ff=_0x5dafd9=>{const _0xcd3e49=_0x54620a;_0x5af749=!0x0,L(_0x34b807(_0x5dafd9)),(_0x5dafd9[_0xcd3e49(0x17e)]||_0x5dafd9['structuredError'])&&(process[_0xcd3e49(0x317)]=0x1);},_0x51b014=Date[_0x54620a(0x108)]();try{await Ae(_0xb5635a,_0x1c5165,!0x1,_0x2aa0ff,_0x2f7ed0,_0x2e38b3?{'messages':_0x2e38b3,'first':_0x21ce4c,'close':()=>{const _0x28bb6d=_0x54620a;process[_0x28bb6d(0x1c8)][_0x28bb6d(0x23d)]();}}:null);}catch(_0x353b62){if(_0x5af749)throw _0x353b62;process['stderr'][_0x54620a(0x2a2)]((_0x353b62 instanceof Error?_0x353b62[_0x54620a(0x16c)]??_0x353b62[_0x54620a(0x2c9)]:String(_0x353b62))+'\x0a'),_0x2aa0ff(new _0x501881(_0x51b014)[_0x54620a(0x194)]({'endedAtMs':Date[_0x54620a(0x108)](),'usage':[],'error':_0x353b62}));}finally{_0x2e38b3&&(process[_0x54620a(0x1c8)][_0x54620a(0x23d)](),_0x2e38b3[_0x54620a(0x27e)](void 0x0));}}async function Ae(_0x2c2524,_0x5882a1,_0x57fc17,_0x20396d,_0x2d1e1c,_0x26e919){const _0x14774f=_0x389148;w={'lastType':null,'quiet':_0x2c2524[_0x14774f(0x2c7)]};let _0x2b5392=new Set(),_0x12179a,_0x441876=_0x848ff9=>{const _0x5ec100=_0x14774f;(!_0x20396d||_0x848ff9[_0x5ec100(0x243)]===_0x5ec100(0x282)||_0x848ff9['type']===_0x5ec100(0x197))&&(_0x12179a??Oe)(_0x848ff9);for(let _0x7ae53d of _0x2b5392)_0x7ae53d(_0x848ff9);},_0x857f83=await V(),_0x4eb0e4=new _0x1702c2();_0x4eb0e4[_0x14774f(0x2cf)](_0x441876);let _0x2fdf25=_0x48bc74(_0x2c2524[_0x14774f(0x10c)],_0x857f83,_0x2c2524[_0x14774f(0x2bb)]);X(_0x2c2524[_0x14774f(0x10c)],_0x2c2524['backendUrl'],_0x2fdf25);let _0x3e7db2={'input':null},_0x4e9e44=_0x57fc17?ne(()=>_0x3e7db2['input'],_0x1efbcb=>{const _0x6fdaec=_0x14774f;process[_0x6fdaec(0x2fd)][_0x6fdaec(0x2a2)](_0x1efbcb);}):null,_0x1101d1=_0x52e0f7=>_0x4e9e44?{..._0x52e0f7,'askUser':_0x4e9e44}:_0x52e0f7,_0x4b8868=_0x1101d1(Se(_0x2c2524,_0x857f83,_0x2fdf25,{'oneTurn':!_0x57fc17})),_0x109a0b=!0x1,_0x51aea4=!0x1,_0x9f7d36,_0x4b12d0=()=>_0x9f7d36??=_0x4eb0e4[_0x14774f(0xf6)](),_0xb893bd=()=>{const _0x2034df=_0x14774f;_0x51aea4&&process['exit'](0x82),_0x51aea4=!0x0,process[_0x2034df(0x2fd)][_0x2034df(0x2a2)](_0x2034df(0x1b5)),_0x109a0b&&_0x4eb0e4[_0x2034df(0x1f5)]()[_0x2034df(0x121)](_0x1209fe=>console[_0x2034df(0x100)](_0x1209fe))[_0x2034df(0x11a)](_0x4b12d0)['then'](()=>process[_0x2034df(0x278)](0x82),_0xd0a6f9=>{const _0x6f154f=_0x2034df;console[_0x6f154f(0x100)](_0xd0a6f9),process[_0x6f154f(0x278)](0x82);});};process['on'](_0x14774f(0x170),_0xb893bd);let _0x26a5c9=_0x2c2524[_0x14774f(0x2f3)],_0x116ae2=async _0x50ca5b=>{const _0x387ade=_0x14774f;let _0x457cdf=_0x26a5c9;_0x26a5c9=[];let _0x474285=()=>_0x4eb0e4[_0x387ade(0x24a)](_0x50ca5b,{'attachments':_0x457cdf});try{return await _0x474285();}catch(_0x598486){if(_0x51aea4||!Gn(_0x598486)||!process[_0x387ade(0x1c8)][_0x387ade(0x133)]||_0x2c2524[_0x387ade(0x10c)]===_0x387ade(0x1af)||!(_0x2c2524[_0x387ade(0x10c)]||_0x857f83[_0x387ade(0x161)]))throw _0x598486;process[_0x387ade(0x2fd)][_0x387ade(0x2a2)]('\x0a⚠️\x20\x20Auth\x20expired.\x20Opening\x20browser\x20to\x20re-login…\x0a');let _0x4acde3=_0x4eb0e4[_0x387ade(0x245)]()??_0x2c2524[_0x387ade(0x299)],_0x45dbb5=await _0x4245fd(_0x2c2524[_0x387ade(0x10c)]?{'env':_0x2c2524[_0x387ade(0x10c)],'tenant':q(_0x857f83,_0xe9a390[_0x2c2524[_0x387ade(0x10c)]]),'skipEnvCheck':!0x0}:{'baseUrl':_0x857f83[_0x387ade(0x161)],'tenant':_0x857f83[_0x387ade(0x25c)],'skipEnvCheck':!0x0}),_0x2ab97a={'text':'','failed':!0x1,'sessionId':_0x4acde3};return _0x51aea4||(_0x109a0b=!0x1,await _0x4b12d0(),_0x51aea4)?_0x2ab97a:(_0x4eb0e4=new _0x1702c2(),_0x9f7d36=void 0x0,_0x4eb0e4[_0x387ade(0x2cf)](_0x441876),_0x857f83=_0x45dbb5,await _0x4eb0e4[_0x387ade(0x2c6)]({..._0x1101d1(Se(_0x2c2524,_0x857f83,_0x2fdf25,{'oneTurn':!_0x57fc17})),..._0x4acde3?{'sessionId':_0x4acde3}:{}}),_0x109a0b=!0x0,_0x51aea4?_0x2ab97a:_0x474285());}};try{if(await _0x4eb0e4['initialize'](_0x4b8868),_0x109a0b=!0x0,_0x51aea4)return;if(_0x57fc17)await Qn({'prompt':_0x5882a1,'sendMessage':_0x116ae2,'onSigint':_0xb893bd,'setAnswerInput':_0x1ca9e0=>{_0x3e7db2['input']=_0x1ca9e0;},'registerEventPrinter':_0x5e1f4d=>(_0x12179a=_0x5e1f4d,()=>{_0x12179a=void 0x0;})});else{if(_0x20396d||_0x2d1e1c){let _0x5ec22d=_0x2c2524['outputFormat']===_0x14774f(0x1f3)?_0x37b714=>L(_0x48dd08(_0x37b714)):()=>{},_0x2129e6=_0x26e919?ie({'input':_0x26e919,'getAgent':()=>_0x4eb0e4,'replay':_0x2c2524[_0x14774f(0x134)],'onEvent':_0x3271b1=>(_0x2b5392['add'](_0x3271b1),()=>{const _0xc1d9d=_0x14774f;_0x2b5392[_0xc1d9d(0x16a)](_0x3271b1);}),'write':L,'isRunStopNotice':_0x3551a2,'actionableErrorText':_0x3e2bf3,'warn':_0x8ce511=>{const _0x2a4489=_0x14774f;process[_0x2a4489(0x2fd)][_0x2a4489(0x2a2)](_0x8ce511);}}):null,_0x2a168b=await _0x39bca5({'onEvent':_0x3c32f4=>(_0x2b5392[_0x14774f(0x2ab)](_0x3c32f4),()=>{const _0x2f08ad=_0x14774f;_0x2b5392[_0x2f08ad(0x16a)](_0x3c32f4);}),'sendMessage':async _0x1e77b1=>{const _0x4c9c92=_0x14774f;try{let _0x45295a=await _0x116ae2(_0x1e77b1);return _0x2129e6?await _0x2129e6[_0x4c9c92(0x15e)](_0x45295a):_0x45295a;}finally{_0x2129e6?.[_0x4c9c92(0x1b7)]();}},'getSessionId':()=>_0x4eb0e4[_0x14774f(0x245)](),'getTurnUsageHistory':_0x713eca=>_0x4eb0e4[_0x14774f(0x213)](_0x713eca),'complete':_0x123b9e=>_0x4eb0e4['complete'](_0x123b9e)},_0x5882a1,void 0x0,_0x5ec22d,_0x2d1e1c?{'outputSchema':_0x2d1e1c}:void 0x0);_0x20396d?_0x20396d(_0x2a168b):Kn(_0x2a168b);}else await _0x116ae2(_0x5882a1);}}catch(_0x5e9437){if(!_0x51aea4)throw _0x5e9437;}finally{try{await _0x4b12d0();}finally{process[_0x14774f(0x1b0)](_0x14774f(0x170),_0xb893bd),_0x51aea4&&(process[_0x14774f(0x317)]=0x82);}}}function Kn(_0x3e896c){const _0x42f3bf=_0x389148;_0x3e896c[_0x42f3bf(0x219)]?(console[_0x42f3bf(0x100)]('Structured\x20output\x20failed:\x20'+_0x3e896c['structuredError']['message']),process[_0x42f3bf(0x317)]=0x1):_0x3e896c['isError']?(console['error'](_0x42f3bf(0x18d)+_0x3e896c['error']+').'),process[_0x42f3bf(0x317)]=0x1):process[_0x42f3bf(0x2aa)][_0x42f3bf(0x2a2)](JSON[_0x42f3bf(0x141)](_0x3e896c[_0x42f3bf(0x220)],null,0x2)+'\x0a');}function qn(_0x5b1c94,_0x547c72){const _0x460f77=_0x389148;let _0x368823=process[_0x460f77(0x2aa)][_0x460f77(0x2a2)][_0x460f77(0x2ae)](process['stdout']),_0x54aee5=!0x1;return process[_0x460f77(0x2aa)][_0x460f77(0x2a2)]=(..._0x31142d)=>{const _0x3c3dc9=_0x460f77;if(!_0x54aee5)return _0x368823(..._0x31142d);_0x1e2f8c(_0x547c72,0x0),_0x4d5227(_0x547c72,0x0);let _0x4749ba=_0x368823(..._0x31142d);return _0x5b1c94[_0x3c3dc9(0x13a)](!0x0),_0x4749ba;},{'show':()=>{const _0x35e341=_0x460f77;_0x54aee5=!0x0,_0x5b1c94[_0x35e341(0x13a)]();},'hide':()=>{_0x54aee5=!0x1;},'erase':()=>{_0x54aee5&&(_0x1e2f8c(_0x547c72,0x0),_0x4d5227(_0x547c72,0x0)),_0x54aee5=!0x1;},'restore':()=>{const _0x791506=_0x460f77;_0x54aee5=!0x1,process[_0x791506(0x2aa)][_0x791506(0x2a2)]=_0x368823;}};}async function Qn({prompt:_0x471e6e,sendMessage:_0x433a0f,onSigint:_0x59136b,setAnswerInput:_0xedd568,registerEventPrinter:_0x508c50}){const _0x34c5ab=_0x389148;let _0x17fc4e=_0x16232b({'input':process['stdin'],'output':process[_0x34c5ab(0x2fd)],'terminal':!0x0,'prompt':_0x34c5ab(0x28b)}),_0x64ae6c=qn(_0x17fc4e,process[_0x34c5ab(0x2fd)]),_0x2e192b=[],_0x3280d5,_0x1b0d9a,_0x37a2fa,_0x55c8c9=!0x1,_0x9085d4=!0x1,_0x2179dd=!0x1,_0x16abcd=Promise[_0x34c5ab(0x22b)](),_0x56ee72,_0x74dbfd=_0x508c50(_0x3635b0=>{const _0x5233e3=_0x34c5ab;_0x3635b0[_0x5233e3(0x243)]===_0x5233e3(0x282)&&(_0x64ae6c[_0x5233e3(0x261)](),_0x16abcd=new Promise(_0x585ffa=>{_0x56ee72=_0x585ffa;})),Oe(_0x3635b0),_0x3635b0['type']==='done'&&(_0x56ee72?.(),_0x56ee72=void 0x0,!_0x2179dd&&!_0x55c8c9&&_0x64ae6c[_0x5233e3(0x27d)]());}),_0x50a91b=()=>{const _0x3b2eec=_0x34c5ab;_0x9085d4=!0x0,_0x56ee72?.(),_0x59136b(),_0x17fc4e[_0x3b2eec(0x1be)]();};_0x17fc4e['on'](_0x34c5ab(0x1b4),_0x338cc9=>{const _0x5e90ae=_0x34c5ab;_0x37a2fa?_0x37a2fa(_0x338cc9):_0x3280d5?_0x3280d5[_0x5e90ae(0x206)](_0x338cc9):_0x1b0d9a?_0x1b0d9a(_0x338cc9):_0x2e192b[_0x5e90ae(0x206)](_0x338cc9);}),_0x17fc4e['once']('close',()=>{const _0x259511=_0x34c5ab;_0x55c8c9=!0x0,_0x64ae6c[_0x259511(0x281)](),_0x3280d5&&!_0x9085d4&&_0x50a91b(),_0x1b0d9a?.(null);});let _0xbe7028=()=>_0x2e192b[_0x34c5ab(0x2c3)]>0x0?Promise[_0x34c5ab(0x22b)](_0x2e192b[_0x34c5ab(0x2c8)]()):_0x55c8c9?Promise['resolve'](null):new Promise(_0x1709d1=>{_0x1b0d9a=_0x4d87db=>{_0x1b0d9a=void 0x0,_0x1709d1(_0x4d87db);};});_0xedd568({'readLine':(_0x3aa238,_0x2e136d)=>new Promise((_0x1fcf18,_0x135f27)=>{const _0x541b01=_0x34c5ab;if(_0x55c8c9&&!_0x3280d5){_0x1fcf18(null);return;}_0x3280d5??=[];let _0x3b2b6d=_0x3280d5['shift']();if(_0x3b2b6d!==void 0x0){_0x1fcf18(_0x3b2b6d);return;}let _0x1bebd4=()=>{const _0x335a55=_0x3d61;_0x37a2fa=void 0x0,_0x2e136d[_0x335a55(0x312)](_0x335a55(0x1b9),_0x22b272),_0x64ae6c[_0x335a55(0x281)](),_0x17fc4e['setPrompt'](_0x335a55(0x28b));},_0x22b272=()=>{const _0x5ab85a=_0x3d61;_0x1bebd4(),_0x135f27(new Error(_0x5ab85a(0x149)));};_0x2e136d[_0x541b01(0x115)](_0x541b01(0x1b9),_0x22b272,{'once':!0x0}),!_0x55c8c9&&(_0x37a2fa=_0x4d3b0d=>{_0x1bebd4(),_0x1fcf18(_0x4d3b0d);},_0x17fc4e[_0x541b01(0x244)](_0x3aa238),_0x64ae6c['show']());}),'endQuestions':()=>{const _0xe1bca8=_0x34c5ab;_0x3280d5&&_0x2e192b[_0xe1bca8(0x206)](..._0x3280d5),_0x3280d5=void 0x0;}}),_0x17fc4e['on'](_0x34c5ab(0x170),_0x50a91b),process[_0x34c5ab(0x2fd)][_0x34c5ab(0x2a2)](_0x34c5ab(0x112));let _0x2d606a=async _0x4b2b99=>{_0x2179dd=!0x0;try{await _0x433a0f(_0x4b2b99);}finally{_0x2179dd=!0x1;}};try{if(_0x471e6e&&await _0x2d606a(_0x471e6e),_0x9085d4)return;!_0x55c8c9&&!_0x56ee72&&_0x64ae6c[_0x34c5ab(0x27d)]();for(let _0x4b5d15=await _0xbe7028();_0x4b5d15!==null&&(_0x64ae6c[_0x34c5ab(0x281)](),!_0x9085d4);_0x4b5d15=await _0xbe7028()){let _0x2f1622=_0x4b5d15[_0x34c5ab(0x266)]();if(_0x2f1622===_0x34c5ab(0x2a1))break;_0x2f1622&&await _0x2d606a(_0x2f1622),!_0x55c8c9&&!_0x56ee72&&_0x64ae6c[_0x34c5ab(0x27d)]();}for(;!_0x9085d4&&_0x56ee72;)await _0x16abcd;}finally{_0xedd568(null),_0x74dbfd(),_0x64ae6c[_0x34c5ab(0x189)](),_0x17fc4e[_0x34c5ab(0x1b0)](_0x34c5ab(0x170),_0x50a91b),_0x17fc4e[_0x34c5ab(0x1be)]();}}async function Yn(){const _0x48a82b=_0x389148;let _0x25ce12=Vt(process[_0x48a82b(0x25a)]['slice'](0x2));if(_0x25ce12[_0x48a82b(0x2df)]===_0x48a82b(0x237)){await Ee(_0x25ce12);return;}let _0x513779=Xt();try{await Ee(_0x25ce12);}finally{_0x513779();}}async function Ee(_0x34cf77){const _0xcddae5=_0x389148;if(_0x34cf77['help']){Zt();return;}if(_0x34cf77[_0xcddae5(0x2e3)]){console['log'](en());return;}if(_0x34cf77['subcommand']===_0xcddae5(0x12e)){await Mn(_0x34cf77);return;}if(_0x34cf77[_0xcddae5(0x2db)]===_0xcddae5(0x2bf)){await Bn(_0x34cf77['prompt']);return;}if(_0x34cf77[_0xcddae5(0x2db)]===_0xcddae5(0x16d)){await on();return;}if(_0x34cf77['subcommand']===_0xcddae5(0x304)){await rn(_0x34cf77);return;}if(_0x34cf77[_0xcddae5(0x2db)]===_0xcddae5(0x13d)){await dn(_0x34cf77);return;}if(_0x34cf77['subcommand']==='check'){await wn(_0x34cf77);return;}if(_0x34cf77[_0xcddae5(0x2db)]===_0xcddae5(0x29b)){await pn(_0x34cf77);return;}if(_0x34cf77['subcommand']===_0xcddae5(0x150)){await vn(_0x34cf77);return;}if(_0x34cf77[_0xcddae5(0x2db)]===_0xcddae5(0x296)||_0x34cf77[_0xcddae5(0x2db)]===_0xcddae5(0x168)||_0x34cf77['subcommand']===_0xcddae5(0x19e)){await xn(_0x34cf77,_0x34cf77['subcommand']);return;}if(_0x34cf77['subcommand']==='complete'){await $n(_0x34cf77);return;}if(_0x34cf77[_0xcddae5(0x2db)]==='transcribe'){await Nn(_0x34cf77);return;}if(_0x34cf77[_0xcddae5(0x2db)]===_0xcddae5(0x1f6)){await Pn(_0x34cf77);return;}if(_0x34cf77[_0xcddae5(0x2db)]==='maps'){await _n(_0x34cf77);return;}if(_0x34cf77['subcommand']==='delegations'){await On(_0x34cf77);return;}if(_0x34cf77[_0xcddae5(0x2db)]===_0xcddae5(0x13f)){await jn(_0x34cf77);return;}if(_0x34cf77['subcommand']===_0xcddae5(0x162)){await _0x225326(_0x34cf77[_0xcddae5(0x13a)],{'runnerUrl':_0x34cf77[_0xcddae5(0x132)],'backendUrl':_0x34cf77[_0xcddae5(0x2bb)],'interopPath':_0x34cf77['interopPath'],'workerId':_0x34cf77[_0xcddae5(0x155)]});return;}if(_0x34cf77['cleanup']){await cn();return;}await Wn(_0x34cf77);}var zn=process.env.NODE_ENV==='test'||!!process.env.JEST_WORKER_ID;zn||Yn()['catch'](_0x7a0f73=>{const _0x3442f9=_0x389148;console[_0x3442f9(0x100)](_0x7a0f73[_0x3442f9(0x16c)]||_0x7a0f73[_0x3442f9(0x2c9)]||_0x7a0f73),process['exit'](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};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uipath/delegate-cli",
|
|
3
|
-
"version": "1.207.0
|
|
3
|
+
"version": "1.207.0",
|
|
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.207.0
|
|
25
|
+
"@uipath/delegate-sdk": "1.207.0"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@types/node": "^22.0.0",
|