@uipath/delegate-cli 1.204.0-preview.20261023124944 → 1.205.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -9
- package/dist/cli.mjs +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -85,7 +85,7 @@ delegate-cli complete --json-schema FILE [--model ID] [--session ID] "<prompt>"|
|
|
|
85
85
|
delegate-cli --json-schema FILE "<prompt>"
|
|
86
86
|
One turn, then its result extracted as JSON matching
|
|
87
87
|
the schema in FILE; exits 1 when extraction fails
|
|
88
|
-
delegate-cli transcribe FILE|- Speech-to-text (
|
|
88
|
+
delegate-cli transcribe FILE|- Speech-to-text (transcription model): print the text of the audio
|
|
89
89
|
in FILE (or stdin with -)
|
|
90
90
|
delegate-cli org-users QUERY Search your organization's users by name or email
|
|
91
91
|
prefix, for delegations create --to
|
|
@@ -106,7 +106,9 @@ delegate-cli --help
|
|
|
106
106
|
|
|
107
107
|
When both stdin and stdout are terminals, the CLI starts an interactive conversation. An optional prompt is sent first; otherwise it waits at `You> `. Enter sends a message, blank lines are ignored, and replies run sequentially in the same session. Each entered line is a separate message; use piped input or `-` for a multiline prompt.
|
|
108
108
|
|
|
109
|
-
|
|
109
|
+
In a conversation the agent can also ask structured questions (its AskUser tool), as it does in the Delegate app. The CLI prints each question with numbered choices and waits for your answer before the turn goes on: type a number (several, separated by commas, where more than one choice is allowed), your own answer where the question offers one, or a value for each slider. Press Enter to skip a question; on a slider, Enter takes the value shown in the prompt instead, so a slider question is always answered. The CLI cannot attach a file or recording to an answer. A one-turn run (`--print`, a JSON format, piped input) has nobody to answer, so the agent gets no AskUser there and asks in its reply instead.
|
|
110
|
+
|
|
111
|
+
Use `/exit` or EOF (Ctrl+D on an empty input line) to finish. EOF lets an active turn finish before exiting, except at an AskUser question, where it stops the turn as Ctrl+C does. Ctrl+C stops the CLI and exits with code 130; during a turn it first cancels the turn on the backend too (see [Cancelling a turn](#cancelling-a-turn)), so the turn does not keep running server-side; during initialization it waits for setup to settle before cleaning up. A second Ctrl+C forces immediate exit. The SDK and interop are cleaned up on exit, subject to `--keep-alive`.
|
|
110
112
|
|
|
111
113
|
`--print` / `-p` sends one prompt and exits after the response and any tool execution. This mode is also automatic when stdin **or** stdout is not a terminal, or when the prompt is `-`. Piped lines form one prompt, not separate turns. Missing input in one-turn mode exits with code 2.
|
|
112
114
|
|
|
@@ -306,13 +308,13 @@ You> Turn what you just did into a UiPath coded workflow.
|
|
|
306
308
|
|
|
307
309
|
### Skills
|
|
308
310
|
|
|
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.
|
|
311
|
+
The CLI uses the skills the `@uipath/delegate-sdk` package ships, with no Delegate desktop app needed: the Integration Service API skills (`jira`, `confluence`, `github`, `google-workspace`, `uipath-integrations`, `uipath-orchestrator`), the Office and document skills (`excel-architect`, `word-architect`, `powerpoint-architect`, `pdf-architect`, `office-convert`, `office-download`, `doc-coauthoring`, `internal-comms`, `knowledge-base`), `outlook-365`, `slack-operation`, `teams-operation`, `uipath-taskautomation`, `uipath-workflow-documenter`, `business-analysis`, `project-task-list`, `source-coverage`, `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
312
|
|
|
311
313
|
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
314
|
|
|
313
315
|
### Speech-to-text (`transcribe`)
|
|
314
316
|
|
|
315
|
-
Transcribe an audio file with the backend's
|
|
317
|
+
Transcribe an audio file with the backend's transcription model route (`/v1/transcription`, the one the desktop app's voice input uses) and print the text:
|
|
316
318
|
|
|
317
319
|
```bash
|
|
318
320
|
delegate-cli transcribe standup.m4a
|
|
@@ -321,8 +323,8 @@ delegate-cli transcribe standup.m4a
|
|
|
321
323
|
cat memo.wav | delegate-cli transcribe - --output-format json # {"text":"…"}
|
|
322
324
|
```
|
|
323
325
|
|
|
324
|
-
- Formats: mp3, mp4, mpeg, mpga, m4a, wav, webm — named by the file's extension; for stdin (`-`) the format is detected from the bytes. At most
|
|
325
|
-
- Audio the CLI refuses before uploading (unreadable file, unsupported format, empty, over
|
|
326
|
+
- Formats: mp3, mp4, mpeg, mpga, m4a, wav, webm — named by the file's extension; for stdin (`-`) the format is detected from the bytes. At most 14 MB. There is no language option; the model detects it (Gemini 3.1 Flash-Lite through LLM Gateway).
|
|
327
|
+
- Audio the CLI refuses before uploading (unreadable file, unsupported format, empty, over 14 MB) prints the reason and exits 2. A backend rejection prints one line on stderr, such as `Transcription failed (400 empty): Audio file is empty.`, and exits 1.
|
|
326
328
|
|
|
327
329
|
### Delegating to people (`delegations`, `org-users`)
|
|
328
330
|
|
|
@@ -380,7 +382,7 @@ Three levels of machine access, independent of conversation mode:
|
|
|
380
382
|
| `--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
383
|
| `--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). |
|
|
382
384
|
| `--preload-skill <name>` | — | Preload a skill into the session before the first model turn (repeatable; SDK `preloadSkills`). A name given twice is preloaded once. |
|
|
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`). |
|
|
385
|
+
| `--cartographer` | off | Cartographer engagement preset — shorthand for `--no-computer-use --preload-skill business-analysis --preload-skill project-task-list --preload-skill knowledge-base --preload-skill source-coverage --preload-skill note-taker`. 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`). |
|
|
384
386
|
| `--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. |
|
|
385
387
|
| `--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**. |
|
|
386
388
|
| `--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. |
|
|
@@ -448,7 +450,8 @@ npx delegate-cli --headless --project invoice-approval --working-dir ~/engagemen
|
|
|
448
450
|
# keeps interop (so ReadFile/WriteFile/Office/PDF work) while dropping screenshots and
|
|
449
451
|
# the window list — no image tokens, and nothing about the desktop leaves the machine.
|
|
450
452
|
npx delegate-cli --no-computer-use --project invoice-approval --working-dir ~/engagements \
|
|
451
|
-
--preload-skill business-analysis --preload-skill
|
|
453
|
+
--preload-skill business-analysis --preload-skill project-task-list --preload-skill knowledge-base \
|
|
454
|
+
--preload-skill source-coverage --preload-skill note-taker \
|
|
452
455
|
"Read the AS-IS notes and draft the process overview."
|
|
453
456
|
|
|
454
457
|
# The same command as above — --cartographer is shorthand for that whole flag set
|
|
@@ -457,7 +460,7 @@ npx delegate-cli --cartographer --project invoice-approval --working-dir ~/engag
|
|
|
457
460
|
|
|
458
461
|
# Preset plus one extra skill the package does not ship, loaded from a folder of your
|
|
459
462
|
# 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
|
|
463
|
+
npx delegate-cli --cartographer --skills-path ~/my-skills --preload-skill company-process-guide \
|
|
461
464
|
--project invoice-approval "Start the engagement."
|
|
462
465
|
|
|
463
466
|
# Separate one-turn commands with persistent interop
|
package/dist/cli.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
const _0xb40a41=_0x4342;(function(_0x1cf494,_0x1d802d){const _0x213735=_0x4342,_0x24ce63=_0x1cf494();while(!![]){try{const _0x57f14e=parseInt(_0x213735(0x199))/0x1+parseInt(_0x213735(0x2f0))/0x2+-parseInt(_0x213735(0x180))/0x3+parseInt(_0x213735(0x248))/0x4*(parseInt(_0x213735(0x2e1))/0x5)+-parseInt(_0x213735(0x1ed))/0x6+parseInt(_0x213735(0x325))/0x7+-parseInt(_0x213735(0x2c3))/0x8;if(_0x57f14e===_0x1d802d)break;else _0x24ce63['push'](_0x24ce63['shift']());}catch(_0x2ef355){_0x24ce63['push'](_0x24ce63['shift']());}}}(_0x13e6,0xf2df1));const __dirname=import.meta.dirname;import _0x451491 from'fs';import _0x554d50 from'path';import{clearLine as _0x3ed614,createInterface as _0x239972,cursorTo as _0x3da38a}from'node:readline';import{BUSINESS_ANALYSIS_PRELOADED_SKILLS as _0x259d41,DelegateAgent as _0x2029e7,cancelTurn as _0x381fb2,InteropProcess as _0x5575ed,complete as _0x6f514d,DEFAULT_MODEL as _0x42b8f9,createBackendClient as _0x16e742,evaluate as _0x133ec1,isCompletionRequestError as _0x39c682,isEvaluationRequestError as _0x3b5dea,isTranscriptionError as _0x486baa,rerank as _0x2157d8,transcribe as _0x39f720,verify as _0x40db00,acceptDelegation as _0x53e19e,cancelDelegation as _0x37e0a2,claimDelegation as _0x2e9f3c,completeDelegation as _0x1e8e82,createDelegation as _0x48a70a,deleteDelegation as _0xe450ff,dismissDelegation as _0x367e88,getSessionDelegations as _0x309b07,isDelegationError as _0x5dec9e,listDelegations as _0x2451ca,listOrgUsers as _0x4a1f58,previewDelegation as _0x2e1b28,TurnResultCollector as _0x4aabfc,agentEventToJsonLine as _0x95f508,describeBaseUrlRejection as _0x15c2ea,getActivitySummary as _0x2cb091,getAuthFilePath as _0x1819b4,getByoWarnings as _0x48800d,getCartographerAllowance as _0xf10d2c,getDailyBreakdown as _0x2b55b4,getLicensingSummary as _0x2bb9e1,getMonthlySpending as _0x5ef3f7,isOutputFormat as _0x33849b,isCloudBaseUrl as _0x5f198b,isSafeProjectFolderSegment as _0x1811b5,listModels as _0x3ae784,listSessions as _0x3d3a3b,getSession as _0x3be6a3,renameSession as _0x44d258,deleteSession as _0x143ca1,deleteSessionTaskLog as _0x2cae6e,forkSession as _0x3c29d7,isBackendRequestError as _0x4caca3,MAX_SESSION_PAGE_SIZE as _0x40829f,listTenants as _0x487abe,loadAndRefreshAuth as _0x51c4f9,loadAndRefreshSdkLogin as _0x42aa64,parsePlatformBaseUrl as _0x1ded23,resolveBackendUrl as _0xde175,runHealthCheck as _0x4a5d64,runHostCommand as _0x3b13cd,runLoginFlow as _0x4f9aef,runTurnForResult as _0x1ce602,saveAuthData as _0x1815e2,switchTenant as _0x302989,toJsonLine as _0x4a0190,ENV_TO_CLOUD as _0x406b69,OUTPUT_FORMATS as _0x1a6bea}from'@uipath/delegate-sdk';var mt=[_0xb40a41(0x29f),'tenant',_0xb40a41(0x1cb),_0xb40a41(0x209),'logout',_0xb40a41(0x227),_0xb40a41(0x2e8),_0xb40a41(0x208),'usage',_0xb40a41(0x1b7),_0xb40a41(0x2d3),_0xb40a41(0x2a6),_0xb40a41(0x2bb),'transcribe',_0xb40a41(0x213),'org-users'],W=['','models','whoami',_0xb40a41(0x2e8),'sessions',_0xb40a41(0x2ef),_0xb40a41(0x1b7),_0xb40a41(0x2d3),_0xb40a41(0x2a6),_0xb40a41(0x2bb),_0xb40a41(0x241),_0xb40a41(0x213),_0xb40a41(0x2b7)],G=[_0xb40a41(0x19b),_0xb40a41(0x273),'high',_0xb40a41(0x17e),_0xb40a41(0x1f7)],ft=_0x259d41;function p(_0x294d9f,_0x52b5e7,_0x3e4ddf,_0x4f1134){const _0x420a42=_0xb40a41;let _0x426bbf=_0x294d9f[_0x52b5e7];return(!_0x426bbf||_0x426bbf[_0x420a42(0x205)]>0x1&&_0x426bbf[_0x420a42(0x1f9)]('-'))&&(console[_0x420a42(0x190)](_0x3e4ddf+_0x420a42(0x31a)+_0x4f1134+'.'),process[_0x420a42(0x2af)](0x2)),_0x426bbf;}function N(_0x33d25c,_0x3f63c7,_0x4e254d,_0x52429f){const _0x166da3=_0xb40a41;let _0xeb3761=p(_0x33d25c,_0x3f63c7,_0x4e254d,_0x166da3(0x318)),_0x5b4bbe=Number(_0xeb3761);return(!/^\d+$/[_0x166da3(0x17b)](_0xeb3761)||_0x5b4bbe<0x1||!Number[_0x166da3(0x1d7)](_0x5b4bbe)||_0x52429f!==void 0x0&&_0x5b4bbe>_0x52429f)&&(console['error'](_0x4e254d+_0x166da3(0x286)+(_0x52429f===void 0x0?_0x166da3(0x255):_0x166da3(0x214)+_0x52429f)+',\x20got\x20'+_0xeb3761+'.'),process[_0x166da3(0x2af)](0x2)),_0x5b4bbe;}function ht(_0x23c6f3){const _0x2e33e9=_0xb40a41;let _0x185ffe={'subcommand':'','prompt':'','print':!0x1,'keepAlive':!0x1,'cleanup':!0x1,'headless':!0x1,'noComputerUse':!0x1,'cartographer':!0x1,'noConnections':!0x1,'noSecurity':!0x1,'noMemory':!0x1,'taskAutomation':!0x1,'quiet':!0x1,'verbose':!0x1,'outputFormat':'text','preloadSkills':[],'attachments':[],'skipEnvCheck':!0x1,'includeSubAgents':!0x1,'operands':[],'help':!0x1,'version':!0x1};mt['includes'](_0x23c6f3[0x0])&&(_0x185ffe[_0x2e33e9(0x2cb)]=_0x23c6f3[0x0],_0x23c6f3=_0x23c6f3[_0x2e33e9(0x244)](0x1));let _0x4df6af=[];for(let _0x667851=0x0;_0x667851<_0x23c6f3['length'];_0x667851++){let _0x42d23c=_0x23c6f3[_0x667851];switch(_0x42d23c){case'--print':case'-p':_0x185ffe[_0x2e33e9(0x301)]=!0x0;break;case _0x2e33e9(0x2fb):_0x185ffe[_0x2e33e9(0x250)]=!0x0;break;case _0x2e33e9(0x2de):_0x185ffe[_0x2e33e9(0x21f)]=!0x0;break;case _0x2e33e9(0x2d4):_0x185ffe[_0x2e33e9(0x192)]=!0x0;break;case _0x2e33e9(0x324):_0x185ffe[_0x2e33e9(0x1f3)]=!0x0;break;case _0x2e33e9(0x19f):_0x185ffe[_0x2e33e9(0x1fd)]=!0x0,_0x185ffe[_0x2e33e9(0x1f3)]=!0x0,_0x185ffe[_0x2e33e9(0x28f)][_0x2e33e9(0x2c2)](...ft);break;case _0x2e33e9(0x1be):_0x185ffe['noConnections']=!0x0;break;case _0x2e33e9(0x228):_0x185ffe[_0x2e33e9(0x176)]=!0x0;break;case _0x2e33e9(0x1a1):_0x185ffe[_0x2e33e9(0x25e)]=!0x0;break;case _0x2e33e9(0x218):_0x185ffe[_0x2e33e9(0x221)]=!0x0;break;case _0x2e33e9(0x30a):case'-q':_0x185ffe['quiet']=!0x0;break;case _0x2e33e9(0x28a):_0x185ffe[_0x2e33e9(0x30e)]=!0x0;break;case _0x2e33e9(0x1ce):_0x185ffe[_0x2e33e9(0x31b)]=_0x23c6f3[++_0x667851];break;case _0x2e33e9(0x1d6):_0x185ffe['model']=_0x23c6f3[++_0x667851];break;case'--runner-url':_0x185ffe[_0x2e33e9(0x225)]=_0x23c6f3[++_0x667851];break;case _0x2e33e9(0x270):_0x185ffe['interopPath']=_0x23c6f3[++_0x667851];break;case'--worker-id':_0x185ffe[_0x2e33e9(0x303)]=_0x23c6f3[++_0x667851];break;case _0x2e33e9(0x26a):_0x185ffe[_0x2e33e9(0x28f)][_0x2e33e9(0x2c2)](p(_0x23c6f3,++_0x667851,_0x42d23c,'a\x20skill\x20name'));break;case _0x2e33e9(0x1cf):{let _0x47cc4d=p(_0x23c6f3,++_0x667851,_0x42d23c,_0x2e33e9(0x212));_0x1811b5(_0x47cc4d)||(console[_0x2e33e9(0x190)](_0x2e33e9(0x21d)+_0x47cc4d+_0x2e33e9(0x20a)),process['exit'](0x2)),_0x185ffe['projectId']=_0x47cc4d;break;}case _0x2e33e9(0x2ad):{let _0x17e464=p(_0x23c6f3,++_0x667851,_0x42d23c,_0x2e33e9(0x2d0)+_0x1a6bea['join'](_0x2e33e9(0x2f7))+')');_0x33849b(_0x17e464)||(console['error'](_0x2e33e9(0x30d)+_0x17e464+_0x2e33e9(0x197)+_0x1a6bea[_0x2e33e9(0x174)](_0x2e33e9(0x2f7))+'.'),process[_0x2e33e9(0x2af)](0x2)),_0x185ffe[_0x2e33e9(0x18d)]=_0x17e464;break;}case _0x2e33e9(0x2fe):_0x185ffe[_0x2e33e9(0x23b)]=p(_0x23c6f3,++_0x667851,_0x42d23c,'a\x20session\x20id');break;case _0x2e33e9(0x29e):_0x185ffe['page']=N(_0x23c6f3,++_0x667851,_0x42d23c);break;case _0x2e33e9(0x2ae):_0x185ffe[_0x2e33e9(0x1fc)]=N(_0x23c6f3,++_0x667851,_0x42d23c,_0x40829f);break;case _0x2e33e9(0x2a0):_0x185ffe['includeSubAgents']=!0x0;break;case _0x2e33e9(0x178):_0x185ffe[_0x2e33e9(0x1d4)]=p(_0x23c6f3,++_0x667851,_0x42d23c,_0x2e33e9(0x21c));break;case'--attach':{let _0x3ffc60=_0x554d50['resolve'](process[_0x2e33e9(0x20f)](),p(_0x23c6f3,++_0x667851,_0x42d23c,'a\x20file\x20path'));_0x451491[_0x2e33e9(0x2fd)](_0x3ffc60)||(console['error']('--attach:\x20no\x20such\x20file\x20or\x20folder:\x20'+_0x3ffc60),process[_0x2e33e9(0x2af)](0x2)),_0x185ffe[_0x2e33e9(0x23d)][_0x2e33e9(0x2c2)](_0x3ffc60);break;}case _0x2e33e9(0x25b):_0x185ffe[_0x2e33e9(0x2ac)]=p(_0x23c6f3,++_0x667851,_0x42d23c,_0x2e33e9(0x201));break;case _0x2e33e9(0x173):_0x185ffe['delegateTo']=p(_0x23c6f3,++_0x667851,_0x42d23c,_0x2e33e9(0x229));break;case'--summary':_0x185ffe[_0x2e33e9(0x259)]=p(_0x23c6f3,++_0x667851,_0x42d23c,_0x2e33e9(0x1d5));break;case _0x2e33e9(0x31f):_0x185ffe[_0x2e33e9(0x267)]=N(_0x23c6f3,++_0x667851,_0x42d23c,0x16d);break;case _0x2e33e9(0x26f):_0x185ffe[_0x2e33e9(0x206)]=_0x554d50[_0x2e33e9(0x183)](process[_0x2e33e9(0x20f)](),p(_0x23c6f3,++_0x667851,_0x42d23c,'a\x20directory\x20path'));break;case _0x2e33e9(0x2f9):_0x185ffe[_0x2e33e9(0x271)]=_0x554d50['resolve'](process['cwd'](),p(_0x23c6f3,++_0x667851,_0x42d23c,_0x2e33e9(0x1b8)));break;case'--effort':{let _0x516a97=p(_0x23c6f3,++_0x667851,_0x42d23c,_0x2e33e9(0x21e));G['includes'](_0x516a97)||(console[_0x2e33e9(0x190)](_0x2e33e9(0x254)+_0x516a97+_0x2e33e9(0x197)+G[_0x2e33e9(0x174)](_0x2e33e9(0x2f7))+'.'),process['exit'](0x2)),_0x185ffe[_0x2e33e9(0x296)]=_0x516a97;break;}case _0x2e33e9(0x2fc):{let _0x1828ad=_0x23c6f3[++_0x667851];(!_0x1828ad||_0x1828ad[_0x2e33e9(0x1f9)]('--'))&&(console[_0x2e33e9(0x190)](_0x2e33e9(0x211)),process[_0x2e33e9(0x2af)](0x2)),_0x185ffe['tenant']=_0x1828ad;break;}case _0x2e33e9(0x1c1):{let _0x281cf9=_0x23c6f3[++_0x667851];['alpha',_0x2e33e9(0x1e9),_0x2e33e9(0x21b),_0x2e33e9(0x1c5)][_0x2e33e9(0x262)](_0x281cf9)||(console['error'](_0x2e33e9(0x22a)+_0x281cf9+'.\x20Use\x20alpha\x20|\x20staging\x20|\x20production\x20|\x20localhost.'),process['exit'](0x2)),_0x185ffe[_0x2e33e9(0x1ad)]=_0x281cf9;break;}case'--url':case _0x2e33e9(0x1f1):{let _0x3f0b6f=p(_0x23c6f3,++_0x667851,_0x42d23c,'a\x20deployment\x20URL,\x20e.g.\x20https://automationsuite.contoso.com'),_0x495d8d=_0x1ded23(_0x3f0b6f);if(_0x495d8d['ok']===!0x1){console[_0x2e33e9(0x190)](_0x15c2ea(_0x3f0b6f,_0x495d8d[_0x2e33e9(0x179)])),process[_0x2e33e9(0x2af)](0x2);break;}_0x185ffe[_0x2e33e9(0x1ef)]=_0x495d8d[_0x2e33e9(0x1e7)];break;}case _0x2e33e9(0x2ea):_0x185ffe[_0x2e33e9(0x215)]=!0x0;break;case'-h':case _0x2e33e9(0x27e):_0x185ffe[_0x2e33e9(0x1b2)]=!0x0;break;case'-v':case _0x2e33e9(0x1ac):_0x185ffe['version']=!0x0;break;default:_0x42d23c[_0x2e33e9(0x1f9)]('--')&&(console[_0x2e33e9(0x190)]('Unknown\x20flag:\x20'+_0x42d23c),process['exit'](0x2)),_0x4df6af[_0x2e33e9(0x2c2)](_0x42d23c);}}return _0x185ffe[_0x2e33e9(0x17c)]!==void 0x0&&_0x185ffe['subcommand']!==_0x2e33e9(0x29f)&&(console[_0x2e33e9(0x190)](_0x2e33e9(0x1de)),process[_0x2e33e9(0x2af)](0x2)),_0x185ffe[_0x2e33e9(0x1ef)]!==void 0x0&&_0x185ffe['env']!==void 0x0&&(console[_0x2e33e9(0x190)](_0x2e33e9(0x1ec)),process[_0x2e33e9(0x2af)](0x2)),_0x185ffe[_0x2e33e9(0x1ef)]!==void 0x0&&_0x185ffe[_0x2e33e9(0x2cb)]!=='login'&&(console[_0x2e33e9(0x190)](_0x2e33e9(0x265)),process[_0x2e33e9(0x2af)](0x2)),_0x185ffe[_0x2e33e9(0x267)]!==void 0x0&&_0x185ffe[_0x2e33e9(0x2cb)]!==_0x2e33e9(0x2ef)&&(console['error'](_0x2e33e9(0x1a0)),process['exit'](0x2)),_0x185ffe[_0x2e33e9(0x1d4)]!==void 0x0&&(_0x185ffe[_0x2e33e9(0x2cb)]!==_0x2e33e9(0x2bb)&&_0x185ffe[_0x2e33e9(0x2cb)]!==''||_0x185ffe[_0x2e33e9(0x21f)])&&(console[_0x2e33e9(0x190)](_0x2e33e9(0x1eb)),process[_0x2e33e9(0x2af)](0x2)),_0x185ffe['attachments'][_0x2e33e9(0x205)]>0x0&&(_0x185ffe[_0x2e33e9(0x2cb)]!==''||_0x185ffe[_0x2e33e9(0x21f)])&&(console['error'](_0x2e33e9(0x20d)),process[_0x2e33e9(0x2af)](0x2)),_0x185ffe[_0x2e33e9(0x221)]&&(_0x185ffe[_0x2e33e9(0x2cb)]!==''||_0x185ffe[_0x2e33e9(0x21f)])&&(console[_0x2e33e9(0x190)](_0x2e33e9(0x313)),process[_0x2e33e9(0x2af)](0x2)),_0x185ffe[_0x2e33e9(0x221)]&&(_0x185ffe[_0x2e33e9(0x192)]||_0x185ffe[_0x2e33e9(0x1f3)])&&(console['error'](_0x2e33e9(0x1b0)),process['exit'](0x2)),_0x185ffe[_0x2e33e9(0x215)]&&_0x185ffe[_0x2e33e9(0x2cb)]!==_0x2e33e9(0x29f)&&(console[_0x2e33e9(0x190)]('--skip-env-check\x20applies\x20to\x20`delegate-cli\x20login`\x20only.'),process[_0x2e33e9(0x2af)](0x2)),_0x185ffe['outputFormat']!==_0x2e33e9(0x27d)&&!W[_0x2e33e9(0x262)](_0x185ffe[_0x2e33e9(0x2cb)])&&(console[_0x2e33e9(0x190)](_0x2e33e9(0x1dd)+_0x185ffe[_0x2e33e9(0x18d)]+_0x2e33e9(0x1fe)+W['filter'](Boolean)[_0x2e33e9(0x174)](',\x20')+'.'),process[_0x2e33e9(0x2af)](0x2)),(_0x185ffe[_0x2e33e9(0x194)]!==void 0x0||_0x185ffe[_0x2e33e9(0x1fc)]!==void 0x0||_0x185ffe['includeSubAgents'])&&_0x185ffe[_0x2e33e9(0x2cb)]!==_0x2e33e9(0x208)&&(console['error'](_0x2e33e9(0x288)),process['exit'](0x2)),(_0x185ffe[_0x2e33e9(0x19c)]!==void 0x0||_0x185ffe[_0x2e33e9(0x259)]!==void 0x0)&&_0x185ffe['subcommand']!==_0x2e33e9(0x213)&&(console[_0x2e33e9(0x190)]('--to\x20and\x20--summary\x20apply\x20to\x20`delegate-cli\x20delegations\x20create`\x20only.'),process[_0x2e33e9(0x2af)](0x2)),_0x185ffe[_0x2e33e9(0x2ac)]!==void 0x0&&_0x185ffe['subcommand']!==_0x2e33e9(0x208)&&(console[_0x2e33e9(0x190)](_0x2e33e9(0x291)),process['exit'](0x2)),_0x185ffe[_0x2e33e9(0x28f)]=[...new Set(_0x185ffe['preloadSkills'])],_0x185ffe[_0x2e33e9(0x1b5)]=_0x4df6af,_0x185ffe[_0x2e33e9(0x1a2)]=_0x4df6af[_0x2e33e9(0x174)]('\x20'),_0x185ffe;}var S=_0x3a0957=>{const _0x526099=_0xb40a41;process[_0x526099(0x189)][_0x526099(0x1ab)](_0x3a0957);};function gt(){const _0x520818=_0xb40a41;let _0x3cdb0b=process[_0x520818(0x189)][_0x520818(0x1ab)],_0x4563e=_0x3cdb0b[_0x520818(0x27f)](process[_0x520818(0x189)]),_0x3c0a32=S;return S=_0xe20b02=>{_0x4563e(_0xe20b02);},process[_0x520818(0x189)][_0x520818(0x1ab)]=(..._0x3975f9)=>process[_0x520818(0x24a)][_0x520818(0x1ab)](..._0x3975f9),()=>{process['stdout']['write']=_0x3cdb0b,S=_0x3c0a32;};}function l(_0x1c60bf,_0x502c5e,_0x54a91c){const _0x3ad299=_0xb40a41;if(_0x1c60bf[_0x3ad299(0x18d)]==='text'){_0x54a91c(_0x502c5e);return;}S(_0x4a0190(_0x502c5e));}function wt(){const _0x39567e=_0xb40a41;let _0x4c3c8c=_0x39567e(0x2b0)[_0x39567e(0x22e)]();console[_0x39567e(0x2fa)](_0x4c3c8c);}function yt(){const _0x1c08f7=_0xb40a41;try{return JSON['parse'](_0x451491[_0x1c08f7(0x1d1)](_0x554d50[_0x1c08f7(0x174)](__dirname,'..','package.json'),_0x1c08f7(0x239)))[_0x1c08f7(0x28e)]||'unknown';}catch{return _0x1c08f7(0x2ff);}}var kt=0x7d0;async function K(_0x2cdc4b,_0x1a6b2f){const _0x4a638c=_0xb40a41;let _0x184cde=_0x1a6b2f?[_0x1a6b2f]:[];for await(let _0x29658f of _0x2cdc4b)_0x184cde[_0x4a638c(0x2c2)](Buffer[_0x4a638c(0x283)](_0x29658f));return Buffer[_0x4a638c(0x293)](_0x184cde)[_0x4a638c(0x1e3)](_0x4a638c(0x239))[_0x4a638c(0x22e)]();}function St(_0x3904fc,_0x373b30){return new Promise(_0x1227fe=>{const _0x3c0072=_0x4342;let _0x57c005=_0x3f7ed1=>{const _0x2d9223=_0x4342;clearTimeout(_0x15c252),_0x3904fc['off'](_0x2d9223(0x2d2),_0x16a1b1),_0x3904fc[_0x2d9223(0x2c4)](_0x2d9223(0x1db),_0x144f1f),_0x3904fc[_0x2d9223(0x2c4)](_0x2d9223(0x190),_0x144f1f),_0x3904fc[_0x2d9223(0x2f1)](),_0x1227fe(_0x3f7ed1);},_0x16a1b1=_0x34241a=>_0x57c005(Buffer[_0x3c0072(0x283)](_0x34241a)),_0x144f1f=()=>_0x57c005(null),_0x15c252=setTimeout(()=>_0x57c005(null),_0x373b30);_0x3904fc['on'](_0x3c0072(0x2d2),_0x16a1b1),_0x3904fc['on'](_0x3c0072(0x1db),_0x144f1f),_0x3904fc['on'](_0x3c0072(0x190),_0x144f1f),_0x3904fc[_0x3c0072(0x233)]();});}async function I(_0x23f20c,_0x5a2b1c,_0x273773=kt){const _0x4ee1b4=_0xb40a41;let _0x500762=_0x23f20c==='-';if(!_0x500762&&_0x23f20c)return _0x23f20c;if(!_0x500762&&_0x5a2b1c[_0x4ee1b4(0x186)])return'';if(_0x500762)return K(_0x5a2b1c,null);let _0x434efa=await St(_0x5a2b1c,_0x273773);return _0x434efa?K(_0x5a2b1c,_0x434efa):'';}function L(){const _0x1ba899=_0xb40a41;return _0x554d50[_0x1ba899(0x174)](process.env.HOME||process.env.USERPROFILE||'',_0x1ba899(0x246),'auth.json');}function $(_0x1a735b){const _0x54969a=_0xb40a41;try{let _0x24fe6b=JSON[_0x54969a(0x2dc)](_0x451491[_0x54969a(0x1d1)](_0x1a735b,_0x54969a(0x239)));return!_0x24fe6b[_0x54969a(0x1ae)]||!_0x24fe6b[_0x54969a(0x210)]||!_0x24fe6b[_0x54969a(0x258)]?null:_0x24fe6b;}catch{return null;}}function bt(){const _0x1d6389=_0xb40a41;let _0xa3a6fd=[{'file':_0x1819b4(),'isDesktopFallback':!0x1},{'file':L(),'isDesktopFallback':!0x0}];for(let _0x51d903 of _0xa3a6fd){let _0x43393a=$(_0x51d903[_0x1d6389(0x28d)]);if(_0x43393a)return{..._0x51d903,'auth':_0x43393a};}return null;}async function vt(){const _0x797299=_0xb40a41;let _0x318d6d=_0x1819b4();if(!_0x451491[_0x797299(0x2fd)](_0x318d6d)){let _0x74e7df=L();console[_0x797299(0x2fa)]($(_0x74e7df)?_0x797299(0x2a8)+_0x74e7df+_0x797299(0x17d):_0x797299(0x231));return;}_0x451491['rmSync'](_0x318d6d),console[_0x797299(0x2fa)](_0x797299(0x182)+_0x318d6d);}function _0x4342(_0x489ff1,_0x23b9c0){_0x489ff1=_0x489ff1-0x16b;const _0x13e693=_0x13e6();let _0x43421f=_0x13e693[_0x489ff1];return _0x43421f;}async function At(_0x33525a){const _0x41dbfd=_0xb40a41;let _0x190c67=O(),_0x7d3f49,_0x29d4e3;if(_0x190c67)_0x7d3f49=_0x190c67,_0x29d4e3='environment\x20variables\x20(AUTH_TOKEN/TENANT_ID/ORG_ID)';else{let _0x13ba4c=bt();if(!_0x13ba4c)throw new Error(le);_0x7d3f49=_0x13ba4c[_0x41dbfd(0x200)],_0x29d4e3=_0x13ba4c[_0x41dbfd(0x1bf)]?_0x13ba4c[_0x41dbfd(0x28d)]+_0x41dbfd(0x1e5):_0x13ba4c[_0x41dbfd(0x28d)];}let _0x426417={'source':_0x29d4e3,'baseUrl':_0x7d3f49['baseUrl']??null,'deployment':Et(_0x7d3f49[_0x41dbfd(0x1e7)]),'organization':{'id':_0x7d3f49[_0x41dbfd(0x258)],'slug':_0x7d3f49[_0x41dbfd(0x2e9)]??null},'tenant':{'id':_0x7d3f49['tenantId'],'name':_0x7d3f49[_0x41dbfd(0x22c)]??null},'tokenExpiresAt':_0x7d3f49['expiresAt']?new Date(_0x7d3f49[_0x41dbfd(0x1d9)]*0x3e8)[_0x41dbfd(0x2ce)]():null};l(_0x33525a,_0x426417,()=>{const _0x204577=_0x41dbfd;let _0x3dd51a=[_0x204577(0x29c)+_0x29d4e3,_0x204577(0x1cc)+(_0x7d3f49[_0x204577(0x1e7)]??'unknown'),'Deployment:\x20\x20\x20'+_0x426417[_0x204577(0x1b1)],_0x204577(0x309)+(_0x7d3f49[_0x204577(0x2e9)]??_0x204577(0x249))+'\x20('+_0x7d3f49['organizationId']+')','Tenant:\x20\x20\x20\x20\x20\x20\x20'+(_0x7d3f49[_0x204577(0x22c)]??_0x204577(0x249))+'\x20('+_0x7d3f49[_0x204577(0x210)]+')'];if(_0x7d3f49[_0x204577(0x1d9)]){let _0x75e539=_0x7d3f49[_0x204577(0x1d9)]-Math[_0x204577(0x16b)](Date[_0x204577(0x277)]()/0x3e8);_0x3dd51a[_0x204577(0x2c2)](_0x75e539>0x0?_0x204577(0x2b5)+_0x426417['tokenExpiresAt']+'\x20(in\x20'+Math[_0x204577(0x232)](_0x75e539/0x3c)+_0x204577(0x20e):_0x204577(0x29d)+_0x426417['tokenExpiresAt']);}process['stdout'][_0x204577(0x1ab)](_0x3dd51a[_0x204577(0x174)]('\x0a')+'\x0a');});}var le=_0xb40a41(0x185);function Et(_0x441502){const _0x2bb04d=_0xb40a41;return _0x441502?_0x5f198b(_0x441502)?_0x2bb04d(0x19a):_0x2bb04d(0x2a3):_0x2bb04d(0x2ff);}function O(){let _0x55bc5a=process.env.AUTH_TOKEN_FILE;return(process.env.AUTH_TOKEN||_0x55bc5a)&&process.env.TENANT_ID&&process.env.ORG_ID?{'accessToken':_0x55bc5a?It(_0x55bc5a):process.env.AUTH_TOKEN,..._0x55bc5a?{'accessTokenFile':_0x55bc5a}:{},'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(_0x1c6973){const _0x3da79d=_0xb40a41;let _0x4ffef8;try{_0x4ffef8=_0x451491[_0x3da79d(0x1d1)](_0x1c6973,_0x3da79d(0x239))[_0x3da79d(0x22e)]();}catch(_0x36495d){throw new Error(_0x3da79d(0x298)+_0x1c6973+'\x27\x20cannot\x20be\x20read:\x20'+_0x36495d[_0x3da79d(0x237)]);}let _0x52b921=_0x4ffef8[_0x3da79d(0x1f9)](_0x3da79d(0x31d))?_0x4ffef8[_0x3da79d(0x244)](0x7)[_0x3da79d(0x22e)]():_0x4ffef8;if(!_0x52b921)throw new Error(_0x3da79d(0x298)+_0x1c6973+_0x3da79d(0x234));return _0x52b921;}function ce(){const _0x139e91=_0xb40a41;let _0x1a01f7=process.env.UIPATH_BASE_URL;if(!_0x1a01f7)return;let _0x502cfe=_0x1ded23(_0x1a01f7);if(_0x502cfe['ok']===!0x1)throw new Error(_0x139e91(0x2b9)+_0x15c2ea(_0x1a01f7,_0x502cfe[_0x139e91(0x179)]));return _0x502cfe[_0x139e91(0x1e7)];}async function P(){let _0xf795d8=O();if(_0xf795d8)return _0xf795d8;let _0x5ccb01=await _0x51c4f9();if(_0x5ccb01)return _0x5ccb01;throw new Error(le);}async function $t(){const _0x443012=_0xb40a41;await new _0x5575ed()['stop']({'force':!0x0}),console[_0x443012(0x2fa)]('Interop\x20stopped\x20(if\x20it\x20was\x20running).');}function F(_0x3fa8c1,_0xb83154,_0x4e6098){const _0x585654=_0xb40a41;_0x3fa8c1?process[_0x585654(0x24a)]['write']('[env='+_0x3fa8c1+']\x20Backend\x20URL:\x20'+_0x4e6098+'\x0a'):!_0xb83154&&!process.env.BACKEND_URL&&process[_0x585654(0x24a)][_0x585654(0x1ab)](_0x585654(0x281)+_0x4e6098+'\x0a');}async function f(_0x1af100){const _0x2f997d=_0xb40a41;let _0x11426e=await P(),_0x318cd0=_0xde175(_0x1af100[_0x2f997d(0x1ad)],_0x11426e,_0x1af100[_0x2f997d(0x31b)]);return F(_0x1af100[_0x2f997d(0x1ad)],_0x1af100[_0x2f997d(0x31b)],_0x318cd0),{'auth':_0x11426e,'backendUrl':_0x318cd0,'client':_0x16e742({'auth':_0x11426e,'backendUrl':_0x318cd0})};}async function Tt(_0x598603){const _0x2f8242=_0xb40a41;let {client:_0x3cc0ca}=await f(_0x598603),[_0x6b6604,_0x2994bd]=await Promise[_0x2f8242(0x2f2)]([_0x3ae784(_0x3cc0ca),_0x48800d(_0x3cc0ca)[_0x2f8242(0x16c)](_0x2355eb=>(process[_0x2f8242(0x24a)]['write'](_0x2f8242(0x1f0)+(_0x2355eb instanceof Error?_0x2355eb[_0x2f8242(0x237)]:String(_0x2355eb))+'\x0a'),{}))]),_0x44fe89=_0x6b6604[_0x2f8242(0x238)](_0x146298=>_0x2994bd[_0x146298['id']]?{..._0x146298,'byoWarning':_0x2994bd[_0x146298['id']]}:_0x146298);l(_0x598603,_0x44fe89,xt);}function xt(_0x4d1fed){const _0x269ae2=_0xb40a41;if(_0x4d1fed['length']===0x0){process[_0x269ae2(0x24a)][_0x269ae2(0x1ab)](_0x269ae2(0x1c4));return;}process[_0x269ae2(0x189)][_0x269ae2(0x1ab)](_0x269ae2(0x1c9)+_0x4d1fed[_0x269ae2(0x205)]+_0x269ae2(0x20b));for(let _0x2c1532 of _0x4d1fed){let _0x5f1646=_0x2c1532['name']&&_0x2c1532[_0x269ae2(0x2a2)]!==_0x2c1532['id']?'\x20('+_0x2c1532['name']+')':'';process['stdout'][_0x269ae2(0x1ab)]('\x20\x20'+_0x2c1532['id']+_0x5f1646+'\x0a'),_0x2c1532[_0x269ae2(0x1da)]&&process[_0x269ae2(0x189)]['write']('\x20\x20\x20\x20'+_0x2c1532[_0x269ae2(0x1da)]+'\x0a'),_0x2c1532[_0x269ae2(0x19e)]&&process[_0x269ae2(0x189)][_0x269ae2(0x1ab)](_0x269ae2(0x2a4)+(_0x2c1532[_0x269ae2(0x2b4)]?'\x20('+_0x2c1532[_0x269ae2(0x2b4)]+')':'')+'\x0a'),_0x2c1532[_0x269ae2(0x30c)]&&process[_0x269ae2(0x189)][_0x269ae2(0x1ab)]('\x20\x20\x20\x20BYO\x20warning:\x20'+_0x2c1532[_0x269ae2(0x30c)]+'\x0a');}process[_0x269ae2(0x189)]['write']('\x0aUse\x20with:\x20delegate-cli\x20--model\x20<id>\x20\x22<prompt>\x22\x0a');}var z=[_0xb40a41(0x22f),_0xb40a41(0x251),_0xb40a41(0x216),_0xb40a41(0x2e7),_0xb40a41(0x29b),_0xb40a41(0x2ba)];async function Dt(_0x2f83e){const _0x27d4e0=_0xb40a41;let [_0x4d39ac='',_0x567835='',..._0x14027d]=_0x2f83e['operands'];if(_0x4d39ac&&!z[_0x27d4e0(0x262)](_0x4d39ac)&&(console[_0x27d4e0(0x190)](_0x27d4e0(0x230)+_0x4d39ac+_0x27d4e0(0x16d)+z[_0x27d4e0(0x174)]('\x20|\x20')+'.'),process[_0x27d4e0(0x2af)](0x2)),_0x2f83e[_0x27d4e0(0x2ac)]!==void 0x0&&_0x4d39ac!==_0x27d4e0(0x29b)&&(console[_0x27d4e0(0x190)](_0x27d4e0(0x291)),process['exit'](0x2)),_0x4d39ac&&_0x4d39ac!==_0x27d4e0(0x22f)){await Ut(_0x2f83e,_0x4d39ac,_0x567835,_0x14027d[_0x27d4e0(0x174)]('\x20')[_0x27d4e0(0x22e)]());return;}_0x2f83e[_0x27d4e0(0x1b5)]['length']>0x1&&(console[_0x27d4e0(0x190)](_0x27d4e0(0x16f)),process[_0x27d4e0(0x2af)](0x2));let {client:_0x30de4c}=await f(_0x2f83e),_0x2717f0=await _0x3d3a3b(_0x30de4c,{'page':_0x2f83e[_0x27d4e0(0x194)],'pageSize':_0x2f83e[_0x27d4e0(0x1fc)],'includeSubAgents':_0x2f83e[_0x27d4e0(0x198)]});l(_0x2f83e,_0x2717f0,Rt);}async function Ut(_0x349066,_0xbd97b6,_0x199ba7,_0x5d1006){const _0x3d6c6a=_0xb40a41;if((_0x349066[_0x3d6c6a(0x194)]!==void 0x0||_0x349066[_0x3d6c6a(0x1fc)]!==void 0x0||_0x349066[_0x3d6c6a(0x198)])&&(console['error'](_0x3d6c6a(0x1c0)),process[_0x3d6c6a(0x2af)](0x2)),_0xbd97b6==='cancel'){await Nt(_0x349066,_0x199ba7,_0x5d1006);return;}if(_0xbd97b6===_0x3d6c6a(0x2ba)){await Ct(_0x349066,_0x199ba7,_0x5d1006);return;}(!_0x199ba7||_0xbd97b6===_0x3d6c6a(0x216)!=!!_0x5d1006)&&(console['error'](_0x3d6c6a(0x308)+_0xbd97b6+_0x3d6c6a(0x23c)+(_0xbd97b6===_0x3d6c6a(0x216)?_0x3d6c6a(0x1fb):'')),process['exit'](0x2));let {client:_0x58d61d}=await f(_0x349066);try{if(_0xbd97b6===_0x3d6c6a(0x251)){let _0x4e7c2f=await _0x3be6a3(_0x58d61d,_0x199ba7);_0x4e7c2f||V(_0x199ba7),l(_0x349066,_0x4e7c2f,_t);}else{if(_0xbd97b6===_0x3d6c6a(0x216)){let _0x3c0822=await _0x44d258(_0x58d61d,_0x199ba7,_0x5d1006);l(_0x349066,_0x3c0822,_0x5e87c5=>{const _0x506d90=_0x3d6c6a;process[_0x506d90(0x189)][_0x506d90(0x1ab)](_0x506d90(0x2c5)+_0x5e87c5['id']+':\x20'+_0x5e87c5[_0x506d90(0x1b9)]+'\x0a');});}else await _0x143ca1(_0x58d61d,_0x199ba7),await _0x2cae6e(_0x199ba7,_0x349066[_0x3d6c6a(0x206)]),l(_0x349066,{'id':_0x199ba7,'deleted':!0x0},_0x23f20b=>{const _0x14caab=_0x3d6c6a;process['stdout']['write'](_0x14caab(0x263)+_0x23f20b['id']+'.\x0a');});}}catch(_0x4303bc){if(!_0x4caca3(_0x4303bc,0x194))throw _0x4303bc;V(_0x199ba7);}}function V(_0xc75db2){const _0x156ca9=_0xb40a41;console[_0x156ca9(0x190)](_0x156ca9(0x2c1)+_0xc75db2+_0x156ca9(0x2c0)),process[_0x156ca9(0x2af)](0x1);}function _t(_0x205f2c){const _0xcb3a73=_0xb40a41;process[_0xcb3a73(0x189)][_0xcb3a73(0x1ab)](_0xcb3a73(0x2e4)+_0x205f2c['id']+'\x0a'),process['stdout'][_0xcb3a73(0x1ab)](_0xcb3a73(0x177)+_0x205f2c[_0xcb3a73(0x1b9)]+'\x0a'),process[_0xcb3a73(0x189)][_0xcb3a73(0x1ab)]('Owner\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x205f2c[_0xcb3a73(0x326)]+'\x0a'),process['stdout'][_0xcb3a73(0x1ab)]('Organization\x20\x20'+_0x205f2c[_0xcb3a73(0x258)]+'\x0a'),_0x205f2c[_0xcb3a73(0x253)]&&process['stdout'][_0xcb3a73(0x1ab)]('Delegation\x20\x20\x20\x20'+_0x205f2c[_0xcb3a73(0x253)]+'\x0a');}async function Nt(_0x15b34d,_0x44b55b,_0xc427fd){const _0x2cf3f4=_0xb40a41;(!_0x44b55b||_0xc427fd||!_0x15b34d[_0x2cf3f4(0x2ac)])&&(console['error']('Usage:\x20delegate-cli\x20sessions\x20cancel\x20<session-id>\x20--turn\x20<turn-id>'),process[_0x2cf3f4(0x2af)](0x2));let {client:_0x3033cc}=await f(_0x15b34d),_0x5c9406=await _0x381fb2(_0x3033cc,_0x44b55b,_0x15b34d[_0x2cf3f4(0x2ac)]);l(_0x15b34d,{'sessionId':_0x44b55b,'turnId':_0x15b34d[_0x2cf3f4(0x2ac)],'cancelled':_0x5c9406},_0x246e26=>{const _0x44c5c1=_0x2cf3f4;_0x246e26[_0x44c5c1(0x2e6)]?process[_0x44c5c1(0x189)][_0x44c5c1(0x1ab)](_0x44c5c1(0x2bc)+_0x246e26[_0x44c5c1(0x2ac)]+_0x44c5c1(0x1df)+_0x246e26[_0x44c5c1(0x23b)]+'.\x0a'):process['stderr'][_0x44c5c1(0x1ab)](_0x44c5c1(0x26e)+_0x246e26['turnId']+'\x20in\x20progress\x20on\x20session\x20'+_0x246e26[_0x44c5c1(0x23b)]+'.\x0a');}),_0x5c9406||(process['exitCode']=0x1);}async function Ct(_0x1d5c14,_0x260f5c,_0x3b9456){const _0x4db2b5=_0xb40a41;(!_0x260f5c||/\s/[_0x4db2b5(0x17b)](_0x3b9456))&&(console[_0x4db2b5(0x190)](_0x4db2b5(0x2a9)),process[_0x4db2b5(0x2af)](0x2));let {client:_0x9ac980}=await f(_0x1d5c14),_0x4cabc5;try{_0x4cabc5=await _0x3c29d7(_0x9ac980,_0x260f5c,{'atMessageId':_0x3b9456||void 0x0});}catch(_0x521fd4){if(!_0x4caca3(_0x521fd4,0x194))throw _0x521fd4;console[_0x4db2b5(0x190)]('Session\x20'+_0x260f5c+_0x4db2b5(0x23e)+(_0x3b9456?_0x4db2b5(0x24b)+_0x3b9456:'')+'.'),process[_0x4db2b5(0x2af)](0x1);}l(_0x1d5c14,_0x4cabc5,_0x2b2496=>{const _0x3f572a=_0x4db2b5;process[_0x3f572a(0x189)]['write']('Forked\x20'+_0x260f5c+_0x3f572a(0x242)+_0x2b2496['id']+'.\x0a'),process['stderr'][_0x3f572a(0x1ab)]('Continue\x20it\x20with:\x20delegate-cli\x20--session\x20'+_0x2b2496['id']+_0x3f572a(0x1a3));});}function Rt({sessions:_0x5a1598,page:_0x17c79a,isLastPage:_0x3b3fd8}){const _0x357a8a=_0xb40a41;if(_0x5a1598[_0x357a8a(0x205)]===0x0)process['stderr']['write'](_0x357a8a(0x27a)+_0x17c79a+'.\x0a');else{process['stdout'][_0x357a8a(0x1ab)]('ID'['padEnd'](0x24)+'\x20\x20'+_0x357a8a(0x29a)['padEnd'](0x13)+_0x357a8a(0x184));for(let _0x19fdb3 of _0x5a1598){let _0x1a71c2=_0x19fdb3['updatedAt'][_0x357a8a(0x315)]('T','\x20')[_0x357a8a(0x244)](0x0,0x13),_0x5de338=_0x19fdb3[_0x357a8a(0x300)]?_0x357a8a(0x2d1)+_0x19fdb3[_0x357a8a(0x300)]+')':'';process[_0x357a8a(0x189)][_0x357a8a(0x1ab)](_0x19fdb3['id'][_0x357a8a(0x25a)](0x24)+'\x20\x20'+_0x1a71c2[_0x357a8a(0x25a)](0x13)+'\x20\x20'+_0x19fdb3[_0x357a8a(0x1b9)]+_0x5de338+'\x0a');}}_0x3b3fd8||process[_0x357a8a(0x24a)][_0x357a8a(0x1ab)](_0x357a8a(0x2d8)+(_0x17c79a+0x1)+'\x0a');}async function Lt(_0x3ee038){const _0x5cfc34=_0xb40a41;let _0x13e095=await P(),_0x432a20=_0xde175(_0x3ee038[_0x5cfc34(0x1ad)],_0x13e095,_0x3ee038[_0x5cfc34(0x31b)]);F(_0x3ee038['env'],_0x3ee038[_0x5cfc34(0x31b)],_0x432a20);let _0x17f543=await _0x4a5d64({'auth':_0x13e095,'backendUrl':_0x432a20,'interop':_0x3ee038['headless']?_0x5cfc34(0x1a6):_0x5cfc34(0x2b2)});l(_0x3ee038,_0x17f543,({checks:_0x4f0b88})=>{const _0x1cf6e4=_0x5cfc34;for(let _0x56fb44 of _0x4f0b88)process[_0x1cf6e4(0x189)][_0x1cf6e4(0x1ab)](Ot(_0x56fb44)+'\x0a');}),_0x17f543['ok']||process[_0x5cfc34(0x2af)](0x1);}function Ot(_0x52f6e5){const _0x3fae07=_0xb40a41;return{'ok':'✓','failed':'✗','skipped':'-'}[_0x52f6e5[_0x3fae07(0x2ee)]]+'\x20'+_0x52f6e5['name'][_0x3fae07(0x25a)](0xa)+_0x52f6e5[_0x3fae07(0x1e2)];}var Pt=['','activity','daily'];async function Ft(_0x3e67d6){const _0x52d30e=_0xb40a41;let _0x1d70af=_0x3e67d6[_0x52d30e(0x1a2)];Pt[_0x52d30e(0x262)](_0x1d70af)||(console['error'](_0x52d30e(0x302)+_0x3e67d6[_0x52d30e(0x1a2)]+'.\x20Use\x20`delegate-cli\x20usage`,\x20`usage\x20activity`\x20or\x20`usage\x20daily`.'),process['exit'](0x2)),_0x1d70af===''&&_0x3e67d6[_0x52d30e(0x267)]!==void 0x0&&(console[_0x52d30e(0x190)]('--days\x20applies\x20to\x20`delegate-cli\x20usage\x20activity|daily`;\x20the\x20summary\x20covers\x20the\x20current\x20month.'),process[_0x52d30e(0x2af)](0x2)),_0x1d70af!==''&&_0x3e67d6[_0x52d30e(0x23b)]!==void 0x0&&(console['error']('--session\x20applies\x20to\x20the\x20`delegate-cli\x20usage`\x20summary\x20only.'),process[_0x52d30e(0x2af)](0x2));let {client:_0x2f3d4e}=await f(_0x3e67d6);if(_0x1d70af==='activity'){l(_0x3e67d6,await _0x2cb091(_0x2f3d4e,{'days':_0x3e67d6[_0x52d30e(0x267)]}),Mt);return;}if(_0x1d70af===_0x52d30e(0x243)){l(_0x3e67d6,await _0x2b55b4(_0x2f3d4e,{'days':_0x3e67d6[_0x52d30e(0x267)]}),Bt);return;}let [_0x409723,_0xfc38ad,_0x54d785]=await Promise[_0x52d30e(0x2f2)]([_0x2bb9e1(_0x2f3d4e,{'sessionId':_0x3e67d6[_0x52d30e(0x23b)]}),_0x5ef3f7(_0x2f3d4e),_0xf10d2c(_0x2f3d4e)]);l(_0x3e67d6,{'licensing':_0x409723,'monthlySpending':_0xfc38ad,'cartographerAllowance':_0x54d785},jt);}function jt(_0xedd670){const _0x3d9fa5=_0xb40a41;let {licensing:_0x581849,monthlySpending:_0x5c088a,cartographerAllowance:_0x17d0a9}=_0xedd670,_0x40344=[_0x581849[_0x3d9fa5(0x1b6)]?'Licensing:\x20\x20\x20\x20'+_0x581849[_0x3d9fa5(0x203)]['toFixed'](0x1)+_0x3d9fa5(0x1e0)+(_0x581849[_0x3d9fa5(0x256)]??0x0)+_0x3d9fa5(0x2b1)+(_0x581849['extra_pool_consumed_pu']>0x0?',\x20'+_0x581849[_0x3d9fa5(0x18f)]+'\x20PU\x20beyond\x20quota':'')+'\x20(resets\x20'+_0x581849['period_end']+')':_0x3d9fa5(0x1f5),_0x3d9fa5(0x19d)+_0x5c088a[_0x3d9fa5(0x305)][_0x3d9fa5(0x2f4)](0x2)+_0x3d9fa5(0x22d)+(_0x5c088a[_0x3d9fa5(0x1b6)]&&_0x5c088a[_0x3d9fa5(0x264)]!==null?_0x3d9fa5(0x204)+_0x5c088a[_0x3d9fa5(0x264)]['toFixed'](0x2)+'\x20cap':'\x20(no\x20cap\x20enforced)'),'Cartographer:\x20'+_0x17d0a9[_0x3d9fa5(0x1c3)]+'\x20('+_0x17d0a9[_0x3d9fa5(0x193)]+')'];_0x581849['session_consumed_pu']!==null&&_0x581849['session_consumed_pu']!==void 0x0&&_0x40344[_0x3d9fa5(0x2c2)](_0x3d9fa5(0x2df)+_0x581849[_0x3d9fa5(0x245)]+_0x3d9fa5(0x1ba)),process[_0x3d9fa5(0x189)][_0x3d9fa5(0x1ab)](_0x40344[_0x3d9fa5(0x174)]('\x0a')+'\x0a');}function Mt(_0x45bc4a){const _0x54321a=_0xb40a41;let _0x333805=[_0x54321a(0x30f)+_0x45bc4a['period_days']+'\x20days:\x20'+_0x45bc4a['total_sessions']+_0x54321a(0x1fa)+_0x45bc4a['active_days']+_0x54321a(0x322),'Cost:\x20\x20\x20$'+_0x45bc4a['total_cost_usd'][_0x54321a(0x2f4)](0x2)+_0x54321a(0x2da)+_0x45bc4a[_0x54321a(0x316)][_0x54321a(0x2f4)](0x2)+_0x54321a(0x2aa)+_0x45bc4a[_0x54321a(0x2ec)]+_0x54321a(0x297),_0x54321a(0x23f)+_0x45bc4a['total_prompt_tokens']+'\x20prompt,\x20'+_0x45bc4a['total_completion_tokens']+_0x54321a(0x284)];for(let [_0x121f91,_0x2f65c7]of Object['entries'](_0x45bc4a[_0x54321a(0x1c7)]))_0x333805['push']('\x20\x20'+_0x121f91+':\x20'+_0x2f65c7+_0x54321a(0x31c));process[_0x54321a(0x189)][_0x54321a(0x1ab)](_0x333805[_0x54321a(0x174)]('\x0a')+'\x0a');}function Bt(_0x4fef49){const _0x20637c=_0xb40a41;if(_0x4fef49['daily_usage']['length']===0x0){process[_0x20637c(0x189)][_0x20637c(0x1ab)]('No\x20usage\x20in\x20the\x20last\x20'+_0x4fef49[_0x20637c(0x17a)]+_0x20637c(0x317));return;}let _0x88fe4a=[_0x20637c(0x280)];for(let _0x43ecf2 of _0x4fef49['daily_usage'])_0x88fe4a[_0x20637c(0x2c2)](_0x43ecf2[_0x20637c(0x1c8)]+'\x20\x20'+String(_0x43ecf2[_0x20637c(0x172)])['padStart'](0xb)+'\x20\x20'+String(_0x43ecf2[_0x20637c(0x321)])[_0x20637c(0x319)](0xd)+'\x20\x20'+String(_0x43ecf2['completion_tokens'])[_0x20637c(0x319)](0x11));process[_0x20637c(0x189)][_0x20637c(0x1ab)](_0x88fe4a[_0x20637c(0x174)]('\x0a')+'\x0a');}async function Ht(_0x2cc063,_0xd98a2){const _0x52ddc4=_0xb40a41;let _0x2336ef=await qt(_0x2cc063[_0x52ddc4(0x1a2)],_0xd98a2);_0x2cc063['model']&&(_0x2336ef['model']=_0x2cc063[_0x52ddc4(0x219)]);let {client:_0x4c3e70}=await f(_0x2cc063);try{_0xd98a2===_0x52ddc4(0x1b7)?l(_0x2cc063,await _0x133ec1(_0x4c3e70,_0x2336ef,void 0x0),Wt):_0xd98a2==='rerank'?l(_0x2cc063,await _0x2157d8(_0x4c3e70,_0x2336ef,void 0x0),Gt):l(_0x2cc063,await _0x40db00(_0x4c3e70,_0x2336ef,void 0x0),Kt);}catch(_0x37a42a){if(!_0x3b5dea(_0x37a42a))throw _0x37a42a;console[_0x52ddc4(0x190)](_0x37a42a[_0x52ddc4(0x237)]),process[_0x52ddc4(0x2af)](0x1);}}async function qt(_0x5882f8,_0x270a3c){const _0x270e21=_0xb40a41;let _0x3cdd3b;try{_0x3cdd3b=_0x5882f8&&_0x5882f8!=='-'?_0x451491[_0x270e21(0x1d1)](_0x554d50[_0x270e21(0x183)](_0x5882f8),_0x270e21(0x239)):await I(_0x5882f8,process[_0x270e21(0x196)]);}catch(_0x9b15a0){console[_0x270e21(0x190)](_0x270a3c+_0x270e21(0x27b)+_0x9b15a0[_0x270e21(0x237)]+').'),process['exit'](0x2);}return _0x3cdd3b||(console[_0x270e21(0x190)](_0x270a3c+_0x270e21(0x170)+_0x270a3c+_0x270e21(0x220)),process[_0x270e21(0x2af)](0x2)),de(_0x3cdd3b,_0x270a3c,_0x270e21(0x295));}function de(_0x3846a4,_0x291c99,_0x1b293a){const _0x4ece88=_0xb40a41;let _0x325b96;try{_0x325b96=JSON[_0x4ece88(0x2dc)](_0x3846a4);}catch(_0x3d142c){console[_0x4ece88(0x190)](_0x291c99+':\x20'+_0x1b293a+_0x4ece88(0x1d2)+_0x3d142c['message']+').'),process['exit'](0x2);}return(typeof _0x325b96!=_0x4ece88(0x2e0)||_0x325b96===null||Array[_0x4ece88(0x223)](_0x325b96))&&(console[_0x4ece88(0x190)](_0x291c99+':\x20'+_0x1b293a+_0x4ece88(0x307)),process[_0x4ece88(0x2af)](0x2)),_0x325b96;}function ue(_0x43304c,_0x86d482){const _0x2b64cf=_0xb40a41;let _0x338fdf;try{_0x338fdf=_0x451491[_0x2b64cf(0x1d1)](_0x554d50[_0x2b64cf(0x183)](_0x43304c),'utf-8');}catch(_0x67a771){console['error'](_0x86d482+_0x2b64cf(0x1c2)+_0x67a771['message']+').'),process[_0x2b64cf(0x2af)](0x2);}return de(_0x338fdf,_0x86d482,_0x2b64cf(0x2ca));}async function Jt(_0x1c1799){const _0x4f4e4d=_0xb40a41;_0x1c1799[_0x4f4e4d(0x1d4)]===void 0x0&&(console[_0x4f4e4d(0x190)](_0x4f4e4d(0x31e)),process[_0x4f4e4d(0x2af)](0x2));let _0x57ecbd=ue(_0x1c1799[_0x4f4e4d(0x1d4)],_0x4f4e4d(0x2bb)),_0x5d18c5=(await I(_0x1c1799[_0x4f4e4d(0x1a2)],process[_0x4f4e4d(0x196)]))[_0x4f4e4d(0x22e)]();_0x5d18c5||(console[_0x4f4e4d(0x190)]('complete\x20needs\x20a\x20prompt:\x20delegate-cli\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22,\x20or\x20-\x20to\x20read\x20stdin.'),process[_0x4f4e4d(0x2af)](0x2));let {client:_0x5d24e9}=await f(_0x1c1799);try{let _0x37efc3=await _0x6f514d(_0x5d24e9,{'prompt':_0x5d18c5,'jsonSchema':_0x57ecbd,'model':_0x1c1799['model']||process.env.MODEL||_0x42b8f9,..._0x1c1799[_0x4f4e4d(0x23b)]!==void 0x0&&{'sessionId':_0x1c1799[_0x4f4e4d(0x23b)]}},void 0x0);l(_0x1c1799,_0x37efc3,_0x65c48b=>{const _0x1b5521=_0x4f4e4d;process[_0x1b5521(0x189)][_0x1b5521(0x1ab)](JSON[_0x1b5521(0x1bd)](_0x65c48b[_0x1b5521(0x1a8)],null,0x2)+'\x0a');});}catch(_0x2c3e72){if(!_0x39c682(_0x2c3e72))throw _0x2c3e72;console[_0x4f4e4d(0x190)](_0x2c3e72[_0x4f4e4d(0x237)]),process[_0x4f4e4d(0x2af)](0x1);}}function j(_0x2675f6){const _0x1a1b2a=_0xb40a41;process['stdout']['write'](_0x1a1b2a(0x260)+_0x2675f6[_0x1a1b2a(0x219)]+'\x20('+_0x2675f6[_0x1a1b2a(0x2e5)]+_0x1a1b2a(0x2f3)+_0x2675f6[_0x1a1b2a(0x2ef)][_0x1a1b2a(0x1e1)]+_0x1a1b2a(0x2cd));}function Wt(_0x9fcd4){const _0x5b0a8f=_0xb40a41;j(_0x9fcd4);for(let _0x5423d2 of Object[_0x5b0a8f(0x24c)](_0x9fcd4['answers'])){let _0x10a1e2=_0x9fcd4[_0x5b0a8f(0x1dc)][_0x5423d2],_0x4216e8=_0x10a1e2[_0x5b0a8f(0x1c6)]==='probability'?_0x5b0a8f(0x1bc)+_0x10a1e2[_0x5b0a8f(0x279)][_0x5b0a8f(0x2f4)](0x2):_0x10a1e2['type']==='choice'?'choice\x20'+_0x10a1e2[_0x5b0a8f(0x18c)]+'\x20(confidence\x20'+_0x10a1e2[_0x5b0a8f(0x2ab)][_0x5b0a8f(0x2f4)](0x2)+')':_0x5b0a8f(0x275)+_0x10a1e2[_0x5b0a8f(0x236)][_0x5b0a8f(0x2f4)](0x2)+'\x20(confidence\x20'+_0x10a1e2[_0x5b0a8f(0x2ab)][_0x5b0a8f(0x2f4)](0x2)+')';process['stdout'][_0x5b0a8f(0x1ab)]('\x20\x20'+_0x5423d2+':\x20'+_0x4216e8+'\x0a');}}function Gt(_0x453e2b){const _0x53c50e=_0xb40a41;j(_0x453e2b),_0x453e2b[_0x53c50e(0x18a)][_0x53c50e(0x187)]((_0x467f09,_0x30e1af)=>{const _0x3388ab=_0x53c50e;process[_0x3388ab(0x189)][_0x3388ab(0x1ab)]('\x20\x20'+(_0x30e1af+0x1)+'.\x20'+_0x467f09['id']+'\x20\x20'+_0x467f09[_0x3388ab(0x236)][_0x3388ab(0x2f4)](0x3)+_0x3388ab(0x252)+_0x467f09['index']+')\x0a');});}function Kt(_0x243d6c){const _0x1d5947=_0xb40a41;j(_0x243d6c),process[_0x1d5947(0x189)][_0x1d5947(0x1ab)](_0x1d5947(0x1e4)+_0x243d6c[_0x1d5947(0x2f5)]+'\x0a');for(let _0x25d560 of _0x243d6c[_0x1d5947(0x18a)])process[_0x1d5947(0x189)]['write']('\x20\x20'+_0x25d560['id']+':\x20'+_0x25d560[_0x1d5947(0x2b6)]+_0x1d5947(0x276)+_0x25d560[_0x1d5947(0x2ab)][_0x1d5947(0x2f4)](0x2)+')\x0a');}async function zt(_0x328883){const _0x2923f8=_0xb40a41;let _0x1a159b=_0x328883[_0x2923f8(0x1a2)][_0x2923f8(0x22e)]();_0x1a159b||(console[_0x2923f8(0x190)](_0x2923f8(0x257)),process['exit'](0x2));let {client:_0x1c6df1}=await f(_0x328883);try{let _0x2b4b19=_0x1a159b==='-'?{'data':await Vt(process[_0x2923f8(0x196)])}:_0x1a159b;l(_0x328883,await _0x39f720(_0x1c6df1,_0x2b4b19,void 0x0),_0x5776b6=>{process['stdout']['write'](_0x5776b6['text']+'\x0a');});}catch(_0x5b77e7){if(_0x486baa(_0x5b77e7)&&(console[_0x2923f8(0x190)](_0x5b77e7[_0x2923f8(0x237)]),process[_0x2923f8(0x2af)](_0x5b77e7[_0x2923f8(0x2ee)]===void 0x0?0x2:0x1)),typeof _0x5b77e7?.[_0x2923f8(0x2cf)]!=_0x2923f8(0x1f2))throw _0x5b77e7;console[_0x2923f8(0x190)]('transcribe:\x20cannot\x20read\x20'+_0x1a159b+'\x20('+_0x5b77e7[_0x2923f8(0x237)]+').'),process['exit'](0x2);}}async function Vt(_0x25b90c){const _0x21c195=_0xb40a41;let _0x420213=[];for await(let _0x3f56e1 of _0x25b90c)_0x420213[_0x21c195(0x2c2)](Buffer['from'](_0x3f56e1));return Buffer[_0x21c195(0x293)](_0x420213);}var Y=[_0xb40a41(0x22f),'pending','show',_0xb40a41(0x2b8),_0xb40a41(0x23a),'complete',_0xb40a41(0x285),'dismiss','cancel','delete'],X={'list':_0xb40a41(0x222),'pending':_0xb40a41(0x310),'show':_0xb40a41(0x2c7),'create':'delegations\x20create\x20--session\x20<id>\x20[--to\x20<email|name>]\x20[--summary\x20<text>]\x20\x22<task>\x22|-','claim':_0xb40a41(0x195),'complete':_0xb40a41(0x26d),'accept':'delegations\x20accept\x20<delegation-id>','dismiss':_0xb40a41(0x294),'cancel':_0xb40a41(0x22b),'delete':_0xb40a41(0x1b4)};async function Yt(_0x1257ba){const _0x2f0255=_0xb40a41;let [_0x459c98='',_0x40a59c='',..._0x451bc8]=_0x1257ba['operands'];Y[_0x2f0255(0x262)](_0x459c98)||(console[_0x2f0255(0x190)]((_0x459c98?'Unknown\x20delegations\x20action:\x20'+_0x459c98+'.\x20':'')+_0x2f0255(0x191)+Y['join'](_0x2f0255(0x2f7))+'.'),process[_0x2f0255(0x2af)](0x2));let _0x22d3d0=_0x459c98;_0x22d3d0!==_0x2f0255(0x2b8)&&(_0x1257ba[_0x2f0255(0x19c)]!==void 0x0||_0x1257ba['contextSummary']!==void 0x0||_0x1257ba[_0x2f0255(0x23b)]!==void 0x0)&&(console[_0x2f0255(0x190)](_0x2f0255(0x1d0)),process[_0x2f0255(0x2af)](0x2));let _0x28b0f9=(_0x22d3d0===_0x2f0255(0x2b8)?_0x1257ba[_0x2f0255(0x1b5)]['slice'](0x1):_0x451bc8)[_0x2f0255(0x174)]('\x20')[_0x2f0255(0x22e)](),_0x18c30f=_0x22d3d0==='create'||_0x22d3d0===_0x2f0255(0x2bb);(_0x22d3d0!=='create'&&!_0x40a59c||(_0x18c30f?!_0x28b0f9:_0x28b0f9)||_0x22d3d0===_0x2f0255(0x2b8)&&!_0x1257ba[_0x2f0255(0x23b)])&&(console[_0x2f0255(0x190)](_0x2f0255(0x306)+X[_0x22d3d0]),process['exit'](0x2));let _0x15e087=_0x18c30f&&_0x28b0f9==='-'?(await I('-',process[_0x2f0255(0x196)]))[_0x2f0255(0x22e)]():_0x28b0f9;_0x18c30f&&!_0x15e087&&(console['error']('Usage:\x20delegate-cli\x20'+X[_0x22d3d0]+'\x20(stdin\x20was\x20empty)'),process[_0x2f0255(0x2af)](0x2));let {client:_0x3ee91e}=await f(_0x1257ba);try{await Xt(_0x1257ba,_0x3ee91e,_0x22d3d0,_0x40a59c,_0x15e087);}catch(_0x40978d){if(!_0x5dec9e(_0x40978d))throw _0x40978d;console[_0x2f0255(0x190)](_0x40978d[_0x2f0255(0x237)]),process[_0x2f0255(0x2af)](0x1);}}async function Xt(_0x505102,_0x601ba,_0x2c0f5b,_0x5264db,_0x4cfc68){const _0x108988=_0xb40a41;switch(_0x2c0f5b){case _0x108988(0x22f):l(_0x505102,await _0x2451ca(_0x601ba,_0x5264db),Qt);return;case _0x108988(0x188):l(_0x505102,await _0x309b07(_0x601ba,_0x5264db),_0x2f4d24=>{const _0x1111bb=_0x108988;_0x2f4d24['delegation']&&process[_0x1111bb(0x189)]['write'](_0x1111bb(0x312)+_0x2f4d24['delegation']['id']+'\x20('+_0x2f4d24[_0x1111bb(0x24d)]['status']+_0x1111bb(0x2be)),_0x2f4d24[_0x1111bb(0x261)]['length']===0x0&&process['stderr'][_0x1111bb(0x1ab)](_0x1111bb(0x2bf));for(let _0x26ba26 of _0x2f4d24['pendingResults'])process[_0x1111bb(0x189)][_0x1111bb(0x1ab)]('\x0a'+_0x26ba26['id']+_0x1111bb(0x28c)+(_0x26ba26['assignedUserEmail']??_0x1111bb(0x1ff))+'\x20\x20'+(_0x26ba26['task']??'')+'\x0a'+(_0x26ba26[_0x1111bb(0x290)]?.['content']??'')+'\x0a');_0x2f4d24[_0x1111bb(0x261)]['length']>0x0&&process['stderr'][_0x1111bb(0x1ab)](_0x1111bb(0x2a5));});return;case _0x108988(0x251):l(_0x505102,await _0x2e1b28(_0x601ba,_0x5264db),Q);return;case _0x108988(0x2b8):{let _0x28463e=await _0x48a70a(_0x601ba,{'sessionId':_0x505102[_0x108988(0x23b)],'task':_0x4cfc68,..._0x505102[_0x108988(0x259)]!==void 0x0&&{'contextSummary':_0x505102[_0x108988(0x259)]},..._0x505102[_0x108988(0x19c)]!==void 0x0&&{'recipient':_0x505102[_0x108988(0x19c)]}});l(_0x505102,_0x28463e,_0x264f78=>{const _0x3bbf96=_0x108988;_0x264f78[_0x3bbf96(0x287)]?process[_0x3bbf96(0x189)][_0x3bbf96(0x1ab)](_0x3bbf96(0x28b)+_0x264f78[_0x3bbf96(0x253)]+_0x3bbf96(0x17f)+_0x264f78[_0x3bbf96(0x287)][_0x3bbf96(0x2dd)]+'\x20<'+_0x264f78[_0x3bbf96(0x287)][_0x3bbf96(0x217)]+_0x3bbf96(0x1cd)):process[_0x3bbf96(0x189)][_0x3bbf96(0x1ab)](_0x3bbf96(0x26c)+_0x264f78['delegationId']+'.\x20Share:\x20'+_0x264f78[_0x3bbf96(0x289)]+'\x0a');});return;}case _0x108988(0x23a):{let _0x22f70b=await _0x2e9f3c(_0x601ba,_0x5264db);l(_0x505102,_0x22f70b,_0x45ff5c=>{const _0x27cdb6=_0x108988;Q(_0x45ff5c),process[_0x27cdb6(0x189)][_0x27cdb6(0x1ab)](_0x27cdb6(0x292)+_0x45ff5c['sessionId']+'\x0a'),process[_0x27cdb6(0x24a)][_0x27cdb6(0x1ab)]('Work\x20on\x20it\x20with:\x20delegate-cli\x20--session\x20'+_0x45ff5c[_0x27cdb6(0x23b)]+_0x27cdb6(0x314)+_0x45ff5c[_0x27cdb6(0x253)]+_0x27cdb6(0x24f));});return;}case _0x108988(0x2bb):{let {alreadyCompleted:_0x11987f}=await _0x1e8e82(_0x601ba,_0x5264db,{'content':_0x4cfc68});l(_0x505102,{'delegationId':_0x5264db,'alreadyCompleted':_0x11987f},_0x21efc9=>{const _0xcbfa83=_0x108988;process['stdout'][_0xcbfa83(0x1ab)]((_0x21efc9['alreadyCompleted']?_0xcbfa83(0x181):_0xcbfa83(0x175))+'\x20delegation\x20'+_0x21efc9[_0xcbfa83(0x253)]+'.\x0a');});return;}case _0x108988(0x285):{let _0x44915f=await _0x53e19e(_0x601ba,_0x5264db);l(_0x505102,{'delegationId':_0x5264db,..._0x44915f},_0x3fba02=>{const _0xd14942=_0x108988;process[_0xd14942(0x189)][_0xd14942(0x1ab)]((_0x3fba02[_0xd14942(0x2f6)]?_0xd14942(0x1e6):_0xd14942(0x1f4))+'\x20delegation\x20'+_0x3fba02[_0xd14942(0x253)]+'.\x0a');});return;}default:{let _0x25d57f={'dismiss':_0x367e88,'cancel':_0x37e0a2,'delete':_0xe450ff}[_0x2c0f5b];await _0x25d57f(_0x601ba,_0x5264db);let _0x109b63={'dismiss':_0x108988(0x1d8),'cancel':_0x108988(0x2e6),'delete':_0x108988(0x1b3)}[_0x2c0f5b];l(_0x505102,{'delegationId':_0x5264db,[_0x109b63]:!0x0},()=>{const _0x5eacdb=_0x108988;process[_0x5eacdb(0x189)]['write'](''+_0x109b63[0x0][_0x5eacdb(0x2b3)]()+_0x109b63[_0x5eacdb(0x244)](0x1)+_0x5eacdb(0x2a1)+_0x5264db+'.\x0a');});}}}function Qt(_0x577620){const _0x3e581c=_0xb40a41;if(_0x577620[_0x3e581c(0x205)]===0x0){process[_0x3e581c(0x24a)][_0x3e581c(0x1ab)]('No\x20delegations.\x0a');return;}process[_0x3e581c(0x189)][_0x3e581c(0x1ab)]('ID'[_0x3e581c(0x25a)](0x24)+'\x20\x20'+'STATUS'[_0x3e581c(0x25a)](0x9)+'\x20\x20'+'ASSIGNEE'[_0x3e581c(0x25a)](0x18)+_0x3e581c(0x24e));for(let _0x1507ee of _0x577620)process[_0x3e581c(0x189)][_0x3e581c(0x1ab)](_0x1507ee['id'][_0x3e581c(0x25a)](0x24)+'\x20\x20'+_0x1507ee['status'][_0x3e581c(0x25a)](0x9)+'\x20\x20'+(_0x1507ee[_0x3e581c(0x247)]??'-')[_0x3e581c(0x25a)](0x18)+'\x20\x20'+(_0x1507ee[_0x3e581c(0x1ee)]??'')+'\x0a');}function Q(_0x57becd){const _0x124818=_0xb40a41;process[_0x124818(0x189)][_0x124818(0x1ab)](_0x124818(0x2e3)+(_0x57becd[_0x124818(0x278)]??'-')+'\x0a'),_0x57becd[_0x124818(0x1a5)]&&process[_0x124818(0x189)][_0x124818(0x1ab)]('Session\x20\x20\x20\x20\x20\x20\x20'+_0x57becd[_0x124818(0x1a5)]+'\x0a'),process[_0x124818(0x189)][_0x124818(0x1ab)](_0x124818(0x224)+(_0x57becd[_0x124818(0x1ee)]??'-')+'\x0a'),_0x57becd[_0x124818(0x259)]&&process[_0x124818(0x189)][_0x124818(0x1ab)]('\x0a'+_0x57becd[_0x124818(0x259)]+'\x0a\x0a');}async function Zt(_0xaa4fd6){const _0x87577=_0xb40a41;_0xaa4fd6[_0x87577(0x1a2)][_0x87577(0x22e)]()||(console[_0x87577(0x190)](_0x87577(0x1f8)),process[_0x87577(0x2af)](0x2));let {client:_0x4d9b38}=await f(_0xaa4fd6),_0x19e35d;try{_0x19e35d=await _0x4a1f58(_0x4d9b38,_0xaa4fd6[_0x87577(0x1a2)]);}catch(_0x48c73b){if(!_0x5dec9e(_0x48c73b))throw _0x48c73b;console['error'](_0x48c73b['message']),process[_0x87577(0x2af)](0x1);}l(_0xaa4fd6,_0x19e35d,_0x332117=>{const _0x507bde=_0x87577;_0x332117[_0x507bde(0x205)]===0x0&&process[_0x507bde(0x24a)][_0x507bde(0x1ab)]('No\x20one\x20matches\x20\x22'+_0xaa4fd6[_0x507bde(0x1a2)]['trim']()+'\x22.\x0a');for(let _0x48937c of _0x332117)process['stdout'][_0x507bde(0x1ab)](_0x48937c['email'][_0x507bde(0x25a)](0x20)+'\x20\x20'+_0x48937c[_0x507bde(0x2dd)]+'\x0a');});}async function en(_0x2fa2e9){const _0xd077e5=_0xb40a41;_0x2fa2e9[_0xd077e5(0x1ad)]===_0xd077e5(0x1c5)&&(console[_0xd077e5(0x190)]('--env\x20localhost\x20has\x20no\x20OAuth\x20flow;\x20pick\x20alpha,\x20staging,\x20or\x20production.'),process[_0xd077e5(0x2af)](0x2));let _0x25520d=$(_0x1819b4()),_0x7e283e=_0x2fa2e9[_0xd077e5(0x215)];if(_0x2fa2e9['env']){let _0x1dec70=_0x2fa2e9[_0xd077e5(0x1ad)];await _0x4f9aef({'env':_0x1dec70,'tenant':_0x2fa2e9[_0xd077e5(0x17c)]??C(_0x25520d,_0x406b69[_0x1dec70]),'skipEnvCheck':_0x7e283e});return;}let _0x539db2=_0x2fa2e9[_0xd077e5(0x1ef)]??ce();if(_0x539db2){await _0x4f9aef({'baseUrl':_0x539db2,'tenant':_0x2fa2e9[_0xd077e5(0x17c)]??C(_0x25520d,_0x539db2),'skipEnvCheck':_0x7e283e});return;}if(_0x25520d?.[_0xd077e5(0x1e7)]){await _0x4f9aef({'baseUrl':_0x25520d[_0xd077e5(0x1e7)],'tenant':_0x2fa2e9['tenant']??_0x25520d[_0xd077e5(0x22c)],'skipEnvCheck':_0x7e283e});return;}console[_0xd077e5(0x190)](_0xd077e5(0x207)),process[_0xd077e5(0x2af)](0x2);}function C(_0x13d311,_0x40cd41){const _0xefea63=_0xb40a41;return _0x13d311?.[_0xefea63(0x1e7)]&&tn(_0x13d311[_0xefea63(0x1e7)],_0x40cd41)?_0x13d311[_0xefea63(0x22c)]:void 0x0;}function _0x13e6(){const _0x408da1=['headless','model_id','page','delegations\x20claim\x20<delegation-id|delegate://delegation/…>','stdin','.\x20Use\x20','includeSubAgents','181296MbqtLm','UiPath\x20Cloud','low','delegateTo','Spending:\x20\x20\x20\x20\x20$','locked','--cartographer','--days\x20applies\x20to\x20`delegate-cli\x20usage\x20activity|daily`\x20only.','--no-memory','prompt','\x20\x22<prompt>\x22\x0a','\x0a🤔\x20','sourceTitle','skip','\x20--turn\x20','structured','Enter\x20sends\x20a\x20message.\x20/exit\x20or\x20EOF\x20exits;\x20Ctrl+C\x20stops\x20and\x20exits.\x0a','onEvent','write','--version','env','accessToken','thinking','--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.','deployment','help','deleted','delegations\x20delete\x20<delegation-id>','operands','limit_enabled','evaluate','a\x20directory\x20path','title','\x20PU','tool_call','probability\x20','stringify','--no-connections','isDesktopFallback','--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`delegate-cli\x20sessions\x20[list]`\x20only.','--env',':\x20cannot\x20read\x20the\x20JSON\x20schema\x20(','mode','No\x20models\x20available\x20for\x20this\x20product/tenant.\x0a','localhost','type','models_breakdown','date','\x0aAvailable\x20models\x20(','Turn:\x20','models','Base\x20URL:\x20\x20\x20\x20\x20','>.\x0a','--backend','--project','--to,\x20--summary\x20and\x20--session\x20apply\x20to\x20`delegate-cli\x20delegations\x20create`\x20only.','readFileSync','\x20is\x20not\x20valid\x20JSON\x20(','then','jsonSchemaPath','a\x20briefing\x20text','--model','isSafeInteger','dismissed','expiresAt','description','end','answers','--output-format\x20','--tenant\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Switch\x20tenants\x20with:\x20delegate-cli\x20tenant\x20<name>','\x20of\x20session\x20','%\x20of\x20','total_tokens','detail','toString','Rubric\x20','\x20(Delegate\x20desktop\x20app\x20fallback)','Already\x20accepted','baseUrl','add','staging','No\x20CLI\x20login\x20to\x20switch:\x20the\x20CLI\x20is\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20','--json-schema\x20applies\x20to\x20prompts\x20and\x20to\x20`delegate-cli\x20complete`\x20only.','Pass\x20either\x20--env\x20(a\x20named\x20cloud)\x20or\x20--url\x20(any\x20other\x20deployment),\x20not\x20both.','2512260otTslg','task','url','Could\x20not\x20check\x20BYO\x20model\x20warnings:\x20','--authority','string','noComputerUse','Accepted','Licensing:\x20\x20\x20\x20no\x20licensing\x20quota\x20applies','interopPath','max','Usage:\x20delegate-cli\x20org-users\x20<name\x20or\x20email\x20prefix>','startsWith','\x20sessions\x20on\x20','\x20<title>','limit','cartographer','\x20applies\x20to\x20prompts\x20and\x20to\x20these\x20commands\x20only:\x20','a\x20colleague','auth','a\x20turn\x20id','Structured\x20output\x20failed:\x20','pct_used','\x20of\x20a\x20$','length','workingDirectory','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','sessions','host','\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).','):\x0a\x0a','✓\x20Done\x0a','--attach\x20applies\x20to\x20prompts\x20only.','\x20min)','cwd','tenantId','--tenant\x20requires\x20a\x20tenant\x20name.','a\x20project\x20id','delegations','from\x201\x20to\x20','skipEnvCheck','rename','email','--task-automation','model','projectId','production','a\x20JSON\x20schema\x20file','Invalid\x20--project:\x20\x22','an\x20effort\x20tier','cleanup','\x20<file.json>,\x20or\x20-\x20to\x20read\x20stdin.','taskAutomation','delegations\x20list\x20<backend-project-id>','isArray','Task\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','runnerUrl','done','whoami','--no-security','an\x20email\x20address\x20or\x20name','Invalid\x20--env:\x20','delegations\x20cancel\x20<delegation-id>','tenantName','\x20this\x20month','trim','list','Unknown\x20sessions\x20action:\x20','No\x20CLI\x20login\x20found\x20—\x20nothing\x20to\x20remove.','round','resume','\x27\x20is\x20empty.','You>\x20','score','message','map','utf-8','claim','sessionId','\x20<id>','attachments','\x20not\x20found,\x20has\x20no\x20messages','Tokens:\x20','asyncIterator','transcribe','\x20into\x20','daily','slice','session_consumed_pu','.aria','assignedUserEmail','1668uzmUtk','unknown\x20slug','stderr',',\x20or\x20holds\x20no\x20message\x20','keys','delegation','\x20\x20TASK\x0a','\x20\x22<answer>\x22\x0a','keepAlive','show','\x20\x20(input\x20#','delegationId','Invalid\x20--effort:\x20','1\x20or\x20more','total_quota_pu','transcribe\x20needs\x20audio:\x20delegate-cli\x20transcribe\x20<file>,\x20or\x20-\x20to\x20read\x20stdin.','organizationId','contextSummary','padEnd','--turn','content','SIGINT','noMemory','structuredError','Model\x20','pendingResults','includes','Deleted\x20session\x20','monthly_limit_usd','--url\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Other\x20commands\x20follow\x20the\x20saved\x20login,\x20or\x20--backend\x20<url>.','restore','days','stream-json','exitCode','--preload-skill','\x20(resume\x20with\x20--session\x20','Created\x20delegation\x20','delegations\x20complete\x20<delegation-id>\x20\x22<answer>\x22|-','No\x20turn\x20','--working-dir','--interop','bundledSkillsPath','initialize','medium','turn_start','score\x20','\x20(confidence\x20','now','sourceUserEmail','probability','No\x20sessions\x20on\x20page\x20',':\x20cannot\x20read\x20the\x20request\x20(','\x0aStopping…\x20(Ctrl+C\x20again\x20to\x20force\x20exit)\x0a','text','--help','bind','Date\x20\x20\x20\x20\x20\x20\x20\x20Token\x20units\x20\x20Prompt\x20tokens\x20\x20Completion\x20tokens','[saved\x20login]\x20Backend\x20URL:\x20','\x0a⚠️\x20\x20Auth\x20expired.\x20Opening\x20browser\x20to\x20re-login…\x0a','from','\x20completion','accept','\x20must\x20be\x20a\x20whole\x20number\x20','assignedUser','--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`delegate-cli\x20sessions`\x20only.','deepLink','--verbose','Delegated\x20','\x20\x20from\x20','file','version','preloadSkills','result','--turn\x20applies\x20to\x20`delegate-cli\x20sessions\x20cancel`\x20only.','Session\x20\x20\x20\x20\x20\x20\x20','concat','delegations\x20dismiss\x20<delegation-id>','the\x20request','effort','\x20token\x20units)','AUTH_TOKEN_FILE\x20\x27','once','UPDATED','cancel','Source:\x20\x20\x20\x20\x20\x20\x20','Token:\x20\x20\x20\x20\x20\x20\x20\x20expired\x20','--page','login','--include-subagents','\x20delegation\x20','name','self-hosted\x20(Automation\x20Suite\x20/\x20Dedicated)','\x20\x20\x20\x20Not\x20available\x20on\x20this\x20plan','\x0aAccept\x20one\x20with:\x20delegate-cli\x20delegations\x20accept\x20<id>\x0a','verify','finish','No\x20CLI\x20login\x20found.\x20Note:\x20the\x20CLI\x20is\x20currently\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20','Usage:\x20delegate-cli\x20sessions\x20fork\x20<id>\x20[<message-id>]','\x20from\x20','confidence','turnId','--output-format','--limit','exit','\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_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','\x20PU\x20used','spawn','toUpperCase','lockReason','Token:\x20\x20\x20\x20\x20\x20\x20\x20expires\x20','verdict','org-users','create','UIPATH_BASE_URL\x20is\x20unusable.\x20','fork','complete','Cancel\x20requested\x20for\x20turn\x20','delegate-cli',').\x0a','No\x20answers\x20awaiting\x20acceptance.\x0a','\x20not\x20found.','Session\x20','push','5711224YYYHFL','off','Renamed\x20','/exit','delegations\x20show\x20<delegation-id|delegate://delegation/…>','No\x20structured\x20output:\x20the\x20turn\x20failed\x20(','Switch\x20with:\x20delegate-cli\x20tenant\x20<name>\x0a','the\x20JSON\x20schema','subcommand',')\x20—\x20saved\x20to\x20','\x20tokens\x0a','toISOString','code','a\x20format\x20(','\x20\x20(sub-agent\x20of\x20','data','rerank','--headless','\x20(current)','quiet','noConnections','More:\x20delegate-cli\x20sessions\x20--page\x20','getTurnUsageHistory','\x20(estimated\x20$',',\x20whose\x20tenant\x20is\x20chosen\x20in\x20the\x20app.\x20Run\x20`delegate-cli\x20login\x20--env\x20<env>`\x20for\x20a\x20CLI\x20login\x20of\x20your\x20own.','parse','displayName','--cleanup','Session:\x20\x20\x20\x20\x20\x20','object','10605irDHKQ','close','From\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','ID\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','model_version','cancelled','delete','check','orgLogicalName','--skip-env-check','Session:\x20','total_token_units','Tenant:\x20','status','usage','2211248hKrmpG','pause','all','),\x20','toFixed','rubric_version','alreadyAccepted','\x20|\x20','session_start','--skills-path','log','--keep-alive','--tenant','existsSync','--session','unknown','parentSessionId','print','Unknown\x20usage\x20view:\x20','workerId','getSessionId','monthly_spend_usd','Usage:\x20delegate-cli\x20','\x20must\x20be\x20a\x20JSON\x20object.','Usage:\x20delegate-cli\x20sessions\x20','Organization:\x20','--quiet','isError','byoWarning','Invalid\x20--output-format:\x20','verbose','Last\x20','delegations\x20pending\x20<session-id>','lastType','Claimed\x20from\x20delegation\x20','--task-automation\x20applies\x20to\x20prompts\x20only.','\x20\x22<prompt>\x22\x0aAnswer\x20with:\x20delegate-cli\x20delegations\x20complete\x20','replace','estimated_cost_usd','\x20days.\x0a','a\x20number','padStart','\x20requires\x20','backendUrl','\x20token\x20units','Bearer\x20','complete\x20needs\x20--json-schema\x20<file>:\x20delegate-cli\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22.','--days','argv','prompt_tokens','\x20active\x20days','hide','--no-computer-use','8919085fIpDpl','userId','floor','catch','.\x20Use:\x20','logout','Usage:\x20delegate-cli\x20sessions\x20[list]\x20[--page\x20N]\x20[--limit\x20N]\x20[--include-subagents]','\x20needs\x20a\x20JSON\x20request:\x20delegate-cli\x20','Tenant\x20not\x20switched:\x20could\x20not\x20write\x20','token_units','--to','join','Answered','noSecurity','Title\x20\x20\x20\x20\x20\x20\x20\x20\x20','--json-schema','rejection','period_days','test','tenant','\x20—\x20sign\x20out\x20in\x20the\x20Delegate\x20app\x20to\x20clear\x20that.','xhigh','\x20to\x20','3954354gUxtjQ','Already\x20answered','Removed\x20','resolve','\x20\x20TITLE\x0a','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.','isTTY','forEach','pending','stdout','results','stack','choice','outputFormat','tool','extra_pool_consumed_pu','error','Use:\x20delegate-cli\x20delegations\x20'];_0x13e6=function(){return _0x408da1;};return _0x13e6();}function tn(_0x5658bd,_0x1ad6c6){try{return new URL(_0x5658bd)['origin']===new URL(_0x1ad6c6)['origin'];}catch{return!0x1;}}async function nn(_0x22e6f3){const _0x50e290=_0xb40a41;O()&&(console[_0x50e290(0x190)]('Auth\x20comes\x20from\x20AUTH_TOKEN/TENANT_ID/ORG_ID\x20—\x20set\x20TENANT_ID\x20and\x20TENANT_SLUG\x20to\x20change\x20the\x20tenant.'),process[_0x50e290(0x2af)](0x2));let _0xc8e36a=await _0x42aa64();if(_0xc8e36a||(console['error'](on()),process['exit'](0x2)),_0x22e6f3['trim']()){let _0x3b6af0=await _0x302989(_0xc8e36a,_0x22e6f3);_0x1815e2(_0x3b6af0)||(console[_0x50e290(0x190)](_0x50e290(0x171)+_0x1819b4()+';\x20the\x20saved\x20login\x20still\x20uses\x20'+_0xc8e36a[_0x50e290(0x22c)]+'.'),process['exit'](0x1)),console['log'](_0x50e290(0x2ed)+_0x3b6af0[_0x50e290(0x22c)]+'\x20('+_0x3b6af0['tenantId']+_0x50e290(0x2cc)+_0x1819b4());return;}sn(await _0x487abe(_0xc8e36a),_0xc8e36a);}function on(){const _0x4128fc=_0xb40a41;if(_0x451491[_0x4128fc(0x2fd)](_0x1819b4()))return'The\x20saved\x20CLI\x20login\x20could\x20not\x20be\x20refreshed.\x20Run\x20`delegate-cli\x20login`\x20again.';let _0x10c181=L();return $(_0x10c181)?_0x4128fc(0x1ea)+_0x10c181+_0x4128fc(0x2db):'No\x20CLI\x20login\x20found.\x20Run\x20`delegate-cli\x20login\x20--env\x20<alpha|staging|production>`\x20first.';}function sn(_0x53891c,_0x1b9b99){const _0x19e10e=_0xb40a41;let _0x1d0f5a=_0x53891c[_0x19e10e(0x238)](_0x2cf47a=>_0x2cf47a['id']===_0x1b9b99[_0x19e10e(0x210)]?'*\x20'+_0x2cf47a['name']+_0x19e10e(0x2d5):'\x20\x20'+_0x2cf47a[_0x19e10e(0x2a2)]);process[_0x19e10e(0x189)][_0x19e10e(0x1ab)]('Tenants\x20of\x20'+(_0x1b9b99[_0x19e10e(0x2e9)]??_0x1b9b99[_0x19e10e(0x258)])+':\x0a'+_0x1d0f5a['join']('\x0a')+'\x0a'),_0x53891c[_0x19e10e(0x205)]>0x1&&process['stdout']['write'](_0x19e10e(0x2c9));}function rn(_0x48dcb8){const _0x4bce92=_0xb40a41;return _0x48dcb8?.['response']?.[_0x4bce92(0x2ee)]===0x191||/401/[_0x4bce92(0x17b)](String(_0x48dcb8?.[_0x4bce92(0x237)]??''));}var d={'lastType':null,'quiet':!0x1},an=_0x3c5ecd=>{const _0x5ed1db=_0xb40a41;switch(_0x3c5ecd[_0x5ed1db(0x1c6)]){case _0x5ed1db(0x2f8):_0x3c5ecd[_0x5ed1db(0x23b)]&&_0x3c5ecd[_0x5ed1db(0x23b)]!==d[_0x5ed1db(0x23b)]&&(process[_0x5ed1db(0x24a)][_0x5ed1db(0x1ab)](_0x5ed1db(0x2eb)+_0x3c5ecd[_0x5ed1db(0x23b)]+_0x5ed1db(0x26b)+_0x3c5ecd[_0x5ed1db(0x23b)]+')\x0a'),d[_0x5ed1db(0x23b)]=_0x3c5ecd[_0x5ed1db(0x23b)]);break;case _0x5ed1db(0x274):_0x3c5ecd['turnId']&&_0x3c5ecd[_0x5ed1db(0x2ac)]!==d[_0x5ed1db(0x2ac)]&&(d['lastType']!==null&&process[_0x5ed1db(0x24a)][_0x5ed1db(0x1ab)]('\x0a'),process[_0x5ed1db(0x24a)][_0x5ed1db(0x1ab)](_0x5ed1db(0x1ca)+_0x3c5ecd[_0x5ed1db(0x2ac)]+'\x20(cancel\x20with:\x20delegate-cli\x20sessions\x20cancel\x20'+_0x3c5ecd['sessionId']+_0x5ed1db(0x1a7)+_0x3c5ecd['turnId']+')\x0a'),d[_0x5ed1db(0x2ac)]=_0x3c5ecd[_0x5ed1db(0x2ac)],d[_0x5ed1db(0x311)]=_0x5ed1db(0x274));break;case _0x5ed1db(0x1af):_0x3c5ecd['content']&&!d[_0x5ed1db(0x2d6)]&&(d[_0x5ed1db(0x311)]!==_0x5ed1db(0x1af)&&process[_0x5ed1db(0x24a)]['write'](_0x5ed1db(0x1a4)),process[_0x5ed1db(0x24a)][_0x5ed1db(0x1ab)](_0x3c5ecd[_0x5ed1db(0x25c)]),d[_0x5ed1db(0x311)]='thinking');break;case _0x5ed1db(0x1bb):d[_0x5ed1db(0x311)]!==null&&process[_0x5ed1db(0x24a)]['write']('\x0a'),process['stderr'][_0x5ed1db(0x1ab)]('🔧\x20'+(_0x3c5ecd['toolName']??_0x5ed1db(0x18e))+'\x0a'),d['lastType']=_0x5ed1db(0x1bb);break;case _0x5ed1db(0x237):_0x3c5ecd[_0x5ed1db(0x25c)]&&(d[_0x5ed1db(0x311)]!==_0x5ed1db(0x237)&&d[_0x5ed1db(0x311)]!==null&&process[_0x5ed1db(0x189)]['write']('\x0a'),process[_0x5ed1db(0x189)]['write'](_0x3c5ecd['content']),d[_0x5ed1db(0x311)]=_0x5ed1db(0x237));break;case _0x5ed1db(0x190):d[_0x5ed1db(0x311)]!==null&&process[_0x5ed1db(0x24a)]['write']('\x0a'),process['stderr'][_0x5ed1db(0x1ab)]('✗\x20'+(_0x3c5ecd[_0x5ed1db(0x190)]??_0x5ed1db(0x190))+'\x0a'),d[_0x5ed1db(0x311)]=_0x5ed1db(0x190);break;case _0x5ed1db(0x226):(d['lastType']===_0x5ed1db(0x237)||d[_0x5ed1db(0x311)]==='thinking')&&process[_0x5ed1db(0x189)]['write']('\x0a'),process[_0x5ed1db(0x24a)][_0x5ed1db(0x1ab)](_0x5ed1db(0x20c)),d[_0x5ed1db(0x311)]=_0x5ed1db(0x226);break;}};function Z(_0x50b0a5,_0x24e69b,_0x1a907b){const _0x4feb2b=_0xb40a41;let _0x2a406e=_0x50b0a5[_0x4feb2b(0x219)]||process.env.MODEL;return{'backendUrl':_0x1a907b,'auth':_0x24e69b,'enableComputerUse':!_0x50b0a5[_0x4feb2b(0x192)]&&!_0x50b0a5['noComputerUse'],'autoSpawnInterop':!_0x50b0a5[_0x4feb2b(0x192)],'enableConnections':!_0x50b0a5[_0x4feb2b(0x2d7)],'enableSecurity':!_0x50b0a5[_0x4feb2b(0x176)],'keepInteropAlive':_0x50b0a5[_0x4feb2b(0x250)],..._0x50b0a5[_0x4feb2b(0x25e)]?{'enableMemory':!0x1}:{},..._0x50b0a5[_0x4feb2b(0x221)]?{'enableTaskAutomation':!0x0}:{},..._0x50b0a5[_0x4feb2b(0x28f)][_0x4feb2b(0x205)]>0x0?{'preloadSkills':_0x50b0a5[_0x4feb2b(0x28f)]}:{},..._0x2a406e?{'model':_0x2a406e}:{},..._0x50b0a5['projectId']?{'projectId':_0x50b0a5[_0x4feb2b(0x21a)]}:{},..._0x50b0a5['workingDirectory']?{'workingDirectory':_0x50b0a5[_0x4feb2b(0x206)]}:{},..._0x50b0a5['bundledSkillsPath']?{'bundledSkillsPath':_0x50b0a5[_0x4feb2b(0x271)]}:{},..._0x50b0a5[_0x4feb2b(0x296)]?{'effort':_0x50b0a5[_0x4feb2b(0x296)]}:{},..._0x50b0a5[_0x4feb2b(0x23b)]?{'sessionId':_0x50b0a5[_0x4feb2b(0x23b)]}:{},..._0x50b0a5['verbose']?{'verbose':!0x0}:{}};}async function ln(_0x1abe40){const _0x1113a8=_0xb40a41;let _0x4680d5=_0x1abe40['outputFormat']!==_0x1113a8(0x27d),_0xaa55d5=_0x1abe40[_0x1113a8(0x1d4)]===void 0x0?null:ue(_0x1abe40[_0x1113a8(0x1d4)],_0x1113a8(0x2bd)),_0x3d8767=!_0x4680d5&&!_0xaa55d5&&!_0x1abe40['print']&&_0x1abe40[_0x1113a8(0x1a2)]!=='-'&&!!process[_0x1113a8(0x196)][_0x1113a8(0x186)]&&!!process[_0x1113a8(0x189)][_0x1113a8(0x186)],_0x1fca31=_0x3d8767?_0x1abe40[_0x1113a8(0x1a2)][_0x1113a8(0x22e)]():await I(_0x1abe40[_0x1113a8(0x1a2)],process['stdin']);if(!_0x3d8767&&!_0x1fca31&&(console[_0x1113a8(0x190)]('Missing\x20prompt.\x20Pass\x20it\x20as\x20an\x20argument,\x20pipe\x20it\x20via\x20stdin,\x20or\x20run\x20`delegate-cli\x20--help`.'),process[_0x1113a8(0x2af)](0x2)),!_0x4680d5){await ee(_0x1abe40,_0x1fca31,_0x3d8767,null,_0xaa55d5);return;}let _0x1cfd4e=!0x1,_0x53f9b1=_0x51f575=>{const _0x5052fb=_0x1113a8;_0x1cfd4e=!0x0,S(_0x4a0190(_0x51f575)),(_0x51f575[_0x5052fb(0x30b)]||_0x51f575[_0x5052fb(0x25f)])&&(process['exitCode']=0x1);},_0x1b4120=Date['now']();try{await ee(_0x1abe40,_0x1fca31,!0x1,_0x53f9b1,_0xaa55d5);}catch(_0x4f2284){if(_0x1cfd4e)throw _0x4f2284;process['stderr'][_0x1113a8(0x1ab)]((_0x4f2284 instanceof Error?_0x4f2284['stack']??_0x4f2284[_0x1113a8(0x237)]:String(_0x4f2284))+'\x0a'),_0x53f9b1(new _0x4aabfc(_0x1b4120)[_0x1113a8(0x2a7)]({'endedAtMs':Date[_0x1113a8(0x277)](),'usage':[],'error':_0x4f2284}));}}async function ee(_0xda5430,_0x8c3f97,_0x3b0f29,_0x253057,_0x5f44f4){const _0x4f613f=_0xb40a41;d={'lastType':null,'quiet':_0xda5430[_0x4f613f(0x2d6)]};let _0x4d6739=new Set(),_0x20ebb9=_0x2a0f60=>{const _0x492630=_0x4f613f;(!_0x253057||_0x2a0f60[_0x492630(0x1c6)]===_0x492630(0x2f8)||_0x2a0f60[_0x492630(0x1c6)]===_0x492630(0x274))&&an(_0x2a0f60);for(let _0xdeb23c of _0x4d6739)_0xdeb23c(_0x2a0f60);},_0x55fc53=await P(),_0x324d02=new _0x2029e7();_0x324d02[_0x4f613f(0x1aa)](_0x20ebb9);let _0x54f78f=_0xde175(_0xda5430[_0x4f613f(0x1ad)],_0x55fc53,_0xda5430[_0x4f613f(0x31b)]);F(_0xda5430[_0x4f613f(0x1ad)],_0xda5430[_0x4f613f(0x31b)],_0x54f78f);let _0x50894c=Z(_0xda5430,_0x55fc53,_0x54f78f),_0x313da7=!0x1,_0x265075=!0x1,_0x444b50,_0x3e44b7=()=>_0x444b50??=_0x324d02['destroy'](),_0x1995c2=()=>{const _0x159583=_0x4f613f;_0x265075&&process[_0x159583(0x2af)](0x82),_0x265075=!0x0,process[_0x159583(0x24a)][_0x159583(0x1ab)](_0x159583(0x27c)),_0x313da7&&_0x324d02[_0x159583(0x29b)]()[_0x159583(0x16c)](_0x4f13ed=>console[_0x159583(0x190)](_0x4f13ed))[_0x159583(0x1d3)](_0x3e44b7)[_0x159583(0x1d3)](()=>process['exit'](0x82),_0x7891ad=>{const _0x2f11c6=_0x159583;console[_0x2f11c6(0x190)](_0x7891ad),process[_0x2f11c6(0x2af)](0x82);});};process['on'](_0x4f613f(0x25d),_0x1995c2);let _0x4b4a89=_0xda5430[_0x4f613f(0x23d)],_0x3cf73e=async _0x235c2d=>{const _0x34e40c=_0x4f613f;let _0x101701=_0x4b4a89;_0x4b4a89=[];let _0x4b9836=()=>_0x324d02['sendMessage'](_0x235c2d,{'attachments':_0x101701});try{return await _0x4b9836();}catch(_0x2d456c){if(_0x265075||!rn(_0x2d456c)||!process[_0x34e40c(0x196)][_0x34e40c(0x186)]||_0xda5430[_0x34e40c(0x1ad)]===_0x34e40c(0x1c5)||!(_0xda5430[_0x34e40c(0x1ad)]||_0x55fc53[_0x34e40c(0x1e7)]))throw _0x2d456c;process[_0x34e40c(0x24a)][_0x34e40c(0x1ab)](_0x34e40c(0x282));let _0x5608dd=_0x324d02[_0x34e40c(0x304)]()??_0xda5430['sessionId'],_0x2269fa=await _0x4f9aef(_0xda5430[_0x34e40c(0x1ad)]?{'env':_0xda5430[_0x34e40c(0x1ad)],'tenant':C(_0x55fc53,_0x406b69[_0xda5430[_0x34e40c(0x1ad)]]),'skipEnvCheck':!0x0}:{'baseUrl':_0x55fc53[_0x34e40c(0x1e7)],'tenant':_0x55fc53[_0x34e40c(0x22c)],'skipEnvCheck':!0x0}),_0xcab740={'text':'','failed':!0x1,'sessionId':_0x5608dd};return _0x265075||(_0x313da7=!0x1,await _0x3e44b7(),_0x265075)?_0xcab740:(_0x324d02=new _0x2029e7(),_0x444b50=void 0x0,_0x324d02[_0x34e40c(0x1aa)](_0x20ebb9),_0x55fc53=_0x2269fa,await _0x324d02[_0x34e40c(0x272)]({...Z(_0xda5430,_0x55fc53,_0x54f78f),..._0x5608dd?{'sessionId':_0x5608dd}:{}}),_0x313da7=!0x0,_0x265075?_0xcab740:_0x4b9836());}};try{if(await _0x324d02[_0x4f613f(0x272)](_0x50894c),_0x313da7=!0x0,_0x265075)return;if(_0x3b0f29)await un({'prompt':_0x8c3f97,'sendMessage':_0x3cf73e,'onSigint':_0x1995c2});else{if(_0x253057||_0x5f44f4){let _0x11ba4f=_0xda5430[_0x4f613f(0x18d)]===_0x4f613f(0x268)?_0x2f4dbd=>S(_0x95f508(_0x2f4dbd)):()=>{},_0x5ae6be=await _0x1ce602({'onEvent':_0x4721b4=>(_0x4d6739[_0x4f613f(0x1e8)](_0x4721b4),()=>{_0x4d6739['delete'](_0x4721b4);}),'sendMessage':_0x515121=>_0x3cf73e(_0x515121),'getSessionId':()=>_0x324d02[_0x4f613f(0x304)](),'getTurnUsageHistory':_0x52183b=>_0x324d02[_0x4f613f(0x2d9)](_0x52183b),'complete':_0xe1115a=>_0x324d02[_0x4f613f(0x2bb)](_0xe1115a)},_0x8c3f97,void 0x0,_0x11ba4f,_0x5f44f4?{'outputSchema':_0x5f44f4}:void 0x0);_0x253057?_0x253057(_0x5ae6be):cn(_0x5ae6be);}else await _0x3cf73e(_0x8c3f97);}}catch(_0x238b3d){if(!_0x265075)throw _0x238b3d;}finally{try{await _0x3e44b7();}finally{process[_0x4f613f(0x2c4)](_0x4f613f(0x25d),_0x1995c2),_0x265075&&(process[_0x4f613f(0x269)]=0x82);}}}function cn(_0x4ee3d8){const _0x27b1f5=_0xb40a41;_0x4ee3d8[_0x27b1f5(0x25f)]?(console['error'](_0x27b1f5(0x202)+_0x4ee3d8[_0x27b1f5(0x25f)]['message']),process[_0x27b1f5(0x269)]=0x1):_0x4ee3d8[_0x27b1f5(0x30b)]?(console[_0x27b1f5(0x190)](_0x27b1f5(0x2c8)+_0x4ee3d8[_0x27b1f5(0x190)]+').'),process['exitCode']=0x1):process[_0x27b1f5(0x189)]['write'](JSON['stringify'](_0x4ee3d8[_0x27b1f5(0x1a8)],null,0x2)+'\x0a');}function dn(_0x2fb336,_0x12f08a){const _0x40ec4e=_0xb40a41;let _0x35b468=process['stdout'][_0x40ec4e(0x1ab)]['bind'](process['stdout']),_0x2f4eef=!0x1;return process['stdout'][_0x40ec4e(0x1ab)]=(..._0x41cd1e)=>{const _0x7339cf=_0x40ec4e;if(!_0x2f4eef)return _0x35b468(..._0x41cd1e);_0x3da38a(_0x12f08a,0x0),_0x3ed614(_0x12f08a,0x0);let _0x3de6be=_0x35b468(..._0x41cd1e);return _0x2fb336[_0x7339cf(0x1a2)](!0x0),_0x3de6be;},{'show':()=>{const _0xed3d2c=_0x40ec4e;_0x2f4eef=!0x0,_0x2fb336[_0xed3d2c(0x1a2)]();},'hide':()=>{_0x2f4eef=!0x1;},'restore':()=>{const _0x1c4ff0=_0x40ec4e;_0x2f4eef=!0x1,process[_0x1c4ff0(0x189)][_0x1c4ff0(0x1ab)]=_0x35b468;}};}async function un({prompt:_0x5bea30,sendMessage:_0x330626,onSigint:_0x4939d9}){const _0x2960e9=_0xb40a41;let _0x1a229d=_0x239972({'input':process[_0x2960e9(0x196)],'output':process[_0x2960e9(0x24a)],'terminal':!0x0,'prompt':_0x2960e9(0x235)}),_0x105d6d=dn(_0x1a229d,process[_0x2960e9(0x24a)]),_0x260b2b=_0x1a229d[Symbol[_0x2960e9(0x240)]](),_0x3cf4a9=!0x1;_0x1a229d[_0x2960e9(0x299)]('close',()=>{const _0x564fa0=_0x2960e9;_0x3cf4a9=!0x0,_0x105d6d[_0x564fa0(0x323)]();});let _0x3241ca=!0x1,_0x56dd12=()=>{const _0x37310c=_0x2960e9;_0x3241ca=!0x0,_0x1a229d[_0x37310c(0x2e2)](),_0x4939d9();};_0x1a229d['on'](_0x2960e9(0x25d),_0x56dd12),process[_0x2960e9(0x24a)][_0x2960e9(0x1ab)](_0x2960e9(0x1a9));try{if(_0x5bea30&&await _0x330626(_0x5bea30),_0x3241ca)return;_0x3cf4a9||_0x105d6d[_0x2960e9(0x251)]();for await(let _0x37df3f of _0x260b2b){if(_0x105d6d[_0x2960e9(0x323)](),_0x3241ca)break;let _0x40c9b7=_0x37df3f[_0x2960e9(0x22e)]();if(_0x40c9b7===_0x2960e9(0x2c6))break;_0x40c9b7&&await _0x330626(_0x40c9b7),_0x3cf4a9||_0x105d6d[_0x2960e9(0x251)]();}}finally{_0x105d6d[_0x2960e9(0x266)](),_0x1a229d[_0x2960e9(0x2c4)](_0x2960e9(0x25d),_0x56dd12),_0x1a229d[_0x2960e9(0x2e2)]();}}async function pn(){const _0x285b90=_0xb40a41;let _0x45241a=ht(process[_0x285b90(0x320)][_0x285b90(0x244)](0x2));if(_0x45241a['outputFormat']===_0x285b90(0x27d)){await te(_0x45241a);return;}let _0x2a2318=gt();try{await te(_0x45241a);}finally{_0x2a2318();}}async function te(_0x253f56){const _0x248ada=_0xb40a41;if(_0x253f56[_0x248ada(0x1b2)]){wt();return;}if(_0x253f56['version']){console[_0x248ada(0x2fa)](yt());return;}if(_0x253f56[_0x248ada(0x2cb)]===_0x248ada(0x29f)){await en(_0x253f56);return;}if(_0x253f56[_0x248ada(0x2cb)]===_0x248ada(0x17c)){await nn(_0x253f56[_0x248ada(0x1a2)]);return;}if(_0x253f56[_0x248ada(0x2cb)]===_0x248ada(0x16e)){await vt();return;}if(_0x253f56['subcommand']===_0x248ada(0x227)){await At(_0x253f56);return;}if(_0x253f56[_0x248ada(0x2cb)]===_0x248ada(0x1cb)){await Tt(_0x253f56);return;}if(_0x253f56[_0x248ada(0x2cb)]===_0x248ada(0x2e8)){await Lt(_0x253f56);return;}if(_0x253f56['subcommand']==='sessions'){await Dt(_0x253f56);return;}if(_0x253f56['subcommand']===_0x248ada(0x2ef)){await Ft(_0x253f56);return;}if(_0x253f56['subcommand']===_0x248ada(0x1b7)||_0x253f56['subcommand']==='rerank'||_0x253f56['subcommand']===_0x248ada(0x2a6)){await Ht(_0x253f56,_0x253f56['subcommand']);return;}if(_0x253f56[_0x248ada(0x2cb)]===_0x248ada(0x2bb)){await Jt(_0x253f56);return;}if(_0x253f56[_0x248ada(0x2cb)]===_0x248ada(0x241)){await zt(_0x253f56);return;}if(_0x253f56[_0x248ada(0x2cb)]===_0x248ada(0x213)){await Yt(_0x253f56);return;}if(_0x253f56[_0x248ada(0x2cb)]===_0x248ada(0x2b7)){await Zt(_0x253f56);return;}if(_0x253f56[_0x248ada(0x2cb)]===_0x248ada(0x209)){await _0x3b13cd(_0x253f56['prompt'],{'runnerUrl':_0x253f56[_0x248ada(0x225)],'backendUrl':_0x253f56[_0x248ada(0x31b)],'interopPath':_0x253f56[_0x248ada(0x1f6)],'workerId':_0x253f56[_0x248ada(0x303)]});return;}if(_0x253f56[_0x248ada(0x21f)]){await $t();return;}await ln(_0x253f56);}var mn=process.env.NODE_ENV===_0xb40a41(0x17b)||!!process.env.JEST_WORKER_ID;mn||pn()['catch'](_0x3c8761=>{const _0x538c40=_0xb40a41;console[_0x538c40(0x190)](_0x3c8761[_0x538c40(0x18b)]||_0x3c8761[_0x538c40(0x237)]||_0x3c8761),process[_0x538c40(0x2af)](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};
|
|
2
|
+
const _0x2e9e2a=_0xced2;(function(_0x48cec9,_0x59c0dc){const _0xf70940=_0xced2,_0x4c89ea=_0x48cec9();while(!![]){try{const _0xe4d9dd=parseInt(_0xf70940(0x2ca))/0x1*(parseInt(_0xf70940(0x19b))/0x2)+parseInt(_0xf70940(0x275))/0x3+parseInt(_0xf70940(0x26e))/0x4+-parseInt(_0xf70940(0x1f2))/0x5*(-parseInt(_0xf70940(0x30f))/0x6)+-parseInt(_0xf70940(0x2f3))/0x7*(-parseInt(_0xf70940(0x1ca))/0x8)+-parseInt(_0xf70940(0x1fa))/0x9+-parseInt(_0xf70940(0x19d))/0xa;if(_0xe4d9dd===_0x59c0dc)break;else _0x4c89ea['push'](_0x4c89ea['shift']());}catch(_0x4b27f4){_0x4c89ea['push'](_0x4c89ea['shift']());}}}(_0x3c87,0x2df87));const __dirname=import.meta.dirname;import _0x59b7ea from'fs';function _0x3c87(){const _0x1f5d4b=['show','delegations\x20dismiss\x20<delegation-id>','delete','\x20into\x20','\x27\x20is\x20empty.','slice','setPrompt','tenantName','21Eyhrtz','abort','result','No\x20answers\x20awaiting\x20acceptance.\x0a','\x20sessions\x20on\x20','log','once','Already\x20answered','toISOString','parentSessionId','--effort','Auth\x20comes\x20from\x20AUTH_TOKEN/TENANT_ID/ORG_ID\x20—\x20set\x20TENANT_ID\x20and\x20TENANT_SLUG\x20to\x20change\x20the\x20tenant.',':\x20bucket\x20number\x20(Enter\x20to\x20leave\x20out):\x20','check','date','\x20(type\x20your\x20own)','--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`delegate-cli\x20sessions\x20[list]`\x20only.','--working-dir','\x20--turn\x20','map','questions','--days\x20applies\x20to\x20`delegate-cli\x20usage\x20activity|daily`;\x20the\x20summary\x20covers\x20the\x20current\x20month.','a\x20session\x20id','Invalid\x20--effort:\x20',',\x20got\x20',';\x20the\x20saved\x20login\x20still\x20uses\x20','mode','transcribe','88962heFnVO','\x20\x20\x20\x20','\x20not\x20found.','--url','.\x20Share:\x20','Deployment:\x20\x20\x20','AUTH_TOKEN_FILE\x20\x27','>.\x0a','intro','cancelled','Licensing:\x20\x20\x20\x20no\x20licensing\x20quota\x20applies','options','lastType','limit','unknown','--cartographer','--to','exitCode','contextSummary','UiPath\x20Cloud','startsWith','Claimed\x20from\x20delegation\x20','file','\x20active\x20days','limit_enabled','join','tenant','Licensing:\x20\x20\x20\x20','[saved\x20login]\x20Backend\x20URL:\x20','session_consumed_pu','resolve','\x20requires\x20','Could\x20not\x20check\x20BYO\x20model\x20warnings:\x20','task','cartographer','Session\x20\x20\x20\x20\x20\x20\x20','noComputerUse','Unknown\x20sessions\x20action:\x20','description','list','status','No\x20delegations.\x0a','Enter\x20a\x20number\x20','\x20<title>','Unknown\x20flag:\x20','page','\x20(Enter\x20to\x20skip):\x20','Unknown\x20usage\x20view:\x20','.\x20Use\x20','--env','catch','\x20to\x20','\x20\x20TITLE\x0a','a\x20project\x20id','--headless','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.','Date\x20\x20\x20\x20\x20\x20\x20\x20Token\x20units\x20\x20Prompt\x20tokens\x20\x20Completion\x20tokens','pendingResults','transcribe:\x20cannot\x20read\x20','prompt','Already\x20accepted','\x22.\x0a','models','.\x20Use:\x20','cleanup','shift','orgLogicalName','\x20(cancel\x20with:\x20delegate-cli\x20sessions\x20cancel\x20','\x20token\x20units)','\x20or\x20your\x20own\x20answer','--project','Title\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20(stdin\x20was\x20empty)','name','days','keys','off','usage','Switch\x20with:\x20delegate-cli\x20tenant\x20<name>\x0a','):\x0a\x0a','probability','No\x20CLI\x20login\x20to\x20switch:\x20the\x20CLI\x20is\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20','toUpperCase','max','--quiet','fields','parse','deleted','subcommand','):\x20','quiet','--session\x20applies\x20to\x20the\x20`delegate-cli\x20usage`\x20summary\x20only.',']\x20Backend\x20URL:\x20','total_completion_tokens','\x20<id>','refused','total_token_units','Turn:\x20','push','padEnd','assignedUser','More:\x20delegate-cli\x20sessions\x20--page\x20','onEvent','end','\x20—\x20sign\x20out\x20in\x20the\x20Delegate\x20app\x20to\x20clear\x20that.','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','taskAutomation','Session\x20','headless','delegations\x20complete\x20<delegation-id>\x20\x22<answer>\x22|-','--attach','models_breakdown','daily_usage','self-hosted\x20(Automation\x20Suite\x20/\x20Dedicated)','Invalid\x20--project:\x20\x22','stream-json','accessToken','Usage:\x20delegate-cli\x20','\x20applies\x20to\x20prompts\x20and\x20to\x20these\x20commands\x20only:\x20','\x20must\x20be\x20a\x20whole\x20number\x20','high','Deleted\x20session\x20','158TrabVJ','Tenant:\x20\x20\x20\x20\x20\x20\x20','1486490BVVxlb','Usage:\x20delegate-cli\x20sessions\x20','total_quota_pu','\x20\x20from\x20','host','),\x20','every','Numbers,\x20separated\x20by\x20commas\x20(Enter\x20to\x20skip):\x20','isDesktopFallback','--output-format\x20','jsonSchemaPath','✓\x20Done\x0a','isError','package.json','ID\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','label','complete','length','removeEventListener','some','split','whoami','confidence','userId','a\x20file\x20path','--turn','monthly_spend_usd','--page','erase','the\x20JSON\x20schema','\x20\x20TASK\x0a','.aria','sessionId','verbose','Tenants\x20of\x20','Organization:\x20','kind','\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).','dismiss','extra_pool_consumed_pu','--session','workingDirectory','interopPath','--to\x20and\x20--summary\x20apply\x20to\x20`delegate-cli\x20delegations\x20create`\x20only.','%\x20of\x20','336584cORVFj','\x20<file.json>,\x20or\x20-\x20to\x20read\x20stdin.','delegations\x20claim\x20<delegation-id|delegate://delegation/…>','resume','toFixed','turn_start','\x20delegation\x20','delegations\x20cancel\x20<delegation-id>','Enter\x20sends\x20a\x20message.\x20/exit\x20or\x20EOF\x20exits;\x20Ctrl+C\x20stops\x20and\x20exits.\x0a','org-users','alpha','rename','\x20days.\x0a','unit','Owner\x20\x20\x20\x20\x20\x20\x20\x20\x20','signal','session_start','delegationId','alreadyAccepted','toolName','assignedUserEmail','--days','\x20(estimated\x20$','backendUrl','\x20not\x20found,\x20has\x20no\x20messages','\x20(resume\x20with\x20--session\x20','type','--interop','Task\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','close','delegations\x20accept\x20<delegation-id>','buckets','noMemory','structured','From\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','entries','evaluate','keepAlive','forEach','tool','15FasjUM','stdout','code','No\x20sessions\x20on\x20page\x20','total_tokens','Continue\x20it\x20with:\x20delegate-cli\x20--session\x20','--print','--output-format','2673738NhFspd','The\x20turn\x20was\x20cancelled.','\x20token\x20units','answers','--include-subagents','Cancel\x20requested\x20for\x20turn\x20','cwd','--verbose','claim','Interop\x20stopped\x20(if\x20it\x20was\x20running).','\x20\x20(input\x20#','aborted','--model','--skip-env-check\x20applies\x20to\x20`delegate-cli\x20login`\x20only.','\x20this\x20month','--to,\x20--summary\x20and\x20--session\x20apply\x20to\x20`delegate-cli\x20delegations\x20create`\x20only.','\x20prompt,\x20','delegations\x20pending\x20<session-id>','sourceTitle','--turn\x20applies\x20to\x20`delegate-cli\x20sessions\x20cancel`\x20only.','toString','total_cost_usd','There\x20is\x20no\x20terminal\x20input\x20to\x20answer\x20from.','utf-8','cancel','staging','delegateTo','model','isSafeInteger','\x20of\x20a\x20$','--help','initialize','total_prompt_tokens','print',')\x20—\x20saved\x20to\x20','UPDATED','header','origin','\x27\x20cannot\x20be\x20read:\x20',').\x0a','optional','--skip-env-check','title','No\x20models\x20available\x20for\x20this\x20product/tenant.\x0a','Unknown\x20delegations\x20action:\x20','You>\x20','pause','\x0aAvailable\x20models\x20(','readLine','all','getTurnUsageHistory','xhigh','bundledSkillsPath','pending','\x20in\x20steps\x20of\x20','expiresAt','url','--no-security','Number','Token:\x20\x20\x20\x20\x20\x20\x20\x20expires\x20','sendMessage','1\x20or\x20more','estimated_cost_usd','active_days','trim','a\x20skill\x20name','email','pct_used','Enter\x20numbers\x20from\x201\x20to\x20','\x20(resets\x20','\x20(Delegate\x20desktop\x20app\x20fallback)','the\x20request','period_days','argv','Organization\x20\x20','Usage:\x20delegate-cli\x20sessions\x20fork\x20<id>\x20[<message-id>]','object','completion_tokens','stop','Cost:\x20\x20\x20$','No\x20CLI\x20login\x20found.\x20Note:\x20the\x20CLI\x20is\x20currently\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20','a\x20briefing\x20text','production','input','hide','items','unknown\x20slug','stringify','verdict','replace','test','then','\x20\x20\x20\x20BYO\x20warning:\x20','Usage:\x20delegate-cli\x20org-users\x20<name\x20or\x20email\x20prefix>','\x0a🤔\x20','Enter\x20one\x20number\x20from\x201\x20to\x20','\x20(optional)','choice','multiSelect','low','/exit','help','existsSync','filter','skip','operands','\x20min)','string','No\x20usage\x20in\x20the\x20last\x20','--task-automation\x20applies\x20to\x20prompts\x20only.','Missing\x20prompt.\x20Pass\x20it\x20as\x20an\x20argument,\x20pipe\x20it\x20via\x20stdin,\x20or\x20run\x20`delegate-cli\x20--help`.','padStart','No\x20CLI\x20login\x20found\x20—\x20nothing\x20to\x20remove.','exit','--tenant\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Switch\x20tenants\x20with:\x20delegate-cli\x20tenant\x20<name>','skipEnvCheck','827480HWknRF','token_units','endQuestions','localhost','\x20of\x20session\x20','delegations','UIPATH_BASE_URL\x20is\x20unusable.\x20','715569YpRNoD','Tenant:\x20','write','delegation','🔧\x20','delegate-cli','version','stdin','isTTY','default','\x20(confidence\x20','Tenant\x20not\x20switched:\x20could\x20not\x20write\x20','tenantId','Your\x20answer,\x20as\x20text\x20(the\x20CLI\x20attaches\x20no\x20files;\x20Enter\x20to\x20skip):\x20','typed','includes','--summary','tool_call','model_version','--backend','rmSync','\x0aStopping…\x20(Ctrl+C\x20again\x20to\x20force\x20exit)\x0a','--cleanup','findIndex','The\x20saved\x20CLI\x20login\x20could\x20not\x20be\x20refreshed.\x20Run\x20`delegate-cli\x20login`\x20again.','\x20\x22<prompt>\x22\x0a','a\x20colleague','message','Session:\x20\x20\x20\x20\x20\x20','tokenExpiresAt','runnerUrl','now','score\x20','--tenant\x20requires\x20a\x20tenant\x20name.','organizationId','Removed\x20','deployment','accept','step','--no-computer-use','verify','displayName','create','finish','Cartographer:\x20','attachments','--runner-url','auth.json','\x20(current)','error','\x20tokens\x0a','includeSubAgents','structuredError','spawn','preloadSkills','from\x20','Answered','Session:\x20','readFileSync','--no-connections','sessions','--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`delegate-cli\x20sessions`\x20only.','Use:\x20delegate-cli\x20delegations\x20','isArray','SIGINT','rerank','\x20completion','\x20|\x20','\x20\x20(sub-agent\x20of\x20','auth','dismissed','.\x20Use\x20alpha\x20|\x20staging\x20|\x20production\x20|\x20localhost.','score','done','Invalid\x20--output-format:\x20','outputFormat','\x20from\x20','login','--no-memory','text','content','lockReason','noConnections','stderr','\x20PU\x20beyond\x20quota','227TfRKOR','--limit','noSecurity','a\x20directory\x20path','a\x20deployment\x20URL,\x20e.g.\x20https://automationsuite.contoso.com','from',',\x20or\x20holds\x20no\x20message\x20','projectId','Usage:\x20delegate-cli\x20sessions\x20[list]\x20[--page\x20N]\x20[--limit\x20N]\x20[--include-subagents]','Last\x20','rubric_version','.\x20Use\x20`delegate-cli\x20usage`,\x20`usage\x20activity`\x20or\x20`usage\x20daily`.','monthly_limit_usd','No\x20CLI\x20login\x20found.\x20Run\x20`delegate-cli\x20login\x20--env\x20<alpha|staging|production>`\x20first.','environment\x20variables\x20(AUTH_TOKEN/TENANT_ID/ORG_ID)','thinking','addEventListener','Usage:\x20delegate-cli\x20sessions\x20cancel\x20<session-id>\x20--turn\x20<turn-id>','logout','min','Token:\x20\x20\x20\x20\x20\x20\x20\x20expired\x20','getSessionId','\x20in\x20progress\x20on\x20session\x20','sourceUserEmail','concat','turnId','complete\x20needs\x20--json-schema\x20<file>:\x20delegate-cli\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22.','a\x20format\x20(','delegations\x20create\x20--session\x20<id>\x20[--to\x20<email|name>]\x20[--summary\x20<text>]\x20\x22<task>\x22|-','Your\x20answer\x20(Enter\x20to\x20skip):\x20','total_sessions','baseUrl','env'];_0x3c87=function(){return _0x1f5d4b;};return _0x3c87();}import _0x15228c from'path';import{clearLine as _0x24795e,createInterface as _0x2757a9,cursorTo as _0xee09a1}from'node:readline';import{isOnStepGrid as _0x561420}from'@uipath/delegate-sdk';var _='userinput';function S(_0x59b7ca){const _0x4bef2e=_0xced2;return _0x59b7ca[_0x4bef2e(0x253)](/\u001b\[[0-?]*[ -/]*[@-~]|\u001b\][^\u0007\u001b]*(\u0007|\u001b\\)?|\u001b./g,'')[_0x4bef2e(0x253)](/[\u0000-\u0008\u000b-\u001f\u007f-\u009f]/g,'');}function V(_0x1130a4){const _0x1a33e0=_0xced2;return S(_0x1130a4[_0x1a33e0(0x1ac)]??(_0x1130a4[_0x1a33e0(0x1c1)]===_?'Something\x20else':_0x1130a4['id']));}function Te(_0x2d2cda,_0x3d3930,_0x5ebd94){const _0x53d86a=_0xced2;let _0xa32e6d=[''+(_0x5ebd94>0x1?'['+_0x3d3930+'/'+_0x5ebd94+']\x20':'')+S(_0x2d2cda[_0x53d86a(0x21e)])+(_0x2d2cda[_0x53d86a(0x222)]?_0x53d86a(0x25a):''),S(_0x2d2cda['question'])];return _0x2d2cda[_0x53d86a(0x1e4)]===_0x53d86a(0x2c4)&&_0x2d2cda[_0x53d86a(0x31a)]['forEach']((_0x4ac9a3,_0x72ac07)=>{const _0x3db811=_0x53d86a;let _0x1d54ee=_0x4ac9a3[_0x3db811(0x1c1)]===_?_0x3db811(0x302):'',_0x58efae=_0x4ac9a3[_0x3db811(0x335)]?'\x20-\x20'+S(_0x4ac9a3[_0x3db811(0x335)]):'';_0xa32e6d[_0x3db811(0x371)]('\x20\x20'+(_0x72ac07+0x1)+'.\x20'+V(_0x4ac9a3)+_0x1d54ee+_0x58efae);}),_0xa32e6d[_0x53d86a(0x328)]('\x0a');}function X(_0x11ffbc,_0x239733){const _0x3a13d5=_0xced2;let _0x484e62=_0x11ffbc[_0x3a13d5(0x1b1)](/[\s,]+/)['filter'](Boolean);if(_0x484e62['length']===0x0)return null;let _0x225cf5=_0x484e62[_0x3a13d5(0x306)](_0x1849dd=>/^\d+$/[_0x3a13d5(0x254)](_0x1849dd)?Number(_0x1849dd):NaN);return _0x225cf5[_0x3a13d5(0x1b0)](_0xf9d5d3=>!Number['isInteger'](_0xf9d5d3)||_0xf9d5d3<0x1||_0xf9d5d3>_0x239733)?null:[...new Set(_0x225cf5)][_0x3a13d5(0x306)](_0x3f8080=>_0x3f8080-0x1);}function xe(_0x2c7ab1){const _0x52f0ba=_0xced2;return typeof _0x2c7ab1=='object'&&_0x2c7ab1!==null&&_0x52f0ba(0x36e)in _0x2c7ab1;}async function R(_0x1cef40,_0x371d3b,_0x29d1ed,_0x3d5933){const _0xf08e47=_0xced2;for(;;){let _0x189890=(await _0x1cef40(_0x371d3b))[_0xf08e47(0x23a)]();if(_0x189890==='')return;let _0x4921e9=_0x3d5933(_0x189890);if(!xe(_0x4921e9))return _0x4921e9;_0x29d1ed(_0x4921e9[_0xf08e47(0x36e)]+'\x0a');}}async function De(_0x38ca32,_0x11a06a,_0x52acb1){const _0x31c33f=_0xced2;if(_0x38ca32[_0x31c33f(0x31a)][_0x31c33f(0x1ae)]===0x0||_0x38ca32[_0x31c33f(0x31a)][_0x31c33f(0x1a3)](_0x59c08d=>_0x59c08d['kind']===_)){let _0x2c19a5=(await _0x11a06a(_0x31c33f(0x2e7)))['trim']();return _0x2c19a5===''?void 0x0:{'text':_0x2c19a5};}let _0x276a74=_0x38ca32[_0x31c33f(0x31a)][_0x31c33f(0x28c)](_0x412b16=>_0x412b16['kind']===_),_0x12494d=_0x38ca32['multiSelect']?_0x31c33f(0x1a4):_0x31c33f(0x234)+(_0x276a74>=0x0?_0x31c33f(0x354):'')+_0x31c33f(0x33d),_0x3c35ed=await R(_0x11a06a,_0x12494d,_0x52acb1,_0x57ba20=>{const _0x5c1d0f=_0x31c33f;let _0x1c904e=X(_0x57ba20,_0x38ca32[_0x5c1d0f(0x31a)][_0x5c1d0f(0x1ae)]);return _0x1c904e&&(_0x38ca32[_0x5c1d0f(0x25c)]||_0x1c904e[_0x5c1d0f(0x1ae)]===0x1)?_0x1c904e:!_0x38ca32[_0x5c1d0f(0x25c)]&&_0x276a74>=0x0?{'typed':_0x57ba20}:{'refused':_0x38ca32['multiSelect']?_0x5c1d0f(0x23e)+_0x38ca32['options'][_0x5c1d0f(0x1ae)]+'.':_0x5c1d0f(0x259)+_0x38ca32[_0x5c1d0f(0x31a)][_0x5c1d0f(0x1ae)]+'.'};});if(_0x3c35ed===void 0x0)return;if(!Array[_0x31c33f(0x2b4)](_0x3c35ed))return{'text':_0x3c35ed[_0x31c33f(0x283)]};let _0x1a75d4=_0x3c35ed[_0x31c33f(0x306)](_0x53881a=>_0x38ca32['options'][_0x53881a]['id']),_0x3996e2=_0x1a75d4[_0x31c33f(0x284)](_)?await R(_0x11a06a,V(_0x38ca32[_0x31c33f(0x31a)][_0x276a74])+':\x20',_0x52acb1,_0x56f02b=>_0x56f02b):void 0x0;if(!(_0x1a75d4['includes'](_)&&_0x3996e2===void 0x0))return _0x38ca32[_0x31c33f(0x25c)]?{'optionIds':_0x1a75d4,..._0x3996e2!==void 0x0?{'text':_0x3996e2}:{}}:_0x3996e2!==void 0x0?{'text':_0x3996e2}:{'optionId':_0x1a75d4[0x0]};}async function Ue(_0x17244a,_0x55c5d0,_0x4a90f9){const _0xf94a7f=_0xced2;let _0xa75bc={};for(let _0x15e780 of _0x17244a[_0xf94a7f(0x364)]){let _0x5b1234=_0x15e780[_0xf94a7f(0x27e)]??_0x15e780[_0xf94a7f(0x2dd)],_0x5dbee0=_0x15e780[_0xf94a7f(0x29b)]??0x1,_0x1b10ab=_0x15e780[_0xf94a7f(0x1d7)]?'\x20'+S(_0x15e780[_0xf94a7f(0x1d7)]):'',_0x11c097=_0xf94a7f(0x2ac)+_0x15e780['min']+_0xf94a7f(0x342)+_0x15e780[_0xf94a7f(0x362)]+(_0x5dbee0!==0x1?_0xf94a7f(0x230)+_0x5dbee0:''),_0x577170=await R(_0x55c5d0,S(_0x15e780[_0xf94a7f(0x1ac)])+'\x20['+_0x15e780['min']+'-'+_0x15e780[_0xf94a7f(0x362)]+_0x1b10ab+']\x20(Enter\x20for\x20'+_0x5b1234+_0xf94a7f(0x368),_0x4a90f9,_0xffabeb=>{const _0x2a85fb=_0xf94a7f;let _0x490f3a=Number(_0xffabeb);return Number['isFinite'](_0x490f3a)&&_0x490f3a>=_0x15e780['min']&&_0x490f3a<=_0x15e780['max']&&_0x561420(_0x490f3a,_0x15e780[_0x2a85fb(0x2dd)],_0x5dbee0)?_0x490f3a:{'refused':_0x2a85fb(0x339)+_0x11c097+'.'};});_0xa75bc[_0x15e780['id']]=_0x577170??_0x5b1234;}return{'values':_0xa75bc};}async function Ne(_0x14fc45,_0x248539,_0x24db6){const _0x196944=_0xced2;_0x24db6(_0x14fc45[_0x196944(0x1e9)][_0x196944(0x306)]((_0x31c4c2,_0x5ac3c2)=>'\x20\x20'+(_0x5ac3c2+0x1)+'.\x20'+S(_0x31c4c2['label']))[_0x196944(0x328)]('\x0a')+'\x0a');let _0x4b6a08={};for(let _0x581343 of _0x14fc45[_0x196944(0x24f)]){let _0x1ae5dc=await R(_0x248539,S(_0x581343[_0x196944(0x1ac)])+_0x196944(0x2ff),_0x24db6,_0x29e5c5=>{const _0x110edc=_0x196944;let _0x194408=X(_0x29e5c5,_0x14fc45[_0x110edc(0x1e9)][_0x110edc(0x1ae)]);return _0x194408&&_0x194408[_0x110edc(0x1ae)]===0x1?_0x194408[0x0]:{'refused':_0x110edc(0x259)+_0x14fc45['buckets']['length']+'.'};});if(_0x1ae5dc===void 0x0)continue;let _0x112bca=_0x14fc45['buckets'][_0x1ae5dc],_0x3ec60d={};for(let _0x37ee1d of _0x112bca['subFields']??[]){let _0x5a182e='\x20\x20'+S(_0x37ee1d[_0x196944(0x1ac)])+(_0x37ee1d['optional']?_0x196944(0x25a):'')+':\x20',_0x418a96=await R(_0x248539,_0x5a182e,_0x24db6,_0x25a417=>_0x25a417);for(;_0x418a96===void 0x0&&!_0x37ee1d['optional'];)_0x24db6(S(_0x37ee1d[_0x196944(0x1ac)])+'\x20is\x20required.\x0a'),_0x418a96=await R(_0x248539,_0x5a182e,_0x24db6,_0x6d304=>_0x6d304);_0x418a96!==void 0x0&&(_0x3ec60d[_0x37ee1d['id']]=_0x418a96);}_0x4b6a08[_0x581343['id']]={'bucket':_0x112bca['id'],...Object[_0x196944(0x35a)](_0x3ec60d)[_0x196944(0x1ae)]>0x0?{'subFields':_0x3ec60d}:{}};}return Object[_0x196944(0x35a)](_0x4b6a08)['length']>0x0?{'assignments':_0x4b6a08}:void 0x0;}async function _e(_0x3aaa8d,_0x5efdfa,_0x56b202){const _0x1c67bd=_0xced2;if(_0x3aaa8d[_0x1c67bd(0x1e4)]===_0x1c67bd(0x2c4))return De(_0x3aaa8d,_0x5efdfa,_0x56b202);if(_0x3aaa8d[_0x1c67bd(0x1e4)]==='numeric')return Ue(_0x3aaa8d,_0x5efdfa,_0x56b202);if(_0x3aaa8d['type']==='bucket')return Ne(_0x3aaa8d,_0x5efdfa,_0x56b202);let _0x4a7ad3=(await _0x5efdfa(_0x1c67bd(0x282)))[_0x1c67bd(0x23a)]();return _0x4a7ad3===''?void 0x0:{'text':_0x4a7ad3};}function Z(_0x57366e,_0x4adb57){return async _0x30d433=>{const _0xe7c368=_0xced2;let _0x471008=_0x57366e();if(!_0x471008)throw new Error(_0xe7c368(0x210));let _0x103cf7=async _0x382289=>{const _0x38f5f3=_0xe7c368;if(_0x30d433[_0x38f5f3(0x1d9)][_0x38f5f3(0x205)])throw new Error(_0x38f5f3(0x1fb));let _0x43dc58=await _0x471008[_0x38f5f3(0x22a)](_0x382289,_0x30d433['signal']);if(_0x43dc58===null)throw new Error('Input\x20closed\x20before\x20the\x20question\x20was\x20answered.');return _0x43dc58;};try{_0x4adb57('\x0a'+(_0x30d433[_0xe7c368(0x317)]?S(_0x30d433[_0xe7c368(0x317)])+'\x0a':''));let _0x13d2e6={};for(let [_0x282a3c,_0x22b0b7]of _0x30d433[_0xe7c368(0x307)][_0xe7c368(0x1ed)]()){_0x4adb57('\x0a'+Te(_0x22b0b7,_0x282a3c+0x1,_0x30d433['questions'][_0xe7c368(0x1ae)])+'\x0a');let _0xe35ee5=await _e(_0x22b0b7,_0x103cf7,_0x4adb57);_0xe35ee5!==void 0x0&&(_0x13d2e6[_0x22b0b7['id']]=_0xe35ee5);}return{'answers':_0x13d2e6};}finally{_0x471008[_0xe7c368(0x270)]();}};}import{BUSINESS_ANALYSIS_PRELOADED_SKILLS as _0x530d90,DelegateAgent as _0x5139ac,cancelTurn as _0x100f17,InteropProcess as _0x2c67a7,complete as _0x3c1dee,DEFAULT_MODEL as _0x26204d,createBackendClient as _0x5b0f18,evaluate as _0x1fec2d,isCompletionRequestError as _0x3fedeb,isEvaluationRequestError as _0x41fd98,isTranscriptionError as _0x289a26,rerank as _0x106b08,transcribe as _0x5b2d0c,verify as _0x63e95f,acceptDelegation as _0x277c5f,cancelDelegation as _0x2823fd,claimDelegation as _0x4a11ec,completeDelegation as _0x1eb4e4,createDelegation as _0x17c9b9,deleteDelegation as _0x1208c3,dismissDelegation as _0x4dce77,getSessionDelegations as _0x541a60,isDelegationError as _0x54dd7f,listDelegations as _0x46b2c2,listOrgUsers as _0x16263d,previewDelegation as _0x41c1ab,TurnResultCollector as _0xbeddc4,agentEventToJsonLine as _0x48f5ca,describeBaseUrlRejection as _0x527ffb,getActivitySummary as _0x56c562,getAuthFilePath as _0x1e3ef0,getByoWarnings as _0x290f25,getCartographerAllowance as _0x5c8757,getDailyBreakdown as _0x37ba7b,getLicensingSummary as _0xe2558d,getMonthlySpending as _0xc3be4f,isOutputFormat as _0x3fb8e8,isCloudBaseUrl as _0x7b7f6,isSafeProjectFolderSegment as _0x59653b,listModels as _0x3e416d,listSessions as _0x2d2595,getSession as _0x277864,renameSession as _0x26537b,deleteSession as _0x2384e2,deleteSessionTaskLog as _0x3682ef,forkSession as _0x4d474e,isBackendRequestError as _0x10cfd4,MAX_SESSION_PAGE_SIZE as _0x48f617,listTenants as _0x4f0daa,loadAndRefreshAuth as _0x100037,loadAndRefreshSdkLogin as _0x4714a4,parsePlatformBaseUrl as _0x340ce0,resolveBackendUrl as _0x93f1b3,runHealthCheck as _0x149765,runHostCommand as _0x1ca8eb,runLoginFlow as _0x5cc19f,runTurnForResult as _0x1e2096,saveAuthData as _0x15eb87,switchTenant as _0x427fa9,toJsonLine as _0x429094,ENV_TO_CLOUD as _0x2d5a18,OUTPUT_FORMATS as _0x43ab9e}from'@uipath/delegate-sdk';var Nt=[_0x2e9e2a(0x2c2),_0x2e9e2a(0x329),_0x2e9e2a(0x34d),_0x2e9e2a(0x1a1),'logout',_0x2e9e2a(0x1b2),_0x2e9e2a(0x300),'sessions',_0x2e9e2a(0x35c),_0x2e9e2a(0x1ee),'rerank','verify',_0x2e9e2a(0x1ad),_0x2e9e2a(0x30e),'delegations',_0x2e9e2a(0x1d3)],se=['',_0x2e9e2a(0x34d),'whoami','check',_0x2e9e2a(0x2b1),_0x2e9e2a(0x35c),_0x2e9e2a(0x1ee),'rerank','verify',_0x2e9e2a(0x1ad),_0x2e9e2a(0x30e),_0x2e9e2a(0x273),_0x2e9e2a(0x1d3)],re=[_0x2e9e2a(0x25d),'medium',_0x2e9e2a(0x199),_0x2e9e2a(0x22d),_0x2e9e2a(0x362)],_t=_0x530d90;function w(_0x527a20,_0x4f3320,_0x25aca3,_0x565f20){const _0x24b978=_0x2e9e2a;let _0x4bc3b3=_0x527a20[_0x4f3320];return(!_0x4bc3b3||_0x4bc3b3[_0x24b978(0x1ae)]>0x1&&_0x4bc3b3['startsWith']('-'))&&(console[_0x24b978(0x2a6)](_0x25aca3+_0x24b978(0x32e)+_0x565f20+'.'),process[_0x24b978(0x26b)](0x2)),_0x4bc3b3;}function J(_0x555b7e,_0x41b6b9,_0x3ca889,_0x26d49f){const _0x37f015=_0x2e9e2a;let _0x20348d=w(_0x555b7e,_0x41b6b9,_0x3ca889,'a\x20number'),_0xbc81ad=Number(_0x20348d);return(!/^\d+$/[_0x37f015(0x254)](_0x20348d)||_0xbc81ad<0x1||!Number[_0x37f015(0x216)](_0xbc81ad)||_0x26d49f!==void 0x0&&_0xbc81ad>_0x26d49f)&&(console[_0x37f015(0x2a6)](_0x3ca889+_0x37f015(0x386)+(_0x26d49f===void 0x0?_0x37f015(0x237):'from\x201\x20to\x20'+_0x26d49f)+_0x37f015(0x30b)+_0x20348d+'.'),process[_0x37f015(0x26b)](0x2)),_0xbc81ad;}function Rt(_0x40bf89){const _0x16fcb7=_0x2e9e2a;let _0x37604d={'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':_0x16fcb7(0x2c4),'preloadSkills':[],'attachments':[],'skipEnvCheck':!0x1,'includeSubAgents':!0x1,'operands':[],'help':!0x1,'version':!0x1};Nt[_0x16fcb7(0x284)](_0x40bf89[0x0])&&(_0x37604d[_0x16fcb7(0x367)]=_0x40bf89[0x0],_0x40bf89=_0x40bf89[_0x16fcb7(0x2f0)](0x1));let _0x54dbca=[];for(let _0x3c9954=0x0;_0x3c9954<_0x40bf89[_0x16fcb7(0x1ae)];_0x3c9954++){let _0xeed50a=_0x40bf89[_0x3c9954];switch(_0xeed50a){case _0x16fcb7(0x1f8):case'-p':_0x37604d[_0x16fcb7(0x21b)]=!0x0;break;case'--keep-alive':_0x37604d[_0x16fcb7(0x1ef)]=!0x0;break;case _0x16fcb7(0x28b):_0x37604d[_0x16fcb7(0x34f)]=!0x0;break;case _0x16fcb7(0x345):_0x37604d[_0x16fcb7(0x37b)]=!0x0;break;case _0x16fcb7(0x29c):_0x37604d[_0x16fcb7(0x333)]=!0x0;break;case _0x16fcb7(0x31e):_0x37604d[_0x16fcb7(0x331)]=!0x0,_0x37604d['noComputerUse']=!0x0,_0x37604d[_0x16fcb7(0x2ab)][_0x16fcb7(0x371)](..._t);break;case _0x16fcb7(0x2b0):_0x37604d[_0x16fcb7(0x2c7)]=!0x0;break;case _0x16fcb7(0x233):_0x37604d[_0x16fcb7(0x2cc)]=!0x0;break;case _0x16fcb7(0x2c3):_0x37604d[_0x16fcb7(0x1ea)]=!0x0;break;case'--task-automation':_0x37604d[_0x16fcb7(0x379)]=!0x0;break;case _0x16fcb7(0x363):case'-q':_0x37604d[_0x16fcb7(0x369)]=!0x0;break;case _0x16fcb7(0x201):_0x37604d[_0x16fcb7(0x1be)]=!0x0;break;case _0x16fcb7(0x288):_0x37604d['backendUrl']=_0x40bf89[++_0x3c9954];break;case _0x16fcb7(0x206):_0x37604d['model']=_0x40bf89[++_0x3c9954];break;case _0x16fcb7(0x2a3):_0x37604d[_0x16fcb7(0x293)]=_0x40bf89[++_0x3c9954];break;case _0x16fcb7(0x1e5):_0x37604d['interopPath']=_0x40bf89[++_0x3c9954];break;case'--worker-id':_0x37604d['workerId']=_0x40bf89[++_0x3c9954];break;case'--preload-skill':_0x37604d[_0x16fcb7(0x2ab)][_0x16fcb7(0x371)](w(_0x40bf89,++_0x3c9954,_0xeed50a,_0x16fcb7(0x23b)));break;case _0x16fcb7(0x355):{let _0x1474a6=w(_0x40bf89,++_0x3c9954,_0xeed50a,_0x16fcb7(0x344));_0x59653b(_0x1474a6)||(console[_0x16fcb7(0x2a6)](_0x16fcb7(0x381)+_0x1474a6+_0x16fcb7(0x1c2)),process[_0x16fcb7(0x26b)](0x2)),_0x37604d[_0x16fcb7(0x2d1)]=_0x1474a6;break;}case _0x16fcb7(0x1f9):{let _0x353d86=w(_0x40bf89,++_0x3c9954,_0xeed50a,_0x16fcb7(0x2e5)+_0x43ab9e[_0x16fcb7(0x328)]('\x20|\x20')+')');_0x3fb8e8(_0x353d86)||(console[_0x16fcb7(0x2a6)](_0x16fcb7(0x2bf)+_0x353d86+_0x16fcb7(0x33f)+_0x43ab9e[_0x16fcb7(0x328)](_0x16fcb7(0x2b8))+'.'),process[_0x16fcb7(0x26b)](0x2)),_0x37604d[_0x16fcb7(0x2c0)]=_0x353d86;break;}case _0x16fcb7(0x1c5):_0x37604d[_0x16fcb7(0x1bd)]=w(_0x40bf89,++_0x3c9954,_0xeed50a,_0x16fcb7(0x309));break;case _0x16fcb7(0x1b8):_0x37604d['page']=J(_0x40bf89,++_0x3c9954,_0xeed50a);break;case _0x16fcb7(0x2cb):_0x37604d[_0x16fcb7(0x31c)]=J(_0x40bf89,++_0x3c9954,_0xeed50a,_0x48f617);break;case _0x16fcb7(0x1fe):_0x37604d[_0x16fcb7(0x2a8)]=!0x0;break;case'--json-schema':_0x37604d[_0x16fcb7(0x1a7)]=w(_0x40bf89,++_0x3c9954,_0xeed50a,'a\x20JSON\x20schema\x20file');break;case _0x16fcb7(0x37d):{let _0x2f031f=_0x15228c['resolve'](process['cwd'](),w(_0x40bf89,++_0x3c9954,_0xeed50a,_0x16fcb7(0x1b5)));_0x59b7ea[_0x16fcb7(0x260)](_0x2f031f)||(console[_0x16fcb7(0x2a6)]('--attach:\x20no\x20such\x20file\x20or\x20folder:\x20'+_0x2f031f),process[_0x16fcb7(0x26b)](0x2)),_0x37604d[_0x16fcb7(0x2a2)][_0x16fcb7(0x371)](_0x2f031f);break;}case _0x16fcb7(0x1b6):_0x37604d[_0x16fcb7(0x2e3)]=w(_0x40bf89,++_0x3c9954,_0xeed50a,'a\x20turn\x20id');break;case _0x16fcb7(0x31f):_0x37604d['delegateTo']=w(_0x40bf89,++_0x3c9954,_0xeed50a,'an\x20email\x20address\x20or\x20name');break;case _0x16fcb7(0x285):_0x37604d[_0x16fcb7(0x321)]=w(_0x40bf89,++_0x3c9954,_0xeed50a,_0x16fcb7(0x24b));break;case _0x16fcb7(0x1df):_0x37604d[_0x16fcb7(0x359)]=J(_0x40bf89,++_0x3c9954,_0xeed50a,0x16d);break;case _0x16fcb7(0x304):_0x37604d[_0x16fcb7(0x1c6)]=_0x15228c[_0x16fcb7(0x32d)](process[_0x16fcb7(0x200)](),w(_0x40bf89,++_0x3c9954,_0xeed50a,_0x16fcb7(0x2cd)));break;case'--skills-path':_0x37604d[_0x16fcb7(0x22e)]=_0x15228c[_0x16fcb7(0x32d)](process[_0x16fcb7(0x200)](),w(_0x40bf89,++_0x3c9954,_0xeed50a,_0x16fcb7(0x2cd)));break;case _0x16fcb7(0x2fd):{let _0x4937f3=w(_0x40bf89,++_0x3c9954,_0xeed50a,'an\x20effort\x20tier');re[_0x16fcb7(0x284)](_0x4937f3)||(console[_0x16fcb7(0x2a6)](_0x16fcb7(0x30a)+_0x4937f3+_0x16fcb7(0x33f)+re['join'](_0x16fcb7(0x2b8))+'.'),process[_0x16fcb7(0x26b)](0x2)),_0x37604d['effort']=_0x4937f3;break;}case'--tenant':{let _0x52e08d=_0x40bf89[++_0x3c9954];(!_0x52e08d||_0x52e08d[_0x16fcb7(0x323)]('--'))&&(console[_0x16fcb7(0x2a6)](_0x16fcb7(0x296)),process[_0x16fcb7(0x26b)](0x2)),_0x37604d[_0x16fcb7(0x329)]=_0x52e08d;break;}case _0x16fcb7(0x340):{let _0x4f02d2=_0x40bf89[++_0x3c9954];[_0x16fcb7(0x1d4),_0x16fcb7(0x213),_0x16fcb7(0x24c),_0x16fcb7(0x271)][_0x16fcb7(0x284)](_0x4f02d2)||(console[_0x16fcb7(0x2a6)]('Invalid\x20--env:\x20'+_0x4f02d2+_0x16fcb7(0x2bc)),process['exit'](0x2)),_0x37604d[_0x16fcb7(0x2ea)]=_0x4f02d2;break;}case _0x16fcb7(0x312):case'--authority':{let _0x517184=w(_0x40bf89,++_0x3c9954,_0xeed50a,_0x16fcb7(0x2ce)),_0x36ecad=_0x340ce0(_0x517184);if(_0x36ecad['ok']===!0x1){console[_0x16fcb7(0x2a6)](_0x527ffb(_0x517184,_0x36ecad['rejection'])),process[_0x16fcb7(0x26b)](0x2);break;}_0x37604d[_0x16fcb7(0x232)]=_0x36ecad['baseUrl'];break;}case _0x16fcb7(0x223):_0x37604d['skipEnvCheck']=!0x0;break;case'-h':case _0x16fcb7(0x218):_0x37604d[_0x16fcb7(0x25f)]=!0x0;break;case'-v':case'--version':_0x37604d[_0x16fcb7(0x27b)]=!0x0;break;default:_0xeed50a[_0x16fcb7(0x323)]('--')&&(console[_0x16fcb7(0x2a6)](_0x16fcb7(0x33b)+_0xeed50a),process[_0x16fcb7(0x26b)](0x2)),_0x54dbca['push'](_0xeed50a);}}return _0x37604d['tenant']!==void 0x0&&_0x37604d[_0x16fcb7(0x367)]!==_0x16fcb7(0x2c2)&&(console['error'](_0x16fcb7(0x26c)),process[_0x16fcb7(0x26b)](0x2)),_0x37604d[_0x16fcb7(0x232)]!==void 0x0&&_0x37604d[_0x16fcb7(0x2ea)]!==void 0x0&&(console[_0x16fcb7(0x2a6)]('Pass\x20either\x20--env\x20(a\x20named\x20cloud)\x20or\x20--url\x20(any\x20other\x20deployment),\x20not\x20both.'),process[_0x16fcb7(0x26b)](0x2)),_0x37604d[_0x16fcb7(0x232)]!==void 0x0&&_0x37604d[_0x16fcb7(0x367)]!==_0x16fcb7(0x2c2)&&(console[_0x16fcb7(0x2a6)]('--url\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Other\x20commands\x20follow\x20the\x20saved\x20login,\x20or\x20--backend\x20<url>.'),process[_0x16fcb7(0x26b)](0x2)),_0x37604d[_0x16fcb7(0x359)]!==void 0x0&&_0x37604d[_0x16fcb7(0x367)]!==_0x16fcb7(0x35c)&&(console[_0x16fcb7(0x2a6)]('--days\x20applies\x20to\x20`delegate-cli\x20usage\x20activity|daily`\x20only.'),process[_0x16fcb7(0x26b)](0x2)),_0x37604d[_0x16fcb7(0x1a7)]!==void 0x0&&(_0x37604d[_0x16fcb7(0x367)]!==_0x16fcb7(0x1ad)&&_0x37604d[_0x16fcb7(0x367)]!==''||_0x37604d['cleanup'])&&(console[_0x16fcb7(0x2a6)]('--json-schema\x20applies\x20to\x20prompts\x20and\x20to\x20`delegate-cli\x20complete`\x20only.'),process[_0x16fcb7(0x26b)](0x2)),_0x37604d[_0x16fcb7(0x2a2)][_0x16fcb7(0x1ae)]>0x0&&(_0x37604d['subcommand']!==''||_0x37604d[_0x16fcb7(0x34f)])&&(console[_0x16fcb7(0x2a6)]('--attach\x20applies\x20to\x20prompts\x20only.'),process['exit'](0x2)),_0x37604d['taskAutomation']&&(_0x37604d['subcommand']!==''||_0x37604d['cleanup'])&&(console[_0x16fcb7(0x2a6)](_0x16fcb7(0x267)),process[_0x16fcb7(0x26b)](0x2)),_0x37604d['taskAutomation']&&(_0x37604d['headless']||_0x37604d['noComputerUse'])&&(console[_0x16fcb7(0x2a6)]('--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[_0x16fcb7(0x26b)](0x2)),_0x37604d[_0x16fcb7(0x26d)]&&_0x37604d[_0x16fcb7(0x367)]!==_0x16fcb7(0x2c2)&&(console['error'](_0x16fcb7(0x207)),process['exit'](0x2)),_0x37604d[_0x16fcb7(0x2c0)]!=='text'&&!se[_0x16fcb7(0x284)](_0x37604d['subcommand'])&&(console[_0x16fcb7(0x2a6)](_0x16fcb7(0x1a6)+_0x37604d['outputFormat']+_0x16fcb7(0x385)+se[_0x16fcb7(0x261)](Boolean)[_0x16fcb7(0x328)](',\x20')+'.'),process['exit'](0x2)),(_0x37604d[_0x16fcb7(0x33c)]!==void 0x0||_0x37604d[_0x16fcb7(0x31c)]!==void 0x0||_0x37604d[_0x16fcb7(0x2a8)])&&_0x37604d[_0x16fcb7(0x367)]!==_0x16fcb7(0x2b1)&&(console[_0x16fcb7(0x2a6)](_0x16fcb7(0x2b2)),process[_0x16fcb7(0x26b)](0x2)),(_0x37604d[_0x16fcb7(0x214)]!==void 0x0||_0x37604d[_0x16fcb7(0x321)]!==void 0x0)&&_0x37604d[_0x16fcb7(0x367)]!==_0x16fcb7(0x273)&&(console[_0x16fcb7(0x2a6)](_0x16fcb7(0x1c8)),process[_0x16fcb7(0x26b)](0x2)),_0x37604d[_0x16fcb7(0x2e3)]!==void 0x0&&_0x37604d[_0x16fcb7(0x367)]!==_0x16fcb7(0x2b1)&&(console[_0x16fcb7(0x2a6)](_0x16fcb7(0x20d)),process[_0x16fcb7(0x26b)](0x2)),_0x37604d[_0x16fcb7(0x2ab)]=[...new Set(_0x37604d[_0x16fcb7(0x2ab)])],_0x37604d[_0x16fcb7(0x263)]=_0x54dbca,_0x37604d[_0x16fcb7(0x34a)]=_0x54dbca[_0x16fcb7(0x328)]('\x20'),_0x37604d;}var P=_0x59e098=>{const _0x8751b9=_0x2e9e2a;process['stdout'][_0x8751b9(0x277)](_0x59e098);};function Pt(){const _0x5ad62f=_0x2e9e2a;let _0x488560=process[_0x5ad62f(0x1f3)]['write'],_0x1584ac=_0x488560['bind'](process[_0x5ad62f(0x1f3)]),_0x346b10=P;return P=_0x125431=>{_0x1584ac(_0x125431);},process[_0x5ad62f(0x1f3)]['write']=(..._0x3b9520)=>process['stderr']['write'](..._0x3b9520),()=>{const _0x3b920d=_0x5ad62f;process[_0x3b920d(0x1f3)][_0x3b920d(0x277)]=_0x488560,P=_0x346b10;};}function u(_0x3ea1ae,_0x31b651,_0x50eae8){const _0x4fda73=_0x2e9e2a;if(_0x3ea1ae[_0x4fda73(0x2c0)]===_0x4fda73(0x2c4)){_0x50eae8(_0x31b651);return;}P(_0x429094(_0x31b651));}function Ct(){const _0x25f7ee=_0x2e9e2a;let _0x52ace7='\x0adelegate-cli\x20—\x20Delegate\x20agent\x20CLI\x0a\x0aUsage:\x0a\x20\x20delegate-cli\x20[flags]\x20[\x22<prompt>\x22]\x20\x20\x20\x20Start\x20a\x20conversation\x20in\x20a\x20terminal\x0a\x20\x20delegate-cli\x20--print\x20\x22<prompt>\x22\x20\x20\x20\x20\x20\x20Send\x20one\x20prompt,\x20print\x20the\x20response,\x20and\x20exit\x0a\x20\x20delegate-cli\x20[flags]\x20-\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Read\x20one\x20prompt\x20from\x20stdin\x20through\x20EOF,\x20then\x20exit\x0a\x20\x20delegate-cli\x20-p\x20\x22<prompt>\x22\x20--output-format\x20json|stream-json\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20One\x20turn\x20with\x20JSON-only\x20stdout;\x20exit\x201\x20on\x20error\x0a\x20\x20delegate-cli\x20--json-schema\x20FILE\x20\x22<prompt>\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20One\x20turn,\x20then\x20its\x20result\x20extracted\x20as\x20JSON\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20matching\x20the\x20schema\x20in\x20FILE\x20(printed\x20after\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20answer;\x20\x22structured\x22\x20in\x20the\x20JSON\x20result);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20exit\x201\x20when\x20the\x20extraction\x20fails\x0a\x20\x20delegate-cli\x20--attach\x20PATH\x20[--attach\x20PATH\x20...]\x20\x22<prompt>\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Send\x20files\x20or\x20folders\x20with\x20the\x20first\x20message\x0a\x20\x20delegate-cli\x20login\x20[--env\x20NAME\x20|\x20--url\x20BASE]\x20[--tenant\x20NAME]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20OAuth\x20browser\x20login\x20→\x20~/.aria/sdk-auth.json.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--env\x20or\x20--url\x20required\x20on\x20FIRST\x20login;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20afterwards\x20defaults\x20to\x20the\x20saved\x20login\x27s\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20deployment.\x20--tenant\x20picks\x20a\x20tenant\x20by\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20name;\x20without\x20it\x20a\x20re-login\x20keeps\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20saved\x20tenant\x0a\x20\x20delegate-cli\x20tenant\x20[NAME]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20the\x20organization\x27s\x20tenants,\x20or\x20switch\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20saved\x20login\x20to\x20NAME\x20(no\x20browser)\x0a\x20\x20delegate-cli\x20logout\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Remove\x20the\x20saved\x20CLI\x20login\x0a\x20\x20delegate-cli\x20whoami\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20the\x20current\x20login\x20(org,\x20tenant,\x20token\x20expiry)\x0a\x20\x20delegate-cli\x20models\x20[--env\x20NAME]\x20\x20\x20\x20\x20List\x20available\x20LLM\x20models\x20for\x20the\x20current\x20tenant,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20with\x20any\x20BYO\x20configuration\x20warning\x20per\x20model\x0a\x20\x20delegate-cli\x20sessions\x20[list]\x20[--page\x20N]\x20[--limit\x20N]\x20[--include-subagents]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20your\x20backend\x20chat\x20sessions,\x20most\x20recently\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20active\x20first\x20(resume\x20one\x20with\x20--session\x20ID)\x0a\x20\x20delegate-cli\x20sessions\x20show|delete\x20ID\x20Show\x20one\x20session\x27s\x20title\x20and\x20owner,\x20or\x20delete\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20it\x20with\x20its\x20messages\x20and\x20sub-agents\x20(no\x20prompt)\x0a\x20\x20delegate-cli\x20sessions\x20rename\x20ID\x20TITLE\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Rename\x20a\x20session\x20(1-500\x20characters)\x0a\x20\x20delegate-cli\x20sessions\x20fork\x20ID\x20[MESSAGE]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Copy\x20session\x20ID\x20into\x20a\x20new\x20session,\x20up\x20to\x20and\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20including\x20message\x20MESSAGE\x20(default:\x20all\x20of\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20it);\x20continue\x20it\x20with\x20--session\x20NEW_ID\x0a\x20\x20delegate-cli\x20sessions\x20cancel\x20ID\x20--turn\x20TURN\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Cancel\x20turn\x20TURN\x20running\x20on\x20session\x20ID\x20in\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20another\x20process;\x20exits\x201\x20when\x20no\x20such\x20turn\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20is\x20in\x20progress\x0a\x20\x20delegate-cli\x20check\x20[--env\x20NAME]\x20[--headless]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Verify\x20auth,\x20backend\x20readiness,\x20backend\x20and\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20interop\x20without\x20sending\x20a\x20prompt;\x20exits\x201\x20when\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20any\x20check\x20fails\x0a\x20\x20delegate-cli\x20usage\x20[--session\x20ID]\x20\x20\x20\x20Quota\x20and\x20spend:\x20licensing\x20quota,\x20monthly\x20spend\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20and\x20cap,\x20Cartographer\x20allowance\x0a\x20\x20delegate-cli\x20usage\x20activity|daily\x20[--days\x20N]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Activity\x20totals,\x20or\x20per-day\x20usage,\x20over\x20the\x20last\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20N\x20days\x20(1-365,\x20default\x2030)\x0a\x20\x20delegate-cli\x20evaluate|rerank|verify\x20FILE|-\x20[--model\x20ID]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Stateless\x20typed\x20judgments:\x20send\x20the\x20JSON\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20request\x20in\x20FILE\x20(or\x20stdin\x20with\x20-)\x20to\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20/v1/completions/<command>\x20and\x20print\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20answers;\x20--model\x20overrides\x20its\x20\x22model\x22.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Exits\x201\x20when\x20the\x20backend\x20rejects\x20it\x0a\x20\x20delegate-cli\x20complete\x20--json-schema\x20FILE\x20[--model\x20ID]\x20[--session\x20ID]\x20\x22<prompt>\x22|-\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20One\x20structured\x20completion,\x20no\x20agent\x20turn:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20print\x20the\x20JSON\x20object\x20matching\x20the\x20schema\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20in\x20FILE\x20(--output-format\x20json\x20prints\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{structured,\x20usage});\x20--session\x20adds\x20that\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20session\x27s\x20history\x20as\x20context.\x20Exits\x201\x20when\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20output\x20fails\x20the\x20schema\x20(422)\x20or\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20backend\x20rejects\x20the\x20request\x0a\x20\x20delegate-cli\x20transcribe\x20FILE|-\x20\x20\x20\x20\x20\x20\x20Speech-to-text:\x20print\x20the\x20text\x20of\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20audio\x20in\x20FILE,\x20or\x20on\x20stdin\x20with\x20-.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20mp3,\x20mp4,\x20mpeg,\x20mpga,\x20m4a,\x20wav\x20or\x20webm,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20up\x20to\x2014\x20MB.\x20Exits\x202\x20when\x20the\x20audio\x20is\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20refused\x20locally,\x201\x20when\x20the\x20backend\x20rejects\x20it\x0a\x20\x20delegate-cli\x20org-users\x20QUERY\x20\x20\x20\x20\x20\x20\x20\x20\x20Search\x20your\x20organization\x27s\x20users\x20by\x20name\x20or\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20email\x20prefix\x20(2-100\x20characters)\x0a\x20\x20delegate-cli\x20delegations\x20create\x20--session\x20ID\x20[--to\x20WHO]\x20[--summary\x20TEXT]\x20\x22<task>\x22|-\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Hand\x20a\x20task\x20from\x20session\x20ID\x20to\x20a\x20colleague\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(WHO:\x20an\x20email,\x20or\x20a\x20name\x20matching\x20one\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20person);\x20without\x20--to,\x20print\x20a\x20link\x20anyone\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20in\x20the\x20organization\x20can\x20claim\x0a\x20\x20delegate-cli\x20delegations\x20pending\x20SESSION\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Answers\x20to\x20delegations\x20from\x20SESSION\x20that\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20await\x20acceptance\x20(poll\x20this)\x0a\x20\x20delegate-cli\x20delegations\x20accept|dismiss|cancel|delete\x20ID\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Take\x20an\x20answer\x20into\x20its\x20session,\x20drop\x20it,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20withdraw\x20a\x20live\x20delegation,\x20or\x20delete\x20it\x0a\x20\x20delegate-cli\x20delegations\x20list\x20PROJECT\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Every\x20delegation\x20targeting\x20a\x20backend\x20project\x0a\x20\x20delegate-cli\x20delegations\x20show|claim\x20ID|LINK\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Read\x20a\x20delegation\x20assigned\x20to\x20you\x20(or\x20a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20delegate://delegation/…\x20link),\x20or\x20claim\x20it:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20prints\x20the\x20session\x20to\x20work\x20it\x20in\x0a\x20\x20delegate-cli\x20delegations\x20complete\x20ID\x20\x22<answer>\x22|-\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Send\x20the\x20answer\x20to\x20a\x20delegation\x20you\x20claimed\x0a\x20\x20delegate-cli\x20host\x20[flags]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Run\x20this\x20PC\x20as\x20a\x20remote\x20worker\x20until\x20Ctrl+C\x0a\x20\x20delegate-cli\x20host\x20install\x20[flags]\x20\x20\x20\x20Auto-start\x20the\x20host\x20at\x20login\x20(macOS\x20LaunchAgent\x20/\x20Windows\x20Scheduled\x20Task)\x0a\x20\x20delegate-cli\x20host\x20uninstall\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Remove\x20auto-start\x0a\x20\x20delegate-cli\x20host\x20status\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20auto-start\x20state\x0a\x20\x20delegate-cli\x20--cleanup\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Stop\x20running\x20interop\x0a\x0aFlags:\x0a\x20\x20-p,\x20--print\x20\x20\x20\x20\x20\x20\x20Run\x20one\x20turn\x20and\x20exit,\x20including\x20any\x20tool\x20execution.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Automatic\x20when\x20stdin\x20or\x20stdout\x20is\x20not\x20a\x20terminal,\x20or\x20with\x20-\x0a\x20\x20--env\x20NAME\x20\x20\x20\x20\x20\x20\x20\x20alpha\x20|\x20staging\x20|\x20production\x20|\x20localhost\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Composes\x20backend\x20URL\x20from\x20saved\x20auth\x20(org/tenant\x20slugs).\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Omitted\x20→\x20the\x20deployment\x20you\x20logged\x20into\x20(delegate-cli\x20login).\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20localhost\x20→\x20http://localhost:5002.\x20No\x20saved\x20login\x20and\x20no\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--env/--backend/BACKEND_URL\x20is\x20an\x20error\x20—\x20never\x20a\x20guess.\x0a\x20\x20--url\x20BASE\x20\x20\x20\x20\x20\x20\x20\x20(login)\x20Base\x20URL\x20of\x20a\x20deployment\x20that\x20is\x20not\x20a\x20named\x20cloud\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20—\x20Automation\x20Suite,\x20Dedicated,\x20Public\x20Sector.\x20Accepts\x20a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20tenant\x20path\x20or\x20a\x20trailing\x20/identity_\x20and\x20reduces\x20it\x20to\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20origin.\x20Mutually\x20exclusive\x20with\x20--env;\x20also\x20settable\x20via\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20UIPATH_BASE_URL.\x20Alias:\x20--authority.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Automation\x20Suite\x20needs\x2026.10+\x20with\x20the\x20Delegate\x20service;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20the\x20deployment\x20rejects\x20the\x20built-in\x20client,\x20register\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20your\x20own\x20—\x20see\x20UIPATH_CLIENT_ID\x20in\x20the\x20README\x0a\x20\x20--skip-env-check\x20\x20(login)\x20Do\x20not\x20check\x20the\x20deployment\x20before\x20signing\x20in.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Escape\x20hatch\x20for\x20a\x20deployment\x20that\x20hides\x20its\x20OIDC\x20discovery\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20document\x20or\x20serves\x20Identity\x20from\x20another\x20origin;\x20it\x20also\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20gives\x20up\x20the\x20diagnosis\x20when\x20something\x20is\x20really\x20wrong\x0a\x20\x20--backend\x20URL\x20\x20\x20\x20\x20Full\x20backend\x20URL\x20—\x20escape\x20hatch\x20overrides\x20--env\x0a\x20\x20--tenant\x20NAME\x20\x20\x20\x20\x20(login)\x20Tenant\x20to\x20sign\x20into,\x20by\x20name\x20(case-insensitive).\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default:\x20the\x20saved\x20login\x27s\x20tenant\x20on\x20that\x20cloud,\x20else\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20org\x27s\x20first\x20tenant.\x20Later:\x20delegate-cli\x20tenant\x20<name>\x0a\x20\x20--model\x20NAME\x20\x20\x20\x20\x20\x20LLM\x20model\x20id\x20(e.g.\x20claude_sonnet_5_5,\x20kimi_k3).\x20Checked\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20against\x20the\x20tenant\x27s\x20catalog\x20(delegate-cli\x20models)\x20before\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20run\x20starts;\x20an\x20unknown\x20id\x20fails\x20and\x20lists\x20the\x20valid\x20ones.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default:\x20gpt_5_6_luna.\x20Also\x20settable\x20via\x20MODEL\x20env\x20var.\x0a\x20\x20--keep-alive\x20\x20\x20\x20\x20\x20Reuse/leave\x20interop\x20running\x20across\x20invocations\x0a\x20\x20--headless\x20\x20\x20\x20\x20\x20\x20\x20Skip\x20interop\x20(text-only\x20prompts)\x0a\x20\x20--no-computer-use\x20Keep\x20interop\x20—\x20file,\x20Office,\x20PDF\x20and\x20shell\x20tools\x20keep\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20working\x20—\x20but\x20drop\x20the\x20screen:\x20no\x20screenshots,\x20no\x20window\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20list,\x20no\x20UI-automation\x20tools.\x20Cuts\x20image\x20tokens\x20and\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20per-turn\x20screen\x20capture,\x20and\x20stops\x20desktop\x20window\x20titles\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20leaving\x20the\x20machine.\x20Use\x20for\x20document\x20and\x20file\x20work.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--headless\x20implies\x20this\x20and\x20turns\x20interop\x20off\x20as\x20well\x0a\x20\x20--no-connections\x20\x20Disable\x20orchestrator\x20ConnectionService\x20(silences\x20404\x20warnings)\x0a\x20\x20--no-security\x20\x20\x20\x20\x20Disable\x20tool\x20security\x20wrapper\x20(use\x20only\x20for\x20debugging)\x0a\x20\x20--no-memory\x20\x20\x20\x20\x20\x20\x20Do\x20not\x20send\x20the\x20Delegate\x20app\x27s\x20local\x20long-term\x20memories\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20with\x20each\x20turn,\x20and\x20do\x20not\x20ask\x20the\x20model\x20to\x20save\x20new\x20ones\x0a\x20\x20--task-automation\x20Record\x20every\x20UI\x20action\x20of\x20the\x20run,\x20with\x20the\x20selector\x20of\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20element\x20it\x20acted\x20on,\x20to\x20<working-dir>/captures/<session>/\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(~/.aria-sdk\x20without\x20--working-dir),\x20so\x20you\x20can\x20then\x20ask\x20for\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20task\x20as\x20a\x20UiPath\x20coded\x20workflow\x20(uipath-taskautomation\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20skill).\x20The\x20log\x20holds\x20on-screen\x20text\x20and\x20your\x20requests;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20typed\x20values\x20are\x20masked.\x20Needs\x20computer\x20use.\x20Ignored\x20with\x20a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20warning\x20where\x20the\x20deployment\x20does\x20not\x20offer\x20it\x20yet\x0a\x20\x20--attach\x20PATH\x20\x20\x20\x20\x20File\x20or\x20folder\x20sent\x20with\x20the\x20first\x20message\x20(repeatable),\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20as\x20the\x20Delegate\x20app\x20sends\x20attached\x20files:\x20images\x20inline,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20PDFs\x20and\x20other\x20documents\x20as\x20a\x20path\x20the\x20agent\x20reads,\x20text\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20inline\x20up\x20to\x2016,000\x20characters.\x2030\x20MiB\x20per\x20message\x20in\x20all;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20larger\x20files\x20go\x20as\x20a\x20path.\x20In\x20a\x20conversation,\x20later\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20messages\x20carry\x20none\x20of\x20their\x20own,\x20but\x20the\x20first\x20message\x27s\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20stay\x20in\x20context\x0a\x20\x20--preload-skill\x20NAME\x20\x20Preload\x20a\x20skill\x20into\x20the\x20session\x20(repeatable).\x20The\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20skill\x27s\x20content\x20is\x20attached\x20before\x20the\x20first\x20model\x20turn\x20—\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20same\x20mechanism\x20as\x20project\x20preloaded\x20skills\x20in\x20the\x20app\x0a\x20\x20--cartographer\x20\x20\x20\x20Cartographer\x20engagement\x20preset.\x20Equivalent\x20to\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--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\x20--preload-skill\x20source-coverage\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--preload-skill\x20note-taker.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Add\x20--project/--working-dir\x20for\x20where\x20the\x20files\x20live,\x20and\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20extra\x20--preload-skill\x20flags\x20for\x20more\x20skills\x20—\x20a\x20skill\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20preset\x20already\x20covers\x20is\x20not\x20preloaded\x20twice.\x20An\x20explicit\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--headless\x20still\x20wins\x20and\x20turns\x20interop\x20off\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'[_0x25f7ee(0x23a)]();console[_0x25f7ee(0x2f8)](_0x52ace7);}function Lt(){const _0x1154c7=_0x2e9e2a;try{return JSON[_0x1154c7(0x365)](_0x59b7ea['readFileSync'](_0x15228c['join'](__dirname,'..',_0x1154c7(0x1aa)),'utf-8'))[_0x1154c7(0x27b)]||'unknown';}catch{return _0x1154c7(0x31d);}}var Ot=0x7d0;async function ie(_0x3f47e9,_0x1faf67){const _0x563248=_0x2e9e2a;let _0x28d164=_0x1faf67?[_0x1faf67]:[];for await(let _0x42c431 of _0x3f47e9)_0x28d164[_0x563248(0x371)](Buffer['from'](_0x42c431));return Buffer[_0x563248(0x2e2)](_0x28d164)[_0x563248(0x20e)](_0x563248(0x211))[_0x563248(0x23a)]();}function Ft(_0x2ae04e,_0x56d0eb){return new Promise(_0x2d5d38=>{const _0x3d0237=_0xced2;let _0x343303=_0x4fb673=>{const _0x52ec58=_0xced2;clearTimeout(_0x1809bc),_0x2ae04e['off']('data',_0x4af3a4),_0x2ae04e[_0x52ec58(0x35b)](_0x52ec58(0x376),_0x54d778),_0x2ae04e[_0x52ec58(0x35b)](_0x52ec58(0x2a6),_0x54d778),_0x2ae04e[_0x52ec58(0x228)](),_0x2d5d38(_0x4fb673);},_0x4af3a4=_0x3e4113=>_0x343303(Buffer[_0x3d0237(0x2cf)](_0x3e4113)),_0x54d778=()=>_0x343303(null),_0x1809bc=setTimeout(()=>_0x343303(null),_0x56d0eb);_0x2ae04e['on']('data',_0x4af3a4),_0x2ae04e['on']('end',_0x54d778),_0x2ae04e['on'](_0x3d0237(0x2a6),_0x54d778),_0x2ae04e[_0x3d0237(0x1cd)]();});}async function j(_0x2bf3f4,_0x553421,_0x3f6e06=Ot){const _0x14ee8b=_0x2e9e2a;let _0x2fbf34=_0x2bf3f4==='-';if(!_0x2fbf34&&_0x2bf3f4)return _0x2bf3f4;if(!_0x2fbf34&&_0x553421[_0x14ee8b(0x27d)])return'';if(_0x2fbf34)return ie(_0x553421,null);let _0x40e4de=await Ft(_0x553421,_0x3f6e06);return _0x40e4de?ie(_0x553421,_0x40e4de):'';}function K(){const _0x64c601=_0x2e9e2a;return _0x15228c[_0x64c601(0x328)](process.env.HOME||process.env.USERPROFILE||'',_0x64c601(0x1bc),_0x64c601(0x2a4));}function M(_0x5cbc17){const _0x2c7b11=_0x2e9e2a;try{let _0x80ddb0=JSON[_0x2c7b11(0x365)](_0x59b7ea['readFileSync'](_0x5cbc17,'utf-8'));return!_0x80ddb0[_0x2c7b11(0x383)]||!_0x80ddb0['tenantId']||!_0x80ddb0[_0x2c7b11(0x297)]?null:_0x80ddb0;}catch{return null;}}function jt(){const _0x5102f9=_0x2e9e2a;let _0x3570dd=[{'file':_0x1e3ef0(),'isDesktopFallback':!0x1},{'file':K(),'isDesktopFallback':!0x0}];for(let _0x158b0e of _0x3570dd){let _0x5e2d94=M(_0x158b0e[_0x5102f9(0x325)]);if(_0x5e2d94)return{..._0x158b0e,'auth':_0x5e2d94};}return null;}async function Mt(){const _0x1f63b5=_0x2e9e2a;let _0x11f0a2=_0x1e3ef0();if(!_0x59b7ea[_0x1f63b5(0x260)](_0x11f0a2)){let _0x2f9a96=K();console[_0x1f63b5(0x2f8)](M(_0x2f9a96)?_0x1f63b5(0x24a)+_0x2f9a96+_0x1f63b5(0x377):_0x1f63b5(0x26a));return;}_0x59b7ea[_0x1f63b5(0x289)](_0x11f0a2),console[_0x1f63b5(0x2f8)](_0x1f63b5(0x298)+_0x11f0a2);}async function Bt(_0xf7de6b){const _0x4895a0=_0x2e9e2a;let _0x2458b4=Q(),_0x4d69b6,_0x5a2362;if(_0x2458b4)_0x4d69b6=_0x2458b4,_0x5a2362=_0x4895a0(0x2d8);else{let _0x132265=jt();if(!_0x132265)throw new Error(Se);_0x4d69b6=_0x132265[_0x4895a0(0x2ba)],_0x5a2362=_0x132265[_0x4895a0(0x1a5)]?_0x132265[_0x4895a0(0x325)]+_0x4895a0(0x240):_0x132265['file'];}let _0x151fde={'source':_0x5a2362,'baseUrl':_0x4d69b6[_0x4895a0(0x2e9)]??null,'deployment':Ht(_0x4d69b6[_0x4895a0(0x2e9)]),'organization':{'id':_0x4d69b6['organizationId'],'slug':_0x4d69b6[_0x4895a0(0x351)]??null},'tenant':{'id':_0x4d69b6[_0x4895a0(0x281)],'name':_0x4d69b6[_0x4895a0(0x2f2)]??null},'tokenExpiresAt':_0x4d69b6[_0x4895a0(0x231)]?new Date(_0x4d69b6[_0x4895a0(0x231)]*0x3e8)[_0x4895a0(0x2fb)]():null};u(_0xf7de6b,_0x151fde,()=>{const _0x1eeb29=_0x4895a0;let _0x5393ec=['Source:\x20\x20\x20\x20\x20\x20\x20'+_0x5a2362,'Base\x20URL:\x20\x20\x20\x20\x20'+(_0x4d69b6[_0x1eeb29(0x2e9)]??'unknown'),_0x1eeb29(0x314)+_0x151fde[_0x1eeb29(0x299)],_0x1eeb29(0x1c0)+(_0x4d69b6['orgLogicalName']??'unknown\x20slug')+'\x20('+_0x4d69b6[_0x1eeb29(0x297)]+')',_0x1eeb29(0x19c)+(_0x4d69b6[_0x1eeb29(0x2f2)]??_0x1eeb29(0x250))+'\x20('+_0x4d69b6[_0x1eeb29(0x281)]+')'];if(_0x4d69b6[_0x1eeb29(0x231)]){let _0x3bf4a9=_0x4d69b6[_0x1eeb29(0x231)]-Math['floor'](Date[_0x1eeb29(0x294)]()/0x3e8);_0x5393ec[_0x1eeb29(0x371)](_0x3bf4a9>0x0?_0x1eeb29(0x235)+_0x151fde[_0x1eeb29(0x292)]+'\x20(in\x20'+Math['round'](_0x3bf4a9/0x3c)+_0x1eeb29(0x264):_0x1eeb29(0x2de)+_0x151fde['tokenExpiresAt']);}process[_0x1eeb29(0x1f3)][_0x1eeb29(0x277)](_0x5393ec[_0x1eeb29(0x328)]('\x0a')+'\x0a');});}var Se=_0x2e9e2a(0x346);function Ht(_0x2c08fb){const _0x4481d1=_0x2e9e2a;return _0x2c08fb?_0x7b7f6(_0x2c08fb)?_0x4481d1(0x322):_0x4481d1(0x380):_0x4481d1(0x31d);}function Q(){let _0x56a2ef=process.env.AUTH_TOKEN_FILE;return(process.env.AUTH_TOKEN||_0x56a2ef)&&process.env.TENANT_ID&&process.env.ORG_ID?{'accessToken':_0x56a2ef?Jt(_0x56a2ef):process.env.AUTH_TOKEN,..._0x56a2ef?{'accessTokenFile':_0x56a2ef}:{},'tenantId':process.env.TENANT_ID,'organizationId':process.env.ORG_ID,'orgLogicalName':process.env.ORG_SLUG,'tenantName':process.env.TENANT_SLUG,'baseUrl':ve()}:null;}function Jt(_0x3d52ae){const _0x2fe431=_0x2e9e2a;let _0x46258e;try{_0x46258e=_0x59b7ea[_0x2fe431(0x2af)](_0x3d52ae,_0x2fe431(0x211))[_0x2fe431(0x23a)]();}catch(_0x5ef5d3){throw new Error(_0x2fe431(0x315)+_0x3d52ae+_0x2fe431(0x220)+_0x5ef5d3[_0x2fe431(0x290)]);}let _0x40206e=_0x46258e[_0x2fe431(0x323)]('Bearer\x20')?_0x46258e[_0x2fe431(0x2f0)](0x7)['trim']():_0x46258e;if(!_0x40206e)throw new Error(_0x2fe431(0x315)+_0x3d52ae+_0x2fe431(0x2ef));return _0x40206e;}function ve(){const _0x21e7ff=_0x2e9e2a;let _0x247207=process.env.UIPATH_BASE_URL;if(!_0x247207)return;let _0x327aed=_0x340ce0(_0x247207);if(_0x327aed['ok']===!0x1)throw new Error(_0x21e7ff(0x274)+_0x527ffb(_0x247207,_0x327aed['rejection']));return _0x327aed[_0x21e7ff(0x2e9)];}async function q(){let _0x125880=Q();if(_0x125880)return _0x125880;let _0x524593=await _0x100037();if(_0x524593)return _0x524593;throw new Error(Se);}async function Gt(){const _0x43b3e3=_0x2e9e2a;await new _0x2c67a7()[_0x43b3e3(0x248)]({'force':!0x0}),console[_0x43b3e3(0x2f8)](_0x43b3e3(0x203));}function z(_0x518992,_0x2dcc33,_0x200f6b){const _0x17f472=_0x2e9e2a;_0x518992?process[_0x17f472(0x2c8)][_0x17f472(0x277)]('[env='+_0x518992+_0x17f472(0x36b)+_0x200f6b+'\x0a'):!_0x2dcc33&&!process.env.BACKEND_URL&&process[_0x17f472(0x2c8)][_0x17f472(0x277)](_0x17f472(0x32b)+_0x200f6b+'\x0a');}async function v(_0x3a25c3){const _0x497965=_0x2e9e2a;let _0xa8f7ae=await q(),_0x47dfb8=_0x93f1b3(_0x3a25c3[_0x497965(0x2ea)],_0xa8f7ae,_0x3a25c3[_0x497965(0x1e1)]);return z(_0x3a25c3[_0x497965(0x2ea)],_0x3a25c3[_0x497965(0x1e1)],_0x47dfb8),{'auth':_0xa8f7ae,'backendUrl':_0x47dfb8,'client':_0x5b0f18({'auth':_0xa8f7ae,'backendUrl':_0x47dfb8})};}async function Wt(_0x53ca7f){const _0x2f79ef=_0x2e9e2a;let {client:_0x1c59ee}=await v(_0x53ca7f),[_0x4b5cc8,_0x5f322a]=await Promise['all']([_0x3e416d(_0x1c59ee),_0x290f25(_0x1c59ee)[_0x2f79ef(0x341)](_0x1af513=>(process['stderr'][_0x2f79ef(0x277)](_0x2f79ef(0x32f)+(_0x1af513 instanceof Error?_0x1af513[_0x2f79ef(0x290)]:String(_0x1af513))+'\x0a'),{}))]),_0x3dce1b=_0x4b5cc8['map'](_0x1b55ad=>_0x5f322a[_0x1b55ad['id']]?{..._0x1b55ad,'byoWarning':_0x5f322a[_0x1b55ad['id']]}:_0x1b55ad);u(_0x53ca7f,_0x3dce1b,Kt);}function Kt(_0x4bbacd){const _0x2f637c=_0x2e9e2a;if(_0x4bbacd[_0x2f637c(0x1ae)]===0x0){process[_0x2f637c(0x2c8)][_0x2f637c(0x277)](_0x2f637c(0x225));return;}process['stdout'][_0x2f637c(0x277)](_0x2f637c(0x229)+_0x4bbacd[_0x2f637c(0x1ae)]+_0x2f637c(0x35e));for(let _0x4b2f73 of _0x4bbacd){let _0x27cff6=_0x4b2f73[_0x2f637c(0x358)]&&_0x4b2f73[_0x2f637c(0x358)]!==_0x4b2f73['id']?'\x20('+_0x4b2f73[_0x2f637c(0x358)]+')':'';process['stdout'][_0x2f637c(0x277)]('\x20\x20'+_0x4b2f73['id']+_0x27cff6+'\x0a'),_0x4b2f73[_0x2f637c(0x335)]&&process[_0x2f637c(0x1f3)][_0x2f637c(0x277)](_0x2f637c(0x310)+_0x4b2f73[_0x2f637c(0x335)]+'\x0a'),_0x4b2f73['locked']&&process['stdout'][_0x2f637c(0x277)]('\x20\x20\x20\x20Not\x20available\x20on\x20this\x20plan'+(_0x4b2f73['lockReason']?'\x20('+_0x4b2f73[_0x2f637c(0x2c6)]+')':'')+'\x0a'),_0x4b2f73['byoWarning']&&process['stdout'][_0x2f637c(0x277)](_0x2f637c(0x256)+_0x4b2f73['byoWarning']+'\x0a');}process[_0x2f637c(0x1f3)]['write']('\x0aUse\x20with:\x20delegate-cli\x20--model\x20<id>\x20\x22<prompt>\x22\x0a');}var ae=['list','show',_0x2e9e2a(0x1d5),'delete',_0x2e9e2a(0x212),'fork'];async function Qt(_0x96b956){const _0x15f5ea=_0x2e9e2a;let [_0x130554='',_0x1a35e8='',..._0x4c4e69]=_0x96b956[_0x15f5ea(0x263)];if(_0x130554&&!ae[_0x15f5ea(0x284)](_0x130554)&&(console[_0x15f5ea(0x2a6)](_0x15f5ea(0x334)+_0x130554+_0x15f5ea(0x34e)+ae['join']('\x20|\x20')+'.'),process[_0x15f5ea(0x26b)](0x2)),_0x96b956[_0x15f5ea(0x2e3)]!==void 0x0&&_0x130554!==_0x15f5ea(0x212)&&(console[_0x15f5ea(0x2a6)](_0x15f5ea(0x20d)),process[_0x15f5ea(0x26b)](0x2)),_0x130554&&_0x130554!=='list'){await qt(_0x96b956,_0x130554,_0x1a35e8,_0x4c4e69['join']('\x20')[_0x15f5ea(0x23a)]());return;}_0x96b956['operands']['length']>0x1&&(console[_0x15f5ea(0x2a6)](_0x15f5ea(0x2d2)),process[_0x15f5ea(0x26b)](0x2));let {client:_0x170461}=await v(_0x96b956),_0x59ec46=await _0x2d2595(_0x170461,{'page':_0x96b956[_0x15f5ea(0x33c)],'pageSize':_0x96b956[_0x15f5ea(0x31c)],'includeSubAgents':_0x96b956[_0x15f5ea(0x2a8)]});u(_0x96b956,_0x59ec46,Xt);}async function qt(_0x3bf2c2,_0x459fd9,_0x24f056,_0x2186e7){const _0x3be93c=_0x2e9e2a;if((_0x3bf2c2[_0x3be93c(0x33c)]!==void 0x0||_0x3bf2c2[_0x3be93c(0x31c)]!==void 0x0||_0x3bf2c2[_0x3be93c(0x2a8)])&&(console['error'](_0x3be93c(0x303)),process['exit'](0x2)),_0x459fd9===_0x3be93c(0x212)){await Yt(_0x3bf2c2,_0x24f056,_0x2186e7);return;}if(_0x459fd9==='fork'){await Vt(_0x3bf2c2,_0x24f056,_0x2186e7);return;}(!_0x24f056||_0x459fd9===_0x3be93c(0x1d5)!=!!_0x2186e7)&&(console[_0x3be93c(0x2a6)](_0x3be93c(0x19e)+_0x459fd9+_0x3be93c(0x36d)+(_0x459fd9===_0x3be93c(0x1d5)?_0x3be93c(0x33a):'')),process[_0x3be93c(0x26b)](0x2));let {client:_0x3cba35}=await v(_0x3bf2c2);try{if(_0x459fd9===_0x3be93c(0x2eb)){let _0x3619fc=await _0x277864(_0x3cba35,_0x24f056);_0x3619fc||le(_0x24f056),u(_0x3bf2c2,_0x3619fc,zt);}else{if(_0x459fd9===_0x3be93c(0x1d5)){let _0x2c3197=await _0x26537b(_0x3cba35,_0x24f056,_0x2186e7);u(_0x3bf2c2,_0x2c3197,_0x540435=>{const _0x18f556=_0x3be93c;process['stdout'][_0x18f556(0x277)]('Renamed\x20'+_0x540435['id']+':\x20'+_0x540435[_0x18f556(0x224)]+'\x0a');});}else await _0x2384e2(_0x3cba35,_0x24f056),await _0x3682ef(_0x24f056,_0x3bf2c2[_0x3be93c(0x1c6)]),u(_0x3bf2c2,{'id':_0x24f056,'deleted':!0x0},_0x168980=>{const _0x1152e5=_0x3be93c;process[_0x1152e5(0x1f3)][_0x1152e5(0x277)](_0x1152e5(0x19a)+_0x168980['id']+'.\x0a');});}}catch(_0x4458a2){if(!_0x10cfd4(_0x4458a2,0x194))throw _0x4458a2;le(_0x24f056);}}function le(_0x4cda2a){const _0x457a64=_0x2e9e2a;console[_0x457a64(0x2a6)](_0x457a64(0x37a)+_0x4cda2a+_0x457a64(0x311)),process[_0x457a64(0x26b)](0x1);}function zt(_0x3deb86){const _0x1aa3d8=_0x2e9e2a;process['stdout'][_0x1aa3d8(0x277)](_0x1aa3d8(0x1ab)+_0x3deb86['id']+'\x0a'),process[_0x1aa3d8(0x1f3)][_0x1aa3d8(0x277)](_0x1aa3d8(0x356)+_0x3deb86[_0x1aa3d8(0x224)]+'\x0a'),process[_0x1aa3d8(0x1f3)][_0x1aa3d8(0x277)](_0x1aa3d8(0x1d8)+_0x3deb86[_0x1aa3d8(0x1b4)]+'\x0a'),process['stdout'][_0x1aa3d8(0x277)](_0x1aa3d8(0x244)+_0x3deb86[_0x1aa3d8(0x297)]+'\x0a'),_0x3deb86['delegationId']&&process[_0x1aa3d8(0x1f3)]['write']('Delegation\x20\x20\x20\x20'+_0x3deb86[_0x1aa3d8(0x1db)]+'\x0a');}async function Yt(_0x28623f,_0xceb205,_0x4206fe){const _0x1360ae=_0x2e9e2a;(!_0xceb205||_0x4206fe||!_0x28623f['turnId'])&&(console[_0x1360ae(0x2a6)](_0x1360ae(0x2db)),process[_0x1360ae(0x26b)](0x2));let {client:_0x2b28e9}=await v(_0x28623f),_0x1b854d=await _0x100f17(_0x2b28e9,_0xceb205,_0x28623f['turnId']);u(_0x28623f,{'sessionId':_0xceb205,'turnId':_0x28623f['turnId'],'cancelled':_0x1b854d},_0x5561c5=>{const _0x1db6ff=_0x1360ae;_0x5561c5[_0x1db6ff(0x318)]?process[_0x1db6ff(0x1f3)]['write'](_0x1db6ff(0x1ff)+_0x5561c5['turnId']+_0x1db6ff(0x272)+_0x5561c5[_0x1db6ff(0x1bd)]+'.\x0a'):process[_0x1db6ff(0x2c8)][_0x1db6ff(0x277)]('No\x20turn\x20'+_0x5561c5[_0x1db6ff(0x2e3)]+_0x1db6ff(0x2e0)+_0x5561c5[_0x1db6ff(0x1bd)]+'.\x0a');}),_0x1b854d||(process[_0x1360ae(0x320)]=0x1);}async function Vt(_0x1f680b,_0x161f92,_0x3a2ab2){const _0x1821d0=_0x2e9e2a;(!_0x161f92||/\s/[_0x1821d0(0x254)](_0x3a2ab2))&&(console[_0x1821d0(0x2a6)](_0x1821d0(0x245)),process[_0x1821d0(0x26b)](0x2));let {client:_0x3c6ba4}=await v(_0x1f680b),_0x3c1627;try{_0x3c1627=await _0x4d474e(_0x3c6ba4,_0x161f92,{'atMessageId':_0x3a2ab2||void 0x0});}catch(_0x25661c){if(!_0x10cfd4(_0x25661c,0x194))throw _0x25661c;console[_0x1821d0(0x2a6)](_0x1821d0(0x37a)+_0x161f92+_0x1821d0(0x1e2)+(_0x3a2ab2?_0x1821d0(0x2d0)+_0x3a2ab2:'')+'.'),process[_0x1821d0(0x26b)](0x1);}u(_0x1f680b,_0x3c1627,_0x5dc8d9=>{const _0x5896dd=_0x1821d0;process[_0x5896dd(0x1f3)]['write']('Forked\x20'+_0x161f92+_0x5896dd(0x2ee)+_0x5dc8d9['id']+'.\x0a'),process['stderr'][_0x5896dd(0x277)](_0x5896dd(0x1f7)+_0x5dc8d9['id']+_0x5896dd(0x28e));});}function Xt({sessions:_0x579c13,page:_0x416958,isLastPage:_0x53b985}){const _0xb1610c=_0x2e9e2a;if(_0x579c13[_0xb1610c(0x1ae)]===0x0)process[_0xb1610c(0x2c8)]['write'](_0xb1610c(0x1f5)+_0x416958+'.\x0a');else{process[_0xb1610c(0x1f3)][_0xb1610c(0x277)]('ID'[_0xb1610c(0x372)](0x24)+'\x20\x20'+_0xb1610c(0x21d)[_0xb1610c(0x372)](0x13)+_0xb1610c(0x343));for(let _0x24ceeb of _0x579c13){let _0x48f796=_0x24ceeb['updatedAt']['replace']('T','\x20')[_0xb1610c(0x2f0)](0x0,0x13),_0x18b163=_0x24ceeb['parentSessionId']?_0xb1610c(0x2b9)+_0x24ceeb[_0xb1610c(0x2fc)]+')':'';process[_0xb1610c(0x1f3)][_0xb1610c(0x277)](_0x24ceeb['id'][_0xb1610c(0x372)](0x24)+'\x20\x20'+_0x48f796[_0xb1610c(0x372)](0x13)+'\x20\x20'+_0x24ceeb[_0xb1610c(0x224)]+_0x18b163+'\x0a');}}_0x53b985||process[_0xb1610c(0x2c8)][_0xb1610c(0x277)](_0xb1610c(0x374)+(_0x416958+0x1)+'\x0a');}function _0xced2(_0x1641ab,_0x352c25){_0x1641ab=_0x1641ab-0x199;const _0x3c878c=_0x3c87();let _0xced272=_0x3c878c[_0x1641ab];return _0xced272;}async function Zt(_0x2acc48){const _0x4df9c0=_0x2e9e2a;let _0x236346=await q(),_0x3823e4=_0x93f1b3(_0x2acc48[_0x4df9c0(0x2ea)],_0x236346,_0x2acc48[_0x4df9c0(0x1e1)]);z(_0x2acc48[_0x4df9c0(0x2ea)],_0x2acc48[_0x4df9c0(0x1e1)],_0x3823e4);let _0xbad7cc=await _0x149765({'auth':_0x236346,'backendUrl':_0x3823e4,'interop':_0x2acc48[_0x4df9c0(0x37b)]?_0x4df9c0(0x262):_0x4df9c0(0x2aa)});u(_0x2acc48,_0xbad7cc,({checks:_0x534046})=>{const _0x5a580d=_0x4df9c0;for(let _0x197881 of _0x534046)process[_0x5a580d(0x1f3)][_0x5a580d(0x277)](en(_0x197881)+'\x0a');}),_0xbad7cc['ok']||process[_0x4df9c0(0x26b)](0x1);}function en(_0x27d7fb){const _0x51e91a=_0x2e9e2a;return{'ok':'✓','failed':'✗','skipped':'-'}[_0x27d7fb[_0x51e91a(0x337)]]+'\x20'+_0x27d7fb[_0x51e91a(0x358)][_0x51e91a(0x372)](0xa)+_0x27d7fb['detail'];}var tn=['','activity','daily'];async function nn(_0x342a9c){const _0x5d36c3=_0x2e9e2a;let _0x1d8adf=_0x342a9c['prompt'];tn['includes'](_0x1d8adf)||(console[_0x5d36c3(0x2a6)](_0x5d36c3(0x33e)+_0x342a9c[_0x5d36c3(0x34a)]+_0x5d36c3(0x2d5)),process[_0x5d36c3(0x26b)](0x2)),_0x1d8adf===''&&_0x342a9c[_0x5d36c3(0x359)]!==void 0x0&&(console[_0x5d36c3(0x2a6)](_0x5d36c3(0x308)),process[_0x5d36c3(0x26b)](0x2)),_0x1d8adf!==''&&_0x342a9c[_0x5d36c3(0x1bd)]!==void 0x0&&(console[_0x5d36c3(0x2a6)](_0x5d36c3(0x36a)),process[_0x5d36c3(0x26b)](0x2));let {client:_0x4dc953}=await v(_0x342a9c);if(_0x1d8adf==='activity'){u(_0x342a9c,await _0x56c562(_0x4dc953,{'days':_0x342a9c['days']}),sn);return;}if(_0x1d8adf==='daily'){u(_0x342a9c,await _0x37ba7b(_0x4dc953,{'days':_0x342a9c[_0x5d36c3(0x359)]}),rn);return;}let [_0x52fed0,_0x4dbb0d,_0x489475]=await Promise[_0x5d36c3(0x22b)]([_0xe2558d(_0x4dc953,{'sessionId':_0x342a9c[_0x5d36c3(0x1bd)]}),_0xc3be4f(_0x4dc953),_0x5c8757(_0x4dc953)]);u(_0x342a9c,{'licensing':_0x52fed0,'monthlySpending':_0x4dbb0d,'cartographerAllowance':_0x489475},on);}function on(_0x416198){const _0x440a88=_0x2e9e2a;let {licensing:_0x10ac4d,monthlySpending:_0x21205e,cartographerAllowance:_0x31db5b}=_0x416198,_0x341b0f=[_0x10ac4d['limit_enabled']?_0x440a88(0x32a)+_0x10ac4d[_0x440a88(0x23d)][_0x440a88(0x1ce)](0x1)+_0x440a88(0x1c9)+(_0x10ac4d[_0x440a88(0x19f)]??0x0)+'\x20PU\x20used'+(_0x10ac4d[_0x440a88(0x1c4)]>0x0?',\x20'+_0x10ac4d[_0x440a88(0x1c4)]+_0x440a88(0x2c9):'')+_0x440a88(0x23f)+_0x10ac4d['period_end']+')':_0x440a88(0x319),'Spending:\x20\x20\x20\x20\x20$'+_0x21205e[_0x440a88(0x1b7)][_0x440a88(0x1ce)](0x2)+_0x440a88(0x208)+(_0x21205e[_0x440a88(0x327)]&&_0x21205e['monthly_limit_usd']!==null?_0x440a88(0x217)+_0x21205e[_0x440a88(0x2d6)]['toFixed'](0x2)+'\x20cap':'\x20(no\x20cap\x20enforced)'),_0x440a88(0x2a1)+_0x31db5b[_0x440a88(0x30d)]+'\x20('+_0x31db5b['model_id']+')'];_0x10ac4d[_0x440a88(0x32c)]!==null&&_0x10ac4d[_0x440a88(0x32c)]!==void 0x0&&_0x341b0f[_0x440a88(0x371)](_0x440a88(0x291)+_0x10ac4d[_0x440a88(0x32c)]+'\x20PU'),process[_0x440a88(0x1f3)][_0x440a88(0x277)](_0x341b0f[_0x440a88(0x328)]('\x0a')+'\x0a');}function sn(_0x211bf4){const _0x206689=_0x2e9e2a;let _0x20c62a=[_0x206689(0x2d3)+_0x211bf4[_0x206689(0x242)]+'\x20days:\x20'+_0x211bf4[_0x206689(0x2e8)]+_0x206689(0x2f7)+_0x211bf4[_0x206689(0x239)]+_0x206689(0x326),_0x206689(0x249)+_0x211bf4[_0x206689(0x20f)][_0x206689(0x1ce)](0x2)+_0x206689(0x1e0)+_0x211bf4[_0x206689(0x238)][_0x206689(0x1ce)](0x2)+_0x206689(0x2c1)+_0x211bf4[_0x206689(0x36f)]+_0x206689(0x353),'Tokens:\x20'+_0x211bf4[_0x206689(0x21a)]+_0x206689(0x20a)+_0x211bf4[_0x206689(0x36c)]+_0x206689(0x2b7)];for(let [_0x270f53,_0x2b8663]of Object[_0x206689(0x1ed)](_0x211bf4[_0x206689(0x37e)]))_0x20c62a[_0x206689(0x371)]('\x20\x20'+_0x270f53+':\x20'+_0x2b8663+_0x206689(0x1fc));process['stdout'][_0x206689(0x277)](_0x20c62a['join']('\x0a')+'\x0a');}function rn(_0x16a475){const _0x572fe2=_0x2e9e2a;if(_0x16a475[_0x572fe2(0x37f)]['length']===0x0){process[_0x572fe2(0x1f3)][_0x572fe2(0x277)](_0x572fe2(0x266)+_0x16a475[_0x572fe2(0x242)]+_0x572fe2(0x1d6));return;}let _0xdc2fc5=[_0x572fe2(0x347)];for(let _0x5d5c98 of _0x16a475[_0x572fe2(0x37f)])_0xdc2fc5[_0x572fe2(0x371)](_0x5d5c98[_0x572fe2(0x301)]+'\x20\x20'+String(_0x5d5c98[_0x572fe2(0x26f)])[_0x572fe2(0x269)](0xb)+'\x20\x20'+String(_0x5d5c98['prompt_tokens'])[_0x572fe2(0x269)](0xd)+'\x20\x20'+String(_0x5d5c98[_0x572fe2(0x247)])[_0x572fe2(0x269)](0x11));process[_0x572fe2(0x1f3)][_0x572fe2(0x277)](_0xdc2fc5[_0x572fe2(0x328)]('\x0a')+'\x0a');}async function an(_0x53f41c,_0x5adefe){const _0xa4ad48=_0x2e9e2a;let _0x3d22af=await ln(_0x53f41c['prompt'],_0x5adefe);_0x53f41c[_0xa4ad48(0x215)]&&(_0x3d22af[_0xa4ad48(0x215)]=_0x53f41c[_0xa4ad48(0x215)]);let {client:_0x57b0a6}=await v(_0x53f41c);try{_0x5adefe===_0xa4ad48(0x1ee)?u(_0x53f41c,await _0x1fec2d(_0x57b0a6,_0x3d22af,void 0x0),dn):_0x5adefe===_0xa4ad48(0x2b6)?u(_0x53f41c,await _0x106b08(_0x57b0a6,_0x3d22af,void 0x0),un):u(_0x53f41c,await _0x63e95f(_0x57b0a6,_0x3d22af,void 0x0),pn);}catch(_0x3f659d){if(!_0x41fd98(_0x3f659d))throw _0x3f659d;console['error'](_0x3f659d[_0xa4ad48(0x290)]),process[_0xa4ad48(0x26b)](0x1);}}async function ln(_0x32d281,_0x5a598b){const _0x114952=_0x2e9e2a;let _0x2c2ad0;try{_0x2c2ad0=_0x32d281&&_0x32d281!=='-'?_0x59b7ea[_0x114952(0x2af)](_0x15228c['resolve'](_0x32d281),'utf-8'):await j(_0x32d281,process[_0x114952(0x27c)]);}catch(_0x4d460a){console[_0x114952(0x2a6)](_0x5a598b+':\x20cannot\x20read\x20the\x20request\x20('+_0x4d460a[_0x114952(0x290)]+').'),process[_0x114952(0x26b)](0x2);}return _0x2c2ad0||(console[_0x114952(0x2a6)](_0x5a598b+'\x20needs\x20a\x20JSON\x20request:\x20delegate-cli\x20'+_0x5a598b+_0x114952(0x1cb)),process[_0x114952(0x26b)](0x2)),Ae(_0x2c2ad0,_0x5a598b,_0x114952(0x241));}function Ae(_0x3dd2b5,_0x4366bf,_0x2c98de){const _0x2e2a5d=_0x2e9e2a;let _0x327739;try{_0x327739=JSON[_0x2e2a5d(0x365)](_0x3dd2b5);}catch(_0x1291d7){console['error'](_0x4366bf+':\x20'+_0x2c98de+'\x20is\x20not\x20valid\x20JSON\x20('+_0x1291d7[_0x2e2a5d(0x290)]+').'),process['exit'](0x2);}return(typeof _0x327739!=_0x2e2a5d(0x246)||_0x327739===null||Array['isArray'](_0x327739))&&(console[_0x2e2a5d(0x2a6)](_0x4366bf+':\x20'+_0x2c98de+'\x20must\x20be\x20a\x20JSON\x20object.'),process[_0x2e2a5d(0x26b)](0x2)),_0x327739;}function $e(_0x135f93,_0x13f62f){const _0x374f29=_0x2e9e2a;let _0x970a30;try{_0x970a30=_0x59b7ea[_0x374f29(0x2af)](_0x15228c[_0x374f29(0x32d)](_0x135f93),_0x374f29(0x211));}catch(_0x513785){console['error'](_0x13f62f+':\x20cannot\x20read\x20the\x20JSON\x20schema\x20('+_0x513785[_0x374f29(0x290)]+').'),process['exit'](0x2);}return Ae(_0x970a30,_0x13f62f,_0x374f29(0x1ba));}async function cn(_0x37fd1e){const _0x2f862b=_0x2e9e2a;_0x37fd1e[_0x2f862b(0x1a7)]===void 0x0&&(console[_0x2f862b(0x2a6)](_0x2f862b(0x2e4)),process[_0x2f862b(0x26b)](0x2));let _0x485468=$e(_0x37fd1e[_0x2f862b(0x1a7)],_0x2f862b(0x1ad)),_0x4662fa=(await j(_0x37fd1e[_0x2f862b(0x34a)],process[_0x2f862b(0x27c)]))[_0x2f862b(0x23a)]();_0x4662fa||(console[_0x2f862b(0x2a6)]('complete\x20needs\x20a\x20prompt:\x20delegate-cli\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22,\x20or\x20-\x20to\x20read\x20stdin.'),process['exit'](0x2));let {client:_0x1efc48}=await v(_0x37fd1e);try{let _0x9852fb=await _0x3c1dee(_0x1efc48,{'prompt':_0x4662fa,'jsonSchema':_0x485468,'model':_0x37fd1e[_0x2f862b(0x215)]||process.env.MODEL||_0x26204d,..._0x37fd1e['sessionId']!==void 0x0&&{'sessionId':_0x37fd1e[_0x2f862b(0x1bd)]}},void 0x0);u(_0x37fd1e,_0x9852fb,_0x452c03=>{const _0x2ebf8b=_0x2f862b;process['stdout'][_0x2ebf8b(0x277)](JSON[_0x2ebf8b(0x251)](_0x452c03[_0x2ebf8b(0x1eb)],null,0x2)+'\x0a');});}catch(_0x380333){if(!_0x3fedeb(_0x380333))throw _0x380333;console['error'](_0x380333[_0x2f862b(0x290)]),process[_0x2f862b(0x26b)](0x1);}}function Y(_0x3a7155){const _0x47eba9=_0x2e9e2a;process[_0x47eba9(0x1f3)][_0x47eba9(0x277)]('Model\x20'+_0x3a7155['model']+'\x20('+_0x3a7155[_0x47eba9(0x287)]+_0x47eba9(0x1a2)+_0x3a7155[_0x47eba9(0x35c)][_0x47eba9(0x1f6)]+_0x47eba9(0x2a7));}function dn(_0x279990){const _0x1e7c2f=_0x2e9e2a;Y(_0x279990);for(let _0x28373a of Object[_0x1e7c2f(0x35a)](_0x279990['answers'])){let _0x453161=_0x279990[_0x1e7c2f(0x1fd)][_0x28373a],_0x308515=_0x453161[_0x1e7c2f(0x1e4)]===_0x1e7c2f(0x35f)?'probability\x20'+_0x453161['probability'][_0x1e7c2f(0x1ce)](0x2):_0x453161[_0x1e7c2f(0x1e4)]===_0x1e7c2f(0x25b)?'choice\x20'+_0x453161[_0x1e7c2f(0x25b)]+_0x1e7c2f(0x27f)+_0x453161['confidence'][_0x1e7c2f(0x1ce)](0x2)+')':_0x1e7c2f(0x295)+_0x453161['score'][_0x1e7c2f(0x1ce)](0x2)+_0x1e7c2f(0x27f)+_0x453161[_0x1e7c2f(0x1b3)][_0x1e7c2f(0x1ce)](0x2)+')';process[_0x1e7c2f(0x1f3)][_0x1e7c2f(0x277)]('\x20\x20'+_0x28373a+':\x20'+_0x308515+'\x0a');}}function un(_0x4ab556){const _0x3ed677=_0x2e9e2a;Y(_0x4ab556),_0x4ab556['results'][_0x3ed677(0x1f0)]((_0x52de14,_0x113d80)=>{const _0x5cb33f=_0x3ed677;process['stdout']['write']('\x20\x20'+(_0x113d80+0x1)+'.\x20'+_0x52de14['id']+'\x20\x20'+_0x52de14[_0x5cb33f(0x2bd)][_0x5cb33f(0x1ce)](0x3)+_0x5cb33f(0x204)+_0x52de14['index']+')\x0a');});}function pn(_0x11a4a0){const _0xf7ef38=_0x2e9e2a;Y(_0x11a4a0),process[_0xf7ef38(0x1f3)][_0xf7ef38(0x277)]('Rubric\x20'+_0x11a4a0[_0xf7ef38(0x2d4)]+'\x0a');for(let _0x2e8bba of _0x11a4a0['results'])process[_0xf7ef38(0x1f3)]['write']('\x20\x20'+_0x2e8bba['id']+':\x20'+_0x2e8bba[_0xf7ef38(0x252)]+_0xf7ef38(0x27f)+_0x2e8bba[_0xf7ef38(0x1b3)][_0xf7ef38(0x1ce)](0x2)+')\x0a');}async function mn(_0x4e9abd){const _0x260fb9=_0x2e9e2a;let _0x10f213=_0x4e9abd[_0x260fb9(0x34a)][_0x260fb9(0x23a)]();_0x10f213||(console[_0x260fb9(0x2a6)]('transcribe\x20needs\x20audio:\x20delegate-cli\x20transcribe\x20<file>,\x20or\x20-\x20to\x20read\x20stdin.'),process[_0x260fb9(0x26b)](0x2));let {client:_0xe7bca3}=await v(_0x4e9abd);try{let _0x2fd246=_0x10f213==='-'?{'data':await fn(process[_0x260fb9(0x27c)])}:_0x10f213;u(_0x4e9abd,await _0x5b2d0c(_0xe7bca3,_0x2fd246,void 0x0),_0x4c5ae1=>{const _0x3beab9=_0x260fb9;process[_0x3beab9(0x1f3)]['write'](_0x4c5ae1['text']+'\x0a');});}catch(_0x4db221){if(_0x289a26(_0x4db221)&&(console['error'](_0x4db221[_0x260fb9(0x290)]),process[_0x260fb9(0x26b)](_0x4db221[_0x260fb9(0x337)]===void 0x0?0x2:0x1)),typeof _0x4db221?.[_0x260fb9(0x1f4)]!=_0x260fb9(0x265))throw _0x4db221;console[_0x260fb9(0x2a6)](_0x260fb9(0x349)+_0x10f213+'\x20('+_0x4db221[_0x260fb9(0x290)]+').'),process[_0x260fb9(0x26b)](0x2);}}async function fn(_0x227b45){const _0x560d0a=_0x2e9e2a;let _0x14f8a8=[];for await(let _0x50b0ab of _0x227b45)_0x14f8a8['push'](Buffer[_0x560d0a(0x2cf)](_0x50b0ab));return Buffer[_0x560d0a(0x2e2)](_0x14f8a8);}var ce=[_0x2e9e2a(0x336),_0x2e9e2a(0x22f),_0x2e9e2a(0x2eb),_0x2e9e2a(0x29f),_0x2e9e2a(0x202),_0x2e9e2a(0x1ad),_0x2e9e2a(0x29a),_0x2e9e2a(0x1c3),_0x2e9e2a(0x212),_0x2e9e2a(0x2ed)],de={'list':'delegations\x20list\x20<backend-project-id>','pending':_0x2e9e2a(0x20b),'show':'delegations\x20show\x20<delegation-id|delegate://delegation/…>','create':_0x2e9e2a(0x2e6),'claim':_0x2e9e2a(0x1cc),'complete':_0x2e9e2a(0x37c),'accept':_0x2e9e2a(0x1e8),'dismiss':_0x2e9e2a(0x2ec),'cancel':_0x2e9e2a(0x1d1),'delete':'delegations\x20delete\x20<delegation-id>'};async function gn(_0x6c676a){const _0x8067a3=_0x2e9e2a;let [_0x3bb831='',_0x387c22='',..._0x288f15]=_0x6c676a[_0x8067a3(0x263)];ce[_0x8067a3(0x284)](_0x3bb831)||(console['error']((_0x3bb831?_0x8067a3(0x226)+_0x3bb831+'.\x20':'')+_0x8067a3(0x2b3)+ce[_0x8067a3(0x328)]('\x20|\x20')+'.'),process['exit'](0x2));let _0xab68e5=_0x3bb831;_0xab68e5!==_0x8067a3(0x29f)&&(_0x6c676a['delegateTo']!==void 0x0||_0x6c676a['contextSummary']!==void 0x0||_0x6c676a[_0x8067a3(0x1bd)]!==void 0x0)&&(console[_0x8067a3(0x2a6)](_0x8067a3(0x209)),process[_0x8067a3(0x26b)](0x2));let _0x355db9=(_0xab68e5==='create'?_0x6c676a['operands'][_0x8067a3(0x2f0)](0x1):_0x288f15)[_0x8067a3(0x328)]('\x20')['trim'](),_0x5eaa12=_0xab68e5===_0x8067a3(0x29f)||_0xab68e5==='complete';(_0xab68e5!==_0x8067a3(0x29f)&&!_0x387c22||(_0x5eaa12?!_0x355db9:_0x355db9)||_0xab68e5===_0x8067a3(0x29f)&&!_0x6c676a['sessionId'])&&(console[_0x8067a3(0x2a6)](_0x8067a3(0x384)+de[_0xab68e5]),process[_0x8067a3(0x26b)](0x2));let _0x20bb0e=_0x5eaa12&&_0x355db9==='-'?(await j('-',process['stdin']))['trim']():_0x355db9;_0x5eaa12&&!_0x20bb0e&&(console['error'](_0x8067a3(0x384)+de[_0xab68e5]+_0x8067a3(0x357)),process[_0x8067a3(0x26b)](0x2));let {client:_0x51e484}=await v(_0x6c676a);try{await hn(_0x6c676a,_0x51e484,_0xab68e5,_0x387c22,_0x20bb0e);}catch(_0x31ff96){if(!_0x54dd7f(_0x31ff96))throw _0x31ff96;console['error'](_0x31ff96[_0x8067a3(0x290)]),process[_0x8067a3(0x26b)](0x1);}}async function hn(_0x41effd,_0x1550ba,_0x5667e4,_0x136b76,_0x19d6b3){const _0x528d1f=_0x2e9e2a;switch(_0x5667e4){case'list':u(_0x41effd,await _0x46b2c2(_0x1550ba,_0x136b76),yn);return;case _0x528d1f(0x22f):u(_0x41effd,await _0x541a60(_0x1550ba,_0x136b76),_0x27ade9=>{const _0x147323=_0x528d1f;_0x27ade9[_0x147323(0x278)]&&process['stdout']['write'](_0x147323(0x324)+_0x27ade9[_0x147323(0x278)]['id']+'\x20('+_0x27ade9[_0x147323(0x278)][_0x147323(0x337)]+_0x147323(0x221)),_0x27ade9[_0x147323(0x348)][_0x147323(0x1ae)]===0x0&&process[_0x147323(0x2c8)][_0x147323(0x277)](_0x147323(0x2f6));for(let _0x293cd1 of _0x27ade9[_0x147323(0x348)])process[_0x147323(0x1f3)]['write']('\x0a'+_0x293cd1['id']+_0x147323(0x1a0)+(_0x293cd1['assignedUserEmail']??_0x147323(0x28f))+'\x20\x20'+(_0x293cd1[_0x147323(0x330)]??'')+'\x0a'+(_0x293cd1[_0x147323(0x2f5)]?.[_0x147323(0x2c5)]??'')+'\x0a');_0x27ade9['pendingResults'][_0x147323(0x1ae)]>0x0&&process[_0x147323(0x2c8)]['write']('\x0aAccept\x20one\x20with:\x20delegate-cli\x20delegations\x20accept\x20<id>\x0a');});return;case'show':u(_0x41effd,await _0x41c1ab(_0x1550ba,_0x136b76),ue);return;case _0x528d1f(0x29f):{let _0x280e9c=await _0x17c9b9(_0x1550ba,{'sessionId':_0x41effd[_0x528d1f(0x1bd)],'task':_0x19d6b3,..._0x41effd[_0x528d1f(0x321)]!==void 0x0&&{'contextSummary':_0x41effd['contextSummary']},..._0x41effd[_0x528d1f(0x214)]!==void 0x0&&{'recipient':_0x41effd[_0x528d1f(0x214)]}});u(_0x41effd,_0x280e9c,_0x481d2e=>{const _0x13ba85=_0x528d1f;_0x481d2e[_0x13ba85(0x373)]?process[_0x13ba85(0x1f3)]['write']('Delegated\x20'+_0x481d2e[_0x13ba85(0x1db)]+_0x13ba85(0x342)+_0x481d2e[_0x13ba85(0x373)][_0x13ba85(0x29e)]+'\x20<'+_0x481d2e[_0x13ba85(0x373)][_0x13ba85(0x23c)]+_0x13ba85(0x316)):process[_0x13ba85(0x1f3)][_0x13ba85(0x277)]('Created\x20delegation\x20'+_0x481d2e['delegationId']+_0x13ba85(0x313)+_0x481d2e['deepLink']+'\x0a');});return;}case _0x528d1f(0x202):{let _0x46d971=await _0x4a11ec(_0x1550ba,_0x136b76);u(_0x41effd,_0x46d971,_0x3ad542=>{const _0x3044cb=_0x528d1f;ue(_0x3ad542),process[_0x3044cb(0x1f3)][_0x3044cb(0x277)](_0x3044cb(0x332)+_0x3ad542[_0x3044cb(0x1bd)]+'\x0a'),process[_0x3044cb(0x2c8)][_0x3044cb(0x277)]('Work\x20on\x20it\x20with:\x20delegate-cli\x20--session\x20'+_0x3ad542[_0x3044cb(0x1bd)]+'\x20\x22<prompt>\x22\x0aAnswer\x20with:\x20delegate-cli\x20delegations\x20complete\x20'+_0x3ad542['delegationId']+'\x20\x22<answer>\x22\x0a');});return;}case _0x528d1f(0x1ad):{let {alreadyCompleted:_0x5b9e8e}=await _0x1eb4e4(_0x1550ba,_0x136b76,{'content':_0x19d6b3});u(_0x41effd,{'delegationId':_0x136b76,'alreadyCompleted':_0x5b9e8e},_0x3a9f4a=>{const _0x329eb7=_0x528d1f;process[_0x329eb7(0x1f3)]['write']((_0x3a9f4a['alreadyCompleted']?_0x329eb7(0x2fa):_0x329eb7(0x2ad))+_0x329eb7(0x1d0)+_0x3a9f4a[_0x329eb7(0x1db)]+'.\x0a');});return;}case _0x528d1f(0x29a):{let _0x174f90=await _0x277c5f(_0x1550ba,_0x136b76);u(_0x41effd,{'delegationId':_0x136b76,..._0x174f90},_0x2dd625=>{const _0xc71fff=_0x528d1f;process[_0xc71fff(0x1f3)][_0xc71fff(0x277)]((_0x2dd625[_0xc71fff(0x1dc)]?_0xc71fff(0x34b):'Accepted')+_0xc71fff(0x1d0)+_0x2dd625[_0xc71fff(0x1db)]+'.\x0a');});return;}default:{let _0x3dbbd5={'dismiss':_0x4dce77,'cancel':_0x2823fd,'delete':_0x1208c3}[_0x5667e4];await _0x3dbbd5(_0x1550ba,_0x136b76);let _0x416e17={'dismiss':_0x528d1f(0x2bb),'cancel':_0x528d1f(0x318),'delete':_0x528d1f(0x366)}[_0x5667e4];u(_0x41effd,{'delegationId':_0x136b76,[_0x416e17]:!0x0},()=>{const _0x443d01=_0x528d1f;process[_0x443d01(0x1f3)][_0x443d01(0x277)](''+_0x416e17[0x0][_0x443d01(0x361)]()+_0x416e17[_0x443d01(0x2f0)](0x1)+_0x443d01(0x1d0)+_0x136b76+'.\x0a');});}}}function yn(_0x5e0dcc){const _0x408862=_0x2e9e2a;if(_0x5e0dcc['length']===0x0){process[_0x408862(0x2c8)]['write'](_0x408862(0x338));return;}process[_0x408862(0x1f3)][_0x408862(0x277)]('ID'[_0x408862(0x372)](0x24)+'\x20\x20'+'STATUS'[_0x408862(0x372)](0x9)+'\x20\x20'+'ASSIGNEE'['padEnd'](0x18)+_0x408862(0x1bb));for(let _0x36de1c of _0x5e0dcc)process[_0x408862(0x1f3)][_0x408862(0x277)](_0x36de1c['id'][_0x408862(0x372)](0x24)+'\x20\x20'+_0x36de1c['status'][_0x408862(0x372)](0x9)+'\x20\x20'+(_0x36de1c[_0x408862(0x1de)]??'-')[_0x408862(0x372)](0x18)+'\x20\x20'+(_0x36de1c['task']??'')+'\x0a');}function ue(_0x10edcd){const _0x188272=_0x2e9e2a;process[_0x188272(0x1f3)][_0x188272(0x277)](_0x188272(0x1ec)+(_0x10edcd[_0x188272(0x2e1)]??'-')+'\x0a'),_0x10edcd['sourceTitle']&&process[_0x188272(0x1f3)]['write'](_0x188272(0x332)+_0x10edcd[_0x188272(0x20c)]+'\x0a'),process[_0x188272(0x1f3)][_0x188272(0x277)](_0x188272(0x1e6)+(_0x10edcd['task']??'-')+'\x0a'),_0x10edcd['contextSummary']&&process[_0x188272(0x1f3)][_0x188272(0x277)]('\x0a'+_0x10edcd['contextSummary']+'\x0a\x0a');}async function wn(_0x4215a0){const _0x2564bc=_0x2e9e2a;_0x4215a0[_0x2564bc(0x34a)]['trim']()||(console[_0x2564bc(0x2a6)](_0x2564bc(0x257)),process[_0x2564bc(0x26b)](0x2));let {client:_0x45c37b}=await v(_0x4215a0),_0x3b53a4;try{_0x3b53a4=await _0x16263d(_0x45c37b,_0x4215a0[_0x2564bc(0x34a)]);}catch(_0x2b94fb){if(!_0x54dd7f(_0x2b94fb))throw _0x2b94fb;console[_0x2564bc(0x2a6)](_0x2b94fb[_0x2564bc(0x290)]),process[_0x2564bc(0x26b)](0x1);}u(_0x4215a0,_0x3b53a4,_0x50bd75=>{const _0x43a01d=_0x2564bc;_0x50bd75[_0x43a01d(0x1ae)]===0x0&&process[_0x43a01d(0x2c8)][_0x43a01d(0x277)]('No\x20one\x20matches\x20\x22'+_0x4215a0['prompt'][_0x43a01d(0x23a)]()+_0x43a01d(0x34c));for(let _0x32c59b of _0x50bd75)process[_0x43a01d(0x1f3)][_0x43a01d(0x277)](_0x32c59b[_0x43a01d(0x23c)][_0x43a01d(0x372)](0x20)+'\x20\x20'+_0x32c59b['displayName']+'\x0a');});}async function kn(_0xb9ec73){const _0x128f14=_0x2e9e2a;_0xb9ec73[_0x128f14(0x2ea)]===_0x128f14(0x271)&&(console[_0x128f14(0x2a6)]('--env\x20localhost\x20has\x20no\x20OAuth\x20flow;\x20pick\x20alpha,\x20staging,\x20or\x20production.'),process['exit'](0x2));let _0x50c454=M(_0x1e3ef0()),_0x382c03=_0xb9ec73['skipEnvCheck'];if(_0xb9ec73[_0x128f14(0x2ea)]){let _0x28b42d=_0xb9ec73[_0x128f14(0x2ea)];await _0x5cc19f({'env':_0x28b42d,'tenant':_0xb9ec73['tenant']??G(_0x50c454,_0x2d5a18[_0x28b42d]),'skipEnvCheck':_0x382c03});return;}let _0x2880c3=_0xb9ec73[_0x128f14(0x232)]??ve();if(_0x2880c3){await _0x5cc19f({'baseUrl':_0x2880c3,'tenant':_0xb9ec73[_0x128f14(0x329)]??G(_0x50c454,_0x2880c3),'skipEnvCheck':_0x382c03});return;}if(_0x50c454?.[_0x128f14(0x2e9)]){await _0x5cc19f({'baseUrl':_0x50c454[_0x128f14(0x2e9)],'tenant':_0xb9ec73['tenant']??_0x50c454['tenantName'],'skipEnvCheck':_0x382c03});return;}console[_0x128f14(0x2a6)](_0x128f14(0x378)),process[_0x128f14(0x26b)](0x2);}function G(_0x53d18e,_0x51fb7f){const _0x2c56c2=_0x2e9e2a;return _0x53d18e?.[_0x2c56c2(0x2e9)]&&bn(_0x53d18e['baseUrl'],_0x51fb7f)?_0x53d18e[_0x2c56c2(0x2f2)]:void 0x0;}function bn(_0x3cce2f,_0x56a668){const _0x3c4679=_0x2e9e2a;try{return new URL(_0x3cce2f)[_0x3c4679(0x21f)]===new URL(_0x56a668)[_0x3c4679(0x21f)];}catch{return!0x1;}}async function Sn(_0x4dc5f6){const _0x30a4b2=_0x2e9e2a;Q()&&(console[_0x30a4b2(0x2a6)](_0x30a4b2(0x2fe)),process['exit'](0x2));let _0x2e1719=await _0x4714a4();if(_0x2e1719||(console['error'](vn()),process[_0x30a4b2(0x26b)](0x2)),_0x4dc5f6[_0x30a4b2(0x23a)]()){let _0x53e843=await _0x427fa9(_0x2e1719,_0x4dc5f6);_0x15eb87(_0x53e843)||(console[_0x30a4b2(0x2a6)](_0x30a4b2(0x280)+_0x1e3ef0()+_0x30a4b2(0x30c)+_0x2e1719[_0x30a4b2(0x2f2)]+'.'),process[_0x30a4b2(0x26b)](0x1)),console[_0x30a4b2(0x2f8)](_0x30a4b2(0x276)+_0x53e843['tenantName']+'\x20('+_0x53e843[_0x30a4b2(0x281)]+_0x30a4b2(0x21c)+_0x1e3ef0());return;}An(await _0x4f0daa(_0x2e1719),_0x2e1719);}function vn(){const _0x48749b=_0x2e9e2a;if(_0x59b7ea[_0x48749b(0x260)](_0x1e3ef0()))return _0x48749b(0x28d);let _0x1fe766=K();return M(_0x1fe766)?_0x48749b(0x360)+_0x1fe766+',\x20whose\x20tenant\x20is\x20chosen\x20in\x20the\x20app.\x20Run\x20`delegate-cli\x20login\x20--env\x20<env>`\x20for\x20a\x20CLI\x20login\x20of\x20your\x20own.':_0x48749b(0x2d7);}function An(_0x5b8869,_0x4cead2){const _0x7b46f7=_0x2e9e2a;let _0x190691=_0x5b8869['map'](_0x215a38=>_0x215a38['id']===_0x4cead2[_0x7b46f7(0x281)]?'*\x20'+_0x215a38[_0x7b46f7(0x358)]+_0x7b46f7(0x2a5):'\x20\x20'+_0x215a38[_0x7b46f7(0x358)]);process[_0x7b46f7(0x1f3)][_0x7b46f7(0x277)](_0x7b46f7(0x1bf)+(_0x4cead2[_0x7b46f7(0x351)]??_0x4cead2[_0x7b46f7(0x297)])+':\x0a'+_0x190691[_0x7b46f7(0x328)]('\x0a')+'\x0a'),_0x5b8869['length']>0x1&&process[_0x7b46f7(0x1f3)][_0x7b46f7(0x277)](_0x7b46f7(0x35d));}function $n(_0x563eb6){const _0x394f5d=_0x2e9e2a;return _0x563eb6?.['response']?.['status']===0x191||/401/[_0x394f5d(0x254)](String(_0x563eb6?.[_0x394f5d(0x290)]??''));}var f={'lastType':null,'quiet':!0x1},Ee=_0x554e67=>{const _0x4c5738=_0x2e9e2a;switch(_0x554e67[_0x4c5738(0x1e4)]){case _0x4c5738(0x1da):_0x554e67[_0x4c5738(0x1bd)]&&_0x554e67[_0x4c5738(0x1bd)]!==f['sessionId']&&(process[_0x4c5738(0x2c8)][_0x4c5738(0x277)](_0x4c5738(0x2ae)+_0x554e67[_0x4c5738(0x1bd)]+_0x4c5738(0x1e3)+_0x554e67[_0x4c5738(0x1bd)]+')\x0a'),f[_0x4c5738(0x1bd)]=_0x554e67[_0x4c5738(0x1bd)]);break;case _0x4c5738(0x1cf):_0x554e67[_0x4c5738(0x2e3)]&&_0x554e67[_0x4c5738(0x2e3)]!==f['turnId']&&(f[_0x4c5738(0x31b)]!==null&&process[_0x4c5738(0x2c8)]['write']('\x0a'),process[_0x4c5738(0x2c8)][_0x4c5738(0x277)](_0x4c5738(0x370)+_0x554e67[_0x4c5738(0x2e3)]+_0x4c5738(0x352)+_0x554e67['sessionId']+_0x4c5738(0x305)+_0x554e67['turnId']+')\x0a'),f[_0x4c5738(0x2e3)]=_0x554e67[_0x4c5738(0x2e3)],f[_0x4c5738(0x31b)]=_0x4c5738(0x1cf));break;case _0x4c5738(0x2d9):_0x554e67[_0x4c5738(0x2c5)]&&!f[_0x4c5738(0x369)]&&(f['lastType']!=='thinking'&&process[_0x4c5738(0x2c8)][_0x4c5738(0x277)](_0x4c5738(0x258)),process[_0x4c5738(0x2c8)][_0x4c5738(0x277)](_0x554e67[_0x4c5738(0x2c5)]),f['lastType']=_0x4c5738(0x2d9));break;case _0x4c5738(0x286):f['lastType']!==null&&process[_0x4c5738(0x2c8)]['write']('\x0a'),process[_0x4c5738(0x2c8)][_0x4c5738(0x277)](_0x4c5738(0x279)+(_0x554e67[_0x4c5738(0x1dd)]??_0x4c5738(0x1f1))+'\x0a'),f[_0x4c5738(0x31b)]=_0x4c5738(0x286);break;case _0x4c5738(0x290):_0x554e67[_0x4c5738(0x2c5)]&&(f[_0x4c5738(0x31b)]!=='message'&&f[_0x4c5738(0x31b)]!==null&&process[_0x4c5738(0x1f3)]['write']('\x0a'),process[_0x4c5738(0x1f3)]['write'](_0x554e67[_0x4c5738(0x2c5)]),f['lastType']=_0x4c5738(0x290));break;case _0x4c5738(0x2a6):f[_0x4c5738(0x31b)]!==null&&process[_0x4c5738(0x2c8)][_0x4c5738(0x277)]('\x0a'),process[_0x4c5738(0x2c8)]['write']('✗\x20'+(_0x554e67[_0x4c5738(0x2a6)]??_0x4c5738(0x2a6))+'\x0a'),f[_0x4c5738(0x31b)]=_0x4c5738(0x2a6);break;case'done':(f['lastType']===_0x4c5738(0x290)||f[_0x4c5738(0x31b)]===_0x4c5738(0x2d9))&&process[_0x4c5738(0x1f3)]['write']('\x0a'),process[_0x4c5738(0x2c8)][_0x4c5738(0x277)](_0x4c5738(0x1a8)),f['lastType']=_0x4c5738(0x2be);break;}};function pe(_0x4b2bec,_0x39accf,_0x19692f,_0x200f86){const _0x2de8f9=_0x2e9e2a;let _0x2ef59d=_0x4b2bec['model']||process.env.MODEL;return{'backendUrl':_0x19692f,'auth':_0x39accf,'enableComputerUse':!_0x4b2bec[_0x2de8f9(0x37b)]&&!_0x4b2bec['noComputerUse'],'autoSpawnInterop':!_0x4b2bec['headless'],'enableConnections':!_0x4b2bec[_0x2de8f9(0x2c7)],'enableSecurity':!_0x4b2bec['noSecurity'],'keepInteropAlive':_0x4b2bec[_0x2de8f9(0x1ef)],..._0x200f86['oneTurn']?{'enableBackgroundCommands':!0x1}:{},..._0x4b2bec[_0x2de8f9(0x1ea)]?{'enableMemory':!0x1}:{},..._0x4b2bec[_0x2de8f9(0x379)]?{'enableTaskAutomation':!0x0}:{},..._0x4b2bec[_0x2de8f9(0x2ab)]['length']>0x0?{'preloadSkills':_0x4b2bec[_0x2de8f9(0x2ab)]}:{},..._0x2ef59d?{'model':_0x2ef59d}:{},..._0x4b2bec['projectId']?{'projectId':_0x4b2bec[_0x2de8f9(0x2d1)]}:{},..._0x4b2bec[_0x2de8f9(0x1c6)]?{'workingDirectory':_0x4b2bec['workingDirectory']}:{},..._0x4b2bec[_0x2de8f9(0x22e)]?{'bundledSkillsPath':_0x4b2bec[_0x2de8f9(0x22e)]}:{},..._0x4b2bec['effort']?{'effort':_0x4b2bec['effort']}:{},..._0x4b2bec['sessionId']?{'sessionId':_0x4b2bec['sessionId']}:{},..._0x4b2bec['verbose']?{'verbose':!0x0}:{}};}async function En(_0x5385c1){const _0x24c064=_0x2e9e2a;let _0x513633=_0x5385c1[_0x24c064(0x2c0)]!==_0x24c064(0x2c4),_0x3e0aa6=_0x5385c1['jsonSchemaPath']===void 0x0?null:$e(_0x5385c1[_0x24c064(0x1a7)],_0x24c064(0x27a)),_0x28301d=!_0x513633&&!_0x3e0aa6&&!_0x5385c1[_0x24c064(0x21b)]&&_0x5385c1['prompt']!=='-'&&!!process[_0x24c064(0x27c)][_0x24c064(0x27d)]&&!!process[_0x24c064(0x1f3)][_0x24c064(0x27d)],_0x4975b5=_0x28301d?_0x5385c1[_0x24c064(0x34a)][_0x24c064(0x23a)]():await j(_0x5385c1[_0x24c064(0x34a)],process[_0x24c064(0x27c)]);if(!_0x28301d&&!_0x4975b5&&(console['error'](_0x24c064(0x268)),process[_0x24c064(0x26b)](0x2)),!_0x513633){await me(_0x5385c1,_0x4975b5,_0x28301d,null,_0x3e0aa6);return;}let _0x3e0a15=!0x1,_0x59d162=_0x3bfc53=>{const _0x34ce47=_0x24c064;_0x3e0a15=!0x0,P(_0x429094(_0x3bfc53)),(_0x3bfc53[_0x34ce47(0x1a9)]||_0x3bfc53['structuredError'])&&(process[_0x34ce47(0x320)]=0x1);},_0x1b3b97=Date['now']();try{await me(_0x5385c1,_0x4975b5,!0x1,_0x59d162,_0x3e0aa6);}catch(_0x4be410){if(_0x3e0a15)throw _0x4be410;process['stderr'][_0x24c064(0x277)]((_0x4be410 instanceof Error?_0x4be410['stack']??_0x4be410[_0x24c064(0x290)]:String(_0x4be410))+'\x0a'),_0x59d162(new _0xbeddc4(_0x1b3b97)[_0x24c064(0x2a0)]({'endedAtMs':Date[_0x24c064(0x294)](),'usage':[],'error':_0x4be410}));}}async function me(_0x4e755b,_0x1a8427,_0x1529ea,_0x161f51,_0x5140f2){const _0xf44b14=_0x2e9e2a;f={'lastType':null,'quiet':_0x4e755b['quiet']};let _0x1d006f=new Set(),_0x421646,_0x14c2c3=_0x1f5833=>{const _0x41b6ef=_0xced2;(!_0x161f51||_0x1f5833['type']===_0x41b6ef(0x1da)||_0x1f5833['type']===_0x41b6ef(0x1cf))&&(_0x421646??Ee)(_0x1f5833);for(let _0x3ee2bf of _0x1d006f)_0x3ee2bf(_0x1f5833);},_0xad7c37=await q(),_0x54fe06=new _0x5139ac();_0x54fe06[_0xf44b14(0x375)](_0x14c2c3);let _0x226d8e=_0x93f1b3(_0x4e755b['env'],_0xad7c37,_0x4e755b['backendUrl']);z(_0x4e755b['env'],_0x4e755b[_0xf44b14(0x1e1)],_0x226d8e);let _0x49a65b={'input':null},_0x5887cf=_0x1529ea?Z(()=>_0x49a65b[_0xf44b14(0x24d)],_0x15a796=>{const _0x3906cd=_0xf44b14;process[_0x3906cd(0x2c8)][_0x3906cd(0x277)](_0x15a796);}):null,_0x42ac59=_0x3dd1f7=>_0x5887cf?{..._0x3dd1f7,'askUser':_0x5887cf}:_0x3dd1f7,_0x416e7e=_0x42ac59(pe(_0x4e755b,_0xad7c37,_0x226d8e,{'oneTurn':!_0x1529ea})),_0xa5053e=!0x1,_0x685dfa=!0x1,_0x4fc48d,_0x3f7a12=()=>_0x4fc48d??=_0x54fe06['destroy'](),_0x3f484f=()=>{const _0x5175c5=_0xf44b14;_0x685dfa&&process[_0x5175c5(0x26b)](0x82),_0x685dfa=!0x0,process[_0x5175c5(0x2c8)][_0x5175c5(0x277)](_0x5175c5(0x28a)),_0xa5053e&&_0x54fe06[_0x5175c5(0x212)]()[_0x5175c5(0x341)](_0x4d5af5=>console['error'](_0x4d5af5))[_0x5175c5(0x255)](_0x3f7a12)[_0x5175c5(0x255)](()=>process[_0x5175c5(0x26b)](0x82),_0x32e5fd=>{const _0x5c7f6a=_0x5175c5;console[_0x5c7f6a(0x2a6)](_0x32e5fd),process['exit'](0x82);});};process['on'](_0xf44b14(0x2b5),_0x3f484f);let _0x2811aa=_0x4e755b[_0xf44b14(0x2a2)],_0xa8b876=async _0x5c2037=>{const _0x8a9f1d=_0xf44b14;let _0x5705a2=_0x2811aa;_0x2811aa=[];let _0x2d4db4=()=>_0x54fe06[_0x8a9f1d(0x236)](_0x5c2037,{'attachments':_0x5705a2});try{return await _0x2d4db4();}catch(_0x20cd32){if(_0x685dfa||!$n(_0x20cd32)||!process[_0x8a9f1d(0x27c)]['isTTY']||_0x4e755b[_0x8a9f1d(0x2ea)]===_0x8a9f1d(0x271)||!(_0x4e755b[_0x8a9f1d(0x2ea)]||_0xad7c37['baseUrl']))throw _0x20cd32;process['stderr'][_0x8a9f1d(0x277)]('\x0a⚠️\x20\x20Auth\x20expired.\x20Opening\x20browser\x20to\x20re-login…\x0a');let _0x1f59fd=_0x54fe06[_0x8a9f1d(0x2df)]()??_0x4e755b[_0x8a9f1d(0x1bd)],_0x2cdb0b=await _0x5cc19f(_0x4e755b[_0x8a9f1d(0x2ea)]?{'env':_0x4e755b[_0x8a9f1d(0x2ea)],'tenant':G(_0xad7c37,_0x2d5a18[_0x4e755b[_0x8a9f1d(0x2ea)]]),'skipEnvCheck':!0x0}:{'baseUrl':_0xad7c37[_0x8a9f1d(0x2e9)],'tenant':_0xad7c37[_0x8a9f1d(0x2f2)],'skipEnvCheck':!0x0}),_0x564747={'text':'','failed':!0x1,'sessionId':_0x1f59fd};return _0x685dfa||(_0xa5053e=!0x1,await _0x3f7a12(),_0x685dfa)?_0x564747:(_0x54fe06=new _0x5139ac(),_0x4fc48d=void 0x0,_0x54fe06[_0x8a9f1d(0x375)](_0x14c2c3),_0xad7c37=_0x2cdb0b,await _0x54fe06[_0x8a9f1d(0x219)]({..._0x42ac59(pe(_0x4e755b,_0xad7c37,_0x226d8e,{'oneTurn':!_0x1529ea})),..._0x1f59fd?{'sessionId':_0x1f59fd}:{}}),_0xa5053e=!0x0,_0x685dfa?_0x564747:_0x2d4db4());}};try{if(await _0x54fe06[_0xf44b14(0x219)](_0x416e7e),_0xa5053e=!0x0,_0x685dfa)return;if(_0x1529ea)await xn({'prompt':_0x1a8427,'sendMessage':_0xa8b876,'onSigint':_0x3f484f,'setAnswerInput':_0x1f88b9=>{_0x49a65b['input']=_0x1f88b9;},'registerEventPrinter':_0x9d6b5f=>(_0x421646=_0x9d6b5f,()=>{_0x421646=void 0x0;})});else{if(_0x161f51||_0x5140f2){let _0x4ccd9c=_0x4e755b['outputFormat']===_0xf44b14(0x382)?_0x2de80b=>P(_0x48f5ca(_0x2de80b)):()=>{},_0x40c81a=await _0x1e2096({'onEvent':_0x4ad60a=>(_0x1d006f['add'](_0x4ad60a),()=>{const _0x212686=_0xf44b14;_0x1d006f[_0x212686(0x2ed)](_0x4ad60a);}),'sendMessage':_0x1005a3=>_0xa8b876(_0x1005a3),'getSessionId':()=>_0x54fe06[_0xf44b14(0x2df)](),'getTurnUsageHistory':_0x5561d=>_0x54fe06[_0xf44b14(0x22c)](_0x5561d),'complete':_0x2258df=>_0x54fe06[_0xf44b14(0x1ad)](_0x2258df)},_0x1a8427,void 0x0,_0x4ccd9c,_0x5140f2?{'outputSchema':_0x5140f2}:void 0x0);_0x161f51?_0x161f51(_0x40c81a):In(_0x40c81a);}else await _0xa8b876(_0x1a8427);}}catch(_0x4ecdd3){if(!_0x685dfa)throw _0x4ecdd3;}finally{try{await _0x3f7a12();}finally{process['off']('SIGINT',_0x3f484f),_0x685dfa&&(process[_0xf44b14(0x320)]=0x82);}}}function In(_0x1a69fe){const _0x5efd70=_0x2e9e2a;_0x1a69fe[_0x5efd70(0x2a9)]?(console[_0x5efd70(0x2a6)]('Structured\x20output\x20failed:\x20'+_0x1a69fe[_0x5efd70(0x2a9)][_0x5efd70(0x290)]),process['exitCode']=0x1):_0x1a69fe[_0x5efd70(0x1a9)]?(console[_0x5efd70(0x2a6)]('No\x20structured\x20output:\x20the\x20turn\x20failed\x20('+_0x1a69fe[_0x5efd70(0x2a6)]+').'),process[_0x5efd70(0x320)]=0x1):process[_0x5efd70(0x1f3)]['write'](JSON[_0x5efd70(0x251)](_0x1a69fe['structured'],null,0x2)+'\x0a');}function Tn(_0xb757fe,_0x487959){const _0x51b2b9=_0x2e9e2a;let _0x22d120=process[_0x51b2b9(0x1f3)][_0x51b2b9(0x277)]['bind'](process[_0x51b2b9(0x1f3)]),_0x5010d7=!0x1;return process[_0x51b2b9(0x1f3)]['write']=(..._0x38d887)=>{const _0x41c17d=_0x51b2b9;if(!_0x5010d7)return _0x22d120(..._0x38d887);_0xee09a1(_0x487959,0x0),_0x24795e(_0x487959,0x0);let _0x22c546=_0x22d120(..._0x38d887);return _0xb757fe[_0x41c17d(0x34a)](!0x0),_0x22c546;},{'show':()=>{const _0x11fb13=_0x51b2b9;_0x5010d7=!0x0,_0xb757fe[_0x11fb13(0x34a)]();},'hide':()=>{_0x5010d7=!0x1;},'erase':()=>{_0x5010d7&&(_0xee09a1(_0x487959,0x0),_0x24795e(_0x487959,0x0)),_0x5010d7=!0x1;},'restore':()=>{const _0x43d111=_0x51b2b9;_0x5010d7=!0x1,process[_0x43d111(0x1f3)]['write']=_0x22d120;}};}async function xn({prompt:_0x271c0e,sendMessage:_0x36187a,onSigint:_0x403722,setAnswerInput:_0x1850f4,registerEventPrinter:_0x49a2d7}){const _0x25b686=_0x2e9e2a;let _0x2eae6b=_0x2757a9({'input':process['stdin'],'output':process[_0x25b686(0x2c8)],'terminal':!0x0,'prompt':_0x25b686(0x227)}),_0x59ec1c=Tn(_0x2eae6b,process['stderr']),_0x442736=[],_0xb04b00,_0x130c14,_0x4c74a6,_0xfe726c=!0x1,_0x45e708=!0x1,_0x2aa24a=!0x1,_0x310bc4=Promise['resolve'](),_0x52728a,_0x3731de=_0x49a2d7(_0x22694f=>{const _0xaa7733=_0x25b686;_0x22694f[_0xaa7733(0x1e4)]===_0xaa7733(0x1da)&&(_0x59ec1c[_0xaa7733(0x1b9)](),_0x310bc4=new Promise(_0x3aedf7=>{_0x52728a=_0x3aedf7;})),Ee(_0x22694f),_0x22694f[_0xaa7733(0x1e4)]===_0xaa7733(0x2be)&&(_0x52728a?.(),_0x52728a=void 0x0,!_0x2aa24a&&!_0xfe726c&&_0x59ec1c[_0xaa7733(0x2eb)]());}),_0x2002f9=()=>{const _0x939ce=_0x25b686;_0x45e708=!0x0,_0x52728a?.(),_0x403722(),_0x2eae6b[_0x939ce(0x1e7)]();};_0x2eae6b['on']('line',_0x9fa44=>{const _0x1b610f=_0x25b686;_0x4c74a6?_0x4c74a6(_0x9fa44):_0xb04b00?_0xb04b00['push'](_0x9fa44):_0x130c14?_0x130c14(_0x9fa44):_0x442736[_0x1b610f(0x371)](_0x9fa44);}),_0x2eae6b[_0x25b686(0x2f9)](_0x25b686(0x1e7),()=>{const _0x566001=_0x25b686;_0xfe726c=!0x0,_0x59ec1c[_0x566001(0x24e)](),_0xb04b00&&!_0x45e708&&_0x2002f9(),_0x130c14?.(null);});let _0x47ec35=()=>_0x442736[_0x25b686(0x1ae)]>0x0?Promise['resolve'](_0x442736[_0x25b686(0x350)]()):_0xfe726c?Promise[_0x25b686(0x32d)](null):new Promise(_0x4f6a07=>{_0x130c14=_0x54e6a6=>{_0x130c14=void 0x0,_0x4f6a07(_0x54e6a6);};});_0x1850f4({'readLine':(_0x58b418,_0x485031)=>new Promise((_0x27156e,_0x8452f2)=>{const _0x486ce7=_0x25b686;if(_0xfe726c&&!_0xb04b00){_0x27156e(null);return;}_0xb04b00??=[];let _0x25d3e1=_0xb04b00[_0x486ce7(0x350)]();if(_0x25d3e1!==void 0x0){_0x27156e(_0x25d3e1);return;}let _0x4537f5=()=>{const _0x1f110c=_0x486ce7;_0x4c74a6=void 0x0,_0x485031[_0x1f110c(0x1af)]('abort',_0x4072a3),_0x59ec1c[_0x1f110c(0x24e)](),_0x2eae6b[_0x1f110c(0x2f1)](_0x1f110c(0x227));},_0x4072a3=()=>{_0x4537f5(),_0x8452f2(new Error('The\x20turn\x20was\x20cancelled.'));};_0x485031[_0x486ce7(0x2da)](_0x486ce7(0x2f4),_0x4072a3,{'once':!0x0}),!_0xfe726c&&(_0x4c74a6=_0x2e1098=>{_0x4537f5(),_0x27156e(_0x2e1098);},_0x2eae6b[_0x486ce7(0x2f1)](_0x58b418),_0x59ec1c[_0x486ce7(0x2eb)]());}),'endQuestions':()=>{const _0x16e8d5=_0x25b686;_0xb04b00&&_0x442736[_0x16e8d5(0x371)](..._0xb04b00),_0xb04b00=void 0x0;}}),_0x2eae6b['on'](_0x25b686(0x2b5),_0x2002f9),process['stderr'][_0x25b686(0x277)](_0x25b686(0x1d2));let _0xa6211f=async _0x4dcda8=>{_0x2aa24a=!0x0;try{await _0x36187a(_0x4dcda8);}finally{_0x2aa24a=!0x1;}};try{if(_0x271c0e&&await _0xa6211f(_0x271c0e),_0x45e708)return;!_0xfe726c&&!_0x52728a&&_0x59ec1c[_0x25b686(0x2eb)]();for(let _0x151c20=await _0x47ec35();_0x151c20!==null&&(_0x59ec1c['hide'](),!_0x45e708);_0x151c20=await _0x47ec35()){let _0x3c0df9=_0x151c20[_0x25b686(0x23a)]();if(_0x3c0df9===_0x25b686(0x25e))break;_0x3c0df9&&await _0xa6211f(_0x3c0df9),!_0xfe726c&&!_0x52728a&&_0x59ec1c['show']();}for(;!_0x45e708&&_0x52728a;)await _0x310bc4;}finally{_0x1850f4(null),_0x3731de(),_0x59ec1c['restore'](),_0x2eae6b[_0x25b686(0x35b)](_0x25b686(0x2b5),_0x2002f9),_0x2eae6b[_0x25b686(0x1e7)]();}}async function Dn(){const _0x5574bc=_0x2e9e2a;let _0x167175=Rt(process[_0x5574bc(0x243)]['slice'](0x2));if(_0x167175['outputFormat']===_0x5574bc(0x2c4)){await fe(_0x167175);return;}let _0x561a6c=Pt();try{await fe(_0x167175);}finally{_0x561a6c();}}async function fe(_0x17f729){const _0x3656ca=_0x2e9e2a;if(_0x17f729[_0x3656ca(0x25f)]){Ct();return;}if(_0x17f729['version']){console[_0x3656ca(0x2f8)](Lt());return;}if(_0x17f729[_0x3656ca(0x367)]===_0x3656ca(0x2c2)){await kn(_0x17f729);return;}if(_0x17f729[_0x3656ca(0x367)]===_0x3656ca(0x329)){await Sn(_0x17f729['prompt']);return;}if(_0x17f729[_0x3656ca(0x367)]===_0x3656ca(0x2dc)){await Mt();return;}if(_0x17f729[_0x3656ca(0x367)]===_0x3656ca(0x1b2)){await Bt(_0x17f729);return;}if(_0x17f729['subcommand']===_0x3656ca(0x34d)){await Wt(_0x17f729);return;}if(_0x17f729[_0x3656ca(0x367)]===_0x3656ca(0x300)){await Zt(_0x17f729);return;}if(_0x17f729[_0x3656ca(0x367)]==='sessions'){await Qt(_0x17f729);return;}if(_0x17f729[_0x3656ca(0x367)]==='usage'){await nn(_0x17f729);return;}if(_0x17f729[_0x3656ca(0x367)]===_0x3656ca(0x1ee)||_0x17f729[_0x3656ca(0x367)]===_0x3656ca(0x2b6)||_0x17f729[_0x3656ca(0x367)]===_0x3656ca(0x29d)){await an(_0x17f729,_0x17f729[_0x3656ca(0x367)]);return;}if(_0x17f729[_0x3656ca(0x367)]===_0x3656ca(0x1ad)){await cn(_0x17f729);return;}if(_0x17f729[_0x3656ca(0x367)]===_0x3656ca(0x30e)){await mn(_0x17f729);return;}if(_0x17f729['subcommand']===_0x3656ca(0x273)){await gn(_0x17f729);return;}if(_0x17f729[_0x3656ca(0x367)]===_0x3656ca(0x1d3)){await wn(_0x17f729);return;}if(_0x17f729[_0x3656ca(0x367)]===_0x3656ca(0x1a1)){await _0x1ca8eb(_0x17f729[_0x3656ca(0x34a)],{'runnerUrl':_0x17f729[_0x3656ca(0x293)],'backendUrl':_0x17f729[_0x3656ca(0x1e1)],'interopPath':_0x17f729[_0x3656ca(0x1c7)],'workerId':_0x17f729['workerId']});return;}if(_0x17f729[_0x3656ca(0x34f)]){await Gt();return;}await En(_0x17f729);}var Un=process.env.NODE_ENV===_0x2e9e2a(0x254)||!!process.env.JEST_WORKER_ID;Un||Dn()[_0x2e9e2a(0x341)](_0x127ccf=>{const _0x4b86fd=_0x2e9e2a;console[_0x4b86fd(0x2a6)](_0x127ccf['stack']||_0x127ccf[_0x4b86fd(0x290)]||_0x127ccf),process['exit'](0x1);});export{_t as CARTOGRAPHER_SKILLS,re as EFFORT_TIERS,Ot as IMPLICIT_STDIN_IDLE_MS,pe as buildInitOptions,Dn as main,Rt as parseArgs,Lt as readCliVersion,j as resolvePrompt,Pt as routeStdoutToStderr,u as writeCommandResult};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uipath/delegate-cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.205.0",
|
|
4
4
|
"description": "UiPath Delegate CLI - drive the Delegate agent from the terminal. Wraps @uipath/delegate-sdk; installing this package pulls the SDK in — no separate install.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "commonjs",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"publish:npmjs": "npm publish --@uipath:registry=https://registry.npmjs.org/ --access public --ignore-scripts"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@uipath/delegate-sdk": "1.
|
|
25
|
+
"@uipath/delegate-sdk": "1.205.0"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@types/node": "^22.0.0",
|