@uipath/delegate-cli 1.207.0-preview.20261127100356 → 1.208.0-preview.20261127152656

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +62 -10
  2. package/dist/cli.mjs +1 -1
  3. package/package.json +2 -2
package/README.md CHANGED
@@ -70,7 +70,7 @@ delegate-cli check [--env NAME] [--headless]
70
70
  interop without sending a prompt; exits 1 when
71
71
  any check fails
72
72
  delegate-cli usage [--session ID] Quota and spend: licensing quota, monthly spend and
73
- cap, Cartographer allowance
73
+ cap
74
74
  delegate-cli usage activity|daily [--days N]
75
75
  Activity totals, or per-day usage, over the last N
76
76
  days (1-365, default 30)
@@ -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 \
@@ -506,21 +561,19 @@ The backend cancels only that exact turn, so a late cancel never stops a newer t
506
561
 
507
562
  ## Quota and spend
508
563
 
509
- `delegate-cli usage` prints the signed-in user's standing, from three read-only Agents Backend calls:
564
+ `delegate-cli usage` prints the signed-in user's standing, from two read-only Agents Backend calls:
510
565
 
511
566
  ```
512
567
  Licensing: 42.3% of 200 PU used (resets 2026-10-01T00:00:00+00:00)
513
568
  Spending: $12.30 this month of a $50.00 cap
514
- Cartographer: licensed (gpt_5_6_luna)
515
569
  ```
516
570
 
517
571
  - **Licensing** (`GET /v1/usage/licensing-summary`): the monthly licensing quota in Platform Units. `limit_enabled: false` means no licensing quota applies to this login. `pct_used` can exceed 100 — usage past the quota spills into an extra pool (`extra_pool_consumed_pu`) rather than being refused. `--session <id>` adds that session's lifetime usage (`session_consumed_pu`).
518
572
  - **Spending** (`GET /v1/usage/monthly-spending`): the spend this calendar month (UTC) against the per-user cap. The backend refuses new turns (HTTP 429 `monthly_spending_limit_exceeded`) once `monthly_spend_usd` is above `monthly_limit_usd`, but only while `limit_enabled` is true; a null limit means unlimited.
519
- - **Cartographer** (`GET /v1/usage/cartographer-allowance`): `not_applicable`, `licensed`, `allowance` or `exhausted`. `exhausted` refuses Cartographer turns only.
520
573
 
521
574
  `delegate-cli usage activity` and `delegate-cli usage daily` report the last `--days` days (default 30): session, cost and token totals per model, or one row per day with usage.
522
575
 
523
- With `--output-format json` the summary is one object, `{"licensing":{…},"monthlySpending":{…},"cartographerAllowance":{…}}`, holding the backend's answers unchanged (snake_case fields); `activity` and `daily` print the backend's answer as is. `usage` sets no exit code for being over a limit: no single field means "every run will be refused" — the cap has exemptions, licensing overage is allowed, and the allowance only gates Cartographer. A scheduler decides with `jq -e`, which exits 1 when the expression is false or null:
576
+ With `--output-format json` the summary is one object, `{"licensing":{…},"monthlySpending":{…}}`, holding the backend's answers unchanged (snake_case fields); `activity` and `daily` print the backend's answer as is. `usage` sets no exit code for being over a limit: no single field means "every run will be refused" — the cap has exemptions and licensing overage is allowed. A scheduler decides with `jq -e`, which exits 1 when the expression is false or null:
524
577
 
525
578
  ```bash
526
579
  # Skip the run once the spending cap is exceeded (the backend then refuses turns).
@@ -528,10 +581,9 @@ npx delegate-cli usage --output-format json | jq -e '
528
581
  .monthlySpending | (.limit_enabled | not) or .monthly_limit_usd == null
529
582
  or .monthly_spend_usd <= .monthly_limit_usd' >/dev/null || exit 0
530
583
 
531
- # Or gate on the licensing quota and, for a Cartographer run, the allowance.
584
+ # Or gate on the licensing quota.
532
585
  npx delegate-cli usage --output-format json | jq -e '
533
- (.licensing | (.limit_enabled | not) or .pct_used < 100)
534
- and .cartographerAllowance.mode != "exhausted"' >/dev/null || exit 0
586
+ .licensing | (.limit_enabled | not) or .pct_used < 100' >/dev/null || exit 0
535
587
  ```
536
588
 
537
589
  A failed backend call exits 1 with the status on stderr and nothing on stdout, and `jq -e` then fails too (exit 4, no input), so both examples also skip the run when the limits cannot be read. To tell the two apart, `set -o pipefail` and check the CLI's own exit code.
package/dist/cli.mjs CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- const _0x473da0=_0x9cbc;(function(_0xd03b0b,_0x3b53d2){const _0x3b3e37=_0x9cbc,_0x119a37=_0xd03b0b();while(!![]){try{const _0x3ca714=-parseInt(_0x3b3e37(0x1e8))/0x1+parseInt(_0x3b3e37(0xeb))/0x2+parseInt(_0x3b3e37(0x1ed))/0x3*(-parseInt(_0x3b3e37(0x1aa))/0x4)+parseInt(_0x3b3e37(0x1be))/0x5*(-parseInt(_0x3b3e37(0xd5))/0x6)+-parseInt(_0x3b3e37(0x229))/0x7*(parseInt(_0x3b3e37(0x211))/0x8)+parseInt(_0x3b3e37(0x111))/0x9*(parseInt(_0x3b3e37(0x293))/0xa)+parseInt(_0x3b3e37(0x25f))/0xb*(parseInt(_0x3b3e37(0x1fd))/0xc);if(_0x3ca714===_0x3b53d2)break;else _0x119a37['push'](_0x119a37['shift']());}catch(_0x917969){_0x119a37['push'](_0x119a37['shift']());}}}(_0x22d0,0x9926a));const __dirname=import.meta.dirname;import _0x3a9338 from'fs';import _0x2f70c9 from'path';import{clearLine as _0x1e6ab9,createInterface as _0x23d71e,cursorTo as _0x426389}from'node:readline';import{isOnStepGrid as _0x289eb1}from'@uipath/delegate-sdk';var L=_0x473da0(0x116);function E(_0x46cf7b){const _0x24a619=_0x473da0;return _0x46cf7b[_0x24a619(0x8b)](/\u001b\[[0-?]*[ -/]*[@-~]|\u001b\][^\u0007\u001b]*(\u0007|\u001b\\)?|\u001b./g,'')[_0x24a619(0x8b)](/[\u0000-\u0008\u000b-\u001f\u007f-\u009f]/g,'');}function ee(_0x253284){const _0x139c44=_0x473da0;return E(_0x253284[_0x139c44(0x1b1)]??(_0x253284[_0x139c44(0x273)]===L?'Something\x20else':_0x253284['id']));}function Ce(_0x46d30f,_0x583b83,_0xc00f51){const _0x219cc0=_0x473da0;let _0x38835=[''+(_0xc00f51>0x1?'['+_0x583b83+'/'+_0xc00f51+']\x20':'')+E(_0x46d30f['header'])+(_0x46d30f[_0x219cc0(0x284)]?_0x219cc0(0x26a):''),E(_0x46d30f[_0x219cc0(0x95)])];return _0x46d30f[_0x219cc0(0x17f)]===_0x219cc0(0x1f9)&&_0x46d30f[_0x219cc0(0x17c)][_0x219cc0(0x109)]((_0x368ed9,_0x1fefc1)=>{const _0x1dad3b=_0x219cc0;let _0x8f5e3a=_0x368ed9[_0x1dad3b(0x273)]===L?_0x1dad3b(0x29e):'',_0x2fb5c8=_0x368ed9[_0x1dad3b(0x178)]?_0x1dad3b(0x29d)+E(_0x368ed9['description']):'';_0x38835[_0x1dad3b(0x1e0)]('\x20\x20'+(_0x1fefc1+0x1)+'.\x20'+ee(_0x368ed9)+_0x8f5e3a+_0x2fb5c8);}),_0x38835[_0x219cc0(0x126)]('\x0a');}function te(_0x132075,_0x9bacd9){const _0x28fee3=_0x473da0;let _0x18a241=_0x132075['split'](/[\s,]+/)[_0x28fee3(0x23d)](Boolean);if(_0x18a241[_0x28fee3(0x29f)]===0x0)return null;let _0x4a1251=_0x18a241[_0x28fee3(0x1b8)](_0x1fa737=>/^\d+$/[_0x28fee3(0x1d9)](_0x1fa737)?Number(_0x1fa737):NaN);return _0x4a1251[_0x28fee3(0x150)](_0x2fe16d=>!Number[_0x28fee3(0x19c)](_0x2fe16d)||_0x2fe16d<0x1||_0x2fe16d>_0x9bacd9)?null:[...new Set(_0x4a1251)][_0x28fee3(0x1b8)](_0x21d0a6=>_0x21d0a6-0x1);}function Oe(_0x10c569){const _0x1871df=_0x473da0;return typeof _0x10c569==_0x1871df(0x144)&&_0x10c569!==null&&_0x1871df(0x163)in _0x10c569;}async function F(_0x316931,_0x3cdfde,_0xec6b9a,_0x2a718d){const _0x5bd9e2=_0x473da0;for(;;){let _0x1a655b=(await _0x316931(_0x3cdfde))[_0x5bd9e2(0xc9)]();if(_0x1a655b==='')return;let _0x3a0dbf=_0x2a718d(_0x1a655b);if(!Oe(_0x3a0dbf))return _0x3a0dbf;_0xec6b9a(_0x3a0dbf[_0x5bd9e2(0x163)]+'\x0a');}}async function Le(_0x32b870,_0x4854db,_0x32eec3){const _0x2d0735=_0x473da0;if(_0x32b870['options'][_0x2d0735(0x29f)]===0x0||_0x32b870[_0x2d0735(0x17c)][_0x2d0735(0x263)](_0x56ffb8=>_0x56ffb8[_0x2d0735(0x273)]===L)){let _0x1c8b6f=(await _0x4854db(_0x2d0735(0x205)))[_0x2d0735(0xc9)]();return _0x1c8b6f===''?void 0x0:{'text':_0x1c8b6f};}let _0x478301=_0x32b870['options'][_0x2d0735(0x213)](_0x445a28=>_0x445a28[_0x2d0735(0x273)]===L),_0xf5f4b3=_0x32b870[_0x2d0735(0x276)]?'Numbers,\x20separated\x20by\x20commas\x20(Enter\x20to\x20skip):\x20':'Number'+(_0x478301>=0x0?_0x2d0735(0x160):'')+_0x2d0735(0x27f),_0x393252=await F(_0x4854db,_0xf5f4b3,_0x32eec3,_0x28b5f3=>{const _0x14c0b2=_0x2d0735;let _0x4e135d=te(_0x28b5f3,_0x32b870[_0x14c0b2(0x17c)][_0x14c0b2(0x29f)]);return _0x4e135d&&(_0x32b870[_0x14c0b2(0x276)]||_0x4e135d[_0x14c0b2(0x29f)]===0x1)?_0x4e135d:!_0x32b870[_0x14c0b2(0x276)]&&_0x478301>=0x0?{'typed':_0x28b5f3}:{'refused':_0x32b870['multiSelect']?_0x14c0b2(0x15a)+_0x32b870['options'][_0x14c0b2(0x29f)]+'.':_0x14c0b2(0x24c)+_0x32b870[_0x14c0b2(0x17c)]['length']+'.'};});if(_0x393252===void 0x0)return;if(!Array[_0x2d0735(0x13f)](_0x393252))return{'text':_0x393252[_0x2d0735(0x248)]};let _0x472687=_0x393252[_0x2d0735(0x1b8)](_0x38b92d=>_0x32b870['options'][_0x38b92d]['id']),_0x5b6cea=_0x472687[_0x2d0735(0x16b)](L)?await F(_0x4854db,ee(_0x32b870[_0x2d0735(0x17c)][_0x478301])+':\x20',_0x32eec3,_0x1da00f=>_0x1da00f):void 0x0;if(!(_0x472687[_0x2d0735(0x16b)](L)&&_0x5b6cea===void 0x0))return _0x32b870[_0x2d0735(0x276)]?{'optionIds':_0x472687,..._0x5b6cea!==void 0x0?{'text':_0x5b6cea}:{}}:_0x5b6cea!==void 0x0?{'text':_0x5b6cea}:{'optionId':_0x472687[0x0]};}async function Fe(_0x288de1,_0x42ed8d,_0x353d51){const _0x3f40f4=_0x473da0;let _0x29c9db={};for(let _0x3e7826 of _0x288de1[_0x3f40f4(0x129)]){let _0x541999=_0x3e7826[_0x3f40f4(0x1dd)]??_0x3e7826['min'],_0x3ba62f=_0x3e7826[_0x3f40f4(0xb9)]??0x1,_0x2bc44c=_0x3e7826['unit']?'\x20'+E(_0x3e7826[_0x3f40f4(0x10c)]):'',_0x40e735=_0x3f40f4(0x231)+_0x3e7826['min']+_0x3f40f4(0xd4)+_0x3e7826[_0x3f40f4(0x14b)]+(_0x3ba62f!==0x1?_0x3f40f4(0xc7)+_0x3ba62f:''),_0x27152e=await F(_0x42ed8d,E(_0x3e7826[_0x3f40f4(0x1b1)])+'\x20['+_0x3e7826[_0x3f40f4(0x21e)]+'-'+_0x3e7826[_0x3f40f4(0x14b)]+_0x2bc44c+_0x3f40f4(0x9b)+_0x541999+_0x3f40f4(0x21f),_0x353d51,_0x2fbb7c=>{const _0x37414b=_0x3f40f4;let _0x35683d=Number(_0x2fbb7c);return Number[_0x37414b(0x295)](_0x35683d)&&_0x35683d>=_0x3e7826[_0x37414b(0x21e)]&&_0x35683d<=_0x3e7826[_0x37414b(0x14b)]&&_0x289eb1(_0x35683d,_0x3e7826['min'],_0x3ba62f)?_0x35683d:{'refused':_0x37414b(0x170)+_0x40e735+'.'};});_0x29c9db[_0x3e7826['id']]=_0x27152e??_0x541999;}return{'values':_0x29c9db};}async function Me(_0x255548,_0x80916f,_0x433526){const _0x283a74=_0x473da0;_0x433526(_0x255548[_0x283a74(0x1c0)][_0x283a74(0x1b8)]((_0x475791,_0x710e22)=>'\x20\x20'+(_0x710e22+0x1)+'.\x20'+E(_0x475791[_0x283a74(0x1b1)]))[_0x283a74(0x126)]('\x0a')+'\x0a');let _0x5b9882={};for(let _0x112c3d of _0x255548['items']){let _0x576221=await F(_0x80916f,E(_0x112c3d['label'])+_0x283a74(0x1b5),_0x433526,_0x29d6fb=>{const _0x296e3f=_0x283a74;let _0x59aef8=te(_0x29d6fb,_0x255548[_0x296e3f(0x1c0)][_0x296e3f(0x29f)]);return _0x59aef8&&_0x59aef8[_0x296e3f(0x29f)]===0x1?_0x59aef8[0x0]:{'refused':_0x296e3f(0x24c)+_0x255548[_0x296e3f(0x1c0)][_0x296e3f(0x29f)]+'.'};});if(_0x576221===void 0x0)continue;let _0x49b4fe=_0x255548[_0x283a74(0x1c0)][_0x576221],_0x3eb7ab={};for(let _0x17e40a of _0x49b4fe[_0x283a74(0x236)]??[]){let _0x52b1ae='\x20\x20'+E(_0x17e40a[_0x283a74(0x1b1)])+(_0x17e40a[_0x283a74(0x284)]?_0x283a74(0x26a):'')+':\x20',_0x47a13a=await F(_0x80916f,_0x52b1ae,_0x433526,_0xa69af5=>_0xa69af5);for(;_0x47a13a===void 0x0&&!_0x17e40a['optional'];)_0x433526(E(_0x17e40a['label'])+_0x283a74(0x27d)),_0x47a13a=await F(_0x80916f,_0x52b1ae,_0x433526,_0x5d1d9c=>_0x5d1d9c);_0x47a13a!==void 0x0&&(_0x3eb7ab[_0x17e40a['id']]=_0x47a13a);}_0x5b9882[_0x112c3d['id']]={'bucket':_0x49b4fe['id'],...Object[_0x283a74(0x261)](_0x3eb7ab)['length']>0x0?{'subFields':_0x3eb7ab}:{}};}return Object[_0x283a74(0x261)](_0x5b9882)[_0x283a74(0x29f)]>0x0?{'assignments':_0x5b9882}:void 0x0;}async function je(_0x17981b,_0x5e5f17,_0x5f1d19){const _0xfe3650=_0x473da0;if(_0x17981b[_0xfe3650(0x17f)]===_0xfe3650(0x1f9))return Le(_0x17981b,_0x5e5f17,_0x5f1d19);if(_0x17981b[_0xfe3650(0x17f)]===_0xfe3650(0x114))return Fe(_0x17981b,_0x5e5f17,_0x5f1d19);if(_0x17981b['type']==='bucket')return Me(_0x17981b,_0x5e5f17,_0x5f1d19);let _0x7a89e8=(await _0x5e5f17(_0xfe3650(0x1ff)))['trim']();return _0x7a89e8===''?void 0x0:{'text':_0x7a89e8};}function ne(_0x484545,_0x2a3456){return async _0x371450=>{const _0x20a13a=_0x9cbc;let _0xe6bd41=_0x484545();if(!_0xe6bd41)throw new Error(_0x20a13a(0x298));let _0x333187=async _0x523f2f=>{const _0x2cd8c2=_0x20a13a;if(_0x371450[_0x2cd8c2(0x93)][_0x2cd8c2(0x115)])throw new Error('The\x20turn\x20was\x20cancelled.');let _0x46bf85=await _0xe6bd41['readLine'](_0x523f2f,_0x371450[_0x2cd8c2(0x93)]);if(_0x46bf85===null)throw new Error(_0x2cd8c2(0xa9));return _0x46bf85;};try{_0x2a3456('\x0a'+(_0x371450[_0x20a13a(0xc5)]?E(_0x371450[_0x20a13a(0xc5)])+'\x0a':''));let _0x1efcf6={};for(let [_0x50ed43,_0x4f9891]of _0x371450[_0x20a13a(0x1bb)][_0x20a13a(0x212)]()){_0x2a3456('\x0a'+Ce(_0x4f9891,_0x50ed43+0x1,_0x371450[_0x20a13a(0x1bb)][_0x20a13a(0x29f)])+'\x0a');let _0xd6cf2f=await je(_0x4f9891,_0x333187,_0x2a3456);_0xd6cf2f!==void 0x0&&(_0x1efcf6[_0x4f9891['id']]=_0xd6cf2f);}return{'answers':_0x1efcf6};}finally{_0xe6bd41[_0x20a13a(0xff)]();}};}import{createInterface as _0x11c408}from'node:readline';var j=[_0x473da0(0x1f9),_0x473da0(0x1f1)];function se(_0x32a68e){const _0xb8e3f=_0x473da0;return j[_0xb8e3f(0x16b)](_0x32a68e);}var _=class extends Error{};function Je(_0x5d9bea){const _0x13baff=_0x473da0;if(typeof _0x5d9bea==_0x13baff(0x123))return _0x5d9bea;if(!Array[_0x13baff(0x13f)](_0x5d9bea))return;let _0x7c03af=[];for(let _0x48ddd5 of _0x5d9bea){if(typeof _0x48ddd5!=_0x13baff(0x144)||_0x48ddd5===null)return;let {type:_0x564808,text:_0x510feb}=_0x48ddd5;if(_0x564808!=='text'||typeof _0x510feb!=_0x13baff(0x123))return;_0x7c03af[_0x13baff(0x1e0)](_0x510feb);}return _0x7c03af[_0x13baff(0x126)]('\x0a');}function He(_0x5e8bfc){const _0x565094=_0x473da0;if(_0x5e8bfc['trim']()==='')return null;let _0xfae292;try{_0xfae292=JSON[_0x565094(0xaf)](_0x5e8bfc);}catch{throw new _(_0x565094(0x132));}if(typeof _0xfae292!=_0x565094(0x144)||_0xfae292===null)throw new _('an\x20input\x20line\x20is\x20not\x20a\x20JSON\x20object');let {type:_0x4df996,message:_0x4c6c79,uuid:_0x155e74}=_0xfae292;if(_0x4df996!=='user')throw new _(_0x565094(0x218)+JSON[_0x565094(0x1da)](_0x4df996)+_0x565094(0x1fe));let _0x595655=Je(_0x4c6c79?.[_0x565094(0x169)]);if(_0x595655===void 0x0)throw new _(_0x565094(0xbd));if(_0x595655[_0x565094(0xc9)]()==='')throw new _(_0x565094(0x207));return{'text':_0x595655,'uuid':typeof _0x155e74==_0x565094(0x123)?_0x155e74:void 0x0};}function oe(_0x5825e1,_0x1f8ac4){const _0x3a1073=_0x473da0;return JSON[_0x3a1073(0x1da)]({'type':'user','message':{'role':_0x3a1073(0x148),'content':_0x5825e1[_0x3a1073(0x1f9)]},'session_id':_0x1f8ac4,..._0x5825e1[_0x3a1073(0x20a)]===void 0x0?{}:{'uuid':_0x5825e1[_0x3a1073(0x20a)]},'isReplay':!0x0})+'\x0a';}async function*re(_0x2c13ec,_0x4f7269){let _0x264213=_0x11c408({'input':_0x2c13ec,'crlfDelay':0x1/0x0});try{for await(let _0x24fdf1 of _0x264213){let _0x147546;try{_0x147546=He(_0x24fdf1);}catch(_0xa29c30){if(!(_0xa29c30 instanceof _))throw _0xa29c30;_0x4f7269(_0xa29c30);continue;}_0x147546&&(yield _0x147546);}}finally{_0x264213['close']();}}import{BUSINESS_ANALYSIS_PRELOADED_SKILLS as _0x454780,DelegateAgent as _0xa7486f,cancelTurn as _0x3be44f,InteropProcess as _0x19f17e,complete as _0xb5f710,DEFAULT_MODEL as _0x5db5bf,createBackendClient as _0x11df3c,evaluate as _0x48057b,isCompletionRequestError as _0x4b902c,isEvaluationRequestError as _0xd87b52,isTranscriptionError as _0x2bae4f,rerank as _0x47e981,transcribe as _0x1ca4ba,verify as _0xd5d5b0,acceptDelegation as _0x39f914,cancelDelegation as _0x5f1593,claimDelegation as _0xacbc15,completeDelegation as _0x31041c,createDelegation as _0x16e275,deleteDelegation as _0x459010,dismissDelegation as _0x4ebeec,getSessionDelegations as _0x40466c,isDelegationError as _0xe3c329,listDelegations as _0x69cbd4,listOrgUsers as _0x4b89ed,previewDelegation as _0x2eac2f,TurnResultCollector as _0x52c063,agentEventToJsonLine as _0x2a9795,describeBaseUrlRejection as _0x341b2a,getActivitySummary as _0x22232e,getAuthFilePath as _0x31beec,getByoWarnings as _0x3cd05f,getCartographerAllowance as _0x5232f9,getDailyBreakdown as _0x1a2cec,getLicensingSummary as _0xb984f8,getMonthlySpending as _0xae213f,isOutputFormat as _0x2c5cc7,isCloudBaseUrl as _0x38359f,isSafeProjectFolderSegment as _0x1c1b77,listModels as _0x14b1a1,listSessions as _0x8faf6b,getSession as _0x2ffd56,renameSession as _0x5e1c09,deleteSession as _0x4502d9,deleteSessionTaskLog as _0x17e84c,forkSession as _0x659dfe,isBackendRequestError as _0x4904d9,MAX_SESSION_PAGE_SIZE as _0x52dffd,listTenants as _0x39f37c,loadAndRefreshAuth as _0x287388,loadAndRefreshSdkLogin as _0x384ac9,parsePlatformBaseUrl as _0x2e6cf6,resolveBackendUrl as _0x6d491f,runHealthCheck as _0x176c39,runHostCommand as _0x319bf6,runLoginFlow as _0x24916f,runTurnForResult as _0x566ae1,saveAuthData as _0x4f0fa3,switchTenant as _0x17879b,toJsonLine as _0x32da33,ENV_TO_CLOUD as _0x5348f9,OUTPUT_FORMATS as _0x35dc67,isRunStopNotice as _0x1d9595,extractActionableErrorText as _0x25d889}from'@uipath/delegate-sdk';function ie(_0x14152d){const _0xdc065e=_0x473da0;let {input:_0x49cdfb,getAgent:_0x22a84f,replay:_0x6ab378,onEvent:_0x574507,write:_0x5ed24b,warn:_0x16b787,isRunStopNotice:_0x1dfee5,actionableErrorText:_0x46dc65}=_0x14152d,_0x4c18d9=0x0,_0x189aa3=0x0,_0x168079=Promise[_0xdc065e(0x127)](),_0x4b13df=!0x1,_0x166ebd=()=>{},_0x1e6fb9=new Promise(_0x1136da=>{_0x166ebd=_0x1136da;}),_0x1fda9d=[],_0x5bb988=_0x574507(_0x3c7993=>{const _0x25b41a=_0xdc065e;_0x3c7993[_0x25b41a(0x17f)]==='turn_start'&&(_0x166ebd(),_0x1fda9d['shift']()?.());}),_0x5f30e6=_0x2214c4=>{_0x6ab378&&_0x5ed24b(oe(_0x2214c4,_0x22a84f()['getSessionId']()));},_0xeec051=(async()=>{const _0x2cf397=_0xdc065e;await _0x1e6fb9;for await(let _0x5c732d of _0x49cdfb[_0x2cf397(0x9f)]){if(_0x4b13df)return;_0x4c18d9===0x0&&(_0x189aa3=_0x22a84f()[_0x2cf397(0x18f)]()[_0x2cf397(0x29f)]),_0x4c18d9++;let _0x29b6c8=new Promise(_0x5517b7=>{_0x1fda9d['push'](()=>{_0x5f30e6(_0x5c732d),_0x5517b7();});}),_0x1c6232=()=>{const _0x398d7d=_0x2cf397;_0x4c18d9--,_0x1fda9d[_0x398d7d(0x251)]();},_0x203cd0=_0x22a84f()[_0x2cf397(0x1ca)](_0x5c732d[_0x2cf397(0x1f9)]);_0x168079=_0x203cd0['catch'](()=>{});try{await _0x203cd0?await Promise['race']([_0x29b6c8,_0x22a84f()['waitForIdle']()]):(_0x1c6232(),_0x16b787('A\x20steering\x20message\x20arrived\x20after\x20the\x20turn\x20ended:\x20not\x20read.\x0a'));}catch(_0x2cdc5c){_0x1c6232(),_0x16b787(_0x2cf397(0x1a5)+(_0x2cdc5c instanceof Error?_0x2cdc5c[_0x2cf397(0x1e6)]:String(_0x2cdc5c))+'\x0a');}}})()[_0xdc065e(0x275)](_0x4ad4b9=>{const _0x199824=_0xdc065e;_0x16b787('Steering\x20input\x20stopped:\x20'+(_0x4ad4b9 instanceof Error?_0x4ad4b9[_0x199824(0x1e6)]:String(_0x4ad4b9))+'\x0a');});return{'settle':async _0xb7a66b=>{const _0xc9e186=_0xdc065e;if(await _0x168079,_0x4c18d9===0x0)return _0xb7a66b;await _0x22a84f()[_0xc9e186(0x28a)]();for(let _0x163dd2 of _0x1fda9d)_0x163dd2();_0x1fda9d=[];let _0x488948=_0x22a84f()[_0xc9e186(0x18f)]()[_0xc9e186(0x119)](_0x189aa3)[_0xc9e186(0x104)](_0x5261ee=>_0x5261ee[_0xc9e186(0xb3)]===_0xc9e186(0x176)||_0x1dfee5(_0x5261ee)||_0x5261ee['type']==='ai'&&_0x5261ee[_0xc9e186(0xb3)]!==_0xc9e186(0x217)&&_0x5261ee[_0xc9e186(0xb3)]!==_0xc9e186(0x83)&&!!_0x5261ee[_0xc9e186(0x169)]);if(!_0x488948)return{..._0xb7a66b,'failed':!0x0,'text':'The\x20steering\x20message\x20was\x20not\x20answered:\x20its\x20turn\x20did\x20not\x20run\x20or\x20added\x20no\x20reply.'};let _0x2a983b=_0x488948[_0xc9e186(0xb3)]==='actionable_error';return typeof _0x488948[_0xc9e186(0x169)]!=_0xc9e186(0x123)?{..._0xb7a66b,'failed':_0x2a983b}:{..._0xb7a66b,'failed':_0x2a983b,'text':_0x2a983b?_0x46dc65(_0x488948[_0xc9e186(0x169)]):_0x488948['content']};},'stop':()=>{const _0x1da79c=_0xdc065e;_0x4b13df=!0x0,_0x5bb988(),_0x49cdfb[_0x1da79c(0xa0)]();}};}var Gt=[_0x473da0(0x18e),'tenant',_0x473da0(0x185),_0x473da0(0x1b4),_0x473da0(0x153),_0x473da0(0x225),_0x473da0(0x281),'sessions','usage',_0x473da0(0x147),_0x473da0(0x200),_0x473da0(0x1a2),_0x473da0(0x256),_0x473da0(0x145),'delegations','org-users'],ue=['',_0x473da0(0x185),'whoami',_0x473da0(0x281),'sessions',_0x473da0(0x10e),_0x473da0(0x147),'rerank',_0x473da0(0x1a2),_0x473da0(0x256),_0x473da0(0x145),_0x473da0(0x1cf),_0x473da0(0x283)],pe=[_0x473da0(0x257),_0x473da0(0x136),'high',_0x473da0(0x1bd),'max'],Wt=_0x454780,B='cartographer';function b(_0x292fc2,_0x2988d5,_0x116ef1,_0x3ab864){const _0x208e94=_0x473da0;let _0x261e94=_0x292fc2[_0x2988d5];return(!_0x261e94||_0x261e94[_0x208e94(0x29f)]>0x1&&_0x261e94[_0x208e94(0x1b3)]('-'))&&(console[_0x208e94(0x22d)](_0x116ef1+_0x208e94(0x242)+_0x3ab864+'.'),process['exit'](0x2)),_0x261e94;}function _0x22d0(){const _0x5be2b0=['verbose','delegations\x20create\x20--session\x20<id>\x20[--to\x20<email|name>]\x20[--summary\x20<text>]\x20\x22<task>\x22|-','--include-subagents','--url\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Other\x20commands\x20follow\x20the\x20saved\x20login,\x20or\x20--backend\x20<url>.','\x20of\x20a\x20$','a\x20skill\x20name','write',':\x20cannot\x20read\x20the\x20JSON\x20schema\x20(','replayUserMessages','delegations\x20delete\x20<delegation-id>','name','input',',\x20whose\x20tenant\x20is\x20chosen\x20in\x20the\x20app.\x20Run\x20`delegate-cli\x20login\x20--env\x20<env>`\x20for\x20a\x20CLI\x20login\x20of\x20your\x20own.','claim','spawn','endQuestions','Date\x20\x20\x20\x20\x20\x20\x20\x20Token\x20units\x20\x20Prompt\x20tokens\x20\x20Completion\x20tokens','attachments','\x20cap','--preload-skill','findLast','erase','interopPath','tool','pending','forEach','\x20\x22<prompt>\x22\x0a','\x20—\x20sign\x20out\x20in\x20the\x20Delegate\x20app\x20to\x20clear\x20that.','unit','addEventListener','usage','Session:\x20','shift','513HxQHlt','token_units','\x20into\x20','numeric','aborted','userinput','Accepted','rubric_version','slice','Enter\x20sends\x20a\x20message.\x20/exit\x20or\x20EOF\x20exits;\x20Ctrl+C\x20stops\x20and\x20exits.\x0a','--working-dir','staging','skip','Token:\x20\x20\x20\x20\x20\x20\x20\x20expired\x20','\x20\x20TASK\x0a','displayName','--task-automation','\x22.\x0a','string','workingDirectory','padEnd','join','resolve','help','fields','quiet','\x20is\x20not\x20valid\x20JSON\x20(','--quiet','--session','page','Renamed\x20','delegation','--version','an\x20input\x20line\x20is\x20not\x20JSON','\x0a🤔\x20','production','--env','medium','Tokens:\x20','\x20must\x20be\x20a\x20JSON\x20object.','--model','Task\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','locked','\x20\x20from\x20','Deployment:\x20\x20\x20','No\x20CLI\x20login\x20found.\x20Note:\x20the\x20CLI\x20is\x20currently\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20','isArray','Organization:\x20','inputFormat','probability\x20','\x20PU\x20used','object','transcribe','\x20(Delegate\x20desktop\x20app\x20fallback)','evaluate','user','\x20PU\x20beyond\x20quota','title','max','1\x20or\x20more','Invalid\x20--effort:\x20','Already\x20accepted','Structured\x20output\x20failed:\x20','some','Usage:\x20delegate-cli\x20sessions\x20[list]\x20[--page\x20N]\x20[--limit\x20N]\x20[--include-subagents]','--input-format\x20stream-json\x20needs\x20--output-format\x20stream-json:\x20the\x20steering\x20messages\x20are\x20answered\x20on\x20stdout.','logout','bind','expiresAt','Unknown\x20delegations\x20action:\x20','all','byoWarning','--input-format\x20stream-json\x20reads\x20the\x20prompt\x20from\x20stdin:\x20pass\x20no\x20prompt\x20argument.','Enter\x20numbers\x20from\x201\x20to\x20','assignedUser','--cartographer\x20runs\x20the\x20','\x0a⚠️\x20\x20Auth\x20expired.\x20Opening\x20browser\x20to\x20re-login…\x0a','--headless','\x0aAccept\x20one\x20with:\x20delegate-cli\x20delegations\x20accept\x20<id>\x0a','\x20or\x20your\x20own\x20answer',',\x20or\x20holds\x20no\x20message\x20','\x20sessions\x20on\x20','refused','value','an\x20email\x20address\x20or\x20name','Rubric\x20','stdin','line','content','accept','includes','the\x20JSON\x20schema','turn_start','daily_usage','onEvent','Enter\x20a\x20number\x20','\x20(resume\x20with\x20--session\x20','parentSessionId','Last\x20','Answered','The\x20saved\x20CLI\x20login\x20could\x20not\x20be\x20refreshed.\x20Run\x20`delegate-cli\x20login`\x20again.','actionable_error','\x20must\x20be\x20a\x20whole\x20number\x20','description','--summary','an\x20effort\x20tier','deployment','options','status','resume','type','>.\x0a','delegate-cli','detail','Continue\x20it\x20with:\x20delegate-cli\x20--session\x20','UiPath\x20Cloud','models','pct_used','tokenExpiresAt','--cartographer','--url','--cleanup','a\x20turn\x20id','delegations\x20show\x20<delegation-id|delegate://delegation/…>','%\x20of\x20','login','getSessionMessages','accessToken','date','Tenant:\x20','Invalid\x20--input-format:\x20','create','cleanup','taskAutomation','total_tokens','auth','\x20\x20(sub-agent\x20of\x20','subcommand','confidence','isInteger','--to\x20and\x20--summary\x20apply\x20to\x20`delegate-cli\x20delegations\x20create`\x20only.','Model\x20','--session\x20applies\x20to\x20the\x20`delegate-cli\x20usage`\x20summary\x20only.','workerId','total_token_units','verify','No\x20CLI\x20login\x20found\x20—\x20nothing\x20to\x20remove.','SIGINT','A\x20steering\x20message\x20was\x20not\x20sent:\x20','No\x20models\x20available\x20for\x20this\x20product/tenant.\x0a','readFileSync','getSessionId','projectId','4wPQFlu','origin','abort','stop','once','tenant','log','label','\x20|\x20','startsWith','host',':\x20bucket\x20number\x20(Enter\x20to\x20leave\x20out):\x20','response','choice\x20','map','🔧\x20','list','questions','days','xhigh','10vbDrlS','--verbose','buckets','Removed\x20','round','toUpperCase','Base\x20URL:\x20\x20\x20\x20\x20','period_end','\x27\x20cannot\x20be\x20read:\x20','tenantName','STATUS','\x0aUse\x20with:\x20delegate-cli\x20--model\x20<id>\x20\x22<prompt>\x22\x0a','steer','--vertical','existsSync','prompt','Title\x20\x20\x20\x20\x20\x20\x20\x20\x20','delegations','Forked\x20','effort','skipEnvCheck','done','models_breakdown','total_prompt_tokens','--replay-user-messages','Owner\x20\x20\x20\x20\x20\x20\x20\x20\x20','--authority','test','stringify','setPrompt','Work\x20on\x20it\x20with:\x20delegate-cli\x20--session\x20','default','session_consumed_pu','Unknown\x20sessions\x20action:\x20','push','url','a\x20briefing\x20text','assignedUserEmail','\x0aStopping…\x20(Ctrl+C\x20again\x20to\x20force\x20exit)\x0a','from','message','lastType','1114909sLhiIW','\x20\x20TITLE\x0a','\x20prompt,\x20','mode','Unknown\x20flag:\x20','1229544NXvRAK','.\x20Use\x20','transcribe:\x20cannot\x20read\x20','probability','stream-json','--project','delegations\x20list\x20<backend-project-id>','\x20completion','rename','score','now','extra_pool_consumed_pu','text','--attach:\x20no\x20such\x20file\x20or\x20folder:\x20','results','delete','323772dFzTUt',',\x20not\x20\x22user\x22','Your\x20answer,\x20as\x20text\x20(the\x20CLI\x20attaches\x20no\x20files;\x20Enter\x20to\x20skip):\x20','rerank','hide','a\x20session\x20id','removeEventListener','lockReason','Your\x20answer\x20(Enter\x20to\x20skip):\x20','limit','an\x20input\x20line\x20has\x20an\x20empty\x20message','Source:\x20\x20\x20\x20\x20\x20\x20','--no-computer-use','uuid','\x20(resets\x20','tool_call','limit_enabled','dismiss','task','\x20delegation\x20','22808pGdFJU','entries','findIndex','a\x20file\x20path','.\x20Use\x20`delegate-cli\x20usage`,\x20`usage\x20activity`\x20or\x20`usage\x20daily`.','file','agent_thought','an\x20input\x20line\x20has\x20type\x20','jsonSchemaPath','Session\x20',':\x20cannot\x20read\x20the\x20request\x20(','delegations\x20accept\x20<delegation-id>','floor','min','):\x20','stderr','alpha','isTTY','rejection','outputFormat','whoami','baseUrl','exitCode','\x20in\x20progress\x20on\x20session\x20','189qykXPt','[env=','Auth\x20comes\x20from\x20AUTH_TOKEN/TENANT_ID/ORG_ID\x20—\x20set\x20TENANT_ID\x20and\x20TENANT_SLUG\x20to\x20change\x20the\x20tenant.','structuredError','error','Cost:\x20\x20\x20$','structured','session_start','from\x20','\x20<file.json>,\x20or\x20-\x20to\x20read\x20stdin.','model','sourceTitle','env','subFields','--tenant','sendMessage','.aria','Token:\x20\x20\x20\x20\x20\x20\x20\x20expires\x20','exit','total_quota_pu','filter','--output-format','Usage:\x20delegate-cli\x20','cancel','toISOString','\x20requires\x20','Tenants\x20of\x20','\x20token\x20units)','turnId','period_days','No\x20structured\x20output:\x20the\x20turn\x20failed\x20(','typed','--to','next','stack','Enter\x20one\x20number\x20from\x201\x20to\x20','--input-format','Missing\x20prompt.\x20Pass\x20it\x20as\x20an\x20argument,\x20pipe\x20it\x20via\x20stdin,\x20or\x20run\x20`delegate-cli\x20--help`.','--task-automation\x20applies\x20to\x20prompts\x20only.','environment\x20variables\x20(AUTH_TOKEN/TENANT_ID/ORG_ID)','pop','--to,\x20--summary\x20and\x20--session\x20apply\x20to\x20`delegate-cli\x20delegations\x20create`\x20only.','unknown','\x20applies\x20to\x20prompts\x20and\x20to\x20these\x20commands\x20only:\x20','\x20needs\x20a\x20JSON\x20request:\x20delegate-cli\x20','complete','low','monthly_limit_usd','model_version','UPDATED','orgLogicalName','--effort','complete\x20needs\x20--json-schema\x20<file>:\x20delegate-cli\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22.',']\x20Backend\x20URL:\x20','693CcqeIk','/exit','keys','--input-format\x20and\x20--replay-user-messages\x20apply\x20to\x20prompts\x20only.','every','Could\x20not\x20check\x20BYO\x20model\x20warnings:\x20','noComputerUse','\x20vertical,\x20so\x20it\x20cannot\x20run\x20as\x20--vertical\x20','a\x20vertical\x20id','\x20(current)','a\x20format\x20(','\x20(optional)','Deleted\x20session\x20','vertical','delegations\x20dismiss\x20<delegation-id>','alreadyAccepted',';\x20the\x20saved\x20login\x20still\x20uses\x20','--no-security','Claimed\x20from\x20delegation\x20','\x20min)','kind','--output-format\x20','catch','multiSelect','headless','--keep-alive','deepLink','padStart','runnerUrl','Cartographer:\x20','\x20is\x20required.\x0a','\x20active\x20days','\x20(Enter\x20to\x20skip):\x20','userId','check','[saved\x20login]\x20Backend\x20URL:\x20','org-users','optional','the\x20request','cwd','version','Delegated\x20','getTurnUsageHistory','waitForIdle','pendingResults','data','.\x20Share:\x20','then','pause','total_completion_tokens','No\x20one\x20matches\x20\x22','keepAlive','44570nzNKqK','alreadyCompleted','isFinite','organizationId','--json-schema','There\x20is\x20no\x20terminal\x20input\x20to\x20answer\x20from.','),\x20','thinking','Spending:\x20\x20\x20\x20\x20$','sourceUserEmail','\x20-\x20','\x20(type\x20your\x20own)','length','The\x20turn\x20was\x20cancelled.','followUpsRenderer','Invalid\x20--project:\x20\x22','\x20<title>','unknown\x20slug','delegateTo','\x20(in\x20','fork','toFixed','replace','--skip-env-check','localhost','delegations\x20pending\x20<session-id>','email','No\x20delegations.\x0a','\x20(no\x20cap\x20enforced)','Tenant\x20not\x20switched:\x20could\x20not\x20write\x20','signal','oneTurn','question','Interop\x20stopped\x20(if\x20it\x20was\x20running).','--days','Usage:\x20delegate-cli\x20sessions\x20','show','rmSync',']\x20(Enter\x20for\x20','No\x20turn\x20','a\x20directory\x20path','includeSubAgents','messages','close','contextSummary','ASSIGNEE','Tenant:\x20\x20\x20\x20\x20\x20\x20',':\x20ignored\x0a','backendUrl','cartographer','initialize','a\x20deployment\x20URL,\x20e.g.\x20https://automationsuite.contoso.com','Input\x20closed\x20before\x20the\x20question\x20was\x20answered.','sessionId','argv','Invalid\x20--output-format:\x20','Licensing:\x20\x20\x20\x20','\x20\x22<answer>\x22\x0a','parse','operands','toolName','isSafeInteger','widget','\x20of\x20session\x20','\x20token\x20units','answers','choice','--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`delegate-cli\x20sessions`\x20only.','step','daily','--backend','--limit','an\x20input\x20line\x20has\x20no\x20message.content,\x20a\x20string\x20or\x20a\x20list\x20of\x20text\x20blocks','Organization\x20\x20','noConnections','\x22.\x20Use\x20a\x20single\x20folder-safe\x20segment\x20such\x20as\x20invoice-approval\x20(letters,\x20digits,\x20spaces,\x20\x22_\x22,\x20\x22-\x22,\x20\x22.\x22,\x20parentheses;\x20at\x20most\x2064\x20characters;\x20not\x20starting\x20with\x20\x22.\x22\x20or\x20ending\x20with\x20\x22.\x22\x20or\x20a\x20space).','noSecurity','auth.json','isError','\x20\x20\x20\x20BYO\x20warning:\x20','intro','tenantId','\x20in\x20steps\x20of\x20','concat','trim','No\x20usage\x20in\x20the\x20last\x20','bundledSkillsPath','--attach','code','.\x20Drop\x20one\x20of\x20the\x20two.','Usage:\x20delegate-cli\x20sessions\x20fork\x20<id>\x20[<message-id>]','stdout','settle','--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.','cancelled','\x20to\x20','1812444ajHudT','AUTH_TOKEN_FILE\x20\x27','delegations\x20claim\x20<delegation-id|delegate://delegation/…>','--turn\x20applies\x20to\x20`delegate-cli\x20sessions\x20cancel`\x20only.','No\x20CLI\x20login\x20found.\x20Run\x20`delegate-cli\x20login\x20--env\x20<alpha|staging|production>`\x20first.','--no-memory','\x20\x22<prompt>\x22\x0aAnswer\x20with:\x20delegate-cli\x20delegations\x20complete\x20','activity','\x20days:\x20','Session\x20\x20\x20\x20\x20\x20\x20','toString','return','preloadSkills','result','restore','--tenant\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Switch\x20tenants\x20with:\x20delegate-cli\x20tenant\x20<name>','\x20(confidence\x20','\x20(cancel\x20with:\x20delegate-cli\x20sessions\x20cancel\x20','off','\x20not\x20found.','--attach\x20applies\x20to\x20prompts\x20only.','sessions','1758672metUpq','.\x20Use:\x20','delegationId','utf-8','destroy'];_0x22d0=function(){return _0x5be2b0;};return _0x22d0();}function K(_0x44b6bb,_0x38cb96,_0x4a9928,_0x541947){const _0x384679=_0x473da0;let _0x516c55=b(_0x44b6bb,_0x38cb96,_0x4a9928,'a\x20number'),_0x50c400=Number(_0x516c55);return(!/^\d+$/['test'](_0x516c55)||_0x50c400<0x1||!Number[_0x384679(0xb2)](_0x50c400)||_0x541947!==void 0x0&&_0x50c400>_0x541947)&&(console[_0x384679(0x22d)](_0x4a9928+_0x384679(0x177)+(_0x541947===void 0x0?_0x384679(0x14c):'from\x201\x20to\x20'+_0x541947)+',\x20got\x20'+_0x516c55+'.'),process['exit'](0x2)),_0x50c400;}function Kt(_0x11ce9a){const _0x518ae4=_0x473da0;let _0x39beff={'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':_0x518ae4(0x1f9),'inputFormat':'text','replayUserMessages':!0x1,'preloadSkills':[],'attachments':[],'skipEnvCheck':!0x1,'includeSubAgents':!0x1,'operands':[],'help':!0x1,'version':!0x1};Gt[_0x518ae4(0x16b)](_0x11ce9a[0x0])&&(_0x39beff[_0x518ae4(0x19a)]=_0x11ce9a[0x0],_0x11ce9a=_0x11ce9a[_0x518ae4(0x119)](0x1));let _0x201a32=[];for(let _0x61c48d=0x0;_0x61c48d<_0x11ce9a[_0x518ae4(0x29f)];_0x61c48d++){let _0x37d8e0=_0x11ce9a[_0x61c48d];switch(_0x37d8e0){case'--print':case'-p':_0x39beff['print']=!0x0;break;case _0x518ae4(0x278):_0x39beff[_0x518ae4(0x292)]=!0x0;break;case _0x518ae4(0x18a):_0x39beff[_0x518ae4(0x195)]=!0x0;break;case _0x518ae4(0x15e):_0x39beff['headless']=!0x0;break;case _0x518ae4(0x209):_0x39beff[_0x518ae4(0x265)]=!0x0;break;case _0x518ae4(0x188):_0x39beff['cartographer']=!0x0,_0x39beff[_0x518ae4(0x265)]=!0x0,_0x39beff[_0x518ae4(0xe1)][_0x518ae4(0x1e0)](...Wt);break;case'--no-connections':_0x39beff[_0x518ae4(0xbf)]=!0x0;break;case _0x518ae4(0x270):_0x39beff[_0x518ae4(0xc1)]=!0x0;break;case _0x518ae4(0xda):_0x39beff['noMemory']=!0x0;break;case _0x518ae4(0x121):_0x39beff[_0x518ae4(0x196)]=!0x0;break;case _0x518ae4(0x12c):case'-q':_0x39beff['quiet']=!0x0;break;case _0x518ae4(0x1bf):_0x39beff[_0x518ae4(0xf0)]=!0x0;break;case _0x518ae4(0xbb):_0x39beff[_0x518ae4(0xa5)]=_0x11ce9a[++_0x61c48d];break;case _0x518ae4(0x139):_0x39beff[_0x518ae4(0x233)]=_0x11ce9a[++_0x61c48d];break;case'--runner-url':_0x39beff[_0x518ae4(0x27b)]=_0x11ce9a[++_0x61c48d];break;case'--interop':_0x39beff['interopPath']=_0x11ce9a[++_0x61c48d];break;case'--worker-id':_0x39beff[_0x518ae4(0x1a0)]=_0x11ce9a[++_0x61c48d];break;case _0x518ae4(0x103):_0x39beff[_0x518ae4(0xe1)][_0x518ae4(0x1e0)](b(_0x11ce9a,++_0x61c48d,_0x37d8e0,_0x518ae4(0xf5)));break;case _0x518ae4(0x1f2):{let _0x57c668=b(_0x11ce9a,++_0x61c48d,_0x37d8e0,'a\x20project\x20id');_0x1c1b77(_0x57c668)||(console['error'](_0x518ae4(0x84)+_0x57c668+_0x518ae4(0xc0)),process[_0x518ae4(0x23b)](0x2)),_0x39beff['projectId']=_0x57c668;break;}case _0x518ae4(0x1cb):_0x39beff[_0x518ae4(0x26c)]=b(_0x11ce9a,++_0x61c48d,_0x37d8e0,_0x518ae4(0x267));break;case _0x518ae4(0x23e):{let _0x13057e=b(_0x11ce9a,++_0x61c48d,_0x37d8e0,_0x518ae4(0x269)+_0x35dc67[_0x518ae4(0x126)](_0x518ae4(0x1b2))+')');_0x2c5cc7(_0x13057e)||(console['error'](_0x518ae4(0xac)+_0x13057e+_0x518ae4(0x1ee)+_0x35dc67[_0x518ae4(0x126)](_0x518ae4(0x1b2))+'.'),process['exit'](0x2)),_0x39beff[_0x518ae4(0x224)]=_0x13057e;break;}case _0x518ae4(0x24d):{let _0x8dae24=b(_0x11ce9a,++_0x61c48d,_0x37d8e0,_0x518ae4(0x269)+j[_0x518ae4(0x126)](_0x518ae4(0x1b2))+')');se(_0x8dae24)||(console[_0x518ae4(0x22d)](_0x518ae4(0x193)+_0x8dae24+_0x518ae4(0x1ee)+j[_0x518ae4(0x126)]('\x20|\x20')+'.'),process['exit'](0x2)),_0x39beff[_0x518ae4(0x141)]=_0x8dae24;break;}case _0x518ae4(0x1d6):_0x39beff['replayUserMessages']=!0x0;break;case _0x518ae4(0x12d):_0x39beff[_0x518ae4(0xaa)]=b(_0x11ce9a,++_0x61c48d,_0x37d8e0,_0x518ae4(0x202));break;case'--page':_0x39beff[_0x518ae4(0x12e)]=K(_0x11ce9a,++_0x61c48d,_0x37d8e0);break;case _0x518ae4(0xbc):_0x39beff[_0x518ae4(0x206)]=K(_0x11ce9a,++_0x61c48d,_0x37d8e0,_0x52dffd);break;case _0x518ae4(0xf2):_0x39beff[_0x518ae4(0x9e)]=!0x0;break;case _0x518ae4(0x297):_0x39beff['jsonSchemaPath']=b(_0x11ce9a,++_0x61c48d,_0x37d8e0,'a\x20JSON\x20schema\x20file');break;case _0x518ae4(0xcc):{let _0x1b0a48=_0x2f70c9[_0x518ae4(0x127)](process[_0x518ae4(0x286)](),b(_0x11ce9a,++_0x61c48d,_0x37d8e0,_0x518ae4(0x214)));_0x3a9338[_0x518ae4(0x1cc)](_0x1b0a48)||(console['error'](_0x518ae4(0x1fa)+_0x1b0a48),process['exit'](0x2)),_0x39beff[_0x518ae4(0x101)][_0x518ae4(0x1e0)](_0x1b0a48);break;}case'--turn':_0x39beff['turnId']=b(_0x11ce9a,++_0x61c48d,_0x37d8e0,_0x518ae4(0x18b));break;case _0x518ae4(0x249):_0x39beff[_0x518ae4(0x87)]=b(_0x11ce9a,++_0x61c48d,_0x37d8e0,_0x518ae4(0x165));break;case _0x518ae4(0x179):_0x39beff[_0x518ae4(0xa1)]=b(_0x11ce9a,++_0x61c48d,_0x37d8e0,_0x518ae4(0x1e2));break;case _0x518ae4(0x97):_0x39beff[_0x518ae4(0x1bc)]=K(_0x11ce9a,++_0x61c48d,_0x37d8e0,0x16d);break;case _0x518ae4(0x11b):_0x39beff[_0x518ae4(0x124)]=_0x2f70c9[_0x518ae4(0x127)](process[_0x518ae4(0x286)](),b(_0x11ce9a,++_0x61c48d,_0x37d8e0,_0x518ae4(0x9d)));break;case'--skills-path':_0x39beff['bundledSkillsPath']=_0x2f70c9['resolve'](process['cwd'](),b(_0x11ce9a,++_0x61c48d,_0x37d8e0,_0x518ae4(0x9d)));break;case _0x518ae4(0x25c):{let _0x446bd3=b(_0x11ce9a,++_0x61c48d,_0x37d8e0,_0x518ae4(0x17a));pe[_0x518ae4(0x16b)](_0x446bd3)||(console[_0x518ae4(0x22d)](_0x518ae4(0x14d)+_0x446bd3+_0x518ae4(0x1ee)+pe[_0x518ae4(0x126)](_0x518ae4(0x1b2))+'.'),process[_0x518ae4(0x23b)](0x2)),_0x39beff[_0x518ae4(0x1d1)]=_0x446bd3;break;}case _0x518ae4(0x237):{let _0x1c7194=_0x11ce9a[++_0x61c48d];(!_0x1c7194||_0x1c7194[_0x518ae4(0x1b3)]('--'))&&(console['error']('--tenant\x20requires\x20a\x20tenant\x20name.'),process['exit'](0x2)),_0x39beff['tenant']=_0x1c7194;break;}case _0x518ae4(0x135):{let _0xcd5936=_0x11ce9a[++_0x61c48d];[_0x518ae4(0x221),_0x518ae4(0x11c),_0x518ae4(0x134),_0x518ae4(0x8d)][_0x518ae4(0x16b)](_0xcd5936)||(console[_0x518ae4(0x22d)]('Invalid\x20--env:\x20'+_0xcd5936+'.\x20Use\x20alpha\x20|\x20staging\x20|\x20production\x20|\x20localhost.'),process['exit'](0x2)),_0x39beff[_0x518ae4(0x235)]=_0xcd5936;break;}case _0x518ae4(0x189):case _0x518ae4(0x1d8):{let _0x34c404=b(_0x11ce9a,++_0x61c48d,_0x37d8e0,_0x518ae4(0xa8)),_0x59bed9=_0x2e6cf6(_0x34c404);if(_0x59bed9['ok']===!0x1){console[_0x518ae4(0x22d)](_0x341b2a(_0x34c404,_0x59bed9[_0x518ae4(0x223)])),process['exit'](0x2);break;}_0x39beff['url']=_0x59bed9[_0x518ae4(0x226)];break;}case _0x518ae4(0x8c):_0x39beff[_0x518ae4(0x1d2)]=!0x0;break;case'-h':case'--help':_0x39beff['help']=!0x0;break;case'-v':case _0x518ae4(0x131):_0x39beff[_0x518ae4(0x287)]=!0x0;break;default:_0x37d8e0['startsWith']('--')&&(console['error'](_0x518ae4(0x1ec)+_0x37d8e0),process[_0x518ae4(0x23b)](0x2)),_0x201a32[_0x518ae4(0x1e0)](_0x37d8e0);}}return _0x39beff[_0x518ae4(0x1af)]!==void 0x0&&_0x39beff[_0x518ae4(0x19a)]!=='login'&&(console[_0x518ae4(0x22d)](_0x518ae4(0xe4)),process[_0x518ae4(0x23b)](0x2)),_0x39beff[_0x518ae4(0x1e1)]!==void 0x0&&_0x39beff[_0x518ae4(0x235)]!==void 0x0&&(console[_0x518ae4(0x22d)]('Pass\x20either\x20--env\x20(a\x20named\x20cloud)\x20or\x20--url\x20(any\x20other\x20deployment),\x20not\x20both.'),process[_0x518ae4(0x23b)](0x2)),_0x39beff[_0x518ae4(0x1e1)]!==void 0x0&&_0x39beff[_0x518ae4(0x19a)]!=='login'&&(console[_0x518ae4(0x22d)](_0x518ae4(0xf3)),process[_0x518ae4(0x23b)](0x2)),_0x39beff[_0x518ae4(0x1bc)]!==void 0x0&&_0x39beff['subcommand']!==_0x518ae4(0x10e)&&(console[_0x518ae4(0x22d)]('--days\x20applies\x20to\x20`delegate-cli\x20usage\x20activity|daily`\x20only.'),process['exit'](0x2)),_0x39beff['jsonSchemaPath']!==void 0x0&&(_0x39beff[_0x518ae4(0x19a)]!==_0x518ae4(0x256)&&_0x39beff[_0x518ae4(0x19a)]!==''||_0x39beff[_0x518ae4(0x195)])&&(console['error']('--json-schema\x20applies\x20to\x20prompts\x20and\x20to\x20`delegate-cli\x20complete`\x20only.'),process[_0x518ae4(0x23b)](0x2)),_0x39beff[_0x518ae4(0x101)][_0x518ae4(0x29f)]>0x0&&(_0x39beff[_0x518ae4(0x19a)]!==''||_0x39beff[_0x518ae4(0x195)])&&(console[_0x518ae4(0x22d)](_0x518ae4(0xe9)),process[_0x518ae4(0x23b)](0x2)),_0x39beff[_0x518ae4(0x196)]&&(_0x39beff[_0x518ae4(0x19a)]!==''||_0x39beff[_0x518ae4(0x195)])&&(console['error'](_0x518ae4(0x24f)),process[_0x518ae4(0x23b)](0x2)),_0x39beff[_0x518ae4(0x196)]&&(_0x39beff[_0x518ae4(0x277)]||_0x39beff[_0x518ae4(0x265)]||_0x39beff[_0x518ae4(0x26c)]?.[_0x518ae4(0xc9)]()===B)&&(console[_0x518ae4(0x22d)](_0x518ae4(0xd2)),process[_0x518ae4(0x23b)](0x2)),_0x39beff[_0x518ae4(0xa6)]&&(_0x39beff[_0x518ae4(0x26c)]!==void 0x0&&_0x39beff[_0x518ae4(0x26c)]['trim']()!==B&&(console['error'](_0x518ae4(0x15c)+B+_0x518ae4(0x266)+_0x39beff[_0x518ae4(0x26c)]+_0x518ae4(0xce)),process['exit'](0x2)),_0x39beff[_0x518ae4(0x26c)]=B),_0x39beff[_0x518ae4(0x1d2)]&&_0x39beff[_0x518ae4(0x19a)]!=='login'&&(console['error']('--skip-env-check\x20applies\x20to\x20`delegate-cli\x20login`\x20only.'),process[_0x518ae4(0x23b)](0x2)),_0x39beff[_0x518ae4(0x224)]!=='text'&&!ue[_0x518ae4(0x16b)](_0x39beff['subcommand'])&&(console[_0x518ae4(0x22d)](_0x518ae4(0x274)+_0x39beff['outputFormat']+_0x518ae4(0x254)+ue[_0x518ae4(0x23d)](Boolean)[_0x518ae4(0x126)](',\x20')+'.'),process[_0x518ae4(0x23b)](0x2)),(_0x39beff[_0x518ae4(0x141)]!==_0x518ae4(0x1f9)||_0x39beff['replayUserMessages'])&&_0x39beff['subcommand']!==''&&(console[_0x518ae4(0x22d)](_0x518ae4(0x262)),process[_0x518ae4(0x23b)](0x2)),_0x39beff[_0x518ae4(0xf8)]&&_0x39beff['inputFormat']!==_0x518ae4(0x1f1)&&(console['error']('--replay-user-messages\x20needs\x20--input-format\x20stream-json.'),process[_0x518ae4(0x23b)](0x2)),_0x39beff[_0x518ae4(0x141)]===_0x518ae4(0x1f1)&&_0x39beff[_0x518ae4(0x224)]!=='stream-json'&&(console[_0x518ae4(0x22d)](_0x518ae4(0x152)),process[_0x518ae4(0x23b)](0x2)),(_0x39beff[_0x518ae4(0x12e)]!==void 0x0||_0x39beff[_0x518ae4(0x206)]!==void 0x0||_0x39beff[_0x518ae4(0x9e)])&&_0x39beff['subcommand']!=='sessions'&&(console[_0x518ae4(0x22d)](_0x518ae4(0xb8)),process['exit'](0x2)),(_0x39beff[_0x518ae4(0x87)]!==void 0x0||_0x39beff[_0x518ae4(0xa1)]!==void 0x0)&&_0x39beff[_0x518ae4(0x19a)]!==_0x518ae4(0x1cf)&&(console[_0x518ae4(0x22d)](_0x518ae4(0x19d)),process[_0x518ae4(0x23b)](0x2)),_0x39beff[_0x518ae4(0x245)]!==void 0x0&&_0x39beff['subcommand']!==_0x518ae4(0xea)&&(console[_0x518ae4(0x22d)](_0x518ae4(0xd8)),process[_0x518ae4(0x23b)](0x2)),_0x39beff[_0x518ae4(0xe1)]=[...new Set(_0x39beff['preloadSkills'])],_0x39beff[_0x518ae4(0xb0)]=_0x201a32,_0x39beff[_0x518ae4(0x1cd)]=_0x201a32[_0x518ae4(0x126)]('\x20'),_0x39beff[_0x518ae4(0x141)]===_0x518ae4(0x1f1)&&_0x39beff['prompt']!==''&&(console[_0x518ae4(0x22d)](_0x518ae4(0x159)),process['exit'](0x2)),_0x39beff;}var O=_0x27bc3b=>{const _0x1d13c9=_0x473da0;process[_0x1d13c9(0xd0)][_0x1d13c9(0xf6)](_0x27bc3b);};function Qt(){const _0xd58aa5=_0x473da0;let _0x2565af=process[_0xd58aa5(0xd0)][_0xd58aa5(0xf6)],_0x54e60e=_0x2565af[_0xd58aa5(0x154)](process['stdout']),_0xe513f4=O;return O=_0x42001b=>{_0x54e60e(_0x42001b);},process[_0xd58aa5(0xd0)][_0xd58aa5(0xf6)]=(..._0xe7952)=>process[_0xd58aa5(0x220)][_0xd58aa5(0xf6)](..._0xe7952),()=>{const _0x53267c=_0xd58aa5;process['stdout'][_0x53267c(0xf6)]=_0x2565af,O=_0xe513f4;};}function m(_0x2cf1a4,_0x266df6,_0x293a1a){const _0x82a9c7=_0x473da0;if(_0x2cf1a4[_0x82a9c7(0x224)]===_0x82a9c7(0x1f9)){_0x293a1a(_0x266df6);return;}O(_0x32da33(_0x266df6));}function qt(){const _0x33f538=_0x473da0;let _0xcd3948='\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,\x20Cartographer\x20allowance\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'[_0x33f538(0xc9)]();console[_0x33f538(0x1b0)](_0xcd3948);}function zt(){const _0x2d12f5=_0x473da0;try{return JSON[_0x2d12f5(0xaf)](_0x3a9338['readFileSync'](_0x2f70c9[_0x2d12f5(0x126)](__dirname,'..','package.json'),_0x2d12f5(0xee)))[_0x2d12f5(0x287)]||_0x2d12f5(0x253);}catch{return _0x2d12f5(0x253);}}var Yt=0x7d0;async function me(_0x20b202,_0x4fbea1){const _0x47220a=_0x473da0;let _0xbbd463=_0x4fbea1?[_0x4fbea1]:[];for await(let _0x2a6c1a of _0x20b202)_0xbbd463[_0x47220a(0x1e0)](Buffer[_0x47220a(0x1e5)](_0x2a6c1a));return Buffer[_0x47220a(0xc8)](_0xbbd463)[_0x47220a(0xdf)](_0x47220a(0xee))[_0x47220a(0xc9)]();}function Vt(_0x5b1d15,_0x2b4229){return new Promise(_0x48b438=>{const _0x1a3fdc=_0x9cbc;let _0x19d23=_0x428da1=>{const _0x17da80=_0x9cbc;clearTimeout(_0x479f45),_0x5b1d15[_0x17da80(0xe7)]('data',_0x36ebaa),_0x5b1d15[_0x17da80(0xe7)]('end',_0x277053),_0x5b1d15[_0x17da80(0xe7)]('error',_0x277053),_0x5b1d15[_0x17da80(0x28f)](),_0x48b438(_0x428da1);},_0x36ebaa=_0x460954=>_0x19d23(Buffer['from'](_0x460954)),_0x277053=()=>_0x19d23(null),_0x479f45=setTimeout(()=>_0x19d23(null),_0x2b4229);_0x5b1d15['on'](_0x1a3fdc(0x28c),_0x36ebaa),_0x5b1d15['on']('end',_0x277053),_0x5b1d15['on']('error',_0x277053),_0x5b1d15[_0x1a3fdc(0x17e)]();});}async function H(_0x319028,_0xf4e125,_0x4895ad=Yt){let _0x339387=_0x319028==='-';if(!_0x339387&&_0x319028)return _0x319028;if(!_0x339387&&_0xf4e125['isTTY'])return'';if(_0x339387)return me(_0xf4e125,null);let _0x12e5f5=await Vt(_0xf4e125,_0x4895ad);return _0x12e5f5?me(_0xf4e125,_0x12e5f5):'';}function z(){const _0x30c99a=_0x473da0;return _0x2f70c9['join'](process.env.HOME||process.env.USERPROFILE||'',_0x30c99a(0x239),_0x30c99a(0xc2));}function G(_0x255d81){const _0x194271=_0x473da0;try{let _0x17b67f=JSON['parse'](_0x3a9338[_0x194271(0x1a7)](_0x255d81,_0x194271(0xee)));return!_0x17b67f[_0x194271(0x190)]||!_0x17b67f[_0x194271(0xc6)]||!_0x17b67f[_0x194271(0x296)]?null:_0x17b67f;}catch{return null;}}function Xt(){const _0x2f425c=_0x473da0;let _0x4f7c3a=[{'file':_0x31beec(),'isDesktopFallback':!0x1},{'file':z(),'isDesktopFallback':!0x0}];for(let _0x1c2134 of _0x4f7c3a){let _0x393761=G(_0x1c2134[_0x2f425c(0x216)]);if(_0x393761)return{..._0x1c2134,'auth':_0x393761};}return null;}async function Zt(){const _0x379369=_0x473da0;let _0x2edfea=_0x31beec();if(!_0x3a9338['existsSync'](_0x2edfea)){let _0x1f1d54=z();console['log'](G(_0x1f1d54)?_0x379369(0x13e)+_0x1f1d54+_0x379369(0x10b):_0x379369(0x1a3));return;}_0x3a9338[_0x379369(0x9a)](_0x2edfea),console['log'](_0x379369(0x1c1)+_0x2edfea);}async function en(_0x2918dd){const _0x59d42e=_0x473da0;let _0xfcf46e=Y(),_0x2cc1c4,_0x59b6ed;if(_0xfcf46e)_0x2cc1c4=_0xfcf46e,_0x59b6ed=_0x59d42e(0x250);else{let _0x42ec3b=Xt();if(!_0x42ec3b)throw new Error(Te);_0x2cc1c4=_0x42ec3b[_0x59d42e(0x198)],_0x59b6ed=_0x42ec3b['isDesktopFallback']?_0x42ec3b[_0x59d42e(0x216)]+_0x59d42e(0x146):_0x42ec3b[_0x59d42e(0x216)];}let _0x496459={'source':_0x59b6ed,'baseUrl':_0x2cc1c4['baseUrl']??null,'deployment':tn(_0x2cc1c4['baseUrl']),'organization':{'id':_0x2cc1c4[_0x59d42e(0x296)],'slug':_0x2cc1c4[_0x59d42e(0x25b)]??null},'tenant':{'id':_0x2cc1c4[_0x59d42e(0xc6)],'name':_0x2cc1c4[_0x59d42e(0x1c7)]??null},'tokenExpiresAt':_0x2cc1c4['expiresAt']?new Date(_0x2cc1c4[_0x59d42e(0x155)]*0x3e8)[_0x59d42e(0x241)]():null};m(_0x2918dd,_0x496459,()=>{const _0x331e19=_0x59d42e;let _0x3b7329=[_0x331e19(0x208)+_0x59b6ed,_0x331e19(0x1c4)+(_0x2cc1c4[_0x331e19(0x226)]??'unknown'),_0x331e19(0x13d)+_0x496459[_0x331e19(0x17b)],_0x331e19(0x140)+(_0x2cc1c4[_0x331e19(0x25b)]??_0x331e19(0x86))+'\x20('+_0x2cc1c4['organizationId']+')',_0x331e19(0xa3)+(_0x2cc1c4[_0x331e19(0x1c7)]??'unknown\x20slug')+'\x20('+_0x2cc1c4[_0x331e19(0xc6)]+')'];if(_0x2cc1c4[_0x331e19(0x155)]){let _0x17ea91=_0x2cc1c4['expiresAt']-Math[_0x331e19(0x21d)](Date[_0x331e19(0x1f7)]()/0x3e8);_0x3b7329[_0x331e19(0x1e0)](_0x17ea91>0x0?_0x331e19(0x23a)+_0x496459[_0x331e19(0x187)]+_0x331e19(0x88)+Math[_0x331e19(0x1c2)](_0x17ea91/0x3c)+_0x331e19(0x272):_0x331e19(0x11e)+_0x496459[_0x331e19(0x187)]);}process[_0x331e19(0xd0)][_0x331e19(0xf6)](_0x3b7329[_0x331e19(0x126)]('\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 tn(_0x19c073){const _0x5ccfbc=_0x473da0;return _0x19c073?_0x38359f(_0x19c073)?_0x5ccfbc(0x184):'self-hosted\x20(Automation\x20Suite\x20/\x20Dedicated)':'unknown';}function Y(){let _0x30bd1c=process.env.AUTH_TOKEN_FILE;return(process.env.AUTH_TOKEN||_0x30bd1c)&&process.env.TENANT_ID&&process.env.ORG_ID?{'accessToken':_0x30bd1c?nn(_0x30bd1c):process.env.AUTH_TOKEN,..._0x30bd1c?{'accessTokenFile':_0x30bd1c}:{},'tenantId':process.env.TENANT_ID,'organizationId':process.env.ORG_ID,'orgLogicalName':process.env.ORG_SLUG,'tenantName':process.env.TENANT_SLUG,'baseUrl':Ue()}:null;}function nn(_0x479b54){const _0x1959d2=_0x473da0;let _0x4c89f0;try{_0x4c89f0=_0x3a9338[_0x1959d2(0x1a7)](_0x479b54,_0x1959d2(0xee))[_0x1959d2(0xc9)]();}catch(_0x2e1d54){throw new Error('AUTH_TOKEN_FILE\x20\x27'+_0x479b54+_0x1959d2(0x1c6)+_0x2e1d54[_0x1959d2(0x1e6)]);}let _0x2d6357=_0x4c89f0['startsWith']('Bearer\x20')?_0x4c89f0[_0x1959d2(0x119)](0x7)[_0x1959d2(0xc9)]():_0x4c89f0;if(!_0x2d6357)throw new Error(_0x1959d2(0xd6)+_0x479b54+'\x27\x20is\x20empty.');return _0x2d6357;}function Ue(){const _0x4512d9=_0x473da0;let _0x77dda=process.env.UIPATH_BASE_URL;if(!_0x77dda)return;let _0x2baf3f=_0x2e6cf6(_0x77dda);if(_0x2baf3f['ok']===!0x1)throw new Error('UIPATH_BASE_URL\x20is\x20unusable.\x20'+_0x341b2a(_0x77dda,_0x2baf3f[_0x4512d9(0x223)]));return _0x2baf3f['baseUrl'];}async function V(){let _0x5b8114=Y();if(_0x5b8114)return _0x5b8114;let _0xff80ad=await _0x287388();if(_0xff80ad)return _0xff80ad;throw new Error(Te);}async function sn(){const _0x4fac0b=_0x473da0;await new _0x19f17e()[_0x4fac0b(0x1ad)]({'force':!0x0}),console[_0x4fac0b(0x1b0)](_0x4fac0b(0x96));}function X(_0x124da5,_0xa00ec7,_0x140e65){const _0x612d62=_0x473da0;_0x124da5?process['stderr'][_0x612d62(0xf6)](_0x612d62(0x22a)+_0x124da5+_0x612d62(0x25e)+_0x140e65+'\x0a'):!_0xa00ec7&&!process.env.BACKEND_URL&&process['stderr']['write'](_0x612d62(0x282)+_0x140e65+'\x0a');}async function $(_0x52e1fa){const _0x3ccb12=_0x473da0;let _0x3b239b=await V(),_0x2fec7e=_0x6d491f(_0x52e1fa['env'],_0x3b239b,_0x52e1fa[_0x3ccb12(0xa5)]);return X(_0x52e1fa[_0x3ccb12(0x235)],_0x52e1fa[_0x3ccb12(0xa5)],_0x2fec7e),{'auth':_0x3b239b,'backendUrl':_0x2fec7e,'client':_0x11df3c({'auth':_0x3b239b,'backendUrl':_0x2fec7e})};}async function on(_0x471abc){const _0x38b35c=_0x473da0;let {client:_0x293785}=await $(_0x471abc),[_0x379d23,_0x2d311a]=await Promise[_0x38b35c(0x157)]([_0x14b1a1(_0x293785),_0x3cd05f(_0x293785)['catch'](_0x4fee88=>(process[_0x38b35c(0x220)][_0x38b35c(0xf6)](_0x38b35c(0x264)+(_0x4fee88 instanceof Error?_0x4fee88[_0x38b35c(0x1e6)]:String(_0x4fee88))+'\x0a'),{}))]),_0x26b637=_0x379d23[_0x38b35c(0x1b8)](_0x389d4e=>_0x2d311a[_0x389d4e['id']]?{..._0x389d4e,'byoWarning':_0x2d311a[_0x389d4e['id']]}:_0x389d4e);m(_0x471abc,_0x26b637,rn);}function rn(_0x4856d3){const _0x5ad334=_0x473da0;if(_0x4856d3[_0x5ad334(0x29f)]===0x0){process[_0x5ad334(0x220)][_0x5ad334(0xf6)](_0x5ad334(0x1a6));return;}process[_0x5ad334(0xd0)][_0x5ad334(0xf6)]('\x0aAvailable\x20models\x20('+_0x4856d3['length']+'):\x0a\x0a');for(let _0x3b41ca of _0x4856d3){let _0x4b0036=_0x3b41ca['name']&&_0x3b41ca[_0x5ad334(0xfa)]!==_0x3b41ca['id']?'\x20('+_0x3b41ca[_0x5ad334(0xfa)]+')':'';process[_0x5ad334(0xd0)][_0x5ad334(0xf6)]('\x20\x20'+_0x3b41ca['id']+_0x4b0036+'\x0a'),_0x3b41ca['description']&&process[_0x5ad334(0xd0)][_0x5ad334(0xf6)]('\x20\x20\x20\x20'+_0x3b41ca[_0x5ad334(0x178)]+'\x0a'),_0x3b41ca[_0x5ad334(0x13b)]&&process[_0x5ad334(0xd0)]['write']('\x20\x20\x20\x20Not\x20available\x20on\x20this\x20plan'+(_0x3b41ca[_0x5ad334(0x204)]?'\x20('+_0x3b41ca['lockReason']+')':'')+'\x0a'),_0x3b41ca[_0x5ad334(0x158)]&&process[_0x5ad334(0xd0)][_0x5ad334(0xf6)](_0x5ad334(0xc4)+_0x3b41ca[_0x5ad334(0x158)]+'\x0a');}process[_0x5ad334(0xd0)][_0x5ad334(0xf6)](_0x5ad334(0x1c9));}var fe=[_0x473da0(0x1ba),_0x473da0(0x99),_0x473da0(0x1f5),_0x473da0(0x1fc),'cancel',_0x473da0(0x89)];async function an(_0x4838b5){const _0x327cb7=_0x473da0;let [_0x30eef4='',_0x360b0f='',..._0x50f197]=_0x4838b5['operands'];if(_0x30eef4&&!fe['includes'](_0x30eef4)&&(console['error'](_0x327cb7(0x1df)+_0x30eef4+_0x327cb7(0xec)+fe['join']('\x20|\x20')+'.'),process[_0x327cb7(0x23b)](0x2)),_0x4838b5[_0x327cb7(0x245)]!==void 0x0&&_0x30eef4!==_0x327cb7(0x240)&&(console['error']('--turn\x20applies\x20to\x20`delegate-cli\x20sessions\x20cancel`\x20only.'),process[_0x327cb7(0x23b)](0x2)),_0x30eef4&&_0x30eef4!==_0x327cb7(0x1ba)){await ln(_0x4838b5,_0x30eef4,_0x360b0f,_0x50f197[_0x327cb7(0x126)]('\x20')[_0x327cb7(0xc9)]());return;}_0x4838b5[_0x327cb7(0xb0)][_0x327cb7(0x29f)]>0x1&&(console[_0x327cb7(0x22d)](_0x327cb7(0x151)),process[_0x327cb7(0x23b)](0x2));let {client:_0x55a22f}=await $(_0x4838b5),_0x68144c=await _0x8faf6b(_0x55a22f,{'page':_0x4838b5[_0x327cb7(0x12e)],'pageSize':_0x4838b5['limit'],'includeSubAgents':_0x4838b5['includeSubAgents']});m(_0x4838b5,_0x68144c,pn);}async function ln(_0x4ae42c,_0x13c000,_0x52de46,_0x4bf230){const _0x46690e=_0x473da0;if((_0x4ae42c[_0x46690e(0x12e)]!==void 0x0||_0x4ae42c['limit']!==void 0x0||_0x4ae42c[_0x46690e(0x9e)])&&(console[_0x46690e(0x22d)]('--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`delegate-cli\x20sessions\x20[list]`\x20only.'),process[_0x46690e(0x23b)](0x2)),_0x13c000===_0x46690e(0x240)){await dn(_0x4ae42c,_0x52de46,_0x4bf230);return;}if(_0x13c000===_0x46690e(0x89)){await un(_0x4ae42c,_0x52de46,_0x4bf230);return;}(!_0x52de46||_0x13c000===_0x46690e(0x1f5)!=!!_0x4bf230)&&(console['error'](_0x46690e(0x98)+_0x13c000+'\x20<id>'+(_0x13c000===_0x46690e(0x1f5)?_0x46690e(0x85):'')),process[_0x46690e(0x23b)](0x2));let {client:_0x475643}=await $(_0x4ae42c);try{if(_0x13c000===_0x46690e(0x99)){let _0x173ef5=await _0x2ffd56(_0x475643,_0x52de46);_0x173ef5||ge(_0x52de46),m(_0x4ae42c,_0x173ef5,cn);}else{if(_0x13c000===_0x46690e(0x1f5)){let _0x59272f=await _0x5e1c09(_0x475643,_0x52de46,_0x4bf230);m(_0x4ae42c,_0x59272f,_0x517b06=>{const _0x1d864f=_0x46690e;process[_0x1d864f(0xd0)][_0x1d864f(0xf6)](_0x1d864f(0x12f)+_0x517b06['id']+':\x20'+_0x517b06[_0x1d864f(0x14a)]+'\x0a');});}else await _0x4502d9(_0x475643,_0x52de46),await _0x17e84c(_0x52de46,_0x4ae42c[_0x46690e(0x124)]),m(_0x4ae42c,{'id':_0x52de46,'deleted':!0x0},_0x16fdc5=>{const _0x1053d6=_0x46690e;process['stdout']['write'](_0x1053d6(0x26b)+_0x16fdc5['id']+'.\x0a');});}}catch(_0x300f91){if(!_0x4904d9(_0x300f91,0x194))throw _0x300f91;ge(_0x52de46);}}function ge(_0x3f1ef1){const _0x491f3f=_0x473da0;console['error']('Session\x20'+_0x3f1ef1+_0x491f3f(0xe8)),process[_0x491f3f(0x23b)](0x1);}function cn(_0x2db108){const _0x2e8fc1=_0x473da0;process['stdout']['write']('ID\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x2db108['id']+'\x0a'),process[_0x2e8fc1(0xd0)][_0x2e8fc1(0xf6)](_0x2e8fc1(0x1ce)+_0x2db108[_0x2e8fc1(0x14a)]+'\x0a'),process[_0x2e8fc1(0xd0)][_0x2e8fc1(0xf6)](_0x2e8fc1(0x1d7)+_0x2db108[_0x2e8fc1(0x280)]+'\x0a'),process[_0x2e8fc1(0xd0)][_0x2e8fc1(0xf6)](_0x2e8fc1(0xbe)+_0x2db108['organizationId']+'\x0a'),_0x2db108['delegationId']&&process[_0x2e8fc1(0xd0)]['write']('Delegation\x20\x20\x20\x20'+_0x2db108['delegationId']+'\x0a');}async function dn(_0x2dae61,_0x10842a,_0xf45093){const _0x3e91ed=_0x473da0;(!_0x10842a||_0xf45093||!_0x2dae61[_0x3e91ed(0x245)])&&(console[_0x3e91ed(0x22d)]('Usage:\x20delegate-cli\x20sessions\x20cancel\x20<session-id>\x20--turn\x20<turn-id>'),process[_0x3e91ed(0x23b)](0x2));let {client:_0x586220}=await $(_0x2dae61),_0x54ed01=await _0x3be44f(_0x586220,_0x10842a,_0x2dae61[_0x3e91ed(0x245)]);m(_0x2dae61,{'sessionId':_0x10842a,'turnId':_0x2dae61[_0x3e91ed(0x245)],'cancelled':_0x54ed01},_0x34114d=>{const _0x36d722=_0x3e91ed;_0x34114d[_0x36d722(0xd3)]?process[_0x36d722(0xd0)][_0x36d722(0xf6)]('Cancel\x20requested\x20for\x20turn\x20'+_0x34114d['turnId']+_0x36d722(0xb4)+_0x34114d[_0x36d722(0xaa)]+'.\x0a'):process['stderr'][_0x36d722(0xf6)](_0x36d722(0x9c)+_0x34114d[_0x36d722(0x245)]+_0x36d722(0x228)+_0x34114d[_0x36d722(0xaa)]+'.\x0a');}),_0x54ed01||(process[_0x3e91ed(0x227)]=0x1);}async function un(_0x1ead47,_0x4ce348,_0x516473){const _0x1d5e44=_0x473da0;(!_0x4ce348||/\s/[_0x1d5e44(0x1d9)](_0x516473))&&(console[_0x1d5e44(0x22d)](_0x1d5e44(0xcf)),process[_0x1d5e44(0x23b)](0x2));let {client:_0x489859}=await $(_0x1ead47),_0x4bf3a0;try{_0x4bf3a0=await _0x659dfe(_0x489859,_0x4ce348,{'atMessageId':_0x516473||void 0x0});}catch(_0x1c2267){if(!_0x4904d9(_0x1c2267,0x194))throw _0x1c2267;console['error'](_0x1d5e44(0x21a)+_0x4ce348+'\x20not\x20found,\x20has\x20no\x20messages'+(_0x516473?_0x1d5e44(0x161)+_0x516473:'')+'.'),process[_0x1d5e44(0x23b)](0x1);}m(_0x1ead47,_0x4bf3a0,_0x4850fa=>{const _0x1f45ed=_0x1d5e44;process[_0x1f45ed(0xd0)][_0x1f45ed(0xf6)](_0x1f45ed(0x1d0)+_0x4ce348+_0x1f45ed(0x113)+_0x4850fa['id']+'.\x0a'),process[_0x1f45ed(0x220)][_0x1f45ed(0xf6)](_0x1f45ed(0x183)+_0x4850fa['id']+_0x1f45ed(0x10a));});}function pn({sessions:_0x52b2f7,page:_0x4b4232,isLastPage:_0x222f3c}){const _0x5978ad=_0x473da0;if(_0x52b2f7[_0x5978ad(0x29f)]===0x0)process[_0x5978ad(0x220)][_0x5978ad(0xf6)]('No\x20sessions\x20on\x20page\x20'+_0x4b4232+'.\x0a');else{process[_0x5978ad(0xd0)]['write']('ID'[_0x5978ad(0x125)](0x24)+'\x20\x20'+_0x5978ad(0x25a)[_0x5978ad(0x125)](0x13)+_0x5978ad(0x1e9));for(let _0x50be67 of _0x52b2f7){let _0x228e19=_0x50be67['updatedAt']['replace']('T','\x20')[_0x5978ad(0x119)](0x0,0x13),_0x286695=_0x50be67[_0x5978ad(0x172)]?_0x5978ad(0x199)+_0x50be67['parentSessionId']+')':'';process['stdout']['write'](_0x50be67['id'][_0x5978ad(0x125)](0x24)+'\x20\x20'+_0x228e19[_0x5978ad(0x125)](0x13)+'\x20\x20'+_0x50be67['title']+_0x286695+'\x0a');}}_0x222f3c||process['stderr'][_0x5978ad(0xf6)]('More:\x20delegate-cli\x20sessions\x20--page\x20'+(_0x4b4232+0x1)+'\x0a');}async function mn(_0x1c70b7){const _0x58bafc=_0x473da0;let _0x35f412=await V(),_0x1dc35c=_0x6d491f(_0x1c70b7[_0x58bafc(0x235)],_0x35f412,_0x1c70b7['backendUrl']);X(_0x1c70b7['env'],_0x1c70b7['backendUrl'],_0x1dc35c);let _0x5c3cde=await _0x176c39({'auth':_0x35f412,'backendUrl':_0x1dc35c,'interop':_0x1c70b7[_0x58bafc(0x277)]?_0x58bafc(0x11d):_0x58bafc(0xfe)});m(_0x1c70b7,_0x5c3cde,({checks:_0x141618})=>{const _0x59ae23=_0x58bafc;for(let _0x43d92a of _0x141618)process[_0x59ae23(0xd0)][_0x59ae23(0xf6)](fn(_0x43d92a)+'\x0a');}),_0x5c3cde['ok']||process[_0x58bafc(0x23b)](0x1);}function fn(_0x173912){const _0x4d3944=_0x473da0;return{'ok':'✓','failed':'✗','skipped':'-'}[_0x173912[_0x4d3944(0x17d)]]+'\x20'+_0x173912[_0x4d3944(0xfa)]['padEnd'](0xa)+_0x173912[_0x4d3944(0x182)];}var gn=['',_0x473da0(0xdc),_0x473da0(0xba)];async function hn(_0x1487e5){const _0x588f17=_0x473da0;let _0xbfa459=_0x1487e5['prompt'];gn[_0x588f17(0x16b)](_0xbfa459)||(console[_0x588f17(0x22d)]('Unknown\x20usage\x20view:\x20'+_0x1487e5['prompt']+_0x588f17(0x215)),process[_0x588f17(0x23b)](0x2)),_0xbfa459===''&&_0x1487e5[_0x588f17(0x1bc)]!==void 0x0&&(console['error']('--days\x20applies\x20to\x20`delegate-cli\x20usage\x20activity|daily`;\x20the\x20summary\x20covers\x20the\x20current\x20month.'),process[_0x588f17(0x23b)](0x2)),_0xbfa459!==''&&_0x1487e5['sessionId']!==void 0x0&&(console[_0x588f17(0x22d)](_0x588f17(0x19f)),process[_0x588f17(0x23b)](0x2));let {client:_0x7b22a9}=await $(_0x1487e5);if(_0xbfa459===_0x588f17(0xdc)){m(_0x1487e5,await _0x22232e(_0x7b22a9,{'days':_0x1487e5[_0x588f17(0x1bc)]}),wn);return;}if(_0xbfa459===_0x588f17(0xba)){m(_0x1487e5,await _0x1a2cec(_0x7b22a9,{'days':_0x1487e5[_0x588f17(0x1bc)]}),kn);return;}let [_0x24fd47,_0x52726d,_0x41234d]=await Promise[_0x588f17(0x157)]([_0xb984f8(_0x7b22a9,{'sessionId':_0x1487e5['sessionId']}),_0xae213f(_0x7b22a9),_0x5232f9(_0x7b22a9)]);m(_0x1487e5,{'licensing':_0x24fd47,'monthlySpending':_0x52726d,'cartographerAllowance':_0x41234d},yn);}function yn(_0x5ad9a4){const _0x6ec219=_0x473da0;let {licensing:_0x8a3529,monthlySpending:_0x2d7497,cartographerAllowance:_0x17f013}=_0x5ad9a4,_0xe1cb1=[_0x8a3529[_0x6ec219(0x20d)]?_0x6ec219(0xad)+_0x8a3529[_0x6ec219(0x186)][_0x6ec219(0x8a)](0x1)+_0x6ec219(0x18d)+(_0x8a3529[_0x6ec219(0x23c)]??0x0)+_0x6ec219(0x143)+(_0x8a3529[_0x6ec219(0x1f8)]>0x0?',\x20'+_0x8a3529[_0x6ec219(0x1f8)]+_0x6ec219(0x149):'')+_0x6ec219(0x20b)+_0x8a3529[_0x6ec219(0x1c5)]+')':'Licensing:\x20\x20\x20\x20no\x20licensing\x20quota\x20applies',_0x6ec219(0x29b)+_0x2d7497['monthly_spend_usd'][_0x6ec219(0x8a)](0x2)+'\x20this\x20month'+(_0x2d7497['limit_enabled']&&_0x2d7497[_0x6ec219(0x258)]!==null?_0x6ec219(0xf4)+_0x2d7497[_0x6ec219(0x258)][_0x6ec219(0x8a)](0x2)+_0x6ec219(0x102):_0x6ec219(0x91)),_0x6ec219(0x27c)+_0x17f013[_0x6ec219(0x1eb)]+'\x20('+_0x17f013['model_id']+')'];_0x8a3529[_0x6ec219(0x1de)]!==null&&_0x8a3529[_0x6ec219(0x1de)]!==void 0x0&&_0xe1cb1[_0x6ec219(0x1e0)]('Session:\x20\x20\x20\x20\x20\x20'+_0x8a3529[_0x6ec219(0x1de)]+'\x20PU'),process[_0x6ec219(0xd0)]['write'](_0xe1cb1[_0x6ec219(0x126)]('\x0a')+'\x0a');}function wn(_0x47c086){const _0x3d43e8=_0x473da0;let _0x349193=[_0x3d43e8(0x173)+_0x47c086[_0x3d43e8(0x246)]+_0x3d43e8(0xdd)+_0x47c086['total_sessions']+_0x3d43e8(0x162)+_0x47c086['active_days']+_0x3d43e8(0x27e),_0x3d43e8(0x22e)+_0x47c086['total_cost_usd']['toFixed'](0x2)+'\x20(estimated\x20$'+_0x47c086['estimated_cost_usd']['toFixed'](0x2)+'\x20from\x20'+_0x47c086[_0x3d43e8(0x1a1)]+_0x3d43e8(0x244),_0x3d43e8(0x137)+_0x47c086[_0x3d43e8(0x1d5)]+_0x3d43e8(0x1ea)+_0x47c086[_0x3d43e8(0x290)]+_0x3d43e8(0x1f4)];for(let [_0x43fc3b,_0x54d2e9]of Object[_0x3d43e8(0x212)](_0x47c086[_0x3d43e8(0x1d4)]))_0x349193[_0x3d43e8(0x1e0)]('\x20\x20'+_0x43fc3b+':\x20'+_0x54d2e9+_0x3d43e8(0xb5));process[_0x3d43e8(0xd0)][_0x3d43e8(0xf6)](_0x349193[_0x3d43e8(0x126)]('\x0a')+'\x0a');}function kn(_0x6e48d8){const _0x15fb3c=_0x473da0;if(_0x6e48d8[_0x15fb3c(0x16e)][_0x15fb3c(0x29f)]===0x0){process[_0x15fb3c(0xd0)][_0x15fb3c(0xf6)](_0x15fb3c(0xca)+_0x6e48d8[_0x15fb3c(0x246)]+'\x20days.\x0a');return;}let _0x1df0c1=[_0x15fb3c(0x100)];for(let _0x5ecc13 of _0x6e48d8[_0x15fb3c(0x16e)])_0x1df0c1[_0x15fb3c(0x1e0)](_0x5ecc13[_0x15fb3c(0x191)]+'\x20\x20'+String(_0x5ecc13[_0x15fb3c(0x112)])[_0x15fb3c(0x27a)](0xb)+'\x20\x20'+String(_0x5ecc13['prompt_tokens'])[_0x15fb3c(0x27a)](0xd)+'\x20\x20'+String(_0x5ecc13['completion_tokens'])[_0x15fb3c(0x27a)](0x11));process[_0x15fb3c(0xd0)][_0x15fb3c(0xf6)](_0x1df0c1[_0x15fb3c(0x126)]('\x0a')+'\x0a');}function _0x9cbc(_0x872ae9,_0x48bfa0){_0x872ae9=_0x872ae9-0x83;const _0x22d0f7=_0x22d0();let _0x9cbc9d=_0x22d0f7[_0x872ae9];return _0x9cbc9d;}async function bn(_0x14ad4e,_0x142eb1){const _0xcc5bb9=_0x473da0;let _0x4122c3=await Sn(_0x14ad4e[_0xcc5bb9(0x1cd)],_0x142eb1);_0x14ad4e['model']&&(_0x4122c3[_0xcc5bb9(0x233)]=_0x14ad4e['model']);let {client:_0xa3e1c5}=await $(_0x14ad4e);try{_0x142eb1===_0xcc5bb9(0x147)?m(_0x14ad4e,await _0x48057b(_0xa3e1c5,_0x4122c3,void 0x0),An):_0x142eb1===_0xcc5bb9(0x200)?m(_0x14ad4e,await _0x47e981(_0xa3e1c5,_0x4122c3,void 0x0),En):m(_0x14ad4e,await _0xd5d5b0(_0xa3e1c5,_0x4122c3,void 0x0),$n);}catch(_0x26137b){if(!_0xd87b52(_0x26137b))throw _0x26137b;console['error'](_0x26137b[_0xcc5bb9(0x1e6)]),process[_0xcc5bb9(0x23b)](0x1);}}async function Sn(_0x7baf5c,_0x2908ee){const _0x1d85b6=_0x473da0;let _0x999f72;try{_0x999f72=_0x7baf5c&&_0x7baf5c!=='-'?_0x3a9338[_0x1d85b6(0x1a7)](_0x2f70c9['resolve'](_0x7baf5c),_0x1d85b6(0xee)):await H(_0x7baf5c,process['stdin']);}catch(_0x5727d7){console[_0x1d85b6(0x22d)](_0x2908ee+_0x1d85b6(0x21b)+_0x5727d7[_0x1d85b6(0x1e6)]+').'),process[_0x1d85b6(0x23b)](0x2);}return _0x999f72||(console[_0x1d85b6(0x22d)](_0x2908ee+_0x1d85b6(0x255)+_0x2908ee+_0x1d85b6(0x232)),process['exit'](0x2)),De(_0x999f72,_0x2908ee,_0x1d85b6(0x285));}function De(_0x428d70,_0x2941c2,_0x5e87c0){const _0x1303ba=_0x473da0;let _0x3cd2f1;try{_0x3cd2f1=JSON[_0x1303ba(0xaf)](_0x428d70);}catch(_0x491d17){console[_0x1303ba(0x22d)](_0x2941c2+':\x20'+_0x5e87c0+_0x1303ba(0x12b)+_0x491d17[_0x1303ba(0x1e6)]+').'),process[_0x1303ba(0x23b)](0x2);}return(typeof _0x3cd2f1!=_0x1303ba(0x144)||_0x3cd2f1===null||Array[_0x1303ba(0x13f)](_0x3cd2f1))&&(console['error'](_0x2941c2+':\x20'+_0x5e87c0+_0x1303ba(0x138)),process[_0x1303ba(0x23b)](0x2)),_0x3cd2f1;}function Ne(_0x232be3,_0x140e12){const _0x10fa7a=_0x473da0;let _0x1303ca;try{_0x1303ca=_0x3a9338['readFileSync'](_0x2f70c9['resolve'](_0x232be3),'utf-8');}catch(_0x214e46){console[_0x10fa7a(0x22d)](_0x140e12+_0x10fa7a(0xf7)+_0x214e46['message']+').'),process[_0x10fa7a(0x23b)](0x2);}return De(_0x1303ca,_0x140e12,_0x10fa7a(0x16c));}async function vn(_0x5032a0){const _0x20c0f3=_0x473da0;_0x5032a0[_0x20c0f3(0x219)]===void 0x0&&(console[_0x20c0f3(0x22d)](_0x20c0f3(0x25d)),process[_0x20c0f3(0x23b)](0x2));let _0x188c54=Ne(_0x5032a0[_0x20c0f3(0x219)],_0x20c0f3(0x256)),_0xd4321f=(await H(_0x5032a0[_0x20c0f3(0x1cd)],process['stdin']))[_0x20c0f3(0xc9)]();_0xd4321f||(console[_0x20c0f3(0x22d)]('complete\x20needs\x20a\x20prompt:\x20delegate-cli\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22,\x20or\x20-\x20to\x20read\x20stdin.'),process['exit'](0x2));let {client:_0xb5ba26}=await $(_0x5032a0);try{let _0x27d18f=await _0xb5f710(_0xb5ba26,{'prompt':_0xd4321f,'jsonSchema':_0x188c54,'model':_0x5032a0[_0x20c0f3(0x233)]||process.env.MODEL||_0x5db5bf,..._0x5032a0['sessionId']!==void 0x0&&{'sessionId':_0x5032a0[_0x20c0f3(0xaa)]}},void 0x0);m(_0x5032a0,_0x27d18f,_0x34c857=>{const _0x1d2f55=_0x20c0f3;process[_0x1d2f55(0xd0)][_0x1d2f55(0xf6)](JSON[_0x1d2f55(0x1da)](_0x34c857[_0x1d2f55(0x22f)],null,0x2)+'\x0a');});}catch(_0x4fde74){if(!_0x4b902c(_0x4fde74))throw _0x4fde74;console['error'](_0x4fde74[_0x20c0f3(0x1e6)]),process[_0x20c0f3(0x23b)](0x1);}}function Z(_0x137ef1){const _0x1acdbc=_0x473da0;process['stdout'][_0x1acdbc(0xf6)](_0x1acdbc(0x19e)+_0x137ef1[_0x1acdbc(0x233)]+'\x20('+_0x137ef1[_0x1acdbc(0x259)]+_0x1acdbc(0x299)+_0x137ef1[_0x1acdbc(0x10e)][_0x1acdbc(0x197)]+'\x20tokens\x0a');}function An(_0x34bd04){const _0xd36a3d=_0x473da0;Z(_0x34bd04);for(let _0x88e48e of Object[_0xd36a3d(0x261)](_0x34bd04[_0xd36a3d(0xb6)])){let _0xbc2fdb=_0x34bd04[_0xd36a3d(0xb6)][_0x88e48e],_0x453cc1=_0xbc2fdb['type']===_0xd36a3d(0x1f0)?_0xd36a3d(0x142)+_0xbc2fdb[_0xd36a3d(0x1f0)][_0xd36a3d(0x8a)](0x2):_0xbc2fdb[_0xd36a3d(0x17f)]===_0xd36a3d(0xb7)?_0xd36a3d(0x1b7)+_0xbc2fdb[_0xd36a3d(0xb7)]+_0xd36a3d(0xe5)+_0xbc2fdb[_0xd36a3d(0x19b)]['toFixed'](0x2)+')':'score\x20'+_0xbc2fdb[_0xd36a3d(0x1f6)][_0xd36a3d(0x8a)](0x2)+_0xd36a3d(0xe5)+_0xbc2fdb[_0xd36a3d(0x19b)][_0xd36a3d(0x8a)](0x2)+')';process[_0xd36a3d(0xd0)]['write']('\x20\x20'+_0x88e48e+':\x20'+_0x453cc1+'\x0a');}}function En(_0x3b55c7){const _0x58896b=_0x473da0;Z(_0x3b55c7),_0x3b55c7[_0x58896b(0x1fb)][_0x58896b(0x109)]((_0x105d41,_0x148fe3)=>{const _0x322c66=_0x58896b;process[_0x322c66(0xd0)][_0x322c66(0xf6)]('\x20\x20'+(_0x148fe3+0x1)+'.\x20'+_0x105d41['id']+'\x20\x20'+_0x105d41[_0x322c66(0x1f6)][_0x322c66(0x8a)](0x3)+'\x20\x20(input\x20#'+_0x105d41['index']+')\x0a');});}function $n(_0xf6cde){const _0x5c47a8=_0x473da0;Z(_0xf6cde),process[_0x5c47a8(0xd0)]['write'](_0x5c47a8(0x166)+_0xf6cde[_0x5c47a8(0x118)]+'\x0a');for(let _0xf669a2 of _0xf6cde[_0x5c47a8(0x1fb)])process[_0x5c47a8(0xd0)][_0x5c47a8(0xf6)]('\x20\x20'+_0xf669a2['id']+':\x20'+_0xf669a2['verdict']+'\x20(confidence\x20'+_0xf669a2[_0x5c47a8(0x19b)][_0x5c47a8(0x8a)](0x2)+')\x0a');}async function xn(_0x2f0d5e){const _0x55b2fd=_0x473da0;let _0x3391e6=_0x2f0d5e['prompt'][_0x55b2fd(0xc9)]();_0x3391e6||(console[_0x55b2fd(0x22d)]('transcribe\x20needs\x20audio:\x20delegate-cli\x20transcribe\x20<file>,\x20or\x20-\x20to\x20read\x20stdin.'),process[_0x55b2fd(0x23b)](0x2));let {client:_0x4b1cfd}=await $(_0x2f0d5e);try{let _0x358dff=_0x3391e6==='-'?{'data':await In(process[_0x55b2fd(0x167)])}:_0x3391e6;m(_0x2f0d5e,await _0x1ca4ba(_0x4b1cfd,_0x358dff,void 0x0),_0x492777=>{const _0x1eaa8c=_0x55b2fd;process[_0x1eaa8c(0xd0)]['write'](_0x492777['text']+'\x0a');});}catch(_0x403898){if(_0x2bae4f(_0x403898)&&(console['error'](_0x403898[_0x55b2fd(0x1e6)]),process['exit'](_0x403898['status']===void 0x0?0x2:0x1)),typeof _0x403898?.[_0x55b2fd(0xcd)]!=_0x55b2fd(0x123))throw _0x403898;console[_0x55b2fd(0x22d)](_0x55b2fd(0x1ef)+_0x3391e6+'\x20('+_0x403898[_0x55b2fd(0x1e6)]+').'),process[_0x55b2fd(0x23b)](0x2);}}async function In(_0xf58586){const _0x32476d=_0x473da0;let _0x22099b=[];for await(let _0x5b19db of _0xf58586)_0x22099b[_0x32476d(0x1e0)](Buffer[_0x32476d(0x1e5)](_0x5b19db));return Buffer[_0x32476d(0xc8)](_0x22099b);}var he=[_0x473da0(0x1ba),_0x473da0(0x108),_0x473da0(0x99),_0x473da0(0x194),_0x473da0(0xfd),_0x473da0(0x256),_0x473da0(0x16a),_0x473da0(0x20e),'cancel',_0x473da0(0x1fc)],ye={'list':_0x473da0(0x1f3),'pending':_0x473da0(0x8e),'show':_0x473da0(0x18c),'create':_0x473da0(0xf1),'claim':_0x473da0(0xd7),'complete':'delegations\x20complete\x20<delegation-id>\x20\x22<answer>\x22|-','accept':_0x473da0(0x21c),'dismiss':_0x473da0(0x26d),'cancel':'delegations\x20cancel\x20<delegation-id>','delete':_0x473da0(0xf9)};async function Tn(_0x24d2c8){const _0x30e27e=_0x473da0;let [_0x11a834='',_0x1ca888='',..._0x1d3f14]=_0x24d2c8['operands'];he[_0x30e27e(0x16b)](_0x11a834)||(console[_0x30e27e(0x22d)]((_0x11a834?_0x30e27e(0x156)+_0x11a834+'.\x20':'')+'Use:\x20delegate-cli\x20delegations\x20'+he[_0x30e27e(0x126)](_0x30e27e(0x1b2))+'.'),process[_0x30e27e(0x23b)](0x2));let _0x3b830e=_0x11a834;_0x3b830e!==_0x30e27e(0x194)&&(_0x24d2c8['delegateTo']!==void 0x0||_0x24d2c8[_0x30e27e(0xa1)]!==void 0x0||_0x24d2c8['sessionId']!==void 0x0)&&(console[_0x30e27e(0x22d)](_0x30e27e(0x252)),process[_0x30e27e(0x23b)](0x2));let _0xcc377=(_0x3b830e==='create'?_0x24d2c8[_0x30e27e(0xb0)]['slice'](0x1):_0x1d3f14)['join']('\x20')['trim'](),_0x2e150a=_0x3b830e===_0x30e27e(0x194)||_0x3b830e==='complete';(_0x3b830e!==_0x30e27e(0x194)&&!_0x1ca888||(_0x2e150a?!_0xcc377:_0xcc377)||_0x3b830e===_0x30e27e(0x194)&&!_0x24d2c8[_0x30e27e(0xaa)])&&(console[_0x30e27e(0x22d)](_0x30e27e(0x23f)+ye[_0x3b830e]),process['exit'](0x2));let _0x15ad1e=_0x2e150a&&_0xcc377==='-'?(await H('-',process['stdin']))[_0x30e27e(0xc9)]():_0xcc377;_0x2e150a&&!_0x15ad1e&&(console[_0x30e27e(0x22d)](_0x30e27e(0x23f)+ye[_0x3b830e]+'\x20(stdin\x20was\x20empty)'),process[_0x30e27e(0x23b)](0x2));let {client:_0x3f7905}=await $(_0x24d2c8);try{await Un(_0x24d2c8,_0x3f7905,_0x3b830e,_0x1ca888,_0x15ad1e);}catch(_0x5c1614){if(!_0xe3c329(_0x5c1614))throw _0x5c1614;console[_0x30e27e(0x22d)](_0x5c1614[_0x30e27e(0x1e6)]),process[_0x30e27e(0x23b)](0x1);}}async function Un(_0x4e580d,_0x4217ca,_0x43b79c,_0x4edb2f,_0x287e3d){const _0x53f1d=_0x473da0;switch(_0x43b79c){case _0x53f1d(0x1ba):m(_0x4e580d,await _0x69cbd4(_0x4217ca,_0x4edb2f),Dn);return;case _0x53f1d(0x108):m(_0x4e580d,await _0x40466c(_0x4217ca,_0x4edb2f),_0x47b5bf=>{const _0x229858=_0x53f1d;_0x47b5bf['delegation']&&process[_0x229858(0xd0)][_0x229858(0xf6)](_0x229858(0x271)+_0x47b5bf[_0x229858(0x130)]['id']+'\x20('+_0x47b5bf[_0x229858(0x130)][_0x229858(0x17d)]+').\x0a'),_0x47b5bf[_0x229858(0x28b)][_0x229858(0x29f)]===0x0&&process['stderr']['write']('No\x20answers\x20awaiting\x20acceptance.\x0a');for(let _0x1fc579 of _0x47b5bf[_0x229858(0x28b)])process[_0x229858(0xd0)][_0x229858(0xf6)]('\x0a'+_0x1fc579['id']+_0x229858(0x13c)+(_0x1fc579[_0x229858(0x1e3)]??'a\x20colleague')+'\x20\x20'+(_0x1fc579['task']??'')+'\x0a'+(_0x1fc579[_0x229858(0xe2)]?.['content']??'')+'\x0a');_0x47b5bf[_0x229858(0x28b)][_0x229858(0x29f)]>0x0&&process[_0x229858(0x220)]['write'](_0x229858(0x15f));});return;case _0x53f1d(0x99):m(_0x4e580d,await _0x2eac2f(_0x4217ca,_0x4edb2f),we);return;case _0x53f1d(0x194):{let _0x3eb461=await _0x16e275(_0x4217ca,{'sessionId':_0x4e580d[_0x53f1d(0xaa)],'task':_0x287e3d,..._0x4e580d[_0x53f1d(0xa1)]!==void 0x0&&{'contextSummary':_0x4e580d[_0x53f1d(0xa1)]},..._0x4e580d[_0x53f1d(0x87)]!==void 0x0&&{'recipient':_0x4e580d[_0x53f1d(0x87)]}});m(_0x4e580d,_0x3eb461,_0x414290=>{const _0x26e293=_0x53f1d;_0x414290[_0x26e293(0x15b)]?process[_0x26e293(0xd0)][_0x26e293(0xf6)](_0x26e293(0x288)+_0x414290[_0x26e293(0xed)]+_0x26e293(0xd4)+_0x414290[_0x26e293(0x15b)]['displayName']+'\x20<'+_0x414290[_0x26e293(0x15b)]['email']+_0x26e293(0x180)):process[_0x26e293(0xd0)][_0x26e293(0xf6)]('Created\x20delegation\x20'+_0x414290['delegationId']+_0x26e293(0x28d)+_0x414290[_0x26e293(0x279)]+'\x0a');});return;}case _0x53f1d(0xfd):{let _0x1abbf1=await _0xacbc15(_0x4217ca,_0x4edb2f);m(_0x4e580d,_0x1abbf1,_0xf7bd3b=>{const _0x39a9e6=_0x53f1d;we(_0xf7bd3b),process[_0x39a9e6(0xd0)][_0x39a9e6(0xf6)](_0x39a9e6(0xde)+_0xf7bd3b['sessionId']+'\x0a'),process[_0x39a9e6(0x220)][_0x39a9e6(0xf6)](_0x39a9e6(0x1dc)+_0xf7bd3b[_0x39a9e6(0xaa)]+_0x39a9e6(0xdb)+_0xf7bd3b[_0x39a9e6(0xed)]+_0x39a9e6(0xae));});return;}case _0x53f1d(0x256):{let {alreadyCompleted:_0x251a3c}=await _0x31041c(_0x4217ca,_0x4edb2f,{'content':_0x287e3d});m(_0x4e580d,{'delegationId':_0x4edb2f,'alreadyCompleted':_0x251a3c},_0x2bf1b8=>{const _0x299a8c=_0x53f1d;process[_0x299a8c(0xd0)][_0x299a8c(0xf6)]((_0x2bf1b8[_0x299a8c(0x294)]?'Already\x20answered':_0x299a8c(0x174))+'\x20delegation\x20'+_0x2bf1b8[_0x299a8c(0xed)]+'.\x0a');});return;}case _0x53f1d(0x16a):{let _0x56aa85=await _0x39f914(_0x4217ca,_0x4edb2f);m(_0x4e580d,{'delegationId':_0x4edb2f,..._0x56aa85},_0x61d4b7=>{const _0xe18bdc=_0x53f1d;process[_0xe18bdc(0xd0)][_0xe18bdc(0xf6)]((_0x61d4b7[_0xe18bdc(0x26e)]?_0xe18bdc(0x14e):_0xe18bdc(0x117))+_0xe18bdc(0x210)+_0x61d4b7[_0xe18bdc(0xed)]+'.\x0a');});return;}default:{let _0x584ddb={'dismiss':_0x4ebeec,'cancel':_0x5f1593,'delete':_0x459010}[_0x43b79c];await _0x584ddb(_0x4217ca,_0x4edb2f);let _0x38e908={'dismiss':'dismissed','cancel':_0x53f1d(0xd3),'delete':'deleted'}[_0x43b79c];m(_0x4e580d,{'delegationId':_0x4edb2f,[_0x38e908]:!0x0},()=>{const _0x3f0677=_0x53f1d;process[_0x3f0677(0xd0)][_0x3f0677(0xf6)](''+_0x38e908[0x0][_0x3f0677(0x1c3)]()+_0x38e908[_0x3f0677(0x119)](0x1)+'\x20delegation\x20'+_0x4edb2f+'.\x0a');});}}}function Dn(_0x16fa0e){const _0x123051=_0x473da0;if(_0x16fa0e[_0x123051(0x29f)]===0x0){process[_0x123051(0x220)][_0x123051(0xf6)](_0x123051(0x90));return;}process[_0x123051(0xd0)][_0x123051(0xf6)]('ID'[_0x123051(0x125)](0x24)+'\x20\x20'+_0x123051(0x1c8)[_0x123051(0x125)](0x9)+'\x20\x20'+_0x123051(0xa2)['padEnd'](0x18)+_0x123051(0x11f));for(let _0x4c1c1e of _0x16fa0e)process[_0x123051(0xd0)][_0x123051(0xf6)](_0x4c1c1e['id'][_0x123051(0x125)](0x24)+'\x20\x20'+_0x4c1c1e[_0x123051(0x17d)][_0x123051(0x125)](0x9)+'\x20\x20'+(_0x4c1c1e['assignedUserEmail']??'-')[_0x123051(0x125)](0x18)+'\x20\x20'+(_0x4c1c1e[_0x123051(0x20f)]??'')+'\x0a');}function we(_0x375fc7){const _0x5cf3c5=_0x473da0;process[_0x5cf3c5(0xd0)]['write']('From\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x375fc7[_0x5cf3c5(0x29c)]??'-')+'\x0a'),_0x375fc7[_0x5cf3c5(0x234)]&&process[_0x5cf3c5(0xd0)][_0x5cf3c5(0xf6)](_0x5cf3c5(0xde)+_0x375fc7[_0x5cf3c5(0x234)]+'\x0a'),process[_0x5cf3c5(0xd0)]['write'](_0x5cf3c5(0x13a)+(_0x375fc7['task']??'-')+'\x0a'),_0x375fc7[_0x5cf3c5(0xa1)]&&process[_0x5cf3c5(0xd0)][_0x5cf3c5(0xf6)]('\x0a'+_0x375fc7[_0x5cf3c5(0xa1)]+'\x0a\x0a');}async function Nn(_0x24cd66){const _0x116ba2=_0x473da0;_0x24cd66[_0x116ba2(0x1cd)][_0x116ba2(0xc9)]()||(console[_0x116ba2(0x22d)]('Usage:\x20delegate-cli\x20org-users\x20<name\x20or\x20email\x20prefix>'),process[_0x116ba2(0x23b)](0x2));let {client:_0x5cd4fb}=await $(_0x24cd66),_0x11c9d5;try{_0x11c9d5=await _0x4b89ed(_0x5cd4fb,_0x24cd66[_0x116ba2(0x1cd)]);}catch(_0x54b31d){if(!_0xe3c329(_0x54b31d))throw _0x54b31d;console['error'](_0x54b31d[_0x116ba2(0x1e6)]),process[_0x116ba2(0x23b)](0x1);}m(_0x24cd66,_0x11c9d5,_0x1ade35=>{const _0x4302c1=_0x116ba2;_0x1ade35[_0x4302c1(0x29f)]===0x0&&process[_0x4302c1(0x220)][_0x4302c1(0xf6)](_0x4302c1(0x291)+_0x24cd66['prompt'][_0x4302c1(0xc9)]()+_0x4302c1(0x122));for(let _0x2d713c of _0x1ade35)process[_0x4302c1(0xd0)][_0x4302c1(0xf6)](_0x2d713c[_0x4302c1(0x8f)][_0x4302c1(0x125)](0x20)+'\x20\x20'+_0x2d713c[_0x4302c1(0x120)]+'\x0a');});}async function _n(_0x2c2425){const _0x4fcb15=_0x473da0;_0x2c2425[_0x4fcb15(0x235)]===_0x4fcb15(0x8d)&&(console[_0x4fcb15(0x22d)]('--env\x20localhost\x20has\x20no\x20OAuth\x20flow;\x20pick\x20alpha,\x20staging,\x20or\x20production.'),process[_0x4fcb15(0x23b)](0x2));let _0x3dd21c=G(_0x31beec()),_0x1b79cd=_0x2c2425[_0x4fcb15(0x1d2)];if(_0x2c2425[_0x4fcb15(0x235)]){let _0xfd4ec8=_0x2c2425[_0x4fcb15(0x235)];await _0x24916f({'env':_0xfd4ec8,'tenant':_0x2c2425['tenant']??Q(_0x3dd21c,_0x5348f9[_0xfd4ec8]),'skipEnvCheck':_0x1b79cd});return;}let _0x2354ef=_0x2c2425[_0x4fcb15(0x1e1)]??Ue();if(_0x2354ef){await _0x24916f({'baseUrl':_0x2354ef,'tenant':_0x2c2425[_0x4fcb15(0x1af)]??Q(_0x3dd21c,_0x2354ef),'skipEnvCheck':_0x1b79cd});return;}if(_0x3dd21c?.[_0x4fcb15(0x226)]){await _0x24916f({'baseUrl':_0x3dd21c[_0x4fcb15(0x226)],'tenant':_0x2c2425[_0x4fcb15(0x1af)]??_0x3dd21c['tenantName'],'skipEnvCheck':_0x1b79cd});return;}console[_0x4fcb15(0x22d)]('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[_0x4fcb15(0x23b)](0x2);}function Q(_0x1079d5,_0x2cbd2f){const _0x55b69f=_0x473da0;return _0x1079d5?.[_0x55b69f(0x226)]&&Rn(_0x1079d5['baseUrl'],_0x2cbd2f)?_0x1079d5[_0x55b69f(0x1c7)]:void 0x0;}function Rn(_0x246952,_0x33bd27){const _0x5db460=_0x473da0;try{return new URL(_0x246952)[_0x5db460(0x1ab)]===new URL(_0x33bd27)['origin'];}catch{return!0x1;}}async function Pn(_0x49cc85){const _0x33b6f7=_0x473da0;Y()&&(console['error'](_0x33b6f7(0x22b)),process['exit'](0x2));let _0x36f2d9=await _0x384ac9();if(_0x36f2d9||(console[_0x33b6f7(0x22d)](Cn()),process[_0x33b6f7(0x23b)](0x2)),_0x49cc85['trim']()){let _0x473107=await _0x17879b(_0x36f2d9,_0x49cc85);_0x4f0fa3(_0x473107)||(console[_0x33b6f7(0x22d)](_0x33b6f7(0x92)+_0x31beec()+_0x33b6f7(0x26f)+_0x36f2d9['tenantName']+'.'),process[_0x33b6f7(0x23b)](0x1)),console[_0x33b6f7(0x1b0)](_0x33b6f7(0x192)+_0x473107['tenantName']+'\x20('+_0x473107[_0x33b6f7(0xc6)]+')\x20—\x20saved\x20to\x20'+_0x31beec());return;}On(await _0x39f37c(_0x36f2d9),_0x36f2d9);}function Cn(){const _0x4715d1=_0x473da0;if(_0x3a9338['existsSync'](_0x31beec()))return _0x4715d1(0x175);let _0x5693e6=z();return G(_0x5693e6)?'No\x20CLI\x20login\x20to\x20switch:\x20the\x20CLI\x20is\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20'+_0x5693e6+_0x4715d1(0xfc):_0x4715d1(0xd9);}function On(_0x31994d,_0x309c4d){const _0x4249cf=_0x473da0;let _0x5367d5=_0x31994d[_0x4249cf(0x1b8)](_0x566eba=>_0x566eba['id']===_0x309c4d['tenantId']?'*\x20'+_0x566eba[_0x4249cf(0xfa)]+_0x4249cf(0x268):'\x20\x20'+_0x566eba[_0x4249cf(0xfa)]);process['stdout'][_0x4249cf(0xf6)](_0x4249cf(0x243)+(_0x309c4d[_0x4249cf(0x25b)]??_0x309c4d[_0x4249cf(0x296)])+':\x0a'+_0x5367d5[_0x4249cf(0x126)]('\x0a')+'\x0a'),_0x31994d[_0x4249cf(0x29f)]>0x1&&process[_0x4249cf(0xd0)][_0x4249cf(0xf6)]('Switch\x20with:\x20delegate-cli\x20tenant\x20<name>\x0a');}function Ln(_0x2de8da){const _0x39badb=_0x473da0;return _0x2de8da?.[_0x39badb(0x1b6)]?.[_0x39badb(0x17d)]===0x191||/401/[_0x39badb(0x1d9)](String(_0x2de8da?.[_0x39badb(0x1e6)]??''));}var w={'lastType':null,'quiet':!0x1},_e=_0xdfc665=>{const _0x1204ed=_0x473da0;switch(_0xdfc665[_0x1204ed(0x17f)]){case _0x1204ed(0x230):_0xdfc665[_0x1204ed(0xaa)]&&_0xdfc665[_0x1204ed(0xaa)]!==w['sessionId']&&(process[_0x1204ed(0x220)]['write'](_0x1204ed(0x10f)+_0xdfc665[_0x1204ed(0xaa)]+_0x1204ed(0x171)+_0xdfc665[_0x1204ed(0xaa)]+')\x0a'),w[_0x1204ed(0xaa)]=_0xdfc665[_0x1204ed(0xaa)]);break;case _0x1204ed(0x16d):_0xdfc665[_0x1204ed(0x245)]&&_0xdfc665['turnId']!==w[_0x1204ed(0x245)]&&(w['lastType']!==null&&process[_0x1204ed(0x220)]['write']('\x0a'),process[_0x1204ed(0x220)][_0x1204ed(0xf6)]('Turn:\x20'+_0xdfc665['turnId']+_0x1204ed(0xe6)+_0xdfc665[_0x1204ed(0xaa)]+'\x20--turn\x20'+_0xdfc665[_0x1204ed(0x245)]+')\x0a'),w[_0x1204ed(0x245)]=_0xdfc665[_0x1204ed(0x245)],w['lastType']=_0x1204ed(0x16d));break;case _0x1204ed(0x29a):_0xdfc665[_0x1204ed(0x169)]&&!w[_0x1204ed(0x12a)]&&(w[_0x1204ed(0x1e7)]!==_0x1204ed(0x29a)&&process['stderr']['write'](_0x1204ed(0x133)),process[_0x1204ed(0x220)]['write'](_0xdfc665[_0x1204ed(0x169)]),w[_0x1204ed(0x1e7)]='thinking');break;case _0x1204ed(0x20c):w['lastType']!==null&&process['stderr'][_0x1204ed(0xf6)]('\x0a'),process[_0x1204ed(0x220)][_0x1204ed(0xf6)](_0x1204ed(0x1b9)+(_0xdfc665[_0x1204ed(0xb1)]??_0x1204ed(0x107))+'\x0a'),w['lastType']='tool_call';break;case _0x1204ed(0x1e6):_0xdfc665[_0x1204ed(0x169)]&&(w[_0x1204ed(0x1e7)]!=='message'&&w[_0x1204ed(0x1e7)]!==null&&process[_0x1204ed(0xd0)][_0x1204ed(0xf6)]('\x0a'),process['stdout'][_0x1204ed(0xf6)](_0xdfc665[_0x1204ed(0x169)]),w[_0x1204ed(0x1e7)]='message');break;case _0x1204ed(0x22d):w[_0x1204ed(0x1e7)]!==null&&process[_0x1204ed(0x220)][_0x1204ed(0xf6)]('\x0a'),process[_0x1204ed(0x220)][_0x1204ed(0xf6)]('✗\x20'+(_0xdfc665[_0x1204ed(0x22d)]??_0x1204ed(0x22d))+'\x0a'),w[_0x1204ed(0x1e7)]=_0x1204ed(0x22d);break;case _0x1204ed(0x1d3):(w[_0x1204ed(0x1e7)]==='message'||w['lastType']===_0x1204ed(0x29a))&&process[_0x1204ed(0xd0)][_0x1204ed(0xf6)]('\x0a'),process[_0x1204ed(0x220)][_0x1204ed(0xf6)]('✓\x20Done\x0a'),w['lastType']='done';break;}};function ke(_0x9cac09,_0x14f2a2,_0x35660b,_0x35bda9){const _0x34686b=_0x473da0;let _0xad5870=_0x9cac09['model']||process.env.MODEL;return{'backendUrl':_0x35660b,'auth':_0x14f2a2,'enableComputerUse':!_0x9cac09[_0x34686b(0x277)]&&!_0x9cac09['noComputerUse'],'autoSpawnInterop':!_0x9cac09[_0x34686b(0x277)],'enableConnections':!_0x9cac09[_0x34686b(0xbf)],'enableSecurity':!_0x9cac09['noSecurity'],'keepInteropAlive':_0x9cac09[_0x34686b(0x292)],..._0x35bda9[_0x34686b(0x94)]?{'enableBackgroundCommands':!0x1}:{},..._0x9cac09['noMemory']?{'enableMemory':!0x1}:{},..._0x9cac09['taskAutomation']?{'enableTaskAutomation':!0x0}:{},..._0x9cac09[_0x34686b(0xe1)][_0x34686b(0x29f)]>0x0?{'preloadSkills':_0x9cac09[_0x34686b(0xe1)]}:{},..._0xad5870?{'model':_0xad5870}:{},..._0x9cac09['projectId']?{'projectId':_0x9cac09[_0x34686b(0x1a9)]}:{},..._0x9cac09[_0x34686b(0x26c)]?{'vertical':_0x9cac09[_0x34686b(0x26c)]}:{},..._0x9cac09[_0x34686b(0x124)]?{'workingDirectory':_0x9cac09[_0x34686b(0x124)]}:{},..._0x9cac09['bundledSkillsPath']?{'bundledSkillsPath':_0x9cac09[_0x34686b(0xcb)]}:{},..._0x9cac09['effort']?{'effort':_0x9cac09['effort']}:{},..._0x9cac09['sessionId']?{'sessionId':_0x9cac09[_0x34686b(0xaa)]}:{},..._0x9cac09['verbose']?{'verbose':!0x0}:{}};}async function Fn(_0x535b59){const _0x59e2e5=_0x473da0;let _0x2ed2cc=_0x535b59[_0x59e2e5(0x224)]!=='text',_0x4bb63e=_0x535b59[_0x59e2e5(0x219)]===void 0x0?null:Ne(_0x535b59[_0x59e2e5(0x219)],_0x59e2e5(0x181)),_0x41083f=!_0x2ed2cc&&!_0x4bb63e&&!_0x535b59['print']&&_0x535b59[_0x59e2e5(0x1cd)]!=='-'&&!!process['stdin'][_0x59e2e5(0x222)]&&!!process[_0x59e2e5(0xd0)][_0x59e2e5(0x222)],_0xea50d=_0x535b59['inputFormat']===_0x59e2e5(0x1f1)?re(process[_0x59e2e5(0x167)],_0x150176=>{const _0x292583=_0x59e2e5;process['stderr'][_0x292583(0xf6)](_0x150176[_0x292583(0x1e6)]+_0x292583(0xa4));}):null,_0x3f23b5=_0xea50d?(await _0xea50d[_0x59e2e5(0x24a)]())[_0x59e2e5(0x164)]:void 0x0,_0x2e0164=_0xea50d?_0x3f23b5?.[_0x59e2e5(0x1f9)]??'':_0x41083f?_0x535b59[_0x59e2e5(0x1cd)][_0x59e2e5(0xc9)]():await H(_0x535b59[_0x59e2e5(0x1cd)],process['stdin']);if(!_0x41083f&&!_0x2e0164&&(console['error'](_0x59e2e5(0x24e)),process[_0x59e2e5(0x23b)](0x2)),!_0x2ed2cc){await be(_0x535b59,_0x2e0164,_0x41083f,null,_0x4bb63e,null);return;}let _0x506b7e=!0x1,_0xbded86=_0x7e5022=>{const _0x5323b2=_0x59e2e5;_0x506b7e=!0x0,O(_0x32da33(_0x7e5022)),(_0x7e5022[_0x5323b2(0xc3)]||_0x7e5022['structuredError'])&&(process[_0x5323b2(0x227)]=0x1);},_0x54e16a=Date[_0x59e2e5(0x1f7)]();try{await be(_0x535b59,_0x2e0164,!0x1,_0xbded86,_0x4bb63e,_0xea50d?{'messages':_0xea50d,'first':_0x3f23b5,'close':()=>{const _0x55e369=_0x59e2e5;process[_0x55e369(0x167)][_0x55e369(0x28f)]();}}:null);}catch(_0x22f855){if(_0x506b7e)throw _0x22f855;process[_0x59e2e5(0x220)][_0x59e2e5(0xf6)]((_0x22f855 instanceof Error?_0x22f855[_0x59e2e5(0x24b)]??_0x22f855[_0x59e2e5(0x1e6)]:String(_0x22f855))+'\x0a'),_0xbded86(new _0x52c063(_0x54e16a)['finish']({'endedAtMs':Date[_0x59e2e5(0x1f7)](),'usage':[],'error':_0x22f855}));}finally{_0xea50d&&(process[_0x59e2e5(0x167)][_0x59e2e5(0x28f)](),_0xea50d[_0x59e2e5(0xe0)](void 0x0));}}async function be(_0x3419bb,_0x592706,_0x396dea,_0x32d8a1,_0x590332,_0x28a25e){const _0x5f683=_0x473da0;w={'lastType':null,'quiet':_0x3419bb[_0x5f683(0x12a)]};let _0x387cfc=new Set(),_0x210a04,_0x227be0=_0x300281=>{const _0x21d52b=_0x5f683;(!_0x32d8a1||_0x300281[_0x21d52b(0x17f)]===_0x21d52b(0x230)||_0x300281['type']===_0x21d52b(0x16d))&&(_0x210a04??_e)(_0x300281);for(let _0x1dda6d of _0x387cfc)_0x1dda6d(_0x300281);},_0x3fbd07=await V(),_0x3c4207=new _0xa7486f();_0x3c4207[_0x5f683(0x16f)](_0x227be0);let _0xdb2ef2=_0x6d491f(_0x3419bb[_0x5f683(0x235)],_0x3fbd07,_0x3419bb[_0x5f683(0xa5)]);X(_0x3419bb['env'],_0x3419bb['backendUrl'],_0xdb2ef2);let _0x2f10ac={'input':null},_0x237e9f=_0x396dea?ne(()=>_0x2f10ac[_0x5f683(0xfb)],_0x2f7b66=>{const _0x11840b=_0x5f683;process[_0x11840b(0x220)]['write'](_0x2f7b66);}):null,_0x171a30=_0x117063=>_0x237e9f?{..._0x117063,'askUser':_0x237e9f}:_0x117063,_0x9a66d0=_0x171a30(ke(_0x3419bb,_0x3fbd07,_0xdb2ef2,{'oneTurn':!_0x396dea})),_0x68a3ec=!0x1,_0x331632=!0x1,_0x4fe91c,_0x210c07=()=>_0x4fe91c??=_0x3c4207[_0x5f683(0xef)](),_0x4323e3=()=>{const _0x46e3b5=_0x5f683;_0x331632&&process['exit'](0x82),_0x331632=!0x0,process[_0x46e3b5(0x220)][_0x46e3b5(0xf6)](_0x46e3b5(0x1e4)),_0x68a3ec&&_0x3c4207[_0x46e3b5(0x240)]()[_0x46e3b5(0x275)](_0xb3070f=>console['error'](_0xb3070f))[_0x46e3b5(0x28e)](_0x210c07)['then'](()=>process[_0x46e3b5(0x23b)](0x82),_0x56f6b9=>{const _0x2e3dcd=_0x46e3b5;console[_0x2e3dcd(0x22d)](_0x56f6b9),process['exit'](0x82);});};process['on'](_0x5f683(0x1a4),_0x4323e3);let _0x43533c=_0x3419bb[_0x5f683(0x101)],_0x4a184d=async _0x693809=>{const _0x477323=_0x5f683;let _0x2d404d=_0x43533c;_0x43533c=[];let _0x32c305=()=>_0x3c4207[_0x477323(0x238)](_0x693809,{'attachments':_0x2d404d});try{return await _0x32c305();}catch(_0x538a58){if(_0x331632||!Ln(_0x538a58)||!process[_0x477323(0x167)]['isTTY']||_0x3419bb[_0x477323(0x235)]===_0x477323(0x8d)||!(_0x3419bb[_0x477323(0x235)]||_0x3fbd07[_0x477323(0x226)]))throw _0x538a58;process[_0x477323(0x220)][_0x477323(0xf6)](_0x477323(0x15d));let _0x1d22dc=_0x3c4207[_0x477323(0x1a8)]()??_0x3419bb[_0x477323(0xaa)],_0x36ae13=await _0x24916f(_0x3419bb[_0x477323(0x235)]?{'env':_0x3419bb[_0x477323(0x235)],'tenant':Q(_0x3fbd07,_0x5348f9[_0x3419bb[_0x477323(0x235)]]),'skipEnvCheck':!0x0}:{'baseUrl':_0x3fbd07['baseUrl'],'tenant':_0x3fbd07[_0x477323(0x1c7)],'skipEnvCheck':!0x0}),_0xc93464={'text':'','failed':!0x1,'sessionId':_0x1d22dc};return _0x331632||(_0x68a3ec=!0x1,await _0x210c07(),_0x331632)?_0xc93464:(_0x3c4207=new _0xa7486f(),_0x4fe91c=void 0x0,_0x3c4207[_0x477323(0x16f)](_0x227be0),_0x3fbd07=_0x36ae13,await _0x3c4207[_0x477323(0xa7)]({..._0x171a30(ke(_0x3419bb,_0x3fbd07,_0xdb2ef2,{'oneTurn':!_0x396dea})),..._0x1d22dc?{'sessionId':_0x1d22dc}:{}}),_0x68a3ec=!0x0,_0x331632?_0xc93464:_0x32c305());}};try{if(await _0x3c4207[_0x5f683(0xa7)](_0x9a66d0),_0x68a3ec=!0x0,_0x331632)return;if(_0x396dea)await Bn({'prompt':_0x592706,'sendMessage':_0x4a184d,'onSigint':_0x4323e3,'setAnswerInput':_0x4722a9=>{const _0x4ed34d=_0x5f683;_0x2f10ac[_0x4ed34d(0xfb)]=_0x4722a9;},'registerEventPrinter':_0x338196=>(_0x210a04=_0x338196,()=>{_0x210a04=void 0x0;})});else{if(_0x32d8a1||_0x590332){let _0x583854=_0x3419bb['outputFormat']===_0x5f683(0x1f1)?_0x400898=>O(_0x2a9795(_0x400898)):()=>{},_0x5191c0=_0x28a25e?ie({'input':_0x28a25e,'getAgent':()=>_0x3c4207,'replay':_0x3419bb[_0x5f683(0xf8)],'onEvent':_0x165dc1=>(_0x387cfc['add'](_0x165dc1),()=>{const _0x18e082=_0x5f683;_0x387cfc[_0x18e082(0x1fc)](_0x165dc1);}),'write':O,'isRunStopNotice':_0x1d9595,'actionableErrorText':_0x25d889,'warn':_0x4603b7=>{const _0x39bc33=_0x5f683;process[_0x39bc33(0x220)][_0x39bc33(0xf6)](_0x4603b7);}}):null,_0x49f624=await _0x566ae1({'onEvent':_0x2611e3=>(_0x387cfc['add'](_0x2611e3),()=>{const _0x41d2e6=_0x5f683;_0x387cfc[_0x41d2e6(0x1fc)](_0x2611e3);}),'sendMessage':async _0x290821=>{const _0x171efa=_0x5f683;try{let _0x31e4ee=await _0x4a184d(_0x290821);return _0x5191c0?await _0x5191c0[_0x171efa(0xd1)](_0x31e4ee):_0x31e4ee;}finally{_0x5191c0?.['stop']();}},'getSessionId':()=>_0x3c4207[_0x5f683(0x1a8)](),'getTurnUsageHistory':_0x1f8b99=>_0x3c4207[_0x5f683(0x289)](_0x1f8b99),'complete':_0x1d22b1=>_0x3c4207[_0x5f683(0x256)](_0x1d22b1)},_0x592706,void 0x0,_0x583854,_0x590332?{'outputSchema':_0x590332}:void 0x0);_0x32d8a1?_0x32d8a1(_0x49f624):Mn(_0x49f624);}else await _0x4a184d(_0x592706);}}catch(_0x3bee5a){if(!_0x331632)throw _0x3bee5a;}finally{try{await _0x210c07();}finally{process[_0x5f683(0xe7)]('SIGINT',_0x4323e3),_0x331632&&(process[_0x5f683(0x227)]=0x82);}}}function Mn(_0x321033){const _0x4f7f6b=_0x473da0;_0x321033[_0x4f7f6b(0x22c)]?(console['error'](_0x4f7f6b(0x14f)+_0x321033[_0x4f7f6b(0x22c)][_0x4f7f6b(0x1e6)]),process[_0x4f7f6b(0x227)]=0x1):_0x321033[_0x4f7f6b(0xc3)]?(console[_0x4f7f6b(0x22d)](_0x4f7f6b(0x247)+_0x321033[_0x4f7f6b(0x22d)]+').'),process['exitCode']=0x1):process[_0x4f7f6b(0xd0)]['write'](JSON[_0x4f7f6b(0x1da)](_0x321033[_0x4f7f6b(0x22f)],null,0x2)+'\x0a');}function jn(_0x311549,_0x4ee265){const _0x395ba6=_0x473da0;let _0x5442c9=process[_0x395ba6(0xd0)][_0x395ba6(0xf6)][_0x395ba6(0x154)](process[_0x395ba6(0xd0)]),_0x161739=!0x1;return process[_0x395ba6(0xd0)][_0x395ba6(0xf6)]=(..._0x15ffd9)=>{const _0x321303=_0x395ba6;if(!_0x161739)return _0x5442c9(..._0x15ffd9);_0x426389(_0x4ee265,0x0),_0x1e6ab9(_0x4ee265,0x0);let _0x24af70=_0x5442c9(..._0x15ffd9);return _0x311549[_0x321303(0x1cd)](!0x0),_0x24af70;},{'show':()=>{_0x161739=!0x0,_0x311549['prompt']();},'hide':()=>{_0x161739=!0x1;},'erase':()=>{_0x161739&&(_0x426389(_0x4ee265,0x0),_0x1e6ab9(_0x4ee265,0x0)),_0x161739=!0x1;},'restore':()=>{const _0x2866fa=_0x395ba6;_0x161739=!0x1,process[_0x2866fa(0xd0)]['write']=_0x5442c9;}};}async function Bn({prompt:_0x3cdd73,sendMessage:_0x505cd3,onSigint:_0x1b49af,setAnswerInput:_0x183115,registerEventPrinter:_0x359c6c}){const _0xe2d21e=_0x473da0;let _0x611306=_0x23d71e({'input':process[_0xe2d21e(0x167)],'output':process[_0xe2d21e(0x220)],'terminal':!0x0,'prompt':'You>\x20'}),_0x5a9450=jn(_0x611306,process[_0xe2d21e(0x220)]),_0x5d493a=[],_0x4e87ea,_0x5a7473,_0xec0eaf,_0x407fa7=!0x1,_0xcc97c0=!0x1,_0x3f1737=!0x1,_0x42e39f=Promise['resolve'](),_0x522be2,_0x494476=_0x359c6c(_0x5bace9=>{const _0x30bc7a=_0xe2d21e;_0x5bace9[_0x30bc7a(0x17f)]===_0x30bc7a(0x230)&&(_0x5a9450[_0x30bc7a(0x105)](),_0x42e39f=new Promise(_0x46910e=>{_0x522be2=_0x46910e;})),_e(_0x5bace9),_0x5bace9[_0x30bc7a(0x17f)]==='done'&&(_0x522be2?.(),_0x522be2=void 0x0,!_0x3f1737&&!_0x407fa7&&_0x5a9450[_0x30bc7a(0x99)]());}),_0x13a237=()=>{const _0x3d8e4f=_0xe2d21e;_0xcc97c0=!0x0,_0x522be2?.(),_0x1b49af(),_0x611306[_0x3d8e4f(0xa0)]();};_0x611306['on'](_0xe2d21e(0x168),_0x1b328f=>{const _0x4b8d3f=_0xe2d21e;_0xec0eaf?_0xec0eaf(_0x1b328f):_0x4e87ea?_0x4e87ea[_0x4b8d3f(0x1e0)](_0x1b328f):_0x5a7473?_0x5a7473(_0x1b328f):_0x5d493a['push'](_0x1b328f);}),_0x611306[_0xe2d21e(0x1ae)](_0xe2d21e(0xa0),()=>{const _0x5a5383=_0xe2d21e;_0x407fa7=!0x0,_0x5a9450[_0x5a5383(0x201)](),_0x4e87ea&&!_0xcc97c0&&_0x13a237(),_0x5a7473?.(null);});let _0x55e4d7=()=>_0x5d493a[_0xe2d21e(0x29f)]>0x0?Promise[_0xe2d21e(0x127)](_0x5d493a[_0xe2d21e(0x110)]()):_0x407fa7?Promise[_0xe2d21e(0x127)](null):new Promise(_0x43807e=>{_0x5a7473=_0x3873d0=>{_0x5a7473=void 0x0,_0x43807e(_0x3873d0);};});_0x183115({'readLine':(_0x76e9e7,_0x410377)=>new Promise((_0x555a67,_0x35d693)=>{const _0x1c51a1=_0xe2d21e;if(_0x407fa7&&!_0x4e87ea){_0x555a67(null);return;}_0x4e87ea??=[];let _0xa72cac=_0x4e87ea[_0x1c51a1(0x110)]();if(_0xa72cac!==void 0x0){_0x555a67(_0xa72cac);return;}let _0x121224=()=>{const _0x10eba2=_0x1c51a1;_0xec0eaf=void 0x0,_0x410377[_0x10eba2(0x203)](_0x10eba2(0x1ac),_0x198242),_0x5a9450[_0x10eba2(0x201)](),_0x611306[_0x10eba2(0x1db)]('You>\x20');},_0x198242=()=>{const _0x2fab1b=_0x1c51a1;_0x121224(),_0x35d693(new Error(_0x2fab1b(0x2a0)));};_0x410377[_0x1c51a1(0x10d)](_0x1c51a1(0x1ac),_0x198242,{'once':!0x0}),!_0x407fa7&&(_0xec0eaf=_0x2f8f02=>{_0x121224(),_0x555a67(_0x2f8f02);},_0x611306['setPrompt'](_0x76e9e7),_0x5a9450[_0x1c51a1(0x99)]());}),'endQuestions':()=>{const _0x4887aa=_0xe2d21e;_0x4e87ea&&_0x5d493a[_0x4887aa(0x1e0)](..._0x4e87ea),_0x4e87ea=void 0x0;}}),_0x611306['on']('SIGINT',_0x13a237),process[_0xe2d21e(0x220)]['write'](_0xe2d21e(0x11a));let _0xf96ddf=async _0x59622e=>{_0x3f1737=!0x0;try{await _0x505cd3(_0x59622e);}finally{_0x3f1737=!0x1;}};try{if(_0x3cdd73&&await _0xf96ddf(_0x3cdd73),_0xcc97c0)return;!_0x407fa7&&!_0x522be2&&_0x5a9450[_0xe2d21e(0x99)]();for(let _0x5df53f=await _0x55e4d7();_0x5df53f!==null&&(_0x5a9450[_0xe2d21e(0x201)](),!_0xcc97c0);_0x5df53f=await _0x55e4d7()){let _0x2360a2=_0x5df53f[_0xe2d21e(0xc9)]();if(_0x2360a2===_0xe2d21e(0x260))break;_0x2360a2&&await _0xf96ddf(_0x2360a2),!_0x407fa7&&!_0x522be2&&_0x5a9450[_0xe2d21e(0x99)]();}for(;!_0xcc97c0&&_0x522be2;)await _0x42e39f;}finally{_0x183115(null),_0x494476(),_0x5a9450[_0xe2d21e(0xe3)](),_0x611306[_0xe2d21e(0xe7)]('SIGINT',_0x13a237),_0x611306[_0xe2d21e(0xa0)]();}}async function Jn(){const _0x5ddd70=_0x473da0;let _0x41c623=Kt(process[_0x5ddd70(0xab)]['slice'](0x2));if(_0x41c623['outputFormat']===_0x5ddd70(0x1f9)){await Se(_0x41c623);return;}let _0x3e655f=Qt();try{await Se(_0x41c623);}finally{_0x3e655f();}}async function Se(_0xbabe3c){const _0x48174f=_0x473da0;if(_0xbabe3c[_0x48174f(0x128)]){qt();return;}if(_0xbabe3c['version']){console[_0x48174f(0x1b0)](zt());return;}if(_0xbabe3c[_0x48174f(0x19a)]==='login'){await _n(_0xbabe3c);return;}if(_0xbabe3c[_0x48174f(0x19a)]===_0x48174f(0x1af)){await Pn(_0xbabe3c[_0x48174f(0x1cd)]);return;}if(_0xbabe3c[_0x48174f(0x19a)]===_0x48174f(0x153)){await Zt();return;}if(_0xbabe3c['subcommand']===_0x48174f(0x225)){await en(_0xbabe3c);return;}if(_0xbabe3c[_0x48174f(0x19a)]===_0x48174f(0x185)){await on(_0xbabe3c);return;}if(_0xbabe3c[_0x48174f(0x19a)]===_0x48174f(0x281)){await mn(_0xbabe3c);return;}if(_0xbabe3c[_0x48174f(0x19a)]===_0x48174f(0xea)){await an(_0xbabe3c);return;}if(_0xbabe3c[_0x48174f(0x19a)]===_0x48174f(0x10e)){await hn(_0xbabe3c);return;}if(_0xbabe3c[_0x48174f(0x19a)]===_0x48174f(0x147)||_0xbabe3c[_0x48174f(0x19a)]===_0x48174f(0x200)||_0xbabe3c['subcommand']===_0x48174f(0x1a2)){await bn(_0xbabe3c,_0xbabe3c[_0x48174f(0x19a)]);return;}if(_0xbabe3c['subcommand']===_0x48174f(0x256)){await vn(_0xbabe3c);return;}if(_0xbabe3c['subcommand']==='transcribe'){await xn(_0xbabe3c);return;}if(_0xbabe3c[_0x48174f(0x19a)]==='delegations'){await Tn(_0xbabe3c);return;}if(_0xbabe3c[_0x48174f(0x19a)]===_0x48174f(0x283)){await Nn(_0xbabe3c);return;}if(_0xbabe3c[_0x48174f(0x19a)]==='host'){await _0x319bf6(_0xbabe3c['prompt'],{'runnerUrl':_0xbabe3c[_0x48174f(0x27b)],'backendUrl':_0xbabe3c[_0x48174f(0xa5)],'interopPath':_0xbabe3c[_0x48174f(0x106)],'workerId':_0xbabe3c[_0x48174f(0x1a0)]});return;}if(_0xbabe3c['cleanup']){await sn();return;}await Fn(_0xbabe3c);}var Hn=process.env.NODE_ENV===_0x473da0(0x1d9)||!!process.env.JEST_WORKER_ID;Hn||Jn()[_0x473da0(0x275)](_0x2dc977=>{const _0x175810=_0x473da0;console[_0x175810(0x22d)](_0x2dc977['stack']||_0x2dc977[_0x175810(0x1e6)]||_0x2dc977),process[_0x175810(0x23b)](0x1);});export{Wt as CARTOGRAPHER_SKILLS,pe as EFFORT_TIERS,Yt as IMPLICIT_STDIN_IDLE_MS,ke as buildInitOptions,Jn as main,Kt as parseArgs,zt as readCliVersion,H as resolvePrompt,Qt as routeStdoutToStderr,m as writeCommandResult};
2
+ const _0x2de101=_0x2ffd;(function(_0x49608c,_0xe0f5c4){const _0x321d23=_0x2ffd,_0x2fc2bc=_0x49608c();while(!![]){try{const _0x7d1dd=-parseInt(_0x321d23(0x297))/0x1*(parseInt(_0x321d23(0x228))/0x2)+parseInt(_0x321d23(0x354))/0x3+parseInt(_0x321d23(0x279))/0x4*(parseInt(_0x321d23(0x2ce))/0x5)+parseInt(_0x321d23(0x2da))/0x6*(-parseInt(_0x321d23(0x1e1))/0x7)+-parseInt(_0x321d23(0x263))/0x8*(parseInt(_0x321d23(0x245))/0x9)+parseInt(_0x321d23(0x2f2))/0xa+parseInt(_0x321d23(0x282))/0xb;if(_0x7d1dd===_0xe0f5c4)break;else _0x2fc2bc['push'](_0x2fc2bc['shift']());}catch(_0x436621){_0x2fc2bc['push'](_0x2fc2bc['shift']());}}}(_0x1252,0xf1494));const __dirname=import.meta.dirname;import _0x136c59 from'fs';import _0x431b1e from'path';import{clearLine as _0x30f9fd,createInterface as _0x5c39ef,cursorTo as _0x2db042}from'node:readline';import{isOnStepGrid as _0x476034}from'@uipath/delegate-sdk';var C=_0x2de101(0x1af);function E(_0x248585){const _0x34ce7f=_0x2de101;return _0x248585[_0x34ce7f(0x23d)](/\u001b\[[0-?]*[ -/]*[@-~]|\u001b\][^\u0007\u001b]*(\u0007|\u001b\\)?|\u001b./g,'')[_0x34ce7f(0x23d)](/[\u0000-\u0008\u000b-\u001f\u007f-\u009f]/g,'');}function ee(_0x56097b){const _0x328269=_0x2de101;return E(_0x56097b[_0x328269(0x2d6)]??(_0x56097b[_0x328269(0x22c)]===C?_0x328269(0x19b):_0x56097b['id']));}function je(_0x4af275,_0x38f3bc,_0x42490c){const _0x2c2b08=_0x2de101;let _0x35349e=[''+(_0x42490c>0x1?'['+_0x38f3bc+'/'+_0x42490c+']\x20':'')+E(_0x4af275[_0x2c2b08(0x170)])+(_0x4af275[_0x2c2b08(0x280)]?_0x2c2b08(0x2d2):''),E(_0x4af275['question'])];return _0x4af275[_0x2c2b08(0x2e8)]==='text'&&_0x4af275[_0x2c2b08(0x2e4)][_0x2c2b08(0x185)]((_0x31b42d,_0x432b73)=>{const _0x6868ad=_0x2c2b08;let _0x5dd78b=_0x31b42d['kind']===C?_0x6868ad(0x240):'',_0xbab48a=_0x31b42d[_0x6868ad(0x367)]?_0x6868ad(0x294)+E(_0x31b42d[_0x6868ad(0x367)]):'';_0x35349e[_0x6868ad(0x36f)]('\x20\x20'+(_0x432b73+0x1)+'.\x20'+ee(_0x31b42d)+_0x5dd78b+_0xbab48a);}),_0x35349e[_0x2c2b08(0x359)]('\x0a');}function te(_0xf36c7a,_0x46d1da){const _0x49db1d=_0x2de101;let _0x236a57=_0xf36c7a[_0x49db1d(0x166)](/[\s,]+/)['filter'](Boolean);if(_0x236a57[_0x49db1d(0x308)]===0x0)return null;let _0x533051=_0x236a57['map'](_0x41da27=>/^\d+$/[_0x49db1d(0x174)](_0x41da27)?Number(_0x41da27):NaN);return _0x533051[_0x49db1d(0x1f0)](_0x2d1668=>!Number[_0x49db1d(0x30f)](_0x2d1668)||_0x2d1668<0x1||_0x2d1668>_0x46d1da)?null:[...new Set(_0x533051)][_0x49db1d(0x1a4)](_0x3527b0=>_0x3527b0-0x1);}function Me(_0x4ee36a){const _0x1a63d8=_0x2de101;return typeof _0x4ee36a=='object'&&_0x4ee36a!==null&&_0x1a63d8(0x287)in _0x4ee36a;}async function j(_0x45126b,_0x4583b1,_0x512988,_0x1a5977){const _0x37140e=_0x2de101;for(;;){let _0x146577=(await _0x45126b(_0x4583b1))[_0x37140e(0x1ae)]();if(_0x146577==='')return;let _0x587efb=_0x1a5977(_0x146577);if(!Me(_0x587efb))return _0x587efb;_0x512988(_0x587efb['refused']+'\x0a');}}async function Fe(_0x34ecf6,_0x1ab82f,_0x56956f){const _0x89eb24=_0x2de101;if(_0x34ecf6[_0x89eb24(0x2e4)][_0x89eb24(0x308)]===0x0||_0x34ecf6[_0x89eb24(0x2e4)]['every'](_0x1c04b3=>_0x1c04b3[_0x89eb24(0x22c)]===C)){let _0x4289b1=(await _0x1ab82f(_0x89eb24(0x1c9)))[_0x89eb24(0x1ae)]();return _0x4289b1===''?void 0x0:{'text':_0x4289b1};}let _0x41bd7d=_0x34ecf6['options'][_0x89eb24(0x211)](_0x4f7714=>_0x4f7714[_0x89eb24(0x22c)]===C),_0x599cd3=_0x34ecf6[_0x89eb24(0x1cc)]?'Numbers,\x20separated\x20by\x20commas\x20(Enter\x20to\x20skip):\x20':'Number'+(_0x41bd7d>=0x0?_0x89eb24(0x368):'')+_0x89eb24(0x2aa),_0x4c1f92=await j(_0x1ab82f,_0x599cd3,_0x56956f,_0x2a2ab1=>{const _0x3bea0c=_0x89eb24;let _0x18e2ff=te(_0x2a2ab1,_0x34ecf6[_0x3bea0c(0x2e4)]['length']);return _0x18e2ff&&(_0x34ecf6['multiSelect']||_0x18e2ff[_0x3bea0c(0x308)]===0x1)?_0x18e2ff:!_0x34ecf6[_0x3bea0c(0x1cc)]&&_0x41bd7d>=0x0?{'typed':_0x2a2ab1}:{'refused':_0x34ecf6['multiSelect']?_0x3bea0c(0x22a)+_0x34ecf6['options'][_0x3bea0c(0x308)]+'.':_0x3bea0c(0x2b3)+_0x34ecf6['options'][_0x3bea0c(0x308)]+'.'};});if(_0x4c1f92===void 0x0)return;if(!Array[_0x89eb24(0x306)](_0x4c1f92))return{'text':_0x4c1f92['typed']};let _0x2acfa6=_0x4c1f92[_0x89eb24(0x1a4)](_0x288464=>_0x34ecf6[_0x89eb24(0x2e4)][_0x288464]['id']),_0x30dbc4=_0x2acfa6[_0x89eb24(0x34d)](C)?await j(_0x1ab82f,ee(_0x34ecf6['options'][_0x41bd7d])+':\x20',_0x56956f,_0x37e9e0=>_0x37e9e0):void 0x0;if(!(_0x2acfa6['includes'](C)&&_0x30dbc4===void 0x0))return _0x34ecf6[_0x89eb24(0x1cc)]?{'optionIds':_0x2acfa6,..._0x30dbc4!==void 0x0?{'text':_0x30dbc4}:{}}:_0x30dbc4!==void 0x0?{'text':_0x30dbc4}:{'optionId':_0x2acfa6[0x0]};}async function Be(_0x579a31,_0x223f23,_0x23b540){const _0x5e8138=_0x2de101;let _0x417960={};for(let _0x3d42e3 of _0x579a31[_0x5e8138(0x27c)]){let _0x49f530=_0x3d42e3[_0x5e8138(0x29d)]??_0x3d42e3[_0x5e8138(0x24f)],_0x36f470=_0x3d42e3[_0x5e8138(0x34a)]??0x1,_0x194046=_0x3d42e3[_0x5e8138(0x234)]?'\x20'+E(_0x3d42e3[_0x5e8138(0x234)]):'',_0xe0bd43='from\x20'+_0x3d42e3[_0x5e8138(0x24f)]+_0x5e8138(0x352)+_0x3d42e3['max']+(_0x36f470!==0x1?_0x5e8138(0x1fc)+_0x36f470:''),_0x569a42=await j(_0x223f23,E(_0x3d42e3['label'])+'\x20['+_0x3d42e3[_0x5e8138(0x24f)]+'-'+_0x3d42e3[_0x5e8138(0x2af)]+_0x194046+_0x5e8138(0x1b6)+_0x49f530+_0x5e8138(0x248),_0x23b540,_0x2de92d=>{const _0xc53318=_0x5e8138;let _0x3c8179=Number(_0x2de92d);return Number[_0xc53318(0x1e9)](_0x3c8179)&&_0x3c8179>=_0x3d42e3['min']&&_0x3c8179<=_0x3d42e3[_0xc53318(0x2af)]&&_0x476034(_0x3c8179,_0x3d42e3['min'],_0x36f470)?_0x3c8179:{'refused':_0xc53318(0x1e4)+_0xe0bd43+'.'};});_0x417960[_0x3d42e3['id']]=_0x569a42??_0x49f530;}return{'values':_0x417960};}async function He(_0x1c4288,_0x444802,_0x45a87c){const _0x296b97=_0x2de101;_0x45a87c(_0x1c4288[_0x296b97(0x164)]['map']((_0x344f58,_0x281d35)=>'\x20\x20'+(_0x281d35+0x1)+'.\x20'+E(_0x344f58['label']))[_0x296b97(0x359)]('\x0a')+'\x0a');let _0x2e219f={};for(let _0x566ec6 of _0x1c4288[_0x296b97(0x289)]){let _0x224c3d=await j(_0x444802,E(_0x566ec6[_0x296b97(0x2d6)])+_0x296b97(0x1c5),_0x45a87c,_0x44e8ad=>{const _0x84a5e5=_0x296b97;let _0x4ca5ff=te(_0x44e8ad,_0x1c4288[_0x84a5e5(0x164)][_0x84a5e5(0x308)]);return _0x4ca5ff&&_0x4ca5ff[_0x84a5e5(0x308)]===0x1?_0x4ca5ff[0x0]:{'refused':'Enter\x20one\x20number\x20from\x201\x20to\x20'+_0x1c4288['buckets'][_0x84a5e5(0x308)]+'.'};});if(_0x224c3d===void 0x0)continue;let _0x3ace53=_0x1c4288[_0x296b97(0x164)][_0x224c3d],_0x17d4d1={};for(let _0x4681e9 of _0x3ace53['subFields']??[]){let _0x20a907='\x20\x20'+E(_0x4681e9[_0x296b97(0x2d6)])+(_0x4681e9[_0x296b97(0x280)]?_0x296b97(0x2d2):'')+':\x20',_0x2629c5=await j(_0x444802,_0x20a907,_0x45a87c,_0x4478f6=>_0x4478f6);for(;_0x2629c5===void 0x0&&!_0x4681e9[_0x296b97(0x280)];)_0x45a87c(E(_0x4681e9[_0x296b97(0x2d6)])+_0x296b97(0x1c1)),_0x2629c5=await j(_0x444802,_0x20a907,_0x45a87c,_0x55cf7a=>_0x55cf7a);_0x2629c5!==void 0x0&&(_0x17d4d1[_0x4681e9['id']]=_0x2629c5);}_0x2e219f[_0x566ec6['id']]={'bucket':_0x3ace53['id'],...Object[_0x296b97(0x2f3)](_0x17d4d1)[_0x296b97(0x308)]>0x0?{'subFields':_0x17d4d1}:{}};}return Object[_0x296b97(0x2f3)](_0x2e219f)[_0x296b97(0x308)]>0x0?{'assignments':_0x2e219f}:void 0x0;}async function Je(_0x344074,_0x27d6b8,_0x2a5c8d){const _0x4eab1c=_0x2de101;if(_0x344074['type']===_0x4eab1c(0x315))return Fe(_0x344074,_0x27d6b8,_0x2a5c8d);if(_0x344074['type']===_0x4eab1c(0x2f0))return Be(_0x344074,_0x27d6b8,_0x2a5c8d);if(_0x344074[_0x4eab1c(0x2e8)]===_0x4eab1c(0x312))return He(_0x344074,_0x27d6b8,_0x2a5c8d);let _0x385711=(await _0x27d6b8(_0x4eab1c(0x26b)))[_0x4eab1c(0x1ae)]();return _0x385711===''?void 0x0:{'text':_0x385711};}function ne(_0x433b76,_0x5723b8){return async _0x2700bc=>{const _0x4f9807=_0x2ffd;let _0x501452=_0x433b76();if(!_0x501452)throw new Error('There\x20is\x20no\x20terminal\x20input\x20to\x20answer\x20from.');let _0x35d68f=async _0x5743c4=>{const _0x3193a8=_0x2ffd;if(_0x2700bc[_0x3193a8(0x28a)]['aborted'])throw new Error(_0x3193a8(0x2c5));let _0x278c5f=await _0x501452['readLine'](_0x5743c4,_0x2700bc['signal']);if(_0x278c5f===null)throw new Error(_0x3193a8(0x1f8));return _0x278c5f;};try{_0x5723b8('\x0a'+(_0x2700bc[_0x4f9807(0x1bb)]?E(_0x2700bc[_0x4f9807(0x1bb)])+'\x0a':''));let _0x54eab7={};for(let [_0x19830f,_0x1ec31f]of _0x2700bc[_0x4f9807(0x2eb)][_0x4f9807(0x27d)]()){_0x5723b8('\x0a'+je(_0x1ec31f,_0x19830f+0x1,_0x2700bc['questions'][_0x4f9807(0x308)])+'\x0a');let _0x5a1a98=await Je(_0x1ec31f,_0x35d68f,_0x5723b8);_0x5a1a98!==void 0x0&&(_0x54eab7[_0x1ec31f['id']]=_0x5a1a98);}return{'answers':_0x54eab7};}finally{_0x501452[_0x4f9807(0x29c)]();}};}import{createInterface as _0x330200}from'node:readline';function _0x1252(){const _0x19abb3=['filter','low','Interop\x20stopped\x20(if\x20it\x20was\x20running).','stderr','a\x20briefing\x20text','\x20<title>','assignedUserEmail','org-users','map','delegationId','\x20as\x20\x22','Pass\x20either\x20--env\x20(a\x20named\x20cloud)\x20or\x20--url\x20(any\x20other\x20deployment),\x20not\x20both.','No\x20CLI\x20login\x20found.\x20Note:\x20the\x20CLI\x20is\x20currently\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20','\x0aAvailable\x20models\x20(','settle','login','Token:\x20\x20\x20\x20\x20\x20\x20\x20expired\x20','--attach:\x20no\x20such\x20file\x20or\x20folder:\x20','trim','userinput','operands','cancel','from','noMemory','help','--no-computer-use',']\x20(Enter\x20for\x20','effort','addEventListener','Accepted','--effort','intro','\x20(stdin\x20was\x20empty)','displayName','done','check','Usage:\x20delegate-cli\x20sessions\x20','\x20is\x20required.\x0a','expiresAt','Usage:\x20delegate-cli\x20export\x20TYPE\x20[DOCUMENT_ID]\x20--project\x20ID\x20[--working-dir\x20PATH]','slice',':\x20bucket\x20number\x20(Enter\x20to\x20leave\x20out):\x20','\x20\x22<prompt>\x22\x0a','backendUrl','noConnections','Your\x20answer\x20(Enter\x20to\x20skip):\x20','startsWith','object','multiSelect','value','onEvent','Invalid\x20--input-format:\x20','response','delegations\x20claim\x20<delegation-id|delegate://delegation/…>','Continue\x20it\x20with:\x20delegate-cli\x20--session\x20','--turn','Invalid\x20--env:\x20','print','quiet','.\x20Use\x20alpha\x20|\x20staging\x20|\x20production\x20|\x20localhost.','Session\x20\x20\x20\x20\x20\x20\x20','rename','export:\x20','--preload-skill','close','--cartographer','includeSubAgents',')\x20—\x20saved\x20to\x20','a\x20project\x20id','53221uAkjgo','Turn:\x20','✓\x20Done\x0a','Enter\x20a\x20number\x20','ASSIGNEE','>.\x0a','--version','UPDATED','isFinite','--days\x20applies\x20to\x20`delegate-cli\x20usage\x20activity|daily`\x20only.','medium','--authority','result','isTTY','period_days','some','The\x20steering\x20message\x20was\x20not\x20answered:\x20its\x20turn\x20did\x20not\x20run\x20or\x20added\x20no\x20reply.','subcommand','complete','total_tokens','orgLogicalName','extra_pool_consumed_pu','No\x20CLI\x20login\x20found\x20—\x20nothing\x20to\x20remove.','Input\x20closed\x20before\x20the\x20question\x20was\x20answered.','round','rubric_version','whoami','\x20in\x20steps\x20of\x20','No\x20models\x20available\x20for\x20this\x20product/tenant.\x0a','\x20token\x20units','--print','--working-dir','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.','--no-connections','sourceTitle','UIPATH_BASE_URL\x20is\x20unusable.\x20','Cancel\x20requested\x20for\x20turn\x20','Invalid\x20--effort:\x20','--days\x20applies\x20to\x20`delegate-cli\x20usage\x20activity|daily`;\x20the\x20summary\x20covers\x20the\x20current\x20month.','Usage:\x20delegate-cli\x20sessions\x20[list]\x20[--page\x20N]\x20[--limit\x20N]\x20[--include-subagents]','ID\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','environment\x20variables\x20(AUTH_TOKEN/TENANT_ID/ORG_ID)','answers','pause','alreadyCompleted','origin','\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','Tenant:\x20','findIndex','an\x20input\x20line\x20has\x20type\x20','You>\x20','agent_thought','widget','claim','cleanup','abort','probability\x20','--include-subagents','delegations\x20cancel\x20<delegation-id>','projectId','then','maps\x20','exit','shift','existsSync','Saved\x20version\x20','updatedAt','delegate-cli','\x0a🤔\x20','maps','session_consumed_pu','127074sSktJB','delegations\x20create\x20--session\x20<id>\x20[--to\x20<email|name>]\x20[--summary\x20<text>]\x20\x22<task>\x22|-','Enter\x20numbers\x20from\x201\x20to\x20','vertical','kind','findLast','delegations\x20dismiss\x20<delegation-id>','complete\x20needs\x20a\x20prompt:\x20delegate-cli\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22,\x20or\x20-\x20to\x20read\x20stdin.','error','followUpsRenderer','Tenant:\x20\x20\x20\x20\x20\x20\x20','write','unit','a\x20directory\x20path',').\x0a','total_quota_pu','an\x20input\x20line\x20is\x20not\x20a\x20JSON\x20object','a\x20file://\x20URL\x20or\x20an\x20absolute\x20path','stack','save-version','rejection','replace','interopPath','Structured\x20output\x20failed:\x20','\x20(type\x20your\x20own)','\x20<file.json>,\x20or\x20-\x20to\x20read\x20stdin.','--map-name','unknown','auth','90iOwrVr','No\x20answers\x20awaiting\x20acceptance.\x0a','--input-format\x20stream-json\x20needs\x20--output-format\x20stream-json:\x20the\x20steering\x20messages\x20are\x20answered\x20on\x20stdout.','):\x20','.\x20Use\x20`delegate-cli\x20usage`,\x20`usage\x20activity`\x20or\x20`usage\x20daily`.','\x0aStopping…\x20(Ctrl+C\x20again\x20to\x20force\x20exit)\x0a','self-hosted\x20(Automation\x20Suite\x20/\x20Dedicated)','transcribe','\x20into\x20','finish','min','detail','--session','resolve','daily_usage','logout','getTurnUsageHistory','--json-schema\x20applies\x20to\x20prompts\x20and\x20to\x20`delegate-cli\x20complete`\x20only.','tenant','noSecurity','More:\x20delegate-cli\x20sessions\x20--page\x20','\x20\x20(sub-agent\x20of\x20','accept','a\x20vertical\x20id','line','skipEnvCheck','\x20PU\x20used','toString','content','--task-automation\x20applies\x20to\x20prompts\x20only.','284728DWFElA','tool_call','data','stdout','pending','Already\x20answered','url','deleted','Your\x20answer,\x20as\x20text\x20(the\x20CLI\x20attaches\x20no\x20files;\x20Enter\x20to\x20skip):\x20','noComputerUse','organizationId','name','\x20PU','baseUrl','user','session_start','\x20(Delegate\x20desktop\x20app\x20fallback)','cartographer','Use:\x20delegate-cli\x20delegations\x20','Could\x20not\x20check\x20BYO\x20model\x20warnings:\x20','\x20|\x20','\x20min)','3707556pIomCt','Owner\x20\x20\x20\x20\x20\x20\x20\x20\x20','date','fields','entries','end','total_cost_usd','optional','version','3383039VTXELb','outputFormat','--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`delegate-cli\x20sessions\x20[list]`\x20only.','probability','\x20(no\x20cap\x20enforced)','refused','Organization:\x20','items','signal','auth.json','\x20from\x20','No\x20CLI\x20login\x20found.\x20Run\x20`delegate-cli\x20login\x20--env\x20<alpha|staging|production>`\x20first.','localhost','\x20\x20TITLE\x0a','toFixed','log','actionable_error',':\x20ignored\x0a','\x20-\x20','sessionId','--skills-path','26HWzrct','estimated_cost_usd','a\x20deployment\x20URL,\x20e.g.\x20https://automationsuite.contoso.com','sourceUserEmail','rerank','endQuestions','default','string','evaluate','stop','high','parentSessionId','Invalid\x20--project:\x20\x22','total_token_units','deepLink','input','The\x20saved\x20CLI\x20login\x20could\x20not\x20be\x20refreshed.\x20Run\x20`delegate-cli\x20login`\x20again.','dismiss',',\x20not\x20\x22user\x22','\x20(Enter\x20to\x20skip):\x20','\x20requires\x20','AUTH_TOKEN_FILE\x20\x27','\x0aAccept\x20one\x20with:\x20delegate-cli\x20delegations\x20accept\x20<id>\x0a','stringify','max','Title\x20\x20\x20\x20\x20\x20\x20\x20\x20',':\x20cannot\x20read\x20the\x20request\x20(','race','Enter\x20one\x20number\x20from\x201\x20to\x20','--replay-user-messages\x20needs\x20--input-format\x20stream-json.','accessToken','jsonSchemaPath','Session\x20','\x20\x20\x20\x20BYO\x20warning:\x20','daily','Removed\x20','share','Usage:\x20delegate-cli\x20maps\x20save-version\x20MESSAGE\x20--project\x20ID\x20[--working-dir\x20PATH]','workingDirectory','Licensing:\x20\x20\x20\x20no\x20licensing\x20quota\x20applies','\x20\x22<answer>\x22\x0a','model','--worker-id','a\x20number','\x20\x20from\x20','Usage:\x20delegate-cli\x20','The\x20turn\x20was\x20cancelled.','delegations','\x20<id>','--summary','--remote\x20and\x20--map-name\x20apply\x20to\x20`delegate-cli\x20maps\x20share`\x20only.','total_sessions','the\x20request','headless','Token:\x20\x20\x20\x20\x20\x20\x20\x20expires\x20','10cQynlE','limit','--skip-env-check\x20applies\x20to\x20`delegate-cli\x20login`\x20only.','[saved\x20login]\x20Backend\x20URL:\x20','\x20(optional)','Already\x20accepted','delegations\x20list\x20<backend-project-id>','show','label','bind','--runner-url','file','918PnjiNm','task','Organization\x20\x20','argv','No\x20sessions\x20on\x20page\x20','--to','Invalid\x20--output-format:\x20','alpha','\x20days:\x20','uuid','options','--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.','--to\x20and\x20--summary\x20apply\x20to\x20`delegate-cli\x20delegations\x20create`\x20only.','confidence','type','Missing\x20prompt.\x20Pass\x20it\x20as\x20an\x20argument,\x20pipe\x20it\x20via\x20stdin,\x20or\x20run\x20`delegate-cli\x20--help`.','--output-format','questions','Tenant\x20not\x20switched:\x20could\x20not\x20write\x20','\x20completion','preloadSkills','an\x20input\x20line\x20has\x20no\x20message.content,\x20a\x20string\x20or\x20a\x20list\x20of\x20text\x20blocks','numeric','staging','17032010LIrbqn','keys','prompt','sendMessage','from\x201\x20to\x20','runnerUrl','\x20(cancel\x20with:\x20delegate-cli\x20sessions\x20cancel\x20','\x20\x20\x20\x20','delegations\x20pending\x20<session-id>','choice','sessions','--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`delegate-cli\x20sessions`\x20only.','models','Enter\x20sends\x20a\x20message.\x20/exit\x20or\x20EOF\x20exits;\x20Ctrl+C\x20stops\x20and\x20exits.\x0a','tokenExpiresAt','mapName','locked','readFileSync','hide','--output-format\x20','isArray','--remote','length','all','erase','Usage:\x20delegate-cli\x20maps\x20share\x20--project\x20ID\x20--remote\x20URL|PATH\x20--map-name\x20NAME\x20[--working-dir\x20PATH]','🔧\x20','message','--to,\x20--summary\x20and\x20--session\x20apply\x20to\x20`delegate-cli\x20delegations\x20create`\x20only.','isInteger','SIGINT','tenantName','bucket','--page','fork','text','resume','catch','\x20prompt,\x20','xhigh','delegation','--attach\x20applies\x20to\x20prompts\x20only.','taskAutomation','\x20\x22<prompt>\x22\x0aAnswer\x20with:\x20delegate-cli\x20delegations\x20complete\x20','total_prompt_tokens','--limit','\x20(in\x20','create','--env','Model\x20','inputFormat','Date\x20\x20\x20\x20\x20\x20\x20\x20Token\x20units\x20\x20Prompt\x20tokens\x20\x20Completion\x20tokens','activity','replayUserMessages','stdin',',\x20or\x20holds\x20no\x20message\x20','No\x20usage\x20in\x20the\x20last\x20','No\x20structured\x20output:\x20the\x20turn\x20failed\x20(','.\x20Use\x20','results','transcribe\x20needs\x20audio:\x20delegate-cli\x20transcribe\x20<file>,\x20or\x20-\x20to\x20read\x20stdin.','tenantId','turnId','\x20delegation\x20','dismissed','\x20\x20TASK\x0a','toISOString','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','--keep-alive','\x0aUse\x20with:\x20delegate-cli\x20--model\x20<id>\x20\x22<prompt>\x22\x0a','utf-8','--cleanup','exitCode','now','padEnd','once','title','turn_start','export','byoWarning','env','\x20\x20(input\x20#','Unknown\x20flag:\x20','monthly_spend_usd','a\x20turn\x20id','\x27\x20is\x20empty.','contextSummary','delete','step',':\x20cannot\x20read\x20the\x20JSON\x20schema\x20(','\x20token\x20units)','includes','prompt_tokens','\x20in\x20progress\x20on\x20session\x20','isError','--task-automation','\x20to\x20','Switch\x20with:\x20delegate-cli\x20tenant\x20<name>\x0a','884733wjWLnh','--turn\x20applies\x20to\x20`delegate-cli\x20sessions\x20cancel`\x20only.','--no-security','the\x20JSON\x20schema','\x20needs\x20a\x20JSON\x20request:\x20delegate-cli\x20','join','Tenants\x20of\x20','Bearer\x20','limit_enabled','Licensing:\x20\x20\x20\x20','workerId','tool','thinking','\x20(resets\x20','cwd','return','attachments','verbose','lastType','description','\x20or\x20your\x20own\x20answer','\x20(resume\x20with\x20--session\x20','keepAlive','Deployment:\x20\x20\x20','days','\x20(confidence\x20','concat','push','A\x20steering\x20message\x20arrived\x20after\x20the\x20turn\x20ended:\x20not\x20read.\x0a','--interop','verify','usage','Base\x20URL:\x20\x20\x20\x20\x20','delegations\x20complete\x20<delegation-id>\x20\x22<answer>\x22|-','\x20of\x20a\x20$','cancelled','):\x0a\x0a','score','bundledSkillsPath','steer','off',',\x20whose\x20tenant\x20is\x20chosen\x20in\x20the\x20app.\x20Run\x20`delegate-cli\x20login\x20--env\x20<env>`\x20for\x20a\x20CLI\x20login\x20of\x20your\x20own.','Delegation\x20\x20\x20\x20','a\x20colleague','initialize','getSessionMessages','an\x20email\x20address\x20or\x20name','delegations\x20delete\x20<delegation-id>','--json-schema','Last\x20','package.json','deployment','--url\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Other\x20commands\x20follow\x20the\x20saved\x20login,\x20or\x20--backend\x20<url>.','pendingResults','buckets','token_units','split','add','stream-json','\x20(estimated\x20$','%\x20of\x20','a\x20JSON\x20schema\x20file','Answered','models_breakdown','--project','Forked\x20','header','an\x20input\x20line\x20has\x20an\x20empty\x20message','unknown\x20slug','delegations\x20show\x20<delegation-id|delegate://delegation/…>','test','--input-format\x20stream-json\x20reads\x20the\x20prompt\x20from\x20stdin:\x20pass\x20no\x20prompt\x20argument.','page','\x20is\x20not\x20valid\x20JSON\x20(','parse','/exit','structured','Created\x20delegation\x20','--skip-env-check','getSessionId','a\x20file\x20path','oneTurn','list','--vertical','Unknown\x20usage\x20view:\x20','remote','complete\x20needs\x20--json-schema\x20<file>:\x20delegate-cli\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22.','forEach','setPrompt',';\x20the\x20saved\x20login\x20still\x20uses\x20','assignedUser','code','Usage:\x20delegate-cli\x20org-users\x20<name\x20or\x20email\x20prefix>','status','\x20days.\x0a','--days','spawn','email','delegateTo','an\x20input\x20line\x20is\x20not\x20JSON','restore','From\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','--session\x20applies\x20to\x20the\x20`delegate-cli\x20usage`\x20summary\x20only.','),\x20','lockReason','host','\x20PU\x20beyond\x20quota','\x20of\x20session\x20','padStart','Something\x20else'];_0x1252=function(){return _0x19abb3;};return _0x1252();}var F=[_0x2de101(0x315),_0x2de101(0x168)];function se(_0x519cf0){return F['includes'](_0x519cf0);}var P=class extends Error{};function We(_0x11902d){const _0x3ef97b=_0x2de101;if(typeof _0x11902d==_0x3ef97b(0x29e))return _0x11902d;if(!Array[_0x3ef97b(0x306)](_0x11902d))return;let _0x5a02a5=[];for(let _0x2626eb of _0x11902d){if(typeof _0x2626eb!=_0x3ef97b(0x1cb)||_0x2626eb===null)return;let {type:_0x429fcd,text:_0x2510ab}=_0x2626eb;if(_0x429fcd!=='text'||typeof _0x2510ab!=_0x3ef97b(0x29e))return;_0x5a02a5[_0x3ef97b(0x36f)](_0x2510ab);}return _0x5a02a5['join']('\x0a');}function Ke(_0x55afc9){const _0x4255e2=_0x2de101;if(_0x55afc9['trim']()==='')return null;let _0x4b0d62;try{_0x4b0d62=JSON['parse'](_0x55afc9);}catch{throw new P(_0x4255e2(0x191));}if(typeof _0x4b0d62!='object'||_0x4b0d62===null)throw new P(_0x4255e2(0x238));let {type:_0x7a0a1,message:_0x33ddf3,uuid:_0x377703}=_0x4b0d62;if(_0x7a0a1!==_0x4255e2(0x271))throw new P(_0x4255e2(0x212)+JSON['stringify'](_0x7a0a1)+_0x4255e2(0x2a9));let _0x502399=We(_0x33ddf3?.['content']);if(_0x502399===void 0x0)throw new P(_0x4255e2(0x2ef));if(_0x502399['trim']()==='')throw new P(_0x4255e2(0x171));return{'text':_0x502399,'uuid':typeof _0x377703==_0x4255e2(0x29e)?_0x377703:void 0x0};}function oe(_0x4a9b19,_0x5e4fab){const _0x4446b6=_0x2de101;return JSON[_0x4446b6(0x2ae)]({'type':_0x4446b6(0x271),'message':{'role':_0x4446b6(0x271),'content':_0x4a9b19[_0x4446b6(0x315)]},'session_id':_0x5e4fab,..._0x4a9b19['uuid']===void 0x0?{}:{'uuid':_0x4a9b19[_0x4446b6(0x2e3)]},'isReplay':!0x0})+'\x0a';}async function*re(_0x1d440e,_0x1cb223){let _0x43f28d=_0x330200({'input':_0x1d440e,'crlfDelay':0x1/0x0});try{for await(let _0x1f43eb of _0x43f28d){let _0x22202c;try{_0x22202c=Ke(_0x1f43eb);}catch(_0x10beba){if(!(_0x10beba instanceof P))throw _0x10beba;_0x1cb223(_0x10beba);continue;}_0x22202c&&(yield _0x22202c);}}finally{_0x43f28d['close']();}}import{BUSINESS_ANALYSIS_PRELOADED_SKILLS as _0x31af4b,DelegateAgent as _0x6aa6ea,cancelTurn as _0x7817fe,InteropProcess as _0x1054fa,complete as _0x2fcacf,DEFAULT_MODEL as _0x55afce,createBackendClient as _0x521ab1,evaluate as _0x5534db,isCompletionRequestError as _0x2bc001,isEvaluationRequestError as _0x56d11b,isTranscriptionError as _0x21b2ce,rerank as _0x1f01be,transcribe as _0x4f8e4c,exportLivingDocument as _0x2a19cd,saveMapVersion as _0x58b751,shareMap as _0x7e9d88,verify as _0x418e7d,acceptDelegation as _0x57cfbc,cancelDelegation as _0x54c377,claimDelegation as _0x260a7f,completeDelegation as _0x50155a,createDelegation as _0x19346f,deleteDelegation as _0x51124f,dismissDelegation as _0x592178,getSessionDelegations as _0x237c6b,isDelegationError as _0x47eb30,listDelegations as _0x671cf0,listOrgUsers as _0x17164a,previewDelegation as _0x3d3fa7,TurnResultCollector as _0x4224bd,agentEventToJsonLine as _0x54b2b4,describeBaseUrlRejection as _0x35347b,getActivitySummary as _0x34dac0,getAuthFilePath as _0x5c2737,getByoWarnings as _0x51baef,getDailyBreakdown as _0x3a8aca,getLicensingSummary as _0x38893c,getMonthlySpending as _0x400e89,isOutputFormat as _0x2f86dc,isCloudBaseUrl as _0x5ec1af,isSafeProjectFolderSegment as _0x467484,listModels as _0x305441,listSessions as _0xc781c9,getSession as _0x4cca1b,renameSession as _0x56a7d1,deleteSession as _0x12eed4,deleteSessionTaskLog as _0x26539d,forkSession as _0x21529b,isBackendRequestError as _0x1370b3,MAX_SESSION_PAGE_SIZE as _0x52478f,listTenants as _0x132468,loadAndRefreshAuth as _0x277308,loadAndRefreshSdkLogin as _0x18ffa7,parsePlatformBaseUrl as _0x746b13,resolveBackendUrl as _0x1447c8,runHealthCheck as _0x3878dc,runHostCommand as _0x2649be,runLoginFlow as _0x18cf0b,runTurnForResult as _0x25c551,saveAuthData as _0x1f0610,switchTenant as _0x5768ad,toJsonLine as _0x218547,ENV_TO_CLOUD as _0x2e19a6,OUTPUT_FORMATS as _0x136032,isRunStopNotice as _0x2d2e17,extractActionableErrorText as _0x5efc29}from'@uipath/delegate-sdk';function ie(_0x1c8d9d){const _0x53274b=_0x2de101;let {input:_0x998f42,getAgent:_0x3ed088,replay:_0x406b55,onEvent:_0x4a19dd,write:_0x141d16,warn:_0x1ec8ab,isRunStopNotice:_0x4fb1d7,actionableErrorText:_0x15050a}=_0x1c8d9d,_0x26d087=0x0,_0x4e813d=0x0,_0x128eff=Promise[_0x53274b(0x252)](),_0x4bb29d=!0x1,_0xdc688a=()=>{},_0x2530f2=new Promise(_0x4d6186=>{_0xdc688a=_0x4d6186;}),_0x2f3ac1=[],_0x48e288=_0x4a19dd(_0x120ec4=>{const _0x277752=_0x53274b;_0x120ec4[_0x277752(0x2e8)]===_0x277752(0x33f)&&(_0xdc688a(),_0x2f3ac1[_0x277752(0x220)]()?.());}),_0x51ad30=_0x248e9e=>{const _0x1ad2a5=_0x53274b;_0x406b55&&_0x141d16(oe(_0x248e9e,_0x3ed088()[_0x1ad2a5(0x17d)]()));},_0x155709=(async()=>{const _0x59d5a8=_0x53274b;await _0x2530f2;for await(let _0x1efa6b of _0x998f42['messages']){if(_0x4bb29d)return;_0x26d087===0x0&&(_0x4e813d=_0x3ed088()[_0x59d5a8(0x381)]()['length']),_0x26d087++;let _0x475663=new Promise(_0x4c7b08=>{const _0x559884=_0x59d5a8;_0x2f3ac1[_0x559884(0x36f)](()=>{_0x51ad30(_0x1efa6b),_0x4c7b08();});}),_0x4daa44=()=>{_0x26d087--,_0x2f3ac1['pop']();},_0x300016=_0x3ed088()[_0x59d5a8(0x37b)](_0x1efa6b[_0x59d5a8(0x315)]);_0x128eff=_0x300016[_0x59d5a8(0x317)](()=>{});try{await _0x300016?await Promise[_0x59d5a8(0x2b2)]([_0x475663,_0x3ed088()['waitForIdle']()]):(_0x4daa44(),_0x1ec8ab(_0x59d5a8(0x370)));}catch(_0xd129c){_0x4daa44(),_0x1ec8ab('A\x20steering\x20message\x20was\x20not\x20sent:\x20'+(_0xd129c instanceof Error?_0xd129c['message']:String(_0xd129c))+'\x0a');}}})()['catch'](_0x3e70a9=>{const _0x16a89c=_0x53274b;_0x1ec8ab('Steering\x20input\x20stopped:\x20'+(_0x3e70a9 instanceof Error?_0x3e70a9[_0x16a89c(0x30d)]:String(_0x3e70a9))+'\x0a');});return{'settle':async _0x39bde6=>{const _0x220d66=_0x53274b;if(await _0x128eff,_0x26d087===0x0)return _0x39bde6;await _0x3ed088()['waitForIdle']();for(let _0x147c11 of _0x2f3ac1)_0x147c11();_0x2f3ac1=[];let _0x122340=_0x3ed088()[_0x220d66(0x381)]()[_0x220d66(0x1c4)](_0x4e813d)[_0x220d66(0x22d)](_0x13b8c0=>_0x13b8c0[_0x220d66(0x215)]===_0x220d66(0x292)||_0x4fb1d7(_0x13b8c0)||_0x13b8c0[_0x220d66(0x2e8)]==='ai'&&_0x13b8c0[_0x220d66(0x215)]!==_0x220d66(0x214)&&_0x13b8c0[_0x220d66(0x215)]!==_0x220d66(0x231)&&!!_0x13b8c0[_0x220d66(0x261)]);if(!_0x122340)return{..._0x39bde6,'failed':!0x0,'text':_0x220d66(0x1f1)};let _0x549fee=_0x122340[_0x220d66(0x215)]===_0x220d66(0x292);return typeof _0x122340[_0x220d66(0x261)]!=_0x220d66(0x29e)?{..._0x39bde6,'failed':_0x549fee}:{..._0x39bde6,'failed':_0x549fee,'text':_0x549fee?_0x15050a(_0x122340[_0x220d66(0x261)]):_0x122340[_0x220d66(0x261)]};},'stop':()=>{const _0x47983e=_0x53274b;_0x4bb29d=!0x0,_0x48e288(),_0x998f42[_0x47983e(0x1dc)]();}};}var Yt=[_0x2de101(0x1ab),_0x2de101(0x257),_0x2de101(0x2fe),_0x2de101(0x197),_0x2de101(0x254),_0x2de101(0x1fb),_0x2de101(0x1bf),'sessions',_0x2de101(0x373),_0x2de101(0x29f),_0x2de101(0x29b),_0x2de101(0x372),_0x2de101(0x1f3),_0x2de101(0x24c),'export',_0x2de101(0x226),_0x2de101(0x2c6),_0x2de101(0x1a3)],ue=['','models',_0x2de101(0x1fb),_0x2de101(0x1bf),'sessions','usage','evaluate',_0x2de101(0x29b),_0x2de101(0x372),'complete',_0x2de101(0x24c),_0x2de101(0x340),'maps',_0x2de101(0x2c6),_0x2de101(0x1a3)],pe=[_0x2de101(0x19d),_0x2de101(0x1eb),_0x2de101(0x2a1),_0x2de101(0x319),'max'],zt=_0x31af4b,B=_0x2de101(0x274);function b(_0x458d6d,_0x87c629,_0x514fd6,_0x210947){const _0x321a7d=_0x2de101;let _0x2a0edf=_0x458d6d[_0x87c629];return(!_0x2a0edf||_0x2a0edf['length']>0x1&&_0x2a0edf[_0x321a7d(0x1ca)]('-'))&&(console['error'](_0x514fd6+_0x321a7d(0x2ab)+_0x210947+'.'),process[_0x321a7d(0x21f)](0x2)),_0x2a0edf;}function K(_0x53a04f,_0x2f3e28,_0x2efa1f,_0xab3b90){const _0x3dbd1e=_0x2de101;let _0x42c82f=b(_0x53a04f,_0x2f3e28,_0x2efa1f,_0x3dbd1e(0x2c2)),_0x5c4d2f=Number(_0x42c82f);return(!/^\d+$/[_0x3dbd1e(0x174)](_0x42c82f)||_0x5c4d2f<0x1||!Number['isSafeInteger'](_0x5c4d2f)||_0xab3b90!==void 0x0&&_0x5c4d2f>_0xab3b90)&&(console[_0x3dbd1e(0x230)](_0x2efa1f+'\x20must\x20be\x20a\x20whole\x20number\x20'+(_0xab3b90===void 0x0?'1\x20or\x20more':_0x3dbd1e(0x2f6)+_0xab3b90)+',\x20got\x20'+_0x42c82f+'.'),process[_0x3dbd1e(0x21f)](0x2)),_0x5c4d2f;}function Vt(_0x5f46fe){const _0x46ae7b=_0x2de101;let _0x19d161={'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':_0x46ae7b(0x315),'inputFormat':_0x46ae7b(0x315),'replayUserMessages':!0x1,'preloadSkills':[],'attachments':[],'skipEnvCheck':!0x1,'includeSubAgents':!0x1,'operands':[],'help':!0x1,'version':!0x1};Yt[_0x46ae7b(0x34d)](_0x5f46fe[0x0])&&(_0x19d161[_0x46ae7b(0x1f2)]=_0x5f46fe[0x0],_0x5f46fe=_0x5f46fe[_0x46ae7b(0x1c4)](0x1));let _0x3f3212=[];for(let _0x591941=0x0;_0x591941<_0x5f46fe['length'];_0x591941++){let _0x2d9ed6=_0x5f46fe[_0x591941];switch(_0x2d9ed6){case _0x46ae7b(0x1ff):case'-p':_0x19d161[_0x46ae7b(0x1d5)]=!0x0;break;case _0x46ae7b(0x336):_0x19d161[_0x46ae7b(0x36a)]=!0x0;break;case _0x46ae7b(0x339):_0x19d161[_0x46ae7b(0x217)]=!0x0;break;case'--headless':_0x19d161[_0x46ae7b(0x2cc)]=!0x0;break;case _0x46ae7b(0x1b5):_0x19d161[_0x46ae7b(0x26c)]=!0x0;break;case _0x46ae7b(0x1dd):_0x19d161[_0x46ae7b(0x274)]=!0x0,_0x19d161[_0x46ae7b(0x26c)]=!0x0,_0x19d161[_0x46ae7b(0x2ee)][_0x46ae7b(0x36f)](...zt);break;case _0x46ae7b(0x202):_0x19d161[_0x46ae7b(0x1c8)]=!0x0;break;case _0x46ae7b(0x356):_0x19d161[_0x46ae7b(0x258)]=!0x0;break;case'--no-memory':_0x19d161[_0x46ae7b(0x1b3)]=!0x0;break;case _0x46ae7b(0x351):_0x19d161[_0x46ae7b(0x31c)]=!0x0;break;case'--quiet':case'-q':_0x19d161[_0x46ae7b(0x1d6)]=!0x0;break;case'--verbose':_0x19d161[_0x46ae7b(0x365)]=!0x0;break;case'--backend':_0x19d161[_0x46ae7b(0x1c7)]=_0x5f46fe[++_0x591941];break;case'--model':_0x19d161[_0x46ae7b(0x2c0)]=_0x5f46fe[++_0x591941];break;case _0x46ae7b(0x2d8):_0x19d161[_0x46ae7b(0x2f7)]=_0x5f46fe[++_0x591941];break;case _0x46ae7b(0x371):_0x19d161[_0x46ae7b(0x23e)]=_0x5f46fe[++_0x591941];break;case _0x46ae7b(0x2c1):_0x19d161[_0x46ae7b(0x35e)]=_0x5f46fe[++_0x591941];break;case _0x46ae7b(0x1db):_0x19d161[_0x46ae7b(0x2ee)]['push'](b(_0x5f46fe,++_0x591941,_0x2d9ed6,'a\x20skill\x20name'));break;case _0x46ae7b(0x16e):{let _0x267dde=b(_0x5f46fe,++_0x591941,_0x2d9ed6,_0x46ae7b(0x1e0));_0x467484(_0x267dde)||(console['error'](_0x46ae7b(0x2a3)+_0x267dde+'\x22.\x20Use\x20a\x20single\x20folder-safe\x20segment\x20such\x20as\x20invoice-approval\x20(letters,\x20digits,\x20spaces,\x20\x22_\x22,\x20\x22-\x22,\x20\x22.\x22,\x20parentheses;\x20at\x20most\x2064\x20characters;\x20not\x20starting\x20with\x20\x22.\x22\x20or\x20ending\x20with\x20\x22.\x22\x20or\x20a\x20space).'),process[_0x46ae7b(0x21f)](0x2)),_0x19d161[_0x46ae7b(0x21c)]=_0x267dde;break;}case _0x46ae7b(0x181):_0x19d161[_0x46ae7b(0x22b)]=b(_0x5f46fe,++_0x591941,_0x2d9ed6,_0x46ae7b(0x25c));break;case _0x46ae7b(0x2ea):{let _0x2af443=b(_0x5f46fe,++_0x591941,_0x2d9ed6,'a\x20format\x20('+_0x136032[_0x46ae7b(0x359)](_0x46ae7b(0x277))+')');_0x2f86dc(_0x2af443)||(console[_0x46ae7b(0x230)](_0x46ae7b(0x2e0)+_0x2af443+_0x46ae7b(0x32c)+_0x136032[_0x46ae7b(0x359)](_0x46ae7b(0x277))+'.'),process['exit'](0x2)),_0x19d161[_0x46ae7b(0x283)]=_0x2af443;break;}case'--input-format':{let _0x1ae2d1=b(_0x5f46fe,++_0x591941,_0x2d9ed6,'a\x20format\x20('+F['join'](_0x46ae7b(0x277))+')');se(_0x1ae2d1)||(console[_0x46ae7b(0x230)](_0x46ae7b(0x1cf)+_0x1ae2d1+_0x46ae7b(0x32c)+F[_0x46ae7b(0x359)](_0x46ae7b(0x277))+'.'),process[_0x46ae7b(0x21f)](0x2)),_0x19d161[_0x46ae7b(0x324)]=_0x1ae2d1;break;}case'--replay-user-messages':_0x19d161[_0x46ae7b(0x327)]=!0x0;break;case _0x46ae7b(0x251):_0x19d161[_0x46ae7b(0x295)]=b(_0x5f46fe,++_0x591941,_0x2d9ed6,'a\x20session\x20id');break;case _0x46ae7b(0x313):_0x19d161[_0x46ae7b(0x176)]=K(_0x5f46fe,++_0x591941,_0x2d9ed6);break;case _0x46ae7b(0x31f):_0x19d161['limit']=K(_0x5f46fe,++_0x591941,_0x2d9ed6,_0x52478f);break;case _0x46ae7b(0x21a):_0x19d161[_0x46ae7b(0x1de)]=!0x0;break;case _0x46ae7b(0x15e):_0x19d161[_0x46ae7b(0x2b6)]=b(_0x5f46fe,++_0x591941,_0x2d9ed6,_0x46ae7b(0x16b));break;case'--attach':{let _0x2eec08=_0x431b1e['resolve'](process[_0x46ae7b(0x362)](),b(_0x5f46fe,++_0x591941,_0x2d9ed6,_0x46ae7b(0x17e)));_0x136c59[_0x46ae7b(0x221)](_0x2eec08)||(console['error'](_0x46ae7b(0x1ad)+_0x2eec08),process[_0x46ae7b(0x21f)](0x2)),_0x19d161[_0x46ae7b(0x364)][_0x46ae7b(0x36f)](_0x2eec08);break;}case _0x46ae7b(0x1d3):_0x19d161[_0x46ae7b(0x330)]=b(_0x5f46fe,++_0x591941,_0x2d9ed6,_0x46ae7b(0x346));break;case _0x46ae7b(0x2df):_0x19d161[_0x46ae7b(0x190)]=b(_0x5f46fe,++_0x591941,_0x2d9ed6,_0x46ae7b(0x15c));break;case _0x46ae7b(0x2c8):_0x19d161[_0x46ae7b(0x348)]=b(_0x5f46fe,++_0x591941,_0x2d9ed6,_0x46ae7b(0x1a0));break;case _0x46ae7b(0x307):_0x19d161['remote']=b(_0x5f46fe,++_0x591941,_0x2d9ed6,_0x46ae7b(0x239));break;case _0x46ae7b(0x242):_0x19d161[_0x46ae7b(0x301)]=b(_0x5f46fe,++_0x591941,_0x2d9ed6,'a\x20Map\x20name');break;case _0x46ae7b(0x18d):_0x19d161[_0x46ae7b(0x36c)]=K(_0x5f46fe,++_0x591941,_0x2d9ed6,0x16d);break;case _0x46ae7b(0x200):_0x19d161[_0x46ae7b(0x2bd)]=_0x431b1e[_0x46ae7b(0x252)](process[_0x46ae7b(0x362)](),b(_0x5f46fe,++_0x591941,_0x2d9ed6,_0x46ae7b(0x235)));break;case _0x46ae7b(0x296):_0x19d161[_0x46ae7b(0x37a)]=_0x431b1e[_0x46ae7b(0x252)](process[_0x46ae7b(0x362)](),b(_0x5f46fe,++_0x591941,_0x2d9ed6,_0x46ae7b(0x235)));break;case _0x46ae7b(0x1ba):{let _0x25303c=b(_0x5f46fe,++_0x591941,_0x2d9ed6,'an\x20effort\x20tier');pe['includes'](_0x25303c)||(console[_0x46ae7b(0x230)](_0x46ae7b(0x206)+_0x25303c+'.\x20Use\x20'+pe[_0x46ae7b(0x359)](_0x46ae7b(0x277))+'.'),process[_0x46ae7b(0x21f)](0x2)),_0x19d161[_0x46ae7b(0x1b7)]=_0x25303c;break;}case'--tenant':{let _0x1d83e9=_0x5f46fe[++_0x591941];(!_0x1d83e9||_0x1d83e9[_0x46ae7b(0x1ca)]('--'))&&(console[_0x46ae7b(0x230)]('--tenant\x20requires\x20a\x20tenant\x20name.'),process[_0x46ae7b(0x21f)](0x2)),_0x19d161[_0x46ae7b(0x257)]=_0x1d83e9;break;}case _0x46ae7b(0x322):{let _0x38c661=_0x5f46fe[++_0x591941];[_0x46ae7b(0x2e1),_0x46ae7b(0x2f1),'production',_0x46ae7b(0x28e)]['includes'](_0x38c661)||(console[_0x46ae7b(0x230)](_0x46ae7b(0x1d4)+_0x38c661+_0x46ae7b(0x1d7)),process[_0x46ae7b(0x21f)](0x2)),_0x19d161[_0x46ae7b(0x342)]=_0x38c661;break;}case'--url':case _0x46ae7b(0x1ec):{let _0x1475ec=b(_0x5f46fe,++_0x591941,_0x2d9ed6,_0x46ae7b(0x299)),_0xd2d849=_0x746b13(_0x1475ec);if(_0xd2d849['ok']===!0x1){console[_0x46ae7b(0x230)](_0x35347b(_0x1475ec,_0xd2d849[_0x46ae7b(0x23c)])),process[_0x46ae7b(0x21f)](0x2);break;}_0x19d161[_0x46ae7b(0x269)]=_0xd2d849[_0x46ae7b(0x270)];break;}case _0x46ae7b(0x17c):_0x19d161[_0x46ae7b(0x25e)]=!0x0;break;case'-h':case'--help':_0x19d161[_0x46ae7b(0x1b4)]=!0x0;break;case'-v':case _0x46ae7b(0x1e7):_0x19d161[_0x46ae7b(0x281)]=!0x0;break;default:_0x2d9ed6[_0x46ae7b(0x1ca)]('--')&&(console['error'](_0x46ae7b(0x344)+_0x2d9ed6),process[_0x46ae7b(0x21f)](0x2)),_0x3f3212[_0x46ae7b(0x36f)](_0x2d9ed6);}}return _0x19d161[_0x46ae7b(0x257)]!==void 0x0&&_0x19d161[_0x46ae7b(0x1f2)]!==_0x46ae7b(0x1ab)&&(console[_0x46ae7b(0x230)]('--tenant\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Switch\x20tenants\x20with:\x20delegate-cli\x20tenant\x20<name>'),process[_0x46ae7b(0x21f)](0x2)),_0x19d161[_0x46ae7b(0x269)]!==void 0x0&&_0x19d161[_0x46ae7b(0x342)]!==void 0x0&&(console['error'](_0x46ae7b(0x1a7)),process[_0x46ae7b(0x21f)](0x2)),_0x19d161['url']!==void 0x0&&_0x19d161[_0x46ae7b(0x1f2)]!=='login'&&(console['error'](_0x46ae7b(0x162)),process[_0x46ae7b(0x21f)](0x2)),_0x19d161[_0x46ae7b(0x36c)]!==void 0x0&&_0x19d161['subcommand']!==_0x46ae7b(0x373)&&(console[_0x46ae7b(0x230)](_0x46ae7b(0x1ea)),process['exit'](0x2)),_0x19d161['jsonSchemaPath']!==void 0x0&&(_0x19d161['subcommand']!==_0x46ae7b(0x1f3)&&_0x19d161[_0x46ae7b(0x1f2)]!==''||_0x19d161['cleanup'])&&(console[_0x46ae7b(0x230)](_0x46ae7b(0x256)),process[_0x46ae7b(0x21f)](0x2)),_0x19d161['attachments']['length']>0x0&&(_0x19d161['subcommand']!==''||_0x19d161[_0x46ae7b(0x217)])&&(console[_0x46ae7b(0x230)](_0x46ae7b(0x31b)),process['exit'](0x2)),_0x19d161[_0x46ae7b(0x31c)]&&(_0x19d161[_0x46ae7b(0x1f2)]!==''||_0x19d161[_0x46ae7b(0x217)])&&(console[_0x46ae7b(0x230)](_0x46ae7b(0x262)),process[_0x46ae7b(0x21f)](0x2)),_0x19d161['taskAutomation']&&(_0x19d161[_0x46ae7b(0x2cc)]||_0x19d161['noComputerUse']||_0x19d161[_0x46ae7b(0x22b)]?.['trim']()===B)&&(console[_0x46ae7b(0x230)](_0x46ae7b(0x2e5)),process[_0x46ae7b(0x21f)](0x2)),_0x19d161[_0x46ae7b(0x274)]&&(_0x19d161[_0x46ae7b(0x22b)]!==void 0x0&&_0x19d161[_0x46ae7b(0x22b)][_0x46ae7b(0x1ae)]()!==B&&(console[_0x46ae7b(0x230)]('--cartographer\x20runs\x20the\x20'+B+'\x20vertical,\x20so\x20it\x20cannot\x20run\x20as\x20--vertical\x20'+_0x19d161[_0x46ae7b(0x22b)]+'.\x20Drop\x20one\x20of\x20the\x20two.'),process[_0x46ae7b(0x21f)](0x2)),_0x19d161[_0x46ae7b(0x22b)]=B),_0x19d161[_0x46ae7b(0x25e)]&&_0x19d161[_0x46ae7b(0x1f2)]!=='login'&&(console[_0x46ae7b(0x230)](_0x46ae7b(0x2d0)),process[_0x46ae7b(0x21f)](0x2)),_0x19d161[_0x46ae7b(0x283)]!==_0x46ae7b(0x315)&&!ue['includes'](_0x19d161[_0x46ae7b(0x1f2)])&&(console[_0x46ae7b(0x230)](_0x46ae7b(0x305)+_0x19d161[_0x46ae7b(0x283)]+'\x20applies\x20to\x20prompts\x20and\x20to\x20these\x20commands\x20only:\x20'+ue[_0x46ae7b(0x19c)](Boolean)['join'](',\x20')+'.'),process[_0x46ae7b(0x21f)](0x2)),(_0x19d161[_0x46ae7b(0x324)]!=='text'||_0x19d161['replayUserMessages'])&&_0x19d161[_0x46ae7b(0x1f2)]!==''&&(console['error']('--input-format\x20and\x20--replay-user-messages\x20apply\x20to\x20prompts\x20only.'),process[_0x46ae7b(0x21f)](0x2)),_0x19d161['replayUserMessages']&&_0x19d161[_0x46ae7b(0x324)]!=='stream-json'&&(console[_0x46ae7b(0x230)](_0x46ae7b(0x2b4)),process[_0x46ae7b(0x21f)](0x2)),_0x19d161['inputFormat']===_0x46ae7b(0x168)&&_0x19d161[_0x46ae7b(0x283)]!=='stream-json'&&(console[_0x46ae7b(0x230)](_0x46ae7b(0x247)),process[_0x46ae7b(0x21f)](0x2)),(_0x19d161[_0x46ae7b(0x176)]!==void 0x0||_0x19d161[_0x46ae7b(0x2cf)]!==void 0x0||_0x19d161[_0x46ae7b(0x1de)])&&_0x19d161['subcommand']!=='sessions'&&(console['error'](_0x46ae7b(0x2fd)),process[_0x46ae7b(0x21f)](0x2)),(_0x19d161[_0x46ae7b(0x190)]!==void 0x0||_0x19d161[_0x46ae7b(0x348)]!==void 0x0)&&_0x19d161['subcommand']!=='delegations'&&(console[_0x46ae7b(0x230)](_0x46ae7b(0x2e6)),process[_0x46ae7b(0x21f)](0x2)),_0x19d161[_0x46ae7b(0x330)]!==void 0x0&&_0x19d161[_0x46ae7b(0x1f2)]!==_0x46ae7b(0x2fc)&&(console[_0x46ae7b(0x230)](_0x46ae7b(0x355)),process[_0x46ae7b(0x21f)](0x2)),(_0x19d161[_0x46ae7b(0x183)]!==void 0x0||_0x19d161['mapName']!==void 0x0)&&(_0x19d161[_0x46ae7b(0x1f2)]!==_0x46ae7b(0x226)||_0x3f3212[0x0]!==_0x46ae7b(0x2bb))&&(console[_0x46ae7b(0x230)](_0x46ae7b(0x2c9)),process[_0x46ae7b(0x21f)](0x2)),_0x19d161[_0x46ae7b(0x2ee)]=[...new Set(_0x19d161[_0x46ae7b(0x2ee)])],_0x19d161[_0x46ae7b(0x1b0)]=_0x3f3212,_0x19d161[_0x46ae7b(0x2f4)]=_0x3f3212[_0x46ae7b(0x359)]('\x20'),_0x19d161['inputFormat']===_0x46ae7b(0x168)&&_0x19d161[_0x46ae7b(0x2f4)]!==''&&(console[_0x46ae7b(0x230)](_0x46ae7b(0x175)),process[_0x46ae7b(0x21f)](0x2)),_0x19d161;}var L=_0x38a57c=>{const _0x25cd32=_0x2de101;process[_0x25cd32(0x266)][_0x25cd32(0x233)](_0x38a57c);};function Xt(){const _0x136a0f=_0x2de101;let _0x5c6cdd=process[_0x136a0f(0x266)]['write'],_0x5e515e=_0x5c6cdd[_0x136a0f(0x2d7)](process['stdout']),_0x4b6ff8=L;return L=_0x49d075=>{_0x5e515e(_0x49d075);},process[_0x136a0f(0x266)][_0x136a0f(0x233)]=(..._0x148af9)=>process[_0x136a0f(0x19f)]['write'](..._0x148af9),()=>{const _0x57f04e=_0x136a0f;process['stdout'][_0x57f04e(0x233)]=_0x5c6cdd,L=_0x4b6ff8;};}function m(_0x2e26eb,_0x565ebc,_0x56bb3d){if(_0x2e26eb['outputFormat']==='text'){_0x56bb3d(_0x565ebc);return;}L(_0x218547(_0x565ebc));}function Zt(){const _0x52de11=_0x2de101;let _0x2a71a9=_0x52de11(0x20f)[_0x52de11(0x1ae)]();console[_0x52de11(0x291)](_0x2a71a9);}function en(){const _0x15d59a=_0x2de101;try{return JSON[_0x15d59a(0x178)](_0x136c59[_0x15d59a(0x303)](_0x431b1e[_0x15d59a(0x359)](__dirname,'..',_0x15d59a(0x160)),_0x15d59a(0x338)))[_0x15d59a(0x281)]||_0x15d59a(0x243);}catch{return _0x15d59a(0x243);}}var tn=0x7d0;async function me(_0x1149fc,_0x12ea9b){const _0x498a69=_0x2de101;let _0x4ea783=_0x12ea9b?[_0x12ea9b]:[];for await(let _0xb3a26f of _0x1149fc)_0x4ea783[_0x498a69(0x36f)](Buffer[_0x498a69(0x1b2)](_0xb3a26f));return Buffer[_0x498a69(0x36e)](_0x4ea783)[_0x498a69(0x260)](_0x498a69(0x338))[_0x498a69(0x1ae)]();}function nn(_0xa988a5,_0x6e229c){return new Promise(_0x30239b=>{const _0x23abcf=_0x2ffd;let _0x5ecbea=_0x3efc56=>{const _0x3153f3=_0x2ffd;clearTimeout(_0x25d18b),_0xa988a5['off']('data',_0x35aca7),_0xa988a5['off'](_0x3153f3(0x27e),_0x3f396a),_0xa988a5[_0x3153f3(0x37c)](_0x3153f3(0x230),_0x3f396a),_0xa988a5['pause'](),_0x30239b(_0x3efc56);},_0x35aca7=_0x11bbe7=>_0x5ecbea(Buffer[_0x23abcf(0x1b2)](_0x11bbe7)),_0x3f396a=()=>_0x5ecbea(null),_0x25d18b=setTimeout(()=>_0x5ecbea(null),_0x6e229c);_0xa988a5['on'](_0x23abcf(0x265),_0x35aca7),_0xa988a5['on'](_0x23abcf(0x27e),_0x3f396a),_0xa988a5['on'](_0x23abcf(0x230),_0x3f396a),_0xa988a5[_0x23abcf(0x316)]();});}async function J(_0x57c5aa,_0x14424c,_0x45eae4=tn){let _0x23df8d=_0x57c5aa==='-';if(!_0x23df8d&&_0x57c5aa)return _0x57c5aa;if(!_0x23df8d&&_0x14424c['isTTY'])return'';if(_0x23df8d)return me(_0x14424c,null);let _0x433c5e=await nn(_0x14424c,_0x45eae4);return _0x433c5e?me(_0x14424c,_0x433c5e):'';}function Y(){const _0x935b8a=_0x2de101;return _0x431b1e['join'](process.env.HOME||process.env.USERPROFILE||'','.aria',_0x935b8a(0x28b));}function G(_0x55b0a6){const _0x595fe1=_0x2de101;try{let _0x2258b4=JSON[_0x595fe1(0x178)](_0x136c59[_0x595fe1(0x303)](_0x55b0a6,_0x595fe1(0x338)));return!_0x2258b4[_0x595fe1(0x2b5)]||!_0x2258b4[_0x595fe1(0x32f)]||!_0x2258b4[_0x595fe1(0x26d)]?null:_0x2258b4;}catch{return null;}}function sn(){const _0x492482=_0x2de101;let _0x585ee9=[{'file':_0x5c2737(),'isDesktopFallback':!0x1},{'file':Y(),'isDesktopFallback':!0x0}];for(let _0x4096ed of _0x585ee9){let _0x35d63a=G(_0x4096ed[_0x492482(0x2d9)]);if(_0x35d63a)return{..._0x4096ed,'auth':_0x35d63a};}return null;}async function on(){const _0x2923df=_0x2de101;let _0x393533=_0x5c2737();if(!_0x136c59[_0x2923df(0x221)](_0x393533)){let _0x3a45bd=Y();console[_0x2923df(0x291)](G(_0x3a45bd)?_0x2923df(0x1a8)+_0x3a45bd+'\x20—\x20sign\x20out\x20in\x20the\x20Delegate\x20app\x20to\x20clear\x20that.':_0x2923df(0x1f7));return;}_0x136c59['rmSync'](_0x393533),console[_0x2923df(0x291)](_0x2923df(0x2ba)+_0x393533);}async function rn(_0x247869){const _0x390d84=_0x2de101;let _0x1f3adb=z(),_0x2ba242,_0x585be8;if(_0x1f3adb)_0x2ba242=_0x1f3adb,_0x585be8=_0x390d84(0x20a);else{let _0x518fed=sn();if(!_0x518fed)throw new Error(Ne);_0x2ba242=_0x518fed[_0x390d84(0x244)],_0x585be8=_0x518fed['isDesktopFallback']?_0x518fed['file']+_0x390d84(0x273):_0x518fed[_0x390d84(0x2d9)];}let _0x11a3ab={'source':_0x585be8,'baseUrl':_0x2ba242[_0x390d84(0x270)]??null,'deployment':an(_0x2ba242['baseUrl']),'organization':{'id':_0x2ba242['organizationId'],'slug':_0x2ba242['orgLogicalName']??null},'tenant':{'id':_0x2ba242[_0x390d84(0x32f)],'name':_0x2ba242['tenantName']??null},'tokenExpiresAt':_0x2ba242[_0x390d84(0x1c2)]?new Date(_0x2ba242['expiresAt']*0x3e8)[_0x390d84(0x334)]():null};m(_0x247869,_0x11a3ab,()=>{const _0x4cbde0=_0x390d84;let _0x429934=['Source:\x20\x20\x20\x20\x20\x20\x20'+_0x585be8,_0x4cbde0(0x374)+(_0x2ba242['baseUrl']??_0x4cbde0(0x243)),_0x4cbde0(0x36b)+_0x11a3ab[_0x4cbde0(0x161)],_0x4cbde0(0x288)+(_0x2ba242[_0x4cbde0(0x1f5)]??_0x4cbde0(0x172))+'\x20('+_0x2ba242[_0x4cbde0(0x26d)]+')',_0x4cbde0(0x232)+(_0x2ba242[_0x4cbde0(0x311)]??_0x4cbde0(0x172))+'\x20('+_0x2ba242[_0x4cbde0(0x32f)]+')'];if(_0x2ba242[_0x4cbde0(0x1c2)]){let _0x4f6b35=_0x2ba242['expiresAt']-Math['floor'](Date[_0x4cbde0(0x33b)]()/0x3e8);_0x429934[_0x4cbde0(0x36f)](_0x4f6b35>0x0?_0x4cbde0(0x2cd)+_0x11a3ab[_0x4cbde0(0x300)]+_0x4cbde0(0x320)+Math[_0x4cbde0(0x1f9)](_0x4f6b35/0x3c)+_0x4cbde0(0x278):_0x4cbde0(0x1ac)+_0x11a3ab[_0x4cbde0(0x300)]);}process[_0x4cbde0(0x266)][_0x4cbde0(0x233)](_0x429934[_0x4cbde0(0x359)]('\x0a')+'\x0a');});}var Ne=_0x2de101(0x201);function an(_0x3160e5){const _0x4f7497=_0x2de101;return _0x3160e5?_0x5ec1af(_0x3160e5)?'UiPath\x20Cloud':_0x4f7497(0x24b):_0x4f7497(0x243);}function z(){let _0x24c2ad=process.env.AUTH_TOKEN_FILE;return(process.env.AUTH_TOKEN||_0x24c2ad)&&process.env.TENANT_ID&&process.env.ORG_ID?{'accessToken':_0x24c2ad?ln(_0x24c2ad):process.env.AUTH_TOKEN,..._0x24c2ad?{'accessTokenFile':_0x24c2ad}:{},'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(_0x1df5f3){const _0xb3a474=_0x2de101;let _0x97dbc3;try{_0x97dbc3=_0x136c59[_0xb3a474(0x303)](_0x1df5f3,_0xb3a474(0x338))[_0xb3a474(0x1ae)]();}catch(_0x284393){throw new Error(_0xb3a474(0x2ac)+_0x1df5f3+'\x27\x20cannot\x20be\x20read:\x20'+_0x284393[_0xb3a474(0x30d)]);}let _0x15f575=_0x97dbc3[_0xb3a474(0x1ca)](_0xb3a474(0x35b))?_0x97dbc3['slice'](0x7)['trim']():_0x97dbc3;if(!_0x15f575)throw new Error('AUTH_TOKEN_FILE\x20\x27'+_0x1df5f3+_0xb3a474(0x347));return _0x15f575;}function Pe(){const _0x304931=_0x2de101;let _0x45deaa=process.env.UIPATH_BASE_URL;if(!_0x45deaa)return;let _0x51f803=_0x746b13(_0x45deaa);if(_0x51f803['ok']===!0x1)throw new Error(_0x304931(0x204)+_0x35347b(_0x45deaa,_0x51f803[_0x304931(0x23c)]));return _0x51f803[_0x304931(0x270)];}async function V(){let _0xc8bded=z();if(_0xc8bded)return _0xc8bded;let _0x44f81f=await _0x277308();if(_0x44f81f)return _0x44f81f;throw new Error(Ne);}async function cn(){const _0x127606=_0x2de101;await new _0x1054fa()[_0x127606(0x2a0)]({'force':!0x0}),console[_0x127606(0x291)](_0x127606(0x19e));}function X(_0x4cb48f,_0x52870e,_0x12a624){const _0x3b7301=_0x2de101;_0x4cb48f?process['stderr'][_0x3b7301(0x233)]('[env='+_0x4cb48f+']\x20Backend\x20URL:\x20'+_0x12a624+'\x0a'):!_0x52870e&&!process.env.BACKEND_URL&&process[_0x3b7301(0x19f)][_0x3b7301(0x233)](_0x3b7301(0x2d1)+_0x12a624+'\x0a');}async function x(_0x3b2139){const _0x528bf7=_0x2de101;let _0x4bb160=await V(),_0x21acf3=_0x1447c8(_0x3b2139[_0x528bf7(0x342)],_0x4bb160,_0x3b2139[_0x528bf7(0x1c7)]);return X(_0x3b2139[_0x528bf7(0x342)],_0x3b2139[_0x528bf7(0x1c7)],_0x21acf3),{'auth':_0x4bb160,'backendUrl':_0x21acf3,'client':_0x521ab1({'auth':_0x4bb160,'backendUrl':_0x21acf3})};}async function dn(_0x3645a4){const _0x578187=_0x2de101;let {client:_0x29e090}=await x(_0x3645a4),[_0x45fe43,_0x54e306]=await Promise[_0x578187(0x309)]([_0x305441(_0x29e090),_0x51baef(_0x29e090)[_0x578187(0x317)](_0x22cb89=>(process['stderr'][_0x578187(0x233)](_0x578187(0x276)+(_0x22cb89 instanceof Error?_0x22cb89[_0x578187(0x30d)]:String(_0x22cb89))+'\x0a'),{}))]),_0x5502f9=_0x45fe43[_0x578187(0x1a4)](_0x34fea8=>_0x54e306[_0x34fea8['id']]?{..._0x34fea8,'byoWarning':_0x54e306[_0x34fea8['id']]}:_0x34fea8);m(_0x3645a4,_0x5502f9,un);}function un(_0xa8f73d){const _0x3223d3=_0x2de101;if(_0xa8f73d['length']===0x0){process[_0x3223d3(0x19f)][_0x3223d3(0x233)](_0x3223d3(0x1fd));return;}process['stdout']['write'](_0x3223d3(0x1a9)+_0xa8f73d[_0x3223d3(0x308)]+_0x3223d3(0x378));for(let _0x3f112c of _0xa8f73d){let _0x48cf7e=_0x3f112c[_0x3223d3(0x26e)]&&_0x3f112c[_0x3223d3(0x26e)]!==_0x3f112c['id']?'\x20('+_0x3f112c['name']+')':'';process[_0x3223d3(0x266)][_0x3223d3(0x233)]('\x20\x20'+_0x3f112c['id']+_0x48cf7e+'\x0a'),_0x3f112c[_0x3223d3(0x367)]&&process[_0x3223d3(0x266)][_0x3223d3(0x233)](_0x3223d3(0x2f9)+_0x3f112c[_0x3223d3(0x367)]+'\x0a'),_0x3f112c[_0x3223d3(0x302)]&&process[_0x3223d3(0x266)][_0x3223d3(0x233)]('\x20\x20\x20\x20Not\x20available\x20on\x20this\x20plan'+(_0x3f112c[_0x3223d3(0x196)]?'\x20('+_0x3f112c[_0x3223d3(0x196)]+')':'')+'\x0a'),_0x3f112c[_0x3223d3(0x341)]&&process[_0x3223d3(0x266)][_0x3223d3(0x233)](_0x3223d3(0x2b8)+_0x3f112c['byoWarning']+'\x0a');}process[_0x3223d3(0x266)][_0x3223d3(0x233)](_0x3223d3(0x337));}var fe=['list',_0x2de101(0x2d5),_0x2de101(0x1d9),_0x2de101(0x349),_0x2de101(0x1b1),_0x2de101(0x314)];function _0x2ffd(_0x5a3aca,_0x4caaa1){_0x5a3aca=_0x5a3aca-0x15c;const _0x125264=_0x1252();let _0x2ffd46=_0x125264[_0x5a3aca];return _0x2ffd46;}async function pn(_0x27d36e){const _0x378865=_0x2de101;let [_0x21de97='',_0x2137cd='',..._0x3a93f5]=_0x27d36e[_0x378865(0x1b0)];if(_0x21de97&&!fe[_0x378865(0x34d)](_0x21de97)&&(console[_0x378865(0x230)]('Unknown\x20sessions\x20action:\x20'+_0x21de97+'.\x20Use:\x20'+fe[_0x378865(0x359)](_0x378865(0x277))+'.'),process[_0x378865(0x21f)](0x2)),_0x27d36e[_0x378865(0x330)]!==void 0x0&&_0x21de97!==_0x378865(0x1b1)&&(console[_0x378865(0x230)]('--turn\x20applies\x20to\x20`delegate-cli\x20sessions\x20cancel`\x20only.'),process[_0x378865(0x21f)](0x2)),_0x21de97&&_0x21de97!=='list'){await mn(_0x27d36e,_0x21de97,_0x2137cd,_0x3a93f5[_0x378865(0x359)]('\x20')['trim']());return;}_0x27d36e[_0x378865(0x1b0)][_0x378865(0x308)]>0x1&&(console[_0x378865(0x230)](_0x378865(0x208)),process[_0x378865(0x21f)](0x2));let {client:_0x1ba3a2}=await x(_0x27d36e),_0x17af04=await _0xc781c9(_0x1ba3a2,{'page':_0x27d36e[_0x378865(0x176)],'pageSize':_0x27d36e[_0x378865(0x2cf)],'includeSubAgents':_0x27d36e['includeSubAgents']});m(_0x27d36e,_0x17af04,yn);}async function mn(_0x5ca359,_0x752ace,_0x8fbcbf,_0x3a4867){const _0x2293a6=_0x2de101;if((_0x5ca359[_0x2293a6(0x176)]!==void 0x0||_0x5ca359[_0x2293a6(0x2cf)]!==void 0x0||_0x5ca359[_0x2293a6(0x1de)])&&(console['error'](_0x2293a6(0x284)),process[_0x2293a6(0x21f)](0x2)),_0x752ace==='cancel'){await gn(_0x5ca359,_0x8fbcbf,_0x3a4867);return;}if(_0x752ace==='fork'){await hn(_0x5ca359,_0x8fbcbf,_0x3a4867);return;}(!_0x8fbcbf||_0x752ace===_0x2293a6(0x1d9)!=!!_0x3a4867)&&(console[_0x2293a6(0x230)](_0x2293a6(0x1c0)+_0x752ace+_0x2293a6(0x2c7)+(_0x752ace===_0x2293a6(0x1d9)?_0x2293a6(0x1a1):'')),process['exit'](0x2));let {client:_0x2c2264}=await x(_0x5ca359);try{if(_0x752ace===_0x2293a6(0x2d5)){let _0x2c0444=await _0x4cca1b(_0x2c2264,_0x8fbcbf);_0x2c0444||ge(_0x8fbcbf),m(_0x5ca359,_0x2c0444,fn);}else{if(_0x752ace===_0x2293a6(0x1d9)){let _0x412acf=await _0x56a7d1(_0x2c2264,_0x8fbcbf,_0x3a4867);m(_0x5ca359,_0x412acf,_0xcb157d=>{const _0x708a7e=_0x2293a6;process['stdout'][_0x708a7e(0x233)]('Renamed\x20'+_0xcb157d['id']+':\x20'+_0xcb157d[_0x708a7e(0x33e)]+'\x0a');});}else await _0x12eed4(_0x2c2264,_0x8fbcbf),await _0x26539d(_0x8fbcbf,_0x5ca359[_0x2293a6(0x2bd)]),m(_0x5ca359,{'id':_0x8fbcbf,'deleted':!0x0},_0x236d39=>{const _0x5bf46d=_0x2293a6;process[_0x5bf46d(0x266)]['write']('Deleted\x20session\x20'+_0x236d39['id']+'.\x0a');});}}catch(_0x1214a1){if(!_0x1370b3(_0x1214a1,0x194))throw _0x1214a1;ge(_0x8fbcbf);}}function ge(_0x7acc06){const _0xd8ca30=_0x2de101;console[_0xd8ca30(0x230)](_0xd8ca30(0x2b7)+_0x7acc06+'\x20not\x20found.'),process['exit'](0x1);}function fn(_0x505a56){const _0x24ea03=_0x2de101;process[_0x24ea03(0x266)][_0x24ea03(0x233)](_0x24ea03(0x209)+_0x505a56['id']+'\x0a'),process['stdout'][_0x24ea03(0x233)](_0x24ea03(0x2b0)+_0x505a56[_0x24ea03(0x33e)]+'\x0a'),process[_0x24ea03(0x266)][_0x24ea03(0x233)](_0x24ea03(0x27a)+_0x505a56['userId']+'\x0a'),process[_0x24ea03(0x266)][_0x24ea03(0x233)](_0x24ea03(0x2dc)+_0x505a56['organizationId']+'\x0a'),_0x505a56['delegationId']&&process[_0x24ea03(0x266)][_0x24ea03(0x233)](_0x24ea03(0x37e)+_0x505a56[_0x24ea03(0x1a5)]+'\x0a');}async function gn(_0x1ebb92,_0x57f9ff,_0x51a973){const _0x3b5519=_0x2de101;(!_0x57f9ff||_0x51a973||!_0x1ebb92[_0x3b5519(0x330)])&&(console[_0x3b5519(0x230)]('Usage:\x20delegate-cli\x20sessions\x20cancel\x20<session-id>\x20--turn\x20<turn-id>'),process[_0x3b5519(0x21f)](0x2));let {client:_0x8d17e2}=await x(_0x1ebb92),_0x422aa6=await _0x7817fe(_0x8d17e2,_0x57f9ff,_0x1ebb92[_0x3b5519(0x330)]);m(_0x1ebb92,{'sessionId':_0x57f9ff,'turnId':_0x1ebb92[_0x3b5519(0x330)],'cancelled':_0x422aa6},_0x10c551=>{const _0x1694c9=_0x3b5519;_0x10c551[_0x1694c9(0x377)]?process[_0x1694c9(0x266)]['write'](_0x1694c9(0x205)+_0x10c551['turnId']+_0x1694c9(0x199)+_0x10c551[_0x1694c9(0x295)]+'.\x0a'):process[_0x1694c9(0x19f)][_0x1694c9(0x233)]('No\x20turn\x20'+_0x10c551['turnId']+_0x1694c9(0x34f)+_0x10c551['sessionId']+'.\x0a');}),_0x422aa6||(process['exitCode']=0x1);}async function hn(_0x15d115,_0x141c22,_0x10d2ca){const _0x26e5a0=_0x2de101;(!_0x141c22||/\s/[_0x26e5a0(0x174)](_0x10d2ca))&&(console['error']('Usage:\x20delegate-cli\x20sessions\x20fork\x20<id>\x20[<message-id>]'),process[_0x26e5a0(0x21f)](0x2));let {client:_0x4e02f8}=await x(_0x15d115),_0x236685;try{_0x236685=await _0x21529b(_0x4e02f8,_0x141c22,{'atMessageId':_0x10d2ca||void 0x0});}catch(_0x414442){if(!_0x1370b3(_0x414442,0x194))throw _0x414442;console[_0x26e5a0(0x230)]('Session\x20'+_0x141c22+'\x20not\x20found,\x20has\x20no\x20messages'+(_0x10d2ca?_0x26e5a0(0x329)+_0x10d2ca:'')+'.'),process[_0x26e5a0(0x21f)](0x1);}m(_0x15d115,_0x236685,_0x1034d3=>{const _0x189991=_0x26e5a0;process['stdout'][_0x189991(0x233)](_0x189991(0x16f)+_0x141c22+_0x189991(0x24d)+_0x1034d3['id']+'.\x0a'),process[_0x189991(0x19f)][_0x189991(0x233)](_0x189991(0x1d2)+_0x1034d3['id']+_0x189991(0x1c6));});}function yn({sessions:_0xd70a35,page:_0x837b62,isLastPage:_0x49cec7}){const _0x3a8a06=_0x2de101;if(_0xd70a35['length']===0x0)process[_0x3a8a06(0x19f)][_0x3a8a06(0x233)](_0x3a8a06(0x2de)+_0x837b62+'.\x0a');else{process['stdout'][_0x3a8a06(0x233)]('ID'['padEnd'](0x24)+'\x20\x20'+_0x3a8a06(0x1e8)[_0x3a8a06(0x33c)](0x13)+_0x3a8a06(0x28f));for(let _0x139eb3 of _0xd70a35){let _0x3e695c=_0x139eb3[_0x3a8a06(0x223)][_0x3a8a06(0x23d)]('T','\x20')['slice'](0x0,0x13),_0x2b8e29=_0x139eb3[_0x3a8a06(0x2a2)]?_0x3a8a06(0x25a)+_0x139eb3[_0x3a8a06(0x2a2)]+')':'';process['stdout'][_0x3a8a06(0x233)](_0x139eb3['id'][_0x3a8a06(0x33c)](0x24)+'\x20\x20'+_0x3e695c['padEnd'](0x13)+'\x20\x20'+_0x139eb3[_0x3a8a06(0x33e)]+_0x2b8e29+'\x0a');}}_0x49cec7||process['stderr'][_0x3a8a06(0x233)](_0x3a8a06(0x259)+(_0x837b62+0x1)+'\x0a');}async function wn(_0x48d5dc){const _0x3660da=_0x2de101;let _0x2f58b4=await V(),_0x269312=_0x1447c8(_0x48d5dc[_0x3660da(0x342)],_0x2f58b4,_0x48d5dc[_0x3660da(0x1c7)]);X(_0x48d5dc[_0x3660da(0x342)],_0x48d5dc[_0x3660da(0x1c7)],_0x269312);let _0x36e9ab=await _0x3878dc({'auth':_0x2f58b4,'backendUrl':_0x269312,'interop':_0x48d5dc[_0x3660da(0x2cc)]?'skip':_0x3660da(0x18e)});m(_0x48d5dc,_0x36e9ab,({checks:_0x21a016})=>{const _0x4b0db2=_0x3660da;for(let _0x1e0793 of _0x21a016)process[_0x4b0db2(0x266)][_0x4b0db2(0x233)](kn(_0x1e0793)+'\x0a');}),_0x36e9ab['ok']||process[_0x3660da(0x21f)](0x1);}function kn(_0x4466c5){const _0x4fa8dd=_0x2de101;return{'ok':'✓','failed':'✗','skipped':'-'}[_0x4466c5[_0x4fa8dd(0x18b)]]+'\x20'+_0x4466c5[_0x4fa8dd(0x26e)]['padEnd'](0xa)+_0x4466c5[_0x4fa8dd(0x250)];}var bn=['',_0x2de101(0x326),_0x2de101(0x2b9)];async function vn(_0x5584fd){const _0x35cddc=_0x2de101;let _0x522bd0=_0x5584fd['prompt'];bn['includes'](_0x522bd0)||(console['error'](_0x35cddc(0x182)+_0x5584fd[_0x35cddc(0x2f4)]+_0x35cddc(0x249)),process[_0x35cddc(0x21f)](0x2)),_0x522bd0===''&&_0x5584fd['days']!==void 0x0&&(console[_0x35cddc(0x230)](_0x35cddc(0x207)),process['exit'](0x2)),_0x522bd0!==''&&_0x5584fd[_0x35cddc(0x295)]!==void 0x0&&(console[_0x35cddc(0x230)](_0x35cddc(0x194)),process[_0x35cddc(0x21f)](0x2));let {client:_0x26fc5e}=await x(_0x5584fd);if(_0x522bd0===_0x35cddc(0x326)){m(_0x5584fd,await _0x34dac0(_0x26fc5e,{'days':_0x5584fd[_0x35cddc(0x36c)]}),An);return;}if(_0x522bd0===_0x35cddc(0x2b9)){m(_0x5584fd,await _0x3a8aca(_0x26fc5e,{'days':_0x5584fd['days']}),En);return;}let [_0x1bd71d,_0x56dbf2]=await Promise['all']([_0x38893c(_0x26fc5e,{'sessionId':_0x5584fd[_0x35cddc(0x295)]}),_0x400e89(_0x26fc5e)]);m(_0x5584fd,{'licensing':_0x1bd71d,'monthlySpending':_0x56dbf2},Sn);}function Sn(_0x134752){const _0x4722fe=_0x2de101;let {licensing:_0x191599,monthlySpending:_0x2a9195}=_0x134752,_0x26b6f8=[_0x191599[_0x4722fe(0x35c)]?_0x4722fe(0x35d)+_0x191599['pct_used'][_0x4722fe(0x290)](0x1)+_0x4722fe(0x16a)+(_0x191599[_0x4722fe(0x237)]??0x0)+_0x4722fe(0x25f)+(_0x191599[_0x4722fe(0x1f6)]>0x0?',\x20'+_0x191599[_0x4722fe(0x1f6)]+_0x4722fe(0x198):'')+_0x4722fe(0x361)+_0x191599['period_end']+')':_0x4722fe(0x2be),'Spending:\x20\x20\x20\x20\x20$'+_0x2a9195[_0x4722fe(0x345)][_0x4722fe(0x290)](0x2)+'\x20this\x20month'+(_0x2a9195[_0x4722fe(0x35c)]&&_0x2a9195['monthly_limit_usd']!==null?_0x4722fe(0x376)+_0x2a9195['monthly_limit_usd'][_0x4722fe(0x290)](0x2)+'\x20cap':_0x4722fe(0x286))];_0x191599['session_consumed_pu']!==null&&_0x191599['session_consumed_pu']!==void 0x0&&_0x26b6f8[_0x4722fe(0x36f)]('Session:\x20\x20\x20\x20\x20\x20'+_0x191599[_0x4722fe(0x227)]+_0x4722fe(0x26f)),process[_0x4722fe(0x266)][_0x4722fe(0x233)](_0x26b6f8[_0x4722fe(0x359)]('\x0a')+'\x0a');}function An(_0x1210cd){const _0x492200=_0x2de101;let _0x3791e7=[_0x492200(0x15f)+_0x1210cd['period_days']+_0x492200(0x2e2)+_0x1210cd[_0x492200(0x2ca)]+'\x20sessions\x20on\x20'+_0x1210cd['active_days']+'\x20active\x20days','Cost:\x20\x20\x20$'+_0x1210cd[_0x492200(0x27f)][_0x492200(0x290)](0x2)+_0x492200(0x169)+_0x1210cd[_0x492200(0x298)][_0x492200(0x290)](0x2)+_0x492200(0x28c)+_0x1210cd[_0x492200(0x2a4)]+_0x492200(0x34c),'Tokens:\x20'+_0x1210cd[_0x492200(0x31e)]+_0x492200(0x318)+_0x1210cd['total_completion_tokens']+_0x492200(0x2ed)];for(let [_0x1b126e,_0x4650eb]of Object['entries'](_0x1210cd[_0x492200(0x16d)]))_0x3791e7[_0x492200(0x36f)]('\x20\x20'+_0x1b126e+':\x20'+_0x4650eb+_0x492200(0x1fe));process[_0x492200(0x266)]['write'](_0x3791e7['join']('\x0a')+'\x0a');}function En(_0x1b49cc){const _0x4aa4c8=_0x2de101;if(_0x1b49cc[_0x4aa4c8(0x253)][_0x4aa4c8(0x308)]===0x0){process[_0x4aa4c8(0x266)][_0x4aa4c8(0x233)](_0x4aa4c8(0x32a)+_0x1b49cc[_0x4aa4c8(0x1ef)]+_0x4aa4c8(0x18c));return;}let _0x3bf9a5=[_0x4aa4c8(0x325)];for(let _0x35f78b of _0x1b49cc[_0x4aa4c8(0x253)])_0x3bf9a5['push'](_0x35f78b[_0x4aa4c8(0x27b)]+'\x20\x20'+String(_0x35f78b[_0x4aa4c8(0x165)])[_0x4aa4c8(0x19a)](0xb)+'\x20\x20'+String(_0x35f78b[_0x4aa4c8(0x34e)])['padStart'](0xd)+'\x20\x20'+String(_0x35f78b['completion_tokens'])[_0x4aa4c8(0x19a)](0x11));process[_0x4aa4c8(0x266)][_0x4aa4c8(0x233)](_0x3bf9a5[_0x4aa4c8(0x359)]('\x0a')+'\x0a');}async function xn(_0x314db5,_0x3938b0){const _0x449887=_0x2de101;let _0x21b1d8=await In(_0x314db5[_0x449887(0x2f4)],_0x3938b0);_0x314db5[_0x449887(0x2c0)]&&(_0x21b1d8[_0x449887(0x2c0)]=_0x314db5[_0x449887(0x2c0)]);let {client:_0x55ef91}=await x(_0x314db5);try{_0x3938b0===_0x449887(0x29f)?m(_0x314db5,await _0x5534db(_0x55ef91,_0x21b1d8,void 0x0),Tn):_0x3938b0==='rerank'?m(_0x314db5,await _0x1f01be(_0x55ef91,_0x21b1d8,void 0x0),Dn):m(_0x314db5,await _0x418e7d(_0x55ef91,_0x21b1d8,void 0x0),Un);}catch(_0x214ecd){if(!_0x56d11b(_0x214ecd))throw _0x214ecd;console[_0x449887(0x230)](_0x214ecd[_0x449887(0x30d)]),process[_0x449887(0x21f)](0x1);}}async function In(_0x22a701,_0x1084f7){const _0x4cb6d6=_0x2de101;let _0x496aa7;try{_0x496aa7=_0x22a701&&_0x22a701!=='-'?_0x136c59['readFileSync'](_0x431b1e['resolve'](_0x22a701),_0x4cb6d6(0x338)):await J(_0x22a701,process[_0x4cb6d6(0x328)]);}catch(_0x14cd6a){console[_0x4cb6d6(0x230)](_0x1084f7+_0x4cb6d6(0x2b1)+_0x14cd6a['message']+').'),process[_0x4cb6d6(0x21f)](0x2);}return _0x496aa7||(console['error'](_0x1084f7+_0x4cb6d6(0x358)+_0x1084f7+_0x4cb6d6(0x241)),process[_0x4cb6d6(0x21f)](0x2)),_e(_0x496aa7,_0x1084f7,_0x4cb6d6(0x2cb));}function _e(_0x5822f6,_0x4c3cdf,_0x367e63){const _0x17d812=_0x2de101;let _0x50a8ee;try{_0x50a8ee=JSON[_0x17d812(0x178)](_0x5822f6);}catch(_0x29c2ab){console[_0x17d812(0x230)](_0x4c3cdf+':\x20'+_0x367e63+_0x17d812(0x177)+_0x29c2ab['message']+').'),process['exit'](0x2);}return(typeof _0x50a8ee!=_0x17d812(0x1cb)||_0x50a8ee===null||Array['isArray'](_0x50a8ee))&&(console['error'](_0x4c3cdf+':\x20'+_0x367e63+'\x20must\x20be\x20a\x20JSON\x20object.'),process[_0x17d812(0x21f)](0x2)),_0x50a8ee;}function Re(_0x4ed55b,_0x4168b7){const _0x2bfb77=_0x2de101;let _0xe60935;try{_0xe60935=_0x136c59[_0x2bfb77(0x303)](_0x431b1e['resolve'](_0x4ed55b),_0x2bfb77(0x338));}catch(_0x279a09){console[_0x2bfb77(0x230)](_0x4168b7+_0x2bfb77(0x34b)+_0x279a09[_0x2bfb77(0x30d)]+').'),process[_0x2bfb77(0x21f)](0x2);}return _e(_0xe60935,_0x4168b7,_0x2bfb77(0x357));}async function $n(_0x54900e){const _0x293698=_0x2de101;_0x54900e[_0x293698(0x2b6)]===void 0x0&&(console[_0x293698(0x230)](_0x293698(0x184)),process[_0x293698(0x21f)](0x2));let _0x44cab1=Re(_0x54900e[_0x293698(0x2b6)],_0x293698(0x1f3)),_0x26a77e=(await J(_0x54900e[_0x293698(0x2f4)],process[_0x293698(0x328)]))[_0x293698(0x1ae)]();_0x26a77e||(console[_0x293698(0x230)](_0x293698(0x22f)),process[_0x293698(0x21f)](0x2));let {client:_0x5d99d1}=await x(_0x54900e);try{let _0x588b70=await _0x2fcacf(_0x5d99d1,{'prompt':_0x26a77e,'jsonSchema':_0x44cab1,'model':_0x54900e['model']||process.env.MODEL||_0x55afce,..._0x54900e[_0x293698(0x295)]!==void 0x0&&{'sessionId':_0x54900e[_0x293698(0x295)]}},void 0x0);m(_0x54900e,_0x588b70,_0x46c2ab=>{const _0x6c3e43=_0x293698;process[_0x6c3e43(0x266)][_0x6c3e43(0x233)](JSON[_0x6c3e43(0x2ae)](_0x46c2ab[_0x6c3e43(0x17a)],null,0x2)+'\x0a');});}catch(_0x56f5e1){if(!_0x2bc001(_0x56f5e1))throw _0x56f5e1;console[_0x293698(0x230)](_0x56f5e1['message']),process['exit'](0x1);}}function Z(_0x564fc4){const _0x2ed8c1=_0x2de101;process[_0x2ed8c1(0x266)][_0x2ed8c1(0x233)](_0x2ed8c1(0x323)+_0x564fc4[_0x2ed8c1(0x2c0)]+'\x20('+_0x564fc4['model_version']+_0x2ed8c1(0x195)+_0x564fc4['usage'][_0x2ed8c1(0x1f4)]+'\x20tokens\x0a');}function Tn(_0x3e57ec){const _0x2ec3d7=_0x2de101;Z(_0x3e57ec);for(let _0x48d314 of Object[_0x2ec3d7(0x2f3)](_0x3e57ec['answers'])){let _0x16ef40=_0x3e57ec[_0x2ec3d7(0x20b)][_0x48d314],_0x1b0cab=_0x16ef40[_0x2ec3d7(0x2e8)]===_0x2ec3d7(0x285)?_0x2ec3d7(0x219)+_0x16ef40[_0x2ec3d7(0x285)][_0x2ec3d7(0x290)](0x2):_0x16ef40[_0x2ec3d7(0x2e8)]===_0x2ec3d7(0x2fb)?'choice\x20'+_0x16ef40[_0x2ec3d7(0x2fb)]+'\x20(confidence\x20'+_0x16ef40[_0x2ec3d7(0x2e7)][_0x2ec3d7(0x290)](0x2)+')':'score\x20'+_0x16ef40['score'][_0x2ec3d7(0x290)](0x2)+_0x2ec3d7(0x36d)+_0x16ef40[_0x2ec3d7(0x2e7)][_0x2ec3d7(0x290)](0x2)+')';process['stdout'][_0x2ec3d7(0x233)]('\x20\x20'+_0x48d314+':\x20'+_0x1b0cab+'\x0a');}}function Dn(_0x3bd749){Z(_0x3bd749),_0x3bd749['results']['forEach']((_0x7db749,_0x4d2c7f)=>{const _0x1337d2=_0x2ffd;process[_0x1337d2(0x266)]['write']('\x20\x20'+(_0x4d2c7f+0x1)+'.\x20'+_0x7db749['id']+'\x20\x20'+_0x7db749[_0x1337d2(0x379)][_0x1337d2(0x290)](0x3)+_0x1337d2(0x343)+_0x7db749['index']+')\x0a');});}function Un(_0x264c5a){const _0x314313=_0x2de101;Z(_0x264c5a),process[_0x314313(0x266)][_0x314313(0x233)]('Rubric\x20'+_0x264c5a[_0x314313(0x1fa)]+'\x0a');for(let _0x1eac8a of _0x264c5a[_0x314313(0x32d)])process[_0x314313(0x266)][_0x314313(0x233)]('\x20\x20'+_0x1eac8a['id']+':\x20'+_0x1eac8a['verdict']+_0x314313(0x36d)+_0x1eac8a[_0x314313(0x2e7)][_0x314313(0x290)](0x2)+')\x0a');}async function Nn(_0x3ec501){const _0x4a670f=_0x2de101;let _0x1e09d0=_0x3ec501[_0x4a670f(0x2f4)]['trim']();_0x1e09d0||(console[_0x4a670f(0x230)](_0x4a670f(0x32e)),process['exit'](0x2));let {client:_0x538495}=await x(_0x3ec501);try{let _0x576265=_0x1e09d0==='-'?{'data':await Rn(process[_0x4a670f(0x328)])}:_0x1e09d0;m(_0x3ec501,await _0x4f8e4c(_0x538495,_0x576265,void 0x0),_0x162a3f=>{const _0x3df296=_0x4a670f;process[_0x3df296(0x266)][_0x3df296(0x233)](_0x162a3f[_0x3df296(0x315)]+'\x0a');});}catch(_0x46769c){if(_0x21b2ce(_0x46769c)&&(console[_0x4a670f(0x230)](_0x46769c[_0x4a670f(0x30d)]),process['exit'](_0x46769c[_0x4a670f(0x18b)]===void 0x0?0x2:0x1)),typeof _0x46769c?.[_0x4a670f(0x189)]!=_0x4a670f(0x29e))throw _0x46769c;console[_0x4a670f(0x230)]('transcribe:\x20cannot\x20read\x20'+_0x1e09d0+'\x20('+_0x46769c[_0x4a670f(0x30d)]+').'),process[_0x4a670f(0x21f)](0x2);}}async function Pn(_0x39fc2c){const _0x1976ef=_0x2de101;let [_0xe6783e,_0x173179,..._0x3e7856]=_0x39fc2c[_0x1976ef(0x1b0)];(!_0xe6783e||_0x3e7856[_0x1976ef(0x308)]>0x0||!_0x39fc2c[_0x1976ef(0x21c)])&&(console[_0x1976ef(0x230)](_0x1976ef(0x1c3)),process[_0x1976ef(0x21f)](0x2));let _0x3ae796;try{_0x3ae796=await _0x2a19cd({'projectId':_0x39fc2c[_0x1976ef(0x21c)],'type':_0xe6783e,..._0x173179?{'documentId':_0x173179}:{},..._0x39fc2c[_0x1976ef(0x2bd)]?{'workingDirectory':_0x39fc2c[_0x1976ef(0x2bd)]}:{}});}catch(_0x3abe1e){console['error'](_0x1976ef(0x1da)+(_0x3abe1e instanceof Error?_0x3abe1e[_0x1976ef(0x30d)]:String(_0x3abe1e))),process['exit'](0x1);}m(_0x39fc2c,_0x3ae796,_0x186fa7=>{const _0x4e581c=_0x1976ef;process[_0x4e581c(0x266)][_0x4e581c(0x233)](_0x186fa7['message']+'\x0a');});}var he=_0x2de101(0x30b),ye=_0x2de101(0x2bc);async function _n(_0x46b3db){const _0x283eea=_0x2de101;let [_0x47db84='',..._0x380d99]=_0x46b3db[_0x283eea(0x1b0)];if(_0x47db84===_0x283eea(0x2bb)){(_0x380d99[_0x283eea(0x308)]>0x0||!_0x46b3db[_0x283eea(0x21c)]||!_0x46b3db[_0x283eea(0x183)]||!_0x46b3db['mapName'])&&(console['error'](he),process[_0x283eea(0x21f)](0x2));let _0x455e68=await we(_0x283eea(0x2bb),()=>_0x7e9d88({'projectId':_0x46b3db[_0x283eea(0x21c)],'remote':_0x46b3db[_0x283eea(0x183)],'mapName':_0x46b3db[_0x283eea(0x301)],..._0x46b3db[_0x283eea(0x2bd)]?{'workingDirectory':_0x46b3db[_0x283eea(0x2bd)]}:{}}));m(_0x46b3db,_0x455e68,_0x5ff14d=>{const _0x16683f=_0x283eea;process['stdout'][_0x16683f(0x233)]('Shared\x20the\x20Map\x20of\x20Work\x20of\x20'+_0x46b3db['projectId']+_0x16683f(0x352)+_0x5ff14d['remote']+_0x16683f(0x1a6)+_0x5ff14d[_0x16683f(0x301)]+'\x22.\x0a');});return;}if(_0x47db84===_0x283eea(0x23b)){let _0x25c1ba=_0x380d99[_0x283eea(0x359)]('\x20')[_0x283eea(0x1ae)]();(!_0x25c1ba||!_0x46b3db['projectId'])&&(console[_0x283eea(0x230)](ye),process['exit'](0x2));let _0x40e544=await we('save-version',()=>_0x58b751({'projectId':_0x46b3db[_0x283eea(0x21c)],'message':_0x25c1ba,..._0x46b3db[_0x283eea(0x2bd)]?{'workingDirectory':_0x46b3db[_0x283eea(0x2bd)]}:{}}));m(_0x46b3db,_0x40e544,_0x33d4d7=>{const _0x17fa99=_0x283eea;process[_0x17fa99(0x266)][_0x17fa99(0x233)](_0x17fa99(0x222)+_0x33d4d7['version']+'\x20of\x20the\x20Map\x20of\x20Work\x20of\x20'+_0x46b3db[_0x17fa99(0x21c)]+':\x20'+_0x33d4d7[_0x17fa99(0x30d)]+'\x0a');});return;}console['error'](he+'\x0a'+ye),process[_0x283eea(0x21f)](0x2);}async function we(_0x339c1b,_0x2db56c){const _0x25b6f5=_0x2de101;try{return await _0x2db56c();}catch(_0x4b3194){let _0x57afaf=_0x4b3194?.['paths'],_0x48bea0=Array[_0x25b6f5(0x306)](_0x57afaf)&&_0x57afaf['length']>0x0?'\x20('+_0x57afaf['join'](',\x20')+')':'';console[_0x25b6f5(0x230)](_0x25b6f5(0x21e)+_0x339c1b+':\x20'+(_0x4b3194 instanceof Error?_0x4b3194[_0x25b6f5(0x30d)]:String(_0x4b3194))+_0x48bea0),process[_0x25b6f5(0x21f)](0x1);}}async function Rn(_0x267d88){const _0x1fc69b=_0x2de101;let _0x8dfa01=[];for await(let _0x1c3c53 of _0x267d88)_0x8dfa01[_0x1fc69b(0x36f)](Buffer[_0x1fc69b(0x1b2)](_0x1c3c53));return Buffer[_0x1fc69b(0x36e)](_0x8dfa01);}var ke=[_0x2de101(0x180),_0x2de101(0x267),_0x2de101(0x2d5),'create','claim',_0x2de101(0x1f3),_0x2de101(0x25b),_0x2de101(0x2a8),'cancel',_0x2de101(0x349)],be={'list':_0x2de101(0x2d4),'pending':_0x2de101(0x2fa),'show':_0x2de101(0x173),'create':_0x2de101(0x229),'claim':_0x2de101(0x1d1),'complete':_0x2de101(0x375),'accept':'delegations\x20accept\x20<delegation-id>','dismiss':_0x2de101(0x22e),'cancel':_0x2de101(0x21b),'delete':_0x2de101(0x15d)};async function On(_0xc30306){const _0x5147cf=_0x2de101;let [_0x21d565='',_0xabd889='',..._0x1e028b]=_0xc30306[_0x5147cf(0x1b0)];ke[_0x5147cf(0x34d)](_0x21d565)||(console['error']((_0x21d565?'Unknown\x20delegations\x20action:\x20'+_0x21d565+'.\x20':'')+_0x5147cf(0x275)+ke[_0x5147cf(0x359)](_0x5147cf(0x277))+'.'),process[_0x5147cf(0x21f)](0x2));let _0x25461c=_0x21d565;_0x25461c!==_0x5147cf(0x321)&&(_0xc30306[_0x5147cf(0x190)]!==void 0x0||_0xc30306['contextSummary']!==void 0x0||_0xc30306[_0x5147cf(0x295)]!==void 0x0)&&(console[_0x5147cf(0x230)](_0x5147cf(0x30e)),process[_0x5147cf(0x21f)](0x2));let _0x445cce=(_0x25461c===_0x5147cf(0x321)?_0xc30306[_0x5147cf(0x1b0)][_0x5147cf(0x1c4)](0x1):_0x1e028b)[_0x5147cf(0x359)]('\x20')[_0x5147cf(0x1ae)](),_0x431f26=_0x25461c===_0x5147cf(0x321)||_0x25461c==='complete';(_0x25461c!==_0x5147cf(0x321)&&!_0xabd889||(_0x431f26?!_0x445cce:_0x445cce)||_0x25461c===_0x5147cf(0x321)&&!_0xc30306[_0x5147cf(0x295)])&&(console[_0x5147cf(0x230)](_0x5147cf(0x2c4)+be[_0x25461c]),process[_0x5147cf(0x21f)](0x2));let _0x485789=_0x431f26&&_0x445cce==='-'?(await J('-',process[_0x5147cf(0x328)]))[_0x5147cf(0x1ae)]():_0x445cce;_0x431f26&&!_0x485789&&(console[_0x5147cf(0x230)](_0x5147cf(0x2c4)+be[_0x25461c]+_0x5147cf(0x1bc)),process[_0x5147cf(0x21f)](0x2));let {client:_0x249efb}=await x(_0xc30306);try{await Ln(_0xc30306,_0x249efb,_0x25461c,_0xabd889,_0x485789);}catch(_0x436bca){if(!_0x47eb30(_0x436bca))throw _0x436bca;console[_0x5147cf(0x230)](_0x436bca[_0x5147cf(0x30d)]),process[_0x5147cf(0x21f)](0x1);}}async function Ln(_0x33dcd4,_0x316ffa,_0x43d82c,_0x1f48e5,_0x326ec9){const _0x238aa0=_0x2de101;switch(_0x43d82c){case'list':m(_0x33dcd4,await _0x671cf0(_0x316ffa,_0x1f48e5),Cn);return;case'pending':m(_0x33dcd4,await _0x237c6b(_0x316ffa,_0x1f48e5),_0x20f382=>{const _0x277d88=_0x2ffd;_0x20f382[_0x277d88(0x31a)]&&process[_0x277d88(0x266)][_0x277d88(0x233)]('Claimed\x20from\x20delegation\x20'+_0x20f382[_0x277d88(0x31a)]['id']+'\x20('+_0x20f382[_0x277d88(0x31a)][_0x277d88(0x18b)]+_0x277d88(0x236)),_0x20f382[_0x277d88(0x163)][_0x277d88(0x308)]===0x0&&process[_0x277d88(0x19f)][_0x277d88(0x233)](_0x277d88(0x246));for(let _0x24358e of _0x20f382[_0x277d88(0x163)])process[_0x277d88(0x266)][_0x277d88(0x233)]('\x0a'+_0x24358e['id']+_0x277d88(0x2c3)+(_0x24358e[_0x277d88(0x1a2)]??_0x277d88(0x37f))+'\x20\x20'+(_0x24358e[_0x277d88(0x2db)]??'')+'\x0a'+(_0x24358e[_0x277d88(0x1ed)]?.[_0x277d88(0x261)]??'')+'\x0a');_0x20f382[_0x277d88(0x163)][_0x277d88(0x308)]>0x0&&process['stderr']['write'](_0x277d88(0x2ad));});return;case _0x238aa0(0x2d5):m(_0x33dcd4,await _0x3d3fa7(_0x316ffa,_0x1f48e5),ve);return;case'create':{let _0x3a80d4=await _0x19346f(_0x316ffa,{'sessionId':_0x33dcd4[_0x238aa0(0x295)],'task':_0x326ec9,..._0x33dcd4[_0x238aa0(0x348)]!==void 0x0&&{'contextSummary':_0x33dcd4[_0x238aa0(0x348)]},..._0x33dcd4[_0x238aa0(0x190)]!==void 0x0&&{'recipient':_0x33dcd4['delegateTo']}});m(_0x33dcd4,_0x3a80d4,_0x549e4e=>{const _0x405eb4=_0x238aa0;_0x549e4e['assignedUser']?process['stdout']['write']('Delegated\x20'+_0x549e4e[_0x405eb4(0x1a5)]+'\x20to\x20'+_0x549e4e[_0x405eb4(0x188)][_0x405eb4(0x1bd)]+'\x20<'+_0x549e4e[_0x405eb4(0x188)][_0x405eb4(0x18f)]+_0x405eb4(0x1e6)):process['stdout'][_0x405eb4(0x233)](_0x405eb4(0x17b)+_0x549e4e['delegationId']+'.\x20Share:\x20'+_0x549e4e[_0x405eb4(0x2a5)]+'\x0a');});return;}case _0x238aa0(0x216):{let _0x69a51c=await _0x260a7f(_0x316ffa,_0x1f48e5);m(_0x33dcd4,_0x69a51c,_0x54e22b=>{const _0x5d7407=_0x238aa0;ve(_0x54e22b),process[_0x5d7407(0x266)][_0x5d7407(0x233)](_0x5d7407(0x1d8)+_0x54e22b[_0x5d7407(0x295)]+'\x0a'),process[_0x5d7407(0x19f)][_0x5d7407(0x233)]('Work\x20on\x20it\x20with:\x20delegate-cli\x20--session\x20'+_0x54e22b['sessionId']+_0x5d7407(0x31d)+_0x54e22b['delegationId']+_0x5d7407(0x2bf));});return;}case _0x238aa0(0x1f3):{let {alreadyCompleted:_0x35b52f}=await _0x50155a(_0x316ffa,_0x1f48e5,{'content':_0x326ec9});m(_0x33dcd4,{'delegationId':_0x1f48e5,'alreadyCompleted':_0x35b52f},_0x4cf2f0=>{const _0x38b5e1=_0x238aa0;process[_0x38b5e1(0x266)][_0x38b5e1(0x233)]((_0x4cf2f0[_0x38b5e1(0x20d)]?_0x38b5e1(0x268):_0x38b5e1(0x16c))+'\x20delegation\x20'+_0x4cf2f0[_0x38b5e1(0x1a5)]+'.\x0a');});return;}case _0x238aa0(0x25b):{let _0x1757a2=await _0x57cfbc(_0x316ffa,_0x1f48e5);m(_0x33dcd4,{'delegationId':_0x1f48e5,..._0x1757a2},_0x2484a1=>{const _0x1d6ec1=_0x238aa0;process['stdout'][_0x1d6ec1(0x233)]((_0x2484a1['alreadyAccepted']?_0x1d6ec1(0x2d3):_0x1d6ec1(0x1b9))+_0x1d6ec1(0x331)+_0x2484a1['delegationId']+'.\x0a');});return;}default:{let _0xcd1178={'dismiss':_0x592178,'cancel':_0x54c377,'delete':_0x51124f}[_0x43d82c];await _0xcd1178(_0x316ffa,_0x1f48e5);let _0x17fc59={'dismiss':_0x238aa0(0x332),'cancel':'cancelled','delete':_0x238aa0(0x26a)}[_0x43d82c];m(_0x33dcd4,{'delegationId':_0x1f48e5,[_0x17fc59]:!0x0},()=>{const _0x3938ed=_0x238aa0;process['stdout'][_0x3938ed(0x233)](''+_0x17fc59[0x0]['toUpperCase']()+_0x17fc59[_0x3938ed(0x1c4)](0x1)+_0x3938ed(0x331)+_0x1f48e5+'.\x0a');});}}}function Cn(_0x16696f){const _0xebbe21=_0x2de101;if(_0x16696f[_0xebbe21(0x308)]===0x0){process[_0xebbe21(0x19f)][_0xebbe21(0x233)]('No\x20delegations.\x0a');return;}process[_0xebbe21(0x266)][_0xebbe21(0x233)]('ID'[_0xebbe21(0x33c)](0x24)+'\x20\x20'+'STATUS'['padEnd'](0x9)+'\x20\x20'+_0xebbe21(0x1e5)[_0xebbe21(0x33c)](0x18)+_0xebbe21(0x333));for(let _0x53cf8a of _0x16696f)process[_0xebbe21(0x266)]['write'](_0x53cf8a['id'][_0xebbe21(0x33c)](0x24)+'\x20\x20'+_0x53cf8a[_0xebbe21(0x18b)][_0xebbe21(0x33c)](0x9)+'\x20\x20'+(_0x53cf8a[_0xebbe21(0x1a2)]??'-')[_0xebbe21(0x33c)](0x18)+'\x20\x20'+(_0x53cf8a[_0xebbe21(0x2db)]??'')+'\x0a');}function ve(_0x18f4db){const _0x31ab9c=_0x2de101;process[_0x31ab9c(0x266)]['write'](_0x31ab9c(0x193)+(_0x18f4db[_0x31ab9c(0x29a)]??'-')+'\x0a'),_0x18f4db[_0x31ab9c(0x203)]&&process[_0x31ab9c(0x266)]['write']('Session\x20\x20\x20\x20\x20\x20\x20'+_0x18f4db[_0x31ab9c(0x203)]+'\x0a'),process[_0x31ab9c(0x266)][_0x31ab9c(0x233)]('Task\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x18f4db[_0x31ab9c(0x2db)]??'-')+'\x0a'),_0x18f4db[_0x31ab9c(0x348)]&&process[_0x31ab9c(0x266)][_0x31ab9c(0x233)]('\x0a'+_0x18f4db['contextSummary']+'\x0a\x0a');}async function jn(_0x3f50f3){const _0x508727=_0x2de101;_0x3f50f3[_0x508727(0x2f4)][_0x508727(0x1ae)]()||(console[_0x508727(0x230)](_0x508727(0x18a)),process[_0x508727(0x21f)](0x2));let {client:_0x2dfd0c}=await x(_0x3f50f3),_0x1b11d7;try{_0x1b11d7=await _0x17164a(_0x2dfd0c,_0x3f50f3[_0x508727(0x2f4)]);}catch(_0x101706){if(!_0x47eb30(_0x101706))throw _0x101706;console[_0x508727(0x230)](_0x101706[_0x508727(0x30d)]),process[_0x508727(0x21f)](0x1);}m(_0x3f50f3,_0x1b11d7,_0x2639c6=>{const _0xe7be1c=_0x508727;_0x2639c6[_0xe7be1c(0x308)]===0x0&&process[_0xe7be1c(0x19f)]['write']('No\x20one\x20matches\x20\x22'+_0x3f50f3[_0xe7be1c(0x2f4)]['trim']()+'\x22.\x0a');for(let _0x95e491 of _0x2639c6)process[_0xe7be1c(0x266)]['write'](_0x95e491[_0xe7be1c(0x18f)][_0xe7be1c(0x33c)](0x20)+'\x20\x20'+_0x95e491['displayName']+'\x0a');});}async function Mn(_0x4cd886){const _0xc4947a=_0x2de101;_0x4cd886['env']===_0xc4947a(0x28e)&&(console['error']('--env\x20localhost\x20has\x20no\x20OAuth\x20flow;\x20pick\x20alpha,\x20staging,\x20or\x20production.'),process['exit'](0x2));let _0x23a916=G(_0x5c2737()),_0x11aee4=_0x4cd886[_0xc4947a(0x25e)];if(_0x4cd886['env']){let _0x118a88=_0x4cd886[_0xc4947a(0x342)];await _0x18cf0b({'env':_0x118a88,'tenant':_0x4cd886['tenant']??q(_0x23a916,_0x2e19a6[_0x118a88]),'skipEnvCheck':_0x11aee4});return;}let _0x10b46a=_0x4cd886[_0xc4947a(0x269)]??Pe();if(_0x10b46a){await _0x18cf0b({'baseUrl':_0x10b46a,'tenant':_0x4cd886[_0xc4947a(0x257)]??q(_0x23a916,_0x10b46a),'skipEnvCheck':_0x11aee4});return;}if(_0x23a916?.[_0xc4947a(0x270)]){await _0x18cf0b({'baseUrl':_0x23a916[_0xc4947a(0x270)],'tenant':_0x4cd886[_0xc4947a(0x257)]??_0x23a916[_0xc4947a(0x311)],'skipEnvCheck':_0x11aee4});return;}console[_0xc4947a(0x230)](_0xc4947a(0x335)),process[_0xc4947a(0x21f)](0x2);}function q(_0x6628db,_0x233ff1){const _0x2b3348=_0x2de101;return _0x6628db?.[_0x2b3348(0x270)]&&Fn(_0x6628db[_0x2b3348(0x270)],_0x233ff1)?_0x6628db[_0x2b3348(0x311)]:void 0x0;}function Fn(_0x220aeb,_0x429c55){const _0x479a1a=_0x2de101;try{return new URL(_0x220aeb)[_0x479a1a(0x20e)]===new URL(_0x429c55)[_0x479a1a(0x20e)];}catch{return!0x1;}}async function Bn(_0x514048){const _0x100aac=_0x2de101;z()&&(console['error']('Auth\x20comes\x20from\x20AUTH_TOKEN/TENANT_ID/ORG_ID\x20—\x20set\x20TENANT_ID\x20and\x20TENANT_SLUG\x20to\x20change\x20the\x20tenant.'),process['exit'](0x2));let _0x2c71a5=await _0x18ffa7();if(_0x2c71a5||(console[_0x100aac(0x230)](Hn()),process[_0x100aac(0x21f)](0x2)),_0x514048['trim']()){let _0x2b0e58=await _0x5768ad(_0x2c71a5,_0x514048);_0x1f0610(_0x2b0e58)||(console[_0x100aac(0x230)](_0x100aac(0x2ec)+_0x5c2737()+_0x100aac(0x187)+_0x2c71a5['tenantName']+'.'),process['exit'](0x1)),console[_0x100aac(0x291)](_0x100aac(0x210)+_0x2b0e58[_0x100aac(0x311)]+'\x20('+_0x2b0e58[_0x100aac(0x32f)]+_0x100aac(0x1df)+_0x5c2737());return;}Jn(await _0x132468(_0x2c71a5),_0x2c71a5);}function Hn(){const _0xd2c95b=_0x2de101;if(_0x136c59[_0xd2c95b(0x221)](_0x5c2737()))return _0xd2c95b(0x2a7);let _0x459a86=Y();return G(_0x459a86)?'No\x20CLI\x20login\x20to\x20switch:\x20the\x20CLI\x20is\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20'+_0x459a86+_0xd2c95b(0x37d):_0xd2c95b(0x28d);}function Jn(_0x2a6edf,_0x3cb140){const _0x493874=_0x2de101;let _0x459ec5=_0x2a6edf[_0x493874(0x1a4)](_0x5b9e2b=>_0x5b9e2b['id']===_0x3cb140['tenantId']?'*\x20'+_0x5b9e2b[_0x493874(0x26e)]+'\x20(current)':'\x20\x20'+_0x5b9e2b[_0x493874(0x26e)]);process[_0x493874(0x266)][_0x493874(0x233)](_0x493874(0x35a)+(_0x3cb140['orgLogicalName']??_0x3cb140['organizationId'])+':\x0a'+_0x459ec5[_0x493874(0x359)]('\x0a')+'\x0a'),_0x2a6edf[_0x493874(0x308)]>0x1&&process[_0x493874(0x266)][_0x493874(0x233)](_0x493874(0x353));}function Gn(_0x17962f){const _0x7b43d=_0x2de101;return _0x17962f?.[_0x7b43d(0x1d0)]?.[_0x7b43d(0x18b)]===0x191||/401/[_0x7b43d(0x174)](String(_0x17962f?.[_0x7b43d(0x30d)]??''));}var w={'lastType':null,'quiet':!0x1},Oe=_0x195a93=>{const _0x3e8db7=_0x2de101;switch(_0x195a93['type']){case _0x3e8db7(0x272):_0x195a93['sessionId']&&_0x195a93[_0x3e8db7(0x295)]!==w[_0x3e8db7(0x295)]&&(process[_0x3e8db7(0x19f)][_0x3e8db7(0x233)]('Session:\x20'+_0x195a93[_0x3e8db7(0x295)]+_0x3e8db7(0x369)+_0x195a93[_0x3e8db7(0x295)]+')\x0a'),w[_0x3e8db7(0x295)]=_0x195a93[_0x3e8db7(0x295)]);break;case _0x3e8db7(0x33f):_0x195a93['turnId']&&_0x195a93[_0x3e8db7(0x330)]!==w[_0x3e8db7(0x330)]&&(w[_0x3e8db7(0x366)]!==null&&process['stderr'][_0x3e8db7(0x233)]('\x0a'),process[_0x3e8db7(0x19f)]['write'](_0x3e8db7(0x1e2)+_0x195a93[_0x3e8db7(0x330)]+_0x3e8db7(0x2f8)+_0x195a93[_0x3e8db7(0x295)]+'\x20--turn\x20'+_0x195a93[_0x3e8db7(0x330)]+')\x0a'),w[_0x3e8db7(0x330)]=_0x195a93[_0x3e8db7(0x330)],w['lastType']='turn_start');break;case'thinking':_0x195a93[_0x3e8db7(0x261)]&&!w[_0x3e8db7(0x1d6)]&&(w['lastType']!==_0x3e8db7(0x360)&&process['stderr']['write'](_0x3e8db7(0x225)),process['stderr'][_0x3e8db7(0x233)](_0x195a93[_0x3e8db7(0x261)]),w['lastType']=_0x3e8db7(0x360));break;case _0x3e8db7(0x264):w['lastType']!==null&&process['stderr']['write']('\x0a'),process[_0x3e8db7(0x19f)][_0x3e8db7(0x233)](_0x3e8db7(0x30c)+(_0x195a93['toolName']??_0x3e8db7(0x35f))+'\x0a'),w[_0x3e8db7(0x366)]=_0x3e8db7(0x264);break;case'message':_0x195a93[_0x3e8db7(0x261)]&&(w[_0x3e8db7(0x366)]!==_0x3e8db7(0x30d)&&w[_0x3e8db7(0x366)]!==null&&process[_0x3e8db7(0x266)]['write']('\x0a'),process[_0x3e8db7(0x266)]['write'](_0x195a93[_0x3e8db7(0x261)]),w[_0x3e8db7(0x366)]=_0x3e8db7(0x30d));break;case _0x3e8db7(0x230):w[_0x3e8db7(0x366)]!==null&&process[_0x3e8db7(0x19f)][_0x3e8db7(0x233)]('\x0a'),process[_0x3e8db7(0x19f)]['write']('✗\x20'+(_0x195a93[_0x3e8db7(0x230)]??_0x3e8db7(0x230))+'\x0a'),w[_0x3e8db7(0x366)]=_0x3e8db7(0x230);break;case'done':(w[_0x3e8db7(0x366)]===_0x3e8db7(0x30d)||w[_0x3e8db7(0x366)]==='thinking')&&process[_0x3e8db7(0x266)]['write']('\x0a'),process[_0x3e8db7(0x19f)][_0x3e8db7(0x233)](_0x3e8db7(0x1e3)),w[_0x3e8db7(0x366)]=_0x3e8db7(0x1be);break;}};function Se(_0x8703f1,_0x3c12b6,_0xb0c590,_0x420517){const _0x5d5277=_0x2de101;let _0x286293=_0x8703f1[_0x5d5277(0x2c0)]||process.env.MODEL;return{'backendUrl':_0xb0c590,'auth':_0x3c12b6,'enableComputerUse':!_0x8703f1[_0x5d5277(0x2cc)]&&!_0x8703f1[_0x5d5277(0x26c)],'autoSpawnInterop':!_0x8703f1[_0x5d5277(0x2cc)],'enableConnections':!_0x8703f1[_0x5d5277(0x1c8)],'enableSecurity':!_0x8703f1[_0x5d5277(0x258)],'keepInteropAlive':_0x8703f1['keepAlive'],..._0x420517[_0x5d5277(0x17f)]?{'enableBackgroundCommands':!0x1}:{},..._0x8703f1['noMemory']?{'enableMemory':!0x1}:{},..._0x8703f1[_0x5d5277(0x31c)]?{'enableTaskAutomation':!0x0}:{},..._0x8703f1[_0x5d5277(0x2ee)][_0x5d5277(0x308)]>0x0?{'preloadSkills':_0x8703f1[_0x5d5277(0x2ee)]}:{},..._0x286293?{'model':_0x286293}:{},..._0x8703f1[_0x5d5277(0x21c)]?{'projectId':_0x8703f1[_0x5d5277(0x21c)]}:{},..._0x8703f1[_0x5d5277(0x22b)]?{'vertical':_0x8703f1[_0x5d5277(0x22b)]}:{},..._0x8703f1[_0x5d5277(0x2bd)]?{'workingDirectory':_0x8703f1[_0x5d5277(0x2bd)]}:{},..._0x8703f1[_0x5d5277(0x37a)]?{'bundledSkillsPath':_0x8703f1['bundledSkillsPath']}:{},..._0x8703f1[_0x5d5277(0x1b7)]?{'effort':_0x8703f1[_0x5d5277(0x1b7)]}:{},..._0x8703f1[_0x5d5277(0x295)]?{'sessionId':_0x8703f1[_0x5d5277(0x295)]}:{},..._0x8703f1[_0x5d5277(0x365)]?{'verbose':!0x0}:{}};}async function Wn(_0x44cf59){const _0x444581=_0x2de101;let _0x70dea4=_0x44cf59[_0x444581(0x283)]!=='text',_0x277db4=_0x44cf59[_0x444581(0x2b6)]===void 0x0?null:Re(_0x44cf59[_0x444581(0x2b6)],_0x444581(0x224)),_0x37e026=!_0x70dea4&&!_0x277db4&&!_0x44cf59[_0x444581(0x1d5)]&&_0x44cf59[_0x444581(0x2f4)]!=='-'&&!!process['stdin'][_0x444581(0x1ee)]&&!!process['stdout'][_0x444581(0x1ee)],_0x3cd2e9=_0x44cf59['inputFormat']===_0x444581(0x168)?re(process[_0x444581(0x328)],_0x29f863=>{const _0x339c19=_0x444581;process[_0x339c19(0x19f)]['write'](_0x29f863[_0x339c19(0x30d)]+_0x339c19(0x293));}):null,_0x2ce070=_0x3cd2e9?(await _0x3cd2e9['next']())[_0x444581(0x1cd)]:void 0x0,_0x12e4ed=_0x3cd2e9?_0x2ce070?.[_0x444581(0x315)]??'':_0x37e026?_0x44cf59['prompt'][_0x444581(0x1ae)]():await J(_0x44cf59[_0x444581(0x2f4)],process[_0x444581(0x328)]);if(!_0x37e026&&!_0x12e4ed&&(console[_0x444581(0x230)](_0x444581(0x2e9)),process[_0x444581(0x21f)](0x2)),!_0x70dea4){await Ae(_0x44cf59,_0x12e4ed,_0x37e026,null,_0x277db4,null);return;}let _0xd90636=!0x1,_0xb4569e=_0x2bf3ae=>{_0xd90636=!0x0,L(_0x218547(_0x2bf3ae)),(_0x2bf3ae['isError']||_0x2bf3ae['structuredError'])&&(process['exitCode']=0x1);},_0x346027=Date['now']();try{await Ae(_0x44cf59,_0x12e4ed,!0x1,_0xb4569e,_0x277db4,_0x3cd2e9?{'messages':_0x3cd2e9,'first':_0x2ce070,'close':()=>{const _0x132181=_0x444581;process['stdin'][_0x132181(0x20c)]();}}:null);}catch(_0x49d2a3){if(_0xd90636)throw _0x49d2a3;process[_0x444581(0x19f)]['write']((_0x49d2a3 instanceof Error?_0x49d2a3['stack']??_0x49d2a3[_0x444581(0x30d)]:String(_0x49d2a3))+'\x0a'),_0xb4569e(new _0x4224bd(_0x346027)[_0x444581(0x24e)]({'endedAtMs':Date[_0x444581(0x33b)](),'usage':[],'error':_0x49d2a3}));}finally{_0x3cd2e9&&(process[_0x444581(0x328)]['pause'](),_0x3cd2e9[_0x444581(0x363)](void 0x0));}}async function Ae(_0x177d9f,_0x329091,_0x49eede,_0x4344c7,_0x44b744,_0x5b381f){const _0x35063a=_0x2de101;w={'lastType':null,'quiet':_0x177d9f[_0x35063a(0x1d6)]};let _0x2a815e=new Set(),_0x58c8c9,_0x4653e6=_0x257b71=>{const _0x4a9f64=_0x35063a;(!_0x4344c7||_0x257b71['type']===_0x4a9f64(0x272)||_0x257b71[_0x4a9f64(0x2e8)]===_0x4a9f64(0x33f))&&(_0x58c8c9??Oe)(_0x257b71);for(let _0x1260ee of _0x2a815e)_0x1260ee(_0x257b71);},_0x23f0e3=await V(),_0xd9f24=new _0x6aa6ea();_0xd9f24[_0x35063a(0x1ce)](_0x4653e6);let _0x5f843f=_0x1447c8(_0x177d9f[_0x35063a(0x342)],_0x23f0e3,_0x177d9f['backendUrl']);X(_0x177d9f[_0x35063a(0x342)],_0x177d9f['backendUrl'],_0x5f843f);let _0x5b27dd={'input':null},_0x3f52d5=_0x49eede?ne(()=>_0x5b27dd[_0x35063a(0x2a6)],_0x23161c=>{const _0x38896f=_0x35063a;process['stderr'][_0x38896f(0x233)](_0x23161c);}):null,_0x567392=_0x42528a=>_0x3f52d5?{..._0x42528a,'askUser':_0x3f52d5}:_0x42528a,_0x875006=_0x567392(Se(_0x177d9f,_0x23f0e3,_0x5f843f,{'oneTurn':!_0x49eede})),_0x553a4e=!0x1,_0x5d728a=!0x1,_0x5ecd3b,_0x2a8aea=()=>_0x5ecd3b??=_0xd9f24['destroy'](),_0x516f4e=()=>{const _0x40a262=_0x35063a;_0x5d728a&&process[_0x40a262(0x21f)](0x82),_0x5d728a=!0x0,process[_0x40a262(0x19f)][_0x40a262(0x233)](_0x40a262(0x24a)),_0x553a4e&&_0xd9f24[_0x40a262(0x1b1)]()[_0x40a262(0x317)](_0x57dca8=>console[_0x40a262(0x230)](_0x57dca8))[_0x40a262(0x21d)](_0x2a8aea)['then'](()=>process[_0x40a262(0x21f)](0x82),_0x591137=>{const _0x83c2cd=_0x40a262;console[_0x83c2cd(0x230)](_0x591137),process[_0x83c2cd(0x21f)](0x82);});};process['on'](_0x35063a(0x310),_0x516f4e);let _0x3bef7d=_0x177d9f['attachments'],_0x129397=async _0x50dfc8=>{const _0x16a5d6=_0x35063a;let _0x3c4981=_0x3bef7d;_0x3bef7d=[];let _0x50042b=()=>_0xd9f24[_0x16a5d6(0x2f5)](_0x50dfc8,{'attachments':_0x3c4981});try{return await _0x50042b();}catch(_0x58e517){if(_0x5d728a||!Gn(_0x58e517)||!process[_0x16a5d6(0x328)]['isTTY']||_0x177d9f[_0x16a5d6(0x342)]===_0x16a5d6(0x28e)||!(_0x177d9f[_0x16a5d6(0x342)]||_0x23f0e3[_0x16a5d6(0x270)]))throw _0x58e517;process[_0x16a5d6(0x19f)][_0x16a5d6(0x233)]('\x0a⚠️\x20\x20Auth\x20expired.\x20Opening\x20browser\x20to\x20re-login…\x0a');let _0x81171d=_0xd9f24[_0x16a5d6(0x17d)]()??_0x177d9f[_0x16a5d6(0x295)],_0x3d1d27=await _0x18cf0b(_0x177d9f['env']?{'env':_0x177d9f[_0x16a5d6(0x342)],'tenant':q(_0x23f0e3,_0x2e19a6[_0x177d9f['env']]),'skipEnvCheck':!0x0}:{'baseUrl':_0x23f0e3['baseUrl'],'tenant':_0x23f0e3[_0x16a5d6(0x311)],'skipEnvCheck':!0x0}),_0x15dcd6={'text':'','failed':!0x1,'sessionId':_0x81171d};return _0x5d728a||(_0x553a4e=!0x1,await _0x2a8aea(),_0x5d728a)?_0x15dcd6:(_0xd9f24=new _0x6aa6ea(),_0x5ecd3b=void 0x0,_0xd9f24[_0x16a5d6(0x1ce)](_0x4653e6),_0x23f0e3=_0x3d1d27,await _0xd9f24[_0x16a5d6(0x380)]({..._0x567392(Se(_0x177d9f,_0x23f0e3,_0x5f843f,{'oneTurn':!_0x49eede})),..._0x81171d?{'sessionId':_0x81171d}:{}}),_0x553a4e=!0x0,_0x5d728a?_0x15dcd6:_0x50042b());}};try{if(await _0xd9f24['initialize'](_0x875006),_0x553a4e=!0x0,_0x5d728a)return;if(_0x49eede)await Qn({'prompt':_0x329091,'sendMessage':_0x129397,'onSigint':_0x516f4e,'setAnswerInput':_0x33bfab=>{const _0x6a1a5=_0x35063a;_0x5b27dd[_0x6a1a5(0x2a6)]=_0x33bfab;},'registerEventPrinter':_0x6978bd=>(_0x58c8c9=_0x6978bd,()=>{_0x58c8c9=void 0x0;})});else{if(_0x4344c7||_0x44b744){let _0x379ad5=_0x177d9f[_0x35063a(0x283)]===_0x35063a(0x168)?_0xacdf14=>L(_0x54b2b4(_0xacdf14)):()=>{},_0x52cac5=_0x5b381f?ie({'input':_0x5b381f,'getAgent':()=>_0xd9f24,'replay':_0x177d9f[_0x35063a(0x327)],'onEvent':_0x2ad187=>(_0x2a815e[_0x35063a(0x167)](_0x2ad187),()=>{const _0x15ff47=_0x35063a;_0x2a815e[_0x15ff47(0x349)](_0x2ad187);}),'write':L,'isRunStopNotice':_0x2d2e17,'actionableErrorText':_0x5efc29,'warn':_0x4d297a=>{const _0x28f4a2=_0x35063a;process[_0x28f4a2(0x19f)]['write'](_0x4d297a);}}):null,_0x37fea1=await _0x25c551({'onEvent':_0x866898=>(_0x2a815e[_0x35063a(0x167)](_0x866898),()=>{const _0x149e59=_0x35063a;_0x2a815e[_0x149e59(0x349)](_0x866898);}),'sendMessage':async _0x201198=>{const _0x4e1b78=_0x35063a;try{let _0x3b6473=await _0x129397(_0x201198);return _0x52cac5?await _0x52cac5[_0x4e1b78(0x1aa)](_0x3b6473):_0x3b6473;}finally{_0x52cac5?.[_0x4e1b78(0x2a0)]();}},'getSessionId':()=>_0xd9f24[_0x35063a(0x17d)](),'getTurnUsageHistory':_0xef6775=>_0xd9f24[_0x35063a(0x255)](_0xef6775),'complete':_0x5c923e=>_0xd9f24[_0x35063a(0x1f3)](_0x5c923e)},_0x329091,void 0x0,_0x379ad5,_0x44b744?{'outputSchema':_0x44b744}:void 0x0);_0x4344c7?_0x4344c7(_0x37fea1):Kn(_0x37fea1);}else await _0x129397(_0x329091);}}catch(_0xa24a06){if(!_0x5d728a)throw _0xa24a06;}finally{try{await _0x2a8aea();}finally{process[_0x35063a(0x37c)](_0x35063a(0x310),_0x516f4e),_0x5d728a&&(process[_0x35063a(0x33a)]=0x82);}}}function Kn(_0x5525f6){const _0x13c8d3=_0x2de101;_0x5525f6['structuredError']?(console[_0x13c8d3(0x230)](_0x13c8d3(0x23f)+_0x5525f6['structuredError'][_0x13c8d3(0x30d)]),process['exitCode']=0x1):_0x5525f6[_0x13c8d3(0x350)]?(console['error'](_0x13c8d3(0x32b)+_0x5525f6[_0x13c8d3(0x230)]+').'),process[_0x13c8d3(0x33a)]=0x1):process['stdout']['write'](JSON['stringify'](_0x5525f6[_0x13c8d3(0x17a)],null,0x2)+'\x0a');}function qn(_0x201ef5,_0x1b6055){const _0x2de33a=_0x2de101;let _0x373c9b=process['stdout'][_0x2de33a(0x233)]['bind'](process[_0x2de33a(0x266)]),_0x336edc=!0x1;return process[_0x2de33a(0x266)][_0x2de33a(0x233)]=(..._0x287cbb)=>{const _0x5e052d=_0x2de33a;if(!_0x336edc)return _0x373c9b(..._0x287cbb);_0x2db042(_0x1b6055,0x0),_0x30f9fd(_0x1b6055,0x0);let _0x5a01c5=_0x373c9b(..._0x287cbb);return _0x201ef5[_0x5e052d(0x2f4)](!0x0),_0x5a01c5;},{'show':()=>{const _0x4428bb=_0x2de33a;_0x336edc=!0x0,_0x201ef5[_0x4428bb(0x2f4)]();},'hide':()=>{_0x336edc=!0x1;},'erase':()=>{_0x336edc&&(_0x2db042(_0x1b6055,0x0),_0x30f9fd(_0x1b6055,0x0)),_0x336edc=!0x1;},'restore':()=>{_0x336edc=!0x1,process['stdout']['write']=_0x373c9b;}};}async function Qn({prompt:_0x116aa4,sendMessage:_0x41fbbc,onSigint:_0x49851d,setAnswerInput:_0xb13f46,registerEventPrinter:_0x59f96d}){const _0x134a8a=_0x2de101;let _0x3bd16c=_0x5c39ef({'input':process[_0x134a8a(0x328)],'output':process[_0x134a8a(0x19f)],'terminal':!0x0,'prompt':_0x134a8a(0x213)}),_0x10d9c5=qn(_0x3bd16c,process[_0x134a8a(0x19f)]),_0x35434f=[],_0x18d73c,_0x482ba9,_0x91ec8f,_0x49df81=!0x1,_0x36efd1=!0x1,_0x9243fe=!0x1,_0x433bc0=Promise[_0x134a8a(0x252)](),_0x204771,_0x14937a=_0x59f96d(_0x19dee4=>{const _0x336f96=_0x134a8a;_0x19dee4[_0x336f96(0x2e8)]===_0x336f96(0x272)&&(_0x10d9c5[_0x336f96(0x30a)](),_0x433bc0=new Promise(_0x6cbdbb=>{_0x204771=_0x6cbdbb;})),Oe(_0x19dee4),_0x19dee4['type']==='done'&&(_0x204771?.(),_0x204771=void 0x0,!_0x9243fe&&!_0x49df81&&_0x10d9c5[_0x336f96(0x2d5)]());}),_0x185917=()=>{const _0x25c840=_0x134a8a;_0x36efd1=!0x0,_0x204771?.(),_0x49851d(),_0x3bd16c[_0x25c840(0x1dc)]();};_0x3bd16c['on'](_0x134a8a(0x25d),_0x560039=>{const _0x322a29=_0x134a8a;_0x91ec8f?_0x91ec8f(_0x560039):_0x18d73c?_0x18d73c[_0x322a29(0x36f)](_0x560039):_0x482ba9?_0x482ba9(_0x560039):_0x35434f[_0x322a29(0x36f)](_0x560039);}),_0x3bd16c[_0x134a8a(0x33d)](_0x134a8a(0x1dc),()=>{const _0x2250b8=_0x134a8a;_0x49df81=!0x0,_0x10d9c5[_0x2250b8(0x304)](),_0x18d73c&&!_0x36efd1&&_0x185917(),_0x482ba9?.(null);});let _0x437452=()=>_0x35434f[_0x134a8a(0x308)]>0x0?Promise[_0x134a8a(0x252)](_0x35434f['shift']()):_0x49df81?Promise[_0x134a8a(0x252)](null):new Promise(_0x1816a3=>{_0x482ba9=_0x5e8496=>{_0x482ba9=void 0x0,_0x1816a3(_0x5e8496);};});_0xb13f46({'readLine':(_0x41b6bb,_0x307d89)=>new Promise((_0x1e0fc1,_0x5887f5)=>{const _0x91fa5f=_0x134a8a;if(_0x49df81&&!_0x18d73c){_0x1e0fc1(null);return;}_0x18d73c??=[];let _0x2ed96b=_0x18d73c[_0x91fa5f(0x220)]();if(_0x2ed96b!==void 0x0){_0x1e0fc1(_0x2ed96b);return;}let _0xd84399=()=>{const _0x5941cd=_0x91fa5f;_0x91ec8f=void 0x0,_0x307d89['removeEventListener']('abort',_0x2c74c8),_0x10d9c5[_0x5941cd(0x304)](),_0x3bd16c[_0x5941cd(0x186)](_0x5941cd(0x213));},_0x2c74c8=()=>{const _0x4f1e78=_0x91fa5f;_0xd84399(),_0x5887f5(new Error(_0x4f1e78(0x2c5)));};_0x307d89[_0x91fa5f(0x1b8)](_0x91fa5f(0x218),_0x2c74c8,{'once':!0x0}),!_0x49df81&&(_0x91ec8f=_0x4525d3=>{_0xd84399(),_0x1e0fc1(_0x4525d3);},_0x3bd16c[_0x91fa5f(0x186)](_0x41b6bb),_0x10d9c5[_0x91fa5f(0x2d5)]());}),'endQuestions':()=>{const _0x1b5f0c=_0x134a8a;_0x18d73c&&_0x35434f[_0x1b5f0c(0x36f)](..._0x18d73c),_0x18d73c=void 0x0;}}),_0x3bd16c['on'](_0x134a8a(0x310),_0x185917),process[_0x134a8a(0x19f)][_0x134a8a(0x233)](_0x134a8a(0x2ff));let _0x531e74=async _0x326039=>{_0x9243fe=!0x0;try{await _0x41fbbc(_0x326039);}finally{_0x9243fe=!0x1;}};try{if(_0x116aa4&&await _0x531e74(_0x116aa4),_0x36efd1)return;!_0x49df81&&!_0x204771&&_0x10d9c5[_0x134a8a(0x2d5)]();for(let _0x5be33d=await _0x437452();_0x5be33d!==null&&(_0x10d9c5['hide'](),!_0x36efd1);_0x5be33d=await _0x437452()){let _0x17e2c5=_0x5be33d[_0x134a8a(0x1ae)]();if(_0x17e2c5===_0x134a8a(0x179))break;_0x17e2c5&&await _0x531e74(_0x17e2c5),!_0x49df81&&!_0x204771&&_0x10d9c5[_0x134a8a(0x2d5)]();}for(;!_0x36efd1&&_0x204771;)await _0x433bc0;}finally{_0xb13f46(null),_0x14937a(),_0x10d9c5[_0x134a8a(0x192)](),_0x3bd16c[_0x134a8a(0x37c)]('SIGINT',_0x185917),_0x3bd16c[_0x134a8a(0x1dc)]();}}async function Yn(){const _0x2d47a9=_0x2de101;let _0x57d925=Vt(process[_0x2d47a9(0x2dd)][_0x2d47a9(0x1c4)](0x2));if(_0x57d925[_0x2d47a9(0x283)]===_0x2d47a9(0x315)){await Ee(_0x57d925);return;}let _0x3abbfc=Xt();try{await Ee(_0x57d925);}finally{_0x3abbfc();}}async function Ee(_0x44c04f){const _0x27f47c=_0x2de101;if(_0x44c04f['help']){Zt();return;}if(_0x44c04f['version']){console[_0x27f47c(0x291)](en());return;}if(_0x44c04f[_0x27f47c(0x1f2)]==='login'){await Mn(_0x44c04f);return;}if(_0x44c04f[_0x27f47c(0x1f2)]===_0x27f47c(0x257)){await Bn(_0x44c04f['prompt']);return;}if(_0x44c04f[_0x27f47c(0x1f2)]===_0x27f47c(0x254)){await on();return;}if(_0x44c04f[_0x27f47c(0x1f2)]===_0x27f47c(0x1fb)){await rn(_0x44c04f);return;}if(_0x44c04f['subcommand']===_0x27f47c(0x2fe)){await dn(_0x44c04f);return;}if(_0x44c04f[_0x27f47c(0x1f2)]===_0x27f47c(0x1bf)){await wn(_0x44c04f);return;}if(_0x44c04f[_0x27f47c(0x1f2)]===_0x27f47c(0x2fc)){await pn(_0x44c04f);return;}if(_0x44c04f[_0x27f47c(0x1f2)]===_0x27f47c(0x373)){await vn(_0x44c04f);return;}if(_0x44c04f[_0x27f47c(0x1f2)]===_0x27f47c(0x29f)||_0x44c04f[_0x27f47c(0x1f2)]==='rerank'||_0x44c04f[_0x27f47c(0x1f2)]==='verify'){await xn(_0x44c04f,_0x44c04f[_0x27f47c(0x1f2)]);return;}if(_0x44c04f[_0x27f47c(0x1f2)]==='complete'){await $n(_0x44c04f);return;}if(_0x44c04f[_0x27f47c(0x1f2)]===_0x27f47c(0x24c)){await Nn(_0x44c04f);return;}if(_0x44c04f['subcommand']===_0x27f47c(0x340)){await Pn(_0x44c04f);return;}if(_0x44c04f[_0x27f47c(0x1f2)]===_0x27f47c(0x226)){await _n(_0x44c04f);return;}if(_0x44c04f[_0x27f47c(0x1f2)]==='delegations'){await On(_0x44c04f);return;}if(_0x44c04f['subcommand']===_0x27f47c(0x1a3)){await jn(_0x44c04f);return;}if(_0x44c04f['subcommand']==='host'){await _0x2649be(_0x44c04f['prompt'],{'runnerUrl':_0x44c04f[_0x27f47c(0x2f7)],'backendUrl':_0x44c04f[_0x27f47c(0x1c7)],'interopPath':_0x44c04f[_0x27f47c(0x23e)],'workerId':_0x44c04f[_0x27f47c(0x35e)]});return;}if(_0x44c04f[_0x27f47c(0x217)]){await cn();return;}await Wn(_0x44c04f);}var zn=process.env.NODE_ENV===_0x2de101(0x174)||!!process.env.JEST_WORKER_ID;zn||Yn()['catch'](_0x57987a=>{const _0x50c15a=_0x2de101;console['error'](_0x57987a[_0x50c15a(0x23a)]||_0x57987a[_0x50c15a(0x30d)]||_0x57987a),process[_0x50c15a(0x21f)](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-preview.20261127100356",
3
+ "version": "1.208.0-preview.20261127152656",
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-preview.20261127100356"
25
+ "@uipath/delegate-sdk": "1.208.0-preview.20261127152656"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@types/node": "^22.0.0",