@uipath/delegate-cli 1.206.0-preview.20261123163817 → 1.207.0-preview.20261124183129
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 +7 -5
- package/dist/cli.mjs +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -304,13 +304,13 @@ You> Turn what you just did into a UiPath coded workflow.
|
|
|
304
304
|
- Each `AppAct` step, with the selector of the element it acted on, and each request you sent are appended to `<working-dir>/captures/<session>/task-log-*.jsonl` (`~/.aria-sdk/captures/…` without `--working-dir`). The log keeps on-screen text, field labels and the start of each request; typed values and anything that reads as a credential are masked.
|
|
305
305
|
- While the CLI runs, the backend is asked for a sturdier selector for each captured step. Work left when it exits is picked up by the next `--task-automation` run under the same login and state root.
|
|
306
306
|
- Ask for the workflow in the same session: in the same conversation, or with `--session <id>` (and the same `--working-dir`) in a later invocation.
|
|
307
|
-
- It needs computer use, so it exits 2 with `--headless`, `--no-computer-use` or `--cartographer`, and on subcommands. Where the deployment does not offer task automation yet (it follows the desktop app's rollout and is not on the production cloud), the run starts with a warning and records nothing. The skill also needs the `uip` CLI on `PATH`, signed in with `uip login`.
|
|
307
|
+
- It needs computer use, so it exits 2 with `--headless`, `--no-computer-use`, `--cartographer` or `--vertical cartographer`, and on subcommands. Where the deployment does not offer task automation yet (it follows the desktop app's rollout and is not on the production cloud), the run starts with a warning and records nothing. The skill also needs the `uip` CLI on `PATH`, signed in with `uip login`.
|
|
308
308
|
- `uipath-taskautomation` ships with the SDK package (see [Skills](#skills)); a copy of your own in `--skills-path` replaces it.
|
|
309
309
|
- `delegate-cli sessions delete <id>` removes the log with the session; give it the same `--working-dir` as the run.
|
|
310
310
|
|
|
311
311
|
### Skills
|
|
312
312
|
|
|
313
|
-
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.
|
|
313
|
+
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`, `map-of-work`, `transcribe-media`, `media-tools` and `system-diagnostics`. The agent picks one when the task calls for it; `--preload-skill <name>` attaches one up front.
|
|
314
314
|
|
|
315
315
|
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.
|
|
316
316
|
|
|
@@ -362,7 +362,7 @@ Three levels of machine access, independent of conversation mode:
|
|
|
362
362
|
| `--no-computer-use` | yes | **no** | yes |
|
|
363
363
|
| `--headless` | **no** | no | **no** |
|
|
364
364
|
|
|
365
|
-
`--cartographer`
|
|
365
|
+
`--cartographer` runs the Cartographer vertical at the `--no-computer-use` level; adding `--headless` to it moves the whole invocation down a row.
|
|
366
366
|
|
|
367
367
|
### Flags
|
|
368
368
|
|
|
@@ -384,7 +384,8 @@ Three levels of machine access, independent of conversation mode:
|
|
|
384
384
|
| `--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. |
|
|
385
385
|
| `--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). |
|
|
386
386
|
| `--preload-skill <name>` | — | Preload a skill into the session before the first model turn (repeatable; SDK `preloadSkills`). A name given twice is preloaded once. |
|
|
387
|
-
| `--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
|
|
387
|
+
| `--cartographer` | off | Cartographer engagement preset — shorthand for `--vertical cartographer --no-computer-use --preload-skill business-analysis --preload-skill project-task-list --preload-skill knowledge-base --preload-skill source-coverage --preload-skill note-taker`, so the run is a Cartographer session (see `--vertical`). Add `--project` / `--working-dir` to say where the engagement's files live (`--project` is also the folder the Map of Work maps), 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`). `--vertical cartographer` alongside it changes nothing; another `--vertical` id exits with code 2. Before the preset ran the vertical it ran a Delegate session with the five skills; spell those flags out without `--vertical` for that. |
|
|
388
|
+
| `--vertical <id>` | — | Run the session as that product's vertical, as its tab in the desktop app does, inside the CLI's process with no desktop app installed (SDK `vertical`). `cartographer`: the backend's Cartographer prompt profile, the `shell_app` stamp on the sessions the run creates (a session resumed with `--session` keeps its own), the Map of Work bound to `--project`, Cartographer cost attribution and its allowance check, machine-driving calls refused, `gpt_5_6_luna` starting at `xhigh` when no `--effort` is given and, without `--preload-skill`, its project template's skills. An id the SDK does not ship fails the run. Default: Delegate. |
|
|
388
389
|
| `--project <id>` | — | Bind the session to a project: wiki, plans and `task-list.md` 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`) is injected into every turn (SDK `projectId`). Client-side routing key only — the CLI never links a backend project row. |
|
|
389
390
|
| `--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**. |
|
|
390
391
|
| `--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. |
|
|
@@ -456,7 +457,8 @@ npx delegate-cli --no-computer-use --project invoice-approval --working-dir ~/en
|
|
|
456
457
|
--preload-skill source-coverage --preload-skill note-taker \
|
|
457
458
|
"Read the AS-IS notes and draft the process overview."
|
|
458
459
|
|
|
459
|
-
# The same
|
|
460
|
+
# The same flags as a Cartographer session: --cartographer is that whole flag set plus
|
|
461
|
+
# --vertical cartographer (Cartographer's prompt, and the Map of Work of the project folder)
|
|
460
462
|
npx delegate-cli --cartographer --project invoice-approval --working-dir ~/engagements \
|
|
461
463
|
"Read the AS-IS notes and draft the process overview."
|
|
462
464
|
|
package/dist/cli.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
const _0x166297=_0x1449;(function(_0x51b610,_0x4bf48){const _0xad4fec=_0x1449,_0x7c1b0d=_0x51b610();while(!![]){try{const _0x31c3ff=parseInt(_0xad4fec(0x13d))/0x1+-parseInt(_0xad4fec(0x1fe))/0x2+-parseInt(_0xad4fec(0x271))/0x3+-parseInt(_0xad4fec(0x1bc))/0x4+-parseInt(_0xad4fec(0x1a2))/0x5+parseInt(_0xad4fec(0x201))/0x6+parseInt(_0xad4fec(0x28a))/0x7*(parseInt(_0xad4fec(0x1be))/0x8);if(_0x31c3ff===_0x4bf48)break;else _0x7c1b0d['push'](_0x7c1b0d['shift']());}catch(_0x428d42){_0x7c1b0d['push'](_0x7c1b0d['shift']());}}}(_0x12af,0xa0b83));const __dirname=import.meta.dirname;import _0x41a71a from'fs';import _0x2305cf from'path';import{clearLine as _0x2f55bf,createInterface as _0x32df7c,cursorTo as _0xeb5c3a}from'node:readline';import{isOnStepGrid as _0xeaaca}from'@uipath/delegate-sdk';var _=_0x166297(0x1c1);function S(_0x3d262c){return _0x3d262c['replace'](/\u001b\[[0-?]*[ -/]*[@-~]|\u001b\][^\u0007\u001b]*(\u0007|\u001b\\)?|\u001b./g,'')['replace'](/[\u0000-\u0008\u000b-\u001f\u007f-\u009f]/g,'');}function V(_0x3cae5d){const _0x255eb3=_0x166297;return S(_0x3cae5d[_0x255eb3(0x192)]??(_0x3cae5d[_0x255eb3(0x13f)]===_?_0x255eb3(0x1ef):_0x3cae5d['id']));}function Te(_0x22b89a,_0x29c110,_0x356111){const _0x2939e6=_0x166297;let _0x485651=[''+(_0x356111>0x1?'['+_0x29c110+'/'+_0x356111+']\x20':'')+S(_0x22b89a[_0x2939e6(0x134)])+(_0x22b89a[_0x2939e6(0x1b3)]?'\x20(optional)':''),S(_0x22b89a['question'])];return _0x22b89a[_0x2939e6(0x267)]===_0x2939e6(0x26b)&&_0x22b89a[_0x2939e6(0x29e)][_0x2939e6(0x147)]((_0x5b3b2b,_0x41ee39)=>{const _0x246349=_0x2939e6;let _0x82677a=_0x5b3b2b[_0x246349(0x13f)]===_?_0x246349(0x1cb):'',_0x473977=_0x5b3b2b[_0x246349(0x102)]?'\x20-\x20'+S(_0x5b3b2b[_0x246349(0x102)]):'';_0x485651['push']('\x20\x20'+(_0x41ee39+0x1)+'.\x20'+V(_0x5b3b2b)+_0x82677a+_0x473977);}),_0x485651[_0x2939e6(0x15f)]('\x0a');}function X(_0x282b54,_0x54cf08){const _0x48caed=_0x166297;let _0x4454be=_0x282b54['split'](/[\s,]+/)['filter'](Boolean);if(_0x4454be[_0x48caed(0x239)]===0x0)return null;let _0x22896b=_0x4454be['map'](_0xbc826f=>/^\d+$/[_0x48caed(0x142)](_0xbc826f)?Number(_0xbc826f):NaN);return _0x22896b[_0x48caed(0x231)](_0x1810f4=>!Number[_0x48caed(0x1c7)](_0x1810f4)||_0x1810f4<0x1||_0x1810f4>_0x54cf08)?null:[...new Set(_0x22896b)][_0x48caed(0x1c4)](_0x245adc=>_0x245adc-0x1);}function xe(_0x492cd1){const _0x48de3e=_0x166297;return typeof _0x492cd1=='object'&&_0x492cd1!==null&&_0x48de3e(0x2b6)in _0x492cd1;}async function R(_0x3a716f,_0x1cc206,_0x5f4853,_0x14a064){const _0x16a2f4=_0x166297;for(;;){let _0x20a44e=(await _0x3a716f(_0x1cc206))[_0x16a2f4(0x1af)]();if(_0x20a44e==='')return;let _0x15ae59=_0x14a064(_0x20a44e);if(!xe(_0x15ae59))return _0x15ae59;_0x5f4853(_0x15ae59['refused']+'\x0a');}}async function De(_0x219811,_0x49d969,_0x1670b6){const _0x3f5a31=_0x166297;if(_0x219811[_0x3f5a31(0x29e)]['length']===0x0||_0x219811[_0x3f5a31(0x29e)][_0x3f5a31(0x118)](_0x61eaf7=>_0x61eaf7[_0x3f5a31(0x13f)]===_)){let _0x3ea9d6=(await _0x49d969('Your\x20answer\x20(Enter\x20to\x20skip):\x20'))[_0x3f5a31(0x1af)]();return _0x3ea9d6===''?void 0x0:{'text':_0x3ea9d6};}let _0x323964=_0x219811[_0x3f5a31(0x29e)][_0x3f5a31(0x1cf)](_0x531315=>_0x531315['kind']===_),_0x3b3e67=_0x219811[_0x3f5a31(0x254)]?'Numbers,\x20separated\x20by\x20commas\x20(Enter\x20to\x20skip):\x20':_0x3f5a31(0x28e)+(_0x323964>=0x0?_0x3f5a31(0x21d):'')+_0x3f5a31(0x12a),_0x5a52cf=await R(_0x49d969,_0x3b3e67,_0x1670b6,_0x476d37=>{const _0x34dc6f=_0x3f5a31;let _0x3d26c0=X(_0x476d37,_0x219811[_0x34dc6f(0x29e)][_0x34dc6f(0x239)]);return _0x3d26c0&&(_0x219811[_0x34dc6f(0x254)]||_0x3d26c0[_0x34dc6f(0x239)]===0x1)?_0x3d26c0:!_0x219811[_0x34dc6f(0x254)]&&_0x323964>=0x0?{'typed':_0x476d37}:{'refused':_0x219811[_0x34dc6f(0x254)]?'Enter\x20numbers\x20from\x201\x20to\x20'+_0x219811['options'][_0x34dc6f(0x239)]+'.':'Enter\x20one\x20number\x20from\x201\x20to\x20'+_0x219811[_0x34dc6f(0x29e)][_0x34dc6f(0x239)]+'.'};});if(_0x5a52cf===void 0x0)return;if(!Array[_0x3f5a31(0x229)](_0x5a52cf))return{'text':_0x5a52cf[_0x3f5a31(0x245)]};let _0x485b07=_0x5a52cf[_0x3f5a31(0x1c4)](_0x93fe20=>_0x219811[_0x3f5a31(0x29e)][_0x93fe20]['id']),_0x372bbf=_0x485b07[_0x3f5a31(0x20d)](_)?await R(_0x49d969,V(_0x219811[_0x3f5a31(0x29e)][_0x323964])+':\x20',_0x1670b6,_0x592ff3=>_0x592ff3):void 0x0;if(!(_0x485b07[_0x3f5a31(0x20d)](_)&&_0x372bbf===void 0x0))return _0x219811[_0x3f5a31(0x254)]?{'optionIds':_0x485b07,..._0x372bbf!==void 0x0?{'text':_0x372bbf}:{}}:_0x372bbf!==void 0x0?{'text':_0x372bbf}:{'optionId':_0x485b07[0x0]};}async function Ue(_0x5b2ca8,_0x728bf2,_0x56209d){const _0x34f16f=_0x166297;let _0x45f85d={};for(let _0x1d0a4b of _0x5b2ca8[_0x34f16f(0x23d)]){let _0x5632c6=_0x1d0a4b[_0x34f16f(0x12b)]??_0x1d0a4b[_0x34f16f(0x1e5)],_0x1b6111=_0x1d0a4b[_0x34f16f(0x1f1)]??0x1,_0x387633=_0x1d0a4b[_0x34f16f(0x184)]?'\x20'+S(_0x1d0a4b[_0x34f16f(0x184)]):'',_0x42b6c1=_0x34f16f(0x181)+_0x1d0a4b[_0x34f16f(0x1e5)]+_0x34f16f(0x1d5)+_0x1d0a4b[_0x34f16f(0x28b)]+(_0x1b6111!==0x1?'\x20in\x20steps\x20of\x20'+_0x1b6111:''),_0x1f876a=await R(_0x728bf2,S(_0x1d0a4b[_0x34f16f(0x192)])+'\x20['+_0x1d0a4b[_0x34f16f(0x1e5)]+'-'+_0x1d0a4b[_0x34f16f(0x28b)]+_0x387633+_0x34f16f(0x299)+_0x5632c6+_0x34f16f(0x18b),_0x56209d,_0x14f5d3=>{const _0x52da6f=_0x34f16f;let _0x237cf1=Number(_0x14f5d3);return Number[_0x52da6f(0x2b0)](_0x237cf1)&&_0x237cf1>=_0x1d0a4b[_0x52da6f(0x1e5)]&&_0x237cf1<=_0x1d0a4b[_0x52da6f(0x28b)]&&_0xeaaca(_0x237cf1,_0x1d0a4b[_0x52da6f(0x1e5)],_0x1b6111)?_0x237cf1:{'refused':_0x52da6f(0x1fc)+_0x42b6c1+'.'};});_0x45f85d[_0x1d0a4b['id']]=_0x1f876a??_0x5632c6;}return{'values':_0x45f85d};}async function Ne(_0x296889,_0x5664cd,_0x19344a){const _0x1b9041=_0x166297;_0x19344a(_0x296889[_0x1b9041(0x2c3)]['map']((_0x162473,_0x2229c2)=>'\x20\x20'+(_0x2229c2+0x1)+'.\x20'+S(_0x162473[_0x1b9041(0x192)]))['join']('\x0a')+'\x0a');let _0x510938={};for(let _0x211270 of _0x296889['items']){let _0x285660=await R(_0x5664cd,S(_0x211270[_0x1b9041(0x192)])+':\x20bucket\x20number\x20(Enter\x20to\x20leave\x20out):\x20',_0x19344a,_0xd5bb82=>{const _0x1cabc5=_0x1b9041;let _0x29ead3=X(_0xd5bb82,_0x296889[_0x1cabc5(0x2c3)][_0x1cabc5(0x239)]);return _0x29ead3&&_0x29ead3[_0x1cabc5(0x239)]===0x1?_0x29ead3[0x0]:{'refused':_0x1cabc5(0x23f)+_0x296889['buckets'][_0x1cabc5(0x239)]+'.'};});if(_0x285660===void 0x0)continue;let _0x42c7f2=_0x296889[_0x1b9041(0x2c3)][_0x285660],_0x4e163c={};for(let _0x23f53d of _0x42c7f2[_0x1b9041(0x273)]??[]){let _0x4d6fdf='\x20\x20'+S(_0x23f53d[_0x1b9041(0x192)])+(_0x23f53d['optional']?'\x20(optional)':'')+':\x20',_0x51baf=await R(_0x5664cd,_0x4d6fdf,_0x19344a,_0x1bcfce=>_0x1bcfce);for(;_0x51baf===void 0x0&&!_0x23f53d[_0x1b9041(0x1b3)];)_0x19344a(S(_0x23f53d['label'])+'\x20is\x20required.\x0a'),_0x51baf=await R(_0x5664cd,_0x4d6fdf,_0x19344a,_0x43d07f=>_0x43d07f);_0x51baf!==void 0x0&&(_0x4e163c[_0x23f53d['id']]=_0x51baf);}_0x510938[_0x211270['id']]={'bucket':_0x42c7f2['id'],...Object[_0x1b9041(0x1d6)](_0x4e163c)[_0x1b9041(0x239)]>0x0?{'subFields':_0x4e163c}:{}};}return Object[_0x1b9041(0x1d6)](_0x510938)['length']>0x0?{'assignments':_0x510938}:void 0x0;}async function _e(_0x45971a,_0x2819e7,_0x51b110){const _0x3d522b=_0x166297;if(_0x45971a[_0x3d522b(0x267)]===_0x3d522b(0x26b))return De(_0x45971a,_0x2819e7,_0x51b110);if(_0x45971a['type']==='numeric')return Ue(_0x45971a,_0x2819e7,_0x51b110);if(_0x45971a[_0x3d522b(0x267)]===_0x3d522b(0x1c8))return Ne(_0x45971a,_0x2819e7,_0x51b110);let _0xe5a48a=(await _0x2819e7(_0x3d522b(0x2e9)))[_0x3d522b(0x1af)]();return _0xe5a48a===''?void 0x0:{'text':_0xe5a48a};}function Z(_0x1c4a73,_0x53a7f5){return async _0xd54df5=>{const _0x39d963=_0x1449;let _0x387393=_0x1c4a73();if(!_0x387393)throw new Error(_0x39d963(0x1c2));let _0x2dad3d=async _0x58c2c1=>{const _0x56a445=_0x39d963;if(_0xd54df5[_0x56a445(0x2c6)][_0x56a445(0x195)])throw new Error(_0x56a445(0x1cc));let _0x59c10d=await _0x387393[_0x56a445(0x119)](_0x58c2c1,_0xd54df5[_0x56a445(0x2c6)]);if(_0x59c10d===null)throw new Error(_0x56a445(0x112));return _0x59c10d;};try{_0x53a7f5('\x0a'+(_0xd54df5[_0x39d963(0x19e)]?S(_0xd54df5['intro'])+'\x0a':''));let _0x3312c8={};for(let [_0x1041d2,_0x68b7cf]of _0xd54df5[_0x39d963(0x22f)][_0x39d963(0x246)]()){_0x53a7f5('\x0a'+Te(_0x68b7cf,_0x1041d2+0x1,_0xd54df5[_0x39d963(0x22f)][_0x39d963(0x239)])+'\x0a');let _0x305d65=await _e(_0x68b7cf,_0x2dad3d,_0x53a7f5);_0x305d65!==void 0x0&&(_0x3312c8[_0x68b7cf['id']]=_0x305d65);}return{'answers':_0x3312c8};}finally{_0x387393[_0x39d963(0x25e)]();}};}import{BUSINESS_ANALYSIS_PRELOADED_SKILLS as _0x337599,DelegateAgent as _0x36de5d,cancelTurn as _0x454c90,InteropProcess as _0x115b99,complete as _0x355d45,DEFAULT_MODEL as _0x552219,createBackendClient as _0x278094,evaluate as _0x3b4d45,isCompletionRequestError as _0x1b2a2c,isEvaluationRequestError as _0x3e71eb,isTranscriptionError as _0x8dd054,rerank as _0x2e027f,transcribe as _0x60668e,verify as _0x2f00c3,acceptDelegation as _0x1f9a4b,cancelDelegation as _0xeba920,claimDelegation as _0x7bc3cf,completeDelegation as _0x5657d9,createDelegation as _0x22f52b,deleteDelegation as _0x57abef,dismissDelegation as _0x193a71,getSessionDelegations as _0x354a62,isDelegationError as _0x249377,listDelegations as _0x325be5,listOrgUsers as _0x2cff76,previewDelegation as _0x109651,TurnResultCollector as _0x528d7c,agentEventToJsonLine as _0x481924,describeBaseUrlRejection as _0x26932e,getActivitySummary as _0x47fd2d,getAuthFilePath as _0xeadd32,getByoWarnings as _0x1c867a,getCartographerAllowance as _0xb29c60,getDailyBreakdown as _0x5a1b28,getLicensingSummary as _0x5e06f8,getMonthlySpending as _0x176cb1,isOutputFormat as _0x3a281a,isCloudBaseUrl as _0x23329e,isSafeProjectFolderSegment as _0xb3a1d9,listModels as _0x502197,listSessions as _0x4a6285,getSession as _0x71579a,renameSession as _0x3fa07f,deleteSession as _0x31c703,deleteSessionTaskLog as _0x830d8f,forkSession as _0x49be03,isBackendRequestError as _0x827d3d,MAX_SESSION_PAGE_SIZE as _0x46ff09,listTenants as _0x241bb7,loadAndRefreshAuth as _0x3d5ede,loadAndRefreshSdkLogin as _0x126a54,parsePlatformBaseUrl as _0x96aab2,resolveBackendUrl as _0x35acc7,runHealthCheck as _0x4a3e3b,runHostCommand as _0x2bf878,runLoginFlow as _0x4d02f6,runTurnForResult as _0x1a4af0,saveAuthData as _0xeef9c2,switchTenant as _0x3da2f8,toJsonLine as _0x1afa83,ENV_TO_CLOUD as _0x1699d2,OUTPUT_FORMATS as _0x13a67a}from'@uipath/delegate-sdk';var Nt=[_0x166297(0x17c),_0x166297(0x19d),_0x166297(0x1b0),'host',_0x166297(0xf4),_0x166297(0x294),_0x166297(0x2c4),_0x166297(0x100),_0x166297(0x1bb),_0x166297(0x21f),_0x166297(0x25d),_0x166297(0x11e),_0x166297(0x1ac),'transcribe','delegations',_0x166297(0x2df)],se=['','models',_0x166297(0x294),_0x166297(0x2c4),_0x166297(0x100),_0x166297(0x1bb),_0x166297(0x21f),_0x166297(0x25d),_0x166297(0x11e),_0x166297(0x1ac),_0x166297(0x1eb),_0x166297(0x206),_0x166297(0x2df)],re=[_0x166297(0x288),_0x166297(0x1c0),_0x166297(0x203),'xhigh',_0x166297(0x28b)],_t=_0x337599;function w(_0x323cc9,_0x1ea4c6,_0x34770f,_0x372f83){let _0x3b361b=_0x323cc9[_0x1ea4c6];return(!_0x3b361b||_0x3b361b['length']>0x1&&_0x3b361b['startsWith']('-'))&&(console['error'](_0x34770f+'\x20requires\x20'+_0x372f83+'.'),process['exit'](0x2)),_0x3b361b;}function J(_0x3f6a3c,_0x2f22a7,_0x2385c0,_0x296fa8){const _0x3d3bd5=_0x166297;let _0x229420=w(_0x3f6a3c,_0x2f22a7,_0x2385c0,_0x3d3bd5(0x138)),_0x46a179=Number(_0x229420);return(!/^\d+$/[_0x3d3bd5(0x142)](_0x229420)||_0x46a179<0x1||!Number[_0x3d3bd5(0x216)](_0x46a179)||_0x296fa8!==void 0x0&&_0x46a179>_0x296fa8)&&(console[_0x3d3bd5(0x2ab)](_0x2385c0+_0x3d3bd5(0x18a)+(_0x296fa8===void 0x0?_0x3d3bd5(0x1d0):_0x3d3bd5(0x24a)+_0x296fa8)+',\x20got\x20'+_0x229420+'.'),process[_0x3d3bd5(0x2bb)](0x2)),_0x46a179;}function Rt(_0x16cd59){const _0x4754cb=_0x166297;let _0x263c1b={'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':_0x4754cb(0x26b),'preloadSkills':[],'attachments':[],'skipEnvCheck':!0x1,'includeSubAgents':!0x1,'operands':[],'help':!0x1,'version':!0x1};Nt[_0x4754cb(0x20d)](_0x16cd59[0x0])&&(_0x263c1b[_0x4754cb(0x18e)]=_0x16cd59[0x0],_0x16cd59=_0x16cd59[_0x4754cb(0x2bd)](0x1));let _0x483eb6=[];for(let _0x14bfe3=0x0;_0x14bfe3<_0x16cd59[_0x4754cb(0x239)];_0x14bfe3++){let _0x147de3=_0x16cd59[_0x14bfe3];switch(_0x147de3){case _0x4754cb(0x18c):case'-p':_0x263c1b[_0x4754cb(0x2db)]=!0x0;break;case _0x4754cb(0x12e):_0x263c1b['keepAlive']=!0x0;break;case _0x4754cb(0x120):_0x263c1b[_0x4754cb(0x15e)]=!0x0;break;case _0x4754cb(0x28f):_0x263c1b['headless']=!0x0;break;case _0x4754cb(0x248):_0x263c1b[_0x4754cb(0x18d)]=!0x0;break;case _0x4754cb(0x2cf):_0x263c1b[_0x4754cb(0x2d1)]=!0x0,_0x263c1b[_0x4754cb(0x18d)]=!0x0,_0x263c1b['preloadSkills'][_0x4754cb(0x160)](..._t);break;case _0x4754cb(0x230):_0x263c1b[_0x4754cb(0x2c9)]=!0x0;break;case'--no-security':_0x263c1b['noSecurity']=!0x0;break;case _0x4754cb(0x243):_0x263c1b[_0x4754cb(0x1c5)]=!0x0;break;case'--task-automation':_0x263c1b['taskAutomation']=!0x0;break;case'--quiet':case'-q':_0x263c1b[_0x4754cb(0x237)]=!0x0;break;case _0x4754cb(0x1d8):_0x263c1b[_0x4754cb(0x283)]=!0x0;break;case'--backend':_0x263c1b[_0x4754cb(0x2a6)]=_0x16cd59[++_0x14bfe3];break;case'--model':_0x263c1b[_0x4754cb(0x22d)]=_0x16cd59[++_0x14bfe3];break;case _0x4754cb(0x2a5):_0x263c1b[_0x4754cb(0x129)]=_0x16cd59[++_0x14bfe3];break;case _0x4754cb(0x190):_0x263c1b[_0x4754cb(0x204)]=_0x16cd59[++_0x14bfe3];break;case _0x4754cb(0x186):_0x263c1b['workerId']=_0x16cd59[++_0x14bfe3];break;case _0x4754cb(0x293):_0x263c1b[_0x4754cb(0xfb)][_0x4754cb(0x160)](w(_0x16cd59,++_0x14bfe3,_0x147de3,_0x4754cb(0x1f3)));break;case'--project':{let _0x5a9ff7=w(_0x16cd59,++_0x14bfe3,_0x147de3,_0x4754cb(0x198));_0xb3a1d9(_0x5a9ff7)||(console[_0x4754cb(0x2ab)](_0x4754cb(0x268)+_0x5a9ff7+_0x4754cb(0x107)),process['exit'](0x2)),_0x263c1b[_0x4754cb(0x1a3)]=_0x5a9ff7;break;}case _0x4754cb(0x1bd):{let _0x43e660=w(_0x16cd59,++_0x14bfe3,_0x147de3,_0x4754cb(0x2d6)+_0x13a67a['join'](_0x4754cb(0x233))+')');_0x3a281a(_0x43e660)||(console[_0x4754cb(0x2ab)]('Invalid\x20--output-format:\x20'+_0x43e660+_0x4754cb(0x1db)+_0x13a67a['join'](_0x4754cb(0x233))+'.'),process[_0x4754cb(0x2bb)](0x2)),_0x263c1b['outputFormat']=_0x43e660;break;}case _0x4754cb(0x1f8):_0x263c1b[_0x4754cb(0x1e6)]=w(_0x16cd59,++_0x14bfe3,_0x147de3,'a\x20session\x20id');break;case _0x4754cb(0xfd):_0x263c1b['page']=J(_0x16cd59,++_0x14bfe3,_0x147de3);break;case _0x4754cb(0x13a):_0x263c1b[_0x4754cb(0x285)]=J(_0x16cd59,++_0x14bfe3,_0x147de3,_0x46ff09);break;case _0x4754cb(0x2e3):_0x263c1b[_0x4754cb(0x21c)]=!0x0;break;case _0x4754cb(0x225):_0x263c1b['jsonSchemaPath']=w(_0x16cd59,++_0x14bfe3,_0x147de3,_0x4754cb(0x1e7));break;case _0x4754cb(0x101):{let _0x249b03=_0x2305cf[_0x4754cb(0x1ed)](process[_0x4754cb(0x19c)](),w(_0x16cd59,++_0x14bfe3,_0x147de3,'a\x20file\x20path'));_0x41a71a[_0x4754cb(0x1e9)](_0x249b03)||(console[_0x4754cb(0x2ab)](_0x4754cb(0x24d)+_0x249b03),process['exit'](0x2)),_0x263c1b['attachments'][_0x4754cb(0x160)](_0x249b03);break;}case'--turn':_0x263c1b['turnId']=w(_0x16cd59,++_0x14bfe3,_0x147de3,_0x4754cb(0x157));break;case _0x4754cb(0x290):_0x263c1b[_0x4754cb(0x241)]=w(_0x16cd59,++_0x14bfe3,_0x147de3,'an\x20email\x20address\x20or\x20name');break;case'--summary':_0x263c1b[_0x4754cb(0x2e8)]=w(_0x16cd59,++_0x14bfe3,_0x147de3,_0x4754cb(0x2cc));break;case _0x4754cb(0x214):_0x263c1b[_0x4754cb(0xf9)]=J(_0x16cd59,++_0x14bfe3,_0x147de3,0x16d);break;case _0x4754cb(0x132):_0x263c1b[_0x4754cb(0x23a)]=_0x2305cf[_0x4754cb(0x1ed)](process[_0x4754cb(0x19c)](),w(_0x16cd59,++_0x14bfe3,_0x147de3,'a\x20directory\x20path'));break;case'--skills-path':_0x263c1b[_0x4754cb(0x15c)]=_0x2305cf[_0x4754cb(0x1ed)](process[_0x4754cb(0x19c)](),w(_0x16cd59,++_0x14bfe3,_0x147de3,_0x4754cb(0x10a)));break;case _0x4754cb(0x23e):{let _0x26ec39=w(_0x16cd59,++_0x14bfe3,_0x147de3,_0x4754cb(0x23b));re[_0x4754cb(0x20d)](_0x26ec39)||(console[_0x4754cb(0x2ab)](_0x4754cb(0x2af)+_0x26ec39+'.\x20Use\x20'+re[_0x4754cb(0x15f)](_0x4754cb(0x233))+'.'),process[_0x4754cb(0x2bb)](0x2)),_0x263c1b[_0x4754cb(0x286)]=_0x26ec39;break;}case _0x4754cb(0x1c9):{let _0x56c5bd=_0x16cd59[++_0x14bfe3];(!_0x56c5bd||_0x56c5bd[_0x4754cb(0x208)]('--'))&&(console[_0x4754cb(0x2ab)](_0x4754cb(0x1e4)),process[_0x4754cb(0x2bb)](0x2)),_0x263c1b[_0x4754cb(0x19d)]=_0x56c5bd;break;}case _0x4754cb(0x1f7):{let _0x2e2440=_0x16cd59[++_0x14bfe3];[_0x4754cb(0x1a1),_0x4754cb(0x1fa),_0x4754cb(0x232),'localhost']['includes'](_0x2e2440)||(console[_0x4754cb(0x2ab)](_0x4754cb(0x137)+_0x2e2440+_0x4754cb(0x2d5)),process[_0x4754cb(0x2bb)](0x2)),_0x263c1b[_0x4754cb(0x2b7)]=_0x2e2440;break;}case'--url':case _0x4754cb(0x108):{let _0x42ed4e=w(_0x16cd59,++_0x14bfe3,_0x147de3,'a\x20deployment\x20URL,\x20e.g.\x20https://automationsuite.contoso.com'),_0x146d33=_0x96aab2(_0x42ed4e);if(_0x146d33['ok']===!0x1){console[_0x4754cb(0x2ab)](_0x26932e(_0x42ed4e,_0x146d33[_0x4754cb(0x11a)])),process[_0x4754cb(0x2bb)](0x2);break;}_0x263c1b['url']=_0x146d33[_0x4754cb(0x292)];break;}case _0x4754cb(0x14b):_0x263c1b[_0x4754cb(0x264)]=!0x0;break;case'-h':case _0x4754cb(0x1f9):_0x263c1b[_0x4754cb(0x1e2)]=!0x0;break;case'-v':case _0x4754cb(0x2a4):_0x263c1b['version']=!0x0;break;default:_0x147de3[_0x4754cb(0x208)]('--')&&(console['error']('Unknown\x20flag:\x20'+_0x147de3),process[_0x4754cb(0x2bb)](0x2)),_0x483eb6[_0x4754cb(0x160)](_0x147de3);}}return _0x263c1b[_0x4754cb(0x19d)]!==void 0x0&&_0x263c1b[_0x4754cb(0x18e)]!==_0x4754cb(0x17c)&&(console['error'](_0x4754cb(0x194)),process['exit'](0x2)),_0x263c1b[_0x4754cb(0x2c2)]!==void 0x0&&_0x263c1b[_0x4754cb(0x2b7)]!==void 0x0&&(console[_0x4754cb(0x2ab)](_0x4754cb(0x2bc)),process[_0x4754cb(0x2bb)](0x2)),_0x263c1b[_0x4754cb(0x2c2)]!==void 0x0&&_0x263c1b['subcommand']!==_0x4754cb(0x17c)&&(console[_0x4754cb(0x2ab)](_0x4754cb(0x266)),process[_0x4754cb(0x2bb)](0x2)),_0x263c1b['days']!==void 0x0&&_0x263c1b[_0x4754cb(0x18e)]!=='usage'&&(console[_0x4754cb(0x2ab)](_0x4754cb(0xf8)),process['exit'](0x2)),_0x263c1b[_0x4754cb(0xfe)]!==void 0x0&&(_0x263c1b[_0x4754cb(0x18e)]!==_0x4754cb(0x1ac)&&_0x263c1b[_0x4754cb(0x18e)]!==''||_0x263c1b[_0x4754cb(0x15e)])&&(console[_0x4754cb(0x2ab)](_0x4754cb(0x2b1)),process[_0x4754cb(0x2bb)](0x2)),_0x263c1b[_0x4754cb(0x17a)][_0x4754cb(0x239)]>0x0&&(_0x263c1b['subcommand']!==''||_0x263c1b[_0x4754cb(0x15e)])&&(console[_0x4754cb(0x2ab)](_0x4754cb(0x2da)),process['exit'](0x2)),_0x263c1b[_0x4754cb(0x210)]&&(_0x263c1b[_0x4754cb(0x18e)]!==''||_0x263c1b[_0x4754cb(0x15e)])&&(console[_0x4754cb(0x2ab)](_0x4754cb(0x1aa)),process[_0x4754cb(0x2bb)](0x2)),_0x263c1b['taskAutomation']&&(_0x263c1b[_0x4754cb(0x2d3)]||_0x263c1b[_0x4754cb(0x18d)])&&(console[_0x4754cb(0x2ab)](_0x4754cb(0x170)),process['exit'](0x2)),_0x263c1b['skipEnvCheck']&&_0x263c1b['subcommand']!=='login'&&(console[_0x4754cb(0x2ab)]('--skip-env-check\x20applies\x20to\x20`delegate-cli\x20login`\x20only.'),process[_0x4754cb(0x2bb)](0x2)),_0x263c1b[_0x4754cb(0x2b3)]!=='text'&&!se[_0x4754cb(0x20d)](_0x263c1b[_0x4754cb(0x18e)])&&(console[_0x4754cb(0x2ab)]('--output-format\x20'+_0x263c1b['outputFormat']+_0x4754cb(0x1ca)+se[_0x4754cb(0x263)](Boolean)[_0x4754cb(0x15f)](',\x20')+'.'),process[_0x4754cb(0x2bb)](0x2)),(_0x263c1b[_0x4754cb(0x1b4)]!==void 0x0||_0x263c1b[_0x4754cb(0x285)]!==void 0x0||_0x263c1b[_0x4754cb(0x21c)])&&_0x263c1b[_0x4754cb(0x18e)]!=='sessions'&&(console[_0x4754cb(0x2ab)](_0x4754cb(0x2a3)),process[_0x4754cb(0x2bb)](0x2)),(_0x263c1b['delegateTo']!==void 0x0||_0x263c1b[_0x4754cb(0x2e8)]!==void 0x0)&&_0x263c1b[_0x4754cb(0x18e)]!==_0x4754cb(0x206)&&(console[_0x4754cb(0x2ab)](_0x4754cb(0x25a)),process[_0x4754cb(0x2bb)](0x2)),_0x263c1b[_0x4754cb(0x28d)]!==void 0x0&&_0x263c1b['subcommand']!==_0x4754cb(0x100)&&(console['error']('--turn\x20applies\x20to\x20`delegate-cli\x20sessions\x20cancel`\x20only.'),process[_0x4754cb(0x2bb)](0x2)),_0x263c1b['preloadSkills']=[...new Set(_0x263c1b[_0x4754cb(0xfb)])],_0x263c1b[_0x4754cb(0x2e1)]=_0x483eb6,_0x263c1b[_0x4754cb(0x1b1)]=_0x483eb6[_0x4754cb(0x15f)]('\x20'),_0x263c1b;}var P=_0x5b641f=>{const _0x1a6d36=_0x166297;process[_0x1a6d36(0x1fb)][_0x1a6d36(0x282)](_0x5b641f);};function Pt(){const _0xfbe951=_0x166297;let _0x4f8534=process[_0xfbe951(0x1fb)][_0xfbe951(0x282)],_0x2d025e=_0x4f8534[_0xfbe951(0x1d7)](process[_0xfbe951(0x1fb)]),_0x190968=P;return P=_0xbfcae=>{_0x2d025e(_0xbfcae);},process[_0xfbe951(0x1fb)]['write']=(..._0x2ca2d8)=>process[_0xfbe951(0x1b8)][_0xfbe951(0x282)](..._0x2ca2d8),()=>{const _0xf8645e=_0xfbe951;process[_0xf8645e(0x1fb)][_0xf8645e(0x282)]=_0x4f8534,P=_0x190968;};}function u(_0x1f739b,_0x127a2f,_0xa9b605){const _0xc0c613=_0x166297;if(_0x1f739b[_0xc0c613(0x2b3)]===_0xc0c613(0x26b)){_0xa9b605(_0x127a2f);return;}P(_0x1afa83(_0x127a2f));}function Ct(){const _0x467d85=_0x166297;let _0x51f311=_0x467d85(0x20b)['trim']();console[_0x467d85(0x141)](_0x51f311);}function Lt(){const _0xce6671=_0x166297;try{return JSON[_0xce6671(0x173)](_0x41a71a[_0xce6671(0x250)](_0x2305cf[_0xce6671(0x15f)](__dirname,'..',_0xce6671(0x171)),_0xce6671(0x20f)))['version']||_0xce6671(0x221);}catch{return _0xce6671(0x221);}}var Ot=0x7d0;async function ie(_0x377ba5,_0x33ad96){const _0x41a4e6=_0x166297;let _0xa539f2=_0x33ad96?[_0x33ad96]:[];for await(let _0x25ac2b of _0x377ba5)_0xa539f2['push'](Buffer['from'](_0x25ac2b));return Buffer['concat'](_0xa539f2)[_0x41a4e6(0x29a)](_0x41a4e6(0x20f))[_0x41a4e6(0x1af)]();}function Ft(_0x5547dc,_0x5abf9c){return new Promise(_0x24075e=>{const _0x29ad2a=_0x1449;let _0x34a5fc=_0x361623=>{const _0xa8dd61=_0x1449;clearTimeout(_0x1b7a23),_0x5547dc['off'](_0xa8dd61(0x21b),_0x1a9a0c),_0x5547dc[_0xa8dd61(0x191)](_0xa8dd61(0x2a7),_0x2d37ef),_0x5547dc[_0xa8dd61(0x191)]('error',_0x2d37ef),_0x5547dc[_0xa8dd61(0x2d7)](),_0x24075e(_0x361623);},_0x1a9a0c=_0x492632=>_0x34a5fc(Buffer[_0x29ad2a(0x20e)](_0x492632)),_0x2d37ef=()=>_0x34a5fc(null),_0x1b7a23=setTimeout(()=>_0x34a5fc(null),_0x5abf9c);_0x5547dc['on']('data',_0x1a9a0c),_0x5547dc['on'](_0x29ad2a(0x2a7),_0x2d37ef),_0x5547dc['on']('error',_0x2d37ef),_0x5547dc['resume']();});}async function j(_0xf3a9c3,_0x53b622,_0x118dba=Ot){const _0x28429b=_0x166297;let _0x55b72a=_0xf3a9c3==='-';if(!_0x55b72a&&_0xf3a9c3)return _0xf3a9c3;if(!_0x55b72a&&_0x53b622[_0x28429b(0x153)])return'';if(_0x55b72a)return ie(_0x53b622,null);let _0x59ab6f=await Ft(_0x53b622,_0x118dba);return _0x59ab6f?ie(_0x53b622,_0x59ab6f):'';}function K(){const _0x10bb08=_0x166297;return _0x2305cf[_0x10bb08(0x15f)](process.env.HOME||process.env.USERPROFILE||'',_0x10bb08(0x17e),_0x10bb08(0x277));}function M(_0x4c3e43){const _0x6f43b4=_0x166297;try{let _0x3d4d55=JSON[_0x6f43b4(0x173)](_0x41a71a['readFileSync'](_0x4c3e43,'utf-8'));return!_0x3d4d55[_0x6f43b4(0x176)]||!_0x3d4d55[_0x6f43b4(0x1a6)]||!_0x3d4d55[_0x6f43b4(0x10e)]?null:_0x3d4d55;}catch{return null;}}function jt(){const _0x5d81e9=_0x166297;let _0x180e50=[{'file':_0xeadd32(),'isDesktopFallback':!0x1},{'file':K(),'isDesktopFallback':!0x0}];for(let _0x96d5e8 of _0x180e50){let _0x424701=M(_0x96d5e8[_0x5d81e9(0x1d1)]);if(_0x424701)return{..._0x96d5e8,'auth':_0x424701};}return null;}async function Mt(){const _0x478348=_0x166297;let _0x58215b=_0xeadd32();if(!_0x41a71a[_0x478348(0x1e9)](_0x58215b)){let _0x2edcf5=K();console[_0x478348(0x141)](M(_0x2edcf5)?_0x478348(0x281)+_0x2edcf5+_0x478348(0x24c):_0x478348(0x18f));return;}_0x41a71a[_0x478348(0x106)](_0x58215b),console[_0x478348(0x141)](_0x478348(0x188)+_0x58215b);}async function Bt(_0x19c761){const _0x1c4dbf=_0x166297;let _0x42fbb1=Q(),_0x471296,_0x3f4b3e;if(_0x42fbb1)_0x471296=_0x42fbb1,_0x3f4b3e=_0x1c4dbf(0x113);else{let _0x197ec0=jt();if(!_0x197ec0)throw new Error(Se);_0x471296=_0x197ec0[_0x1c4dbf(0x224)],_0x3f4b3e=_0x197ec0[_0x1c4dbf(0x179)]?_0x197ec0['file']+_0x1c4dbf(0x151):_0x197ec0[_0x1c4dbf(0x1d1)];}let _0x450e36={'source':_0x3f4b3e,'baseUrl':_0x471296['baseUrl']??null,'deployment':Ht(_0x471296[_0x1c4dbf(0x292)]),'organization':{'id':_0x471296['organizationId'],'slug':_0x471296[_0x1c4dbf(0x25c)]??null},'tenant':{'id':_0x471296[_0x1c4dbf(0x1a6)],'name':_0x471296['tenantName']??null},'tokenExpiresAt':_0x471296[_0x1c4dbf(0x1b2)]?new Date(_0x471296[_0x1c4dbf(0x1b2)]*0x3e8)['toISOString']():null};u(_0x19c761,_0x450e36,()=>{const _0x58e683=_0x1c4dbf;let _0x383b3b=[_0x58e683(0x25b)+_0x3f4b3e,_0x58e683(0x2d8)+(_0x471296[_0x58e683(0x292)]??_0x58e683(0x221)),'Deployment:\x20\x20\x20'+_0x450e36[_0x58e683(0x2cb)],_0x58e683(0x16f)+(_0x471296['orgLogicalName']??_0x58e683(0x1df))+'\x20('+_0x471296[_0x58e683(0x10e)]+')','Tenant:\x20\x20\x20\x20\x20\x20\x20'+(_0x471296[_0x58e683(0x1de)]??_0x58e683(0x1df))+'\x20('+_0x471296[_0x58e683(0x1a6)]+')'];if(_0x471296['expiresAt']){let _0x277eb9=_0x471296['expiresAt']-Math[_0x58e683(0x260)](Date['now']()/0x3e8);_0x383b3b['push'](_0x277eb9>0x0?_0x58e683(0x2aa)+_0x450e36['tokenExpiresAt']+'\x20(in\x20'+Math['round'](_0x277eb9/0x3c)+_0x58e683(0x136):_0x58e683(0x2e2)+_0x450e36[_0x58e683(0x218)]);}process['stdout'][_0x58e683(0x282)](_0x383b3b[_0x58e683(0x15f)]('\x0a')+'\x0a');});}var Se=_0x166297(0x15a);function Ht(_0x19a088){const _0x48f03b=_0x166297;return _0x19a088?_0x23329e(_0x19a088)?_0x48f03b(0x2e4):_0x48f03b(0x21e):_0x48f03b(0x221);}function Q(){let _0xb860ac=process.env.AUTH_TOKEN_FILE;return(process.env.AUTH_TOKEN||_0xb860ac)&&process.env.TENANT_ID&&process.env.ORG_ID?{'accessToken':_0xb860ac?Jt(_0xb860ac):process.env.AUTH_TOKEN,..._0xb860ac?{'accessTokenFile':_0xb860ac}:{},'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(_0x50d6f0){const _0x159e38=_0x166297;let _0x3cf57e;try{_0x3cf57e=_0x41a71a[_0x159e38(0x250)](_0x50d6f0,_0x159e38(0x20f))[_0x159e38(0x1af)]();}catch(_0x244680){throw new Error(_0x159e38(0x178)+_0x50d6f0+'\x27\x20cannot\x20be\x20read:\x20'+_0x244680[_0x159e38(0x14a)]);}let _0x2eeb51=_0x3cf57e[_0x159e38(0x208)](_0x159e38(0x123))?_0x3cf57e[_0x159e38(0x2bd)](0x7)[_0x159e38(0x1af)]():_0x3cf57e;if(!_0x2eeb51)throw new Error(_0x159e38(0x178)+_0x50d6f0+_0x159e38(0x278));return _0x2eeb51;}function ve(){const _0x51492d=_0x166297;let _0x59cf96=process.env.UIPATH_BASE_URL;if(!_0x59cf96)return;let _0x587ff9=_0x96aab2(_0x59cf96);if(_0x587ff9['ok']===!0x1)throw new Error('UIPATH_BASE_URL\x20is\x20unusable.\x20'+_0x26932e(_0x59cf96,_0x587ff9[_0x51492d(0x11a)]));return _0x587ff9[_0x51492d(0x292)];}async function q(){let _0x28edc6=Q();if(_0x28edc6)return _0x28edc6;let _0x509d94=await _0x3d5ede();if(_0x509d94)return _0x509d94;throw new Error(Se);}async function Gt(){const _0x2756c8=_0x166297;await new _0x115b99()[_0x2756c8(0x196)]({'force':!0x0}),console[_0x2756c8(0x141)](_0x2756c8(0x139));}function z(_0x179fe4,_0x2a1069,_0x460fd4){const _0x113be3=_0x166297;_0x179fe4?process[_0x113be3(0x1b8)]['write'](_0x113be3(0x13e)+_0x179fe4+_0x113be3(0x10c)+_0x460fd4+'\x0a'):!_0x2a1069&&!process.env.BACKEND_URL&&process[_0x113be3(0x1b8)][_0x113be3(0x282)](_0x113be3(0x199)+_0x460fd4+'\x0a');}async function v(_0x3a8db4){const _0x30f4be=_0x166297;let _0x26c075=await q(),_0x4691e5=_0x35acc7(_0x3a8db4[_0x30f4be(0x2b7)],_0x26c075,_0x3a8db4[_0x30f4be(0x2a6)]);return z(_0x3a8db4['env'],_0x3a8db4[_0x30f4be(0x2a6)],_0x4691e5),{'auth':_0x26c075,'backendUrl':_0x4691e5,'client':_0x278094({'auth':_0x26c075,'backendUrl':_0x4691e5})};}async function Wt(_0x1ce89d){const _0xb4e63d=_0x166297;let {client:_0x2ab4cf}=await v(_0x1ce89d),[_0x3b3f8e,_0x1ea568]=await Promise['all']([_0x502197(_0x2ab4cf),_0x1c867a(_0x2ab4cf)[_0xb4e63d(0x20a)](_0x382274=>(process[_0xb4e63d(0x1b8)][_0xb4e63d(0x282)]('Could\x20not\x20check\x20BYO\x20model\x20warnings:\x20'+(_0x382274 instanceof Error?_0x382274['message']:String(_0x382274))+'\x0a'),{}))]),_0x4525b5=_0x3b3f8e[_0xb4e63d(0x1c4)](_0x4bd64f=>_0x1ea568[_0x4bd64f['id']]?{..._0x4bd64f,'byoWarning':_0x1ea568[_0x4bd64f['id']]}:_0x4bd64f);u(_0x1ce89d,_0x4525b5,Kt);}function Kt(_0x434e63){const _0x47ee62=_0x166297;if(_0x434e63[_0x47ee62(0x239)]===0x0){process[_0x47ee62(0x1b8)][_0x47ee62(0x282)]('No\x20models\x20available\x20for\x20this\x20product/tenant.\x0a');return;}process[_0x47ee62(0x1fb)]['write']('\x0aAvailable\x20models\x20('+_0x434e63[_0x47ee62(0x239)]+_0x47ee62(0x103));for(let _0x15d662 of _0x434e63){let _0x3fcc17=_0x15d662[_0x47ee62(0x291)]&&_0x15d662[_0x47ee62(0x291)]!==_0x15d662['id']?'\x20('+_0x15d662[_0x47ee62(0x291)]+')':'';process[_0x47ee62(0x1fb)][_0x47ee62(0x282)]('\x20\x20'+_0x15d662['id']+_0x3fcc17+'\x0a'),_0x15d662[_0x47ee62(0x102)]&&process[_0x47ee62(0x1fb)][_0x47ee62(0x282)]('\x20\x20\x20\x20'+_0x15d662[_0x47ee62(0x102)]+'\x0a'),_0x15d662[_0x47ee62(0x2dc)]&&process[_0x47ee62(0x1fb)]['write'](_0x47ee62(0x258)+(_0x15d662[_0x47ee62(0x1ba)]?'\x20('+_0x15d662[_0x47ee62(0x1ba)]+')':'')+'\x0a'),_0x15d662[_0x47ee62(0x165)]&&process['stdout'][_0x47ee62(0x282)](_0x47ee62(0x2ae)+_0x15d662[_0x47ee62(0x165)]+'\x0a');}process['stdout'][_0x47ee62(0x282)](_0x47ee62(0x240));}var ae=[_0x166297(0x28c),'show',_0x166297(0x1d9),_0x166297(0x1ae),'cancel',_0x166297(0x109)];async function Qt(_0x5e9155){const _0x47d3ae=_0x166297;let [_0x498d3b='',_0xd7b454='',..._0x2e67aa]=_0x5e9155[_0x47d3ae(0x2e1)];if(_0x498d3b&&!ae[_0x47d3ae(0x20d)](_0x498d3b)&&(console[_0x47d3ae(0x2ab)](_0x47d3ae(0x2a9)+_0x498d3b+_0x47d3ae(0xf3)+ae[_0x47d3ae(0x15f)](_0x47d3ae(0x233))+'.'),process[_0x47d3ae(0x2bb)](0x2)),_0x5e9155['turnId']!==void 0x0&&_0x498d3b!==_0x47d3ae(0x128)&&(console[_0x47d3ae(0x2ab)](_0x47d3ae(0x213)),process[_0x47d3ae(0x2bb)](0x2)),_0x498d3b&&_0x498d3b!==_0x47d3ae(0x28c)){await qt(_0x5e9155,_0x498d3b,_0xd7b454,_0x2e67aa['join']('\x20')[_0x47d3ae(0x1af)]());return;}_0x5e9155[_0x47d3ae(0x2e1)][_0x47d3ae(0x239)]>0x1&&(console[_0x47d3ae(0x2ab)](_0x47d3ae(0x262)),process[_0x47d3ae(0x2bb)](0x2));let {client:_0x292969}=await v(_0x5e9155),_0x1ece44=await _0x4a6285(_0x292969,{'page':_0x5e9155[_0x47d3ae(0x1b4)],'pageSize':_0x5e9155[_0x47d3ae(0x285)],'includeSubAgents':_0x5e9155['includeSubAgents']});u(_0x5e9155,_0x1ece44,Xt);}async function qt(_0x438067,_0x4cc687,_0x5a3602,_0xa4a5a7){const _0x12dd03=_0x166297;if((_0x438067[_0x12dd03(0x1b4)]!==void 0x0||_0x438067[_0x12dd03(0x285)]!==void 0x0||_0x438067['includeSubAgents'])&&(console[_0x12dd03(0x2ab)]('--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`delegate-cli\x20sessions\x20[list]`\x20only.'),process[_0x12dd03(0x2bb)](0x2)),_0x4cc687===_0x12dd03(0x128)){await Yt(_0x438067,_0x5a3602,_0xa4a5a7);return;}if(_0x4cc687===_0x12dd03(0x109)){await Vt(_0x438067,_0x5a3602,_0xa4a5a7);return;}(!_0x5a3602||_0x4cc687===_0x12dd03(0x1d9)!=!!_0xa4a5a7)&&(console[_0x12dd03(0x2ab)]('Usage:\x20delegate-cli\x20sessions\x20'+_0x4cc687+_0x12dd03(0x27d)+(_0x4cc687===_0x12dd03(0x1d9)?'\x20<title>':'')),process[_0x12dd03(0x2bb)](0x2));let {client:_0x4f78e0}=await v(_0x438067);try{if(_0x4cc687==='show'){let _0x115e35=await _0x71579a(_0x4f78e0,_0x5a3602);_0x115e35||le(_0x5a3602),u(_0x438067,_0x115e35,zt);}else{if(_0x4cc687===_0x12dd03(0x1d9)){let _0x25c6f8=await _0x3fa07f(_0x4f78e0,_0x5a3602,_0xa4a5a7);u(_0x438067,_0x25c6f8,_0x1d8497=>{const _0x5cc38e=_0x12dd03;process['stdout'][_0x5cc38e(0x282)]('Renamed\x20'+_0x1d8497['id']+':\x20'+_0x1d8497[_0x5cc38e(0x105)]+'\x0a');});}else await _0x31c703(_0x4f78e0,_0x5a3602),await _0x830d8f(_0x5a3602,_0x438067['workingDirectory']),u(_0x438067,{'id':_0x5a3602,'deleted':!0x0},_0x31d23b=>{const _0x439147=_0x12dd03;process[_0x439147(0x1fb)]['write'](_0x439147(0x26e)+_0x31d23b['id']+'.\x0a');});}}catch(_0x43e8f8){if(!_0x827d3d(_0x43e8f8,0x194))throw _0x43e8f8;le(_0x5a3602);}}function le(_0x52f9cd){const _0x7b9ae1=_0x166297;console[_0x7b9ae1(0x2ab)](_0x7b9ae1(0x227)+_0x52f9cd+'\x20not\x20found.'),process[_0x7b9ae1(0x2bb)](0x1);}function zt(_0x2132ab){const _0x384137=_0x166297;process[_0x384137(0x1fb)][_0x384137(0x282)](_0x384137(0x253)+_0x2132ab['id']+'\x0a'),process['stdout'][_0x384137(0x282)]('Title\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x2132ab['title']+'\x0a'),process[_0x384137(0x1fb)]['write'](_0x384137(0x1ff)+_0x2132ab['userId']+'\x0a'),process[_0x384137(0x1fb)][_0x384137(0x282)](_0x384137(0x11f)+_0x2132ab[_0x384137(0x10e)]+'\x0a'),_0x2132ab[_0x384137(0x27e)]&&process[_0x384137(0x1fb)][_0x384137(0x282)](_0x384137(0x287)+_0x2132ab['delegationId']+'\x0a');}async function Yt(_0x15ad2d,_0x185d4a,_0x3b95dc){const _0x479fb7=_0x166297;(!_0x185d4a||_0x3b95dc||!_0x15ad2d[_0x479fb7(0x28d)])&&(console['error'](_0x479fb7(0x161)),process[_0x479fb7(0x2bb)](0x2));let {client:_0x5286ca}=await v(_0x15ad2d),_0x2fe2db=await _0x454c90(_0x5286ca,_0x185d4a,_0x15ad2d['turnId']);u(_0x15ad2d,{'sessionId':_0x185d4a,'turnId':_0x15ad2d['turnId'],'cancelled':_0x2fe2db},_0x342ac8=>{const _0x2bcc6c=_0x479fb7;_0x342ac8['cancelled']?process[_0x2bcc6c(0x1fb)][_0x2bcc6c(0x282)](_0x2bcc6c(0x205)+_0x342ac8[_0x2bcc6c(0x28d)]+'\x20of\x20session\x20'+_0x342ac8['sessionId']+'.\x0a'):process[_0x2bcc6c(0x1b8)][_0x2bcc6c(0x282)](_0x2bcc6c(0x26a)+_0x342ac8[_0x2bcc6c(0x28d)]+_0x2bcc6c(0x177)+_0x342ac8[_0x2bcc6c(0x1e6)]+'.\x0a');}),_0x2fe2db||(process['exitCode']=0x1);}async function Vt(_0x373332,_0x244e3c,_0x365a14){const _0x161f04=_0x166297;(!_0x244e3c||/\s/[_0x161f04(0x142)](_0x365a14))&&(console[_0x161f04(0x2ab)]('Usage:\x20delegate-cli\x20sessions\x20fork\x20<id>\x20[<message-id>]'),process[_0x161f04(0x2bb)](0x2));let {client:_0x421c39}=await v(_0x373332),_0x5c7603;try{_0x5c7603=await _0x49be03(_0x421c39,_0x244e3c,{'atMessageId':_0x365a14||void 0x0});}catch(_0x20ce0f){if(!_0x827d3d(_0x20ce0f,0x194))throw _0x20ce0f;console[_0x161f04(0x2ab)](_0x161f04(0x227)+_0x244e3c+_0x161f04(0x11c)+(_0x365a14?_0x161f04(0x162)+_0x365a14:'')+'.'),process[_0x161f04(0x2bb)](0x1);}u(_0x373332,_0x5c7603,_0x4f0685=>{const _0x1686f4=_0x161f04;process[_0x1686f4(0x1fb)][_0x1686f4(0x282)]('Forked\x20'+_0x244e3c+_0x1686f4(0x1f0)+_0x4f0685['id']+'.\x0a'),process[_0x1686f4(0x1b8)][_0x1686f4(0x282)](_0x1686f4(0x222)+_0x4f0685['id']+'\x20\x22<prompt>\x22\x0a');});}function Xt({sessions:_0xf2466d,page:_0x40fd58,isLastPage:_0x2628dd}){const _0x2acb64=_0x166297;if(_0xf2466d[_0x2acb64(0x239)]===0x0)process[_0x2acb64(0x1b8)]['write'](_0x2acb64(0x16a)+_0x40fd58+'.\x0a');else{process['stdout'][_0x2acb64(0x282)]('ID'[_0x2acb64(0x24f)](0x24)+'\x20\x20'+_0x2acb64(0x1a9)[_0x2acb64(0x24f)](0x13)+_0x2acb64(0x280));for(let _0x332320 of _0xf2466d){let _0x5e78cf=_0x332320['updatedAt'][_0x2acb64(0x19a)]('T','\x20')[_0x2acb64(0x2bd)](0x0,0x13),_0x558e64=_0x332320['parentSessionId']?_0x2acb64(0xf6)+_0x332320['parentSessionId']+')':'';process['stdout'][_0x2acb64(0x282)](_0x332320['id']['padEnd'](0x24)+'\x20\x20'+_0x5e78cf[_0x2acb64(0x24f)](0x13)+'\x20\x20'+_0x332320[_0x2acb64(0x105)]+_0x558e64+'\x0a');}}_0x2628dd||process[_0x2acb64(0x1b8)][_0x2acb64(0x282)]('More:\x20delegate-cli\x20sessions\x20--page\x20'+(_0x40fd58+0x1)+'\x0a');}async function Zt(_0x4cb954){const _0x261007=_0x166297;let _0x5f4b63=await q(),_0x2af7b7=_0x35acc7(_0x4cb954[_0x261007(0x2b7)],_0x5f4b63,_0x4cb954['backendUrl']);z(_0x4cb954[_0x261007(0x2b7)],_0x4cb954[_0x261007(0x2a6)],_0x2af7b7);let _0x4588e7=await _0x4a3e3b({'auth':_0x5f4b63,'backendUrl':_0x2af7b7,'interop':_0x4cb954[_0x261007(0x2d3)]?'skip':_0x261007(0x257)});u(_0x4cb954,_0x4588e7,({checks:_0x4ae7e1})=>{const _0x3c561a=_0x261007;for(let _0x2acd06 of _0x4ae7e1)process['stdout'][_0x3c561a(0x282)](en(_0x2acd06)+'\x0a');}),_0x4588e7['ok']||process[_0x261007(0x2bb)](0x1);}function en(_0x5bfb0b){const _0x2d869f=_0x166297;return{'ok':'✓','failed':'✗','skipped':'-'}[_0x5bfb0b[_0x2d869f(0x24e)]]+'\x20'+_0x5bfb0b[_0x2d869f(0x291)][_0x2d869f(0x24f)](0xa)+_0x5bfb0b[_0x2d869f(0x19f)];}var tn=['',_0x166297(0x16e),_0x166297(0x122)];async function nn(_0x1eecbd){const _0x41c84a=_0x166297;let _0x40e8b1=_0x1eecbd[_0x41c84a(0x1b1)];tn['includes'](_0x40e8b1)||(console['error'](_0x41c84a(0x2ad)+_0x1eecbd[_0x41c84a(0x1b1)]+_0x41c84a(0x2bf)),process[_0x41c84a(0x2bb)](0x2)),_0x40e8b1===''&&_0x1eecbd['days']!==void 0x0&&(console['error'](_0x41c84a(0x2c0)),process[_0x41c84a(0x2bb)](0x2)),_0x40e8b1!==''&&_0x1eecbd[_0x41c84a(0x1e6)]!==void 0x0&&(console['error'](_0x41c84a(0x135)),process[_0x41c84a(0x2bb)](0x2));let {client:_0x563ef0}=await v(_0x1eecbd);if(_0x40e8b1===_0x41c84a(0x16e)){u(_0x1eecbd,await _0x47fd2d(_0x563ef0,{'days':_0x1eecbd[_0x41c84a(0xf9)]}),sn);return;}if(_0x40e8b1===_0x41c84a(0x122)){u(_0x1eecbd,await _0x5a1b28(_0x563ef0,{'days':_0x1eecbd['days']}),rn);return;}let [_0x187a32,_0x12dc4e,_0x58351e]=await Promise[_0x41c84a(0x1c6)]([_0x5e06f8(_0x563ef0,{'sessionId':_0x1eecbd[_0x41c84a(0x1e6)]}),_0x176cb1(_0x563ef0),_0xb29c60(_0x563ef0)]);u(_0x1eecbd,{'licensing':_0x187a32,'monthlySpending':_0x12dc4e,'cartographerAllowance':_0x58351e},on);}function on(_0x15c2a7){const _0x536649=_0x166297;let {licensing:_0x8e7b9,monthlySpending:_0x391ebb,cartographerAllowance:_0x17a55}=_0x15c2a7,_0x47d677=[_0x8e7b9[_0x536649(0xff)]?'Licensing:\x20\x20\x20\x20'+_0x8e7b9[_0x536649(0x1c3)][_0x536649(0x1a8)](0x1)+_0x536649(0x269)+(_0x8e7b9[_0x536649(0x17b)]??0x0)+'\x20PU\x20used'+(_0x8e7b9[_0x536649(0x242)]>0x0?',\x20'+_0x8e7b9['extra_pool_consumed_pu']+'\x20PU\x20beyond\x20quota':'')+'\x20(resets\x20'+_0x8e7b9[_0x536649(0x2de)]+')':'Licensing:\x20\x20\x20\x20no\x20licensing\x20quota\x20applies',_0x536649(0x236)+_0x391ebb[_0x536649(0x154)]['toFixed'](0x2)+_0x536649(0x22b)+(_0x391ebb[_0x536649(0xff)]&&_0x391ebb[_0x536649(0x166)]!==null?'\x20of\x20a\x20$'+_0x391ebb[_0x536649(0x166)][_0x536649(0x1a8)](0x2)+_0x536649(0x16b):_0x536649(0x175)),'Cartographer:\x20'+_0x17a55['mode']+'\x20('+_0x17a55[_0x536649(0x187)]+')'];_0x8e7b9[_0x536649(0x182)]!==null&&_0x8e7b9[_0x536649(0x182)]!==void 0x0&&_0x47d677[_0x536649(0x160)]('Session:\x20\x20\x20\x20\x20\x20'+_0x8e7b9[_0x536649(0x182)]+_0x536649(0x126)),process[_0x536649(0x1fb)]['write'](_0x47d677['join']('\x0a')+'\x0a');}function sn(_0x370c65){const _0x44a4e5=_0x166297;let _0x383672=[_0x44a4e5(0x12c)+_0x370c65[_0x44a4e5(0x228)]+_0x44a4e5(0xfa)+_0x370c65[_0x44a4e5(0x185)]+_0x44a4e5(0x238)+_0x370c65[_0x44a4e5(0x168)]+_0x44a4e5(0x2c1),'Cost:\x20\x20\x20$'+_0x370c65[_0x44a4e5(0x29c)]['toFixed'](0x2)+_0x44a4e5(0x295)+_0x370c65['estimated_cost_usd'][_0x44a4e5(0x1a8)](0x2)+_0x44a4e5(0x275)+_0x370c65['total_token_units']+_0x44a4e5(0x1a5),_0x44a4e5(0x1f5)+_0x370c65['total_prompt_tokens']+_0x44a4e5(0x12f)+_0x370c65['total_completion_tokens']+'\x20completion'];for(let [_0x1a2629,_0x5c88ca]of Object[_0x44a4e5(0x246)](_0x370c65[_0x44a4e5(0x1da)]))_0x383672[_0x44a4e5(0x160)]('\x20\x20'+_0x1a2629+':\x20'+_0x5c88ca+'\x20token\x20units');process[_0x44a4e5(0x1fb)][_0x44a4e5(0x282)](_0x383672[_0x44a4e5(0x15f)]('\x0a')+'\x0a');}function rn(_0x5e0920){const _0x5dd351=_0x166297;if(_0x5e0920['daily_usage'][_0x5dd351(0x239)]===0x0){process[_0x5dd351(0x1fb)][_0x5dd351(0x282)](_0x5dd351(0x1b9)+_0x5e0920[_0x5dd351(0x228)]+_0x5dd351(0x251));return;}let _0x43266d=[_0x5dd351(0x172)];for(let _0x499f7b of _0x5e0920[_0x5dd351(0x256)])_0x43266d[_0x5dd351(0x160)](_0x499f7b['date']+'\x20\x20'+String(_0x499f7b[_0x5dd351(0x29b)])[_0x5dd351(0x158)](0xb)+'\x20\x20'+String(_0x499f7b[_0x5dd351(0x115)])[_0x5dd351(0x158)](0xd)+'\x20\x20'+String(_0x499f7b[_0x5dd351(0x197)])[_0x5dd351(0x158)](0x11));process[_0x5dd351(0x1fb)][_0x5dd351(0x282)](_0x43266d[_0x5dd351(0x15f)]('\x0a')+'\x0a');}async function an(_0x36647b,_0xf16bcc){const _0x32c1c6=_0x166297;let _0x5cb41f=await ln(_0x36647b[_0x32c1c6(0x1b1)],_0xf16bcc);_0x36647b['model']&&(_0x5cb41f[_0x32c1c6(0x22d)]=_0x36647b[_0x32c1c6(0x22d)]);let {client:_0x8c1124}=await v(_0x36647b);try{_0xf16bcc==='evaluate'?u(_0x36647b,await _0x3b4d45(_0x8c1124,_0x5cb41f,void 0x0),dn):_0xf16bcc==='rerank'?u(_0x36647b,await _0x2e027f(_0x8c1124,_0x5cb41f,void 0x0),un):u(_0x36647b,await _0x2f00c3(_0x8c1124,_0x5cb41f,void 0x0),pn);}catch(_0x105533){if(!_0x3e71eb(_0x105533))throw _0x105533;console[_0x32c1c6(0x2ab)](_0x105533[_0x32c1c6(0x14a)]),process['exit'](0x1);}}async function ln(_0x59a9a9,_0x4c2c75){const _0x5192b0=_0x166297;let _0x494a1d;try{_0x494a1d=_0x59a9a9&&_0x59a9a9!=='-'?_0x41a71a[_0x5192b0(0x250)](_0x2305cf[_0x5192b0(0x1ed)](_0x59a9a9),'utf-8'):await j(_0x59a9a9,process[_0x5192b0(0x27f)]);}catch(_0x2b94c9){console[_0x5192b0(0x2ab)](_0x4c2c75+_0x5192b0(0x148)+_0x2b94c9[_0x5192b0(0x14a)]+').'),process[_0x5192b0(0x2bb)](0x2);}return _0x494a1d||(console[_0x5192b0(0x2ab)](_0x4c2c75+_0x5192b0(0x125)+_0x4c2c75+_0x5192b0(0x2d4)),process[_0x5192b0(0x2bb)](0x2)),Ae(_0x494a1d,_0x4c2c75,_0x5192b0(0x1fd));}function Ae(_0x484836,_0x3cb139,_0x3b1028){const _0x19319d=_0x166297;let _0x449da4;try{_0x449da4=JSON[_0x19319d(0x173)](_0x484836);}catch(_0x40da99){console[_0x19319d(0x2ab)](_0x3cb139+':\x20'+_0x3b1028+_0x19319d(0x234)+_0x40da99[_0x19319d(0x14a)]+').'),process[_0x19319d(0x2bb)](0x2);}return(typeof _0x449da4!=_0x19319d(0x130)||_0x449da4===null||Array[_0x19319d(0x229)](_0x449da4))&&(console[_0x19319d(0x2ab)](_0x3cb139+':\x20'+_0x3b1028+'\x20must\x20be\x20a\x20JSON\x20object.'),process['exit'](0x2)),_0x449da4;}function $e(_0x2ed541,_0x12a821){const _0x5bef30=_0x166297;let _0x2c7bad;try{_0x2c7bad=_0x41a71a[_0x5bef30(0x250)](_0x2305cf[_0x5bef30(0x1ed)](_0x2ed541),_0x5bef30(0x20f));}catch(_0x2b87af){console['error'](_0x12a821+':\x20cannot\x20read\x20the\x20JSON\x20schema\x20('+_0x2b87af[_0x5bef30(0x14a)]+').'),process[_0x5bef30(0x2bb)](0x2);}return Ae(_0x2c7bad,_0x12a821,'the\x20JSON\x20schema');}async function cn(_0x4b8fe6){const _0x2a4d25=_0x166297;_0x4b8fe6[_0x2a4d25(0xfe)]===void 0x0&&(console['error'](_0x2a4d25(0x150)),process[_0x2a4d25(0x2bb)](0x2));let _0x22e845=$e(_0x4b8fe6[_0x2a4d25(0xfe)],_0x2a4d25(0x1ac)),_0x1aad2e=(await j(_0x4b8fe6[_0x2a4d25(0x1b1)],process[_0x2a4d25(0x27f)]))['trim']();_0x1aad2e||(console['error'](_0x2a4d25(0x10f)),process[_0x2a4d25(0x2bb)](0x2));let {client:_0x321e75}=await v(_0x4b8fe6);try{let _0x1b63db=await _0x355d45(_0x321e75,{'prompt':_0x1aad2e,'jsonSchema':_0x22e845,'model':_0x4b8fe6['model']||process.env.MODEL||_0x552219,..._0x4b8fe6['sessionId']!==void 0x0&&{'sessionId':_0x4b8fe6[_0x2a4d25(0x1e6)]}},void 0x0);u(_0x4b8fe6,_0x1b63db,_0x538394=>{const _0x37694d=_0x2a4d25;process[_0x37694d(0x1fb)][_0x37694d(0x282)](JSON[_0x37694d(0x274)](_0x538394[_0x37694d(0x163)],null,0x2)+'\x0a');});}catch(_0x21ca24){if(!_0x1b2a2c(_0x21ca24))throw _0x21ca24;console['error'](_0x21ca24['message']),process[_0x2a4d25(0x2bb)](0x1);}}function Y(_0x44ccb2){const _0x295971=_0x166297;process['stdout'][_0x295971(0x282)]('Model\x20'+_0x44ccb2[_0x295971(0x22d)]+'\x20('+_0x44ccb2[_0x295971(0x110)]+_0x295971(0xfc)+_0x44ccb2[_0x295971(0x1bb)]['total_tokens']+_0x295971(0x1f4));}function dn(_0x4978b4){const _0x36ed08=_0x166297;Y(_0x4978b4);for(let _0x44f4f5 of Object[_0x36ed08(0x1d6)](_0x4978b4[_0x36ed08(0x25f)])){let _0x3d50f0=_0x4978b4[_0x36ed08(0x25f)][_0x44f4f5],_0x287542=_0x3d50f0[_0x36ed08(0x267)]===_0x36ed08(0x215)?_0x36ed08(0x2c8)+_0x3d50f0[_0x36ed08(0x215)][_0x36ed08(0x1a8)](0x2):_0x3d50f0[_0x36ed08(0x267)]===_0x36ed08(0xf7)?_0x36ed08(0x1ea)+_0x3d50f0[_0x36ed08(0xf7)]+_0x36ed08(0x12d)+_0x3d50f0['confidence']['toFixed'](0x2)+')':'score\x20'+_0x3d50f0[_0x36ed08(0x11b)][_0x36ed08(0x1a8)](0x2)+'\x20(confidence\x20'+_0x3d50f0[_0x36ed08(0x174)][_0x36ed08(0x1a8)](0x2)+')';process[_0x36ed08(0x1fb)][_0x36ed08(0x282)]('\x20\x20'+_0x44f4f5+':\x20'+_0x287542+'\x0a');}}function un(_0x4c3698){const _0x216230=_0x166297;Y(_0x4c3698),_0x4c3698[_0x216230(0x2e0)][_0x216230(0x147)]((_0x375427,_0x4e167e)=>{const _0x5e2351=_0x216230;process[_0x5e2351(0x1fb)][_0x5e2351(0x282)]('\x20\x20'+(_0x4e167e+0x1)+'.\x20'+_0x375427['id']+'\x20\x20'+_0x375427[_0x5e2351(0x11b)][_0x5e2351(0x1a8)](0x3)+_0x5e2351(0x1ab)+_0x375427[_0x5e2351(0x284)]+')\x0a');});}function pn(_0x53e397){const _0x404c1e=_0x166297;Y(_0x53e397),process['stdout'][_0x404c1e(0x282)]('Rubric\x20'+_0x53e397[_0x404c1e(0x1e8)]+'\x0a');for(let _0x14e40e of _0x53e397[_0x404c1e(0x2e0)])process['stdout'][_0x404c1e(0x282)]('\x20\x20'+_0x14e40e['id']+':\x20'+_0x14e40e[_0x404c1e(0x23c)]+_0x404c1e(0x12d)+_0x14e40e['confidence'][_0x404c1e(0x1a8)](0x2)+')\x0a');}async function mn(_0x484cc3){const _0x14c6bc=_0x166297;let _0x255161=_0x484cc3[_0x14c6bc(0x1b1)]['trim']();_0x255161||(console[_0x14c6bc(0x2ab)]('transcribe\x20needs\x20audio:\x20delegate-cli\x20transcribe\x20<file>,\x20or\x20-\x20to\x20read\x20stdin.'),process['exit'](0x2));let {client:_0x559339}=await v(_0x484cc3);try{let _0x5a2192=_0x255161==='-'?{'data':await fn(process[_0x14c6bc(0x27f)])}:_0x255161;u(_0x484cc3,await _0x60668e(_0x559339,_0x5a2192,void 0x0),_0x592b0d=>{const _0x4b0ec1=_0x14c6bc;process[_0x4b0ec1(0x1fb)][_0x4b0ec1(0x282)](_0x592b0d[_0x4b0ec1(0x26b)]+'\x0a');});}catch(_0x5ef427){if(_0x8dd054(_0x5ef427)&&(console[_0x14c6bc(0x2ab)](_0x5ef427[_0x14c6bc(0x14a)]),process[_0x14c6bc(0x2bb)](_0x5ef427['status']===void 0x0?0x2:0x1)),typeof _0x5ef427?.[_0x14c6bc(0x1a0)]!='string')throw _0x5ef427;console[_0x14c6bc(0x2ab)](_0x14c6bc(0x2ce)+_0x255161+'\x20('+_0x5ef427[_0x14c6bc(0x14a)]+').'),process[_0x14c6bc(0x2bb)](0x2);}}function _0x12af(){const _0x1d1383=['startsWith','structuredError','catch','\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','\x20(resume\x20with\x20--session\x20','includes','from','utf-8','taskAutomation','response','assignedUser','--turn\x20applies\x20to\x20`delegate-cli\x20sessions\x20cancel`\x20only.','--days','probability','isSafeInteger','No\x20one\x20matches\x20\x22','tokenExpiresAt','Usage:\x20delegate-cli\x20','turn_start','data','includeSubAgents','\x20or\x20your\x20own\x20answer','self-hosted\x20(Automation\x20Suite\x20/\x20Dedicated)','evaluate','stack','unknown','Continue\x20it\x20with:\x20delegate-cli\x20--session\x20','Usage:\x20delegate-cli\x20org-users\x20<name\x20or\x20email\x20prefix>','auth','--json-schema','add','Session\x20','period_days','isArray','host','\x20this\x20month','hide','model','toolName','questions','--no-connections','some','production','\x20|\x20','\x20is\x20not\x20valid\x20JSON\x20(','initialize','Spending:\x20\x20\x20\x20\x20$','quiet','\x20sessions\x20on\x20','length','workingDirectory','an\x20effort\x20tier','verdict','fields','--effort','Enter\x20one\x20number\x20from\x201\x20to\x20','\x0aUse\x20with:\x20delegate-cli\x20--model\x20<id>\x20\x22<prompt>\x22\x0a','delegateTo','extra_pool_consumed_pu','--no-memory','\x20(cancel\x20with:\x20delegate-cli\x20sessions\x20cancel\x20','typed','entries','\x0a⚠️\x20\x20Auth\x20expired.\x20Opening\x20browser\x20to\x20re-login…\x0a','--no-computer-use','session_start','from\x201\x20to\x20','Delegated\x20','\x20—\x20sign\x20out\x20in\x20the\x20Delegate\x20app\x20to\x20clear\x20that.','--attach:\x20no\x20such\x20file\x20or\x20folder:\x20','status','padEnd','readFileSync','\x20days.\x0a','\x20\x20TASK\x0a','ID\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','multiSelect','delegations\x20pending\x20<session-id>','daily_usage','spawn','\x20\x20\x20\x20Not\x20available\x20on\x20this\x20plan','restore','--to\x20and\x20--summary\x20apply\x20to\x20`delegate-cli\x20delegations\x20create`\x20only.','Source:\x20\x20\x20\x20\x20\x20\x20','orgLogicalName','rerank','endQuestions','answers','floor','shift','Usage:\x20delegate-cli\x20sessions\x20[list]\x20[--page\x20N]\x20[--limit\x20N]\x20[--include-subagents]','filter','skipEnvCheck','No\x20delegations.\x0a','--url\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Other\x20commands\x20follow\x20the\x20saved\x20login,\x20or\x20--backend\x20<url>.','type','Invalid\x20--project:\x20\x22','%\x20of\x20','No\x20turn\x20','text','\x20\x20from\x20','\x20\x22<prompt>\x22\x0aAnswer\x20with:\x20delegate-cli\x20delegations\x20complete\x20','Deleted\x20session\x20','--to,\x20--summary\x20and\x20--session\x20apply\x20to\x20`delegate-cli\x20delegations\x20create`\x20only.','No\x20CLI\x20login\x20to\x20switch:\x20the\x20CLI\x20is\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20','1015434ZJauBQ','>.\x0a','subFields','stringify','\x20from\x20','delegations\x20claim\x20<delegation-id|delegate://delegation/…>','auth.json','\x27\x20is\x20empty.','Turn:\x20','accept','displayName','pendingResults','\x20<id>','delegationId','stdin','\x20\x20TITLE\x0a','No\x20CLI\x20login\x20found.\x20Note:\x20the\x20CLI\x20is\x20currently\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20','write','verbose','index','limit','effort','Delegation\x20\x20\x20\x20','low','pending','1120azTKey','max','list','turnId','Number','--headless','--to','name','baseUrl','--preload-skill','whoami','\x20(estimated\x20$','result','\x20delegation\x20','alreadyCompleted',']\x20(Enter\x20for\x20','toString','token_units','total_cost_usd','✓\x20Done\x0a','options','origin',',\x20whose\x20tenant\x20is\x20chosen\x20in\x20the\x20app.\x20Run\x20`delegate-cli\x20login\x20--env\x20<env>`\x20for\x20a\x20CLI\x20login\x20of\x20your\x20own.','erase','delegations\x20delete\x20<delegation-id>','--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`delegate-cli\x20sessions`\x20only.','--version','--runner-url','backendUrl','end','lastType','Unknown\x20sessions\x20action:\x20','Token:\x20\x20\x20\x20\x20\x20\x20\x20expires\x20','error','sourceTitle','Unknown\x20usage\x20view:\x20','\x20\x20\x20\x20BYO\x20warning:\x20','Invalid\x20--effort:\x20','isFinite','--json-schema\x20applies\x20to\x20prompts\x20and\x20to\x20`delegate-cli\x20complete`\x20only.','argv','outputFormat','keepAlive','From\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','refused','env','dismiss','onEvent','Created\x20delegation\x20','exit','Pass\x20either\x20--env\x20(a\x20named\x20cloud)\x20or\x20--url\x20(any\x20other\x20deployment),\x20not\x20both.','slice','\x0a🤔\x20','.\x20Use\x20`delegate-cli\x20usage`,\x20`usage\x20activity`\x20or\x20`usage\x20daily`.','--days\x20applies\x20to\x20`delegate-cli\x20usage\x20activity|daily`;\x20the\x20summary\x20covers\x20the\x20current\x20month.','\x20active\x20days','url','buckets','check','destroy','signal','\x0aAccept\x20one\x20with:\x20delegate-cli\x20delegations\x20accept\x20<id>\x0a','probability\x20','noConnections','\x20(current)','deployment','a\x20briefing\x20text','abort','transcribe:\x20cannot\x20read\x20','--cartographer','delegations\x20cancel\x20<delegation-id>','cartographer','assignedUserEmail','headless','\x20<file.json>,\x20or\x20-\x20to\x20read\x20stdin.','.\x20Use\x20alpha\x20|\x20staging\x20|\x20production\x20|\x20localhost.','a\x20format\x20(','pause','Base\x20URL:\x20\x20\x20\x20\x20','STATUS','--attach\x20applies\x20to\x20prompts\x20only.','print','locked',';\x20the\x20saved\x20login\x20still\x20uses\x20','period_end','org-users','results','operands','Token:\x20\x20\x20\x20\x20\x20\x20\x20expired\x20','--include-subagents','UiPath\x20Cloud','Enter\x20sends\x20a\x20message.\x20/exit\x20or\x20EOF\x20exits;\x20Ctrl+C\x20stops\x20and\x20exits.\x0a','getSessionId','deleted','contextSummary','Your\x20answer,\x20as\x20text\x20(the\x20CLI\x20attaches\x20no\x20files;\x20Enter\x20to\x20skip):\x20','content','.\x20Use:\x20','logout','Accepted','\x20\x20(sub-agent\x20of\x20','choice','--days\x20applies\x20to\x20`delegate-cli\x20usage\x20activity|daily`\x20only.','days','\x20days:\x20','preloadSkills','),\x20','--page','jsonSchemaPath','limit_enabled','sessions','--attach','description','):\x0a\x0a','delegate-cli','title','rmSync','\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).','--authority','fork','a\x20directory\x20path','exitCode',']\x20Backend\x20URL:\x20','tool_call','organizationId','complete\x20needs\x20a\x20prompt:\x20delegate-cli\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22,\x20or\x20-\x20to\x20read\x20stdin.','model_version','🔧\x20','Input\x20closed\x20before\x20the\x20question\x20was\x20answered.','environment\x20variables\x20(AUTH_TOKEN/TENANT_ID/ORG_ID)','.\x20Share:\x20','prompt_tokens','input',').\x0a','every','readLine','rejection','score','\x20not\x20found,\x20has\x20no\x20messages','Use:\x20delegate-cli\x20delegations\x20','verify','Organization\x20\x20','--cleanup','cancelled','daily','Bearer\x20','done','\x20needs\x20a\x20JSON\x20request:\x20delegate-cli\x20','\x20PU','No\x20CLI\x20login\x20found.\x20Run\x20`delegate-cli\x20login\x20--env\x20<alpha|staging|production>`\x20first.','cancel','runnerUrl','\x20(Enter\x20to\x20skip):\x20','default','Last\x20','\x20(confidence\x20','--keep-alive','\x20prompt,\x20','object','Already\x20accepted','--working-dir','noSecurity','header','--session\x20applies\x20to\x20the\x20`delegate-cli\x20usage`\x20summary\x20only.','\x20min)','Invalid\x20--env:\x20','a\x20number','Interop\x20stopped\x20(if\x20it\x20was\x20running).','--limit','\x20\x22<answer>\x22\x0a','a\x20colleague','636546GWySGk','[env=','kind','alreadyAccepted','log','test','thinking','delegations\x20accept\x20<delegation-id>','show','delegation','forEach',':\x20cannot\x20read\x20the\x20request\x20(','Structured\x20output\x20failed:\x20','message','--skip-env-check','delegations\x20dismiss\x20<delegation-id>','version','You>\x20','Already\x20answered','complete\x20needs\x20--json-schema\x20<file>:\x20delegate-cli\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22.','\x20(Delegate\x20desktop\x20app\x20fallback)','concat','isTTY','monthly_spend_usd','toUpperCase','SIGINT','a\x20turn\x20id','padStart',')\x20—\x20saved\x20to\x20','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.','close','bundledSkillsPath','workerId','cleanup','join','push','Usage:\x20delegate-cli\x20sessions\x20cancel\x20<session-id>\x20--turn\x20<turn-id>',',\x20or\x20holds\x20no\x20message\x20','structured','removeEventListener','byoWarning','monthly_limit_usd','getTurnUsageHistory','active_days','task','No\x20sessions\x20on\x20page\x20','\x20cap','create','email','activity','Organization:\x20','--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.','package.json','Date\x20\x20\x20\x20\x20\x20\x20\x20Token\x20units\x20\x20Prompt\x20tokens\x20\x20Completion\x20tokens','parse','confidence','\x20(no\x20cap\x20enforced)','accessToken','\x20in\x20progress\x20on\x20session\x20','AUTH_TOKEN_FILE\x20\x27','isDesktopFallback','attachments','total_quota_pu','login','once','.aria','Switch\x20with:\x20delegate-cli\x20tenant\x20<name>\x0a','finish','from\x20','session_consumed_pu','First\x20login\x20requires\x20--env\x20or\x20--url.\x20Usage:\x20delegate-cli\x20login\x20--env\x20<alpha|staging|production>,\x20or\x20delegate-cli\x20login\x20--url\x20https://automationsuite.contoso.com','unit','total_sessions','--worker-id','model_id','Removed\x20','Auth\x20comes\x20from\x20AUTH_TOKEN/TENANT_ID/ORG_ID\x20—\x20set\x20TENANT_ID\x20and\x20TENANT_SLUG\x20to\x20change\x20the\x20tenant.','\x20must\x20be\x20a\x20whole\x20number\x20','):\x20','--print','noComputerUse','subcommand','No\x20CLI\x20login\x20found\x20—\x20nothing\x20to\x20remove.','--interop','off','label','now','--tenant\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Switch\x20tenants\x20with:\x20delegate-cli\x20tenant\x20<name>','aborted','stop','completion_tokens','a\x20project\x20id','[saved\x20login]\x20Backend\x20URL:\x20','replace','Claimed\x20from\x20delegation\x20','cwd','tenant','intro','detail','code','alpha','1013505qUfHMO','projectId','Session\x20\x20\x20\x20\x20\x20\x20','\x20token\x20units)','tenantId','Answered','toFixed','UPDATED','--task-automation\x20applies\x20to\x20prompts\x20only.','\x20\x20(input\x20#','complete','oneTurn','delete','trim','models','prompt','expiresAt','optional','page','deepLink','No\x20answers\x20awaiting\x20acceptance.\x0a','\x22.\x0a','stderr','No\x20usage\x20in\x20the\x20last\x20','lockReason','usage','3855408wEqCTn','--output-format','72088QOEmpm','localhost','medium','userinput','There\x20is\x20no\x20terminal\x20input\x20to\x20answer\x20from.','pct_used','map','noMemory','all','isInteger','bucket','--tenant','\x20applies\x20to\x20prompts\x20and\x20to\x20these\x20commands\x20only:\x20','\x20(type\x20your\x20own)','The\x20turn\x20was\x20cancelled.','dismissed','claim','findIndex','1\x20or\x20more','file','ASSIGNEE','Session:\x20','--env\x20localhost\x20has\x20no\x20OAuth\x20flow;\x20pick\x20alpha,\x20staging,\x20or\x20production.','\x20to\x20','keys','bind','--verbose','rename','models_breakdown','.\x20Use\x20','then','sourceUserEmail','tenantName','unknown\x20slug','delegations\x20list\x20<backend-project-id>','setPrompt','help','Tenant:\x20','--tenant\x20requires\x20a\x20tenant\x20name.','min','sessionId','a\x20JSON\x20schema\x20file','rubric_version','existsSync','choice\x20','transcribe','line','resolve','addEventListener','Something\x20else','\x20into\x20','step','delegations\x20show\x20<delegation-id|delegate://delegation/…>','a\x20skill\x20name','\x20tokens\x0a','Tokens:\x20','stream-json','--env','--session','--help','staging','stdout','Enter\x20a\x20number\x20','the\x20request','909950qzrhnY','Owner\x20\x20\x20\x20\x20\x20\x20\x20\x20','isError','3240042PFMdnv','Unknown\x20delegations\x20action:\x20','high','interopPath','Cancel\x20requested\x20for\x20turn\x20','delegations','No\x20structured\x20output:\x20the\x20turn\x20failed\x20('];_0x12af=function(){return _0x1d1383;};return _0x12af();}async function fn(_0x4047d2){const _0x32463f=_0x166297;let _0x5b37b9=[];for await(let _0x12bcff of _0x4047d2)_0x5b37b9[_0x32463f(0x160)](Buffer['from'](_0x12bcff));return Buffer[_0x32463f(0x152)](_0x5b37b9);}var ce=['list','pending',_0x166297(0x145),_0x166297(0x16c),'claim',_0x166297(0x1ac),_0x166297(0x27a),_0x166297(0x2b8),_0x166297(0x128),'delete'],de={'list':_0x166297(0x1e0),'pending':_0x166297(0x255),'show':_0x166297(0x1f2),'create':'delegations\x20create\x20--session\x20<id>\x20[--to\x20<email|name>]\x20[--summary\x20<text>]\x20\x22<task>\x22|-','claim':_0x166297(0x276),'complete':'delegations\x20complete\x20<delegation-id>\x20\x22<answer>\x22|-','accept':_0x166297(0x144),'dismiss':_0x166297(0x14c),'cancel':_0x166297(0x2d0),'delete':_0x166297(0x2a2)};async function gn(_0x1a2be2){const _0x3ddfee=_0x166297;let [_0xc34247='',_0x45750e='',..._0x5b6ee1]=_0x1a2be2[_0x3ddfee(0x2e1)];ce[_0x3ddfee(0x20d)](_0xc34247)||(console[_0x3ddfee(0x2ab)]((_0xc34247?_0x3ddfee(0x202)+_0xc34247+'.\x20':'')+_0x3ddfee(0x11d)+ce['join'](_0x3ddfee(0x233))+'.'),process[_0x3ddfee(0x2bb)](0x2));let _0x22702a=_0xc34247;_0x22702a!=='create'&&(_0x1a2be2[_0x3ddfee(0x241)]!==void 0x0||_0x1a2be2['contextSummary']!==void 0x0||_0x1a2be2[_0x3ddfee(0x1e6)]!==void 0x0)&&(console['error'](_0x3ddfee(0x26f)),process[_0x3ddfee(0x2bb)](0x2));let _0x1286bb=(_0x22702a==='create'?_0x1a2be2[_0x3ddfee(0x2e1)][_0x3ddfee(0x2bd)](0x1):_0x5b6ee1)[_0x3ddfee(0x15f)]('\x20')[_0x3ddfee(0x1af)](),_0x5afae5=_0x22702a===_0x3ddfee(0x16c)||_0x22702a===_0x3ddfee(0x1ac);(_0x22702a!==_0x3ddfee(0x16c)&&!_0x45750e||(_0x5afae5?!_0x1286bb:_0x1286bb)||_0x22702a==='create'&&!_0x1a2be2['sessionId'])&&(console['error']('Usage:\x20delegate-cli\x20'+de[_0x22702a]),process[_0x3ddfee(0x2bb)](0x2));let _0x453c5b=_0x5afae5&&_0x1286bb==='-'?(await j('-',process[_0x3ddfee(0x27f)]))[_0x3ddfee(0x1af)]():_0x1286bb;_0x5afae5&&!_0x453c5b&&(console['error'](_0x3ddfee(0x219)+de[_0x22702a]+'\x20(stdin\x20was\x20empty)'),process[_0x3ddfee(0x2bb)](0x2));let {client:_0x1fa421}=await v(_0x1a2be2);try{await hn(_0x1a2be2,_0x1fa421,_0x22702a,_0x45750e,_0x453c5b);}catch(_0x45a22c){if(!_0x249377(_0x45a22c))throw _0x45a22c;console[_0x3ddfee(0x2ab)](_0x45a22c[_0x3ddfee(0x14a)]),process[_0x3ddfee(0x2bb)](0x1);}}async function hn(_0x30b371,_0x5a10b1,_0x2f4331,_0x98e610,_0x1a4710){const _0x34328f=_0x166297;switch(_0x2f4331){case _0x34328f(0x28c):u(_0x30b371,await _0x325be5(_0x5a10b1,_0x98e610),yn);return;case _0x34328f(0x289):u(_0x30b371,await _0x354a62(_0x5a10b1,_0x98e610),_0xf97f3c=>{const _0x411f58=_0x34328f;_0xf97f3c[_0x411f58(0x146)]&&process['stdout'][_0x411f58(0x282)](_0x411f58(0x19b)+_0xf97f3c[_0x411f58(0x146)]['id']+'\x20('+_0xf97f3c['delegation'][_0x411f58(0x24e)]+_0x411f58(0x117)),_0xf97f3c['pendingResults'][_0x411f58(0x239)]===0x0&&process[_0x411f58(0x1b8)]['write'](_0x411f58(0x1b6));for(let _0xf4ad36 of _0xf97f3c[_0x411f58(0x27c)])process['stdout'][_0x411f58(0x282)]('\x0a'+_0xf4ad36['id']+_0x411f58(0x26c)+(_0xf4ad36[_0x411f58(0x2d2)]??_0x411f58(0x13c))+'\x20\x20'+(_0xf4ad36[_0x411f58(0x169)]??'')+'\x0a'+(_0xf4ad36[_0x411f58(0x296)]?.['content']??'')+'\x0a');_0xf97f3c[_0x411f58(0x27c)][_0x411f58(0x239)]>0x0&&process[_0x411f58(0x1b8)][_0x411f58(0x282)](_0x411f58(0x2c7));});return;case _0x34328f(0x145):u(_0x30b371,await _0x109651(_0x5a10b1,_0x98e610),ue);return;case _0x34328f(0x16c):{let _0x3e39d6=await _0x22f52b(_0x5a10b1,{'sessionId':_0x30b371[_0x34328f(0x1e6)],'task':_0x1a4710,..._0x30b371[_0x34328f(0x2e8)]!==void 0x0&&{'contextSummary':_0x30b371[_0x34328f(0x2e8)]},..._0x30b371[_0x34328f(0x241)]!==void 0x0&&{'recipient':_0x30b371[_0x34328f(0x241)]}});u(_0x30b371,_0x3e39d6,_0x2dd33d=>{const _0x11d88e=_0x34328f;_0x2dd33d['assignedUser']?process[_0x11d88e(0x1fb)]['write'](_0x11d88e(0x24b)+_0x2dd33d[_0x11d88e(0x27e)]+'\x20to\x20'+_0x2dd33d[_0x11d88e(0x212)][_0x11d88e(0x27b)]+'\x20<'+_0x2dd33d[_0x11d88e(0x212)][_0x11d88e(0x16d)]+_0x11d88e(0x272)):process[_0x11d88e(0x1fb)][_0x11d88e(0x282)](_0x11d88e(0x2ba)+_0x2dd33d[_0x11d88e(0x27e)]+_0x11d88e(0x114)+_0x2dd33d[_0x11d88e(0x1b5)]+'\x0a');});return;}case _0x34328f(0x1ce):{let _0x4366e8=await _0x7bc3cf(_0x5a10b1,_0x98e610);u(_0x30b371,_0x4366e8,_0x461df5=>{const _0x4745ba=_0x34328f;ue(_0x461df5),process[_0x4745ba(0x1fb)][_0x4745ba(0x282)]('Session\x20\x20\x20\x20\x20\x20\x20'+_0x461df5[_0x4745ba(0x1e6)]+'\x0a'),process[_0x4745ba(0x1b8)][_0x4745ba(0x282)]('Work\x20on\x20it\x20with:\x20delegate-cli\x20--session\x20'+_0x461df5['sessionId']+_0x4745ba(0x26d)+_0x461df5['delegationId']+_0x4745ba(0x13b));});return;}case _0x34328f(0x1ac):{let {alreadyCompleted:_0x123a36}=await _0x5657d9(_0x5a10b1,_0x98e610,{'content':_0x1a4710});u(_0x30b371,{'delegationId':_0x98e610,'alreadyCompleted':_0x123a36},_0x4db603=>{const _0x164575=_0x34328f;process[_0x164575(0x1fb)][_0x164575(0x282)]((_0x4db603[_0x164575(0x298)]?_0x164575(0x14f):_0x164575(0x1a7))+'\x20delegation\x20'+_0x4db603[_0x164575(0x27e)]+'.\x0a');});return;}case'accept':{let _0x1a3d30=await _0x1f9a4b(_0x5a10b1,_0x98e610);u(_0x30b371,{'delegationId':_0x98e610,..._0x1a3d30},_0x36ecf0=>{const _0x482a2d=_0x34328f;process['stdout'][_0x482a2d(0x282)]((_0x36ecf0[_0x482a2d(0x140)]?_0x482a2d(0x131):_0x482a2d(0xf5))+_0x482a2d(0x297)+_0x36ecf0[_0x482a2d(0x27e)]+'.\x0a');});return;}default:{let _0x17d18f={'dismiss':_0x193a71,'cancel':_0xeba920,'delete':_0x57abef}[_0x2f4331];await _0x17d18f(_0x5a10b1,_0x98e610);let _0x1fd6c4={'dismiss':_0x34328f(0x1cd),'cancel':_0x34328f(0x121),'delete':_0x34328f(0x2e7)}[_0x2f4331];u(_0x30b371,{'delegationId':_0x98e610,[_0x1fd6c4]:!0x0},()=>{const _0x47c2d0=_0x34328f;process[_0x47c2d0(0x1fb)][_0x47c2d0(0x282)](''+_0x1fd6c4[0x0][_0x47c2d0(0x155)]()+_0x1fd6c4['slice'](0x1)+_0x47c2d0(0x297)+_0x98e610+'.\x0a');});}}}function yn(_0x5d68f3){const _0x1ca85f=_0x166297;if(_0x5d68f3[_0x1ca85f(0x239)]===0x0){process[_0x1ca85f(0x1b8)]['write'](_0x1ca85f(0x265));return;}process[_0x1ca85f(0x1fb)][_0x1ca85f(0x282)]('ID'[_0x1ca85f(0x24f)](0x24)+'\x20\x20'+_0x1ca85f(0x2d9)['padEnd'](0x9)+'\x20\x20'+_0x1ca85f(0x1d2)[_0x1ca85f(0x24f)](0x18)+_0x1ca85f(0x252));for(let _0x281d9a of _0x5d68f3)process[_0x1ca85f(0x1fb)][_0x1ca85f(0x282)](_0x281d9a['id'][_0x1ca85f(0x24f)](0x24)+'\x20\x20'+_0x281d9a[_0x1ca85f(0x24e)][_0x1ca85f(0x24f)](0x9)+'\x20\x20'+(_0x281d9a[_0x1ca85f(0x2d2)]??'-')['padEnd'](0x18)+'\x20\x20'+(_0x281d9a[_0x1ca85f(0x169)]??'')+'\x0a');}function ue(_0x14757b){const _0x18082f=_0x166297;process[_0x18082f(0x1fb)][_0x18082f(0x282)](_0x18082f(0x2b5)+(_0x14757b[_0x18082f(0x1dd)]??'-')+'\x0a'),_0x14757b[_0x18082f(0x2ac)]&&process[_0x18082f(0x1fb)][_0x18082f(0x282)](_0x18082f(0x1a4)+_0x14757b[_0x18082f(0x2ac)]+'\x0a'),process['stdout']['write']('Task\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x14757b['task']??'-')+'\x0a'),_0x14757b['contextSummary']&&process[_0x18082f(0x1fb)][_0x18082f(0x282)]('\x0a'+_0x14757b['contextSummary']+'\x0a\x0a');}async function wn(_0xf6fc){const _0x3dcc5f=_0x166297;_0xf6fc['prompt'][_0x3dcc5f(0x1af)]()||(console[_0x3dcc5f(0x2ab)](_0x3dcc5f(0x223)),process[_0x3dcc5f(0x2bb)](0x2));let {client:_0xa54396}=await v(_0xf6fc),_0x336455;try{_0x336455=await _0x2cff76(_0xa54396,_0xf6fc[_0x3dcc5f(0x1b1)]);}catch(_0x411eed){if(!_0x249377(_0x411eed))throw _0x411eed;console[_0x3dcc5f(0x2ab)](_0x411eed[_0x3dcc5f(0x14a)]),process[_0x3dcc5f(0x2bb)](0x1);}u(_0xf6fc,_0x336455,_0x56811e=>{const _0x365b57=_0x3dcc5f;_0x56811e[_0x365b57(0x239)]===0x0&&process[_0x365b57(0x1b8)][_0x365b57(0x282)](_0x365b57(0x217)+_0xf6fc[_0x365b57(0x1b1)][_0x365b57(0x1af)]()+_0x365b57(0x1b7));for(let _0x25aca5 of _0x56811e)process['stdout'][_0x365b57(0x282)](_0x25aca5[_0x365b57(0x16d)][_0x365b57(0x24f)](0x20)+'\x20\x20'+_0x25aca5[_0x365b57(0x27b)]+'\x0a');});}async function kn(_0x7b861e){const _0x312f9a=_0x166297;_0x7b861e[_0x312f9a(0x2b7)]==='localhost'&&(console[_0x312f9a(0x2ab)](_0x312f9a(0x1d4)),process['exit'](0x2));let _0x16a9b9=M(_0xeadd32()),_0x45ff24=_0x7b861e[_0x312f9a(0x264)];if(_0x7b861e['env']){let _0x11fbcf=_0x7b861e[_0x312f9a(0x2b7)];await _0x4d02f6({'env':_0x11fbcf,'tenant':_0x7b861e['tenant']??G(_0x16a9b9,_0x1699d2[_0x11fbcf]),'skipEnvCheck':_0x45ff24});return;}let _0x5aac05=_0x7b861e[_0x312f9a(0x2c2)]??ve();if(_0x5aac05){await _0x4d02f6({'baseUrl':_0x5aac05,'tenant':_0x7b861e[_0x312f9a(0x19d)]??G(_0x16a9b9,_0x5aac05),'skipEnvCheck':_0x45ff24});return;}if(_0x16a9b9?.[_0x312f9a(0x292)]){await _0x4d02f6({'baseUrl':_0x16a9b9['baseUrl'],'tenant':_0x7b861e[_0x312f9a(0x19d)]??_0x16a9b9['tenantName'],'skipEnvCheck':_0x45ff24});return;}console[_0x312f9a(0x2ab)](_0x312f9a(0x183)),process[_0x312f9a(0x2bb)](0x2);}function G(_0x3bfc57,_0xdd3076){return _0x3bfc57?.['baseUrl']&&bn(_0x3bfc57['baseUrl'],_0xdd3076)?_0x3bfc57['tenantName']:void 0x0;}function bn(_0x5a2d11,_0x5363a7){const _0x53afbd=_0x166297;try{return new URL(_0x5a2d11)[_0x53afbd(0x29f)]===new URL(_0x5363a7)['origin'];}catch{return!0x1;}}async function Sn(_0x26bbda){const _0x242413=_0x166297;Q()&&(console['error'](_0x242413(0x189)),process[_0x242413(0x2bb)](0x2));let _0x4ae993=await _0x126a54();if(_0x4ae993||(console['error'](vn()),process[_0x242413(0x2bb)](0x2)),_0x26bbda[_0x242413(0x1af)]()){let _0x13449e=await _0x3da2f8(_0x4ae993,_0x26bbda);_0xeef9c2(_0x13449e)||(console[_0x242413(0x2ab)]('Tenant\x20not\x20switched:\x20could\x20not\x20write\x20'+_0xeadd32()+_0x242413(0x2dd)+_0x4ae993['tenantName']+'.'),process[_0x242413(0x2bb)](0x1)),console[_0x242413(0x141)](_0x242413(0x1e3)+_0x13449e['tenantName']+'\x20('+_0x13449e['tenantId']+_0x242413(0x159)+_0xeadd32());return;}An(await _0x241bb7(_0x4ae993),_0x4ae993);}function vn(){const _0x5e92f1=_0x166297;if(_0x41a71a[_0x5e92f1(0x1e9)](_0xeadd32()))return'The\x20saved\x20CLI\x20login\x20could\x20not\x20be\x20refreshed.\x20Run\x20`delegate-cli\x20login`\x20again.';let _0x5b05a6=K();return M(_0x5b05a6)?_0x5e92f1(0x270)+_0x5b05a6+_0x5e92f1(0x2a0):_0x5e92f1(0x127);}function An(_0xd65241,_0x402f43){const _0x5587f7=_0x166297;let _0x76299a=_0xd65241[_0x5587f7(0x1c4)](_0x1e9217=>_0x1e9217['id']===_0x402f43[_0x5587f7(0x1a6)]?'*\x20'+_0x1e9217['name']+_0x5587f7(0x2ca):'\x20\x20'+_0x1e9217[_0x5587f7(0x291)]);process[_0x5587f7(0x1fb)][_0x5587f7(0x282)]('Tenants\x20of\x20'+(_0x402f43[_0x5587f7(0x25c)]??_0x402f43[_0x5587f7(0x10e)])+':\x0a'+_0x76299a['join']('\x0a')+'\x0a'),_0xd65241[_0x5587f7(0x239)]>0x1&&process[_0x5587f7(0x1fb)][_0x5587f7(0x282)](_0x5587f7(0x17f));}function $n(_0x41e755){const _0x3ef044=_0x166297;return _0x41e755?.[_0x3ef044(0x211)]?.[_0x3ef044(0x24e)]===0x191||/401/[_0x3ef044(0x142)](String(_0x41e755?.['message']??''));}var f={'lastType':null,'quiet':!0x1},Ee=_0x148af8=>{const _0x4e7742=_0x166297;switch(_0x148af8[_0x4e7742(0x267)]){case'session_start':_0x148af8[_0x4e7742(0x1e6)]&&_0x148af8[_0x4e7742(0x1e6)]!==f[_0x4e7742(0x1e6)]&&(process[_0x4e7742(0x1b8)][_0x4e7742(0x282)](_0x4e7742(0x1d3)+_0x148af8[_0x4e7742(0x1e6)]+_0x4e7742(0x20c)+_0x148af8[_0x4e7742(0x1e6)]+')\x0a'),f[_0x4e7742(0x1e6)]=_0x148af8[_0x4e7742(0x1e6)]);break;case _0x4e7742(0x21a):_0x148af8[_0x4e7742(0x28d)]&&_0x148af8[_0x4e7742(0x28d)]!==f[_0x4e7742(0x28d)]&&(f[_0x4e7742(0x2a8)]!==null&&process[_0x4e7742(0x1b8)][_0x4e7742(0x282)]('\x0a'),process['stderr'][_0x4e7742(0x282)](_0x4e7742(0x279)+_0x148af8['turnId']+_0x4e7742(0x244)+_0x148af8[_0x4e7742(0x1e6)]+'\x20--turn\x20'+_0x148af8[_0x4e7742(0x28d)]+')\x0a'),f['turnId']=_0x148af8[_0x4e7742(0x28d)],f[_0x4e7742(0x2a8)]='turn_start');break;case _0x4e7742(0x143):_0x148af8[_0x4e7742(0x2ea)]&&!f['quiet']&&(f['lastType']!==_0x4e7742(0x143)&&process[_0x4e7742(0x1b8)]['write'](_0x4e7742(0x2be)),process['stderr'][_0x4e7742(0x282)](_0x148af8[_0x4e7742(0x2ea)]),f[_0x4e7742(0x2a8)]=_0x4e7742(0x143));break;case _0x4e7742(0x10d):f[_0x4e7742(0x2a8)]!==null&&process['stderr']['write']('\x0a'),process[_0x4e7742(0x1b8)]['write'](_0x4e7742(0x111)+(_0x148af8[_0x4e7742(0x22e)]??'tool')+'\x0a'),f[_0x4e7742(0x2a8)]='tool_call';break;case _0x4e7742(0x14a):_0x148af8[_0x4e7742(0x2ea)]&&(f[_0x4e7742(0x2a8)]!==_0x4e7742(0x14a)&&f[_0x4e7742(0x2a8)]!==null&&process[_0x4e7742(0x1fb)]['write']('\x0a'),process[_0x4e7742(0x1fb)][_0x4e7742(0x282)](_0x148af8[_0x4e7742(0x2ea)]),f[_0x4e7742(0x2a8)]='message');break;case'error':f[_0x4e7742(0x2a8)]!==null&&process['stderr'][_0x4e7742(0x282)]('\x0a'),process[_0x4e7742(0x1b8)][_0x4e7742(0x282)]('✗\x20'+(_0x148af8[_0x4e7742(0x2ab)]??_0x4e7742(0x2ab))+'\x0a'),f[_0x4e7742(0x2a8)]=_0x4e7742(0x2ab);break;case _0x4e7742(0x124):(f[_0x4e7742(0x2a8)]===_0x4e7742(0x14a)||f[_0x4e7742(0x2a8)]==='thinking')&&process['stdout'][_0x4e7742(0x282)]('\x0a'),process[_0x4e7742(0x1b8)]['write'](_0x4e7742(0x29d)),f[_0x4e7742(0x2a8)]=_0x4e7742(0x124);break;}};function pe(_0x159a2d,_0x4db719,_0x5db2b8,_0x1c385c){const _0x52272b=_0x166297;let _0x3828a1=_0x159a2d[_0x52272b(0x22d)]||process.env.MODEL;return{'backendUrl':_0x5db2b8,'auth':_0x4db719,'enableComputerUse':!_0x159a2d['headless']&&!_0x159a2d['noComputerUse'],'autoSpawnInterop':!_0x159a2d[_0x52272b(0x2d3)],'enableConnections':!_0x159a2d[_0x52272b(0x2c9)],'enableSecurity':!_0x159a2d[_0x52272b(0x133)],'keepInteropAlive':_0x159a2d[_0x52272b(0x2b4)],..._0x1c385c[_0x52272b(0x1ad)]?{'enableBackgroundCommands':!0x1}:{},..._0x159a2d['noMemory']?{'enableMemory':!0x1}:{},..._0x159a2d[_0x52272b(0x210)]?{'enableTaskAutomation':!0x0}:{},..._0x159a2d[_0x52272b(0xfb)][_0x52272b(0x239)]>0x0?{'preloadSkills':_0x159a2d[_0x52272b(0xfb)]}:{},..._0x3828a1?{'model':_0x3828a1}:{},..._0x159a2d[_0x52272b(0x1a3)]?{'projectId':_0x159a2d[_0x52272b(0x1a3)]}:{},..._0x159a2d['workingDirectory']?{'workingDirectory':_0x159a2d[_0x52272b(0x23a)]}:{},..._0x159a2d[_0x52272b(0x15c)]?{'bundledSkillsPath':_0x159a2d[_0x52272b(0x15c)]}:{},..._0x159a2d[_0x52272b(0x286)]?{'effort':_0x159a2d['effort']}:{},..._0x159a2d['sessionId']?{'sessionId':_0x159a2d[_0x52272b(0x1e6)]}:{},..._0x159a2d['verbose']?{'verbose':!0x0}:{}};}function _0x1449(_0x516528,_0x20c634){_0x516528=_0x516528-0xf3;const _0x12af2a=_0x12af();let _0x1449f5=_0x12af2a[_0x516528];return _0x1449f5;}async function En(_0x869f4e){const _0x2d0ea2=_0x166297;let _0x2f7fd7=_0x869f4e[_0x2d0ea2(0x2b3)]!=='text',_0xc33735=_0x869f4e[_0x2d0ea2(0xfe)]===void 0x0?null:$e(_0x869f4e[_0x2d0ea2(0xfe)],_0x2d0ea2(0x104)),_0x14483c=!_0x2f7fd7&&!_0xc33735&&!_0x869f4e[_0x2d0ea2(0x2db)]&&_0x869f4e[_0x2d0ea2(0x1b1)]!=='-'&&!!process[_0x2d0ea2(0x27f)]['isTTY']&&!!process['stdout'][_0x2d0ea2(0x153)],_0x866c22=_0x14483c?_0x869f4e[_0x2d0ea2(0x1b1)][_0x2d0ea2(0x1af)]():await j(_0x869f4e[_0x2d0ea2(0x1b1)],process['stdin']);if(!_0x14483c&&!_0x866c22&&(console['error']('Missing\x20prompt.\x20Pass\x20it\x20as\x20an\x20argument,\x20pipe\x20it\x20via\x20stdin,\x20or\x20run\x20`delegate-cli\x20--help`.'),process[_0x2d0ea2(0x2bb)](0x2)),!_0x2f7fd7){await me(_0x869f4e,_0x866c22,_0x14483c,null,_0xc33735);return;}let _0x4398aa=!0x1,_0xa67e45=_0x2c1c2e=>{const _0x129b3a=_0x2d0ea2;_0x4398aa=!0x0,P(_0x1afa83(_0x2c1c2e)),(_0x2c1c2e[_0x129b3a(0x200)]||_0x2c1c2e[_0x129b3a(0x209)])&&(process['exitCode']=0x1);},_0x26ccb7=Date[_0x2d0ea2(0x193)]();try{await me(_0x869f4e,_0x866c22,!0x1,_0xa67e45,_0xc33735);}catch(_0x245bb8){if(_0x4398aa)throw _0x245bb8;process['stderr'][_0x2d0ea2(0x282)]((_0x245bb8 instanceof Error?_0x245bb8[_0x2d0ea2(0x220)]??_0x245bb8[_0x2d0ea2(0x14a)]:String(_0x245bb8))+'\x0a'),_0xa67e45(new _0x528d7c(_0x26ccb7)[_0x2d0ea2(0x180)]({'endedAtMs':Date[_0x2d0ea2(0x193)](),'usage':[],'error':_0x245bb8}));}}async function me(_0x2617ff,_0x2538df,_0x1b6901,_0x444af3,_0x48bc67){const _0x11543c=_0x166297;f={'lastType':null,'quiet':_0x2617ff[_0x11543c(0x237)]};let _0x5623f9=new Set(),_0x29e21e,_0x25b5d6=_0x41a574=>{const _0x2a5488=_0x11543c;(!_0x444af3||_0x41a574[_0x2a5488(0x267)]===_0x2a5488(0x249)||_0x41a574[_0x2a5488(0x267)]===_0x2a5488(0x21a))&&(_0x29e21e??Ee)(_0x41a574);for(let _0x3f065b of _0x5623f9)_0x3f065b(_0x41a574);},_0x37e657=await q(),_0x2d075a=new _0x36de5d();_0x2d075a[_0x11543c(0x2b9)](_0x25b5d6);let _0x11a863=_0x35acc7(_0x2617ff['env'],_0x37e657,_0x2617ff[_0x11543c(0x2a6)]);z(_0x2617ff[_0x11543c(0x2b7)],_0x2617ff[_0x11543c(0x2a6)],_0x11a863);let _0x30cbe2={'input':null},_0x1bb7af=_0x1b6901?Z(()=>_0x30cbe2['input'],_0x910c05=>{const _0x496c9b=_0x11543c;process[_0x496c9b(0x1b8)][_0x496c9b(0x282)](_0x910c05);}):null,_0x2a6db6=_0x5b9a02=>_0x1bb7af?{..._0x5b9a02,'askUser':_0x1bb7af}:_0x5b9a02,_0x4a8b28=_0x2a6db6(pe(_0x2617ff,_0x37e657,_0x11a863,{'oneTurn':!_0x1b6901})),_0x596f1e=!0x1,_0x33da98=!0x1,_0x13a9be,_0x3ccd19=()=>_0x13a9be??=_0x2d075a[_0x11543c(0x2c5)](),_0x5084ed=()=>{const _0x71b1ac=_0x11543c;_0x33da98&&process[_0x71b1ac(0x2bb)](0x82),_0x33da98=!0x0,process[_0x71b1ac(0x1b8)][_0x71b1ac(0x282)]('\x0aStopping…\x20(Ctrl+C\x20again\x20to\x20force\x20exit)\x0a'),_0x596f1e&&_0x2d075a['cancel']()[_0x71b1ac(0x20a)](_0x3bf1e9=>console['error'](_0x3bf1e9))[_0x71b1ac(0x1dc)](_0x3ccd19)['then'](()=>process[_0x71b1ac(0x2bb)](0x82),_0x5a6e75=>{const _0x27ecac=_0x71b1ac;console['error'](_0x5a6e75),process[_0x27ecac(0x2bb)](0x82);});};process['on']('SIGINT',_0x5084ed);let _0x4ad790=_0x2617ff[_0x11543c(0x17a)],_0x4be8c0=async _0x4670ef=>{const _0x28bcf0=_0x11543c;let _0x34f5e5=_0x4ad790;_0x4ad790=[];let _0x39b985=()=>_0x2d075a['sendMessage'](_0x4670ef,{'attachments':_0x34f5e5});try{return await _0x39b985();}catch(_0x3d6a25){if(_0x33da98||!$n(_0x3d6a25)||!process[_0x28bcf0(0x27f)]['isTTY']||_0x2617ff[_0x28bcf0(0x2b7)]===_0x28bcf0(0x1bf)||!(_0x2617ff['env']||_0x37e657[_0x28bcf0(0x292)]))throw _0x3d6a25;process[_0x28bcf0(0x1b8)][_0x28bcf0(0x282)](_0x28bcf0(0x247));let _0x4fb121=_0x2d075a[_0x28bcf0(0x2e6)]()??_0x2617ff[_0x28bcf0(0x1e6)],_0x75736e=await _0x4d02f6(_0x2617ff[_0x28bcf0(0x2b7)]?{'env':_0x2617ff[_0x28bcf0(0x2b7)],'tenant':G(_0x37e657,_0x1699d2[_0x2617ff['env']]),'skipEnvCheck':!0x0}:{'baseUrl':_0x37e657[_0x28bcf0(0x292)],'tenant':_0x37e657['tenantName'],'skipEnvCheck':!0x0}),_0xf2f417={'text':'','failed':!0x1,'sessionId':_0x4fb121};return _0x33da98||(_0x596f1e=!0x1,await _0x3ccd19(),_0x33da98)?_0xf2f417:(_0x2d075a=new _0x36de5d(),_0x13a9be=void 0x0,_0x2d075a[_0x28bcf0(0x2b9)](_0x25b5d6),_0x37e657=_0x75736e,await _0x2d075a[_0x28bcf0(0x235)]({..._0x2a6db6(pe(_0x2617ff,_0x37e657,_0x11a863,{'oneTurn':!_0x1b6901})),..._0x4fb121?{'sessionId':_0x4fb121}:{}}),_0x596f1e=!0x0,_0x33da98?_0xf2f417:_0x39b985());}};try{if(await _0x2d075a[_0x11543c(0x235)](_0x4a8b28),_0x596f1e=!0x0,_0x33da98)return;if(_0x1b6901)await xn({'prompt':_0x2538df,'sendMessage':_0x4be8c0,'onSigint':_0x5084ed,'setAnswerInput':_0x2ff820=>{const _0x1b0188=_0x11543c;_0x30cbe2[_0x1b0188(0x116)]=_0x2ff820;},'registerEventPrinter':_0x66ee32=>(_0x29e21e=_0x66ee32,()=>{_0x29e21e=void 0x0;})});else{if(_0x444af3||_0x48bc67){let _0x8cfa89=_0x2617ff[_0x11543c(0x2b3)]===_0x11543c(0x1f6)?_0x1c915e=>P(_0x481924(_0x1c915e)):()=>{},_0x803568=await _0x1a4af0({'onEvent':_0x51d715=>(_0x5623f9[_0x11543c(0x226)](_0x51d715),()=>{const _0x416dce=_0x11543c;_0x5623f9[_0x416dce(0x1ae)](_0x51d715);}),'sendMessage':_0x4799ea=>_0x4be8c0(_0x4799ea),'getSessionId':()=>_0x2d075a[_0x11543c(0x2e6)](),'getTurnUsageHistory':_0x1cd910=>_0x2d075a[_0x11543c(0x167)](_0x1cd910),'complete':_0x1d9f63=>_0x2d075a[_0x11543c(0x1ac)](_0x1d9f63)},_0x2538df,void 0x0,_0x8cfa89,_0x48bc67?{'outputSchema':_0x48bc67}:void 0x0);_0x444af3?_0x444af3(_0x803568):In(_0x803568);}else await _0x4be8c0(_0x2538df);}}catch(_0x5676ca){if(!_0x33da98)throw _0x5676ca;}finally{try{await _0x3ccd19();}finally{process[_0x11543c(0x191)]('SIGINT',_0x5084ed),_0x33da98&&(process['exitCode']=0x82);}}}function In(_0x1bc60b){const _0x569a46=_0x166297;_0x1bc60b[_0x569a46(0x209)]?(console[_0x569a46(0x2ab)](_0x569a46(0x149)+_0x1bc60b[_0x569a46(0x209)][_0x569a46(0x14a)]),process[_0x569a46(0x10b)]=0x1):_0x1bc60b[_0x569a46(0x200)]?(console[_0x569a46(0x2ab)](_0x569a46(0x207)+_0x1bc60b['error']+').'),process[_0x569a46(0x10b)]=0x1):process['stdout'][_0x569a46(0x282)](JSON['stringify'](_0x1bc60b[_0x569a46(0x163)],null,0x2)+'\x0a');}function Tn(_0x33f080,_0x435499){const _0x1a37e8=_0x166297;let _0x305afd=process[_0x1a37e8(0x1fb)][_0x1a37e8(0x282)]['bind'](process['stdout']),_0x46819f=!0x1;return process[_0x1a37e8(0x1fb)][_0x1a37e8(0x282)]=(..._0x259086)=>{const _0x13a5bc=_0x1a37e8;if(!_0x46819f)return _0x305afd(..._0x259086);_0xeb5c3a(_0x435499,0x0),_0x2f55bf(_0x435499,0x0);let _0x366743=_0x305afd(..._0x259086);return _0x33f080[_0x13a5bc(0x1b1)](!0x0),_0x366743;},{'show':()=>{_0x46819f=!0x0,_0x33f080['prompt']();},'hide':()=>{_0x46819f=!0x1;},'erase':()=>{_0x46819f&&(_0xeb5c3a(_0x435499,0x0),_0x2f55bf(_0x435499,0x0)),_0x46819f=!0x1;},'restore':()=>{const _0x50ea0f=_0x1a37e8;_0x46819f=!0x1,process[_0x50ea0f(0x1fb)][_0x50ea0f(0x282)]=_0x305afd;}};}async function xn({prompt:_0x49848e,sendMessage:_0x1f5fda,onSigint:_0x4090c1,setAnswerInput:_0x52f97e,registerEventPrinter:_0x324f2b}){const _0x1c37fb=_0x166297;let _0x5bcd49=_0x32df7c({'input':process[_0x1c37fb(0x27f)],'output':process[_0x1c37fb(0x1b8)],'terminal':!0x0,'prompt':_0x1c37fb(0x14e)}),_0x29a8da=Tn(_0x5bcd49,process[_0x1c37fb(0x1b8)]),_0x4ed921=[],_0xcad404,_0x4b65a8,_0xc9eaf0,_0x495914=!0x1,_0x117beb=!0x1,_0x53aa9b=!0x1,_0x5645d1=Promise['resolve'](),_0xe8acda,_0x14cc14=_0x324f2b(_0x18c524=>{const _0x172a39=_0x1c37fb;_0x18c524[_0x172a39(0x267)]==='session_start'&&(_0x29a8da[_0x172a39(0x2a1)](),_0x5645d1=new Promise(_0x58fbcc=>{_0xe8acda=_0x58fbcc;})),Ee(_0x18c524),_0x18c524[_0x172a39(0x267)]===_0x172a39(0x124)&&(_0xe8acda?.(),_0xe8acda=void 0x0,!_0x53aa9b&&!_0x495914&&_0x29a8da[_0x172a39(0x145)]());}),_0x5ea6de=()=>{const _0x19f254=_0x1c37fb;_0x117beb=!0x0,_0xe8acda?.(),_0x4090c1(),_0x5bcd49[_0x19f254(0x15b)]();};_0x5bcd49['on'](_0x1c37fb(0x1ec),_0x8017b2=>{const _0x507e74=_0x1c37fb;_0xc9eaf0?_0xc9eaf0(_0x8017b2):_0xcad404?_0xcad404[_0x507e74(0x160)](_0x8017b2):_0x4b65a8?_0x4b65a8(_0x8017b2):_0x4ed921[_0x507e74(0x160)](_0x8017b2);}),_0x5bcd49[_0x1c37fb(0x17d)](_0x1c37fb(0x15b),()=>{const _0xd72b35=_0x1c37fb;_0x495914=!0x0,_0x29a8da[_0xd72b35(0x22c)](),_0xcad404&&!_0x117beb&&_0x5ea6de(),_0x4b65a8?.(null);});let _0x6e0ac=()=>_0x4ed921[_0x1c37fb(0x239)]>0x0?Promise[_0x1c37fb(0x1ed)](_0x4ed921[_0x1c37fb(0x261)]()):_0x495914?Promise[_0x1c37fb(0x1ed)](null):new Promise(_0x2ce294=>{_0x4b65a8=_0x485fe0=>{_0x4b65a8=void 0x0,_0x2ce294(_0x485fe0);};});_0x52f97e({'readLine':(_0x2ee88c,_0x317852)=>new Promise((_0x564ee2,_0x13b017)=>{const _0x38162c=_0x1c37fb;if(_0x495914&&!_0xcad404){_0x564ee2(null);return;}_0xcad404??=[];let _0x28eb0d=_0xcad404[_0x38162c(0x261)]();if(_0x28eb0d!==void 0x0){_0x564ee2(_0x28eb0d);return;}let _0x5c5716=()=>{const _0x2ca7d9=_0x38162c;_0xc9eaf0=void 0x0,_0x317852[_0x2ca7d9(0x164)](_0x2ca7d9(0x2cd),_0x1252f7),_0x29a8da[_0x2ca7d9(0x22c)](),_0x5bcd49[_0x2ca7d9(0x1e1)](_0x2ca7d9(0x14e));},_0x1252f7=()=>{_0x5c5716(),_0x13b017(new Error('The\x20turn\x20was\x20cancelled.'));};_0x317852[_0x38162c(0x1ee)](_0x38162c(0x2cd),_0x1252f7,{'once':!0x0}),!_0x495914&&(_0xc9eaf0=_0x768a64=>{_0x5c5716(),_0x564ee2(_0x768a64);},_0x5bcd49['setPrompt'](_0x2ee88c),_0x29a8da[_0x38162c(0x145)]());}),'endQuestions':()=>{_0xcad404&&_0x4ed921['push'](..._0xcad404),_0xcad404=void 0x0;}}),_0x5bcd49['on'](_0x1c37fb(0x156),_0x5ea6de),process[_0x1c37fb(0x1b8)][_0x1c37fb(0x282)](_0x1c37fb(0x2e5));let _0x2158b6=async _0x49e7d3=>{_0x53aa9b=!0x0;try{await _0x1f5fda(_0x49e7d3);}finally{_0x53aa9b=!0x1;}};try{if(_0x49848e&&await _0x2158b6(_0x49848e),_0x117beb)return;!_0x495914&&!_0xe8acda&&_0x29a8da[_0x1c37fb(0x145)]();for(let _0x484856=await _0x6e0ac();_0x484856!==null&&(_0x29a8da['hide'](),!_0x117beb);_0x484856=await _0x6e0ac()){let _0x4ff2a3=_0x484856[_0x1c37fb(0x1af)]();if(_0x4ff2a3==='/exit')break;_0x4ff2a3&&await _0x2158b6(_0x4ff2a3),!_0x495914&&!_0xe8acda&&_0x29a8da[_0x1c37fb(0x145)]();}for(;!_0x117beb&&_0xe8acda;)await _0x5645d1;}finally{_0x52f97e(null),_0x14cc14(),_0x29a8da[_0x1c37fb(0x259)](),_0x5bcd49[_0x1c37fb(0x191)]('SIGINT',_0x5ea6de),_0x5bcd49[_0x1c37fb(0x15b)]();}}async function Dn(){const _0x1f9e87=_0x166297;let _0x38c082=Rt(process[_0x1f9e87(0x2b2)]['slice'](0x2));if(_0x38c082[_0x1f9e87(0x2b3)]==='text'){await fe(_0x38c082);return;}let _0x1a520c=Pt();try{await fe(_0x38c082);}finally{_0x1a520c();}}async function fe(_0x31f4a4){const _0x1f9ed8=_0x166297;if(_0x31f4a4[_0x1f9ed8(0x1e2)]){Ct();return;}if(_0x31f4a4[_0x1f9ed8(0x14d)]){console[_0x1f9ed8(0x141)](Lt());return;}if(_0x31f4a4['subcommand']===_0x1f9ed8(0x17c)){await kn(_0x31f4a4);return;}if(_0x31f4a4['subcommand']==='tenant'){await Sn(_0x31f4a4['prompt']);return;}if(_0x31f4a4[_0x1f9ed8(0x18e)]===_0x1f9ed8(0xf4)){await Mt();return;}if(_0x31f4a4[_0x1f9ed8(0x18e)]===_0x1f9ed8(0x294)){await Bt(_0x31f4a4);return;}if(_0x31f4a4[_0x1f9ed8(0x18e)]===_0x1f9ed8(0x1b0)){await Wt(_0x31f4a4);return;}if(_0x31f4a4[_0x1f9ed8(0x18e)]===_0x1f9ed8(0x2c4)){await Zt(_0x31f4a4);return;}if(_0x31f4a4[_0x1f9ed8(0x18e)]===_0x1f9ed8(0x100)){await Qt(_0x31f4a4);return;}if(_0x31f4a4[_0x1f9ed8(0x18e)]==='usage'){await nn(_0x31f4a4);return;}if(_0x31f4a4[_0x1f9ed8(0x18e)]==='evaluate'||_0x31f4a4['subcommand']==='rerank'||_0x31f4a4[_0x1f9ed8(0x18e)]==='verify'){await an(_0x31f4a4,_0x31f4a4[_0x1f9ed8(0x18e)]);return;}if(_0x31f4a4[_0x1f9ed8(0x18e)]===_0x1f9ed8(0x1ac)){await cn(_0x31f4a4);return;}if(_0x31f4a4[_0x1f9ed8(0x18e)]===_0x1f9ed8(0x1eb)){await mn(_0x31f4a4);return;}if(_0x31f4a4[_0x1f9ed8(0x18e)]===_0x1f9ed8(0x206)){await gn(_0x31f4a4);return;}if(_0x31f4a4[_0x1f9ed8(0x18e)]===_0x1f9ed8(0x2df)){await wn(_0x31f4a4);return;}if(_0x31f4a4['subcommand']===_0x1f9ed8(0x22a)){await _0x2bf878(_0x31f4a4[_0x1f9ed8(0x1b1)],{'runnerUrl':_0x31f4a4['runnerUrl'],'backendUrl':_0x31f4a4[_0x1f9ed8(0x2a6)],'interopPath':_0x31f4a4[_0x1f9ed8(0x204)],'workerId':_0x31f4a4[_0x1f9ed8(0x15d)]});return;}if(_0x31f4a4[_0x1f9ed8(0x15e)]){await Gt();return;}await En(_0x31f4a4);}var Un=process.env.NODE_ENV===_0x166297(0x142)||!!process.env.JEST_WORKER_ID;Un||Dn()[_0x166297(0x20a)](_0xe73702=>{const _0x3b9bd3=_0x166297;console[_0x3b9bd3(0x2ab)](_0xe73702[_0x3b9bd3(0x220)]||_0xe73702[_0x3b9bd3(0x14a)]||_0xe73702),process[_0x3b9bd3(0x2bb)](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};
|
|
2
|
+
const _0x48b17b=_0x1f02;(function(_0x4c1fed,_0x8e135a){const _0x3ecd09=_0x1f02,_0x4ed228=_0x4c1fed();while(!![]){try{const _0x2561db=-parseInt(_0x3ecd09(0x1e3))/0x1*(-parseInt(_0x3ecd09(0x23c))/0x2)+parseInt(_0x3ecd09(0x225))/0x3+-parseInt(_0x3ecd09(0x101))/0x4*(parseInt(_0x3ecd09(0x18a))/0x5)+parseInt(_0x3ecd09(0x191))/0x6*(-parseInt(_0x3ecd09(0x10f))/0x7)+parseInt(_0x3ecd09(0x202))/0x8*(-parseInt(_0x3ecd09(0x276))/0x9)+-parseInt(_0x3ecd09(0x25f))/0xa+parseInt(_0x3ecd09(0x216))/0xb;if(_0x2561db===_0x8e135a)break;else _0x4ed228['push'](_0x4ed228['shift']());}catch(_0x11efec){_0x4ed228['push'](_0x4ed228['shift']());}}}(_0x21d9,0x4a2c1));const __dirname=import.meta.dirname;import _0x927dcd from'fs';import _0x18f2f0 from'path';import{clearLine as _0x1a22d1,createInterface as _0x58d695,cursorTo as _0x5ebdff}from'node:readline';import{isOnStepGrid as _0x180375}from'@uipath/delegate-sdk';var N=_0x48b17b(0x1f5);function v(_0x595ee7){const _0x47c24f=_0x48b17b;return _0x595ee7['replace'](/\u001b\[[0-?]*[ -/]*[@-~]|\u001b\][^\u0007\u001b]*(\u0007|\u001b\\)?|\u001b./g,'')[_0x47c24f(0x290)](/[\u0000-\u0008\u000b-\u001f\u007f-\u009f]/g,'');}function X(_0x4825c6){const _0x34e8f5=_0x48b17b;return v(_0x4825c6[_0x34e8f5(0x234)]??(_0x4825c6[_0x34e8f5(0x2da)]===N?'Something\x20else':_0x4825c6['id']));}function xe(_0x2b2be4,_0x3a02b2,_0x2e36b3){const _0x7071de=_0x48b17b;let _0x16cb1c=[''+(_0x2e36b3>0x1?'['+_0x3a02b2+'/'+_0x2e36b3+']\x20':'')+v(_0x2b2be4[_0x7071de(0x13e)])+(_0x2b2be4[_0x7071de(0x2d7)]?_0x7071de(0x246):''),v(_0x2b2be4[_0x7071de(0x268)])];return _0x2b2be4[_0x7071de(0x2d5)]==='text'&&_0x2b2be4[_0x7071de(0x121)][_0x7071de(0x206)]((_0x5ab01a,_0x18a0d2)=>{const _0x4cf6d0=_0x7071de;let _0x5c1902=_0x5ab01a[_0x4cf6d0(0x2da)]===N?_0x4cf6d0(0xfa):'',_0x4ea306=_0x5ab01a[_0x4cf6d0(0x29c)]?_0x4cf6d0(0x1fa)+v(_0x5ab01a[_0x4cf6d0(0x29c)]):'';_0x16cb1c[_0x4cf6d0(0x1d4)]('\x20\x20'+(_0x18a0d2+0x1)+'.\x20'+X(_0x5ab01a)+_0x5c1902+_0x4ea306);}),_0x16cb1c[_0x7071de(0x2d0)]('\x0a');}function Z(_0x9376d1,_0xe137c1){const _0x3e54af=_0x48b17b;let _0x208423=_0x9376d1[_0x3e54af(0x1ea)](/[\s,]+/)[_0x3e54af(0x1d2)](Boolean);if(_0x208423[_0x3e54af(0x298)]===0x0)return null;let _0x45cea8=_0x208423[_0x3e54af(0x143)](_0x4d0713=>/^\d+$/[_0x3e54af(0x152)](_0x4d0713)?Number(_0x4d0713):NaN);return _0x45cea8[_0x3e54af(0xfd)](_0x281a6f=>!Number['isInteger'](_0x281a6f)||_0x281a6f<0x1||_0x281a6f>_0xe137c1)?null:[...new Set(_0x45cea8)][_0x3e54af(0x143)](_0x1179e0=>_0x1179e0-0x1);}function De(_0x2b5ba8){const _0x24cb2e=_0x48b17b;return typeof _0x2b5ba8==_0x24cb2e(0x228)&&_0x2b5ba8!==null&&_0x24cb2e(0x2a8)in _0x2b5ba8;}async function R(_0x1a8e97,_0x290b03,_0x73dbb7,_0x31c9dd){const _0x4fa95a=_0x48b17b;for(;;){let _0x4e08f7=(await _0x1a8e97(_0x290b03))['trim']();if(_0x4e08f7==='')return;let _0x3696ee=_0x31c9dd(_0x4e08f7);if(!De(_0x3696ee))return _0x3696ee;_0x73dbb7(_0x3696ee[_0x4fa95a(0x2a8)]+'\x0a');}}async function Ue(_0x27cb69,_0x3395ce,_0x2af40f){const _0x7d7c2d=_0x48b17b;if(_0x27cb69[_0x7d7c2d(0x121)][_0x7d7c2d(0x298)]===0x0||_0x27cb69[_0x7d7c2d(0x121)][_0x7d7c2d(0x1d5)](_0x10a46d=>_0x10a46d[_0x7d7c2d(0x2da)]===N)){let _0x35a958=(await _0x3395ce(_0x7d7c2d(0x2d9)))[_0x7d7c2d(0x26a)]();return _0x35a958===''?void 0x0:{'text':_0x35a958};}let _0xb2ddf=_0x27cb69['options']['findIndex'](_0x2c44af=>_0x2c44af[_0x7d7c2d(0x2da)]===N),_0x2a9e9e=_0x27cb69['multiSelect']?_0x7d7c2d(0x1ca):'Number'+(_0xb2ddf>=0x0?_0x7d7c2d(0x2a9):'')+_0x7d7c2d(0x29a),_0x25e55b=await R(_0x3395ce,_0x2a9e9e,_0x2af40f,_0x219ea6=>{const _0x29aa18=_0x7d7c2d;let _0x2566bc=Z(_0x219ea6,_0x27cb69['options'][_0x29aa18(0x298)]);return _0x2566bc&&(_0x27cb69[_0x29aa18(0x157)]||_0x2566bc['length']===0x1)?_0x2566bc:!_0x27cb69['multiSelect']&&_0xb2ddf>=0x0?{'typed':_0x219ea6}:{'refused':_0x27cb69['multiSelect']?_0x29aa18(0x19f)+_0x27cb69[_0x29aa18(0x121)][_0x29aa18(0x298)]+'.':'Enter\x20one\x20number\x20from\x201\x20to\x20'+_0x27cb69[_0x29aa18(0x121)]['length']+'.'};});if(_0x25e55b===void 0x0)return;if(!Array['isArray'](_0x25e55b))return{'text':_0x25e55b['typed']};let _0x5c52dc=_0x25e55b[_0x7d7c2d(0x143)](_0x39d638=>_0x27cb69[_0x7d7c2d(0x121)][_0x39d638]['id']),_0x2e022d=_0x5c52dc[_0x7d7c2d(0x205)](N)?await R(_0x3395ce,X(_0x27cb69[_0x7d7c2d(0x121)][_0xb2ddf])+':\x20',_0x2af40f,_0x5dba7a=>_0x5dba7a):void 0x0;if(!(_0x5c52dc[_0x7d7c2d(0x205)](N)&&_0x2e022d===void 0x0))return _0x27cb69[_0x7d7c2d(0x157)]?{'optionIds':_0x5c52dc,..._0x2e022d!==void 0x0?{'text':_0x2e022d}:{}}:_0x2e022d!==void 0x0?{'text':_0x2e022d}:{'optionId':_0x5c52dc[0x0]};}async function _e(_0x12badb,_0x33e213,_0x5272e3){const _0x3279f1=_0x48b17b;let _0x46e681={};for(let _0x1d6f49 of _0x12badb[_0x3279f1(0x159)]){let _0x44820b=_0x1d6f49['default']??_0x1d6f49[_0x3279f1(0x1e8)],_0x5adbff=_0x1d6f49['step']??0x1,_0x4ec62d=_0x1d6f49[_0x3279f1(0x275)]?'\x20'+v(_0x1d6f49[_0x3279f1(0x275)]):'',_0x50c6c1=_0x3279f1(0x113)+_0x1d6f49[_0x3279f1(0x1e8)]+_0x3279f1(0x2c7)+_0x1d6f49[_0x3279f1(0x123)]+(_0x5adbff!==0x1?'\x20in\x20steps\x20of\x20'+_0x5adbff:''),_0x1901fd=await R(_0x33e213,v(_0x1d6f49['label'])+'\x20['+_0x1d6f49[_0x3279f1(0x1e8)]+'-'+_0x1d6f49['max']+_0x4ec62d+_0x3279f1(0x291)+_0x44820b+'):\x20',_0x5272e3,_0x7c997e=>{const _0x3d13fa=_0x3279f1;let _0x41f755=Number(_0x7c997e);return Number['isFinite'](_0x41f755)&&_0x41f755>=_0x1d6f49[_0x3d13fa(0x1e8)]&&_0x41f755<=_0x1d6f49[_0x3d13fa(0x123)]&&_0x180375(_0x41f755,_0x1d6f49['min'],_0x5adbff)?_0x41f755:{'refused':_0x3d13fa(0x2bb)+_0x50c6c1+'.'};});_0x46e681[_0x1d6f49['id']]=_0x1901fd??_0x44820b;}return{'values':_0x46e681};}async function Ne(_0x2187be,_0xd26919,_0x34d585){const _0xcc28c9=_0x48b17b;_0x34d585(_0x2187be['buckets']['map']((_0x241dd7,_0x1c4a8c)=>'\x20\x20'+(_0x1c4a8c+0x1)+'.\x20'+v(_0x241dd7[_0xcc28c9(0x234)]))[_0xcc28c9(0x2d0)]('\x0a')+'\x0a');let _0xd68c2e={};for(let _0x52c4d5 of _0x2187be['items']){let _0x47b1b5=await R(_0xd26919,v(_0x52c4d5[_0xcc28c9(0x234)])+_0xcc28c9(0x1b6),_0x34d585,_0x2f67c3=>{const _0x1d7db5=_0xcc28c9;let _0x2d4425=Z(_0x2f67c3,_0x2187be[_0x1d7db5(0x156)][_0x1d7db5(0x298)]);return _0x2d4425&&_0x2d4425['length']===0x1?_0x2d4425[0x0]:{'refused':_0x1d7db5(0x10c)+_0x2187be[_0x1d7db5(0x156)][_0x1d7db5(0x298)]+'.'};});if(_0x47b1b5===void 0x0)continue;let _0x52cff5=_0x2187be[_0xcc28c9(0x156)][_0x47b1b5],_0x4e4acc={};for(let _0x5edc91 of _0x52cff5[_0xcc28c9(0x260)]??[]){let _0x4da1b4='\x20\x20'+v(_0x5edc91[_0xcc28c9(0x234)])+(_0x5edc91[_0xcc28c9(0x2d7)]?_0xcc28c9(0x246):'')+':\x20',_0x33f58f=await R(_0xd26919,_0x4da1b4,_0x34d585,_0x29d112=>_0x29d112);for(;_0x33f58f===void 0x0&&!_0x5edc91[_0xcc28c9(0x2d7)];)_0x34d585(v(_0x5edc91[_0xcc28c9(0x234)])+_0xcc28c9(0xee)),_0x33f58f=await R(_0xd26919,_0x4da1b4,_0x34d585,_0x5c07d9=>_0x5c07d9);_0x33f58f!==void 0x0&&(_0x4e4acc[_0x5edc91['id']]=_0x33f58f);}_0xd68c2e[_0x52c4d5['id']]={'bucket':_0x52cff5['id'],...Object[_0xcc28c9(0x2ce)](_0x4e4acc)['length']>0x0?{'subFields':_0x4e4acc}:{}};}return Object[_0xcc28c9(0x2ce)](_0xd68c2e)[_0xcc28c9(0x298)]>0x0?{'assignments':_0xd68c2e}:void 0x0;}async function Re(_0x18644e,_0x3eb609,_0x49fc24){const _0x169d1a=_0x48b17b;if(_0x18644e[_0x169d1a(0x2d5)]===_0x169d1a(0x2b9))return Ue(_0x18644e,_0x3eb609,_0x49fc24);if(_0x18644e['type']==='numeric')return _e(_0x18644e,_0x3eb609,_0x49fc24);if(_0x18644e[_0x169d1a(0x2d5)]===_0x169d1a(0x1a6))return Ne(_0x18644e,_0x3eb609,_0x49fc24);let _0x53200c=(await _0x3eb609('Your\x20answer,\x20as\x20text\x20(the\x20CLI\x20attaches\x20no\x20files;\x20Enter\x20to\x20skip):\x20'))['trim']();return _0x53200c===''?void 0x0:{'text':_0x53200c};}function ee(_0x492e2b,_0x2101d8){return async _0x1d7caf=>{const _0x57fe6f=_0x1f02;let _0x1d4da7=_0x492e2b();if(!_0x1d4da7)throw new Error(_0x57fe6f(0x163));let _0x4fa314=async _0x34522f=>{const _0x571568=_0x57fe6f;if(_0x1d7caf[_0x571568(0x172)][_0x571568(0xf6)])throw new Error(_0x571568(0x165));let _0x10cf1e=await _0x1d4da7[_0x571568(0x201)](_0x34522f,_0x1d7caf[_0x571568(0x172)]);if(_0x10cf1e===null)throw new Error('Input\x20closed\x20before\x20the\x20question\x20was\x20answered.');return _0x10cf1e;};try{_0x2101d8('\x0a'+(_0x1d7caf['intro']?v(_0x1d7caf[_0x57fe6f(0x1ff)])+'\x0a':''));let _0x433d85={};for(let [_0x4e7ff9,_0x2acca7]of _0x1d7caf[_0x57fe6f(0x254)][_0x57fe6f(0x27d)]()){_0x2101d8('\x0a'+xe(_0x2acca7,_0x4e7ff9+0x1,_0x1d7caf[_0x57fe6f(0x254)][_0x57fe6f(0x298)])+'\x0a');let _0x4cdff6=await Re(_0x2acca7,_0x4fa314,_0x2101d8);_0x4cdff6!==void 0x0&&(_0x433d85[_0x2acca7['id']]=_0x4cdff6);}return{'answers':_0x433d85};}finally{_0x1d4da7['endQuestions']();}};}import{BUSINESS_ANALYSIS_PRELOADED_SKILLS as _0xcc95fa,DelegateAgent as _0x23e719,cancelTurn as _0x1c6398,InteropProcess as _0x36ff2d,complete as _0x5163d5,DEFAULT_MODEL as _0x541c69,createBackendClient as _0x4c62dd,evaluate as _0x186d12,isCompletionRequestError as _0x45eb75,isEvaluationRequestError as _0x67637a,isTranscriptionError as _0x2605d1,rerank as _0x29cb1a,transcribe as _0x5bc170,verify as _0xce0dc4,acceptDelegation as _0x88d4bd,cancelDelegation as _0x31b04c,claimDelegation as _0x4f9bac,completeDelegation as _0x2aa45a,createDelegation as _0x396986,deleteDelegation as _0x3bdd57,dismissDelegation as _0x3a7dfe,getSessionDelegations as _0x21394d,isDelegationError as _0x5b21a7,listDelegations as _0x4b54bc,listOrgUsers as _0x3c09d3,previewDelegation as _0x38d9d3,TurnResultCollector as _0x2050c9,agentEventToJsonLine as _0x4fd204,describeBaseUrlRejection as _0x1c7cec,getActivitySummary as _0x56cb05,getAuthFilePath as _0x4ca465,getByoWarnings as _0xaf3095,getCartographerAllowance as _0x285815,getDailyBreakdown as _0x10ae70,getLicensingSummary as _0x215c94,getMonthlySpending as _0x584556,isOutputFormat as _0x13f60d,isCloudBaseUrl as _0xe761ed,isSafeProjectFolderSegment as _0x2214b9,listModels as _0x41bde1,listSessions as _0x3880f9,getSession as _0x265adf,renameSession as _0x4befad,deleteSession as _0x3b4e2b,deleteSessionTaskLog as _0x12866e,forkSession as _0x1ccf1a,isBackendRequestError as _0x262c37,MAX_SESSION_PAGE_SIZE as _0x3c4afe,listTenants as _0x55a2e7,loadAndRefreshAuth as _0x5b6e73,loadAndRefreshSdkLogin as _0x149eb6,parsePlatformBaseUrl as _0x44d262,resolveBackendUrl as _0x256176,runHealthCheck as _0x19b8ee,runHostCommand as _0x515a00,runLoginFlow as _0xd8ee15,runTurnForResult as _0x1eb82e,saveAuthData as _0x5cfaa1,switchTenant as _0x40f425,toJsonLine as _0x2f2f49,ENV_TO_CLOUD as _0x502a33,OUTPUT_FORMATS as _0x56d437}from'@uipath/delegate-sdk';var Nt=[_0x48b17b(0x107),_0x48b17b(0x23f),'models',_0x48b17b(0x20f),'logout',_0x48b17b(0x227),_0x48b17b(0x1a2),_0x48b17b(0x1f9),_0x48b17b(0x1e7),_0x48b17b(0x181),'rerank',_0x48b17b(0x169),_0x48b17b(0x1d1),_0x48b17b(0x286),_0x48b17b(0x105),_0x48b17b(0x117)],re=['',_0x48b17b(0x22b),_0x48b17b(0x227),_0x48b17b(0x1a2),_0x48b17b(0x1f9),_0x48b17b(0x1e7),_0x48b17b(0x181),'rerank',_0x48b17b(0x169),_0x48b17b(0x1d1),_0x48b17b(0x286),'delegations',_0x48b17b(0x117)],ie=[_0x48b17b(0x139),'medium',_0x48b17b(0x19b),_0x48b17b(0x1e2),_0x48b17b(0x123)],Rt=_0xcc95fa,F='cartographer';function y(_0x3fe233,_0x156d2d,_0x26f8d5,_0x565656){const _0x1b95d6=_0x48b17b;let _0x11caa4=_0x3fe233[_0x156d2d];return(!_0x11caa4||_0x11caa4['length']>0x1&&_0x11caa4[_0x1b95d6(0x16e)]('-'))&&(console['error'](_0x26f8d5+_0x1b95d6(0x111)+_0x565656+'.'),process[_0x1b95d6(0x270)](0x2)),_0x11caa4;}function G(_0x288687,_0x2cf62f,_0x3942c5,_0x14ec2b){const _0x4a48e=_0x48b17b;let _0x575914=y(_0x288687,_0x2cf62f,_0x3942c5,_0x4a48e(0xf8)),_0xeeca76=Number(_0x575914);return(!/^\d+$/['test'](_0x575914)||_0xeeca76<0x1||!Number['isSafeInteger'](_0xeeca76)||_0x14ec2b!==void 0x0&&_0xeeca76>_0x14ec2b)&&(console[_0x4a48e(0x1b2)](_0x3942c5+_0x4a48e(0x183)+(_0x14ec2b===void 0x0?_0x4a48e(0x102):_0x4a48e(0x194)+_0x14ec2b)+_0x4a48e(0x167)+_0x575914+'.'),process[_0x4a48e(0x270)](0x2)),_0xeeca76;}function Pt(_0x2c007d){const _0x4e258e=_0x48b17b;let _0x4e1d87={'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':_0x4e258e(0x2b9),'preloadSkills':[],'attachments':[],'skipEnvCheck':!0x1,'includeSubAgents':!0x1,'operands':[],'help':!0x1,'version':!0x1};Nt[_0x4e258e(0x205)](_0x2c007d[0x0])&&(_0x4e1d87[_0x4e258e(0x22d)]=_0x2c007d[0x0],_0x2c007d=_0x2c007d[_0x4e258e(0x186)](0x1));let _0x34d836=[];for(let _0x338e72=0x0;_0x338e72<_0x2c007d['length'];_0x338e72++){let _0x3fa91d=_0x2c007d[_0x338e72];switch(_0x3fa91d){case _0x4e258e(0x2a5):case'-p':_0x4e1d87['print']=!0x0;break;case _0x4e258e(0x14b):_0x4e1d87['keepAlive']=!0x0;break;case _0x4e258e(0xf1):_0x4e1d87[_0x4e258e(0x173)]=!0x0;break;case _0x4e258e(0x262):_0x4e1d87['headless']=!0x0;break;case _0x4e258e(0x2a4):_0x4e1d87['noComputerUse']=!0x0;break;case'--cartographer':_0x4e1d87['cartographer']=!0x0,_0x4e1d87[_0x4e258e(0x1af)]=!0x0,_0x4e1d87['preloadSkills'][_0x4e258e(0x1d4)](...Rt);break;case'--no-connections':_0x4e1d87[_0x4e258e(0x296)]=!0x0;break;case _0x4e258e(0x187):_0x4e1d87[_0x4e258e(0x219)]=!0x0;break;case _0x4e258e(0xf4):_0x4e1d87[_0x4e258e(0x209)]=!0x0;break;case _0x4e258e(0x1fc):_0x4e1d87[_0x4e258e(0x22c)]=!0x0;break;case _0x4e258e(0x245):case'-q':_0x4e1d87['quiet']=!0x0;break;case _0x4e258e(0x23b):_0x4e1d87[_0x4e258e(0x266)]=!0x0;break;case'--backend':_0x4e1d87[_0x4e258e(0x27a)]=_0x2c007d[++_0x338e72];break;case _0x4e258e(0x196):_0x4e1d87[_0x4e258e(0x2d1)]=_0x2c007d[++_0x338e72];break;case'--runner-url':_0x4e1d87[_0x4e258e(0x273)]=_0x2c007d[++_0x338e72];break;case _0x4e258e(0x10e):_0x4e1d87[_0x4e258e(0x1ce)]=_0x2c007d[++_0x338e72];break;case _0x4e258e(0x2ac):_0x4e1d87['workerId']=_0x2c007d[++_0x338e72];break;case _0x4e258e(0x1ec):_0x4e1d87[_0x4e258e(0x1e5)][_0x4e258e(0x1d4)](y(_0x2c007d,++_0x338e72,_0x3fa91d,'a\x20skill\x20name'));break;case _0x4e258e(0x2b8):{let _0x461282=y(_0x2c007d,++_0x338e72,_0x3fa91d,_0x4e258e(0x106));_0x2214b9(_0x461282)||(console[_0x4e258e(0x1b2)](_0x4e258e(0x2cf)+_0x461282+_0x4e258e(0x1c0)),process[_0x4e258e(0x270)](0x2)),_0x4e1d87[_0x4e258e(0x297)]=_0x461282;break;}case _0x4e258e(0x12b):_0x4e1d87['vertical']=y(_0x2c007d,++_0x338e72,_0x3fa91d,'a\x20vertical\x20id');break;case _0x4e258e(0x11c):{let _0x314526=y(_0x2c007d,++_0x338e72,_0x3fa91d,_0x4e258e(0x25c)+_0x56d437['join'](_0x4e258e(0x284))+')');_0x13f60d(_0x314526)||(console['error'](_0x4e258e(0x25e)+_0x314526+_0x4e258e(0x2d2)+_0x56d437[_0x4e258e(0x2d0)](_0x4e258e(0x284))+'.'),process[_0x4e258e(0x270)](0x2)),_0x4e1d87['outputFormat']=_0x314526;break;}case'--session':_0x4e1d87[_0x4e258e(0x2e2)]=y(_0x2c007d,++_0x338e72,_0x3fa91d,_0x4e258e(0x1fe));break;case _0x4e258e(0x1b3):_0x4e1d87[_0x4e258e(0x236)]=G(_0x2c007d,++_0x338e72,_0x3fa91d);break;case _0x4e258e(0x197):_0x4e1d87[_0x4e258e(0x180)]=G(_0x2c007d,++_0x338e72,_0x3fa91d,_0x3c4afe);break;case _0x4e258e(0x170):_0x4e1d87[_0x4e258e(0x137)]=!0x0;break;case _0x4e258e(0x171):_0x4e1d87[_0x4e258e(0x269)]=y(_0x2c007d,++_0x338e72,_0x3fa91d,_0x4e258e(0x1d7));break;case _0x4e258e(0x214):{let _0x3f7c96=_0x18f2f0[_0x4e258e(0x203)](process['cwd'](),y(_0x2c007d,++_0x338e72,_0x3fa91d,_0x4e258e(0x1b1)));_0x927dcd[_0x4e258e(0x104)](_0x3f7c96)||(console[_0x4e258e(0x1b2)](_0x4e258e(0x24c)+_0x3f7c96),process[_0x4e258e(0x270)](0x2)),_0x4e1d87['attachments'][_0x4e258e(0x1d4)](_0x3f7c96);break;}case _0x4e258e(0x2a1):_0x4e1d87[_0x4e258e(0x1ac)]=y(_0x2c007d,++_0x338e72,_0x3fa91d,_0x4e258e(0x16b));break;case _0x4e258e(0x2d4):_0x4e1d87[_0x4e258e(0x144)]=y(_0x2c007d,++_0x338e72,_0x3fa91d,_0x4e258e(0x242));break;case _0x4e258e(0x255):_0x4e1d87['contextSummary']=y(_0x2c007d,++_0x338e72,_0x3fa91d,'a\x20briefing\x20text');break;case _0x4e258e(0x135):_0x4e1d87[_0x4e258e(0x184)]=G(_0x2c007d,++_0x338e72,_0x3fa91d,0x16d);break;case _0x4e258e(0x24e):_0x4e1d87['workingDirectory']=_0x18f2f0[_0x4e258e(0x203)](process[_0x4e258e(0x2a6)](),y(_0x2c007d,++_0x338e72,_0x3fa91d,'a\x20directory\x20path'));break;case _0x4e258e(0x263):_0x4e1d87[_0x4e258e(0x15d)]=_0x18f2f0[_0x4e258e(0x203)](process[_0x4e258e(0x2a6)](),y(_0x2c007d,++_0x338e72,_0x3fa91d,_0x4e258e(0x2dd)));break;case'--effort':{let _0x446f7b=y(_0x2c007d,++_0x338e72,_0x3fa91d,_0x4e258e(0x118));ie[_0x4e258e(0x205)](_0x446f7b)||(console['error'](_0x4e258e(0x2bd)+_0x446f7b+_0x4e258e(0x2d2)+ie[_0x4e258e(0x2d0)](_0x4e258e(0x284))+'.'),process[_0x4e258e(0x270)](0x2)),_0x4e1d87[_0x4e258e(0x280)]=_0x446f7b;break;}case _0x4e258e(0x1ba):{let _0x5529e6=_0x2c007d[++_0x338e72];(!_0x5529e6||_0x5529e6[_0x4e258e(0x16e)]('--'))&&(console[_0x4e258e(0x1b2)](_0x4e258e(0x28b)),process['exit'](0x2)),_0x4e1d87[_0x4e258e(0x23f)]=_0x5529e6;break;}case'--env':{let _0x56af46=_0x2c007d[++_0x338e72];[_0x4e258e(0x1a4),_0x4e258e(0x2c1),_0x4e258e(0x265),'localhost']['includes'](_0x56af46)||(console[_0x4e258e(0x1b2)](_0x4e258e(0x136)+_0x56af46+_0x4e258e(0x1cf)),process[_0x4e258e(0x270)](0x2)),_0x4e1d87[_0x4e258e(0x29b)]=_0x56af46;break;}case _0x4e258e(0x10d):case _0x4e258e(0x1e1):{let _0x55ebe3=y(_0x2c007d,++_0x338e72,_0x3fa91d,'a\x20deployment\x20URL,\x20e.g.\x20https://automationsuite.contoso.com'),_0x3e4a2e=_0x44d262(_0x55ebe3);if(_0x3e4a2e['ok']===!0x1){console[_0x4e258e(0x1b2)](_0x1c7cec(_0x55ebe3,_0x3e4a2e[_0x4e258e(0x130)])),process[_0x4e258e(0x270)](0x2);break;}_0x4e1d87[_0x4e258e(0x24b)]=_0x3e4a2e['baseUrl'];break;}case _0x4e258e(0x2c6):_0x4e1d87[_0x4e258e(0x1db)]=!0x0;break;case'-h':case _0x4e258e(0x26f):_0x4e1d87['help']=!0x0;break;case'-v':case _0x4e258e(0x1d6):_0x4e1d87[_0x4e258e(0x22e)]=!0x0;break;default:_0x3fa91d[_0x4e258e(0x16e)]('--')&&(console['error'](_0x4e258e(0x132)+_0x3fa91d),process[_0x4e258e(0x270)](0x2)),_0x34d836[_0x4e258e(0x1d4)](_0x3fa91d);}}return _0x4e1d87['tenant']!==void 0x0&&_0x4e1d87[_0x4e258e(0x22d)]!==_0x4e258e(0x107)&&(console[_0x4e258e(0x1b2)](_0x4e258e(0x13c)),process[_0x4e258e(0x270)](0x2)),_0x4e1d87[_0x4e258e(0x24b)]!==void 0x0&&_0x4e1d87[_0x4e258e(0x29b)]!==void 0x0&&(console[_0x4e258e(0x1b2)]('Pass\x20either\x20--env\x20(a\x20named\x20cloud)\x20or\x20--url\x20(any\x20other\x20deployment),\x20not\x20both.'),process[_0x4e258e(0x270)](0x2)),_0x4e1d87[_0x4e258e(0x24b)]!==void 0x0&&_0x4e1d87['subcommand']!==_0x4e258e(0x107)&&(console['error'](_0x4e258e(0xf3)),process[_0x4e258e(0x270)](0x2)),_0x4e1d87[_0x4e258e(0x184)]!==void 0x0&&_0x4e1d87[_0x4e258e(0x22d)]!==_0x4e258e(0x1e7)&&(console[_0x4e258e(0x1b2)](_0x4e258e(0x178)),process[_0x4e258e(0x270)](0x2)),_0x4e1d87['jsonSchemaPath']!==void 0x0&&(_0x4e1d87[_0x4e258e(0x22d)]!=='complete'&&_0x4e1d87['subcommand']!==''||_0x4e1d87[_0x4e258e(0x173)])&&(console[_0x4e258e(0x1b2)](_0x4e258e(0x27f)),process[_0x4e258e(0x270)](0x2)),_0x4e1d87[_0x4e258e(0x2b1)][_0x4e258e(0x298)]>0x0&&(_0x4e1d87[_0x4e258e(0x22d)]!==''||_0x4e1d87[_0x4e258e(0x173)])&&(console[_0x4e258e(0x1b2)](_0x4e258e(0xf7)),process[_0x4e258e(0x270)](0x2)),_0x4e1d87[_0x4e258e(0x22c)]&&(_0x4e1d87[_0x4e258e(0x22d)]!==''||_0x4e1d87[_0x4e258e(0x173)])&&(console[_0x4e258e(0x1b2)](_0x4e258e(0x115)),process[_0x4e258e(0x270)](0x2)),_0x4e1d87[_0x4e258e(0x22c)]&&(_0x4e1d87[_0x4e258e(0x1f7)]||_0x4e1d87[_0x4e258e(0x1af)]||_0x4e1d87[_0x4e258e(0x28a)]?.['trim']()===F)&&(console[_0x4e258e(0x1b2)]('--task-automation\x20needs\x20computer\x20use:\x20the\x20task\x20log\x20is\x20written\x20by\x20the\x20UI-automation\x20tools.\x20Drop\x20--headless,\x20--no-computer-use,\x20--cartographer\x20and\x20--vertical\x20cartographer.'),process['exit'](0x2)),_0x4e1d87[_0x4e258e(0x1ee)]&&(_0x4e1d87[_0x4e258e(0x28a)]!==void 0x0&&_0x4e1d87['vertical'][_0x4e258e(0x26a)]()!==F&&(console[_0x4e258e(0x1b2)]('--cartographer\x20runs\x20the\x20'+F+_0x4e258e(0x2b6)+_0x4e1d87[_0x4e258e(0x28a)]+_0x4e258e(0x174)),process[_0x4e258e(0x270)](0x2)),_0x4e1d87['vertical']=F),_0x4e1d87['skipEnvCheck']&&_0x4e1d87['subcommand']!==_0x4e258e(0x107)&&(console[_0x4e258e(0x1b2)](_0x4e258e(0x1e4)),process[_0x4e258e(0x270)](0x2)),_0x4e1d87[_0x4e258e(0x208)]!==_0x4e258e(0x2b9)&&!re[_0x4e258e(0x205)](_0x4e1d87['subcommand'])&&(console[_0x4e258e(0x1b2)](_0x4e258e(0x127)+_0x4e1d87['outputFormat']+_0x4e258e(0x17f)+re[_0x4e258e(0x1d2)](Boolean)['join'](',\x20')+'.'),process[_0x4e258e(0x270)](0x2)),(_0x4e1d87[_0x4e258e(0x236)]!==void 0x0||_0x4e1d87['limit']!==void 0x0||_0x4e1d87[_0x4e258e(0x137)])&&_0x4e1d87['subcommand']!=='sessions'&&(console['error'](_0x4e258e(0x1c5)),process[_0x4e258e(0x270)](0x2)),(_0x4e1d87['delegateTo']!==void 0x0||_0x4e1d87[_0x4e258e(0x190)]!==void 0x0)&&_0x4e1d87[_0x4e258e(0x22d)]!==_0x4e258e(0x105)&&(console[_0x4e258e(0x1b2)](_0x4e258e(0x1bf)),process[_0x4e258e(0x270)](0x2)),_0x4e1d87[_0x4e258e(0x1ac)]!==void 0x0&&_0x4e1d87['subcommand']!==_0x4e258e(0x1f9)&&(console[_0x4e258e(0x1b2)](_0x4e258e(0x12d)),process[_0x4e258e(0x270)](0x2)),_0x4e1d87[_0x4e258e(0x1e5)]=[...new Set(_0x4e1d87['preloadSkills'])],_0x4e1d87[_0x4e258e(0x1aa)]=_0x34d836,_0x4e1d87[_0x4e258e(0x250)]=_0x34d836[_0x4e258e(0x2d0)]('\x20'),_0x4e1d87;}var P=_0x15f76a=>{const _0x552b09=_0x48b17b;process[_0x552b09(0x1a5)][_0x552b09(0xfc)](_0x15f76a);};function Ct(){const _0x7b2b76=_0x48b17b;let _0x2ab777=process[_0x7b2b76(0x1a5)]['write'],_0x3c4db8=_0x2ab777[_0x7b2b76(0x2df)](process[_0x7b2b76(0x1a5)]),_0x241b64=P;return P=_0x38a833=>{_0x3c4db8(_0x38a833);},process[_0x7b2b76(0x1a5)][_0x7b2b76(0xfc)]=(..._0x399447)=>process[_0x7b2b76(0x1e6)][_0x7b2b76(0xfc)](..._0x399447),()=>{const _0x4f0b44=_0x7b2b76;process[_0x4f0b44(0x1a5)][_0x4f0b44(0xfc)]=_0x2ab777,P=_0x241b64;};}function u(_0x1c2673,_0x18920b,_0x22e358){const _0x407b1c=_0x48b17b;if(_0x1c2673['outputFormat']===_0x407b1c(0x2b9)){_0x22e358(_0x18920b);return;}P(_0x2f2f49(_0x18920b));}function Lt(){const _0x4fd3e7=_0x48b17b;let _0x55d877=_0x4fd3e7(0x141)[_0x4fd3e7(0x26a)]();console[_0x4fd3e7(0x218)](_0x55d877);}function Ot(){const _0x1e57ce=_0x48b17b;try{return JSON[_0x1e57ce(0x1bc)](_0x927dcd['readFileSync'](_0x18f2f0['join'](__dirname,'..',_0x1e57ce(0x2c5)),_0x1e57ce(0x1b4)))['version']||_0x1e57ce(0x100);}catch{return _0x1e57ce(0x100);}}var Ft=0x7d0;async function ae(_0x26dc10,_0x3dc0c8){const _0xfb4641=_0x48b17b;let _0x318021=_0x3dc0c8?[_0x3dc0c8]:[];for await(let _0x2b29fa of _0x26dc10)_0x318021['push'](Buffer[_0xfb4641(0x129)](_0x2b29fa));return Buffer[_0xfb4641(0x18c)](_0x318021)[_0xfb4641(0x2e1)](_0xfb4641(0x1b4))['trim']();}function jt(_0x1d5470,_0x14effb){return new Promise(_0x109a39=>{const _0x1d5d14=_0x1f02;let _0x366aa9=_0x38d8af=>{const _0x52d963=_0x1f02;clearTimeout(_0x2b5e1d),_0x1d5470[_0x52d963(0x109)](_0x52d963(0x112),_0x4172aa),_0x1d5470[_0x52d963(0x109)](_0x52d963(0x1d9),_0x37d630),_0x1d5470['off'](_0x52d963(0x1b2),_0x37d630),_0x1d5470[_0x52d963(0x1a7)](),_0x109a39(_0x38d8af);},_0x4172aa=_0x2e9929=>_0x366aa9(Buffer[_0x1d5d14(0x129)](_0x2e9929)),_0x37d630=()=>_0x366aa9(null),_0x2b5e1d=setTimeout(()=>_0x366aa9(null),_0x14effb);_0x1d5470['on']('data',_0x4172aa),_0x1d5470['on'](_0x1d5d14(0x1d9),_0x37d630),_0x1d5470['on'](_0x1d5d14(0x1b2),_0x37d630),_0x1d5470[_0x1d5d14(0x233)]();});}async function M(_0x33e239,_0x1c7a5f,_0x20b52a=Ft){const _0x2c26fa=_0x48b17b;let _0x40622b=_0x33e239==='-';if(!_0x40622b&&_0x33e239)return _0x33e239;if(!_0x40622b&&_0x1c7a5f[_0x2c26fa(0x14f)])return'';if(_0x40622b)return ae(_0x1c7a5f,null);let _0x4e7b74=await jt(_0x1c7a5f,_0x20b52a);return _0x4e7b74?ae(_0x1c7a5f,_0x4e7b74):'';}function Q(){const _0x8790ae=_0x48b17b;return _0x18f2f0[_0x8790ae(0x2d0)](process.env.HOME||process.env.USERPROFILE||'',_0x8790ae(0x18b),_0x8790ae(0x11b));}function B(_0x4dcb64){const _0x2a59b3=_0x48b17b;try{let _0x6bd5db=JSON[_0x2a59b3(0x1bc)](_0x927dcd[_0x2a59b3(0x247)](_0x4dcb64,_0x2a59b3(0x1b4)));return!_0x6bd5db['accessToken']||!_0x6bd5db[_0x2a59b3(0x13f)]||!_0x6bd5db[_0x2a59b3(0x1ae)]?null:_0x6bd5db;}catch{return null;}}function _0x21d9(){const _0x12b2f0=['\x20(optional)','readFileSync','%\x20of\x20','\x20<file.json>,\x20or\x20-\x20to\x20read\x20stdin.','hide','url','--attach:\x20no\x20such\x20file\x20or\x20folder:\x20','SIGINT','--working-dir','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.','prompt','You>\x20','now','\x20of\x20session\x20','questions','--summary','No\x20CLI\x20login\x20found.\x20Run\x20`delegate-cli\x20login\x20--env\x20<alpha|staging|production>`\x20first.','Bearer\x20','[saved\x20login]\x20Backend\x20URL:\x20','assignedUserEmail','\x20completion','shift','a\x20format\x20(','score','Invalid\x20--output-format:\x20','155240ibTtEY','subFields','displayName','--headless','--skills-path',']\x20Backend\x20URL:\x20','production','verbose','period_days','question','jsonSchemaPath','trim','No\x20models\x20available\x20for\x20this\x20product/tenant.\x0a','Already\x20accepted','Delegated\x20','accept','--help','exit','orgLogicalName','\x20not\x20found.','runnerUrl','Date\x20\x20\x20\x20\x20\x20\x20\x20Token\x20units\x20\x20Prompt\x20tokens\x20\x20Completion\x20tokens','unit','341073WQZGPY','activity','structuredError','finish','backendUrl','index','all','entries','Tenant\x20not\x20switched:\x20could\x20not\x20write\x20','--json-schema\x20applies\x20to\x20prompts\x20and\x20to\x20`delegate-cli\x20complete`\x20only.','effort','setPrompt','\x20\x22<prompt>\x22\x0aAnswer\x20with:\x20delegate-cli\x20delegations\x20complete\x20','Removed\x20','\x20|\x20','tool_call','transcribe','Use:\x20delegate-cli\x20delegations\x20','padStart','Cartographer:\x20','vertical','--tenant\x20requires\x20a\x20tenant\x20name.','list','\x27\x20cannot\x20be\x20read:\x20','the\x20request','environment\x20variables\x20(AUTH_TOKEN/TENANT_ID/ORG_ID)','replace',']\x20(Enter\x20for\x20','UIPATH_BASE_URL\x20is\x20unusable.\x20','monthly_limit_usd','UiPath\x20Cloud','\x20(Delegate\x20desktop\x20app\x20fallback)','noConnections','projectId','length','\x20this\x20month','\x20(Enter\x20to\x20skip):\x20','env','description','active_days','\x20(resume\x20with\x20--session\x20','delegations\x20cancel\x20<delegation-id>','),\x20','--turn','\x20\x20TITLE\x0a','isDesktopFallback','--no-computer-use','--print','cwd','More:\x20delegate-cli\x20sessions\x20--page\x20','refused','\x20or\x20your\x20own\x20answer','name','\x20<id>','--worker-id','updatedAt','done','daily','show','attachments','\x20sessions\x20on\x20','Forked\x20','delegation','\x0a🤔\x20','\x20vertical,\x20so\x20it\x20cannot\x20run\x20as\x20--vertical\x20','response','--project','text','Renamed\x20','Enter\x20a\x20number\x20','estimated_cost_usd','Invalid\x20--effort:\x20','\x20in\x20progress\x20on\x20session\x20','Deployment:\x20\x20\x20','Licensing:\x20\x20\x20\x20','staging','alreadyCompleted','\x20\x20\x20\x20Not\x20available\x20on\x20this\x20plan','close','package.json','--skip-env-check','\x20to\x20','Base\x20URL:\x20\x20\x20\x20\x20','\x20into\x20','\x20(estimated\x20$','deepLink','Unknown\x20delegations\x20action:\x20','isError','keys','Invalid\x20--project:\x20\x22','join','model','.\x20Use\x20','UPDATED','--to','type','Owner\x20\x20\x20\x20\x20\x20\x20\x20\x20','optional','stack','Your\x20answer\x20(Enter\x20to\x20skip):\x20','kind','expiresAt','\x20(cancel\x20with:\x20delegate-cli\x20sessions\x20cancel\x20','a\x20directory\x20path','\x20active\x20days','bind','userId','toString','sessionId','workingDirectory','lastType','\x20cap','.\x20Use\x20`delegate-cli\x20usage`,\x20`usage\x20activity`\x20or\x20`usage\x20daily`.','total_cost_usd','ID\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','transcribe\x20needs\x20audio:\x20delegate-cli\x20transcribe\x20<file>,\x20or\x20-\x20to\x20read\x20stdin.','\x20is\x20required.\x0a','token_units','session_start','--cleanup','choice\x20','--url\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Other\x20commands\x20follow\x20the\x20saved\x20login,\x20or\x20--backend\x20<url>.','--no-memory','daily_usage','aborted','--attach\x20applies\x20to\x20prompts\x20only.','a\x20number','The\x20saved\x20CLI\x20login\x20could\x20not\x20be\x20refreshed.\x20Run\x20`delegate-cli\x20login`\x20again.','\x20(type\x20your\x20own)',':\x20cannot\x20read\x20the\x20JSON\x20schema\x20(','write','some','.\x20Share:\x20','auth','unknown','15476TfmmKG','1\x20or\x20more','catch','existsSync','delegations','a\x20project\x20id','login','task','off','period_end','\x20prompt,\x20','Enter\x20one\x20number\x20from\x201\x20to\x20','--url','--interop','55580WOfAVQ','\x22.\x0a','\x20requires\x20','data','from\x20','Source:\x20\x20\x20\x20\x20\x20\x20','--task-automation\x20applies\x20to\x20prompts\x20only.','\x20from\x20','org-users','an\x20effort\x20tier','\x20(confidence\x20','\x0aUse\x20with:\x20delegate-cli\x20--model\x20<id>\x20\x22<prompt>\x22\x0a','auth.json','--output-format','the\x20JSON\x20schema','probability','restore','\x20\x20\x20\x20BYO\x20warning:\x20','options','oneTurn','max','Organization\x20\x20','Rubric\x20','parentSessionId','--output-format\x20','sourceUserEmail','from','delegations\x20complete\x20<delegation-id>\x20\x22<answer>\x22|-','--vertical','exitCode','--turn\x20applies\x20to\x20`delegate-cli\x20sessions\x20cancel`\x20only.','\x20(in\x20','Session\x20\x20\x20\x20\x20\x20\x20','rejection','Usage:\x20delegate-cli\x20','Unknown\x20flag:\x20','Usage:\x20delegate-cli\x20sessions\x20cancel\x20<session-id>\x20--turn\x20<turn-id>','No\x20answers\x20awaiting\x20acceptance.\x0a','--days','Invalid\x20--env:\x20','includeSubAgents','results','low','\x20of\x20a\x20$','mode','--tenant\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Switch\x20tenants\x20with:\x20delegate-cli\x20tenant\x20<name>','dismissed','header','tenantId','create','\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--vertical\x20cartographer\x20--no-computer-use\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\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;\x20another\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--vertical\x20ID\x20is\x20refused\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--vertical\x20ID\x20\x20\x20\x20\x20Run\x20the\x20session\x20as\x20that\x20product\x27s\x20vertical,\x20as\x20its\x20tab\x20in\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20desktop\x20app\x20does,\x20with\x20no\x20desktop\x20app\x20installed:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20cartographer\x20brings\x20the\x20Map\x20of\x20Work\x20and,\x20without\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--preload-skill,\x20its\x20template\x27s\x20skills.\x20Default:\x20Delegate\x0a\x20\x20--working-dir\x20PATH\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Shell\x20cwd\x20for\x20the\x20agent\x20and\x20root\x20for\x20SDK-local\x20state.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Relative\x20paths\x20resolve\x20against\x20the\x20current\x20directory;\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20directory\x20is\x20created\x20if\x20missing\x0a\x20\x20--skills-path\x20PATH\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Folder\x20of\x20custom\x20skills,\x20loaded\x20on\x20top\x20of\x20the\x20skills\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20package\x20ships;\x20wins\x20on\x20a\x20name\x20clash\x20(also:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20DELEGATE_BUNDLED_SKILLS_PATH)\x0a\x20\x20--effort\x20TIER\x20\x20\x20\x20\x20Reasoning\x20effort:\x20low\x20|\x20medium\x20|\x20high\x20|\x20xhigh\x20|\x20max.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default:\x20the\x20model\x27s\x20recommended\x20tier\x0a\x20\x20--session\x20ID\x20\x20\x20\x20\x20\x20Continue\x20an\x20existing\x20backend\x20session\x20(an\x20unknown\x20id\x20exits\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x201;\x20the\x20backend\x20assigns\x20new\x20ids).\x20For\x20complete:\x20the\x20session\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20whose\x20history\x20is\x20the\x20context\x0a\x20\x20--json-schema\x20FILE\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20JSON\x20schema\x20the\x20structured\x20answer\x20must\x20match\x20(complete,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20and\x20prompts:\x20implies\x20--print)\x0a\x20\x20--runner-url\x20URL\x20\x20(host)\x20Runner\x20worker\x20WS\x20URL.\x20Required;\x20or\x20CONTROL_PLANE_WS_URL\x20env\x0a\x20\x20--interop\x20PATH\x20\x20\x20\x20(host)\x20Interop\x20binary\x20path;\x20or\x20INTEROP_EXECUTABLE_PATH\x20env.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Absent\x20→\x20registration/discovery\x20only,\x20tool\x20execution\x20disabled\x0a\x20\x20--worker-id\x20ID\x20\x20\x20\x20(host)\x20Stable\x20worker\x20identity;\x20or\x20WORKER_ID\x20env.\x20Default:\x20hostname\x0a\x20\x20--page\x20N\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(sessions)\x20Page\x20to\x20show,\x20from\x201.\x20Default:\x201\x0a\x20\x20--limit\x20N\x20\x20\x20\x20\x20\x20\x20\x20\x20(sessions)\x20Rows\x20per\x20page,\x201-100.\x20Default:\x2030\x0a\x20\x20--include-subagents\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(sessions)\x20Also\x20list\x20sub-agent\x20sessions,\x20hidden\x20by\x20default\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20as\x20in\x20the\x20desktop\x20app\x27s\x20history\x0a\x20\x20--to\x20WHO\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(delegations\x20create)\x20Assign\x20to\x20this\x20person:\x20an\x20email,\x20or\x20a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20name\x20that\x20matches\x20exactly\x20one\x20colleague\x20(see\x20org-users)\x0a\x20\x20--summary\x20TEXT\x20\x20\x20\x20(delegations\x20create)\x20The\x20briefing\x20the\x20person\x20starts\x20from.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default:\x20empty,\x20for\x20a\x20task\x20that\x20stands\x20on\x20its\x20own\x0a\x20\x20--output-format\x20FMT\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20text\x20(default)\x20|\x20json\x20|\x20stream-json.\x20json\x20prints\x20one\x20result\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20object\x20on\x20exit;\x20stream-json\x20prints\x20every\x20agent\x20event\x20as\x20one\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20JSON\x20line,\x20then\x20the\x20result.\x20Both\x20keep\x20stdout\x20JSON-only\x20(logs,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20progress\x20and\x20the\x20session\x20id\x20go\x20to\x20stderr),\x20imply\x20--print,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20and\x20exit\x201\x20when\x20the\x20turn\x20ends\x20in\x20error.\x20Also\x20honoured\x20by\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20every\x20subcommand\x20that\x20prints\x20a\x20result\x20(all\x20but\x20login,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20logout,\x20tenant\x20and\x20host)\x0a\x20\x20-q,\x20--quiet\x20\x20\x20\x20\x20\x20\x20Suppress\x20🤔\x20thinking\x20output\x20to\x20stderr\x0a\x20\x20--verbose\x20\x20\x20\x20\x20\x20\x20\x20\x20Surface\x20the\x20SDK\x27s\x20and\x20the\x20framework\x27s\x20own\x20logs.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Diagnostics\x20only,\x20on\x20stdout;\x20independent\x20of\x20-q\x0a\x20\x20-h,\x20--help\x20\x20\x20\x20\x20\x20\x20\x20Show\x20this\x20help\x0a\x20\x20-v,\x20--version\x20\x20\x20\x20\x20Print\x20the\x20installed\x20CLI\x20version\x0a\x0aConversation:\x20Enter\x20sends\x20a\x20message;\x20/exit\x20or\x20EOF\x20exits;\x20Ctrl+C\x20stops\x20and\x20exits.\x0a\x20\x20Ctrl+C\x20during\x20a\x20turn\x20cancels\x20it\x20on\x20the\x20backend\x20too;\x20a\x20second\x20Ctrl+C\x20force-exits.\x0a\x20\x20An\x20optional\x20initial\x20prompt\x20is\x20followed\x20by\x20more\x20input.\x20The\x20session\x20ID\x20is\x20printed\x0a\x20\x20to\x20stderr;\x20resume\x20later\x20with\x20--session\x20ID.\x20Redirected\x20input\x20is\x20one\x20prompt.\x0aAuth:\x20prompts\x20auto-retry\x20on\x20401\x20by\x20opening\x20the\x20browser\x20to\x20re-login\x20(TTY\x20only),\x0a\x20\x20preserving\x20the\x20active\x20session.\x0a','No\x20delegations.\x0a','map','delegateTo','total_tokens','title','stream-json','pending','answers','workerId','--keep-alive','once','removeEventListener','--env\x20localhost\x20has\x20no\x20OAuth\x20flow;\x20pick\x20alpha,\x20staging,\x20or\x20production.','isTTY','fork','dismiss','test','delete','claim','rmSync','buckets','multiSelect','delegationId','fields','transcribe:\x20cannot\x20read\x20','--session\x20applies\x20to\x20the\x20`delegate-cli\x20usage`\x20summary\x20only.','status','bundledSkillsPath','round','tokenExpiresAt','logout','stdin','prompt_tokens','There\x20is\x20no\x20terminal\x20input\x20to\x20answer\x20from.','delegations\x20accept\x20<delegation-id>','The\x20turn\x20was\x20cancelled.','limit_enabled',',\x20got\x20','>.\x0a','verify','models_breakdown','a\x20turn\x20id','probability\x20','tool','startsWith','No\x20one\x20matches\x20\x22','--include-subagents','--json-schema','signal','cleanup','.\x20Drop\x20one\x20of\x20the\x20two.','):\x0a\x0a','add','\x20PU','--days\x20applies\x20to\x20`delegate-cli\x20usage\x20activity|daily`\x20only.','Switch\x20with:\x20delegate-cli\x20tenant\x20<name>\x0a','baseUrl','quiet','getSessionId','confidence','lockReason','\x20applies\x20to\x20prompts\x20and\x20to\x20these\x20commands\x20only:\x20','limit','evaluate','code','\x20must\x20be\x20a\x20whole\x20number\x20','days','unknown\x20slug','slice','--no-security','model_version','rename','230SrUxaO','.aria','concat','input',',\x20whose\x20tenant\x20is\x20chosen\x20in\x20the\x20app.\x20Run\x20`delegate-cli\x20login\x20--env\x20<env>`\x20for\x20a\x20CLI\x20login\x20of\x20your\x20own.','structured','contextSummary','312JptUMH','initialize',')\x20—\x20saved\x20to\x20','from\x201\x20to\x20','From\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','--model','--limit','🔧\x20','tenantName','completion_tokens','high','toUpperCase','\x20PU\x20used','\x20\x20\x20\x20','Enter\x20numbers\x20from\x201\x20to\x20','file','No\x20sessions\x20on\x20page\x20','check','thinking','alpha','stdout','bucket','pause','Unknown\x20sessions\x20action:\x20','toFixed','operands','No\x20turn\x20','turnId','Licensing:\x20\x20\x20\x20no\x20licensing\x20quota\x20applies','organizationId','noComputerUse','total_token_units','a\x20file\x20path','error','--page','utf-8','No\x20usage\x20in\x20the\x20last\x20',':\x20bucket\x20number\x20(Enter\x20to\x20leave\x20out):\x20','getTurnUsageHistory','Missing\x20prompt.\x20Pass\x20it\x20as\x20an\x20argument,\x20pipe\x20it\x20via\x20stdin,\x20or\x20run\x20`delegate-cli\x20--help`.','Session\x20','--tenant','No\x20CLI\x20login\x20found\x20—\x20nothing\x20to\x20remove.','parse','Deleted\x20session\x20','stringify','--to\x20and\x20--summary\x20apply\x20to\x20`delegate-cli\x20delegations\x20create`\x20only.','\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).','cancelled','\x0a⚠️\x20\x20Auth\x20expired.\x20Opening\x20browser\x20to\x20re-login…\x0a','content','\x20\x22<answer>\x22\x0a','--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`delegate-cli\x20sessions`\x20only.','delegations\x20show\x20<delegation-id|delegate://delegation/…>','locked','then','Token:\x20\x20\x20\x20\x20\x20\x20\x20expired\x20','Numbers,\x20separated\x20by\x20commas\x20(Enter\x20to\x20skip):\x20',').\x0a','\x20days.\x0a','total_completion_tokens','interopPath','.\x20Use\x20alpha\x20|\x20staging\x20|\x20production\x20|\x20localhost.','padEnd','complete','filter','Tokens:\x20','push','every','--version','a\x20JSON\x20schema\x20file','isArray','end','choice','skipEnvCheck','turn_start','Unknown\x20usage\x20view:\x20','No\x20CLI\x20login\x20found.\x20Note:\x20the\x20CLI\x20is\x20currently\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20','Structured\x20output\x20failed:\x20','floor','--authority','xhigh','1633rHODQm','--skip-env-check\x20applies\x20to\x20`delegate-cli\x20login`\x20only.','preloadSkills','stderr','usage','min','Organization:\x20','split','\x20must\x20be\x20a\x20JSON\x20object.','--preload-skill','deleted','cartographer','delegate-cli','delegations\x20create\x20--session\x20<id>\x20[--to\x20<email|name>]\x20[--summary\x20<text>]\x20\x22<task>\x22|-','Cost:\x20\x20\x20$','\x20token\x20units','--days\x20applies\x20to\x20`delegate-cli\x20usage\x20activity|daily`;\x20the\x20summary\x20covers\x20the\x20current\x20month.','\x20(no\x20cap\x20enforced)','userinput','assignedUser','headless','Spending:\x20\x20\x20\x20\x20$','sessions','\x20-\x20','\x20(stdin\x20was\x20empty)','--task-automation','--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`delegate-cli\x20sessions\x20[list]`\x20only.','a\x20session\x20id','intro','Answered','readLine','96egyzzY','resolve','Delegation\x20\x20\x20\x20','includes','forEach','cancel','outputFormat','noMemory','Accepted','total_quota_pu','delegations\x20delete\x20<delegation-id>','sendMessage','toISOString','host','\x20\x20(input\x20#','email','\x20(resets\x20','byoWarning','--attach','message','9965417wyfkRq','Task\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','log','noSecurity','deployment','skip','\x20\x20TASK\x0a','delegations\x20pending\x20<session-id>','sourceTitle','rerank','total_prompt_tokens','verdict','total_sessions',',\x20or\x20holds\x20no\x20message\x20','AUTH_TOKEN_FILE\x20\x27','294333QTxoZv','pendingResults','whoami','object','localhost','string','models','taskAutomation','subcommand','version','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','Continue\x20it\x20with:\x20delegate-cli\x20--session\x20','Usage:\x20delegate-cli\x20sessions\x20[list]\x20[--page\x20N]\x20[--limit\x20N]\x20[--include-subagents]','\x20delegation\x20','resume','label','stop','page','complete\x20needs\x20--json-schema\x20<file>:\x20delegate-cli\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22.','pct_used','Claimed\x20from\x20delegation\x20','result','--verbose','442EwFtIi','a\x20colleague','origin','tenant','abort','Created\x20delegation\x20','an\x20email\x20address\x20or\x20name','session_consumed_pu','extra_pool_consumed_pu','--quiet'];_0x21d9=function(){return _0x12b2f0;};return _0x21d9();}function Mt(){const _0x24ff3f=_0x48b17b;let _0x468973=[{'file':_0x4ca465(),'isDesktopFallback':!0x1},{'file':Q(),'isDesktopFallback':!0x0}];for(let _0x2d7a8b of _0x468973){let _0x28091d=B(_0x2d7a8b[_0x24ff3f(0x1a0)]);if(_0x28091d)return{..._0x2d7a8b,'auth':_0x28091d};}return null;}async function Bt(){const _0x26d758=_0x48b17b;let _0x345fc3=_0x4ca465();if(!_0x927dcd[_0x26d758(0x104)](_0x345fc3)){let _0x1af873=Q();console[_0x26d758(0x218)](B(_0x1af873)?_0x26d758(0x1de)+_0x1af873+'\x20—\x20sign\x20out\x20in\x20the\x20Delegate\x20app\x20to\x20clear\x20that.':_0x26d758(0x1bb));return;}_0x927dcd[_0x26d758(0x155)](_0x345fc3),console[_0x26d758(0x218)](_0x26d758(0x283)+_0x345fc3);}async function Ht(_0x173278){const _0x210d1b=_0x48b17b;let _0x37598e=q(),_0x5d4e3d,_0x19fc61;if(_0x37598e)_0x5d4e3d=_0x37598e,_0x19fc61=_0x210d1b(0x28f);else{let _0x550c5c=Mt();if(!_0x550c5c)throw new Error(Se);_0x5d4e3d=_0x550c5c[_0x210d1b(0xff)],_0x19fc61=_0x550c5c[_0x210d1b(0x2a3)]?_0x550c5c[_0x210d1b(0x1a0)]+_0x210d1b(0x295):_0x550c5c[_0x210d1b(0x1a0)];}let _0x2c9e92={'source':_0x19fc61,'baseUrl':_0x5d4e3d[_0x210d1b(0x17a)]??null,'deployment':Jt(_0x5d4e3d['baseUrl']),'organization':{'id':_0x5d4e3d['organizationId'],'slug':_0x5d4e3d[_0x210d1b(0x271)]??null},'tenant':{'id':_0x5d4e3d[_0x210d1b(0x13f)],'name':_0x5d4e3d[_0x210d1b(0x199)]??null},'tokenExpiresAt':_0x5d4e3d[_0x210d1b(0x2db)]?new Date(_0x5d4e3d[_0x210d1b(0x2db)]*0x3e8)[_0x210d1b(0x20e)]():null};u(_0x173278,_0x2c9e92,()=>{const _0x1f7c7d=_0x210d1b;let _0x579a62=[_0x1f7c7d(0x114)+_0x19fc61,_0x1f7c7d(0x2c8)+(_0x5d4e3d['baseUrl']??_0x1f7c7d(0x100)),_0x1f7c7d(0x2bf)+_0x2c9e92[_0x1f7c7d(0x21a)],_0x1f7c7d(0x1e9)+(_0x5d4e3d[_0x1f7c7d(0x271)]??_0x1f7c7d(0x185))+'\x20('+_0x5d4e3d[_0x1f7c7d(0x1ae)]+')','Tenant:\x20\x20\x20\x20\x20\x20\x20'+(_0x5d4e3d[_0x1f7c7d(0x199)]??_0x1f7c7d(0x185))+'\x20('+_0x5d4e3d[_0x1f7c7d(0x13f)]+')'];if(_0x5d4e3d[_0x1f7c7d(0x2db)]){let _0x3f8a26=_0x5d4e3d[_0x1f7c7d(0x2db)]-Math[_0x1f7c7d(0x1e0)](Date[_0x1f7c7d(0x252)]()/0x3e8);_0x579a62[_0x1f7c7d(0x1d4)](_0x3f8a26>0x0?'Token:\x20\x20\x20\x20\x20\x20\x20\x20expires\x20'+_0x2c9e92[_0x1f7c7d(0x15f)]+_0x1f7c7d(0x12e)+Math[_0x1f7c7d(0x15e)](_0x3f8a26/0x3c)+'\x20min)':_0x1f7c7d(0x1c9)+_0x2c9e92['tokenExpiresAt']);}process[_0x1f7c7d(0x1a5)][_0x1f7c7d(0xfc)](_0x579a62[_0x1f7c7d(0x2d0)]('\x0a')+'\x0a');});}var Se=_0x48b17b(0x24f);function Jt(_0x812705){const _0xf102be=_0x48b17b;return _0x812705?_0xe761ed(_0x812705)?_0xf102be(0x294):'self-hosted\x20(Automation\x20Suite\x20/\x20Dedicated)':_0xf102be(0x100);}function q(){let _0x1d9c61=process.env.AUTH_TOKEN_FILE;return(process.env.AUTH_TOKEN||_0x1d9c61)&&process.env.TENANT_ID&&process.env.ORG_ID?{'accessToken':_0x1d9c61?Gt(_0x1d9c61):process.env.AUTH_TOKEN,..._0x1d9c61?{'accessTokenFile':_0x1d9c61}:{},'tenantId':process.env.TENANT_ID,'organizationId':process.env.ORG_ID,'orgLogicalName':process.env.ORG_SLUG,'tenantName':process.env.TENANT_SLUG,'baseUrl':Ae()}:null;}function Gt(_0x305926){const _0x390968=_0x48b17b;let _0x58a14f;try{_0x58a14f=_0x927dcd['readFileSync'](_0x305926,_0x390968(0x1b4))[_0x390968(0x26a)]();}catch(_0x542b48){throw new Error(_0x390968(0x224)+_0x305926+_0x390968(0x28d)+_0x542b48[_0x390968(0x215)]);}let _0x343c76=_0x58a14f[_0x390968(0x16e)](_0x390968(0x257))?_0x58a14f['slice'](0x7)[_0x390968(0x26a)]():_0x58a14f;if(!_0x343c76)throw new Error(_0x390968(0x224)+_0x305926+'\x27\x20is\x20empty.');return _0x343c76;}function Ae(){const _0x209963=_0x48b17b;let _0x5bb1c1=process.env.UIPATH_BASE_URL;if(!_0x5bb1c1)return;let _0x5d19a5=_0x44d262(_0x5bb1c1);if(_0x5d19a5['ok']===!0x1)throw new Error(_0x209963(0x292)+_0x1c7cec(_0x5bb1c1,_0x5d19a5[_0x209963(0x130)]));return _0x5d19a5[_0x209963(0x17a)];}async function z(){let _0xfa8dfe=q();if(_0xfa8dfe)return _0xfa8dfe;let _0x4475ca=await _0x5b6e73();if(_0x4475ca)return _0x4475ca;throw new Error(Se);}async function Wt(){const _0x3b997b=_0x48b17b;await new _0x36ff2d()[_0x3b997b(0x235)]({'force':!0x0}),console[_0x3b997b(0x218)]('Interop\x20stopped\x20(if\x20it\x20was\x20running).');}function Y(_0x42ee8d,_0x35eac5,_0x2d2c6e){const _0x184ee5=_0x48b17b;_0x42ee8d?process[_0x184ee5(0x1e6)][_0x184ee5(0xfc)]('[env='+_0x42ee8d+_0x184ee5(0x264)+_0x2d2c6e+'\x0a'):!_0x35eac5&&!process.env.BACKEND_URL&&process[_0x184ee5(0x1e6)][_0x184ee5(0xfc)](_0x184ee5(0x258)+_0x2d2c6e+'\x0a');}async function S(_0x2c4f5e){const _0x3019c8=_0x48b17b;let _0x4311ee=await z(),_0x26ea12=_0x256176(_0x2c4f5e[_0x3019c8(0x29b)],_0x4311ee,_0x2c4f5e[_0x3019c8(0x27a)]);return Y(_0x2c4f5e[_0x3019c8(0x29b)],_0x2c4f5e[_0x3019c8(0x27a)],_0x26ea12),{'auth':_0x4311ee,'backendUrl':_0x26ea12,'client':_0x4c62dd({'auth':_0x4311ee,'backendUrl':_0x26ea12})};}async function Kt(_0x28f261){const _0x19fd7f=_0x48b17b;let {client:_0xc132b9}=await S(_0x28f261),[_0x49a14b,_0x336ba3]=await Promise[_0x19fd7f(0x27c)]([_0x41bde1(_0xc132b9),_0xaf3095(_0xc132b9)['catch'](_0x1deb47=>(process[_0x19fd7f(0x1e6)][_0x19fd7f(0xfc)]('Could\x20not\x20check\x20BYO\x20model\x20warnings:\x20'+(_0x1deb47 instanceof Error?_0x1deb47[_0x19fd7f(0x215)]:String(_0x1deb47))+'\x0a'),{}))]),_0x14d692=_0x49a14b[_0x19fd7f(0x143)](_0xed8e4b=>_0x336ba3[_0xed8e4b['id']]?{..._0xed8e4b,'byoWarning':_0x336ba3[_0xed8e4b['id']]}:_0xed8e4b);u(_0x28f261,_0x14d692,Qt);}function Qt(_0xd2ff9d){const _0xcea2e=_0x48b17b;if(_0xd2ff9d[_0xcea2e(0x298)]===0x0){process[_0xcea2e(0x1e6)][_0xcea2e(0xfc)](_0xcea2e(0x26b));return;}process[_0xcea2e(0x1a5)][_0xcea2e(0xfc)]('\x0aAvailable\x20models\x20('+_0xd2ff9d[_0xcea2e(0x298)]+_0xcea2e(0x175));for(let _0x79cdde of _0xd2ff9d){let _0x18f70=_0x79cdde[_0xcea2e(0x2aa)]&&_0x79cdde['name']!==_0x79cdde['id']?'\x20('+_0x79cdde[_0xcea2e(0x2aa)]+')':'';process[_0xcea2e(0x1a5)][_0xcea2e(0xfc)]('\x20\x20'+_0x79cdde['id']+_0x18f70+'\x0a'),_0x79cdde[_0xcea2e(0x29c)]&&process['stdout'][_0xcea2e(0xfc)](_0xcea2e(0x19e)+_0x79cdde['description']+'\x0a'),_0x79cdde[_0xcea2e(0x1c7)]&&process[_0xcea2e(0x1a5)][_0xcea2e(0xfc)](_0xcea2e(0x2c3)+(_0x79cdde[_0xcea2e(0x17e)]?'\x20('+_0x79cdde['lockReason']+')':'')+'\x0a'),_0x79cdde['byoWarning']&&process['stdout']['write'](_0xcea2e(0x120)+_0x79cdde[_0xcea2e(0x213)]+'\x0a');}process[_0xcea2e(0x1a5)]['write'](_0xcea2e(0x11a));}var le=[_0x48b17b(0x28c),_0x48b17b(0x2b0),'rename',_0x48b17b(0x153),_0x48b17b(0x207),_0x48b17b(0x150)];async function qt(_0x2db3d7){const _0x313346=_0x48b17b;let [_0x26707a='',_0x39702d='',..._0xe8bc4]=_0x2db3d7['operands'];if(_0x26707a&&!le['includes'](_0x26707a)&&(console['error'](_0x313346(0x1a8)+_0x26707a+'.\x20Use:\x20'+le[_0x313346(0x2d0)]('\x20|\x20')+'.'),process[_0x313346(0x270)](0x2)),_0x2db3d7[_0x313346(0x1ac)]!==void 0x0&&_0x26707a!==_0x313346(0x207)&&(console[_0x313346(0x1b2)]('--turn\x20applies\x20to\x20`delegate-cli\x20sessions\x20cancel`\x20only.'),process[_0x313346(0x270)](0x2)),_0x26707a&&_0x26707a!=='list'){await zt(_0x2db3d7,_0x26707a,_0x39702d,_0xe8bc4[_0x313346(0x2d0)]('\x20')[_0x313346(0x26a)]());return;}_0x2db3d7[_0x313346(0x1aa)][_0x313346(0x298)]>0x1&&(console[_0x313346(0x1b2)](_0x313346(0x231)),process['exit'](0x2));let {client:_0x3e4b3a}=await S(_0x2db3d7),_0x212c1d=await _0x3880f9(_0x3e4b3a,{'page':_0x2db3d7[_0x313346(0x236)],'pageSize':_0x2db3d7[_0x313346(0x180)],'includeSubAgents':_0x2db3d7[_0x313346(0x137)]});u(_0x2db3d7,_0x212c1d,Zt);}async function zt(_0x4cf4ef,_0x18cc0d,_0x11ad57,_0x34690b){const _0x1ec470=_0x48b17b;if((_0x4cf4ef[_0x1ec470(0x236)]!==void 0x0||_0x4cf4ef[_0x1ec470(0x180)]!==void 0x0||_0x4cf4ef[_0x1ec470(0x137)])&&(console[_0x1ec470(0x1b2)](_0x1ec470(0x1fd)),process[_0x1ec470(0x270)](0x2)),_0x18cc0d===_0x1ec470(0x207)){await Vt(_0x4cf4ef,_0x11ad57,_0x34690b);return;}if(_0x18cc0d===_0x1ec470(0x150)){await Xt(_0x4cf4ef,_0x11ad57,_0x34690b);return;}(!_0x11ad57||_0x18cc0d==='rename'!=!!_0x34690b)&&(console[_0x1ec470(0x1b2)]('Usage:\x20delegate-cli\x20sessions\x20'+_0x18cc0d+_0x1ec470(0x2ab)+(_0x18cc0d===_0x1ec470(0x189)?'\x20<title>':'')),process[_0x1ec470(0x270)](0x2));let {client:_0x1b2f82}=await S(_0x4cf4ef);try{if(_0x18cc0d==='show'){let _0x2ab078=await _0x265adf(_0x1b2f82,_0x11ad57);_0x2ab078||ce(_0x11ad57),u(_0x4cf4ef,_0x2ab078,Yt);}else{if(_0x18cc0d===_0x1ec470(0x189)){let _0x3a30c7=await _0x4befad(_0x1b2f82,_0x11ad57,_0x34690b);u(_0x4cf4ef,_0x3a30c7,_0x126d07=>{const _0x4412f8=_0x1ec470;process[_0x4412f8(0x1a5)][_0x4412f8(0xfc)](_0x4412f8(0x2ba)+_0x126d07['id']+':\x20'+_0x126d07[_0x4412f8(0x146)]+'\x0a');});}else await _0x3b4e2b(_0x1b2f82,_0x11ad57),await _0x12866e(_0x11ad57,_0x4cf4ef[_0x1ec470(0x2e3)]),u(_0x4cf4ef,{'id':_0x11ad57,'deleted':!0x0},_0x28737c=>{const _0x10b4eb=_0x1ec470;process[_0x10b4eb(0x1a5)]['write'](_0x10b4eb(0x1bd)+_0x28737c['id']+'.\x0a');});}}catch(_0xce3af5){if(!_0x262c37(_0xce3af5,0x194))throw _0xce3af5;ce(_0x11ad57);}}function ce(_0x5f3d8b){const _0x5730f7=_0x48b17b;console[_0x5730f7(0x1b2)](_0x5730f7(0x1b9)+_0x5f3d8b+_0x5730f7(0x272)),process[_0x5730f7(0x270)](0x1);}function Yt(_0x4012fe){const _0x419bf8=_0x48b17b;process[_0x419bf8(0x1a5)]['write'](_0x419bf8(0xec)+_0x4012fe['id']+'\x0a'),process[_0x419bf8(0x1a5)]['write']('Title\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x4012fe[_0x419bf8(0x146)]+'\x0a'),process[_0x419bf8(0x1a5)]['write'](_0x419bf8(0x2d6)+_0x4012fe[_0x419bf8(0x2e0)]+'\x0a'),process[_0x419bf8(0x1a5)]['write'](_0x419bf8(0x124)+_0x4012fe[_0x419bf8(0x1ae)]+'\x0a'),_0x4012fe[_0x419bf8(0x158)]&&process[_0x419bf8(0x1a5)][_0x419bf8(0xfc)](_0x419bf8(0x204)+_0x4012fe[_0x419bf8(0x158)]+'\x0a');}async function Vt(_0x412e8a,_0x39b249,_0x32afba){const _0x1ffe8b=_0x48b17b;(!_0x39b249||_0x32afba||!_0x412e8a['turnId'])&&(console[_0x1ffe8b(0x1b2)](_0x1ffe8b(0x133)),process[_0x1ffe8b(0x270)](0x2));let {client:_0x30c750}=await S(_0x412e8a),_0x2985e0=await _0x1c6398(_0x30c750,_0x39b249,_0x412e8a[_0x1ffe8b(0x1ac)]);u(_0x412e8a,{'sessionId':_0x39b249,'turnId':_0x412e8a[_0x1ffe8b(0x1ac)],'cancelled':_0x2985e0},_0xb26054=>{const _0x43b75e=_0x1ffe8b;_0xb26054[_0x43b75e(0x1c1)]?process[_0x43b75e(0x1a5)][_0x43b75e(0xfc)]('Cancel\x20requested\x20for\x20turn\x20'+_0xb26054[_0x43b75e(0x1ac)]+_0x43b75e(0x253)+_0xb26054[_0x43b75e(0x2e2)]+'.\x0a'):process[_0x43b75e(0x1e6)][_0x43b75e(0xfc)](_0x43b75e(0x1ab)+_0xb26054[_0x43b75e(0x1ac)]+_0x43b75e(0x2be)+_0xb26054[_0x43b75e(0x2e2)]+'.\x0a');}),_0x2985e0||(process[_0x1ffe8b(0x12c)]=0x1);}async function Xt(_0x59cf0b,_0x1c7f21,_0x56022a){const _0x58e407=_0x48b17b;(!_0x1c7f21||/\s/[_0x58e407(0x152)](_0x56022a))&&(console[_0x58e407(0x1b2)]('Usage:\x20delegate-cli\x20sessions\x20fork\x20<id>\x20[<message-id>]'),process[_0x58e407(0x270)](0x2));let {client:_0x5bf7ed}=await S(_0x59cf0b),_0x3abd5f;try{_0x3abd5f=await _0x1ccf1a(_0x5bf7ed,_0x1c7f21,{'atMessageId':_0x56022a||void 0x0});}catch(_0x2ea74a){if(!_0x262c37(_0x2ea74a,0x194))throw _0x2ea74a;console[_0x58e407(0x1b2)](_0x58e407(0x1b9)+_0x1c7f21+'\x20not\x20found,\x20has\x20no\x20messages'+(_0x56022a?_0x58e407(0x223)+_0x56022a:'')+'.'),process['exit'](0x1);}u(_0x59cf0b,_0x3abd5f,_0x487c0f=>{const _0x2c795e=_0x58e407;process['stdout'][_0x2c795e(0xfc)](_0x2c795e(0x2b3)+_0x1c7f21+_0x2c795e(0x2c9)+_0x487c0f['id']+'.\x0a'),process[_0x2c795e(0x1e6)]['write'](_0x2c795e(0x230)+_0x487c0f['id']+'\x20\x22<prompt>\x22\x0a');});}function Zt({sessions:_0x3d9f9b,page:_0x49fa43,isLastPage:_0x10731a}){const _0x1b38ee=_0x48b17b;if(_0x3d9f9b['length']===0x0)process['stderr'][_0x1b38ee(0xfc)](_0x1b38ee(0x1a1)+_0x49fa43+'.\x0a');else{process[_0x1b38ee(0x1a5)][_0x1b38ee(0xfc)]('ID'[_0x1b38ee(0x1d0)](0x24)+'\x20\x20'+_0x1b38ee(0x2d3)[_0x1b38ee(0x1d0)](0x13)+_0x1b38ee(0x2a2));for(let _0x5925dd of _0x3d9f9b){let _0xdbad98=_0x5925dd[_0x1b38ee(0x2ad)][_0x1b38ee(0x290)]('T','\x20')[_0x1b38ee(0x186)](0x0,0x13),_0x2f97a8=_0x5925dd[_0x1b38ee(0x126)]?'\x20\x20(sub-agent\x20of\x20'+_0x5925dd['parentSessionId']+')':'';process[_0x1b38ee(0x1a5)]['write'](_0x5925dd['id'][_0x1b38ee(0x1d0)](0x24)+'\x20\x20'+_0xdbad98[_0x1b38ee(0x1d0)](0x13)+'\x20\x20'+_0x5925dd[_0x1b38ee(0x146)]+_0x2f97a8+'\x0a');}}_0x10731a||process['stderr'][_0x1b38ee(0xfc)](_0x1b38ee(0x2a7)+(_0x49fa43+0x1)+'\x0a');}async function en(_0x37ea49){const _0x2e9477=_0x48b17b;let _0x427d9d=await z(),_0x24530c=_0x256176(_0x37ea49[_0x2e9477(0x29b)],_0x427d9d,_0x37ea49[_0x2e9477(0x27a)]);Y(_0x37ea49[_0x2e9477(0x29b)],_0x37ea49[_0x2e9477(0x27a)],_0x24530c);let _0x5238ac=await _0x19b8ee({'auth':_0x427d9d,'backendUrl':_0x24530c,'interop':_0x37ea49['headless']?_0x2e9477(0x21b):'spawn'});u(_0x37ea49,_0x5238ac,({checks:_0x840d34})=>{const _0x48a887=_0x2e9477;for(let _0x3c4699 of _0x840d34)process['stdout'][_0x48a887(0xfc)](tn(_0x3c4699)+'\x0a');}),_0x5238ac['ok']||process[_0x2e9477(0x270)](0x1);}function tn(_0x231fc0){const _0x2c69c9=_0x48b17b;return{'ok':'✓','failed':'✗','skipped':'-'}[_0x231fc0[_0x2c69c9(0x15c)]]+'\x20'+_0x231fc0[_0x2c69c9(0x2aa)][_0x2c69c9(0x1d0)](0xa)+_0x231fc0['detail'];}var nn=['',_0x48b17b(0x277),_0x48b17b(0x2af)];async function on(_0x46b5be){const _0x50b745=_0x48b17b;let _0x479ba9=_0x46b5be[_0x50b745(0x250)];nn[_0x50b745(0x205)](_0x479ba9)||(console[_0x50b745(0x1b2)](_0x50b745(0x1dd)+_0x46b5be['prompt']+_0x50b745(0xea)),process[_0x50b745(0x270)](0x2)),_0x479ba9===''&&_0x46b5be[_0x50b745(0x184)]!==void 0x0&&(console[_0x50b745(0x1b2)](_0x50b745(0x1f3)),process[_0x50b745(0x270)](0x2)),_0x479ba9!==''&&_0x46b5be[_0x50b745(0x2e2)]!==void 0x0&&(console[_0x50b745(0x1b2)](_0x50b745(0x15b)),process[_0x50b745(0x270)](0x2));let {client:_0x37907d}=await S(_0x46b5be);if(_0x479ba9===_0x50b745(0x277)){u(_0x46b5be,await _0x56cb05(_0x37907d,{'days':_0x46b5be[_0x50b745(0x184)]}),rn);return;}if(_0x479ba9===_0x50b745(0x2af)){u(_0x46b5be,await _0x10ae70(_0x37907d,{'days':_0x46b5be[_0x50b745(0x184)]}),an);return;}let [_0x4bac4f,_0xb63a3c,_0x56b930]=await Promise['all']([_0x215c94(_0x37907d,{'sessionId':_0x46b5be[_0x50b745(0x2e2)]}),_0x584556(_0x37907d),_0x285815(_0x37907d)]);u(_0x46b5be,{'licensing':_0x4bac4f,'monthlySpending':_0xb63a3c,'cartographerAllowance':_0x56b930},sn);}function sn(_0xa482f8){const _0x804f56=_0x48b17b;let {licensing:_0x50d8c6,monthlySpending:_0x2a82f8,cartographerAllowance:_0x3bf68d}=_0xa482f8,_0x3d71e6=[_0x50d8c6[_0x804f56(0x166)]?_0x804f56(0x2c0)+_0x50d8c6[_0x804f56(0x238)][_0x804f56(0x1a9)](0x1)+_0x804f56(0x248)+(_0x50d8c6[_0x804f56(0x20b)]??0x0)+_0x804f56(0x19d)+(_0x50d8c6[_0x804f56(0x244)]>0x0?',\x20'+_0x50d8c6['extra_pool_consumed_pu']+'\x20PU\x20beyond\x20quota':'')+_0x804f56(0x212)+_0x50d8c6[_0x804f56(0x10a)]+')':_0x804f56(0x1ad),_0x804f56(0x1f8)+_0x2a82f8['monthly_spend_usd'][_0x804f56(0x1a9)](0x2)+_0x804f56(0x299)+(_0x2a82f8[_0x804f56(0x166)]&&_0x2a82f8['monthly_limit_usd']!==null?_0x804f56(0x13a)+_0x2a82f8[_0x804f56(0x293)][_0x804f56(0x1a9)](0x2)+_0x804f56(0xe9):_0x804f56(0x1f4)),_0x804f56(0x289)+_0x3bf68d[_0x804f56(0x13b)]+'\x20('+_0x3bf68d['model_id']+')'];_0x50d8c6[_0x804f56(0x243)]!==null&&_0x50d8c6[_0x804f56(0x243)]!==void 0x0&&_0x3d71e6['push']('Session:\x20\x20\x20\x20\x20\x20'+_0x50d8c6[_0x804f56(0x243)]+_0x804f56(0x177)),process[_0x804f56(0x1a5)][_0x804f56(0xfc)](_0x3d71e6['join']('\x0a')+'\x0a');}function rn(_0x2dc91c){const _0x3ec71b=_0x48b17b;let _0x543466=['Last\x20'+_0x2dc91c['period_days']+'\x20days:\x20'+_0x2dc91c[_0x3ec71b(0x222)]+_0x3ec71b(0x2b2)+_0x2dc91c[_0x3ec71b(0x29d)]+_0x3ec71b(0x2de),_0x3ec71b(0x1f1)+_0x2dc91c[_0x3ec71b(0xeb)][_0x3ec71b(0x1a9)](0x2)+_0x3ec71b(0x2ca)+_0x2dc91c[_0x3ec71b(0x2bc)]['toFixed'](0x2)+_0x3ec71b(0x116)+_0x2dc91c[_0x3ec71b(0x1b0)]+'\x20token\x20units)',_0x3ec71b(0x1d3)+_0x2dc91c[_0x3ec71b(0x220)]+_0x3ec71b(0x10b)+_0x2dc91c[_0x3ec71b(0x1cd)]+_0x3ec71b(0x25a)];for(let [_0x21db98,_0x568460]of Object[_0x3ec71b(0x27d)](_0x2dc91c[_0x3ec71b(0x16a)]))_0x543466[_0x3ec71b(0x1d4)]('\x20\x20'+_0x21db98+':\x20'+_0x568460+_0x3ec71b(0x1f2));process['stdout'][_0x3ec71b(0xfc)](_0x543466[_0x3ec71b(0x2d0)]('\x0a')+'\x0a');}function an(_0x20633d){const _0x413d3a=_0x48b17b;if(_0x20633d[_0x413d3a(0xf5)]['length']===0x0){process['stdout'][_0x413d3a(0xfc)](_0x413d3a(0x1b5)+_0x20633d[_0x413d3a(0x267)]+_0x413d3a(0x1cc));return;}let _0x5e1681=[_0x413d3a(0x274)];for(let _0x277106 of _0x20633d[_0x413d3a(0xf5)])_0x5e1681['push'](_0x277106['date']+'\x20\x20'+String(_0x277106[_0x413d3a(0xef)])[_0x413d3a(0x288)](0xb)+'\x20\x20'+String(_0x277106[_0x413d3a(0x162)])[_0x413d3a(0x288)](0xd)+'\x20\x20'+String(_0x277106[_0x413d3a(0x19a)])[_0x413d3a(0x288)](0x11));process['stdout'][_0x413d3a(0xfc)](_0x5e1681[_0x413d3a(0x2d0)]('\x0a')+'\x0a');}async function ln(_0x3c404b,_0x473526){const _0x4262ac=_0x48b17b;let _0x47c906=await cn(_0x3c404b[_0x4262ac(0x250)],_0x473526);_0x3c404b[_0x4262ac(0x2d1)]&&(_0x47c906[_0x4262ac(0x2d1)]=_0x3c404b[_0x4262ac(0x2d1)]);let {client:_0x2c661e}=await S(_0x3c404b);try{_0x473526===_0x4262ac(0x181)?u(_0x3c404b,await _0x186d12(_0x2c661e,_0x47c906,void 0x0),un):_0x473526===_0x4262ac(0x21f)?u(_0x3c404b,await _0x29cb1a(_0x2c661e,_0x47c906,void 0x0),pn):u(_0x3c404b,await _0xce0dc4(_0x2c661e,_0x47c906,void 0x0),mn);}catch(_0x5a27e9){if(!_0x67637a(_0x5a27e9))throw _0x5a27e9;console[_0x4262ac(0x1b2)](_0x5a27e9[_0x4262ac(0x215)]),process['exit'](0x1);}}async function cn(_0xfca3e1,_0x4a31c1){const _0x45274f=_0x48b17b;let _0x3469aa;try{_0x3469aa=_0xfca3e1&&_0xfca3e1!=='-'?_0x927dcd['readFileSync'](_0x18f2f0[_0x45274f(0x203)](_0xfca3e1),'utf-8'):await M(_0xfca3e1,process['stdin']);}catch(_0x33b956){console[_0x45274f(0x1b2)](_0x4a31c1+':\x20cannot\x20read\x20the\x20request\x20('+_0x33b956[_0x45274f(0x215)]+').'),process[_0x45274f(0x270)](0x2);}return _0x3469aa||(console[_0x45274f(0x1b2)](_0x4a31c1+'\x20needs\x20a\x20JSON\x20request:\x20delegate-cli\x20'+_0x4a31c1+_0x45274f(0x249)),process['exit'](0x2)),$e(_0x3469aa,_0x4a31c1,_0x45274f(0x28e));}function $e(_0x1c0947,_0x5ba84d,_0x4be641){const _0x47725b=_0x48b17b;let _0x5d36f7;try{_0x5d36f7=JSON[_0x47725b(0x1bc)](_0x1c0947);}catch(_0x4dfd68){console['error'](_0x5ba84d+':\x20'+_0x4be641+'\x20is\x20not\x20valid\x20JSON\x20('+_0x4dfd68[_0x47725b(0x215)]+').'),process['exit'](0x2);}return(typeof _0x5d36f7!=_0x47725b(0x228)||_0x5d36f7===null||Array[_0x47725b(0x1d8)](_0x5d36f7))&&(console['error'](_0x5ba84d+':\x20'+_0x4be641+_0x47725b(0x1eb)),process[_0x47725b(0x270)](0x2)),_0x5d36f7;}function Ee(_0x3b0f84,_0x53f73e){const _0x1cdc1a=_0x48b17b;let _0x400d98;try{_0x400d98=_0x927dcd[_0x1cdc1a(0x247)](_0x18f2f0['resolve'](_0x3b0f84),_0x1cdc1a(0x1b4));}catch(_0x11dfde){console[_0x1cdc1a(0x1b2)](_0x53f73e+_0x1cdc1a(0xfb)+_0x11dfde[_0x1cdc1a(0x215)]+').'),process['exit'](0x2);}return $e(_0x400d98,_0x53f73e,_0x1cdc1a(0x11d));}async function dn(_0x414d67){const _0x338731=_0x48b17b;_0x414d67['jsonSchemaPath']===void 0x0&&(console[_0x338731(0x1b2)](_0x338731(0x237)),process[_0x338731(0x270)](0x2));let _0x25e2eb=Ee(_0x414d67[_0x338731(0x269)],_0x338731(0x1d1)),_0x4abb29=(await M(_0x414d67[_0x338731(0x250)],process[_0x338731(0x161)]))['trim']();_0x4abb29||(console[_0x338731(0x1b2)]('complete\x20needs\x20a\x20prompt:\x20delegate-cli\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22,\x20or\x20-\x20to\x20read\x20stdin.'),process[_0x338731(0x270)](0x2));let {client:_0x214cf9}=await S(_0x414d67);try{let _0x5f4387=await _0x5163d5(_0x214cf9,{'prompt':_0x4abb29,'jsonSchema':_0x25e2eb,'model':_0x414d67[_0x338731(0x2d1)]||process.env.MODEL||_0x541c69,..._0x414d67[_0x338731(0x2e2)]!==void 0x0&&{'sessionId':_0x414d67[_0x338731(0x2e2)]}},void 0x0);u(_0x414d67,_0x5f4387,_0x55d066=>{const _0x2be6bf=_0x338731;process[_0x2be6bf(0x1a5)]['write'](JSON['stringify'](_0x55d066[_0x2be6bf(0x18f)],null,0x2)+'\x0a');});}catch(_0x385376){if(!_0x45eb75(_0x385376))throw _0x385376;console[_0x338731(0x1b2)](_0x385376[_0x338731(0x215)]),process[_0x338731(0x270)](0x1);}}function V(_0x3fcc45){const _0x37f8a0=_0x48b17b;process[_0x37f8a0(0x1a5)][_0x37f8a0(0xfc)]('Model\x20'+_0x3fcc45[_0x37f8a0(0x2d1)]+'\x20('+_0x3fcc45[_0x37f8a0(0x188)]+_0x37f8a0(0x2a0)+_0x3fcc45[_0x37f8a0(0x1e7)][_0x37f8a0(0x145)]+'\x20tokens\x0a');}function un(_0x561a1a){const _0x381fae=_0x48b17b;V(_0x561a1a);for(let _0x5935ba of Object[_0x381fae(0x2ce)](_0x561a1a[_0x381fae(0x149)])){let _0x2a69cb=_0x561a1a['answers'][_0x5935ba],_0x3a91dd=_0x2a69cb[_0x381fae(0x2d5)]===_0x381fae(0x11e)?_0x381fae(0x16c)+_0x2a69cb[_0x381fae(0x11e)][_0x381fae(0x1a9)](0x2):_0x2a69cb[_0x381fae(0x2d5)]==='choice'?_0x381fae(0xf2)+_0x2a69cb[_0x381fae(0x1da)]+_0x381fae(0x119)+_0x2a69cb[_0x381fae(0x17d)]['toFixed'](0x2)+')':'score\x20'+_0x2a69cb['score'][_0x381fae(0x1a9)](0x2)+_0x381fae(0x119)+_0x2a69cb['confidence']['toFixed'](0x2)+')';process[_0x381fae(0x1a5)]['write']('\x20\x20'+_0x5935ba+':\x20'+_0x3a91dd+'\x0a');}}function pn(_0xc261d8){const _0x581096=_0x48b17b;V(_0xc261d8),_0xc261d8[_0x581096(0x138)][_0x581096(0x206)]((_0x2c4cbe,_0x34bfef)=>{const _0x16b50d=_0x581096;process[_0x16b50d(0x1a5)][_0x16b50d(0xfc)]('\x20\x20'+(_0x34bfef+0x1)+'.\x20'+_0x2c4cbe['id']+'\x20\x20'+_0x2c4cbe[_0x16b50d(0x25d)]['toFixed'](0x3)+_0x16b50d(0x210)+_0x2c4cbe[_0x16b50d(0x27b)]+')\x0a');});}function mn(_0x529ad2){const _0x3b8b89=_0x48b17b;V(_0x529ad2),process[_0x3b8b89(0x1a5)][_0x3b8b89(0xfc)](_0x3b8b89(0x125)+_0x529ad2['rubric_version']+'\x0a');for(let _0x133d52 of _0x529ad2[_0x3b8b89(0x138)])process['stdout'][_0x3b8b89(0xfc)]('\x20\x20'+_0x133d52['id']+':\x20'+_0x133d52[_0x3b8b89(0x221)]+'\x20(confidence\x20'+_0x133d52[_0x3b8b89(0x17d)][_0x3b8b89(0x1a9)](0x2)+')\x0a');}async function fn(_0x2f84e8){const _0x3493ac=_0x48b17b;let _0x494357=_0x2f84e8['prompt']['trim']();_0x494357||(console[_0x3493ac(0x1b2)](_0x3493ac(0xed)),process[_0x3493ac(0x270)](0x2));let {client:_0x135222}=await S(_0x2f84e8);try{let _0x25df7f=_0x494357==='-'?{'data':await gn(process[_0x3493ac(0x161)])}:_0x494357;u(_0x2f84e8,await _0x5bc170(_0x135222,_0x25df7f,void 0x0),_0x8ea7d9=>{const _0x115288=_0x3493ac;process[_0x115288(0x1a5)]['write'](_0x8ea7d9[_0x115288(0x2b9)]+'\x0a');});}catch(_0x380e4d){if(_0x2605d1(_0x380e4d)&&(console['error'](_0x380e4d[_0x3493ac(0x215)]),process[_0x3493ac(0x270)](_0x380e4d[_0x3493ac(0x15c)]===void 0x0?0x2:0x1)),typeof _0x380e4d?.[_0x3493ac(0x182)]!=_0x3493ac(0x22a))throw _0x380e4d;console[_0x3493ac(0x1b2)](_0x3493ac(0x15a)+_0x494357+'\x20('+_0x380e4d['message']+').'),process['exit'](0x2);}}async function gn(_0x4a0955){const _0x10e9f8=_0x48b17b;let _0x370829=[];for await(let _0x35459b of _0x4a0955)_0x370829[_0x10e9f8(0x1d4)](Buffer['from'](_0x35459b));return Buffer['concat'](_0x370829);}var de=[_0x48b17b(0x28c),_0x48b17b(0x148),'show',_0x48b17b(0x140),'claim','complete',_0x48b17b(0x26e),_0x48b17b(0x151),_0x48b17b(0x207),_0x48b17b(0x153)],ue={'list':'delegations\x20list\x20<backend-project-id>','pending':_0x48b17b(0x21d),'show':_0x48b17b(0x1c6),'create':_0x48b17b(0x1f0),'claim':'delegations\x20claim\x20<delegation-id|delegate://delegation/…>','complete':_0x48b17b(0x12a),'accept':_0x48b17b(0x164),'dismiss':'delegations\x20dismiss\x20<delegation-id>','cancel':_0x48b17b(0x29f),'delete':_0x48b17b(0x20c)};async function hn(_0x13938f){const _0x4ff5f1=_0x48b17b;let [_0x9cbe23='',_0x683b85='',..._0x33323d]=_0x13938f['operands'];de[_0x4ff5f1(0x205)](_0x9cbe23)||(console[_0x4ff5f1(0x1b2)]((_0x9cbe23?_0x4ff5f1(0x2cc)+_0x9cbe23+'.\x20':'')+_0x4ff5f1(0x287)+de[_0x4ff5f1(0x2d0)]('\x20|\x20')+'.'),process['exit'](0x2));let _0x57e1a4=_0x9cbe23;_0x57e1a4!==_0x4ff5f1(0x140)&&(_0x13938f['delegateTo']!==void 0x0||_0x13938f['contextSummary']!==void 0x0||_0x13938f[_0x4ff5f1(0x2e2)]!==void 0x0)&&(console[_0x4ff5f1(0x1b2)]('--to,\x20--summary\x20and\x20--session\x20apply\x20to\x20`delegate-cli\x20delegations\x20create`\x20only.'),process[_0x4ff5f1(0x270)](0x2));let _0x5ae9f2=(_0x57e1a4===_0x4ff5f1(0x140)?_0x13938f[_0x4ff5f1(0x1aa)][_0x4ff5f1(0x186)](0x1):_0x33323d)['join']('\x20')[_0x4ff5f1(0x26a)](),_0x6563d0=_0x57e1a4===_0x4ff5f1(0x140)||_0x57e1a4===_0x4ff5f1(0x1d1);(_0x57e1a4!==_0x4ff5f1(0x140)&&!_0x683b85||(_0x6563d0?!_0x5ae9f2:_0x5ae9f2)||_0x57e1a4==='create'&&!_0x13938f[_0x4ff5f1(0x2e2)])&&(console['error'](_0x4ff5f1(0x131)+ue[_0x57e1a4]),process[_0x4ff5f1(0x270)](0x2));let _0x5615df=_0x6563d0&&_0x5ae9f2==='-'?(await M('-',process[_0x4ff5f1(0x161)]))[_0x4ff5f1(0x26a)]():_0x5ae9f2;_0x6563d0&&!_0x5615df&&(console[_0x4ff5f1(0x1b2)](_0x4ff5f1(0x131)+ue[_0x57e1a4]+_0x4ff5f1(0x1fb)),process[_0x4ff5f1(0x270)](0x2));let {client:_0x171ef6}=await S(_0x13938f);try{await yn(_0x13938f,_0x171ef6,_0x57e1a4,_0x683b85,_0x5615df);}catch(_0x520416){if(!_0x5b21a7(_0x520416))throw _0x520416;console[_0x4ff5f1(0x1b2)](_0x520416['message']),process[_0x4ff5f1(0x270)](0x1);}}async function yn(_0x55336f,_0x16e832,_0x6e2b21,_0x5d76d1,_0x164997){const _0x450610=_0x48b17b;switch(_0x6e2b21){case _0x450610(0x28c):u(_0x55336f,await _0x4b54bc(_0x16e832,_0x5d76d1),wn);return;case _0x450610(0x148):u(_0x55336f,await _0x21394d(_0x16e832,_0x5d76d1),_0x26f93d=>{const _0x3df131=_0x450610;_0x26f93d[_0x3df131(0x2b4)]&&process[_0x3df131(0x1a5)]['write'](_0x3df131(0x239)+_0x26f93d['delegation']['id']+'\x20('+_0x26f93d[_0x3df131(0x2b4)][_0x3df131(0x15c)]+_0x3df131(0x1cb)),_0x26f93d[_0x3df131(0x226)][_0x3df131(0x298)]===0x0&&process[_0x3df131(0x1e6)][_0x3df131(0xfc)](_0x3df131(0x134));for(let _0x46db13 of _0x26f93d[_0x3df131(0x226)])process['stdout'][_0x3df131(0xfc)]('\x0a'+_0x46db13['id']+'\x20\x20from\x20'+(_0x46db13[_0x3df131(0x259)]??_0x3df131(0x23d))+'\x20\x20'+(_0x46db13['task']??'')+'\x0a'+(_0x46db13[_0x3df131(0x23a)]?.[_0x3df131(0x1c3)]??'')+'\x0a');_0x26f93d[_0x3df131(0x226)]['length']>0x0&&process[_0x3df131(0x1e6)][_0x3df131(0xfc)]('\x0aAccept\x20one\x20with:\x20delegate-cli\x20delegations\x20accept\x20<id>\x0a');});return;case _0x450610(0x2b0):u(_0x55336f,await _0x38d9d3(_0x16e832,_0x5d76d1),pe);return;case'create':{let _0x385020=await _0x396986(_0x16e832,{'sessionId':_0x55336f[_0x450610(0x2e2)],'task':_0x164997,..._0x55336f[_0x450610(0x190)]!==void 0x0&&{'contextSummary':_0x55336f['contextSummary']},..._0x55336f[_0x450610(0x144)]!==void 0x0&&{'recipient':_0x55336f[_0x450610(0x144)]}});u(_0x55336f,_0x385020,_0x3f6ebb=>{const _0xd8b82d=_0x450610;_0x3f6ebb[_0xd8b82d(0x1f6)]?process['stdout']['write'](_0xd8b82d(0x26d)+_0x3f6ebb[_0xd8b82d(0x158)]+_0xd8b82d(0x2c7)+_0x3f6ebb[_0xd8b82d(0x1f6)][_0xd8b82d(0x261)]+'\x20<'+_0x3f6ebb[_0xd8b82d(0x1f6)][_0xd8b82d(0x211)]+_0xd8b82d(0x168)):process[_0xd8b82d(0x1a5)][_0xd8b82d(0xfc)](_0xd8b82d(0x241)+_0x3f6ebb[_0xd8b82d(0x158)]+_0xd8b82d(0xfe)+_0x3f6ebb[_0xd8b82d(0x2cb)]+'\x0a');});return;}case _0x450610(0x154):{let _0x1919df=await _0x4f9bac(_0x16e832,_0x5d76d1);u(_0x55336f,_0x1919df,_0x252bfa=>{const _0xdfc778=_0x450610;pe(_0x252bfa),process['stdout'][_0xdfc778(0xfc)](_0xdfc778(0x12f)+_0x252bfa[_0xdfc778(0x2e2)]+'\x0a'),process[_0xdfc778(0x1e6)]['write']('Work\x20on\x20it\x20with:\x20delegate-cli\x20--session\x20'+_0x252bfa[_0xdfc778(0x2e2)]+_0xdfc778(0x282)+_0x252bfa[_0xdfc778(0x158)]+_0xdfc778(0x1c4));});return;}case'complete':{let {alreadyCompleted:_0x39e479}=await _0x2aa45a(_0x16e832,_0x5d76d1,{'content':_0x164997});u(_0x55336f,{'delegationId':_0x5d76d1,'alreadyCompleted':_0x39e479},_0x121931=>{const _0x165efd=_0x450610;process['stdout'][_0x165efd(0xfc)]((_0x121931[_0x165efd(0x2c2)]?'Already\x20answered':_0x165efd(0x200))+'\x20delegation\x20'+_0x121931['delegationId']+'.\x0a');});return;}case _0x450610(0x26e):{let _0x2626bd=await _0x88d4bd(_0x16e832,_0x5d76d1);u(_0x55336f,{'delegationId':_0x5d76d1,..._0x2626bd},_0x6e736e=>{const _0x351b42=_0x450610;process[_0x351b42(0x1a5)][_0x351b42(0xfc)]((_0x6e736e['alreadyAccepted']?_0x351b42(0x26c):_0x351b42(0x20a))+_0x351b42(0x232)+_0x6e736e['delegationId']+'.\x0a');});return;}default:{let _0x4fda96={'dismiss':_0x3a7dfe,'cancel':_0x31b04c,'delete':_0x3bdd57}[_0x6e2b21];await _0x4fda96(_0x16e832,_0x5d76d1);let _0x330d29={'dismiss':_0x450610(0x13d),'cancel':_0x450610(0x1c1),'delete':_0x450610(0x1ed)}[_0x6e2b21];u(_0x55336f,{'delegationId':_0x5d76d1,[_0x330d29]:!0x0},()=>{const _0x10aa8d=_0x450610;process['stdout'][_0x10aa8d(0xfc)](''+_0x330d29[0x0][_0x10aa8d(0x19c)]()+_0x330d29[_0x10aa8d(0x186)](0x1)+'\x20delegation\x20'+_0x5d76d1+'.\x0a');});}}}function wn(_0x192b7a){const _0x54ac77=_0x48b17b;if(_0x192b7a['length']===0x0){process[_0x54ac77(0x1e6)][_0x54ac77(0xfc)](_0x54ac77(0x142));return;}process[_0x54ac77(0x1a5)][_0x54ac77(0xfc)]('ID'[_0x54ac77(0x1d0)](0x24)+'\x20\x20'+'STATUS'['padEnd'](0x9)+'\x20\x20'+'ASSIGNEE'['padEnd'](0x18)+_0x54ac77(0x21c));for(let _0x1cea6e of _0x192b7a)process[_0x54ac77(0x1a5)][_0x54ac77(0xfc)](_0x1cea6e['id'][_0x54ac77(0x1d0)](0x24)+'\x20\x20'+_0x1cea6e[_0x54ac77(0x15c)]['padEnd'](0x9)+'\x20\x20'+(_0x1cea6e['assignedUserEmail']??'-')[_0x54ac77(0x1d0)](0x18)+'\x20\x20'+(_0x1cea6e[_0x54ac77(0x108)]??'')+'\x0a');}function pe(_0x26c2ff){const _0x383ae7=_0x48b17b;process[_0x383ae7(0x1a5)][_0x383ae7(0xfc)](_0x383ae7(0x195)+(_0x26c2ff[_0x383ae7(0x128)]??'-')+'\x0a'),_0x26c2ff[_0x383ae7(0x21e)]&&process['stdout'][_0x383ae7(0xfc)]('Session\x20\x20\x20\x20\x20\x20\x20'+_0x26c2ff[_0x383ae7(0x21e)]+'\x0a'),process[_0x383ae7(0x1a5)]['write'](_0x383ae7(0x217)+(_0x26c2ff['task']??'-')+'\x0a'),_0x26c2ff['contextSummary']&&process['stdout']['write']('\x0a'+_0x26c2ff[_0x383ae7(0x190)]+'\x0a\x0a');}async function kn(_0x1073ab){const _0x313aa8=_0x48b17b;_0x1073ab[_0x313aa8(0x250)]['trim']()||(console[_0x313aa8(0x1b2)]('Usage:\x20delegate-cli\x20org-users\x20<name\x20or\x20email\x20prefix>'),process[_0x313aa8(0x270)](0x2));let {client:_0x229b0a}=await S(_0x1073ab),_0x5e3d4e;try{_0x5e3d4e=await _0x3c09d3(_0x229b0a,_0x1073ab['prompt']);}catch(_0x9037b7){if(!_0x5b21a7(_0x9037b7))throw _0x9037b7;console[_0x313aa8(0x1b2)](_0x9037b7['message']),process['exit'](0x1);}u(_0x1073ab,_0x5e3d4e,_0x54e05d=>{const _0x81285c=_0x313aa8;_0x54e05d[_0x81285c(0x298)]===0x0&&process['stderr'][_0x81285c(0xfc)](_0x81285c(0x16f)+_0x1073ab['prompt'][_0x81285c(0x26a)]()+_0x81285c(0x110));for(let _0x55a194 of _0x54e05d)process[_0x81285c(0x1a5)][_0x81285c(0xfc)](_0x55a194[_0x81285c(0x211)]['padEnd'](0x20)+'\x20\x20'+_0x55a194[_0x81285c(0x261)]+'\x0a');});}async function bn(_0x2779f5){const _0x5eebe4=_0x48b17b;_0x2779f5['env']===_0x5eebe4(0x229)&&(console[_0x5eebe4(0x1b2)](_0x5eebe4(0x14e)),process[_0x5eebe4(0x270)](0x2));let _0x2a63c5=B(_0x4ca465()),_0x3c1fe4=_0x2779f5[_0x5eebe4(0x1db)];if(_0x2779f5[_0x5eebe4(0x29b)]){let _0x300990=_0x2779f5[_0x5eebe4(0x29b)];await _0xd8ee15({'env':_0x300990,'tenant':_0x2779f5[_0x5eebe4(0x23f)]??W(_0x2a63c5,_0x502a33[_0x300990]),'skipEnvCheck':_0x3c1fe4});return;}let _0xb66de7=_0x2779f5[_0x5eebe4(0x24b)]??Ae();if(_0xb66de7){await _0xd8ee15({'baseUrl':_0xb66de7,'tenant':_0x2779f5[_0x5eebe4(0x23f)]??W(_0x2a63c5,_0xb66de7),'skipEnvCheck':_0x3c1fe4});return;}if(_0x2a63c5?.['baseUrl']){await _0xd8ee15({'baseUrl':_0x2a63c5['baseUrl'],'tenant':_0x2779f5[_0x5eebe4(0x23f)]??_0x2a63c5[_0x5eebe4(0x199)],'skipEnvCheck':_0x3c1fe4});return;}console[_0x5eebe4(0x1b2)](_0x5eebe4(0x22f)),process['exit'](0x2);}function W(_0x1f227c,_0x6c72f4){const _0x215934=_0x48b17b;return _0x1f227c?.[_0x215934(0x17a)]&&vn(_0x1f227c['baseUrl'],_0x6c72f4)?_0x1f227c[_0x215934(0x199)]:void 0x0;}function vn(_0x52147d,_0x596029){const _0x2ae4d6=_0x48b17b;try{return new URL(_0x52147d)[_0x2ae4d6(0x23e)]===new URL(_0x596029)[_0x2ae4d6(0x23e)];}catch{return!0x1;}}async function Sn(_0x568c96){const _0x230da2=_0x48b17b;q()&&(console[_0x230da2(0x1b2)]('Auth\x20comes\x20from\x20AUTH_TOKEN/TENANT_ID/ORG_ID\x20—\x20set\x20TENANT_ID\x20and\x20TENANT_SLUG\x20to\x20change\x20the\x20tenant.'),process[_0x230da2(0x270)](0x2));let _0x58e71c=await _0x149eb6();if(_0x58e71c||(console[_0x230da2(0x1b2)](An()),process['exit'](0x2)),_0x568c96[_0x230da2(0x26a)]()){let _0x3f4e5f=await _0x40f425(_0x58e71c,_0x568c96);_0x5cfaa1(_0x3f4e5f)||(console[_0x230da2(0x1b2)](_0x230da2(0x27e)+_0x4ca465()+';\x20the\x20saved\x20login\x20still\x20uses\x20'+_0x58e71c[_0x230da2(0x199)]+'.'),process[_0x230da2(0x270)](0x1)),console['log']('Tenant:\x20'+_0x3f4e5f[_0x230da2(0x199)]+'\x20('+_0x3f4e5f['tenantId']+_0x230da2(0x193)+_0x4ca465());return;}$n(await _0x55a2e7(_0x58e71c),_0x58e71c);}function An(){const _0xcdf612=_0x48b17b;if(_0x927dcd[_0xcdf612(0x104)](_0x4ca465()))return _0xcdf612(0xf9);let _0x1fc232=Q();return B(_0x1fc232)?'No\x20CLI\x20login\x20to\x20switch:\x20the\x20CLI\x20is\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20'+_0x1fc232+_0xcdf612(0x18e):_0xcdf612(0x256);}function $n(_0xf23251,_0x452b44){const _0x199692=_0x48b17b;let _0x4739ef=_0xf23251[_0x199692(0x143)](_0x191cc1=>_0x191cc1['id']===_0x452b44[_0x199692(0x13f)]?'*\x20'+_0x191cc1['name']+'\x20(current)':'\x20\x20'+_0x191cc1[_0x199692(0x2aa)]);process[_0x199692(0x1a5)][_0x199692(0xfc)]('Tenants\x20of\x20'+(_0x452b44[_0x199692(0x271)]??_0x452b44[_0x199692(0x1ae)])+':\x0a'+_0x4739ef['join']('\x0a')+'\x0a'),_0xf23251[_0x199692(0x298)]>0x1&&process[_0x199692(0x1a5)]['write'](_0x199692(0x179));}function En(_0x44303b){const _0x3bb580=_0x48b17b;return _0x44303b?.[_0x3bb580(0x2b7)]?.[_0x3bb580(0x15c)]===0x191||/401/[_0x3bb580(0x152)](String(_0x44303b?.['message']??''));}var f={'lastType':null,'quiet':!0x1},Ie=_0xa11145=>{const _0x15ea12=_0x48b17b;switch(_0xa11145[_0x15ea12(0x2d5)]){case _0x15ea12(0xf0):_0xa11145[_0x15ea12(0x2e2)]&&_0xa11145['sessionId']!==f['sessionId']&&(process[_0x15ea12(0x1e6)][_0x15ea12(0xfc)]('Session:\x20'+_0xa11145[_0x15ea12(0x2e2)]+_0x15ea12(0x29e)+_0xa11145[_0x15ea12(0x2e2)]+')\x0a'),f[_0x15ea12(0x2e2)]=_0xa11145['sessionId']);break;case _0x15ea12(0x1dc):_0xa11145[_0x15ea12(0x1ac)]&&_0xa11145[_0x15ea12(0x1ac)]!==f[_0x15ea12(0x1ac)]&&(f[_0x15ea12(0x2e4)]!==null&&process[_0x15ea12(0x1e6)][_0x15ea12(0xfc)]('\x0a'),process[_0x15ea12(0x1e6)][_0x15ea12(0xfc)]('Turn:\x20'+_0xa11145[_0x15ea12(0x1ac)]+_0x15ea12(0x2dc)+_0xa11145[_0x15ea12(0x2e2)]+'\x20--turn\x20'+_0xa11145[_0x15ea12(0x1ac)]+')\x0a'),f['turnId']=_0xa11145[_0x15ea12(0x1ac)],f[_0x15ea12(0x2e4)]=_0x15ea12(0x1dc));break;case _0x15ea12(0x1a3):_0xa11145[_0x15ea12(0x1c3)]&&!f[_0x15ea12(0x17b)]&&(f['lastType']!==_0x15ea12(0x1a3)&&process[_0x15ea12(0x1e6)][_0x15ea12(0xfc)](_0x15ea12(0x2b5)),process[_0x15ea12(0x1e6)][_0x15ea12(0xfc)](_0xa11145[_0x15ea12(0x1c3)]),f[_0x15ea12(0x2e4)]=_0x15ea12(0x1a3));break;case'tool_call':f['lastType']!==null&&process['stderr']['write']('\x0a'),process['stderr'][_0x15ea12(0xfc)](_0x15ea12(0x198)+(_0xa11145['toolName']??_0x15ea12(0x16d))+'\x0a'),f[_0x15ea12(0x2e4)]=_0x15ea12(0x285);break;case'message':_0xa11145[_0x15ea12(0x1c3)]&&(f[_0x15ea12(0x2e4)]!==_0x15ea12(0x215)&&f['lastType']!==null&&process[_0x15ea12(0x1a5)]['write']('\x0a'),process['stdout'][_0x15ea12(0xfc)](_0xa11145[_0x15ea12(0x1c3)]),f[_0x15ea12(0x2e4)]=_0x15ea12(0x215));break;case _0x15ea12(0x1b2):f[_0x15ea12(0x2e4)]!==null&&process['stderr'][_0x15ea12(0xfc)]('\x0a'),process[_0x15ea12(0x1e6)][_0x15ea12(0xfc)]('✗\x20'+(_0xa11145[_0x15ea12(0x1b2)]??'error')+'\x0a'),f[_0x15ea12(0x2e4)]=_0x15ea12(0x1b2);break;case'done':(f[_0x15ea12(0x2e4)]===_0x15ea12(0x215)||f[_0x15ea12(0x2e4)]===_0x15ea12(0x1a3))&&process['stdout'][_0x15ea12(0xfc)]('\x0a'),process[_0x15ea12(0x1e6)][_0x15ea12(0xfc)]('✓\x20Done\x0a'),f[_0x15ea12(0x2e4)]=_0x15ea12(0x2ae);break;}};function me(_0x163254,_0x52d3ea,_0x38d1a0,_0x3fc815){const _0x43e74a=_0x48b17b;let _0x404375=_0x163254[_0x43e74a(0x2d1)]||process.env.MODEL;return{'backendUrl':_0x38d1a0,'auth':_0x52d3ea,'enableComputerUse':!_0x163254[_0x43e74a(0x1f7)]&&!_0x163254[_0x43e74a(0x1af)],'autoSpawnInterop':!_0x163254['headless'],'enableConnections':!_0x163254[_0x43e74a(0x296)],'enableSecurity':!_0x163254['noSecurity'],'keepInteropAlive':_0x163254['keepAlive'],..._0x3fc815[_0x43e74a(0x122)]?{'enableBackgroundCommands':!0x1}:{},..._0x163254[_0x43e74a(0x209)]?{'enableMemory':!0x1}:{},..._0x163254[_0x43e74a(0x22c)]?{'enableTaskAutomation':!0x0}:{},..._0x163254[_0x43e74a(0x1e5)][_0x43e74a(0x298)]>0x0?{'preloadSkills':_0x163254[_0x43e74a(0x1e5)]}:{},..._0x404375?{'model':_0x404375}:{},..._0x163254[_0x43e74a(0x297)]?{'projectId':_0x163254[_0x43e74a(0x297)]}:{},..._0x163254[_0x43e74a(0x28a)]?{'vertical':_0x163254[_0x43e74a(0x28a)]}:{},..._0x163254['workingDirectory']?{'workingDirectory':_0x163254['workingDirectory']}:{},..._0x163254[_0x43e74a(0x15d)]?{'bundledSkillsPath':_0x163254[_0x43e74a(0x15d)]}:{},..._0x163254[_0x43e74a(0x280)]?{'effort':_0x163254[_0x43e74a(0x280)]}:{},..._0x163254['sessionId']?{'sessionId':_0x163254['sessionId']}:{},..._0x163254[_0x43e74a(0x266)]?{'verbose':!0x0}:{}};}async function In(_0x5ddbbe){const _0x4dcf74=_0x48b17b;let _0x1cedc4=_0x5ddbbe['outputFormat']!==_0x4dcf74(0x2b9),_0x56f124=_0x5ddbbe[_0x4dcf74(0x269)]===void 0x0?null:Ee(_0x5ddbbe[_0x4dcf74(0x269)],_0x4dcf74(0x1ef)),_0x40165b=!_0x1cedc4&&!_0x56f124&&!_0x5ddbbe['print']&&_0x5ddbbe[_0x4dcf74(0x250)]!=='-'&&!!process['stdin']['isTTY']&&!!process[_0x4dcf74(0x1a5)]['isTTY'],_0x2a533c=_0x40165b?_0x5ddbbe[_0x4dcf74(0x250)][_0x4dcf74(0x26a)]():await M(_0x5ddbbe[_0x4dcf74(0x250)],process[_0x4dcf74(0x161)]);if(!_0x40165b&&!_0x2a533c&&(console['error'](_0x4dcf74(0x1b8)),process[_0x4dcf74(0x270)](0x2)),!_0x1cedc4){await fe(_0x5ddbbe,_0x2a533c,_0x40165b,null,_0x56f124);return;}let _0x5e96aa=!0x1,_0x1509a4=_0x3a6a94=>{const _0x5a02a1=_0x4dcf74;_0x5e96aa=!0x0,P(_0x2f2f49(_0x3a6a94)),(_0x3a6a94['isError']||_0x3a6a94['structuredError'])&&(process[_0x5a02a1(0x12c)]=0x1);},_0x555dbd=Date[_0x4dcf74(0x252)]();try{await fe(_0x5ddbbe,_0x2a533c,!0x1,_0x1509a4,_0x56f124);}catch(_0x6a1ac4){if(_0x5e96aa)throw _0x6a1ac4;process['stderr'][_0x4dcf74(0xfc)]((_0x6a1ac4 instanceof Error?_0x6a1ac4[_0x4dcf74(0x2d8)]??_0x6a1ac4[_0x4dcf74(0x215)]:String(_0x6a1ac4))+'\x0a'),_0x1509a4(new _0x2050c9(_0x555dbd)[_0x4dcf74(0x279)]({'endedAtMs':Date[_0x4dcf74(0x252)](),'usage':[],'error':_0x6a1ac4}));}}async function fe(_0x19c329,_0x3a806c,_0x3880cb,_0x39c164,_0x40a7c5){const _0x502518=_0x48b17b;f={'lastType':null,'quiet':_0x19c329[_0x502518(0x17b)]};let _0x542419=new Set(),_0x3f3974,_0x43fbe2=_0x2eabc8=>{const _0x295ce0=_0x502518;(!_0x39c164||_0x2eabc8[_0x295ce0(0x2d5)]==='session_start'||_0x2eabc8[_0x295ce0(0x2d5)]===_0x295ce0(0x1dc))&&(_0x3f3974??Ie)(_0x2eabc8);for(let _0x26c650 of _0x542419)_0x26c650(_0x2eabc8);},_0x257002=await z(),_0xec74df=new _0x23e719();_0xec74df['onEvent'](_0x43fbe2);let _0x5c1646=_0x256176(_0x19c329[_0x502518(0x29b)],_0x257002,_0x19c329['backendUrl']);Y(_0x19c329[_0x502518(0x29b)],_0x19c329[_0x502518(0x27a)],_0x5c1646);let _0x2902d7={'input':null},_0x4f2e7a=_0x3880cb?ee(()=>_0x2902d7[_0x502518(0x18d)],_0x26cbf7=>{const _0x9ec934=_0x502518;process[_0x9ec934(0x1e6)][_0x9ec934(0xfc)](_0x26cbf7);}):null,_0x38171b=_0xe18ef3=>_0x4f2e7a?{..._0xe18ef3,'askUser':_0x4f2e7a}:_0xe18ef3,_0x1db9f8=_0x38171b(me(_0x19c329,_0x257002,_0x5c1646,{'oneTurn':!_0x3880cb})),_0x4d0185=!0x1,_0x3468ad=!0x1,_0x2f605f,_0x4dfc3b=()=>_0x2f605f??=_0xec74df['destroy'](),_0x44fcbb=()=>{const _0x1b2901=_0x502518;_0x3468ad&&process[_0x1b2901(0x270)](0x82),_0x3468ad=!0x0,process[_0x1b2901(0x1e6)]['write']('\x0aStopping…\x20(Ctrl+C\x20again\x20to\x20force\x20exit)\x0a'),_0x4d0185&&_0xec74df[_0x1b2901(0x207)]()[_0x1b2901(0x103)](_0x47f0d0=>console[_0x1b2901(0x1b2)](_0x47f0d0))['then'](_0x4dfc3b)[_0x1b2901(0x1c8)](()=>process['exit'](0x82),_0x14e2d5=>{const _0x44d6bb=_0x1b2901;console[_0x44d6bb(0x1b2)](_0x14e2d5),process[_0x44d6bb(0x270)](0x82);});};process['on'](_0x502518(0x24d),_0x44fcbb);let _0x15d62d=_0x19c329['attachments'],_0x299057=async _0x59a54c=>{const _0x501cd2=_0x502518;let _0x4db5dd=_0x15d62d;_0x15d62d=[];let _0xa36771=()=>_0xec74df[_0x501cd2(0x20d)](_0x59a54c,{'attachments':_0x4db5dd});try{return await _0xa36771();}catch(_0x30495f){if(_0x3468ad||!En(_0x30495f)||!process[_0x501cd2(0x161)][_0x501cd2(0x14f)]||_0x19c329[_0x501cd2(0x29b)]===_0x501cd2(0x229)||!(_0x19c329[_0x501cd2(0x29b)]||_0x257002['baseUrl']))throw _0x30495f;process['stderr'][_0x501cd2(0xfc)](_0x501cd2(0x1c2));let _0x3d406f=_0xec74df['getSessionId']()??_0x19c329[_0x501cd2(0x2e2)],_0x4a8701=await _0xd8ee15(_0x19c329[_0x501cd2(0x29b)]?{'env':_0x19c329['env'],'tenant':W(_0x257002,_0x502a33[_0x19c329['env']]),'skipEnvCheck':!0x0}:{'baseUrl':_0x257002[_0x501cd2(0x17a)],'tenant':_0x257002[_0x501cd2(0x199)],'skipEnvCheck':!0x0}),_0x35fada={'text':'','failed':!0x1,'sessionId':_0x3d406f};return _0x3468ad||(_0x4d0185=!0x1,await _0x4dfc3b(),_0x3468ad)?_0x35fada:(_0xec74df=new _0x23e719(),_0x2f605f=void 0x0,_0xec74df['onEvent'](_0x43fbe2),_0x257002=_0x4a8701,await _0xec74df['initialize']({..._0x38171b(me(_0x19c329,_0x257002,_0x5c1646,{'oneTurn':!_0x3880cb})),..._0x3d406f?{'sessionId':_0x3d406f}:{}}),_0x4d0185=!0x0,_0x3468ad?_0x35fada:_0xa36771());}};try{if(await _0xec74df[_0x502518(0x192)](_0x1db9f8),_0x4d0185=!0x0,_0x3468ad)return;if(_0x3880cb)await Dn({'prompt':_0x3a806c,'sendMessage':_0x299057,'onSigint':_0x44fcbb,'setAnswerInput':_0x26378e=>{const _0x162c5f=_0x502518;_0x2902d7[_0x162c5f(0x18d)]=_0x26378e;},'registerEventPrinter':_0x1925db=>(_0x3f3974=_0x1925db,()=>{_0x3f3974=void 0x0;})});else{if(_0x39c164||_0x40a7c5){let _0x52340d=_0x19c329[_0x502518(0x208)]===_0x502518(0x147)?_0x1eae8e=>P(_0x4fd204(_0x1eae8e)):()=>{},_0x35654e=await _0x1eb82e({'onEvent':_0x30b89c=>(_0x542419[_0x502518(0x176)](_0x30b89c),()=>{const _0x1dc6c0=_0x502518;_0x542419[_0x1dc6c0(0x153)](_0x30b89c);}),'sendMessage':_0x54b9dd=>_0x299057(_0x54b9dd),'getSessionId':()=>_0xec74df[_0x502518(0x17c)](),'getTurnUsageHistory':_0x54c91e=>_0xec74df[_0x502518(0x1b7)](_0x54c91e),'complete':_0x41b908=>_0xec74df[_0x502518(0x1d1)](_0x41b908)},_0x3a806c,void 0x0,_0x52340d,_0x40a7c5?{'outputSchema':_0x40a7c5}:void 0x0);_0x39c164?_0x39c164(_0x35654e):Tn(_0x35654e);}else await _0x299057(_0x3a806c);}}catch(_0x1101ed){if(!_0x3468ad)throw _0x1101ed;}finally{try{await _0x4dfc3b();}finally{process['off']('SIGINT',_0x44fcbb),_0x3468ad&&(process[_0x502518(0x12c)]=0x82);}}}function _0x1f02(_0x1cb925,_0x555b16){_0x1cb925=_0x1cb925-0xe9;const _0x21d9dd=_0x21d9();let _0x1f0299=_0x21d9dd[_0x1cb925];return _0x1f0299;}function Tn(_0x39197f){const _0x18e764=_0x48b17b;_0x39197f[_0x18e764(0x278)]?(console[_0x18e764(0x1b2)](_0x18e764(0x1df)+_0x39197f[_0x18e764(0x278)][_0x18e764(0x215)]),process[_0x18e764(0x12c)]=0x1):_0x39197f[_0x18e764(0x2cd)]?(console['error']('No\x20structured\x20output:\x20the\x20turn\x20failed\x20('+_0x39197f[_0x18e764(0x1b2)]+').'),process[_0x18e764(0x12c)]=0x1):process[_0x18e764(0x1a5)][_0x18e764(0xfc)](JSON[_0x18e764(0x1be)](_0x39197f['structured'],null,0x2)+'\x0a');}function xn(_0x5b7425,_0x4687f7){const _0x4e5df8=_0x48b17b;let _0x2288ee=process[_0x4e5df8(0x1a5)][_0x4e5df8(0xfc)][_0x4e5df8(0x2df)](process[_0x4e5df8(0x1a5)]),_0x64ba7f=!0x1;return process[_0x4e5df8(0x1a5)]['write']=(..._0x1ccd58)=>{if(!_0x64ba7f)return _0x2288ee(..._0x1ccd58);_0x5ebdff(_0x4687f7,0x0),_0x1a22d1(_0x4687f7,0x0);let _0x7a944d=_0x2288ee(..._0x1ccd58);return _0x5b7425['prompt'](!0x0),_0x7a944d;},{'show':()=>{_0x64ba7f=!0x0,_0x5b7425['prompt']();},'hide':()=>{_0x64ba7f=!0x1;},'erase':()=>{_0x64ba7f&&(_0x5ebdff(_0x4687f7,0x0),_0x1a22d1(_0x4687f7,0x0)),_0x64ba7f=!0x1;},'restore':()=>{const _0x21db19=_0x4e5df8;_0x64ba7f=!0x1,process[_0x21db19(0x1a5)][_0x21db19(0xfc)]=_0x2288ee;}};}async function Dn({prompt:_0x556bff,sendMessage:_0x50baa5,onSigint:_0x125ca7,setAnswerInput:_0x2fece5,registerEventPrinter:_0x1b6fd9}){const _0x185b8c=_0x48b17b;let _0x51bc00=_0x58d695({'input':process[_0x185b8c(0x161)],'output':process['stderr'],'terminal':!0x0,'prompt':'You>\x20'}),_0x2cf2dc=xn(_0x51bc00,process[_0x185b8c(0x1e6)]),_0x3b60c=[],_0x4fe332,_0x256de5,_0x2dfe87,_0x190508=!0x1,_0x2a4b6d=!0x1,_0x359171=!0x1,_0x2c065c=Promise[_0x185b8c(0x203)](),_0x932685,_0x354850=_0x1b6fd9(_0x1aa1f6=>{const _0x43b9cf=_0x185b8c;_0x1aa1f6[_0x43b9cf(0x2d5)]===_0x43b9cf(0xf0)&&(_0x2cf2dc['erase'](),_0x2c065c=new Promise(_0x31a385=>{_0x932685=_0x31a385;})),Ie(_0x1aa1f6),_0x1aa1f6[_0x43b9cf(0x2d5)]==='done'&&(_0x932685?.(),_0x932685=void 0x0,!_0x359171&&!_0x190508&&_0x2cf2dc[_0x43b9cf(0x2b0)]());}),_0x46c407=()=>{const _0x15874b=_0x185b8c;_0x2a4b6d=!0x0,_0x932685?.(),_0x125ca7(),_0x51bc00[_0x15874b(0x2c4)]();};_0x51bc00['on']('line',_0x409191=>{const _0x2975f6=_0x185b8c;_0x2dfe87?_0x2dfe87(_0x409191):_0x4fe332?_0x4fe332[_0x2975f6(0x1d4)](_0x409191):_0x256de5?_0x256de5(_0x409191):_0x3b60c[_0x2975f6(0x1d4)](_0x409191);}),_0x51bc00[_0x185b8c(0x14c)](_0x185b8c(0x2c4),()=>{const _0x561631=_0x185b8c;_0x190508=!0x0,_0x2cf2dc[_0x561631(0x24a)](),_0x4fe332&&!_0x2a4b6d&&_0x46c407(),_0x256de5?.(null);});let _0x278811=()=>_0x3b60c[_0x185b8c(0x298)]>0x0?Promise[_0x185b8c(0x203)](_0x3b60c[_0x185b8c(0x25b)]()):_0x190508?Promise[_0x185b8c(0x203)](null):new Promise(_0x1048ec=>{_0x256de5=_0x5a9d85=>{_0x256de5=void 0x0,_0x1048ec(_0x5a9d85);};});_0x2fece5({'readLine':(_0x33dfa0,_0x4b2b77)=>new Promise((_0x2cc239,_0x4af8cf)=>{const _0x46006f=_0x185b8c;if(_0x190508&&!_0x4fe332){_0x2cc239(null);return;}_0x4fe332??=[];let _0x409b20=_0x4fe332[_0x46006f(0x25b)]();if(_0x409b20!==void 0x0){_0x2cc239(_0x409b20);return;}let _0x147ae0=()=>{const _0x3b7a2c=_0x46006f;_0x2dfe87=void 0x0,_0x4b2b77[_0x3b7a2c(0x14d)](_0x3b7a2c(0x240),_0x23448e),_0x2cf2dc[_0x3b7a2c(0x24a)](),_0x51bc00[_0x3b7a2c(0x281)](_0x3b7a2c(0x251));},_0x23448e=()=>{_0x147ae0(),_0x4af8cf(new Error('The\x20turn\x20was\x20cancelled.'));};_0x4b2b77['addEventListener']('abort',_0x23448e,{'once':!0x0}),!_0x190508&&(_0x2dfe87=_0x31c93a=>{_0x147ae0(),_0x2cc239(_0x31c93a);},_0x51bc00[_0x46006f(0x281)](_0x33dfa0),_0x2cf2dc[_0x46006f(0x2b0)]());}),'endQuestions':()=>{const _0x484da2=_0x185b8c;_0x4fe332&&_0x3b60c[_0x484da2(0x1d4)](..._0x4fe332),_0x4fe332=void 0x0;}}),_0x51bc00['on'](_0x185b8c(0x24d),_0x46c407),process['stderr'][_0x185b8c(0xfc)]('Enter\x20sends\x20a\x20message.\x20/exit\x20or\x20EOF\x20exits;\x20Ctrl+C\x20stops\x20and\x20exits.\x0a');let _0x29b67b=async _0x182a12=>{_0x359171=!0x0;try{await _0x50baa5(_0x182a12);}finally{_0x359171=!0x1;}};try{if(_0x556bff&&await _0x29b67b(_0x556bff),_0x2a4b6d)return;!_0x190508&&!_0x932685&&_0x2cf2dc[_0x185b8c(0x2b0)]();for(let _0x4ea0ee=await _0x278811();_0x4ea0ee!==null&&(_0x2cf2dc[_0x185b8c(0x24a)](),!_0x2a4b6d);_0x4ea0ee=await _0x278811()){let _0x3bc54f=_0x4ea0ee['trim']();if(_0x3bc54f==='/exit')break;_0x3bc54f&&await _0x29b67b(_0x3bc54f),!_0x190508&&!_0x932685&&_0x2cf2dc[_0x185b8c(0x2b0)]();}for(;!_0x2a4b6d&&_0x932685;)await _0x2c065c;}finally{_0x2fece5(null),_0x354850(),_0x2cf2dc[_0x185b8c(0x11f)](),_0x51bc00[_0x185b8c(0x109)](_0x185b8c(0x24d),_0x46c407),_0x51bc00[_0x185b8c(0x2c4)]();}}async function Un(){const _0xe31590=_0x48b17b;let _0x1149dd=Pt(process['argv'][_0xe31590(0x186)](0x2));if(_0x1149dd[_0xe31590(0x208)]===_0xe31590(0x2b9)){await ge(_0x1149dd);return;}let _0x361cff=Ct();try{await ge(_0x1149dd);}finally{_0x361cff();}}async function ge(_0x5895e6){const _0x2d64b8=_0x48b17b;if(_0x5895e6['help']){Lt();return;}if(_0x5895e6['version']){console[_0x2d64b8(0x218)](Ot());return;}if(_0x5895e6[_0x2d64b8(0x22d)]===_0x2d64b8(0x107)){await bn(_0x5895e6);return;}if(_0x5895e6['subcommand']===_0x2d64b8(0x23f)){await Sn(_0x5895e6[_0x2d64b8(0x250)]);return;}if(_0x5895e6['subcommand']===_0x2d64b8(0x160)){await Bt();return;}if(_0x5895e6[_0x2d64b8(0x22d)]===_0x2d64b8(0x227)){await Ht(_0x5895e6);return;}if(_0x5895e6[_0x2d64b8(0x22d)]===_0x2d64b8(0x22b)){await Kt(_0x5895e6);return;}if(_0x5895e6[_0x2d64b8(0x22d)]===_0x2d64b8(0x1a2)){await en(_0x5895e6);return;}if(_0x5895e6[_0x2d64b8(0x22d)]==='sessions'){await qt(_0x5895e6);return;}if(_0x5895e6[_0x2d64b8(0x22d)]===_0x2d64b8(0x1e7)){await on(_0x5895e6);return;}if(_0x5895e6[_0x2d64b8(0x22d)]===_0x2d64b8(0x181)||_0x5895e6[_0x2d64b8(0x22d)]==='rerank'||_0x5895e6[_0x2d64b8(0x22d)]==='verify'){await ln(_0x5895e6,_0x5895e6[_0x2d64b8(0x22d)]);return;}if(_0x5895e6['subcommand']==='complete'){await dn(_0x5895e6);return;}if(_0x5895e6['subcommand']===_0x2d64b8(0x286)){await fn(_0x5895e6);return;}if(_0x5895e6[_0x2d64b8(0x22d)]===_0x2d64b8(0x105)){await hn(_0x5895e6);return;}if(_0x5895e6[_0x2d64b8(0x22d)]==='org-users'){await kn(_0x5895e6);return;}if(_0x5895e6[_0x2d64b8(0x22d)]==='host'){await _0x515a00(_0x5895e6['prompt'],{'runnerUrl':_0x5895e6[_0x2d64b8(0x273)],'backendUrl':_0x5895e6[_0x2d64b8(0x27a)],'interopPath':_0x5895e6[_0x2d64b8(0x1ce)],'workerId':_0x5895e6[_0x2d64b8(0x14a)]});return;}if(_0x5895e6[_0x2d64b8(0x173)]){await Wt();return;}await In(_0x5895e6);}var _n=process.env.NODE_ENV===_0x48b17b(0x152)||!!process.env.JEST_WORKER_ID;_n||Un()[_0x48b17b(0x103)](_0x359a15=>{const _0xcb9238=_0x48b17b;console[_0xcb9238(0x1b2)](_0x359a15['stack']||_0x359a15[_0xcb9238(0x215)]||_0x359a15),process['exit'](0x1);});export{Rt as CARTOGRAPHER_SKILLS,ie as EFFORT_TIERS,Ft as IMPLICIT_STDIN_IDLE_MS,me as buildInitOptions,Un as main,Pt as parseArgs,Ot as readCliVersion,M as resolvePrompt,Ct as routeStdoutToStderr,u as writeCommandResult};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uipath/delegate-cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.207.0-preview.20261124183129",
|
|
4
4
|
"description": "UiPath Delegate CLI - drive the Delegate agent from the terminal. Wraps @uipath/delegate-sdk; installing this package pulls the SDK in — no separate install.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "commonjs",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"publish:npmjs": "npm publish --@uipath:registry=https://registry.npmjs.org/ --access public --ignore-scripts"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@uipath/delegate-sdk": "1.
|
|
25
|
+
"@uipath/delegate-sdk": "1.207.0-preview.20261124183129"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@types/node": "^22.0.0",
|