@uipath/delegate-cli 1.203.1 → 1.203.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +31 -7
- package/dist/cli.mjs +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -189,7 +189,7 @@ Exit codes:
|
|
|
189
189
|
|
|
190
190
|
- `show <id>` prints the title, the owner's user id and organization, and the delegation id of a session claimed from a delegation link. A session another user shared in your organization is shown too. Use `sessions` for timestamps and sub-agent links.
|
|
191
191
|
- `rename <id> <title>` sets the title. Everything after the id is the title, so quotes are optional.
|
|
192
|
-
- `delete <id>` deletes the session permanently, with its messages and sub-agent sessions. It does not ask for confirmation, because the CLI never prompts outside a conversation, so check the id first.
|
|
192
|
+
- `delete <id>` deletes the session permanently, with its messages and sub-agent sessions, and the session's local [task log](#task-automation---task-automation) under the state root (pass the run's `--working-dir`). It does not ask for confirmation, because the CLI never prompts outside a conversation, so check the id first.
|
|
193
193
|
|
|
194
194
|
An id the backend does not know prints `Session <id> not found.` on stderr and exits 1. A missing id or title, an extra operand, or `--page` / `--limit` / `--include-subagents` exits 2 before any request. Rename and delete work only on your own sessions.
|
|
195
195
|
|
|
@@ -287,6 +287,29 @@ delegate-cli --attach screenshot.png # conversation: the first line y
|
|
|
287
287
|
- In a conversation only the first message carries attachments — the prompt given on the command line, or the first line typed. Later messages carry none of their own, but the first message's files stay in context for the rest of the session.
|
|
288
288
|
- Relative paths resolve against the current directory. A path that does not exist, or the flag on a subcommand, exits 2 before any auth or interop work; a file that cannot be read fails the turn before it starts (exit 1).
|
|
289
289
|
|
|
290
|
+
### Task automation (`--task-automation`)
|
|
291
|
+
|
|
292
|
+
`--task-automation` records every UI action of the run so the agent can afterwards turn the task into a UiPath coded workflow with the bundled `uipath-taskautomation` skill (SDK `enableTaskAutomation`):
|
|
293
|
+
|
|
294
|
+
```bash
|
|
295
|
+
delegate-cli --task-automation --working-dir ~/automation
|
|
296
|
+
You> Open Notepad and type "Weekly report"
|
|
297
|
+
You> Turn what you just did into a UiPath coded workflow.
|
|
298
|
+
```
|
|
299
|
+
|
|
300
|
+
- Each `AppAct` step, with the selector of the element it acted on, and each request you sent are appended to `<working-dir>/captures/<session>/task-log-*.jsonl` (`~/.aria-sdk/captures/…` without `--working-dir`). The log keeps on-screen text, field labels and the start of each request; typed values and anything that reads as a credential are masked.
|
|
301
|
+
- While the CLI runs, the backend is asked for a sturdier selector for each captured step. Work left when it exits is picked up by the next `--task-automation` run under the same login and state root.
|
|
302
|
+
- Ask for the workflow in the same session: in the same conversation, or with `--session <id>` (and the same `--working-dir`) in a later invocation.
|
|
303
|
+
- It needs computer use, so it exits 2 with `--headless`, `--no-computer-use` or `--cartographer`, and on subcommands. Where the deployment does not offer task automation yet (it follows the desktop app's rollout and is not on the production cloud), the run starts with a warning and records nothing. The skill also needs the `uip` CLI on `PATH`, signed in with `uip login`.
|
|
304
|
+
- `uipath-taskautomation` ships with the SDK package (see [Skills](#skills)); a copy of your own in `--skills-path` replaces it.
|
|
305
|
+
- `delegate-cli sessions delete <id>` removes the log with the session; give it the same `--working-dir` as the run.
|
|
306
|
+
|
|
307
|
+
### Skills
|
|
308
|
+
|
|
309
|
+
The CLI uses the skills the `@uipath/delegate-sdk` package ships, with no Delegate desktop app needed: the Integration Service API skills (`jira`, `confluence`, `github`, `google-workspace`, `uipath-integrations`, `uipath-orchestrator`), the Office and document skills (`excel-architect`, `word-architect`, `powerpoint-architect`, `pdf-architect`, `office-download`, `doc-coauthoring`, `internal-comms`, `knowledge-base`), `outlook-365`, `slack-operation`, `teams-operation`, `uipath-taskautomation`, `uipath-workflow-documenter`, `business-analysis`, `project-task-list`, `transcribe-media`, `media-tools` and `system-diagnostics`. The agent picks one when the task calls for it; `--preload-skill <name>` attaches one up front.
|
|
310
|
+
|
|
311
|
+
For anything else, put your skills in a folder (one sub-folder per skill, each with a `SKILL.md`) and pass `--skills-path <folder>`, or set `DELEGATE_BUNDLED_SKILLS_PATH`. They load on top of the packaged skills, and one with the same name as a packaged skill replaces it.
|
|
312
|
+
|
|
290
313
|
### Speech-to-text (`transcribe`)
|
|
291
314
|
|
|
292
315
|
Transcribe an audio file with the backend's Whisper route (`/v1/transcription`, the one the desktop app's voice input uses) and print the text:
|
|
@@ -355,11 +378,12 @@ Three levels of machine access, independent of conversation mode:
|
|
|
355
378
|
| `--no-connections` | off | Disable orchestrator ConnectionService (silences 404 noise on tenants without orchestrator). |
|
|
356
379
|
| `--no-security` | off | Disable tool security wrapper. Debug only. |
|
|
357
380
|
| `--no-memory` | off | Do not send the Delegate app's local long-term memories with each turn (SDK `enableMemory: false`). By default the CLI reads the same `Memories` folder the desktop app uses, and the model may save new preferences and learnings there with its file tools. |
|
|
381
|
+
| `--task-automation` | off | Record every UI action of the run to the session's task log, so the agent can turn the task into a UiPath coded workflow (SDK `enableTaskAutomation`). Needs computer use: refused with `--headless`, `--no-computer-use` and `--cartographer`. See [Task automation](#task-automation---task-automation). |
|
|
358
382
|
| `--preload-skill <name>` | — | Preload a skill into the session before the first model turn (repeatable; SDK `preloadSkills`). A name given twice is preloaded once. |
|
|
359
383
|
| `--cartographer` | off | Cartographer engagement preset — shorthand for `--no-computer-use --preload-skill business-analysis --preload-skill project-task-list --preload-skill knowledge-base`. Add `--project` / `--working-dir` to say where the engagement's files live, and further `--preload-skill` flags for anything extra; a skill the preset already covers is **not** preloaded twice, whichever side of the flag it is named on. Pass `--headless` alongside it to drop interop as well (`--headless` always wins over the preset's `--no-computer-use`). |
|
|
360
384
|
| `--project <id>` | — | Bind the session to a project: wiki, plans, `task-list.md` and `progress.yaml` live under `<state root>/projects/<id>/` (the state root is `--working-dir`, else `~/.aria-sdk`), the preloaded skills' declared project files are copied there on the first message, and the project context (`ProjectId`, `TaskListPath`, `ProgressPath`) is injected into every turn (SDK `projectId`). Client-side routing key only — the CLI never links a backend project row. |
|
|
361
385
|
| `--working-dir <path>` | `~/.aria-sdk` for state; process cwd for shells | Shell cwd for the agent and root for SDK-local state (SDK `workingDirectory`). Relative paths resolve against the current directory; **the directory is created if missing**. |
|
|
362
|
-
| `--skills-path <path>` | — |
|
|
386
|
+
| `--skills-path <path>` | — | Folder of your own skills, loaded on top of the [packaged skills](#skills) (SDK `bundledSkillsPath`); also `DELEGATE_BUNDLED_SKILLS_PATH`. On a name clash your copy wins. Relative paths resolve against the current directory. |
|
|
363
387
|
| `--effort <tier>` | model's recommended tier | Reasoning effort: `low` / `medium` / `high` / `xhigh` / `max` (SDK `effort`). Any other value exits with code 2. |
|
|
364
388
|
| `--session <id>` | server-assigned | Pin the session id (SDK `sessionId`). Must be an existing backend session: the backend assigns session ids, so an id it does not know fails the turn (exit 1) before anything is sent. Reuse it across invocations to continue one conversation — the agent then remembers earlier turns. Note that `--preload-skill` is stamped when the SDK *creates* a session, so passing it alongside `--session` does not reconfigure an existing one. For `complete`, the session whose history is sent as context. |
|
|
365
389
|
| `--json-schema <file>` | — | JSON schema file the structured answer must match: for `complete`, and for a prompt (the turn's result is extracted after it runs; implies `--print`). On another command the flag exits with code 2. |
|
|
@@ -431,10 +455,10 @@ npx delegate-cli --no-computer-use --project invoice-approval --working-dir ~/en
|
|
|
431
455
|
npx delegate-cli --cartographer --project invoice-approval --working-dir ~/engagements \
|
|
432
456
|
"Read the AS-IS notes and draft the process overview."
|
|
433
457
|
|
|
434
|
-
# Preset plus one extra skill
|
|
435
|
-
#
|
|
436
|
-
npx delegate-cli --cartographer --preload-skill task-design
|
|
437
|
-
"Start the engagement."
|
|
458
|
+
# Preset plus one extra skill the package does not ship, loaded from a folder of your
|
|
459
|
+
# own; business-analysis is already in the preset, so naming it again changes nothing
|
|
460
|
+
npx delegate-cli --cartographer --skills-path ~/my-skills --preload-skill task-design \
|
|
461
|
+
--project invoice-approval "Start the engagement."
|
|
438
462
|
|
|
439
463
|
# Separate one-turn commands with persistent interop
|
|
440
464
|
npx delegate-cli --print --keep-alive "take a screenshot"
|
|
@@ -502,7 +526,7 @@ A failed backend call exits 1 with the status on stderr and nothing on stdout, a
|
|
|
502
526
|
```bash
|
|
503
527
|
npx delegate-cli login --env production # once
|
|
504
528
|
npx delegate-cli host --runner-url wss://runner.example/worker \
|
|
505
|
-
--interop /path/to/UiPath.
|
|
529
|
+
--interop /path/to/UiPath.Delegate.Host.Api # omit --interop → discovery only
|
|
506
530
|
```
|
|
507
531
|
|
|
508
532
|
Backend URL defaults to the saved login's org/tenant (override with `--backend` or `AUTOPILOT_BACKEND_URL`). Tokens refresh automatically from `~/.aria/sdk-auth.json`; when refresh permanently fails the host prints a re-login instruction and exits non-zero.
|
package/dist/cli.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
const _0x219fb2=_0x9399;(function(_0xd63f8e,_0x5e31aa){const _0x1709d9=_0x9399,_0x5df758=_0xd63f8e();while(!![]){try{const _0x40c1b6=parseInt(_0x1709d9(0x2b7))/0x1+-parseInt(_0x1709d9(0x2f7))/0x2+parseInt(_0x1709d9(0x248))/0x3+parseInt(_0x1709d9(0x398))/0x4*(parseInt(_0x1709d9(0x253))/0x5)+-parseInt(_0x1709d9(0x34d))/0x6*(parseInt(_0x1709d9(0x1e1))/0x7)+parseInt(_0x1709d9(0x341))/0x8*(-parseInt(_0x1709d9(0x384))/0x9)+parseInt(_0x1709d9(0x258))/0xa;if(_0x40c1b6===_0x5e31aa)break;else _0x5df758['push'](_0x5df758['shift']());}catch(_0x1a4ddd){_0x5df758['push'](_0x5df758['shift']());}}}(_0x536b,0xd9b2e));const __dirname=import.meta.dirname;import _0x17c18c from'fs';import _0x288a25 from'path';import{clearLine as _0x2e9e0e,createInterface as _0x19be50,cursorTo as _0x4cf33e}from'node:readline';import{BUSINESS_ANALYSIS_PRELOADED_SKILLS as _0x412c63,DelegateAgent as _0x570f48,cancelTurn as _0x2006b1,InteropProcess as _0x388e6d,complete as _0x567e63,DEFAULT_MODEL as _0x319442,createBackendClient as _0x5d7984,evaluate as _0x40f8e2,isCompletionRequestError as _0x2b4b9a,isEvaluationRequestError as _0x17ed68,isTranscriptionError as _0xe2759e,rerank as _0x46a6f7,transcribe as _0x624b49,verify as _0x4ae40b,acceptDelegation as _0x1ba84e,cancelDelegation as _0xde31e0,claimDelegation as _0x2cf28c,completeDelegation as _0x5e9ffc,createDelegation as _0x5373f6,deleteDelegation as _0x6ce2c1,dismissDelegation as _0x5e3214,getSessionDelegations as _0x316639,isDelegationError as _0x3b57cb,listDelegations as _0x5bd4dd,listOrgUsers as _0x1d01a1,previewDelegation as _0xa76ef7,TurnResultCollector as _0x8f1890,agentEventToJsonLine as _0x1b89e5,describeBaseUrlRejection as _0x25781c,getActivitySummary as _0x2ceefe,getAuthFilePath as _0x296c14,getByoWarnings as _0x26eac8,getCartographerAllowance as _0x6400bf,getDailyBreakdown as _0x2c92e7,getLicensingSummary as _0x93549e,getMonthlySpending as _0x5d69d6,isOutputFormat as _0x4c5fce,isCloudBaseUrl as _0x17e6b0,isSafeProjectFolderSegment as _0x517d39,listModels as _0x14c11a,listSessions as _0xbd9a95,getSession as _0x102dc8,renameSession as _0x55f2ad,deleteSession as _0x198c41,forkSession as _0x41831b,isBackendRequestError as _0x3f7a99,MAX_SESSION_PAGE_SIZE as _0x61416b,listTenants as _0x451c83,loadAndRefreshAuth as _0x2d8df3,loadAndRefreshSdkLogin as _0x53696b,parsePlatformBaseUrl as _0x39b442,resolveBackendUrl as _0x9e97da,runHealthCheck as _0x44191b,runHostCommand as _0x4172e8,runLoginFlow as _0x51dd44,runTurnForResult as _0x5c2585,saveAuthData as _0x391d02,switchTenant as _0x3b85d9,toJsonLine as _0x1aae23,ENV_TO_CLOUD as _0x5c4522,OUTPUT_FORMATS as _0x31e774}from'@uipath/delegate-sdk';var pt=[_0x219fb2(0x34b),_0x219fb2(0x2ef),_0x219fb2(0x2f4),_0x219fb2(0x262),'logout','whoami','check',_0x219fb2(0x36c),_0x219fb2(0x305),_0x219fb2(0x2db),_0x219fb2(0x33e),_0x219fb2(0x371),_0x219fb2(0x2b5),_0x219fb2(0x309),_0x219fb2(0x2c2),_0x219fb2(0x281)],W=['','models','whoami',_0x219fb2(0x2b9),_0x219fb2(0x36c),_0x219fb2(0x305),'evaluate','rerank',_0x219fb2(0x371),'complete','transcribe',_0x219fb2(0x2c2),_0x219fb2(0x281)],G=[_0x219fb2(0x2cb),_0x219fb2(0x379),_0x219fb2(0x33f),_0x219fb2(0x260),_0x219fb2(0x23d)],mt=_0x412c63;function p(_0x373c42,_0x11c755,_0x219f10,_0x11e1fc){const _0x39b386=_0x219fb2;let _0x5e4683=_0x373c42[_0x11c755];return(!_0x5e4683||_0x5e4683[_0x39b386(0x286)]>0x1&&_0x5e4683[_0x39b386(0x2f9)]('-'))&&(console[_0x39b386(0x327)](_0x219f10+_0x39b386(0x23e)+_0x11e1fc+'.'),process[_0x39b386(0x380)](0x2)),_0x5e4683;}function N(_0x4e5750,_0x5b0552,_0x177658,_0x1d5066){const _0x87462c=_0x219fb2;let _0x456e5d=p(_0x4e5750,_0x5b0552,_0x177658,_0x87462c(0x23a)),_0x242a2b=Number(_0x456e5d);return(!/^\d+$/[_0x87462c(0x23f)](_0x456e5d)||_0x242a2b<0x1||!Number[_0x87462c(0x2e5)](_0x242a2b)||_0x1d5066!==void 0x0&&_0x242a2b>_0x1d5066)&&(console[_0x87462c(0x327)](_0x177658+_0x87462c(0x346)+(_0x1d5066===void 0x0?'1\x20or\x20more':_0x87462c(0x25b)+_0x1d5066)+_0x87462c(0x2f6)+_0x456e5d+'.'),process[_0x87462c(0x380)](0x2)),_0x242a2b;}function ft(_0x455e0d){const _0x2a2154=_0x219fb2;let _0x2feb58={'subcommand':'','prompt':'','print':!0x1,'keepAlive':!0x1,'cleanup':!0x1,'headless':!0x1,'noComputerUse':!0x1,'cartographer':!0x1,'noConnections':!0x1,'noSecurity':!0x1,'noMemory':!0x1,'quiet':!0x1,'verbose':!0x1,'outputFormat':'text','preloadSkills':[],'attachments':[],'skipEnvCheck':!0x1,'includeSubAgents':!0x1,'operands':[],'help':!0x1,'version':!0x1};pt['includes'](_0x455e0d[0x0])&&(_0x2feb58[_0x2a2154(0x27a)]=_0x455e0d[0x0],_0x455e0d=_0x455e0d['slice'](0x1));let _0x33d1a=[];for(let _0x1613b5=0x0;_0x1613b5<_0x455e0d[_0x2a2154(0x286)];_0x1613b5++){let _0x2b2fd1=_0x455e0d[_0x1613b5];switch(_0x2b2fd1){case'--print':case'-p':_0x2feb58[_0x2a2154(0x225)]=!0x0;break;case _0x2a2154(0x310):_0x2feb58[_0x2a2154(0x394)]=!0x0;break;case _0x2a2154(0x229):_0x2feb58[_0x2a2154(0x353)]=!0x0;break;case _0x2a2154(0x2a4):_0x2feb58[_0x2a2154(0x2e3)]=!0x0;break;case _0x2a2154(0x33d):_0x2feb58['noComputerUse']=!0x0;break;case _0x2a2154(0x2bf):_0x2feb58[_0x2a2154(0x37e)]=!0x0,_0x2feb58[_0x2a2154(0x2fb)]=!0x0,_0x2feb58['preloadSkills'][_0x2a2154(0x340)](...mt);break;case'--no-connections':_0x2feb58[_0x2a2154(0x1dd)]=!0x0;break;case _0x2a2154(0x1f9):_0x2feb58[_0x2a2154(0x36e)]=!0x0;break;case'--no-memory':_0x2feb58['noMemory']=!0x0;break;case'--quiet':case'-q':_0x2feb58[_0x2a2154(0x38e)]=!0x0;break;case _0x2a2154(0x337):_0x2feb58[_0x2a2154(0x2c3)]=!0x0;break;case _0x2a2154(0x390):_0x2feb58[_0x2a2154(0x227)]=_0x455e0d[++_0x1613b5];break;case _0x2a2154(0x2e6):_0x2feb58[_0x2a2154(0x234)]=_0x455e0d[++_0x1613b5];break;case _0x2a2154(0x1f2):_0x2feb58['runnerUrl']=_0x455e0d[++_0x1613b5];break;case _0x2a2154(0x302):_0x2feb58['interopPath']=_0x455e0d[++_0x1613b5];break;case _0x2a2154(0x31f):_0x2feb58[_0x2a2154(0x335)]=_0x455e0d[++_0x1613b5];break;case _0x2a2154(0x34f):_0x2feb58[_0x2a2154(0x235)][_0x2a2154(0x340)](p(_0x455e0d,++_0x1613b5,_0x2b2fd1,_0x2a2154(0x208)));break;case _0x2a2154(0x2cf):{let _0x2ebb2c=p(_0x455e0d,++_0x1613b5,_0x2b2fd1,_0x2a2154(0x27c));_0x517d39(_0x2ebb2c)||(console['error'](_0x2a2154(0x343)+_0x2ebb2c+_0x2a2154(0x36b)),process[_0x2a2154(0x380)](0x2)),_0x2feb58[_0x2a2154(0x320)]=_0x2ebb2c;break;}case _0x2a2154(0x2ec):{let _0x424891=p(_0x455e0d,++_0x1613b5,_0x2b2fd1,_0x2a2154(0x32b)+_0x31e774[_0x2a2154(0x362)](_0x2a2154(0x1ed))+')');_0x4c5fce(_0x424891)||(console[_0x2a2154(0x327)](_0x2a2154(0x28a)+_0x424891+_0x2a2154(0x228)+_0x31e774['join'](_0x2a2154(0x1ed))+'.'),process[_0x2a2154(0x380)](0x2)),_0x2feb58['outputFormat']=_0x424891;break;}case'--session':_0x2feb58[_0x2a2154(0x2f1)]=p(_0x455e0d,++_0x1613b5,_0x2b2fd1,_0x2a2154(0x270));break;case _0x2a2154(0x26c):_0x2feb58[_0x2a2154(0x20f)]=N(_0x455e0d,++_0x1613b5,_0x2b2fd1);break;case'--limit':_0x2feb58[_0x2a2154(0x33b)]=N(_0x455e0d,++_0x1613b5,_0x2b2fd1,_0x61416b);break;case _0x2a2154(0x21a):_0x2feb58[_0x2a2154(0x2f0)]=!0x0;break;case _0x2a2154(0x223):_0x2feb58[_0x2a2154(0x38b)]=p(_0x455e0d,++_0x1613b5,_0x2b2fd1,_0x2a2154(0x393));break;case _0x2a2154(0x33c):{let _0x4774ec=_0x288a25[_0x2a2154(0x1f1)](process['cwd'](),p(_0x455e0d,++_0x1613b5,_0x2b2fd1,_0x2a2154(0x22f)));_0x17c18c['existsSync'](_0x4774ec)||(console['error']('--attach:\x20no\x20such\x20file\x20or\x20folder:\x20'+_0x4774ec),process[_0x2a2154(0x380)](0x2)),_0x2feb58['attachments'][_0x2a2154(0x340)](_0x4774ec);break;}case _0x2a2154(0x349):_0x2feb58['turnId']=p(_0x455e0d,++_0x1613b5,_0x2b2fd1,_0x2a2154(0x314));break;case'--to':_0x2feb58['delegateTo']=p(_0x455e0d,++_0x1613b5,_0x2b2fd1,_0x2a2154(0x2d2));break;case _0x2a2154(0x206):_0x2feb58['contextSummary']=p(_0x455e0d,++_0x1613b5,_0x2b2fd1,_0x2a2154(0x2f5));break;case _0x2a2154(0x300):_0x2feb58[_0x2a2154(0x2b2)]=N(_0x455e0d,++_0x1613b5,_0x2b2fd1,0x16d);break;case _0x2a2154(0x2aa):_0x2feb58[_0x2a2154(0x292)]=_0x288a25[_0x2a2154(0x1f1)](process[_0x2a2154(0x2a3)](),p(_0x455e0d,++_0x1613b5,_0x2b2fd1,_0x2a2154(0x1de)));break;case _0x2a2154(0x278):_0x2feb58['bundledSkillsPath']=_0x288a25[_0x2a2154(0x1f1)](process['cwd'](),p(_0x455e0d,++_0x1613b5,_0x2b2fd1,_0x2a2154(0x1de)));break;case _0x2a2154(0x317):{let _0x154635=p(_0x455e0d,++_0x1613b5,_0x2b2fd1,_0x2a2154(0x30b));G['includes'](_0x154635)||(console['error'](_0x2a2154(0x244)+_0x154635+'.\x20Use\x20'+G[_0x2a2154(0x362)](_0x2a2154(0x1ed))+'.'),process[_0x2a2154(0x380)](0x2)),_0x2feb58[_0x2a2154(0x352)]=_0x154635;break;}case _0x2a2154(0x231):{let _0x450e9b=_0x455e0d[++_0x1613b5];(!_0x450e9b||_0x450e9b['startsWith']('--'))&&(console[_0x2a2154(0x327)](_0x2a2154(0x22b)),process[_0x2a2154(0x380)](0x2)),_0x2feb58[_0x2a2154(0x2ef)]=_0x450e9b;break;}case _0x2a2154(0x22d):{let _0x1e1c30=_0x455e0d[++_0x1613b5];[_0x2a2154(0x303),_0x2a2154(0x373),'production',_0x2a2154(0x35a)][_0x2a2154(0x255)](_0x1e1c30)||(console[_0x2a2154(0x327)](_0x2a2154(0x2ba)+_0x1e1c30+_0x2a2154(0x1d1)),process[_0x2a2154(0x380)](0x2)),_0x2feb58[_0x2a2154(0x2ca)]=_0x1e1c30;break;}case'--url':case'--authority':{let _0x5a49e8=p(_0x455e0d,++_0x1613b5,_0x2b2fd1,_0x2a2154(0x2fa)),_0x9cd949=_0x39b442(_0x5a49e8);if(_0x9cd949['ok']===!0x1){console[_0x2a2154(0x327)](_0x25781c(_0x5a49e8,_0x9cd949[_0x2a2154(0x30f)])),process[_0x2a2154(0x380)](0x2);break;}_0x2feb58[_0x2a2154(0x25e)]=_0x9cd949[_0x2a2154(0x20e)];break;}case _0x2a2154(0x391):_0x2feb58[_0x2a2154(0x1d7)]=!0x0;break;case'-h':case _0x2a2154(0x1d6):_0x2feb58[_0x2a2154(0x328)]=!0x0;break;case'-v':case _0x2a2154(0x350):_0x2feb58[_0x2a2154(0x2bd)]=!0x0;break;default:_0x2b2fd1[_0x2a2154(0x2f9)]('--')&&(console[_0x2a2154(0x327)](_0x2a2154(0x279)+_0x2b2fd1),process['exit'](0x2)),_0x33d1a[_0x2a2154(0x340)](_0x2b2fd1);}}return _0x2feb58[_0x2a2154(0x2ef)]!==void 0x0&&_0x2feb58[_0x2a2154(0x27a)]!=='login'&&(console['error'](_0x2a2154(0x1dc)),process[_0x2a2154(0x380)](0x2)),_0x2feb58[_0x2a2154(0x25e)]!==void 0x0&&_0x2feb58[_0x2a2154(0x2ca)]!==void 0x0&&(console[_0x2a2154(0x327)](_0x2a2154(0x265)),process[_0x2a2154(0x380)](0x2)),_0x2feb58['url']!==void 0x0&&_0x2feb58['subcommand']!==_0x2a2154(0x34b)&&(console[_0x2a2154(0x327)]('--url\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Other\x20commands\x20follow\x20the\x20saved\x20login,\x20or\x20--backend\x20<url>.'),process[_0x2a2154(0x380)](0x2)),_0x2feb58[_0x2a2154(0x2b2)]!==void 0x0&&_0x2feb58['subcommand']!==_0x2a2154(0x305)&&(console[_0x2a2154(0x327)](_0x2a2154(0x344)),process[_0x2a2154(0x380)](0x2)),_0x2feb58[_0x2a2154(0x38b)]!==void 0x0&&(_0x2feb58[_0x2a2154(0x27a)]!=='complete'&&_0x2feb58[_0x2a2154(0x27a)]!==''||_0x2feb58[_0x2a2154(0x353)])&&(console[_0x2a2154(0x327)](_0x2a2154(0x29b)),process[_0x2a2154(0x380)](0x2)),_0x2feb58[_0x2a2154(0x205)][_0x2a2154(0x286)]>0x0&&(_0x2feb58[_0x2a2154(0x27a)]!==''||_0x2feb58['cleanup'])&&(console[_0x2a2154(0x327)](_0x2a2154(0x2ed)),process['exit'](0x2)),_0x2feb58[_0x2a2154(0x1d7)]&&_0x2feb58[_0x2a2154(0x27a)]!=='login'&&(console[_0x2a2154(0x327)]('--skip-env-check\x20applies\x20to\x20`delegate-cli\x20login`\x20only.'),process[_0x2a2154(0x380)](0x2)),_0x2feb58[_0x2a2154(0x20a)]!=='text'&&!W[_0x2a2154(0x255)](_0x2feb58['subcommand'])&&(console[_0x2a2154(0x327)](_0x2a2154(0x1e7)+_0x2feb58['outputFormat']+_0x2a2154(0x282)+W[_0x2a2154(0x35b)](Boolean)[_0x2a2154(0x362)](',\x20')+'.'),process['exit'](0x2)),(_0x2feb58[_0x2a2154(0x20f)]!==void 0x0||_0x2feb58['limit']!==void 0x0||_0x2feb58[_0x2a2154(0x2f0)])&&_0x2feb58[_0x2a2154(0x27a)]!==_0x2a2154(0x36c)&&(console[_0x2a2154(0x327)](_0x2a2154(0x2d0)),process[_0x2a2154(0x380)](0x2)),(_0x2feb58['delegateTo']!==void 0x0||_0x2feb58['contextSummary']!==void 0x0)&&_0x2feb58['subcommand']!==_0x2a2154(0x2c2)&&(console[_0x2a2154(0x327)](_0x2a2154(0x31b)),process['exit'](0x2)),_0x2feb58[_0x2a2154(0x215)]!==void 0x0&&_0x2feb58['subcommand']!==_0x2a2154(0x36c)&&(console[_0x2a2154(0x327)](_0x2a2154(0x288)),process[_0x2a2154(0x380)](0x2)),_0x2feb58[_0x2a2154(0x235)]=[...new Set(_0x2feb58[_0x2a2154(0x235)])],_0x2feb58['operands']=_0x33d1a,_0x2feb58[_0x2a2154(0x386)]=_0x33d1a[_0x2a2154(0x362)]('\x20'),_0x2feb58;}var S=_0x5d247=>{process['stdout']['write'](_0x5d247);};function gt(){const _0x28946b=_0x219fb2;let _0x3741c2=process[_0x28946b(0x274)][_0x28946b(0x25d)],_0x1d6b02=_0x3741c2[_0x28946b(0x2d5)](process[_0x28946b(0x274)]),_0x5668bd=S;return S=_0x508fec=>{_0x1d6b02(_0x508fec);},process[_0x28946b(0x274)][_0x28946b(0x25d)]=(..._0x4cce54)=>process['stderr'][_0x28946b(0x25d)](..._0x4cce54),()=>{const _0x9a87ad=_0x28946b;process[_0x9a87ad(0x274)][_0x9a87ad(0x25d)]=_0x3741c2,S=_0x5668bd;};}function l(_0x2a30b8,_0xd9df90,_0x3f4126){const _0x74bdc6=_0x219fb2;if(_0x2a30b8['outputFormat']===_0x74bdc6(0x224)){_0x3f4126(_0xd9df90);return;}S(_0x1aae23(_0xd9df90));}function ht(){const _0x1adcff=_0x219fb2;let _0x450ad0=_0x1adcff(0x1fb)['trim']();console[_0x1adcff(0x330)](_0x450ad0);}function wt(){const _0x46f888=_0x219fb2;try{return JSON[_0x46f888(0x388)](_0x17c18c[_0x46f888(0x397)](_0x288a25[_0x46f888(0x362)](__dirname,'..',_0x46f888(0x2c4)),_0x46f888(0x396)))[_0x46f888(0x2bd)]||'unknown';}catch{return _0x46f888(0x387);}}var yt=0x7d0;async function K(_0x2f9883,_0x166132){const _0x50a1dc=_0x219fb2;let _0x4a3ce2=_0x166132?[_0x166132]:[];for await(let _0x5a573b of _0x2f9883)_0x4a3ce2['push'](Buffer[_0x50a1dc(0x1d4)](_0x5a573b));return Buffer[_0x50a1dc(0x2b0)](_0x4a3ce2)[_0x50a1dc(0x1fe)](_0x50a1dc(0x396))[_0x50a1dc(0x2b3)]();}function kt(_0x354e4e,_0x135b9a){return new Promise(_0x2f0d16=>{const _0x4ba7d8=_0x9399;let _0x8469e2=_0x2e76fa=>{const _0x1b7b7d=_0x9399;clearTimeout(_0x22f08e),_0x354e4e[_0x1b7b7d(0x2e4)]('data',_0x24cd5d),_0x354e4e['off'](_0x1b7b7d(0x1d2),_0x2f5e5b),_0x354e4e[_0x1b7b7d(0x2e4)](_0x1b7b7d(0x327),_0x2f5e5b),_0x354e4e[_0x1b7b7d(0x1e9)](),_0x2f0d16(_0x2e76fa);},_0x24cd5d=_0x569a11=>_0x8469e2(Buffer['from'](_0x569a11)),_0x2f5e5b=()=>_0x8469e2(null),_0x22f08e=setTimeout(()=>_0x8469e2(null),_0x135b9a);_0x354e4e['on'](_0x4ba7d8(0x2b6),_0x24cd5d),_0x354e4e['on']('end',_0x2f5e5b),_0x354e4e['on'](_0x4ba7d8(0x327),_0x2f5e5b),_0x354e4e[_0x4ba7d8(0x357)]();});}async function I(_0x4e5381,_0x307179,_0x508859=yt){const _0x3da5a4=_0x219fb2;let _0x5bed3e=_0x4e5381==='-';if(!_0x5bed3e&&_0x4e5381)return _0x4e5381;if(!_0x5bed3e&&_0x307179[_0x3da5a4(0x323)])return'';if(_0x5bed3e)return K(_0x307179,null);let _0x26cd27=await kt(_0x307179,_0x508859);return _0x26cd27?K(_0x307179,_0x26cd27):'';}function L(){const _0x58882e=_0x219fb2;return _0x288a25['join'](process.env.HOME||process.env.USERPROFILE||'',_0x58882e(0x237),_0x58882e(0x2d6));}function $(_0x5ebe91){const _0x5061bf=_0x219fb2;try{let _0x582725=JSON['parse'](_0x17c18c['readFileSync'](_0x5ebe91,_0x5061bf(0x396)));return!_0x582725['accessToken']||!_0x582725[_0x5061bf(0x232)]||!_0x582725[_0x5061bf(0x2be)]?null:_0x582725;}catch{return null;}}function St(){const _0xfacf38=_0x219fb2;let _0x2826a5=[{'file':_0x296c14(),'isDesktopFallback':!0x1},{'file':L(),'isDesktopFallback':!0x0}];for(let _0xe112c6 of _0x2826a5){let _0x111547=$(_0xe112c6[_0xfacf38(0x24f)]);if(_0x111547)return{..._0xe112c6,'auth':_0x111547};}return null;}async function bt(){const _0x256d93=_0x219fb2;let _0x5a6c9e=_0x296c14();if(!_0x17c18c['existsSync'](_0x5a6c9e)){let _0x40bcec=L();console['log']($(_0x40bcec)?_0x256d93(0x313)+_0x40bcec+'\x20—\x20sign\x20out\x20in\x20the\x20Delegate\x20app\x20to\x20clear\x20that.':'No\x20CLI\x20login\x20found\x20—\x20nothing\x20to\x20remove.');return;}_0x17c18c[_0x256d93(0x322)](_0x5a6c9e),console[_0x256d93(0x330)](_0x256d93(0x2cd)+_0x5a6c9e);}async function vt(_0x454005){const _0x302f5c=_0x219fb2;let _0x14aefb=O(),_0x222b0e,_0x114ca9;if(_0x14aefb)_0x222b0e=_0x14aefb,_0x114ca9='environment\x20variables\x20(AUTH_TOKEN/TENANT_ID/ORG_ID)';else{let _0x451320=St();if(!_0x451320)throw new Error(le);_0x222b0e=_0x451320[_0x302f5c(0x26f)],_0x114ca9=_0x451320[_0x302f5c(0x284)]?_0x451320[_0x302f5c(0x24f)]+'\x20(Delegate\x20desktop\x20app\x20fallback)':_0x451320[_0x302f5c(0x24f)];}let _0xb07c5={'source':_0x114ca9,'baseUrl':_0x222b0e[_0x302f5c(0x20e)]??null,'deployment':Et(_0x222b0e[_0x302f5c(0x20e)]),'organization':{'id':_0x222b0e[_0x302f5c(0x2be)],'slug':_0x222b0e['orgLogicalName']??null},'tenant':{'id':_0x222b0e[_0x302f5c(0x232)],'name':_0x222b0e[_0x302f5c(0x1e2)]??null},'tokenExpiresAt':_0x222b0e['expiresAt']?new Date(_0x222b0e[_0x302f5c(0x236)]*0x3e8)[_0x302f5c(0x2a9)]():null};l(_0x454005,_0xb07c5,()=>{const _0x593610=_0x302f5c;let _0x2d660a=[_0x593610(0x22a)+_0x114ca9,'Base\x20URL:\x20\x20\x20\x20\x20'+(_0x222b0e['baseUrl']??_0x593610(0x387)),_0x593610(0x25c)+_0xb07c5['deployment'],_0x593610(0x1f0)+(_0x222b0e[_0x593610(0x268)]??_0x593610(0x2e8))+'\x20('+_0x222b0e['organizationId']+')',_0x593610(0x203)+(_0x222b0e[_0x593610(0x1e2)]??'unknown\x20slug')+'\x20('+_0x222b0e[_0x593610(0x232)]+')'];if(_0x222b0e[_0x593610(0x236)]){let _0x345d0e=_0x222b0e[_0x593610(0x236)]-Math['floor'](Date[_0x593610(0x2d9)]()/0x3e8);_0x2d660a[_0x593610(0x340)](_0x345d0e>0x0?_0x593610(0x254)+_0xb07c5['tokenExpiresAt']+_0x593610(0x23c)+Math[_0x593610(0x2eb)](_0x345d0e/0x3c)+_0x593610(0x2a2):_0x593610(0x33a)+_0xb07c5['tokenExpiresAt']);}process[_0x593610(0x274)][_0x593610(0x25d)](_0x2d660a[_0x593610(0x362)]('\x0a')+'\x0a');});}var le='No\x20auth\x20found.\x20Set\x20AUTH_TOKEN\x20(or\x20AUTH_TOKEN_FILE)/TENANT_ID/ORG_ID\x20env\x20vars,\x20or\x20run\x20`delegate-cli\x20login\x20--env\x20<alpha|staging|production>`\x20(or\x20`--url\x20<deployment-url>`\x20for\x20Automation\x20Suite)\x20first.';function Et(_0x2158f5){const _0x7a629d=_0x219fb2;return _0x2158f5?_0x17e6b0(_0x2158f5)?_0x7a629d(0x2da):_0x7a629d(0x2e1):_0x7a629d(0x387);}function O(){let _0x5897b1=process.env.AUTH_TOKEN_FILE;return(process.env.AUTH_TOKEN||_0x5897b1)&&process.env.TENANT_ID&&process.env.ORG_ID?{'accessToken':_0x5897b1?At(_0x5897b1):process.env.AUTH_TOKEN,..._0x5897b1?{'accessTokenFile':_0x5897b1}:{},'tenantId':process.env.TENANT_ID,'organizationId':process.env.ORG_ID,'orgLogicalName':process.env.ORG_SLUG,'tenantName':process.env.TENANT_SLUG,'baseUrl':ce()}:null;}function At(_0x598b9e){const _0x13e6fc=_0x219fb2;let _0x222660;try{_0x222660=_0x17c18c[_0x13e6fc(0x397)](_0x598b9e,_0x13e6fc(0x396))['trim']();}catch(_0x5ded1a){throw new Error('AUTH_TOKEN_FILE\x20\x27'+_0x598b9e+_0x13e6fc(0x1f6)+_0x5ded1a[_0x13e6fc(0x1f8)]);}let _0x1b5701=_0x222660[_0x13e6fc(0x2f9)]('Bearer\x20')?_0x222660[_0x13e6fc(0x30a)](0x7)[_0x13e6fc(0x2b3)]():_0x222660;if(!_0x1b5701)throw new Error(_0x13e6fc(0x351)+_0x598b9e+_0x13e6fc(0x1cf));return _0x1b5701;}function ce(){const _0x4aa10d=_0x219fb2;let _0x580b8b=process.env.UIPATH_BASE_URL;if(!_0x580b8b)return;let _0x4fbbd4=_0x39b442(_0x580b8b);if(_0x4fbbd4['ok']===!0x1)throw new Error(_0x4aa10d(0x29c)+_0x25781c(_0x580b8b,_0x4fbbd4[_0x4aa10d(0x30f)]));return _0x4fbbd4[_0x4aa10d(0x20e)];}async function P(){let _0x4bc5b9=O();if(_0x4bc5b9)return _0x4bc5b9;let _0x33b8d1=await _0x2d8df3();if(_0x33b8d1)return _0x33b8d1;throw new Error(le);}async function It(){const _0x3d7b6d=_0x219fb2;await new _0x388e6d()[_0x3d7b6d(0x24c)]({'force':!0x0}),console[_0x3d7b6d(0x330)](_0x3d7b6d(0x277));}function F(_0x216f58,_0x3e2295,_0x79de8e){const _0x3af280=_0x219fb2;_0x216f58?process[_0x3af280(0x2de)][_0x3af280(0x25d)](_0x3af280(0x29a)+_0x216f58+_0x3af280(0x202)+_0x79de8e+'\x0a'):!_0x3e2295&&!process.env.BACKEND_URL&&process[_0x3af280(0x2de)][_0x3af280(0x25d)](_0x3af280(0x207)+_0x79de8e+'\x0a');}async function f(_0x192033){const _0x1edefb=_0x219fb2;let _0x5515a7=await P(),_0x3347f0=_0x9e97da(_0x192033['env'],_0x5515a7,_0x192033[_0x1edefb(0x227)]);return F(_0x192033[_0x1edefb(0x2ca)],_0x192033['backendUrl'],_0x3347f0),{'auth':_0x5515a7,'backendUrl':_0x3347f0,'client':_0x5d7984({'auth':_0x5515a7,'backendUrl':_0x3347f0})};}async function $t(_0x499bee){const _0x4a1b97=_0x219fb2;let {client:_0xfd6d43}=await f(_0x499bee),[_0x833028,_0x19db6a]=await Promise[_0x4a1b97(0x367)]([_0x14c11a(_0xfd6d43),_0x26eac8(_0xfd6d43)['catch'](_0xb050c1=>(process[_0x4a1b97(0x2de)][_0x4a1b97(0x25d)](_0x4a1b97(0x213)+(_0xb050c1 instanceof Error?_0xb050c1[_0x4a1b97(0x1f8)]:String(_0xb050c1))+'\x0a'),{}))]),_0xc0a38e=_0x833028[_0x4a1b97(0x383)](_0x224077=>_0x19db6a[_0x224077['id']]?{..._0x224077,'byoWarning':_0x19db6a[_0x224077['id']]}:_0x224077);l(_0x499bee,_0xc0a38e,Tt);}function Tt(_0x50be76){const _0x568c6e=_0x219fb2;if(_0x50be76[_0x568c6e(0x286)]===0x0){process[_0x568c6e(0x2de)][_0x568c6e(0x25d)](_0x568c6e(0x233));return;}process[_0x568c6e(0x274)]['write'](_0x568c6e(0x27d)+_0x50be76[_0x568c6e(0x286)]+_0x568c6e(0x2fd));for(let _0x27e1cc of _0x50be76){let _0x1ba589=_0x27e1cc[_0x568c6e(0x356)]&&_0x27e1cc[_0x568c6e(0x356)]!==_0x27e1cc['id']?'\x20('+_0x27e1cc[_0x568c6e(0x356)]+')':'';process['stdout'][_0x568c6e(0x25d)]('\x20\x20'+_0x27e1cc['id']+_0x1ba589+'\x0a'),_0x27e1cc[_0x568c6e(0x2fe)]&&process['stdout'][_0x568c6e(0x25d)](_0x568c6e(0x1eb)+_0x27e1cc[_0x568c6e(0x2fe)]+'\x0a'),_0x27e1cc['locked']&&process['stdout'][_0x568c6e(0x25d)]('\x20\x20\x20\x20Not\x20available\x20on\x20this\x20plan'+(_0x27e1cc[_0x568c6e(0x2bb)]?'\x20('+_0x27e1cc[_0x568c6e(0x2bb)]+')':'')+'\x0a'),_0x27e1cc[_0x568c6e(0x240)]&&process[_0x568c6e(0x274)][_0x568c6e(0x25d)](_0x568c6e(0x2a5)+_0x27e1cc[_0x568c6e(0x240)]+'\x0a');}process[_0x568c6e(0x274)][_0x568c6e(0x25d)](_0x568c6e(0x218));}var z=[_0x219fb2(0x256),_0x219fb2(0x26b),_0x219fb2(0x1ea),_0x219fb2(0x251),'cancel','fork'];async function xt(_0x1b170a){const _0x138f47=_0x219fb2;let [_0x355c02='',_0x3b3c99='',..._0x56a9f5]=_0x1b170a[_0x138f47(0x24e)];if(_0x355c02&&!z[_0x138f47(0x255)](_0x355c02)&&(console[_0x138f47(0x327)](_0x138f47(0x1db)+_0x355c02+_0x138f47(0x273)+z['join'](_0x138f47(0x1ed))+'.'),process[_0x138f47(0x380)](0x2)),_0x1b170a[_0x138f47(0x215)]!==void 0x0&&_0x355c02!=='cancel'&&(console[_0x138f47(0x327)]('--turn\x20applies\x20to\x20`delegate-cli\x20sessions\x20cancel`\x20only.'),process[_0x138f47(0x380)](0x2)),_0x355c02&&_0x355c02!==_0x138f47(0x256)){await Dt(_0x1b170a,_0x355c02,_0x3b3c99,_0x56a9f5[_0x138f47(0x362)]('\x20')['trim']());return;}_0x1b170a[_0x138f47(0x24e)][_0x138f47(0x286)]>0x1&&(console['error']('Usage:\x20delegate-cli\x20sessions\x20[list]\x20[--page\x20N]\x20[--limit\x20N]\x20[--include-subagents]'),process[_0x138f47(0x380)](0x2));let {client:_0x29175d}=await f(_0x1b170a),_0xae6821=await _0xbd9a95(_0x29175d,{'page':_0x1b170a[_0x138f47(0x20f)],'pageSize':_0x1b170a['limit'],'includeSubAgents':_0x1b170a[_0x138f47(0x2f0)]});l(_0x1b170a,_0xae6821,Ct);}async function Dt(_0x2a6978,_0xc064c6,_0x3f0809,_0x52ae1b){const _0xbe9d7b=_0x219fb2;if((_0x2a6978[_0xbe9d7b(0x20f)]!==void 0x0||_0x2a6978['limit']!==void 0x0||_0x2a6978[_0xbe9d7b(0x2f0)])&&(console[_0xbe9d7b(0x327)]('--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`delegate-cli\x20sessions\x20[list]`\x20only.'),process[_0xbe9d7b(0x380)](0x2)),_0xc064c6===_0xbe9d7b(0x1e3)){await Ut(_0x2a6978,_0x3f0809,_0x52ae1b);return;}if(_0xc064c6===_0xbe9d7b(0x241)){await Nt(_0x2a6978,_0x3f0809,_0x52ae1b);return;}(!_0x3f0809||_0xc064c6===_0xbe9d7b(0x1ea)!=!!_0x52ae1b)&&(console[_0xbe9d7b(0x327)](_0xbe9d7b(0x34c)+_0xc064c6+'\x20<id>'+(_0xc064c6===_0xbe9d7b(0x1ea)?_0xbe9d7b(0x29d):'')),process['exit'](0x2));let {client:_0x92111f}=await f(_0x2a6978);try{if(_0xc064c6==='show'){let _0x223a77=await _0x102dc8(_0x92111f,_0x3f0809);_0x223a77||V(_0x3f0809),l(_0x2a6978,_0x223a77,_t);}else{if(_0xc064c6===_0xbe9d7b(0x1ea)){let _0x11b041=await _0x55f2ad(_0x92111f,_0x3f0809,_0x52ae1b);l(_0x2a6978,_0x11b041,_0x1dc1de=>{const _0x486b3f=_0xbe9d7b;process[_0x486b3f(0x274)][_0x486b3f(0x25d)](_0x486b3f(0x219)+_0x1dc1de['id']+':\x20'+_0x1dc1de[_0x486b3f(0x26d)]+'\x0a');});}else await _0x198c41(_0x92111f,_0x3f0809),l(_0x2a6978,{'id':_0x3f0809,'deleted':!0x0},_0x338af4=>{const _0x38adfc=_0xbe9d7b;process[_0x38adfc(0x274)][_0x38adfc(0x25d)](_0x38adfc(0x1e5)+_0x338af4['id']+'.\x0a');});}}catch(_0x30d922){if(!_0x3f7a99(_0x30d922,0x194))throw _0x30d922;V(_0x3f0809);}}function V(_0x2c39d9){const _0x2c8090=_0x219fb2;console['error']('Session\x20'+_0x2c39d9+'\x20not\x20found.'),process[_0x2c8090(0x380)](0x1);}function _t(_0x19337f){const _0x3c1c44=_0x219fb2;process[_0x3c1c44(0x274)][_0x3c1c44(0x25d)](_0x3c1c44(0x2df)+_0x19337f['id']+'\x0a'),process['stdout']['write'](_0x3c1c44(0x245)+_0x19337f[_0x3c1c44(0x26d)]+'\x0a'),process[_0x3c1c44(0x274)][_0x3c1c44(0x25d)](_0x3c1c44(0x296)+_0x19337f[_0x3c1c44(0x271)]+'\x0a'),process['stdout'][_0x3c1c44(0x25d)](_0x3c1c44(0x25a)+_0x19337f[_0x3c1c44(0x2be)]+'\x0a'),_0x19337f[_0x3c1c44(0x2c6)]&&process[_0x3c1c44(0x274)]['write']('Delegation\x20\x20\x20\x20'+_0x19337f[_0x3c1c44(0x2c6)]+'\x0a');}async function Ut(_0xfdc42b,_0x39f38f,_0x5651c8){const _0x24704a=_0x219fb2;(!_0x39f38f||_0x5651c8||!_0xfdc42b[_0x24704a(0x215)])&&(console[_0x24704a(0x327)](_0x24704a(0x32f)),process[_0x24704a(0x380)](0x2));let {client:_0xc6dd0b}=await f(_0xfdc42b),_0x5c2ac7=await _0x2006b1(_0xc6dd0b,_0x39f38f,_0xfdc42b[_0x24704a(0x215)]);l(_0xfdc42b,{'sessionId':_0x39f38f,'turnId':_0xfdc42b[_0x24704a(0x215)],'cancelled':_0x5c2ac7},_0x10d620=>{const _0x5a4901=_0x24704a;_0x10d620[_0x5a4901(0x372)]?process[_0x5a4901(0x274)][_0x5a4901(0x25d)](_0x5a4901(0x32d)+_0x10d620[_0x5a4901(0x215)]+_0x5a4901(0x312)+_0x10d620[_0x5a4901(0x2f1)]+'.\x0a'):process[_0x5a4901(0x2de)]['write'](_0x5a4901(0x1ef)+_0x10d620[_0x5a4901(0x215)]+_0x5a4901(0x2f3)+_0x10d620[_0x5a4901(0x2f1)]+'.\x0a');}),_0x5c2ac7||(process['exitCode']=0x1);}async function Nt(_0x2d4254,_0x19d86d,_0x2decbc){const _0x31cfd9=_0x219fb2;(!_0x19d86d||/\s/[_0x31cfd9(0x23f)](_0x2decbc))&&(console[_0x31cfd9(0x327)](_0x31cfd9(0x2a6)),process[_0x31cfd9(0x380)](0x2));let {client:_0x4f4d9a}=await f(_0x2d4254),_0xd81427;try{_0xd81427=await _0x41831b(_0x4f4d9a,_0x19d86d,{'atMessageId':_0x2decbc||void 0x0});}catch(_0x1c7bad){if(!_0x3f7a99(_0x1c7bad,0x194))throw _0x1c7bad;console[_0x31cfd9(0x327)](_0x31cfd9(0x35f)+_0x19d86d+_0x31cfd9(0x272)+(_0x2decbc?',\x20or\x20holds\x20no\x20message\x20'+_0x2decbc:'')+'.'),process[_0x31cfd9(0x380)](0x1);}l(_0x2d4254,_0xd81427,_0x3c92e2=>{const _0x12bf9e=_0x31cfd9;process[_0x12bf9e(0x274)][_0x12bf9e(0x25d)](_0x12bf9e(0x342)+_0x19d86d+_0x12bf9e(0x201)+_0x3c92e2['id']+'.\x0a'),process[_0x12bf9e(0x2de)][_0x12bf9e(0x25d)](_0x12bf9e(0x21b)+_0x3c92e2['id']+_0x12bf9e(0x1e8));});}function Ct({sessions:_0xc64505,page:_0x376f0c,isLastPage:_0xbd427c}){const _0x50d8d4=_0x219fb2;if(_0xc64505[_0x50d8d4(0x286)]===0x0)process[_0x50d8d4(0x2de)]['write']('No\x20sessions\x20on\x20page\x20'+_0x376f0c+'.\x0a');else{process[_0x50d8d4(0x274)][_0x50d8d4(0x25d)]('ID'[_0x50d8d4(0x35e)](0x24)+'\x20\x20'+_0x50d8d4(0x345)['padEnd'](0x13)+'\x20\x20TITLE\x0a');for(let _0xd3c4ed of _0xc64505){let _0x232364=_0xd3c4ed[_0x50d8d4(0x243)]['replace']('T','\x20')['slice'](0x0,0x13),_0x5223ec=_0xd3c4ed[_0x50d8d4(0x290)]?_0x50d8d4(0x1f5)+_0xd3c4ed[_0x50d8d4(0x290)]+')':'';process['stdout'][_0x50d8d4(0x25d)](_0xd3c4ed['id'][_0x50d8d4(0x35e)](0x24)+'\x20\x20'+_0x232364[_0x50d8d4(0x35e)](0x13)+'\x20\x20'+_0xd3c4ed[_0x50d8d4(0x26d)]+_0x5223ec+'\x0a');}}_0xbd427c||process[_0x50d8d4(0x2de)][_0x50d8d4(0x25d)]('More:\x20delegate-cli\x20sessions\x20--page\x20'+(_0x376f0c+0x1)+'\x0a');}async function Rt(_0x25f3ac){const _0x205fe0=_0x219fb2;let _0x111ffd=await P(),_0x2d35ac=_0x9e97da(_0x25f3ac['env'],_0x111ffd,_0x25f3ac['backendUrl']);F(_0x25f3ac[_0x205fe0(0x2ca)],_0x25f3ac['backendUrl'],_0x2d35ac);let _0x457155=await _0x44191b({'auth':_0x111ffd,'backendUrl':_0x2d35ac,'interop':_0x25f3ac['headless']?_0x205fe0(0x2a7):_0x205fe0(0x27f)});l(_0x25f3ac,_0x457155,({checks:_0x5a8fe1})=>{const _0x58eddf=_0x205fe0;for(let _0x54a35e of _0x5a8fe1)process[_0x58eddf(0x274)][_0x58eddf(0x25d)](Lt(_0x54a35e)+'\x0a');}),_0x457155['ok']||process[_0x205fe0(0x380)](0x1);}function Lt(_0x5dc310){const _0x599abc=_0x219fb2;return{'ok':'✓','failed':'✗','skipped':'-'}[_0x5dc310[_0x599abc(0x30c)]]+'\x20'+_0x5dc310['name'][_0x599abc(0x35e)](0xa)+_0x5dc310[_0x599abc(0x246)];}var Ot=['',_0x219fb2(0x376),'daily'];async function Pt(_0x5e7e21){const _0x3b6c1f=_0x219fb2;let _0x37966c=_0x5e7e21['prompt'];Ot['includes'](_0x37966c)||(console[_0x3b6c1f(0x327)](_0x3b6c1f(0x1f3)+_0x5e7e21[_0x3b6c1f(0x386)]+_0x3b6c1f(0x301)),process['exit'](0x2)),_0x37966c===''&&_0x5e7e21[_0x3b6c1f(0x2b2)]!==void 0x0&&(console[_0x3b6c1f(0x327)]('--days\x20applies\x20to\x20`delegate-cli\x20usage\x20activity|daily`;\x20the\x20summary\x20covers\x20the\x20current\x20month.'),process['exit'](0x2)),_0x37966c!==''&&_0x5e7e21[_0x3b6c1f(0x2f1)]!==void 0x0&&(console['error'](_0x3b6c1f(0x2af)),process[_0x3b6c1f(0x380)](0x2));let {client:_0x4d383f}=await f(_0x5e7e21);if(_0x37966c===_0x3b6c1f(0x376)){l(_0x5e7e21,await _0x2ceefe(_0x4d383f,{'days':_0x5e7e21[_0x3b6c1f(0x2b2)]}),jt);return;}if(_0x37966c===_0x3b6c1f(0x339)){l(_0x5e7e21,await _0x2c92e7(_0x4d383f,{'days':_0x5e7e21[_0x3b6c1f(0x2b2)]}),Mt);return;}let [_0x291802,_0x5a77b3,_0x4ae95f]=await Promise[_0x3b6c1f(0x367)]([_0x93549e(_0x4d383f,{'sessionId':_0x5e7e21[_0x3b6c1f(0x2f1)]}),_0x5d69d6(_0x4d383f),_0x6400bf(_0x4d383f)]);l(_0x5e7e21,{'licensing':_0x291802,'monthlySpending':_0x5a77b3,'cartographerAllowance':_0x4ae95f},Ft);}function Ft(_0x14d1f5){const _0x5119fe=_0x219fb2;let {licensing:_0x113365,monthlySpending:_0x3209e0,cartographerAllowance:_0x196781}=_0x14d1f5,_0x255519=[_0x113365[_0x5119fe(0x267)]?_0x5119fe(0x1ff)+_0x113365[_0x5119fe(0x32e)][_0x5119fe(0x1fc)](0x1)+_0x5119fe(0x204)+(_0x113365[_0x5119fe(0x2ff)]??0x0)+_0x5119fe(0x1f7)+(_0x113365[_0x5119fe(0x2c0)]>0x0?',\x20'+_0x113365[_0x5119fe(0x2c0)]+_0x5119fe(0x1ee):'')+_0x5119fe(0x1e4)+_0x113365[_0x5119fe(0x2ad)]+')':_0x5119fe(0x318),_0x5119fe(0x369)+_0x3209e0[_0x5119fe(0x32c)][_0x5119fe(0x1fc)](0x2)+_0x5119fe(0x37d)+(_0x3209e0[_0x5119fe(0x267)]&&_0x3209e0[_0x5119fe(0x24b)]!==null?_0x5119fe(0x294)+_0x3209e0[_0x5119fe(0x24b)]['toFixed'](0x2)+_0x5119fe(0x28b):_0x5119fe(0x242)),'Cartographer:\x20'+_0x196781[_0x5119fe(0x2d3)]+'\x20('+_0x196781[_0x5119fe(0x370)]+')'];_0x113365[_0x5119fe(0x365)]!==null&&_0x113365[_0x5119fe(0x365)]!==void 0x0&&_0x255519[_0x5119fe(0x340)](_0x5119fe(0x36f)+_0x113365[_0x5119fe(0x365)]+_0x5119fe(0x30d)),process[_0x5119fe(0x274)]['write'](_0x255519[_0x5119fe(0x362)]('\x0a')+'\x0a');}function jt(_0x3d483b){const _0x33ed02=_0x219fb2;let _0x21e0ff=[_0x33ed02(0x31d)+_0x3d483b[_0x33ed02(0x38d)]+_0x33ed02(0x1e6)+_0x3d483b[_0x33ed02(0x2b1)]+_0x33ed02(0x334)+_0x3d483b[_0x33ed02(0x378)]+_0x33ed02(0x377),_0x33ed02(0x34e)+_0x3d483b[_0x33ed02(0x37b)][_0x33ed02(0x1fc)](0x2)+_0x33ed02(0x35d)+_0x3d483b[_0x33ed02(0x2f2)][_0x33ed02(0x1fc)](0x2)+_0x33ed02(0x2d8)+_0x3d483b['total_token_units']+_0x33ed02(0x348),_0x33ed02(0x321)+_0x3d483b['total_prompt_tokens']+'\x20prompt,\x20'+_0x3d483b['total_completion_tokens']+_0x33ed02(0x316)];for(let [_0x46bd6e,_0x502617]of Object[_0x33ed02(0x2ae)](_0x3d483b[_0x33ed02(0x38a)]))_0x21e0ff['push']('\x20\x20'+_0x46bd6e+':\x20'+_0x502617+_0x33ed02(0x28c));process[_0x33ed02(0x274)][_0x33ed02(0x25d)](_0x21e0ff['join']('\x0a')+'\x0a');}function Mt(_0x18a995){const _0x2bd0cd=_0x219fb2;if(_0x18a995['daily_usage'][_0x2bd0cd(0x286)]===0x0){process[_0x2bd0cd(0x274)]['write'](_0x2bd0cd(0x360)+_0x18a995[_0x2bd0cd(0x38d)]+'\x20days.\x0a');return;}let _0x15b07a=[_0x2bd0cd(0x374)];for(let _0x34e3ec of _0x18a995[_0x2bd0cd(0x37c)])_0x15b07a['push'](_0x34e3ec[_0x2bd0cd(0x311)]+'\x20\x20'+String(_0x34e3ec[_0x2bd0cd(0x29e)])['padStart'](0xb)+'\x20\x20'+String(_0x34e3ec[_0x2bd0cd(0x36a)])[_0x2bd0cd(0x30e)](0xd)+'\x20\x20'+String(_0x34e3ec['completion_tokens'])[_0x2bd0cd(0x30e)](0x11));process[_0x2bd0cd(0x274)][_0x2bd0cd(0x25d)](_0x15b07a['join']('\x0a')+'\x0a');}function _0x9399(_0x560c65,_0x396ef2){_0x560c65=_0x560c65-0x1cf;const _0x536b0a=_0x536b();let _0x93997a=_0x536b0a[_0x560c65];return _0x93997a;}async function Bt(_0x2f8e40,_0x37e8ef){const _0x13cc76=_0x219fb2;let _0x496fc0=await Ht(_0x2f8e40['prompt'],_0x37e8ef);_0x2f8e40[_0x13cc76(0x234)]&&(_0x496fc0[_0x13cc76(0x234)]=_0x2f8e40[_0x13cc76(0x234)]);let {client:_0x4d34ca}=await f(_0x2f8e40);try{_0x37e8ef===_0x13cc76(0x2db)?l(_0x2f8e40,await _0x40f8e2(_0x4d34ca,_0x496fc0,void 0x0),Jt):_0x37e8ef===_0x13cc76(0x33e)?l(_0x2f8e40,await _0x46a6f7(_0x4d34ca,_0x496fc0,void 0x0),Wt):l(_0x2f8e40,await _0x4ae40b(_0x4d34ca,_0x496fc0,void 0x0),Gt);}catch(_0x19b6ec){if(!_0x17ed68(_0x19b6ec))throw _0x19b6ec;console[_0x13cc76(0x327)](_0x19b6ec[_0x13cc76(0x1f8)]),process['exit'](0x1);}}async function Ht(_0x1ba3a,_0x231f36){const _0x8e5cf7=_0x219fb2;let _0x405aec;try{_0x405aec=_0x1ba3a&&_0x1ba3a!=='-'?_0x17c18c[_0x8e5cf7(0x397)](_0x288a25['resolve'](_0x1ba3a),'utf-8'):await I(_0x1ba3a,process[_0x8e5cf7(0x2ee)]);}catch(_0x35af71){console[_0x8e5cf7(0x327)](_0x231f36+':\x20cannot\x20read\x20the\x20request\x20('+_0x35af71[_0x8e5cf7(0x1f8)]+').'),process[_0x8e5cf7(0x380)](0x2);}return _0x405aec||(console[_0x8e5cf7(0x327)](_0x231f36+'\x20needs\x20a\x20JSON\x20request:\x20delegate-cli\x20'+_0x231f36+_0x8e5cf7(0x293)),process[_0x8e5cf7(0x380)](0x2)),de(_0x405aec,_0x231f36,_0x8e5cf7(0x261));}function de(_0x37be4c,_0x37ecf1,_0x3d00f0){const _0x189109=_0x219fb2;let _0x601141;try{_0x601141=JSON[_0x189109(0x388)](_0x37be4c);}catch(_0x3f1aaa){console[_0x189109(0x327)](_0x37ecf1+':\x20'+_0x3d00f0+'\x20is\x20not\x20valid\x20JSON\x20('+_0x3f1aaa[_0x189109(0x1f8)]+').'),process[_0x189109(0x380)](0x2);}return(typeof _0x601141!=_0x189109(0x2d1)||_0x601141===null||Array['isArray'](_0x601141))&&(console[_0x189109(0x327)](_0x37ecf1+':\x20'+_0x3d00f0+_0x189109(0x22e)),process['exit'](0x2)),_0x601141;}function ue(_0x5751dc,_0x416c74){const _0x13d7b0=_0x219fb2;let _0x3d278d;try{_0x3d278d=_0x17c18c[_0x13d7b0(0x397)](_0x288a25[_0x13d7b0(0x1f1)](_0x5751dc),'utf-8');}catch(_0x270fe3){console[_0x13d7b0(0x327)](_0x416c74+_0x13d7b0(0x319)+_0x270fe3[_0x13d7b0(0x1f8)]+').'),process[_0x13d7b0(0x380)](0x2);}return de(_0x3d278d,_0x416c74,_0x13d7b0(0x354));}async function qt(_0xcb884c){const _0x88ba93=_0x219fb2;_0xcb884c[_0x88ba93(0x38b)]===void 0x0&&(console[_0x88ba93(0x327)](_0x88ba93(0x238)),process[_0x88ba93(0x380)](0x2));let _0xc5ac19=ue(_0xcb884c['jsonSchemaPath'],_0x88ba93(0x2b5)),_0x25a725=(await I(_0xcb884c[_0x88ba93(0x386)],process['stdin']))[_0x88ba93(0x2b3)]();_0x25a725||(console[_0x88ba93(0x327)]('complete\x20needs\x20a\x20prompt:\x20delegate-cli\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22,\x20or\x20-\x20to\x20read\x20stdin.'),process[_0x88ba93(0x380)](0x2));let {client:_0x59d051}=await f(_0xcb884c);try{let _0x476bbb=await _0x567e63(_0x59d051,{'prompt':_0x25a725,'jsonSchema':_0xc5ac19,'model':_0xcb884c[_0x88ba93(0x234)]||process.env.MODEL||_0x319442,..._0xcb884c['sessionId']!==void 0x0&&{'sessionId':_0xcb884c[_0x88ba93(0x2f1)]}},void 0x0);l(_0xcb884c,_0x476bbb,_0x36ac92=>{const _0x1b78b6=_0x88ba93;process[_0x1b78b6(0x274)]['write'](JSON[_0x1b78b6(0x1d9)](_0x36ac92[_0x1b78b6(0x325)],null,0x2)+'\x0a');});}catch(_0x5b8b15){if(!_0x2b4b9a(_0x5b8b15))throw _0x5b8b15;console[_0x88ba93(0x327)](_0x5b8b15[_0x88ba93(0x1f8)]),process[_0x88ba93(0x380)](0x1);}}function j(_0x2c7208){const _0x1951ae=_0x219fb2;process[_0x1951ae(0x274)]['write'](_0x1951ae(0x307)+_0x2c7208[_0x1951ae(0x234)]+'\x20('+_0x2c7208[_0x1951ae(0x2cc)]+_0x1951ae(0x222)+_0x2c7208['usage']['total_tokens']+'\x20tokens\x0a');}function Jt(_0x22a419){const _0x24c169=_0x219fb2;j(_0x22a419);for(let _0x2ca776 of Object['keys'](_0x22a419[_0x24c169(0x291)])){let _0x464cec=_0x22a419[_0x24c169(0x291)][_0x2ca776],_0x5be521=_0x464cec[_0x24c169(0x392)]==='probability'?'probability\x20'+_0x464cec[_0x24c169(0x298)]['toFixed'](0x2):_0x464cec[_0x24c169(0x392)]===_0x24c169(0x1f4)?_0x24c169(0x36d)+_0x464cec[_0x24c169(0x1f4)]+'\x20(confidence\x20'+_0x464cec[_0x24c169(0x297)][_0x24c169(0x1fc)](0x2)+')':_0x24c169(0x280)+_0x464cec[_0x24c169(0x200)]['toFixed'](0x2)+_0x24c169(0x2c5)+_0x464cec[_0x24c169(0x297)][_0x24c169(0x1fc)](0x2)+')';process[_0x24c169(0x274)][_0x24c169(0x25d)]('\x20\x20'+_0x2ca776+':\x20'+_0x5be521+'\x0a');}}function Wt(_0x1e025c){const _0x543409=_0x219fb2;j(_0x1e025c),_0x1e025c[_0x543409(0x29f)][_0x543409(0x211)]((_0x4a43bb,_0x26473b)=>{const _0x288fa3=_0x543409;process[_0x288fa3(0x274)]['write']('\x20\x20'+(_0x26473b+0x1)+'.\x20'+_0x4a43bb['id']+'\x20\x20'+_0x4a43bb['score'][_0x288fa3(0x1fc)](0x3)+_0x288fa3(0x1fd)+_0x4a43bb['index']+')\x0a');});}function Gt(_0x512fe2){const _0x315130=_0x219fb2;j(_0x512fe2),process[_0x315130(0x274)][_0x315130(0x25d)](_0x315130(0x389)+_0x512fe2[_0x315130(0x216)]+'\x0a');for(let _0x1226fb of _0x512fe2[_0x315130(0x29f)])process['stdout'][_0x315130(0x25d)]('\x20\x20'+_0x1226fb['id']+':\x20'+_0x1226fb[_0x315130(0x2d4)]+_0x315130(0x2c5)+_0x1226fb['confidence']['toFixed'](0x2)+')\x0a');}async function Kt(_0x5959d7){const _0x394ffb=_0x219fb2;let _0x41ae8b=_0x5959d7['prompt'][_0x394ffb(0x2b3)]();_0x41ae8b||(console[_0x394ffb(0x327)]('transcribe\x20needs\x20audio:\x20delegate-cli\x20transcribe\x20<file>,\x20or\x20-\x20to\x20read\x20stdin.'),process[_0x394ffb(0x380)](0x2));let {client:_0x26aeab}=await f(_0x5959d7);try{let _0x643595=_0x41ae8b==='-'?{'data':await zt(process[_0x394ffb(0x2ee)])}:_0x41ae8b;l(_0x5959d7,await _0x624b49(_0x26aeab,_0x643595,void 0x0),_0x308fc2=>{const _0x28ff69=_0x394ffb;process[_0x28ff69(0x274)][_0x28ff69(0x25d)](_0x308fc2[_0x28ff69(0x224)]+'\x0a');});}catch(_0x90b05c){if(_0xe2759e(_0x90b05c)&&(console[_0x394ffb(0x327)](_0x90b05c[_0x394ffb(0x1f8)]),process[_0x394ffb(0x380)](_0x90b05c[_0x394ffb(0x30c)]===void 0x0?0x2:0x1)),typeof _0x90b05c?.['code']!=_0x394ffb(0x230))throw _0x90b05c;console[_0x394ffb(0x327)](_0x394ffb(0x2b4)+_0x41ae8b+'\x20('+_0x90b05c['message']+').'),process[_0x394ffb(0x380)](0x2);}}async function zt(_0x24bc54){const _0x340758=_0x219fb2;let _0x305563=[];for await(let _0x57cb57 of _0x24bc54)_0x305563[_0x340758(0x340)](Buffer['from'](_0x57cb57));return Buffer['concat'](_0x305563);}var Y=[_0x219fb2(0x256),'pending',_0x219fb2(0x26b),_0x219fb2(0x347),_0x219fb2(0x37a),_0x219fb2(0x2b5),'accept','dismiss','cancel',_0x219fb2(0x251)],X={'list':'delegations\x20list\x20<backend-project-id>','pending':_0x219fb2(0x34a),'show':'delegations\x20show\x20<delegation-id|delegate://delegation/…>','create':_0x219fb2(0x395),'claim':_0x219fb2(0x358),'complete':_0x219fb2(0x27e),'accept':_0x219fb2(0x1d0),'dismiss':_0x219fb2(0x259),'cancel':'delegations\x20cancel\x20<delegation-id>','delete':_0x219fb2(0x381)};async function Vt(_0xfa7077){const _0x4a7b79=_0x219fb2;let [_0x29156d='',_0x3758a2='',..._0x3f0a23]=_0xfa7077[_0x4a7b79(0x24e)];Y['includes'](_0x29156d)||(console[_0x4a7b79(0x327)]((_0x29156d?_0x4a7b79(0x1fa)+_0x29156d+'.\x20':'')+_0x4a7b79(0x209)+Y[_0x4a7b79(0x362)](_0x4a7b79(0x1ed))+'.'),process[_0x4a7b79(0x380)](0x2));let _0x1d7aab=_0x29156d;_0x1d7aab!==_0x4a7b79(0x347)&&(_0xfa7077[_0x4a7b79(0x2ea)]!==void 0x0||_0xfa7077['contextSummary']!==void 0x0||_0xfa7077[_0x4a7b79(0x2f1)]!==void 0x0)&&(console[_0x4a7b79(0x327)](_0x4a7b79(0x2d7)),process[_0x4a7b79(0x380)](0x2));let _0x2d0279=(_0x1d7aab===_0x4a7b79(0x347)?_0xfa7077[_0x4a7b79(0x24e)][_0x4a7b79(0x30a)](0x1):_0x3f0a23)[_0x4a7b79(0x362)]('\x20')[_0x4a7b79(0x2b3)](),_0x31a4f3=_0x1d7aab===_0x4a7b79(0x347)||_0x1d7aab==='complete';(_0x1d7aab!==_0x4a7b79(0x347)&&!_0x3758a2||(_0x31a4f3?!_0x2d0279:_0x2d0279)||_0x1d7aab===_0x4a7b79(0x347)&&!_0xfa7077[_0x4a7b79(0x2f1)])&&(console[_0x4a7b79(0x327)]('Usage:\x20delegate-cli\x20'+X[_0x1d7aab]),process['exit'](0x2));let _0x3d2b0c=_0x31a4f3&&_0x2d0279==='-'?(await I('-',process[_0x4a7b79(0x2ee)]))[_0x4a7b79(0x2b3)]():_0x2d0279;_0x31a4f3&&!_0x3d2b0c&&(console[_0x4a7b79(0x327)](_0x4a7b79(0x2bc)+X[_0x1d7aab]+_0x4a7b79(0x2ac)),process[_0x4a7b79(0x380)](0x2));let {client:_0x3cbe01}=await f(_0xfa7077);try{await Yt(_0xfa7077,_0x3cbe01,_0x1d7aab,_0x3758a2,_0x3d2b0c);}catch(_0x235eed){if(!_0x3b57cb(_0x235eed))throw _0x235eed;console[_0x4a7b79(0x327)](_0x235eed[_0x4a7b79(0x1f8)]),process[_0x4a7b79(0x380)](0x1);}}async function Yt(_0x1578ce,_0x236ad4,_0x21b9cb,_0x1fcbe8,_0x24f548){const _0x475be5=_0x219fb2;switch(_0x21b9cb){case _0x475be5(0x256):l(_0x1578ce,await _0x5bd4dd(_0x236ad4,_0x1fcbe8),Xt);return;case _0x475be5(0x28e):l(_0x1578ce,await _0x316639(_0x236ad4,_0x1fcbe8),_0x4d4912=>{const _0x233db8=_0x475be5;_0x4d4912[_0x233db8(0x304)]&&process[_0x233db8(0x274)][_0x233db8(0x25d)](_0x233db8(0x2ce)+_0x4d4912[_0x233db8(0x304)]['id']+'\x20('+_0x4d4912[_0x233db8(0x304)][_0x233db8(0x30c)]+_0x233db8(0x306)),_0x4d4912['pendingResults'][_0x233db8(0x286)]===0x0&&process[_0x233db8(0x2de)][_0x233db8(0x25d)](_0x233db8(0x212));for(let _0xab4682 of _0x4d4912[_0x233db8(0x324)])process['stdout']['write']('\x0a'+_0xab4682['id']+_0x233db8(0x315)+(_0xab4682['assignedUserEmail']??'a\x20colleague')+'\x20\x20'+(_0xab4682['task']??'')+'\x0a'+(_0xab4682[_0x233db8(0x1ec)]?.[_0x233db8(0x2a1)]??'')+'\x0a');_0x4d4912[_0x233db8(0x324)]['length']>0x0&&process[_0x233db8(0x2de)][_0x233db8(0x25d)]('\x0aAccept\x20one\x20with:\x20delegate-cli\x20delegations\x20accept\x20<id>\x0a');});return;case _0x475be5(0x26b):l(_0x1578ce,await _0xa76ef7(_0x236ad4,_0x1fcbe8),Q);return;case _0x475be5(0x347):{let _0x2858e7=await _0x5373f6(_0x236ad4,{'sessionId':_0x1578ce['sessionId'],'task':_0x24f548,..._0x1578ce[_0x475be5(0x247)]!==void 0x0&&{'contextSummary':_0x1578ce[_0x475be5(0x247)]},..._0x1578ce[_0x475be5(0x2ea)]!==void 0x0&&{'recipient':_0x1578ce[_0x475be5(0x2ea)]}});l(_0x1578ce,_0x2858e7,_0x26f95d=>{const _0x307005=_0x475be5;_0x26f95d[_0x307005(0x2ab)]?process[_0x307005(0x274)][_0x307005(0x25d)](_0x307005(0x299)+_0x26f95d[_0x307005(0x2c6)]+'\x20to\x20'+_0x26f95d[_0x307005(0x2ab)][_0x307005(0x31e)]+'\x20<'+_0x26f95d[_0x307005(0x2ab)]['email']+_0x307005(0x221)):process[_0x307005(0x274)]['write']('Created\x20delegation\x20'+_0x26f95d[_0x307005(0x2c6)]+'.\x20Share:\x20'+_0x26f95d[_0x307005(0x210)]+'\x0a');});return;}case _0x475be5(0x37a):{let _0x4e4608=await _0x2cf28c(_0x236ad4,_0x1fcbe8);l(_0x1578ce,_0x4e4608,_0x2a3aa4=>{const _0x2f69c7=_0x475be5;Q(_0x2a3aa4),process['stdout'][_0x2f69c7(0x25d)](_0x2f69c7(0x23b)+_0x2a3aa4['sessionId']+'\x0a'),process[_0x2f69c7(0x2de)][_0x2f69c7(0x25d)]('Work\x20on\x20it\x20with:\x20delegate-cli\x20--session\x20'+_0x2a3aa4['sessionId']+_0x2f69c7(0x2fc)+_0x2a3aa4['delegationId']+_0x2f69c7(0x35c));});return;}case _0x475be5(0x2b5):{let {alreadyCompleted:_0x5f2f44}=await _0x5e9ffc(_0x236ad4,_0x1fcbe8,{'content':_0x24f548});l(_0x1578ce,{'delegationId':_0x1fcbe8,'alreadyCompleted':_0x5f2f44},_0x313c0d=>{const _0x2a4a2d=_0x475be5;process[_0x2a4a2d(0x274)][_0x2a4a2d(0x25d)]((_0x313c0d[_0x2a4a2d(0x359)]?'Already\x20answered':_0x2a4a2d(0x285))+'\x20delegation\x20'+_0x313c0d[_0x2a4a2d(0x2c6)]+'.\x0a');});return;}case _0x475be5(0x21f):{let _0x1be8f8=await _0x1ba84e(_0x236ad4,_0x1fcbe8);l(_0x1578ce,{'delegationId':_0x1fcbe8,..._0x1be8f8},_0x50acee=>{const _0x44624b=_0x475be5;process[_0x44624b(0x274)][_0x44624b(0x25d)]((_0x50acee[_0x44624b(0x22c)]?_0x44624b(0x21d):_0x44624b(0x263))+_0x44624b(0x2e9)+_0x50acee[_0x44624b(0x2c6)]+'.\x0a');});return;}default:{let _0x16bf7d={'dismiss':_0x5e3214,'cancel':_0xde31e0,'delete':_0x6ce2c1}[_0x21b9cb];await _0x16bf7d(_0x236ad4,_0x1fcbe8);let _0x398383={'dismiss':_0x475be5(0x217),'cancel':_0x475be5(0x372),'delete':_0x475be5(0x326)}[_0x21b9cb];l(_0x1578ce,{'delegationId':_0x1fcbe8,[_0x398383]:!0x0},()=>{const _0x12491f=_0x475be5;process[_0x12491f(0x274)][_0x12491f(0x25d)](''+_0x398383[0x0]['toUpperCase']()+_0x398383[_0x12491f(0x30a)](0x1)+_0x12491f(0x2e9)+_0x1fcbe8+'.\x0a');});}}}function Xt(_0x4b66e7){const _0x45e8d1=_0x219fb2;if(_0x4b66e7[_0x45e8d1(0x286)]===0x0){process[_0x45e8d1(0x2de)]['write']('No\x20delegations.\x0a');return;}process['stdout'][_0x45e8d1(0x25d)]('ID'['padEnd'](0x24)+'\x20\x20'+_0x45e8d1(0x2e2)[_0x45e8d1(0x35e)](0x9)+'\x20\x20'+_0x45e8d1(0x2b8)[_0x45e8d1(0x35e)](0x18)+_0x45e8d1(0x220));for(let _0x35313d of _0x4b66e7)process[_0x45e8d1(0x274)][_0x45e8d1(0x25d)](_0x35313d['id'][_0x45e8d1(0x35e)](0x24)+'\x20\x20'+_0x35313d['status']['padEnd'](0x9)+'\x20\x20'+(_0x35313d[_0x45e8d1(0x2c8)]??'-')[_0x45e8d1(0x35e)](0x18)+'\x20\x20'+(_0x35313d[_0x45e8d1(0x332)]??'')+'\x0a');}function Q(_0x5de043){const _0x271ddc=_0x219fb2;process[_0x271ddc(0x274)]['write'](_0x271ddc(0x1d8)+(_0x5de043[_0x271ddc(0x31c)]??'-')+'\x0a'),_0x5de043[_0x271ddc(0x214)]&&process['stdout'][_0x271ddc(0x25d)](_0x271ddc(0x23b)+_0x5de043[_0x271ddc(0x214)]+'\x0a'),process['stdout']['write'](_0x271ddc(0x257)+(_0x5de043[_0x271ddc(0x332)]??'-')+'\x0a'),_0x5de043[_0x271ddc(0x247)]&&process[_0x271ddc(0x274)][_0x271ddc(0x25d)]('\x0a'+_0x5de043[_0x271ddc(0x247)]+'\x0a\x0a');}async function Qt(_0x4d57b2){const _0x4e2064=_0x219fb2;_0x4d57b2[_0x4e2064(0x386)][_0x4e2064(0x2b3)]()||(console[_0x4e2064(0x327)]('Usage:\x20delegate-cli\x20org-users\x20<name\x20or\x20email\x20prefix>'),process[_0x4e2064(0x380)](0x2));let {client:_0x425304}=await f(_0x4d57b2),_0x36b761;try{_0x36b761=await _0x1d01a1(_0x425304,_0x4d57b2[_0x4e2064(0x386)]);}catch(_0xecad22){if(!_0x3b57cb(_0xecad22))throw _0xecad22;console[_0x4e2064(0x327)](_0xecad22[_0x4e2064(0x1f8)]),process[_0x4e2064(0x380)](0x1);}l(_0x4d57b2,_0x36b761,_0x46b38c=>{const _0x221256=_0x4e2064;_0x46b38c['length']===0x0&&process[_0x221256(0x2de)][_0x221256(0x25d)](_0x221256(0x363)+_0x4d57b2[_0x221256(0x386)][_0x221256(0x2b3)]()+_0x221256(0x2a8));for(let _0x4a3e45 of _0x46b38c)process[_0x221256(0x274)][_0x221256(0x25d)](_0x4a3e45[_0x221256(0x21e)][_0x221256(0x35e)](0x20)+'\x20\x20'+_0x4a3e45[_0x221256(0x31e)]+'\x0a');});}async function Zt(_0x56a0cd){const _0x37bab4=_0x219fb2;_0x56a0cd['env']===_0x37bab4(0x35a)&&(console[_0x37bab4(0x327)]('--env\x20localhost\x20has\x20no\x20OAuth\x20flow;\x20pick\x20alpha,\x20staging,\x20or\x20production.'),process[_0x37bab4(0x380)](0x2));let _0x157d21=$(_0x296c14()),_0x52ced8=_0x56a0cd[_0x37bab4(0x1d7)];if(_0x56a0cd['env']){let _0x8ad16d=_0x56a0cd[_0x37bab4(0x2ca)];await _0x51dd44({'env':_0x8ad16d,'tenant':_0x56a0cd[_0x37bab4(0x2ef)]??C(_0x157d21,_0x5c4522[_0x8ad16d]),'skipEnvCheck':_0x52ced8});return;}let _0x3d619b=_0x56a0cd[_0x37bab4(0x25e)]??ce();if(_0x3d619b){await _0x51dd44({'baseUrl':_0x3d619b,'tenant':_0x56a0cd[_0x37bab4(0x2ef)]??C(_0x157d21,_0x3d619b),'skipEnvCheck':_0x52ced8});return;}if(_0x157d21?.[_0x37bab4(0x20e)]){await _0x51dd44({'baseUrl':_0x157d21[_0x37bab4(0x20e)],'tenant':_0x56a0cd['tenant']??_0x157d21[_0x37bab4(0x1e2)],'skipEnvCheck':_0x52ced8});return;}console[_0x37bab4(0x327)](_0x37bab4(0x2c1)),process['exit'](0x2);}function C(_0x13e1c5,_0x2660b7){const _0x13bbb1=_0x219fb2;return _0x13e1c5?.[_0x13bbb1(0x20e)]&&en(_0x13e1c5[_0x13bbb1(0x20e)],_0x2660b7)?_0x13e1c5['tenantName']:void 0x0;}function en(_0x2454e5,_0x33bdaf){const _0x424db2=_0x219fb2;try{return new URL(_0x2454e5)[_0x424db2(0x331)]===new URL(_0x33bdaf)[_0x424db2(0x331)];}catch{return!0x1;}}async function tn(_0x8b949b){const _0x2e4e69=_0x219fb2;O()&&(console[_0x2e4e69(0x327)](_0x2e4e69(0x26e)),process[_0x2e4e69(0x380)](0x2));let _0x4c4c5e=await _0x53696b();if(_0x4c4c5e||(console[_0x2e4e69(0x327)](nn()),process[_0x2e4e69(0x380)](0x2)),_0x8b949b[_0x2e4e69(0x2b3)]()){let _0x24072d=await _0x3b85d9(_0x4c4c5e,_0x8b949b);_0x391d02(_0x24072d)||(console[_0x2e4e69(0x327)](_0x2e4e69(0x37f)+_0x296c14()+_0x2e4e69(0x249)+_0x4c4c5e[_0x2e4e69(0x1e2)]+'.'),process['exit'](0x1)),console['log'](_0x2e4e69(0x1da)+_0x24072d[_0x2e4e69(0x1e2)]+'\x20('+_0x24072d['tenantId']+_0x2e4e69(0x329)+_0x296c14());return;}on(await _0x451c83(_0x4c4c5e),_0x4c4c5e);}function nn(){const _0x349adf=_0x219fb2;if(_0x17c18c['existsSync'](_0x296c14()))return _0x349adf(0x361);let _0x1b2577=L();return $(_0x1b2577)?'No\x20CLI\x20login\x20to\x20switch:\x20the\x20CLI\x20is\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20'+_0x1b2577+_0x349adf(0x385):_0x349adf(0x2c9);}function on(_0x4c4067,_0x3b07da){const _0x545d73=_0x219fb2;let _0x5cf2d9=_0x4c4067['map'](_0x197a8a=>_0x197a8a['id']===_0x3b07da[_0x545d73(0x232)]?'*\x20'+_0x197a8a['name']+_0x545d73(0x366):'\x20\x20'+_0x197a8a[_0x545d73(0x356)]);process[_0x545d73(0x274)]['write'](_0x545d73(0x20c)+(_0x3b07da[_0x545d73(0x268)]??_0x3b07da['organizationId'])+':\x0a'+_0x5cf2d9[_0x545d73(0x362)]('\x0a')+'\x0a'),_0x4c4067[_0x545d73(0x286)]>0x1&&process[_0x545d73(0x274)][_0x545d73(0x25d)]('Switch\x20with:\x20delegate-cli\x20tenant\x20<name>\x0a');}function sn(_0x2f99d4){const _0x163772=_0x219fb2;return _0x2f99d4?.[_0x163772(0x289)]?.[_0x163772(0x30c)]===0x191||/401/[_0x163772(0x23f)](String(_0x2f99d4?.[_0x163772(0x1f8)]??''));}var d={'lastType':null,'quiet':!0x1},rn=_0x10f297=>{const _0x5ad854=_0x219fb2;switch(_0x10f297[_0x5ad854(0x392)]){case _0x5ad854(0x2f8):_0x10f297[_0x5ad854(0x2f1)]&&_0x10f297[_0x5ad854(0x2f1)]!==d['sessionId']&&(process[_0x5ad854(0x2de)][_0x5ad854(0x25d)](_0x5ad854(0x1e0)+_0x10f297['sessionId']+_0x5ad854(0x28d)+_0x10f297[_0x5ad854(0x2f1)]+')\x0a'),d['sessionId']=_0x10f297[_0x5ad854(0x2f1)]);break;case _0x5ad854(0x26a):_0x10f297[_0x5ad854(0x215)]&&_0x10f297[_0x5ad854(0x215)]!==d['turnId']&&(d['lastType']!==null&&process[_0x5ad854(0x2de)][_0x5ad854(0x25d)]('\x0a'),process[_0x5ad854(0x2de)]['write'](_0x5ad854(0x28f)+_0x10f297[_0x5ad854(0x215)]+_0x5ad854(0x2a0)+_0x10f297[_0x5ad854(0x2f1)]+_0x5ad854(0x276)+_0x10f297[_0x5ad854(0x215)]+')\x0a'),d['turnId']=_0x10f297['turnId'],d[_0x5ad854(0x24a)]='turn_start');break;case _0x5ad854(0x20d):_0x10f297['content']&&!d[_0x5ad854(0x38e)]&&(d[_0x5ad854(0x24a)]!==_0x5ad854(0x20d)&&process[_0x5ad854(0x2de)]['write'](_0x5ad854(0x2c7)),process[_0x5ad854(0x2de)][_0x5ad854(0x25d)](_0x10f297[_0x5ad854(0x2a1)]),d[_0x5ad854(0x24a)]=_0x5ad854(0x20d));break;case _0x5ad854(0x32a):d['lastType']!==null&&process[_0x5ad854(0x2de)][_0x5ad854(0x25d)]('\x0a'),process[_0x5ad854(0x2de)][_0x5ad854(0x25d)]('🔧\x20'+(_0x10f297[_0x5ad854(0x27b)]??_0x5ad854(0x269))+'\x0a'),d[_0x5ad854(0x24a)]=_0x5ad854(0x32a);break;case _0x5ad854(0x1f8):_0x10f297['content']&&(d[_0x5ad854(0x24a)]!==_0x5ad854(0x1f8)&&d[_0x5ad854(0x24a)]!==null&&process['stdout'][_0x5ad854(0x25d)]('\x0a'),process[_0x5ad854(0x274)]['write'](_0x10f297[_0x5ad854(0x2a1)]),d[_0x5ad854(0x24a)]=_0x5ad854(0x1f8));break;case _0x5ad854(0x327):d['lastType']!==null&&process[_0x5ad854(0x2de)][_0x5ad854(0x25d)]('\x0a'),process['stderr']['write']('✗\x20'+(_0x10f297['error']??_0x5ad854(0x327))+'\x0a'),d[_0x5ad854(0x24a)]=_0x5ad854(0x327);break;case _0x5ad854(0x38c):(d[_0x5ad854(0x24a)]===_0x5ad854(0x1f8)||d[_0x5ad854(0x24a)]===_0x5ad854(0x20d))&&process[_0x5ad854(0x274)]['write']('\x0a'),process['stderr']['write'](_0x5ad854(0x226)),d['lastType']=_0x5ad854(0x38c);break;}};function Z(_0x4fec87,_0x1389ca,_0x1889ca){const _0x3ec18f=_0x219fb2;let _0x1395fd=_0x4fec87[_0x3ec18f(0x234)]||process.env.MODEL;return{'backendUrl':_0x1889ca,'auth':_0x1389ca,'enableComputerUse':!_0x4fec87[_0x3ec18f(0x2e3)]&&!_0x4fec87['noComputerUse'],'autoSpawnInterop':!_0x4fec87[_0x3ec18f(0x2e3)],'enableConnections':!_0x4fec87[_0x3ec18f(0x1dd)],'enableSecurity':!_0x4fec87[_0x3ec18f(0x36e)],'keepInteropAlive':_0x4fec87[_0x3ec18f(0x394)],..._0x4fec87[_0x3ec18f(0x31a)]?{'enableMemory':!0x1}:{},..._0x4fec87[_0x3ec18f(0x235)][_0x3ec18f(0x286)]>0x0?{'preloadSkills':_0x4fec87[_0x3ec18f(0x235)]}:{},..._0x1395fd?{'model':_0x1395fd}:{},..._0x4fec87[_0x3ec18f(0x320)]?{'projectId':_0x4fec87['projectId']}:{},..._0x4fec87['workingDirectory']?{'workingDirectory':_0x4fec87[_0x3ec18f(0x292)]}:{},..._0x4fec87['bundledSkillsPath']?{'bundledSkillsPath':_0x4fec87[_0x3ec18f(0x24d)]}:{},..._0x4fec87['effort']?{'effort':_0x4fec87[_0x3ec18f(0x352)]}:{},..._0x4fec87[_0x3ec18f(0x2f1)]?{'sessionId':_0x4fec87[_0x3ec18f(0x2f1)]}:{},..._0x4fec87[_0x3ec18f(0x2c3)]?{'verbose':!0x0}:{}};}async function an(_0x2ef563){const _0x386eea=_0x219fb2;let _0x5426f0=_0x2ef563[_0x386eea(0x20a)]!=='text',_0x3e5dc2=_0x2ef563[_0x386eea(0x38b)]===void 0x0?null:ue(_0x2ef563[_0x386eea(0x38b)],_0x386eea(0x20b)),_0x1c933c=!_0x5426f0&&!_0x3e5dc2&&!_0x2ef563[_0x386eea(0x225)]&&_0x2ef563[_0x386eea(0x386)]!=='-'&&!!process[_0x386eea(0x2ee)]['isTTY']&&!!process[_0x386eea(0x274)][_0x386eea(0x323)],_0x1169e7=_0x1c933c?_0x2ef563['prompt'][_0x386eea(0x2b3)]():await I(_0x2ef563['prompt'],process[_0x386eea(0x2ee)]);if(!_0x1c933c&&!_0x1169e7&&(console[_0x386eea(0x327)](_0x386eea(0x2dd)),process['exit'](0x2)),!_0x5426f0){await ee(_0x2ef563,_0x1169e7,_0x1c933c,null,_0x3e5dc2);return;}let _0x330905=!0x1,_0x2af16a=_0x26a4a7=>{const _0x36f217=_0x386eea;_0x330905=!0x0,S(_0x1aae23(_0x26a4a7)),(_0x26a4a7[_0x36f217(0x2e7)]||_0x26a4a7[_0x36f217(0x264)])&&(process['exitCode']=0x1);},_0x23da3c=Date[_0x386eea(0x2d9)]();try{await ee(_0x2ef563,_0x1169e7,!0x1,_0x2af16a,_0x3e5dc2);}catch(_0x434eab){if(_0x330905)throw _0x434eab;process[_0x386eea(0x2de)][_0x386eea(0x25d)]((_0x434eab instanceof Error?_0x434eab[_0x386eea(0x382)]??_0x434eab[_0x386eea(0x1f8)]:String(_0x434eab))+'\x0a'),_0x2af16a(new _0x8f1890(_0x23da3c)[_0x386eea(0x1d3)]({'endedAtMs':Date['now'](),'usage':[],'error':_0x434eab}));}}async function ee(_0x536317,_0x890851,_0x3c429e,_0x547bb1,_0x2b6c12){const _0x4dc8d3=_0x219fb2;d={'lastType':null,'quiet':_0x536317[_0x4dc8d3(0x38e)]};let _0x2d227c=new Set(),_0x513f53=_0x5ea63f=>{const _0x7713d5=_0x4dc8d3;(!_0x547bb1||_0x5ea63f['type']===_0x7713d5(0x2f8)||_0x5ea63f[_0x7713d5(0x392)]==='turn_start')&&rn(_0x5ea63f);for(let _0x587945 of _0x2d227c)_0x587945(_0x5ea63f);},_0x3c3674=await P(),_0x210d1f=new _0x570f48();_0x210d1f[_0x4dc8d3(0x2e0)](_0x513f53);let _0xd36f8f=_0x9e97da(_0x536317[_0x4dc8d3(0x2ca)],_0x3c3674,_0x536317['backendUrl']);F(_0x536317[_0x4dc8d3(0x2ca)],_0x536317[_0x4dc8d3(0x227)],_0xd36f8f);let _0x36ccac=Z(_0x536317,_0x3c3674,_0xd36f8f),_0x3f0870=!0x1,_0x6207ea=!0x1,_0x1f3659,_0x3e359b=()=>_0x1f3659??=_0x210d1f[_0x4dc8d3(0x336)](),_0x5cd954=()=>{const _0x16e02a=_0x4dc8d3;_0x6207ea&&process[_0x16e02a(0x380)](0x82),_0x6207ea=!0x0,process[_0x16e02a(0x2de)]['write']('\x0aStopping…\x20(Ctrl+C\x20again\x20to\x20force\x20exit)\x0a'),_0x3f0870&&_0x210d1f[_0x16e02a(0x1e3)]()[_0x16e02a(0x308)](_0xf3b8f5=>console[_0x16e02a(0x327)](_0xf3b8f5))['then'](_0x3e359b)[_0x16e02a(0x338)](()=>process[_0x16e02a(0x380)](0x82),_0x3f65ba=>{const _0x3e931c=_0x16e02a;console['error'](_0x3f65ba),process[_0x3e931c(0x380)](0x82);});};process['on'](_0x4dc8d3(0x21c),_0x5cd954);let _0x575f96=_0x536317[_0x4dc8d3(0x205)],_0x42a1c1=async _0x210f16=>{const _0x303270=_0x4dc8d3;let _0x9b0f7b=_0x575f96;_0x575f96=[];let _0x5935e9=()=>_0x210d1f['sendMessage'](_0x210f16,{'attachments':_0x9b0f7b});try{return await _0x5935e9();}catch(_0x2476e0){if(_0x6207ea||!sn(_0x2476e0)||!process[_0x303270(0x2ee)][_0x303270(0x323)]||_0x536317[_0x303270(0x2ca)]===_0x303270(0x35a)||!(_0x536317[_0x303270(0x2ca)]||_0x3c3674[_0x303270(0x20e)]))throw _0x2476e0;process[_0x303270(0x2de)]['write']('\x0a⚠️\x20\x20Auth\x20expired.\x20Opening\x20browser\x20to\x20re-login…\x0a');let _0x1411af=_0x210d1f['getSessionId']()??_0x536317['sessionId'],_0x57012c=await _0x51dd44(_0x536317[_0x303270(0x2ca)]?{'env':_0x536317['env'],'tenant':C(_0x3c3674,_0x5c4522[_0x536317[_0x303270(0x2ca)]]),'skipEnvCheck':!0x0}:{'baseUrl':_0x3c3674['baseUrl'],'tenant':_0x3c3674['tenantName'],'skipEnvCheck':!0x0}),_0x39e35f={'text':'','failed':!0x1,'sessionId':_0x1411af};return _0x6207ea||(_0x3f0870=!0x1,await _0x3e359b(),_0x6207ea)?_0x39e35f:(_0x210d1f=new _0x570f48(),_0x1f3659=void 0x0,_0x210d1f['onEvent'](_0x513f53),_0x3c3674=_0x57012c,await _0x210d1f[_0x303270(0x295)]({...Z(_0x536317,_0x3c3674,_0xd36f8f),..._0x1411af?{'sessionId':_0x1411af}:{}}),_0x3f0870=!0x0,_0x6207ea?_0x39e35f:_0x5935e9());}};try{if(await _0x210d1f[_0x4dc8d3(0x295)](_0x36ccac),_0x3f0870=!0x0,_0x6207ea)return;if(_0x3c429e)await dn({'prompt':_0x890851,'sendMessage':_0x42a1c1,'onSigint':_0x5cd954});else{if(_0x547bb1||_0x2b6c12){let _0x93ce5b=_0x536317['outputFormat']==='stream-json'?_0x1ed75b=>S(_0x1b89e5(_0x1ed75b)):()=>{},_0x1e2855=await _0x5c2585({'onEvent':_0x2e813c=>(_0x2d227c[_0x4dc8d3(0x25f)](_0x2e813c),()=>{const _0x1852ce=_0x4dc8d3;_0x2d227c[_0x1852ce(0x251)](_0x2e813c);}),'sendMessage':_0x4e3953=>_0x42a1c1(_0x4e3953),'getSessionId':()=>_0x210d1f[_0x4dc8d3(0x333)](),'getTurnUsageHistory':_0x1e1c51=>_0x210d1f[_0x4dc8d3(0x283)](_0x1e1c51),'complete':_0x56ad03=>_0x210d1f[_0x4dc8d3(0x2b5)](_0x56ad03)},_0x890851,void 0x0,_0x93ce5b,_0x2b6c12?{'outputSchema':_0x2b6c12}:void 0x0);_0x547bb1?_0x547bb1(_0x1e2855):ln(_0x1e2855);}else await _0x42a1c1(_0x890851);}}catch(_0x28597c){if(!_0x6207ea)throw _0x28597c;}finally{try{await _0x3e359b();}finally{process[_0x4dc8d3(0x2e4)](_0x4dc8d3(0x21c),_0x5cd954),_0x6207ea&&(process[_0x4dc8d3(0x252)]=0x82);}}}function ln(_0x5550c3){const _0x188f6a=_0x219fb2;_0x5550c3[_0x188f6a(0x264)]?(console[_0x188f6a(0x327)](_0x188f6a(0x1d5)+_0x5550c3['structuredError'][_0x188f6a(0x1f8)]),process[_0x188f6a(0x252)]=0x1):_0x5550c3[_0x188f6a(0x2e7)]?(console[_0x188f6a(0x327)](_0x188f6a(0x38f)+_0x5550c3[_0x188f6a(0x327)]+').'),process[_0x188f6a(0x252)]=0x1):process['stdout'][_0x188f6a(0x25d)](JSON[_0x188f6a(0x1d9)](_0x5550c3[_0x188f6a(0x325)],null,0x2)+'\x0a');}function cn(_0x4a772f,_0x3777c1){const _0x4cdce1=_0x219fb2;let _0x17a7c3=process['stdout'][_0x4cdce1(0x25d)]['bind'](process[_0x4cdce1(0x274)]),_0x2a320d=!0x1;return process[_0x4cdce1(0x274)][_0x4cdce1(0x25d)]=(..._0x29d7ea)=>{const _0x56fd66=_0x4cdce1;if(!_0x2a320d)return _0x17a7c3(..._0x29d7ea);_0x4cf33e(_0x3777c1,0x0),_0x2e9e0e(_0x3777c1,0x0);let _0x3d736b=_0x17a7c3(..._0x29d7ea);return _0x4a772f[_0x56fd66(0x386)](!0x0),_0x3d736b;},{'show':()=>{const _0x276633=_0x4cdce1;_0x2a320d=!0x0,_0x4a772f[_0x276633(0x386)]();},'hide':()=>{_0x2a320d=!0x1;},'restore':()=>{const _0x41a965=_0x4cdce1;_0x2a320d=!0x1,process[_0x41a965(0x274)][_0x41a965(0x25d)]=_0x17a7c3;}};}async function dn({prompt:_0x565a3c,sendMessage:_0x6f6f67,onSigint:_0x4199db}){const _0x4ec60c=_0x219fb2;let _0x439818=_0x19be50({'input':process[_0x4ec60c(0x2ee)],'output':process['stderr'],'terminal':!0x0,'prompt':_0x4ec60c(0x375)}),_0x18e17e=cn(_0x439818,process[_0x4ec60c(0x2de)]),_0x489c5d=_0x439818[Symbol[_0x4ec60c(0x250)]](),_0x12ef8d=!0x1;_0x439818['once'](_0x4ec60c(0x355),()=>{const _0x25c094=_0x4ec60c;_0x12ef8d=!0x0,_0x18e17e[_0x25c094(0x287)]();});let _0x1cec03=!0x1,_0x17ab09=()=>{const _0x3b5d32=_0x4ec60c;_0x1cec03=!0x0,_0x439818[_0x3b5d32(0x355)](),_0x4199db();};_0x439818['on'](_0x4ec60c(0x21c),_0x17ab09),process['stderr']['write']('Enter\x20sends\x20a\x20message.\x20/exit\x20or\x20EOF\x20exits;\x20Ctrl+C\x20stops\x20and\x20exits.\x0a');try{if(_0x565a3c&&await _0x6f6f67(_0x565a3c),_0x1cec03)return;_0x12ef8d||_0x18e17e[_0x4ec60c(0x26b)]();for await(let _0x52d75a of _0x489c5d){if(_0x18e17e['hide'](),_0x1cec03)break;let _0x5ab576=_0x52d75a[_0x4ec60c(0x2b3)]();if(_0x5ab576===_0x4ec60c(0x266))break;_0x5ab576&&await _0x6f6f67(_0x5ab576),_0x12ef8d||_0x18e17e[_0x4ec60c(0x26b)]();}}finally{_0x18e17e[_0x4ec60c(0x275)](),_0x439818[_0x4ec60c(0x2e4)](_0x4ec60c(0x21c),_0x17ab09),_0x439818[_0x4ec60c(0x355)]();}}async function un(){const _0x45eb60=_0x219fb2;let _0x48d338=ft(process[_0x45eb60(0x368)]['slice'](0x2));if(_0x48d338[_0x45eb60(0x20a)]===_0x45eb60(0x224)){await te(_0x48d338);return;}let _0x55eadf=gt();try{await te(_0x48d338);}finally{_0x55eadf();}}async function te(_0x1afbee){const _0x466278=_0x219fb2;if(_0x1afbee[_0x466278(0x328)]){ht();return;}if(_0x1afbee[_0x466278(0x2bd)]){console[_0x466278(0x330)](wt());return;}if(_0x1afbee[_0x466278(0x27a)]===_0x466278(0x34b)){await Zt(_0x1afbee);return;}if(_0x1afbee['subcommand']===_0x466278(0x2ef)){await tn(_0x1afbee[_0x466278(0x386)]);return;}if(_0x1afbee[_0x466278(0x27a)]===_0x466278(0x239)){await bt();return;}if(_0x1afbee[_0x466278(0x27a)]===_0x466278(0x1df)){await vt(_0x1afbee);return;}if(_0x1afbee['subcommand']===_0x466278(0x2f4)){await $t(_0x1afbee);return;}if(_0x1afbee[_0x466278(0x27a)]===_0x466278(0x2b9)){await Rt(_0x1afbee);return;}if(_0x1afbee[_0x466278(0x27a)]===_0x466278(0x36c)){await xt(_0x1afbee);return;}if(_0x1afbee['subcommand']===_0x466278(0x305)){await Pt(_0x1afbee);return;}if(_0x1afbee['subcommand']==='evaluate'||_0x1afbee[_0x466278(0x27a)]===_0x466278(0x33e)||_0x1afbee[_0x466278(0x27a)]===_0x466278(0x371)){await Bt(_0x1afbee,_0x1afbee[_0x466278(0x27a)]);return;}if(_0x1afbee['subcommand']===_0x466278(0x2b5)){await qt(_0x1afbee);return;}if(_0x1afbee[_0x466278(0x27a)]==='transcribe'){await Kt(_0x1afbee);return;}if(_0x1afbee['subcommand']===_0x466278(0x2c2)){await Vt(_0x1afbee);return;}if(_0x1afbee['subcommand']===_0x466278(0x281)){await Qt(_0x1afbee);return;}if(_0x1afbee[_0x466278(0x27a)]===_0x466278(0x262)){await _0x4172e8(_0x1afbee['prompt'],{'runnerUrl':_0x1afbee[_0x466278(0x2dc)],'backendUrl':_0x1afbee[_0x466278(0x227)],'interopPath':_0x1afbee[_0x466278(0x364)],'workerId':_0x1afbee[_0x466278(0x335)]});return;}if(_0x1afbee['cleanup']){await It();return;}await an(_0x1afbee);}function _0x536b(){const _0x51543f=['Continue\x20it\x20with:\x20delegate-cli\x20--session\x20','SIGINT','Already\x20accepted','email','accept','\x20\x20TASK\x0a','>.\x0a','),\x20','--json-schema','text','print','✓\x20Done\x0a','backendUrl','.\x20Use\x20','--cleanup','Source:\x20\x20\x20\x20\x20\x20\x20','--tenant\x20requires\x20a\x20tenant\x20name.','alreadyAccepted','--env','\x20must\x20be\x20a\x20JSON\x20object.','a\x20file\x20path','string','--tenant','tenantId','No\x20models\x20available\x20for\x20this\x20product/tenant.\x0a','model','preloadSkills','expiresAt','.aria','complete\x20needs\x20--json-schema\x20<file>:\x20delegate-cli\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22.','logout','a\x20number','Session\x20\x20\x20\x20\x20\x20\x20','\x20(in\x20','max','\x20requires\x20','test','byoWarning','fork','\x20(no\x20cap\x20enforced)','updatedAt','Invalid\x20--effort:\x20','Title\x20\x20\x20\x20\x20\x20\x20\x20\x20','detail','contextSummary','1173267SXddHG',';\x20the\x20saved\x20login\x20still\x20uses\x20','lastType','monthly_limit_usd','stop','bundledSkillsPath','operands','file','asyncIterator','delete','exitCode','320XfHNjQ','Token:\x20\x20\x20\x20\x20\x20\x20\x20expires\x20','includes','list','Task\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','2101260xVYDnJ','delegations\x20dismiss\x20<delegation-id>','Organization\x20\x20','from\x201\x20to\x20','Deployment:\x20\x20\x20','write','url','add','xhigh','the\x20request','host','Accepted','structuredError','Pass\x20either\x20--env\x20(a\x20named\x20cloud)\x20or\x20--url\x20(any\x20other\x20deployment),\x20not\x20both.','/exit','limit_enabled','orgLogicalName','tool','turn_start','show','--page','title','Auth\x20comes\x20from\x20AUTH_TOKEN/TENANT_ID/ORG_ID\x20—\x20set\x20TENANT_ID\x20and\x20TENANT_SLUG\x20to\x20change\x20the\x20tenant.','auth','a\x20session\x20id','userId','\x20not\x20found,\x20has\x20no\x20messages','.\x20Use:\x20','stdout','restore','\x20--turn\x20','Interop\x20stopped\x20(if\x20it\x20was\x20running).','--skills-path','Unknown\x20flag:\x20','subcommand','toolName','a\x20project\x20id','\x0aAvailable\x20models\x20(','delegations\x20complete\x20<delegation-id>\x20\x22<answer>\x22|-','spawn','score\x20','org-users','\x20applies\x20to\x20prompts\x20and\x20to\x20these\x20commands\x20only:\x20','getTurnUsageHistory','isDesktopFallback','Answered','length','hide','--turn\x20applies\x20to\x20`delegate-cli\x20sessions\x20cancel`\x20only.','response','Invalid\x20--output-format:\x20','\x20cap','\x20token\x20units','\x20(resume\x20with\x20--session\x20','pending','Turn:\x20','parentSessionId','answers','workingDirectory','\x20<file.json>,\x20or\x20-\x20to\x20read\x20stdin.','\x20of\x20a\x20$','initialize','Owner\x20\x20\x20\x20\x20\x20\x20\x20\x20','confidence','probability','Delegated\x20','[env=','--json-schema\x20applies\x20to\x20prompts\x20and\x20to\x20`delegate-cli\x20complete`\x20only.','UIPATH_BASE_URL\x20is\x20unusable.\x20','\x20<title>','token_units','results','\x20(cancel\x20with:\x20delegate-cli\x20sessions\x20cancel\x20','content','\x20min)','cwd','--headless','\x20\x20\x20\x20BYO\x20warning:\x20','Usage:\x20delegate-cli\x20sessions\x20fork\x20<id>\x20[<message-id>]','skip','\x22.\x0a','toISOString','--working-dir','assignedUser','\x20(stdin\x20was\x20empty)','period_end','entries','--session\x20applies\x20to\x20the\x20`delegate-cli\x20usage`\x20summary\x20only.','concat','total_sessions','days','trim','transcribe:\x20cannot\x20read\x20','complete','data','957983qchBTI','ASSIGNEE','check','Invalid\x20--env:\x20','lockReason','Usage:\x20delegate-cli\x20','version','organizationId','--cartographer','extra_pool_consumed_pu','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','delegations','verbose','package.json','\x20(confidence\x20','delegationId','\x0a🤔\x20','assignedUserEmail','No\x20CLI\x20login\x20found.\x20Run\x20`delegate-cli\x20login\x20--env\x20<alpha|staging|production>`\x20first.','env','low','model_version','Removed\x20','Claimed\x20from\x20delegation\x20','--project','--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`delegate-cli\x20sessions`\x20only.','object','an\x20email\x20address\x20or\x20name','mode','verdict','bind','auth.json','--to,\x20--summary\x20and\x20--session\x20apply\x20to\x20`delegate-cli\x20delegations\x20create`\x20only.','\x20from\x20','now','UiPath\x20Cloud','evaluate','runnerUrl','Missing\x20prompt.\x20Pass\x20it\x20as\x20an\x20argument,\x20pipe\x20it\x20via\x20stdin,\x20or\x20run\x20`delegate-cli\x20--help`.','stderr','ID\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','onEvent','self-hosted\x20(Automation\x20Suite\x20/\x20Dedicated)','STATUS','headless','off','isSafeInteger','--model','isError','unknown\x20slug','\x20delegation\x20','delegateTo','round','--output-format','--attach\x20applies\x20to\x20prompts\x20only.','stdin','tenant','includeSubAgents','sessionId','estimated_cost_usd','\x20in\x20progress\x20on\x20session\x20','models','a\x20briefing\x20text',',\x20got\x20','1381404naRaDy','session_start','startsWith','a\x20deployment\x20URL,\x20e.g.\x20https://automationsuite.contoso.com','noComputerUse','\x20\x22<prompt>\x22\x0aAnswer\x20with:\x20delegate-cli\x20delegations\x20complete\x20','):\x0a\x0a','description','total_quota_pu','--days','.\x20Use\x20`delegate-cli\x20usage`,\x20`usage\x20activity`\x20or\x20`usage\x20daily`.','--interop','alpha','delegation','usage',').\x0a','Model\x20','catch','transcribe','slice','an\x20effort\x20tier','status','\x20PU','padStart','rejection','--keep-alive','date','\x20of\x20session\x20','No\x20CLI\x20login\x20found.\x20Note:\x20the\x20CLI\x20is\x20currently\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20','a\x20turn\x20id','\x20\x20from\x20','\x20completion','--effort','Licensing:\x20\x20\x20\x20no\x20licensing\x20quota\x20applies',':\x20cannot\x20read\x20the\x20JSON\x20schema\x20(','noMemory','--to\x20and\x20--summary\x20apply\x20to\x20`delegate-cli\x20delegations\x20create`\x20only.','sourceUserEmail','Last\x20','displayName','--worker-id','projectId','Tokens:\x20','rmSync','isTTY','pendingResults','structured','deleted','error','help',')\x20—\x20saved\x20to\x20','tool_call','a\x20format\x20(','monthly_spend_usd','Cancel\x20requested\x20for\x20turn\x20','pct_used','Usage:\x20delegate-cli\x20sessions\x20cancel\x20<session-id>\x20--turn\x20<turn-id>','log','origin','task','getSessionId','\x20sessions\x20on\x20','workerId','destroy','--verbose','then','daily','Token:\x20\x20\x20\x20\x20\x20\x20\x20expired\x20','limit','--attach','--no-computer-use','rerank','high','push','3320728oMRPhD','Forked\x20','Invalid\x20--project:\x20\x22','--days\x20applies\x20to\x20`delegate-cli\x20usage\x20activity|daily`\x20only.','UPDATED','\x20must\x20be\x20a\x20whole\x20number\x20','create','\x20token\x20units)','--turn','delegations\x20pending\x20<session-id>','login','Usage:\x20delegate-cli\x20sessions\x20','6790938LzRxYU','Cost:\x20\x20\x20$','--preload-skill','--version','AUTH_TOKEN_FILE\x20\x27','effort','cleanup','the\x20JSON\x20schema','close','name','resume','delegations\x20claim\x20<delegation-id|delegate://delegation/…>','alreadyCompleted','localhost','filter','\x20\x22<answer>\x22\x0a','\x20(estimated\x20$','padEnd','Session\x20','No\x20usage\x20in\x20the\x20last\x20','The\x20saved\x20CLI\x20login\x20could\x20not\x20be\x20refreshed.\x20Run\x20`delegate-cli\x20login`\x20again.','join','No\x20one\x20matches\x20\x22','interopPath','session_consumed_pu','\x20(current)','all','argv','Spending:\x20\x20\x20\x20\x20$','prompt_tokens','\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).','sessions','choice\x20','noSecurity','Session:\x20\x20\x20\x20\x20\x20','model_id','verify','cancelled','staging','Date\x20\x20\x20\x20\x20\x20\x20\x20Token\x20units\x20\x20Prompt\x20tokens\x20\x20Completion\x20tokens','You>\x20','activity','\x20active\x20days','active_days','medium','claim','total_cost_usd','daily_usage','\x20this\x20month','cartographer','Tenant\x20not\x20switched:\x20could\x20not\x20write\x20','exit','delegations\x20delete\x20<delegation-id>','stack','map','9sWsnkz',',\x20whose\x20tenant\x20is\x20chosen\x20in\x20the\x20app.\x20Run\x20`delegate-cli\x20login\x20--env\x20<env>`\x20for\x20a\x20CLI\x20login\x20of\x20your\x20own.','prompt','unknown','parse','Rubric\x20','models_breakdown','jsonSchemaPath','done','period_days','quiet','No\x20structured\x20output:\x20the\x20turn\x20failed\x20(','--backend','--skip-env-check','type','a\x20JSON\x20schema\x20file','keepAlive','delegations\x20create\x20--session\x20<id>\x20[--to\x20<email|name>]\x20[--summary\x20<text>]\x20\x22<task>\x22|-','utf-8','readFileSync','98132TDZsjl','\x27\x20is\x20empty.','delegations\x20accept\x20<delegation-id>','.\x20Use\x20alpha\x20|\x20staging\x20|\x20production\x20|\x20localhost.','end','finish','from','Structured\x20output\x20failed:\x20','--help','skipEnvCheck','From\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','stringify','Tenant:\x20','Unknown\x20sessions\x20action:\x20','--tenant\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Switch\x20tenants\x20with:\x20delegate-cli\x20tenant\x20<name>','noConnections','a\x20directory\x20path','whoami','Session:\x20','7jHCLNx','tenantName','cancel','\x20(resets\x20','Deleted\x20session\x20','\x20days:\x20','--output-format\x20','\x20\x22<prompt>\x22\x0a','pause','rename','\x20\x20\x20\x20','result','\x20|\x20','\x20PU\x20beyond\x20quota','No\x20turn\x20','Organization:\x20','resolve','--runner-url','Unknown\x20usage\x20view:\x20','choice','\x20\x20(sub-agent\x20of\x20','\x27\x20cannot\x20be\x20read:\x20','\x20PU\x20used','message','--no-security','Unknown\x20delegations\x20action:\x20','\x0adelegate-cli\x20—\x20Delegate\x20agent\x20CLI\x0a\x0aUsage:\x0a\x20\x20delegate-cli\x20[flags]\x20[\x22<prompt>\x22]\x20\x20\x20\x20Start\x20a\x20conversation\x20in\x20a\x20terminal\x0a\x20\x20delegate-cli\x20--print\x20\x22<prompt>\x22\x20\x20\x20\x20\x20\x20Send\x20one\x20prompt,\x20print\x20the\x20response,\x20and\x20exit\x0a\x20\x20delegate-cli\x20[flags]\x20-\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Read\x20one\x20prompt\x20from\x20stdin\x20through\x20EOF,\x20then\x20exit\x0a\x20\x20delegate-cli\x20-p\x20\x22<prompt>\x22\x20--output-format\x20json|stream-json\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20One\x20turn\x20with\x20JSON-only\x20stdout;\x20exit\x201\x20on\x20error\x0a\x20\x20delegate-cli\x20--json-schema\x20FILE\x20\x22<prompt>\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20One\x20turn,\x20then\x20its\x20result\x20extracted\x20as\x20JSON\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20matching\x20the\x20schema\x20in\x20FILE\x20(printed\x20after\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20answer;\x20\x22structured\x22\x20in\x20the\x20JSON\x20result);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20exit\x201\x20when\x20the\x20extraction\x20fails\x0a\x20\x20delegate-cli\x20--attach\x20PATH\x20[--attach\x20PATH\x20...]\x20\x22<prompt>\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Send\x20files\x20or\x20folders\x20with\x20the\x20first\x20message\x0a\x20\x20delegate-cli\x20login\x20[--env\x20NAME\x20|\x20--url\x20BASE]\x20[--tenant\x20NAME]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20OAuth\x20browser\x20login\x20→\x20~/.aria/sdk-auth.json.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--env\x20or\x20--url\x20required\x20on\x20FIRST\x20login;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20afterwards\x20defaults\x20to\x20the\x20saved\x20login\x27s\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20deployment.\x20--tenant\x20picks\x20a\x20tenant\x20by\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20name;\x20without\x20it\x20a\x20re-login\x20keeps\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20saved\x20tenant\x0a\x20\x20delegate-cli\x20tenant\x20[NAME]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20the\x20organization\x27s\x20tenants,\x20or\x20switch\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20saved\x20login\x20to\x20NAME\x20(no\x20browser)\x0a\x20\x20delegate-cli\x20logout\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Remove\x20the\x20saved\x20CLI\x20login\x0a\x20\x20delegate-cli\x20whoami\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20the\x20current\x20login\x20(org,\x20tenant,\x20token\x20expiry)\x0a\x20\x20delegate-cli\x20models\x20[--env\x20NAME]\x20\x20\x20\x20\x20List\x20available\x20LLM\x20models\x20for\x20the\x20current\x20tenant,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20with\x20any\x20BYO\x20configuration\x20warning\x20per\x20model\x0a\x20\x20delegate-cli\x20sessions\x20[list]\x20[--page\x20N]\x20[--limit\x20N]\x20[--include-subagents]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20your\x20backend\x20chat\x20sessions,\x20most\x20recently\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20active\x20first\x20(resume\x20one\x20with\x20--session\x20ID)\x0a\x20\x20delegate-cli\x20sessions\x20show|delete\x20ID\x20Show\x20one\x20session\x27s\x20title\x20and\x20owner,\x20or\x20delete\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20it\x20with\x20its\x20messages\x20and\x20sub-agents\x20(no\x20prompt)\x0a\x20\x20delegate-cli\x20sessions\x20rename\x20ID\x20TITLE\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Rename\x20a\x20session\x20(1-500\x20characters)\x0a\x20\x20delegate-cli\x20sessions\x20fork\x20ID\x20[MESSAGE]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Copy\x20session\x20ID\x20into\x20a\x20new\x20session,\x20up\x20to\x20and\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20including\x20message\x20MESSAGE\x20(default:\x20all\x20of\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20it);\x20continue\x20it\x20with\x20--session\x20NEW_ID\x0a\x20\x20delegate-cli\x20sessions\x20cancel\x20ID\x20--turn\x20TURN\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Cancel\x20turn\x20TURN\x20running\x20on\x20session\x20ID\x20in\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20another\x20process;\x20exits\x201\x20when\x20no\x20such\x20turn\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20is\x20in\x20progress\x0a\x20\x20delegate-cli\x20check\x20[--env\x20NAME]\x20[--headless]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Verify\x20auth,\x20backend\x20readiness,\x20backend\x20and\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20interop\x20without\x20sending\x20a\x20prompt;\x20exits\x201\x20when\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20any\x20check\x20fails\x0a\x20\x20delegate-cli\x20usage\x20[--session\x20ID]\x20\x20\x20\x20Quota\x20and\x20spend:\x20licensing\x20quota,\x20monthly\x20spend\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20and\x20cap,\x20Cartographer\x20allowance\x0a\x20\x20delegate-cli\x20usage\x20activity|daily\x20[--days\x20N]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Activity\x20totals,\x20or\x20per-day\x20usage,\x20over\x20the\x20last\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20N\x20days\x20(1-365,\x20default\x2030)\x0a\x20\x20delegate-cli\x20evaluate|rerank|verify\x20FILE|-\x20[--model\x20ID]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Stateless\x20typed\x20judgments:\x20send\x20the\x20JSON\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20request\x20in\x20FILE\x20(or\x20stdin\x20with\x20-)\x20to\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20/v1/completions/<command>\x20and\x20print\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20answers;\x20--model\x20overrides\x20its\x20\x22model\x22.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Exits\x201\x20when\x20the\x20backend\x20rejects\x20it\x0a\x20\x20delegate-cli\x20complete\x20--json-schema\x20FILE\x20[--model\x20ID]\x20[--session\x20ID]\x20\x22<prompt>\x22|-\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20One\x20structured\x20completion,\x20no\x20agent\x20turn:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20print\x20the\x20JSON\x20object\x20matching\x20the\x20schema\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20in\x20FILE\x20(--output-format\x20json\x20prints\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{structured,\x20usage});\x20--session\x20adds\x20that\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20session\x27s\x20history\x20as\x20context.\x20Exits\x201\x20when\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20output\x20fails\x20the\x20schema\x20(422)\x20or\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20backend\x20rejects\x20the\x20request\x0a\x20\x20delegate-cli\x20transcribe\x20FILE|-\x20\x20\x20\x20\x20\x20\x20Speech-to-text\x20(Whisper):\x20print\x20the\x20text\x20of\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20audio\x20in\x20FILE,\x20or\x20on\x20stdin\x20with\x20-.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20mp3,\x20mp4,\x20mpeg,\x20mpga,\x20m4a,\x20wav\x20or\x20webm,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20up\x20to\x2025\x20MiB.\x20Exits\x202\x20when\x20the\x20audio\x20is\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20refused\x20locally,\x201\x20when\x20the\x20backend\x20rejects\x20it\x0a\x20\x20delegate-cli\x20org-users\x20QUERY\x20\x20\x20\x20\x20\x20\x20\x20\x20Search\x20your\x20organization\x27s\x20users\x20by\x20name\x20or\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20email\x20prefix\x20(2-100\x20characters)\x0a\x20\x20delegate-cli\x20delegations\x20create\x20--session\x20ID\x20[--to\x20WHO]\x20[--summary\x20TEXT]\x20\x22<task>\x22|-\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Hand\x20a\x20task\x20from\x20session\x20ID\x20to\x20a\x20colleague\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(WHO:\x20an\x20email,\x20or\x20a\x20name\x20matching\x20one\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20person);\x20without\x20--to,\x20print\x20a\x20link\x20anyone\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20in\x20the\x20organization\x20can\x20claim\x0a\x20\x20delegate-cli\x20delegations\x20pending\x20SESSION\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Answers\x20to\x20delegations\x20from\x20SESSION\x20that\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20await\x20acceptance\x20(poll\x20this)\x0a\x20\x20delegate-cli\x20delegations\x20accept|dismiss|cancel|delete\x20ID\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Take\x20an\x20answer\x20into\x20its\x20session,\x20drop\x20it,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20withdraw\x20a\x20live\x20delegation,\x20or\x20delete\x20it\x0a\x20\x20delegate-cli\x20delegations\x20list\x20PROJECT\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Every\x20delegation\x20targeting\x20a\x20backend\x20project\x0a\x20\x20delegate-cli\x20delegations\x20show|claim\x20ID|LINK\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Read\x20a\x20delegation\x20assigned\x20to\x20you\x20(or\x20a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20delegate://delegation/…\x20link),\x20or\x20claim\x20it:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20prints\x20the\x20session\x20to\x20work\x20it\x20in\x0a\x20\x20delegate-cli\x20delegations\x20complete\x20ID\x20\x22<answer>\x22|-\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Send\x20the\x20answer\x20to\x20a\x20delegation\x20you\x20claimed\x0a\x20\x20delegate-cli\x20host\x20[flags]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Run\x20this\x20PC\x20as\x20a\x20remote\x20worker\x20until\x20Ctrl+C\x0a\x20\x20delegate-cli\x20host\x20install\x20[flags]\x20\x20\x20\x20Auto-start\x20the\x20host\x20at\x20login\x20(macOS\x20LaunchAgent\x20/\x20Windows\x20Scheduled\x20Task)\x0a\x20\x20delegate-cli\x20host\x20uninstall\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Remove\x20auto-start\x0a\x20\x20delegate-cli\x20host\x20status\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20auto-start\x20state\x0a\x20\x20delegate-cli\x20--cleanup\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Stop\x20running\x20interop\x0a\x0aFlags:\x0a\x20\x20-p,\x20--print\x20\x20\x20\x20\x20\x20\x20Run\x20one\x20turn\x20and\x20exit,\x20including\x20any\x20tool\x20execution.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Automatic\x20when\x20stdin\x20or\x20stdout\x20is\x20not\x20a\x20terminal,\x20or\x20with\x20-\x0a\x20\x20--env\x20NAME\x20\x20\x20\x20\x20\x20\x20\x20alpha\x20|\x20staging\x20|\x20production\x20|\x20localhost\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Composes\x20backend\x20URL\x20from\x20saved\x20auth\x20(org/tenant\x20slugs).\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Omitted\x20→\x20the\x20deployment\x20you\x20logged\x20into\x20(delegate-cli\x20login).\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20localhost\x20→\x20http://localhost:5002.\x20No\x20saved\x20login\x20and\x20no\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--env/--backend/BACKEND_URL\x20is\x20an\x20error\x20—\x20never\x20a\x20guess.\x0a\x20\x20--url\x20BASE\x20\x20\x20\x20\x20\x20\x20\x20(login)\x20Base\x20URL\x20of\x20a\x20deployment\x20that\x20is\x20not\x20a\x20named\x20cloud\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20—\x20Automation\x20Suite,\x20Dedicated,\x20Public\x20Sector.\x20Accepts\x20a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20tenant\x20path\x20or\x20a\x20trailing\x20/identity_\x20and\x20reduces\x20it\x20to\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20origin.\x20Mutually\x20exclusive\x20with\x20--env;\x20also\x20settable\x20via\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20UIPATH_BASE_URL.\x20Alias:\x20--authority.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Automation\x20Suite\x20needs\x2026.10+\x20with\x20the\x20Delegate\x20service;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20the\x20deployment\x20rejects\x20the\x20built-in\x20client,\x20register\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20your\x20own\x20—\x20see\x20UIPATH_CLIENT_ID\x20in\x20the\x20README\x0a\x20\x20--skip-env-check\x20\x20(login)\x20Do\x20not\x20check\x20the\x20deployment\x20before\x20signing\x20in.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Escape\x20hatch\x20for\x20a\x20deployment\x20that\x20hides\x20its\x20OIDC\x20discovery\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20document\x20or\x20serves\x20Identity\x20from\x20another\x20origin;\x20it\x20also\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20gives\x20up\x20the\x20diagnosis\x20when\x20something\x20is\x20really\x20wrong\x0a\x20\x20--backend\x20URL\x20\x20\x20\x20\x20Full\x20backend\x20URL\x20—\x20escape\x20hatch\x20overrides\x20--env\x0a\x20\x20--tenant\x20NAME\x20\x20\x20\x20\x20(login)\x20Tenant\x20to\x20sign\x20into,\x20by\x20name\x20(case-insensitive).\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default:\x20the\x20saved\x20login\x27s\x20tenant\x20on\x20that\x20cloud,\x20else\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20org\x27s\x20first\x20tenant.\x20Later:\x20delegate-cli\x20tenant\x20<name>\x0a\x20\x20--model\x20NAME\x20\x20\x20\x20\x20\x20LLM\x20model\x20id\x20(e.g.\x20claude_sonnet_5,\x20kimi_k3).\x20Checked\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20against\x20the\x20tenant\x27s\x20catalog\x20(delegate-cli\x20models)\x20before\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20run\x20starts;\x20an\x20unknown\x20id\x20fails\x20and\x20lists\x20the\x20valid\x20ones.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default:\x20gpt_5_6_luna.\x20Also\x20settable\x20via\x20MODEL\x20env\x20var.\x0a\x20\x20--keep-alive\x20\x20\x20\x20\x20\x20Reuse/leave\x20interop\x20running\x20across\x20invocations\x0a\x20\x20--headless\x20\x20\x20\x20\x20\x20\x20\x20Skip\x20interop\x20(text-only\x20prompts)\x0a\x20\x20--no-computer-use\x20Keep\x20interop\x20—\x20file,\x20Office,\x20PDF\x20and\x20shell\x20tools\x20keep\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20working\x20—\x20but\x20drop\x20the\x20screen:\x20no\x20screenshots,\x20no\x20window\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20list,\x20no\x20UI-automation\x20tools.\x20Cuts\x20image\x20tokens\x20and\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20per-turn\x20screen\x20capture,\x20and\x20stops\x20desktop\x20window\x20titles\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20leaving\x20the\x20machine.\x20Use\x20for\x20document\x20and\x20file\x20work.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--headless\x20implies\x20this\x20and\x20turns\x20interop\x20off\x20as\x20well\x0a\x20\x20--no-connections\x20\x20Disable\x20orchestrator\x20ConnectionService\x20(silences\x20404\x20warnings)\x0a\x20\x20--no-security\x20\x20\x20\x20\x20Disable\x20tool\x20security\x20wrapper\x20(use\x20only\x20for\x20debugging)\x0a\x20\x20--no-memory\x20\x20\x20\x20\x20\x20\x20Do\x20not\x20send\x20the\x20Delegate\x20app\x27s\x20local\x20long-term\x20memories\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20with\x20each\x20turn,\x20and\x20do\x20not\x20ask\x20the\x20model\x20to\x20save\x20new\x20ones\x0a\x20\x20--attach\x20PATH\x20\x20\x20\x20\x20File\x20or\x20folder\x20sent\x20with\x20the\x20first\x20message\x20(repeatable),\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20as\x20the\x20Delegate\x20app\x20sends\x20attached\x20files:\x20images\x20inline,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20PDFs\x20and\x20other\x20documents\x20as\x20a\x20path\x20the\x20agent\x20reads,\x20text\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20inline\x20up\x20to\x2016,000\x20characters.\x2030\x20MiB\x20per\x20message\x20in\x20all;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20larger\x20files\x20go\x20as\x20a\x20path.\x20In\x20a\x20conversation,\x20later\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20messages\x20carry\x20none\x20of\x20their\x20own,\x20but\x20the\x20first\x20message\x27s\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20stay\x20in\x20context\x0a\x20\x20--preload-skill\x20NAME\x20\x20Preload\x20a\x20skill\x20into\x20the\x20session\x20(repeatable).\x20The\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20skill\x27s\x20content\x20is\x20attached\x20before\x20the\x20first\x20model\x20turn\x20—\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20same\x20mechanism\x20as\x20project\x20preloaded\x20skills\x20in\x20the\x20app\x0a\x20\x20--cartographer\x20\x20\x20\x20Cartographer\x20engagement\x20preset.\x20Equivalent\x20to\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--no-computer-use\x20--preload-skill\x20business-analysis\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--preload-skill\x20project-task-list\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--preload-skill\x20knowledge-base.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Add\x20--project/--working-dir\x20for\x20where\x20the\x20files\x20live,\x20and\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20extra\x20--preload-skill\x20flags\x20for\x20more\x20skills\x20—\x20a\x20skill\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20preset\x20already\x20covers\x20is\x20not\x20preloaded\x20twice.\x20An\x20explicit\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--headless\x20still\x20wins\x20and\x20turns\x20interop\x20off\x0a\x20\x20--project\x20ID\x20\x20\x20\x20\x20\x20Route\x20the\x20session\x27s\x20local\x20wiki\x20and\x20plans\x20to\x20a\x20project\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(<working-dir>/projects/<ID>/wiki).\x20Client-side\x20key\x20only\x0a\x20\x20--working-dir\x20PATH\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Shell\x20cwd\x20for\x20the\x20agent\x20and\x20root\x20for\x20SDK-local\x20state.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Relative\x20paths\x20resolve\x20against\x20the\x20current\x20directory;\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20directory\x20is\x20created\x20if\x20missing\x0a\x20\x20--skills-path\x20PATH\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Extra\x20bundled-skills\x20directory\x20(merged\x20with\x20the\x20installed\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20app\x27s\x20skills\x20and\x20DELEGATE_BUNDLED_SKILLS_PATH)\x0a\x20\x20--effort\x20TIER\x20\x20\x20\x20\x20Reasoning\x20effort:\x20low\x20|\x20medium\x20|\x20high\x20|\x20xhigh\x20|\x20max.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default:\x20the\x20model\x27s\x20recommended\x20tier\x0a\x20\x20--session\x20ID\x20\x20\x20\x20\x20\x20Continue\x20an\x20existing\x20backend\x20session\x20(an\x20unknown\x20id\x20exits\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x201;\x20the\x20backend\x20assigns\x20new\x20ids).\x20For\x20complete:\x20the\x20session\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20whose\x20history\x20is\x20the\x20context\x0a\x20\x20--json-schema\x20FILE\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20JSON\x20schema\x20the\x20structured\x20answer\x20must\x20match\x20(complete,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20and\x20prompts:\x20implies\x20--print)\x0a\x20\x20--runner-url\x20URL\x20\x20(host)\x20Runner\x20worker\x20WS\x20URL.\x20Required;\x20or\x20CONTROL_PLANE_WS_URL\x20env\x0a\x20\x20--interop\x20PATH\x20\x20\x20\x20(host)\x20Interop\x20binary\x20path;\x20or\x20INTEROP_EXECUTABLE_PATH\x20env.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Absent\x20→\x20registration/discovery\x20only,\x20tool\x20execution\x20disabled\x0a\x20\x20--worker-id\x20ID\x20\x20\x20\x20(host)\x20Stable\x20worker\x20identity;\x20or\x20WORKER_ID\x20env.\x20Default:\x20hostname\x0a\x20\x20--page\x20N\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(sessions)\x20Page\x20to\x20show,\x20from\x201.\x20Default:\x201\x0a\x20\x20--limit\x20N\x20\x20\x20\x20\x20\x20\x20\x20\x20(sessions)\x20Rows\x20per\x20page,\x201-100.\x20Default:\x2030\x0a\x20\x20--include-subagents\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(sessions)\x20Also\x20list\x20sub-agent\x20sessions,\x20hidden\x20by\x20default\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20as\x20in\x20the\x20desktop\x20app\x27s\x20history\x0a\x20\x20--to\x20WHO\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(delegations\x20create)\x20Assign\x20to\x20this\x20person:\x20an\x20email,\x20or\x20a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20name\x20that\x20matches\x20exactly\x20one\x20colleague\x20(see\x20org-users)\x0a\x20\x20--summary\x20TEXT\x20\x20\x20\x20(delegations\x20create)\x20The\x20briefing\x20the\x20person\x20starts\x20from.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default:\x20empty,\x20for\x20a\x20task\x20that\x20stands\x20on\x20its\x20own\x0a\x20\x20--output-format\x20FMT\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20text\x20(default)\x20|\x20json\x20|\x20stream-json.\x20json\x20prints\x20one\x20result\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20object\x20on\x20exit;\x20stream-json\x20prints\x20every\x20agent\x20event\x20as\x20one\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20JSON\x20line,\x20then\x20the\x20result.\x20Both\x20keep\x20stdout\x20JSON-only\x20(logs,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20progress\x20and\x20the\x20session\x20id\x20go\x20to\x20stderr),\x20imply\x20--print,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20and\x20exit\x201\x20when\x20the\x20turn\x20ends\x20in\x20error.\x20Also\x20honoured\x20by\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20every\x20subcommand\x20that\x20prints\x20a\x20result\x20(all\x20but\x20login,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20logout,\x20tenant\x20and\x20host)\x0a\x20\x20-q,\x20--quiet\x20\x20\x20\x20\x20\x20\x20Suppress\x20🤔\x20thinking\x20output\x20to\x20stderr\x0a\x20\x20--verbose\x20\x20\x20\x20\x20\x20\x20\x20\x20Surface\x20the\x20SDK\x27s\x20and\x20the\x20framework\x27s\x20own\x20logs.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Diagnostics\x20only,\x20on\x20stdout;\x20independent\x20of\x20-q\x0a\x20\x20-h,\x20--help\x20\x20\x20\x20\x20\x20\x20\x20Show\x20this\x20help\x0a\x20\x20-v,\x20--version\x20\x20\x20\x20\x20Print\x20the\x20installed\x20CLI\x20version\x0a\x0aConversation:\x20Enter\x20sends\x20a\x20message;\x20/exit\x20or\x20EOF\x20exits;\x20Ctrl+C\x20stops\x20and\x20exits.\x0a\x20\x20Ctrl+C\x20during\x20a\x20turn\x20cancels\x20it\x20on\x20the\x20backend\x20too;\x20a\x20second\x20Ctrl+C\x20force-exits.\x0a\x20\x20An\x20optional\x20initial\x20prompt\x20is\x20followed\x20by\x20more\x20input.\x20The\x20session\x20ID\x20is\x20printed\x0a\x20\x20to\x20stderr;\x20resume\x20later\x20with\x20--session\x20ID.\x20Redirected\x20input\x20is\x20one\x20prompt.\x0aAuth:\x20prompts\x20auto-retry\x20on\x20401\x20by\x20opening\x20the\x20browser\x20to\x20re-login\x20(TTY\x20only),\x0a\x20\x20preserving\x20the\x20active\x20session.\x0a','toFixed','\x20\x20(input\x20#','toString','Licensing:\x20\x20\x20\x20','score','\x20into\x20',']\x20Backend\x20URL:\x20','Tenant:\x20\x20\x20\x20\x20\x20\x20','%\x20of\x20','attachments','--summary','[saved\x20login]\x20Backend\x20URL:\x20','a\x20skill\x20name','Use:\x20delegate-cli\x20delegations\x20','outputFormat','delegate-cli','Tenants\x20of\x20','thinking','baseUrl','page','deepLink','forEach','No\x20answers\x20awaiting\x20acceptance.\x0a','Could\x20not\x20check\x20BYO\x20model\x20warnings:\x20','sourceTitle','turnId','rubric_version','dismissed','\x0aUse\x20with:\x20delegate-cli\x20--model\x20<id>\x20\x22<prompt>\x22\x0a','Renamed\x20','--include-subagents'];_0x536b=function(){return _0x51543f;};return _0x536b();}var pn=process.env.NODE_ENV===_0x219fb2(0x23f)||!!process.env.JEST_WORKER_ID;pn||un()[_0x219fb2(0x308)](_0x56e6bd=>{const _0x3ad79f=_0x219fb2;console[_0x3ad79f(0x327)](_0x56e6bd['stack']||_0x56e6bd['message']||_0x56e6bd),process[_0x3ad79f(0x380)](0x1);});export{mt as CARTOGRAPHER_SKILLS,G as EFFORT_TIERS,yt as IMPLICIT_STDIN_IDLE_MS,Z as buildInitOptions,un as main,ft as parseArgs,wt as readCliVersion,I as resolvePrompt,gt as routeStdoutToStderr,l as writeCommandResult};
|
|
2
|
+
const _0x2f20cb=_0x5423;(function(_0x249a8d,_0x1591b3){const _0x40ad7c=_0x5423,_0x13af20=_0x249a8d();while(!![]){try{const _0x160bcf=parseInt(_0x40ad7c(0x10f))/0x1+-parseInt(_0x40ad7c(0x126))/0x2+-parseInt(_0x40ad7c(0xd7))/0x3*(parseInt(_0x40ad7c(0x17d))/0x4)+parseInt(_0x40ad7c(0x1e2))/0x5*(-parseInt(_0x40ad7c(0x206))/0x6)+-parseInt(_0x40ad7c(0x1e7))/0x7*(parseInt(_0x40ad7c(0x121))/0x8)+-parseInt(_0x40ad7c(0x8f))/0x9+parseInt(_0x40ad7c(0x19b))/0xa;if(_0x160bcf===_0x1591b3)break;else _0x13af20['push'](_0x13af20['shift']());}catch(_0x1ccd1c){_0x13af20['push'](_0x13af20['shift']());}}}(_0x305f,0x9b68d));const __dirname=import.meta.dirname;import _0x36886f from'fs';import _0x1e896b from'path';import{clearLine as _0x3cf289,createInterface as _0xf3357e,cursorTo as _0x147f30}from'node:readline';import{BUSINESS_ANALYSIS_PRELOADED_SKILLS as _0x586ab1,DelegateAgent as _0x44552c,cancelTurn as _0xae8d16,InteropProcess as _0x40feb7,complete as _0x4ef7e5,DEFAULT_MODEL as _0x430f39,createBackendClient as _0x5d63b8,evaluate as _0x56fe5f,isCompletionRequestError as _0xcfcdee,isEvaluationRequestError as _0x33705f,isTranscriptionError as _0x220cab,rerank as _0x4efd02,transcribe as _0x34686f,verify as _0x29198f,acceptDelegation as _0x1bbee4,cancelDelegation as _0xc1da10,claimDelegation as _0x248527,completeDelegation as _0x5afd85,createDelegation as _0x1bc955,deleteDelegation as _0x42c43c,dismissDelegation as _0x525c59,getSessionDelegations as _0x2f33a1,isDelegationError as _0x4491b1,listDelegations as _0x232682,listOrgUsers as _0x38ac26,previewDelegation as _0x2fe7f2,TurnResultCollector as _0x51dd4f,agentEventToJsonLine as _0x336906,describeBaseUrlRejection as _0x443ed5,getActivitySummary as _0x66fee3,getAuthFilePath as _0x304046,getByoWarnings as _0x40c8ed,getCartographerAllowance as _0x54aca5,getDailyBreakdown as _0x14b49a,getLicensingSummary as _0x5a7181,getMonthlySpending as _0x306e33,isOutputFormat as _0x36bfe8,isCloudBaseUrl as _0x2fb4f7,isSafeProjectFolderSegment as _0x237577,listModels as _0x110940,listSessions as _0x1679c0,getSession as _0xb256b2,renameSession as _0xeee34,deleteSession as _0x268a3d,deleteSessionTaskLog as _0x1a2c7a,forkSession as _0x4f7eec,isBackendRequestError as _0x4a211e,MAX_SESSION_PAGE_SIZE as _0x2f8e44,listTenants as _0x5a8e5a,loadAndRefreshAuth as _0x129845,loadAndRefreshSdkLogin as _0x178730,parsePlatformBaseUrl as _0x177bd6,resolveBackendUrl as _0x4a19c1,runHealthCheck as _0x20e8d9,runHostCommand as _0x154388,runLoginFlow as _0xd84d9d,runTurnForResult as _0x252ac4,saveAuthData as _0x5a57e3,switchTenant as _0x3e1591,toJsonLine as _0x1fe9bb,ENV_TO_CLOUD as _0x15eee7,OUTPUT_FORMATS as _0x1102a9}from'@uipath/delegate-sdk';var mt=[_0x2f20cb(0x1a8),_0x2f20cb(0x187),'models',_0x2f20cb(0x1c5),'logout',_0x2f20cb(0x9b),'check',_0x2f20cb(0xf2),_0x2f20cb(0x130),'evaluate',_0x2f20cb(0x213),'verify',_0x2f20cb(0x133),_0x2f20cb(0x22e),_0x2f20cb(0x94),_0x2f20cb(0xac)],W=['',_0x2f20cb(0x225),_0x2f20cb(0x9b),_0x2f20cb(0xda),'sessions',_0x2f20cb(0x130),'evaluate',_0x2f20cb(0x213),_0x2f20cb(0xc7),_0x2f20cb(0x133),_0x2f20cb(0x22e),'delegations',_0x2f20cb(0xac)],G=[_0x2f20cb(0x201),_0x2f20cb(0xf6),_0x2f20cb(0x1db),_0x2f20cb(0x138),_0x2f20cb(0x1bb)],ft=_0x586ab1;function p(_0x5b4e70,_0x3e5810,_0x5eeca4,_0xccc1da){const _0x466b9b=_0x2f20cb;let _0x495ec2=_0x5b4e70[_0x3e5810];return(!_0x495ec2||_0x495ec2[_0x466b9b(0x113)]>0x1&&_0x495ec2[_0x466b9b(0x17b)]('-'))&&(console['error'](_0x5eeca4+_0x466b9b(0xde)+_0xccc1da+'.'),process[_0x466b9b(0x72)](0x2)),_0x495ec2;}function N(_0x421ae0,_0x22173a,_0x37a13d,_0x36e396){const _0x141579=_0x2f20cb;let _0x17e54e=p(_0x421ae0,_0x22173a,_0x37a13d,'a\x20number'),_0x527558=Number(_0x17e54e);return(!/^\d+$/[_0x141579(0x13c)](_0x17e54e)||_0x527558<0x1||!Number[_0x141579(0xcc)](_0x527558)||_0x36e396!==void 0x0&&_0x527558>_0x36e396)&&(console[_0x141579(0x7a)](_0x37a13d+_0x141579(0x1ba)+(_0x36e396===void 0x0?'1\x20or\x20more':_0x141579(0x1b9)+_0x36e396)+',\x20got\x20'+_0x17e54e+'.'),process[_0x141579(0x72)](0x2)),_0x527558;}function ht(_0x313d02){const _0x9aa033=_0x2f20cb;let _0x4c5535={'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':_0x9aa033(0x1e8),'preloadSkills':[],'attachments':[],'skipEnvCheck':!0x1,'includeSubAgents':!0x1,'operands':[],'help':!0x1,'version':!0x1};mt[_0x9aa033(0x1ca)](_0x313d02[0x0])&&(_0x4c5535[_0x9aa033(0x16d)]=_0x313d02[0x0],_0x313d02=_0x313d02[_0x9aa033(0x234)](0x1));let _0x23a892=[];for(let _0x5af86f=0x0;_0x5af86f<_0x313d02[_0x9aa033(0x113)];_0x5af86f++){let _0x23635f=_0x313d02[_0x5af86f];switch(_0x23635f){case _0x9aa033(0xbb):case'-p':_0x4c5535[_0x9aa033(0x204)]=!0x0;break;case _0x9aa033(0xd8):_0x4c5535[_0x9aa033(0x102)]=!0x0;break;case _0x9aa033(0x219):_0x4c5535['cleanup']=!0x0;break;case _0x9aa033(0x1be):_0x4c5535[_0x9aa033(0x100)]=!0x0;break;case'--no-computer-use':_0x4c5535[_0x9aa033(0x11b)]=!0x0;break;case _0x9aa033(0x21d):_0x4c5535[_0x9aa033(0x8b)]=!0x0,_0x4c5535[_0x9aa033(0x11b)]=!0x0,_0x4c5535[_0x9aa033(0x165)]['push'](...ft);break;case _0x9aa033(0x231):_0x4c5535[_0x9aa033(0xb5)]=!0x0;break;case _0x9aa033(0x208):_0x4c5535['noSecurity']=!0x0;break;case _0x9aa033(0x146):_0x4c5535[_0x9aa033(0x12e)]=!0x0;break;case _0x9aa033(0x1b5):_0x4c5535[_0x9aa033(0x170)]=!0x0;break;case _0x9aa033(0x1aa):case'-q':_0x4c5535[_0x9aa033(0xef)]=!0x0;break;case _0x9aa033(0x116):_0x4c5535[_0x9aa033(0x1eb)]=!0x0;break;case _0x9aa033(0x70):_0x4c5535['backendUrl']=_0x313d02[++_0x5af86f];break;case _0x9aa033(0xfa):_0x4c5535[_0x9aa033(0x211)]=_0x313d02[++_0x5af86f];break;case'--runner-url':_0x4c5535[_0x9aa033(0x1b0)]=_0x313d02[++_0x5af86f];break;case _0x9aa033(0x110):_0x4c5535['interopPath']=_0x313d02[++_0x5af86f];break;case _0x9aa033(0x1f3):_0x4c5535[_0x9aa033(0xfb)]=_0x313d02[++_0x5af86f];break;case'--preload-skill':_0x4c5535[_0x9aa033(0x165)]['push'](p(_0x313d02,++_0x5af86f,_0x23635f,'a\x20skill\x20name'));break;case'--project':{let _0x268a59=p(_0x313d02,++_0x5af86f,_0x23635f,_0x9aa033(0x1f4));_0x237577(_0x268a59)||(console[_0x9aa033(0x7a)](_0x9aa033(0x8e)+_0x268a59+_0x9aa033(0x1a5)),process[_0x9aa033(0x72)](0x2)),_0x4c5535['projectId']=_0x268a59;break;}case'--output-format':{let _0x528ae8=p(_0x313d02,++_0x5af86f,_0x23635f,_0x9aa033(0x17c)+_0x1102a9[_0x9aa033(0x10e)](_0x9aa033(0x1a3))+')');_0x36bfe8(_0x528ae8)||(console['error'](_0x9aa033(0x193)+_0x528ae8+_0x9aa033(0xb9)+_0x1102a9[_0x9aa033(0x10e)](_0x9aa033(0x1a3))+'.'),process['exit'](0x2)),_0x4c5535[_0x9aa033(0x84)]=_0x528ae8;break;}case _0x9aa033(0xd6):_0x4c5535[_0x9aa033(0x194)]=p(_0x313d02,++_0x5af86f,_0x23635f,_0x9aa033(0x1c7));break;case _0x9aa033(0x101):_0x4c5535[_0x9aa033(0x1ec)]=N(_0x313d02,++_0x5af86f,_0x23635f);break;case'--limit':_0x4c5535[_0x9aa033(0x161)]=N(_0x313d02,++_0x5af86f,_0x23635f,_0x2f8e44);break;case _0x9aa033(0x222):_0x4c5535[_0x9aa033(0x1ae)]=!0x0;break;case'--json-schema':_0x4c5535[_0x9aa033(0x107)]=p(_0x313d02,++_0x5af86f,_0x23635f,_0x9aa033(0x8c));break;case _0x9aa033(0x1d1):{let _0x5c59a9=_0x1e896b[_0x9aa033(0xfd)](process[_0x9aa033(0x141)](),p(_0x313d02,++_0x5af86f,_0x23635f,_0x9aa033(0x18a)));_0x36886f['existsSync'](_0x5c59a9)||(console['error'](_0x9aa033(0xbe)+_0x5c59a9),process[_0x9aa033(0x72)](0x2)),_0x4c5535[_0x9aa033(0xaa)][_0x9aa033(0xf1)](_0x5c59a9);break;}case _0x9aa033(0x12b):_0x4c5535[_0x9aa033(0x1fd)]=p(_0x313d02,++_0x5af86f,_0x23635f,_0x9aa033(0x13d));break;case _0x9aa033(0x188):_0x4c5535['delegateTo']=p(_0x313d02,++_0x5af86f,_0x23635f,'an\x20email\x20address\x20or\x20name');break;case _0x9aa033(0xf3):_0x4c5535[_0x9aa033(0x109)]=p(_0x313d02,++_0x5af86f,_0x23635f,_0x9aa033(0x11d));break;case _0x9aa033(0x162):_0x4c5535[_0x9aa033(0x1da)]=N(_0x313d02,++_0x5af86f,_0x23635f,0x16d);break;case _0x9aa033(0x16b):_0x4c5535[_0x9aa033(0x22c)]=_0x1e896b[_0x9aa033(0xfd)](process['cwd'](),p(_0x313d02,++_0x5af86f,_0x23635f,_0x9aa033(0x82)));break;case _0x9aa033(0x1dc):_0x4c5535[_0x9aa033(0x155)]=_0x1e896b[_0x9aa033(0xfd)](process[_0x9aa033(0x141)](),p(_0x313d02,++_0x5af86f,_0x23635f,_0x9aa033(0x82)));break;case _0x9aa033(0x1c2):{let _0x229d16=p(_0x313d02,++_0x5af86f,_0x23635f,_0x9aa033(0x7f));G[_0x9aa033(0x1ca)](_0x229d16)||(console[_0x9aa033(0x7a)](_0x9aa033(0x1df)+_0x229d16+'.\x20Use\x20'+G[_0x9aa033(0x10e)](_0x9aa033(0x1a3))+'.'),process['exit'](0x2)),_0x4c5535['effort']=_0x229d16;break;}case _0x9aa033(0x92):{let _0x31846c=_0x313d02[++_0x5af86f];(!_0x31846c||_0x31846c['startsWith']('--'))&&(console[_0x9aa033(0x7a)]('--tenant\x20requires\x20a\x20tenant\x20name.'),process[_0x9aa033(0x72)](0x2)),_0x4c5535[_0x9aa033(0x187)]=_0x31846c;break;}case _0x9aa033(0x7c):{let _0x5ab7ac=_0x313d02[++_0x5af86f];[_0x9aa033(0x73),_0x9aa033(0x1b3),_0x9aa033(0xca),'localhost'][_0x9aa033(0x1ca)](_0x5ab7ac)||(console[_0x9aa033(0x7a)]('Invalid\x20--env:\x20'+_0x5ab7ac+'.\x20Use\x20alpha\x20|\x20staging\x20|\x20production\x20|\x20localhost.'),process[_0x9aa033(0x72)](0x2)),_0x4c5535[_0x9aa033(0x7d)]=_0x5ab7ac;break;}case _0x9aa033(0x1a7):case _0x9aa033(0x153):{let _0x176e4a=p(_0x313d02,++_0x5af86f,_0x23635f,'a\x20deployment\x20URL,\x20e.g.\x20https://automationsuite.contoso.com'),_0x33d6ec=_0x177bd6(_0x176e4a);if(_0x33d6ec['ok']===!0x1){console[_0x9aa033(0x7a)](_0x443ed5(_0x176e4a,_0x33d6ec[_0x9aa033(0xa2)])),process[_0x9aa033(0x72)](0x2);break;}_0x4c5535[_0x9aa033(0xb3)]=_0x33d6ec[_0x9aa033(0xd3)];break;}case _0x9aa033(0x157):_0x4c5535[_0x9aa033(0x6e)]=!0x0;break;case'-h':case _0x9aa033(0x1fa):_0x4c5535[_0x9aa033(0x20d)]=!0x0;break;case'-v':case'--version':_0x4c5535[_0x9aa033(0x1fc)]=!0x0;break;default:_0x23635f[_0x9aa033(0x17b)]('--')&&(console[_0x9aa033(0x7a)](_0x9aa033(0xe1)+_0x23635f),process['exit'](0x2)),_0x23a892[_0x9aa033(0xf1)](_0x23635f);}}return _0x4c5535[_0x9aa033(0x187)]!==void 0x0&&_0x4c5535[_0x9aa033(0x16d)]!==_0x9aa033(0x1a8)&&(console[_0x9aa033(0x7a)]('--tenant\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Switch\x20tenants\x20with:\x20delegate-cli\x20tenant\x20<name>'),process[_0x9aa033(0x72)](0x2)),_0x4c5535[_0x9aa033(0xb3)]!==void 0x0&&_0x4c5535['env']!==void 0x0&&(console['error'](_0x9aa033(0xfe)),process[_0x9aa033(0x72)](0x2)),_0x4c5535[_0x9aa033(0xb3)]!==void 0x0&&_0x4c5535[_0x9aa033(0x16d)]!=='login'&&(console[_0x9aa033(0x7a)](_0x9aa033(0x13e)),process[_0x9aa033(0x72)](0x2)),_0x4c5535[_0x9aa033(0x1da)]!==void 0x0&&_0x4c5535[_0x9aa033(0x16d)]!==_0x9aa033(0x130)&&(console[_0x9aa033(0x7a)]('--days\x20applies\x20to\x20`delegate-cli\x20usage\x20activity|daily`\x20only.'),process[_0x9aa033(0x72)](0x2)),_0x4c5535[_0x9aa033(0x107)]!==void 0x0&&(_0x4c5535[_0x9aa033(0x16d)]!=='complete'&&_0x4c5535[_0x9aa033(0x16d)]!==''||_0x4c5535[_0x9aa033(0xad)])&&(console['error'](_0x9aa033(0x215)),process['exit'](0x2)),_0x4c5535[_0x9aa033(0xaa)][_0x9aa033(0x113)]>0x0&&(_0x4c5535[_0x9aa033(0x16d)]!==''||_0x4c5535[_0x9aa033(0xad)])&&(console[_0x9aa033(0x7a)](_0x9aa033(0x118)),process[_0x9aa033(0x72)](0x2)),_0x4c5535[_0x9aa033(0x170)]&&(_0x4c5535['subcommand']!==''||_0x4c5535[_0x9aa033(0xad)])&&(console[_0x9aa033(0x7a)](_0x9aa033(0x71)),process[_0x9aa033(0x72)](0x2)),_0x4c5535[_0x9aa033(0x170)]&&(_0x4c5535[_0x9aa033(0x100)]||_0x4c5535[_0x9aa033(0x11b)])&&(console[_0x9aa033(0x7a)](_0x9aa033(0x91)),process[_0x9aa033(0x72)](0x2)),_0x4c5535[_0x9aa033(0x6e)]&&_0x4c5535['subcommand']!==_0x9aa033(0x1a8)&&(console['error'](_0x9aa033(0x179)),process[_0x9aa033(0x72)](0x2)),_0x4c5535[_0x9aa033(0x84)]!==_0x9aa033(0x1e8)&&!W['includes'](_0x4c5535[_0x9aa033(0x16d)])&&(console[_0x9aa033(0x7a)](_0x9aa033(0x7b)+_0x4c5535['outputFormat']+_0x9aa033(0x21c)+W[_0x9aa033(0x220)](Boolean)[_0x9aa033(0x10e)](',\x20')+'.'),process['exit'](0x2)),(_0x4c5535['page']!==void 0x0||_0x4c5535[_0x9aa033(0x161)]!==void 0x0||_0x4c5535['includeSubAgents'])&&_0x4c5535[_0x9aa033(0x16d)]!=='sessions'&&(console[_0x9aa033(0x7a)](_0x9aa033(0x18f)),process['exit'](0x2)),(_0x4c5535['delegateTo']!==void 0x0||_0x4c5535[_0x9aa033(0x109)]!==void 0x0)&&_0x4c5535[_0x9aa033(0x16d)]!==_0x9aa033(0x94)&&(console[_0x9aa033(0x7a)](_0x9aa033(0x1f8)),process[_0x9aa033(0x72)](0x2)),_0x4c5535[_0x9aa033(0x1fd)]!==void 0x0&&_0x4c5535[_0x9aa033(0x16d)]!==_0x9aa033(0xf2)&&(console[_0x9aa033(0x7a)](_0x9aa033(0x117)),process[_0x9aa033(0x72)](0x2)),_0x4c5535[_0x9aa033(0x165)]=[...new Set(_0x4c5535[_0x9aa033(0x165)])],_0x4c5535[_0x9aa033(0x226)]=_0x23a892,_0x4c5535['prompt']=_0x23a892[_0x9aa033(0x10e)]('\x20'),_0x4c5535;}var S=_0xa80933=>{const _0x51d9d9=_0x2f20cb;process[_0x51d9d9(0x11a)][_0x51d9d9(0x78)](_0xa80933);};function gt(){const _0x39ce46=_0x2f20cb;let _0xec8ff9=process[_0x39ce46(0x11a)][_0x39ce46(0x78)],_0x2ded2b=_0xec8ff9[_0x39ce46(0xb6)](process['stdout']),_0x3ada30=S;return S=_0x5c30dc=>{_0x2ded2b(_0x5c30dc);},process[_0x39ce46(0x11a)]['write']=(..._0x216cb6)=>process[_0x39ce46(0x81)][_0x39ce46(0x78)](..._0x216cb6),()=>{const _0x3695b9=_0x39ce46;process[_0x3695b9(0x11a)]['write']=_0xec8ff9,S=_0x3ada30;};}function l(_0x3ff098,_0x8b791a,_0x4139ea){const _0x588902=_0x2f20cb;if(_0x3ff098[_0x588902(0x84)]==='text'){_0x4139ea(_0x8b791a);return;}S(_0x1fe9bb(_0x8b791a));}function wt(){const _0x3db8fd=_0x2f20cb;let _0x50acce=_0x3db8fd(0x235)[_0x3db8fd(0xcf)]();console['log'](_0x50acce);}function yt(){const _0x27f609=_0x2f20cb;try{return JSON[_0x27f609(0x20c)](_0x36886f[_0x27f609(0x12a)](_0x1e896b[_0x27f609(0x10e)](__dirname,'..',_0x27f609(0x167)),_0x27f609(0xd0)))['version']||'unknown';}catch{return'unknown';}}var kt=0x7d0;async function K(_0x47ce1b,_0x5004e2){const _0x4041f2=_0x2f20cb;let _0x3562cf=_0x5004e2?[_0x5004e2]:[];for await(let _0x1040f0 of _0x47ce1b)_0x3562cf[_0x4041f2(0xf1)](Buffer['from'](_0x1040f0));return Buffer['concat'](_0x3562cf)[_0x4041f2(0x198)](_0x4041f2(0xd0))[_0x4041f2(0xcf)]();}function St(_0x40789b,_0x2bb9e4){return new Promise(_0x558564=>{const _0x46ed30=_0x5423;let _0xeff54c=_0x569f6f=>{const _0x39e8a9=_0x5423;clearTimeout(_0x2ba449),_0x40789b['off'](_0x39e8a9(0x1ce),_0x1cbf66),_0x40789b['off']('end',_0x1ef713),_0x40789b[_0x39e8a9(0x96)]('error',_0x1ef713),_0x40789b['pause'](),_0x558564(_0x569f6f);},_0x1cbf66=_0x22c0ed=>_0xeff54c(Buffer['from'](_0x22c0ed)),_0x1ef713=()=>_0xeff54c(null),_0x2ba449=setTimeout(()=>_0xeff54c(null),_0x2bb9e4);_0x40789b['on'](_0x46ed30(0x1ce),_0x1cbf66),_0x40789b['on'](_0x46ed30(0x233),_0x1ef713),_0x40789b['on'](_0x46ed30(0x7a),_0x1ef713),_0x40789b[_0x46ed30(0x205)]();});}async function I(_0x2cbd36,_0x54e751,_0x31fa0b=kt){const _0x18b575=_0x2f20cb;let _0x1c0e35=_0x2cbd36==='-';if(!_0x1c0e35&&_0x2cbd36)return _0x2cbd36;if(!_0x1c0e35&&_0x54e751[_0x18b575(0xe2)])return'';if(_0x1c0e35)return K(_0x54e751,null);let _0x3ccbc0=await St(_0x54e751,_0x31fa0b);return _0x3ccbc0?K(_0x54e751,_0x3ccbc0):'';}function L(){const _0x4b46b3=_0x2f20cb;return _0x1e896b[_0x4b46b3(0x10e)](process.env.HOME||process.env.USERPROFILE||'',_0x4b46b3(0x183),_0x4b46b3(0x148));}function $(_0x1a8bcd){const _0x3f1853=_0x2f20cb;try{let _0x1c183f=JSON['parse'](_0x36886f['readFileSync'](_0x1a8bcd,'utf-8'));return!_0x1c183f['accessToken']||!_0x1c183f[_0x3f1853(0xa9)]||!_0x1c183f[_0x3f1853(0x7e)]?null:_0x1c183f;}catch{return null;}}function bt(){const _0x4d5832=_0x2f20cb;let _0x27a5cf=[{'file':_0x304046(),'isDesktopFallback':!0x1},{'file':L(),'isDesktopFallback':!0x0}];for(let _0x39914c of _0x27a5cf){let _0x3c641d=$(_0x39914c[_0x4d5832(0x119)]);if(_0x3c641d)return{..._0x39914c,'auth':_0x3c641d};}return null;}async function vt(){const _0x3d6dcb=_0x2f20cb;let _0x2780f4=_0x304046();if(!_0x36886f['existsSync'](_0x2780f4)){let _0x692341=L();console['log']($(_0x692341)?_0x3d6dcb(0x103)+_0x692341+_0x3d6dcb(0xe0):_0x3d6dcb(0x223));return;}_0x36886f['rmSync'](_0x2780f4),console[_0x3d6dcb(0x104)]('Removed\x20'+_0x2780f4);}async function At(_0x53d6ab){const _0x3367ac=_0x2f20cb;let _0x335e52=O(),_0xff7a0,_0xe297d8;if(_0x335e52)_0xff7a0=_0x335e52,_0xe297d8=_0x3367ac(0xbc);else{let _0x4f4135=bt();if(!_0x4f4135)throw new Error(le);_0xff7a0=_0x4f4135['auth'],_0xe297d8=_0x4f4135[_0x3367ac(0x174)]?_0x4f4135[_0x3367ac(0x119)]+_0x3367ac(0xa7):_0x4f4135[_0x3367ac(0x119)];}let _0x25c09b={'source':_0xe297d8,'baseUrl':_0xff7a0[_0x3367ac(0xd3)]??null,'deployment':Et(_0xff7a0[_0x3367ac(0xd3)]),'organization':{'id':_0xff7a0[_0x3367ac(0x7e)],'slug':_0xff7a0[_0x3367ac(0x212)]??null},'tenant':{'id':_0xff7a0[_0x3367ac(0xa9)],'name':_0xff7a0[_0x3367ac(0x163)]??null},'tokenExpiresAt':_0xff7a0[_0x3367ac(0x14b)]?new Date(_0xff7a0['expiresAt']*0x3e8)[_0x3367ac(0x134)]():null};l(_0x53d6ab,_0x25c09b,()=>{const _0x5f039b=_0x3367ac;let _0x3bae6f=[_0x5f039b(0x123)+_0xe297d8,_0x5f039b(0x1cc)+(_0xff7a0[_0x5f039b(0xd3)]??'unknown'),_0x5f039b(0x11c)+_0x25c09b[_0x5f039b(0x18c)],'Organization:\x20'+(_0xff7a0['orgLogicalName']??_0x5f039b(0x86))+'\x20('+_0xff7a0[_0x5f039b(0x7e)]+')','Tenant:\x20\x20\x20\x20\x20\x20\x20'+(_0xff7a0[_0x5f039b(0x163)]??_0x5f039b(0x86))+'\x20('+_0xff7a0[_0x5f039b(0xa9)]+')'];if(_0xff7a0[_0x5f039b(0x14b)]){let _0x12d0b5=_0xff7a0['expiresAt']-Math[_0x5f039b(0xfc)](Date[_0x5f039b(0x129)]()/0x3e8);_0x3bae6f['push'](_0x12d0b5>0x0?_0x5f039b(0x1fb)+_0x25c09b[_0x5f039b(0xe7)]+_0x5f039b(0x1c4)+Math[_0x5f039b(0xa6)](_0x12d0b5/0x3c)+'\x20min)':_0x5f039b(0x228)+_0x25c09b[_0x5f039b(0xe7)]);}process['stdout'][_0x5f039b(0x78)](_0x3bae6f[_0x5f039b(0x10e)]('\x0a')+'\x0a');});}var le=_0x2f20cb(0x202);function Et(_0x3cbd72){const _0x2cf588=_0x2f20cb;return _0x3cbd72?_0x2fb4f7(_0x3cbd72)?_0x2cf588(0x16e):_0x2cf588(0x8a):_0x2cf588(0x15c);}function O(){let _0x3dbf2c=process.env.AUTH_TOKEN_FILE;return(process.env.AUTH_TOKEN||_0x3dbf2c)&&process.env.TENANT_ID&&process.env.ORG_ID?{'accessToken':_0x3dbf2c?It(_0x3dbf2c):process.env.AUTH_TOKEN,..._0x3dbf2c?{'accessTokenFile':_0x3dbf2c}:{},'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(_0x3233a9){const _0x4ac215=_0x2f20cb;let _0x35b123;try{_0x35b123=_0x36886f[_0x4ac215(0x12a)](_0x3233a9,'utf-8')[_0x4ac215(0xcf)]();}catch(_0x144a09){throw new Error('AUTH_TOKEN_FILE\x20\x27'+_0x3233a9+_0x4ac215(0x1b8)+_0x144a09['message']);}let _0x237444=_0x35b123[_0x4ac215(0x17b)](_0x4ac215(0x1f7))?_0x35b123['slice'](0x7)[_0x4ac215(0xcf)]():_0x35b123;if(!_0x237444)throw new Error(_0x4ac215(0x18e)+_0x3233a9+'\x27\x20is\x20empty.');return _0x237444;}function ce(){const _0x3c153a=_0x2f20cb;let _0x7d0bf5=process.env.UIPATH_BASE_URL;if(!_0x7d0bf5)return;let _0x1c72d7=_0x177bd6(_0x7d0bf5);if(_0x1c72d7['ok']===!0x1)throw new Error('UIPATH_BASE_URL\x20is\x20unusable.\x20'+_0x443ed5(_0x7d0bf5,_0x1c72d7[_0x3c153a(0xa2)]));return _0x1c72d7[_0x3c153a(0xd3)];}async function P(){let _0x3753d2=O();if(_0x3753d2)return _0x3753d2;let _0x2a4413=await _0x129845();if(_0x2a4413)return _0x2a4413;throw new Error(le);}async function $t(){const _0x19b02b=_0x2f20cb;await new _0x40feb7()['stop']({'force':!0x0}),console[_0x19b02b(0x104)](_0x19b02b(0x190));}function F(_0xa5fd95,_0x3ba7a8,_0x1fda2a){const _0x38dace=_0x2f20cb;_0xa5fd95?process['stderr'][_0x38dace(0x78)]('[env='+_0xa5fd95+_0x38dace(0x1a0)+_0x1fda2a+'\x0a'):!_0x3ba7a8&&!process.env.BACKEND_URL&&process[_0x38dace(0x81)]['write'](_0x38dace(0xeb)+_0x1fda2a+'\x0a');}async function f(_0x26fea4){const _0x4a479c=_0x2f20cb;let _0x18dae8=await P(),_0x7263c4=_0x4a19c1(_0x26fea4[_0x4a479c(0x7d)],_0x18dae8,_0x26fea4['backendUrl']);return F(_0x26fea4[_0x4a479c(0x7d)],_0x26fea4[_0x4a479c(0x135)],_0x7263c4),{'auth':_0x18dae8,'backendUrl':_0x7263c4,'client':_0x5d63b8({'auth':_0x18dae8,'backendUrl':_0x7263c4})};}async function Tt(_0x53ea13){const _0x3d7396=_0x2f20cb;let {client:_0x2f8f05}=await f(_0x53ea13),[_0x3213ea,_0x389dec]=await Promise['all']([_0x110940(_0x2f8f05),_0x40c8ed(_0x2f8f05)[_0x3d7396(0xe5)](_0x37bda5=>(process['stderr']['write']('Could\x20not\x20check\x20BYO\x20model\x20warnings:\x20'+(_0x37bda5 instanceof Error?_0x37bda5[_0x3d7396(0x1ef)]:String(_0x37bda5))+'\x0a'),{}))]),_0x3451f7=_0x3213ea[_0x3d7396(0x1ad)](_0x237f7c=>_0x389dec[_0x237f7c['id']]?{..._0x237f7c,'byoWarning':_0x389dec[_0x237f7c['id']]}:_0x237f7c);l(_0x53ea13,_0x3451f7,xt);}function xt(_0x4758fd){const _0x256396=_0x2f20cb;if(_0x4758fd['length']===0x0){process[_0x256396(0x81)][_0x256396(0x78)](_0x256396(0x154));return;}process[_0x256396(0x11a)][_0x256396(0x78)](_0x256396(0x1d8)+_0x4758fd[_0x256396(0x113)]+_0x256396(0x93));for(let _0x43c382 of _0x4758fd){let _0x457db9=_0x43c382['name']&&_0x43c382['name']!==_0x43c382['id']?'\x20('+_0x43c382[_0x256396(0x140)]+')':'';process['stdout']['write']('\x20\x20'+_0x43c382['id']+_0x457db9+'\x0a'),_0x43c382[_0x256396(0x1e4)]&&process[_0x256396(0x11a)]['write'](_0x256396(0x1dd)+_0x43c382[_0x256396(0x1e4)]+'\x0a'),_0x43c382[_0x256396(0xe6)]&&process['stdout'][_0x256396(0x78)](_0x256396(0x177)+(_0x43c382[_0x256396(0x8d)]?'\x20('+_0x43c382['lockReason']+')':'')+'\x0a'),_0x43c382[_0x256396(0x6f)]&&process[_0x256396(0x11a)][_0x256396(0x78)](_0x256396(0xa1)+_0x43c382[_0x256396(0x6f)]+'\x0a');}process['stdout']['write'](_0x256396(0x22f));}var z=['list',_0x2f20cb(0xf0),_0x2f20cb(0xb4),_0x2f20cb(0xd5),_0x2f20cb(0xa8),_0x2f20cb(0x217)];async function Dt(_0x552155){const _0x1edb20=_0x2f20cb;let [_0x1c5635='',_0x11b20a='',..._0xb02cb6]=_0x552155[_0x1edb20(0x226)];if(_0x1c5635&&!z['includes'](_0x1c5635)&&(console[_0x1edb20(0x7a)](_0x1edb20(0x15f)+_0x1c5635+_0x1edb20(0x75)+z[_0x1edb20(0x10e)](_0x1edb20(0x1a3))+'.'),process[_0x1edb20(0x72)](0x2)),_0x552155['turnId']!==void 0x0&&_0x1c5635!=='cancel'&&(console[_0x1edb20(0x7a)](_0x1edb20(0x117)),process['exit'](0x2)),_0x1c5635&&_0x1c5635!==_0x1edb20(0x98)){await Ut(_0x552155,_0x1c5635,_0x11b20a,_0xb02cb6[_0x1edb20(0x10e)]('\x20')[_0x1edb20(0xcf)]());return;}_0x552155[_0x1edb20(0x226)][_0x1edb20(0x113)]>0x1&&(console[_0x1edb20(0x7a)](_0x1edb20(0x1ff)),process['exit'](0x2));let {client:_0x3111c6}=await f(_0x552155),_0x39a307=await _0x1679c0(_0x3111c6,{'page':_0x552155[_0x1edb20(0x1ec)],'pageSize':_0x552155[_0x1edb20(0x161)],'includeSubAgents':_0x552155['includeSubAgents']});l(_0x552155,_0x39a307,Rt);}async function Ut(_0x14009a,_0x5f3b91,_0xf89e48,_0x46c732){const _0x44b0df=_0x2f20cb;if((_0x14009a[_0x44b0df(0x1ec)]!==void 0x0||_0x14009a[_0x44b0df(0x161)]!==void 0x0||_0x14009a[_0x44b0df(0x1ae)])&&(console[_0x44b0df(0x7a)]('--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`delegate-cli\x20sessions\x20[list]`\x20only.'),process[_0x44b0df(0x72)](0x2)),_0x5f3b91===_0x44b0df(0xa8)){await Nt(_0x14009a,_0xf89e48,_0x46c732);return;}if(_0x5f3b91===_0x44b0df(0x217)){await Ct(_0x14009a,_0xf89e48,_0x46c732);return;}(!_0xf89e48||_0x5f3b91===_0x44b0df(0xb4)!=!!_0x46c732)&&(console['error'](_0x44b0df(0x18d)+_0x5f3b91+_0x44b0df(0xe3)+(_0x5f3b91===_0x44b0df(0xb4)?_0x44b0df(0x1d6):'')),process[_0x44b0df(0x72)](0x2));let {client:_0x45ceec}=await f(_0x14009a);try{if(_0x5f3b91===_0x44b0df(0xf0)){let _0x454b2c=await _0xb256b2(_0x45ceec,_0xf89e48);_0x454b2c||V(_0xf89e48),l(_0x14009a,_0x454b2c,_t);}else{if(_0x5f3b91===_0x44b0df(0xb4)){let _0x419e32=await _0xeee34(_0x45ceec,_0xf89e48,_0x46c732);l(_0x14009a,_0x419e32,_0x2de6c3=>{const _0x242193=_0x44b0df;process[_0x242193(0x11a)][_0x242193(0x78)]('Renamed\x20'+_0x2de6c3['id']+':\x20'+_0x2de6c3[_0x242193(0x1f9)]+'\x0a');});}else await _0x268a3d(_0x45ceec,_0xf89e48),await _0x1a2c7a(_0xf89e48,_0x14009a[_0x44b0df(0x22c)]),l(_0x14009a,{'id':_0xf89e48,'deleted':!0x0},_0x12f269=>{const _0x12496d=_0x44b0df;process[_0x12496d(0x11a)][_0x12496d(0x78)](_0x12496d(0x229)+_0x12f269['id']+'.\x0a');});}}catch(_0x1bc908){if(!_0x4a211e(_0x1bc908,0x194))throw _0x1bc908;V(_0xf89e48);}}function V(_0x5174a8){const _0x21c5f5=_0x2f20cb;console['error'](_0x21c5f5(0x136)+_0x5174a8+_0x21c5f5(0x106)),process[_0x21c5f5(0x72)](0x1);}function _t(_0x42e634){const _0x355e96=_0x2f20cb;process[_0x355e96(0x11a)][_0x355e96(0x78)](_0x355e96(0x1f0)+_0x42e634['id']+'\x0a'),process[_0x355e96(0x11a)][_0x355e96(0x78)]('Title\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x42e634[_0x355e96(0x1f9)]+'\x0a'),process['stdout'][_0x355e96(0x78)](_0x355e96(0x9d)+_0x42e634['userId']+'\x0a'),process[_0x355e96(0x11a)][_0x355e96(0x78)](_0x355e96(0x145)+_0x42e634['organizationId']+'\x0a'),_0x42e634[_0x355e96(0x1ed)]&&process['stdout'][_0x355e96(0x78)](_0x355e96(0x76)+_0x42e634[_0x355e96(0x1ed)]+'\x0a');}async function Nt(_0x5d95b4,_0x44b283,_0x5d161f){const _0x28b4da=_0x2f20cb;(!_0x44b283||_0x5d161f||!_0x5d95b4[_0x28b4da(0x1fd)])&&(console[_0x28b4da(0x7a)](_0x28b4da(0x216)),process['exit'](0x2));let {client:_0x15e570}=await f(_0x5d95b4),_0x580ca1=await _0xae8d16(_0x15e570,_0x44b283,_0x5d95b4[_0x28b4da(0x1fd)]);l(_0x5d95b4,{'sessionId':_0x44b283,'turnId':_0x5d95b4[_0x28b4da(0x1fd)],'cancelled':_0x580ca1},_0x3dd9b7=>{const _0xe0499e=_0x28b4da;_0x3dd9b7[_0xe0499e(0x1a1)]?process[_0xe0499e(0x11a)][_0xe0499e(0x78)](_0xe0499e(0x227)+_0x3dd9b7[_0xe0499e(0x1fd)]+_0xe0499e(0x221)+_0x3dd9b7[_0xe0499e(0x194)]+'.\x0a'):process[_0xe0499e(0x81)][_0xe0499e(0x78)](_0xe0499e(0x1b4)+_0x3dd9b7['turnId']+_0xe0499e(0x143)+_0x3dd9b7[_0xe0499e(0x194)]+'.\x0a');}),_0x580ca1||(process[_0x28b4da(0x10b)]=0x1);}async function Ct(_0x46dec3,_0x2fb0fd,_0xcfdcc3){const _0x2f76cd=_0x2f20cb;(!_0x2fb0fd||/\s/[_0x2f76cd(0x13c)](_0xcfdcc3))&&(console[_0x2f76cd(0x7a)](_0x2f76cd(0x83)),process[_0x2f76cd(0x72)](0x2));let {client:_0x2e6fe0}=await f(_0x46dec3),_0x4b9144;try{_0x4b9144=await _0x4f7eec(_0x2e6fe0,_0x2fb0fd,{'atMessageId':_0xcfdcc3||void 0x0});}catch(_0x3c3873){if(!_0x4a211e(_0x3c3873,0x194))throw _0x3c3873;console['error'](_0x2f76cd(0x136)+_0x2fb0fd+'\x20not\x20found,\x20has\x20no\x20messages'+(_0xcfdcc3?_0x2f76cd(0x87)+_0xcfdcc3:'')+'.'),process['exit'](0x1);}l(_0x46dec3,_0x4b9144,_0x315725=>{const _0x2e4256=_0x2f76cd;process['stdout'][_0x2e4256(0x78)]('Forked\x20'+_0x2fb0fd+_0x2e4256(0x16c)+_0x315725['id']+'.\x0a'),process[_0x2e4256(0x81)][_0x2e4256(0x78)](_0x2e4256(0x139)+_0x315725['id']+_0x2e4256(0x1bd));});}function Rt({sessions:_0x234f36,page:_0x5565aa,isLastPage:_0x2ffde2}){const _0x9ae2ec=_0x2f20cb;if(_0x234f36[_0x9ae2ec(0x113)]===0x0)process[_0x9ae2ec(0x81)][_0x9ae2ec(0x78)](_0x9ae2ec(0x1e6)+_0x5565aa+'.\x0a');else{process[_0x9ae2ec(0x11a)][_0x9ae2ec(0x78)]('ID'[_0x9ae2ec(0x20f)](0x24)+'\x20\x20'+_0x9ae2ec(0x197)[_0x9ae2ec(0x20f)](0x13)+_0x9ae2ec(0x182));for(let _0x54911b of _0x234f36){let _0x4161cd=_0x54911b[_0x9ae2ec(0x1a4)]['replace']('T','\x20')[_0x9ae2ec(0x234)](0x0,0x13),_0x4a1d66=_0x54911b[_0x9ae2ec(0x15a)]?'\x20\x20(sub-agent\x20of\x20'+_0x54911b[_0x9ae2ec(0x15a)]+')':'';process[_0x9ae2ec(0x11a)][_0x9ae2ec(0x78)](_0x54911b['id'][_0x9ae2ec(0x20f)](0x24)+'\x20\x20'+_0x4161cd['padEnd'](0x13)+'\x20\x20'+_0x54911b[_0x9ae2ec(0x1f9)]+_0x4a1d66+'\x0a');}}_0x2ffde2||process[_0x9ae2ec(0x81)]['write'](_0x9ae2ec(0x203)+(_0x5565aa+0x1)+'\x0a');}async function Lt(_0x1f0761){const _0x4f486f=_0x2f20cb;let _0x2fd2df=await P(),_0x30e6d1=_0x4a19c1(_0x1f0761[_0x4f486f(0x7d)],_0x2fd2df,_0x1f0761[_0x4f486f(0x135)]);F(_0x1f0761[_0x4f486f(0x7d)],_0x1f0761[_0x4f486f(0x135)],_0x30e6d1);let _0x263c8d=await _0x20e8d9({'auth':_0x2fd2df,'backendUrl':_0x30e6d1,'interop':_0x1f0761[_0x4f486f(0x100)]?_0x4f486f(0x1d2):_0x4f486f(0xc8)});l(_0x1f0761,_0x263c8d,({checks:_0x3aea92})=>{const _0x2bfe96=_0x4f486f;for(let _0x21c2cb of _0x3aea92)process[_0x2bfe96(0x11a)]['write'](Ot(_0x21c2cb)+'\x0a');}),_0x263c8d['ok']||process['exit'](0x1);}function Ot(_0x255309){const _0x20c92f=_0x2f20cb;return{'ok':'✓','failed':'✗','skipped':'-'}[_0x255309[_0x20c92f(0x13a)]]+'\x20'+_0x255309['name']['padEnd'](0xa)+_0x255309[_0x20c92f(0xe9)];}var Pt=['','activity',_0x2f20cb(0x17f)];function _0x305f(){const _0x177655=['--env','env','organizationId','an\x20effort\x20tier','delegations\x20dismiss\x20<delegation-id>','stderr','a\x20directory\x20path','Usage:\x20delegate-cli\x20sessions\x20fork\x20<id>\x20[<message-id>]','outputFormat','\x22.\x0a','unknown\x20slug',',\x20or\x20holds\x20no\x20message\x20','\x20(resume\x20with\x20--session\x20','then','self-hosted\x20(Automation\x20Suite\x20/\x20Dedicated)','cartographer','a\x20JSON\x20schema\x20file','lockReason','Invalid\x20--project:\x20\x22','8738253ZQiOpQ','turn_start','--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.','--tenant','):\x0a\x0a','delegations','mode','off','model_id','list','Usage:\x20delegate-cli\x20org-users\x20<name\x20or\x20email\x20prefix>','score','whoami','SIGINT','Owner\x20\x20\x20\x20\x20\x20\x20\x20\x20','--session\x20applies\x20to\x20the\x20`delegate-cli\x20usage`\x20summary\x20only.','You>\x20','tool_call','\x20\x20\x20\x20BYO\x20warning:\x20','rejection','total_completion_tokens','structured','\x20token\x20units)','round','\x20(Delegate\x20desktop\x20app\x20fallback)','cancel','tenantId','attachments','effort','org-users','cleanup','\x20\x22<prompt>\x22\x0aAnswer\x20with:\x20delegate-cli\x20delegations\x20complete\x20','probability\x20','estimated_cost_usd','getSessionId','stream-json','url','rename','noConnections','bind','\x0a🤔\x20','claim','.\x20Use\x20','--env\x20localhost\x20has\x20no\x20OAuth\x20flow;\x20pick\x20alpha,\x20staging,\x20or\x20production.','--print','environment\x20variables\x20(AUTH_TOKEN/TENANT_ID/ORG_ID)','daily_usage','--attach:\x20no\x20such\x20file\x20or\x20folder:\x20','Already\x20accepted','\x20prompt,\x20','toFixed','delegations\x20delete\x20<delegation-id>',';\x20the\x20saved\x20login\x20still\x20uses\x20','\x20to\x20','Licensing:\x20\x20\x20\x20no\x20licensing\x20quota\x20applies','monthly_spend_usd','verify','spawn','\x20\x20from\x20','production','Session\x20\x20\x20\x20\x20\x20\x20','isSafeInteger','Claimed\x20from\x20delegation\x20','\x20(no\x20cap\x20enforced)','trim','utf-8','tool','limit_enabled','baseUrl','stack','delete','--session','102AfkAns','--keep-alive','completion_tokens','check','Date\x20\x20\x20\x20\x20\x20\x20\x20Token\x20units\x20\x20Prompt\x20tokens\x20\x20Completion\x20tokens','Delegated\x20','complete\x20needs\x20--json-schema\x20<file>:\x20delegate-cli\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22.','\x20requires\x20','🔧\x20','\x20—\x20sign\x20out\x20in\x20the\x20Delegate\x20app\x20to\x20clear\x20that.','Unknown\x20flag:\x20','isTTY','\x20<id>','Unknown\x20delegations\x20action:\x20','catch','locked','tokenExpiresAt','Tenant\x20not\x20switched:\x20could\x20not\x20write\x20','detail','\x20must\x20be\x20a\x20JSON\x20object.','[saved\x20login]\x20Backend\x20URL:\x20','No\x20CLI\x20login\x20to\x20switch:\x20the\x20CLI\x20is\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20','stdin','\x20(confidence\x20','quiet','show','push','sessions','--summary','No\x20delegations.\x0a','Model\x20','medium','delegations\x20complete\x20<delegation-id>\x20\x22<answer>\x22|-','date','content','--model','workerId','floor','resolve','Pass\x20either\x20--env\x20(a\x20named\x20cloud)\x20or\x20--url\x20(any\x20other\x20deployment),\x20not\x20both.','origin','headless','--page','keepAlive','No\x20CLI\x20login\x20found.\x20Note:\x20the\x20CLI\x20is\x20currently\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20','log','choice\x20','\x20not\x20found.','jsonSchemaPath','\x20days.\x0a','contextSummary','structuredError','exitCode','models_breakdown','No\x20structured\x20output:\x20the\x20turn\x20failed\x20(','join','1183665PZbeGK','--interop','Use:\x20delegate-cli\x20delegations\x20','monthly_limit_usd','length','results','\x20this\x20month','--verbose','--turn\x20applies\x20to\x20`delegate-cli\x20sessions\x20cancel`\x20only.','--attach\x20applies\x20to\x20prompts\x20only.','file','stdout','noComputerUse','Deployment:\x20\x20\x20','a\x20briefing\x20text','pct_used','result','Rubric\x20','2632CqXPRH','Answered','Source:\x20\x20\x20\x20\x20\x20\x20','No\x20one\x20matches\x20\x22','verdict','1302328mOlBCy',').\x0a','token_units','now','readFileSync','--turn','\x20\x22<answer>\x22\x0a','active_days','noMemory','confidence','usage','argv','hide','complete','toISOString','backendUrl','Session\x20','%\x20of\x20','xhigh','Continue\x20it\x20with:\x20delegate-cli\x20--session\x20','status','\x20<file.json>,\x20or\x20-\x20to\x20read\x20stdin.','test','a\x20turn\x20id','--url\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Other\x20commands\x20follow\x20the\x20saved\x20login,\x20or\x20--backend\x20<url>.','concat','name','cwd','✓\x20Done\x0a','\x20in\x20progress\x20on\x20session\x20','alreadyAccepted','Organization\x20\x20','--no-memory','extra_pool_consumed_pu','auth.json','sendMessage','dismissed','expiresAt',':\x20cannot\x20read\x20the\x20JSON\x20schema\x20(','Unknown\x20usage\x20view:\x20','onEvent','email','\x20needs\x20a\x20JSON\x20request:\x20delegate-cli\x20','Session:\x20','delegations\x20create\x20--session\x20<id>\x20[--to\x20<email|name>]\x20[--summary\x20<text>]\x20\x22<task>\x22|-','--authority','No\x20models\x20available\x20for\x20this\x20product/tenant.\x0a','bundledSkillsPath','evaluate','--skip-env-check','Task\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20from\x20','parentSessionId','delegations\x20list\x20<backend-project-id>','unknown','delegateTo','sourceUserEmail','Unknown\x20sessions\x20action:\x20','choice','limit','--days','tenantName','total_sessions','preloadSkills','Tenants\x20of\x20','package.json','Already\x20answered','session_start','ASSIGNEE','--working-dir','\x20into\x20','subcommand','UiPath\x20Cloud','keys','taskAutomation','delegations\x20show\x20<delegation-id|delegate://delegation/…>','assignedUserEmail','complete\x20needs\x20a\x20prompt:\x20delegate-cli\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22,\x20or\x20-\x20to\x20read\x20stdin.','isDesktopFallback','dismiss','the\x20JSON\x20schema','\x20\x20\x20\x20Not\x20available\x20on\x20this\x20plan','Tokens:\x20','--skip-env-check\x20applies\x20to\x20`delegate-cli\x20login`\x20only.','isArray','startsWith','a\x20format\x20(','135152tbGbFC','\x20\x20(input\x20#','daily','toolName','type','\x20\x20TITLE\x0a','.aria','\x20completion','delegations\x20claim\x20<delegation-id|delegate://delegation/…>','the\x20request','tenant','--to','task','a\x20file\x20path','Auth\x20comes\x20from\x20AUTH_TOKEN/TENANT_ID/ORG_ID\x20—\x20set\x20TENANT_ID\x20and\x20TENANT_SLUG\x20to\x20change\x20the\x20tenant.','deployment','Usage:\x20delegate-cli\x20sessions\x20','AUTH_TOKEN_FILE\x20\x27','--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`delegate-cli\x20sessions`\x20only.','Interop\x20stopped\x20(if\x20it\x20was\x20running).','Missing\x20prompt.\x20Pass\x20it\x20as\x20an\x20argument,\x20pipe\x20it\x20via\x20stdin,\x20or\x20run\x20`delegate-cli\x20--help`.','initialize','Invalid\x20--output-format:\x20','sessionId','restore','\x0aStopping…\x20(Ctrl+C\x20again\x20to\x20force\x20exit)\x0a','UPDATED','toString','pending','\x20of\x20a\x20$','37900650isuXPG','\x20PU','Work\x20on\x20it\x20with:\x20delegate-cli\x20--session\x20','padStart','session_consumed_pu',']\x20Backend\x20URL:\x20','cancelled','Cartographer:\x20','\x20|\x20','updatedAt','\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).','\x0aAccept\x20one\x20with:\x20delegate-cli\x20delegations\x20accept\x20<id>\x0a','--url','login','total_quota_pu','--quiet','\x20days:\x20',')\x20—\x20saved\x20to\x20','map','includeSubAgents','period_days','runnerUrl','transcribe:\x20cannot\x20read\x20','prompt_tokens','staging','No\x20turn\x20','--task-automation','deleted','assignedUser','\x27\x20cannot\x20be\x20read:\x20','from\x201\x20to\x20','\x20must\x20be\x20a\x20whole\x20number\x20','max','total_token_units','\x20\x22<prompt>\x22\x0a','--headless','forEach','getTurnUsageHistory','period_end','--effort','No\x20usage\x20in\x20the\x20last\x20','\x20(in\x20','host','done','a\x20session\x20id','pendingResults','Switch\x20with:\x20delegate-cli\x20tenant\x20<name>\x0a','includes','alreadyCompleted','Base\x20URL:\x20\x20\x20\x20\x20','\x20--turn\x20','data','thinking','once','--attach','skip','displayName','a\x20colleague','object','\x20<title>','toUpperCase','\x0aAvailable\x20models\x20(','No\x20CLI\x20login\x20found.\x20Run\x20`delegate-cli\x20login\x20--env\x20<alpha|staging|production>`\x20first.','days','high','--skills-path','\x20\x20\x20\x20','projectId','Invalid\x20--effort:\x20','isError','activity','1223765WPDfhF','Last\x20','description','\x20(current)','No\x20sessions\x20on\x20page\x20','17703elVwMT','text','Usage:\x20delegate-cli\x20','index','verbose','page','delegationId','The\x20saved\x20CLI\x20login\x20could\x20not\x20be\x20refreshed.\x20Run\x20`delegate-cli\x20login`\x20again.','message','ID\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','transcribe\x20needs\x20audio:\x20delegate-cli\x20transcribe\x20<file>,\x20or\x20-\x20to\x20read\x20stdin.','\x20(cancel\x20with:\x20delegate-cli\x20sessions\x20cancel\x20','--worker-id','a\x20project\x20id','close','accept','Bearer\x20','--to\x20and\x20--summary\x20apply\x20to\x20`delegate-cli\x20delegations\x20create`\x20only.','title','--help','Token:\x20\x20\x20\x20\x20\x20\x20\x20expires\x20','version','turnId','No\x20answers\x20awaiting\x20acceptance.\x0a','Usage:\x20delegate-cli\x20sessions\x20[list]\x20[--page\x20N]\x20[--limit\x20N]\x20[--include-subagents]','answers','low','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.','More:\x20delegate-cli\x20sessions\x20--page\x20','print','resume','18pRXcPC','\x20token\x20units','--no-security','probability','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','response','parse','help','stringify','padEnd','\x20delegation\x20','model','orgLogicalName','rerank','from','--json-schema\x20applies\x20to\x20prompts\x20and\x20to\x20`delegate-cli\x20complete`\x20only.','Usage:\x20delegate-cli\x20sessions\x20cancel\x20<session-id>\x20--turn\x20<turn-id>','fork','total_cost_usd','--cleanup','prompt','lastType','\x20applies\x20to\x20prompts\x20and\x20to\x20these\x20commands\x20only:\x20','--cartographer','delegation','asyncIterator','filter','\x20of\x20session\x20','--include-subagents','No\x20CLI\x20login\x20found\x20—\x20nothing\x20to\x20remove.','\x20active\x20days','models','operands','Cancel\x20requested\x20for\x20turn\x20','Token:\x20\x20\x20\x20\x20\x20\x20\x20expired\x20','Deleted\x20session\x20','Enter\x20sends\x20a\x20message.\x20/exit\x20or\x20EOF\x20exits;\x20Ctrl+C\x20stops\x20and\x20exits.\x0a','all','workingDirectory','create','transcribe','\x0aUse\x20with:\x20delegate-cli\x20--model\x20<id>\x20\x22<prompt>\x22\x0a','code','--no-connections','delegate-cli','end','slice','\x0adelegate-cli\x20—\x20Delegate\x20agent\x20CLI\x0a\x0aUsage:\x0a\x20\x20delegate-cli\x20[flags]\x20[\x22<prompt>\x22]\x20\x20\x20\x20Start\x20a\x20conversation\x20in\x20a\x20terminal\x0a\x20\x20delegate-cli\x20--print\x20\x22<prompt>\x22\x20\x20\x20\x20\x20\x20Send\x20one\x20prompt,\x20print\x20the\x20response,\x20and\x20exit\x0a\x20\x20delegate-cli\x20[flags]\x20-\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Read\x20one\x20prompt\x20from\x20stdin\x20through\x20EOF,\x20then\x20exit\x0a\x20\x20delegate-cli\x20-p\x20\x22<prompt>\x22\x20--output-format\x20json|stream-json\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20One\x20turn\x20with\x20JSON-only\x20stdout;\x20exit\x201\x20on\x20error\x0a\x20\x20delegate-cli\x20--json-schema\x20FILE\x20\x22<prompt>\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20One\x20turn,\x20then\x20its\x20result\x20extracted\x20as\x20JSON\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20matching\x20the\x20schema\x20in\x20FILE\x20(printed\x20after\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20answer;\x20\x22structured\x22\x20in\x20the\x20JSON\x20result);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20exit\x201\x20when\x20the\x20extraction\x20fails\x0a\x20\x20delegate-cli\x20--attach\x20PATH\x20[--attach\x20PATH\x20...]\x20\x22<prompt>\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Send\x20files\x20or\x20folders\x20with\x20the\x20first\x20message\x0a\x20\x20delegate-cli\x20login\x20[--env\x20NAME\x20|\x20--url\x20BASE]\x20[--tenant\x20NAME]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20OAuth\x20browser\x20login\x20→\x20~/.aria/sdk-auth.json.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--env\x20or\x20--url\x20required\x20on\x20FIRST\x20login;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20afterwards\x20defaults\x20to\x20the\x20saved\x20login\x27s\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20deployment.\x20--tenant\x20picks\x20a\x20tenant\x20by\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20name;\x20without\x20it\x20a\x20re-login\x20keeps\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20saved\x20tenant\x0a\x20\x20delegate-cli\x20tenant\x20[NAME]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20the\x20organization\x27s\x20tenants,\x20or\x20switch\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20saved\x20login\x20to\x20NAME\x20(no\x20browser)\x0a\x20\x20delegate-cli\x20logout\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Remove\x20the\x20saved\x20CLI\x20login\x0a\x20\x20delegate-cli\x20whoami\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20the\x20current\x20login\x20(org,\x20tenant,\x20token\x20expiry)\x0a\x20\x20delegate-cli\x20models\x20[--env\x20NAME]\x20\x20\x20\x20\x20List\x20available\x20LLM\x20models\x20for\x20the\x20current\x20tenant,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20with\x20any\x20BYO\x20configuration\x20warning\x20per\x20model\x0a\x20\x20delegate-cli\x20sessions\x20[list]\x20[--page\x20N]\x20[--limit\x20N]\x20[--include-subagents]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20your\x20backend\x20chat\x20sessions,\x20most\x20recently\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20active\x20first\x20(resume\x20one\x20with\x20--session\x20ID)\x0a\x20\x20delegate-cli\x20sessions\x20show|delete\x20ID\x20Show\x20one\x20session\x27s\x20title\x20and\x20owner,\x20or\x20delete\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20it\x20with\x20its\x20messages\x20and\x20sub-agents\x20(no\x20prompt)\x0a\x20\x20delegate-cli\x20sessions\x20rename\x20ID\x20TITLE\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Rename\x20a\x20session\x20(1-500\x20characters)\x0a\x20\x20delegate-cli\x20sessions\x20fork\x20ID\x20[MESSAGE]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Copy\x20session\x20ID\x20into\x20a\x20new\x20session,\x20up\x20to\x20and\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20including\x20message\x20MESSAGE\x20(default:\x20all\x20of\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20it);\x20continue\x20it\x20with\x20--session\x20NEW_ID\x0a\x20\x20delegate-cli\x20sessions\x20cancel\x20ID\x20--turn\x20TURN\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Cancel\x20turn\x20TURN\x20running\x20on\x20session\x20ID\x20in\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20another\x20process;\x20exits\x201\x20when\x20no\x20such\x20turn\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20is\x20in\x20progress\x0a\x20\x20delegate-cli\x20check\x20[--env\x20NAME]\x20[--headless]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Verify\x20auth,\x20backend\x20readiness,\x20backend\x20and\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20interop\x20without\x20sending\x20a\x20prompt;\x20exits\x201\x20when\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20any\x20check\x20fails\x0a\x20\x20delegate-cli\x20usage\x20[--session\x20ID]\x20\x20\x20\x20Quota\x20and\x20spend:\x20licensing\x20quota,\x20monthly\x20spend\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20and\x20cap,\x20Cartographer\x20allowance\x0a\x20\x20delegate-cli\x20usage\x20activity|daily\x20[--days\x20N]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Activity\x20totals,\x20or\x20per-day\x20usage,\x20over\x20the\x20last\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20N\x20days\x20(1-365,\x20default\x2030)\x0a\x20\x20delegate-cli\x20evaluate|rerank|verify\x20FILE|-\x20[--model\x20ID]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Stateless\x20typed\x20judgments:\x20send\x20the\x20JSON\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20request\x20in\x20FILE\x20(or\x20stdin\x20with\x20-)\x20to\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20/v1/completions/<command>\x20and\x20print\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20answers;\x20--model\x20overrides\x20its\x20\x22model\x22.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Exits\x201\x20when\x20the\x20backend\x20rejects\x20it\x0a\x20\x20delegate-cli\x20complete\x20--json-schema\x20FILE\x20[--model\x20ID]\x20[--session\x20ID]\x20\x22<prompt>\x22|-\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20One\x20structured\x20completion,\x20no\x20agent\x20turn:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20print\x20the\x20JSON\x20object\x20matching\x20the\x20schema\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20in\x20FILE\x20(--output-format\x20json\x20prints\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{structured,\x20usage});\x20--session\x20adds\x20that\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20session\x27s\x20history\x20as\x20context.\x20Exits\x201\x20when\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20output\x20fails\x20the\x20schema\x20(422)\x20or\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20backend\x20rejects\x20the\x20request\x0a\x20\x20delegate-cli\x20transcribe\x20FILE|-\x20\x20\x20\x20\x20\x20\x20Speech-to-text\x20(Whisper):\x20print\x20the\x20text\x20of\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20audio\x20in\x20FILE,\x20or\x20on\x20stdin\x20with\x20-.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20mp3,\x20mp4,\x20mpeg,\x20mpga,\x20m4a,\x20wav\x20or\x20webm,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20up\x20to\x2025\x20MiB.\x20Exits\x202\x20when\x20the\x20audio\x20is\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20refused\x20locally,\x201\x20when\x20the\x20backend\x20rejects\x20it\x0a\x20\x20delegate-cli\x20org-users\x20QUERY\x20\x20\x20\x20\x20\x20\x20\x20\x20Search\x20your\x20organization\x27s\x20users\x20by\x20name\x20or\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20email\x20prefix\x20(2-100\x20characters)\x0a\x20\x20delegate-cli\x20delegations\x20create\x20--session\x20ID\x20[--to\x20WHO]\x20[--summary\x20TEXT]\x20\x22<task>\x22|-\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Hand\x20a\x20task\x20from\x20session\x20ID\x20to\x20a\x20colleague\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(WHO:\x20an\x20email,\x20or\x20a\x20name\x20matching\x20one\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20person);\x20without\x20--to,\x20print\x20a\x20link\x20anyone\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20in\x20the\x20organization\x20can\x20claim\x0a\x20\x20delegate-cli\x20delegations\x20pending\x20SESSION\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Answers\x20to\x20delegations\x20from\x20SESSION\x20that\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20await\x20acceptance\x20(poll\x20this)\x0a\x20\x20delegate-cli\x20delegations\x20accept|dismiss|cancel|delete\x20ID\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Take\x20an\x20answer\x20into\x20its\x20session,\x20drop\x20it,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20withdraw\x20a\x20live\x20delegation,\x20or\x20delete\x20it\x0a\x20\x20delegate-cli\x20delegations\x20list\x20PROJECT\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Every\x20delegation\x20targeting\x20a\x20backend\x20project\x0a\x20\x20delegate-cli\x20delegations\x20show|claim\x20ID|LINK\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Read\x20a\x20delegation\x20assigned\x20to\x20you\x20(or\x20a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20delegate://delegation/…\x20link),\x20or\x20claim\x20it:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20prints\x20the\x20session\x20to\x20work\x20it\x20in\x0a\x20\x20delegate-cli\x20delegations\x20complete\x20ID\x20\x22<answer>\x22|-\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Send\x20the\x20answer\x20to\x20a\x20delegation\x20you\x20claimed\x0a\x20\x20delegate-cli\x20host\x20[flags]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Run\x20this\x20PC\x20as\x20a\x20remote\x20worker\x20until\x20Ctrl+C\x0a\x20\x20delegate-cli\x20host\x20install\x20[flags]\x20\x20\x20\x20Auto-start\x20the\x20host\x20at\x20login\x20(macOS\x20LaunchAgent\x20/\x20Windows\x20Scheduled\x20Task)\x0a\x20\x20delegate-cli\x20host\x20uninstall\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Remove\x20auto-start\x0a\x20\x20delegate-cli\x20host\x20status\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20auto-start\x20state\x0a\x20\x20delegate-cli\x20--cleanup\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Stop\x20running\x20interop\x0a\x0aFlags:\x0a\x20\x20-p,\x20--print\x20\x20\x20\x20\x20\x20\x20Run\x20one\x20turn\x20and\x20exit,\x20including\x20any\x20tool\x20execution.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Automatic\x20when\x20stdin\x20or\x20stdout\x20is\x20not\x20a\x20terminal,\x20or\x20with\x20-\x0a\x20\x20--env\x20NAME\x20\x20\x20\x20\x20\x20\x20\x20alpha\x20|\x20staging\x20|\x20production\x20|\x20localhost\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Composes\x20backend\x20URL\x20from\x20saved\x20auth\x20(org/tenant\x20slugs).\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Omitted\x20→\x20the\x20deployment\x20you\x20logged\x20into\x20(delegate-cli\x20login).\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20localhost\x20→\x20http://localhost:5002.\x20No\x20saved\x20login\x20and\x20no\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--env/--backend/BACKEND_URL\x20is\x20an\x20error\x20—\x20never\x20a\x20guess.\x0a\x20\x20--url\x20BASE\x20\x20\x20\x20\x20\x20\x20\x20(login)\x20Base\x20URL\x20of\x20a\x20deployment\x20that\x20is\x20not\x20a\x20named\x20cloud\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20—\x20Automation\x20Suite,\x20Dedicated,\x20Public\x20Sector.\x20Accepts\x20a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20tenant\x20path\x20or\x20a\x20trailing\x20/identity_\x20and\x20reduces\x20it\x20to\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20origin.\x20Mutually\x20exclusive\x20with\x20--env;\x20also\x20settable\x20via\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20UIPATH_BASE_URL.\x20Alias:\x20--authority.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Automation\x20Suite\x20needs\x2026.10+\x20with\x20the\x20Delegate\x20service;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20the\x20deployment\x20rejects\x20the\x20built-in\x20client,\x20register\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20your\x20own\x20—\x20see\x20UIPATH_CLIENT_ID\x20in\x20the\x20README\x0a\x20\x20--skip-env-check\x20\x20(login)\x20Do\x20not\x20check\x20the\x20deployment\x20before\x20signing\x20in.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Escape\x20hatch\x20for\x20a\x20deployment\x20that\x20hides\x20its\x20OIDC\x20discovery\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20document\x20or\x20serves\x20Identity\x20from\x20another\x20origin;\x20it\x20also\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20gives\x20up\x20the\x20diagnosis\x20when\x20something\x20is\x20really\x20wrong\x0a\x20\x20--backend\x20URL\x20\x20\x20\x20\x20Full\x20backend\x20URL\x20—\x20escape\x20hatch\x20overrides\x20--env\x0a\x20\x20--tenant\x20NAME\x20\x20\x20\x20\x20(login)\x20Tenant\x20to\x20sign\x20into,\x20by\x20name\x20(case-insensitive).\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default:\x20the\x20saved\x20login\x27s\x20tenant\x20on\x20that\x20cloud,\x20else\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20org\x27s\x20first\x20tenant.\x20Later:\x20delegate-cli\x20tenant\x20<name>\x0a\x20\x20--model\x20NAME\x20\x20\x20\x20\x20\x20LLM\x20model\x20id\x20(e.g.\x20claude_sonnet_5,\x20kimi_k3).\x20Checked\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20against\x20the\x20tenant\x27s\x20catalog\x20(delegate-cli\x20models)\x20before\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20run\x20starts;\x20an\x20unknown\x20id\x20fails\x20and\x20lists\x20the\x20valid\x20ones.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default:\x20gpt_5_6_luna.\x20Also\x20settable\x20via\x20MODEL\x20env\x20var.\x0a\x20\x20--keep-alive\x20\x20\x20\x20\x20\x20Reuse/leave\x20interop\x20running\x20across\x20invocations\x0a\x20\x20--headless\x20\x20\x20\x20\x20\x20\x20\x20Skip\x20interop\x20(text-only\x20prompts)\x0a\x20\x20--no-computer-use\x20Keep\x20interop\x20—\x20file,\x20Office,\x20PDF\x20and\x20shell\x20tools\x20keep\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20working\x20—\x20but\x20drop\x20the\x20screen:\x20no\x20screenshots,\x20no\x20window\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20list,\x20no\x20UI-automation\x20tools.\x20Cuts\x20image\x20tokens\x20and\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20per-turn\x20screen\x20capture,\x20and\x20stops\x20desktop\x20window\x20titles\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20leaving\x20the\x20machine.\x20Use\x20for\x20document\x20and\x20file\x20work.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--headless\x20implies\x20this\x20and\x20turns\x20interop\x20off\x20as\x20well\x0a\x20\x20--no-connections\x20\x20Disable\x20orchestrator\x20ConnectionService\x20(silences\x20404\x20warnings)\x0a\x20\x20--no-security\x20\x20\x20\x20\x20Disable\x20tool\x20security\x20wrapper\x20(use\x20only\x20for\x20debugging)\x0a\x20\x20--no-memory\x20\x20\x20\x20\x20\x20\x20Do\x20not\x20send\x20the\x20Delegate\x20app\x27s\x20local\x20long-term\x20memories\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20with\x20each\x20turn,\x20and\x20do\x20not\x20ask\x20the\x20model\x20to\x20save\x20new\x20ones\x0a\x20\x20--task-automation\x20Record\x20every\x20UI\x20action\x20of\x20the\x20run,\x20with\x20the\x20selector\x20of\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20element\x20it\x20acted\x20on,\x20to\x20<working-dir>/captures/<session>/\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(~/.aria-sdk\x20without\x20--working-dir),\x20so\x20you\x20can\x20then\x20ask\x20for\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20task\x20as\x20a\x20UiPath\x20coded\x20workflow\x20(uipath-taskautomation\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20skill).\x20The\x20log\x20holds\x20on-screen\x20text\x20and\x20your\x20requests;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20typed\x20values\x20are\x20masked.\x20Needs\x20computer\x20use.\x20Ignored\x20with\x20a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20warning\x20where\x20the\x20deployment\x20does\x20not\x20offer\x20it\x20yet\x0a\x20\x20--attach\x20PATH\x20\x20\x20\x20\x20File\x20or\x20folder\x20sent\x20with\x20the\x20first\x20message\x20(repeatable),\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20as\x20the\x20Delegate\x20app\x20sends\x20attached\x20files:\x20images\x20inline,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20PDFs\x20and\x20other\x20documents\x20as\x20a\x20path\x20the\x20agent\x20reads,\x20text\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20inline\x20up\x20to\x2016,000\x20characters.\x2030\x20MiB\x20per\x20message\x20in\x20all;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20larger\x20files\x20go\x20as\x20a\x20path.\x20In\x20a\x20conversation,\x20later\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20messages\x20carry\x20none\x20of\x20their\x20own,\x20but\x20the\x20first\x20message\x27s\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20stay\x20in\x20context\x0a\x20\x20--preload-skill\x20NAME\x20\x20Preload\x20a\x20skill\x20into\x20the\x20session\x20(repeatable).\x20The\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20skill\x27s\x20content\x20is\x20attached\x20before\x20the\x20first\x20model\x20turn\x20—\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20same\x20mechanism\x20as\x20project\x20preloaded\x20skills\x20in\x20the\x20app\x0a\x20\x20--cartographer\x20\x20\x20\x20Cartographer\x20engagement\x20preset.\x20Equivalent\x20to\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--no-computer-use\x20--preload-skill\x20business-analysis\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--preload-skill\x20project-task-list\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--preload-skill\x20knowledge-base.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Add\x20--project/--working-dir\x20for\x20where\x20the\x20files\x20live,\x20and\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20extra\x20--preload-skill\x20flags\x20for\x20more\x20skills\x20—\x20a\x20skill\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20preset\x20already\x20covers\x20is\x20not\x20preloaded\x20twice.\x20An\x20explicit\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--headless\x20still\x20wins\x20and\x20turns\x20interop\x20off\x0a\x20\x20--project\x20ID\x20\x20\x20\x20\x20\x20Route\x20the\x20session\x27s\x20local\x20wiki\x20and\x20plans\x20to\x20a\x20project\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(<working-dir>/projects/<ID>/wiki).\x20Client-side\x20key\x20only\x0a\x20\x20--working-dir\x20PATH\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Shell\x20cwd\x20for\x20the\x20agent\x20and\x20root\x20for\x20SDK-local\x20state.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Relative\x20paths\x20resolve\x20against\x20the\x20current\x20directory;\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20directory\x20is\x20created\x20if\x20missing\x0a\x20\x20--skills-path\x20PATH\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Folder\x20of\x20custom\x20skills,\x20loaded\x20on\x20top\x20of\x20the\x20skills\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20package\x20ships;\x20wins\x20on\x20a\x20name\x20clash\x20(also:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20DELEGATE_BUNDLED_SKILLS_PATH)\x0a\x20\x20--effort\x20TIER\x20\x20\x20\x20\x20Reasoning\x20effort:\x20low\x20|\x20medium\x20|\x20high\x20|\x20xhigh\x20|\x20max.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default:\x20the\x20model\x27s\x20recommended\x20tier\x0a\x20\x20--session\x20ID\x20\x20\x20\x20\x20\x20Continue\x20an\x20existing\x20backend\x20session\x20(an\x20unknown\x20id\x20exits\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x201;\x20the\x20backend\x20assigns\x20new\x20ids).\x20For\x20complete:\x20the\x20session\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20whose\x20history\x20is\x20the\x20context\x0a\x20\x20--json-schema\x20FILE\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20JSON\x20schema\x20the\x20structured\x20answer\x20must\x20match\x20(complete,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20and\x20prompts:\x20implies\x20--print)\x0a\x20\x20--runner-url\x20URL\x20\x20(host)\x20Runner\x20worker\x20WS\x20URL.\x20Required;\x20or\x20CONTROL_PLANE_WS_URL\x20env\x0a\x20\x20--interop\x20PATH\x20\x20\x20\x20(host)\x20Interop\x20binary\x20path;\x20or\x20INTEROP_EXECUTABLE_PATH\x20env.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Absent\x20→\x20registration/discovery\x20only,\x20tool\x20execution\x20disabled\x0a\x20\x20--worker-id\x20ID\x20\x20\x20\x20(host)\x20Stable\x20worker\x20identity;\x20or\x20WORKER_ID\x20env.\x20Default:\x20hostname\x0a\x20\x20--page\x20N\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(sessions)\x20Page\x20to\x20show,\x20from\x201.\x20Default:\x201\x0a\x20\x20--limit\x20N\x20\x20\x20\x20\x20\x20\x20\x20\x20(sessions)\x20Rows\x20per\x20page,\x201-100.\x20Default:\x2030\x0a\x20\x20--include-subagents\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(sessions)\x20Also\x20list\x20sub-agent\x20sessions,\x20hidden\x20by\x20default\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20as\x20in\x20the\x20desktop\x20app\x27s\x20history\x0a\x20\x20--to\x20WHO\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(delegations\x20create)\x20Assign\x20to\x20this\x20person:\x20an\x20email,\x20or\x20a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20name\x20that\x20matches\x20exactly\x20one\x20colleague\x20(see\x20org-users)\x0a\x20\x20--summary\x20TEXT\x20\x20\x20\x20(delegations\x20create)\x20The\x20briefing\x20the\x20person\x20starts\x20from.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default:\x20empty,\x20for\x20a\x20task\x20that\x20stands\x20on\x20its\x20own\x0a\x20\x20--output-format\x20FMT\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20text\x20(default)\x20|\x20json\x20|\x20stream-json.\x20json\x20prints\x20one\x20result\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20object\x20on\x20exit;\x20stream-json\x20prints\x20every\x20agent\x20event\x20as\x20one\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20JSON\x20line,\x20then\x20the\x20result.\x20Both\x20keep\x20stdout\x20JSON-only\x20(logs,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20progress\x20and\x20the\x20session\x20id\x20go\x20to\x20stderr),\x20imply\x20--print,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20and\x20exit\x201\x20when\x20the\x20turn\x20ends\x20in\x20error.\x20Also\x20honoured\x20by\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20every\x20subcommand\x20that\x20prints\x20a\x20result\x20(all\x20but\x20login,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20logout,\x20tenant\x20and\x20host)\x0a\x20\x20-q,\x20--quiet\x20\x20\x20\x20\x20\x20\x20Suppress\x20🤔\x20thinking\x20output\x20to\x20stderr\x0a\x20\x20--verbose\x20\x20\x20\x20\x20\x20\x20\x20\x20Surface\x20the\x20SDK\x27s\x20and\x20the\x20framework\x27s\x20own\x20logs.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Diagnostics\x20only,\x20on\x20stdout;\x20independent\x20of\x20-q\x0a\x20\x20-h,\x20--help\x20\x20\x20\x20\x20\x20\x20\x20Show\x20this\x20help\x0a\x20\x20-v,\x20--version\x20\x20\x20\x20\x20Print\x20the\x20installed\x20CLI\x20version\x0a\x0aConversation:\x20Enter\x20sends\x20a\x20message;\x20/exit\x20or\x20EOF\x20exits;\x20Ctrl+C\x20stops\x20and\x20exits.\x0a\x20\x20Ctrl+C\x20during\x20a\x20turn\x20cancels\x20it\x20on\x20the\x20backend\x20too;\x20a\x20second\x20Ctrl+C\x20force-exits.\x0a\x20\x20An\x20optional\x20initial\x20prompt\x20is\x20followed\x20by\x20more\x20input.\x20The\x20session\x20ID\x20is\x20printed\x0a\x20\x20to\x20stderr;\x20resume\x20later\x20with\x20--session\x20ID.\x20Redirected\x20input\x20is\x20one\x20prompt.\x0aAuth:\x20prompts\x20auto-retry\x20on\x20401\x20by\x20opening\x20the\x20browser\x20to\x20re-login\x20(TTY\x20only),\x0a\x20\x20preserving\x20the\x20active\x20session.\x0a','Licensing:\x20\x20\x20\x20','skipEnvCheck','byoWarning','--backend','--task-automation\x20applies\x20to\x20prompts\x20only.','exit','alpha','\x20(stdin\x20was\x20empty)','.\x20Use:\x20','Delegation\x20\x20\x20\x20','finish','write','\x20sessions\x20on\x20','error','--output-format\x20'];_0x305f=function(){return _0x177655;};return _0x305f();}async function Ft(_0xd14038){const _0x27c2b7=_0x2f20cb;let _0x51ed9b=_0xd14038[_0x27c2b7(0x21a)];Pt[_0x27c2b7(0x1ca)](_0x51ed9b)||(console[_0x27c2b7(0x7a)](_0x27c2b7(0x14d)+_0xd14038[_0x27c2b7(0x21a)]+'.\x20Use\x20`delegate-cli\x20usage`,\x20`usage\x20activity`\x20or\x20`usage\x20daily`.'),process[_0x27c2b7(0x72)](0x2)),_0x51ed9b===''&&_0xd14038[_0x27c2b7(0x1da)]!==void 0x0&&(console[_0x27c2b7(0x7a)]('--days\x20applies\x20to\x20`delegate-cli\x20usage\x20activity|daily`;\x20the\x20summary\x20covers\x20the\x20current\x20month.'),process[_0x27c2b7(0x72)](0x2)),_0x51ed9b!==''&&_0xd14038[_0x27c2b7(0x194)]!==void 0x0&&(console['error'](_0x27c2b7(0x9e)),process['exit'](0x2));let {client:_0x52d801}=await f(_0xd14038);if(_0x51ed9b===_0x27c2b7(0x1e1)){l(_0xd14038,await _0x66fee3(_0x52d801,{'days':_0xd14038['days']}),Mt);return;}if(_0x51ed9b===_0x27c2b7(0x17f)){l(_0xd14038,await _0x14b49a(_0x52d801,{'days':_0xd14038[_0x27c2b7(0x1da)]}),Bt);return;}let [_0x39f6ac,_0x112e6c,_0x124c81]=await Promise[_0x27c2b7(0x22b)]([_0x5a7181(_0x52d801,{'sessionId':_0xd14038[_0x27c2b7(0x194)]}),_0x306e33(_0x52d801),_0x54aca5(_0x52d801)]);l(_0xd14038,{'licensing':_0x39f6ac,'monthlySpending':_0x112e6c,'cartographerAllowance':_0x124c81},jt);}function jt(_0xbc56a){const _0x33459a=_0x2f20cb;let {licensing:_0x5f5678,monthlySpending:_0x4a7053,cartographerAllowance:_0x11f534}=_0xbc56a,_0x97ea96=[_0x5f5678[_0x33459a(0xd2)]?_0x33459a(0x236)+_0x5f5678[_0x33459a(0x11e)][_0x33459a(0xc1)](0x1)+_0x33459a(0x137)+(_0x5f5678[_0x33459a(0x1a9)]??0x0)+'\x20PU\x20used'+(_0x5f5678[_0x33459a(0x147)]>0x0?',\x20'+_0x5f5678[_0x33459a(0x147)]+'\x20PU\x20beyond\x20quota':'')+'\x20(resets\x20'+_0x5f5678[_0x33459a(0x1c1)]+')':_0x33459a(0xc5),'Spending:\x20\x20\x20\x20\x20$'+_0x4a7053[_0x33459a(0xc6)][_0x33459a(0xc1)](0x2)+_0x33459a(0x115)+(_0x4a7053[_0x33459a(0xd2)]&&_0x4a7053[_0x33459a(0x112)]!==null?_0x33459a(0x19a)+_0x4a7053[_0x33459a(0x112)][_0x33459a(0xc1)](0x2)+'\x20cap':_0x33459a(0xce)),_0x33459a(0x1a2)+_0x11f534[_0x33459a(0x95)]+'\x20('+_0x11f534[_0x33459a(0x97)]+')'];_0x5f5678[_0x33459a(0x19f)]!==null&&_0x5f5678[_0x33459a(0x19f)]!==void 0x0&&_0x97ea96[_0x33459a(0xf1)]('Session:\x20\x20\x20\x20\x20\x20'+_0x5f5678['session_consumed_pu']+_0x33459a(0x19c)),process[_0x33459a(0x11a)]['write'](_0x97ea96[_0x33459a(0x10e)]('\x0a')+'\x0a');}function Mt(_0x5d9d84){const _0x2de06a=_0x2f20cb;let _0x3e725d=[_0x2de06a(0x1e3)+_0x5d9d84['period_days']+_0x2de06a(0x1ab)+_0x5d9d84[_0x2de06a(0x164)]+_0x2de06a(0x79)+_0x5d9d84[_0x2de06a(0x12d)]+_0x2de06a(0x224),'Cost:\x20\x20\x20$'+_0x5d9d84[_0x2de06a(0x218)]['toFixed'](0x2)+'\x20(estimated\x20$'+_0x5d9d84[_0x2de06a(0xb0)][_0x2de06a(0xc1)](0x2)+_0x2de06a(0x159)+_0x5d9d84[_0x2de06a(0x1bc)]+_0x2de06a(0xa5),_0x2de06a(0x178)+_0x5d9d84['total_prompt_tokens']+_0x2de06a(0xc0)+_0x5d9d84[_0x2de06a(0xa3)]+_0x2de06a(0x184)];for(let [_0x2e058d,_0x50fe57]of Object['entries'](_0x5d9d84[_0x2de06a(0x10c)]))_0x3e725d['push']('\x20\x20'+_0x2e058d+':\x20'+_0x50fe57+_0x2de06a(0x207));process[_0x2de06a(0x11a)][_0x2de06a(0x78)](_0x3e725d[_0x2de06a(0x10e)]('\x0a')+'\x0a');}function Bt(_0x1df0b7){const _0x4c0a9c=_0x2f20cb;if(_0x1df0b7['daily_usage']['length']===0x0){process[_0x4c0a9c(0x11a)][_0x4c0a9c(0x78)](_0x4c0a9c(0x1c3)+_0x1df0b7[_0x4c0a9c(0x1af)]+_0x4c0a9c(0x108));return;}let _0x26b4f0=[_0x4c0a9c(0xdb)];for(let _0x39558f of _0x1df0b7[_0x4c0a9c(0xbd)])_0x26b4f0[_0x4c0a9c(0xf1)](_0x39558f[_0x4c0a9c(0xf8)]+'\x20\x20'+String(_0x39558f[_0x4c0a9c(0x128)])[_0x4c0a9c(0x19e)](0xb)+'\x20\x20'+String(_0x39558f[_0x4c0a9c(0x1b2)])['padStart'](0xd)+'\x20\x20'+String(_0x39558f[_0x4c0a9c(0xd9)])[_0x4c0a9c(0x19e)](0x11));process[_0x4c0a9c(0x11a)][_0x4c0a9c(0x78)](_0x26b4f0['join']('\x0a')+'\x0a');}async function Ht(_0x5eb938,_0x1eb1ea){const _0x19a164=_0x2f20cb;let _0x41ce6b=await qt(_0x5eb938[_0x19a164(0x21a)],_0x1eb1ea);_0x5eb938[_0x19a164(0x211)]&&(_0x41ce6b[_0x19a164(0x211)]=_0x5eb938[_0x19a164(0x211)]);let {client:_0x5c56b0}=await f(_0x5eb938);try{_0x1eb1ea==='evaluate'?l(_0x5eb938,await _0x56fe5f(_0x5c56b0,_0x41ce6b,void 0x0),Wt):_0x1eb1ea==='rerank'?l(_0x5eb938,await _0x4efd02(_0x5c56b0,_0x41ce6b,void 0x0),Gt):l(_0x5eb938,await _0x29198f(_0x5c56b0,_0x41ce6b,void 0x0),Kt);}catch(_0x312bf3){if(!_0x33705f(_0x312bf3))throw _0x312bf3;console[_0x19a164(0x7a)](_0x312bf3['message']),process[_0x19a164(0x72)](0x1);}}async function qt(_0x382839,_0x139a7){const _0x103d1a=_0x2f20cb;let _0x278c9f;try{_0x278c9f=_0x382839&&_0x382839!=='-'?_0x36886f[_0x103d1a(0x12a)](_0x1e896b[_0x103d1a(0xfd)](_0x382839),_0x103d1a(0xd0)):await I(_0x382839,process[_0x103d1a(0xed)]);}catch(_0x2913d3){console['error'](_0x139a7+':\x20cannot\x20read\x20the\x20request\x20('+_0x2913d3['message']+').'),process[_0x103d1a(0x72)](0x2);}return _0x278c9f||(console['error'](_0x139a7+_0x103d1a(0x150)+_0x139a7+_0x103d1a(0x13b)),process[_0x103d1a(0x72)](0x2)),de(_0x278c9f,_0x139a7,_0x103d1a(0x186));}function de(_0x2fb842,_0x1a1ee7,_0x41e1a8){const _0x336e4f=_0x2f20cb;let _0x4fa153;try{_0x4fa153=JSON[_0x336e4f(0x20c)](_0x2fb842);}catch(_0x4460e4){console[_0x336e4f(0x7a)](_0x1a1ee7+':\x20'+_0x41e1a8+'\x20is\x20not\x20valid\x20JSON\x20('+_0x4460e4[_0x336e4f(0x1ef)]+').'),process[_0x336e4f(0x72)](0x2);}return(typeof _0x4fa153!=_0x336e4f(0x1d5)||_0x4fa153===null||Array[_0x336e4f(0x17a)](_0x4fa153))&&(console[_0x336e4f(0x7a)](_0x1a1ee7+':\x20'+_0x41e1a8+_0x336e4f(0xea)),process['exit'](0x2)),_0x4fa153;}function ue(_0x573ffa,_0x240672){const _0x275213=_0x2f20cb;let _0x5d68a9;try{_0x5d68a9=_0x36886f['readFileSync'](_0x1e896b[_0x275213(0xfd)](_0x573ffa),'utf-8');}catch(_0x3e0ed3){console[_0x275213(0x7a)](_0x240672+_0x275213(0x14c)+_0x3e0ed3[_0x275213(0x1ef)]+').'),process[_0x275213(0x72)](0x2);}return de(_0x5d68a9,_0x240672,_0x275213(0x176));}async function Jt(_0x37e97f){const _0x2d1eb2=_0x2f20cb;_0x37e97f[_0x2d1eb2(0x107)]===void 0x0&&(console[_0x2d1eb2(0x7a)](_0x2d1eb2(0xdd)),process[_0x2d1eb2(0x72)](0x2));let _0xa6991c=ue(_0x37e97f[_0x2d1eb2(0x107)],'complete'),_0x27619d=(await I(_0x37e97f[_0x2d1eb2(0x21a)],process[_0x2d1eb2(0xed)]))[_0x2d1eb2(0xcf)]();_0x27619d||(console[_0x2d1eb2(0x7a)](_0x2d1eb2(0x173)),process['exit'](0x2));let {client:_0x15a5ed}=await f(_0x37e97f);try{let _0x32292a=await _0x4ef7e5(_0x15a5ed,{'prompt':_0x27619d,'jsonSchema':_0xa6991c,'model':_0x37e97f[_0x2d1eb2(0x211)]||process.env.MODEL||_0x430f39,..._0x37e97f[_0x2d1eb2(0x194)]!==void 0x0&&{'sessionId':_0x37e97f[_0x2d1eb2(0x194)]}},void 0x0);l(_0x37e97f,_0x32292a,_0x55f51a=>{const _0x39f095=_0x2d1eb2;process[_0x39f095(0x11a)]['write'](JSON[_0x39f095(0x20e)](_0x55f51a[_0x39f095(0xa4)],null,0x2)+'\x0a');});}catch(_0x1bb9d2){if(!_0xcfcdee(_0x1bb9d2))throw _0x1bb9d2;console[_0x2d1eb2(0x7a)](_0x1bb9d2[_0x2d1eb2(0x1ef)]),process[_0x2d1eb2(0x72)](0x1);}}function j(_0x3da14f){const _0x2e02d4=_0x2f20cb;process['stdout'][_0x2e02d4(0x78)](_0x2e02d4(0xf5)+_0x3da14f[_0x2e02d4(0x211)]+'\x20('+_0x3da14f['model_version']+'),\x20'+_0x3da14f[_0x2e02d4(0x130)]['total_tokens']+'\x20tokens\x0a');}function Wt(_0x2ecab){const _0x5d0bf8=_0x2f20cb;j(_0x2ecab);for(let _0x1e9f70 of Object[_0x5d0bf8(0x16f)](_0x2ecab[_0x5d0bf8(0x200)])){let _0x233237=_0x2ecab['answers'][_0x1e9f70],_0x1ea518=_0x233237[_0x5d0bf8(0x181)]==='probability'?_0x5d0bf8(0xaf)+_0x233237[_0x5d0bf8(0x209)][_0x5d0bf8(0xc1)](0x2):_0x233237['type']===_0x5d0bf8(0x160)?_0x5d0bf8(0x105)+_0x233237[_0x5d0bf8(0x160)]+_0x5d0bf8(0xee)+_0x233237[_0x5d0bf8(0x12f)]['toFixed'](0x2)+')':'score\x20'+_0x233237[_0x5d0bf8(0x9a)][_0x5d0bf8(0xc1)](0x2)+_0x5d0bf8(0xee)+_0x233237[_0x5d0bf8(0x12f)][_0x5d0bf8(0xc1)](0x2)+')';process[_0x5d0bf8(0x11a)][_0x5d0bf8(0x78)]('\x20\x20'+_0x1e9f70+':\x20'+_0x1ea518+'\x0a');}}function Gt(_0x160ba4){const _0x56f808=_0x2f20cb;j(_0x160ba4),_0x160ba4[_0x56f808(0x114)][_0x56f808(0x1bf)]((_0x24dee3,_0xd9ebab)=>{const _0x46c021=_0x56f808;process[_0x46c021(0x11a)][_0x46c021(0x78)]('\x20\x20'+(_0xd9ebab+0x1)+'.\x20'+_0x24dee3['id']+'\x20\x20'+_0x24dee3[_0x46c021(0x9a)][_0x46c021(0xc1)](0x3)+_0x46c021(0x17e)+_0x24dee3[_0x46c021(0x1ea)]+')\x0a');});}function Kt(_0x5737df){const _0x397830=_0x2f20cb;j(_0x5737df),process[_0x397830(0x11a)]['write'](_0x397830(0x120)+_0x5737df['rubric_version']+'\x0a');for(let _0x505c44 of _0x5737df['results'])process[_0x397830(0x11a)]['write']('\x20\x20'+_0x505c44['id']+':\x20'+_0x505c44[_0x397830(0x125)]+_0x397830(0xee)+_0x505c44[_0x397830(0x12f)][_0x397830(0xc1)](0x2)+')\x0a');}async function zt(_0xb26104){const _0x52e9cb=_0x2f20cb;let _0x19848d=_0xb26104[_0x52e9cb(0x21a)][_0x52e9cb(0xcf)]();_0x19848d||(console[_0x52e9cb(0x7a)](_0x52e9cb(0x1f1)),process[_0x52e9cb(0x72)](0x2));let {client:_0x1df78c}=await f(_0xb26104);try{let _0x3426a6=_0x19848d==='-'?{'data':await Vt(process[_0x52e9cb(0xed)])}:_0x19848d;l(_0xb26104,await _0x34686f(_0x1df78c,_0x3426a6,void 0x0),_0x390491=>{const _0x4ace1e=_0x52e9cb;process[_0x4ace1e(0x11a)][_0x4ace1e(0x78)](_0x390491[_0x4ace1e(0x1e8)]+'\x0a');});}catch(_0x18c8a8){if(_0x220cab(_0x18c8a8)&&(console[_0x52e9cb(0x7a)](_0x18c8a8[_0x52e9cb(0x1ef)]),process['exit'](_0x18c8a8['status']===void 0x0?0x2:0x1)),typeof _0x18c8a8?.[_0x52e9cb(0x230)]!='string')throw _0x18c8a8;console[_0x52e9cb(0x7a)](_0x52e9cb(0x1b1)+_0x19848d+'\x20('+_0x18c8a8['message']+').'),process['exit'](0x2);}}async function Vt(_0x2b1488){const _0xc4d828=_0x2f20cb;let _0x46fe2b=[];for await(let _0x27fa82 of _0x2b1488)_0x46fe2b[_0xc4d828(0xf1)](Buffer[_0xc4d828(0x214)](_0x27fa82));return Buffer[_0xc4d828(0x13f)](_0x46fe2b);}var Y=[_0x2f20cb(0x98),_0x2f20cb(0x199),_0x2f20cb(0xf0),'create',_0x2f20cb(0xb8),_0x2f20cb(0x133),_0x2f20cb(0x1f6),_0x2f20cb(0x175),_0x2f20cb(0xa8),'delete'],X={'list':_0x2f20cb(0x15b),'pending':'delegations\x20pending\x20<session-id>','show':_0x2f20cb(0x171),'create':_0x2f20cb(0x152),'claim':_0x2f20cb(0x185),'complete':_0x2f20cb(0xf7),'accept':'delegations\x20accept\x20<delegation-id>','dismiss':_0x2f20cb(0x80),'cancel':'delegations\x20cancel\x20<delegation-id>','delete':_0x2f20cb(0xc2)};async function Yt(_0x32425a){const _0x5ee90e=_0x2f20cb;let [_0x26d212='',_0x337a8d='',..._0x23ca9e]=_0x32425a[_0x5ee90e(0x226)];Y[_0x5ee90e(0x1ca)](_0x26d212)||(console[_0x5ee90e(0x7a)]((_0x26d212?_0x5ee90e(0xe4)+_0x26d212+'.\x20':'')+_0x5ee90e(0x111)+Y[_0x5ee90e(0x10e)](_0x5ee90e(0x1a3))+'.'),process[_0x5ee90e(0x72)](0x2));let _0x2ef2a4=_0x26d212;_0x2ef2a4!==_0x5ee90e(0x22d)&&(_0x32425a['delegateTo']!==void 0x0||_0x32425a[_0x5ee90e(0x109)]!==void 0x0||_0x32425a['sessionId']!==void 0x0)&&(console[_0x5ee90e(0x7a)]('--to,\x20--summary\x20and\x20--session\x20apply\x20to\x20`delegate-cli\x20delegations\x20create`\x20only.'),process[_0x5ee90e(0x72)](0x2));let _0x556d90=(_0x2ef2a4===_0x5ee90e(0x22d)?_0x32425a[_0x5ee90e(0x226)][_0x5ee90e(0x234)](0x1):_0x23ca9e)['join']('\x20')[_0x5ee90e(0xcf)](),_0x1808b3=_0x2ef2a4==='create'||_0x2ef2a4===_0x5ee90e(0x133);(_0x2ef2a4!==_0x5ee90e(0x22d)&&!_0x337a8d||(_0x1808b3?!_0x556d90:_0x556d90)||_0x2ef2a4==='create'&&!_0x32425a[_0x5ee90e(0x194)])&&(console[_0x5ee90e(0x7a)](_0x5ee90e(0x1e9)+X[_0x2ef2a4]),process[_0x5ee90e(0x72)](0x2));let _0x1d45aa=_0x1808b3&&_0x556d90==='-'?(await I('-',process[_0x5ee90e(0xed)]))[_0x5ee90e(0xcf)]():_0x556d90;_0x1808b3&&!_0x1d45aa&&(console['error'](_0x5ee90e(0x1e9)+X[_0x2ef2a4]+_0x5ee90e(0x74)),process['exit'](0x2));let {client:_0x42c626}=await f(_0x32425a);try{await Xt(_0x32425a,_0x42c626,_0x2ef2a4,_0x337a8d,_0x1d45aa);}catch(_0x458771){if(!_0x4491b1(_0x458771))throw _0x458771;console[_0x5ee90e(0x7a)](_0x458771['message']),process[_0x5ee90e(0x72)](0x1);}}async function Xt(_0xdef86,_0x274708,_0x1fe883,_0x471de7,_0xc4fb70){const _0x3bda78=_0x2f20cb;switch(_0x1fe883){case _0x3bda78(0x98):l(_0xdef86,await _0x232682(_0x274708,_0x471de7),Qt);return;case _0x3bda78(0x199):l(_0xdef86,await _0x2f33a1(_0x274708,_0x471de7),_0x182ae5=>{const _0x419d82=_0x3bda78;_0x182ae5[_0x419d82(0x21e)]&&process[_0x419d82(0x11a)][_0x419d82(0x78)](_0x419d82(0xcd)+_0x182ae5[_0x419d82(0x21e)]['id']+'\x20('+_0x182ae5['delegation']['status']+_0x419d82(0x127)),_0x182ae5[_0x419d82(0x1c8)][_0x419d82(0x113)]===0x0&&process[_0x419d82(0x81)][_0x419d82(0x78)](_0x419d82(0x1fe));for(let _0x39a534 of _0x182ae5[_0x419d82(0x1c8)])process[_0x419d82(0x11a)][_0x419d82(0x78)]('\x0a'+_0x39a534['id']+_0x419d82(0xc9)+(_0x39a534['assignedUserEmail']??_0x419d82(0x1d4))+'\x20\x20'+(_0x39a534['task']??'')+'\x0a'+(_0x39a534[_0x419d82(0x11f)]?.[_0x419d82(0xf9)]??'')+'\x0a');_0x182ae5[_0x419d82(0x1c8)][_0x419d82(0x113)]>0x0&&process['stderr'][_0x419d82(0x78)](_0x419d82(0x1a6));});return;case _0x3bda78(0xf0):l(_0xdef86,await _0x2fe7f2(_0x274708,_0x471de7),Q);return;case _0x3bda78(0x22d):{let _0x2e2943=await _0x1bc955(_0x274708,{'sessionId':_0xdef86[_0x3bda78(0x194)],'task':_0xc4fb70,..._0xdef86[_0x3bda78(0x109)]!==void 0x0&&{'contextSummary':_0xdef86[_0x3bda78(0x109)]},..._0xdef86['delegateTo']!==void 0x0&&{'recipient':_0xdef86[_0x3bda78(0x15d)]}});l(_0xdef86,_0x2e2943,_0x5da38c=>{const _0x31f572=_0x3bda78;_0x5da38c[_0x31f572(0x1b7)]?process['stdout'][_0x31f572(0x78)](_0x31f572(0xdc)+_0x5da38c[_0x31f572(0x1ed)]+_0x31f572(0xc4)+_0x5da38c[_0x31f572(0x1b7)][_0x31f572(0x1d3)]+'\x20<'+_0x5da38c[_0x31f572(0x1b7)][_0x31f572(0x14f)]+'>.\x0a'):process['stdout'][_0x31f572(0x78)]('Created\x20delegation\x20'+_0x5da38c['delegationId']+'.\x20Share:\x20'+_0x5da38c['deepLink']+'\x0a');});return;}case'claim':{let _0x2c69e1=await _0x248527(_0x274708,_0x471de7);l(_0xdef86,_0x2c69e1,_0x4d64da=>{const _0x14cdbf=_0x3bda78;Q(_0x4d64da),process[_0x14cdbf(0x11a)][_0x14cdbf(0x78)](_0x14cdbf(0xcb)+_0x4d64da[_0x14cdbf(0x194)]+'\x0a'),process[_0x14cdbf(0x81)][_0x14cdbf(0x78)](_0x14cdbf(0x19d)+_0x4d64da[_0x14cdbf(0x194)]+_0x14cdbf(0xae)+_0x4d64da['delegationId']+_0x14cdbf(0x12c));});return;}case'complete':{let {alreadyCompleted:_0x530111}=await _0x5afd85(_0x274708,_0x471de7,{'content':_0xc4fb70});l(_0xdef86,{'delegationId':_0x471de7,'alreadyCompleted':_0x530111},_0x187d97=>{const _0x2d4e07=_0x3bda78;process['stdout']['write']((_0x187d97[_0x2d4e07(0x1cb)]?_0x2d4e07(0x168):_0x2d4e07(0x122))+'\x20delegation\x20'+_0x187d97[_0x2d4e07(0x1ed)]+'.\x0a');});return;}case _0x3bda78(0x1f6):{let _0xb7a040=await _0x1bbee4(_0x274708,_0x471de7);l(_0xdef86,{'delegationId':_0x471de7,..._0xb7a040},_0x36bdb7=>{const _0x217517=_0x3bda78;process['stdout'][_0x217517(0x78)]((_0x36bdb7[_0x217517(0x144)]?_0x217517(0xbf):'Accepted')+_0x217517(0x210)+_0x36bdb7[_0x217517(0x1ed)]+'.\x0a');});return;}default:{let _0x4a126b={'dismiss':_0x525c59,'cancel':_0xc1da10,'delete':_0x42c43c}[_0x1fe883];await _0x4a126b(_0x274708,_0x471de7);let _0x2058f1={'dismiss':_0x3bda78(0x14a),'cancel':'cancelled','delete':_0x3bda78(0x1b6)}[_0x1fe883];l(_0xdef86,{'delegationId':_0x471de7,[_0x2058f1]:!0x0},()=>{const _0x410bbf=_0x3bda78;process[_0x410bbf(0x11a)][_0x410bbf(0x78)](''+_0x2058f1[0x0][_0x410bbf(0x1d7)]()+_0x2058f1[_0x410bbf(0x234)](0x1)+'\x20delegation\x20'+_0x471de7+'.\x0a');});}}}function Qt(_0x364745){const _0x5e0090=_0x2f20cb;if(_0x364745[_0x5e0090(0x113)]===0x0){process[_0x5e0090(0x81)][_0x5e0090(0x78)](_0x5e0090(0xf4));return;}process[_0x5e0090(0x11a)][_0x5e0090(0x78)]('ID'[_0x5e0090(0x20f)](0x24)+'\x20\x20'+'STATUS'[_0x5e0090(0x20f)](0x9)+'\x20\x20'+_0x5e0090(0x16a)[_0x5e0090(0x20f)](0x18)+'\x20\x20TASK\x0a');for(let _0x269303 of _0x364745)process[_0x5e0090(0x11a)][_0x5e0090(0x78)](_0x269303['id']['padEnd'](0x24)+'\x20\x20'+_0x269303['status'][_0x5e0090(0x20f)](0x9)+'\x20\x20'+(_0x269303[_0x5e0090(0x172)]??'-')[_0x5e0090(0x20f)](0x18)+'\x20\x20'+(_0x269303[_0x5e0090(0x189)]??'')+'\x0a');}function Q(_0x57cabd){const _0x252bfa=_0x2f20cb;process[_0x252bfa(0x11a)][_0x252bfa(0x78)]('From\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x57cabd[_0x252bfa(0x15e)]??'-')+'\x0a'),_0x57cabd['sourceTitle']&&process[_0x252bfa(0x11a)]['write'](_0x252bfa(0xcb)+_0x57cabd['sourceTitle']+'\x0a'),process[_0x252bfa(0x11a)]['write'](_0x252bfa(0x158)+(_0x57cabd[_0x252bfa(0x189)]??'-')+'\x0a'),_0x57cabd[_0x252bfa(0x109)]&&process[_0x252bfa(0x11a)][_0x252bfa(0x78)]('\x0a'+_0x57cabd[_0x252bfa(0x109)]+'\x0a\x0a');}async function Zt(_0x7bc2c2){const _0x57284d=_0x2f20cb;_0x7bc2c2['prompt']['trim']()||(console[_0x57284d(0x7a)](_0x57284d(0x99)),process[_0x57284d(0x72)](0x2));let {client:_0x27c8d9}=await f(_0x7bc2c2),_0xf8315;try{_0xf8315=await _0x38ac26(_0x27c8d9,_0x7bc2c2[_0x57284d(0x21a)]);}catch(_0x37545a){if(!_0x4491b1(_0x37545a))throw _0x37545a;console['error'](_0x37545a[_0x57284d(0x1ef)]),process[_0x57284d(0x72)](0x1);}l(_0x7bc2c2,_0xf8315,_0x2b73d4=>{const _0x433410=_0x57284d;_0x2b73d4[_0x433410(0x113)]===0x0&&process['stderr'][_0x433410(0x78)](_0x433410(0x124)+_0x7bc2c2[_0x433410(0x21a)][_0x433410(0xcf)]()+_0x433410(0x85));for(let _0x33beb7 of _0x2b73d4)process[_0x433410(0x11a)][_0x433410(0x78)](_0x33beb7[_0x433410(0x14f)][_0x433410(0x20f)](0x20)+'\x20\x20'+_0x33beb7['displayName']+'\x0a');});}async function en(_0x155521){const _0x4ba996=_0x2f20cb;_0x155521[_0x4ba996(0x7d)]==='localhost'&&(console['error'](_0x4ba996(0xba)),process[_0x4ba996(0x72)](0x2));let _0x3a2863=$(_0x304046()),_0x4f74d6=_0x155521[_0x4ba996(0x6e)];if(_0x155521[_0x4ba996(0x7d)]){let _0xeb547c=_0x155521['env'];await _0xd84d9d({'env':_0xeb547c,'tenant':_0x155521[_0x4ba996(0x187)]??C(_0x3a2863,_0x15eee7[_0xeb547c]),'skipEnvCheck':_0x4f74d6});return;}let _0x4290a6=_0x155521[_0x4ba996(0xb3)]??ce();if(_0x4290a6){await _0xd84d9d({'baseUrl':_0x4290a6,'tenant':_0x155521['tenant']??C(_0x3a2863,_0x4290a6),'skipEnvCheck':_0x4f74d6});return;}if(_0x3a2863?.[_0x4ba996(0xd3)]){await _0xd84d9d({'baseUrl':_0x3a2863[_0x4ba996(0xd3)],'tenant':_0x155521['tenant']??_0x3a2863[_0x4ba996(0x163)],'skipEnvCheck':_0x4f74d6});return;}console[_0x4ba996(0x7a)](_0x4ba996(0x20a)),process[_0x4ba996(0x72)](0x2);}function C(_0x532f76,_0x2e1ffd){const _0x199a08=_0x2f20cb;return _0x532f76?.[_0x199a08(0xd3)]&&tn(_0x532f76[_0x199a08(0xd3)],_0x2e1ffd)?_0x532f76[_0x199a08(0x163)]:void 0x0;}function tn(_0x1bca4e,_0x2b4acd){const _0xf45c0a=_0x2f20cb;try{return new URL(_0x1bca4e)['origin']===new URL(_0x2b4acd)[_0xf45c0a(0xff)];}catch{return!0x1;}}async function nn(_0x7b16b){const _0x489643=_0x2f20cb;O()&&(console[_0x489643(0x7a)](_0x489643(0x18b)),process[_0x489643(0x72)](0x2));let _0x36d658=await _0x178730();if(_0x36d658||(console[_0x489643(0x7a)](on()),process['exit'](0x2)),_0x7b16b[_0x489643(0xcf)]()){let _0x559084=await _0x3e1591(_0x36d658,_0x7b16b);_0x5a57e3(_0x559084)||(console[_0x489643(0x7a)](_0x489643(0xe8)+_0x304046()+_0x489643(0xc3)+_0x36d658[_0x489643(0x163)]+'.'),process[_0x489643(0x72)](0x1)),console[_0x489643(0x104)]('Tenant:\x20'+_0x559084[_0x489643(0x163)]+'\x20('+_0x559084['tenantId']+_0x489643(0x1ac)+_0x304046());return;}sn(await _0x5a8e5a(_0x36d658),_0x36d658);}function on(){const _0x1d6d5c=_0x2f20cb;if(_0x36886f['existsSync'](_0x304046()))return _0x1d6d5c(0x1ee);let _0x2bd5e0=L();return $(_0x2bd5e0)?_0x1d6d5c(0xec)+_0x2bd5e0+',\x20whose\x20tenant\x20is\x20chosen\x20in\x20the\x20app.\x20Run\x20`delegate-cli\x20login\x20--env\x20<env>`\x20for\x20a\x20CLI\x20login\x20of\x20your\x20own.':_0x1d6d5c(0x1d9);}function sn(_0x41c217,_0x56db01){const _0x3dba50=_0x2f20cb;let _0x1eb9c2=_0x41c217[_0x3dba50(0x1ad)](_0x3f99af=>_0x3f99af['id']===_0x56db01[_0x3dba50(0xa9)]?'*\x20'+_0x3f99af['name']+_0x3dba50(0x1e5):'\x20\x20'+_0x3f99af[_0x3dba50(0x140)]);process[_0x3dba50(0x11a)][_0x3dba50(0x78)](_0x3dba50(0x166)+(_0x56db01[_0x3dba50(0x212)]??_0x56db01[_0x3dba50(0x7e)])+':\x0a'+_0x1eb9c2[_0x3dba50(0x10e)]('\x0a')+'\x0a'),_0x41c217[_0x3dba50(0x113)]>0x1&&process[_0x3dba50(0x11a)][_0x3dba50(0x78)](_0x3dba50(0x1c9));}function rn(_0x1ed462){const _0x56cbeb=_0x2f20cb;return _0x1ed462?.[_0x56cbeb(0x20b)]?.[_0x56cbeb(0x13a)]===0x191||/401/[_0x56cbeb(0x13c)](String(_0x1ed462?.[_0x56cbeb(0x1ef)]??''));}var d={'lastType':null,'quiet':!0x1},an=_0x495ff7=>{const _0x2ad32e=_0x2f20cb;switch(_0x495ff7[_0x2ad32e(0x181)]){case _0x2ad32e(0x169):_0x495ff7[_0x2ad32e(0x194)]&&_0x495ff7[_0x2ad32e(0x194)]!==d[_0x2ad32e(0x194)]&&(process[_0x2ad32e(0x81)][_0x2ad32e(0x78)](_0x2ad32e(0x151)+_0x495ff7[_0x2ad32e(0x194)]+_0x2ad32e(0x88)+_0x495ff7[_0x2ad32e(0x194)]+')\x0a'),d[_0x2ad32e(0x194)]=_0x495ff7[_0x2ad32e(0x194)]);break;case'turn_start':_0x495ff7[_0x2ad32e(0x1fd)]&&_0x495ff7[_0x2ad32e(0x1fd)]!==d[_0x2ad32e(0x1fd)]&&(d[_0x2ad32e(0x21b)]!==null&&process[_0x2ad32e(0x81)]['write']('\x0a'),process['stderr']['write']('Turn:\x20'+_0x495ff7[_0x2ad32e(0x1fd)]+_0x2ad32e(0x1f2)+_0x495ff7['sessionId']+_0x2ad32e(0x1cd)+_0x495ff7[_0x2ad32e(0x1fd)]+')\x0a'),d['turnId']=_0x495ff7['turnId'],d[_0x2ad32e(0x21b)]='turn_start');break;case'thinking':_0x495ff7[_0x2ad32e(0xf9)]&&!d[_0x2ad32e(0xef)]&&(d[_0x2ad32e(0x21b)]!=='thinking'&&process[_0x2ad32e(0x81)][_0x2ad32e(0x78)](_0x2ad32e(0xb7)),process[_0x2ad32e(0x81)][_0x2ad32e(0x78)](_0x495ff7[_0x2ad32e(0xf9)]),d[_0x2ad32e(0x21b)]=_0x2ad32e(0x1cf));break;case _0x2ad32e(0xa0):d[_0x2ad32e(0x21b)]!==null&&process[_0x2ad32e(0x81)][_0x2ad32e(0x78)]('\x0a'),process[_0x2ad32e(0x81)][_0x2ad32e(0x78)](_0x2ad32e(0xdf)+(_0x495ff7[_0x2ad32e(0x180)]??_0x2ad32e(0xd1))+'\x0a'),d[_0x2ad32e(0x21b)]=_0x2ad32e(0xa0);break;case _0x2ad32e(0x1ef):_0x495ff7['content']&&(d[_0x2ad32e(0x21b)]!==_0x2ad32e(0x1ef)&&d['lastType']!==null&&process['stdout'][_0x2ad32e(0x78)]('\x0a'),process[_0x2ad32e(0x11a)][_0x2ad32e(0x78)](_0x495ff7[_0x2ad32e(0xf9)]),d['lastType']=_0x2ad32e(0x1ef));break;case'error':d[_0x2ad32e(0x21b)]!==null&&process[_0x2ad32e(0x81)][_0x2ad32e(0x78)]('\x0a'),process[_0x2ad32e(0x81)][_0x2ad32e(0x78)]('✗\x20'+(_0x495ff7[_0x2ad32e(0x7a)]??_0x2ad32e(0x7a))+'\x0a'),d[_0x2ad32e(0x21b)]=_0x2ad32e(0x7a);break;case _0x2ad32e(0x1c6):(d[_0x2ad32e(0x21b)]==='message'||d['lastType']===_0x2ad32e(0x1cf))&&process[_0x2ad32e(0x11a)][_0x2ad32e(0x78)]('\x0a'),process['stderr'][_0x2ad32e(0x78)](_0x2ad32e(0x142)),d[_0x2ad32e(0x21b)]=_0x2ad32e(0x1c6);break;}};function Z(_0x33a4e6,_0x1faa53,_0x106891){const _0x17e8a7=_0x2f20cb;let _0x4de289=_0x33a4e6['model']||process.env.MODEL;return{'backendUrl':_0x106891,'auth':_0x1faa53,'enableComputerUse':!_0x33a4e6[_0x17e8a7(0x100)]&&!_0x33a4e6[_0x17e8a7(0x11b)],'autoSpawnInterop':!_0x33a4e6[_0x17e8a7(0x100)],'enableConnections':!_0x33a4e6[_0x17e8a7(0xb5)],'enableSecurity':!_0x33a4e6['noSecurity'],'keepInteropAlive':_0x33a4e6[_0x17e8a7(0x102)],..._0x33a4e6[_0x17e8a7(0x12e)]?{'enableMemory':!0x1}:{},..._0x33a4e6['taskAutomation']?{'enableTaskAutomation':!0x0}:{},..._0x33a4e6[_0x17e8a7(0x165)][_0x17e8a7(0x113)]>0x0?{'preloadSkills':_0x33a4e6[_0x17e8a7(0x165)]}:{},..._0x4de289?{'model':_0x4de289}:{},..._0x33a4e6[_0x17e8a7(0x1de)]?{'projectId':_0x33a4e6[_0x17e8a7(0x1de)]}:{},..._0x33a4e6[_0x17e8a7(0x22c)]?{'workingDirectory':_0x33a4e6[_0x17e8a7(0x22c)]}:{},..._0x33a4e6[_0x17e8a7(0x155)]?{'bundledSkillsPath':_0x33a4e6[_0x17e8a7(0x155)]}:{},..._0x33a4e6['effort']?{'effort':_0x33a4e6[_0x17e8a7(0xab)]}:{},..._0x33a4e6[_0x17e8a7(0x194)]?{'sessionId':_0x33a4e6[_0x17e8a7(0x194)]}:{},..._0x33a4e6[_0x17e8a7(0x1eb)]?{'verbose':!0x0}:{}};}async function ln(_0x2cbda4){const _0x1bc497=_0x2f20cb;let _0x2ab314=_0x2cbda4[_0x1bc497(0x84)]!==_0x1bc497(0x1e8),_0x162fba=_0x2cbda4[_0x1bc497(0x107)]===void 0x0?null:ue(_0x2cbda4[_0x1bc497(0x107)],_0x1bc497(0x232)),_0x3aa106=!_0x2ab314&&!_0x162fba&&!_0x2cbda4[_0x1bc497(0x204)]&&_0x2cbda4[_0x1bc497(0x21a)]!=='-'&&!!process[_0x1bc497(0xed)][_0x1bc497(0xe2)]&&!!process[_0x1bc497(0x11a)][_0x1bc497(0xe2)],_0x5e89f6=_0x3aa106?_0x2cbda4[_0x1bc497(0x21a)][_0x1bc497(0xcf)]():await I(_0x2cbda4[_0x1bc497(0x21a)],process[_0x1bc497(0xed)]);if(!_0x3aa106&&!_0x5e89f6&&(console['error'](_0x1bc497(0x191)),process[_0x1bc497(0x72)](0x2)),!_0x2ab314){await ee(_0x2cbda4,_0x5e89f6,_0x3aa106,null,_0x162fba);return;}let _0x42efe4=!0x1,_0x70165c=_0x23cec5=>{const _0x44a5da=_0x1bc497;_0x42efe4=!0x0,S(_0x1fe9bb(_0x23cec5)),(_0x23cec5[_0x44a5da(0x1e0)]||_0x23cec5[_0x44a5da(0x10a)])&&(process['exitCode']=0x1);},_0x2eb34a=Date[_0x1bc497(0x129)]();try{await ee(_0x2cbda4,_0x5e89f6,!0x1,_0x70165c,_0x162fba);}catch(_0x5b8797){if(_0x42efe4)throw _0x5b8797;process[_0x1bc497(0x81)][_0x1bc497(0x78)]((_0x5b8797 instanceof Error?_0x5b8797['stack']??_0x5b8797[_0x1bc497(0x1ef)]:String(_0x5b8797))+'\x0a'),_0x70165c(new _0x51dd4f(_0x2eb34a)[_0x1bc497(0x77)]({'endedAtMs':Date[_0x1bc497(0x129)](),'usage':[],'error':_0x5b8797}));}}async function ee(_0x541eb5,_0x206d1c,_0x1c79d0,_0x53744b,_0x275522){const _0x3982a4=_0x2f20cb;d={'lastType':null,'quiet':_0x541eb5['quiet']};let _0x4096cf=new Set(),_0x22c35d=_0x3d6fce=>{const _0x403f85=_0x5423;(!_0x53744b||_0x3d6fce[_0x403f85(0x181)]===_0x403f85(0x169)||_0x3d6fce[_0x403f85(0x181)]===_0x403f85(0x90))&&an(_0x3d6fce);for(let _0x30c9e6 of _0x4096cf)_0x30c9e6(_0x3d6fce);},_0x427507=await P(),_0x582e32=new _0x44552c();_0x582e32[_0x3982a4(0x14e)](_0x22c35d);let _0x41e697=_0x4a19c1(_0x541eb5['env'],_0x427507,_0x541eb5[_0x3982a4(0x135)]);F(_0x541eb5['env'],_0x541eb5['backendUrl'],_0x41e697);let _0x3ca199=Z(_0x541eb5,_0x427507,_0x41e697),_0x368392=!0x1,_0x3006fa=!0x1,_0x24438e,_0x16ba5a=()=>_0x24438e??=_0x582e32['destroy'](),_0x2ab8f9=()=>{const _0x346042=_0x3982a4;_0x3006fa&&process[_0x346042(0x72)](0x82),_0x3006fa=!0x0,process['stderr'][_0x346042(0x78)](_0x346042(0x196)),_0x368392&&_0x582e32[_0x346042(0xa8)]()[_0x346042(0xe5)](_0x279b54=>console['error'](_0x279b54))[_0x346042(0x89)](_0x16ba5a)[_0x346042(0x89)](()=>process[_0x346042(0x72)](0x82),_0x2c8730=>{const _0x50cf84=_0x346042;console[_0x50cf84(0x7a)](_0x2c8730),process[_0x50cf84(0x72)](0x82);});};process['on'](_0x3982a4(0x9c),_0x2ab8f9);let _0x1f0569=_0x541eb5[_0x3982a4(0xaa)],_0x59b7bd=async _0x3933de=>{const _0x2a19e3=_0x3982a4;let _0x44cb6c=_0x1f0569;_0x1f0569=[];let _0x4ec467=()=>_0x582e32[_0x2a19e3(0x149)](_0x3933de,{'attachments':_0x44cb6c});try{return await _0x4ec467();}catch(_0x18a28e){if(_0x3006fa||!rn(_0x18a28e)||!process[_0x2a19e3(0xed)][_0x2a19e3(0xe2)]||_0x541eb5['env']==='localhost'||!(_0x541eb5[_0x2a19e3(0x7d)]||_0x427507[_0x2a19e3(0xd3)]))throw _0x18a28e;process['stderr'][_0x2a19e3(0x78)]('\x0a⚠️\x20\x20Auth\x20expired.\x20Opening\x20browser\x20to\x20re-login…\x0a');let _0x5e68d8=_0x582e32[_0x2a19e3(0xb1)]()??_0x541eb5[_0x2a19e3(0x194)],_0x5bed32=await _0xd84d9d(_0x541eb5['env']?{'env':_0x541eb5[_0x2a19e3(0x7d)],'tenant':C(_0x427507,_0x15eee7[_0x541eb5[_0x2a19e3(0x7d)]]),'skipEnvCheck':!0x0}:{'baseUrl':_0x427507['baseUrl'],'tenant':_0x427507[_0x2a19e3(0x163)],'skipEnvCheck':!0x0}),_0x55d639={'text':'','failed':!0x1,'sessionId':_0x5e68d8};return _0x3006fa||(_0x368392=!0x1,await _0x16ba5a(),_0x3006fa)?_0x55d639:(_0x582e32=new _0x44552c(),_0x24438e=void 0x0,_0x582e32['onEvent'](_0x22c35d),_0x427507=_0x5bed32,await _0x582e32[_0x2a19e3(0x192)]({...Z(_0x541eb5,_0x427507,_0x41e697),..._0x5e68d8?{'sessionId':_0x5e68d8}:{}}),_0x368392=!0x0,_0x3006fa?_0x55d639:_0x4ec467());}};try{if(await _0x582e32[_0x3982a4(0x192)](_0x3ca199),_0x368392=!0x0,_0x3006fa)return;if(_0x1c79d0)await un({'prompt':_0x206d1c,'sendMessage':_0x59b7bd,'onSigint':_0x2ab8f9});else{if(_0x53744b||_0x275522){let _0x256570=_0x541eb5['outputFormat']===_0x3982a4(0xb2)?_0x13911e=>S(_0x336906(_0x13911e)):()=>{},_0x3b272a=await _0x252ac4({'onEvent':_0x11a1ca=>(_0x4096cf['add'](_0x11a1ca),()=>{const _0x564680=_0x3982a4;_0x4096cf[_0x564680(0xd5)](_0x11a1ca);}),'sendMessage':_0x4a9fb6=>_0x59b7bd(_0x4a9fb6),'getSessionId':()=>_0x582e32[_0x3982a4(0xb1)](),'getTurnUsageHistory':_0x5cce0b=>_0x582e32[_0x3982a4(0x1c0)](_0x5cce0b),'complete':_0x580b23=>_0x582e32['complete'](_0x580b23)},_0x206d1c,void 0x0,_0x256570,_0x275522?{'outputSchema':_0x275522}:void 0x0);_0x53744b?_0x53744b(_0x3b272a):cn(_0x3b272a);}else await _0x59b7bd(_0x206d1c);}}catch(_0x333b80){if(!_0x3006fa)throw _0x333b80;}finally{try{await _0x16ba5a();}finally{process[_0x3982a4(0x96)]('SIGINT',_0x2ab8f9),_0x3006fa&&(process['exitCode']=0x82);}}}function cn(_0x4b1399){const _0x10f49=_0x2f20cb;_0x4b1399[_0x10f49(0x10a)]?(console[_0x10f49(0x7a)]('Structured\x20output\x20failed:\x20'+_0x4b1399[_0x10f49(0x10a)][_0x10f49(0x1ef)]),process[_0x10f49(0x10b)]=0x1):_0x4b1399['isError']?(console[_0x10f49(0x7a)](_0x10f49(0x10d)+_0x4b1399['error']+').'),process[_0x10f49(0x10b)]=0x1):process['stdout'][_0x10f49(0x78)](JSON[_0x10f49(0x20e)](_0x4b1399[_0x10f49(0xa4)],null,0x2)+'\x0a');}function dn(_0x500f85,_0x4a4937){const _0x21f799=_0x2f20cb;let _0x4dcd0b=process[_0x21f799(0x11a)][_0x21f799(0x78)][_0x21f799(0xb6)](process[_0x21f799(0x11a)]),_0x28cb47=!0x1;return process[_0x21f799(0x11a)][_0x21f799(0x78)]=(..._0x5dd3a4)=>{const _0x5e1791=_0x21f799;if(!_0x28cb47)return _0x4dcd0b(..._0x5dd3a4);_0x147f30(_0x4a4937,0x0),_0x3cf289(_0x4a4937,0x0);let _0x5d5375=_0x4dcd0b(..._0x5dd3a4);return _0x500f85[_0x5e1791(0x21a)](!0x0),_0x5d5375;},{'show':()=>{const _0x40980f=_0x21f799;_0x28cb47=!0x0,_0x500f85[_0x40980f(0x21a)]();},'hide':()=>{_0x28cb47=!0x1;},'restore':()=>{const _0xbfb432=_0x21f799;_0x28cb47=!0x1,process[_0xbfb432(0x11a)][_0xbfb432(0x78)]=_0x4dcd0b;}};}async function un({prompt:_0x390c4a,sendMessage:_0x3e2d32,onSigint:_0xb35c27}){const _0xe6a35e=_0x2f20cb;let _0x3a7938=_0xf3357e({'input':process[_0xe6a35e(0xed)],'output':process['stderr'],'terminal':!0x0,'prompt':_0xe6a35e(0x9f)}),_0x292d42=dn(_0x3a7938,process[_0xe6a35e(0x81)]),_0x266e5c=_0x3a7938[Symbol[_0xe6a35e(0x21f)]](),_0x23f41d=!0x1;_0x3a7938[_0xe6a35e(0x1d0)](_0xe6a35e(0x1f5),()=>{const _0x2b4da8=_0xe6a35e;_0x23f41d=!0x0,_0x292d42[_0x2b4da8(0x132)]();});let _0x53fbda=!0x1,_0x22469d=()=>{const _0x11a619=_0xe6a35e;_0x53fbda=!0x0,_0x3a7938[_0x11a619(0x1f5)](),_0xb35c27();};_0x3a7938['on'](_0xe6a35e(0x9c),_0x22469d),process['stderr'][_0xe6a35e(0x78)](_0xe6a35e(0x22a));try{if(_0x390c4a&&await _0x3e2d32(_0x390c4a),_0x53fbda)return;_0x23f41d||_0x292d42[_0xe6a35e(0xf0)]();for await(let _0x3c559d of _0x266e5c){if(_0x292d42[_0xe6a35e(0x132)](),_0x53fbda)break;let _0x198e22=_0x3c559d[_0xe6a35e(0xcf)]();if(_0x198e22==='/exit')break;_0x198e22&&await _0x3e2d32(_0x198e22),_0x23f41d||_0x292d42[_0xe6a35e(0xf0)]();}}finally{_0x292d42[_0xe6a35e(0x195)](),_0x3a7938[_0xe6a35e(0x96)](_0xe6a35e(0x9c),_0x22469d),_0x3a7938[_0xe6a35e(0x1f5)]();}}async function pn(){const _0x4b8344=_0x2f20cb;let _0x3fcf21=ht(process[_0x4b8344(0x131)][_0x4b8344(0x234)](0x2));if(_0x3fcf21[_0x4b8344(0x84)]===_0x4b8344(0x1e8)){await te(_0x3fcf21);return;}let _0x530f91=gt();try{await te(_0x3fcf21);}finally{_0x530f91();}}async function te(_0x350f5d){const _0x4d66d5=_0x2f20cb;if(_0x350f5d[_0x4d66d5(0x20d)]){wt();return;}if(_0x350f5d[_0x4d66d5(0x1fc)]){console[_0x4d66d5(0x104)](yt());return;}if(_0x350f5d['subcommand']===_0x4d66d5(0x1a8)){await en(_0x350f5d);return;}if(_0x350f5d[_0x4d66d5(0x16d)]===_0x4d66d5(0x187)){await nn(_0x350f5d[_0x4d66d5(0x21a)]);return;}if(_0x350f5d[_0x4d66d5(0x16d)]==='logout'){await vt();return;}if(_0x350f5d[_0x4d66d5(0x16d)]===_0x4d66d5(0x9b)){await At(_0x350f5d);return;}if(_0x350f5d['subcommand']===_0x4d66d5(0x225)){await Tt(_0x350f5d);return;}if(_0x350f5d[_0x4d66d5(0x16d)]===_0x4d66d5(0xda)){await Lt(_0x350f5d);return;}if(_0x350f5d[_0x4d66d5(0x16d)]===_0x4d66d5(0xf2)){await Dt(_0x350f5d);return;}if(_0x350f5d[_0x4d66d5(0x16d)]===_0x4d66d5(0x130)){await Ft(_0x350f5d);return;}if(_0x350f5d['subcommand']===_0x4d66d5(0x156)||_0x350f5d[_0x4d66d5(0x16d)]==='rerank'||_0x350f5d[_0x4d66d5(0x16d)]==='verify'){await Ht(_0x350f5d,_0x350f5d['subcommand']);return;}if(_0x350f5d[_0x4d66d5(0x16d)]==='complete'){await Jt(_0x350f5d);return;}if(_0x350f5d[_0x4d66d5(0x16d)]===_0x4d66d5(0x22e)){await zt(_0x350f5d);return;}if(_0x350f5d[_0x4d66d5(0x16d)]==='delegations'){await Yt(_0x350f5d);return;}if(_0x350f5d['subcommand']==='org-users'){await Zt(_0x350f5d);return;}if(_0x350f5d['subcommand']==='host'){await _0x154388(_0x350f5d[_0x4d66d5(0x21a)],{'runnerUrl':_0x350f5d[_0x4d66d5(0x1b0)],'backendUrl':_0x350f5d['backendUrl'],'interopPath':_0x350f5d['interopPath'],'workerId':_0x350f5d['workerId']});return;}if(_0x350f5d[_0x4d66d5(0xad)]){await $t();return;}await ln(_0x350f5d);}var mn=process.env.NODE_ENV==='test'||!!process.env.JEST_WORKER_ID;function _0x5423(_0xba5a27,_0x23b6ca){_0xba5a27=_0xba5a27-0x6e;const _0x305fa8=_0x305f();let _0x5423aa=_0x305fa8[_0xba5a27];return _0x5423aa;}mn||pn()[_0x2f20cb(0xe5)](_0x1fd625=>{const _0x3e0283=_0x2f20cb;console['error'](_0x1fd625[_0x3e0283(0xd4)]||_0x1fd625[_0x3e0283(0x1ef)]||_0x1fd625),process[_0x3e0283(0x72)](0x1);});export{ft as CARTOGRAPHER_SKILLS,G as EFFORT_TIERS,kt as IMPLICIT_STDIN_IDLE_MS,Z as buildInitOptions,pn as main,ht as parseArgs,yt as readCliVersion,I as resolvePrompt,gt as routeStdoutToStderr,l as writeCommandResult};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uipath/delegate-cli",
|
|
3
|
-
"version": "1.203.
|
|
3
|
+
"version": "1.203.3",
|
|
4
4
|
"description": "UiPath Delegate CLI - drive the Delegate agent from the terminal. Wraps @uipath/delegate-sdk; installing this package pulls the SDK in — no separate install.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "commonjs",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"publish:npmjs": "npm publish --@uipath:registry=https://registry.npmjs.org/ --access public --ignore-scripts"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@uipath/delegate-sdk": "1.203.
|
|
25
|
+
"@uipath/delegate-sdk": "1.203.3"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@types/node": "^22.0.0",
|