@uipath/delegate-cli 1.206.0-preview.20261123172026 → 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 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` sits at the `--no-computer-use` level; adding `--headless` to it moves the whole invocation down a row.
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`. Add `--project` / `--working-dir` to say where the engagement's files live, and further `--preload-skill` flags for anything extra; a skill the preset already covers is **not** preloaded twice, whichever side of the flag it is named on. Pass `--headless` alongside it to drop interop as well (`--headless` always wins over the preset's `--no-computer-use`). |
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 command as above — --cartographer is shorthand for that whole flag set
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 _0x33fd0a=_0x4db5;(function(_0x3a3779,_0x1c7f85){const _0x13491e=_0x4db5,_0x3baf2b=_0x3a3779();while(!![]){try{const _0x137d6b=parseInt(_0x13491e(0xb1))/0x1*(parseInt(_0x13491e(0xe1))/0x2)+-parseInt(_0x13491e(0xf7))/0x3+parseInt(_0x13491e(0xb3))/0x4+parseInt(_0x13491e(0x190))/0x5*(parseInt(_0x13491e(0x25d))/0x6)+parseInt(_0x13491e(0x1da))/0x7+parseInt(_0x13491e(0x1d1))/0x8+-parseInt(_0x13491e(0x128))/0x9;if(_0x137d6b===_0x1c7f85)break;else _0x3baf2b['push'](_0x3baf2b['shift']());}catch(_0x1ea3b1){_0x3baf2b['push'](_0x3baf2b['shift']());}}}(_0x5919,0x5de7e));const __dirname=import.meta.dirname;import _0x3a9423 from'fs';import _0x5f19ae from'path';import{clearLine as _0xb6a034,createInterface as _0x25e2d2,cursorTo as _0x32947d}from'node:readline';import{isOnStepGrid as _0x4ca3dc}from'@uipath/delegate-sdk';var _=_0x33fd0a(0x132);function S(_0x131bcd){const _0x57f7b2=_0x33fd0a;return _0x131bcd[_0x57f7b2(0xba)](/\u001b\[[0-?]*[ -/]*[@-~]|\u001b\][^\u0007\u001b]*(\u0007|\u001b\\)?|\u001b./g,'')[_0x57f7b2(0xba)](/[\u0000-\u0008\u000b-\u001f\u007f-\u009f]/g,'');}function V(_0x4350d8){const _0x4ddc43=_0x33fd0a;return S(_0x4350d8['label']??(_0x4350d8[_0x4ddc43(0x1f9)]===_?_0x4ddc43(0xd8):_0x4350d8['id']));}function Te(_0x39c5f3,_0x40965d,_0x1aac8c){const _0x5d2b90=_0x33fd0a;let _0x1c74d1=[''+(_0x1aac8c>0x1?'['+_0x40965d+'/'+_0x1aac8c+']\x20':'')+S(_0x39c5f3[_0x5d2b90(0xc0)])+(_0x39c5f3[_0x5d2b90(0x93)]?_0x5d2b90(0x1f6):''),S(_0x39c5f3[_0x5d2b90(0x241)])];return _0x39c5f3['type']===_0x5d2b90(0x259)&&_0x39c5f3[_0x5d2b90(0x191)][_0x5d2b90(0x1ca)]((_0x260d87,_0x17b22a)=>{const _0x24bb39=_0x5d2b90;let _0x1e1647=_0x260d87['kind']===_?_0x24bb39(0x1c4):'',_0x22797e=_0x260d87['description']?_0x24bb39(0x1a6)+S(_0x260d87['description']):'';_0x1c74d1[_0x24bb39(0xfd)]('\x20\x20'+(_0x17b22a+0x1)+'.\x20'+V(_0x260d87)+_0x1e1647+_0x22797e);}),_0x1c74d1['join']('\x0a');}function X(_0x5029bd,_0x36160e){const _0x43b421=_0x33fd0a;let _0xb6945f=_0x5029bd['split'](/[\s,]+/)[_0x43b421(0x18c)](Boolean);if(_0xb6945f['length']===0x0)return null;let _0x332161=_0xb6945f['map'](_0x368123=>/^\d+$/['test'](_0x368123)?Number(_0x368123):NaN);return _0x332161[_0x43b421(0x18f)](_0x10a060=>!Number[_0x43b421(0x16c)](_0x10a060)||_0x10a060<0x1||_0x10a060>_0x36160e)?null:[...new Set(_0x332161)][_0x43b421(0x1e0)](_0x4df1b3=>_0x4df1b3-0x1);}function xe(_0x362b9f){const _0xc881a0=_0x33fd0a;return typeof _0x362b9f==_0xc881a0(0x11c)&&_0x362b9f!==null&&_0xc881a0(0x150)in _0x362b9f;}async function R(_0x5729c2,_0x13733b,_0x2f653d,_0x365728){const _0x4391ba=_0x33fd0a;for(;;){let _0x495190=(await _0x5729c2(_0x13733b))[_0x4391ba(0x23f)]();if(_0x495190==='')return;let _0x58e2e3=_0x365728(_0x495190);if(!xe(_0x58e2e3))return _0x58e2e3;_0x2f653d(_0x58e2e3[_0x4391ba(0x150)]+'\x0a');}}async function De(_0x3cb698,_0x3e8737,_0x2eaf74){const _0x391f55=_0x33fd0a;if(_0x3cb698[_0x391f55(0x191)][_0x391f55(0x16b)]===0x0||_0x3cb698[_0x391f55(0x191)][_0x391f55(0x1ac)](_0x19fd43=>_0x19fd43['kind']===_)){let _0x4a1d2c=(await _0x3e8737(_0x391f55(0x82)))[_0x391f55(0x23f)]();return _0x4a1d2c===''?void 0x0:{'text':_0x4a1d2c};}let _0x55a200=_0x3cb698[_0x391f55(0x191)]['findIndex'](_0x344277=>_0x344277[_0x391f55(0x1f9)]===_),_0x2490e1=_0x3cb698['multiSelect']?_0x391f55(0x15b):_0x391f55(0x168)+(_0x55a200>=0x0?'\x20or\x20your\x20own\x20answer':'')+_0x391f55(0x1fa),_0x39a09c=await R(_0x3e8737,_0x2490e1,_0x2eaf74,_0x44cf20=>{const _0x1e0d02=_0x391f55;let _0x3f2c6d=X(_0x44cf20,_0x3cb698['options']['length']);return _0x3f2c6d&&(_0x3cb698[_0x1e0d02(0x249)]||_0x3f2c6d[_0x1e0d02(0x16b)]===0x1)?_0x3f2c6d:!_0x3cb698[_0x1e0d02(0x249)]&&_0x55a200>=0x0?{'typed':_0x44cf20}:{'refused':_0x3cb698['multiSelect']?_0x1e0d02(0x11f)+_0x3cb698[_0x1e0d02(0x191)]['length']+'.':'Enter\x20one\x20number\x20from\x201\x20to\x20'+_0x3cb698[_0x1e0d02(0x191)][_0x1e0d02(0x16b)]+'.'};});if(_0x39a09c===void 0x0)return;if(!Array[_0x391f55(0x1d5)](_0x39a09c))return{'text':_0x39a09c[_0x391f55(0x78)]};let _0x40e314=_0x39a09c[_0x391f55(0x1e0)](_0x758cb7=>_0x3cb698[_0x391f55(0x191)][_0x758cb7]['id']),_0x1584e1=_0x40e314[_0x391f55(0x185)](_)?await R(_0x3e8737,V(_0x3cb698[_0x391f55(0x191)][_0x55a200])+':\x20',_0x2eaf74,_0x9f8c70=>_0x9f8c70):void 0x0;if(!(_0x40e314[_0x391f55(0x185)](_)&&_0x1584e1===void 0x0))return _0x3cb698[_0x391f55(0x249)]?{'optionIds':_0x40e314,..._0x1584e1!==void 0x0?{'text':_0x1584e1}:{}}:_0x1584e1!==void 0x0?{'text':_0x1584e1}:{'optionId':_0x40e314[0x0]};}async function Ue(_0x350673,_0x2ed990,_0x5804de){const _0x2c4c36=_0x33fd0a;let _0x40dedf={};for(let _0x33118f of _0x350673[_0x2c4c36(0x108)]){let _0x1e9141=_0x33118f['default']??_0x33118f[_0x2c4c36(0x21b)],_0x195d3d=_0x33118f[_0x2c4c36(0x14a)]??0x1,_0x512606=_0x33118f[_0x2c4c36(0xfc)]?'\x20'+S(_0x33118f[_0x2c4c36(0xfc)]):'',_0x4e0087=_0x2c4c36(0x1f2)+_0x33118f[_0x2c4c36(0x21b)]+'\x20to\x20'+_0x33118f[_0x2c4c36(0x1ab)]+(_0x195d3d!==0x1?_0x2c4c36(0x25c)+_0x195d3d:''),_0x143ac1=await R(_0x2ed990,S(_0x33118f[_0x2c4c36(0xbf)])+'\x20['+_0x33118f[_0x2c4c36(0x21b)]+'-'+_0x33118f[_0x2c4c36(0x1ab)]+_0x512606+_0x2c4c36(0xb0)+_0x1e9141+_0x2c4c36(0xbb),_0x5804de,_0x29b3b2=>{const _0x3b54d6=_0x2c4c36;let _0x4386aa=Number(_0x29b3b2);return Number[_0x3b54d6(0xd2)](_0x4386aa)&&_0x4386aa>=_0x33118f[_0x3b54d6(0x21b)]&&_0x4386aa<=_0x33118f[_0x3b54d6(0x1ab)]&&_0x4ca3dc(_0x4386aa,_0x33118f[_0x3b54d6(0x21b)],_0x195d3d)?_0x4386aa:{'refused':_0x3b54d6(0x1b5)+_0x4e0087+'.'};});_0x40dedf[_0x33118f['id']]=_0x143ac1??_0x1e9141;}return{'values':_0x40dedf};}async function Ne(_0x127404,_0x45f78f,_0x30af31){const _0x374377=_0x33fd0a;_0x30af31(_0x127404[_0x374377(0x9a)]['map']((_0x5d371b,_0xb1c6fa)=>'\x20\x20'+(_0xb1c6fa+0x1)+'.\x20'+S(_0x5d371b[_0x374377(0xbf)]))[_0x374377(0xc3)]('\x0a')+'\x0a');let _0x1a0304={};for(let _0x3cddc7 of _0x127404[_0x374377(0x239)]){let _0x5377ab=await R(_0x45f78f,S(_0x3cddc7['label'])+_0x374377(0xbd),_0x30af31,_0x1d3964=>{const _0x3ee89c=_0x374377;let _0x16514f=X(_0x1d3964,_0x127404[_0x3ee89c(0x9a)][_0x3ee89c(0x16b)]);return _0x16514f&&_0x16514f[_0x3ee89c(0x16b)]===0x1?_0x16514f[0x0]:{'refused':_0x3ee89c(0x229)+_0x127404[_0x3ee89c(0x9a)]['length']+'.'};});if(_0x5377ab===void 0x0)continue;let _0x2c1683=_0x127404[_0x374377(0x9a)][_0x5377ab],_0x43c878={};for(let _0x478c36 of _0x2c1683[_0x374377(0x15d)]??[]){let _0x5ebc3e='\x20\x20'+S(_0x478c36['label'])+(_0x478c36[_0x374377(0x93)]?_0x374377(0x1f6):'')+':\x20',_0x4a39e7=await R(_0x45f78f,_0x5ebc3e,_0x30af31,_0x2d7f6f=>_0x2d7f6f);for(;_0x4a39e7===void 0x0&&!_0x478c36['optional'];)_0x30af31(S(_0x478c36[_0x374377(0xbf)])+'\x20is\x20required.\x0a'),_0x4a39e7=await R(_0x45f78f,_0x5ebc3e,_0x30af31,_0xe82304=>_0xe82304);_0x4a39e7!==void 0x0&&(_0x43c878[_0x478c36['id']]=_0x4a39e7);}_0x1a0304[_0x3cddc7['id']]={'bucket':_0x2c1683['id'],...Object['keys'](_0x43c878)[_0x374377(0x16b)]>0x0?{'subFields':_0x43c878}:{}};}return Object[_0x374377(0xe2)](_0x1a0304)[_0x374377(0x16b)]>0x0?{'assignments':_0x1a0304}:void 0x0;}async function _e(_0x31b34f,_0x1af354,_0x246998){const _0x3938a1=_0x33fd0a;if(_0x31b34f[_0x3938a1(0x174)]===_0x3938a1(0x259))return De(_0x31b34f,_0x1af354,_0x246998);if(_0x31b34f['type']===_0x3938a1(0x245))return Ue(_0x31b34f,_0x1af354,_0x246998);if(_0x31b34f[_0x3938a1(0x174)]===_0x3938a1(0x1ce))return Ne(_0x31b34f,_0x1af354,_0x246998);let _0x172fb2=(await _0x1af354(_0x3938a1(0xbc)))[_0x3938a1(0x23f)]();return _0x172fb2===''?void 0x0:{'text':_0x172fb2};}function Z(_0x56051e,_0x466d11){return async _0x1916c9=>{const _0x18bd09=_0x4db5;let _0x166112=_0x56051e();if(!_0x166112)throw new Error('There\x20is\x20no\x20terminal\x20input\x20to\x20answer\x20from.');let _0x155c66=async _0x498f15=>{const _0x19307f=_0x4db5;if(_0x1916c9['signal'][_0x19307f(0x164)])throw new Error('The\x20turn\x20was\x20cancelled.');let _0x20beec=await _0x166112[_0x19307f(0x199)](_0x498f15,_0x1916c9['signal']);if(_0x20beec===null)throw new Error(_0x19307f(0x24c));return _0x20beec;};try{_0x466d11('\x0a'+(_0x1916c9[_0x18bd09(0x23b)]?S(_0x1916c9[_0x18bd09(0x23b)])+'\x0a':''));let _0x3abf93={};for(let [_0x22def4,_0x1377cd]of _0x1916c9[_0x18bd09(0x23e)]['entries']()){_0x466d11('\x0a'+Te(_0x1377cd,_0x22def4+0x1,_0x1916c9[_0x18bd09(0x23e)][_0x18bd09(0x16b)])+'\x0a');let _0x5860c2=await _e(_0x1377cd,_0x155c66,_0x466d11);_0x5860c2!==void 0x0&&(_0x3abf93[_0x1377cd['id']]=_0x5860c2);}return{'answers':_0x3abf93};}finally{_0x166112['endQuestions']();}};}import{BUSINESS_ANALYSIS_PRELOADED_SKILLS as _0x3cafb6,DelegateAgent as _0x35f6a6,cancelTurn as _0x32db90,InteropProcess as _0x6212d3,complete as _0x5dcf06,DEFAULT_MODEL as _0x2c55f4,createBackendClient as _0x554f67,evaluate as _0x3ca222,isCompletionRequestError as _0x1e2b63,isEvaluationRequestError as _0x37b2c4,isTranscriptionError as _0x248667,rerank as _0x35deef,transcribe as _0x48f07c,verify as _0x57e0a5,acceptDelegation as _0x168cc9,cancelDelegation as _0x3415b5,claimDelegation as _0x391077,completeDelegation as _0x9d4fda,createDelegation as _0x158f7f,deleteDelegation as _0x134980,dismissDelegation as _0x203e08,getSessionDelegations as _0x52c717,isDelegationError as _0x3e90a8,listDelegations as _0x1aaceb,listOrgUsers as _0x4ebe33,previewDelegation as _0x2be8e0,TurnResultCollector as _0x5d64a4,agentEventToJsonLine as _0x3a4190,describeBaseUrlRejection as _0x420784,getActivitySummary as _0x5d26b7,getAuthFilePath as _0x3f43b8,getByoWarnings as _0x338dac,getCartographerAllowance as _0x49a3a4,getDailyBreakdown as _0x5ddec2,getLicensingSummary as _0x50ded1,getMonthlySpending as _0x520cd0,isOutputFormat as _0x4e474d,isCloudBaseUrl as _0x53cefc,isSafeProjectFolderSegment as _0x2adb63,listModels as _0x4c40a7,listSessions as _0x5001c9,getSession as _0x33c036,renameSession as _0x1c2dff,deleteSession as _0x1e4a0c,deleteSessionTaskLog as _0x16d34f,forkSession as _0xa344c0,isBackendRequestError as _0x132bb6,MAX_SESSION_PAGE_SIZE as _0x787c7e,listTenants as _0x36ebf8,loadAndRefreshAuth as _0x194907,loadAndRefreshSdkLogin as _0x3fc910,parsePlatformBaseUrl as _0x26d4df,resolveBackendUrl as _0x19c0bc,runHealthCheck as _0xc2d6eb,runHostCommand as _0x3fd6b5,runLoginFlow as _0x2ebee3,runTurnForResult as _0x50847f,saveAuthData as _0x8b9633,switchTenant as _0x57b03c,toJsonLine as _0x3f82fb,ENV_TO_CLOUD as _0x222cf,OUTPUT_FORMATS as _0x1e4f19}from'@uipath/delegate-sdk';var Nt=[_0x33fd0a(0xf4),_0x33fd0a(0x1b2),_0x33fd0a(0xc1),_0x33fd0a(0x104),'logout',_0x33fd0a(0x1af),_0x33fd0a(0x13e),_0x33fd0a(0x209),_0x33fd0a(0x233),_0x33fd0a(0x12d),_0x33fd0a(0x127),'verify','complete',_0x33fd0a(0x98),_0x33fd0a(0x156),_0x33fd0a(0x20b)],se=['',_0x33fd0a(0xc1),_0x33fd0a(0x1af),_0x33fd0a(0x13e),_0x33fd0a(0x209),_0x33fd0a(0x233),_0x33fd0a(0x12d),_0x33fd0a(0x127),_0x33fd0a(0x1f3),_0x33fd0a(0x20f),_0x33fd0a(0x98),_0x33fd0a(0x156),_0x33fd0a(0x20b)],re=['low',_0x33fd0a(0x1e3),_0x33fd0a(0x17e),'xhigh',_0x33fd0a(0x1ab)],_t=_0x3cafb6;function w(_0x3e8b5d,_0x3a1abf,_0x45b6bc,_0x10d3b1){const _0x2ec5b3=_0x33fd0a;let _0x3eb028=_0x3e8b5d[_0x3a1abf];return(!_0x3eb028||_0x3eb028[_0x2ec5b3(0x16b)]>0x1&&_0x3eb028[_0x2ec5b3(0x103)]('-'))&&(console['error'](_0x45b6bc+_0x2ec5b3(0xb4)+_0x10d3b1+'.'),process[_0x2ec5b3(0x8a)](0x2)),_0x3eb028;}function J(_0x87e3d5,_0x1bc336,_0xef5840,_0x590570){const _0x30f314=_0x33fd0a;let _0x4c7ac9=w(_0x87e3d5,_0x1bc336,_0xef5840,'a\x20number'),_0x34e58a=Number(_0x4c7ac9);return(!/^\d+$/[_0x30f314(0x84)](_0x4c7ac9)||_0x34e58a<0x1||!Number[_0x30f314(0x262)](_0x34e58a)||_0x590570!==void 0x0&&_0x34e58a>_0x590570)&&(console[_0x30f314(0x1b8)](_0xef5840+_0x30f314(0x14d)+(_0x590570===void 0x0?_0x30f314(0xd1):'from\x201\x20to\x20'+_0x590570)+',\x20got\x20'+_0x4c7ac9+'.'),process[_0x30f314(0x8a)](0x2)),_0x34e58a;}function Rt(_0x4fc81b){const _0x2755ae=_0x33fd0a;let _0x5b549a={'subcommand':'','prompt':'','print':!0x1,'keepAlive':!0x1,'cleanup':!0x1,'headless':!0x1,'noComputerUse':!0x1,'cartographer':!0x1,'noConnections':!0x1,'noSecurity':!0x1,'noMemory':!0x1,'taskAutomation':!0x1,'quiet':!0x1,'verbose':!0x1,'outputFormat':'text','preloadSkills':[],'attachments':[],'skipEnvCheck':!0x1,'includeSubAgents':!0x1,'operands':[],'help':!0x1,'version':!0x1};Nt[_0x2755ae(0x185)](_0x4fc81b[0x0])&&(_0x5b549a[_0x2755ae(0x12f)]=_0x4fc81b[0x0],_0x4fc81b=_0x4fc81b[_0x2755ae(0xe4)](0x1));let _0x3fc284=[];for(let _0x45aad6=0x0;_0x45aad6<_0x4fc81b[_0x2755ae(0x16b)];_0x45aad6++){let _0x5af347=_0x4fc81b[_0x45aad6];switch(_0x5af347){case _0x2755ae(0x180):case'-p':_0x5b549a['print']=!0x0;break;case _0x2755ae(0x22c):_0x5b549a['keepAlive']=!0x0;break;case _0x2755ae(0x266):_0x5b549a[_0x2755ae(0x267)]=!0x0;break;case _0x2755ae(0xbe):_0x5b549a['headless']=!0x0;break;case'--no-computer-use':_0x5b549a[_0x2755ae(0x247)]=!0x0;break;case _0x2755ae(0x129):_0x5b549a[_0x2755ae(0x1a8)]=!0x0,_0x5b549a[_0x2755ae(0x247)]=!0x0,_0x5b549a[_0x2755ae(0x230)][_0x2755ae(0xfd)](..._t);break;case _0x2755ae(0x250):_0x5b549a[_0x2755ae(0x74)]=!0x0;break;case _0x2755ae(0x22a):_0x5b549a[_0x2755ae(0x7a)]=!0x0;break;case _0x2755ae(0xb2):_0x5b549a[_0x2755ae(0x1a4)]=!0x0;break;case _0x2755ae(0x264):_0x5b549a['taskAutomation']=!0x0;break;case _0x2755ae(0xff):case'-q':_0x5b549a[_0x2755ae(0x13d)]=!0x0;break;case'--verbose':_0x5b549a[_0x2755ae(0x154)]=!0x0;break;case'--backend':_0x5b549a[_0x2755ae(0x235)]=_0x4fc81b[++_0x45aad6];break;case _0x2755ae(0x73):_0x5b549a[_0x2755ae(0x1bd)]=_0x4fc81b[++_0x45aad6];break;case _0x2755ae(0xde):_0x5b549a[_0x2755ae(0x171)]=_0x4fc81b[++_0x45aad6];break;case _0x2755ae(0x160):_0x5b549a[_0x2755ae(0x109)]=_0x4fc81b[++_0x45aad6];break;case _0x2755ae(0x187):_0x5b549a[_0x2755ae(0x1b7)]=_0x4fc81b[++_0x45aad6];break;case _0x2755ae(0x15e):_0x5b549a[_0x2755ae(0x230)][_0x2755ae(0xfd)](w(_0x4fc81b,++_0x45aad6,_0x5af347,_0x2755ae(0x244)));break;case _0x2755ae(0x222):{let _0x3a1d8b=w(_0x4fc81b,++_0x45aad6,_0x5af347,'a\x20project\x20id');_0x2adb63(_0x3a1d8b)||(console[_0x2755ae(0x1b8)](_0x2755ae(0x9c)+_0x3a1d8b+_0x2755ae(0x218)),process[_0x2755ae(0x8a)](0x2)),_0x5b549a[_0x2755ae(0x148)]=_0x3a1d8b;break;}case _0x2755ae(0x18a):{let _0x4f1feb=w(_0x4fc81b,++_0x45aad6,_0x5af347,_0x2755ae(0xd9)+_0x1e4f19[_0x2755ae(0xc3)]('\x20|\x20')+')');_0x4e474d(_0x4f1feb)||(console[_0x2755ae(0x1b8)](_0x2755ae(0x20c)+_0x4f1feb+_0x2755ae(0x9d)+_0x1e4f19['join'](_0x2755ae(0x75))+'.'),process[_0x2755ae(0x8a)](0x2)),_0x5b549a[_0x2755ae(0x210)]=_0x4f1feb;break;}case _0x2755ae(0xce):_0x5b549a[_0x2755ae(0xd0)]=w(_0x4fc81b,++_0x45aad6,_0x5af347,_0x2755ae(0xdc));break;case _0x2755ae(0x112):_0x5b549a[_0x2755ae(0xad)]=J(_0x4fc81b,++_0x45aad6,_0x5af347);break;case'--limit':_0x5b549a[_0x2755ae(0x238)]=J(_0x4fc81b,++_0x45aad6,_0x5af347,_0x787c7e);break;case'--include-subagents':_0x5b549a[_0x2755ae(0x215)]=!0x0;break;case _0x2755ae(0x155):_0x5b549a[_0x2755ae(0x16d)]=w(_0x4fc81b,++_0x45aad6,_0x5af347,'a\x20JSON\x20schema\x20file');break;case'--attach':{let _0x303db0=_0x5f19ae[_0x2755ae(0x1df)](process['cwd'](),w(_0x4fc81b,++_0x45aad6,_0x5af347,_0x2755ae(0x1e9)));_0x3a9423[_0x2755ae(0x12a)](_0x303db0)||(console['error'](_0x2755ae(0x95)+_0x303db0),process[_0x2755ae(0x8a)](0x2)),_0x5b549a[_0x2755ae(0x1ad)][_0x2755ae(0xfd)](_0x303db0);break;}case _0x2755ae(0xaf):_0x5b549a['turnId']=w(_0x4fc81b,++_0x45aad6,_0x5af347,_0x2755ae(0x179));break;case _0x2755ae(0x12e):_0x5b549a[_0x2755ae(0xef)]=w(_0x4fc81b,++_0x45aad6,_0x5af347,_0x2755ae(0x169));break;case _0x2755ae(0xc9):_0x5b549a['contextSummary']=w(_0x4fc81b,++_0x45aad6,_0x5af347,_0x2755ae(0x153));break;case _0x2755ae(0xf6):_0x5b549a['days']=J(_0x4fc81b,++_0x45aad6,_0x5af347,0x16d);break;case'--working-dir':_0x5b549a['workingDirectory']=_0x5f19ae['resolve'](process['cwd'](),w(_0x4fc81b,++_0x45aad6,_0x5af347,_0x2755ae(0x91)));break;case _0x2755ae(0x1dc):_0x5b549a[_0x2755ae(0x1f4)]=_0x5f19ae[_0x2755ae(0x1df)](process[_0x2755ae(0xcc)](),w(_0x4fc81b,++_0x45aad6,_0x5af347,_0x2755ae(0x91)));break;case _0x2755ae(0x10d):{let _0x203456=w(_0x4fc81b,++_0x45aad6,_0x5af347,_0x2755ae(0x25f));re['includes'](_0x203456)||(console[_0x2755ae(0x1b8)](_0x2755ae(0x11d)+_0x203456+_0x2755ae(0x9d)+re[_0x2755ae(0xc3)](_0x2755ae(0x75))+'.'),process[_0x2755ae(0x8a)](0x2)),_0x5b549a[_0x2755ae(0xfe)]=_0x203456;break;}case _0x2755ae(0x151):{let _0x1f5ac0=_0x4fc81b[++_0x45aad6];(!_0x1f5ac0||_0x1f5ac0[_0x2755ae(0x103)]('--'))&&(console[_0x2755ae(0x1b8)](_0x2755ae(0xec)),process['exit'](0x2)),_0x5b549a[_0x2755ae(0x1b2)]=_0x1f5ac0;break;}case'--env':{let _0x2776e9=_0x4fc81b[++_0x45aad6];[_0x2755ae(0x23a),'staging','production',_0x2755ae(0x243)][_0x2755ae(0x185)](_0x2776e9)||(console['error'](_0x2755ae(0x10f)+_0x2776e9+_0x2755ae(0x15a)),process[_0x2755ae(0x8a)](0x2)),_0x5b549a[_0x2755ae(0xa9)]=_0x2776e9;break;}case'--url':case'--authority':{let _0x1cd88c=w(_0x4fc81b,++_0x45aad6,_0x5af347,_0x2755ae(0x92)),_0x4be717=_0x26d4df(_0x1cd88c);if(_0x4be717['ok']===!0x1){console['error'](_0x420784(_0x1cd88c,_0x4be717['rejection'])),process[_0x2755ae(0x8a)](0x2);break;}_0x5b549a['url']=_0x4be717[_0x2755ae(0x12c)];break;}case _0x2755ae(0x167):_0x5b549a[_0x2755ae(0x248)]=!0x0;break;case'-h':case _0x2755ae(0x1f0):_0x5b549a[_0x2755ae(0x1a2)]=!0x0;break;case'-v':case _0x2755ae(0x17f):_0x5b549a['version']=!0x0;break;default:_0x5af347['startsWith']('--')&&(console['error'](_0x2755ae(0x1e4)+_0x5af347),process[_0x2755ae(0x8a)](0x2)),_0x3fc284[_0x2755ae(0xfd)](_0x5af347);}}return _0x5b549a['tenant']!==void 0x0&&_0x5b549a[_0x2755ae(0x12f)]!==_0x2755ae(0xf4)&&(console[_0x2755ae(0x1b8)](_0x2755ae(0x170)),process[_0x2755ae(0x8a)](0x2)),_0x5b549a[_0x2755ae(0x217)]!==void 0x0&&_0x5b549a[_0x2755ae(0xa9)]!==void 0x0&&(console[_0x2755ae(0x1b8)]('Pass\x20either\x20--env\x20(a\x20named\x20cloud)\x20or\x20--url\x20(any\x20other\x20deployment),\x20not\x20both.'),process['exit'](0x2)),_0x5b549a[_0x2755ae(0x217)]!==void 0x0&&_0x5b549a[_0x2755ae(0x12f)]!==_0x2755ae(0xf4)&&(console[_0x2755ae(0x1b8)](_0x2755ae(0x1d8)),process[_0x2755ae(0x8a)](0x2)),_0x5b549a[_0x2755ae(0x253)]!==void 0x0&&_0x5b549a[_0x2755ae(0x12f)]!=='usage'&&(console[_0x2755ae(0x1b8)](_0x2755ae(0x7e)),process[_0x2755ae(0x8a)](0x2)),_0x5b549a[_0x2755ae(0x16d)]!==void 0x0&&(_0x5b549a[_0x2755ae(0x12f)]!==_0x2755ae(0x20f)&&_0x5b549a[_0x2755ae(0x12f)]!==''||_0x5b549a[_0x2755ae(0x267)])&&(console[_0x2755ae(0x1b8)](_0x2755ae(0x99)),process[_0x2755ae(0x8a)](0x2)),_0x5b549a['attachments'][_0x2755ae(0x16b)]>0x0&&(_0x5b549a[_0x2755ae(0x12f)]!==''||_0x5b549a[_0x2755ae(0x267)])&&(console[_0x2755ae(0x1b8)]('--attach\x20applies\x20to\x20prompts\x20only.'),process['exit'](0x2)),_0x5b549a[_0x2755ae(0xaa)]&&(_0x5b549a['subcommand']!==''||_0x5b549a[_0x2755ae(0x267)])&&(console['error'](_0x2755ae(0x19e)),process[_0x2755ae(0x8a)](0x2)),_0x5b549a[_0x2755ae(0xaa)]&&(_0x5b549a[_0x2755ae(0x1dd)]||_0x5b549a['noComputerUse'])&&(console[_0x2755ae(0x1b8)](_0x2755ae(0xcf)),process[_0x2755ae(0x8a)](0x2)),_0x5b549a[_0x2755ae(0x248)]&&_0x5b549a[_0x2755ae(0x12f)]!==_0x2755ae(0xf4)&&(console['error'](_0x2755ae(0x260)),process[_0x2755ae(0x8a)](0x2)),_0x5b549a[_0x2755ae(0x210)]!==_0x2755ae(0x259)&&!se[_0x2755ae(0x185)](_0x5b549a[_0x2755ae(0x12f)])&&(console[_0x2755ae(0x1b8)](_0x2755ae(0x252)+_0x5b549a[_0x2755ae(0x210)]+_0x2755ae(0x25e)+se['filter'](Boolean)[_0x2755ae(0xc3)](',\x20')+'.'),process['exit'](0x2)),(_0x5b549a['page']!==void 0x0||_0x5b549a[_0x2755ae(0x238)]!==void 0x0||_0x5b549a[_0x2755ae(0x215)])&&_0x5b549a[_0x2755ae(0x12f)]!==_0x2755ae(0x209)&&(console[_0x2755ae(0x1b8)](_0x2755ae(0x143)),process['exit'](0x2)),(_0x5b549a[_0x2755ae(0xef)]!==void 0x0||_0x5b549a[_0x2755ae(0x25a)]!==void 0x0)&&_0x5b549a[_0x2755ae(0x12f)]!==_0x2755ae(0x156)&&(console['error'](_0x2755ae(0x1c6)),process[_0x2755ae(0x8a)](0x2)),_0x5b549a[_0x2755ae(0x216)]!==void 0x0&&_0x5b549a[_0x2755ae(0x12f)]!==_0x2755ae(0x209)&&(console[_0x2755ae(0x1b8)](_0x2755ae(0x23c)),process[_0x2755ae(0x8a)](0x2)),_0x5b549a['preloadSkills']=[...new Set(_0x5b549a[_0x2755ae(0x230)])],_0x5b549a[_0x2755ae(0xb7)]=_0x3fc284,_0x5b549a['prompt']=_0x3fc284[_0x2755ae(0xc3)]('\x20'),_0x5b549a;}var P=_0x38162e=>{const _0x330daa=_0x33fd0a;process[_0x330daa(0xf2)][_0x330daa(0x203)](_0x38162e);};function Pt(){const _0x28d44c=_0x33fd0a;let _0x2aa914=process[_0x28d44c(0xf2)][_0x28d44c(0x203)],_0x434207=_0x2aa914[_0x28d44c(0x182)](process['stdout']),_0x5dd06c=P;return P=_0x2811cb=>{_0x434207(_0x2811cb);},process[_0x28d44c(0xf2)]['write']=(..._0x53286)=>process['stderr']['write'](..._0x53286),()=>{const _0xd1683e=_0x28d44c;process[_0xd1683e(0xf2)][_0xd1683e(0x203)]=_0x2aa914,P=_0x5dd06c;};}function u(_0x347c85,_0x5c41cf,_0x58afd4){const _0x437eb3=_0x33fd0a;if(_0x347c85['outputFormat']===_0x437eb3(0x259)){_0x58afd4(_0x5c41cf);return;}P(_0x3f82fb(_0x5c41cf));}function Ct(){const _0x5b4544=_0x33fd0a;let _0x1f9c29=_0x5b4544(0x176)[_0x5b4544(0x23f)]();console[_0x5b4544(0x1b4)](_0x1f9c29);}function Lt(){const _0x2496c0=_0x33fd0a;try{return JSON['parse'](_0x3a9423['readFileSync'](_0x5f19ae[_0x2496c0(0xc3)](__dirname,'..','package.json'),_0x2496c0(0x1d4)))[_0x2496c0(0x196)]||'unknown';}catch{return _0x2496c0(0x226);}}var Ot=0x7d0;async function ie(_0x599fdc,_0x275f08){const _0x156ef0=_0x33fd0a;let _0x5df6ed=_0x275f08?[_0x275f08]:[];for await(let _0x3d8e51 of _0x599fdc)_0x5df6ed[_0x156ef0(0xfd)](Buffer[_0x156ef0(0x102)](_0x3d8e51));return Buffer[_0x156ef0(0xe5)](_0x5df6ed)['toString']('utf-8')[_0x156ef0(0x23f)]();}function Ft(_0x2581af,_0xb29b3f){return new Promise(_0x3ecff1=>{const _0x2afa47=_0x4db5;let _0x6d942=_0xa2e3db=>{const _0x4a67d7=_0x4db5;clearTimeout(_0x2528b8),_0x2581af[_0x4a67d7(0x1d7)](_0x4a67d7(0x120),_0x15c159),_0x2581af['off'](_0x4a67d7(0xe8),_0x44148b),_0x2581af['off'](_0x4a67d7(0x1b8),_0x44148b),_0x2581af[_0x4a67d7(0x188)](),_0x3ecff1(_0xa2e3db);},_0x15c159=_0x5f01f4=>_0x6d942(Buffer[_0x2afa47(0x102)](_0x5f01f4)),_0x44148b=()=>_0x6d942(null),_0x2528b8=setTimeout(()=>_0x6d942(null),_0xb29b3f);_0x2581af['on'](_0x2afa47(0x120),_0x15c159),_0x2581af['on'](_0x2afa47(0xe8),_0x44148b),_0x2581af['on']('error',_0x44148b),_0x2581af[_0x2afa47(0xf9)]();});}async function j(_0x56bedd,_0x485503,_0xc7c588=Ot){const _0x28c303=_0x33fd0a;let _0x218199=_0x56bedd==='-';if(!_0x218199&&_0x56bedd)return _0x56bedd;if(!_0x218199&&_0x485503[_0x28c303(0x9f)])return'';if(_0x218199)return ie(_0x485503,null);let _0x111e30=await Ft(_0x485503,_0xc7c588);return _0x111e30?ie(_0x485503,_0x111e30):'';}function _0x5919(){const _0x5b0244=['5inxoMg','options','stringify','period_days','Model\x20','--session\x20applies\x20to\x20the\x20`delegate-cli\x20usage`\x20summary\x20only.','version','--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`delegate-cli\x20sessions\x20[list]`\x20only.','Bearer\x20','readLine','completion_tokens','spawn','catch','index','--task-automation\x20applies\x20to\x20prompts\x20only.','workingDirectory','From\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','padStart','help','UIPATH_BASE_URL\x20is\x20unusable.\x20','noMemory','tool_call','\x20-\x20','No\x20CLI\x20login\x20found\x20—\x20nothing\x20to\x20remove.','cartographer','\x20(in\x20','transcribe:\x20cannot\x20read\x20','max','every','attachments','origin','whoami','restore','structuredError','tenant','\x20<file.json>,\x20or\x20-\x20to\x20read\x20stdin.','log','Enter\x20a\x20number\x20','message','workerId','error','\x0a⚠️\x20\x20Auth\x20expired.\x20Opening\x20browser\x20to\x20re-login…\x0a','deleted','byoWarning','now','model','Session:\x20\x20\x20\x20\x20\x20','\x20tokens\x0a','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','environment\x20variables\x20(AUTH_TOKEN/TENANT_ID/ORG_ID)','\x20this\x20month','then','\x20(type\x20your\x20own)','No\x20delegations.\x0a','--to\x20and\x20--summary\x20apply\x20to\x20`delegate-cli\x20delegations\x20create`\x20only.','removeEventListener','delegationId','exitCode','forEach','delegations\x20create\x20--session\x20<id>\x20[--to\x20<email|name>]\x20[--summary\x20<text>]\x20\x22<task>\x22|-','No\x20structured\x20output:\x20the\x20turn\x20failed\x20(','\x20to\x20','bucket','Last\x20','skip','5944600PlCwkm','\x20—\x20sign\x20out\x20in\x20the\x20Delegate\x20app\x20to\x20clear\x20that.','name','utf-8','isArray','shift','off','--url\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Other\x20commands\x20follow\x20the\x20saved\x20login,\x20or\x20--backend\x20<url>.','toISOString','4668741ZLdJzP','total_completion_tokens','--skills-path','headless','all','resolve','map','alreadyAccepted','probability\x20','medium','Unknown\x20flag:\x20','displayName','Unknown\x20usage\x20view:\x20','\x20completion','the\x20request','a\x20file\x20path','model_version','Forked\x20','delete','No\x20usage\x20in\x20the\x20last\x20','round','total_sessions','--help','SIGINT','from\x20','verify','bundledSkillsPath','stream-json','\x20(optional)','Tokens:\x20','Cost:\x20\x20\x20$','kind','\x20(Enter\x20to\x20skip):\x20','hide','readFileSync','results','Usage:\x20delegate-cli\x20sessions\x20[list]\x20[--page\x20N]\x20[--limit\x20N]\x20[--include-subagents]','\x20of\x20a\x20$','✓\x20Done\x0a','delegate-cli','\x0a🤔\x20','write','result','No\x20CLI\x20login\x20found.\x20Note:\x20the\x20CLI\x20is\x20currently\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20','\x0aAccept\x20one\x20with:\x20delegate-cli\x20delegations\x20accept\x20<id>\x0a','Could\x20not\x20check\x20BYO\x20model\x20warnings:\x20','structured','sessions','),\x20','org-users','Invalid\x20--output-format:\x20','tenantId','\x20PU','complete','outputFormat','monthly_spend_usd','email','description','period_end','includeSubAgents','turnId','url','\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).','\x20delegation\x20','model_id','min','ASSIGNEE','Licensing:\x20\x20\x20\x20','argv','ID\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','lastType','erase','--project','\x20cap','Cancel\x20requested\x20for\x20turn\x20','daily_usage','unknown','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.','probability','Enter\x20one\x20number\x20from\x201\x20to\x20','--no-security','pct_used','--keep-alive','delegations\x20complete\x20<delegation-id>\x20\x22<answer>\x22|-','\x20of\x20session\x20','Token:\x20\x20\x20\x20\x20\x20\x20\x20expires\x20','preloadSkills','--to,\x20--summary\x20and\x20--session\x20apply\x20to\x20`delegate-cli\x20delegations\x20create`\x20only.','delegations\x20list\x20<backend-project-id>','usage','dismissed','backendUrl','\x20token\x20units','assignedUserEmail','limit','items','alpha','intro','--turn\x20applies\x20to\x20`delegate-cli\x20sessions\x20cancel`\x20only.','Owner\x20\x20\x20\x20\x20\x20\x20\x20\x20','questions','trim','complete\x20needs\x20--json-schema\x20<file>:\x20delegate-cli\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22.','question','monthly_limit_usd','localhost','a\x20skill\x20name','numeric','Licensing:\x20\x20\x20\x20no\x20licensing\x20quota\x20applies','noComputerUse','skipEnvCheck','multiSelect','\x20\x20\x20\x20Not\x20available\x20on\x20this\x20plan','\x20into\x20','Input\x20closed\x20before\x20the\x20question\x20was\x20answered.','toFixed','\x20(cancel\x20with:\x20delegate-cli\x20sessions\x20cancel\x20',').\x0a','--no-connections','a\x20colleague','--output-format\x20','days','--env\x20localhost\x20has\x20no\x20OAuth\x20flow;\x20pick\x20alpha,\x20staging,\x20or\x20production.','🔧\x20','\x20\x20from\x20','\x0aStopping…\x20(Ctrl+C\x20again\x20to\x20force\x20exit)\x0a','\x20days:\x20','text','contextSummary','entries','\x20in\x20steps\x20of\x20','678138DuWnlM','\x20applies\x20to\x20prompts\x20and\x20to\x20these\x20commands\x20only:\x20','an\x20effort\x20tier','--skip-env-check\x20applies\x20to\x20`delegate-cli\x20login`\x20only.','organizationId','isSafeInteger','Created\x20delegation\x20','--task-automation','\x20sessions\x20on\x20','--cleanup','cleanup','\x20\x20TITLE\x0a','list','%\x20of\x20','title','UPDATED','create','--model','noConnections','\x20|\x20','toUpperCase','Removed\x20','typed','Switch\x20with:\x20delegate-cli\x20tenant\x20<name>\x0a','noSecurity','daily','activity','mode','--days\x20applies\x20to\x20`delegate-cli\x20usage\x20activity|daily`\x20only.','Use:\x20delegate-cli\x20delegations\x20','done','deployment','Your\x20answer\x20(Enter\x20to\x20skip):\x20','.\x20Use\x20`delegate-cli\x20usage`,\x20`usage\x20activity`\x20or\x20`usage\x20daily`.','test','\x0aUse\x20with:\x20delegate-cli\x20--model\x20<id>\x20\x22<prompt>\x22\x0a','sourceTitle','\x20\x22<answer>\x22\x0a','Organization\x20\x20','No\x20answers\x20awaiting\x20acceptance.\x0a','exit','\x20<id>','\x20(Delegate\x20desktop\x20app\x20fallback)','destroy','status','cancel','\x20<title>','a\x20directory\x20path','a\x20deployment\x20URL,\x20e.g.\x20https://automationsuite.contoso.com','optional','setPrompt','--attach:\x20no\x20such\x20file\x20or\x20folder:\x20','deepLink','Renamed\x20','transcribe','--json-schema\x20applies\x20to\x20prompts\x20and\x20to\x20`delegate-cli\x20complete`\x20only.','buckets','\x20\x20(sub-agent\x20of\x20','Invalid\x20--project:\x20\x22','.\x20Use\x20','detail','isTTY','self-hosted\x20(Automation\x20Suite\x20/\x20Dedicated)','[saved\x20login]\x20Backend\x20URL:\x20','answers',',\x20or\x20holds\x20no\x20message\x20','choice','session_start','accessToken','\x20--turn\x20','\x20is\x20not\x20valid\x20JSON\x20(','env','taskAutomation','\x20not\x20found,\x20has\x20no\x20messages','parse','page','No\x20one\x20matches\x20\x22','--turn',']\x20(Enter\x20for\x20','1TNeekI','--no-memory','1064936JGFxWP','\x20requires\x20',';\x20the\x20saved\x20login\x20still\x20uses\x20','\x20not\x20found.','operands','Tenants\x20of\x20','add','replace','):\x20','Your\x20answer,\x20as\x20text\x20(the\x20CLI\x20attaches\x20no\x20files;\x20Enter\x20to\x20skip):\x20',':\x20bucket\x20number\x20(Enter\x20to\x20leave\x20out):\x20','--headless','label','header','models','score\x20','join','\x20PU\x20beyond\x20quota','rename','delegation','\x20token\x20units)','\x20(estimated\x20$','--summary','getSessionId','tokenExpiresAt','cwd','\x27\x20is\x20empty.','--session','--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.','sessionId','1\x20or\x20more','isFinite','No\x20turn\x20','.\x20Share:\x20','Accepted','stop','\x20active\x20days','Something\x20else','a\x20format\x20(','stderr','Delegation\x20\x20\x20\x20','a\x20session\x20id','\x20\x22<prompt>\x22\x0a','--runner-url','turn_start','show','239452PpRloV','keys','The\x20saved\x20CLI\x20login\x20could\x20not\x20be\x20refreshed.\x20Run\x20`delegate-cli\x20login`\x20again.','slice','concat','\x20must\x20be\x20a\x20JSON\x20object.',']\x20Backend\x20URL:\x20','end','string','content','No\x20models\x20available\x20for\x20this\x20product/tenant.\x0a','--tenant\x20requires\x20a\x20tenant\x20name.','file','the\x20JSON\x20schema','delegateTo','floor','auth','stdout','\x20(confidence\x20','login','orgLogicalName','--days','226623fBXsVj','Enter\x20sends\x20a\x20message.\x20/exit\x20or\x20EOF\x20exits;\x20Ctrl+C\x20stops\x20and\x20exits.\x0a','resume','\x22.\x0a','pendingResults','unit','push','effort','--quiet','session_consumed_pu','Unknown\x20sessions\x20action:\x20','from','startsWith','host','Cartographer:\x20','delegations\x20pending\x20<session-id>','\x20min)','fields','interopPath','\x20\x22<prompt>\x22\x0aAnswer\x20with:\x20delegate-cli\x20delegations\x20complete\x20','Continue\x20it\x20with:\x20delegate-cli\x20--session\x20','padEnd','--effort','abort','Invalid\x20--env:\x20','expiresAt','updatedAt','--page','\x20\x20(input\x20#','The\x20turn\x20was\x20cancelled.','Session\x20','[env=','initialize','score','claim','assignedUser','alreadyCompleted','object','Invalid\x20--effort:\x20','close','Enter\x20numbers\x20from\x201\x20to\x20','data','Task\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Unknown\x20delegations\x20action:\x20','total_token_units','Spending:\x20\x20\x20\x20\x20$','task','unknown\x20slug','rerank','13039578oPRSAE','--cartographer','existsSync','Session\x20\x20\x20\x20\x20\x20\x20','baseUrl','evaluate','--to','subcommand','rmSync','sendMessage','userinput','Organization:\x20','active_days','extra_pool_consumed_pu','Already\x20answered','stdin','userId','\x20in\x20progress\x20on\x20session\x20','\x20\x20\x20\x20BYO\x20warning:\x20','sourceUserEmail','Deleted\x20session\x20','quiet','check','prompt','logout','Tenant:\x20','/exit','--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`delegate-cli\x20sessions`\x20only.','thinking','parentSessionId','\x0aAvailable\x20models\x20(','cancelled','projectId','input','step','pending','Delegated\x20','\x20must\x20be\x20a\x20whole\x20number\x20','AUTH_TOKEN_FILE\x20\x27','Usage:\x20delegate-cli\x20sessions\x20fork\x20<id>\x20[<message-id>]','refused','--tenant','isError','a\x20briefing\x20text','verbose','--json-schema','delegations','Usage:\x20delegate-cli\x20sessions\x20cancel\x20<session-id>\x20--turn\x20<turn-id>','estimated_cost_usd','Claimed\x20from\x20delegation\x20','.\x20Use\x20alpha\x20|\x20staging\x20|\x20production\x20|\x20localhost.','Numbers,\x20separated\x20by\x20commas\x20(Enter\x20to\x20skip):\x20','limit_enabled','subFields','--preload-skill','Interop\x20stopped\x20(if\x20it\x20was\x20running).','--interop','Usage:\x20delegate-cli\x20','delegations\x20show\x20<delegation-id|delegate://delegation/…>','stack','aborted','):\x0a\x0a','confidence','--skip-env-check','Number','an\x20email\x20address\x20or\x20name','You>\x20','length','isInteger','jsonSchemaPath','\x20(resets\x20','--days\x20applies\x20to\x20`delegate-cli\x20usage\x20activity|daily`;\x20the\x20summary\x20covers\x20the\x20current\x20month.','--tenant\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Switch\x20tenants\x20with:\x20delegate-cli\x20tenant\x20<name>','runnerUrl','auth.json','verdict','type',':\x20cannot\x20read\x20the\x20JSON\x20schema\x20(','\x0adelegate-cli\x20—\x20Delegate\x20agent\x20CLI\x0a\x0aUsage:\x0a\x20\x20delegate-cli\x20[flags]\x20[\x22<prompt>\x22]\x20\x20\x20\x20Start\x20a\x20conversation\x20in\x20a\x20terminal\x0a\x20\x20delegate-cli\x20--print\x20\x22<prompt>\x22\x20\x20\x20\x20\x20\x20Send\x20one\x20prompt,\x20print\x20the\x20response,\x20and\x20exit\x0a\x20\x20delegate-cli\x20[flags]\x20-\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Read\x20one\x20prompt\x20from\x20stdin\x20through\x20EOF,\x20then\x20exit\x0a\x20\x20delegate-cli\x20-p\x20\x22<prompt>\x22\x20--output-format\x20json|stream-json\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20One\x20turn\x20with\x20JSON-only\x20stdout;\x20exit\x201\x20on\x20error\x0a\x20\x20delegate-cli\x20--json-schema\x20FILE\x20\x22<prompt>\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20One\x20turn,\x20then\x20its\x20result\x20extracted\x20as\x20JSON\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20matching\x20the\x20schema\x20in\x20FILE\x20(printed\x20after\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20answer;\x20\x22structured\x22\x20in\x20the\x20JSON\x20result);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20exit\x201\x20when\x20the\x20extraction\x20fails\x0a\x20\x20delegate-cli\x20--attach\x20PATH\x20[--attach\x20PATH\x20...]\x20\x22<prompt>\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Send\x20files\x20or\x20folders\x20with\x20the\x20first\x20message\x0a\x20\x20delegate-cli\x20login\x20[--env\x20NAME\x20|\x20--url\x20BASE]\x20[--tenant\x20NAME]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20OAuth\x20browser\x20login\x20→\x20~/.aria/sdk-auth.json.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--env\x20or\x20--url\x20required\x20on\x20FIRST\x20login;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20afterwards\x20defaults\x20to\x20the\x20saved\x20login\x27s\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20deployment.\x20--tenant\x20picks\x20a\x20tenant\x20by\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20name;\x20without\x20it\x20a\x20re-login\x20keeps\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20saved\x20tenant\x0a\x20\x20delegate-cli\x20tenant\x20[NAME]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20the\x20organization\x27s\x20tenants,\x20or\x20switch\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20saved\x20login\x20to\x20NAME\x20(no\x20browser)\x0a\x20\x20delegate-cli\x20logout\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Remove\x20the\x20saved\x20CLI\x20login\x0a\x20\x20delegate-cli\x20whoami\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20the\x20current\x20login\x20(org,\x20tenant,\x20token\x20expiry)\x0a\x20\x20delegate-cli\x20models\x20[--env\x20NAME]\x20\x20\x20\x20\x20List\x20available\x20LLM\x20models\x20for\x20the\x20current\x20tenant,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20with\x20any\x20BYO\x20configuration\x20warning\x20per\x20model\x0a\x20\x20delegate-cli\x20sessions\x20[list]\x20[--page\x20N]\x20[--limit\x20N]\x20[--include-subagents]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20your\x20backend\x20chat\x20sessions,\x20most\x20recently\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20active\x20first\x20(resume\x20one\x20with\x20--session\x20ID)\x0a\x20\x20delegate-cli\x20sessions\x20show|delete\x20ID\x20Show\x20one\x20session\x27s\x20title\x20and\x20owner,\x20or\x20delete\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20it\x20with\x20its\x20messages\x20and\x20sub-agents\x20(no\x20prompt)\x0a\x20\x20delegate-cli\x20sessions\x20rename\x20ID\x20TITLE\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Rename\x20a\x20session\x20(1-500\x20characters)\x0a\x20\x20delegate-cli\x20sessions\x20fork\x20ID\x20[MESSAGE]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Copy\x20session\x20ID\x20into\x20a\x20new\x20session,\x20up\x20to\x20and\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20including\x20message\x20MESSAGE\x20(default:\x20all\x20of\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20it);\x20continue\x20it\x20with\x20--session\x20NEW_ID\x0a\x20\x20delegate-cli\x20sessions\x20cancel\x20ID\x20--turn\x20TURN\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Cancel\x20turn\x20TURN\x20running\x20on\x20session\x20ID\x20in\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20another\x20process;\x20exits\x201\x20when\x20no\x20such\x20turn\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20is\x20in\x20progress\x0a\x20\x20delegate-cli\x20check\x20[--env\x20NAME]\x20[--headless]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Verify\x20auth,\x20backend\x20readiness,\x20backend\x20and\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20interop\x20without\x20sending\x20a\x20prompt;\x20exits\x201\x20when\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20any\x20check\x20fails\x0a\x20\x20delegate-cli\x20usage\x20[--session\x20ID]\x20\x20\x20\x20Quota\x20and\x20spend:\x20licensing\x20quota,\x20monthly\x20spend\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20and\x20cap,\x20Cartographer\x20allowance\x0a\x20\x20delegate-cli\x20usage\x20activity|daily\x20[--days\x20N]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Activity\x20totals,\x20or\x20per-day\x20usage,\x20over\x20the\x20last\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20N\x20days\x20(1-365,\x20default\x2030)\x0a\x20\x20delegate-cli\x20evaluate|rerank|verify\x20FILE|-\x20[--model\x20ID]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Stateless\x20typed\x20judgments:\x20send\x20the\x20JSON\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20request\x20in\x20FILE\x20(or\x20stdin\x20with\x20-)\x20to\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20/v1/completions/<command>\x20and\x20print\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20answers;\x20--model\x20overrides\x20its\x20\x22model\x22.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Exits\x201\x20when\x20the\x20backend\x20rejects\x20it\x0a\x20\x20delegate-cli\x20complete\x20--json-schema\x20FILE\x20[--model\x20ID]\x20[--session\x20ID]\x20\x22<prompt>\x22|-\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20One\x20structured\x20completion,\x20no\x20agent\x20turn:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20print\x20the\x20JSON\x20object\x20matching\x20the\x20schema\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20in\x20FILE\x20(--output-format\x20json\x20prints\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{structured,\x20usage});\x20--session\x20adds\x20that\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20session\x27s\x20history\x20as\x20context.\x20Exits\x201\x20when\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20output\x20fails\x20the\x20schema\x20(422)\x20or\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20backend\x20rejects\x20the\x20request\x0a\x20\x20delegate-cli\x20transcribe\x20FILE|-\x20\x20\x20\x20\x20\x20\x20Speech-to-text:\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','delegations\x20cancel\x20<delegation-id>','accept','a\x20turn\x20id','\x20prompt,\x20','total_prompt_tokens','fork','tool','high','--version','--print','No\x20CLI\x20login\x20found.\x20Run\x20`delegate-cli\x20login\x20--env\x20<alpha|staging|production>`\x20first.','bind','\x27\x20cannot\x20be\x20read:\x20','code','includes','Token:\x20\x20\x20\x20\x20\x20\x20\x20expired\x20','--worker-id','pause','dismiss','--output-format','Already\x20accepted','filter','More:\x20delegate-cli\x20sessions\x20--page\x20','tenantName','some'];_0x5919=function(){return _0x5b0244;};return _0x5919();}function K(){const _0x5af21d=_0x33fd0a;return _0x5f19ae[_0x5af21d(0xc3)](process.env.HOME||process.env.USERPROFILE||'','.aria',_0x5af21d(0x172));}function M(_0x26d256){const _0x45d47f=_0x33fd0a;try{let _0x34cbeb=JSON[_0x45d47f(0xac)](_0x3a9423['readFileSync'](_0x26d256,_0x45d47f(0x1d4)));return!_0x34cbeb[_0x45d47f(0xa6)]||!_0x34cbeb[_0x45d47f(0x20d)]||!_0x34cbeb[_0x45d47f(0x261)]?null:_0x34cbeb;}catch{return null;}}function jt(){const _0x5d6320=_0x33fd0a;let _0x1e7457=[{'file':_0x3f43b8(),'isDesktopFallback':!0x1},{'file':K(),'isDesktopFallback':!0x0}];for(let _0x9a4484 of _0x1e7457){let _0x11720c=M(_0x9a4484[_0x5d6320(0xed)]);if(_0x11720c)return{..._0x9a4484,'auth':_0x11720c};}return null;}async function Mt(){const _0x3cb342=_0x33fd0a;let _0x4916d0=_0x3f43b8();if(!_0x3a9423[_0x3cb342(0x12a)](_0x4916d0)){let _0x5ba100=K();console[_0x3cb342(0x1b4)](M(_0x5ba100)?_0x3cb342(0x205)+_0x5ba100+_0x3cb342(0x1d2):_0x3cb342(0x1a7));return;}_0x3a9423[_0x3cb342(0x130)](_0x4916d0),console[_0x3cb342(0x1b4)](_0x3cb342(0x77)+_0x4916d0);}async function Bt(_0x69beb6){const _0x58a1ed=_0x33fd0a;let _0x1bdc4c=Q(),_0x49d691,_0x51e8e7;if(_0x1bdc4c)_0x49d691=_0x1bdc4c,_0x51e8e7=_0x58a1ed(0x1c1);else{let _0x3bf3e1=jt();if(!_0x3bf3e1)throw new Error(Se);_0x49d691=_0x3bf3e1[_0x58a1ed(0xf1)],_0x51e8e7=_0x3bf3e1['isDesktopFallback']?_0x3bf3e1[_0x58a1ed(0xed)]+_0x58a1ed(0x8c):_0x3bf3e1[_0x58a1ed(0xed)];}let _0x2887d0={'source':_0x51e8e7,'baseUrl':_0x49d691[_0x58a1ed(0x12c)]??null,'deployment':Ht(_0x49d691['baseUrl']),'organization':{'id':_0x49d691['organizationId'],'slug':_0x49d691['orgLogicalName']??null},'tenant':{'id':_0x49d691[_0x58a1ed(0x20d)],'name':_0x49d691[_0x58a1ed(0x18e)]??null},'tokenExpiresAt':_0x49d691[_0x58a1ed(0x110)]?new Date(_0x49d691['expiresAt']*0x3e8)[_0x58a1ed(0x1d9)]():null};u(_0x69beb6,_0x2887d0,()=>{const _0x67500d=_0x58a1ed;let _0x2cdc23=['Source:\x20\x20\x20\x20\x20\x20\x20'+_0x51e8e7,'Base\x20URL:\x20\x20\x20\x20\x20'+(_0x49d691[_0x67500d(0x12c)]??'unknown'),'Deployment:\x20\x20\x20'+_0x2887d0[_0x67500d(0x81)],_0x67500d(0x133)+(_0x49d691[_0x67500d(0xf5)]??_0x67500d(0x126))+'\x20('+_0x49d691[_0x67500d(0x261)]+')','Tenant:\x20\x20\x20\x20\x20\x20\x20'+(_0x49d691[_0x67500d(0x18e)]??'unknown\x20slug')+'\x20('+_0x49d691[_0x67500d(0x20d)]+')'];if(_0x49d691['expiresAt']){let _0x242c72=_0x49d691['expiresAt']-Math[_0x67500d(0xf0)](Date[_0x67500d(0x1bc)]()/0x3e8);_0x2cdc23[_0x67500d(0xfd)](_0x242c72>0x0?_0x67500d(0x22f)+_0x2887d0[_0x67500d(0xcb)]+_0x67500d(0x1a9)+Math[_0x67500d(0x1ee)](_0x242c72/0x3c)+_0x67500d(0x107):_0x67500d(0x186)+_0x2887d0['tokenExpiresAt']);}process[_0x67500d(0xf2)][_0x67500d(0x203)](_0x2cdc23['join']('\x0a')+'\x0a');});}var Se=_0x33fd0a(0x227);function Ht(_0x1f8b21){const _0x24636f=_0x33fd0a;return _0x1f8b21?_0x53cefc(_0x1f8b21)?'UiPath\x20Cloud':_0x24636f(0xa0):_0x24636f(0x226);}function Q(){let _0x5dc303=process.env.AUTH_TOKEN_FILE;return(process.env.AUTH_TOKEN||_0x5dc303)&&process.env.TENANT_ID&&process.env.ORG_ID?{'accessToken':_0x5dc303?Jt(_0x5dc303):process.env.AUTH_TOKEN,..._0x5dc303?{'accessTokenFile':_0x5dc303}:{},'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(_0x3813a8){const _0x5f4b18=_0x33fd0a;let _0x3230c7;try{_0x3230c7=_0x3a9423[_0x5f4b18(0x1fc)](_0x3813a8,_0x5f4b18(0x1d4))[_0x5f4b18(0x23f)]();}catch(_0x280497){throw new Error(_0x5f4b18(0x14e)+_0x3813a8+_0x5f4b18(0x183)+_0x280497['message']);}let _0x57803=_0x3230c7[_0x5f4b18(0x103)](_0x5f4b18(0x198))?_0x3230c7[_0x5f4b18(0xe4)](0x7)[_0x5f4b18(0x23f)]():_0x3230c7;if(!_0x57803)throw new Error('AUTH_TOKEN_FILE\x20\x27'+_0x3813a8+_0x5f4b18(0xcd));return _0x57803;}function ve(){const _0x51adea=_0x33fd0a;let _0x3a66db=process.env.UIPATH_BASE_URL;if(!_0x3a66db)return;let _0x6e45e7=_0x26d4df(_0x3a66db);if(_0x6e45e7['ok']===!0x1)throw new Error(_0x51adea(0x1a3)+_0x420784(_0x3a66db,_0x6e45e7['rejection']));return _0x6e45e7[_0x51adea(0x12c)];}async function q(){let _0x392dc7=Q();if(_0x392dc7)return _0x392dc7;let _0x3a75fa=await _0x194907();if(_0x3a75fa)return _0x3a75fa;throw new Error(Se);}async function Gt(){const _0x3c9cbd=_0x33fd0a;await new _0x6212d3()[_0x3c9cbd(0xd6)]({'force':!0x0}),console[_0x3c9cbd(0x1b4)](_0x3c9cbd(0x15f));}function z(_0xc0346f,_0x35fe87,_0xbe14b8){const _0x18ab95=_0x33fd0a;_0xc0346f?process[_0x18ab95(0xda)][_0x18ab95(0x203)](_0x18ab95(0x116)+_0xc0346f+_0x18ab95(0xe7)+_0xbe14b8+'\x0a'):!_0x35fe87&&!process.env.BACKEND_URL&&process[_0x18ab95(0xda)][_0x18ab95(0x203)](_0x18ab95(0xa1)+_0xbe14b8+'\x0a');}async function v(_0x531d45){const _0x21783c=_0x33fd0a;let _0x1dae49=await q(),_0x582577=_0x19c0bc(_0x531d45[_0x21783c(0xa9)],_0x1dae49,_0x531d45[_0x21783c(0x235)]);return z(_0x531d45[_0x21783c(0xa9)],_0x531d45[_0x21783c(0x235)],_0x582577),{'auth':_0x1dae49,'backendUrl':_0x582577,'client':_0x554f67({'auth':_0x1dae49,'backendUrl':_0x582577})};}async function Wt(_0x259750){const _0x5e06b7=_0x33fd0a;let {client:_0x4d955c}=await v(_0x259750),[_0x4a2045,_0x68e9ee]=await Promise[_0x5e06b7(0x1de)]([_0x4c40a7(_0x4d955c),_0x338dac(_0x4d955c)[_0x5e06b7(0x19c)](_0x560b0b=>(process['stderr']['write'](_0x5e06b7(0x207)+(_0x560b0b instanceof Error?_0x560b0b[_0x5e06b7(0x1b6)]:String(_0x560b0b))+'\x0a'),{}))]),_0x54ad8f=_0x4a2045[_0x5e06b7(0x1e0)](_0x2f72b6=>_0x68e9ee[_0x2f72b6['id']]?{..._0x2f72b6,'byoWarning':_0x68e9ee[_0x2f72b6['id']]}:_0x2f72b6);u(_0x259750,_0x54ad8f,Kt);}function Kt(_0x38ac8a){const _0x289e5e=_0x33fd0a;if(_0x38ac8a[_0x289e5e(0x16b)]===0x0){process[_0x289e5e(0xda)][_0x289e5e(0x203)](_0x289e5e(0xeb));return;}process['stdout'][_0x289e5e(0x203)](_0x289e5e(0x146)+_0x38ac8a[_0x289e5e(0x16b)]+_0x289e5e(0x165));for(let _0x151dea of _0x38ac8a){let _0x327679=_0x151dea[_0x289e5e(0x1d3)]&&_0x151dea[_0x289e5e(0x1d3)]!==_0x151dea['id']?'\x20('+_0x151dea[_0x289e5e(0x1d3)]+')':'';process[_0x289e5e(0xf2)][_0x289e5e(0x203)]('\x20\x20'+_0x151dea['id']+_0x327679+'\x0a'),_0x151dea['description']&&process[_0x289e5e(0xf2)][_0x289e5e(0x203)]('\x20\x20\x20\x20'+_0x151dea[_0x289e5e(0x213)]+'\x0a'),_0x151dea['locked']&&process[_0x289e5e(0xf2)][_0x289e5e(0x203)](_0x289e5e(0x24a)+(_0x151dea['lockReason']?'\x20('+_0x151dea['lockReason']+')':'')+'\x0a'),_0x151dea[_0x289e5e(0x1bb)]&&process[_0x289e5e(0xf2)][_0x289e5e(0x203)](_0x289e5e(0x13a)+_0x151dea[_0x289e5e(0x1bb)]+'\x0a');}process[_0x289e5e(0xf2)][_0x289e5e(0x203)](_0x289e5e(0x85));}var ae=[_0x33fd0a(0x6e),_0x33fd0a(0xe0),_0x33fd0a(0xc5),_0x33fd0a(0x1ec),'cancel',_0x33fd0a(0x17c)];async function Qt(_0x4ec96f){const _0x110518=_0x33fd0a;let [_0x4c8da1='',_0x57ea24='',..._0x436e7c]=_0x4ec96f[_0x110518(0xb7)];if(_0x4c8da1&&!ae['includes'](_0x4c8da1)&&(console['error'](_0x110518(0x101)+_0x4c8da1+'.\x20Use:\x20'+ae[_0x110518(0xc3)]('\x20|\x20')+'.'),process[_0x110518(0x8a)](0x2)),_0x4ec96f[_0x110518(0x216)]!==void 0x0&&_0x4c8da1!==_0x110518(0x8f)&&(console[_0x110518(0x1b8)](_0x110518(0x23c)),process[_0x110518(0x8a)](0x2)),_0x4c8da1&&_0x4c8da1!==_0x110518(0x6e)){await qt(_0x4ec96f,_0x4c8da1,_0x57ea24,_0x436e7c['join']('\x20')[_0x110518(0x23f)]());return;}_0x4ec96f[_0x110518(0xb7)][_0x110518(0x16b)]>0x1&&(console[_0x110518(0x1b8)](_0x110518(0x1fe)),process[_0x110518(0x8a)](0x2));let {client:_0xa5facd}=await v(_0x4ec96f),_0x37dad2=await _0x5001c9(_0xa5facd,{'page':_0x4ec96f[_0x110518(0xad)],'pageSize':_0x4ec96f[_0x110518(0x238)],'includeSubAgents':_0x4ec96f[_0x110518(0x215)]});u(_0x4ec96f,_0x37dad2,Xt);}async function qt(_0x2a2e6a,_0x5b2fa8,_0xa54a58,_0x4dca04){const _0x55a6a0=_0x33fd0a;if((_0x2a2e6a[_0x55a6a0(0xad)]!==void 0x0||_0x2a2e6a[_0x55a6a0(0x238)]!==void 0x0||_0x2a2e6a['includeSubAgents'])&&(console[_0x55a6a0(0x1b8)](_0x55a6a0(0x197)),process['exit'](0x2)),_0x5b2fa8==='cancel'){await Yt(_0x2a2e6a,_0xa54a58,_0x4dca04);return;}if(_0x5b2fa8===_0x55a6a0(0x17c)){await Vt(_0x2a2e6a,_0xa54a58,_0x4dca04);return;}(!_0xa54a58||_0x5b2fa8===_0x55a6a0(0xc5)!=!!_0x4dca04)&&(console[_0x55a6a0(0x1b8)]('Usage:\x20delegate-cli\x20sessions\x20'+_0x5b2fa8+_0x55a6a0(0x8b)+(_0x5b2fa8===_0x55a6a0(0xc5)?_0x55a6a0(0x90):'')),process[_0x55a6a0(0x8a)](0x2));let {client:_0x77394f}=await v(_0x2a2e6a);try{if(_0x5b2fa8===_0x55a6a0(0xe0)){let _0x367c42=await _0x33c036(_0x77394f,_0xa54a58);_0x367c42||le(_0xa54a58),u(_0x2a2e6a,_0x367c42,zt);}else{if(_0x5b2fa8===_0x55a6a0(0xc5)){let _0x42ed95=await _0x1c2dff(_0x77394f,_0xa54a58,_0x4dca04);u(_0x2a2e6a,_0x42ed95,_0x59724a=>{const _0x3af257=_0x55a6a0;process[_0x3af257(0xf2)][_0x3af257(0x203)](_0x3af257(0x97)+_0x59724a['id']+':\x20'+_0x59724a[_0x3af257(0x70)]+'\x0a');});}else await _0x1e4a0c(_0x77394f,_0xa54a58),await _0x16d34f(_0xa54a58,_0x2a2e6a[_0x55a6a0(0x19f)]),u(_0x2a2e6a,{'id':_0xa54a58,'deleted':!0x0},_0x1dcc06=>{const _0x449b38=_0x55a6a0;process['stdout']['write'](_0x449b38(0x13c)+_0x1dcc06['id']+'.\x0a');});}}catch(_0x1e250c){if(!_0x132bb6(_0x1e250c,0x194))throw _0x1e250c;le(_0xa54a58);}}function le(_0x2e4e82){const _0xf9bfba=_0x33fd0a;console[_0xf9bfba(0x1b8)](_0xf9bfba(0x115)+_0x2e4e82+_0xf9bfba(0xb6)),process[_0xf9bfba(0x8a)](0x1);}function zt(_0x27b8e0){const _0x28c71a=_0x33fd0a;process['stdout']['write'](_0x28c71a(0x21f)+_0x27b8e0['id']+'\x0a'),process[_0x28c71a(0xf2)][_0x28c71a(0x203)]('Title\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x27b8e0['title']+'\x0a'),process[_0x28c71a(0xf2)][_0x28c71a(0x203)](_0x28c71a(0x23d)+_0x27b8e0[_0x28c71a(0x138)]+'\x0a'),process[_0x28c71a(0xf2)][_0x28c71a(0x203)](_0x28c71a(0x88)+_0x27b8e0[_0x28c71a(0x261)]+'\x0a'),_0x27b8e0[_0x28c71a(0x1c8)]&&process[_0x28c71a(0xf2)][_0x28c71a(0x203)](_0x28c71a(0xdb)+_0x27b8e0[_0x28c71a(0x1c8)]+'\x0a');}async function Yt(_0x32434c,_0x21c72c,_0x52ca04){const _0x48c93f=_0x33fd0a;(!_0x21c72c||_0x52ca04||!_0x32434c[_0x48c93f(0x216)])&&(console[_0x48c93f(0x1b8)](_0x48c93f(0x157)),process['exit'](0x2));let {client:_0x120ea1}=await v(_0x32434c),_0x52e323=await _0x32db90(_0x120ea1,_0x21c72c,_0x32434c['turnId']);u(_0x32434c,{'sessionId':_0x21c72c,'turnId':_0x32434c[_0x48c93f(0x216)],'cancelled':_0x52e323},_0x1c9b98=>{const _0x4c9cc4=_0x48c93f;_0x1c9b98[_0x4c9cc4(0x147)]?process['stdout'][_0x4c9cc4(0x203)](_0x4c9cc4(0x224)+_0x1c9b98[_0x4c9cc4(0x216)]+_0x4c9cc4(0x22e)+_0x1c9b98['sessionId']+'.\x0a'):process[_0x4c9cc4(0xda)][_0x4c9cc4(0x203)](_0x4c9cc4(0xd3)+_0x1c9b98['turnId']+_0x4c9cc4(0x139)+_0x1c9b98[_0x4c9cc4(0xd0)]+'.\x0a');}),_0x52e323||(process[_0x48c93f(0x1c9)]=0x1);}async function Vt(_0x20a5e5,_0x51bcb5,_0x5e84db){const _0x5399b6=_0x33fd0a;(!_0x51bcb5||/\s/[_0x5399b6(0x84)](_0x5e84db))&&(console['error'](_0x5399b6(0x14f)),process[_0x5399b6(0x8a)](0x2));let {client:_0x1a0683}=await v(_0x20a5e5),_0x44205d;try{_0x44205d=await _0xa344c0(_0x1a0683,_0x51bcb5,{'atMessageId':_0x5e84db||void 0x0});}catch(_0x3ac827){if(!_0x132bb6(_0x3ac827,0x194))throw _0x3ac827;console['error']('Session\x20'+_0x51bcb5+_0x5399b6(0xab)+(_0x5e84db?_0x5399b6(0xa3)+_0x5e84db:'')+'.'),process[_0x5399b6(0x8a)](0x1);}u(_0x20a5e5,_0x44205d,_0x4791b9=>{const _0x1a2b8a=_0x5399b6;process[_0x1a2b8a(0xf2)][_0x1a2b8a(0x203)](_0x1a2b8a(0x1eb)+_0x51bcb5+_0x1a2b8a(0x24b)+_0x4791b9['id']+'.\x0a'),process[_0x1a2b8a(0xda)][_0x1a2b8a(0x203)](_0x1a2b8a(0x10b)+_0x4791b9['id']+_0x1a2b8a(0xdd));});}function Xt({sessions:_0x57fcfc,page:_0x1bbc28,isLastPage:_0x2d0035}){const _0x4423da=_0x33fd0a;if(_0x57fcfc[_0x4423da(0x16b)]===0x0)process['stderr'][_0x4423da(0x203)]('No\x20sessions\x20on\x20page\x20'+_0x1bbc28+'.\x0a');else{process[_0x4423da(0xf2)][_0x4423da(0x203)]('ID'[_0x4423da(0x10c)](0x24)+'\x20\x20'+_0x4423da(0x71)[_0x4423da(0x10c)](0x13)+_0x4423da(0x268));for(let _0x4a0c5d of _0x57fcfc){let _0x6e13f7=_0x4a0c5d[_0x4423da(0x111)][_0x4423da(0xba)]('T','\x20')[_0x4423da(0xe4)](0x0,0x13),_0x4e1d1c=_0x4a0c5d[_0x4423da(0x145)]?_0x4423da(0x9b)+_0x4a0c5d[_0x4423da(0x145)]+')':'';process[_0x4423da(0xf2)][_0x4423da(0x203)](_0x4a0c5d['id'][_0x4423da(0x10c)](0x24)+'\x20\x20'+_0x6e13f7[_0x4423da(0x10c)](0x13)+'\x20\x20'+_0x4a0c5d[_0x4423da(0x70)]+_0x4e1d1c+'\x0a');}}_0x2d0035||process['stderr'][_0x4423da(0x203)](_0x4423da(0x18d)+(_0x1bbc28+0x1)+'\x0a');}async function Zt(_0x4210e0){const _0x454e30=_0x33fd0a;let _0x24f787=await q(),_0x547369=_0x19c0bc(_0x4210e0['env'],_0x24f787,_0x4210e0[_0x454e30(0x235)]);z(_0x4210e0['env'],_0x4210e0['backendUrl'],_0x547369);let _0x53d316=await _0xc2d6eb({'auth':_0x24f787,'backendUrl':_0x547369,'interop':_0x4210e0['headless']?_0x454e30(0x1d0):_0x454e30(0x19b)});u(_0x4210e0,_0x53d316,({checks:_0x17ab40})=>{const _0x4b2465=_0x454e30;for(let _0x4ebca7 of _0x17ab40)process['stdout'][_0x4b2465(0x203)](en(_0x4ebca7)+'\x0a');}),_0x53d316['ok']||process[_0x454e30(0x8a)](0x1);}function en(_0x5c1e32){const _0x28cd0f=_0x33fd0a;return{'ok':'✓','failed':'✗','skipped':'-'}[_0x5c1e32[_0x28cd0f(0x8e)]]+'\x20'+_0x5c1e32[_0x28cd0f(0x1d3)][_0x28cd0f(0x10c)](0xa)+_0x5c1e32[_0x28cd0f(0x9e)];}var tn=['','activity',_0x33fd0a(0x7b)];async function nn(_0x10e5c1){const _0x441c5a=_0x33fd0a;let _0x8ed351=_0x10e5c1['prompt'];tn['includes'](_0x8ed351)||(console[_0x441c5a(0x1b8)](_0x441c5a(0x1e6)+_0x10e5c1[_0x441c5a(0x13f)]+_0x441c5a(0x83)),process[_0x441c5a(0x8a)](0x2)),_0x8ed351===''&&_0x10e5c1[_0x441c5a(0x253)]!==void 0x0&&(console[_0x441c5a(0x1b8)](_0x441c5a(0x16f)),process['exit'](0x2)),_0x8ed351!==''&&_0x10e5c1[_0x441c5a(0xd0)]!==void 0x0&&(console[_0x441c5a(0x1b8)](_0x441c5a(0x195)),process[_0x441c5a(0x8a)](0x2));let {client:_0x380a32}=await v(_0x10e5c1);if(_0x8ed351===_0x441c5a(0x7c)){u(_0x10e5c1,await _0x5d26b7(_0x380a32,{'days':_0x10e5c1['days']}),sn);return;}if(_0x8ed351===_0x441c5a(0x7b)){u(_0x10e5c1,await _0x5ddec2(_0x380a32,{'days':_0x10e5c1['days']}),rn);return;}let [_0x500e99,_0x3e05f1,_0x1a13b6]=await Promise[_0x441c5a(0x1de)]([_0x50ded1(_0x380a32,{'sessionId':_0x10e5c1[_0x441c5a(0xd0)]}),_0x520cd0(_0x380a32),_0x49a3a4(_0x380a32)]);u(_0x10e5c1,{'licensing':_0x500e99,'monthlySpending':_0x3e05f1,'cartographerAllowance':_0x1a13b6},on);}function on(_0x56402d){const _0x25b72d=_0x33fd0a;let {licensing:_0x225e71,monthlySpending:_0x1c2a8c,cartographerAllowance:_0x9ad812}=_0x56402d,_0x3a8b3e=[_0x225e71[_0x25b72d(0x15c)]?_0x25b72d(0x21d)+_0x225e71[_0x25b72d(0x22b)]['toFixed'](0x1)+_0x25b72d(0x6f)+(_0x225e71['total_quota_pu']??0x0)+'\x20PU\x20used'+(_0x225e71[_0x25b72d(0x135)]>0x0?',\x20'+_0x225e71[_0x25b72d(0x135)]+_0x25b72d(0xc4):'')+_0x25b72d(0x16e)+_0x225e71[_0x25b72d(0x214)]+')':_0x25b72d(0x246),_0x25b72d(0x124)+_0x1c2a8c[_0x25b72d(0x211)][_0x25b72d(0x24d)](0x2)+_0x25b72d(0x1c2)+(_0x1c2a8c['limit_enabled']&&_0x1c2a8c['monthly_limit_usd']!==null?_0x25b72d(0x1ff)+_0x1c2a8c[_0x25b72d(0x242)][_0x25b72d(0x24d)](0x2)+_0x25b72d(0x223):'\x20(no\x20cap\x20enforced)'),_0x25b72d(0x105)+_0x9ad812[_0x25b72d(0x7d)]+'\x20('+_0x9ad812[_0x25b72d(0x21a)]+')'];_0x225e71['session_consumed_pu']!==null&&_0x225e71[_0x25b72d(0x100)]!==void 0x0&&_0x3a8b3e[_0x25b72d(0xfd)](_0x25b72d(0x1be)+_0x225e71['session_consumed_pu']+_0x25b72d(0x20e)),process['stdout']['write'](_0x3a8b3e[_0x25b72d(0xc3)]('\x0a')+'\x0a');}function sn(_0x5a9d20){const _0x628499=_0x33fd0a;let _0x4b1e55=[_0x628499(0x1cf)+_0x5a9d20[_0x628499(0x193)]+_0x628499(0x258)+_0x5a9d20[_0x628499(0x1ef)]+_0x628499(0x265)+_0x5a9d20[_0x628499(0x134)]+_0x628499(0xd7),_0x628499(0x1f8)+_0x5a9d20['total_cost_usd'][_0x628499(0x24d)](0x2)+_0x628499(0xc8)+_0x5a9d20[_0x628499(0x158)][_0x628499(0x24d)](0x2)+'\x20from\x20'+_0x5a9d20[_0x628499(0x123)]+_0x628499(0xc7),_0x628499(0x1f7)+_0x5a9d20[_0x628499(0x17b)]+_0x628499(0x17a)+_0x5a9d20[_0x628499(0x1db)]+_0x628499(0x1e7)];for(let [_0x244bf1,_0x525a36]of Object[_0x628499(0x25b)](_0x5a9d20['models_breakdown']))_0x4b1e55['push']('\x20\x20'+_0x244bf1+':\x20'+_0x525a36+_0x628499(0x236));process[_0x628499(0xf2)][_0x628499(0x203)](_0x4b1e55['join']('\x0a')+'\x0a');}function rn(_0x3e9936){const _0x19e23a=_0x33fd0a;if(_0x3e9936[_0x19e23a(0x225)][_0x19e23a(0x16b)]===0x0){process['stdout']['write'](_0x19e23a(0x1ed)+_0x3e9936[_0x19e23a(0x193)]+'\x20days.\x0a');return;}let _0x9efea=['Date\x20\x20\x20\x20\x20\x20\x20\x20Token\x20units\x20\x20Prompt\x20tokens\x20\x20Completion\x20tokens'];for(let _0x30654f of _0x3e9936['daily_usage'])_0x9efea[_0x19e23a(0xfd)](_0x30654f['date']+'\x20\x20'+String(_0x30654f['token_units'])['padStart'](0xb)+'\x20\x20'+String(_0x30654f['prompt_tokens'])[_0x19e23a(0x1a1)](0xd)+'\x20\x20'+String(_0x30654f[_0x19e23a(0x19a)])[_0x19e23a(0x1a1)](0x11));process[_0x19e23a(0xf2)]['write'](_0x9efea['join']('\x0a')+'\x0a');}async function an(_0x19939f,_0x20f88d){const _0x4b927b=_0x33fd0a;let _0x56165a=await ln(_0x19939f['prompt'],_0x20f88d);_0x19939f['model']&&(_0x56165a[_0x4b927b(0x1bd)]=_0x19939f['model']);let {client:_0x5611ec}=await v(_0x19939f);try{_0x20f88d===_0x4b927b(0x12d)?u(_0x19939f,await _0x3ca222(_0x5611ec,_0x56165a,void 0x0),dn):_0x20f88d===_0x4b927b(0x127)?u(_0x19939f,await _0x35deef(_0x5611ec,_0x56165a,void 0x0),un):u(_0x19939f,await _0x57e0a5(_0x5611ec,_0x56165a,void 0x0),pn);}catch(_0x2ebfea){if(!_0x37b2c4(_0x2ebfea))throw _0x2ebfea;console[_0x4b927b(0x1b8)](_0x2ebfea[_0x4b927b(0x1b6)]),process[_0x4b927b(0x8a)](0x1);}}async function ln(_0x3b79f7,_0x23a152){const _0x2d830b=_0x33fd0a;let _0x580950;try{_0x580950=_0x3b79f7&&_0x3b79f7!=='-'?_0x3a9423['readFileSync'](_0x5f19ae['resolve'](_0x3b79f7),_0x2d830b(0x1d4)):await j(_0x3b79f7,process['stdin']);}catch(_0x7f6770){console[_0x2d830b(0x1b8)](_0x23a152+':\x20cannot\x20read\x20the\x20request\x20('+_0x7f6770[_0x2d830b(0x1b6)]+').'),process[_0x2d830b(0x8a)](0x2);}return _0x580950||(console[_0x2d830b(0x1b8)](_0x23a152+'\x20needs\x20a\x20JSON\x20request:\x20delegate-cli\x20'+_0x23a152+_0x2d830b(0x1b3)),process[_0x2d830b(0x8a)](0x2)),Ae(_0x580950,_0x23a152,_0x2d830b(0x1e8));}function Ae(_0x884c65,_0x2b23a5,_0x53f28e){const _0xc73128=_0x33fd0a;let _0x1d56d8;try{_0x1d56d8=JSON[_0xc73128(0xac)](_0x884c65);}catch(_0x10ee31){console[_0xc73128(0x1b8)](_0x2b23a5+':\x20'+_0x53f28e+_0xc73128(0xa8)+_0x10ee31[_0xc73128(0x1b6)]+').'),process[_0xc73128(0x8a)](0x2);}return(typeof _0x1d56d8!='object'||_0x1d56d8===null||Array['isArray'](_0x1d56d8))&&(console[_0xc73128(0x1b8)](_0x2b23a5+':\x20'+_0x53f28e+_0xc73128(0xe6)),process['exit'](0x2)),_0x1d56d8;}function $e(_0x1d3a58,_0x55d1a9){const _0x1d880f=_0x33fd0a;let _0x1d829b;try{_0x1d829b=_0x3a9423[_0x1d880f(0x1fc)](_0x5f19ae['resolve'](_0x1d3a58),_0x1d880f(0x1d4));}catch(_0x50365e){console[_0x1d880f(0x1b8)](_0x55d1a9+_0x1d880f(0x175)+_0x50365e['message']+').'),process[_0x1d880f(0x8a)](0x2);}return Ae(_0x1d829b,_0x55d1a9,_0x1d880f(0xee));}async function cn(_0x40e46c){const _0x3c6986=_0x33fd0a;_0x40e46c['jsonSchemaPath']===void 0x0&&(console[_0x3c6986(0x1b8)](_0x3c6986(0x240)),process[_0x3c6986(0x8a)](0x2));let _0x1ff334=$e(_0x40e46c[_0x3c6986(0x16d)],_0x3c6986(0x20f)),_0x419020=(await j(_0x40e46c[_0x3c6986(0x13f)],process['stdin']))[_0x3c6986(0x23f)]();_0x419020||(console[_0x3c6986(0x1b8)]('complete\x20needs\x20a\x20prompt:\x20delegate-cli\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22,\x20or\x20-\x20to\x20read\x20stdin.'),process['exit'](0x2));let {client:_0x508227}=await v(_0x40e46c);try{let _0xdf1e48=await _0x5dcf06(_0x508227,{'prompt':_0x419020,'jsonSchema':_0x1ff334,'model':_0x40e46c[_0x3c6986(0x1bd)]||process.env.MODEL||_0x2c55f4,..._0x40e46c['sessionId']!==void 0x0&&{'sessionId':_0x40e46c['sessionId']}},void 0x0);u(_0x40e46c,_0xdf1e48,_0x5340d1=>{const _0x34057a=_0x3c6986;process[_0x34057a(0xf2)][_0x34057a(0x203)](JSON['stringify'](_0x5340d1[_0x34057a(0x208)],null,0x2)+'\x0a');});}catch(_0x63f483){if(!_0x1e2b63(_0x63f483))throw _0x63f483;console['error'](_0x63f483[_0x3c6986(0x1b6)]),process['exit'](0x1);}}function Y(_0x5b0dbd){const _0x429771=_0x33fd0a;process['stdout']['write'](_0x429771(0x194)+_0x5b0dbd[_0x429771(0x1bd)]+'\x20('+_0x5b0dbd[_0x429771(0x1ea)]+_0x429771(0x20a)+_0x5b0dbd[_0x429771(0x233)]['total_tokens']+_0x429771(0x1bf));}function dn(_0x327c62){const _0x3019b4=_0x33fd0a;Y(_0x327c62);for(let _0x7a2c13 of Object[_0x3019b4(0xe2)](_0x327c62[_0x3019b4(0xa2)])){let _0x513c06=_0x327c62[_0x3019b4(0xa2)][_0x7a2c13],_0x3071f8=_0x513c06[_0x3019b4(0x174)]===_0x3019b4(0x228)?_0x3019b4(0x1e2)+_0x513c06['probability'][_0x3019b4(0x24d)](0x2):_0x513c06['type']===_0x3019b4(0xa4)?'choice\x20'+_0x513c06[_0x3019b4(0xa4)]+'\x20(confidence\x20'+_0x513c06[_0x3019b4(0x166)][_0x3019b4(0x24d)](0x2)+')':_0x3019b4(0xc2)+_0x513c06[_0x3019b4(0x118)]['toFixed'](0x2)+_0x3019b4(0xf3)+_0x513c06[_0x3019b4(0x166)][_0x3019b4(0x24d)](0x2)+')';process[_0x3019b4(0xf2)][_0x3019b4(0x203)]('\x20\x20'+_0x7a2c13+':\x20'+_0x3071f8+'\x0a');}}function un(_0x17676e){const _0x52e5a9=_0x33fd0a;Y(_0x17676e),_0x17676e[_0x52e5a9(0x1fd)][_0x52e5a9(0x1ca)]((_0x3e7f20,_0x5135c1)=>{const _0x2a575a=_0x52e5a9;process[_0x2a575a(0xf2)]['write']('\x20\x20'+(_0x5135c1+0x1)+'.\x20'+_0x3e7f20['id']+'\x20\x20'+_0x3e7f20[_0x2a575a(0x118)]['toFixed'](0x3)+_0x2a575a(0x113)+_0x3e7f20[_0x2a575a(0x19d)]+')\x0a');});}function pn(_0x301faa){const _0x53ce4c=_0x33fd0a;Y(_0x301faa),process[_0x53ce4c(0xf2)][_0x53ce4c(0x203)]('Rubric\x20'+_0x301faa['rubric_version']+'\x0a');for(let _0x30f06b of _0x301faa[_0x53ce4c(0x1fd)])process[_0x53ce4c(0xf2)][_0x53ce4c(0x203)]('\x20\x20'+_0x30f06b['id']+':\x20'+_0x30f06b[_0x53ce4c(0x173)]+_0x53ce4c(0xf3)+_0x30f06b[_0x53ce4c(0x166)][_0x53ce4c(0x24d)](0x2)+')\x0a');}async function mn(_0x109a87){const _0x158c61=_0x33fd0a;let _0x3c97b9=_0x109a87[_0x158c61(0x13f)]['trim']();_0x3c97b9||(console['error']('transcribe\x20needs\x20audio:\x20delegate-cli\x20transcribe\x20<file>,\x20or\x20-\x20to\x20read\x20stdin.'),process[_0x158c61(0x8a)](0x2));let {client:_0x5e0e36}=await v(_0x109a87);try{let _0x1084dd=_0x3c97b9==='-'?{'data':await fn(process['stdin'])}:_0x3c97b9;u(_0x109a87,await _0x48f07c(_0x5e0e36,_0x1084dd,void 0x0),_0x1824c5=>{const _0xd8c5af=_0x158c61;process[_0xd8c5af(0xf2)][_0xd8c5af(0x203)](_0x1824c5[_0xd8c5af(0x259)]+'\x0a');});}catch(_0x2b3fce){if(_0x248667(_0x2b3fce)&&(console[_0x158c61(0x1b8)](_0x2b3fce[_0x158c61(0x1b6)]),process[_0x158c61(0x8a)](_0x2b3fce[_0x158c61(0x8e)]===void 0x0?0x2:0x1)),typeof _0x2b3fce?.[_0x158c61(0x184)]!=_0x158c61(0xe9))throw _0x2b3fce;console[_0x158c61(0x1b8)](_0x158c61(0x1aa)+_0x3c97b9+'\x20('+_0x2b3fce['message']+').'),process['exit'](0x2);}}async function fn(_0x590d16){const _0x3e6f98=_0x33fd0a;let _0x527a08=[];for await(let _0x29613b of _0x590d16)_0x527a08[_0x3e6f98(0xfd)](Buffer[_0x3e6f98(0x102)](_0x29613b));return Buffer[_0x3e6f98(0xe5)](_0x527a08);}function _0x4db5(_0x2e0d05,_0x3f143c){_0x2e0d05=_0x2e0d05-0x6e;const _0x591944=_0x5919();let _0x4db5d6=_0x591944[_0x2e0d05];return _0x4db5d6;}var ce=[_0x33fd0a(0x6e),_0x33fd0a(0x14b),_0x33fd0a(0xe0),'create',_0x33fd0a(0x119),'complete',_0x33fd0a(0x178),_0x33fd0a(0x189),_0x33fd0a(0x8f),_0x33fd0a(0x1ec)],de={'list':_0x33fd0a(0x232),'pending':_0x33fd0a(0x106),'show':_0x33fd0a(0x162),'create':_0x33fd0a(0x1cb),'claim':'delegations\x20claim\x20<delegation-id|delegate://delegation/…>','complete':_0x33fd0a(0x22d),'accept':'delegations\x20accept\x20<delegation-id>','dismiss':'delegations\x20dismiss\x20<delegation-id>','cancel':_0x33fd0a(0x177),'delete':'delegations\x20delete\x20<delegation-id>'};async function gn(_0x54f360){const _0x315a58=_0x33fd0a;let [_0x6fa045='',_0x195edd='',..._0x3bfb23]=_0x54f360[_0x315a58(0xb7)];ce[_0x315a58(0x185)](_0x6fa045)||(console[_0x315a58(0x1b8)]((_0x6fa045?_0x315a58(0x122)+_0x6fa045+'.\x20':'')+_0x315a58(0x7f)+ce[_0x315a58(0xc3)](_0x315a58(0x75))+'.'),process[_0x315a58(0x8a)](0x2));let _0x1a0c32=_0x6fa045;_0x1a0c32!==_0x315a58(0x72)&&(_0x54f360[_0x315a58(0xef)]!==void 0x0||_0x54f360['contextSummary']!==void 0x0||_0x54f360[_0x315a58(0xd0)]!==void 0x0)&&(console[_0x315a58(0x1b8)](_0x315a58(0x231)),process[_0x315a58(0x8a)](0x2));let _0x4a42fe=(_0x1a0c32===_0x315a58(0x72)?_0x54f360[_0x315a58(0xb7)]['slice'](0x1):_0x3bfb23)['join']('\x20')['trim'](),_0x141959=_0x1a0c32===_0x315a58(0x72)||_0x1a0c32==='complete';(_0x1a0c32!==_0x315a58(0x72)&&!_0x195edd||(_0x141959?!_0x4a42fe:_0x4a42fe)||_0x1a0c32==='create'&&!_0x54f360[_0x315a58(0xd0)])&&(console[_0x315a58(0x1b8)](_0x315a58(0x161)+de[_0x1a0c32]),process[_0x315a58(0x8a)](0x2));let _0xf21389=_0x141959&&_0x4a42fe==='-'?(await j('-',process[_0x315a58(0x137)]))[_0x315a58(0x23f)]():_0x4a42fe;_0x141959&&!_0xf21389&&(console['error'](_0x315a58(0x161)+de[_0x1a0c32]+'\x20(stdin\x20was\x20empty)'),process['exit'](0x2));let {client:_0x73f574}=await v(_0x54f360);try{await hn(_0x54f360,_0x73f574,_0x1a0c32,_0x195edd,_0xf21389);}catch(_0xd91863){if(!_0x3e90a8(_0xd91863))throw _0xd91863;console[_0x315a58(0x1b8)](_0xd91863[_0x315a58(0x1b6)]),process[_0x315a58(0x8a)](0x1);}}async function hn(_0x2f75e9,_0x58759c,_0x2b1a60,_0x54ec8b,_0x1f1b4a){const _0x1c0c94=_0x33fd0a;switch(_0x2b1a60){case _0x1c0c94(0x6e):u(_0x2f75e9,await _0x1aaceb(_0x58759c,_0x54ec8b),yn);return;case _0x1c0c94(0x14b):u(_0x2f75e9,await _0x52c717(_0x58759c,_0x54ec8b),_0x4a59fe=>{const _0x166659=_0x1c0c94;_0x4a59fe[_0x166659(0xc6)]&&process[_0x166659(0xf2)][_0x166659(0x203)](_0x166659(0x159)+_0x4a59fe[_0x166659(0xc6)]['id']+'\x20('+_0x4a59fe['delegation'][_0x166659(0x8e)]+_0x166659(0x24f)),_0x4a59fe[_0x166659(0xfb)]['length']===0x0&&process[_0x166659(0xda)]['write'](_0x166659(0x89));for(let _0x92fb09 of _0x4a59fe[_0x166659(0xfb)])process[_0x166659(0xf2)][_0x166659(0x203)]('\x0a'+_0x92fb09['id']+_0x166659(0x256)+(_0x92fb09[_0x166659(0x237)]??_0x166659(0x251))+'\x20\x20'+(_0x92fb09['task']??'')+'\x0a'+(_0x92fb09[_0x166659(0x204)]?.['content']??'')+'\x0a');_0x4a59fe[_0x166659(0xfb)][_0x166659(0x16b)]>0x0&&process[_0x166659(0xda)][_0x166659(0x203)](_0x166659(0x206));});return;case _0x1c0c94(0xe0):u(_0x2f75e9,await _0x2be8e0(_0x58759c,_0x54ec8b),ue);return;case _0x1c0c94(0x72):{let _0x24a3a2=await _0x158f7f(_0x58759c,{'sessionId':_0x2f75e9[_0x1c0c94(0xd0)],'task':_0x1f1b4a,..._0x2f75e9[_0x1c0c94(0x25a)]!==void 0x0&&{'contextSummary':_0x2f75e9['contextSummary']},..._0x2f75e9[_0x1c0c94(0xef)]!==void 0x0&&{'recipient':_0x2f75e9[_0x1c0c94(0xef)]}});u(_0x2f75e9,_0x24a3a2,_0x5cabae=>{const _0xdb7012=_0x1c0c94;_0x5cabae[_0xdb7012(0x11a)]?process[_0xdb7012(0xf2)][_0xdb7012(0x203)](_0xdb7012(0x14c)+_0x5cabae[_0xdb7012(0x1c8)]+_0xdb7012(0x1cd)+_0x5cabae[_0xdb7012(0x11a)][_0xdb7012(0x1e5)]+'\x20<'+_0x5cabae[_0xdb7012(0x11a)][_0xdb7012(0x212)]+'>.\x0a'):process['stdout']['write'](_0xdb7012(0x263)+_0x5cabae[_0xdb7012(0x1c8)]+_0xdb7012(0xd4)+_0x5cabae[_0xdb7012(0x96)]+'\x0a');});return;}case'claim':{let _0x31c1fb=await _0x391077(_0x58759c,_0x54ec8b);u(_0x2f75e9,_0x31c1fb,_0x1de09b=>{const _0x4f5e4f=_0x1c0c94;ue(_0x1de09b),process[_0x4f5e4f(0xf2)][_0x4f5e4f(0x203)](_0x4f5e4f(0x12b)+_0x1de09b['sessionId']+'\x0a'),process[_0x4f5e4f(0xda)]['write']('Work\x20on\x20it\x20with:\x20delegate-cli\x20--session\x20'+_0x1de09b[_0x4f5e4f(0xd0)]+_0x4f5e4f(0x10a)+_0x1de09b['delegationId']+_0x4f5e4f(0x87));});return;}case'complete':{let {alreadyCompleted:_0x2bfce7}=await _0x9d4fda(_0x58759c,_0x54ec8b,{'content':_0x1f1b4a});u(_0x2f75e9,{'delegationId':_0x54ec8b,'alreadyCompleted':_0x2bfce7},_0x20774e=>{const _0x362724=_0x1c0c94;process[_0x362724(0xf2)][_0x362724(0x203)]((_0x20774e[_0x362724(0x11b)]?_0x362724(0x136):'Answered')+_0x362724(0x219)+_0x20774e[_0x362724(0x1c8)]+'.\x0a');});return;}case'accept':{let _0x4b76a5=await _0x168cc9(_0x58759c,_0x54ec8b);u(_0x2f75e9,{'delegationId':_0x54ec8b,..._0x4b76a5},_0x544e52=>{const _0x53d0e1=_0x1c0c94;process['stdout'][_0x53d0e1(0x203)]((_0x544e52[_0x53d0e1(0x1e1)]?_0x53d0e1(0x18b):_0x53d0e1(0xd5))+_0x53d0e1(0x219)+_0x544e52['delegationId']+'.\x0a');});return;}default:{let _0x4429ff={'dismiss':_0x203e08,'cancel':_0x3415b5,'delete':_0x134980}[_0x2b1a60];await _0x4429ff(_0x58759c,_0x54ec8b);let _0x2115c5={'dismiss':_0x1c0c94(0x234),'cancel':_0x1c0c94(0x147),'delete':_0x1c0c94(0x1ba)}[_0x2b1a60];u(_0x2f75e9,{'delegationId':_0x54ec8b,[_0x2115c5]:!0x0},()=>{const _0x1e236a=_0x1c0c94;process[_0x1e236a(0xf2)][_0x1e236a(0x203)](''+_0x2115c5[0x0][_0x1e236a(0x76)]()+_0x2115c5[_0x1e236a(0xe4)](0x1)+_0x1e236a(0x219)+_0x54ec8b+'.\x0a');});}}}function yn(_0x3e2f06){const _0x4d89a8=_0x33fd0a;if(_0x3e2f06[_0x4d89a8(0x16b)]===0x0){process['stderr'][_0x4d89a8(0x203)](_0x4d89a8(0x1c5));return;}process[_0x4d89a8(0xf2)][_0x4d89a8(0x203)]('ID'[_0x4d89a8(0x10c)](0x24)+'\x20\x20'+'STATUS'[_0x4d89a8(0x10c)](0x9)+'\x20\x20'+_0x4d89a8(0x21c)[_0x4d89a8(0x10c)](0x18)+'\x20\x20TASK\x0a');for(let _0x2ae8d of _0x3e2f06)process[_0x4d89a8(0xf2)][_0x4d89a8(0x203)](_0x2ae8d['id'][_0x4d89a8(0x10c)](0x24)+'\x20\x20'+_0x2ae8d[_0x4d89a8(0x8e)]['padEnd'](0x9)+'\x20\x20'+(_0x2ae8d['assignedUserEmail']??'-')['padEnd'](0x18)+'\x20\x20'+(_0x2ae8d['task']??'')+'\x0a');}function ue(_0x83a1eb){const _0x15ff3a=_0x33fd0a;process['stdout']['write'](_0x15ff3a(0x1a0)+(_0x83a1eb[_0x15ff3a(0x13b)]??'-')+'\x0a'),_0x83a1eb[_0x15ff3a(0x86)]&&process[_0x15ff3a(0xf2)]['write']('Session\x20\x20\x20\x20\x20\x20\x20'+_0x83a1eb[_0x15ff3a(0x86)]+'\x0a'),process[_0x15ff3a(0xf2)][_0x15ff3a(0x203)](_0x15ff3a(0x121)+(_0x83a1eb[_0x15ff3a(0x125)]??'-')+'\x0a'),_0x83a1eb[_0x15ff3a(0x25a)]&&process[_0x15ff3a(0xf2)]['write']('\x0a'+_0x83a1eb[_0x15ff3a(0x25a)]+'\x0a\x0a');}async function wn(_0x497646){const _0x6d8184=_0x33fd0a;_0x497646[_0x6d8184(0x13f)][_0x6d8184(0x23f)]()||(console['error']('Usage:\x20delegate-cli\x20org-users\x20<name\x20or\x20email\x20prefix>'),process[_0x6d8184(0x8a)](0x2));let {client:_0x5e2d2f}=await v(_0x497646),_0x112522;try{_0x112522=await _0x4ebe33(_0x5e2d2f,_0x497646[_0x6d8184(0x13f)]);}catch(_0x294a40){if(!_0x3e90a8(_0x294a40))throw _0x294a40;console[_0x6d8184(0x1b8)](_0x294a40[_0x6d8184(0x1b6)]),process[_0x6d8184(0x8a)](0x1);}u(_0x497646,_0x112522,_0x23df9b=>{const _0x1067c5=_0x6d8184;_0x23df9b[_0x1067c5(0x16b)]===0x0&&process[_0x1067c5(0xda)]['write'](_0x1067c5(0xae)+_0x497646[_0x1067c5(0x13f)]['trim']()+_0x1067c5(0xfa));for(let _0x2fd3bb of _0x23df9b)process[_0x1067c5(0xf2)][_0x1067c5(0x203)](_0x2fd3bb['email'][_0x1067c5(0x10c)](0x20)+'\x20\x20'+_0x2fd3bb[_0x1067c5(0x1e5)]+'\x0a');});}async function kn(_0x44930f){const _0x342832=_0x33fd0a;_0x44930f[_0x342832(0xa9)]==='localhost'&&(console[_0x342832(0x1b8)](_0x342832(0x254)),process[_0x342832(0x8a)](0x2));let _0x5dea34=M(_0x3f43b8()),_0x27f211=_0x44930f[_0x342832(0x248)];if(_0x44930f[_0x342832(0xa9)]){let _0x1c4794=_0x44930f[_0x342832(0xa9)];await _0x2ebee3({'env':_0x1c4794,'tenant':_0x44930f['tenant']??G(_0x5dea34,_0x222cf[_0x1c4794]),'skipEnvCheck':_0x27f211});return;}let _0x1591b0=_0x44930f[_0x342832(0x217)]??ve();if(_0x1591b0){await _0x2ebee3({'baseUrl':_0x1591b0,'tenant':_0x44930f[_0x342832(0x1b2)]??G(_0x5dea34,_0x1591b0),'skipEnvCheck':_0x27f211});return;}if(_0x5dea34?.['baseUrl']){await _0x2ebee3({'baseUrl':_0x5dea34[_0x342832(0x12c)],'tenant':_0x44930f[_0x342832(0x1b2)]??_0x5dea34[_0x342832(0x18e)],'skipEnvCheck':_0x27f211});return;}console[_0x342832(0x1b8)](_0x342832(0x1c0)),process[_0x342832(0x8a)](0x2);}function G(_0x200b34,_0xf9fb3b){const _0x21e8f6=_0x33fd0a;return _0x200b34?.['baseUrl']&&bn(_0x200b34['baseUrl'],_0xf9fb3b)?_0x200b34[_0x21e8f6(0x18e)]:void 0x0;}function bn(_0x333d83,_0x4b9ee8){const _0xe30a9f=_0x33fd0a;try{return new URL(_0x333d83)['origin']===new URL(_0x4b9ee8)[_0xe30a9f(0x1ae)];}catch{return!0x1;}}async function Sn(_0x388eb8){const _0x138c12=_0x33fd0a;Q()&&(console[_0x138c12(0x1b8)]('Auth\x20comes\x20from\x20AUTH_TOKEN/TENANT_ID/ORG_ID\x20—\x20set\x20TENANT_ID\x20and\x20TENANT_SLUG\x20to\x20change\x20the\x20tenant.'),process['exit'](0x2));let _0x306ee3=await _0x3fc910();if(_0x306ee3||(console['error'](vn()),process[_0x138c12(0x8a)](0x2)),_0x388eb8[_0x138c12(0x23f)]()){let _0x239399=await _0x57b03c(_0x306ee3,_0x388eb8);_0x8b9633(_0x239399)||(console['error']('Tenant\x20not\x20switched:\x20could\x20not\x20write\x20'+_0x3f43b8()+_0x138c12(0xb5)+_0x306ee3[_0x138c12(0x18e)]+'.'),process['exit'](0x1)),console[_0x138c12(0x1b4)](_0x138c12(0x141)+_0x239399[_0x138c12(0x18e)]+'\x20('+_0x239399[_0x138c12(0x20d)]+')\x20—\x20saved\x20to\x20'+_0x3f43b8());return;}An(await _0x36ebf8(_0x306ee3),_0x306ee3);}function vn(){const _0x11690e=_0x33fd0a;if(_0x3a9423[_0x11690e(0x12a)](_0x3f43b8()))return _0x11690e(0xe3);let _0x4c7c5f=K();return M(_0x4c7c5f)?'No\x20CLI\x20login\x20to\x20switch:\x20the\x20CLI\x20is\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20'+_0x4c7c5f+',\x20whose\x20tenant\x20is\x20chosen\x20in\x20the\x20app.\x20Run\x20`delegate-cli\x20login\x20--env\x20<env>`\x20for\x20a\x20CLI\x20login\x20of\x20your\x20own.':_0x11690e(0x181);}function An(_0x79ecd3,_0x591793){const _0x16a3e5=_0x33fd0a;let _0x3834f8=_0x79ecd3['map'](_0x3cc73e=>_0x3cc73e['id']===_0x591793['tenantId']?'*\x20'+_0x3cc73e[_0x16a3e5(0x1d3)]+'\x20(current)':'\x20\x20'+_0x3cc73e[_0x16a3e5(0x1d3)]);process[_0x16a3e5(0xf2)][_0x16a3e5(0x203)](_0x16a3e5(0xb8)+(_0x591793[_0x16a3e5(0xf5)]??_0x591793['organizationId'])+':\x0a'+_0x3834f8[_0x16a3e5(0xc3)]('\x0a')+'\x0a'),_0x79ecd3['length']>0x1&&process[_0x16a3e5(0xf2)]['write'](_0x16a3e5(0x79));}function $n(_0x83bbc7){const _0x3c9f4c=_0x33fd0a;return _0x83bbc7?.['response']?.[_0x3c9f4c(0x8e)]===0x191||/401/[_0x3c9f4c(0x84)](String(_0x83bbc7?.[_0x3c9f4c(0x1b6)]??''));}var f={'lastType':null,'quiet':!0x1},Ee=_0x3e269d=>{const _0x11a565=_0x33fd0a;switch(_0x3e269d[_0x11a565(0x174)]){case _0x11a565(0xa5):_0x3e269d[_0x11a565(0xd0)]&&_0x3e269d[_0x11a565(0xd0)]!==f[_0x11a565(0xd0)]&&(process[_0x11a565(0xda)][_0x11a565(0x203)]('Session:\x20'+_0x3e269d[_0x11a565(0xd0)]+'\x20(resume\x20with\x20--session\x20'+_0x3e269d[_0x11a565(0xd0)]+')\x0a'),f[_0x11a565(0xd0)]=_0x3e269d['sessionId']);break;case _0x11a565(0xdf):_0x3e269d['turnId']&&_0x3e269d['turnId']!==f[_0x11a565(0x216)]&&(f['lastType']!==null&&process[_0x11a565(0xda)][_0x11a565(0x203)]('\x0a'),process[_0x11a565(0xda)]['write']('Turn:\x20'+_0x3e269d[_0x11a565(0x216)]+_0x11a565(0x24e)+_0x3e269d[_0x11a565(0xd0)]+_0x11a565(0xa7)+_0x3e269d[_0x11a565(0x216)]+')\x0a'),f['turnId']=_0x3e269d[_0x11a565(0x216)],f[_0x11a565(0x220)]=_0x11a565(0xdf));break;case _0x11a565(0x144):_0x3e269d[_0x11a565(0xea)]&&!f[_0x11a565(0x13d)]&&(f['lastType']!==_0x11a565(0x144)&&process[_0x11a565(0xda)][_0x11a565(0x203)](_0x11a565(0x202)),process[_0x11a565(0xda)][_0x11a565(0x203)](_0x3e269d[_0x11a565(0xea)]),f[_0x11a565(0x220)]='thinking');break;case'tool_call':f[_0x11a565(0x220)]!==null&&process['stderr'][_0x11a565(0x203)]('\x0a'),process[_0x11a565(0xda)][_0x11a565(0x203)](_0x11a565(0x255)+(_0x3e269d['toolName']??_0x11a565(0x17d))+'\x0a'),f['lastType']=_0x11a565(0x1a5);break;case _0x11a565(0x1b6):_0x3e269d[_0x11a565(0xea)]&&(f[_0x11a565(0x220)]!==_0x11a565(0x1b6)&&f[_0x11a565(0x220)]!==null&&process[_0x11a565(0xf2)][_0x11a565(0x203)]('\x0a'),process[_0x11a565(0xf2)]['write'](_0x3e269d['content']),f[_0x11a565(0x220)]='message');break;case _0x11a565(0x1b8):f[_0x11a565(0x220)]!==null&&process['stderr'][_0x11a565(0x203)]('\x0a'),process[_0x11a565(0xda)][_0x11a565(0x203)]('✗\x20'+(_0x3e269d['error']??'error')+'\x0a'),f['lastType']='error';break;case _0x11a565(0x80):(f[_0x11a565(0x220)]===_0x11a565(0x1b6)||f[_0x11a565(0x220)]===_0x11a565(0x144))&&process['stdout']['write']('\x0a'),process['stderr'][_0x11a565(0x203)](_0x11a565(0x200)),f[_0x11a565(0x220)]=_0x11a565(0x80);break;}};function pe(_0x22a46c,_0x2d402b,_0x2bd43d,_0x557abd){const _0x450b26=_0x33fd0a;let _0x15cfc9=_0x22a46c[_0x450b26(0x1bd)]||process.env.MODEL;return{'backendUrl':_0x2bd43d,'auth':_0x2d402b,'enableComputerUse':!_0x22a46c[_0x450b26(0x1dd)]&&!_0x22a46c[_0x450b26(0x247)],'autoSpawnInterop':!_0x22a46c[_0x450b26(0x1dd)],'enableConnections':!_0x22a46c[_0x450b26(0x74)],'enableSecurity':!_0x22a46c['noSecurity'],'keepInteropAlive':_0x22a46c['keepAlive'],..._0x557abd['oneTurn']?{'enableBackgroundCommands':!0x1}:{},..._0x22a46c['noMemory']?{'enableMemory':!0x1}:{},..._0x22a46c[_0x450b26(0xaa)]?{'enableTaskAutomation':!0x0}:{},..._0x22a46c[_0x450b26(0x230)][_0x450b26(0x16b)]>0x0?{'preloadSkills':_0x22a46c['preloadSkills']}:{},..._0x15cfc9?{'model':_0x15cfc9}:{},..._0x22a46c[_0x450b26(0x148)]?{'projectId':_0x22a46c[_0x450b26(0x148)]}:{},..._0x22a46c['workingDirectory']?{'workingDirectory':_0x22a46c[_0x450b26(0x19f)]}:{},..._0x22a46c[_0x450b26(0x1f4)]?{'bundledSkillsPath':_0x22a46c[_0x450b26(0x1f4)]}:{},..._0x22a46c[_0x450b26(0xfe)]?{'effort':_0x22a46c[_0x450b26(0xfe)]}:{},..._0x22a46c['sessionId']?{'sessionId':_0x22a46c[_0x450b26(0xd0)]}:{},..._0x22a46c[_0x450b26(0x154)]?{'verbose':!0x0}:{}};}async function En(_0x46a5cb){const _0xde06b6=_0x33fd0a;let _0x3f87f5=_0x46a5cb['outputFormat']!==_0xde06b6(0x259),_0x3316a1=_0x46a5cb[_0xde06b6(0x16d)]===void 0x0?null:$e(_0x46a5cb['jsonSchemaPath'],_0xde06b6(0x201)),_0x24e7e9=!_0x3f87f5&&!_0x3316a1&&!_0x46a5cb['print']&&_0x46a5cb[_0xde06b6(0x13f)]!=='-'&&!!process['stdin']['isTTY']&&!!process[_0xde06b6(0xf2)][_0xde06b6(0x9f)],_0x2f1b0c=_0x24e7e9?_0x46a5cb['prompt']['trim']():await j(_0x46a5cb[_0xde06b6(0x13f)],process[_0xde06b6(0x137)]);if(!_0x24e7e9&&!_0x2f1b0c&&(console['error']('Missing\x20prompt.\x20Pass\x20it\x20as\x20an\x20argument,\x20pipe\x20it\x20via\x20stdin,\x20or\x20run\x20`delegate-cli\x20--help`.'),process[_0xde06b6(0x8a)](0x2)),!_0x3f87f5){await me(_0x46a5cb,_0x2f1b0c,_0x24e7e9,null,_0x3316a1);return;}let _0x3cca75=!0x1,_0x3d0f2f=_0x1bca6a=>{const _0x4693f0=_0xde06b6;_0x3cca75=!0x0,P(_0x3f82fb(_0x1bca6a)),(_0x1bca6a[_0x4693f0(0x152)]||_0x1bca6a[_0x4693f0(0x1b1)])&&(process[_0x4693f0(0x1c9)]=0x1);},_0x73a95d=Date[_0xde06b6(0x1bc)]();try{await me(_0x46a5cb,_0x2f1b0c,!0x1,_0x3d0f2f,_0x3316a1);}catch(_0x1450a4){if(_0x3cca75)throw _0x1450a4;process[_0xde06b6(0xda)][_0xde06b6(0x203)]((_0x1450a4 instanceof Error?_0x1450a4[_0xde06b6(0x163)]??_0x1450a4[_0xde06b6(0x1b6)]:String(_0x1450a4))+'\x0a'),_0x3d0f2f(new _0x5d64a4(_0x73a95d)['finish']({'endedAtMs':Date[_0xde06b6(0x1bc)](),'usage':[],'error':_0x1450a4}));}}async function me(_0x5f4a30,_0x399974,_0x59d8db,_0x439dce,_0x13f0a1){const _0x2092ad=_0x33fd0a;f={'lastType':null,'quiet':_0x5f4a30[_0x2092ad(0x13d)]};let _0x22ca27=new Set(),_0x15e020,_0x104fee=_0x56d85d=>{const _0x50088c=_0x2092ad;(!_0x439dce||_0x56d85d[_0x50088c(0x174)]===_0x50088c(0xa5)||_0x56d85d[_0x50088c(0x174)]==='turn_start')&&(_0x15e020??Ee)(_0x56d85d);for(let _0x2edb4f of _0x22ca27)_0x2edb4f(_0x56d85d);},_0x325dd2=await q(),_0x18f4de=new _0x35f6a6();_0x18f4de['onEvent'](_0x104fee);let _0x4788f6=_0x19c0bc(_0x5f4a30[_0x2092ad(0xa9)],_0x325dd2,_0x5f4a30['backendUrl']);z(_0x5f4a30['env'],_0x5f4a30['backendUrl'],_0x4788f6);let _0x16090b={'input':null},_0x58692b=_0x59d8db?Z(()=>_0x16090b[_0x2092ad(0x149)],_0x5c4aac=>{process['stderr']['write'](_0x5c4aac);}):null,_0xd91cc7=_0x31eb5a=>_0x58692b?{..._0x31eb5a,'askUser':_0x58692b}:_0x31eb5a,_0x1c5964=_0xd91cc7(pe(_0x5f4a30,_0x325dd2,_0x4788f6,{'oneTurn':!_0x59d8db})),_0x2f130e=!0x1,_0x5c769e=!0x1,_0x2028d7,_0x43be6d=()=>_0x2028d7??=_0x18f4de[_0x2092ad(0x8d)](),_0xd96d7b=()=>{const _0x5b9527=_0x2092ad;_0x5c769e&&process['exit'](0x82),_0x5c769e=!0x0,process[_0x5b9527(0xda)]['write'](_0x5b9527(0x257)),_0x2f130e&&_0x18f4de['cancel']()['catch'](_0x53885a=>console['error'](_0x53885a))['then'](_0x43be6d)[_0x5b9527(0x1c3)](()=>process[_0x5b9527(0x8a)](0x82),_0x98426=>{const _0xd4f58d=_0x5b9527;console[_0xd4f58d(0x1b8)](_0x98426),process[_0xd4f58d(0x8a)](0x82);});};process['on'](_0x2092ad(0x1f1),_0xd96d7b);let _0x551090=_0x5f4a30[_0x2092ad(0x1ad)],_0x35050d=async _0x44eccd=>{const _0x58cc7f=_0x2092ad;let _0x38d1b0=_0x551090;_0x551090=[];let _0x188671=()=>_0x18f4de[_0x58cc7f(0x131)](_0x44eccd,{'attachments':_0x38d1b0});try{return await _0x188671();}catch(_0xc2aeac){if(_0x5c769e||!$n(_0xc2aeac)||!process['stdin'][_0x58cc7f(0x9f)]||_0x5f4a30[_0x58cc7f(0xa9)]===_0x58cc7f(0x243)||!(_0x5f4a30['env']||_0x325dd2[_0x58cc7f(0x12c)]))throw _0xc2aeac;process[_0x58cc7f(0xda)][_0x58cc7f(0x203)](_0x58cc7f(0x1b9));let _0x3b5062=_0x18f4de[_0x58cc7f(0xca)]()??_0x5f4a30[_0x58cc7f(0xd0)],_0x3cf37b=await _0x2ebee3(_0x5f4a30[_0x58cc7f(0xa9)]?{'env':_0x5f4a30[_0x58cc7f(0xa9)],'tenant':G(_0x325dd2,_0x222cf[_0x5f4a30[_0x58cc7f(0xa9)]]),'skipEnvCheck':!0x0}:{'baseUrl':_0x325dd2[_0x58cc7f(0x12c)],'tenant':_0x325dd2['tenantName'],'skipEnvCheck':!0x0}),_0x2e5980={'text':'','failed':!0x1,'sessionId':_0x3b5062};return _0x5c769e||(_0x2f130e=!0x1,await _0x43be6d(),_0x5c769e)?_0x2e5980:(_0x18f4de=new _0x35f6a6(),_0x2028d7=void 0x0,_0x18f4de['onEvent'](_0x104fee),_0x325dd2=_0x3cf37b,await _0x18f4de['initialize']({..._0xd91cc7(pe(_0x5f4a30,_0x325dd2,_0x4788f6,{'oneTurn':!_0x59d8db})),..._0x3b5062?{'sessionId':_0x3b5062}:{}}),_0x2f130e=!0x0,_0x5c769e?_0x2e5980:_0x188671());}};try{if(await _0x18f4de[_0x2092ad(0x117)](_0x1c5964),_0x2f130e=!0x0,_0x5c769e)return;if(_0x59d8db)await xn({'prompt':_0x399974,'sendMessage':_0x35050d,'onSigint':_0xd96d7b,'setAnswerInput':_0x524df8=>{const _0x507bd5=_0x2092ad;_0x16090b[_0x507bd5(0x149)]=_0x524df8;},'registerEventPrinter':_0x28e680=>(_0x15e020=_0x28e680,()=>{_0x15e020=void 0x0;})});else{if(_0x439dce||_0x13f0a1){let _0x6b406=_0x5f4a30[_0x2092ad(0x210)]===_0x2092ad(0x1f5)?_0x4376ff=>P(_0x3a4190(_0x4376ff)):()=>{},_0x5a60fe=await _0x50847f({'onEvent':_0x220d15=>(_0x22ca27[_0x2092ad(0xb9)](_0x220d15),()=>{_0x22ca27['delete'](_0x220d15);}),'sendMessage':_0x2fd448=>_0x35050d(_0x2fd448),'getSessionId':()=>_0x18f4de[_0x2092ad(0xca)](),'getTurnUsageHistory':_0x2a24e0=>_0x18f4de['getTurnUsageHistory'](_0x2a24e0),'complete':_0x28d66a=>_0x18f4de['complete'](_0x28d66a)},_0x399974,void 0x0,_0x6b406,_0x13f0a1?{'outputSchema':_0x13f0a1}:void 0x0);_0x439dce?_0x439dce(_0x5a60fe):In(_0x5a60fe);}else await _0x35050d(_0x399974);}}catch(_0x397bb6){if(!_0x5c769e)throw _0x397bb6;}finally{try{await _0x43be6d();}finally{process['off']('SIGINT',_0xd96d7b),_0x5c769e&&(process['exitCode']=0x82);}}}function In(_0x23d44d){const _0x437b43=_0x33fd0a;_0x23d44d[_0x437b43(0x1b1)]?(console[_0x437b43(0x1b8)]('Structured\x20output\x20failed:\x20'+_0x23d44d[_0x437b43(0x1b1)][_0x437b43(0x1b6)]),process[_0x437b43(0x1c9)]=0x1):_0x23d44d[_0x437b43(0x152)]?(console[_0x437b43(0x1b8)](_0x437b43(0x1cc)+_0x23d44d[_0x437b43(0x1b8)]+').'),process['exitCode']=0x1):process[_0x437b43(0xf2)][_0x437b43(0x203)](JSON[_0x437b43(0x192)](_0x23d44d['structured'],null,0x2)+'\x0a');}function Tn(_0x38a986,_0xf61c5d){const _0x55c2e5=_0x33fd0a;let _0x316259=process[_0x55c2e5(0xf2)][_0x55c2e5(0x203)]['bind'](process[_0x55c2e5(0xf2)]),_0x2a509b=!0x1;return process[_0x55c2e5(0xf2)][_0x55c2e5(0x203)]=(..._0x47a4cf)=>{if(!_0x2a509b)return _0x316259(..._0x47a4cf);_0x32947d(_0xf61c5d,0x0),_0xb6a034(_0xf61c5d,0x0);let _0x1fc043=_0x316259(..._0x47a4cf);return _0x38a986['prompt'](!0x0),_0x1fc043;},{'show':()=>{const _0xec6e1c=_0x55c2e5;_0x2a509b=!0x0,_0x38a986[_0xec6e1c(0x13f)]();},'hide':()=>{_0x2a509b=!0x1;},'erase':()=>{_0x2a509b&&(_0x32947d(_0xf61c5d,0x0),_0xb6a034(_0xf61c5d,0x0)),_0x2a509b=!0x1;},'restore':()=>{const _0x442f37=_0x55c2e5;_0x2a509b=!0x1,process['stdout'][_0x442f37(0x203)]=_0x316259;}};}async function xn({prompt:_0x190a65,sendMessage:_0x3c2aea,onSigint:_0x2298a8,setAnswerInput:_0x1db51f,registerEventPrinter:_0x4b3ef2}){const _0x3f593d=_0x33fd0a;let _0x3edfd6=_0x25e2d2({'input':process[_0x3f593d(0x137)],'output':process[_0x3f593d(0xda)],'terminal':!0x0,'prompt':_0x3f593d(0x16a)}),_0x3e8d0f=Tn(_0x3edfd6,process['stderr']),_0x465867=[],_0x4a35fc,_0x3b5470,_0x42b20f,_0x1674da=!0x1,_0x53691c=!0x1,_0x279b00=!0x1,_0x52d126=Promise[_0x3f593d(0x1df)](),_0xbdd80c,_0x5d1a49=_0x4b3ef2(_0x2db496=>{const _0xd2a0f1=_0x3f593d;_0x2db496[_0xd2a0f1(0x174)]===_0xd2a0f1(0xa5)&&(_0x3e8d0f[_0xd2a0f1(0x221)](),_0x52d126=new Promise(_0x2263fe=>{_0xbdd80c=_0x2263fe;})),Ee(_0x2db496),_0x2db496[_0xd2a0f1(0x174)]===_0xd2a0f1(0x80)&&(_0xbdd80c?.(),_0xbdd80c=void 0x0,!_0x279b00&&!_0x1674da&&_0x3e8d0f[_0xd2a0f1(0xe0)]());}),_0x395f83=()=>{_0x53691c=!0x0,_0xbdd80c?.(),_0x2298a8(),_0x3edfd6['close']();};_0x3edfd6['on']('line',_0x2a5297=>{const _0x40d490=_0x3f593d;_0x42b20f?_0x42b20f(_0x2a5297):_0x4a35fc?_0x4a35fc[_0x40d490(0xfd)](_0x2a5297):_0x3b5470?_0x3b5470(_0x2a5297):_0x465867[_0x40d490(0xfd)](_0x2a5297);}),_0x3edfd6['once'](_0x3f593d(0x11e),()=>{const _0x1a7e33=_0x3f593d;_0x1674da=!0x0,_0x3e8d0f[_0x1a7e33(0x1fb)](),_0x4a35fc&&!_0x53691c&&_0x395f83(),_0x3b5470?.(null);});let _0x494c81=()=>_0x465867[_0x3f593d(0x16b)]>0x0?Promise[_0x3f593d(0x1df)](_0x465867['shift']()):_0x1674da?Promise[_0x3f593d(0x1df)](null):new Promise(_0x49d456=>{_0x3b5470=_0x4600a4=>{_0x3b5470=void 0x0,_0x49d456(_0x4600a4);};});_0x1db51f({'readLine':(_0x5ac158,_0x94b65e)=>new Promise((_0x465743,_0x1d0162)=>{const _0x24213c=_0x3f593d;if(_0x1674da&&!_0x4a35fc){_0x465743(null);return;}_0x4a35fc??=[];let _0x2d1acd=_0x4a35fc[_0x24213c(0x1d6)]();if(_0x2d1acd!==void 0x0){_0x465743(_0x2d1acd);return;}let _0x7a684e=()=>{const _0x168728=_0x24213c;_0x42b20f=void 0x0,_0x94b65e[_0x168728(0x1c7)](_0x168728(0x10e),_0x3e01af),_0x3e8d0f[_0x168728(0x1fb)](),_0x3edfd6[_0x168728(0x94)]('You>\x20');},_0x3e01af=()=>{const _0x2f56f9=_0x24213c;_0x7a684e(),_0x1d0162(new Error(_0x2f56f9(0x114)));};_0x94b65e['addEventListener']('abort',_0x3e01af,{'once':!0x0}),!_0x1674da&&(_0x42b20f=_0x2183a3=>{_0x7a684e(),_0x465743(_0x2183a3);},_0x3edfd6[_0x24213c(0x94)](_0x5ac158),_0x3e8d0f[_0x24213c(0xe0)]());}),'endQuestions':()=>{const _0x26db0e=_0x3f593d;_0x4a35fc&&_0x465867[_0x26db0e(0xfd)](..._0x4a35fc),_0x4a35fc=void 0x0;}}),_0x3edfd6['on'](_0x3f593d(0x1f1),_0x395f83),process[_0x3f593d(0xda)]['write'](_0x3f593d(0xf8));let _0x5ce2f3=async _0x5193d6=>{_0x279b00=!0x0;try{await _0x3c2aea(_0x5193d6);}finally{_0x279b00=!0x1;}};try{if(_0x190a65&&await _0x5ce2f3(_0x190a65),_0x53691c)return;!_0x1674da&&!_0xbdd80c&&_0x3e8d0f[_0x3f593d(0xe0)]();for(let _0x345acc=await _0x494c81();_0x345acc!==null&&(_0x3e8d0f[_0x3f593d(0x1fb)](),!_0x53691c);_0x345acc=await _0x494c81()){let _0x4a58fa=_0x345acc['trim']();if(_0x4a58fa===_0x3f593d(0x142))break;_0x4a58fa&&await _0x5ce2f3(_0x4a58fa),!_0x1674da&&!_0xbdd80c&&_0x3e8d0f[_0x3f593d(0xe0)]();}for(;!_0x53691c&&_0xbdd80c;)await _0x52d126;}finally{_0x1db51f(null),_0x5d1a49(),_0x3e8d0f[_0x3f593d(0x1b0)](),_0x3edfd6[_0x3f593d(0x1d7)](_0x3f593d(0x1f1),_0x395f83),_0x3edfd6[_0x3f593d(0x11e)]();}}async function Dn(){const _0x4fa838=_0x33fd0a;let _0x1dad05=Rt(process[_0x4fa838(0x21e)]['slice'](0x2));if(_0x1dad05['outputFormat']==='text'){await fe(_0x1dad05);return;}let _0x3902f8=Pt();try{await fe(_0x1dad05);}finally{_0x3902f8();}}async function fe(_0x25ab96){const _0x2160f3=_0x33fd0a;if(_0x25ab96[_0x2160f3(0x1a2)]){Ct();return;}if(_0x25ab96[_0x2160f3(0x196)]){console['log'](Lt());return;}if(_0x25ab96[_0x2160f3(0x12f)]===_0x2160f3(0xf4)){await kn(_0x25ab96);return;}if(_0x25ab96[_0x2160f3(0x12f)]===_0x2160f3(0x1b2)){await Sn(_0x25ab96[_0x2160f3(0x13f)]);return;}if(_0x25ab96['subcommand']===_0x2160f3(0x140)){await Mt();return;}if(_0x25ab96[_0x2160f3(0x12f)]===_0x2160f3(0x1af)){await Bt(_0x25ab96);return;}if(_0x25ab96['subcommand']===_0x2160f3(0xc1)){await Wt(_0x25ab96);return;}if(_0x25ab96[_0x2160f3(0x12f)]===_0x2160f3(0x13e)){await Zt(_0x25ab96);return;}if(_0x25ab96[_0x2160f3(0x12f)]===_0x2160f3(0x209)){await Qt(_0x25ab96);return;}if(_0x25ab96[_0x2160f3(0x12f)]===_0x2160f3(0x233)){await nn(_0x25ab96);return;}if(_0x25ab96[_0x2160f3(0x12f)]===_0x2160f3(0x12d)||_0x25ab96[_0x2160f3(0x12f)]===_0x2160f3(0x127)||_0x25ab96[_0x2160f3(0x12f)]===_0x2160f3(0x1f3)){await an(_0x25ab96,_0x25ab96['subcommand']);return;}if(_0x25ab96[_0x2160f3(0x12f)]===_0x2160f3(0x20f)){await cn(_0x25ab96);return;}if(_0x25ab96[_0x2160f3(0x12f)]===_0x2160f3(0x98)){await mn(_0x25ab96);return;}if(_0x25ab96['subcommand']==='delegations'){await gn(_0x25ab96);return;}if(_0x25ab96[_0x2160f3(0x12f)]===_0x2160f3(0x20b)){await wn(_0x25ab96);return;}if(_0x25ab96[_0x2160f3(0x12f)]===_0x2160f3(0x104)){await _0x3fd6b5(_0x25ab96[_0x2160f3(0x13f)],{'runnerUrl':_0x25ab96[_0x2160f3(0x171)],'backendUrl':_0x25ab96['backendUrl'],'interopPath':_0x25ab96['interopPath'],'workerId':_0x25ab96[_0x2160f3(0x1b7)]});return;}if(_0x25ab96[_0x2160f3(0x267)]){await Gt();return;}await En(_0x25ab96);}var Un=process.env.NODE_ENV==='test'||!!process.env.JEST_WORKER_ID;Un||Dn()[_0x33fd0a(0x19c)](_0x10ef23=>{const _0x3dafbb=_0x33fd0a;console[_0x3dafbb(0x1b8)](_0x10ef23[_0x3dafbb(0x163)]||_0x10ef23[_0x3dafbb(0x1b6)]||_0x10ef23),process[_0x3dafbb(0x8a)](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.206.0-preview.20261123172026",
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.206.0-preview.20261123172026"
25
+ "@uipath/delegate-sdk": "1.207.0-preview.20261124183129"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@types/node": "^22.0.0",