@uipath/delegate-cli 1.206.0 → 1.207.0-preview.20261125063338
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 +12 -0
- package/dist/cli.mjs +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -149,6 +149,16 @@ Under `json` and `stream-json`, **stdout carries only JSON**, one value per line
|
|
|
149
149
|
|
|
150
150
|
`stream-json` writes every agent event as it happens — `session_start`, `turn_start`, `thinking`, `message`, `tool_call`, `tool_result`, `error`, `done` — with the same fields the SDK's `AgentEvent` carries, then the same result object as its last line. `message` and `thinking` events are streamed deltas: concatenate their `content`. `turn_start` carries the backend `turnId` another process passes to `delegate-cli sessions cancel <sessionId> --turn <turnId>` (see [Cancelling a turn](#cancelling-a-turn)); each backend round of the turn (one per tool-result round trip) has its own id, so cancel with the latest.
|
|
151
151
|
|
|
152
|
+
### Steering a running turn (`--input-format stream-json`)
|
|
153
|
+
|
|
154
|
+
Like `claude -p --input-format stream-json`, the CLI can keep reading standard input while it works. Run it with `--input-format stream-json --output-format stream-json` and no prompt argument; each stdin line is one user message:
|
|
155
|
+
|
|
156
|
+
```json
|
|
157
|
+
{"type":"user","message":{"role":"user","content":"also add tests"},"uuid":"steer-1"}
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
The first line is the prompt. Every later line steers the turn in flight the way the app's Steer button does: the message is queued, moved to the front, and the running turn is stopped, so the agent continues in the same session with it (a tool call in flight is interrupted). With `--replay-user-messages` each steering message is echoed on stdout (`"isReplay":true`, same `uuid`) when the agent takes it, which is how a caller knows it was read. The result line is the last turn's answer. A malformed line is reported on stderr and skipped; a message that arrives after the turn ended is reported as not read; end of input does not end the turn.
|
|
161
|
+
|
|
152
162
|
```json
|
|
153
163
|
{"type":"session_start","sessionId":"4f0c…"}
|
|
154
164
|
{"type":"turn_start","sessionId":"4f0c…","turnId":"9b2e…"}
|
|
@@ -393,6 +403,8 @@ Three levels of machine access, independent of conversation mode:
|
|
|
393
403
|
| `--session <id>` | server-assigned | Pin the session id (SDK `sessionId`). Must be an existing backend session: the backend assigns session ids, so an id it does not know fails the turn (exit 1) before anything is sent. Reuse it across invocations to continue one conversation — the agent then remembers earlier turns. Note that `--preload-skill` is stamped when the SDK *creates* a session, so passing it alongside `--session` does not reconfigure an existing one. For `complete`, the session whose history is sent as context. |
|
|
394
404
|
| `--json-schema <file>` | — | JSON schema file the structured answer must match: for `complete`, and for a prompt (the turn's result is extracted after it runs; implies `--print`). On another command the flag exits with code 2. |
|
|
395
405
|
| `--attach <path>` | — | (prompts only) File or folder sent with the first message (repeatable; SDK `sendMessage(prompt, { attachments })`). See [Attachments](#attachments---attach). |
|
|
406
|
+
| `--input-format <fmt>` | `text` | `text` / `stream-json`. `stream-json` reads the prompt and later steering messages from stdin; needs `--output-format stream-json`. See [Steering a running turn](#steering-a-running-turn---input-format-stream-json). |
|
|
407
|
+
| `--replay-user-messages` | off | With `--input-format stream-json`: echo each steering message once the agent takes it. |
|
|
396
408
|
| `--output-format <fmt>` | `text` | `text` / `json` / `stream-json`. The JSON formats keep stdout JSON-only, imply `--print`, and exit 1 when the turn ends in error. Also honoured by every subcommand that prints a result. See [Machine-readable output](#machine-readable-output---output-format). |
|
|
397
409
|
| `--days <n>` | 30 | (`usage activity` / `usage daily` only) Look-back window in days, a whole number from 1 to 365; anything else, or the flag on another command, exits with code 2. |
|
|
398
410
|
| `-q`, `--quiet` | off | Suppress 🤔 thinking on stderr. |
|
package/dist/cli.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
const _0x49b867=_0x5ab3;(function(_0x17505f,_0x1b0218){const _0x303017=_0x5ab3,_0x1aed43=_0x17505f();while(!![]){try{const _0x35a5f6=-parseInt(_0x303017(0x211))/0x1*(-parseInt(_0x303017(0x2ac))/0x2)+parseInt(_0x303017(0x2fc))/0x3*(-parseInt(_0x303017(0x15f))/0x4)+-parseInt(_0x303017(0x2b0))/0x5*(-parseInt(_0x303017(0x29f))/0x6)+parseInt(_0x303017(0x1af))/0x7+-parseInt(_0x303017(0x17c))/0x8+-parseInt(_0x303017(0x136))/0x9*(-parseInt(_0x303017(0x2e6))/0xa)+parseInt(_0x303017(0x147))/0xb*(-parseInt(_0x303017(0x197))/0xc);if(_0x35a5f6===_0x1b0218)break;else _0x1aed43['push'](_0x1aed43['shift']());}catch(_0x3bf1e5){_0x1aed43['push'](_0x1aed43['shift']());}}}(_0x414a,0x7d09f));const __dirname=import.meta.dirname;import _0x8a14ae from'fs';import _0x4bc4ca from'path';import{clearLine as _0x50aeb6,createInterface as _0xea155,cursorTo as _0x51ad68}from'node:readline';import{isOnStepGrid as _0x479f8e}from'@uipath/delegate-sdk';var N='userinput';function v(_0x319814){const _0x320d20=_0x5ab3;return _0x319814[_0x320d20(0x2c9)](/\u001b\[[0-?]*[ -/]*[@-~]|\u001b\][^\u0007\u001b]*(\u0007|\u001b\\)?|\u001b./g,'')[_0x320d20(0x2c9)](/[\u0000-\u0008\u000b-\u001f\u007f-\u009f]/g,'');}function X(_0x35c928){const _0x59d4c1=_0x5ab3;return v(_0x35c928['label']??(_0x35c928['kind']===N?_0x59d4c1(0x204):_0x35c928['id']));}function xe(_0x5da018,_0x158d72,_0x193b18){const _0x13cd8d=_0x5ab3;let _0x2e6976=[''+(_0x193b18>0x1?'['+_0x158d72+'/'+_0x193b18+']\x20':'')+v(_0x5da018[_0x13cd8d(0x28a)])+(_0x5da018[_0x13cd8d(0x179)]?_0x13cd8d(0x2d5):''),v(_0x5da018[_0x13cd8d(0x300)])];return _0x5da018['type']===_0x13cd8d(0x1b1)&&_0x5da018[_0x13cd8d(0x181)][_0x13cd8d(0x1b6)]((_0x5ac74a,_0x3061e8)=>{const _0x2674cf=_0x13cd8d;let _0xcd49ff=_0x5ac74a[_0x2674cf(0x1b0)]===N?'\x20(type\x20your\x20own)':'',_0x5ba94e=_0x5ac74a[_0x2674cf(0x1e5)]?_0x2674cf(0x192)+v(_0x5ac74a[_0x2674cf(0x1e5)]):'';_0x2e6976['push']('\x20\x20'+(_0x3061e8+0x1)+'.\x20'+X(_0x5ac74a)+_0xcd49ff+_0x5ba94e);}),_0x2e6976[_0x13cd8d(0x2ea)]('\x0a');}function Z(_0x2c5c25,_0x34d439){const _0x787135=_0x5ab3;let _0x492068=_0x2c5c25['split'](/[\s,]+/)[_0x787135(0x30f)](Boolean);if(_0x492068[_0x787135(0x2aa)]===0x0)return null;let _0xd542cc=_0x492068[_0x787135(0x22a)](_0x1cd65f=>/^\d+$/[_0x787135(0x14e)](_0x1cd65f)?Number(_0x1cd65f):NaN);return _0xd542cc[_0x787135(0x231)](_0x2440e9=>!Number[_0x787135(0x2e2)](_0x2440e9)||_0x2440e9<0x1||_0x2440e9>_0x34d439)?null:[...new Set(_0xd542cc)][_0x787135(0x22a)](_0x4e4424=>_0x4e4424-0x1);}function De(_0x4637f0){const _0x41acc2=_0x5ab3;return typeof _0x4637f0=='object'&&_0x4637f0!==null&&_0x41acc2(0x1b3)in _0x4637f0;}async function R(_0x204de2,_0x121afc,_0x506bf7,_0x2700b9){const _0x1d5080=_0x5ab3;for(;;){let _0x12d0eb=(await _0x204de2(_0x121afc))[_0x1d5080(0x272)]();if(_0x12d0eb==='')return;let _0x3e5dca=_0x2700b9(_0x12d0eb);if(!De(_0x3e5dca))return _0x3e5dca;_0x506bf7(_0x3e5dca[_0x1d5080(0x1b3)]+'\x0a');}}async function Ue(_0xf2c9f8,_0x290411,_0xd08413){const _0x245777=_0x5ab3;if(_0xf2c9f8[_0x245777(0x181)][_0x245777(0x2aa)]===0x0||_0xf2c9f8[_0x245777(0x181)][_0x245777(0x1ce)](_0x46ab47=>_0x46ab47[_0x245777(0x1b0)]===N)){let _0x3ab4bc=(await _0x290411(_0x245777(0x209)))[_0x245777(0x272)]();return _0x3ab4bc===''?void 0x0:{'text':_0x3ab4bc};}let _0x1f7a21=_0xf2c9f8[_0x245777(0x181)][_0x245777(0x16c)](_0x29ef28=>_0x29ef28[_0x245777(0x1b0)]===N),_0x2d53f6=_0xf2c9f8[_0x245777(0x20d)]?'Numbers,\x20separated\x20by\x20commas\x20(Enter\x20to\x20skip):\x20':_0x245777(0x2a4)+(_0x1f7a21>=0x0?_0x245777(0x1b2):'')+_0x245777(0x2de),_0x13e16a=await R(_0x290411,_0x2d53f6,_0xd08413,_0xf764e3=>{const _0x26f2ec=_0x245777;let _0x54e27c=Z(_0xf764e3,_0xf2c9f8['options'][_0x26f2ec(0x2aa)]);return _0x54e27c&&(_0xf2c9f8['multiSelect']||_0x54e27c['length']===0x1)?_0x54e27c:!_0xf2c9f8['multiSelect']&&_0x1f7a21>=0x0?{'typed':_0xf764e3}:{'refused':_0xf2c9f8[_0x26f2ec(0x20d)]?_0x26f2ec(0x2b4)+_0xf2c9f8['options'][_0x26f2ec(0x2aa)]+'.':_0x26f2ec(0x290)+_0xf2c9f8[_0x26f2ec(0x181)][_0x26f2ec(0x2aa)]+'.'};});if(_0x13e16a===void 0x0)return;if(!Array[_0x245777(0x233)](_0x13e16a))return{'text':_0x13e16a[_0x245777(0x244)]};let _0x3466dc=_0x13e16a[_0x245777(0x22a)](_0x349f25=>_0xf2c9f8['options'][_0x349f25]['id']),_0x2c27cb=_0x3466dc[_0x245777(0x222)](N)?await R(_0x290411,X(_0xf2c9f8[_0x245777(0x181)][_0x1f7a21])+':\x20',_0xd08413,_0x24f327=>_0x24f327):void 0x0;if(!(_0x3466dc[_0x245777(0x222)](N)&&_0x2c27cb===void 0x0))return _0xf2c9f8[_0x245777(0x20d)]?{'optionIds':_0x3466dc,..._0x2c27cb!==void 0x0?{'text':_0x2c27cb}:{}}:_0x2c27cb!==void 0x0?{'text':_0x2c27cb}:{'optionId':_0x3466dc[0x0]};}async function _e(_0x4ec9fa,_0x2e7b69,_0x12f10f){const _0x95499c=_0x5ab3;let _0x45cedb={};for(let _0x28f7b1 of _0x4ec9fa[_0x95499c(0x2bb)]){let _0xd9a074=_0x28f7b1[_0x95499c(0x2cc)]??_0x28f7b1[_0x95499c(0x229)],_0x3cc9a0=_0x28f7b1[_0x95499c(0x2fe)]??0x1,_0x322fd7=_0x28f7b1[_0x95499c(0x18a)]?'\x20'+v(_0x28f7b1[_0x95499c(0x18a)]):'',_0x5b1aa7='from\x20'+_0x28f7b1['min']+_0x95499c(0x1d0)+_0x28f7b1[_0x95499c(0x13b)]+(_0x3cc9a0!==0x1?'\x20in\x20steps\x20of\x20'+_0x3cc9a0:''),_0x386b29=await R(_0x2e7b69,v(_0x28f7b1[_0x95499c(0x256)])+'\x20['+_0x28f7b1['min']+'-'+_0x28f7b1[_0x95499c(0x13b)]+_0x322fd7+_0x95499c(0x29a)+_0xd9a074+_0x95499c(0x316),_0x12f10f,_0xe488d5=>{const _0x187656=_0x95499c;let _0x53d29c=Number(_0xe488d5);return Number[_0x187656(0x207)](_0x53d29c)&&_0x53d29c>=_0x28f7b1['min']&&_0x53d29c<=_0x28f7b1[_0x187656(0x13b)]&&_0x479f8e(_0x53d29c,_0x28f7b1[_0x187656(0x229)],_0x3cc9a0)?_0x53d29c:{'refused':'Enter\x20a\x20number\x20'+_0x5b1aa7+'.'};});_0x45cedb[_0x28f7b1['id']]=_0x386b29??_0xd9a074;}return{'values':_0x45cedb};}async function Ne(_0x235ebc,_0x121f74,_0x53d546){const _0xa41569=_0x5ab3;_0x53d546(_0x235ebc[_0xa41569(0x1cb)][_0xa41569(0x22a)]((_0x1fdf7b,_0x448fff)=>'\x20\x20'+(_0x448fff+0x1)+'.\x20'+v(_0x1fdf7b[_0xa41569(0x256)]))[_0xa41569(0x2ea)]('\x0a')+'\x0a');let _0x4b925e={};for(let _0x3311a4 of _0x235ebc[_0xa41569(0x264)]){let _0x3c6694=await R(_0x121f74,v(_0x3311a4['label'])+_0xa41569(0x2d4),_0x53d546,_0x19c9ff=>{const _0x1cd90f=_0xa41569;let _0x20f1cb=Z(_0x19c9ff,_0x235ebc[_0x1cd90f(0x1cb)][_0x1cd90f(0x2aa)]);return _0x20f1cb&&_0x20f1cb['length']===0x1?_0x20f1cb[0x0]:{'refused':_0x1cd90f(0x290)+_0x235ebc[_0x1cd90f(0x1cb)]['length']+'.'};});if(_0x3c6694===void 0x0)continue;let _0x258e25=_0x235ebc[_0xa41569(0x1cb)][_0x3c6694],_0x41fffc={};for(let _0x2f936b of _0x258e25[_0xa41569(0x25a)]??[]){let _0x200691='\x20\x20'+v(_0x2f936b['label'])+(_0x2f936b[_0xa41569(0x179)]?_0xa41569(0x2d5):'')+':\x20',_0x429e27=await R(_0x121f74,_0x200691,_0x53d546,_0x4240a8=>_0x4240a8);for(;_0x429e27===void 0x0&&!_0x2f936b[_0xa41569(0x179)];)_0x53d546(v(_0x2f936b[_0xa41569(0x256)])+_0xa41569(0x201)),_0x429e27=await R(_0x121f74,_0x200691,_0x53d546,_0x2d567f=>_0x2d567f);_0x429e27!==void 0x0&&(_0x41fffc[_0x2f936b['id']]=_0x429e27);}_0x4b925e[_0x3311a4['id']]={'bucket':_0x258e25['id'],...Object[_0xa41569(0x205)](_0x41fffc)[_0xa41569(0x2aa)]>0x0?{'subFields':_0x41fffc}:{}};}return Object[_0xa41569(0x205)](_0x4b925e)[_0xa41569(0x2aa)]>0x0?{'assignments':_0x4b925e}:void 0x0;}async function Re(_0x1fc91f,_0x3b6562,_0x6d13){const _0x76c0cc=_0x5ab3;if(_0x1fc91f[_0x76c0cc(0x2be)]===_0x76c0cc(0x1b1))return Ue(_0x1fc91f,_0x3b6562,_0x6d13);if(_0x1fc91f[_0x76c0cc(0x2be)]==='numeric')return _e(_0x1fc91f,_0x3b6562,_0x6d13);if(_0x1fc91f['type']===_0x76c0cc(0x187))return Ne(_0x1fc91f,_0x3b6562,_0x6d13);let _0x1aa9cd=(await _0x3b6562('Your\x20answer,\x20as\x20text\x20(the\x20CLI\x20attaches\x20no\x20files;\x20Enter\x20to\x20skip):\x20'))['trim']();return _0x1aa9cd===''?void 0x0:{'text':_0x1aa9cd};}function ee(_0x1e33cd,_0x24e018){return async _0x4718e6=>{const _0x34a40b=_0x5ab3;let _0x3e5318=_0x1e33cd();if(!_0x3e5318)throw new Error(_0x34a40b(0x17d));let _0x3dda6a=async _0xc4941=>{const _0x2bcf7a=_0x34a40b;if(_0x4718e6[_0x2bcf7a(0x307)][_0x2bcf7a(0x274)])throw new Error(_0x2bcf7a(0x1fb));let _0x14f703=await _0x3e5318[_0x2bcf7a(0x1a0)](_0xc4941,_0x4718e6[_0x2bcf7a(0x307)]);if(_0x14f703===null)throw new Error(_0x2bcf7a(0x176));return _0x14f703;};try{_0x24e018('\x0a'+(_0x4718e6[_0x34a40b(0x2b5)]?v(_0x4718e6['intro'])+'\x0a':''));let _0x138b1e={};for(let [_0x1c5f22,_0x40f9ca]of _0x4718e6[_0x34a40b(0x21b)][_0x34a40b(0x24e)]()){_0x24e018('\x0a'+xe(_0x40f9ca,_0x1c5f22+0x1,_0x4718e6[_0x34a40b(0x21b)][_0x34a40b(0x2aa)])+'\x0a');let _0x48fe45=await Re(_0x40f9ca,_0x3dda6a,_0x24e018);_0x48fe45!==void 0x0&&(_0x138b1e[_0x40f9ca['id']]=_0x48fe45);}return{'answers':_0x138b1e};}finally{_0x3e5318[_0x34a40b(0x17b)]();}};}import{BUSINESS_ANALYSIS_PRELOADED_SKILLS as _0xc0404b,DelegateAgent as _0x12e700,cancelTurn as _0x5435c8,InteropProcess as _0x3e3f31,complete as _0x1f69f0,DEFAULT_MODEL as _0x202468,createBackendClient as _0x3ee6ac,evaluate as _0x234ff8,isCompletionRequestError as _0x1a1919,isEvaluationRequestError as _0x5d852f,isTranscriptionError as _0x456abf,rerank as _0x16bd74,transcribe as _0x101d0b,verify as _0x2ab801,acceptDelegation as _0x261425,cancelDelegation as _0xdde631,claimDelegation as _0x3a8be6,completeDelegation as _0x4d0054,createDelegation as _0x5417de,deleteDelegation as _0x5d4a0a,dismissDelegation as _0x14e283,getSessionDelegations as _0x37dc63,isDelegationError as _0x3af521,listDelegations as _0x247afc,listOrgUsers as _0x1dc73a,previewDelegation as _0x3071eb,TurnResultCollector as _0x2904c3,agentEventToJsonLine as _0x4ba8c1,describeBaseUrlRejection as _0x2963b2,getActivitySummary as _0xc119c6,getAuthFilePath as _0x120978,getByoWarnings as _0x13b0b0,getCartographerAllowance as _0x15760e,getDailyBreakdown as _0x545da7,getLicensingSummary as _0x21ef48,getMonthlySpending as _0x5dbdbb,isOutputFormat as _0x1838c7,isCloudBaseUrl as _0xea748,isSafeProjectFolderSegment as _0x16be83,listModels as _0x363d09,listSessions as _0xef97f2,getSession as _0xb9c791,renameSession as _0x23b06d,deleteSession as _0x553d68,deleteSessionTaskLog as _0x4f884f,forkSession as _0x45354a,isBackendRequestError as _0x2910dd,MAX_SESSION_PAGE_SIZE as _0x25755a,listTenants as _0xa44d08,loadAndRefreshAuth as _0x340b7f,loadAndRefreshSdkLogin as _0x48c18a,parsePlatformBaseUrl as _0x358f10,resolveBackendUrl as _0x2132c2,runHealthCheck as _0x4af573,runHostCommand as _0xbc8a54,runLoginFlow as _0x358248,runTurnForResult as _0x1b475b,saveAuthData as _0x43a7ae,switchTenant as _0x27e554,toJsonLine as _0x1f6a8c,ENV_TO_CLOUD as _0x1751b5,OUTPUT_FORMATS as _0x57ed83}from'@uipath/delegate-sdk';var Nt=[_0x49b867(0x23f),'tenant',_0x49b867(0x2e3),'host',_0x49b867(0x2d7),_0x49b867(0x175),_0x49b867(0x2dd),'sessions','usage',_0x49b867(0x2ee),_0x49b867(0x2a7),_0x49b867(0x321),'complete',_0x49b867(0x133),_0x49b867(0x1a9),_0x49b867(0x2f7)],re=['',_0x49b867(0x2e3),_0x49b867(0x175),_0x49b867(0x2dd),_0x49b867(0x1eb),'usage',_0x49b867(0x2ee),_0x49b867(0x2a7),_0x49b867(0x321),'complete',_0x49b867(0x133),_0x49b867(0x1a9),_0x49b867(0x2f7)],ie=[_0x49b867(0x2bf),_0x49b867(0x23e),'high',_0x49b867(0x1cc),_0x49b867(0x13b)],Rt=_0xc0404b,F=_0x49b867(0x1fe);function y(_0x4c2fd1,_0x119826,_0x5cfcda,_0x440bcc){const _0x51760d=_0x49b867;let _0x167883=_0x4c2fd1[_0x119826];return(!_0x167883||_0x167883[_0x51760d(0x2aa)]>0x1&&_0x167883[_0x51760d(0x2af)]('-'))&&(console[_0x51760d(0x1c6)](_0x5cfcda+_0x51760d(0x18b)+_0x440bcc+'.'),process['exit'](0x2)),_0x167883;}function G(_0x341a5f,_0x19a5fe,_0x199ec9,_0x54ff11){const _0x4bdd8b=_0x49b867;let _0x47fb3d=y(_0x341a5f,_0x19a5fe,_0x199ec9,_0x4bdd8b(0x2d1)),_0x4f2fd4=Number(_0x47fb3d);return(!/^\d+$/[_0x4bdd8b(0x14e)](_0x47fb3d)||_0x4f2fd4<0x1||!Number['isSafeInteger'](_0x4f2fd4)||_0x54ff11!==void 0x0&&_0x4f2fd4>_0x54ff11)&&(console['error'](_0x199ec9+_0x4bdd8b(0x2c1)+(_0x54ff11===void 0x0?'1\x20or\x20more':'from\x201\x20to\x20'+_0x54ff11)+',\x20got\x20'+_0x47fb3d+'.'),process['exit'](0x2)),_0x4f2fd4;}function Pt(_0x54e79c){const _0x309f3f=_0x49b867;let _0x3285f4={'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':_0x309f3f(0x1b1),'preloadSkills':[],'attachments':[],'skipEnvCheck':!0x1,'includeSubAgents':!0x1,'operands':[],'help':!0x1,'version':!0x1};Nt[_0x309f3f(0x222)](_0x54e79c[0x0])&&(_0x3285f4[_0x309f3f(0x177)]=_0x54e79c[0x0],_0x54e79c=_0x54e79c[_0x309f3f(0x28d)](0x1));let _0x5293e4=[];for(let _0x3b5e7d=0x0;_0x3b5e7d<_0x54e79c[_0x309f3f(0x2aa)];_0x3b5e7d++){let _0x479811=_0x54e79c[_0x3b5e7d];switch(_0x479811){case _0x309f3f(0x2bd):case'-p':_0x3285f4[_0x309f3f(0x257)]=!0x0;break;case'--keep-alive':_0x3285f4[_0x309f3f(0x297)]=!0x0;break;case _0x309f3f(0x2d8):_0x3285f4[_0x309f3f(0x238)]=!0x0;break;case _0x309f3f(0x171):_0x3285f4[_0x309f3f(0x28e)]=!0x0;break;case _0x309f3f(0x1ef):_0x3285f4[_0x309f3f(0x2b6)]=!0x0;break;case _0x309f3f(0x14d):_0x3285f4[_0x309f3f(0x1fe)]=!0x0,_0x3285f4[_0x309f3f(0x2b6)]=!0x0,_0x3285f4['preloadSkills'][_0x309f3f(0x254)](...Rt);break;case _0x309f3f(0x219):_0x3285f4[_0x309f3f(0x1c5)]=!0x0;break;case'--no-security':_0x3285f4[_0x309f3f(0x243)]=!0x0;break;case _0x309f3f(0x25b):_0x3285f4['noMemory']=!0x0;break;case _0x309f3f(0x1f2):_0x3285f4[_0x309f3f(0x168)]=!0x0;break;case'--quiet':case'-q':_0x3285f4[_0x309f3f(0x312)]=!0x0;break;case _0x309f3f(0x1fc):_0x3285f4[_0x309f3f(0x24d)]=!0x0;break;case'--backend':_0x3285f4[_0x309f3f(0x1f1)]=_0x54e79c[++_0x3b5e7d];break;case _0x309f3f(0x250):_0x3285f4[_0x309f3f(0x1d1)]=_0x54e79c[++_0x3b5e7d];break;case _0x309f3f(0x2d9):_0x3285f4[_0x309f3f(0x215)]=_0x54e79c[++_0x3b5e7d];break;case _0x309f3f(0x210):_0x3285f4[_0x309f3f(0x1fd)]=_0x54e79c[++_0x3b5e7d];break;case _0x309f3f(0x25c):_0x3285f4[_0x309f3f(0x2c3)]=_0x54e79c[++_0x3b5e7d];break;case _0x309f3f(0x2a1):_0x3285f4[_0x309f3f(0x2fa)][_0x309f3f(0x254)](y(_0x54e79c,++_0x3b5e7d,_0x479811,_0x309f3f(0x1a7)));break;case'--project':{let _0x5a89ec=y(_0x54e79c,++_0x3b5e7d,_0x479811,_0x309f3f(0x228));_0x16be83(_0x5a89ec)||(console[_0x309f3f(0x1c6)](_0x309f3f(0x2f8)+_0x5a89ec+'\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['exit'](0x2)),_0x3285f4[_0x309f3f(0x2ef)]=_0x5a89ec;break;}case _0x309f3f(0x2b9):_0x3285f4[_0x309f3f(0x247)]=y(_0x54e79c,++_0x3b5e7d,_0x479811,_0x309f3f(0x303));break;case _0x309f3f(0x2da):{let _0x31da55=y(_0x54e79c,++_0x3b5e7d,_0x479811,_0x309f3f(0x2d6)+_0x57ed83['join'](_0x309f3f(0x1f9))+')');_0x1838c7(_0x31da55)||(console['error'](_0x309f3f(0x2f5)+_0x31da55+_0x309f3f(0x135)+_0x57ed83['join']('\x20|\x20')+'.'),process['exit'](0x2)),_0x3285f4[_0x309f3f(0x284)]=_0x31da55;break;}case _0x309f3f(0x150):_0x3285f4[_0x309f3f(0x188)]=y(_0x54e79c,++_0x3b5e7d,_0x479811,_0x309f3f(0x15d));break;case _0x309f3f(0x30e):_0x3285f4[_0x309f3f(0x21f)]=G(_0x54e79c,++_0x3b5e7d,_0x479811);break;case _0x309f3f(0x23d):_0x3285f4[_0x309f3f(0x269)]=G(_0x54e79c,++_0x3b5e7d,_0x479811,_0x25755a);break;case _0x309f3f(0x26a):_0x3285f4[_0x309f3f(0x22f)]=!0x0;break;case _0x309f3f(0x21a):_0x3285f4['jsonSchemaPath']=y(_0x54e79c,++_0x3b5e7d,_0x479811,_0x309f3f(0x282));break;case _0x309f3f(0x27c):{let _0xe4346=_0x4bc4ca[_0x309f3f(0x271)](process[_0x309f3f(0x2df)](),y(_0x54e79c,++_0x3b5e7d,_0x479811,_0x309f3f(0x1cd)));_0x8a14ae[_0x309f3f(0x19c)](_0xe4346)||(console['error'](_0x309f3f(0x18f)+_0xe4346),process['exit'](0x2)),_0x3285f4[_0x309f3f(0x2ff)]['push'](_0xe4346);break;}case'--turn':_0x3285f4[_0x309f3f(0x2f1)]=y(_0x54e79c,++_0x3b5e7d,_0x479811,_0x309f3f(0x202));break;case _0x309f3f(0x1f4):_0x3285f4[_0x309f3f(0x13c)]=y(_0x54e79c,++_0x3b5e7d,_0x479811,'an\x20email\x20address\x20or\x20name');break;case'--summary':_0x3285f4[_0x309f3f(0x166)]=y(_0x54e79c,++_0x3b5e7d,_0x479811,_0x309f3f(0x2f9));break;case _0x309f3f(0x22e):_0x3285f4['days']=G(_0x54e79c,++_0x3b5e7d,_0x479811,0x16d);break;case _0x309f3f(0x1f5):_0x3285f4['workingDirectory']=_0x4bc4ca['resolve'](process['cwd'](),y(_0x54e79c,++_0x3b5e7d,_0x479811,_0x309f3f(0x18c)));break;case'--skills-path':_0x3285f4[_0x309f3f(0x208)]=_0x4bc4ca[_0x309f3f(0x271)](process[_0x309f3f(0x2df)](),y(_0x54e79c,++_0x3b5e7d,_0x479811,'a\x20directory\x20path'));break;case'--effort':{let _0x212e23=y(_0x54e79c,++_0x3b5e7d,_0x479811,_0x309f3f(0x2cf));ie[_0x309f3f(0x222)](_0x212e23)||(console[_0x309f3f(0x1c6)](_0x309f3f(0x1a8)+_0x212e23+_0x309f3f(0x135)+ie['join'](_0x309f3f(0x1f9))+'.'),process[_0x309f3f(0x15b)](0x2)),_0x3285f4[_0x309f3f(0x1b5)]=_0x212e23;break;}case _0x309f3f(0x191):{let _0x39f55b=_0x54e79c[++_0x3b5e7d];(!_0x39f55b||_0x39f55b[_0x309f3f(0x2af)]('--'))&&(console[_0x309f3f(0x1c6)](_0x309f3f(0x21e)),process[_0x309f3f(0x15b)](0x2)),_0x3285f4[_0x309f3f(0x2cb)]=_0x39f55b;break;}case _0x309f3f(0x28b):{let _0x4e8a59=_0x54e79c[++_0x3b5e7d];[_0x309f3f(0x246),_0x309f3f(0x2e1),'production',_0x309f3f(0x178)]['includes'](_0x4e8a59)||(console[_0x309f3f(0x1c6)](_0x309f3f(0x1d9)+_0x4e8a59+'.\x20Use\x20alpha\x20|\x20staging\x20|\x20production\x20|\x20localhost.'),process[_0x309f3f(0x15b)](0x2)),_0x3285f4[_0x309f3f(0x189)]=_0x4e8a59;break;}case'--url':case'--authority':{let _0x3f0efe=y(_0x54e79c,++_0x3b5e7d,_0x479811,_0x309f3f(0x2c2)),_0x2e50a7=_0x358f10(_0x3f0efe);if(_0x2e50a7['ok']===!0x1){console[_0x309f3f(0x1c6)](_0x2963b2(_0x3f0efe,_0x2e50a7[_0x309f3f(0x1ca)])),process['exit'](0x2);break;}_0x3285f4[_0x309f3f(0x1a1)]=_0x2e50a7[_0x309f3f(0x1ab)];break;}case _0x309f3f(0x148):_0x3285f4[_0x309f3f(0x194)]=!0x0;break;case'-h':case'--help':_0x3285f4[_0x309f3f(0x180)]=!0x0;break;case'-v':case _0x309f3f(0x1ee):_0x3285f4[_0x309f3f(0x279)]=!0x0;break;default:_0x479811[_0x309f3f(0x2af)]('--')&&(console[_0x309f3f(0x1c6)](_0x309f3f(0x304)+_0x479811),process['exit'](0x2)),_0x5293e4[_0x309f3f(0x254)](_0x479811);}}return _0x3285f4[_0x309f3f(0x2cb)]!==void 0x0&&_0x3285f4[_0x309f3f(0x177)]!==_0x309f3f(0x23f)&&(console[_0x309f3f(0x1c6)](_0x309f3f(0x193)),process[_0x309f3f(0x15b)](0x2)),_0x3285f4['url']!==void 0x0&&_0x3285f4[_0x309f3f(0x189)]!==void 0x0&&(console[_0x309f3f(0x1c6)](_0x309f3f(0x141)),process[_0x309f3f(0x15b)](0x2)),_0x3285f4[_0x309f3f(0x1a1)]!==void 0x0&&_0x3285f4[_0x309f3f(0x177)]!==_0x309f3f(0x23f)&&(console[_0x309f3f(0x1c6)](_0x309f3f(0x19b)),process[_0x309f3f(0x15b)](0x2)),_0x3285f4[_0x309f3f(0x20c)]!==void 0x0&&_0x3285f4['subcommand']!==_0x309f3f(0x212)&&(console[_0x309f3f(0x1c6)]('--days\x20applies\x20to\x20`delegate-cli\x20usage\x20activity|daily`\x20only.'),process['exit'](0x2)),_0x3285f4['jsonSchemaPath']!==void 0x0&&(_0x3285f4[_0x309f3f(0x177)]!==_0x309f3f(0x200)&&_0x3285f4[_0x309f3f(0x177)]!==''||_0x3285f4[_0x309f3f(0x238)])&&(console[_0x309f3f(0x1c6)](_0x309f3f(0x1d3)),process[_0x309f3f(0x15b)](0x2)),_0x3285f4[_0x309f3f(0x2ff)][_0x309f3f(0x2aa)]>0x0&&(_0x3285f4[_0x309f3f(0x177)]!==''||_0x3285f4[_0x309f3f(0x238)])&&(console[_0x309f3f(0x1c6)](_0x309f3f(0x1a5)),process[_0x309f3f(0x15b)](0x2)),_0x3285f4[_0x309f3f(0x168)]&&(_0x3285f4[_0x309f3f(0x177)]!==''||_0x3285f4['cleanup'])&&(console[_0x309f3f(0x1c6)](_0x309f3f(0x263)),process['exit'](0x2)),_0x3285f4[_0x309f3f(0x168)]&&(_0x3285f4['headless']||_0x3285f4[_0x309f3f(0x2b6)]||_0x3285f4['vertical']?.[_0x309f3f(0x272)]()===F)&&(console[_0x309f3f(0x1c6)]('--task-automation\x20needs\x20computer\x20use:\x20the\x20task\x20log\x20is\x20written\x20by\x20the\x20UI-automation\x20tools.\x20Drop\x20--headless,\x20--no-computer-use,\x20--cartographer\x20and\x20--vertical\x20cartographer.'),process[_0x309f3f(0x15b)](0x2)),_0x3285f4[_0x309f3f(0x1fe)]&&(_0x3285f4[_0x309f3f(0x247)]!==void 0x0&&_0x3285f4[_0x309f3f(0x247)][_0x309f3f(0x272)]()!==F&&(console[_0x309f3f(0x1c6)](_0x309f3f(0x154)+F+_0x309f3f(0x29c)+_0x3285f4['vertical']+_0x309f3f(0x1ec)),process['exit'](0x2)),_0x3285f4[_0x309f3f(0x247)]=F),_0x3285f4['skipEnvCheck']&&_0x3285f4[_0x309f3f(0x177)]!=='login'&&(console['error']('--skip-env-check\x20applies\x20to\x20`delegate-cli\x20login`\x20only.'),process[_0x309f3f(0x15b)](0x2)),_0x3285f4[_0x309f3f(0x284)]!==_0x309f3f(0x1b1)&&!re[_0x309f3f(0x222)](_0x3285f4[_0x309f3f(0x177)])&&(console[_0x309f3f(0x1c6)]('--output-format\x20'+_0x3285f4[_0x309f3f(0x284)]+_0x309f3f(0x29b)+re[_0x309f3f(0x30f)](Boolean)['join'](',\x20')+'.'),process[_0x309f3f(0x15b)](0x2)),(_0x3285f4['page']!==void 0x0||_0x3285f4['limit']!==void 0x0||_0x3285f4['includeSubAgents'])&&_0x3285f4[_0x309f3f(0x177)]!=='sessions'&&(console[_0x309f3f(0x1c6)]('--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`delegate-cli\x20sessions`\x20only.'),process[_0x309f3f(0x15b)](0x2)),(_0x3285f4[_0x309f3f(0x13c)]!==void 0x0||_0x3285f4[_0x309f3f(0x166)]!==void 0x0)&&_0x3285f4[_0x309f3f(0x177)]!=='delegations'&&(console[_0x309f3f(0x1c6)](_0x309f3f(0x31f)),process[_0x309f3f(0x15b)](0x2)),_0x3285f4[_0x309f3f(0x2f1)]!==void 0x0&&_0x3285f4[_0x309f3f(0x177)]!==_0x309f3f(0x1eb)&&(console[_0x309f3f(0x1c6)](_0x309f3f(0x2b3)),process[_0x309f3f(0x15b)](0x2)),_0x3285f4[_0x309f3f(0x2fa)]=[...new Set(_0x3285f4[_0x309f3f(0x2fa)])],_0x3285f4[_0x309f3f(0x1bc)]=_0x5293e4,_0x3285f4[_0x309f3f(0x239)]=_0x5293e4['join']('\x20'),_0x3285f4;}var P=_0x1a02a8=>{const _0x13fb3a=_0x49b867;process['stdout'][_0x13fb3a(0x1dd)](_0x1a02a8);};function Ct(){const _0x2e4bcd=_0x49b867;let _0x3ea515=process['stdout'][_0x2e4bcd(0x1dd)],_0x528e02=_0x3ea515[_0x2e4bcd(0x236)](process[_0x2e4bcd(0x283)]),_0x55a680=P;return P=_0x5815d6=>{_0x528e02(_0x5815d6);},process[_0x2e4bcd(0x283)][_0x2e4bcd(0x1dd)]=(..._0x355da8)=>process[_0x2e4bcd(0x227)][_0x2e4bcd(0x1dd)](..._0x355da8),()=>{const _0x35d9d8=_0x2e4bcd;process['stdout'][_0x35d9d8(0x1dd)]=_0x3ea515,P=_0x55a680;};}function u(_0x3bf235,_0x17fb5d,_0x3e3304){const _0x53c669=_0x49b867;if(_0x3bf235[_0x53c669(0x284)]==='text'){_0x3e3304(_0x17fb5d);return;}P(_0x1f6a8c(_0x17fb5d));}function Lt(){const _0x256e37=_0x49b867;let _0x3be5a6='\x0adelegate-cli\x20—\x20Delegate\x20agent\x20CLI\x0a\x0aUsage:\x0a\x20\x20delegate-cli\x20[flags]\x20[\x22<prompt>\x22]\x20\x20\x20\x20Start\x20a\x20conversation\x20in\x20a\x20terminal\x0a\x20\x20delegate-cli\x20--print\x20\x22<prompt>\x22\x20\x20\x20\x20\x20\x20Send\x20one\x20prompt,\x20print\x20the\x20response,\x20and\x20exit\x0a\x20\x20delegate-cli\x20[flags]\x20-\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Read\x20one\x20prompt\x20from\x20stdin\x20through\x20EOF,\x20then\x20exit\x0a\x20\x20delegate-cli\x20-p\x20\x22<prompt>\x22\x20--output-format\x20json|stream-json\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20One\x20turn\x20with\x20JSON-only\x20stdout;\x20exit\x201\x20on\x20error\x0a\x20\x20delegate-cli\x20--json-schema\x20FILE\x20\x22<prompt>\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20One\x20turn,\x20then\x20its\x20result\x20extracted\x20as\x20JSON\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20matching\x20the\x20schema\x20in\x20FILE\x20(printed\x20after\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20answer;\x20\x22structured\x22\x20in\x20the\x20JSON\x20result);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20exit\x201\x20when\x20the\x20extraction\x20fails\x0a\x20\x20delegate-cli\x20--attach\x20PATH\x20[--attach\x20PATH\x20...]\x20\x22<prompt>\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Send\x20files\x20or\x20folders\x20with\x20the\x20first\x20message\x0a\x20\x20delegate-cli\x20login\x20[--env\x20NAME\x20|\x20--url\x20BASE]\x20[--tenant\x20NAME]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20OAuth\x20browser\x20login\x20→\x20~/.aria/sdk-auth.json.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--env\x20or\x20--url\x20required\x20on\x20FIRST\x20login;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20afterwards\x20defaults\x20to\x20the\x20saved\x20login\x27s\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20deployment.\x20--tenant\x20picks\x20a\x20tenant\x20by\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20name;\x20without\x20it\x20a\x20re-login\x20keeps\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20saved\x20tenant\x0a\x20\x20delegate-cli\x20tenant\x20[NAME]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20the\x20organization\x27s\x20tenants,\x20or\x20switch\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20saved\x20login\x20to\x20NAME\x20(no\x20browser)\x0a\x20\x20delegate-cli\x20logout\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Remove\x20the\x20saved\x20CLI\x20login\x0a\x20\x20delegate-cli\x20whoami\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20the\x20current\x20login\x20(org,\x20tenant,\x20token\x20expiry)\x0a\x20\x20delegate-cli\x20models\x20[--env\x20NAME]\x20\x20\x20\x20\x20List\x20available\x20LLM\x20models\x20for\x20the\x20current\x20tenant,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20with\x20any\x20BYO\x20configuration\x20warning\x20per\x20model\x0a\x20\x20delegate-cli\x20sessions\x20[list]\x20[--page\x20N]\x20[--limit\x20N]\x20[--include-subagents]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20your\x20backend\x20chat\x20sessions,\x20most\x20recently\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20active\x20first\x20(resume\x20one\x20with\x20--session\x20ID)\x0a\x20\x20delegate-cli\x20sessions\x20show|delete\x20ID\x20Show\x20one\x20session\x27s\x20title\x20and\x20owner,\x20or\x20delete\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20it\x20with\x20its\x20messages\x20and\x20sub-agents\x20(no\x20prompt)\x0a\x20\x20delegate-cli\x20sessions\x20rename\x20ID\x20TITLE\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Rename\x20a\x20session\x20(1-500\x20characters)\x0a\x20\x20delegate-cli\x20sessions\x20fork\x20ID\x20[MESSAGE]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Copy\x20session\x20ID\x20into\x20a\x20new\x20session,\x20up\x20to\x20and\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20including\x20message\x20MESSAGE\x20(default:\x20all\x20of\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20it);\x20continue\x20it\x20with\x20--session\x20NEW_ID\x0a\x20\x20delegate-cli\x20sessions\x20cancel\x20ID\x20--turn\x20TURN\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Cancel\x20turn\x20TURN\x20running\x20on\x20session\x20ID\x20in\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20another\x20process;\x20exits\x201\x20when\x20no\x20such\x20turn\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20is\x20in\x20progress\x0a\x20\x20delegate-cli\x20check\x20[--env\x20NAME]\x20[--headless]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Verify\x20auth,\x20backend\x20readiness,\x20backend\x20and\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20interop\x20without\x20sending\x20a\x20prompt;\x20exits\x201\x20when\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20any\x20check\x20fails\x0a\x20\x20delegate-cli\x20usage\x20[--session\x20ID]\x20\x20\x20\x20Quota\x20and\x20spend:\x20licensing\x20quota,\x20monthly\x20spend\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20and\x20cap,\x20Cartographer\x20allowance\x0a\x20\x20delegate-cli\x20usage\x20activity|daily\x20[--days\x20N]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Activity\x20totals,\x20or\x20per-day\x20usage,\x20over\x20the\x20last\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20N\x20days\x20(1-365,\x20default\x2030)\x0a\x20\x20delegate-cli\x20evaluate|rerank|verify\x20FILE|-\x20[--model\x20ID]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Stateless\x20typed\x20judgments:\x20send\x20the\x20JSON\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20request\x20in\x20FILE\x20(or\x20stdin\x20with\x20-)\x20to\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20/v1/completions/<command>\x20and\x20print\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20answers;\x20--model\x20overrides\x20its\x20\x22model\x22.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Exits\x201\x20when\x20the\x20backend\x20rejects\x20it\x0a\x20\x20delegate-cli\x20complete\x20--json-schema\x20FILE\x20[--model\x20ID]\x20[--session\x20ID]\x20\x22<prompt>\x22|-\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20One\x20structured\x20completion,\x20no\x20agent\x20turn:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20print\x20the\x20JSON\x20object\x20matching\x20the\x20schema\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20in\x20FILE\x20(--output-format\x20json\x20prints\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{structured,\x20usage});\x20--session\x20adds\x20that\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20session\x27s\x20history\x20as\x20context.\x20Exits\x201\x20when\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20output\x20fails\x20the\x20schema\x20(422)\x20or\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20backend\x20rejects\x20the\x20request\x0a\x20\x20delegate-cli\x20transcribe\x20FILE|-\x20\x20\x20\x20\x20\x20\x20Speech-to-text:\x20print\x20the\x20text\x20of\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20audio\x20in\x20FILE,\x20or\x20on\x20stdin\x20with\x20-.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20mp3,\x20mp4,\x20mpeg,\x20mpga,\x20m4a,\x20wav\x20or\x20webm,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20up\x20to\x2014\x20MB.\x20Exits\x202\x20when\x20the\x20audio\x20is\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20refused\x20locally,\x201\x20when\x20the\x20backend\x20rejects\x20it\x0a\x20\x20delegate-cli\x20org-users\x20QUERY\x20\x20\x20\x20\x20\x20\x20\x20\x20Search\x20your\x20organization\x27s\x20users\x20by\x20name\x20or\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20email\x20prefix\x20(2-100\x20characters)\x0a\x20\x20delegate-cli\x20delegations\x20create\x20--session\x20ID\x20[--to\x20WHO]\x20[--summary\x20TEXT]\x20\x22<task>\x22|-\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Hand\x20a\x20task\x20from\x20session\x20ID\x20to\x20a\x20colleague\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(WHO:\x20an\x20email,\x20or\x20a\x20name\x20matching\x20one\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20person);\x20without\x20--to,\x20print\x20a\x20link\x20anyone\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20in\x20the\x20organization\x20can\x20claim\x0a\x20\x20delegate-cli\x20delegations\x20pending\x20SESSION\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Answers\x20to\x20delegations\x20from\x20SESSION\x20that\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20await\x20acceptance\x20(poll\x20this)\x0a\x20\x20delegate-cli\x20delegations\x20accept|dismiss|cancel|delete\x20ID\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Take\x20an\x20answer\x20into\x20its\x20session,\x20drop\x20it,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20withdraw\x20a\x20live\x20delegation,\x20or\x20delete\x20it\x0a\x20\x20delegate-cli\x20delegations\x20list\x20PROJECT\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Every\x20delegation\x20targeting\x20a\x20backend\x20project\x0a\x20\x20delegate-cli\x20delegations\x20show|claim\x20ID|LINK\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Read\x20a\x20delegation\x20assigned\x20to\x20you\x20(or\x20a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20delegate://delegation/…\x20link),\x20or\x20claim\x20it:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20prints\x20the\x20session\x20to\x20work\x20it\x20in\x0a\x20\x20delegate-cli\x20delegations\x20complete\x20ID\x20\x22<answer>\x22|-\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Send\x20the\x20answer\x20to\x20a\x20delegation\x20you\x20claimed\x0a\x20\x20delegate-cli\x20host\x20[flags]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Run\x20this\x20PC\x20as\x20a\x20remote\x20worker\x20until\x20Ctrl+C\x0a\x20\x20delegate-cli\x20host\x20install\x20[flags]\x20\x20\x20\x20Auto-start\x20the\x20host\x20at\x20login\x20(macOS\x20LaunchAgent\x20/\x20Windows\x20Scheduled\x20Task)\x0a\x20\x20delegate-cli\x20host\x20uninstall\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Remove\x20auto-start\x0a\x20\x20delegate-cli\x20host\x20status\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20auto-start\x20state\x0a\x20\x20delegate-cli\x20--cleanup\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Stop\x20running\x20interop\x0a\x0aFlags:\x0a\x20\x20-p,\x20--print\x20\x20\x20\x20\x20\x20\x20Run\x20one\x20turn\x20and\x20exit,\x20including\x20any\x20tool\x20execution.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Automatic\x20when\x20stdin\x20or\x20stdout\x20is\x20not\x20a\x20terminal,\x20or\x20with\x20-\x0a\x20\x20--env\x20NAME\x20\x20\x20\x20\x20\x20\x20\x20alpha\x20|\x20staging\x20|\x20production\x20|\x20localhost\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Composes\x20backend\x20URL\x20from\x20saved\x20auth\x20(org/tenant\x20slugs).\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Omitted\x20→\x20the\x20deployment\x20you\x20logged\x20into\x20(delegate-cli\x20login).\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20localhost\x20→\x20http://localhost:5002.\x20No\x20saved\x20login\x20and\x20no\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--env/--backend/BACKEND_URL\x20is\x20an\x20error\x20—\x20never\x20a\x20guess.\x0a\x20\x20--url\x20BASE\x20\x20\x20\x20\x20\x20\x20\x20(login)\x20Base\x20URL\x20of\x20a\x20deployment\x20that\x20is\x20not\x20a\x20named\x20cloud\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20—\x20Automation\x20Suite,\x20Dedicated,\x20Public\x20Sector.\x20Accepts\x20a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20tenant\x20path\x20or\x20a\x20trailing\x20/identity_\x20and\x20reduces\x20it\x20to\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20origin.\x20Mutually\x20exclusive\x20with\x20--env;\x20also\x20settable\x20via\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20UIPATH_BASE_URL.\x20Alias:\x20--authority.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Automation\x20Suite\x20needs\x2026.10+\x20with\x20the\x20Delegate\x20service;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20the\x20deployment\x20rejects\x20the\x20built-in\x20client,\x20register\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20your\x20own\x20—\x20see\x20UIPATH_CLIENT_ID\x20in\x20the\x20README\x0a\x20\x20--skip-env-check\x20\x20(login)\x20Do\x20not\x20check\x20the\x20deployment\x20before\x20signing\x20in.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Escape\x20hatch\x20for\x20a\x20deployment\x20that\x20hides\x20its\x20OIDC\x20discovery\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20document\x20or\x20serves\x20Identity\x20from\x20another\x20origin;\x20it\x20also\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20gives\x20up\x20the\x20diagnosis\x20when\x20something\x20is\x20really\x20wrong\x0a\x20\x20--backend\x20URL\x20\x20\x20\x20\x20Full\x20backend\x20URL\x20—\x20escape\x20hatch\x20overrides\x20--env\x0a\x20\x20--tenant\x20NAME\x20\x20\x20\x20\x20(login)\x20Tenant\x20to\x20sign\x20into,\x20by\x20name\x20(case-insensitive).\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default:\x20the\x20saved\x20login\x27s\x20tenant\x20on\x20that\x20cloud,\x20else\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20org\x27s\x20first\x20tenant.\x20Later:\x20delegate-cli\x20tenant\x20<name>\x0a\x20\x20--model\x20NAME\x20\x20\x20\x20\x20\x20LLM\x20model\x20id\x20(e.g.\x20claude_sonnet_5_5,\x20kimi_k3).\x20Checked\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20against\x20the\x20tenant\x27s\x20catalog\x20(delegate-cli\x20models)\x20before\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20run\x20starts;\x20an\x20unknown\x20id\x20fails\x20and\x20lists\x20the\x20valid\x20ones.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default:\x20gpt_5_6_luna.\x20Also\x20settable\x20via\x20MODEL\x20env\x20var.\x0a\x20\x20--keep-alive\x20\x20\x20\x20\x20\x20Reuse/leave\x20interop\x20running\x20across\x20invocations\x0a\x20\x20--headless\x20\x20\x20\x20\x20\x20\x20\x20Skip\x20interop\x20(text-only\x20prompts)\x0a\x20\x20--no-computer-use\x20Keep\x20interop\x20—\x20file,\x20Office,\x20PDF\x20and\x20shell\x20tools\x20keep\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20working\x20—\x20but\x20drop\x20the\x20screen:\x20no\x20screenshots,\x20no\x20window\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20list,\x20no\x20UI-automation\x20tools.\x20Cuts\x20image\x20tokens\x20and\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20per-turn\x20screen\x20capture,\x20and\x20stops\x20desktop\x20window\x20titles\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20leaving\x20the\x20machine.\x20Use\x20for\x20document\x20and\x20file\x20work.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--headless\x20implies\x20this\x20and\x20turns\x20interop\x20off\x20as\x20well\x0a\x20\x20--no-connections\x20\x20Disable\x20orchestrator\x20ConnectionService\x20(silences\x20404\x20warnings)\x0a\x20\x20--no-security\x20\x20\x20\x20\x20Disable\x20tool\x20security\x20wrapper\x20(use\x20only\x20for\x20debugging)\x0a\x20\x20--no-memory\x20\x20\x20\x20\x20\x20\x20Do\x20not\x20send\x20the\x20Delegate\x20app\x27s\x20local\x20long-term\x20memories\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20with\x20each\x20turn,\x20and\x20do\x20not\x20ask\x20the\x20model\x20to\x20save\x20new\x20ones\x0a\x20\x20--task-automation\x20Record\x20every\x20UI\x20action\x20of\x20the\x20run,\x20with\x20the\x20selector\x20of\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20element\x20it\x20acted\x20on,\x20to\x20<working-dir>/captures/<session>/\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(~/.aria-sdk\x20without\x20--working-dir),\x20so\x20you\x20can\x20then\x20ask\x20for\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20task\x20as\x20a\x20UiPath\x20coded\x20workflow\x20(uipath-taskautomation\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20skill).\x20The\x20log\x20holds\x20on-screen\x20text\x20and\x20your\x20requests;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20typed\x20values\x20are\x20masked.\x20Needs\x20computer\x20use.\x20Ignored\x20with\x20a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20warning\x20where\x20the\x20deployment\x20does\x20not\x20offer\x20it\x20yet\x0a\x20\x20--attach\x20PATH\x20\x20\x20\x20\x20File\x20or\x20folder\x20sent\x20with\x20the\x20first\x20message\x20(repeatable),\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20as\x20the\x20Delegate\x20app\x20sends\x20attached\x20files:\x20images\x20inline,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20PDFs\x20and\x20other\x20documents\x20as\x20a\x20path\x20the\x20agent\x20reads,\x20text\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20inline\x20up\x20to\x2016,000\x20characters.\x2030\x20MiB\x20per\x20message\x20in\x20all;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20larger\x20files\x20go\x20as\x20a\x20path.\x20In\x20a\x20conversation,\x20later\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20messages\x20carry\x20none\x20of\x20their\x20own,\x20but\x20the\x20first\x20message\x27s\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20stay\x20in\x20context\x0a\x20\x20--preload-skill\x20NAME\x20\x20Preload\x20a\x20skill\x20into\x20the\x20session\x20(repeatable).\x20The\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20skill\x27s\x20content\x20is\x20attached\x20before\x20the\x20first\x20model\x20turn\x20—\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20same\x20mechanism\x20as\x20project\x20preloaded\x20skills\x20in\x20the\x20app\x0a\x20\x20--cartographer\x20\x20\x20\x20Cartographer\x20engagement\x20preset.\x20Equivalent\x20to\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--vertical\x20cartographer\x20--no-computer-use\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--preload-skill\x20business-analysis\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--preload-skill\x20project-task-list\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--preload-skill\x20knowledge-base\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--preload-skill\x20source-coverage\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--preload-skill\x20note-taker.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Add\x20--project/--working-dir\x20for\x20where\x20the\x20files\x20live,\x20and\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20extra\x20--preload-skill\x20flags\x20for\x20more\x20skills\x20—\x20a\x20skill\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20preset\x20already\x20covers\x20is\x20not\x20preloaded\x20twice.\x20An\x20explicit\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--headless\x20still\x20wins\x20and\x20turns\x20interop\x20off;\x20another\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--vertical\x20ID\x20is\x20refused\x0a\x20\x20--project\x20ID\x20\x20\x20\x20\x20\x20Route\x20the\x20session\x27s\x20local\x20wiki\x20and\x20plans\x20to\x20a\x20project\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(<working-dir>/projects/<ID>/wiki).\x20Client-side\x20key\x20only\x0a\x20\x20--vertical\x20ID\x20\x20\x20\x20\x20Run\x20the\x20session\x20as\x20that\x20product\x27s\x20vertical,\x20as\x20its\x20tab\x20in\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20desktop\x20app\x20does,\x20with\x20no\x20desktop\x20app\x20installed:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20cartographer\x20brings\x20the\x20Map\x20of\x20Work\x20and,\x20without\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--preload-skill,\x20its\x20template\x27s\x20skills.\x20Default:\x20Delegate\x0a\x20\x20--working-dir\x20PATH\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Shell\x20cwd\x20for\x20the\x20agent\x20and\x20root\x20for\x20SDK-local\x20state.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Relative\x20paths\x20resolve\x20against\x20the\x20current\x20directory;\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20directory\x20is\x20created\x20if\x20missing\x0a\x20\x20--skills-path\x20PATH\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Folder\x20of\x20custom\x20skills,\x20loaded\x20on\x20top\x20of\x20the\x20skills\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20package\x20ships;\x20wins\x20on\x20a\x20name\x20clash\x20(also:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20DELEGATE_BUNDLED_SKILLS_PATH)\x0a\x20\x20--effort\x20TIER\x20\x20\x20\x20\x20Reasoning\x20effort:\x20low\x20|\x20medium\x20|\x20high\x20|\x20xhigh\x20|\x20max.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default:\x20the\x20model\x27s\x20recommended\x20tier\x0a\x20\x20--session\x20ID\x20\x20\x20\x20\x20\x20Continue\x20an\x20existing\x20backend\x20session\x20(an\x20unknown\x20id\x20exits\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x201;\x20the\x20backend\x20assigns\x20new\x20ids).\x20For\x20complete:\x20the\x20session\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20whose\x20history\x20is\x20the\x20context\x0a\x20\x20--json-schema\x20FILE\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20JSON\x20schema\x20the\x20structured\x20answer\x20must\x20match\x20(complete,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20and\x20prompts:\x20implies\x20--print)\x0a\x20\x20--runner-url\x20URL\x20\x20(host)\x20Runner\x20worker\x20WS\x20URL.\x20Required;\x20or\x20CONTROL_PLANE_WS_URL\x20env\x0a\x20\x20--interop\x20PATH\x20\x20\x20\x20(host)\x20Interop\x20binary\x20path;\x20or\x20INTEROP_EXECUTABLE_PATH\x20env.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Absent\x20→\x20registration/discovery\x20only,\x20tool\x20execution\x20disabled\x0a\x20\x20--worker-id\x20ID\x20\x20\x20\x20(host)\x20Stable\x20worker\x20identity;\x20or\x20WORKER_ID\x20env.\x20Default:\x20hostname\x0a\x20\x20--page\x20N\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(sessions)\x20Page\x20to\x20show,\x20from\x201.\x20Default:\x201\x0a\x20\x20--limit\x20N\x20\x20\x20\x20\x20\x20\x20\x20\x20(sessions)\x20Rows\x20per\x20page,\x201-100.\x20Default:\x2030\x0a\x20\x20--include-subagents\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(sessions)\x20Also\x20list\x20sub-agent\x20sessions,\x20hidden\x20by\x20default\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20as\x20in\x20the\x20desktop\x20app\x27s\x20history\x0a\x20\x20--to\x20WHO\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(delegations\x20create)\x20Assign\x20to\x20this\x20person:\x20an\x20email,\x20or\x20a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20name\x20that\x20matches\x20exactly\x20one\x20colleague\x20(see\x20org-users)\x0a\x20\x20--summary\x20TEXT\x20\x20\x20\x20(delegations\x20create)\x20The\x20briefing\x20the\x20person\x20starts\x20from.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default:\x20empty,\x20for\x20a\x20task\x20that\x20stands\x20on\x20its\x20own\x0a\x20\x20--output-format\x20FMT\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20text\x20(default)\x20|\x20json\x20|\x20stream-json.\x20json\x20prints\x20one\x20result\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20object\x20on\x20exit;\x20stream-json\x20prints\x20every\x20agent\x20event\x20as\x20one\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20JSON\x20line,\x20then\x20the\x20result.\x20Both\x20keep\x20stdout\x20JSON-only\x20(logs,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20progress\x20and\x20the\x20session\x20id\x20go\x20to\x20stderr),\x20imply\x20--print,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20and\x20exit\x201\x20when\x20the\x20turn\x20ends\x20in\x20error.\x20Also\x20honoured\x20by\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20every\x20subcommand\x20that\x20prints\x20a\x20result\x20(all\x20but\x20login,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20logout,\x20tenant\x20and\x20host)\x0a\x20\x20-q,\x20--quiet\x20\x20\x20\x20\x20\x20\x20Suppress\x20🤔\x20thinking\x20output\x20to\x20stderr\x0a\x20\x20--verbose\x20\x20\x20\x20\x20\x20\x20\x20\x20Surface\x20the\x20SDK\x27s\x20and\x20the\x20framework\x27s\x20own\x20logs.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Diagnostics\x20only,\x20on\x20stdout;\x20independent\x20of\x20-q\x0a\x20\x20-h,\x20--help\x20\x20\x20\x20\x20\x20\x20\x20Show\x20this\x20help\x0a\x20\x20-v,\x20--version\x20\x20\x20\x20\x20Print\x20the\x20installed\x20CLI\x20version\x0a\x0aConversation:\x20Enter\x20sends\x20a\x20message;\x20/exit\x20or\x20EOF\x20exits;\x20Ctrl+C\x20stops\x20and\x20exits.\x0a\x20\x20Ctrl+C\x20during\x20a\x20turn\x20cancels\x20it\x20on\x20the\x20backend\x20too;\x20a\x20second\x20Ctrl+C\x20force-exits.\x0a\x20\x20An\x20optional\x20initial\x20prompt\x20is\x20followed\x20by\x20more\x20input.\x20The\x20session\x20ID\x20is\x20printed\x0a\x20\x20to\x20stderr;\x20resume\x20later\x20with\x20--session\x20ID.\x20Redirected\x20input\x20is\x20one\x20prompt.\x0aAuth:\x20prompts\x20auto-retry\x20on\x20401\x20by\x20opening\x20the\x20browser\x20to\x20re-login\x20(TTY\x20only),\x0a\x20\x20preserving\x20the\x20active\x20session.\x0a'[_0x256e37(0x272)]();console[_0x256e37(0x296)](_0x3be5a6);}function _0x5ab3(_0x2e998f,_0x132e3e){_0x2e998f=_0x2e998f-0x132;const _0x414a2e=_0x414a();let _0x5ab383=_0x414a2e[_0x2e998f];return _0x5ab383;}function Ot(){const _0x358d11=_0x49b867;try{return JSON[_0x358d11(0x22b)](_0x8a14ae[_0x358d11(0x1e8)](_0x4bc4ca['join'](__dirname,'..',_0x358d11(0x26c)),'utf-8'))['version']||_0x358d11(0x1d7);}catch{return _0x358d11(0x1d7);}}var Ft=0x7d0;async function ae(_0x16ce3a,_0x484e3a){const _0x2373db=_0x49b867;let _0x5c1d8d=_0x484e3a?[_0x484e3a]:[];for await(let _0x116e7a of _0x16ce3a)_0x5c1d8d[_0x2373db(0x254)](Buffer['from'](_0x116e7a));return Buffer[_0x2373db(0x28f)](_0x5c1d8d)[_0x2373db(0x214)]('utf-8')[_0x2373db(0x272)]();}function jt(_0x3152dc,_0x101ab2){return new Promise(_0x3649a8=>{const _0x374b4c=_0x5ab3;let _0x52cb90=_0x27e7e4=>{const _0x259999=_0x5ab3;clearTimeout(_0x3ea613),_0x3152dc[_0x259999(0x16f)]('data',_0x46a9fe),_0x3152dc['off'](_0x259999(0x295),_0x3a4525),_0x3152dc[_0x259999(0x16f)](_0x259999(0x1c6),_0x3a4525),_0x3152dc[_0x259999(0x1a6)](),_0x3649a8(_0x27e7e4);},_0x46a9fe=_0x164bc8=>_0x52cb90(Buffer[_0x374b4c(0x31d)](_0x164bc8)),_0x3a4525=()=>_0x52cb90(null),_0x3ea613=setTimeout(()=>_0x52cb90(null),_0x101ab2);_0x3152dc['on'](_0x374b4c(0x25f),_0x46a9fe),_0x3152dc['on'](_0x374b4c(0x295),_0x3a4525),_0x3152dc['on'](_0x374b4c(0x1c6),_0x3a4525),_0x3152dc[_0x374b4c(0x21d)]();});}async function M(_0x491d1c,_0x3d59c7,_0xe58069=Ft){const _0x2808a4=_0x49b867;let _0x57a6a6=_0x491d1c==='-';if(!_0x57a6a6&&_0x491d1c)return _0x491d1c;if(!_0x57a6a6&&_0x3d59c7[_0x2808a4(0x24f)])return'';if(_0x57a6a6)return ae(_0x3d59c7,null);let _0x2689b9=await jt(_0x3d59c7,_0xe58069);return _0x2689b9?ae(_0x3d59c7,_0x2689b9):'';}function Q(){const _0x19c1c4=_0x49b867;return _0x4bc4ca[_0x19c1c4(0x2ea)](process.env.HOME||process.env.USERPROFILE||'','.aria','auth.json');}function B(_0x46e9d3){const _0x21410e=_0x49b867;try{let _0x8acf06=JSON[_0x21410e(0x22b)](_0x8a14ae[_0x21410e(0x1e8)](_0x46e9d3,'utf-8'));return!_0x8acf06[_0x21410e(0x1dc)]||!_0x8acf06[_0x21410e(0x306)]||!_0x8acf06['organizationId']?null:_0x8acf06;}catch{return null;}}function Mt(){const _0x37a928=_0x49b867;let _0x314c6d=[{'file':_0x120978(),'isDesktopFallback':!0x1},{'file':Q(),'isDesktopFallback':!0x0}];for(let _0x2c5f09 of _0x314c6d){let _0x10912b=B(_0x2c5f09[_0x37a928(0x1b4)]);if(_0x10912b)return{..._0x2c5f09,'auth':_0x10912b};}return null;}async function Bt(){const _0x28bc4f=_0x49b867;let _0x1e916f=_0x120978();if(!_0x8a14ae[_0x28bc4f(0x19c)](_0x1e916f)){let _0x410bff=Q();console[_0x28bc4f(0x296)](B(_0x410bff)?'No\x20CLI\x20login\x20found.\x20Note:\x20the\x20CLI\x20is\x20currently\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20'+_0x410bff+_0x28bc4f(0x2cd):'No\x20CLI\x20login\x20found\x20—\x20nothing\x20to\x20remove.');return;}_0x8a14ae[_0x28bc4f(0x144)](_0x1e916f),console[_0x28bc4f(0x296)](_0x28bc4f(0x288)+_0x1e916f);}async function Ht(_0x4f4a57){const _0x4cc8c2=_0x49b867;let _0x372143=q(),_0xcad92a,_0x58cce8;if(_0x372143)_0xcad92a=_0x372143,_0x58cce8='environment\x20variables\x20(AUTH_TOKEN/TENANT_ID/ORG_ID)';else{let _0x3e6fca=Mt();if(!_0x3e6fca)throw new Error(Se);_0xcad92a=_0x3e6fca['auth'],_0x58cce8=_0x3e6fca[_0x4cc8c2(0x153)]?_0x3e6fca[_0x4cc8c2(0x1b4)]+_0x4cc8c2(0x1c8):_0x3e6fca[_0x4cc8c2(0x1b4)];}let _0x17bbca={'source':_0x58cce8,'baseUrl':_0xcad92a[_0x4cc8c2(0x1ab)]??null,'deployment':Jt(_0xcad92a[_0x4cc8c2(0x1ab)]),'organization':{'id':_0xcad92a[_0x4cc8c2(0x285)],'slug':_0xcad92a[_0x4cc8c2(0x277)]??null},'tenant':{'id':_0xcad92a[_0x4cc8c2(0x306)],'name':_0xcad92a[_0x4cc8c2(0x287)]??null},'tokenExpiresAt':_0xcad92a[_0x4cc8c2(0x17e)]?new Date(_0xcad92a[_0x4cc8c2(0x17e)]*0x3e8)[_0x4cc8c2(0x13f)]():null};u(_0x4f4a57,_0x17bbca,()=>{const _0x581028=_0x4cc8c2;let _0x43a260=[_0x581028(0x322)+_0x58cce8,_0x581028(0x26d)+(_0xcad92a[_0x581028(0x1ab)]??'unknown'),_0x581028(0x13e)+_0x17bbca['deployment'],'Organization:\x20'+(_0xcad92a[_0x581028(0x277)]??_0x581028(0x145))+'\x20('+_0xcad92a[_0x581028(0x285)]+')','Tenant:\x20\x20\x20\x20\x20\x20\x20'+(_0xcad92a['tenantName']??'unknown\x20slug')+'\x20('+_0xcad92a[_0x581028(0x306)]+')'];if(_0xcad92a['expiresAt']){let _0x372df4=_0xcad92a[_0x581028(0x17e)]-Math[_0x581028(0x158)](Date['now']()/0x3e8);_0x43a260[_0x581028(0x254)](_0x372df4>0x0?'Token:\x20\x20\x20\x20\x20\x20\x20\x20expires\x20'+_0x17bbca['tokenExpiresAt']+_0x581028(0x314)+Math[_0x581028(0x29e)](_0x372df4/0x3c)+_0x581028(0x2f3):_0x581028(0x206)+_0x17bbca['tokenExpiresAt']);}process['stdout'][_0x581028(0x1dd)](_0x43a260[_0x581028(0x2ea)]('\x0a')+'\x0a');});}var Se=_0x49b867(0x20a);function Jt(_0x2e590c){const _0x257870=_0x49b867;return _0x2e590c?_0xea748(_0x2e590c)?_0x257870(0x2a8):_0x257870(0x241):_0x257870(0x1d7);}function q(){let _0x18bbcf=process.env.AUTH_TOKEN_FILE;return(process.env.AUTH_TOKEN||_0x18bbcf)&&process.env.TENANT_ID&&process.env.ORG_ID?{'accessToken':_0x18bbcf?Gt(_0x18bbcf):process.env.AUTH_TOKEN,..._0x18bbcf?{'accessTokenFile':_0x18bbcf}:{},'tenantId':process.env.TENANT_ID,'organizationId':process.env.ORG_ID,'orgLogicalName':process.env.ORG_SLUG,'tenantName':process.env.TENANT_SLUG,'baseUrl':Ae()}:null;}function Gt(_0x499aa9){const _0x4c9e79=_0x49b867;let _0x3166fe;try{_0x3166fe=_0x8a14ae['readFileSync'](_0x499aa9,_0x4c9e79(0x293))[_0x4c9e79(0x272)]();}catch(_0x364ade){throw new Error(_0x4c9e79(0x1e2)+_0x499aa9+'\x27\x20cannot\x20be\x20read:\x20'+_0x364ade['message']);}let _0x5ce8da=_0x3166fe[_0x4c9e79(0x2af)]('Bearer\x20')?_0x3166fe['slice'](0x7)[_0x4c9e79(0x272)]():_0x3166fe;if(!_0x5ce8da)throw new Error(_0x4c9e79(0x1e2)+_0x499aa9+_0x4c9e79(0x143));return _0x5ce8da;}function Ae(){const _0x29bbd6=_0x49b867;let _0x1ca5a8=process.env.UIPATH_BASE_URL;if(!_0x1ca5a8)return;let _0x38e2fc=_0x358f10(_0x1ca5a8);if(_0x38e2fc['ok']===!0x1)throw new Error(_0x29bbd6(0x1d8)+_0x2963b2(_0x1ca5a8,_0x38e2fc[_0x29bbd6(0x1ca)]));return _0x38e2fc[_0x29bbd6(0x1ab)];}async function z(){let _0x2113fb=q();if(_0x2113fb)return _0x2113fb;let _0x27b6ee=await _0x340b7f();if(_0x27b6ee)return _0x27b6ee;throw new Error(Se);}async function Wt(){const _0x44f1c7=_0x49b867;await new _0x3e3f31()[_0x44f1c7(0x240)]({'force':!0x0}),console['log'](_0x44f1c7(0x27a));}function Y(_0x172ee1,_0x790b7d,_0xcf5958){const _0x1e2eca=_0x49b867;_0x172ee1?process['stderr'][_0x1e2eca(0x1dd)]('[env='+_0x172ee1+_0x1e2eca(0x28c)+_0xcf5958+'\x0a'):!_0x790b7d&&!process.env.BACKEND_URL&&process['stderr'][_0x1e2eca(0x1dd)](_0x1e2eca(0x1db)+_0xcf5958+'\x0a');}async function S(_0x1fc5a0){const _0x557668=_0x49b867;let _0x13ec17=await z(),_0x485ddd=_0x2132c2(_0x1fc5a0[_0x557668(0x189)],_0x13ec17,_0x1fc5a0[_0x557668(0x1f1)]);return Y(_0x1fc5a0[_0x557668(0x189)],_0x1fc5a0[_0x557668(0x1f1)],_0x485ddd),{'auth':_0x13ec17,'backendUrl':_0x485ddd,'client':_0x3ee6ac({'auth':_0x13ec17,'backendUrl':_0x485ddd})};}async function Kt(_0x30a6dd){const _0xfc31f4=_0x49b867;let {client:_0x2f22a9}=await S(_0x30a6dd),[_0x2eff5a,_0x2e80f9]=await Promise[_0xfc31f4(0x161)]([_0x363d09(_0x2f22a9),_0x13b0b0(_0x2f22a9)[_0xfc31f4(0x2ce)](_0xb8aa2b=>(process['stderr'][_0xfc31f4(0x1dd)](_0xfc31f4(0x2b2)+(_0xb8aa2b instanceof Error?_0xb8aa2b['message']:String(_0xb8aa2b))+'\x0a'),{}))]),_0x381571=_0x2eff5a['map'](_0x4d374c=>_0x2e80f9[_0x4d374c['id']]?{..._0x4d374c,'byoWarning':_0x2e80f9[_0x4d374c['id']]}:_0x4d374c);u(_0x30a6dd,_0x381571,Qt);}function Qt(_0x1ba5d0){const _0x4b3a3a=_0x49b867;if(_0x1ba5d0[_0x4b3a3a(0x2aa)]===0x0){process['stderr'][_0x4b3a3a(0x1dd)](_0x4b3a3a(0x1e0));return;}process[_0x4b3a3a(0x283)][_0x4b3a3a(0x1dd)](_0x4b3a3a(0x1bd)+_0x1ba5d0[_0x4b3a3a(0x2aa)]+'):\x0a\x0a');for(let _0x1e40ed of _0x1ba5d0){let _0x3e9886=_0x1e40ed[_0x4b3a3a(0x1ae)]&&_0x1e40ed['name']!==_0x1e40ed['id']?'\x20('+_0x1e40ed[_0x4b3a3a(0x1ae)]+')':'';process[_0x4b3a3a(0x283)][_0x4b3a3a(0x1dd)]('\x20\x20'+_0x1e40ed['id']+_0x3e9886+'\x0a'),_0x1e40ed[_0x4b3a3a(0x1e5)]&&process[_0x4b3a3a(0x283)][_0x4b3a3a(0x1dd)]('\x20\x20\x20\x20'+_0x1e40ed[_0x4b3a3a(0x1e5)]+'\x0a'),_0x1e40ed[_0x4b3a3a(0x185)]&&process['stdout'][_0x4b3a3a(0x1dd)]('\x20\x20\x20\x20Not\x20available\x20on\x20this\x20plan'+(_0x1e40ed[_0x4b3a3a(0x1b7)]?'\x20('+_0x1e40ed[_0x4b3a3a(0x1b7)]+')':'')+'\x0a'),_0x1e40ed[_0x4b3a3a(0x1e3)]&&process[_0x4b3a3a(0x283)][_0x4b3a3a(0x1dd)]('\x20\x20\x20\x20BYO\x20warning:\x20'+_0x1e40ed['byoWarning']+'\x0a');}process[_0x4b3a3a(0x283)][_0x4b3a3a(0x1dd)]('\x0aUse\x20with:\x20delegate-cli\x20--model\x20<id>\x20\x22<prompt>\x22\x0a');}var le=[_0x49b867(0x2b8),'show',_0x49b867(0x195),'delete',_0x49b867(0x152),_0x49b867(0x230)];async function qt(_0x3881ce){const _0x762cda=_0x49b867;let [_0x1c4a27='',_0x4499eb='',..._0x1069a2]=_0x3881ce[_0x762cda(0x1bc)];if(_0x1c4a27&&!le['includes'](_0x1c4a27)&&(console[_0x762cda(0x1c6)](_0x762cda(0x30b)+_0x1c4a27+'.\x20Use:\x20'+le[_0x762cda(0x2ea)]('\x20|\x20')+'.'),process[_0x762cda(0x15b)](0x2)),_0x3881ce[_0x762cda(0x2f1)]!==void 0x0&&_0x1c4a27!=='cancel'&&(console['error']('--turn\x20applies\x20to\x20`delegate-cli\x20sessions\x20cancel`\x20only.'),process[_0x762cda(0x15b)](0x2)),_0x1c4a27&&_0x1c4a27!==_0x762cda(0x2b8)){await zt(_0x3881ce,_0x1c4a27,_0x4499eb,_0x1069a2[_0x762cda(0x2ea)]('\x20')[_0x762cda(0x272)]());return;}_0x3881ce['operands'][_0x762cda(0x2aa)]>0x1&&(console[_0x762cda(0x1c6)](_0x762cda(0x220)),process[_0x762cda(0x15b)](0x2));let {client:_0x4cb5f5}=await S(_0x3881ce),_0x120fd3=await _0xef97f2(_0x4cb5f5,{'page':_0x3881ce[_0x762cda(0x21f)],'pageSize':_0x3881ce[_0x762cda(0x269)],'includeSubAgents':_0x3881ce[_0x762cda(0x22f)]});u(_0x3881ce,_0x120fd3,Zt);}async function zt(_0x33fbf9,_0x6e9b60,_0x84c525,_0x25db1a){const _0x2cfc3c=_0x49b867;if((_0x33fbf9[_0x2cfc3c(0x21f)]!==void 0x0||_0x33fbf9[_0x2cfc3c(0x269)]!==void 0x0||_0x33fbf9[_0x2cfc3c(0x22f)])&&(console[_0x2cfc3c(0x1c6)](_0x2cfc3c(0x1fa)),process[_0x2cfc3c(0x15b)](0x2)),_0x6e9b60===_0x2cfc3c(0x152)){await Vt(_0x33fbf9,_0x84c525,_0x25db1a);return;}if(_0x6e9b60===_0x2cfc3c(0x230)){await Xt(_0x33fbf9,_0x84c525,_0x25db1a);return;}(!_0x84c525||_0x6e9b60===_0x2cfc3c(0x195)!=!!_0x25db1a)&&(console[_0x2cfc3c(0x1c6)](_0x2cfc3c(0x2ab)+_0x6e9b60+_0x2cfc3c(0x2e7)+(_0x6e9b60===_0x2cfc3c(0x195)?_0x2cfc3c(0x2e5):'')),process[_0x2cfc3c(0x15b)](0x2));let {client:_0x11a7c2}=await S(_0x33fbf9);try{if(_0x6e9b60==='show'){let _0x1138f1=await _0xb9c791(_0x11a7c2,_0x84c525);_0x1138f1||ce(_0x84c525),u(_0x33fbf9,_0x1138f1,Yt);}else{if(_0x6e9b60==='rename'){let _0xff1bec=await _0x23b06d(_0x11a7c2,_0x84c525,_0x25db1a);u(_0x33fbf9,_0xff1bec,_0x3b49c2=>{const _0x2b933a=_0x2cfc3c;process[_0x2b933a(0x283)][_0x2b933a(0x1dd)](_0x2b933a(0x2c5)+_0x3b49c2['id']+':\x20'+_0x3b49c2[_0x2b933a(0x22c)]+'\x0a');});}else await _0x553d68(_0x11a7c2,_0x84c525),await _0x4f884f(_0x84c525,_0x33fbf9[_0x2cfc3c(0x1ad)]),u(_0x33fbf9,{'id':_0x84c525,'deleted':!0x0},_0x462bd5=>{const _0x3a4765=_0x2cfc3c;process['stdout'][_0x3a4765(0x1dd)](_0x3a4765(0x1f7)+_0x462bd5['id']+'.\x0a');});}}catch(_0x37bfc1){if(!_0x2910dd(_0x37bfc1,0x194))throw _0x37bfc1;ce(_0x84c525);}}function ce(_0x196b84){const _0x40b19f=_0x49b867;console[_0x40b19f(0x1c6)](_0x40b19f(0x196)+_0x196b84+_0x40b19f(0x173)),process[_0x40b19f(0x15b)](0x1);}function Yt(_0x57c8ad){const _0x4e2ef3=_0x49b867;process[_0x4e2ef3(0x283)][_0x4e2ef3(0x1dd)]('ID\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x57c8ad['id']+'\x0a'),process[_0x4e2ef3(0x283)]['write'](_0x4e2ef3(0x184)+_0x57c8ad[_0x4e2ef3(0x22c)]+'\x0a'),process[_0x4e2ef3(0x283)]['write'](_0x4e2ef3(0x18d)+_0x57c8ad[_0x4e2ef3(0x266)]+'\x0a'),process[_0x4e2ef3(0x283)][_0x4e2ef3(0x1dd)]('Organization\x20\x20'+_0x57c8ad['organizationId']+'\x0a'),_0x57c8ad[_0x4e2ef3(0x1ea)]&&process[_0x4e2ef3(0x283)][_0x4e2ef3(0x1dd)](_0x4e2ef3(0x24c)+_0x57c8ad[_0x4e2ef3(0x1ea)]+'\x0a');}async function Vt(_0x2dfc8a,_0x24eccf,_0x5656d1){const _0x5f2f2b=_0x49b867;(!_0x24eccf||_0x5656d1||!_0x2dfc8a[_0x5f2f2b(0x2f1)])&&(console[_0x5f2f2b(0x1c6)]('Usage:\x20delegate-cli\x20sessions\x20cancel\x20<session-id>\x20--turn\x20<turn-id>'),process[_0x5f2f2b(0x15b)](0x2));let {client:_0x53f361}=await S(_0x2dfc8a),_0x376d84=await _0x5435c8(_0x53f361,_0x24eccf,_0x2dfc8a[_0x5f2f2b(0x2f1)]);u(_0x2dfc8a,{'sessionId':_0x24eccf,'turnId':_0x2dfc8a['turnId'],'cancelled':_0x376d84},_0x43ff3b=>{const _0x48c16e=_0x5f2f2b;_0x43ff3b[_0x48c16e(0x198)]?process[_0x48c16e(0x283)][_0x48c16e(0x1dd)](_0x48c16e(0x19a)+_0x43ff3b[_0x48c16e(0x2f1)]+_0x48c16e(0x2a2)+_0x43ff3b[_0x48c16e(0x188)]+'.\x0a'):process[_0x48c16e(0x227)][_0x48c16e(0x1dd)](_0x48c16e(0x249)+_0x43ff3b[_0x48c16e(0x2f1)]+_0x48c16e(0x26e)+_0x43ff3b[_0x48c16e(0x188)]+'.\x0a');}),_0x376d84||(process[_0x5f2f2b(0x182)]=0x1);}async function Xt(_0x3dcebc,_0x2c5d73,_0x414a2d){const _0x5f5c06=_0x49b867;(!_0x2c5d73||/\s/[_0x5f5c06(0x14e)](_0x414a2d))&&(console[_0x5f5c06(0x1c6)](_0x5f5c06(0x19d)),process['exit'](0x2));let {client:_0x363d1c}=await S(_0x3dcebc),_0x7f2a9;try{_0x7f2a9=await _0x45354a(_0x363d1c,_0x2c5d73,{'atMessageId':_0x414a2d||void 0x0});}catch(_0x2b4cf8){if(!_0x2910dd(_0x2b4cf8,0x194))throw _0x2b4cf8;console[_0x5f5c06(0x1c6)](_0x5f5c06(0x196)+_0x2c5d73+'\x20not\x20found,\x20has\x20no\x20messages'+(_0x414a2d?',\x20or\x20holds\x20no\x20message\x20'+_0x414a2d:'')+'.'),process['exit'](0x1);}u(_0x3dcebc,_0x7f2a9,_0x6a4b5b=>{const _0x281c3d=_0x5f5c06;process['stdout'][_0x281c3d(0x1dd)]('Forked\x20'+_0x2c5d73+'\x20into\x20'+_0x6a4b5b['id']+'.\x0a'),process[_0x281c3d(0x227)][_0x281c3d(0x1dd)](_0x281c3d(0x291)+_0x6a4b5b['id']+_0x281c3d(0x2f0));});}function Zt({sessions:_0x370799,page:_0x50b441,isLastPage:_0x3f7b65}){const _0x56d8f2=_0x49b867;if(_0x370799[_0x56d8f2(0x2aa)]===0x0)process[_0x56d8f2(0x227)]['write'](_0x56d8f2(0x309)+_0x50b441+'.\x0a');else{process['stdout'][_0x56d8f2(0x1dd)]('ID'['padEnd'](0x24)+'\x20\x20'+_0x56d8f2(0x237)['padEnd'](0x13)+'\x20\x20TITLE\x0a');for(let _0x5e7fee of _0x370799){let _0x403210=_0x5e7fee['updatedAt'][_0x56d8f2(0x2c9)]('T','\x20')[_0x56d8f2(0x28d)](0x0,0x13),_0x47b727=_0x5e7fee[_0x56d8f2(0x1ba)]?_0x56d8f2(0x1bf)+_0x5e7fee[_0x56d8f2(0x1ba)]+')':'';process[_0x56d8f2(0x283)][_0x56d8f2(0x1dd)](_0x5e7fee['id'][_0x56d8f2(0x137)](0x24)+'\x20\x20'+_0x403210[_0x56d8f2(0x137)](0x13)+'\x20\x20'+_0x5e7fee[_0x56d8f2(0x22c)]+_0x47b727+'\x0a');}}_0x3f7b65||process[_0x56d8f2(0x227)][_0x56d8f2(0x1dd)]('More:\x20delegate-cli\x20sessions\x20--page\x20'+(_0x50b441+0x1)+'\x0a');}async function en(_0x16984b){const _0x11ec94=_0x49b867;let _0x7802b5=await z(),_0x2f057b=_0x2132c2(_0x16984b[_0x11ec94(0x189)],_0x7802b5,_0x16984b[_0x11ec94(0x1f1)]);Y(_0x16984b['env'],_0x16984b[_0x11ec94(0x1f1)],_0x2f057b);let _0x49c623=await _0x4af573({'auth':_0x7802b5,'backendUrl':_0x2f057b,'interop':_0x16984b['headless']?_0x11ec94(0x315):'spawn'});u(_0x16984b,_0x49c623,({checks:_0x13676c})=>{const _0x42613b=_0x11ec94;for(let _0x50ee03 of _0x13676c)process[_0x42613b(0x283)][_0x42613b(0x1dd)](tn(_0x50ee03)+'\x0a');}),_0x49c623['ok']||process['exit'](0x1);}function tn(_0x322c45){const _0x28290f=_0x49b867;return{'ok':'✓','failed':'✗','skipped':'-'}[_0x322c45[_0x28290f(0x15e)]]+'\x20'+_0x322c45['name'][_0x28290f(0x137)](0xa)+_0x322c45[_0x28290f(0x31b)];}function _0x414a(){const _0x5bae56=['--cartographer','test','session_start','--session','Spending:\x20\x20\x20\x20\x20$','cancel','isDesktopFallback','--cartographer\x20runs\x20the\x20','line','\x0aAccept\x20one\x20with:\x20delegate-cli\x20delegations\x20accept\x20<id>\x0a','No\x20one\x20matches\x20\x22','floor','Tenant\x20not\x20switched:\x20could\x20not\x20write\x20','\x20PU\x20beyond\x20quota','exit','getSessionId','a\x20session\x20id','status','73992MTieLO','>.\x0a','all','\x20days.\x0a','Session:\x20','--days\x20applies\x20to\x20`delegate-cli\x20usage\x20activity|daily`;\x20the\x20summary\x20covers\x20the\x20current\x20month.','turn_start','contextSummary','Task\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','taskAutomation','delegations\x20dismiss\x20<delegation-id>','.\x20Share:\x20','),\x20','findIndex','models_breakdown','\x20\x20(input\x20#','off','The\x20saved\x20CLI\x20login\x20could\x20not\x20be\x20refreshed.\x20Run\x20`delegate-cli\x20login`\x20again.','--headless','\x20--turn\x20','\x20not\x20found.','\x20(cancel\x20with:\x20delegate-cli\x20sessions\x20cancel\x20','whoami','Input\x20closed\x20before\x20the\x20question\x20was\x20answered.','subcommand','localhost','optional','Usage:\x20delegate-cli\x20org-users\x20<name\x20or\x20email\x20prefix>','endQuestions','5668080dSEEGO','There\x20is\x20no\x20terminal\x20input\x20to\x20answer\x20from.','expiresAt','Claimed\x20from\x20delegation\x20','help','options','exitCode','No\x20usage\x20in\x20the\x20last\x20','Title\x20\x20\x20\x20\x20\x20\x20\x20\x20','locked','No\x20CLI\x20login\x20to\x20switch:\x20the\x20CLI\x20is\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20','bucket','sessionId','env','unit','\x20requires\x20','a\x20directory\x20path','Owner\x20\x20\x20\x20\x20\x20\x20\x20\x20','dismissed','--attach:\x20no\x20such\x20file\x20or\x20folder:\x20','delegations\x20list\x20<backend-project-id>','--tenant','\x20-\x20','--tenant\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Switch\x20tenants\x20with:\x20delegate-cli\x20tenant\x20<name>','skipEnvCheck','rename','Session\x20','12zIqrZP','cancelled','hide','Cancel\x20requested\x20for\x20turn\x20','--url\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Other\x20commands\x20follow\x20the\x20saved\x20login,\x20or\x20--backend\x20<url>.','existsSync','Usage:\x20delegate-cli\x20sessions\x20fork\x20<id>\x20[<message-id>]','\x20(estimated\x20$','delegation','readLine','url','delegations\x20create\x20--session\x20<id>\x20[--to\x20<email|name>]\x20[--summary\x20<text>]\x20\x22<task>\x22|-','\x20(no\x20cap\x20enforced)','removeEventListener','--attach\x20applies\x20to\x20prompts\x20only.','pause','a\x20skill\x20name','Invalid\x20--effort:\x20','delegations','probability','baseUrl','string','workingDirectory','name','543403wBCBSM','kind','text','\x20or\x20your\x20own\x20answer','refused','file','effort','forEach','lockReason',').\x0a','verdict','parentSessionId','padStart','operands','\x0aAvailable\x20models\x20(','email','\x20\x20(sub-agent\x20of\x20','\x20(stdin\x20was\x20empty)','tool_call','Turn:\x20','Enter\x20sends\x20a\x20message.\x20/exit\x20or\x20EOF\x20exits;\x20Ctrl+C\x20stops\x20and\x20exits.\x0a','Use:\x20delegate-cli\x20delegations\x20','noConnections','error','total_completion_tokens','\x20(Delegate\x20desktop\x20app\x20fallback)','claim','rejection','buckets','xhigh','a\x20file\x20path','every','lastType','\x20to\x20','model','\x20this\x20month','--json-schema\x20applies\x20to\x20prompts\x20and\x20to\x20`delegate-cli\x20complete`\x20only.','tool','isError','Missing\x20prompt.\x20Pass\x20it\x20as\x20an\x20argument,\x20pipe\x20it\x20via\x20stdin,\x20or\x20run\x20`delegate-cli\x20--help`.','unknown','UIPATH_BASE_URL\x20is\x20unusable.\x20','Invalid\x20--env:\x20','\x20prompt,\x20','[saved\x20login]\x20Backend\x20URL:\x20','accessToken','write','stdin','daily_usage','No\x20models\x20available\x20for\x20this\x20product/tenant.\x0a','\x20(resume\x20with\x20--session\x20','AUTH_TOKEN_FILE\x20\x27','byoWarning','rubric_version','description','active_days','done','readFileSync','model_version','delegationId','sessions','.\x20Drop\x20one\x20of\x20the\x20two.','pending','--version','--no-computer-use','--to,\x20--summary\x20and\x20--session\x20apply\x20to\x20`delegate-cli\x20delegations\x20create`\x20only.','backendUrl','--task-automation','Created\x20delegation\x20','--to','--working-dir','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','Deleted\x20session\x20','limit_enabled','\x20|\x20','--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`delegate-cli\x20sessions\x20[list]`\x20only.','The\x20turn\x20was\x20cancelled.','--verbose','interopPath','cartographer','\x20days:\x20','complete','\x20is\x20required.\x0a','a\x20turn\x20id','daily','Something\x20else','keys','Token:\x20\x20\x20\x20\x20\x20\x20\x20expired\x20','isFinite','bundledSkillsPath','Your\x20answer\x20(Enter\x20to\x20skip):\x20','No\x20auth\x20found.\x20Set\x20AUTH_TOKEN\x20(or\x20AUTH_TOKEN_FILE)/TENANT_ID/ORG_ID\x20env\x20vars,\x20or\x20run\x20`delegate-cli\x20login\x20--env\x20<alpha|staging|production>`\x20(or\x20`--url\x20<deployment-url>`\x20for\x20Automation\x20Suite)\x20first.','response','days','multiSelect','the\x20request','show','--interop','1zppfgw','usage','onEvent','toString','runnerUrl','ASSIGNEE','total_prompt_tokens','choice','--no-connections','--json-schema','questions','oneTurn','resume','--tenant\x20requires\x20a\x20tenant\x20name.','page','Usage:\x20delegate-cli\x20sessions\x20[list]\x20[--page\x20N]\x20[--limit\x20N]\x20[--include-subagents]','deleted','includes','\x20completion','delegations\x20show\x20<delegation-id|delegate://delegation/…>','total_quota_pu','activity','stderr','a\x20project\x20id','min','map','parse','title','shift','--days','includeSubAgents','fork','some','%\x20of\x20','isArray','stringify','✓\x20Done\x0a','bind','UPDATED','cleanup','prompt','stream-json','Model\x20','\x20must\x20be\x20a\x20JSON\x20object.','--limit','medium','login','stop','self-hosted\x20(Automation\x20Suite\x20/\x20Dedicated)','monthly_spend_usd','noSecurity','typed','No\x20answers\x20awaiting\x20acceptance.\x0a','alpha','vertical','.\x20Use\x20`delegate-cli\x20usage`,\x20`usage\x20activity`\x20or\x20`usage\x20daily`.','No\x20turn\x20','\x20<file.json>,\x20or\x20-\x20to\x20read\x20stdin.','delegations\x20complete\x20<delegation-id>\x20\x22<answer>\x22|-','Delegation\x20\x20\x20\x20','verbose','entries','isTTY','--model','erase','From\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','input','push','abort','label','print','/exit','delegations\x20cancel\x20<delegation-id>','subFields','--no-memory','--worker-id','\x20(resets\x20','toUpperCase','data','origin','probability\x20','Tokens:\x20','--task-automation\x20applies\x20to\x20prompts\x20only.','items','extra_pool_consumed_pu','userId','sourceTitle','Rubric\x20','limit','--include-subagents','Unknown\x20delegations\x20action:\x20','package.json','Base\x20URL:\x20\x20\x20\x20\x20','\x20in\x20progress\x20on\x20session\x20','restore','add','resolve','trim','Session\x20\x20\x20\x20\x20\x20\x20','aborted','structuredError','\x22.\x0a','orgLogicalName','content','version','Interop\x20stopped\x20(if\x20it\x20was\x20running).','setPrompt','--attach','answers','\x20\x22<prompt>\x22\x0aAnswer\x20with:\x20delegate-cli\x20delegations\x20complete\x20','\x20(current)','You>\x20','complete\x20needs\x20a\x20prompt:\x20delegate-cli\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22,\x20or\x20-\x20to\x20read\x20stdin.','a\x20JSON\x20schema\x20file','stdout','outputFormat','organizationId','assignedUserEmail','tenantName','Removed\x20','\x20\x22<answer>\x22\x0a','header','--env',']\x20Backend\x20URL:\x20','slice','headless','concat','Enter\x20one\x20number\x20from\x201\x20to\x20','Continue\x20it\x20with:\x20delegate-cli\x20--session\x20','No\x20structured\x20output:\x20the\x20turn\x20failed\x20(','utf-8','🔧\x20','end','log','keepAlive','noMemory','structured',']\x20(Enter\x20for\x20','\x20applies\x20to\x20prompts\x20and\x20to\x20these\x20commands\x20only:\x20','\x20vertical,\x20so\x20it\x20cannot\x20run\x20as\x20--vertical\x20','message','round','24cgjQeq','initialize','--preload-skill','\x20of\x20session\x20','delegate-cli','Number','accept','period_days','rerank','UiPath\x20Cloud','task','length','Usage:\x20delegate-cli\x20sessions\x20','633362YvyKHq',',\x20whose\x20tenant\x20is\x20chosen\x20in\x20the\x20app.\x20Run\x20`delegate-cli\x20login\x20--env\x20<env>`\x20for\x20a\x20CLI\x20login\x20of\x20your\x20own.',':\x20cannot\x20read\x20the\x20JSON\x20schema\x20(','startsWith','1264190AsSIwI','Usage:\x20delegate-cli\x20','Could\x20not\x20check\x20BYO\x20model\x20warnings:\x20','--turn\x20applies\x20to\x20`delegate-cli\x20sessions\x20cancel`\x20only.','Enter\x20numbers\x20from\x201\x20to\x20','intro','noComputerUse','total_cost_usd','list','--vertical','confidence','fields','SIGINT','--print','type','low','create','\x20must\x20be\x20a\x20whole\x20number\x20','a\x20deployment\x20URL,\x20e.g.\x20https://automationsuite.contoso.com','workerId','complete\x20needs\x20--json-schema\x20<file>:\x20delegate-cli\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22.','Renamed\x20','alreadyAccepted','thinking','mode','replace',')\x20—\x20saved\x20to\x20','tenant','default','\x20—\x20sign\x20out\x20in\x20the\x20Delegate\x20app\x20to\x20clear\x20that.','catch','an\x20effort\x20tier','\x20active\x20days','a\x20number','argv','\x20delegation\x20',':\x20bucket\x20number\x20(Enter\x20to\x20leave\x20out):\x20','\x20(optional)','a\x20format\x20(','logout','--cleanup','--runner-url','--output-format','--env\x20localhost\x20has\x20no\x20OAuth\x20flow;\x20pick\x20alpha,\x20staging,\x20or\x20production.','total_tokens','check','\x20(Enter\x20to\x20skip):\x20','cwd','\x20PU','staging','isInteger','models','\x20token\x20units','\x20<title>','926910plbaLp','\x20<id>','addEventListener',':\x20cannot\x20read\x20the\x20request\x20(','join','\x20cap','Switch\x20with:\x20delegate-cli\x20tenant\x20<name>\x0a','prompt_tokens','evaluate','projectId','\x20\x22<prompt>\x22\x0a','turnId','destroy','\x20min)','index','Invalid\x20--output-format:\x20','transcribe:\x20cannot\x20read\x20','org-users','Invalid\x20--project:\x20\x22','a\x20briefing\x20text','preloadSkills','object','96rhQFJe','token_units','step','attachments','question','\x0a🤔\x20','pct_used','a\x20vertical\x20id','Unknown\x20flag:\x20','toFixed','tenantId','signal','results','No\x20sessions\x20on\x20page\x20','delegations\x20accept\x20<delegation-id>','Unknown\x20sessions\x20action:\x20','Date\x20\x20\x20\x20\x20\x20\x20\x20Token\x20units\x20\x20Prompt\x20tokens\x20\x20Completion\x20tokens','Unknown\x20usage\x20view:\x20','--page','filter','\x20from\x20','Cost:\x20\x20\x20$','quiet','alreadyCompleted','\x20(in\x20','skip','):\x20','a\x20colleague','\x0a⚠️\x20\x20Auth\x20expired.\x20Opening\x20browser\x20to\x20re-login…\x0a','pendingResults','\x20\x20TASK\x0a','detail','sendMessage','from','\x20\x20from\x20','--to\x20and\x20--summary\x20apply\x20to\x20`delegate-cli\x20delegations\x20create`\x20only.','Delegated\x20','verify','Source:\x20\x20\x20\x20\x20\x20\x20','monthly_limit_usd','transcribe','delete','.\x20Use\x20','81NygKBq','padEnd','session_consumed_pu','code','result','max','delegateTo','total_token_units','Deployment:\x20\x20\x20','toISOString','\x20(confidence\x20','Pass\x20either\x20--env\x20(a\x20named\x20cloud)\x20or\x20--url\x20(any\x20other\x20deployment),\x20not\x20both.','stack','\x27\x20is\x20empty.','rmSync','unknown\x20slug','total_sessions','4700036IOZUwc','--skip-env-check','Already\x20accepted','deepLink','jsonSchemaPath','once'];_0x414a=function(){return _0x5bae56;};return _0x414a();}var nn=['',_0x49b867(0x226),_0x49b867(0x203)];async function on(_0x1619f4){const _0x5b5bf9=_0x49b867;let _0x49beae=_0x1619f4[_0x5b5bf9(0x239)];nn[_0x5b5bf9(0x222)](_0x49beae)||(console[_0x5b5bf9(0x1c6)](_0x5b5bf9(0x30d)+_0x1619f4[_0x5b5bf9(0x239)]+_0x5b5bf9(0x248)),process[_0x5b5bf9(0x15b)](0x2)),_0x49beae===''&&_0x1619f4[_0x5b5bf9(0x20c)]!==void 0x0&&(console[_0x5b5bf9(0x1c6)](_0x5b5bf9(0x164)),process[_0x5b5bf9(0x15b)](0x2)),_0x49beae!==''&&_0x1619f4[_0x5b5bf9(0x188)]!==void 0x0&&(console[_0x5b5bf9(0x1c6)]('--session\x20applies\x20to\x20the\x20`delegate-cli\x20usage`\x20summary\x20only.'),process[_0x5b5bf9(0x15b)](0x2));let {client:_0x74a9e2}=await S(_0x1619f4);if(_0x49beae===_0x5b5bf9(0x226)){u(_0x1619f4,await _0xc119c6(_0x74a9e2,{'days':_0x1619f4[_0x5b5bf9(0x20c)]}),rn);return;}if(_0x49beae==='daily'){u(_0x1619f4,await _0x545da7(_0x74a9e2,{'days':_0x1619f4['days']}),an);return;}let [_0x165daf,_0x3c7d8e,_0x2b8bc9]=await Promise[_0x5b5bf9(0x161)]([_0x21ef48(_0x74a9e2,{'sessionId':_0x1619f4[_0x5b5bf9(0x188)]}),_0x5dbdbb(_0x74a9e2),_0x15760e(_0x74a9e2)]);u(_0x1619f4,{'licensing':_0x165daf,'monthlySpending':_0x3c7d8e,'cartographerAllowance':_0x2b8bc9},sn);}function sn(_0x4c418f){const _0x591cda=_0x49b867;let {licensing:_0x307769,monthlySpending:_0x23c224,cartographerAllowance:_0x8478f6}=_0x4c418f,_0x3572bf=[_0x307769[_0x591cda(0x1f8)]?'Licensing:\x20\x20\x20\x20'+_0x307769[_0x591cda(0x302)][_0x591cda(0x305)](0x1)+_0x591cda(0x232)+(_0x307769[_0x591cda(0x225)]??0x0)+'\x20PU\x20used'+(_0x307769[_0x591cda(0x265)]>0x0?',\x20'+_0x307769[_0x591cda(0x265)]+_0x591cda(0x15a):'')+_0x591cda(0x25d)+_0x307769['period_end']+')':'Licensing:\x20\x20\x20\x20no\x20licensing\x20quota\x20applies',_0x591cda(0x151)+_0x23c224[_0x591cda(0x242)][_0x591cda(0x305)](0x2)+_0x591cda(0x1d2)+(_0x23c224[_0x591cda(0x1f8)]&&_0x23c224[_0x591cda(0x132)]!==null?'\x20of\x20a\x20$'+_0x23c224[_0x591cda(0x132)][_0x591cda(0x305)](0x2)+_0x591cda(0x2eb):_0x591cda(0x1a3)),'Cartographer:\x20'+_0x8478f6[_0x591cda(0x2c8)]+'\x20('+_0x8478f6['model_id']+')'];_0x307769['session_consumed_pu']!==null&&_0x307769['session_consumed_pu']!==void 0x0&&_0x3572bf['push']('Session:\x20\x20\x20\x20\x20\x20'+_0x307769[_0x591cda(0x138)]+_0x591cda(0x2e0)),process[_0x591cda(0x283)][_0x591cda(0x1dd)](_0x3572bf['join']('\x0a')+'\x0a');}function rn(_0x3bdf1f){const _0xfbceeb=_0x49b867;let _0xeb5b83=['Last\x20'+_0x3bdf1f[_0xfbceeb(0x2a6)]+_0xfbceeb(0x1ff)+_0x3bdf1f[_0xfbceeb(0x146)]+'\x20sessions\x20on\x20'+_0x3bdf1f[_0xfbceeb(0x1e6)]+_0xfbceeb(0x2d0),_0xfbceeb(0x311)+_0x3bdf1f[_0xfbceeb(0x2b7)]['toFixed'](0x2)+_0xfbceeb(0x19e)+_0x3bdf1f['estimated_cost_usd'][_0xfbceeb(0x305)](0x2)+_0xfbceeb(0x310)+_0x3bdf1f[_0xfbceeb(0x13d)]+'\x20token\x20units)',_0xfbceeb(0x262)+_0x3bdf1f[_0xfbceeb(0x217)]+_0xfbceeb(0x1da)+_0x3bdf1f[_0xfbceeb(0x1c7)]+_0xfbceeb(0x223)];for(let [_0x1ae098,_0x530e6a]of Object[_0xfbceeb(0x24e)](_0x3bdf1f[_0xfbceeb(0x16d)]))_0xeb5b83[_0xfbceeb(0x254)]('\x20\x20'+_0x1ae098+':\x20'+_0x530e6a+_0xfbceeb(0x2e4));process[_0xfbceeb(0x283)][_0xfbceeb(0x1dd)](_0xeb5b83[_0xfbceeb(0x2ea)]('\x0a')+'\x0a');}function an(_0x4f6115){const _0x2d0ab6=_0x49b867;if(_0x4f6115[_0x2d0ab6(0x1df)][_0x2d0ab6(0x2aa)]===0x0){process['stdout']['write'](_0x2d0ab6(0x183)+_0x4f6115[_0x2d0ab6(0x2a6)]+_0x2d0ab6(0x162));return;}let _0x52ad0f=[_0x2d0ab6(0x30c)];for(let _0x530369 of _0x4f6115[_0x2d0ab6(0x1df)])_0x52ad0f[_0x2d0ab6(0x254)](_0x530369['date']+'\x20\x20'+String(_0x530369[_0x2d0ab6(0x2fd)])[_0x2d0ab6(0x1bb)](0xb)+'\x20\x20'+String(_0x530369[_0x2d0ab6(0x2ed)])[_0x2d0ab6(0x1bb)](0xd)+'\x20\x20'+String(_0x530369['completion_tokens'])[_0x2d0ab6(0x1bb)](0x11));process['stdout'][_0x2d0ab6(0x1dd)](_0x52ad0f[_0x2d0ab6(0x2ea)]('\x0a')+'\x0a');}async function ln(_0x18e91d,_0x1ddbcd){const _0x2e4958=_0x49b867;let _0x407e3f=await cn(_0x18e91d[_0x2e4958(0x239)],_0x1ddbcd);_0x18e91d['model']&&(_0x407e3f[_0x2e4958(0x1d1)]=_0x18e91d[_0x2e4958(0x1d1)]);let {client:_0x112202}=await S(_0x18e91d);try{_0x1ddbcd===_0x2e4958(0x2ee)?u(_0x18e91d,await _0x234ff8(_0x112202,_0x407e3f,void 0x0),un):_0x1ddbcd==='rerank'?u(_0x18e91d,await _0x16bd74(_0x112202,_0x407e3f,void 0x0),pn):u(_0x18e91d,await _0x2ab801(_0x112202,_0x407e3f,void 0x0),mn);}catch(_0x55847a){if(!_0x5d852f(_0x55847a))throw _0x55847a;console['error'](_0x55847a[_0x2e4958(0x29d)]),process[_0x2e4958(0x15b)](0x1);}}async function cn(_0x381ff8,_0x580d20){const _0x13aa1f=_0x49b867;let _0x563282;try{_0x563282=_0x381ff8&&_0x381ff8!=='-'?_0x8a14ae[_0x13aa1f(0x1e8)](_0x4bc4ca[_0x13aa1f(0x271)](_0x381ff8),_0x13aa1f(0x293)):await M(_0x381ff8,process[_0x13aa1f(0x1de)]);}catch(_0x394c2a){console['error'](_0x580d20+_0x13aa1f(0x2e9)+_0x394c2a[_0x13aa1f(0x29d)]+').'),process['exit'](0x2);}return _0x563282||(console[_0x13aa1f(0x1c6)](_0x580d20+'\x20needs\x20a\x20JSON\x20request:\x20delegate-cli\x20'+_0x580d20+_0x13aa1f(0x24a)),process[_0x13aa1f(0x15b)](0x2)),$e(_0x563282,_0x580d20,_0x13aa1f(0x20e));}function $e(_0x1d0693,_0x3a3a25,_0xa41750){const _0xe6d6ad=_0x49b867;let _0x390a10;try{_0x390a10=JSON[_0xe6d6ad(0x22b)](_0x1d0693);}catch(_0x199662){console[_0xe6d6ad(0x1c6)](_0x3a3a25+':\x20'+_0xa41750+'\x20is\x20not\x20valid\x20JSON\x20('+_0x199662[_0xe6d6ad(0x29d)]+').'),process[_0xe6d6ad(0x15b)](0x2);}return(typeof _0x390a10!=_0xe6d6ad(0x2fb)||_0x390a10===null||Array[_0xe6d6ad(0x233)](_0x390a10))&&(console[_0xe6d6ad(0x1c6)](_0x3a3a25+':\x20'+_0xa41750+_0xe6d6ad(0x23c)),process[_0xe6d6ad(0x15b)](0x2)),_0x390a10;}function Ee(_0x5a5854,_0x38beea){const _0x4270a9=_0x49b867;let _0xcd419c;try{_0xcd419c=_0x8a14ae[_0x4270a9(0x1e8)](_0x4bc4ca[_0x4270a9(0x271)](_0x5a5854),_0x4270a9(0x293));}catch(_0x33daff){console[_0x4270a9(0x1c6)](_0x38beea+_0x4270a9(0x2ae)+_0x33daff[_0x4270a9(0x29d)]+').'),process['exit'](0x2);}return $e(_0xcd419c,_0x38beea,'the\x20JSON\x20schema');}async function dn(_0x3b1480){const _0x4e178a=_0x49b867;_0x3b1480[_0x4e178a(0x14b)]===void 0x0&&(console[_0x4e178a(0x1c6)](_0x4e178a(0x2c4)),process[_0x4e178a(0x15b)](0x2));let _0x186778=Ee(_0x3b1480[_0x4e178a(0x14b)],_0x4e178a(0x200)),_0x5dfa51=(await M(_0x3b1480[_0x4e178a(0x239)],process['stdin']))[_0x4e178a(0x272)]();_0x5dfa51||(console['error'](_0x4e178a(0x281)),process['exit'](0x2));let {client:_0x2958e9}=await S(_0x3b1480);try{let _0x1ff43c=await _0x1f69f0(_0x2958e9,{'prompt':_0x5dfa51,'jsonSchema':_0x186778,'model':_0x3b1480['model']||process.env.MODEL||_0x202468,..._0x3b1480[_0x4e178a(0x188)]!==void 0x0&&{'sessionId':_0x3b1480[_0x4e178a(0x188)]}},void 0x0);u(_0x3b1480,_0x1ff43c,_0x43c15a=>{const _0xfd2b68=_0x4e178a;process['stdout']['write'](JSON[_0xfd2b68(0x234)](_0x43c15a[_0xfd2b68(0x299)],null,0x2)+'\x0a');});}catch(_0x382e8a){if(!_0x1a1919(_0x382e8a))throw _0x382e8a;console[_0x4e178a(0x1c6)](_0x382e8a[_0x4e178a(0x29d)]),process[_0x4e178a(0x15b)](0x1);}}function V(_0x415c7b){const _0x7f5ed5=_0x49b867;process['stdout']['write'](_0x7f5ed5(0x23b)+_0x415c7b[_0x7f5ed5(0x1d1)]+'\x20('+_0x415c7b[_0x7f5ed5(0x1e9)]+_0x7f5ed5(0x16b)+_0x415c7b['usage'][_0x7f5ed5(0x2dc)]+'\x20tokens\x0a');}function un(_0x345953){const _0x32ee8d=_0x49b867;V(_0x345953);for(let _0x2ea825 of Object[_0x32ee8d(0x205)](_0x345953[_0x32ee8d(0x27d)])){let _0x1abc34=_0x345953['answers'][_0x2ea825],_0x58b947=_0x1abc34[_0x32ee8d(0x2be)]===_0x32ee8d(0x1aa)?_0x32ee8d(0x261)+_0x1abc34[_0x32ee8d(0x1aa)][_0x32ee8d(0x305)](0x2):_0x1abc34[_0x32ee8d(0x2be)]===_0x32ee8d(0x218)?'choice\x20'+_0x1abc34[_0x32ee8d(0x218)]+_0x32ee8d(0x140)+_0x1abc34[_0x32ee8d(0x2ba)][_0x32ee8d(0x305)](0x2)+')':'score\x20'+_0x1abc34['score'][_0x32ee8d(0x305)](0x2)+_0x32ee8d(0x140)+_0x1abc34[_0x32ee8d(0x2ba)]['toFixed'](0x2)+')';process[_0x32ee8d(0x283)][_0x32ee8d(0x1dd)]('\x20\x20'+_0x2ea825+':\x20'+_0x58b947+'\x0a');}}function pn(_0x54ad12){const _0x3b974e=_0x49b867;V(_0x54ad12),_0x54ad12[_0x3b974e(0x308)][_0x3b974e(0x1b6)]((_0x5929a8,_0x25044d)=>{const _0x1a4de7=_0x3b974e;process[_0x1a4de7(0x283)][_0x1a4de7(0x1dd)]('\x20\x20'+(_0x25044d+0x1)+'.\x20'+_0x5929a8['id']+'\x20\x20'+_0x5929a8['score']['toFixed'](0x3)+_0x1a4de7(0x16e)+_0x5929a8[_0x1a4de7(0x2f4)]+')\x0a');});}function mn(_0x2b93f9){const _0x43e200=_0x49b867;V(_0x2b93f9),process[_0x43e200(0x283)]['write'](_0x43e200(0x268)+_0x2b93f9[_0x43e200(0x1e4)]+'\x0a');for(let _0x2ac364 of _0x2b93f9[_0x43e200(0x308)])process[_0x43e200(0x283)][_0x43e200(0x1dd)]('\x20\x20'+_0x2ac364['id']+':\x20'+_0x2ac364[_0x43e200(0x1b9)]+_0x43e200(0x140)+_0x2ac364[_0x43e200(0x2ba)][_0x43e200(0x305)](0x2)+')\x0a');}async function fn(_0x11a4d7){const _0x576a3f=_0x49b867;let _0x535bf8=_0x11a4d7[_0x576a3f(0x239)][_0x576a3f(0x272)]();_0x535bf8||(console[_0x576a3f(0x1c6)]('transcribe\x20needs\x20audio:\x20delegate-cli\x20transcribe\x20<file>,\x20or\x20-\x20to\x20read\x20stdin.'),process['exit'](0x2));let {client:_0x90113}=await S(_0x11a4d7);try{let _0x228343=_0x535bf8==='-'?{'data':await gn(process[_0x576a3f(0x1de)])}:_0x535bf8;u(_0x11a4d7,await _0x101d0b(_0x90113,_0x228343,void 0x0),_0x459a43=>{const _0x4646ae=_0x576a3f;process['stdout'][_0x4646ae(0x1dd)](_0x459a43[_0x4646ae(0x1b1)]+'\x0a');});}catch(_0x51fe9f){if(_0x456abf(_0x51fe9f)&&(console['error'](_0x51fe9f[_0x576a3f(0x29d)]),process[_0x576a3f(0x15b)](_0x51fe9f[_0x576a3f(0x15e)]===void 0x0?0x2:0x1)),typeof _0x51fe9f?.[_0x576a3f(0x139)]!=_0x576a3f(0x1ac))throw _0x51fe9f;console[_0x576a3f(0x1c6)](_0x576a3f(0x2f6)+_0x535bf8+'\x20('+_0x51fe9f['message']+').'),process[_0x576a3f(0x15b)](0x2);}}async function gn(_0x120e9a){const _0x292f08=_0x49b867;let _0x4debe0=[];for await(let _0x1d3151 of _0x120e9a)_0x4debe0[_0x292f08(0x254)](Buffer[_0x292f08(0x31d)](_0x1d3151));return Buffer[_0x292f08(0x28f)](_0x4debe0);}var de=[_0x49b867(0x2b8),'pending',_0x49b867(0x20f),'create',_0x49b867(0x1c9),'complete','accept','dismiss',_0x49b867(0x152),'delete'],ue={'list':_0x49b867(0x190),'pending':'delegations\x20pending\x20<session-id>','show':_0x49b867(0x224),'create':_0x49b867(0x1a2),'claim':'delegations\x20claim\x20<delegation-id|delegate://delegation/…>','complete':_0x49b867(0x24b),'accept':_0x49b867(0x30a),'dismiss':_0x49b867(0x169),'cancel':_0x49b867(0x259),'delete':'delegations\x20delete\x20<delegation-id>'};async function hn(_0x22ed13){const _0x2f95a6=_0x49b867;let [_0x26a722='',_0x334974='',..._0x30be32]=_0x22ed13['operands'];de[_0x2f95a6(0x222)](_0x26a722)||(console[_0x2f95a6(0x1c6)]((_0x26a722?_0x2f95a6(0x26b)+_0x26a722+'.\x20':'')+_0x2f95a6(0x1c4)+de[_0x2f95a6(0x2ea)](_0x2f95a6(0x1f9))+'.'),process[_0x2f95a6(0x15b)](0x2));let _0x572c0f=_0x26a722;_0x572c0f!=='create'&&(_0x22ed13[_0x2f95a6(0x13c)]!==void 0x0||_0x22ed13['contextSummary']!==void 0x0||_0x22ed13['sessionId']!==void 0x0)&&(console[_0x2f95a6(0x1c6)](_0x2f95a6(0x1f0)),process[_0x2f95a6(0x15b)](0x2));let _0x2e7e77=(_0x572c0f===_0x2f95a6(0x2c0)?_0x22ed13['operands']['slice'](0x1):_0x30be32)[_0x2f95a6(0x2ea)]('\x20')['trim'](),_0x50c9a7=_0x572c0f===_0x2f95a6(0x2c0)||_0x572c0f===_0x2f95a6(0x200);(_0x572c0f!==_0x2f95a6(0x2c0)&&!_0x334974||(_0x50c9a7?!_0x2e7e77:_0x2e7e77)||_0x572c0f===_0x2f95a6(0x2c0)&&!_0x22ed13[_0x2f95a6(0x188)])&&(console[_0x2f95a6(0x1c6)](_0x2f95a6(0x2b1)+ue[_0x572c0f]),process[_0x2f95a6(0x15b)](0x2));let _0xc5a62f=_0x50c9a7&&_0x2e7e77==='-'?(await M('-',process[_0x2f95a6(0x1de)]))[_0x2f95a6(0x272)]():_0x2e7e77;_0x50c9a7&&!_0xc5a62f&&(console[_0x2f95a6(0x1c6)](_0x2f95a6(0x2b1)+ue[_0x572c0f]+_0x2f95a6(0x1c0)),process[_0x2f95a6(0x15b)](0x2));let {client:_0x432ab4}=await S(_0x22ed13);try{await yn(_0x22ed13,_0x432ab4,_0x572c0f,_0x334974,_0xc5a62f);}catch(_0xcd57ac){if(!_0x3af521(_0xcd57ac))throw _0xcd57ac;console[_0x2f95a6(0x1c6)](_0xcd57ac['message']),process[_0x2f95a6(0x15b)](0x1);}}async function yn(_0x52504b,_0x2f73c1,_0x90fd1c,_0x1a93a0,_0x23bfa8){const _0x48d2b4=_0x49b867;switch(_0x90fd1c){case _0x48d2b4(0x2b8):u(_0x52504b,await _0x247afc(_0x2f73c1,_0x1a93a0),wn);return;case _0x48d2b4(0x1ed):u(_0x52504b,await _0x37dc63(_0x2f73c1,_0x1a93a0),_0x5f9238=>{const _0xa44a4e=_0x48d2b4;_0x5f9238[_0xa44a4e(0x19f)]&&process[_0xa44a4e(0x283)][_0xa44a4e(0x1dd)](_0xa44a4e(0x17f)+_0x5f9238['delegation']['id']+'\x20('+_0x5f9238[_0xa44a4e(0x19f)]['status']+_0xa44a4e(0x1b8)),_0x5f9238[_0xa44a4e(0x319)][_0xa44a4e(0x2aa)]===0x0&&process[_0xa44a4e(0x227)][_0xa44a4e(0x1dd)](_0xa44a4e(0x245));for(let _0x22e9c3 of _0x5f9238['pendingResults'])process['stdout']['write']('\x0a'+_0x22e9c3['id']+_0xa44a4e(0x31e)+(_0x22e9c3[_0xa44a4e(0x286)]??_0xa44a4e(0x317))+'\x20\x20'+(_0x22e9c3['task']??'')+'\x0a'+(_0x22e9c3[_0xa44a4e(0x13a)]?.[_0xa44a4e(0x278)]??'')+'\x0a');_0x5f9238['pendingResults'][_0xa44a4e(0x2aa)]>0x0&&process['stderr'][_0xa44a4e(0x1dd)](_0xa44a4e(0x156));});return;case'show':u(_0x52504b,await _0x3071eb(_0x2f73c1,_0x1a93a0),pe);return;case'create':{let _0x4e89f1=await _0x5417de(_0x2f73c1,{'sessionId':_0x52504b[_0x48d2b4(0x188)],'task':_0x23bfa8,..._0x52504b[_0x48d2b4(0x166)]!==void 0x0&&{'contextSummary':_0x52504b['contextSummary']},..._0x52504b['delegateTo']!==void 0x0&&{'recipient':_0x52504b['delegateTo']}});u(_0x52504b,_0x4e89f1,_0x1e2cef=>{const _0x85a536=_0x48d2b4;_0x1e2cef['assignedUser']?process[_0x85a536(0x283)]['write'](_0x85a536(0x320)+_0x1e2cef[_0x85a536(0x1ea)]+'\x20to\x20'+_0x1e2cef['assignedUser']['displayName']+'\x20<'+_0x1e2cef['assignedUser'][_0x85a536(0x1be)]+_0x85a536(0x160)):process['stdout'][_0x85a536(0x1dd)](_0x85a536(0x1f3)+_0x1e2cef['delegationId']+_0x85a536(0x16a)+_0x1e2cef[_0x85a536(0x14a)]+'\x0a');});return;}case _0x48d2b4(0x1c9):{let _0x1d195b=await _0x3a8be6(_0x2f73c1,_0x1a93a0);u(_0x52504b,_0x1d195b,_0x48c576=>{const _0x58b596=_0x48d2b4;pe(_0x48c576),process[_0x58b596(0x283)][_0x58b596(0x1dd)](_0x58b596(0x273)+_0x48c576[_0x58b596(0x188)]+'\x0a'),process[_0x58b596(0x227)][_0x58b596(0x1dd)]('Work\x20on\x20it\x20with:\x20delegate-cli\x20--session\x20'+_0x48c576[_0x58b596(0x188)]+_0x58b596(0x27e)+_0x48c576['delegationId']+_0x58b596(0x289));});return;}case _0x48d2b4(0x200):{let {alreadyCompleted:_0x26c3e1}=await _0x4d0054(_0x2f73c1,_0x1a93a0,{'content':_0x23bfa8});u(_0x52504b,{'delegationId':_0x1a93a0,'alreadyCompleted':_0x26c3e1},_0x133a0e=>{const _0x3d9e1e=_0x48d2b4;process[_0x3d9e1e(0x283)][_0x3d9e1e(0x1dd)]((_0x133a0e[_0x3d9e1e(0x313)]?'Already\x20answered':'Answered')+'\x20delegation\x20'+_0x133a0e[_0x3d9e1e(0x1ea)]+'.\x0a');});return;}case _0x48d2b4(0x2a5):{let _0x14f539=await _0x261425(_0x2f73c1,_0x1a93a0);u(_0x52504b,{'delegationId':_0x1a93a0,..._0x14f539},_0x6ecb10=>{const _0x7bcb3d=_0x48d2b4;process['stdout'][_0x7bcb3d(0x1dd)]((_0x6ecb10[_0x7bcb3d(0x2c6)]?_0x7bcb3d(0x149):'Accepted')+_0x7bcb3d(0x2d3)+_0x6ecb10['delegationId']+'.\x0a');});return;}default:{let _0x3ae0c8={'dismiss':_0x14e283,'cancel':_0xdde631,'delete':_0x5d4a0a}[_0x90fd1c];await _0x3ae0c8(_0x2f73c1,_0x1a93a0);let _0x592de0={'dismiss':_0x48d2b4(0x18e),'cancel':_0x48d2b4(0x198),'delete':_0x48d2b4(0x221)}[_0x90fd1c];u(_0x52504b,{'delegationId':_0x1a93a0,[_0x592de0]:!0x0},()=>{const _0x3cc906=_0x48d2b4;process[_0x3cc906(0x283)][_0x3cc906(0x1dd)](''+_0x592de0[0x0][_0x3cc906(0x25e)]()+_0x592de0['slice'](0x1)+'\x20delegation\x20'+_0x1a93a0+'.\x0a');});}}}function wn(_0x308c91){const _0x91b7ca=_0x49b867;if(_0x308c91[_0x91b7ca(0x2aa)]===0x0){process[_0x91b7ca(0x227)][_0x91b7ca(0x1dd)]('No\x20delegations.\x0a');return;}process[_0x91b7ca(0x283)][_0x91b7ca(0x1dd)]('ID'[_0x91b7ca(0x137)](0x24)+'\x20\x20'+'STATUS'[_0x91b7ca(0x137)](0x9)+'\x20\x20'+_0x91b7ca(0x216)[_0x91b7ca(0x137)](0x18)+_0x91b7ca(0x31a));for(let _0xb8c76 of _0x308c91)process[_0x91b7ca(0x283)][_0x91b7ca(0x1dd)](_0xb8c76['id'][_0x91b7ca(0x137)](0x24)+'\x20\x20'+_0xb8c76['status']['padEnd'](0x9)+'\x20\x20'+(_0xb8c76[_0x91b7ca(0x286)]??'-')[_0x91b7ca(0x137)](0x18)+'\x20\x20'+(_0xb8c76[_0x91b7ca(0x2a9)]??'')+'\x0a');}function pe(_0x3339b6){const _0x49e662=_0x49b867;process[_0x49e662(0x283)][_0x49e662(0x1dd)](_0x49e662(0x252)+(_0x3339b6['sourceUserEmail']??'-')+'\x0a'),_0x3339b6[_0x49e662(0x267)]&&process[_0x49e662(0x283)]['write']('Session\x20\x20\x20\x20\x20\x20\x20'+_0x3339b6['sourceTitle']+'\x0a'),process[_0x49e662(0x283)][_0x49e662(0x1dd)](_0x49e662(0x167)+(_0x3339b6[_0x49e662(0x2a9)]??'-')+'\x0a'),_0x3339b6[_0x49e662(0x166)]&&process[_0x49e662(0x283)][_0x49e662(0x1dd)]('\x0a'+_0x3339b6[_0x49e662(0x166)]+'\x0a\x0a');}async function kn(_0x4c4855){const _0x48b5c0=_0x49b867;_0x4c4855[_0x48b5c0(0x239)]['trim']()||(console[_0x48b5c0(0x1c6)](_0x48b5c0(0x17a)),process[_0x48b5c0(0x15b)](0x2));let {client:_0x4806ab}=await S(_0x4c4855),_0x4cc5d0;try{_0x4cc5d0=await _0x1dc73a(_0x4806ab,_0x4c4855['prompt']);}catch(_0x15de67){if(!_0x3af521(_0x15de67))throw _0x15de67;console[_0x48b5c0(0x1c6)](_0x15de67[_0x48b5c0(0x29d)]),process[_0x48b5c0(0x15b)](0x1);}u(_0x4c4855,_0x4cc5d0,_0x2fabf6=>{const _0x5eb64a=_0x48b5c0;_0x2fabf6[_0x5eb64a(0x2aa)]===0x0&&process[_0x5eb64a(0x227)][_0x5eb64a(0x1dd)](_0x5eb64a(0x157)+_0x4c4855[_0x5eb64a(0x239)][_0x5eb64a(0x272)]()+_0x5eb64a(0x276));for(let _0x129cc3 of _0x2fabf6)process[_0x5eb64a(0x283)][_0x5eb64a(0x1dd)](_0x129cc3['email'][_0x5eb64a(0x137)](0x20)+'\x20\x20'+_0x129cc3['displayName']+'\x0a');});}async function bn(_0x51bdd0){const _0x331a00=_0x49b867;_0x51bdd0[_0x331a00(0x189)]===_0x331a00(0x178)&&(console[_0x331a00(0x1c6)](_0x331a00(0x2db)),process[_0x331a00(0x15b)](0x2));let _0x2cafeb=B(_0x120978()),_0x5ab9e8=_0x51bdd0[_0x331a00(0x194)];if(_0x51bdd0[_0x331a00(0x189)]){let _0x3d5a1d=_0x51bdd0['env'];await _0x358248({'env':_0x3d5a1d,'tenant':_0x51bdd0[_0x331a00(0x2cb)]??W(_0x2cafeb,_0x1751b5[_0x3d5a1d]),'skipEnvCheck':_0x5ab9e8});return;}let _0x4d7574=_0x51bdd0[_0x331a00(0x1a1)]??Ae();if(_0x4d7574){await _0x358248({'baseUrl':_0x4d7574,'tenant':_0x51bdd0[_0x331a00(0x2cb)]??W(_0x2cafeb,_0x4d7574),'skipEnvCheck':_0x5ab9e8});return;}if(_0x2cafeb?.['baseUrl']){await _0x358248({'baseUrl':_0x2cafeb['baseUrl'],'tenant':_0x51bdd0['tenant']??_0x2cafeb['tenantName'],'skipEnvCheck':_0x5ab9e8});return;}console[_0x331a00(0x1c6)](_0x331a00(0x1f6)),process[_0x331a00(0x15b)](0x2);}function W(_0x5452d9,_0xd0915e){const _0x3609ab=_0x49b867;return _0x5452d9?.[_0x3609ab(0x1ab)]&&vn(_0x5452d9[_0x3609ab(0x1ab)],_0xd0915e)?_0x5452d9['tenantName']:void 0x0;}function vn(_0x53d3e6,_0x1e429a){const _0x325f4a=_0x49b867;try{return new URL(_0x53d3e6)[_0x325f4a(0x260)]===new URL(_0x1e429a)['origin'];}catch{return!0x1;}}async function Sn(_0x560b86){const _0x555834=_0x49b867;q()&&(console[_0x555834(0x1c6)]('Auth\x20comes\x20from\x20AUTH_TOKEN/TENANT_ID/ORG_ID\x20—\x20set\x20TENANT_ID\x20and\x20TENANT_SLUG\x20to\x20change\x20the\x20tenant.'),process['exit'](0x2));let _0xf0d9ad=await _0x48c18a();if(_0xf0d9ad||(console[_0x555834(0x1c6)](An()),process[_0x555834(0x15b)](0x2)),_0x560b86[_0x555834(0x272)]()){let _0x6aff45=await _0x27e554(_0xf0d9ad,_0x560b86);_0x43a7ae(_0x6aff45)||(console[_0x555834(0x1c6)](_0x555834(0x159)+_0x120978()+';\x20the\x20saved\x20login\x20still\x20uses\x20'+_0xf0d9ad[_0x555834(0x287)]+'.'),process['exit'](0x1)),console[_0x555834(0x296)]('Tenant:\x20'+_0x6aff45['tenantName']+'\x20('+_0x6aff45[_0x555834(0x306)]+_0x555834(0x2ca)+_0x120978());return;}$n(await _0xa44d08(_0xf0d9ad),_0xf0d9ad);}function An(){const _0x13fe10=_0x49b867;if(_0x8a14ae[_0x13fe10(0x19c)](_0x120978()))return _0x13fe10(0x170);let _0x69afb2=Q();return B(_0x69afb2)?_0x13fe10(0x186)+_0x69afb2+_0x13fe10(0x2ad):'No\x20CLI\x20login\x20found.\x20Run\x20`delegate-cli\x20login\x20--env\x20<alpha|staging|production>`\x20first.';}function $n(_0x521332,_0x2c19bf){const _0x5ce49e=_0x49b867;let _0x5eb60b=_0x521332[_0x5ce49e(0x22a)](_0x1775d1=>_0x1775d1['id']===_0x2c19bf[_0x5ce49e(0x306)]?'*\x20'+_0x1775d1[_0x5ce49e(0x1ae)]+_0x5ce49e(0x27f):'\x20\x20'+_0x1775d1[_0x5ce49e(0x1ae)]);process[_0x5ce49e(0x283)][_0x5ce49e(0x1dd)]('Tenants\x20of\x20'+(_0x2c19bf[_0x5ce49e(0x277)]??_0x2c19bf[_0x5ce49e(0x285)])+':\x0a'+_0x5eb60b['join']('\x0a')+'\x0a'),_0x521332[_0x5ce49e(0x2aa)]>0x1&&process[_0x5ce49e(0x283)][_0x5ce49e(0x1dd)](_0x5ce49e(0x2ec));}function En(_0x2679a9){const _0x4812da=_0x49b867;return _0x2679a9?.[_0x4812da(0x20b)]?.[_0x4812da(0x15e)]===0x191||/401/[_0x4812da(0x14e)](String(_0x2679a9?.[_0x4812da(0x29d)]??''));}var f={'lastType':null,'quiet':!0x1},Ie=_0x331a28=>{const _0x3e20e7=_0x49b867;switch(_0x331a28['type']){case _0x3e20e7(0x14f):_0x331a28[_0x3e20e7(0x188)]&&_0x331a28[_0x3e20e7(0x188)]!==f['sessionId']&&(process[_0x3e20e7(0x227)][_0x3e20e7(0x1dd)](_0x3e20e7(0x163)+_0x331a28[_0x3e20e7(0x188)]+_0x3e20e7(0x1e1)+_0x331a28[_0x3e20e7(0x188)]+')\x0a'),f[_0x3e20e7(0x188)]=_0x331a28[_0x3e20e7(0x188)]);break;case _0x3e20e7(0x165):_0x331a28[_0x3e20e7(0x2f1)]&&_0x331a28[_0x3e20e7(0x2f1)]!==f[_0x3e20e7(0x2f1)]&&(f[_0x3e20e7(0x1cf)]!==null&&process[_0x3e20e7(0x227)][_0x3e20e7(0x1dd)]('\x0a'),process[_0x3e20e7(0x227)][_0x3e20e7(0x1dd)](_0x3e20e7(0x1c2)+_0x331a28['turnId']+_0x3e20e7(0x174)+_0x331a28[_0x3e20e7(0x188)]+_0x3e20e7(0x172)+_0x331a28[_0x3e20e7(0x2f1)]+')\x0a'),f[_0x3e20e7(0x2f1)]=_0x331a28[_0x3e20e7(0x2f1)],f[_0x3e20e7(0x1cf)]=_0x3e20e7(0x165));break;case _0x3e20e7(0x2c7):_0x331a28[_0x3e20e7(0x278)]&&!f[_0x3e20e7(0x312)]&&(f[_0x3e20e7(0x1cf)]!==_0x3e20e7(0x2c7)&&process['stderr'][_0x3e20e7(0x1dd)](_0x3e20e7(0x301)),process['stderr']['write'](_0x331a28[_0x3e20e7(0x278)]),f[_0x3e20e7(0x1cf)]='thinking');break;case _0x3e20e7(0x1c1):f[_0x3e20e7(0x1cf)]!==null&&process[_0x3e20e7(0x227)][_0x3e20e7(0x1dd)]('\x0a'),process[_0x3e20e7(0x227)][_0x3e20e7(0x1dd)](_0x3e20e7(0x294)+(_0x331a28['toolName']??_0x3e20e7(0x1d4))+'\x0a'),f[_0x3e20e7(0x1cf)]=_0x3e20e7(0x1c1);break;case'message':_0x331a28[_0x3e20e7(0x278)]&&(f[_0x3e20e7(0x1cf)]!==_0x3e20e7(0x29d)&&f[_0x3e20e7(0x1cf)]!==null&&process['stdout'][_0x3e20e7(0x1dd)]('\x0a'),process[_0x3e20e7(0x283)][_0x3e20e7(0x1dd)](_0x331a28[_0x3e20e7(0x278)]),f['lastType']=_0x3e20e7(0x29d));break;case _0x3e20e7(0x1c6):f[_0x3e20e7(0x1cf)]!==null&&process['stderr'][_0x3e20e7(0x1dd)]('\x0a'),process[_0x3e20e7(0x227)][_0x3e20e7(0x1dd)]('✗\x20'+(_0x331a28[_0x3e20e7(0x1c6)]??'error')+'\x0a'),f[_0x3e20e7(0x1cf)]='error';break;case'done':(f[_0x3e20e7(0x1cf)]==='message'||f['lastType']===_0x3e20e7(0x2c7))&&process[_0x3e20e7(0x283)][_0x3e20e7(0x1dd)]('\x0a'),process[_0x3e20e7(0x227)][_0x3e20e7(0x1dd)](_0x3e20e7(0x235)),f[_0x3e20e7(0x1cf)]=_0x3e20e7(0x1e7);break;}};function me(_0x513559,_0x2ad8b2,_0x16c72e,_0x564ff2){const _0x3088c5=_0x49b867;let _0x5c54c2=_0x513559[_0x3088c5(0x1d1)]||process.env.MODEL;return{'backendUrl':_0x16c72e,'auth':_0x2ad8b2,'enableComputerUse':!_0x513559[_0x3088c5(0x28e)]&&!_0x513559['noComputerUse'],'autoSpawnInterop':!_0x513559['headless'],'enableConnections':!_0x513559[_0x3088c5(0x1c5)],'enableSecurity':!_0x513559[_0x3088c5(0x243)],'keepInteropAlive':_0x513559['keepAlive'],..._0x564ff2[_0x3088c5(0x21c)]?{'enableBackgroundCommands':!0x1}:{},..._0x513559[_0x3088c5(0x298)]?{'enableMemory':!0x1}:{},..._0x513559['taskAutomation']?{'enableTaskAutomation':!0x0}:{},..._0x513559['preloadSkills'][_0x3088c5(0x2aa)]>0x0?{'preloadSkills':_0x513559[_0x3088c5(0x2fa)]}:{},..._0x5c54c2?{'model':_0x5c54c2}:{},..._0x513559[_0x3088c5(0x2ef)]?{'projectId':_0x513559[_0x3088c5(0x2ef)]}:{},..._0x513559[_0x3088c5(0x247)]?{'vertical':_0x513559[_0x3088c5(0x247)]}:{},..._0x513559[_0x3088c5(0x1ad)]?{'workingDirectory':_0x513559[_0x3088c5(0x1ad)]}:{},..._0x513559['bundledSkillsPath']?{'bundledSkillsPath':_0x513559['bundledSkillsPath']}:{},..._0x513559[_0x3088c5(0x1b5)]?{'effort':_0x513559['effort']}:{},..._0x513559[_0x3088c5(0x188)]?{'sessionId':_0x513559[_0x3088c5(0x188)]}:{},..._0x513559[_0x3088c5(0x24d)]?{'verbose':!0x0}:{}};}async function In(_0xa28e9d){const _0x41ae39=_0x49b867;let _0x51ebc3=_0xa28e9d[_0x41ae39(0x284)]!=='text',_0x583f57=_0xa28e9d[_0x41ae39(0x14b)]===void 0x0?null:Ee(_0xa28e9d['jsonSchemaPath'],_0x41ae39(0x2a3)),_0x2114b7=!_0x51ebc3&&!_0x583f57&&!_0xa28e9d[_0x41ae39(0x257)]&&_0xa28e9d[_0x41ae39(0x239)]!=='-'&&!!process['stdin'][_0x41ae39(0x24f)]&&!!process['stdout'][_0x41ae39(0x24f)],_0x214d02=_0x2114b7?_0xa28e9d[_0x41ae39(0x239)]['trim']():await M(_0xa28e9d[_0x41ae39(0x239)],process[_0x41ae39(0x1de)]);if(!_0x2114b7&&!_0x214d02&&(console[_0x41ae39(0x1c6)](_0x41ae39(0x1d6)),process[_0x41ae39(0x15b)](0x2)),!_0x51ebc3){await fe(_0xa28e9d,_0x214d02,_0x2114b7,null,_0x583f57);return;}let _0x25486e=!0x1,_0x124f9c=_0x477798=>{const _0x10c00a=_0x41ae39;_0x25486e=!0x0,P(_0x1f6a8c(_0x477798)),(_0x477798[_0x10c00a(0x1d5)]||_0x477798[_0x10c00a(0x275)])&&(process[_0x10c00a(0x182)]=0x1);},_0x3d83a6=Date['now']();try{await fe(_0xa28e9d,_0x214d02,!0x1,_0x124f9c,_0x583f57);}catch(_0x380ffb){if(_0x25486e)throw _0x380ffb;process[_0x41ae39(0x227)][_0x41ae39(0x1dd)]((_0x380ffb instanceof Error?_0x380ffb[_0x41ae39(0x142)]??_0x380ffb[_0x41ae39(0x29d)]:String(_0x380ffb))+'\x0a'),_0x124f9c(new _0x2904c3(_0x3d83a6)['finish']({'endedAtMs':Date['now'](),'usage':[],'error':_0x380ffb}));}}async function fe(_0x39ff61,_0x394a1c,_0x1ee9c5,_0x2b277a,_0x362808){const _0x4d91a5=_0x49b867;f={'lastType':null,'quiet':_0x39ff61[_0x4d91a5(0x312)]};let _0x335839=new Set(),_0x5128fd,_0x3a150f=_0x3d7ae5=>{const _0x522986=_0x4d91a5;(!_0x2b277a||_0x3d7ae5[_0x522986(0x2be)]==='session_start'||_0x3d7ae5['type']===_0x522986(0x165))&&(_0x5128fd??Ie)(_0x3d7ae5);for(let _0x56debc of _0x335839)_0x56debc(_0x3d7ae5);},_0x3d42fc=await z(),_0xfbeb90=new _0x12e700();_0xfbeb90[_0x4d91a5(0x213)](_0x3a150f);let _0x82f2fb=_0x2132c2(_0x39ff61['env'],_0x3d42fc,_0x39ff61['backendUrl']);Y(_0x39ff61[_0x4d91a5(0x189)],_0x39ff61['backendUrl'],_0x82f2fb);let _0x336911={'input':null},_0x2ecbe0=_0x1ee9c5?ee(()=>_0x336911['input'],_0x2df935=>{const _0x59533e=_0x4d91a5;process[_0x59533e(0x227)][_0x59533e(0x1dd)](_0x2df935);}):null,_0x34fe50=_0x351115=>_0x2ecbe0?{..._0x351115,'askUser':_0x2ecbe0}:_0x351115,_0x16cf5d=_0x34fe50(me(_0x39ff61,_0x3d42fc,_0x82f2fb,{'oneTurn':!_0x1ee9c5})),_0x44af87=!0x1,_0x181a9f=!0x1,_0x440602,_0x1cdad7=()=>_0x440602??=_0xfbeb90[_0x4d91a5(0x2f2)](),_0x30b950=()=>{const _0x342f59=_0x4d91a5;_0x181a9f&&process[_0x342f59(0x15b)](0x82),_0x181a9f=!0x0,process[_0x342f59(0x227)][_0x342f59(0x1dd)]('\x0aStopping…\x20(Ctrl+C\x20again\x20to\x20force\x20exit)\x0a'),_0x44af87&&_0xfbeb90[_0x342f59(0x152)]()['catch'](_0x3ffb13=>console['error'](_0x3ffb13))['then'](_0x1cdad7)['then'](()=>process[_0x342f59(0x15b)](0x82),_0x544568=>{const _0x4e354e=_0x342f59;console[_0x4e354e(0x1c6)](_0x544568),process[_0x4e354e(0x15b)](0x82);});};process['on'](_0x4d91a5(0x2bc),_0x30b950);let _0x12791a=_0x39ff61[_0x4d91a5(0x2ff)],_0x515286=async _0x5bb20f=>{const _0x3a2a5d=_0x4d91a5;let _0x2c3780=_0x12791a;_0x12791a=[];let _0x33c33a=()=>_0xfbeb90[_0x3a2a5d(0x31c)](_0x5bb20f,{'attachments':_0x2c3780});try{return await _0x33c33a();}catch(_0x5d7745){if(_0x181a9f||!En(_0x5d7745)||!process[_0x3a2a5d(0x1de)][_0x3a2a5d(0x24f)]||_0x39ff61[_0x3a2a5d(0x189)]===_0x3a2a5d(0x178)||!(_0x39ff61[_0x3a2a5d(0x189)]||_0x3d42fc[_0x3a2a5d(0x1ab)]))throw _0x5d7745;process[_0x3a2a5d(0x227)][_0x3a2a5d(0x1dd)](_0x3a2a5d(0x318));let _0x5475a9=_0xfbeb90['getSessionId']()??_0x39ff61['sessionId'],_0x4e66f0=await _0x358248(_0x39ff61[_0x3a2a5d(0x189)]?{'env':_0x39ff61['env'],'tenant':W(_0x3d42fc,_0x1751b5[_0x39ff61[_0x3a2a5d(0x189)]]),'skipEnvCheck':!0x0}:{'baseUrl':_0x3d42fc[_0x3a2a5d(0x1ab)],'tenant':_0x3d42fc[_0x3a2a5d(0x287)],'skipEnvCheck':!0x0}),_0x3fdbf6={'text':'','failed':!0x1,'sessionId':_0x5475a9};return _0x181a9f||(_0x44af87=!0x1,await _0x1cdad7(),_0x181a9f)?_0x3fdbf6:(_0xfbeb90=new _0x12e700(),_0x440602=void 0x0,_0xfbeb90[_0x3a2a5d(0x213)](_0x3a150f),_0x3d42fc=_0x4e66f0,await _0xfbeb90[_0x3a2a5d(0x2a0)]({..._0x34fe50(me(_0x39ff61,_0x3d42fc,_0x82f2fb,{'oneTurn':!_0x1ee9c5})),..._0x5475a9?{'sessionId':_0x5475a9}:{}}),_0x44af87=!0x0,_0x181a9f?_0x3fdbf6:_0x33c33a());}};try{if(await _0xfbeb90['initialize'](_0x16cf5d),_0x44af87=!0x0,_0x181a9f)return;if(_0x1ee9c5)await Dn({'prompt':_0x394a1c,'sendMessage':_0x515286,'onSigint':_0x30b950,'setAnswerInput':_0xa82349=>{const _0x3a4746=_0x4d91a5;_0x336911[_0x3a4746(0x253)]=_0xa82349;},'registerEventPrinter':_0x336753=>(_0x5128fd=_0x336753,()=>{_0x5128fd=void 0x0;})});else{if(_0x2b277a||_0x362808){let _0x1caf0c=_0x39ff61[_0x4d91a5(0x284)]===_0x4d91a5(0x23a)?_0x1b0c0d=>P(_0x4ba8c1(_0x1b0c0d)):()=>{},_0x469ee9=await _0x1b475b({'onEvent':_0x5447e6=>(_0x335839[_0x4d91a5(0x270)](_0x5447e6),()=>{const _0x51917e=_0x4d91a5;_0x335839[_0x51917e(0x134)](_0x5447e6);}),'sendMessage':_0x1996ad=>_0x515286(_0x1996ad),'getSessionId':()=>_0xfbeb90[_0x4d91a5(0x15c)](),'getTurnUsageHistory':_0x442736=>_0xfbeb90['getTurnUsageHistory'](_0x442736),'complete':_0x4d5849=>_0xfbeb90[_0x4d91a5(0x200)](_0x4d5849)},_0x394a1c,void 0x0,_0x1caf0c,_0x362808?{'outputSchema':_0x362808}:void 0x0);_0x2b277a?_0x2b277a(_0x469ee9):Tn(_0x469ee9);}else await _0x515286(_0x394a1c);}}catch(_0x5db4fd){if(!_0x181a9f)throw _0x5db4fd;}finally{try{await _0x1cdad7();}finally{process[_0x4d91a5(0x16f)](_0x4d91a5(0x2bc),_0x30b950),_0x181a9f&&(process[_0x4d91a5(0x182)]=0x82);}}}function Tn(_0x3293be){const _0x4b268c=_0x49b867;_0x3293be['structuredError']?(console['error']('Structured\x20output\x20failed:\x20'+_0x3293be[_0x4b268c(0x275)]['message']),process['exitCode']=0x1):_0x3293be[_0x4b268c(0x1d5)]?(console['error'](_0x4b268c(0x292)+_0x3293be['error']+').'),process[_0x4b268c(0x182)]=0x1):process[_0x4b268c(0x283)][_0x4b268c(0x1dd)](JSON['stringify'](_0x3293be[_0x4b268c(0x299)],null,0x2)+'\x0a');}function xn(_0x34ba62,_0x84dc31){const _0x47c58f=_0x49b867;let _0x1aa5d2=process['stdout'][_0x47c58f(0x1dd)]['bind'](process[_0x47c58f(0x283)]),_0x42d3f8=!0x1;return process[_0x47c58f(0x283)][_0x47c58f(0x1dd)]=(..._0x7472bf)=>{if(!_0x42d3f8)return _0x1aa5d2(..._0x7472bf);_0x51ad68(_0x84dc31,0x0),_0x50aeb6(_0x84dc31,0x0);let _0x34456f=_0x1aa5d2(..._0x7472bf);return _0x34ba62['prompt'](!0x0),_0x34456f;},{'show':()=>{const _0x5ebf71=_0x47c58f;_0x42d3f8=!0x0,_0x34ba62[_0x5ebf71(0x239)]();},'hide':()=>{_0x42d3f8=!0x1;},'erase':()=>{_0x42d3f8&&(_0x51ad68(_0x84dc31,0x0),_0x50aeb6(_0x84dc31,0x0)),_0x42d3f8=!0x1;},'restore':()=>{const _0x158c96=_0x47c58f;_0x42d3f8=!0x1,process[_0x158c96(0x283)][_0x158c96(0x1dd)]=_0x1aa5d2;}};}async function Dn({prompt:_0x26ceb8,sendMessage:_0x1e3a73,onSigint:_0x4fb777,setAnswerInput:_0x25c421,registerEventPrinter:_0x2627b7}){const _0x206ad8=_0x49b867;let _0x130b22=_0xea155({'input':process['stdin'],'output':process[_0x206ad8(0x227)],'terminal':!0x0,'prompt':_0x206ad8(0x280)}),_0x2698ea=xn(_0x130b22,process[_0x206ad8(0x227)]),_0x4ce92a=[],_0x33b98d,_0x3ce042,_0x3132e2,_0x8c6b63=!0x1,_0x4ede55=!0x1,_0x569d95=!0x1,_0x732db6=Promise['resolve'](),_0x48a1c1,_0x48d215=_0x2627b7(_0x149349=>{const _0x3060df=_0x206ad8;_0x149349[_0x3060df(0x2be)]==='session_start'&&(_0x2698ea[_0x3060df(0x251)](),_0x732db6=new Promise(_0x2c050e=>{_0x48a1c1=_0x2c050e;})),Ie(_0x149349),_0x149349[_0x3060df(0x2be)]===_0x3060df(0x1e7)&&(_0x48a1c1?.(),_0x48a1c1=void 0x0,!_0x569d95&&!_0x8c6b63&&_0x2698ea['show']());}),_0x3d9e65=()=>{_0x4ede55=!0x0,_0x48a1c1?.(),_0x4fb777(),_0x130b22['close']();};_0x130b22['on'](_0x206ad8(0x155),_0x44146c=>{const _0x5d4456=_0x206ad8;_0x3132e2?_0x3132e2(_0x44146c):_0x33b98d?_0x33b98d[_0x5d4456(0x254)](_0x44146c):_0x3ce042?_0x3ce042(_0x44146c):_0x4ce92a['push'](_0x44146c);}),_0x130b22[_0x206ad8(0x14c)]('close',()=>{_0x8c6b63=!0x0,_0x2698ea['hide'](),_0x33b98d&&!_0x4ede55&&_0x3d9e65(),_0x3ce042?.(null);});let _0x368638=()=>_0x4ce92a[_0x206ad8(0x2aa)]>0x0?Promise[_0x206ad8(0x271)](_0x4ce92a['shift']()):_0x8c6b63?Promise[_0x206ad8(0x271)](null):new Promise(_0xf8491b=>{_0x3ce042=_0x5aee3c=>{_0x3ce042=void 0x0,_0xf8491b(_0x5aee3c);};});_0x25c421({'readLine':(_0x3e05a6,_0x16489e)=>new Promise((_0x285acf,_0x37a124)=>{const _0x26dd36=_0x206ad8;if(_0x8c6b63&&!_0x33b98d){_0x285acf(null);return;}_0x33b98d??=[];let _0x2bb4ca=_0x33b98d[_0x26dd36(0x22d)]();if(_0x2bb4ca!==void 0x0){_0x285acf(_0x2bb4ca);return;}let _0x50cfb9=()=>{const _0x4eb446=_0x26dd36;_0x3132e2=void 0x0,_0x16489e[_0x4eb446(0x1a4)](_0x4eb446(0x255),_0x2c42f2),_0x2698ea[_0x4eb446(0x199)](),_0x130b22[_0x4eb446(0x27b)](_0x4eb446(0x280));},_0x2c42f2=()=>{const _0x3c40d1=_0x26dd36;_0x50cfb9(),_0x37a124(new Error(_0x3c40d1(0x1fb)));};_0x16489e[_0x26dd36(0x2e8)](_0x26dd36(0x255),_0x2c42f2,{'once':!0x0}),!_0x8c6b63&&(_0x3132e2=_0x509082=>{_0x50cfb9(),_0x285acf(_0x509082);},_0x130b22[_0x26dd36(0x27b)](_0x3e05a6),_0x2698ea[_0x26dd36(0x20f)]());}),'endQuestions':()=>{const _0x5926d7=_0x206ad8;_0x33b98d&&_0x4ce92a[_0x5926d7(0x254)](..._0x33b98d),_0x33b98d=void 0x0;}}),_0x130b22['on'](_0x206ad8(0x2bc),_0x3d9e65),process[_0x206ad8(0x227)]['write'](_0x206ad8(0x1c3));let _0x1a1f73=async _0x1c697c=>{_0x569d95=!0x0;try{await _0x1e3a73(_0x1c697c);}finally{_0x569d95=!0x1;}};try{if(_0x26ceb8&&await _0x1a1f73(_0x26ceb8),_0x4ede55)return;!_0x8c6b63&&!_0x48a1c1&&_0x2698ea[_0x206ad8(0x20f)]();for(let _0x4894e2=await _0x368638();_0x4894e2!==null&&(_0x2698ea[_0x206ad8(0x199)](),!_0x4ede55);_0x4894e2=await _0x368638()){let _0x5122dd=_0x4894e2['trim']();if(_0x5122dd===_0x206ad8(0x258))break;_0x5122dd&&await _0x1a1f73(_0x5122dd),!_0x8c6b63&&!_0x48a1c1&&_0x2698ea[_0x206ad8(0x20f)]();}for(;!_0x4ede55&&_0x48a1c1;)await _0x732db6;}finally{_0x25c421(null),_0x48d215(),_0x2698ea[_0x206ad8(0x26f)](),_0x130b22[_0x206ad8(0x16f)]('SIGINT',_0x3d9e65),_0x130b22['close']();}}async function Un(){const _0x19cf34=_0x49b867;let _0x48b8d3=Pt(process[_0x19cf34(0x2d2)]['slice'](0x2));if(_0x48b8d3[_0x19cf34(0x284)]===_0x19cf34(0x1b1)){await ge(_0x48b8d3);return;}let _0x165c7d=Ct();try{await ge(_0x48b8d3);}finally{_0x165c7d();}}async function ge(_0x101c79){const _0x3c37da=_0x49b867;if(_0x101c79[_0x3c37da(0x180)]){Lt();return;}if(_0x101c79['version']){console[_0x3c37da(0x296)](Ot());return;}if(_0x101c79[_0x3c37da(0x177)]===_0x3c37da(0x23f)){await bn(_0x101c79);return;}if(_0x101c79[_0x3c37da(0x177)]===_0x3c37da(0x2cb)){await Sn(_0x101c79['prompt']);return;}if(_0x101c79[_0x3c37da(0x177)]===_0x3c37da(0x2d7)){await Bt();return;}if(_0x101c79[_0x3c37da(0x177)]===_0x3c37da(0x175)){await Ht(_0x101c79);return;}if(_0x101c79['subcommand']==='models'){await Kt(_0x101c79);return;}if(_0x101c79[_0x3c37da(0x177)]===_0x3c37da(0x2dd)){await en(_0x101c79);return;}if(_0x101c79[_0x3c37da(0x177)]===_0x3c37da(0x1eb)){await qt(_0x101c79);return;}if(_0x101c79[_0x3c37da(0x177)]===_0x3c37da(0x212)){await on(_0x101c79);return;}if(_0x101c79[_0x3c37da(0x177)]===_0x3c37da(0x2ee)||_0x101c79[_0x3c37da(0x177)]==='rerank'||_0x101c79[_0x3c37da(0x177)]===_0x3c37da(0x321)){await ln(_0x101c79,_0x101c79[_0x3c37da(0x177)]);return;}if(_0x101c79[_0x3c37da(0x177)]===_0x3c37da(0x200)){await dn(_0x101c79);return;}if(_0x101c79[_0x3c37da(0x177)]===_0x3c37da(0x133)){await fn(_0x101c79);return;}if(_0x101c79['subcommand']===_0x3c37da(0x1a9)){await hn(_0x101c79);return;}if(_0x101c79['subcommand']===_0x3c37da(0x2f7)){await kn(_0x101c79);return;}if(_0x101c79[_0x3c37da(0x177)]==='host'){await _0xbc8a54(_0x101c79[_0x3c37da(0x239)],{'runnerUrl':_0x101c79[_0x3c37da(0x215)],'backendUrl':_0x101c79['backendUrl'],'interopPath':_0x101c79['interopPath'],'workerId':_0x101c79['workerId']});return;}if(_0x101c79[_0x3c37da(0x238)]){await Wt();return;}await In(_0x101c79);}var _n=process.env.NODE_ENV==='test'||!!process.env.JEST_WORKER_ID;_n||Un()[_0x49b867(0x2ce)](_0x5ac7af=>{const _0x12ff68=_0x49b867;console[_0x12ff68(0x1c6)](_0x5ac7af['stack']||_0x5ac7af[_0x12ff68(0x29d)]||_0x5ac7af),process[_0x12ff68(0x15b)](0x1);});export{Rt as CARTOGRAPHER_SKILLS,ie as EFFORT_TIERS,Ft as IMPLICIT_STDIN_IDLE_MS,me as buildInitOptions,Un as main,Pt as parseArgs,Ot as readCliVersion,M as resolvePrompt,Ct as routeStdoutToStderr,u as writeCommandResult};
|
|
2
|
+
const _0x1ca96b=_0x3df7;(function(_0x339991,_0x15f05f){const _0x220f6f=_0x3df7,_0x40077b=_0x339991();while(!![]){try{const _0x3b1672=-parseInt(_0x220f6f(0x1a0))/0x1*(parseInt(_0x220f6f(0x2b1))/0x2)+-parseInt(_0x220f6f(0x271))/0x3+parseInt(_0x220f6f(0x2f5))/0x4*(-parseInt(_0x220f6f(0x268))/0x5)+parseInt(_0x220f6f(0x132))/0x6*(parseInt(_0x220f6f(0x2a0))/0x7)+-parseInt(_0x220f6f(0x1e4))/0x8*(parseInt(_0x220f6f(0x2e4))/0x9)+-parseInt(_0x220f6f(0x2b0))/0xa+parseInt(_0x220f6f(0x24f))/0xb;if(_0x3b1672===_0x15f05f)break;else _0x40077b['push'](_0x40077b['shift']());}catch(_0x209d00){_0x40077b['push'](_0x40077b['shift']());}}}(_0x11a3,0xf0699));const __dirname=import.meta.dirname;import _0x35e9de from'fs';import _0x185e3b from'path';import{clearLine as _0x285829,createInterface as _0x507ccb,cursorTo as _0x431c4a}from'node:readline';import{isOnStepGrid as _0x3c6b94}from'@uipath/delegate-sdk';var L=_0x1ca96b(0x23e);function E(_0x2cc8f0){const _0x39a0c8=_0x1ca96b;return _0x2cc8f0[_0x39a0c8(0x28b)](/\u001b\[[0-?]*[ -/]*[@-~]|\u001b\][^\u0007\u001b]*(\u0007|\u001b\\)?|\u001b./g,'')[_0x39a0c8(0x28b)](/[\u0000-\u0008\u000b-\u001f\u007f-\u009f]/g,'');}function ee(_0xd189c7){const _0x4f410c=_0x1ca96b;return E(_0xd189c7[_0x4f410c(0x198)]??(_0xd189c7['kind']===L?'Something\x20else':_0xd189c7['id']));}function Ce(_0x458ae7,_0x4620d5,_0x28f70f){const _0x38f5e7=_0x1ca96b;let _0x1b7017=[''+(_0x28f70f>0x1?'['+_0x4620d5+'/'+_0x28f70f+']\x20':'')+E(_0x458ae7[_0x38f5e7(0xe5)])+(_0x458ae7['optional']?_0x38f5e7(0x2b9):''),E(_0x458ae7[_0x38f5e7(0x18a)])];return _0x458ae7[_0x38f5e7(0x28f)]===_0x38f5e7(0x233)&&_0x458ae7[_0x38f5e7(0x299)]['forEach']((_0xd92202,_0xff75cf)=>{const _0x3492ca=_0x38f5e7;let _0xf95b1a=_0xd92202['kind']===L?_0x3492ca(0x1ec):'',_0x144ec5=_0xd92202['description']?_0x3492ca(0x283)+E(_0xd92202[_0x3492ca(0x274)]):'';_0x1b7017[_0x3492ca(0x219)]('\x20\x20'+(_0xff75cf+0x1)+'.\x20'+ee(_0xd92202)+_0xf95b1a+_0x144ec5);}),_0x1b7017[_0x38f5e7(0x2dc)]('\x0a');}function te(_0x1175f4,_0x491648){const _0x43f75c=_0x1ca96b;let _0x3aead1=_0x1175f4[_0x43f75c(0x136)](/[\s,]+/)['filter'](Boolean);if(_0x3aead1['length']===0x0)return null;let _0x275240=_0x3aead1[_0x43f75c(0x1e1)](_0x2d7cca=>/^\d+$/['test'](_0x2d7cca)?Number(_0x2d7cca):NaN);return _0x275240[_0x43f75c(0x2f8)](_0x2e1336=>!Number[_0x43f75c(0x246)](_0x2e1336)||_0x2e1336<0x1||_0x2e1336>_0x491648)?null:[...new Set(_0x275240)][_0x43f75c(0x1e1)](_0x22050d=>_0x22050d-0x1);}function Oe(_0x22e6ff){const _0x421821=_0x1ca96b;return typeof _0x22e6ff==_0x421821(0x2b3)&&_0x22e6ff!==null&&_0x421821(0x2bc)in _0x22e6ff;}async function F(_0x312c78,_0x46f85c,_0x144b35,_0x124be3){const _0x34a99a=_0x1ca96b;for(;;){let _0x404560=(await _0x312c78(_0x46f85c))['trim']();if(_0x404560==='')return;let _0x5466e9=_0x124be3(_0x404560);if(!Oe(_0x5466e9))return _0x5466e9;_0x144b35(_0x5466e9[_0x34a99a(0x2bc)]+'\x0a');}}async function Le(_0x3f7fc4,_0x41934f,_0x17cb46){const _0x11fe25=_0x1ca96b;if(_0x3f7fc4[_0x11fe25(0x299)][_0x11fe25(0x131)]===0x0||_0x3f7fc4[_0x11fe25(0x299)][_0x11fe25(0x294)](_0x8f9b7e=>_0x8f9b7e['kind']===L)){let _0x77ff57=(await _0x41934f('Your\x20answer\x20(Enter\x20to\x20skip):\x20'))[_0x11fe25(0x2c1)]();return _0x77ff57===''?void 0x0:{'text':_0x77ff57};}let _0x56a7ef=_0x3f7fc4[_0x11fe25(0x299)][_0x11fe25(0x162)](_0xceceda=>_0xceceda[_0x11fe25(0x2ac)]===L),_0x514d5f=_0x3f7fc4['multiSelect']?_0x11fe25(0x2cb):_0x11fe25(0x185)+(_0x56a7ef>=0x0?_0x11fe25(0x286):'')+'\x20(Enter\x20to\x20skip):\x20',_0x30ce06=await F(_0x41934f,_0x514d5f,_0x17cb46,_0x28e666=>{const _0x5b9ce9=_0x11fe25;let _0x34842b=te(_0x28e666,_0x3f7fc4[_0x5b9ce9(0x299)]['length']);return _0x34842b&&(_0x3f7fc4[_0x5b9ce9(0xe9)]||_0x34842b[_0x5b9ce9(0x131)]===0x1)?_0x34842b:!_0x3f7fc4[_0x5b9ce9(0xe9)]&&_0x56a7ef>=0x0?{'typed':_0x28e666}:{'refused':_0x3f7fc4['multiSelect']?_0x5b9ce9(0x296)+_0x3f7fc4['options'][_0x5b9ce9(0x131)]+'.':_0x5b9ce9(0x249)+_0x3f7fc4[_0x5b9ce9(0x299)][_0x5b9ce9(0x131)]+'.'};});if(_0x30ce06===void 0x0)return;if(!Array['isArray'](_0x30ce06))return{'text':_0x30ce06[_0x11fe25(0x22e)]};let _0x522171=_0x30ce06[_0x11fe25(0x1e1)](_0x2f030e=>_0x3f7fc4[_0x11fe25(0x299)][_0x2f030e]['id']),_0xb3f2cd=_0x522171['includes'](L)?await F(_0x41934f,ee(_0x3f7fc4[_0x11fe25(0x299)][_0x56a7ef])+':\x20',_0x17cb46,_0x2a371a=>_0x2a371a):void 0x0;if(!(_0x522171[_0x11fe25(0x2b6)](L)&&_0xb3f2cd===void 0x0))return _0x3f7fc4[_0x11fe25(0xe9)]?{'optionIds':_0x522171,..._0xb3f2cd!==void 0x0?{'text':_0xb3f2cd}:{}}:_0xb3f2cd!==void 0x0?{'text':_0xb3f2cd}:{'optionId':_0x522171[0x0]};}async function Fe(_0x29c1b2,_0x43c60e,_0x451114){const _0x8823a2=_0x1ca96b;let _0x263de3={};for(let _0x5ce366 of _0x29c1b2[_0x8823a2(0x158)]){let _0x3b5366=_0x5ce366[_0x8823a2(0x1c8)]??_0x5ce366[_0x8823a2(0x16a)],_0x327b0f=_0x5ce366[_0x8823a2(0x208)]??0x1,_0x1cc472=_0x5ce366['unit']?'\x20'+E(_0x5ce366[_0x8823a2(0x2bf)]):'',_0x295b4a=_0x8823a2(0x139)+_0x5ce366[_0x8823a2(0x16a)]+_0x8823a2(0x2df)+_0x5ce366[_0x8823a2(0x174)]+(_0x327b0f!==0x1?_0x8823a2(0x2c5)+_0x327b0f:''),_0x5dff8b=await F(_0x43c60e,E(_0x5ce366['label'])+'\x20['+_0x5ce366['min']+'-'+_0x5ce366['max']+_0x1cc472+_0x8823a2(0x2da)+_0x3b5366+_0x8823a2(0x1fd),_0x451114,_0x12f2c3=>{const _0x3cd0a3=_0x8823a2;let _0x1e53d3=Number(_0x12f2c3);return Number[_0x3cd0a3(0x245)](_0x1e53d3)&&_0x1e53d3>=_0x5ce366['min']&&_0x1e53d3<=_0x5ce366[_0x3cd0a3(0x174)]&&_0x3c6b94(_0x1e53d3,_0x5ce366[_0x3cd0a3(0x16a)],_0x327b0f)?_0x1e53d3:{'refused':_0x3cd0a3(0x1bd)+_0x295b4a+'.'};});_0x263de3[_0x5ce366['id']]=_0x5dff8b??_0x3b5366;}return{'values':_0x263de3};}async function Me(_0x82ffbb,_0x122d10,_0x4b8764){const _0x287fcc=_0x1ca96b;_0x4b8764(_0x82ffbb[_0x287fcc(0x1d0)][_0x287fcc(0x1e1)]((_0x1beb05,_0x38ddf0)=>'\x20\x20'+(_0x38ddf0+0x1)+'.\x20'+E(_0x1beb05['label']))[_0x287fcc(0x2dc)]('\x0a')+'\x0a');let _0x257fde={};for(let _0x4d71c4 of _0x82ffbb['items']){let _0x2b8ef3=await F(_0x122d10,E(_0x4d71c4[_0x287fcc(0x198)])+_0x287fcc(0x124),_0x4b8764,_0x26c06c=>{const _0x921cbd=_0x287fcc;let _0x413e37=te(_0x26c06c,_0x82ffbb['buckets'][_0x921cbd(0x131)]);return _0x413e37&&_0x413e37[_0x921cbd(0x131)]===0x1?_0x413e37[0x0]:{'refused':_0x921cbd(0x249)+_0x82ffbb['buckets']['length']+'.'};});if(_0x2b8ef3===void 0x0)continue;let _0x1b8354=_0x82ffbb[_0x287fcc(0x1d0)][_0x2b8ef3],_0x32cc62={};for(let _0x2b7858 of _0x1b8354[_0x287fcc(0x1e7)]??[]){let _0x6ac347='\x20\x20'+E(_0x2b7858[_0x287fcc(0x198)])+(_0x2b7858['optional']?_0x287fcc(0x2b9):'')+':\x20',_0x578e6b=await F(_0x122d10,_0x6ac347,_0x4b8764,_0x19e1ce=>_0x19e1ce);for(;_0x578e6b===void 0x0&&!_0x2b7858[_0x287fcc(0x248)];)_0x4b8764(E(_0x2b7858['label'])+_0x287fcc(0x29c)),_0x578e6b=await F(_0x122d10,_0x6ac347,_0x4b8764,_0xb97008=>_0xb97008);_0x578e6b!==void 0x0&&(_0x32cc62[_0x2b7858['id']]=_0x578e6b);}_0x257fde[_0x4d71c4['id']]={'bucket':_0x1b8354['id'],...Object['keys'](_0x32cc62)[_0x287fcc(0x131)]>0x0?{'subFields':_0x32cc62}:{}};}return Object[_0x287fcc(0xfa)](_0x257fde)[_0x287fcc(0x131)]>0x0?{'assignments':_0x257fde}:void 0x0;}async function je(_0xc0a6ad,_0x3bd234,_0xdd620d){const _0x55aa21=_0x1ca96b;if(_0xc0a6ad['type']===_0x55aa21(0x233))return Le(_0xc0a6ad,_0x3bd234,_0xdd620d);if(_0xc0a6ad['type']===_0x55aa21(0x15a))return Fe(_0xc0a6ad,_0x3bd234,_0xdd620d);if(_0xc0a6ad[_0x55aa21(0x28f)]==='bucket')return Me(_0xc0a6ad,_0x3bd234,_0xdd620d);let _0x52ebc9=(await _0x3bd234(_0x55aa21(0x1e3)))['trim']();return _0x52ebc9===''?void 0x0:{'text':_0x52ebc9};}function ne(_0x344ab7,_0x2be3f5){return async _0x887c5a=>{const _0x9734d1=_0x3df7;let _0x396efc=_0x344ab7();if(!_0x396efc)throw new Error('There\x20is\x20no\x20terminal\x20input\x20to\x20answer\x20from.');let _0xd9e3a2=async _0x269034=>{const _0x39118a=_0x3df7;if(_0x887c5a[_0x39118a(0x1e2)][_0x39118a(0x1b3)])throw new Error('The\x20turn\x20was\x20cancelled.');let _0x1b324e=await _0x396efc[_0x39118a(0x26e)](_0x269034,_0x887c5a[_0x39118a(0x1e2)]);if(_0x1b324e===null)throw new Error(_0x39118a(0x247));return _0x1b324e;};try{_0x2be3f5('\x0a'+(_0x887c5a[_0x9734d1(0x193)]?E(_0x887c5a[_0x9734d1(0x193)])+'\x0a':''));let _0x2a4fe8={};for(let [_0x543a2b,_0xde3fb8]of _0x887c5a[_0x9734d1(0x21f)][_0x9734d1(0x1ff)]()){_0x2be3f5('\x0a'+Ce(_0xde3fb8,_0x543a2b+0x1,_0x887c5a['questions'][_0x9734d1(0x131)])+'\x0a');let _0x25fd12=await je(_0xde3fb8,_0xd9e3a2,_0x2be3f5);_0x25fd12!==void 0x0&&(_0x2a4fe8[_0xde3fb8['id']]=_0x25fd12);}return{'answers':_0x2a4fe8};}finally{_0x396efc[_0x9734d1(0x26a)]();}};}import{createInterface as _0x4704f9}from'node:readline';var j=[_0x1ca96b(0x233),_0x1ca96b(0x19b)];function se(_0x1997e3){const _0xc6e043=_0x1ca96b;return j[_0xc6e043(0x2b6)](_0x1997e3);}var _=class extends Error{};function Je(_0xcc4f25){const _0x1779a6=_0x1ca96b;if(typeof _0xcc4f25=='string')return _0xcc4f25;if(!Array[_0x1779a6(0x100)](_0xcc4f25))return;let _0xd7b04c=[];for(let _0x3c48f6 of _0xcc4f25){if(typeof _0x3c48f6!='object'||_0x3c48f6===null)return;let {type:_0xf7a04e,text:_0xa13b2e}=_0x3c48f6;if(_0xf7a04e!==_0x1779a6(0x233)||typeof _0xa13b2e!=_0x1779a6(0x292))return;_0xd7b04c[_0x1779a6(0x219)](_0xa13b2e);}return _0xd7b04c[_0x1779a6(0x2dc)]('\x0a');}function He(_0x5a449d){const _0x5a049e=_0x1ca96b;if(_0x5a449d['trim']()==='')return null;let _0x540dbd;try{_0x540dbd=JSON[_0x5a049e(0x2af)](_0x5a449d);}catch{throw new _(_0x5a049e(0x226));}if(typeof _0x540dbd!=_0x5a049e(0x2b3)||_0x540dbd===null)throw new _(_0x5a049e(0x1b6));let {type:_0x3e04a3,message:_0x399c2e,uuid:_0x4858ab}=_0x540dbd;if(_0x3e04a3!==_0x5a049e(0x211))throw new _('an\x20input\x20line\x20has\x20type\x20'+JSON[_0x5a049e(0x2e1)](_0x3e04a3)+',\x20not\x20\x22user\x22');let _0x23c3cd=Je(_0x399c2e?.['content']);if(_0x23c3cd===void 0x0)throw new _(_0x5a049e(0x265));if(_0x23c3cd[_0x5a049e(0x2c1)]()==='')throw new _('an\x20input\x20line\x20has\x20an\x20empty\x20message');return{'text':_0x23c3cd,'uuid':typeof _0x4858ab==_0x5a049e(0x292)?_0x4858ab:void 0x0};}function oe(_0x3209de,_0x55fbdd){const _0x3f5eb6=_0x1ca96b;return JSON[_0x3f5eb6(0x2e1)]({'type':'user','message':{'role':_0x3f5eb6(0x211),'content':_0x3209de[_0x3f5eb6(0x233)]},'session_id':_0x55fbdd,..._0x3209de[_0x3f5eb6(0x147)]===void 0x0?{}:{'uuid':_0x3209de[_0x3f5eb6(0x147)]},'isReplay':!0x0})+'\x0a';}async function*re(_0x284fa6,_0x3f8735){const _0x18d1ee=_0x1ca96b;let _0xb1625e=_0x4704f9({'input':_0x284fa6,'crlfDelay':0x1/0x0});try{for await(let _0x2380f9 of _0xb1625e){let _0x133c13;try{_0x133c13=He(_0x2380f9);}catch(_0x5e601a){if(!(_0x5e601a instanceof _))throw _0x5e601a;_0x3f8735(_0x5e601a);continue;}_0x133c13&&(yield _0x133c13);}}finally{_0xb1625e[_0x18d1ee(0x1e5)]();}}import{BUSINESS_ANALYSIS_PRELOADED_SKILLS as _0x30f4f1,DelegateAgent as _0x1589f9,cancelTurn as _0x2e7590,InteropProcess as _0x5f4bac,complete as _0x12f3ad,DEFAULT_MODEL as _0x116abc,createBackendClient as _0x536d91,evaluate as _0x5b381d,isCompletionRequestError as _0x33f25b,isEvaluationRequestError as _0x51dde7,isTranscriptionError as _0x27e64b,rerank as _0x183158,transcribe as _0x446291,verify as _0x18f0a3,acceptDelegation as _0x3a7be6,cancelDelegation as _0x3d1cf8,claimDelegation as _0x14f743,completeDelegation as _0x51c2df,createDelegation as _0x570d57,deleteDelegation as _0x60d1fa,dismissDelegation as _0x5e9108,getSessionDelegations as _0x4457af,isDelegationError as _0x5772fd,listDelegations as _0x21ce84,listOrgUsers as _0x20a661,previewDelegation as _0x4865a5,TurnResultCollector as _0x28c1c0,agentEventToJsonLine as _0x11bc15,describeBaseUrlRejection as _0x38aa11,getActivitySummary as _0x2cfabc,getAuthFilePath as _0x2215e4,getByoWarnings as _0x76aad0,getCartographerAllowance as _0x402b7d,getDailyBreakdown as _0x353b6a,getLicensingSummary as _0x4fc860,getMonthlySpending as _0x31c1e0,isOutputFormat as _0x539eee,isCloudBaseUrl as _0x3982f5,isSafeProjectFolderSegment as _0x3fbb40,listModels as _0x1a42ff,listSessions as _0x4b0782,getSession as _0x526afc,renameSession as _0x3fb477,deleteSession as _0x25095e,deleteSessionTaskLog as _0x5f4124,forkSession as _0x538c00,isBackendRequestError as _0x2b9324,MAX_SESSION_PAGE_SIZE as _0x17694d,listTenants as _0x455bce,loadAndRefreshAuth as _0x125d86,loadAndRefreshSdkLogin as _0x2c94dc,parsePlatformBaseUrl as _0x3bba31,resolveBackendUrl as _0x588bbd,runHealthCheck as _0x54ec93,runHostCommand as _0x3a2c4b,runLoginFlow as _0xd140ae,runTurnForResult as _0x113a74,saveAuthData as _0x26bb53,switchTenant as _0x5414f9,toJsonLine as _0x14e7cd,ENV_TO_CLOUD as _0x205d9c,OUTPUT_FORMATS as _0x2c5ecb,isRunStopNotice as _0x172b0b,extractActionableErrorText as _0x55964b}from'@uipath/delegate-sdk';function ie(_0x8bb3b8){const _0x5139dc=_0x1ca96b;let {input:_0x2ac5a2,getAgent:_0x1019b4,replay:_0x353d1a,onEvent:_0x57f9f8,write:_0x4242fc,warn:_0x2ac282,isRunStopNotice:_0x4dd863,actionableErrorText:_0x578beb}=_0x8bb3b8,_0x225d26=0x0,_0x33e608=0x0,_0x5f15b8=Promise[_0x5139dc(0x2ec)](),_0x207464=!0x1,_0xb6ad94=()=>{},_0x16fa5e=new Promise(_0x20c7da=>{_0xb6ad94=_0x20c7da;}),_0x16c233=[],_0x27dd9f=_0x57f9f8(_0x35a8c1=>{const _0x315184=_0x5139dc;_0x35a8c1[_0x315184(0x28f)]===_0x315184(0x112)&&(_0xb6ad94(),_0x16c233[_0x315184(0x22d)]()?.());}),_0x5d6b5f=_0x344876=>{const _0x1f625a=_0x5139dc;_0x353d1a&&_0x4242fc(oe(_0x344876,_0x1019b4()[_0x1f625a(0x153)]()));},_0x26b4df=(async()=>{const _0x1afae8=_0x5139dc;await _0x16fa5e;for await(let _0x2113e0 of _0x2ac5a2[_0x1afae8(0x156)]){if(_0x207464)return;_0x225d26===0x0&&(_0x33e608=_0x1019b4()['getSessionMessages']()['length']),_0x225d26++;let _0x1d4080=new Promise(_0x4b0884=>{_0x16c233['push'](()=>{_0x5d6b5f(_0x2113e0),_0x4b0884();});}),_0x17f377=()=>{const _0x3316e5=_0x1afae8;_0x225d26--,_0x16c233[_0x3316e5(0x21e)]();},_0x4208ab=_0x1019b4()[_0x1afae8(0x1f6)](_0x2113e0[_0x1afae8(0x233)]);_0x5f15b8=_0x4208ab[_0x1afae8(0x12e)](()=>{});try{await _0x4208ab?await Promise[_0x1afae8(0x269)]([_0x1d4080,_0x1019b4()[_0x1afae8(0x200)]()]):(_0x17f377(),_0x2ac282('A\x20steering\x20message\x20arrived\x20after\x20the\x20turn\x20ended:\x20not\x20read.\x0a'));}catch(_0x4b9d35){_0x17f377(),_0x2ac282(_0x1afae8(0x15f)+(_0x4b9d35 instanceof Error?_0x4b9d35[_0x1afae8(0x1a3)]:String(_0x4b9d35))+'\x0a');}}})()[_0x5139dc(0x12e)](_0x3a42eb=>{const _0x2d5385=_0x5139dc;_0x2ac282(_0x2d5385(0x1eb)+(_0x3a42eb instanceof Error?_0x3a42eb[_0x2d5385(0x1a3)]:String(_0x3a42eb))+'\x0a');});return{'settle':async _0x6a0143=>{const _0x459fb8=_0x5139dc;if(await _0x5f15b8,_0x225d26===0x0)return _0x6a0143;await _0x1019b4()[_0x459fb8(0x200)]();for(let _0x3edec7 of _0x16c233)_0x3edec7();_0x16c233=[];let _0x423e2d=_0x1019b4()[_0x459fb8(0x1f1)]()[_0x459fb8(0x1ea)](_0x33e608)['findLast'](_0x1ebc4c=>_0x1ebc4c[_0x459fb8(0x2f7)]===_0x459fb8(0x20a)||_0x4dd863(_0x1ebc4c)||_0x1ebc4c[_0x459fb8(0x28f)]==='ai'&&_0x1ebc4c['widget']!=='agent_thought'&&_0x1ebc4c[_0x459fb8(0x2f7)]!==_0x459fb8(0x1c1)&&!!_0x1ebc4c[_0x459fb8(0x12c)]);if(!_0x423e2d)return{..._0x6a0143,'failed':!0x0,'text':_0x459fb8(0x221)};let _0xa8bb7a=_0x423e2d[_0x459fb8(0x2f7)]===_0x459fb8(0x20a);return typeof _0x423e2d[_0x459fb8(0x12c)]!='string'?{..._0x6a0143,'failed':_0xa8bb7a}:{..._0x6a0143,'failed':_0xa8bb7a,'text':_0xa8bb7a?_0x578beb(_0x423e2d[_0x459fb8(0x12c)]):_0x423e2d[_0x459fb8(0x12c)]};},'stop':()=>{_0x207464=!0x0,_0x27dd9f(),_0x2ac5a2['close']();}};}var Gt=['login',_0x1ca96b(0x192),_0x1ca96b(0x14e),_0x1ca96b(0x104),_0x1ca96b(0x1ee),_0x1ca96b(0x16b),_0x1ca96b(0x251),_0x1ca96b(0x122),_0x1ca96b(0x1f7),'evaluate',_0x1ca96b(0x2b5),_0x1ca96b(0x25b),_0x1ca96b(0x24a),_0x1ca96b(0x1ed),_0x1ca96b(0x1b5),_0x1ca96b(0x1f8)],ue=['',_0x1ca96b(0x14e),'whoami','check',_0x1ca96b(0x122),'usage','evaluate',_0x1ca96b(0x2b5),'verify',_0x1ca96b(0x24a),_0x1ca96b(0x1ed),'delegations',_0x1ca96b(0x1f8)],pe=[_0x1ca96b(0x22b),'medium',_0x1ca96b(0x25a),_0x1ca96b(0x15d),_0x1ca96b(0x174)],Wt=_0x30f4f1,B=_0x1ca96b(0x215);function b(_0x18e0c9,_0x228d2e,_0x419de8,_0x10bdf7){const _0x57a983=_0x1ca96b;let _0x5c3a0a=_0x18e0c9[_0x228d2e];return(!_0x5c3a0a||_0x5c3a0a['length']>0x1&&_0x5c3a0a[_0x57a983(0x29f)]('-'))&&(console[_0x57a983(0x1ce)](_0x419de8+_0x57a983(0x24e)+_0x10bdf7+'.'),process['exit'](0x2)),_0x5c3a0a;}function K(_0x3f5110,_0x430012,_0x3451c2,_0x1b23f2){const _0x404bb3=_0x1ca96b;let _0x1f8a71=b(_0x3f5110,_0x430012,_0x3451c2,_0x404bb3(0x272)),_0x508c89=Number(_0x1f8a71);return(!/^\d+$/['test'](_0x1f8a71)||_0x508c89<0x1||!Number[_0x404bb3(0x1fc)](_0x508c89)||_0x1b23f2!==void 0x0&&_0x508c89>_0x1b23f2)&&(console[_0x404bb3(0x1ce)](_0x3451c2+'\x20must\x20be\x20a\x20whole\x20number\x20'+(_0x1b23f2===void 0x0?_0x404bb3(0x1f3):_0x404bb3(0x270)+_0x1b23f2)+_0x404bb3(0x1ba)+_0x1f8a71+'.'),process[_0x404bb3(0x176)](0x2)),_0x508c89;}function Kt(_0xc7ab5d){const _0x1b5ee8=_0x1ca96b;let _0x3e33ee={'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':_0x1b5ee8(0x233),'inputFormat':'text','replayUserMessages':!0x1,'preloadSkills':[],'attachments':[],'skipEnvCheck':!0x1,'includeSubAgents':!0x1,'operands':[],'help':!0x1,'version':!0x1};Gt[_0x1b5ee8(0x2b6)](_0xc7ab5d[0x0])&&(_0x3e33ee[_0x1b5ee8(0x105)]=_0xc7ab5d[0x0],_0xc7ab5d=_0xc7ab5d['slice'](0x1));let _0x184ae0=[];for(let _0x3bac45=0x0;_0x3bac45<_0xc7ab5d[_0x1b5ee8(0x131)];_0x3bac45++){let _0x4af038=_0xc7ab5d[_0x3bac45];switch(_0x4af038){case _0x1b5ee8(0x175):case'-p':_0x3e33ee['print']=!0x0;break;case'--keep-alive':_0x3e33ee[_0x1b5ee8(0x23c)]=!0x0;break;case'--cleanup':_0x3e33ee[_0x1b5ee8(0x127)]=!0x0;break;case'--headless':_0x3e33ee[_0x1b5ee8(0x15b)]=!0x0;break;case _0x1b5ee8(0x1f0):_0x3e33ee['noComputerUse']=!0x0;break;case _0x1b5ee8(0x141):_0x3e33ee[_0x1b5ee8(0x215)]=!0x0,_0x3e33ee['noComputerUse']=!0x0,_0x3e33ee[_0x1b5ee8(0x203)][_0x1b5ee8(0x219)](...Wt);break;case'--no-connections':_0x3e33ee[_0x1b5ee8(0xfc)]=!0x0;break;case _0x1b5ee8(0x115):_0x3e33ee[_0x1b5ee8(0x1ab)]=!0x0;break;case'--no-memory':_0x3e33ee[_0x1b5ee8(0x23d)]=!0x0;break;case _0x1b5ee8(0x1d6):_0x3e33ee['taskAutomation']=!0x0;break;case _0x1b5ee8(0x126):case'-q':_0x3e33ee[_0x1b5ee8(0x1bb)]=!0x0;break;case'--verbose':_0x3e33ee['verbose']=!0x0;break;case _0x1b5ee8(0x10f):_0x3e33ee[_0x1b5ee8(0x287)]=_0xc7ab5d[++_0x3bac45];break;case _0x1b5ee8(0x14d):_0x3e33ee[_0x1b5ee8(0x1cb)]=_0xc7ab5d[++_0x3bac45];break;case _0x1b5ee8(0x227):_0x3e33ee[_0x1b5ee8(0x22a)]=_0xc7ab5d[++_0x3bac45];break;case _0x1b5ee8(0x2d0):_0x3e33ee[_0x1b5ee8(0x280)]=_0xc7ab5d[++_0x3bac45];break;case'--worker-id':_0x3e33ee[_0x1b5ee8(0x201)]=_0xc7ab5d[++_0x3bac45];break;case _0x1b5ee8(0x1aa):_0x3e33ee[_0x1b5ee8(0x203)][_0x1b5ee8(0x219)](b(_0xc7ab5d,++_0x3bac45,_0x4af038,'a\x20skill\x20name'));break;case _0x1b5ee8(0x26c):{let _0x499b5e=b(_0xc7ab5d,++_0x3bac45,_0x4af038,_0x1b5ee8(0x24d));_0x3fbb40(_0x499b5e)||(console[_0x1b5ee8(0x1ce)](_0x1b5ee8(0x118)+_0x499b5e+'\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[_0x1b5ee8(0x176)](0x2)),_0x3e33ee[_0x1b5ee8(0x1fe)]=_0x499b5e;break;}case'--vertical':_0x3e33ee[_0x1b5ee8(0x1af)]=b(_0xc7ab5d,++_0x3bac45,_0x4af038,'a\x20vertical\x20id');break;case _0x1b5ee8(0x2ef):{let _0x29016c=b(_0xc7ab5d,++_0x3bac45,_0x4af038,'a\x20format\x20('+_0x2c5ecb['join'](_0x1b5ee8(0x1c2))+')');_0x539eee(_0x29016c)||(console[_0x1b5ee8(0x1ce)](_0x1b5ee8(0x12d)+_0x29016c+'.\x20Use\x20'+_0x2c5ecb[_0x1b5ee8(0x2dc)](_0x1b5ee8(0x1c2))+'.'),process['exit'](0x2)),_0x3e33ee[_0x1b5ee8(0x1d3)]=_0x29016c;break;}case _0x1b5ee8(0x103):{let _0x1dc9a1=b(_0xc7ab5d,++_0x3bac45,_0x4af038,_0x1b5ee8(0x130)+j[_0x1b5ee8(0x2dc)](_0x1b5ee8(0x1c2))+')');se(_0x1dc9a1)||(console[_0x1b5ee8(0x1ce)]('Invalid\x20--input-format:\x20'+_0x1dc9a1+_0x1b5ee8(0x26b)+j[_0x1b5ee8(0x2dc)](_0x1b5ee8(0x1c2))+'.'),process[_0x1b5ee8(0x176)](0x2)),_0x3e33ee[_0x1b5ee8(0x144)]=_0x1dc9a1;break;}case _0x1b5ee8(0x29b):_0x3e33ee[_0x1b5ee8(0x267)]=!0x0;break;case'--session':_0x3e33ee[_0x1b5ee8(0x291)]=b(_0xc7ab5d,++_0x3bac45,_0x4af038,_0x1b5ee8(0x1c3));break;case _0x1b5ee8(0x2cf):_0x3e33ee[_0x1b5ee8(0x25e)]=K(_0xc7ab5d,++_0x3bac45,_0x4af038);break;case'--limit':_0x3e33ee[_0x1b5ee8(0x22f)]=K(_0xc7ab5d,++_0x3bac45,_0x4af038,_0x17694d);break;case _0x1b5ee8(0x1b2):_0x3e33ee[_0x1b5ee8(0x15c)]=!0x0;break;case _0x1b5ee8(0x143):_0x3e33ee[_0x1b5ee8(0x1e9)]=b(_0xc7ab5d,++_0x3bac45,_0x4af038,_0x1b5ee8(0x2f3));break;case'--attach':{let _0x30cc3a=_0x185e3b['resolve'](process[_0x1b5ee8(0x2cd)](),b(_0xc7ab5d,++_0x3bac45,_0x4af038,_0x1b5ee8(0x166)));_0x35e9de[_0x1b5ee8(0x123)](_0x30cc3a)||(console[_0x1b5ee8(0x1ce)]('--attach:\x20no\x20such\x20file\x20or\x20folder:\x20'+_0x30cc3a),process[_0x1b5ee8(0x176)](0x2)),_0x3e33ee[_0x1b5ee8(0x285)]['push'](_0x30cc3a);break;}case _0x1b5ee8(0x182):_0x3e33ee[_0x1b5ee8(0x241)]=b(_0xc7ab5d,++_0x3bac45,_0x4af038,_0x1b5ee8(0x256));break;case _0x1b5ee8(0x137):_0x3e33ee[_0x1b5ee8(0x2e6)]=b(_0xc7ab5d,++_0x3bac45,_0x4af038,_0x1b5ee8(0x13e));break;case'--summary':_0x3e33ee['contextSummary']=b(_0xc7ab5d,++_0x3bac45,_0x4af038,_0x1b5ee8(0x293));break;case _0x1b5ee8(0x13d):_0x3e33ee[_0x1b5ee8(0x2e3)]=K(_0xc7ab5d,++_0x3bac45,_0x4af038,0x16d);break;case _0x1b5ee8(0x277):_0x3e33ee[_0x1b5ee8(0x186)]=_0x185e3b['resolve'](process[_0x1b5ee8(0x2cd)](),b(_0xc7ab5d,++_0x3bac45,_0x4af038,_0x1b5ee8(0x10a)));break;case _0x1b5ee8(0x194):_0x3e33ee[_0x1b5ee8(0x223)]=_0x185e3b[_0x1b5ee8(0x2ec)](process['cwd'](),b(_0xc7ab5d,++_0x3bac45,_0x4af038,_0x1b5ee8(0x10a)));break;case'--effort':{let _0xdb383c=b(_0xc7ab5d,++_0x3bac45,_0x4af038,'an\x20effort\x20tier');pe[_0x1b5ee8(0x2b6)](_0xdb383c)||(console[_0x1b5ee8(0x1ce)]('Invalid\x20--effort:\x20'+_0xdb383c+_0x1b5ee8(0x26b)+pe[_0x1b5ee8(0x2dc)]('\x20|\x20')+'.'),process[_0x1b5ee8(0x176)](0x2)),_0x3e33ee[_0x1b5ee8(0x183)]=_0xdb383c;break;}case _0x1b5ee8(0x2a8):{let _0x3771cc=_0xc7ab5d[++_0x3bac45];(!_0x3771cc||_0x3771cc[_0x1b5ee8(0x29f)]('--'))&&(console[_0x1b5ee8(0x1ce)]('--tenant\x20requires\x20a\x20tenant\x20name.'),process[_0x1b5ee8(0x176)](0x2)),_0x3e33ee[_0x1b5ee8(0x192)]=_0x3771cc;break;}case _0x1b5ee8(0x117):{let _0xa20328=_0xc7ab5d[++_0x3bac45];[_0x1b5ee8(0xed),'staging','production',_0x1b5ee8(0x284)][_0x1b5ee8(0x2b6)](_0xa20328)||(console[_0x1b5ee8(0x1ce)](_0x1b5ee8(0x2c9)+_0xa20328+_0x1b5ee8(0x161)),process[_0x1b5ee8(0x176)](0x2)),_0x3e33ee[_0x1b5ee8(0x253)]=_0xa20328;break;}case _0x1b5ee8(0x214):case _0x1b5ee8(0x2c3):{let _0x337861=b(_0xc7ab5d,++_0x3bac45,_0x4af038,_0x1b5ee8(0x21b)),_0x53295c=_0x3bba31(_0x337861);if(_0x53295c['ok']===!0x1){console[_0x1b5ee8(0x1ce)](_0x38aa11(_0x337861,_0x53295c[_0x1b5ee8(0x27c)])),process[_0x1b5ee8(0x176)](0x2);break;}_0x3e33ee['url']=_0x53295c['baseUrl'];break;}case _0x1b5ee8(0x2c0):_0x3e33ee[_0x1b5ee8(0xe8)]=!0x0;break;case'-h':case'--help':_0x3e33ee[_0x1b5ee8(0x13b)]=!0x0;break;case'-v':case _0x1b5ee8(0x2ba):_0x3e33ee[_0x1b5ee8(0x207)]=!0x0;break;default:_0x4af038['startsWith']('--')&&(console['error'](_0x1b5ee8(0x218)+_0x4af038),process[_0x1b5ee8(0x176)](0x2)),_0x184ae0['push'](_0x4af038);}}return _0x3e33ee[_0x1b5ee8(0x192)]!==void 0x0&&_0x3e33ee[_0x1b5ee8(0x105)]!=='login'&&(console['error'](_0x1b5ee8(0x102)),process['exit'](0x2)),_0x3e33ee[_0x1b5ee8(0x2e8)]!==void 0x0&&_0x3e33ee[_0x1b5ee8(0x253)]!==void 0x0&&(console[_0x1b5ee8(0x1ce)](_0x1b5ee8(0x27d)),process[_0x1b5ee8(0x176)](0x2)),_0x3e33ee[_0x1b5ee8(0x2e8)]!==void 0x0&&_0x3e33ee[_0x1b5ee8(0x105)]!==_0x1b5ee8(0x134)&&(console[_0x1b5ee8(0x1ce)](_0x1b5ee8(0x224)),process[_0x1b5ee8(0x176)](0x2)),_0x3e33ee[_0x1b5ee8(0x2e3)]!==void 0x0&&_0x3e33ee[_0x1b5ee8(0x105)]!=='usage'&&(console[_0x1b5ee8(0x1ce)](_0x1b5ee8(0x2a4)),process['exit'](0x2)),_0x3e33ee[_0x1b5ee8(0x1e9)]!==void 0x0&&(_0x3e33ee[_0x1b5ee8(0x105)]!=='complete'&&_0x3e33ee[_0x1b5ee8(0x105)]!==''||_0x3e33ee[_0x1b5ee8(0x127)])&&(console[_0x1b5ee8(0x1ce)]('--json-schema\x20applies\x20to\x20prompts\x20and\x20to\x20`delegate-cli\x20complete`\x20only.'),process[_0x1b5ee8(0x176)](0x2)),_0x3e33ee[_0x1b5ee8(0x285)]['length']>0x0&&(_0x3e33ee[_0x1b5ee8(0x105)]!==''||_0x3e33ee[_0x1b5ee8(0x127)])&&(console[_0x1b5ee8(0x1ce)]('--attach\x20applies\x20to\x20prompts\x20only.'),process[_0x1b5ee8(0x176)](0x2)),_0x3e33ee[_0x1b5ee8(0x184)]&&(_0x3e33ee[_0x1b5ee8(0x105)]!==''||_0x3e33ee[_0x1b5ee8(0x127)])&&(console['error'](_0x1b5ee8(0x2dd)),process[_0x1b5ee8(0x176)](0x2)),_0x3e33ee[_0x1b5ee8(0x184)]&&(_0x3e33ee[_0x1b5ee8(0x15b)]||_0x3e33ee['noComputerUse']||_0x3e33ee[_0x1b5ee8(0x1af)]?.[_0x1b5ee8(0x2c1)]()===B)&&(console['error'](_0x1b5ee8(0x29e)),process[_0x1b5ee8(0x176)](0x2)),_0x3e33ee[_0x1b5ee8(0x215)]&&(_0x3e33ee[_0x1b5ee8(0x1af)]!==void 0x0&&_0x3e33ee[_0x1b5ee8(0x1af)][_0x1b5ee8(0x2c1)]()!==B&&(console[_0x1b5ee8(0x1ce)]('--cartographer\x20runs\x20the\x20'+B+_0x1b5ee8(0x262)+_0x3e33ee['vertical']+_0x1b5ee8(0xe6)),process[_0x1b5ee8(0x176)](0x2)),_0x3e33ee['vertical']=B),_0x3e33ee[_0x1b5ee8(0xe8)]&&_0x3e33ee['subcommand']!=='login'&&(console['error'](_0x1b5ee8(0x13a)),process[_0x1b5ee8(0x176)](0x2)),_0x3e33ee[_0x1b5ee8(0x1d3)]!=='text'&&!ue[_0x1b5ee8(0x2b6)](_0x3e33ee[_0x1b5ee8(0x105)])&&(console['error']('--output-format\x20'+_0x3e33ee[_0x1b5ee8(0x1d3)]+_0x1b5ee8(0x116)+ue[_0x1b5ee8(0x24c)](Boolean)[_0x1b5ee8(0x2dc)](',\x20')+'.'),process[_0x1b5ee8(0x176)](0x2)),(_0x3e33ee[_0x1b5ee8(0x144)]!==_0x1b5ee8(0x233)||_0x3e33ee[_0x1b5ee8(0x267)])&&_0x3e33ee['subcommand']!==''&&(console['error']('--input-format\x20and\x20--replay-user-messages\x20apply\x20to\x20prompts\x20only.'),process[_0x1b5ee8(0x176)](0x2)),_0x3e33ee[_0x1b5ee8(0x267)]&&_0x3e33ee['inputFormat']!==_0x1b5ee8(0x19b)&&(console['error'](_0x1b5ee8(0x135)),process[_0x1b5ee8(0x176)](0x2)),_0x3e33ee[_0x1b5ee8(0x144)]===_0x1b5ee8(0x19b)&&_0x3e33ee['outputFormat']!==_0x1b5ee8(0x19b)&&(console['error'](_0x1b5ee8(0x190)),process[_0x1b5ee8(0x176)](0x2)),(_0x3e33ee[_0x1b5ee8(0x25e)]!==void 0x0||_0x3e33ee[_0x1b5ee8(0x22f)]!==void 0x0||_0x3e33ee[_0x1b5ee8(0x15c)])&&_0x3e33ee['subcommand']!==_0x1b5ee8(0x122)&&(console[_0x1b5ee8(0x1ce)](_0x1b5ee8(0x17d)),process[_0x1b5ee8(0x176)](0x2)),(_0x3e33ee[_0x1b5ee8(0x2e6)]!==void 0x0||_0x3e33ee[_0x1b5ee8(0x1d9)]!==void 0x0)&&_0x3e33ee['subcommand']!=='delegations'&&(console[_0x1b5ee8(0x1ce)](_0x1b5ee8(0x1a2)),process[_0x1b5ee8(0x176)](0x2)),_0x3e33ee['turnId']!==void 0x0&&_0x3e33ee['subcommand']!=='sessions'&&(console[_0x1b5ee8(0x1ce)]('--turn\x20applies\x20to\x20`delegate-cli\x20sessions\x20cancel`\x20only.'),process[_0x1b5ee8(0x176)](0x2)),_0x3e33ee[_0x1b5ee8(0x203)]=[...new Set(_0x3e33ee[_0x1b5ee8(0x203)])],_0x3e33ee['operands']=_0x184ae0,_0x3e33ee[_0x1b5ee8(0xec)]=_0x184ae0['join']('\x20'),_0x3e33ee[_0x1b5ee8(0x144)]===_0x1b5ee8(0x19b)&&_0x3e33ee[_0x1b5ee8(0xec)]!==''&&(console[_0x1b5ee8(0x1ce)](_0x1b5ee8(0x11c)),process['exit'](0x2)),_0x3e33ee;}var O=_0x40e64b=>{const _0x5ba27c=_0x1ca96b;process[_0x5ba27c(0x28e)][_0x5ba27c(0x1c6)](_0x40e64b);};function Qt(){const _0x130343=_0x1ca96b;let _0x1437fa=process[_0x130343(0x28e)][_0x130343(0x1c6)],_0x5c5307=_0x1437fa[_0x130343(0x1b8)](process[_0x130343(0x28e)]),_0x1bb9bb=O;return O=_0x42cff3=>{_0x5c5307(_0x42cff3);},process[_0x130343(0x28e)][_0x130343(0x1c6)]=(..._0x5baf8a)=>process[_0x130343(0x18f)][_0x130343(0x1c6)](..._0x5baf8a),()=>{const _0x4fa447=_0x130343;process[_0x4fa447(0x28e)]['write']=_0x1437fa,O=_0x1bb9bb;};}function m(_0xea57af,_0x360985,_0x119fc5){const _0x2a536e=_0x1ca96b;if(_0xea57af['outputFormat']===_0x2a536e(0x233)){_0x119fc5(_0x360985);return;}O(_0x14e7cd(_0x360985));}function qt(){const _0x4e3b0e=_0x1ca96b;let _0x1115a3=_0x4e3b0e(0xf0)['trim']();console[_0x4e3b0e(0xf3)](_0x1115a3);}function zt(){const _0x45886d=_0x1ca96b;try{return JSON[_0x45886d(0x2af)](_0x35e9de['readFileSync'](_0x185e3b[_0x45886d(0x2dc)](__dirname,'..','package.json'),'utf-8'))[_0x45886d(0x207)]||_0x45886d(0x149);}catch{return _0x45886d(0x149);}}var Yt=0x7d0;async function me(_0x425cf1,_0x379356){const _0x1843c6=_0x1ca96b;let _0x9b95d8=_0x379356?[_0x379356]:[];for await(let _0xfc9eff of _0x425cf1)_0x9b95d8[_0x1843c6(0x219)](Buffer[_0x1843c6(0x107)](_0xfc9eff));return Buffer['concat'](_0x9b95d8)[_0x1843c6(0x216)](_0x1843c6(0x10d))[_0x1843c6(0x2c1)]();}function Vt(_0x5b83cc,_0x5f0d75){return new Promise(_0xa229ec=>{const _0x52b760=_0x3df7;let _0x122174=_0x2e1002=>{const _0x7d4d87=_0x3df7;clearTimeout(_0x40beee),_0x5b83cc[_0x7d4d87(0x16d)](_0x7d4d87(0x189),_0x5a9272),_0x5b83cc[_0x7d4d87(0x16d)]('end',_0x19e3b6),_0x5b83cc[_0x7d4d87(0x16d)](_0x7d4d87(0x1ce),_0x19e3b6),_0x5b83cc[_0x7d4d87(0x19f)](),_0xa229ec(_0x2e1002);},_0x5a9272=_0x429855=>_0x122174(Buffer[_0x52b760(0x107)](_0x429855)),_0x19e3b6=()=>_0x122174(null),_0x40beee=setTimeout(()=>_0x122174(null),_0x5f0d75);_0x5b83cc['on']('data',_0x5a9272),_0x5b83cc['on'](_0x52b760(0x152),_0x19e3b6),_0x5b83cc['on'](_0x52b760(0x1ce),_0x19e3b6),_0x5b83cc[_0x52b760(0x12f)]();});}async function H(_0x5f15a1,_0x108903,_0x28d78a=Yt){const _0x4e569c=_0x1ca96b;let _0x38d331=_0x5f15a1==='-';if(!_0x38d331&&_0x5f15a1)return _0x5f15a1;if(!_0x38d331&&_0x108903[_0x4e569c(0x2d1)])return'';if(_0x38d331)return me(_0x108903,null);let _0x3671f3=await Vt(_0x108903,_0x28d78a);return _0x3671f3?me(_0x108903,_0x3671f3):'';}function z(){const _0x1ac223=_0x1ca96b;return _0x185e3b['join'](process.env.HOME||process.env.USERPROFILE||'',_0x1ac223(0x2e2),_0x1ac223(0xf6));}function G(_0x58e19a){const _0x4c58ff=_0x1ca96b;try{let _0x4e7028=JSON[_0x4c58ff(0x2af)](_0x35e9de[_0x4c58ff(0x29d)](_0x58e19a,'utf-8'));return!_0x4e7028[_0x4c58ff(0x2c6)]||!_0x4e7028[_0x4c58ff(0x2eb)]||!_0x4e7028[_0x4c58ff(0x27a)]?null:_0x4e7028;}catch{return null;}}function Xt(){const _0x2600f1=_0x1ca96b;let _0x254d17=[{'file':_0x2215e4(),'isDesktopFallback':!0x1},{'file':z(),'isDesktopFallback':!0x0}];for(let _0x19e285 of _0x254d17){let _0x445ceb=G(_0x19e285[_0x2600f1(0x1d1)]);if(_0x445ceb)return{..._0x19e285,'auth':_0x445ceb};}return null;}async function Zt(){const _0x4d124b=_0x1ca96b;let _0x5247f1=_0x2215e4();if(!_0x35e9de['existsSync'](_0x5247f1)){let _0x156b28=z();console[_0x4d124b(0xf3)](G(_0x156b28)?_0x4d124b(0x179)+_0x156b28+'\x20—\x20sign\x20out\x20in\x20the\x20Delegate\x20app\x20to\x20clear\x20that.':_0x4d124b(0x29a));return;}_0x35e9de[_0x4d124b(0x109)](_0x5247f1),console[_0x4d124b(0xf3)](_0x4d124b(0x17f)+_0x5247f1);}async function en(_0xce90fa){const _0x13367b=_0x1ca96b;let _0x555b7a=Y(),_0x58275d,_0x2e4c37;if(_0x555b7a)_0x58275d=_0x555b7a,_0x2e4c37=_0x13367b(0x11f);else{let _0x55d493=Xt();if(!_0x55d493)throw new Error(Te);_0x58275d=_0x55d493['auth'],_0x2e4c37=_0x55d493[_0x13367b(0x1cf)]?_0x55d493[_0x13367b(0x1d1)]+_0x13367b(0x2e9):_0x55d493[_0x13367b(0x1d1)];}let _0x5d20ed={'source':_0x2e4c37,'baseUrl':_0x58275d[_0x13367b(0x168)]??null,'deployment':tn(_0x58275d[_0x13367b(0x168)]),'organization':{'id':_0x58275d[_0x13367b(0x27a)],'slug':_0x58275d[_0x13367b(0x1ad)]??null},'tenant':{'id':_0x58275d[_0x13367b(0x2eb)],'name':_0x58275d[_0x13367b(0x2b7)]??null},'tokenExpiresAt':_0x58275d['expiresAt']?new Date(_0x58275d[_0x13367b(0x108)]*0x3e8)['toISOString']():null};m(_0xce90fa,_0x5d20ed,()=>{const _0x29b65c=_0x13367b;let _0x4c7c4e=['Source:\x20\x20\x20\x20\x20\x20\x20'+_0x2e4c37,_0x29b65c(0x178)+(_0x58275d[_0x29b65c(0x168)]??_0x29b65c(0x149)),'Deployment:\x20\x20\x20'+_0x5d20ed[_0x29b65c(0x239)],_0x29b65c(0x17a)+(_0x58275d[_0x29b65c(0x1ad)]??_0x29b65c(0xfb))+'\x20('+_0x58275d[_0x29b65c(0x27a)]+')',_0x29b65c(0x16f)+(_0x58275d[_0x29b65c(0x2b7)]??_0x29b65c(0xfb))+'\x20('+_0x58275d[_0x29b65c(0x2eb)]+')'];if(_0x58275d[_0x29b65c(0x108)]){let _0x5683cb=_0x58275d['expiresAt']-Math[_0x29b65c(0x2cc)](Date['now']()/0x3e8);_0x4c7c4e[_0x29b65c(0x219)](_0x5683cb>0x0?_0x29b65c(0x18d)+_0x5d20ed['tokenExpiresAt']+_0x29b65c(0x2a7)+Math[_0x29b65c(0x28c)](_0x5683cb/0x3c)+_0x29b65c(0x1f4):_0x29b65c(0x26f)+_0x5d20ed[_0x29b65c(0x1cc)]);}process[_0x29b65c(0x28e)][_0x29b65c(0x1c6)](_0x4c7c4e['join']('\x0a')+'\x0a');});}var Te=_0x1ca96b(0x2ca);function tn(_0x59f0c7){const _0x5e7f6c=_0x1ca96b;return _0x59f0c7?_0x3982f5(_0x59f0c7)?_0x5e7f6c(0x297):'self-hosted\x20(Automation\x20Suite\x20/\x20Dedicated)':_0x5e7f6c(0x149);}function Y(){let _0x50741b=process.env.AUTH_TOKEN_FILE;return(process.env.AUTH_TOKEN||_0x50741b)&&process.env.TENANT_ID&&process.env.ORG_ID?{'accessToken':_0x50741b?nn(_0x50741b):process.env.AUTH_TOKEN,..._0x50741b?{'accessTokenFile':_0x50741b}:{},'tenantId':process.env.TENANT_ID,'organizationId':process.env.ORG_ID,'orgLogicalName':process.env.ORG_SLUG,'tenantName':process.env.TENANT_SLUG,'baseUrl':Ue()}:null;}function nn(_0x5313bc){const _0x338a1d=_0x1ca96b;let _0x382469;try{_0x382469=_0x35e9de[_0x338a1d(0x29d)](_0x5313bc,_0x338a1d(0x10d))['trim']();}catch(_0x48cd55){throw new Error('AUTH_TOKEN_FILE\x20\x27'+_0x5313bc+_0x338a1d(0x110)+_0x48cd55[_0x338a1d(0x1a3)]);}let _0x4e2cfe=_0x382469[_0x338a1d(0x29f)](_0x338a1d(0x1a9))?_0x382469['slice'](0x7)[_0x338a1d(0x2c1)]():_0x382469;if(!_0x4e2cfe)throw new Error(_0x338a1d(0x145)+_0x5313bc+_0x338a1d(0x278));return _0x4e2cfe;}function Ue(){const _0x5f3ed2=_0x1ca96b;let _0xfb7ca5=process.env.UIPATH_BASE_URL;if(!_0xfb7ca5)return;let _0x7d45db=_0x3bba31(_0xfb7ca5);if(_0x7d45db['ok']===!0x1)throw new Error(_0x5f3ed2(0x23a)+_0x38aa11(_0xfb7ca5,_0x7d45db['rejection']));return _0x7d45db[_0x5f3ed2(0x168)];}async function V(){let _0x252650=Y();if(_0x252650)return _0x252650;let _0x5ca754=await _0x125d86();if(_0x5ca754)return _0x5ca754;throw new Error(Te);}async function sn(){const _0x2a43b5=_0x1ca96b;await new _0x5f4bac()[_0x2a43b5(0x27b)]({'force':!0x0}),console[_0x2a43b5(0xf3)](_0x2a43b5(0x10c));}function X(_0x573e9b,_0x5b4777,_0x2f47c4){const _0x52edd6=_0x1ca96b;_0x573e9b?process[_0x52edd6(0x18f)]['write']('[env='+_0x573e9b+_0x52edd6(0x197)+_0x2f47c4+'\x0a'):!_0x5b4777&&!process.env.BACKEND_URL&&process[_0x52edd6(0x18f)][_0x52edd6(0x1c6)](_0x52edd6(0x212)+_0x2f47c4+'\x0a');}async function $(_0x36c3a5){const _0x1fc038=_0x1ca96b;let _0x34688d=await V(),_0x990afc=_0x588bbd(_0x36c3a5[_0x1fc038(0x253)],_0x34688d,_0x36c3a5[_0x1fc038(0x287)]);return X(_0x36c3a5[_0x1fc038(0x253)],_0x36c3a5['backendUrl'],_0x990afc),{'auth':_0x34688d,'backendUrl':_0x990afc,'client':_0x536d91({'auth':_0x34688d,'backendUrl':_0x990afc})};}async function on(_0x8fb925){const _0x4bb5e1=_0x1ca96b;let {client:_0x207130}=await $(_0x8fb925),[_0x142741,_0x57fb53]=await Promise[_0x4bb5e1(0x2db)]([_0x1a42ff(_0x207130),_0x76aad0(_0x207130)[_0x4bb5e1(0x12e)](_0x32c5c8=>(process[_0x4bb5e1(0x18f)][_0x4bb5e1(0x1c6)](_0x4bb5e1(0x255)+(_0x32c5c8 instanceof Error?_0x32c5c8[_0x4bb5e1(0x1a3)]:String(_0x32c5c8))+'\x0a'),{}))]),_0x1908d2=_0x142741[_0x4bb5e1(0x1e1)](_0x181b87=>_0x57fb53[_0x181b87['id']]?{..._0x181b87,'byoWarning':_0x57fb53[_0x181b87['id']]}:_0x181b87);m(_0x8fb925,_0x1908d2,rn);}function rn(_0x4301c9){const _0x264826=_0x1ca96b;if(_0x4301c9[_0x264826(0x131)]===0x0){process['stderr'][_0x264826(0x1c6)](_0x264826(0x2aa));return;}process[_0x264826(0x28e)][_0x264826(0x1c6)](_0x264826(0x1a5)+_0x4301c9[_0x264826(0x131)]+_0x264826(0x2a9));for(let _0x21470b of _0x4301c9){let _0x2ae5e3=_0x21470b[_0x264826(0x237)]&&_0x21470b[_0x264826(0x237)]!==_0x21470b['id']?'\x20('+_0x21470b[_0x264826(0x237)]+')':'';process[_0x264826(0x28e)][_0x264826(0x1c6)]('\x20\x20'+_0x21470b['id']+_0x2ae5e3+'\x0a'),_0x21470b[_0x264826(0x274)]&&process[_0x264826(0x28e)][_0x264826(0x1c6)](_0x264826(0x16e)+_0x21470b[_0x264826(0x274)]+'\x0a'),_0x21470b[_0x264826(0x1ca)]&&process[_0x264826(0x28e)][_0x264826(0x1c6)](_0x264826(0x1ae)+(_0x21470b[_0x264826(0x2f2)]?'\x20('+_0x21470b[_0x264826(0x2f2)]+')':'')+'\x0a'),_0x21470b[_0x264826(0x290)]&&process[_0x264826(0x28e)][_0x264826(0x1c6)](_0x264826(0x2a3)+_0x21470b['byoWarning']+'\x0a');}process[_0x264826(0x28e)][_0x264826(0x1c6)](_0x264826(0x1fa));}var fe=[_0x1ca96b(0x298),'show','rename',_0x1ca96b(0x10b),_0x1ca96b(0x19d),'fork'];async function an(_0x468c2b){const _0x503f52=_0x1ca96b;let [_0x3e3d46='',_0x4cc538='',..._0x35937f]=_0x468c2b['operands'];if(_0x3e3d46&&!fe['includes'](_0x3e3d46)&&(console['error'](_0x503f52(0x172)+_0x3e3d46+_0x503f52(0x252)+fe[_0x503f52(0x2dc)](_0x503f52(0x1c2))+'.'),process[_0x503f52(0x176)](0x2)),_0x468c2b[_0x503f52(0x241)]!==void 0x0&&_0x3e3d46!=='cancel'&&(console[_0x503f52(0x1ce)](_0x503f52(0x257)),process[_0x503f52(0x176)](0x2)),_0x3e3d46&&_0x3e3d46!=='list'){await ln(_0x468c2b,_0x3e3d46,_0x4cc538,_0x35937f[_0x503f52(0x2dc)]('\x20')['trim']());return;}_0x468c2b['operands'][_0x503f52(0x131)]>0x1&&(console[_0x503f52(0x1ce)](_0x503f52(0x25f)),process[_0x503f52(0x176)](0x2));let {client:_0x597a2d}=await $(_0x468c2b),_0xc1a55e=await _0x4b0782(_0x597a2d,{'page':_0x468c2b[_0x503f52(0x25e)],'pageSize':_0x468c2b[_0x503f52(0x22f)],'includeSubAgents':_0x468c2b[_0x503f52(0x15c)]});m(_0x468c2b,_0xc1a55e,pn);}async function ln(_0x117948,_0xcbd509,_0x5f245f,_0x3a4070){const _0x190856=_0x1ca96b;if((_0x117948[_0x190856(0x25e)]!==void 0x0||_0x117948['limit']!==void 0x0||_0x117948['includeSubAgents'])&&(console[_0x190856(0x1ce)](_0x190856(0x204)),process[_0x190856(0x176)](0x2)),_0xcbd509===_0x190856(0x19d)){await dn(_0x117948,_0x5f245f,_0x3a4070);return;}if(_0xcbd509==='fork'){await un(_0x117948,_0x5f245f,_0x3a4070);return;}(!_0x5f245f||_0xcbd509===_0x190856(0xf7)!=!!_0x3a4070)&&(console['error'](_0x190856(0x1ac)+_0xcbd509+_0x190856(0x1a1)+(_0xcbd509==='rename'?'\x20<title>':'')),process[_0x190856(0x176)](0x2));let {client:_0x2aa42a}=await $(_0x117948);try{if(_0xcbd509===_0x190856(0x289)){let _0x4488eb=await _0x526afc(_0x2aa42a,_0x5f245f);_0x4488eb||ge(_0x5f245f),m(_0x117948,_0x4488eb,cn);}else{if(_0xcbd509==='rename'){let _0x17a05f=await _0x3fb477(_0x2aa42a,_0x5f245f,_0x3a4070);m(_0x117948,_0x17a05f,_0x20b6d6=>{const _0x3ab4e=_0x190856;process[_0x3ab4e(0x28e)][_0x3ab4e(0x1c6)](_0x3ab4e(0x2e0)+_0x20b6d6['id']+':\x20'+_0x20b6d6[_0x3ab4e(0x159)]+'\x0a');});}else await _0x25095e(_0x2aa42a,_0x5f245f),await _0x5f4124(_0x5f245f,_0x117948[_0x190856(0x186)]),m(_0x117948,{'id':_0x5f245f,'deleted':!0x0},_0x153e13=>{const _0x59c7b2=_0x190856;process['stdout'][_0x59c7b2(0x1c6)](_0x59c7b2(0x275)+_0x153e13['id']+'.\x0a');});}}catch(_0x45ec1f){if(!_0x2b9324(_0x45ec1f,0x194))throw _0x45ec1f;ge(_0x5f245f);}}function ge(_0x17a696){const _0x130996=_0x1ca96b;console['error'](_0x130996(0x163)+_0x17a696+_0x130996(0x14c)),process[_0x130996(0x176)](0x1);}function cn(_0x3b1ed4){const _0x43eb78=_0x1ca96b;process[_0x43eb78(0x28e)][_0x43eb78(0x1c6)](_0x43eb78(0x164)+_0x3b1ed4['id']+'\x0a'),process[_0x43eb78(0x28e)]['write'](_0x43eb78(0x1a6)+_0x3b1ed4[_0x43eb78(0x159)]+'\x0a'),process[_0x43eb78(0x28e)][_0x43eb78(0x1c6)](_0x43eb78(0x2f0)+_0x3b1ed4[_0x43eb78(0x195)]+'\x0a'),process['stdout'][_0x43eb78(0x1c6)]('Organization\x20\x20'+_0x3b1ed4[_0x43eb78(0x27a)]+'\x0a'),_0x3b1ed4[_0x43eb78(0x27e)]&&process[_0x43eb78(0x28e)][_0x43eb78(0x1c6)](_0x43eb78(0x142)+_0x3b1ed4['delegationId']+'\x0a');}function _0x3df7(_0x52f9c9,_0xc3bddd){_0x52f9c9=_0x52f9c9-0xe5;const _0x11a332=_0x11a3();let _0x3df799=_0x11a332[_0x52f9c9];return _0x3df799;}function _0x11a3(){const _0x5d121a=['\x20from\x20','\x20\x20(sub-agent\x20of\x20','--input-format\x20stream-json\x20reads\x20the\x20prompt\x20from\x20stdin:\x20pass\x20no\x20prompt\x20argument.','thinking','\x20(resume\x20with\x20--session\x20','environment\x20variables\x20(AUTH_TOKEN/TENANT_ID/ORG_ID)','argv','now','sessions','existsSync',':\x20bucket\x20number\x20(Enter\x20to\x20leave\x20out):\x20','delegations\x20accept\x20<delegation-id>','--quiet','cleanup',')\x20—\x20saved\x20to\x20','parentSessionId','No\x20usage\x20in\x20the\x20last\x20','settle','content','Invalid\x20--output-format:\x20','catch','resume','a\x20format\x20(','length','66KgmsWr','You>\x20','login','--replay-user-messages\x20needs\x20--input-format\x20stream-json.','split','--to',').\x0a','from\x20','--skip-env-check\x20applies\x20to\x20`delegate-cli\x20login`\x20only.','help','Already\x20answered','--days','an\x20email\x20address\x20or\x20name','Licensing:\x20\x20\x20\x20','confidence','--cartographer','Delegation\x20\x20\x20\x20','--json-schema','inputFormat','AUTH_TOKEN_FILE\x20\x27','\x20is\x20not\x20valid\x20JSON\x20(','uuid','No\x20CLI\x20login\x20to\x20switch:\x20the\x20CLI\x20is\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20','unknown','Model\x20','.\x20Use\x20`delegate-cli\x20usage`,\x20`usage\x20activity`\x20or\x20`usage\x20daily`.','\x20not\x20found.','--model','models','\x20delegation\x20','--session\x20applies\x20to\x20the\x20`delegate-cli\x20usage`\x20summary\x20only.','Turn:\x20','end','getSessionId','skip','verdict','messages','results','fields','title','numeric','headless','includeSubAgents','xhigh','tool','A\x20steering\x20message\x20was\x20not\x20sent:\x20','\x20token\x20units','.\x20Use\x20alpha\x20|\x20staging\x20|\x20production\x20|\x20localhost.','findIndex','Session\x20','ID\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Answered','a\x20file\x20path','Missing\x20prompt.\x20Pass\x20it\x20as\x20an\x20argument,\x20pipe\x20it\x20via\x20stdin,\x20or\x20run\x20`delegate-cli\x20--help`.','baseUrl','add','min','whoami','deepLink','off','\x20\x20\x20\x20','Tenant:\x20\x20\x20\x20\x20\x20\x20','padEnd','line','Unknown\x20sessions\x20action:\x20','delegations\x20complete\x20<delegation-id>\x20\x22<answer>\x22|-','max','--print','exit','ASSIGNEE','Base\x20URL:\x20\x20\x20\x20\x20','No\x20CLI\x20login\x20found.\x20Note:\x20the\x20CLI\x20is\x20currently\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20','Organization:\x20','Use:\x20delegate-cli\x20delegations\x20','Unknown\x20delegations\x20action:\x20','--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`delegate-cli\x20sessions`\x20only.','oneTurn','Removed\x20','sendMessage','padStart','--turn','effort','taskAutomation','Number','workingDirectory','Usage:\x20delegate-cli\x20org-users\x20<name\x20or\x20email\x20prefix>','\x20<file.json>,\x20or\x20-\x20to\x20read\x20stdin.','data','question','\x20(resets\x20','transcribe:\x20cannot\x20read\x20','Token:\x20\x20\x20\x20\x20\x20\x20\x20expires\x20','No\x20turn\x20','stderr','--input-format\x20stream-json\x20needs\x20--output-format\x20stream-json:\x20the\x20steering\x20messages\x20are\x20answered\x20on\x20stdout.','choice','tenant','intro','--skills-path','userId','task',']\x20Backend\x20URL:\x20','label','--env\x20localhost\x20has\x20no\x20OAuth\x20flow;\x20pick\x20alpha,\x20staging,\x20or\x20production.','answers','stream-json','No\x20delegations.\x0a','cancel','total_token_units','pause','85487AeQZFK','\x20<id>','--to\x20and\x20--summary\x20apply\x20to\x20`delegate-cli\x20delegations\x20create`\x20only.','message','Tokens:\x20','\x0aAvailable\x20models\x20(','Title\x20\x20\x20\x20\x20\x20\x20\x20\x20','period_end','\x20\x20from\x20','Bearer\x20','--preload-skill','noSecurity','Usage:\x20delegate-cli\x20sessions\x20','orgLogicalName','\x20\x20\x20\x20Not\x20available\x20on\x20this\x20plan','vertical','\x20(cancel\x20with:\x20delegate-cli\x20sessions\x20cancel\x20','pendingResults','--include-subagents','aborted','cancelled','delegations','an\x20input\x20line\x20is\x20not\x20a\x20JSON\x20object','delegations\x20claim\x20<delegation-id|delegate://delegation/…>','bind','delegations\x20pending\x20<session-id>',',\x20got\x20','quiet',':\x20ignored\x0a','Enter\x20a\x20number\x20','Delegated\x20','initialize','the\x20request','followUpsRenderer','\x20|\x20','a\x20session\x20id','next','Last\x20','write','dismiss','default','choice\x20','locked','model','tokenExpiresAt','response','error','isDesktopFallback','buckets','file','isError','outputFormat','daily_usage','updatedAt','--task-automation','delegation','Session:\x20\x20\x20\x20\x20\x20','contextSummary','\x20token\x20units)','stack','Auth\x20comes\x20from\x20AUTH_TOKEN/TENANT_ID/ORG_ID\x20—\x20set\x20TENANT_ID\x20and\x20TENANT_SLUG\x20to\x20change\x20the\x20tenant.','total_cost_usd','\x20PU\x20beyond\x20quota','\x20days.\x0a','delegations\x20dismiss\x20<delegation-id>','map','signal','Your\x20answer,\x20as\x20text\x20(the\x20CLI\x20attaches\x20no\x20files;\x20Enter\x20to\x20skip):\x20','11105288mhLIwD','close','delegations\x20show\x20<delegation-id|delegate://delegation/…>','subFields','date','jsonSchemaPath','slice','Steering\x20input\x20stopped:\x20','\x20(type\x20your\x20own)','transcribe','logout','No\x20answers\x20awaiting\x20acceptance.\x0a','--no-computer-use','getSessionMessages','create','1\x20or\x20more','\x20min)','🔧\x20','steer','usage','org-users','score','\x0aUse\x20with:\x20delegate-cli\x20--model\x20<id>\x20\x22<prompt>\x22\x0a','Session\x20\x20\x20\x20\x20\x20\x20','isSafeInteger','):\x20','projectId','entries','waitForIdle','workerId','),\x20','preloadSkills','--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`delegate-cli\x20sessions\x20[list]`\x20only.','input','pending','version','step','\x20not\x20found,\x20has\x20no\x20messages','actionable_error','abort','token_units','limit_enabled',',\x20whose\x20tenant\x20is\x20chosen\x20in\x20the\x20app.\x20Run\x20`delegate-cli\x20login\x20--env\x20<env>`\x20for\x20a\x20CLI\x20login\x20of\x20your\x20own.','\x20\x20TASK\x0a','Accepted','user','[saved\x20login]\x20Backend\x20URL:\x20','complete\x20needs\x20--json-schema\x20<file>:\x20delegate-cli\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22.','--url','cartographer','toString','toolName','Unknown\x20flag:\x20','push','No\x20one\x20matches\x20\x22','a\x20deployment\x20URL,\x20e.g.\x20https://automationsuite.contoso.com','result','tool_call','pop','questions','\x22.\x0a','The\x20steering\x20message\x20was\x20not\x20answered:\x20its\x20turn\x20did\x20not\x20run\x20or\x20added\x20no\x20reply.','score\x20','bundledSkillsPath','--url\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Other\x20commands\x20follow\x20the\x20saved\x20login,\x20or\x20--backend\x20<url>.','\x20(estimated\x20$','an\x20input\x20line\x20is\x20not\x20JSON','--runner-url','Licensing:\x20\x20\x20\x20no\x20licensing\x20quota\x20applies','period_days','runnerUrl','low','\x20cap','shift','typed','limit','\x20must\x20be\x20a\x20JSON\x20object.','probability','detail','text','SIGINT','operands','From\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','name','pct_used','deployment','UIPATH_BASE_URL\x20is\x20unusable.\x20','rubric_version','keepAlive','noMemory','userinput','The\x20saved\x20CLI\x20login\x20could\x20not\x20be\x20refreshed.\x20Run\x20`delegate-cli\x20login`\x20again.','assignedUser','turnId','extra_pool_consumed_pu','No\x20sessions\x20on\x20page\x20','active_days','isFinite','isInteger','Input\x20closed\x20before\x20the\x20question\x20was\x20answered.','optional','Enter\x20one\x20number\x20from\x201\x20to\x20','complete','toFixed','filter','a\x20project\x20id','\x20requires\x20','51448441DqHrtZ','\x20needs\x20a\x20JSON\x20request:\x20delegate-cli\x20','check','.\x20Use:\x20','env','spawn','Could\x20not\x20check\x20BYO\x20model\x20warnings:\x20','a\x20turn\x20id','--turn\x20applies\x20to\x20`delegate-cli\x20sessions\x20cancel`\x20only.','\x20(confidence\x20','Usage:\x20delegate-cli\x20sessions\x20fork\x20<id>\x20[<message-id>]','high','verify','\x20(stdin\x20was\x20empty)','total_completion_tokens','page','Usage:\x20delegate-cli\x20sessions\x20[list]\x20[--page\x20N]\x20[--limit\x20N]\x20[--include-subagents]','transcribe\x20needs\x20audio:\x20delegate-cli\x20transcribe\x20<file>,\x20or\x20-\x20to\x20read\x20stdin.','Already\x20accepted','\x20vertical,\x20so\x20it\x20cannot\x20run\x20as\x20--vertical\x20','accept','\x20active\x20days','an\x20input\x20line\x20has\x20no\x20message.content,\x20a\x20string\x20or\x20a\x20list\x20of\x20text\x20blocks','Structured\x20output\x20failed:\x20','replayUserMessages','5jIZhuM','race','endQuestions','.\x20Use\x20','--project','addEventListener','readLine','Token:\x20\x20\x20\x20\x20\x20\x20\x20expired\x20','from\x201\x20to\x20','4036995KqFexT','a\x20number','displayName','description','Deleted\x20session\x20','Continue\x20it\x20with:\x20delegate-cli\x20--session\x20','--working-dir','\x27\x20is\x20empty.','erase','organizationId','stop','rejection','Pass\x20either\x20--env\x20(a\x20named\x20cloud)\x20or\x20--url\x20(any\x20other\x20deployment),\x20not\x20both.','delegationId','Work\x20on\x20it\x20with:\x20delegate-cli\x20--session\x20','interopPath','structuredError','hide','\x20-\x20','localhost','attachments','\x20or\x20your\x20own\x20answer','backendUrl','status','show','test','replace','round','session_consumed_pu','stdout','type','byoWarning','sessionId','string','a\x20briefing\x20text','every','Created\x20delegation\x20','Enter\x20numbers\x20from\x201\x20to\x20','UiPath\x20Cloud','list','options','No\x20CLI\x20login\x20found\x20—\x20nothing\x20to\x20remove.','--replay-user-messages','\x20is\x20required.\x0a','readFileSync','--task-automation\x20needs\x20computer\x20use:\x20the\x20task\x20log\x20is\x20written\x20by\x20the\x20UI-automation\x20tools.\x20Drop\x20--headless,\x20--no-computer-use,\x20--cartographer\x20and\x20--vertical\x20cartographer.','startsWith','595798QWahRv','assignedUserEmail',',\x20or\x20holds\x20no\x20message\x20','\x20\x20\x20\x20BYO\x20warning:\x20','--days\x20applies\x20to\x20`delegate-cli\x20usage\x20activity|daily`\x20only.','delegations\x20delete\x20<delegation-id>','Tenant\x20not\x20switched:\x20could\x20not\x20write\x20','\x20(in\x20','--tenant','):\x0a\x0a','No\x20models\x20available\x20for\x20this\x20product/tenant.\x0a','done','kind','Date\x20\x20\x20\x20\x20\x20\x20\x20Token\x20units\x20\x20Prompt\x20tokens\x20\x20Completion\x20tokens','\x20of\x20a\x20$','parse','2427300XYZyxk','30qlqRJz','\x20\x22<prompt>\x22\x0a','object','restore','rerank','includes','tenantName','index','\x20(optional)','--version','Task\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','refused','lastType',':\x20cannot\x20read\x20the\x20request\x20(','unit','--skip-env-check','trim','structured','--authority','delegate-cli','\x20in\x20steps\x20of\x20','accessToken','then','evaluate','Invalid\x20--env:\x20','No\x20auth\x20found.\x20Set\x20AUTH_TOKEN\x20(or\x20AUTH_TOKEN_FILE)/TENANT_ID/ORG_ID\x20env\x20vars,\x20or\x20run\x20`delegate-cli\x20login\x20--env\x20<alpha|staging|production>`\x20(or\x20`--url\x20<deployment-url>`\x20for\x20Automation\x20Suite)\x20first.','Numbers,\x20separated\x20by\x20commas\x20(Enter\x20to\x20skip):\x20','floor','cwd','Cancel\x20requested\x20for\x20turn\x20','--page','--interop','isTTY','/exit','stdin','Rubric\x20','session_start','origin','Cost:\x20\x20\x20$','once','finish',']\x20(Enter\x20for\x20','all','join','--task-automation\x20applies\x20to\x20prompts\x20only.','onEvent','\x20to\x20','Renamed\x20','stringify','.aria','days','9lNZUfP','email','delegateTo','models_breakdown','url','\x20(Delegate\x20desktop\x20app\x20fallback)','\x20\x22<prompt>\x22\x0aAnswer\x20with:\x20delegate-cli\x20delegations\x20complete\x20','tenantId','resolve','\x20sessions\x20on\x20','sourceTitle','--output-format','Owner\x20\x20\x20\x20\x20\x20\x20\x20\x20','monthly_limit_usd','lockReason','a\x20JSON\x20schema\x20file','a\x20colleague','1479180vZXEWW','\x20\x20(input\x20#','widget','some','\x20PU','exitCode','header','.\x20Drop\x20one\x20of\x20the\x20two.','\x20--turn\x20','skipEnvCheck','multiSelect','Tenants\x20of\x20','dismissed','prompt','alpha','--days\x20applies\x20to\x20`delegate-cli\x20usage\x20activity|daily`;\x20the\x20summary\x20covers\x20the\x20current\x20month.','--to,\x20--summary\x20and\x20--session\x20apply\x20to\x20`delegate-cli\x20delegations\x20create`\x20only.','\x0adelegate-cli\x20—\x20Delegate\x20agent\x20CLI\x0a\x0aUsage:\x0a\x20\x20delegate-cli\x20[flags]\x20[\x22<prompt>\x22]\x20\x20\x20\x20Start\x20a\x20conversation\x20in\x20a\x20terminal\x0a\x20\x20delegate-cli\x20--print\x20\x22<prompt>\x22\x20\x20\x20\x20\x20\x20Send\x20one\x20prompt,\x20print\x20the\x20response,\x20and\x20exit\x0a\x20\x20delegate-cli\x20[flags]\x20-\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Read\x20one\x20prompt\x20from\x20stdin\x20through\x20EOF,\x20then\x20exit\x0a\x20\x20delegate-cli\x20-p\x20\x22<prompt>\x22\x20--output-format\x20json|stream-json\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20One\x20turn\x20with\x20JSON-only\x20stdout;\x20exit\x201\x20on\x20error\x0a\x20\x20delegate-cli\x20--json-schema\x20FILE\x20\x22<prompt>\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20One\x20turn,\x20then\x20its\x20result\x20extracted\x20as\x20JSON\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20matching\x20the\x20schema\x20in\x20FILE\x20(printed\x20after\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20answer;\x20\x22structured\x22\x20in\x20the\x20JSON\x20result);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20exit\x201\x20when\x20the\x20extraction\x20fails\x0a\x20\x20delegate-cli\x20--attach\x20PATH\x20[--attach\x20PATH\x20...]\x20\x22<prompt>\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Send\x20files\x20or\x20folders\x20with\x20the\x20first\x20message\x0a\x20\x20delegate-cli\x20login\x20[--env\x20NAME\x20|\x20--url\x20BASE]\x20[--tenant\x20NAME]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20OAuth\x20browser\x20login\x20→\x20~/.aria/sdk-auth.json.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--env\x20or\x20--url\x20required\x20on\x20FIRST\x20login;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20afterwards\x20defaults\x20to\x20the\x20saved\x20login\x27s\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20deployment.\x20--tenant\x20picks\x20a\x20tenant\x20by\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20name;\x20without\x20it\x20a\x20re-login\x20keeps\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20saved\x20tenant\x0a\x20\x20delegate-cli\x20tenant\x20[NAME]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20the\x20organization\x27s\x20tenants,\x20or\x20switch\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20saved\x20login\x20to\x20NAME\x20(no\x20browser)\x0a\x20\x20delegate-cli\x20logout\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Remove\x20the\x20saved\x20CLI\x20login\x0a\x20\x20delegate-cli\x20whoami\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20the\x20current\x20login\x20(org,\x20tenant,\x20token\x20expiry)\x0a\x20\x20delegate-cli\x20models\x20[--env\x20NAME]\x20\x20\x20\x20\x20List\x20available\x20LLM\x20models\x20for\x20the\x20current\x20tenant,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20with\x20any\x20BYO\x20configuration\x20warning\x20per\x20model\x0a\x20\x20delegate-cli\x20sessions\x20[list]\x20[--page\x20N]\x20[--limit\x20N]\x20[--include-subagents]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20your\x20backend\x20chat\x20sessions,\x20most\x20recently\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20active\x20first\x20(resume\x20one\x20with\x20--session\x20ID)\x0a\x20\x20delegate-cli\x20sessions\x20show|delete\x20ID\x20Show\x20one\x20session\x27s\x20title\x20and\x20owner,\x20or\x20delete\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20it\x20with\x20its\x20messages\x20and\x20sub-agents\x20(no\x20prompt)\x0a\x20\x20delegate-cli\x20sessions\x20rename\x20ID\x20TITLE\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Rename\x20a\x20session\x20(1-500\x20characters)\x0a\x20\x20delegate-cli\x20sessions\x20fork\x20ID\x20[MESSAGE]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Copy\x20session\x20ID\x20into\x20a\x20new\x20session,\x20up\x20to\x20and\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20including\x20message\x20MESSAGE\x20(default:\x20all\x20of\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20it);\x20continue\x20it\x20with\x20--session\x20NEW_ID\x0a\x20\x20delegate-cli\x20sessions\x20cancel\x20ID\x20--turn\x20TURN\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Cancel\x20turn\x20TURN\x20running\x20on\x20session\x20ID\x20in\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20another\x20process;\x20exits\x201\x20when\x20no\x20such\x20turn\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20is\x20in\x20progress\x0a\x20\x20delegate-cli\x20check\x20[--env\x20NAME]\x20[--headless]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Verify\x20auth,\x20backend\x20readiness,\x20backend\x20and\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20interop\x20without\x20sending\x20a\x20prompt;\x20exits\x201\x20when\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20any\x20check\x20fails\x0a\x20\x20delegate-cli\x20usage\x20[--session\x20ID]\x20\x20\x20\x20Quota\x20and\x20spend:\x20licensing\x20quota,\x20monthly\x20spend\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20and\x20cap,\x20Cartographer\x20allowance\x0a\x20\x20delegate-cli\x20usage\x20activity|daily\x20[--days\x20N]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Activity\x20totals,\x20or\x20per-day\x20usage,\x20over\x20the\x20last\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20N\x20days\x20(1-365,\x20default\x2030)\x0a\x20\x20delegate-cli\x20evaluate|rerank|verify\x20FILE|-\x20[--model\x20ID]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Stateless\x20typed\x20judgments:\x20send\x20the\x20JSON\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20request\x20in\x20FILE\x20(or\x20stdin\x20with\x20-)\x20to\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20/v1/completions/<command>\x20and\x20print\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20answers;\x20--model\x20overrides\x20its\x20\x22model\x22.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Exits\x201\x20when\x20the\x20backend\x20rejects\x20it\x0a\x20\x20delegate-cli\x20complete\x20--json-schema\x20FILE\x20[--model\x20ID]\x20[--session\x20ID]\x20\x22<prompt>\x22|-\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20One\x20structured\x20completion,\x20no\x20agent\x20turn:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20print\x20the\x20JSON\x20object\x20matching\x20the\x20schema\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20in\x20FILE\x20(--output-format\x20json\x20prints\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{structured,\x20usage});\x20--session\x20adds\x20that\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20session\x27s\x20history\x20as\x20context.\x20Exits\x201\x20when\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20output\x20fails\x20the\x20schema\x20(422)\x20or\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20backend\x20rejects\x20the\x20request\x0a\x20\x20delegate-cli\x20transcribe\x20FILE|-\x20\x20\x20\x20\x20\x20\x20Speech-to-text:\x20print\x20the\x20text\x20of\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20audio\x20in\x20FILE,\x20or\x20on\x20stdin\x20with\x20-.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20mp3,\x20mp4,\x20mpeg,\x20mpga,\x20m4a,\x20wav\x20or\x20webm,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20up\x20to\x2014\x20MB.\x20Exits\x202\x20when\x20the\x20audio\x20is\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20refused\x20locally,\x201\x20when\x20the\x20backend\x20rejects\x20it\x0a\x20\x20delegate-cli\x20org-users\x20QUERY\x20\x20\x20\x20\x20\x20\x20\x20\x20Search\x20your\x20organization\x27s\x20users\x20by\x20name\x20or\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20email\x20prefix\x20(2-100\x20characters)\x0a\x20\x20delegate-cli\x20delegations\x20create\x20--session\x20ID\x20[--to\x20WHO]\x20[--summary\x20TEXT]\x20\x22<task>\x22|-\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Hand\x20a\x20task\x20from\x20session\x20ID\x20to\x20a\x20colleague\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(WHO:\x20an\x20email,\x20or\x20a\x20name\x20matching\x20one\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20person);\x20without\x20--to,\x20print\x20a\x20link\x20anyone\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20in\x20the\x20organization\x20can\x20claim\x0a\x20\x20delegate-cli\x20delegations\x20pending\x20SESSION\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Answers\x20to\x20delegations\x20from\x20SESSION\x20that\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20await\x20acceptance\x20(poll\x20this)\x0a\x20\x20delegate-cli\x20delegations\x20accept|dismiss|cancel|delete\x20ID\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Take\x20an\x20answer\x20into\x20its\x20session,\x20drop\x20it,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20withdraw\x20a\x20live\x20delegation,\x20or\x20delete\x20it\x0a\x20\x20delegate-cli\x20delegations\x20list\x20PROJECT\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Every\x20delegation\x20targeting\x20a\x20backend\x20project\x0a\x20\x20delegate-cli\x20delegations\x20show|claim\x20ID|LINK\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Read\x20a\x20delegation\x20assigned\x20to\x20you\x20(or\x20a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20delegate://delegation/…\x20link),\x20or\x20claim\x20it:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20prints\x20the\x20session\x20to\x20work\x20it\x20in\x0a\x20\x20delegate-cli\x20delegations\x20complete\x20ID\x20\x22<answer>\x22|-\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Send\x20the\x20answer\x20to\x20a\x20delegation\x20you\x20claimed\x0a\x20\x20delegate-cli\x20host\x20[flags]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Run\x20this\x20PC\x20as\x20a\x20remote\x20worker\x20until\x20Ctrl+C\x0a\x20\x20delegate-cli\x20host\x20install\x20[flags]\x20\x20\x20\x20Auto-start\x20the\x20host\x20at\x20login\x20(macOS\x20LaunchAgent\x20/\x20Windows\x20Scheduled\x20Task)\x0a\x20\x20delegate-cli\x20host\x20uninstall\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Remove\x20auto-start\x0a\x20\x20delegate-cli\x20host\x20status\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20auto-start\x20state\x0a\x20\x20delegate-cli\x20--cleanup\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Stop\x20running\x20interop\x0a\x0aFlags:\x0a\x20\x20-p,\x20--print\x20\x20\x20\x20\x20\x20\x20Run\x20one\x20turn\x20and\x20exit,\x20including\x20any\x20tool\x20execution.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Automatic\x20when\x20stdin\x20or\x20stdout\x20is\x20not\x20a\x20terminal,\x20or\x20with\x20-\x0a\x20\x20--env\x20NAME\x20\x20\x20\x20\x20\x20\x20\x20alpha\x20|\x20staging\x20|\x20production\x20|\x20localhost\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Composes\x20backend\x20URL\x20from\x20saved\x20auth\x20(org/tenant\x20slugs).\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Omitted\x20→\x20the\x20deployment\x20you\x20logged\x20into\x20(delegate-cli\x20login).\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20localhost\x20→\x20http://localhost:5002.\x20No\x20saved\x20login\x20and\x20no\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--env/--backend/BACKEND_URL\x20is\x20an\x20error\x20—\x20never\x20a\x20guess.\x0a\x20\x20--url\x20BASE\x20\x20\x20\x20\x20\x20\x20\x20(login)\x20Base\x20URL\x20of\x20a\x20deployment\x20that\x20is\x20not\x20a\x20named\x20cloud\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20—\x20Automation\x20Suite,\x20Dedicated,\x20Public\x20Sector.\x20Accepts\x20a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20tenant\x20path\x20or\x20a\x20trailing\x20/identity_\x20and\x20reduces\x20it\x20to\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20origin.\x20Mutually\x20exclusive\x20with\x20--env;\x20also\x20settable\x20via\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20UIPATH_BASE_URL.\x20Alias:\x20--authority.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Automation\x20Suite\x20needs\x2026.10+\x20with\x20the\x20Delegate\x20service;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20the\x20deployment\x20rejects\x20the\x20built-in\x20client,\x20register\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20your\x20own\x20—\x20see\x20UIPATH_CLIENT_ID\x20in\x20the\x20README\x0a\x20\x20--skip-env-check\x20\x20(login)\x20Do\x20not\x20check\x20the\x20deployment\x20before\x20signing\x20in.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Escape\x20hatch\x20for\x20a\x20deployment\x20that\x20hides\x20its\x20OIDC\x20discovery\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20document\x20or\x20serves\x20Identity\x20from\x20another\x20origin;\x20it\x20also\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20gives\x20up\x20the\x20diagnosis\x20when\x20something\x20is\x20really\x20wrong\x0a\x20\x20--backend\x20URL\x20\x20\x20\x20\x20Full\x20backend\x20URL\x20—\x20escape\x20hatch\x20overrides\x20--env\x0a\x20\x20--tenant\x20NAME\x20\x20\x20\x20\x20(login)\x20Tenant\x20to\x20sign\x20into,\x20by\x20name\x20(case-insensitive).\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default:\x20the\x20saved\x20login\x27s\x20tenant\x20on\x20that\x20cloud,\x20else\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20org\x27s\x20first\x20tenant.\x20Later:\x20delegate-cli\x20tenant\x20<name>\x0a\x20\x20--model\x20NAME\x20\x20\x20\x20\x20\x20LLM\x20model\x20id\x20(e.g.\x20claude_sonnet_5_5,\x20kimi_k3).\x20Checked\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20against\x20the\x20tenant\x27s\x20catalog\x20(delegate-cli\x20models)\x20before\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20run\x20starts;\x20an\x20unknown\x20id\x20fails\x20and\x20lists\x20the\x20valid\x20ones.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default:\x20gpt_5_6_luna.\x20Also\x20settable\x20via\x20MODEL\x20env\x20var.\x0a\x20\x20--keep-alive\x20\x20\x20\x20\x20\x20Reuse/leave\x20interop\x20running\x20across\x20invocations\x0a\x20\x20--headless\x20\x20\x20\x20\x20\x20\x20\x20Skip\x20interop\x20(text-only\x20prompts)\x0a\x20\x20--no-computer-use\x20Keep\x20interop\x20—\x20file,\x20Office,\x20PDF\x20and\x20shell\x20tools\x20keep\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20working\x20—\x20but\x20drop\x20the\x20screen:\x20no\x20screenshots,\x20no\x20window\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20list,\x20no\x20UI-automation\x20tools.\x20Cuts\x20image\x20tokens\x20and\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20per-turn\x20screen\x20capture,\x20and\x20stops\x20desktop\x20window\x20titles\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20leaving\x20the\x20machine.\x20Use\x20for\x20document\x20and\x20file\x20work.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--headless\x20implies\x20this\x20and\x20turns\x20interop\x20off\x20as\x20well\x0a\x20\x20--no-connections\x20\x20Disable\x20orchestrator\x20ConnectionService\x20(silences\x20404\x20warnings)\x0a\x20\x20--no-security\x20\x20\x20\x20\x20Disable\x20tool\x20security\x20wrapper\x20(use\x20only\x20for\x20debugging)\x0a\x20\x20--no-memory\x20\x20\x20\x20\x20\x20\x20Do\x20not\x20send\x20the\x20Delegate\x20app\x27s\x20local\x20long-term\x20memories\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20with\x20each\x20turn,\x20and\x20do\x20not\x20ask\x20the\x20model\x20to\x20save\x20new\x20ones\x0a\x20\x20--task-automation\x20Record\x20every\x20UI\x20action\x20of\x20the\x20run,\x20with\x20the\x20selector\x20of\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20element\x20it\x20acted\x20on,\x20to\x20<working-dir>/captures/<session>/\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(~/.aria-sdk\x20without\x20--working-dir),\x20so\x20you\x20can\x20then\x20ask\x20for\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20task\x20as\x20a\x20UiPath\x20coded\x20workflow\x20(uipath-taskautomation\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20skill).\x20The\x20log\x20holds\x20on-screen\x20text\x20and\x20your\x20requests;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20typed\x20values\x20are\x20masked.\x20Needs\x20computer\x20use.\x20Ignored\x20with\x20a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20warning\x20where\x20the\x20deployment\x20does\x20not\x20offer\x20it\x20yet\x0a\x20\x20--attach\x20PATH\x20\x20\x20\x20\x20File\x20or\x20folder\x20sent\x20with\x20the\x20first\x20message\x20(repeatable),\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20as\x20the\x20Delegate\x20app\x20sends\x20attached\x20files:\x20images\x20inline,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20PDFs\x20and\x20other\x20documents\x20as\x20a\x20path\x20the\x20agent\x20reads,\x20text\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20inline\x20up\x20to\x2016,000\x20characters.\x2030\x20MiB\x20per\x20message\x20in\x20all;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20larger\x20files\x20go\x20as\x20a\x20path.\x20In\x20a\x20conversation,\x20later\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20messages\x20carry\x20none\x20of\x20their\x20own,\x20but\x20the\x20first\x20message\x27s\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20stay\x20in\x20context\x0a\x20\x20--preload-skill\x20NAME\x20\x20Preload\x20a\x20skill\x20into\x20the\x20session\x20(repeatable).\x20The\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20skill\x27s\x20content\x20is\x20attached\x20before\x20the\x20first\x20model\x20turn\x20—\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20same\x20mechanism\x20as\x20project\x20preloaded\x20skills\x20in\x20the\x20app\x0a\x20\x20--cartographer\x20\x20\x20\x20Cartographer\x20engagement\x20preset.\x20Equivalent\x20to\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--vertical\x20cartographer\x20--no-computer-use\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--preload-skill\x20business-analysis\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--preload-skill\x20project-task-list\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--preload-skill\x20knowledge-base\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--preload-skill\x20source-coverage\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--preload-skill\x20note-taker.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Add\x20--project/--working-dir\x20for\x20where\x20the\x20files\x20live,\x20and\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20extra\x20--preload-skill\x20flags\x20for\x20more\x20skills\x20—\x20a\x20skill\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20preset\x20already\x20covers\x20is\x20not\x20preloaded\x20twice.\x20An\x20explicit\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--headless\x20still\x20wins\x20and\x20turns\x20interop\x20off;\x20another\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--vertical\x20ID\x20is\x20refused\x0a\x20\x20--project\x20ID\x20\x20\x20\x20\x20\x20Route\x20the\x20session\x27s\x20local\x20wiki\x20and\x20plans\x20to\x20a\x20project\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(<working-dir>/projects/<ID>/wiki).\x20Client-side\x20key\x20only\x0a\x20\x20--vertical\x20ID\x20\x20\x20\x20\x20Run\x20the\x20session\x20as\x20that\x20product\x27s\x20vertical,\x20as\x20its\x20tab\x20in\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20desktop\x20app\x20does,\x20with\x20no\x20desktop\x20app\x20installed:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20cartographer\x20brings\x20the\x20Map\x20of\x20Work\x20and,\x20without\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--preload-skill,\x20its\x20template\x27s\x20skills.\x20Default:\x20Delegate\x0a\x20\x20--working-dir\x20PATH\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Shell\x20cwd\x20for\x20the\x20agent\x20and\x20root\x20for\x20SDK-local\x20state.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Relative\x20paths\x20resolve\x20against\x20the\x20current\x20directory;\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20directory\x20is\x20created\x20if\x20missing\x0a\x20\x20--skills-path\x20PATH\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Folder\x20of\x20custom\x20skills,\x20loaded\x20on\x20top\x20of\x20the\x20skills\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20package\x20ships;\x20wins\x20on\x20a\x20name\x20clash\x20(also:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20DELEGATE_BUNDLED_SKILLS_PATH)\x0a\x20\x20--effort\x20TIER\x20\x20\x20\x20\x20Reasoning\x20effort:\x20low\x20|\x20medium\x20|\x20high\x20|\x20xhigh\x20|\x20max.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default:\x20the\x20model\x27s\x20recommended\x20tier\x0a\x20\x20--session\x20ID\x20\x20\x20\x20\x20\x20Continue\x20an\x20existing\x20backend\x20session\x20(an\x20unknown\x20id\x20exits\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x201;\x20the\x20backend\x20assigns\x20new\x20ids).\x20For\x20complete:\x20the\x20session\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20whose\x20history\x20is\x20the\x20context\x0a\x20\x20--json-schema\x20FILE\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20JSON\x20schema\x20the\x20structured\x20answer\x20must\x20match\x20(complete,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20and\x20prompts:\x20implies\x20--print)\x0a\x20\x20--runner-url\x20URL\x20\x20(host)\x20Runner\x20worker\x20WS\x20URL.\x20Required;\x20or\x20CONTROL_PLANE_WS_URL\x20env\x0a\x20\x20--interop\x20PATH\x20\x20\x20\x20(host)\x20Interop\x20binary\x20path;\x20or\x20INTEROP_EXECUTABLE_PATH\x20env.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Absent\x20→\x20registration/discovery\x20only,\x20tool\x20execution\x20disabled\x0a\x20\x20--worker-id\x20ID\x20\x20\x20\x20(host)\x20Stable\x20worker\x20identity;\x20or\x20WORKER_ID\x20env.\x20Default:\x20hostname\x0a\x20\x20--page\x20N\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(sessions)\x20Page\x20to\x20show,\x20from\x201.\x20Default:\x201\x0a\x20\x20--limit\x20N\x20\x20\x20\x20\x20\x20\x20\x20\x20(sessions)\x20Rows\x20per\x20page,\x201-100.\x20Default:\x2030\x0a\x20\x20--include-subagents\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(sessions)\x20Also\x20list\x20sub-agent\x20sessions,\x20hidden\x20by\x20default\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20as\x20in\x20the\x20desktop\x20app\x27s\x20history\x0a\x20\x20--to\x20WHO\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(delegations\x20create)\x20Assign\x20to\x20this\x20person:\x20an\x20email,\x20or\x20a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20name\x20that\x20matches\x20exactly\x20one\x20colleague\x20(see\x20org-users)\x0a\x20\x20--summary\x20TEXT\x20\x20\x20\x20(delegations\x20create)\x20The\x20briefing\x20the\x20person\x20starts\x20from.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default:\x20empty,\x20for\x20a\x20task\x20that\x20stands\x20on\x20its\x20own\x0a\x20\x20--output-format\x20FMT\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20text\x20(default)\x20|\x20json\x20|\x20stream-json.\x20json\x20prints\x20one\x20result\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20object\x20on\x20exit;\x20stream-json\x20prints\x20every\x20agent\x20event\x20as\x20one\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20JSON\x20line,\x20then\x20the\x20result.\x20Both\x20keep\x20stdout\x20JSON-only\x20(logs,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20progress\x20and\x20the\x20session\x20id\x20go\x20to\x20stderr),\x20imply\x20--print,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20and\x20exit\x201\x20when\x20the\x20turn\x20ends\x20in\x20error.\x20Also\x20honoured\x20by\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20every\x20subcommand\x20that\x20prints\x20a\x20result\x20(all\x20but\x20login,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20logout,\x20tenant\x20and\x20host)\x0a\x20\x20--input-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|\x20stream-json.\x20stream-json\x20reads\x20one\x20JSON\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20user\x20message\x20per\x20line\x20on\x20stdin\x20while\x20the\x20turn\x20runs:\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20first\x20is\x20the\x20prompt\x20(give\x20none\x20as\x20an\x20argument),\x20each\x20later\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20one\x20steers\x20the\x20turn\x20in\x20flight.\x20Needs\x20--output-format\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20stream-json\x0a\x20\x20--replay-user-messages\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(--input-format\x20stream-json)\x20Echo\x20each\x20steering\x20message\x20on\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20stdout\x20(isReplay:\x20true,\x20same\x20uuid)\x20once\x20the\x20agent\x20takes\x20it\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','Enter\x20sends\x20a\x20message.\x20/exit\x20or\x20EOF\x20exits;\x20Ctrl+C\x20stops\x20and\x20exits.\x0a','\x20this\x20month','log','\x20\x22<answer>\x22\x0a','getTurnUsageHistory','auth.json','rename','delegations\x20cancel\x20<delegation-id>','daily','keys','unknown\x20slug','noConnections','value','Forked\x20','print','isArray','activity','--tenant\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Switch\x20tenants\x20with:\x20delegate-cli\x20tenant\x20<name>','--input-format','host','subcommand','claim','from','expiresAt','rmSync','a\x20directory\x20path','delete','Interop\x20stopped\x20(if\x20it\x20was\x20running).','utf-8','verbose','--backend','\x27\x20cannot\x20be\x20read:\x20','Usage:\x20delegate-cli\x20','turn_start','mode','noComputerUse','--no-security','\x20applies\x20to\x20prompts\x20and\x20to\x20these\x20commands\x20only:\x20','--env','Invalid\x20--project:\x20\x22','deleted'];_0x11a3=function(){return _0x5d121a;};return _0x11a3();}async function dn(_0x48d9a1,_0x7a911,_0x31fc65){const _0x2406bd=_0x1ca96b;(!_0x7a911||_0x31fc65||!_0x48d9a1[_0x2406bd(0x241)])&&(console[_0x2406bd(0x1ce)]('Usage:\x20delegate-cli\x20sessions\x20cancel\x20<session-id>\x20--turn\x20<turn-id>'),process[_0x2406bd(0x176)](0x2));let {client:_0x1c1ec9}=await $(_0x48d9a1),_0x2ee59e=await _0x2e7590(_0x1c1ec9,_0x7a911,_0x48d9a1[_0x2406bd(0x241)]);m(_0x48d9a1,{'sessionId':_0x7a911,'turnId':_0x48d9a1['turnId'],'cancelled':_0x2ee59e},_0x2151f5=>{const _0x43ad7f=_0x2406bd;_0x2151f5['cancelled']?process[_0x43ad7f(0x28e)][_0x43ad7f(0x1c6)](_0x43ad7f(0x2ce)+_0x2151f5['turnId']+'\x20of\x20session\x20'+_0x2151f5[_0x43ad7f(0x291)]+'.\x0a'):process[_0x43ad7f(0x18f)][_0x43ad7f(0x1c6)](_0x43ad7f(0x18e)+_0x2151f5[_0x43ad7f(0x241)]+'\x20in\x20progress\x20on\x20session\x20'+_0x2151f5[_0x43ad7f(0x291)]+'.\x0a');}),_0x2ee59e||(process['exitCode']=0x1);}async function un(_0x5727a4,_0xb80f50,_0x10dfaa){const _0x734082=_0x1ca96b;(!_0xb80f50||/\s/[_0x734082(0x28a)](_0x10dfaa))&&(console[_0x734082(0x1ce)](_0x734082(0x259)),process[_0x734082(0x176)](0x2));let {client:_0x1fb200}=await $(_0x5727a4),_0x1023b2;try{_0x1023b2=await _0x538c00(_0x1fb200,_0xb80f50,{'atMessageId':_0x10dfaa||void 0x0});}catch(_0x571001){if(!_0x2b9324(_0x571001,0x194))throw _0x571001;console[_0x734082(0x1ce)](_0x734082(0x163)+_0xb80f50+_0x734082(0x209)+(_0x10dfaa?_0x734082(0x2a2)+_0x10dfaa:'')+'.'),process['exit'](0x1);}m(_0x5727a4,_0x1023b2,_0x3089af=>{const _0x4549bc=_0x734082;process['stdout'][_0x4549bc(0x1c6)](_0x4549bc(0xfe)+_0xb80f50+'\x20into\x20'+_0x3089af['id']+'.\x0a'),process['stderr']['write'](_0x4549bc(0x276)+_0x3089af['id']+_0x4549bc(0x2b2));});}function pn({sessions:_0x2dcc1a,page:_0x460441,isLastPage:_0x1a6232}){const _0x3b212a=_0x1ca96b;if(_0x2dcc1a[_0x3b212a(0x131)]===0x0)process[_0x3b212a(0x18f)]['write'](_0x3b212a(0x243)+_0x460441+'.\x0a');else{process[_0x3b212a(0x28e)][_0x3b212a(0x1c6)]('ID'[_0x3b212a(0x170)](0x24)+'\x20\x20'+'UPDATED'['padEnd'](0x13)+'\x20\x20TITLE\x0a');for(let _0x288fcb of _0x2dcc1a){let _0x322d14=_0x288fcb[_0x3b212a(0x1d5)][_0x3b212a(0x28b)]('T','\x20')[_0x3b212a(0x1ea)](0x0,0x13),_0xf8ea2=_0x288fcb[_0x3b212a(0x129)]?_0x3b212a(0x11b)+_0x288fcb[_0x3b212a(0x129)]+')':'';process[_0x3b212a(0x28e)][_0x3b212a(0x1c6)](_0x288fcb['id'][_0x3b212a(0x170)](0x24)+'\x20\x20'+_0x322d14['padEnd'](0x13)+'\x20\x20'+_0x288fcb[_0x3b212a(0x159)]+_0xf8ea2+'\x0a');}}_0x1a6232||process[_0x3b212a(0x18f)][_0x3b212a(0x1c6)]('More:\x20delegate-cli\x20sessions\x20--page\x20'+(_0x460441+0x1)+'\x0a');}async function mn(_0x5c3b9b){const _0xf0a793=_0x1ca96b;let _0x22aa85=await V(),_0x4aa27e=_0x588bbd(_0x5c3b9b[_0xf0a793(0x253)],_0x22aa85,_0x5c3b9b[_0xf0a793(0x287)]);X(_0x5c3b9b[_0xf0a793(0x253)],_0x5c3b9b[_0xf0a793(0x287)],_0x4aa27e);let _0xb18538=await _0x54ec93({'auth':_0x22aa85,'backendUrl':_0x4aa27e,'interop':_0x5c3b9b['headless']?_0xf0a793(0x154):_0xf0a793(0x254)});m(_0x5c3b9b,_0xb18538,({checks:_0x329ad5})=>{const _0x25d397=_0xf0a793;for(let _0x19bf8c of _0x329ad5)process[_0x25d397(0x28e)][_0x25d397(0x1c6)](fn(_0x19bf8c)+'\x0a');}),_0xb18538['ok']||process[_0xf0a793(0x176)](0x1);}function fn(_0x28f36c){const _0x220c74=_0x1ca96b;return{'ok':'✓','failed':'✗','skipped':'-'}[_0x28f36c[_0x220c74(0x288)]]+'\x20'+_0x28f36c['name'][_0x220c74(0x170)](0xa)+_0x28f36c[_0x220c74(0x232)];}var gn=['',_0x1ca96b(0x101),_0x1ca96b(0xf9)];async function hn(_0x1752bc){const _0x3fbdb4=_0x1ca96b;let _0x50304f=_0x1752bc[_0x3fbdb4(0xec)];gn['includes'](_0x50304f)||(console[_0x3fbdb4(0x1ce)]('Unknown\x20usage\x20view:\x20'+_0x1752bc[_0x3fbdb4(0xec)]+_0x3fbdb4(0x14b)),process[_0x3fbdb4(0x176)](0x2)),_0x50304f===''&&_0x1752bc[_0x3fbdb4(0x2e3)]!==void 0x0&&(console[_0x3fbdb4(0x1ce)](_0x3fbdb4(0xee)),process[_0x3fbdb4(0x176)](0x2)),_0x50304f!==''&&_0x1752bc[_0x3fbdb4(0x291)]!==void 0x0&&(console[_0x3fbdb4(0x1ce)](_0x3fbdb4(0x150)),process[_0x3fbdb4(0x176)](0x2));let {client:_0x5717dd}=await $(_0x1752bc);if(_0x50304f===_0x3fbdb4(0x101)){m(_0x1752bc,await _0x2cfabc(_0x5717dd,{'days':_0x1752bc[_0x3fbdb4(0x2e3)]}),wn);return;}if(_0x50304f===_0x3fbdb4(0xf9)){m(_0x1752bc,await _0x353b6a(_0x5717dd,{'days':_0x1752bc[_0x3fbdb4(0x2e3)]}),kn);return;}let [_0x421eec,_0x435d37,_0xd92ce4]=await Promise['all']([_0x4fc860(_0x5717dd,{'sessionId':_0x1752bc[_0x3fbdb4(0x291)]}),_0x31c1e0(_0x5717dd),_0x402b7d(_0x5717dd)]);m(_0x1752bc,{'licensing':_0x421eec,'monthlySpending':_0x435d37,'cartographerAllowance':_0xd92ce4},yn);}function yn(_0x692a71){const _0x5a526a=_0x1ca96b;let {licensing:_0x571bf8,monthlySpending:_0x468681,cartographerAllowance:_0x54b519}=_0x692a71,_0x2b510d=[_0x571bf8[_0x5a526a(0x20d)]?_0x5a526a(0x13f)+_0x571bf8[_0x5a526a(0x238)][_0x5a526a(0x24b)](0x1)+'%\x20of\x20'+(_0x571bf8['total_quota_pu']??0x0)+'\x20PU\x20used'+(_0x571bf8[_0x5a526a(0x242)]>0x0?',\x20'+_0x571bf8['extra_pool_consumed_pu']+_0x5a526a(0x1de):'')+_0x5a526a(0x18b)+_0x571bf8[_0x5a526a(0x1a7)]+')':_0x5a526a(0x228),'Spending:\x20\x20\x20\x20\x20$'+_0x468681['monthly_spend_usd'][_0x5a526a(0x24b)](0x2)+_0x5a526a(0xf2)+(_0x468681[_0x5a526a(0x20d)]&&_0x468681[_0x5a526a(0x2f1)]!==null?_0x5a526a(0x2ae)+_0x468681[_0x5a526a(0x2f1)]['toFixed'](0x2)+_0x5a526a(0x22c):'\x20(no\x20cap\x20enforced)'),'Cartographer:\x20'+_0x54b519[_0x5a526a(0x113)]+'\x20('+_0x54b519['model_id']+')'];_0x571bf8[_0x5a526a(0x28d)]!==null&&_0x571bf8[_0x5a526a(0x28d)]!==void 0x0&&_0x2b510d[_0x5a526a(0x219)](_0x5a526a(0x1d8)+_0x571bf8[_0x5a526a(0x28d)]+_0x5a526a(0x2f9)),process[_0x5a526a(0x28e)][_0x5a526a(0x1c6)](_0x2b510d[_0x5a526a(0x2dc)]('\x0a')+'\x0a');}function wn(_0x57561a){const _0xa853ef=_0x1ca96b;let _0x1941d7=[_0xa853ef(0x1c5)+_0x57561a[_0xa853ef(0x229)]+'\x20days:\x20'+_0x57561a['total_sessions']+_0xa853ef(0x2ed)+_0x57561a[_0xa853ef(0x244)]+_0xa853ef(0x264),_0xa853ef(0x2d7)+_0x57561a[_0xa853ef(0x1dd)][_0xa853ef(0x24b)](0x2)+_0xa853ef(0x225)+_0x57561a['estimated_cost_usd']['toFixed'](0x2)+_0xa853ef(0x11a)+_0x57561a[_0xa853ef(0x19e)]+_0xa853ef(0x1da),_0xa853ef(0x1a4)+_0x57561a['total_prompt_tokens']+'\x20prompt,\x20'+_0x57561a[_0xa853ef(0x25d)]+'\x20completion'];for(let [_0x5ea66a,_0xe2a6ca]of Object[_0xa853ef(0x1ff)](_0x57561a[_0xa853ef(0x2e7)]))_0x1941d7[_0xa853ef(0x219)]('\x20\x20'+_0x5ea66a+':\x20'+_0xe2a6ca+_0xa853ef(0x160));process[_0xa853ef(0x28e)][_0xa853ef(0x1c6)](_0x1941d7[_0xa853ef(0x2dc)]('\x0a')+'\x0a');}function kn(_0x1ebb81){const _0x511353=_0x1ca96b;if(_0x1ebb81[_0x511353(0x1d4)][_0x511353(0x131)]===0x0){process['stdout'][_0x511353(0x1c6)](_0x511353(0x12a)+_0x1ebb81[_0x511353(0x229)]+_0x511353(0x1df));return;}let _0x35a9be=[_0x511353(0x2ad)];for(let _0x3f2634 of _0x1ebb81['daily_usage'])_0x35a9be[_0x511353(0x219)](_0x3f2634[_0x511353(0x1e8)]+'\x20\x20'+String(_0x3f2634[_0x511353(0x20c)])[_0x511353(0x181)](0xb)+'\x20\x20'+String(_0x3f2634['prompt_tokens'])['padStart'](0xd)+'\x20\x20'+String(_0x3f2634['completion_tokens'])[_0x511353(0x181)](0x11));process[_0x511353(0x28e)][_0x511353(0x1c6)](_0x35a9be['join']('\x0a')+'\x0a');}async function bn(_0x450cb8,_0xd31a71){const _0x4a94e9=_0x1ca96b;let _0x2d0ea4=await Sn(_0x450cb8[_0x4a94e9(0xec)],_0xd31a71);_0x450cb8[_0x4a94e9(0x1cb)]&&(_0x2d0ea4[_0x4a94e9(0x1cb)]=_0x450cb8[_0x4a94e9(0x1cb)]);let {client:_0x40fd8f}=await $(_0x450cb8);try{_0xd31a71===_0x4a94e9(0x2c8)?m(_0x450cb8,await _0x5b381d(_0x40fd8f,_0x2d0ea4,void 0x0),An):_0xd31a71==='rerank'?m(_0x450cb8,await _0x183158(_0x40fd8f,_0x2d0ea4,void 0x0),En):m(_0x450cb8,await _0x18f0a3(_0x40fd8f,_0x2d0ea4,void 0x0),$n);}catch(_0x2c29de){if(!_0x51dde7(_0x2c29de))throw _0x2c29de;console[_0x4a94e9(0x1ce)](_0x2c29de[_0x4a94e9(0x1a3)]),process[_0x4a94e9(0x176)](0x1);}}async function Sn(_0x581484,_0x17a6da){const _0x2278b9=_0x1ca96b;let _0x20c297;try{_0x20c297=_0x581484&&_0x581484!=='-'?_0x35e9de[_0x2278b9(0x29d)](_0x185e3b[_0x2278b9(0x2ec)](_0x581484),_0x2278b9(0x10d)):await H(_0x581484,process[_0x2278b9(0x2d3)]);}catch(_0x599af0){console[_0x2278b9(0x1ce)](_0x17a6da+_0x2278b9(0x2be)+_0x599af0[_0x2278b9(0x1a3)]+').'),process[_0x2278b9(0x176)](0x2);}return _0x20c297||(console[_0x2278b9(0x1ce)](_0x17a6da+_0x2278b9(0x250)+_0x17a6da+_0x2278b9(0x188)),process['exit'](0x2)),De(_0x20c297,_0x17a6da,_0x2278b9(0x1c0));}function De(_0x4dfb1f,_0x1111e0,_0x4907d7){const _0x5cd795=_0x1ca96b;let _0x133eaf;try{_0x133eaf=JSON['parse'](_0x4dfb1f);}catch(_0x16538c){console['error'](_0x1111e0+':\x20'+_0x4907d7+_0x5cd795(0x146)+_0x16538c[_0x5cd795(0x1a3)]+').'),process[_0x5cd795(0x176)](0x2);}return(typeof _0x133eaf!='object'||_0x133eaf===null||Array[_0x5cd795(0x100)](_0x133eaf))&&(console[_0x5cd795(0x1ce)](_0x1111e0+':\x20'+_0x4907d7+_0x5cd795(0x230)),process['exit'](0x2)),_0x133eaf;}function Ne(_0x32ca24,_0x12ba1a){const _0x320a26=_0x1ca96b;let _0x2300f1;try{_0x2300f1=_0x35e9de[_0x320a26(0x29d)](_0x185e3b['resolve'](_0x32ca24),_0x320a26(0x10d));}catch(_0x16fe7d){console[_0x320a26(0x1ce)](_0x12ba1a+':\x20cannot\x20read\x20the\x20JSON\x20schema\x20('+_0x16fe7d[_0x320a26(0x1a3)]+').'),process[_0x320a26(0x176)](0x2);}return De(_0x2300f1,_0x12ba1a,'the\x20JSON\x20schema');}async function vn(_0x122680){const _0x22fd45=_0x1ca96b;_0x122680[_0x22fd45(0x1e9)]===void 0x0&&(console[_0x22fd45(0x1ce)](_0x22fd45(0x213)),process[_0x22fd45(0x176)](0x2));let _0x3c79cd=Ne(_0x122680[_0x22fd45(0x1e9)],_0x22fd45(0x24a)),_0x257e83=(await H(_0x122680[_0x22fd45(0xec)],process[_0x22fd45(0x2d3)]))[_0x22fd45(0x2c1)]();_0x257e83||(console['error']('complete\x20needs\x20a\x20prompt:\x20delegate-cli\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22,\x20or\x20-\x20to\x20read\x20stdin.'),process['exit'](0x2));let {client:_0x4c7c33}=await $(_0x122680);try{let _0x443911=await _0x12f3ad(_0x4c7c33,{'prompt':_0x257e83,'jsonSchema':_0x3c79cd,'model':_0x122680[_0x22fd45(0x1cb)]||process.env.MODEL||_0x116abc,..._0x122680[_0x22fd45(0x291)]!==void 0x0&&{'sessionId':_0x122680[_0x22fd45(0x291)]}},void 0x0);m(_0x122680,_0x443911,_0x2b0a5d=>{const _0x4a082e=_0x22fd45;process[_0x4a082e(0x28e)]['write'](JSON[_0x4a082e(0x2e1)](_0x2b0a5d[_0x4a082e(0x2c2)],null,0x2)+'\x0a');});}catch(_0x5b5fb1){if(!_0x33f25b(_0x5b5fb1))throw _0x5b5fb1;console['error'](_0x5b5fb1[_0x22fd45(0x1a3)]),process[_0x22fd45(0x176)](0x1);}}function Z(_0x47a1db){const _0x18b7c5=_0x1ca96b;process[_0x18b7c5(0x28e)][_0x18b7c5(0x1c6)](_0x18b7c5(0x14a)+_0x47a1db[_0x18b7c5(0x1cb)]+'\x20('+_0x47a1db['model_version']+_0x18b7c5(0x202)+_0x47a1db[_0x18b7c5(0x1f7)]['total_tokens']+'\x20tokens\x0a');}function An(_0x4badf9){const _0x51b284=_0x1ca96b;Z(_0x4badf9);for(let _0x2d47d1 of Object[_0x51b284(0xfa)](_0x4badf9[_0x51b284(0x19a)])){let _0x30c404=_0x4badf9[_0x51b284(0x19a)][_0x2d47d1],_0x348a03=_0x30c404[_0x51b284(0x28f)]===_0x51b284(0x231)?'probability\x20'+_0x30c404['probability'][_0x51b284(0x24b)](0x2):_0x30c404[_0x51b284(0x28f)]===_0x51b284(0x191)?_0x51b284(0x1c9)+_0x30c404[_0x51b284(0x191)]+_0x51b284(0x258)+_0x30c404[_0x51b284(0x140)]['toFixed'](0x2)+')':_0x51b284(0x222)+_0x30c404[_0x51b284(0x1f9)][_0x51b284(0x24b)](0x2)+_0x51b284(0x258)+_0x30c404[_0x51b284(0x140)]['toFixed'](0x2)+')';process[_0x51b284(0x28e)]['write']('\x20\x20'+_0x2d47d1+':\x20'+_0x348a03+'\x0a');}}function En(_0x3b7b4a){const _0x180ef0=_0x1ca96b;Z(_0x3b7b4a),_0x3b7b4a[_0x180ef0(0x157)]['forEach']((_0x5cdb51,_0x2dbaed)=>{const _0x4f9f4d=_0x180ef0;process[_0x4f9f4d(0x28e)]['write']('\x20\x20'+(_0x2dbaed+0x1)+'.\x20'+_0x5cdb51['id']+'\x20\x20'+_0x5cdb51[_0x4f9f4d(0x1f9)][_0x4f9f4d(0x24b)](0x3)+_0x4f9f4d(0x2f6)+_0x5cdb51[_0x4f9f4d(0x2b8)]+')\x0a');});}function $n(_0x7e03c){const _0x1b3902=_0x1ca96b;Z(_0x7e03c),process[_0x1b3902(0x28e)][_0x1b3902(0x1c6)](_0x1b3902(0x2d4)+_0x7e03c[_0x1b3902(0x23b)]+'\x0a');for(let _0x49fca4 of _0x7e03c[_0x1b3902(0x157)])process[_0x1b3902(0x28e)]['write']('\x20\x20'+_0x49fca4['id']+':\x20'+_0x49fca4[_0x1b3902(0x155)]+_0x1b3902(0x258)+_0x49fca4[_0x1b3902(0x140)][_0x1b3902(0x24b)](0x2)+')\x0a');}async function xn(_0x1128f1){const _0x4dab1b=_0x1ca96b;let _0x3edb07=_0x1128f1['prompt'][_0x4dab1b(0x2c1)]();_0x3edb07||(console[_0x4dab1b(0x1ce)](_0x4dab1b(0x260)),process['exit'](0x2));let {client:_0x320469}=await $(_0x1128f1);try{let _0xb69d97=_0x3edb07==='-'?{'data':await In(process[_0x4dab1b(0x2d3)])}:_0x3edb07;m(_0x1128f1,await _0x446291(_0x320469,_0xb69d97,void 0x0),_0x458352=>{const _0x40c535=_0x4dab1b;process[_0x40c535(0x28e)][_0x40c535(0x1c6)](_0x458352['text']+'\x0a');});}catch(_0x89efb5){if(_0x27e64b(_0x89efb5)&&(console['error'](_0x89efb5[_0x4dab1b(0x1a3)]),process[_0x4dab1b(0x176)](_0x89efb5['status']===void 0x0?0x2:0x1)),typeof _0x89efb5?.['code']!=_0x4dab1b(0x292))throw _0x89efb5;console['error'](_0x4dab1b(0x18c)+_0x3edb07+'\x20('+_0x89efb5[_0x4dab1b(0x1a3)]+').'),process['exit'](0x2);}}async function In(_0xcdb52a){const _0x37cb4e=_0x1ca96b;let _0x671250=[];for await(let _0x560ec9 of _0xcdb52a)_0x671250[_0x37cb4e(0x219)](Buffer[_0x37cb4e(0x107)](_0x560ec9));return Buffer['concat'](_0x671250);}var he=[_0x1ca96b(0x298),_0x1ca96b(0x206),_0x1ca96b(0x289),_0x1ca96b(0x1f2),_0x1ca96b(0x106),'complete',_0x1ca96b(0x263),_0x1ca96b(0x1c7),_0x1ca96b(0x19d),_0x1ca96b(0x10b)],ye={'list':'delegations\x20list\x20<backend-project-id>','pending':_0x1ca96b(0x1b9),'show':_0x1ca96b(0x1e6),'create':'delegations\x20create\x20--session\x20<id>\x20[--to\x20<email|name>]\x20[--summary\x20<text>]\x20\x22<task>\x22|-','claim':_0x1ca96b(0x1b7),'complete':_0x1ca96b(0x173),'accept':_0x1ca96b(0x125),'dismiss':_0x1ca96b(0x1e0),'cancel':_0x1ca96b(0xf8),'delete':_0x1ca96b(0x2a5)};async function Tn(_0x4ba1d2){const _0x439cc9=_0x1ca96b;let [_0x5ccd9f='',_0x4319b8='',..._0x19ef07]=_0x4ba1d2[_0x439cc9(0x235)];he[_0x439cc9(0x2b6)](_0x5ccd9f)||(console[_0x439cc9(0x1ce)]((_0x5ccd9f?_0x439cc9(0x17c)+_0x5ccd9f+'.\x20':'')+_0x439cc9(0x17b)+he[_0x439cc9(0x2dc)](_0x439cc9(0x1c2))+'.'),process[_0x439cc9(0x176)](0x2));let _0x377a50=_0x5ccd9f;_0x377a50!==_0x439cc9(0x1f2)&&(_0x4ba1d2[_0x439cc9(0x2e6)]!==void 0x0||_0x4ba1d2[_0x439cc9(0x1d9)]!==void 0x0||_0x4ba1d2[_0x439cc9(0x291)]!==void 0x0)&&(console[_0x439cc9(0x1ce)](_0x439cc9(0xef)),process[_0x439cc9(0x176)](0x2));let _0x14cb0d=(_0x377a50===_0x439cc9(0x1f2)?_0x4ba1d2['operands'][_0x439cc9(0x1ea)](0x1):_0x19ef07)['join']('\x20')[_0x439cc9(0x2c1)](),_0x2ca3b3=_0x377a50===_0x439cc9(0x1f2)||_0x377a50===_0x439cc9(0x24a);(_0x377a50!==_0x439cc9(0x1f2)&&!_0x4319b8||(_0x2ca3b3?!_0x14cb0d:_0x14cb0d)||_0x377a50===_0x439cc9(0x1f2)&&!_0x4ba1d2[_0x439cc9(0x291)])&&(console['error']('Usage:\x20delegate-cli\x20'+ye[_0x377a50]),process[_0x439cc9(0x176)](0x2));let _0x1264ba=_0x2ca3b3&&_0x14cb0d==='-'?(await H('-',process[_0x439cc9(0x2d3)]))[_0x439cc9(0x2c1)]():_0x14cb0d;_0x2ca3b3&&!_0x1264ba&&(console[_0x439cc9(0x1ce)](_0x439cc9(0x111)+ye[_0x377a50]+_0x439cc9(0x25c)),process[_0x439cc9(0x176)](0x2));let {client:_0x1a8895}=await $(_0x4ba1d2);try{await Un(_0x4ba1d2,_0x1a8895,_0x377a50,_0x4319b8,_0x1264ba);}catch(_0x53b013){if(!_0x5772fd(_0x53b013))throw _0x53b013;console[_0x439cc9(0x1ce)](_0x53b013['message']),process['exit'](0x1);}}async function Un(_0x316ae6,_0x36490a,_0x157072,_0x2eba51,_0xaa4d56){const _0x24a9dd=_0x1ca96b;switch(_0x157072){case _0x24a9dd(0x298):m(_0x316ae6,await _0x21ce84(_0x36490a,_0x2eba51),Dn);return;case _0x24a9dd(0x206):m(_0x316ae6,await _0x4457af(_0x36490a,_0x2eba51),_0x552e6a=>{const _0x304374=_0x24a9dd;_0x552e6a['delegation']&&process[_0x304374(0x28e)][_0x304374(0x1c6)]('Claimed\x20from\x20delegation\x20'+_0x552e6a[_0x304374(0x1d7)]['id']+'\x20('+_0x552e6a[_0x304374(0x1d7)][_0x304374(0x288)]+_0x304374(0x138)),_0x552e6a['pendingResults'][_0x304374(0x131)]===0x0&&process['stderr'][_0x304374(0x1c6)](_0x304374(0x1ef));for(let _0x1d99ca of _0x552e6a[_0x304374(0x1b1)])process['stdout'][_0x304374(0x1c6)]('\x0a'+_0x1d99ca['id']+_0x304374(0x1a8)+(_0x1d99ca[_0x304374(0x2a1)]??_0x304374(0x2f4))+'\x20\x20'+(_0x1d99ca['task']??'')+'\x0a'+(_0x1d99ca[_0x304374(0x21c)]?.[_0x304374(0x12c)]??'')+'\x0a');_0x552e6a[_0x304374(0x1b1)][_0x304374(0x131)]>0x0&&process[_0x304374(0x18f)]['write']('\x0aAccept\x20one\x20with:\x20delegate-cli\x20delegations\x20accept\x20<id>\x0a');});return;case _0x24a9dd(0x289):m(_0x316ae6,await _0x4865a5(_0x36490a,_0x2eba51),we);return;case _0x24a9dd(0x1f2):{let _0x2e4646=await _0x570d57(_0x36490a,{'sessionId':_0x316ae6[_0x24a9dd(0x291)],'task':_0xaa4d56,..._0x316ae6['contextSummary']!==void 0x0&&{'contextSummary':_0x316ae6['contextSummary']},..._0x316ae6[_0x24a9dd(0x2e6)]!==void 0x0&&{'recipient':_0x316ae6[_0x24a9dd(0x2e6)]}});m(_0x316ae6,_0x2e4646,_0x4426fb=>{const _0x461f51=_0x24a9dd;_0x4426fb[_0x461f51(0x240)]?process[_0x461f51(0x28e)][_0x461f51(0x1c6)](_0x461f51(0x1be)+_0x4426fb['delegationId']+'\x20to\x20'+_0x4426fb['assignedUser']['displayName']+'\x20<'+_0x4426fb['assignedUser'][_0x461f51(0x2e5)]+'>.\x0a'):process['stdout']['write'](_0x461f51(0x295)+_0x4426fb[_0x461f51(0x27e)]+'.\x20Share:\x20'+_0x4426fb[_0x461f51(0x16c)]+'\x0a');});return;}case'claim':{let _0x42e06b=await _0x14f743(_0x36490a,_0x2eba51);m(_0x316ae6,_0x42e06b,_0x7ae625=>{const _0x595dc3=_0x24a9dd;we(_0x7ae625),process['stdout'][_0x595dc3(0x1c6)](_0x595dc3(0x1fb)+_0x7ae625[_0x595dc3(0x291)]+'\x0a'),process[_0x595dc3(0x18f)][_0x595dc3(0x1c6)](_0x595dc3(0x27f)+_0x7ae625[_0x595dc3(0x291)]+_0x595dc3(0x2ea)+_0x7ae625[_0x595dc3(0x27e)]+_0x595dc3(0xf4));});return;}case'complete':{let {alreadyCompleted:_0x248d75}=await _0x51c2df(_0x36490a,_0x2eba51,{'content':_0xaa4d56});m(_0x316ae6,{'delegationId':_0x2eba51,'alreadyCompleted':_0x248d75},_0x262b9c=>{const _0x5399a1=_0x24a9dd;process[_0x5399a1(0x28e)][_0x5399a1(0x1c6)]((_0x262b9c['alreadyCompleted']?_0x5399a1(0x13c):_0x5399a1(0x165))+_0x5399a1(0x14f)+_0x262b9c[_0x5399a1(0x27e)]+'.\x0a');});return;}case'accept':{let _0x156f78=await _0x3a7be6(_0x36490a,_0x2eba51);m(_0x316ae6,{'delegationId':_0x2eba51,..._0x156f78},_0x58d617=>{const _0x5ab188=_0x24a9dd;process[_0x5ab188(0x28e)][_0x5ab188(0x1c6)]((_0x58d617['alreadyAccepted']?_0x5ab188(0x261):_0x5ab188(0x210))+_0x5ab188(0x14f)+_0x58d617[_0x5ab188(0x27e)]+'.\x0a');});return;}default:{let _0x2121d0={'dismiss':_0x5e9108,'cancel':_0x3d1cf8,'delete':_0x60d1fa}[_0x157072];await _0x2121d0(_0x36490a,_0x2eba51);let _0x236997={'dismiss':_0x24a9dd(0xeb),'cancel':_0x24a9dd(0x1b4),'delete':_0x24a9dd(0x119)}[_0x157072];m(_0x316ae6,{'delegationId':_0x2eba51,[_0x236997]:!0x0},()=>{const _0x27541a=_0x24a9dd;process[_0x27541a(0x28e)]['write'](''+_0x236997[0x0]['toUpperCase']()+_0x236997[_0x27541a(0x1ea)](0x1)+_0x27541a(0x14f)+_0x2eba51+'.\x0a');});}}}function Dn(_0x40aaf5){const _0x50a4df=_0x1ca96b;if(_0x40aaf5[_0x50a4df(0x131)]===0x0){process[_0x50a4df(0x18f)][_0x50a4df(0x1c6)](_0x50a4df(0x19c));return;}process[_0x50a4df(0x28e)]['write']('ID'['padEnd'](0x24)+'\x20\x20'+'STATUS'['padEnd'](0x9)+'\x20\x20'+_0x50a4df(0x177)['padEnd'](0x18)+_0x50a4df(0x20f));for(let _0x20a26c of _0x40aaf5)process[_0x50a4df(0x28e)][_0x50a4df(0x1c6)](_0x20a26c['id']['padEnd'](0x24)+'\x20\x20'+_0x20a26c['status'][_0x50a4df(0x170)](0x9)+'\x20\x20'+(_0x20a26c[_0x50a4df(0x2a1)]??'-')['padEnd'](0x18)+'\x20\x20'+(_0x20a26c[_0x50a4df(0x196)]??'')+'\x0a');}function we(_0x1a3cca){const _0x526367=_0x1ca96b;process['stdout']['write'](_0x526367(0x236)+(_0x1a3cca['sourceUserEmail']??'-')+'\x0a'),_0x1a3cca[_0x526367(0x2ee)]&&process[_0x526367(0x28e)][_0x526367(0x1c6)](_0x526367(0x1fb)+_0x1a3cca[_0x526367(0x2ee)]+'\x0a'),process[_0x526367(0x28e)][_0x526367(0x1c6)](_0x526367(0x2bb)+(_0x1a3cca[_0x526367(0x196)]??'-')+'\x0a'),_0x1a3cca[_0x526367(0x1d9)]&&process[_0x526367(0x28e)]['write']('\x0a'+_0x1a3cca[_0x526367(0x1d9)]+'\x0a\x0a');}async function Nn(_0x4b8de0){const _0x3f38a6=_0x1ca96b;_0x4b8de0[_0x3f38a6(0xec)][_0x3f38a6(0x2c1)]()||(console[_0x3f38a6(0x1ce)](_0x3f38a6(0x187)),process[_0x3f38a6(0x176)](0x2));let {client:_0x282b99}=await $(_0x4b8de0),_0x176626;try{_0x176626=await _0x20a661(_0x282b99,_0x4b8de0['prompt']);}catch(_0x56223a){if(!_0x5772fd(_0x56223a))throw _0x56223a;console[_0x3f38a6(0x1ce)](_0x56223a[_0x3f38a6(0x1a3)]),process['exit'](0x1);}m(_0x4b8de0,_0x176626,_0x11740e=>{const _0x407cec=_0x3f38a6;_0x11740e[_0x407cec(0x131)]===0x0&&process['stderr']['write'](_0x407cec(0x21a)+_0x4b8de0[_0x407cec(0xec)]['trim']()+_0x407cec(0x220));for(let _0x4d8151 of _0x11740e)process[_0x407cec(0x28e)][_0x407cec(0x1c6)](_0x4d8151[_0x407cec(0x2e5)][_0x407cec(0x170)](0x20)+'\x20\x20'+_0x4d8151[_0x407cec(0x273)]+'\x0a');});}async function _n(_0x107a05){const _0x3d817e=_0x1ca96b;_0x107a05[_0x3d817e(0x253)]===_0x3d817e(0x284)&&(console[_0x3d817e(0x1ce)](_0x3d817e(0x199)),process[_0x3d817e(0x176)](0x2));let _0x1993f6=G(_0x2215e4()),_0xfeca48=_0x107a05['skipEnvCheck'];if(_0x107a05[_0x3d817e(0x253)]){let _0x165e5f=_0x107a05['env'];await _0xd140ae({'env':_0x165e5f,'tenant':_0x107a05[_0x3d817e(0x192)]??Q(_0x1993f6,_0x205d9c[_0x165e5f]),'skipEnvCheck':_0xfeca48});return;}let _0x68f53b=_0x107a05[_0x3d817e(0x2e8)]??Ue();if(_0x68f53b){await _0xd140ae({'baseUrl':_0x68f53b,'tenant':_0x107a05[_0x3d817e(0x192)]??Q(_0x1993f6,_0x68f53b),'skipEnvCheck':_0xfeca48});return;}if(_0x1993f6?.['baseUrl']){await _0xd140ae({'baseUrl':_0x1993f6[_0x3d817e(0x168)],'tenant':_0x107a05[_0x3d817e(0x192)]??_0x1993f6[_0x3d817e(0x2b7)],'skipEnvCheck':_0xfeca48});return;}console['error']('First\x20login\x20requires\x20--env\x20or\x20--url.\x20Usage:\x20delegate-cli\x20login\x20--env\x20<alpha|staging|production>,\x20or\x20delegate-cli\x20login\x20--url\x20https://automationsuite.contoso.com'),process['exit'](0x2);}function Q(_0x32e4a6,_0x14feb7){const _0x414b23=_0x1ca96b;return _0x32e4a6?.['baseUrl']&&Rn(_0x32e4a6['baseUrl'],_0x14feb7)?_0x32e4a6[_0x414b23(0x2b7)]:void 0x0;}function Rn(_0x4c6df4,_0x1276c7){const _0x45c1ab=_0x1ca96b;try{return new URL(_0x4c6df4)['origin']===new URL(_0x1276c7)[_0x45c1ab(0x2d6)];}catch{return!0x1;}}async function Pn(_0x57b270){const _0x2b6daf=_0x1ca96b;Y()&&(console['error'](_0x2b6daf(0x1dc)),process['exit'](0x2));let _0x5b0f36=await _0x2c94dc();if(_0x5b0f36||(console['error'](Cn()),process[_0x2b6daf(0x176)](0x2)),_0x57b270[_0x2b6daf(0x2c1)]()){let _0x147eac=await _0x5414f9(_0x5b0f36,_0x57b270);_0x26bb53(_0x147eac)||(console[_0x2b6daf(0x1ce)](_0x2b6daf(0x2a6)+_0x2215e4()+';\x20the\x20saved\x20login\x20still\x20uses\x20'+_0x5b0f36[_0x2b6daf(0x2b7)]+'.'),process[_0x2b6daf(0x176)](0x1)),console[_0x2b6daf(0xf3)]('Tenant:\x20'+_0x147eac[_0x2b6daf(0x2b7)]+'\x20('+_0x147eac[_0x2b6daf(0x2eb)]+_0x2b6daf(0x128)+_0x2215e4());return;}On(await _0x455bce(_0x5b0f36),_0x5b0f36);}function Cn(){const _0x74471e=_0x1ca96b;if(_0x35e9de[_0x74471e(0x123)](_0x2215e4()))return _0x74471e(0x23f);let _0x434902=z();return G(_0x434902)?_0x74471e(0x148)+_0x434902+_0x74471e(0x20e):'No\x20CLI\x20login\x20found.\x20Run\x20`delegate-cli\x20login\x20--env\x20<alpha|staging|production>`\x20first.';}function On(_0x543ea8,_0x992387){const _0x256d72=_0x1ca96b;let _0x2e9976=_0x543ea8['map'](_0x4df568=>_0x4df568['id']===_0x992387[_0x256d72(0x2eb)]?'*\x20'+_0x4df568['name']+'\x20(current)':'\x20\x20'+_0x4df568[_0x256d72(0x237)]);process[_0x256d72(0x28e)][_0x256d72(0x1c6)](_0x256d72(0xea)+(_0x992387[_0x256d72(0x1ad)]??_0x992387[_0x256d72(0x27a)])+':\x0a'+_0x2e9976[_0x256d72(0x2dc)]('\x0a')+'\x0a'),_0x543ea8['length']>0x1&&process[_0x256d72(0x28e)]['write']('Switch\x20with:\x20delegate-cli\x20tenant\x20<name>\x0a');}function Ln(_0x54780d){const _0x8644c0=_0x1ca96b;return _0x54780d?.[_0x8644c0(0x1cd)]?.[_0x8644c0(0x288)]===0x191||/401/[_0x8644c0(0x28a)](String(_0x54780d?.['message']??''));}var w={'lastType':null,'quiet':!0x1},_e=_0x49b3bc=>{const _0x368748=_0x1ca96b;switch(_0x49b3bc[_0x368748(0x28f)]){case _0x368748(0x2d5):_0x49b3bc[_0x368748(0x291)]&&_0x49b3bc['sessionId']!==w[_0x368748(0x291)]&&(process[_0x368748(0x18f)][_0x368748(0x1c6)]('Session:\x20'+_0x49b3bc['sessionId']+_0x368748(0x11e)+_0x49b3bc[_0x368748(0x291)]+')\x0a'),w[_0x368748(0x291)]=_0x49b3bc[_0x368748(0x291)]);break;case'turn_start':_0x49b3bc[_0x368748(0x241)]&&_0x49b3bc[_0x368748(0x241)]!==w[_0x368748(0x241)]&&(w[_0x368748(0x2bd)]!==null&&process['stderr']['write']('\x0a'),process[_0x368748(0x18f)][_0x368748(0x1c6)](_0x368748(0x151)+_0x49b3bc['turnId']+_0x368748(0x1b0)+_0x49b3bc[_0x368748(0x291)]+_0x368748(0xe7)+_0x49b3bc[_0x368748(0x241)]+')\x0a'),w['turnId']=_0x49b3bc['turnId'],w[_0x368748(0x2bd)]='turn_start');break;case'thinking':_0x49b3bc[_0x368748(0x12c)]&&!w[_0x368748(0x1bb)]&&(w[_0x368748(0x2bd)]!=='thinking'&&process[_0x368748(0x18f)]['write']('\x0a🤔\x20'),process[_0x368748(0x18f)][_0x368748(0x1c6)](_0x49b3bc[_0x368748(0x12c)]),w[_0x368748(0x2bd)]=_0x368748(0x11d));break;case _0x368748(0x21d):w[_0x368748(0x2bd)]!==null&&process[_0x368748(0x18f)][_0x368748(0x1c6)]('\x0a'),process[_0x368748(0x18f)][_0x368748(0x1c6)](_0x368748(0x1f5)+(_0x49b3bc[_0x368748(0x217)]??_0x368748(0x15e))+'\x0a'),w['lastType']=_0x368748(0x21d);break;case _0x368748(0x1a3):_0x49b3bc[_0x368748(0x12c)]&&(w[_0x368748(0x2bd)]!==_0x368748(0x1a3)&&w[_0x368748(0x2bd)]!==null&&process['stdout']['write']('\x0a'),process[_0x368748(0x28e)][_0x368748(0x1c6)](_0x49b3bc[_0x368748(0x12c)]),w[_0x368748(0x2bd)]=_0x368748(0x1a3));break;case'error':w[_0x368748(0x2bd)]!==null&&process[_0x368748(0x18f)][_0x368748(0x1c6)]('\x0a'),process[_0x368748(0x18f)][_0x368748(0x1c6)]('✗\x20'+(_0x49b3bc['error']??'error')+'\x0a'),w['lastType']=_0x368748(0x1ce);break;case _0x368748(0x2ab):(w[_0x368748(0x2bd)]===_0x368748(0x1a3)||w[_0x368748(0x2bd)]===_0x368748(0x11d))&&process[_0x368748(0x28e)]['write']('\x0a'),process[_0x368748(0x18f)][_0x368748(0x1c6)]('✓\x20Done\x0a'),w[_0x368748(0x2bd)]=_0x368748(0x2ab);break;}};function ke(_0x4e54e1,_0x441b29,_0x2d9d0c,_0x2ebe3c){const _0x4207f1=_0x1ca96b;let _0x1e4528=_0x4e54e1[_0x4207f1(0x1cb)]||process.env.MODEL;return{'backendUrl':_0x2d9d0c,'auth':_0x441b29,'enableComputerUse':!_0x4e54e1[_0x4207f1(0x15b)]&&!_0x4e54e1[_0x4207f1(0x114)],'autoSpawnInterop':!_0x4e54e1[_0x4207f1(0x15b)],'enableConnections':!_0x4e54e1[_0x4207f1(0xfc)],'enableSecurity':!_0x4e54e1[_0x4207f1(0x1ab)],'keepInteropAlive':_0x4e54e1[_0x4207f1(0x23c)],..._0x2ebe3c[_0x4207f1(0x17e)]?{'enableBackgroundCommands':!0x1}:{},..._0x4e54e1[_0x4207f1(0x23d)]?{'enableMemory':!0x1}:{},..._0x4e54e1[_0x4207f1(0x184)]?{'enableTaskAutomation':!0x0}:{},..._0x4e54e1[_0x4207f1(0x203)][_0x4207f1(0x131)]>0x0?{'preloadSkills':_0x4e54e1['preloadSkills']}:{},..._0x1e4528?{'model':_0x1e4528}:{},..._0x4e54e1[_0x4207f1(0x1fe)]?{'projectId':_0x4e54e1[_0x4207f1(0x1fe)]}:{},..._0x4e54e1[_0x4207f1(0x1af)]?{'vertical':_0x4e54e1[_0x4207f1(0x1af)]}:{},..._0x4e54e1[_0x4207f1(0x186)]?{'workingDirectory':_0x4e54e1[_0x4207f1(0x186)]}:{},..._0x4e54e1[_0x4207f1(0x223)]?{'bundledSkillsPath':_0x4e54e1[_0x4207f1(0x223)]}:{},..._0x4e54e1[_0x4207f1(0x183)]?{'effort':_0x4e54e1['effort']}:{},..._0x4e54e1[_0x4207f1(0x291)]?{'sessionId':_0x4e54e1['sessionId']}:{},..._0x4e54e1[_0x4207f1(0x10e)]?{'verbose':!0x0}:{}};}async function Fn(_0x4cd7e7){const _0x19ef39=_0x1ca96b;let _0x51a19f=_0x4cd7e7['outputFormat']!==_0x19ef39(0x233),_0x326f8b=_0x4cd7e7['jsonSchemaPath']===void 0x0?null:Ne(_0x4cd7e7[_0x19ef39(0x1e9)],_0x19ef39(0x2c4)),_0x14067d=!_0x51a19f&&!_0x326f8b&&!_0x4cd7e7[_0x19ef39(0xff)]&&_0x4cd7e7[_0x19ef39(0xec)]!=='-'&&!!process['stdin'][_0x19ef39(0x2d1)]&&!!process[_0x19ef39(0x28e)][_0x19ef39(0x2d1)],_0x37064b=_0x4cd7e7[_0x19ef39(0x144)]==='stream-json'?re(process[_0x19ef39(0x2d3)],_0x35a781=>{const _0x3f2d41=_0x19ef39;process['stderr'][_0x3f2d41(0x1c6)](_0x35a781[_0x3f2d41(0x1a3)]+_0x3f2d41(0x1bc));}):null,_0xd6eef7=_0x37064b?(await _0x37064b[_0x19ef39(0x1c4)]())[_0x19ef39(0xfd)]:void 0x0,_0x5c003f=_0x37064b?_0xd6eef7?.['text']??'':_0x14067d?_0x4cd7e7[_0x19ef39(0xec)]['trim']():await H(_0x4cd7e7[_0x19ef39(0xec)],process['stdin']);if(!_0x14067d&&!_0x5c003f&&(console['error'](_0x19ef39(0x167)),process[_0x19ef39(0x176)](0x2)),!_0x51a19f){await be(_0x4cd7e7,_0x5c003f,_0x14067d,null,_0x326f8b,null);return;}let _0x21ec87=!0x1,_0x4e530f=_0x554715=>{const _0x438a00=_0x19ef39;_0x21ec87=!0x0,O(_0x14e7cd(_0x554715)),(_0x554715[_0x438a00(0x1d2)]||_0x554715[_0x438a00(0x281)])&&(process[_0x438a00(0x2fa)]=0x1);},_0x518515=Date['now']();try{await be(_0x4cd7e7,_0x5c003f,!0x1,_0x4e530f,_0x326f8b,_0x37064b?{'messages':_0x37064b,'first':_0xd6eef7,'close':()=>{const _0x352d04=_0x19ef39;process[_0x352d04(0x2d3)][_0x352d04(0x19f)]();}}:null);}catch(_0xfc480f){if(_0x21ec87)throw _0xfc480f;process[_0x19ef39(0x18f)]['write']((_0xfc480f instanceof Error?_0xfc480f['stack']??_0xfc480f['message']:String(_0xfc480f))+'\x0a'),_0x4e530f(new _0x28c1c0(_0x518515)[_0x19ef39(0x2d9)]({'endedAtMs':Date[_0x19ef39(0x121)](),'usage':[],'error':_0xfc480f}));}finally{_0x37064b&&(process[_0x19ef39(0x2d3)][_0x19ef39(0x19f)](),_0x37064b['return'](void 0x0));}}async function be(_0x322ccc,_0x30a210,_0x4de431,_0x3c052f,_0x1abf46,_0x194a1a){const _0x5e490d=_0x1ca96b;w={'lastType':null,'quiet':_0x322ccc[_0x5e490d(0x1bb)]};let _0x49e8ea=new Set(),_0x3fc07a,_0x3a5192=_0x21bde1=>{const _0x473215=_0x5e490d;(!_0x3c052f||_0x21bde1['type']===_0x473215(0x2d5)||_0x21bde1[_0x473215(0x28f)]==='turn_start')&&(_0x3fc07a??_e)(_0x21bde1);for(let _0x53bd7b of _0x49e8ea)_0x53bd7b(_0x21bde1);},_0x2f4358=await V(),_0x4d32db=new _0x1589f9();_0x4d32db[_0x5e490d(0x2de)](_0x3a5192);let _0x4335a6=_0x588bbd(_0x322ccc['env'],_0x2f4358,_0x322ccc[_0x5e490d(0x287)]);X(_0x322ccc[_0x5e490d(0x253)],_0x322ccc[_0x5e490d(0x287)],_0x4335a6);let _0xcf0f8d={'input':null},_0x336729=_0x4de431?ne(()=>_0xcf0f8d[_0x5e490d(0x205)],_0x1b5ae2=>{const _0x145eca=_0x5e490d;process[_0x145eca(0x18f)]['write'](_0x1b5ae2);}):null,_0x47880a=_0x9ab488=>_0x336729?{..._0x9ab488,'askUser':_0x336729}:_0x9ab488,_0x58e04e=_0x47880a(ke(_0x322ccc,_0x2f4358,_0x4335a6,{'oneTurn':!_0x4de431})),_0x63a83f=!0x1,_0x5d8807=!0x1,_0x399c18,_0x121798=()=>_0x399c18??=_0x4d32db['destroy'](),_0x5159ae=()=>{const _0x2c3e0b=_0x5e490d;_0x5d8807&&process['exit'](0x82),_0x5d8807=!0x0,process[_0x2c3e0b(0x18f)]['write']('\x0aStopping…\x20(Ctrl+C\x20again\x20to\x20force\x20exit)\x0a'),_0x63a83f&&_0x4d32db[_0x2c3e0b(0x19d)]()[_0x2c3e0b(0x12e)](_0x5ac9b8=>console[_0x2c3e0b(0x1ce)](_0x5ac9b8))['then'](_0x121798)[_0x2c3e0b(0x2c7)](()=>process[_0x2c3e0b(0x176)](0x82),_0x1254e7=>{const _0x1cb419=_0x2c3e0b;console[_0x1cb419(0x1ce)](_0x1254e7),process[_0x1cb419(0x176)](0x82);});};process['on'](_0x5e490d(0x234),_0x5159ae);let _0x59bc52=_0x322ccc[_0x5e490d(0x285)],_0x4273b0=async _0x11cf85=>{const _0x1b3ad8=_0x5e490d;let _0x50b124=_0x59bc52;_0x59bc52=[];let _0x4a94aa=()=>_0x4d32db[_0x1b3ad8(0x180)](_0x11cf85,{'attachments':_0x50b124});try{return await _0x4a94aa();}catch(_0x55d752){if(_0x5d8807||!Ln(_0x55d752)||!process[_0x1b3ad8(0x2d3)][_0x1b3ad8(0x2d1)]||_0x322ccc[_0x1b3ad8(0x253)]===_0x1b3ad8(0x284)||!(_0x322ccc[_0x1b3ad8(0x253)]||_0x2f4358[_0x1b3ad8(0x168)]))throw _0x55d752;process[_0x1b3ad8(0x18f)][_0x1b3ad8(0x1c6)]('\x0a⚠️\x20\x20Auth\x20expired.\x20Opening\x20browser\x20to\x20re-login…\x0a');let _0x4d6d0c=_0x4d32db[_0x1b3ad8(0x153)]()??_0x322ccc[_0x1b3ad8(0x291)],_0x166391=await _0xd140ae(_0x322ccc[_0x1b3ad8(0x253)]?{'env':_0x322ccc[_0x1b3ad8(0x253)],'tenant':Q(_0x2f4358,_0x205d9c[_0x322ccc['env']]),'skipEnvCheck':!0x0}:{'baseUrl':_0x2f4358[_0x1b3ad8(0x168)],'tenant':_0x2f4358[_0x1b3ad8(0x2b7)],'skipEnvCheck':!0x0}),_0x4d44d={'text':'','failed':!0x1,'sessionId':_0x4d6d0c};return _0x5d8807||(_0x63a83f=!0x1,await _0x121798(),_0x5d8807)?_0x4d44d:(_0x4d32db=new _0x1589f9(),_0x399c18=void 0x0,_0x4d32db[_0x1b3ad8(0x2de)](_0x3a5192),_0x2f4358=_0x166391,await _0x4d32db['initialize']({..._0x47880a(ke(_0x322ccc,_0x2f4358,_0x4335a6,{'oneTurn':!_0x4de431})),..._0x4d6d0c?{'sessionId':_0x4d6d0c}:{}}),_0x63a83f=!0x0,_0x5d8807?_0x4d44d:_0x4a94aa());}};try{if(await _0x4d32db[_0x5e490d(0x1bf)](_0x58e04e),_0x63a83f=!0x0,_0x5d8807)return;if(_0x4de431)await Bn({'prompt':_0x30a210,'sendMessage':_0x4273b0,'onSigint':_0x5159ae,'setAnswerInput':_0x52df56=>{const _0x2cb716=_0x5e490d;_0xcf0f8d[_0x2cb716(0x205)]=_0x52df56;},'registerEventPrinter':_0x5a86bc=>(_0x3fc07a=_0x5a86bc,()=>{_0x3fc07a=void 0x0;})});else{if(_0x3c052f||_0x1abf46){let _0x2f2998=_0x322ccc[_0x5e490d(0x1d3)]===_0x5e490d(0x19b)?_0x303d21=>O(_0x11bc15(_0x303d21)):()=>{},_0x2aa4ad=_0x194a1a?ie({'input':_0x194a1a,'getAgent':()=>_0x4d32db,'replay':_0x322ccc[_0x5e490d(0x267)],'onEvent':_0x19bb36=>(_0x49e8ea[_0x5e490d(0x169)](_0x19bb36),()=>{const _0x24be45=_0x5e490d;_0x49e8ea[_0x24be45(0x10b)](_0x19bb36);}),'write':O,'isRunStopNotice':_0x172b0b,'actionableErrorText':_0x55964b,'warn':_0x249492=>{const _0x50715a=_0x5e490d;process[_0x50715a(0x18f)][_0x50715a(0x1c6)](_0x249492);}}):null,_0x32b7a7=await _0x113a74({'onEvent':_0x280248=>(_0x49e8ea[_0x5e490d(0x169)](_0x280248),()=>{const _0x4c22c6=_0x5e490d;_0x49e8ea[_0x4c22c6(0x10b)](_0x280248);}),'sendMessage':async _0x4d8481=>{const _0x44e5d1=_0x5e490d;try{let _0x1dc368=await _0x4273b0(_0x4d8481);return _0x2aa4ad?await _0x2aa4ad[_0x44e5d1(0x12b)](_0x1dc368):_0x1dc368;}finally{_0x2aa4ad?.['stop']();}},'getSessionId':()=>_0x4d32db[_0x5e490d(0x153)](),'getTurnUsageHistory':_0x3a76b1=>_0x4d32db[_0x5e490d(0xf5)](_0x3a76b1),'complete':_0x58c9fb=>_0x4d32db[_0x5e490d(0x24a)](_0x58c9fb)},_0x30a210,void 0x0,_0x2f2998,_0x1abf46?{'outputSchema':_0x1abf46}:void 0x0);_0x3c052f?_0x3c052f(_0x32b7a7):Mn(_0x32b7a7);}else await _0x4273b0(_0x30a210);}}catch(_0x5ce933){if(!_0x5d8807)throw _0x5ce933;}finally{try{await _0x121798();}finally{process[_0x5e490d(0x16d)](_0x5e490d(0x234),_0x5159ae),_0x5d8807&&(process['exitCode']=0x82);}}}function Mn(_0x1ac617){const _0x5b752e=_0x1ca96b;_0x1ac617[_0x5b752e(0x281)]?(console[_0x5b752e(0x1ce)](_0x5b752e(0x266)+_0x1ac617[_0x5b752e(0x281)][_0x5b752e(0x1a3)]),process['exitCode']=0x1):_0x1ac617[_0x5b752e(0x1d2)]?(console[_0x5b752e(0x1ce)]('No\x20structured\x20output:\x20the\x20turn\x20failed\x20('+_0x1ac617[_0x5b752e(0x1ce)]+').'),process[_0x5b752e(0x2fa)]=0x1):process['stdout'][_0x5b752e(0x1c6)](JSON[_0x5b752e(0x2e1)](_0x1ac617[_0x5b752e(0x2c2)],null,0x2)+'\x0a');}function jn(_0x28b85d,_0x4e81d1){const _0x382fb0=_0x1ca96b;let _0x44e873=process[_0x382fb0(0x28e)][_0x382fb0(0x1c6)][_0x382fb0(0x1b8)](process['stdout']),_0x16617=!0x1;return process[_0x382fb0(0x28e)][_0x382fb0(0x1c6)]=(..._0x168deb)=>{if(!_0x16617)return _0x44e873(..._0x168deb);_0x431c4a(_0x4e81d1,0x0),_0x285829(_0x4e81d1,0x0);let _0x4c3e32=_0x44e873(..._0x168deb);return _0x28b85d['prompt'](!0x0),_0x4c3e32;},{'show':()=>{const _0x57fa91=_0x382fb0;_0x16617=!0x0,_0x28b85d[_0x57fa91(0xec)]();},'hide':()=>{_0x16617=!0x1;},'erase':()=>{_0x16617&&(_0x431c4a(_0x4e81d1,0x0),_0x285829(_0x4e81d1,0x0)),_0x16617=!0x1;},'restore':()=>{const _0x5d738e=_0x382fb0;_0x16617=!0x1,process['stdout'][_0x5d738e(0x1c6)]=_0x44e873;}};}async function Bn({prompt:_0x14dfd5,sendMessage:_0x58154e,onSigint:_0x26e735,setAnswerInput:_0x1dd110,registerEventPrinter:_0x4f4f5c}){const _0x3aa0d4=_0x1ca96b;let _0x580885=_0x507ccb({'input':process[_0x3aa0d4(0x2d3)],'output':process[_0x3aa0d4(0x18f)],'terminal':!0x0,'prompt':_0x3aa0d4(0x133)}),_0x4d2cc6=jn(_0x580885,process[_0x3aa0d4(0x18f)]),_0x21ff6f=[],_0x133501,_0x3a4ca7,_0x3c85f0,_0x5ba5ff=!0x1,_0xdfd928=!0x1,_0x590f67=!0x1,_0x171f14=Promise[_0x3aa0d4(0x2ec)](),_0x2dd427,_0x737948=_0x4f4f5c(_0x3f6562=>{const _0x63a5d2=_0x3aa0d4;_0x3f6562[_0x63a5d2(0x28f)]===_0x63a5d2(0x2d5)&&(_0x4d2cc6[_0x63a5d2(0x279)](),_0x171f14=new Promise(_0x5d1baf=>{_0x2dd427=_0x5d1baf;})),_e(_0x3f6562),_0x3f6562[_0x63a5d2(0x28f)]===_0x63a5d2(0x2ab)&&(_0x2dd427?.(),_0x2dd427=void 0x0,!_0x590f67&&!_0x5ba5ff&&_0x4d2cc6['show']());}),_0x5e2596=()=>{_0xdfd928=!0x0,_0x2dd427?.(),_0x26e735(),_0x580885['close']();};_0x580885['on'](_0x3aa0d4(0x171),_0x32f32a=>{const _0x37ba7d=_0x3aa0d4;_0x3c85f0?_0x3c85f0(_0x32f32a):_0x133501?_0x133501[_0x37ba7d(0x219)](_0x32f32a):_0x3a4ca7?_0x3a4ca7(_0x32f32a):_0x21ff6f[_0x37ba7d(0x219)](_0x32f32a);}),_0x580885[_0x3aa0d4(0x2d8)](_0x3aa0d4(0x1e5),()=>{const _0x48e9c2=_0x3aa0d4;_0x5ba5ff=!0x0,_0x4d2cc6[_0x48e9c2(0x282)](),_0x133501&&!_0xdfd928&&_0x5e2596(),_0x3a4ca7?.(null);});let _0x56febe=()=>_0x21ff6f[_0x3aa0d4(0x131)]>0x0?Promise[_0x3aa0d4(0x2ec)](_0x21ff6f[_0x3aa0d4(0x22d)]()):_0x5ba5ff?Promise[_0x3aa0d4(0x2ec)](null):new Promise(_0x4b5704=>{_0x3a4ca7=_0x935415=>{_0x3a4ca7=void 0x0,_0x4b5704(_0x935415);};});_0x1dd110({'readLine':(_0x42a764,_0x76ee8c)=>new Promise((_0x4265aa,_0x215257)=>{const _0x4ae142=_0x3aa0d4;if(_0x5ba5ff&&!_0x133501){_0x4265aa(null);return;}_0x133501??=[];let _0x59aa4e=_0x133501[_0x4ae142(0x22d)]();if(_0x59aa4e!==void 0x0){_0x4265aa(_0x59aa4e);return;}let _0xbaff1=()=>{const _0x33616d=_0x4ae142;_0x3c85f0=void 0x0,_0x76ee8c['removeEventListener'](_0x33616d(0x20b),_0x31e286),_0x4d2cc6['hide'](),_0x580885['setPrompt']('You>\x20');},_0x31e286=()=>{_0xbaff1(),_0x215257(new Error('The\x20turn\x20was\x20cancelled.'));};_0x76ee8c[_0x4ae142(0x26d)](_0x4ae142(0x20b),_0x31e286,{'once':!0x0}),!_0x5ba5ff&&(_0x3c85f0=_0x119988=>{_0xbaff1(),_0x4265aa(_0x119988);},_0x580885['setPrompt'](_0x42a764),_0x4d2cc6[_0x4ae142(0x289)]());}),'endQuestions':()=>{const _0x1f55ce=_0x3aa0d4;_0x133501&&_0x21ff6f[_0x1f55ce(0x219)](..._0x133501),_0x133501=void 0x0;}}),_0x580885['on'](_0x3aa0d4(0x234),_0x5e2596),process[_0x3aa0d4(0x18f)][_0x3aa0d4(0x1c6)](_0x3aa0d4(0xf1));let _0x3a0278=async _0x2f8619=>{_0x590f67=!0x0;try{await _0x58154e(_0x2f8619);}finally{_0x590f67=!0x1;}};try{if(_0x14dfd5&&await _0x3a0278(_0x14dfd5),_0xdfd928)return;!_0x5ba5ff&&!_0x2dd427&&_0x4d2cc6[_0x3aa0d4(0x289)]();for(let _0x1df542=await _0x56febe();_0x1df542!==null&&(_0x4d2cc6[_0x3aa0d4(0x282)](),!_0xdfd928);_0x1df542=await _0x56febe()){let _0x532a64=_0x1df542['trim']();if(_0x532a64===_0x3aa0d4(0x2d2))break;_0x532a64&&await _0x3a0278(_0x532a64),!_0x5ba5ff&&!_0x2dd427&&_0x4d2cc6[_0x3aa0d4(0x289)]();}for(;!_0xdfd928&&_0x2dd427;)await _0x171f14;}finally{_0x1dd110(null),_0x737948(),_0x4d2cc6[_0x3aa0d4(0x2b4)](),_0x580885['off'](_0x3aa0d4(0x234),_0x5e2596),_0x580885[_0x3aa0d4(0x1e5)]();}}async function Jn(){const _0x10729f=_0x1ca96b;let _0x36e017=Kt(process[_0x10729f(0x120)][_0x10729f(0x1ea)](0x2));if(_0x36e017['outputFormat']==='text'){await Se(_0x36e017);return;}let _0x4168f2=Qt();try{await Se(_0x36e017);}finally{_0x4168f2();}}async function Se(_0x4a2222){const _0x32ed86=_0x1ca96b;if(_0x4a2222[_0x32ed86(0x13b)]){qt();return;}if(_0x4a2222[_0x32ed86(0x207)]){console[_0x32ed86(0xf3)](zt());return;}if(_0x4a2222['subcommand']===_0x32ed86(0x134)){await _n(_0x4a2222);return;}if(_0x4a2222[_0x32ed86(0x105)]===_0x32ed86(0x192)){await Pn(_0x4a2222[_0x32ed86(0xec)]);return;}if(_0x4a2222[_0x32ed86(0x105)]==='logout'){await Zt();return;}if(_0x4a2222[_0x32ed86(0x105)]===_0x32ed86(0x16b)){await en(_0x4a2222);return;}if(_0x4a2222['subcommand']==='models'){await on(_0x4a2222);return;}if(_0x4a2222[_0x32ed86(0x105)]===_0x32ed86(0x251)){await mn(_0x4a2222);return;}if(_0x4a2222[_0x32ed86(0x105)]==='sessions'){await an(_0x4a2222);return;}if(_0x4a2222[_0x32ed86(0x105)]===_0x32ed86(0x1f7)){await hn(_0x4a2222);return;}if(_0x4a2222[_0x32ed86(0x105)]===_0x32ed86(0x2c8)||_0x4a2222[_0x32ed86(0x105)]===_0x32ed86(0x2b5)||_0x4a2222[_0x32ed86(0x105)]===_0x32ed86(0x25b)){await bn(_0x4a2222,_0x4a2222[_0x32ed86(0x105)]);return;}if(_0x4a2222[_0x32ed86(0x105)]===_0x32ed86(0x24a)){await vn(_0x4a2222);return;}if(_0x4a2222[_0x32ed86(0x105)]==='transcribe'){await xn(_0x4a2222);return;}if(_0x4a2222[_0x32ed86(0x105)]===_0x32ed86(0x1b5)){await Tn(_0x4a2222);return;}if(_0x4a2222[_0x32ed86(0x105)]===_0x32ed86(0x1f8)){await Nn(_0x4a2222);return;}if(_0x4a2222[_0x32ed86(0x105)]===_0x32ed86(0x104)){await _0x3a2c4b(_0x4a2222['prompt'],{'runnerUrl':_0x4a2222[_0x32ed86(0x22a)],'backendUrl':_0x4a2222['backendUrl'],'interopPath':_0x4a2222[_0x32ed86(0x280)],'workerId':_0x4a2222[_0x32ed86(0x201)]});return;}if(_0x4a2222[_0x32ed86(0x127)]){await sn();return;}await Fn(_0x4a2222);}var Hn=process.env.NODE_ENV===_0x1ca96b(0x28a)||!!process.env.JEST_WORKER_ID;Hn||Jn()[_0x1ca96b(0x12e)](_0x518c64=>{const _0x396fca=_0x1ca96b;console[_0x396fca(0x1ce)](_0x518c64[_0x396fca(0x1db)]||_0x518c64[_0x396fca(0x1a3)]||_0x518c64),process[_0x396fca(0x176)](0x1);});export{Wt as CARTOGRAPHER_SKILLS,pe as EFFORT_TIERS,Yt as IMPLICIT_STDIN_IDLE_MS,ke as buildInitOptions,Jn as main,Kt as parseArgs,zt as readCliVersion,H as resolvePrompt,Qt as routeStdoutToStderr,m as writeCommandResult};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uipath/delegate-cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.207.0-preview.20261125063338",
|
|
4
4
|
"description": "UiPath Delegate CLI - drive the Delegate agent from the terminal. Wraps @uipath/delegate-sdk; installing this package pulls the SDK in — no separate install.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "commonjs",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"publish:npmjs": "npm publish --@uipath:registry=https://registry.npmjs.org/ --access public --ignore-scripts"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@uipath/delegate-sdk": "1.
|
|
25
|
+
"@uipath/delegate-sdk": "1.207.0-preview.20261125063338"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@types/node": "^22.0.0",
|