@uipath/delegate-cli 1.203.0 → 1.203.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +31 -7
- package/dist/cli.mjs +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -189,7 +189,7 @@ Exit codes:
|
|
|
189
189
|
|
|
190
190
|
- `show <id>` prints the title, the owner's user id and organization, and the delegation id of a session claimed from a delegation link. A session another user shared in your organization is shown too. Use `sessions` for timestamps and sub-agent links.
|
|
191
191
|
- `rename <id> <title>` sets the title. Everything after the id is the title, so quotes are optional.
|
|
192
|
-
- `delete <id>` deletes the session permanently, with its messages and sub-agent sessions. It does not ask for confirmation, because the CLI never prompts outside a conversation, so check the id first.
|
|
192
|
+
- `delete <id>` deletes the session permanently, with its messages and sub-agent sessions, and the session's local [task log](#task-automation---task-automation) under the state root (pass the run's `--working-dir`). It does not ask for confirmation, because the CLI never prompts outside a conversation, so check the id first.
|
|
193
193
|
|
|
194
194
|
An id the backend does not know prints `Session <id> not found.` on stderr and exits 1. A missing id or title, an extra operand, or `--page` / `--limit` / `--include-subagents` exits 2 before any request. Rename and delete work only on your own sessions.
|
|
195
195
|
|
|
@@ -287,6 +287,29 @@ delegate-cli --attach screenshot.png # conversation: the first line y
|
|
|
287
287
|
- In a conversation only the first message carries attachments — the prompt given on the command line, or the first line typed. Later messages carry none of their own, but the first message's files stay in context for the rest of the session.
|
|
288
288
|
- Relative paths resolve against the current directory. A path that does not exist, or the flag on a subcommand, exits 2 before any auth or interop work; a file that cannot be read fails the turn before it starts (exit 1).
|
|
289
289
|
|
|
290
|
+
### Task automation (`--task-automation`)
|
|
291
|
+
|
|
292
|
+
`--task-automation` records every UI action of the run so the agent can afterwards turn the task into a UiPath coded workflow with the bundled `uipath-taskautomation` skill (SDK `enableTaskAutomation`):
|
|
293
|
+
|
|
294
|
+
```bash
|
|
295
|
+
delegate-cli --task-automation --working-dir ~/automation
|
|
296
|
+
You> Open Notepad and type "Weekly report"
|
|
297
|
+
You> Turn what you just did into a UiPath coded workflow.
|
|
298
|
+
```
|
|
299
|
+
|
|
300
|
+
- Each `AppAct` step, with the selector of the element it acted on, and each request you sent are appended to `<working-dir>/captures/<session>/task-log-*.jsonl` (`~/.aria-sdk/captures/…` without `--working-dir`). The log keeps on-screen text, field labels and the start of each request; typed values and anything that reads as a credential are masked.
|
|
301
|
+
- While the CLI runs, the backend is asked for a sturdier selector for each captured step. Work left when it exits is picked up by the next `--task-automation` run under the same login and state root.
|
|
302
|
+
- Ask for the workflow in the same session: in the same conversation, or with `--session <id>` (and the same `--working-dir`) in a later invocation.
|
|
303
|
+
- It needs computer use, so it exits 2 with `--headless`, `--no-computer-use` or `--cartographer`, and on subcommands. Where the deployment does not offer task automation yet (it follows the desktop app's rollout and is not on the production cloud), the run starts with a warning and records nothing. The skill also needs the `uip` CLI on `PATH`, signed in with `uip login`.
|
|
304
|
+
- `uipath-taskautomation` ships with the SDK package (see [Skills](#skills)); a copy of your own in `--skills-path` replaces it.
|
|
305
|
+
- `delegate-cli sessions delete <id>` removes the log with the session; give it the same `--working-dir` as the run.
|
|
306
|
+
|
|
307
|
+
### Skills
|
|
308
|
+
|
|
309
|
+
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-download`, `doc-coauthoring`, `internal-comms`, `knowledge-base`), `outlook-365`, `slack-operation`, `teams-operation`, `uipath-taskautomation`, `uipath-workflow-documenter`, `business-analysis`, `project-task-list`, `transcribe-media`, `media-tools` and `system-diagnostics`. The agent picks one when the task calls for it; `--preload-skill <name>` attaches one up front.
|
|
310
|
+
|
|
311
|
+
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.
|
|
312
|
+
|
|
290
313
|
### Speech-to-text (`transcribe`)
|
|
291
314
|
|
|
292
315
|
Transcribe an audio file with the backend's Whisper route (`/v1/transcription`, the one the desktop app's voice input uses) and print the text:
|
|
@@ -355,11 +378,12 @@ Three levels of machine access, independent of conversation mode:
|
|
|
355
378
|
| `--no-connections` | off | Disable orchestrator ConnectionService (silences 404 noise on tenants without orchestrator). |
|
|
356
379
|
| `--no-security` | off | Disable tool security wrapper. Debug only. |
|
|
357
380
|
| `--no-memory` | off | Do not send the Delegate app's local long-term memories with each turn (SDK `enableMemory: false`). By default the CLI reads the same `Memories` folder the desktop app uses, and the model may save new preferences and learnings there with its file tools. |
|
|
381
|
+
| `--task-automation` | off | Record every UI action of the run to the session's task log, so the agent can turn the task into a UiPath coded workflow (SDK `enableTaskAutomation`). Needs computer use: refused with `--headless`, `--no-computer-use` and `--cartographer`. See [Task automation](#task-automation---task-automation). |
|
|
358
382
|
| `--preload-skill <name>` | — | Preload a skill into the session before the first model turn (repeatable; SDK `preloadSkills`). A name given twice is preloaded once. |
|
|
359
383
|
| `--cartographer` | off | Cartographer engagement preset — shorthand for `--no-computer-use --preload-skill business-analysis --preload-skill project-task-list --preload-skill knowledge-base`. Add `--project` / `--working-dir` to say where the engagement's files live, and further `--preload-skill` flags for anything extra; a skill the preset already covers is **not** preloaded twice, whichever side of the flag it is named on. Pass `--headless` alongside it to drop interop as well (`--headless` always wins over the preset's `--no-computer-use`). |
|
|
360
384
|
| `--project <id>` | — | Bind the session to a project: wiki, plans, `task-list.md` and `progress.yaml` live under `<state root>/projects/<id>/` (the state root is `--working-dir`, else `~/.aria-sdk`), the preloaded skills' declared project files are copied there on the first message, and the project context (`ProjectId`, `TaskListPath`, `ProgressPath`) is injected into every turn (SDK `projectId`). Client-side routing key only — the CLI never links a backend project row. |
|
|
361
385
|
| `--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**. |
|
|
362
|
-
| `--skills-path <path>` | — |
|
|
386
|
+
| `--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. |
|
|
363
387
|
| `--effort <tier>` | model's recommended tier | Reasoning effort: `low` / `medium` / `high` / `xhigh` / `max` (SDK `effort`). Any other value exits with code 2. |
|
|
364
388
|
| `--session <id>` | server-assigned | Pin the session id (SDK `sessionId`). Must be an existing backend session: the backend assigns session ids, so an id it does not know fails the turn (exit 1) before anything is sent. Reuse it across invocations to continue one conversation — the agent then remembers earlier turns. Note that `--preload-skill` is stamped when the SDK *creates* a session, so passing it alongside `--session` does not reconfigure an existing one. For `complete`, the session whose history is sent as context. |
|
|
365
389
|
| `--json-schema <file>` | — | JSON schema file the structured answer must match: for `complete`, and for a prompt (the turn's result is extracted after it runs; implies `--print`). On another command the flag exits with code 2. |
|
|
@@ -431,10 +455,10 @@ npx delegate-cli --no-computer-use --project invoice-approval --working-dir ~/en
|
|
|
431
455
|
npx delegate-cli --cartographer --project invoice-approval --working-dir ~/engagements \
|
|
432
456
|
"Read the AS-IS notes and draft the process overview."
|
|
433
457
|
|
|
434
|
-
# Preset plus one extra skill
|
|
435
|
-
#
|
|
436
|
-
npx delegate-cli --cartographer --preload-skill task-design
|
|
437
|
-
"Start the engagement."
|
|
458
|
+
# Preset plus one extra skill the package does not ship, loaded from a folder of your
|
|
459
|
+
# own; business-analysis is already in the preset, so naming it again changes nothing
|
|
460
|
+
npx delegate-cli --cartographer --skills-path ~/my-skills --preload-skill task-design \
|
|
461
|
+
--project invoice-approval "Start the engagement."
|
|
438
462
|
|
|
439
463
|
# Separate one-turn commands with persistent interop
|
|
440
464
|
npx delegate-cli --print --keep-alive "take a screenshot"
|
|
@@ -502,7 +526,7 @@ A failed backend call exits 1 with the status on stderr and nothing on stdout, a
|
|
|
502
526
|
```bash
|
|
503
527
|
npx delegate-cli login --env production # once
|
|
504
528
|
npx delegate-cli host --runner-url wss://runner.example/worker \
|
|
505
|
-
--interop /path/to/UiPath.
|
|
529
|
+
--interop /path/to/UiPath.Delegate.Host.Api # omit --interop → discovery only
|
|
506
530
|
```
|
|
507
531
|
|
|
508
532
|
Backend URL defaults to the saved login's org/tenant (override with `--backend` or `AUTOPILOT_BACKEND_URL`). Tokens refresh automatically from `~/.aria/sdk-auth.json`; when refresh permanently fails the host prints a re-login instruction and exits non-zero.
|
package/dist/cli.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
const _0x737805=_0x6108;(function(_0x1f3db3,_0x1a2bea){const _0xb526c9=_0x6108,_0x2c1854=_0x1f3db3();while(!![]){try{const _0x5de1ec=-parseInt(_0xb526c9(0x1b2))/0x1*(-parseInt(_0xb526c9(0x243))/0x2)+-parseInt(_0xb526c9(0x104))/0x3*(parseInt(_0xb526c9(0x8c))/0x4)+parseInt(_0xb526c9(0x163))/0x5*(parseInt(_0xb526c9(0x18b))/0x6)+-parseInt(_0xb526c9(0x178))/0x7*(parseInt(_0xb526c9(0x1ab))/0x8)+parseInt(_0xb526c9(0x162))/0x9*(parseInt(_0xb526c9(0x121))/0xa)+parseInt(_0xb526c9(0x1aa))/0xb+parseInt(_0xb526c9(0x15e))/0xc;if(_0x5de1ec===_0x1a2bea)break;else _0x2c1854['push'](_0x2c1854['shift']());}catch(_0xa25460){_0x2c1854['push'](_0x2c1854['shift']());}}}(_0x2e20,0x88f9c));const __dirname=import.meta.dirname;function _0x6108(_0x574276,_0x509893){_0x574276=_0x574276-0x7d;const _0x2e201c=_0x2e20();let _0x610896=_0x2e201c[_0x574276];return _0x610896;}import _0x50031f from'fs';import _0x1be01c from'path';import{clearLine as _0x171dd1,createInterface as _0x3de0d0,cursorTo as _0xd9f15b}from'node:readline';import{BUSINESS_ANALYSIS_PRELOADED_SKILLS as _0x4bab8e,DelegateAgent as _0x21774d,cancelTurn as _0x56fb03,InteropProcess as _0x3f11c6,complete as _0x4a7413,DEFAULT_MODEL as _0x50a403,createBackendClient as _0x416c12,evaluate as _0x1e6261,isCompletionRequestError as _0x3d514f,isEvaluationRequestError as _0x5749bf,isTranscriptionError as _0x31268b,rerank as _0x21c050,transcribe as _0x3f417f,verify as _0x2a17b5,acceptDelegation as _0x2f6859,cancelDelegation as _0x44e2a0,claimDelegation as _0x3d4254,completeDelegation as _0x46cade,createDelegation as _0x199a74,deleteDelegation as _0x5727ce,dismissDelegation as _0x5cb12e,getSessionDelegations as _0x4a5f5f,isDelegationError as _0x2ad1fd,listDelegations as _0x2ad014,listOrgUsers as _0x4be831,previewDelegation as _0x57154f,TurnResultCollector as _0x1f87d8,agentEventToJsonLine as _0x1128f2,describeBaseUrlRejection as _0x3ddc3c,getActivitySummary as _0x347683,getAuthFilePath as _0x4d0948,getByoWarnings as _0x24790e,getCartographerAllowance as _0x5e074d,getDailyBreakdown as _0x3a8394,getLicensingSummary as _0x3eb0e6,getMonthlySpending as _0xb860fd,isOutputFormat as _0x10531f,isCloudBaseUrl as _0x2fd10e,isSafeProjectFolderSegment as _0x2d642b,listModels as _0x158a89,listSessions as _0x16902e,getSession as _0x597450,renameSession as _0x5e3498,deleteSession as _0x32d7de,forkSession as _0x1e628a,isBackendRequestError as _0x399ac7,MAX_SESSION_PAGE_SIZE as _0x1d1f36,listTenants as _0x46a828,loadAndRefreshAuth as _0x5ec8e8,loadAndRefreshSdkLogin as _0x59e523,parsePlatformBaseUrl as _0x5ac3f3,resolveBackendUrl as _0x17dab8,runHealthCheck as _0x44f818,runHostCommand as _0x2a9e7a,runLoginFlow as _0x3bb5fe,runTurnForResult as _0x349545,saveAuthData as _0x3ababf,switchTenant as _0x164e4c,toJsonLine as _0x17363f,ENV_TO_CLOUD as _0x3b0913,OUTPUT_FORMATS as _0x33a41f}from'@uipath/delegate-sdk';var pt=[_0x737805(0x131),_0x737805(0x196),_0x737805(0x10c),'host','logout','whoami',_0x737805(0x20b),_0x737805(0x194),_0x737805(0x142),_0x737805(0x22f),_0x737805(0xc9),_0x737805(0xa4),'complete',_0x737805(0xc0),_0x737805(0x170),'org-users'],W=['',_0x737805(0x10c),'whoami',_0x737805(0x20b),'sessions',_0x737805(0x142),_0x737805(0x22f),_0x737805(0xc9),'verify',_0x737805(0x111),_0x737805(0xc0),'delegations',_0x737805(0x1cd)],G=[_0x737805(0x19d),_0x737805(0x22e),'high',_0x737805(0x1ff),_0x737805(0x1b7)],mt=_0x4bab8e;function p(_0x1b2b3b,_0x11fb75,_0x40eb56,_0x187fea){const _0x4bb303=_0x737805;let _0x3f2723=_0x1b2b3b[_0x11fb75];return(!_0x3f2723||_0x3f2723[_0x4bb303(0x103)]>0x1&&_0x3f2723[_0x4bb303(0x12a)]('-'))&&(console['error'](_0x40eb56+_0x4bb303(0x1cf)+_0x187fea+'.'),process['exit'](0x2)),_0x3f2723;}function N(_0x202ac5,_0x12cf08,_0x541a7e,_0x39fb18){const _0xd1ac69=_0x737805;let _0x65a338=p(_0x202ac5,_0x12cf08,_0x541a7e,'a\x20number'),_0x2cec2e=Number(_0x65a338);return(!/^\d+$/[_0xd1ac69(0x12c)](_0x65a338)||_0x2cec2e<0x1||!Number[_0xd1ac69(0x1e4)](_0x2cec2e)||_0x39fb18!==void 0x0&&_0x2cec2e>_0x39fb18)&&(console[_0xd1ac69(0x9d)](_0x541a7e+_0xd1ac69(0x23d)+(_0x39fb18===void 0x0?'1\x20or\x20more':_0xd1ac69(0x222)+_0x39fb18)+_0xd1ac69(0x17c)+_0x65a338+'.'),process[_0xd1ac69(0x1d3)](0x2)),_0x2cec2e;}function ft(_0x95b6d1){const _0x4950d4=_0x737805;let _0x50a065={'subcommand':'','prompt':'','print':!0x1,'keepAlive':!0x1,'cleanup':!0x1,'headless':!0x1,'noComputerUse':!0x1,'cartographer':!0x1,'noConnections':!0x1,'noSecurity':!0x1,'noMemory':!0x1,'quiet':!0x1,'verbose':!0x1,'outputFormat':'text','preloadSkills':[],'attachments':[],'skipEnvCheck':!0x1,'includeSubAgents':!0x1,'operands':[],'help':!0x1,'version':!0x1};pt[_0x4950d4(0xf8)](_0x95b6d1[0x0])&&(_0x50a065['subcommand']=_0x95b6d1[0x0],_0x95b6d1=_0x95b6d1[_0x4950d4(0xeb)](0x1));let _0xe41632=[];for(let _0x5a6af3=0x0;_0x5a6af3<_0x95b6d1['length'];_0x5a6af3++){let _0x1ced58=_0x95b6d1[_0x5a6af3];switch(_0x1ced58){case _0x4950d4(0x23f):case'-p':_0x50a065['print']=!0x0;break;case _0x4950d4(0x12d):_0x50a065[_0x4950d4(0x232)]=!0x0;break;case'--cleanup':_0x50a065[_0x4950d4(0x129)]=!0x0;break;case _0x4950d4(0xcd):_0x50a065['headless']=!0x0;break;case _0x4950d4(0xa5):_0x50a065['noComputerUse']=!0x0;break;case _0x4950d4(0x175):_0x50a065[_0x4950d4(0x113)]=!0x0,_0x50a065[_0x4950d4(0x1c7)]=!0x0,_0x50a065[_0x4950d4(0x146)][_0x4950d4(0xf6)](...mt);break;case _0x4950d4(0x215):_0x50a065[_0x4950d4(0xe9)]=!0x0;break;case _0x4950d4(0xb9):_0x50a065[_0x4950d4(0x120)]=!0x0;break;case'--no-memory':_0x50a065[_0x4950d4(0x204)]=!0x0;break;case _0x4950d4(0xea):case'-q':_0x50a065['quiet']=!0x0;break;case _0x4950d4(0x88):_0x50a065[_0x4950d4(0x198)]=!0x0;break;case _0x4950d4(0xb6):_0x50a065[_0x4950d4(0x1af)]=_0x95b6d1[++_0x5a6af3];break;case _0x4950d4(0x8a):_0x50a065[_0x4950d4(0x221)]=_0x95b6d1[++_0x5a6af3];break;case _0x4950d4(0x9c):_0x50a065[_0x4950d4(0x1d7)]=_0x95b6d1[++_0x5a6af3];break;case _0x4950d4(0x213):_0x50a065[_0x4950d4(0x116)]=_0x95b6d1[++_0x5a6af3];break;case _0x4950d4(0x1ef):_0x50a065[_0x4950d4(0x110)]=_0x95b6d1[++_0x5a6af3];break;case _0x4950d4(0x1a6):_0x50a065[_0x4950d4(0x146)][_0x4950d4(0xf6)](p(_0x95b6d1,++_0x5a6af3,_0x1ced58,_0x4950d4(0x23e)));break;case _0x4950d4(0x1a4):{let _0x17e5ca=p(_0x95b6d1,++_0x5a6af3,_0x1ced58,_0x4950d4(0x144));_0x2d642b(_0x17e5ca)||(console[_0x4950d4(0x9d)](_0x4950d4(0x1a8)+_0x17e5ca+_0x4950d4(0xb2)),process['exit'](0x2)),_0x50a065[_0x4950d4(0xee)]=_0x17e5ca;break;}case'--output-format':{let _0x183651=p(_0x95b6d1,++_0x5a6af3,_0x1ced58,'a\x20format\x20('+_0x33a41f[_0x4950d4(0x21a)]('\x20|\x20')+')');_0x10531f(_0x183651)||(console[_0x4950d4(0x9d)](_0x4950d4(0x11d)+_0x183651+_0x4950d4(0x9b)+_0x33a41f[_0x4950d4(0x21a)](_0x4950d4(0x154))+'.'),process['exit'](0x2)),_0x50a065[_0x4950d4(0x83)]=_0x183651;break;}case _0x4950d4(0xce):_0x50a065[_0x4950d4(0x1f9)]=p(_0x95b6d1,++_0x5a6af3,_0x1ced58,_0x4950d4(0x11e));break;case _0x4950d4(0x23c):_0x50a065[_0x4950d4(0x1ba)]=N(_0x95b6d1,++_0x5a6af3,_0x1ced58);break;case'--limit':_0x50a065[_0x4950d4(0xdc)]=N(_0x95b6d1,++_0x5a6af3,_0x1ced58,_0x1d1f36);break;case _0x4950d4(0x192):_0x50a065[_0x4950d4(0x117)]=!0x0;break;case _0x4950d4(0x9e):_0x50a065[_0x4950d4(0x17b)]=p(_0x95b6d1,++_0x5a6af3,_0x1ced58,_0x4950d4(0x1a3));break;case _0x4950d4(0x84):{let _0x2c45d2=_0x1be01c[_0x4950d4(0xd8)](process[_0x4950d4(0xbf)](),p(_0x95b6d1,++_0x5a6af3,_0x1ced58,_0x4950d4(0x132)));_0x50031f[_0x4950d4(0xd9)](_0x2c45d2)||(console[_0x4950d4(0x9d)]('--attach:\x20no\x20such\x20file\x20or\x20folder:\x20'+_0x2c45d2),process[_0x4950d4(0x1d3)](0x2)),_0x50a065['attachments'][_0x4950d4(0xf6)](_0x2c45d2);break;}case _0x4950d4(0x214):_0x50a065[_0x4950d4(0x7e)]=p(_0x95b6d1,++_0x5a6af3,_0x1ced58,_0x4950d4(0x187));break;case _0x4950d4(0xab):_0x50a065[_0x4950d4(0x123)]=p(_0x95b6d1,++_0x5a6af3,_0x1ced58,_0x4950d4(0x1ac));break;case _0x4950d4(0x158):_0x50a065[_0x4950d4(0x101)]=p(_0x95b6d1,++_0x5a6af3,_0x1ced58,_0x4950d4(0x13d));break;case _0x4950d4(0x1bd):_0x50a065[_0x4950d4(0x164)]=N(_0x95b6d1,++_0x5a6af3,_0x1ced58,0x16d);break;case _0x4950d4(0x7f):_0x50a065[_0x4950d4(0x165)]=_0x1be01c[_0x4950d4(0xd8)](process[_0x4950d4(0xbf)](),p(_0x95b6d1,++_0x5a6af3,_0x1ced58,_0x4950d4(0x15c)));break;case _0x4950d4(0x1ed):_0x50a065[_0x4950d4(0x143)]=_0x1be01c[_0x4950d4(0xd8)](process[_0x4950d4(0xbf)](),p(_0x95b6d1,++_0x5a6af3,_0x1ced58,_0x4950d4(0x15c)));break;case _0x4950d4(0xe0):{let _0x4de5a7=p(_0x95b6d1,++_0x5a6af3,_0x1ced58,_0x4950d4(0x19b));G[_0x4950d4(0xf8)](_0x4de5a7)||(console['error']('Invalid\x20--effort:\x20'+_0x4de5a7+'.\x20Use\x20'+G[_0x4950d4(0x21a)]('\x20|\x20')+'.'),process[_0x4950d4(0x1d3)](0x2)),_0x50a065[_0x4950d4(0x234)]=_0x4de5a7;break;}case _0x4950d4(0x173):{let _0x417406=_0x95b6d1[++_0x5a6af3];(!_0x417406||_0x417406[_0x4950d4(0x12a)]('--'))&&(console[_0x4950d4(0x9d)](_0x4950d4(0xd6)),process['exit'](0x2)),_0x50a065['tenant']=_0x417406;break;}case _0x4950d4(0x181):{let _0x143365=_0x95b6d1[++_0x5a6af3];['alpha',_0x4950d4(0xc4),_0x4950d4(0x1df),_0x4950d4(0x1f4)][_0x4950d4(0xf8)](_0x143365)||(console['error']('Invalid\x20--env:\x20'+_0x143365+_0x4950d4(0x20a)),process[_0x4950d4(0x1d3)](0x2)),_0x50a065[_0x4950d4(0x18f)]=_0x143365;break;}case _0x4950d4(0x242):case _0x4950d4(0xcf):{let _0x108f06=p(_0x95b6d1,++_0x5a6af3,_0x1ced58,'a\x20deployment\x20URL,\x20e.g.\x20https://automationsuite.contoso.com'),_0x37b92a=_0x5ac3f3(_0x108f06);if(_0x37b92a['ok']===!0x1){console[_0x4950d4(0x9d)](_0x3ddc3c(_0x108f06,_0x37b92a[_0x4950d4(0x12f)])),process[_0x4950d4(0x1d3)](0x2);break;}_0x50a065[_0x4950d4(0x89)]=_0x37b92a[_0x4950d4(0x177)];break;}case _0x4950d4(0xd0):_0x50a065[_0x4950d4(0x90)]=!0x0;break;case'-h':case'--help':_0x50a065[_0x4950d4(0xfb)]=!0x0;break;case'-v':case'--version':_0x50a065['version']=!0x0;break;default:_0x1ced58[_0x4950d4(0x12a)]('--')&&(console[_0x4950d4(0x9d)](_0x4950d4(0x109)+_0x1ced58),process[_0x4950d4(0x1d3)](0x2)),_0xe41632[_0x4950d4(0xf6)](_0x1ced58);}}return _0x50a065[_0x4950d4(0x196)]!==void 0x0&&_0x50a065['subcommand']!==_0x4950d4(0x131)&&(console[_0x4950d4(0x9d)](_0x4950d4(0x140)),process[_0x4950d4(0x1d3)](0x2)),_0x50a065[_0x4950d4(0x89)]!==void 0x0&&_0x50a065[_0x4950d4(0x18f)]!==void 0x0&&(console[_0x4950d4(0x9d)](_0x4950d4(0x1d4)),process[_0x4950d4(0x1d3)](0x2)),_0x50a065[_0x4950d4(0x89)]!==void 0x0&&_0x50a065['subcommand']!==_0x4950d4(0x131)&&(console[_0x4950d4(0x9d)]('--url\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Other\x20commands\x20follow\x20the\x20saved\x20login,\x20or\x20--backend\x20<url>.'),process['exit'](0x2)),_0x50a065['days']!==void 0x0&&_0x50a065[_0x4950d4(0x10a)]!==_0x4950d4(0x142)&&(console[_0x4950d4(0x9d)](_0x4950d4(0x1f3)),process[_0x4950d4(0x1d3)](0x2)),_0x50a065[_0x4950d4(0x17b)]!==void 0x0&&(_0x50a065[_0x4950d4(0x10a)]!==_0x4950d4(0x111)&&_0x50a065[_0x4950d4(0x10a)]!==''||_0x50a065['cleanup'])&&(console[_0x4950d4(0x9d)](_0x4950d4(0x92)),process['exit'](0x2)),_0x50a065[_0x4950d4(0xa9)][_0x4950d4(0x103)]>0x0&&(_0x50a065[_0x4950d4(0x10a)]!==''||_0x50a065[_0x4950d4(0x129)])&&(console[_0x4950d4(0x9d)](_0x4950d4(0x1f2)),process['exit'](0x2)),_0x50a065[_0x4950d4(0x90)]&&_0x50a065['subcommand']!==_0x4950d4(0x131)&&(console[_0x4950d4(0x9d)](_0x4950d4(0xf5)),process['exit'](0x2)),_0x50a065[_0x4950d4(0x83)]!==_0x4950d4(0x17e)&&!W[_0x4950d4(0xf8)](_0x50a065[_0x4950d4(0x10a)])&&(console[_0x4950d4(0x9d)](_0x4950d4(0x1d8)+_0x50a065[_0x4950d4(0x83)]+_0x4950d4(0x1a0)+W[_0x4950d4(0x8e)](Boolean)['join'](',\x20')+'.'),process[_0x4950d4(0x1d3)](0x2)),(_0x50a065[_0x4950d4(0x1ba)]!==void 0x0||_0x50a065[_0x4950d4(0xdc)]!==void 0x0||_0x50a065['includeSubAgents'])&&_0x50a065['subcommand']!==_0x4950d4(0x194)&&(console[_0x4950d4(0x9d)]('--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`delegate-cli\x20sessions`\x20only.'),process['exit'](0x2)),(_0x50a065['delegateTo']!==void 0x0||_0x50a065[_0x4950d4(0x101)]!==void 0x0)&&_0x50a065[_0x4950d4(0x10a)]!==_0x4950d4(0x170)&&(console[_0x4950d4(0x9d)]('--to\x20and\x20--summary\x20apply\x20to\x20`delegate-cli\x20delegations\x20create`\x20only.'),process[_0x4950d4(0x1d3)](0x2)),_0x50a065[_0x4950d4(0x7e)]!==void 0x0&&_0x50a065[_0x4950d4(0x10a)]!==_0x4950d4(0x194)&&(console['error'](_0x4950d4(0x179)),process['exit'](0x2)),_0x50a065['preloadSkills']=[...new Set(_0x50a065[_0x4950d4(0x146)])],_0x50a065[_0x4950d4(0x216)]=_0xe41632,_0x50a065[_0x4950d4(0x1c3)]=_0xe41632['join']('\x20'),_0x50a065;}function _0x2e20(){const _0x3ba996=['\x20(current)','Usage:\x20delegate-cli\x20sessions\x20cancel\x20<session-id>\x20--turn\x20<turn-id>','--url','50698bvxvEc','score\x20','toFixed','Missing\x20prompt.\x20Pass\x20it\x20as\x20an\x20argument,\x20pipe\x20it\x20via\x20stdin,\x20or\x20run\x20`delegate-cli\x20--help`.','extra_pool_consumed_pu','tool_call','Cancel\x20requested\x20for\x20turn\x20','Task\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Accepted','turnId','--working-dir','pending','\x20\x20\x20\x20Not\x20available\x20on\x20this\x20plan','token_units','outputFormat','--attach','\x20tokens\x0a','--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`delegate-cli\x20sessions\x20[list]`\x20only.','score','--verbose','url','--model','assignedUser','4pnQznZ','destroy','filter','concat','skipEnvCheck','from','--json-schema\x20applies\x20to\x20prompts\x20and\x20to\x20`delegate-cli\x20complete`\x20only.','delegations\x20list\x20<backend-project-id>','structured','Unknown\x20sessions\x20action:\x20','readFileSync','write','\x20PU','complete\x20needs\x20--json-schema\x20<file>:\x20delegate-cli\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22.','):\x0a\x0a','.\x20Use\x20','--runner-url','error','--json-schema','lastType','toString','active_days','the\x20JSON\x20schema','\x20into\x20','verify','--no-computer-use','task','pendingResults','delegate-cli','attachments','print','--to','\x20(in\x20','locked','transcribe:\x20cannot\x20read\x20','Cost:\x20\x20\x20$','period_days','\x20(no\x20cap\x20enforced)','\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).','No\x20delegations.\x0a','Session:\x20\x20\x20\x20\x20\x20','total_sessions','--backend','title','),\x20','--no-security','Licensing:\x20\x20\x20\x20','\x20<id>','orgLogicalName','tenantName','show','cwd','transcribe','stdout','--to,\x20--summary\x20and\x20--session\x20apply\x20to\x20`delegate-cli\x20delegations\x20create`\x20only.','dismiss','staging','delegations\x20claim\x20<delegation-id|delegate://delegation/…>','delegations\x20complete\x20<delegation-id>\x20\x22<answer>\x22|-','Tenant:\x20\x20\x20\x20\x20\x20\x20','\x20(estimated\x20$','rerank','model_id','claim','daily_usage','--headless','--session','--authority','--skip-env-check','description','Source:\x20\x20\x20\x20\x20\x20\x20','padEnd','--days\x20applies\x20to\x20`delegate-cli\x20usage\x20activity|daily`;\x20the\x20summary\x20covers\x20the\x20current\x20month.','getSessionId','--tenant\x20requires\x20a\x20tenant\x20name.','model_version','resolve','existsSync','create','\x20\x20TITLE\x0a','limit','Use:\x20delegate-cli\x20delegations\x20','index','skip','--effort','\x20this\x20month','\x20\x20\x20\x20BYO\x20warning:\x20','stringify','Token:\x20\x20\x20\x20\x20\x20\x20\x20expires\x20','Cartographer:\x20','log','total_tokens','No\x20CLI\x20login\x20found\x20—\x20nothing\x20to\x20remove.','noConnections','--quiet','slice','auth','rubric_version','projectId','\x0aAvailable\x20models\x20(','toolName','whoami','all','object','environment\x20variables\x20(AUTH_TOKEN/TENANT_ID/ORG_ID)','--skip-env-check\x20applies\x20to\x20`delegate-cli\x20login`\x20only.','push','Usage:\x20delegate-cli\x20org-users\x20<name\x20or\x20email\x20prefix>','includes','Licensing:\x20\x20\x20\x20no\x20licensing\x20quota\x20applies','rmSync','help','\x20\x22<prompt>\x22\x0aAnswer\x20with:\x20delegate-cli\x20delegations\x20complete\x20','delegationId','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','displayName','\x20from\x20','contextSummary','\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\x20(Whisper):\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\x2025\x20MiB.\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,\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--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--no-computer-use\x20--preload-skill\x20business-analysis\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--preload-skill\x20project-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\x20Add\x20--project/--working-dir\x20for\x20where\x20the\x20files\x20live,\x20and\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20extra\x20--preload-skill\x20flags\x20for\x20more\x20skills\x20—\x20a\x20skill\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20preset\x20already\x20covers\x20is\x20not\x20preloaded\x20twice.\x20An\x20explicit\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--headless\x20still\x20wins\x20and\x20turns\x20interop\x20off\x0a\x20\x20--project\x20ID\x20\x20\x20\x20\x20\x20Route\x20the\x20session\x27s\x20local\x20wiki\x20and\x20plans\x20to\x20a\x20project\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(<working-dir>/projects/<ID>/wiki).\x20Client-side\x20key\x20only\x0a\x20\x20--working-dir\x20PATH\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Shell\x20cwd\x20for\x20the\x20agent\x20and\x20root\x20for\x20SDK-local\x20state.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Relative\x20paths\x20resolve\x20against\x20the\x20current\x20directory;\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20directory\x20is\x20created\x20if\x20missing\x0a\x20\x20--skills-path\x20PATH\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Extra\x20bundled-skills\x20directory\x20(merged\x20with\x20the\x20installed\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20app\x27s\x20skills\x20and\x20DELEGATE_BUNDLED_SKILLS_PATH)\x0a\x20\x20--effort\x20TIER\x20\x20\x20\x20\x20Reasoning\x20effort:\x20low\x20|\x20medium\x20|\x20high\x20|\x20xhigh\x20|\x20max.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default:\x20the\x20model\x27s\x20recommended\x20tier\x0a\x20\x20--session\x20ID\x20\x20\x20\x20\x20\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-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','length','2608602WOgofq','Usage:\x20delegate-cli\x20sessions\x20fork\x20<id>\x20[<message-id>]','AUTH_TOKEN_FILE\x20\x27','\x20token\x20units)','confidence','Unknown\x20flag:\x20','subcommand','pct_used','models','results','stop','🔧\x20','workerId','complete','delegation','cartographer','completion_tokens','Unknown\x20delegations\x20action:\x20','interopPath','includeSubAgents','\x20completion','map','host','ASSIGNEE','\x20--turn\x20','Invalid\x20--output-format:\x20','a\x20session\x20id','deleted','noSecurity','299260EMyQYA','Interop\x20stopped\x20(if\x20it\x20was\x20running).','delegateTo','name','parentSessionId','\x20of\x20a\x20$','delegations\x20show\x20<delegation-id|delegate://delegation/…>','--env\x20localhost\x20has\x20no\x20OAuth\x20flow;\x20pick\x20alpha,\x20staging,\x20or\x20production.','cleanup','startsWith','.\x20Use\x20`delegate-cli\x20usage`,\x20`usage\x20activity`\x20or\x20`usage\x20daily`.','test','--keep-alive','\x27\x20is\x20empty.','rejection',')\x20—\x20saved\x20to\x20','login','a\x20file\x20path','keys','Session\x20\x20\x20\x20\x20\x20\x20','Session\x20','package.json','\x20not\x20found,\x20has\x20no\x20messages','\x20of\x20session\x20','\x20\x22<answer>\x22\x0a','.\x20Share:\x20','tokenExpiresAt','\x20\x22<prompt>\x22\x0a','a\x20briefing\x20text','\x0a🤔\x20','Token:\x20\x20\x20\x20\x20\x20\x20\x20expired\x20','--tenant\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Switch\x20tenants\x20with:\x20delegate-cli\x20tenant\x20<name>','\x20(resume\x20with\x20--session\x20','usage','bundledSkillsPath','a\x20project\x20id','onEvent','preloadSkills','ID\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Title\x20\x20\x20\x20\x20\x20\x20\x20\x20','answers','lockReason',']\x20Backend\x20URL:\x20',';\x20the\x20saved\x20login\x20still\x20uses\x20','\x20\x20TASK\x0a','status','choice\x20','trim','\x20not\x20found.','tenantId','Base\x20URL:\x20\x20\x20\x20\x20','\x20|\x20','headless','quiet','end','--summary','detail','updatedAt','SIGINT','a\x20directory\x20path','resume','9272916ANCNvm','You>\x20','From\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','isError','144RiXiRv','5LIdruU','days','workingDirectory','fork','thinking','file','\x20(resets\x20','unknown\x20slug',').\x0a','cancelled','\x20prompt,\x20','toUpperCase','unknown','delegations','total_cost_usd','accept','--tenant','then','--cartographer','dismissed','baseUrl','7466312tOkKDm','--turn\x20applies\x20to\x20`delegate-cli\x20sessions\x20cancel`\x20only.','stderr','jsonSchemaPath',',\x20got\x20','\x20(cancel\x20with:\x20delegate-cli\x20sessions\x20cancel\x20','text','floor','Usage:\x20delegate-cli\x20sessions\x20[list]\x20[--page\x20N]\x20[--limit\x20N]\x20[--include-subagents]','--env','data','Delegated\x20','Usage:\x20delegate-cli\x20','/exit','Usage:\x20delegate-cli\x20sessions\x20','a\x20turn\x20id','turn_start','deployment','No\x20sessions\x20on\x20page\x20','1129038yugdcz','message',':\x20cannot\x20read\x20the\x20request\x20(','sourceTitle','env','session_start','.aria','--include-subagents','delete','sessions','Deleted\x20session\x20','tenant','\x27\x20cannot\x20be\x20read:\x20','verbose','estimated_cost_usd','More:\x20delegate-cli\x20sessions\x20--page\x20','an\x20effort\x20tier','stack','low','.\x20Use:\x20','date','\x20applies\x20to\x20prompts\x20and\x20to\x20these\x20commands\x20only:\x20','models_breakdown','STATUS','a\x20JSON\x20schema\x20file','--project','\x20(stdin\x20was\x20empty)','--preload-skill','\x20\x20from\x20','Invalid\x20--project:\x20\x22','isDesktopFallback','9680297txJoiL','8QoIJYj','an\x20email\x20address\x20or\x20name','transcribe\x20needs\x20audio:\x20delegate-cli\x20transcribe\x20<file>,\x20or\x20-\x20to\x20read\x20stdin.','auth.json','backendUrl','limit_enabled','add','7etAcAd','bind','now','utf-8','No\x20CLI\x20login\x20found.\x20Run\x20`delegate-cli\x20login\x20--env\x20<alpha|staging|production>`\x20first.','max','session_consumed_pu','Delegation\x20\x20\x20\x20','page','hide','sendMessage','--days','Organization:\x20','Session:\x20','\x20in\x20progress\x20on\x20session\x20','result','toISOString','prompt','delegations\x20delete\x20<delegation-id>','sourceUserEmail','stdin','noComputerUse','entries','choice','string','total_token_units','probability\x20','org-users','userId','\x20requires\x20','round','the\x20request','--session\x20applies\x20to\x20the\x20`delegate-cli\x20usage`\x20summary\x20only.','exit','Pass\x20either\x20--env\x20(a\x20named\x20cloud)\x20or\x20--url\x20(any\x20other\x20deployment),\x20not\x20both.','Turn:\x20','origin','runnerUrl','--output-format\x20','UPDATED','parse','forEach','a\x20colleague','\x20delegation\x20','Enter\x20sends\x20a\x20message.\x20/exit\x20or\x20EOF\x20exits;\x20Ctrl+C\x20stops\x20and\x20exits.\x0a','production','close','padStart','delegations\x20create\x20--session\x20<id>\x20[--to\x20<email|name>]\x20[--summary\x20<text>]\x20\x22<task>\x22|-','Auth\x20comes\x20from\x20AUTH_TOKEN/TENANT_ID/ORG_ID\x20—\x20set\x20TENANT_ID\x20and\x20TENANT_SLUG\x20to\x20change\x20the\x20tenant.','isSafeInteger','Structured\x20output\x20failed:\x20','\x20\x20(sub-agent\x20of\x20','%\x20of\x20','No\x20one\x20matches\x20\x22','response','alreadyAccepted','probability','Bearer\x20','--skills-path','mode','--worker-id','daily','\x20(Delegate\x20desktop\x20app\x20fallback)','--attach\x20applies\x20to\x20prompts\x20only.','--days\x20applies\x20to\x20`delegate-cli\x20usage\x20activity|daily`\x20only.','localhost','done','email','structuredError','list','sessionId','Deployment:\x20\x20\x20','expiresAt','Unknown\x20usage\x20view:\x20','Created\x20delegation\x20','The\x20saved\x20CLI\x20login\x20could\x20not\x20be\x20refreshed.\x20Run\x20`delegate-cli\x20login`\x20again.','xhigh','activity','No\x20answers\x20awaiting\x20acceptance.\x0a','No\x20structured\x20output:\x20the\x20turn\x20failed\x20(','accessToken','noMemory','UIPATH_BASE_URL\x20is\x20unusable.\x20','total_completion_tokens','\x20sessions\x20on\x20','type','off','.\x20Use\x20alpha\x20|\x20staging\x20|\x20production\x20|\x20localhost.','check','delegations\x20cancel\x20<delegation-id>','Forked\x20','self-hosted\x20(Automation\x20Suite\x20/\x20Dedicated)','Claimed\x20from\x20delegation\x20','tool','period_end','pause','--interop','--turn','--no-connections','operands','version','initialize','Owner\x20\x20\x20\x20\x20\x20\x20\x20\x20','join','assignedUserEmail','complete\x20needs\x20a\x20prompt:\x20delegate-cli\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22,\x20or\x20-\x20to\x20read\x20stdin.','content','\x20min)','verdict','cancel','model','from\x201\x20to\x20','catch','organizationId','\x20—\x20sign\x20out\x20in\x20the\x20Delegate\x20app\x20to\x20clear\x20that.','rename','isArray','Model\x20','monthly_limit_usd','\x0a⚠️\x20\x20Auth\x20expired.\x20Opening\x20browser\x20to\x20re-login…\x0a','logout','exitCode','✓\x20Done\x0a','medium','evaluate','isTTY','byoWarning','keepAlive','\x0aStopping…\x20(Ctrl+C\x20again\x20to\x20force\x20exit)\x0a','effort','Tenant:\x20','\x20(confidence\x20','restore',',\x20whose\x20tenant\x20is\x20chosen\x20in\x20the\x20app.\x20Run\x20`delegate-cli\x20login\x20--env\x20<env>`\x20for\x20a\x20CLI\x20login\x20of\x20your\x20own.','\x20PU\x20used','Removed\x20','\x20\x20\x20\x20','--page','\x20must\x20be\x20a\x20whole\x20number\x20','a\x20skill\x20name','--print'];_0x2e20=function(){return _0x3ba996;};return _0x2e20();}var S=_0x39297b=>{const _0x1b2234=_0x737805;process[_0x1b2234(0xc1)][_0x1b2234(0x97)](_0x39297b);};function gt(){const _0x2b0674=_0x737805;let _0x7581ac=process[_0x2b0674(0xc1)]['write'],_0x2caf85=_0x7581ac[_0x2b0674(0x1b3)](process[_0x2b0674(0xc1)]),_0x350c7d=S;return S=_0x270060=>{_0x2caf85(_0x270060);},process[_0x2b0674(0xc1)]['write']=(..._0x6f18d8)=>process[_0x2b0674(0x17a)][_0x2b0674(0x97)](..._0x6f18d8),()=>{const _0x105da2=_0x2b0674;process[_0x105da2(0xc1)]['write']=_0x7581ac,S=_0x350c7d;};}function l(_0x11cab0,_0x15cc69,_0x1a25a5){const _0x9bd1a1=_0x737805;if(_0x11cab0[_0x9bd1a1(0x83)]==='text'){_0x1a25a5(_0x15cc69);return;}S(_0x17363f(_0x15cc69));}function ht(){const _0x52f597=_0x737805;let _0x42aab5=_0x52f597(0x102)['trim']();console[_0x52f597(0xe6)](_0x42aab5);}function wt(){const _0x2c212f=_0x737805;try{return JSON[_0x2c212f(0x1da)](_0x50031f[_0x2c212f(0x96)](_0x1be01c[_0x2c212f(0x21a)](__dirname,'..',_0x2c212f(0x136)),_0x2c212f(0x1b5)))[_0x2c212f(0x217)]||_0x2c212f(0x16f);}catch{return _0x2c212f(0x16f);}}var yt=0x7d0;async function K(_0x3d748d,_0x2adaa7){const _0x2c35f8=_0x737805;let _0x501d60=_0x2adaa7?[_0x2adaa7]:[];for await(let _0x18baee of _0x3d748d)_0x501d60['push'](Buffer[_0x2c35f8(0x91)](_0x18baee));return Buffer[_0x2c35f8(0x8f)](_0x501d60)[_0x2c35f8(0xa0)](_0x2c35f8(0x1b5))[_0x2c35f8(0x150)]();}function kt(_0x1f8a56,_0x25f2f1){return new Promise(_0x4ce279=>{const _0x2041bd=_0x6108;let _0xd8050=_0x1a77e2=>{const _0x44576b=_0x6108;clearTimeout(_0x16bbbf),_0x1f8a56['off'](_0x44576b(0x182),_0x1e1425),_0x1f8a56[_0x44576b(0x209)]('end',_0x52f17f),_0x1f8a56[_0x44576b(0x209)](_0x44576b(0x9d),_0x52f17f),_0x1f8a56[_0x44576b(0x212)](),_0x4ce279(_0x1a77e2);},_0x1e1425=_0x2eea2f=>_0xd8050(Buffer[_0x2041bd(0x91)](_0x2eea2f)),_0x52f17f=()=>_0xd8050(null),_0x16bbbf=setTimeout(()=>_0xd8050(null),_0x25f2f1);_0x1f8a56['on'](_0x2041bd(0x182),_0x1e1425),_0x1f8a56['on'](_0x2041bd(0x157),_0x52f17f),_0x1f8a56['on'](_0x2041bd(0x9d),_0x52f17f),_0x1f8a56[_0x2041bd(0x15d)]();});}async function I(_0x5b2c31,_0x217876,_0xa993d9=yt){const _0x1f0aba=_0x737805;let _0x5832ca=_0x5b2c31==='-';if(!_0x5832ca&&_0x5b2c31)return _0x5b2c31;if(!_0x5832ca&&_0x217876[_0x1f0aba(0x230)])return'';if(_0x5832ca)return K(_0x217876,null);let _0xb34b23=await kt(_0x217876,_0xa993d9);return _0xb34b23?K(_0x217876,_0xb34b23):'';}function L(){const _0x449f61=_0x737805;return _0x1be01c[_0x449f61(0x21a)](process.env.HOME||process.env.USERPROFILE||'',_0x449f61(0x191),_0x449f61(0x1ae));}function $(_0x3d0e90){const _0x2cd6eb=_0x737805;try{let _0x292ce6=JSON[_0x2cd6eb(0x1da)](_0x50031f[_0x2cd6eb(0x96)](_0x3d0e90,_0x2cd6eb(0x1b5)));return!_0x292ce6[_0x2cd6eb(0x203)]||!_0x292ce6[_0x2cd6eb(0x152)]||!_0x292ce6[_0x2cd6eb(0x224)]?null:_0x292ce6;}catch{return null;}}function St(){const _0x572df3=_0x737805;let _0x19c7ae=[{'file':_0x4d0948(),'isDesktopFallback':!0x1},{'file':L(),'isDesktopFallback':!0x0}];for(let _0x4c19fd of _0x19c7ae){let _0x4b37c6=$(_0x4c19fd[_0x572df3(0x168)]);if(_0x4b37c6)return{..._0x4c19fd,'auth':_0x4b37c6};}return null;}async function bt(){const _0x355f20=_0x737805;let _0x21ea87=_0x4d0948();if(!_0x50031f[_0x355f20(0xd9)](_0x21ea87)){let _0x1b5cbe=L();console[_0x355f20(0xe6)]($(_0x1b5cbe)?'No\x20CLI\x20login\x20found.\x20Note:\x20the\x20CLI\x20is\x20currently\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20'+_0x1b5cbe+_0x355f20(0x225):_0x355f20(0xe8));return;}_0x50031f[_0x355f20(0xfa)](_0x21ea87),console[_0x355f20(0xe6)](_0x355f20(0x23a)+_0x21ea87);}async function vt(_0xdf6e60){const _0x50635b=_0x737805;let _0x2e79bf=O(),_0x113119,_0x229641;if(_0x2e79bf)_0x113119=_0x2e79bf,_0x229641=_0x50635b(0xf4);else{let _0x2186e3=St();if(!_0x2186e3)throw new Error(le);_0x113119=_0x2186e3[_0x50635b(0xec)],_0x229641=_0x2186e3[_0x50635b(0x1a9)]?_0x2186e3[_0x50635b(0x168)]+_0x50635b(0x1f1):_0x2186e3[_0x50635b(0x168)];}let _0x27df11={'source':_0x229641,'baseUrl':_0x113119[_0x50635b(0x177)]??null,'deployment':Et(_0x113119['baseUrl']),'organization':{'id':_0x113119[_0x50635b(0x224)],'slug':_0x113119[_0x50635b(0xbc)]??null},'tenant':{'id':_0x113119[_0x50635b(0x152)],'name':_0x113119[_0x50635b(0xbd)]??null},'tokenExpiresAt':_0x113119['expiresAt']?new Date(_0x113119[_0x50635b(0x1fb)]*0x3e8)[_0x50635b(0x1c2)]():null};l(_0xdf6e60,_0x27df11,()=>{const _0x136f0b=_0x50635b;let _0xb10575=[_0x136f0b(0xd2)+_0x229641,_0x136f0b(0x153)+(_0x113119['baseUrl']??_0x136f0b(0x16f)),_0x136f0b(0x1fa)+_0x27df11[_0x136f0b(0x189)],_0x136f0b(0x1be)+(_0x113119[_0x136f0b(0xbc)]??_0x136f0b(0x16a))+'\x20('+_0x113119[_0x136f0b(0x224)]+')',_0x136f0b(0xc7)+(_0x113119['tenantName']??'unknown\x20slug')+'\x20('+_0x113119['tenantId']+')'];if(_0x113119[_0x136f0b(0x1fb)]){let _0x1c5bd1=_0x113119[_0x136f0b(0x1fb)]-Math[_0x136f0b(0x17f)](Date[_0x136f0b(0x1b4)]()/0x3e8);_0xb10575[_0x136f0b(0xf6)](_0x1c5bd1>0x0?_0x136f0b(0xe4)+_0x27df11[_0x136f0b(0x13b)]+_0x136f0b(0xac)+Math[_0x136f0b(0x1d0)](_0x1c5bd1/0x3c)+_0x136f0b(0x21e):_0x136f0b(0x13f)+_0x27df11[_0x136f0b(0x13b)]);}process['stdout'][_0x136f0b(0x97)](_0xb10575[_0x136f0b(0x21a)]('\x0a')+'\x0a');});}var le='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 Et(_0x3bb131){const _0x4b2c51=_0x737805;return _0x3bb131?_0x2fd10e(_0x3bb131)?'UiPath\x20Cloud':_0x4b2c51(0x20e):_0x4b2c51(0x16f);}function O(){let _0x82d2e7=process.env.AUTH_TOKEN_FILE;return(process.env.AUTH_TOKEN||_0x82d2e7)&&process.env.TENANT_ID&&process.env.ORG_ID?{'accessToken':_0x82d2e7?At(_0x82d2e7):process.env.AUTH_TOKEN,..._0x82d2e7?{'accessTokenFile':_0x82d2e7}:{},'tenantId':process.env.TENANT_ID,'organizationId':process.env.ORG_ID,'orgLogicalName':process.env.ORG_SLUG,'tenantName':process.env.TENANT_SLUG,'baseUrl':ce()}:null;}function At(_0x4e7684){const _0x1fbd3b=_0x737805;let _0x589840;try{_0x589840=_0x50031f[_0x1fbd3b(0x96)](_0x4e7684,_0x1fbd3b(0x1b5))[_0x1fbd3b(0x150)]();}catch(_0x19c1e7){throw new Error('AUTH_TOKEN_FILE\x20\x27'+_0x4e7684+_0x1fbd3b(0x197)+_0x19c1e7['message']);}let _0x4a2153=_0x589840[_0x1fbd3b(0x12a)](_0x1fbd3b(0x1ec))?_0x589840[_0x1fbd3b(0xeb)](0x7)[_0x1fbd3b(0x150)]():_0x589840;if(!_0x4a2153)throw new Error(_0x1fbd3b(0x106)+_0x4e7684+_0x1fbd3b(0x12e));return _0x4a2153;}function ce(){const _0x3aff25=_0x737805;let _0x5dda41=process.env.UIPATH_BASE_URL;if(!_0x5dda41)return;let _0xaee131=_0x5ac3f3(_0x5dda41);if(_0xaee131['ok']===!0x1)throw new Error(_0x3aff25(0x205)+_0x3ddc3c(_0x5dda41,_0xaee131[_0x3aff25(0x12f)]));return _0xaee131['baseUrl'];}async function P(){let _0x41f299=O();if(_0x41f299)return _0x41f299;let _0xd9e40c=await _0x5ec8e8();if(_0xd9e40c)return _0xd9e40c;throw new Error(le);}async function It(){const _0x3ae7a9=_0x737805;await new _0x3f11c6()[_0x3ae7a9(0x10e)]({'force':!0x0}),console[_0x3ae7a9(0xe6)](_0x3ae7a9(0x122));}function F(_0x32638c,_0x3ff645,_0x3c76e0){const _0x5f0ebf=_0x737805;_0x32638c?process[_0x5f0ebf(0x17a)][_0x5f0ebf(0x97)]('[env='+_0x32638c+_0x5f0ebf(0x14b)+_0x3c76e0+'\x0a'):!_0x3ff645&&!process.env.BACKEND_URL&&process[_0x5f0ebf(0x17a)][_0x5f0ebf(0x97)]('[saved\x20login]\x20Backend\x20URL:\x20'+_0x3c76e0+'\x0a');}async function f(_0x430c41){const _0x1396ab=_0x737805;let _0x5371ed=await P(),_0x2fc24f=_0x17dab8(_0x430c41[_0x1396ab(0x18f)],_0x5371ed,_0x430c41[_0x1396ab(0x1af)]);return F(_0x430c41['env'],_0x430c41[_0x1396ab(0x1af)],_0x2fc24f),{'auth':_0x5371ed,'backendUrl':_0x2fc24f,'client':_0x416c12({'auth':_0x5371ed,'backendUrl':_0x2fc24f})};}async function $t(_0x50bfe3){const _0x505ccf=_0x737805;let {client:_0x44ba62}=await f(_0x50bfe3),[_0x13416b,_0x5769e0]=await Promise[_0x505ccf(0xf2)]([_0x158a89(_0x44ba62),_0x24790e(_0x44ba62)[_0x505ccf(0x223)](_0x45ff71=>(process[_0x505ccf(0x17a)][_0x505ccf(0x97)]('Could\x20not\x20check\x20BYO\x20model\x20warnings:\x20'+(_0x45ff71 instanceof Error?_0x45ff71['message']:String(_0x45ff71))+'\x0a'),{}))]),_0x3ad88b=_0x13416b[_0x505ccf(0x119)](_0x967058=>_0x5769e0[_0x967058['id']]?{..._0x967058,'byoWarning':_0x5769e0[_0x967058['id']]}:_0x967058);l(_0x50bfe3,_0x3ad88b,Tt);}function Tt(_0x3b0a9e){const _0x313680=_0x737805;if(_0x3b0a9e['length']===0x0){process[_0x313680(0x17a)][_0x313680(0x97)]('No\x20models\x20available\x20for\x20this\x20product/tenant.\x0a');return;}process['stdout']['write'](_0x313680(0xef)+_0x3b0a9e[_0x313680(0x103)]+_0x313680(0x9a));for(let _0x2cc311 of _0x3b0a9e){let _0x55d141=_0x2cc311['name']&&_0x2cc311[_0x313680(0x124)]!==_0x2cc311['id']?'\x20('+_0x2cc311[_0x313680(0x124)]+')':'';process[_0x313680(0xc1)][_0x313680(0x97)]('\x20\x20'+_0x2cc311['id']+_0x55d141+'\x0a'),_0x2cc311[_0x313680(0xd1)]&&process[_0x313680(0xc1)]['write'](_0x313680(0x23b)+_0x2cc311['description']+'\x0a'),_0x2cc311[_0x313680(0xad)]&&process[_0x313680(0xc1)][_0x313680(0x97)](_0x313680(0x81)+(_0x2cc311[_0x313680(0x14a)]?'\x20('+_0x2cc311['lockReason']+')':'')+'\x0a'),_0x2cc311[_0x313680(0x231)]&&process[_0x313680(0xc1)][_0x313680(0x97)](_0x313680(0xe2)+_0x2cc311[_0x313680(0x231)]+'\x0a');}process[_0x313680(0xc1)][_0x313680(0x97)]('\x0aUse\x20with:\x20delegate-cli\x20--model\x20<id>\x20\x22<prompt>\x22\x0a');}var z=[_0x737805(0x1f8),_0x737805(0xbe),_0x737805(0x226),_0x737805(0x193),_0x737805(0x220),_0x737805(0x166)];async function xt(_0xb0c784){const _0x201301=_0x737805;let [_0x240697='',_0x4c8b42='',..._0x39ef21]=_0xb0c784['operands'];if(_0x240697&&!z[_0x201301(0xf8)](_0x240697)&&(console[_0x201301(0x9d)](_0x201301(0x95)+_0x240697+_0x201301(0x19e)+z[_0x201301(0x21a)](_0x201301(0x154))+'.'),process['exit'](0x2)),_0xb0c784[_0x201301(0x7e)]!==void 0x0&&_0x240697!==_0x201301(0x220)&&(console[_0x201301(0x9d)](_0x201301(0x179)),process[_0x201301(0x1d3)](0x2)),_0x240697&&_0x240697!=='list'){await Dt(_0xb0c784,_0x240697,_0x4c8b42,_0x39ef21['join']('\x20')[_0x201301(0x150)]());return;}_0xb0c784['operands'][_0x201301(0x103)]>0x1&&(console[_0x201301(0x9d)](_0x201301(0x180)),process['exit'](0x2));let {client:_0x32e654}=await f(_0xb0c784),_0x4d51de=await _0x16902e(_0x32e654,{'page':_0xb0c784[_0x201301(0x1ba)],'pageSize':_0xb0c784[_0x201301(0xdc)],'includeSubAgents':_0xb0c784[_0x201301(0x117)]});l(_0xb0c784,_0x4d51de,Ct);}async function Dt(_0xf87b22,_0xbb3dfd,_0x359a66,_0x501637){const _0x158395=_0x737805;if((_0xf87b22[_0x158395(0x1ba)]!==void 0x0||_0xf87b22[_0x158395(0xdc)]!==void 0x0||_0xf87b22[_0x158395(0x117)])&&(console[_0x158395(0x9d)](_0x158395(0x86)),process['exit'](0x2)),_0xbb3dfd==='cancel'){await Ut(_0xf87b22,_0x359a66,_0x501637);return;}if(_0xbb3dfd===_0x158395(0x166)){await Nt(_0xf87b22,_0x359a66,_0x501637);return;}(!_0x359a66||_0xbb3dfd===_0x158395(0x226)!=!!_0x501637)&&(console[_0x158395(0x9d)](_0x158395(0x186)+_0xbb3dfd+_0x158395(0xbb)+(_0xbb3dfd===_0x158395(0x226)?'\x20<title>':'')),process[_0x158395(0x1d3)](0x2));let {client:_0x2c69ff}=await f(_0xf87b22);try{if(_0xbb3dfd===_0x158395(0xbe)){let _0x3e421f=await _0x597450(_0x2c69ff,_0x359a66);_0x3e421f||V(_0x359a66),l(_0xf87b22,_0x3e421f,_t);}else{if(_0xbb3dfd===_0x158395(0x226)){let _0x4681f2=await _0x5e3498(_0x2c69ff,_0x359a66,_0x501637);l(_0xf87b22,_0x4681f2,_0xb9941c=>{const _0x59fa23=_0x158395;process[_0x59fa23(0xc1)][_0x59fa23(0x97)]('Renamed\x20'+_0xb9941c['id']+':\x20'+_0xb9941c['title']+'\x0a');});}else await _0x32d7de(_0x2c69ff,_0x359a66),l(_0xf87b22,{'id':_0x359a66,'deleted':!0x0},_0x3ca051=>{const _0x241092=_0x158395;process[_0x241092(0xc1)][_0x241092(0x97)](_0x241092(0x195)+_0x3ca051['id']+'.\x0a');});}}catch(_0x57a6fc){if(!_0x399ac7(_0x57a6fc,0x194))throw _0x57a6fc;V(_0x359a66);}}function V(_0x9c73d4){const _0x14ad2a=_0x737805;console[_0x14ad2a(0x9d)](_0x14ad2a(0x135)+_0x9c73d4+_0x14ad2a(0x151)),process[_0x14ad2a(0x1d3)](0x1);}function _t(_0x4e0bf1){const _0x3798b9=_0x737805;process[_0x3798b9(0xc1)][_0x3798b9(0x97)](_0x3798b9(0x147)+_0x4e0bf1['id']+'\x0a'),process['stdout'][_0x3798b9(0x97)](_0x3798b9(0x148)+_0x4e0bf1[_0x3798b9(0xb7)]+'\x0a'),process[_0x3798b9(0xc1)][_0x3798b9(0x97)](_0x3798b9(0x219)+_0x4e0bf1[_0x3798b9(0x1ce)]+'\x0a'),process[_0x3798b9(0xc1)][_0x3798b9(0x97)]('Organization\x20\x20'+_0x4e0bf1['organizationId']+'\x0a'),_0x4e0bf1[_0x3798b9(0xfd)]&&process[_0x3798b9(0xc1)]['write'](_0x3798b9(0x1b9)+_0x4e0bf1[_0x3798b9(0xfd)]+'\x0a');}async function Ut(_0x28420f,_0x10b3f7,_0x1426bb){const _0x127633=_0x737805;(!_0x10b3f7||_0x1426bb||!_0x28420f[_0x127633(0x7e)])&&(console[_0x127633(0x9d)](_0x127633(0x241)),process[_0x127633(0x1d3)](0x2));let {client:_0x56bcf1}=await f(_0x28420f),_0x5bd0eb=await _0x56fb03(_0x56bcf1,_0x10b3f7,_0x28420f['turnId']);l(_0x28420f,{'sessionId':_0x10b3f7,'turnId':_0x28420f[_0x127633(0x7e)],'cancelled':_0x5bd0eb},_0x36711c=>{const _0x4dc568=_0x127633;_0x36711c[_0x4dc568(0x16c)]?process[_0x4dc568(0xc1)][_0x4dc568(0x97)](_0x4dc568(0x249)+_0x36711c[_0x4dc568(0x7e)]+_0x4dc568(0x138)+_0x36711c['sessionId']+'.\x0a'):process[_0x4dc568(0x17a)][_0x4dc568(0x97)]('No\x20turn\x20'+_0x36711c[_0x4dc568(0x7e)]+_0x4dc568(0x1c0)+_0x36711c['sessionId']+'.\x0a');}),_0x5bd0eb||(process[_0x127633(0x22c)]=0x1);}async function Nt(_0x22aed2,_0x47c017,_0x1a5350){const _0xbc5bb2=_0x737805;(!_0x47c017||/\s/[_0xbc5bb2(0x12c)](_0x1a5350))&&(console[_0xbc5bb2(0x9d)](_0xbc5bb2(0x105)),process[_0xbc5bb2(0x1d3)](0x2));let {client:_0x1bd87a}=await f(_0x22aed2),_0x2a4b5d;try{_0x2a4b5d=await _0x1e628a(_0x1bd87a,_0x47c017,{'atMessageId':_0x1a5350||void 0x0});}catch(_0x550e61){if(!_0x399ac7(_0x550e61,0x194))throw _0x550e61;console[_0xbc5bb2(0x9d)]('Session\x20'+_0x47c017+_0xbc5bb2(0x137)+(_0x1a5350?',\x20or\x20holds\x20no\x20message\x20'+_0x1a5350:'')+'.'),process[_0xbc5bb2(0x1d3)](0x1);}l(_0x22aed2,_0x2a4b5d,_0x430729=>{const _0x35038a=_0xbc5bb2;process[_0x35038a(0xc1)][_0x35038a(0x97)](_0x35038a(0x20d)+_0x47c017+_0x35038a(0xa3)+_0x430729['id']+'.\x0a'),process[_0x35038a(0x17a)][_0x35038a(0x97)]('Continue\x20it\x20with:\x20delegate-cli\x20--session\x20'+_0x430729['id']+_0x35038a(0x13c));});}function Ct({sessions:_0x554166,page:_0x353272,isLastPage:_0x5eafe4}){const _0x48e8a3=_0x737805;if(_0x554166['length']===0x0)process[_0x48e8a3(0x17a)][_0x48e8a3(0x97)](_0x48e8a3(0x18a)+_0x353272+'.\x0a');else{process['stdout'][_0x48e8a3(0x97)]('ID'[_0x48e8a3(0xd3)](0x24)+'\x20\x20'+_0x48e8a3(0x1d9)[_0x48e8a3(0xd3)](0x13)+_0x48e8a3(0xdb));for(let _0x18dad3 of _0x554166){let _0x126404=_0x18dad3[_0x48e8a3(0x15a)]['replace']('T','\x20')[_0x48e8a3(0xeb)](0x0,0x13),_0x3370ad=_0x18dad3[_0x48e8a3(0x125)]?_0x48e8a3(0x1e6)+_0x18dad3['parentSessionId']+')':'';process[_0x48e8a3(0xc1)][_0x48e8a3(0x97)](_0x18dad3['id']['padEnd'](0x24)+'\x20\x20'+_0x126404[_0x48e8a3(0xd3)](0x13)+'\x20\x20'+_0x18dad3[_0x48e8a3(0xb7)]+_0x3370ad+'\x0a');}}_0x5eafe4||process[_0x48e8a3(0x17a)][_0x48e8a3(0x97)](_0x48e8a3(0x19a)+(_0x353272+0x1)+'\x0a');}async function Rt(_0x3f2fe9){const _0x5c653f=_0x737805;let _0x2e8d83=await P(),_0x34e36a=_0x17dab8(_0x3f2fe9[_0x5c653f(0x18f)],_0x2e8d83,_0x3f2fe9[_0x5c653f(0x1af)]);F(_0x3f2fe9[_0x5c653f(0x18f)],_0x3f2fe9[_0x5c653f(0x1af)],_0x34e36a);let _0x37b016=await _0x44f818({'auth':_0x2e8d83,'backendUrl':_0x34e36a,'interop':_0x3f2fe9[_0x5c653f(0x155)]?_0x5c653f(0xdf):'spawn'});l(_0x3f2fe9,_0x37b016,({checks:_0x129f67})=>{const _0x2957e8=_0x5c653f;for(let _0x58efdf of _0x129f67)process[_0x2957e8(0xc1)]['write'](Lt(_0x58efdf)+'\x0a');}),_0x37b016['ok']||process['exit'](0x1);}function Lt(_0x50d073){const _0x16f571=_0x737805;return{'ok':'✓','failed':'✗','skipped':'-'}[_0x50d073[_0x16f571(0x14e)]]+'\x20'+_0x50d073[_0x16f571(0x124)][_0x16f571(0xd3)](0xa)+_0x50d073[_0x16f571(0x159)];}var Ot=['',_0x737805(0x200),_0x737805(0x1f0)];async function Pt(_0x416959){const _0x2de607=_0x737805;let _0x5ed496=_0x416959['prompt'];Ot[_0x2de607(0xf8)](_0x5ed496)||(console[_0x2de607(0x9d)](_0x2de607(0x1fc)+_0x416959[_0x2de607(0x1c3)]+_0x2de607(0x12b)),process[_0x2de607(0x1d3)](0x2)),_0x5ed496===''&&_0x416959[_0x2de607(0x164)]!==void 0x0&&(console[_0x2de607(0x9d)](_0x2de607(0xd4)),process[_0x2de607(0x1d3)](0x2)),_0x5ed496!==''&&_0x416959['sessionId']!==void 0x0&&(console[_0x2de607(0x9d)](_0x2de607(0x1d2)),process['exit'](0x2));let {client:_0x319c33}=await f(_0x416959);if(_0x5ed496===_0x2de607(0x200)){l(_0x416959,await _0x347683(_0x319c33,{'days':_0x416959[_0x2de607(0x164)]}),jt);return;}if(_0x5ed496===_0x2de607(0x1f0)){l(_0x416959,await _0x3a8394(_0x319c33,{'days':_0x416959[_0x2de607(0x164)]}),Mt);return;}let [_0x1650a3,_0x706d9,_0x53f5f7]=await Promise[_0x2de607(0xf2)]([_0x3eb0e6(_0x319c33,{'sessionId':_0x416959[_0x2de607(0x1f9)]}),_0xb860fd(_0x319c33),_0x5e074d(_0x319c33)]);l(_0x416959,{'licensing':_0x1650a3,'monthlySpending':_0x706d9,'cartographerAllowance':_0x53f5f7},Ft);}function Ft(_0x52da14){const _0xdd3dea=_0x737805;let {licensing:_0x34ddb1,monthlySpending:_0x2b52a7,cartographerAllowance:_0x55b594}=_0x52da14,_0x2e2824=[_0x34ddb1[_0xdd3dea(0x1b0)]?_0xdd3dea(0xba)+_0x34ddb1[_0xdd3dea(0x10b)][_0xdd3dea(0x245)](0x1)+_0xdd3dea(0x1e7)+(_0x34ddb1['total_quota_pu']??0x0)+_0xdd3dea(0x239)+(_0x34ddb1[_0xdd3dea(0x247)]>0x0?',\x20'+_0x34ddb1[_0xdd3dea(0x247)]+'\x20PU\x20beyond\x20quota':'')+_0xdd3dea(0x169)+_0x34ddb1[_0xdd3dea(0x211)]+')':_0xdd3dea(0xf9),'Spending:\x20\x20\x20\x20\x20$'+_0x2b52a7['monthly_spend_usd'][_0xdd3dea(0x245)](0x2)+_0xdd3dea(0xe1)+(_0x2b52a7['limit_enabled']&&_0x2b52a7[_0xdd3dea(0x229)]!==null?_0xdd3dea(0x126)+_0x2b52a7[_0xdd3dea(0x229)][_0xdd3dea(0x245)](0x2)+'\x20cap':_0xdd3dea(0xb1)),_0xdd3dea(0xe5)+_0x55b594[_0xdd3dea(0x1ee)]+'\x20('+_0x55b594[_0xdd3dea(0xca)]+')'];_0x34ddb1[_0xdd3dea(0x1b8)]!==null&&_0x34ddb1['session_consumed_pu']!==void 0x0&&_0x2e2824['push'](_0xdd3dea(0xb4)+_0x34ddb1[_0xdd3dea(0x1b8)]+_0xdd3dea(0x98)),process[_0xdd3dea(0xc1)]['write'](_0x2e2824[_0xdd3dea(0x21a)]('\x0a')+'\x0a');}function jt(_0xf9837d){const _0x10db05=_0x737805;let _0x58db08=['Last\x20'+_0xf9837d[_0x10db05(0xb0)]+'\x20days:\x20'+_0xf9837d[_0x10db05(0xb5)]+_0x10db05(0x207)+_0xf9837d[_0x10db05(0xa1)]+'\x20active\x20days',_0x10db05(0xaf)+_0xf9837d[_0x10db05(0x171)]['toFixed'](0x2)+_0x10db05(0xc8)+_0xf9837d[_0x10db05(0x199)][_0x10db05(0x245)](0x2)+_0x10db05(0x100)+_0xf9837d[_0x10db05(0x1cb)]+_0x10db05(0x107),'Tokens:\x20'+_0xf9837d['total_prompt_tokens']+_0x10db05(0x16d)+_0xf9837d[_0x10db05(0x206)]+_0x10db05(0x118)];for(let [_0x143396,_0x2f7031]of Object[_0x10db05(0x1c8)](_0xf9837d[_0x10db05(0x1a1)]))_0x58db08[_0x10db05(0xf6)]('\x20\x20'+_0x143396+':\x20'+_0x2f7031+'\x20token\x20units');process[_0x10db05(0xc1)][_0x10db05(0x97)](_0x58db08['join']('\x0a')+'\x0a');}function Mt(_0x176fa4){const _0x4856d0=_0x737805;if(_0x176fa4[_0x4856d0(0xcc)][_0x4856d0(0x103)]===0x0){process[_0x4856d0(0xc1)]['write']('No\x20usage\x20in\x20the\x20last\x20'+_0x176fa4[_0x4856d0(0xb0)]+'\x20days.\x0a');return;}let _0x506991=['Date\x20\x20\x20\x20\x20\x20\x20\x20Token\x20units\x20\x20Prompt\x20tokens\x20\x20Completion\x20tokens'];for(let _0x2505fa of _0x176fa4[_0x4856d0(0xcc)])_0x506991[_0x4856d0(0xf6)](_0x2505fa[_0x4856d0(0x19f)]+'\x20\x20'+String(_0x2505fa[_0x4856d0(0x82)])[_0x4856d0(0x1e1)](0xb)+'\x20\x20'+String(_0x2505fa['prompt_tokens'])[_0x4856d0(0x1e1)](0xd)+'\x20\x20'+String(_0x2505fa[_0x4856d0(0x114)])[_0x4856d0(0x1e1)](0x11));process[_0x4856d0(0xc1)][_0x4856d0(0x97)](_0x506991[_0x4856d0(0x21a)]('\x0a')+'\x0a');}async function Bt(_0x359983,_0x3421e7){const _0x732f2c=_0x737805;let _0x51e5b5=await Ht(_0x359983['prompt'],_0x3421e7);_0x359983[_0x732f2c(0x221)]&&(_0x51e5b5[_0x732f2c(0x221)]=_0x359983['model']);let {client:_0x29df7a}=await f(_0x359983);try{_0x3421e7===_0x732f2c(0x22f)?l(_0x359983,await _0x1e6261(_0x29df7a,_0x51e5b5,void 0x0),Jt):_0x3421e7===_0x732f2c(0xc9)?l(_0x359983,await _0x21c050(_0x29df7a,_0x51e5b5,void 0x0),Wt):l(_0x359983,await _0x2a17b5(_0x29df7a,_0x51e5b5,void 0x0),Gt);}catch(_0x4295f7){if(!_0x5749bf(_0x4295f7))throw _0x4295f7;console[_0x732f2c(0x9d)](_0x4295f7[_0x732f2c(0x18c)]),process[_0x732f2c(0x1d3)](0x1);}}async function Ht(_0x424f16,_0x104b33){const _0x2b770e=_0x737805;let _0x51f69e;try{_0x51f69e=_0x424f16&&_0x424f16!=='-'?_0x50031f[_0x2b770e(0x96)](_0x1be01c[_0x2b770e(0xd8)](_0x424f16),_0x2b770e(0x1b5)):await I(_0x424f16,process['stdin']);}catch(_0x114ab4){console[_0x2b770e(0x9d)](_0x104b33+_0x2b770e(0x18d)+_0x114ab4[_0x2b770e(0x18c)]+').'),process[_0x2b770e(0x1d3)](0x2);}return _0x51f69e||(console[_0x2b770e(0x9d)](_0x104b33+'\x20needs\x20a\x20JSON\x20request:\x20delegate-cli\x20'+_0x104b33+'\x20<file.json>,\x20or\x20-\x20to\x20read\x20stdin.'),process[_0x2b770e(0x1d3)](0x2)),de(_0x51f69e,_0x104b33,_0x2b770e(0x1d1));}function de(_0x426d49,_0x2ed637,_0x5b016c){const _0x39d73f=_0x737805;let _0x289426;try{_0x289426=JSON[_0x39d73f(0x1da)](_0x426d49);}catch(_0x5cdb7d){console[_0x39d73f(0x9d)](_0x2ed637+':\x20'+_0x5b016c+'\x20is\x20not\x20valid\x20JSON\x20('+_0x5cdb7d[_0x39d73f(0x18c)]+').'),process[_0x39d73f(0x1d3)](0x2);}return(typeof _0x289426!=_0x39d73f(0xf3)||_0x289426===null||Array[_0x39d73f(0x227)](_0x289426))&&(console[_0x39d73f(0x9d)](_0x2ed637+':\x20'+_0x5b016c+'\x20must\x20be\x20a\x20JSON\x20object.'),process[_0x39d73f(0x1d3)](0x2)),_0x289426;}function ue(_0x22d784,_0x5d5551){const _0x8c0553=_0x737805;let _0x481d5a;try{_0x481d5a=_0x50031f[_0x8c0553(0x96)](_0x1be01c[_0x8c0553(0xd8)](_0x22d784),_0x8c0553(0x1b5));}catch(_0x58a19f){console[_0x8c0553(0x9d)](_0x5d5551+':\x20cannot\x20read\x20the\x20JSON\x20schema\x20('+_0x58a19f[_0x8c0553(0x18c)]+').'),process['exit'](0x2);}return de(_0x481d5a,_0x5d5551,_0x8c0553(0xa2));}async function qt(_0x59bbcd){const _0x242077=_0x737805;_0x59bbcd[_0x242077(0x17b)]===void 0x0&&(console[_0x242077(0x9d)](_0x242077(0x99)),process[_0x242077(0x1d3)](0x2));let _0x1b2cab=ue(_0x59bbcd[_0x242077(0x17b)],'complete'),_0x4bb8ae=(await I(_0x59bbcd[_0x242077(0x1c3)],process[_0x242077(0x1c6)]))[_0x242077(0x150)]();_0x4bb8ae||(console[_0x242077(0x9d)](_0x242077(0x21c)),process[_0x242077(0x1d3)](0x2));let {client:_0x192082}=await f(_0x59bbcd);try{let _0xbfa7b4=await _0x4a7413(_0x192082,{'prompt':_0x4bb8ae,'jsonSchema':_0x1b2cab,'model':_0x59bbcd[_0x242077(0x221)]||process.env.MODEL||_0x50a403,..._0x59bbcd[_0x242077(0x1f9)]!==void 0x0&&{'sessionId':_0x59bbcd[_0x242077(0x1f9)]}},void 0x0);l(_0x59bbcd,_0xbfa7b4,_0x4b81c8=>{const _0x2fbf63=_0x242077;process['stdout'][_0x2fbf63(0x97)](JSON[_0x2fbf63(0xe3)](_0x4b81c8[_0x2fbf63(0x94)],null,0x2)+'\x0a');});}catch(_0x39b394){if(!_0x3d514f(_0x39b394))throw _0x39b394;console[_0x242077(0x9d)](_0x39b394['message']),process[_0x242077(0x1d3)](0x1);}}function j(_0x1d906b){const _0x1bfa48=_0x737805;process['stdout'][_0x1bfa48(0x97)](_0x1bfa48(0x228)+_0x1d906b['model']+'\x20('+_0x1d906b[_0x1bfa48(0xd7)]+_0x1bfa48(0xb8)+_0x1d906b[_0x1bfa48(0x142)][_0x1bfa48(0xe7)]+_0x1bfa48(0x85));}function Jt(_0x37854a){const _0x48eb82=_0x737805;j(_0x37854a);for(let _0x3b5b41 of Object[_0x48eb82(0x133)](_0x37854a['answers'])){let _0x4c8190=_0x37854a[_0x48eb82(0x149)][_0x3b5b41],_0x435aa4=_0x4c8190[_0x48eb82(0x208)]===_0x48eb82(0x1eb)?_0x48eb82(0x1cc)+_0x4c8190[_0x48eb82(0x1eb)][_0x48eb82(0x245)](0x2):_0x4c8190['type']===_0x48eb82(0x1c9)?_0x48eb82(0x14f)+_0x4c8190[_0x48eb82(0x1c9)]+_0x48eb82(0x236)+_0x4c8190['confidence'][_0x48eb82(0x245)](0x2)+')':_0x48eb82(0x244)+_0x4c8190[_0x48eb82(0x87)][_0x48eb82(0x245)](0x2)+'\x20(confidence\x20'+_0x4c8190['confidence'][_0x48eb82(0x245)](0x2)+')';process[_0x48eb82(0xc1)][_0x48eb82(0x97)]('\x20\x20'+_0x3b5b41+':\x20'+_0x435aa4+'\x0a');}}function Wt(_0x126c9b){const _0x537194=_0x737805;j(_0x126c9b),_0x126c9b[_0x537194(0x10d)][_0x537194(0x1db)]((_0x1c8f17,_0x344453)=>{const _0x4d7b08=_0x537194;process[_0x4d7b08(0xc1)][_0x4d7b08(0x97)]('\x20\x20'+(_0x344453+0x1)+'.\x20'+_0x1c8f17['id']+'\x20\x20'+_0x1c8f17[_0x4d7b08(0x87)]['toFixed'](0x3)+'\x20\x20(input\x20#'+_0x1c8f17[_0x4d7b08(0xde)]+')\x0a');});}function Gt(_0x189004){const _0x4baf56=_0x737805;j(_0x189004),process[_0x4baf56(0xc1)][_0x4baf56(0x97)]('Rubric\x20'+_0x189004[_0x4baf56(0xed)]+'\x0a');for(let _0x572e29 of _0x189004[_0x4baf56(0x10d)])process[_0x4baf56(0xc1)][_0x4baf56(0x97)]('\x20\x20'+_0x572e29['id']+':\x20'+_0x572e29[_0x4baf56(0x21f)]+_0x4baf56(0x236)+_0x572e29[_0x4baf56(0x108)]['toFixed'](0x2)+')\x0a');}async function Kt(_0x9d98d){const _0x439520=_0x737805;let _0x1c32d4=_0x9d98d[_0x439520(0x1c3)][_0x439520(0x150)]();_0x1c32d4||(console[_0x439520(0x9d)](_0x439520(0x1ad)),process[_0x439520(0x1d3)](0x2));let {client:_0x48df86}=await f(_0x9d98d);try{let _0x3dd3ee=_0x1c32d4==='-'?{'data':await zt(process['stdin'])}:_0x1c32d4;l(_0x9d98d,await _0x3f417f(_0x48df86,_0x3dd3ee,void 0x0),_0x10d378=>{const _0x3f0fe0=_0x439520;process[_0x3f0fe0(0xc1)][_0x3f0fe0(0x97)](_0x10d378[_0x3f0fe0(0x17e)]+'\x0a');});}catch(_0x47986b){if(_0x31268b(_0x47986b)&&(console[_0x439520(0x9d)](_0x47986b['message']),process['exit'](_0x47986b[_0x439520(0x14e)]===void 0x0?0x2:0x1)),typeof _0x47986b?.['code']!=_0x439520(0x1ca))throw _0x47986b;console[_0x439520(0x9d)](_0x439520(0xae)+_0x1c32d4+'\x20('+_0x47986b[_0x439520(0x18c)]+').'),process[_0x439520(0x1d3)](0x2);}}async function zt(_0x487463){const _0x323cdb=_0x737805;let _0x437157=[];for await(let _0x587cb4 of _0x487463)_0x437157[_0x323cdb(0xf6)](Buffer[_0x323cdb(0x91)](_0x587cb4));return Buffer[_0x323cdb(0x8f)](_0x437157);}var Y=[_0x737805(0x1f8),_0x737805(0x80),_0x737805(0xbe),'create',_0x737805(0xcb),_0x737805(0x111),'accept',_0x737805(0xc3),_0x737805(0x220),'delete'],X={'list':_0x737805(0x93),'pending':'delegations\x20pending\x20<session-id>','show':_0x737805(0x127),'create':_0x737805(0x1e2),'claim':_0x737805(0xc5),'complete':_0x737805(0xc6),'accept':'delegations\x20accept\x20<delegation-id>','dismiss':'delegations\x20dismiss\x20<delegation-id>','cancel':_0x737805(0x20c),'delete':_0x737805(0x1c4)};async function Vt(_0x14d069){const _0x1ec60d=_0x737805;let [_0x1eb949='',_0xce7549='',..._0x16fc89]=_0x14d069[_0x1ec60d(0x216)];Y[_0x1ec60d(0xf8)](_0x1eb949)||(console[_0x1ec60d(0x9d)]((_0x1eb949?_0x1ec60d(0x115)+_0x1eb949+'.\x20':'')+_0x1ec60d(0xdd)+Y['join']('\x20|\x20')+'.'),process[_0x1ec60d(0x1d3)](0x2));let _0x2b013f=_0x1eb949;_0x2b013f!==_0x1ec60d(0xda)&&(_0x14d069[_0x1ec60d(0x123)]!==void 0x0||_0x14d069[_0x1ec60d(0x101)]!==void 0x0||_0x14d069['sessionId']!==void 0x0)&&(console[_0x1ec60d(0x9d)](_0x1ec60d(0xc2)),process[_0x1ec60d(0x1d3)](0x2));let _0x110e6d=(_0x2b013f===_0x1ec60d(0xda)?_0x14d069['operands'][_0x1ec60d(0xeb)](0x1):_0x16fc89)[_0x1ec60d(0x21a)]('\x20')['trim'](),_0x13d81a=_0x2b013f===_0x1ec60d(0xda)||_0x2b013f===_0x1ec60d(0x111);(_0x2b013f!==_0x1ec60d(0xda)&&!_0xce7549||(_0x13d81a?!_0x110e6d:_0x110e6d)||_0x2b013f===_0x1ec60d(0xda)&&!_0x14d069[_0x1ec60d(0x1f9)])&&(console[_0x1ec60d(0x9d)](_0x1ec60d(0x184)+X[_0x2b013f]),process[_0x1ec60d(0x1d3)](0x2));let _0x50e70e=_0x13d81a&&_0x110e6d==='-'?(await I('-',process[_0x1ec60d(0x1c6)]))[_0x1ec60d(0x150)]():_0x110e6d;_0x13d81a&&!_0x50e70e&&(console[_0x1ec60d(0x9d)](_0x1ec60d(0x184)+X[_0x2b013f]+_0x1ec60d(0x1a5)),process[_0x1ec60d(0x1d3)](0x2));let {client:_0x489fd1}=await f(_0x14d069);try{await Yt(_0x14d069,_0x489fd1,_0x2b013f,_0xce7549,_0x50e70e);}catch(_0xb186a8){if(!_0x2ad1fd(_0xb186a8))throw _0xb186a8;console[_0x1ec60d(0x9d)](_0xb186a8[_0x1ec60d(0x18c)]),process[_0x1ec60d(0x1d3)](0x1);}}async function Yt(_0x26ba7e,_0x296063,_0x170b2f,_0x2c67d2,_0x15c667){const _0x4233d9=_0x737805;switch(_0x170b2f){case'list':l(_0x26ba7e,await _0x2ad014(_0x296063,_0x2c67d2),Xt);return;case _0x4233d9(0x80):l(_0x26ba7e,await _0x4a5f5f(_0x296063,_0x2c67d2),_0x1f5839=>{const _0x198382=_0x4233d9;_0x1f5839[_0x198382(0x112)]&&process['stdout'][_0x198382(0x97)](_0x198382(0x20f)+_0x1f5839[_0x198382(0x112)]['id']+'\x20('+_0x1f5839[_0x198382(0x112)][_0x198382(0x14e)]+_0x198382(0x16b)),_0x1f5839[_0x198382(0xa7)][_0x198382(0x103)]===0x0&&process[_0x198382(0x17a)][_0x198382(0x97)](_0x198382(0x201));for(let _0xc24e4 of _0x1f5839[_0x198382(0xa7)])process[_0x198382(0xc1)][_0x198382(0x97)]('\x0a'+_0xc24e4['id']+_0x198382(0x1a7)+(_0xc24e4['assignedUserEmail']??_0x198382(0x1dc))+'\x20\x20'+(_0xc24e4[_0x198382(0xa6)]??'')+'\x0a'+(_0xc24e4[_0x198382(0x1c1)]?.[_0x198382(0x21d)]??'')+'\x0a');_0x1f5839[_0x198382(0xa7)]['length']>0x0&&process[_0x198382(0x17a)]['write']('\x0aAccept\x20one\x20with:\x20delegate-cli\x20delegations\x20accept\x20<id>\x0a');});return;case'show':l(_0x26ba7e,await _0x57154f(_0x296063,_0x2c67d2),Q);return;case'create':{let _0x5948c3=await _0x199a74(_0x296063,{'sessionId':_0x26ba7e[_0x4233d9(0x1f9)],'task':_0x15c667,..._0x26ba7e['contextSummary']!==void 0x0&&{'contextSummary':_0x26ba7e['contextSummary']},..._0x26ba7e[_0x4233d9(0x123)]!==void 0x0&&{'recipient':_0x26ba7e[_0x4233d9(0x123)]}});l(_0x26ba7e,_0x5948c3,_0x13d6d6=>{const _0x28a56d=_0x4233d9;_0x13d6d6[_0x28a56d(0x8b)]?process[_0x28a56d(0xc1)]['write'](_0x28a56d(0x183)+_0x13d6d6[_0x28a56d(0xfd)]+'\x20to\x20'+_0x13d6d6[_0x28a56d(0x8b)][_0x28a56d(0xff)]+'\x20<'+_0x13d6d6[_0x28a56d(0x8b)]['email']+'>.\x0a'):process[_0x28a56d(0xc1)][_0x28a56d(0x97)](_0x28a56d(0x1fd)+_0x13d6d6['delegationId']+_0x28a56d(0x13a)+_0x13d6d6['deepLink']+'\x0a');});return;}case _0x4233d9(0xcb):{let _0x2483c5=await _0x3d4254(_0x296063,_0x2c67d2);l(_0x26ba7e,_0x2483c5,_0x4a94a0=>{const _0x47e32b=_0x4233d9;Q(_0x4a94a0),process['stdout'][_0x47e32b(0x97)](_0x47e32b(0x134)+_0x4a94a0[_0x47e32b(0x1f9)]+'\x0a'),process[_0x47e32b(0x17a)][_0x47e32b(0x97)]('Work\x20on\x20it\x20with:\x20delegate-cli\x20--session\x20'+_0x4a94a0[_0x47e32b(0x1f9)]+_0x47e32b(0xfc)+_0x4a94a0[_0x47e32b(0xfd)]+_0x47e32b(0x139));});return;}case _0x4233d9(0x111):{let {alreadyCompleted:_0x8fa4e8}=await _0x46cade(_0x296063,_0x2c67d2,{'content':_0x15c667});l(_0x26ba7e,{'delegationId':_0x2c67d2,'alreadyCompleted':_0x8fa4e8},_0x156b16=>{const _0x19ca34=_0x4233d9;process[_0x19ca34(0xc1)][_0x19ca34(0x97)]((_0x156b16['alreadyCompleted']?'Already\x20answered':'Answered')+_0x19ca34(0x1dd)+_0x156b16[_0x19ca34(0xfd)]+'.\x0a');});return;}case _0x4233d9(0x172):{let _0x20c033=await _0x2f6859(_0x296063,_0x2c67d2);l(_0x26ba7e,{'delegationId':_0x2c67d2,..._0x20c033},_0x33955d=>{const _0xf2ce2c=_0x4233d9;process[_0xf2ce2c(0xc1)][_0xf2ce2c(0x97)]((_0x33955d[_0xf2ce2c(0x1ea)]?'Already\x20accepted':_0xf2ce2c(0x7d))+_0xf2ce2c(0x1dd)+_0x33955d[_0xf2ce2c(0xfd)]+'.\x0a');});return;}default:{let _0x226c39={'dismiss':_0x5cb12e,'cancel':_0x44e2a0,'delete':_0x5727ce}[_0x170b2f];await _0x226c39(_0x296063,_0x2c67d2);let _0x5ce4a9={'dismiss':_0x4233d9(0x176),'cancel':_0x4233d9(0x16c),'delete':_0x4233d9(0x11f)}[_0x170b2f];l(_0x26ba7e,{'delegationId':_0x2c67d2,[_0x5ce4a9]:!0x0},()=>{const _0x547fad=_0x4233d9;process[_0x547fad(0xc1)][_0x547fad(0x97)](''+_0x5ce4a9[0x0][_0x547fad(0x16e)]()+_0x5ce4a9[_0x547fad(0xeb)](0x1)+_0x547fad(0x1dd)+_0x2c67d2+'.\x0a');});}}}function Xt(_0x327fa9){const _0x6cf94d=_0x737805;if(_0x327fa9[_0x6cf94d(0x103)]===0x0){process[_0x6cf94d(0x17a)]['write'](_0x6cf94d(0xb3));return;}process[_0x6cf94d(0xc1)][_0x6cf94d(0x97)]('ID'[_0x6cf94d(0xd3)](0x24)+'\x20\x20'+_0x6cf94d(0x1a2)[_0x6cf94d(0xd3)](0x9)+'\x20\x20'+_0x6cf94d(0x11b)['padEnd'](0x18)+_0x6cf94d(0x14d));for(let _0x263da1 of _0x327fa9)process['stdout']['write'](_0x263da1['id'][_0x6cf94d(0xd3)](0x24)+'\x20\x20'+_0x263da1[_0x6cf94d(0x14e)]['padEnd'](0x9)+'\x20\x20'+(_0x263da1[_0x6cf94d(0x21b)]??'-')[_0x6cf94d(0xd3)](0x18)+'\x20\x20'+(_0x263da1[_0x6cf94d(0xa6)]??'')+'\x0a');}function Q(_0x262d0a){const _0x37e3d9=_0x737805;process['stdout'][_0x37e3d9(0x97)](_0x37e3d9(0x160)+(_0x262d0a[_0x37e3d9(0x1c5)]??'-')+'\x0a'),_0x262d0a[_0x37e3d9(0x18e)]&&process[_0x37e3d9(0xc1)]['write'](_0x37e3d9(0x134)+_0x262d0a['sourceTitle']+'\x0a'),process[_0x37e3d9(0xc1)]['write'](_0x37e3d9(0x24a)+(_0x262d0a[_0x37e3d9(0xa6)]??'-')+'\x0a'),_0x262d0a[_0x37e3d9(0x101)]&&process[_0x37e3d9(0xc1)][_0x37e3d9(0x97)]('\x0a'+_0x262d0a[_0x37e3d9(0x101)]+'\x0a\x0a');}async function Qt(_0x5f11b0){const _0x2e81db=_0x737805;_0x5f11b0[_0x2e81db(0x1c3)][_0x2e81db(0x150)]()||(console[_0x2e81db(0x9d)](_0x2e81db(0xf7)),process[_0x2e81db(0x1d3)](0x2));let {client:_0x4067c5}=await f(_0x5f11b0),_0x39b2d2;try{_0x39b2d2=await _0x4be831(_0x4067c5,_0x5f11b0[_0x2e81db(0x1c3)]);}catch(_0x145cd9){if(!_0x2ad1fd(_0x145cd9))throw _0x145cd9;console[_0x2e81db(0x9d)](_0x145cd9[_0x2e81db(0x18c)]),process[_0x2e81db(0x1d3)](0x1);}l(_0x5f11b0,_0x39b2d2,_0x4a197b=>{const _0x225168=_0x2e81db;_0x4a197b[_0x225168(0x103)]===0x0&&process[_0x225168(0x17a)][_0x225168(0x97)](_0x225168(0x1e8)+_0x5f11b0['prompt'][_0x225168(0x150)]()+'\x22.\x0a');for(let _0x3f971c of _0x4a197b)process[_0x225168(0xc1)][_0x225168(0x97)](_0x3f971c[_0x225168(0x1f6)]['padEnd'](0x20)+'\x20\x20'+_0x3f971c[_0x225168(0xff)]+'\x0a');});}async function Zt(_0x351b70){const _0x57460e=_0x737805;_0x351b70[_0x57460e(0x18f)]===_0x57460e(0x1f4)&&(console['error'](_0x57460e(0x128)),process[_0x57460e(0x1d3)](0x2));let _0x275dce=$(_0x4d0948()),_0x3c7941=_0x351b70[_0x57460e(0x90)];if(_0x351b70['env']){let _0x46ed3f=_0x351b70[_0x57460e(0x18f)];await _0x3bb5fe({'env':_0x46ed3f,'tenant':_0x351b70[_0x57460e(0x196)]??C(_0x275dce,_0x3b0913[_0x46ed3f]),'skipEnvCheck':_0x3c7941});return;}let _0x1f64c9=_0x351b70[_0x57460e(0x89)]??ce();if(_0x1f64c9){await _0x3bb5fe({'baseUrl':_0x1f64c9,'tenant':_0x351b70[_0x57460e(0x196)]??C(_0x275dce,_0x1f64c9),'skipEnvCheck':_0x3c7941});return;}if(_0x275dce?.[_0x57460e(0x177)]){await _0x3bb5fe({'baseUrl':_0x275dce[_0x57460e(0x177)],'tenant':_0x351b70[_0x57460e(0x196)]??_0x275dce['tenantName'],'skipEnvCheck':_0x3c7941});return;}console['error'](_0x57460e(0xfe)),process[_0x57460e(0x1d3)](0x2);}function C(_0x199ee0,_0x2d8178){const _0x5253a3=_0x737805;return _0x199ee0?.[_0x5253a3(0x177)]&&en(_0x199ee0[_0x5253a3(0x177)],_0x2d8178)?_0x199ee0['tenantName']:void 0x0;}function en(_0x59d1de,_0x54005f){const _0x134052=_0x737805;try{return new URL(_0x59d1de)[_0x134052(0x1d6)]===new URL(_0x54005f)[_0x134052(0x1d6)];}catch{return!0x1;}}async function tn(_0x5ea79c){const _0x512709=_0x737805;O()&&(console[_0x512709(0x9d)](_0x512709(0x1e3)),process[_0x512709(0x1d3)](0x2));let _0x5e7ea3=await _0x59e523();if(_0x5e7ea3||(console['error'](nn()),process[_0x512709(0x1d3)](0x2)),_0x5ea79c[_0x512709(0x150)]()){let _0x194411=await _0x164e4c(_0x5e7ea3,_0x5ea79c);_0x3ababf(_0x194411)||(console[_0x512709(0x9d)]('Tenant\x20not\x20switched:\x20could\x20not\x20write\x20'+_0x4d0948()+_0x512709(0x14c)+_0x5e7ea3[_0x512709(0xbd)]+'.'),process[_0x512709(0x1d3)](0x1)),console['log'](_0x512709(0x235)+_0x194411['tenantName']+'\x20('+_0x194411['tenantId']+_0x512709(0x130)+_0x4d0948());return;}on(await _0x46a828(_0x5e7ea3),_0x5e7ea3);}function nn(){const _0x4ee067=_0x737805;if(_0x50031f[_0x4ee067(0xd9)](_0x4d0948()))return _0x4ee067(0x1fe);let _0x2c98f6=L();return $(_0x2c98f6)?'No\x20CLI\x20login\x20to\x20switch:\x20the\x20CLI\x20is\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20'+_0x2c98f6+_0x4ee067(0x238):_0x4ee067(0x1b6);}function on(_0x32d7b6,_0x2a3618){const _0x3dc8a1=_0x737805;let _0x442076=_0x32d7b6[_0x3dc8a1(0x119)](_0x2195a7=>_0x2195a7['id']===_0x2a3618[_0x3dc8a1(0x152)]?'*\x20'+_0x2195a7[_0x3dc8a1(0x124)]+_0x3dc8a1(0x240):'\x20\x20'+_0x2195a7[_0x3dc8a1(0x124)]);process[_0x3dc8a1(0xc1)]['write']('Tenants\x20of\x20'+(_0x2a3618[_0x3dc8a1(0xbc)]??_0x2a3618[_0x3dc8a1(0x224)])+':\x0a'+_0x442076[_0x3dc8a1(0x21a)]('\x0a')+'\x0a'),_0x32d7b6[_0x3dc8a1(0x103)]>0x1&&process[_0x3dc8a1(0xc1)][_0x3dc8a1(0x97)]('Switch\x20with:\x20delegate-cli\x20tenant\x20<name>\x0a');}function sn(_0x287f65){const _0x3a8c0e=_0x737805;return _0x287f65?.[_0x3a8c0e(0x1e9)]?.[_0x3a8c0e(0x14e)]===0x191||/401/['test'](String(_0x287f65?.[_0x3a8c0e(0x18c)]??''));}var d={'lastType':null,'quiet':!0x1},rn=_0x4c871c=>{const _0x27c0e2=_0x737805;switch(_0x4c871c[_0x27c0e2(0x208)]){case _0x27c0e2(0x190):_0x4c871c[_0x27c0e2(0x1f9)]&&_0x4c871c[_0x27c0e2(0x1f9)]!==d[_0x27c0e2(0x1f9)]&&(process[_0x27c0e2(0x17a)][_0x27c0e2(0x97)](_0x27c0e2(0x1bf)+_0x4c871c['sessionId']+_0x27c0e2(0x141)+_0x4c871c[_0x27c0e2(0x1f9)]+')\x0a'),d[_0x27c0e2(0x1f9)]=_0x4c871c[_0x27c0e2(0x1f9)]);break;case'turn_start':_0x4c871c[_0x27c0e2(0x7e)]&&_0x4c871c[_0x27c0e2(0x7e)]!==d[_0x27c0e2(0x7e)]&&(d[_0x27c0e2(0x9f)]!==null&&process[_0x27c0e2(0x17a)][_0x27c0e2(0x97)]('\x0a'),process['stderr'][_0x27c0e2(0x97)](_0x27c0e2(0x1d5)+_0x4c871c[_0x27c0e2(0x7e)]+_0x27c0e2(0x17d)+_0x4c871c[_0x27c0e2(0x1f9)]+_0x27c0e2(0x11c)+_0x4c871c[_0x27c0e2(0x7e)]+')\x0a'),d['turnId']=_0x4c871c[_0x27c0e2(0x7e)],d['lastType']=_0x27c0e2(0x188));break;case'thinking':_0x4c871c[_0x27c0e2(0x21d)]&&!d[_0x27c0e2(0x156)]&&(d[_0x27c0e2(0x9f)]!=='thinking'&&process[_0x27c0e2(0x17a)][_0x27c0e2(0x97)](_0x27c0e2(0x13e)),process[_0x27c0e2(0x17a)][_0x27c0e2(0x97)](_0x4c871c[_0x27c0e2(0x21d)]),d[_0x27c0e2(0x9f)]=_0x27c0e2(0x167));break;case _0x27c0e2(0x248):d['lastType']!==null&&process[_0x27c0e2(0x17a)][_0x27c0e2(0x97)]('\x0a'),process[_0x27c0e2(0x17a)][_0x27c0e2(0x97)](_0x27c0e2(0x10f)+(_0x4c871c[_0x27c0e2(0xf0)]??_0x27c0e2(0x210))+'\x0a'),d['lastType']='tool_call';break;case _0x27c0e2(0x18c):_0x4c871c[_0x27c0e2(0x21d)]&&(d[_0x27c0e2(0x9f)]!==_0x27c0e2(0x18c)&&d['lastType']!==null&&process[_0x27c0e2(0xc1)][_0x27c0e2(0x97)]('\x0a'),process['stdout'][_0x27c0e2(0x97)](_0x4c871c[_0x27c0e2(0x21d)]),d['lastType']=_0x27c0e2(0x18c));break;case _0x27c0e2(0x9d):d[_0x27c0e2(0x9f)]!==null&&process['stderr']['write']('\x0a'),process[_0x27c0e2(0x17a)][_0x27c0e2(0x97)]('✗\x20'+(_0x4c871c[_0x27c0e2(0x9d)]??_0x27c0e2(0x9d))+'\x0a'),d[_0x27c0e2(0x9f)]=_0x27c0e2(0x9d);break;case _0x27c0e2(0x1f5):(d[_0x27c0e2(0x9f)]==='message'||d[_0x27c0e2(0x9f)]===_0x27c0e2(0x167))&&process[_0x27c0e2(0xc1)][_0x27c0e2(0x97)]('\x0a'),process[_0x27c0e2(0x17a)][_0x27c0e2(0x97)](_0x27c0e2(0x22d)),d[_0x27c0e2(0x9f)]=_0x27c0e2(0x1f5);break;}};function Z(_0x5cb639,_0x58857c,_0x1d0223){const _0x22d204=_0x737805;let _0x3a1d27=_0x5cb639[_0x22d204(0x221)]||process.env.MODEL;return{'backendUrl':_0x1d0223,'auth':_0x58857c,'enableComputerUse':!_0x5cb639['headless']&&!_0x5cb639[_0x22d204(0x1c7)],'autoSpawnInterop':!_0x5cb639[_0x22d204(0x155)],'enableConnections':!_0x5cb639[_0x22d204(0xe9)],'enableSecurity':!_0x5cb639[_0x22d204(0x120)],'keepInteropAlive':_0x5cb639[_0x22d204(0x232)],..._0x5cb639[_0x22d204(0x204)]?{'enableMemory':!0x1}:{},..._0x5cb639[_0x22d204(0x146)][_0x22d204(0x103)]>0x0?{'preloadSkills':_0x5cb639[_0x22d204(0x146)]}:{},..._0x3a1d27?{'model':_0x3a1d27}:{},..._0x5cb639[_0x22d204(0xee)]?{'projectId':_0x5cb639[_0x22d204(0xee)]}:{},..._0x5cb639[_0x22d204(0x165)]?{'workingDirectory':_0x5cb639[_0x22d204(0x165)]}:{},..._0x5cb639['bundledSkillsPath']?{'bundledSkillsPath':_0x5cb639['bundledSkillsPath']}:{},..._0x5cb639['effort']?{'effort':_0x5cb639[_0x22d204(0x234)]}:{},..._0x5cb639[_0x22d204(0x1f9)]?{'sessionId':_0x5cb639[_0x22d204(0x1f9)]}:{},..._0x5cb639[_0x22d204(0x198)]?{'verbose':!0x0}:{}};}async function an(_0x4d144d){const _0x247135=_0x737805;let _0x3faf98=_0x4d144d[_0x247135(0x83)]!==_0x247135(0x17e),_0x4f2a54=_0x4d144d[_0x247135(0x17b)]===void 0x0?null:ue(_0x4d144d['jsonSchemaPath'],_0x247135(0xa8)),_0xc3e011=!_0x3faf98&&!_0x4f2a54&&!_0x4d144d[_0x247135(0xaa)]&&_0x4d144d['prompt']!=='-'&&!!process[_0x247135(0x1c6)]['isTTY']&&!!process[_0x247135(0xc1)][_0x247135(0x230)],_0xbf5118=_0xc3e011?_0x4d144d[_0x247135(0x1c3)]['trim']():await I(_0x4d144d[_0x247135(0x1c3)],process['stdin']);if(!_0xc3e011&&!_0xbf5118&&(console[_0x247135(0x9d)](_0x247135(0x246)),process[_0x247135(0x1d3)](0x2)),!_0x3faf98){await ee(_0x4d144d,_0xbf5118,_0xc3e011,null,_0x4f2a54);return;}let _0x2d3dd9=!0x1,_0x11a245=_0x2cd0a0=>{const _0x20b799=_0x247135;_0x2d3dd9=!0x0,S(_0x17363f(_0x2cd0a0)),(_0x2cd0a0[_0x20b799(0x161)]||_0x2cd0a0[_0x20b799(0x1f7)])&&(process['exitCode']=0x1);},_0x397435=Date[_0x247135(0x1b4)]();try{await ee(_0x4d144d,_0xbf5118,!0x1,_0x11a245,_0x4f2a54);}catch(_0x309526){if(_0x2d3dd9)throw _0x309526;process[_0x247135(0x17a)][_0x247135(0x97)]((_0x309526 instanceof Error?_0x309526[_0x247135(0x19c)]??_0x309526[_0x247135(0x18c)]:String(_0x309526))+'\x0a'),_0x11a245(new _0x1f87d8(_0x397435)['finish']({'endedAtMs':Date[_0x247135(0x1b4)](),'usage':[],'error':_0x309526}));}}async function ee(_0x1675c6,_0x488a4e,_0x3e64ed,_0x335159,_0x3d7c68){const _0x33d58b=_0x737805;d={'lastType':null,'quiet':_0x1675c6[_0x33d58b(0x156)]};let _0x55dce9=new Set(),_0x4f4004=_0x28d6b6=>{const _0x1fb3b9=_0x33d58b;(!_0x335159||_0x28d6b6[_0x1fb3b9(0x208)]===_0x1fb3b9(0x190)||_0x28d6b6[_0x1fb3b9(0x208)]===_0x1fb3b9(0x188))&&rn(_0x28d6b6);for(let _0x1b1d6c of _0x55dce9)_0x1b1d6c(_0x28d6b6);},_0x412143=await P(),_0x4be255=new _0x21774d();_0x4be255[_0x33d58b(0x145)](_0x4f4004);let _0x21d1d5=_0x17dab8(_0x1675c6[_0x33d58b(0x18f)],_0x412143,_0x1675c6[_0x33d58b(0x1af)]);F(_0x1675c6[_0x33d58b(0x18f)],_0x1675c6[_0x33d58b(0x1af)],_0x21d1d5);let _0x52d809=Z(_0x1675c6,_0x412143,_0x21d1d5),_0x2ec7c6=!0x1,_0x2906cd=!0x1,_0x4b58ad,_0x1bbce4=()=>_0x4b58ad??=_0x4be255[_0x33d58b(0x8d)](),_0x78e995=()=>{const _0x588fd0=_0x33d58b;_0x2906cd&&process[_0x588fd0(0x1d3)](0x82),_0x2906cd=!0x0,process[_0x588fd0(0x17a)][_0x588fd0(0x97)](_0x588fd0(0x233)),_0x2ec7c6&&_0x4be255[_0x588fd0(0x220)]()[_0x588fd0(0x223)](_0x279ce5=>console[_0x588fd0(0x9d)](_0x279ce5))[_0x588fd0(0x174)](_0x1bbce4)['then'](()=>process[_0x588fd0(0x1d3)](0x82),_0x3bb776=>{const _0x783fe3=_0x588fd0;console[_0x783fe3(0x9d)](_0x3bb776),process[_0x783fe3(0x1d3)](0x82);});};process['on'](_0x33d58b(0x15b),_0x78e995);let _0x46e196=_0x1675c6['attachments'],_0x461b2c=async _0x3779af=>{const _0xc595c1=_0x33d58b;let _0x55903d=_0x46e196;_0x46e196=[];let _0x375045=()=>_0x4be255[_0xc595c1(0x1bc)](_0x3779af,{'attachments':_0x55903d});try{return await _0x375045();}catch(_0x254efc){if(_0x2906cd||!sn(_0x254efc)||!process[_0xc595c1(0x1c6)]['isTTY']||_0x1675c6[_0xc595c1(0x18f)]===_0xc595c1(0x1f4)||!(_0x1675c6['env']||_0x412143['baseUrl']))throw _0x254efc;process[_0xc595c1(0x17a)][_0xc595c1(0x97)](_0xc595c1(0x22a));let _0xa37c09=_0x4be255[_0xc595c1(0xd5)]()??_0x1675c6[_0xc595c1(0x1f9)],_0x3d89b7=await _0x3bb5fe(_0x1675c6[_0xc595c1(0x18f)]?{'env':_0x1675c6['env'],'tenant':C(_0x412143,_0x3b0913[_0x1675c6[_0xc595c1(0x18f)]]),'skipEnvCheck':!0x0}:{'baseUrl':_0x412143['baseUrl'],'tenant':_0x412143[_0xc595c1(0xbd)],'skipEnvCheck':!0x0}),_0x18fdbd={'text':'','failed':!0x1,'sessionId':_0xa37c09};return _0x2906cd||(_0x2ec7c6=!0x1,await _0x1bbce4(),_0x2906cd)?_0x18fdbd:(_0x4be255=new _0x21774d(),_0x4b58ad=void 0x0,_0x4be255[_0xc595c1(0x145)](_0x4f4004),_0x412143=_0x3d89b7,await _0x4be255[_0xc595c1(0x218)]({...Z(_0x1675c6,_0x412143,_0x21d1d5),..._0xa37c09?{'sessionId':_0xa37c09}:{}}),_0x2ec7c6=!0x0,_0x2906cd?_0x18fdbd:_0x375045());}};try{if(await _0x4be255['initialize'](_0x52d809),_0x2ec7c6=!0x0,_0x2906cd)return;if(_0x3e64ed)await dn({'prompt':_0x488a4e,'sendMessage':_0x461b2c,'onSigint':_0x78e995});else{if(_0x335159||_0x3d7c68){let _0x407ae8=_0x1675c6['outputFormat']==='stream-json'?_0x5d43c3=>S(_0x1128f2(_0x5d43c3)):()=>{},_0x4b1d17=await _0x349545({'onEvent':_0x467bd3=>(_0x55dce9[_0x33d58b(0x1b1)](_0x467bd3),()=>{const _0x101c9c=_0x33d58b;_0x55dce9[_0x101c9c(0x193)](_0x467bd3);}),'sendMessage':_0x52fe90=>_0x461b2c(_0x52fe90),'getSessionId':()=>_0x4be255[_0x33d58b(0xd5)](),'getTurnUsageHistory':_0x43ae31=>_0x4be255['getTurnUsageHistory'](_0x43ae31),'complete':_0x134d94=>_0x4be255['complete'](_0x134d94)},_0x488a4e,void 0x0,_0x407ae8,_0x3d7c68?{'outputSchema':_0x3d7c68}:void 0x0);_0x335159?_0x335159(_0x4b1d17):ln(_0x4b1d17);}else await _0x461b2c(_0x488a4e);}}catch(_0x435706){if(!_0x2906cd)throw _0x435706;}finally{try{await _0x1bbce4();}finally{process[_0x33d58b(0x209)](_0x33d58b(0x15b),_0x78e995),_0x2906cd&&(process[_0x33d58b(0x22c)]=0x82);}}}function ln(_0x362ad5){const _0x2cc1fa=_0x737805;_0x362ad5['structuredError']?(console[_0x2cc1fa(0x9d)](_0x2cc1fa(0x1e5)+_0x362ad5[_0x2cc1fa(0x1f7)][_0x2cc1fa(0x18c)]),process['exitCode']=0x1):_0x362ad5[_0x2cc1fa(0x161)]?(console[_0x2cc1fa(0x9d)](_0x2cc1fa(0x202)+_0x362ad5['error']+').'),process['exitCode']=0x1):process[_0x2cc1fa(0xc1)]['write'](JSON[_0x2cc1fa(0xe3)](_0x362ad5['structured'],null,0x2)+'\x0a');}function cn(_0x55c1c7,_0x270487){const _0x2b4ab3=_0x737805;let _0x126acd=process[_0x2b4ab3(0xc1)][_0x2b4ab3(0x97)]['bind'](process['stdout']),_0xf60212=!0x1;return process[_0x2b4ab3(0xc1)][_0x2b4ab3(0x97)]=(..._0x2b4133)=>{const _0x3837b0=_0x2b4ab3;if(!_0xf60212)return _0x126acd(..._0x2b4133);_0xd9f15b(_0x270487,0x0),_0x171dd1(_0x270487,0x0);let _0x3ce248=_0x126acd(..._0x2b4133);return _0x55c1c7[_0x3837b0(0x1c3)](!0x0),_0x3ce248;},{'show':()=>{_0xf60212=!0x0,_0x55c1c7['prompt']();},'hide':()=>{_0xf60212=!0x1;},'restore':()=>{const _0x3117c7=_0x2b4ab3;_0xf60212=!0x1,process[_0x3117c7(0xc1)][_0x3117c7(0x97)]=_0x126acd;}};}async function dn({prompt:_0x391513,sendMessage:_0x3c1b1d,onSigint:_0x5c1dd8}){const _0x182bc5=_0x737805;let _0x44d59f=_0x3de0d0({'input':process['stdin'],'output':process[_0x182bc5(0x17a)],'terminal':!0x0,'prompt':_0x182bc5(0x15f)}),_0x5a61ea=cn(_0x44d59f,process[_0x182bc5(0x17a)]),_0x2f3e2f=_0x44d59f[Symbol['asyncIterator']](),_0x24a0cf=!0x1;_0x44d59f['once'](_0x182bc5(0x1e0),()=>{const _0x27aa69=_0x182bc5;_0x24a0cf=!0x0,_0x5a61ea[_0x27aa69(0x1bb)]();});let _0x3440d0=!0x1,_0x31967b=()=>{const _0x3d58de=_0x182bc5;_0x3440d0=!0x0,_0x44d59f[_0x3d58de(0x1e0)](),_0x5c1dd8();};_0x44d59f['on'](_0x182bc5(0x15b),_0x31967b),process[_0x182bc5(0x17a)][_0x182bc5(0x97)](_0x182bc5(0x1de));try{if(_0x391513&&await _0x3c1b1d(_0x391513),_0x3440d0)return;_0x24a0cf||_0x5a61ea['show']();for await(let _0x4084e7 of _0x2f3e2f){if(_0x5a61ea['hide'](),_0x3440d0)break;let _0x5e5c5f=_0x4084e7['trim']();if(_0x5e5c5f===_0x182bc5(0x185))break;_0x5e5c5f&&await _0x3c1b1d(_0x5e5c5f),_0x24a0cf||_0x5a61ea[_0x182bc5(0xbe)]();}}finally{_0x5a61ea[_0x182bc5(0x237)](),_0x44d59f[_0x182bc5(0x209)](_0x182bc5(0x15b),_0x31967b),_0x44d59f['close']();}}async function un(){const _0x54dfce=_0x737805;let _0x4e04b6=ft(process['argv']['slice'](0x2));if(_0x4e04b6[_0x54dfce(0x83)]==='text'){await te(_0x4e04b6);return;}let _0x512ecb=gt();try{await te(_0x4e04b6);}finally{_0x512ecb();}}async function te(_0x4c0156){const _0x37cba9=_0x737805;if(_0x4c0156[_0x37cba9(0xfb)]){ht();return;}if(_0x4c0156[_0x37cba9(0x217)]){console[_0x37cba9(0xe6)](wt());return;}if(_0x4c0156[_0x37cba9(0x10a)]===_0x37cba9(0x131)){await Zt(_0x4c0156);return;}if(_0x4c0156[_0x37cba9(0x10a)]==='tenant'){await tn(_0x4c0156[_0x37cba9(0x1c3)]);return;}if(_0x4c0156[_0x37cba9(0x10a)]===_0x37cba9(0x22b)){await bt();return;}if(_0x4c0156['subcommand']===_0x37cba9(0xf1)){await vt(_0x4c0156);return;}if(_0x4c0156[_0x37cba9(0x10a)]===_0x37cba9(0x10c)){await $t(_0x4c0156);return;}if(_0x4c0156[_0x37cba9(0x10a)]==='check'){await Rt(_0x4c0156);return;}if(_0x4c0156[_0x37cba9(0x10a)]===_0x37cba9(0x194)){await xt(_0x4c0156);return;}if(_0x4c0156[_0x37cba9(0x10a)]==='usage'){await Pt(_0x4c0156);return;}if(_0x4c0156[_0x37cba9(0x10a)]===_0x37cba9(0x22f)||_0x4c0156['subcommand']===_0x37cba9(0xc9)||_0x4c0156[_0x37cba9(0x10a)]==='verify'){await Bt(_0x4c0156,_0x4c0156['subcommand']);return;}if(_0x4c0156[_0x37cba9(0x10a)]===_0x37cba9(0x111)){await qt(_0x4c0156);return;}if(_0x4c0156['subcommand']===_0x37cba9(0xc0)){await Kt(_0x4c0156);return;}if(_0x4c0156[_0x37cba9(0x10a)]===_0x37cba9(0x170)){await Vt(_0x4c0156);return;}if(_0x4c0156[_0x37cba9(0x10a)]===_0x37cba9(0x1cd)){await Qt(_0x4c0156);return;}if(_0x4c0156['subcommand']===_0x37cba9(0x11a)){await _0x2a9e7a(_0x4c0156[_0x37cba9(0x1c3)],{'runnerUrl':_0x4c0156[_0x37cba9(0x1d7)],'backendUrl':_0x4c0156[_0x37cba9(0x1af)],'interopPath':_0x4c0156[_0x37cba9(0x116)],'workerId':_0x4c0156[_0x37cba9(0x110)]});return;}if(_0x4c0156[_0x37cba9(0x129)]){await It();return;}await an(_0x4c0156);}var pn=process.env.NODE_ENV===_0x737805(0x12c)||!!process.env.JEST_WORKER_ID;pn||un()['catch'](_0x272b4a=>{const _0x482955=_0x737805;console['error'](_0x272b4a[_0x482955(0x19c)]||_0x272b4a[_0x482955(0x18c)]||_0x272b4a),process[_0x482955(0x1d3)](0x1);});export{mt as CARTOGRAPHER_SKILLS,G as EFFORT_TIERS,yt as IMPLICIT_STDIN_IDLE_MS,Z as buildInitOptions,un as main,ft as parseArgs,wt as readCliVersion,I as resolvePrompt,gt as routeStdoutToStderr,l as writeCommandResult};
|
|
2
|
+
const _0x438223=_0x19a6;(function(_0x272703,_0x150677){const _0x13e2b2=_0x19a6,_0x205dda=_0x272703();while(!![]){try{const _0x2e4534=-parseInt(_0x13e2b2(0x218))/0x1*(parseInt(_0x13e2b2(0x313))/0x2)+parseInt(_0x13e2b2(0x210))/0x3*(parseInt(_0x13e2b2(0x2ac))/0x4)+-parseInt(_0x13e2b2(0x262))/0x5*(parseInt(_0x13e2b2(0x2a8))/0x6)+-parseInt(_0x13e2b2(0x216))/0x7*(parseInt(_0x13e2b2(0x2b5))/0x8)+parseInt(_0x13e2b2(0x2f3))/0x9*(parseInt(_0x13e2b2(0x352))/0xa)+-parseInt(_0x13e2b2(0x348))/0xb+parseInt(_0x13e2b2(0x35f))/0xc*(parseInt(_0x13e2b2(0x2ed))/0xd);if(_0x2e4534===_0x150677)break;else _0x205dda['push'](_0x205dda['shift']());}catch(_0x483d5f){_0x205dda['push'](_0x205dda['shift']());}}}(_0x1b8a,0x9a49d));const __dirname=import.meta.dirname;import _0x1b21f7 from'fs';import _0x3aefdd from'path';import{clearLine as _0x3342da,createInterface as _0x343711,cursorTo as _0x474a0e}from'node:readline';import{BUSINESS_ANALYSIS_PRELOADED_SKILLS as _0x461117,DelegateAgent as _0x347642,cancelTurn as _0x289add,InteropProcess as _0x57cb6b,complete as _0x8f9db,DEFAULT_MODEL as _0xb1e91e,createBackendClient as _0x15ac25,evaluate as _0x4576dd,isCompletionRequestError as _0x37c3b1,isEvaluationRequestError as _0x5d9d8b,isTranscriptionError as _0x43169a,rerank as _0x1f3765,transcribe as _0x4a0656,verify as _0x5dffb2,acceptDelegation as _0x586d4e,cancelDelegation as _0x154ca1,claimDelegation as _0x4c8695,completeDelegation as _0x3bffc4,createDelegation as _0x57d5a1,deleteDelegation as _0x3be76e,dismissDelegation as _0x60340,getSessionDelegations as _0x292875,isDelegationError as _0x479e54,listDelegations as _0x23dee6,listOrgUsers as _0x2fe6be,previewDelegation as _0x165e38,TurnResultCollector as _0x3997de,agentEventToJsonLine as _0x52831b,describeBaseUrlRejection as _0xb2169e,getActivitySummary as _0x2bc8cc,getAuthFilePath as _0x36eef0,getByoWarnings as _0x12da00,getCartographerAllowance as _0x119c61,getDailyBreakdown as _0x5a7502,getLicensingSummary as _0x50cc0c,getMonthlySpending as _0x1c56a8,isOutputFormat as _0x2742b0,isCloudBaseUrl as _0x180d59,isSafeProjectFolderSegment as _0x4e839f,listModels as _0x46becb,listSessions as _0x508ff6,getSession as _0x5e0635,renameSession as _0x2394b9,deleteSession as _0x2a8b83,deleteSessionTaskLog as _0x1e93cf,forkSession as _0x3bd928,isBackendRequestError as _0x86d771,MAX_SESSION_PAGE_SIZE as _0x1b94ec,listTenants as _0x330e63,loadAndRefreshAuth as _0x21a765,loadAndRefreshSdkLogin as _0x4055da,parsePlatformBaseUrl as _0x1f4e1d,resolveBackendUrl as _0x243ec2,runHealthCheck as _0x402d97,runHostCommand as _0x377fbf,runLoginFlow as _0xba2850,runTurnForResult as _0x4617fe,saveAuthData as _0x5183f8,switchTenant as _0x9b5285,toJsonLine as _0x1317de,ENV_TO_CLOUD as _0x1d4e53,OUTPUT_FORMATS as _0x3315a3}from'@uipath/delegate-sdk';var mt=[_0x438223(0x23e),_0x438223(0x386),_0x438223(0x237),_0x438223(0x24e),_0x438223(0x269),_0x438223(0x30c),_0x438223(0x319),_0x438223(0x2f9),_0x438223(0x2dc),_0x438223(0x344),_0x438223(0x26d),'verify',_0x438223(0x28b),'transcribe',_0x438223(0x21a),'org-users'],W=['',_0x438223(0x237),_0x438223(0x30c),_0x438223(0x319),'sessions',_0x438223(0x2dc),_0x438223(0x344),_0x438223(0x26d),'verify',_0x438223(0x28b),'transcribe',_0x438223(0x21a),'org-users'],G=[_0x438223(0x265),_0x438223(0x315),'high',_0x438223(0x2a6),_0x438223(0x357)],ft=_0x461117;function p(_0x1b67d2,_0xaced0f,_0x259921,_0xb2006f){const _0x5eecca=_0x438223;let _0x419b3f=_0x1b67d2[_0xaced0f];return(!_0x419b3f||_0x419b3f[_0x5eecca(0x29d)]>0x1&&_0x419b3f[_0x5eecca(0x372)]('-'))&&(console[_0x5eecca(0x289)](_0x259921+_0x5eecca(0x2f0)+_0xb2006f+'.'),process[_0x5eecca(0x1e1)](0x2)),_0x419b3f;}function N(_0x321d81,_0x44047b,_0x165330,_0x26e157){const _0x6ee755=_0x438223;let _0x5c01f3=p(_0x321d81,_0x44047b,_0x165330,_0x6ee755(0x30e)),_0xf824e3=Number(_0x5c01f3);return(!/^\d+$/[_0x6ee755(0x2a5)](_0x5c01f3)||_0xf824e3<0x1||!Number['isSafeInteger'](_0xf824e3)||_0x26e157!==void 0x0&&_0xf824e3>_0x26e157)&&(console['error'](_0x165330+_0x6ee755(0x351)+(_0x26e157===void 0x0?_0x6ee755(0x325):_0x6ee755(0x21e)+_0x26e157)+_0x6ee755(0x308)+_0x5c01f3+'.'),process[_0x6ee755(0x1e1)](0x2)),_0xf824e3;}function ht(_0xd25509){const _0x462af4=_0x438223;let _0x32789c={'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':_0x462af4(0x1ef),'preloadSkills':[],'attachments':[],'skipEnvCheck':!0x1,'includeSubAgents':!0x1,'operands':[],'help':!0x1,'version':!0x1};mt['includes'](_0xd25509[0x0])&&(_0x32789c[_0x462af4(0x311)]=_0xd25509[0x0],_0xd25509=_0xd25509[_0x462af4(0x2d8)](0x1));let _0x26d401=[];for(let _0x5381b9=0x0;_0x5381b9<_0xd25509['length'];_0x5381b9++){let _0x2c1f18=_0xd25509[_0x5381b9];switch(_0x2c1f18){case'--print':case'-p':_0x32789c['print']=!0x0;break;case'--keep-alive':_0x32789c[_0x462af4(0x2c2)]=!0x0;break;case _0x462af4(0x368):_0x32789c[_0x462af4(0x327)]=!0x0;break;case _0x462af4(0x1f6):_0x32789c[_0x462af4(0x284)]=!0x0;break;case _0x462af4(0x31b):_0x32789c[_0x462af4(0x2b0)]=!0x0;break;case _0x462af4(0x215):_0x32789c['cartographer']=!0x0,_0x32789c[_0x462af4(0x2b0)]=!0x0,_0x32789c[_0x462af4(0x2df)]['push'](...ft);break;case _0x462af4(0x371):_0x32789c[_0x462af4(0x2f8)]=!0x0;break;case _0x462af4(0x33f):_0x32789c[_0x462af4(0x270)]=!0x0;break;case _0x462af4(0x250):_0x32789c['noMemory']=!0x0;break;case _0x462af4(0x2cf):_0x32789c[_0x462af4(0x363)]=!0x0;break;case'--quiet':case'-q':_0x32789c[_0x462af4(0x22b)]=!0x0;break;case _0x462af4(0x25d):_0x32789c[_0x462af4(0x2b1)]=!0x0;break;case _0x462af4(0x331):_0x32789c['backendUrl']=_0xd25509[++_0x5381b9];break;case _0x462af4(0x212):_0x32789c[_0x462af4(0x1e8)]=_0xd25509[++_0x5381b9];break;case _0x462af4(0x2e6):_0x32789c[_0x462af4(0x1f2)]=_0xd25509[++_0x5381b9];break;case _0x462af4(0x33e):_0x32789c[_0x462af4(0x219)]=_0xd25509[++_0x5381b9];break;case'--worker-id':_0x32789c[_0x462af4(0x1df)]=_0xd25509[++_0x5381b9];break;case _0x462af4(0x393):_0x32789c[_0x462af4(0x2df)][_0x462af4(0x314)](p(_0xd25509,++_0x5381b9,_0x2c1f18,_0x462af4(0x1e6)));break;case _0x462af4(0x1ff):{let _0x4a5bc8=p(_0xd25509,++_0x5381b9,_0x2c1f18,'a\x20project\x20id');_0x4e839f(_0x4a5bc8)||(console[_0x462af4(0x289)]('Invalid\x20--project:\x20\x22'+_0x4a5bc8+_0x462af4(0x305)),process['exit'](0x2)),_0x32789c[_0x462af4(0x26a)]=_0x4a5bc8;break;}case'--output-format':{let _0x29484e=p(_0xd25509,++_0x5381b9,_0x2c1f18,_0x462af4(0x30b)+_0x3315a3[_0x462af4(0x365)](_0x462af4(0x29f))+')');_0x2742b0(_0x29484e)||(console[_0x462af4(0x289)](_0x462af4(0x277)+_0x29484e+_0x462af4(0x1d4)+_0x3315a3[_0x462af4(0x365)](_0x462af4(0x29f))+'.'),process[_0x462af4(0x1e1)](0x2)),_0x32789c[_0x462af4(0x23c)]=_0x29484e;break;}case _0x462af4(0x339):_0x32789c[_0x462af4(0x23f)]=p(_0xd25509,++_0x5381b9,_0x2c1f18,_0x462af4(0x1ee));break;case _0x462af4(0x224):_0x32789c[_0x462af4(0x2bc)]=N(_0xd25509,++_0x5381b9,_0x2c1f18);break;case _0x462af4(0x201):_0x32789c[_0x462af4(0x24a)]=N(_0xd25509,++_0x5381b9,_0x2c1f18,_0x1b94ec);break;case _0x462af4(0x387):_0x32789c['includeSubAgents']=!0x0;break;case'--json-schema':_0x32789c[_0x462af4(0x290)]=p(_0xd25509,++_0x5381b9,_0x2c1f18,_0x462af4(0x2a4));break;case _0x462af4(0x24c):{let _0x2f3b26=_0x3aefdd['resolve'](process[_0x462af4(0x25c)](),p(_0xd25509,++_0x5381b9,_0x2c1f18,'a\x20file\x20path'));_0x1b21f7[_0x462af4(0x2cc)](_0x2f3b26)||(console['error'](_0x462af4(0x207)+_0x2f3b26),process[_0x462af4(0x1e1)](0x2)),_0x32789c[_0x462af4(0x303)][_0x462af4(0x314)](_0x2f3b26);break;}case'--turn':_0x32789c[_0x462af4(0x2e2)]=p(_0xd25509,++_0x5381b9,_0x2c1f18,'a\x20turn\x20id');break;case _0x462af4(0x1fa):_0x32789c['delegateTo']=p(_0xd25509,++_0x5381b9,_0x2c1f18,_0x462af4(0x296));break;case _0x462af4(0x222):_0x32789c[_0x462af4(0x390)]=p(_0xd25509,++_0x5381b9,_0x2c1f18,'a\x20briefing\x20text');break;case _0x462af4(0x2c3):_0x32789c['days']=N(_0xd25509,++_0x5381b9,_0x2c1f18,0x16d);break;case _0x462af4(0x20f):_0x32789c['workingDirectory']=_0x3aefdd[_0x462af4(0x294)](process[_0x462af4(0x25c)](),p(_0xd25509,++_0x5381b9,_0x2c1f18,_0x462af4(0x1ec)));break;case'--skills-path':_0x32789c[_0x462af4(0x323)]=_0x3aefdd['resolve'](process['cwd'](),p(_0xd25509,++_0x5381b9,_0x2c1f18,'a\x20directory\x20path'));break;case _0x462af4(0x31d):{let _0x7f1df3=p(_0xd25509,++_0x5381b9,_0x2c1f18,_0x462af4(0x38d));G[_0x462af4(0x249)](_0x7f1df3)||(console[_0x462af4(0x289)](_0x462af4(0x2e3)+_0x7f1df3+'.\x20Use\x20'+G[_0x462af4(0x365)](_0x462af4(0x29f))+'.'),process[_0x462af4(0x1e1)](0x2)),_0x32789c[_0x462af4(0x364)]=_0x7f1df3;break;}case _0x462af4(0x2d1):{let _0x516c53=_0xd25509[++_0x5381b9];(!_0x516c53||_0x516c53[_0x462af4(0x372)]('--'))&&(console[_0x462af4(0x289)](_0x462af4(0x2ca)),process['exit'](0x2)),_0x32789c[_0x462af4(0x386)]=_0x516c53;break;}case _0x462af4(0x2bd):{let _0x4eb6b9=_0xd25509[++_0x5381b9];[_0x462af4(0x285),_0x462af4(0x27a),_0x462af4(0x320),_0x462af4(0x2f4)][_0x462af4(0x249)](_0x4eb6b9)||(console[_0x462af4(0x289)](_0x462af4(0x28c)+_0x4eb6b9+_0x462af4(0x2f2)),process['exit'](0x2)),_0x32789c[_0x462af4(0x286)]=_0x4eb6b9;break;}case _0x462af4(0x1fd):case _0x462af4(0x36b):{let _0x38179c=p(_0xd25509,++_0x5381b9,_0x2c1f18,_0x462af4(0x211)),_0xd4cac2=_0x1f4e1d(_0x38179c);if(_0xd4cac2['ok']===!0x1){console['error'](_0xb2169e(_0x38179c,_0xd4cac2[_0x462af4(0x34e)])),process[_0x462af4(0x1e1)](0x2);break;}_0x32789c['url']=_0xd4cac2[_0x462af4(0x381)];break;}case _0x462af4(0x241):_0x32789c[_0x462af4(0x1e0)]=!0x0;break;case'-h':case _0x462af4(0x1d9):_0x32789c['help']=!0x0;break;case'-v':case'--version':_0x32789c[_0x462af4(0x36d)]=!0x0;break;default:_0x2c1f18[_0x462af4(0x372)]('--')&&(console[_0x462af4(0x289)](_0x462af4(0x21b)+_0x2c1f18),process['exit'](0x2)),_0x26d401[_0x462af4(0x314)](_0x2c1f18);}}return _0x32789c['tenant']!==void 0x0&&_0x32789c[_0x462af4(0x311)]!==_0x462af4(0x23e)&&(console['error']('--tenant\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Switch\x20tenants\x20with:\x20delegate-cli\x20tenant\x20<name>'),process[_0x462af4(0x1e1)](0x2)),_0x32789c[_0x462af4(0x22a)]!==void 0x0&&_0x32789c[_0x462af4(0x286)]!==void 0x0&&(console[_0x462af4(0x289)](_0x462af4(0x2c0)),process[_0x462af4(0x1e1)](0x2)),_0x32789c[_0x462af4(0x22a)]!==void 0x0&&_0x32789c[_0x462af4(0x311)]!==_0x462af4(0x23e)&&(console[_0x462af4(0x289)](_0x462af4(0x2c1)),process[_0x462af4(0x1e1)](0x2)),_0x32789c[_0x462af4(0x2ef)]!==void 0x0&&_0x32789c[_0x462af4(0x311)]!==_0x462af4(0x2dc)&&(console[_0x462af4(0x289)]('--days\x20applies\x20to\x20`delegate-cli\x20usage\x20activity|daily`\x20only.'),process[_0x462af4(0x1e1)](0x2)),_0x32789c[_0x462af4(0x290)]!==void 0x0&&(_0x32789c[_0x462af4(0x311)]!==_0x462af4(0x28b)&&_0x32789c[_0x462af4(0x311)]!==''||_0x32789c['cleanup'])&&(console['error']('--json-schema\x20applies\x20to\x20prompts\x20and\x20to\x20`delegate-cli\x20complete`\x20only.'),process[_0x462af4(0x1e1)](0x2)),_0x32789c[_0x462af4(0x303)][_0x462af4(0x29d)]>0x0&&(_0x32789c[_0x462af4(0x311)]!==''||_0x32789c['cleanup'])&&(console[_0x462af4(0x289)](_0x462af4(0x220)),process[_0x462af4(0x1e1)](0x2)),_0x32789c[_0x462af4(0x363)]&&(_0x32789c[_0x462af4(0x311)]!==''||_0x32789c[_0x462af4(0x327)])&&(console['error'](_0x462af4(0x392)),process['exit'](0x2)),_0x32789c[_0x462af4(0x363)]&&(_0x32789c[_0x462af4(0x284)]||_0x32789c['noComputerUse'])&&(console[_0x462af4(0x289)]('--task-automation\x20needs\x20computer\x20use:\x20the\x20task\x20log\x20is\x20written\x20by\x20the\x20UI-automation\x20tools.\x20Drop\x20--headless,\x20--no-computer-use\x20and\x20--cartographer.'),process[_0x462af4(0x1e1)](0x2)),_0x32789c[_0x462af4(0x1e0)]&&_0x32789c[_0x462af4(0x311)]!==_0x462af4(0x23e)&&(console['error']('--skip-env-check\x20applies\x20to\x20`delegate-cli\x20login`\x20only.'),process[_0x462af4(0x1e1)](0x2)),_0x32789c[_0x462af4(0x23c)]!==_0x462af4(0x1ef)&&!W[_0x462af4(0x249)](_0x32789c[_0x462af4(0x311)])&&(console['error'](_0x462af4(0x1db)+_0x32789c[_0x462af4(0x23c)]+'\x20applies\x20to\x20prompts\x20and\x20to\x20these\x20commands\x20only:\x20'+W[_0x462af4(0x258)](Boolean)[_0x462af4(0x365)](',\x20')+'.'),process[_0x462af4(0x1e1)](0x2)),(_0x32789c['page']!==void 0x0||_0x32789c[_0x462af4(0x24a)]!==void 0x0||_0x32789c[_0x462af4(0x28e)])&&_0x32789c[_0x462af4(0x311)]!==_0x462af4(0x2f9)&&(console[_0x462af4(0x289)](_0x462af4(0x1fb)),process[_0x462af4(0x1e1)](0x2)),(_0x32789c[_0x462af4(0x244)]!==void 0x0||_0x32789c[_0x462af4(0x390)]!==void 0x0)&&_0x32789c[_0x462af4(0x311)]!==_0x462af4(0x21a)&&(console[_0x462af4(0x289)](_0x462af4(0x377)),process['exit'](0x2)),_0x32789c[_0x462af4(0x2e2)]!==void 0x0&&_0x32789c[_0x462af4(0x311)]!==_0x462af4(0x2f9)&&(console[_0x462af4(0x289)](_0x462af4(0x203)),process[_0x462af4(0x1e1)](0x2)),_0x32789c[_0x462af4(0x2df)]=[...new Set(_0x32789c[_0x462af4(0x2df)])],_0x32789c[_0x462af4(0x336)]=_0x26d401,_0x32789c[_0x462af4(0x2c8)]=_0x26d401[_0x462af4(0x365)]('\x20'),_0x32789c;}var S=_0x3ac5a0=>{const _0x470bd1=_0x438223;process[_0x470bd1(0x1f7)][_0x470bd1(0x23d)](_0x3ac5a0);};function gt(){const _0x43ccb5=_0x438223;let _0xed2f38=process[_0x43ccb5(0x1f7)]['write'],_0x1cd2ad=_0xed2f38[_0x43ccb5(0x2d6)](process['stdout']),_0x279335=S;return S=_0x4f0fb3=>{_0x1cd2ad(_0x4f0fb3);},process[_0x43ccb5(0x1f7)][_0x43ccb5(0x23d)]=(..._0x2c1e0c)=>process[_0x43ccb5(0x235)][_0x43ccb5(0x23d)](..._0x2c1e0c),()=>{const _0x518e62=_0x43ccb5;process[_0x518e62(0x1f7)][_0x518e62(0x23d)]=_0xed2f38,S=_0x279335;};}function l(_0x497a82,_0x47accc,_0x4b4ab0){const _0x30c9b2=_0x438223;if(_0x497a82[_0x30c9b2(0x23c)]===_0x30c9b2(0x1ef)){_0x4b4ab0(_0x47accc);return;}S(_0x1317de(_0x47accc));}function wt(){const _0x35c74c=_0x438223;let _0x439a8a=_0x35c74c(0x227)[_0x35c74c(0x30a)]();console[_0x35c74c(0x25a)](_0x439a8a);}function yt(){const _0x36d33a=_0x438223;try{return JSON[_0x36d33a(0x205)](_0x1b21f7[_0x36d33a(0x33c)](_0x3aefdd[_0x36d33a(0x365)](__dirname,'..','package.json'),_0x36d33a(0x34f)))[_0x36d33a(0x36d)]||_0x36d33a(0x22d);}catch{return'unknown';}}var kt=0x7d0;async function K(_0x4e2152,_0x25ac90){const _0x374a0e=_0x438223;let _0x2c9794=_0x25ac90?[_0x25ac90]:[];for await(let _0x5dbbba of _0x4e2152)_0x2c9794[_0x374a0e(0x314)](Buffer['from'](_0x5dbbba));return Buffer[_0x374a0e(0x359)](_0x2c9794)[_0x374a0e(0x202)](_0x374a0e(0x34f))[_0x374a0e(0x30a)]();}function St(_0x51b087,_0x498f05){return new Promise(_0x4c870d=>{const _0x4b22ef=_0x19a6;let _0x303c99=_0x4bf1c0=>{const _0x56790a=_0x19a6;clearTimeout(_0x1496d8),_0x51b087[_0x56790a(0x391)](_0x56790a(0x2b3),_0x47987a),_0x51b087['off'](_0x56790a(0x31a),_0x342da9),_0x51b087['off']('error',_0x342da9),_0x51b087[_0x56790a(0x306)](),_0x4c870d(_0x4bf1c0);},_0x47987a=_0x12113f=>_0x303c99(Buffer[_0x4b22ef(0x362)](_0x12113f)),_0x342da9=()=>_0x303c99(null),_0x1496d8=setTimeout(()=>_0x303c99(null),_0x498f05);_0x51b087['on'](_0x4b22ef(0x2b3),_0x47987a),_0x51b087['on']('end',_0x342da9),_0x51b087['on'](_0x4b22ef(0x289),_0x342da9),_0x51b087[_0x4b22ef(0x2d3)]();});}async function I(_0x4fd5ee,_0x143421,_0x3f95ea=kt){const _0x294bb9=_0x438223;let _0x2e8df2=_0x4fd5ee==='-';if(!_0x2e8df2&&_0x4fd5ee)return _0x4fd5ee;if(!_0x2e8df2&&_0x143421[_0x294bb9(0x38b)])return'';if(_0x2e8df2)return K(_0x143421,null);let _0x3c8400=await St(_0x143421,_0x3f95ea);return _0x3c8400?K(_0x143421,_0x3c8400):'';}function L(){const _0x5e9a03=_0x438223;return _0x3aefdd['join'](process.env.HOME||process.env.USERPROFILE||'',_0x5e9a03(0x229),_0x5e9a03(0x29c));}function $(_0xff57c8){const _0x2cc9fa=_0x438223;try{let _0x3b9a0c=JSON['parse'](_0x1b21f7['readFileSync'](_0xff57c8,'utf-8'));return!_0x3b9a0c[_0x2cc9fa(0x309)]||!_0x3b9a0c['tenantId']||!_0x3b9a0c[_0x2cc9fa(0x317)]?null:_0x3b9a0c;}catch{return null;}}function bt(){const _0x42ee2b=_0x438223;let _0x1049cb=[{'file':_0x36eef0(),'isDesktopFallback':!0x1},{'file':L(),'isDesktopFallback':!0x0}];for(let _0x1ea002 of _0x1049cb){let _0x1c53a7=$(_0x1ea002[_0x42ee2b(0x2db)]);if(_0x1c53a7)return{..._0x1ea002,'auth':_0x1c53a7};}return null;}async function vt(){const _0x46ac0e=_0x438223;let _0x4f5ad5=_0x36eef0();if(!_0x1b21f7[_0x46ac0e(0x2cc)](_0x4f5ad5)){let _0x4abd8f=L();console[_0x46ac0e(0x25a)]($(_0x4abd8f)?_0x46ac0e(0x228)+_0x4abd8f+_0x46ac0e(0x32f):'No\x20CLI\x20login\x20found\x20—\x20nothing\x20to\x20remove.');return;}_0x1b21f7[_0x46ac0e(0x243)](_0x4f5ad5),console[_0x46ac0e(0x25a)](_0x46ac0e(0x232)+_0x4f5ad5);}async function At(_0x290930){const _0x2e5874=_0x438223;let _0x2bf700=O(),_0x3f4a0d,_0x51aebc;if(_0x2bf700)_0x3f4a0d=_0x2bf700,_0x51aebc=_0x2e5874(0x2c9);else{let _0x33a584=bt();if(!_0x33a584)throw new Error(le);_0x3f4a0d=_0x33a584[_0x2e5874(0x360)],_0x51aebc=_0x33a584[_0x2e5874(0x21d)]?_0x33a584[_0x2e5874(0x2db)]+_0x2e5874(0x32d):_0x33a584[_0x2e5874(0x2db)];}let _0x4c5812={'source':_0x51aebc,'baseUrl':_0x3f4a0d['baseUrl']??null,'deployment':Et(_0x3f4a0d[_0x2e5874(0x381)]),'organization':{'id':_0x3f4a0d[_0x2e5874(0x317)],'slug':_0x3f4a0d[_0x2e5874(0x281)]??null},'tenant':{'id':_0x3f4a0d['tenantId'],'name':_0x3f4a0d[_0x2e5874(0x366)]??null},'tokenExpiresAt':_0x3f4a0d[_0x2e5874(0x301)]?new Date(_0x3f4a0d['expiresAt']*0x3e8)['toISOString']():null};l(_0x290930,_0x4c5812,()=>{const _0x73bc3b=_0x2e5874;let _0x5d1195=['Source:\x20\x20\x20\x20\x20\x20\x20'+_0x51aebc,'Base\x20URL:\x20\x20\x20\x20\x20'+(_0x3f4a0d['baseUrl']??'unknown'),_0x73bc3b(0x214)+_0x4c5812[_0x73bc3b(0x2e4)],_0x73bc3b(0x2ba)+(_0x3f4a0d[_0x73bc3b(0x281)]??_0x73bc3b(0x20b))+'\x20('+_0x3f4a0d[_0x73bc3b(0x317)]+')',_0x73bc3b(0x275)+(_0x3f4a0d['tenantName']??_0x73bc3b(0x20b))+'\x20('+_0x3f4a0d[_0x73bc3b(0x246)]+')'];if(_0x3f4a0d[_0x73bc3b(0x301)]){let _0x22fde4=_0x3f4a0d[_0x73bc3b(0x301)]-Math[_0x73bc3b(0x266)](Date[_0x73bc3b(0x350)]()/0x3e8);_0x5d1195['push'](_0x22fde4>0x0?_0x73bc3b(0x287)+_0x4c5812[_0x73bc3b(0x1d1)]+_0x73bc3b(0x33b)+Math[_0x73bc3b(0x20d)](_0x22fde4/0x3c)+'\x20min)':_0x73bc3b(0x1ea)+_0x4c5812[_0x73bc3b(0x1d1)]);}process[_0x73bc3b(0x1f7)]['write'](_0x5d1195[_0x73bc3b(0x365)]('\x0a')+'\x0a');});}function _0x19a6(_0x1d7d92,_0x49abfa){_0x1d7d92=_0x1d7d92-0x1d1;const _0x1b8a0a=_0x1b8a();let _0x19a66e=_0x1b8a0a[_0x1d7d92];return _0x19a66e;}var le=_0x438223(0x335);function Et(_0x35f8b2){const _0x23d429=_0x438223;return _0x35f8b2?_0x180d59(_0x35f8b2)?'UiPath\x20Cloud':_0x23d429(0x38c):_0x23d429(0x22d);}function O(){let _0x128cd2=process.env.AUTH_TOKEN_FILE;return(process.env.AUTH_TOKEN||_0x128cd2)&&process.env.TENANT_ID&&process.env.ORG_ID?{'accessToken':_0x128cd2?It(_0x128cd2):process.env.AUTH_TOKEN,..._0x128cd2?{'accessTokenFile':_0x128cd2}:{},'tenantId':process.env.TENANT_ID,'organizationId':process.env.ORG_ID,'orgLogicalName':process.env.ORG_SLUG,'tenantName':process.env.TENANT_SLUG,'baseUrl':ce()}:null;}function It(_0x16d057){const _0x1d6cf7=_0x438223;let _0x135588;try{_0x135588=_0x1b21f7[_0x1d6cf7(0x33c)](_0x16d057,_0x1d6cf7(0x34f))['trim']();}catch(_0x91a748){throw new Error('AUTH_TOKEN_FILE\x20\x27'+_0x16d057+_0x1d6cf7(0x2b9)+_0x91a748['message']);}let _0x262637=_0x135588[_0x1d6cf7(0x372)](_0x1d6cf7(0x1f8))?_0x135588[_0x1d6cf7(0x2d8)](0x7)[_0x1d6cf7(0x30a)]():_0x135588;if(!_0x262637)throw new Error('AUTH_TOKEN_FILE\x20\x27'+_0x16d057+_0x1d6cf7(0x257));return _0x262637;}function ce(){const _0x50503d=_0x438223;let _0x5307cc=process.env.UIPATH_BASE_URL;if(!_0x5307cc)return;let _0x5dab08=_0x1f4e1d(_0x5307cc);if(_0x5dab08['ok']===!0x1)throw new Error(_0x50503d(0x263)+_0xb2169e(_0x5307cc,_0x5dab08[_0x50503d(0x34e)]));return _0x5dab08[_0x50503d(0x381)];}async function P(){let _0x42321f=O();if(_0x42321f)return _0x42321f;let _0x22f779=await _0x21a765();if(_0x22f779)return _0x22f779;throw new Error(le);}async function $t(){const _0x587eef=_0x438223;await new _0x57cb6b()[_0x587eef(0x333)]({'force':!0x0}),console[_0x587eef(0x25a)](_0x587eef(0x35d));}function F(_0x1ca9c9,_0x3b6dd4,_0x472de7){const _0x132e7d=_0x438223;_0x1ca9c9?process[_0x132e7d(0x235)][_0x132e7d(0x23d)](_0x132e7d(0x2af)+_0x1ca9c9+_0x132e7d(0x225)+_0x472de7+'\x0a'):!_0x3b6dd4&&!process.env.BACKEND_URL&&process['stderr'][_0x132e7d(0x23d)](_0x132e7d(0x221)+_0x472de7+'\x0a');}async function f(_0x37c8f3){const _0x340066=_0x438223;let _0x4bd830=await P(),_0x198508=_0x243ec2(_0x37c8f3[_0x340066(0x286)],_0x4bd830,_0x37c8f3[_0x340066(0x240)]);return F(_0x37c8f3[_0x340066(0x286)],_0x37c8f3['backendUrl'],_0x198508),{'auth':_0x4bd830,'backendUrl':_0x198508,'client':_0x15ac25({'auth':_0x4bd830,'backendUrl':_0x198508})};}async function Tt(_0x13d9f7){const _0x18d3c3=_0x438223;let {client:_0x36b258}=await f(_0x13d9f7),[_0x41b5d7,_0x497203]=await Promise[_0x18d3c3(0x353)]([_0x46becb(_0x36b258),_0x12da00(_0x36b258)[_0x18d3c3(0x355)](_0x1af0be=>(process[_0x18d3c3(0x235)][_0x18d3c3(0x23d)]('Could\x20not\x20check\x20BYO\x20model\x20warnings:\x20'+(_0x1af0be instanceof Error?_0x1af0be[_0x18d3c3(0x32a)]:String(_0x1af0be))+'\x0a'),{}))]),_0x2b7ef9=_0x41b5d7['map'](_0x413e1e=>_0x497203[_0x413e1e['id']]?{..._0x413e1e,'byoWarning':_0x497203[_0x413e1e['id']]}:_0x413e1e);l(_0x13d9f7,_0x2b7ef9,xt);}function xt(_0x1f806b){const _0x5458e7=_0x438223;if(_0x1f806b[_0x5458e7(0x29d)]===0x0){process['stderr'][_0x5458e7(0x23d)](_0x5458e7(0x2fb));return;}process[_0x5458e7(0x1f7)][_0x5458e7(0x23d)](_0x5458e7(0x2a2)+_0x1f806b[_0x5458e7(0x29d)]+_0x5458e7(0x33d));for(let _0x45e874 of _0x1f806b){let _0x513661=_0x45e874[_0x5458e7(0x26e)]&&_0x45e874['name']!==_0x45e874['id']?'\x20('+_0x45e874[_0x5458e7(0x26e)]+')':'';process[_0x5458e7(0x1f7)][_0x5458e7(0x23d)]('\x20\x20'+_0x45e874['id']+_0x513661+'\x0a'),_0x45e874[_0x5458e7(0x1d7)]&&process['stdout'][_0x5458e7(0x23d)](_0x5458e7(0x1da)+_0x45e874[_0x5458e7(0x1d7)]+'\x0a'),_0x45e874['locked']&&process[_0x5458e7(0x1f7)]['write'](_0x5458e7(0x1f4)+(_0x45e874[_0x5458e7(0x2ec)]?'\x20('+_0x45e874['lockReason']+')':'')+'\x0a'),_0x45e874[_0x5458e7(0x28a)]&&process[_0x5458e7(0x1f7)]['write'](_0x5458e7(0x2cd)+_0x45e874[_0x5458e7(0x28a)]+'\x0a');}process[_0x5458e7(0x1f7)][_0x5458e7(0x23d)](_0x5458e7(0x389));}var z=[_0x438223(0x337),_0x438223(0x338),_0x438223(0x328),_0x438223(0x349),_0x438223(0x2b6),'fork'];async function Dt(_0x486528){const _0x13659d=_0x438223;let [_0xf2aada='',_0x162163='',..._0x5d0d5d]=_0x486528[_0x13659d(0x336)];if(_0xf2aada&&!z[_0x13659d(0x249)](_0xf2aada)&&(console[_0x13659d(0x289)](_0x13659d(0x330)+_0xf2aada+_0x13659d(0x1f5)+z[_0x13659d(0x365)](_0x13659d(0x29f))+'.'),process[_0x13659d(0x1e1)](0x2)),_0x486528['turnId']!==void 0x0&&_0xf2aada!==_0x13659d(0x2b6)&&(console[_0x13659d(0x289)](_0x13659d(0x203)),process[_0x13659d(0x1e1)](0x2)),_0xf2aada&&_0xf2aada!=='list'){await Ut(_0x486528,_0xf2aada,_0x162163,_0x5d0d5d[_0x13659d(0x365)]('\x20')['trim']());return;}_0x486528['operands']['length']>0x1&&(console[_0x13659d(0x289)](_0x13659d(0x292)),process[_0x13659d(0x1e1)](0x2));let {client:_0x33a754}=await f(_0x486528),_0x1858bb=await _0x508ff6(_0x33a754,{'page':_0x486528[_0x13659d(0x2bc)],'pageSize':_0x486528[_0x13659d(0x24a)],'includeSubAgents':_0x486528[_0x13659d(0x28e)]});l(_0x486528,_0x1858bb,Rt);}async function Ut(_0x1c3c3a,_0x445ca6,_0x430bfb,_0x30966e){const _0x534fbb=_0x438223;if((_0x1c3c3a['page']!==void 0x0||_0x1c3c3a['limit']!==void 0x0||_0x1c3c3a[_0x534fbb(0x28e)])&&(console[_0x534fbb(0x289)](_0x534fbb(0x2ab)),process['exit'](0x2)),_0x445ca6===_0x534fbb(0x2b6)){await Nt(_0x1c3c3a,_0x430bfb,_0x30966e);return;}if(_0x445ca6===_0x534fbb(0x1f3)){await Ct(_0x1c3c3a,_0x430bfb,_0x30966e);return;}(!_0x430bfb||_0x445ca6===_0x534fbb(0x328)!=!!_0x30966e)&&(console[_0x534fbb(0x289)]('Usage:\x20delegate-cli\x20sessions\x20'+_0x445ca6+_0x534fbb(0x2cb)+(_0x445ca6===_0x534fbb(0x328)?'\x20<title>':'')),process['exit'](0x2));let {client:_0x176990}=await f(_0x1c3c3a);try{if(_0x445ca6===_0x534fbb(0x338)){let _0xd97ff0=await _0x5e0635(_0x176990,_0x430bfb);_0xd97ff0||V(_0x430bfb),l(_0x1c3c3a,_0xd97ff0,_t);}else{if(_0x445ca6===_0x534fbb(0x328)){let _0x58cab7=await _0x2394b9(_0x176990,_0x430bfb,_0x30966e);l(_0x1c3c3a,_0x58cab7,_0xd45e0c=>{const _0x305aec=_0x534fbb;process[_0x305aec(0x1f7)][_0x305aec(0x23d)](_0x305aec(0x299)+_0xd45e0c['id']+':\x20'+_0xd45e0c[_0x305aec(0x26f)]+'\x0a');});}else await _0x2a8b83(_0x176990,_0x430bfb),await _0x1e93cf(_0x430bfb,_0x1c3c3a[_0x534fbb(0x25b)]),l(_0x1c3c3a,{'id':_0x430bfb,'deleted':!0x0},_0x790002=>{const _0x4cc673=_0x534fbb;process[_0x4cc673(0x1f7)][_0x4cc673(0x23d)]('Deleted\x20session\x20'+_0x790002['id']+'.\x0a');});}}catch(_0x204583){if(!_0x86d771(_0x204583,0x194))throw _0x204583;V(_0x430bfb);}}function V(_0x786d2c){const _0x1ffc78=_0x438223;console[_0x1ffc78(0x289)]('Session\x20'+_0x786d2c+'\x20not\x20found.'),process[_0x1ffc78(0x1e1)](0x1);}function _t(_0x1c1ec2){const _0x53a4f5=_0x438223;process[_0x53a4f5(0x1f7)][_0x53a4f5(0x23d)](_0x53a4f5(0x282)+_0x1c1ec2['id']+'\x0a'),process[_0x53a4f5(0x1f7)][_0x53a4f5(0x23d)](_0x53a4f5(0x247)+_0x1c1ec2['title']+'\x0a'),process['stdout']['write'](_0x53a4f5(0x2f7)+_0x1c1ec2[_0x53a4f5(0x21f)]+'\x0a'),process['stdout'][_0x53a4f5(0x23d)]('Organization\x20\x20'+_0x1c1ec2[_0x53a4f5(0x317)]+'\x0a'),_0x1c1ec2[_0x53a4f5(0x280)]&&process['stdout']['write'](_0x53a4f5(0x245)+_0x1c1ec2[_0x53a4f5(0x280)]+'\x0a');}async function Nt(_0x3f5983,_0x20ab67,_0x5c2bec){const _0x24c03d=_0x438223;(!_0x20ab67||_0x5c2bec||!_0x3f5983[_0x24c03d(0x2e2)])&&(console[_0x24c03d(0x289)](_0x24c03d(0x2d4)),process[_0x24c03d(0x1e1)](0x2));let {client:_0x4f8bcc}=await f(_0x3f5983),_0x2f326d=await _0x289add(_0x4f8bcc,_0x20ab67,_0x3f5983[_0x24c03d(0x2e2)]);l(_0x3f5983,{'sessionId':_0x20ab67,'turnId':_0x3f5983[_0x24c03d(0x2e2)],'cancelled':_0x2f326d},_0xfbfb66=>{const _0x4ad4b2=_0x24c03d;_0xfbfb66[_0x4ad4b2(0x27b)]?process[_0x4ad4b2(0x1f7)][_0x4ad4b2(0x23d)]('Cancel\x20requested\x20for\x20turn\x20'+_0xfbfb66[_0x4ad4b2(0x2e2)]+_0x4ad4b2(0x226)+_0xfbfb66[_0x4ad4b2(0x23f)]+'.\x0a'):process[_0x4ad4b2(0x235)]['write'](_0x4ad4b2(0x248)+_0xfbfb66[_0x4ad4b2(0x2e2)]+'\x20in\x20progress\x20on\x20session\x20'+_0xfbfb66[_0x4ad4b2(0x23f)]+'.\x0a');}),_0x2f326d||(process[_0x24c03d(0x2da)]=0x1);}async function Ct(_0x45e8bc,_0x4b0706,_0x175bf4){const _0x3fcd16=_0x438223;(!_0x4b0706||/\s/[_0x3fcd16(0x2a5)](_0x175bf4))&&(console[_0x3fcd16(0x289)](_0x3fcd16(0x2e5)),process[_0x3fcd16(0x1e1)](0x2));let {client:_0xc222b1}=await f(_0x45e8bc),_0x31fac8;try{_0x31fac8=await _0x3bd928(_0xc222b1,_0x4b0706,{'atMessageId':_0x175bf4||void 0x0});}catch(_0x1eecd6){if(!_0x86d771(_0x1eecd6,0x194))throw _0x1eecd6;console[_0x3fcd16(0x289)](_0x3fcd16(0x341)+_0x4b0706+_0x3fcd16(0x26c)+(_0x175bf4?_0x3fcd16(0x302)+_0x175bf4:'')+'.'),process['exit'](0x1);}l(_0x45e8bc,_0x31fac8,_0x3e2e51=>{const _0x45c1fd=_0x3fcd16;process['stdout'][_0x45c1fd(0x23d)](_0x45c1fd(0x395)+_0x4b0706+_0x45c1fd(0x2e1)+_0x3e2e51['id']+'.\x0a'),process['stderr']['write'](_0x45c1fd(0x27d)+_0x3e2e51['id']+_0x45c1fd(0x209));});}function Rt({sessions:_0x525e9a,page:_0x41a811,isLastPage:_0x4f77b7}){const _0x405797=_0x438223;if(_0x525e9a[_0x405797(0x29d)]===0x0)process['stderr'][_0x405797(0x23d)](_0x405797(0x2f5)+_0x41a811+'.\x0a');else{process['stdout'][_0x405797(0x23d)]('ID'[_0x405797(0x276)](0x24)+'\x20\x20'+_0x405797(0x36f)['padEnd'](0x13)+'\x20\x20TITLE\x0a');for(let _0x5448a5 of _0x525e9a){let _0x1e6124=_0x5448a5['updatedAt'][_0x405797(0x312)]('T','\x20')[_0x405797(0x2d8)](0x0,0x13),_0x2ff1e1=_0x5448a5[_0x405797(0x272)]?_0x405797(0x354)+_0x5448a5[_0x405797(0x272)]+')':'';process[_0x405797(0x1f7)][_0x405797(0x23d)](_0x5448a5['id'][_0x405797(0x276)](0x24)+'\x20\x20'+_0x1e6124['padEnd'](0x13)+'\x20\x20'+_0x5448a5[_0x405797(0x26f)]+_0x2ff1e1+'\x0a');}}_0x4f77b7||process[_0x405797(0x235)][_0x405797(0x23d)]('More:\x20delegate-cli\x20sessions\x20--page\x20'+(_0x41a811+0x1)+'\x0a');}async function Lt(_0x5aa09e){const _0x2c6c89=_0x438223;let _0x523895=await P(),_0x36f630=_0x243ec2(_0x5aa09e['env'],_0x523895,_0x5aa09e[_0x2c6c89(0x240)]);F(_0x5aa09e[_0x2c6c89(0x286)],_0x5aa09e[_0x2c6c89(0x240)],_0x36f630);let _0x51fe5b=await _0x402d97({'auth':_0x523895,'backendUrl':_0x36f630,'interop':_0x5aa09e[_0x2c6c89(0x284)]?_0x2c6c89(0x239):'spawn'});l(_0x5aa09e,_0x51fe5b,({checks:_0x14c7e9})=>{const _0x4a1e0d=_0x2c6c89;for(let _0x5ae026 of _0x14c7e9)process[_0x4a1e0d(0x1f7)][_0x4a1e0d(0x23d)](Ot(_0x5ae026)+'\x0a');}),_0x51fe5b['ok']||process[_0x2c6c89(0x1e1)](0x1);}function Ot(_0x15379d){const _0x14e164=_0x438223;return{'ok':'✓','failed':'✗','skipped':'-'}[_0x15379d[_0x14e164(0x361)]]+'\x20'+_0x15379d[_0x14e164(0x26e)]['padEnd'](0xa)+_0x15379d['detail'];}var Pt=['',_0x438223(0x29b),'daily'];async function Ft(_0x2b828a){const _0x9158e3=_0x438223;let _0x2d5e01=_0x2b828a[_0x9158e3(0x2c8)];Pt[_0x9158e3(0x249)](_0x2d5e01)||(console[_0x9158e3(0x289)](_0x9158e3(0x1dd)+_0x2b828a['prompt']+_0x9158e3(0x326)),process['exit'](0x2)),_0x2d5e01===''&&_0x2b828a[_0x9158e3(0x2ef)]!==void 0x0&&(console['error'](_0x9158e3(0x2b8)),process[_0x9158e3(0x1e1)](0x2)),_0x2d5e01!==''&&_0x2b828a[_0x9158e3(0x23f)]!==void 0x0&&(console['error'](_0x9158e3(0x2a0)),process[_0x9158e3(0x1e1)](0x2));let {client:_0x522c3a}=await f(_0x2b828a);if(_0x2d5e01===_0x9158e3(0x29b)){l(_0x2b828a,await _0x2bc8cc(_0x522c3a,{'days':_0x2b828a['days']}),Mt);return;}if(_0x2d5e01==='daily'){l(_0x2b828a,await _0x5a7502(_0x522c3a,{'days':_0x2b828a[_0x9158e3(0x2ef)]}),Bt);return;}let [_0x3ca517,_0x454c1e,_0x40dc78]=await Promise['all']([_0x50cc0c(_0x522c3a,{'sessionId':_0x2b828a[_0x9158e3(0x23f)]}),_0x1c56a8(_0x522c3a),_0x119c61(_0x522c3a)]);l(_0x2b828a,{'licensing':_0x3ca517,'monthlySpending':_0x454c1e,'cartographerAllowance':_0x40dc78},jt);}function jt(_0x235165){const _0x1b98b4=_0x438223;let {licensing:_0x3d473a,monthlySpending:_0x577c12,cartographerAllowance:_0x11c7ae}=_0x235165,_0x20b164=[_0x3d473a[_0x1b98b4(0x2e8)]?_0x1b98b4(0x2be)+_0x3d473a[_0x1b98b4(0x208)][_0x1b98b4(0x35c)](0x1)+_0x1b98b4(0x264)+(_0x3d473a[_0x1b98b4(0x2d5)]??0x0)+_0x1b98b4(0x2d7)+(_0x3d473a[_0x1b98b4(0x288)]>0x0?',\x20'+_0x3d473a[_0x1b98b4(0x288)]+_0x1b98b4(0x242):'')+_0x1b98b4(0x2b2)+_0x3d473a[_0x1b98b4(0x298)]+')':'Licensing:\x20\x20\x20\x20no\x20licensing\x20quota\x20applies','Spending:\x20\x20\x20\x20\x20$'+_0x577c12[_0x1b98b4(0x35e)][_0x1b98b4(0x35c)](0x2)+_0x1b98b4(0x397)+(_0x577c12['limit_enabled']&&_0x577c12[_0x1b98b4(0x2c5)]!==null?'\x20of\x20a\x20$'+_0x577c12[_0x1b98b4(0x2c5)][_0x1b98b4(0x35c)](0x2)+_0x1b98b4(0x383):_0x1b98b4(0x2b7)),_0x1b98b4(0x2a3)+_0x11c7ae[_0x1b98b4(0x2fa)]+'\x20('+_0x11c7ae['model_id']+')'];_0x3d473a['session_consumed_pu']!==null&&_0x3d473a[_0x1b98b4(0x2a1)]!==void 0x0&&_0x20b164[_0x1b98b4(0x314)]('Session:\x20\x20\x20\x20\x20\x20'+_0x3d473a[_0x1b98b4(0x2a1)]+_0x1b98b4(0x36a)),process[_0x1b98b4(0x1f7)]['write'](_0x20b164[_0x1b98b4(0x365)]('\x0a')+'\x0a');}function Mt(_0x144f5e){const _0xed3e4d=_0x438223;let _0x4e5bb4=[_0xed3e4d(0x304)+_0x144f5e['period_days']+_0xed3e4d(0x22c)+_0x144f5e[_0xed3e4d(0x256)]+_0xed3e4d(0x2de)+_0x144f5e[_0xed3e4d(0x369)]+_0xed3e4d(0x35a),_0xed3e4d(0x2ae)+_0x144f5e[_0xed3e4d(0x2e0)]['toFixed'](0x2)+_0xed3e4d(0x340)+_0x144f5e[_0xed3e4d(0x2bb)][_0xed3e4d(0x35c)](0x2)+_0xed3e4d(0x37d)+_0x144f5e[_0xed3e4d(0x37a)]+'\x20token\x20units)',_0xed3e4d(0x2dd)+_0x144f5e['total_prompt_tokens']+_0xed3e4d(0x236)+_0x144f5e['total_completion_tokens']+_0xed3e4d(0x322)];for(let [_0x48c21d,_0x2712f3]of Object[_0xed3e4d(0x36e)](_0x144f5e['models_breakdown']))_0x4e5bb4[_0xed3e4d(0x314)]('\x20\x20'+_0x48c21d+':\x20'+_0x2712f3+_0xed3e4d(0x358));process['stdout'][_0xed3e4d(0x23d)](_0x4e5bb4[_0xed3e4d(0x365)]('\x0a')+'\x0a');}function Bt(_0x5d3230){const _0x568ab3=_0x438223;if(_0x5d3230['daily_usage'][_0x568ab3(0x29d)]===0x0){process[_0x568ab3(0x1f7)][_0x568ab3(0x23d)]('No\x20usage\x20in\x20the\x20last\x20'+_0x5d3230[_0x568ab3(0x1d8)]+'\x20days.\x0a');return;}let _0x333d75=[_0x568ab3(0x32e)];for(let _0x9b85ff of _0x5d3230[_0x568ab3(0x38a)])_0x333d75['push'](_0x9b85ff[_0x568ab3(0x2a7)]+'\x20\x20'+String(_0x9b85ff[_0x568ab3(0x213)])[_0x568ab3(0x1f0)](0xb)+'\x20\x20'+String(_0x9b85ff[_0x568ab3(0x23b)])[_0x568ab3(0x1f0)](0xd)+'\x20\x20'+String(_0x9b85ff[_0x568ab3(0x34b)])[_0x568ab3(0x1f0)](0x11));process['stdout'][_0x568ab3(0x23d)](_0x333d75[_0x568ab3(0x365)]('\x0a')+'\x0a');}async function Ht(_0x589b3d,_0x5c585b){const _0x3267dd=_0x438223;let _0x3b1d84=await qt(_0x589b3d['prompt'],_0x5c585b);_0x589b3d[_0x3267dd(0x1e8)]&&(_0x3b1d84['model']=_0x589b3d['model']);let {client:_0x36ade2}=await f(_0x589b3d);try{_0x5c585b===_0x3267dd(0x344)?l(_0x589b3d,await _0x4576dd(_0x36ade2,_0x3b1d84,void 0x0),Wt):_0x5c585b===_0x3267dd(0x26d)?l(_0x589b3d,await _0x1f3765(_0x36ade2,_0x3b1d84,void 0x0),Gt):l(_0x589b3d,await _0x5dffb2(_0x36ade2,_0x3b1d84,void 0x0),Kt);}catch(_0x41b12d){if(!_0x5d9d8b(_0x41b12d))throw _0x41b12d;console[_0x3267dd(0x289)](_0x41b12d['message']),process[_0x3267dd(0x1e1)](0x1);}}async function qt(_0x22277e,_0x5a1e15){const _0x6a0599=_0x438223;let _0x4a154a;try{_0x4a154a=_0x22277e&&_0x22277e!=='-'?_0x1b21f7[_0x6a0599(0x33c)](_0x3aefdd['resolve'](_0x22277e),_0x6a0599(0x34f)):await I(_0x22277e,process[_0x6a0599(0x367)]);}catch(_0x59e409){console['error'](_0x5a1e15+_0x6a0599(0x307)+_0x59e409[_0x6a0599(0x32a)]+').'),process['exit'](0x2);}return _0x4a154a||(console[_0x6a0599(0x289)](_0x5a1e15+_0x6a0599(0x293)+_0x5a1e15+_0x6a0599(0x2f1)),process[_0x6a0599(0x1e1)](0x2)),de(_0x4a154a,_0x5a1e15,'the\x20request');}function de(_0x307203,_0x481d95,_0x13fdf9){const _0x1f6537=_0x438223;let _0x5021bf;try{_0x5021bf=JSON['parse'](_0x307203);}catch(_0x164c79){console['error'](_0x481d95+':\x20'+_0x13fdf9+_0x1f6537(0x32c)+_0x164c79['message']+').'),process[_0x1f6537(0x1e1)](0x2);}return(typeof _0x5021bf!=_0x1f6537(0x334)||_0x5021bf===null||Array[_0x1f6537(0x273)](_0x5021bf))&&(console[_0x1f6537(0x289)](_0x481d95+':\x20'+_0x13fdf9+'\x20must\x20be\x20a\x20JSON\x20object.'),process[_0x1f6537(0x1e1)](0x2)),_0x5021bf;}function ue(_0x191a78,_0x1bb44c){const _0x2c5fc9=_0x438223;let _0x37ed77;try{_0x37ed77=_0x1b21f7[_0x2c5fc9(0x33c)](_0x3aefdd[_0x2c5fc9(0x294)](_0x191a78),_0x2c5fc9(0x34f));}catch(_0x11d81a){console[_0x2c5fc9(0x289)](_0x1bb44c+_0x2c5fc9(0x255)+_0x11d81a[_0x2c5fc9(0x32a)]+').'),process[_0x2c5fc9(0x1e1)](0x2);}return de(_0x37ed77,_0x1bb44c,_0x2c5fc9(0x28f));}async function Jt(_0x2dab2f){const _0x2df3ae=_0x438223;_0x2dab2f[_0x2df3ae(0x290)]===void 0x0&&(console[_0x2df3ae(0x289)](_0x2df3ae(0x332)),process[_0x2df3ae(0x1e1)](0x2));let _0x20f42b=ue(_0x2dab2f[_0x2df3ae(0x290)],_0x2df3ae(0x28b)),_0xd10d5c=(await I(_0x2dab2f['prompt'],process[_0x2df3ae(0x367)]))[_0x2df3ae(0x30a)]();_0xd10d5c||(console[_0x2df3ae(0x289)](_0x2df3ae(0x2e9)),process['exit'](0x2));let {client:_0x2630fe}=await f(_0x2dab2f);try{let _0x465cca=await _0x8f9db(_0x2630fe,{'prompt':_0xd10d5c,'jsonSchema':_0x20f42b,'model':_0x2dab2f['model']||process.env.MODEL||_0xb1e91e,..._0x2dab2f[_0x2df3ae(0x23f)]!==void 0x0&&{'sessionId':_0x2dab2f[_0x2df3ae(0x23f)]}},void 0x0);l(_0x2dab2f,_0x465cca,_0x264d0e=>{const _0xcf029c=_0x2df3ae;process[_0xcf029c(0x1f7)][_0xcf029c(0x23d)](JSON[_0xcf029c(0x342)](_0x264d0e['structured'],null,0x2)+'\x0a');});}catch(_0x457be5){if(!_0x37c3b1(_0x457be5))throw _0x457be5;console['error'](_0x457be5[_0x2df3ae(0x32a)]),process[_0x2df3ae(0x1e1)](0x1);}}function j(_0x11fed3){const _0x43bd58=_0x438223;process[_0x43bd58(0x1f7)]['write'](_0x43bd58(0x25e)+_0x11fed3['model']+'\x20('+_0x11fed3['model_version']+_0x43bd58(0x1e5)+_0x11fed3['usage']['total_tokens']+_0x43bd58(0x378));}function Wt(_0x533175){const _0x1ae658=_0x438223;j(_0x533175);for(let _0x453580 of Object[_0x1ae658(0x370)](_0x533175[_0x1ae658(0x379)])){let _0x4e3f56=_0x533175[_0x1ae658(0x379)][_0x453580],_0xcbf357=_0x4e3f56[_0x1ae658(0x38e)]===_0x1ae658(0x234)?_0x1ae658(0x37b)+_0x4e3f56[_0x1ae658(0x234)][_0x1ae658(0x35c)](0x2):_0x4e3f56[_0x1ae658(0x38e)]==='choice'?_0x1ae658(0x36c)+_0x4e3f56['choice']+_0x1ae658(0x321)+_0x4e3f56['confidence']['toFixed'](0x2)+')':_0x1ae658(0x1f1)+_0x4e3f56[_0x1ae658(0x356)][_0x1ae658(0x35c)](0x2)+_0x1ae658(0x321)+_0x4e3f56[_0x1ae658(0x29a)][_0x1ae658(0x35c)](0x2)+')';process['stdout'][_0x1ae658(0x23d)]('\x20\x20'+_0x453580+':\x20'+_0xcbf357+'\x0a');}}function Gt(_0x2cb5eb){const _0x186ddb=_0x438223;j(_0x2cb5eb),_0x2cb5eb[_0x186ddb(0x373)][_0x186ddb(0x1f9)]((_0x1ea510,_0x23efa3)=>{const _0x3dd78c=_0x186ddb;process[_0x3dd78c(0x1f7)][_0x3dd78c(0x23d)]('\x20\x20'+(_0x23efa3+0x1)+'.\x20'+_0x1ea510['id']+'\x20\x20'+_0x1ea510[_0x3dd78c(0x356)]['toFixed'](0x3)+_0x3dd78c(0x2c6)+_0x1ea510[_0x3dd78c(0x2ee)]+')\x0a');});}function Kt(_0x36bbdd){const _0x4062c7=_0x438223;j(_0x36bbdd),process[_0x4062c7(0x1f7)][_0x4062c7(0x23d)](_0x4062c7(0x29e)+_0x36bbdd[_0x4062c7(0x204)]+'\x0a');for(let _0x1e53c0 of _0x36bbdd[_0x4062c7(0x373)])process[_0x4062c7(0x1f7)][_0x4062c7(0x23d)]('\x20\x20'+_0x1e53c0['id']+':\x20'+_0x1e53c0[_0x4062c7(0x24f)]+_0x4062c7(0x321)+_0x1e53c0[_0x4062c7(0x29a)]['toFixed'](0x2)+')\x0a');}async function zt(_0x5a7c29){const _0x3bdc0a=_0x438223;let _0x432c20=_0x5a7c29[_0x3bdc0a(0x2c8)][_0x3bdc0a(0x30a)]();_0x432c20||(console['error'](_0x3bdc0a(0x300)),process['exit'](0x2));let {client:_0x1efa11}=await f(_0x5a7c29);try{let _0x2ac1f2=_0x432c20==='-'?{'data':await Vt(process[_0x3bdc0a(0x367)])}:_0x432c20;l(_0x5a7c29,await _0x4a0656(_0x1efa11,_0x2ac1f2,void 0x0),_0x28f066=>{const _0x3fa694=_0x3bdc0a;process[_0x3fa694(0x1f7)][_0x3fa694(0x23d)](_0x28f066[_0x3fa694(0x1ef)]+'\x0a');});}catch(_0x5e4394){if(_0x43169a(_0x5e4394)&&(console['error'](_0x5e4394[_0x3bdc0a(0x32a)]),process[_0x3bdc0a(0x1e1)](_0x5e4394[_0x3bdc0a(0x361)]===void 0x0?0x2:0x1)),typeof _0x5e4394?.[_0x3bdc0a(0x34c)]!=_0x3bdc0a(0x271))throw _0x5e4394;console['error'](_0x3bdc0a(0x1e2)+_0x432c20+'\x20('+_0x5e4394[_0x3bdc0a(0x32a)]+').'),process[_0x3bdc0a(0x1e1)](0x2);}}async function Vt(_0x442143){const _0x3a9b34=_0x438223;let _0x25b0e5=[];for await(let _0xfba787 of _0x442143)_0x25b0e5[_0x3a9b34(0x314)](Buffer[_0x3a9b34(0x362)](_0xfba787));return Buffer['concat'](_0x25b0e5);}var Y=[_0x438223(0x337),_0x438223(0x2ea),_0x438223(0x338),_0x438223(0x259),_0x438223(0x2bf),_0x438223(0x28b),'accept','dismiss',_0x438223(0x2b6),_0x438223(0x349)],X={'list':_0x438223(0x30d),'pending':_0x438223(0x382),'show':'delegations\x20show\x20<delegation-id|delegate://delegation/…>','create':'delegations\x20create\x20--session\x20<id>\x20[--to\x20<email|name>]\x20[--summary\x20<text>]\x20\x22<task>\x22|-','claim':_0x438223(0x2ff),'complete':_0x438223(0x1de),'accept':_0x438223(0x295),'dismiss':_0x438223(0x28d),'cancel':_0x438223(0x2d0),'delete':_0x438223(0x2b4)};async function Yt(_0x2ed216){const _0x43165d=_0x438223;let [_0x106579='',_0x52c416='',..._0x2a6808]=_0x2ed216[_0x43165d(0x336)];Y['includes'](_0x106579)||(console[_0x43165d(0x289)]((_0x106579?_0x43165d(0x318)+_0x106579+'.\x20':'')+_0x43165d(0x233)+Y[_0x43165d(0x365)](_0x43165d(0x29f))+'.'),process['exit'](0x2));let _0x84d651=_0x106579;_0x84d651!==_0x43165d(0x259)&&(_0x2ed216[_0x43165d(0x244)]!==void 0x0||_0x2ed216[_0x43165d(0x390)]!==void 0x0||_0x2ed216[_0x43165d(0x23f)]!==void 0x0)&&(console[_0x43165d(0x289)](_0x43165d(0x1d5)),process[_0x43165d(0x1e1)](0x2));let _0x5e1f2a=(_0x84d651===_0x43165d(0x259)?_0x2ed216[_0x43165d(0x336)][_0x43165d(0x2d8)](0x1):_0x2a6808)[_0x43165d(0x365)]('\x20')['trim'](),_0x238dd4=_0x84d651===_0x43165d(0x259)||_0x84d651===_0x43165d(0x28b);(_0x84d651!==_0x43165d(0x259)&&!_0x52c416||(_0x238dd4?!_0x5e1f2a:_0x5e1f2a)||_0x84d651===_0x43165d(0x259)&&!_0x2ed216['sessionId'])&&(console[_0x43165d(0x289)]('Usage:\x20delegate-cli\x20'+X[_0x84d651]),process[_0x43165d(0x1e1)](0x2));let _0x799036=_0x238dd4&&_0x5e1f2a==='-'?(await I('-',process['stdin']))[_0x43165d(0x30a)]():_0x5e1f2a;_0x238dd4&&!_0x799036&&(console[_0x43165d(0x289)](_0x43165d(0x2d9)+X[_0x84d651]+_0x43165d(0x396)),process[_0x43165d(0x1e1)](0x2));let {client:_0x516569}=await f(_0x2ed216);try{await Xt(_0x2ed216,_0x516569,_0x84d651,_0x52c416,_0x799036);}catch(_0x485716){if(!_0x479e54(_0x485716))throw _0x485716;console['error'](_0x485716[_0x43165d(0x32a)]),process[_0x43165d(0x1e1)](0x1);}}async function Xt(_0x7ff579,_0x5da4a3,_0xe6cd40,_0x33a0bb,_0x3411db){const _0x5f10bc=_0x438223;switch(_0xe6cd40){case _0x5f10bc(0x337):l(_0x7ff579,await _0x23dee6(_0x5da4a3,_0x33a0bb),Qt);return;case _0x5f10bc(0x2ea):l(_0x7ff579,await _0x292875(_0x5da4a3,_0x33a0bb),_0x5897a3=>{const _0x4b9044=_0x5f10bc;_0x5897a3[_0x4b9044(0x27f)]&&process['stdout'][_0x4b9044(0x23d)](_0x4b9044(0x31f)+_0x5897a3[_0x4b9044(0x27f)]['id']+'\x20('+_0x5897a3[_0x4b9044(0x27f)]['status']+_0x4b9044(0x30f)),_0x5897a3[_0x4b9044(0x316)]['length']===0x0&&process[_0x4b9044(0x235)]['write'](_0x4b9044(0x2c7));for(let _0x308d4a of _0x5897a3[_0x4b9044(0x316)])process[_0x4b9044(0x1f7)][_0x4b9044(0x23d)]('\x0a'+_0x308d4a['id']+'\x20\x20from\x20'+(_0x308d4a['assignedUserEmail']??_0x4b9044(0x380))+'\x20\x20'+(_0x308d4a['task']??'')+'\x0a'+(_0x308d4a[_0x4b9044(0x1fe)]?.[_0x4b9044(0x26b)]??'')+'\x0a');_0x5897a3['pendingResults'][_0x4b9044(0x29d)]>0x0&&process[_0x4b9044(0x235)][_0x4b9044(0x23d)](_0x4b9044(0x31e));});return;case _0x5f10bc(0x338):l(_0x7ff579,await _0x165e38(_0x5da4a3,_0x33a0bb),Q);return;case _0x5f10bc(0x259):{let _0x3bf62d=await _0x57d5a1(_0x5da4a3,{'sessionId':_0x7ff579[_0x5f10bc(0x23f)],'task':_0x3411db,..._0x7ff579[_0x5f10bc(0x390)]!==void 0x0&&{'contextSummary':_0x7ff579[_0x5f10bc(0x390)]},..._0x7ff579['delegateTo']!==void 0x0&&{'recipient':_0x7ff579['delegateTo']}});l(_0x7ff579,_0x3bf62d,_0x5891af=>{const _0x584108=_0x5f10bc;_0x5891af[_0x584108(0x374)]?process[_0x584108(0x1f7)][_0x584108(0x23d)]('Delegated\x20'+_0x5891af['delegationId']+_0x584108(0x25f)+_0x5891af[_0x584108(0x374)][_0x584108(0x22f)]+'\x20<'+_0x5891af[_0x584108(0x374)][_0x584108(0x2fc)]+_0x584108(0x385)):process['stdout']['write'](_0x584108(0x384)+_0x5891af[_0x584108(0x280)]+'.\x20Share:\x20'+_0x5891af[_0x584108(0x33a)]+'\x0a');});return;}case'claim':{let _0x16de13=await _0x4c8695(_0x5da4a3,_0x33a0bb);l(_0x7ff579,_0x16de13,_0x5c1138=>{const _0x5b51e8=_0x5f10bc;Q(_0x5c1138),process['stdout'][_0x5b51e8(0x23d)](_0x5b51e8(0x2fd)+_0x5c1138[_0x5b51e8(0x23f)]+'\x0a'),process[_0x5b51e8(0x235)][_0x5b51e8(0x23d)](_0x5b51e8(0x1e7)+_0x5c1138[_0x5b51e8(0x23f)]+_0x5b51e8(0x24d)+_0x5c1138[_0x5b51e8(0x280)]+_0x5b51e8(0x376));});return;}case'complete':{let {alreadyCompleted:_0x160a54}=await _0x3bffc4(_0x5da4a3,_0x33a0bb,{'content':_0x3411db});l(_0x7ff579,{'delegationId':_0x33a0bb,'alreadyCompleted':_0x160a54},_0x16a7e2=>{const _0x3817c5=_0x5f10bc;process[_0x3817c5(0x1f7)][_0x3817c5(0x23d)]((_0x16a7e2[_0x3817c5(0x32b)]?_0x3817c5(0x267):'Answered')+_0x3817c5(0x2a9)+_0x16a7e2[_0x3817c5(0x280)]+'.\x0a');});return;}case _0x5f10bc(0x2e7):{let _0x8bbfc8=await _0x586d4e(_0x5da4a3,_0x33a0bb);l(_0x7ff579,{'delegationId':_0x33a0bb,..._0x8bbfc8},_0xad6ea6=>{const _0x3264f1=_0x5f10bc;process[_0x3264f1(0x1f7)][_0x3264f1(0x23d)]((_0xad6ea6[_0x3264f1(0x231)]?'Already\x20accepted':_0x3264f1(0x375))+_0x3264f1(0x2a9)+_0xad6ea6[_0x3264f1(0x280)]+'.\x0a');});return;}default:{let _0x3a4d32={'dismiss':_0x60340,'cancel':_0x154ca1,'delete':_0x3be76e}[_0xe6cd40];await _0x3a4d32(_0x5da4a3,_0x33a0bb);let _0x18e7ae={'dismiss':_0x5f10bc(0x2f6),'cancel':_0x5f10bc(0x27b),'delete':_0x5f10bc(0x2aa)}[_0xe6cd40];l(_0x7ff579,{'delegationId':_0x33a0bb,[_0x18e7ae]:!0x0},()=>{const _0x5e2eaa=_0x5f10bc;process[_0x5e2eaa(0x1f7)][_0x5e2eaa(0x23d)](''+_0x18e7ae[0x0][_0x5e2eaa(0x238)]()+_0x18e7ae[_0x5e2eaa(0x2d8)](0x1)+_0x5e2eaa(0x2a9)+_0x33a0bb+'.\x0a');});}}}function Qt(_0x220a73){const _0x3d747e=_0x438223;if(_0x220a73[_0x3d747e(0x29d)]===0x0){process[_0x3d747e(0x235)][_0x3d747e(0x23d)]('No\x20delegations.\x0a');return;}process[_0x3d747e(0x1f7)][_0x3d747e(0x23d)]('ID'[_0x3d747e(0x276)](0x24)+'\x20\x20'+_0x3d747e(0x23a)[_0x3d747e(0x276)](0x9)+'\x20\x20'+'ASSIGNEE'[_0x3d747e(0x276)](0x18)+'\x20\x20TASK\x0a');for(let _0x35fbd9 of _0x220a73)process['stdout']['write'](_0x35fbd9['id'][_0x3d747e(0x276)](0x24)+'\x20\x20'+_0x35fbd9[_0x3d747e(0x361)]['padEnd'](0x9)+'\x20\x20'+(_0x35fbd9[_0x3d747e(0x291)]??'-')[_0x3d747e(0x276)](0x18)+'\x20\x20'+(_0x35fbd9['task']??'')+'\x0a');}function Q(_0x41f137){const _0x34e650=_0x438223;process[_0x34e650(0x1f7)][_0x34e650(0x23d)](_0x34e650(0x21c)+(_0x41f137[_0x34e650(0x2d2)]??'-')+'\x0a'),_0x41f137['sourceTitle']&&process['stdout'][_0x34e650(0x23d)](_0x34e650(0x2fd)+_0x41f137[_0x34e650(0x297)]+'\x0a'),process[_0x34e650(0x1f7)][_0x34e650(0x23d)](_0x34e650(0x1d2)+(_0x41f137[_0x34e650(0x1e9)]??'-')+'\x0a'),_0x41f137[_0x34e650(0x390)]&&process[_0x34e650(0x1f7)]['write']('\x0a'+_0x41f137[_0x34e650(0x390)]+'\x0a\x0a');}async function Zt(_0x273d00){const _0x5057ed=_0x438223;_0x273d00[_0x5057ed(0x2c8)][_0x5057ed(0x30a)]()||(console[_0x5057ed(0x289)](_0x5057ed(0x34d)),process[_0x5057ed(0x1e1)](0x2));let {client:_0x36fdb9}=await f(_0x273d00),_0x4032f8;try{_0x4032f8=await _0x2fe6be(_0x36fdb9,_0x273d00[_0x5057ed(0x2c8)]);}catch(_0x1cb09f){if(!_0x479e54(_0x1cb09f))throw _0x1cb09f;console[_0x5057ed(0x289)](_0x1cb09f[_0x5057ed(0x32a)]),process[_0x5057ed(0x1e1)](0x1);}l(_0x273d00,_0x4032f8,_0x4af29c=>{const _0x3aacee=_0x5057ed;_0x4af29c['length']===0x0&&process[_0x3aacee(0x235)][_0x3aacee(0x23d)]('No\x20one\x20matches\x20\x22'+_0x273d00['prompt'][_0x3aacee(0x30a)]()+'\x22.\x0a');for(let _0x49c909 of _0x4af29c)process['stdout']['write'](_0x49c909['email'][_0x3aacee(0x276)](0x20)+'\x20\x20'+_0x49c909[_0x3aacee(0x22f)]+'\x0a');});}async function en(_0x213ca3){const _0x4cfd47=_0x438223;_0x213ca3['env']===_0x4cfd47(0x2f4)&&(console[_0x4cfd47(0x289)](_0x4cfd47(0x254)),process[_0x4cfd47(0x1e1)](0x2));let _0x14bc33=$(_0x36eef0()),_0x7d0b54=_0x213ca3[_0x4cfd47(0x1e0)];if(_0x213ca3[_0x4cfd47(0x286)]){let _0x45d0cb=_0x213ca3['env'];await _0xba2850({'env':_0x45d0cb,'tenant':_0x213ca3[_0x4cfd47(0x386)]??C(_0x14bc33,_0x1d4e53[_0x45d0cb]),'skipEnvCheck':_0x7d0b54});return;}let _0x40b81a=_0x213ca3[_0x4cfd47(0x22a)]??ce();if(_0x40b81a){await _0xba2850({'baseUrl':_0x40b81a,'tenant':_0x213ca3[_0x4cfd47(0x386)]??C(_0x14bc33,_0x40b81a),'skipEnvCheck':_0x7d0b54});return;}if(_0x14bc33?.['baseUrl']){await _0xba2850({'baseUrl':_0x14bc33[_0x4cfd47(0x381)],'tenant':_0x213ca3['tenant']??_0x14bc33[_0x4cfd47(0x366)],'skipEnvCheck':_0x7d0b54});return;}console[_0x4cfd47(0x289)]('First\x20login\x20requires\x20--env\x20or\x20--url.\x20Usage:\x20delegate-cli\x20login\x20--env\x20<alpha|staging|production>,\x20or\x20delegate-cli\x20login\x20--url\x20https://automationsuite.contoso.com'),process['exit'](0x2);}function C(_0x1b5b2c,_0x1f98ab){const _0x55724d=_0x438223;return _0x1b5b2c?.[_0x55724d(0x381)]&&tn(_0x1b5b2c[_0x55724d(0x381)],_0x1f98ab)?_0x1b5b2c[_0x55724d(0x366)]:void 0x0;}function tn(_0x4d1def,_0x556ce4){const _0x4157e2=_0x438223;try{return new URL(_0x4d1def)[_0x4157e2(0x20c)]===new URL(_0x556ce4)['origin'];}catch{return!0x1;}}async function nn(_0x5a5ad){const _0x1f18cc=_0x438223;O()&&(console['error']('Auth\x20comes\x20from\x20AUTH_TOKEN/TENANT_ID/ORG_ID\x20—\x20set\x20TENANT_ID\x20and\x20TENANT_SLUG\x20to\x20change\x20the\x20tenant.'),process[_0x1f18cc(0x1e1)](0x2));let _0x21eb8c=await _0x4055da();if(_0x21eb8c||(console[_0x1f18cc(0x289)](on()),process[_0x1f18cc(0x1e1)](0x2)),_0x5a5ad[_0x1f18cc(0x30a)]()){let _0x28fac7=await _0x9b5285(_0x21eb8c,_0x5a5ad);_0x5183f8(_0x28fac7)||(console[_0x1f18cc(0x289)](_0x1f18cc(0x251)+_0x36eef0()+_0x1f18cc(0x261)+_0x21eb8c[_0x1f18cc(0x366)]+'.'),process[_0x1f18cc(0x1e1)](0x1)),console[_0x1f18cc(0x25a)](_0x1f18cc(0x230)+_0x28fac7[_0x1f18cc(0x366)]+'\x20('+_0x28fac7['tenantId']+_0x1f18cc(0x200)+_0x36eef0());return;}sn(await _0x330e63(_0x21eb8c),_0x21eb8c);}function on(){const _0x1f2b45=_0x438223;if(_0x1b21f7[_0x1f2b45(0x2cc)](_0x36eef0()))return _0x1f2b45(0x310);let _0x190b70=L();return $(_0x190b70)?'No\x20CLI\x20login\x20to\x20switch:\x20the\x20CLI\x20is\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20'+_0x190b70+_0x1f2b45(0x27c):_0x1f2b45(0x253);}function sn(_0x2c4158,_0x586b46){const _0x532c81=_0x438223;let _0x3c0a86=_0x2c4158[_0x532c81(0x206)](_0x56e907=>_0x56e907['id']===_0x586b46['tenantId']?'*\x20'+_0x56e907['name']+_0x532c81(0x324):'\x20\x20'+_0x56e907['name']);process[_0x532c81(0x1f7)][_0x532c81(0x23d)]('Tenants\x20of\x20'+(_0x586b46[_0x532c81(0x281)]??_0x586b46['organizationId'])+':\x0a'+_0x3c0a86[_0x532c81(0x365)]('\x0a')+'\x0a'),_0x2c4158[_0x532c81(0x29d)]>0x1&&process[_0x532c81(0x1f7)][_0x532c81(0x23d)](_0x532c81(0x2eb));}function rn(_0x3d9a9a){const _0x3b2190=_0x438223;return _0x3d9a9a?.[_0x3b2190(0x260)]?.[_0x3b2190(0x361)]===0x191||/401/[_0x3b2190(0x2a5)](String(_0x3d9a9a?.[_0x3b2190(0x32a)]??''));}var d={'lastType':null,'quiet':!0x1},an=_0x49ea7b=>{const _0x4711e7=_0x438223;switch(_0x49ea7b[_0x4711e7(0x38e)]){case'session_start':_0x49ea7b[_0x4711e7(0x23f)]&&_0x49ea7b[_0x4711e7(0x23f)]!==d[_0x4711e7(0x23f)]&&(process[_0x4711e7(0x235)][_0x4711e7(0x23d)](_0x4711e7(0x1eb)+_0x49ea7b[_0x4711e7(0x23f)]+'\x20(resume\x20with\x20--session\x20'+_0x49ea7b[_0x4711e7(0x23f)]+')\x0a'),d['sessionId']=_0x49ea7b['sessionId']);break;case _0x4711e7(0x223):_0x49ea7b[_0x4711e7(0x2e2)]&&_0x49ea7b['turnId']!==d[_0x4711e7(0x2e2)]&&(d[_0x4711e7(0x27e)]!==null&&process[_0x4711e7(0x235)][_0x4711e7(0x23d)]('\x0a'),process['stderr'][_0x4711e7(0x23d)](_0x4711e7(0x347)+_0x49ea7b['turnId']+_0x4711e7(0x38f)+_0x49ea7b['sessionId']+_0x4711e7(0x343)+_0x49ea7b[_0x4711e7(0x2e2)]+')\x0a'),d['turnId']=_0x49ea7b[_0x4711e7(0x2e2)],d[_0x4711e7(0x27e)]=_0x4711e7(0x223));break;case _0x4711e7(0x346):_0x49ea7b[_0x4711e7(0x26b)]&&!d[_0x4711e7(0x22b)]&&(d[_0x4711e7(0x27e)]!==_0x4711e7(0x346)&&process[_0x4711e7(0x235)][_0x4711e7(0x23d)](_0x4711e7(0x1e3)),process['stderr']['write'](_0x49ea7b[_0x4711e7(0x26b)]),d['lastType']='thinking');break;case _0x4711e7(0x279):d['lastType']!==null&&process['stderr'][_0x4711e7(0x23d)]('\x0a'),process[_0x4711e7(0x235)]['write'](_0x4711e7(0x278)+(_0x49ea7b[_0x4711e7(0x1d6)]??'tool')+'\x0a'),d[_0x4711e7(0x27e)]=_0x4711e7(0x279);break;case _0x4711e7(0x32a):_0x49ea7b[_0x4711e7(0x26b)]&&(d['lastType']!==_0x4711e7(0x32a)&&d[_0x4711e7(0x27e)]!==null&&process[_0x4711e7(0x1f7)][_0x4711e7(0x23d)]('\x0a'),process[_0x4711e7(0x1f7)]['write'](_0x49ea7b[_0x4711e7(0x26b)]),d['lastType']=_0x4711e7(0x32a));break;case'error':d[_0x4711e7(0x27e)]!==null&&process['stderr']['write']('\x0a'),process['stderr'][_0x4711e7(0x23d)]('✗\x20'+(_0x49ea7b[_0x4711e7(0x289)]??_0x4711e7(0x289))+'\x0a'),d[_0x4711e7(0x27e)]=_0x4711e7(0x289);break;case _0x4711e7(0x268):(d[_0x4711e7(0x27e)]===_0x4711e7(0x32a)||d[_0x4711e7(0x27e)]===_0x4711e7(0x346))&&process[_0x4711e7(0x1f7)][_0x4711e7(0x23d)]('\x0a'),process[_0x4711e7(0x235)][_0x4711e7(0x23d)]('✓\x20Done\x0a'),d[_0x4711e7(0x27e)]=_0x4711e7(0x268);break;}};function Z(_0x5491f4,_0x42285a,_0xe133d2){const _0xb4f867=_0x438223;let _0x4f2512=_0x5491f4[_0xb4f867(0x1e8)]||process.env.MODEL;return{'backendUrl':_0xe133d2,'auth':_0x42285a,'enableComputerUse':!_0x5491f4[_0xb4f867(0x284)]&&!_0x5491f4[_0xb4f867(0x2b0)],'autoSpawnInterop':!_0x5491f4[_0xb4f867(0x284)],'enableConnections':!_0x5491f4[_0xb4f867(0x2f8)],'enableSecurity':!_0x5491f4[_0xb4f867(0x270)],'keepInteropAlive':_0x5491f4[_0xb4f867(0x2c2)],..._0x5491f4[_0xb4f867(0x22e)]?{'enableMemory':!0x1}:{},..._0x5491f4[_0xb4f867(0x363)]?{'enableTaskAutomation':!0x0}:{},..._0x5491f4['preloadSkills'][_0xb4f867(0x29d)]>0x0?{'preloadSkills':_0x5491f4[_0xb4f867(0x2df)]}:{},..._0x4f2512?{'model':_0x4f2512}:{},..._0x5491f4['projectId']?{'projectId':_0x5491f4['projectId']}:{},..._0x5491f4[_0xb4f867(0x25b)]?{'workingDirectory':_0x5491f4['workingDirectory']}:{},..._0x5491f4[_0xb4f867(0x323)]?{'bundledSkillsPath':_0x5491f4[_0xb4f867(0x323)]}:{},..._0x5491f4[_0xb4f867(0x364)]?{'effort':_0x5491f4[_0xb4f867(0x364)]}:{},..._0x5491f4[_0xb4f867(0x23f)]?{'sessionId':_0x5491f4[_0xb4f867(0x23f)]}:{},..._0x5491f4[_0xb4f867(0x2b1)]?{'verbose':!0x0}:{}};}function _0x1b8a(){const _0x409fb5=['Claimed\x20from\x20delegation\x20','production','\x20(confidence\x20','\x20completion','bundledSkillsPath','\x20(current)','1\x20or\x20more','.\x20Use\x20`delegate-cli\x20usage`,\x20`usage\x20activity`\x20or\x20`usage\x20daily`.','cleanup','rename','once','message','alreadyCompleted','\x20is\x20not\x20valid\x20JSON\x20(','\x20(Delegate\x20desktop\x20app\x20fallback)','Date\x20\x20\x20\x20\x20\x20\x20\x20Token\x20units\x20\x20Prompt\x20tokens\x20\x20Completion\x20tokens','\x20—\x20sign\x20out\x20in\x20the\x20Delegate\x20app\x20to\x20clear\x20that.','Unknown\x20sessions\x20action:\x20','--backend','complete\x20needs\x20--json-schema\x20<file>:\x20delegate-cli\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22.','stop','object','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.','operands','list','show','--session','deepLink','\x20(in\x20','readFileSync','):\x0a\x0a','--interop','--no-security','\x20(estimated\x20$','Session\x20','stringify','\x20--turn\x20','evaluate','finish','thinking','Turn:\x20','7953891WcGHJL','delete','asyncIterator','completion_tokens','code','Usage:\x20delegate-cli\x20org-users\x20<name\x20or\x20email\x20prefix>','rejection','utf-8','now','\x20must\x20be\x20a\x20whole\x20number\x20','20IJlEQY','all','\x20\x20(sub-agent\x20of\x20','catch','score','max','\x20token\x20units','concat','\x20active\x20days','close','toFixed','Interop\x20stopped\x20(if\x20it\x20was\x20running).','monthly_spend_usd','204XjRxfj','auth','status','from','taskAutomation','effort','join','tenantName','stdin','--cleanup','active_days','\x20PU','--authority','choice\x20','version','entries','UPDATED','keys','--no-connections','startsWith','results','assignedUser','Accepted','\x20\x22<answer>\x22\x0a','--to\x20and\x20--summary\x20apply\x20to\x20`delegate-cli\x20delegations\x20create`\x20only.','\x20tokens\x0a','answers','total_token_units','probability\x20','hide','\x20from\x20','initialize','onEvent','a\x20colleague','baseUrl','delegations\x20pending\x20<session-id>','\x20cap','Created\x20delegation\x20','>.\x0a','tenant','--include-subagents','structured','\x0aUse\x20with:\x20delegate-cli\x20--model\x20<id>\x20\x22<prompt>\x22\x0a','daily_usage','isTTY','self-hosted\x20(Automation\x20Suite\x20/\x20Dedicated)','an\x20effort\x20tier','type','\x20(cancel\x20with:\x20delegate-cli\x20sessions\x20cancel\x20','contextSummary','off','--task-automation\x20applies\x20to\x20prompts\x20only.','--preload-skill','help','Forked\x20','\x20(stdin\x20was\x20empty)','\x20this\x20month','tokenExpiresAt','Task\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','getSessionId','.\x20Use\x20','--to,\x20--summary\x20and\x20--session\x20apply\x20to\x20`delegate-cli\x20delegations\x20create`\x20only.','toolName','description','period_days','--help','\x20\x20\x20\x20','--output-format\x20','\x0a⚠️\x20\x20Auth\x20expired.\x20Opening\x20browser\x20to\x20re-login…\x0a','Unknown\x20usage\x20view:\x20','delegations\x20complete\x20<delegation-id>\x20\x22<answer>\x22|-','workerId','skipEnvCheck','exit','transcribe:\x20cannot\x20read\x20','\x0a🤔\x20','argv','),\x20','a\x20skill\x20name','Work\x20on\x20it\x20with:\x20delegate-cli\x20--session\x20','model','task','Token:\x20\x20\x20\x20\x20\x20\x20\x20expired\x20','Session:\x20','a\x20directory\x20path','structuredError','a\x20session\x20id','text','padStart','score\x20','runnerUrl','fork','\x20\x20\x20\x20Not\x20available\x20on\x20this\x20plan','.\x20Use:\x20','--headless','stdout','Bearer\x20','forEach','--to','--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`delegate-cli\x20sessions`\x20only.','session_start','--url','result','--project',')\x20—\x20saved\x20to\x20','--limit','toString','--turn\x20applies\x20to\x20`delegate-cli\x20sessions\x20cancel`\x20only.','rubric_version','parse','map','--attach:\x20no\x20such\x20file\x20or\x20folder:\x20','pct_used','\x20\x22<prompt>\x22\x0a','stream-json','unknown\x20slug','origin','round','\x0aStopping…\x20(Ctrl+C\x20again\x20to\x20force\x20exit)\x0a','--working-dir','33PoYwnL','a\x20deployment\x20URL,\x20e.g.\x20https://automationsuite.contoso.com','--model','token_units','Deployment:\x20\x20\x20','--cartographer','2632DCWCCv','restore','19600VKRUUZ','interopPath','delegations','Unknown\x20flag:\x20','From\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','isDesktopFallback','from\x201\x20to\x20','userId','--attach\x20applies\x20to\x20prompts\x20only.','[saved\x20login]\x20Backend\x20URL:\x20','--summary','turn_start','--page',']\x20Backend\x20URL:\x20','\x20of\x20session\x20','\x0adelegate-cli\x20—\x20Delegate\x20agent\x20CLI\x0a\x0aUsage:\x0a\x20\x20delegate-cli\x20[flags]\x20[\x22<prompt>\x22]\x20\x20\x20\x20Start\x20a\x20conversation\x20in\x20a\x20terminal\x0a\x20\x20delegate-cli\x20--print\x20\x22<prompt>\x22\x20\x20\x20\x20\x20\x20Send\x20one\x20prompt,\x20print\x20the\x20response,\x20and\x20exit\x0a\x20\x20delegate-cli\x20[flags]\x20-\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Read\x20one\x20prompt\x20from\x20stdin\x20through\x20EOF,\x20then\x20exit\x0a\x20\x20delegate-cli\x20-p\x20\x22<prompt>\x22\x20--output-format\x20json|stream-json\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20One\x20turn\x20with\x20JSON-only\x20stdout;\x20exit\x201\x20on\x20error\x0a\x20\x20delegate-cli\x20--json-schema\x20FILE\x20\x22<prompt>\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20One\x20turn,\x20then\x20its\x20result\x20extracted\x20as\x20JSON\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20matching\x20the\x20schema\x20in\x20FILE\x20(printed\x20after\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20answer;\x20\x22structured\x22\x20in\x20the\x20JSON\x20result);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20exit\x201\x20when\x20the\x20extraction\x20fails\x0a\x20\x20delegate-cli\x20--attach\x20PATH\x20[--attach\x20PATH\x20...]\x20\x22<prompt>\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Send\x20files\x20or\x20folders\x20with\x20the\x20first\x20message\x0a\x20\x20delegate-cli\x20login\x20[--env\x20NAME\x20|\x20--url\x20BASE]\x20[--tenant\x20NAME]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20OAuth\x20browser\x20login\x20→\x20~/.aria/sdk-auth.json.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--env\x20or\x20--url\x20required\x20on\x20FIRST\x20login;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20afterwards\x20defaults\x20to\x20the\x20saved\x20login\x27s\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20deployment.\x20--tenant\x20picks\x20a\x20tenant\x20by\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20name;\x20without\x20it\x20a\x20re-login\x20keeps\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20saved\x20tenant\x0a\x20\x20delegate-cli\x20tenant\x20[NAME]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20the\x20organization\x27s\x20tenants,\x20or\x20switch\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20saved\x20login\x20to\x20NAME\x20(no\x20browser)\x0a\x20\x20delegate-cli\x20logout\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Remove\x20the\x20saved\x20CLI\x20login\x0a\x20\x20delegate-cli\x20whoami\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20the\x20current\x20login\x20(org,\x20tenant,\x20token\x20expiry)\x0a\x20\x20delegate-cli\x20models\x20[--env\x20NAME]\x20\x20\x20\x20\x20List\x20available\x20LLM\x20models\x20for\x20the\x20current\x20tenant,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20with\x20any\x20BYO\x20configuration\x20warning\x20per\x20model\x0a\x20\x20delegate-cli\x20sessions\x20[list]\x20[--page\x20N]\x20[--limit\x20N]\x20[--include-subagents]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20your\x20backend\x20chat\x20sessions,\x20most\x20recently\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20active\x20first\x20(resume\x20one\x20with\x20--session\x20ID)\x0a\x20\x20delegate-cli\x20sessions\x20show|delete\x20ID\x20Show\x20one\x20session\x27s\x20title\x20and\x20owner,\x20or\x20delete\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20it\x20with\x20its\x20messages\x20and\x20sub-agents\x20(no\x20prompt)\x0a\x20\x20delegate-cli\x20sessions\x20rename\x20ID\x20TITLE\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Rename\x20a\x20session\x20(1-500\x20characters)\x0a\x20\x20delegate-cli\x20sessions\x20fork\x20ID\x20[MESSAGE]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Copy\x20session\x20ID\x20into\x20a\x20new\x20session,\x20up\x20to\x20and\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20including\x20message\x20MESSAGE\x20(default:\x20all\x20of\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20it);\x20continue\x20it\x20with\x20--session\x20NEW_ID\x0a\x20\x20delegate-cli\x20sessions\x20cancel\x20ID\x20--turn\x20TURN\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Cancel\x20turn\x20TURN\x20running\x20on\x20session\x20ID\x20in\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20another\x20process;\x20exits\x201\x20when\x20no\x20such\x20turn\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20is\x20in\x20progress\x0a\x20\x20delegate-cli\x20check\x20[--env\x20NAME]\x20[--headless]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Verify\x20auth,\x20backend\x20readiness,\x20backend\x20and\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20interop\x20without\x20sending\x20a\x20prompt;\x20exits\x201\x20when\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20any\x20check\x20fails\x0a\x20\x20delegate-cli\x20usage\x20[--session\x20ID]\x20\x20\x20\x20Quota\x20and\x20spend:\x20licensing\x20quota,\x20monthly\x20spend\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20and\x20cap,\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\x20(Whisper):\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\x2025\x20MiB.\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,\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--no-computer-use\x20--preload-skill\x20business-analysis\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--preload-skill\x20project-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\x20Add\x20--project/--working-dir\x20for\x20where\x20the\x20files\x20live,\x20and\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20extra\x20--preload-skill\x20flags\x20for\x20more\x20skills\x20—\x20a\x20skill\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20preset\x20already\x20covers\x20is\x20not\x20preloaded\x20twice.\x20An\x20explicit\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--headless\x20still\x20wins\x20and\x20turns\x20interop\x20off\x0a\x20\x20--project\x20ID\x20\x20\x20\x20\x20\x20Route\x20the\x20session\x27s\x20local\x20wiki\x20and\x20plans\x20to\x20a\x20project\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(<working-dir>/projects/<ID>/wiki).\x20Client-side\x20key\x20only\x0a\x20\x20--working-dir\x20PATH\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Shell\x20cwd\x20for\x20the\x20agent\x20and\x20root\x20for\x20SDK-local\x20state.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Relative\x20paths\x20resolve\x20against\x20the\x20current\x20directory;\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20directory\x20is\x20created\x20if\x20missing\x0a\x20\x20--skills-path\x20PATH\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\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-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','No\x20CLI\x20login\x20found.\x20Note:\x20the\x20CLI\x20is\x20currently\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20','.aria','url','quiet','\x20days:\x20','unknown','noMemory','displayName','Tenant:\x20','alreadyAccepted','Removed\x20','Use:\x20delegate-cli\x20delegations\x20','probability','stderr','\x20prompt,\x20','models','toUpperCase','skip','STATUS','prompt_tokens','outputFormat','write','login','sessionId','backendUrl','--skip-env-check','\x20PU\x20beyond\x20quota','rmSync','delegateTo','Delegation\x20\x20\x20\x20','tenantId','Title\x20\x20\x20\x20\x20\x20\x20\x20\x20','No\x20turn\x20','includes','limit','sendMessage','--attach','\x20\x22<prompt>\x22\x0aAnswer\x20with:\x20delegate-cli\x20delegations\x20complete\x20','host','verdict','--no-memory','Tenant\x20not\x20switched:\x20could\x20not\x20write\x20','SIGINT','No\x20CLI\x20login\x20found.\x20Run\x20`delegate-cli\x20login\x20--env\x20<alpha|staging|production>`\x20first.','--env\x20localhost\x20has\x20no\x20OAuth\x20flow;\x20pick\x20alpha,\x20staging,\x20or\x20production.',':\x20cannot\x20read\x20the\x20JSON\x20schema\x20(','total_sessions','\x27\x20is\x20empty.','filter','create','log','workingDirectory','cwd','--verbose','Model\x20','\x20to\x20','response',';\x20the\x20saved\x20login\x20still\x20uses\x20','9980BBTTJl','UIPATH_BASE_URL\x20is\x20unusable.\x20','%\x20of\x20','low','floor','Already\x20answered','done','logout','projectId','content','\x20not\x20found,\x20has\x20no\x20messages','rerank','name','title','noSecurity','string','parentSessionId','isArray','transcribe','Tenant:\x20\x20\x20\x20\x20\x20\x20','padEnd','Invalid\x20--output-format:\x20','🔧\x20','tool_call','staging','cancelled',',\x20whose\x20tenant\x20is\x20chosen\x20in\x20the\x20app.\x20Run\x20`delegate-cli\x20login\x20--env\x20<env>`\x20for\x20a\x20CLI\x20login\x20of\x20your\x20own.','Continue\x20it\x20with:\x20delegate-cli\x20--session\x20','lastType','delegation','delegationId','orgLogicalName','ID\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','then','headless','alpha','env','Token:\x20\x20\x20\x20\x20\x20\x20\x20expires\x20','extra_pool_consumed_pu','error','byoWarning','complete','Invalid\x20--env:\x20','delegations\x20dismiss\x20<delegation-id>','includeSubAgents','the\x20JSON\x20schema','jsonSchemaPath','assignedUserEmail','Usage:\x20delegate-cli\x20sessions\x20[list]\x20[--page\x20N]\x20[--limit\x20N]\x20[--include-subagents]','\x20needs\x20a\x20JSON\x20request:\x20delegate-cli\x20','resolve','delegations\x20accept\x20<delegation-id>','an\x20email\x20address\x20or\x20name','sourceTitle','period_end','Renamed\x20','confidence','activity','auth.json','length','Rubric\x20','\x20|\x20','--session\x20applies\x20to\x20the\x20`delegate-cli\x20usage`\x20summary\x20only.','session_consumed_pu','\x0aAvailable\x20models\x20(','Cartographer:\x20','a\x20JSON\x20schema\x20file','test','xhigh','date','1164WLUvcn','\x20delegation\x20','deleted','--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`delegate-cli\x20sessions\x20[list]`\x20only.','326392SmWebI','print','Cost:\x20\x20\x20$','[env=','noComputerUse','verbose','\x20(resets\x20','data','delegations\x20delete\x20<delegation-id>','3384FXabSv','cancel','\x20(no\x20cap\x20enforced)','--days\x20applies\x20to\x20`delegate-cli\x20usage\x20activity|daily`;\x20the\x20summary\x20covers\x20the\x20current\x20month.','\x27\x20cannot\x20be\x20read:\x20','Organization:\x20','estimated_cost_usd','page','--env','Licensing:\x20\x20\x20\x20','claim','Pass\x20either\x20--env\x20(a\x20named\x20cloud)\x20or\x20--url\x20(any\x20other\x20deployment),\x20not\x20both.','--url\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Other\x20commands\x20follow\x20the\x20saved\x20login,\x20or\x20--backend\x20<url>.','keepAlive','--days','stack','monthly_limit_usd','\x20\x20(input\x20#','No\x20answers\x20awaiting\x20acceptance.\x0a','prompt','environment\x20variables\x20(AUTH_TOKEN/TENANT_ID/ORG_ID)','--tenant\x20requires\x20a\x20tenant\x20name.','\x20<id>','existsSync','\x20\x20\x20\x20BYO\x20warning:\x20','isError','--task-automation','delegations\x20cancel\x20<delegation-id>','--tenant','sourceUserEmail','resume','Usage:\x20delegate-cli\x20sessions\x20cancel\x20<session-id>\x20--turn\x20<turn-id>','total_quota_pu','bind','\x20PU\x20used','slice','Usage:\x20delegate-cli\x20','exitCode','file','usage','Tokens:\x20','\x20sessions\x20on\x20','preloadSkills','total_cost_usd','\x20into\x20','turnId','Invalid\x20--effort:\x20','deployment','Usage:\x20delegate-cli\x20sessions\x20fork\x20<id>\x20[<message-id>]','--runner-url','accept','limit_enabled','complete\x20needs\x20a\x20prompt:\x20delegate-cli\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22,\x20or\x20-\x20to\x20read\x20stdin.','pending','Switch\x20with:\x20delegate-cli\x20tenant\x20<name>\x0a','lockReason','1425476wNJqFT','index','days','\x20requires\x20','\x20<file.json>,\x20or\x20-\x20to\x20read\x20stdin.','.\x20Use\x20alpha\x20|\x20staging\x20|\x20production\x20|\x20localhost.','273852wQkGcl','localhost','No\x20sessions\x20on\x20page\x20','dismissed','Owner\x20\x20\x20\x20\x20\x20\x20\x20\x20','noConnections','sessions','mode','No\x20models\x20available\x20for\x20this\x20product/tenant.\x0a','email','Session\x20\x20\x20\x20\x20\x20\x20','/exit','delegations\x20claim\x20<delegation-id|delegate://delegation/…>','transcribe\x20needs\x20audio:\x20delegate-cli\x20transcribe\x20<file>,\x20or\x20-\x20to\x20read\x20stdin.','expiresAt',',\x20or\x20holds\x20no\x20message\x20','attachments','Last\x20','\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).','pause',':\x20cannot\x20read\x20the\x20request\x20(',',\x20got\x20','accessToken','trim','a\x20format\x20(','whoami','delegations\x20list\x20<backend-project-id>','a\x20number',').\x0a','The\x20saved\x20CLI\x20login\x20could\x20not\x20be\x20refreshed.\x20Run\x20`delegate-cli\x20login`\x20again.','subcommand','replace','94QiygZJ','push','medium','pendingResults','organizationId','Unknown\x20delegations\x20action:\x20','check','end','--no-computer-use','delegate-cli','--effort','\x0aAccept\x20one\x20with:\x20delegate-cli\x20delegations\x20accept\x20<id>\x0a'];_0x1b8a=function(){return _0x409fb5;};return _0x1b8a();}async function ln(_0x360fb6){const _0x520506=_0x438223;let _0x51d40f=_0x360fb6['outputFormat']!==_0x520506(0x1ef),_0x191a23=_0x360fb6[_0x520506(0x290)]===void 0x0?null:ue(_0x360fb6[_0x520506(0x290)],_0x520506(0x31c)),_0x5f47d7=!_0x51d40f&&!_0x191a23&&!_0x360fb6[_0x520506(0x2ad)]&&_0x360fb6[_0x520506(0x2c8)]!=='-'&&!!process[_0x520506(0x367)]['isTTY']&&!!process[_0x520506(0x1f7)][_0x520506(0x38b)],_0x4c4b61=_0x5f47d7?_0x360fb6['prompt']['trim']():await I(_0x360fb6[_0x520506(0x2c8)],process[_0x520506(0x367)]);if(!_0x5f47d7&&!_0x4c4b61&&(console[_0x520506(0x289)]('Missing\x20prompt.\x20Pass\x20it\x20as\x20an\x20argument,\x20pipe\x20it\x20via\x20stdin,\x20or\x20run\x20`delegate-cli\x20--help`.'),process['exit'](0x2)),!_0x51d40f){await ee(_0x360fb6,_0x4c4b61,_0x5f47d7,null,_0x191a23);return;}let _0x53ebce=!0x1,_0x45af71=_0x3f78a8=>{const _0x379602=_0x520506;_0x53ebce=!0x0,S(_0x1317de(_0x3f78a8)),(_0x3f78a8[_0x379602(0x2ce)]||_0x3f78a8[_0x379602(0x1ed)])&&(process[_0x379602(0x2da)]=0x1);},_0x6479b6=Date[_0x520506(0x350)]();try{await ee(_0x360fb6,_0x4c4b61,!0x1,_0x45af71,_0x191a23);}catch(_0xdd4a14){if(_0x53ebce)throw _0xdd4a14;process[_0x520506(0x235)][_0x520506(0x23d)]((_0xdd4a14 instanceof Error?_0xdd4a14[_0x520506(0x2c4)]??_0xdd4a14[_0x520506(0x32a)]:String(_0xdd4a14))+'\x0a'),_0x45af71(new _0x3997de(_0x6479b6)[_0x520506(0x345)]({'endedAtMs':Date[_0x520506(0x350)](),'usage':[],'error':_0xdd4a14}));}}async function ee(_0x8bdd39,_0x5a54f3,_0x497dee,_0x31a934,_0x1254d6){const _0x5e650b=_0x438223;d={'lastType':null,'quiet':_0x8bdd39[_0x5e650b(0x22b)]};let _0x5985f7=new Set(),_0xd253f9=_0xdf6da6=>{const _0x100e67=_0x5e650b;(!_0x31a934||_0xdf6da6['type']===_0x100e67(0x1fc)||_0xdf6da6[_0x100e67(0x38e)]===_0x100e67(0x223))&&an(_0xdf6da6);for(let _0x4483e9 of _0x5985f7)_0x4483e9(_0xdf6da6);},_0x2567a2=await P(),_0x540326=new _0x347642();_0x540326[_0x5e650b(0x37f)](_0xd253f9);let _0x4126a3=_0x243ec2(_0x8bdd39[_0x5e650b(0x286)],_0x2567a2,_0x8bdd39['backendUrl']);F(_0x8bdd39[_0x5e650b(0x286)],_0x8bdd39[_0x5e650b(0x240)],_0x4126a3);let _0x3c74eb=Z(_0x8bdd39,_0x2567a2,_0x4126a3),_0x46a36a=!0x1,_0x193553=!0x1,_0x590a26,_0x1caf70=()=>_0x590a26??=_0x540326['destroy'](),_0xbe77f3=()=>{const _0x2a2287=_0x5e650b;_0x193553&&process[_0x2a2287(0x1e1)](0x82),_0x193553=!0x0,process['stderr']['write'](_0x2a2287(0x20e)),_0x46a36a&&_0x540326[_0x2a2287(0x2b6)]()['catch'](_0x292b0e=>console[_0x2a2287(0x289)](_0x292b0e))[_0x2a2287(0x283)](_0x1caf70)[_0x2a2287(0x283)](()=>process[_0x2a2287(0x1e1)](0x82),_0x1fe724=>{const _0x242694=_0x2a2287;console[_0x242694(0x289)](_0x1fe724),process['exit'](0x82);});};process['on'](_0x5e650b(0x252),_0xbe77f3);let _0x214aec=_0x8bdd39[_0x5e650b(0x303)],_0x2195cf=async _0x5a9be4=>{const _0xb99dd1=_0x5e650b;let _0x2b79c2=_0x214aec;_0x214aec=[];let _0x30480b=()=>_0x540326[_0xb99dd1(0x24b)](_0x5a9be4,{'attachments':_0x2b79c2});try{return await _0x30480b();}catch(_0x53b86a){if(_0x193553||!rn(_0x53b86a)||!process[_0xb99dd1(0x367)]['isTTY']||_0x8bdd39['env']==='localhost'||!(_0x8bdd39[_0xb99dd1(0x286)]||_0x2567a2['baseUrl']))throw _0x53b86a;process[_0xb99dd1(0x235)][_0xb99dd1(0x23d)](_0xb99dd1(0x1dc));let _0x21d151=_0x540326['getSessionId']()??_0x8bdd39[_0xb99dd1(0x23f)],_0x438216=await _0xba2850(_0x8bdd39[_0xb99dd1(0x286)]?{'env':_0x8bdd39['env'],'tenant':C(_0x2567a2,_0x1d4e53[_0x8bdd39[_0xb99dd1(0x286)]]),'skipEnvCheck':!0x0}:{'baseUrl':_0x2567a2[_0xb99dd1(0x381)],'tenant':_0x2567a2[_0xb99dd1(0x366)],'skipEnvCheck':!0x0}),_0x384ba8={'text':'','failed':!0x1,'sessionId':_0x21d151};return _0x193553||(_0x46a36a=!0x1,await _0x1caf70(),_0x193553)?_0x384ba8:(_0x540326=new _0x347642(),_0x590a26=void 0x0,_0x540326[_0xb99dd1(0x37f)](_0xd253f9),_0x2567a2=_0x438216,await _0x540326[_0xb99dd1(0x37e)]({...Z(_0x8bdd39,_0x2567a2,_0x4126a3),..._0x21d151?{'sessionId':_0x21d151}:{}}),_0x46a36a=!0x0,_0x193553?_0x384ba8:_0x30480b());}};try{if(await _0x540326[_0x5e650b(0x37e)](_0x3c74eb),_0x46a36a=!0x0,_0x193553)return;if(_0x497dee)await un({'prompt':_0x5a54f3,'sendMessage':_0x2195cf,'onSigint':_0xbe77f3});else{if(_0x31a934||_0x1254d6){let _0x3b15f9=_0x8bdd39[_0x5e650b(0x23c)]===_0x5e650b(0x20a)?_0x143155=>S(_0x52831b(_0x143155)):()=>{},_0x18dbeb=await _0x4617fe({'onEvent':_0xf00452=>(_0x5985f7['add'](_0xf00452),()=>{const _0x5303ee=_0x5e650b;_0x5985f7[_0x5303ee(0x349)](_0xf00452);}),'sendMessage':_0x14e517=>_0x2195cf(_0x14e517),'getSessionId':()=>_0x540326[_0x5e650b(0x1d3)](),'getTurnUsageHistory':_0x364e28=>_0x540326['getTurnUsageHistory'](_0x364e28),'complete':_0x292e33=>_0x540326[_0x5e650b(0x28b)](_0x292e33)},_0x5a54f3,void 0x0,_0x3b15f9,_0x1254d6?{'outputSchema':_0x1254d6}:void 0x0);_0x31a934?_0x31a934(_0x18dbeb):cn(_0x18dbeb);}else await _0x2195cf(_0x5a54f3);}}catch(_0x4a4322){if(!_0x193553)throw _0x4a4322;}finally{try{await _0x1caf70();}finally{process['off'](_0x5e650b(0x252),_0xbe77f3),_0x193553&&(process[_0x5e650b(0x2da)]=0x82);}}}function cn(_0x733520){const _0x20c1aa=_0x438223;_0x733520['structuredError']?(console[_0x20c1aa(0x289)]('Structured\x20output\x20failed:\x20'+_0x733520['structuredError'][_0x20c1aa(0x32a)]),process[_0x20c1aa(0x2da)]=0x1):_0x733520[_0x20c1aa(0x2ce)]?(console[_0x20c1aa(0x289)]('No\x20structured\x20output:\x20the\x20turn\x20failed\x20('+_0x733520['error']+').'),process[_0x20c1aa(0x2da)]=0x1):process[_0x20c1aa(0x1f7)][_0x20c1aa(0x23d)](JSON['stringify'](_0x733520[_0x20c1aa(0x388)],null,0x2)+'\x0a');}function dn(_0x16d19e,_0x23fddc){const _0x5e7f67=_0x438223;let _0x471b1c=process[_0x5e7f67(0x1f7)][_0x5e7f67(0x23d)][_0x5e7f67(0x2d6)](process[_0x5e7f67(0x1f7)]),_0x5b37b8=!0x1;return process[_0x5e7f67(0x1f7)]['write']=(..._0x25226c)=>{const _0x51e222=_0x5e7f67;if(!_0x5b37b8)return _0x471b1c(..._0x25226c);_0x474a0e(_0x23fddc,0x0),_0x3342da(_0x23fddc,0x0);let _0x2b79ed=_0x471b1c(..._0x25226c);return _0x16d19e[_0x51e222(0x2c8)](!0x0),_0x2b79ed;},{'show':()=>{const _0x46686f=_0x5e7f67;_0x5b37b8=!0x0,_0x16d19e[_0x46686f(0x2c8)]();},'hide':()=>{_0x5b37b8=!0x1;},'restore':()=>{const _0x43c0ee=_0x5e7f67;_0x5b37b8=!0x1,process['stdout'][_0x43c0ee(0x23d)]=_0x471b1c;}};}async function un({prompt:_0x4e8e2f,sendMessage:_0x3dd5be,onSigint:_0x5b4f96}){const _0x2176d7=_0x438223;let _0x47bbae=_0x343711({'input':process[_0x2176d7(0x367)],'output':process[_0x2176d7(0x235)],'terminal':!0x0,'prompt':'You>\x20'}),_0x3b383a=dn(_0x47bbae,process['stderr']),_0x543d54=_0x47bbae[Symbol[_0x2176d7(0x34a)]](),_0x56081f=!0x1;_0x47bbae[_0x2176d7(0x329)](_0x2176d7(0x35b),()=>{const _0x2460b8=_0x2176d7;_0x56081f=!0x0,_0x3b383a[_0x2460b8(0x37c)]();});let _0x232aad=!0x1,_0x4e012b=()=>{const _0x4c97b4=_0x2176d7;_0x232aad=!0x0,_0x47bbae[_0x4c97b4(0x35b)](),_0x5b4f96();};_0x47bbae['on'](_0x2176d7(0x252),_0x4e012b),process[_0x2176d7(0x235)][_0x2176d7(0x23d)]('Enter\x20sends\x20a\x20message.\x20/exit\x20or\x20EOF\x20exits;\x20Ctrl+C\x20stops\x20and\x20exits.\x0a');try{if(_0x4e8e2f&&await _0x3dd5be(_0x4e8e2f),_0x232aad)return;_0x56081f||_0x3b383a[_0x2176d7(0x338)]();for await(let _0xcfcbba of _0x543d54){if(_0x3b383a[_0x2176d7(0x37c)](),_0x232aad)break;let _0x3e4aa4=_0xcfcbba[_0x2176d7(0x30a)]();if(_0x3e4aa4===_0x2176d7(0x2fe))break;_0x3e4aa4&&await _0x3dd5be(_0x3e4aa4),_0x56081f||_0x3b383a[_0x2176d7(0x338)]();}}finally{_0x3b383a[_0x2176d7(0x217)](),_0x47bbae[_0x2176d7(0x391)](_0x2176d7(0x252),_0x4e012b),_0x47bbae['close']();}}async function pn(){const _0x50cbb6=_0x438223;let _0x2c77da=ht(process[_0x50cbb6(0x1e4)][_0x50cbb6(0x2d8)](0x2));if(_0x2c77da['outputFormat']===_0x50cbb6(0x1ef)){await te(_0x2c77da);return;}let _0x157026=gt();try{await te(_0x2c77da);}finally{_0x157026();}}async function te(_0x4296d5){const _0x1d5d3d=_0x438223;if(_0x4296d5[_0x1d5d3d(0x394)]){wt();return;}if(_0x4296d5['version']){console[_0x1d5d3d(0x25a)](yt());return;}if(_0x4296d5[_0x1d5d3d(0x311)]===_0x1d5d3d(0x23e)){await en(_0x4296d5);return;}if(_0x4296d5[_0x1d5d3d(0x311)]===_0x1d5d3d(0x386)){await nn(_0x4296d5[_0x1d5d3d(0x2c8)]);return;}if(_0x4296d5[_0x1d5d3d(0x311)]===_0x1d5d3d(0x269)){await vt();return;}if(_0x4296d5[_0x1d5d3d(0x311)]===_0x1d5d3d(0x30c)){await At(_0x4296d5);return;}if(_0x4296d5['subcommand']==='models'){await Tt(_0x4296d5);return;}if(_0x4296d5[_0x1d5d3d(0x311)]==='check'){await Lt(_0x4296d5);return;}if(_0x4296d5['subcommand']===_0x1d5d3d(0x2f9)){await Dt(_0x4296d5);return;}if(_0x4296d5[_0x1d5d3d(0x311)]==='usage'){await Ft(_0x4296d5);return;}if(_0x4296d5['subcommand']===_0x1d5d3d(0x344)||_0x4296d5['subcommand']==='rerank'||_0x4296d5['subcommand']==='verify'){await Ht(_0x4296d5,_0x4296d5[_0x1d5d3d(0x311)]);return;}if(_0x4296d5['subcommand']===_0x1d5d3d(0x28b)){await Jt(_0x4296d5);return;}if(_0x4296d5[_0x1d5d3d(0x311)]===_0x1d5d3d(0x274)){await zt(_0x4296d5);return;}if(_0x4296d5['subcommand']===_0x1d5d3d(0x21a)){await Yt(_0x4296d5);return;}if(_0x4296d5[_0x1d5d3d(0x311)]==='org-users'){await Zt(_0x4296d5);return;}if(_0x4296d5[_0x1d5d3d(0x311)]===_0x1d5d3d(0x24e)){await _0x377fbf(_0x4296d5['prompt'],{'runnerUrl':_0x4296d5[_0x1d5d3d(0x1f2)],'backendUrl':_0x4296d5[_0x1d5d3d(0x240)],'interopPath':_0x4296d5['interopPath'],'workerId':_0x4296d5[_0x1d5d3d(0x1df)]});return;}if(_0x4296d5[_0x1d5d3d(0x327)]){await $t();return;}await ln(_0x4296d5);}var mn=process.env.NODE_ENV===_0x438223(0x2a5)||!!process.env.JEST_WORKER_ID;mn||pn()[_0x438223(0x355)](_0x54b630=>{const _0x1b0310=_0x438223;console[_0x1b0310(0x289)](_0x54b630[_0x1b0310(0x2c4)]||_0x54b630[_0x1b0310(0x32a)]||_0x54b630),process[_0x1b0310(0x1e1)](0x1);});export{ft as CARTOGRAPHER_SKILLS,G as EFFORT_TIERS,kt as IMPLICIT_STDIN_IDLE_MS,Z as buildInitOptions,pn as main,ht as parseArgs,yt as readCliVersion,I as resolvePrompt,gt as routeStdoutToStderr,l as writeCommandResult};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uipath/delegate-cli",
|
|
3
|
-
"version": "1.203.
|
|
3
|
+
"version": "1.203.2",
|
|
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.203.
|
|
25
|
+
"@uipath/delegate-sdk": "1.203.2"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@types/node": "^22.0.0",
|