@uipath/delegate-cli 1.206.0-preview.20261119175059 → 1.206.0-preview.20261120133435

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -112,6 +112,8 @@ Use `/exit` or EOF (Ctrl+D on an empty input line) to finish. EOF lets an active
112
112
 
113
113
  `--print` / `-p` sends one prompt and exits after the response and any tool execution. This mode is also automatic when stdin **or** stdout is not a terminal, or when the prompt is `-`. Piped lines form one prompt, not separate turns. Missing input in one-turn mode exits with code 2.
114
114
 
115
+ One-turn runs use the SDK's tool approval policy. Permissions set to **Ask** are approved automatically. The agent can perform Integration Service writes during the turn, including creating a draft. The agent can still write when asked for a preview. Automation Ops blocks prevent the corresponding tool calls.
116
+
115
117
  The CLI prints the session ID to stderr when a session starts. Resume later with `delegate-cli --session <id>`, or send one follow-up with `delegate-cli --print --session <id> "..."`. Repeat the desired project, working-directory, model and tool options when starting a new invocation. The SDK reuses the session; the backend stores conversation history. A project ID shares local files but does not preserve the conversation by itself. Fatal errors exit after cleanup; the session ID can be used to resume.
116
118
 
117
119
  Assistant responses go to stdout; terminal prompts, session IDs and progress go to stderr. `--verbose` additionally puts SDK diagnostics on stdout (on stderr under `--output-format json | stream-json`).
@@ -375,8 +377,8 @@ Three levels of machine access, independent of conversation mode:
375
377
  | `--model <id>` | `gpt_5_6_luna` | LLM id (use `delegate-cli models` to discover). Also via `MODEL` env. For a prompt, the id is checked against the tenant's catalog before interop starts: an unknown or plan-locked id fails and lists the valid ids. If the catalog cannot be read, the run continues with a warning. For `evaluate` / `rerank` / `verify` it replaces the request's `model` (no `MODEL` fallback). `complete` and a `--json-schema` extraction use the same model as a prompt. |
376
378
  | `--headless` | off | Skip interop entirely. Text-only prompts: no screen **and** no file, Office, PDF or shell tools. Skills still load — they are read through Node, not interop. |
377
379
  | `--no-computer-use` | off | Keep interop, drop the screen. File, Office, PDF and shell tools keep working; screenshots, the window list, the focused element and the UI-automation tools (`AppFind`, `AppAct`, `AppGetDescriptor`) all go. Cuts the image tokens and the per-turn screen capture, keeps desktop window titles off the wire, and removes the agent's ability to act on the desktop UI. The right default for document and file work on a real machine. `--headless` implies it. |
378
- | `--keep-alive` | off | Reuse / leave interop running across invocations. Skips the 10–20 s cold start on the next call. |
379
- | `--cleanup` | — | Force-stop every running interop (from `~/.delegate-sdk/interop*.pid`, one per deployment) and exit. |
380
+ | `--keep-alive` | off | Keep a spawned interop running for reuse by later invocations with the same issuer. A session reuses a healthy persistent interop when one is available and otherwise starts its own. |
381
+ | `--cleanup` | — | Force-stop interops recorded in `~/.delegate-sdk/interop*.pid`, including private interops used by other active sessions, and exit. A PID is signalled only while its port reports that PID on `/health`. A record is removed once its PID has stopped. Otherwise the record is kept, and its PID and port are printed to stderr so you can stop that process yourself. |
380
382
  | `--no-connections` | off | Disable orchestrator ConnectionService (silences 404 noise on tenants without orchestrator). |
381
383
  | `--no-security` | off | Disable tool security wrapper. Debug only. |
382
384
  | `--no-memory` | off | Do not send the Delegate app's local long-term memories with each turn (SDK `enableMemory: false`). By default the CLI reads the same `Memories` folder the desktop app uses, and the model may save new preferences and learnings there with its file tools. |
@@ -601,7 +603,7 @@ Three things differ from a cloud login:
601
603
 
602
604
  Before the browser opens, `login` checks that the URL really serves a UiPath Identity, and refuses it otherwise; after the token exchange it asks the deployment's Delegate service (`GET /v1/config`) whether it supports this SDK. `--skip-env-check` skips both. The `@uipath/delegate-sdk` README documents exactly what each check asks and why they run at different moments.
603
605
 
604
- Computer use works on a self-hosted deployment too: the interop sidecar is started with the deployment as its trusted OIDC issuer, and a sidecar left running for another deployment is restarted rather than reused.
606
+ Computer use works on a self-hosted deployment too. The interop sidecar starts with the deployment as its trusted OIDC issuer. Persistent sidecars for different deployments run independently.
605
607
 
606
608
  ---
607
609
 
package/dist/cli.mjs CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- const _0x14e824=_0x1850;(function(_0x29f01d,_0x186af0){const _0x400689=_0x1850,_0x31840e=_0x29f01d();while(!![]){try{const _0x4535=-parseInt(_0x400689(0x312))/0x1+parseInt(_0x400689(0x2af))/0x2+-parseInt(_0x400689(0x3e5))/0x3*(parseInt(_0x400689(0x3e2))/0x4)+parseInt(_0x400689(0x3b3))/0x5*(parseInt(_0x400689(0x21e))/0x6)+-parseInt(_0x400689(0x23d))/0x7+parseInt(_0x400689(0x31d))/0x8+-parseInt(_0x400689(0x3ba))/0x9;if(_0x4535===_0x186af0)break;else _0x31840e['push'](_0x31840e['shift']());}catch(_0x2acbf7){_0x31840e['push'](_0x31840e['shift']());}}}(_0x4c9a,0xdd36a));const __dirname=import.meta.dirname;import _0x29657e from'fs';import _0x2d1785 from'path';import{clearLine as _0x45b416,createInterface as _0x208252,cursorTo as _0x1c20c2}from'node:readline';import{isOnStepGrid as _0x1d140f}from'@uipath/delegate-sdk';var _='userinput';function S(_0x3657d0){const _0x52e97b=_0x1850;return _0x3657d0[_0x52e97b(0x356)](/\u001b\[[0-?]*[ -/]*[@-~]|\u001b\][^\u0007\u001b]*(\u0007|\u001b\\)?|\u001b./g,'')[_0x52e97b(0x356)](/[\u0000-\u0008\u000b-\u001f\u007f-\u009f]/g,'');}function V(_0x11dec9){const _0x2e3be2=_0x1850;return S(_0x11dec9[_0x2e3be2(0x201)]??(_0x11dec9[_0x2e3be2(0x3ca)]===_?_0x2e3be2(0x266):_0x11dec9['id']));}function Te(_0x45dff5,_0x4b1d1c,_0x43b370){const _0x43944c=_0x1850;let _0x52e7ca=[''+(_0x43b370>0x1?'['+_0x4b1d1c+'/'+_0x43b370+']\x20':'')+S(_0x45dff5[_0x43944c(0x2e7)])+(_0x45dff5[_0x43944c(0x316)]?_0x43944c(0x319):''),S(_0x45dff5[_0x43944c(0x327)])];return _0x45dff5['type']===_0x43944c(0x24c)&&_0x45dff5[_0x43944c(0x3ae)][_0x43944c(0x335)]((_0x1f9211,_0x337879)=>{const _0x100ae3=_0x43944c;let _0x42f387=_0x1f9211[_0x100ae3(0x3ca)]===_?_0x100ae3(0x398):'',_0x284c9d=_0x1f9211['description']?_0x100ae3(0x34f)+S(_0x1f9211[_0x100ae3(0x235)]):'';_0x52e7ca[_0x100ae3(0x365)]('\x20\x20'+(_0x337879+0x1)+'.\x20'+V(_0x1f9211)+_0x42f387+_0x284c9d);}),_0x52e7ca[_0x43944c(0x3a6)]('\x0a');}function X(_0x4fc93d,_0x300789){const _0x3cda85=_0x1850;let _0x50fcc3=_0x4fc93d[_0x3cda85(0x2d9)](/[\s,]+/)[_0x3cda85(0x37d)](Boolean);if(_0x50fcc3[_0x3cda85(0x25a)]===0x0)return null;let _0x263f05=_0x50fcc3[_0x3cda85(0x30e)](_0x1f9951=>/^\d+$/[_0x3cda85(0x2ba)](_0x1f9951)?Number(_0x1f9951):NaN);return _0x263f05['some'](_0x247beb=>!Number[_0x3cda85(0x25d)](_0x247beb)||_0x247beb<0x1||_0x247beb>_0x300789)?null:[...new Set(_0x263f05)][_0x3cda85(0x30e)](_0x134599=>_0x134599-0x1);}function xe(_0xb53725){const _0x54d30a=_0x1850;return typeof _0xb53725==_0x54d30a(0x293)&&_0xb53725!==null&&'refused'in _0xb53725;}async function R(_0x154ab1,_0x4164be,_0x1ea888,_0x3d5f38){const _0x4476bf=_0x1850;for(;;){let _0x2e13ac=(await _0x154ab1(_0x4164be))[_0x4476bf(0x2ad)]();if(_0x2e13ac==='')return;let _0x468adc=_0x3d5f38(_0x2e13ac);if(!xe(_0x468adc))return _0x468adc;_0x1ea888(_0x468adc[_0x4476bf(0x298)]+'\x0a');}}async function De(_0x3fc1cf,_0x356967,_0xc883cf){const _0x55a843=_0x1850;if(_0x3fc1cf[_0x55a843(0x3ae)][_0x55a843(0x25a)]===0x0||_0x3fc1cf['options'][_0x55a843(0x384)](_0x19eb2d=>_0x19eb2d[_0x55a843(0x3ca)]===_)){let _0x3fc277=(await _0x356967(_0x55a843(0x388)))['trim']();return _0x3fc277===''?void 0x0:{'text':_0x3fc277};}let _0x488a04=_0x3fc1cf[_0x55a843(0x3ae)][_0x55a843(0x221)](_0x481c6c=>_0x481c6c[_0x55a843(0x3ca)]===_),_0x2767fc=_0x3fc1cf[_0x55a843(0x2c4)]?_0x55a843(0x25e):'Number'+(_0x488a04>=0x0?_0x55a843(0x395):'')+_0x55a843(0x3d0),_0x30f7aa=await R(_0x356967,_0x2767fc,_0xc883cf,_0x1311a0=>{const _0x312f2e=_0x55a843;let _0x28415b=X(_0x1311a0,_0x3fc1cf[_0x312f2e(0x3ae)][_0x312f2e(0x25a)]);return _0x28415b&&(_0x3fc1cf['multiSelect']||_0x28415b['length']===0x1)?_0x28415b:!_0x3fc1cf[_0x312f2e(0x2c4)]&&_0x488a04>=0x0?{'typed':_0x1311a0}:{'refused':_0x3fc1cf[_0x312f2e(0x2c4)]?_0x312f2e(0x2fd)+_0x3fc1cf['options'][_0x312f2e(0x25a)]+'.':_0x312f2e(0x260)+_0x3fc1cf[_0x312f2e(0x3ae)]['length']+'.'};});if(_0x30f7aa===void 0x0)return;if(!Array[_0x55a843(0x1f5)](_0x30f7aa))return{'text':_0x30f7aa['typed']};let _0x10917f=_0x30f7aa[_0x55a843(0x30e)](_0x334abf=>_0x3fc1cf[_0x55a843(0x3ae)][_0x334abf]['id']),_0xe39f6a=_0x10917f[_0x55a843(0x313)](_)?await R(_0x356967,V(_0x3fc1cf[_0x55a843(0x3ae)][_0x488a04])+':\x20',_0xc883cf,_0x54a384=>_0x54a384):void 0x0;if(!(_0x10917f[_0x55a843(0x313)](_)&&_0xe39f6a===void 0x0))return _0x3fc1cf[_0x55a843(0x2c4)]?{'optionIds':_0x10917f,..._0xe39f6a!==void 0x0?{'text':_0xe39f6a}:{}}:_0xe39f6a!==void 0x0?{'text':_0xe39f6a}:{'optionId':_0x10917f[0x0]};}async function Ue(_0x551365,_0x464296,_0x1aae3d){const _0x506864=_0x1850;let _0x4b4a85={};for(let _0x4b3477 of _0x551365[_0x506864(0x238)]){let _0x23dfad=_0x4b3477['default']??_0x4b3477[_0x506864(0x2d3)],_0xd7d770=_0x4b3477[_0x506864(0x278)]??0x1,_0x5b4113=_0x4b3477[_0x506864(0x28f)]?'\x20'+S(_0x4b3477['unit']):'',_0x4c84bc=_0x506864(0x2b4)+_0x4b3477[_0x506864(0x2d3)]+_0x506864(0x3ad)+_0x4b3477[_0x506864(0x364)]+(_0xd7d770!==0x1?_0x506864(0x2dd)+_0xd7d770:''),_0x3f520d=await R(_0x464296,S(_0x4b3477[_0x506864(0x201)])+'\x20['+_0x4b3477[_0x506864(0x2d3)]+'-'+_0x4b3477['max']+_0x5b4113+_0x506864(0x247)+_0x23dfad+_0x506864(0x34c),_0x1aae3d,_0x192091=>{const _0x3a2373=_0x506864;let _0x323e87=Number(_0x192091);return Number['isFinite'](_0x323e87)&&_0x323e87>=_0x4b3477[_0x3a2373(0x2d3)]&&_0x323e87<=_0x4b3477[_0x3a2373(0x364)]&&_0x1d140f(_0x323e87,_0x4b3477[_0x3a2373(0x2d3)],_0xd7d770)?_0x323e87:{'refused':_0x3a2373(0x28e)+_0x4c84bc+'.'};});_0x4b4a85[_0x4b3477['id']]=_0x3f520d??_0x23dfad;}return{'values':_0x4b4a85};}async function Ne(_0x46d703,_0x51f6b7,_0x41f691){const _0x547f21=_0x1850;_0x41f691(_0x46d703[_0x547f21(0x367)][_0x547f21(0x30e)]((_0x28a5c7,_0x112788)=>'\x20\x20'+(_0x112788+0x1)+'.\x20'+S(_0x28a5c7[_0x547f21(0x201)]))[_0x547f21(0x3a6)]('\x0a')+'\x0a');let _0x57891c={};for(let _0x191239 of _0x46d703[_0x547f21(0x35b)]){let _0x49c043=await R(_0x51f6b7,S(_0x191239[_0x547f21(0x201)])+_0x547f21(0x2f7),_0x41f691,_0x4423ed=>{const _0x5dc06a=_0x547f21;let _0x3f896e=X(_0x4423ed,_0x46d703[_0x5dc06a(0x367)][_0x5dc06a(0x25a)]);return _0x3f896e&&_0x3f896e[_0x5dc06a(0x25a)]===0x1?_0x3f896e[0x0]:{'refused':_0x5dc06a(0x260)+_0x46d703[_0x5dc06a(0x367)][_0x5dc06a(0x25a)]+'.'};});if(_0x49c043===void 0x0)continue;let _0x4084cf=_0x46d703[_0x547f21(0x367)][_0x49c043],_0x376113={};for(let _0x14fb81 of _0x4084cf['subFields']??[]){let _0x857587='\x20\x20'+S(_0x14fb81[_0x547f21(0x201)])+(_0x14fb81[_0x547f21(0x316)]?'\x20(optional)':'')+':\x20',_0x4f780a=await R(_0x51f6b7,_0x857587,_0x41f691,_0x39e4ef=>_0x39e4ef);for(;_0x4f780a===void 0x0&&!_0x14fb81[_0x547f21(0x316)];)_0x41f691(S(_0x14fb81[_0x547f21(0x201)])+_0x547f21(0x227)),_0x4f780a=await R(_0x51f6b7,_0x857587,_0x41f691,_0x59905e=>_0x59905e);_0x4f780a!==void 0x0&&(_0x376113[_0x14fb81['id']]=_0x4f780a);}_0x57891c[_0x191239['id']]={'bucket':_0x4084cf['id'],...Object[_0x547f21(0x326)](_0x376113)[_0x547f21(0x25a)]>0x0?{'subFields':_0x376113}:{}};}return Object[_0x547f21(0x326)](_0x57891c)['length']>0x0?{'assignments':_0x57891c}:void 0x0;}async function _e(_0x56e109,_0x5dde83,_0x253802){const _0x508b96=_0x1850;if(_0x56e109[_0x508b96(0x315)]===_0x508b96(0x24c))return De(_0x56e109,_0x5dde83,_0x253802);if(_0x56e109[_0x508b96(0x315)]===_0x508b96(0x366))return Ue(_0x56e109,_0x5dde83,_0x253802);if(_0x56e109[_0x508b96(0x315)]==='bucket')return Ne(_0x56e109,_0x5dde83,_0x253802);let _0xe32e5f=(await _0x5dde83(_0x508b96(0x230)))[_0x508b96(0x2ad)]();return _0xe32e5f===''?void 0x0:{'text':_0xe32e5f};}function Z(_0x43610b,_0x5ecd0c){return async _0x2bae6b=>{const _0x3957ee=_0x1850;let _0x39e323=_0x43610b();if(!_0x39e323)throw new Error(_0x3957ee(0x2c0));let _0x183bc0=async _0x2c2ac0=>{const _0x4ff707=_0x3957ee;if(_0x2bae6b[_0x4ff707(0x34d)]['aborted'])throw new Error(_0x4ff707(0x2a8));let _0x4565e2=await _0x39e323[_0x4ff707(0x38e)](_0x2c2ac0,_0x2bae6b[_0x4ff707(0x34d)]);if(_0x4565e2===null)throw new Error(_0x4ff707(0x334));return _0x4565e2;};try{_0x5ecd0c('\x0a'+(_0x2bae6b[_0x3957ee(0x3eb)]?S(_0x2bae6b['intro'])+'\x0a':''));let _0x1399de={};for(let [_0x4fb41c,_0x41eca7]of _0x2bae6b['questions'][_0x3957ee(0x2f8)]()){_0x5ecd0c('\x0a'+Te(_0x41eca7,_0x4fb41c+0x1,_0x2bae6b[_0x3957ee(0x3b2)]['length'])+'\x0a');let _0x2f7e79=await _e(_0x41eca7,_0x183bc0,_0x5ecd0c);_0x2f7e79!==void 0x0&&(_0x1399de[_0x41eca7['id']]=_0x2f7e79);}return{'answers':_0x1399de};}finally{_0x39e323[_0x3957ee(0x35d)]();}};}import{BUSINESS_ANALYSIS_PRELOADED_SKILLS as _0x51f26c,DelegateAgent as _0x4d65a1,cancelTurn as _0x8d27dc,InteropProcess as _0x387ff5,complete as _0x187972,DEFAULT_MODEL as _0xf0805b,createBackendClient as _0x5e4978,evaluate as _0x14cabb,isCompletionRequestError as _0x502534,isEvaluationRequestError as _0x3c80f0,isTranscriptionError as _0x333a97,rerank as _0x37af09,transcribe as _0xc762c,verify as _0x1603d0,acceptDelegation as _0x5134ea,cancelDelegation as _0x4c73a7,claimDelegation as _0x316125,completeDelegation as _0x41a924,createDelegation as _0x21f6c8,deleteDelegation as _0x25b131,dismissDelegation as _0x415273,getSessionDelegations as _0x2b38c2,isDelegationError as _0x2222cb,listDelegations as _0x131fbc,listOrgUsers as _0x505e55,previewDelegation as _0x198136,TurnResultCollector as _0x2e38fa,agentEventToJsonLine as _0x5bef3b,describeBaseUrlRejection as _0xae7f76,getActivitySummary as _0xabdfd7,getAuthFilePath as _0x1fa7fa,getByoWarnings as _0x297b83,getCartographerAllowance as _0x3ca4a4,getDailyBreakdown as _0x33655d,getLicensingSummary as _0x311e70,getMonthlySpending as _0xeb2eee,isOutputFormat as _0x154a1a,isCloudBaseUrl as _0x280ff3,isSafeProjectFolderSegment as _0x4d3c71,listModels as _0x43f3dc,listSessions as _0x94e9c2,getSession as _0x34c963,renameSession as _0x5a0297,deleteSession as _0x286490,deleteSessionTaskLog as _0x433517,forkSession as _0xb17e1e,isBackendRequestError as _0x2d6be6,MAX_SESSION_PAGE_SIZE as _0x54c0a3,listTenants as _0x281433,loadAndRefreshAuth as _0x121626,loadAndRefreshSdkLogin as _0x313f0d,parsePlatformBaseUrl as _0x4dcf28,resolveBackendUrl as _0x1aa8c3,runHealthCheck as _0x2a71bd,runHostCommand as _0x212faf,runLoginFlow as _0x32c077,runTurnForResult as _0x52ad88,saveAuthData as _0x15a046,switchTenant as _0x148ab5,toJsonLine as _0x54b959,ENV_TO_CLOUD as _0x2e3c46,OUTPUT_FORMATS as _0x5c1776}from'@uipath/delegate-sdk';var Nt=['login',_0x14e824(0x24d),'models',_0x14e824(0x276),_0x14e824(0x22a),_0x14e824(0x35a),'check','sessions',_0x14e824(0x381),'evaluate',_0x14e824(0x3ea),_0x14e824(0x2da),'complete',_0x14e824(0x20b),'delegations',_0x14e824(0x378)],se=['','models',_0x14e824(0x35a),'check',_0x14e824(0x333),'usage',_0x14e824(0x38a),_0x14e824(0x3ea),_0x14e824(0x2da),_0x14e824(0x3c8),'transcribe',_0x14e824(0x30f),_0x14e824(0x378)],re=[_0x14e824(0x387),_0x14e824(0x305),'high',_0x14e824(0x21d),_0x14e824(0x364)],_t=_0x51f26c;function w(_0x209182,_0x4de1bc,_0x3da4b8,_0xc2dfb4){const _0x4d4c7e=_0x14e824;let _0x381b55=_0x209182[_0x4de1bc];return(!_0x381b55||_0x381b55[_0x4d4c7e(0x25a)]>0x1&&_0x381b55['startsWith']('-'))&&(console['error'](_0x3da4b8+_0x4d4c7e(0x212)+_0xc2dfb4+'.'),process[_0x4d4c7e(0x371)](0x2)),_0x381b55;}function J(_0x3c4283,_0x6a8d62,_0x4c64ae,_0x4b6736){const _0x2639c2=_0x14e824;let _0x24d875=w(_0x3c4283,_0x6a8d62,_0x4c64ae,_0x2639c2(0x294)),_0x398b59=Number(_0x24d875);return(!/^\d+$/[_0x2639c2(0x2ba)](_0x24d875)||_0x398b59<0x1||!Number[_0x2639c2(0x244)](_0x398b59)||_0x4b6736!==void 0x0&&_0x398b59>_0x4b6736)&&(console[_0x2639c2(0x3bc)](_0x4c64ae+_0x2639c2(0x2dc)+(_0x4b6736===void 0x0?_0x2639c2(0x25b):'from\x201\x20to\x20'+_0x4b6736)+_0x2639c2(0x3b9)+_0x24d875+'.'),process[_0x2639c2(0x371)](0x2)),_0x398b59;}function Rt(_0xb938f6){const _0x1af948=_0x14e824;let _0x314f75={'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':_0x1af948(0x24c),'preloadSkills':[],'attachments':[],'skipEnvCheck':!0x1,'includeSubAgents':!0x1,'operands':[],'help':!0x1,'version':!0x1};Nt[_0x1af948(0x313)](_0xb938f6[0x0])&&(_0x314f75['subcommand']=_0xb938f6[0x0],_0xb938f6=_0xb938f6[_0x1af948(0x346)](0x1));let _0x10cc02=[];for(let _0x2a5319=0x0;_0x2a5319<_0xb938f6['length'];_0x2a5319++){let _0x467fb6=_0xb938f6[_0x2a5319];switch(_0x467fb6){case _0x1af948(0x30b):case'-p':_0x314f75[_0x1af948(0x2ca)]=!0x0;break;case _0x1af948(0x2cb):_0x314f75[_0x1af948(0x258)]=!0x0;break;case _0x1af948(0x2fe):_0x314f75[_0x1af948(0x3ed)]=!0x0;break;case _0x1af948(0x341):_0x314f75[_0x1af948(0x3a0)]=!0x0;break;case _0x1af948(0x396):_0x314f75[_0x1af948(0x269)]=!0x0;break;case'--cartographer':_0x314f75['cartographer']=!0x0,_0x314f75[_0x1af948(0x269)]=!0x0,_0x314f75[_0x1af948(0x2ce)]['push'](..._t);break;case _0x1af948(0x3b8):_0x314f75[_0x1af948(0x342)]=!0x0;break;case _0x1af948(0x3a1):_0x314f75['noSecurity']=!0x0;break;case _0x1af948(0x297):_0x314f75[_0x1af948(0x268)]=!0x0;break;case _0x1af948(0x2f4):_0x314f75['taskAutomation']=!0x0;break;case _0x1af948(0x3af):case'-q':_0x314f75[_0x1af948(0x2aa)]=!0x0;break;case'--verbose':_0x314f75[_0x1af948(0x33e)]=!0x0;break;case _0x1af948(0x373):_0x314f75[_0x1af948(0x3dc)]=_0xb938f6[++_0x2a5319];break;case _0x1af948(0x296):_0x314f75[_0x1af948(0x2d7)]=_0xb938f6[++_0x2a5319];break;case _0x1af948(0x2c5):_0x314f75[_0x1af948(0x318)]=_0xb938f6[++_0x2a5319];break;case'--interop':_0x314f75[_0x1af948(0x23c)]=_0xb938f6[++_0x2a5319];break;case _0x1af948(0x314):_0x314f75[_0x1af948(0x399)]=_0xb938f6[++_0x2a5319];break;case _0x1af948(0x3c1):_0x314f75[_0x1af948(0x2ce)][_0x1af948(0x365)](w(_0xb938f6,++_0x2a5319,_0x467fb6,_0x1af948(0x35e)));break;case'--project':{let _0x27cb68=w(_0xb938f6,++_0x2a5319,_0x467fb6,_0x1af948(0x250));_0x4d3c71(_0x27cb68)||(console[_0x1af948(0x3bc)](_0x1af948(0x2e8)+_0x27cb68+_0x1af948(0x219)),process['exit'](0x2)),_0x314f75[_0x1af948(0x240)]=_0x27cb68;break;}case _0x1af948(0x2bf):{let _0x5b1976=w(_0xb938f6,++_0x2a5319,_0x467fb6,_0x1af948(0x2b2)+_0x5c1776[_0x1af948(0x3a6)](_0x1af948(0x207))+')');_0x154a1a(_0x5b1976)||(console[_0x1af948(0x3bc)](_0x1af948(0x206)+_0x5b1976+_0x1af948(0x252)+_0x5c1776[_0x1af948(0x3a6)](_0x1af948(0x207))+'.'),process[_0x1af948(0x371)](0x2)),_0x314f75[_0x1af948(0x33f)]=_0x5b1976;break;}case _0x1af948(0x32f):_0x314f75[_0x1af948(0x3e6)]=w(_0xb938f6,++_0x2a5319,_0x467fb6,_0x1af948(0x27b));break;case _0x1af948(0x27e):_0x314f75['page']=J(_0xb938f6,++_0x2a5319,_0x467fb6);break;case _0x1af948(0x202):_0x314f75[_0x1af948(0x236)]=J(_0xb938f6,++_0x2a5319,_0x467fb6,_0x54c0a3);break;case _0x1af948(0x264):_0x314f75[_0x1af948(0x379)]=!0x0;break;case _0x1af948(0x3c7):_0x314f75[_0x1af948(0x2e1)]=w(_0xb938f6,++_0x2a5319,_0x467fb6,_0x1af948(0x380));break;case _0x1af948(0x3d1):{let _0x297427=_0x2d1785['resolve'](process[_0x1af948(0x37a)](),w(_0xb938f6,++_0x2a5319,_0x467fb6,_0x1af948(0x20f)));_0x29657e[_0x1af948(0x3a7)](_0x297427)||(console[_0x1af948(0x3bc)](_0x1af948(0x222)+_0x297427),process[_0x1af948(0x371)](0x2)),_0x314f75[_0x1af948(0x2d1)]['push'](_0x297427);break;}case _0x1af948(0x251):_0x314f75['turnId']=w(_0xb938f6,++_0x2a5319,_0x467fb6,'a\x20turn\x20id');break;case _0x1af948(0x345):_0x314f75[_0x1af948(0x2fc)]=w(_0xb938f6,++_0x2a5319,_0x467fb6,'an\x20email\x20address\x20or\x20name');break;case _0x1af948(0x2ac):_0x314f75[_0x1af948(0x1f9)]=w(_0xb938f6,++_0x2a5319,_0x467fb6,_0x1af948(0x324));break;case'--days':_0x314f75[_0x1af948(0x2d0)]=J(_0xb938f6,++_0x2a5319,_0x467fb6,0x16d);break;case _0x1af948(0x36e):_0x314f75[_0x1af948(0x3de)]=_0x2d1785[_0x1af948(0x2f2)](process['cwd'](),w(_0xb938f6,++_0x2a5319,_0x467fb6,_0x1af948(0x357)));break;case _0x1af948(0x20c):_0x314f75['bundledSkillsPath']=_0x2d1785[_0x1af948(0x2f2)](process[_0x1af948(0x37a)](),w(_0xb938f6,++_0x2a5319,_0x467fb6,_0x1af948(0x357)));break;case _0x1af948(0x337):{let _0x180dd6=w(_0xb938f6,++_0x2a5319,_0x467fb6,_0x1af948(0x29f));re[_0x1af948(0x313)](_0x180dd6)||(console[_0x1af948(0x3bc)](_0x1af948(0x2b3)+_0x180dd6+_0x1af948(0x252)+re[_0x1af948(0x3a6)](_0x1af948(0x207))+'.'),process[_0x1af948(0x371)](0x2)),_0x314f75[_0x1af948(0x282)]=_0x180dd6;break;}case _0x1af948(0x267):{let _0x43f5bd=_0xb938f6[++_0x2a5319];(!_0x43f5bd||_0x43f5bd[_0x1af948(0x348)]('--'))&&(console['error'](_0x1af948(0x262)),process[_0x1af948(0x371)](0x2)),_0x314f75[_0x1af948(0x24d)]=_0x43f5bd;break;}case _0x1af948(0x216):{let _0x23faf7=_0xb938f6[++_0x2a5319];[_0x1af948(0x33d),_0x1af948(0x2d8),_0x1af948(0x34b),_0x1af948(0x2bd)]['includes'](_0x23faf7)||(console[_0x1af948(0x3bc)]('Invalid\x20--env:\x20'+_0x23faf7+_0x1af948(0x374)),process[_0x1af948(0x371)](0x2)),_0x314f75[_0x1af948(0x26e)]=_0x23faf7;break;}case _0x1af948(0x259):case'--authority':{let _0x40ecab=w(_0xb938f6,++_0x2a5319,_0x467fb6,_0x1af948(0x3ac)),_0x15d34d=_0x4dcf28(_0x40ecab);if(_0x15d34d['ok']===!0x1){console[_0x1af948(0x3bc)](_0xae7f76(_0x40ecab,_0x15d34d['rejection'])),process['exit'](0x2);break;}_0x314f75[_0x1af948(0x237)]=_0x15d34d['baseUrl'];break;}case'--skip-env-check':_0x314f75[_0x1af948(0x272)]=!0x0;break;case'-h':case'--help':_0x314f75[_0x1af948(0x3a5)]=!0x0;break;case'-v':case _0x1af948(0x375):_0x314f75[_0x1af948(0x3c6)]=!0x0;break;default:_0x467fb6[_0x1af948(0x348)]('--')&&(console[_0x1af948(0x3bc)]('Unknown\x20flag:\x20'+_0x467fb6),process['exit'](0x2)),_0x10cc02[_0x1af948(0x365)](_0x467fb6);}}return _0x314f75[_0x1af948(0x24d)]!==void 0x0&&_0x314f75[_0x1af948(0x2f9)]!==_0x1af948(0x274)&&(console[_0x1af948(0x3bc)](_0x1af948(0x234)),process[_0x1af948(0x371)](0x2)),_0x314f75[_0x1af948(0x237)]!==void 0x0&&_0x314f75[_0x1af948(0x26e)]!==void 0x0&&(console['error'](_0x1af948(0x3d4)),process[_0x1af948(0x371)](0x2)),_0x314f75[_0x1af948(0x237)]!==void 0x0&&_0x314f75[_0x1af948(0x2f9)]!==_0x1af948(0x274)&&(console['error'](_0x1af948(0x3c2)),process[_0x1af948(0x371)](0x2)),_0x314f75[_0x1af948(0x2d0)]!==void 0x0&&_0x314f75[_0x1af948(0x2f9)]!==_0x1af948(0x381)&&(console[_0x1af948(0x3bc)]('--days\x20applies\x20to\x20`delegate-cli\x20usage\x20activity|daily`\x20only.'),process[_0x1af948(0x371)](0x2)),_0x314f75[_0x1af948(0x2e1)]!==void 0x0&&(_0x314f75['subcommand']!=='complete'&&_0x314f75[_0x1af948(0x2f9)]!==''||_0x314f75[_0x1af948(0x3ed)])&&(console['error'](_0x1af948(0x2c7)),process[_0x1af948(0x371)](0x2)),_0x314f75['attachments']['length']>0x0&&(_0x314f75[_0x1af948(0x2f9)]!==''||_0x314f75[_0x1af948(0x3ed)])&&(console[_0x1af948(0x3bc)](_0x1af948(0x2f5)),process[_0x1af948(0x371)](0x2)),_0x314f75['taskAutomation']&&(_0x314f75['subcommand']!==''||_0x314f75[_0x1af948(0x3ed)])&&(console[_0x1af948(0x3bc)]('--task-automation\x20applies\x20to\x20prompts\x20only.'),process['exit'](0x2)),_0x314f75['taskAutomation']&&(_0x314f75[_0x1af948(0x3a0)]||_0x314f75[_0x1af948(0x269)])&&(console['error']('--task-automation\x20needs\x20computer\x20use:\x20the\x20task\x20log\x20is\x20written\x20by\x20the\x20UI-automation\x20tools.\x20Drop\x20--headless,\x20--no-computer-use\x20and\x20--cartographer.'),process[_0x1af948(0x371)](0x2)),_0x314f75[_0x1af948(0x272)]&&_0x314f75[_0x1af948(0x2f9)]!=='login'&&(console[_0x1af948(0x3bc)]('--skip-env-check\x20applies\x20to\x20`delegate-cli\x20login`\x20only.'),process[_0x1af948(0x371)](0x2)),_0x314f75[_0x1af948(0x33f)]!==_0x1af948(0x24c)&&!se[_0x1af948(0x313)](_0x314f75['subcommand'])&&(console[_0x1af948(0x3bc)](_0x1af948(0x231)+_0x314f75[_0x1af948(0x33f)]+'\x20applies\x20to\x20prompts\x20and\x20to\x20these\x20commands\x20only:\x20'+se['filter'](Boolean)['join'](',\x20')+'.'),process[_0x1af948(0x371)](0x2)),(_0x314f75[_0x1af948(0x355)]!==void 0x0||_0x314f75[_0x1af948(0x236)]!==void 0x0||_0x314f75[_0x1af948(0x379)])&&_0x314f75['subcommand']!=='sessions'&&(console['error'](_0x1af948(0x302)),process[_0x1af948(0x371)](0x2)),(_0x314f75['delegateTo']!==void 0x0||_0x314f75[_0x1af948(0x1f9)]!==void 0x0)&&_0x314f75[_0x1af948(0x2f9)]!==_0x1af948(0x30f)&&(console['error'](_0x1af948(0x286)),process[_0x1af948(0x371)](0x2)),_0x314f75['turnId']!==void 0x0&&_0x314f75[_0x1af948(0x2f9)]!=='sessions'&&(console['error'](_0x1af948(0x330)),process[_0x1af948(0x371)](0x2)),_0x314f75[_0x1af948(0x2ce)]=[...new Set(_0x314f75['preloadSkills'])],_0x314f75[_0x1af948(0x211)]=_0x10cc02,_0x314f75[_0x1af948(0x3e3)]=_0x10cc02['join']('\x20'),_0x314f75;}var P=_0xf6ff9=>{process['stdout']['write'](_0xf6ff9);};function Pt(){const _0x427d15=_0x14e824;let _0x5cc514=process[_0x427d15(0x1f4)][_0x427d15(0x22f)],_0x5bbe9e=_0x5cc514[_0x427d15(0x218)](process[_0x427d15(0x1f4)]),_0x5d8599=P;return P=_0x19edf3=>{_0x5bbe9e(_0x19edf3);},process[_0x427d15(0x1f4)][_0x427d15(0x22f)]=(..._0x1b2939)=>process[_0x427d15(0x2cc)][_0x427d15(0x22f)](..._0x1b2939),()=>{const _0x5d0940=_0x427d15;process[_0x5d0940(0x1f4)]['write']=_0x5cc514,P=_0x5d8599;};}function u(_0x47c3fa,_0x43f06c,_0x459c32){const _0x3a7340=_0x14e824;if(_0x47c3fa[_0x3a7340(0x33f)]==='text'){_0x459c32(_0x43f06c);return;}P(_0x54b959(_0x43f06c));}function _0x4c9a(){const _0x181ec7=['):\x0a\x0a','transcribe','--skills-path','isError','Cancel\x20requested\x20for\x20turn\x20','a\x20file\x20path','total_completion_tokens','operands','\x20requires\x20','\x20\x20\x20\x20BYO\x20warning:\x20','getSessionId','create','--env','dismiss','bind','\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).','No\x20one\x20matches\x20\x22',').\x0a','active_days','xhigh','300882FGEcRJ','resume','total_cost_usd','findIndex','--attach:\x20no\x20such\x20file\x20or\x20folder:\x20','Tenants\x20of\x20','Continue\x20it\x20with:\x20delegate-cli\x20--session\x20','.\x20Use\x20`delegate-cli\x20usage`,\x20`usage\x20activity`\x20or\x20`usage\x20daily`.','The\x20saved\x20CLI\x20login\x20could\x20not\x20be\x20refreshed.\x20Run\x20`delegate-cli\x20login`\x20again.','\x20is\x20required.\x0a','monthly_limit_usd','total_tokens','logout','unknown','all','parentSessionId','data','write','Your\x20answer,\x20as\x20text\x20(the\x20CLI\x20attaches\x20no\x20files;\x20Enter\x20to\x20skip):\x20','--output-format\x20','No\x20usage\x20in\x20the\x20last\x20','toString','--tenant\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Switch\x20tenants\x20with:\x20delegate-cli\x20tenant\x20<name>','description','limit','url','fields','stream-json','>.\x0a','AUTH_TOKEN_FILE\x20\x27','interopPath','8836856mTJEXV','toolName','string','projectId','\x20\x20TITLE\x0a','pending','delegation','isSafeInteger','\x20--turn\x20','date',']\x20(Enter\x20for\x20','a\x20colleague','delegations\x20dismiss\x20<delegation-id>','total_sessions','Licensing:\x20\x20\x20\x20','text','tenant','No\x20CLI\x20login\x20found\x20—\x20nothing\x20to\x20remove.','Use:\x20delegate-cli\x20delegations\x20','a\x20project\x20id','--turn','.\x20Use\x20','thinking','assignedUserEmail',',\x20or\x20holds\x20no\x20message\x20','\x20(no\x20cap\x20enforced)','orgLogicalName','keepAlive','--url','length','1\x20or\x20more','check','isInteger','Numbers,\x20separated\x20by\x20commas\x20(Enter\x20to\x20skip):\x20','extra_pool_consumed_pu','Enter\x20one\x20number\x20from\x201\x20to\x20','\x20of\x20session\x20','--tenant\x20requires\x20a\x20tenant\x20name.','limit_enabled','--include-subagents','\x20(current)','Something\x20else','--tenant','noMemory','noComputerUse','lastType','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.','turn_start','--days\x20applies\x20to\x20`delegate-cli\x20usage\x20activity|daily`;\x20the\x20summary\x20covers\x20the\x20current\x20month.','env','delegations\x20complete\x20<delegation-id>\x20\x22<answer>\x22|-','Claimed\x20from\x20delegation\x20','\x20(in\x20','skipEnvCheck','Usage:\x20delegate-cli\x20org-users\x20<name\x20or\x20email\x20prefix>','login','Usage:\x20delegate-cli\x20sessions\x20','host','daily','step','sourceUserEmail','log','a\x20session\x20id','\x20not\x20found,\x20has\x20no\x20messages','\x20active\x20days','--page','\x20\x22<answer>\x22\x0a','ID\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Spending:\x20\x20\x20\x20\x20$','effort','now','byoWarning','\x20completion','--to\x20and\x20--summary\x20apply\x20to\x20`delegate-cli\x20delegations\x20create`\x20only.','\x20delegation\x20','verdict','show','Token:\x20\x20\x20\x20\x20\x20\x20\x20expired\x20','cancel','\x20PU\x20beyond\x20quota','prompt_tokens','Enter\x20a\x20number\x20','unit','\x20is\x20not\x20valid\x20JSON\x20(','\x0adelegate-cli\x20—\x20Delegate\x20agent\x20CLI\x0a\x0aUsage:\x0a\x20\x20delegate-cli\x20[flags]\x20[\x22<prompt>\x22]\x20\x20\x20\x20Start\x20a\x20conversation\x20in\x20a\x20terminal\x0a\x20\x20delegate-cli\x20--print\x20\x22<prompt>\x22\x20\x20\x20\x20\x20\x20Send\x20one\x20prompt,\x20print\x20the\x20response,\x20and\x20exit\x0a\x20\x20delegate-cli\x20[flags]\x20-\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Read\x20one\x20prompt\x20from\x20stdin\x20through\x20EOF,\x20then\x20exit\x0a\x20\x20delegate-cli\x20-p\x20\x22<prompt>\x22\x20--output-format\x20json|stream-json\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20One\x20turn\x20with\x20JSON-only\x20stdout;\x20exit\x201\x20on\x20error\x0a\x20\x20delegate-cli\x20--json-schema\x20FILE\x20\x22<prompt>\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20One\x20turn,\x20then\x20its\x20result\x20extracted\x20as\x20JSON\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20matching\x20the\x20schema\x20in\x20FILE\x20(printed\x20after\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20answer;\x20\x22structured\x22\x20in\x20the\x20JSON\x20result);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20exit\x201\x20when\x20the\x20extraction\x20fails\x0a\x20\x20delegate-cli\x20--attach\x20PATH\x20[--attach\x20PATH\x20...]\x20\x22<prompt>\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Send\x20files\x20or\x20folders\x20with\x20the\x20first\x20message\x0a\x20\x20delegate-cli\x20login\x20[--env\x20NAME\x20|\x20--url\x20BASE]\x20[--tenant\x20NAME]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20OAuth\x20browser\x20login\x20→\x20~/.aria/sdk-auth.json.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--env\x20or\x20--url\x20required\x20on\x20FIRST\x20login;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20afterwards\x20defaults\x20to\x20the\x20saved\x20login\x27s\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20deployment.\x20--tenant\x20picks\x20a\x20tenant\x20by\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20name;\x20without\x20it\x20a\x20re-login\x20keeps\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20saved\x20tenant\x0a\x20\x20delegate-cli\x20tenant\x20[NAME]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20the\x20organization\x27s\x20tenants,\x20or\x20switch\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20saved\x20login\x20to\x20NAME\x20(no\x20browser)\x0a\x20\x20delegate-cli\x20logout\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Remove\x20the\x20saved\x20CLI\x20login\x0a\x20\x20delegate-cli\x20whoami\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20the\x20current\x20login\x20(org,\x20tenant,\x20token\x20expiry)\x0a\x20\x20delegate-cli\x20models\x20[--env\x20NAME]\x20\x20\x20\x20\x20List\x20available\x20LLM\x20models\x20for\x20the\x20current\x20tenant,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20with\x20any\x20BYO\x20configuration\x20warning\x20per\x20model\x0a\x20\x20delegate-cli\x20sessions\x20[list]\x20[--page\x20N]\x20[--limit\x20N]\x20[--include-subagents]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20your\x20backend\x20chat\x20sessions,\x20most\x20recently\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20active\x20first\x20(resume\x20one\x20with\x20--session\x20ID)\x0a\x20\x20delegate-cli\x20sessions\x20show|delete\x20ID\x20Show\x20one\x20session\x27s\x20title\x20and\x20owner,\x20or\x20delete\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20it\x20with\x20its\x20messages\x20and\x20sub-agents\x20(no\x20prompt)\x0a\x20\x20delegate-cli\x20sessions\x20rename\x20ID\x20TITLE\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Rename\x20a\x20session\x20(1-500\x20characters)\x0a\x20\x20delegate-cli\x20sessions\x20fork\x20ID\x20[MESSAGE]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Copy\x20session\x20ID\x20into\x20a\x20new\x20session,\x20up\x20to\x20and\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20including\x20message\x20MESSAGE\x20(default:\x20all\x20of\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20it);\x20continue\x20it\x20with\x20--session\x20NEW_ID\x0a\x20\x20delegate-cli\x20sessions\x20cancel\x20ID\x20--turn\x20TURN\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Cancel\x20turn\x20TURN\x20running\x20on\x20session\x20ID\x20in\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20another\x20process;\x20exits\x201\x20when\x20no\x20such\x20turn\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20is\x20in\x20progress\x0a\x20\x20delegate-cli\x20check\x20[--env\x20NAME]\x20[--headless]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Verify\x20auth,\x20backend\x20readiness,\x20backend\x20and\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20interop\x20without\x20sending\x20a\x20prompt;\x20exits\x201\x20when\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20any\x20check\x20fails\x0a\x20\x20delegate-cli\x20usage\x20[--session\x20ID]\x20\x20\x20\x20Quota\x20and\x20spend:\x20licensing\x20quota,\x20monthly\x20spend\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20and\x20cap,\x20Cartographer\x20allowance\x0a\x20\x20delegate-cli\x20usage\x20activity|daily\x20[--days\x20N]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Activity\x20totals,\x20or\x20per-day\x20usage,\x20over\x20the\x20last\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20N\x20days\x20(1-365,\x20default\x2030)\x0a\x20\x20delegate-cli\x20evaluate|rerank|verify\x20FILE|-\x20[--model\x20ID]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Stateless\x20typed\x20judgments:\x20send\x20the\x20JSON\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20request\x20in\x20FILE\x20(or\x20stdin\x20with\x20-)\x20to\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20/v1/completions/<command>\x20and\x20print\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20answers;\x20--model\x20overrides\x20its\x20\x22model\x22.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Exits\x201\x20when\x20the\x20backend\x20rejects\x20it\x0a\x20\x20delegate-cli\x20complete\x20--json-schema\x20FILE\x20[--model\x20ID]\x20[--session\x20ID]\x20\x22<prompt>\x22|-\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20One\x20structured\x20completion,\x20no\x20agent\x20turn:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20print\x20the\x20JSON\x20object\x20matching\x20the\x20schema\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20in\x20FILE\x20(--output-format\x20json\x20prints\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{structured,\x20usage});\x20--session\x20adds\x20that\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20session\x27s\x20history\x20as\x20context.\x20Exits\x201\x20when\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20output\x20fails\x20the\x20schema\x20(422)\x20or\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20backend\x20rejects\x20the\x20request\x0a\x20\x20delegate-cli\x20transcribe\x20FILE|-\x20\x20\x20\x20\x20\x20\x20Speech-to-text:\x20print\x20the\x20text\x20of\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20audio\x20in\x20FILE,\x20or\x20on\x20stdin\x20with\x20-.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20mp3,\x20mp4,\x20mpeg,\x20mpga,\x20m4a,\x20wav\x20or\x20webm,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20up\x20to\x2014\x20MB.\x20Exits\x202\x20when\x20the\x20audio\x20is\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20refused\x20locally,\x201\x20when\x20the\x20backend\x20rejects\x20it\x0a\x20\x20delegate-cli\x20org-users\x20QUERY\x20\x20\x20\x20\x20\x20\x20\x20\x20Search\x20your\x20organization\x27s\x20users\x20by\x20name\x20or\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20email\x20prefix\x20(2-100\x20characters)\x0a\x20\x20delegate-cli\x20delegations\x20create\x20--session\x20ID\x20[--to\x20WHO]\x20[--summary\x20TEXT]\x20\x22<task>\x22|-\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Hand\x20a\x20task\x20from\x20session\x20ID\x20to\x20a\x20colleague\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(WHO:\x20an\x20email,\x20or\x20a\x20name\x20matching\x20one\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20person);\x20without\x20--to,\x20print\x20a\x20link\x20anyone\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20in\x20the\x20organization\x20can\x20claim\x0a\x20\x20delegate-cli\x20delegations\x20pending\x20SESSION\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Answers\x20to\x20delegations\x20from\x20SESSION\x20that\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20await\x20acceptance\x20(poll\x20this)\x0a\x20\x20delegate-cli\x20delegations\x20accept|dismiss|cancel|delete\x20ID\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Take\x20an\x20answer\x20into\x20its\x20session,\x20drop\x20it,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20withdraw\x20a\x20live\x20delegation,\x20or\x20delete\x20it\x0a\x20\x20delegate-cli\x20delegations\x20list\x20PROJECT\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Every\x20delegation\x20targeting\x20a\x20backend\x20project\x0a\x20\x20delegate-cli\x20delegations\x20show|claim\x20ID|LINK\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Read\x20a\x20delegation\x20assigned\x20to\x20you\x20(or\x20a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20delegate://delegation/…\x20link),\x20or\x20claim\x20it:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20prints\x20the\x20session\x20to\x20work\x20it\x20in\x0a\x20\x20delegate-cli\x20delegations\x20complete\x20ID\x20\x22<answer>\x22|-\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Send\x20the\x20answer\x20to\x20a\x20delegation\x20you\x20claimed\x0a\x20\x20delegate-cli\x20host\x20[flags]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Run\x20this\x20PC\x20as\x20a\x20remote\x20worker\x20until\x20Ctrl+C\x0a\x20\x20delegate-cli\x20host\x20install\x20[flags]\x20\x20\x20\x20Auto-start\x20the\x20host\x20at\x20login\x20(macOS\x20LaunchAgent\x20/\x20Windows\x20Scheduled\x20Task)\x0a\x20\x20delegate-cli\x20host\x20uninstall\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Remove\x20auto-start\x0a\x20\x20delegate-cli\x20host\x20status\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20auto-start\x20state\x0a\x20\x20delegate-cli\x20--cleanup\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Stop\x20running\x20interop\x0a\x0aFlags:\x0a\x20\x20-p,\x20--print\x20\x20\x20\x20\x20\x20\x20Run\x20one\x20turn\x20and\x20exit,\x20including\x20any\x20tool\x20execution.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Automatic\x20when\x20stdin\x20or\x20stdout\x20is\x20not\x20a\x20terminal,\x20or\x20with\x20-\x0a\x20\x20--env\x20NAME\x20\x20\x20\x20\x20\x20\x20\x20alpha\x20|\x20staging\x20|\x20production\x20|\x20localhost\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Composes\x20backend\x20URL\x20from\x20saved\x20auth\x20(org/tenant\x20slugs).\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Omitted\x20→\x20the\x20deployment\x20you\x20logged\x20into\x20(delegate-cli\x20login).\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20localhost\x20→\x20http://localhost:5002.\x20No\x20saved\x20login\x20and\x20no\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--env/--backend/BACKEND_URL\x20is\x20an\x20error\x20—\x20never\x20a\x20guess.\x0a\x20\x20--url\x20BASE\x20\x20\x20\x20\x20\x20\x20\x20(login)\x20Base\x20URL\x20of\x20a\x20deployment\x20that\x20is\x20not\x20a\x20named\x20cloud\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20—\x20Automation\x20Suite,\x20Dedicated,\x20Public\x20Sector.\x20Accepts\x20a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20tenant\x20path\x20or\x20a\x20trailing\x20/identity_\x20and\x20reduces\x20it\x20to\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20origin.\x20Mutually\x20exclusive\x20with\x20--env;\x20also\x20settable\x20via\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20UIPATH_BASE_URL.\x20Alias:\x20--authority.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Automation\x20Suite\x20needs\x2026.10+\x20with\x20the\x20Delegate\x20service;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20the\x20deployment\x20rejects\x20the\x20built-in\x20client,\x20register\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20your\x20own\x20—\x20see\x20UIPATH_CLIENT_ID\x20in\x20the\x20README\x0a\x20\x20--skip-env-check\x20\x20(login)\x20Do\x20not\x20check\x20the\x20deployment\x20before\x20signing\x20in.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Escape\x20hatch\x20for\x20a\x20deployment\x20that\x20hides\x20its\x20OIDC\x20discovery\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20document\x20or\x20serves\x20Identity\x20from\x20another\x20origin;\x20it\x20also\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20gives\x20up\x20the\x20diagnosis\x20when\x20something\x20is\x20really\x20wrong\x0a\x20\x20--backend\x20URL\x20\x20\x20\x20\x20Full\x20backend\x20URL\x20—\x20escape\x20hatch\x20overrides\x20--env\x0a\x20\x20--tenant\x20NAME\x20\x20\x20\x20\x20(login)\x20Tenant\x20to\x20sign\x20into,\x20by\x20name\x20(case-insensitive).\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default:\x20the\x20saved\x20login\x27s\x20tenant\x20on\x20that\x20cloud,\x20else\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20org\x27s\x20first\x20tenant.\x20Later:\x20delegate-cli\x20tenant\x20<name>\x0a\x20\x20--model\x20NAME\x20\x20\x20\x20\x20\x20LLM\x20model\x20id\x20(e.g.\x20claude_sonnet_5_5,\x20kimi_k3).\x20Checked\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20against\x20the\x20tenant\x27s\x20catalog\x20(delegate-cli\x20models)\x20before\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20run\x20starts;\x20an\x20unknown\x20id\x20fails\x20and\x20lists\x20the\x20valid\x20ones.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default:\x20gpt_5_6_luna.\x20Also\x20settable\x20via\x20MODEL\x20env\x20var.\x0a\x20\x20--keep-alive\x20\x20\x20\x20\x20\x20Reuse/leave\x20interop\x20running\x20across\x20invocations\x0a\x20\x20--headless\x20\x20\x20\x20\x20\x20\x20\x20Skip\x20interop\x20(text-only\x20prompts)\x0a\x20\x20--no-computer-use\x20Keep\x20interop\x20—\x20file,\x20Office,\x20PDF\x20and\x20shell\x20tools\x20keep\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20working\x20—\x20but\x20drop\x20the\x20screen:\x20no\x20screenshots,\x20no\x20window\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20list,\x20no\x20UI-automation\x20tools.\x20Cuts\x20image\x20tokens\x20and\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20per-turn\x20screen\x20capture,\x20and\x20stops\x20desktop\x20window\x20titles\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20leaving\x20the\x20machine.\x20Use\x20for\x20document\x20and\x20file\x20work.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--headless\x20implies\x20this\x20and\x20turns\x20interop\x20off\x20as\x20well\x0a\x20\x20--no-connections\x20\x20Disable\x20orchestrator\x20ConnectionService\x20(silences\x20404\x20warnings)\x0a\x20\x20--no-security\x20\x20\x20\x20\x20Disable\x20tool\x20security\x20wrapper\x20(use\x20only\x20for\x20debugging)\x0a\x20\x20--no-memory\x20\x20\x20\x20\x20\x20\x20Do\x20not\x20send\x20the\x20Delegate\x20app\x27s\x20local\x20long-term\x20memories\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20with\x20each\x20turn,\x20and\x20do\x20not\x20ask\x20the\x20model\x20to\x20save\x20new\x20ones\x0a\x20\x20--task-automation\x20Record\x20every\x20UI\x20action\x20of\x20the\x20run,\x20with\x20the\x20selector\x20of\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20element\x20it\x20acted\x20on,\x20to\x20<working-dir>/captures/<session>/\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(~/.aria-sdk\x20without\x20--working-dir),\x20so\x20you\x20can\x20then\x20ask\x20for\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20task\x20as\x20a\x20UiPath\x20coded\x20workflow\x20(uipath-taskautomation\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20skill).\x20The\x20log\x20holds\x20on-screen\x20text\x20and\x20your\x20requests;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20typed\x20values\x20are\x20masked.\x20Needs\x20computer\x20use.\x20Ignored\x20with\x20a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20warning\x20where\x20the\x20deployment\x20does\x20not\x20offer\x20it\x20yet\x0a\x20\x20--attach\x20PATH\x20\x20\x20\x20\x20File\x20or\x20folder\x20sent\x20with\x20the\x20first\x20message\x20(repeatable),\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20as\x20the\x20Delegate\x20app\x20sends\x20attached\x20files:\x20images\x20inline,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20PDFs\x20and\x20other\x20documents\x20as\x20a\x20path\x20the\x20agent\x20reads,\x20text\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20inline\x20up\x20to\x2016,000\x20characters.\x2030\x20MiB\x20per\x20message\x20in\x20all;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20larger\x20files\x20go\x20as\x20a\x20path.\x20In\x20a\x20conversation,\x20later\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20messages\x20carry\x20none\x20of\x20their\x20own,\x20but\x20the\x20first\x20message\x27s\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20stay\x20in\x20context\x0a\x20\x20--preload-skill\x20NAME\x20\x20Preload\x20a\x20skill\x20into\x20the\x20session\x20(repeatable).\x20The\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20skill\x27s\x20content\x20is\x20attached\x20before\x20the\x20first\x20model\x20turn\x20—\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20same\x20mechanism\x20as\x20project\x20preloaded\x20skills\x20in\x20the\x20app\x0a\x20\x20--cartographer\x20\x20\x20\x20Cartographer\x20engagement\x20preset.\x20Equivalent\x20to\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--no-computer-use\x20--preload-skill\x20business-analysis\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--preload-skill\x20project-task-list\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--preload-skill\x20knowledge-base\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--preload-skill\x20source-coverage\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--preload-skill\x20note-taker.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Add\x20--project/--working-dir\x20for\x20where\x20the\x20files\x20live,\x20and\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20extra\x20--preload-skill\x20flags\x20for\x20more\x20skills\x20—\x20a\x20skill\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20preset\x20already\x20covers\x20is\x20not\x20preloaded\x20twice.\x20An\x20explicit\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--headless\x20still\x20wins\x20and\x20turns\x20interop\x20off\x0a\x20\x20--project\x20ID\x20\x20\x20\x20\x20\x20Route\x20the\x20session\x27s\x20local\x20wiki\x20and\x20plans\x20to\x20a\x20project\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(<working-dir>/projects/<ID>/wiki).\x20Client-side\x20key\x20only\x0a\x20\x20--working-dir\x20PATH\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Shell\x20cwd\x20for\x20the\x20agent\x20and\x20root\x20for\x20SDK-local\x20state.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Relative\x20paths\x20resolve\x20against\x20the\x20current\x20directory;\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20directory\x20is\x20created\x20if\x20missing\x0a\x20\x20--skills-path\x20PATH\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Folder\x20of\x20custom\x20skills,\x20loaded\x20on\x20top\x20of\x20the\x20skills\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20package\x20ships;\x20wins\x20on\x20a\x20name\x20clash\x20(also:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20DELEGATE_BUNDLED_SKILLS_PATH)\x0a\x20\x20--effort\x20TIER\x20\x20\x20\x20\x20Reasoning\x20effort:\x20low\x20|\x20medium\x20|\x20high\x20|\x20xhigh\x20|\x20max.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default:\x20the\x20model\x27s\x20recommended\x20tier\x0a\x20\x20--session\x20ID\x20\x20\x20\x20\x20\x20Continue\x20an\x20existing\x20backend\x20session\x20(an\x20unknown\x20id\x20exits\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x201;\x20the\x20backend\x20assigns\x20new\x20ids).\x20For\x20complete:\x20the\x20session\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20whose\x20history\x20is\x20the\x20context\x0a\x20\x20--json-schema\x20FILE\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20JSON\x20schema\x20the\x20structured\x20answer\x20must\x20match\x20(complete,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20and\x20prompts:\x20implies\x20--print)\x0a\x20\x20--runner-url\x20URL\x20\x20(host)\x20Runner\x20worker\x20WS\x20URL.\x20Required;\x20or\x20CONTROL_PLANE_WS_URL\x20env\x0a\x20\x20--interop\x20PATH\x20\x20\x20\x20(host)\x20Interop\x20binary\x20path;\x20or\x20INTEROP_EXECUTABLE_PATH\x20env.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Absent\x20→\x20registration/discovery\x20only,\x20tool\x20execution\x20disabled\x0a\x20\x20--worker-id\x20ID\x20\x20\x20\x20(host)\x20Stable\x20worker\x20identity;\x20or\x20WORKER_ID\x20env.\x20Default:\x20hostname\x0a\x20\x20--page\x20N\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(sessions)\x20Page\x20to\x20show,\x20from\x201.\x20Default:\x201\x0a\x20\x20--limit\x20N\x20\x20\x20\x20\x20\x20\x20\x20\x20(sessions)\x20Rows\x20per\x20page,\x201-100.\x20Default:\x2030\x0a\x20\x20--include-subagents\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(sessions)\x20Also\x20list\x20sub-agent\x20sessions,\x20hidden\x20by\x20default\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20as\x20in\x20the\x20desktop\x20app\x27s\x20history\x0a\x20\x20--to\x20WHO\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(delegations\x20create)\x20Assign\x20to\x20this\x20person:\x20an\x20email,\x20or\x20a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20name\x20that\x20matches\x20exactly\x20one\x20colleague\x20(see\x20org-users)\x0a\x20\x20--summary\x20TEXT\x20\x20\x20\x20(delegations\x20create)\x20The\x20briefing\x20the\x20person\x20starts\x20from.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default:\x20empty,\x20for\x20a\x20task\x20that\x20stands\x20on\x20its\x20own\x0a\x20\x20--output-format\x20FMT\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20text\x20(default)\x20|\x20json\x20|\x20stream-json.\x20json\x20prints\x20one\x20result\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20object\x20on\x20exit;\x20stream-json\x20prints\x20every\x20agent\x20event\x20as\x20one\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20JSON\x20line,\x20then\x20the\x20result.\x20Both\x20keep\x20stdout\x20JSON-only\x20(logs,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20progress\x20and\x20the\x20session\x20id\x20go\x20to\x20stderr),\x20imply\x20--print,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20and\x20exit\x201\x20when\x20the\x20turn\x20ends\x20in\x20error.\x20Also\x20honoured\x20by\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20every\x20subcommand\x20that\x20prints\x20a\x20result\x20(all\x20but\x20login,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20logout,\x20tenant\x20and\x20host)\x0a\x20\x20-q,\x20--quiet\x20\x20\x20\x20\x20\x20\x20Suppress\x20🤔\x20thinking\x20output\x20to\x20stderr\x0a\x20\x20--verbose\x20\x20\x20\x20\x20\x20\x20\x20\x20Surface\x20the\x20SDK\x27s\x20and\x20the\x20framework\x27s\x20own\x20logs.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Diagnostics\x20only,\x20on\x20stdout;\x20independent\x20of\x20-q\x0a\x20\x20-h,\x20--help\x20\x20\x20\x20\x20\x20\x20\x20Show\x20this\x20help\x0a\x20\x20-v,\x20--version\x20\x20\x20\x20\x20Print\x20the\x20installed\x20CLI\x20version\x0a\x0aConversation:\x20Enter\x20sends\x20a\x20message;\x20/exit\x20or\x20EOF\x20exits;\x20Ctrl+C\x20stops\x20and\x20exits.\x0a\x20\x20Ctrl+C\x20during\x20a\x20turn\x20cancels\x20it\x20on\x20the\x20backend\x20too;\x20a\x20second\x20Ctrl+C\x20force-exits.\x0a\x20\x20An\x20optional\x20initial\x20prompt\x20is\x20followed\x20by\x20more\x20input.\x20The\x20session\x20ID\x20is\x20printed\x0a\x20\x20to\x20stderr;\x20resume\x20later\x20with\x20--session\x20ID.\x20Redirected\x20input\x20is\x20one\x20prompt.\x0aAuth:\x20prompts\x20auto-retry\x20on\x20401\x20by\x20opening\x20the\x20browser\x20to\x20re-login\x20(TTY\x20only),\x0a\x20\x20preserving\x20the\x20active\x20session.\x0a','erase','object','a\x20number','baseUrl','--model','--no-memory','refused','result','Structured\x20output\x20failed:\x20','[saved\x20login]\x20Backend\x20URL:\x20','toUpperCase','deleted','noSecurity','an\x20effort\x20tier','initialize','\x20(Delegate\x20desktop\x20app\x20fallback)','add','Session\x20\x20\x20\x20\x20\x20\x20','\x20(confidence\x20','--to,\x20--summary\x20and\x20--session\x20apply\x20to\x20`delegate-cli\x20delegations\x20create`\x20only.','rejection','No\x20turn\x20','The\x20turn\x20was\x20cancelled.','status','quiet','tokenExpiresAt','--summary','trim','name','2359888cYHjJL','line','rename','a\x20format\x20(','Invalid\x20--effort:\x20','from\x20','),\x20','round','once','monthly_spend_usd','\x20\x20(input\x20#','test','readFileSync','\x20—\x20sign\x20out\x20in\x20the\x20Delegate\x20app\x20to\x20clear\x20that.','localhost','Cost:\x20\x20\x20$','--output-format','There\x20is\x20no\x20terminal\x20input\x20to\x20answer\x20from.','delegationId','\x20cap','No\x20CLI\x20login\x20to\x20switch:\x20the\x20CLI\x20is\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20','multiSelect','--runner-url','input','--json-schema\x20applies\x20to\x20prompts\x20and\x20to\x20`delegate-cli\x20complete`\x20only.','abort','Licensing:\x20\x20\x20\x20no\x20licensing\x20quota\x20applies','print','--keep-alive','stderr','pendingResults','preloadSkills','complete\x20needs\x20a\x20prompt:\x20delegate-cli\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22,\x20or\x20-\x20to\x20read\x20stdin.','days','attachments','\x22.\x0a','min','--session\x20applies\x20to\x20the\x20`delegate-cli\x20usage`\x20summary\x20only.','Delegated\x20','\x20\x20from\x20','model','staging','split','verify','delete','\x20must\x20be\x20a\x20whole\x20number\x20','\x20in\x20steps\x20of\x20','No\x20CLI\x20login\x20found.\x20Note:\x20the\x20CLI\x20is\x20currently\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20','total_quota_pu','dismissed','jsonSchemaPath','cancelled','STATUS','\x20<file.json>,\x20or\x20-\x20to\x20read\x20stdin.','self-hosted\x20(Automation\x20Suite\x20/\x20Dedicated)','from','header','Invalid\x20--project:\x20\x22','Forked\x20','Bearer\x20','--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`delegate-cli\x20sessions\x20[list]`\x20only.','model_version','transcribe\x20needs\x20audio:\x20delegate-cli\x20transcribe\x20<file>,\x20or\x20-\x20to\x20read\x20stdin.','choice\x20','\x20(resets\x20','\x20\x20\x20\x20Not\x20available\x20on\x20this\x20plan','Session:\x20','resolve','padEnd','--task-automation','--attach\x20applies\x20to\x20prompts\x20only.','results',':\x20bucket\x20number\x20(Enter\x20to\x20leave\x20out):\x20','entries','subcommand','\x20this\x20month','\x20<id>','delegateTo','Enter\x20numbers\x20from\x201\x20to\x20','--cleanup','No\x20models\x20available\x20for\x20this\x20product/tenant.\x0a','code','delegations\x20accept\x20<delegation-id>','--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`delegate-cli\x20sessions`\x20only.','Title\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x22<prompt>\x22\x0a','medium','period_end','hide','More:\x20delegate-cli\x20sessions\x20--page\x20','the\x20JSON\x20schema','\x0aAvailable\x20models\x20(','--print','No\x20structured\x20output:\x20the\x20turn\x20failed\x20(','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','map','delegations','🔧\x20','\x20min)','263432RWbegP','includes','--worker-id','type','optional','stop','runnerUrl','\x20(optional)','response','expiresAt','turnId','9918504XICnRr','Unknown\x20delegations\x20action:\x20','complete\x20needs\x20--json-schema\x20<file>:\x20delegate-cli\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22.','package.json','stdin','\x20prompt,\x20','Delegation\x20\x20\x20\x20','a\x20briefing\x20text','setPrompt','keys','question','assignedUser','SIGINT','deployment','session_consumed_pu','alreadyCompleted','oneTurn','\x20token\x20units)','--session','--turn\x20applies\x20to\x20`delegate-cli\x20sessions\x20cancel`\x20only.','.\x20Use:\x20','list','sessions','Input\x20closed\x20before\x20the\x20question\x20was\x20answered.','forEach','file','--effort','claim','\x20days:\x20','delegations\x20pending\x20<session-id>','daily_usage','close','alpha','verbose','outputFormat','Work\x20on\x20it\x20with:\x20delegate-cli\x20--session\x20','--headless','noConnections','choice','/exit','--to','slice','answers','startsWith','done','content','production','):\x20','signal','tenantId','\x20-\x20','fork','shift','token_units','period_days','message','page','replace','a\x20directory\x20path','You>\x20','isTTY','whoami','items','%\x20of\x20','endQuestions','a\x20skill\x20name','addEventListener','end','lockReason','delegate-cli','argv','max','push','numeric','buckets','\x20(estimated\x20$','padStart','Renamed\x20','\x27\x20is\x20empty.','auth.json','session_start','--working-dir','\x0aStopping…\x20(Ctrl+C\x20again\x20to\x20force\x20exit)\x0a','Enter\x20sends\x20a\x20message.\x20/exit\x20or\x20EOF\x20exits;\x20Ctrl+C\x20stops\x20and\x20exits.\x0a','exit','Tokens:\x20','--backend','.\x20Use\x20alpha\x20|\x20staging\x20|\x20production\x20|\x20localhost.','--version','Task\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','stringify','org-users','includeSubAgents','cwd','No\x20answers\x20awaiting\x20acceptance.\x0a','Usage:\x20delegate-cli\x20sessions\x20cancel\x20<session-id>\x20--turn\x20<turn-id>','filter','activity','delegations\x20claim\x20<delegation-id|delegate://delegation/…>','a\x20JSON\x20schema\x20file','usage','Usage:\x20delegate-cli\x20sessions\x20fork\x20<id>\x20[<message-id>]','\x20days.\x0a','every','\x20\x20\x20\x20','\x20\x20(sub-agent\x20of\x20','low','Your\x20answer\x20(Enter\x20to\x20skip):\x20','off','evaluate','utf-8','probability','Auth\x20comes\x20from\x20AUTH_TOKEN/TENANT_ID/ORG_ID\x20—\x20set\x20TENANT_ID\x20and\x20TENANT_SLUG\x20to\x20change\x20the\x20tenant.','readLine','\x20sessions\x20on\x20','structured','tenantName','\x20tokens\x0a','Deleted\x20session\x20','rubric_version','\x20or\x20your\x20own\x20answer','--no-computer-use','Unknown\x20usage\x20view:\x20','\x20(type\x20your\x20own)','workerId','Token:\x20\x20\x20\x20\x20\x20\x20\x20expires\x20','Base\x20URL:\x20\x20\x20\x20\x20','\x20needs\x20a\x20JSON\x20request:\x20delegate-cli\x20',',\x20whose\x20tenant\x20is\x20chosen\x20in\x20the\x20app.\x20Run\x20`delegate-cli\x20login\x20--env\x20<env>`\x20for\x20a\x20CLI\x20login\x20of\x20your\x20own.','Usage:\x20delegate-cli\x20','Interop\x20stopped\x20(if\x20it\x20was\x20running).','headless','--no-security','.aria','Session\x20','Source:\x20\x20\x20\x20\x20\x20\x20','help','join','existsSync','\x20PU\x20used','stack','\x20(resume\x20with\x20--session\x20','mode','a\x20deployment\x20URL,\x20e.g.\x20https://automationsuite.contoso.com','\x20to\x20','options','--quiet','--env\x20localhost\x20has\x20no\x20OAuth\x20flow;\x20pick\x20alpha,\x20staging,\x20or\x20production.','locked','questions','55PGvBzn','Unknown\x20sessions\x20action:\x20','completion_tokens','\x0aAccept\x20one\x20with:\x20delegate-cli\x20delegations\x20accept\x20<id>\x0a','toFixed','--no-connections',',\x20got\x20','2015973UPMjzn','userId','error','Turn:\x20','\x20from\x20','sourceTitle','Removed\x20','--preload-skill','--url\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Other\x20commands\x20follow\x20the\x20saved\x20login,\x20or\x20--backend\x20<url>.','skip','Cartographer:\x20','tool_call','version','--json-schema','complete','restore','kind','detail','finish','title','destroy','total_prompt_tokens','\x20(Enter\x20to\x20skip):\x20','--attach','task','delegations\x20list\x20<backend-project-id>','Pass\x20either\x20--env\x20(a\x20named\x20cloud)\x20or\x20--url\x20(any\x20other\x20deployment),\x20not\x20both.','taskAutomation','rmSync','toISOString',')\x20—\x20saved\x20to\x20','exitCode','displayName','\x20<title>','backendUrl','\x20must\x20be\x20a\x20JSON\x20object.','workingDirectory','catch','delegations\x20delete\x20<delegation-id>','score','484qGrrmg','prompt','structuredError','7821CsRcMY','sessionId','pct_used','.\x20Share:\x20','getTurnUsageHistory','rerank','intro','confidence','cleanup','then','\x20PU',']\x20Backend\x20URL:\x20','model_id','stdout','isArray','Tenant:\x20\x20\x20\x20\x20\x20\x20','UIPATH_BASE_URL\x20is\x20unusable.\x20','Already\x20answered','contextSummary','onEvent','origin','No\x20sessions\x20on\x20page\x20','Tenant:\x20','organizationId','UiPath\x20Cloud','parse','label','--limit','sendMessage','isDesktopFallback','probability\x20','Invalid\x20--output-format:\x20','\x20|\x20','\x20(cancel\x20with:\x20delegate-cli\x20sessions\x20cancel\x20','email'];_0x4c9a=function(){return _0x181ec7;};return _0x4c9a();}function Ct(){const _0x511ae5=_0x14e824;let _0x517485=_0x511ae5(0x291)[_0x511ae5(0x2ad)]();console[_0x511ae5(0x27a)](_0x517485);}function Lt(){const _0x59e663=_0x14e824;try{return JSON[_0x59e663(0x200)](_0x29657e[_0x59e663(0x2bb)](_0x2d1785[_0x59e663(0x3a6)](__dirname,'..',_0x59e663(0x320)),'utf-8'))[_0x59e663(0x3c6)]||_0x59e663(0x22b);}catch{return _0x59e663(0x22b);}}var Ot=0x7d0;async function ie(_0x29ed75,_0x2863f0){const _0x5fa6ef=_0x14e824;let _0x39f6cd=_0x2863f0?[_0x2863f0]:[];for await(let _0x19eb35 of _0x29ed75)_0x39f6cd['push'](Buffer[_0x5fa6ef(0x2e6)](_0x19eb35));return Buffer['concat'](_0x39f6cd)[_0x5fa6ef(0x233)](_0x5fa6ef(0x38b))['trim']();}function Ft(_0x17bb70,_0x32a85a){return new Promise(_0x1f7b1d=>{const _0x3a6420=_0x1850;let _0xf6def9=_0x2464fb=>{const _0xad7228=_0x1850;clearTimeout(_0x50a460),_0x17bb70[_0xad7228(0x389)](_0xad7228(0x22e),_0x3bd46e),_0x17bb70[_0xad7228(0x389)](_0xad7228(0x360),_0x2f015e),_0x17bb70[_0xad7228(0x389)](_0xad7228(0x3bc),_0x2f015e),_0x17bb70['pause'](),_0x1f7b1d(_0x2464fb);},_0x3bd46e=_0x1e10fb=>_0xf6def9(Buffer[_0x3a6420(0x2e6)](_0x1e10fb)),_0x2f015e=()=>_0xf6def9(null),_0x50a460=setTimeout(()=>_0xf6def9(null),_0x32a85a);_0x17bb70['on'](_0x3a6420(0x22e),_0x3bd46e),_0x17bb70['on'](_0x3a6420(0x360),_0x2f015e),_0x17bb70['on'](_0x3a6420(0x3bc),_0x2f015e),_0x17bb70[_0x3a6420(0x21f)]();});}async function j(_0x2b5b2e,_0x208998,_0x4be90c=Ot){let _0x3370ca=_0x2b5b2e==='-';if(!_0x3370ca&&_0x2b5b2e)return _0x2b5b2e;if(!_0x3370ca&&_0x208998['isTTY'])return'';if(_0x3370ca)return ie(_0x208998,null);let _0x4dd399=await Ft(_0x208998,_0x4be90c);return _0x4dd399?ie(_0x208998,_0x4dd399):'';}function K(){const _0x44c44d=_0x14e824;return _0x2d1785[_0x44c44d(0x3a6)](process.env.HOME||process.env.USERPROFILE||'',_0x44c44d(0x3a2),_0x44c44d(0x36c));}function M(_0x2e5d00){const _0x58952a=_0x14e824;try{let _0x46f519=JSON[_0x58952a(0x200)](_0x29657e[_0x58952a(0x2bb)](_0x2e5d00,_0x58952a(0x38b)));return!_0x46f519['accessToken']||!_0x46f519[_0x58952a(0x34e)]||!_0x46f519[_0x58952a(0x1fe)]?null:_0x46f519;}catch{return null;}}function jt(){const _0x324069=_0x14e824;let _0x3b433c=[{'file':_0x1fa7fa(),'isDesktopFallback':!0x1},{'file':K(),'isDesktopFallback':!0x0}];for(let _0x232dab of _0x3b433c){let _0x3c4af1=M(_0x232dab[_0x324069(0x336)]);if(_0x3c4af1)return{..._0x232dab,'auth':_0x3c4af1};}return null;}async function Mt(){const _0x5dfef4=_0x14e824;let _0x9b076e=_0x1fa7fa();if(!_0x29657e[_0x5dfef4(0x3a7)](_0x9b076e)){let _0x5bfb85=K();console[_0x5dfef4(0x27a)](M(_0x5bfb85)?_0x5dfef4(0x2de)+_0x5bfb85+_0x5dfef4(0x2bc):_0x5dfef4(0x24e));return;}_0x29657e[_0x5dfef4(0x3d6)](_0x9b076e),console[_0x5dfef4(0x27a)](_0x5dfef4(0x3c0)+_0x9b076e);}async function Bt(_0x4a97d7){const _0x3fe458=_0x14e824;let _0x5f4781=Q(),_0x338469,_0x210cdf;if(_0x5f4781)_0x338469=_0x5f4781,_0x210cdf='environment\x20variables\x20(AUTH_TOKEN/TENANT_ID/ORG_ID)';else{let _0x6ee04c=jt();if(!_0x6ee04c)throw new Error(Se);_0x338469=_0x6ee04c['auth'],_0x210cdf=_0x6ee04c[_0x3fe458(0x204)]?_0x6ee04c[_0x3fe458(0x336)]+_0x3fe458(0x2a1):_0x6ee04c[_0x3fe458(0x336)];}let _0x5817ff={'source':_0x210cdf,'baseUrl':_0x338469[_0x3fe458(0x295)]??null,'deployment':Ht(_0x338469[_0x3fe458(0x295)]),'organization':{'id':_0x338469[_0x3fe458(0x1fe)],'slug':_0x338469[_0x3fe458(0x257)]??null},'tenant':{'id':_0x338469[_0x3fe458(0x34e)],'name':_0x338469[_0x3fe458(0x391)]??null},'tokenExpiresAt':_0x338469[_0x3fe458(0x31b)]?new Date(_0x338469[_0x3fe458(0x31b)]*0x3e8)[_0x3fe458(0x3d7)]():null};u(_0x4a97d7,_0x5817ff,()=>{const _0x5b8406=_0x3fe458;let _0x10be7e=[_0x5b8406(0x3a4)+_0x210cdf,_0x5b8406(0x39b)+(_0x338469[_0x5b8406(0x295)]??_0x5b8406(0x22b)),'Deployment:\x20\x20\x20'+_0x5817ff[_0x5b8406(0x32a)],'Organization:\x20'+(_0x338469['orgLogicalName']??'unknown\x20slug')+'\x20('+_0x338469[_0x5b8406(0x1fe)]+')',_0x5b8406(0x1f6)+(_0x338469[_0x5b8406(0x391)]??'unknown\x20slug')+'\x20('+_0x338469[_0x5b8406(0x34e)]+')'];if(_0x338469['expiresAt']){let _0x34962c=_0x338469[_0x5b8406(0x31b)]-Math['floor'](Date['now']()/0x3e8);_0x10be7e[_0x5b8406(0x365)](_0x34962c>0x0?_0x5b8406(0x39a)+_0x5817ff[_0x5b8406(0x2ab)]+_0x5b8406(0x271)+Math[_0x5b8406(0x2b6)](_0x34962c/0x3c)+_0x5b8406(0x311):_0x5b8406(0x28a)+_0x5817ff[_0x5b8406(0x2ab)]);}process[_0x5b8406(0x1f4)][_0x5b8406(0x22f)](_0x10be7e[_0x5b8406(0x3a6)]('\x0a')+'\x0a');});}var Se=_0x14e824(0x26b);function Ht(_0x433002){const _0x115fe9=_0x14e824;return _0x433002?_0x280ff3(_0x433002)?_0x115fe9(0x1ff):_0x115fe9(0x2e5):'unknown';}function Q(){let _0x5b63e8=process.env.AUTH_TOKEN_FILE;return(process.env.AUTH_TOKEN||_0x5b63e8)&&process.env.TENANT_ID&&process.env.ORG_ID?{'accessToken':_0x5b63e8?Jt(_0x5b63e8):process.env.AUTH_TOKEN,..._0x5b63e8?{'accessTokenFile':_0x5b63e8}:{},'tenantId':process.env.TENANT_ID,'organizationId':process.env.ORG_ID,'orgLogicalName':process.env.ORG_SLUG,'tenantName':process.env.TENANT_SLUG,'baseUrl':ve()}:null;}function Jt(_0x498233){const _0x2e5210=_0x14e824;let _0x2feb2c;try{_0x2feb2c=_0x29657e[_0x2e5210(0x2bb)](_0x498233,_0x2e5210(0x38b))[_0x2e5210(0x2ad)]();}catch(_0x1111f2){throw new Error(_0x2e5210(0x23b)+_0x498233+'\x27\x20cannot\x20be\x20read:\x20'+_0x1111f2[_0x2e5210(0x354)]);}let _0x20cb3e=_0x2feb2c[_0x2e5210(0x348)](_0x2e5210(0x2ea))?_0x2feb2c[_0x2e5210(0x346)](0x7)['trim']():_0x2feb2c;if(!_0x20cb3e)throw new Error(_0x2e5210(0x23b)+_0x498233+_0x2e5210(0x36b));return _0x20cb3e;}function ve(){const _0x4eb990=_0x14e824;let _0x226ad8=process.env.UIPATH_BASE_URL;if(!_0x226ad8)return;let _0xed0c59=_0x4dcf28(_0x226ad8);if(_0xed0c59['ok']===!0x1)throw new Error(_0x4eb990(0x1f7)+_0xae7f76(_0x226ad8,_0xed0c59[_0x4eb990(0x2a6)]));return _0xed0c59['baseUrl'];}async function q(){let _0x44226c=Q();if(_0x44226c)return _0x44226c;let _0x55b423=await _0x121626();if(_0x55b423)return _0x55b423;throw new Error(Se);}async function Gt(){const _0x299df5=_0x14e824;await new _0x387ff5()[_0x299df5(0x317)]({'force':!0x0}),console[_0x299df5(0x27a)](_0x299df5(0x39f));}function z(_0x27acfe,_0x509850,_0xc32d19){const _0x58c34d=_0x14e824;_0x27acfe?process[_0x58c34d(0x2cc)][_0x58c34d(0x22f)]('[env='+_0x27acfe+_0x58c34d(0x1f2)+_0xc32d19+'\x0a'):!_0x509850&&!process.env.BACKEND_URL&&process['stderr'][_0x58c34d(0x22f)](_0x58c34d(0x29b)+_0xc32d19+'\x0a');}async function v(_0x25dfa9){const _0x8e6559=_0x14e824;let _0xe83e6c=await q(),_0x45d9e8=_0x1aa8c3(_0x25dfa9[_0x8e6559(0x26e)],_0xe83e6c,_0x25dfa9[_0x8e6559(0x3dc)]);return z(_0x25dfa9[_0x8e6559(0x26e)],_0x25dfa9['backendUrl'],_0x45d9e8),{'auth':_0xe83e6c,'backendUrl':_0x45d9e8,'client':_0x5e4978({'auth':_0xe83e6c,'backendUrl':_0x45d9e8})};}async function Wt(_0x267132){const _0x3e5600=_0x14e824;let {client:_0x10f04e}=await v(_0x267132),[_0x54cefc,_0x47d337]=await Promise[_0x3e5600(0x22c)]([_0x43f3dc(_0x10f04e),_0x297b83(_0x10f04e)[_0x3e5600(0x3df)](_0x553ea2=>(process[_0x3e5600(0x2cc)][_0x3e5600(0x22f)]('Could\x20not\x20check\x20BYO\x20model\x20warnings:\x20'+(_0x553ea2 instanceof Error?_0x553ea2[_0x3e5600(0x354)]:String(_0x553ea2))+'\x0a'),{}))]),_0x47e50a=_0x54cefc[_0x3e5600(0x30e)](_0x15a3f6=>_0x47d337[_0x15a3f6['id']]?{..._0x15a3f6,'byoWarning':_0x47d337[_0x15a3f6['id']]}:_0x15a3f6);u(_0x267132,_0x47e50a,Kt);}function Kt(_0x23c35e){const _0x4a9e05=_0x14e824;if(_0x23c35e[_0x4a9e05(0x25a)]===0x0){process['stderr'][_0x4a9e05(0x22f)](_0x4a9e05(0x2ff));return;}process[_0x4a9e05(0x1f4)][_0x4a9e05(0x22f)](_0x4a9e05(0x30a)+_0x23c35e[_0x4a9e05(0x25a)]+_0x4a9e05(0x20a));for(let _0x5d0cb6 of _0x23c35e){let _0x4ac35f=_0x5d0cb6[_0x4a9e05(0x2ae)]&&_0x5d0cb6[_0x4a9e05(0x2ae)]!==_0x5d0cb6['id']?'\x20('+_0x5d0cb6[_0x4a9e05(0x2ae)]+')':'';process[_0x4a9e05(0x1f4)][_0x4a9e05(0x22f)]('\x20\x20'+_0x5d0cb6['id']+_0x4ac35f+'\x0a'),_0x5d0cb6[_0x4a9e05(0x235)]&&process[_0x4a9e05(0x1f4)]['write'](_0x4a9e05(0x385)+_0x5d0cb6['description']+'\x0a'),_0x5d0cb6[_0x4a9e05(0x3b1)]&&process[_0x4a9e05(0x1f4)]['write'](_0x4a9e05(0x2f0)+(_0x5d0cb6[_0x4a9e05(0x361)]?'\x20('+_0x5d0cb6['lockReason']+')':'')+'\x0a'),_0x5d0cb6['byoWarning']&&process[_0x4a9e05(0x1f4)]['write'](_0x4a9e05(0x213)+_0x5d0cb6[_0x4a9e05(0x284)]+'\x0a');}process[_0x4a9e05(0x1f4)]['write']('\x0aUse\x20with:\x20delegate-cli\x20--model\x20<id>\x20\x22<prompt>\x22\x0a');}var ae=[_0x14e824(0x332),'show',_0x14e824(0x2b1),_0x14e824(0x2db),_0x14e824(0x28b),'fork'];async function Qt(_0x3a0a43){const _0x1c557e=_0x14e824;let [_0x53d3ce='',_0x54ebad='',..._0x2b93bd]=_0x3a0a43[_0x1c557e(0x211)];if(_0x53d3ce&&!ae[_0x1c557e(0x313)](_0x53d3ce)&&(console[_0x1c557e(0x3bc)](_0x1c557e(0x3b4)+_0x53d3ce+_0x1c557e(0x331)+ae[_0x1c557e(0x3a6)](_0x1c557e(0x207))+'.'),process['exit'](0x2)),_0x3a0a43[_0x1c557e(0x31c)]!==void 0x0&&_0x53d3ce!=='cancel'&&(console[_0x1c557e(0x3bc)](_0x1c557e(0x330)),process[_0x1c557e(0x371)](0x2)),_0x53d3ce&&_0x53d3ce!==_0x1c557e(0x332)){await qt(_0x3a0a43,_0x53d3ce,_0x54ebad,_0x2b93bd['join']('\x20')[_0x1c557e(0x2ad)]());return;}_0x3a0a43[_0x1c557e(0x211)]['length']>0x1&&(console[_0x1c557e(0x3bc)]('Usage:\x20delegate-cli\x20sessions\x20[list]\x20[--page\x20N]\x20[--limit\x20N]\x20[--include-subagents]'),process[_0x1c557e(0x371)](0x2));let {client:_0x2d79ec}=await v(_0x3a0a43),_0x80792a=await _0x94e9c2(_0x2d79ec,{'page':_0x3a0a43[_0x1c557e(0x355)],'pageSize':_0x3a0a43['limit'],'includeSubAgents':_0x3a0a43[_0x1c557e(0x379)]});u(_0x3a0a43,_0x80792a,Xt);}async function qt(_0x2c1bb4,_0x591683,_0x4a715a,_0x3730e5){const _0x597504=_0x14e824;if((_0x2c1bb4['page']!==void 0x0||_0x2c1bb4[_0x597504(0x236)]!==void 0x0||_0x2c1bb4['includeSubAgents'])&&(console[_0x597504(0x3bc)](_0x597504(0x2eb)),process[_0x597504(0x371)](0x2)),_0x591683===_0x597504(0x28b)){await Yt(_0x2c1bb4,_0x4a715a,_0x3730e5);return;}if(_0x591683===_0x597504(0x350)){await Vt(_0x2c1bb4,_0x4a715a,_0x3730e5);return;}(!_0x4a715a||_0x591683===_0x597504(0x2b1)!=!!_0x3730e5)&&(console[_0x597504(0x3bc)](_0x597504(0x275)+_0x591683+_0x597504(0x2fb)+(_0x591683===_0x597504(0x2b1)?_0x597504(0x3db):'')),process[_0x597504(0x371)](0x2));let {client:_0x3b9d5e}=await v(_0x2c1bb4);try{if(_0x591683==='show'){let _0x1dc9a5=await _0x34c963(_0x3b9d5e,_0x4a715a);_0x1dc9a5||le(_0x4a715a),u(_0x2c1bb4,_0x1dc9a5,zt);}else{if(_0x591683===_0x597504(0x2b1)){let _0x48a069=await _0x5a0297(_0x3b9d5e,_0x4a715a,_0x3730e5);u(_0x2c1bb4,_0x48a069,_0x207bc7=>{const _0x5270dd=_0x597504;process['stdout']['write'](_0x5270dd(0x36a)+_0x207bc7['id']+':\x20'+_0x207bc7[_0x5270dd(0x3cd)]+'\x0a');});}else await _0x286490(_0x3b9d5e,_0x4a715a),await _0x433517(_0x4a715a,_0x2c1bb4[_0x597504(0x3de)]),u(_0x2c1bb4,{'id':_0x4a715a,'deleted':!0x0},_0x2c1fd7=>{const _0x2fc1f0=_0x597504;process['stdout'][_0x2fc1f0(0x22f)](_0x2fc1f0(0x393)+_0x2c1fd7['id']+'.\x0a');});}}catch(_0x5d84d5){if(!_0x2d6be6(_0x5d84d5,0x194))throw _0x5d84d5;le(_0x4a715a);}}function le(_0x1782b2){const _0x37a652=_0x14e824;console[_0x37a652(0x3bc)](_0x37a652(0x3a3)+_0x1782b2+'\x20not\x20found.'),process[_0x37a652(0x371)](0x1);}function zt(_0x488fac){const _0x404b5c=_0x14e824;process[_0x404b5c(0x1f4)][_0x404b5c(0x22f)](_0x404b5c(0x280)+_0x488fac['id']+'\x0a'),process[_0x404b5c(0x1f4)][_0x404b5c(0x22f)](_0x404b5c(0x303)+_0x488fac['title']+'\x0a'),process[_0x404b5c(0x1f4)][_0x404b5c(0x22f)]('Owner\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x488fac[_0x404b5c(0x3bb)]+'\x0a'),process[_0x404b5c(0x1f4)][_0x404b5c(0x22f)]('Organization\x20\x20'+_0x488fac['organizationId']+'\x0a'),_0x488fac[_0x404b5c(0x2c1)]&&process[_0x404b5c(0x1f4)]['write'](_0x404b5c(0x323)+_0x488fac[_0x404b5c(0x2c1)]+'\x0a');}async function Yt(_0x78ffb1,_0x77129e,_0x25aaa1){const _0x3946b0=_0x14e824;(!_0x77129e||_0x25aaa1||!_0x78ffb1[_0x3946b0(0x31c)])&&(console[_0x3946b0(0x3bc)](_0x3946b0(0x37c)),process['exit'](0x2));let {client:_0x15bcd5}=await v(_0x78ffb1),_0x21cc17=await _0x8d27dc(_0x15bcd5,_0x77129e,_0x78ffb1[_0x3946b0(0x31c)]);u(_0x78ffb1,{'sessionId':_0x77129e,'turnId':_0x78ffb1[_0x3946b0(0x31c)],'cancelled':_0x21cc17},_0x28936e=>{const _0x31df77=_0x3946b0;_0x28936e[_0x31df77(0x2e2)]?process[_0x31df77(0x1f4)][_0x31df77(0x22f)](_0x31df77(0x20e)+_0x28936e[_0x31df77(0x31c)]+_0x31df77(0x261)+_0x28936e[_0x31df77(0x3e6)]+'.\x0a'):process[_0x31df77(0x2cc)]['write'](_0x31df77(0x2a7)+_0x28936e[_0x31df77(0x31c)]+'\x20in\x20progress\x20on\x20session\x20'+_0x28936e['sessionId']+'.\x0a');}),_0x21cc17||(process['exitCode']=0x1);}async function Vt(_0x2b97ec,_0x5a95a7,_0x47efb8){const _0x395f04=_0x14e824;(!_0x5a95a7||/\s/[_0x395f04(0x2ba)](_0x47efb8))&&(console[_0x395f04(0x3bc)](_0x395f04(0x382)),process[_0x395f04(0x371)](0x2));let {client:_0x28c5a8}=await v(_0x2b97ec),_0xa29d87;try{_0xa29d87=await _0xb17e1e(_0x28c5a8,_0x5a95a7,{'atMessageId':_0x47efb8||void 0x0});}catch(_0x489448){if(!_0x2d6be6(_0x489448,0x194))throw _0x489448;console[_0x395f04(0x3bc)](_0x395f04(0x3a3)+_0x5a95a7+_0x395f04(0x27c)+(_0x47efb8?_0x395f04(0x255)+_0x47efb8:'')+'.'),process[_0x395f04(0x371)](0x1);}u(_0x2b97ec,_0xa29d87,_0x38e927=>{const _0xa8b6c3=_0x395f04;process[_0xa8b6c3(0x1f4)][_0xa8b6c3(0x22f)](_0xa8b6c3(0x2e9)+_0x5a95a7+'\x20into\x20'+_0x38e927['id']+'.\x0a'),process[_0xa8b6c3(0x2cc)][_0xa8b6c3(0x22f)](_0xa8b6c3(0x224)+_0x38e927['id']+_0xa8b6c3(0x304));});}function Xt({sessions:_0x180562,page:_0xe617aa,isLastPage:_0x29a571}){const _0x3a57d=_0x14e824;if(_0x180562[_0x3a57d(0x25a)]===0x0)process[_0x3a57d(0x2cc)][_0x3a57d(0x22f)](_0x3a57d(0x1fc)+_0xe617aa+'.\x0a');else{process[_0x3a57d(0x1f4)][_0x3a57d(0x22f)]('ID'[_0x3a57d(0x2f3)](0x24)+'\x20\x20'+'UPDATED'['padEnd'](0x13)+_0x3a57d(0x241));for(let _0x4c92c7 of _0x180562){let _0x190a26=_0x4c92c7['updatedAt'][_0x3a57d(0x356)]('T','\x20')[_0x3a57d(0x346)](0x0,0x13),_0x300f8c=_0x4c92c7[_0x3a57d(0x22d)]?_0x3a57d(0x386)+_0x4c92c7['parentSessionId']+')':'';process[_0x3a57d(0x1f4)]['write'](_0x4c92c7['id'][_0x3a57d(0x2f3)](0x24)+'\x20\x20'+_0x190a26['padEnd'](0x13)+'\x20\x20'+_0x4c92c7['title']+_0x300f8c+'\x0a');}}_0x29a571||process[_0x3a57d(0x2cc)][_0x3a57d(0x22f)](_0x3a57d(0x308)+(_0xe617aa+0x1)+'\x0a');}async function Zt(_0x1a7e00){const _0x3e9b39=_0x14e824;let _0x33ec52=await q(),_0x46b39d=_0x1aa8c3(_0x1a7e00[_0x3e9b39(0x26e)],_0x33ec52,_0x1a7e00[_0x3e9b39(0x3dc)]);z(_0x1a7e00['env'],_0x1a7e00['backendUrl'],_0x46b39d);let _0x5d6d84=await _0x2a71bd({'auth':_0x33ec52,'backendUrl':_0x46b39d,'interop':_0x1a7e00[_0x3e9b39(0x3a0)]?_0x3e9b39(0x3c3):'spawn'});u(_0x1a7e00,_0x5d6d84,({checks:_0x48328a})=>{const _0x1f1b60=_0x3e9b39;for(let _0x3c84ae of _0x48328a)process['stdout'][_0x1f1b60(0x22f)](en(_0x3c84ae)+'\x0a');}),_0x5d6d84['ok']||process[_0x3e9b39(0x371)](0x1);}function en(_0x407d79){const _0x26ffb8=_0x14e824;return{'ok':'✓','failed':'✗','skipped':'-'}[_0x407d79['status']]+'\x20'+_0x407d79[_0x26ffb8(0x2ae)][_0x26ffb8(0x2f3)](0xa)+_0x407d79[_0x26ffb8(0x3cb)];}var tn=['','activity',_0x14e824(0x277)];async function nn(_0x5e4b47){const _0x5df817=_0x14e824;let _0x4ed123=_0x5e4b47[_0x5df817(0x3e3)];tn['includes'](_0x4ed123)||(console['error'](_0x5df817(0x397)+_0x5e4b47[_0x5df817(0x3e3)]+_0x5df817(0x225)),process[_0x5df817(0x371)](0x2)),_0x4ed123===''&&_0x5e4b47[_0x5df817(0x2d0)]!==void 0x0&&(console[_0x5df817(0x3bc)](_0x5df817(0x26d)),process[_0x5df817(0x371)](0x2)),_0x4ed123!==''&&_0x5e4b47[_0x5df817(0x3e6)]!==void 0x0&&(console['error'](_0x5df817(0x2d4)),process[_0x5df817(0x371)](0x2));let {client:_0x1cd04a}=await v(_0x5e4b47);if(_0x4ed123===_0x5df817(0x37e)){u(_0x5e4b47,await _0xabdfd7(_0x1cd04a,{'days':_0x5e4b47[_0x5df817(0x2d0)]}),sn);return;}if(_0x4ed123===_0x5df817(0x277)){u(_0x5e4b47,await _0x33655d(_0x1cd04a,{'days':_0x5e4b47[_0x5df817(0x2d0)]}),rn);return;}let [_0x322a47,_0x1e6186,_0x22934a]=await Promise[_0x5df817(0x22c)]([_0x311e70(_0x1cd04a,{'sessionId':_0x5e4b47[_0x5df817(0x3e6)]}),_0xeb2eee(_0x1cd04a),_0x3ca4a4(_0x1cd04a)]);u(_0x5e4b47,{'licensing':_0x322a47,'monthlySpending':_0x1e6186,'cartographerAllowance':_0x22934a},on);}function on(_0x14a975){const _0x36a60f=_0x14e824;let {licensing:_0x1db5b4,monthlySpending:_0x3e6690,cartographerAllowance:_0x5e2d00}=_0x14a975,_0x106b80=[_0x1db5b4[_0x36a60f(0x263)]?_0x36a60f(0x24b)+_0x1db5b4[_0x36a60f(0x3e7)]['toFixed'](0x1)+_0x36a60f(0x35c)+(_0x1db5b4[_0x36a60f(0x2df)]??0x0)+_0x36a60f(0x3a8)+(_0x1db5b4[_0x36a60f(0x25f)]>0x0?',\x20'+_0x1db5b4[_0x36a60f(0x25f)]+_0x36a60f(0x28c):'')+_0x36a60f(0x2ef)+_0x1db5b4[_0x36a60f(0x306)]+')':_0x36a60f(0x2c9),_0x36a60f(0x281)+_0x3e6690[_0x36a60f(0x2b8)][_0x36a60f(0x3b7)](0x2)+_0x36a60f(0x2fa)+(_0x3e6690['limit_enabled']&&_0x3e6690[_0x36a60f(0x228)]!==null?'\x20of\x20a\x20$'+_0x3e6690['monthly_limit_usd'][_0x36a60f(0x3b7)](0x2)+_0x36a60f(0x2c2):_0x36a60f(0x256)),_0x36a60f(0x3c4)+_0x5e2d00[_0x36a60f(0x3ab)]+'\x20('+_0x5e2d00[_0x36a60f(0x1f3)]+')'];_0x1db5b4['session_consumed_pu']!==null&&_0x1db5b4[_0x36a60f(0x32b)]!==void 0x0&&_0x106b80[_0x36a60f(0x365)]('Session:\x20\x20\x20\x20\x20\x20'+_0x1db5b4[_0x36a60f(0x32b)]+_0x36a60f(0x1f1)),process['stdout'][_0x36a60f(0x22f)](_0x106b80[_0x36a60f(0x3a6)]('\x0a')+'\x0a');}function sn(_0xdfd044){const _0x4608c1=_0x14e824;let _0x556f2a=['Last\x20'+_0xdfd044[_0x4608c1(0x353)]+_0x4608c1(0x339)+_0xdfd044[_0x4608c1(0x24a)]+_0x4608c1(0x38f)+_0xdfd044[_0x4608c1(0x21c)]+_0x4608c1(0x27d),_0x4608c1(0x2be)+_0xdfd044[_0x4608c1(0x220)][_0x4608c1(0x3b7)](0x2)+_0x4608c1(0x368)+_0xdfd044['estimated_cost_usd'][_0x4608c1(0x3b7)](0x2)+_0x4608c1(0x3be)+_0xdfd044['total_token_units']+_0x4608c1(0x32e),_0x4608c1(0x372)+_0xdfd044[_0x4608c1(0x3cf)]+_0x4608c1(0x322)+_0xdfd044[_0x4608c1(0x210)]+_0x4608c1(0x285)];for(let [_0x5cca89,_0x298bb6]of Object['entries'](_0xdfd044['models_breakdown']))_0x556f2a[_0x4608c1(0x365)]('\x20\x20'+_0x5cca89+':\x20'+_0x298bb6+'\x20token\x20units');process[_0x4608c1(0x1f4)][_0x4608c1(0x22f)](_0x556f2a['join']('\x0a')+'\x0a');}function rn(_0x470e40){const _0x243135=_0x14e824;if(_0x470e40[_0x243135(0x33b)][_0x243135(0x25a)]===0x0){process[_0x243135(0x1f4)]['write'](_0x243135(0x232)+_0x470e40[_0x243135(0x353)]+_0x243135(0x383));return;}let _0x47a7ce=['Date\x20\x20\x20\x20\x20\x20\x20\x20Token\x20units\x20\x20Prompt\x20tokens\x20\x20Completion\x20tokens'];for(let _0x5782a8 of _0x470e40[_0x243135(0x33b)])_0x47a7ce[_0x243135(0x365)](_0x5782a8[_0x243135(0x246)]+'\x20\x20'+String(_0x5782a8[_0x243135(0x352)])['padStart'](0xb)+'\x20\x20'+String(_0x5782a8[_0x243135(0x28d)])[_0x243135(0x369)](0xd)+'\x20\x20'+String(_0x5782a8[_0x243135(0x3b5)])[_0x243135(0x369)](0x11));process['stdout'][_0x243135(0x22f)](_0x47a7ce['join']('\x0a')+'\x0a');}async function an(_0x297a0d,_0x333201){const _0x16ab0c=_0x14e824;let _0x27faea=await ln(_0x297a0d[_0x16ab0c(0x3e3)],_0x333201);_0x297a0d[_0x16ab0c(0x2d7)]&&(_0x27faea[_0x16ab0c(0x2d7)]=_0x297a0d[_0x16ab0c(0x2d7)]);let {client:_0x4da0fd}=await v(_0x297a0d);try{_0x333201===_0x16ab0c(0x38a)?u(_0x297a0d,await _0x14cabb(_0x4da0fd,_0x27faea,void 0x0),dn):_0x333201===_0x16ab0c(0x3ea)?u(_0x297a0d,await _0x37af09(_0x4da0fd,_0x27faea,void 0x0),un):u(_0x297a0d,await _0x1603d0(_0x4da0fd,_0x27faea,void 0x0),pn);}catch(_0x256990){if(!_0x3c80f0(_0x256990))throw _0x256990;console['error'](_0x256990[_0x16ab0c(0x354)]),process[_0x16ab0c(0x371)](0x1);}}async function ln(_0x176e63,_0x40f7ad){const _0x265d2e=_0x14e824;let _0x3bd924;try{_0x3bd924=_0x176e63&&_0x176e63!=='-'?_0x29657e['readFileSync'](_0x2d1785[_0x265d2e(0x2f2)](_0x176e63),_0x265d2e(0x38b)):await j(_0x176e63,process[_0x265d2e(0x321)]);}catch(_0x1c170a){console[_0x265d2e(0x3bc)](_0x40f7ad+':\x20cannot\x20read\x20the\x20request\x20('+_0x1c170a[_0x265d2e(0x354)]+').'),process[_0x265d2e(0x371)](0x2);}return _0x3bd924||(console[_0x265d2e(0x3bc)](_0x40f7ad+_0x265d2e(0x39c)+_0x40f7ad+_0x265d2e(0x2e4)),process['exit'](0x2)),Ae(_0x3bd924,_0x40f7ad,'the\x20request');}function Ae(_0xec5b5b,_0x17ba85,_0x37c89d){const _0x5a7a11=_0x14e824;let _0x2a07f2;try{_0x2a07f2=JSON['parse'](_0xec5b5b);}catch(_0x48bf9d){console['error'](_0x17ba85+':\x20'+_0x37c89d+_0x5a7a11(0x290)+_0x48bf9d[_0x5a7a11(0x354)]+').'),process[_0x5a7a11(0x371)](0x2);}return(typeof _0x2a07f2!=_0x5a7a11(0x293)||_0x2a07f2===null||Array[_0x5a7a11(0x1f5)](_0x2a07f2))&&(console[_0x5a7a11(0x3bc)](_0x17ba85+':\x20'+_0x37c89d+_0x5a7a11(0x3dd)),process['exit'](0x2)),_0x2a07f2;}function $e(_0xd3ed3c,_0x351170){const _0x4766af=_0x14e824;let _0x3b6eb7;try{_0x3b6eb7=_0x29657e[_0x4766af(0x2bb)](_0x2d1785[_0x4766af(0x2f2)](_0xd3ed3c),_0x4766af(0x38b));}catch(_0x164da0){console[_0x4766af(0x3bc)](_0x351170+':\x20cannot\x20read\x20the\x20JSON\x20schema\x20('+_0x164da0[_0x4766af(0x354)]+').'),process[_0x4766af(0x371)](0x2);}return Ae(_0x3b6eb7,_0x351170,_0x4766af(0x309));}async function cn(_0x485497){const _0x1f0e33=_0x14e824;_0x485497[_0x1f0e33(0x2e1)]===void 0x0&&(console[_0x1f0e33(0x3bc)](_0x1f0e33(0x31f)),process[_0x1f0e33(0x371)](0x2));let _0x5d131c=$e(_0x485497[_0x1f0e33(0x2e1)],_0x1f0e33(0x3c8)),_0x4932d3=(await j(_0x485497[_0x1f0e33(0x3e3)],process[_0x1f0e33(0x321)]))['trim']();_0x4932d3||(console[_0x1f0e33(0x3bc)](_0x1f0e33(0x2cf)),process[_0x1f0e33(0x371)](0x2));let {client:_0x3d1b66}=await v(_0x485497);try{let _0x5c972f=await _0x187972(_0x3d1b66,{'prompt':_0x4932d3,'jsonSchema':_0x5d131c,'model':_0x485497['model']||process.env.MODEL||_0xf0805b,..._0x485497[_0x1f0e33(0x3e6)]!==void 0x0&&{'sessionId':_0x485497[_0x1f0e33(0x3e6)]}},void 0x0);u(_0x485497,_0x5c972f,_0x7f2d4b=>{const _0x1dbfdb=_0x1f0e33;process[_0x1dbfdb(0x1f4)][_0x1dbfdb(0x22f)](JSON[_0x1dbfdb(0x377)](_0x7f2d4b[_0x1dbfdb(0x390)],null,0x2)+'\x0a');});}catch(_0x282cfc){if(!_0x502534(_0x282cfc))throw _0x282cfc;console[_0x1f0e33(0x3bc)](_0x282cfc['message']),process[_0x1f0e33(0x371)](0x1);}}function Y(_0x6147ba){const _0x3c70f9=_0x14e824;process[_0x3c70f9(0x1f4)][_0x3c70f9(0x22f)]('Model\x20'+_0x6147ba[_0x3c70f9(0x2d7)]+'\x20('+_0x6147ba[_0x3c70f9(0x2ec)]+_0x3c70f9(0x2b5)+_0x6147ba['usage'][_0x3c70f9(0x229)]+_0x3c70f9(0x392));}function dn(_0xdfef7){const _0x1571fc=_0x14e824;Y(_0xdfef7);for(let _0x4e2f91 of Object[_0x1571fc(0x326)](_0xdfef7[_0x1571fc(0x347)])){let _0x3278e6=_0xdfef7[_0x1571fc(0x347)][_0x4e2f91],_0x4e76e4=_0x3278e6[_0x1571fc(0x315)]===_0x1571fc(0x38c)?_0x1571fc(0x205)+_0x3278e6[_0x1571fc(0x38c)][_0x1571fc(0x3b7)](0x2):_0x3278e6['type']==='choice'?_0x1571fc(0x2ee)+_0x3278e6[_0x1571fc(0x343)]+_0x1571fc(0x2a4)+_0x3278e6['confidence'][_0x1571fc(0x3b7)](0x2)+')':'score\x20'+_0x3278e6[_0x1571fc(0x3e1)]['toFixed'](0x2)+_0x1571fc(0x2a4)+_0x3278e6[_0x1571fc(0x3ec)][_0x1571fc(0x3b7)](0x2)+')';process[_0x1571fc(0x1f4)][_0x1571fc(0x22f)]('\x20\x20'+_0x4e2f91+':\x20'+_0x4e76e4+'\x0a');}}function un(_0xde6c9c){const _0x371773=_0x14e824;Y(_0xde6c9c),_0xde6c9c[_0x371773(0x2f6)][_0x371773(0x335)]((_0x520aa7,_0xdbc1d8)=>{const _0x32f8d0=_0x371773;process[_0x32f8d0(0x1f4)][_0x32f8d0(0x22f)]('\x20\x20'+(_0xdbc1d8+0x1)+'.\x20'+_0x520aa7['id']+'\x20\x20'+_0x520aa7[_0x32f8d0(0x3e1)][_0x32f8d0(0x3b7)](0x3)+_0x32f8d0(0x2b9)+_0x520aa7['index']+')\x0a');});}function pn(_0x321b40){const _0x44476f=_0x14e824;Y(_0x321b40),process['stdout'][_0x44476f(0x22f)]('Rubric\x20'+_0x321b40[_0x44476f(0x394)]+'\x0a');for(let _0xc8ff05 of _0x321b40[_0x44476f(0x2f6)])process[_0x44476f(0x1f4)]['write']('\x20\x20'+_0xc8ff05['id']+':\x20'+_0xc8ff05[_0x44476f(0x288)]+_0x44476f(0x2a4)+_0xc8ff05['confidence'][_0x44476f(0x3b7)](0x2)+')\x0a');}async function mn(_0x549181){const _0x16bbf2=_0x14e824;let _0x266bd0=_0x549181[_0x16bbf2(0x3e3)][_0x16bbf2(0x2ad)]();_0x266bd0||(console['error'](_0x16bbf2(0x2ed)),process['exit'](0x2));let {client:_0x4c2b9e}=await v(_0x549181);try{let _0x4612f5=_0x266bd0==='-'?{'data':await fn(process[_0x16bbf2(0x321)])}:_0x266bd0;u(_0x549181,await _0xc762c(_0x4c2b9e,_0x4612f5,void 0x0),_0x5610cf=>{const _0x2f33c1=_0x16bbf2;process[_0x2f33c1(0x1f4)]['write'](_0x5610cf[_0x2f33c1(0x24c)]+'\x0a');});}catch(_0x12836e){if(_0x333a97(_0x12836e)&&(console[_0x16bbf2(0x3bc)](_0x12836e['message']),process[_0x16bbf2(0x371)](_0x12836e['status']===void 0x0?0x2:0x1)),typeof _0x12836e?.[_0x16bbf2(0x300)]!=_0x16bbf2(0x23f))throw _0x12836e;console['error']('transcribe:\x20cannot\x20read\x20'+_0x266bd0+'\x20('+_0x12836e['message']+').'),process[_0x16bbf2(0x371)](0x2);}}async function fn(_0x352bbb){const _0x1eb2bd=_0x14e824;let _0x610e0=[];for await(let _0x45a121 of _0x352bbb)_0x610e0[_0x1eb2bd(0x365)](Buffer[_0x1eb2bd(0x2e6)](_0x45a121));return Buffer['concat'](_0x610e0);}var ce=[_0x14e824(0x332),_0x14e824(0x242),_0x14e824(0x289),_0x14e824(0x215),_0x14e824(0x338),_0x14e824(0x3c8),'accept',_0x14e824(0x217),_0x14e824(0x28b),_0x14e824(0x2db)],de={'list':_0x14e824(0x3d3),'pending':_0x14e824(0x33a),'show':'delegations\x20show\x20<delegation-id|delegate://delegation/…>','create':'delegations\x20create\x20--session\x20<id>\x20[--to\x20<email|name>]\x20[--summary\x20<text>]\x20\x22<task>\x22|-','claim':_0x14e824(0x37f),'complete':_0x14e824(0x26f),'accept':_0x14e824(0x301),'dismiss':_0x14e824(0x249),'cancel':'delegations\x20cancel\x20<delegation-id>','delete':_0x14e824(0x3e0)};async function gn(_0x1c9153){const _0x2e3c28=_0x14e824;let [_0x3af6aa='',_0x206249='',..._0x11582e]=_0x1c9153['operands'];ce['includes'](_0x3af6aa)||(console['error']((_0x3af6aa?_0x2e3c28(0x31e)+_0x3af6aa+'.\x20':'')+_0x2e3c28(0x24f)+ce[_0x2e3c28(0x3a6)]('\x20|\x20')+'.'),process[_0x2e3c28(0x371)](0x2));let _0x266236=_0x3af6aa;_0x266236!==_0x2e3c28(0x215)&&(_0x1c9153[_0x2e3c28(0x2fc)]!==void 0x0||_0x1c9153[_0x2e3c28(0x1f9)]!==void 0x0||_0x1c9153['sessionId']!==void 0x0)&&(console[_0x2e3c28(0x3bc)](_0x2e3c28(0x2a5)),process[_0x2e3c28(0x371)](0x2));let _0x121df0=(_0x266236===_0x2e3c28(0x215)?_0x1c9153['operands'][_0x2e3c28(0x346)](0x1):_0x11582e)['join']('\x20')[_0x2e3c28(0x2ad)](),_0x177aa8=_0x266236===_0x2e3c28(0x215)||_0x266236===_0x2e3c28(0x3c8);(_0x266236!==_0x2e3c28(0x215)&&!_0x206249||(_0x177aa8?!_0x121df0:_0x121df0)||_0x266236==='create'&&!_0x1c9153[_0x2e3c28(0x3e6)])&&(console[_0x2e3c28(0x3bc)]('Usage:\x20delegate-cli\x20'+de[_0x266236]),process[_0x2e3c28(0x371)](0x2));let _0x4f2b1f=_0x177aa8&&_0x121df0==='-'?(await j('-',process[_0x2e3c28(0x321)]))[_0x2e3c28(0x2ad)]():_0x121df0;_0x177aa8&&!_0x4f2b1f&&(console[_0x2e3c28(0x3bc)](_0x2e3c28(0x39e)+de[_0x266236]+'\x20(stdin\x20was\x20empty)'),process[_0x2e3c28(0x371)](0x2));let {client:_0x5abd27}=await v(_0x1c9153);try{await hn(_0x1c9153,_0x5abd27,_0x266236,_0x206249,_0x4f2b1f);}catch(_0x3be79c){if(!_0x2222cb(_0x3be79c))throw _0x3be79c;console[_0x2e3c28(0x3bc)](_0x3be79c['message']),process[_0x2e3c28(0x371)](0x1);}}async function hn(_0x38885d,_0x4129bf,_0x361d0,_0x1593b0,_0x1133dc){const _0xada4ab=_0x14e824;switch(_0x361d0){case _0xada4ab(0x332):u(_0x38885d,await _0x131fbc(_0x4129bf,_0x1593b0),yn);return;case _0xada4ab(0x242):u(_0x38885d,await _0x2b38c2(_0x4129bf,_0x1593b0),_0x23acf8=>{const _0x1a8ba9=_0xada4ab;_0x23acf8[_0x1a8ba9(0x243)]&&process[_0x1a8ba9(0x1f4)]['write'](_0x1a8ba9(0x270)+_0x23acf8['delegation']['id']+'\x20('+_0x23acf8['delegation'][_0x1a8ba9(0x2a9)]+_0x1a8ba9(0x21b)),_0x23acf8['pendingResults']['length']===0x0&&process[_0x1a8ba9(0x2cc)][_0x1a8ba9(0x22f)](_0x1a8ba9(0x37b));for(let _0xdf8944 of _0x23acf8[_0x1a8ba9(0x2cd)])process[_0x1a8ba9(0x1f4)][_0x1a8ba9(0x22f)]('\x0a'+_0xdf8944['id']+_0x1a8ba9(0x2d6)+(_0xdf8944[_0x1a8ba9(0x254)]??_0x1a8ba9(0x248))+'\x20\x20'+(_0xdf8944[_0x1a8ba9(0x3d2)]??'')+'\x0a'+(_0xdf8944[_0x1a8ba9(0x299)]?.[_0x1a8ba9(0x34a)]??'')+'\x0a');_0x23acf8[_0x1a8ba9(0x2cd)][_0x1a8ba9(0x25a)]>0x0&&process[_0x1a8ba9(0x2cc)][_0x1a8ba9(0x22f)](_0x1a8ba9(0x3b6));});return;case _0xada4ab(0x289):u(_0x38885d,await _0x198136(_0x4129bf,_0x1593b0),ue);return;case _0xada4ab(0x215):{let _0x723d61=await _0x21f6c8(_0x4129bf,{'sessionId':_0x38885d['sessionId'],'task':_0x1133dc,..._0x38885d[_0xada4ab(0x1f9)]!==void 0x0&&{'contextSummary':_0x38885d[_0xada4ab(0x1f9)]},..._0x38885d[_0xada4ab(0x2fc)]!==void 0x0&&{'recipient':_0x38885d[_0xada4ab(0x2fc)]}});u(_0x38885d,_0x723d61,_0x19e792=>{const _0x152de8=_0xada4ab;_0x19e792['assignedUser']?process[_0x152de8(0x1f4)][_0x152de8(0x22f)](_0x152de8(0x2d5)+_0x19e792[_0x152de8(0x2c1)]+_0x152de8(0x3ad)+_0x19e792[_0x152de8(0x328)][_0x152de8(0x3da)]+'\x20<'+_0x19e792['assignedUser'][_0x152de8(0x209)]+_0x152de8(0x23a)):process[_0x152de8(0x1f4)]['write']('Created\x20delegation\x20'+_0x19e792[_0x152de8(0x2c1)]+_0x152de8(0x3e8)+_0x19e792['deepLink']+'\x0a');});return;}case'claim':{let _0x165435=await _0x316125(_0x4129bf,_0x1593b0);u(_0x38885d,_0x165435,_0x490b94=>{const _0xe99a9a=_0xada4ab;ue(_0x490b94),process['stdout']['write']('Session\x20\x20\x20\x20\x20\x20\x20'+_0x490b94['sessionId']+'\x0a'),process[_0xe99a9a(0x2cc)]['write'](_0xe99a9a(0x340)+_0x490b94[_0xe99a9a(0x3e6)]+'\x20\x22<prompt>\x22\x0aAnswer\x20with:\x20delegate-cli\x20delegations\x20complete\x20'+_0x490b94[_0xe99a9a(0x2c1)]+_0xe99a9a(0x27f));});return;}case _0xada4ab(0x3c8):{let {alreadyCompleted:_0x4e55dc}=await _0x41a924(_0x4129bf,_0x1593b0,{'content':_0x1133dc});u(_0x38885d,{'delegationId':_0x1593b0,'alreadyCompleted':_0x4e55dc},_0x4b7c89=>{const _0xfa1753=_0xada4ab;process[_0xfa1753(0x1f4)][_0xfa1753(0x22f)]((_0x4b7c89[_0xfa1753(0x32c)]?_0xfa1753(0x1f8):'Answered')+'\x20delegation\x20'+_0x4b7c89[_0xfa1753(0x2c1)]+'.\x0a');});return;}case'accept':{let _0x2c0c79=await _0x5134ea(_0x4129bf,_0x1593b0);u(_0x38885d,{'delegationId':_0x1593b0,..._0x2c0c79},_0xc38aea=>{const _0x5a60fd=_0xada4ab;process[_0x5a60fd(0x1f4)][_0x5a60fd(0x22f)]((_0xc38aea['alreadyAccepted']?'Already\x20accepted':'Accepted')+_0x5a60fd(0x287)+_0xc38aea[_0x5a60fd(0x2c1)]+'.\x0a');});return;}default:{let _0x59319c={'dismiss':_0x415273,'cancel':_0x4c73a7,'delete':_0x25b131}[_0x361d0];await _0x59319c(_0x4129bf,_0x1593b0);let _0x4d0416={'dismiss':_0xada4ab(0x2e0),'cancel':_0xada4ab(0x2e2),'delete':_0xada4ab(0x29d)}[_0x361d0];u(_0x38885d,{'delegationId':_0x1593b0,[_0x4d0416]:!0x0},()=>{const _0x5f509a=_0xada4ab;process[_0x5f509a(0x1f4)][_0x5f509a(0x22f)](''+_0x4d0416[0x0][_0x5f509a(0x29c)]()+_0x4d0416[_0x5f509a(0x346)](0x1)+_0x5f509a(0x287)+_0x1593b0+'.\x0a');});}}}function yn(_0x2b4a30){const _0x103df0=_0x14e824;if(_0x2b4a30[_0x103df0(0x25a)]===0x0){process[_0x103df0(0x2cc)][_0x103df0(0x22f)]('No\x20delegations.\x0a');return;}process[_0x103df0(0x1f4)][_0x103df0(0x22f)]('ID'[_0x103df0(0x2f3)](0x24)+'\x20\x20'+_0x103df0(0x2e3)[_0x103df0(0x2f3)](0x9)+'\x20\x20'+'ASSIGNEE'[_0x103df0(0x2f3)](0x18)+'\x20\x20TASK\x0a');for(let _0xff1b8d of _0x2b4a30)process[_0x103df0(0x1f4)][_0x103df0(0x22f)](_0xff1b8d['id']['padEnd'](0x24)+'\x20\x20'+_0xff1b8d[_0x103df0(0x2a9)][_0x103df0(0x2f3)](0x9)+'\x20\x20'+(_0xff1b8d[_0x103df0(0x254)]??'-')['padEnd'](0x18)+'\x20\x20'+(_0xff1b8d[_0x103df0(0x3d2)]??'')+'\x0a');}function ue(_0x1982d8){const _0x391a57=_0x14e824;process['stdout'][_0x391a57(0x22f)]('From\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x1982d8[_0x391a57(0x279)]??'-')+'\x0a'),_0x1982d8[_0x391a57(0x3bf)]&&process[_0x391a57(0x1f4)][_0x391a57(0x22f)](_0x391a57(0x2a3)+_0x1982d8[_0x391a57(0x3bf)]+'\x0a'),process[_0x391a57(0x1f4)][_0x391a57(0x22f)](_0x391a57(0x376)+(_0x1982d8[_0x391a57(0x3d2)]??'-')+'\x0a'),_0x1982d8[_0x391a57(0x1f9)]&&process[_0x391a57(0x1f4)][_0x391a57(0x22f)]('\x0a'+_0x1982d8[_0x391a57(0x1f9)]+'\x0a\x0a');}async function wn(_0x5ef9c1){const _0x475c27=_0x14e824;_0x5ef9c1[_0x475c27(0x3e3)][_0x475c27(0x2ad)]()||(console[_0x475c27(0x3bc)](_0x475c27(0x273)),process['exit'](0x2));let {client:_0x3caf84}=await v(_0x5ef9c1),_0xf7a983;try{_0xf7a983=await _0x505e55(_0x3caf84,_0x5ef9c1[_0x475c27(0x3e3)]);}catch(_0x573475){if(!_0x2222cb(_0x573475))throw _0x573475;console[_0x475c27(0x3bc)](_0x573475[_0x475c27(0x354)]),process[_0x475c27(0x371)](0x1);}u(_0x5ef9c1,_0xf7a983,_0x1d0803=>{const _0x4a0c54=_0x475c27;_0x1d0803[_0x4a0c54(0x25a)]===0x0&&process['stderr'][_0x4a0c54(0x22f)](_0x4a0c54(0x21a)+_0x5ef9c1[_0x4a0c54(0x3e3)][_0x4a0c54(0x2ad)]()+_0x4a0c54(0x2d2));for(let _0x155007 of _0x1d0803)process[_0x4a0c54(0x1f4)][_0x4a0c54(0x22f)](_0x155007['email'][_0x4a0c54(0x2f3)](0x20)+'\x20\x20'+_0x155007[_0x4a0c54(0x3da)]+'\x0a');});}async function kn(_0x2736f6){const _0x3d6b46=_0x14e824;_0x2736f6[_0x3d6b46(0x26e)]===_0x3d6b46(0x2bd)&&(console[_0x3d6b46(0x3bc)](_0x3d6b46(0x3b0)),process[_0x3d6b46(0x371)](0x2));let _0x5860b7=M(_0x1fa7fa()),_0x3a3dbf=_0x2736f6['skipEnvCheck'];if(_0x2736f6[_0x3d6b46(0x26e)]){let _0x3f133d=_0x2736f6['env'];await _0x32c077({'env':_0x3f133d,'tenant':_0x2736f6['tenant']??G(_0x5860b7,_0x2e3c46[_0x3f133d]),'skipEnvCheck':_0x3a3dbf});return;}let _0x4976d2=_0x2736f6[_0x3d6b46(0x237)]??ve();if(_0x4976d2){await _0x32c077({'baseUrl':_0x4976d2,'tenant':_0x2736f6[_0x3d6b46(0x24d)]??G(_0x5860b7,_0x4976d2),'skipEnvCheck':_0x3a3dbf});return;}if(_0x5860b7?.[_0x3d6b46(0x295)]){await _0x32c077({'baseUrl':_0x5860b7[_0x3d6b46(0x295)],'tenant':_0x2736f6[_0x3d6b46(0x24d)]??_0x5860b7[_0x3d6b46(0x391)],'skipEnvCheck':_0x3a3dbf});return;}console[_0x3d6b46(0x3bc)](_0x3d6b46(0x30d)),process['exit'](0x2);}function G(_0x22814f,_0x40376c){const _0x3f15ed=_0x14e824;return _0x22814f?.['baseUrl']&&bn(_0x22814f[_0x3f15ed(0x295)],_0x40376c)?_0x22814f[_0x3f15ed(0x391)]:void 0x0;}function bn(_0x6a37fd,_0x2a36bb){const _0x2e79ed=_0x14e824;try{return new URL(_0x6a37fd)[_0x2e79ed(0x1fb)]===new URL(_0x2a36bb)[_0x2e79ed(0x1fb)];}catch{return!0x1;}}async function Sn(_0x9f20f2){const _0x276997=_0x14e824;Q()&&(console[_0x276997(0x3bc)](_0x276997(0x38d)),process[_0x276997(0x371)](0x2));let _0x1cfe0c=await _0x313f0d();if(_0x1cfe0c||(console['error'](vn()),process['exit'](0x2)),_0x9f20f2[_0x276997(0x2ad)]()){let _0x5be832=await _0x148ab5(_0x1cfe0c,_0x9f20f2);_0x15a046(_0x5be832)||(console[_0x276997(0x3bc)]('Tenant\x20not\x20switched:\x20could\x20not\x20write\x20'+_0x1fa7fa()+';\x20the\x20saved\x20login\x20still\x20uses\x20'+_0x1cfe0c['tenantName']+'.'),process[_0x276997(0x371)](0x1)),console[_0x276997(0x27a)](_0x276997(0x1fd)+_0x5be832[_0x276997(0x391)]+'\x20('+_0x5be832['tenantId']+_0x276997(0x3d8)+_0x1fa7fa());return;}An(await _0x281433(_0x1cfe0c),_0x1cfe0c);}function vn(){const _0x3ac9f3=_0x14e824;if(_0x29657e[_0x3ac9f3(0x3a7)](_0x1fa7fa()))return _0x3ac9f3(0x226);let _0x4b948c=K();return M(_0x4b948c)?_0x3ac9f3(0x2c3)+_0x4b948c+_0x3ac9f3(0x39d):'No\x20CLI\x20login\x20found.\x20Run\x20`delegate-cli\x20login\x20--env\x20<alpha|staging|production>`\x20first.';}function An(_0x54c94f,_0x15a284){const _0x14a3a9=_0x14e824;let _0x2b9c3a=_0x54c94f[_0x14a3a9(0x30e)](_0x1dd039=>_0x1dd039['id']===_0x15a284[_0x14a3a9(0x34e)]?'*\x20'+_0x1dd039[_0x14a3a9(0x2ae)]+_0x14a3a9(0x265):'\x20\x20'+_0x1dd039[_0x14a3a9(0x2ae)]);process[_0x14a3a9(0x1f4)][_0x14a3a9(0x22f)](_0x14a3a9(0x223)+(_0x15a284[_0x14a3a9(0x257)]??_0x15a284[_0x14a3a9(0x1fe)])+':\x0a'+_0x2b9c3a[_0x14a3a9(0x3a6)]('\x0a')+'\x0a'),_0x54c94f['length']>0x1&&process[_0x14a3a9(0x1f4)][_0x14a3a9(0x22f)]('Switch\x20with:\x20delegate-cli\x20tenant\x20<name>\x0a');}function $n(_0x246b95){const _0x38b067=_0x14e824;return _0x246b95?.[_0x38b067(0x31a)]?.[_0x38b067(0x2a9)]===0x191||/401/[_0x38b067(0x2ba)](String(_0x246b95?.[_0x38b067(0x354)]??''));}var f={'lastType':null,'quiet':!0x1},Ee=_0x49f679=>{const _0x4c6d84=_0x14e824;switch(_0x49f679[_0x4c6d84(0x315)]){case _0x4c6d84(0x36d):_0x49f679[_0x4c6d84(0x3e6)]&&_0x49f679[_0x4c6d84(0x3e6)]!==f['sessionId']&&(process['stderr']['write'](_0x4c6d84(0x2f1)+_0x49f679['sessionId']+_0x4c6d84(0x3aa)+_0x49f679[_0x4c6d84(0x3e6)]+')\x0a'),f['sessionId']=_0x49f679[_0x4c6d84(0x3e6)]);break;case _0x4c6d84(0x26c):_0x49f679[_0x4c6d84(0x31c)]&&_0x49f679['turnId']!==f[_0x4c6d84(0x31c)]&&(f[_0x4c6d84(0x26a)]!==null&&process[_0x4c6d84(0x2cc)][_0x4c6d84(0x22f)]('\x0a'),process[_0x4c6d84(0x2cc)][_0x4c6d84(0x22f)](_0x4c6d84(0x3bd)+_0x49f679[_0x4c6d84(0x31c)]+_0x4c6d84(0x208)+_0x49f679[_0x4c6d84(0x3e6)]+_0x4c6d84(0x245)+_0x49f679['turnId']+')\x0a'),f[_0x4c6d84(0x31c)]=_0x49f679[_0x4c6d84(0x31c)],f[_0x4c6d84(0x26a)]=_0x4c6d84(0x26c));break;case _0x4c6d84(0x253):_0x49f679[_0x4c6d84(0x34a)]&&!f[_0x4c6d84(0x2aa)]&&(f[_0x4c6d84(0x26a)]!==_0x4c6d84(0x253)&&process[_0x4c6d84(0x2cc)][_0x4c6d84(0x22f)]('\x0a🤔\x20'),process[_0x4c6d84(0x2cc)]['write'](_0x49f679[_0x4c6d84(0x34a)]),f['lastType']=_0x4c6d84(0x253));break;case _0x4c6d84(0x3c5):f[_0x4c6d84(0x26a)]!==null&&process[_0x4c6d84(0x2cc)]['write']('\x0a'),process['stderr'][_0x4c6d84(0x22f)](_0x4c6d84(0x310)+(_0x49f679[_0x4c6d84(0x23e)]??'tool')+'\x0a'),f[_0x4c6d84(0x26a)]=_0x4c6d84(0x3c5);break;case'message':_0x49f679['content']&&(f[_0x4c6d84(0x26a)]!==_0x4c6d84(0x354)&&f[_0x4c6d84(0x26a)]!==null&&process['stdout'][_0x4c6d84(0x22f)]('\x0a'),process['stdout'][_0x4c6d84(0x22f)](_0x49f679[_0x4c6d84(0x34a)]),f['lastType']='message');break;case _0x4c6d84(0x3bc):f[_0x4c6d84(0x26a)]!==null&&process[_0x4c6d84(0x2cc)][_0x4c6d84(0x22f)]('\x0a'),process[_0x4c6d84(0x2cc)]['write']('✗\x20'+(_0x49f679[_0x4c6d84(0x3bc)]??_0x4c6d84(0x3bc))+'\x0a'),f['lastType']=_0x4c6d84(0x3bc);break;case _0x4c6d84(0x349):(f[_0x4c6d84(0x26a)]===_0x4c6d84(0x354)||f[_0x4c6d84(0x26a)]===_0x4c6d84(0x253))&&process[_0x4c6d84(0x1f4)][_0x4c6d84(0x22f)]('\x0a'),process[_0x4c6d84(0x2cc)][_0x4c6d84(0x22f)]('✓\x20Done\x0a'),f[_0x4c6d84(0x26a)]='done';break;}};function pe(_0xd11d5,_0x59a3a8,_0x6e70e3,_0x3b5994){const _0xf60967=_0x14e824;let _0x59f5bc=_0xd11d5['model']||process.env.MODEL;return{'backendUrl':_0x6e70e3,'auth':_0x59a3a8,'enableComputerUse':!_0xd11d5['headless']&&!_0xd11d5[_0xf60967(0x269)],'autoSpawnInterop':!_0xd11d5[_0xf60967(0x3a0)],'enableConnections':!_0xd11d5[_0xf60967(0x342)],'enableSecurity':!_0xd11d5[_0xf60967(0x29e)],'keepInteropAlive':_0xd11d5['keepAlive'],..._0x3b5994[_0xf60967(0x32d)]?{'enableBackgroundCommands':!0x1}:{},..._0xd11d5[_0xf60967(0x268)]?{'enableMemory':!0x1}:{},..._0xd11d5[_0xf60967(0x3d5)]?{'enableTaskAutomation':!0x0}:{},..._0xd11d5[_0xf60967(0x2ce)][_0xf60967(0x25a)]>0x0?{'preloadSkills':_0xd11d5[_0xf60967(0x2ce)]}:{},..._0x59f5bc?{'model':_0x59f5bc}:{},..._0xd11d5[_0xf60967(0x240)]?{'projectId':_0xd11d5[_0xf60967(0x240)]}:{},..._0xd11d5[_0xf60967(0x3de)]?{'workingDirectory':_0xd11d5['workingDirectory']}:{},..._0xd11d5['bundledSkillsPath']?{'bundledSkillsPath':_0xd11d5['bundledSkillsPath']}:{},..._0xd11d5[_0xf60967(0x282)]?{'effort':_0xd11d5[_0xf60967(0x282)]}:{},..._0xd11d5[_0xf60967(0x3e6)]?{'sessionId':_0xd11d5[_0xf60967(0x3e6)]}:{},..._0xd11d5[_0xf60967(0x33e)]?{'verbose':!0x0}:{}};}async function En(_0x5e2491){const _0x336e7a=_0x14e824;let _0x25e2c7=_0x5e2491[_0x336e7a(0x33f)]!==_0x336e7a(0x24c),_0x217808=_0x5e2491[_0x336e7a(0x2e1)]===void 0x0?null:$e(_0x5e2491[_0x336e7a(0x2e1)],_0x336e7a(0x362)),_0x2f4750=!_0x25e2c7&&!_0x217808&&!_0x5e2491[_0x336e7a(0x2ca)]&&_0x5e2491[_0x336e7a(0x3e3)]!=='-'&&!!process[_0x336e7a(0x321)][_0x336e7a(0x359)]&&!!process['stdout'][_0x336e7a(0x359)],_0x1c6f22=_0x2f4750?_0x5e2491[_0x336e7a(0x3e3)][_0x336e7a(0x2ad)]():await j(_0x5e2491[_0x336e7a(0x3e3)],process[_0x336e7a(0x321)]);if(!_0x2f4750&&!_0x1c6f22&&(console['error']('Missing\x20prompt.\x20Pass\x20it\x20as\x20an\x20argument,\x20pipe\x20it\x20via\x20stdin,\x20or\x20run\x20`delegate-cli\x20--help`.'),process[_0x336e7a(0x371)](0x2)),!_0x25e2c7){await me(_0x5e2491,_0x1c6f22,_0x2f4750,null,_0x217808);return;}let _0x298ff2=!0x1,_0x1b06de=_0x5ca0fb=>{const _0x6b62f3=_0x336e7a;_0x298ff2=!0x0,P(_0x54b959(_0x5ca0fb)),(_0x5ca0fb[_0x6b62f3(0x20d)]||_0x5ca0fb[_0x6b62f3(0x3e4)])&&(process[_0x6b62f3(0x3d9)]=0x1);},_0x2d619f=Date[_0x336e7a(0x283)]();try{await me(_0x5e2491,_0x1c6f22,!0x1,_0x1b06de,_0x217808);}catch(_0x1f51b2){if(_0x298ff2)throw _0x1f51b2;process[_0x336e7a(0x2cc)][_0x336e7a(0x22f)]((_0x1f51b2 instanceof Error?_0x1f51b2[_0x336e7a(0x3a9)]??_0x1f51b2[_0x336e7a(0x354)]:String(_0x1f51b2))+'\x0a'),_0x1b06de(new _0x2e38fa(_0x2d619f)[_0x336e7a(0x3cc)]({'endedAtMs':Date[_0x336e7a(0x283)](),'usage':[],'error':_0x1f51b2}));}}async function me(_0x2137f8,_0x40d4e6,_0x1a6977,_0x216cdd,_0x18f494){const _0x41fc34=_0x14e824;f={'lastType':null,'quiet':_0x2137f8[_0x41fc34(0x2aa)]};let _0x26be78=new Set(),_0x2f4356,_0x2adaa7=_0x336e38=>{const _0x1c7f36=_0x41fc34;(!_0x216cdd||_0x336e38[_0x1c7f36(0x315)]==='session_start'||_0x336e38['type']===_0x1c7f36(0x26c))&&(_0x2f4356??Ee)(_0x336e38);for(let _0x374330 of _0x26be78)_0x374330(_0x336e38);},_0x42e52e=await q(),_0x52e0b7=new _0x4d65a1();_0x52e0b7[_0x41fc34(0x1fa)](_0x2adaa7);let _0x3e42e6=_0x1aa8c3(_0x2137f8[_0x41fc34(0x26e)],_0x42e52e,_0x2137f8['backendUrl']);z(_0x2137f8[_0x41fc34(0x26e)],_0x2137f8[_0x41fc34(0x3dc)],_0x3e42e6);let _0x5ae160={'input':null},_0x152d84=_0x1a6977?Z(()=>_0x5ae160[_0x41fc34(0x2c6)],_0xc9f7f4=>{process['stderr']['write'](_0xc9f7f4);}):null,_0x4d3189=_0x16b76d=>_0x152d84?{..._0x16b76d,'askUser':_0x152d84}:_0x16b76d,_0x170dee=_0x4d3189(pe(_0x2137f8,_0x42e52e,_0x3e42e6,{'oneTurn':!_0x1a6977})),_0x40157d=!0x1,_0x298e60=!0x1,_0x3fe57d,_0x2fbad7=()=>_0x3fe57d??=_0x52e0b7[_0x41fc34(0x3ce)](),_0x42db14=()=>{const _0x2898cc=_0x41fc34;_0x298e60&&process[_0x2898cc(0x371)](0x82),_0x298e60=!0x0,process[_0x2898cc(0x2cc)][_0x2898cc(0x22f)](_0x2898cc(0x36f)),_0x40157d&&_0x52e0b7[_0x2898cc(0x28b)]()[_0x2898cc(0x3df)](_0x3c9291=>console['error'](_0x3c9291))['then'](_0x2fbad7)[_0x2898cc(0x3ee)](()=>process[_0x2898cc(0x371)](0x82),_0x22eb51=>{const _0x850a80=_0x2898cc;console['error'](_0x22eb51),process[_0x850a80(0x371)](0x82);});};process['on'](_0x41fc34(0x329),_0x42db14);let _0x33c32c=_0x2137f8[_0x41fc34(0x2d1)],_0x107bc0=async _0x4bfaf5=>{const _0x3d59ee=_0x41fc34;let _0x43e316=_0x33c32c;_0x33c32c=[];let _0x5250f5=()=>_0x52e0b7[_0x3d59ee(0x203)](_0x4bfaf5,{'attachments':_0x43e316});try{return await _0x5250f5();}catch(_0x421cb6){if(_0x298e60||!$n(_0x421cb6)||!process['stdin'][_0x3d59ee(0x359)]||_0x2137f8[_0x3d59ee(0x26e)]===_0x3d59ee(0x2bd)||!(_0x2137f8[_0x3d59ee(0x26e)]||_0x42e52e[_0x3d59ee(0x295)]))throw _0x421cb6;process['stderr'][_0x3d59ee(0x22f)]('\x0a⚠️\x20\x20Auth\x20expired.\x20Opening\x20browser\x20to\x20re-login…\x0a');let _0x22e885=_0x52e0b7[_0x3d59ee(0x214)]()??_0x2137f8[_0x3d59ee(0x3e6)],_0xd9c40c=await _0x32c077(_0x2137f8[_0x3d59ee(0x26e)]?{'env':_0x2137f8[_0x3d59ee(0x26e)],'tenant':G(_0x42e52e,_0x2e3c46[_0x2137f8[_0x3d59ee(0x26e)]]),'skipEnvCheck':!0x0}:{'baseUrl':_0x42e52e[_0x3d59ee(0x295)],'tenant':_0x42e52e[_0x3d59ee(0x391)],'skipEnvCheck':!0x0}),_0x2aa7b9={'text':'','failed':!0x1,'sessionId':_0x22e885};return _0x298e60||(_0x40157d=!0x1,await _0x2fbad7(),_0x298e60)?_0x2aa7b9:(_0x52e0b7=new _0x4d65a1(),_0x3fe57d=void 0x0,_0x52e0b7['onEvent'](_0x2adaa7),_0x42e52e=_0xd9c40c,await _0x52e0b7[_0x3d59ee(0x2a0)]({..._0x4d3189(pe(_0x2137f8,_0x42e52e,_0x3e42e6,{'oneTurn':!_0x1a6977})),..._0x22e885?{'sessionId':_0x22e885}:{}}),_0x40157d=!0x0,_0x298e60?_0x2aa7b9:_0x5250f5());}};try{if(await _0x52e0b7['initialize'](_0x170dee),_0x40157d=!0x0,_0x298e60)return;if(_0x1a6977)await xn({'prompt':_0x40d4e6,'sendMessage':_0x107bc0,'onSigint':_0x42db14,'setAnswerInput':_0x2bb445=>{const _0x579926=_0x41fc34;_0x5ae160[_0x579926(0x2c6)]=_0x2bb445;},'registerEventPrinter':_0x140fbe=>(_0x2f4356=_0x140fbe,()=>{_0x2f4356=void 0x0;})});else{if(_0x216cdd||_0x18f494){let _0x5931e0=_0x2137f8['outputFormat']===_0x41fc34(0x239)?_0x171ecd=>P(_0x5bef3b(_0x171ecd)):()=>{},_0x466a0e=await _0x52ad88({'onEvent':_0x3cc3ab=>(_0x26be78[_0x41fc34(0x2a2)](_0x3cc3ab),()=>{const _0x4780f0=_0x41fc34;_0x26be78[_0x4780f0(0x2db)](_0x3cc3ab);}),'sendMessage':_0x4157fb=>_0x107bc0(_0x4157fb),'getSessionId':()=>_0x52e0b7[_0x41fc34(0x214)](),'getTurnUsageHistory':_0x4a4c13=>_0x52e0b7[_0x41fc34(0x3e9)](_0x4a4c13),'complete':_0x65a050=>_0x52e0b7['complete'](_0x65a050)},_0x40d4e6,void 0x0,_0x5931e0,_0x18f494?{'outputSchema':_0x18f494}:void 0x0);_0x216cdd?_0x216cdd(_0x466a0e):In(_0x466a0e);}else await _0x107bc0(_0x40d4e6);}}catch(_0x183b48){if(!_0x298e60)throw _0x183b48;}finally{try{await _0x2fbad7();}finally{process['off'](_0x41fc34(0x329),_0x42db14),_0x298e60&&(process[_0x41fc34(0x3d9)]=0x82);}}}function In(_0x5ad12b){const _0x16557a=_0x14e824;_0x5ad12b[_0x16557a(0x3e4)]?(console['error'](_0x16557a(0x29a)+_0x5ad12b[_0x16557a(0x3e4)][_0x16557a(0x354)]),process[_0x16557a(0x3d9)]=0x1):_0x5ad12b[_0x16557a(0x20d)]?(console[_0x16557a(0x3bc)](_0x16557a(0x30c)+_0x5ad12b[_0x16557a(0x3bc)]+').'),process[_0x16557a(0x3d9)]=0x1):process[_0x16557a(0x1f4)][_0x16557a(0x22f)](JSON[_0x16557a(0x377)](_0x5ad12b['structured'],null,0x2)+'\x0a');}function Tn(_0x399d84,_0x5c5eb4){const _0x2ac502=_0x14e824;let _0x56399d=process[_0x2ac502(0x1f4)][_0x2ac502(0x22f)][_0x2ac502(0x218)](process[_0x2ac502(0x1f4)]),_0x7a49c5=!0x1;return process[_0x2ac502(0x1f4)][_0x2ac502(0x22f)]=(..._0x267c48)=>{const _0x2f3b31=_0x2ac502;if(!_0x7a49c5)return _0x56399d(..._0x267c48);_0x1c20c2(_0x5c5eb4,0x0),_0x45b416(_0x5c5eb4,0x0);let _0x927f79=_0x56399d(..._0x267c48);return _0x399d84[_0x2f3b31(0x3e3)](!0x0),_0x927f79;},{'show':()=>{const _0xaef1b4=_0x2ac502;_0x7a49c5=!0x0,_0x399d84[_0xaef1b4(0x3e3)]();},'hide':()=>{_0x7a49c5=!0x1;},'erase':()=>{_0x7a49c5&&(_0x1c20c2(_0x5c5eb4,0x0),_0x45b416(_0x5c5eb4,0x0)),_0x7a49c5=!0x1;},'restore':()=>{const _0x4e36cc=_0x2ac502;_0x7a49c5=!0x1,process[_0x4e36cc(0x1f4)][_0x4e36cc(0x22f)]=_0x56399d;}};}function _0x1850(_0x14ded1,_0x37ca98){_0x14ded1=_0x14ded1-0x1f1;const _0x4c9a91=_0x4c9a();let _0x18500e=_0x4c9a91[_0x14ded1];return _0x18500e;}async function xn({prompt:_0x966f03,sendMessage:_0x4b946d,onSigint:_0x5a65ee,setAnswerInput:_0x2ccf28,registerEventPrinter:_0x19e9c2}){const _0x5bd8e8=_0x14e824;let _0x1fee11=_0x208252({'input':process['stdin'],'output':process[_0x5bd8e8(0x2cc)],'terminal':!0x0,'prompt':_0x5bd8e8(0x358)}),_0x3a653c=Tn(_0x1fee11,process['stderr']),_0x1782d8=[],_0xc2f79e,_0x11f95f,_0x1c247d,_0x5a3f59=!0x1,_0x3ee3e8=!0x1,_0x3d83ca=!0x1,_0x1dda05=Promise['resolve'](),_0x2630e2,_0x19e404=_0x19e9c2(_0x2693f5=>{const _0x32d9a8=_0x5bd8e8;_0x2693f5[_0x32d9a8(0x315)]===_0x32d9a8(0x36d)&&(_0x3a653c[_0x32d9a8(0x292)](),_0x1dda05=new Promise(_0x5ce53c=>{_0x2630e2=_0x5ce53c;})),Ee(_0x2693f5),_0x2693f5[_0x32d9a8(0x315)]==='done'&&(_0x2630e2?.(),_0x2630e2=void 0x0,!_0x3d83ca&&!_0x5a3f59&&_0x3a653c[_0x32d9a8(0x289)]());}),_0x42a458=()=>{const _0x1db658=_0x5bd8e8;_0x3ee3e8=!0x0,_0x2630e2?.(),_0x5a65ee(),_0x1fee11[_0x1db658(0x33c)]();};_0x1fee11['on'](_0x5bd8e8(0x2b0),_0x4a2f5c=>{const _0x108a5a=_0x5bd8e8;_0x1c247d?_0x1c247d(_0x4a2f5c):_0xc2f79e?_0xc2f79e['push'](_0x4a2f5c):_0x11f95f?_0x11f95f(_0x4a2f5c):_0x1782d8[_0x108a5a(0x365)](_0x4a2f5c);}),_0x1fee11[_0x5bd8e8(0x2b7)]('close',()=>{const _0x3072a4=_0x5bd8e8;_0x5a3f59=!0x0,_0x3a653c[_0x3072a4(0x307)](),_0xc2f79e&&!_0x3ee3e8&&_0x42a458(),_0x11f95f?.(null);});let _0x53452c=()=>_0x1782d8[_0x5bd8e8(0x25a)]>0x0?Promise[_0x5bd8e8(0x2f2)](_0x1782d8[_0x5bd8e8(0x351)]()):_0x5a3f59?Promise[_0x5bd8e8(0x2f2)](null):new Promise(_0x529cae=>{_0x11f95f=_0x2db82a=>{_0x11f95f=void 0x0,_0x529cae(_0x2db82a);};});_0x2ccf28({'readLine':(_0x3c7dd2,_0x282452)=>new Promise((_0x373d03,_0xc3606e)=>{const _0x469f63=_0x5bd8e8;if(_0x5a3f59&&!_0xc2f79e){_0x373d03(null);return;}_0xc2f79e??=[];let _0x2e82d4=_0xc2f79e[_0x469f63(0x351)]();if(_0x2e82d4!==void 0x0){_0x373d03(_0x2e82d4);return;}let _0x4693c6=()=>{const _0x1ac175=_0x469f63;_0x1c247d=void 0x0,_0x282452['removeEventListener'](_0x1ac175(0x2c8),_0x4f2f7c),_0x3a653c['hide'](),_0x1fee11[_0x1ac175(0x325)]('You>\x20');},_0x4f2f7c=()=>{const _0x5c1f2f=_0x469f63;_0x4693c6(),_0xc3606e(new Error(_0x5c1f2f(0x2a8)));};_0x282452[_0x469f63(0x35f)](_0x469f63(0x2c8),_0x4f2f7c,{'once':!0x0}),!_0x5a3f59&&(_0x1c247d=_0x2cee6e=>{_0x4693c6(),_0x373d03(_0x2cee6e);},_0x1fee11[_0x469f63(0x325)](_0x3c7dd2),_0x3a653c[_0x469f63(0x289)]());}),'endQuestions':()=>{const _0x2c0062=_0x5bd8e8;_0xc2f79e&&_0x1782d8[_0x2c0062(0x365)](..._0xc2f79e),_0xc2f79e=void 0x0;}}),_0x1fee11['on'](_0x5bd8e8(0x329),_0x42a458),process[_0x5bd8e8(0x2cc)]['write'](_0x5bd8e8(0x370));let _0x3419cf=async _0x1ebfcb=>{_0x3d83ca=!0x0;try{await _0x4b946d(_0x1ebfcb);}finally{_0x3d83ca=!0x1;}};try{if(_0x966f03&&await _0x3419cf(_0x966f03),_0x3ee3e8)return;!_0x5a3f59&&!_0x2630e2&&_0x3a653c['show']();for(let _0x5f47c3=await _0x53452c();_0x5f47c3!==null&&(_0x3a653c[_0x5bd8e8(0x307)](),!_0x3ee3e8);_0x5f47c3=await _0x53452c()){let _0x172847=_0x5f47c3[_0x5bd8e8(0x2ad)]();if(_0x172847===_0x5bd8e8(0x344))break;_0x172847&&await _0x3419cf(_0x172847),!_0x5a3f59&&!_0x2630e2&&_0x3a653c['show']();}for(;!_0x3ee3e8&&_0x2630e2;)await _0x1dda05;}finally{_0x2ccf28(null),_0x19e404(),_0x3a653c[_0x5bd8e8(0x3c9)](),_0x1fee11[_0x5bd8e8(0x389)](_0x5bd8e8(0x329),_0x42a458),_0x1fee11[_0x5bd8e8(0x33c)]();}}async function Dn(){const _0x5b3fd6=_0x14e824;let _0x4d4496=Rt(process[_0x5b3fd6(0x363)][_0x5b3fd6(0x346)](0x2));if(_0x4d4496[_0x5b3fd6(0x33f)]==='text'){await fe(_0x4d4496);return;}let _0x187b13=Pt();try{await fe(_0x4d4496);}finally{_0x187b13();}}async function fe(_0x254e1d){const _0x12ea37=_0x14e824;if(_0x254e1d[_0x12ea37(0x3a5)]){Ct();return;}if(_0x254e1d[_0x12ea37(0x3c6)]){console['log'](Lt());return;}if(_0x254e1d[_0x12ea37(0x2f9)]==='login'){await kn(_0x254e1d);return;}if(_0x254e1d['subcommand']===_0x12ea37(0x24d)){await Sn(_0x254e1d[_0x12ea37(0x3e3)]);return;}if(_0x254e1d[_0x12ea37(0x2f9)]===_0x12ea37(0x22a)){await Mt();return;}if(_0x254e1d[_0x12ea37(0x2f9)]==='whoami'){await Bt(_0x254e1d);return;}if(_0x254e1d[_0x12ea37(0x2f9)]==='models'){await Wt(_0x254e1d);return;}if(_0x254e1d[_0x12ea37(0x2f9)]===_0x12ea37(0x25c)){await Zt(_0x254e1d);return;}if(_0x254e1d['subcommand']==='sessions'){await Qt(_0x254e1d);return;}if(_0x254e1d[_0x12ea37(0x2f9)]===_0x12ea37(0x381)){await nn(_0x254e1d);return;}if(_0x254e1d[_0x12ea37(0x2f9)]==='evaluate'||_0x254e1d[_0x12ea37(0x2f9)]==='rerank'||_0x254e1d[_0x12ea37(0x2f9)]===_0x12ea37(0x2da)){await an(_0x254e1d,_0x254e1d['subcommand']);return;}if(_0x254e1d[_0x12ea37(0x2f9)]==='complete'){await cn(_0x254e1d);return;}if(_0x254e1d[_0x12ea37(0x2f9)]===_0x12ea37(0x20b)){await mn(_0x254e1d);return;}if(_0x254e1d[_0x12ea37(0x2f9)]===_0x12ea37(0x30f)){await gn(_0x254e1d);return;}if(_0x254e1d['subcommand']==='org-users'){await wn(_0x254e1d);return;}if(_0x254e1d[_0x12ea37(0x2f9)]===_0x12ea37(0x276)){await _0x212faf(_0x254e1d['prompt'],{'runnerUrl':_0x254e1d[_0x12ea37(0x318)],'backendUrl':_0x254e1d[_0x12ea37(0x3dc)],'interopPath':_0x254e1d[_0x12ea37(0x23c)],'workerId':_0x254e1d[_0x12ea37(0x399)]});return;}if(_0x254e1d['cleanup']){await Gt();return;}await En(_0x254e1d);}var Un=process.env.NODE_ENV===_0x14e824(0x2ba)||!!process.env.JEST_WORKER_ID;Un||Dn()[_0x14e824(0x3df)](_0x4fed15=>{const _0x37521d=_0x14e824;console[_0x37521d(0x3bc)](_0x4fed15[_0x37521d(0x3a9)]||_0x4fed15[_0x37521d(0x354)]||_0x4fed15),process['exit'](0x1);});export{_t as CARTOGRAPHER_SKILLS,re as EFFORT_TIERS,Ot as IMPLICIT_STDIN_IDLE_MS,pe as buildInitOptions,Dn as main,Rt as parseArgs,Lt as readCliVersion,j as resolvePrompt,Pt as routeStdoutToStderr,u as writeCommandResult};
2
+ const _0x2f269b=_0x5eab;(function(_0x12863e,_0x28f12e){const _0x26f8de=_0x5eab,_0x237042=_0x12863e();while(!![]){try{const _0x122d2d=parseInt(_0x26f8de(0x256))/0x1+-parseInt(_0x26f8de(0x31d))/0x2*(parseInt(_0x26f8de(0x25c))/0x3)+-parseInt(_0x26f8de(0x2aa))/0x4+parseInt(_0x26f8de(0x343))/0x5*(parseInt(_0x26f8de(0x163))/0x6)+-parseInt(_0x26f8de(0x21b))/0x7*(-parseInt(_0x26f8de(0x303))/0x8)+parseInt(_0x26f8de(0x2cc))/0x9*(-parseInt(_0x26f8de(0x2b1))/0xa)+-parseInt(_0x26f8de(0x1aa))/0xb;if(_0x122d2d===_0x28f12e)break;else _0x237042['push'](_0x237042['shift']());}catch(_0x1aa634){_0x237042['push'](_0x237042['shift']());}}}(_0x2c43,0x80899));const __dirname=import.meta.dirname;import _0x2bd3db from'fs';import _0xfec709 from'path';import{clearLine as _0x18fe21,createInterface as _0x2093b3,cursorTo as _0x1736f2}from'node:readline';import{isOnStepGrid as _0x274c70}from'@uipath/delegate-sdk';var _='userinput';function S(_0x59b0fc){const _0xe65a5b=_0x5eab;return _0x59b0fc[_0xe65a5b(0x167)](/\u001b\[[0-?]*[ -/]*[@-~]|\u001b\][^\u0007\u001b]*(\u0007|\u001b\\)?|\u001b./g,'')['replace'](/[\u0000-\u0008\u000b-\u001f\u007f-\u009f]/g,'');}function V(_0x45ce3e){const _0xc23790=_0x5eab;return S(_0x45ce3e[_0xc23790(0x1e0)]??(_0x45ce3e[_0xc23790(0x247)]===_?_0xc23790(0x265):_0x45ce3e['id']));}function Te(_0x170b1f,_0x2af4c7,_0x575acc){const _0x5b4e51=_0x5eab;let _0x190b49=[''+(_0x575acc>0x1?'['+_0x2af4c7+'/'+_0x575acc+']\x20':'')+S(_0x170b1f[_0x5b4e51(0x226)])+(_0x170b1f[_0x5b4e51(0x248)]?_0x5b4e51(0x293):''),S(_0x170b1f[_0x5b4e51(0x2c4)])];return _0x170b1f['type']===_0x5b4e51(0x321)&&_0x170b1f['options']['forEach']((_0xedfe77,_0x30432d)=>{const _0x388eb5=_0x5b4e51;let _0x3f62c5=_0xedfe77[_0x388eb5(0x247)]===_?_0x388eb5(0x2b9):'',_0x30818a=_0xedfe77[_0x388eb5(0x2db)]?_0x388eb5(0x1b2)+S(_0xedfe77[_0x388eb5(0x2db)]):'';_0x190b49['push']('\x20\x20'+(_0x30432d+0x1)+'.\x20'+V(_0xedfe77)+_0x3f62c5+_0x30818a);}),_0x190b49[_0x5b4e51(0x1e2)]('\x0a');}function X(_0xadaf43,_0x3a3d01){const _0x3b40ba=_0x5eab;let _0x150481=_0xadaf43[_0x3b40ba(0x170)](/[\s,]+/)[_0x3b40ba(0x302)](Boolean);if(_0x150481[_0x3b40ba(0x2e4)]===0x0)return null;let _0x532f6e=_0x150481['map'](_0x3efa6b=>/^\d+$/[_0x3b40ba(0x340)](_0x3efa6b)?Number(_0x3efa6b):NaN);return _0x532f6e[_0x3b40ba(0x349)](_0x44da62=>!Number[_0x3b40ba(0x314)](_0x44da62)||_0x44da62<0x1||_0x44da62>_0x3a3d01)?null:[...new Set(_0x532f6e)]['map'](_0x2e8d8b=>_0x2e8d8b-0x1);}function xe(_0x5aa777){const _0xf81589=_0x5eab;return typeof _0x5aa777==_0xf81589(0x23c)&&_0x5aa777!==null&&_0xf81589(0x28b)in _0x5aa777;}async function R(_0x3c2d1e,_0x5a2623,_0x4e8ad4,_0x3dd303){const _0x5a8c48=_0x5eab;for(;;){let _0x467149=(await _0x3c2d1e(_0x5a2623))[_0x5a8c48(0x347)]();if(_0x467149==='')return;let _0x230925=_0x3dd303(_0x467149);if(!xe(_0x230925))return _0x230925;_0x4e8ad4(_0x230925['refused']+'\x0a');}}async function De(_0x7013d3,_0x33a81b,_0x553628){const _0x28331b=_0x5eab;if(_0x7013d3['options']['length']===0x0||_0x7013d3['options'][_0x28331b(0x19c)](_0xe22124=>_0xe22124[_0x28331b(0x247)]===_)){let _0x20fc7a=(await _0x33a81b('Your\x20answer\x20(Enter\x20to\x20skip):\x20'))[_0x28331b(0x347)]();return _0x20fc7a===''?void 0x0:{'text':_0x20fc7a};}let _0xafecf1=_0x7013d3[_0x28331b(0x1d3)]['findIndex'](_0x206638=>_0x206638[_0x28331b(0x247)]===_),_0x3a556b=_0x7013d3[_0x28331b(0x1fd)]?_0x28331b(0x22a):_0x28331b(0x1d9)+(_0xafecf1>=0x0?_0x28331b(0x27c):'')+'\x20(Enter\x20to\x20skip):\x20',_0x1e9fdd=await R(_0x33a81b,_0x3a556b,_0x553628,_0x22123f=>{const _0x4372a0=_0x28331b;let _0xeb43d0=X(_0x22123f,_0x7013d3[_0x4372a0(0x1d3)]['length']);return _0xeb43d0&&(_0x7013d3[_0x4372a0(0x1fd)]||_0xeb43d0['length']===0x1)?_0xeb43d0:!_0x7013d3['multiSelect']&&_0xafecf1>=0x0?{'typed':_0x22123f}:{'refused':_0x7013d3['multiSelect']?_0x4372a0(0x311)+_0x7013d3[_0x4372a0(0x1d3)][_0x4372a0(0x2e4)]+'.':_0x4372a0(0x2a7)+_0x7013d3[_0x4372a0(0x1d3)]['length']+'.'};});if(_0x1e9fdd===void 0x0)return;if(!Array[_0x28331b(0x17b)](_0x1e9fdd))return{'text':_0x1e9fdd[_0x28331b(0x1d5)]};let _0x400c87=_0x1e9fdd[_0x28331b(0x1c5)](_0x50749f=>_0x7013d3[_0x28331b(0x1d3)][_0x50749f]['id']),_0x2647b5=_0x400c87[_0x28331b(0x304)](_)?await R(_0x33a81b,V(_0x7013d3['options'][_0xafecf1])+':\x20',_0x553628,_0x1d9bff=>_0x1d9bff):void 0x0;if(!(_0x400c87['includes'](_)&&_0x2647b5===void 0x0))return _0x7013d3[_0x28331b(0x1fd)]?{'optionIds':_0x400c87,..._0x2647b5!==void 0x0?{'text':_0x2647b5}:{}}:_0x2647b5!==void 0x0?{'text':_0x2647b5}:{'optionId':_0x400c87[0x0]};}async function Ue(_0x4f79bc,_0x3a84ab,_0x5b361e){const _0x4594c9=_0x5eab;let _0x1e2fbe={};for(let _0xf2ca77 of _0x4f79bc[_0x4594c9(0x2bc)]){let _0x2558d1=_0xf2ca77['default']??_0xf2ca77['min'],_0x2c3976=_0xf2ca77[_0x4594c9(0x338)]??0x1,_0x20f785=_0xf2ca77[_0x4594c9(0x30c)]?'\x20'+S(_0xf2ca77[_0x4594c9(0x30c)]):'',_0xd11cb=_0x4594c9(0x255)+_0xf2ca77[_0x4594c9(0x2dc)]+_0x4594c9(0x2d0)+_0xf2ca77[_0x4594c9(0x239)]+(_0x2c3976!==0x1?'\x20in\x20steps\x20of\x20'+_0x2c3976:''),_0x489e52=await R(_0x3a84ab,S(_0xf2ca77['label'])+'\x20['+_0xf2ca77[_0x4594c9(0x2dc)]+'-'+_0xf2ca77['max']+_0x20f785+']\x20(Enter\x20for\x20'+_0x2558d1+_0x4594c9(0x300),_0x5b361e,_0x5e396e=>{const _0x5a9b32=_0x4594c9;let _0x3b2bfd=Number(_0x5e396e);return Number[_0x5a9b32(0x296)](_0x3b2bfd)&&_0x3b2bfd>=_0xf2ca77[_0x5a9b32(0x2dc)]&&_0x3b2bfd<=_0xf2ca77['max']&&_0x274c70(_0x3b2bfd,_0xf2ca77[_0x5a9b32(0x2dc)],_0x2c3976)?_0x3b2bfd:{'refused':_0x5a9b32(0x168)+_0xd11cb+'.'};});_0x1e2fbe[_0xf2ca77['id']]=_0x489e52??_0x2558d1;}return{'values':_0x1e2fbe};}async function Ne(_0xd2b95e,_0x105505,_0x2ae3cf){const _0xf171d1=_0x5eab;_0x2ae3cf(_0xd2b95e['buckets'][_0xf171d1(0x1c5)]((_0x5e627e,_0x4ca2e4)=>'\x20\x20'+(_0x4ca2e4+0x1)+'.\x20'+S(_0x5e627e[_0xf171d1(0x1e0)]))[_0xf171d1(0x1e2)]('\x0a')+'\x0a');let _0x1e7c37={};for(let _0x44c0f3 of _0xd2b95e[_0xf171d1(0x29a)]){let _0x100629=await R(_0x105505,S(_0x44c0f3['label'])+_0xf171d1(0x225),_0x2ae3cf,_0x3e868d=>{const _0x10e090=_0xf171d1;let _0x19ac0e=X(_0x3e868d,_0xd2b95e[_0x10e090(0x2a2)][_0x10e090(0x2e4)]);return _0x19ac0e&&_0x19ac0e[_0x10e090(0x2e4)]===0x1?_0x19ac0e[0x0]:{'refused':_0x10e090(0x2a7)+_0xd2b95e['buckets']['length']+'.'};});if(_0x100629===void 0x0)continue;let _0x3cd302=_0xd2b95e[_0xf171d1(0x2a2)][_0x100629],_0x1feea7={};for(let _0x575b27 of _0x3cd302[_0xf171d1(0x305)]??[]){let _0x352cfd='\x20\x20'+S(_0x575b27['label'])+(_0x575b27['optional']?_0xf171d1(0x293):'')+':\x20',_0x2f9fb3=await R(_0x105505,_0x352cfd,_0x2ae3cf,_0x297f03=>_0x297f03);for(;_0x2f9fb3===void 0x0&&!_0x575b27['optional'];)_0x2ae3cf(S(_0x575b27[_0xf171d1(0x1e0)])+'\x20is\x20required.\x0a'),_0x2f9fb3=await R(_0x105505,_0x352cfd,_0x2ae3cf,_0xb79756=>_0xb79756);_0x2f9fb3!==void 0x0&&(_0x1feea7[_0x575b27['id']]=_0x2f9fb3);}_0x1e7c37[_0x44c0f3['id']]={'bucket':_0x3cd302['id'],...Object[_0xf171d1(0x341)](_0x1feea7)[_0xf171d1(0x2e4)]>0x0?{'subFields':_0x1feea7}:{}};}return Object[_0xf171d1(0x341)](_0x1e7c37)[_0xf171d1(0x2e4)]>0x0?{'assignments':_0x1e7c37}:void 0x0;}async function _e(_0x4a8a38,_0x29348c,_0x4521b1){const _0x5e05da=_0x5eab;if(_0x4a8a38['type']===_0x5e05da(0x321))return De(_0x4a8a38,_0x29348c,_0x4521b1);if(_0x4a8a38[_0x5e05da(0x237)]===_0x5e05da(0x31e))return Ue(_0x4a8a38,_0x29348c,_0x4521b1);if(_0x4a8a38[_0x5e05da(0x237)]==='bucket')return Ne(_0x4a8a38,_0x29348c,_0x4521b1);let _0x5b3827=(await _0x29348c(_0x5e05da(0x25d)))[_0x5e05da(0x347)]();return _0x5b3827===''?void 0x0:{'text':_0x5b3827};}function Z(_0x386004,_0x480817){return async _0x5d9d38=>{const _0x5d8ddd=_0x5eab;let _0x375057=_0x386004();if(!_0x375057)throw new Error(_0x5d8ddd(0x295));let _0x3cb55b=async _0xcb5333=>{const _0xf704c4=_0x5d8ddd;if(_0x5d9d38['signal'][_0xf704c4(0x196)])throw new Error(_0xf704c4(0x2a1));let _0x3eaa1b=await _0x375057[_0xf704c4(0x2a6)](_0xcb5333,_0x5d9d38['signal']);if(_0x3eaa1b===null)throw new Error('Input\x20closed\x20before\x20the\x20question\x20was\x20answered.');return _0x3eaa1b;};try{_0x480817('\x0a'+(_0x5d9d38[_0x5d8ddd(0x22d)]?S(_0x5d9d38[_0x5d8ddd(0x22d)])+'\x0a':''));let _0x596f3d={};for(let [_0x148f82,_0x39d9f9]of _0x5d9d38[_0x5d8ddd(0x320)][_0x5d8ddd(0x33b)]()){_0x480817('\x0a'+Te(_0x39d9f9,_0x148f82+0x1,_0x5d9d38['questions']['length'])+'\x0a');let _0x26b64d=await _e(_0x39d9f9,_0x3cb55b,_0x480817);_0x26b64d!==void 0x0&&(_0x596f3d[_0x39d9f9['id']]=_0x26b64d);}return{'answers':_0x596f3d};}finally{_0x375057[_0x5d8ddd(0x208)]();}};}import{BUSINESS_ANALYSIS_PRELOADED_SKILLS as _0x40be21,DelegateAgent as _0x50f786,cancelTurn as _0x5bec88,InteropProcess as _0x3727b2,complete as _0x48faa3,DEFAULT_MODEL as _0x3b4d2c,createBackendClient as _0x51a366,evaluate as _0x19bc66,isCompletionRequestError as _0x3f49a3,isEvaluationRequestError as _0x3e60d6,isTranscriptionError as _0x1a6e32,rerank as _0x55cce7,transcribe as _0x6a270b,verify as _0x34866c,acceptDelegation as _0x2d4074,cancelDelegation as _0x5df49f,claimDelegation as _0x42d369,completeDelegation as _0x4ddfbb,createDelegation as _0x458734,deleteDelegation as _0x49dc1f,dismissDelegation as _0x1d5b2e,getSessionDelegations as _0x4fa16e,isDelegationError as _0x146ea8,listDelegations as _0x35f7e1,listOrgUsers as _0x3f94da,previewDelegation as _0x63dce7,TurnResultCollector as _0x34e184,agentEventToJsonLine as _0x240f60,describeBaseUrlRejection as _0x537b3f,getActivitySummary as _0x30eb7b,getAuthFilePath as _0x3358b3,getByoWarnings as _0x53f457,getCartographerAllowance as _0x541a08,getDailyBreakdown as _0x1edcbf,getLicensingSummary as _0x498069,getMonthlySpending as _0x2923c8,isOutputFormat as _0x59ca84,isCloudBaseUrl as _0xefa20b,isSafeProjectFolderSegment as _0x2dbfbd,listModels as _0x9c128d,listSessions as _0x34c66b,getSession as _0xfbf969,renameSession as _0x5d2ffc,deleteSession as _0x290244,deleteSessionTaskLog as _0x31ee8d,forkSession as _0x4a8acb,isBackendRequestError as _0x464900,MAX_SESSION_PAGE_SIZE as _0x2850ba,listTenants as _0x5cb0d8,loadAndRefreshAuth as _0x454b4d,loadAndRefreshSdkLogin as _0x5d655b,parsePlatformBaseUrl as _0x1c86e3,resolveBackendUrl as _0x25429e,runHealthCheck as _0x59b3a9,runHostCommand as _0x5ec971,runLoginFlow as _0x34c847,runTurnForResult as _0x4ec7ce,saveAuthData as _0xbaa481,switchTenant as _0x67d043,toJsonLine as _0xee577d,ENV_TO_CLOUD as _0x571927,OUTPUT_FORMATS as _0x392e09}from'@uipath/delegate-sdk';var Nt=[_0x2f269b(0x16d),'tenant',_0x2f269b(0x20f),_0x2f269b(0x1af),_0x2f269b(0x1e9),_0x2f269b(0x1bc),_0x2f269b(0x2bd),'sessions',_0x2f269b(0x262),_0x2f269b(0x334),_0x2f269b(0x1c2),_0x2f269b(0x193),_0x2f269b(0x17c),_0x2f269b(0x313),_0x2f269b(0x190),_0x2f269b(0x171)],se=['',_0x2f269b(0x20f),_0x2f269b(0x1bc),'check',_0x2f269b(0x2d5),_0x2f269b(0x262),_0x2f269b(0x334),_0x2f269b(0x1c2),_0x2f269b(0x193),_0x2f269b(0x17c),'transcribe',_0x2f269b(0x190),_0x2f269b(0x171)],re=[_0x2f269b(0x2b6),_0x2f269b(0x2e1),_0x2f269b(0x2af),_0x2f269b(0x2a8),_0x2f269b(0x239)],_t=_0x40be21;function w(_0xea9945,_0x550edd,_0x14e11f,_0xca0640){const _0x44c42c=_0x2f269b;let _0xf36619=_0xea9945[_0x550edd];return(!_0xf36619||_0xf36619[_0x44c42c(0x2e4)]>0x1&&_0xf36619[_0x44c42c(0x288)]('-'))&&(console[_0x44c42c(0x32a)](_0x14e11f+_0x44c42c(0x207)+_0xca0640+'.'),process[_0x44c42c(0x192)](0x2)),_0xf36619;}function J(_0x4d2177,_0x2a0064,_0x58b274,_0x3fcdc6){const _0x5c393d=_0x2f269b;let _0x2663fd=w(_0x4d2177,_0x2a0064,_0x58b274,_0x5c393d(0x318)),_0x41a406=Number(_0x2663fd);return(!/^\d+$/[_0x5c393d(0x340)](_0x2663fd)||_0x41a406<0x1||!Number[_0x5c393d(0x24a)](_0x41a406)||_0x3fcdc6!==void 0x0&&_0x41a406>_0x3fcdc6)&&(console['error'](_0x58b274+_0x5c393d(0x1db)+(_0x3fcdc6===void 0x0?_0x5c393d(0x21e):'from\x201\x20to\x20'+_0x3fcdc6)+',\x20got\x20'+_0x2663fd+'.'),process[_0x5c393d(0x192)](0x2)),_0x41a406;}function Rt(_0x12f101){const _0x261ad0=_0x2f269b;let _0x4e1e59={'subcommand':'','prompt':'','print':!0x1,'keepAlive':!0x1,'cleanup':!0x1,'headless':!0x1,'noComputerUse':!0x1,'cartographer':!0x1,'noConnections':!0x1,'noSecurity':!0x1,'noMemory':!0x1,'taskAutomation':!0x1,'quiet':!0x1,'verbose':!0x1,'outputFormat':'text','preloadSkills':[],'attachments':[],'skipEnvCheck':!0x1,'includeSubAgents':!0x1,'operands':[],'help':!0x1,'version':!0x1};Nt[_0x261ad0(0x304)](_0x12f101[0x0])&&(_0x4e1e59[_0x261ad0(0x1e4)]=_0x12f101[0x0],_0x12f101=_0x12f101[_0x261ad0(0x18d)](0x1));let _0x1611ff=[];for(let _0x5d4c29=0x0;_0x5d4c29<_0x12f101['length'];_0x5d4c29++){let _0xd31261=_0x12f101[_0x5d4c29];switch(_0xd31261){case _0x261ad0(0x240):case'-p':_0x4e1e59[_0x261ad0(0x16b)]=!0x0;break;case'--keep-alive':_0x4e1e59[_0x261ad0(0x1f0)]=!0x0;break;case _0x261ad0(0x1f4):_0x4e1e59['cleanup']=!0x0;break;case _0x261ad0(0x26d):_0x4e1e59['headless']=!0x0;break;case _0x261ad0(0x222):_0x4e1e59[_0x261ad0(0x33f)]=!0x0;break;case _0x261ad0(0x2d4):_0x4e1e59[_0x261ad0(0x1a5)]=!0x0,_0x4e1e59[_0x261ad0(0x33f)]=!0x0,_0x4e1e59[_0x261ad0(0x189)][_0x261ad0(0x2fd)](..._t);break;case _0x261ad0(0x229):_0x4e1e59[_0x261ad0(0x27e)]=!0x0;break;case'--no-security':_0x4e1e59['noSecurity']=!0x0;break;case _0x261ad0(0x1fc):_0x4e1e59[_0x261ad0(0x2f9)]=!0x0;break;case'--task-automation':_0x4e1e59['taskAutomation']=!0x0;break;case _0x261ad0(0x2da):case'-q':_0x4e1e59[_0x261ad0(0x1bb)]=!0x0;break;case _0x261ad0(0x348):_0x4e1e59[_0x261ad0(0x306)]=!0x0;break;case _0x261ad0(0x2c3):_0x4e1e59[_0x261ad0(0x20d)]=_0x12f101[++_0x5d4c29];break;case'--model':_0x4e1e59[_0x261ad0(0x1cb)]=_0x12f101[++_0x5d4c29];break;case _0x261ad0(0x34f):_0x4e1e59[_0x261ad0(0x2e6)]=_0x12f101[++_0x5d4c29];break;case _0x261ad0(0x1de):_0x4e1e59['interopPath']=_0x12f101[++_0x5d4c29];break;case _0x261ad0(0x2ed):_0x4e1e59[_0x261ad0(0x1f2)]=_0x12f101[++_0x5d4c29];break;case _0x261ad0(0x2b8):_0x4e1e59[_0x261ad0(0x189)][_0x261ad0(0x2fd)](w(_0x12f101,++_0x5d4c29,_0xd31261,_0x261ad0(0x253)));break;case _0x261ad0(0x23a):{let _0xe7dad=w(_0x12f101,++_0x5d4c29,_0xd31261,_0x261ad0(0x205));_0x2dbfbd(_0xe7dad)||(console[_0x261ad0(0x32a)](_0x261ad0(0x1c3)+_0xe7dad+_0x261ad0(0x162)),process['exit'](0x2)),_0x4e1e59[_0x261ad0(0x18c)]=_0xe7dad;break;}case _0x261ad0(0x1c6):{let _0x582578=w(_0x12f101,++_0x5d4c29,_0xd31261,_0x261ad0(0x26a)+_0x392e09[_0x261ad0(0x1e2)](_0x261ad0(0x2d8))+')');_0x59ca84(_0x582578)||(console[_0x261ad0(0x32a)](_0x261ad0(0x17e)+_0x582578+_0x261ad0(0x1ec)+_0x392e09['join'](_0x261ad0(0x2d8))+'.'),process[_0x261ad0(0x192)](0x2)),_0x4e1e59[_0x261ad0(0x1ef)]=_0x582578;break;}case _0x261ad0(0x307):_0x4e1e59[_0x261ad0(0x1a0)]=w(_0x12f101,++_0x5d4c29,_0xd31261,'a\x20session\x20id');break;case'--page':_0x4e1e59[_0x261ad0(0x23e)]=J(_0x12f101,++_0x5d4c29,_0xd31261);break;case _0x261ad0(0x203):_0x4e1e59[_0x261ad0(0x272)]=J(_0x12f101,++_0x5d4c29,_0xd31261,_0x2850ba);break;case _0x261ad0(0x2bf):_0x4e1e59[_0x261ad0(0x2f3)]=!0x0;break;case _0x261ad0(0x1d6):_0x4e1e59['jsonSchemaPath']=w(_0x12f101,++_0x5d4c29,_0xd31261,_0x261ad0(0x186));break;case _0x261ad0(0x2ec):{let _0x292b77=_0xfec709[_0x261ad0(0x25a)](process[_0x261ad0(0x2a5)](),w(_0x12f101,++_0x5d4c29,_0xd31261,_0x261ad0(0x2f8)));_0x2bd3db[_0x261ad0(0x1a4)](_0x292b77)||(console[_0x261ad0(0x32a)]('--attach:\x20no\x20such\x20file\x20or\x20folder:\x20'+_0x292b77),process[_0x261ad0(0x192)](0x2)),_0x4e1e59[_0x261ad0(0x2d2)]['push'](_0x292b77);break;}case _0x261ad0(0x294):_0x4e1e59[_0x261ad0(0x1b3)]=w(_0x12f101,++_0x5d4c29,_0xd31261,_0x261ad0(0x1e7));break;case _0x261ad0(0x2a4):_0x4e1e59[_0x261ad0(0x188)]=w(_0x12f101,++_0x5d4c29,_0xd31261,'an\x20email\x20address\x20or\x20name');break;case _0x261ad0(0x319):_0x4e1e59['contextSummary']=w(_0x12f101,++_0x5d4c29,_0xd31261,_0x261ad0(0x2ad));break;case'--days':_0x4e1e59[_0x261ad0(0x315)]=J(_0x12f101,++_0x5d4c29,_0xd31261,0x16d);break;case'--working-dir':_0x4e1e59[_0x261ad0(0x258)]=_0xfec709[_0x261ad0(0x25a)](process[_0x261ad0(0x2a5)](),w(_0x12f101,++_0x5d4c29,_0xd31261,_0x261ad0(0x2ae)));break;case _0x261ad0(0x232):_0x4e1e59['bundledSkillsPath']=_0xfec709[_0x261ad0(0x25a)](process[_0x261ad0(0x2a5)](),w(_0x12f101,++_0x5d4c29,_0xd31261,'a\x20directory\x20path'));break;case _0x261ad0(0x1c0):{let _0x168f90=w(_0x12f101,++_0x5d4c29,_0xd31261,_0x261ad0(0x177));re['includes'](_0x168f90)||(console[_0x261ad0(0x32a)](_0x261ad0(0x2ac)+_0x168f90+_0x261ad0(0x1ec)+re[_0x261ad0(0x1e2)](_0x261ad0(0x2d8))+'.'),process['exit'](0x2)),_0x4e1e59[_0x261ad0(0x34d)]=_0x168f90;break;}case _0x261ad0(0x22c):{let _0x1e4d74=_0x12f101[++_0x5d4c29];(!_0x1e4d74||_0x1e4d74[_0x261ad0(0x288)]('--'))&&(console[_0x261ad0(0x32a)](_0x261ad0(0x25b)),process[_0x261ad0(0x192)](0x2)),_0x4e1e59['tenant']=_0x1e4d74;break;}case _0x261ad0(0x268):{let _0x2db341=_0x12f101[++_0x5d4c29];[_0x261ad0(0x1d7),_0x261ad0(0x260),'production',_0x261ad0(0x16e)][_0x261ad0(0x304)](_0x2db341)||(console[_0x261ad0(0x32a)](_0x261ad0(0x2a3)+_0x2db341+_0x261ad0(0x238)),process[_0x261ad0(0x192)](0x2)),_0x4e1e59['env']=_0x2db341;break;}case _0x261ad0(0x219):case _0x261ad0(0x21a):{let _0x51d607=w(_0x12f101,++_0x5d4c29,_0xd31261,_0x261ad0(0x1dc)),_0x39196d=_0x1c86e3(_0x51d607);if(_0x39196d['ok']===!0x1){console[_0x261ad0(0x32a)](_0x537b3f(_0x51d607,_0x39196d[_0x261ad0(0x254)])),process[_0x261ad0(0x192)](0x2);break;}_0x4e1e59[_0x261ad0(0x15f)]=_0x39196d[_0x261ad0(0x20a)];break;}case _0x261ad0(0x353):_0x4e1e59[_0x261ad0(0x27b)]=!0x0;break;case'-h':case _0x261ad0(0x1dd):_0x4e1e59[_0x261ad0(0x1d4)]=!0x0;break;case'-v':case'--version':_0x4e1e59['version']=!0x0;break;default:_0xd31261[_0x261ad0(0x288)]('--')&&(console[_0x261ad0(0x32a)](_0x261ad0(0x2cf)+_0xd31261),process[_0x261ad0(0x192)](0x2)),_0x1611ff['push'](_0xd31261);}}return _0x4e1e59[_0x261ad0(0x323)]!==void 0x0&&_0x4e1e59[_0x261ad0(0x1e4)]!=='login'&&(console['error'](_0x261ad0(0x195)),process[_0x261ad0(0x192)](0x2)),_0x4e1e59[_0x261ad0(0x15f)]!==void 0x0&&_0x4e1e59[_0x261ad0(0x2f4)]!==void 0x0&&(console['error'](_0x261ad0(0x241)),process['exit'](0x2)),_0x4e1e59[_0x261ad0(0x15f)]!==void 0x0&&_0x4e1e59['subcommand']!==_0x261ad0(0x16d)&&(console[_0x261ad0(0x32a)](_0x261ad0(0x17d)),process[_0x261ad0(0x192)](0x2)),_0x4e1e59[_0x261ad0(0x315)]!==void 0x0&&_0x4e1e59[_0x261ad0(0x1e4)]!=='usage'&&(console['error'](_0x261ad0(0x29d)),process[_0x261ad0(0x192)](0x2)),_0x4e1e59[_0x261ad0(0x20c)]!==void 0x0&&(_0x4e1e59[_0x261ad0(0x1e4)]!=='complete'&&_0x4e1e59['subcommand']!==''||_0x4e1e59[_0x261ad0(0x316)])&&(console['error'](_0x261ad0(0x286)),process[_0x261ad0(0x192)](0x2)),_0x4e1e59[_0x261ad0(0x2d2)][_0x261ad0(0x2e4)]>0x0&&(_0x4e1e59['subcommand']!==''||_0x4e1e59[_0x261ad0(0x316)])&&(console[_0x261ad0(0x32a)]('--attach\x20applies\x20to\x20prompts\x20only.'),process[_0x261ad0(0x192)](0x2)),_0x4e1e59[_0x261ad0(0x176)]&&(_0x4e1e59[_0x261ad0(0x1e4)]!==''||_0x4e1e59[_0x261ad0(0x316)])&&(console[_0x261ad0(0x32a)](_0x261ad0(0x34e)),process['exit'](0x2)),_0x4e1e59['taskAutomation']&&(_0x4e1e59[_0x261ad0(0x29f)]||_0x4e1e59['noComputerUse'])&&(console['error']('--task-automation\x20needs\x20computer\x20use:\x20the\x20task\x20log\x20is\x20written\x20by\x20the\x20UI-automation\x20tools.\x20Drop\x20--headless,\x20--no-computer-use\x20and\x20--cartographer.'),process[_0x261ad0(0x192)](0x2)),_0x4e1e59[_0x261ad0(0x27b)]&&_0x4e1e59['subcommand']!==_0x261ad0(0x16d)&&(console[_0x261ad0(0x32a)](_0x261ad0(0x1ba)),process['exit'](0x2)),_0x4e1e59[_0x261ad0(0x1ef)]!==_0x261ad0(0x321)&&!se[_0x261ad0(0x304)](_0x4e1e59[_0x261ad0(0x1e4)])&&(console[_0x261ad0(0x32a)]('--output-format\x20'+_0x4e1e59['outputFormat']+_0x261ad0(0x224)+se[_0x261ad0(0x302)](Boolean)[_0x261ad0(0x1e2)](',\x20')+'.'),process[_0x261ad0(0x192)](0x2)),(_0x4e1e59[_0x261ad0(0x23e)]!==void 0x0||_0x4e1e59[_0x261ad0(0x272)]!==void 0x0||_0x4e1e59['includeSubAgents'])&&_0x4e1e59['subcommand']!==_0x261ad0(0x2d5)&&(console[_0x261ad0(0x32a)]('--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`delegate-cli\x20sessions`\x20only.'),process[_0x261ad0(0x192)](0x2)),(_0x4e1e59[_0x261ad0(0x188)]!==void 0x0||_0x4e1e59['contextSummary']!==void 0x0)&&_0x4e1e59[_0x261ad0(0x1e4)]!=='delegations'&&(console[_0x261ad0(0x32a)](_0x261ad0(0x2b7)),process[_0x261ad0(0x192)](0x2)),_0x4e1e59[_0x261ad0(0x1b3)]!==void 0x0&&_0x4e1e59['subcommand']!==_0x261ad0(0x2d5)&&(console[_0x261ad0(0x32a)](_0x261ad0(0x281)),process[_0x261ad0(0x192)](0x2)),_0x4e1e59['preloadSkills']=[...new Set(_0x4e1e59[_0x261ad0(0x189)])],_0x4e1e59[_0x261ad0(0x1bf)]=_0x1611ff,_0x4e1e59[_0x261ad0(0x326)]=_0x1611ff[_0x261ad0(0x1e2)]('\x20'),_0x4e1e59;}var P=_0x4b82da=>{const _0x12ef79=_0x2f269b;process['stdout'][_0x12ef79(0x1f7)](_0x4b82da);};function Pt(){const _0x4dd728=_0x2f269b;let _0x305ba4=process[_0x4dd728(0x2be)]['write'],_0x467772=_0x305ba4['bind'](process[_0x4dd728(0x2be)]),_0xa19f81=P;return P=_0x52e750=>{_0x467772(_0x52e750);},process[_0x4dd728(0x2be)][_0x4dd728(0x1f7)]=(..._0x41320e)=>process[_0x4dd728(0x33e)][_0x4dd728(0x1f7)](..._0x41320e),()=>{const _0x13367e=_0x4dd728;process[_0x13367e(0x2be)][_0x13367e(0x1f7)]=_0x305ba4,P=_0xa19f81;};}function u(_0x5ab179,_0x117ac8,_0x53acea){const _0x33f0f8=_0x2f269b;if(_0x5ab179[_0x33f0f8(0x1ef)]===_0x33f0f8(0x321)){_0x53acea(_0x117ac8);return;}P(_0xee577d(_0x117ac8));}function Ct(){const _0x3986c2=_0x2f269b;let _0x1f5e94='\x0adelegate-cli\x20—\x20Delegate\x20agent\x20CLI\x0a\x0aUsage:\x0a\x20\x20delegate-cli\x20[flags]\x20[\x22<prompt>\x22]\x20\x20\x20\x20Start\x20a\x20conversation\x20in\x20a\x20terminal\x0a\x20\x20delegate-cli\x20--print\x20\x22<prompt>\x22\x20\x20\x20\x20\x20\x20Send\x20one\x20prompt,\x20print\x20the\x20response,\x20and\x20exit\x0a\x20\x20delegate-cli\x20[flags]\x20-\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Read\x20one\x20prompt\x20from\x20stdin\x20through\x20EOF,\x20then\x20exit\x0a\x20\x20delegate-cli\x20-p\x20\x22<prompt>\x22\x20--output-format\x20json|stream-json\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20One\x20turn\x20with\x20JSON-only\x20stdout;\x20exit\x201\x20on\x20error\x0a\x20\x20delegate-cli\x20--json-schema\x20FILE\x20\x22<prompt>\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20One\x20turn,\x20then\x20its\x20result\x20extracted\x20as\x20JSON\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20matching\x20the\x20schema\x20in\x20FILE\x20(printed\x20after\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20answer;\x20\x22structured\x22\x20in\x20the\x20JSON\x20result);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20exit\x201\x20when\x20the\x20extraction\x20fails\x0a\x20\x20delegate-cli\x20--attach\x20PATH\x20[--attach\x20PATH\x20...]\x20\x22<prompt>\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Send\x20files\x20or\x20folders\x20with\x20the\x20first\x20message\x0a\x20\x20delegate-cli\x20login\x20[--env\x20NAME\x20|\x20--url\x20BASE]\x20[--tenant\x20NAME]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20OAuth\x20browser\x20login\x20→\x20~/.aria/sdk-auth.json.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--env\x20or\x20--url\x20required\x20on\x20FIRST\x20login;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20afterwards\x20defaults\x20to\x20the\x20saved\x20login\x27s\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20deployment.\x20--tenant\x20picks\x20a\x20tenant\x20by\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20name;\x20without\x20it\x20a\x20re-login\x20keeps\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20saved\x20tenant\x0a\x20\x20delegate-cli\x20tenant\x20[NAME]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20the\x20organization\x27s\x20tenants,\x20or\x20switch\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20saved\x20login\x20to\x20NAME\x20(no\x20browser)\x0a\x20\x20delegate-cli\x20logout\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Remove\x20the\x20saved\x20CLI\x20login\x0a\x20\x20delegate-cli\x20whoami\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20the\x20current\x20login\x20(org,\x20tenant,\x20token\x20expiry)\x0a\x20\x20delegate-cli\x20models\x20[--env\x20NAME]\x20\x20\x20\x20\x20List\x20available\x20LLM\x20models\x20for\x20the\x20current\x20tenant,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20with\x20any\x20BYO\x20configuration\x20warning\x20per\x20model\x0a\x20\x20delegate-cli\x20sessions\x20[list]\x20[--page\x20N]\x20[--limit\x20N]\x20[--include-subagents]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20your\x20backend\x20chat\x20sessions,\x20most\x20recently\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20active\x20first\x20(resume\x20one\x20with\x20--session\x20ID)\x0a\x20\x20delegate-cli\x20sessions\x20show|delete\x20ID\x20Show\x20one\x20session\x27s\x20title\x20and\x20owner,\x20or\x20delete\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20it\x20with\x20its\x20messages\x20and\x20sub-agents\x20(no\x20prompt)\x0a\x20\x20delegate-cli\x20sessions\x20rename\x20ID\x20TITLE\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Rename\x20a\x20session\x20(1-500\x20characters)\x0a\x20\x20delegate-cli\x20sessions\x20fork\x20ID\x20[MESSAGE]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Copy\x20session\x20ID\x20into\x20a\x20new\x20session,\x20up\x20to\x20and\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20including\x20message\x20MESSAGE\x20(default:\x20all\x20of\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20it);\x20continue\x20it\x20with\x20--session\x20NEW_ID\x0a\x20\x20delegate-cli\x20sessions\x20cancel\x20ID\x20--turn\x20TURN\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Cancel\x20turn\x20TURN\x20running\x20on\x20session\x20ID\x20in\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20another\x20process;\x20exits\x201\x20when\x20no\x20such\x20turn\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20is\x20in\x20progress\x0a\x20\x20delegate-cli\x20check\x20[--env\x20NAME]\x20[--headless]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Verify\x20auth,\x20backend\x20readiness,\x20backend\x20and\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20interop\x20without\x20sending\x20a\x20prompt;\x20exits\x201\x20when\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20any\x20check\x20fails\x0a\x20\x20delegate-cli\x20usage\x20[--session\x20ID]\x20\x20\x20\x20Quota\x20and\x20spend:\x20licensing\x20quota,\x20monthly\x20spend\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20and\x20cap,\x20Cartographer\x20allowance\x0a\x20\x20delegate-cli\x20usage\x20activity|daily\x20[--days\x20N]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Activity\x20totals,\x20or\x20per-day\x20usage,\x20over\x20the\x20last\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20N\x20days\x20(1-365,\x20default\x2030)\x0a\x20\x20delegate-cli\x20evaluate|rerank|verify\x20FILE|-\x20[--model\x20ID]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Stateless\x20typed\x20judgments:\x20send\x20the\x20JSON\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20request\x20in\x20FILE\x20(or\x20stdin\x20with\x20-)\x20to\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20/v1/completions/<command>\x20and\x20print\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20answers;\x20--model\x20overrides\x20its\x20\x22model\x22.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Exits\x201\x20when\x20the\x20backend\x20rejects\x20it\x0a\x20\x20delegate-cli\x20complete\x20--json-schema\x20FILE\x20[--model\x20ID]\x20[--session\x20ID]\x20\x22<prompt>\x22|-\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20One\x20structured\x20completion,\x20no\x20agent\x20turn:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20print\x20the\x20JSON\x20object\x20matching\x20the\x20schema\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20in\x20FILE\x20(--output-format\x20json\x20prints\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{structured,\x20usage});\x20--session\x20adds\x20that\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20session\x27s\x20history\x20as\x20context.\x20Exits\x201\x20when\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20output\x20fails\x20the\x20schema\x20(422)\x20or\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20backend\x20rejects\x20the\x20request\x0a\x20\x20delegate-cli\x20transcribe\x20FILE|-\x20\x20\x20\x20\x20\x20\x20Speech-to-text:\x20print\x20the\x20text\x20of\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20audio\x20in\x20FILE,\x20or\x20on\x20stdin\x20with\x20-.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20mp3,\x20mp4,\x20mpeg,\x20mpga,\x20m4a,\x20wav\x20or\x20webm,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20up\x20to\x2014\x20MB.\x20Exits\x202\x20when\x20the\x20audio\x20is\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20refused\x20locally,\x201\x20when\x20the\x20backend\x20rejects\x20it\x0a\x20\x20delegate-cli\x20org-users\x20QUERY\x20\x20\x20\x20\x20\x20\x20\x20\x20Search\x20your\x20organization\x27s\x20users\x20by\x20name\x20or\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20email\x20prefix\x20(2-100\x20characters)\x0a\x20\x20delegate-cli\x20delegations\x20create\x20--session\x20ID\x20[--to\x20WHO]\x20[--summary\x20TEXT]\x20\x22<task>\x22|-\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Hand\x20a\x20task\x20from\x20session\x20ID\x20to\x20a\x20colleague\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(WHO:\x20an\x20email,\x20or\x20a\x20name\x20matching\x20one\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20person);\x20without\x20--to,\x20print\x20a\x20link\x20anyone\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20in\x20the\x20organization\x20can\x20claim\x0a\x20\x20delegate-cli\x20delegations\x20pending\x20SESSION\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Answers\x20to\x20delegations\x20from\x20SESSION\x20that\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20await\x20acceptance\x20(poll\x20this)\x0a\x20\x20delegate-cli\x20delegations\x20accept|dismiss|cancel|delete\x20ID\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Take\x20an\x20answer\x20into\x20its\x20session,\x20drop\x20it,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20withdraw\x20a\x20live\x20delegation,\x20or\x20delete\x20it\x0a\x20\x20delegate-cli\x20delegations\x20list\x20PROJECT\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Every\x20delegation\x20targeting\x20a\x20backend\x20project\x0a\x20\x20delegate-cli\x20delegations\x20show|claim\x20ID|LINK\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Read\x20a\x20delegation\x20assigned\x20to\x20you\x20(or\x20a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20delegate://delegation/…\x20link),\x20or\x20claim\x20it:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20prints\x20the\x20session\x20to\x20work\x20it\x20in\x0a\x20\x20delegate-cli\x20delegations\x20complete\x20ID\x20\x22<answer>\x22|-\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Send\x20the\x20answer\x20to\x20a\x20delegation\x20you\x20claimed\x0a\x20\x20delegate-cli\x20host\x20[flags]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Run\x20this\x20PC\x20as\x20a\x20remote\x20worker\x20until\x20Ctrl+C\x0a\x20\x20delegate-cli\x20host\x20install\x20[flags]\x20\x20\x20\x20Auto-start\x20the\x20host\x20at\x20login\x20(macOS\x20LaunchAgent\x20/\x20Windows\x20Scheduled\x20Task)\x0a\x20\x20delegate-cli\x20host\x20uninstall\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Remove\x20auto-start\x0a\x20\x20delegate-cli\x20host\x20status\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20auto-start\x20state\x0a\x20\x20delegate-cli\x20--cleanup\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Stop\x20running\x20interop\x0a\x0aFlags:\x0a\x20\x20-p,\x20--print\x20\x20\x20\x20\x20\x20\x20Run\x20one\x20turn\x20and\x20exit,\x20including\x20any\x20tool\x20execution.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Automatic\x20when\x20stdin\x20or\x20stdout\x20is\x20not\x20a\x20terminal,\x20or\x20with\x20-\x0a\x20\x20--env\x20NAME\x20\x20\x20\x20\x20\x20\x20\x20alpha\x20|\x20staging\x20|\x20production\x20|\x20localhost\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Composes\x20backend\x20URL\x20from\x20saved\x20auth\x20(org/tenant\x20slugs).\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Omitted\x20→\x20the\x20deployment\x20you\x20logged\x20into\x20(delegate-cli\x20login).\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20localhost\x20→\x20http://localhost:5002.\x20No\x20saved\x20login\x20and\x20no\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--env/--backend/BACKEND_URL\x20is\x20an\x20error\x20—\x20never\x20a\x20guess.\x0a\x20\x20--url\x20BASE\x20\x20\x20\x20\x20\x20\x20\x20(login)\x20Base\x20URL\x20of\x20a\x20deployment\x20that\x20is\x20not\x20a\x20named\x20cloud\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20—\x20Automation\x20Suite,\x20Dedicated,\x20Public\x20Sector.\x20Accepts\x20a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20tenant\x20path\x20or\x20a\x20trailing\x20/identity_\x20and\x20reduces\x20it\x20to\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20origin.\x20Mutually\x20exclusive\x20with\x20--env;\x20also\x20settable\x20via\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20UIPATH_BASE_URL.\x20Alias:\x20--authority.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Automation\x20Suite\x20needs\x2026.10+\x20with\x20the\x20Delegate\x20service;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20the\x20deployment\x20rejects\x20the\x20built-in\x20client,\x20register\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20your\x20own\x20—\x20see\x20UIPATH_CLIENT_ID\x20in\x20the\x20README\x0a\x20\x20--skip-env-check\x20\x20(login)\x20Do\x20not\x20check\x20the\x20deployment\x20before\x20signing\x20in.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Escape\x20hatch\x20for\x20a\x20deployment\x20that\x20hides\x20its\x20OIDC\x20discovery\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20document\x20or\x20serves\x20Identity\x20from\x20another\x20origin;\x20it\x20also\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20gives\x20up\x20the\x20diagnosis\x20when\x20something\x20is\x20really\x20wrong\x0a\x20\x20--backend\x20URL\x20\x20\x20\x20\x20Full\x20backend\x20URL\x20—\x20escape\x20hatch\x20overrides\x20--env\x0a\x20\x20--tenant\x20NAME\x20\x20\x20\x20\x20(login)\x20Tenant\x20to\x20sign\x20into,\x20by\x20name\x20(case-insensitive).\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default:\x20the\x20saved\x20login\x27s\x20tenant\x20on\x20that\x20cloud,\x20else\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20org\x27s\x20first\x20tenant.\x20Later:\x20delegate-cli\x20tenant\x20<name>\x0a\x20\x20--model\x20NAME\x20\x20\x20\x20\x20\x20LLM\x20model\x20id\x20(e.g.\x20claude_sonnet_5_5,\x20kimi_k3).\x20Checked\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20against\x20the\x20tenant\x27s\x20catalog\x20(delegate-cli\x20models)\x20before\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20run\x20starts;\x20an\x20unknown\x20id\x20fails\x20and\x20lists\x20the\x20valid\x20ones.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default:\x20gpt_5_6_luna.\x20Also\x20settable\x20via\x20MODEL\x20env\x20var.\x0a\x20\x20--keep-alive\x20\x20\x20\x20\x20\x20Reuse/leave\x20interop\x20running\x20across\x20invocations\x0a\x20\x20--headless\x20\x20\x20\x20\x20\x20\x20\x20Skip\x20interop\x20(text-only\x20prompts)\x0a\x20\x20--no-computer-use\x20Keep\x20interop\x20—\x20file,\x20Office,\x20PDF\x20and\x20shell\x20tools\x20keep\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20working\x20—\x20but\x20drop\x20the\x20screen:\x20no\x20screenshots,\x20no\x20window\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20list,\x20no\x20UI-automation\x20tools.\x20Cuts\x20image\x20tokens\x20and\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20per-turn\x20screen\x20capture,\x20and\x20stops\x20desktop\x20window\x20titles\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20leaving\x20the\x20machine.\x20Use\x20for\x20document\x20and\x20file\x20work.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--headless\x20implies\x20this\x20and\x20turns\x20interop\x20off\x20as\x20well\x0a\x20\x20--no-connections\x20\x20Disable\x20orchestrator\x20ConnectionService\x20(silences\x20404\x20warnings)\x0a\x20\x20--no-security\x20\x20\x20\x20\x20Disable\x20tool\x20security\x20wrapper\x20(use\x20only\x20for\x20debugging)\x0a\x20\x20--no-memory\x20\x20\x20\x20\x20\x20\x20Do\x20not\x20send\x20the\x20Delegate\x20app\x27s\x20local\x20long-term\x20memories\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20with\x20each\x20turn,\x20and\x20do\x20not\x20ask\x20the\x20model\x20to\x20save\x20new\x20ones\x0a\x20\x20--task-automation\x20Record\x20every\x20UI\x20action\x20of\x20the\x20run,\x20with\x20the\x20selector\x20of\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20element\x20it\x20acted\x20on,\x20to\x20<working-dir>/captures/<session>/\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(~/.aria-sdk\x20without\x20--working-dir),\x20so\x20you\x20can\x20then\x20ask\x20for\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20task\x20as\x20a\x20UiPath\x20coded\x20workflow\x20(uipath-taskautomation\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20skill).\x20The\x20log\x20holds\x20on-screen\x20text\x20and\x20your\x20requests;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20typed\x20values\x20are\x20masked.\x20Needs\x20computer\x20use.\x20Ignored\x20with\x20a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20warning\x20where\x20the\x20deployment\x20does\x20not\x20offer\x20it\x20yet\x0a\x20\x20--attach\x20PATH\x20\x20\x20\x20\x20File\x20or\x20folder\x20sent\x20with\x20the\x20first\x20message\x20(repeatable),\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20as\x20the\x20Delegate\x20app\x20sends\x20attached\x20files:\x20images\x20inline,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20PDFs\x20and\x20other\x20documents\x20as\x20a\x20path\x20the\x20agent\x20reads,\x20text\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20inline\x20up\x20to\x2016,000\x20characters.\x2030\x20MiB\x20per\x20message\x20in\x20all;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20larger\x20files\x20go\x20as\x20a\x20path.\x20In\x20a\x20conversation,\x20later\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20messages\x20carry\x20none\x20of\x20their\x20own,\x20but\x20the\x20first\x20message\x27s\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20stay\x20in\x20context\x0a\x20\x20--preload-skill\x20NAME\x20\x20Preload\x20a\x20skill\x20into\x20the\x20session\x20(repeatable).\x20The\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20skill\x27s\x20content\x20is\x20attached\x20before\x20the\x20first\x20model\x20turn\x20—\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20same\x20mechanism\x20as\x20project\x20preloaded\x20skills\x20in\x20the\x20app\x0a\x20\x20--cartographer\x20\x20\x20\x20Cartographer\x20engagement\x20preset.\x20Equivalent\x20to\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--no-computer-use\x20--preload-skill\x20business-analysis\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--preload-skill\x20project-task-list\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--preload-skill\x20knowledge-base\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--preload-skill\x20source-coverage\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--preload-skill\x20note-taker.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Add\x20--project/--working-dir\x20for\x20where\x20the\x20files\x20live,\x20and\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20extra\x20--preload-skill\x20flags\x20for\x20more\x20skills\x20—\x20a\x20skill\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20preset\x20already\x20covers\x20is\x20not\x20preloaded\x20twice.\x20An\x20explicit\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--headless\x20still\x20wins\x20and\x20turns\x20interop\x20off\x0a\x20\x20--project\x20ID\x20\x20\x20\x20\x20\x20Route\x20the\x20session\x27s\x20local\x20wiki\x20and\x20plans\x20to\x20a\x20project\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(<working-dir>/projects/<ID>/wiki).\x20Client-side\x20key\x20only\x0a\x20\x20--working-dir\x20PATH\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Shell\x20cwd\x20for\x20the\x20agent\x20and\x20root\x20for\x20SDK-local\x20state.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Relative\x20paths\x20resolve\x20against\x20the\x20current\x20directory;\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20directory\x20is\x20created\x20if\x20missing\x0a\x20\x20--skills-path\x20PATH\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Folder\x20of\x20custom\x20skills,\x20loaded\x20on\x20top\x20of\x20the\x20skills\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20package\x20ships;\x20wins\x20on\x20a\x20name\x20clash\x20(also:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20DELEGATE_BUNDLED_SKILLS_PATH)\x0a\x20\x20--effort\x20TIER\x20\x20\x20\x20\x20Reasoning\x20effort:\x20low\x20|\x20medium\x20|\x20high\x20|\x20xhigh\x20|\x20max.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default:\x20the\x20model\x27s\x20recommended\x20tier\x0a\x20\x20--session\x20ID\x20\x20\x20\x20\x20\x20Continue\x20an\x20existing\x20backend\x20session\x20(an\x20unknown\x20id\x20exits\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x201;\x20the\x20backend\x20assigns\x20new\x20ids).\x20For\x20complete:\x20the\x20session\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20whose\x20history\x20is\x20the\x20context\x0a\x20\x20--json-schema\x20FILE\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20JSON\x20schema\x20the\x20structured\x20answer\x20must\x20match\x20(complete,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20and\x20prompts:\x20implies\x20--print)\x0a\x20\x20--runner-url\x20URL\x20\x20(host)\x20Runner\x20worker\x20WS\x20URL.\x20Required;\x20or\x20CONTROL_PLANE_WS_URL\x20env\x0a\x20\x20--interop\x20PATH\x20\x20\x20\x20(host)\x20Interop\x20binary\x20path;\x20or\x20INTEROP_EXECUTABLE_PATH\x20env.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Absent\x20→\x20registration/discovery\x20only,\x20tool\x20execution\x20disabled\x0a\x20\x20--worker-id\x20ID\x20\x20\x20\x20(host)\x20Stable\x20worker\x20identity;\x20or\x20WORKER_ID\x20env.\x20Default:\x20hostname\x0a\x20\x20--page\x20N\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(sessions)\x20Page\x20to\x20show,\x20from\x201.\x20Default:\x201\x0a\x20\x20--limit\x20N\x20\x20\x20\x20\x20\x20\x20\x20\x20(sessions)\x20Rows\x20per\x20page,\x201-100.\x20Default:\x2030\x0a\x20\x20--include-subagents\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(sessions)\x20Also\x20list\x20sub-agent\x20sessions,\x20hidden\x20by\x20default\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20as\x20in\x20the\x20desktop\x20app\x27s\x20history\x0a\x20\x20--to\x20WHO\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(delegations\x20create)\x20Assign\x20to\x20this\x20person:\x20an\x20email,\x20or\x20a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20name\x20that\x20matches\x20exactly\x20one\x20colleague\x20(see\x20org-users)\x0a\x20\x20--summary\x20TEXT\x20\x20\x20\x20(delegations\x20create)\x20The\x20briefing\x20the\x20person\x20starts\x20from.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default:\x20empty,\x20for\x20a\x20task\x20that\x20stands\x20on\x20its\x20own\x0a\x20\x20--output-format\x20FMT\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20text\x20(default)\x20|\x20json\x20|\x20stream-json.\x20json\x20prints\x20one\x20result\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20object\x20on\x20exit;\x20stream-json\x20prints\x20every\x20agent\x20event\x20as\x20one\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20JSON\x20line,\x20then\x20the\x20result.\x20Both\x20keep\x20stdout\x20JSON-only\x20(logs,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20progress\x20and\x20the\x20session\x20id\x20go\x20to\x20stderr),\x20imply\x20--print,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20and\x20exit\x201\x20when\x20the\x20turn\x20ends\x20in\x20error.\x20Also\x20honoured\x20by\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20every\x20subcommand\x20that\x20prints\x20a\x20result\x20(all\x20but\x20login,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20logout,\x20tenant\x20and\x20host)\x0a\x20\x20-q,\x20--quiet\x20\x20\x20\x20\x20\x20\x20Suppress\x20🤔\x20thinking\x20output\x20to\x20stderr\x0a\x20\x20--verbose\x20\x20\x20\x20\x20\x20\x20\x20\x20Surface\x20the\x20SDK\x27s\x20and\x20the\x20framework\x27s\x20own\x20logs.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Diagnostics\x20only,\x20on\x20stdout;\x20independent\x20of\x20-q\x0a\x20\x20-h,\x20--help\x20\x20\x20\x20\x20\x20\x20\x20Show\x20this\x20help\x0a\x20\x20-v,\x20--version\x20\x20\x20\x20\x20Print\x20the\x20installed\x20CLI\x20version\x0a\x0aConversation:\x20Enter\x20sends\x20a\x20message;\x20/exit\x20or\x20EOF\x20exits;\x20Ctrl+C\x20stops\x20and\x20exits.\x0a\x20\x20Ctrl+C\x20during\x20a\x20turn\x20cancels\x20it\x20on\x20the\x20backend\x20too;\x20a\x20second\x20Ctrl+C\x20force-exits.\x0a\x20\x20An\x20optional\x20initial\x20prompt\x20is\x20followed\x20by\x20more\x20input.\x20The\x20session\x20ID\x20is\x20printed\x0a\x20\x20to\x20stderr;\x20resume\x20later\x20with\x20--session\x20ID.\x20Redirected\x20input\x20is\x20one\x20prompt.\x0aAuth:\x20prompts\x20auto-retry\x20on\x20401\x20by\x20opening\x20the\x20browser\x20to\x20re-login\x20(TTY\x20only),\x0a\x20\x20preserving\x20the\x20active\x20session.\x0a'[_0x3986c2(0x347)]();console['log'](_0x1f5e94);}function Lt(){const _0x589a3e=_0x2f269b;try{return JSON[_0x589a3e(0x1ce)](_0x2bd3db[_0x589a3e(0x274)](_0xfec709[_0x589a3e(0x1e2)](__dirname,'..',_0x589a3e(0x228)),_0x589a3e(0x1ad)))['version']||_0x589a3e(0x342);}catch{return'unknown';}}var Ot=0x7d0;async function ie(_0x548ea5,_0x3e2299){const _0x21076a=_0x2f269b;let _0x328a66=_0x3e2299?[_0x3e2299]:[];for await(let _0x5e107b of _0x548ea5)_0x328a66[_0x21076a(0x2fd)](Buffer[_0x21076a(0x336)](_0x5e107b));return Buffer[_0x21076a(0x2e2)](_0x328a66)[_0x21076a(0x2d1)]('utf-8')[_0x21076a(0x347)]();}function Ft(_0x12bf52,_0xda5329){return new Promise(_0x5aa730=>{const _0x57e823=_0x5eab;let _0x10d0b3=_0x368b7e=>{const _0xf55f48=_0x5eab;clearTimeout(_0x4c4d7e),_0x12bf52[_0xf55f48(0x2d9)]('data',_0xcbc15b),_0x12bf52[_0xf55f48(0x2d9)](_0xf55f48(0x29c),_0xae5e64),_0x12bf52[_0xf55f48(0x2d9)](_0xf55f48(0x32a),_0xae5e64),_0x12bf52[_0xf55f48(0x1c9)](),_0x5aa730(_0x368b7e);},_0xcbc15b=_0x3e7cc3=>_0x10d0b3(Buffer[_0x57e823(0x336)](_0x3e7cc3)),_0xae5e64=()=>_0x10d0b3(null),_0x4c4d7e=setTimeout(()=>_0x10d0b3(null),_0xda5329);_0x12bf52['on']('data',_0xcbc15b),_0x12bf52['on']('end',_0xae5e64),_0x12bf52['on'](_0x57e823(0x32a),_0xae5e64),_0x12bf52[_0x57e823(0x199)]();});}async function j(_0x3788da,_0x2b3724,_0x4d665e=Ot){const _0x3f52e9=_0x2f269b;let _0x10bf78=_0x3788da==='-';if(!_0x10bf78&&_0x3788da)return _0x3788da;if(!_0x10bf78&&_0x2b3724[_0x3f52e9(0x179)])return'';if(_0x10bf78)return ie(_0x2b3724,null);let _0x1a00ab=await Ft(_0x2b3724,_0x4d665e);return _0x1a00ab?ie(_0x2b3724,_0x1a00ab):'';}function K(){const _0x142569=_0x2f269b;return _0xfec709[_0x142569(0x1e2)](process.env.HOME||process.env.USERPROFILE||'',_0x142569(0x231),_0x142569(0x28a));}function M(_0x1d88af){const _0x5f010d=_0x2f269b;try{let _0x49b3f2=JSON['parse'](_0x2bd3db[_0x5f010d(0x274)](_0x1d88af,_0x5f010d(0x1ad)));return!_0x49b3f2[_0x5f010d(0x277)]||!_0x49b3f2[_0x5f010d(0x32b)]||!_0x49b3f2[_0x5f010d(0x2ba)]?null:_0x49b3f2;}catch{return null;}}function jt(){const _0x205759=_0x2f269b;let _0x4b2b28=[{'file':_0x3358b3(),'isDesktopFallback':!0x1},{'file':K(),'isDesktopFallback':!0x0}];for(let _0x12738f of _0x4b2b28){let _0x315f6f=M(_0x12738f[_0x205759(0x19b)]);if(_0x315f6f)return{..._0x12738f,'auth':_0x315f6f};}return null;}async function Mt(){const _0x464b87=_0x2f269b;let _0x41211f=_0x3358b3();if(!_0x2bd3db['existsSync'](_0x41211f)){let _0x228f66=K();console['log'](M(_0x228f66)?_0x464b87(0x2e5)+_0x228f66+'\x20—\x20sign\x20out\x20in\x20the\x20Delegate\x20app\x20to\x20clear\x20that.':'No\x20CLI\x20login\x20found\x20—\x20nothing\x20to\x20remove.');return;}_0x2bd3db[_0x464b87(0x1bd)](_0x41211f),console[_0x464b87(0x21f)](_0x464b87(0x200)+_0x41211f);}async function Bt(_0x5d5b7b){const _0x573254=_0x2f269b;let _0x42cc6c=Q(),_0x431c8b,_0x43d858;if(_0x42cc6c)_0x431c8b=_0x42cc6c,_0x43d858='environment\x20variables\x20(AUTH_TOKEN/TENANT_ID/ORG_ID)';else{let _0x107f8f=jt();if(!_0x107f8f)throw new Error(Se);_0x431c8b=_0x107f8f[_0x573254(0x2e9)],_0x43d858=_0x107f8f[_0x573254(0x1eb)]?_0x107f8f[_0x573254(0x19b)]+_0x573254(0x298):_0x107f8f['file'];}let _0x1bfcc1={'source':_0x43d858,'baseUrl':_0x431c8b['baseUrl']??null,'deployment':Ht(_0x431c8b[_0x573254(0x20a)]),'organization':{'id':_0x431c8b['organizationId'],'slug':_0x431c8b[_0x573254(0x2cd)]??null},'tenant':{'id':_0x431c8b[_0x573254(0x32b)],'name':_0x431c8b[_0x573254(0x181)]??null},'tokenExpiresAt':_0x431c8b['expiresAt']?new Date(_0x431c8b['expiresAt']*0x3e8)['toISOString']():null};u(_0x5d5b7b,_0x1bfcc1,()=>{const _0x5d9d30=_0x573254;let _0x1ab36e=[_0x5d9d30(0x23d)+_0x43d858,_0x5d9d30(0x331)+(_0x431c8b[_0x5d9d30(0x20a)]??_0x5d9d30(0x342)),'Deployment:\x20\x20\x20'+_0x1bfcc1[_0x5d9d30(0x16a)],'Organization:\x20'+(_0x431c8b['orgLogicalName']??'unknown\x20slug')+'\x20('+_0x431c8b[_0x5d9d30(0x2ba)]+')',_0x5d9d30(0x32c)+(_0x431c8b[_0x5d9d30(0x181)]??'unknown\x20slug')+'\x20('+_0x431c8b[_0x5d9d30(0x32b)]+')'];if(_0x431c8b['expiresAt']){let _0x1d7b34=_0x431c8b['expiresAt']-Math[_0x5d9d30(0x22f)](Date[_0x5d9d30(0x269)]()/0x3e8);_0x1ab36e[_0x5d9d30(0x2fd)](_0x1d7b34>0x0?_0x5d9d30(0x24e)+_0x1bfcc1['tokenExpiresAt']+_0x5d9d30(0x31b)+Math[_0x5d9d30(0x1a6)](_0x1d7b34/0x3c)+_0x5d9d30(0x184):_0x5d9d30(0x1a2)+_0x1bfcc1[_0x5d9d30(0x15e)]);}process[_0x5d9d30(0x2be)]['write'](_0x1ab36e['join']('\x0a')+'\x0a');});}var Se='No\x20auth\x20found.\x20Set\x20AUTH_TOKEN\x20(or\x20AUTH_TOKEN_FILE)/TENANT_ID/ORG_ID\x20env\x20vars,\x20or\x20run\x20`delegate-cli\x20login\x20--env\x20<alpha|staging|production>`\x20(or\x20`--url\x20<deployment-url>`\x20for\x20Automation\x20Suite)\x20first.';function Ht(_0x39458c){const _0x4b6ff2=_0x2f269b;return _0x39458c?_0xefa20b(_0x39458c)?_0x4b6ff2(0x2ce):_0x4b6ff2(0x174):_0x4b6ff2(0x342);}function Q(){let _0x470b7b=process.env.AUTH_TOKEN_FILE;return(process.env.AUTH_TOKEN||_0x470b7b)&&process.env.TENANT_ID&&process.env.ORG_ID?{'accessToken':_0x470b7b?Jt(_0x470b7b):process.env.AUTH_TOKEN,..._0x470b7b?{'accessTokenFile':_0x470b7b}:{},'tenantId':process.env.TENANT_ID,'organizationId':process.env.ORG_ID,'orgLogicalName':process.env.ORG_SLUG,'tenantName':process.env.TENANT_SLUG,'baseUrl':ve()}:null;}function Jt(_0x40da0f){const _0x433120=_0x2f269b;let _0x1713a2;try{_0x1713a2=_0x2bd3db[_0x433120(0x274)](_0x40da0f,_0x433120(0x1ad))[_0x433120(0x347)]();}catch(_0x5b0903){throw new Error(_0x433120(0x213)+_0x40da0f+'\x27\x20cannot\x20be\x20read:\x20'+_0x5b0903[_0x433120(0x1e3)]);}let _0x3a9a90=_0x1713a2[_0x433120(0x288)](_0x433120(0x1d8))?_0x1713a2[_0x433120(0x18d)](0x7)[_0x433120(0x347)]():_0x1713a2;if(!_0x3a9a90)throw new Error(_0x433120(0x213)+_0x40da0f+_0x433120(0x23f));return _0x3a9a90;}function ve(){const _0x49df93=_0x2f269b;let _0x3e404f=process.env.UIPATH_BASE_URL;if(!_0x3e404f)return;let _0x22bdff=_0x1c86e3(_0x3e404f);if(_0x22bdff['ok']===!0x1)throw new Error(_0x49df93(0x2d3)+_0x537b3f(_0x3e404f,_0x22bdff[_0x49df93(0x254)]));return _0x22bdff[_0x49df93(0x20a)];}async function q(){let _0x569cfd=Q();if(_0x569cfd)return _0x569cfd;let _0x329c76=await _0x454b4d();if(_0x329c76)return _0x329c76;throw new Error(Se);}async function Gt(){const _0x9a589b=_0x2f269b;await new _0x3727b2()[_0x9a589b(0x1d1)]({'force':!0x0}),console[_0x9a589b(0x21f)](_0x9a589b(0x25f));}function z(_0x133f65,_0x1691b7,_0x1effe1){const _0x143c54=_0x2f269b;_0x133f65?process[_0x143c54(0x33e)][_0x143c54(0x1f7)](_0x143c54(0x27a)+_0x133f65+']\x20Backend\x20URL:\x20'+_0x1effe1+'\x0a'):!_0x1691b7&&!process.env.BACKEND_URL&&process[_0x143c54(0x33e)]['write']('[saved\x20login]\x20Backend\x20URL:\x20'+_0x1effe1+'\x0a');}async function v(_0x36c900){const _0x23e5e4=_0x2f269b;let _0x451dc7=await q(),_0x442ee4=_0x25429e(_0x36c900[_0x23e5e4(0x2f4)],_0x451dc7,_0x36c900[_0x23e5e4(0x20d)]);return z(_0x36c900[_0x23e5e4(0x2f4)],_0x36c900[_0x23e5e4(0x20d)],_0x442ee4),{'auth':_0x451dc7,'backendUrl':_0x442ee4,'client':_0x51a366({'auth':_0x451dc7,'backendUrl':_0x442ee4})};}async function Wt(_0x51c87e){const _0x411bb2=_0x2f269b;let {client:_0x1d5626}=await v(_0x51c87e),[_0x383344,_0x5efa62]=await Promise[_0x411bb2(0x354)]([_0x9c128d(_0x1d5626),_0x53f457(_0x1d5626)[_0x411bb2(0x2fc)](_0x4ae669=>(process[_0x411bb2(0x33e)][_0x411bb2(0x1f7)](_0x411bb2(0x1ff)+(_0x4ae669 instanceof Error?_0x4ae669[_0x411bb2(0x1e3)]:String(_0x4ae669))+'\x0a'),{}))]),_0xbed08b=_0x383344[_0x411bb2(0x1c5)](_0x2df071=>_0x5efa62[_0x2df071['id']]?{..._0x2df071,'byoWarning':_0x5efa62[_0x2df071['id']]}:_0x2df071);u(_0x51c87e,_0xbed08b,Kt);}function Kt(_0x5dfb85){const _0x456640=_0x2f269b;if(_0x5dfb85[_0x456640(0x2e4)]===0x0){process[_0x456640(0x33e)][_0x456640(0x1f7)](_0x456640(0x297));return;}process[_0x456640(0x2be)][_0x456640(0x1f7)](_0x456640(0x1a3)+_0x5dfb85[_0x456640(0x2e4)]+_0x456640(0x242));for(let _0x42b8b3 of _0x5dfb85){let _0x2d9dcd=_0x42b8b3[_0x456640(0x345)]&&_0x42b8b3['name']!==_0x42b8b3['id']?'\x20('+_0x42b8b3[_0x456640(0x345)]+')':'';process[_0x456640(0x2be)][_0x456640(0x1f7)]('\x20\x20'+_0x42b8b3['id']+_0x2d9dcd+'\x0a'),_0x42b8b3['description']&&process[_0x456640(0x2be)]['write'](_0x456640(0x28c)+_0x42b8b3[_0x456640(0x2db)]+'\x0a'),_0x42b8b3[_0x456640(0x2c2)]&&process[_0x456640(0x2be)][_0x456640(0x1f7)]('\x20\x20\x20\x20Not\x20available\x20on\x20this\x20plan'+(_0x42b8b3[_0x456640(0x33a)]?'\x20('+_0x42b8b3[_0x456640(0x33a)]+')':'')+'\x0a'),_0x42b8b3[_0x456640(0x2c0)]&&process[_0x456640(0x2be)][_0x456640(0x1f7)]('\x20\x20\x20\x20BYO\x20warning:\x20'+_0x42b8b3[_0x456640(0x2c0)]+'\x0a');}process[_0x456640(0x2be)][_0x456640(0x1f7)]('\x0aUse\x20with:\x20delegate-cli\x20--model\x20<id>\x20\x22<prompt>\x22\x0a');}var ae=[_0x2f269b(0x1e1),_0x2f269b(0x1cd),'rename',_0x2f269b(0x1ed),_0x2f269b(0x273),_0x2f269b(0x32e)];async function Qt(_0x9d461d){const _0x26c1fd=_0x2f269b;let [_0x23a532='',_0xf44181='',..._0x45a608]=_0x9d461d[_0x26c1fd(0x1bf)];if(_0x23a532&&!ae[_0x26c1fd(0x304)](_0x23a532)&&(console[_0x26c1fd(0x32a)]('Unknown\x20sessions\x20action:\x20'+_0x23a532+_0x26c1fd(0x19a)+ae[_0x26c1fd(0x1e2)]('\x20|\x20')+'.'),process['exit'](0x2)),_0x9d461d[_0x26c1fd(0x1b3)]!==void 0x0&&_0x23a532!=='cancel'&&(console['error'](_0x26c1fd(0x281)),process[_0x26c1fd(0x192)](0x2)),_0x23a532&&_0x23a532!==_0x26c1fd(0x1e1)){await qt(_0x9d461d,_0x23a532,_0xf44181,_0x45a608[_0x26c1fd(0x1e2)]('\x20')['trim']());return;}_0x9d461d[_0x26c1fd(0x1bf)][_0x26c1fd(0x2e4)]>0x1&&(console[_0x26c1fd(0x32a)](_0x26c1fd(0x291)),process[_0x26c1fd(0x192)](0x2));let {client:_0x2b1287}=await v(_0x9d461d),_0x5e3ff2=await _0x34c66b(_0x2b1287,{'page':_0x9d461d[_0x26c1fd(0x23e)],'pageSize':_0x9d461d[_0x26c1fd(0x272)],'includeSubAgents':_0x9d461d['includeSubAgents']});u(_0x9d461d,_0x5e3ff2,Xt);}async function qt(_0x5220e3,_0x34b088,_0x30be29,_0x1fc12d){const _0x3bf363=_0x2f269b;if((_0x5220e3[_0x3bf363(0x23e)]!==void 0x0||_0x5220e3[_0x3bf363(0x272)]!==void 0x0||_0x5220e3['includeSubAgents'])&&(console['error'](_0x3bf363(0x2ab)),process['exit'](0x2)),_0x34b088===_0x3bf363(0x273)){await Yt(_0x5220e3,_0x30be29,_0x1fc12d);return;}if(_0x34b088===_0x3bf363(0x32e)){await Vt(_0x5220e3,_0x30be29,_0x1fc12d);return;}(!_0x30be29||_0x34b088===_0x3bf363(0x1fe)!=!!_0x1fc12d)&&(console[_0x3bf363(0x32a)](_0x3bf363(0x1cf)+_0x34b088+_0x3bf363(0x182)+(_0x34b088===_0x3bf363(0x1fe)?'\x20<title>':'')),process[_0x3bf363(0x192)](0x2));let {client:_0x3fce99}=await v(_0x5220e3);try{if(_0x34b088===_0x3bf363(0x1cd)){let _0x247373=await _0xfbf969(_0x3fce99,_0x30be29);_0x247373||le(_0x30be29),u(_0x5220e3,_0x247373,zt);}else{if(_0x34b088===_0x3bf363(0x1fe)){let _0x11e9d6=await _0x5d2ffc(_0x3fce99,_0x30be29,_0x1fc12d);u(_0x5220e3,_0x11e9d6,_0x576984=>{process['stdout']['write']('Renamed\x20'+_0x576984['id']+':\x20'+_0x576984['title']+'\x0a');});}else await _0x290244(_0x3fce99,_0x30be29),await _0x31ee8d(_0x30be29,_0x5220e3[_0x3bf363(0x258)]),u(_0x5220e3,{'id':_0x30be29,'deleted':!0x0},_0x5b1734=>{process['stdout']['write']('Deleted\x20session\x20'+_0x5b1734['id']+'.\x0a');});}}catch(_0x507aaf){if(!_0x464900(_0x507aaf,0x194))throw _0x507aaf;le(_0x30be29);}}function le(_0x3a6818){const _0x2a1498=_0x2f269b;console[_0x2a1498(0x32a)](_0x2a1498(0x263)+_0x3a6818+_0x2a1498(0x330)),process[_0x2a1498(0x192)](0x1);}function zt(_0x5eceb8){const _0xf40bec=_0x2f269b;process['stdout'][_0xf40bec(0x1f7)](_0xf40bec(0x19d)+_0x5eceb8['id']+'\x0a'),process[_0xf40bec(0x2be)][_0xf40bec(0x1f7)]('Title\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x5eceb8[_0xf40bec(0x246)]+'\x0a'),process[_0xf40bec(0x2be)][_0xf40bec(0x1f7)](_0xf40bec(0x32d)+_0x5eceb8[_0xf40bec(0x1b6)]+'\x0a'),process['stdout'][_0xf40bec(0x1f7)](_0xf40bec(0x289)+_0x5eceb8[_0xf40bec(0x2ba)]+'\x0a'),_0x5eceb8[_0xf40bec(0x187)]&&process[_0xf40bec(0x2be)][_0xf40bec(0x1f7)](_0xf40bec(0x2c8)+_0x5eceb8[_0xf40bec(0x187)]+'\x0a');}async function Yt(_0x48d5df,_0x3f8c4c,_0x429262){const _0x2ec04c=_0x2f269b;(!_0x3f8c4c||_0x429262||!_0x48d5df[_0x2ec04c(0x1b3)])&&(console[_0x2ec04c(0x32a)]('Usage:\x20delegate-cli\x20sessions\x20cancel\x20<session-id>\x20--turn\x20<turn-id>'),process[_0x2ec04c(0x192)](0x2));let {client:_0x34c74d}=await v(_0x48d5df),_0x14cc12=await _0x5bec88(_0x34c74d,_0x3f8c4c,_0x48d5df[_0x2ec04c(0x1b3)]);u(_0x48d5df,{'sessionId':_0x3f8c4c,'turnId':_0x48d5df[_0x2ec04c(0x1b3)],'cancelled':_0x14cc12},_0x4a02b1=>{const _0x11d61b=_0x2ec04c;_0x4a02b1[_0x11d61b(0x27f)]?process[_0x11d61b(0x2be)][_0x11d61b(0x1f7)](_0x11d61b(0x180)+_0x4a02b1[_0x11d61b(0x1b3)]+'\x20of\x20session\x20'+_0x4a02b1[_0x11d61b(0x1a0)]+'.\x0a'):process['stderr']['write']('No\x20turn\x20'+_0x4a02b1['turnId']+_0x11d61b(0x204)+_0x4a02b1[_0x11d61b(0x1a0)]+'.\x0a');}),_0x14cc12||(process[_0x2ec04c(0x312)]=0x1);}async function Vt(_0x3c5253,_0x3befd9,_0x1a7dd0){const _0x5be10e=_0x2f269b;(!_0x3befd9||/\s/[_0x5be10e(0x340)](_0x1a7dd0))&&(console[_0x5be10e(0x32a)](_0x5be10e(0x2de)),process[_0x5be10e(0x192)](0x2));let {client:_0x56e34b}=await v(_0x3c5253),_0x3b1993;try{_0x3b1993=await _0x4a8acb(_0x56e34b,_0x3befd9,{'atMessageId':_0x1a7dd0||void 0x0});}catch(_0x19df80){if(!_0x464900(_0x19df80,0x194))throw _0x19df80;console[_0x5be10e(0x32a)](_0x5be10e(0x263)+_0x3befd9+'\x20not\x20found,\x20has\x20no\x20messages'+(_0x1a7dd0?_0x5be10e(0x220)+_0x1a7dd0:'')+'.'),process[_0x5be10e(0x192)](0x1);}u(_0x3c5253,_0x3b1993,_0x499294=>{const _0x34d5cb=_0x5be10e;process[_0x34d5cb(0x2be)][_0x34d5cb(0x1f7)](_0x34d5cb(0x1f3)+_0x3befd9+_0x34d5cb(0x26f)+_0x499294['id']+'.\x0a'),process[_0x34d5cb(0x33e)]['write'](_0x34d5cb(0x230)+_0x499294['id']+_0x34d5cb(0x236));});}function Xt({sessions:_0x1a553c,page:_0x31edec,isLastPage:_0x701305}){const _0x3aba1e=_0x2f269b;if(_0x1a553c['length']===0x0)process[_0x3aba1e(0x33e)]['write'](_0x3aba1e(0x215)+_0x31edec+'.\x0a');else{process[_0x3aba1e(0x2be)][_0x3aba1e(0x1f7)]('ID'[_0x3aba1e(0x261)](0x24)+'\x20\x20'+_0x3aba1e(0x337)[_0x3aba1e(0x261)](0x13)+_0x3aba1e(0x24f));for(let _0x1b91ab of _0x1a553c){let _0x535b5b=_0x1b91ab['updatedAt'][_0x3aba1e(0x167)]('T','\x20')[_0x3aba1e(0x18d)](0x0,0x13),_0x5d70b2=_0x1b91ab[_0x3aba1e(0x329)]?_0x3aba1e(0x27d)+_0x1b91ab[_0x3aba1e(0x329)]+')':'';process[_0x3aba1e(0x2be)][_0x3aba1e(0x1f7)](_0x1b91ab['id'][_0x3aba1e(0x261)](0x24)+'\x20\x20'+_0x535b5b[_0x3aba1e(0x261)](0x13)+'\x20\x20'+_0x1b91ab[_0x3aba1e(0x246)]+_0x5d70b2+'\x0a');}}_0x701305||process[_0x3aba1e(0x33e)][_0x3aba1e(0x1f7)](_0x3aba1e(0x1a1)+(_0x31edec+0x1)+'\x0a');}function _0x5eab(_0x2688d9,_0xb411ed){_0x2688d9=_0x2688d9-0x15e;const _0x2c4306=_0x2c43();let _0x1eade0=_0x2c4306[_0x2688d9];return _0x1eade0;}async function Zt(_0x5c1250){const _0x1f69c9=_0x2f269b;let _0x1903bc=await q(),_0x154246=_0x25429e(_0x5c1250[_0x1f69c9(0x2f4)],_0x1903bc,_0x5c1250[_0x1f69c9(0x20d)]);z(_0x5c1250[_0x1f69c9(0x2f4)],_0x5c1250[_0x1f69c9(0x20d)],_0x154246);let _0x2b4bde=await _0x59b3a9({'auth':_0x1903bc,'backendUrl':_0x154246,'interop':_0x5c1250[_0x1f69c9(0x29f)]?_0x1f69c9(0x2e3):_0x1f69c9(0x249)});u(_0x5c1250,_0x2b4bde,({checks:_0x26e97a})=>{const _0x33bcdf=_0x1f69c9;for(let _0x372ca2 of _0x26e97a)process[_0x33bcdf(0x2be)][_0x33bcdf(0x1f7)](en(_0x372ca2)+'\x0a');}),_0x2b4bde['ok']||process[_0x1f69c9(0x192)](0x1);}function en(_0x5128a5){const _0x54a16d=_0x2f269b;return{'ok':'✓','failed':'✗','skipped':'-'}[_0x5128a5['status']]+'\x20'+_0x5128a5[_0x54a16d(0x345)][_0x54a16d(0x261)](0xa)+_0x5128a5[_0x54a16d(0x2d7)];}var tn=['',_0x2f269b(0x16f),_0x2f269b(0x324)];async function nn(_0x234283){const _0x54df02=_0x2f269b;let _0x1e338a=_0x234283[_0x54df02(0x326)];tn[_0x54df02(0x304)](_0x1e338a)||(console[_0x54df02(0x32a)](_0x54df02(0x1f6)+_0x234283[_0x54df02(0x326)]+'.\x20Use\x20`delegate-cli\x20usage`,\x20`usage\x20activity`\x20or\x20`usage\x20daily`.'),process[_0x54df02(0x192)](0x2)),_0x1e338a===''&&_0x234283[_0x54df02(0x315)]!==void 0x0&&(console[_0x54df02(0x32a)](_0x54df02(0x34a)),process['exit'](0x2)),_0x1e338a!==''&&_0x234283[_0x54df02(0x1a0)]!==void 0x0&&(console['error']('--session\x20applies\x20to\x20the\x20`delegate-cli\x20usage`\x20summary\x20only.'),process[_0x54df02(0x192)](0x2));let {client:_0x398012}=await v(_0x234283);if(_0x1e338a===_0x54df02(0x16f)){u(_0x234283,await _0x30eb7b(_0x398012,{'days':_0x234283[_0x54df02(0x315)]}),sn);return;}if(_0x1e338a==='daily'){u(_0x234283,await _0x1edcbf(_0x398012,{'days':_0x234283[_0x54df02(0x315)]}),rn);return;}let [_0x285425,_0x49f528,_0x59c4f1]=await Promise[_0x54df02(0x354)]([_0x498069(_0x398012,{'sessionId':_0x234283[_0x54df02(0x1a0)]}),_0x2923c8(_0x398012),_0x541a08(_0x398012)]);u(_0x234283,{'licensing':_0x285425,'monthlySpending':_0x49f528,'cartographerAllowance':_0x59c4f1},on);}function on(_0x1f2da9){const _0x206143=_0x2f269b;let {licensing:_0x5cd379,monthlySpending:_0x308c91,cartographerAllowance:_0x296689}=_0x1f2da9,_0x39a70f=[_0x5cd379['limit_enabled']?_0x206143(0x2c6)+_0x5cd379[_0x206143(0x299)]['toFixed'](0x1)+'%\x20of\x20'+(_0x5cd379[_0x206143(0x2b3)]??0x0)+_0x206143(0x31f)+(_0x5cd379[_0x206143(0x1d2)]>0x0?',\x20'+_0x5cd379[_0x206143(0x1d2)]+'\x20PU\x20beyond\x20quota':'')+'\x20(resets\x20'+_0x5cd379[_0x206143(0x1be)]+')':_0x206143(0x227),_0x206143(0x33c)+_0x308c91['monthly_spend_usd']['toFixed'](0x2)+_0x206143(0x30d)+(_0x308c91[_0x206143(0x28d)]&&_0x308c91[_0x206143(0x2d6)]!==null?'\x20of\x20a\x20$'+_0x308c91[_0x206143(0x2d6)][_0x206143(0x2a9)](0x2)+_0x206143(0x282):_0x206143(0x352)),'Cartographer:\x20'+_0x296689['mode']+'\x20('+_0x296689[_0x206143(0x2b2)]+')'];_0x5cd379['session_consumed_pu']!==null&&_0x5cd379[_0x206143(0x2b5)]!==void 0x0&&_0x39a70f[_0x206143(0x2fd)](_0x206143(0x2fb)+_0x5cd379['session_consumed_pu']+_0x206143(0x16c)),process['stdout'][_0x206143(0x1f7)](_0x39a70f[_0x206143(0x1e2)]('\x0a')+'\x0a');}function sn(_0x48fc34){const _0x2efb26=_0x2f269b;let _0x8b73e2=[_0x2efb26(0x1c7)+_0x48fc34[_0x2efb26(0x198)]+'\x20days:\x20'+_0x48fc34['total_sessions']+'\x20sessions\x20on\x20'+_0x48fc34[_0x2efb26(0x2ea)]+_0x2efb26(0x28e),'Cost:\x20\x20\x20$'+_0x48fc34[_0x2efb26(0x164)][_0x2efb26(0x2a9)](0x2)+_0x2efb26(0x166)+_0x48fc34[_0x2efb26(0x308)][_0x2efb26(0x2a9)](0x2)+_0x2efb26(0x211)+_0x48fc34[_0x2efb26(0x34c)]+_0x2efb26(0x2f7),_0x2efb26(0x212)+_0x48fc34[_0x2efb26(0x23b)]+_0x2efb26(0x1b0)+_0x48fc34['total_completion_tokens']+_0x2efb26(0x275)];for(let [_0x161f64,_0x46c074]of Object[_0x2efb26(0x33b)](_0x48fc34['models_breakdown']))_0x8b73e2[_0x2efb26(0x2fd)]('\x20\x20'+_0x161f64+':\x20'+_0x46c074+_0x2efb26(0x1c1));process['stdout'][_0x2efb26(0x1f7)](_0x8b73e2['join']('\x0a')+'\x0a');}function rn(_0x513ab7){const _0x2df0d3=_0x2f269b;if(_0x513ab7[_0x2df0d3(0x271)][_0x2df0d3(0x2e4)]===0x0){process['stdout'][_0x2df0d3(0x1f7)](_0x2df0d3(0x218)+_0x513ab7[_0x2df0d3(0x198)]+_0x2df0d3(0x328));return;}let _0x144d50=['Date\x20\x20\x20\x20\x20\x20\x20\x20Token\x20units\x20\x20Prompt\x20tokens\x20\x20Completion\x20tokens'];for(let _0x57d0ea of _0x513ab7[_0x2df0d3(0x271)])_0x144d50[_0x2df0d3(0x2fd)](_0x57d0ea[_0x2df0d3(0x2ca)]+'\x20\x20'+String(_0x57d0ea['token_units'])[_0x2df0d3(0x284)](0xb)+'\x20\x20'+String(_0x57d0ea[_0x2df0d3(0x301)])[_0x2df0d3(0x284)](0xd)+'\x20\x20'+String(_0x57d0ea[_0x2df0d3(0x325)])[_0x2df0d3(0x284)](0x11));process[_0x2df0d3(0x2be)][_0x2df0d3(0x1f7)](_0x144d50[_0x2df0d3(0x1e2)]('\x0a')+'\x0a');}async function an(_0x1d74e9,_0x116b86){const _0x268d21=_0x2f269b;let _0x5c5cde=await ln(_0x1d74e9[_0x268d21(0x326)],_0x116b86);_0x1d74e9['model']&&(_0x5c5cde[_0x268d21(0x1cb)]=_0x1d74e9[_0x268d21(0x1cb)]);let {client:_0x3a4eb0}=await v(_0x1d74e9);try{_0x116b86===_0x268d21(0x334)?u(_0x1d74e9,await _0x19bc66(_0x3a4eb0,_0x5c5cde,void 0x0),dn):_0x116b86===_0x268d21(0x1c2)?u(_0x1d74e9,await _0x55cce7(_0x3a4eb0,_0x5c5cde,void 0x0),un):u(_0x1d74e9,await _0x34866c(_0x3a4eb0,_0x5c5cde,void 0x0),pn);}catch(_0x51f419){if(!_0x3e60d6(_0x51f419))throw _0x51f419;console[_0x268d21(0x32a)](_0x51f419[_0x268d21(0x1e3)]),process[_0x268d21(0x192)](0x1);}}async function ln(_0x1d8953,_0x372a53){const _0x514488=_0x2f269b;let _0x143818;try{_0x143818=_0x1d8953&&_0x1d8953!=='-'?_0x2bd3db[_0x514488(0x274)](_0xfec709['resolve'](_0x1d8953),_0x514488(0x1ad)):await j(_0x1d8953,process['stdin']);}catch(_0xb18eaa){console[_0x514488(0x32a)](_0x372a53+_0x514488(0x1c4)+_0xb18eaa[_0x514488(0x1e3)]+').'),process[_0x514488(0x192)](0x2);}return _0x143818||(console[_0x514488(0x32a)](_0x372a53+_0x514488(0x17a)+_0x372a53+'\x20<file.json>,\x20or\x20-\x20to\x20read\x20stdin.'),process[_0x514488(0x192)](0x2)),Ae(_0x143818,_0x372a53,_0x514488(0x2bb));}function _0x2c43(){const _0x2a83fc=['jsonSchemaPath','backendUrl',':\x20cannot\x20read\x20the\x20JSON\x20schema\x20(','models','probability','\x20from\x20','Tokens:\x20','AUTH_TOKEN_FILE\x20\x27','delegations\x20list\x20<backend-project-id>','No\x20sessions\x20on\x20page\x20','stdin','removeEventListener','No\x20usage\x20in\x20the\x20last\x20','--url','--authority','7052332BZClEv','then','>.\x0a','1\x20or\x20more','log',',\x20or\x20holds\x20no\x20message\x20','string','--no-computer-use','\x20\x20from\x20','\x20applies\x20to\x20prompts\x20and\x20to\x20these\x20commands\x20only:\x20',':\x20bucket\x20number\x20(Enter\x20to\x20leave\x20out):\x20','header','Licensing:\x20\x20\x20\x20no\x20licensing\x20quota\x20applies','package.json','--no-connections','Numbers,\x20separated\x20by\x20commas\x20(Enter\x20to\x20skip):\x20','Task\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','--tenant','intro','delegations\x20accept\x20<delegation-id>','floor','Continue\x20it\x20with:\x20delegate-cli\x20--session\x20','.aria','--skills-path','email','claim','No\x20CLI\x20login\x20to\x20switch:\x20the\x20CLI\x20is\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20','\x20\x22<prompt>\x22\x0a','type','.\x20Use\x20alpha\x20|\x20staging\x20|\x20production\x20|\x20localhost.','max','--project','total_prompt_tokens','object','Source:\x20\x20\x20\x20\x20\x20\x20','page','\x27\x20is\x20empty.','--print','Pass\x20either\x20--env\x20(a\x20named\x20cloud)\x20or\x20--url\x20(any\x20other\x20deployment),\x20not\x20both.','):\x0a\x0a','Missing\x20prompt.\x20Pass\x20it\x20as\x20an\x20argument,\x20pipe\x20it\x20via\x20stdin,\x20or\x20run\x20`delegate-cli\x20--help`.','Delegated\x20','choice\x20','title','kind','optional','spawn','isSafeInteger','close','lastType','initialize','Token:\x20\x20\x20\x20\x20\x20\x20\x20expires\x20','\x20\x20TITLE\x0a','🔧\x20','delegations\x20dismiss\x20<delegation-id>','delegations\x20show\x20<delegation-id|delegate://delegation/…>','a\x20skill\x20name','rejection','from\x20','75781KoWfmh','Turn:\x20','workingDirectory','results','resolve','--tenant\x20requires\x20a\x20tenant\x20name.','9zYdYHX','Your\x20answer,\x20as\x20text\x20(the\x20CLI\x20attaches\x20no\x20files;\x20Enter\x20to\x20skip):\x20','\x20is\x20not\x20valid\x20JSON\x20(','Interop\x20stopped\x20(if\x20it\x20was\x20running).','staging','padEnd','usage','Session\x20','stack','Something\x20else','\x20tokens\x0a','\x20must\x20be\x20a\x20JSON\x20object.','--env','now','a\x20format\x20(','structured','displayName','--headless','transcribe:\x20cannot\x20read\x20','\x20into\x20','Session:\x20','daily_usage','limit','cancel','readFileSync','\x20completion','shift','accessToken','sourceTitle','contextSummary','[env=','skipEnvCheck','\x20or\x20your\x20own\x20answer','\x20\x20(sub-agent\x20of\x20','noConnections','cancelled','thinking','--turn\x20applies\x20to\x20`delegate-cli\x20sessions\x20cancel`\x20only.','\x20cap','done','padStart','The\x20saved\x20CLI\x20login\x20could\x20not\x20be\x20refreshed.\x20Run\x20`delegate-cli\x20login`\x20again.','--json-schema\x20applies\x20to\x20prompts\x20and\x20to\x20`delegate-cli\x20complete`\x20only.','delegations\x20create\x20--session\x20<id>\x20[--to\x20<email|name>]\x20[--summary\x20<text>]\x20\x22<task>\x22|-','startsWith','Organization\x20\x20','auth.json','refused','\x20\x20\x20\x20','limit_enabled','\x20active\x20days','argv','stream-json','Usage:\x20delegate-cli\x20sessions\x20[list]\x20[--page\x20N]\x20[--limit\x20N]\x20[--include-subagents]','structuredError','\x20(optional)','--turn','There\x20is\x20no\x20terminal\x20input\x20to\x20answer\x20from.','isFinite','No\x20models\x20available\x20for\x20this\x20product/tenant.\x0a','\x20(Delegate\x20desktop\x20app\x20fallback)','pct_used','items','deepLink','end','--days\x20applies\x20to\x20`delegate-cli\x20usage\x20activity|daily`\x20only.','status','headless','model_version','The\x20turn\x20was\x20cancelled.','buckets','Invalid\x20--env:\x20','--to','cwd','readLine','Enter\x20one\x20number\x20from\x201\x20to\x20','xhigh','toFixed','3334468vRPWXl','--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`delegate-cli\x20sessions\x20[list]`\x20only.','Invalid\x20--effort:\x20','a\x20briefing\x20text','a\x20directory\x20path','high','alreadyCompleted','10AOKvAF','model_id','total_quota_pu','No\x20answers\x20awaiting\x20acceptance.\x0a','session_consumed_pu','low','--to\x20and\x20--summary\x20apply\x20to\x20`delegate-cli\x20delegations\x20create`\x20only.','--preload-skill','\x20(type\x20your\x20own)','organizationId','the\x20request','fields','check','stdout','--include-subagents','byoWarning','session_start','locked','--backend','question','total_tokens','Licensing:\x20\x20\x20\x20','result','Delegation\x20\x20\x20\x20','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','date','--to,\x20--summary\x20and\x20--session\x20apply\x20to\x20`delegate-cli\x20delegations\x20create`\x20only.','2518947QEMuGZ','orgLogicalName','UiPath\x20Cloud','Unknown\x20flag:\x20','\x20to\x20','toString','attachments','UIPATH_BASE_URL\x20is\x20unusable.\x20','--cartographer','sessions','monthly_limit_usd','detail','\x20|\x20','off','--quiet','description','min','answers','Usage:\x20delegate-cli\x20sessions\x20fork\x20<id>\x20[<message-id>]','choice','add','medium','concat','skip','length','No\x20CLI\x20login\x20found.\x20Note:\x20the\x20CLI\x20is\x20currently\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20','runnerUrl','assignedUser','destroy','auth','active_days','score','--attach','--worker-id','\x0aAccept\x20one\x20with:\x20delegate-cli\x20delegations\x20accept\x20<id>\x0a','getTurnUsageHistory','restore','once','Already\x20answered','includeSubAgents','env','line','Tenant\x20not\x20switched:\x20could\x20not\x20write\x20','\x20token\x20units)','a\x20file\x20path','noMemory','onEvent','Session:\x20\x20\x20\x20\x20\x20','catch','push','a\x20colleague','abort','):\x20','prompt_tokens','filter','8QJcFzH','includes','subFields','verbose','--session','estimated_cost_usd','✓\x20Done\x0a','toolName','complete\x20needs\x20a\x20prompt:\x20delegate-cli\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22,\x20or\x20-\x20to\x20read\x20stdin.','unit','\x20this\x20month','delegations\x20complete\x20<delegation-id>\x20\x22<answer>\x22|-','delegations\x20cancel\x20<delegation-id>','dismiss','Enter\x20numbers\x20from\x201\x20to\x20','exitCode','transcribe','isInteger','days','cleanup','confidence','a\x20number','--summary','ASSIGNEE','\x20(in\x20','score\x20','42470pzIoQX','numeric','\x20PU\x20used','questions','text','\x0a⚠️\x20\x20Auth\x20expired.\x20Opening\x20browser\x20to\x20re-login…\x0a','tenant','daily','completion_tokens','prompt','delegations\x20delete\x20<delegation-id>','\x20days.\x0a','parentSessionId','error','tenantId','Tenant:\x20\x20\x20\x20\x20\x20\x20','Owner\x20\x20\x20\x20\x20\x20\x20\x20\x20','fork','From\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20not\x20found.','Base\x20URL:\x20\x20\x20\x20\x20','Answered','probability\x20','evaluate','assignedUserEmail','from','UPDATED','step','noSecurity','lockReason','entries','Spending:\x20\x20\x20\x20\x20$',')\x20—\x20saved\x20to\x20','stderr','noComputerUse','test','keys','unknown','2425nhEqHg','pendingResults','name','\x20delegation\x20','trim','--verbose','some','--days\x20applies\x20to\x20`delegate-cli\x20usage\x20activity|daily`;\x20the\x20summary\x20covers\x20the\x20current\x20month.','pending','total_token_units','effort','--task-automation\x20applies\x20to\x20prompts\x20only.','--runner-url','delegation','Claimed\x20from\x20delegation\x20','\x20(no\x20cap\x20enforced)','--skip-env-check','all','\x20(stdin\x20was\x20empty)','tokenExpiresAt','url','oneTurn','STATUS','\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).','11928FtXAWp','total_cost_usd','create','\x20(estimated\x20$','replace','Enter\x20a\x20number\x20',').\x0a','deployment','print','\x20PU','login','localhost','activity','split','org-users','index','alreadyAccepted','self-hosted\x20(Automation\x20Suite\x20/\x20Dedicated)','transcribe\x20needs\x20audio:\x20delegate-cli\x20transcribe\x20<file>,\x20or\x20-\x20to\x20read\x20stdin.','taskAutomation','an\x20effort\x20tier','stringify','isTTY','\x20needs\x20a\x20JSON\x20request:\x20delegate-cli\x20','isArray','complete','--url\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Other\x20commands\x20follow\x20the\x20saved\x20login,\x20or\x20--backend\x20<url>.','Invalid\x20--output-format:\x20','Usage:\x20delegate-cli\x20','Cancel\x20requested\x20for\x20turn\x20','tenantName','\x20<id>','You>\x20','\x20min)','setPrompt','a\x20JSON\x20schema\x20file','delegationId','delegateTo','preloadSkills','tool','delegations\x20claim\x20<delegation-id|delegate://delegation/…>','projectId','slice',',\x20whose\x20tenant\x20is\x20chosen\x20in\x20the\x20app.\x20Run\x20`delegate-cli\x20login\x20--env\x20<env>`\x20for\x20a\x20CLI\x20login\x20of\x20your\x20own.','Model\x20','delegations','task','exit','verify','Switch\x20with:\x20delegate-cli\x20tenant\x20<name>\x0a','--tenant\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Switch\x20tenants\x20with:\x20delegate-cli\x20tenant\x20<name>','aborted','SIGINT','period_days','resume','.\x20Use:\x20','file','every','ID\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x22.\x0a','erase','sessionId','More:\x20delegate-cli\x20sessions\x20--page\x20','Token:\x20\x20\x20\x20\x20\x20\x20\x20expired\x20','\x0aAvailable\x20models\x20(','existsSync','cartographer','round','accept','delegations\x20pending\x20<session-id>','interopPath','3781173RIBYsK','Tenant:\x20','tool_call','utf-8','/exit','host','\x20prompt,\x20','Work\x20on\x20it\x20with:\x20delegate-cli\x20--session\x20','\x20-\x20','turnId','input','hide','userId','Structured\x20output\x20failed:\x20','isError','No\x20structured\x20output:\x20the\x20turn\x20failed\x20(','--skip-env-check\x20applies\x20to\x20`delegate-cli\x20login`\x20only.','quiet','whoami','rmSync','period_end','operands','--effort','\x20token\x20units','rerank','Invalid\x20--project:\x20\x22',':\x20cannot\x20read\x20the\x20request\x20(','map','--output-format','Last\x20','Session\x20\x20\x20\x20\x20\x20\x20','pause','turn_start','model','.\x20Share:\x20','show','parse','Usage:\x20delegate-cli\x20sessions\x20','getSessionId','stop','extra_pool_consumed_pu','options','help','typed','--json-schema','alpha','Bearer\x20','Number','bundledSkillsPath','\x20must\x20be\x20a\x20whole\x20number\x20','a\x20deployment\x20URL,\x20e.g.\x20https://automationsuite.contoso.com','--help','--interop','Usage:\x20delegate-cli\x20org-users\x20<name\x20or\x20email\x20prefix>','label','list','join','message','subcommand','Enter\x20sends\x20a\x20message.\x20/exit\x20or\x20EOF\x20exits;\x20Ctrl+C\x20stops\x20and\x20exits.\x0a','origin','a\x20turn\x20id','deleted','logout','sendMessage','isDesktopFallback','.\x20Use\x20','delete','\x20(confidence\x20','outputFormat','keepAlive','\x20(current)','workerId','Forked\x20','--cleanup','Use:\x20delegate-cli\x20delegations\x20','Unknown\x20usage\x20view:\x20','write','\x20(resume\x20with\x20--session\x20','content','\x20\x20(input\x20#','finish','--no-memory','multiSelect','rename','Could\x20not\x20check\x20BYO\x20model\x20warnings:\x20','Removed\x20','\x20--turn\x20','Created\x20delegation\x20','--limit','\x20in\x20progress\x20on\x20session\x20','a\x20project\x20id','\x0a🤔\x20','\x20requires\x20','endQuestions','response','baseUrl','code'];_0x2c43=function(){return _0x2a83fc;};return _0x2c43();}function Ae(_0x1aebc9,_0x1e0c75,_0x3275c9){const _0x4b41a6=_0x2f269b;let _0x1949bf;try{_0x1949bf=JSON['parse'](_0x1aebc9);}catch(_0x5177d1){console[_0x4b41a6(0x32a)](_0x1e0c75+':\x20'+_0x3275c9+_0x4b41a6(0x25e)+_0x5177d1[_0x4b41a6(0x1e3)]+').'),process[_0x4b41a6(0x192)](0x2);}return(typeof _0x1949bf!=_0x4b41a6(0x23c)||_0x1949bf===null||Array[_0x4b41a6(0x17b)](_0x1949bf))&&(console[_0x4b41a6(0x32a)](_0x1e0c75+':\x20'+_0x3275c9+_0x4b41a6(0x267)),process[_0x4b41a6(0x192)](0x2)),_0x1949bf;}function $e(_0x77b216,_0x10ab73){const _0x65d544=_0x2f269b;let _0x335a7a;try{_0x335a7a=_0x2bd3db['readFileSync'](_0xfec709[_0x65d544(0x25a)](_0x77b216),_0x65d544(0x1ad));}catch(_0x566e9b){console[_0x65d544(0x32a)](_0x10ab73+_0x65d544(0x20e)+_0x566e9b[_0x65d544(0x1e3)]+').'),process[_0x65d544(0x192)](0x2);}return Ae(_0x335a7a,_0x10ab73,'the\x20JSON\x20schema');}async function cn(_0x430dc4){const _0x1b7872=_0x2f269b;_0x430dc4[_0x1b7872(0x20c)]===void 0x0&&(console[_0x1b7872(0x32a)]('complete\x20needs\x20--json-schema\x20<file>:\x20delegate-cli\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22.'),process[_0x1b7872(0x192)](0x2));let _0x5d0932=$e(_0x430dc4[_0x1b7872(0x20c)],_0x1b7872(0x17c)),_0x419dc1=(await j(_0x430dc4[_0x1b7872(0x326)],process[_0x1b7872(0x216)]))[_0x1b7872(0x347)]();_0x419dc1||(console[_0x1b7872(0x32a)](_0x1b7872(0x30b)),process[_0x1b7872(0x192)](0x2));let {client:_0x119a99}=await v(_0x430dc4);try{let _0x347ca3=await _0x48faa3(_0x119a99,{'prompt':_0x419dc1,'jsonSchema':_0x5d0932,'model':_0x430dc4[_0x1b7872(0x1cb)]||process.env.MODEL||_0x3b4d2c,..._0x430dc4[_0x1b7872(0x1a0)]!==void 0x0&&{'sessionId':_0x430dc4['sessionId']}},void 0x0);u(_0x430dc4,_0x347ca3,_0x2a61d5=>{const _0xc4d041=_0x1b7872;process['stdout'][_0xc4d041(0x1f7)](JSON[_0xc4d041(0x178)](_0x2a61d5[_0xc4d041(0x26b)],null,0x2)+'\x0a');});}catch(_0x243b13){if(!_0x3f49a3(_0x243b13))throw _0x243b13;console[_0x1b7872(0x32a)](_0x243b13['message']),process[_0x1b7872(0x192)](0x1);}}function Y(_0x47768e){const _0x350f6f=_0x2f269b;process[_0x350f6f(0x2be)][_0x350f6f(0x1f7)](_0x350f6f(0x18f)+_0x47768e[_0x350f6f(0x1cb)]+'\x20('+_0x47768e[_0x350f6f(0x2a0)]+'),\x20'+_0x47768e[_0x350f6f(0x262)][_0x350f6f(0x2c5)]+_0x350f6f(0x266));}function dn(_0x33d052){const _0x376bd9=_0x2f269b;Y(_0x33d052);for(let _0x2f5de7 of Object[_0x376bd9(0x341)](_0x33d052[_0x376bd9(0x2dd)])){let _0x23fb2c=_0x33d052[_0x376bd9(0x2dd)][_0x2f5de7],_0x155288=_0x23fb2c[_0x376bd9(0x237)]===_0x376bd9(0x210)?_0x376bd9(0x333)+_0x23fb2c['probability']['toFixed'](0x2):_0x23fb2c[_0x376bd9(0x237)]==='choice'?_0x376bd9(0x245)+_0x23fb2c[_0x376bd9(0x2df)]+_0x376bd9(0x1ee)+_0x23fb2c[_0x376bd9(0x317)][_0x376bd9(0x2a9)](0x2)+')':_0x376bd9(0x31c)+_0x23fb2c[_0x376bd9(0x2eb)]['toFixed'](0x2)+_0x376bd9(0x1ee)+_0x23fb2c['confidence'][_0x376bd9(0x2a9)](0x2)+')';process[_0x376bd9(0x2be)][_0x376bd9(0x1f7)]('\x20\x20'+_0x2f5de7+':\x20'+_0x155288+'\x0a');}}function un(_0x33d7fb){const _0x59297b=_0x2f269b;Y(_0x33d7fb),_0x33d7fb[_0x59297b(0x259)]['forEach']((_0x353fc1,_0x22d563)=>{const _0x2e9ec0=_0x59297b;process['stdout'][_0x2e9ec0(0x1f7)]('\x20\x20'+(_0x22d563+0x1)+'.\x20'+_0x353fc1['id']+'\x20\x20'+_0x353fc1[_0x2e9ec0(0x2eb)][_0x2e9ec0(0x2a9)](0x3)+_0x2e9ec0(0x1fa)+_0x353fc1[_0x2e9ec0(0x172)]+')\x0a');});}function pn(_0x3ac5a5){const _0x475946=_0x2f269b;Y(_0x3ac5a5),process['stdout'][_0x475946(0x1f7)]('Rubric\x20'+_0x3ac5a5['rubric_version']+'\x0a');for(let _0x457e5d of _0x3ac5a5[_0x475946(0x259)])process['stdout'][_0x475946(0x1f7)]('\x20\x20'+_0x457e5d['id']+':\x20'+_0x457e5d['verdict']+_0x475946(0x1ee)+_0x457e5d[_0x475946(0x317)][_0x475946(0x2a9)](0x2)+')\x0a');}async function mn(_0x4ec805){const _0x4685cb=_0x2f269b;let _0x2b86c1=_0x4ec805['prompt'][_0x4685cb(0x347)]();_0x2b86c1||(console['error'](_0x4685cb(0x175)),process[_0x4685cb(0x192)](0x2));let {client:_0x5dd3bf}=await v(_0x4ec805);try{let _0x1d4ef7=_0x2b86c1==='-'?{'data':await fn(process[_0x4685cb(0x216)])}:_0x2b86c1;u(_0x4ec805,await _0x6a270b(_0x5dd3bf,_0x1d4ef7,void 0x0),_0x523786=>{const _0x5146ae=_0x4685cb;process[_0x5146ae(0x2be)]['write'](_0x523786[_0x5146ae(0x321)]+'\x0a');});}catch(_0x453cb3){if(_0x1a6e32(_0x453cb3)&&(console[_0x4685cb(0x32a)](_0x453cb3['message']),process['exit'](_0x453cb3[_0x4685cb(0x29e)]===void 0x0?0x2:0x1)),typeof _0x453cb3?.[_0x4685cb(0x20b)]!=_0x4685cb(0x221))throw _0x453cb3;console[_0x4685cb(0x32a)](_0x4685cb(0x26e)+_0x2b86c1+'\x20('+_0x453cb3[_0x4685cb(0x1e3)]+').'),process[_0x4685cb(0x192)](0x2);}}async function fn(_0x25f85f){const _0x14aa56=_0x2f269b;let _0x322c8c=[];for await(let _0x278819 of _0x25f85f)_0x322c8c['push'](Buffer[_0x14aa56(0x336)](_0x278819));return Buffer[_0x14aa56(0x2e2)](_0x322c8c);}var ce=[_0x2f269b(0x1e1),'pending','show',_0x2f269b(0x165),_0x2f269b(0x234),_0x2f269b(0x17c),_0x2f269b(0x1a7),_0x2f269b(0x310),_0x2f269b(0x273),'delete'],de={'list':_0x2f269b(0x214),'pending':_0x2f269b(0x1a8),'show':_0x2f269b(0x252),'create':_0x2f269b(0x287),'claim':_0x2f269b(0x18b),'complete':_0x2f269b(0x30e),'accept':_0x2f269b(0x22e),'dismiss':_0x2f269b(0x251),'cancel':_0x2f269b(0x30f),'delete':_0x2f269b(0x327)};async function gn(_0x3b22c8){const _0xce57b=_0x2f269b;let [_0x39e605='',_0xbffa90='',..._0x41d3e5]=_0x3b22c8[_0xce57b(0x1bf)];ce['includes'](_0x39e605)||(console[_0xce57b(0x32a)]((_0x39e605?'Unknown\x20delegations\x20action:\x20'+_0x39e605+'.\x20':'')+_0xce57b(0x1f5)+ce[_0xce57b(0x1e2)](_0xce57b(0x2d8))+'.'),process[_0xce57b(0x192)](0x2));let _0x467aa5=_0x39e605;_0x467aa5!==_0xce57b(0x165)&&(_0x3b22c8[_0xce57b(0x188)]!==void 0x0||_0x3b22c8[_0xce57b(0x279)]!==void 0x0||_0x3b22c8['sessionId']!==void 0x0)&&(console[_0xce57b(0x32a)](_0xce57b(0x2cb)),process[_0xce57b(0x192)](0x2));let _0x28e4da=(_0x467aa5==='create'?_0x3b22c8[_0xce57b(0x1bf)][_0xce57b(0x18d)](0x1):_0x41d3e5)[_0xce57b(0x1e2)]('\x20')['trim'](),_0x272df2=_0x467aa5===_0xce57b(0x165)||_0x467aa5===_0xce57b(0x17c);(_0x467aa5!==_0xce57b(0x165)&&!_0xbffa90||(_0x272df2?!_0x28e4da:_0x28e4da)||_0x467aa5==='create'&&!_0x3b22c8[_0xce57b(0x1a0)])&&(console[_0xce57b(0x32a)](_0xce57b(0x17f)+de[_0x467aa5]),process[_0xce57b(0x192)](0x2));let _0x5c3c47=_0x272df2&&_0x28e4da==='-'?(await j('-',process[_0xce57b(0x216)]))[_0xce57b(0x347)]():_0x28e4da;_0x272df2&&!_0x5c3c47&&(console['error'](_0xce57b(0x17f)+de[_0x467aa5]+_0xce57b(0x355)),process[_0xce57b(0x192)](0x2));let {client:_0x2fceab}=await v(_0x3b22c8);try{await hn(_0x3b22c8,_0x2fceab,_0x467aa5,_0xbffa90,_0x5c3c47);}catch(_0x2291d0){if(!_0x146ea8(_0x2291d0))throw _0x2291d0;console[_0xce57b(0x32a)](_0x2291d0[_0xce57b(0x1e3)]),process['exit'](0x1);}}async function hn(_0x356444,_0x3dad99,_0x5b78de,_0x2f2a2f,_0x407884){const _0x149bea=_0x2f269b;switch(_0x5b78de){case _0x149bea(0x1e1):u(_0x356444,await _0x35f7e1(_0x3dad99,_0x2f2a2f),yn);return;case _0x149bea(0x34b):u(_0x356444,await _0x4fa16e(_0x3dad99,_0x2f2a2f),_0x44477d=>{const _0x29ccff=_0x149bea;_0x44477d[_0x29ccff(0x350)]&&process[_0x29ccff(0x2be)]['write'](_0x29ccff(0x351)+_0x44477d[_0x29ccff(0x350)]['id']+'\x20('+_0x44477d[_0x29ccff(0x350)][_0x29ccff(0x29e)]+_0x29ccff(0x169)),_0x44477d[_0x29ccff(0x344)]['length']===0x0&&process['stderr'][_0x29ccff(0x1f7)](_0x29ccff(0x2b4));for(let _0x1de2de of _0x44477d['pendingResults'])process[_0x29ccff(0x2be)][_0x29ccff(0x1f7)]('\x0a'+_0x1de2de['id']+_0x29ccff(0x223)+(_0x1de2de[_0x29ccff(0x335)]??_0x29ccff(0x2fe))+'\x20\x20'+(_0x1de2de[_0x29ccff(0x191)]??'')+'\x0a'+(_0x1de2de[_0x29ccff(0x2c7)]?.[_0x29ccff(0x1f9)]??'')+'\x0a');_0x44477d['pendingResults'][_0x29ccff(0x2e4)]>0x0&&process[_0x29ccff(0x33e)]['write'](_0x29ccff(0x2ee));});return;case _0x149bea(0x1cd):u(_0x356444,await _0x63dce7(_0x3dad99,_0x2f2a2f),ue);return;case _0x149bea(0x165):{let _0x1f0884=await _0x458734(_0x3dad99,{'sessionId':_0x356444[_0x149bea(0x1a0)],'task':_0x407884,..._0x356444[_0x149bea(0x279)]!==void 0x0&&{'contextSummary':_0x356444['contextSummary']},..._0x356444[_0x149bea(0x188)]!==void 0x0&&{'recipient':_0x356444[_0x149bea(0x188)]}});u(_0x356444,_0x1f0884,_0x5605c5=>{const _0x4727be=_0x149bea;_0x5605c5['assignedUser']?process[_0x4727be(0x2be)]['write'](_0x4727be(0x244)+_0x5605c5[_0x4727be(0x187)]+_0x4727be(0x2d0)+_0x5605c5[_0x4727be(0x2e7)][_0x4727be(0x26c)]+'\x20<'+_0x5605c5['assignedUser']['email']+_0x4727be(0x21d)):process['stdout']['write'](_0x4727be(0x202)+_0x5605c5['delegationId']+_0x4727be(0x1cc)+_0x5605c5[_0x4727be(0x29b)]+'\x0a');});return;}case'claim':{let _0x349fd4=await _0x42d369(_0x3dad99,_0x2f2a2f);u(_0x356444,_0x349fd4,_0x21a33b=>{const _0x4f608d=_0x149bea;ue(_0x21a33b),process[_0x4f608d(0x2be)][_0x4f608d(0x1f7)](_0x4f608d(0x1c8)+_0x21a33b[_0x4f608d(0x1a0)]+'\x0a'),process[_0x4f608d(0x33e)][_0x4f608d(0x1f7)](_0x4f608d(0x1b1)+_0x21a33b['sessionId']+'\x20\x22<prompt>\x22\x0aAnswer\x20with:\x20delegate-cli\x20delegations\x20complete\x20'+_0x21a33b['delegationId']+'\x20\x22<answer>\x22\x0a');});return;}case'complete':{let {alreadyCompleted:_0x57cac1}=await _0x4ddfbb(_0x3dad99,_0x2f2a2f,{'content':_0x407884});u(_0x356444,{'delegationId':_0x2f2a2f,'alreadyCompleted':_0x57cac1},_0x602aa6=>{const _0x4d063f=_0x149bea;process['stdout'][_0x4d063f(0x1f7)]((_0x602aa6[_0x4d063f(0x2b0)]?_0x4d063f(0x2f2):_0x4d063f(0x332))+'\x20delegation\x20'+_0x602aa6[_0x4d063f(0x187)]+'.\x0a');});return;}case _0x149bea(0x1a7):{let _0xf2c6e0=await _0x2d4074(_0x3dad99,_0x2f2a2f);u(_0x356444,{'delegationId':_0x2f2a2f,..._0xf2c6e0},_0x2cb875=>{const _0x15ef63=_0x149bea;process[_0x15ef63(0x2be)]['write']((_0x2cb875[_0x15ef63(0x173)]?'Already\x20accepted':'Accepted')+_0x15ef63(0x346)+_0x2cb875[_0x15ef63(0x187)]+'.\x0a');});return;}default:{let _0x3c02e7={'dismiss':_0x1d5b2e,'cancel':_0x5df49f,'delete':_0x49dc1f}[_0x5b78de];await _0x3c02e7(_0x3dad99,_0x2f2a2f);let _0x5b589c={'dismiss':'dismissed','cancel':_0x149bea(0x27f),'delete':_0x149bea(0x1e8)}[_0x5b78de];u(_0x356444,{'delegationId':_0x2f2a2f,[_0x5b589c]:!0x0},()=>{const _0x1be5f1=_0x149bea;process[_0x1be5f1(0x2be)][_0x1be5f1(0x1f7)](''+_0x5b589c[0x0]['toUpperCase']()+_0x5b589c['slice'](0x1)+'\x20delegation\x20'+_0x2f2a2f+'.\x0a');});}}}function yn(_0x31e3e8){const _0x5195a8=_0x2f269b;if(_0x31e3e8[_0x5195a8(0x2e4)]===0x0){process[_0x5195a8(0x33e)][_0x5195a8(0x1f7)]('No\x20delegations.\x0a');return;}process[_0x5195a8(0x2be)]['write']('ID'[_0x5195a8(0x261)](0x24)+'\x20\x20'+_0x5195a8(0x161)[_0x5195a8(0x261)](0x9)+'\x20\x20'+_0x5195a8(0x31a)['padEnd'](0x18)+'\x20\x20TASK\x0a');for(let _0x1a7e9b of _0x31e3e8)process[_0x5195a8(0x2be)][_0x5195a8(0x1f7)](_0x1a7e9b['id']['padEnd'](0x24)+'\x20\x20'+_0x1a7e9b[_0x5195a8(0x29e)][_0x5195a8(0x261)](0x9)+'\x20\x20'+(_0x1a7e9b['assignedUserEmail']??'-')[_0x5195a8(0x261)](0x18)+'\x20\x20'+(_0x1a7e9b['task']??'')+'\x0a');}function ue(_0x1e3c78){const _0x46b144=_0x2f269b;process['stdout'][_0x46b144(0x1f7)](_0x46b144(0x32f)+(_0x1e3c78['sourceUserEmail']??'-')+'\x0a'),_0x1e3c78[_0x46b144(0x278)]&&process[_0x46b144(0x2be)][_0x46b144(0x1f7)](_0x46b144(0x1c8)+_0x1e3c78[_0x46b144(0x278)]+'\x0a'),process[_0x46b144(0x2be)]['write'](_0x46b144(0x22b)+(_0x1e3c78[_0x46b144(0x191)]??'-')+'\x0a'),_0x1e3c78[_0x46b144(0x279)]&&process['stdout'][_0x46b144(0x1f7)]('\x0a'+_0x1e3c78['contextSummary']+'\x0a\x0a');}async function wn(_0x4686c7){const _0x100563=_0x2f269b;_0x4686c7[_0x100563(0x326)]['trim']()||(console[_0x100563(0x32a)](_0x100563(0x1df)),process['exit'](0x2));let {client:_0x446376}=await v(_0x4686c7),_0x5208c4;try{_0x5208c4=await _0x3f94da(_0x446376,_0x4686c7[_0x100563(0x326)]);}catch(_0x56afe5){if(!_0x146ea8(_0x56afe5))throw _0x56afe5;console['error'](_0x56afe5[_0x100563(0x1e3)]),process[_0x100563(0x192)](0x1);}u(_0x4686c7,_0x5208c4,_0x457dbe=>{const _0x557581=_0x100563;_0x457dbe[_0x557581(0x2e4)]===0x0&&process['stderr'][_0x557581(0x1f7)]('No\x20one\x20matches\x20\x22'+_0x4686c7['prompt'][_0x557581(0x347)]()+_0x557581(0x19e));for(let _0x36924a of _0x457dbe)process[_0x557581(0x2be)]['write'](_0x36924a[_0x557581(0x233)][_0x557581(0x261)](0x20)+'\x20\x20'+_0x36924a['displayName']+'\x0a');});}async function kn(_0xa5e82c){const _0x461a74=_0x2f269b;_0xa5e82c[_0x461a74(0x2f4)]===_0x461a74(0x16e)&&(console[_0x461a74(0x32a)]('--env\x20localhost\x20has\x20no\x20OAuth\x20flow;\x20pick\x20alpha,\x20staging,\x20or\x20production.'),process[_0x461a74(0x192)](0x2));let _0x1b32bd=M(_0x3358b3()),_0x2d0119=_0xa5e82c[_0x461a74(0x27b)];if(_0xa5e82c[_0x461a74(0x2f4)]){let _0x2c7864=_0xa5e82c[_0x461a74(0x2f4)];await _0x34c847({'env':_0x2c7864,'tenant':_0xa5e82c[_0x461a74(0x323)]??G(_0x1b32bd,_0x571927[_0x2c7864]),'skipEnvCheck':_0x2d0119});return;}let _0x2272b0=_0xa5e82c[_0x461a74(0x15f)]??ve();if(_0x2272b0){await _0x34c847({'baseUrl':_0x2272b0,'tenant':_0xa5e82c['tenant']??G(_0x1b32bd,_0x2272b0),'skipEnvCheck':_0x2d0119});return;}if(_0x1b32bd?.['baseUrl']){await _0x34c847({'baseUrl':_0x1b32bd[_0x461a74(0x20a)],'tenant':_0xa5e82c['tenant']??_0x1b32bd['tenantName'],'skipEnvCheck':_0x2d0119});return;}console[_0x461a74(0x32a)](_0x461a74(0x2c9)),process[_0x461a74(0x192)](0x2);}function G(_0xafbb91,_0x87d90d){const _0x1d1e58=_0x2f269b;return _0xafbb91?.[_0x1d1e58(0x20a)]&&bn(_0xafbb91[_0x1d1e58(0x20a)],_0x87d90d)?_0xafbb91['tenantName']:void 0x0;}function bn(_0x5c1e93,_0x155090){const _0x375a8e=_0x2f269b;try{return new URL(_0x5c1e93)[_0x375a8e(0x1e6)]===new URL(_0x155090)[_0x375a8e(0x1e6)];}catch{return!0x1;}}async function Sn(_0x484879){const _0x389fc6=_0x2f269b;Q()&&(console[_0x389fc6(0x32a)]('Auth\x20comes\x20from\x20AUTH_TOKEN/TENANT_ID/ORG_ID\x20—\x20set\x20TENANT_ID\x20and\x20TENANT_SLUG\x20to\x20change\x20the\x20tenant.'),process[_0x389fc6(0x192)](0x2));let _0x461efd=await _0x5d655b();if(_0x461efd||(console[_0x389fc6(0x32a)](vn()),process['exit'](0x2)),_0x484879[_0x389fc6(0x347)]()){let _0x7abd92=await _0x67d043(_0x461efd,_0x484879);_0xbaa481(_0x7abd92)||(console['error'](_0x389fc6(0x2f6)+_0x3358b3()+';\x20the\x20saved\x20login\x20still\x20uses\x20'+_0x461efd['tenantName']+'.'),process[_0x389fc6(0x192)](0x1)),console[_0x389fc6(0x21f)](_0x389fc6(0x1ab)+_0x7abd92[_0x389fc6(0x181)]+'\x20('+_0x7abd92[_0x389fc6(0x32b)]+_0x389fc6(0x33d)+_0x3358b3());return;}An(await _0x5cb0d8(_0x461efd),_0x461efd);}function vn(){const _0xc8a0b8=_0x2f269b;if(_0x2bd3db[_0xc8a0b8(0x1a4)](_0x3358b3()))return _0xc8a0b8(0x285);let _0x3f5702=K();return M(_0x3f5702)?_0xc8a0b8(0x235)+_0x3f5702+_0xc8a0b8(0x18e):'No\x20CLI\x20login\x20found.\x20Run\x20`delegate-cli\x20login\x20--env\x20<alpha|staging|production>`\x20first.';}function An(_0x2180bf,_0x152512){const _0x1bcfc9=_0x2f269b;let _0x5558d5=_0x2180bf['map'](_0x4906d2=>_0x4906d2['id']===_0x152512['tenantId']?'*\x20'+_0x4906d2['name']+_0x1bcfc9(0x1f1):'\x20\x20'+_0x4906d2[_0x1bcfc9(0x345)]);process[_0x1bcfc9(0x2be)]['write']('Tenants\x20of\x20'+(_0x152512[_0x1bcfc9(0x2cd)]??_0x152512[_0x1bcfc9(0x2ba)])+':\x0a'+_0x5558d5[_0x1bcfc9(0x1e2)]('\x0a')+'\x0a'),_0x2180bf[_0x1bcfc9(0x2e4)]>0x1&&process[_0x1bcfc9(0x2be)][_0x1bcfc9(0x1f7)](_0x1bcfc9(0x194));}function $n(_0x382e98){const _0xb52a66=_0x2f269b;return _0x382e98?.[_0xb52a66(0x209)]?.['status']===0x191||/401/[_0xb52a66(0x340)](String(_0x382e98?.[_0xb52a66(0x1e3)]??''));}var f={'lastType':null,'quiet':!0x1},Ee=_0x2589ba=>{const _0x197594=_0x2f269b;switch(_0x2589ba[_0x197594(0x237)]){case _0x197594(0x2c1):_0x2589ba[_0x197594(0x1a0)]&&_0x2589ba[_0x197594(0x1a0)]!==f[_0x197594(0x1a0)]&&(process['stderr'][_0x197594(0x1f7)](_0x197594(0x270)+_0x2589ba[_0x197594(0x1a0)]+_0x197594(0x1f8)+_0x2589ba[_0x197594(0x1a0)]+')\x0a'),f[_0x197594(0x1a0)]=_0x2589ba[_0x197594(0x1a0)]);break;case'turn_start':_0x2589ba[_0x197594(0x1b3)]&&_0x2589ba['turnId']!==f[_0x197594(0x1b3)]&&(f[_0x197594(0x24c)]!==null&&process[_0x197594(0x33e)][_0x197594(0x1f7)]('\x0a'),process[_0x197594(0x33e)][_0x197594(0x1f7)](_0x197594(0x257)+_0x2589ba[_0x197594(0x1b3)]+'\x20(cancel\x20with:\x20delegate-cli\x20sessions\x20cancel\x20'+_0x2589ba['sessionId']+_0x197594(0x201)+_0x2589ba['turnId']+')\x0a'),f[_0x197594(0x1b3)]=_0x2589ba[_0x197594(0x1b3)],f['lastType']=_0x197594(0x1ca));break;case'thinking':_0x2589ba[_0x197594(0x1f9)]&&!f[_0x197594(0x1bb)]&&(f[_0x197594(0x24c)]!==_0x197594(0x280)&&process[_0x197594(0x33e)][_0x197594(0x1f7)](_0x197594(0x206)),process[_0x197594(0x33e)][_0x197594(0x1f7)](_0x2589ba[_0x197594(0x1f9)]),f[_0x197594(0x24c)]=_0x197594(0x280));break;case'tool_call':f[_0x197594(0x24c)]!==null&&process[_0x197594(0x33e)][_0x197594(0x1f7)]('\x0a'),process[_0x197594(0x33e)]['write'](_0x197594(0x250)+(_0x2589ba[_0x197594(0x30a)]??_0x197594(0x18a))+'\x0a'),f[_0x197594(0x24c)]=_0x197594(0x1ac);break;case _0x197594(0x1e3):_0x2589ba[_0x197594(0x1f9)]&&(f['lastType']!==_0x197594(0x1e3)&&f['lastType']!==null&&process[_0x197594(0x2be)][_0x197594(0x1f7)]('\x0a'),process[_0x197594(0x2be)]['write'](_0x2589ba[_0x197594(0x1f9)]),f[_0x197594(0x24c)]=_0x197594(0x1e3));break;case _0x197594(0x32a):f[_0x197594(0x24c)]!==null&&process['stderr']['write']('\x0a'),process['stderr'][_0x197594(0x1f7)]('✗\x20'+(_0x2589ba[_0x197594(0x32a)]??'error')+'\x0a'),f[_0x197594(0x24c)]='error';break;case _0x197594(0x283):(f[_0x197594(0x24c)]===_0x197594(0x1e3)||f['lastType']==='thinking')&&process['stdout'][_0x197594(0x1f7)]('\x0a'),process[_0x197594(0x33e)]['write'](_0x197594(0x309)),f[_0x197594(0x24c)]='done';break;}};function pe(_0x58e0da,_0x43bece,_0x2a5bf4,_0x472532){const _0x156bd6=_0x2f269b;let _0x597074=_0x58e0da['model']||process.env.MODEL;return{'backendUrl':_0x2a5bf4,'auth':_0x43bece,'enableComputerUse':!_0x58e0da[_0x156bd6(0x29f)]&&!_0x58e0da['noComputerUse'],'autoSpawnInterop':!_0x58e0da[_0x156bd6(0x29f)],'enableConnections':!_0x58e0da['noConnections'],'enableSecurity':!_0x58e0da[_0x156bd6(0x339)],'keepInteropAlive':_0x58e0da[_0x156bd6(0x1f0)],..._0x472532[_0x156bd6(0x160)]?{'enableBackgroundCommands':!0x1}:{},..._0x58e0da['noMemory']?{'enableMemory':!0x1}:{},..._0x58e0da[_0x156bd6(0x176)]?{'enableTaskAutomation':!0x0}:{},..._0x58e0da['preloadSkills'][_0x156bd6(0x2e4)]>0x0?{'preloadSkills':_0x58e0da[_0x156bd6(0x189)]}:{},..._0x597074?{'model':_0x597074}:{},..._0x58e0da[_0x156bd6(0x18c)]?{'projectId':_0x58e0da[_0x156bd6(0x18c)]}:{},..._0x58e0da['workingDirectory']?{'workingDirectory':_0x58e0da['workingDirectory']}:{},..._0x58e0da[_0x156bd6(0x1da)]?{'bundledSkillsPath':_0x58e0da[_0x156bd6(0x1da)]}:{},..._0x58e0da[_0x156bd6(0x34d)]?{'effort':_0x58e0da[_0x156bd6(0x34d)]}:{},..._0x58e0da['sessionId']?{'sessionId':_0x58e0da[_0x156bd6(0x1a0)]}:{},..._0x58e0da[_0x156bd6(0x306)]?{'verbose':!0x0}:{}};}async function En(_0xf8388d){const _0x1f617c=_0x2f269b;let _0x33538c=_0xf8388d[_0x1f617c(0x1ef)]!==_0x1f617c(0x321),_0x582386=_0xf8388d['jsonSchemaPath']===void 0x0?null:$e(_0xf8388d[_0x1f617c(0x20c)],'delegate-cli'),_0xbb0c8f=!_0x33538c&&!_0x582386&&!_0xf8388d[_0x1f617c(0x16b)]&&_0xf8388d[_0x1f617c(0x326)]!=='-'&&!!process['stdin']['isTTY']&&!!process[_0x1f617c(0x2be)]['isTTY'],_0x3a3d5b=_0xbb0c8f?_0xf8388d['prompt'][_0x1f617c(0x347)]():await j(_0xf8388d['prompt'],process['stdin']);if(!_0xbb0c8f&&!_0x3a3d5b&&(console['error'](_0x1f617c(0x243)),process[_0x1f617c(0x192)](0x2)),!_0x33538c){await me(_0xf8388d,_0x3a3d5b,_0xbb0c8f,null,_0x582386);return;}let _0x2f1578=!0x1,_0xdec55d=_0x414338=>{const _0x3b801d=_0x1f617c;_0x2f1578=!0x0,P(_0xee577d(_0x414338)),(_0x414338['isError']||_0x414338[_0x3b801d(0x292)])&&(process[_0x3b801d(0x312)]=0x1);},_0x37db18=Date['now']();try{await me(_0xf8388d,_0x3a3d5b,!0x1,_0xdec55d,_0x582386);}catch(_0x2ca468){if(_0x2f1578)throw _0x2ca468;process[_0x1f617c(0x33e)]['write']((_0x2ca468 instanceof Error?_0x2ca468[_0x1f617c(0x264)]??_0x2ca468['message']:String(_0x2ca468))+'\x0a'),_0xdec55d(new _0x34e184(_0x37db18)[_0x1f617c(0x1fb)]({'endedAtMs':Date['now'](),'usage':[],'error':_0x2ca468}));}}async function me(_0x5e8d41,_0x177f6f,_0x23407a,_0x77a37d,_0x32f3a4){const _0x83f057=_0x2f269b;f={'lastType':null,'quiet':_0x5e8d41['quiet']};let _0xcb3d6d=new Set(),_0x173056,_0xacf5d8=_0x28f291=>{const _0x2a6676=_0x5eab;(!_0x77a37d||_0x28f291[_0x2a6676(0x237)]===_0x2a6676(0x2c1)||_0x28f291[_0x2a6676(0x237)]===_0x2a6676(0x1ca))&&(_0x173056??Ee)(_0x28f291);for(let _0x3e4a45 of _0xcb3d6d)_0x3e4a45(_0x28f291);},_0x13ce65=await q(),_0x31c752=new _0x50f786();_0x31c752[_0x83f057(0x2fa)](_0xacf5d8);let _0x4a5a38=_0x25429e(_0x5e8d41[_0x83f057(0x2f4)],_0x13ce65,_0x5e8d41[_0x83f057(0x20d)]);z(_0x5e8d41['env'],_0x5e8d41[_0x83f057(0x20d)],_0x4a5a38);let _0x101101={'input':null},_0x342a91=_0x23407a?Z(()=>_0x101101[_0x83f057(0x1b4)],_0x1ad39a=>{const _0x10c39d=_0x83f057;process['stderr'][_0x10c39d(0x1f7)](_0x1ad39a);}):null,_0xbf1066=_0x438ffb=>_0x342a91?{..._0x438ffb,'askUser':_0x342a91}:_0x438ffb,_0x333158=_0xbf1066(pe(_0x5e8d41,_0x13ce65,_0x4a5a38,{'oneTurn':!_0x23407a})),_0x2c1b23=!0x1,_0x10fb3c=!0x1,_0x4340ba,_0x21893b=()=>_0x4340ba??=_0x31c752[_0x83f057(0x2e8)](),_0x589f89=()=>{const _0x397224=_0x83f057;_0x10fb3c&&process[_0x397224(0x192)](0x82),_0x10fb3c=!0x0,process[_0x397224(0x33e)][_0x397224(0x1f7)]('\x0aStopping…\x20(Ctrl+C\x20again\x20to\x20force\x20exit)\x0a'),_0x2c1b23&&_0x31c752[_0x397224(0x273)]()[_0x397224(0x2fc)](_0x2f4f95=>console[_0x397224(0x32a)](_0x2f4f95))['then'](_0x21893b)[_0x397224(0x21c)](()=>process[_0x397224(0x192)](0x82),_0x57f888=>{const _0x2332f8=_0x397224;console[_0x2332f8(0x32a)](_0x57f888),process[_0x2332f8(0x192)](0x82);});};process['on']('SIGINT',_0x589f89);let _0x4f397b=_0x5e8d41[_0x83f057(0x2d2)],_0x25c9b0=async _0x1e8e16=>{const _0x401c56=_0x83f057;let _0x4fc821=_0x4f397b;_0x4f397b=[];let _0x1c4b79=()=>_0x31c752[_0x401c56(0x1ea)](_0x1e8e16,{'attachments':_0x4fc821});try{return await _0x1c4b79();}catch(_0x23347b){if(_0x10fb3c||!$n(_0x23347b)||!process[_0x401c56(0x216)][_0x401c56(0x179)]||_0x5e8d41[_0x401c56(0x2f4)]===_0x401c56(0x16e)||!(_0x5e8d41[_0x401c56(0x2f4)]||_0x13ce65[_0x401c56(0x20a)]))throw _0x23347b;process['stderr'][_0x401c56(0x1f7)](_0x401c56(0x322));let _0x533d2a=_0x31c752[_0x401c56(0x1d0)]()??_0x5e8d41[_0x401c56(0x1a0)],_0x4b92a4=await _0x34c847(_0x5e8d41[_0x401c56(0x2f4)]?{'env':_0x5e8d41[_0x401c56(0x2f4)],'tenant':G(_0x13ce65,_0x571927[_0x5e8d41[_0x401c56(0x2f4)]]),'skipEnvCheck':!0x0}:{'baseUrl':_0x13ce65[_0x401c56(0x20a)],'tenant':_0x13ce65[_0x401c56(0x181)],'skipEnvCheck':!0x0}),_0x2c72f7={'text':'','failed':!0x1,'sessionId':_0x533d2a};return _0x10fb3c||(_0x2c1b23=!0x1,await _0x21893b(),_0x10fb3c)?_0x2c72f7:(_0x31c752=new _0x50f786(),_0x4340ba=void 0x0,_0x31c752[_0x401c56(0x2fa)](_0xacf5d8),_0x13ce65=_0x4b92a4,await _0x31c752[_0x401c56(0x24d)]({..._0xbf1066(pe(_0x5e8d41,_0x13ce65,_0x4a5a38,{'oneTurn':!_0x23407a})),..._0x533d2a?{'sessionId':_0x533d2a}:{}}),_0x2c1b23=!0x0,_0x10fb3c?_0x2c72f7:_0x1c4b79());}};try{if(await _0x31c752['initialize'](_0x333158),_0x2c1b23=!0x0,_0x10fb3c)return;if(_0x23407a)await xn({'prompt':_0x177f6f,'sendMessage':_0x25c9b0,'onSigint':_0x589f89,'setAnswerInput':_0x5b753f=>{_0x101101['input']=_0x5b753f;},'registerEventPrinter':_0x56831d=>(_0x173056=_0x56831d,()=>{_0x173056=void 0x0;})});else{if(_0x77a37d||_0x32f3a4){let _0xdbed5=_0x5e8d41[_0x83f057(0x1ef)]===_0x83f057(0x290)?_0x305aa6=>P(_0x240f60(_0x305aa6)):()=>{},_0x5b8b2f=await _0x4ec7ce({'onEvent':_0x51c1e0=>(_0xcb3d6d[_0x83f057(0x2e0)](_0x51c1e0),()=>{const _0x33fb90=_0x83f057;_0xcb3d6d[_0x33fb90(0x1ed)](_0x51c1e0);}),'sendMessage':_0xaeed51=>_0x25c9b0(_0xaeed51),'getSessionId':()=>_0x31c752['getSessionId'](),'getTurnUsageHistory':_0x5689f3=>_0x31c752[_0x83f057(0x2ef)](_0x5689f3),'complete':_0x37aa72=>_0x31c752[_0x83f057(0x17c)](_0x37aa72)},_0x177f6f,void 0x0,_0xdbed5,_0x32f3a4?{'outputSchema':_0x32f3a4}:void 0x0);_0x77a37d?_0x77a37d(_0x5b8b2f):In(_0x5b8b2f);}else await _0x25c9b0(_0x177f6f);}}catch(_0x23c25d){if(!_0x10fb3c)throw _0x23c25d;}finally{try{await _0x21893b();}finally{process[_0x83f057(0x2d9)](_0x83f057(0x197),_0x589f89),_0x10fb3c&&(process['exitCode']=0x82);}}}function In(_0x463c63){const _0x5e5af9=_0x2f269b;_0x463c63[_0x5e5af9(0x292)]?(console[_0x5e5af9(0x32a)](_0x5e5af9(0x1b7)+_0x463c63[_0x5e5af9(0x292)][_0x5e5af9(0x1e3)]),process[_0x5e5af9(0x312)]=0x1):_0x463c63[_0x5e5af9(0x1b8)]?(console['error'](_0x5e5af9(0x1b9)+_0x463c63[_0x5e5af9(0x32a)]+').'),process[_0x5e5af9(0x312)]=0x1):process[_0x5e5af9(0x2be)][_0x5e5af9(0x1f7)](JSON[_0x5e5af9(0x178)](_0x463c63['structured'],null,0x2)+'\x0a');}function Tn(_0x181a43,_0x17f38c){const _0x1fe9d7=_0x2f269b;let _0x2998f5=process['stdout']['write']['bind'](process[_0x1fe9d7(0x2be)]),_0x28a269=!0x1;return process[_0x1fe9d7(0x2be)][_0x1fe9d7(0x1f7)]=(..._0x3ba7b3)=>{const _0x3187c3=_0x1fe9d7;if(!_0x28a269)return _0x2998f5(..._0x3ba7b3);_0x1736f2(_0x17f38c,0x0),_0x18fe21(_0x17f38c,0x0);let _0x2696e8=_0x2998f5(..._0x3ba7b3);return _0x181a43[_0x3187c3(0x326)](!0x0),_0x2696e8;},{'show':()=>{_0x28a269=!0x0,_0x181a43['prompt']();},'hide':()=>{_0x28a269=!0x1;},'erase':()=>{_0x28a269&&(_0x1736f2(_0x17f38c,0x0),_0x18fe21(_0x17f38c,0x0)),_0x28a269=!0x1;},'restore':()=>{const _0xac65de=_0x1fe9d7;_0x28a269=!0x1,process['stdout'][_0xac65de(0x1f7)]=_0x2998f5;}};}async function xn({prompt:_0x2c763f,sendMessage:_0x281642,onSigint:_0xfae858,setAnswerInput:_0x4a86b7,registerEventPrinter:_0x5bde28}){const _0x27db1a=_0x2f269b;let _0x29539d=_0x2093b3({'input':process[_0x27db1a(0x216)],'output':process[_0x27db1a(0x33e)],'terminal':!0x0,'prompt':_0x27db1a(0x183)}),_0x1034fa=Tn(_0x29539d,process['stderr']),_0x2815bc=[],_0x45f46a,_0x11ad3c,_0x2a3c1e,_0x54816d=!0x1,_0x522c6d=!0x1,_0x3b95f5=!0x1,_0x22307e=Promise[_0x27db1a(0x25a)](),_0x13a293,_0x14e2e0=_0x5bde28(_0x5057df=>{const _0x2d8268=_0x27db1a;_0x5057df[_0x2d8268(0x237)]===_0x2d8268(0x2c1)&&(_0x1034fa[_0x2d8268(0x19f)](),_0x22307e=new Promise(_0x478f5e=>{_0x13a293=_0x478f5e;})),Ee(_0x5057df),_0x5057df[_0x2d8268(0x237)]==='done'&&(_0x13a293?.(),_0x13a293=void 0x0,!_0x3b95f5&&!_0x54816d&&_0x1034fa['show']());}),_0x41ed4f=()=>{const _0x500c67=_0x27db1a;_0x522c6d=!0x0,_0x13a293?.(),_0xfae858(),_0x29539d[_0x500c67(0x24b)]();};_0x29539d['on'](_0x27db1a(0x2f5),_0x32be02=>{const _0x12678f=_0x27db1a;_0x2a3c1e?_0x2a3c1e(_0x32be02):_0x45f46a?_0x45f46a[_0x12678f(0x2fd)](_0x32be02):_0x11ad3c?_0x11ad3c(_0x32be02):_0x2815bc['push'](_0x32be02);}),_0x29539d[_0x27db1a(0x2f1)](_0x27db1a(0x24b),()=>{const _0x14385b=_0x27db1a;_0x54816d=!0x0,_0x1034fa[_0x14385b(0x1b5)](),_0x45f46a&&!_0x522c6d&&_0x41ed4f(),_0x11ad3c?.(null);});let _0xc4b6c0=()=>_0x2815bc[_0x27db1a(0x2e4)]>0x0?Promise['resolve'](_0x2815bc[_0x27db1a(0x276)]()):_0x54816d?Promise[_0x27db1a(0x25a)](null):new Promise(_0x576d1d=>{_0x11ad3c=_0x3f4d7d=>{_0x11ad3c=void 0x0,_0x576d1d(_0x3f4d7d);};});_0x4a86b7({'readLine':(_0xc786b,_0x54a154)=>new Promise((_0x361c82,_0x3b0b7e)=>{const _0x4df53f=_0x27db1a;if(_0x54816d&&!_0x45f46a){_0x361c82(null);return;}_0x45f46a??=[];let _0x425b22=_0x45f46a[_0x4df53f(0x276)]();if(_0x425b22!==void 0x0){_0x361c82(_0x425b22);return;}let _0x5917de=()=>{const _0x2ff2e9=_0x4df53f;_0x2a3c1e=void 0x0,_0x54a154[_0x2ff2e9(0x217)]('abort',_0x64d1ab),_0x1034fa[_0x2ff2e9(0x1b5)](),_0x29539d[_0x2ff2e9(0x185)](_0x2ff2e9(0x183));},_0x64d1ab=()=>{_0x5917de(),_0x3b0b7e(new Error('The\x20turn\x20was\x20cancelled.'));};_0x54a154['addEventListener'](_0x4df53f(0x2ff),_0x64d1ab,{'once':!0x0}),!_0x54816d&&(_0x2a3c1e=_0x4f9959=>{_0x5917de(),_0x361c82(_0x4f9959);},_0x29539d['setPrompt'](_0xc786b),_0x1034fa[_0x4df53f(0x1cd)]());}),'endQuestions':()=>{_0x45f46a&&_0x2815bc['push'](..._0x45f46a),_0x45f46a=void 0x0;}}),_0x29539d['on'](_0x27db1a(0x197),_0x41ed4f),process['stderr'][_0x27db1a(0x1f7)](_0x27db1a(0x1e5));let _0x209e9a=async _0x2f3d62=>{_0x3b95f5=!0x0;try{await _0x281642(_0x2f3d62);}finally{_0x3b95f5=!0x1;}};try{if(_0x2c763f&&await _0x209e9a(_0x2c763f),_0x522c6d)return;!_0x54816d&&!_0x13a293&&_0x1034fa[_0x27db1a(0x1cd)]();for(let _0xa96fbe=await _0xc4b6c0();_0xa96fbe!==null&&(_0x1034fa[_0x27db1a(0x1b5)](),!_0x522c6d);_0xa96fbe=await _0xc4b6c0()){let _0x3918d9=_0xa96fbe['trim']();if(_0x3918d9===_0x27db1a(0x1ae))break;_0x3918d9&&await _0x209e9a(_0x3918d9),!_0x54816d&&!_0x13a293&&_0x1034fa[_0x27db1a(0x1cd)]();}for(;!_0x522c6d&&_0x13a293;)await _0x22307e;}finally{_0x4a86b7(null),_0x14e2e0(),_0x1034fa[_0x27db1a(0x2f0)](),_0x29539d['off'](_0x27db1a(0x197),_0x41ed4f),_0x29539d[_0x27db1a(0x24b)]();}}async function Dn(){const _0x2b7d38=_0x2f269b;let _0x212145=Rt(process[_0x2b7d38(0x28f)][_0x2b7d38(0x18d)](0x2));if(_0x212145[_0x2b7d38(0x1ef)]===_0x2b7d38(0x321)){await fe(_0x212145);return;}let _0x2749e4=Pt();try{await fe(_0x212145);}finally{_0x2749e4();}}async function fe(_0x21e3a1){const _0x4fc11f=_0x2f269b;if(_0x21e3a1['help']){Ct();return;}if(_0x21e3a1['version']){console[_0x4fc11f(0x21f)](Lt());return;}if(_0x21e3a1['subcommand']===_0x4fc11f(0x16d)){await kn(_0x21e3a1);return;}if(_0x21e3a1[_0x4fc11f(0x1e4)]===_0x4fc11f(0x323)){await Sn(_0x21e3a1[_0x4fc11f(0x326)]);return;}if(_0x21e3a1[_0x4fc11f(0x1e4)]===_0x4fc11f(0x1e9)){await Mt();return;}if(_0x21e3a1[_0x4fc11f(0x1e4)]===_0x4fc11f(0x1bc)){await Bt(_0x21e3a1);return;}if(_0x21e3a1[_0x4fc11f(0x1e4)]==='models'){await Wt(_0x21e3a1);return;}if(_0x21e3a1[_0x4fc11f(0x1e4)]===_0x4fc11f(0x2bd)){await Zt(_0x21e3a1);return;}if(_0x21e3a1['subcommand']===_0x4fc11f(0x2d5)){await Qt(_0x21e3a1);return;}if(_0x21e3a1[_0x4fc11f(0x1e4)]===_0x4fc11f(0x262)){await nn(_0x21e3a1);return;}if(_0x21e3a1[_0x4fc11f(0x1e4)]===_0x4fc11f(0x334)||_0x21e3a1[_0x4fc11f(0x1e4)]===_0x4fc11f(0x1c2)||_0x21e3a1[_0x4fc11f(0x1e4)]===_0x4fc11f(0x193)){await an(_0x21e3a1,_0x21e3a1[_0x4fc11f(0x1e4)]);return;}if(_0x21e3a1['subcommand']===_0x4fc11f(0x17c)){await cn(_0x21e3a1);return;}if(_0x21e3a1[_0x4fc11f(0x1e4)]===_0x4fc11f(0x313)){await mn(_0x21e3a1);return;}if(_0x21e3a1['subcommand']===_0x4fc11f(0x190)){await gn(_0x21e3a1);return;}if(_0x21e3a1[_0x4fc11f(0x1e4)]===_0x4fc11f(0x171)){await wn(_0x21e3a1);return;}if(_0x21e3a1[_0x4fc11f(0x1e4)]===_0x4fc11f(0x1af)){await _0x5ec971(_0x21e3a1[_0x4fc11f(0x326)],{'runnerUrl':_0x21e3a1[_0x4fc11f(0x2e6)],'backendUrl':_0x21e3a1[_0x4fc11f(0x20d)],'interopPath':_0x21e3a1[_0x4fc11f(0x1a9)],'workerId':_0x21e3a1[_0x4fc11f(0x1f2)]});return;}if(_0x21e3a1['cleanup']){await Gt();return;}await En(_0x21e3a1);}var Un=process.env.NODE_ENV==='test'||!!process.env.JEST_WORKER_ID;Un||Dn()['catch'](_0x48a6e8=>{const _0x536187=_0x2f269b;console['error'](_0x48a6e8[_0x536187(0x264)]||_0x48a6e8['message']||_0x48a6e8),process[_0x536187(0x192)](0x1);});export{_t as CARTOGRAPHER_SKILLS,re as EFFORT_TIERS,Ot as IMPLICIT_STDIN_IDLE_MS,pe as buildInitOptions,Dn as main,Rt as parseArgs,Lt as readCliVersion,j as resolvePrompt,Pt as routeStdoutToStderr,u as writeCommandResult};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uipath/delegate-cli",
3
- "version": "1.206.0-preview.20261119175059",
3
+ "version": "1.206.0-preview.20261120133435",
4
4
  "description": "UiPath Delegate CLI - drive the Delegate agent from the terminal. Wraps @uipath/delegate-sdk; installing this package pulls the SDK in — no separate install.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "commonjs",
@@ -22,7 +22,7 @@
22
22
  "publish:npmjs": "npm publish --@uipath:registry=https://registry.npmjs.org/ --access public --ignore-scripts"
23
23
  },
24
24
  "dependencies": {
25
- "@uipath/delegate-sdk": "1.206.0-preview.20261119175059"
25
+ "@uipath/delegate-sdk": "1.206.0-preview.20261120133435"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@types/node": "^22.0.0",