@uipath/delegate-cli 1.206.0-preview.20261120052730 → 1.206.0-preview.20261120171831
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 +6 -4
- package/dist/cli.mjs +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -112,6 +112,8 @@ Use `/exit` or EOF (Ctrl+D on an empty input line) to finish. EOF lets an active
|
|
|
112
112
|
|
|
113
113
|
`--print` / `-p` sends one prompt and exits after the response and any tool execution. This mode is also automatic when stdin **or** stdout is not a terminal, or when the prompt is `-`. Piped lines form one prompt, not separate turns. Missing input in one-turn mode exits with code 2.
|
|
114
114
|
|
|
115
|
+
One-turn runs use the SDK's tool approval policy. Permissions set to **Ask** are approved automatically. The agent can perform Integration Service writes during the turn, including creating a draft. The agent can still write when asked for a preview. Automation Ops blocks prevent the corresponding tool calls.
|
|
116
|
+
|
|
115
117
|
The CLI prints the session ID to stderr when a session starts. Resume later with `delegate-cli --session <id>`, or send one follow-up with `delegate-cli --print --session <id> "..."`. Repeat the desired project, working-directory, model and tool options when starting a new invocation. The SDK reuses the session; the backend stores conversation history. A project ID shares local files but does not preserve the conversation by itself. Fatal errors exit after cleanup; the session ID can be used to resume.
|
|
116
118
|
|
|
117
119
|
Assistant responses go to stdout; terminal prompts, session IDs and progress go to stderr. `--verbose` additionally puts SDK diagnostics on stdout (on stderr under `--output-format json | stream-json`).
|
|
@@ -375,15 +377,15 @@ Three levels of machine access, independent of conversation mode:
|
|
|
375
377
|
| `--model <id>` | `gpt_5_6_luna` | LLM id (use `delegate-cli models` to discover). Also via `MODEL` env. For a prompt, the id is checked against the tenant's catalog before interop starts: an unknown or plan-locked id fails and lists the valid ids. If the catalog cannot be read, the run continues with a warning. For `evaluate` / `rerank` / `verify` it replaces the request's `model` (no `MODEL` fallback). `complete` and a `--json-schema` extraction use the same model as a prompt. |
|
|
376
378
|
| `--headless` | off | Skip interop entirely. Text-only prompts: no screen **and** no file, Office, PDF or shell tools. Skills still load — they are read through Node, not interop. |
|
|
377
379
|
| `--no-computer-use` | off | Keep interop, drop the screen. File, Office, PDF and shell tools keep working; screenshots, the window list, the focused element and the UI-automation tools (`AppFind`, `AppAct`, `AppGetDescriptor`) all go. Cuts the image tokens and the per-turn screen capture, keeps desktop window titles off the wire, and removes the agent's ability to act on the desktop UI. The right default for document and file work on a real machine. `--headless` implies it. |
|
|
378
|
-
| `--keep-alive` | off |
|
|
379
|
-
| `--cleanup` | — | Force-stop
|
|
380
|
+
| `--keep-alive` | off | Keep a spawned interop running for reuse by later invocations with the same issuer. A session reuses a healthy persistent interop when one is available and otherwise starts its own. |
|
|
381
|
+
| `--cleanup` | — | Force-stop interops recorded in `~/.delegate-sdk/interop*.pid`, including private interops used by other active sessions, and exit. A PID is signalled only while its port reports that PID on `/health`. A record is removed once its PID has stopped. Otherwise the record is kept, and its PID and port are printed to stderr so you can stop that process yourself. |
|
|
380
382
|
| `--no-connections` | off | Disable orchestrator ConnectionService (silences 404 noise on tenants without orchestrator). |
|
|
381
383
|
| `--no-security` | off | Disable tool security wrapper. Debug only. |
|
|
382
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. |
|
|
383
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). |
|
|
384
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. |
|
|
385
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`). |
|
|
386
|
-
| `--project <id>` | — | Bind the session to a project: wiki, plans
|
|
388
|
+
| `--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. |
|
|
387
389
|
| `--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**. |
|
|
388
390
|
| `--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. |
|
|
389
391
|
| `--effort <tier>` | model's recommended tier | Reasoning effort: `low` / `medium` / `high` / `xhigh` / `max` (SDK `effort`). Any other value exits with code 2. |
|
|
@@ -601,7 +603,7 @@ Three things differ from a cloud login:
|
|
|
601
603
|
|
|
602
604
|
Before the browser opens, `login` checks that the URL really serves a UiPath Identity, and refuses it otherwise; after the token exchange it asks the deployment's Delegate service (`GET /v1/config`) whether it supports this SDK. `--skip-env-check` skips both. The `@uipath/delegate-sdk` README documents exactly what each check asks and why they run at different moments.
|
|
603
605
|
|
|
604
|
-
Computer use works on a self-hosted deployment too
|
|
606
|
+
Computer use works on a self-hosted deployment too. The interop sidecar starts with the deployment as its trusted OIDC issuer. Persistent sidecars for different deployments run independently.
|
|
605
607
|
|
|
606
608
|
---
|
|
607
609
|
|
package/dist/cli.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
const _0x53171e=_0x35d8;(function(_0x43642e,_0x5096ac){const _0x18d997=_0x35d8,_0x3d58ff=_0x43642e();while(!![]){try{const _0x56a46a=parseInt(_0x18d997(0x1e6))/0x1+parseInt(_0x18d997(0x2db))/0x2+parseInt(_0x18d997(0x2cc))/0x3+-parseInt(_0x18d997(0x2a8))/0x4+parseInt(_0x18d997(0x22d))/0x5*(parseInt(_0x18d997(0x183))/0x6)+parseInt(_0x18d997(0x19d))/0x7+-parseInt(_0x18d997(0x285))/0x8;if(_0x56a46a===_0x5096ac)break;else _0x3d58ff['push'](_0x3d58ff['shift']());}catch(_0x13159c){_0x3d58ff['push'](_0x3d58ff['shift']());}}}(_0x3367,0xf28b1));const __dirname=import.meta.dirname;import _0x1ad1dc from'fs';import _0x3f3c33 from'path';function _0x35d8(_0x1fa246,_0x4d6958){_0x1fa246=_0x1fa246-0x13a;const _0x3367d0=_0x3367();let _0x35d8c3=_0x3367d0[_0x1fa246];return _0x35d8c3;}import{clearLine as _0x4475f5,createInterface as _0x41a7e8,cursorTo as _0x488883}from'node:readline';import{isOnStepGrid as _0x683a45}from'@uipath/delegate-sdk';var _=_0x53171e(0x2a5);function S(_0x382c8f){const _0x1a6d3c=_0x53171e;return _0x382c8f['replace'](/\u001b\[[0-?]*[ -/]*[@-~]|\u001b\][^\u0007\u001b]*(\u0007|\u001b\\)?|\u001b./g,'')[_0x1a6d3c(0x1e2)](/[\u0000-\u0008\u000b-\u001f\u007f-\u009f]/g,'');}function V(_0x63e584){const _0x3b46b8=_0x53171e;return S(_0x63e584[_0x3b46b8(0x317)]??(_0x63e584[_0x3b46b8(0x2f9)]===_?_0x3b46b8(0x295):_0x63e584['id']));}function Te(_0x2b95fe,_0x166b6b,_0x1b69a0){const _0x1f1dcf=_0x53171e;let _0x142888=[''+(_0x1b69a0>0x1?'['+_0x166b6b+'/'+_0x1b69a0+']\x20':'')+S(_0x2b95fe[_0x1f1dcf(0x18d)])+(_0x2b95fe[_0x1f1dcf(0x21b)]?_0x1f1dcf(0x301):''),S(_0x2b95fe[_0x1f1dcf(0x326)])];return _0x2b95fe[_0x1f1dcf(0x175)]===_0x1f1dcf(0x31c)&&_0x2b95fe['options'][_0x1f1dcf(0x1cb)]((_0x111171,_0x36d7e3)=>{const _0xe72267=_0x1f1dcf;let _0xa0faa7=_0x111171[_0xe72267(0x2f9)]===_?_0xe72267(0x1df):'',_0xc0232a=_0x111171[_0xe72267(0x1fc)]?_0xe72267(0x2f5)+S(_0x111171[_0xe72267(0x1fc)]):'';_0x142888[_0xe72267(0x2a6)]('\x20\x20'+(_0x36d7e3+0x1)+'.\x20'+V(_0x111171)+_0xa0faa7+_0xc0232a);}),_0x142888['join']('\x0a');}function X(_0x20d185,_0x8fc93e){const _0x42b265=_0x53171e;let _0x36fd25=_0x20d185[_0x42b265(0x143)](/[\s,]+/)[_0x42b265(0x15d)](Boolean);if(_0x36fd25[_0x42b265(0x2e6)]===0x0)return null;let _0x3ac77a=_0x36fd25[_0x42b265(0x253)](_0x2551d7=>/^\d+$/[_0x42b265(0x2f6)](_0x2551d7)?Number(_0x2551d7):NaN);return _0x3ac77a['some'](_0x3c2177=>!Number[_0x42b265(0x2c9)](_0x3c2177)||_0x3c2177<0x1||_0x3c2177>_0x8fc93e)?null:[...new Set(_0x3ac77a)][_0x42b265(0x253)](_0x400ce7=>_0x400ce7-0x1);}function xe(_0x1afcf8){const _0x18ca92=_0x53171e;return typeof _0x1afcf8==_0x18ca92(0x27b)&&_0x1afcf8!==null&&_0x18ca92(0x268)in _0x1afcf8;}async function R(_0x5ced55,_0x314731,_0x3934bb,_0x203600){for(;;){let _0x4913a6=(await _0x5ced55(_0x314731))['trim']();if(_0x4913a6==='')return;let _0x36daf1=_0x203600(_0x4913a6);if(!xe(_0x36daf1))return _0x36daf1;_0x3934bb(_0x36daf1['refused']+'\x0a');}}async function De(_0x434093,_0x5a0565,_0x5bf70d){const _0x33ddfd=_0x53171e;if(_0x434093[_0x33ddfd(0x213)]['length']===0x0||_0x434093[_0x33ddfd(0x213)][_0x33ddfd(0x2dc)](_0x27f8a8=>_0x27f8a8['kind']===_)){let _0x58029b=(await _0x5a0565(_0x33ddfd(0x319)))['trim']();return _0x58029b===''?void 0x0:{'text':_0x58029b};}let _0x54f650=_0x434093['options'][_0x33ddfd(0x25f)](_0x17e4db=>_0x17e4db[_0x33ddfd(0x2f9)]===_),_0x4a7c79=_0x434093['multiSelect']?_0x33ddfd(0x32f):'Number'+(_0x54f650>=0x0?_0x33ddfd(0x2f4):'')+_0x33ddfd(0x2ef),_0x180d12=await R(_0x5a0565,_0x4a7c79,_0x5bf70d,_0x5b5977=>{const _0x410aa2=_0x33ddfd;let _0x4a97ce=X(_0x5b5977,_0x434093[_0x410aa2(0x213)]['length']);return _0x4a97ce&&(_0x434093[_0x410aa2(0x173)]||_0x4a97ce['length']===0x1)?_0x4a97ce:!_0x434093[_0x410aa2(0x173)]&&_0x54f650>=0x0?{'typed':_0x5b5977}:{'refused':_0x434093['multiSelect']?_0x410aa2(0x23d)+_0x434093[_0x410aa2(0x213)][_0x410aa2(0x2e6)]+'.':_0x410aa2(0x279)+_0x434093['options'][_0x410aa2(0x2e6)]+'.'};});if(_0x180d12===void 0x0)return;if(!Array[_0x33ddfd(0x250)](_0x180d12))return{'text':_0x180d12['typed']};let _0x22eed6=_0x180d12[_0x33ddfd(0x253)](_0x34a25a=>_0x434093[_0x33ddfd(0x213)][_0x34a25a]['id']),_0x6c7a24=_0x22eed6[_0x33ddfd(0x163)](_)?await R(_0x5a0565,V(_0x434093[_0x33ddfd(0x213)][_0x54f650])+':\x20',_0x5bf70d,_0xc9c1f3=>_0xc9c1f3):void 0x0;if(!(_0x22eed6[_0x33ddfd(0x163)](_)&&_0x6c7a24===void 0x0))return _0x434093[_0x33ddfd(0x173)]?{'optionIds':_0x22eed6,..._0x6c7a24!==void 0x0?{'text':_0x6c7a24}:{}}:_0x6c7a24!==void 0x0?{'text':_0x6c7a24}:{'optionId':_0x22eed6[0x0]};}async function Ue(_0x288c96,_0x5ef270,_0x5b455d){const _0x261970=_0x53171e;let _0x274974={};for(let _0x16f8bd of _0x288c96[_0x261970(0x231)]){let _0x1a98d8=_0x16f8bd[_0x261970(0x2fd)]??_0x16f8bd[_0x261970(0x26a)],_0x586c65=_0x16f8bd[_0x261970(0x226)]??0x1,_0xdb7f6=_0x16f8bd[_0x261970(0x2e8)]?'\x20'+S(_0x16f8bd[_0x261970(0x2e8)]):'',_0x34b3e2=_0x261970(0x315)+_0x16f8bd[_0x261970(0x26a)]+_0x261970(0x303)+_0x16f8bd[_0x261970(0x1bf)]+(_0x586c65!==0x1?_0x261970(0x196)+_0x586c65:''),_0x4cf841=await R(_0x5ef270,S(_0x16f8bd[_0x261970(0x317)])+'\x20['+_0x16f8bd[_0x261970(0x26a)]+'-'+_0x16f8bd['max']+_0xdb7f6+']\x20(Enter\x20for\x20'+_0x1a98d8+'):\x20',_0x5b455d,_0xa2a65b=>{const _0x41882e=_0x261970;let _0x5d9520=Number(_0xa2a65b);return Number[_0x41882e(0x2d8)](_0x5d9520)&&_0x5d9520>=_0x16f8bd[_0x41882e(0x26a)]&&_0x5d9520<=_0x16f8bd[_0x41882e(0x1bf)]&&_0x683a45(_0x5d9520,_0x16f8bd[_0x41882e(0x26a)],_0x586c65)?_0x5d9520:{'refused':_0x41882e(0x161)+_0x34b3e2+'.'};});_0x274974[_0x16f8bd['id']]=_0x4cf841??_0x1a98d8;}return{'values':_0x274974};}async function Ne(_0x50e8f5,_0x424566,_0x2eed36){const _0x421464=_0x53171e;_0x2eed36(_0x50e8f5[_0x421464(0x1d5)][_0x421464(0x253)]((_0x31bfce,_0x32172e)=>'\x20\x20'+(_0x32172e+0x1)+'.\x20'+S(_0x31bfce[_0x421464(0x317)]))[_0x421464(0x2bd)]('\x0a')+'\x0a');let _0x27c85e={};for(let _0x215375 of _0x50e8f5[_0x421464(0x22e)]){let _0x4417bc=await R(_0x424566,S(_0x215375[_0x421464(0x317)])+_0x421464(0x29d),_0x2eed36,_0x22a5ae=>{const _0x109957=_0x421464;let _0x3e35fc=X(_0x22a5ae,_0x50e8f5['buckets'][_0x109957(0x2e6)]);return _0x3e35fc&&_0x3e35fc[_0x109957(0x2e6)]===0x1?_0x3e35fc[0x0]:{'refused':_0x109957(0x279)+_0x50e8f5[_0x109957(0x1d5)][_0x109957(0x2e6)]+'.'};});if(_0x4417bc===void 0x0)continue;let _0x2a2544=_0x50e8f5[_0x421464(0x1d5)][_0x4417bc],_0x2b0e48={};for(let _0x4a5c2e of _0x2a2544[_0x421464(0x2c7)]??[]){let _0x3f2865='\x20\x20'+S(_0x4a5c2e[_0x421464(0x317)])+(_0x4a5c2e[_0x421464(0x21b)]?_0x421464(0x301):'')+':\x20',_0x465120=await R(_0x424566,_0x3f2865,_0x2eed36,_0x2259a1=>_0x2259a1);for(;_0x465120===void 0x0&&!_0x4a5c2e['optional'];)_0x2eed36(S(_0x4a5c2e[_0x421464(0x317)])+_0x421464(0x15b)),_0x465120=await R(_0x424566,_0x3f2865,_0x2eed36,_0x4959aa=>_0x4959aa);_0x465120!==void 0x0&&(_0x2b0e48[_0x4a5c2e['id']]=_0x465120);}_0x27c85e[_0x215375['id']]={'bucket':_0x2a2544['id'],...Object['keys'](_0x2b0e48)[_0x421464(0x2e6)]>0x0?{'subFields':_0x2b0e48}:{}};}return Object['keys'](_0x27c85e)['length']>0x0?{'assignments':_0x27c85e}:void 0x0;}async function _e(_0x5b6560,_0x3b6901,_0x237b5a){const _0x12e979=_0x53171e;if(_0x5b6560['type']==='text')return De(_0x5b6560,_0x3b6901,_0x237b5a);if(_0x5b6560[_0x12e979(0x175)]==='numeric')return Ue(_0x5b6560,_0x3b6901,_0x237b5a);if(_0x5b6560[_0x12e979(0x175)]===_0x12e979(0x2da))return Ne(_0x5b6560,_0x3b6901,_0x237b5a);let _0x5e508a=(await _0x3b6901(_0x12e979(0x2d4)))[_0x12e979(0x16b)]();return _0x5e508a===''?void 0x0:{'text':_0x5e508a};}function Z(_0x589ba5,_0x37ce0c){return async _0x3faab9=>{const _0x159362=_0x35d8;let _0x256cfa=_0x589ba5();if(!_0x256cfa)throw new Error('There\x20is\x20no\x20terminal\x20input\x20to\x20answer\x20from.');let _0x1cd302=async _0x7a765d=>{const _0x2e37bf=_0x35d8;if(_0x3faab9[_0x2e37bf(0x2b1)]['aborted'])throw new Error('The\x20turn\x20was\x20cancelled.');let _0x7b7695=await _0x256cfa['readLine'](_0x7a765d,_0x3faab9[_0x2e37bf(0x2b1)]);if(_0x7b7695===null)throw new Error(_0x2e37bf(0x228));return _0x7b7695;};try{_0x37ce0c('\x0a'+(_0x3faab9[_0x159362(0x291)]?S(_0x3faab9[_0x159362(0x291)])+'\x0a':''));let _0x377271={};for(let [_0x335ea8,_0x2a4499]of _0x3faab9[_0x159362(0x2af)][_0x159362(0x204)]()){_0x37ce0c('\x0a'+Te(_0x2a4499,_0x335ea8+0x1,_0x3faab9[_0x159362(0x2af)][_0x159362(0x2e6)])+'\x0a');let _0x4014d6=await _e(_0x2a4499,_0x1cd302,_0x37ce0c);_0x4014d6!==void 0x0&&(_0x377271[_0x2a4499['id']]=_0x4014d6);}return{'answers':_0x377271};}finally{_0x256cfa[_0x159362(0x31a)]();}};}import{BUSINESS_ANALYSIS_PRELOADED_SKILLS as _0x5aca25,DelegateAgent as _0x5aacc3,cancelTurn as _0x3d580a,InteropProcess as _0x9cd4fb,complete as _0x5871fa,DEFAULT_MODEL as _0x35432f,createBackendClient as _0x52f162,evaluate as _0x2c4960,isCompletionRequestError as _0x482692,isEvaluationRequestError as _0x1ffff9,isTranscriptionError as _0x2a3e96,rerank as _0x33ffcc,transcribe as _0x3a5bb3,verify as _0x1db8ab,acceptDelegation as _0x4585f6,cancelDelegation as _0x432f08,claimDelegation as _0x437b,completeDelegation as _0x440340,createDelegation as _0x11729e,deleteDelegation as _0x477d3b,dismissDelegation as _0x498143,getSessionDelegations as _0x4864db,isDelegationError as _0x3ab0cd,listDelegations as _0x5e47e3,listOrgUsers as _0x5ca04c,previewDelegation as _0x6d1809,TurnResultCollector as _0x3a65a8,agentEventToJsonLine as _0x36f52e,describeBaseUrlRejection as _0x148dbd,getActivitySummary as _0x51c1e7,getAuthFilePath as _0x53c2d3,getByoWarnings as _0xc7b0a9,getCartographerAllowance as _0x3d1a34,getDailyBreakdown as _0x482943,getLicensingSummary as _0x2c8be2,getMonthlySpending as _0x51afab,isOutputFormat as _0x4d45d3,isCloudBaseUrl as _0x3e0acd,isSafeProjectFolderSegment as _0x30497c,listModels as _0x31c7f2,listSessions as _0x14b3e8,getSession as _0x25ec6e,renameSession as _0x33676f,deleteSession as _0x2a5248,deleteSessionTaskLog as _0xd08cca,forkSession as _0x235d08,isBackendRequestError as _0x15464b,MAX_SESSION_PAGE_SIZE as _0x11c5ee,listTenants as _0x3895e5,loadAndRefreshAuth as _0x338ed8,loadAndRefreshSdkLogin as _0x3fac2e,parsePlatformBaseUrl as _0x16209d,resolveBackendUrl as _0x1915e6,runHealthCheck as _0x35dc59,runHostCommand as _0x311cac,runLoginFlow as _0x511e40,runTurnForResult as _0x58a7da,saveAuthData as _0x4f0878,switchTenant as _0x5da9ce,toJsonLine as _0x400bb9,ENV_TO_CLOUD as _0x3ac3fe,OUTPUT_FORMATS as _0x15c6ce}from'@uipath/delegate-sdk';var Nt=[_0x53171e(0x17f),'tenant',_0x53171e(0x194),_0x53171e(0x1a6),_0x53171e(0x282),_0x53171e(0x22c),'check',_0x53171e(0x1dd),_0x53171e(0x23a),_0x53171e(0x215),_0x53171e(0x2d9),_0x53171e(0x2a9),_0x53171e(0x20f),'transcribe',_0x53171e(0x2cb),'org-users'],se=['',_0x53171e(0x194),_0x53171e(0x22c),_0x53171e(0x310),_0x53171e(0x1dd),_0x53171e(0x23a),'evaluate',_0x53171e(0x2d9),'verify',_0x53171e(0x20f),_0x53171e(0x26d),_0x53171e(0x2cb),'org-users'],re=[_0x53171e(0x289),_0x53171e(0x182),_0x53171e(0x188),_0x53171e(0x281),_0x53171e(0x1bf)],_t=_0x5aca25;function w(_0x3277eb,_0x3a76bc,_0x1aa365,_0x30faee){const _0x509ef3=_0x53171e;let _0x192416=_0x3277eb[_0x3a76bc];return(!_0x192416||_0x192416[_0x509ef3(0x2e6)]>0x1&&_0x192416['startsWith']('-'))&&(console['error'](_0x1aa365+_0x509ef3(0x2c5)+_0x30faee+'.'),process['exit'](0x2)),_0x192416;}function J(_0x3d1049,_0x18a918,_0x5af75d,_0x3a102c){const _0x1eac1f=_0x53171e;let _0x4027d5=w(_0x3d1049,_0x18a918,_0x5af75d,_0x1eac1f(0x192)),_0x4d71df=Number(_0x4027d5);return(!/^\d+$/[_0x1eac1f(0x2f6)](_0x4027d5)||_0x4d71df<0x1||!Number['isSafeInteger'](_0x4d71df)||_0x3a102c!==void 0x0&&_0x4d71df>_0x3a102c)&&(console[_0x1eac1f(0x225)](_0x5af75d+_0x1eac1f(0x17e)+(_0x3a102c===void 0x0?_0x1eac1f(0x1a1):_0x1eac1f(0x172)+_0x3a102c)+_0x1eac1f(0x1fa)+_0x4027d5+'.'),process[_0x1eac1f(0x296)](0x2)),_0x4d71df;}function Rt(_0x101196){const _0x11990a=_0x53171e;let _0x441753={'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':_0x11990a(0x31c),'preloadSkills':[],'attachments':[],'skipEnvCheck':!0x1,'includeSubAgents':!0x1,'operands':[],'help':!0x1,'version':!0x1};Nt[_0x11990a(0x163)](_0x101196[0x0])&&(_0x441753[_0x11990a(0x16f)]=_0x101196[0x0],_0x101196=_0x101196[_0x11990a(0x244)](0x1));let _0x12745d=[];for(let _0x2d9002=0x0;_0x2d9002<_0x101196[_0x11990a(0x2e6)];_0x2d9002++){let _0x3a7dea=_0x101196[_0x2d9002];switch(_0x3a7dea){case'--print':case'-p':_0x441753[_0x11990a(0x216)]=!0x0;break;case _0x11990a(0x13f):_0x441753[_0x11990a(0x2b9)]=!0x0;break;case _0x11990a(0x16a):_0x441753[_0x11990a(0x331)]=!0x0;break;case'--headless':_0x441753[_0x11990a(0x2ee)]=!0x0;break;case _0x11990a(0x1fe):_0x441753[_0x11990a(0x260)]=!0x0;break;case _0x11990a(0x13d):_0x441753['cartographer']=!0x0,_0x441753[_0x11990a(0x260)]=!0x0,_0x441753[_0x11990a(0x30a)][_0x11990a(0x2a6)](..._t);break;case'--no-connections':_0x441753[_0x11990a(0x18f)]=!0x0;break;case'--no-security':_0x441753[_0x11990a(0x179)]=!0x0;break;case _0x11990a(0x309):_0x441753['noMemory']=!0x0;break;case'--task-automation':_0x441753[_0x11990a(0x1a7)]=!0x0;break;case _0x11990a(0x1c6):case'-q':_0x441753[_0x11990a(0x333)]=!0x0;break;case'--verbose':_0x441753['verbose']=!0x0;break;case'--backend':_0x441753[_0x11990a(0x14e)]=_0x101196[++_0x2d9002];break;case _0x11990a(0x1f3):_0x441753[_0x11990a(0x2e9)]=_0x101196[++_0x2d9002];break;case _0x11990a(0x1aa):_0x441753[_0x11990a(0x269)]=_0x101196[++_0x2d9002];break;case _0x11990a(0x1f6):_0x441753[_0x11990a(0x332)]=_0x101196[++_0x2d9002];break;case _0x11990a(0x1b7):_0x441753[_0x11990a(0x27f)]=_0x101196[++_0x2d9002];break;case _0x11990a(0x1e5):_0x441753[_0x11990a(0x30a)][_0x11990a(0x2a6)](w(_0x101196,++_0x2d9002,_0x3a7dea,_0x11990a(0x162)));break;case _0x11990a(0x1d3):{let _0x252463=w(_0x101196,++_0x2d9002,_0x3a7dea,'a\x20project\x20id');_0x30497c(_0x252463)||(console['error'](_0x11990a(0x1e3)+_0x252463+_0x11990a(0x27e)),process[_0x11990a(0x296)](0x2)),_0x441753[_0x11990a(0x316)]=_0x252463;break;}case'--output-format':{let _0x4a82e5=w(_0x101196,++_0x2d9002,_0x3a7dea,_0x11990a(0x154)+_0x15c6ce[_0x11990a(0x2bd)]('\x20|\x20')+')');_0x4d45d3(_0x4a82e5)||(console['error'](_0x11990a(0x1a5)+_0x4a82e5+_0x11990a(0x1b9)+_0x15c6ce[_0x11990a(0x2bd)](_0x11990a(0x1f5))+'.'),process['exit'](0x2)),_0x441753[_0x11990a(0x252)]=_0x4a82e5;break;}case'--session':_0x441753[_0x11990a(0x32e)]=w(_0x101196,++_0x2d9002,_0x3a7dea,_0x11990a(0x32a));break;case _0x11990a(0x280):_0x441753[_0x11990a(0x152)]=J(_0x101196,++_0x2d9002,_0x3a7dea);break;case _0x11990a(0x254):_0x441753[_0x11990a(0x19c)]=J(_0x101196,++_0x2d9002,_0x3a7dea,_0x11c5ee);break;case _0x11990a(0x1e9):_0x441753[_0x11990a(0x2c8)]=!0x0;break;case _0x11990a(0x167):_0x441753[_0x11990a(0x2eb)]=w(_0x101196,++_0x2d9002,_0x3a7dea,_0x11990a(0x23e));break;case _0x11990a(0x2be):{let _0x4a4113=_0x3f3c33[_0x11990a(0x29e)](process[_0x11990a(0x232)](),w(_0x101196,++_0x2d9002,_0x3a7dea,'a\x20file\x20path'));_0x1ad1dc[_0x11990a(0x20e)](_0x4a4113)||(console[_0x11990a(0x225)]('--attach:\x20no\x20such\x20file\x20or\x20folder:\x20'+_0x4a4113),process[_0x11990a(0x296)](0x2)),_0x441753['attachments']['push'](_0x4a4113);break;}case _0x11990a(0x24b):_0x441753[_0x11990a(0x1ce)]=w(_0x101196,++_0x2d9002,_0x3a7dea,_0x11990a(0x25a));break;case _0x11990a(0x320):_0x441753['delegateTo']=w(_0x101196,++_0x2d9002,_0x3a7dea,_0x11990a(0x2ca));break;case _0x11990a(0x30d):_0x441753[_0x11990a(0x1c4)]=w(_0x101196,++_0x2d9002,_0x3a7dea,_0x11990a(0x217));break;case _0x11990a(0x2ff):_0x441753[_0x11990a(0x275)]=J(_0x101196,++_0x2d9002,_0x3a7dea,0x16d);break;case'--working-dir':_0x441753[_0x11990a(0x2dd)]=_0x3f3c33['resolve'](process[_0x11990a(0x232)](),w(_0x101196,++_0x2d9002,_0x3a7dea,_0x11990a(0x1d0)));break;case _0x11990a(0x1f9):_0x441753['bundledSkillsPath']=_0x3f3c33['resolve'](process[_0x11990a(0x232)](),w(_0x101196,++_0x2d9002,_0x3a7dea,'a\x20directory\x20path'));break;case _0x11990a(0x2f2):{let _0x2b2cc3=w(_0x101196,++_0x2d9002,_0x3a7dea,_0x11990a(0x1be));re['includes'](_0x2b2cc3)||(console['error'](_0x11990a(0x327)+_0x2b2cc3+_0x11990a(0x1b9)+re[_0x11990a(0x2bd)](_0x11990a(0x1f5))+'.'),process['exit'](0x2)),_0x441753[_0x11990a(0x1f4)]=_0x2b2cc3;break;}case _0x11990a(0x1ab):{let _0x17d215=_0x101196[++_0x2d9002];(!_0x17d215||_0x17d215[_0x11990a(0x170)]('--'))&&(console[_0x11990a(0x225)](_0x11990a(0x200)),process[_0x11990a(0x296)](0x2)),_0x441753[_0x11990a(0x1b4)]=_0x17d215;break;}case _0x11990a(0x243):{let _0x30209c=_0x101196[++_0x2d9002];[_0x11990a(0x140),_0x11990a(0x1ac),'production',_0x11990a(0x238)]['includes'](_0x30209c)||(console[_0x11990a(0x225)](_0x11990a(0x300)+_0x30209c+'.\x20Use\x20alpha\x20|\x20staging\x20|\x20production\x20|\x20localhost.'),process[_0x11990a(0x296)](0x2)),_0x441753[_0x11990a(0x2a4)]=_0x30209c;break;}case _0x11990a(0x1d8):case _0x11990a(0x210):{let _0x46d7a1=w(_0x101196,++_0x2d9002,_0x3a7dea,_0x11990a(0x20d)),_0x3b131b=_0x16209d(_0x46d7a1);if(_0x3b131b['ok']===!0x1){console['error'](_0x148dbd(_0x46d7a1,_0x3b131b[_0x11990a(0x32b)])),process[_0x11990a(0x296)](0x2);break;}_0x441753[_0x11990a(0x14b)]=_0x3b131b[_0x11990a(0x224)];break;}case _0x11990a(0x201):_0x441753[_0x11990a(0x308)]=!0x0;break;case'-h':case _0x11990a(0x264):_0x441753['help']=!0x0;break;case'-v':case _0x11990a(0x1d6):_0x441753[_0x11990a(0x2c6)]=!0x0;break;default:_0x3a7dea[_0x11990a(0x170)]('--')&&(console['error'](_0x11990a(0x262)+_0x3a7dea),process[_0x11990a(0x296)](0x2)),_0x12745d[_0x11990a(0x2a6)](_0x3a7dea);}}return _0x441753[_0x11990a(0x1b4)]!==void 0x0&&_0x441753[_0x11990a(0x16f)]!=='login'&&(console[_0x11990a(0x225)](_0x11990a(0x2ac)),process['exit'](0x2)),_0x441753['url']!==void 0x0&&_0x441753[_0x11990a(0x2a4)]!==void 0x0&&(console[_0x11990a(0x225)](_0x11990a(0x1e8)),process['exit'](0x2)),_0x441753[_0x11990a(0x14b)]!==void 0x0&&_0x441753[_0x11990a(0x16f)]!==_0x11990a(0x17f)&&(console[_0x11990a(0x225)](_0x11990a(0x27a)),process['exit'](0x2)),_0x441753[_0x11990a(0x275)]!==void 0x0&&_0x441753['subcommand']!==_0x11990a(0x23a)&&(console[_0x11990a(0x225)](_0x11990a(0x223)),process[_0x11990a(0x296)](0x2)),_0x441753[_0x11990a(0x2eb)]!==void 0x0&&(_0x441753['subcommand']!==_0x11990a(0x20f)&&_0x441753['subcommand']!==''||_0x441753[_0x11990a(0x331)])&&(console[_0x11990a(0x225)](_0x11990a(0x2bc)),process[_0x11990a(0x296)](0x2)),_0x441753[_0x11990a(0x189)][_0x11990a(0x2e6)]>0x0&&(_0x441753[_0x11990a(0x16f)]!==''||_0x441753[_0x11990a(0x331)])&&(console['error'](_0x11990a(0x29b)),process[_0x11990a(0x296)](0x2)),_0x441753[_0x11990a(0x1a7)]&&(_0x441753[_0x11990a(0x16f)]!==''||_0x441753[_0x11990a(0x331)])&&(console[_0x11990a(0x225)](_0x11990a(0x28b)),process[_0x11990a(0x296)](0x2)),_0x441753[_0x11990a(0x1a7)]&&(_0x441753[_0x11990a(0x2ee)]||_0x441753[_0x11990a(0x260)])&&(console[_0x11990a(0x225)](_0x11990a(0x25c)),process[_0x11990a(0x296)](0x2)),_0x441753['skipEnvCheck']&&_0x441753[_0x11990a(0x16f)]!==_0x11990a(0x17f)&&(console['error'](_0x11990a(0x2f1)),process[_0x11990a(0x296)](0x2)),_0x441753[_0x11990a(0x252)]!=='text'&&!se[_0x11990a(0x163)](_0x441753[_0x11990a(0x16f)])&&(console[_0x11990a(0x225)](_0x11990a(0x166)+_0x441753[_0x11990a(0x252)]+'\x20applies\x20to\x20prompts\x20and\x20to\x20these\x20commands\x20only:\x20'+se['filter'](Boolean)[_0x11990a(0x2bd)](',\x20')+'.'),process[_0x11990a(0x296)](0x2)),(_0x441753['page']!==void 0x0||_0x441753[_0x11990a(0x19c)]!==void 0x0||_0x441753['includeSubAgents'])&&_0x441753[_0x11990a(0x16f)]!=='sessions'&&(console[_0x11990a(0x225)](_0x11990a(0x26f)),process[_0x11990a(0x296)](0x2)),(_0x441753[_0x11990a(0x1ff)]!==void 0x0||_0x441753[_0x11990a(0x1c4)]!==void 0x0)&&_0x441753[_0x11990a(0x16f)]!==_0x11990a(0x2cb)&&(console[_0x11990a(0x225)](_0x11990a(0x22b)),process['exit'](0x2)),_0x441753[_0x11990a(0x1ce)]!==void 0x0&&_0x441753[_0x11990a(0x16f)]!==_0x11990a(0x1dd)&&(console[_0x11990a(0x225)](_0x11990a(0x265)),process[_0x11990a(0x296)](0x2)),_0x441753[_0x11990a(0x30a)]=[...new Set(_0x441753['preloadSkills'])],_0x441753[_0x11990a(0x2b6)]=_0x12745d,_0x441753[_0x11990a(0x230)]=_0x12745d[_0x11990a(0x2bd)]('\x20'),_0x441753;}var P=_0x574675=>{const _0x29198b=_0x53171e;process[_0x29198b(0x1c3)][_0x29198b(0x14d)](_0x574675);};function _0x3367(){const _0xfae7b8=['end','No\x20CLI\x20login\x20found.\x20Note:\x20the\x20CLI\x20is\x20currently\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20','Enter\x20one\x20number\x20from\x201\x20to\x20','--url\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Other\x20commands\x20follow\x20the\x20saved\x20login,\x20or\x20--backend\x20<url>.','object','Model\x20','the\x20request','\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).','workerId','--page','xhigh','logout',';\x20the\x20saved\x20login\x20still\x20uses\x20','shift','5999080dUxnTI','>.\x0a','byoWarning',',\x20or\x20holds\x20no\x20message\x20','low','\x20(resets\x20','--task-automation\x20applies\x20to\x20prompts\x20only.','Organization:\x20','pendingResults','readFileSync','No\x20delegations.\x0a','complete\x20needs\x20a\x20prompt:\x20delegate-cli\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22,\x20or\x20-\x20to\x20read\x20stdin.','intro','padStart','expiresAt','\x0aAccept\x20one\x20with:\x20delegate-cli\x20delegations\x20accept\x20<id>\x0a','Something\x20else','exit','Auth\x20comes\x20from\x20AUTH_TOKEN/TENANT_ID/ORG_ID\x20—\x20set\x20TENANT_ID\x20and\x20TENANT_SLUG\x20to\x20change\x20the\x20tenant.','\x20\x20(sub-agent\x20of\x20','period_days','\x20must\x20be\x20a\x20JSON\x20object.','--attach\x20applies\x20to\x20prompts\x20only.','\x20\x20\x20\x20BYO\x20warning:\x20',':\x20bucket\x20number\x20(Enter\x20to\x20leave\x20out):\x20','resolve','delegations\x20show\x20<delegation-id|delegate://delegation/…>','.aria','utf-8','Forked\x20','daily_usage','env','userinput','push','limit_enabled','5799164WRNwqV','verify','package.json','\x20(estimated\x20$','--tenant\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Switch\x20tenants\x20with:\x20delegate-cli\x20tenant\x20<name>','\x20--turn\x20','cancel','questions','Use:\x20delegate-cli\x20delegations\x20','signal','keys','transcribe:\x20cannot\x20read\x20','parentSessionId','destroy','operands','onEvent','structured','keepAlive','\x20\x20from\x20','delegation','--json-schema\x20applies\x20to\x20prompts\x20and\x20to\x20`delegate-cli\x20complete`\x20only.','join','--attach','\x20(confidence\x20','rename','delegations\x20complete\x20<delegation-id>\x20\x22<answer>\x22|-','Cancel\x20requested\x20for\x20turn\x20','confidence','stack','\x20requires\x20','version','subFields','includeSubAgents','isInteger','an\x20email\x20address\x20or\x20name','delegations','2565042eIsLDt','pct_used','estimated_cost_usd','Session\x20\x20\x20\x20\x20\x20\x20','Rubric\x20','\x20cap','origin','toFixed','Your\x20answer,\x20as\x20text\x20(the\x20CLI\x20attaches\x20no\x20files;\x20Enter\x20to\x20skip):\x20','\x20PU','Usage:\x20delegate-cli\x20','\x20active\x20days','isFinite','rerank','bucket','214712tdDhpn','every','workingDirectory','off','alreadyCompleted','extra_pool_consumed_pu','answers','\x20sessions\x20on\x20','\x20token\x20units)','bundledSkillsPath','toISOString','length','sendMessage','unit','model','data','jsonSchemaPath','UPDATED','once','headless','\x20(Enter\x20to\x20skip):\x20','addEventListener','--skip-env-check\x20applies\x20to\x20`delegate-cli\x20login`\x20only.','--effort','tenantName','\x20or\x20your\x20own\x20answer','\x20-\x20','test','turn_start','message','kind','.\x20Use:\x20','log','\x20<id>','default','padEnd','--days','Invalid\x20--env:\x20','\x20(optional)','Spending:\x20\x20\x20\x20\x20$','\x20to\x20','delegations\x20create\x20--session\x20<id>\x20[--to\x20<email|name>]\x20[--summary\x20<text>]\x20\x22<task>\x22|-','orgLogicalName','environment\x20variables\x20(AUTH_TOKEN/TENANT_ID/ORG_ID)','Tokens:\x20','skipEnvCheck','--no-memory','preloadSkills','structuredError','stderr','--summary','restore','.\x20Use\x20`delegate-cli\x20usage`,\x20`usage\x20activity`\x20or\x20`usage\x20daily`.','check','line','\x20from\x20','Delegation\x20\x20\x20\x20','🔧\x20','from\x20','projectId','label','Removed\x20','Your\x20answer\x20(Enter\x20to\x20skip):\x20','endQuestions','lastType','text','now','title','floor','--to','From\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Cost:\x20\x20\x20$','alreadyAccepted','total_completion_tokens','sourceUserEmail','question','Invalid\x20--effort:\x20','Created\x20delegation\x20','Licensing:\x20\x20\x20\x20','a\x20session\x20id','rejection','done','\x20not\x20found.','sessionId','Numbers,\x20separated\x20by\x20commas\x20(Enter\x20to\x20skip):\x20','all','cleanup','interopPath','quiet','task','removeEventListener','\x20needs\x20a\x20JSON\x20request:\x20delegate-cli\x20','argv','thinking','%\x20of\x20','toUpperCase','--cartographer','index','--keep-alive','alpha','\x20in\x20progress\x20on\x20session\x20','Missing\x20prompt.\x20Pass\x20it\x20as\x20an\x20argument,\x20pipe\x20it\x20via\x20stdin,\x20or\x20run\x20`delegate-cli\x20--help`.','split','Already\x20accepted','exitCode','\x20into\x20','pause','probability\x20','Usage:\x20delegate-cli\x20sessions\x20[list]\x20[--page\x20N]\x20[--limit\x20N]\x20[--include-subagents]','concat','url','\x20(in\x20','write','backendUrl','verbose','hide','code','page','session_start','a\x20format\x20(','\x20delegation\x20','auth','No\x20one\x20matches\x20\x22','unknown\x20slug','Last\x20','erase','\x20is\x20required.\x0a','self-hosted\x20(Automation\x20Suite\x20/\x20Dedicated)','filter','The\x20saved\x20CLI\x20login\x20could\x20not\x20be\x20refreshed.\x20Run\x20`delegate-cli\x20login`\x20again.','Base\x20URL:\x20\x20\x20\x20\x20','\x22.\x0a','Enter\x20a\x20number\x20','a\x20skill\x20name','includes','tool_call','toString','--output-format\x20','--json-schema','parse','Date\x20\x20\x20\x20\x20\x20\x20\x20Token\x20units\x20\x20Prompt\x20tokens\x20\x20Completion\x20tokens','--cleanup','trim','\x20tokens\x0a','\x20\x22<answer>\x22\x0a','UiPath\x20Cloud','subcommand','startsWith','--to,\x20--summary\x20and\x20--session\x20apply\x20to\x20`delegate-cli\x20delegations\x20create`\x20only.','from\x201\x20to\x20','multiSelect','create','type','name','complete\x20needs\x20--json-schema\x20<file>:\x20delegate-cli\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22.','\x20completion','noSecurity','finish','\x20(no\x20cap\x20enforced)','dismissed','organizationId','\x20must\x20be\x20a\x20whole\x20number\x20','login','tenantId','More:\x20delegate-cli\x20sessions\x20--page\x20','medium','6bSvZBv','Cartographer:\x20','choice','\x20<file.json>,\x20or\x20-\x20to\x20read\x20stdin.','deleted','high','attachments','mode','STATUS','cancelled','header','Renamed\x20','noConnections','Licensing:\x20\x20\x20\x20no\x20licensing\x20quota\x20applies','\x0a⚠️\x20\x20Auth\x20expired.\x20Opening\x20browser\x20to\x20re-login…\x0a','a\x20number','tokenExpiresAt','models','monthly_spend_usd','\x20in\x20steps\x20of\x20','Unknown\x20delegations\x20action:\x20','/exit','session_consumed_pu','delegations\x20cancel\x20<delegation-id>','accessToken','limit','9231355eFwzSn','total_cost_usd','oneTurn','--env\x20localhost\x20has\x20no\x20OAuth\x20flow;\x20pick\x20alpha,\x20staging,\x20or\x20production.','1\x20or\x20more','\x20of\x20a\x20$','Work\x20on\x20it\x20with:\x20delegate-cli\x20--session\x20','setPrompt','Invalid\x20--output-format:\x20','host','taskAutomation','SIGINT','total_token_units','--runner-url','--tenant','staging','AUTH_TOKEN_FILE\x20\x27','score','activity','Bearer\x20',':\x20cannot\x20read\x20the\x20JSON\x20schema\x20(','input','a\x20colleague','tenant','email','Usage:\x20delegate-cli\x20sessions\x20','--worker-id','No\x20sessions\x20on\x20page\x20','.\x20Use\x20','\x20\x22<prompt>\x22\x0aAnswer\x20with:\x20delegate-cli\x20delegations\x20complete\x20','choice\x20','No\x20CLI\x20login\x20to\x20switch:\x20the\x20CLI\x20is\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20','\x0a🤔\x20','an\x20effort\x20tier','max',',\x20whose\x20tenant\x20is\x20chosen\x20in\x20the\x20app.\x20Run\x20`delegate-cli\x20login\x20--env\x20<env>`\x20for\x20a\x20CLI\x20login\x20of\x20your\x20own.','\x20(cancel\x20with:\x20delegate-cli\x20sessions\x20cancel\x20','total_sessions','stdout','contextSummary','accept','--quiet','\x20of\x20session\x20','\x20PU\x20used','Session\x20','displayName','forEach','token_units','bind','turnId','\x20\x20(input\x20#','a\x20directory\x20path','\x27\x20cannot\x20be\x20read:\x20','delegations\x20list\x20<backend-project-id>','--project','stdin','buckets','--version','delete','--url','pending','claim','abort','assignedUser','sessions','):\x0a\x0a','\x20(type\x20your\x20own)','\x20\x20TASK\x0a','dismiss','replace','Invalid\x20--project:\x20\x22','models_breakdown','--preload-skill','263937FZSebm','getSessionId','Pass\x20either\x20--env\x20(a\x20named\x20cloud)\x20or\x20--url\x20(any\x20other\x20deployment),\x20not\x20both.','--include-subagents','Continue\x20it\x20with:\x20delegate-cli\x20--session\x20','Tenant:\x20\x20\x20\x20\x20\x20\x20','model_version','delegations\x20delete\x20<delegation-id>','Tenants\x20of\x20','status','),\x20','Source:\x20\x20\x20\x20\x20\x20\x20','unknown','--model','effort','\x20|\x20','--interop','list','show','--skills-path',',\x20got\x20','delegationId','description','initialize','--no-computer-use','delegateTo','--tenant\x20requires\x20a\x20tenant\x20name.','--skip-env-check','\x20(Delegate\x20desktop\x20app\x20fallback)','org-users','entries','You>\x20','Tenant\x20not\x20switched:\x20could\x20not\x20write\x20','isTTY','isError','[saved\x20login]\x20Backend\x20URL:\x20','Could\x20not\x20check\x20BYO\x20model\x20warnings:\x20','stream-json','\x20is\x20not\x20valid\x20JSON\x20(','a\x20deployment\x20URL,\x20e.g.\x20https://automationsuite.contoso.com','existsSync','complete','--authority',')\x20—\x20saved\x20to\x20','Organization\x20\x20','options','\x20\x20\x20\x20','evaluate','print','a\x20briefing\x20text','from','then','Unknown\x20usage\x20view:\x20','optional','date','catch','round','sourceTitle','\x20PU\x20beyond\x20quota','Accepted','\x0aAvailable\x20models\x20(','--days\x20applies\x20to\x20`delegate-cli\x20usage\x20activity|daily`\x20only.','baseUrl','error','step','tool','Input\x20closed\x20before\x20the\x20question\x20was\x20answered.','getTurnUsageHistory','Already\x20answered','--to\x20and\x20--summary\x20apply\x20to\x20`delegate-cli\x20delegations\x20create`\x20only.','whoami','3240305RDDkst','items','lockReason','prompt','fields','cwd','auth.json','spawn','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','✓\x20Done\x0a',').\x0a','localhost','userId','usage','monthly_limit_usd','assignedUserEmail','Enter\x20numbers\x20from\x201\x20to\x20','a\x20JSON\x20schema\x20file','No\x20structured\x20output:\x20the\x20turn\x20failed\x20(','[env=','Unknown\x20sessions\x20action:\x20','score\x20','--env','slice','toolName','isDesktopFallback','stringify','\x20—\x20sign\x20out\x20in\x20the\x20Delegate\x20app\x20to\x20clear\x20that.','\x20days:\x20','Deployment:\x20\x20\x20','--turn','ASSIGNEE','Claimed\x20from\x20delegation\x20','active_days','\x0aUse\x20with:\x20delegate-cli\x20--model\x20<id>\x20\x22<prompt>\x22\x0a','isArray','content','outputFormat','map','--limit','\x20(current)','\x20token\x20units','\x20\x22<prompt>\x22\x0a','Session:\x20','file','a\x20turn\x20id','completion_tokens','--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.','The\x20turn\x20was\x20cancelled.','probability','findIndex','noComputerUse','Token:\x20\x20\x20\x20\x20\x20\x20\x20expired\x20','Unknown\x20flag:\x20','\x20<title>','--help','--turn\x20applies\x20to\x20`delegate-cli\x20sessions\x20cancel`\x20only.','delegations\x20accept\x20<delegation-id>','\x20\x20TITLE\x0a','refused','runnerUrl','min','delegations\x20claim\x20<delegation-id|delegate://delegation/…>','\x20this\x20month','transcribe','Answered','--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`delegate-cli\x20sessions`\x20only.','locked','the\x20JSON\x20schema','results','resume','ID\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','days','close'];_0x3367=function(){return _0xfae7b8;};return _0x3367();}function Pt(){const _0xc759b8=_0x53171e;let _0x228068=process['stdout'][_0xc759b8(0x14d)],_0x33e82c=_0x228068['bind'](process[_0xc759b8(0x1c3)]),_0x2c7c4e=P;return P=_0x2ccbc9=>{_0x33e82c(_0x2ccbc9);},process['stdout'][_0xc759b8(0x14d)]=(..._0x440b70)=>process['stderr']['write'](..._0x440b70),()=>{const _0x4a5455=_0xc759b8;process[_0x4a5455(0x1c3)][_0x4a5455(0x14d)]=_0x228068,P=_0x2c7c4e;};}function u(_0xe8349c,_0x244e1f,_0xa066f){const _0x4d8bfc=_0x53171e;if(_0xe8349c[_0x4d8bfc(0x252)]===_0x4d8bfc(0x31c)){_0xa066f(_0x244e1f);return;}P(_0x400bb9(_0x244e1f));}function Ct(){const _0x2a7f2c=_0x53171e;let _0x39458d='\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'[_0x2a7f2c(0x16b)]();console[_0x2a7f2c(0x2fb)](_0x39458d);}function Lt(){const _0x363068=_0x53171e;try{return JSON[_0x363068(0x168)](_0x1ad1dc[_0x363068(0x28e)](_0x3f3c33[_0x363068(0x2bd)](__dirname,'..',_0x363068(0x2aa)),_0x363068(0x2a1)))['version']||_0x363068(0x1f2);}catch{return'unknown';}}var Ot=0x7d0;async function ie(_0x19dde2,_0x4d1096){const _0x564acc=_0x53171e;let _0x3a6873=_0x4d1096?[_0x4d1096]:[];for await(let _0x65e045 of _0x19dde2)_0x3a6873['push'](Buffer[_0x564acc(0x218)](_0x65e045));return Buffer[_0x564acc(0x14a)](_0x3a6873)[_0x564acc(0x165)](_0x564acc(0x2a1))[_0x564acc(0x16b)]();}function Ft(_0x1883a8,_0x6fa616){return new Promise(_0x50fcca=>{const _0x10d496=_0x35d8;let _0x4490b2=_0x151337=>{const _0x553310=_0x35d8;clearTimeout(_0x3ad57d),_0x1883a8[_0x553310(0x2de)](_0x553310(0x2ea),_0x5b7f29),_0x1883a8[_0x553310(0x2de)](_0x553310(0x277),_0x8863ab),_0x1883a8[_0x553310(0x2de)]('error',_0x8863ab),_0x1883a8[_0x553310(0x147)](),_0x50fcca(_0x151337);},_0x5b7f29=_0x3acf9b=>_0x4490b2(Buffer[_0x10d496(0x218)](_0x3acf9b)),_0x8863ab=()=>_0x4490b2(null),_0x3ad57d=setTimeout(()=>_0x4490b2(null),_0x6fa616);_0x1883a8['on'](_0x10d496(0x2ea),_0x5b7f29),_0x1883a8['on'](_0x10d496(0x277),_0x8863ab),_0x1883a8['on'](_0x10d496(0x225),_0x8863ab),_0x1883a8[_0x10d496(0x273)]();});}async function j(_0x1aacb1,_0x433d38,_0x3ff738=Ot){const _0x3f9d26=_0x53171e;let _0x23b0ac=_0x1aacb1==='-';if(!_0x23b0ac&&_0x1aacb1)return _0x1aacb1;if(!_0x23b0ac&&_0x433d38[_0x3f9d26(0x207)])return'';if(_0x23b0ac)return ie(_0x433d38,null);let _0x362804=await Ft(_0x433d38,_0x3ff738);return _0x362804?ie(_0x433d38,_0x362804):'';}function K(){const _0x25d091=_0x53171e;return _0x3f3c33[_0x25d091(0x2bd)](process.env.HOME||process.env.USERPROFILE||'',_0x25d091(0x2a0),_0x25d091(0x233));}function M(_0x20300c){const _0x42b8ec=_0x53171e;try{let _0xa208f=JSON['parse'](_0x1ad1dc[_0x42b8ec(0x28e)](_0x20300c,_0x42b8ec(0x2a1)));return!_0xa208f[_0x42b8ec(0x19b)]||!_0xa208f[_0x42b8ec(0x180)]||!_0xa208f[_0x42b8ec(0x17d)]?null:_0xa208f;}catch{return null;}}function jt(){let _0x329d96=[{'file':_0x53c2d3(),'isDesktopFallback':!0x1},{'file':K(),'isDesktopFallback':!0x0}];for(let _0x170cec of _0x329d96){let _0x3fd1fc=M(_0x170cec['file']);if(_0x3fd1fc)return{..._0x170cec,'auth':_0x3fd1fc};}return null;}async function Mt(){const _0x298472=_0x53171e;let _0x1300e1=_0x53c2d3();if(!_0x1ad1dc[_0x298472(0x20e)](_0x1300e1)){let _0x4c99f4=K();console[_0x298472(0x2fb)](M(_0x4c99f4)?_0x298472(0x278)+_0x4c99f4+_0x298472(0x248):'No\x20CLI\x20login\x20found\x20—\x20nothing\x20to\x20remove.');return;}_0x1ad1dc['rmSync'](_0x1300e1),console[_0x298472(0x2fb)](_0x298472(0x318)+_0x1300e1);}async function Bt(_0x267fd8){const _0x2003d3=_0x53171e;let _0x4bd67d=Q(),_0x597c71,_0x19e1b3;if(_0x4bd67d)_0x597c71=_0x4bd67d,_0x19e1b3=_0x2003d3(0x306);else{let _0x5671b7=jt();if(!_0x5671b7)throw new Error(Se);_0x597c71=_0x5671b7[_0x2003d3(0x156)],_0x19e1b3=_0x5671b7[_0x2003d3(0x246)]?_0x5671b7['file']+_0x2003d3(0x202):_0x5671b7[_0x2003d3(0x259)];}let _0x4d01c8={'source':_0x19e1b3,'baseUrl':_0x597c71[_0x2003d3(0x224)]??null,'deployment':Ht(_0x597c71[_0x2003d3(0x224)]),'organization':{'id':_0x597c71[_0x2003d3(0x17d)],'slug':_0x597c71[_0x2003d3(0x305)]??null},'tenant':{'id':_0x597c71['tenantId'],'name':_0x597c71[_0x2003d3(0x2f3)]??null},'tokenExpiresAt':_0x597c71['expiresAt']?new Date(_0x597c71[_0x2003d3(0x293)]*0x3e8)[_0x2003d3(0x2e5)]():null};u(_0x267fd8,_0x4d01c8,()=>{const _0x358a39=_0x2003d3;let _0x1dd900=[_0x358a39(0x1f1)+_0x19e1b3,_0x358a39(0x15f)+(_0x597c71[_0x358a39(0x224)]??_0x358a39(0x1f2)),_0x358a39(0x24a)+_0x4d01c8['deployment'],_0x358a39(0x28c)+(_0x597c71[_0x358a39(0x305)]??_0x358a39(0x158))+'\x20('+_0x597c71['organizationId']+')',_0x358a39(0x1eb)+(_0x597c71['tenantName']??_0x358a39(0x158))+'\x20('+_0x597c71['tenantId']+')'];if(_0x597c71[_0x358a39(0x293)]){let _0x408bda=_0x597c71[_0x358a39(0x293)]-Math[_0x358a39(0x31f)](Date[_0x358a39(0x31d)]()/0x3e8);_0x1dd900[_0x358a39(0x2a6)](_0x408bda>0x0?'Token:\x20\x20\x20\x20\x20\x20\x20\x20expires\x20'+_0x4d01c8[_0x358a39(0x193)]+_0x358a39(0x14c)+Math[_0x358a39(0x21e)](_0x408bda/0x3c)+'\x20min)':_0x358a39(0x261)+_0x4d01c8['tokenExpiresAt']);}process['stdout']['write'](_0x1dd900[_0x358a39(0x2bd)]('\x0a')+'\x0a');});}var Se='No\x20auth\x20found.\x20Set\x20AUTH_TOKEN\x20(or\x20AUTH_TOKEN_FILE)/TENANT_ID/ORG_ID\x20env\x20vars,\x20or\x20run\x20`delegate-cli\x20login\x20--env\x20<alpha|staging|production>`\x20(or\x20`--url\x20<deployment-url>`\x20for\x20Automation\x20Suite)\x20first.';function Ht(_0x1ddc13){const _0x38f01e=_0x53171e;return _0x1ddc13?_0x3e0acd(_0x1ddc13)?_0x38f01e(0x16e):_0x38f01e(0x15c):'unknown';}function Q(){let _0x3d59d8=process.env.AUTH_TOKEN_FILE;return(process.env.AUTH_TOKEN||_0x3d59d8)&&process.env.TENANT_ID&&process.env.ORG_ID?{'accessToken':_0x3d59d8?Jt(_0x3d59d8):process.env.AUTH_TOKEN,..._0x3d59d8?{'accessTokenFile':_0x3d59d8}:{},'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(_0x44ea21){const _0x47acc2=_0x53171e;let _0x272cb0;try{_0x272cb0=_0x1ad1dc[_0x47acc2(0x28e)](_0x44ea21,_0x47acc2(0x2a1))[_0x47acc2(0x16b)]();}catch(_0x3ab48e){throw new Error(_0x47acc2(0x1ad)+_0x44ea21+_0x47acc2(0x1d1)+_0x3ab48e[_0x47acc2(0x2f8)]);}let _0x3b6769=_0x272cb0[_0x47acc2(0x170)](_0x47acc2(0x1b0))?_0x272cb0['slice'](0x7)[_0x47acc2(0x16b)]():_0x272cb0;if(!_0x3b6769)throw new Error(_0x47acc2(0x1ad)+_0x44ea21+'\x27\x20is\x20empty.');return _0x3b6769;}function ve(){const _0x291a41=_0x53171e;let _0x402f78=process.env.UIPATH_BASE_URL;if(!_0x402f78)return;let _0x242428=_0x16209d(_0x402f78);if(_0x242428['ok']===!0x1)throw new Error('UIPATH_BASE_URL\x20is\x20unusable.\x20'+_0x148dbd(_0x402f78,_0x242428[_0x291a41(0x32b)]));return _0x242428[_0x291a41(0x224)];}async function q(){let _0x2244ec=Q();if(_0x2244ec)return _0x2244ec;let _0xb2ff4f=await _0x338ed8();if(_0xb2ff4f)return _0xb2ff4f;throw new Error(Se);}async function Gt(){const _0x3c5a63=_0x53171e;await new _0x9cd4fb()['stop']({'force':!0x0}),console[_0x3c5a63(0x2fb)]('Interop\x20stopped\x20(if\x20it\x20was\x20running).');}function z(_0x761833,_0x2b0d8f,_0x3495a7){const _0x4dd76a=_0x53171e;_0x761833?process[_0x4dd76a(0x30c)]['write'](_0x4dd76a(0x240)+_0x761833+']\x20Backend\x20URL:\x20'+_0x3495a7+'\x0a'):!_0x2b0d8f&&!process.env.BACKEND_URL&&process[_0x4dd76a(0x30c)][_0x4dd76a(0x14d)](_0x4dd76a(0x209)+_0x3495a7+'\x0a');}async function v(_0x450f4f){const _0x1e82e4=_0x53171e;let _0xe54c4e=await q(),_0x1e5011=_0x1915e6(_0x450f4f[_0x1e82e4(0x2a4)],_0xe54c4e,_0x450f4f['backendUrl']);return z(_0x450f4f[_0x1e82e4(0x2a4)],_0x450f4f[_0x1e82e4(0x14e)],_0x1e5011),{'auth':_0xe54c4e,'backendUrl':_0x1e5011,'client':_0x52f162({'auth':_0xe54c4e,'backendUrl':_0x1e5011})};}async function Wt(_0x51e637){const _0x21b98b=_0x53171e;let {client:_0x4894dd}=await v(_0x51e637),[_0xfa212b,_0x288e4e]=await Promise[_0x21b98b(0x330)]([_0x31c7f2(_0x4894dd),_0xc7b0a9(_0x4894dd)[_0x21b98b(0x21d)](_0x15c26d=>(process[_0x21b98b(0x30c)][_0x21b98b(0x14d)](_0x21b98b(0x20a)+(_0x15c26d instanceof Error?_0x15c26d[_0x21b98b(0x2f8)]:String(_0x15c26d))+'\x0a'),{}))]),_0x158061=_0xfa212b[_0x21b98b(0x253)](_0xc3c18b=>_0x288e4e[_0xc3c18b['id']]?{..._0xc3c18b,'byoWarning':_0x288e4e[_0xc3c18b['id']]}:_0xc3c18b);u(_0x51e637,_0x158061,Kt);}function Kt(_0xa68129){const _0xf64633=_0x53171e;if(_0xa68129[_0xf64633(0x2e6)]===0x0){process[_0xf64633(0x30c)][_0xf64633(0x14d)]('No\x20models\x20available\x20for\x20this\x20product/tenant.\x0a');return;}process[_0xf64633(0x1c3)][_0xf64633(0x14d)](_0xf64633(0x222)+_0xa68129[_0xf64633(0x2e6)]+_0xf64633(0x1de));for(let _0x3f2110 of _0xa68129){let _0x460031=_0x3f2110[_0xf64633(0x176)]&&_0x3f2110[_0xf64633(0x176)]!==_0x3f2110['id']?'\x20('+_0x3f2110[_0xf64633(0x176)]+')':'';process[_0xf64633(0x1c3)][_0xf64633(0x14d)]('\x20\x20'+_0x3f2110['id']+_0x460031+'\x0a'),_0x3f2110['description']&&process[_0xf64633(0x1c3)][_0xf64633(0x14d)](_0xf64633(0x214)+_0x3f2110['description']+'\x0a'),_0x3f2110[_0xf64633(0x270)]&&process['stdout'][_0xf64633(0x14d)]('\x20\x20\x20\x20Not\x20available\x20on\x20this\x20plan'+(_0x3f2110[_0xf64633(0x22f)]?'\x20('+_0x3f2110['lockReason']+')':'')+'\x0a'),_0x3f2110[_0xf64633(0x287)]&&process[_0xf64633(0x1c3)][_0xf64633(0x14d)](_0xf64633(0x29c)+_0x3f2110['byoWarning']+'\x0a');}process[_0xf64633(0x1c3)][_0xf64633(0x14d)](_0xf64633(0x24f));}var ae=['list',_0x53171e(0x1f8),_0x53171e(0x2c0),_0x53171e(0x1d7),_0x53171e(0x2ae),'fork'];async function Qt(_0xc1c17d){const _0x9cfe5c=_0x53171e;let [_0x3504fd='',_0x2c052b='',..._0x2e6354]=_0xc1c17d['operands'];if(_0x3504fd&&!ae['includes'](_0x3504fd)&&(console[_0x9cfe5c(0x225)](_0x9cfe5c(0x241)+_0x3504fd+_0x9cfe5c(0x2fa)+ae[_0x9cfe5c(0x2bd)](_0x9cfe5c(0x1f5))+'.'),process[_0x9cfe5c(0x296)](0x2)),_0xc1c17d[_0x9cfe5c(0x1ce)]!==void 0x0&&_0x3504fd!==_0x9cfe5c(0x2ae)&&(console[_0x9cfe5c(0x225)]('--turn\x20applies\x20to\x20`delegate-cli\x20sessions\x20cancel`\x20only.'),process[_0x9cfe5c(0x296)](0x2)),_0x3504fd&&_0x3504fd!==_0x9cfe5c(0x1f7)){await qt(_0xc1c17d,_0x3504fd,_0x2c052b,_0x2e6354[_0x9cfe5c(0x2bd)]('\x20')['trim']());return;}_0xc1c17d[_0x9cfe5c(0x2b6)][_0x9cfe5c(0x2e6)]>0x1&&(console[_0x9cfe5c(0x225)](_0x9cfe5c(0x149)),process['exit'](0x2));let {client:_0x5ca8f3}=await v(_0xc1c17d),_0x31dcd0=await _0x14b3e8(_0x5ca8f3,{'page':_0xc1c17d[_0x9cfe5c(0x152)],'pageSize':_0xc1c17d['limit'],'includeSubAgents':_0xc1c17d[_0x9cfe5c(0x2c8)]});u(_0xc1c17d,_0x31dcd0,Xt);}async function qt(_0x4dfbbe,_0x4e1927,_0x415304,_0x28a1dd){const _0x54f7d9=_0x53171e;if((_0x4dfbbe['page']!==void 0x0||_0x4dfbbe[_0x54f7d9(0x19c)]!==void 0x0||_0x4dfbbe['includeSubAgents'])&&(console[_0x54f7d9(0x225)]('--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`delegate-cli\x20sessions\x20[list]`\x20only.'),process[_0x54f7d9(0x296)](0x2)),_0x4e1927==='cancel'){await Yt(_0x4dfbbe,_0x415304,_0x28a1dd);return;}if(_0x4e1927==='fork'){await Vt(_0x4dfbbe,_0x415304,_0x28a1dd);return;}(!_0x415304||_0x4e1927===_0x54f7d9(0x2c0)!=!!_0x28a1dd)&&(console[_0x54f7d9(0x225)](_0x54f7d9(0x1b6)+_0x4e1927+_0x54f7d9(0x2fc)+(_0x4e1927===_0x54f7d9(0x2c0)?_0x54f7d9(0x263):'')),process[_0x54f7d9(0x296)](0x2));let {client:_0x1d1d68}=await v(_0x4dfbbe);try{if(_0x4e1927==='show'){let _0x1ad6b0=await _0x25ec6e(_0x1d1d68,_0x415304);_0x1ad6b0||le(_0x415304),u(_0x4dfbbe,_0x1ad6b0,zt);}else{if(_0x4e1927===_0x54f7d9(0x2c0)){let _0x1233e4=await _0x33676f(_0x1d1d68,_0x415304,_0x28a1dd);u(_0x4dfbbe,_0x1233e4,_0x3f27c9=>{const _0x38d71f=_0x54f7d9;process[_0x38d71f(0x1c3)]['write'](_0x38d71f(0x18e)+_0x3f27c9['id']+':\x20'+_0x3f27c9['title']+'\x0a');});}else await _0x2a5248(_0x1d1d68,_0x415304),await _0xd08cca(_0x415304,_0x4dfbbe[_0x54f7d9(0x2dd)]),u(_0x4dfbbe,{'id':_0x415304,'deleted':!0x0},_0x365f7e=>{const _0x43cc2a=_0x54f7d9;process[_0x43cc2a(0x1c3)][_0x43cc2a(0x14d)]('Deleted\x20session\x20'+_0x365f7e['id']+'.\x0a');});}}catch(_0x4c9125){if(!_0x15464b(_0x4c9125,0x194))throw _0x4c9125;le(_0x415304);}}function le(_0x501525){const _0x514bfa=_0x53171e;console['error'](_0x514bfa(0x1c9)+_0x501525+_0x514bfa(0x32d)),process[_0x514bfa(0x296)](0x1);}function zt(_0x369676){const _0x38784e=_0x53171e;process[_0x38784e(0x1c3)][_0x38784e(0x14d)](_0x38784e(0x274)+_0x369676['id']+'\x0a'),process[_0x38784e(0x1c3)][_0x38784e(0x14d)]('Title\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x369676[_0x38784e(0x31e)]+'\x0a'),process[_0x38784e(0x1c3)][_0x38784e(0x14d)]('Owner\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x369676[_0x38784e(0x239)]+'\x0a'),process['stdout'][_0x38784e(0x14d)](_0x38784e(0x212)+_0x369676['organizationId']+'\x0a'),_0x369676[_0x38784e(0x1fb)]&&process[_0x38784e(0x1c3)][_0x38784e(0x14d)](_0x38784e(0x313)+_0x369676[_0x38784e(0x1fb)]+'\x0a');}async function Yt(_0x8d827c,_0x40a247,_0x512f5b){const _0x9405e5=_0x53171e;(!_0x40a247||_0x512f5b||!_0x8d827c[_0x9405e5(0x1ce)])&&(console[_0x9405e5(0x225)]('Usage:\x20delegate-cli\x20sessions\x20cancel\x20<session-id>\x20--turn\x20<turn-id>'),process[_0x9405e5(0x296)](0x2));let {client:_0x278238}=await v(_0x8d827c),_0x38f67c=await _0x3d580a(_0x278238,_0x40a247,_0x8d827c[_0x9405e5(0x1ce)]);u(_0x8d827c,{'sessionId':_0x40a247,'turnId':_0x8d827c[_0x9405e5(0x1ce)],'cancelled':_0x38f67c},_0x355575=>{const _0x5c073d=_0x9405e5;_0x355575['cancelled']?process[_0x5c073d(0x1c3)]['write'](_0x5c073d(0x2c2)+_0x355575[_0x5c073d(0x1ce)]+_0x5c073d(0x1c7)+_0x355575[_0x5c073d(0x32e)]+'.\x0a'):process[_0x5c073d(0x30c)]['write']('No\x20turn\x20'+_0x355575[_0x5c073d(0x1ce)]+_0x5c073d(0x141)+_0x355575[_0x5c073d(0x32e)]+'.\x0a');}),_0x38f67c||(process[_0x9405e5(0x145)]=0x1);}async function Vt(_0x39b4e2,_0x39de5a,_0x127d7a){const _0x57be3b=_0x53171e;(!_0x39de5a||/\s/[_0x57be3b(0x2f6)](_0x127d7a))&&(console[_0x57be3b(0x225)]('Usage:\x20delegate-cli\x20sessions\x20fork\x20<id>\x20[<message-id>]'),process[_0x57be3b(0x296)](0x2));let {client:_0x4ffd16}=await v(_0x39b4e2),_0x2d1086;try{_0x2d1086=await _0x235d08(_0x4ffd16,_0x39de5a,{'atMessageId':_0x127d7a||void 0x0});}catch(_0x5181b5){if(!_0x15464b(_0x5181b5,0x194))throw _0x5181b5;console[_0x57be3b(0x225)](_0x57be3b(0x1c9)+_0x39de5a+'\x20not\x20found,\x20has\x20no\x20messages'+(_0x127d7a?_0x57be3b(0x288)+_0x127d7a:'')+'.'),process[_0x57be3b(0x296)](0x1);}u(_0x39b4e2,_0x2d1086,_0x3fafb4=>{const _0x3bcf70=_0x57be3b;process[_0x3bcf70(0x1c3)]['write'](_0x3bcf70(0x2a2)+_0x39de5a+_0x3bcf70(0x146)+_0x3fafb4['id']+'.\x0a'),process['stderr'][_0x3bcf70(0x14d)](_0x3bcf70(0x1ea)+_0x3fafb4['id']+_0x3bcf70(0x257));});}function Xt({sessions:_0x1952d7,page:_0x30dc94,isLastPage:_0x1f1f5b}){const _0x2b8cdd=_0x53171e;if(_0x1952d7[_0x2b8cdd(0x2e6)]===0x0)process[_0x2b8cdd(0x30c)][_0x2b8cdd(0x14d)](_0x2b8cdd(0x1b8)+_0x30dc94+'.\x0a');else{process[_0x2b8cdd(0x1c3)][_0x2b8cdd(0x14d)]('ID'[_0x2b8cdd(0x2fe)](0x24)+'\x20\x20'+_0x2b8cdd(0x2ec)[_0x2b8cdd(0x2fe)](0x13)+_0x2b8cdd(0x267));for(let _0x47044f of _0x1952d7){let _0x29160e=_0x47044f['updatedAt'][_0x2b8cdd(0x1e2)]('T','\x20')[_0x2b8cdd(0x244)](0x0,0x13),_0x1f8e3f=_0x47044f[_0x2b8cdd(0x2b4)]?_0x2b8cdd(0x298)+_0x47044f[_0x2b8cdd(0x2b4)]+')':'';process['stdout']['write'](_0x47044f['id'][_0x2b8cdd(0x2fe)](0x24)+'\x20\x20'+_0x29160e[_0x2b8cdd(0x2fe)](0x13)+'\x20\x20'+_0x47044f['title']+_0x1f8e3f+'\x0a');}}_0x1f1f5b||process[_0x2b8cdd(0x30c)]['write'](_0x2b8cdd(0x181)+(_0x30dc94+0x1)+'\x0a');}async function Zt(_0x8bbde5){const _0x1e2fbd=_0x53171e;let _0x1e75ab=await q(),_0x165fb2=_0x1915e6(_0x8bbde5[_0x1e2fbd(0x2a4)],_0x1e75ab,_0x8bbde5[_0x1e2fbd(0x14e)]);z(_0x8bbde5[_0x1e2fbd(0x2a4)],_0x8bbde5[_0x1e2fbd(0x14e)],_0x165fb2);let _0x59b91d=await _0x35dc59({'auth':_0x1e75ab,'backendUrl':_0x165fb2,'interop':_0x8bbde5[_0x1e2fbd(0x2ee)]?'skip':_0x1e2fbd(0x234)});u(_0x8bbde5,_0x59b91d,({checks:_0x23217d})=>{const _0xbdcc4c=_0x1e2fbd;for(let _0x31d512 of _0x23217d)process['stdout'][_0xbdcc4c(0x14d)](en(_0x31d512)+'\x0a');}),_0x59b91d['ok']||process['exit'](0x1);}function en(_0x43bd97){const _0x3545ad=_0x53171e;return{'ok':'✓','failed':'✗','skipped':'-'}[_0x43bd97[_0x3545ad(0x1ef)]]+'\x20'+_0x43bd97[_0x3545ad(0x176)][_0x3545ad(0x2fe)](0xa)+_0x43bd97['detail'];}var tn=['',_0x53171e(0x1af),'daily'];async function nn(_0x1da16e){const _0x255341=_0x53171e;let _0x10b36c=_0x1da16e[_0x255341(0x230)];tn[_0x255341(0x163)](_0x10b36c)||(console[_0x255341(0x225)](_0x255341(0x21a)+_0x1da16e['prompt']+_0x255341(0x30f)),process[_0x255341(0x296)](0x2)),_0x10b36c===''&&_0x1da16e[_0x255341(0x275)]!==void 0x0&&(console['error']('--days\x20applies\x20to\x20`delegate-cli\x20usage\x20activity|daily`;\x20the\x20summary\x20covers\x20the\x20current\x20month.'),process['exit'](0x2)),_0x10b36c!==''&&_0x1da16e[_0x255341(0x32e)]!==void 0x0&&(console[_0x255341(0x225)]('--session\x20applies\x20to\x20the\x20`delegate-cli\x20usage`\x20summary\x20only.'),process[_0x255341(0x296)](0x2));let {client:_0x1edb98}=await v(_0x1da16e);if(_0x10b36c===_0x255341(0x1af)){u(_0x1da16e,await _0x51c1e7(_0x1edb98,{'days':_0x1da16e[_0x255341(0x275)]}),sn);return;}if(_0x10b36c==='daily'){u(_0x1da16e,await _0x482943(_0x1edb98,{'days':_0x1da16e[_0x255341(0x275)]}),rn);return;}let [_0x3b468e,_0x3d3ef7,_0x1f8ab4]=await Promise[_0x255341(0x330)]([_0x2c8be2(_0x1edb98,{'sessionId':_0x1da16e[_0x255341(0x32e)]}),_0x51afab(_0x1edb98),_0x3d1a34(_0x1edb98)]);u(_0x1da16e,{'licensing':_0x3b468e,'monthlySpending':_0x3d3ef7,'cartographerAllowance':_0x1f8ab4},on);}function on(_0x17d9d1){const _0xb0c686=_0x53171e;let {licensing:_0x574b9b,monthlySpending:_0x4ae0c8,cartographerAllowance:_0x5b88a1}=_0x17d9d1,_0x1e2dc7=[_0x574b9b['limit_enabled']?_0xb0c686(0x329)+_0x574b9b[_0xb0c686(0x2cd)][_0xb0c686(0x2d3)](0x1)+_0xb0c686(0x13b)+(_0x574b9b['total_quota_pu']??0x0)+_0xb0c686(0x1c8)+(_0x574b9b[_0xb0c686(0x2e0)]>0x0?',\x20'+_0x574b9b['extra_pool_consumed_pu']+_0xb0c686(0x220):'')+_0xb0c686(0x28a)+_0x574b9b['period_end']+')':_0xb0c686(0x190),_0xb0c686(0x302)+_0x4ae0c8[_0xb0c686(0x195)][_0xb0c686(0x2d3)](0x2)+_0xb0c686(0x26c)+(_0x4ae0c8[_0xb0c686(0x2a7)]&&_0x4ae0c8['monthly_limit_usd']!==null?_0xb0c686(0x1a2)+_0x4ae0c8[_0xb0c686(0x23b)][_0xb0c686(0x2d3)](0x2)+_0xb0c686(0x2d1):_0xb0c686(0x17b)),_0xb0c686(0x184)+_0x5b88a1[_0xb0c686(0x18a)]+'\x20('+_0x5b88a1['model_id']+')'];_0x574b9b[_0xb0c686(0x199)]!==null&&_0x574b9b[_0xb0c686(0x199)]!==void 0x0&&_0x1e2dc7[_0xb0c686(0x2a6)]('Session:\x20\x20\x20\x20\x20\x20'+_0x574b9b[_0xb0c686(0x199)]+_0xb0c686(0x2d5)),process['stdout'][_0xb0c686(0x14d)](_0x1e2dc7[_0xb0c686(0x2bd)]('\x0a')+'\x0a');}function sn(_0x29fced){const _0x206791=_0x53171e;let _0x1d31a9=[_0x206791(0x159)+_0x29fced[_0x206791(0x299)]+_0x206791(0x249)+_0x29fced[_0x206791(0x1c2)]+_0x206791(0x2e2)+_0x29fced[_0x206791(0x24e)]+_0x206791(0x2d7),_0x206791(0x322)+_0x29fced[_0x206791(0x19e)][_0x206791(0x2d3)](0x2)+_0x206791(0x2ab)+_0x29fced[_0x206791(0x2ce)][_0x206791(0x2d3)](0x2)+_0x206791(0x312)+_0x29fced[_0x206791(0x1a9)]+_0x206791(0x2e3),_0x206791(0x307)+_0x29fced['total_prompt_tokens']+'\x20prompt,\x20'+_0x29fced[_0x206791(0x324)]+_0x206791(0x178)];for(let [_0x3c797d,_0x1c2260]of Object[_0x206791(0x204)](_0x29fced[_0x206791(0x1e4)]))_0x1d31a9[_0x206791(0x2a6)]('\x20\x20'+_0x3c797d+':\x20'+_0x1c2260+_0x206791(0x256));process[_0x206791(0x1c3)]['write'](_0x1d31a9[_0x206791(0x2bd)]('\x0a')+'\x0a');}function rn(_0x538880){const _0x53bd84=_0x53171e;if(_0x538880[_0x53bd84(0x2a3)][_0x53bd84(0x2e6)]===0x0){process['stdout']['write']('No\x20usage\x20in\x20the\x20last\x20'+_0x538880[_0x53bd84(0x299)]+'\x20days.\x0a');return;}let _0x557605=[_0x53bd84(0x169)];for(let _0x501fee of _0x538880[_0x53bd84(0x2a3)])_0x557605[_0x53bd84(0x2a6)](_0x501fee[_0x53bd84(0x21c)]+'\x20\x20'+String(_0x501fee[_0x53bd84(0x1cc)])[_0x53bd84(0x292)](0xb)+'\x20\x20'+String(_0x501fee['prompt_tokens'])[_0x53bd84(0x292)](0xd)+'\x20\x20'+String(_0x501fee[_0x53bd84(0x25b)])[_0x53bd84(0x292)](0x11));process[_0x53bd84(0x1c3)][_0x53bd84(0x14d)](_0x557605[_0x53bd84(0x2bd)]('\x0a')+'\x0a');}async function an(_0x5b7188,_0x2db979){const _0x21aa5f=_0x53171e;let _0x2ef022=await ln(_0x5b7188[_0x21aa5f(0x230)],_0x2db979);_0x5b7188[_0x21aa5f(0x2e9)]&&(_0x2ef022[_0x21aa5f(0x2e9)]=_0x5b7188[_0x21aa5f(0x2e9)]);let {client:_0x1ac2fd}=await v(_0x5b7188);try{_0x2db979===_0x21aa5f(0x215)?u(_0x5b7188,await _0x2c4960(_0x1ac2fd,_0x2ef022,void 0x0),dn):_0x2db979===_0x21aa5f(0x2d9)?u(_0x5b7188,await _0x33ffcc(_0x1ac2fd,_0x2ef022,void 0x0),un):u(_0x5b7188,await _0x1db8ab(_0x1ac2fd,_0x2ef022,void 0x0),pn);}catch(_0x2831e8){if(!_0x1ffff9(_0x2831e8))throw _0x2831e8;console[_0x21aa5f(0x225)](_0x2831e8[_0x21aa5f(0x2f8)]),process[_0x21aa5f(0x296)](0x1);}}async function ln(_0xa7b0de,_0x52de68){const _0x4048e1=_0x53171e;let _0x40dd8f;try{_0x40dd8f=_0xa7b0de&&_0xa7b0de!=='-'?_0x1ad1dc[_0x4048e1(0x28e)](_0x3f3c33[_0x4048e1(0x29e)](_0xa7b0de),'utf-8'):await j(_0xa7b0de,process[_0x4048e1(0x1d4)]);}catch(_0x97adc2){console[_0x4048e1(0x225)](_0x52de68+':\x20cannot\x20read\x20the\x20request\x20('+_0x97adc2[_0x4048e1(0x2f8)]+').'),process[_0x4048e1(0x296)](0x2);}return _0x40dd8f||(console[_0x4048e1(0x225)](_0x52de68+_0x4048e1(0x336)+_0x52de68+_0x4048e1(0x186)),process[_0x4048e1(0x296)](0x2)),Ae(_0x40dd8f,_0x52de68,_0x4048e1(0x27d));}function Ae(_0x34f80b,_0x19143a,_0x551153){const _0x110a02=_0x53171e;let _0x244ab6;try{_0x244ab6=JSON[_0x110a02(0x168)](_0x34f80b);}catch(_0x701dda){console[_0x110a02(0x225)](_0x19143a+':\x20'+_0x551153+_0x110a02(0x20c)+_0x701dda[_0x110a02(0x2f8)]+').'),process['exit'](0x2);}return(typeof _0x244ab6!='object'||_0x244ab6===null||Array[_0x110a02(0x250)](_0x244ab6))&&(console['error'](_0x19143a+':\x20'+_0x551153+_0x110a02(0x29a)),process[_0x110a02(0x296)](0x2)),_0x244ab6;}function $e(_0x1b0fa4,_0x49d984){const _0x589f43=_0x53171e;let _0x1b6f3a;try{_0x1b6f3a=_0x1ad1dc[_0x589f43(0x28e)](_0x3f3c33[_0x589f43(0x29e)](_0x1b0fa4),_0x589f43(0x2a1));}catch(_0xe92493){console[_0x589f43(0x225)](_0x49d984+_0x589f43(0x1b1)+_0xe92493[_0x589f43(0x2f8)]+').'),process[_0x589f43(0x296)](0x2);}return Ae(_0x1b6f3a,_0x49d984,_0x589f43(0x271));}async function cn(_0x28a2f0){const _0x3f6ff2=_0x53171e;_0x28a2f0[_0x3f6ff2(0x2eb)]===void 0x0&&(console[_0x3f6ff2(0x225)](_0x3f6ff2(0x177)),process['exit'](0x2));let _0x59f8f5=$e(_0x28a2f0[_0x3f6ff2(0x2eb)],_0x3f6ff2(0x20f)),_0x34fb76=(await j(_0x28a2f0['prompt'],process['stdin']))['trim']();_0x34fb76||(console[_0x3f6ff2(0x225)](_0x3f6ff2(0x290)),process[_0x3f6ff2(0x296)](0x2));let {client:_0x3c7dfa}=await v(_0x28a2f0);try{let _0x3051a4=await _0x5871fa(_0x3c7dfa,{'prompt':_0x34fb76,'jsonSchema':_0x59f8f5,'model':_0x28a2f0[_0x3f6ff2(0x2e9)]||process.env.MODEL||_0x35432f,..._0x28a2f0[_0x3f6ff2(0x32e)]!==void 0x0&&{'sessionId':_0x28a2f0['sessionId']}},void 0x0);u(_0x28a2f0,_0x3051a4,_0x1b26b6=>{const _0x21d160=_0x3f6ff2;process[_0x21d160(0x1c3)][_0x21d160(0x14d)](JSON[_0x21d160(0x247)](_0x1b26b6[_0x21d160(0x2b8)],null,0x2)+'\x0a');});}catch(_0x2b40ce){if(!_0x482692(_0x2b40ce))throw _0x2b40ce;console[_0x3f6ff2(0x225)](_0x2b40ce['message']),process[_0x3f6ff2(0x296)](0x1);}}function Y(_0x1c62a0){const _0x59919b=_0x53171e;process[_0x59919b(0x1c3)][_0x59919b(0x14d)](_0x59919b(0x27c)+_0x1c62a0[_0x59919b(0x2e9)]+'\x20('+_0x1c62a0[_0x59919b(0x1ec)]+_0x59919b(0x1f0)+_0x1c62a0[_0x59919b(0x23a)]['total_tokens']+_0x59919b(0x16c));}function dn(_0x577227){const _0x3b530e=_0x53171e;Y(_0x577227);for(let _0x585096 of Object[_0x3b530e(0x2b2)](_0x577227[_0x3b530e(0x2e1)])){let _0xb98b54=_0x577227[_0x3b530e(0x2e1)][_0x585096],_0x1f9993=_0xb98b54[_0x3b530e(0x175)]==='probability'?_0x3b530e(0x148)+_0xb98b54[_0x3b530e(0x25e)]['toFixed'](0x2):_0xb98b54['type']===_0x3b530e(0x185)?_0x3b530e(0x1bb)+_0xb98b54[_0x3b530e(0x185)]+'\x20(confidence\x20'+_0xb98b54[_0x3b530e(0x2c3)][_0x3b530e(0x2d3)](0x2)+')':_0x3b530e(0x242)+_0xb98b54['score'][_0x3b530e(0x2d3)](0x2)+'\x20(confidence\x20'+_0xb98b54[_0x3b530e(0x2c3)][_0x3b530e(0x2d3)](0x2)+')';process[_0x3b530e(0x1c3)][_0x3b530e(0x14d)]('\x20\x20'+_0x585096+':\x20'+_0x1f9993+'\x0a');}}function un(_0x519ef9){const _0x5f0324=_0x53171e;Y(_0x519ef9),_0x519ef9[_0x5f0324(0x272)]['forEach']((_0x25ba18,_0x4a03fe)=>{const _0x4ce5b9=_0x5f0324;process[_0x4ce5b9(0x1c3)][_0x4ce5b9(0x14d)]('\x20\x20'+(_0x4a03fe+0x1)+'.\x20'+_0x25ba18['id']+'\x20\x20'+_0x25ba18[_0x4ce5b9(0x1ae)][_0x4ce5b9(0x2d3)](0x3)+_0x4ce5b9(0x1cf)+_0x25ba18[_0x4ce5b9(0x13e)]+')\x0a');});}function pn(_0x245f7a){const _0x1f683e=_0x53171e;Y(_0x245f7a),process[_0x1f683e(0x1c3)][_0x1f683e(0x14d)](_0x1f683e(0x2d0)+_0x245f7a['rubric_version']+'\x0a');for(let _0x42c5c4 of _0x245f7a[_0x1f683e(0x272)])process['stdout']['write']('\x20\x20'+_0x42c5c4['id']+':\x20'+_0x42c5c4['verdict']+_0x1f683e(0x2bf)+_0x42c5c4[_0x1f683e(0x2c3)][_0x1f683e(0x2d3)](0x2)+')\x0a');}async function mn(_0x357a7a){const _0x169d6e=_0x53171e;let _0xe677df=_0x357a7a[_0x169d6e(0x230)][_0x169d6e(0x16b)]();_0xe677df||(console[_0x169d6e(0x225)]('transcribe\x20needs\x20audio:\x20delegate-cli\x20transcribe\x20<file>,\x20or\x20-\x20to\x20read\x20stdin.'),process[_0x169d6e(0x296)](0x2));let {client:_0x370dd8}=await v(_0x357a7a);try{let _0x3f2681=_0xe677df==='-'?{'data':await fn(process['stdin'])}:_0xe677df;u(_0x357a7a,await _0x3a5bb3(_0x370dd8,_0x3f2681,void 0x0),_0x258a92=>{const _0xb9b513=_0x169d6e;process[_0xb9b513(0x1c3)][_0xb9b513(0x14d)](_0x258a92[_0xb9b513(0x31c)]+'\x0a');});}catch(_0x1cc7f0){if(_0x2a3e96(_0x1cc7f0)&&(console[_0x169d6e(0x225)](_0x1cc7f0[_0x169d6e(0x2f8)]),process['exit'](_0x1cc7f0[_0x169d6e(0x1ef)]===void 0x0?0x2:0x1)),typeof _0x1cc7f0?.[_0x169d6e(0x151)]!='string')throw _0x1cc7f0;console[_0x169d6e(0x225)](_0x169d6e(0x2b3)+_0xe677df+'\x20('+_0x1cc7f0[_0x169d6e(0x2f8)]+').'),process[_0x169d6e(0x296)](0x2);}}async function fn(_0xe743b4){const _0x34f1a1=_0x53171e;let _0x5ad468=[];for await(let _0x42183f of _0xe743b4)_0x5ad468[_0x34f1a1(0x2a6)](Buffer[_0x34f1a1(0x218)](_0x42183f));return Buffer[_0x34f1a1(0x14a)](_0x5ad468);}var ce=['list',_0x53171e(0x1d9),_0x53171e(0x1f8),_0x53171e(0x174),_0x53171e(0x1da),_0x53171e(0x20f),_0x53171e(0x1c5),_0x53171e(0x1e1),'cancel',_0x53171e(0x1d7)],de={'list':_0x53171e(0x1d2),'pending':'delegations\x20pending\x20<session-id>','show':_0x53171e(0x29f),'create':_0x53171e(0x304),'claim':_0x53171e(0x26b),'complete':_0x53171e(0x2c1),'accept':_0x53171e(0x266),'dismiss':'delegations\x20dismiss\x20<delegation-id>','cancel':_0x53171e(0x19a),'delete':_0x53171e(0x1ed)};async function gn(_0x51f3da){const _0x1d49ae=_0x53171e;let [_0x3a98e3='',_0x4267f5='',..._0x46d3d6]=_0x51f3da[_0x1d49ae(0x2b6)];ce[_0x1d49ae(0x163)](_0x3a98e3)||(console[_0x1d49ae(0x225)]((_0x3a98e3?_0x1d49ae(0x197)+_0x3a98e3+'.\x20':'')+_0x1d49ae(0x2b0)+ce[_0x1d49ae(0x2bd)](_0x1d49ae(0x1f5))+'.'),process[_0x1d49ae(0x296)](0x2));let _0x252108=_0x3a98e3;_0x252108!==_0x1d49ae(0x174)&&(_0x51f3da['delegateTo']!==void 0x0||_0x51f3da[_0x1d49ae(0x1c4)]!==void 0x0||_0x51f3da[_0x1d49ae(0x32e)]!==void 0x0)&&(console['error'](_0x1d49ae(0x171)),process[_0x1d49ae(0x296)](0x2));let _0xdfc6aa=(_0x252108===_0x1d49ae(0x174)?_0x51f3da[_0x1d49ae(0x2b6)][_0x1d49ae(0x244)](0x1):_0x46d3d6)[_0x1d49ae(0x2bd)]('\x20')['trim'](),_0xc7b43f=_0x252108==='create'||_0x252108===_0x1d49ae(0x20f);(_0x252108!==_0x1d49ae(0x174)&&!_0x4267f5||(_0xc7b43f?!_0xdfc6aa:_0xdfc6aa)||_0x252108===_0x1d49ae(0x174)&&!_0x51f3da[_0x1d49ae(0x32e)])&&(console[_0x1d49ae(0x225)]('Usage:\x20delegate-cli\x20'+de[_0x252108]),process[_0x1d49ae(0x296)](0x2));let _0xc96939=_0xc7b43f&&_0xdfc6aa==='-'?(await j('-',process[_0x1d49ae(0x1d4)]))[_0x1d49ae(0x16b)]():_0xdfc6aa;_0xc7b43f&&!_0xc96939&&(console[_0x1d49ae(0x225)](_0x1d49ae(0x2d6)+de[_0x252108]+'\x20(stdin\x20was\x20empty)'),process[_0x1d49ae(0x296)](0x2));let {client:_0x148eda}=await v(_0x51f3da);try{await hn(_0x51f3da,_0x148eda,_0x252108,_0x4267f5,_0xc96939);}catch(_0x46d401){if(!_0x3ab0cd(_0x46d401))throw _0x46d401;console[_0x1d49ae(0x225)](_0x46d401[_0x1d49ae(0x2f8)]),process[_0x1d49ae(0x296)](0x1);}}async function hn(_0x33a999,_0x371b73,_0x797ea3,_0x1a4b40,_0x204ef8){const _0x2637bc=_0x53171e;switch(_0x797ea3){case _0x2637bc(0x1f7):u(_0x33a999,await _0x5e47e3(_0x371b73,_0x1a4b40),yn);return;case _0x2637bc(0x1d9):u(_0x33a999,await _0x4864db(_0x371b73,_0x1a4b40),_0x139e6f=>{const _0x561b57=_0x2637bc;_0x139e6f[_0x561b57(0x2bb)]&&process['stdout'][_0x561b57(0x14d)](_0x561b57(0x24d)+_0x139e6f[_0x561b57(0x2bb)]['id']+'\x20('+_0x139e6f['delegation'][_0x561b57(0x1ef)]+_0x561b57(0x237)),_0x139e6f[_0x561b57(0x28d)][_0x561b57(0x2e6)]===0x0&&process[_0x561b57(0x30c)][_0x561b57(0x14d)]('No\x20answers\x20awaiting\x20acceptance.\x0a');for(let _0x193e33 of _0x139e6f['pendingResults'])process[_0x561b57(0x1c3)][_0x561b57(0x14d)]('\x0a'+_0x193e33['id']+_0x561b57(0x2ba)+(_0x193e33[_0x561b57(0x23c)]??_0x561b57(0x1b3))+'\x20\x20'+(_0x193e33['task']??'')+'\x0a'+(_0x193e33['result']?.[_0x561b57(0x251)]??'')+'\x0a');_0x139e6f[_0x561b57(0x28d)][_0x561b57(0x2e6)]>0x0&&process['stderr'][_0x561b57(0x14d)](_0x561b57(0x294));});return;case _0x2637bc(0x1f8):u(_0x33a999,await _0x6d1809(_0x371b73,_0x1a4b40),ue);return;case'create':{let _0x2ac7f6=await _0x11729e(_0x371b73,{'sessionId':_0x33a999[_0x2637bc(0x32e)],'task':_0x204ef8,..._0x33a999[_0x2637bc(0x1c4)]!==void 0x0&&{'contextSummary':_0x33a999[_0x2637bc(0x1c4)]},..._0x33a999['delegateTo']!==void 0x0&&{'recipient':_0x33a999[_0x2637bc(0x1ff)]}});u(_0x33a999,_0x2ac7f6,_0x236a5a=>{const _0x3cc513=_0x2637bc;_0x236a5a[_0x3cc513(0x1dc)]?process[_0x3cc513(0x1c3)][_0x3cc513(0x14d)]('Delegated\x20'+_0x236a5a[_0x3cc513(0x1fb)]+_0x3cc513(0x303)+_0x236a5a['assignedUser'][_0x3cc513(0x1ca)]+'\x20<'+_0x236a5a[_0x3cc513(0x1dc)][_0x3cc513(0x1b5)]+_0x3cc513(0x286)):process[_0x3cc513(0x1c3)]['write'](_0x3cc513(0x328)+_0x236a5a[_0x3cc513(0x1fb)]+'.\x20Share:\x20'+_0x236a5a['deepLink']+'\x0a');});return;}case'claim':{let _0x42f994=await _0x437b(_0x371b73,_0x1a4b40);u(_0x33a999,_0x42f994,_0x28d1a2=>{const _0x3a7d9a=_0x2637bc;ue(_0x28d1a2),process[_0x3a7d9a(0x1c3)][_0x3a7d9a(0x14d)](_0x3a7d9a(0x2cf)+_0x28d1a2['sessionId']+'\x0a'),process[_0x3a7d9a(0x30c)]['write'](_0x3a7d9a(0x1a3)+_0x28d1a2[_0x3a7d9a(0x32e)]+_0x3a7d9a(0x1ba)+_0x28d1a2[_0x3a7d9a(0x1fb)]+_0x3a7d9a(0x16d));});return;}case _0x2637bc(0x20f):{let {alreadyCompleted:_0xd51141}=await _0x440340(_0x371b73,_0x1a4b40,{'content':_0x204ef8});u(_0x33a999,{'delegationId':_0x1a4b40,'alreadyCompleted':_0xd51141},_0x4612ad=>{const _0x1099a6=_0x2637bc;process[_0x1099a6(0x1c3)]['write']((_0x4612ad[_0x1099a6(0x2df)]?_0x1099a6(0x22a):_0x1099a6(0x26e))+_0x1099a6(0x155)+_0x4612ad['delegationId']+'.\x0a');});return;}case _0x2637bc(0x1c5):{let _0x1dd534=await _0x4585f6(_0x371b73,_0x1a4b40);u(_0x33a999,{'delegationId':_0x1a4b40,..._0x1dd534},_0x81cf38=>{const _0x59c93c=_0x2637bc;process[_0x59c93c(0x1c3)][_0x59c93c(0x14d)]((_0x81cf38[_0x59c93c(0x323)]?_0x59c93c(0x144):_0x59c93c(0x221))+'\x20delegation\x20'+_0x81cf38['delegationId']+'.\x0a');});return;}default:{let _0x1c1d8d={'dismiss':_0x498143,'cancel':_0x432f08,'delete':_0x477d3b}[_0x797ea3];await _0x1c1d8d(_0x371b73,_0x1a4b40);let _0x13c498={'dismiss':_0x2637bc(0x17c),'cancel':_0x2637bc(0x18c),'delete':_0x2637bc(0x187)}[_0x797ea3];u(_0x33a999,{'delegationId':_0x1a4b40,[_0x13c498]:!0x0},()=>{const _0x37de3a=_0x2637bc;process[_0x37de3a(0x1c3)][_0x37de3a(0x14d)](''+_0x13c498[0x0][_0x37de3a(0x13c)]()+_0x13c498[_0x37de3a(0x244)](0x1)+'\x20delegation\x20'+_0x1a4b40+'.\x0a');});}}}function yn(_0x1fd925){const _0x57e829=_0x53171e;if(_0x1fd925[_0x57e829(0x2e6)]===0x0){process[_0x57e829(0x30c)]['write'](_0x57e829(0x28f));return;}process[_0x57e829(0x1c3)][_0x57e829(0x14d)]('ID'[_0x57e829(0x2fe)](0x24)+'\x20\x20'+_0x57e829(0x18b)[_0x57e829(0x2fe)](0x9)+'\x20\x20'+_0x57e829(0x24c)[_0x57e829(0x2fe)](0x18)+_0x57e829(0x1e0));for(let _0x412846 of _0x1fd925)process[_0x57e829(0x1c3)][_0x57e829(0x14d)](_0x412846['id']['padEnd'](0x24)+'\x20\x20'+_0x412846[_0x57e829(0x1ef)][_0x57e829(0x2fe)](0x9)+'\x20\x20'+(_0x412846[_0x57e829(0x23c)]??'-')[_0x57e829(0x2fe)](0x18)+'\x20\x20'+(_0x412846['task']??'')+'\x0a');}function ue(_0x19d058){const _0x59c3f6=_0x53171e;process[_0x59c3f6(0x1c3)][_0x59c3f6(0x14d)](_0x59c3f6(0x321)+(_0x19d058[_0x59c3f6(0x325)]??'-')+'\x0a'),_0x19d058[_0x59c3f6(0x21f)]&&process['stdout'][_0x59c3f6(0x14d)](_0x59c3f6(0x2cf)+_0x19d058['sourceTitle']+'\x0a'),process[_0x59c3f6(0x1c3)][_0x59c3f6(0x14d)]('Task\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x19d058[_0x59c3f6(0x334)]??'-')+'\x0a'),_0x19d058[_0x59c3f6(0x1c4)]&&process['stdout']['write']('\x0a'+_0x19d058[_0x59c3f6(0x1c4)]+'\x0a\x0a');}async function wn(_0x12d21d){const _0x2a578e=_0x53171e;_0x12d21d[_0x2a578e(0x230)][_0x2a578e(0x16b)]()||(console['error']('Usage:\x20delegate-cli\x20org-users\x20<name\x20or\x20email\x20prefix>'),process['exit'](0x2));let {client:_0x3a2583}=await v(_0x12d21d),_0x32c4bf;try{_0x32c4bf=await _0x5ca04c(_0x3a2583,_0x12d21d[_0x2a578e(0x230)]);}catch(_0x4c5b27){if(!_0x3ab0cd(_0x4c5b27))throw _0x4c5b27;console[_0x2a578e(0x225)](_0x4c5b27[_0x2a578e(0x2f8)]),process[_0x2a578e(0x296)](0x1);}u(_0x12d21d,_0x32c4bf,_0x4d58d3=>{const _0x47456e=_0x2a578e;_0x4d58d3[_0x47456e(0x2e6)]===0x0&&process[_0x47456e(0x30c)][_0x47456e(0x14d)](_0x47456e(0x157)+_0x12d21d[_0x47456e(0x230)][_0x47456e(0x16b)]()+_0x47456e(0x160));for(let _0x51c673 of _0x4d58d3)process[_0x47456e(0x1c3)]['write'](_0x51c673['email'][_0x47456e(0x2fe)](0x20)+'\x20\x20'+_0x51c673[_0x47456e(0x1ca)]+'\x0a');});}async function kn(_0x542a0f){const _0x4d97b4=_0x53171e;_0x542a0f[_0x4d97b4(0x2a4)]===_0x4d97b4(0x238)&&(console[_0x4d97b4(0x225)](_0x4d97b4(0x1a0)),process[_0x4d97b4(0x296)](0x2));let _0x3575eb=M(_0x53c2d3()),_0xc3e6f7=_0x542a0f[_0x4d97b4(0x308)];if(_0x542a0f[_0x4d97b4(0x2a4)]){let _0x55ec53=_0x542a0f['env'];await _0x511e40({'env':_0x55ec53,'tenant':_0x542a0f[_0x4d97b4(0x1b4)]??G(_0x3575eb,_0x3ac3fe[_0x55ec53]),'skipEnvCheck':_0xc3e6f7});return;}let _0x3b07b8=_0x542a0f[_0x4d97b4(0x14b)]??ve();if(_0x3b07b8){await _0x511e40({'baseUrl':_0x3b07b8,'tenant':_0x542a0f[_0x4d97b4(0x1b4)]??G(_0x3575eb,_0x3b07b8),'skipEnvCheck':_0xc3e6f7});return;}if(_0x3575eb?.[_0x4d97b4(0x224)]){await _0x511e40({'baseUrl':_0x3575eb[_0x4d97b4(0x224)],'tenant':_0x542a0f['tenant']??_0x3575eb['tenantName'],'skipEnvCheck':_0xc3e6f7});return;}console[_0x4d97b4(0x225)](_0x4d97b4(0x235)),process[_0x4d97b4(0x296)](0x2);}function G(_0x1d4624,_0x39b9fe){const _0x1d19db=_0x53171e;return _0x1d4624?.[_0x1d19db(0x224)]&&bn(_0x1d4624[_0x1d19db(0x224)],_0x39b9fe)?_0x1d4624[_0x1d19db(0x2f3)]:void 0x0;}function bn(_0x1bdf1a,_0x8c6156){const _0xea2916=_0x53171e;try{return new URL(_0x1bdf1a)[_0xea2916(0x2d2)]===new URL(_0x8c6156)[_0xea2916(0x2d2)];}catch{return!0x1;}}async function Sn(_0x3f79f0){const _0x4c5483=_0x53171e;Q()&&(console[_0x4c5483(0x225)](_0x4c5483(0x297)),process[_0x4c5483(0x296)](0x2));let _0x28c419=await _0x3fac2e();if(_0x28c419||(console[_0x4c5483(0x225)](vn()),process[_0x4c5483(0x296)](0x2)),_0x3f79f0[_0x4c5483(0x16b)]()){let _0x4fa290=await _0x5da9ce(_0x28c419,_0x3f79f0);_0x4f0878(_0x4fa290)||(console[_0x4c5483(0x225)](_0x4c5483(0x206)+_0x53c2d3()+_0x4c5483(0x283)+_0x28c419[_0x4c5483(0x2f3)]+'.'),process[_0x4c5483(0x296)](0x1)),console[_0x4c5483(0x2fb)]('Tenant:\x20'+_0x4fa290[_0x4c5483(0x2f3)]+'\x20('+_0x4fa290['tenantId']+_0x4c5483(0x211)+_0x53c2d3());return;}An(await _0x3895e5(_0x28c419),_0x28c419);}function vn(){const _0x401da0=_0x53171e;if(_0x1ad1dc[_0x401da0(0x20e)](_0x53c2d3()))return _0x401da0(0x15e);let _0x2e75c4=K();return M(_0x2e75c4)?_0x401da0(0x1bc)+_0x2e75c4+_0x401da0(0x1c0):'No\x20CLI\x20login\x20found.\x20Run\x20`delegate-cli\x20login\x20--env\x20<alpha|staging|production>`\x20first.';}function An(_0x413bf0,_0xf7ba0a){const _0x494339=_0x53171e;let _0xc0eb0e=_0x413bf0[_0x494339(0x253)](_0x4dd95a=>_0x4dd95a['id']===_0xf7ba0a['tenantId']?'*\x20'+_0x4dd95a[_0x494339(0x176)]+_0x494339(0x255):'\x20\x20'+_0x4dd95a[_0x494339(0x176)]);process[_0x494339(0x1c3)]['write'](_0x494339(0x1ee)+(_0xf7ba0a['orgLogicalName']??_0xf7ba0a['organizationId'])+':\x0a'+_0xc0eb0e[_0x494339(0x2bd)]('\x0a')+'\x0a'),_0x413bf0[_0x494339(0x2e6)]>0x1&&process[_0x494339(0x1c3)][_0x494339(0x14d)]('Switch\x20with:\x20delegate-cli\x20tenant\x20<name>\x0a');}function $n(_0x2e5fb5){const _0x218952=_0x53171e;return _0x2e5fb5?.['response']?.[_0x218952(0x1ef)]===0x191||/401/[_0x218952(0x2f6)](String(_0x2e5fb5?.[_0x218952(0x2f8)]??''));}var f={'lastType':null,'quiet':!0x1},Ee=_0x18de5f=>{const _0x273daf=_0x53171e;switch(_0x18de5f[_0x273daf(0x175)]){case'session_start':_0x18de5f['sessionId']&&_0x18de5f['sessionId']!==f['sessionId']&&(process['stderr']['write'](_0x273daf(0x258)+_0x18de5f[_0x273daf(0x32e)]+'\x20(resume\x20with\x20--session\x20'+_0x18de5f[_0x273daf(0x32e)]+')\x0a'),f[_0x273daf(0x32e)]=_0x18de5f[_0x273daf(0x32e)]);break;case _0x273daf(0x2f7):_0x18de5f[_0x273daf(0x1ce)]&&_0x18de5f[_0x273daf(0x1ce)]!==f[_0x273daf(0x1ce)]&&(f[_0x273daf(0x31b)]!==null&&process['stderr']['write']('\x0a'),process[_0x273daf(0x30c)][_0x273daf(0x14d)]('Turn:\x20'+_0x18de5f[_0x273daf(0x1ce)]+_0x273daf(0x1c1)+_0x18de5f[_0x273daf(0x32e)]+_0x273daf(0x2ad)+_0x18de5f[_0x273daf(0x1ce)]+')\x0a'),f[_0x273daf(0x1ce)]=_0x18de5f[_0x273daf(0x1ce)],f[_0x273daf(0x31b)]=_0x273daf(0x2f7));break;case'thinking':_0x18de5f[_0x273daf(0x251)]&&!f['quiet']&&(f[_0x273daf(0x31b)]!==_0x273daf(0x13a)&&process[_0x273daf(0x30c)]['write'](_0x273daf(0x1bd)),process[_0x273daf(0x30c)][_0x273daf(0x14d)](_0x18de5f[_0x273daf(0x251)]),f[_0x273daf(0x31b)]='thinking');break;case _0x273daf(0x164):f['lastType']!==null&&process[_0x273daf(0x30c)][_0x273daf(0x14d)]('\x0a'),process[_0x273daf(0x30c)][_0x273daf(0x14d)](_0x273daf(0x314)+(_0x18de5f[_0x273daf(0x245)]??_0x273daf(0x227))+'\x0a'),f['lastType']='tool_call';break;case _0x273daf(0x2f8):_0x18de5f[_0x273daf(0x251)]&&(f['lastType']!==_0x273daf(0x2f8)&&f[_0x273daf(0x31b)]!==null&&process[_0x273daf(0x1c3)]['write']('\x0a'),process['stdout'][_0x273daf(0x14d)](_0x18de5f['content']),f[_0x273daf(0x31b)]='message');break;case _0x273daf(0x225):f[_0x273daf(0x31b)]!==null&&process['stderr']['write']('\x0a'),process[_0x273daf(0x30c)][_0x273daf(0x14d)]('✗\x20'+(_0x18de5f['error']??_0x273daf(0x225))+'\x0a'),f['lastType']=_0x273daf(0x225);break;case _0x273daf(0x32c):(f[_0x273daf(0x31b)]===_0x273daf(0x2f8)||f[_0x273daf(0x31b)]===_0x273daf(0x13a))&&process[_0x273daf(0x1c3)][_0x273daf(0x14d)]('\x0a'),process[_0x273daf(0x30c)]['write'](_0x273daf(0x236)),f[_0x273daf(0x31b)]=_0x273daf(0x32c);break;}};function pe(_0x273584,_0x4420f2,_0x25de10,_0x1a1eb0){const _0x477a14=_0x53171e;let _0x33a37d=_0x273584[_0x477a14(0x2e9)]||process.env.MODEL;return{'backendUrl':_0x25de10,'auth':_0x4420f2,'enableComputerUse':!_0x273584[_0x477a14(0x2ee)]&&!_0x273584[_0x477a14(0x260)],'autoSpawnInterop':!_0x273584[_0x477a14(0x2ee)],'enableConnections':!_0x273584['noConnections'],'enableSecurity':!_0x273584[_0x477a14(0x179)],'keepInteropAlive':_0x273584[_0x477a14(0x2b9)],..._0x1a1eb0[_0x477a14(0x19f)]?{'enableBackgroundCommands':!0x1}:{},..._0x273584['noMemory']?{'enableMemory':!0x1}:{},..._0x273584[_0x477a14(0x1a7)]?{'enableTaskAutomation':!0x0}:{},..._0x273584['preloadSkills'][_0x477a14(0x2e6)]>0x0?{'preloadSkills':_0x273584[_0x477a14(0x30a)]}:{},..._0x33a37d?{'model':_0x33a37d}:{},..._0x273584[_0x477a14(0x316)]?{'projectId':_0x273584[_0x477a14(0x316)]}:{},..._0x273584[_0x477a14(0x2dd)]?{'workingDirectory':_0x273584[_0x477a14(0x2dd)]}:{},..._0x273584[_0x477a14(0x2e4)]?{'bundledSkillsPath':_0x273584[_0x477a14(0x2e4)]}:{},..._0x273584['effort']?{'effort':_0x273584[_0x477a14(0x1f4)]}:{},..._0x273584['sessionId']?{'sessionId':_0x273584[_0x477a14(0x32e)]}:{},..._0x273584[_0x477a14(0x14f)]?{'verbose':!0x0}:{}};}async function En(_0x174aaa){const _0x1bc194=_0x53171e;let _0x578007=_0x174aaa[_0x1bc194(0x252)]!=='text',_0x3e4883=_0x174aaa[_0x1bc194(0x2eb)]===void 0x0?null:$e(_0x174aaa['jsonSchemaPath'],'delegate-cli'),_0x358412=!_0x578007&&!_0x3e4883&&!_0x174aaa[_0x1bc194(0x216)]&&_0x174aaa[_0x1bc194(0x230)]!=='-'&&!!process[_0x1bc194(0x1d4)]['isTTY']&&!!process[_0x1bc194(0x1c3)][_0x1bc194(0x207)],_0x2e4ff9=_0x358412?_0x174aaa['prompt']['trim']():await j(_0x174aaa[_0x1bc194(0x230)],process[_0x1bc194(0x1d4)]);if(!_0x358412&&!_0x2e4ff9&&(console[_0x1bc194(0x225)](_0x1bc194(0x142)),process[_0x1bc194(0x296)](0x2)),!_0x578007){await me(_0x174aaa,_0x2e4ff9,_0x358412,null,_0x3e4883);return;}let _0x50ab82=!0x1,_0x413fb5=_0x2a9b9b=>{const _0x245fa2=_0x1bc194;_0x50ab82=!0x0,P(_0x400bb9(_0x2a9b9b)),(_0x2a9b9b[_0x245fa2(0x208)]||_0x2a9b9b[_0x245fa2(0x30b)])&&(process['exitCode']=0x1);},_0x4b8295=Date['now']();try{await me(_0x174aaa,_0x2e4ff9,!0x1,_0x413fb5,_0x3e4883);}catch(_0x38482a){if(_0x50ab82)throw _0x38482a;process[_0x1bc194(0x30c)][_0x1bc194(0x14d)]((_0x38482a instanceof Error?_0x38482a[_0x1bc194(0x2c4)]??_0x38482a['message']:String(_0x38482a))+'\x0a'),_0x413fb5(new _0x3a65a8(_0x4b8295)[_0x1bc194(0x17a)]({'endedAtMs':Date[_0x1bc194(0x31d)](),'usage':[],'error':_0x38482a}));}}async function me(_0x4a99fe,_0x2917f2,_0x410d27,_0x5b2f2b,_0x1997f7){const _0x17a96d=_0x53171e;f={'lastType':null,'quiet':_0x4a99fe[_0x17a96d(0x333)]};let _0x2ebffe=new Set(),_0x1e404b,_0x3f1aca=_0x2700bd=>{const _0x4850c6=_0x17a96d;(!_0x5b2f2b||_0x2700bd[_0x4850c6(0x175)]===_0x4850c6(0x153)||_0x2700bd[_0x4850c6(0x175)]===_0x4850c6(0x2f7))&&(_0x1e404b??Ee)(_0x2700bd);for(let _0x142b22 of _0x2ebffe)_0x142b22(_0x2700bd);},_0x1be659=await q(),_0x9f4698=new _0x5aacc3();_0x9f4698[_0x17a96d(0x2b7)](_0x3f1aca);let _0x2dbb79=_0x1915e6(_0x4a99fe[_0x17a96d(0x2a4)],_0x1be659,_0x4a99fe[_0x17a96d(0x14e)]);z(_0x4a99fe[_0x17a96d(0x2a4)],_0x4a99fe[_0x17a96d(0x14e)],_0x2dbb79);let _0x1ab46a={'input':null},_0x4481e1=_0x410d27?Z(()=>_0x1ab46a[_0x17a96d(0x1b2)],_0x12d821=>{const _0x28ed42=_0x17a96d;process[_0x28ed42(0x30c)][_0x28ed42(0x14d)](_0x12d821);}):null,_0x5c149f=_0x41c7bb=>_0x4481e1?{..._0x41c7bb,'askUser':_0x4481e1}:_0x41c7bb,_0x31b7f2=_0x5c149f(pe(_0x4a99fe,_0x1be659,_0x2dbb79,{'oneTurn':!_0x410d27})),_0x140b6f=!0x1,_0x3249c2=!0x1,_0x40a60c,_0x1b2faa=()=>_0x40a60c??=_0x9f4698[_0x17a96d(0x2b5)](),_0x55e564=()=>{const _0x497ab2=_0x17a96d;_0x3249c2&&process['exit'](0x82),_0x3249c2=!0x0,process[_0x497ab2(0x30c)][_0x497ab2(0x14d)]('\x0aStopping…\x20(Ctrl+C\x20again\x20to\x20force\x20exit)\x0a'),_0x140b6f&&_0x9f4698[_0x497ab2(0x2ae)]()[_0x497ab2(0x21d)](_0x4ca96b=>console['error'](_0x4ca96b))[_0x497ab2(0x219)](_0x1b2faa)[_0x497ab2(0x219)](()=>process[_0x497ab2(0x296)](0x82),_0x3e5e22=>{const _0x585856=_0x497ab2;console[_0x585856(0x225)](_0x3e5e22),process[_0x585856(0x296)](0x82);});};process['on'](_0x17a96d(0x1a8),_0x55e564);let _0x4aac13=_0x4a99fe[_0x17a96d(0x189)],_0x4a9995=async _0xa99192=>{const _0x1f83da=_0x17a96d;let _0x1f2089=_0x4aac13;_0x4aac13=[];let _0x1f95bf=()=>_0x9f4698[_0x1f83da(0x2e7)](_0xa99192,{'attachments':_0x1f2089});try{return await _0x1f95bf();}catch(_0x3f913f){if(_0x3249c2||!$n(_0x3f913f)||!process[_0x1f83da(0x1d4)][_0x1f83da(0x207)]||_0x4a99fe[_0x1f83da(0x2a4)]===_0x1f83da(0x238)||!(_0x4a99fe[_0x1f83da(0x2a4)]||_0x1be659['baseUrl']))throw _0x3f913f;process[_0x1f83da(0x30c)][_0x1f83da(0x14d)](_0x1f83da(0x191));let _0x421442=_0x9f4698[_0x1f83da(0x1e7)]()??_0x4a99fe['sessionId'],_0x17076b=await _0x511e40(_0x4a99fe[_0x1f83da(0x2a4)]?{'env':_0x4a99fe[_0x1f83da(0x2a4)],'tenant':G(_0x1be659,_0x3ac3fe[_0x4a99fe[_0x1f83da(0x2a4)]]),'skipEnvCheck':!0x0}:{'baseUrl':_0x1be659[_0x1f83da(0x224)],'tenant':_0x1be659[_0x1f83da(0x2f3)],'skipEnvCheck':!0x0}),_0x364b7e={'text':'','failed':!0x1,'sessionId':_0x421442};return _0x3249c2||(_0x140b6f=!0x1,await _0x1b2faa(),_0x3249c2)?_0x364b7e:(_0x9f4698=new _0x5aacc3(),_0x40a60c=void 0x0,_0x9f4698[_0x1f83da(0x2b7)](_0x3f1aca),_0x1be659=_0x17076b,await _0x9f4698[_0x1f83da(0x1fd)]({..._0x5c149f(pe(_0x4a99fe,_0x1be659,_0x2dbb79,{'oneTurn':!_0x410d27})),..._0x421442?{'sessionId':_0x421442}:{}}),_0x140b6f=!0x0,_0x3249c2?_0x364b7e:_0x1f95bf());}};try{if(await _0x9f4698[_0x17a96d(0x1fd)](_0x31b7f2),_0x140b6f=!0x0,_0x3249c2)return;if(_0x410d27)await xn({'prompt':_0x2917f2,'sendMessage':_0x4a9995,'onSigint':_0x55e564,'setAnswerInput':_0x30c32b=>{_0x1ab46a['input']=_0x30c32b;},'registerEventPrinter':_0x279924=>(_0x1e404b=_0x279924,()=>{_0x1e404b=void 0x0;})});else{if(_0x5b2f2b||_0x1997f7){let _0x2ab85b=_0x4a99fe[_0x17a96d(0x252)]===_0x17a96d(0x20b)?_0x487874=>P(_0x36f52e(_0x487874)):()=>{},_0x1fe93c=await _0x58a7da({'onEvent':_0x1724eb=>(_0x2ebffe['add'](_0x1724eb),()=>{_0x2ebffe['delete'](_0x1724eb);}),'sendMessage':_0x295d7b=>_0x4a9995(_0x295d7b),'getSessionId':()=>_0x9f4698[_0x17a96d(0x1e7)](),'getTurnUsageHistory':_0x3c7b71=>_0x9f4698[_0x17a96d(0x229)](_0x3c7b71),'complete':_0x5d90ac=>_0x9f4698[_0x17a96d(0x20f)](_0x5d90ac)},_0x2917f2,void 0x0,_0x2ab85b,_0x1997f7?{'outputSchema':_0x1997f7}:void 0x0);_0x5b2f2b?_0x5b2f2b(_0x1fe93c):In(_0x1fe93c);}else await _0x4a9995(_0x2917f2);}}catch(_0x223f7a){if(!_0x3249c2)throw _0x223f7a;}finally{try{await _0x1b2faa();}finally{process['off'](_0x17a96d(0x1a8),_0x55e564),_0x3249c2&&(process[_0x17a96d(0x145)]=0x82);}}}function In(_0x3b7bbc){const _0x5d2977=_0x53171e;_0x3b7bbc[_0x5d2977(0x30b)]?(console[_0x5d2977(0x225)]('Structured\x20output\x20failed:\x20'+_0x3b7bbc[_0x5d2977(0x30b)][_0x5d2977(0x2f8)]),process[_0x5d2977(0x145)]=0x1):_0x3b7bbc[_0x5d2977(0x208)]?(console[_0x5d2977(0x225)](_0x5d2977(0x23f)+_0x3b7bbc[_0x5d2977(0x225)]+').'),process[_0x5d2977(0x145)]=0x1):process['stdout']['write'](JSON[_0x5d2977(0x247)](_0x3b7bbc['structured'],null,0x2)+'\x0a');}function Tn(_0x1e7043,_0x3f68b3){const _0x42fb18=_0x53171e;let _0x25f1a6=process['stdout'][_0x42fb18(0x14d)][_0x42fb18(0x1cd)](process[_0x42fb18(0x1c3)]),_0x4d5eb7=!0x1;return process['stdout'][_0x42fb18(0x14d)]=(..._0x2ea99d)=>{const _0x3926a8=_0x42fb18;if(!_0x4d5eb7)return _0x25f1a6(..._0x2ea99d);_0x488883(_0x3f68b3,0x0),_0x4475f5(_0x3f68b3,0x0);let _0x1b8134=_0x25f1a6(..._0x2ea99d);return _0x1e7043[_0x3926a8(0x230)](!0x0),_0x1b8134;},{'show':()=>{const _0x8bcf6e=_0x42fb18;_0x4d5eb7=!0x0,_0x1e7043[_0x8bcf6e(0x230)]();},'hide':()=>{_0x4d5eb7=!0x1;},'erase':()=>{_0x4d5eb7&&(_0x488883(_0x3f68b3,0x0),_0x4475f5(_0x3f68b3,0x0)),_0x4d5eb7=!0x1;},'restore':()=>{const _0x5a1e0f=_0x42fb18;_0x4d5eb7=!0x1,process['stdout'][_0x5a1e0f(0x14d)]=_0x25f1a6;}};}async function xn({prompt:_0x542fa0,sendMessage:_0x5d3c1a,onSigint:_0x4cbc35,setAnswerInput:_0x2388a5,registerEventPrinter:_0x51b1a3}){const _0x5dd085=_0x53171e;let _0x1c9a33=_0x41a7e8({'input':process[_0x5dd085(0x1d4)],'output':process[_0x5dd085(0x30c)],'terminal':!0x0,'prompt':_0x5dd085(0x205)}),_0x1be697=Tn(_0x1c9a33,process[_0x5dd085(0x30c)]),_0x4ebf8a=[],_0x46313a,_0x10812f,_0x105c59,_0x30a497=!0x1,_0x36ba95=!0x1,_0x7611e4=!0x1,_0x4a45c8=Promise[_0x5dd085(0x29e)](),_0x27b55d,_0x109066=_0x51b1a3(_0x463681=>{const _0x4c194c=_0x5dd085;_0x463681[_0x4c194c(0x175)]==='session_start'&&(_0x1be697[_0x4c194c(0x15a)](),_0x4a45c8=new Promise(_0xc7377e=>{_0x27b55d=_0xc7377e;})),Ee(_0x463681),_0x463681[_0x4c194c(0x175)]===_0x4c194c(0x32c)&&(_0x27b55d?.(),_0x27b55d=void 0x0,!_0x7611e4&&!_0x30a497&&_0x1be697[_0x4c194c(0x1f8)]());}),_0x533b9e=()=>{const _0x2eb61f=_0x5dd085;_0x36ba95=!0x0,_0x27b55d?.(),_0x4cbc35(),_0x1c9a33[_0x2eb61f(0x276)]();};_0x1c9a33['on'](_0x5dd085(0x311),_0x43e7b5=>{const _0x5a8867=_0x5dd085;_0x105c59?_0x105c59(_0x43e7b5):_0x46313a?_0x46313a[_0x5a8867(0x2a6)](_0x43e7b5):_0x10812f?_0x10812f(_0x43e7b5):_0x4ebf8a[_0x5a8867(0x2a6)](_0x43e7b5);}),_0x1c9a33[_0x5dd085(0x2ed)](_0x5dd085(0x276),()=>{const _0xc98724=_0x5dd085;_0x30a497=!0x0,_0x1be697[_0xc98724(0x150)](),_0x46313a&&!_0x36ba95&&_0x533b9e(),_0x10812f?.(null);});let _0x56e75e=()=>_0x4ebf8a[_0x5dd085(0x2e6)]>0x0?Promise['resolve'](_0x4ebf8a[_0x5dd085(0x284)]()):_0x30a497?Promise[_0x5dd085(0x29e)](null):new Promise(_0x35d962=>{_0x10812f=_0x5b063f=>{_0x10812f=void 0x0,_0x35d962(_0x5b063f);};});_0x2388a5({'readLine':(_0x575ddc,_0x532b45)=>new Promise((_0x5eb874,_0x3575aa)=>{const _0x2d8d8f=_0x5dd085;if(_0x30a497&&!_0x46313a){_0x5eb874(null);return;}_0x46313a??=[];let _0x5e5674=_0x46313a['shift']();if(_0x5e5674!==void 0x0){_0x5eb874(_0x5e5674);return;}let _0x5cfd0a=()=>{const _0x50c519=_0x35d8;_0x105c59=void 0x0,_0x532b45[_0x50c519(0x335)]('abort',_0x364b1c),_0x1be697['hide'](),_0x1c9a33['setPrompt'](_0x50c519(0x205));},_0x364b1c=()=>{const _0x236163=_0x35d8;_0x5cfd0a(),_0x3575aa(new Error(_0x236163(0x25d)));};_0x532b45[_0x2d8d8f(0x2f0)](_0x2d8d8f(0x1db),_0x364b1c,{'once':!0x0}),!_0x30a497&&(_0x105c59=_0x28ecd9=>{_0x5cfd0a(),_0x5eb874(_0x28ecd9);},_0x1c9a33[_0x2d8d8f(0x1a4)](_0x575ddc),_0x1be697[_0x2d8d8f(0x1f8)]());}),'endQuestions':()=>{const _0x2ef4cd=_0x5dd085;_0x46313a&&_0x4ebf8a[_0x2ef4cd(0x2a6)](..._0x46313a),_0x46313a=void 0x0;}}),_0x1c9a33['on'](_0x5dd085(0x1a8),_0x533b9e),process[_0x5dd085(0x30c)][_0x5dd085(0x14d)]('Enter\x20sends\x20a\x20message.\x20/exit\x20or\x20EOF\x20exits;\x20Ctrl+C\x20stops\x20and\x20exits.\x0a');let _0x14abfa=async _0x2b3722=>{_0x7611e4=!0x0;try{await _0x5d3c1a(_0x2b3722);}finally{_0x7611e4=!0x1;}};try{if(_0x542fa0&&await _0x14abfa(_0x542fa0),_0x36ba95)return;!_0x30a497&&!_0x27b55d&&_0x1be697[_0x5dd085(0x1f8)]();for(let _0x2b68bd=await _0x56e75e();_0x2b68bd!==null&&(_0x1be697[_0x5dd085(0x150)](),!_0x36ba95);_0x2b68bd=await _0x56e75e()){let _0x423345=_0x2b68bd['trim']();if(_0x423345===_0x5dd085(0x198))break;_0x423345&&await _0x14abfa(_0x423345),!_0x30a497&&!_0x27b55d&&_0x1be697[_0x5dd085(0x1f8)]();}for(;!_0x36ba95&&_0x27b55d;)await _0x4a45c8;}finally{_0x2388a5(null),_0x109066(),_0x1be697[_0x5dd085(0x30e)](),_0x1c9a33[_0x5dd085(0x2de)](_0x5dd085(0x1a8),_0x533b9e),_0x1c9a33[_0x5dd085(0x276)]();}}async function Dn(){const _0x284f84=_0x53171e;let _0xe3a97b=Rt(process[_0x284f84(0x337)][_0x284f84(0x244)](0x2));if(_0xe3a97b[_0x284f84(0x252)]===_0x284f84(0x31c)){await fe(_0xe3a97b);return;}let _0x1216d2=Pt();try{await fe(_0xe3a97b);}finally{_0x1216d2();}}async function fe(_0x1e6987){const _0x4b98fd=_0x53171e;if(_0x1e6987['help']){Ct();return;}if(_0x1e6987[_0x4b98fd(0x2c6)]){console['log'](Lt());return;}if(_0x1e6987[_0x4b98fd(0x16f)]==='login'){await kn(_0x1e6987);return;}if(_0x1e6987[_0x4b98fd(0x16f)]==='tenant'){await Sn(_0x1e6987[_0x4b98fd(0x230)]);return;}if(_0x1e6987['subcommand']==='logout'){await Mt();return;}if(_0x1e6987[_0x4b98fd(0x16f)]===_0x4b98fd(0x22c)){await Bt(_0x1e6987);return;}if(_0x1e6987[_0x4b98fd(0x16f)]===_0x4b98fd(0x194)){await Wt(_0x1e6987);return;}if(_0x1e6987[_0x4b98fd(0x16f)]===_0x4b98fd(0x310)){await Zt(_0x1e6987);return;}if(_0x1e6987[_0x4b98fd(0x16f)]===_0x4b98fd(0x1dd)){await Qt(_0x1e6987);return;}if(_0x1e6987[_0x4b98fd(0x16f)]===_0x4b98fd(0x23a)){await nn(_0x1e6987);return;}if(_0x1e6987[_0x4b98fd(0x16f)]===_0x4b98fd(0x215)||_0x1e6987[_0x4b98fd(0x16f)]===_0x4b98fd(0x2d9)||_0x1e6987['subcommand']===_0x4b98fd(0x2a9)){await an(_0x1e6987,_0x1e6987[_0x4b98fd(0x16f)]);return;}if(_0x1e6987[_0x4b98fd(0x16f)]===_0x4b98fd(0x20f)){await cn(_0x1e6987);return;}if(_0x1e6987[_0x4b98fd(0x16f)]===_0x4b98fd(0x26d)){await mn(_0x1e6987);return;}if(_0x1e6987[_0x4b98fd(0x16f)]===_0x4b98fd(0x2cb)){await gn(_0x1e6987);return;}if(_0x1e6987[_0x4b98fd(0x16f)]===_0x4b98fd(0x203)){await wn(_0x1e6987);return;}if(_0x1e6987[_0x4b98fd(0x16f)]===_0x4b98fd(0x1a6)){await _0x311cac(_0x1e6987[_0x4b98fd(0x230)],{'runnerUrl':_0x1e6987['runnerUrl'],'backendUrl':_0x1e6987['backendUrl'],'interopPath':_0x1e6987[_0x4b98fd(0x332)],'workerId':_0x1e6987[_0x4b98fd(0x27f)]});return;}if(_0x1e6987[_0x4b98fd(0x331)]){await Gt();return;}await En(_0x1e6987);}var Un=process.env.NODE_ENV==='test'||!!process.env.JEST_WORKER_ID;Un||Dn()[_0x53171e(0x21d)](_0x37d864=>{const _0x323e98=_0x53171e;console[_0x323e98(0x225)](_0x37d864['stack']||_0x37d864[_0x323e98(0x2f8)]||_0x37d864),process[_0x323e98(0x296)](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 _0x16c322=_0x12df;(function(_0x2e8130,_0x56c941){const _0x59aef4=_0x12df,_0x42cb76=_0x2e8130();while(!![]){try{const _0x42d514=parseInt(_0x59aef4(0x22e))/0x1+parseInt(_0x59aef4(0x153))/0x2+-parseInt(_0x59aef4(0x28c))/0x3+-parseInt(_0x59aef4(0x133))/0x4+-parseInt(_0x59aef4(0x134))/0x5*(-parseInt(_0x59aef4(0x1d6))/0x6)+parseInt(_0x59aef4(0x265))/0x7+-parseInt(_0x59aef4(0x1f2))/0x8;if(_0x42d514===_0x56c941)break;else _0x42cb76['push'](_0x42cb76['shift']());}catch(_0x1c0695){_0x42cb76['push'](_0x42cb76['shift']());}}}(_0x5253,0xf07d0));const __dirname=import.meta.dirname;import _0x379992 from'fs';import _0x3639b3 from'path';import{clearLine as _0x158fa4,createInterface as _0x16f085,cursorTo as _0x5d9a57}from'node:readline';import{isOnStepGrid as _0x360f}from'@uipath/delegate-sdk';var _=_0x16c322(0x26d);function S(_0x111773){const _0x1dc0d3=_0x16c322;return _0x111773[_0x1dc0d3(0x1cd)](/\u001b\[[0-?]*[ -/]*[@-~]|\u001b\][^\u0007\u001b]*(\u0007|\u001b\\)?|\u001b./g,'')[_0x1dc0d3(0x1cd)](/[\u0000-\u0008\u000b-\u001f\u007f-\u009f]/g,'');}function V(_0x12265f){const _0x44e02d=_0x16c322;return S(_0x12265f[_0x44e02d(0x119)]??(_0x12265f[_0x44e02d(0x13f)]===_?_0x44e02d(0x18c):_0x12265f['id']));}function Te(_0x2a5e6a,_0x56d36f,_0x355dc2){const _0x3c3cc9=_0x16c322;let _0x96a8b1=[''+(_0x355dc2>0x1?'['+_0x56d36f+'/'+_0x355dc2+']\x20':'')+S(_0x2a5e6a[_0x3c3cc9(0xf2)])+(_0x2a5e6a[_0x3c3cc9(0x286)]?_0x3c3cc9(0x23e):''),S(_0x2a5e6a['question'])];return _0x2a5e6a[_0x3c3cc9(0x1e0)]===_0x3c3cc9(0x16e)&&_0x2a5e6a['options'][_0x3c3cc9(0x104)]((_0x52acbc,_0x67974f)=>{const _0x174cdf=_0x3c3cc9;let _0x1286f3=_0x52acbc[_0x174cdf(0x13f)]===_?_0x174cdf(0x1f0):'',_0x44f4a2=_0x52acbc[_0x174cdf(0x168)]?_0x174cdf(0x197)+S(_0x52acbc[_0x174cdf(0x168)]):'';_0x96a8b1[_0x174cdf(0xe6)]('\x20\x20'+(_0x67974f+0x1)+'.\x20'+V(_0x52acbc)+_0x1286f3+_0x44f4a2);}),_0x96a8b1[_0x3c3cc9(0xc5)]('\x0a');}function X(_0x5e902f,_0x4cfe03){const _0x331734=_0x16c322;let _0x766bad=_0x5e902f[_0x331734(0x149)](/[\s,]+/)[_0x331734(0x25b)](Boolean);if(_0x766bad[_0x331734(0x16d)]===0x0)return null;let _0x27828f=_0x766bad['map'](_0x101d52=>/^\d+$/[_0x331734(0x1d3)](_0x101d52)?Number(_0x101d52):NaN);return _0x27828f[_0x331734(0x1e5)](_0x4e9376=>!Number['isInteger'](_0x4e9376)||_0x4e9376<0x1||_0x4e9376>_0x4cfe03)?null:[...new Set(_0x27828f)][_0x331734(0x257)](_0x53c177=>_0x53c177-0x1);}function xe(_0x596e1b){const _0x38fc64=_0x16c322;return typeof _0x596e1b==_0x38fc64(0x29e)&&_0x596e1b!==null&&_0x38fc64(0x272)in _0x596e1b;}async function R(_0xe40933,_0x381e29,_0x2b123d,_0x2e763d){const _0x50784b=_0x16c322;for(;;){let _0x38034d=(await _0xe40933(_0x381e29))[_0x50784b(0x28e)]();if(_0x38034d==='')return;let _0x3d30f8=_0x2e763d(_0x38034d);if(!xe(_0x3d30f8))return _0x3d30f8;_0x2b123d(_0x3d30f8['refused']+'\x0a');}}async function De(_0x4f65d3,_0x3b0c18,_0x33d71a){const _0x40b12a=_0x16c322;if(_0x4f65d3[_0x40b12a(0x191)][_0x40b12a(0x16d)]===0x0||_0x4f65d3[_0x40b12a(0x191)][_0x40b12a(0x184)](_0x2cf0aa=>_0x2cf0aa[_0x40b12a(0x13f)]===_)){let _0x451ff9=(await _0x3b0c18(_0x40b12a(0x23c)))[_0x40b12a(0x28e)]();return _0x451ff9===''?void 0x0:{'text':_0x451ff9};}let _0x4624d0=_0x4f65d3['options'][_0x40b12a(0x29c)](_0xc0ed8d=>_0xc0ed8d[_0x40b12a(0x13f)]===_),_0x2f8886=_0x4f65d3[_0x40b12a(0x161)]?_0x40b12a(0x230):_0x40b12a(0x1b4)+(_0x4624d0>=0x0?_0x40b12a(0x285):'')+'\x20(Enter\x20to\x20skip):\x20',_0x1d6c0b=await R(_0x3b0c18,_0x2f8886,_0x33d71a,_0x1b3bfa=>{const _0x5d702d=_0x40b12a;let _0xb19043=X(_0x1b3bfa,_0x4f65d3[_0x5d702d(0x191)]['length']);return _0xb19043&&(_0x4f65d3['multiSelect']||_0xb19043[_0x5d702d(0x16d)]===0x1)?_0xb19043:!_0x4f65d3[_0x5d702d(0x161)]&&_0x4624d0>=0x0?{'typed':_0x1b3bfa}:{'refused':_0x4f65d3['multiSelect']?_0x5d702d(0x268)+_0x4f65d3[_0x5d702d(0x191)]['length']+'.':_0x5d702d(0x26b)+_0x4f65d3['options']['length']+'.'};});if(_0x1d6c0b===void 0x0)return;if(!Array[_0x40b12a(0x1a7)](_0x1d6c0b))return{'text':_0x1d6c0b[_0x40b12a(0x112)]};let _0x33b9db=_0x1d6c0b[_0x40b12a(0x257)](_0x2c9268=>_0x4f65d3[_0x40b12a(0x191)][_0x2c9268]['id']),_0x261b0f=_0x33b9db[_0x40b12a(0x291)](_)?await R(_0x3b0c18,V(_0x4f65d3[_0x40b12a(0x191)][_0x4624d0])+':\x20',_0x33d71a,_0x258ca0=>_0x258ca0):void 0x0;if(!(_0x33b9db[_0x40b12a(0x291)](_)&&_0x261b0f===void 0x0))return _0x4f65d3['multiSelect']?{'optionIds':_0x33b9db,..._0x261b0f!==void 0x0?{'text':_0x261b0f}:{}}:_0x261b0f!==void 0x0?{'text':_0x261b0f}:{'optionId':_0x33b9db[0x0]};}async function Ue(_0x1fd58a,_0x421a90,_0x13b607){const _0x3d57c6=_0x16c322;let _0x3fdfe8={};for(let _0x32bf72 of _0x1fd58a[_0x3d57c6(0x1c3)]){let _0x47245c=_0x32bf72[_0x3d57c6(0xd3)]??_0x32bf72[_0x3d57c6(0x188)],_0x538afb=_0x32bf72[_0x3d57c6(0x110)]??0x1,_0x5484a8=_0x32bf72[_0x3d57c6(0xfe)]?'\x20'+S(_0x32bf72[_0x3d57c6(0xfe)]):'',_0x359618='from\x20'+_0x32bf72[_0x3d57c6(0x188)]+_0x3d57c6(0xf7)+_0x32bf72[_0x3d57c6(0x1c0)]+(_0x538afb!==0x1?_0x3d57c6(0xdd)+_0x538afb:''),_0x2b4aa9=await R(_0x421a90,S(_0x32bf72['label'])+'\x20['+_0x32bf72[_0x3d57c6(0x188)]+'-'+_0x32bf72['max']+_0x5484a8+_0x3d57c6(0x100)+_0x47245c+_0x3d57c6(0xf1),_0x13b607,_0x3bfbfe=>{const _0x39ae9d=_0x3d57c6;let _0x3c0415=Number(_0x3bfbfe);return Number['isFinite'](_0x3c0415)&&_0x3c0415>=_0x32bf72['min']&&_0x3c0415<=_0x32bf72[_0x39ae9d(0x1c0)]&&_0x360f(_0x3c0415,_0x32bf72[_0x39ae9d(0x188)],_0x538afb)?_0x3c0415:{'refused':'Enter\x20a\x20number\x20'+_0x359618+'.'};});_0x3fdfe8[_0x32bf72['id']]=_0x2b4aa9??_0x47245c;}return{'values':_0x3fdfe8};}async function Ne(_0x1f08a2,_0x38812a,_0x5da1a9){const _0x387029=_0x16c322;_0x5da1a9(_0x1f08a2[_0x387029(0xd0)][_0x387029(0x257)]((_0x3ee87a,_0x582caa)=>'\x20\x20'+(_0x582caa+0x1)+'.\x20'+S(_0x3ee87a[_0x387029(0x119)]))[_0x387029(0xc5)]('\x0a')+'\x0a');let _0x53c64b={};for(let _0x2de611 of _0x1f08a2[_0x387029(0x196)]){let _0x3b5bac=await R(_0x38812a,S(_0x2de611['label'])+_0x387029(0x10f),_0x5da1a9,_0x39bb1e=>{const _0x5442b1=_0x387029;let _0x27a056=X(_0x39bb1e,_0x1f08a2[_0x5442b1(0xd0)][_0x5442b1(0x16d)]);return _0x27a056&&_0x27a056[_0x5442b1(0x16d)]===0x1?_0x27a056[0x0]:{'refused':_0x5442b1(0x26b)+_0x1f08a2[_0x5442b1(0xd0)][_0x5442b1(0x16d)]+'.'};});if(_0x3b5bac===void 0x0)continue;let _0x2e4180=_0x1f08a2[_0x387029(0xd0)][_0x3b5bac],_0x554dd6={};for(let _0x27e746 of _0x2e4180[_0x387029(0x150)]??[]){let _0xded024='\x20\x20'+S(_0x27e746['label'])+(_0x27e746[_0x387029(0x286)]?_0x387029(0x23e):'')+':\x20',_0x425eed=await R(_0x38812a,_0xded024,_0x5da1a9,_0x4bb479=>_0x4bb479);for(;_0x425eed===void 0x0&&!_0x27e746[_0x387029(0x286)];)_0x5da1a9(S(_0x27e746[_0x387029(0x119)])+'\x20is\x20required.\x0a'),_0x425eed=await R(_0x38812a,_0xded024,_0x5da1a9,_0x5a6eba=>_0x5a6eba);_0x425eed!==void 0x0&&(_0x554dd6[_0x27e746['id']]=_0x425eed);}_0x53c64b[_0x2de611['id']]={'bucket':_0x2e4180['id'],...Object[_0x387029(0xdb)](_0x554dd6)[_0x387029(0x16d)]>0x0?{'subFields':_0x554dd6}:{}};}return Object[_0x387029(0xdb)](_0x53c64b)['length']>0x0?{'assignments':_0x53c64b}:void 0x0;}async function _e(_0x5ebcba,_0x426b40,_0xaef08d){const _0x5d5143=_0x16c322;if(_0x5ebcba[_0x5d5143(0x1e0)]===_0x5d5143(0x16e))return De(_0x5ebcba,_0x426b40,_0xaef08d);if(_0x5ebcba[_0x5d5143(0x1e0)]===_0x5d5143(0x245))return Ue(_0x5ebcba,_0x426b40,_0xaef08d);if(_0x5ebcba['type']==='bucket')return Ne(_0x5ebcba,_0x426b40,_0xaef08d);let _0x1dfb0c=(await _0x426b40(_0x5d5143(0x1db)))[_0x5d5143(0x28e)]();return _0x1dfb0c===''?void 0x0:{'text':_0x1dfb0c};}function Z(_0x3ea3d2,_0xb4cd74){return async _0x4d631d=>{const _0x230e5a=_0x12df;let _0x3e76c3=_0x3ea3d2();if(!_0x3e76c3)throw new Error(_0x230e5a(0x18d));let _0x16071d=async _0x2c997d=>{const _0x3834ef=_0x230e5a;if(_0x4d631d[_0x3834ef(0x1a4)][_0x3834ef(0x240)])throw new Error(_0x3834ef(0x248));let _0x359341=await _0x3e76c3[_0x3834ef(0x1df)](_0x2c997d,_0x4d631d['signal']);if(_0x359341===null)throw new Error(_0x3834ef(0x1e4));return _0x359341;};try{_0xb4cd74('\x0a'+(_0x4d631d[_0x230e5a(0x22f)]?S(_0x4d631d[_0x230e5a(0x22f)])+'\x0a':''));let _0x34e4e1={};for(let [_0x343a58,_0x325dc8]of _0x4d631d[_0x230e5a(0xe1)]['entries']()){_0xb4cd74('\x0a'+Te(_0x325dc8,_0x343a58+0x1,_0x4d631d[_0x230e5a(0xe1)]['length'])+'\x0a');let _0x1e58b6=await _e(_0x325dc8,_0x16071d,_0xb4cd74);_0x1e58b6!==void 0x0&&(_0x34e4e1[_0x325dc8['id']]=_0x1e58b6);}return{'answers':_0x34e4e1};}finally{_0x3e76c3['endQuestions']();}};}import{BUSINESS_ANALYSIS_PRELOADED_SKILLS as _0x11862a,DelegateAgent as _0xde6299,cancelTurn as _0x2fef86,InteropProcess as _0x2d904f,complete as _0x47dc70,DEFAULT_MODEL as _0x54c4ce,createBackendClient as _0x5a87f3,evaluate as _0x2e7ce6,isCompletionRequestError as _0xe1370,isEvaluationRequestError as _0x2e6aa6,isTranscriptionError as _0x3464e6,rerank as _0x18ef2c,transcribe as _0x24749e,verify as _0x23ceba,acceptDelegation as _0x1aa5f9,cancelDelegation as _0x1ee9a,claimDelegation as _0x6a18a7,completeDelegation as _0x59ee8a,createDelegation as _0x30aa74,deleteDelegation as _0x50717c,dismissDelegation as _0x586335,getSessionDelegations as _0x3d290c,isDelegationError as _0x1c26fe,listDelegations as _0x51cda5,listOrgUsers as _0x132c7f,previewDelegation as _0x2b517e,TurnResultCollector as _0x4eed20,agentEventToJsonLine as _0x29d7ae,describeBaseUrlRejection as _0x430df2,getActivitySummary as _0x322b94,getAuthFilePath as _0x1232b9,getByoWarnings as _0x2a1f07,getCartographerAllowance as _0x48a570,getDailyBreakdown as _0x109053,getLicensingSummary as _0x68603e,getMonthlySpending as _0x3c4df3,isOutputFormat as _0x2b7a9f,isCloudBaseUrl as _0x5a6ece,isSafeProjectFolderSegment as _0x4ce67b,listModels as _0x48861f,listSessions as _0x1b4a1f,getSession as _0x4cfc2b,renameSession as _0x50b91f,deleteSession as _0x3c3f58,deleteSessionTaskLog as _0xe3388e,forkSession as _0x5e4024,isBackendRequestError as _0x5b0d90,MAX_SESSION_PAGE_SIZE as _0xb203fb,listTenants as _0x525b25,loadAndRefreshAuth as _0x4a4dd1,loadAndRefreshSdkLogin as _0x311c8d,parsePlatformBaseUrl as _0x27d821,resolveBackendUrl as _0x592a68,runHealthCheck as _0x2cb22e,runHostCommand as _0x2472d8,runLoginFlow as _0x4e38ce,runTurnForResult as _0x36bfff,saveAuthData as _0x16facd,switchTenant as _0x2e83d0,toJsonLine as _0x3934b8,ENV_TO_CLOUD as _0x3c2354,OUTPUT_FORMATS as _0x19c0db}from'@uipath/delegate-sdk';var Nt=[_0x16c322(0x1b0),_0x16c322(0x18b),_0x16c322(0x1c7),_0x16c322(0x14d),_0x16c322(0x111),_0x16c322(0xc0),_0x16c322(0xfc),_0x16c322(0x13a),_0x16c322(0x2a1),_0x16c322(0x212),_0x16c322(0x18a),_0x16c322(0x299),'complete',_0x16c322(0x167),_0x16c322(0x282),_0x16c322(0x1b8)],se=['','models',_0x16c322(0xc0),'check',_0x16c322(0x13a),_0x16c322(0x2a1),_0x16c322(0x212),_0x16c322(0x18a),'verify',_0x16c322(0x14f),_0x16c322(0x167),'delegations',_0x16c322(0x1b8)],re=['low',_0x16c322(0x152),_0x16c322(0x179),_0x16c322(0x143),_0x16c322(0x1c0)],_t=_0x11862a;function w(_0x3689f7,_0x2e0225,_0x6ec2e0,_0x58715c){const _0x12e440=_0x16c322;let _0x1f6b90=_0x3689f7[_0x2e0225];return(!_0x1f6b90||_0x1f6b90[_0x12e440(0x16d)]>0x1&&_0x1f6b90['startsWith']('-'))&&(console[_0x12e440(0x12d)](_0x6ec2e0+'\x20requires\x20'+_0x58715c+'.'),process[_0x12e440(0x1f8)](0x2)),_0x1f6b90;}function J(_0x506652,_0x1f609e,_0x43e0ac,_0x379ea0){const _0x24be67=_0x16c322;let _0x15fbfe=w(_0x506652,_0x1f609e,_0x43e0ac,_0x24be67(0x209)),_0x3bc137=Number(_0x15fbfe);return(!/^\d+$/[_0x24be67(0x1d3)](_0x15fbfe)||_0x3bc137<0x1||!Number[_0x24be67(0x130)](_0x3bc137)||_0x379ea0!==void 0x0&&_0x3bc137>_0x379ea0)&&(console[_0x24be67(0x12d)](_0x43e0ac+_0x24be67(0x132)+(_0x379ea0===void 0x0?_0x24be67(0xd2):_0x24be67(0x1fe)+_0x379ea0)+_0x24be67(0x260)+_0x15fbfe+'.'),process[_0x24be67(0x1f8)](0x2)),_0x3bc137;}function Rt(_0x5ca05b){const _0x48bec7=_0x16c322;let _0x44be92={'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':_0x48bec7(0x16e),'preloadSkills':[],'attachments':[],'skipEnvCheck':!0x1,'includeSubAgents':!0x1,'operands':[],'help':!0x1,'version':!0x1};Nt[_0x48bec7(0x291)](_0x5ca05b[0x0])&&(_0x44be92[_0x48bec7(0x126)]=_0x5ca05b[0x0],_0x5ca05b=_0x5ca05b[_0x48bec7(0x1af)](0x1));let _0x684cc8=[];for(let _0x2d52e5=0x0;_0x2d52e5<_0x5ca05b[_0x48bec7(0x16d)];_0x2d52e5++){let _0x4893b4=_0x5ca05b[_0x2d52e5];switch(_0x4893b4){case'--print':case'-p':_0x44be92['print']=!0x0;break;case'--keep-alive':_0x44be92['keepAlive']=!0x0;break;case _0x48bec7(0x1f5):_0x44be92[_0x48bec7(0x102)]=!0x0;break;case _0x48bec7(0x261):_0x44be92[_0x48bec7(0x1e7)]=!0x0;break;case'--no-computer-use':_0x44be92['noComputerUse']=!0x0;break;case _0x48bec7(0x233):_0x44be92[_0x48bec7(0x1e3)]=!0x0,_0x44be92[_0x48bec7(0x284)]=!0x0,_0x44be92[_0x48bec7(0x293)][_0x48bec7(0xe6)](..._t);break;case _0x48bec7(0x187):_0x44be92[_0x48bec7(0x25a)]=!0x0;break;case _0x48bec7(0x1f9):_0x44be92[_0x48bec7(0x15d)]=!0x0;break;case _0x48bec7(0x225):_0x44be92[_0x48bec7(0x252)]=!0x0;break;case _0x48bec7(0xd7):_0x44be92[_0x48bec7(0x172)]=!0x0;break;case _0x48bec7(0x204):case'-q':_0x44be92['quiet']=!0x0;break;case _0x48bec7(0x163):_0x44be92[_0x48bec7(0x185)]=!0x0;break;case _0x48bec7(0x1bf):_0x44be92[_0x48bec7(0x12b)]=_0x5ca05b[++_0x2d52e5];break;case _0x48bec7(0x129):_0x44be92[_0x48bec7(0x19a)]=_0x5ca05b[++_0x2d52e5];break;case _0x48bec7(0x258):_0x44be92['runnerUrl']=_0x5ca05b[++_0x2d52e5];break;case'--interop':_0x44be92['interopPath']=_0x5ca05b[++_0x2d52e5];break;case'--worker-id':_0x44be92[_0x48bec7(0x1d5)]=_0x5ca05b[++_0x2d52e5];break;case _0x48bec7(0xd5):_0x44be92[_0x48bec7(0x293)][_0x48bec7(0xe6)](w(_0x5ca05b,++_0x2d52e5,_0x4893b4,_0x48bec7(0x202)));break;case _0x48bec7(0xc1):{let _0x232661=w(_0x5ca05b,++_0x2d52e5,_0x4893b4,_0x48bec7(0x213));_0x4ce67b(_0x232661)||(console[_0x48bec7(0x12d)](_0x48bec7(0x16a)+_0x232661+'\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).'),process[_0x48bec7(0x1f8)](0x2)),_0x44be92['projectId']=_0x232661;break;}case _0x48bec7(0x295):{let _0x22b96f=w(_0x5ca05b,++_0x2d52e5,_0x4893b4,_0x48bec7(0xef)+_0x19c0db['join'](_0x48bec7(0x162))+')');_0x2b7a9f(_0x22b96f)||(console[_0x48bec7(0x12d)](_0x48bec7(0x28d)+_0x22b96f+_0x48bec7(0x25e)+_0x19c0db['join'](_0x48bec7(0x162))+'.'),process[_0x48bec7(0x1f8)](0x2)),_0x44be92[_0x48bec7(0x15e)]=_0x22b96f;break;}case _0x48bec7(0x14a):_0x44be92[_0x48bec7(0x247)]=w(_0x5ca05b,++_0x2d52e5,_0x4893b4,_0x48bec7(0x259));break;case _0x48bec7(0x1ec):_0x44be92[_0x48bec7(0x228)]=J(_0x5ca05b,++_0x2d52e5,_0x4893b4);break;case _0x48bec7(0x1a6):_0x44be92[_0x48bec7(0x25c)]=J(_0x5ca05b,++_0x2d52e5,_0x4893b4,_0xb203fb);break;case _0x48bec7(0x11c):_0x44be92[_0x48bec7(0x280)]=!0x0;break;case'--json-schema':_0x44be92['jsonSchemaPath']=w(_0x5ca05b,++_0x2d52e5,_0x4893b4,_0x48bec7(0xe4));break;case'--attach':{let _0x182ce0=_0x3639b3[_0x48bec7(0x178)](process[_0x48bec7(0x1de)](),w(_0x5ca05b,++_0x2d52e5,_0x4893b4,'a\x20file\x20path'));_0x379992[_0x48bec7(0x208)](_0x182ce0)||(console[_0x48bec7(0x12d)](_0x48bec7(0x194)+_0x182ce0),process[_0x48bec7(0x1f8)](0x2)),_0x44be92[_0x48bec7(0x1ce)][_0x48bec7(0xe6)](_0x182ce0);break;}case'--turn':_0x44be92['turnId']=w(_0x5ca05b,++_0x2d52e5,_0x4893b4,_0x48bec7(0x147));break;case _0x48bec7(0x21a):_0x44be92[_0x48bec7(0xc7)]=w(_0x5ca05b,++_0x2d52e5,_0x4893b4,_0x48bec7(0x19e));break;case _0x48bec7(0x19f):_0x44be92[_0x48bec7(0x20f)]=w(_0x5ca05b,++_0x2d52e5,_0x4893b4,_0x48bec7(0x1b3));break;case'--days':_0x44be92['days']=J(_0x5ca05b,++_0x2d52e5,_0x4893b4,0x16d);break;case _0x48bec7(0xd8):_0x44be92[_0x48bec7(0x16b)]=_0x3639b3['resolve'](process[_0x48bec7(0x1de)](),w(_0x5ca05b,++_0x2d52e5,_0x4893b4,_0x48bec7(0x13d)));break;case _0x48bec7(0x1b1):_0x44be92[_0x48bec7(0x298)]=_0x3639b3[_0x48bec7(0x178)](process[_0x48bec7(0x1de)](),w(_0x5ca05b,++_0x2d52e5,_0x4893b4,_0x48bec7(0x13d)));break;case'--effort':{let _0x54def2=w(_0x5ca05b,++_0x2d52e5,_0x4893b4,_0x48bec7(0x26a));re['includes'](_0x54def2)||(console[_0x48bec7(0x12d)](_0x48bec7(0x199)+_0x54def2+'.\x20Use\x20'+re[_0x48bec7(0xc5)](_0x48bec7(0x162))+'.'),process[_0x48bec7(0x1f8)](0x2)),_0x44be92[_0x48bec7(0x224)]=_0x54def2;break;}case _0x48bec7(0x1b5):{let _0x3cbf1a=_0x5ca05b[++_0x2d52e5];(!_0x3cbf1a||_0x3cbf1a['startsWith']('--'))&&(console[_0x48bec7(0x12d)](_0x48bec7(0x26e)),process['exit'](0x2)),_0x44be92['tenant']=_0x3cbf1a;break;}case _0x48bec7(0x250):{let _0x2fcf01=_0x5ca05b[++_0x2d52e5];[_0x48bec7(0x20c),'staging',_0x48bec7(0x226),_0x48bec7(0x1d0)][_0x48bec7(0x291)](_0x2fcf01)||(console[_0x48bec7(0x12d)]('Invalid\x20--env:\x20'+_0x2fcf01+_0x48bec7(0x26c)),process['exit'](0x2)),_0x44be92[_0x48bec7(0x1b2)]=_0x2fcf01;break;}case _0x48bec7(0x27e):case'--authority':{let _0x3b67bf=w(_0x5ca05b,++_0x2d52e5,_0x4893b4,_0x48bec7(0x103)),_0x37f778=_0x27d821(_0x3b67bf);if(_0x37f778['ok']===!0x1){console[_0x48bec7(0x12d)](_0x430df2(_0x3b67bf,_0x37f778['rejection'])),process[_0x48bec7(0x1f8)](0x2);break;}_0x44be92[_0x48bec7(0x1dd)]=_0x37f778['baseUrl'];break;}case _0x48bec7(0x10a):_0x44be92['skipEnvCheck']=!0x0;break;case'-h':case'--help':_0x44be92[_0x48bec7(0x1f4)]=!0x0;break;case'-v':case _0x48bec7(0x1e1):_0x44be92[_0x48bec7(0x140)]=!0x0;break;default:_0x4893b4[_0x48bec7(0x1c8)]('--')&&(console['error'](_0x48bec7(0x1ff)+_0x4893b4),process[_0x48bec7(0x1f8)](0x2)),_0x684cc8[_0x48bec7(0xe6)](_0x4893b4);}}return _0x44be92[_0x48bec7(0x18b)]!==void 0x0&&_0x44be92[_0x48bec7(0x126)]!=='login'&&(console['error'](_0x48bec7(0x24c)),process[_0x48bec7(0x1f8)](0x2)),_0x44be92[_0x48bec7(0x1dd)]!==void 0x0&&_0x44be92['env']!==void 0x0&&(console[_0x48bec7(0x12d)](_0x48bec7(0x1bb)),process['exit'](0x2)),_0x44be92['url']!==void 0x0&&_0x44be92[_0x48bec7(0x126)]!==_0x48bec7(0x1b0)&&(console[_0x48bec7(0x12d)](_0x48bec7(0x232)),process[_0x48bec7(0x1f8)](0x2)),_0x44be92['days']!==void 0x0&&_0x44be92['subcommand']!==_0x48bec7(0x2a1)&&(console['error'](_0x48bec7(0x1d1)),process['exit'](0x2)),_0x44be92['jsonSchemaPath']!==void 0x0&&(_0x44be92[_0x48bec7(0x126)]!==_0x48bec7(0x14f)&&_0x44be92['subcommand']!==''||_0x44be92[_0x48bec7(0x102)])&&(console[_0x48bec7(0x12d)](_0x48bec7(0xde)),process[_0x48bec7(0x1f8)](0x2)),_0x44be92['attachments']['length']>0x0&&(_0x44be92['subcommand']!==''||_0x44be92['cleanup'])&&(console[_0x48bec7(0x12d)](_0x48bec7(0x10d)),process[_0x48bec7(0x1f8)](0x2)),_0x44be92[_0x48bec7(0x172)]&&(_0x44be92[_0x48bec7(0x126)]!==''||_0x44be92[_0x48bec7(0x102)])&&(console[_0x48bec7(0x12d)](_0x48bec7(0x21b)),process['exit'](0x2)),_0x44be92[_0x48bec7(0x172)]&&(_0x44be92[_0x48bec7(0x1e7)]||_0x44be92[_0x48bec7(0x284)])&&(console['error']('--task-automation\x20needs\x20computer\x20use:\x20the\x20task\x20log\x20is\x20written\x20by\x20the\x20UI-automation\x20tools.\x20Drop\x20--headless,\x20--no-computer-use\x20and\x20--cartographer.'),process['exit'](0x2)),_0x44be92[_0x48bec7(0x21e)]&&_0x44be92[_0x48bec7(0x126)]!=='login'&&(console['error']('--skip-env-check\x20applies\x20to\x20`delegate-cli\x20login`\x20only.'),process['exit'](0x2)),_0x44be92[_0x48bec7(0x15e)]!==_0x48bec7(0x16e)&&!se[_0x48bec7(0x291)](_0x44be92[_0x48bec7(0x126)])&&(console['error'](_0x48bec7(0x17a)+_0x44be92[_0x48bec7(0x15e)]+_0x48bec7(0x10b)+se[_0x48bec7(0x25b)](Boolean)[_0x48bec7(0xc5)](',\x20')+'.'),process[_0x48bec7(0x1f8)](0x2)),(_0x44be92['page']!==void 0x0||_0x44be92['limit']!==void 0x0||_0x44be92[_0x48bec7(0x280)])&&_0x44be92[_0x48bec7(0x126)]!==_0x48bec7(0x13a)&&(console['error'](_0x48bec7(0x289)),process[_0x48bec7(0x1f8)](0x2)),(_0x44be92[_0x48bec7(0xc7)]!==void 0x0||_0x44be92[_0x48bec7(0x20f)]!==void 0x0)&&_0x44be92[_0x48bec7(0x126)]!=='delegations'&&(console[_0x48bec7(0x12d)](_0x48bec7(0x101)),process[_0x48bec7(0x1f8)](0x2)),_0x44be92[_0x48bec7(0x17b)]!==void 0x0&&_0x44be92[_0x48bec7(0x126)]!==_0x48bec7(0x13a)&&(console[_0x48bec7(0x12d)](_0x48bec7(0x1c4)),process[_0x48bec7(0x1f8)](0x2)),_0x44be92['preloadSkills']=[...new Set(_0x44be92[_0x48bec7(0x293)])],_0x44be92[_0x48bec7(0x271)]=_0x684cc8,_0x44be92['prompt']=_0x684cc8[_0x48bec7(0xc5)]('\x20'),_0x44be92;}var P=_0x4235fa=>{const _0xf27600=_0x16c322;process[_0xf27600(0x246)]['write'](_0x4235fa);};function Pt(){const _0x238174=_0x16c322;let _0x24c0fb=process[_0x238174(0x246)][_0x238174(0x1fc)],_0x5e9ae6=_0x24c0fb['bind'](process['stdout']),_0xc9266=P;return P=_0x24c239=>{_0x5e9ae6(_0x24c239);},process[_0x238174(0x246)][_0x238174(0x1fc)]=(..._0x476c3e)=>process[_0x238174(0xcf)][_0x238174(0x1fc)](..._0x476c3e),()=>{const _0x5cdef7=_0x238174;process[_0x5cdef7(0x246)]['write']=_0x24c0fb,P=_0xc9266;};}function u(_0x6cef79,_0x43e908,_0x53e23){const _0x1f1e38=_0x16c322;if(_0x6cef79[_0x1f1e38(0x15e)]===_0x1f1e38(0x16e)){_0x53e23(_0x43e908);return;}P(_0x3934b8(_0x43e908));}function Ct(){const _0x494bfb=_0x16c322;let _0x2f8740='\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'[_0x494bfb(0x28e)]();console[_0x494bfb(0x205)](_0x2f8740);}function Lt(){const _0x3f7e0e=_0x16c322;try{return JSON[_0x3f7e0e(0x18e)](_0x379992[_0x3f7e0e(0x22c)](_0x3639b3[_0x3f7e0e(0xc5)](__dirname,'..',_0x3f7e0e(0xbe)),_0x3f7e0e(0x287)))['version']||'unknown';}catch{return'unknown';}}var Ot=0x7d0;async function ie(_0x108299,_0x5b2a87){const _0x159f8c=_0x16c322;let _0x5ab7fc=_0x5b2a87?[_0x5b2a87]:[];for await(let _0x2030e9 of _0x108299)_0x5ab7fc['push'](Buffer[_0x159f8c(0x15b)](_0x2030e9));return Buffer[_0x159f8c(0x189)](_0x5ab7fc)[_0x159f8c(0x276)]('utf-8')[_0x159f8c(0x28e)]();}function Ft(_0x1845c1,_0x4c8716){return new Promise(_0x2ae14a=>{const _0x5dbac2=_0x12df;let _0x1db670=_0x37529e=>{const _0x8e4816=_0x12df;clearTimeout(_0x20c53e),_0x1845c1[_0x8e4816(0x109)](_0x8e4816(0x182),_0x1e213d),_0x1845c1[_0x8e4816(0x109)]('end',_0x4ed8ad),_0x1845c1[_0x8e4816(0x109)](_0x8e4816(0x12d),_0x4ed8ad),_0x1845c1[_0x8e4816(0x11a)](),_0x2ae14a(_0x37529e);},_0x1e213d=_0x40be6c=>_0x1db670(Buffer['from'](_0x40be6c)),_0x4ed8ad=()=>_0x1db670(null),_0x20c53e=setTimeout(()=>_0x1db670(null),_0x4c8716);_0x1845c1['on'](_0x5dbac2(0x182),_0x1e213d),_0x1845c1['on']('end',_0x4ed8ad),_0x1845c1['on']('error',_0x4ed8ad),_0x1845c1[_0x5dbac2(0x1d2)]();});}async function j(_0x146f8b,_0x33e41f,_0x5d0d73=Ot){let _0x1f2633=_0x146f8b==='-';if(!_0x1f2633&&_0x146f8b)return _0x146f8b;if(!_0x1f2633&&_0x33e41f['isTTY'])return'';if(_0x1f2633)return ie(_0x33e41f,null);let _0x23429d=await Ft(_0x33e41f,_0x5d0d73);return _0x23429d?ie(_0x33e41f,_0x23429d):'';}function K(){const _0x389b85=_0x16c322;return _0x3639b3[_0x389b85(0xc5)](process.env.HOME||process.env.USERPROFILE||'',_0x389b85(0x255),_0x389b85(0x15a));}function M(_0x1e26f6){const _0x596908=_0x16c322;try{let _0x4fc71e=JSON[_0x596908(0x18e)](_0x379992[_0x596908(0x22c)](_0x1e26f6,_0x596908(0x287)));return!_0x4fc71e[_0x596908(0x235)]||!_0x4fc71e[_0x596908(0x1c2)]||!_0x4fc71e['organizationId']?null:_0x4fc71e;}catch{return null;}}function jt(){let _0xf71535=[{'file':_0x1232b9(),'isDesktopFallback':!0x1},{'file':K(),'isDesktopFallback':!0x0}];for(let _0xe05a9e of _0xf71535){let _0x415ffc=M(_0xe05a9e['file']);if(_0x415ffc)return{..._0xe05a9e,'auth':_0x415ffc};}return null;}async function Mt(){const _0x482eb0=_0x16c322;let _0x10186a=_0x1232b9();if(!_0x379992['existsSync'](_0x10186a)){let _0x640c17=K();console[_0x482eb0(0x205)](M(_0x640c17)?'No\x20CLI\x20login\x20found.\x20Note:\x20the\x20CLI\x20is\x20currently\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20'+_0x640c17+_0x482eb0(0x297):_0x482eb0(0x21f));return;}_0x379992[_0x482eb0(0xff)](_0x10186a),console[_0x482eb0(0x205)](_0x482eb0(0xd9)+_0x10186a);}async function Bt(_0x4f7af0){const _0x5ac7cf=_0x16c322;let _0x1558dc=Q(),_0x2daaf2,_0x3f1ea3;if(_0x1558dc)_0x2daaf2=_0x1558dc,_0x3f1ea3='environment\x20variables\x20(AUTH_TOKEN/TENANT_ID/ORG_ID)';else{let _0x5e51e9=jt();if(!_0x5e51e9)throw new Error(Se);_0x2daaf2=_0x5e51e9['auth'],_0x3f1ea3=_0x5e51e9[_0x5ac7cf(0x24d)]?_0x5e51e9[_0x5ac7cf(0xd6)]+'\x20(Delegate\x20desktop\x20app\x20fallback)':_0x5e51e9[_0x5ac7cf(0xd6)];}let _0x18849a={'source':_0x3f1ea3,'baseUrl':_0x2daaf2[_0x5ac7cf(0x206)]??null,'deployment':Ht(_0x2daaf2['baseUrl']),'organization':{'id':_0x2daaf2[_0x5ac7cf(0xc6)],'slug':_0x2daaf2[_0x5ac7cf(0x227)]??null},'tenant':{'id':_0x2daaf2['tenantId'],'name':_0x2daaf2[_0x5ac7cf(0x29f)]??null},'tokenExpiresAt':_0x2daaf2[_0x5ac7cf(0x23d)]?new Date(_0x2daaf2['expiresAt']*0x3e8)[_0x5ac7cf(0x1ca)]():null};u(_0x4f7af0,_0x18849a,()=>{const _0x3477d4=_0x5ac7cf;let _0x1ef74=[_0x3477d4(0x13c)+_0x3f1ea3,_0x3477d4(0xbf)+(_0x2daaf2['baseUrl']??_0x3477d4(0x164)),_0x3477d4(0x1bc)+_0x18849a[_0x3477d4(0xf0)],_0x3477d4(0x1b6)+(_0x2daaf2[_0x3477d4(0x227)]??_0x3477d4(0x234))+'\x20('+_0x2daaf2[_0x3477d4(0xc6)]+')',_0x3477d4(0xfb)+(_0x2daaf2[_0x3477d4(0x29f)]??_0x3477d4(0x234))+'\x20('+_0x2daaf2[_0x3477d4(0x1c2)]+')'];if(_0x2daaf2[_0x3477d4(0x23d)]){let _0xe18664=_0x2daaf2[_0x3477d4(0x23d)]-Math[_0x3477d4(0x11d)](Date[_0x3477d4(0x231)]()/0x3e8);_0x1ef74['push'](_0xe18664>0x0?'Token:\x20\x20\x20\x20\x20\x20\x20\x20expires\x20'+_0x18849a['tokenExpiresAt']+_0x3477d4(0x29b)+Math['round'](_0xe18664/0x3c)+_0x3477d4(0x22d):'Token:\x20\x20\x20\x20\x20\x20\x20\x20expired\x20'+_0x18849a[_0x3477d4(0x27d)]);}process[_0x3477d4(0x246)][_0x3477d4(0x1fc)](_0x1ef74[_0x3477d4(0xc5)]('\x0a')+'\x0a');});}var Se='No\x20auth\x20found.\x20Set\x20AUTH_TOKEN\x20(or\x20AUTH_TOKEN_FILE)/TENANT_ID/ORG_ID\x20env\x20vars,\x20or\x20run\x20`delegate-cli\x20login\x20--env\x20<alpha|staging|production>`\x20(or\x20`--url\x20<deployment-url>`\x20for\x20Automation\x20Suite)\x20first.';function Ht(_0x4ac60b){const _0xdeb531=_0x16c322;return _0x4ac60b?_0x5a6ece(_0x4ac60b)?_0xdeb531(0x1d7):_0xdeb531(0x114):_0xdeb531(0x164);}function _0x5253(){const _0x527c5e=['days','assignedUser','argv','\x20(confidence\x20','delegation','isError','delete','a\x20format\x20(','deployment','):\x20','header','cancelled','\x20\x22<prompt>\x22\x0a','pendingResults','):\x0a\x0a','\x20to\x20','bind','email','Usage:\x20delegate-cli\x20sessions\x20','Tenant:\x20\x20\x20\x20\x20\x20\x20','check','Licensing:\x20\x20\x20\x20no\x20licensing\x20quota\x20applies','unit','rmSync',']\x20(Enter\x20for\x20','--to\x20and\x20--summary\x20apply\x20to\x20`delegate-cli\x20delegations\x20create`\x20only.','cleanup','a\x20deployment\x20URL,\x20e.g.\x20https://automationsuite.contoso.com','forEach','No\x20sessions\x20on\x20page\x20','assignedUserEmail','\x0aUse\x20with:\x20delegate-cli\x20--model\x20<id>\x20\x22<prompt>\x22\x0a','\x0aStopping…\x20(Ctrl+C\x20again\x20to\x20force\x20exit)\x0a','off','--skip-env-check','\x20applies\x20to\x20prompts\x20and\x20to\x20these\x20commands\x20only:\x20','\x20active\x20days','--attach\x20applies\x20to\x20prompts\x20only.','\x20prompt,\x20',':\x20bucket\x20number\x20(Enter\x20to\x20leave\x20out):\x20','step','logout','typed','toUpperCase','self-hosted\x20(Automation\x20Suite\x20/\x20Dedicated)','[env=','\x20(resume\x20with\x20--session\x20','userId','\x20\x20from\x20','label','pause','session_consumed_pu','--include-subagents','floor','entries','isTTY','\x20\x20TASK\x0a','Bearer\x20','total_cost_usd','No\x20CLI\x20login\x20to\x20switch:\x20the\x20CLI\x20is\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20','detail','dismiss','subcommand','\x20this\x20month','erase','--model','Work\x20on\x20it\x20with:\x20delegate-cli\x20--session\x20','backendUrl','ASSIGNEE','error','line','\x20\x22<answer>\x22\x0a','isSafeInteger','dismissed','\x20must\x20be\x20a\x20whole\x20number\x20','5426560fAAsjP','8904355MKNaXO',']\x20Backend\x20URL:\x20','STATUS','Owner\x20\x20\x20\x20\x20\x20\x20\x20\x20','Session\x20\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20BYO\x20warning:\x20','sessions','complete\x20needs\x20a\x20prompt:\x20delegate-cli\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22,\x20or\x20-\x20to\x20read\x20stdin.','Source:\x20\x20\x20\x20\x20\x20\x20','a\x20directory\x20path','Claimed\x20from\x20delegation\x20','kind','version','No\x20one\x20matches\x20\x22','Missing\x20prompt.\x20Pass\x20it\x20as\x20an\x20argument,\x20pipe\x20it\x20via\x20stdin,\x20or\x20run\x20`delegate-cli\x20--help`.','xhigh','origin','\x20tokens\x0a','\x0aAvailable\x20models\x20(','a\x20turn\x20id','destroy','split','--session','updatedAt','spawn','host','delegate-cli','complete','subFields','close','medium','3112830oIttfw','score\x20','probability','string','\x20sessions\x20on\x20','.\x20Share:\x20','title','auth.json','from','\x20not\x20found.','noSecurity','outputFormat','message','No\x20delegations.\x0a','multiSelect','\x20|\x20','--verbose','unknown','Session:\x20\x20\x20\x20\x20\x20','tool','transcribe','description','\x20completion','Invalid\x20--project:\x20\x22','workingDirectory','then','length','text','Usage:\x20delegate-cli\x20sessions\x20[list]\x20[--page\x20N]\x20[--limit\x20N]\x20[--include-subagents]','exitCode','Continue\x20it\x20with:\x20delegate-cli\x20--session\x20','taskAutomation','rubric_version','%\x20of\x20','Spending:\x20\x20\x20\x20\x20$','code','abort','resolve','high','--output-format\x20','turnId','the\x20JSON\x20schema','deepLink','\x27\x20is\x20empty.','Answered','toolName','Cancel\x20requested\x20for\x20turn\x20','data','\x27\x20cannot\x20be\x20read:\x20','every','verbose','\x0a🤔\x20','--no-connections','min','concat','rerank','tenant','Something\x20else','There\x20is\x20no\x20terminal\x20input\x20to\x20answer\x20from.','parse','transcribe:\x20cannot\x20read\x20','estimated_cost_usd','options','runnerUrl','Usage:\x20delegate-cli\x20sessions\x20cancel\x20<session-id>\x20--turn\x20<turn-id>','--attach:\x20no\x20such\x20file\x20or\x20folder:\x20','result','items','\x20-\x20','\x20\x20\x20\x20Not\x20available\x20on\x20this\x20plan','Invalid\x20--effort:\x20','model','activity','No\x20usage\x20in\x20the\x20last\x20','score','an\x20email\x20address\x20or\x20name','--summary','jsonSchemaPath','\x20<file.json>,\x20or\x20-\x20to\x20read\x20stdin.','confidence','locked','signal','Licensing:\x20\x20\x20\x20','--limit','isArray','SIGINT','lastType','mode','\x20must\x20be\x20a\x20JSON\x20object.','\x20delegation\x20','parentSessionId','Unknown\x20usage\x20view:\x20','slice','login','--skills-path','env','a\x20briefing\x20text','Number','--tenant','Organization:\x20','stdin','org-users','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','daily','Pass\x20either\x20--env\x20(a\x20named\x20cloud)\x20or\x20--url\x20(any\x20other\x20deployment),\x20not\x20both.','Deployment:\x20\x20\x20','\x20\x20\x20\x20','Interop\x20stopped\x20(if\x20it\x20was\x20running).','--backend','max','\x20(current)','tenantId','fields','--turn\x20applies\x20to\x20`delegate-cli\x20sessions\x20cancel`\x20only.','prompt','interopPath','models','startsWith','monthly_limit_usd','toISOString',';\x20the\x20saved\x20login\x20still\x20uses\x20','\x20is\x20not\x20valid\x20JSON\x20(','replace','attachments','cancel','localhost','--days\x20applies\x20to\x20`delegate-cli\x20usage\x20activity|daily`\x20only.','resume','test','setPrompt','workerId','6jQWBGt','UiPath\x20Cloud','add','period_end','list','Your\x20answer,\x20as\x20text\x20(the\x20CLI\x20attaches\x20no\x20files;\x20Enter\x20to\x20skip):\x20','complete\x20needs\x20--json-schema\x20<file>:\x20delegate-cli\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22.','url','cwd','readLine','type','--version','🔧\x20','cartographer','Input\x20closed\x20before\x20the\x20question\x20was\x20answered.','some','\x20PU','headless','\x20\x20TITLE\x0a','AUTH_TOKEN_FILE\x20\x27','Tokens:\x20','Deleted\x20session\x20','--page','Date\x20\x20\x20\x20\x20\x20\x20\x20Token\x20units\x20\x20Prompt\x20tokens\x20\x20Completion\x20tokens','delegations\x20list\x20<backend-project-id>','\x20<title>','\x20(type\x20your\x20own)','projectId','3713016Iwzqox','answers','help','--cleanup','content','completion_tokens','exit','--no-security','No\x20models\x20available\x20for\x20this\x20product/tenant.\x0a','alreadyAccepted','write','Delegation\x20\x20\x20\x20','from\x201\x20to\x20','Unknown\x20flag:\x20','a\x20colleague','\x20not\x20found,\x20has\x20no\x20messages','a\x20skill\x20name','Tenants\x20of\x20','--quiet','log','baseUrl','once','existsSync','a\x20number','No\x20structured\x20output:\x20the\x20turn\x20failed\x20(','name','alpha','task','show','contextSummary','You>\x20','\x20token\x20units)','evaluate','a\x20project\x20id','No\x20CLI\x20login\x20found.\x20Run\x20`delegate-cli\x20login\x20--env\x20<alpha|staging|production>`\x20first.','\x20token\x20units','onEvent','tool_call','\x20of\x20a\x20$','Organization\x20\x20','--to','--task-automation\x20applies\x20to\x20prompts\x20only.','getSessionId','\x20(cancel\x20with:\x20delegate-cli\x20sessions\x20cancel\x20','skipEnvCheck','No\x20CLI\x20login\x20found\x20—\x20nothing\x20to\x20remove.','catch','Model\x20','--session\x20applies\x20to\x20the\x20`delegate-cli\x20usage`\x20summary\x20only.','UPDATED','effort','--no-memory','production','orgLogicalName','page','padEnd','Usage:\x20delegate-cli\x20','\x20in\x20progress\x20on\x20session\x20','readFileSync','\x20min)','94479gGYtEf','intro','Numbers,\x20separated\x20by\x20commas\x20(Enter\x20to\x20skip):\x20','now','--url\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Other\x20commands\x20follow\x20the\x20saved\x20login,\x20or\x20--backend\x20<url>.','--cartographer','unknown\x20slug','accessToken','finish','structuredError','\x20days.\x0a','delegations\x20pending\x20<session-id>','\x20<id>','daily_usage','Your\x20answer\x20(Enter\x20to\x20skip):\x20','expiresAt','\x20(optional)','choice','aborted','padStart','stack','lockReason','thinking','numeric','stdout','sessionId','The\x20turn\x20was\x20cancelled.','stop','all','toFixed','--tenant\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Switch\x20tenants\x20with:\x20delegate-cli\x20tenant\x20<name>','isDesktopFallback','\x20--turn\x20','\x20\x20(input\x20#','--env','shift','noMemory','delegationId','print','.aria','Delegated\x20','map','--runner-url','a\x20session\x20id','noConnections','filter','limit','deleted','.\x20Use\x20','quiet',',\x20got\x20','--headless','response','\x20(no\x20cap\x20enforced)','done','9230403yyzeHr','turn_start','status','Enter\x20numbers\x20from\x201\x20to\x20','create','an\x20effort\x20tier','Enter\x20one\x20number\x20from\x201\x20to\x20','.\x20Use\x20alpha\x20|\x20staging\x20|\x20production\x20|\x20localhost.','userinput','--tenant\x20requires\x20a\x20tenant\x20name.','\x0aAccept\x20one\x20with:\x20delegate-cli\x20delegations\x20accept\x20<id>\x0a','Accepted','operands','refused','hide','>.\x0a','\x20PU\x20beyond\x20quota','toString','accept','index','Turn:\x20','UIPATH_BASE_URL\x20is\x20unusable.\x20','extra_pool_consumed_pu','input','tokenExpiresAt','--url','\x0a⚠️\x20\x20Auth\x20expired.\x20Opening\x20browser\x20to\x20re-login…\x0a','includeSubAgents','delegations\x20claim\x20<delegation-id|delegate://delegation/…>','delegations','Session:\x20','noComputerUse','\x20or\x20your\x20own\x20answer','optional','utf-8','claim','--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`delegate-cli\x20sessions`\x20only.','structured','.\x20Use:\x20','5833761YdIOMR','Invalid\x20--output-format:\x20','trim','Title\x20\x20\x20\x20\x20\x20\x20\x20\x20','results','includes','\x20cap','preloadSkills','initialize','--output-format','sendMessage','\x20—\x20sign\x20out\x20in\x20the\x20Delegate\x20app\x20to\x20clear\x20that.','bundledSkillsPath','verify','Use:\x20delegate-cli\x20delegations\x20','\x20(in\x20','findIndex','Tenant:\x20','object','tenantName','Usage:\x20delegate-cli\x20org-users\x20<name\x20or\x20email\x20prefix>','usage','delegations\x20cancel\x20<delegation-id>','model_id','package.json','Base\x20URL:\x20\x20\x20\x20\x20','whoami','--project','getTurnUsageHistory','prompt_tokens','Usage:\x20delegate-cli\x20sessions\x20fork\x20<id>\x20[<message-id>]','join','organizationId','delegateTo','--to,\x20--summary\x20and\x20--session\x20apply\x20to\x20`delegate-cli\x20delegations\x20create`\x20only.','model_version','period_days','pct_used','[saved\x20login]\x20Backend\x20URL:\x20','sourceTitle','transcribe\x20needs\x20audio:\x20delegate-cli\x20transcribe\x20<file>,\x20or\x20-\x20to\x20read\x20stdin.','stderr','buckets','\x20\x20(sub-agent\x20of\x20','1\x20or\x20more','default','No\x20answers\x20awaiting\x20acceptance.\x0a','--preload-skill','file','--task-automation','--working-dir','Removed\x20','rename','keys','session_start','\x20in\x20steps\x20of\x20','--json-schema\x20applies\x20to\x20prompts\x20and\x20to\x20`delegate-cli\x20complete`\x20only.','Rubric\x20','keepAlive','questions','\x20\x22<prompt>\x22\x0aAnswer\x20with:\x20delegate-cli\x20delegations\x20complete\x20','.\x20Use\x20`delegate-cli\x20usage`,\x20`usage\x20activity`\x20or\x20`usage\x20daily`.','a\x20JSON\x20schema\x20file','✓\x20Done\x0a','push','delegations\x20dismiss\x20<delegation-id>'];_0x5253=function(){return _0x527c5e;};return _0x5253();}function Q(){let _0x21b0c2=process.env.AUTH_TOKEN_FILE;return(process.env.AUTH_TOKEN||_0x21b0c2)&&process.env.TENANT_ID&&process.env.ORG_ID?{'accessToken':_0x21b0c2?Jt(_0x21b0c2):process.env.AUTH_TOKEN,..._0x21b0c2?{'accessTokenFile':_0x21b0c2}:{},'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(_0x26f054){const _0x14f6a1=_0x16c322;let _0x3a477b;try{_0x3a477b=_0x379992[_0x14f6a1(0x22c)](_0x26f054,_0x14f6a1(0x287))[_0x14f6a1(0x28e)]();}catch(_0x29b905){throw new Error(_0x14f6a1(0x1e9)+_0x26f054+_0x14f6a1(0x183)+_0x29b905[_0x14f6a1(0x15f)]);}let _0x30ed89=_0x3a477b['startsWith'](_0x14f6a1(0x121))?_0x3a477b[_0x14f6a1(0x1af)](0x7)[_0x14f6a1(0x28e)]():_0x3a477b;if(!_0x30ed89)throw new Error(_0x14f6a1(0x1e9)+_0x26f054+_0x14f6a1(0x17e));return _0x30ed89;}function ve(){const _0xb4af61=_0x16c322;let _0x156217=process.env.UIPATH_BASE_URL;if(!_0x156217)return;let _0x5595be=_0x27d821(_0x156217);if(_0x5595be['ok']===!0x1)throw new Error(_0xb4af61(0x27a)+_0x430df2(_0x156217,_0x5595be['rejection']));return _0x5595be[_0xb4af61(0x206)];}async function q(){let _0x1712da=Q();if(_0x1712da)return _0x1712da;let _0x55421b=await _0x4a4dd1();if(_0x55421b)return _0x55421b;throw new Error(Se);}async function Gt(){const _0x49eec=_0x16c322;await new _0x2d904f()[_0x49eec(0x249)]({'force':!0x0}),console[_0x49eec(0x205)](_0x49eec(0x1be));}function z(_0x1e0059,_0x3b2205,_0x40297e){const _0x1d45ce=_0x16c322;_0x1e0059?process['stderr'][_0x1d45ce(0x1fc)](_0x1d45ce(0x115)+_0x1e0059+_0x1d45ce(0x135)+_0x40297e+'\x0a'):!_0x3b2205&&!process.env.BACKEND_URL&&process[_0x1d45ce(0xcf)][_0x1d45ce(0x1fc)](_0x1d45ce(0xcc)+_0x40297e+'\x0a');}async function v(_0x3eac87){const _0x4cf48a=_0x16c322;let _0x4b4392=await q(),_0x27127c=_0x592a68(_0x3eac87[_0x4cf48a(0x1b2)],_0x4b4392,_0x3eac87['backendUrl']);return z(_0x3eac87[_0x4cf48a(0x1b2)],_0x3eac87[_0x4cf48a(0x12b)],_0x27127c),{'auth':_0x4b4392,'backendUrl':_0x27127c,'client':_0x5a87f3({'auth':_0x4b4392,'backendUrl':_0x27127c})};}async function Wt(_0x41e238){const _0x76dcdf=_0x16c322;let {client:_0x1e1ba2}=await v(_0x41e238),[_0x2c725a,_0x322695]=await Promise[_0x76dcdf(0x24a)]([_0x48861f(_0x1e1ba2),_0x2a1f07(_0x1e1ba2)[_0x76dcdf(0x220)](_0x46f93b=>(process[_0x76dcdf(0xcf)][_0x76dcdf(0x1fc)]('Could\x20not\x20check\x20BYO\x20model\x20warnings:\x20'+(_0x46f93b instanceof Error?_0x46f93b[_0x76dcdf(0x15f)]:String(_0x46f93b))+'\x0a'),{}))]),_0x4d9d07=_0x2c725a[_0x76dcdf(0x257)](_0x34d6ab=>_0x322695[_0x34d6ab['id']]?{..._0x34d6ab,'byoWarning':_0x322695[_0x34d6ab['id']]}:_0x34d6ab);u(_0x41e238,_0x4d9d07,Kt);}function Kt(_0x15a42c){const _0x6e908c=_0x16c322;if(_0x15a42c[_0x6e908c(0x16d)]===0x0){process[_0x6e908c(0xcf)][_0x6e908c(0x1fc)](_0x6e908c(0x1fa));return;}process['stdout'][_0x6e908c(0x1fc)](_0x6e908c(0x146)+_0x15a42c[_0x6e908c(0x16d)]+_0x6e908c(0xf6));for(let _0x220a29 of _0x15a42c){let _0x1e3a2f=_0x220a29['name']&&_0x220a29['name']!==_0x220a29['id']?'\x20('+_0x220a29[_0x6e908c(0x20b)]+')':'';process[_0x6e908c(0x246)][_0x6e908c(0x1fc)]('\x20\x20'+_0x220a29['id']+_0x1e3a2f+'\x0a'),_0x220a29[_0x6e908c(0x168)]&&process[_0x6e908c(0x246)][_0x6e908c(0x1fc)](_0x6e908c(0x1bd)+_0x220a29[_0x6e908c(0x168)]+'\x0a'),_0x220a29[_0x6e908c(0x1a3)]&&process[_0x6e908c(0x246)][_0x6e908c(0x1fc)](_0x6e908c(0x198)+(_0x220a29['lockReason']?'\x20('+_0x220a29[_0x6e908c(0x243)]+')':'')+'\x0a'),_0x220a29['byoWarning']&&process[_0x6e908c(0x246)][_0x6e908c(0x1fc)](_0x6e908c(0x139)+_0x220a29['byoWarning']+'\x0a');}process[_0x6e908c(0x246)][_0x6e908c(0x1fc)](_0x6e908c(0x107));}var ae=[_0x16c322(0x1da),_0x16c322(0x20e),'rename',_0x16c322(0xee),'cancel','fork'];async function Qt(_0x5da07a){const _0x333bfa=_0x16c322;let [_0x2e0741='',_0x2aa2e1='',..._0x39c45e]=_0x5da07a[_0x333bfa(0x271)];if(_0x2e0741&&!ae[_0x333bfa(0x291)](_0x2e0741)&&(console[_0x333bfa(0x12d)]('Unknown\x20sessions\x20action:\x20'+_0x2e0741+_0x333bfa(0x28b)+ae['join'](_0x333bfa(0x162))+'.'),process[_0x333bfa(0x1f8)](0x2)),_0x5da07a['turnId']!==void 0x0&&_0x2e0741!=='cancel'&&(console[_0x333bfa(0x12d)]('--turn\x20applies\x20to\x20`delegate-cli\x20sessions\x20cancel`\x20only.'),process[_0x333bfa(0x1f8)](0x2)),_0x2e0741&&_0x2e0741!==_0x333bfa(0x1da)){await qt(_0x5da07a,_0x2e0741,_0x2aa2e1,_0x39c45e[_0x333bfa(0xc5)]('\x20')[_0x333bfa(0x28e)]());return;}_0x5da07a[_0x333bfa(0x271)][_0x333bfa(0x16d)]>0x1&&(console['error'](_0x333bfa(0x16f)),process['exit'](0x2));let {client:_0x48f1fc}=await v(_0x5da07a),_0x4b2640=await _0x1b4a1f(_0x48f1fc,{'page':_0x5da07a[_0x333bfa(0x228)],'pageSize':_0x5da07a[_0x333bfa(0x25c)],'includeSubAgents':_0x5da07a[_0x333bfa(0x280)]});u(_0x5da07a,_0x4b2640,Xt);}async function qt(_0xacc742,_0xc07e07,_0x4b230e,_0x3262d1){const _0x136709=_0x16c322;if((_0xacc742['page']!==void 0x0||_0xacc742[_0x136709(0x25c)]!==void 0x0||_0xacc742['includeSubAgents'])&&(console['error']('--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`delegate-cli\x20sessions\x20[list]`\x20only.'),process['exit'](0x2)),_0xc07e07==='cancel'){await Yt(_0xacc742,_0x4b230e,_0x3262d1);return;}if(_0xc07e07==='fork'){await Vt(_0xacc742,_0x4b230e,_0x3262d1);return;}(!_0x4b230e||_0xc07e07===_0x136709(0xda)!=!!_0x3262d1)&&(console[_0x136709(0x12d)](_0x136709(0xfa)+_0xc07e07+_0x136709(0x23a)+(_0xc07e07===_0x136709(0xda)?_0x136709(0x1ef):'')),process[_0x136709(0x1f8)](0x2));let {client:_0x117880}=await v(_0xacc742);try{if(_0xc07e07===_0x136709(0x20e)){let _0xc83713=await _0x4cfc2b(_0x117880,_0x4b230e);_0xc83713||le(_0x4b230e),u(_0xacc742,_0xc83713,zt);}else{if(_0xc07e07==='rename'){let _0xe66806=await _0x50b91f(_0x117880,_0x4b230e,_0x3262d1);u(_0xacc742,_0xe66806,_0x3a101a=>{const _0x5cf1ed=_0x136709;process['stdout'][_0x5cf1ed(0x1fc)]('Renamed\x20'+_0x3a101a['id']+':\x20'+_0x3a101a[_0x5cf1ed(0x159)]+'\x0a');});}else await _0x3c3f58(_0x117880,_0x4b230e),await _0xe3388e(_0x4b230e,_0xacc742[_0x136709(0x16b)]),u(_0xacc742,{'id':_0x4b230e,'deleted':!0x0},_0xdab6b2=>{const _0x3952b0=_0x136709;process['stdout']['write'](_0x3952b0(0x1eb)+_0xdab6b2['id']+'.\x0a');});}}catch(_0x582aea){if(!_0x5b0d90(_0x582aea,0x194))throw _0x582aea;le(_0x4b230e);}}function le(_0x46a055){const _0x213722=_0x16c322;console['error']('Session\x20'+_0x46a055+_0x213722(0x15c)),process[_0x213722(0x1f8)](0x1);}function zt(_0x4abd41){const _0x222c8b=_0x16c322;process[_0x222c8b(0x246)]['write']('ID\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x4abd41['id']+'\x0a'),process['stdout'][_0x222c8b(0x1fc)](_0x222c8b(0x28f)+_0x4abd41[_0x222c8b(0x159)]+'\x0a'),process[_0x222c8b(0x246)][_0x222c8b(0x1fc)](_0x222c8b(0x137)+_0x4abd41[_0x222c8b(0x117)]+'\x0a'),process[_0x222c8b(0x246)][_0x222c8b(0x1fc)](_0x222c8b(0x219)+_0x4abd41[_0x222c8b(0xc6)]+'\x0a'),_0x4abd41[_0x222c8b(0x253)]&&process[_0x222c8b(0x246)][_0x222c8b(0x1fc)](_0x222c8b(0x1fd)+_0x4abd41['delegationId']+'\x0a');}async function Yt(_0x2badf6,_0x4dc4e2,_0x593fb2){const _0x5045fc=_0x16c322;(!_0x4dc4e2||_0x593fb2||!_0x2badf6[_0x5045fc(0x17b)])&&(console[_0x5045fc(0x12d)](_0x5045fc(0x193)),process[_0x5045fc(0x1f8)](0x2));let {client:_0x151cfe}=await v(_0x2badf6),_0x5b056b=await _0x2fef86(_0x151cfe,_0x4dc4e2,_0x2badf6[_0x5045fc(0x17b)]);u(_0x2badf6,{'sessionId':_0x4dc4e2,'turnId':_0x2badf6[_0x5045fc(0x17b)],'cancelled':_0x5b056b},_0x34eacb=>{const _0x30425e=_0x5045fc;_0x34eacb[_0x30425e(0xf3)]?process['stdout'][_0x30425e(0x1fc)](_0x30425e(0x181)+_0x34eacb[_0x30425e(0x17b)]+'\x20of\x20session\x20'+_0x34eacb[_0x30425e(0x247)]+'.\x0a'):process[_0x30425e(0xcf)][_0x30425e(0x1fc)]('No\x20turn\x20'+_0x34eacb[_0x30425e(0x17b)]+_0x30425e(0x22b)+_0x34eacb[_0x30425e(0x247)]+'.\x0a');}),_0x5b056b||(process[_0x5045fc(0x170)]=0x1);}function _0x12df(_0x2cd91a,_0x2ec46d){_0x2cd91a=_0x2cd91a-0xbd;const _0x5253e9=_0x5253();let _0x12dfa8=_0x5253e9[_0x2cd91a];return _0x12dfa8;}async function Vt(_0x31eccd,_0x24eb0a,_0x4bee09){const _0x52907e=_0x16c322;(!_0x24eb0a||/\s/[_0x52907e(0x1d3)](_0x4bee09))&&(console['error'](_0x52907e(0xc4)),process[_0x52907e(0x1f8)](0x2));let {client:_0x2f8a40}=await v(_0x31eccd),_0x3c0811;try{_0x3c0811=await _0x5e4024(_0x2f8a40,_0x24eb0a,{'atMessageId':_0x4bee09||void 0x0});}catch(_0x2a07cc){if(!_0x5b0d90(_0x2a07cc,0x194))throw _0x2a07cc;console[_0x52907e(0x12d)]('Session\x20'+_0x24eb0a+_0x52907e(0x201)+(_0x4bee09?',\x20or\x20holds\x20no\x20message\x20'+_0x4bee09:'')+'.'),process['exit'](0x1);}u(_0x31eccd,_0x3c0811,_0x292101=>{const _0x2259c7=_0x52907e;process[_0x2259c7(0x246)][_0x2259c7(0x1fc)]('Forked\x20'+_0x24eb0a+'\x20into\x20'+_0x292101['id']+'.\x0a'),process[_0x2259c7(0xcf)][_0x2259c7(0x1fc)](_0x2259c7(0x171)+_0x292101['id']+_0x2259c7(0xf4));});}function Xt({sessions:_0x1322ce,page:_0xe6ad7d,isLastPage:_0x10d04b}){const _0x3509a2=_0x16c322;if(_0x1322ce['length']===0x0)process[_0x3509a2(0xcf)][_0x3509a2(0x1fc)](_0x3509a2(0x105)+_0xe6ad7d+'.\x0a');else{process['stdout'][_0x3509a2(0x1fc)]('ID'[_0x3509a2(0x229)](0x24)+'\x20\x20'+_0x3509a2(0x223)[_0x3509a2(0x229)](0x13)+_0x3509a2(0x1e8));for(let _0x249816 of _0x1322ce){let _0x584959=_0x249816[_0x3509a2(0x14b)]['replace']('T','\x20')[_0x3509a2(0x1af)](0x0,0x13),_0x497f86=_0x249816[_0x3509a2(0x1ad)]?_0x3509a2(0xd1)+_0x249816[_0x3509a2(0x1ad)]+')':'';process[_0x3509a2(0x246)][_0x3509a2(0x1fc)](_0x249816['id'][_0x3509a2(0x229)](0x24)+'\x20\x20'+_0x584959[_0x3509a2(0x229)](0x13)+'\x20\x20'+_0x249816[_0x3509a2(0x159)]+_0x497f86+'\x0a');}}_0x10d04b||process[_0x3509a2(0xcf)][_0x3509a2(0x1fc)]('More:\x20delegate-cli\x20sessions\x20--page\x20'+(_0xe6ad7d+0x1)+'\x0a');}async function Zt(_0x15eab6){const _0x29b5b0=_0x16c322;let _0x138086=await q(),_0x427515=_0x592a68(_0x15eab6[_0x29b5b0(0x1b2)],_0x138086,_0x15eab6[_0x29b5b0(0x12b)]);z(_0x15eab6[_0x29b5b0(0x1b2)],_0x15eab6['backendUrl'],_0x427515);let _0x2da85d=await _0x2cb22e({'auth':_0x138086,'backendUrl':_0x427515,'interop':_0x15eab6[_0x29b5b0(0x1e7)]?'skip':_0x29b5b0(0x14c)});u(_0x15eab6,_0x2da85d,({checks:_0x35e024})=>{const _0x25a149=_0x29b5b0;for(let _0x64e2f0 of _0x35e024)process[_0x25a149(0x246)][_0x25a149(0x1fc)](en(_0x64e2f0)+'\x0a');}),_0x2da85d['ok']||process[_0x29b5b0(0x1f8)](0x1);}function en(_0x18a445){const _0xa1ce1=_0x16c322;return{'ok':'✓','failed':'✗','skipped':'-'}[_0x18a445[_0xa1ce1(0x267)]]+'\x20'+_0x18a445['name']['padEnd'](0xa)+_0x18a445[_0xa1ce1(0x124)];}var tn=['',_0x16c322(0x19b),_0x16c322(0x1ba)];async function nn(_0x542cbe){const _0x4fb3e7=_0x16c322;let _0x1a0d2e=_0x542cbe[_0x4fb3e7(0x1c5)];tn[_0x4fb3e7(0x291)](_0x1a0d2e)||(console[_0x4fb3e7(0x12d)](_0x4fb3e7(0x1ae)+_0x542cbe['prompt']+_0x4fb3e7(0xe3)),process[_0x4fb3e7(0x1f8)](0x2)),_0x1a0d2e===''&&_0x542cbe[_0x4fb3e7(0xe8)]!==void 0x0&&(console[_0x4fb3e7(0x12d)]('--days\x20applies\x20to\x20`delegate-cli\x20usage\x20activity|daily`;\x20the\x20summary\x20covers\x20the\x20current\x20month.'),process[_0x4fb3e7(0x1f8)](0x2)),_0x1a0d2e!==''&&_0x542cbe[_0x4fb3e7(0x247)]!==void 0x0&&(console['error'](_0x4fb3e7(0x222)),process[_0x4fb3e7(0x1f8)](0x2));let {client:_0x46559}=await v(_0x542cbe);if(_0x1a0d2e===_0x4fb3e7(0x19b)){u(_0x542cbe,await _0x322b94(_0x46559,{'days':_0x542cbe[_0x4fb3e7(0xe8)]}),sn);return;}if(_0x1a0d2e===_0x4fb3e7(0x1ba)){u(_0x542cbe,await _0x109053(_0x46559,{'days':_0x542cbe[_0x4fb3e7(0xe8)]}),rn);return;}let [_0x3aecaf,_0x169915,_0x18ac69]=await Promise[_0x4fb3e7(0x24a)]([_0x68603e(_0x46559,{'sessionId':_0x542cbe[_0x4fb3e7(0x247)]}),_0x3c4df3(_0x46559),_0x48a570(_0x46559)]);u(_0x542cbe,{'licensing':_0x3aecaf,'monthlySpending':_0x169915,'cartographerAllowance':_0x18ac69},on);}function on(_0x45ba15){const _0x322c74=_0x16c322;let {licensing:_0x7c7ea7,monthlySpending:_0x2184e2,cartographerAllowance:_0x4c9a9c}=_0x45ba15,_0x47fa26=[_0x7c7ea7['limit_enabled']?_0x322c74(0x1a5)+_0x7c7ea7[_0x322c74(0xcb)]['toFixed'](0x1)+_0x322c74(0x174)+(_0x7c7ea7['total_quota_pu']??0x0)+'\x20PU\x20used'+(_0x7c7ea7[_0x322c74(0x27b)]>0x0?',\x20'+_0x7c7ea7['extra_pool_consumed_pu']+_0x322c74(0x275):'')+'\x20(resets\x20'+_0x7c7ea7[_0x322c74(0x1d9)]+')':_0x322c74(0xfd),_0x322c74(0x175)+_0x2184e2['monthly_spend_usd'][_0x322c74(0x24b)](0x2)+_0x322c74(0x127)+(_0x2184e2['limit_enabled']&&_0x2184e2[_0x322c74(0x1c9)]!==null?_0x322c74(0x218)+_0x2184e2['monthly_limit_usd'][_0x322c74(0x24b)](0x2)+_0x322c74(0x292):_0x322c74(0x263)),'Cartographer:\x20'+_0x4c9a9c[_0x322c74(0x1aa)]+'\x20('+_0x4c9a9c[_0x322c74(0xbd)]+')'];_0x7c7ea7[_0x322c74(0x11b)]!==null&&_0x7c7ea7[_0x322c74(0x11b)]!==void 0x0&&_0x47fa26['push'](_0x322c74(0x165)+_0x7c7ea7[_0x322c74(0x11b)]+_0x322c74(0x1e6)),process[_0x322c74(0x246)][_0x322c74(0x1fc)](_0x47fa26[_0x322c74(0xc5)]('\x0a')+'\x0a');}function sn(_0x5a9574){const _0x27b7de=_0x16c322;let _0x534f8b=['Last\x20'+_0x5a9574[_0x27b7de(0xca)]+'\x20days:\x20'+_0x5a9574['total_sessions']+_0x27b7de(0x157)+_0x5a9574['active_days']+_0x27b7de(0x10c),'Cost:\x20\x20\x20$'+_0x5a9574[_0x27b7de(0x122)][_0x27b7de(0x24b)](0x2)+'\x20(estimated\x20$'+_0x5a9574[_0x27b7de(0x190)][_0x27b7de(0x24b)](0x2)+'\x20from\x20'+_0x5a9574['total_token_units']+_0x27b7de(0x211),_0x27b7de(0x1ea)+_0x5a9574['total_prompt_tokens']+_0x27b7de(0x10e)+_0x5a9574['total_completion_tokens']+_0x27b7de(0x169)];for(let [_0x5a5948,_0x11a084]of Object[_0x27b7de(0x11e)](_0x5a9574['models_breakdown']))_0x534f8b[_0x27b7de(0xe6)]('\x20\x20'+_0x5a5948+':\x20'+_0x11a084+_0x27b7de(0x215));process[_0x27b7de(0x246)]['write'](_0x534f8b[_0x27b7de(0xc5)]('\x0a')+'\x0a');}function rn(_0x342105){const _0x55b2fa=_0x16c322;if(_0x342105[_0x55b2fa(0x23b)][_0x55b2fa(0x16d)]===0x0){process['stdout'][_0x55b2fa(0x1fc)](_0x55b2fa(0x19c)+_0x342105[_0x55b2fa(0xca)]+_0x55b2fa(0x238));return;}let _0x256d66=[_0x55b2fa(0x1ed)];for(let _0x5e1f8a of _0x342105[_0x55b2fa(0x23b)])_0x256d66[_0x55b2fa(0xe6)](_0x5e1f8a['date']+'\x20\x20'+String(_0x5e1f8a['token_units'])['padStart'](0xb)+'\x20\x20'+String(_0x5e1f8a[_0x55b2fa(0xc3)])[_0x55b2fa(0x241)](0xd)+'\x20\x20'+String(_0x5e1f8a[_0x55b2fa(0x1f7)])['padStart'](0x11));process[_0x55b2fa(0x246)][_0x55b2fa(0x1fc)](_0x256d66[_0x55b2fa(0xc5)]('\x0a')+'\x0a');}async function an(_0x33b178,_0xa2727a){const _0x13efc9=_0x16c322;let _0x24d34a=await ln(_0x33b178[_0x13efc9(0x1c5)],_0xa2727a);_0x33b178['model']&&(_0x24d34a[_0x13efc9(0x19a)]=_0x33b178[_0x13efc9(0x19a)]);let {client:_0x5d8b28}=await v(_0x33b178);try{_0xa2727a===_0x13efc9(0x212)?u(_0x33b178,await _0x2e7ce6(_0x5d8b28,_0x24d34a,void 0x0),dn):_0xa2727a===_0x13efc9(0x18a)?u(_0x33b178,await _0x18ef2c(_0x5d8b28,_0x24d34a,void 0x0),un):u(_0x33b178,await _0x23ceba(_0x5d8b28,_0x24d34a,void 0x0),pn);}catch(_0x4f675b){if(!_0x2e6aa6(_0x4f675b))throw _0x4f675b;console[_0x13efc9(0x12d)](_0x4f675b[_0x13efc9(0x15f)]),process[_0x13efc9(0x1f8)](0x1);}}async function ln(_0xe05955,_0x571de0){const _0x4c9223=_0x16c322;let _0x53efcd;try{_0x53efcd=_0xe05955&&_0xe05955!=='-'?_0x379992[_0x4c9223(0x22c)](_0x3639b3[_0x4c9223(0x178)](_0xe05955),'utf-8'):await j(_0xe05955,process[_0x4c9223(0x1b7)]);}catch(_0x2b82dd){console[_0x4c9223(0x12d)](_0x571de0+':\x20cannot\x20read\x20the\x20request\x20('+_0x2b82dd[_0x4c9223(0x15f)]+').'),process[_0x4c9223(0x1f8)](0x2);}return _0x53efcd||(console[_0x4c9223(0x12d)](_0x571de0+'\x20needs\x20a\x20JSON\x20request:\x20delegate-cli\x20'+_0x571de0+_0x4c9223(0x1a1)),process[_0x4c9223(0x1f8)](0x2)),Ae(_0x53efcd,_0x571de0,'the\x20request');}function Ae(_0x43a31e,_0x4b6040,_0x2091ae){const _0x460870=_0x16c322;let _0x2ee5de;try{_0x2ee5de=JSON[_0x460870(0x18e)](_0x43a31e);}catch(_0x1e14e5){console[_0x460870(0x12d)](_0x4b6040+':\x20'+_0x2091ae+_0x460870(0x1cc)+_0x1e14e5[_0x460870(0x15f)]+').'),process['exit'](0x2);}return(typeof _0x2ee5de!='object'||_0x2ee5de===null||Array['isArray'](_0x2ee5de))&&(console['error'](_0x4b6040+':\x20'+_0x2091ae+_0x460870(0x1ab)),process[_0x460870(0x1f8)](0x2)),_0x2ee5de;}function $e(_0x50b6c6,_0x16de0f){const _0x308b9c=_0x16c322;let _0xa99810;try{_0xa99810=_0x379992[_0x308b9c(0x22c)](_0x3639b3[_0x308b9c(0x178)](_0x50b6c6),'utf-8');}catch(_0x259135){console[_0x308b9c(0x12d)](_0x16de0f+':\x20cannot\x20read\x20the\x20JSON\x20schema\x20('+_0x259135[_0x308b9c(0x15f)]+').'),process[_0x308b9c(0x1f8)](0x2);}return Ae(_0xa99810,_0x16de0f,_0x308b9c(0x17c));}async function cn(_0x3c4bce){const _0x274ac7=_0x16c322;_0x3c4bce[_0x274ac7(0x1a0)]===void 0x0&&(console[_0x274ac7(0x12d)](_0x274ac7(0x1dc)),process[_0x274ac7(0x1f8)](0x2));let _0x1efbe3=$e(_0x3c4bce[_0x274ac7(0x1a0)],_0x274ac7(0x14f)),_0x34afff=(await j(_0x3c4bce[_0x274ac7(0x1c5)],process['stdin']))['trim']();_0x34afff||(console[_0x274ac7(0x12d)](_0x274ac7(0x13b)),process[_0x274ac7(0x1f8)](0x2));let {client:_0x53e1e1}=await v(_0x3c4bce);try{let _0x36ea1b=await _0x47dc70(_0x53e1e1,{'prompt':_0x34afff,'jsonSchema':_0x1efbe3,'model':_0x3c4bce[_0x274ac7(0x19a)]||process.env.MODEL||_0x54c4ce,..._0x3c4bce['sessionId']!==void 0x0&&{'sessionId':_0x3c4bce['sessionId']}},void 0x0);u(_0x3c4bce,_0x36ea1b,_0x2c6531=>{const _0x5323fb=_0x274ac7;process[_0x5323fb(0x246)]['write'](JSON['stringify'](_0x2c6531[_0x5323fb(0x28a)],null,0x2)+'\x0a');});}catch(_0x53db46){if(!_0xe1370(_0x53db46))throw _0x53db46;console[_0x274ac7(0x12d)](_0x53db46[_0x274ac7(0x15f)]),process[_0x274ac7(0x1f8)](0x1);}}function Y(_0x1bb9e3){const _0xf77bdb=_0x16c322;process[_0xf77bdb(0x246)][_0xf77bdb(0x1fc)](_0xf77bdb(0x221)+_0x1bb9e3[_0xf77bdb(0x19a)]+'\x20('+_0x1bb9e3[_0xf77bdb(0xc9)]+'),\x20'+_0x1bb9e3['usage']['total_tokens']+_0xf77bdb(0x145));}function dn(_0x45b06a){const _0x489c4c=_0x16c322;Y(_0x45b06a);for(let _0x12bdbd of Object[_0x489c4c(0xdb)](_0x45b06a[_0x489c4c(0x1f3)])){let _0x1dfa3b=_0x45b06a[_0x489c4c(0x1f3)][_0x12bdbd],_0x6aa812=_0x1dfa3b[_0x489c4c(0x1e0)]===_0x489c4c(0x155)?'probability\x20'+_0x1dfa3b[_0x489c4c(0x155)][_0x489c4c(0x24b)](0x2):_0x1dfa3b[_0x489c4c(0x1e0)]===_0x489c4c(0x23f)?'choice\x20'+_0x1dfa3b[_0x489c4c(0x23f)]+_0x489c4c(0xeb)+_0x1dfa3b[_0x489c4c(0x1a2)]['toFixed'](0x2)+')':_0x489c4c(0x154)+_0x1dfa3b[_0x489c4c(0x19d)][_0x489c4c(0x24b)](0x2)+'\x20(confidence\x20'+_0x1dfa3b[_0x489c4c(0x1a2)][_0x489c4c(0x24b)](0x2)+')';process[_0x489c4c(0x246)][_0x489c4c(0x1fc)]('\x20\x20'+_0x12bdbd+':\x20'+_0x6aa812+'\x0a');}}function un(_0x274c8f){const _0x26b752=_0x16c322;Y(_0x274c8f),_0x274c8f[_0x26b752(0x290)][_0x26b752(0x104)]((_0x2e72d3,_0x434f2b)=>{const _0xf1c333=_0x26b752;process[_0xf1c333(0x246)][_0xf1c333(0x1fc)]('\x20\x20'+(_0x434f2b+0x1)+'.\x20'+_0x2e72d3['id']+'\x20\x20'+_0x2e72d3['score'][_0xf1c333(0x24b)](0x3)+_0xf1c333(0x24f)+_0x2e72d3[_0xf1c333(0x278)]+')\x0a');});}function pn(_0x2c7d58){const _0x26421a=_0x16c322;Y(_0x2c7d58),process[_0x26421a(0x246)][_0x26421a(0x1fc)](_0x26421a(0xdf)+_0x2c7d58[_0x26421a(0x173)]+'\x0a');for(let _0x2483f9 of _0x2c7d58['results'])process[_0x26421a(0x246)][_0x26421a(0x1fc)]('\x20\x20'+_0x2483f9['id']+':\x20'+_0x2483f9['verdict']+_0x26421a(0xeb)+_0x2483f9[_0x26421a(0x1a2)][_0x26421a(0x24b)](0x2)+')\x0a');}async function mn(_0x3cbc8d){const _0x2cb9cf=_0x16c322;let _0x192a42=_0x3cbc8d[_0x2cb9cf(0x1c5)][_0x2cb9cf(0x28e)]();_0x192a42||(console[_0x2cb9cf(0x12d)](_0x2cb9cf(0xce)),process[_0x2cb9cf(0x1f8)](0x2));let {client:_0x6aac6b}=await v(_0x3cbc8d);try{let _0x3dd756=_0x192a42==='-'?{'data':await fn(process[_0x2cb9cf(0x1b7)])}:_0x192a42;u(_0x3cbc8d,await _0x24749e(_0x6aac6b,_0x3dd756,void 0x0),_0x467a04=>{const _0x11e9a9=_0x2cb9cf;process[_0x11e9a9(0x246)]['write'](_0x467a04[_0x11e9a9(0x16e)]+'\x0a');});}catch(_0x485815){if(_0x3464e6(_0x485815)&&(console['error'](_0x485815[_0x2cb9cf(0x15f)]),process[_0x2cb9cf(0x1f8)](_0x485815[_0x2cb9cf(0x267)]===void 0x0?0x2:0x1)),typeof _0x485815?.[_0x2cb9cf(0x176)]!=_0x2cb9cf(0x156))throw _0x485815;console['error'](_0x2cb9cf(0x18f)+_0x192a42+'\x20('+_0x485815[_0x2cb9cf(0x15f)]+').'),process[_0x2cb9cf(0x1f8)](0x2);}}async function fn(_0x3233db){const _0x5d2c77=_0x16c322;let _0x5a14bc=[];for await(let _0x58ec85 of _0x3233db)_0x5a14bc[_0x5d2c77(0xe6)](Buffer[_0x5d2c77(0x15b)](_0x58ec85));return Buffer[_0x5d2c77(0x189)](_0x5a14bc);}var ce=[_0x16c322(0x1da),'pending','show',_0x16c322(0x269),_0x16c322(0x288),_0x16c322(0x14f),'accept',_0x16c322(0x125),_0x16c322(0x1cf),_0x16c322(0xee)],de={'list':_0x16c322(0x1ee),'pending':_0x16c322(0x239),'show':'delegations\x20show\x20<delegation-id|delegate://delegation/…>','create':'delegations\x20create\x20--session\x20<id>\x20[--to\x20<email|name>]\x20[--summary\x20<text>]\x20\x22<task>\x22|-','claim':_0x16c322(0x281),'complete':'delegations\x20complete\x20<delegation-id>\x20\x22<answer>\x22|-','accept':'delegations\x20accept\x20<delegation-id>','dismiss':_0x16c322(0xe7),'cancel':_0x16c322(0x2a2),'delete':'delegations\x20delete\x20<delegation-id>'};async function gn(_0x51aa05){const _0x5451c3=_0x16c322;let [_0x211dfc='',_0x336f94='',..._0x545c3b]=_0x51aa05[_0x5451c3(0x271)];ce['includes'](_0x211dfc)||(console[_0x5451c3(0x12d)]((_0x211dfc?'Unknown\x20delegations\x20action:\x20'+_0x211dfc+'.\x20':'')+_0x5451c3(0x29a)+ce[_0x5451c3(0xc5)]('\x20|\x20')+'.'),process['exit'](0x2));let _0x3b2aba=_0x211dfc;_0x3b2aba!==_0x5451c3(0x269)&&(_0x51aa05[_0x5451c3(0xc7)]!==void 0x0||_0x51aa05[_0x5451c3(0x20f)]!==void 0x0||_0x51aa05[_0x5451c3(0x247)]!==void 0x0)&&(console[_0x5451c3(0x12d)](_0x5451c3(0xc8)),process[_0x5451c3(0x1f8)](0x2));let _0x44cb4f=(_0x3b2aba===_0x5451c3(0x269)?_0x51aa05['operands'][_0x5451c3(0x1af)](0x1):_0x545c3b)[_0x5451c3(0xc5)]('\x20')[_0x5451c3(0x28e)](),_0x5dd81d=_0x3b2aba===_0x5451c3(0x269)||_0x3b2aba==='complete';(_0x3b2aba!==_0x5451c3(0x269)&&!_0x336f94||(_0x5dd81d?!_0x44cb4f:_0x44cb4f)||_0x3b2aba===_0x5451c3(0x269)&&!_0x51aa05[_0x5451c3(0x247)])&&(console['error'](_0x5451c3(0x22a)+de[_0x3b2aba]),process[_0x5451c3(0x1f8)](0x2));let _0x96e40a=_0x5dd81d&&_0x44cb4f==='-'?(await j('-',process['stdin']))[_0x5451c3(0x28e)]():_0x44cb4f;_0x5dd81d&&!_0x96e40a&&(console[_0x5451c3(0x12d)](_0x5451c3(0x22a)+de[_0x3b2aba]+'\x20(stdin\x20was\x20empty)'),process[_0x5451c3(0x1f8)](0x2));let {client:_0x5633f6}=await v(_0x51aa05);try{await hn(_0x51aa05,_0x5633f6,_0x3b2aba,_0x336f94,_0x96e40a);}catch(_0x190b22){if(!_0x1c26fe(_0x190b22))throw _0x190b22;console[_0x5451c3(0x12d)](_0x190b22['message']),process[_0x5451c3(0x1f8)](0x1);}}async function hn(_0x19cf20,_0x27edfc,_0x7e6af2,_0x2de0e0,_0x1bc606){const _0x55ac32=_0x16c322;switch(_0x7e6af2){case _0x55ac32(0x1da):u(_0x19cf20,await _0x51cda5(_0x27edfc,_0x2de0e0),yn);return;case'pending':u(_0x19cf20,await _0x3d290c(_0x27edfc,_0x2de0e0),_0x522cc2=>{const _0x216688=_0x55ac32;_0x522cc2[_0x216688(0xec)]&&process[_0x216688(0x246)][_0x216688(0x1fc)](_0x216688(0x13e)+_0x522cc2[_0x216688(0xec)]['id']+'\x20('+_0x522cc2[_0x216688(0xec)][_0x216688(0x267)]+').\x0a'),_0x522cc2[_0x216688(0xf5)]['length']===0x0&&process[_0x216688(0xcf)][_0x216688(0x1fc)](_0x216688(0xd4));for(let _0x42ba5f of _0x522cc2[_0x216688(0xf5)])process[_0x216688(0x246)][_0x216688(0x1fc)]('\x0a'+_0x42ba5f['id']+_0x216688(0x118)+(_0x42ba5f[_0x216688(0x106)]??_0x216688(0x200))+'\x20\x20'+(_0x42ba5f[_0x216688(0x20d)]??'')+'\x0a'+(_0x42ba5f[_0x216688(0x195)]?.[_0x216688(0x1f6)]??'')+'\x0a');_0x522cc2[_0x216688(0xf5)][_0x216688(0x16d)]>0x0&&process['stderr'][_0x216688(0x1fc)](_0x216688(0x26f));});return;case _0x55ac32(0x20e):u(_0x19cf20,await _0x2b517e(_0x27edfc,_0x2de0e0),ue);return;case _0x55ac32(0x269):{let _0x12a92f=await _0x30aa74(_0x27edfc,{'sessionId':_0x19cf20[_0x55ac32(0x247)],'task':_0x1bc606,..._0x19cf20[_0x55ac32(0x20f)]!==void 0x0&&{'contextSummary':_0x19cf20[_0x55ac32(0x20f)]},..._0x19cf20['delegateTo']!==void 0x0&&{'recipient':_0x19cf20[_0x55ac32(0xc7)]}});u(_0x19cf20,_0x12a92f,_0x4fe926=>{const _0x2d9076=_0x55ac32;_0x4fe926[_0x2d9076(0xe9)]?process[_0x2d9076(0x246)]['write'](_0x2d9076(0x256)+_0x4fe926[_0x2d9076(0x253)]+'\x20to\x20'+_0x4fe926[_0x2d9076(0xe9)]['displayName']+'\x20<'+_0x4fe926[_0x2d9076(0xe9)][_0x2d9076(0xf9)]+_0x2d9076(0x274)):process[_0x2d9076(0x246)][_0x2d9076(0x1fc)]('Created\x20delegation\x20'+_0x4fe926[_0x2d9076(0x253)]+_0x2d9076(0x158)+_0x4fe926[_0x2d9076(0x17d)]+'\x0a');});return;}case _0x55ac32(0x288):{let _0x2c2fb1=await _0x6a18a7(_0x27edfc,_0x2de0e0);u(_0x19cf20,_0x2c2fb1,_0x29bd2c=>{const _0x5f439c=_0x55ac32;ue(_0x29bd2c),process['stdout'][_0x5f439c(0x1fc)](_0x5f439c(0x138)+_0x29bd2c['sessionId']+'\x0a'),process[_0x5f439c(0xcf)][_0x5f439c(0x1fc)](_0x5f439c(0x12a)+_0x29bd2c[_0x5f439c(0x247)]+_0x5f439c(0xe2)+_0x29bd2c[_0x5f439c(0x253)]+_0x5f439c(0x12f));});return;}case'complete':{let {alreadyCompleted:_0x143558}=await _0x59ee8a(_0x27edfc,_0x2de0e0,{'content':_0x1bc606});u(_0x19cf20,{'delegationId':_0x2de0e0,'alreadyCompleted':_0x143558},_0x509ece=>{const _0x1b3709=_0x55ac32;process[_0x1b3709(0x246)]['write']((_0x509ece['alreadyCompleted']?'Already\x20answered':_0x1b3709(0x17f))+'\x20delegation\x20'+_0x509ece['delegationId']+'.\x0a');});return;}case _0x55ac32(0x277):{let _0x2145d3=await _0x1aa5f9(_0x27edfc,_0x2de0e0);u(_0x19cf20,{'delegationId':_0x2de0e0,..._0x2145d3},_0x1b39f2=>{const _0x396382=_0x55ac32;process[_0x396382(0x246)]['write']((_0x1b39f2[_0x396382(0x1fb)]?'Already\x20accepted':_0x396382(0x270))+_0x396382(0x1ac)+_0x1b39f2['delegationId']+'.\x0a');});return;}default:{let _0x504680={'dismiss':_0x586335,'cancel':_0x1ee9a,'delete':_0x50717c}[_0x7e6af2];await _0x504680(_0x27edfc,_0x2de0e0);let _0x34d40={'dismiss':_0x55ac32(0x131),'cancel':_0x55ac32(0xf3),'delete':_0x55ac32(0x25d)}[_0x7e6af2];u(_0x19cf20,{'delegationId':_0x2de0e0,[_0x34d40]:!0x0},()=>{const _0xd8713=_0x55ac32;process[_0xd8713(0x246)][_0xd8713(0x1fc)](''+_0x34d40[0x0][_0xd8713(0x113)]()+_0x34d40[_0xd8713(0x1af)](0x1)+_0xd8713(0x1ac)+_0x2de0e0+'.\x0a');});}}}function yn(_0x249cde){const _0x5c446f=_0x16c322;if(_0x249cde['length']===0x0){process['stderr']['write'](_0x5c446f(0x160));return;}process[_0x5c446f(0x246)][_0x5c446f(0x1fc)]('ID'[_0x5c446f(0x229)](0x24)+'\x20\x20'+_0x5c446f(0x136)[_0x5c446f(0x229)](0x9)+'\x20\x20'+_0x5c446f(0x12c)['padEnd'](0x18)+_0x5c446f(0x120));for(let _0x42c34d of _0x249cde)process['stdout']['write'](_0x42c34d['id'][_0x5c446f(0x229)](0x24)+'\x20\x20'+_0x42c34d[_0x5c446f(0x267)]['padEnd'](0x9)+'\x20\x20'+(_0x42c34d[_0x5c446f(0x106)]??'-')[_0x5c446f(0x229)](0x18)+'\x20\x20'+(_0x42c34d[_0x5c446f(0x20d)]??'')+'\x0a');}function ue(_0x51fdeb){const _0x402d4f=_0x16c322;process[_0x402d4f(0x246)]['write']('From\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x51fdeb['sourceUserEmail']??'-')+'\x0a'),_0x51fdeb[_0x402d4f(0xcd)]&&process[_0x402d4f(0x246)][_0x402d4f(0x1fc)](_0x402d4f(0x138)+_0x51fdeb[_0x402d4f(0xcd)]+'\x0a'),process[_0x402d4f(0x246)][_0x402d4f(0x1fc)]('Task\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x51fdeb[_0x402d4f(0x20d)]??'-')+'\x0a'),_0x51fdeb[_0x402d4f(0x20f)]&&process[_0x402d4f(0x246)]['write']('\x0a'+_0x51fdeb[_0x402d4f(0x20f)]+'\x0a\x0a');}async function wn(_0x5d5b47){const _0x4a580a=_0x16c322;_0x5d5b47['prompt'][_0x4a580a(0x28e)]()||(console[_0x4a580a(0x12d)](_0x4a580a(0x2a0)),process[_0x4a580a(0x1f8)](0x2));let {client:_0x520727}=await v(_0x5d5b47),_0x1825c4;try{_0x1825c4=await _0x132c7f(_0x520727,_0x5d5b47[_0x4a580a(0x1c5)]);}catch(_0x51496f){if(!_0x1c26fe(_0x51496f))throw _0x51496f;console[_0x4a580a(0x12d)](_0x51496f[_0x4a580a(0x15f)]),process[_0x4a580a(0x1f8)](0x1);}u(_0x5d5b47,_0x1825c4,_0x30fbb3=>{const _0x3b1928=_0x4a580a;_0x30fbb3[_0x3b1928(0x16d)]===0x0&&process[_0x3b1928(0xcf)][_0x3b1928(0x1fc)](_0x3b1928(0x141)+_0x5d5b47[_0x3b1928(0x1c5)][_0x3b1928(0x28e)]()+'\x22.\x0a');for(let _0xb9babf of _0x30fbb3)process[_0x3b1928(0x246)][_0x3b1928(0x1fc)](_0xb9babf['email'][_0x3b1928(0x229)](0x20)+'\x20\x20'+_0xb9babf['displayName']+'\x0a');});}async function kn(_0x2b41d3){const _0x1d514a=_0x16c322;_0x2b41d3['env']===_0x1d514a(0x1d0)&&(console[_0x1d514a(0x12d)]('--env\x20localhost\x20has\x20no\x20OAuth\x20flow;\x20pick\x20alpha,\x20staging,\x20or\x20production.'),process['exit'](0x2));let _0x514f09=M(_0x1232b9()),_0xd78869=_0x2b41d3['skipEnvCheck'];if(_0x2b41d3['env']){let _0x594af3=_0x2b41d3[_0x1d514a(0x1b2)];await _0x4e38ce({'env':_0x594af3,'tenant':_0x2b41d3[_0x1d514a(0x18b)]??G(_0x514f09,_0x3c2354[_0x594af3]),'skipEnvCheck':_0xd78869});return;}let _0x274835=_0x2b41d3['url']??ve();if(_0x274835){await _0x4e38ce({'baseUrl':_0x274835,'tenant':_0x2b41d3[_0x1d514a(0x18b)]??G(_0x514f09,_0x274835),'skipEnvCheck':_0xd78869});return;}if(_0x514f09?.['baseUrl']){await _0x4e38ce({'baseUrl':_0x514f09['baseUrl'],'tenant':_0x2b41d3[_0x1d514a(0x18b)]??_0x514f09[_0x1d514a(0x29f)],'skipEnvCheck':_0xd78869});return;}console[_0x1d514a(0x12d)](_0x1d514a(0x1b9)),process[_0x1d514a(0x1f8)](0x2);}function G(_0x281864,_0x38a771){const _0x4be719=_0x16c322;return _0x281864?.['baseUrl']&&bn(_0x281864['baseUrl'],_0x38a771)?_0x281864[_0x4be719(0x29f)]:void 0x0;}function bn(_0x137ba9,_0x421f60){const _0x10af6f=_0x16c322;try{return new URL(_0x137ba9)[_0x10af6f(0x144)]===new URL(_0x421f60)[_0x10af6f(0x144)];}catch{return!0x1;}}async function Sn(_0x4d626d){const _0x2eeb5f=_0x16c322;Q()&&(console[_0x2eeb5f(0x12d)]('Auth\x20comes\x20from\x20AUTH_TOKEN/TENANT_ID/ORG_ID\x20—\x20set\x20TENANT_ID\x20and\x20TENANT_SLUG\x20to\x20change\x20the\x20tenant.'),process[_0x2eeb5f(0x1f8)](0x2));let _0x29290c=await _0x311c8d();if(_0x29290c||(console[_0x2eeb5f(0x12d)](vn()),process[_0x2eeb5f(0x1f8)](0x2)),_0x4d626d[_0x2eeb5f(0x28e)]()){let _0x1968b4=await _0x2e83d0(_0x29290c,_0x4d626d);_0x16facd(_0x1968b4)||(console['error']('Tenant\x20not\x20switched:\x20could\x20not\x20write\x20'+_0x1232b9()+_0x2eeb5f(0x1cb)+_0x29290c[_0x2eeb5f(0x29f)]+'.'),process[_0x2eeb5f(0x1f8)](0x1)),console[_0x2eeb5f(0x205)](_0x2eeb5f(0x29d)+_0x1968b4[_0x2eeb5f(0x29f)]+'\x20('+_0x1968b4['tenantId']+')\x20—\x20saved\x20to\x20'+_0x1232b9());return;}An(await _0x525b25(_0x29290c),_0x29290c);}function vn(){const _0x2047a8=_0x16c322;if(_0x379992[_0x2047a8(0x208)](_0x1232b9()))return'The\x20saved\x20CLI\x20login\x20could\x20not\x20be\x20refreshed.\x20Run\x20`delegate-cli\x20login`\x20again.';let _0x1b180e=K();return M(_0x1b180e)?_0x2047a8(0x123)+_0x1b180e+',\x20whose\x20tenant\x20is\x20chosen\x20in\x20the\x20app.\x20Run\x20`delegate-cli\x20login\x20--env\x20<env>`\x20for\x20a\x20CLI\x20login\x20of\x20your\x20own.':_0x2047a8(0x214);}function An(_0x5e0aa6,_0x3dedb6){const _0x2e17ca=_0x16c322;let _0x394e98=_0x5e0aa6['map'](_0x38ca7=>_0x38ca7['id']===_0x3dedb6[_0x2e17ca(0x1c2)]?'*\x20'+_0x38ca7[_0x2e17ca(0x20b)]+_0x2e17ca(0x1c1):'\x20\x20'+_0x38ca7[_0x2e17ca(0x20b)]);process['stdout'][_0x2e17ca(0x1fc)](_0x2e17ca(0x203)+(_0x3dedb6['orgLogicalName']??_0x3dedb6[_0x2e17ca(0xc6)])+':\x0a'+_0x394e98['join']('\x0a')+'\x0a'),_0x5e0aa6[_0x2e17ca(0x16d)]>0x1&&process[_0x2e17ca(0x246)][_0x2e17ca(0x1fc)]('Switch\x20with:\x20delegate-cli\x20tenant\x20<name>\x0a');}function $n(_0x4cc9b8){const _0x1f130e=_0x16c322;return _0x4cc9b8?.[_0x1f130e(0x262)]?.[_0x1f130e(0x267)]===0x191||/401/[_0x1f130e(0x1d3)](String(_0x4cc9b8?.[_0x1f130e(0x15f)]??''));}var f={'lastType':null,'quiet':!0x1},Ee=_0x1b72c7=>{const _0x320b3d=_0x16c322;switch(_0x1b72c7['type']){case _0x320b3d(0xdc):_0x1b72c7['sessionId']&&_0x1b72c7[_0x320b3d(0x247)]!==f['sessionId']&&(process[_0x320b3d(0xcf)][_0x320b3d(0x1fc)](_0x320b3d(0x283)+_0x1b72c7['sessionId']+_0x320b3d(0x116)+_0x1b72c7['sessionId']+')\x0a'),f[_0x320b3d(0x247)]=_0x1b72c7[_0x320b3d(0x247)]);break;case _0x320b3d(0x266):_0x1b72c7['turnId']&&_0x1b72c7[_0x320b3d(0x17b)]!==f[_0x320b3d(0x17b)]&&(f[_0x320b3d(0x1a9)]!==null&&process[_0x320b3d(0xcf)][_0x320b3d(0x1fc)]('\x0a'),process['stderr'][_0x320b3d(0x1fc)](_0x320b3d(0x279)+_0x1b72c7[_0x320b3d(0x17b)]+_0x320b3d(0x21d)+_0x1b72c7['sessionId']+_0x320b3d(0x24e)+_0x1b72c7['turnId']+')\x0a'),f[_0x320b3d(0x17b)]=_0x1b72c7[_0x320b3d(0x17b)],f[_0x320b3d(0x1a9)]=_0x320b3d(0x266));break;case _0x320b3d(0x244):_0x1b72c7[_0x320b3d(0x1f6)]&&!f[_0x320b3d(0x25f)]&&(f['lastType']!==_0x320b3d(0x244)&&process[_0x320b3d(0xcf)][_0x320b3d(0x1fc)](_0x320b3d(0x186)),process[_0x320b3d(0xcf)][_0x320b3d(0x1fc)](_0x1b72c7['content']),f[_0x320b3d(0x1a9)]='thinking');break;case _0x320b3d(0x217):f[_0x320b3d(0x1a9)]!==null&&process['stderr'][_0x320b3d(0x1fc)]('\x0a'),process[_0x320b3d(0xcf)][_0x320b3d(0x1fc)](_0x320b3d(0x1e2)+(_0x1b72c7[_0x320b3d(0x180)]??_0x320b3d(0x166))+'\x0a'),f[_0x320b3d(0x1a9)]='tool_call';break;case _0x320b3d(0x15f):_0x1b72c7[_0x320b3d(0x1f6)]&&(f['lastType']!==_0x320b3d(0x15f)&&f[_0x320b3d(0x1a9)]!==null&&process['stdout'][_0x320b3d(0x1fc)]('\x0a'),process[_0x320b3d(0x246)][_0x320b3d(0x1fc)](_0x1b72c7['content']),f[_0x320b3d(0x1a9)]=_0x320b3d(0x15f));break;case _0x320b3d(0x12d):f[_0x320b3d(0x1a9)]!==null&&process[_0x320b3d(0xcf)][_0x320b3d(0x1fc)]('\x0a'),process[_0x320b3d(0xcf)][_0x320b3d(0x1fc)]('✗\x20'+(_0x1b72c7[_0x320b3d(0x12d)]??'error')+'\x0a'),f['lastType']='error';break;case _0x320b3d(0x264):(f['lastType']===_0x320b3d(0x15f)||f[_0x320b3d(0x1a9)]==='thinking')&&process[_0x320b3d(0x246)]['write']('\x0a'),process[_0x320b3d(0xcf)]['write'](_0x320b3d(0xe5)),f['lastType']=_0x320b3d(0x264);break;}};function pe(_0x451e31,_0x80b9f4,_0xf2c3ab,_0x101f86){const _0x560f96=_0x16c322;let _0x263e68=_0x451e31[_0x560f96(0x19a)]||process.env.MODEL;return{'backendUrl':_0xf2c3ab,'auth':_0x80b9f4,'enableComputerUse':!_0x451e31[_0x560f96(0x1e7)]&&!_0x451e31['noComputerUse'],'autoSpawnInterop':!_0x451e31['headless'],'enableConnections':!_0x451e31['noConnections'],'enableSecurity':!_0x451e31['noSecurity'],'keepInteropAlive':_0x451e31[_0x560f96(0xe0)],..._0x101f86['oneTurn']?{'enableBackgroundCommands':!0x1}:{},..._0x451e31[_0x560f96(0x252)]?{'enableMemory':!0x1}:{},..._0x451e31[_0x560f96(0x172)]?{'enableTaskAutomation':!0x0}:{},..._0x451e31[_0x560f96(0x293)][_0x560f96(0x16d)]>0x0?{'preloadSkills':_0x451e31[_0x560f96(0x293)]}:{},..._0x263e68?{'model':_0x263e68}:{},..._0x451e31['projectId']?{'projectId':_0x451e31[_0x560f96(0x1f1)]}:{},..._0x451e31[_0x560f96(0x16b)]?{'workingDirectory':_0x451e31['workingDirectory']}:{},..._0x451e31[_0x560f96(0x298)]?{'bundledSkillsPath':_0x451e31[_0x560f96(0x298)]}:{},..._0x451e31[_0x560f96(0x224)]?{'effort':_0x451e31['effort']}:{},..._0x451e31[_0x560f96(0x247)]?{'sessionId':_0x451e31[_0x560f96(0x247)]}:{},..._0x451e31[_0x560f96(0x185)]?{'verbose':!0x0}:{}};}async function En(_0x37d838){const _0x242983=_0x16c322;let _0x2d39ad=_0x37d838[_0x242983(0x15e)]!==_0x242983(0x16e),_0x331eec=_0x37d838[_0x242983(0x1a0)]===void 0x0?null:$e(_0x37d838[_0x242983(0x1a0)],_0x242983(0x14e)),_0x51b7fb=!_0x2d39ad&&!_0x331eec&&!_0x37d838[_0x242983(0x254)]&&_0x37d838[_0x242983(0x1c5)]!=='-'&&!!process['stdin'][_0x242983(0x11f)]&&!!process[_0x242983(0x246)][_0x242983(0x11f)],_0x5de8f2=_0x51b7fb?_0x37d838[_0x242983(0x1c5)][_0x242983(0x28e)]():await j(_0x37d838[_0x242983(0x1c5)],process[_0x242983(0x1b7)]);if(!_0x51b7fb&&!_0x5de8f2&&(console['error'](_0x242983(0x142)),process['exit'](0x2)),!_0x2d39ad){await me(_0x37d838,_0x5de8f2,_0x51b7fb,null,_0x331eec);return;}let _0x3547d0=!0x1,_0x304955=_0x467041=>{const _0x3fe040=_0x242983;_0x3547d0=!0x0,P(_0x3934b8(_0x467041)),(_0x467041[_0x3fe040(0xed)]||_0x467041['structuredError'])&&(process[_0x3fe040(0x170)]=0x1);},_0x158c79=Date[_0x242983(0x231)]();try{await me(_0x37d838,_0x5de8f2,!0x1,_0x304955,_0x331eec);}catch(_0x1f8a40){if(_0x3547d0)throw _0x1f8a40;process[_0x242983(0xcf)][_0x242983(0x1fc)]((_0x1f8a40 instanceof Error?_0x1f8a40[_0x242983(0x242)]??_0x1f8a40[_0x242983(0x15f)]:String(_0x1f8a40))+'\x0a'),_0x304955(new _0x4eed20(_0x158c79)[_0x242983(0x236)]({'endedAtMs':Date[_0x242983(0x231)](),'usage':[],'error':_0x1f8a40}));}}async function me(_0x2e46aa,_0x2ca1c3,_0x298b8c,_0x19ea02,_0xf1b1bd){const _0x223ca0=_0x16c322;f={'lastType':null,'quiet':_0x2e46aa[_0x223ca0(0x25f)]};let _0x25e48a=new Set(),_0x5ee1eb,_0x2cd887=_0x1d8d58=>{const _0x1dea7b=_0x223ca0;(!_0x19ea02||_0x1d8d58[_0x1dea7b(0x1e0)]===_0x1dea7b(0xdc)||_0x1d8d58[_0x1dea7b(0x1e0)]===_0x1dea7b(0x266))&&(_0x5ee1eb??Ee)(_0x1d8d58);for(let _0x4e60ef of _0x25e48a)_0x4e60ef(_0x1d8d58);},_0x191dec=await q(),_0x4fe308=new _0xde6299();_0x4fe308[_0x223ca0(0x216)](_0x2cd887);let _0x11b73e=_0x592a68(_0x2e46aa[_0x223ca0(0x1b2)],_0x191dec,_0x2e46aa[_0x223ca0(0x12b)]);z(_0x2e46aa[_0x223ca0(0x1b2)],_0x2e46aa['backendUrl'],_0x11b73e);let _0x320cd8={'input':null},_0x2eae9b=_0x298b8c?Z(()=>_0x320cd8[_0x223ca0(0x27c)],_0x105158=>{const _0x5a7812=_0x223ca0;process[_0x5a7812(0xcf)][_0x5a7812(0x1fc)](_0x105158);}):null,_0x3d7e6f=_0x2d7353=>_0x2eae9b?{..._0x2d7353,'askUser':_0x2eae9b}:_0x2d7353,_0xc9dc81=_0x3d7e6f(pe(_0x2e46aa,_0x191dec,_0x11b73e,{'oneTurn':!_0x298b8c})),_0x2940a2=!0x1,_0x542fd2=!0x1,_0x14d364,_0x403e62=()=>_0x14d364??=_0x4fe308[_0x223ca0(0x148)](),_0x35cc48=()=>{const _0x509beb=_0x223ca0;_0x542fd2&&process[_0x509beb(0x1f8)](0x82),_0x542fd2=!0x0,process[_0x509beb(0xcf)][_0x509beb(0x1fc)](_0x509beb(0x108)),_0x2940a2&&_0x4fe308[_0x509beb(0x1cf)]()[_0x509beb(0x220)](_0x3013dd=>console['error'](_0x3013dd))[_0x509beb(0x16c)](_0x403e62)['then'](()=>process[_0x509beb(0x1f8)](0x82),_0x4b6087=>{const _0x1d7eac=_0x509beb;console[_0x1d7eac(0x12d)](_0x4b6087),process[_0x1d7eac(0x1f8)](0x82);});};process['on'](_0x223ca0(0x1a8),_0x35cc48);let _0x1cc87c=_0x2e46aa[_0x223ca0(0x1ce)],_0x339686=async _0xe8ebda=>{const _0x3a69c0=_0x223ca0;let _0x390e2b=_0x1cc87c;_0x1cc87c=[];let _0xf87c29=()=>_0x4fe308[_0x3a69c0(0x296)](_0xe8ebda,{'attachments':_0x390e2b});try{return await _0xf87c29();}catch(_0x4f1552){if(_0x542fd2||!$n(_0x4f1552)||!process[_0x3a69c0(0x1b7)][_0x3a69c0(0x11f)]||_0x2e46aa[_0x3a69c0(0x1b2)]===_0x3a69c0(0x1d0)||!(_0x2e46aa[_0x3a69c0(0x1b2)]||_0x191dec['baseUrl']))throw _0x4f1552;process[_0x3a69c0(0xcf)][_0x3a69c0(0x1fc)](_0x3a69c0(0x27f));let _0x21422=_0x4fe308[_0x3a69c0(0x21c)]()??_0x2e46aa[_0x3a69c0(0x247)],_0x338293=await _0x4e38ce(_0x2e46aa['env']?{'env':_0x2e46aa['env'],'tenant':G(_0x191dec,_0x3c2354[_0x2e46aa[_0x3a69c0(0x1b2)]]),'skipEnvCheck':!0x0}:{'baseUrl':_0x191dec[_0x3a69c0(0x206)],'tenant':_0x191dec[_0x3a69c0(0x29f)],'skipEnvCheck':!0x0}),_0x3ca5b3={'text':'','failed':!0x1,'sessionId':_0x21422};return _0x542fd2||(_0x2940a2=!0x1,await _0x403e62(),_0x542fd2)?_0x3ca5b3:(_0x4fe308=new _0xde6299(),_0x14d364=void 0x0,_0x4fe308[_0x3a69c0(0x216)](_0x2cd887),_0x191dec=_0x338293,await _0x4fe308['initialize']({..._0x3d7e6f(pe(_0x2e46aa,_0x191dec,_0x11b73e,{'oneTurn':!_0x298b8c})),..._0x21422?{'sessionId':_0x21422}:{}}),_0x2940a2=!0x0,_0x542fd2?_0x3ca5b3:_0xf87c29());}};try{if(await _0x4fe308[_0x223ca0(0x294)](_0xc9dc81),_0x2940a2=!0x0,_0x542fd2)return;if(_0x298b8c)await xn({'prompt':_0x2ca1c3,'sendMessage':_0x339686,'onSigint':_0x35cc48,'setAnswerInput':_0x4657cc=>{const _0x22a5ce=_0x223ca0;_0x320cd8[_0x22a5ce(0x27c)]=_0x4657cc;},'registerEventPrinter':_0x1dd722=>(_0x5ee1eb=_0x1dd722,()=>{_0x5ee1eb=void 0x0;})});else{if(_0x19ea02||_0xf1b1bd){let _0x26612c=_0x2e46aa[_0x223ca0(0x15e)]==='stream-json'?_0x42ccbf=>P(_0x29d7ae(_0x42ccbf)):()=>{},_0x143c3d=await _0x36bfff({'onEvent':_0x3fe639=>(_0x25e48a[_0x223ca0(0x1d8)](_0x3fe639),()=>{_0x25e48a['delete'](_0x3fe639);}),'sendMessage':_0x5c8e06=>_0x339686(_0x5c8e06),'getSessionId':()=>_0x4fe308[_0x223ca0(0x21c)](),'getTurnUsageHistory':_0x4d2c46=>_0x4fe308[_0x223ca0(0xc2)](_0x4d2c46),'complete':_0x2c6e6b=>_0x4fe308[_0x223ca0(0x14f)](_0x2c6e6b)},_0x2ca1c3,void 0x0,_0x26612c,_0xf1b1bd?{'outputSchema':_0xf1b1bd}:void 0x0);_0x19ea02?_0x19ea02(_0x143c3d):In(_0x143c3d);}else await _0x339686(_0x2ca1c3);}}catch(_0x50e690){if(!_0x542fd2)throw _0x50e690;}finally{try{await _0x403e62();}finally{process[_0x223ca0(0x109)](_0x223ca0(0x1a8),_0x35cc48),_0x542fd2&&(process['exitCode']=0x82);}}}function In(_0x468f73){const _0x48992d=_0x16c322;_0x468f73[_0x48992d(0x237)]?(console['error']('Structured\x20output\x20failed:\x20'+_0x468f73[_0x48992d(0x237)][_0x48992d(0x15f)]),process['exitCode']=0x1):_0x468f73[_0x48992d(0xed)]?(console['error'](_0x48992d(0x20a)+_0x468f73['error']+').'),process[_0x48992d(0x170)]=0x1):process['stdout'][_0x48992d(0x1fc)](JSON['stringify'](_0x468f73['structured'],null,0x2)+'\x0a');}function Tn(_0xc2d459,_0x4119e3){const _0x4e3f16=_0x16c322;let _0x18b399=process[_0x4e3f16(0x246)][_0x4e3f16(0x1fc)][_0x4e3f16(0xf8)](process[_0x4e3f16(0x246)]),_0x29fbe2=!0x1;return process['stdout'][_0x4e3f16(0x1fc)]=(..._0x450824)=>{const _0x36ed2a=_0x4e3f16;if(!_0x29fbe2)return _0x18b399(..._0x450824);_0x5d9a57(_0x4119e3,0x0),_0x158fa4(_0x4119e3,0x0);let _0x4c229a=_0x18b399(..._0x450824);return _0xc2d459[_0x36ed2a(0x1c5)](!0x0),_0x4c229a;},{'show':()=>{const _0x2d7231=_0x4e3f16;_0x29fbe2=!0x0,_0xc2d459[_0x2d7231(0x1c5)]();},'hide':()=>{_0x29fbe2=!0x1;},'erase':()=>{_0x29fbe2&&(_0x5d9a57(_0x4119e3,0x0),_0x158fa4(_0x4119e3,0x0)),_0x29fbe2=!0x1;},'restore':()=>{const _0x600790=_0x4e3f16;_0x29fbe2=!0x1,process['stdout'][_0x600790(0x1fc)]=_0x18b399;}};}async function xn({prompt:_0x350d17,sendMessage:_0x42dba1,onSigint:_0x55c1d2,setAnswerInput:_0x495b00,registerEventPrinter:_0x12126b}){const _0x502b24=_0x16c322;let _0x3cd02a=_0x16f085({'input':process[_0x502b24(0x1b7)],'output':process[_0x502b24(0xcf)],'terminal':!0x0,'prompt':_0x502b24(0x210)}),_0x1959b1=Tn(_0x3cd02a,process[_0x502b24(0xcf)]),_0x40cc53=[],_0x455148,_0x55d955,_0x39cda8,_0x2b7b26=!0x1,_0x1fdef2=!0x1,_0x5decb1=!0x1,_0xf68268=Promise[_0x502b24(0x178)](),_0xbd3654,_0xe7a6ae=_0x12126b(_0x4c62c5=>{const _0x55f747=_0x502b24;_0x4c62c5[_0x55f747(0x1e0)]==='session_start'&&(_0x1959b1[_0x55f747(0x128)](),_0xf68268=new Promise(_0x462c73=>{_0xbd3654=_0x462c73;})),Ee(_0x4c62c5),_0x4c62c5[_0x55f747(0x1e0)]===_0x55f747(0x264)&&(_0xbd3654?.(),_0xbd3654=void 0x0,!_0x5decb1&&!_0x2b7b26&&_0x1959b1['show']());}),_0x11165f=()=>{const _0x373b7e=_0x502b24;_0x1fdef2=!0x0,_0xbd3654?.(),_0x55c1d2(),_0x3cd02a[_0x373b7e(0x151)]();};_0x3cd02a['on'](_0x502b24(0x12e),_0x4f17cb=>{const _0x341b9d=_0x502b24;_0x39cda8?_0x39cda8(_0x4f17cb):_0x455148?_0x455148[_0x341b9d(0xe6)](_0x4f17cb):_0x55d955?_0x55d955(_0x4f17cb):_0x40cc53['push'](_0x4f17cb);}),_0x3cd02a[_0x502b24(0x207)](_0x502b24(0x151),()=>{const _0x30d72c=_0x502b24;_0x2b7b26=!0x0,_0x1959b1[_0x30d72c(0x273)](),_0x455148&&!_0x1fdef2&&_0x11165f(),_0x55d955?.(null);});let _0x18ba59=()=>_0x40cc53[_0x502b24(0x16d)]>0x0?Promise[_0x502b24(0x178)](_0x40cc53['shift']()):_0x2b7b26?Promise[_0x502b24(0x178)](null):new Promise(_0x3a8445=>{_0x55d955=_0x9341d1=>{_0x55d955=void 0x0,_0x3a8445(_0x9341d1);};});_0x495b00({'readLine':(_0x51bf87,_0x72e168)=>new Promise((_0x4fbb93,_0x35ae4c)=>{const _0x149a57=_0x502b24;if(_0x2b7b26&&!_0x455148){_0x4fbb93(null);return;}_0x455148??=[];let _0x162a50=_0x455148[_0x149a57(0x251)]();if(_0x162a50!==void 0x0){_0x4fbb93(_0x162a50);return;}let _0x520bf8=()=>{const _0x17c7d2=_0x149a57;_0x39cda8=void 0x0,_0x72e168['removeEventListener']('abort',_0x5592b8),_0x1959b1[_0x17c7d2(0x273)](),_0x3cd02a[_0x17c7d2(0x1d4)](_0x17c7d2(0x210));},_0x5592b8=()=>{_0x520bf8(),_0x35ae4c(new Error('The\x20turn\x20was\x20cancelled.'));};_0x72e168['addEventListener'](_0x149a57(0x177),_0x5592b8,{'once':!0x0}),!_0x2b7b26&&(_0x39cda8=_0x33e74c=>{_0x520bf8(),_0x4fbb93(_0x33e74c);},_0x3cd02a['setPrompt'](_0x51bf87),_0x1959b1[_0x149a57(0x20e)]());}),'endQuestions':()=>{const _0x2e8b2c=_0x502b24;_0x455148&&_0x40cc53[_0x2e8b2c(0xe6)](..._0x455148),_0x455148=void 0x0;}}),_0x3cd02a['on']('SIGINT',_0x11165f),process['stderr'][_0x502b24(0x1fc)]('Enter\x20sends\x20a\x20message.\x20/exit\x20or\x20EOF\x20exits;\x20Ctrl+C\x20stops\x20and\x20exits.\x0a');let _0xcf0f89=async _0x180254=>{_0x5decb1=!0x0;try{await _0x42dba1(_0x180254);}finally{_0x5decb1=!0x1;}};try{if(_0x350d17&&await _0xcf0f89(_0x350d17),_0x1fdef2)return;!_0x2b7b26&&!_0xbd3654&&_0x1959b1[_0x502b24(0x20e)]();for(let _0x3f33ee=await _0x18ba59();_0x3f33ee!==null&&(_0x1959b1[_0x502b24(0x273)](),!_0x1fdef2);_0x3f33ee=await _0x18ba59()){let _0x27023f=_0x3f33ee['trim']();if(_0x27023f==='/exit')break;_0x27023f&&await _0xcf0f89(_0x27023f),!_0x2b7b26&&!_0xbd3654&&_0x1959b1[_0x502b24(0x20e)]();}for(;!_0x1fdef2&&_0xbd3654;)await _0xf68268;}finally{_0x495b00(null),_0xe7a6ae(),_0x1959b1['restore'](),_0x3cd02a[_0x502b24(0x109)](_0x502b24(0x1a8),_0x11165f),_0x3cd02a[_0x502b24(0x151)]();}}async function Dn(){const _0x53165a=_0x16c322;let _0x3aa5b7=Rt(process[_0x53165a(0xea)][_0x53165a(0x1af)](0x2));if(_0x3aa5b7[_0x53165a(0x15e)]===_0x53165a(0x16e)){await fe(_0x3aa5b7);return;}let _0x723815=Pt();try{await fe(_0x3aa5b7);}finally{_0x723815();}}async function fe(_0x2d51b0){const _0x323aad=_0x16c322;if(_0x2d51b0[_0x323aad(0x1f4)]){Ct();return;}if(_0x2d51b0['version']){console[_0x323aad(0x205)](Lt());return;}if(_0x2d51b0[_0x323aad(0x126)]===_0x323aad(0x1b0)){await kn(_0x2d51b0);return;}if(_0x2d51b0['subcommand']===_0x323aad(0x18b)){await Sn(_0x2d51b0[_0x323aad(0x1c5)]);return;}if(_0x2d51b0[_0x323aad(0x126)]===_0x323aad(0x111)){await Mt();return;}if(_0x2d51b0[_0x323aad(0x126)]===_0x323aad(0xc0)){await Bt(_0x2d51b0);return;}if(_0x2d51b0[_0x323aad(0x126)]===_0x323aad(0x1c7)){await Wt(_0x2d51b0);return;}if(_0x2d51b0['subcommand']===_0x323aad(0xfc)){await Zt(_0x2d51b0);return;}if(_0x2d51b0[_0x323aad(0x126)]===_0x323aad(0x13a)){await Qt(_0x2d51b0);return;}if(_0x2d51b0[_0x323aad(0x126)]===_0x323aad(0x2a1)){await nn(_0x2d51b0);return;}if(_0x2d51b0['subcommand']===_0x323aad(0x212)||_0x2d51b0[_0x323aad(0x126)]==='rerank'||_0x2d51b0[_0x323aad(0x126)]==='verify'){await an(_0x2d51b0,_0x2d51b0[_0x323aad(0x126)]);return;}if(_0x2d51b0[_0x323aad(0x126)]===_0x323aad(0x14f)){await cn(_0x2d51b0);return;}if(_0x2d51b0[_0x323aad(0x126)]==='transcribe'){await mn(_0x2d51b0);return;}if(_0x2d51b0['subcommand']===_0x323aad(0x282)){await gn(_0x2d51b0);return;}if(_0x2d51b0[_0x323aad(0x126)]===_0x323aad(0x1b8)){await wn(_0x2d51b0);return;}if(_0x2d51b0[_0x323aad(0x126)]===_0x323aad(0x14d)){await _0x2472d8(_0x2d51b0['prompt'],{'runnerUrl':_0x2d51b0[_0x323aad(0x192)],'backendUrl':_0x2d51b0[_0x323aad(0x12b)],'interopPath':_0x2d51b0[_0x323aad(0x1c6)],'workerId':_0x2d51b0[_0x323aad(0x1d5)]});return;}if(_0x2d51b0[_0x323aad(0x102)]){await Gt();return;}await En(_0x2d51b0);}var Un=process.env.NODE_ENV==='test'||!!process.env.JEST_WORKER_ID;Un||Dn()[_0x16c322(0x220)](_0x27f1ae=>{const _0x575bc9=_0x16c322;console[_0x575bc9(0x12d)](_0x27f1ae['stack']||_0x27f1ae[_0x575bc9(0x15f)]||_0x27f1ae),process[_0x575bc9(0x1f8)](0x1);});export{_t as CARTOGRAPHER_SKILLS,re as EFFORT_TIERS,Ot as IMPLICIT_STDIN_IDLE_MS,pe as buildInitOptions,Dn as main,Rt as parseArgs,Lt as readCliVersion,j as resolvePrompt,Pt as routeStdoutToStderr,u as writeCommandResult};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uipath/delegate-cli",
|
|
3
|
-
"version": "1.206.0-preview.
|
|
3
|
+
"version": "1.206.0-preview.20261120171831",
|
|
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.
|
|
25
|
+
"@uipath/delegate-sdk": "1.206.0-preview.20261120171831"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@types/node": "^22.0.0",
|