@uipath/delegate-cli 1.204.0-preview.20261007142740 → 1.204.0-preview.20261014163853

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 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>` | — | Extra bundled-skills directory, merged with `DELEGATE_BUNDLED_SKILLS_PATH` and the installed desktop app's skills (SDK `bundledSkillsPath`). Relative paths resolve against the current directory. |
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; business-analysis is already in the preset, so naming
435
- # it again changes nothing — it is still preloaded exactly once
436
- npx delegate-cli --cartographer --preload-skill task-design --project invoice-approval \
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.Aria.ComputerUse.Api # omit --interop → discovery only
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 _0x41868b=_0x2f0c;(function(_0x280b8b,_0x12228a){const _0x4c2950=_0x2f0c,_0x3f7a09=_0x280b8b();while(!![]){try{const _0x50b6ee=parseInt(_0x4c2950(0x1e7))/0x1+parseInt(_0x4c2950(0x1ad))/0x2+parseInt(_0x4c2950(0x240))/0x3+parseInt(_0x4c2950(0x217))/0x4*(-parseInt(_0x4c2950(0x296))/0x5)+-parseInt(_0x4c2950(0x251))/0x6*(-parseInt(_0x4c2950(0x19f))/0x7)+parseInt(_0x4c2950(0x308))/0x8*(parseInt(_0x4c2950(0x2b9))/0x9)+-parseInt(_0x4c2950(0x192))/0xa;if(_0x50b6ee===_0x12228a)break;else _0x3f7a09['push'](_0x3f7a09['shift']());}catch(_0xb96945){_0x3f7a09['push'](_0x3f7a09['shift']());}}}(_0x31fd,0xc3a2b));const __dirname=import.meta.dirname;import _0x5ea82a from'fs';import _0x2ec644 from'path';import{clearLine as _0x3cf1f3,createInterface as _0x5c5eb5,cursorTo as _0x4a3a04}from'node:readline';import{BUSINESS_ANALYSIS_PRELOADED_SKILLS as _0x31bc58,DelegateAgent as _0x1ca352,cancelTurn as _0x23cec9,InteropProcess as _0x44ce0a,complete as _0x32049b,DEFAULT_MODEL as _0x3fb40c,createBackendClient as _0x1cc1d5,evaluate as _0x1c3190,isCompletionRequestError as _0x477d17,isEvaluationRequestError as _0x1602f6,isTranscriptionError as _0x2e88a1,rerank as _0x19a5b2,transcribe as _0x5bd82d,verify as _0x3c3c1c,acceptDelegation as _0x428094,cancelDelegation as _0x282961,claimDelegation as _0x29add7,completeDelegation as _0x635c9d,createDelegation as _0x372b60,deleteDelegation as _0x3b9ee4,dismissDelegation as _0x4239bc,getSessionDelegations as _0x375379,isDelegationError as _0x48f4da,listDelegations as _0x37e507,listOrgUsers as _0x7cf36a,previewDelegation as _0x21970a,TurnResultCollector as _0x3abd42,agentEventToJsonLine as _0x350ef1,describeBaseUrlRejection as _0x285937,getActivitySummary as _0x37cc88,getAuthFilePath as _0xe65834,getByoWarnings as _0x37857f,getCartographerAllowance as _0xc916f7,getDailyBreakdown as _0x57958a,getLicensingSummary as _0x31496c,getMonthlySpending as _0x290bc1,isOutputFormat as _0x13a6aa,isCloudBaseUrl as _0xc5c442,isSafeProjectFolderSegment as _0x3e8f2c,listModels as _0x438c48,listSessions as _0x34153a,getSession as _0x1c9294,renameSession as _0x1e9b9f,deleteSession as _0x22c4d7,forkSession as _0x2d0635,isBackendRequestError as _0x163f40,MAX_SESSION_PAGE_SIZE as _0x1e502c,listTenants as _0x3dead0,loadAndRefreshAuth as _0x2a9c49,loadAndRefreshSdkLogin as _0x25c80a,parsePlatformBaseUrl as _0x1b0323,resolveBackendUrl as _0x1e0b2f,runHealthCheck as _0x58bb2e,runHostCommand as _0x57ad16,runLoginFlow as _0x4559d4,runTurnForResult as _0x316c9e,saveAuthData as _0xdee92f,switchTenant as _0x214602,toJsonLine as _0x5a7794,ENV_TO_CLOUD as _0x56878d,OUTPUT_FORMATS as _0x2b41c6}from'@uipath/delegate-sdk';var pt=[_0x41868b(0x2eb),'tenant','models',_0x41868b(0x305),_0x41868b(0x1bd),_0x41868b(0x319),'check',_0x41868b(0x248),_0x41868b(0x235),'evaluate','rerank','verify','complete','transcribe',_0x41868b(0x2a7),_0x41868b(0x2d7)],W=['',_0x41868b(0x285),_0x41868b(0x319),_0x41868b(0x22d),'sessions',_0x41868b(0x235),_0x41868b(0x213),'rerank',_0x41868b(0x2bf),_0x41868b(0x29f),_0x41868b(0x183),_0x41868b(0x2a7),'org-users'],G=['low',_0x41868b(0x32f),_0x41868b(0x268),_0x41868b(0x264),_0x41868b(0x22b)],mt=_0x31bc58;function _0x2f0c(_0x2ee21c,_0x2119f1){_0x2ee21c=_0x2ee21c-0x17a;const _0x31fd57=_0x31fd();let _0x2f0c8c=_0x31fd57[_0x2ee21c];return _0x2f0c8c;}function p(_0x121ecb,_0x20aa9d,_0x37aee9,_0x2bd41c){const _0x26c9dd=_0x41868b;let _0x5b6213=_0x121ecb[_0x20aa9d];return(!_0x5b6213||_0x5b6213[_0x26c9dd(0x29c)]>0x1&&_0x5b6213['startsWith']('-'))&&(console[_0x26c9dd(0x277)](_0x37aee9+_0x26c9dd(0x17b)+_0x2bd41c+'.'),process[_0x26c9dd(0x27d)](0x2)),_0x5b6213;}function N(_0x2d0800,_0x3cd7f7,_0x4595ce,_0x34b7fb){const _0x1d7177=_0x41868b;let _0x5914f6=p(_0x2d0800,_0x3cd7f7,_0x4595ce,_0x1d7177(0x278)),_0x2c444f=Number(_0x5914f6);return(!/^\d+$/[_0x1d7177(0x31a)](_0x5914f6)||_0x2c444f<0x1||!Number[_0x1d7177(0x1d6)](_0x2c444f)||_0x34b7fb!==void 0x0&&_0x2c444f>_0x34b7fb)&&(console[_0x1d7177(0x277)](_0x4595ce+_0x1d7177(0x2a5)+(_0x34b7fb===void 0x0?'1\x20or\x20more':'from\x201\x20to\x20'+_0x34b7fb)+_0x1d7177(0x2f5)+_0x5914f6+'.'),process[_0x1d7177(0x27d)](0x2)),_0x2c444f;}function ft(_0x54e3e5){const _0x29ce4c=_0x41868b;let _0x12b168={'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':_0x29ce4c(0x293),'preloadSkills':[],'attachments':[],'skipEnvCheck':!0x1,'includeSubAgents':!0x1,'operands':[],'help':!0x1,'version':!0x1};pt['includes'](_0x54e3e5[0x0])&&(_0x12b168[_0x29ce4c(0x1f1)]=_0x54e3e5[0x0],_0x54e3e5=_0x54e3e5[_0x29ce4c(0x1c5)](0x1));let _0x58d690=[];for(let _0x41acf8=0x0;_0x41acf8<_0x54e3e5[_0x29ce4c(0x29c)];_0x41acf8++){let _0x4d9656=_0x54e3e5[_0x41acf8];switch(_0x4d9656){case _0x29ce4c(0x247):case'-p':_0x12b168[_0x29ce4c(0x281)]=!0x0;break;case _0x29ce4c(0x1c1):_0x12b168['keepAlive']=!0x0;break;case'--cleanup':_0x12b168[_0x29ce4c(0x254)]=!0x0;break;case _0x29ce4c(0x22c):_0x12b168['headless']=!0x0;break;case _0x29ce4c(0x2f1):_0x12b168['noComputerUse']=!0x0;break;case _0x29ce4c(0x257):_0x12b168[_0x29ce4c(0x330)]=!0x0,_0x12b168['noComputerUse']=!0x0,_0x12b168['preloadSkills'][_0x29ce4c(0x27e)](...mt);break;case'--no-connections':_0x12b168['noConnections']=!0x0;break;case _0x29ce4c(0x219):_0x12b168[_0x29ce4c(0x216)]=!0x0;break;case _0x29ce4c(0x1ab):_0x12b168['noMemory']=!0x0;break;case _0x29ce4c(0x203):case'-q':_0x12b168[_0x29ce4c(0x311)]=!0x0;break;case _0x29ce4c(0x1cc):_0x12b168[_0x29ce4c(0x303)]=!0x0;break;case'--backend':_0x12b168['backendUrl']=_0x54e3e5[++_0x41acf8];break;case _0x29ce4c(0x1a8):_0x12b168[_0x29ce4c(0x22f)]=_0x54e3e5[++_0x41acf8];break;case _0x29ce4c(0x24c):_0x12b168['runnerUrl']=_0x54e3e5[++_0x41acf8];break;case _0x29ce4c(0x1f9):_0x12b168[_0x29ce4c(0x255)]=_0x54e3e5[++_0x41acf8];break;case _0x29ce4c(0x24d):_0x12b168[_0x29ce4c(0x304)]=_0x54e3e5[++_0x41acf8];break;case _0x29ce4c(0x286):_0x12b168['preloadSkills'][_0x29ce4c(0x27e)](p(_0x54e3e5,++_0x41acf8,_0x4d9656,_0x29ce4c(0x2a1)));break;case'--project':{let _0x3377ca=p(_0x54e3e5,++_0x41acf8,_0x4d9656,_0x29ce4c(0x271));_0x3e8f2c(_0x3377ca)||(console[_0x29ce4c(0x277)]('Invalid\x20--project:\x20\x22'+_0x3377ca+_0x29ce4c(0x1ca)),process[_0x29ce4c(0x27d)](0x2)),_0x12b168['projectId']=_0x3377ca;break;}case _0x29ce4c(0x2e6):{let _0xf5b574=p(_0x54e3e5,++_0x41acf8,_0x4d9656,_0x29ce4c(0x27c)+_0x2b41c6[_0x29ce4c(0x2a6)](_0x29ce4c(0x266))+')');_0x13a6aa(_0xf5b574)||(console[_0x29ce4c(0x277)](_0x29ce4c(0x1c0)+_0xf5b574+'.\x20Use\x20'+_0x2b41c6[_0x29ce4c(0x2a6)](_0x29ce4c(0x266))+'.'),process[_0x29ce4c(0x27d)](0x2)),_0x12b168['outputFormat']=_0xf5b574;break;}case _0x29ce4c(0x1a1):_0x12b168[_0x29ce4c(0x1e5)]=p(_0x54e3e5,++_0x41acf8,_0x4d9656,_0x29ce4c(0x2fb));break;case _0x29ce4c(0x261):_0x12b168[_0x29ce4c(0x30e)]=N(_0x54e3e5,++_0x41acf8,_0x4d9656);break;case _0x29ce4c(0x1b1):_0x12b168[_0x29ce4c(0x1f3)]=N(_0x54e3e5,++_0x41acf8,_0x4d9656,_0x1e502c);break;case'--include-subagents':_0x12b168[_0x29ce4c(0x1b0)]=!0x0;break;case'--json-schema':_0x12b168[_0x29ce4c(0x32b)]=p(_0x54e3e5,++_0x41acf8,_0x4d9656,_0x29ce4c(0x25b));break;case _0x29ce4c(0x2b8):{let _0x840d4b=_0x2ec644[_0x29ce4c(0x2bb)](process[_0x29ce4c(0x1a3)](),p(_0x54e3e5,++_0x41acf8,_0x4d9656,_0x29ce4c(0x1fb)));_0x5ea82a[_0x29ce4c(0x2d6)](_0x840d4b)||(console[_0x29ce4c(0x277)](_0x29ce4c(0x265)+_0x840d4b),process['exit'](0x2)),_0x12b168[_0x29ce4c(0x2df)][_0x29ce4c(0x27e)](_0x840d4b);break;}case _0x29ce4c(0x1c6):_0x12b168[_0x29ce4c(0x2d3)]=p(_0x54e3e5,++_0x41acf8,_0x4d9656,_0x29ce4c(0x2a9));break;case _0x29ce4c(0x2f7):_0x12b168[_0x29ce4c(0x1f5)]=p(_0x54e3e5,++_0x41acf8,_0x4d9656,'an\x20email\x20address\x20or\x20name');break;case _0x29ce4c(0x229):_0x12b168[_0x29ce4c(0x1b6)]=p(_0x54e3e5,++_0x41acf8,_0x4d9656,_0x29ce4c(0x2fd));break;case _0x29ce4c(0x212):_0x12b168[_0x29ce4c(0x19b)]=N(_0x54e3e5,++_0x41acf8,_0x4d9656,0x16d);break;case _0x29ce4c(0x1d5):_0x12b168['workingDirectory']=_0x2ec644[_0x29ce4c(0x2bb)](process[_0x29ce4c(0x1a3)](),p(_0x54e3e5,++_0x41acf8,_0x4d9656,_0x29ce4c(0x1cd)));break;case _0x29ce4c(0x214):_0x12b168[_0x29ce4c(0x1ed)]=_0x2ec644[_0x29ce4c(0x2bb)](process['cwd'](),p(_0x54e3e5,++_0x41acf8,_0x4d9656,'a\x20directory\x20path'));break;case _0x29ce4c(0x2ad):{let _0x29e24b=p(_0x54e3e5,++_0x41acf8,_0x4d9656,_0x29ce4c(0x1c8));G['includes'](_0x29e24b)||(console[_0x29ce4c(0x277)]('Invalid\x20--effort:\x20'+_0x29e24b+_0x29ce4c(0x1e9)+G['join']('\x20|\x20')+'.'),process[_0x29ce4c(0x27d)](0x2)),_0x12b168['effort']=_0x29e24b;break;}case'--tenant':{let _0x50952e=_0x54e3e5[++_0x41acf8];(!_0x50952e||_0x50952e['startsWith']('--'))&&(console[_0x29ce4c(0x277)](_0x29ce4c(0x2c8)),process[_0x29ce4c(0x27d)](0x2)),_0x12b168[_0x29ce4c(0x2e2)]=_0x50952e;break;}case'--env':{let _0x5d164a=_0x54e3e5[++_0x41acf8];[_0x29ce4c(0x2c9),'staging',_0x29ce4c(0x239),_0x29ce4c(0x24b)]['includes'](_0x5d164a)||(console['error'](_0x29ce4c(0x1bb)+_0x5d164a+_0x29ce4c(0x310)),process[_0x29ce4c(0x27d)](0x2)),_0x12b168[_0x29ce4c(0x2c4)]=_0x5d164a;break;}case _0x29ce4c(0x2ee):case _0x29ce4c(0x1da):{let _0x598ced=p(_0x54e3e5,++_0x41acf8,_0x4d9656,_0x29ce4c(0x2ea)),_0x516d53=_0x1b0323(_0x598ced);if(_0x516d53['ok']===!0x1){console[_0x29ce4c(0x277)](_0x285937(_0x598ced,_0x516d53[_0x29ce4c(0x318)])),process[_0x29ce4c(0x27d)](0x2);break;}_0x12b168[_0x29ce4c(0x313)]=_0x516d53[_0x29ce4c(0x291)];break;}case _0x29ce4c(0x27f):_0x12b168[_0x29ce4c(0x218)]=!0x0;break;case'-h':case _0x29ce4c(0x249):_0x12b168[_0x29ce4c(0x1a2)]=!0x0;break;case'-v':case'--version':_0x12b168[_0x29ce4c(0x1d8)]=!0x0;break;default:_0x4d9656[_0x29ce4c(0x2b5)]('--')&&(console[_0x29ce4c(0x277)](_0x29ce4c(0x1f7)+_0x4d9656),process[_0x29ce4c(0x27d)](0x2)),_0x58d690[_0x29ce4c(0x27e)](_0x4d9656);}}return _0x12b168[_0x29ce4c(0x2e2)]!==void 0x0&&_0x12b168['subcommand']!==_0x29ce4c(0x2eb)&&(console[_0x29ce4c(0x277)](_0x29ce4c(0x28a)),process[_0x29ce4c(0x27d)](0x2)),_0x12b168['url']!==void 0x0&&_0x12b168['env']!==void 0x0&&(console[_0x29ce4c(0x277)](_0x29ce4c(0x198)),process['exit'](0x2)),_0x12b168[_0x29ce4c(0x313)]!==void 0x0&&_0x12b168[_0x29ce4c(0x1f1)]!=='login'&&(console[_0x29ce4c(0x277)](_0x29ce4c(0x19d)),process[_0x29ce4c(0x27d)](0x2)),_0x12b168[_0x29ce4c(0x19b)]!==void 0x0&&_0x12b168[_0x29ce4c(0x1f1)]!==_0x29ce4c(0x235)&&(console[_0x29ce4c(0x277)](_0x29ce4c(0x1c7)),process[_0x29ce4c(0x27d)](0x2)),_0x12b168[_0x29ce4c(0x32b)]!==void 0x0&&(_0x12b168[_0x29ce4c(0x1f1)]!==_0x29ce4c(0x29f)&&_0x12b168[_0x29ce4c(0x1f1)]!==''||_0x12b168['cleanup'])&&(console['error']('--json-schema\x20applies\x20to\x20prompts\x20and\x20to\x20`delegate-cli\x20complete`\x20only.'),process[_0x29ce4c(0x27d)](0x2)),_0x12b168[_0x29ce4c(0x2df)]['length']>0x0&&(_0x12b168['subcommand']!==''||_0x12b168['cleanup'])&&(console[_0x29ce4c(0x277)]('--attach\x20applies\x20to\x20prompts\x20only.'),process[_0x29ce4c(0x27d)](0x2)),_0x12b168[_0x29ce4c(0x218)]&&_0x12b168[_0x29ce4c(0x1f1)]!==_0x29ce4c(0x2eb)&&(console[_0x29ce4c(0x277)]('--skip-env-check\x20applies\x20to\x20`delegate-cli\x20login`\x20only.'),process['exit'](0x2)),_0x12b168[_0x29ce4c(0x185)]!=='text'&&!W[_0x29ce4c(0x191)](_0x12b168['subcommand'])&&(console['error'](_0x29ce4c(0x194)+_0x12b168['outputFormat']+'\x20applies\x20to\x20prompts\x20and\x20to\x20these\x20commands\x20only:\x20'+W['filter'](Boolean)[_0x29ce4c(0x2a6)](',\x20')+'.'),process[_0x29ce4c(0x27d)](0x2)),(_0x12b168[_0x29ce4c(0x30e)]!==void 0x0||_0x12b168['limit']!==void 0x0||_0x12b168[_0x29ce4c(0x1b0)])&&_0x12b168['subcommand']!==_0x29ce4c(0x248)&&(console['error'](_0x29ce4c(0x1b2)),process[_0x29ce4c(0x27d)](0x2)),(_0x12b168[_0x29ce4c(0x1f5)]!==void 0x0||_0x12b168[_0x29ce4c(0x1b6)]!==void 0x0)&&_0x12b168[_0x29ce4c(0x1f1)]!==_0x29ce4c(0x2a7)&&(console['error'](_0x29ce4c(0x327)),process['exit'](0x2)),_0x12b168[_0x29ce4c(0x2d3)]!==void 0x0&&_0x12b168[_0x29ce4c(0x1f1)]!=='sessions'&&(console[_0x29ce4c(0x277)]('--turn\x20applies\x20to\x20`delegate-cli\x20sessions\x20cancel`\x20only.'),process[_0x29ce4c(0x27d)](0x2)),_0x12b168['preloadSkills']=[...new Set(_0x12b168[_0x29ce4c(0x1ee)])],_0x12b168[_0x29ce4c(0x25d)]=_0x58d690,_0x12b168[_0x29ce4c(0x283)]=_0x58d690[_0x29ce4c(0x2a6)]('\x20'),_0x12b168;}var S=_0x4834f7=>{const _0x1ded9f=_0x41868b;process[_0x1ded9f(0x2e5)][_0x1ded9f(0x2cb)](_0x4834f7);};function gt(){const _0x281e8f=_0x41868b;let _0x5a4f8a=process[_0x281e8f(0x2e5)][_0x281e8f(0x2cb)],_0x11fb60=_0x5a4f8a[_0x281e8f(0x2db)](process[_0x281e8f(0x2e5)]),_0x568bea=S;return S=_0x4910fc=>{_0x11fb60(_0x4910fc);},process['stdout'][_0x281e8f(0x2cb)]=(..._0x513184)=>process[_0x281e8f(0x1b5)][_0x281e8f(0x2cb)](..._0x513184),()=>{const _0xa08e2e=_0x281e8f;process[_0xa08e2e(0x2e5)]['write']=_0x5a4f8a,S=_0x568bea;};}function l(_0x2ff0ba,_0x57d3e3,_0x12bb82){const _0x368664=_0x41868b;if(_0x2ff0ba['outputFormat']===_0x368664(0x293)){_0x12bb82(_0x57d3e3);return;}S(_0x5a7794(_0x57d3e3));}function ht(){const _0x5f3dab=_0x41868b;let _0x151ea5=_0x5f3dab(0x221)[_0x5f3dab(0x23d)]();console['log'](_0x151ea5);}function wt(){const _0x1607cc=_0x41868b;try{return JSON[_0x1607cc(0x220)](_0x5ea82a['readFileSync'](_0x2ec644[_0x1607cc(0x2a6)](__dirname,'..','package.json'),_0x1607cc(0x205)))[_0x1607cc(0x1d8)]||_0x1607cc(0x317);}catch{return _0x1607cc(0x317);}}var yt=0x7d0;async function K(_0x24b167,_0x3f8440){const _0x597e26=_0x41868b;let _0x250fab=_0x3f8440?[_0x3f8440]:[];for await(let _0x161a0c of _0x24b167)_0x250fab[_0x597e26(0x27e)](Buffer[_0x597e26(0x2d1)](_0x161a0c));return Buffer['concat'](_0x250fab)[_0x597e26(0x32a)](_0x597e26(0x205))['trim']();}function kt(_0x1cd57c,_0x511f6e){return new Promise(_0x319965=>{const _0x268ff2=_0x2f0c;let _0x1fca38=_0x5814bd=>{const _0x53ab74=_0x2f0c;clearTimeout(_0x38e6f0),_0x1cd57c[_0x53ab74(0x209)](_0x53ab74(0x1d7),_0xed2e51),_0x1cd57c[_0x53ab74(0x209)](_0x53ab74(0x31b),_0x2df098),_0x1cd57c[_0x53ab74(0x209)]('error',_0x2df098),_0x1cd57c['pause'](),_0x319965(_0x5814bd);},_0xed2e51=_0x5e9755=>_0x1fca38(Buffer[_0x268ff2(0x2d1)](_0x5e9755)),_0x2df098=()=>_0x1fca38(null),_0x38e6f0=setTimeout(()=>_0x1fca38(null),_0x511f6e);_0x1cd57c['on'](_0x268ff2(0x1d7),_0xed2e51),_0x1cd57c['on'](_0x268ff2(0x31b),_0x2df098),_0x1cd57c['on'](_0x268ff2(0x277),_0x2df098),_0x1cd57c['resume']();});}async function I(_0x4d8caa,_0x3df0f6,_0x5f5bf2=yt){const _0x414180=_0x41868b;let _0x5809c8=_0x4d8caa==='-';if(!_0x5809c8&&_0x4d8caa)return _0x4d8caa;if(!_0x5809c8&&_0x3df0f6[_0x414180(0x1fe)])return'';if(_0x5809c8)return K(_0x3df0f6,null);let _0x5b8573=await kt(_0x3df0f6,_0x5f5bf2);return _0x5b8573?K(_0x3df0f6,_0x5b8573):'';}function L(){const _0x169d95=_0x41868b;return _0x2ec644[_0x169d95(0x2a6)](process.env.HOME||process.env.USERPROFILE||'',_0x169d95(0x245),_0x169d95(0x2ac));}function $(_0x3e42cd){const _0x3711b1=_0x41868b;try{let _0x1135ef=JSON[_0x3711b1(0x220)](_0x5ea82a[_0x3711b1(0x2cd)](_0x3e42cd,_0x3711b1(0x205)));return!_0x1135ef[_0x3711b1(0x2ca)]||!_0x1135ef[_0x3711b1(0x1dc)]||!_0x1135ef[_0x3711b1(0x2e0)]?null:_0x1135ef;}catch{return null;}}function St(){const _0x151a10=_0x41868b;let _0x4f7142=[{'file':_0xe65834(),'isDesktopFallback':!0x1},{'file':L(),'isDesktopFallback':!0x0}];for(let _0x2ae9d8 of _0x4f7142){let _0x4916a7=$(_0x2ae9d8[_0x151a10(0x276)]);if(_0x4916a7)return{..._0x2ae9d8,'auth':_0x4916a7};}return null;}async function bt(){const _0x15a6e2=_0x41868b;let _0x593df4=_0xe65834();if(!_0x5ea82a[_0x15a6e2(0x2d6)](_0x593df4)){let _0x5a487a=L();console['log']($(_0x5a487a)?_0x15a6e2(0x2de)+_0x5a487a+_0x15a6e2(0x253):_0x15a6e2(0x24e));return;}_0x5ea82a['rmSync'](_0x593df4),console[_0x15a6e2(0x288)](_0x15a6e2(0x2c0)+_0x593df4);}async function vt(_0xb14152){const _0x5d2996=_0x41868b;let _0x46ad8b=O(),_0x30f134,_0x33cc71;if(_0x46ad8b)_0x30f134=_0x46ad8b,_0x33cc71=_0x5d2996(0x1be);else{let _0x12ef83=St();if(!_0x12ef83)throw new Error(le);_0x30f134=_0x12ef83['auth'],_0x33cc71=_0x12ef83[_0x5d2996(0x233)]?_0x12ef83[_0x5d2996(0x276)]+_0x5d2996(0x31f):_0x12ef83[_0x5d2996(0x276)];}let _0x44d23c={'source':_0x33cc71,'baseUrl':_0x30f134[_0x5d2996(0x291)]??null,'deployment':Et(_0x30f134[_0x5d2996(0x291)]),'organization':{'id':_0x30f134['organizationId'],'slug':_0x30f134[_0x5d2996(0x30b)]??null},'tenant':{'id':_0x30f134[_0x5d2996(0x1dc)],'name':_0x30f134[_0x5d2996(0x250)]??null},'tokenExpiresAt':_0x30f134['expiresAt']?new Date(_0x30f134[_0x5d2996(0x21c)]*0x3e8)[_0x5d2996(0x1c9)]():null};l(_0xb14152,_0x44d23c,()=>{const _0x4626bd=_0x5d2996;let _0x3b4054=[_0x4626bd(0x231)+_0x33cc71,_0x4626bd(0x287)+(_0x30f134[_0x4626bd(0x291)]??'unknown'),_0x4626bd(0x30d)+_0x44d23c[_0x4626bd(0x2a2)],_0x4626bd(0x2a4)+(_0x30f134[_0x4626bd(0x30b)]??_0x4626bd(0x1b3))+'\x20('+_0x30f134[_0x4626bd(0x2e0)]+')',_0x4626bd(0x180)+(_0x30f134[_0x4626bd(0x250)]??_0x4626bd(0x1b3))+'\x20('+_0x30f134[_0x4626bd(0x1dc)]+')'];if(_0x30f134['expiresAt']){let _0x284914=_0x30f134[_0x4626bd(0x21c)]-Math['floor'](Date[_0x4626bd(0x23a)]()/0x3e8);_0x3b4054[_0x4626bd(0x27e)](_0x284914>0x0?_0x4626bd(0x1ea)+_0x44d23c[_0x4626bd(0x26d)]+_0x4626bd(0x200)+Math['round'](_0x284914/0x3c)+_0x4626bd(0x189):'Token:\x20\x20\x20\x20\x20\x20\x20\x20expired\x20'+_0x44d23c[_0x4626bd(0x26d)]);}process['stdout'][_0x4626bd(0x2cb)](_0x3b4054[_0x4626bd(0x2a6)]('\x0a')+'\x0a');});}var le=_0x41868b(0x2f9);function Et(_0x11cc93){const _0x1e09aa=_0x41868b;return _0x11cc93?_0xc5c442(_0x11cc93)?_0x1e09aa(0x236):_0x1e09aa(0x207):_0x1e09aa(0x317);}function O(){let _0x117387=process.env.AUTH_TOKEN_FILE;return(process.env.AUTH_TOKEN||_0x117387)&&process.env.TENANT_ID&&process.env.ORG_ID?{'accessToken':_0x117387?At(_0x117387):process.env.AUTH_TOKEN,..._0x117387?{'accessTokenFile':_0x117387}:{},'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(_0x5ba0cd){const _0x343bf8=_0x41868b;let _0x195190;try{_0x195190=_0x5ea82a[_0x343bf8(0x2cd)](_0x5ba0cd,_0x343bf8(0x205))[_0x343bf8(0x23d)]();}catch(_0x360748){throw new Error(_0x343bf8(0x256)+_0x5ba0cd+_0x343bf8(0x30c)+_0x360748[_0x343bf8(0x282)]);}let _0x4d150f=_0x195190[_0x343bf8(0x2b5)](_0x343bf8(0x1a7))?_0x195190[_0x343bf8(0x1c5)](0x7)[_0x343bf8(0x23d)]():_0x195190;if(!_0x4d150f)throw new Error(_0x343bf8(0x256)+_0x5ba0cd+_0x343bf8(0x295));return _0x4d150f;}function ce(){const _0x562a9d=_0x41868b;let _0xce89b4=process.env.UIPATH_BASE_URL;if(!_0xce89b4)return;let _0x56f791=_0x1b0323(_0xce89b4);if(_0x56f791['ok']===!0x1)throw new Error(_0x562a9d(0x2c6)+_0x285937(_0xce89b4,_0x56f791[_0x562a9d(0x318)]));return _0x56f791[_0x562a9d(0x291)];}async function P(){let _0x2d5151=O();if(_0x2d5151)return _0x2d5151;let _0x35721c=await _0x2a9c49();if(_0x35721c)return _0x35721c;throw new Error(le);}async function It(){const _0x7dac3f=_0x41868b;await new _0x44ce0a()[_0x7dac3f(0x237)]({'force':!0x0}),console['log']('Interop\x20stopped\x20(if\x20it\x20was\x20running).');}function F(_0x36c84d,_0x140d1b,_0x387f0a){const _0x512e1d=_0x41868b;_0x36c84d?process['stderr'][_0x512e1d(0x2cb)](_0x512e1d(0x25c)+_0x36c84d+_0x512e1d(0x186)+_0x387f0a+'\x0a'):!_0x140d1b&&!process.env.BACKEND_URL&&process[_0x512e1d(0x1b5)][_0x512e1d(0x2cb)]('[saved\x20login]\x20Backend\x20URL:\x20'+_0x387f0a+'\x0a');}async function f(_0x52eebb){const _0x5cdc01=_0x41868b;let _0x39d227=await P(),_0x316b1a=_0x1e0b2f(_0x52eebb[_0x5cdc01(0x2c4)],_0x39d227,_0x52eebb[_0x5cdc01(0x1d1)]);return F(_0x52eebb[_0x5cdc01(0x2c4)],_0x52eebb['backendUrl'],_0x316b1a),{'auth':_0x39d227,'backendUrl':_0x316b1a,'client':_0x1cc1d5({'auth':_0x39d227,'backendUrl':_0x316b1a})};}async function $t(_0x421b88){const _0x4af8b1=_0x41868b;let {client:_0x4256c8}=await f(_0x421b88),[_0x5989be,_0x27a45f]=await Promise[_0x4af8b1(0x243)]([_0x438c48(_0x4256c8),_0x37857f(_0x4256c8)[_0x4af8b1(0x263)](_0x5a0f69=>(process['stderr'][_0x4af8b1(0x2cb)](_0x4af8b1(0x31d)+(_0x5a0f69 instanceof Error?_0x5a0f69[_0x4af8b1(0x282)]:String(_0x5a0f69))+'\x0a'),{}))]),_0x3aa225=_0x5989be[_0x4af8b1(0x20a)](_0x5beb74=>_0x27a45f[_0x5beb74['id']]?{..._0x5beb74,'byoWarning':_0x27a45f[_0x5beb74['id']]}:_0x5beb74);l(_0x421b88,_0x3aa225,Tt);}function Tt(_0x291204){const _0x54516e=_0x41868b;if(_0x291204[_0x54516e(0x29c)]===0x0){process['stderr'][_0x54516e(0x2cb)]('No\x20models\x20available\x20for\x20this\x20product/tenant.\x0a');return;}process[_0x54516e(0x2e5)][_0x54516e(0x2cb)]('\x0aAvailable\x20models\x20('+_0x291204[_0x54516e(0x29c)]+_0x54516e(0x2cf));for(let _0x3c594c of _0x291204){let _0x54cf73=_0x3c594c['name']&&_0x3c594c[_0x54516e(0x25e)]!==_0x3c594c['id']?'\x20('+_0x3c594c[_0x54516e(0x25e)]+')':'';process['stdout'][_0x54516e(0x2cb)]('\x20\x20'+_0x3c594c['id']+_0x54cf73+'\x0a'),_0x3c594c['description']&&process['stdout']['write'](_0x54516e(0x252)+_0x3c594c[_0x54516e(0x29a)]+'\x0a'),_0x3c594c[_0x54516e(0x2a3)]&&process[_0x54516e(0x2e5)][_0x54516e(0x2cb)]('\x20\x20\x20\x20Not\x20available\x20on\x20this\x20plan'+(_0x3c594c['lockReason']?'\x20('+_0x3c594c[_0x54516e(0x1d2)]+')':'')+'\x0a'),_0x3c594c[_0x54516e(0x215)]&&process[_0x54516e(0x2e5)][_0x54516e(0x2cb)](_0x54516e(0x2d9)+_0x3c594c['byoWarning']+'\x0a');}process[_0x54516e(0x2e5)][_0x54516e(0x2cb)](_0x54516e(0x315));}var z=[_0x41868b(0x298),_0x41868b(0x2b2),'rename',_0x41868b(0x2cc),'cancel','fork'];async function xt(_0x2cd41d){const _0x44739e=_0x41868b;let [_0x1c08ef='',_0x14c0f8='',..._0x4b8aeb]=_0x2cd41d[_0x44739e(0x25d)];if(_0x1c08ef&&!z[_0x44739e(0x191)](_0x1c08ef)&&(console[_0x44739e(0x277)](_0x44739e(0x262)+_0x1c08ef+_0x44739e(0x1ec)+z[_0x44739e(0x2a6)]('\x20|\x20')+'.'),process[_0x44739e(0x27d)](0x2)),_0x2cd41d['turnId']!==void 0x0&&_0x1c08ef!=='cancel'&&(console[_0x44739e(0x277)]('--turn\x20applies\x20to\x20`delegate-cli\x20sessions\x20cancel`\x20only.'),process['exit'](0x2)),_0x1c08ef&&_0x1c08ef!==_0x44739e(0x298)){await Dt(_0x2cd41d,_0x1c08ef,_0x14c0f8,_0x4b8aeb[_0x44739e(0x2a6)]('\x20')[_0x44739e(0x23d)]());return;}_0x2cd41d[_0x44739e(0x25d)][_0x44739e(0x29c)]>0x1&&(console[_0x44739e(0x277)](_0x44739e(0x273)),process[_0x44739e(0x27d)](0x2));let {client:_0x133608}=await f(_0x2cd41d),_0x5ed659=await _0x34153a(_0x133608,{'page':_0x2cd41d[_0x44739e(0x30e)],'pageSize':_0x2cd41d[_0x44739e(0x1f3)],'includeSubAgents':_0x2cd41d['includeSubAgents']});l(_0x2cd41d,_0x5ed659,Ct);}async function Dt(_0x54d7cd,_0x1b555f,_0x3374fa,_0x348192){const _0x3c1890=_0x41868b;if((_0x54d7cd[_0x3c1890(0x30e)]!==void 0x0||_0x54d7cd[_0x3c1890(0x1f3)]!==void 0x0||_0x54d7cd[_0x3c1890(0x1b0)])&&(console[_0x3c1890(0x277)](_0x3c1890(0x1e1)),process[_0x3c1890(0x27d)](0x2)),_0x1b555f===_0x3c1890(0x2e8)){await Ut(_0x54d7cd,_0x3374fa,_0x348192);return;}if(_0x1b555f===_0x3c1890(0x2dd)){await Nt(_0x54d7cd,_0x3374fa,_0x348192);return;}(!_0x3374fa||_0x1b555f===_0x3c1890(0x2b4)!=!!_0x348192)&&(console['error'](_0x3c1890(0x27b)+_0x1b555f+_0x3c1890(0x2c1)+(_0x1b555f===_0x3c1890(0x2b4)?_0x3c1890(0x230):'')),process[_0x3c1890(0x27d)](0x2));let {client:_0x578fb7}=await f(_0x54d7cd);try{if(_0x1b555f===_0x3c1890(0x2b2)){let _0x390925=await _0x1c9294(_0x578fb7,_0x3374fa);_0x390925||V(_0x3374fa),l(_0x54d7cd,_0x390925,_t);}else{if(_0x1b555f===_0x3c1890(0x2b4)){let _0x34ace1=await _0x1e9b9f(_0x578fb7,_0x3374fa,_0x348192);l(_0x54d7cd,_0x34ace1,_0x110201=>{const _0x52b5e0=_0x3c1890;process[_0x52b5e0(0x2e5)][_0x52b5e0(0x2cb)](_0x52b5e0(0x1f8)+_0x110201['id']+':\x20'+_0x110201[_0x52b5e0(0x2be)]+'\x0a');});}else await _0x22c4d7(_0x578fb7,_0x3374fa),l(_0x54d7cd,{'id':_0x3374fa,'deleted':!0x0},_0x424c17=>{const _0x4656cb=_0x3c1890;process[_0x4656cb(0x2e5)][_0x4656cb(0x2cb)](_0x4656cb(0x299)+_0x424c17['id']+'.\x0a');});}}catch(_0x73c887){if(!_0x163f40(_0x73c887,0x194))throw _0x73c887;V(_0x3374fa);}}function V(_0x19d969){const _0x141422=_0x41868b;console['error'](_0x141422(0x30f)+_0x19d969+_0x141422(0x26e)),process[_0x141422(0x27d)](0x1);}function _t(_0x16a3de){const _0x1a1e5c=_0x41868b;process[_0x1a1e5c(0x2e5)][_0x1a1e5c(0x2cb)]('ID\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x16a3de['id']+'\x0a'),process[_0x1a1e5c(0x2e5)][_0x1a1e5c(0x2cb)](_0x1a1e5c(0x312)+_0x16a3de[_0x1a1e5c(0x2be)]+'\x0a'),process['stdout'][_0x1a1e5c(0x2cb)](_0x1a1e5c(0x2e3)+_0x16a3de[_0x1a1e5c(0x1e6)]+'\x0a'),process[_0x1a1e5c(0x2e5)][_0x1a1e5c(0x2cb)](_0x1a1e5c(0x2b6)+_0x16a3de[_0x1a1e5c(0x2e0)]+'\x0a'),_0x16a3de[_0x1a1e5c(0x1a5)]&&process['stdout'][_0x1a1e5c(0x2cb)](_0x1a1e5c(0x1c4)+_0x16a3de[_0x1a1e5c(0x1a5)]+'\x0a');}async function Ut(_0xcd9fa8,_0x4fef0a,_0x2d0020){const _0x4ba2b5=_0x41868b;(!_0x4fef0a||_0x2d0020||!_0xcd9fa8[_0x4ba2b5(0x2d3)])&&(console[_0x4ba2b5(0x277)](_0x4ba2b5(0x2ab)),process[_0x4ba2b5(0x27d)](0x2));let {client:_0x77cde6}=await f(_0xcd9fa8),_0x305d54=await _0x23cec9(_0x77cde6,_0x4fef0a,_0xcd9fa8[_0x4ba2b5(0x2d3)]);l(_0xcd9fa8,{'sessionId':_0x4fef0a,'turnId':_0xcd9fa8[_0x4ba2b5(0x2d3)],'cancelled':_0x305d54},_0x120a32=>{const _0x521e40=_0x4ba2b5;_0x120a32['cancelled']?process[_0x521e40(0x2e5)][_0x521e40(0x2cb)]('Cancel\x20requested\x20for\x20turn\x20'+_0x120a32[_0x521e40(0x2d3)]+_0x521e40(0x24a)+_0x120a32[_0x521e40(0x1e5)]+'.\x0a'):process['stderr'][_0x521e40(0x2cb)]('No\x20turn\x20'+_0x120a32[_0x521e40(0x2d3)]+_0x521e40(0x2c3)+_0x120a32[_0x521e40(0x1e5)]+'.\x0a');}),_0x305d54||(process['exitCode']=0x1);}async function Nt(_0x3af63e,_0x190661,_0x362521){const _0x1f30c8=_0x41868b;(!_0x190661||/\s/[_0x1f30c8(0x31a)](_0x362521))&&(console[_0x1f30c8(0x277)]('Usage:\x20delegate-cli\x20sessions\x20fork\x20<id>\x20[<message-id>]'),process[_0x1f30c8(0x27d)](0x2));let {client:_0x5b6787}=await f(_0x3af63e),_0x223dc3;try{_0x223dc3=await _0x2d0635(_0x5b6787,_0x190661,{'atMessageId':_0x362521||void 0x0});}catch(_0x330ed2){if(!_0x163f40(_0x330ed2,0x194))throw _0x330ed2;console['error'](_0x1f30c8(0x30f)+_0x190661+'\x20not\x20found,\x20has\x20no\x20messages'+(_0x362521?_0x1f30c8(0x1a0)+_0x362521:'')+'.'),process[_0x1f30c8(0x27d)](0x1);}l(_0x3af63e,_0x223dc3,_0x200bf3=>{const _0x511d16=_0x1f30c8;process[_0x511d16(0x2e5)][_0x511d16(0x2cb)](_0x511d16(0x234)+_0x190661+_0x511d16(0x1e3)+_0x200bf3['id']+'.\x0a'),process[_0x511d16(0x1b5)][_0x511d16(0x2cb)](_0x511d16(0x19e)+_0x200bf3['id']+_0x511d16(0x19a));});}function Ct({sessions:_0x2f3922,page:_0x468fb6,isLastPage:_0x31555c}){const _0x1b715a=_0x41868b;if(_0x2f3922['length']===0x0)process[_0x1b715a(0x1b5)][_0x1b715a(0x2cb)](_0x1b715a(0x210)+_0x468fb6+'.\x0a');else{process[_0x1b715a(0x2e5)][_0x1b715a(0x2cb)]('ID'['padEnd'](0x24)+'\x20\x20'+_0x1b715a(0x284)['padEnd'](0x13)+_0x1b715a(0x289));for(let _0x11c194 of _0x2f3922){let _0x316eb2=_0x11c194[_0x1b715a(0x2fa)][_0x1b715a(0x22e)]('T','\x20')[_0x1b715a(0x1c5)](0x0,0x13),_0x5e231a=_0x11c194['parentSessionId']?_0x1b715a(0x19c)+_0x11c194[_0x1b715a(0x21a)]+')':'';process[_0x1b715a(0x2e5)][_0x1b715a(0x2cb)](_0x11c194['id'][_0x1b715a(0x1bc)](0x24)+'\x20\x20'+_0x316eb2[_0x1b715a(0x1bc)](0x13)+'\x20\x20'+_0x11c194['title']+_0x5e231a+'\x0a');}}_0x31555c||process[_0x1b715a(0x1b5)][_0x1b715a(0x2cb)](_0x1b715a(0x241)+(_0x468fb6+0x1)+'\x0a');}async function Rt(_0x210bb1){const _0x4ccf47=_0x41868b;let _0x281625=await P(),_0x56c6db=_0x1e0b2f(_0x210bb1['env'],_0x281625,_0x210bb1[_0x4ccf47(0x1d1)]);F(_0x210bb1['env'],_0x210bb1[_0x4ccf47(0x1d1)],_0x56c6db);let _0x2e5860=await _0x58bb2e({'auth':_0x281625,'backendUrl':_0x56c6db,'interop':_0x210bb1[_0x4ccf47(0x190)]?_0x4ccf47(0x302):'spawn'});l(_0x210bb1,_0x2e5860,({checks:_0x2c7f81})=>{const _0x303f6e=_0x4ccf47;for(let _0x1b8d4a of _0x2c7f81)process[_0x303f6e(0x2e5)][_0x303f6e(0x2cb)](Lt(_0x1b8d4a)+'\x0a');}),_0x2e5860['ok']||process['exit'](0x1);}function Lt(_0x1d2165){const _0x40c373=_0x41868b;return{'ok':'✓','failed':'✗','skipped':'-'}[_0x1d2165[_0x40c373(0x1de)]]+'\x20'+_0x1d2165[_0x40c373(0x25e)][_0x40c373(0x1bc)](0xa)+_0x1d2165[_0x40c373(0x320)];}var Ot=['','activity',_0x41868b(0x1d4)];async function Pt(_0x235b5e){const _0x1698b5=_0x41868b;let _0x5c757d=_0x235b5e[_0x1698b5(0x283)];Ot[_0x1698b5(0x191)](_0x5c757d)||(console[_0x1698b5(0x277)](_0x1698b5(0x1fc)+_0x235b5e[_0x1698b5(0x283)]+_0x1698b5(0x1f6)),process[_0x1698b5(0x27d)](0x2)),_0x5c757d===''&&_0x235b5e[_0x1698b5(0x19b)]!==void 0x0&&(console[_0x1698b5(0x277)](_0x1698b5(0x20d)),process[_0x1698b5(0x27d)](0x2)),_0x5c757d!==''&&_0x235b5e[_0x1698b5(0x1e5)]!==void 0x0&&(console[_0x1698b5(0x277)](_0x1698b5(0x21f)),process[_0x1698b5(0x27d)](0x2));let {client:_0x4db396}=await f(_0x235b5e);if(_0x5c757d==='activity'){l(_0x235b5e,await _0x37cc88(_0x4db396,{'days':_0x235b5e[_0x1698b5(0x19b)]}),jt);return;}if(_0x5c757d===_0x1698b5(0x1d4)){l(_0x235b5e,await _0x57958a(_0x4db396,{'days':_0x235b5e[_0x1698b5(0x19b)]}),Mt);return;}let [_0x4b4ba7,_0x4bd681,_0x312b92]=await Promise['all']([_0x31496c(_0x4db396,{'sessionId':_0x235b5e[_0x1698b5(0x1e5)]}),_0x290bc1(_0x4db396),_0xc916f7(_0x4db396)]);l(_0x235b5e,{'licensing':_0x4b4ba7,'monthlySpending':_0x4bd681,'cartographerAllowance':_0x312b92},Ft);}function Ft(_0x5b7123){const _0x396e3f=_0x41868b;let {licensing:_0x5da528,monthlySpending:_0x122990,cartographerAllowance:_0x5219c0}=_0x5b7123,_0x28298b=[_0x5da528[_0x396e3f(0x26b)]?_0x396e3f(0x2c5)+_0x5da528['pct_used']['toFixed'](0x1)+_0x396e3f(0x2aa)+(_0x5da528[_0x396e3f(0x2e4)]??0x0)+'\x20PU\x20used'+(_0x5da528['extra_pool_consumed_pu']>0x0?',\x20'+_0x5da528[_0x396e3f(0x193)]+_0x396e3f(0x227):'')+_0x396e3f(0x323)+_0x5da528[_0x396e3f(0x20b)]+')':'Licensing:\x20\x20\x20\x20no\x20licensing\x20quota\x20applies',_0x396e3f(0x1fa)+_0x122990['monthly_spend_usd'][_0x396e3f(0x2c7)](0x2)+_0x396e3f(0x270)+(_0x122990['limit_enabled']&&_0x122990[_0x396e3f(0x181)]!==null?_0x396e3f(0x1d3)+_0x122990[_0x396e3f(0x181)]['toFixed'](0x2)+'\x20cap':'\x20(no\x20cap\x20enforced)'),_0x396e3f(0x21b)+_0x5219c0['mode']+'\x20('+_0x5219c0[_0x396e3f(0x1a9)]+')'];_0x5da528[_0x396e3f(0x290)]!==null&&_0x5da528[_0x396e3f(0x290)]!==void 0x0&&_0x28298b[_0x396e3f(0x27e)](_0x396e3f(0x329)+_0x5da528[_0x396e3f(0x290)]+'\x20PU'),process[_0x396e3f(0x2e5)][_0x396e3f(0x2cb)](_0x28298b[_0x396e3f(0x2a6)]('\x0a')+'\x0a');}function jt(_0x1a34bb){const _0xda9e0f=_0x41868b;let _0x3c0e27=['Last\x20'+_0x1a34bb['period_days']+_0xda9e0f(0x28f)+_0x1a34bb[_0xda9e0f(0x2f8)]+'\x20sessions\x20on\x20'+_0x1a34bb[_0xda9e0f(0x206)]+_0xda9e0f(0x29d),_0xda9e0f(0x2fe)+_0x1a34bb['total_cost_usd']['toFixed'](0x2)+'\x20(estimated\x20$'+_0x1a34bb[_0xda9e0f(0x297)][_0xda9e0f(0x2c7)](0x2)+_0xda9e0f(0x184)+_0x1a34bb['total_token_units']+_0xda9e0f(0x260),_0xda9e0f(0x195)+_0x1a34bb['total_prompt_tokens']+'\x20prompt,\x20'+_0x1a34bb[_0xda9e0f(0x1ba)]+_0xda9e0f(0x20f)];for(let [_0x2442e9,_0x2d4c3e]of Object[_0xda9e0f(0x2e7)](_0x1a34bb[_0xda9e0f(0x238)]))_0x3c0e27[_0xda9e0f(0x27e)]('\x20\x20'+_0x2442e9+':\x20'+_0x2d4c3e+_0xda9e0f(0x17d));process[_0xda9e0f(0x2e5)]['write'](_0x3c0e27[_0xda9e0f(0x2a6)]('\x0a')+'\x0a');}function Mt(_0x278c68){const _0x4b553d=_0x41868b;if(_0x278c68[_0x4b553d(0x292)][_0x4b553d(0x29c)]===0x0){process[_0x4b553d(0x2e5)][_0x4b553d(0x2cb)](_0x4b553d(0x2f0)+_0x278c68[_0x4b553d(0x2d5)]+_0x4b553d(0x1dd));return;}let _0x3f3186=[_0x4b553d(0x30a)];for(let _0xaa0008 of _0x278c68[_0x4b553d(0x292)])_0x3f3186[_0x4b553d(0x27e)](_0xaa0008[_0x4b553d(0x31e)]+'\x20\x20'+String(_0xaa0008[_0x4b553d(0x1ef)])[_0x4b553d(0x223)](0xb)+'\x20\x20'+String(_0xaa0008[_0x4b553d(0x1fd)])['padStart'](0xd)+'\x20\x20'+String(_0xaa0008[_0x4b553d(0x2d2)])[_0x4b553d(0x223)](0x11));process['stdout'][_0x4b553d(0x2cb)](_0x3f3186['join']('\x0a')+'\x0a');}async function Bt(_0x4654a5,_0x2dd7c2){const _0x2e201c=_0x41868b;let _0x3fd636=await Ht(_0x4654a5['prompt'],_0x2dd7c2);_0x4654a5['model']&&(_0x3fd636['model']=_0x4654a5['model']);let {client:_0x4a7c86}=await f(_0x4654a5);try{_0x2dd7c2==='evaluate'?l(_0x4654a5,await _0x1c3190(_0x4a7c86,_0x3fd636,void 0x0),Jt):_0x2dd7c2===_0x2e201c(0x28e)?l(_0x4654a5,await _0x19a5b2(_0x4a7c86,_0x3fd636,void 0x0),Wt):l(_0x4654a5,await _0x3c3c1c(_0x4a7c86,_0x3fd636,void 0x0),Gt);}catch(_0x2ff5e8){if(!_0x1602f6(_0x2ff5e8))throw _0x2ff5e8;console[_0x2e201c(0x277)](_0x2ff5e8[_0x2e201c(0x282)]),process[_0x2e201c(0x27d)](0x1);}}async function Ht(_0x37b55c,_0x56bfec){const _0xd0e1dc=_0x41868b;let _0xc69804;try{_0xc69804=_0x37b55c&&_0x37b55c!=='-'?_0x5ea82a['readFileSync'](_0x2ec644[_0xd0e1dc(0x2bb)](_0x37b55c),_0xd0e1dc(0x205)):await I(_0x37b55c,process[_0xd0e1dc(0x32d)]);}catch(_0x45732b){console['error'](_0x56bfec+_0xd0e1dc(0x272)+_0x45732b[_0xd0e1dc(0x282)]+').'),process['exit'](0x2);}return _0xc69804||(console[_0xd0e1dc(0x277)](_0x56bfec+'\x20needs\x20a\x20JSON\x20request:\x20delegate-cli\x20'+_0x56bfec+_0xd0e1dc(0x2b1)),process[_0xd0e1dc(0x27d)](0x2)),de(_0xc69804,_0x56bfec,_0xd0e1dc(0x1ae));}function de(_0x360b2d,_0x5565e8,_0x249443){const _0x36131f=_0x41868b;let _0x512869;try{_0x512869=JSON[_0x36131f(0x220)](_0x360b2d);}catch(_0x552c5){console[_0x36131f(0x277)](_0x5565e8+':\x20'+_0x249443+'\x20is\x20not\x20valid\x20JSON\x20('+_0x552c5['message']+').'),process[_0x36131f(0x27d)](0x2);}return(typeof _0x512869!='object'||_0x512869===null||Array[_0x36131f(0x224)](_0x512869))&&(console[_0x36131f(0x277)](_0x5565e8+':\x20'+_0x249443+'\x20must\x20be\x20a\x20JSON\x20object.'),process[_0x36131f(0x27d)](0x2)),_0x512869;}function ue(_0xac5457,_0x20965d){const _0x49f66a=_0x41868b;let _0x2f1452;try{_0x2f1452=_0x5ea82a[_0x49f66a(0x2cd)](_0x2ec644['resolve'](_0xac5457),_0x49f66a(0x205));}catch(_0x10eb4f){console[_0x49f66a(0x277)](_0x20965d+_0x49f66a(0x1db)+_0x10eb4f[_0x49f66a(0x282)]+').'),process['exit'](0x2);}return de(_0x2f1452,_0x20965d,_0x49f66a(0x21d));}async function qt(_0x408256){const _0x84da55=_0x41868b;_0x408256[_0x84da55(0x32b)]===void 0x0&&(console[_0x84da55(0x277)](_0x84da55(0x1e2)),process['exit'](0x2));let _0x5517c7=ue(_0x408256['jsonSchemaPath'],_0x84da55(0x29f)),_0x25d2f4=(await I(_0x408256['prompt'],process[_0x84da55(0x32d)]))[_0x84da55(0x23d)]();_0x25d2f4||(console[_0x84da55(0x277)](_0x84da55(0x17c)),process[_0x84da55(0x27d)](0x2));let {client:_0x25c0ba}=await f(_0x408256);try{let _0x110315=await _0x32049b(_0x25c0ba,{'prompt':_0x25d2f4,'jsonSchema':_0x5517c7,'model':_0x408256['model']||process.env.MODEL||_0x3fb40c,..._0x408256[_0x84da55(0x1e5)]!==void 0x0&&{'sessionId':_0x408256['sessionId']}},void 0x0);l(_0x408256,_0x110315,_0x18c613=>{const _0x13c8ae=_0x84da55;process[_0x13c8ae(0x2e5)][_0x13c8ae(0x2cb)](JSON[_0x13c8ae(0x24f)](_0x18c613[_0x13c8ae(0x208)],null,0x2)+'\x0a');});}catch(_0x1234fd){if(!_0x477d17(_0x1234fd))throw _0x1234fd;console['error'](_0x1234fd[_0x84da55(0x282)]),process['exit'](0x1);}}function j(_0xa84671){const _0x495093=_0x41868b;process[_0x495093(0x2e5)][_0x495093(0x2cb)](_0x495093(0x2f2)+_0xa84671[_0x495093(0x22f)]+'\x20('+_0xa84671['model_version']+_0x495093(0x17a)+_0xa84671[_0x495093(0x235)][_0x495093(0x1cf)]+'\x20tokens\x0a');}function Jt(_0xa1033f){const _0x2d2449=_0x41868b;j(_0xa1033f);for(let _0xeb7187 of Object['keys'](_0xa1033f[_0x2d2449(0x1bf)])){let _0x5b329a=_0xa1033f['answers'][_0xeb7187],_0x3afc9a=_0x5b329a['type']===_0x2d2449(0x23f)?_0x2d2449(0x1aa)+_0x5b329a[_0x2d2449(0x23f)]['toFixed'](0x2):_0x5b329a[_0x2d2449(0x2ec)]===_0x2d2449(0x1e4)?_0x2d2449(0x28b)+_0x5b329a[_0x2d2449(0x1e4)]+_0x2d2449(0x1ff)+_0x5b329a[_0x2d2449(0x2da)]['toFixed'](0x2)+')':_0x2d2449(0x1c2)+_0x5b329a[_0x2d2449(0x307)]['toFixed'](0x2)+'\x20(confidence\x20'+_0x5b329a[_0x2d2449(0x2da)][_0x2d2449(0x2c7)](0x2)+')';process[_0x2d2449(0x2e5)]['write']('\x20\x20'+_0xeb7187+':\x20'+_0x3afc9a+'\x0a');}}function Wt(_0x16eb61){const _0x5a0906=_0x41868b;j(_0x16eb61),_0x16eb61[_0x5a0906(0x2bc)][_0x5a0906(0x18a)]((_0x54bbf6,_0x5d131d)=>{const _0xb40fa7=_0x5a0906;process[_0xb40fa7(0x2e5)]['write']('\x20\x20'+(_0x5d131d+0x1)+'.\x20'+_0x54bbf6['id']+'\x20\x20'+_0x54bbf6[_0xb40fa7(0x307)][_0xb40fa7(0x2c7)](0x3)+'\x20\x20(input\x20#'+_0x54bbf6[_0xb40fa7(0x325)]+')\x0a');});}function Gt(_0x5bd243){const _0x2c3da7=_0x41868b;j(_0x5bd243),process['stdout'][_0x2c3da7(0x2cb)](_0x2c3da7(0x1f2)+_0x5bd243[_0x2c3da7(0x20c)]+'\x0a');for(let _0x14d301 of _0x5bd243[_0x2c3da7(0x2bc)])process['stdout'][_0x2c3da7(0x2cb)]('\x20\x20'+_0x14d301['id']+':\x20'+_0x14d301['verdict']+'\x20(confidence\x20'+_0x14d301[_0x2c3da7(0x2da)][_0x2c3da7(0x2c7)](0x2)+')\x0a');}async function Kt(_0x6090a7){const _0x389ca1=_0x41868b;let _0x2c79da=_0x6090a7['prompt']['trim']();_0x2c79da||(console[_0x389ca1(0x277)](_0x389ca1(0x2ef)),process[_0x389ca1(0x27d)](0x2));let {client:_0x29a2c0}=await f(_0x6090a7);try{let _0x238e38=_0x2c79da==='-'?{'data':await zt(process['stdin'])}:_0x2c79da;l(_0x6090a7,await _0x5bd82d(_0x29a2c0,_0x238e38,void 0x0),_0x2d1f36=>{const _0x3290c9=_0x389ca1;process[_0x3290c9(0x2e5)][_0x3290c9(0x2cb)](_0x2d1f36['text']+'\x0a');});}catch(_0x570d9a){if(_0x2e88a1(_0x570d9a)&&(console[_0x389ca1(0x277)](_0x570d9a['message']),process[_0x389ca1(0x27d)](_0x570d9a[_0x389ca1(0x1de)]===void 0x0?0x2:0x1)),typeof _0x570d9a?.[_0x389ca1(0x244)]!=_0x389ca1(0x1d9))throw _0x570d9a;console['error'](_0x389ca1(0x267)+_0x2c79da+'\x20('+_0x570d9a[_0x389ca1(0x282)]+').'),process[_0x389ca1(0x27d)](0x2);}}async function zt(_0x3045b2){const _0x5a16a7=_0x41868b;let _0x504c6d=[];for await(let _0x31b302 of _0x3045b2)_0x504c6d[_0x5a16a7(0x27e)](Buffer[_0x5a16a7(0x2d1)](_0x31b302));return Buffer[_0x5a16a7(0x226)](_0x504c6d);}var Y=[_0x41868b(0x298),_0x41868b(0x21e),_0x41868b(0x2b2),_0x41868b(0x201),_0x41868b(0x1b9),_0x41868b(0x29f),'accept',_0x41868b(0x2e1),'cancel','delete'],X={'list':'delegations\x20list\x20<backend-project-id>','pending':'delegations\x20pending\x20<session-id>','show':_0x41868b(0x1b7),'create':_0x41868b(0x269),'claim':'delegations\x20claim\x20<delegation-id|delegate://delegation/…>','complete':_0x41868b(0x18b),'accept':'delegations\x20accept\x20<delegation-id>','dismiss':_0x41868b(0x187),'cancel':'delegations\x20cancel\x20<delegation-id>','delete':_0x41868b(0x294)};async function Vt(_0x59e272){const _0x513655=_0x41868b;let [_0x10ca12='',_0x1383e9='',..._0x228db2]=_0x59e272['operands'];Y[_0x513655(0x191)](_0x10ca12)||(console[_0x513655(0x277)]((_0x10ca12?_0x513655(0x1e8)+_0x10ca12+'.\x20':'')+_0x513655(0x25f)+Y[_0x513655(0x2a6)]('\x20|\x20')+'.'),process[_0x513655(0x27d)](0x2));let _0x37a224=_0x10ca12;_0x37a224!==_0x513655(0x201)&&(_0x59e272[_0x513655(0x1f5)]!==void 0x0||_0x59e272['contextSummary']!==void 0x0||_0x59e272['sessionId']!==void 0x0)&&(console[_0x513655(0x277)](_0x513655(0x196)),process[_0x513655(0x27d)](0x2));let _0x2acd55=(_0x37a224==='create'?_0x59e272[_0x513655(0x25d)]['slice'](0x1):_0x228db2)[_0x513655(0x2a6)]('\x20')[_0x513655(0x23d)](),_0x483df5=_0x37a224===_0x513655(0x201)||_0x37a224===_0x513655(0x29f);(_0x37a224!==_0x513655(0x201)&&!_0x1383e9||(_0x483df5?!_0x2acd55:_0x2acd55)||_0x37a224===_0x513655(0x201)&&!_0x59e272[_0x513655(0x1e5)])&&(console['error'](_0x513655(0x23e)+X[_0x37a224]),process[_0x513655(0x27d)](0x2));let _0x515b10=_0x483df5&&_0x2acd55==='-'?(await I('-',process[_0x513655(0x32d)]))[_0x513655(0x23d)]():_0x2acd55;_0x483df5&&!_0x515b10&&(console['error'](_0x513655(0x23e)+X[_0x37a224]+_0x513655(0x2c2)),process[_0x513655(0x27d)](0x2));let {client:_0x729fd4}=await f(_0x59e272);try{await Yt(_0x59e272,_0x729fd4,_0x37a224,_0x1383e9,_0x515b10);}catch(_0x4a5ed1){if(!_0x48f4da(_0x4a5ed1))throw _0x4a5ed1;console['error'](_0x4a5ed1['message']),process[_0x513655(0x27d)](0x1);}}async function Yt(_0x5ccd4f,_0x30984a,_0x1ca925,_0x290200,_0x41cce4){const _0x440fc4=_0x41868b;switch(_0x1ca925){case _0x440fc4(0x298):l(_0x5ccd4f,await _0x37e507(_0x30984a,_0x290200),Xt);return;case _0x440fc4(0x21e):l(_0x5ccd4f,await _0x375379(_0x30984a,_0x290200),_0x933a9a=>{const _0x3a8772=_0x440fc4;_0x933a9a['delegation']&&process[_0x3a8772(0x2e5)][_0x3a8772(0x2cb)]('Claimed\x20from\x20delegation\x20'+_0x933a9a['delegation']['id']+'\x20('+_0x933a9a['delegation'][_0x3a8772(0x1de)]+_0x3a8772(0x25a)),_0x933a9a[_0x3a8772(0x2e9)]['length']===0x0&&process[_0x3a8772(0x1b5)][_0x3a8772(0x2cb)]('No\x20answers\x20awaiting\x20acceptance.\x0a');for(let _0x5c8230 of _0x933a9a['pendingResults'])process['stdout'][_0x3a8772(0x2cb)]('\x0a'+_0x5c8230['id']+'\x20\x20from\x20'+(_0x5c8230[_0x3a8772(0x1a6)]??'a\x20colleague')+'\x20\x20'+(_0x5c8230[_0x3a8772(0x197)]??'')+'\x0a'+(_0x5c8230[_0x3a8772(0x2af)]?.[_0x3a8772(0x306)]??'')+'\x0a');_0x933a9a['pendingResults'][_0x3a8772(0x29c)]>0x0&&process['stderr'][_0x3a8772(0x2cb)](_0x3a8772(0x32c));});return;case _0x440fc4(0x2b2):l(_0x5ccd4f,await _0x21970a(_0x30984a,_0x290200),Q);return;case _0x440fc4(0x201):{let _0x37efc1=await _0x372b60(_0x30984a,{'sessionId':_0x5ccd4f['sessionId'],'task':_0x41cce4,..._0x5ccd4f[_0x440fc4(0x1b6)]!==void 0x0&&{'contextSummary':_0x5ccd4f[_0x440fc4(0x1b6)]},..._0x5ccd4f[_0x440fc4(0x1f5)]!==void 0x0&&{'recipient':_0x5ccd4f[_0x440fc4(0x1f5)]}});l(_0x5ccd4f,_0x37efc1,_0x2d287a=>{const _0x1528e3=_0x440fc4;_0x2d287a[_0x1528e3(0x300)]?process[_0x1528e3(0x2e5)][_0x1528e3(0x2cb)](_0x1528e3(0x22a)+_0x2d287a[_0x1528e3(0x1a5)]+'\x20to\x20'+_0x2d287a['assignedUser']['displayName']+'\x20<'+_0x2d287a['assignedUser'][_0x1528e3(0x17f)]+_0x1528e3(0x17e)):process[_0x1528e3(0x2e5)][_0x1528e3(0x2cb)](_0x1528e3(0x314)+_0x2d287a[_0x1528e3(0x1a5)]+'.\x20Share:\x20'+_0x2d287a[_0x1528e3(0x1df)]+'\x0a');});return;}case _0x440fc4(0x1b9):{let _0x417bfb=await _0x29add7(_0x30984a,_0x290200);l(_0x5ccd4f,_0x417bfb,_0x4aed5d=>{const _0x498015=_0x440fc4;Q(_0x4aed5d),process['stdout'][_0x498015(0x2cb)](_0x498015(0x1e0)+_0x4aed5d[_0x498015(0x1e5)]+'\x0a'),process['stderr'][_0x498015(0x2cb)](_0x498015(0x258)+_0x4aed5d[_0x498015(0x1e5)]+'\x20\x22<prompt>\x22\x0aAnswer\x20with:\x20delegate-cli\x20delegations\x20complete\x20'+_0x4aed5d[_0x498015(0x1a5)]+_0x498015(0x18e));});return;}case _0x440fc4(0x29f):{let {alreadyCompleted:_0xdf93b}=await _0x635c9d(_0x30984a,_0x290200,{'content':_0x41cce4});l(_0x5ccd4f,{'delegationId':_0x290200,'alreadyCompleted':_0xdf93b},_0xe5a665=>{const _0xa15706=_0x440fc4;process[_0xa15706(0x2e5)][_0xa15706(0x2cb)]((_0xe5a665[_0xa15706(0x259)]?_0xa15706(0x1f4):_0xa15706(0x1b4))+_0xa15706(0x2b3)+_0xe5a665[_0xa15706(0x1a5)]+'.\x0a');});return;}case _0x440fc4(0x2ba):{let _0x5c3313=await _0x428094(_0x30984a,_0x290200);l(_0x5ccd4f,{'delegationId':_0x290200,..._0x5c3313},_0x4e71f7=>{const _0x384a96=_0x440fc4;process['stdout'][_0x384a96(0x2cb)]((_0x4e71f7[_0x384a96(0x1ac)]?'Already\x20accepted':_0x384a96(0x222))+'\x20delegation\x20'+_0x4e71f7['delegationId']+'.\x0a');});return;}default:{let _0x231055={'dismiss':_0x4239bc,'cancel':_0x282961,'delete':_0x3b9ee4}[_0x1ca925];await _0x231055(_0x30984a,_0x290200);let _0x1bd0a8={'dismiss':'dismissed','cancel':_0x440fc4(0x1a4),'delete':_0x440fc4(0x1d0)}[_0x1ca925];l(_0x5ccd4f,{'delegationId':_0x290200,[_0x1bd0a8]:!0x0},()=>{const _0x18e627=_0x440fc4;process[_0x18e627(0x2e5)][_0x18e627(0x2cb)](''+_0x1bd0a8[0x0]['toUpperCase']()+_0x1bd0a8[_0x18e627(0x1c5)](0x1)+'\x20delegation\x20'+_0x290200+'.\x0a');});}}}function Xt(_0x11661b){const _0x5d1922=_0x41868b;if(_0x11661b[_0x5d1922(0x29c)]===0x0){process[_0x5d1922(0x1b5)]['write']('No\x20delegations.\x0a');return;}process[_0x5d1922(0x2e5)]['write']('ID'[_0x5d1922(0x1bc)](0x24)+'\x20\x20'+_0x5d1922(0x29b)['padEnd'](0x9)+'\x20\x20'+'ASSIGNEE'[_0x5d1922(0x1bc)](0x18)+_0x5d1922(0x279));for(let _0x186016 of _0x11661b)process[_0x5d1922(0x2e5)][_0x5d1922(0x2cb)](_0x186016['id'][_0x5d1922(0x1bc)](0x24)+'\x20\x20'+_0x186016['status'][_0x5d1922(0x1bc)](0x9)+'\x20\x20'+(_0x186016[_0x5d1922(0x1a6)]??'-')['padEnd'](0x18)+'\x20\x20'+(_0x186016[_0x5d1922(0x197)]??'')+'\x0a');}function Q(_0x22a9c9){const _0x491c5f=_0x41868b;process[_0x491c5f(0x2e5)][_0x491c5f(0x2cb)]('From\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x22a9c9['sourceUserEmail']??'-')+'\x0a'),_0x22a9c9[_0x491c5f(0x1eb)]&&process[_0x491c5f(0x2e5)][_0x491c5f(0x2cb)](_0x491c5f(0x1e0)+_0x22a9c9[_0x491c5f(0x1eb)]+'\x0a'),process[_0x491c5f(0x2e5)][_0x491c5f(0x2cb)](_0x491c5f(0x2d4)+(_0x22a9c9['task']??'-')+'\x0a'),_0x22a9c9[_0x491c5f(0x1b6)]&&process[_0x491c5f(0x2e5)][_0x491c5f(0x2cb)]('\x0a'+_0x22a9c9[_0x491c5f(0x1b6)]+'\x0a\x0a');}async function Qt(_0x57774f){const _0x5648ef=_0x41868b;_0x57774f[_0x5648ef(0x283)][_0x5648ef(0x23d)]()||(console['error'](_0x5648ef(0x182)),process['exit'](0x2));let {client:_0x22d5ae}=await f(_0x57774f),_0x11b1e0;try{_0x11b1e0=await _0x7cf36a(_0x22d5ae,_0x57774f[_0x5648ef(0x283)]);}catch(_0x3d7509){if(!_0x48f4da(_0x3d7509))throw _0x3d7509;console[_0x5648ef(0x277)](_0x3d7509[_0x5648ef(0x282)]),process[_0x5648ef(0x27d)](0x1);}l(_0x57774f,_0x11b1e0,_0x444a74=>{const _0x3b75c0=_0x5648ef;_0x444a74[_0x3b75c0(0x29c)]===0x0&&process[_0x3b75c0(0x1b5)][_0x3b75c0(0x2cb)](_0x3b75c0(0x309)+_0x57774f[_0x3b75c0(0x283)][_0x3b75c0(0x23d)]()+'\x22.\x0a');for(let _0x5c497b of _0x444a74)process[_0x3b75c0(0x2e5)][_0x3b75c0(0x2cb)](_0x5c497b[_0x3b75c0(0x17f)][_0x3b75c0(0x1bc)](0x20)+'\x20\x20'+_0x5c497b['displayName']+'\x0a');});}async function Zt(_0x22e439){const _0x422f4f=_0x41868b;_0x22e439[_0x422f4f(0x2c4)]===_0x422f4f(0x24b)&&(console[_0x422f4f(0x277)](_0x422f4f(0x27a)),process[_0x422f4f(0x27d)](0x2));let _0x528325=$(_0xe65834()),_0x175f24=_0x22e439[_0x422f4f(0x218)];if(_0x22e439[_0x422f4f(0x2c4)]){let _0x45b5c5=_0x22e439[_0x422f4f(0x2c4)];await _0x4559d4({'env':_0x45b5c5,'tenant':_0x22e439['tenant']??C(_0x528325,_0x56878d[_0x45b5c5]),'skipEnvCheck':_0x175f24});return;}let _0x3b4ae8=_0x22e439[_0x422f4f(0x313)]??ce();if(_0x3b4ae8){await _0x4559d4({'baseUrl':_0x3b4ae8,'tenant':_0x22e439[_0x422f4f(0x2e2)]??C(_0x528325,_0x3b4ae8),'skipEnvCheck':_0x175f24});return;}if(_0x528325?.[_0x422f4f(0x291)]){await _0x4559d4({'baseUrl':_0x528325[_0x422f4f(0x291)],'tenant':_0x22e439[_0x422f4f(0x2e2)]??_0x528325[_0x422f4f(0x250)],'skipEnvCheck':_0x175f24});return;}console[_0x422f4f(0x277)]('First\x20login\x20requires\x20--env\x20or\x20--url.\x20Usage:\x20delegate-cli\x20login\x20--env\x20<alpha|staging|production>,\x20or\x20delegate-cli\x20login\x20--url\x20https://automationsuite.contoso.com'),process[_0x422f4f(0x27d)](0x2);}function C(_0x314a12,_0x560d65){const _0x372628=_0x41868b;return _0x314a12?.[_0x372628(0x291)]&&en(_0x314a12[_0x372628(0x291)],_0x560d65)?_0x314a12[_0x372628(0x250)]:void 0x0;}function en(_0x2c9971,_0x8c09fe){const _0x584e2d=_0x41868b;try{return new URL(_0x2c9971)['origin']===new URL(_0x8c09fe)[_0x584e2d(0x2a0)];}catch{return!0x1;}}async function tn(_0x4cea76){const _0x301670=_0x41868b;O()&&(console[_0x301670(0x277)](_0x301670(0x2dc)),process[_0x301670(0x27d)](0x2));let _0x434c25=await _0x25c80a();if(_0x434c25||(console[_0x301670(0x277)](nn()),process['exit'](0x2)),_0x4cea76[_0x301670(0x23d)]()){let _0x31900f=await _0x214602(_0x434c25,_0x4cea76);_0xdee92f(_0x31900f)||(console[_0x301670(0x277)]('Tenant\x20not\x20switched:\x20could\x20not\x20write\x20'+_0xe65834()+_0x301670(0x322)+_0x434c25[_0x301670(0x250)]+'.'),process[_0x301670(0x27d)](0x1)),console[_0x301670(0x288)]('Tenant:\x20'+_0x31900f[_0x301670(0x250)]+'\x20('+_0x31900f[_0x301670(0x1dc)]+_0x301670(0x26f)+_0xe65834());return;}on(await _0x3dead0(_0x434c25),_0x434c25);}function nn(){const _0x1ec92b=_0x41868b;if(_0x5ea82a[_0x1ec92b(0x2d6)](_0xe65834()))return _0x1ec92b(0x31c);let _0x173d20=L();return $(_0x173d20)?'No\x20CLI\x20login\x20to\x20switch:\x20the\x20CLI\x20is\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20'+_0x173d20+_0x1ec92b(0x28c):_0x1ec92b(0x2bd);}function on(_0x302528,_0x37385b){const _0x5e2177=_0x41868b;let _0x4a0b64=_0x302528[_0x5e2177(0x20a)](_0x517c58=>_0x517c58['id']===_0x37385b[_0x5e2177(0x1dc)]?'*\x20'+_0x517c58[_0x5e2177(0x25e)]+_0x5e2177(0x1af):'\x20\x20'+_0x517c58[_0x5e2177(0x25e)]);process[_0x5e2177(0x2e5)][_0x5e2177(0x2cb)](_0x5e2177(0x316)+(_0x37385b[_0x5e2177(0x30b)]??_0x37385b[_0x5e2177(0x2e0)])+':\x0a'+_0x4a0b64['join']('\x0a')+'\x0a'),_0x302528[_0x5e2177(0x29c)]>0x1&&process[_0x5e2177(0x2e5)][_0x5e2177(0x2cb)]('Switch\x20with:\x20delegate-cli\x20tenant\x20<name>\x0a');}function sn(_0x1710b5){const _0x354df7=_0x41868b;return _0x1710b5?.['response']?.[_0x354df7(0x1de)]===0x191||/401/['test'](String(_0x1710b5?.[_0x354df7(0x282)]??''));}function _0x31fd(){const _0x15b80e=['complete\x20needs\x20--json-schema\x20<file>:\x20delegate-cli\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22.','\x20into\x20','choice','sessionId','userId','799270ezeeOy','Unknown\x20delegations\x20action:\x20','.\x20Use\x20','Token:\x20\x20\x20\x20\x20\x20\x20\x20expires\x20','sourceTitle','.\x20Use:\x20','bundledSkillsPath','preloadSkills','token_units','stream-json','subcommand','Rubric\x20','limit','Already\x20answered','delegateTo','.\x20Use\x20`delegate-cli\x20usage`,\x20`usage\x20activity`\x20or\x20`usage\x20daily`.','Unknown\x20flag:\x20','Renamed\x20','--interop','Spending:\x20\x20\x20\x20\x20$','a\x20file\x20path','Unknown\x20usage\x20view:\x20','prompt_tokens','isTTY','\x20(confidence\x20','\x20(in\x20','create','tool','--quiet','thinking','utf-8','active_days','self-hosted\x20(Automation\x20Suite\x20/\x20Dedicated)','structured','off','map','period_end','rubric_version','--days\x20applies\x20to\x20`delegate-cli\x20usage\x20activity|daily`;\x20the\x20summary\x20covers\x20the\x20current\x20month.','You>\x20','\x20completion','No\x20sessions\x20on\x20page\x20','turn_start','--days','evaluate','--skills-path','byoWarning','noSecurity','24cgxAMf','skipEnvCheck','--no-security','parentSessionId','Cartographer:\x20','expiresAt','the\x20JSON\x20schema','pending','--session\x20applies\x20to\x20the\x20`delegate-cli\x20usage`\x20summary\x20only.','parse','\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','Accepted','padStart','isArray','Session:\x20','concat','\x20PU\x20beyond\x20quota','\x20(resume\x20with\x20--session\x20','--summary','Delegated\x20','max','--headless','check','replace','model','\x20<title>','Source:\x20\x20\x20\x20\x20\x20\x20','/exit','isDesktopFallback','Forked\x20','usage','UiPath\x20Cloud','stop','models_breakdown','production','now','finish','once','trim','Usage:\x20delegate-cli\x20','probability','2430228QWQKWj','More:\x20delegate-cli\x20sessions\x20--page\x20','Enter\x20sends\x20a\x20message.\x20/exit\x20or\x20EOF\x20exits;\x20Ctrl+C\x20stops\x20and\x20exits.\x0a','all','code','.aria','exitCode','--print','sessions','--help','\x20of\x20session\x20','localhost','--runner-url','--worker-id','No\x20CLI\x20login\x20found\x20—\x20nothing\x20to\x20remove.','stringify','tenantName','13890gdNbKC','\x20\x20\x20\x20','\x20—\x20sign\x20out\x20in\x20the\x20Delegate\x20app\x20to\x20clear\x20that.','cleanup','interopPath','AUTH_TOKEN_FILE\x20\x27','--cartographer','Work\x20on\x20it\x20with:\x20delegate-cli\x20--session\x20','alreadyCompleted',').\x0a','a\x20JSON\x20schema\x20file','[env=','operands','name','Use:\x20delegate-cli\x20delegations\x20','\x20token\x20units)','--page','Unknown\x20sessions\x20action:\x20','catch','xhigh','--attach:\x20no\x20such\x20file\x20or\x20folder:\x20','\x20|\x20','transcribe:\x20cannot\x20read\x20','high','delegations\x20create\x20--session\x20<id>\x20[--to\x20<email|name>]\x20[--summary\x20<text>]\x20\x22<task>\x22|-','delegate-cli','limit_enabled','session_start','tokenExpiresAt','\x20not\x20found.',')\x20—\x20saved\x20to\x20','\x20this\x20month','a\x20project\x20id',':\x20cannot\x20read\x20the\x20request\x20(','Usage:\x20delegate-cli\x20sessions\x20[list]\x20[--page\x20N]\x20[--limit\x20N]\x20[--include-subagents]','\x20--turn\x20','tool_call','file','error','a\x20number','\x20\x20TASK\x0a','--env\x20localhost\x20has\x20no\x20OAuth\x20flow;\x20pick\x20alpha,\x20staging,\x20or\x20production.','Usage:\x20delegate-cli\x20sessions\x20','a\x20format\x20(','exit','push','--skip-env-check','effort','print','message','prompt','UPDATED','models','--preload-skill','Base\x20URL:\x20\x20\x20\x20\x20','log','\x20\x20TITLE\x0a','--tenant\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Switch\x20tenants\x20with:\x20delegate-cli\x20tenant\x20<name>','choice\x20',',\x20whose\x20tenant\x20is\x20chosen\x20in\x20the\x20app.\x20Run\x20`delegate-cli\x20login\x20--env\x20<env>`\x20for\x20a\x20CLI\x20login\x20of\x20your\x20own.','noComputerUse','rerank','\x20days:\x20','session_consumed_pu','baseUrl','daily_usage','text','delegations\x20delete\x20<delegation-id>','\x27\x20is\x20empty.','85825bkZuqO','estimated_cost_usd','list','Deleted\x20session\x20','description','STATUS','length','\x20active\x20days','Structured\x20output\x20failed:\x20','complete','origin','a\x20skill\x20name','deployment','locked','Organization:\x20','\x20must\x20be\x20a\x20whole\x20number\x20','join','delegations','toolName','a\x20turn\x20id','%\x20of\x20','Usage:\x20delegate-cli\x20sessions\x20cancel\x20<session-id>\x20--turn\x20<turn-id>','auth.json','--effort','✓\x20Done\x0a','result','workingDirectory','\x20<file.json>,\x20or\x20-\x20to\x20read\x20stdin.','show','\x20delegation\x20','rename','startsWith','Organization\x20\x20','runnerUrl','--attach','358110BMEtvx','accept','resolve','results','No\x20CLI\x20login\x20found.\x20Run\x20`delegate-cli\x20login\x20--env\x20<alpha|staging|production>`\x20first.','title','verify','Removed\x20','\x20<id>','\x20(stdin\x20was\x20empty)','\x20in\x20progress\x20on\x20session\x20','env','Licensing:\x20\x20\x20\x20','UIPATH_BASE_URL\x20is\x20unusable.\x20','toFixed','--tenant\x20requires\x20a\x20tenant\x20name.','alpha','accessToken','write','delete','readFileSync','lastType','):\x0a\x0a','Missing\x20prompt.\x20Pass\x20it\x20as\x20an\x20argument,\x20pipe\x20it\x20via\x20stdin,\x20or\x20run\x20`delegate-cli\x20--help`.','from','completion_tokens','turnId','Task\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','period_days','existsSync','org-users','getSessionId','\x20\x20\x20\x20BYO\x20warning:\x20','confidence','bind','Auth\x20comes\x20from\x20AUTH_TOKEN/TENANT_ID/ORG_ID\x20—\x20set\x20TENANT_ID\x20and\x20TENANT_SLUG\x20to\x20change\x20the\x20tenant.','fork','No\x20CLI\x20login\x20found.\x20Note:\x20the\x20CLI\x20is\x20currently\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20','attachments','organizationId','dismiss','tenant','Owner\x20\x20\x20\x20\x20\x20\x20\x20\x20','total_quota_pu','stdout','--output-format','entries','cancel','pendingResults','a\x20deployment\x20URL,\x20e.g.\x20https://automationsuite.contoso.com','login','type','Turn:\x20','--url','transcribe\x20needs\x20audio:\x20delegate-cli\x20transcribe\x20<file>,\x20or\x20-\x20to\x20read\x20stdin.','No\x20usage\x20in\x20the\x20last\x20','--no-computer-use','Model\x20','stack','\x0a⚠️\x20\x20Auth\x20expired.\x20Opening\x20browser\x20to\x20re-login…\x0a',',\x20got\x20','asyncIterator','--to','total_sessions','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.','updatedAt','a\x20session\x20id','\x0a🤔\x20','a\x20briefing\x20text','Cost:\x20\x20\x20$','keepAlive','assignedUser','onEvent','skip','verbose','workerId','host','content','score','280hsIItK','No\x20one\x20matches\x20\x22','Date\x20\x20\x20\x20\x20\x20\x20\x20Token\x20units\x20\x20Prompt\x20tokens\x20\x20Completion\x20tokens','orgLogicalName','\x27\x20cannot\x20be\x20read:\x20','Deployment:\x20\x20\x20','page','Session\x20','.\x20Use\x20alpha\x20|\x20staging\x20|\x20production\x20|\x20localhost.','quiet','Title\x20\x20\x20\x20\x20\x20\x20\x20\x20','url','Created\x20delegation\x20','\x0aUse\x20with:\x20delegate-cli\x20--model\x20<id>\x20\x22<prompt>\x22\x0a','Tenants\x20of\x20','unknown','rejection','whoami','test','end','The\x20saved\x20CLI\x20login\x20could\x20not\x20be\x20refreshed.\x20Run\x20`delegate-cli\x20login`\x20again.','Could\x20not\x20check\x20BYO\x20model\x20warnings:\x20','date','\x20(Delegate\x20desktop\x20app\x20fallback)','detail','add',';\x20the\x20saved\x20login\x20still\x20uses\x20','\x20(resets\x20','destroy','index','\x0aStopping…\x20(Ctrl+C\x20again\x20to\x20force\x20exit)\x0a','--to\x20and\x20--summary\x20apply\x20to\x20`delegate-cli\x20delegations\x20create`\x20only.','noMemory','Session:\x20\x20\x20\x20\x20\x20','toString','jsonSchemaPath','\x0aAccept\x20one\x20with:\x20delegate-cli\x20delegations\x20accept\x20<id>\x0a','stdin','SIGINT','medium','cartographer','),\x20','\x20requires\x20','complete\x20needs\x20a\x20prompt:\x20delegate-cli\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22,\x20or\x20-\x20to\x20read\x20stdin.','\x20token\x20units','>.\x0a','email','Tenant:\x20\x20\x20\x20\x20\x20\x20','monthly_limit_usd','Usage:\x20delegate-cli\x20org-users\x20<name\x20or\x20email\x20prefix>','transcribe','\x20from\x20','outputFormat',']\x20Backend\x20URL:\x20','delegations\x20dismiss\x20<delegation-id>','isError','\x20min)','forEach','delegations\x20complete\x20<delegation-id>\x20\x22<answer>\x22|-','close','initialize','\x20\x22<answer>\x22\x0a','projectId','headless','includes','36297110viadte','extra_pool_consumed_pu','--output-format\x20','Tokens:\x20','--to,\x20--summary\x20and\x20--session\x20apply\x20to\x20`delegate-cli\x20delegations\x20create`\x20only.','task','Pass\x20either\x20--env\x20(a\x20named\x20cloud)\x20or\x20--url\x20(any\x20other\x20deployment),\x20not\x20both.','structuredError','\x20\x22<prompt>\x22\x0a','days','\x20\x20(sub-agent\x20of\x20','--url\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Other\x20commands\x20follow\x20the\x20saved\x20login,\x20or\x20--backend\x20<url>.','Continue\x20it\x20with:\x20delegate-cli\x20--session\x20','3297gDaXfS',',\x20or\x20holds\x20no\x20message\x20','--session','help','cwd','cancelled','delegationId','assignedUserEmail','Bearer\x20','--model','model_id','probability\x20','--no-memory','alreadyAccepted','883326iNNAFO','the\x20request','\x20(current)','includeSubAgents','--limit','--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`delegate-cli\x20sessions`\x20only.','unknown\x20slug','Answered','stderr','contextSummary','delegations\x20show\x20<delegation-id|delegate://delegation/…>','done','claim','total_completion_tokens','Invalid\x20--env:\x20','padEnd','logout','environment\x20variables\x20(AUTH_TOKEN/TENANT_ID/ORG_ID)','answers','Invalid\x20--output-format:\x20','--keep-alive','score\x20','restore','Delegation\x20\x20\x20\x20','slice','--turn','--days\x20applies\x20to\x20`delegate-cli\x20usage\x20activity|daily`\x20only.','an\x20effort\x20tier','toISOString','\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).','getTurnUsageHistory','--verbose','a\x20directory\x20path','hide','total_tokens','deleted','backendUrl','lockReason','\x20of\x20a\x20$','daily','--working-dir','isSafeInteger','data','version','string','--authority',':\x20cannot\x20read\x20the\x20JSON\x20schema\x20(','tenantId','\x20days.\x0a','status','deepLink','Session\x20\x20\x20\x20\x20\x20\x20','--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`delegate-cli\x20sessions\x20[list]`\x20only.'];_0x31fd=function(){return _0x15b80e;};return _0x31fd();}var d={'lastType':null,'quiet':!0x1},rn=_0x49173a=>{const _0x44d333=_0x41868b;switch(_0x49173a[_0x44d333(0x2ec)]){case _0x44d333(0x26c):_0x49173a[_0x44d333(0x1e5)]&&_0x49173a[_0x44d333(0x1e5)]!==d[_0x44d333(0x1e5)]&&(process[_0x44d333(0x1b5)][_0x44d333(0x2cb)](_0x44d333(0x225)+_0x49173a['sessionId']+_0x44d333(0x228)+_0x49173a[_0x44d333(0x1e5)]+')\x0a'),d[_0x44d333(0x1e5)]=_0x49173a['sessionId']);break;case _0x44d333(0x211):_0x49173a[_0x44d333(0x2d3)]&&_0x49173a[_0x44d333(0x2d3)]!==d['turnId']&&(d[_0x44d333(0x2ce)]!==null&&process[_0x44d333(0x1b5)][_0x44d333(0x2cb)]('\x0a'),process[_0x44d333(0x1b5)][_0x44d333(0x2cb)](_0x44d333(0x2ed)+_0x49173a[_0x44d333(0x2d3)]+'\x20(cancel\x20with:\x20delegate-cli\x20sessions\x20cancel\x20'+_0x49173a[_0x44d333(0x1e5)]+_0x44d333(0x274)+_0x49173a[_0x44d333(0x2d3)]+')\x0a'),d['turnId']=_0x49173a[_0x44d333(0x2d3)],d[_0x44d333(0x2ce)]=_0x44d333(0x211));break;case'thinking':_0x49173a[_0x44d333(0x306)]&&!d[_0x44d333(0x311)]&&(d['lastType']!==_0x44d333(0x204)&&process[_0x44d333(0x1b5)][_0x44d333(0x2cb)](_0x44d333(0x2fc)),process[_0x44d333(0x1b5)][_0x44d333(0x2cb)](_0x49173a[_0x44d333(0x306)]),d[_0x44d333(0x2ce)]=_0x44d333(0x204));break;case _0x44d333(0x275):d[_0x44d333(0x2ce)]!==null&&process[_0x44d333(0x1b5)]['write']('\x0a'),process[_0x44d333(0x1b5)]['write']('🔧\x20'+(_0x49173a[_0x44d333(0x2a8)]??_0x44d333(0x202))+'\x0a'),d[_0x44d333(0x2ce)]='tool_call';break;case _0x44d333(0x282):_0x49173a[_0x44d333(0x306)]&&(d[_0x44d333(0x2ce)]!==_0x44d333(0x282)&&d[_0x44d333(0x2ce)]!==null&&process[_0x44d333(0x2e5)][_0x44d333(0x2cb)]('\x0a'),process[_0x44d333(0x2e5)][_0x44d333(0x2cb)](_0x49173a['content']),d[_0x44d333(0x2ce)]='message');break;case'error':d[_0x44d333(0x2ce)]!==null&&process[_0x44d333(0x1b5)][_0x44d333(0x2cb)]('\x0a'),process[_0x44d333(0x1b5)][_0x44d333(0x2cb)]('✗\x20'+(_0x49173a[_0x44d333(0x277)]??_0x44d333(0x277))+'\x0a'),d['lastType']='error';break;case _0x44d333(0x1b8):(d[_0x44d333(0x2ce)]===_0x44d333(0x282)||d[_0x44d333(0x2ce)]==='thinking')&&process[_0x44d333(0x2e5)][_0x44d333(0x2cb)]('\x0a'),process[_0x44d333(0x1b5)][_0x44d333(0x2cb)](_0x44d333(0x2ae)),d[_0x44d333(0x2ce)]='done';break;}};function Z(_0x392f3d,_0x42d2db,_0x496a64){const _0x564ff2=_0x41868b;let _0x40c981=_0x392f3d[_0x564ff2(0x22f)]||process.env.MODEL;return{'backendUrl':_0x496a64,'auth':_0x42d2db,'enableComputerUse':!_0x392f3d['headless']&&!_0x392f3d[_0x564ff2(0x28d)],'autoSpawnInterop':!_0x392f3d[_0x564ff2(0x190)],'enableConnections':!_0x392f3d['noConnections'],'enableSecurity':!_0x392f3d[_0x564ff2(0x216)],'keepInteropAlive':_0x392f3d[_0x564ff2(0x2ff)],..._0x392f3d[_0x564ff2(0x328)]?{'enableMemory':!0x1}:{},..._0x392f3d[_0x564ff2(0x1ee)][_0x564ff2(0x29c)]>0x0?{'preloadSkills':_0x392f3d[_0x564ff2(0x1ee)]}:{},..._0x40c981?{'model':_0x40c981}:{},..._0x392f3d[_0x564ff2(0x18f)]?{'projectId':_0x392f3d['projectId']}:{},..._0x392f3d[_0x564ff2(0x2b0)]?{'workingDirectory':_0x392f3d[_0x564ff2(0x2b0)]}:{},..._0x392f3d['bundledSkillsPath']?{'bundledSkillsPath':_0x392f3d[_0x564ff2(0x1ed)]}:{},..._0x392f3d[_0x564ff2(0x280)]?{'effort':_0x392f3d[_0x564ff2(0x280)]}:{},..._0x392f3d['sessionId']?{'sessionId':_0x392f3d['sessionId']}:{},..._0x392f3d[_0x564ff2(0x303)]?{'verbose':!0x0}:{}};}async function an(_0x3e2e60){const _0x3f3a2b=_0x41868b;let _0x23381a=_0x3e2e60[_0x3f3a2b(0x185)]!==_0x3f3a2b(0x293),_0x117be4=_0x3e2e60[_0x3f3a2b(0x32b)]===void 0x0?null:ue(_0x3e2e60[_0x3f3a2b(0x32b)],_0x3f3a2b(0x26a)),_0x1dac65=!_0x23381a&&!_0x117be4&&!_0x3e2e60['print']&&_0x3e2e60[_0x3f3a2b(0x283)]!=='-'&&!!process['stdin'][_0x3f3a2b(0x1fe)]&&!!process[_0x3f3a2b(0x2e5)][_0x3f3a2b(0x1fe)],_0x22fe3d=_0x1dac65?_0x3e2e60[_0x3f3a2b(0x283)]['trim']():await I(_0x3e2e60[_0x3f3a2b(0x283)],process[_0x3f3a2b(0x32d)]);if(!_0x1dac65&&!_0x22fe3d&&(console['error'](_0x3f3a2b(0x2d0)),process[_0x3f3a2b(0x27d)](0x2)),!_0x23381a){await ee(_0x3e2e60,_0x22fe3d,_0x1dac65,null,_0x117be4);return;}let _0x139514=!0x1,_0x40e5b7=_0x531fc9=>{const _0x48badf=_0x3f3a2b;_0x139514=!0x0,S(_0x5a7794(_0x531fc9)),(_0x531fc9[_0x48badf(0x188)]||_0x531fc9[_0x48badf(0x199)])&&(process[_0x48badf(0x246)]=0x1);},_0x2ea56c=Date['now']();try{await ee(_0x3e2e60,_0x22fe3d,!0x1,_0x40e5b7,_0x117be4);}catch(_0x5dbd98){if(_0x139514)throw _0x5dbd98;process['stderr']['write']((_0x5dbd98 instanceof Error?_0x5dbd98[_0x3f3a2b(0x2f3)]??_0x5dbd98['message']:String(_0x5dbd98))+'\x0a'),_0x40e5b7(new _0x3abd42(_0x2ea56c)[_0x3f3a2b(0x23b)]({'endedAtMs':Date[_0x3f3a2b(0x23a)](),'usage':[],'error':_0x5dbd98}));}}async function ee(_0x21321c,_0x5b9701,_0x4b9b58,_0x537a75,_0x3c3fed){const _0x3eb862=_0x41868b;d={'lastType':null,'quiet':_0x21321c[_0x3eb862(0x311)]};let _0x126af7=new Set(),_0x24d74c=_0x33db54=>{const _0x2aa64a=_0x3eb862;(!_0x537a75||_0x33db54['type']===_0x2aa64a(0x26c)||_0x33db54['type']===_0x2aa64a(0x211))&&rn(_0x33db54);for(let _0x534a98 of _0x126af7)_0x534a98(_0x33db54);},_0x3ff5f4=await P(),_0x2bd2b4=new _0x1ca352();_0x2bd2b4[_0x3eb862(0x301)](_0x24d74c);let _0x36334f=_0x1e0b2f(_0x21321c['env'],_0x3ff5f4,_0x21321c[_0x3eb862(0x1d1)]);F(_0x21321c['env'],_0x21321c[_0x3eb862(0x1d1)],_0x36334f);let _0x14ba60=Z(_0x21321c,_0x3ff5f4,_0x36334f),_0x4ec405=!0x1,_0x286200=!0x1,_0x933bdc,_0x35e807=()=>_0x933bdc??=_0x2bd2b4[_0x3eb862(0x324)](),_0x32eb13=()=>{const _0x32df16=_0x3eb862;_0x286200&&process[_0x32df16(0x27d)](0x82),_0x286200=!0x0,process[_0x32df16(0x1b5)]['write'](_0x32df16(0x326)),_0x4ec405&&_0x2bd2b4[_0x32df16(0x2e8)]()[_0x32df16(0x263)](_0x41aa0d=>console[_0x32df16(0x277)](_0x41aa0d))['then'](_0x35e807)['then'](()=>process[_0x32df16(0x27d)](0x82),_0x2807da=>{const _0x278a7c=_0x32df16;console['error'](_0x2807da),process[_0x278a7c(0x27d)](0x82);});};process['on'](_0x3eb862(0x32e),_0x32eb13);let _0x28b63c=_0x21321c['attachments'],_0x1cf509=async _0x295458=>{const _0x416eaf=_0x3eb862;let _0x12782d=_0x28b63c;_0x28b63c=[];let _0xbb92e2=()=>_0x2bd2b4['sendMessage'](_0x295458,{'attachments':_0x12782d});try{return await _0xbb92e2();}catch(_0x2ff199){if(_0x286200||!sn(_0x2ff199)||!process[_0x416eaf(0x32d)][_0x416eaf(0x1fe)]||_0x21321c[_0x416eaf(0x2c4)]===_0x416eaf(0x24b)||!(_0x21321c[_0x416eaf(0x2c4)]||_0x3ff5f4[_0x416eaf(0x291)]))throw _0x2ff199;process[_0x416eaf(0x1b5)]['write'](_0x416eaf(0x2f4));let _0x1bb99b=_0x2bd2b4[_0x416eaf(0x2d8)]()??_0x21321c[_0x416eaf(0x1e5)],_0x14ad48=await _0x4559d4(_0x21321c['env']?{'env':_0x21321c[_0x416eaf(0x2c4)],'tenant':C(_0x3ff5f4,_0x56878d[_0x21321c[_0x416eaf(0x2c4)]]),'skipEnvCheck':!0x0}:{'baseUrl':_0x3ff5f4[_0x416eaf(0x291)],'tenant':_0x3ff5f4['tenantName'],'skipEnvCheck':!0x0}),_0x45ad87={'text':'','failed':!0x1,'sessionId':_0x1bb99b};return _0x286200||(_0x4ec405=!0x1,await _0x35e807(),_0x286200)?_0x45ad87:(_0x2bd2b4=new _0x1ca352(),_0x933bdc=void 0x0,_0x2bd2b4[_0x416eaf(0x301)](_0x24d74c),_0x3ff5f4=_0x14ad48,await _0x2bd2b4[_0x416eaf(0x18d)]({...Z(_0x21321c,_0x3ff5f4,_0x36334f),..._0x1bb99b?{'sessionId':_0x1bb99b}:{}}),_0x4ec405=!0x0,_0x286200?_0x45ad87:_0xbb92e2());}};try{if(await _0x2bd2b4['initialize'](_0x14ba60),_0x4ec405=!0x0,_0x286200)return;if(_0x4b9b58)await dn({'prompt':_0x5b9701,'sendMessage':_0x1cf509,'onSigint':_0x32eb13});else{if(_0x537a75||_0x3c3fed){let _0x4197f6=_0x21321c['outputFormat']===_0x3eb862(0x1f0)?_0x4ae1ab=>S(_0x350ef1(_0x4ae1ab)):()=>{},_0x1cdc1e=await _0x316c9e({'onEvent':_0x13c187=>(_0x126af7[_0x3eb862(0x321)](_0x13c187),()=>{const _0x5382c3=_0x3eb862;_0x126af7[_0x5382c3(0x2cc)](_0x13c187);}),'sendMessage':_0x427965=>_0x1cf509(_0x427965),'getSessionId':()=>_0x2bd2b4['getSessionId'](),'getTurnUsageHistory':_0x385cc1=>_0x2bd2b4[_0x3eb862(0x1cb)](_0x385cc1),'complete':_0x51129=>_0x2bd2b4['complete'](_0x51129)},_0x5b9701,void 0x0,_0x4197f6,_0x3c3fed?{'outputSchema':_0x3c3fed}:void 0x0);_0x537a75?_0x537a75(_0x1cdc1e):ln(_0x1cdc1e);}else await _0x1cf509(_0x5b9701);}}catch(_0x2ce14d){if(!_0x286200)throw _0x2ce14d;}finally{try{await _0x35e807();}finally{process[_0x3eb862(0x209)]('SIGINT',_0x32eb13),_0x286200&&(process[_0x3eb862(0x246)]=0x82);}}}function ln(_0x443c82){const _0xc9a059=_0x41868b;_0x443c82['structuredError']?(console['error'](_0xc9a059(0x29e)+_0x443c82['structuredError'][_0xc9a059(0x282)]),process[_0xc9a059(0x246)]=0x1):_0x443c82['isError']?(console[_0xc9a059(0x277)]('No\x20structured\x20output:\x20the\x20turn\x20failed\x20('+_0x443c82[_0xc9a059(0x277)]+').'),process[_0xc9a059(0x246)]=0x1):process[_0xc9a059(0x2e5)][_0xc9a059(0x2cb)](JSON[_0xc9a059(0x24f)](_0x443c82['structured'],null,0x2)+'\x0a');}function cn(_0x477811,_0x17859f){const _0x4b613f=_0x41868b;let _0x48f59f=process[_0x4b613f(0x2e5)][_0x4b613f(0x2cb)][_0x4b613f(0x2db)](process[_0x4b613f(0x2e5)]),_0x5befeb=!0x1;return process[_0x4b613f(0x2e5)][_0x4b613f(0x2cb)]=(..._0x492907)=>{if(!_0x5befeb)return _0x48f59f(..._0x492907);_0x4a3a04(_0x17859f,0x0),_0x3cf1f3(_0x17859f,0x0);let _0x4c7c80=_0x48f59f(..._0x492907);return _0x477811['prompt'](!0x0),_0x4c7c80;},{'show':()=>{const _0x19302d=_0x4b613f;_0x5befeb=!0x0,_0x477811[_0x19302d(0x283)]();},'hide':()=>{_0x5befeb=!0x1;},'restore':()=>{const _0x596a8d=_0x4b613f;_0x5befeb=!0x1,process[_0x596a8d(0x2e5)][_0x596a8d(0x2cb)]=_0x48f59f;}};}async function dn({prompt:_0x12fcf3,sendMessage:_0x17d85f,onSigint:_0x39b127}){const _0x366eac=_0x41868b;let _0x32ddf7=_0x5c5eb5({'input':process[_0x366eac(0x32d)],'output':process[_0x366eac(0x1b5)],'terminal':!0x0,'prompt':_0x366eac(0x20e)}),_0x556326=cn(_0x32ddf7,process[_0x366eac(0x1b5)]),_0x23cd61=_0x32ddf7[Symbol[_0x366eac(0x2f6)]](),_0x3ebcb6=!0x1;_0x32ddf7[_0x366eac(0x23c)](_0x366eac(0x18c),()=>{const _0x2481d3=_0x366eac;_0x3ebcb6=!0x0,_0x556326[_0x2481d3(0x1ce)]();});let _0x3de809=!0x1,_0x51f60f=()=>{const _0x34e591=_0x366eac;_0x3de809=!0x0,_0x32ddf7[_0x34e591(0x18c)](),_0x39b127();};_0x32ddf7['on'](_0x366eac(0x32e),_0x51f60f),process[_0x366eac(0x1b5)][_0x366eac(0x2cb)](_0x366eac(0x242));try{if(_0x12fcf3&&await _0x17d85f(_0x12fcf3),_0x3de809)return;_0x3ebcb6||_0x556326[_0x366eac(0x2b2)]();for await(let _0x47d452 of _0x23cd61){if(_0x556326[_0x366eac(0x1ce)](),_0x3de809)break;let _0x59bc26=_0x47d452[_0x366eac(0x23d)]();if(_0x59bc26===_0x366eac(0x232))break;_0x59bc26&&await _0x17d85f(_0x59bc26),_0x3ebcb6||_0x556326[_0x366eac(0x2b2)]();}}finally{_0x556326[_0x366eac(0x1c3)](),_0x32ddf7[_0x366eac(0x209)](_0x366eac(0x32e),_0x51f60f),_0x32ddf7['close']();}}async function un(){const _0x2d83b0=_0x41868b;let _0xd69d8c=ft(process['argv'][_0x2d83b0(0x1c5)](0x2));if(_0xd69d8c[_0x2d83b0(0x185)]===_0x2d83b0(0x293)){await te(_0xd69d8c);return;}let _0x5d7a5f=gt();try{await te(_0xd69d8c);}finally{_0x5d7a5f();}}async function te(_0x464edb){const _0x14cbf2=_0x41868b;if(_0x464edb['help']){ht();return;}if(_0x464edb[_0x14cbf2(0x1d8)]){console[_0x14cbf2(0x288)](wt());return;}if(_0x464edb[_0x14cbf2(0x1f1)]==='login'){await Zt(_0x464edb);return;}if(_0x464edb[_0x14cbf2(0x1f1)]==='tenant'){await tn(_0x464edb[_0x14cbf2(0x283)]);return;}if(_0x464edb['subcommand']===_0x14cbf2(0x1bd)){await bt();return;}if(_0x464edb['subcommand']===_0x14cbf2(0x319)){await vt(_0x464edb);return;}if(_0x464edb[_0x14cbf2(0x1f1)]==='models'){await $t(_0x464edb);return;}if(_0x464edb[_0x14cbf2(0x1f1)]===_0x14cbf2(0x22d)){await Rt(_0x464edb);return;}if(_0x464edb[_0x14cbf2(0x1f1)]===_0x14cbf2(0x248)){await xt(_0x464edb);return;}if(_0x464edb['subcommand']==='usage'){await Pt(_0x464edb);return;}if(_0x464edb[_0x14cbf2(0x1f1)]===_0x14cbf2(0x213)||_0x464edb[_0x14cbf2(0x1f1)]===_0x14cbf2(0x28e)||_0x464edb['subcommand']===_0x14cbf2(0x2bf)){await Bt(_0x464edb,_0x464edb[_0x14cbf2(0x1f1)]);return;}if(_0x464edb[_0x14cbf2(0x1f1)]==='complete'){await qt(_0x464edb);return;}if(_0x464edb['subcommand']===_0x14cbf2(0x183)){await Kt(_0x464edb);return;}if(_0x464edb[_0x14cbf2(0x1f1)]===_0x14cbf2(0x2a7)){await Vt(_0x464edb);return;}if(_0x464edb['subcommand']===_0x14cbf2(0x2d7)){await Qt(_0x464edb);return;}if(_0x464edb[_0x14cbf2(0x1f1)]===_0x14cbf2(0x305)){await _0x57ad16(_0x464edb[_0x14cbf2(0x283)],{'runnerUrl':_0x464edb[_0x14cbf2(0x2b7)],'backendUrl':_0x464edb[_0x14cbf2(0x1d1)],'interopPath':_0x464edb['interopPath'],'workerId':_0x464edb[_0x14cbf2(0x304)]});return;}if(_0x464edb[_0x14cbf2(0x254)]){await It();return;}await an(_0x464edb);}var pn=process.env.NODE_ENV===_0x41868b(0x31a)||!!process.env.JEST_WORKER_ID;pn||un()['catch'](_0x15a28=>{const _0x57a99a=_0x41868b;console[_0x57a99a(0x277)](_0x15a28[_0x57a99a(0x2f3)]||_0x15a28[_0x57a99a(0x282)]||_0x15a28),process['exit'](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 _0x53049e=_0x25ba;(function(_0x56054d,_0x4400a2){const _0x4cf975=_0x25ba,_0x218985=_0x56054d();while(!![]){try{const _0x569e22=-parseInt(_0x4cf975(0x208))/0x1*(-parseInt(_0x4cf975(0x38f))/0x2)+parseInt(_0x4cf975(0x31b))/0x3*(parseInt(_0x4cf975(0x355))/0x4)+parseInt(_0x4cf975(0x393))/0x5+parseInt(_0x4cf975(0x1f4))/0x6*(parseInt(_0x4cf975(0x220))/0x7)+-parseInt(_0x4cf975(0x37e))/0x8*(-parseInt(_0x4cf975(0x321))/0x9)+-parseInt(_0x4cf975(0x381))/0xa+-parseInt(_0x4cf975(0x264))/0xb;if(_0x569e22===_0x4400a2)break;else _0x218985['push'](_0x218985['shift']());}catch(_0x4387c1){_0x218985['push'](_0x218985['shift']());}}}(_0x3e51,0xc656a));const __dirname=import.meta.dirname;import _0x3dc30b from'fs';import _0x4a5007 from'path';import{clearLine as _0x52289b,createInterface as _0x5fcba8,cursorTo as _0x393c13}from'node:readline';import{BUSINESS_ANALYSIS_PRELOADED_SKILLS as _0x384ff6,DelegateAgent as _0x247627,cancelTurn as _0x4f5eed,InteropProcess as _0x5eaaa7,complete as _0x18eb10,DEFAULT_MODEL as _0x29fbfd,createBackendClient as _0x54ae89,evaluate as _0x15585c,isCompletionRequestError as _0x4fe9b0,isEvaluationRequestError as _0x4ca590,isTranscriptionError as _0x163c15,rerank as _0x1e9c67,transcribe as _0x3df409,verify as _0x3d0f16,acceptDelegation as _0x248eb3,cancelDelegation as _0x2def74,claimDelegation as _0x2bf761,completeDelegation as _0x34da94,createDelegation as _0x506b79,deleteDelegation as _0x15f73f,dismissDelegation as _0x53df9e,getSessionDelegations as _0x12b386,isDelegationError as _0x2287d4,listDelegations as _0x3a974b,listOrgUsers as _0x4c0445,previewDelegation as _0x5465f7,TurnResultCollector as _0x362234,agentEventToJsonLine as _0x1dcf3b,describeBaseUrlRejection as _0x82a7b1,getActivitySummary as _0x104d2e,getAuthFilePath as _0x565a2f,getByoWarnings as _0x2ae558,getCartographerAllowance as _0x376293,getDailyBreakdown as _0x157919,getLicensingSummary as _0xc1b1eb,getMonthlySpending as _0x2a8c80,isOutputFormat as _0x5b5b6b,isCloudBaseUrl as _0x42a112,isSafeProjectFolderSegment as _0x23cf10,listModels as _0x4718ea,listSessions as _0x2dd82a,getSession as _0x40dd7b,renameSession as _0xc9a581,deleteSession as _0x2f78ef,deleteSessionTaskLog as _0x2d8c6d,forkSession as _0x3b0720,isBackendRequestError as _0x3f2e49,MAX_SESSION_PAGE_SIZE as _0x421489,listTenants as _0x51239d,loadAndRefreshAuth as _0x36d155,loadAndRefreshSdkLogin as _0x13d4ea,parsePlatformBaseUrl as _0x3524c9,resolveBackendUrl as _0x52fef,runHealthCheck as _0x710b47,runHostCommand as _0x6cd52d,runLoginFlow as _0x48803c,runTurnForResult as _0x173b5b,saveAuthData as _0x41ec9d,switchTenant as _0x2c09f6,toJsonLine as _0x4e25f4,ENV_TO_CLOUD as _0x3bffe8,OUTPUT_FORMATS as _0x5c47c0}from'@uipath/delegate-sdk';var mt=[_0x53049e(0x2c9),'tenant','models',_0x53049e(0x211),_0x53049e(0x253),_0x53049e(0x240),_0x53049e(0x36c),_0x53049e(0x362),_0x53049e(0x2c7),_0x53049e(0x2fd),_0x53049e(0x24c),_0x53049e(0x221),_0x53049e(0x23e),'transcribe',_0x53049e(0x27a),_0x53049e(0x363)],W=['','models',_0x53049e(0x240),_0x53049e(0x36c),_0x53049e(0x362),'usage',_0x53049e(0x2fd),_0x53049e(0x24c),_0x53049e(0x221),_0x53049e(0x23e),'transcribe',_0x53049e(0x27a),'org-users'],G=[_0x53049e(0x241),_0x53049e(0x383),_0x53049e(0x2f4),_0x53049e(0x233),_0x53049e(0x309)],ft=_0x384ff6;function p(_0x1c0fdf,_0xf448bc,_0x306b32,_0x5bc85c){const _0x22acf3=_0x53049e;let _0x5501f5=_0x1c0fdf[_0xf448bc];return(!_0x5501f5||_0x5501f5[_0x22acf3(0x26c)]>0x1&&_0x5501f5['startsWith']('-'))&&(console[_0x22acf3(0x2de)](_0x306b32+_0x22acf3(0x29b)+_0x5bc85c+'.'),process[_0x22acf3(0x306)](0x2)),_0x5501f5;}function N(_0x3e5254,_0x358bea,_0xebc978,_0x29ab0a){const _0x4a6beb=_0x53049e;let _0x4f8d04=p(_0x3e5254,_0x358bea,_0xebc978,_0x4a6beb(0x317)),_0x18cf48=Number(_0x4f8d04);return(!/^\d+$/[_0x4a6beb(0x2cb)](_0x4f8d04)||_0x18cf48<0x1||!Number[_0x4a6beb(0x242)](_0x18cf48)||_0x29ab0a!==void 0x0&&_0x18cf48>_0x29ab0a)&&(console[_0x4a6beb(0x2de)](_0xebc978+_0x4a6beb(0x266)+(_0x29ab0a===void 0x0?_0x4a6beb(0x2a5):_0x4a6beb(0x237)+_0x29ab0a)+',\x20got\x20'+_0x4f8d04+'.'),process['exit'](0x2)),_0x18cf48;}function ht(_0x1d4ae7){const _0xdbd362=_0x53049e;let _0x55ce53={'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':_0xdbd362(0x262),'preloadSkills':[],'attachments':[],'skipEnvCheck':!0x1,'includeSubAgents':!0x1,'operands':[],'help':!0x1,'version':!0x1};mt['includes'](_0x1d4ae7[0x0])&&(_0x55ce53[_0xdbd362(0x236)]=_0x1d4ae7[0x0],_0x1d4ae7=_0x1d4ae7['slice'](0x1));let _0x272107=[];for(let _0x4269a5=0x0;_0x4269a5<_0x1d4ae7[_0xdbd362(0x26c)];_0x4269a5++){let _0x43a913=_0x1d4ae7[_0x4269a5];switch(_0x43a913){case'--print':case'-p':_0x55ce53[_0xdbd362(0x28b)]=!0x0;break;case'--keep-alive':_0x55ce53[_0xdbd362(0x2d2)]=!0x0;break;case'--cleanup':_0x55ce53['cleanup']=!0x0;break;case'--headless':_0x55ce53[_0xdbd362(0x248)]=!0x0;break;case'--no-computer-use':_0x55ce53['noComputerUse']=!0x0;break;case _0xdbd362(0x36d):_0x55ce53[_0xdbd362(0x2f7)]=!0x0,_0x55ce53[_0xdbd362(0x305)]=!0x0,_0x55ce53[_0xdbd362(0x251)]['push'](...ft);break;case'--no-connections':_0x55ce53[_0xdbd362(0x340)]=!0x0;break;case'--no-security':_0x55ce53[_0xdbd362(0x2ec)]=!0x0;break;case _0xdbd362(0x260):_0x55ce53[_0xdbd362(0x289)]=!0x0;break;case'--task-automation':_0x55ce53[_0xdbd362(0x20b)]=!0x0;break;case'--quiet':case'-q':_0x55ce53[_0xdbd362(0x319)]=!0x0;break;case _0xdbd362(0x2aa):_0x55ce53[_0xdbd362(0x33d)]=!0x0;break;case _0xdbd362(0x333):_0x55ce53['backendUrl']=_0x1d4ae7[++_0x4269a5];break;case _0xdbd362(0x38c):_0x55ce53['model']=_0x1d4ae7[++_0x4269a5];break;case _0xdbd362(0x22f):_0x55ce53[_0xdbd362(0x278)]=_0x1d4ae7[++_0x4269a5];break;case _0xdbd362(0x286):_0x55ce53[_0xdbd362(0x31d)]=_0x1d4ae7[++_0x4269a5];break;case'--worker-id':_0x55ce53[_0xdbd362(0x224)]=_0x1d4ae7[++_0x4269a5];break;case _0xdbd362(0x1f5):_0x55ce53['preloadSkills'][_0xdbd362(0x303)](p(_0x1d4ae7,++_0x4269a5,_0x43a913,'a\x20skill\x20name'));break;case _0xdbd362(0x3aa):{let _0x1733e1=p(_0x1d4ae7,++_0x4269a5,_0x43a913,_0xdbd362(0x250));_0x23cf10(_0x1733e1)||(console[_0xdbd362(0x2de)](_0xdbd362(0x338)+_0x1733e1+_0xdbd362(0x2df)),process[_0xdbd362(0x306)](0x2)),_0x55ce53['projectId']=_0x1733e1;break;}case _0xdbd362(0x334):{let _0x48bce8=p(_0x1d4ae7,++_0x4269a5,_0x43a913,_0xdbd362(0x2ba)+_0x5c47c0[_0xdbd362(0x3a8)](_0xdbd362(0x346))+')');_0x5b5b6b(_0x48bce8)||(console[_0xdbd362(0x2de)]('Invalid\x20--output-format:\x20'+_0x48bce8+'.\x20Use\x20'+_0x5c47c0[_0xdbd362(0x3a8)]('\x20|\x20')+'.'),process[_0xdbd362(0x306)](0x2)),_0x55ce53[_0xdbd362(0x304)]=_0x48bce8;break;}case'--session':_0x55ce53[_0xdbd362(0x352)]=p(_0x1d4ae7,++_0x4269a5,_0x43a913,_0xdbd362(0x356));break;case _0xdbd362(0x210):_0x55ce53['page']=N(_0x1d4ae7,++_0x4269a5,_0x43a913);break;case'--limit':_0x55ce53[_0xdbd362(0x261)]=N(_0x1d4ae7,++_0x4269a5,_0x43a913,_0x421489);break;case _0xdbd362(0x2ae):_0x55ce53[_0xdbd362(0x379)]=!0x0;break;case'--json-schema':_0x55ce53[_0xdbd362(0x2d9)]=p(_0x1d4ae7,++_0x4269a5,_0x43a913,_0xdbd362(0x2fe));break;case'--attach':{let _0x12a2cd=_0x4a5007[_0xdbd362(0x2c2)](process['cwd'](),p(_0x1d4ae7,++_0x4269a5,_0x43a913,'a\x20file\x20path'));_0x3dc30b[_0xdbd362(0x327)](_0x12a2cd)||(console[_0xdbd362(0x2de)](_0xdbd362(0x2cf)+_0x12a2cd),process[_0xdbd362(0x306)](0x2)),_0x55ce53[_0xdbd362(0x2e3)]['push'](_0x12a2cd);break;}case'--turn':_0x55ce53[_0xdbd362(0x391)]=p(_0x1d4ae7,++_0x4269a5,_0x43a913,_0xdbd362(0x373));break;case _0xdbd362(0x39e):_0x55ce53[_0xdbd362(0x34c)]=p(_0x1d4ae7,++_0x4269a5,_0x43a913,_0xdbd362(0x228));break;case'--summary':_0x55ce53[_0xdbd362(0x2f8)]=p(_0x1d4ae7,++_0x4269a5,_0x43a913,_0xdbd362(0x2b5));break;case _0xdbd362(0x295):_0x55ce53[_0xdbd362(0x29f)]=N(_0x1d4ae7,++_0x4269a5,_0x43a913,0x16d);break;case'--working-dir':_0x55ce53['workingDirectory']=_0x4a5007[_0xdbd362(0x2c2)](process[_0xdbd362(0x22d)](),p(_0x1d4ae7,++_0x4269a5,_0x43a913,_0xdbd362(0x2a3)));break;case'--skills-path':_0x55ce53[_0xdbd362(0x202)]=_0x4a5007[_0xdbd362(0x2c2)](process[_0xdbd362(0x22d)](),p(_0x1d4ae7,++_0x4269a5,_0x43a913,_0xdbd362(0x2a3)));break;case _0xdbd362(0x247):{let _0x55e68e=p(_0x1d4ae7,++_0x4269a5,_0x43a913,_0xdbd362(0x2c8));G['includes'](_0x55e68e)||(console[_0xdbd362(0x2de)](_0xdbd362(0x39b)+_0x55e68e+_0xdbd362(0x21a)+G[_0xdbd362(0x3a8)](_0xdbd362(0x346))+'.'),process[_0xdbd362(0x306)](0x2)),_0x55ce53[_0xdbd362(0x382)]=_0x55e68e;break;}case'--tenant':{let _0x1d8e99=_0x1d4ae7[++_0x4269a5];(!_0x1d8e99||_0x1d8e99[_0xdbd362(0x2e8)]('--'))&&(console[_0xdbd362(0x2de)]('--tenant\x20requires\x20a\x20tenant\x20name.'),process[_0xdbd362(0x306)](0x2)),_0x55ce53[_0xdbd362(0x259)]=_0x1d8e99;break;}case _0xdbd362(0x2d4):{let _0xaf7dde=_0x1d4ae7[++_0x4269a5];['alpha',_0xdbd362(0x323),_0xdbd362(0x21b),'localhost']['includes'](_0xaf7dde)||(console['error'](_0xdbd362(0x203)+_0xaf7dde+_0xdbd362(0x1f7)),process[_0xdbd362(0x306)](0x2)),_0x55ce53[_0xdbd362(0x229)]=_0xaf7dde;break;}case _0xdbd362(0x2dd):case _0xdbd362(0x226):{let _0x38a5b3=p(_0x1d4ae7,++_0x4269a5,_0x43a913,_0xdbd362(0x33c)),_0x3049d9=_0x3524c9(_0x38a5b3);if(_0x3049d9['ok']===!0x1){console[_0xdbd362(0x2de)](_0x82a7b1(_0x38a5b3,_0x3049d9['rejection'])),process[_0xdbd362(0x306)](0x2);break;}_0x55ce53[_0xdbd362(0x201)]=_0x3049d9[_0xdbd362(0x3a5)];break;}case _0xdbd362(0x2a8):_0x55ce53[_0xdbd362(0x293)]=!0x0;break;case'-h':case _0xdbd362(0x376):_0x55ce53[_0xdbd362(0x2e2)]=!0x0;break;case'-v':case'--version':_0x55ce53['version']=!0x0;break;default:_0x43a913['startsWith']('--')&&(console[_0xdbd362(0x2de)](_0xdbd362(0x23c)+_0x43a913),process['exit'](0x2)),_0x272107[_0xdbd362(0x303)](_0x43a913);}}return _0x55ce53['tenant']!==void 0x0&&_0x55ce53[_0xdbd362(0x236)]!=='login'&&(console[_0xdbd362(0x2de)](_0xdbd362(0x25c)),process[_0xdbd362(0x306)](0x2)),_0x55ce53['url']!==void 0x0&&_0x55ce53['env']!==void 0x0&&(console[_0xdbd362(0x2de)]('Pass\x20either\x20--env\x20(a\x20named\x20cloud)\x20or\x20--url\x20(any\x20other\x20deployment),\x20not\x20both.'),process[_0xdbd362(0x306)](0x2)),_0x55ce53[_0xdbd362(0x201)]!==void 0x0&&_0x55ce53[_0xdbd362(0x236)]!==_0xdbd362(0x2c9)&&(console['error'](_0xdbd362(0x358)),process['exit'](0x2)),_0x55ce53[_0xdbd362(0x29f)]!==void 0x0&&_0x55ce53[_0xdbd362(0x236)]!==_0xdbd362(0x2c7)&&(console[_0xdbd362(0x2de)](_0xdbd362(0x26a)),process[_0xdbd362(0x306)](0x2)),_0x55ce53[_0xdbd362(0x2d9)]!==void 0x0&&(_0x55ce53[_0xdbd362(0x236)]!=='complete'&&_0x55ce53['subcommand']!==''||_0x55ce53[_0xdbd362(0x280)])&&(console[_0xdbd362(0x2de)](_0xdbd362(0x255)),process['exit'](0x2)),_0x55ce53[_0xdbd362(0x2e3)][_0xdbd362(0x26c)]>0x0&&(_0x55ce53['subcommand']!==''||_0x55ce53[_0xdbd362(0x280)])&&(console[_0xdbd362(0x2de)]('--attach\x20applies\x20to\x20prompts\x20only.'),process[_0xdbd362(0x306)](0x2)),_0x55ce53['taskAutomation']&&(_0x55ce53[_0xdbd362(0x236)]!==''||_0x55ce53[_0xdbd362(0x280)])&&(console[_0xdbd362(0x2de)](_0xdbd362(0x34e)),process[_0xdbd362(0x306)](0x2)),_0x55ce53[_0xdbd362(0x20b)]&&(_0x55ce53[_0xdbd362(0x248)]||_0x55ce53[_0xdbd362(0x305)])&&(console[_0xdbd362(0x2de)]('--task-automation\x20needs\x20computer\x20use:\x20the\x20task\x20log\x20is\x20written\x20by\x20the\x20UI-automation\x20tools.\x20Drop\x20--headless,\x20--no-computer-use\x20and\x20--cartographer.'),process[_0xdbd362(0x306)](0x2)),_0x55ce53[_0xdbd362(0x293)]&&_0x55ce53[_0xdbd362(0x236)]!==_0xdbd362(0x2c9)&&(console[_0xdbd362(0x2de)](_0xdbd362(0x2a1)),process[_0xdbd362(0x306)](0x2)),_0x55ce53[_0xdbd362(0x304)]!=='text'&&!W['includes'](_0x55ce53[_0xdbd362(0x236)])&&(console[_0xdbd362(0x2de)](_0xdbd362(0x330)+_0x55ce53[_0xdbd362(0x304)]+'\x20applies\x20to\x20prompts\x20and\x20to\x20these\x20commands\x20only:\x20'+W[_0xdbd362(0x3a6)](Boolean)[_0xdbd362(0x3a8)](',\x20')+'.'),process[_0xdbd362(0x306)](0x2)),(_0x55ce53[_0xdbd362(0x225)]!==void 0x0||_0x55ce53[_0xdbd362(0x261)]!==void 0x0||_0x55ce53[_0xdbd362(0x379)])&&_0x55ce53['subcommand']!=='sessions'&&(console[_0xdbd362(0x2de)](_0xdbd362(0x27c)),process[_0xdbd362(0x306)](0x2)),(_0x55ce53[_0xdbd362(0x34c)]!==void 0x0||_0x55ce53['contextSummary']!==void 0x0)&&_0x55ce53['subcommand']!==_0xdbd362(0x27a)&&(console[_0xdbd362(0x2de)]('--to\x20and\x20--summary\x20apply\x20to\x20`delegate-cli\x20delegations\x20create`\x20only.'),process[_0xdbd362(0x306)](0x2)),_0x55ce53[_0xdbd362(0x391)]!==void 0x0&&_0x55ce53[_0xdbd362(0x236)]!==_0xdbd362(0x362)&&(console['error'](_0xdbd362(0x3a4)),process[_0xdbd362(0x306)](0x2)),_0x55ce53[_0xdbd362(0x251)]=[...new Set(_0x55ce53[_0xdbd362(0x251)])],_0x55ce53[_0xdbd362(0x24a)]=_0x272107,_0x55ce53[_0xdbd362(0x32f)]=_0x272107['join']('\x20'),_0x55ce53;}var S=_0x3a95c9=>{const _0x26be74=_0x53049e;process[_0x26be74(0x2ea)][_0x26be74(0x273)](_0x3a95c9);};function gt(){const _0x191868=_0x53049e;let _0x105050=process['stdout'][_0x191868(0x273)],_0x5ab878=_0x105050[_0x191868(0x2f2)](process[_0x191868(0x2ea)]),_0x5a723d=S;return S=_0x347a07=>{_0x5ab878(_0x347a07);},process[_0x191868(0x2ea)]['write']=(..._0x3ca740)=>process[_0x191868(0x33b)][_0x191868(0x273)](..._0x3ca740),()=>{const _0x5806ba=_0x191868;process[_0x5806ba(0x2ea)][_0x5806ba(0x273)]=_0x105050,S=_0x5a723d;};}function l(_0x12a8a3,_0x1a6ccb,_0x216a7b){const _0x30b9e9=_0x53049e;if(_0x12a8a3['outputFormat']===_0x30b9e9(0x262)){_0x216a7b(_0x1a6ccb);return;}S(_0x4e25f4(_0x1a6ccb));}function wt(){const _0x1d0845=_0x53049e;let _0x117ce9=_0x1d0845(0x2dc)[_0x1d0845(0x27b)]();console['log'](_0x117ce9);}function yt(){const _0x34a7ca=_0x53049e;try{return JSON[_0x34a7ca(0x395)](_0x3dc30b[_0x34a7ca(0x2e1)](_0x4a5007['join'](__dirname,'..',_0x34a7ca(0x265)),_0x34a7ca(0x2fa)))['version']||'unknown';}catch{return _0x34a7ca(0x21d);}}var kt=0x7d0;async function K(_0x44226a,_0x12c7b9){const _0x2a804d=_0x53049e;let _0xbf5a47=_0x12c7b9?[_0x12c7b9]:[];for await(let _0x323d58 of _0x44226a)_0xbf5a47[_0x2a804d(0x303)](Buffer['from'](_0x323d58));return Buffer[_0x2a804d(0x36a)](_0xbf5a47)['toString'](_0x2a804d(0x2fa))['trim']();}function St(_0x102669,_0x1dbcb7){return new Promise(_0x3009f2=>{const _0x3e229c=_0x25ba;let _0x368dc2=_0x27a282=>{const _0x5e0ee0=_0x25ba;clearTimeout(_0x4ee20e),_0x102669[_0x5e0ee0(0x2ac)]('data',_0xa00118),_0x102669[_0x5e0ee0(0x2ac)](_0x5e0ee0(0x375),_0x5c2694),_0x102669['off'](_0x5e0ee0(0x2de),_0x5c2694),_0x102669[_0x5e0ee0(0x2cc)](),_0x3009f2(_0x27a282);},_0xa00118=_0x5b44fb=>_0x368dc2(Buffer[_0x3e229c(0x288)](_0x5b44fb)),_0x5c2694=()=>_0x368dc2(null),_0x4ee20e=setTimeout(()=>_0x368dc2(null),_0x1dbcb7);_0x102669['on'](_0x3e229c(0x2ce),_0xa00118),_0x102669['on'](_0x3e229c(0x375),_0x5c2694),_0x102669['on'](_0x3e229c(0x2de),_0x5c2694),_0x102669[_0x3e229c(0x34d)]();});}async function I(_0x412dd2,_0x29a46a,_0x275b29=kt){const _0x3ff980=_0x53049e;let _0x2b484d=_0x412dd2==='-';if(!_0x2b484d&&_0x412dd2)return _0x412dd2;if(!_0x2b484d&&_0x29a46a[_0x3ff980(0x20d)])return'';if(_0x2b484d)return K(_0x29a46a,null);let _0x3ebce1=await St(_0x29a46a,_0x275b29);return _0x3ebce1?K(_0x29a46a,_0x3ebce1):'';}function L(){const _0x3d77dd=_0x53049e;return _0x4a5007[_0x3d77dd(0x3a8)](process.env.HOME||process.env.USERPROFILE||'',_0x3d77dd(0x399),'auth.json');}function $(_0x454807){const _0x45e64a=_0x53049e;try{let _0x2d54ab=JSON[_0x45e64a(0x395)](_0x3dc30b[_0x45e64a(0x2e1)](_0x454807,'utf-8'));return!_0x2d54ab[_0x45e64a(0x1f8)]||!_0x2d54ab[_0x45e64a(0x374)]||!_0x2d54ab['organizationId']?null:_0x2d54ab;}catch{return null;}}function bt(){const _0x41b9af=_0x53049e;let _0x36bac0=[{'file':_0x565a2f(),'isDesktopFallback':!0x1},{'file':L(),'isDesktopFallback':!0x0}];for(let _0x3cf68b of _0x36bac0){let _0x5b9fdc=$(_0x3cf68b[_0x41b9af(0x2a9)]);if(_0x5b9fdc)return{..._0x3cf68b,'auth':_0x5b9fdc};}return null;}async function vt(){const _0x4eecc5=_0x53049e;let _0x15337a=_0x565a2f();if(!_0x3dc30b[_0x4eecc5(0x327)](_0x15337a)){let _0x30a530=L();console[_0x4eecc5(0x243)]($(_0x30a530)?_0x4eecc5(0x22a)+_0x30a530+'\x20—\x20sign\x20out\x20in\x20the\x20Delegate\x20app\x20to\x20clear\x20that.':_0x4eecc5(0x348));return;}_0x3dc30b['rmSync'](_0x15337a),console[_0x4eecc5(0x243)](_0x4eecc5(0x25f)+_0x15337a);}async function At(_0x56914c){const _0x54b0c8=_0x53049e;let _0x566da4=O(),_0x5574c2,_0x17be73;if(_0x566da4)_0x5574c2=_0x566da4,_0x17be73='environment\x20variables\x20(AUTH_TOKEN/TENANT_ID/ORG_ID)';else{let _0x41a800=bt();if(!_0x41a800)throw new Error(le);_0x5574c2=_0x41a800[_0x54b0c8(0x2c0)],_0x17be73=_0x41a800['isDesktopFallback']?_0x41a800[_0x54b0c8(0x2a9)]+_0x54b0c8(0x27f):_0x41a800['file'];}let _0x69834d={'source':_0x17be73,'baseUrl':_0x5574c2[_0x54b0c8(0x3a5)]??null,'deployment':Et(_0x5574c2['baseUrl']),'organization':{'id':_0x5574c2['organizationId'],'slug':_0x5574c2[_0x54b0c8(0x31f)]??null},'tenant':{'id':_0x5574c2[_0x54b0c8(0x374)],'name':_0x5574c2['tenantName']??null},'tokenExpiresAt':_0x5574c2[_0x54b0c8(0x2b9)]?new Date(_0x5574c2['expiresAt']*0x3e8)[_0x54b0c8(0x214)]():null};l(_0x56914c,_0x69834d,()=>{const _0x1cc308=_0x54b0c8;let _0x180650=[_0x1cc308(0x34b)+_0x17be73,_0x1cc308(0x1fc)+(_0x5574c2[_0x1cc308(0x3a5)]??_0x1cc308(0x21d)),'Deployment:\x20\x20\x20'+_0x69834d[_0x1cc308(0x235)],_0x1cc308(0x22b)+(_0x5574c2[_0x1cc308(0x31f)]??'unknown\x20slug')+'\x20('+_0x5574c2[_0x1cc308(0x299)]+')',_0x1cc308(0x287)+(_0x5574c2[_0x1cc308(0x3a1)]??_0x1cc308(0x267))+'\x20('+_0x5574c2[_0x1cc308(0x374)]+')'];if(_0x5574c2[_0x1cc308(0x2b9)]){let _0x1de815=_0x5574c2[_0x1cc308(0x2b9)]-Math[_0x1cc308(0x246)](Date[_0x1cc308(0x2f3)]()/0x3e8);_0x180650['push'](_0x1de815>0x0?_0x1cc308(0x20c)+_0x69834d[_0x1cc308(0x2ca)]+_0x1cc308(0x24e)+Math['round'](_0x1de815/0x3c)+_0x1cc308(0x3a2):_0x1cc308(0x39a)+_0x69834d['tokenExpiresAt']);}process[_0x1cc308(0x2ea)][_0x1cc308(0x273)](_0x180650[_0x1cc308(0x3a8)]('\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(_0x4a943b){const _0x53552c=_0x53049e;return _0x4a943b?_0x42a112(_0x4a943b)?'UiPath\x20Cloud':_0x53552c(0x205):'unknown';}function O(){let _0x2a865d=process.env.AUTH_TOKEN_FILE;return(process.env.AUTH_TOKEN||_0x2a865d)&&process.env.TENANT_ID&&process.env.ORG_ID?{'accessToken':_0x2a865d?It(_0x2a865d):process.env.AUTH_TOKEN,..._0x2a865d?{'accessTokenFile':_0x2a865d}:{},'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(_0x56aedb){const _0x36cdfd=_0x53049e;let _0xeecdb5;try{_0xeecdb5=_0x3dc30b[_0x36cdfd(0x2e1)](_0x56aedb,'utf-8')[_0x36cdfd(0x27b)]();}catch(_0x58c2ef){throw new Error('AUTH_TOKEN_FILE\x20\x27'+_0x56aedb+'\x27\x20cannot\x20be\x20read:\x20'+_0x58c2ef[_0x36cdfd(0x258)]);}let _0x363854=_0xeecdb5[_0x36cdfd(0x2e8)](_0x36cdfd(0x29e))?_0xeecdb5['slice'](0x7)[_0x36cdfd(0x27b)]():_0xeecdb5;if(!_0x363854)throw new Error('AUTH_TOKEN_FILE\x20\x27'+_0x56aedb+_0x36cdfd(0x335));return _0x363854;}function ce(){const _0x3f5606=_0x53049e;let _0x13e24c=process.env.UIPATH_BASE_URL;if(!_0x13e24c)return;let _0x364b37=_0x3524c9(_0x13e24c);if(_0x364b37['ok']===!0x1)throw new Error('UIPATH_BASE_URL\x20is\x20unusable.\x20'+_0x82a7b1(_0x13e24c,_0x364b37[_0x3f5606(0x38d)]));return _0x364b37[_0x3f5606(0x3a5)];}async function P(){let _0x2c97c6=O();if(_0x2c97c6)return _0x2c97c6;let _0x977d29=await _0x36d155();if(_0x977d29)return _0x977d29;throw new Error(le);}async function $t(){const _0x1f9224=_0x53049e;await new _0x5eaaa7()[_0x1f9224(0x397)]({'force':!0x0}),console['log'](_0x1f9224(0x38a));}function F(_0x3ffd0a,_0x22425d,_0x57318b){const _0x1c8154=_0x53049e;_0x3ffd0a?process[_0x1c8154(0x33b)][_0x1c8154(0x273)](_0x1c8154(0x349)+_0x3ffd0a+']\x20Backend\x20URL:\x20'+_0x57318b+'\x0a'):!_0x22425d&&!process.env.BACKEND_URL&&process[_0x1c8154(0x33b)]['write'](_0x1c8154(0x2ef)+_0x57318b+'\x0a');}function _0x25ba(_0x4c4cec,_0x48081c){_0x4c4cec=_0x4c4cec-0x1ef;const _0x3e51d5=_0x3e51();let _0x25ba8f=_0x3e51d5[_0x4c4cec];return _0x25ba8f;}async function f(_0x394cdf){const _0x4a0afa=_0x53049e;let _0x201d31=await P(),_0x55629b=_0x52fef(_0x394cdf[_0x4a0afa(0x229)],_0x201d31,_0x394cdf[_0x4a0afa(0x20a)]);return F(_0x394cdf[_0x4a0afa(0x229)],_0x394cdf[_0x4a0afa(0x20a)],_0x55629b),{'auth':_0x201d31,'backendUrl':_0x55629b,'client':_0x54ae89({'auth':_0x201d31,'backendUrl':_0x55629b})};}async function Tt(_0x23dcce){const _0x5da8b2=_0x53049e;let {client:_0x26933d}=await f(_0x23dcce),[_0x31073b,_0x46bf5d]=await Promise[_0x5da8b2(0x20f)]([_0x4718ea(_0x26933d),_0x2ae558(_0x26933d)[_0x5da8b2(0x22e)](_0x153ba2=>(process['stderr'][_0x5da8b2(0x273)]('Could\x20not\x20check\x20BYO\x20model\x20warnings:\x20'+(_0x153ba2 instanceof Error?_0x153ba2['message']:String(_0x153ba2))+'\x0a'),{}))]),_0x2ab1bb=_0x31073b['map'](_0x4c5de3=>_0x46bf5d[_0x4c5de3['id']]?{..._0x4c5de3,'byoWarning':_0x46bf5d[_0x4c5de3['id']]}:_0x4c5de3);l(_0x23dcce,_0x2ab1bb,xt);}function xt(_0x3223ca){const _0x3dcdb3=_0x53049e;if(_0x3223ca[_0x3dcdb3(0x26c)]===0x0){process[_0x3dcdb3(0x33b)][_0x3dcdb3(0x273)](_0x3dcdb3(0x2e5));return;}process['stdout'][_0x3dcdb3(0x273)]('\x0aAvailable\x20models\x20('+_0x3223ca[_0x3dcdb3(0x26c)]+'):\x0a\x0a');for(let _0x1c0386 of _0x3223ca){let _0x381fcd=_0x1c0386[_0x3dcdb3(0x396)]&&_0x1c0386[_0x3dcdb3(0x396)]!==_0x1c0386['id']?'\x20('+_0x1c0386[_0x3dcdb3(0x396)]+')':'';process[_0x3dcdb3(0x2ea)][_0x3dcdb3(0x273)]('\x20\x20'+_0x1c0386['id']+_0x381fcd+'\x0a'),_0x1c0386['description']&&process[_0x3dcdb3(0x2ea)]['write'](_0x3dcdb3(0x314)+_0x1c0386['description']+'\x0a'),_0x1c0386[_0x3dcdb3(0x274)]&&process[_0x3dcdb3(0x2ea)][_0x3dcdb3(0x273)](_0x3dcdb3(0x284)+(_0x1c0386[_0x3dcdb3(0x2e6)]?'\x20('+_0x1c0386[_0x3dcdb3(0x2e6)]+')':'')+'\x0a'),_0x1c0386[_0x3dcdb3(0x2f6)]&&process[_0x3dcdb3(0x2ea)][_0x3dcdb3(0x273)](_0x3dcdb3(0x380)+_0x1c0386[_0x3dcdb3(0x2f6)]+'\x0a');}process[_0x3dcdb3(0x2ea)][_0x3dcdb3(0x273)](_0x3dcdb3(0x204));}var z=[_0x53049e(0x372),_0x53049e(0x2da),'rename',_0x53049e(0x344),_0x53049e(0x36f),_0x53049e(0x2e4)];async function Dt(_0x2686eb){const _0x1a94c0=_0x53049e;let [_0x18507b='',_0x6d13d7='',..._0x5e5436]=_0x2686eb['operands'];if(_0x18507b&&!z[_0x1a94c0(0x301)](_0x18507b)&&(console[_0x1a94c0(0x2de)](_0x1a94c0(0x359)+_0x18507b+_0x1a94c0(0x222)+z[_0x1a94c0(0x3a8)]('\x20|\x20')+'.'),process['exit'](0x2)),_0x2686eb[_0x1a94c0(0x391)]!==void 0x0&&_0x18507b!==_0x1a94c0(0x36f)&&(console['error']('--turn\x20applies\x20to\x20`delegate-cli\x20sessions\x20cancel`\x20only.'),process['exit'](0x2)),_0x18507b&&_0x18507b!==_0x1a94c0(0x372)){await Ut(_0x2686eb,_0x18507b,_0x6d13d7,_0x5e5436['join']('\x20')[_0x1a94c0(0x27b)]());return;}_0x2686eb[_0x1a94c0(0x24a)][_0x1a94c0(0x26c)]>0x1&&(console[_0x1a94c0(0x2de)](_0x1a94c0(0x2b1)),process[_0x1a94c0(0x306)](0x2));let {client:_0x247a06}=await f(_0x2686eb),_0x5082fe=await _0x2dd82a(_0x247a06,{'page':_0x2686eb[_0x1a94c0(0x225)],'pageSize':_0x2686eb['limit'],'includeSubAgents':_0x2686eb[_0x1a94c0(0x379)]});l(_0x2686eb,_0x5082fe,Rt);}async function Ut(_0x292c81,_0xe3240a,_0x59e919,_0x41c84c){const _0x305a68=_0x53049e;if((_0x292c81['page']!==void 0x0||_0x292c81[_0x305a68(0x261)]!==void 0x0||_0x292c81[_0x305a68(0x379)])&&(console[_0x305a68(0x2de)](_0x305a68(0x252)),process[_0x305a68(0x306)](0x2)),_0xe3240a==='cancel'){await Nt(_0x292c81,_0x59e919,_0x41c84c);return;}if(_0xe3240a==='fork'){await Ct(_0x292c81,_0x59e919,_0x41c84c);return;}(!_0x59e919||_0xe3240a==='rename'!=!!_0x41c84c)&&(console[_0x305a68(0x2de)](_0x305a68(0x2d7)+_0xe3240a+_0x305a68(0x331)+(_0xe3240a==='rename'?_0x305a68(0x24d):'')),process['exit'](0x2));let {client:_0x31a773}=await f(_0x292c81);try{if(_0xe3240a==='show'){let _0x44d2c6=await _0x40dd7b(_0x31a773,_0x59e919);_0x44d2c6||V(_0x59e919),l(_0x292c81,_0x44d2c6,_t);}else{if(_0xe3240a===_0x305a68(0x212)){let _0x5ed8d2=await _0xc9a581(_0x31a773,_0x59e919,_0x41c84c);l(_0x292c81,_0x5ed8d2,_0x1e4719=>{const _0x55b05d=_0x305a68;process[_0x55b05d(0x2ea)][_0x55b05d(0x273)](_0x55b05d(0x1fe)+_0x1e4719['id']+':\x20'+_0x1e4719[_0x55b05d(0x30b)]+'\x0a');});}else await _0x2f78ef(_0x31a773,_0x59e919),await _0x2d8c6d(_0x59e919,_0x292c81[_0x305a68(0x2fb)]),l(_0x292c81,{'id':_0x59e919,'deleted':!0x0},_0x35727e=>{const _0x43ff53=_0x305a68;process[_0x43ff53(0x2ea)]['write'](_0x43ff53(0x39f)+_0x35727e['id']+'.\x0a');});}}catch(_0xef87b4){if(!_0x3f2e49(_0xef87b4,0x194))throw _0xef87b4;V(_0x59e919);}}function V(_0x202fd6){const _0x30328c=_0x53049e;console['error'](_0x30328c(0x357)+_0x202fd6+_0x30328c(0x35e)),process[_0x30328c(0x306)](0x1);}function _t(_0x1dc58a){const _0x34b171=_0x53049e;process[_0x34b171(0x2ea)][_0x34b171(0x273)](_0x34b171(0x329)+_0x1dc58a['id']+'\x0a'),process['stdout'][_0x34b171(0x273)]('Title\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x1dc58a[_0x34b171(0x30b)]+'\x0a'),process[_0x34b171(0x2ea)][_0x34b171(0x273)](_0x34b171(0x369)+_0x1dc58a[_0x34b171(0x354)]+'\x0a'),process[_0x34b171(0x2ea)][_0x34b171(0x273)](_0x34b171(0x342)+_0x1dc58a[_0x34b171(0x299)]+'\x0a'),_0x1dc58a['delegationId']&&process['stdout']['write'](_0x34b171(0x30c)+_0x1dc58a['delegationId']+'\x0a');}async function Nt(_0x373eaa,_0x5c8fb0,_0x4a58e8){const _0x14332c=_0x53049e;(!_0x5c8fb0||_0x4a58e8||!_0x373eaa[_0x14332c(0x391)])&&(console['error'](_0x14332c(0x36e)),process[_0x14332c(0x306)](0x2));let {client:_0x492c6b}=await f(_0x373eaa),_0x1945f7=await _0x4f5eed(_0x492c6b,_0x5c8fb0,_0x373eaa['turnId']);l(_0x373eaa,{'sessionId':_0x5c8fb0,'turnId':_0x373eaa[_0x14332c(0x391)],'cancelled':_0x1945f7},_0x524acb=>{const _0xc67788=_0x14332c;_0x524acb['cancelled']?process[_0xc67788(0x2ea)][_0xc67788(0x273)](_0xc67788(0x207)+_0x524acb[_0xc67788(0x391)]+'\x20of\x20session\x20'+_0x524acb[_0xc67788(0x352)]+'.\x0a'):process[_0xc67788(0x33b)][_0xc67788(0x273)](_0xc67788(0x1ff)+_0x524acb['turnId']+_0xc67788(0x282)+_0x524acb[_0xc67788(0x352)]+'.\x0a');}),_0x1945f7||(process['exitCode']=0x1);}async function Ct(_0x30ceff,_0x4e9f3f,_0x453e12){const _0x40a3af=_0x53049e;(!_0x4e9f3f||/\s/['test'](_0x453e12))&&(console[_0x40a3af(0x2de)](_0x40a3af(0x2f1)),process['exit'](0x2));let {client:_0x200d73}=await f(_0x30ceff),_0xa3e8ea;try{_0xa3e8ea=await _0x3b0720(_0x200d73,_0x4e9f3f,{'atMessageId':_0x453e12||void 0x0});}catch(_0x21f142){if(!_0x3f2e49(_0x21f142,0x194))throw _0x21f142;console[_0x40a3af(0x2de)](_0x40a3af(0x357)+_0x4e9f3f+_0x40a3af(0x392)+(_0x453e12?_0x40a3af(0x23f)+_0x453e12:'')+'.'),process['exit'](0x1);}l(_0x30ceff,_0xa3e8ea,_0x3d23ba=>{const _0x2c712c=_0x40a3af;process[_0x2c712c(0x2ea)][_0x2c712c(0x273)]('Forked\x20'+_0x4e9f3f+_0x2c712c(0x249)+_0x3d23ba['id']+'.\x0a'),process[_0x2c712c(0x33b)][_0x2c712c(0x273)](_0x2c712c(0x33f)+_0x3d23ba['id']+_0x2c712c(0x28d));});}function Rt({sessions:_0x37ed37,page:_0x288a5b,isLastPage:_0x33fa04}){const _0x2c97cd=_0x53049e;if(_0x37ed37[_0x2c97cd(0x26c)]===0x0)process[_0x2c97cd(0x33b)][_0x2c97cd(0x273)](_0x2c97cd(0x2a7)+_0x288a5b+'.\x0a');else{process[_0x2c97cd(0x2ea)]['write']('ID'[_0x2c97cd(0x3ab)](0x24)+'\x20\x20'+_0x2c97cd(0x25e)[_0x2c97cd(0x3ab)](0x13)+'\x20\x20TITLE\x0a');for(let _0x323e1c of _0x37ed37){let _0x1abc0f=_0x323e1c[_0x2c97cd(0x371)][_0x2c97cd(0x2ed)]('T','\x20')[_0x2c97cd(0x26b)](0x0,0x13),_0x2632b9=_0x323e1c[_0x2c97cd(0x2c5)]?_0x2c97cd(0x22c)+_0x323e1c['parentSessionId']+')':'';process[_0x2c97cd(0x2ea)][_0x2c97cd(0x273)](_0x323e1c['id'][_0x2c97cd(0x3ab)](0x24)+'\x20\x20'+_0x1abc0f[_0x2c97cd(0x3ab)](0x13)+'\x20\x20'+_0x323e1c[_0x2c97cd(0x30b)]+_0x2632b9+'\x0a');}}_0x33fa04||process['stderr'][_0x2c97cd(0x273)](_0x2c97cd(0x28a)+(_0x288a5b+0x1)+'\x0a');}async function Lt(_0x3799ed){const _0x14741e=_0x53049e;let _0x725e5a=await P(),_0x5635bf=_0x52fef(_0x3799ed['env'],_0x725e5a,_0x3799ed['backendUrl']);F(_0x3799ed[_0x14741e(0x229)],_0x3799ed['backendUrl'],_0x5635bf);let _0x352062=await _0x710b47({'auth':_0x725e5a,'backendUrl':_0x5635bf,'interop':_0x3799ed[_0x14741e(0x248)]?_0x14741e(0x1fb):_0x14741e(0x336)});l(_0x3799ed,_0x352062,({checks:_0x2adc48})=>{const _0x3e90d1=_0x14741e;for(let _0x1a2e17 of _0x2adc48)process[_0x3e90d1(0x2ea)]['write'](Ot(_0x1a2e17)+'\x0a');}),_0x352062['ok']||process[_0x14741e(0x306)](0x1);}function Ot(_0x4ecbd4){const _0x32cfed=_0x53049e;return{'ok':'✓','failed':'✗','skipped':'-'}[_0x4ecbd4[_0x32cfed(0x326)]]+'\x20'+_0x4ecbd4[_0x32cfed(0x396)][_0x32cfed(0x3ab)](0xa)+_0x4ecbd4[_0x32cfed(0x365)];}var Pt=['',_0x53049e(0x1f2),'daily'];async function Ft(_0x33cf70){const _0x3f8d18=_0x53049e;let _0x4d0f56=_0x33cf70[_0x3f8d18(0x32f)];Pt['includes'](_0x4d0f56)||(console[_0x3f8d18(0x2de)]('Unknown\x20usage\x20view:\x20'+_0x33cf70['prompt']+'.\x20Use\x20`delegate-cli\x20usage`,\x20`usage\x20activity`\x20or\x20`usage\x20daily`.'),process[_0x3f8d18(0x306)](0x2)),_0x4d0f56===''&&_0x33cf70['days']!==void 0x0&&(console['error'](_0x3f8d18(0x298)),process[_0x3f8d18(0x306)](0x2)),_0x4d0f56!==''&&_0x33cf70[_0x3f8d18(0x352)]!==void 0x0&&(console[_0x3f8d18(0x2de)]('--session\x20applies\x20to\x20the\x20`delegate-cli\x20usage`\x20summary\x20only.'),process[_0x3f8d18(0x306)](0x2));let {client:_0x6f2c87}=await f(_0x33cf70);if(_0x4d0f56===_0x3f8d18(0x1f2)){l(_0x33cf70,await _0x104d2e(_0x6f2c87,{'days':_0x33cf70[_0x3f8d18(0x29f)]}),Mt);return;}if(_0x4d0f56===_0x3f8d18(0x377)){l(_0x33cf70,await _0x157919(_0x6f2c87,{'days':_0x33cf70[_0x3f8d18(0x29f)]}),Bt);return;}let [_0x4ee853,_0x1a99f0,_0x593048]=await Promise['all']([_0xc1b1eb(_0x6f2c87,{'sessionId':_0x33cf70[_0x3f8d18(0x352)]}),_0x2a8c80(_0x6f2c87),_0x376293(_0x6f2c87)]);l(_0x33cf70,{'licensing':_0x4ee853,'monthlySpending':_0x1a99f0,'cartographerAllowance':_0x593048},jt);}function jt(_0x213770){const _0x506823=_0x53049e;let {licensing:_0x3ee800,monthlySpending:_0x11bf4f,cartographerAllowance:_0x54c223}=_0x213770,_0x228f95=[_0x3ee800[_0x506823(0x2f0)]?'Licensing:\x20\x20\x20\x20'+_0x3ee800[_0x506823(0x1f1)][_0x506823(0x276)](0x1)+_0x506823(0x2b4)+(_0x3ee800['total_quota_pu']??0x0)+_0x506823(0x34a)+(_0x3ee800['extra_pool_consumed_pu']>0x0?',\x20'+_0x3ee800['extra_pool_consumed_pu']+'\x20PU\x20beyond\x20quota':'')+_0x506823(0x2d5)+_0x3ee800[_0x506823(0x378)]+')':_0x506823(0x27e),_0x506823(0x38e)+_0x11bf4f[_0x506823(0x320)][_0x506823(0x276)](0x2)+_0x506823(0x311)+(_0x11bf4f['limit_enabled']&&_0x11bf4f[_0x506823(0x300)]!==null?_0x506823(0x2bf)+_0x11bf4f[_0x506823(0x300)][_0x506823(0x276)](0x2)+'\x20cap':_0x506823(0x25a)),_0x506823(0x2e7)+_0x54c223[_0x506823(0x2bb)]+'\x20('+_0x54c223[_0x506823(0x2c6)]+')'];_0x3ee800[_0x506823(0x2ff)]!==null&&_0x3ee800['session_consumed_pu']!==void 0x0&&_0x228f95[_0x506823(0x303)]('Session:\x20\x20\x20\x20\x20\x20'+_0x3ee800[_0x506823(0x2ff)]+_0x506823(0x2b8)),process[_0x506823(0x2ea)]['write'](_0x228f95[_0x506823(0x3a8)]('\x0a')+'\x0a');}function Mt(_0x965956){const _0x3bb29d=_0x53049e;let _0x427abc=[_0x3bb29d(0x1f0)+_0x965956[_0x3bb29d(0x215)]+'\x20days:\x20'+_0x965956[_0x3bb29d(0x34f)]+_0x3bb29d(0x39d)+_0x965956['active_days']+'\x20active\x20days','Cost:\x20\x20\x20$'+_0x965956[_0x3bb29d(0x2e9)][_0x3bb29d(0x276)](0x2)+_0x3bb29d(0x31c)+_0x965956['estimated_cost_usd'][_0x3bb29d(0x276)](0x2)+_0x3bb29d(0x20e)+_0x965956[_0x3bb29d(0x37b)]+_0x3bb29d(0x231),_0x3bb29d(0x1f3)+_0x965956[_0x3bb29d(0x245)]+'\x20prompt,\x20'+_0x965956[_0x3bb29d(0x28f)]+_0x3bb29d(0x23b)];for(let [_0x478b62,_0x45efd8]of Object['entries'](_0x965956[_0x3bb29d(0x394)]))_0x427abc[_0x3bb29d(0x303)]('\x20\x20'+_0x478b62+':\x20'+_0x45efd8+_0x3bb29d(0x25b));process['stdout'][_0x3bb29d(0x273)](_0x427abc[_0x3bb29d(0x3a8)]('\x0a')+'\x0a');}function Bt(_0x305f49){const _0x1722b5=_0x53049e;if(_0x305f49[_0x1722b5(0x37c)]['length']===0x0){process[_0x1722b5(0x2ea)][_0x1722b5(0x273)](_0x1722b5(0x23a)+_0x305f49[_0x1722b5(0x215)]+_0x1722b5(0x360));return;}let _0x3a67f6=[_0x1722b5(0x230)];for(let _0x1c550f of _0x305f49[_0x1722b5(0x37c)])_0x3a67f6[_0x1722b5(0x303)](_0x1c550f[_0x1722b5(0x38b)]+'\x20\x20'+String(_0x1c550f[_0x1722b5(0x316)])[_0x1722b5(0x26d)](0xb)+'\x20\x20'+String(_0x1c550f[_0x1722b5(0x343)])[_0x1722b5(0x26d)](0xd)+'\x20\x20'+String(_0x1c550f['completion_tokens'])[_0x1722b5(0x26d)](0x11));process[_0x1722b5(0x2ea)][_0x1722b5(0x273)](_0x3a67f6[_0x1722b5(0x3a8)]('\x0a')+'\x0a');}async function Ht(_0xdec72e,_0x17ab22){const _0x27dc65=_0x53049e;let _0x13135c=await qt(_0xdec72e['prompt'],_0x17ab22);_0xdec72e[_0x27dc65(0x277)]&&(_0x13135c[_0x27dc65(0x277)]=_0xdec72e['model']);let {client:_0x44144e}=await f(_0xdec72e);try{_0x17ab22===_0x27dc65(0x2fd)?l(_0xdec72e,await _0x15585c(_0x44144e,_0x13135c,void 0x0),Wt):_0x17ab22==='rerank'?l(_0xdec72e,await _0x1e9c67(_0x44144e,_0x13135c,void 0x0),Gt):l(_0xdec72e,await _0x3d0f16(_0x44144e,_0x13135c,void 0x0),Kt);}catch(_0x181011){if(!_0x4ca590(_0x181011))throw _0x181011;console[_0x27dc65(0x2de)](_0x181011[_0x27dc65(0x258)]),process[_0x27dc65(0x306)](0x1);}}async function qt(_0x48fbcb,_0x127f90){const _0x110a31=_0x53049e;let _0x26435a;try{_0x26435a=_0x48fbcb&&_0x48fbcb!=='-'?_0x3dc30b[_0x110a31(0x2e1)](_0x4a5007[_0x110a31(0x2c2)](_0x48fbcb),_0x110a31(0x2fa)):await I(_0x48fbcb,process[_0x110a31(0x384)]);}catch(_0x543256){console[_0x110a31(0x2de)](_0x127f90+_0x110a31(0x1f6)+_0x543256['message']+').'),process[_0x110a31(0x306)](0x2);}return _0x26435a||(console[_0x110a31(0x2de)](_0x127f90+_0x110a31(0x2eb)+_0x127f90+_0x110a31(0x3a9)),process[_0x110a31(0x306)](0x2)),de(_0x26435a,_0x127f90,_0x110a31(0x257));}function de(_0x57fa8e,_0xd9f182,_0x57776d){const _0x3d77cd=_0x53049e;let _0x3dd6f6;try{_0x3dd6f6=JSON['parse'](_0x57fa8e);}catch(_0x582009){console[_0x3d77cd(0x2de)](_0xd9f182+':\x20'+_0x57776d+_0x3d77cd(0x283)+_0x582009[_0x3d77cd(0x258)]+').'),process[_0x3d77cd(0x306)](0x2);}return(typeof _0x3dd6f6!=_0x3d77cd(0x2f9)||_0x3dd6f6===null||Array['isArray'](_0x3dd6f6))&&(console[_0x3d77cd(0x2de)](_0xd9f182+':\x20'+_0x57776d+_0x3d77cd(0x302)),process[_0x3d77cd(0x306)](0x2)),_0x3dd6f6;}function ue(_0x3c36ca,_0x77da64){const _0x557bba=_0x53049e;let _0x22ecd4;try{_0x22ecd4=_0x3dc30b[_0x557bba(0x2e1)](_0x4a5007[_0x557bba(0x2c2)](_0x3c36ca),_0x557bba(0x2fa));}catch(_0x361a1d){console[_0x557bba(0x2de)](_0x77da64+_0x557bba(0x31a)+_0x361a1d[_0x557bba(0x258)]+').'),process['exit'](0x2);}return de(_0x22ecd4,_0x77da64,_0x557bba(0x2be));}async function Jt(_0x629de1){const _0x3fa8af=_0x53049e;_0x629de1[_0x3fa8af(0x2d9)]===void 0x0&&(console['error'](_0x3fa8af(0x35d)),process[_0x3fa8af(0x306)](0x2));let _0x32698a=ue(_0x629de1['jsonSchemaPath'],_0x3fa8af(0x23e)),_0x52b683=(await I(_0x629de1[_0x3fa8af(0x32f)],process[_0x3fa8af(0x384)]))[_0x3fa8af(0x27b)]();_0x52b683||(console[_0x3fa8af(0x2de)](_0x3fa8af(0x209)),process[_0x3fa8af(0x306)](0x2));let {client:_0x40d171}=await f(_0x629de1);try{let _0x1e2f74=await _0x18eb10(_0x40d171,{'prompt':_0x52b683,'jsonSchema':_0x32698a,'model':_0x629de1[_0x3fa8af(0x277)]||process.env.MODEL||_0x29fbfd,..._0x629de1[_0x3fa8af(0x352)]!==void 0x0&&{'sessionId':_0x629de1['sessionId']}},void 0x0);l(_0x629de1,_0x1e2f74,_0x3c0ae0=>{const _0x152225=_0x3fa8af;process[_0x152225(0x2ea)]['write'](JSON[_0x152225(0x200)](_0x3c0ae0['structured'],null,0x2)+'\x0a');});}catch(_0x261c2f){if(!_0x4fe9b0(_0x261c2f))throw _0x261c2f;console[_0x3fa8af(0x2de)](_0x261c2f[_0x3fa8af(0x258)]),process[_0x3fa8af(0x306)](0x1);}}function j(_0x295c4d){const _0x335407=_0x53049e;process[_0x335407(0x2ea)]['write'](_0x335407(0x32d)+_0x295c4d[_0x335407(0x277)]+'\x20('+_0x295c4d['model_version']+_0x335407(0x312)+_0x295c4d['usage'][_0x335407(0x2d1)]+'\x20tokens\x0a');}function Wt(_0x49765e){const _0x56fb0a=_0x53049e;j(_0x49765e);for(let _0x3e04fc of Object['keys'](_0x49765e[_0x56fb0a(0x37a)])){let _0x40941b=_0x49765e[_0x56fb0a(0x37a)][_0x3e04fc],_0x3064e6=_0x40941b[_0x56fb0a(0x353)]===_0x56fb0a(0x25d)?_0x56fb0a(0x2cd)+_0x40941b[_0x56fb0a(0x25d)][_0x56fb0a(0x276)](0x2):_0x40941b['type']===_0x56fb0a(0x339)?_0x56fb0a(0x21c)+_0x40941b[_0x56fb0a(0x339)]+_0x56fb0a(0x35f)+_0x40941b['confidence'][_0x56fb0a(0x276)](0x2)+')':'score\x20'+_0x40941b['score'][_0x56fb0a(0x276)](0x2)+'\x20(confidence\x20'+_0x40941b['confidence']['toFixed'](0x2)+')';process[_0x56fb0a(0x2ea)][_0x56fb0a(0x273)]('\x20\x20'+_0x3e04fc+':\x20'+_0x3064e6+'\x0a');}}function Gt(_0x303ea7){const _0x14b206=_0x53049e;j(_0x303ea7),_0x303ea7[_0x14b206(0x281)][_0x14b206(0x390)]((_0x11e343,_0x2619f0)=>{const _0x167d39=_0x14b206;process['stdout'][_0x167d39(0x273)]('\x20\x20'+(_0x2619f0+0x1)+'.\x20'+_0x11e343['id']+'\x20\x20'+_0x11e343[_0x167d39(0x33a)][_0x167d39(0x276)](0x3)+'\x20\x20(input\x20#'+_0x11e343[_0x167d39(0x2ee)]+')\x0a');});}function Kt(_0x3d2ef0){const _0x55871e=_0x53049e;j(_0x3d2ef0),process[_0x55871e(0x2ea)][_0x55871e(0x273)](_0x55871e(0x238)+_0x3d2ef0[_0x55871e(0x2a6)]+'\x0a');for(let _0x567f07 of _0x3d2ef0['results'])process['stdout'][_0x55871e(0x273)]('\x20\x20'+_0x567f07['id']+':\x20'+_0x567f07[_0x55871e(0x2c3)]+_0x55871e(0x35f)+_0x567f07[_0x55871e(0x370)][_0x55871e(0x276)](0x2)+')\x0a');}async function zt(_0x8c4cba){const _0x27b8ae=_0x53049e;let _0x8f56de=_0x8c4cba['prompt'][_0x27b8ae(0x27b)]();_0x8f56de||(console[_0x27b8ae(0x2de)](_0x27b8ae(0x2bc)),process[_0x27b8ae(0x306)](0x2));let {client:_0x3d3dc0}=await f(_0x8c4cba);try{let _0x21d39f=_0x8f56de==='-'?{'data':await Vt(process[_0x27b8ae(0x384)])}:_0x8f56de;l(_0x8c4cba,await _0x3df409(_0x3d3dc0,_0x21d39f,void 0x0),_0x41e9a2=>{const _0x1c81df=_0x27b8ae;process[_0x1c81df(0x2ea)][_0x1c81df(0x273)](_0x41e9a2['text']+'\x0a');});}catch(_0x18d203){if(_0x163c15(_0x18d203)&&(console['error'](_0x18d203['message']),process[_0x27b8ae(0x306)](_0x18d203['status']===void 0x0?0x2:0x1)),typeof _0x18d203?.['code']!=_0x27b8ae(0x2a2))throw _0x18d203;console['error'](_0x27b8ae(0x28c)+_0x8f56de+'\x20('+_0x18d203[_0x27b8ae(0x258)]+').'),process[_0x27b8ae(0x306)](0x2);}}async function Vt(_0x5d0198){const _0x4ff09e=_0x53049e;let _0x436d1c=[];for await(let _0x542b2e of _0x5d0198)_0x436d1c[_0x4ff09e(0x303)](Buffer[_0x4ff09e(0x288)](_0x542b2e));return Buffer[_0x4ff09e(0x36a)](_0x436d1c);}var Y=[_0x53049e(0x372),'pending',_0x53049e(0x2da),_0x53049e(0x307),_0x53049e(0x27d),_0x53049e(0x23e),_0x53049e(0x2b0),_0x53049e(0x234),'cancel',_0x53049e(0x344)],X={'list':_0x53049e(0x244),'pending':_0x53049e(0x239),'show':'delegations\x20show\x20<delegation-id|delegate://delegation/…>','create':'delegations\x20create\x20--session\x20<id>\x20[--to\x20<email|name>]\x20[--summary\x20<text>]\x20\x22<task>\x22|-','claim':'delegations\x20claim\x20<delegation-id|delegate://delegation/…>','complete':_0x53049e(0x387),'accept':'delegations\x20accept\x20<delegation-id>','dismiss':_0x53049e(0x232),'cancel':_0x53049e(0x29c),'delete':_0x53049e(0x36b)};async function Yt(_0x11fc1f){const _0x4db87f=_0x53049e;let [_0x1a3111='',_0x1e68f2='',..._0x1ce22f]=_0x11fc1f[_0x4db87f(0x24a)];Y[_0x4db87f(0x301)](_0x1a3111)||(console[_0x4db87f(0x2de)]((_0x1a3111?_0x4db87f(0x37d)+_0x1a3111+'.\x20':'')+'Use:\x20delegate-cli\x20delegations\x20'+Y[_0x4db87f(0x3a8)](_0x4db87f(0x346))+'.'),process[_0x4db87f(0x306)](0x2));let _0x36ed95=_0x1a3111;_0x36ed95!==_0x4db87f(0x307)&&(_0x11fc1f['delegateTo']!==void 0x0||_0x11fc1f[_0x4db87f(0x2f8)]!==void 0x0||_0x11fc1f['sessionId']!==void 0x0)&&(console['error'](_0x4db87f(0x315)),process[_0x4db87f(0x306)](0x2));let _0x4a26b4=(_0x36ed95==='create'?_0x11fc1f['operands'][_0x4db87f(0x26b)](0x1):_0x1ce22f)['join']('\x20')['trim'](),_0x6fd295=_0x36ed95==='create'||_0x36ed95===_0x4db87f(0x23e);(_0x36ed95!==_0x4db87f(0x307)&&!_0x1e68f2||(_0x6fd295?!_0x4a26b4:_0x4a26b4)||_0x36ed95===_0x4db87f(0x307)&&!_0x11fc1f[_0x4db87f(0x352)])&&(console[_0x4db87f(0x2de)]('Usage:\x20delegate-cli\x20'+X[_0x36ed95]),process['exit'](0x2));let _0x21252f=_0x6fd295&&_0x4a26b4==='-'?(await I('-',process[_0x4db87f(0x384)]))[_0x4db87f(0x27b)]():_0x4a26b4;_0x6fd295&&!_0x21252f&&(console[_0x4db87f(0x2de)](_0x4db87f(0x350)+X[_0x36ed95]+_0x4db87f(0x31e)),process[_0x4db87f(0x306)](0x2));let {client:_0x4ef364}=await f(_0x11fc1f);try{await Xt(_0x11fc1f,_0x4ef364,_0x36ed95,_0x1e68f2,_0x21252f);}catch(_0x2411f4){if(!_0x2287d4(_0x2411f4))throw _0x2411f4;console[_0x4db87f(0x2de)](_0x2411f4[_0x4db87f(0x258)]),process[_0x4db87f(0x306)](0x1);}}async function Xt(_0x33cf50,_0x145a5f,_0x211275,_0x27111d,_0x2d35a1){const _0x2af0b5=_0x53049e;switch(_0x211275){case _0x2af0b5(0x372):l(_0x33cf50,await _0x3a974b(_0x145a5f,_0x27111d),Qt);return;case'pending':l(_0x33cf50,await _0x12b386(_0x145a5f,_0x27111d),_0x498751=>{const _0x578ded=_0x2af0b5;_0x498751[_0x578ded(0x217)]&&process[_0x578ded(0x2ea)]['write'](_0x578ded(0x341)+_0x498751[_0x578ded(0x217)]['id']+'\x20('+_0x498751[_0x578ded(0x217)][_0x578ded(0x326)]+_0x578ded(0x1fa)),_0x498751[_0x578ded(0x2a0)]['length']===0x0&&process[_0x578ded(0x33b)][_0x578ded(0x273)]('No\x20answers\x20awaiting\x20acceptance.\x0a');for(let _0x380914 of _0x498751['pendingResults'])process[_0x578ded(0x2ea)][_0x578ded(0x273)]('\x0a'+_0x380914['id']+_0x578ded(0x2e0)+(_0x380914['assignedUserEmail']??'a\x20colleague')+'\x20\x20'+(_0x380914[_0x578ded(0x270)]??'')+'\x0a'+(_0x380914[_0x578ded(0x389)]?.[_0x578ded(0x3a7)]??'')+'\x0a');_0x498751[_0x578ded(0x2a0)][_0x578ded(0x26c)]>0x0&&process[_0x578ded(0x33b)][_0x578ded(0x273)](_0x578ded(0x32c));});return;case _0x2af0b5(0x2da):l(_0x33cf50,await _0x5465f7(_0x145a5f,_0x27111d),Q);return;case _0x2af0b5(0x307):{let _0x52731d=await _0x506b79(_0x145a5f,{'sessionId':_0x33cf50[_0x2af0b5(0x352)],'task':_0x2d35a1,..._0x33cf50['contextSummary']!==void 0x0&&{'contextSummary':_0x33cf50[_0x2af0b5(0x2f8)]},..._0x33cf50[_0x2af0b5(0x34c)]!==void 0x0&&{'recipient':_0x33cf50['delegateTo']}});l(_0x33cf50,_0x52731d,_0x108f45=>{const _0x435f32=_0x2af0b5;_0x108f45['assignedUser']?process['stdout'][_0x435f32(0x273)](_0x435f32(0x216)+_0x108f45[_0x435f32(0x3a0)]+_0x435f32(0x271)+_0x108f45['assignedUser'][_0x435f32(0x272)]+'\x20<'+_0x108f45[_0x435f32(0x268)][_0x435f32(0x328)]+'>.\x0a'):process[_0x435f32(0x2ea)][_0x435f32(0x273)](_0x435f32(0x2b7)+_0x108f45[_0x435f32(0x3a0)]+_0x435f32(0x318)+_0x108f45[_0x435f32(0x2b3)]+'\x0a');});return;}case _0x2af0b5(0x27d):{let _0x1b96a1=await _0x2bf761(_0x145a5f,_0x27111d);l(_0x33cf50,_0x1b96a1,_0x39d953=>{const _0x29e1a1=_0x2af0b5;Q(_0x39d953),process[_0x29e1a1(0x2ea)][_0x29e1a1(0x273)](_0x29e1a1(0x28e)+_0x39d953[_0x29e1a1(0x352)]+'\x0a'),process[_0x29e1a1(0x33b)]['write'](_0x29e1a1(0x2b6)+_0x39d953[_0x29e1a1(0x352)]+_0x29e1a1(0x279)+_0x39d953['delegationId']+'\x20\x22<answer>\x22\x0a');});return;}case'complete':{let {alreadyCompleted:_0x2f9b03}=await _0x34da94(_0x145a5f,_0x27111d,{'content':_0x2d35a1});l(_0x33cf50,{'delegationId':_0x27111d,'alreadyCompleted':_0x2f9b03},_0x2f114d=>{const _0x5b6c25=_0x2af0b5;process[_0x5b6c25(0x2ea)][_0x5b6c25(0x273)]((_0x2f114d['alreadyCompleted']?_0x5b6c25(0x30f):_0x5b6c25(0x296))+_0x5b6c25(0x30e)+_0x2f114d[_0x5b6c25(0x3a0)]+'.\x0a');});return;}case'accept':{let _0x369238=await _0x248eb3(_0x145a5f,_0x27111d);l(_0x33cf50,{'delegationId':_0x27111d,..._0x369238},_0x19a0a2=>{const _0x608f7d=_0x2af0b5;process[_0x608f7d(0x2ea)]['write']((_0x19a0a2[_0x608f7d(0x347)]?_0x608f7d(0x290):_0x608f7d(0x368))+_0x608f7d(0x30e)+_0x19a0a2[_0x608f7d(0x3a0)]+'.\x0a');});return;}default:{let _0x1a9631={'dismiss':_0x53df9e,'cancel':_0x2def74,'delete':_0x15f73f}[_0x211275];await _0x1a9631(_0x145a5f,_0x27111d);let _0x44985b={'dismiss':'dismissed','cancel':_0x2af0b5(0x3a3),'delete':'deleted'}[_0x211275];l(_0x33cf50,{'delegationId':_0x27111d,[_0x44985b]:!0x0},()=>{const _0x37ab27=_0x2af0b5;process[_0x37ab27(0x2ea)]['write'](''+_0x44985b[0x0][_0x37ab27(0x30a)]()+_0x44985b[_0x37ab27(0x26b)](0x1)+_0x37ab27(0x30e)+_0x27111d+'.\x0a');});}}}function Qt(_0x1b356b){const _0x168557=_0x53049e;if(_0x1b356b['length']===0x0){process['stderr']['write']('No\x20delegations.\x0a');return;}process[_0x168557(0x2ea)][_0x168557(0x273)]('ID'[_0x168557(0x3ab)](0x24)+'\x20\x20'+_0x168557(0x2d8)[_0x168557(0x3ab)](0x9)+'\x20\x20'+'ASSIGNEE'[_0x168557(0x3ab)](0x18)+_0x168557(0x2a4));for(let _0x23f20a of _0x1b356b)process['stdout']['write'](_0x23f20a['id'][_0x168557(0x3ab)](0x24)+'\x20\x20'+_0x23f20a[_0x168557(0x326)][_0x168557(0x3ab)](0x9)+'\x20\x20'+(_0x23f20a[_0x168557(0x324)]??'-')[_0x168557(0x3ab)](0x18)+'\x20\x20'+(_0x23f20a[_0x168557(0x270)]??'')+'\x0a');}function Q(_0x4b2058){const _0x133dd5=_0x53049e;process['stdout'][_0x133dd5(0x273)](_0x133dd5(0x2c4)+(_0x4b2058['sourceUserEmail']??'-')+'\x0a'),_0x4b2058[_0x133dd5(0x35b)]&&process[_0x133dd5(0x2ea)][_0x133dd5(0x273)](_0x133dd5(0x28e)+_0x4b2058[_0x133dd5(0x35b)]+'\x0a'),process['stdout'][_0x133dd5(0x273)](_0x133dd5(0x292)+(_0x4b2058['task']??'-')+'\x0a'),_0x4b2058[_0x133dd5(0x2f8)]&&process[_0x133dd5(0x2ea)]['write']('\x0a'+_0x4b2058[_0x133dd5(0x2f8)]+'\x0a\x0a');}async function Zt(_0x1fb42d){const _0x140f2d=_0x53049e;_0x1fb42d['prompt'][_0x140f2d(0x27b)]()||(console['error'](_0x140f2d(0x32e)),process[_0x140f2d(0x306)](0x2));let {client:_0x4a726f}=await f(_0x1fb42d),_0x189e69;try{_0x189e69=await _0x4c0445(_0x4a726f,_0x1fb42d[_0x140f2d(0x32f)]);}catch(_0x240787){if(!_0x2287d4(_0x240787))throw _0x240787;console[_0x140f2d(0x2de)](_0x240787[_0x140f2d(0x258)]),process[_0x140f2d(0x306)](0x1);}l(_0x1fb42d,_0x189e69,_0xf3d2cb=>{const _0x5b5b75=_0x140f2d;_0xf3d2cb[_0x5b5b75(0x26c)]===0x0&&process[_0x5b5b75(0x33b)]['write'](_0x5b5b75(0x308)+_0x1fb42d[_0x5b5b75(0x32f)][_0x5b5b75(0x27b)]()+_0x5b5b75(0x386));for(let _0x1b6d9e of _0xf3d2cb)process[_0x5b5b75(0x2ea)]['write'](_0x1b6d9e[_0x5b5b75(0x328)][_0x5b5b75(0x3ab)](0x20)+'\x20\x20'+_0x1b6d9e[_0x5b5b75(0x272)]+'\x0a');});}async function en(_0x282dc7){const _0x3f4b75=_0x53049e;_0x282dc7[_0x3f4b75(0x229)]===_0x3f4b75(0x2f5)&&(console[_0x3f4b75(0x2de)](_0x3f4b75(0x223)),process[_0x3f4b75(0x306)](0x2));let _0x5e939f=$(_0x565a2f()),_0x4ddaf6=_0x282dc7['skipEnvCheck'];if(_0x282dc7[_0x3f4b75(0x229)]){let _0x3d2bd1=_0x282dc7[_0x3f4b75(0x229)];await _0x48803c({'env':_0x3d2bd1,'tenant':_0x282dc7[_0x3f4b75(0x259)]??C(_0x5e939f,_0x3bffe8[_0x3d2bd1]),'skipEnvCheck':_0x4ddaf6});return;}let _0x203cd3=_0x282dc7[_0x3f4b75(0x201)]??ce();if(_0x203cd3){await _0x48803c({'baseUrl':_0x203cd3,'tenant':_0x282dc7['tenant']??C(_0x5e939f,_0x203cd3),'skipEnvCheck':_0x4ddaf6});return;}if(_0x5e939f?.['baseUrl']){await _0x48803c({'baseUrl':_0x5e939f[_0x3f4b75(0x3a5)],'tenant':_0x282dc7[_0x3f4b75(0x259)]??_0x5e939f[_0x3f4b75(0x3a1)],'skipEnvCheck':_0x4ddaf6});return;}console[_0x3f4b75(0x2de)](_0x3f4b75(0x385)),process[_0x3f4b75(0x306)](0x2);}function C(_0x3fa0b6,_0x5a7712){const _0x7390c=_0x53049e;return _0x3fa0b6?.[_0x7390c(0x3a5)]&&tn(_0x3fa0b6[_0x7390c(0x3a5)],_0x5a7712)?_0x3fa0b6[_0x7390c(0x3a1)]:void 0x0;}function tn(_0x38bca3,_0x2370c3){const _0x4c85d7=_0x53049e;try{return new URL(_0x38bca3)[_0x4c85d7(0x37f)]===new URL(_0x2370c3)['origin'];}catch{return!0x1;}}async function nn(_0x70fc67){const _0x4a3e83=_0x53049e;O()&&(console[_0x4a3e83(0x2de)](_0x4a3e83(0x325)),process['exit'](0x2));let _0x572fc2=await _0x13d4ea();if(_0x572fc2||(console['error'](on()),process['exit'](0x2)),_0x70fc67['trim']()){let _0x455466=await _0x2c09f6(_0x572fc2,_0x70fc67);_0x41ec9d(_0x455466)||(console[_0x4a3e83(0x2de)](_0x4a3e83(0x227)+_0x565a2f()+_0x4a3e83(0x2ab)+_0x572fc2[_0x4a3e83(0x3a1)]+'.'),process[_0x4a3e83(0x306)](0x1)),console['log']('Tenant:\x20'+_0x455466[_0x4a3e83(0x3a1)]+'\x20('+_0x455466['tenantId']+')\x20—\x20saved\x20to\x20'+_0x565a2f());return;}sn(await _0x51239d(_0x572fc2),_0x572fc2);}function on(){const _0x4b3a8c=_0x53049e;if(_0x3dc30b[_0x4b3a8c(0x327)](_0x565a2f()))return _0x4b3a8c(0x33e);let _0x31718d=L();return $(_0x31718d)?_0x4b3a8c(0x364)+_0x31718d+_0x4b3a8c(0x388):_0x4b3a8c(0x2bd);}function sn(_0x3142ab,_0x136b2c){const _0x15fa25=_0x53049e;let _0x300e1f=_0x3142ab[_0x15fa25(0x361)](_0xb0888=>_0xb0888['id']===_0x136b2c['tenantId']?'*\x20'+_0xb0888[_0x15fa25(0x396)]+_0x15fa25(0x2db):'\x20\x20'+_0xb0888[_0x15fa25(0x396)]);process[_0x15fa25(0x2ea)][_0x15fa25(0x273)](_0x15fa25(0x21e)+(_0x136b2c[_0x15fa25(0x31f)]??_0x136b2c[_0x15fa25(0x299)])+':\x0a'+_0x300e1f[_0x15fa25(0x3a8)]('\x0a')+'\x0a'),_0x3142ab[_0x15fa25(0x26c)]>0x1&&process[_0x15fa25(0x2ea)]['write'](_0x15fa25(0x35c));}function rn(_0x481c31){const _0x34e929=_0x53049e;return _0x481c31?.[_0x34e929(0x21f)]?.[_0x34e929(0x326)]===0x191||/401/[_0x34e929(0x2cb)](String(_0x481c31?.[_0x34e929(0x258)]??''));}var d={'lastType':null,'quiet':!0x1},an=_0x57f990=>{const _0x2ae644=_0x53049e;switch(_0x57f990[_0x2ae644(0x353)]){case _0x2ae644(0x263):_0x57f990[_0x2ae644(0x352)]&&_0x57f990[_0x2ae644(0x352)]!==d[_0x2ae644(0x352)]&&(process[_0x2ae644(0x33b)][_0x2ae644(0x273)](_0x2ae644(0x291)+_0x57f990[_0x2ae644(0x352)]+_0x2ae644(0x254)+_0x57f990[_0x2ae644(0x352)]+')\x0a'),d[_0x2ae644(0x352)]=_0x57f990[_0x2ae644(0x352)]);break;case _0x2ae644(0x398):_0x57f990[_0x2ae644(0x391)]&&_0x57f990[_0x2ae644(0x391)]!==d['turnId']&&(d[_0x2ae644(0x351)]!==null&&process[_0x2ae644(0x33b)]['write']('\x0a'),process['stderr']['write'](_0x2ae644(0x310)+_0x57f990[_0x2ae644(0x391)]+_0x2ae644(0x219)+_0x57f990[_0x2ae644(0x352)]+_0x2ae644(0x23d)+_0x57f990['turnId']+')\x0a'),d[_0x2ae644(0x391)]=_0x57f990['turnId'],d[_0x2ae644(0x351)]=_0x2ae644(0x398));break;case'thinking':_0x57f990[_0x2ae644(0x3a7)]&&!d[_0x2ae644(0x319)]&&(d[_0x2ae644(0x351)]!==_0x2ae644(0x1f9)&&process[_0x2ae644(0x33b)][_0x2ae644(0x273)](_0x2ae644(0x294)),process[_0x2ae644(0x33b)][_0x2ae644(0x273)](_0x57f990[_0x2ae644(0x3a7)]),d[_0x2ae644(0x351)]=_0x2ae644(0x1f9));break;case _0x2ae644(0x30d):d['lastType']!==null&&process[_0x2ae644(0x33b)][_0x2ae644(0x273)]('\x0a'),process[_0x2ae644(0x33b)][_0x2ae644(0x273)](_0x2ae644(0x2ad)+(_0x57f990[_0x2ae644(0x2b2)]??_0x2ae644(0x2d3))+'\x0a'),d[_0x2ae644(0x351)]=_0x2ae644(0x30d);break;case _0x2ae644(0x258):_0x57f990[_0x2ae644(0x3a7)]&&(d[_0x2ae644(0x351)]!=='message'&&d['lastType']!==null&&process[_0x2ae644(0x2ea)][_0x2ae644(0x273)]('\x0a'),process['stdout'][_0x2ae644(0x273)](_0x57f990[_0x2ae644(0x3a7)]),d[_0x2ae644(0x351)]=_0x2ae644(0x258));break;case _0x2ae644(0x2de):d[_0x2ae644(0x351)]!==null&&process[_0x2ae644(0x33b)][_0x2ae644(0x273)]('\x0a'),process[_0x2ae644(0x33b)]['write']('✗\x20'+(_0x57f990[_0x2ae644(0x2de)]??'error')+'\x0a'),d['lastType']=_0x2ae644(0x2de);break;case _0x2ae644(0x367):(d[_0x2ae644(0x351)]===_0x2ae644(0x258)||d[_0x2ae644(0x351)]===_0x2ae644(0x1f9))&&process[_0x2ae644(0x2ea)][_0x2ae644(0x273)]('\x0a'),process[_0x2ae644(0x33b)][_0x2ae644(0x273)](_0x2ae644(0x24f)),d[_0x2ae644(0x351)]=_0x2ae644(0x367);break;}};function Z(_0x1c0a03,_0x3eaba5,_0x1e78bb){const _0x113587=_0x53049e;let _0x3292e9=_0x1c0a03[_0x113587(0x277)]||process.env.MODEL;return{'backendUrl':_0x1e78bb,'auth':_0x3eaba5,'enableComputerUse':!_0x1c0a03[_0x113587(0x248)]&&!_0x1c0a03[_0x113587(0x305)],'autoSpawnInterop':!_0x1c0a03[_0x113587(0x248)],'enableConnections':!_0x1c0a03[_0x113587(0x340)],'enableSecurity':!_0x1c0a03[_0x113587(0x2ec)],'keepInteropAlive':_0x1c0a03['keepAlive'],..._0x1c0a03[_0x113587(0x289)]?{'enableMemory':!0x1}:{},..._0x1c0a03[_0x113587(0x20b)]?{'enableTaskAutomation':!0x0}:{},..._0x1c0a03[_0x113587(0x251)]['length']>0x0?{'preloadSkills':_0x1c0a03[_0x113587(0x251)]}:{},..._0x3292e9?{'model':_0x3292e9}:{},..._0x1c0a03['projectId']?{'projectId':_0x1c0a03[_0x113587(0x366)]}:{},..._0x1c0a03[_0x113587(0x2fb)]?{'workingDirectory':_0x1c0a03['workingDirectory']}:{},..._0x1c0a03['bundledSkillsPath']?{'bundledSkillsPath':_0x1c0a03[_0x113587(0x202)]}:{},..._0x1c0a03['effort']?{'effort':_0x1c0a03['effort']}:{},..._0x1c0a03['sessionId']?{'sessionId':_0x1c0a03[_0x113587(0x352)]}:{},..._0x1c0a03[_0x113587(0x33d)]?{'verbose':!0x0}:{}};}async function ln(_0x594b6c){const _0x59382d=_0x53049e;let _0x1c1cfa=_0x594b6c[_0x59382d(0x304)]!==_0x59382d(0x262),_0x398fba=_0x594b6c[_0x59382d(0x2d9)]===void 0x0?null:ue(_0x594b6c[_0x59382d(0x2d9)],_0x59382d(0x332)),_0x5336a8=!_0x1c1cfa&&!_0x398fba&&!_0x594b6c[_0x59382d(0x28b)]&&_0x594b6c['prompt']!=='-'&&!!process[_0x59382d(0x384)][_0x59382d(0x20d)]&&!!process[_0x59382d(0x2ea)][_0x59382d(0x20d)],_0x29866a=_0x5336a8?_0x594b6c[_0x59382d(0x32f)][_0x59382d(0x27b)]():await I(_0x594b6c[_0x59382d(0x32f)],process['stdin']);if(!_0x5336a8&&!_0x29866a&&(console['error'](_0x59382d(0x206)),process[_0x59382d(0x306)](0x2)),!_0x1c1cfa){await ee(_0x594b6c,_0x29866a,_0x5336a8,null,_0x398fba);return;}let _0x2d02c7=!0x1,_0x27aa6a=_0x42bdf7=>{const _0x21b2a5=_0x59382d;_0x2d02c7=!0x0,S(_0x4e25f4(_0x42bdf7)),(_0x42bdf7[_0x21b2a5(0x322)]||_0x42bdf7[_0x21b2a5(0x2c1)])&&(process[_0x21b2a5(0x26e)]=0x1);},_0x4a3db5=Date[_0x59382d(0x2f3)]();try{await ee(_0x594b6c,_0x29866a,!0x1,_0x27aa6a,_0x398fba);}catch(_0x52ddcc){if(_0x2d02c7)throw _0x52ddcc;process['stderr'][_0x59382d(0x273)]((_0x52ddcc instanceof Error?_0x52ddcc[_0x59382d(0x2fc)]??_0x52ddcc[_0x59382d(0x258)]:String(_0x52ddcc))+'\x0a'),_0x27aa6a(new _0x362234(_0x4a3db5)[_0x59382d(0x313)]({'endedAtMs':Date[_0x59382d(0x2f3)](),'usage':[],'error':_0x52ddcc}));}}async function ee(_0x4b978a,_0x12da0d,_0x4d0173,_0x1e0ebe,_0x3efec8){const _0x3c0137=_0x53049e;d={'lastType':null,'quiet':_0x4b978a[_0x3c0137(0x319)]};let _0x32f290=new Set(),_0x48808d=_0x3a2498=>{const _0x1f5a10=_0x3c0137;(!_0x1e0ebe||_0x3a2498['type']===_0x1f5a10(0x263)||_0x3a2498['type']==='turn_start')&&an(_0x3a2498);for(let _0x5274bb of _0x32f290)_0x5274bb(_0x3a2498);},_0xbc33ca=await P(),_0x521634=new _0x247627();_0x521634[_0x3c0137(0x2d6)](_0x48808d);let _0x5eb5b2=_0x52fef(_0x4b978a[_0x3c0137(0x229)],_0xbc33ca,_0x4b978a[_0x3c0137(0x20a)]);F(_0x4b978a[_0x3c0137(0x229)],_0x4b978a[_0x3c0137(0x20a)],_0x5eb5b2);let _0x26da67=Z(_0x4b978a,_0xbc33ca,_0x5eb5b2),_0xb5ef27=!0x1,_0x2beafc=!0x1,_0x555344,_0x484539=()=>_0x555344??=_0x521634[_0x3c0137(0x269)](),_0x3ff49c=()=>{const _0x19d397=_0x3c0137;_0x2beafc&&process['exit'](0x82),_0x2beafc=!0x0,process[_0x19d397(0x33b)][_0x19d397(0x273)](_0x19d397(0x218)),_0xb5ef27&&_0x521634[_0x19d397(0x36f)]()[_0x19d397(0x22e)](_0x102997=>console[_0x19d397(0x2de)](_0x102997))[_0x19d397(0x275)](_0x484539)[_0x19d397(0x275)](()=>process['exit'](0x82),_0x238686=>{const _0x16b339=_0x19d397;console['error'](_0x238686),process[_0x16b339(0x306)](0x82);});};process['on'](_0x3c0137(0x2af),_0x3ff49c);let _0x3e7ba6=_0x4b978a[_0x3c0137(0x2e3)],_0x167930=async _0x446d90=>{const _0x2257a9=_0x3c0137;let _0x1f0bd1=_0x3e7ba6;_0x3e7ba6=[];let _0x44878f=()=>_0x521634[_0x2257a9(0x345)](_0x446d90,{'attachments':_0x1f0bd1});try{return await _0x44878f();}catch(_0x312007){if(_0x2beafc||!rn(_0x312007)||!process[_0x2257a9(0x384)]['isTTY']||_0x4b978a[_0x2257a9(0x229)]==='localhost'||!(_0x4b978a[_0x2257a9(0x229)]||_0xbc33ca['baseUrl']))throw _0x312007;process[_0x2257a9(0x33b)][_0x2257a9(0x273)]('\x0a⚠️\x20\x20Auth\x20expired.\x20Opening\x20browser\x20to\x20re-login…\x0a');let _0x4b1fc2=_0x521634[_0x2257a9(0x213)]()??_0x4b978a[_0x2257a9(0x352)],_0x1a5bad=await _0x48803c(_0x4b978a[_0x2257a9(0x229)]?{'env':_0x4b978a[_0x2257a9(0x229)],'tenant':C(_0xbc33ca,_0x3bffe8[_0x4b978a[_0x2257a9(0x229)]]),'skipEnvCheck':!0x0}:{'baseUrl':_0xbc33ca['baseUrl'],'tenant':_0xbc33ca[_0x2257a9(0x3a1)],'skipEnvCheck':!0x0}),_0x3af50d={'text':'','failed':!0x1,'sessionId':_0x4b1fc2};return _0x2beafc||(_0xb5ef27=!0x1,await _0x484539(),_0x2beafc)?_0x3af50d:(_0x521634=new _0x247627(),_0x555344=void 0x0,_0x521634[_0x2257a9(0x2d6)](_0x48808d),_0xbc33ca=_0x1a5bad,await _0x521634[_0x2257a9(0x35a)]({...Z(_0x4b978a,_0xbc33ca,_0x5eb5b2),..._0x4b1fc2?{'sessionId':_0x4b1fc2}:{}}),_0xb5ef27=!0x0,_0x2beafc?_0x3af50d:_0x44878f());}};try{if(await _0x521634['initialize'](_0x26da67),_0xb5ef27=!0x0,_0x2beafc)return;if(_0x4d0173)await un({'prompt':_0x12da0d,'sendMessage':_0x167930,'onSigint':_0x3ff49c});else{if(_0x1e0ebe||_0x3efec8){let _0x445284=_0x4b978a[_0x3c0137(0x304)]==='stream-json'?_0x35fa99=>S(_0x1dcf3b(_0x35fa99)):()=>{},_0x1a7152=await _0x173b5b({'onEvent':_0x38d674=>(_0x32f290[_0x3c0137(0x2d0)](_0x38d674),()=>{const _0x2e5feb=_0x3c0137;_0x32f290[_0x2e5feb(0x344)](_0x38d674);}),'sendMessage':_0x9b84dc=>_0x167930(_0x9b84dc),'getSessionId':()=>_0x521634['getSessionId'](),'getTurnUsageHistory':_0x1d147b=>_0x521634[_0x3c0137(0x29d)](_0x1d147b),'complete':_0x151613=>_0x521634[_0x3c0137(0x23e)](_0x151613)},_0x12da0d,void 0x0,_0x445284,_0x3efec8?{'outputSchema':_0x3efec8}:void 0x0);_0x1e0ebe?_0x1e0ebe(_0x1a7152):cn(_0x1a7152);}else await _0x167930(_0x12da0d);}}catch(_0x39d65b){if(!_0x2beafc)throw _0x39d65b;}finally{try{await _0x484539();}finally{process['off'](_0x3c0137(0x2af),_0x3ff49c),_0x2beafc&&(process['exitCode']=0x82);}}}function cn(_0x2407ca){const _0xce38f4=_0x53049e;_0x2407ca[_0xce38f4(0x2c1)]?(console[_0xce38f4(0x2de)]('Structured\x20output\x20failed:\x20'+_0x2407ca[_0xce38f4(0x2c1)][_0xce38f4(0x258)]),process['exitCode']=0x1):_0x2407ca[_0xce38f4(0x322)]?(console[_0xce38f4(0x2de)](_0xce38f4(0x29a)+_0x2407ca[_0xce38f4(0x2de)]+').'),process[_0xce38f4(0x26e)]=0x1):process['stdout'][_0xce38f4(0x273)](JSON[_0xce38f4(0x200)](_0x2407ca[_0xce38f4(0x256)],null,0x2)+'\x0a');}function dn(_0x5ed370,_0x3228a6){const _0x167513=_0x53049e;let _0x5b20a2=process[_0x167513(0x2ea)]['write'][_0x167513(0x2f2)](process[_0x167513(0x2ea)]),_0x5c994c=!0x1;return process[_0x167513(0x2ea)][_0x167513(0x273)]=(..._0x4a0136)=>{if(!_0x5c994c)return _0x5b20a2(..._0x4a0136);_0x393c13(_0x3228a6,0x0),_0x52289b(_0x3228a6,0x0);let _0x57c4d6=_0x5b20a2(..._0x4a0136);return _0x5ed370['prompt'](!0x0),_0x57c4d6;},{'show':()=>{const _0x149acf=_0x167513;_0x5c994c=!0x0,_0x5ed370[_0x149acf(0x32f)]();},'hide':()=>{_0x5c994c=!0x1;},'restore':()=>{const _0x2b25fa=_0x167513;_0x5c994c=!0x1,process[_0x2b25fa(0x2ea)][_0x2b25fa(0x273)]=_0x5b20a2;}};}async function un({prompt:_0x29deb9,sendMessage:_0x2bcf2d,onSigint:_0x34c13d}){const _0x50a760=_0x53049e;let _0x18ddf7=_0x5fcba8({'input':process[_0x50a760(0x384)],'output':process['stderr'],'terminal':!0x0,'prompt':_0x50a760(0x24b)}),_0x512f9f=dn(_0x18ddf7,process[_0x50a760(0x33b)]),_0x53d581=_0x18ddf7[Symbol[_0x50a760(0x1fd)]](),_0x3a0ed0=!0x1;_0x18ddf7[_0x50a760(0x337)](_0x50a760(0x32b),()=>{const _0x273bbe=_0x50a760;_0x3a0ed0=!0x0,_0x512f9f[_0x273bbe(0x39c)]();});let _0x21469c=!0x1,_0x11b9db=()=>{const _0x41e46b=_0x50a760;_0x21469c=!0x0,_0x18ddf7[_0x41e46b(0x32b)](),_0x34c13d();};_0x18ddf7['on']('SIGINT',_0x11b9db),process[_0x50a760(0x33b)][_0x50a760(0x273)]('Enter\x20sends\x20a\x20message.\x20/exit\x20or\x20EOF\x20exits;\x20Ctrl+C\x20stops\x20and\x20exits.\x0a');try{if(_0x29deb9&&await _0x2bcf2d(_0x29deb9),_0x21469c)return;_0x3a0ed0||_0x512f9f['show']();for await(let _0x2a97fe of _0x53d581){if(_0x512f9f['hide'](),_0x21469c)break;let _0x126ffb=_0x2a97fe[_0x50a760(0x27b)]();if(_0x126ffb===_0x50a760(0x285))break;_0x126ffb&&await _0x2bcf2d(_0x126ffb),_0x3a0ed0||_0x512f9f[_0x50a760(0x2da)]();}}finally{_0x512f9f[_0x50a760(0x26f)](),_0x18ddf7[_0x50a760(0x2ac)]('SIGINT',_0x11b9db),_0x18ddf7[_0x50a760(0x32b)]();}}function _0x3e51(){const _0x29d411=['getTurnUsageHistory','Bearer\x20','days','pendingResults','--skip-env-check\x20applies\x20to\x20`delegate-cli\x20login`\x20only.','string','a\x20directory\x20path','\x20\x20TASK\x0a','1\x20or\x20more','rubric_version','No\x20sessions\x20on\x20page\x20','--skip-env-check','file','--verbose',';\x20the\x20saved\x20login\x20still\x20uses\x20','off','🔧\x20','--include-subagents','SIGINT','accept','Usage:\x20delegate-cli\x20sessions\x20[list]\x20[--page\x20N]\x20[--limit\x20N]\x20[--include-subagents]','toolName','deepLink','%\x20of\x20','a\x20briefing\x20text','Work\x20on\x20it\x20with:\x20delegate-cli\x20--session\x20','Created\x20delegation\x20','\x20PU','expiresAt','a\x20format\x20(','mode','transcribe\x20needs\x20audio:\x20delegate-cli\x20transcribe\x20<file>,\x20or\x20-\x20to\x20read\x20stdin.','No\x20CLI\x20login\x20found.\x20Run\x20`delegate-cli\x20login\x20--env\x20<alpha|staging|production>`\x20first.','the\x20JSON\x20schema','\x20of\x20a\x20$','auth','structuredError','resolve','verdict','From\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','parentSessionId','model_id','usage','an\x20effort\x20tier','login','tokenExpiresAt','test','pause','probability\x20','data','--attach:\x20no\x20such\x20file\x20or\x20folder:\x20','add','total_tokens','keepAlive','tool','--env','\x20(resets\x20','onEvent','Usage:\x20delegate-cli\x20sessions\x20','STATUS','jsonSchemaPath','show','\x20(current)','\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','--url','error','\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).','\x20\x20from\x20','readFileSync','help','attachments','fork','No\x20models\x20available\x20for\x20this\x20product/tenant.\x0a','lockReason','Cartographer:\x20','startsWith','total_cost_usd','stdout','\x20needs\x20a\x20JSON\x20request:\x20delegate-cli\x20','noSecurity','replace','index','[saved\x20login]\x20Backend\x20URL:\x20','limit_enabled','Usage:\x20delegate-cli\x20sessions\x20fork\x20<id>\x20[<message-id>]','bind','now','high','localhost','byoWarning','cartographer','contextSummary','object','utf-8','workingDirectory','stack','evaluate','a\x20JSON\x20schema\x20file','session_consumed_pu','monthly_limit_usd','includes','\x20must\x20be\x20a\x20JSON\x20object.','push','outputFormat','noComputerUse','exit','create','No\x20one\x20matches\x20\x22','max','toUpperCase','title','Delegation\x20\x20\x20\x20','tool_call','\x20delegation\x20','Already\x20answered','Turn:\x20','\x20this\x20month','),\x20','finish','\x20\x20\x20\x20','--to,\x20--summary\x20and\x20--session\x20apply\x20to\x20`delegate-cli\x20delegations\x20create`\x20only.','token_units','a\x20number','.\x20Share:\x20','quiet',':\x20cannot\x20read\x20the\x20JSON\x20schema\x20(','4152741iATKCY','\x20(estimated\x20$','interopPath','\x20(stdin\x20was\x20empty)','orgLogicalName','monthly_spend_usd','3285EZarOV','isError','staging','assignedUserEmail','Auth\x20comes\x20from\x20AUTH_TOKEN/TENANT_ID/ORG_ID\x20—\x20set\x20TENANT_ID\x20and\x20TENANT_SLUG\x20to\x20change\x20the\x20tenant.','status','existsSync','email','ID\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','argv','close','\x0aAccept\x20one\x20with:\x20delegate-cli\x20delegations\x20accept\x20<id>\x0a','Model\x20','Usage:\x20delegate-cli\x20org-users\x20<name\x20or\x20email\x20prefix>','prompt','--output-format\x20','\x20<id>','delegate-cli','--backend','--output-format','\x27\x20is\x20empty.','spawn','once','Invalid\x20--project:\x20\x22','choice','score','stderr','a\x20deployment\x20URL,\x20e.g.\x20https://automationsuite.contoso.com','verbose','The\x20saved\x20CLI\x20login\x20could\x20not\x20be\x20refreshed.\x20Run\x20`delegate-cli\x20login`\x20again.','Continue\x20it\x20with:\x20delegate-cli\x20--session\x20','noConnections','Claimed\x20from\x20delegation\x20','Organization\x20\x20','prompt_tokens','delete','sendMessage','\x20|\x20','alreadyAccepted','No\x20CLI\x20login\x20found\x20—\x20nothing\x20to\x20remove.','[env=','\x20PU\x20used','Source:\x20\x20\x20\x20\x20\x20\x20','delegateTo','resume','--task-automation\x20applies\x20to\x20prompts\x20only.','total_sessions','Usage:\x20delegate-cli\x20','lastType','sessionId','type','userId','4KuGjpo','a\x20session\x20id','Session\x20','--url\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Other\x20commands\x20follow\x20the\x20saved\x20login,\x20or\x20--backend\x20<url>.','Unknown\x20sessions\x20action:\x20','initialize','sourceTitle','Switch\x20with:\x20delegate-cli\x20tenant\x20<name>\x0a','complete\x20needs\x20--json-schema\x20<file>:\x20delegate-cli\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22.','\x20not\x20found.','\x20(confidence\x20','\x20days.\x0a','map','sessions','org-users','No\x20CLI\x20login\x20to\x20switch:\x20the\x20CLI\x20is\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20','detail','projectId','done','Accepted','Owner\x20\x20\x20\x20\x20\x20\x20\x20\x20','concat','delegations\x20delete\x20<delegation-id>','check','--cartographer','Usage:\x20delegate-cli\x20sessions\x20cancel\x20<session-id>\x20--turn\x20<turn-id>','cancel','confidence','updatedAt','list','a\x20turn\x20id','tenantId','end','--help','daily','period_end','includeSubAgents','answers','total_token_units','daily_usage','Unknown\x20delegations\x20action:\x20','32512XJPbmL','origin','\x20\x20\x20\x20BYO\x20warning:\x20','15231010MlVNAn','effort','medium','stdin','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','\x22.\x0a','delegations\x20complete\x20<delegation-id>\x20\x22<answer>\x22|-',',\x20whose\x20tenant\x20is\x20chosen\x20in\x20the\x20app.\x20Run\x20`delegate-cli\x20login\x20--env\x20<env>`\x20for\x20a\x20CLI\x20login\x20of\x20your\x20own.','result','Interop\x20stopped\x20(if\x20it\x20was\x20running).','date','--model','rejection','Spending:\x20\x20\x20\x20\x20$','1764182nesDLl','forEach','turnId','\x20not\x20found,\x20has\x20no\x20messages','5365760fuWQMX','models_breakdown','parse','name','stop','turn_start','.aria','Token:\x20\x20\x20\x20\x20\x20\x20\x20expired\x20','Invalid\x20--effort:\x20','hide','\x20sessions\x20on\x20','--to','Deleted\x20session\x20','delegationId','tenantName','\x20min)','cancelled','--turn\x20applies\x20to\x20`delegate-cli\x20sessions\x20cancel`\x20only.','baseUrl','filter','content','join','\x20<file.json>,\x20or\x20-\x20to\x20read\x20stdin.','--project','padEnd','models','Last\x20','pct_used','activity','Tokens:\x20','2537550KYgHaJ','--preload-skill',':\x20cannot\x20read\x20the\x20request\x20(','.\x20Use\x20alpha\x20|\x20staging\x20|\x20production\x20|\x20localhost.','accessToken','thinking',').\x0a','skip','Base\x20URL:\x20\x20\x20\x20\x20','asyncIterator','Renamed\x20','No\x20turn\x20','stringify','url','bundledSkillsPath','Invalid\x20--env:\x20','\x0aUse\x20with:\x20delegate-cli\x20--model\x20<id>\x20\x22<prompt>\x22\x0a','self-hosted\x20(Automation\x20Suite\x20/\x20Dedicated)','Missing\x20prompt.\x20Pass\x20it\x20as\x20an\x20argument,\x20pipe\x20it\x20via\x20stdin,\x20or\x20run\x20`delegate-cli\x20--help`.','Cancel\x20requested\x20for\x20turn\x20','1gQCUyO','complete\x20needs\x20a\x20prompt:\x20delegate-cli\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22,\x20or\x20-\x20to\x20read\x20stdin.','backendUrl','taskAutomation','Token:\x20\x20\x20\x20\x20\x20\x20\x20expires\x20','isTTY','\x20from\x20','all','--page','host','rename','getSessionId','toISOString','period_days','Delegated\x20','delegation','\x0aStopping…\x20(Ctrl+C\x20again\x20to\x20force\x20exit)\x0a','\x20(cancel\x20with:\x20delegate-cli\x20sessions\x20cancel\x20','.\x20Use\x20','production','choice\x20','unknown','Tenants\x20of\x20','response','7XHICvH','verify','.\x20Use:\x20','--env\x20localhost\x20has\x20no\x20OAuth\x20flow;\x20pick\x20alpha,\x20staging,\x20or\x20production.','workerId','page','--authority','Tenant\x20not\x20switched:\x20could\x20not\x20write\x20','an\x20email\x20address\x20or\x20name','env','No\x20CLI\x20login\x20found.\x20Note:\x20the\x20CLI\x20is\x20currently\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20','Organization:\x20','\x20\x20(sub-agent\x20of\x20','cwd','catch','--runner-url','Date\x20\x20\x20\x20\x20\x20\x20\x20Token\x20units\x20\x20Prompt\x20tokens\x20\x20Completion\x20tokens','\x20token\x20units)','delegations\x20dismiss\x20<delegation-id>','xhigh','dismiss','deployment','subcommand','from\x201\x20to\x20','Rubric\x20','delegations\x20pending\x20<session-id>','No\x20usage\x20in\x20the\x20last\x20','\x20completion','Unknown\x20flag:\x20','\x20--turn\x20','complete',',\x20or\x20holds\x20no\x20message\x20','whoami','low','isSafeInteger','log','delegations\x20list\x20<backend-project-id>','total_prompt_tokens','floor','--effort','headless','\x20into\x20','operands','You>\x20','rerank','\x20<title>','\x20(in\x20','✓\x20Done\x0a','a\x20project\x20id','preloadSkills','--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`delegate-cli\x20sessions\x20[list]`\x20only.','logout','\x20(resume\x20with\x20--session\x20','--json-schema\x20applies\x20to\x20prompts\x20and\x20to\x20`delegate-cli\x20complete`\x20only.','structured','the\x20request','message','tenant','\x20(no\x20cap\x20enforced)','\x20token\x20units','--tenant\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Switch\x20tenants\x20with:\x20delegate-cli\x20tenant\x20<name>','probability','UPDATED','Removed\x20','--no-memory','limit','text','session_start','32013080vPgDXD','package.json','\x20must\x20be\x20a\x20whole\x20number\x20','unknown\x20slug','assignedUser','destroy','--days\x20applies\x20to\x20`delegate-cli\x20usage\x20activity|daily`\x20only.','slice','length','padStart','exitCode','restore','task','\x20to\x20','displayName','write','locked','then','toFixed','model','runnerUrl','\x20\x22<prompt>\x22\x0aAnswer\x20with:\x20delegate-cli\x20delegations\x20complete\x20','delegations','trim','--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`delegate-cli\x20sessions`\x20only.','claim','Licensing:\x20\x20\x20\x20no\x20licensing\x20quota\x20applies','\x20(Delegate\x20desktop\x20app\x20fallback)','cleanup','results','\x20in\x20progress\x20on\x20session\x20','\x20is\x20not\x20valid\x20JSON\x20(','\x20\x20\x20\x20Not\x20available\x20on\x20this\x20plan','/exit','--interop','Tenant:\x20\x20\x20\x20\x20\x20\x20','from','noMemory','More:\x20delegate-cli\x20sessions\x20--page\x20','print','transcribe:\x20cannot\x20read\x20','\x20\x22<prompt>\x22\x0a','Session\x20\x20\x20\x20\x20\x20\x20','total_completion_tokens','Already\x20accepted','Session:\x20','Task\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','skipEnvCheck','\x0a🤔\x20','--days','Answered','version','--days\x20applies\x20to\x20`delegate-cli\x20usage\x20activity|daily`;\x20the\x20summary\x20covers\x20the\x20current\x20month.','organizationId','No\x20structured\x20output:\x20the\x20turn\x20failed\x20(','\x20requires\x20','delegations\x20cancel\x20<delegation-id>'];_0x3e51=function(){return _0x29d411;};return _0x3e51();}async function pn(){const _0x156216=_0x53049e;let _0x6077b7=ht(process[_0x156216(0x32a)][_0x156216(0x26b)](0x2));if(_0x6077b7[_0x156216(0x304)]===_0x156216(0x262)){await te(_0x6077b7);return;}let _0xe8c573=gt();try{await te(_0x6077b7);}finally{_0xe8c573();}}async function te(_0x46d5ad){const _0x4f4d8b=_0x53049e;if(_0x46d5ad['help']){wt();return;}if(_0x46d5ad[_0x4f4d8b(0x297)]){console['log'](yt());return;}if(_0x46d5ad[_0x4f4d8b(0x236)]===_0x4f4d8b(0x2c9)){await en(_0x46d5ad);return;}if(_0x46d5ad['subcommand']===_0x4f4d8b(0x259)){await nn(_0x46d5ad['prompt']);return;}if(_0x46d5ad[_0x4f4d8b(0x236)]===_0x4f4d8b(0x253)){await vt();return;}if(_0x46d5ad['subcommand']===_0x4f4d8b(0x240)){await At(_0x46d5ad);return;}if(_0x46d5ad[_0x4f4d8b(0x236)]===_0x4f4d8b(0x1ef)){await Tt(_0x46d5ad);return;}if(_0x46d5ad[_0x4f4d8b(0x236)]===_0x4f4d8b(0x36c)){await Lt(_0x46d5ad);return;}if(_0x46d5ad[_0x4f4d8b(0x236)]===_0x4f4d8b(0x362)){await Dt(_0x46d5ad);return;}if(_0x46d5ad[_0x4f4d8b(0x236)]===_0x4f4d8b(0x2c7)){await Ft(_0x46d5ad);return;}if(_0x46d5ad['subcommand']===_0x4f4d8b(0x2fd)||_0x46d5ad['subcommand']==='rerank'||_0x46d5ad['subcommand']===_0x4f4d8b(0x221)){await Ht(_0x46d5ad,_0x46d5ad[_0x4f4d8b(0x236)]);return;}if(_0x46d5ad[_0x4f4d8b(0x236)]===_0x4f4d8b(0x23e)){await Jt(_0x46d5ad);return;}if(_0x46d5ad[_0x4f4d8b(0x236)]==='transcribe'){await zt(_0x46d5ad);return;}if(_0x46d5ad['subcommand']===_0x4f4d8b(0x27a)){await Yt(_0x46d5ad);return;}if(_0x46d5ad[_0x4f4d8b(0x236)]===_0x4f4d8b(0x363)){await Zt(_0x46d5ad);return;}if(_0x46d5ad[_0x4f4d8b(0x236)]===_0x4f4d8b(0x211)){await _0x6cd52d(_0x46d5ad['prompt'],{'runnerUrl':_0x46d5ad[_0x4f4d8b(0x278)],'backendUrl':_0x46d5ad[_0x4f4d8b(0x20a)],'interopPath':_0x46d5ad[_0x4f4d8b(0x31d)],'workerId':_0x46d5ad[_0x4f4d8b(0x224)]});return;}if(_0x46d5ad[_0x4f4d8b(0x280)]){await $t();return;}await ln(_0x46d5ad);}var mn=process.env.NODE_ENV===_0x53049e(0x2cb)||!!process.env.JEST_WORKER_ID;mn||pn()['catch'](_0x32b49e=>{const _0x49285f=_0x53049e;console[_0x49285f(0x2de)](_0x32b49e['stack']||_0x32b49e[_0x49285f(0x258)]||_0x32b49e),process[_0x49285f(0x306)](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.204.0-preview.20261007142740",
3
+ "version": "1.204.0-preview.20261014163853",
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.204.0-preview.20261007142740"
25
+ "@uipath/delegate-sdk": "1.204.0-preview.20261014163853"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@types/node": "^22.0.0",