@uipath/delegate-cli 1.204.0-preview.20261025160758 → 1.205.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -85,7 +85,7 @@ delegate-cli complete --json-schema FILE [--model ID] [--session ID] "<prompt>"|
85
85
  delegate-cli --json-schema FILE "<prompt>"
86
86
  One turn, then its result extracted as JSON matching
87
87
  the schema in FILE; exits 1 when extraction fails
88
- delegate-cli transcribe FILE|- Speech-to-text (Whisper): print the text of the audio
88
+ delegate-cli transcribe FILE|- Speech-to-text (transcription model): print the text of the audio
89
89
  in FILE (or stdin with -)
90
90
  delegate-cli org-users QUERY Search your organization's users by name or email
91
91
  prefix, for delegations create --to
@@ -106,7 +106,9 @@ delegate-cli --help
106
106
 
107
107
  When both stdin and stdout are terminals, the CLI starts an interactive conversation. An optional prompt is sent first; otherwise it waits at `You> `. Enter sends a message, blank lines are ignored, and replies run sequentially in the same session. Each entered line is a separate message; use piped input or `-` for a multiline prompt.
108
108
 
109
- Use `/exit` or EOF (Ctrl+D on an empty input line) to finish. EOF lets an active turn finish before exiting. Ctrl+C stops the CLI and exits with code 130; during a turn it first cancels the turn on the backend too (see [Cancelling a turn](#cancelling-a-turn)), so the turn does not keep running server-side; during initialization it waits for setup to settle before cleaning up. A second Ctrl+C forces immediate exit. The SDK and interop are cleaned up on exit, subject to `--keep-alive`.
109
+ In a conversation the agent can also ask structured questions (its AskUser tool), as it does in the Delegate app. The CLI prints each question with numbered choices and waits for your answer before the turn goes on: type a number (several, separated by commas, where more than one choice is allowed), your own answer where the question offers one, or a value for each slider. Press Enter to skip a question; on a slider, Enter takes the value shown in the prompt instead, so a slider question is always answered. The CLI cannot attach a file or recording to an answer. A one-turn run (`--print`, a JSON format, piped input) has nobody to answer, so the agent gets no AskUser there and asks in its reply instead.
110
+
111
+ Use `/exit` or EOF (Ctrl+D on an empty input line) to finish. EOF lets an active turn finish before exiting, except at an AskUser question, where it stops the turn as Ctrl+C does. Ctrl+C stops the CLI and exits with code 130; during a turn it first cancels the turn on the backend too (see [Cancelling a turn](#cancelling-a-turn)), so the turn does not keep running server-side; during initialization it waits for setup to settle before cleaning up. A second Ctrl+C forces immediate exit. The SDK and interop are cleaned up on exit, subject to `--keep-alive`.
110
112
 
111
113
  `--print` / `-p` sends one prompt and exits after the response and any tool execution. This mode is also automatic when stdin **or** stdout is not a terminal, or when the prompt is `-`. Piped lines form one prompt, not separate turns. Missing input in one-turn mode exits with code 2.
112
114
 
@@ -306,13 +308,13 @@ You> Turn what you just did into a UiPath coded workflow.
306
308
 
307
309
  ### Skills
308
310
 
309
- The CLI uses the skills the `@uipath/delegate-sdk` package ships, with no Delegate desktop app needed: the Integration Service API skills (`jira`, `confluence`, `github`, `google-workspace`, `uipath-integrations`, `uipath-orchestrator`), the Office and document skills (`excel-architect`, `word-architect`, `powerpoint-architect`, `pdf-architect`, `office-download`, `doc-coauthoring`, `internal-comms`, `knowledge-base`), `outlook-365`, `slack-operation`, `teams-operation`, `uipath-taskautomation`, `uipath-workflow-documenter`, `business-analysis`, `project-task-list`, `transcribe-media`, `media-tools` and `system-diagnostics`. The agent picks one when the task calls for it; `--preload-skill <name>` attaches one up front.
311
+ The CLI uses the skills the `@uipath/delegate-sdk` package ships, with no Delegate desktop app needed: the Integration Service API skills (`jira`, `confluence`, `github`, `google-workspace`, `uipath-integrations`, `uipath-orchestrator`), the Office and document skills (`excel-architect`, `word-architect`, `powerpoint-architect`, `pdf-architect`, `office-convert`, `office-download`, `doc-coauthoring`, `internal-comms`, `knowledge-base`), `outlook-365`, `slack-operation`, `teams-operation`, `uipath-taskautomation`, `uipath-workflow-documenter`, `business-analysis`, `project-task-list`, `source-coverage`, `transcribe-media`, `media-tools` and `system-diagnostics`. The agent picks one when the task calls for it; `--preload-skill <name>` attaches one up front.
310
312
 
311
313
  For anything else, put your skills in a folder (one sub-folder per skill, each with a `SKILL.md`) and pass `--skills-path <folder>`, or set `DELEGATE_BUNDLED_SKILLS_PATH`. They load on top of the packaged skills, and one with the same name as a packaged skill replaces it.
312
314
 
313
315
  ### Speech-to-text (`transcribe`)
314
316
 
315
- Transcribe an audio file with the backend's Whisper route (`/v1/transcription`, the one the desktop app's voice input uses) and print the text:
317
+ Transcribe an audio file with the backend's transcription model route (`/v1/transcription`, the one the desktop app's voice input uses) and print the text:
316
318
 
317
319
  ```bash
318
320
  delegate-cli transcribe standup.m4a
@@ -321,8 +323,8 @@ delegate-cli transcribe standup.m4a
321
323
  cat memo.wav | delegate-cli transcribe - --output-format json # {"text":"…"}
322
324
  ```
323
325
 
324
- - Formats: mp3, mp4, mpeg, mpga, m4a, wav, webm — named by the file's extension; for stdin (`-`) the format is detected from the bytes. At most 25 MiB. There is no language option; the model detects it (Whisper, or Gemini through LLM Gateway on Automation Suite and Azure Government).
325
- - Audio the CLI refuses before uploading (unreadable file, unsupported format, empty, over 25 MiB) prints the reason and exits 2. A backend rejection prints one line on stderr, such as `Transcription failed (400 unavailable): Audio file is empty.`, and exits 1.
326
+ - Formats: mp3, mp4, mpeg, mpga, m4a, wav, webm — named by the file's extension; for stdin (`-`) the format is detected from the bytes. At most 14 MB. There is no language option; the model detects it (Gemini 3.1 Flash-Lite through LLM Gateway).
327
+ - Audio the CLI refuses before uploading (unreadable file, unsupported format, empty, over 14 MB) prints the reason and exits 2. A backend rejection prints one line on stderr, such as `Transcription failed (400 empty): Audio file is empty.`, and exits 1.
326
328
 
327
329
  ### Delegating to people (`delegations`, `org-users`)
328
330
 
@@ -380,7 +382,7 @@ Three levels of machine access, independent of conversation mode:
380
382
  | `--no-memory` | off | Do not send the Delegate app's local long-term memories with each turn (SDK `enableMemory: false`). By default the CLI reads the same `Memories` folder the desktop app uses, and the model may save new preferences and learnings there with its file tools. |
381
383
  | `--task-automation` | off | Record every UI action of the run to the session's task log, so the agent can turn the task into a UiPath coded workflow (SDK `enableTaskAutomation`). Needs computer use: refused with `--headless`, `--no-computer-use` and `--cartographer`. See [Task automation](#task-automation---task-automation). |
382
384
  | `--preload-skill <name>` | — | Preload a skill into the session before the first model turn (repeatable; SDK `preloadSkills`). A name given twice is preloaded once. |
383
- | `--cartographer` | off | Cartographer engagement preset — shorthand for `--no-computer-use --preload-skill business-analysis --preload-skill project-task-list --preload-skill knowledge-base`. Add `--project` / `--working-dir` to say where the engagement's files live, and further `--preload-skill` flags for anything extra; a skill the preset already covers is **not** preloaded twice, whichever side of the flag it is named on. Pass `--headless` alongside it to drop interop as well (`--headless` always wins over the preset's `--no-computer-use`). |
385
+ | `--cartographer` | off | Cartographer engagement preset — shorthand for `--no-computer-use --preload-skill business-analysis --preload-skill project-task-list --preload-skill knowledge-base --preload-skill source-coverage --preload-skill note-taker`. Add `--project` / `--working-dir` to say where the engagement's files live, and further `--preload-skill` flags for anything extra; a skill the preset already covers is **not** preloaded twice, whichever side of the flag it is named on. Pass `--headless` alongside it to drop interop as well (`--headless` always wins over the preset's `--no-computer-use`). |
384
386
  | `--project <id>` | — | Bind the session to a project: wiki, plans, `task-list.md` and `progress.yaml` live under `<state root>/projects/<id>/` (the state root is `--working-dir`, else `~/.aria-sdk`), the preloaded skills' declared project files are copied there on the first message, and the project context (`ProjectId`, `TaskListPath`, `ProgressPath`) is injected into every turn (SDK `projectId`). Client-side routing key only — the CLI never links a backend project row. |
385
387
  | `--working-dir <path>` | `~/.aria-sdk` for state; process cwd for shells | Shell cwd for the agent and root for SDK-local state (SDK `workingDirectory`). Relative paths resolve against the current directory; **the directory is created if missing**. |
386
388
  | `--skills-path <path>` | — | Folder of your own skills, loaded on top of the [packaged skills](#skills) (SDK `bundledSkillsPath`); also `DELEGATE_BUNDLED_SKILLS_PATH`. On a name clash your copy wins. Relative paths resolve against the current directory. |
@@ -448,7 +450,8 @@ npx delegate-cli --headless --project invoice-approval --working-dir ~/engagemen
448
450
  # keeps interop (so ReadFile/WriteFile/Office/PDF work) while dropping screenshots and
449
451
  # the window list — no image tokens, and nothing about the desktop leaves the machine.
450
452
  npx delegate-cli --no-computer-use --project invoice-approval --working-dir ~/engagements \
451
- --preload-skill business-analysis --preload-skill knowledge-base --preload-skill project-task-list \
453
+ --preload-skill business-analysis --preload-skill project-task-list --preload-skill knowledge-base \
454
+ --preload-skill source-coverage --preload-skill note-taker \
452
455
  "Read the AS-IS notes and draft the process overview."
453
456
 
454
457
  # The same command as above — --cartographer is shorthand for that whole flag set
@@ -457,7 +460,7 @@ npx delegate-cli --cartographer --project invoice-approval --working-dir ~/engag
457
460
 
458
461
  # Preset plus one extra skill the package does not ship, loaded from a folder of your
459
462
  # own; business-analysis is already in the preset, so naming it again changes nothing
460
- npx delegate-cli --cartographer --skills-path ~/my-skills --preload-skill task-design \
463
+ npx delegate-cli --cartographer --skills-path ~/my-skills --preload-skill company-process-guide \
461
464
  --project invoice-approval "Start the engagement."
462
465
 
463
466
  # Separate one-turn commands with persistent interop
package/dist/cli.mjs CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- const _0x1064c6=_0x7a81;(function(_0x117c0d,_0x49e6c1){const _0x48bddc=_0x7a81,_0x31b2d1=_0x117c0d();while(!![]){try{const _0x54ca46=parseInt(_0x48bddc(0x1fb))/0x1+-parseInt(_0x48bddc(0x298))/0x2*(parseInt(_0x48bddc(0x1e5))/0x3)+-parseInt(_0x48bddc(0x1f0))/0x4+-parseInt(_0x48bddc(0x2f1))/0x5*(parseInt(_0x48bddc(0x35c))/0x6)+-parseInt(_0x48bddc(0x33a))/0x7+parseInt(_0x48bddc(0x1ba))/0x8*(-parseInt(_0x48bddc(0x2cf))/0x9)+-parseInt(_0x48bddc(0x27f))/0xa*(-parseInt(_0x48bddc(0x2f4))/0xb);if(_0x54ca46===_0x49e6c1)break;else _0x31b2d1['push'](_0x31b2d1['shift']());}catch(_0x24d681){_0x31b2d1['push'](_0x31b2d1['shift']());}}}(_0x1dc3,0xbd428));const __dirname=import.meta.dirname;import _0x202272 from'fs';import _0x1df2b2 from'path';import{clearLine as _0x1851c1,createInterface as _0x3550ee,cursorTo as _0x4e47cb}from'node:readline';import{BUSINESS_ANALYSIS_PRELOADED_SKILLS as _0x14fa77,DelegateAgent as _0x1b8086,cancelTurn as _0x5dbbdc,InteropProcess as _0x140e9d,complete as _0x11b843,DEFAULT_MODEL as _0x47c9ae,createBackendClient as _0x2b8f8a,evaluate as _0xfdf053,isCompletionRequestError as _0x242c97,isEvaluationRequestError as _0x4a40e4,isTranscriptionError as _0x3d3195,rerank as _0x1c178c,transcribe as _0x1354a2,verify as _0x546562,acceptDelegation as _0x5e48e4,cancelDelegation as _0x17fbe1,claimDelegation as _0x173cc5,completeDelegation as _0x356f5f,createDelegation as _0x57f999,deleteDelegation as _0xe35e83,dismissDelegation as _0x18bb8d,getSessionDelegations as _0xae72d5,isDelegationError as _0x3f9270,listDelegations as _0x15aef9,listOrgUsers as _0x32847c,previewDelegation as _0x565bc7,TurnResultCollector as _0x4f3997,agentEventToJsonLine as _0x51057c,describeBaseUrlRejection as _0x3d53e3,getActivitySummary as _0x4d54e8,getAuthFilePath as _0x13d31f,getByoWarnings as _0x475761,getCartographerAllowance as _0x5aeedc,getDailyBreakdown as _0x599e6b,getLicensingSummary as _0x14256d,getMonthlySpending as _0x19dc9f,isOutputFormat as _0x3a1943,isCloudBaseUrl as _0x5b0bdc,isSafeProjectFolderSegment as _0x3612e3,listModels as _0x53b5e1,listSessions as _0x54da73,getSession as _0x371216,renameSession as _0x6b59af,deleteSession as _0x250bfa,deleteSessionTaskLog as _0xa50fe2,forkSession as _0x239daa,isBackendRequestError as _0x2ba424,MAX_SESSION_PAGE_SIZE as _0x1d515e,listTenants as _0x53c22b,loadAndRefreshAuth as _0x5a38fd,loadAndRefreshSdkLogin as _0x79fab1,parsePlatformBaseUrl as _0x41aaf5,resolveBackendUrl as _0x311f1a,runHealthCheck as _0x3060dc,runHostCommand as _0x5abba7,runLoginFlow as _0x226ab2,runTurnForResult as _0x5a82a5,saveAuthData as _0xc8841a,switchTenant as _0x3ea5e6,toJsonLine as _0x4cdc57,ENV_TO_CLOUD as _0x2e0246,OUTPUT_FORMATS as _0x20e063}from'@uipath/delegate-sdk';var mt=[_0x1064c6(0x232),'tenant',_0x1064c6(0x300),_0x1064c6(0x32e),_0x1064c6(0x350),_0x1064c6(0x21c),_0x1064c6(0x306),_0x1064c6(0x29b),'usage',_0x1064c6(0x228),_0x1064c6(0x1e4),'verify',_0x1064c6(0x256),_0x1064c6(0x359),_0x1064c6(0x274),_0x1064c6(0x284)],W=['',_0x1064c6(0x300),_0x1064c6(0x21c),_0x1064c6(0x306),_0x1064c6(0x29b),_0x1064c6(0x360),_0x1064c6(0x228),'rerank','verify',_0x1064c6(0x256),_0x1064c6(0x359),_0x1064c6(0x274),'org-users'],G=['low',_0x1064c6(0x202),_0x1064c6(0x363),_0x1064c6(0x2fa),_0x1064c6(0x1f8)],ft=_0x14fa77;function p(_0x64d8fb,_0x5995dc,_0xfb3d4f,_0x47669c){const _0x260836=_0x1064c6;let _0x582da6=_0x64d8fb[_0x5995dc];return(!_0x582da6||_0x582da6[_0x260836(0x2bb)]>0x1&&_0x582da6[_0x260836(0x1db)]('-'))&&(console['error'](_0xfb3d4f+_0x260836(0x35f)+_0x47669c+'.'),process[_0x260836(0x29f)](0x2)),_0x582da6;}function N(_0xdd92c1,_0x18b997,_0x2f0e7f,_0x781dcc){const _0x56aa84=_0x1064c6;let _0x1010f3=p(_0xdd92c1,_0x18b997,_0x2f0e7f,'a\x20number'),_0x2eb9dd=Number(_0x1010f3);return(!/^\d+$/[_0x56aa84(0x1e7)](_0x1010f3)||_0x2eb9dd<0x1||!Number[_0x56aa84(0x2c4)](_0x2eb9dd)||_0x781dcc!==void 0x0&&_0x2eb9dd>_0x781dcc)&&(console[_0x56aa84(0x225)](_0x2f0e7f+_0x56aa84(0x205)+(_0x781dcc===void 0x0?_0x56aa84(0x2fd):'from\x201\x20to\x20'+_0x781dcc)+',\x20got\x20'+_0x1010f3+'.'),process[_0x56aa84(0x29f)](0x2)),_0x2eb9dd;}function ht(_0x5291fd){const _0x4f8a81=_0x1064c6;let _0x23889b={'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':_0x4f8a81(0x348),'preloadSkills':[],'attachments':[],'skipEnvCheck':!0x1,'includeSubAgents':!0x1,'operands':[],'help':!0x1,'version':!0x1};mt[_0x4f8a81(0x339)](_0x5291fd[0x0])&&(_0x23889b[_0x4f8a81(0x1ed)]=_0x5291fd[0x0],_0x5291fd=_0x5291fd[_0x4f8a81(0x2db)](0x1));let _0x5362ad=[];for(let _0x101529=0x0;_0x101529<_0x5291fd['length'];_0x101529++){let _0x4f417e=_0x5291fd[_0x101529];switch(_0x4f417e){case _0x4f8a81(0x211):case'-p':_0x23889b[_0x4f8a81(0x34a)]=!0x0;break;case'--keep-alive':_0x23889b[_0x4f8a81(0x251)]=!0x0;break;case _0x4f8a81(0x2fb):_0x23889b[_0x4f8a81(0x362)]=!0x0;break;case _0x4f8a81(0x330):_0x23889b[_0x4f8a81(0x27d)]=!0x0;break;case'--no-computer-use':_0x23889b[_0x4f8a81(0x30d)]=!0x0;break;case _0x4f8a81(0x1c9):_0x23889b[_0x4f8a81(0x1e3)]=!0x0,_0x23889b['noComputerUse']=!0x0,_0x23889b[_0x4f8a81(0x308)][_0x4f8a81(0x318)](...ft);break;case _0x4f8a81(0x223):_0x23889b[_0x4f8a81(0x32b)]=!0x0;break;case _0x4f8a81(0x2aa):_0x23889b['noSecurity']=!0x0;break;case _0x4f8a81(0x2ac):_0x23889b[_0x4f8a81(0x2e7)]=!0x0;break;case _0x4f8a81(0x304):_0x23889b[_0x4f8a81(0x2ba)]=!0x0;break;case _0x4f8a81(0x246):case'-q':_0x23889b[_0x4f8a81(0x1d2)]=!0x0;break;case'--verbose':_0x23889b[_0x4f8a81(0x325)]=!0x0;break;case'--backend':_0x23889b[_0x4f8a81(0x212)]=_0x5291fd[++_0x101529];break;case _0x4f8a81(0x287):_0x23889b[_0x4f8a81(0x270)]=_0x5291fd[++_0x101529];break;case _0x4f8a81(0x235):_0x23889b['runnerUrl']=_0x5291fd[++_0x101529];break;case _0x4f8a81(0x25b):_0x23889b['interopPath']=_0x5291fd[++_0x101529];break;case _0x4f8a81(0x1fe):_0x23889b[_0x4f8a81(0x35a)]=_0x5291fd[++_0x101529];break;case _0x4f8a81(0x2a4):_0x23889b[_0x4f8a81(0x308)][_0x4f8a81(0x318)](p(_0x5291fd,++_0x101529,_0x4f417e,'a\x20skill\x20name'));break;case'--project':{let _0x49bba4=p(_0x5291fd,++_0x101529,_0x4f417e,_0x4f8a81(0x2f3));_0x3612e3(_0x49bba4)||(console[_0x4f8a81(0x225)](_0x4f8a81(0x1e2)+_0x49bba4+_0x4f8a81(0x20a)),process[_0x4f8a81(0x29f)](0x2)),_0x23889b[_0x4f8a81(0x1df)]=_0x49bba4;break;}case _0x4f8a81(0x2cc):{let _0x15d705=p(_0x5291fd,++_0x101529,_0x4f417e,'a\x20format\x20('+_0x20e063[_0x4f8a81(0x335)](_0x4f8a81(0x303))+')');_0x3a1943(_0x15d705)||(console[_0x4f8a81(0x225)](_0x4f8a81(0x1cb)+_0x15d705+_0x4f8a81(0x1d8)+_0x20e063[_0x4f8a81(0x335)](_0x4f8a81(0x303))+'.'),process[_0x4f8a81(0x29f)](0x2)),_0x23889b[_0x4f8a81(0x33b)]=_0x15d705;break;}case'--session':_0x23889b['sessionId']=p(_0x5291fd,++_0x101529,_0x4f417e,_0x4f8a81(0x290));break;case _0x4f8a81(0x240):_0x23889b[_0x4f8a81(0x315)]=N(_0x5291fd,++_0x101529,_0x4f417e);break;case'--limit':_0x23889b[_0x4f8a81(0x1da)]=N(_0x5291fd,++_0x101529,_0x4f417e,_0x1d515e);break;case _0x4f8a81(0x2d1):_0x23889b[_0x4f8a81(0x2d8)]=!0x0;break;case _0x4f8a81(0x29a):_0x23889b[_0x4f8a81(0x1b5)]=p(_0x5291fd,++_0x101529,_0x4f417e,_0x4f8a81(0x22c));break;case _0x4f8a81(0x281):{let _0x210338=_0x1df2b2['resolve'](process[_0x4f8a81(0x343)](),p(_0x5291fd,++_0x101529,_0x4f417e,_0x4f8a81(0x262)));_0x202272[_0x4f8a81(0x331)](_0x210338)||(console[_0x4f8a81(0x225)](_0x4f8a81(0x271)+_0x210338),process[_0x4f8a81(0x29f)](0x2)),_0x23889b[_0x4f8a81(0x2b7)][_0x4f8a81(0x318)](_0x210338);break;}case _0x4f8a81(0x1e6):_0x23889b['turnId']=p(_0x5291fd,++_0x101529,_0x4f417e,_0x4f8a81(0x30e));break;case'--to':_0x23889b[_0x4f8a81(0x23f)]=p(_0x5291fd,++_0x101529,_0x4f417e,_0x4f8a81(0x236));break;case _0x4f8a81(0x1d3):_0x23889b['contextSummary']=p(_0x5291fd,++_0x101529,_0x4f417e,_0x4f8a81(0x34b));break;case'--days':_0x23889b[_0x4f8a81(0x1e9)]=N(_0x5291fd,++_0x101529,_0x4f417e,0x16d);break;case _0x4f8a81(0x340):_0x23889b[_0x4f8a81(0x1f6)]=_0x1df2b2[_0x4f8a81(0x1c5)](process[_0x4f8a81(0x343)](),p(_0x5291fd,++_0x101529,_0x4f417e,_0x4f8a81(0x314)));break;case _0x4f8a81(0x2b4):_0x23889b[_0x4f8a81(0x1fa)]=_0x1df2b2['resolve'](process[_0x4f8a81(0x343)](),p(_0x5291fd,++_0x101529,_0x4f417e,_0x4f8a81(0x314)));break;case _0x4f8a81(0x260):{let _0x3f9cef=p(_0x5291fd,++_0x101529,_0x4f417e,'an\x20effort\x20tier');G[_0x4f8a81(0x339)](_0x3f9cef)||(console['error'](_0x4f8a81(0x2f8)+_0x3f9cef+_0x4f8a81(0x1d8)+G['join'](_0x4f8a81(0x303))+'.'),process['exit'](0x2)),_0x23889b[_0x4f8a81(0x21b)]=_0x3f9cef;break;}case _0x4f8a81(0x217):{let _0x19564f=_0x5291fd[++_0x101529];(!_0x19564f||_0x19564f['startsWith']('--'))&&(console[_0x4f8a81(0x225)](_0x4f8a81(0x2e9)),process[_0x4f8a81(0x29f)](0x2)),_0x23889b[_0x4f8a81(0x1cf)]=_0x19564f;break;}case _0x4f8a81(0x21d):{let _0x24985f=_0x5291fd[++_0x101529];[_0x4f8a81(0x328),'staging',_0x4f8a81(0x1b7),_0x4f8a81(0x1fc)][_0x4f8a81(0x339)](_0x24985f)||(console[_0x4f8a81(0x225)]('Invalid\x20--env:\x20'+_0x24985f+_0x4f8a81(0x215)),process[_0x4f8a81(0x29f)](0x2)),_0x23889b['env']=_0x24985f;break;}case'--url':case'--authority':{let _0xa4f1dd=p(_0x5291fd,++_0x101529,_0x4f417e,'a\x20deployment\x20URL,\x20e.g.\x20https://automationsuite.contoso.com'),_0x42f648=_0x41aaf5(_0xa4f1dd);if(_0x42f648['ok']===!0x1){console[_0x4f8a81(0x225)](_0x3d53e3(_0xa4f1dd,_0x42f648[_0x4f8a81(0x344)])),process[_0x4f8a81(0x29f)](0x2);break;}_0x23889b[_0x4f8a81(0x347)]=_0x42f648[_0x4f8a81(0x28d)];break;}case'--skip-env-check':_0x23889b[_0x4f8a81(0x23b)]=!0x0;break;case'-h':case _0x4f8a81(0x263):_0x23889b[_0x4f8a81(0x275)]=!0x0;break;case'-v':case _0x4f8a81(0x243):_0x23889b['version']=!0x0;break;default:_0x4f417e[_0x4f8a81(0x1db)]('--')&&(console[_0x4f8a81(0x225)](_0x4f8a81(0x32c)+_0x4f417e),process[_0x4f8a81(0x29f)](0x2)),_0x5362ad['push'](_0x4f417e);}}return _0x23889b[_0x4f8a81(0x1cf)]!==void 0x0&&_0x23889b[_0x4f8a81(0x1ed)]!==_0x4f8a81(0x232)&&(console[_0x4f8a81(0x225)]('--tenant\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Switch\x20tenants\x20with:\x20delegate-cli\x20tenant\x20<name>'),process[_0x4f8a81(0x29f)](0x2)),_0x23889b[_0x4f8a81(0x347)]!==void 0x0&&_0x23889b[_0x4f8a81(0x26d)]!==void 0x0&&(console[_0x4f8a81(0x225)]('Pass\x20either\x20--env\x20(a\x20named\x20cloud)\x20or\x20--url\x20(any\x20other\x20deployment),\x20not\x20both.'),process['exit'](0x2)),_0x23889b[_0x4f8a81(0x347)]!==void 0x0&&_0x23889b[_0x4f8a81(0x1ed)]!=='login'&&(console[_0x4f8a81(0x225)](_0x4f8a81(0x2e2)),process[_0x4f8a81(0x29f)](0x2)),_0x23889b[_0x4f8a81(0x1e9)]!==void 0x0&&_0x23889b[_0x4f8a81(0x1ed)]!==_0x4f8a81(0x360)&&(console[_0x4f8a81(0x225)](_0x4f8a81(0x317)),process['exit'](0x2)),_0x23889b[_0x4f8a81(0x1b5)]!==void 0x0&&(_0x23889b[_0x4f8a81(0x1ed)]!==_0x4f8a81(0x256)&&_0x23889b[_0x4f8a81(0x1ed)]!==''||_0x23889b[_0x4f8a81(0x362)])&&(console['error'](_0x4f8a81(0x2ed)),process[_0x4f8a81(0x29f)](0x2)),_0x23889b[_0x4f8a81(0x2b7)][_0x4f8a81(0x2bb)]>0x0&&(_0x23889b[_0x4f8a81(0x1ed)]!==''||_0x23889b[_0x4f8a81(0x362)])&&(console[_0x4f8a81(0x225)]('--attach\x20applies\x20to\x20prompts\x20only.'),process[_0x4f8a81(0x29f)](0x2)),_0x23889b[_0x4f8a81(0x2ba)]&&(_0x23889b['subcommand']!==''||_0x23889b[_0x4f8a81(0x362)])&&(console[_0x4f8a81(0x225)](_0x4f8a81(0x277)),process[_0x4f8a81(0x29f)](0x2)),_0x23889b[_0x4f8a81(0x2ba)]&&(_0x23889b[_0x4f8a81(0x27d)]||_0x23889b[_0x4f8a81(0x30d)])&&(console['error']('--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['exit'](0x2)),_0x23889b[_0x4f8a81(0x23b)]&&_0x23889b[_0x4f8a81(0x1ed)]!==_0x4f8a81(0x232)&&(console[_0x4f8a81(0x225)]('--skip-env-check\x20applies\x20to\x20`delegate-cli\x20login`\x20only.'),process[_0x4f8a81(0x29f)](0x2)),_0x23889b[_0x4f8a81(0x33b)]!=='text'&&!W[_0x4f8a81(0x339)](_0x23889b[_0x4f8a81(0x1ed)])&&(console[_0x4f8a81(0x225)](_0x4f8a81(0x309)+_0x23889b[_0x4f8a81(0x33b)]+'\x20applies\x20to\x20prompts\x20and\x20to\x20these\x20commands\x20only:\x20'+W[_0x4f8a81(0x34e)](Boolean)[_0x4f8a81(0x335)](',\x20')+'.'),process['exit'](0x2)),(_0x23889b[_0x4f8a81(0x315)]!==void 0x0||_0x23889b[_0x4f8a81(0x1da)]!==void 0x0||_0x23889b[_0x4f8a81(0x2d8)])&&_0x23889b['subcommand']!==_0x4f8a81(0x29b)&&(console['error'](_0x4f8a81(0x25f)),process[_0x4f8a81(0x29f)](0x2)),(_0x23889b[_0x4f8a81(0x23f)]!==void 0x0||_0x23889b[_0x4f8a81(0x255)]!==void 0x0)&&_0x23889b[_0x4f8a81(0x1ed)]!=='delegations'&&(console[_0x4f8a81(0x225)](_0x4f8a81(0x22d)),process['exit'](0x2)),_0x23889b[_0x4f8a81(0x2a9)]!==void 0x0&&_0x23889b[_0x4f8a81(0x1ed)]!=='sessions'&&(console[_0x4f8a81(0x225)](_0x4f8a81(0x34c)),process[_0x4f8a81(0x29f)](0x2)),_0x23889b[_0x4f8a81(0x308)]=[...new Set(_0x23889b[_0x4f8a81(0x308)])],_0x23889b[_0x4f8a81(0x1ca)]=_0x5362ad,_0x23889b[_0x4f8a81(0x280)]=_0x5362ad[_0x4f8a81(0x335)]('\x20'),_0x23889b;}var S=_0x40b18c=>{const _0x56f878=_0x1064c6;process[_0x56f878(0x272)][_0x56f878(0x279)](_0x40b18c);};function gt(){const _0x3073c6=_0x1064c6;let _0x9fe311=process[_0x3073c6(0x272)][_0x3073c6(0x279)],_0x4ca93b=_0x9fe311[_0x3073c6(0x206)](process['stdout']),_0x28972b=S;return S=_0x2c7327=>{_0x4ca93b(_0x2c7327);},process[_0x3073c6(0x272)][_0x3073c6(0x279)]=(..._0x49180c)=>process['stderr'][_0x3073c6(0x279)](..._0x49180c),()=>{const _0x33b844=_0x3073c6;process[_0x33b844(0x272)][_0x33b844(0x279)]=_0x9fe311,S=_0x28972b;};}function l(_0x52d9ee,_0x39e289,_0x4d64f6){const _0x3d15e7=_0x1064c6;if(_0x52d9ee[_0x3d15e7(0x33b)]===_0x3d15e7(0x348)){_0x4d64f6(_0x39e289);return;}S(_0x4cdc57(_0x39e289));}function wt(){const _0x4a9841=_0x1064c6;let _0x203741=_0x4a9841(0x268)[_0x4a9841(0x1c0)]();console['log'](_0x203741);}function yt(){const _0x2dd75c=_0x1064c6;try{return JSON[_0x2dd75c(0x257)](_0x202272[_0x2dd75c(0x2c7)](_0x1df2b2[_0x2dd75c(0x335)](__dirname,'..',_0x2dd75c(0x2c2)),_0x2dd75c(0x2ef)))[_0x2dd75c(0x1c4)]||_0x2dd75c(0x1d4);}catch{return _0x2dd75c(0x1d4);}}var kt=0x7d0;async function K(_0x463c9f,_0x26806f){const _0x298ab2=_0x1064c6;let _0x5baa16=_0x26806f?[_0x26806f]:[];for await(let _0x4fdaca of _0x463c9f)_0x5baa16[_0x298ab2(0x318)](Buffer[_0x298ab2(0x354)](_0x4fdaca));return Buffer[_0x298ab2(0x1b4)](_0x5baa16)[_0x298ab2(0x238)](_0x298ab2(0x2ef))[_0x298ab2(0x1c0)]();}function _0x7a81(_0x435a06,_0x2dece2){_0x435a06=_0x435a06-0x1b2;const _0x1dc399=_0x1dc3();let _0x7a8164=_0x1dc399[_0x435a06];return _0x7a8164;}function St(_0x259a5a,_0x1cc4f8){return new Promise(_0x62fa8b=>{const _0x26dbb8=_0x7a81;let _0x877922=_0x3f9cbf=>{const _0x23365e=_0x7a81;clearTimeout(_0x457519),_0x259a5a[_0x23365e(0x22b)]('data',_0x31332c),_0x259a5a[_0x23365e(0x22b)](_0x23365e(0x1b9),_0x582b56),_0x259a5a[_0x23365e(0x22b)]('error',_0x582b56),_0x259a5a[_0x23365e(0x276)](),_0x62fa8b(_0x3f9cbf);},_0x31332c=_0x35fade=>_0x877922(Buffer['from'](_0x35fade)),_0x582b56=()=>_0x877922(null),_0x457519=setTimeout(()=>_0x877922(null),_0x1cc4f8);_0x259a5a['on'](_0x26dbb8(0x352),_0x31332c),_0x259a5a['on'](_0x26dbb8(0x1b9),_0x582b56),_0x259a5a['on'](_0x26dbb8(0x225),_0x582b56),_0x259a5a[_0x26dbb8(0x25d)]();});}async function I(_0x49cbdb,_0x5f1f7a,_0x18b9a4=kt){const _0x5ca9af=_0x1064c6;let _0x224379=_0x49cbdb==='-';if(!_0x224379&&_0x49cbdb)return _0x49cbdb;if(!_0x224379&&_0x5f1f7a[_0x5ca9af(0x2cb)])return'';if(_0x224379)return K(_0x5f1f7a,null);let _0x1f5b59=await St(_0x5f1f7a,_0x18b9a4);return _0x1f5b59?K(_0x5f1f7a,_0x1f5b59):'';}function L(){const _0x503c40=_0x1064c6;return _0x1df2b2['join'](process.env.HOME||process.env.USERPROFILE||'',_0x503c40(0x28f),_0x503c40(0x27c));}function $(_0x8ce71f){const _0x4678d1=_0x1064c6;try{let _0x5efdb9=JSON[_0x4678d1(0x257)](_0x202272[_0x4678d1(0x2c7)](_0x8ce71f,'utf-8'));return!_0x5efdb9[_0x4678d1(0x2cd)]||!_0x5efdb9[_0x4678d1(0x2a3)]||!_0x5efdb9['organizationId']?null:_0x5efdb9;}catch{return null;}}function bt(){const _0x300559=_0x1064c6;let _0x3d755a=[{'file':_0x13d31f(),'isDesktopFallback':!0x1},{'file':L(),'isDesktopFallback':!0x0}];for(let _0x41eeed of _0x3d755a){let _0x130250=$(_0x41eeed[_0x300559(0x227)]);if(_0x130250)return{..._0x41eeed,'auth':_0x130250};}return null;}async function vt(){const _0x31a2ea=_0x1064c6;let _0x38cd12=_0x13d31f();if(!_0x202272['existsSync'](_0x38cd12)){let _0x499d6c=L();console[_0x31a2ea(0x1ee)]($(_0x499d6c)?_0x31a2ea(0x2d9)+_0x499d6c+'\x20—\x20sign\x20out\x20in\x20the\x20Delegate\x20app\x20to\x20clear\x20that.':'No\x20CLI\x20login\x20found\x20—\x20nothing\x20to\x20remove.');return;}_0x202272[_0x31a2ea(0x278)](_0x38cd12),console['log'](_0x31a2ea(0x26f)+_0x38cd12);}async function At(_0x3eca26){const _0x3bd679=_0x1064c6;let _0x242611=O(),_0x142f8f,_0x199065;if(_0x242611)_0x142f8f=_0x242611,_0x199065=_0x3bd679(0x28e);else{let _0x1d86a7=bt();if(!_0x1d86a7)throw new Error(le);_0x142f8f=_0x1d86a7[_0x3bd679(0x20c)],_0x199065=_0x1d86a7[_0x3bd679(0x32a)]?_0x1d86a7[_0x3bd679(0x227)]+_0x3bd679(0x29d):_0x1d86a7[_0x3bd679(0x227)];}let _0xe2456b={'source':_0x199065,'baseUrl':_0x142f8f[_0x3bd679(0x28d)]??null,'deployment':Et(_0x142f8f[_0x3bd679(0x28d)]),'organization':{'id':_0x142f8f[_0x3bd679(0x2e1)],'slug':_0x142f8f['orgLogicalName']??null},'tenant':{'id':_0x142f8f[_0x3bd679(0x2a3)],'name':_0x142f8f[_0x3bd679(0x33f)]??null},'tokenExpiresAt':_0x142f8f[_0x3bd679(0x1bf)]?new Date(_0x142f8f['expiresAt']*0x3e8)[_0x3bd679(0x208)]():null};l(_0x3eca26,_0xe2456b,()=>{const _0x53d1fa=_0x3bd679;let _0x75dddb=[_0x53d1fa(0x2fc)+_0x199065,_0x53d1fa(0x244)+(_0x142f8f[_0x53d1fa(0x28d)]??_0x53d1fa(0x1d4)),_0x53d1fa(0x265)+_0xe2456b[_0x53d1fa(0x253)],'Organization:\x20'+(_0x142f8f[_0x53d1fa(0x21a)]??'unknown\x20slug')+'\x20('+_0x142f8f[_0x53d1fa(0x2e1)]+')',_0x53d1fa(0x267)+(_0x142f8f['tenantName']??_0x53d1fa(0x1b8))+'\x20('+_0x142f8f[_0x53d1fa(0x2a3)]+')'];if(_0x142f8f[_0x53d1fa(0x1bf)]){let _0x2c2744=_0x142f8f[_0x53d1fa(0x1bf)]-Math['floor'](Date[_0x53d1fa(0x368)]()/0x3e8);_0x75dddb['push'](_0x2c2744>0x0?'Token:\x20\x20\x20\x20\x20\x20\x20\x20expires\x20'+_0xe2456b[_0x53d1fa(0x226)]+_0x53d1fa(0x338)+Math[_0x53d1fa(0x203)](_0x2c2744/0x3c)+_0x53d1fa(0x2d3):_0x53d1fa(0x1e1)+_0xe2456b[_0x53d1fa(0x226)]);}process[_0x53d1fa(0x272)][_0x53d1fa(0x279)](_0x75dddb[_0x53d1fa(0x335)]('\x0a')+'\x0a');});}var le=_0x1064c6(0x291);function Et(_0x554e67){const _0x1469fd=_0x1064c6;return _0x554e67?_0x5b0bdc(_0x554e67)?_0x1469fd(0x305):_0x1469fd(0x23d):_0x1469fd(0x1d4);}function O(){let _0x4e1d91=process.env.AUTH_TOKEN_FILE;return(process.env.AUTH_TOKEN||_0x4e1d91)&&process.env.TENANT_ID&&process.env.ORG_ID?{'accessToken':_0x4e1d91?It(_0x4e1d91):process.env.AUTH_TOKEN,..._0x4e1d91?{'accessTokenFile':_0x4e1d91}:{},'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(_0x5d677a){const _0xf83784=_0x1064c6;let _0x530bc6;try{_0x530bc6=_0x202272[_0xf83784(0x2c7)](_0x5d677a,'utf-8')[_0xf83784(0x1c0)]();}catch(_0x468f49){throw new Error(_0xf83784(0x367)+_0x5d677a+_0xf83784(0x1d6)+_0x468f49[_0xf83784(0x1c7)]);}let _0x530758=_0x530bc6[_0xf83784(0x1db)](_0xf83784(0x2af))?_0x530bc6[_0xf83784(0x2db)](0x7)['trim']():_0x530bc6;if(!_0x530758)throw new Error(_0xf83784(0x367)+_0x5d677a+_0xf83784(0x1de));return _0x530758;}function ce(){const _0xf55600=_0x1064c6;let _0x107fe8=process.env.UIPATH_BASE_URL;if(!_0x107fe8)return;let _0x4a758f=_0x41aaf5(_0x107fe8);if(_0x4a758f['ok']===!0x1)throw new Error('UIPATH_BASE_URL\x20is\x20unusable.\x20'+_0x3d53e3(_0x107fe8,_0x4a758f['rejection']));return _0x4a758f[_0xf55600(0x28d)];}async function P(){let _0x557f5d=O();if(_0x557f5d)return _0x557f5d;let _0x1adef0=await _0x5a38fd();if(_0x1adef0)return _0x1adef0;throw new Error(le);}async function $t(){const _0x240b9a=_0x1064c6;await new _0x140e9d()[_0x240b9a(0x1d9)]({'force':!0x0}),console['log'](_0x240b9a(0x337));}function F(_0x5d1c6e,_0x278cc2,_0x578bab){const _0x28be6a=_0x1064c6;_0x5d1c6e?process[_0x28be6a(0x1f2)][_0x28be6a(0x279)](_0x28be6a(0x204)+_0x5d1c6e+_0x28be6a(0x32f)+_0x578bab+'\x0a'):!_0x278cc2&&!process.env.BACKEND_URL&&process[_0x28be6a(0x1f2)][_0x28be6a(0x279)](_0x28be6a(0x327)+_0x578bab+'\x0a');}async function f(_0x5ba1e5){const _0x288253=_0x1064c6;let _0x345196=await P(),_0x5ccfc9=_0x311f1a(_0x5ba1e5[_0x288253(0x26d)],_0x345196,_0x5ba1e5[_0x288253(0x212)]);return F(_0x5ba1e5[_0x288253(0x26d)],_0x5ba1e5['backendUrl'],_0x5ccfc9),{'auth':_0x345196,'backendUrl':_0x5ccfc9,'client':_0x2b8f8a({'auth':_0x345196,'backendUrl':_0x5ccfc9})};}async function Tt(_0xce3fe1){const _0x52d71a=_0x1064c6;let {client:_0x56045e}=await f(_0xce3fe1),[_0x3caca5,_0x5f558c]=await Promise['all']([_0x53b5e1(_0x56045e),_0x475761(_0x56045e)[_0x52d71a(0x313)](_0x44836b=>(process[_0x52d71a(0x1f2)][_0x52d71a(0x279)](_0x52d71a(0x24d)+(_0x44836b instanceof Error?_0x44836b[_0x52d71a(0x1c7)]:String(_0x44836b))+'\x0a'),{}))]),_0xc0a851=_0x3caca5[_0x52d71a(0x27b)](_0x3bc9be=>_0x5f558c[_0x3bc9be['id']]?{..._0x3bc9be,'byoWarning':_0x5f558c[_0x3bc9be['id']]}:_0x3bc9be);l(_0xce3fe1,_0xc0a851,xt);}function xt(_0x462ba8){const _0x55e02f=_0x1064c6;if(_0x462ba8['length']===0x0){process[_0x55e02f(0x1f2)][_0x55e02f(0x279)]('No\x20models\x20available\x20for\x20this\x20product/tenant.\x0a');return;}process[_0x55e02f(0x272)][_0x55e02f(0x279)](_0x55e02f(0x273)+_0x462ba8[_0x55e02f(0x2bb)]+'):\x0a\x0a');for(let _0x4faa94 of _0x462ba8){let _0xb23e79=_0x4faa94['name']&&_0x4faa94[_0x55e02f(0x241)]!==_0x4faa94['id']?'\x20('+_0x4faa94[_0x55e02f(0x241)]+')':'';process['stdout'][_0x55e02f(0x279)]('\x20\x20'+_0x4faa94['id']+_0xb23e79+'\x0a'),_0x4faa94[_0x55e02f(0x1b6)]&&process[_0x55e02f(0x272)][_0x55e02f(0x279)](_0x55e02f(0x294)+_0x4faa94[_0x55e02f(0x1b6)]+'\x0a'),_0x4faa94[_0x55e02f(0x28c)]&&process['stdout'][_0x55e02f(0x279)](_0x55e02f(0x2d7)+(_0x4faa94[_0x55e02f(0x264)]?'\x20('+_0x4faa94[_0x55e02f(0x264)]+')':'')+'\x0a'),_0x4faa94[_0x55e02f(0x346)]&&process[_0x55e02f(0x272)][_0x55e02f(0x279)](_0x55e02f(0x20e)+_0x4faa94[_0x55e02f(0x346)]+'\x0a');}process['stdout']['write'](_0x55e02f(0x1f5));}var z=[_0x1064c6(0x1d7),'show',_0x1064c6(0x2a7),_0x1064c6(0x266),_0x1064c6(0x1dd),_0x1064c6(0x231)];async function Dt(_0x449cee){const _0x9c5979=_0x1064c6;let [_0x5b9a3a='',_0xd7678='',..._0x1d053d]=_0x449cee['operands'];if(_0x5b9a3a&&!z[_0x9c5979(0x339)](_0x5b9a3a)&&(console['error'](_0x9c5979(0x2b0)+_0x5b9a3a+'.\x20Use:\x20'+z['join'](_0x9c5979(0x303))+'.'),process[_0x9c5979(0x29f)](0x2)),_0x449cee[_0x9c5979(0x2a9)]!==void 0x0&&_0x5b9a3a!==_0x9c5979(0x1dd)&&(console[_0x9c5979(0x225)](_0x9c5979(0x34c)),process['exit'](0x2)),_0x5b9a3a&&_0x5b9a3a!==_0x9c5979(0x1d7)){await Ut(_0x449cee,_0x5b9a3a,_0xd7678,_0x1d053d[_0x9c5979(0x335)]('\x20')[_0x9c5979(0x1c0)]());return;}_0x449cee['operands'][_0x9c5979(0x2bb)]>0x1&&(console[_0x9c5979(0x225)](_0x9c5979(0x2a6)),process[_0x9c5979(0x29f)](0x2));let {client:_0x560369}=await f(_0x449cee),_0x46d90f=await _0x54da73(_0x560369,{'page':_0x449cee[_0x9c5979(0x315)],'pageSize':_0x449cee['limit'],'includeSubAgents':_0x449cee[_0x9c5979(0x2d8)]});l(_0x449cee,_0x46d90f,Rt);}async function Ut(_0x252e29,_0x136606,_0x4f9a64,_0x37a011){const _0x29b327=_0x1064c6;if((_0x252e29[_0x29b327(0x315)]!==void 0x0||_0x252e29[_0x29b327(0x1da)]!==void 0x0||_0x252e29['includeSubAgents'])&&(console[_0x29b327(0x225)](_0x29b327(0x1c3)),process[_0x29b327(0x29f)](0x2)),_0x136606===_0x29b327(0x1dd)){await Nt(_0x252e29,_0x4f9a64,_0x37a011);return;}if(_0x136606===_0x29b327(0x231)){await Ct(_0x252e29,_0x4f9a64,_0x37a011);return;}(!_0x4f9a64||_0x136606==='rename'!=!!_0x37a011)&&(console[_0x29b327(0x225)](_0x29b327(0x207)+_0x136606+_0x29b327(0x283)+(_0x136606==='rename'?_0x29b327(0x213):'')),process[_0x29b327(0x29f)](0x2));let {client:_0x582350}=await f(_0x252e29);try{if(_0x136606==='show'){let _0x1151ae=await _0x371216(_0x582350,_0x4f9a64);_0x1151ae||V(_0x4f9a64),l(_0x252e29,_0x1151ae,_t);}else{if(_0x136606===_0x29b327(0x2a7)){let _0x28c9b0=await _0x6b59af(_0x582350,_0x4f9a64,_0x37a011);l(_0x252e29,_0x28c9b0,_0x1b3359=>{const _0x472799=_0x29b327;process[_0x472799(0x272)]['write'](_0x472799(0x34d)+_0x1b3359['id']+':\x20'+_0x1b3359['title']+'\x0a');});}else await _0x250bfa(_0x582350,_0x4f9a64),await _0xa50fe2(_0x4f9a64,_0x252e29[_0x29b327(0x1f6)]),l(_0x252e29,{'id':_0x4f9a64,'deleted':!0x0},_0x375f4a=>{const _0x68c515=_0x29b327;process[_0x68c515(0x272)]['write'](_0x68c515(0x365)+_0x375f4a['id']+'.\x0a');});}}catch(_0x13160c){if(!_0x2ba424(_0x13160c,0x194))throw _0x13160c;V(_0x4f9a64);}}function V(_0x1c43af){const _0x2c7991=_0x1064c6;console[_0x2c7991(0x225)](_0x2c7991(0x30c)+_0x1c43af+'\x20not\x20found.'),process[_0x2c7991(0x29f)](0x1);}function _t(_0x3b70b2){const _0x538a5d=_0x1064c6;process[_0x538a5d(0x272)]['write'](_0x538a5d(0x237)+_0x3b70b2['id']+'\x0a'),process[_0x538a5d(0x272)]['write']('Title\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x3b70b2['title']+'\x0a'),process[_0x538a5d(0x272)]['write'](_0x538a5d(0x1e0)+_0x3b70b2[_0x538a5d(0x2bc)]+'\x0a'),process[_0x538a5d(0x272)][_0x538a5d(0x279)](_0x538a5d(0x2ff)+_0x3b70b2[_0x538a5d(0x2e1)]+'\x0a'),_0x3b70b2[_0x538a5d(0x316)]&&process['stdout'][_0x538a5d(0x279)](_0x538a5d(0x285)+_0x3b70b2[_0x538a5d(0x316)]+'\x0a');}async function Nt(_0x14a861,_0x8a21a2,_0x53747d){const _0x3eb9aa=_0x1064c6;(!_0x8a21a2||_0x53747d||!_0x14a861[_0x3eb9aa(0x2a9)])&&(console[_0x3eb9aa(0x225)](_0x3eb9aa(0x369)),process[_0x3eb9aa(0x29f)](0x2));let {client:_0x347cd8}=await f(_0x14a861),_0x21df5b=await _0x5dbbdc(_0x347cd8,_0x8a21a2,_0x14a861[_0x3eb9aa(0x2a9)]);l(_0x14a861,{'sessionId':_0x8a21a2,'turnId':_0x14a861[_0x3eb9aa(0x2a9)],'cancelled':_0x21df5b},_0xb0e419=>{const _0x30a4f8=_0x3eb9aa;_0xb0e419[_0x30a4f8(0x269)]?process[_0x30a4f8(0x272)][_0x30a4f8(0x279)](_0x30a4f8(0x221)+_0xb0e419[_0x30a4f8(0x2a9)]+_0x30a4f8(0x233)+_0xb0e419[_0x30a4f8(0x2b9)]+'.\x0a'):process[_0x30a4f8(0x1f2)][_0x30a4f8(0x279)](_0x30a4f8(0x1d5)+_0xb0e419[_0x30a4f8(0x2a9)]+'\x20in\x20progress\x20on\x20session\x20'+_0xb0e419[_0x30a4f8(0x2b9)]+'.\x0a');}),_0x21df5b||(process[_0x3eb9aa(0x31b)]=0x1);}async function Ct(_0x143a2b,_0x278397,_0x408f8e){const _0xa5fda8=_0x1064c6;(!_0x278397||/\s/[_0xa5fda8(0x1e7)](_0x408f8e))&&(console[_0xa5fda8(0x225)](_0xa5fda8(0x361)),process[_0xa5fda8(0x29f)](0x2));let {client:_0x31480e}=await f(_0x143a2b),_0x22debd;try{_0x22debd=await _0x239daa(_0x31480e,_0x278397,{'atMessageId':_0x408f8e||void 0x0});}catch(_0x48815c){if(!_0x2ba424(_0x48815c,0x194))throw _0x48815c;console[_0xa5fda8(0x225)](_0xa5fda8(0x30c)+_0x278397+_0xa5fda8(0x1dc)+(_0x408f8e?_0xa5fda8(0x295)+_0x408f8e:'')+'.'),process[_0xa5fda8(0x29f)](0x1);}l(_0x143a2b,_0x22debd,_0x2bfe91=>{const _0xa0d3f=_0xa5fda8;process['stdout'][_0xa0d3f(0x279)](_0xa0d3f(0x1eb)+_0x278397+_0xa0d3f(0x25a)+_0x2bfe91['id']+'.\x0a'),process[_0xa0d3f(0x1f2)][_0xa0d3f(0x279)](_0xa0d3f(0x239)+_0x2bfe91['id']+_0xa0d3f(0x326));});}function Rt({sessions:_0x2864a4,page:_0x43a830,isLastPage:_0x5d1fea}){const _0x299a49=_0x1064c6;if(_0x2864a4[_0x299a49(0x2bb)]===0x0)process['stderr'][_0x299a49(0x279)](_0x299a49(0x1f3)+_0x43a830+'.\x0a');else{process['stdout']['write']('ID'['padEnd'](0x24)+'\x20\x20'+_0x299a49(0x2e6)[_0x299a49(0x209)](0x13)+_0x299a49(0x25c));for(let _0x5841da of _0x2864a4){let _0x76def1=_0x5841da['updatedAt']['replace']('T','\x20')[_0x299a49(0x2db)](0x0,0x13),_0x1e59b9=_0x5841da[_0x299a49(0x24c)]?_0x299a49(0x320)+_0x5841da[_0x299a49(0x24c)]+')':'';process[_0x299a49(0x272)][_0x299a49(0x279)](_0x5841da['id'][_0x299a49(0x209)](0x24)+'\x20\x20'+_0x76def1[_0x299a49(0x209)](0x13)+'\x20\x20'+_0x5841da[_0x299a49(0x342)]+_0x1e59b9+'\x0a');}}_0x5d1fea||process['stderr'][_0x299a49(0x279)]('More:\x20delegate-cli\x20sessions\x20--page\x20'+(_0x43a830+0x1)+'\x0a');}async function Lt(_0x1df7e4){const _0xe2218e=_0x1064c6;let _0x304104=await P(),_0x2387e8=_0x311f1a(_0x1df7e4['env'],_0x304104,_0x1df7e4[_0xe2218e(0x212)]);F(_0x1df7e4[_0xe2218e(0x26d)],_0x1df7e4[_0xe2218e(0x212)],_0x2387e8);let _0x554e5c=await _0x3060dc({'auth':_0x304104,'backendUrl':_0x2387e8,'interop':_0x1df7e4[_0xe2218e(0x27d)]?_0xe2218e(0x319):_0xe2218e(0x1e8)});l(_0x1df7e4,_0x554e5c,({checks:_0x5def3a})=>{const _0x46008f=_0xe2218e;for(let _0x322d67 of _0x5def3a)process[_0x46008f(0x272)][_0x46008f(0x279)](Ot(_0x322d67)+'\x0a');}),_0x554e5c['ok']||process[_0xe2218e(0x29f)](0x1);}function Ot(_0x1052dd){const _0x376725=_0x1064c6;return{'ok':'✓','failed':'✗','skipped':'-'}[_0x1052dd[_0x376725(0x353)]]+'\x20'+_0x1052dd[_0x376725(0x241)][_0x376725(0x209)](0xa)+_0x1052dd['detail'];}var Pt=['',_0x1064c6(0x2be),_0x1064c6(0x2c1)];async function Ft(_0x7f29e3){const _0x4364cd=_0x1064c6;let _0x2117d1=_0x7f29e3[_0x4364cd(0x280)];Pt[_0x4364cd(0x339)](_0x2117d1)||(console[_0x4364cd(0x225)](_0x4364cd(0x2dc)+_0x7f29e3[_0x4364cd(0x280)]+_0x4364cd(0x336)),process[_0x4364cd(0x29f)](0x2)),_0x2117d1===''&&_0x7f29e3[_0x4364cd(0x1e9)]!==void 0x0&&(console[_0x4364cd(0x225)](_0x4364cd(0x1c6)),process['exit'](0x2)),_0x2117d1!==''&&_0x7f29e3['sessionId']!==void 0x0&&(console['error'](_0x4364cd(0x299)),process[_0x4364cd(0x29f)](0x2));let {client:_0x2d4471}=await f(_0x7f29e3);if(_0x2117d1===_0x4364cd(0x2be)){l(_0x7f29e3,await _0x4d54e8(_0x2d4471,{'days':_0x7f29e3[_0x4364cd(0x1e9)]}),Mt);return;}if(_0x2117d1===_0x4364cd(0x2c1)){l(_0x7f29e3,await _0x599e6b(_0x2d4471,{'days':_0x7f29e3[_0x4364cd(0x1e9)]}),Bt);return;}let [_0x493bdf,_0x34d81d,_0x416603]=await Promise[_0x4364cd(0x30a)]([_0x14256d(_0x2d4471,{'sessionId':_0x7f29e3[_0x4364cd(0x2b9)]}),_0x19dc9f(_0x2d4471),_0x5aeedc(_0x2d4471)]);l(_0x7f29e3,{'licensing':_0x493bdf,'monthlySpending':_0x34d81d,'cartographerAllowance':_0x416603},jt);}function jt(_0x4ea4d4){const _0x4709d1=_0x1064c6;let {licensing:_0x3478de,monthlySpending:_0x956b76,cartographerAllowance:_0x11a67d}=_0x4ea4d4,_0x1b4c5f=[_0x3478de[_0x4709d1(0x358)]?_0x4709d1(0x2d4)+_0x3478de[_0x4709d1(0x1ef)][_0x4709d1(0x351)](0x1)+'%\x20of\x20'+(_0x3478de[_0x4709d1(0x322)]??0x0)+'\x20PU\x20used'+(_0x3478de[_0x4709d1(0x25e)]>0x0?',\x20'+_0x3478de['extra_pool_consumed_pu']+'\x20PU\x20beyond\x20quota':'')+'\x20(resets\x20'+_0x3478de[_0x4709d1(0x31f)]+')':_0x4709d1(0x312),_0x4709d1(0x34f)+_0x956b76[_0x4709d1(0x1ff)][_0x4709d1(0x351)](0x2)+_0x4709d1(0x30f)+(_0x956b76['limit_enabled']&&_0x956b76[_0x4709d1(0x2a1)]!==null?'\x20of\x20a\x20$'+_0x956b76['monthly_limit_usd'][_0x4709d1(0x351)](0x2)+_0x4709d1(0x23e):_0x4709d1(0x2ec)),_0x4709d1(0x2c9)+_0x11a67d[_0x4709d1(0x370)]+'\x20('+_0x11a67d[_0x4709d1(0x249)]+')'];_0x3478de['session_consumed_pu']!==null&&_0x3478de['session_consumed_pu']!==void 0x0&&_0x1b4c5f[_0x4709d1(0x318)](_0x4709d1(0x22f)+_0x3478de[_0x4709d1(0x2ee)]+_0x4709d1(0x22a)),process['stdout'][_0x4709d1(0x279)](_0x1b4c5f[_0x4709d1(0x335)]('\x0a')+'\x0a');}function Mt(_0x1ddfdc){const _0x550f27=_0x1064c6;let _0x448710=[_0x550f27(0x222)+_0x1ddfdc[_0x550f27(0x297)]+'\x20days:\x20'+_0x1ddfdc[_0x550f27(0x2d0)]+_0x550f27(0x293)+_0x1ddfdc['active_days']+_0x550f27(0x21e),_0x550f27(0x22e)+_0x1ddfdc[_0x550f27(0x31d)]['toFixed'](0x2)+'\x20(estimated\x20$'+_0x1ddfdc['estimated_cost_usd'][_0x550f27(0x351)](0x2)+_0x550f27(0x2a5)+_0x1ddfdc[_0x550f27(0x252)]+_0x550f27(0x35d),_0x550f27(0x33e)+_0x1ddfdc['total_prompt_tokens']+_0x550f27(0x1c2)+_0x1ddfdc[_0x550f27(0x364)]+_0x550f27(0x2c0)];for(let [_0xd93f3,_0x44e794]of Object[_0x550f27(0x1b3)](_0x1ddfdc[_0x550f27(0x321)]))_0x448710[_0x550f27(0x318)]('\x20\x20'+_0xd93f3+':\x20'+_0x44e794+_0x550f27(0x27a));process[_0x550f27(0x272)][_0x550f27(0x279)](_0x448710[_0x550f27(0x335)]('\x0a')+'\x0a');}function Bt(_0x4aef9a){const _0x437afe=_0x1064c6;if(_0x4aef9a[_0x437afe(0x259)][_0x437afe(0x2bb)]===0x0){process[_0x437afe(0x272)][_0x437afe(0x279)]('No\x20usage\x20in\x20the\x20last\x20'+_0x4aef9a[_0x437afe(0x297)]+_0x437afe(0x2b3));return;}let _0x2a7e35=[_0x437afe(0x2ab)];for(let _0x302913 of _0x4aef9a[_0x437afe(0x259)])_0x2a7e35['push'](_0x302913[_0x437afe(0x288)]+'\x20\x20'+String(_0x302913['token_units'])[_0x437afe(0x355)](0xb)+'\x20\x20'+String(_0x302913['prompt_tokens'])[_0x437afe(0x355)](0xd)+'\x20\x20'+String(_0x302913[_0x437afe(0x1bc)])[_0x437afe(0x355)](0x11));process[_0x437afe(0x272)][_0x437afe(0x279)](_0x2a7e35['join']('\x0a')+'\x0a');}function _0x1dc3(){const _0x327b2d=['\x20not\x20found,\x20has\x20no\x20messages','cancel','\x27\x20is\x20empty.','projectId','Owner\x20\x20\x20\x20\x20\x20\x20\x20\x20','Token:\x20\x20\x20\x20\x20\x20\x20\x20expired\x20','Invalid\x20--project:\x20\x22','cartographer','rerank','3120417hyiBCI','--turn','test','spawn','days','index','Forked\x20','create','subcommand','log','pct_used','4939152TGOIcj','No\x20answers\x20awaiting\x20acceptance.\x0a','stderr','No\x20sessions\x20on\x20page\x20','Model\x20','\x0aUse\x20with:\x20delegate-cli\x20--model\x20<id>\x20\x22<prompt>\x22\x0a','workingDirectory','\x20needs\x20a\x20JSON\x20request:\x20delegate-cli\x20','max','probability\x20','bundledSkillsPath','190622qvEmJq','localhost','hide','--worker-id','monthly_spend_usd','The\x20saved\x20CLI\x20login\x20could\x20not\x20be\x20refreshed.\x20Run\x20`delegate-cli\x20login`\x20again.','dismiss','medium','round','[env=','\x20must\x20be\x20a\x20whole\x20number\x20','bind','Usage:\x20delegate-cli\x20sessions\x20','toISOString','padEnd','\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).','done','auth','email','\x20\x20\x20\x20BYO\x20warning:\x20','Tenant:\x20','No\x20CLI\x20login\x20found.\x20Run\x20`delegate-cli\x20login\x20--env\x20<alpha|staging|production>`\x20first.','--print','backendUrl','\x20<title>','onEvent','.\x20Use\x20alpha\x20|\x20staging\x20|\x20production\x20|\x20localhost.','\x20\x20from\x20','--tenant','Session:\x20','You>\x20','orgLogicalName','effort','whoami','--env','\x20active\x20days','\x20(confidence\x20','initialize','Cancel\x20requested\x20for\x20turn\x20','Last\x20','--no-connections','Answered','error','tokenExpiresAt','file','evaluate','object','\x20PU','off','a\x20JSON\x20schema\x20file','--to\x20and\x20--summary\x20apply\x20to\x20`delegate-cli\x20delegations\x20create`\x20only.','Cost:\x20\x20\x20$','Session:\x20\x20\x20\x20\x20\x20','\x20(resume\x20with\x20--session\x20','fork','login','\x20of\x20session\x20','stringify','--runner-url','an\x20email\x20address\x20or\x20name','ID\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','toString','Continue\x20it\x20with:\x20delegate-cli\x20--session\x20','task','skipEnvCheck','choice\x20','self-hosted\x20(Automation\x20Suite\x20/\x20Dedicated)','\x20cap','delegateTo','--page','name','No\x20delegations.\x0a','--version','Base\x20URL:\x20\x20\x20\x20\x20','total_tokens','--quiet','Delegated\x20','origin','model_id','delegations\x20cancel\x20<delegation-id>','session_start','parentSessionId','Could\x20not\x20check\x20BYO\x20model\x20warnings:\x20','\x20to\x20','destroy','Session\x20\x20\x20\x20\x20\x20\x20','keepAlive','total_token_units','deployment','delegate-cli','contextSummary','complete','parse','toUpperCase','daily_usage','\x20into\x20','--interop','\x20\x20TITLE\x0a','resume','extra_pool_consumed_pu','--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`delegate-cli\x20sessions`\x20only.','--effort','show','a\x20file\x20path','--help','lockReason','Deployment:\x20\x20\x20','delete','Tenant:\x20\x20\x20\x20\x20\x20\x20','\x0adelegate-cli\x20—\x20Delegate\x20agent\x20CLI\x0a\x0aUsage:\x0a\x20\x20delegate-cli\x20[flags]\x20[\x22<prompt>\x22]\x20\x20\x20\x20Start\x20a\x20conversation\x20in\x20a\x20terminal\x0a\x20\x20delegate-cli\x20--print\x20\x22<prompt>\x22\x20\x20\x20\x20\x20\x20Send\x20one\x20prompt,\x20print\x20the\x20response,\x20and\x20exit\x0a\x20\x20delegate-cli\x20[flags]\x20-\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Read\x20one\x20prompt\x20from\x20stdin\x20through\x20EOF,\x20then\x20exit\x0a\x20\x20delegate-cli\x20-p\x20\x22<prompt>\x22\x20--output-format\x20json|stream-json\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20One\x20turn\x20with\x20JSON-only\x20stdout;\x20exit\x201\x20on\x20error\x0a\x20\x20delegate-cli\x20--json-schema\x20FILE\x20\x22<prompt>\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20One\x20turn,\x20then\x20its\x20result\x20extracted\x20as\x20JSON\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20matching\x20the\x20schema\x20in\x20FILE\x20(printed\x20after\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20answer;\x20\x22structured\x22\x20in\x20the\x20JSON\x20result);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20exit\x201\x20when\x20the\x20extraction\x20fails\x0a\x20\x20delegate-cli\x20--attach\x20PATH\x20[--attach\x20PATH\x20...]\x20\x22<prompt>\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Send\x20files\x20or\x20folders\x20with\x20the\x20first\x20message\x0a\x20\x20delegate-cli\x20login\x20[--env\x20NAME\x20|\x20--url\x20BASE]\x20[--tenant\x20NAME]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20OAuth\x20browser\x20login\x20→\x20~/.aria/sdk-auth.json.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--env\x20or\x20--url\x20required\x20on\x20FIRST\x20login;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20afterwards\x20defaults\x20to\x20the\x20saved\x20login\x27s\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20deployment.\x20--tenant\x20picks\x20a\x20tenant\x20by\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20name;\x20without\x20it\x20a\x20re-login\x20keeps\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20saved\x20tenant\x0a\x20\x20delegate-cli\x20tenant\x20[NAME]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20the\x20organization\x27s\x20tenants,\x20or\x20switch\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20saved\x20login\x20to\x20NAME\x20(no\x20browser)\x0a\x20\x20delegate-cli\x20logout\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Remove\x20the\x20saved\x20CLI\x20login\x0a\x20\x20delegate-cli\x20whoami\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20the\x20current\x20login\x20(org,\x20tenant,\x20token\x20expiry)\x0a\x20\x20delegate-cli\x20models\x20[--env\x20NAME]\x20\x20\x20\x20\x20List\x20available\x20LLM\x20models\x20for\x20the\x20current\x20tenant,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20with\x20any\x20BYO\x20configuration\x20warning\x20per\x20model\x0a\x20\x20delegate-cli\x20sessions\x20[list]\x20[--page\x20N]\x20[--limit\x20N]\x20[--include-subagents]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20your\x20backend\x20chat\x20sessions,\x20most\x20recently\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20active\x20first\x20(resume\x20one\x20with\x20--session\x20ID)\x0a\x20\x20delegate-cli\x20sessions\x20show|delete\x20ID\x20Show\x20one\x20session\x27s\x20title\x20and\x20owner,\x20or\x20delete\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20it\x20with\x20its\x20messages\x20and\x20sub-agents\x20(no\x20prompt)\x0a\x20\x20delegate-cli\x20sessions\x20rename\x20ID\x20TITLE\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Rename\x20a\x20session\x20(1-500\x20characters)\x0a\x20\x20delegate-cli\x20sessions\x20fork\x20ID\x20[MESSAGE]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Copy\x20session\x20ID\x20into\x20a\x20new\x20session,\x20up\x20to\x20and\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20including\x20message\x20MESSAGE\x20(default:\x20all\x20of\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20it);\x20continue\x20it\x20with\x20--session\x20NEW_ID\x0a\x20\x20delegate-cli\x20sessions\x20cancel\x20ID\x20--turn\x20TURN\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Cancel\x20turn\x20TURN\x20running\x20on\x20session\x20ID\x20in\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20another\x20process;\x20exits\x201\x20when\x20no\x20such\x20turn\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20is\x20in\x20progress\x0a\x20\x20delegate-cli\x20check\x20[--env\x20NAME]\x20[--headless]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Verify\x20auth,\x20backend\x20readiness,\x20backend\x20and\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20interop\x20without\x20sending\x20a\x20prompt;\x20exits\x201\x20when\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20any\x20check\x20fails\x0a\x20\x20delegate-cli\x20usage\x20[--session\x20ID]\x20\x20\x20\x20Quota\x20and\x20spend:\x20licensing\x20quota,\x20monthly\x20spend\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20and\x20cap,\x20Cartographer\x20allowance\x0a\x20\x20delegate-cli\x20usage\x20activity|daily\x20[--days\x20N]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Activity\x20totals,\x20or\x20per-day\x20usage,\x20over\x20the\x20last\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20N\x20days\x20(1-365,\x20default\x2030)\x0a\x20\x20delegate-cli\x20evaluate|rerank|verify\x20FILE|-\x20[--model\x20ID]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Stateless\x20typed\x20judgments:\x20send\x20the\x20JSON\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20request\x20in\x20FILE\x20(or\x20stdin\x20with\x20-)\x20to\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20/v1/completions/<command>\x20and\x20print\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20answers;\x20--model\x20overrides\x20its\x20\x22model\x22.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Exits\x201\x20when\x20the\x20backend\x20rejects\x20it\x0a\x20\x20delegate-cli\x20complete\x20--json-schema\x20FILE\x20[--model\x20ID]\x20[--session\x20ID]\x20\x22<prompt>\x22|-\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20One\x20structured\x20completion,\x20no\x20agent\x20turn:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20print\x20the\x20JSON\x20object\x20matching\x20the\x20schema\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20in\x20FILE\x20(--output-format\x20json\x20prints\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{structured,\x20usage});\x20--session\x20adds\x20that\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20session\x27s\x20history\x20as\x20context.\x20Exits\x201\x20when\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20output\x20fails\x20the\x20schema\x20(422)\x20or\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20backend\x20rejects\x20the\x20request\x0a\x20\x20delegate-cli\x20transcribe\x20FILE|-\x20\x20\x20\x20\x20\x20\x20Speech-to-text\x20(Whisper):\x20print\x20the\x20text\x20of\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20audio\x20in\x20FILE,\x20or\x20on\x20stdin\x20with\x20-.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20mp3,\x20mp4,\x20mpeg,\x20mpga,\x20m4a,\x20wav\x20or\x20webm,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20up\x20to\x2025\x20MiB.\x20Exits\x202\x20when\x20the\x20audio\x20is\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20refused\x20locally,\x201\x20when\x20the\x20backend\x20rejects\x20it\x0a\x20\x20delegate-cli\x20org-users\x20QUERY\x20\x20\x20\x20\x20\x20\x20\x20\x20Search\x20your\x20organization\x27s\x20users\x20by\x20name\x20or\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20email\x20prefix\x20(2-100\x20characters)\x0a\x20\x20delegate-cli\x20delegations\x20create\x20--session\x20ID\x20[--to\x20WHO]\x20[--summary\x20TEXT]\x20\x22<task>\x22|-\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Hand\x20a\x20task\x20from\x20session\x20ID\x20to\x20a\x20colleague\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(WHO:\x20an\x20email,\x20or\x20a\x20name\x20matching\x20one\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20person);\x20without\x20--to,\x20print\x20a\x20link\x20anyone\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20in\x20the\x20organization\x20can\x20claim\x0a\x20\x20delegate-cli\x20delegations\x20pending\x20SESSION\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Answers\x20to\x20delegations\x20from\x20SESSION\x20that\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20await\x20acceptance\x20(poll\x20this)\x0a\x20\x20delegate-cli\x20delegations\x20accept|dismiss|cancel|delete\x20ID\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Take\x20an\x20answer\x20into\x20its\x20session,\x20drop\x20it,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20withdraw\x20a\x20live\x20delegation,\x20or\x20delete\x20it\x0a\x20\x20delegate-cli\x20delegations\x20list\x20PROJECT\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Every\x20delegation\x20targeting\x20a\x20backend\x20project\x0a\x20\x20delegate-cli\x20delegations\x20show|claim\x20ID|LINK\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Read\x20a\x20delegation\x20assigned\x20to\x20you\x20(or\x20a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20delegate://delegation/…\x20link),\x20or\x20claim\x20it:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20prints\x20the\x20session\x20to\x20work\x20it\x20in\x0a\x20\x20delegate-cli\x20delegations\x20complete\x20ID\x20\x22<answer>\x22|-\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Send\x20the\x20answer\x20to\x20a\x20delegation\x20you\x20claimed\x0a\x20\x20delegate-cli\x20host\x20[flags]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Run\x20this\x20PC\x20as\x20a\x20remote\x20worker\x20until\x20Ctrl+C\x0a\x20\x20delegate-cli\x20host\x20install\x20[flags]\x20\x20\x20\x20Auto-start\x20the\x20host\x20at\x20login\x20(macOS\x20LaunchAgent\x20/\x20Windows\x20Scheduled\x20Task)\x0a\x20\x20delegate-cli\x20host\x20uninstall\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Remove\x20auto-start\x0a\x20\x20delegate-cli\x20host\x20status\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20auto-start\x20state\x0a\x20\x20delegate-cli\x20--cleanup\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Stop\x20running\x20interop\x0a\x0aFlags:\x0a\x20\x20-p,\x20--print\x20\x20\x20\x20\x20\x20\x20Run\x20one\x20turn\x20and\x20exit,\x20including\x20any\x20tool\x20execution.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Automatic\x20when\x20stdin\x20or\x20stdout\x20is\x20not\x20a\x20terminal,\x20or\x20with\x20-\x0a\x20\x20--env\x20NAME\x20\x20\x20\x20\x20\x20\x20\x20alpha\x20|\x20staging\x20|\x20production\x20|\x20localhost\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Composes\x20backend\x20URL\x20from\x20saved\x20auth\x20(org/tenant\x20slugs).\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Omitted\x20→\x20the\x20deployment\x20you\x20logged\x20into\x20(delegate-cli\x20login).\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20localhost\x20→\x20http://localhost:5002.\x20No\x20saved\x20login\x20and\x20no\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--env/--backend/BACKEND_URL\x20is\x20an\x20error\x20—\x20never\x20a\x20guess.\x0a\x20\x20--url\x20BASE\x20\x20\x20\x20\x20\x20\x20\x20(login)\x20Base\x20URL\x20of\x20a\x20deployment\x20that\x20is\x20not\x20a\x20named\x20cloud\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20—\x20Automation\x20Suite,\x20Dedicated,\x20Public\x20Sector.\x20Accepts\x20a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20tenant\x20path\x20or\x20a\x20trailing\x20/identity_\x20and\x20reduces\x20it\x20to\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20origin.\x20Mutually\x20exclusive\x20with\x20--env;\x20also\x20settable\x20via\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20UIPATH_BASE_URL.\x20Alias:\x20--authority.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Automation\x20Suite\x20needs\x2026.10+\x20with\x20the\x20Delegate\x20service;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20the\x20deployment\x20rejects\x20the\x20built-in\x20client,\x20register\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20your\x20own\x20—\x20see\x20UIPATH_CLIENT_ID\x20in\x20the\x20README\x0a\x20\x20--skip-env-check\x20\x20(login)\x20Do\x20not\x20check\x20the\x20deployment\x20before\x20signing\x20in.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Escape\x20hatch\x20for\x20a\x20deployment\x20that\x20hides\x20its\x20OIDC\x20discovery\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20document\x20or\x20serves\x20Identity\x20from\x20another\x20origin;\x20it\x20also\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20gives\x20up\x20the\x20diagnosis\x20when\x20something\x20is\x20really\x20wrong\x0a\x20\x20--backend\x20URL\x20\x20\x20\x20\x20Full\x20backend\x20URL\x20—\x20escape\x20hatch\x20overrides\x20--env\x0a\x20\x20--tenant\x20NAME\x20\x20\x20\x20\x20(login)\x20Tenant\x20to\x20sign\x20into,\x20by\x20name\x20(case-insensitive).\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default:\x20the\x20saved\x20login\x27s\x20tenant\x20on\x20that\x20cloud,\x20else\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20org\x27s\x20first\x20tenant.\x20Later:\x20delegate-cli\x20tenant\x20<name>\x0a\x20\x20--model\x20NAME\x20\x20\x20\x20\x20\x20LLM\x20model\x20id\x20(e.g.\x20claude_sonnet_5_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','cancelled','then','answers','pendingResults','env','Structured\x20output\x20failed:\x20','Removed\x20','model','--attach:\x20no\x20such\x20file\x20or\x20folder:\x20','stdout','\x0aAvailable\x20models\x20(','delegations','help','pause','--task-automation\x20applies\x20to\x20prompts\x20only.','rmSync','write','\x20token\x20units','map','auth.json','headless','Task\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','110ehKtWE','prompt','--attach','results','\x20<id>','org-users','Delegation\x20\x20\x20\x20','🔧\x20','--model','date','assignedUserEmail','choice','restore','locked','baseUrl','environment\x20variables\x20(AUTH_TOKEN/TENANT_ID/ORG_ID)','.aria','a\x20session\x20id','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.','\x20\x22<prompt>\x22\x0aAnswer\x20with:\x20delegate-cli\x20delegations\x20complete\x20','\x20sessions\x20on\x20','\x20\x20\x20\x20',',\x20or\x20holds\x20no\x20message\x20','\x20must\x20be\x20a\x20JSON\x20object.','period_days','2yiCHOz','--session\x20applies\x20to\x20the\x20`delegate-cli\x20usage`\x20summary\x20only.','--json-schema','sessions','deepLink','\x20(Delegate\x20desktop\x20app\x20fallback)','\x0aStopping…\x20(Ctrl+C\x20again\x20to\x20force\x20exit)\x0a','exit','content','monthly_limit_usd','\x0a🤔\x20','tenantId','--preload-skill','\x20from\x20','Usage:\x20delegate-cli\x20sessions\x20[list]\x20[--page\x20N]\x20[--limit\x20N]\x20[--include-subagents]','rename','\x20\x22<answer>\x22\x0a','turnId','--no-security','Date\x20\x20\x20\x20\x20\x20\x20\x20Token\x20units\x20\x20Prompt\x20tokens\x20\x20Completion\x20tokens','--no-memory','score','delegations\x20complete\x20<delegation-id>\x20\x22<answer>\x22|-','Bearer\x20','Unknown\x20sessions\x20action:\x20','stream-json','transcribe\x20needs\x20audio:\x20delegate-cli\x20transcribe\x20<file>,\x20or\x20-\x20to\x20read\x20stdin.','\x20days.\x0a','--skills-path','delegations\x20claim\x20<delegation-id|delegate://delegation/…>','Unknown\x20delegations\x20action:\x20','attachments','No\x20structured\x20output:\x20the\x20turn\x20failed\x20(','sessionId','taskAutomation','length','userId','Tenants\x20of\x20','activity','Missing\x20prompt.\x20Pass\x20it\x20as\x20an\x20argument,\x20pipe\x20it\x20via\x20stdin,\x20or\x20run\x20`delegate-cli\x20--help`.','\x20completion','daily','package.json','model_version','isSafeInteger','SIGINT','assignedUser','readFileSync','stack','Cartographer:\x20','\x0aAccept\x20one\x20with:\x20delegate-cli\x20delegations\x20accept\x20<id>\x0a','isTTY','--output-format','accessToken','delegations\x20delete\x20<delegation-id>','3060OOookD','total_sessions','--include-subagents','--to,\x20--summary\x20and\x20--session\x20apply\x20to\x20`delegate-cli\x20delegations\x20create`\x20only.','\x20min)','Licensing:\x20\x20\x20\x20','ASSIGNEE','pending','\x20\x20\x20\x20Not\x20available\x20on\x20this\x20plan','includeSubAgents','No\x20CLI\x20login\x20found.\x20Note:\x20the\x20CLI\x20is\x20currently\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20','\x20\x20(input\x20#','slice','Unknown\x20usage\x20view:\x20','Work\x20on\x20it\x20with:\x20delegate-cli\x20--session\x20','turn_start','delegations\x20create\x20--session\x20<id>\x20[--to\x20<email|name>]\x20[--summary\x20<text>]\x20\x22<task>\x22|-','a\x20colleague','organizationId','--url\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Other\x20commands\x20follow\x20the\x20saved\x20login,\x20or\x20--backend\x20<url>.','argv','displayName','\x20(cancel\x20with:\x20delegate-cli\x20sessions\x20cancel\x20','UPDATED','noMemory','stdin','--tenant\x20requires\x20a\x20tenant\x20name.','Auth\x20comes\x20from\x20AUTH_TOKEN/TENANT_ID/ORG_ID\x20—\x20set\x20TENANT_ID\x20and\x20TENANT_SLUG\x20to\x20change\x20the\x20tenant.','asyncIterator','\x20(no\x20cap\x20enforced)','--json-schema\x20applies\x20to\x20prompts\x20and\x20to\x20`delegate-cli\x20complete`\x20only.','session_consumed_pu','utf-8','getSessionId','10lXtBYY','toolName','a\x20project\x20id','4786331fGIfkr','\x20--turn\x20','/exit','probability','Invalid\x20--effort:\x20','finish','xhigh','--cleanup','Source:\x20\x20\x20\x20\x20\x20\x20','1\x20or\x20more','interopPath','Organization\x20\x20','models','delegation','✓\x20Done\x0a','\x20|\x20','--task-automation','UiPath\x20Cloud','check','alreadyCompleted','preloadSkills','--output-format\x20','all','Usage:\x20delegate-cli\x20org-users\x20<name\x20or\x20email\x20prefix>','Session\x20','noComputerUse','a\x20turn\x20id','\x20this\x20month','delegations\x20list\x20<backend-project-id>','No\x20one\x20matches\x20\x22','Licensing:\x20\x20\x20\x20no\x20licensing\x20quota\x20applies','catch','a\x20directory\x20path','page','delegationId','--days\x20applies\x20to\x20`delegate-cli\x20usage\x20activity|daily`\x20only.','push','skip','Enter\x20sends\x20a\x20message.\x20/exit\x20or\x20EOF\x20exits;\x20Ctrl+C\x20stops\x20and\x20exits.\x0a','exitCode','\x20(stdin\x20was\x20empty)','total_cost_usd','Usage:\x20delegate-cli\x20','period_end','\x20\x20(sub-agent\x20of\x20','models_breakdown','total_quota_pu','delegations\x20pending\x20<session-id>','Switch\x20with:\x20delegate-cli\x20tenant\x20<name>\x0a','verbose','\x20\x22<prompt>\x22\x0a','[saved\x20login]\x20Backend\x20URL:\x20','alpha','verify','isDesktopFallback','noConnections','Unknown\x20flag:\x20','lastType','host',']\x20Backend\x20URL:\x20','--headless','existsSync','forEach','noSecurity','--env\x20localhost\x20has\x20no\x20OAuth\x20flow;\x20pick\x20alpha,\x20staging,\x20or\x20production.','join','.\x20Use\x20`delegate-cli\x20usage`,\x20`usage\x20activity`\x20or\x20`usage\x20daily`.','Interop\x20stopped\x20(if\x20it\x20was\x20running).','\x20(in\x20','includes','3240132hdjDIz','outputFormat','sendMessage','\x20delegation\x20','Tokens:\x20','tenantName','--working-dir','type','title','cwd','rejection','\x22.\x0a','byoWarning','url','text','transcribe:\x20cannot\x20read\x20','print','a\x20briefing\x20text','--turn\x20applies\x20to\x20`delegate-cli\x20sessions\x20cancel`\x20only.','Renamed\x20','filter','Spending:\x20\x20\x20\x20\x20$','logout','toFixed','data','status','from','padStart','From\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','No\x20CLI\x20login\x20to\x20switch:\x20the\x20CLI\x20is\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20','limit_enabled','transcribe','workerId','sourceUserEmail','3170886tOJBPW','\x20token\x20units)','structuredError','\x20requires\x20','usage','Usage:\x20delegate-cli\x20sessions\x20fork\x20<id>\x20[<message-id>]','cleanup','high','total_completion_tokens','Deleted\x20session\x20','confidence','AUTH_TOKEN_FILE\x20\x27','now','Usage:\x20delegate-cli\x20sessions\x20cancel\x20<session-id>\x20--turn\x20<turn-id>','claim','Rubric\x20','verdict','delegations\x20dismiss\x20<delegation-id>','thinking','Already\x20accepted','mode','tool_call','STATUS','.\x20Share:\x20','entries','concat','jsonSchemaPath','description','production','unknown\x20slug','end','9576brnaWt','delegations\x20accept\x20<delegation-id>','completion_tokens','string','tool','expiresAt','trim','result','\x20prompt,\x20','--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`delegate-cli\x20sessions\x20[list]`\x20only.','version','resolve','--days\x20applies\x20to\x20`delegate-cli\x20usage\x20activity|daily`;\x20the\x20summary\x20covers\x20the\x20current\x20month.','message','close','--cartographer','operands','Invalid\x20--output-format:\x20','accept','isError','code','tenant','sourceTitle','response','quiet','--summary','unknown','No\x20turn\x20','\x27\x20cannot\x20be\x20read:\x20','list','.\x20Use\x20','stop','limit','startsWith'];_0x1dc3=function(){return _0x327b2d;};return _0x1dc3();}async function Ht(_0x1b3020,_0x44a83d){const _0x1509f5=_0x1064c6;let _0x10e81d=await qt(_0x1b3020['prompt'],_0x44a83d);_0x1b3020['model']&&(_0x10e81d[_0x1509f5(0x270)]=_0x1b3020['model']);let {client:_0x459b6d}=await f(_0x1b3020);try{_0x44a83d===_0x1509f5(0x228)?l(_0x1b3020,await _0xfdf053(_0x459b6d,_0x10e81d,void 0x0),Wt):_0x44a83d===_0x1509f5(0x1e4)?l(_0x1b3020,await _0x1c178c(_0x459b6d,_0x10e81d,void 0x0),Gt):l(_0x1b3020,await _0x546562(_0x459b6d,_0x10e81d,void 0x0),Kt);}catch(_0x968dd4){if(!_0x4a40e4(_0x968dd4))throw _0x968dd4;console[_0x1509f5(0x225)](_0x968dd4[_0x1509f5(0x1c7)]),process[_0x1509f5(0x29f)](0x1);}}async function qt(_0x1d063b,_0x27a515){const _0xd79360=_0x1064c6;let _0x1e3f96;try{_0x1e3f96=_0x1d063b&&_0x1d063b!=='-'?_0x202272[_0xd79360(0x2c7)](_0x1df2b2[_0xd79360(0x1c5)](_0x1d063b),_0xd79360(0x2ef)):await I(_0x1d063b,process[_0xd79360(0x2e8)]);}catch(_0x28119e){console[_0xd79360(0x225)](_0x27a515+':\x20cannot\x20read\x20the\x20request\x20('+_0x28119e[_0xd79360(0x1c7)]+').'),process[_0xd79360(0x29f)](0x2);}return _0x1e3f96||(console[_0xd79360(0x225)](_0x27a515+_0xd79360(0x1f7)+_0x27a515+'\x20<file.json>,\x20or\x20-\x20to\x20read\x20stdin.'),process[_0xd79360(0x29f)](0x2)),de(_0x1e3f96,_0x27a515,'the\x20request');}function de(_0x3273ee,_0x4ea174,_0x36425e){const _0x1244e7=_0x1064c6;let _0x1b96e7;try{_0x1b96e7=JSON['parse'](_0x3273ee);}catch(_0x155298){console['error'](_0x4ea174+':\x20'+_0x36425e+'\x20is\x20not\x20valid\x20JSON\x20('+_0x155298[_0x1244e7(0x1c7)]+').'),process['exit'](0x2);}return(typeof _0x1b96e7!=_0x1244e7(0x229)||_0x1b96e7===null||Array['isArray'](_0x1b96e7))&&(console['error'](_0x4ea174+':\x20'+_0x36425e+_0x1244e7(0x296)),process['exit'](0x2)),_0x1b96e7;}function ue(_0x186daa,_0x55341d){const _0x2d443c=_0x1064c6;let _0x3f43a7;try{_0x3f43a7=_0x202272[_0x2d443c(0x2c7)](_0x1df2b2[_0x2d443c(0x1c5)](_0x186daa),_0x2d443c(0x2ef));}catch(_0x1e5992){console['error'](_0x55341d+':\x20cannot\x20read\x20the\x20JSON\x20schema\x20('+_0x1e5992['message']+').'),process[_0x2d443c(0x29f)](0x2);}return de(_0x3f43a7,_0x55341d,'the\x20JSON\x20schema');}async function Jt(_0x457695){const _0x453435=_0x1064c6;_0x457695['jsonSchemaPath']===void 0x0&&(console[_0x453435(0x225)]('complete\x20needs\x20--json-schema\x20<file>:\x20delegate-cli\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22.'),process['exit'](0x2));let _0x1e9713=ue(_0x457695[_0x453435(0x1b5)],_0x453435(0x256)),_0x4ec0a5=(await I(_0x457695['prompt'],process[_0x453435(0x2e8)]))[_0x453435(0x1c0)]();_0x4ec0a5||(console['error']('complete\x20needs\x20a\x20prompt:\x20delegate-cli\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22,\x20or\x20-\x20to\x20read\x20stdin.'),process[_0x453435(0x29f)](0x2));let {client:_0x2bec59}=await f(_0x457695);try{let _0x37512d=await _0x11b843(_0x2bec59,{'prompt':_0x4ec0a5,'jsonSchema':_0x1e9713,'model':_0x457695[_0x453435(0x270)]||process.env.MODEL||_0x47c9ae,..._0x457695[_0x453435(0x2b9)]!==void 0x0&&{'sessionId':_0x457695[_0x453435(0x2b9)]}},void 0x0);l(_0x457695,_0x37512d,_0x5a05af=>{const _0x3d8547=_0x453435;process[_0x3d8547(0x272)][_0x3d8547(0x279)](JSON[_0x3d8547(0x234)](_0x5a05af['structured'],null,0x2)+'\x0a');});}catch(_0x4612dd){if(!_0x242c97(_0x4612dd))throw _0x4612dd;console[_0x453435(0x225)](_0x4612dd[_0x453435(0x1c7)]),process[_0x453435(0x29f)](0x1);}}function j(_0xa3dfd1){const _0x4fba68=_0x1064c6;process[_0x4fba68(0x272)][_0x4fba68(0x279)](_0x4fba68(0x1f4)+_0xa3dfd1[_0x4fba68(0x270)]+'\x20('+_0xa3dfd1[_0x4fba68(0x2c3)]+'),\x20'+_0xa3dfd1[_0x4fba68(0x360)][_0x4fba68(0x245)]+'\x20tokens\x0a');}function Wt(_0x20a001){const _0x140239=_0x1064c6;j(_0x20a001);for(let _0x4efb73 of Object['keys'](_0x20a001[_0x140239(0x26b)])){let _0x16b1ae=_0x20a001[_0x140239(0x26b)][_0x4efb73],_0x155b76=_0x16b1ae[_0x140239(0x341)]===_0x140239(0x2f7)?_0x140239(0x1f9)+_0x16b1ae[_0x140239(0x2f7)][_0x140239(0x351)](0x2):_0x16b1ae[_0x140239(0x341)]===_0x140239(0x28a)?_0x140239(0x23c)+_0x16b1ae[_0x140239(0x28a)]+_0x140239(0x21f)+_0x16b1ae[_0x140239(0x366)]['toFixed'](0x2)+')':'score\x20'+_0x16b1ae[_0x140239(0x2ad)][_0x140239(0x351)](0x2)+_0x140239(0x21f)+_0x16b1ae[_0x140239(0x366)]['toFixed'](0x2)+')';process[_0x140239(0x272)][_0x140239(0x279)]('\x20\x20'+_0x4efb73+':\x20'+_0x155b76+'\x0a');}}function Gt(_0x53cbd7){const _0x306dab=_0x1064c6;j(_0x53cbd7),_0x53cbd7['results'][_0x306dab(0x332)]((_0x514dc1,_0xebeeae)=>{const _0x425caf=_0x306dab;process['stdout'][_0x425caf(0x279)]('\x20\x20'+(_0xebeeae+0x1)+'.\x20'+_0x514dc1['id']+'\x20\x20'+_0x514dc1[_0x425caf(0x2ad)][_0x425caf(0x351)](0x3)+_0x425caf(0x2da)+_0x514dc1[_0x425caf(0x1ea)]+')\x0a');});}function Kt(_0x4e10a5){const _0x17038f=_0x1064c6;j(_0x4e10a5),process[_0x17038f(0x272)][_0x17038f(0x279)](_0x17038f(0x36b)+_0x4e10a5['rubric_version']+'\x0a');for(let _0x41c7fe of _0x4e10a5[_0x17038f(0x282)])process[_0x17038f(0x272)]['write']('\x20\x20'+_0x41c7fe['id']+':\x20'+_0x41c7fe[_0x17038f(0x36c)]+_0x17038f(0x21f)+_0x41c7fe[_0x17038f(0x366)][_0x17038f(0x351)](0x2)+')\x0a');}async function zt(_0x327314){const _0x2a38b6=_0x1064c6;let _0x3d1256=_0x327314[_0x2a38b6(0x280)]['trim']();_0x3d1256||(console[_0x2a38b6(0x225)](_0x2a38b6(0x2b2)),process[_0x2a38b6(0x29f)](0x2));let {client:_0x4eede5}=await f(_0x327314);try{let _0x2cd070=_0x3d1256==='-'?{'data':await Vt(process[_0x2a38b6(0x2e8)])}:_0x3d1256;l(_0x327314,await _0x1354a2(_0x4eede5,_0x2cd070,void 0x0),_0x5ab77e=>{const _0x4f3c33=_0x2a38b6;process[_0x4f3c33(0x272)][_0x4f3c33(0x279)](_0x5ab77e[_0x4f3c33(0x348)]+'\x0a');});}catch(_0x4fce1){if(_0x3d3195(_0x4fce1)&&(console[_0x2a38b6(0x225)](_0x4fce1[_0x2a38b6(0x1c7)]),process[_0x2a38b6(0x29f)](_0x4fce1[_0x2a38b6(0x353)]===void 0x0?0x2:0x1)),typeof _0x4fce1?.[_0x2a38b6(0x1ce)]!=_0x2a38b6(0x1bd))throw _0x4fce1;console['error'](_0x2a38b6(0x349)+_0x3d1256+'\x20('+_0x4fce1['message']+').'),process['exit'](0x2);}}async function Vt(_0x3d0f96){const _0xb220c6=_0x1064c6;let _0x5b5637=[];for await(let _0x3fe5f1 of _0x3d0f96)_0x5b5637['push'](Buffer[_0xb220c6(0x354)](_0x3fe5f1));return Buffer[_0xb220c6(0x1b4)](_0x5b5637);}var Y=['list',_0x1064c6(0x2d6),_0x1064c6(0x261),_0x1064c6(0x1ec),_0x1064c6(0x36a),_0x1064c6(0x256),_0x1064c6(0x1cc),_0x1064c6(0x201),_0x1064c6(0x1dd),'delete'],X={'list':_0x1064c6(0x310),'pending':_0x1064c6(0x323),'show':'delegations\x20show\x20<delegation-id|delegate://delegation/…>','create':_0x1064c6(0x2df),'claim':_0x1064c6(0x2b5),'complete':_0x1064c6(0x2ae),'accept':_0x1064c6(0x1bb),'dismiss':_0x1064c6(0x36d),'cancel':_0x1064c6(0x24a),'delete':_0x1064c6(0x2ce)};async function Yt(_0x76f7f2){const _0x19887a=_0x1064c6;let [_0x570733='',_0x2419b2='',..._0x4ce234]=_0x76f7f2[_0x19887a(0x1ca)];Y[_0x19887a(0x339)](_0x570733)||(console[_0x19887a(0x225)]((_0x570733?_0x19887a(0x2b6)+_0x570733+'.\x20':'')+'Use:\x20delegate-cli\x20delegations\x20'+Y[_0x19887a(0x335)](_0x19887a(0x303))+'.'),process[_0x19887a(0x29f)](0x2));let _0x5963df=_0x570733;_0x5963df!==_0x19887a(0x1ec)&&(_0x76f7f2['delegateTo']!==void 0x0||_0x76f7f2['contextSummary']!==void 0x0||_0x76f7f2[_0x19887a(0x2b9)]!==void 0x0)&&(console[_0x19887a(0x225)](_0x19887a(0x2d2)),process[_0x19887a(0x29f)](0x2));let _0x3b2849=(_0x5963df===_0x19887a(0x1ec)?_0x76f7f2[_0x19887a(0x1ca)][_0x19887a(0x2db)](0x1):_0x4ce234)[_0x19887a(0x335)]('\x20')[_0x19887a(0x1c0)](),_0x553cbc=_0x5963df===_0x19887a(0x1ec)||_0x5963df===_0x19887a(0x256);(_0x5963df!==_0x19887a(0x1ec)&&!_0x2419b2||(_0x553cbc?!_0x3b2849:_0x3b2849)||_0x5963df==='create'&&!_0x76f7f2[_0x19887a(0x2b9)])&&(console['error'](_0x19887a(0x31e)+X[_0x5963df]),process[_0x19887a(0x29f)](0x2));let _0x1aeb85=_0x553cbc&&_0x3b2849==='-'?(await I('-',process[_0x19887a(0x2e8)]))['trim']():_0x3b2849;_0x553cbc&&!_0x1aeb85&&(console[_0x19887a(0x225)](_0x19887a(0x31e)+X[_0x5963df]+_0x19887a(0x31c)),process['exit'](0x2));let {client:_0x4857fd}=await f(_0x76f7f2);try{await Xt(_0x76f7f2,_0x4857fd,_0x5963df,_0x2419b2,_0x1aeb85);}catch(_0x23ac86){if(!_0x3f9270(_0x23ac86))throw _0x23ac86;console['error'](_0x23ac86[_0x19887a(0x1c7)]),process[_0x19887a(0x29f)](0x1);}}async function Xt(_0xd99543,_0x3a1aa8,_0x30a7ad,_0x3b66e5,_0x3028bd){const _0x5d2ee0=_0x1064c6;switch(_0x30a7ad){case'list':l(_0xd99543,await _0x15aef9(_0x3a1aa8,_0x3b66e5),Qt);return;case _0x5d2ee0(0x2d6):l(_0xd99543,await _0xae72d5(_0x3a1aa8,_0x3b66e5),_0x50250a=>{const _0x4b69df=_0x5d2ee0;_0x50250a['delegation']&&process[_0x4b69df(0x272)][_0x4b69df(0x279)]('Claimed\x20from\x20delegation\x20'+_0x50250a[_0x4b69df(0x301)]['id']+'\x20('+_0x50250a['delegation']['status']+').\x0a'),_0x50250a[_0x4b69df(0x26c)][_0x4b69df(0x2bb)]===0x0&&process[_0x4b69df(0x1f2)][_0x4b69df(0x279)](_0x4b69df(0x1f1));for(let _0xfc9857 of _0x50250a[_0x4b69df(0x26c)])process[_0x4b69df(0x272)]['write']('\x0a'+_0xfc9857['id']+_0x4b69df(0x216)+(_0xfc9857[_0x4b69df(0x289)]??_0x4b69df(0x2e0))+'\x20\x20'+(_0xfc9857['task']??'')+'\x0a'+(_0xfc9857[_0x4b69df(0x1c1)]?.[_0x4b69df(0x2a0)]??'')+'\x0a');_0x50250a[_0x4b69df(0x26c)][_0x4b69df(0x2bb)]>0x0&&process[_0x4b69df(0x1f2)][_0x4b69df(0x279)](_0x4b69df(0x2ca));});return;case _0x5d2ee0(0x261):l(_0xd99543,await _0x565bc7(_0x3a1aa8,_0x3b66e5),Q);return;case _0x5d2ee0(0x1ec):{let _0x5c9347=await _0x57f999(_0x3a1aa8,{'sessionId':_0xd99543[_0x5d2ee0(0x2b9)],'task':_0x3028bd,..._0xd99543['contextSummary']!==void 0x0&&{'contextSummary':_0xd99543[_0x5d2ee0(0x255)]},..._0xd99543[_0x5d2ee0(0x23f)]!==void 0x0&&{'recipient':_0xd99543[_0x5d2ee0(0x23f)]}});l(_0xd99543,_0x5c9347,_0x4666a8=>{const _0x531a20=_0x5d2ee0;_0x4666a8[_0x531a20(0x2c6)]?process[_0x531a20(0x272)][_0x531a20(0x279)](_0x531a20(0x247)+_0x4666a8[_0x531a20(0x316)]+_0x531a20(0x24e)+_0x4666a8[_0x531a20(0x2c6)][_0x531a20(0x2e4)]+'\x20<'+_0x4666a8[_0x531a20(0x2c6)][_0x531a20(0x20d)]+'>.\x0a'):process[_0x531a20(0x272)][_0x531a20(0x279)]('Created\x20delegation\x20'+_0x4666a8[_0x531a20(0x316)]+_0x531a20(0x1b2)+_0x4666a8[_0x531a20(0x29c)]+'\x0a');});return;}case'claim':{let _0x34505a=await _0x173cc5(_0x3a1aa8,_0x3b66e5);l(_0xd99543,_0x34505a,_0x1e4c51=>{const _0x48c4d0=_0x5d2ee0;Q(_0x1e4c51),process[_0x48c4d0(0x272)][_0x48c4d0(0x279)](_0x48c4d0(0x250)+_0x1e4c51[_0x48c4d0(0x2b9)]+'\x0a'),process[_0x48c4d0(0x1f2)][_0x48c4d0(0x279)](_0x48c4d0(0x2dd)+_0x1e4c51['sessionId']+_0x48c4d0(0x292)+_0x1e4c51['delegationId']+_0x48c4d0(0x2a8));});return;}case _0x5d2ee0(0x256):{let {alreadyCompleted:_0x5f0db0}=await _0x356f5f(_0x3a1aa8,_0x3b66e5,{'content':_0x3028bd});l(_0xd99543,{'delegationId':_0x3b66e5,'alreadyCompleted':_0x5f0db0},_0x2ad1fa=>{const _0x4d12b4=_0x5d2ee0;process['stdout'][_0x4d12b4(0x279)]((_0x2ad1fa[_0x4d12b4(0x307)]?'Already\x20answered':_0x4d12b4(0x224))+_0x4d12b4(0x33d)+_0x2ad1fa[_0x4d12b4(0x316)]+'.\x0a');});return;}case'accept':{let _0x4183a5=await _0x5e48e4(_0x3a1aa8,_0x3b66e5);l(_0xd99543,{'delegationId':_0x3b66e5,..._0x4183a5},_0x5f3cba=>{const _0x55765f=_0x5d2ee0;process[_0x55765f(0x272)][_0x55765f(0x279)]((_0x5f3cba['alreadyAccepted']?_0x55765f(0x36f):'Accepted')+_0x55765f(0x33d)+_0x5f3cba['delegationId']+'.\x0a');});return;}default:{let _0x305b1b={'dismiss':_0x18bb8d,'cancel':_0x17fbe1,'delete':_0xe35e83}[_0x30a7ad];await _0x305b1b(_0x3a1aa8,_0x3b66e5);let _0x304207={'dismiss':'dismissed','cancel':_0x5d2ee0(0x269),'delete':'deleted'}[_0x30a7ad];l(_0xd99543,{'delegationId':_0x3b66e5,[_0x304207]:!0x0},()=>{const _0x5bc6ee=_0x5d2ee0;process[_0x5bc6ee(0x272)][_0x5bc6ee(0x279)](''+_0x304207[0x0][_0x5bc6ee(0x258)]()+_0x304207[_0x5bc6ee(0x2db)](0x1)+_0x5bc6ee(0x33d)+_0x3b66e5+'.\x0a');});}}}function Qt(_0x3d56b6){const _0x47bac4=_0x1064c6;if(_0x3d56b6[_0x47bac4(0x2bb)]===0x0){process[_0x47bac4(0x1f2)][_0x47bac4(0x279)](_0x47bac4(0x242));return;}process[_0x47bac4(0x272)][_0x47bac4(0x279)]('ID'['padEnd'](0x24)+'\x20\x20'+_0x47bac4(0x372)['padEnd'](0x9)+'\x20\x20'+_0x47bac4(0x2d5)['padEnd'](0x18)+'\x20\x20TASK\x0a');for(let _0x1e1518 of _0x3d56b6)process['stdout'][_0x47bac4(0x279)](_0x1e1518['id'][_0x47bac4(0x209)](0x24)+'\x20\x20'+_0x1e1518[_0x47bac4(0x353)][_0x47bac4(0x209)](0x9)+'\x20\x20'+(_0x1e1518['assignedUserEmail']??'-')[_0x47bac4(0x209)](0x18)+'\x20\x20'+(_0x1e1518[_0x47bac4(0x23a)]??'')+'\x0a');}function Q(_0xdd8ea1){const _0x444759=_0x1064c6;process['stdout'][_0x444759(0x279)](_0x444759(0x356)+(_0xdd8ea1[_0x444759(0x35b)]??'-')+'\x0a'),_0xdd8ea1['sourceTitle']&&process[_0x444759(0x272)]['write'](_0x444759(0x250)+_0xdd8ea1[_0x444759(0x1d0)]+'\x0a'),process['stdout'][_0x444759(0x279)](_0x444759(0x27e)+(_0xdd8ea1['task']??'-')+'\x0a'),_0xdd8ea1['contextSummary']&&process[_0x444759(0x272)]['write']('\x0a'+_0xdd8ea1[_0x444759(0x255)]+'\x0a\x0a');}async function Zt(_0x495999){const _0x36d832=_0x1064c6;_0x495999[_0x36d832(0x280)][_0x36d832(0x1c0)]()||(console[_0x36d832(0x225)](_0x36d832(0x30b)),process[_0x36d832(0x29f)](0x2));let {client:_0x233033}=await f(_0x495999),_0x567d3c;try{_0x567d3c=await _0x32847c(_0x233033,_0x495999[_0x36d832(0x280)]);}catch(_0x4b989d){if(!_0x3f9270(_0x4b989d))throw _0x4b989d;console[_0x36d832(0x225)](_0x4b989d[_0x36d832(0x1c7)]),process['exit'](0x1);}l(_0x495999,_0x567d3c,_0x33bcd2=>{const _0x5d6d81=_0x36d832;_0x33bcd2[_0x5d6d81(0x2bb)]===0x0&&process[_0x5d6d81(0x1f2)][_0x5d6d81(0x279)](_0x5d6d81(0x311)+_0x495999[_0x5d6d81(0x280)]['trim']()+_0x5d6d81(0x345));for(let _0x4d2b78 of _0x33bcd2)process[_0x5d6d81(0x272)]['write'](_0x4d2b78[_0x5d6d81(0x20d)][_0x5d6d81(0x209)](0x20)+'\x20\x20'+_0x4d2b78['displayName']+'\x0a');});}async function en(_0x10dbaf){const _0x4c07a3=_0x1064c6;_0x10dbaf[_0x4c07a3(0x26d)]===_0x4c07a3(0x1fc)&&(console[_0x4c07a3(0x225)](_0x4c07a3(0x334)),process[_0x4c07a3(0x29f)](0x2));let _0x452559=$(_0x13d31f()),_0x3b1ce4=_0x10dbaf[_0x4c07a3(0x23b)];if(_0x10dbaf[_0x4c07a3(0x26d)]){let _0x2745f2=_0x10dbaf[_0x4c07a3(0x26d)];await _0x226ab2({'env':_0x2745f2,'tenant':_0x10dbaf[_0x4c07a3(0x1cf)]??C(_0x452559,_0x2e0246[_0x2745f2]),'skipEnvCheck':_0x3b1ce4});return;}let _0x3a974e=_0x10dbaf[_0x4c07a3(0x347)]??ce();if(_0x3a974e){await _0x226ab2({'baseUrl':_0x3a974e,'tenant':_0x10dbaf['tenant']??C(_0x452559,_0x3a974e),'skipEnvCheck':_0x3b1ce4});return;}if(_0x452559?.[_0x4c07a3(0x28d)]){await _0x226ab2({'baseUrl':_0x452559['baseUrl'],'tenant':_0x10dbaf[_0x4c07a3(0x1cf)]??_0x452559['tenantName'],'skipEnvCheck':_0x3b1ce4});return;}console[_0x4c07a3(0x225)]('First\x20login\x20requires\x20--env\x20or\x20--url.\x20Usage:\x20delegate-cli\x20login\x20--env\x20<alpha|staging|production>,\x20or\x20delegate-cli\x20login\x20--url\x20https://automationsuite.contoso.com'),process['exit'](0x2);}function C(_0x4836d2,_0x45b469){const _0x594381=_0x1064c6;return _0x4836d2?.[_0x594381(0x28d)]&&tn(_0x4836d2[_0x594381(0x28d)],_0x45b469)?_0x4836d2[_0x594381(0x33f)]:void 0x0;}function tn(_0x233cb3,_0x1b2d45){const _0x12ab9e=_0x1064c6;try{return new URL(_0x233cb3)[_0x12ab9e(0x248)]===new URL(_0x1b2d45)[_0x12ab9e(0x248)];}catch{return!0x1;}}async function nn(_0x41d9ea){const _0x476fdf=_0x1064c6;O()&&(console[_0x476fdf(0x225)](_0x476fdf(0x2ea)),process[_0x476fdf(0x29f)](0x2));let _0xd0c09f=await _0x79fab1();if(_0xd0c09f||(console[_0x476fdf(0x225)](on()),process[_0x476fdf(0x29f)](0x2)),_0x41d9ea[_0x476fdf(0x1c0)]()){let _0x6c1a47=await _0x3ea5e6(_0xd0c09f,_0x41d9ea);_0xc8841a(_0x6c1a47)||(console[_0x476fdf(0x225)]('Tenant\x20not\x20switched:\x20could\x20not\x20write\x20'+_0x13d31f()+';\x20the\x20saved\x20login\x20still\x20uses\x20'+_0xd0c09f['tenantName']+'.'),process[_0x476fdf(0x29f)](0x1)),console[_0x476fdf(0x1ee)](_0x476fdf(0x20f)+_0x6c1a47[_0x476fdf(0x33f)]+'\x20('+_0x6c1a47['tenantId']+')\x20—\x20saved\x20to\x20'+_0x13d31f());return;}sn(await _0x53c22b(_0xd0c09f),_0xd0c09f);}function on(){const _0x3ffaaf=_0x1064c6;if(_0x202272[_0x3ffaaf(0x331)](_0x13d31f()))return _0x3ffaaf(0x200);let _0x14be47=L();return $(_0x14be47)?_0x3ffaaf(0x357)+_0x14be47+',\x20whose\x20tenant\x20is\x20chosen\x20in\x20the\x20app.\x20Run\x20`delegate-cli\x20login\x20--env\x20<env>`\x20for\x20a\x20CLI\x20login\x20of\x20your\x20own.':_0x3ffaaf(0x210);}function sn(_0x5af569,_0x384707){const _0x59cb68=_0x1064c6;let _0x30f9a6=_0x5af569['map'](_0x55118d=>_0x55118d['id']===_0x384707['tenantId']?'*\x20'+_0x55118d[_0x59cb68(0x241)]+'\x20(current)':'\x20\x20'+_0x55118d[_0x59cb68(0x241)]);process[_0x59cb68(0x272)]['write'](_0x59cb68(0x2bd)+(_0x384707[_0x59cb68(0x21a)]??_0x384707[_0x59cb68(0x2e1)])+':\x0a'+_0x30f9a6['join']('\x0a')+'\x0a'),_0x5af569[_0x59cb68(0x2bb)]>0x1&&process[_0x59cb68(0x272)][_0x59cb68(0x279)](_0x59cb68(0x324));}function rn(_0x4ee457){const _0x2df4fc=_0x1064c6;return _0x4ee457?.[_0x2df4fc(0x1d1)]?.['status']===0x191||/401/[_0x2df4fc(0x1e7)](String(_0x4ee457?.[_0x2df4fc(0x1c7)]??''));}var d={'lastType':null,'quiet':!0x1},an=_0x4919d3=>{const _0x313f11=_0x1064c6;switch(_0x4919d3['type']){case _0x313f11(0x24b):_0x4919d3[_0x313f11(0x2b9)]&&_0x4919d3['sessionId']!==d[_0x313f11(0x2b9)]&&(process[_0x313f11(0x1f2)][_0x313f11(0x279)](_0x313f11(0x218)+_0x4919d3[_0x313f11(0x2b9)]+_0x313f11(0x230)+_0x4919d3[_0x313f11(0x2b9)]+')\x0a'),d[_0x313f11(0x2b9)]=_0x4919d3['sessionId']);break;case _0x313f11(0x2de):_0x4919d3[_0x313f11(0x2a9)]&&_0x4919d3[_0x313f11(0x2a9)]!==d['turnId']&&(d[_0x313f11(0x32d)]!==null&&process['stderr'][_0x313f11(0x279)]('\x0a'),process[_0x313f11(0x1f2)]['write']('Turn:\x20'+_0x4919d3[_0x313f11(0x2a9)]+_0x313f11(0x2e5)+_0x4919d3['sessionId']+_0x313f11(0x2f5)+_0x4919d3[_0x313f11(0x2a9)]+')\x0a'),d[_0x313f11(0x2a9)]=_0x4919d3[_0x313f11(0x2a9)],d[_0x313f11(0x32d)]=_0x313f11(0x2de));break;case _0x313f11(0x36e):_0x4919d3[_0x313f11(0x2a0)]&&!d[_0x313f11(0x1d2)]&&(d[_0x313f11(0x32d)]!==_0x313f11(0x36e)&&process[_0x313f11(0x1f2)]['write'](_0x313f11(0x2a2)),process[_0x313f11(0x1f2)][_0x313f11(0x279)](_0x4919d3[_0x313f11(0x2a0)]),d[_0x313f11(0x32d)]=_0x313f11(0x36e));break;case _0x313f11(0x371):d[_0x313f11(0x32d)]!==null&&process[_0x313f11(0x1f2)]['write']('\x0a'),process[_0x313f11(0x1f2)]['write'](_0x313f11(0x286)+(_0x4919d3[_0x313f11(0x2f2)]??_0x313f11(0x1be))+'\x0a'),d['lastType']=_0x313f11(0x371);break;case _0x313f11(0x1c7):_0x4919d3['content']&&(d[_0x313f11(0x32d)]!==_0x313f11(0x1c7)&&d[_0x313f11(0x32d)]!==null&&process['stdout'][_0x313f11(0x279)]('\x0a'),process['stdout'][_0x313f11(0x279)](_0x4919d3[_0x313f11(0x2a0)]),d[_0x313f11(0x32d)]='message');break;case _0x313f11(0x225):d[_0x313f11(0x32d)]!==null&&process[_0x313f11(0x1f2)][_0x313f11(0x279)]('\x0a'),process[_0x313f11(0x1f2)][_0x313f11(0x279)]('✗\x20'+(_0x4919d3[_0x313f11(0x225)]??_0x313f11(0x225))+'\x0a'),d[_0x313f11(0x32d)]=_0x313f11(0x225);break;case _0x313f11(0x20b):(d[_0x313f11(0x32d)]===_0x313f11(0x1c7)||d[_0x313f11(0x32d)]===_0x313f11(0x36e))&&process[_0x313f11(0x272)]['write']('\x0a'),process[_0x313f11(0x1f2)][_0x313f11(0x279)](_0x313f11(0x302)),d['lastType']='done';break;}};function Z(_0x3f2217,_0x5189f5,_0x3fb662){const _0x54ace7=_0x1064c6;let _0x49161c=_0x3f2217[_0x54ace7(0x270)]||process.env.MODEL;return{'backendUrl':_0x3fb662,'auth':_0x5189f5,'enableComputerUse':!_0x3f2217[_0x54ace7(0x27d)]&&!_0x3f2217[_0x54ace7(0x30d)],'autoSpawnInterop':!_0x3f2217[_0x54ace7(0x27d)],'enableConnections':!_0x3f2217[_0x54ace7(0x32b)],'enableSecurity':!_0x3f2217[_0x54ace7(0x333)],'keepInteropAlive':_0x3f2217[_0x54ace7(0x251)],..._0x3f2217['noMemory']?{'enableMemory':!0x1}:{},..._0x3f2217[_0x54ace7(0x2ba)]?{'enableTaskAutomation':!0x0}:{},..._0x3f2217[_0x54ace7(0x308)][_0x54ace7(0x2bb)]>0x0?{'preloadSkills':_0x3f2217[_0x54ace7(0x308)]}:{},..._0x49161c?{'model':_0x49161c}:{},..._0x3f2217['projectId']?{'projectId':_0x3f2217[_0x54ace7(0x1df)]}:{},..._0x3f2217[_0x54ace7(0x1f6)]?{'workingDirectory':_0x3f2217[_0x54ace7(0x1f6)]}:{},..._0x3f2217['bundledSkillsPath']?{'bundledSkillsPath':_0x3f2217[_0x54ace7(0x1fa)]}:{},..._0x3f2217[_0x54ace7(0x21b)]?{'effort':_0x3f2217[_0x54ace7(0x21b)]}:{},..._0x3f2217[_0x54ace7(0x2b9)]?{'sessionId':_0x3f2217[_0x54ace7(0x2b9)]}:{},..._0x3f2217['verbose']?{'verbose':!0x0}:{}};}async function ln(_0x53eb05){const _0x4d0207=_0x1064c6;let _0x224b48=_0x53eb05[_0x4d0207(0x33b)]!==_0x4d0207(0x348),_0x3a40d7=_0x53eb05[_0x4d0207(0x1b5)]===void 0x0?null:ue(_0x53eb05['jsonSchemaPath'],_0x4d0207(0x254)),_0x4f9fd1=!_0x224b48&&!_0x3a40d7&&!_0x53eb05[_0x4d0207(0x34a)]&&_0x53eb05[_0x4d0207(0x280)]!=='-'&&!!process[_0x4d0207(0x2e8)][_0x4d0207(0x2cb)]&&!!process['stdout'][_0x4d0207(0x2cb)],_0x8bfb52=_0x4f9fd1?_0x53eb05[_0x4d0207(0x280)][_0x4d0207(0x1c0)]():await I(_0x53eb05[_0x4d0207(0x280)],process['stdin']);if(!_0x4f9fd1&&!_0x8bfb52&&(console[_0x4d0207(0x225)](_0x4d0207(0x2bf)),process[_0x4d0207(0x29f)](0x2)),!_0x224b48){await ee(_0x53eb05,_0x8bfb52,_0x4f9fd1,null,_0x3a40d7);return;}let _0x2dc4f3=!0x1,_0x157ef4=_0x13be49=>{const _0x45a12c=_0x4d0207;_0x2dc4f3=!0x0,S(_0x4cdc57(_0x13be49)),(_0x13be49[_0x45a12c(0x1cd)]||_0x13be49[_0x45a12c(0x35e)])&&(process[_0x45a12c(0x31b)]=0x1);},_0x18b3dc=Date[_0x4d0207(0x368)]();try{await ee(_0x53eb05,_0x8bfb52,!0x1,_0x157ef4,_0x3a40d7);}catch(_0x1d8733){if(_0x2dc4f3)throw _0x1d8733;process[_0x4d0207(0x1f2)][_0x4d0207(0x279)]((_0x1d8733 instanceof Error?_0x1d8733['stack']??_0x1d8733[_0x4d0207(0x1c7)]:String(_0x1d8733))+'\x0a'),_0x157ef4(new _0x4f3997(_0x18b3dc)[_0x4d0207(0x2f9)]({'endedAtMs':Date[_0x4d0207(0x368)](),'usage':[],'error':_0x1d8733}));}}async function ee(_0x15a1ab,_0x547dca,_0x1205d8,_0x26c1ed,_0x5ad6f9){const _0x202662=_0x1064c6;d={'lastType':null,'quiet':_0x15a1ab['quiet']};let _0x3ddeaf=new Set(),_0x42c928=_0x379a88=>{const _0x577b12=_0x7a81;(!_0x26c1ed||_0x379a88['type']===_0x577b12(0x24b)||_0x379a88['type']==='turn_start')&&an(_0x379a88);for(let _0x1eeeee of _0x3ddeaf)_0x1eeeee(_0x379a88);},_0x2ee574=await P(),_0x3bac70=new _0x1b8086();_0x3bac70[_0x202662(0x214)](_0x42c928);let _0x22edba=_0x311f1a(_0x15a1ab[_0x202662(0x26d)],_0x2ee574,_0x15a1ab['backendUrl']);F(_0x15a1ab[_0x202662(0x26d)],_0x15a1ab[_0x202662(0x212)],_0x22edba);let _0x3535e6=Z(_0x15a1ab,_0x2ee574,_0x22edba),_0x32b42e=!0x1,_0x571e71=!0x1,_0x1bb5f2,_0x2dea56=()=>_0x1bb5f2??=_0x3bac70[_0x202662(0x24f)](),_0x54adc3=()=>{const _0x2f2584=_0x202662;_0x571e71&&process['exit'](0x82),_0x571e71=!0x0,process[_0x2f2584(0x1f2)][_0x2f2584(0x279)](_0x2f2584(0x29e)),_0x32b42e&&_0x3bac70['cancel']()[_0x2f2584(0x313)](_0x333371=>console[_0x2f2584(0x225)](_0x333371))[_0x2f2584(0x26a)](_0x2dea56)['then'](()=>process['exit'](0x82),_0x3cf8af=>{const _0x13e645=_0x2f2584;console[_0x13e645(0x225)](_0x3cf8af),process['exit'](0x82);});};process['on'](_0x202662(0x2c5),_0x54adc3);let _0x3ad143=_0x15a1ab[_0x202662(0x2b7)],_0x204137=async _0x308ced=>{const _0x1fa206=_0x202662;let _0x43c65c=_0x3ad143;_0x3ad143=[];let _0xae0bbc=()=>_0x3bac70[_0x1fa206(0x33c)](_0x308ced,{'attachments':_0x43c65c});try{return await _0xae0bbc();}catch(_0x2e8484){if(_0x571e71||!rn(_0x2e8484)||!process['stdin'][_0x1fa206(0x2cb)]||_0x15a1ab[_0x1fa206(0x26d)]===_0x1fa206(0x1fc)||!(_0x15a1ab[_0x1fa206(0x26d)]||_0x2ee574['baseUrl']))throw _0x2e8484;process['stderr'][_0x1fa206(0x279)]('\x0a⚠️\x20\x20Auth\x20expired.\x20Opening\x20browser\x20to\x20re-login…\x0a');let _0x3d9514=_0x3bac70[_0x1fa206(0x2f0)]()??_0x15a1ab[_0x1fa206(0x2b9)],_0x149b8d=await _0x226ab2(_0x15a1ab[_0x1fa206(0x26d)]?{'env':_0x15a1ab['env'],'tenant':C(_0x2ee574,_0x2e0246[_0x15a1ab['env']]),'skipEnvCheck':!0x0}:{'baseUrl':_0x2ee574[_0x1fa206(0x28d)],'tenant':_0x2ee574[_0x1fa206(0x33f)],'skipEnvCheck':!0x0}),_0x13243c={'text':'','failed':!0x1,'sessionId':_0x3d9514};return _0x571e71||(_0x32b42e=!0x1,await _0x2dea56(),_0x571e71)?_0x13243c:(_0x3bac70=new _0x1b8086(),_0x1bb5f2=void 0x0,_0x3bac70[_0x1fa206(0x214)](_0x42c928),_0x2ee574=_0x149b8d,await _0x3bac70[_0x1fa206(0x220)]({...Z(_0x15a1ab,_0x2ee574,_0x22edba),..._0x3d9514?{'sessionId':_0x3d9514}:{}}),_0x32b42e=!0x0,_0x571e71?_0x13243c:_0xae0bbc());}};try{if(await _0x3bac70[_0x202662(0x220)](_0x3535e6),_0x32b42e=!0x0,_0x571e71)return;if(_0x1205d8)await un({'prompt':_0x547dca,'sendMessage':_0x204137,'onSigint':_0x54adc3});else{if(_0x26c1ed||_0x5ad6f9){let _0x174baf=_0x15a1ab['outputFormat']===_0x202662(0x2b1)?_0x433bcc=>S(_0x51057c(_0x433bcc)):()=>{},_0x3fe501=await _0x5a82a5({'onEvent':_0x44ffa6=>(_0x3ddeaf['add'](_0x44ffa6),()=>{const _0x5c8822=_0x202662;_0x3ddeaf[_0x5c8822(0x266)](_0x44ffa6);}),'sendMessage':_0x3c856a=>_0x204137(_0x3c856a),'getSessionId':()=>_0x3bac70['getSessionId'](),'getTurnUsageHistory':_0x408db7=>_0x3bac70['getTurnUsageHistory'](_0x408db7),'complete':_0x291b2a=>_0x3bac70[_0x202662(0x256)](_0x291b2a)},_0x547dca,void 0x0,_0x174baf,_0x5ad6f9?{'outputSchema':_0x5ad6f9}:void 0x0);_0x26c1ed?_0x26c1ed(_0x3fe501):cn(_0x3fe501);}else await _0x204137(_0x547dca);}}catch(_0x14b868){if(!_0x571e71)throw _0x14b868;}finally{try{await _0x2dea56();}finally{process[_0x202662(0x22b)](_0x202662(0x2c5),_0x54adc3),_0x571e71&&(process[_0x202662(0x31b)]=0x82);}}}function cn(_0x4ccb4b){const _0x3b77b4=_0x1064c6;_0x4ccb4b['structuredError']?(console[_0x3b77b4(0x225)](_0x3b77b4(0x26e)+_0x4ccb4b[_0x3b77b4(0x35e)][_0x3b77b4(0x1c7)]),process[_0x3b77b4(0x31b)]=0x1):_0x4ccb4b[_0x3b77b4(0x1cd)]?(console[_0x3b77b4(0x225)](_0x3b77b4(0x2b8)+_0x4ccb4b[_0x3b77b4(0x225)]+').'),process[_0x3b77b4(0x31b)]=0x1):process[_0x3b77b4(0x272)][_0x3b77b4(0x279)](JSON[_0x3b77b4(0x234)](_0x4ccb4b['structured'],null,0x2)+'\x0a');}function dn(_0x4ad34c,_0x3aec7){const _0x1aecbc=_0x1064c6;let _0x4a6082=process[_0x1aecbc(0x272)][_0x1aecbc(0x279)][_0x1aecbc(0x206)](process['stdout']),_0x45f95f=!0x1;return process[_0x1aecbc(0x272)][_0x1aecbc(0x279)]=(..._0x2837ea)=>{const _0x1d7649=_0x1aecbc;if(!_0x45f95f)return _0x4a6082(..._0x2837ea);_0x4e47cb(_0x3aec7,0x0),_0x1851c1(_0x3aec7,0x0);let _0x338210=_0x4a6082(..._0x2837ea);return _0x4ad34c[_0x1d7649(0x280)](!0x0),_0x338210;},{'show':()=>{const _0x4efe72=_0x1aecbc;_0x45f95f=!0x0,_0x4ad34c[_0x4efe72(0x280)]();},'hide':()=>{_0x45f95f=!0x1;},'restore':()=>{const _0x12c904=_0x1aecbc;_0x45f95f=!0x1,process[_0x12c904(0x272)][_0x12c904(0x279)]=_0x4a6082;}};}async function un({prompt:_0x3e164b,sendMessage:_0x5362bc,onSigint:_0x3c38ed}){const _0x4208a2=_0x1064c6;let _0x35b067=_0x3550ee({'input':process[_0x4208a2(0x2e8)],'output':process[_0x4208a2(0x1f2)],'terminal':!0x0,'prompt':_0x4208a2(0x219)}),_0x3ffa4e=dn(_0x35b067,process[_0x4208a2(0x1f2)]),_0x24aaa6=_0x35b067[Symbol[_0x4208a2(0x2eb)]](),_0x1b4bf9=!0x1;_0x35b067['once']('close',()=>{_0x1b4bf9=!0x0,_0x3ffa4e['hide']();});let _0x4d67b0=!0x1,_0x56cf58=()=>{const _0x1d7bc9=_0x4208a2;_0x4d67b0=!0x0,_0x35b067[_0x1d7bc9(0x1c8)](),_0x3c38ed();};_0x35b067['on'](_0x4208a2(0x2c5),_0x56cf58),process[_0x4208a2(0x1f2)][_0x4208a2(0x279)](_0x4208a2(0x31a));try{if(_0x3e164b&&await _0x5362bc(_0x3e164b),_0x4d67b0)return;_0x1b4bf9||_0x3ffa4e[_0x4208a2(0x261)]();for await(let _0x53de91 of _0x24aaa6){if(_0x3ffa4e[_0x4208a2(0x1fd)](),_0x4d67b0)break;let _0x45bbe5=_0x53de91[_0x4208a2(0x1c0)]();if(_0x45bbe5===_0x4208a2(0x2f6))break;_0x45bbe5&&await _0x5362bc(_0x45bbe5),_0x1b4bf9||_0x3ffa4e[_0x4208a2(0x261)]();}}finally{_0x3ffa4e[_0x4208a2(0x28b)](),_0x35b067[_0x4208a2(0x22b)](_0x4208a2(0x2c5),_0x56cf58),_0x35b067[_0x4208a2(0x1c8)]();}}async function pn(){const _0x44bf43=_0x1064c6;let _0x295caa=ht(process[_0x44bf43(0x2e3)][_0x44bf43(0x2db)](0x2));if(_0x295caa[_0x44bf43(0x33b)]===_0x44bf43(0x348)){await te(_0x295caa);return;}let _0x4099e7=gt();try{await te(_0x295caa);}finally{_0x4099e7();}}async function te(_0x22c753){const _0x4308da=_0x1064c6;if(_0x22c753[_0x4308da(0x275)]){wt();return;}if(_0x22c753[_0x4308da(0x1c4)]){console[_0x4308da(0x1ee)](yt());return;}if(_0x22c753[_0x4308da(0x1ed)]===_0x4308da(0x232)){await en(_0x22c753);return;}if(_0x22c753[_0x4308da(0x1ed)]==='tenant'){await nn(_0x22c753[_0x4308da(0x280)]);return;}if(_0x22c753['subcommand']===_0x4308da(0x350)){await vt();return;}if(_0x22c753[_0x4308da(0x1ed)]===_0x4308da(0x21c)){await At(_0x22c753);return;}if(_0x22c753['subcommand']===_0x4308da(0x300)){await Tt(_0x22c753);return;}if(_0x22c753[_0x4308da(0x1ed)]==='check'){await Lt(_0x22c753);return;}if(_0x22c753[_0x4308da(0x1ed)]===_0x4308da(0x29b)){await Dt(_0x22c753);return;}if(_0x22c753[_0x4308da(0x1ed)]==='usage'){await Ft(_0x22c753);return;}if(_0x22c753[_0x4308da(0x1ed)]===_0x4308da(0x228)||_0x22c753[_0x4308da(0x1ed)]==='rerank'||_0x22c753['subcommand']===_0x4308da(0x329)){await Ht(_0x22c753,_0x22c753['subcommand']);return;}if(_0x22c753[_0x4308da(0x1ed)]==='complete'){await Jt(_0x22c753);return;}if(_0x22c753[_0x4308da(0x1ed)]===_0x4308da(0x359)){await zt(_0x22c753);return;}if(_0x22c753['subcommand']===_0x4308da(0x274)){await Yt(_0x22c753);return;}if(_0x22c753[_0x4308da(0x1ed)]==='org-users'){await Zt(_0x22c753);return;}if(_0x22c753['subcommand']===_0x4308da(0x32e)){await _0x5abba7(_0x22c753[_0x4308da(0x280)],{'runnerUrl':_0x22c753['runnerUrl'],'backendUrl':_0x22c753['backendUrl'],'interopPath':_0x22c753[_0x4308da(0x2fe)],'workerId':_0x22c753[_0x4308da(0x35a)]});return;}if(_0x22c753[_0x4308da(0x362)]){await $t();return;}await ln(_0x22c753);}var mn=process.env.NODE_ENV==='test'||!!process.env.JEST_WORKER_ID;mn||pn()['catch'](_0x4853b4=>{const _0x366dc0=_0x1064c6;console[_0x366dc0(0x225)](_0x4853b4[_0x366dc0(0x2c8)]||_0x4853b4['message']||_0x4853b4),process[_0x366dc0(0x29f)](0x1);});export{ft as CARTOGRAPHER_SKILLS,G as EFFORT_TIERS,kt as IMPLICIT_STDIN_IDLE_MS,Z as buildInitOptions,pn as main,ht as parseArgs,yt as readCliVersion,I as resolvePrompt,gt as routeStdoutToStderr,l as writeCommandResult};
2
+ const _0x2e9e2a=_0xced2;(function(_0x48cec9,_0x59c0dc){const _0xf70940=_0xced2,_0x4c89ea=_0x48cec9();while(!![]){try{const _0xe4d9dd=parseInt(_0xf70940(0x2ca))/0x1*(parseInt(_0xf70940(0x19b))/0x2)+parseInt(_0xf70940(0x275))/0x3+parseInt(_0xf70940(0x26e))/0x4+-parseInt(_0xf70940(0x1f2))/0x5*(-parseInt(_0xf70940(0x30f))/0x6)+-parseInt(_0xf70940(0x2f3))/0x7*(-parseInt(_0xf70940(0x1ca))/0x8)+-parseInt(_0xf70940(0x1fa))/0x9+-parseInt(_0xf70940(0x19d))/0xa;if(_0xe4d9dd===_0x59c0dc)break;else _0x4c89ea['push'](_0x4c89ea['shift']());}catch(_0x4b27f4){_0x4c89ea['push'](_0x4c89ea['shift']());}}}(_0x3c87,0x2df87));const __dirname=import.meta.dirname;import _0x59b7ea from'fs';function _0x3c87(){const _0x1f5d4b=['show','delegations\x20dismiss\x20<delegation-id>','delete','\x20into\x20','\x27\x20is\x20empty.','slice','setPrompt','tenantName','21Eyhrtz','abort','result','No\x20answers\x20awaiting\x20acceptance.\x0a','\x20sessions\x20on\x20','log','once','Already\x20answered','toISOString','parentSessionId','--effort','Auth\x20comes\x20from\x20AUTH_TOKEN/TENANT_ID/ORG_ID\x20—\x20set\x20TENANT_ID\x20and\x20TENANT_SLUG\x20to\x20change\x20the\x20tenant.',':\x20bucket\x20number\x20(Enter\x20to\x20leave\x20out):\x20','check','date','\x20(type\x20your\x20own)','--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`delegate-cli\x20sessions\x20[list]`\x20only.','--working-dir','\x20--turn\x20','map','questions','--days\x20applies\x20to\x20`delegate-cli\x20usage\x20activity|daily`;\x20the\x20summary\x20covers\x20the\x20current\x20month.','a\x20session\x20id','Invalid\x20--effort:\x20',',\x20got\x20',';\x20the\x20saved\x20login\x20still\x20uses\x20','mode','transcribe','88962heFnVO','\x20\x20\x20\x20','\x20not\x20found.','--url','.\x20Share:\x20','Deployment:\x20\x20\x20','AUTH_TOKEN_FILE\x20\x27','>.\x0a','intro','cancelled','Licensing:\x20\x20\x20\x20no\x20licensing\x20quota\x20applies','options','lastType','limit','unknown','--cartographer','--to','exitCode','contextSummary','UiPath\x20Cloud','startsWith','Claimed\x20from\x20delegation\x20','file','\x20active\x20days','limit_enabled','join','tenant','Licensing:\x20\x20\x20\x20','[saved\x20login]\x20Backend\x20URL:\x20','session_consumed_pu','resolve','\x20requires\x20','Could\x20not\x20check\x20BYO\x20model\x20warnings:\x20','task','cartographer','Session\x20\x20\x20\x20\x20\x20\x20','noComputerUse','Unknown\x20sessions\x20action:\x20','description','list','status','No\x20delegations.\x0a','Enter\x20a\x20number\x20','\x20<title>','Unknown\x20flag:\x20','page','\x20(Enter\x20to\x20skip):\x20','Unknown\x20usage\x20view:\x20','.\x20Use\x20','--env','catch','\x20to\x20','\x20\x20TITLE\x0a','a\x20project\x20id','--headless','No\x20auth\x20found.\x20Set\x20AUTH_TOKEN\x20(or\x20AUTH_TOKEN_FILE)/TENANT_ID/ORG_ID\x20env\x20vars,\x20or\x20run\x20`delegate-cli\x20login\x20--env\x20<alpha|staging|production>`\x20(or\x20`--url\x20<deployment-url>`\x20for\x20Automation\x20Suite)\x20first.','Date\x20\x20\x20\x20\x20\x20\x20\x20Token\x20units\x20\x20Prompt\x20tokens\x20\x20Completion\x20tokens','pendingResults','transcribe:\x20cannot\x20read\x20','prompt','Already\x20accepted','\x22.\x0a','models','.\x20Use:\x20','cleanup','shift','orgLogicalName','\x20(cancel\x20with:\x20delegate-cli\x20sessions\x20cancel\x20','\x20token\x20units)','\x20or\x20your\x20own\x20answer','--project','Title\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20(stdin\x20was\x20empty)','name','days','keys','off','usage','Switch\x20with:\x20delegate-cli\x20tenant\x20<name>\x0a','):\x0a\x0a','probability','No\x20CLI\x20login\x20to\x20switch:\x20the\x20CLI\x20is\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20','toUpperCase','max','--quiet','fields','parse','deleted','subcommand','):\x20','quiet','--session\x20applies\x20to\x20the\x20`delegate-cli\x20usage`\x20summary\x20only.',']\x20Backend\x20URL:\x20','total_completion_tokens','\x20<id>','refused','total_token_units','Turn:\x20','push','padEnd','assignedUser','More:\x20delegate-cli\x20sessions\x20--page\x20','onEvent','end','\x20—\x20sign\x20out\x20in\x20the\x20Delegate\x20app\x20to\x20clear\x20that.','First\x20login\x20requires\x20--env\x20or\x20--url.\x20Usage:\x20delegate-cli\x20login\x20--env\x20<alpha|staging|production>,\x20or\x20delegate-cli\x20login\x20--url\x20https://automationsuite.contoso.com','taskAutomation','Session\x20','headless','delegations\x20complete\x20<delegation-id>\x20\x22<answer>\x22|-','--attach','models_breakdown','daily_usage','self-hosted\x20(Automation\x20Suite\x20/\x20Dedicated)','Invalid\x20--project:\x20\x22','stream-json','accessToken','Usage:\x20delegate-cli\x20','\x20applies\x20to\x20prompts\x20and\x20to\x20these\x20commands\x20only:\x20','\x20must\x20be\x20a\x20whole\x20number\x20','high','Deleted\x20session\x20','158TrabVJ','Tenant:\x20\x20\x20\x20\x20\x20\x20','1486490BVVxlb','Usage:\x20delegate-cli\x20sessions\x20','total_quota_pu','\x20\x20from\x20','host','),\x20','every','Numbers,\x20separated\x20by\x20commas\x20(Enter\x20to\x20skip):\x20','isDesktopFallback','--output-format\x20','jsonSchemaPath','✓\x20Done\x0a','isError','package.json','ID\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','label','complete','length','removeEventListener','some','split','whoami','confidence','userId','a\x20file\x20path','--turn','monthly_spend_usd','--page','erase','the\x20JSON\x20schema','\x20\x20TASK\x0a','.aria','sessionId','verbose','Tenants\x20of\x20','Organization:\x20','kind','\x22.\x20Use\x20a\x20single\x20folder-safe\x20segment\x20such\x20as\x20invoice-approval\x20(letters,\x20digits,\x20spaces,\x20\x22_\x22,\x20\x22-\x22,\x20\x22.\x22,\x20parentheses;\x20at\x20most\x2064\x20characters;\x20not\x20starting\x20with\x20\x22.\x22\x20or\x20ending\x20with\x20\x22.\x22\x20or\x20a\x20space).','dismiss','extra_pool_consumed_pu','--session','workingDirectory','interopPath','--to\x20and\x20--summary\x20apply\x20to\x20`delegate-cli\x20delegations\x20create`\x20only.','%\x20of\x20','336584cORVFj','\x20<file.json>,\x20or\x20-\x20to\x20read\x20stdin.','delegations\x20claim\x20<delegation-id|delegate://delegation/…>','resume','toFixed','turn_start','\x20delegation\x20','delegations\x20cancel\x20<delegation-id>','Enter\x20sends\x20a\x20message.\x20/exit\x20or\x20EOF\x20exits;\x20Ctrl+C\x20stops\x20and\x20exits.\x0a','org-users','alpha','rename','\x20days.\x0a','unit','Owner\x20\x20\x20\x20\x20\x20\x20\x20\x20','signal','session_start','delegationId','alreadyAccepted','toolName','assignedUserEmail','--days','\x20(estimated\x20$','backendUrl','\x20not\x20found,\x20has\x20no\x20messages','\x20(resume\x20with\x20--session\x20','type','--interop','Task\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','close','delegations\x20accept\x20<delegation-id>','buckets','noMemory','structured','From\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','entries','evaluate','keepAlive','forEach','tool','15FasjUM','stdout','code','No\x20sessions\x20on\x20page\x20','total_tokens','Continue\x20it\x20with:\x20delegate-cli\x20--session\x20','--print','--output-format','2673738NhFspd','The\x20turn\x20was\x20cancelled.','\x20token\x20units','answers','--include-subagents','Cancel\x20requested\x20for\x20turn\x20','cwd','--verbose','claim','Interop\x20stopped\x20(if\x20it\x20was\x20running).','\x20\x20(input\x20#','aborted','--model','--skip-env-check\x20applies\x20to\x20`delegate-cli\x20login`\x20only.','\x20this\x20month','--to,\x20--summary\x20and\x20--session\x20apply\x20to\x20`delegate-cli\x20delegations\x20create`\x20only.','\x20prompt,\x20','delegations\x20pending\x20<session-id>','sourceTitle','--turn\x20applies\x20to\x20`delegate-cli\x20sessions\x20cancel`\x20only.','toString','total_cost_usd','There\x20is\x20no\x20terminal\x20input\x20to\x20answer\x20from.','utf-8','cancel','staging','delegateTo','model','isSafeInteger','\x20of\x20a\x20$','--help','initialize','total_prompt_tokens','print',')\x20—\x20saved\x20to\x20','UPDATED','header','origin','\x27\x20cannot\x20be\x20read:\x20',').\x0a','optional','--skip-env-check','title','No\x20models\x20available\x20for\x20this\x20product/tenant.\x0a','Unknown\x20delegations\x20action:\x20','You>\x20','pause','\x0aAvailable\x20models\x20(','readLine','all','getTurnUsageHistory','xhigh','bundledSkillsPath','pending','\x20in\x20steps\x20of\x20','expiresAt','url','--no-security','Number','Token:\x20\x20\x20\x20\x20\x20\x20\x20expires\x20','sendMessage','1\x20or\x20more','estimated_cost_usd','active_days','trim','a\x20skill\x20name','email','pct_used','Enter\x20numbers\x20from\x201\x20to\x20','\x20(resets\x20','\x20(Delegate\x20desktop\x20app\x20fallback)','the\x20request','period_days','argv','Organization\x20\x20','Usage:\x20delegate-cli\x20sessions\x20fork\x20<id>\x20[<message-id>]','object','completion_tokens','stop','Cost:\x20\x20\x20$','No\x20CLI\x20login\x20found.\x20Note:\x20the\x20CLI\x20is\x20currently\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20','a\x20briefing\x20text','production','input','hide','items','unknown\x20slug','stringify','verdict','replace','test','then','\x20\x20\x20\x20BYO\x20warning:\x20','Usage:\x20delegate-cli\x20org-users\x20<name\x20or\x20email\x20prefix>','\x0a🤔\x20','Enter\x20one\x20number\x20from\x201\x20to\x20','\x20(optional)','choice','multiSelect','low','/exit','help','existsSync','filter','skip','operands','\x20min)','string','No\x20usage\x20in\x20the\x20last\x20','--task-automation\x20applies\x20to\x20prompts\x20only.','Missing\x20prompt.\x20Pass\x20it\x20as\x20an\x20argument,\x20pipe\x20it\x20via\x20stdin,\x20or\x20run\x20`delegate-cli\x20--help`.','padStart','No\x20CLI\x20login\x20found\x20—\x20nothing\x20to\x20remove.','exit','--tenant\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Switch\x20tenants\x20with:\x20delegate-cli\x20tenant\x20<name>','skipEnvCheck','827480HWknRF','token_units','endQuestions','localhost','\x20of\x20session\x20','delegations','UIPATH_BASE_URL\x20is\x20unusable.\x20','715569YpRNoD','Tenant:\x20','write','delegation','🔧\x20','delegate-cli','version','stdin','isTTY','default','\x20(confidence\x20','Tenant\x20not\x20switched:\x20could\x20not\x20write\x20','tenantId','Your\x20answer,\x20as\x20text\x20(the\x20CLI\x20attaches\x20no\x20files;\x20Enter\x20to\x20skip):\x20','typed','includes','--summary','tool_call','model_version','--backend','rmSync','\x0aStopping…\x20(Ctrl+C\x20again\x20to\x20force\x20exit)\x0a','--cleanup','findIndex','The\x20saved\x20CLI\x20login\x20could\x20not\x20be\x20refreshed.\x20Run\x20`delegate-cli\x20login`\x20again.','\x20\x22<prompt>\x22\x0a','a\x20colleague','message','Session:\x20\x20\x20\x20\x20\x20','tokenExpiresAt','runnerUrl','now','score\x20','--tenant\x20requires\x20a\x20tenant\x20name.','organizationId','Removed\x20','deployment','accept','step','--no-computer-use','verify','displayName','create','finish','Cartographer:\x20','attachments','--runner-url','auth.json','\x20(current)','error','\x20tokens\x0a','includeSubAgents','structuredError','spawn','preloadSkills','from\x20','Answered','Session:\x20','readFileSync','--no-connections','sessions','--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`delegate-cli\x20sessions`\x20only.','Use:\x20delegate-cli\x20delegations\x20','isArray','SIGINT','rerank','\x20completion','\x20|\x20','\x20\x20(sub-agent\x20of\x20','auth','dismissed','.\x20Use\x20alpha\x20|\x20staging\x20|\x20production\x20|\x20localhost.','score','done','Invalid\x20--output-format:\x20','outputFormat','\x20from\x20','login','--no-memory','text','content','lockReason','noConnections','stderr','\x20PU\x20beyond\x20quota','227TfRKOR','--limit','noSecurity','a\x20directory\x20path','a\x20deployment\x20URL,\x20e.g.\x20https://automationsuite.contoso.com','from',',\x20or\x20holds\x20no\x20message\x20','projectId','Usage:\x20delegate-cli\x20sessions\x20[list]\x20[--page\x20N]\x20[--limit\x20N]\x20[--include-subagents]','Last\x20','rubric_version','.\x20Use\x20`delegate-cli\x20usage`,\x20`usage\x20activity`\x20or\x20`usage\x20daily`.','monthly_limit_usd','No\x20CLI\x20login\x20found.\x20Run\x20`delegate-cli\x20login\x20--env\x20<alpha|staging|production>`\x20first.','environment\x20variables\x20(AUTH_TOKEN/TENANT_ID/ORG_ID)','thinking','addEventListener','Usage:\x20delegate-cli\x20sessions\x20cancel\x20<session-id>\x20--turn\x20<turn-id>','logout','min','Token:\x20\x20\x20\x20\x20\x20\x20\x20expired\x20','getSessionId','\x20in\x20progress\x20on\x20session\x20','sourceUserEmail','concat','turnId','complete\x20needs\x20--json-schema\x20<file>:\x20delegate-cli\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22.','a\x20format\x20(','delegations\x20create\x20--session\x20<id>\x20[--to\x20<email|name>]\x20[--summary\x20<text>]\x20\x22<task>\x22|-','Your\x20answer\x20(Enter\x20to\x20skip):\x20','total_sessions','baseUrl','env'];_0x3c87=function(){return _0x1f5d4b;};return _0x3c87();}import _0x15228c from'path';import{clearLine as _0x24795e,createInterface as _0x2757a9,cursorTo as _0xee09a1}from'node:readline';import{isOnStepGrid as _0x561420}from'@uipath/delegate-sdk';var _='userinput';function S(_0x59b7ca){const _0x4bef2e=_0xced2;return _0x59b7ca[_0x4bef2e(0x253)](/\u001b\[[0-?]*[ -/]*[@-~]|\u001b\][^\u0007\u001b]*(\u0007|\u001b\\)?|\u001b./g,'')[_0x4bef2e(0x253)](/[\u0000-\u0008\u000b-\u001f\u007f-\u009f]/g,'');}function V(_0x1130a4){const _0x1a33e0=_0xced2;return S(_0x1130a4[_0x1a33e0(0x1ac)]??(_0x1130a4[_0x1a33e0(0x1c1)]===_?'Something\x20else':_0x1130a4['id']));}function Te(_0x2d2cda,_0x3d3930,_0x5ebd94){const _0x53d86a=_0xced2;let _0xa32e6d=[''+(_0x5ebd94>0x1?'['+_0x3d3930+'/'+_0x5ebd94+']\x20':'')+S(_0x2d2cda[_0x53d86a(0x21e)])+(_0x2d2cda[_0x53d86a(0x222)]?_0x53d86a(0x25a):''),S(_0x2d2cda['question'])];return _0x2d2cda[_0x53d86a(0x1e4)]===_0x53d86a(0x2c4)&&_0x2d2cda[_0x53d86a(0x31a)]['forEach']((_0x4ac9a3,_0x72ac07)=>{const _0x3db811=_0x53d86a;let _0x1d54ee=_0x4ac9a3[_0x3db811(0x1c1)]===_?_0x3db811(0x302):'',_0x58efae=_0x4ac9a3[_0x3db811(0x335)]?'\x20-\x20'+S(_0x4ac9a3[_0x3db811(0x335)]):'';_0xa32e6d[_0x3db811(0x371)]('\x20\x20'+(_0x72ac07+0x1)+'.\x20'+V(_0x4ac9a3)+_0x1d54ee+_0x58efae);}),_0xa32e6d[_0x53d86a(0x328)]('\x0a');}function X(_0x11ffbc,_0x239733){const _0x3a13d5=_0xced2;let _0x484e62=_0x11ffbc[_0x3a13d5(0x1b1)](/[\s,]+/)['filter'](Boolean);if(_0x484e62['length']===0x0)return null;let _0x225cf5=_0x484e62[_0x3a13d5(0x306)](_0x1849dd=>/^\d+$/[_0x3a13d5(0x254)](_0x1849dd)?Number(_0x1849dd):NaN);return _0x225cf5[_0x3a13d5(0x1b0)](_0xf9d5d3=>!Number['isInteger'](_0xf9d5d3)||_0xf9d5d3<0x1||_0xf9d5d3>_0x239733)?null:[...new Set(_0x225cf5)][_0x3a13d5(0x306)](_0x3f8080=>_0x3f8080-0x1);}function xe(_0x2c7ab1){const _0x52f0ba=_0xced2;return typeof _0x2c7ab1=='object'&&_0x2c7ab1!==null&&_0x52f0ba(0x36e)in _0x2c7ab1;}async function R(_0x1cef40,_0x371d3b,_0x29d1ed,_0x3d5933){const _0xf08e47=_0xced2;for(;;){let _0x189890=(await _0x1cef40(_0x371d3b))[_0xf08e47(0x23a)]();if(_0x189890==='')return;let _0x4921e9=_0x3d5933(_0x189890);if(!xe(_0x4921e9))return _0x4921e9;_0x29d1ed(_0x4921e9[_0xf08e47(0x36e)]+'\x0a');}}async function De(_0x38ca32,_0x11a06a,_0x52acb1){const _0x31c33f=_0xced2;if(_0x38ca32[_0x31c33f(0x31a)][_0x31c33f(0x1ae)]===0x0||_0x38ca32[_0x31c33f(0x31a)][_0x31c33f(0x1a3)](_0x59c08d=>_0x59c08d['kind']===_)){let _0x2c19a5=(await _0x11a06a(_0x31c33f(0x2e7)))['trim']();return _0x2c19a5===''?void 0x0:{'text':_0x2c19a5};}let _0x276a74=_0x38ca32[_0x31c33f(0x31a)][_0x31c33f(0x28c)](_0x412b16=>_0x412b16['kind']===_),_0x12494d=_0x38ca32['multiSelect']?_0x31c33f(0x1a4):_0x31c33f(0x234)+(_0x276a74>=0x0?_0x31c33f(0x354):'')+_0x31c33f(0x33d),_0x3c35ed=await R(_0x11a06a,_0x12494d,_0x52acb1,_0x57ba20=>{const _0x5c1d0f=_0x31c33f;let _0x1c904e=X(_0x57ba20,_0x38ca32[_0x5c1d0f(0x31a)][_0x5c1d0f(0x1ae)]);return _0x1c904e&&(_0x38ca32[_0x5c1d0f(0x25c)]||_0x1c904e[_0x5c1d0f(0x1ae)]===0x1)?_0x1c904e:!_0x38ca32[_0x5c1d0f(0x25c)]&&_0x276a74>=0x0?{'typed':_0x57ba20}:{'refused':_0x38ca32['multiSelect']?_0x5c1d0f(0x23e)+_0x38ca32['options'][_0x5c1d0f(0x1ae)]+'.':_0x5c1d0f(0x259)+_0x38ca32[_0x5c1d0f(0x31a)][_0x5c1d0f(0x1ae)]+'.'};});if(_0x3c35ed===void 0x0)return;if(!Array[_0x31c33f(0x2b4)](_0x3c35ed))return{'text':_0x3c35ed[_0x31c33f(0x283)]};let _0x1a75d4=_0x3c35ed[_0x31c33f(0x306)](_0x53881a=>_0x38ca32['options'][_0x53881a]['id']),_0x3996e2=_0x1a75d4[_0x31c33f(0x284)](_)?await R(_0x11a06a,V(_0x38ca32[_0x31c33f(0x31a)][_0x276a74])+':\x20',_0x52acb1,_0x56f02b=>_0x56f02b):void 0x0;if(!(_0x1a75d4['includes'](_)&&_0x3996e2===void 0x0))return _0x38ca32[_0x31c33f(0x25c)]?{'optionIds':_0x1a75d4,..._0x3996e2!==void 0x0?{'text':_0x3996e2}:{}}:_0x3996e2!==void 0x0?{'text':_0x3996e2}:{'optionId':_0x1a75d4[0x0]};}async function Ue(_0x17244a,_0x55c5d0,_0x4a90f9){const _0xf94a7f=_0xced2;let _0xa75bc={};for(let _0x15e780 of _0x17244a[_0xf94a7f(0x364)]){let _0x5b1234=_0x15e780[_0xf94a7f(0x27e)]??_0x15e780[_0xf94a7f(0x2dd)],_0x5dbee0=_0x15e780[_0xf94a7f(0x29b)]??0x1,_0x1b10ab=_0x15e780[_0xf94a7f(0x1d7)]?'\x20'+S(_0x15e780[_0xf94a7f(0x1d7)]):'',_0x11c097=_0xf94a7f(0x2ac)+_0x15e780['min']+_0xf94a7f(0x342)+_0x15e780[_0xf94a7f(0x362)]+(_0x5dbee0!==0x1?_0xf94a7f(0x230)+_0x5dbee0:''),_0x577170=await R(_0x55c5d0,S(_0x15e780[_0xf94a7f(0x1ac)])+'\x20['+_0x15e780['min']+'-'+_0x15e780[_0xf94a7f(0x362)]+_0x1b10ab+']\x20(Enter\x20for\x20'+_0x5b1234+_0xf94a7f(0x368),_0x4a90f9,_0xffabeb=>{const _0x2a85fb=_0xf94a7f;let _0x490f3a=Number(_0xffabeb);return Number['isFinite'](_0x490f3a)&&_0x490f3a>=_0x15e780['min']&&_0x490f3a<=_0x15e780['max']&&_0x561420(_0x490f3a,_0x15e780[_0x2a85fb(0x2dd)],_0x5dbee0)?_0x490f3a:{'refused':_0x2a85fb(0x339)+_0x11c097+'.'};});_0xa75bc[_0x15e780['id']]=_0x577170??_0x5b1234;}return{'values':_0xa75bc};}async function Ne(_0x14fc45,_0x248539,_0x24db6){const _0x196944=_0xced2;_0x24db6(_0x14fc45[_0x196944(0x1e9)][_0x196944(0x306)]((_0x31c4c2,_0x5ac3c2)=>'\x20\x20'+(_0x5ac3c2+0x1)+'.\x20'+S(_0x31c4c2['label']))[_0x196944(0x328)]('\x0a')+'\x0a');let _0x4b6a08={};for(let _0x581343 of _0x14fc45[_0x196944(0x24f)]){let _0x1ae5dc=await R(_0x248539,S(_0x581343[_0x196944(0x1ac)])+_0x196944(0x2ff),_0x24db6,_0x29e5c5=>{const _0x110edc=_0x196944;let _0x194408=X(_0x29e5c5,_0x14fc45[_0x110edc(0x1e9)][_0x110edc(0x1ae)]);return _0x194408&&_0x194408[_0x110edc(0x1ae)]===0x1?_0x194408[0x0]:{'refused':_0x110edc(0x259)+_0x14fc45['buckets']['length']+'.'};});if(_0x1ae5dc===void 0x0)continue;let _0x112bca=_0x14fc45['buckets'][_0x1ae5dc],_0x3ec60d={};for(let _0x37ee1d of _0x112bca['subFields']??[]){let _0x5a182e='\x20\x20'+S(_0x37ee1d[_0x196944(0x1ac)])+(_0x37ee1d['optional']?_0x196944(0x25a):'')+':\x20',_0x418a96=await R(_0x248539,_0x5a182e,_0x24db6,_0x25a417=>_0x25a417);for(;_0x418a96===void 0x0&&!_0x37ee1d['optional'];)_0x24db6(S(_0x37ee1d[_0x196944(0x1ac)])+'\x20is\x20required.\x0a'),_0x418a96=await R(_0x248539,_0x5a182e,_0x24db6,_0x6d304=>_0x6d304);_0x418a96!==void 0x0&&(_0x3ec60d[_0x37ee1d['id']]=_0x418a96);}_0x4b6a08[_0x581343['id']]={'bucket':_0x112bca['id'],...Object[_0x196944(0x35a)](_0x3ec60d)[_0x196944(0x1ae)]>0x0?{'subFields':_0x3ec60d}:{}};}return Object[_0x196944(0x35a)](_0x4b6a08)['length']>0x0?{'assignments':_0x4b6a08}:void 0x0;}async function _e(_0x3aaa8d,_0x5efdfa,_0x56b202){const _0x1c67bd=_0xced2;if(_0x3aaa8d[_0x1c67bd(0x1e4)]===_0x1c67bd(0x2c4))return De(_0x3aaa8d,_0x5efdfa,_0x56b202);if(_0x3aaa8d[_0x1c67bd(0x1e4)]==='numeric')return Ue(_0x3aaa8d,_0x5efdfa,_0x56b202);if(_0x3aaa8d['type']==='bucket')return Ne(_0x3aaa8d,_0x5efdfa,_0x56b202);let _0x4a7ad3=(await _0x5efdfa(_0x1c67bd(0x282)))[_0x1c67bd(0x23a)]();return _0x4a7ad3===''?void 0x0:{'text':_0x4a7ad3};}function Z(_0x57366e,_0x4adb57){return async _0x30d433=>{const _0xe7c368=_0xced2;let _0x471008=_0x57366e();if(!_0x471008)throw new Error(_0xe7c368(0x210));let _0x103cf7=async _0x382289=>{const _0x38f5f3=_0xe7c368;if(_0x30d433[_0x38f5f3(0x1d9)][_0x38f5f3(0x205)])throw new Error(_0x38f5f3(0x1fb));let _0x43dc58=await _0x471008[_0x38f5f3(0x22a)](_0x382289,_0x30d433['signal']);if(_0x43dc58===null)throw new Error('Input\x20closed\x20before\x20the\x20question\x20was\x20answered.');return _0x43dc58;};try{_0x4adb57('\x0a'+(_0x30d433[_0xe7c368(0x317)]?S(_0x30d433[_0xe7c368(0x317)])+'\x0a':''));let _0x13d2e6={};for(let [_0x282a3c,_0x22b0b7]of _0x30d433[_0xe7c368(0x307)][_0xe7c368(0x1ed)]()){_0x4adb57('\x0a'+Te(_0x22b0b7,_0x282a3c+0x1,_0x30d433['questions'][_0xe7c368(0x1ae)])+'\x0a');let _0xe35ee5=await _e(_0x22b0b7,_0x103cf7,_0x4adb57);_0xe35ee5!==void 0x0&&(_0x13d2e6[_0x22b0b7['id']]=_0xe35ee5);}return{'answers':_0x13d2e6};}finally{_0x471008[_0xe7c368(0x270)]();}};}import{BUSINESS_ANALYSIS_PRELOADED_SKILLS as _0x530d90,DelegateAgent as _0x5139ac,cancelTurn as _0x100f17,InteropProcess as _0x2c67a7,complete as _0x3c1dee,DEFAULT_MODEL as _0x26204d,createBackendClient as _0x5b0f18,evaluate as _0x1fec2d,isCompletionRequestError as _0x3fedeb,isEvaluationRequestError as _0x41fd98,isTranscriptionError as _0x289a26,rerank as _0x106b08,transcribe as _0x5b2d0c,verify as _0x63e95f,acceptDelegation as _0x277c5f,cancelDelegation as _0x2823fd,claimDelegation as _0x4a11ec,completeDelegation as _0x1eb4e4,createDelegation as _0x17c9b9,deleteDelegation as _0x1208c3,dismissDelegation as _0x4dce77,getSessionDelegations as _0x541a60,isDelegationError as _0x54dd7f,listDelegations as _0x46b2c2,listOrgUsers as _0x16263d,previewDelegation as _0x41c1ab,TurnResultCollector as _0xbeddc4,agentEventToJsonLine as _0x48f5ca,describeBaseUrlRejection as _0x527ffb,getActivitySummary as _0x56c562,getAuthFilePath as _0x1e3ef0,getByoWarnings as _0x290f25,getCartographerAllowance as _0x5c8757,getDailyBreakdown as _0x37ba7b,getLicensingSummary as _0xe2558d,getMonthlySpending as _0xc3be4f,isOutputFormat as _0x3fb8e8,isCloudBaseUrl as _0x7b7f6,isSafeProjectFolderSegment as _0x59653b,listModels as _0x3e416d,listSessions as _0x2d2595,getSession as _0x277864,renameSession as _0x26537b,deleteSession as _0x2384e2,deleteSessionTaskLog as _0x3682ef,forkSession as _0x4d474e,isBackendRequestError as _0x10cfd4,MAX_SESSION_PAGE_SIZE as _0x48f617,listTenants as _0x4f0daa,loadAndRefreshAuth as _0x100037,loadAndRefreshSdkLogin as _0x4714a4,parsePlatformBaseUrl as _0x340ce0,resolveBackendUrl as _0x93f1b3,runHealthCheck as _0x149765,runHostCommand as _0x1ca8eb,runLoginFlow as _0x5cc19f,runTurnForResult as _0x1e2096,saveAuthData as _0x15eb87,switchTenant as _0x427fa9,toJsonLine as _0x429094,ENV_TO_CLOUD as _0x2d5a18,OUTPUT_FORMATS as _0x43ab9e}from'@uipath/delegate-sdk';var Nt=[_0x2e9e2a(0x2c2),_0x2e9e2a(0x329),_0x2e9e2a(0x34d),_0x2e9e2a(0x1a1),'logout',_0x2e9e2a(0x1b2),_0x2e9e2a(0x300),'sessions',_0x2e9e2a(0x35c),_0x2e9e2a(0x1ee),'rerank','verify',_0x2e9e2a(0x1ad),_0x2e9e2a(0x30e),'delegations',_0x2e9e2a(0x1d3)],se=['',_0x2e9e2a(0x34d),'whoami','check',_0x2e9e2a(0x2b1),_0x2e9e2a(0x35c),_0x2e9e2a(0x1ee),'rerank','verify',_0x2e9e2a(0x1ad),_0x2e9e2a(0x30e),_0x2e9e2a(0x273),_0x2e9e2a(0x1d3)],re=[_0x2e9e2a(0x25d),'medium',_0x2e9e2a(0x199),_0x2e9e2a(0x22d),_0x2e9e2a(0x362)],_t=_0x530d90;function w(_0x527a20,_0x4f3320,_0x25aca3,_0x565f20){const _0x24b978=_0x2e9e2a;let _0x4bc3b3=_0x527a20[_0x4f3320];return(!_0x4bc3b3||_0x4bc3b3[_0x24b978(0x1ae)]>0x1&&_0x4bc3b3['startsWith']('-'))&&(console[_0x24b978(0x2a6)](_0x25aca3+_0x24b978(0x32e)+_0x565f20+'.'),process[_0x24b978(0x26b)](0x2)),_0x4bc3b3;}function J(_0x555b7e,_0x41b6b9,_0x3ca889,_0x26d49f){const _0x37f015=_0x2e9e2a;let _0x20348d=w(_0x555b7e,_0x41b6b9,_0x3ca889,'a\x20number'),_0xbc81ad=Number(_0x20348d);return(!/^\d+$/[_0x37f015(0x254)](_0x20348d)||_0xbc81ad<0x1||!Number[_0x37f015(0x216)](_0xbc81ad)||_0x26d49f!==void 0x0&&_0xbc81ad>_0x26d49f)&&(console[_0x37f015(0x2a6)](_0x3ca889+_0x37f015(0x386)+(_0x26d49f===void 0x0?_0x37f015(0x237):'from\x201\x20to\x20'+_0x26d49f)+_0x37f015(0x30b)+_0x20348d+'.'),process[_0x37f015(0x26b)](0x2)),_0xbc81ad;}function Rt(_0x40bf89){const _0x16fcb7=_0x2e9e2a;let _0x37604d={'subcommand':'','prompt':'','print':!0x1,'keepAlive':!0x1,'cleanup':!0x1,'headless':!0x1,'noComputerUse':!0x1,'cartographer':!0x1,'noConnections':!0x1,'noSecurity':!0x1,'noMemory':!0x1,'taskAutomation':!0x1,'quiet':!0x1,'verbose':!0x1,'outputFormat':_0x16fcb7(0x2c4),'preloadSkills':[],'attachments':[],'skipEnvCheck':!0x1,'includeSubAgents':!0x1,'operands':[],'help':!0x1,'version':!0x1};Nt[_0x16fcb7(0x284)](_0x40bf89[0x0])&&(_0x37604d[_0x16fcb7(0x367)]=_0x40bf89[0x0],_0x40bf89=_0x40bf89[_0x16fcb7(0x2f0)](0x1));let _0x54dbca=[];for(let _0x3c9954=0x0;_0x3c9954<_0x40bf89[_0x16fcb7(0x1ae)];_0x3c9954++){let _0xeed50a=_0x40bf89[_0x3c9954];switch(_0xeed50a){case _0x16fcb7(0x1f8):case'-p':_0x37604d[_0x16fcb7(0x21b)]=!0x0;break;case'--keep-alive':_0x37604d[_0x16fcb7(0x1ef)]=!0x0;break;case _0x16fcb7(0x28b):_0x37604d[_0x16fcb7(0x34f)]=!0x0;break;case _0x16fcb7(0x345):_0x37604d[_0x16fcb7(0x37b)]=!0x0;break;case _0x16fcb7(0x29c):_0x37604d[_0x16fcb7(0x333)]=!0x0;break;case _0x16fcb7(0x31e):_0x37604d[_0x16fcb7(0x331)]=!0x0,_0x37604d['noComputerUse']=!0x0,_0x37604d[_0x16fcb7(0x2ab)][_0x16fcb7(0x371)](..._t);break;case _0x16fcb7(0x2b0):_0x37604d[_0x16fcb7(0x2c7)]=!0x0;break;case _0x16fcb7(0x233):_0x37604d[_0x16fcb7(0x2cc)]=!0x0;break;case _0x16fcb7(0x2c3):_0x37604d[_0x16fcb7(0x1ea)]=!0x0;break;case'--task-automation':_0x37604d[_0x16fcb7(0x379)]=!0x0;break;case _0x16fcb7(0x363):case'-q':_0x37604d[_0x16fcb7(0x369)]=!0x0;break;case _0x16fcb7(0x201):_0x37604d[_0x16fcb7(0x1be)]=!0x0;break;case _0x16fcb7(0x288):_0x37604d['backendUrl']=_0x40bf89[++_0x3c9954];break;case _0x16fcb7(0x206):_0x37604d['model']=_0x40bf89[++_0x3c9954];break;case _0x16fcb7(0x2a3):_0x37604d[_0x16fcb7(0x293)]=_0x40bf89[++_0x3c9954];break;case _0x16fcb7(0x1e5):_0x37604d['interopPath']=_0x40bf89[++_0x3c9954];break;case'--worker-id':_0x37604d['workerId']=_0x40bf89[++_0x3c9954];break;case'--preload-skill':_0x37604d[_0x16fcb7(0x2ab)][_0x16fcb7(0x371)](w(_0x40bf89,++_0x3c9954,_0xeed50a,_0x16fcb7(0x23b)));break;case _0x16fcb7(0x355):{let _0x1474a6=w(_0x40bf89,++_0x3c9954,_0xeed50a,_0x16fcb7(0x344));_0x59653b(_0x1474a6)||(console[_0x16fcb7(0x2a6)](_0x16fcb7(0x381)+_0x1474a6+_0x16fcb7(0x1c2)),process[_0x16fcb7(0x26b)](0x2)),_0x37604d[_0x16fcb7(0x2d1)]=_0x1474a6;break;}case _0x16fcb7(0x1f9):{let _0x353d86=w(_0x40bf89,++_0x3c9954,_0xeed50a,_0x16fcb7(0x2e5)+_0x43ab9e[_0x16fcb7(0x328)]('\x20|\x20')+')');_0x3fb8e8(_0x353d86)||(console[_0x16fcb7(0x2a6)](_0x16fcb7(0x2bf)+_0x353d86+_0x16fcb7(0x33f)+_0x43ab9e[_0x16fcb7(0x328)](_0x16fcb7(0x2b8))+'.'),process[_0x16fcb7(0x26b)](0x2)),_0x37604d[_0x16fcb7(0x2c0)]=_0x353d86;break;}case _0x16fcb7(0x1c5):_0x37604d[_0x16fcb7(0x1bd)]=w(_0x40bf89,++_0x3c9954,_0xeed50a,_0x16fcb7(0x309));break;case _0x16fcb7(0x1b8):_0x37604d['page']=J(_0x40bf89,++_0x3c9954,_0xeed50a);break;case _0x16fcb7(0x2cb):_0x37604d[_0x16fcb7(0x31c)]=J(_0x40bf89,++_0x3c9954,_0xeed50a,_0x48f617);break;case _0x16fcb7(0x1fe):_0x37604d[_0x16fcb7(0x2a8)]=!0x0;break;case'--json-schema':_0x37604d[_0x16fcb7(0x1a7)]=w(_0x40bf89,++_0x3c9954,_0xeed50a,'a\x20JSON\x20schema\x20file');break;case _0x16fcb7(0x37d):{let _0x2f031f=_0x15228c['resolve'](process['cwd'](),w(_0x40bf89,++_0x3c9954,_0xeed50a,_0x16fcb7(0x1b5)));_0x59b7ea[_0x16fcb7(0x260)](_0x2f031f)||(console[_0x16fcb7(0x2a6)]('--attach:\x20no\x20such\x20file\x20or\x20folder:\x20'+_0x2f031f),process[_0x16fcb7(0x26b)](0x2)),_0x37604d[_0x16fcb7(0x2a2)][_0x16fcb7(0x371)](_0x2f031f);break;}case _0x16fcb7(0x1b6):_0x37604d[_0x16fcb7(0x2e3)]=w(_0x40bf89,++_0x3c9954,_0xeed50a,'a\x20turn\x20id');break;case _0x16fcb7(0x31f):_0x37604d['delegateTo']=w(_0x40bf89,++_0x3c9954,_0xeed50a,'an\x20email\x20address\x20or\x20name');break;case _0x16fcb7(0x285):_0x37604d[_0x16fcb7(0x321)]=w(_0x40bf89,++_0x3c9954,_0xeed50a,_0x16fcb7(0x24b));break;case _0x16fcb7(0x1df):_0x37604d[_0x16fcb7(0x359)]=J(_0x40bf89,++_0x3c9954,_0xeed50a,0x16d);break;case _0x16fcb7(0x304):_0x37604d[_0x16fcb7(0x1c6)]=_0x15228c[_0x16fcb7(0x32d)](process[_0x16fcb7(0x200)](),w(_0x40bf89,++_0x3c9954,_0xeed50a,_0x16fcb7(0x2cd)));break;case'--skills-path':_0x37604d[_0x16fcb7(0x22e)]=_0x15228c[_0x16fcb7(0x32d)](process[_0x16fcb7(0x200)](),w(_0x40bf89,++_0x3c9954,_0xeed50a,_0x16fcb7(0x2cd)));break;case _0x16fcb7(0x2fd):{let _0x4937f3=w(_0x40bf89,++_0x3c9954,_0xeed50a,'an\x20effort\x20tier');re[_0x16fcb7(0x284)](_0x4937f3)||(console[_0x16fcb7(0x2a6)](_0x16fcb7(0x30a)+_0x4937f3+_0x16fcb7(0x33f)+re['join'](_0x16fcb7(0x2b8))+'.'),process[_0x16fcb7(0x26b)](0x2)),_0x37604d['effort']=_0x4937f3;break;}case'--tenant':{let _0x52e08d=_0x40bf89[++_0x3c9954];(!_0x52e08d||_0x52e08d[_0x16fcb7(0x323)]('--'))&&(console[_0x16fcb7(0x2a6)](_0x16fcb7(0x296)),process[_0x16fcb7(0x26b)](0x2)),_0x37604d[_0x16fcb7(0x329)]=_0x52e08d;break;}case _0x16fcb7(0x340):{let _0x4f02d2=_0x40bf89[++_0x3c9954];[_0x16fcb7(0x1d4),_0x16fcb7(0x213),_0x16fcb7(0x24c),_0x16fcb7(0x271)][_0x16fcb7(0x284)](_0x4f02d2)||(console[_0x16fcb7(0x2a6)]('Invalid\x20--env:\x20'+_0x4f02d2+_0x16fcb7(0x2bc)),process['exit'](0x2)),_0x37604d[_0x16fcb7(0x2ea)]=_0x4f02d2;break;}case _0x16fcb7(0x312):case'--authority':{let _0x517184=w(_0x40bf89,++_0x3c9954,_0xeed50a,_0x16fcb7(0x2ce)),_0x36ecad=_0x340ce0(_0x517184);if(_0x36ecad['ok']===!0x1){console[_0x16fcb7(0x2a6)](_0x527ffb(_0x517184,_0x36ecad['rejection'])),process[_0x16fcb7(0x26b)](0x2);break;}_0x37604d[_0x16fcb7(0x232)]=_0x36ecad['baseUrl'];break;}case _0x16fcb7(0x223):_0x37604d['skipEnvCheck']=!0x0;break;case'-h':case _0x16fcb7(0x218):_0x37604d[_0x16fcb7(0x25f)]=!0x0;break;case'-v':case'--version':_0x37604d[_0x16fcb7(0x27b)]=!0x0;break;default:_0xeed50a[_0x16fcb7(0x323)]('--')&&(console[_0x16fcb7(0x2a6)](_0x16fcb7(0x33b)+_0xeed50a),process[_0x16fcb7(0x26b)](0x2)),_0x54dbca['push'](_0xeed50a);}}return _0x37604d['tenant']!==void 0x0&&_0x37604d[_0x16fcb7(0x367)]!==_0x16fcb7(0x2c2)&&(console['error'](_0x16fcb7(0x26c)),process[_0x16fcb7(0x26b)](0x2)),_0x37604d[_0x16fcb7(0x232)]!==void 0x0&&_0x37604d[_0x16fcb7(0x2ea)]!==void 0x0&&(console[_0x16fcb7(0x2a6)]('Pass\x20either\x20--env\x20(a\x20named\x20cloud)\x20or\x20--url\x20(any\x20other\x20deployment),\x20not\x20both.'),process[_0x16fcb7(0x26b)](0x2)),_0x37604d[_0x16fcb7(0x232)]!==void 0x0&&_0x37604d[_0x16fcb7(0x367)]!==_0x16fcb7(0x2c2)&&(console[_0x16fcb7(0x2a6)]('--url\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Other\x20commands\x20follow\x20the\x20saved\x20login,\x20or\x20--backend\x20<url>.'),process[_0x16fcb7(0x26b)](0x2)),_0x37604d[_0x16fcb7(0x359)]!==void 0x0&&_0x37604d[_0x16fcb7(0x367)]!==_0x16fcb7(0x35c)&&(console[_0x16fcb7(0x2a6)]('--days\x20applies\x20to\x20`delegate-cli\x20usage\x20activity|daily`\x20only.'),process[_0x16fcb7(0x26b)](0x2)),_0x37604d[_0x16fcb7(0x1a7)]!==void 0x0&&(_0x37604d[_0x16fcb7(0x367)]!==_0x16fcb7(0x1ad)&&_0x37604d[_0x16fcb7(0x367)]!==''||_0x37604d['cleanup'])&&(console[_0x16fcb7(0x2a6)]('--json-schema\x20applies\x20to\x20prompts\x20and\x20to\x20`delegate-cli\x20complete`\x20only.'),process[_0x16fcb7(0x26b)](0x2)),_0x37604d[_0x16fcb7(0x2a2)][_0x16fcb7(0x1ae)]>0x0&&(_0x37604d['subcommand']!==''||_0x37604d[_0x16fcb7(0x34f)])&&(console[_0x16fcb7(0x2a6)]('--attach\x20applies\x20to\x20prompts\x20only.'),process['exit'](0x2)),_0x37604d['taskAutomation']&&(_0x37604d['subcommand']!==''||_0x37604d['cleanup'])&&(console[_0x16fcb7(0x2a6)](_0x16fcb7(0x267)),process[_0x16fcb7(0x26b)](0x2)),_0x37604d['taskAutomation']&&(_0x37604d['headless']||_0x37604d['noComputerUse'])&&(console[_0x16fcb7(0x2a6)]('--task-automation\x20needs\x20computer\x20use:\x20the\x20task\x20log\x20is\x20written\x20by\x20the\x20UI-automation\x20tools.\x20Drop\x20--headless,\x20--no-computer-use\x20and\x20--cartographer.'),process[_0x16fcb7(0x26b)](0x2)),_0x37604d[_0x16fcb7(0x26d)]&&_0x37604d[_0x16fcb7(0x367)]!==_0x16fcb7(0x2c2)&&(console['error'](_0x16fcb7(0x207)),process['exit'](0x2)),_0x37604d[_0x16fcb7(0x2c0)]!=='text'&&!se[_0x16fcb7(0x284)](_0x37604d['subcommand'])&&(console[_0x16fcb7(0x2a6)](_0x16fcb7(0x1a6)+_0x37604d['outputFormat']+_0x16fcb7(0x385)+se[_0x16fcb7(0x261)](Boolean)[_0x16fcb7(0x328)](',\x20')+'.'),process['exit'](0x2)),(_0x37604d[_0x16fcb7(0x33c)]!==void 0x0||_0x37604d[_0x16fcb7(0x31c)]!==void 0x0||_0x37604d[_0x16fcb7(0x2a8)])&&_0x37604d[_0x16fcb7(0x367)]!==_0x16fcb7(0x2b1)&&(console[_0x16fcb7(0x2a6)](_0x16fcb7(0x2b2)),process[_0x16fcb7(0x26b)](0x2)),(_0x37604d[_0x16fcb7(0x214)]!==void 0x0||_0x37604d[_0x16fcb7(0x321)]!==void 0x0)&&_0x37604d[_0x16fcb7(0x367)]!==_0x16fcb7(0x273)&&(console[_0x16fcb7(0x2a6)](_0x16fcb7(0x1c8)),process[_0x16fcb7(0x26b)](0x2)),_0x37604d[_0x16fcb7(0x2e3)]!==void 0x0&&_0x37604d[_0x16fcb7(0x367)]!==_0x16fcb7(0x2b1)&&(console[_0x16fcb7(0x2a6)](_0x16fcb7(0x20d)),process[_0x16fcb7(0x26b)](0x2)),_0x37604d[_0x16fcb7(0x2ab)]=[...new Set(_0x37604d[_0x16fcb7(0x2ab)])],_0x37604d[_0x16fcb7(0x263)]=_0x54dbca,_0x37604d[_0x16fcb7(0x34a)]=_0x54dbca[_0x16fcb7(0x328)]('\x20'),_0x37604d;}var P=_0x59e098=>{const _0x8751b9=_0x2e9e2a;process['stdout'][_0x8751b9(0x277)](_0x59e098);};function Pt(){const _0x5ad62f=_0x2e9e2a;let _0x488560=process[_0x5ad62f(0x1f3)]['write'],_0x1584ac=_0x488560['bind'](process[_0x5ad62f(0x1f3)]),_0x346b10=P;return P=_0x125431=>{_0x1584ac(_0x125431);},process[_0x5ad62f(0x1f3)]['write']=(..._0x3b9520)=>process['stderr']['write'](..._0x3b9520),()=>{const _0x3b920d=_0x5ad62f;process[_0x3b920d(0x1f3)][_0x3b920d(0x277)]=_0x488560,P=_0x346b10;};}function u(_0x3ea1ae,_0x31b651,_0x50eae8){const _0x4fda73=_0x2e9e2a;if(_0x3ea1ae[_0x4fda73(0x2c0)]===_0x4fda73(0x2c4)){_0x50eae8(_0x31b651);return;}P(_0x429094(_0x31b651));}function Ct(){const _0x25f7ee=_0x2e9e2a;let _0x52ace7='\x0adelegate-cli\x20—\x20Delegate\x20agent\x20CLI\x0a\x0aUsage:\x0a\x20\x20delegate-cli\x20[flags]\x20[\x22<prompt>\x22]\x20\x20\x20\x20Start\x20a\x20conversation\x20in\x20a\x20terminal\x0a\x20\x20delegate-cli\x20--print\x20\x22<prompt>\x22\x20\x20\x20\x20\x20\x20Send\x20one\x20prompt,\x20print\x20the\x20response,\x20and\x20exit\x0a\x20\x20delegate-cli\x20[flags]\x20-\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Read\x20one\x20prompt\x20from\x20stdin\x20through\x20EOF,\x20then\x20exit\x0a\x20\x20delegate-cli\x20-p\x20\x22<prompt>\x22\x20--output-format\x20json|stream-json\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20One\x20turn\x20with\x20JSON-only\x20stdout;\x20exit\x201\x20on\x20error\x0a\x20\x20delegate-cli\x20--json-schema\x20FILE\x20\x22<prompt>\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20One\x20turn,\x20then\x20its\x20result\x20extracted\x20as\x20JSON\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20matching\x20the\x20schema\x20in\x20FILE\x20(printed\x20after\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20answer;\x20\x22structured\x22\x20in\x20the\x20JSON\x20result);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20exit\x201\x20when\x20the\x20extraction\x20fails\x0a\x20\x20delegate-cli\x20--attach\x20PATH\x20[--attach\x20PATH\x20...]\x20\x22<prompt>\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Send\x20files\x20or\x20folders\x20with\x20the\x20first\x20message\x0a\x20\x20delegate-cli\x20login\x20[--env\x20NAME\x20|\x20--url\x20BASE]\x20[--tenant\x20NAME]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20OAuth\x20browser\x20login\x20→\x20~/.aria/sdk-auth.json.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--env\x20or\x20--url\x20required\x20on\x20FIRST\x20login;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20afterwards\x20defaults\x20to\x20the\x20saved\x20login\x27s\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20deployment.\x20--tenant\x20picks\x20a\x20tenant\x20by\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20name;\x20without\x20it\x20a\x20re-login\x20keeps\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20saved\x20tenant\x0a\x20\x20delegate-cli\x20tenant\x20[NAME]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20the\x20organization\x27s\x20tenants,\x20or\x20switch\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20saved\x20login\x20to\x20NAME\x20(no\x20browser)\x0a\x20\x20delegate-cli\x20logout\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Remove\x20the\x20saved\x20CLI\x20login\x0a\x20\x20delegate-cli\x20whoami\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20the\x20current\x20login\x20(org,\x20tenant,\x20token\x20expiry)\x0a\x20\x20delegate-cli\x20models\x20[--env\x20NAME]\x20\x20\x20\x20\x20List\x20available\x20LLM\x20models\x20for\x20the\x20current\x20tenant,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20with\x20any\x20BYO\x20configuration\x20warning\x20per\x20model\x0a\x20\x20delegate-cli\x20sessions\x20[list]\x20[--page\x20N]\x20[--limit\x20N]\x20[--include-subagents]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20your\x20backend\x20chat\x20sessions,\x20most\x20recently\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20active\x20first\x20(resume\x20one\x20with\x20--session\x20ID)\x0a\x20\x20delegate-cli\x20sessions\x20show|delete\x20ID\x20Show\x20one\x20session\x27s\x20title\x20and\x20owner,\x20or\x20delete\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20it\x20with\x20its\x20messages\x20and\x20sub-agents\x20(no\x20prompt)\x0a\x20\x20delegate-cli\x20sessions\x20rename\x20ID\x20TITLE\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Rename\x20a\x20session\x20(1-500\x20characters)\x0a\x20\x20delegate-cli\x20sessions\x20fork\x20ID\x20[MESSAGE]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Copy\x20session\x20ID\x20into\x20a\x20new\x20session,\x20up\x20to\x20and\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20including\x20message\x20MESSAGE\x20(default:\x20all\x20of\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20it);\x20continue\x20it\x20with\x20--session\x20NEW_ID\x0a\x20\x20delegate-cli\x20sessions\x20cancel\x20ID\x20--turn\x20TURN\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Cancel\x20turn\x20TURN\x20running\x20on\x20session\x20ID\x20in\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20another\x20process;\x20exits\x201\x20when\x20no\x20such\x20turn\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20is\x20in\x20progress\x0a\x20\x20delegate-cli\x20check\x20[--env\x20NAME]\x20[--headless]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Verify\x20auth,\x20backend\x20readiness,\x20backend\x20and\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20interop\x20without\x20sending\x20a\x20prompt;\x20exits\x201\x20when\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20any\x20check\x20fails\x0a\x20\x20delegate-cli\x20usage\x20[--session\x20ID]\x20\x20\x20\x20Quota\x20and\x20spend:\x20licensing\x20quota,\x20monthly\x20spend\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20and\x20cap,\x20Cartographer\x20allowance\x0a\x20\x20delegate-cli\x20usage\x20activity|daily\x20[--days\x20N]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Activity\x20totals,\x20or\x20per-day\x20usage,\x20over\x20the\x20last\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20N\x20days\x20(1-365,\x20default\x2030)\x0a\x20\x20delegate-cli\x20evaluate|rerank|verify\x20FILE|-\x20[--model\x20ID]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Stateless\x20typed\x20judgments:\x20send\x20the\x20JSON\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20request\x20in\x20FILE\x20(or\x20stdin\x20with\x20-)\x20to\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20/v1/completions/<command>\x20and\x20print\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20answers;\x20--model\x20overrides\x20its\x20\x22model\x22.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Exits\x201\x20when\x20the\x20backend\x20rejects\x20it\x0a\x20\x20delegate-cli\x20complete\x20--json-schema\x20FILE\x20[--model\x20ID]\x20[--session\x20ID]\x20\x22<prompt>\x22|-\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20One\x20structured\x20completion,\x20no\x20agent\x20turn:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20print\x20the\x20JSON\x20object\x20matching\x20the\x20schema\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20in\x20FILE\x20(--output-format\x20json\x20prints\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{structured,\x20usage});\x20--session\x20adds\x20that\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20session\x27s\x20history\x20as\x20context.\x20Exits\x201\x20when\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20output\x20fails\x20the\x20schema\x20(422)\x20or\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20backend\x20rejects\x20the\x20request\x0a\x20\x20delegate-cli\x20transcribe\x20FILE|-\x20\x20\x20\x20\x20\x20\x20Speech-to-text:\x20print\x20the\x20text\x20of\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20audio\x20in\x20FILE,\x20or\x20on\x20stdin\x20with\x20-.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20mp3,\x20mp4,\x20mpeg,\x20mpga,\x20m4a,\x20wav\x20or\x20webm,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20up\x20to\x2014\x20MB.\x20Exits\x202\x20when\x20the\x20audio\x20is\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20refused\x20locally,\x201\x20when\x20the\x20backend\x20rejects\x20it\x0a\x20\x20delegate-cli\x20org-users\x20QUERY\x20\x20\x20\x20\x20\x20\x20\x20\x20Search\x20your\x20organization\x27s\x20users\x20by\x20name\x20or\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20email\x20prefix\x20(2-100\x20characters)\x0a\x20\x20delegate-cli\x20delegations\x20create\x20--session\x20ID\x20[--to\x20WHO]\x20[--summary\x20TEXT]\x20\x22<task>\x22|-\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Hand\x20a\x20task\x20from\x20session\x20ID\x20to\x20a\x20colleague\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(WHO:\x20an\x20email,\x20or\x20a\x20name\x20matching\x20one\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20person);\x20without\x20--to,\x20print\x20a\x20link\x20anyone\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20in\x20the\x20organization\x20can\x20claim\x0a\x20\x20delegate-cli\x20delegations\x20pending\x20SESSION\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Answers\x20to\x20delegations\x20from\x20SESSION\x20that\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20await\x20acceptance\x20(poll\x20this)\x0a\x20\x20delegate-cli\x20delegations\x20accept|dismiss|cancel|delete\x20ID\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Take\x20an\x20answer\x20into\x20its\x20session,\x20drop\x20it,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20withdraw\x20a\x20live\x20delegation,\x20or\x20delete\x20it\x0a\x20\x20delegate-cli\x20delegations\x20list\x20PROJECT\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Every\x20delegation\x20targeting\x20a\x20backend\x20project\x0a\x20\x20delegate-cli\x20delegations\x20show|claim\x20ID|LINK\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Read\x20a\x20delegation\x20assigned\x20to\x20you\x20(or\x20a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20delegate://delegation/…\x20link),\x20or\x20claim\x20it:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20prints\x20the\x20session\x20to\x20work\x20it\x20in\x0a\x20\x20delegate-cli\x20delegations\x20complete\x20ID\x20\x22<answer>\x22|-\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Send\x20the\x20answer\x20to\x20a\x20delegation\x20you\x20claimed\x0a\x20\x20delegate-cli\x20host\x20[flags]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Run\x20this\x20PC\x20as\x20a\x20remote\x20worker\x20until\x20Ctrl+C\x0a\x20\x20delegate-cli\x20host\x20install\x20[flags]\x20\x20\x20\x20Auto-start\x20the\x20host\x20at\x20login\x20(macOS\x20LaunchAgent\x20/\x20Windows\x20Scheduled\x20Task)\x0a\x20\x20delegate-cli\x20host\x20uninstall\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Remove\x20auto-start\x0a\x20\x20delegate-cli\x20host\x20status\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20auto-start\x20state\x0a\x20\x20delegate-cli\x20--cleanup\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Stop\x20running\x20interop\x0a\x0aFlags:\x0a\x20\x20-p,\x20--print\x20\x20\x20\x20\x20\x20\x20Run\x20one\x20turn\x20and\x20exit,\x20including\x20any\x20tool\x20execution.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Automatic\x20when\x20stdin\x20or\x20stdout\x20is\x20not\x20a\x20terminal,\x20or\x20with\x20-\x0a\x20\x20--env\x20NAME\x20\x20\x20\x20\x20\x20\x20\x20alpha\x20|\x20staging\x20|\x20production\x20|\x20localhost\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Composes\x20backend\x20URL\x20from\x20saved\x20auth\x20(org/tenant\x20slugs).\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Omitted\x20→\x20the\x20deployment\x20you\x20logged\x20into\x20(delegate-cli\x20login).\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20localhost\x20→\x20http://localhost:5002.\x20No\x20saved\x20login\x20and\x20no\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--env/--backend/BACKEND_URL\x20is\x20an\x20error\x20—\x20never\x20a\x20guess.\x0a\x20\x20--url\x20BASE\x20\x20\x20\x20\x20\x20\x20\x20(login)\x20Base\x20URL\x20of\x20a\x20deployment\x20that\x20is\x20not\x20a\x20named\x20cloud\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20—\x20Automation\x20Suite,\x20Dedicated,\x20Public\x20Sector.\x20Accepts\x20a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20tenant\x20path\x20or\x20a\x20trailing\x20/identity_\x20and\x20reduces\x20it\x20to\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20origin.\x20Mutually\x20exclusive\x20with\x20--env;\x20also\x20settable\x20via\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20UIPATH_BASE_URL.\x20Alias:\x20--authority.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Automation\x20Suite\x20needs\x2026.10+\x20with\x20the\x20Delegate\x20service;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20the\x20deployment\x20rejects\x20the\x20built-in\x20client,\x20register\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20your\x20own\x20—\x20see\x20UIPATH_CLIENT_ID\x20in\x20the\x20README\x0a\x20\x20--skip-env-check\x20\x20(login)\x20Do\x20not\x20check\x20the\x20deployment\x20before\x20signing\x20in.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Escape\x20hatch\x20for\x20a\x20deployment\x20that\x20hides\x20its\x20OIDC\x20discovery\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20document\x20or\x20serves\x20Identity\x20from\x20another\x20origin;\x20it\x20also\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20gives\x20up\x20the\x20diagnosis\x20when\x20something\x20is\x20really\x20wrong\x0a\x20\x20--backend\x20URL\x20\x20\x20\x20\x20Full\x20backend\x20URL\x20—\x20escape\x20hatch\x20overrides\x20--env\x0a\x20\x20--tenant\x20NAME\x20\x20\x20\x20\x20(login)\x20Tenant\x20to\x20sign\x20into,\x20by\x20name\x20(case-insensitive).\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default:\x20the\x20saved\x20login\x27s\x20tenant\x20on\x20that\x20cloud,\x20else\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20org\x27s\x20first\x20tenant.\x20Later:\x20delegate-cli\x20tenant\x20<name>\x0a\x20\x20--model\x20NAME\x20\x20\x20\x20\x20\x20LLM\x20model\x20id\x20(e.g.\x20claude_sonnet_5_5,\x20kimi_k3).\x20Checked\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20against\x20the\x20tenant\x27s\x20catalog\x20(delegate-cli\x20models)\x20before\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20run\x20starts;\x20an\x20unknown\x20id\x20fails\x20and\x20lists\x20the\x20valid\x20ones.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default:\x20gpt_5_6_luna.\x20Also\x20settable\x20via\x20MODEL\x20env\x20var.\x0a\x20\x20--keep-alive\x20\x20\x20\x20\x20\x20Reuse/leave\x20interop\x20running\x20across\x20invocations\x0a\x20\x20--headless\x20\x20\x20\x20\x20\x20\x20\x20Skip\x20interop\x20(text-only\x20prompts)\x0a\x20\x20--no-computer-use\x20Keep\x20interop\x20—\x20file,\x20Office,\x20PDF\x20and\x20shell\x20tools\x20keep\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20working\x20—\x20but\x20drop\x20the\x20screen:\x20no\x20screenshots,\x20no\x20window\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20list,\x20no\x20UI-automation\x20tools.\x20Cuts\x20image\x20tokens\x20and\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20per-turn\x20screen\x20capture,\x20and\x20stops\x20desktop\x20window\x20titles\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20leaving\x20the\x20machine.\x20Use\x20for\x20document\x20and\x20file\x20work.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--headless\x20implies\x20this\x20and\x20turns\x20interop\x20off\x20as\x20well\x0a\x20\x20--no-connections\x20\x20Disable\x20orchestrator\x20ConnectionService\x20(silences\x20404\x20warnings)\x0a\x20\x20--no-security\x20\x20\x20\x20\x20Disable\x20tool\x20security\x20wrapper\x20(use\x20only\x20for\x20debugging)\x0a\x20\x20--no-memory\x20\x20\x20\x20\x20\x20\x20Do\x20not\x20send\x20the\x20Delegate\x20app\x27s\x20local\x20long-term\x20memories\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20with\x20each\x20turn,\x20and\x20do\x20not\x20ask\x20the\x20model\x20to\x20save\x20new\x20ones\x0a\x20\x20--task-automation\x20Record\x20every\x20UI\x20action\x20of\x20the\x20run,\x20with\x20the\x20selector\x20of\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20element\x20it\x20acted\x20on,\x20to\x20<working-dir>/captures/<session>/\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(~/.aria-sdk\x20without\x20--working-dir),\x20so\x20you\x20can\x20then\x20ask\x20for\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20task\x20as\x20a\x20UiPath\x20coded\x20workflow\x20(uipath-taskautomation\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20skill).\x20The\x20log\x20holds\x20on-screen\x20text\x20and\x20your\x20requests;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20typed\x20values\x20are\x20masked.\x20Needs\x20computer\x20use.\x20Ignored\x20with\x20a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20warning\x20where\x20the\x20deployment\x20does\x20not\x20offer\x20it\x20yet\x0a\x20\x20--attach\x20PATH\x20\x20\x20\x20\x20File\x20or\x20folder\x20sent\x20with\x20the\x20first\x20message\x20(repeatable),\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20as\x20the\x20Delegate\x20app\x20sends\x20attached\x20files:\x20images\x20inline,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20PDFs\x20and\x20other\x20documents\x20as\x20a\x20path\x20the\x20agent\x20reads,\x20text\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20inline\x20up\x20to\x2016,000\x20characters.\x2030\x20MiB\x20per\x20message\x20in\x20all;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20larger\x20files\x20go\x20as\x20a\x20path.\x20In\x20a\x20conversation,\x20later\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20messages\x20carry\x20none\x20of\x20their\x20own,\x20but\x20the\x20first\x20message\x27s\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20stay\x20in\x20context\x0a\x20\x20--preload-skill\x20NAME\x20\x20Preload\x20a\x20skill\x20into\x20the\x20session\x20(repeatable).\x20The\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20skill\x27s\x20content\x20is\x20attached\x20before\x20the\x20first\x20model\x20turn\x20—\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20same\x20mechanism\x20as\x20project\x20preloaded\x20skills\x20in\x20the\x20app\x0a\x20\x20--cartographer\x20\x20\x20\x20Cartographer\x20engagement\x20preset.\x20Equivalent\x20to\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--no-computer-use\x20--preload-skill\x20business-analysis\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--preload-skill\x20project-task-list\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--preload-skill\x20knowledge-base\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--preload-skill\x20source-coverage\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--preload-skill\x20note-taker.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Add\x20--project/--working-dir\x20for\x20where\x20the\x20files\x20live,\x20and\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20extra\x20--preload-skill\x20flags\x20for\x20more\x20skills\x20—\x20a\x20skill\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20preset\x20already\x20covers\x20is\x20not\x20preloaded\x20twice.\x20An\x20explicit\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--headless\x20still\x20wins\x20and\x20turns\x20interop\x20off\x0a\x20\x20--project\x20ID\x20\x20\x20\x20\x20\x20Route\x20the\x20session\x27s\x20local\x20wiki\x20and\x20plans\x20to\x20a\x20project\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(<working-dir>/projects/<ID>/wiki).\x20Client-side\x20key\x20only\x0a\x20\x20--working-dir\x20PATH\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Shell\x20cwd\x20for\x20the\x20agent\x20and\x20root\x20for\x20SDK-local\x20state.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Relative\x20paths\x20resolve\x20against\x20the\x20current\x20directory;\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20directory\x20is\x20created\x20if\x20missing\x0a\x20\x20--skills-path\x20PATH\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Folder\x20of\x20custom\x20skills,\x20loaded\x20on\x20top\x20of\x20the\x20skills\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20package\x20ships;\x20wins\x20on\x20a\x20name\x20clash\x20(also:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20DELEGATE_BUNDLED_SKILLS_PATH)\x0a\x20\x20--effort\x20TIER\x20\x20\x20\x20\x20Reasoning\x20effort:\x20low\x20|\x20medium\x20|\x20high\x20|\x20xhigh\x20|\x20max.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default:\x20the\x20model\x27s\x20recommended\x20tier\x0a\x20\x20--session\x20ID\x20\x20\x20\x20\x20\x20Continue\x20an\x20existing\x20backend\x20session\x20(an\x20unknown\x20id\x20exits\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x201;\x20the\x20backend\x20assigns\x20new\x20ids).\x20For\x20complete:\x20the\x20session\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20whose\x20history\x20is\x20the\x20context\x0a\x20\x20--json-schema\x20FILE\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20JSON\x20schema\x20the\x20structured\x20answer\x20must\x20match\x20(complete,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20and\x20prompts:\x20implies\x20--print)\x0a\x20\x20--runner-url\x20URL\x20\x20(host)\x20Runner\x20worker\x20WS\x20URL.\x20Required;\x20or\x20CONTROL_PLANE_WS_URL\x20env\x0a\x20\x20--interop\x20PATH\x20\x20\x20\x20(host)\x20Interop\x20binary\x20path;\x20or\x20INTEROP_EXECUTABLE_PATH\x20env.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Absent\x20→\x20registration/discovery\x20only,\x20tool\x20execution\x20disabled\x0a\x20\x20--worker-id\x20ID\x20\x20\x20\x20(host)\x20Stable\x20worker\x20identity;\x20or\x20WORKER_ID\x20env.\x20Default:\x20hostname\x0a\x20\x20--page\x20N\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(sessions)\x20Page\x20to\x20show,\x20from\x201.\x20Default:\x201\x0a\x20\x20--limit\x20N\x20\x20\x20\x20\x20\x20\x20\x20\x20(sessions)\x20Rows\x20per\x20page,\x201-100.\x20Default:\x2030\x0a\x20\x20--include-subagents\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(sessions)\x20Also\x20list\x20sub-agent\x20sessions,\x20hidden\x20by\x20default\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20as\x20in\x20the\x20desktop\x20app\x27s\x20history\x0a\x20\x20--to\x20WHO\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(delegations\x20create)\x20Assign\x20to\x20this\x20person:\x20an\x20email,\x20or\x20a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20name\x20that\x20matches\x20exactly\x20one\x20colleague\x20(see\x20org-users)\x0a\x20\x20--summary\x20TEXT\x20\x20\x20\x20(delegations\x20create)\x20The\x20briefing\x20the\x20person\x20starts\x20from.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default:\x20empty,\x20for\x20a\x20task\x20that\x20stands\x20on\x20its\x20own\x0a\x20\x20--output-format\x20FMT\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20text\x20(default)\x20|\x20json\x20|\x20stream-json.\x20json\x20prints\x20one\x20result\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20object\x20on\x20exit;\x20stream-json\x20prints\x20every\x20agent\x20event\x20as\x20one\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20JSON\x20line,\x20then\x20the\x20result.\x20Both\x20keep\x20stdout\x20JSON-only\x20(logs,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20progress\x20and\x20the\x20session\x20id\x20go\x20to\x20stderr),\x20imply\x20--print,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20and\x20exit\x201\x20when\x20the\x20turn\x20ends\x20in\x20error.\x20Also\x20honoured\x20by\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20every\x20subcommand\x20that\x20prints\x20a\x20result\x20(all\x20but\x20login,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20logout,\x20tenant\x20and\x20host)\x0a\x20\x20-q,\x20--quiet\x20\x20\x20\x20\x20\x20\x20Suppress\x20🤔\x20thinking\x20output\x20to\x20stderr\x0a\x20\x20--verbose\x20\x20\x20\x20\x20\x20\x20\x20\x20Surface\x20the\x20SDK\x27s\x20and\x20the\x20framework\x27s\x20own\x20logs.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Diagnostics\x20only,\x20on\x20stdout;\x20independent\x20of\x20-q\x0a\x20\x20-h,\x20--help\x20\x20\x20\x20\x20\x20\x20\x20Show\x20this\x20help\x0a\x20\x20-v,\x20--version\x20\x20\x20\x20\x20Print\x20the\x20installed\x20CLI\x20version\x0a\x0aConversation:\x20Enter\x20sends\x20a\x20message;\x20/exit\x20or\x20EOF\x20exits;\x20Ctrl+C\x20stops\x20and\x20exits.\x0a\x20\x20Ctrl+C\x20during\x20a\x20turn\x20cancels\x20it\x20on\x20the\x20backend\x20too;\x20a\x20second\x20Ctrl+C\x20force-exits.\x0a\x20\x20An\x20optional\x20initial\x20prompt\x20is\x20followed\x20by\x20more\x20input.\x20The\x20session\x20ID\x20is\x20printed\x0a\x20\x20to\x20stderr;\x20resume\x20later\x20with\x20--session\x20ID.\x20Redirected\x20input\x20is\x20one\x20prompt.\x0aAuth:\x20prompts\x20auto-retry\x20on\x20401\x20by\x20opening\x20the\x20browser\x20to\x20re-login\x20(TTY\x20only),\x0a\x20\x20preserving\x20the\x20active\x20session.\x0a'[_0x25f7ee(0x23a)]();console[_0x25f7ee(0x2f8)](_0x52ace7);}function Lt(){const _0x1154c7=_0x2e9e2a;try{return JSON[_0x1154c7(0x365)](_0x59b7ea['readFileSync'](_0x15228c['join'](__dirname,'..',_0x1154c7(0x1aa)),'utf-8'))[_0x1154c7(0x27b)]||'unknown';}catch{return _0x1154c7(0x31d);}}var Ot=0x7d0;async function ie(_0x3f47e9,_0x1faf67){const _0x563248=_0x2e9e2a;let _0x28d164=_0x1faf67?[_0x1faf67]:[];for await(let _0x42c431 of _0x3f47e9)_0x28d164[_0x563248(0x371)](Buffer['from'](_0x42c431));return Buffer[_0x563248(0x2e2)](_0x28d164)[_0x563248(0x20e)](_0x563248(0x211))[_0x563248(0x23a)]();}function Ft(_0x2ae04e,_0x56d0eb){return new Promise(_0x2d5d38=>{const _0x3d0237=_0xced2;let _0x343303=_0x4fb673=>{const _0x52ec58=_0xced2;clearTimeout(_0x1809bc),_0x2ae04e['off']('data',_0x4af3a4),_0x2ae04e[_0x52ec58(0x35b)](_0x52ec58(0x376),_0x54d778),_0x2ae04e[_0x52ec58(0x35b)](_0x52ec58(0x2a6),_0x54d778),_0x2ae04e[_0x52ec58(0x228)](),_0x2d5d38(_0x4fb673);},_0x4af3a4=_0x3e4113=>_0x343303(Buffer[_0x3d0237(0x2cf)](_0x3e4113)),_0x54d778=()=>_0x343303(null),_0x1809bc=setTimeout(()=>_0x343303(null),_0x56d0eb);_0x2ae04e['on']('data',_0x4af3a4),_0x2ae04e['on']('end',_0x54d778),_0x2ae04e['on'](_0x3d0237(0x2a6),_0x54d778),_0x2ae04e[_0x3d0237(0x1cd)]();});}async function j(_0x2bf3f4,_0x553421,_0x3f6e06=Ot){const _0x14ee8b=_0x2e9e2a;let _0x2fbf34=_0x2bf3f4==='-';if(!_0x2fbf34&&_0x2bf3f4)return _0x2bf3f4;if(!_0x2fbf34&&_0x553421[_0x14ee8b(0x27d)])return'';if(_0x2fbf34)return ie(_0x553421,null);let _0x40e4de=await Ft(_0x553421,_0x3f6e06);return _0x40e4de?ie(_0x553421,_0x40e4de):'';}function K(){const _0x64c601=_0x2e9e2a;return _0x15228c[_0x64c601(0x328)](process.env.HOME||process.env.USERPROFILE||'',_0x64c601(0x1bc),_0x64c601(0x2a4));}function M(_0x5cbc17){const _0x2c7b11=_0x2e9e2a;try{let _0x80ddb0=JSON[_0x2c7b11(0x365)](_0x59b7ea['readFileSync'](_0x5cbc17,'utf-8'));return!_0x80ddb0[_0x2c7b11(0x383)]||!_0x80ddb0['tenantId']||!_0x80ddb0[_0x2c7b11(0x297)]?null:_0x80ddb0;}catch{return null;}}function jt(){const _0x5102f9=_0x2e9e2a;let _0x3570dd=[{'file':_0x1e3ef0(),'isDesktopFallback':!0x1},{'file':K(),'isDesktopFallback':!0x0}];for(let _0x158b0e of _0x3570dd){let _0x5e2d94=M(_0x158b0e[_0x5102f9(0x325)]);if(_0x5e2d94)return{..._0x158b0e,'auth':_0x5e2d94};}return null;}async function Mt(){const _0x1f63b5=_0x2e9e2a;let _0x11f0a2=_0x1e3ef0();if(!_0x59b7ea[_0x1f63b5(0x260)](_0x11f0a2)){let _0x2f9a96=K();console[_0x1f63b5(0x2f8)](M(_0x2f9a96)?_0x1f63b5(0x24a)+_0x2f9a96+_0x1f63b5(0x377):_0x1f63b5(0x26a));return;}_0x59b7ea[_0x1f63b5(0x289)](_0x11f0a2),console[_0x1f63b5(0x2f8)](_0x1f63b5(0x298)+_0x11f0a2);}async function Bt(_0xf7de6b){const _0x4895a0=_0x2e9e2a;let _0x2458b4=Q(),_0x4d69b6,_0x5a2362;if(_0x2458b4)_0x4d69b6=_0x2458b4,_0x5a2362=_0x4895a0(0x2d8);else{let _0x132265=jt();if(!_0x132265)throw new Error(Se);_0x4d69b6=_0x132265[_0x4895a0(0x2ba)],_0x5a2362=_0x132265[_0x4895a0(0x1a5)]?_0x132265[_0x4895a0(0x325)]+_0x4895a0(0x240):_0x132265['file'];}let _0x151fde={'source':_0x5a2362,'baseUrl':_0x4d69b6[_0x4895a0(0x2e9)]??null,'deployment':Ht(_0x4d69b6[_0x4895a0(0x2e9)]),'organization':{'id':_0x4d69b6['organizationId'],'slug':_0x4d69b6[_0x4895a0(0x351)]??null},'tenant':{'id':_0x4d69b6[_0x4895a0(0x281)],'name':_0x4d69b6[_0x4895a0(0x2f2)]??null},'tokenExpiresAt':_0x4d69b6[_0x4895a0(0x231)]?new Date(_0x4d69b6[_0x4895a0(0x231)]*0x3e8)[_0x4895a0(0x2fb)]():null};u(_0xf7de6b,_0x151fde,()=>{const _0x1eeb29=_0x4895a0;let _0x5393ec=['Source:\x20\x20\x20\x20\x20\x20\x20'+_0x5a2362,'Base\x20URL:\x20\x20\x20\x20\x20'+(_0x4d69b6[_0x1eeb29(0x2e9)]??'unknown'),_0x1eeb29(0x314)+_0x151fde[_0x1eeb29(0x299)],_0x1eeb29(0x1c0)+(_0x4d69b6['orgLogicalName']??'unknown\x20slug')+'\x20('+_0x4d69b6[_0x1eeb29(0x297)]+')',_0x1eeb29(0x19c)+(_0x4d69b6[_0x1eeb29(0x2f2)]??_0x1eeb29(0x250))+'\x20('+_0x4d69b6[_0x1eeb29(0x281)]+')'];if(_0x4d69b6[_0x1eeb29(0x231)]){let _0x3bf4a9=_0x4d69b6[_0x1eeb29(0x231)]-Math['floor'](Date[_0x1eeb29(0x294)]()/0x3e8);_0x5393ec[_0x1eeb29(0x371)](_0x3bf4a9>0x0?_0x1eeb29(0x235)+_0x151fde[_0x1eeb29(0x292)]+'\x20(in\x20'+Math['round'](_0x3bf4a9/0x3c)+_0x1eeb29(0x264):_0x1eeb29(0x2de)+_0x151fde['tokenExpiresAt']);}process[_0x1eeb29(0x1f3)][_0x1eeb29(0x277)](_0x5393ec[_0x1eeb29(0x328)]('\x0a')+'\x0a');});}var Se=_0x2e9e2a(0x346);function Ht(_0x2c08fb){const _0x4481d1=_0x2e9e2a;return _0x2c08fb?_0x7b7f6(_0x2c08fb)?_0x4481d1(0x322):_0x4481d1(0x380):_0x4481d1(0x31d);}function Q(){let _0x56a2ef=process.env.AUTH_TOKEN_FILE;return(process.env.AUTH_TOKEN||_0x56a2ef)&&process.env.TENANT_ID&&process.env.ORG_ID?{'accessToken':_0x56a2ef?Jt(_0x56a2ef):process.env.AUTH_TOKEN,..._0x56a2ef?{'accessTokenFile':_0x56a2ef}:{},'tenantId':process.env.TENANT_ID,'organizationId':process.env.ORG_ID,'orgLogicalName':process.env.ORG_SLUG,'tenantName':process.env.TENANT_SLUG,'baseUrl':ve()}:null;}function Jt(_0x3d52ae){const _0x2fe431=_0x2e9e2a;let _0x46258e;try{_0x46258e=_0x59b7ea[_0x2fe431(0x2af)](_0x3d52ae,_0x2fe431(0x211))[_0x2fe431(0x23a)]();}catch(_0x5ef5d3){throw new Error(_0x2fe431(0x315)+_0x3d52ae+_0x2fe431(0x220)+_0x5ef5d3[_0x2fe431(0x290)]);}let _0x40206e=_0x46258e[_0x2fe431(0x323)]('Bearer\x20')?_0x46258e[_0x2fe431(0x2f0)](0x7)['trim']():_0x46258e;if(!_0x40206e)throw new Error(_0x2fe431(0x315)+_0x3d52ae+_0x2fe431(0x2ef));return _0x40206e;}function ve(){const _0x21e7ff=_0x2e9e2a;let _0x247207=process.env.UIPATH_BASE_URL;if(!_0x247207)return;let _0x327aed=_0x340ce0(_0x247207);if(_0x327aed['ok']===!0x1)throw new Error(_0x21e7ff(0x274)+_0x527ffb(_0x247207,_0x327aed['rejection']));return _0x327aed[_0x21e7ff(0x2e9)];}async function q(){let _0x125880=Q();if(_0x125880)return _0x125880;let _0x524593=await _0x100037();if(_0x524593)return _0x524593;throw new Error(Se);}async function Gt(){const _0x43b3e3=_0x2e9e2a;await new _0x2c67a7()[_0x43b3e3(0x248)]({'force':!0x0}),console[_0x43b3e3(0x2f8)](_0x43b3e3(0x203));}function z(_0x518992,_0x2dcc33,_0x200f6b){const _0x17f472=_0x2e9e2a;_0x518992?process[_0x17f472(0x2c8)][_0x17f472(0x277)]('[env='+_0x518992+_0x17f472(0x36b)+_0x200f6b+'\x0a'):!_0x2dcc33&&!process.env.BACKEND_URL&&process[_0x17f472(0x2c8)][_0x17f472(0x277)](_0x17f472(0x32b)+_0x200f6b+'\x0a');}async function v(_0x3a25c3){const _0x497965=_0x2e9e2a;let _0xa8f7ae=await q(),_0x47dfb8=_0x93f1b3(_0x3a25c3[_0x497965(0x2ea)],_0xa8f7ae,_0x3a25c3[_0x497965(0x1e1)]);return z(_0x3a25c3[_0x497965(0x2ea)],_0x3a25c3[_0x497965(0x1e1)],_0x47dfb8),{'auth':_0xa8f7ae,'backendUrl':_0x47dfb8,'client':_0x5b0f18({'auth':_0xa8f7ae,'backendUrl':_0x47dfb8})};}async function Wt(_0x53ca7f){const _0x2f79ef=_0x2e9e2a;let {client:_0x1c59ee}=await v(_0x53ca7f),[_0x4b5cc8,_0x5f322a]=await Promise['all']([_0x3e416d(_0x1c59ee),_0x290f25(_0x1c59ee)[_0x2f79ef(0x341)](_0x1af513=>(process['stderr'][_0x2f79ef(0x277)](_0x2f79ef(0x32f)+(_0x1af513 instanceof Error?_0x1af513[_0x2f79ef(0x290)]:String(_0x1af513))+'\x0a'),{}))]),_0x3dce1b=_0x4b5cc8['map'](_0x1b55ad=>_0x5f322a[_0x1b55ad['id']]?{..._0x1b55ad,'byoWarning':_0x5f322a[_0x1b55ad['id']]}:_0x1b55ad);u(_0x53ca7f,_0x3dce1b,Kt);}function Kt(_0x4bbacd){const _0x2f637c=_0x2e9e2a;if(_0x4bbacd[_0x2f637c(0x1ae)]===0x0){process[_0x2f637c(0x2c8)][_0x2f637c(0x277)](_0x2f637c(0x225));return;}process['stdout'][_0x2f637c(0x277)](_0x2f637c(0x229)+_0x4bbacd[_0x2f637c(0x1ae)]+_0x2f637c(0x35e));for(let _0x4b2f73 of _0x4bbacd){let _0x27cff6=_0x4b2f73[_0x2f637c(0x358)]&&_0x4b2f73[_0x2f637c(0x358)]!==_0x4b2f73['id']?'\x20('+_0x4b2f73[_0x2f637c(0x358)]+')':'';process['stdout'][_0x2f637c(0x277)]('\x20\x20'+_0x4b2f73['id']+_0x27cff6+'\x0a'),_0x4b2f73[_0x2f637c(0x335)]&&process[_0x2f637c(0x1f3)][_0x2f637c(0x277)](_0x2f637c(0x310)+_0x4b2f73[_0x2f637c(0x335)]+'\x0a'),_0x4b2f73['locked']&&process['stdout'][_0x2f637c(0x277)]('\x20\x20\x20\x20Not\x20available\x20on\x20this\x20plan'+(_0x4b2f73['lockReason']?'\x20('+_0x4b2f73[_0x2f637c(0x2c6)]+')':'')+'\x0a'),_0x4b2f73['byoWarning']&&process['stdout'][_0x2f637c(0x277)](_0x2f637c(0x256)+_0x4b2f73['byoWarning']+'\x0a');}process[_0x2f637c(0x1f3)]['write']('\x0aUse\x20with:\x20delegate-cli\x20--model\x20<id>\x20\x22<prompt>\x22\x0a');}var ae=['list','show',_0x2e9e2a(0x1d5),'delete',_0x2e9e2a(0x212),'fork'];async function Qt(_0x96b956){const _0x15f5ea=_0x2e9e2a;let [_0x130554='',_0x1a35e8='',..._0x4c4e69]=_0x96b956[_0x15f5ea(0x263)];if(_0x130554&&!ae[_0x15f5ea(0x284)](_0x130554)&&(console[_0x15f5ea(0x2a6)](_0x15f5ea(0x334)+_0x130554+_0x15f5ea(0x34e)+ae['join']('\x20|\x20')+'.'),process[_0x15f5ea(0x26b)](0x2)),_0x96b956[_0x15f5ea(0x2e3)]!==void 0x0&&_0x130554!==_0x15f5ea(0x212)&&(console[_0x15f5ea(0x2a6)](_0x15f5ea(0x20d)),process[_0x15f5ea(0x26b)](0x2)),_0x130554&&_0x130554!=='list'){await qt(_0x96b956,_0x130554,_0x1a35e8,_0x4c4e69['join']('\x20')[_0x15f5ea(0x23a)]());return;}_0x96b956['operands']['length']>0x1&&(console[_0x15f5ea(0x2a6)](_0x15f5ea(0x2d2)),process[_0x15f5ea(0x26b)](0x2));let {client:_0x170461}=await v(_0x96b956),_0x59ec46=await _0x2d2595(_0x170461,{'page':_0x96b956[_0x15f5ea(0x33c)],'pageSize':_0x96b956[_0x15f5ea(0x31c)],'includeSubAgents':_0x96b956[_0x15f5ea(0x2a8)]});u(_0x96b956,_0x59ec46,Xt);}async function qt(_0x3bf2c2,_0x459fd9,_0x24f056,_0x2186e7){const _0x3be93c=_0x2e9e2a;if((_0x3bf2c2[_0x3be93c(0x33c)]!==void 0x0||_0x3bf2c2[_0x3be93c(0x31c)]!==void 0x0||_0x3bf2c2[_0x3be93c(0x2a8)])&&(console['error'](_0x3be93c(0x303)),process['exit'](0x2)),_0x459fd9===_0x3be93c(0x212)){await Yt(_0x3bf2c2,_0x24f056,_0x2186e7);return;}if(_0x459fd9==='fork'){await Vt(_0x3bf2c2,_0x24f056,_0x2186e7);return;}(!_0x24f056||_0x459fd9===_0x3be93c(0x1d5)!=!!_0x2186e7)&&(console[_0x3be93c(0x2a6)](_0x3be93c(0x19e)+_0x459fd9+_0x3be93c(0x36d)+(_0x459fd9===_0x3be93c(0x1d5)?_0x3be93c(0x33a):'')),process[_0x3be93c(0x26b)](0x2));let {client:_0x3cba35}=await v(_0x3bf2c2);try{if(_0x459fd9===_0x3be93c(0x2eb)){let _0x3619fc=await _0x277864(_0x3cba35,_0x24f056);_0x3619fc||le(_0x24f056),u(_0x3bf2c2,_0x3619fc,zt);}else{if(_0x459fd9===_0x3be93c(0x1d5)){let _0x2c3197=await _0x26537b(_0x3cba35,_0x24f056,_0x2186e7);u(_0x3bf2c2,_0x2c3197,_0x540435=>{const _0x18f556=_0x3be93c;process['stdout'][_0x18f556(0x277)]('Renamed\x20'+_0x540435['id']+':\x20'+_0x540435[_0x18f556(0x224)]+'\x0a');});}else await _0x2384e2(_0x3cba35,_0x24f056),await _0x3682ef(_0x24f056,_0x3bf2c2[_0x3be93c(0x1c6)]),u(_0x3bf2c2,{'id':_0x24f056,'deleted':!0x0},_0x168980=>{const _0x1152e5=_0x3be93c;process[_0x1152e5(0x1f3)][_0x1152e5(0x277)](_0x1152e5(0x19a)+_0x168980['id']+'.\x0a');});}}catch(_0x4458a2){if(!_0x10cfd4(_0x4458a2,0x194))throw _0x4458a2;le(_0x24f056);}}function le(_0x4cda2a){const _0x457a64=_0x2e9e2a;console[_0x457a64(0x2a6)](_0x457a64(0x37a)+_0x4cda2a+_0x457a64(0x311)),process[_0x457a64(0x26b)](0x1);}function zt(_0x3deb86){const _0x1aa3d8=_0x2e9e2a;process['stdout'][_0x1aa3d8(0x277)](_0x1aa3d8(0x1ab)+_0x3deb86['id']+'\x0a'),process[_0x1aa3d8(0x1f3)][_0x1aa3d8(0x277)](_0x1aa3d8(0x356)+_0x3deb86[_0x1aa3d8(0x224)]+'\x0a'),process[_0x1aa3d8(0x1f3)][_0x1aa3d8(0x277)](_0x1aa3d8(0x1d8)+_0x3deb86[_0x1aa3d8(0x1b4)]+'\x0a'),process['stdout'][_0x1aa3d8(0x277)](_0x1aa3d8(0x244)+_0x3deb86[_0x1aa3d8(0x297)]+'\x0a'),_0x3deb86['delegationId']&&process[_0x1aa3d8(0x1f3)]['write']('Delegation\x20\x20\x20\x20'+_0x3deb86[_0x1aa3d8(0x1db)]+'\x0a');}async function Yt(_0x28623f,_0xceb205,_0x4206fe){const _0x1360ae=_0x2e9e2a;(!_0xceb205||_0x4206fe||!_0x28623f['turnId'])&&(console[_0x1360ae(0x2a6)](_0x1360ae(0x2db)),process[_0x1360ae(0x26b)](0x2));let {client:_0x2b28e9}=await v(_0x28623f),_0x1b854d=await _0x100f17(_0x2b28e9,_0xceb205,_0x28623f['turnId']);u(_0x28623f,{'sessionId':_0xceb205,'turnId':_0x28623f['turnId'],'cancelled':_0x1b854d},_0x5561c5=>{const _0x1db6ff=_0x1360ae;_0x5561c5[_0x1db6ff(0x318)]?process[_0x1db6ff(0x1f3)]['write'](_0x1db6ff(0x1ff)+_0x5561c5['turnId']+_0x1db6ff(0x272)+_0x5561c5[_0x1db6ff(0x1bd)]+'.\x0a'):process[_0x1db6ff(0x2c8)][_0x1db6ff(0x277)]('No\x20turn\x20'+_0x5561c5[_0x1db6ff(0x2e3)]+_0x1db6ff(0x2e0)+_0x5561c5[_0x1db6ff(0x1bd)]+'.\x0a');}),_0x1b854d||(process[_0x1360ae(0x320)]=0x1);}async function Vt(_0x1f680b,_0x161f92,_0x3a2ab2){const _0x1821d0=_0x2e9e2a;(!_0x161f92||/\s/[_0x1821d0(0x254)](_0x3a2ab2))&&(console[_0x1821d0(0x2a6)](_0x1821d0(0x245)),process[_0x1821d0(0x26b)](0x2));let {client:_0x3c6ba4}=await v(_0x1f680b),_0x3c1627;try{_0x3c1627=await _0x4d474e(_0x3c6ba4,_0x161f92,{'atMessageId':_0x3a2ab2||void 0x0});}catch(_0x25661c){if(!_0x10cfd4(_0x25661c,0x194))throw _0x25661c;console[_0x1821d0(0x2a6)](_0x1821d0(0x37a)+_0x161f92+_0x1821d0(0x1e2)+(_0x3a2ab2?_0x1821d0(0x2d0)+_0x3a2ab2:'')+'.'),process[_0x1821d0(0x26b)](0x1);}u(_0x1f680b,_0x3c1627,_0x5dc8d9=>{const _0x5896dd=_0x1821d0;process[_0x5896dd(0x1f3)]['write']('Forked\x20'+_0x161f92+_0x5896dd(0x2ee)+_0x5dc8d9['id']+'.\x0a'),process['stderr'][_0x5896dd(0x277)](_0x5896dd(0x1f7)+_0x5dc8d9['id']+_0x5896dd(0x28e));});}function Xt({sessions:_0x579c13,page:_0x416958,isLastPage:_0x53b985}){const _0xb1610c=_0x2e9e2a;if(_0x579c13[_0xb1610c(0x1ae)]===0x0)process[_0xb1610c(0x2c8)]['write'](_0xb1610c(0x1f5)+_0x416958+'.\x0a');else{process[_0xb1610c(0x1f3)][_0xb1610c(0x277)]('ID'[_0xb1610c(0x372)](0x24)+'\x20\x20'+_0xb1610c(0x21d)[_0xb1610c(0x372)](0x13)+_0xb1610c(0x343));for(let _0x24ceeb of _0x579c13){let _0x48f796=_0x24ceeb['updatedAt']['replace']('T','\x20')[_0xb1610c(0x2f0)](0x0,0x13),_0x18b163=_0x24ceeb['parentSessionId']?_0xb1610c(0x2b9)+_0x24ceeb[_0xb1610c(0x2fc)]+')':'';process[_0xb1610c(0x1f3)][_0xb1610c(0x277)](_0x24ceeb['id'][_0xb1610c(0x372)](0x24)+'\x20\x20'+_0x48f796[_0xb1610c(0x372)](0x13)+'\x20\x20'+_0x24ceeb[_0xb1610c(0x224)]+_0x18b163+'\x0a');}}_0x53b985||process[_0xb1610c(0x2c8)][_0xb1610c(0x277)](_0xb1610c(0x374)+(_0x416958+0x1)+'\x0a');}function _0xced2(_0x1641ab,_0x352c25){_0x1641ab=_0x1641ab-0x199;const _0x3c878c=_0x3c87();let _0xced272=_0x3c878c[_0x1641ab];return _0xced272;}async function Zt(_0x2acc48){const _0x4df9c0=_0x2e9e2a;let _0x236346=await q(),_0x3823e4=_0x93f1b3(_0x2acc48[_0x4df9c0(0x2ea)],_0x236346,_0x2acc48[_0x4df9c0(0x1e1)]);z(_0x2acc48[_0x4df9c0(0x2ea)],_0x2acc48[_0x4df9c0(0x1e1)],_0x3823e4);let _0xbad7cc=await _0x149765({'auth':_0x236346,'backendUrl':_0x3823e4,'interop':_0x2acc48[_0x4df9c0(0x37b)]?_0x4df9c0(0x262):_0x4df9c0(0x2aa)});u(_0x2acc48,_0xbad7cc,({checks:_0x534046})=>{const _0x5a580d=_0x4df9c0;for(let _0x197881 of _0x534046)process[_0x5a580d(0x1f3)][_0x5a580d(0x277)](en(_0x197881)+'\x0a');}),_0xbad7cc['ok']||process[_0x4df9c0(0x26b)](0x1);}function en(_0x27d7fb){const _0x51e91a=_0x2e9e2a;return{'ok':'✓','failed':'✗','skipped':'-'}[_0x27d7fb[_0x51e91a(0x337)]]+'\x20'+_0x27d7fb[_0x51e91a(0x358)][_0x51e91a(0x372)](0xa)+_0x27d7fb['detail'];}var tn=['','activity','daily'];async function nn(_0x342a9c){const _0x5d36c3=_0x2e9e2a;let _0x1d8adf=_0x342a9c['prompt'];tn['includes'](_0x1d8adf)||(console[_0x5d36c3(0x2a6)](_0x5d36c3(0x33e)+_0x342a9c[_0x5d36c3(0x34a)]+_0x5d36c3(0x2d5)),process[_0x5d36c3(0x26b)](0x2)),_0x1d8adf===''&&_0x342a9c[_0x5d36c3(0x359)]!==void 0x0&&(console[_0x5d36c3(0x2a6)](_0x5d36c3(0x308)),process[_0x5d36c3(0x26b)](0x2)),_0x1d8adf!==''&&_0x342a9c[_0x5d36c3(0x1bd)]!==void 0x0&&(console[_0x5d36c3(0x2a6)](_0x5d36c3(0x36a)),process[_0x5d36c3(0x26b)](0x2));let {client:_0x4dc953}=await v(_0x342a9c);if(_0x1d8adf==='activity'){u(_0x342a9c,await _0x56c562(_0x4dc953,{'days':_0x342a9c['days']}),sn);return;}if(_0x1d8adf==='daily'){u(_0x342a9c,await _0x37ba7b(_0x4dc953,{'days':_0x342a9c[_0x5d36c3(0x359)]}),rn);return;}let [_0x52fed0,_0x4dbb0d,_0x489475]=await Promise[_0x5d36c3(0x22b)]([_0xe2558d(_0x4dc953,{'sessionId':_0x342a9c[_0x5d36c3(0x1bd)]}),_0xc3be4f(_0x4dc953),_0x5c8757(_0x4dc953)]);u(_0x342a9c,{'licensing':_0x52fed0,'monthlySpending':_0x4dbb0d,'cartographerAllowance':_0x489475},on);}function on(_0x416198){const _0x440a88=_0x2e9e2a;let {licensing:_0x10ac4d,monthlySpending:_0x21205e,cartographerAllowance:_0x31db5b}=_0x416198,_0x341b0f=[_0x10ac4d['limit_enabled']?_0x440a88(0x32a)+_0x10ac4d[_0x440a88(0x23d)][_0x440a88(0x1ce)](0x1)+_0x440a88(0x1c9)+(_0x10ac4d[_0x440a88(0x19f)]??0x0)+'\x20PU\x20used'+(_0x10ac4d[_0x440a88(0x1c4)]>0x0?',\x20'+_0x10ac4d[_0x440a88(0x1c4)]+_0x440a88(0x2c9):'')+_0x440a88(0x23f)+_0x10ac4d['period_end']+')':_0x440a88(0x319),'Spending:\x20\x20\x20\x20\x20$'+_0x21205e[_0x440a88(0x1b7)][_0x440a88(0x1ce)](0x2)+_0x440a88(0x208)+(_0x21205e[_0x440a88(0x327)]&&_0x21205e['monthly_limit_usd']!==null?_0x440a88(0x217)+_0x21205e[_0x440a88(0x2d6)]['toFixed'](0x2)+'\x20cap':'\x20(no\x20cap\x20enforced)'),_0x440a88(0x2a1)+_0x31db5b[_0x440a88(0x30d)]+'\x20('+_0x31db5b['model_id']+')'];_0x10ac4d[_0x440a88(0x32c)]!==null&&_0x10ac4d[_0x440a88(0x32c)]!==void 0x0&&_0x341b0f[_0x440a88(0x371)](_0x440a88(0x291)+_0x10ac4d[_0x440a88(0x32c)]+'\x20PU'),process[_0x440a88(0x1f3)][_0x440a88(0x277)](_0x341b0f[_0x440a88(0x328)]('\x0a')+'\x0a');}function sn(_0x211bf4){const _0x206689=_0x2e9e2a;let _0x20c62a=[_0x206689(0x2d3)+_0x211bf4[_0x206689(0x242)]+'\x20days:\x20'+_0x211bf4[_0x206689(0x2e8)]+_0x206689(0x2f7)+_0x211bf4[_0x206689(0x239)]+_0x206689(0x326),_0x206689(0x249)+_0x211bf4[_0x206689(0x20f)][_0x206689(0x1ce)](0x2)+_0x206689(0x1e0)+_0x211bf4[_0x206689(0x238)][_0x206689(0x1ce)](0x2)+_0x206689(0x2c1)+_0x211bf4[_0x206689(0x36f)]+_0x206689(0x353),'Tokens:\x20'+_0x211bf4[_0x206689(0x21a)]+_0x206689(0x20a)+_0x211bf4[_0x206689(0x36c)]+_0x206689(0x2b7)];for(let [_0x270f53,_0x2b8663]of Object[_0x206689(0x1ed)](_0x211bf4[_0x206689(0x37e)]))_0x20c62a[_0x206689(0x371)]('\x20\x20'+_0x270f53+':\x20'+_0x2b8663+_0x206689(0x1fc));process['stdout'][_0x206689(0x277)](_0x20c62a['join']('\x0a')+'\x0a');}function rn(_0x16a475){const _0x572fe2=_0x2e9e2a;if(_0x16a475[_0x572fe2(0x37f)]['length']===0x0){process[_0x572fe2(0x1f3)][_0x572fe2(0x277)](_0x572fe2(0x266)+_0x16a475[_0x572fe2(0x242)]+_0x572fe2(0x1d6));return;}let _0xdc2fc5=[_0x572fe2(0x347)];for(let _0x5d5c98 of _0x16a475[_0x572fe2(0x37f)])_0xdc2fc5[_0x572fe2(0x371)](_0x5d5c98[_0x572fe2(0x301)]+'\x20\x20'+String(_0x5d5c98[_0x572fe2(0x26f)])[_0x572fe2(0x269)](0xb)+'\x20\x20'+String(_0x5d5c98['prompt_tokens'])[_0x572fe2(0x269)](0xd)+'\x20\x20'+String(_0x5d5c98[_0x572fe2(0x247)])[_0x572fe2(0x269)](0x11));process[_0x572fe2(0x1f3)][_0x572fe2(0x277)](_0xdc2fc5[_0x572fe2(0x328)]('\x0a')+'\x0a');}async function an(_0x53f41c,_0x5adefe){const _0xa4ad48=_0x2e9e2a;let _0x3d22af=await ln(_0x53f41c['prompt'],_0x5adefe);_0x53f41c[_0xa4ad48(0x215)]&&(_0x3d22af[_0xa4ad48(0x215)]=_0x53f41c[_0xa4ad48(0x215)]);let {client:_0x57b0a6}=await v(_0x53f41c);try{_0x5adefe===_0xa4ad48(0x1ee)?u(_0x53f41c,await _0x1fec2d(_0x57b0a6,_0x3d22af,void 0x0),dn):_0x5adefe===_0xa4ad48(0x2b6)?u(_0x53f41c,await _0x106b08(_0x57b0a6,_0x3d22af,void 0x0),un):u(_0x53f41c,await _0x63e95f(_0x57b0a6,_0x3d22af,void 0x0),pn);}catch(_0x3f659d){if(!_0x41fd98(_0x3f659d))throw _0x3f659d;console['error'](_0x3f659d[_0xa4ad48(0x290)]),process[_0xa4ad48(0x26b)](0x1);}}async function ln(_0x32d281,_0x5a598b){const _0x114952=_0x2e9e2a;let _0x2c2ad0;try{_0x2c2ad0=_0x32d281&&_0x32d281!=='-'?_0x59b7ea[_0x114952(0x2af)](_0x15228c['resolve'](_0x32d281),'utf-8'):await j(_0x32d281,process[_0x114952(0x27c)]);}catch(_0x4d460a){console[_0x114952(0x2a6)](_0x5a598b+':\x20cannot\x20read\x20the\x20request\x20('+_0x4d460a[_0x114952(0x290)]+').'),process[_0x114952(0x26b)](0x2);}return _0x2c2ad0||(console[_0x114952(0x2a6)](_0x5a598b+'\x20needs\x20a\x20JSON\x20request:\x20delegate-cli\x20'+_0x5a598b+_0x114952(0x1cb)),process[_0x114952(0x26b)](0x2)),Ae(_0x2c2ad0,_0x5a598b,_0x114952(0x241));}function Ae(_0x3dd2b5,_0x4366bf,_0x2c98de){const _0x2e2a5d=_0x2e9e2a;let _0x327739;try{_0x327739=JSON[_0x2e2a5d(0x365)](_0x3dd2b5);}catch(_0x1291d7){console['error'](_0x4366bf+':\x20'+_0x2c98de+'\x20is\x20not\x20valid\x20JSON\x20('+_0x1291d7[_0x2e2a5d(0x290)]+').'),process['exit'](0x2);}return(typeof _0x327739!=_0x2e2a5d(0x246)||_0x327739===null||Array['isArray'](_0x327739))&&(console[_0x2e2a5d(0x2a6)](_0x4366bf+':\x20'+_0x2c98de+'\x20must\x20be\x20a\x20JSON\x20object.'),process[_0x2e2a5d(0x26b)](0x2)),_0x327739;}function $e(_0x135f93,_0x13f62f){const _0x374f29=_0x2e9e2a;let _0x970a30;try{_0x970a30=_0x59b7ea[_0x374f29(0x2af)](_0x15228c[_0x374f29(0x32d)](_0x135f93),_0x374f29(0x211));}catch(_0x513785){console['error'](_0x13f62f+':\x20cannot\x20read\x20the\x20JSON\x20schema\x20('+_0x513785[_0x374f29(0x290)]+').'),process['exit'](0x2);}return Ae(_0x970a30,_0x13f62f,_0x374f29(0x1ba));}async function cn(_0x37fd1e){const _0x2f862b=_0x2e9e2a;_0x37fd1e[_0x2f862b(0x1a7)]===void 0x0&&(console[_0x2f862b(0x2a6)](_0x2f862b(0x2e4)),process[_0x2f862b(0x26b)](0x2));let _0x485468=$e(_0x37fd1e[_0x2f862b(0x1a7)],_0x2f862b(0x1ad)),_0x4662fa=(await j(_0x37fd1e[_0x2f862b(0x34a)],process[_0x2f862b(0x27c)]))[_0x2f862b(0x23a)]();_0x4662fa||(console[_0x2f862b(0x2a6)]('complete\x20needs\x20a\x20prompt:\x20delegate-cli\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22,\x20or\x20-\x20to\x20read\x20stdin.'),process['exit'](0x2));let {client:_0x1efc48}=await v(_0x37fd1e);try{let _0x9852fb=await _0x3c1dee(_0x1efc48,{'prompt':_0x4662fa,'jsonSchema':_0x485468,'model':_0x37fd1e[_0x2f862b(0x215)]||process.env.MODEL||_0x26204d,..._0x37fd1e['sessionId']!==void 0x0&&{'sessionId':_0x37fd1e[_0x2f862b(0x1bd)]}},void 0x0);u(_0x37fd1e,_0x9852fb,_0x452c03=>{const _0x2ebf8b=_0x2f862b;process['stdout'][_0x2ebf8b(0x277)](JSON[_0x2ebf8b(0x251)](_0x452c03[_0x2ebf8b(0x1eb)],null,0x2)+'\x0a');});}catch(_0x380333){if(!_0x3fedeb(_0x380333))throw _0x380333;console['error'](_0x380333[_0x2f862b(0x290)]),process[_0x2f862b(0x26b)](0x1);}}function Y(_0x3a7155){const _0x47eba9=_0x2e9e2a;process[_0x47eba9(0x1f3)][_0x47eba9(0x277)]('Model\x20'+_0x3a7155['model']+'\x20('+_0x3a7155[_0x47eba9(0x287)]+_0x47eba9(0x1a2)+_0x3a7155[_0x47eba9(0x35c)][_0x47eba9(0x1f6)]+_0x47eba9(0x2a7));}function dn(_0x279990){const _0x1e7c2f=_0x2e9e2a;Y(_0x279990);for(let _0x28373a of Object[_0x1e7c2f(0x35a)](_0x279990['answers'])){let _0x453161=_0x279990[_0x1e7c2f(0x1fd)][_0x28373a],_0x308515=_0x453161[_0x1e7c2f(0x1e4)]===_0x1e7c2f(0x35f)?'probability\x20'+_0x453161['probability'][_0x1e7c2f(0x1ce)](0x2):_0x453161[_0x1e7c2f(0x1e4)]===_0x1e7c2f(0x25b)?'choice\x20'+_0x453161[_0x1e7c2f(0x25b)]+_0x1e7c2f(0x27f)+_0x453161['confidence'][_0x1e7c2f(0x1ce)](0x2)+')':_0x1e7c2f(0x295)+_0x453161['score'][_0x1e7c2f(0x1ce)](0x2)+_0x1e7c2f(0x27f)+_0x453161[_0x1e7c2f(0x1b3)][_0x1e7c2f(0x1ce)](0x2)+')';process[_0x1e7c2f(0x1f3)][_0x1e7c2f(0x277)]('\x20\x20'+_0x28373a+':\x20'+_0x308515+'\x0a');}}function un(_0x4ab556){const _0x3ed677=_0x2e9e2a;Y(_0x4ab556),_0x4ab556['results'][_0x3ed677(0x1f0)]((_0x52de14,_0x113d80)=>{const _0x5cb33f=_0x3ed677;process['stdout']['write']('\x20\x20'+(_0x113d80+0x1)+'.\x20'+_0x52de14['id']+'\x20\x20'+_0x52de14[_0x5cb33f(0x2bd)][_0x5cb33f(0x1ce)](0x3)+_0x5cb33f(0x204)+_0x52de14['index']+')\x0a');});}function pn(_0x11a4a0){const _0xf7ef38=_0x2e9e2a;Y(_0x11a4a0),process[_0xf7ef38(0x1f3)][_0xf7ef38(0x277)]('Rubric\x20'+_0x11a4a0[_0xf7ef38(0x2d4)]+'\x0a');for(let _0x2e8bba of _0x11a4a0['results'])process[_0xf7ef38(0x1f3)]['write']('\x20\x20'+_0x2e8bba['id']+':\x20'+_0x2e8bba[_0xf7ef38(0x252)]+_0xf7ef38(0x27f)+_0x2e8bba[_0xf7ef38(0x1b3)][_0xf7ef38(0x1ce)](0x2)+')\x0a');}async function mn(_0x4e9abd){const _0x260fb9=_0x2e9e2a;let _0x10f213=_0x4e9abd[_0x260fb9(0x34a)][_0x260fb9(0x23a)]();_0x10f213||(console[_0x260fb9(0x2a6)]('transcribe\x20needs\x20audio:\x20delegate-cli\x20transcribe\x20<file>,\x20or\x20-\x20to\x20read\x20stdin.'),process[_0x260fb9(0x26b)](0x2));let {client:_0xe7bca3}=await v(_0x4e9abd);try{let _0x2fd246=_0x10f213==='-'?{'data':await fn(process[_0x260fb9(0x27c)])}:_0x10f213;u(_0x4e9abd,await _0x5b2d0c(_0xe7bca3,_0x2fd246,void 0x0),_0x4c5ae1=>{const _0x3beab9=_0x260fb9;process[_0x3beab9(0x1f3)]['write'](_0x4c5ae1['text']+'\x0a');});}catch(_0x4db221){if(_0x289a26(_0x4db221)&&(console['error'](_0x4db221[_0x260fb9(0x290)]),process[_0x260fb9(0x26b)](_0x4db221[_0x260fb9(0x337)]===void 0x0?0x2:0x1)),typeof _0x4db221?.[_0x260fb9(0x1f4)]!=_0x260fb9(0x265))throw _0x4db221;console[_0x260fb9(0x2a6)](_0x260fb9(0x349)+_0x10f213+'\x20('+_0x4db221[_0x260fb9(0x290)]+').'),process[_0x260fb9(0x26b)](0x2);}}async function fn(_0x227b45){const _0x560d0a=_0x2e9e2a;let _0x14f8a8=[];for await(let _0x50b0ab of _0x227b45)_0x14f8a8['push'](Buffer[_0x560d0a(0x2cf)](_0x50b0ab));return Buffer[_0x560d0a(0x2e2)](_0x14f8a8);}var ce=[_0x2e9e2a(0x336),_0x2e9e2a(0x22f),_0x2e9e2a(0x2eb),_0x2e9e2a(0x29f),_0x2e9e2a(0x202),_0x2e9e2a(0x1ad),_0x2e9e2a(0x29a),_0x2e9e2a(0x1c3),_0x2e9e2a(0x212),_0x2e9e2a(0x2ed)],de={'list':'delegations\x20list\x20<backend-project-id>','pending':_0x2e9e2a(0x20b),'show':'delegations\x20show\x20<delegation-id|delegate://delegation/…>','create':_0x2e9e2a(0x2e6),'claim':_0x2e9e2a(0x1cc),'complete':_0x2e9e2a(0x37c),'accept':_0x2e9e2a(0x1e8),'dismiss':_0x2e9e2a(0x2ec),'cancel':_0x2e9e2a(0x1d1),'delete':'delegations\x20delete\x20<delegation-id>'};async function gn(_0x6c676a){const _0x8067a3=_0x2e9e2a;let [_0x3bb831='',_0x387c22='',..._0x288f15]=_0x6c676a[_0x8067a3(0x263)];ce[_0x8067a3(0x284)](_0x3bb831)||(console['error']((_0x3bb831?_0x8067a3(0x226)+_0x3bb831+'.\x20':'')+_0x8067a3(0x2b3)+ce[_0x8067a3(0x328)]('\x20|\x20')+'.'),process['exit'](0x2));let _0xab68e5=_0x3bb831;_0xab68e5!==_0x8067a3(0x29f)&&(_0x6c676a['delegateTo']!==void 0x0||_0x6c676a['contextSummary']!==void 0x0||_0x6c676a[_0x8067a3(0x1bd)]!==void 0x0)&&(console[_0x8067a3(0x2a6)](_0x8067a3(0x209)),process[_0x8067a3(0x26b)](0x2));let _0x355db9=(_0xab68e5==='create'?_0x6c676a['operands'][_0x8067a3(0x2f0)](0x1):_0x288f15)[_0x8067a3(0x328)]('\x20')['trim'](),_0x5eaa12=_0xab68e5===_0x8067a3(0x29f)||_0xab68e5==='complete';(_0xab68e5!==_0x8067a3(0x29f)&&!_0x387c22||(_0x5eaa12?!_0x355db9:_0x355db9)||_0xab68e5===_0x8067a3(0x29f)&&!_0x6c676a['sessionId'])&&(console[_0x8067a3(0x2a6)](_0x8067a3(0x384)+de[_0xab68e5]),process[_0x8067a3(0x26b)](0x2));let _0x20bb0e=_0x5eaa12&&_0x355db9==='-'?(await j('-',process['stdin']))['trim']():_0x355db9;_0x5eaa12&&!_0x20bb0e&&(console['error'](_0x8067a3(0x384)+de[_0xab68e5]+_0x8067a3(0x357)),process[_0x8067a3(0x26b)](0x2));let {client:_0x51e484}=await v(_0x6c676a);try{await hn(_0x6c676a,_0x51e484,_0xab68e5,_0x387c22,_0x20bb0e);}catch(_0x31ff96){if(!_0x54dd7f(_0x31ff96))throw _0x31ff96;console['error'](_0x31ff96[_0x8067a3(0x290)]),process[_0x8067a3(0x26b)](0x1);}}async function hn(_0x41effd,_0x1550ba,_0x5667e4,_0x136b76,_0x19d6b3){const _0x528d1f=_0x2e9e2a;switch(_0x5667e4){case'list':u(_0x41effd,await _0x46b2c2(_0x1550ba,_0x136b76),yn);return;case _0x528d1f(0x22f):u(_0x41effd,await _0x541a60(_0x1550ba,_0x136b76),_0x27ade9=>{const _0x147323=_0x528d1f;_0x27ade9[_0x147323(0x278)]&&process['stdout']['write'](_0x147323(0x324)+_0x27ade9[_0x147323(0x278)]['id']+'\x20('+_0x27ade9[_0x147323(0x278)][_0x147323(0x337)]+_0x147323(0x221)),_0x27ade9[_0x147323(0x348)][_0x147323(0x1ae)]===0x0&&process[_0x147323(0x2c8)][_0x147323(0x277)](_0x147323(0x2f6));for(let _0x293cd1 of _0x27ade9[_0x147323(0x348)])process[_0x147323(0x1f3)]['write']('\x0a'+_0x293cd1['id']+_0x147323(0x1a0)+(_0x293cd1['assignedUserEmail']??_0x147323(0x28f))+'\x20\x20'+(_0x293cd1[_0x147323(0x330)]??'')+'\x0a'+(_0x293cd1[_0x147323(0x2f5)]?.[_0x147323(0x2c5)]??'')+'\x0a');_0x27ade9['pendingResults'][_0x147323(0x1ae)]>0x0&&process[_0x147323(0x2c8)]['write']('\x0aAccept\x20one\x20with:\x20delegate-cli\x20delegations\x20accept\x20<id>\x0a');});return;case'show':u(_0x41effd,await _0x41c1ab(_0x1550ba,_0x136b76),ue);return;case _0x528d1f(0x29f):{let _0x280e9c=await _0x17c9b9(_0x1550ba,{'sessionId':_0x41effd[_0x528d1f(0x1bd)],'task':_0x19d6b3,..._0x41effd[_0x528d1f(0x321)]!==void 0x0&&{'contextSummary':_0x41effd['contextSummary']},..._0x41effd[_0x528d1f(0x214)]!==void 0x0&&{'recipient':_0x41effd[_0x528d1f(0x214)]}});u(_0x41effd,_0x280e9c,_0x481d2e=>{const _0x13ba85=_0x528d1f;_0x481d2e[_0x13ba85(0x373)]?process[_0x13ba85(0x1f3)]['write']('Delegated\x20'+_0x481d2e[_0x13ba85(0x1db)]+_0x13ba85(0x342)+_0x481d2e[_0x13ba85(0x373)][_0x13ba85(0x29e)]+'\x20<'+_0x481d2e[_0x13ba85(0x373)][_0x13ba85(0x23c)]+_0x13ba85(0x316)):process[_0x13ba85(0x1f3)][_0x13ba85(0x277)]('Created\x20delegation\x20'+_0x481d2e['delegationId']+_0x13ba85(0x313)+_0x481d2e['deepLink']+'\x0a');});return;}case _0x528d1f(0x202):{let _0x46d971=await _0x4a11ec(_0x1550ba,_0x136b76);u(_0x41effd,_0x46d971,_0x3ad542=>{const _0x3044cb=_0x528d1f;ue(_0x3ad542),process[_0x3044cb(0x1f3)][_0x3044cb(0x277)](_0x3044cb(0x332)+_0x3ad542[_0x3044cb(0x1bd)]+'\x0a'),process[_0x3044cb(0x2c8)][_0x3044cb(0x277)]('Work\x20on\x20it\x20with:\x20delegate-cli\x20--session\x20'+_0x3ad542[_0x3044cb(0x1bd)]+'\x20\x22<prompt>\x22\x0aAnswer\x20with:\x20delegate-cli\x20delegations\x20complete\x20'+_0x3ad542['delegationId']+'\x20\x22<answer>\x22\x0a');});return;}case _0x528d1f(0x1ad):{let {alreadyCompleted:_0x5b9e8e}=await _0x1eb4e4(_0x1550ba,_0x136b76,{'content':_0x19d6b3});u(_0x41effd,{'delegationId':_0x136b76,'alreadyCompleted':_0x5b9e8e},_0x3a9f4a=>{const _0x329eb7=_0x528d1f;process[_0x329eb7(0x1f3)]['write']((_0x3a9f4a['alreadyCompleted']?_0x329eb7(0x2fa):_0x329eb7(0x2ad))+_0x329eb7(0x1d0)+_0x3a9f4a[_0x329eb7(0x1db)]+'.\x0a');});return;}case _0x528d1f(0x29a):{let _0x174f90=await _0x277c5f(_0x1550ba,_0x136b76);u(_0x41effd,{'delegationId':_0x136b76,..._0x174f90},_0x2dd625=>{const _0xc71fff=_0x528d1f;process[_0xc71fff(0x1f3)][_0xc71fff(0x277)]((_0x2dd625[_0xc71fff(0x1dc)]?_0xc71fff(0x34b):'Accepted')+_0xc71fff(0x1d0)+_0x2dd625[_0xc71fff(0x1db)]+'.\x0a');});return;}default:{let _0x3dbbd5={'dismiss':_0x4dce77,'cancel':_0x2823fd,'delete':_0x1208c3}[_0x5667e4];await _0x3dbbd5(_0x1550ba,_0x136b76);let _0x416e17={'dismiss':_0x528d1f(0x2bb),'cancel':_0x528d1f(0x318),'delete':_0x528d1f(0x366)}[_0x5667e4];u(_0x41effd,{'delegationId':_0x136b76,[_0x416e17]:!0x0},()=>{const _0x443d01=_0x528d1f;process[_0x443d01(0x1f3)][_0x443d01(0x277)](''+_0x416e17[0x0][_0x443d01(0x361)]()+_0x416e17[_0x443d01(0x2f0)](0x1)+_0x443d01(0x1d0)+_0x136b76+'.\x0a');});}}}function yn(_0x5e0dcc){const _0x408862=_0x2e9e2a;if(_0x5e0dcc['length']===0x0){process[_0x408862(0x2c8)]['write'](_0x408862(0x338));return;}process[_0x408862(0x1f3)][_0x408862(0x277)]('ID'[_0x408862(0x372)](0x24)+'\x20\x20'+'STATUS'[_0x408862(0x372)](0x9)+'\x20\x20'+'ASSIGNEE'['padEnd'](0x18)+_0x408862(0x1bb));for(let _0x36de1c of _0x5e0dcc)process[_0x408862(0x1f3)][_0x408862(0x277)](_0x36de1c['id'][_0x408862(0x372)](0x24)+'\x20\x20'+_0x36de1c['status'][_0x408862(0x372)](0x9)+'\x20\x20'+(_0x36de1c[_0x408862(0x1de)]??'-')[_0x408862(0x372)](0x18)+'\x20\x20'+(_0x36de1c['task']??'')+'\x0a');}function ue(_0x10edcd){const _0x188272=_0x2e9e2a;process[_0x188272(0x1f3)][_0x188272(0x277)](_0x188272(0x1ec)+(_0x10edcd[_0x188272(0x2e1)]??'-')+'\x0a'),_0x10edcd['sourceTitle']&&process[_0x188272(0x1f3)]['write'](_0x188272(0x332)+_0x10edcd[_0x188272(0x20c)]+'\x0a'),process[_0x188272(0x1f3)][_0x188272(0x277)](_0x188272(0x1e6)+(_0x10edcd['task']??'-')+'\x0a'),_0x10edcd['contextSummary']&&process[_0x188272(0x1f3)][_0x188272(0x277)]('\x0a'+_0x10edcd['contextSummary']+'\x0a\x0a');}async function wn(_0x4215a0){const _0x2564bc=_0x2e9e2a;_0x4215a0[_0x2564bc(0x34a)]['trim']()||(console[_0x2564bc(0x2a6)](_0x2564bc(0x257)),process[_0x2564bc(0x26b)](0x2));let {client:_0x45c37b}=await v(_0x4215a0),_0x3b53a4;try{_0x3b53a4=await _0x16263d(_0x45c37b,_0x4215a0[_0x2564bc(0x34a)]);}catch(_0x2b94fb){if(!_0x54dd7f(_0x2b94fb))throw _0x2b94fb;console[_0x2564bc(0x2a6)](_0x2b94fb[_0x2564bc(0x290)]),process[_0x2564bc(0x26b)](0x1);}u(_0x4215a0,_0x3b53a4,_0x50bd75=>{const _0x43a01d=_0x2564bc;_0x50bd75[_0x43a01d(0x1ae)]===0x0&&process[_0x43a01d(0x2c8)][_0x43a01d(0x277)]('No\x20one\x20matches\x20\x22'+_0x4215a0['prompt'][_0x43a01d(0x23a)]()+_0x43a01d(0x34c));for(let _0x32c59b of _0x50bd75)process[_0x43a01d(0x1f3)][_0x43a01d(0x277)](_0x32c59b[_0x43a01d(0x23c)][_0x43a01d(0x372)](0x20)+'\x20\x20'+_0x32c59b['displayName']+'\x0a');});}async function kn(_0xb9ec73){const _0x128f14=_0x2e9e2a;_0xb9ec73[_0x128f14(0x2ea)]===_0x128f14(0x271)&&(console[_0x128f14(0x2a6)]('--env\x20localhost\x20has\x20no\x20OAuth\x20flow;\x20pick\x20alpha,\x20staging,\x20or\x20production.'),process['exit'](0x2));let _0x50c454=M(_0x1e3ef0()),_0x382c03=_0xb9ec73['skipEnvCheck'];if(_0xb9ec73[_0x128f14(0x2ea)]){let _0x28b42d=_0xb9ec73[_0x128f14(0x2ea)];await _0x5cc19f({'env':_0x28b42d,'tenant':_0xb9ec73['tenant']??G(_0x50c454,_0x2d5a18[_0x28b42d]),'skipEnvCheck':_0x382c03});return;}let _0x2880c3=_0xb9ec73[_0x128f14(0x232)]??ve();if(_0x2880c3){await _0x5cc19f({'baseUrl':_0x2880c3,'tenant':_0xb9ec73[_0x128f14(0x329)]??G(_0x50c454,_0x2880c3),'skipEnvCheck':_0x382c03});return;}if(_0x50c454?.[_0x128f14(0x2e9)]){await _0x5cc19f({'baseUrl':_0x50c454[_0x128f14(0x2e9)],'tenant':_0xb9ec73['tenant']??_0x50c454['tenantName'],'skipEnvCheck':_0x382c03});return;}console[_0x128f14(0x2a6)](_0x128f14(0x378)),process[_0x128f14(0x26b)](0x2);}function G(_0x53d18e,_0x51fb7f){const _0x2c56c2=_0x2e9e2a;return _0x53d18e?.[_0x2c56c2(0x2e9)]&&bn(_0x53d18e['baseUrl'],_0x51fb7f)?_0x53d18e[_0x2c56c2(0x2f2)]:void 0x0;}function bn(_0x3cce2f,_0x56a668){const _0x3c4679=_0x2e9e2a;try{return new URL(_0x3cce2f)[_0x3c4679(0x21f)]===new URL(_0x56a668)[_0x3c4679(0x21f)];}catch{return!0x1;}}async function Sn(_0x4dc5f6){const _0x30a4b2=_0x2e9e2a;Q()&&(console[_0x30a4b2(0x2a6)](_0x30a4b2(0x2fe)),process['exit'](0x2));let _0x2e1719=await _0x4714a4();if(_0x2e1719||(console['error'](vn()),process[_0x30a4b2(0x26b)](0x2)),_0x4dc5f6[_0x30a4b2(0x23a)]()){let _0x53e843=await _0x427fa9(_0x2e1719,_0x4dc5f6);_0x15eb87(_0x53e843)||(console[_0x30a4b2(0x2a6)](_0x30a4b2(0x280)+_0x1e3ef0()+_0x30a4b2(0x30c)+_0x2e1719[_0x30a4b2(0x2f2)]+'.'),process[_0x30a4b2(0x26b)](0x1)),console[_0x30a4b2(0x2f8)](_0x30a4b2(0x276)+_0x53e843['tenantName']+'\x20('+_0x53e843[_0x30a4b2(0x281)]+_0x30a4b2(0x21c)+_0x1e3ef0());return;}An(await _0x4f0daa(_0x2e1719),_0x2e1719);}function vn(){const _0x48749b=_0x2e9e2a;if(_0x59b7ea[_0x48749b(0x260)](_0x1e3ef0()))return _0x48749b(0x28d);let _0x1fe766=K();return M(_0x1fe766)?_0x48749b(0x360)+_0x1fe766+',\x20whose\x20tenant\x20is\x20chosen\x20in\x20the\x20app.\x20Run\x20`delegate-cli\x20login\x20--env\x20<env>`\x20for\x20a\x20CLI\x20login\x20of\x20your\x20own.':_0x48749b(0x2d7);}function An(_0x5b8869,_0x4cead2){const _0x7b46f7=_0x2e9e2a;let _0x190691=_0x5b8869['map'](_0x215a38=>_0x215a38['id']===_0x4cead2[_0x7b46f7(0x281)]?'*\x20'+_0x215a38[_0x7b46f7(0x358)]+_0x7b46f7(0x2a5):'\x20\x20'+_0x215a38[_0x7b46f7(0x358)]);process[_0x7b46f7(0x1f3)][_0x7b46f7(0x277)](_0x7b46f7(0x1bf)+(_0x4cead2[_0x7b46f7(0x351)]??_0x4cead2[_0x7b46f7(0x297)])+':\x0a'+_0x190691[_0x7b46f7(0x328)]('\x0a')+'\x0a'),_0x5b8869['length']>0x1&&process[_0x7b46f7(0x1f3)][_0x7b46f7(0x277)](_0x7b46f7(0x35d));}function $n(_0x563eb6){const _0x394f5d=_0x2e9e2a;return _0x563eb6?.['response']?.['status']===0x191||/401/[_0x394f5d(0x254)](String(_0x563eb6?.[_0x394f5d(0x290)]??''));}var f={'lastType':null,'quiet':!0x1},Ee=_0x554e67=>{const _0x4c5738=_0x2e9e2a;switch(_0x554e67[_0x4c5738(0x1e4)]){case _0x4c5738(0x1da):_0x554e67[_0x4c5738(0x1bd)]&&_0x554e67[_0x4c5738(0x1bd)]!==f['sessionId']&&(process[_0x4c5738(0x2c8)][_0x4c5738(0x277)](_0x4c5738(0x2ae)+_0x554e67[_0x4c5738(0x1bd)]+_0x4c5738(0x1e3)+_0x554e67[_0x4c5738(0x1bd)]+')\x0a'),f[_0x4c5738(0x1bd)]=_0x554e67[_0x4c5738(0x1bd)]);break;case _0x4c5738(0x1cf):_0x554e67[_0x4c5738(0x2e3)]&&_0x554e67[_0x4c5738(0x2e3)]!==f['turnId']&&(f[_0x4c5738(0x31b)]!==null&&process[_0x4c5738(0x2c8)]['write']('\x0a'),process[_0x4c5738(0x2c8)][_0x4c5738(0x277)](_0x4c5738(0x370)+_0x554e67[_0x4c5738(0x2e3)]+_0x4c5738(0x352)+_0x554e67['sessionId']+_0x4c5738(0x305)+_0x554e67['turnId']+')\x0a'),f[_0x4c5738(0x2e3)]=_0x554e67[_0x4c5738(0x2e3)],f[_0x4c5738(0x31b)]=_0x4c5738(0x1cf));break;case _0x4c5738(0x2d9):_0x554e67[_0x4c5738(0x2c5)]&&!f[_0x4c5738(0x369)]&&(f['lastType']!=='thinking'&&process[_0x4c5738(0x2c8)][_0x4c5738(0x277)](_0x4c5738(0x258)),process[_0x4c5738(0x2c8)][_0x4c5738(0x277)](_0x554e67[_0x4c5738(0x2c5)]),f['lastType']=_0x4c5738(0x2d9));break;case _0x4c5738(0x286):f['lastType']!==null&&process[_0x4c5738(0x2c8)]['write']('\x0a'),process[_0x4c5738(0x2c8)][_0x4c5738(0x277)](_0x4c5738(0x279)+(_0x554e67[_0x4c5738(0x1dd)]??_0x4c5738(0x1f1))+'\x0a'),f[_0x4c5738(0x31b)]=_0x4c5738(0x286);break;case _0x4c5738(0x290):_0x554e67[_0x4c5738(0x2c5)]&&(f[_0x4c5738(0x31b)]!=='message'&&f[_0x4c5738(0x31b)]!==null&&process[_0x4c5738(0x1f3)]['write']('\x0a'),process[_0x4c5738(0x1f3)]['write'](_0x554e67[_0x4c5738(0x2c5)]),f['lastType']=_0x4c5738(0x290));break;case _0x4c5738(0x2a6):f[_0x4c5738(0x31b)]!==null&&process[_0x4c5738(0x2c8)][_0x4c5738(0x277)]('\x0a'),process[_0x4c5738(0x2c8)]['write']('✗\x20'+(_0x554e67[_0x4c5738(0x2a6)]??_0x4c5738(0x2a6))+'\x0a'),f[_0x4c5738(0x31b)]=_0x4c5738(0x2a6);break;case'done':(f['lastType']===_0x4c5738(0x290)||f[_0x4c5738(0x31b)]===_0x4c5738(0x2d9))&&process[_0x4c5738(0x1f3)]['write']('\x0a'),process[_0x4c5738(0x2c8)][_0x4c5738(0x277)](_0x4c5738(0x1a8)),f['lastType']=_0x4c5738(0x2be);break;}};function pe(_0x4b2bec,_0x39accf,_0x19692f,_0x200f86){const _0x2de8f9=_0x2e9e2a;let _0x2ef59d=_0x4b2bec['model']||process.env.MODEL;return{'backendUrl':_0x19692f,'auth':_0x39accf,'enableComputerUse':!_0x4b2bec[_0x2de8f9(0x37b)]&&!_0x4b2bec['noComputerUse'],'autoSpawnInterop':!_0x4b2bec['headless'],'enableConnections':!_0x4b2bec[_0x2de8f9(0x2c7)],'enableSecurity':!_0x4b2bec['noSecurity'],'keepInteropAlive':_0x4b2bec[_0x2de8f9(0x1ef)],..._0x200f86['oneTurn']?{'enableBackgroundCommands':!0x1}:{},..._0x4b2bec[_0x2de8f9(0x1ea)]?{'enableMemory':!0x1}:{},..._0x4b2bec[_0x2de8f9(0x379)]?{'enableTaskAutomation':!0x0}:{},..._0x4b2bec[_0x2de8f9(0x2ab)]['length']>0x0?{'preloadSkills':_0x4b2bec[_0x2de8f9(0x2ab)]}:{},..._0x2ef59d?{'model':_0x2ef59d}:{},..._0x4b2bec['projectId']?{'projectId':_0x4b2bec[_0x2de8f9(0x2d1)]}:{},..._0x4b2bec[_0x2de8f9(0x1c6)]?{'workingDirectory':_0x4b2bec['workingDirectory']}:{},..._0x4b2bec[_0x2de8f9(0x22e)]?{'bundledSkillsPath':_0x4b2bec[_0x2de8f9(0x22e)]}:{},..._0x4b2bec['effort']?{'effort':_0x4b2bec['effort']}:{},..._0x4b2bec['sessionId']?{'sessionId':_0x4b2bec['sessionId']}:{},..._0x4b2bec['verbose']?{'verbose':!0x0}:{}};}async function En(_0x5385c1){const _0x24c064=_0x2e9e2a;let _0x513633=_0x5385c1[_0x24c064(0x2c0)]!==_0x24c064(0x2c4),_0x3e0aa6=_0x5385c1['jsonSchemaPath']===void 0x0?null:$e(_0x5385c1[_0x24c064(0x1a7)],_0x24c064(0x27a)),_0x28301d=!_0x513633&&!_0x3e0aa6&&!_0x5385c1[_0x24c064(0x21b)]&&_0x5385c1['prompt']!=='-'&&!!process[_0x24c064(0x27c)][_0x24c064(0x27d)]&&!!process[_0x24c064(0x1f3)][_0x24c064(0x27d)],_0x4975b5=_0x28301d?_0x5385c1[_0x24c064(0x34a)][_0x24c064(0x23a)]():await j(_0x5385c1[_0x24c064(0x34a)],process[_0x24c064(0x27c)]);if(!_0x28301d&&!_0x4975b5&&(console['error'](_0x24c064(0x268)),process[_0x24c064(0x26b)](0x2)),!_0x513633){await me(_0x5385c1,_0x4975b5,_0x28301d,null,_0x3e0aa6);return;}let _0x3e0a15=!0x1,_0x59d162=_0x3bfc53=>{const _0x34ce47=_0x24c064;_0x3e0a15=!0x0,P(_0x429094(_0x3bfc53)),(_0x3bfc53[_0x34ce47(0x1a9)]||_0x3bfc53['structuredError'])&&(process[_0x34ce47(0x320)]=0x1);},_0x1b3b97=Date['now']();try{await me(_0x5385c1,_0x4975b5,!0x1,_0x59d162,_0x3e0aa6);}catch(_0x4be410){if(_0x3e0a15)throw _0x4be410;process['stderr'][_0x24c064(0x277)]((_0x4be410 instanceof Error?_0x4be410['stack']??_0x4be410[_0x24c064(0x290)]:String(_0x4be410))+'\x0a'),_0x59d162(new _0xbeddc4(_0x1b3b97)[_0x24c064(0x2a0)]({'endedAtMs':Date[_0x24c064(0x294)](),'usage':[],'error':_0x4be410}));}}async function me(_0x4e755b,_0x1a8427,_0x1529ea,_0x161f51,_0x5140f2){const _0xf44b14=_0x2e9e2a;f={'lastType':null,'quiet':_0x4e755b['quiet']};let _0x1d006f=new Set(),_0x421646,_0x14c2c3=_0x1f5833=>{const _0x41b6ef=_0xced2;(!_0x161f51||_0x1f5833['type']===_0x41b6ef(0x1da)||_0x1f5833['type']===_0x41b6ef(0x1cf))&&(_0x421646??Ee)(_0x1f5833);for(let _0x3ee2bf of _0x1d006f)_0x3ee2bf(_0x1f5833);},_0xad7c37=await q(),_0x54fe06=new _0x5139ac();_0x54fe06[_0xf44b14(0x375)](_0x14c2c3);let _0x226d8e=_0x93f1b3(_0x4e755b['env'],_0xad7c37,_0x4e755b['backendUrl']);z(_0x4e755b['env'],_0x4e755b[_0xf44b14(0x1e1)],_0x226d8e);let _0x49a65b={'input':null},_0x5887cf=_0x1529ea?Z(()=>_0x49a65b[_0xf44b14(0x24d)],_0x15a796=>{const _0x3906cd=_0xf44b14;process[_0x3906cd(0x2c8)][_0x3906cd(0x277)](_0x15a796);}):null,_0x42ac59=_0x3dd1f7=>_0x5887cf?{..._0x3dd1f7,'askUser':_0x5887cf}:_0x3dd1f7,_0x416e7e=_0x42ac59(pe(_0x4e755b,_0xad7c37,_0x226d8e,{'oneTurn':!_0x1529ea})),_0xa5053e=!0x1,_0x685dfa=!0x1,_0x4fc48d,_0x3f7a12=()=>_0x4fc48d??=_0x54fe06['destroy'](),_0x3f484f=()=>{const _0x5175c5=_0xf44b14;_0x685dfa&&process[_0x5175c5(0x26b)](0x82),_0x685dfa=!0x0,process[_0x5175c5(0x2c8)][_0x5175c5(0x277)](_0x5175c5(0x28a)),_0xa5053e&&_0x54fe06[_0x5175c5(0x212)]()[_0x5175c5(0x341)](_0x4d5af5=>console['error'](_0x4d5af5))[_0x5175c5(0x255)](_0x3f7a12)[_0x5175c5(0x255)](()=>process[_0x5175c5(0x26b)](0x82),_0x32e5fd=>{const _0x5c7f6a=_0x5175c5;console[_0x5c7f6a(0x2a6)](_0x32e5fd),process['exit'](0x82);});};process['on'](_0xf44b14(0x2b5),_0x3f484f);let _0x2811aa=_0x4e755b[_0xf44b14(0x2a2)],_0xa8b876=async _0x5c2037=>{const _0x8a9f1d=_0xf44b14;let _0x5705a2=_0x2811aa;_0x2811aa=[];let _0x2d4db4=()=>_0x54fe06[_0x8a9f1d(0x236)](_0x5c2037,{'attachments':_0x5705a2});try{return await _0x2d4db4();}catch(_0x20cd32){if(_0x685dfa||!$n(_0x20cd32)||!process[_0x8a9f1d(0x27c)]['isTTY']||_0x4e755b[_0x8a9f1d(0x2ea)]===_0x8a9f1d(0x271)||!(_0x4e755b[_0x8a9f1d(0x2ea)]||_0xad7c37['baseUrl']))throw _0x20cd32;process['stderr'][_0x8a9f1d(0x277)]('\x0a⚠️\x20\x20Auth\x20expired.\x20Opening\x20browser\x20to\x20re-login…\x0a');let _0x1f59fd=_0x54fe06[_0x8a9f1d(0x2df)]()??_0x4e755b[_0x8a9f1d(0x1bd)],_0x2cdb0b=await _0x5cc19f(_0x4e755b[_0x8a9f1d(0x2ea)]?{'env':_0x4e755b[_0x8a9f1d(0x2ea)],'tenant':G(_0xad7c37,_0x2d5a18[_0x4e755b[_0x8a9f1d(0x2ea)]]),'skipEnvCheck':!0x0}:{'baseUrl':_0xad7c37[_0x8a9f1d(0x2e9)],'tenant':_0xad7c37[_0x8a9f1d(0x2f2)],'skipEnvCheck':!0x0}),_0x564747={'text':'','failed':!0x1,'sessionId':_0x1f59fd};return _0x685dfa||(_0xa5053e=!0x1,await _0x3f7a12(),_0x685dfa)?_0x564747:(_0x54fe06=new _0x5139ac(),_0x4fc48d=void 0x0,_0x54fe06[_0x8a9f1d(0x375)](_0x14c2c3),_0xad7c37=_0x2cdb0b,await _0x54fe06[_0x8a9f1d(0x219)]({..._0x42ac59(pe(_0x4e755b,_0xad7c37,_0x226d8e,{'oneTurn':!_0x1529ea})),..._0x1f59fd?{'sessionId':_0x1f59fd}:{}}),_0xa5053e=!0x0,_0x685dfa?_0x564747:_0x2d4db4());}};try{if(await _0x54fe06[_0xf44b14(0x219)](_0x416e7e),_0xa5053e=!0x0,_0x685dfa)return;if(_0x1529ea)await xn({'prompt':_0x1a8427,'sendMessage':_0xa8b876,'onSigint':_0x3f484f,'setAnswerInput':_0x1f88b9=>{_0x49a65b['input']=_0x1f88b9;},'registerEventPrinter':_0x9d6b5f=>(_0x421646=_0x9d6b5f,()=>{_0x421646=void 0x0;})});else{if(_0x161f51||_0x5140f2){let _0x4ccd9c=_0x4e755b['outputFormat']===_0xf44b14(0x382)?_0x2de80b=>P(_0x48f5ca(_0x2de80b)):()=>{},_0x40c81a=await _0x1e2096({'onEvent':_0x4ad60a=>(_0x1d006f['add'](_0x4ad60a),()=>{const _0x212686=_0xf44b14;_0x1d006f[_0x212686(0x2ed)](_0x4ad60a);}),'sendMessage':_0x1005a3=>_0xa8b876(_0x1005a3),'getSessionId':()=>_0x54fe06[_0xf44b14(0x2df)](),'getTurnUsageHistory':_0x5561d=>_0x54fe06[_0xf44b14(0x22c)](_0x5561d),'complete':_0x2258df=>_0x54fe06[_0xf44b14(0x1ad)](_0x2258df)},_0x1a8427,void 0x0,_0x4ccd9c,_0x5140f2?{'outputSchema':_0x5140f2}:void 0x0);_0x161f51?_0x161f51(_0x40c81a):In(_0x40c81a);}else await _0xa8b876(_0x1a8427);}}catch(_0x4ecdd3){if(!_0x685dfa)throw _0x4ecdd3;}finally{try{await _0x3f7a12();}finally{process['off']('SIGINT',_0x3f484f),_0x685dfa&&(process[_0xf44b14(0x320)]=0x82);}}}function In(_0x1a69fe){const _0x5efd70=_0x2e9e2a;_0x1a69fe[_0x5efd70(0x2a9)]?(console[_0x5efd70(0x2a6)]('Structured\x20output\x20failed:\x20'+_0x1a69fe[_0x5efd70(0x2a9)][_0x5efd70(0x290)]),process['exitCode']=0x1):_0x1a69fe[_0x5efd70(0x1a9)]?(console[_0x5efd70(0x2a6)]('No\x20structured\x20output:\x20the\x20turn\x20failed\x20('+_0x1a69fe[_0x5efd70(0x2a6)]+').'),process[_0x5efd70(0x320)]=0x1):process[_0x5efd70(0x1f3)]['write'](JSON[_0x5efd70(0x251)](_0x1a69fe['structured'],null,0x2)+'\x0a');}function Tn(_0xb757fe,_0x487959){const _0x51b2b9=_0x2e9e2a;let _0x22d120=process[_0x51b2b9(0x1f3)][_0x51b2b9(0x277)]['bind'](process[_0x51b2b9(0x1f3)]),_0x5010d7=!0x1;return process[_0x51b2b9(0x1f3)]['write']=(..._0x38d887)=>{const _0x41c17d=_0x51b2b9;if(!_0x5010d7)return _0x22d120(..._0x38d887);_0xee09a1(_0x487959,0x0),_0x24795e(_0x487959,0x0);let _0x22c546=_0x22d120(..._0x38d887);return _0xb757fe[_0x41c17d(0x34a)](!0x0),_0x22c546;},{'show':()=>{const _0x11fb13=_0x51b2b9;_0x5010d7=!0x0,_0xb757fe[_0x11fb13(0x34a)]();},'hide':()=>{_0x5010d7=!0x1;},'erase':()=>{_0x5010d7&&(_0xee09a1(_0x487959,0x0),_0x24795e(_0x487959,0x0)),_0x5010d7=!0x1;},'restore':()=>{const _0x43d111=_0x51b2b9;_0x5010d7=!0x1,process[_0x43d111(0x1f3)]['write']=_0x22d120;}};}async function xn({prompt:_0x271c0e,sendMessage:_0x36187a,onSigint:_0x403722,setAnswerInput:_0x1850f4,registerEventPrinter:_0x49a2d7}){const _0x25b686=_0x2e9e2a;let _0x2eae6b=_0x2757a9({'input':process['stdin'],'output':process[_0x25b686(0x2c8)],'terminal':!0x0,'prompt':_0x25b686(0x227)}),_0x59ec1c=Tn(_0x2eae6b,process['stderr']),_0x442736=[],_0xb04b00,_0x130c14,_0x4c74a6,_0xfe726c=!0x1,_0x45e708=!0x1,_0x2aa24a=!0x1,_0x310bc4=Promise['resolve'](),_0x52728a,_0x3731de=_0x49a2d7(_0x22694f=>{const _0xaa7733=_0x25b686;_0x22694f[_0xaa7733(0x1e4)]===_0xaa7733(0x1da)&&(_0x59ec1c[_0xaa7733(0x1b9)](),_0x310bc4=new Promise(_0x3aedf7=>{_0x52728a=_0x3aedf7;})),Ee(_0x22694f),_0x22694f[_0xaa7733(0x1e4)]===_0xaa7733(0x2be)&&(_0x52728a?.(),_0x52728a=void 0x0,!_0x2aa24a&&!_0xfe726c&&_0x59ec1c[_0xaa7733(0x2eb)]());}),_0x2002f9=()=>{const _0x939ce=_0x25b686;_0x45e708=!0x0,_0x52728a?.(),_0x403722(),_0x2eae6b[_0x939ce(0x1e7)]();};_0x2eae6b['on']('line',_0x9fa44=>{const _0x1b610f=_0x25b686;_0x4c74a6?_0x4c74a6(_0x9fa44):_0xb04b00?_0xb04b00['push'](_0x9fa44):_0x130c14?_0x130c14(_0x9fa44):_0x442736[_0x1b610f(0x371)](_0x9fa44);}),_0x2eae6b[_0x25b686(0x2f9)](_0x25b686(0x1e7),()=>{const _0x566001=_0x25b686;_0xfe726c=!0x0,_0x59ec1c[_0x566001(0x24e)](),_0xb04b00&&!_0x45e708&&_0x2002f9(),_0x130c14?.(null);});let _0x47ec35=()=>_0x442736[_0x25b686(0x1ae)]>0x0?Promise['resolve'](_0x442736[_0x25b686(0x350)]()):_0xfe726c?Promise[_0x25b686(0x32d)](null):new Promise(_0x4f6a07=>{_0x130c14=_0x54e6a6=>{_0x130c14=void 0x0,_0x4f6a07(_0x54e6a6);};});_0x1850f4({'readLine':(_0x58b418,_0x485031)=>new Promise((_0x27156e,_0x8452f2)=>{const _0x486ce7=_0x25b686;if(_0xfe726c&&!_0xb04b00){_0x27156e(null);return;}_0xb04b00??=[];let _0x25d3e1=_0xb04b00[_0x486ce7(0x350)]();if(_0x25d3e1!==void 0x0){_0x27156e(_0x25d3e1);return;}let _0x4537f5=()=>{const _0x1f110c=_0x486ce7;_0x4c74a6=void 0x0,_0x485031[_0x1f110c(0x1af)]('abort',_0x4072a3),_0x59ec1c[_0x1f110c(0x24e)](),_0x2eae6b[_0x1f110c(0x2f1)](_0x1f110c(0x227));},_0x4072a3=()=>{_0x4537f5(),_0x8452f2(new Error('The\x20turn\x20was\x20cancelled.'));};_0x485031[_0x486ce7(0x2da)](_0x486ce7(0x2f4),_0x4072a3,{'once':!0x0}),!_0xfe726c&&(_0x4c74a6=_0x2e1098=>{_0x4537f5(),_0x27156e(_0x2e1098);},_0x2eae6b[_0x486ce7(0x2f1)](_0x58b418),_0x59ec1c[_0x486ce7(0x2eb)]());}),'endQuestions':()=>{const _0x16e8d5=_0x25b686;_0xb04b00&&_0x442736[_0x16e8d5(0x371)](..._0xb04b00),_0xb04b00=void 0x0;}}),_0x2eae6b['on'](_0x25b686(0x2b5),_0x2002f9),process['stderr'][_0x25b686(0x277)](_0x25b686(0x1d2));let _0xa6211f=async _0x4dcda8=>{_0x2aa24a=!0x0;try{await _0x36187a(_0x4dcda8);}finally{_0x2aa24a=!0x1;}};try{if(_0x271c0e&&await _0xa6211f(_0x271c0e),_0x45e708)return;!_0xfe726c&&!_0x52728a&&_0x59ec1c[_0x25b686(0x2eb)]();for(let _0x151c20=await _0x47ec35();_0x151c20!==null&&(_0x59ec1c['hide'](),!_0x45e708);_0x151c20=await _0x47ec35()){let _0x3c0df9=_0x151c20[_0x25b686(0x23a)]();if(_0x3c0df9===_0x25b686(0x25e))break;_0x3c0df9&&await _0xa6211f(_0x3c0df9),!_0xfe726c&&!_0x52728a&&_0x59ec1c['show']();}for(;!_0x45e708&&_0x52728a;)await _0x310bc4;}finally{_0x1850f4(null),_0x3731de(),_0x59ec1c['restore'](),_0x2eae6b[_0x25b686(0x35b)](_0x25b686(0x2b5),_0x2002f9),_0x2eae6b[_0x25b686(0x1e7)]();}}async function Dn(){const _0x5574bc=_0x2e9e2a;let _0x167175=Rt(process[_0x5574bc(0x243)]['slice'](0x2));if(_0x167175['outputFormat']===_0x5574bc(0x2c4)){await fe(_0x167175);return;}let _0x561a6c=Pt();try{await fe(_0x167175);}finally{_0x561a6c();}}async function fe(_0x17f729){const _0x3656ca=_0x2e9e2a;if(_0x17f729[_0x3656ca(0x25f)]){Ct();return;}if(_0x17f729['version']){console[_0x3656ca(0x2f8)](Lt());return;}if(_0x17f729[_0x3656ca(0x367)]===_0x3656ca(0x2c2)){await kn(_0x17f729);return;}if(_0x17f729[_0x3656ca(0x367)]===_0x3656ca(0x329)){await Sn(_0x17f729['prompt']);return;}if(_0x17f729[_0x3656ca(0x367)]===_0x3656ca(0x2dc)){await Mt();return;}if(_0x17f729[_0x3656ca(0x367)]===_0x3656ca(0x1b2)){await Bt(_0x17f729);return;}if(_0x17f729['subcommand']===_0x3656ca(0x34d)){await Wt(_0x17f729);return;}if(_0x17f729[_0x3656ca(0x367)]===_0x3656ca(0x300)){await Zt(_0x17f729);return;}if(_0x17f729[_0x3656ca(0x367)]==='sessions'){await Qt(_0x17f729);return;}if(_0x17f729[_0x3656ca(0x367)]==='usage'){await nn(_0x17f729);return;}if(_0x17f729[_0x3656ca(0x367)]===_0x3656ca(0x1ee)||_0x17f729[_0x3656ca(0x367)]===_0x3656ca(0x2b6)||_0x17f729[_0x3656ca(0x367)]===_0x3656ca(0x29d)){await an(_0x17f729,_0x17f729[_0x3656ca(0x367)]);return;}if(_0x17f729[_0x3656ca(0x367)]===_0x3656ca(0x1ad)){await cn(_0x17f729);return;}if(_0x17f729[_0x3656ca(0x367)]===_0x3656ca(0x30e)){await mn(_0x17f729);return;}if(_0x17f729['subcommand']===_0x3656ca(0x273)){await gn(_0x17f729);return;}if(_0x17f729[_0x3656ca(0x367)]===_0x3656ca(0x1d3)){await wn(_0x17f729);return;}if(_0x17f729[_0x3656ca(0x367)]===_0x3656ca(0x1a1)){await _0x1ca8eb(_0x17f729[_0x3656ca(0x34a)],{'runnerUrl':_0x17f729[_0x3656ca(0x293)],'backendUrl':_0x17f729[_0x3656ca(0x1e1)],'interopPath':_0x17f729[_0x3656ca(0x1c7)],'workerId':_0x17f729['workerId']});return;}if(_0x17f729[_0x3656ca(0x34f)]){await Gt();return;}await En(_0x17f729);}var Un=process.env.NODE_ENV===_0x2e9e2a(0x254)||!!process.env.JEST_WORKER_ID;Un||Dn()[_0x2e9e2a(0x341)](_0x127ccf=>{const _0x4b86fd=_0x2e9e2a;console[_0x4b86fd(0x2a6)](_0x127ccf['stack']||_0x127ccf[_0x4b86fd(0x290)]||_0x127ccf),process['exit'](0x1);});export{_t as CARTOGRAPHER_SKILLS,re as EFFORT_TIERS,Ot as IMPLICIT_STDIN_IDLE_MS,pe as buildInitOptions,Dn as main,Rt as parseArgs,Lt as readCliVersion,j as resolvePrompt,Pt as routeStdoutToStderr,u as writeCommandResult};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uipath/delegate-cli",
3
- "version": "1.204.0-preview.20261025160758",
3
+ "version": "1.205.0",
4
4
  "description": "UiPath Delegate CLI - drive the Delegate agent from the terminal. Wraps @uipath/delegate-sdk; installing this package pulls the SDK in — no separate install.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "commonjs",
@@ -22,7 +22,7 @@
22
22
  "publish:npmjs": "npm publish --@uipath:registry=https://registry.npmjs.org/ --access public --ignore-scripts"
23
23
  },
24
24
  "dependencies": {
25
- "@uipath/delegate-sdk": "1.204.0-preview.20261025160758"
25
+ "@uipath/delegate-sdk": "1.205.0"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@types/node": "^22.0.0",