@uipath/delegate-cli 1.205.0 → 1.206.0-preview.20261117083746
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/dist/cli.mjs +1 -1
- package/package.json +2 -2
package/dist/cli.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
const _0x2e9e2a=_0xced2;(function(_0x48cec9,_0x59c0dc){const _0xf70940=_0xced2,_0x4c89ea=_0x48cec9();while(!![]){try{const _0xe4d9dd=parseInt(_0xf70940(0x2ca))/0x1*(parseInt(_0xf70940(0x19b))/0x2)+parseInt(_0xf70940(0x275))/0x3+parseInt(_0xf70940(0x26e))/0x4+-parseInt(_0xf70940(0x1f2))/0x5*(-parseInt(_0xf70940(0x30f))/0x6)+-parseInt(_0xf70940(0x2f3))/0x7*(-parseInt(_0xf70940(0x1ca))/0x8)+-parseInt(_0xf70940(0x1fa))/0x9+-parseInt(_0xf70940(0x19d))/0xa;if(_0xe4d9dd===_0x59c0dc)break;else _0x4c89ea['push'](_0x4c89ea['shift']());}catch(_0x4b27f4){_0x4c89ea['push'](_0x4c89ea['shift']());}}}(_0x3c87,0x2df87));const __dirname=import.meta.dirname;import _0x59b7ea from'fs';function _0x3c87(){const _0x1f5d4b=['show','delegations\x20dismiss\x20<delegation-id>','delete','\x20into\x20','\x27\x20is\x20empty.','slice','setPrompt','tenantName','21Eyhrtz','abort','result','No\x20answers\x20awaiting\x20acceptance.\x0a','\x20sessions\x20on\x20','log','once','Already\x20answered','toISOString','parentSessionId','--effort','Auth\x20comes\x20from\x20AUTH_TOKEN/TENANT_ID/ORG_ID\x20—\x20set\x20TENANT_ID\x20and\x20TENANT_SLUG\x20to\x20change\x20the\x20tenant.',':\x20bucket\x20number\x20(Enter\x20to\x20leave\x20out):\x20','check','date','\x20(type\x20your\x20own)','--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`delegate-cli\x20sessions\x20[list]`\x20only.','--working-dir','\x20--turn\x20','map','questions','--days\x20applies\x20to\x20`delegate-cli\x20usage\x20activity|daily`;\x20the\x20summary\x20covers\x20the\x20current\x20month.','a\x20session\x20id','Invalid\x20--effort:\x20',',\x20got\x20',';\x20the\x20saved\x20login\x20still\x20uses\x20','mode','transcribe','88962heFnVO','\x20\x20\x20\x20','\x20not\x20found.','--url','.\x20Share:\x20','Deployment:\x20\x20\x20','AUTH_TOKEN_FILE\x20\x27','>.\x0a','intro','cancelled','Licensing:\x20\x20\x20\x20no\x20licensing\x20quota\x20applies','options','lastType','limit','unknown','--cartographer','--to','exitCode','contextSummary','UiPath\x20Cloud','startsWith','Claimed\x20from\x20delegation\x20','file','\x20active\x20days','limit_enabled','join','tenant','Licensing:\x20\x20\x20\x20','[saved\x20login]\x20Backend\x20URL:\x20','session_consumed_pu','resolve','\x20requires\x20','Could\x20not\x20check\x20BYO\x20model\x20warnings:\x20','task','cartographer','Session\x20\x20\x20\x20\x20\x20\x20','noComputerUse','Unknown\x20sessions\x20action:\x20','description','list','status','No\x20delegations.\x0a','Enter\x20a\x20number\x20','\x20<title>','Unknown\x20flag:\x20','page','\x20(Enter\x20to\x20skip):\x20','Unknown\x20usage\x20view:\x20','.\x20Use\x20','--env','catch','\x20to\x20','\x20\x20TITLE\x0a','a\x20project\x20id','--headless','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.','Date\x20\x20\x20\x20\x20\x20\x20\x20Token\x20units\x20\x20Prompt\x20tokens\x20\x20Completion\x20tokens','pendingResults','transcribe:\x20cannot\x20read\x20','prompt','Already\x20accepted','\x22.\x0a','models','.\x20Use:\x20','cleanup','shift','orgLogicalName','\x20(cancel\x20with:\x20delegate-cli\x20sessions\x20cancel\x20','\x20token\x20units)','\x20or\x20your\x20own\x20answer','--project','Title\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20(stdin\x20was\x20empty)','name','days','keys','off','usage','Switch\x20with:\x20delegate-cli\x20tenant\x20<name>\x0a','):\x0a\x0a','probability','No\x20CLI\x20login\x20to\x20switch:\x20the\x20CLI\x20is\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20','toUpperCase','max','--quiet','fields','parse','deleted','subcommand','):\x20','quiet','--session\x20applies\x20to\x20the\x20`delegate-cli\x20usage`\x20summary\x20only.',']\x20Backend\x20URL:\x20','total_completion_tokens','\x20<id>','refused','total_token_units','Turn:\x20','push','padEnd','assignedUser','More:\x20delegate-cli\x20sessions\x20--page\x20','onEvent','end','\x20—\x20sign\x20out\x20in\x20the\x20Delegate\x20app\x20to\x20clear\x20that.','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','taskAutomation','Session\x20','headless','delegations\x20complete\x20<delegation-id>\x20\x22<answer>\x22|-','--attach','models_breakdown','daily_usage','self-hosted\x20(Automation\x20Suite\x20/\x20Dedicated)','Invalid\x20--project:\x20\x22','stream-json','accessToken','Usage:\x20delegate-cli\x20','\x20applies\x20to\x20prompts\x20and\x20to\x20these\x20commands\x20only:\x20','\x20must\x20be\x20a\x20whole\x20number\x20','high','Deleted\x20session\x20','158TrabVJ','Tenant:\x20\x20\x20\x20\x20\x20\x20','1486490BVVxlb','Usage:\x20delegate-cli\x20sessions\x20','total_quota_pu','\x20\x20from\x20','host','),\x20','every','Numbers,\x20separated\x20by\x20commas\x20(Enter\x20to\x20skip):\x20','isDesktopFallback','--output-format\x20','jsonSchemaPath','✓\x20Done\x0a','isError','package.json','ID\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','label','complete','length','removeEventListener','some','split','whoami','confidence','userId','a\x20file\x20path','--turn','monthly_spend_usd','--page','erase','the\x20JSON\x20schema','\x20\x20TASK\x0a','.aria','sessionId','verbose','Tenants\x20of\x20','Organization:\x20','kind','\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).','dismiss','extra_pool_consumed_pu','--session','workingDirectory','interopPath','--to\x20and\x20--summary\x20apply\x20to\x20`delegate-cli\x20delegations\x20create`\x20only.','%\x20of\x20','336584cORVFj','\x20<file.json>,\x20or\x20-\x20to\x20read\x20stdin.','delegations\x20claim\x20<delegation-id|delegate://delegation/…>','resume','toFixed','turn_start','\x20delegation\x20','delegations\x20cancel\x20<delegation-id>','Enter\x20sends\x20a\x20message.\x20/exit\x20or\x20EOF\x20exits;\x20Ctrl+C\x20stops\x20and\x20exits.\x0a','org-users','alpha','rename','\x20days.\x0a','unit','Owner\x20\x20\x20\x20\x20\x20\x20\x20\x20','signal','session_start','delegationId','alreadyAccepted','toolName','assignedUserEmail','--days','\x20(estimated\x20$','backendUrl','\x20not\x20found,\x20has\x20no\x20messages','\x20(resume\x20with\x20--session\x20','type','--interop','Task\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','close','delegations\x20accept\x20<delegation-id>','buckets','noMemory','structured','From\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','entries','evaluate','keepAlive','forEach','tool','15FasjUM','stdout','code','No\x20sessions\x20on\x20page\x20','total_tokens','Continue\x20it\x20with:\x20delegate-cli\x20--session\x20','--print','--output-format','2673738NhFspd','The\x20turn\x20was\x20cancelled.','\x20token\x20units','answers','--include-subagents','Cancel\x20requested\x20for\x20turn\x20','cwd','--verbose','claim','Interop\x20stopped\x20(if\x20it\x20was\x20running).','\x20\x20(input\x20#','aborted','--model','--skip-env-check\x20applies\x20to\x20`delegate-cli\x20login`\x20only.','\x20this\x20month','--to,\x20--summary\x20and\x20--session\x20apply\x20to\x20`delegate-cli\x20delegations\x20create`\x20only.','\x20prompt,\x20','delegations\x20pending\x20<session-id>','sourceTitle','--turn\x20applies\x20to\x20`delegate-cli\x20sessions\x20cancel`\x20only.','toString','total_cost_usd','There\x20is\x20no\x20terminal\x20input\x20to\x20answer\x20from.','utf-8','cancel','staging','delegateTo','model','isSafeInteger','\x20of\x20a\x20$','--help','initialize','total_prompt_tokens','print',')\x20—\x20saved\x20to\x20','UPDATED','header','origin','\x27\x20cannot\x20be\x20read:\x20',').\x0a','optional','--skip-env-check','title','No\x20models\x20available\x20for\x20this\x20product/tenant.\x0a','Unknown\x20delegations\x20action:\x20','You>\x20','pause','\x0aAvailable\x20models\x20(','readLine','all','getTurnUsageHistory','xhigh','bundledSkillsPath','pending','\x20in\x20steps\x20of\x20','expiresAt','url','--no-security','Number','Token:\x20\x20\x20\x20\x20\x20\x20\x20expires\x20','sendMessage','1\x20or\x20more','estimated_cost_usd','active_days','trim','a\x20skill\x20name','email','pct_used','Enter\x20numbers\x20from\x201\x20to\x20','\x20(resets\x20','\x20(Delegate\x20desktop\x20app\x20fallback)','the\x20request','period_days','argv','Organization\x20\x20','Usage:\x20delegate-cli\x20sessions\x20fork\x20<id>\x20[<message-id>]','object','completion_tokens','stop','Cost:\x20\x20\x20$','No\x20CLI\x20login\x20found.\x20Note:\x20the\x20CLI\x20is\x20currently\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20','a\x20briefing\x20text','production','input','hide','items','unknown\x20slug','stringify','verdict','replace','test','then','\x20\x20\x20\x20BYO\x20warning:\x20','Usage:\x20delegate-cli\x20org-users\x20<name\x20or\x20email\x20prefix>','\x0a🤔\x20','Enter\x20one\x20number\x20from\x201\x20to\x20','\x20(optional)','choice','multiSelect','low','/exit','help','existsSync','filter','skip','operands','\x20min)','string','No\x20usage\x20in\x20the\x20last\x20','--task-automation\x20applies\x20to\x20prompts\x20only.','Missing\x20prompt.\x20Pass\x20it\x20as\x20an\x20argument,\x20pipe\x20it\x20via\x20stdin,\x20or\x20run\x20`delegate-cli\x20--help`.','padStart','No\x20CLI\x20login\x20found\x20—\x20nothing\x20to\x20remove.','exit','--tenant\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Switch\x20tenants\x20with:\x20delegate-cli\x20tenant\x20<name>','skipEnvCheck','827480HWknRF','token_units','endQuestions','localhost','\x20of\x20session\x20','delegations','UIPATH_BASE_URL\x20is\x20unusable.\x20','715569YpRNoD','Tenant:\x20','write','delegation','🔧\x20','delegate-cli','version','stdin','isTTY','default','\x20(confidence\x20','Tenant\x20not\x20switched:\x20could\x20not\x20write\x20','tenantId','Your\x20answer,\x20as\x20text\x20(the\x20CLI\x20attaches\x20no\x20files;\x20Enter\x20to\x20skip):\x20','typed','includes','--summary','tool_call','model_version','--backend','rmSync','\x0aStopping…\x20(Ctrl+C\x20again\x20to\x20force\x20exit)\x0a','--cleanup','findIndex','The\x20saved\x20CLI\x20login\x20could\x20not\x20be\x20refreshed.\x20Run\x20`delegate-cli\x20login`\x20again.','\x20\x22<prompt>\x22\x0a','a\x20colleague','message','Session:\x20\x20\x20\x20\x20\x20','tokenExpiresAt','runnerUrl','now','score\x20','--tenant\x20requires\x20a\x20tenant\x20name.','organizationId','Removed\x20','deployment','accept','step','--no-computer-use','verify','displayName','create','finish','Cartographer:\x20','attachments','--runner-url','auth.json','\x20(current)','error','\x20tokens\x0a','includeSubAgents','structuredError','spawn','preloadSkills','from\x20','Answered','Session:\x20','readFileSync','--no-connections','sessions','--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`delegate-cli\x20sessions`\x20only.','Use:\x20delegate-cli\x20delegations\x20','isArray','SIGINT','rerank','\x20completion','\x20|\x20','\x20\x20(sub-agent\x20of\x20','auth','dismissed','.\x20Use\x20alpha\x20|\x20staging\x20|\x20production\x20|\x20localhost.','score','done','Invalid\x20--output-format:\x20','outputFormat','\x20from\x20','login','--no-memory','text','content','lockReason','noConnections','stderr','\x20PU\x20beyond\x20quota','227TfRKOR','--limit','noSecurity','a\x20directory\x20path','a\x20deployment\x20URL,\x20e.g.\x20https://automationsuite.contoso.com','from',',\x20or\x20holds\x20no\x20message\x20','projectId','Usage:\x20delegate-cli\x20sessions\x20[list]\x20[--page\x20N]\x20[--limit\x20N]\x20[--include-subagents]','Last\x20','rubric_version','.\x20Use\x20`delegate-cli\x20usage`,\x20`usage\x20activity`\x20or\x20`usage\x20daily`.','monthly_limit_usd','No\x20CLI\x20login\x20found.\x20Run\x20`delegate-cli\x20login\x20--env\x20<alpha|staging|production>`\x20first.','environment\x20variables\x20(AUTH_TOKEN/TENANT_ID/ORG_ID)','thinking','addEventListener','Usage:\x20delegate-cli\x20sessions\x20cancel\x20<session-id>\x20--turn\x20<turn-id>','logout','min','Token:\x20\x20\x20\x20\x20\x20\x20\x20expired\x20','getSessionId','\x20in\x20progress\x20on\x20session\x20','sourceUserEmail','concat','turnId','complete\x20needs\x20--json-schema\x20<file>:\x20delegate-cli\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22.','a\x20format\x20(','delegations\x20create\x20--session\x20<id>\x20[--to\x20<email|name>]\x20[--summary\x20<text>]\x20\x22<task>\x22|-','Your\x20answer\x20(Enter\x20to\x20skip):\x20','total_sessions','baseUrl','env'];_0x3c87=function(){return _0x1f5d4b;};return _0x3c87();}import _0x15228c from'path';import{clearLine as _0x24795e,createInterface as _0x2757a9,cursorTo as _0xee09a1}from'node:readline';import{isOnStepGrid as _0x561420}from'@uipath/delegate-sdk';var _='userinput';function S(_0x59b7ca){const _0x4bef2e=_0xced2;return _0x59b7ca[_0x4bef2e(0x253)](/\u001b\[[0-?]*[ -/]*[@-~]|\u001b\][^\u0007\u001b]*(\u0007|\u001b\\)?|\u001b./g,'')[_0x4bef2e(0x253)](/[\u0000-\u0008\u000b-\u001f\u007f-\u009f]/g,'');}function V(_0x1130a4){const _0x1a33e0=_0xced2;return S(_0x1130a4[_0x1a33e0(0x1ac)]??(_0x1130a4[_0x1a33e0(0x1c1)]===_?'Something\x20else':_0x1130a4['id']));}function Te(_0x2d2cda,_0x3d3930,_0x5ebd94){const _0x53d86a=_0xced2;let _0xa32e6d=[''+(_0x5ebd94>0x1?'['+_0x3d3930+'/'+_0x5ebd94+']\x20':'')+S(_0x2d2cda[_0x53d86a(0x21e)])+(_0x2d2cda[_0x53d86a(0x222)]?_0x53d86a(0x25a):''),S(_0x2d2cda['question'])];return _0x2d2cda[_0x53d86a(0x1e4)]===_0x53d86a(0x2c4)&&_0x2d2cda[_0x53d86a(0x31a)]['forEach']((_0x4ac9a3,_0x72ac07)=>{const _0x3db811=_0x53d86a;let _0x1d54ee=_0x4ac9a3[_0x3db811(0x1c1)]===_?_0x3db811(0x302):'',_0x58efae=_0x4ac9a3[_0x3db811(0x335)]?'\x20-\x20'+S(_0x4ac9a3[_0x3db811(0x335)]):'';_0xa32e6d[_0x3db811(0x371)]('\x20\x20'+(_0x72ac07+0x1)+'.\x20'+V(_0x4ac9a3)+_0x1d54ee+_0x58efae);}),_0xa32e6d[_0x53d86a(0x328)]('\x0a');}function X(_0x11ffbc,_0x239733){const _0x3a13d5=_0xced2;let _0x484e62=_0x11ffbc[_0x3a13d5(0x1b1)](/[\s,]+/)['filter'](Boolean);if(_0x484e62['length']===0x0)return null;let _0x225cf5=_0x484e62[_0x3a13d5(0x306)](_0x1849dd=>/^\d+$/[_0x3a13d5(0x254)](_0x1849dd)?Number(_0x1849dd):NaN);return _0x225cf5[_0x3a13d5(0x1b0)](_0xf9d5d3=>!Number['isInteger'](_0xf9d5d3)||_0xf9d5d3<0x1||_0xf9d5d3>_0x239733)?null:[...new Set(_0x225cf5)][_0x3a13d5(0x306)](_0x3f8080=>_0x3f8080-0x1);}function xe(_0x2c7ab1){const _0x52f0ba=_0xced2;return typeof _0x2c7ab1=='object'&&_0x2c7ab1!==null&&_0x52f0ba(0x36e)in _0x2c7ab1;}async function R(_0x1cef40,_0x371d3b,_0x29d1ed,_0x3d5933){const _0xf08e47=_0xced2;for(;;){let _0x189890=(await _0x1cef40(_0x371d3b))[_0xf08e47(0x23a)]();if(_0x189890==='')return;let _0x4921e9=_0x3d5933(_0x189890);if(!xe(_0x4921e9))return _0x4921e9;_0x29d1ed(_0x4921e9[_0xf08e47(0x36e)]+'\x0a');}}async function De(_0x38ca32,_0x11a06a,_0x52acb1){const _0x31c33f=_0xced2;if(_0x38ca32[_0x31c33f(0x31a)][_0x31c33f(0x1ae)]===0x0||_0x38ca32[_0x31c33f(0x31a)][_0x31c33f(0x1a3)](_0x59c08d=>_0x59c08d['kind']===_)){let _0x2c19a5=(await _0x11a06a(_0x31c33f(0x2e7)))['trim']();return _0x2c19a5===''?void 0x0:{'text':_0x2c19a5};}let _0x276a74=_0x38ca32[_0x31c33f(0x31a)][_0x31c33f(0x28c)](_0x412b16=>_0x412b16['kind']===_),_0x12494d=_0x38ca32['multiSelect']?_0x31c33f(0x1a4):_0x31c33f(0x234)+(_0x276a74>=0x0?_0x31c33f(0x354):'')+_0x31c33f(0x33d),_0x3c35ed=await R(_0x11a06a,_0x12494d,_0x52acb1,_0x57ba20=>{const _0x5c1d0f=_0x31c33f;let _0x1c904e=X(_0x57ba20,_0x38ca32[_0x5c1d0f(0x31a)][_0x5c1d0f(0x1ae)]);return _0x1c904e&&(_0x38ca32[_0x5c1d0f(0x25c)]||_0x1c904e[_0x5c1d0f(0x1ae)]===0x1)?_0x1c904e:!_0x38ca32[_0x5c1d0f(0x25c)]&&_0x276a74>=0x0?{'typed':_0x57ba20}:{'refused':_0x38ca32['multiSelect']?_0x5c1d0f(0x23e)+_0x38ca32['options'][_0x5c1d0f(0x1ae)]+'.':_0x5c1d0f(0x259)+_0x38ca32[_0x5c1d0f(0x31a)][_0x5c1d0f(0x1ae)]+'.'};});if(_0x3c35ed===void 0x0)return;if(!Array[_0x31c33f(0x2b4)](_0x3c35ed))return{'text':_0x3c35ed[_0x31c33f(0x283)]};let _0x1a75d4=_0x3c35ed[_0x31c33f(0x306)](_0x53881a=>_0x38ca32['options'][_0x53881a]['id']),_0x3996e2=_0x1a75d4[_0x31c33f(0x284)](_)?await R(_0x11a06a,V(_0x38ca32[_0x31c33f(0x31a)][_0x276a74])+':\x20',_0x52acb1,_0x56f02b=>_0x56f02b):void 0x0;if(!(_0x1a75d4['includes'](_)&&_0x3996e2===void 0x0))return _0x38ca32[_0x31c33f(0x25c)]?{'optionIds':_0x1a75d4,..._0x3996e2!==void 0x0?{'text':_0x3996e2}:{}}:_0x3996e2!==void 0x0?{'text':_0x3996e2}:{'optionId':_0x1a75d4[0x0]};}async function Ue(_0x17244a,_0x55c5d0,_0x4a90f9){const _0xf94a7f=_0xced2;let _0xa75bc={};for(let _0x15e780 of _0x17244a[_0xf94a7f(0x364)]){let _0x5b1234=_0x15e780[_0xf94a7f(0x27e)]??_0x15e780[_0xf94a7f(0x2dd)],_0x5dbee0=_0x15e780[_0xf94a7f(0x29b)]??0x1,_0x1b10ab=_0x15e780[_0xf94a7f(0x1d7)]?'\x20'+S(_0x15e780[_0xf94a7f(0x1d7)]):'',_0x11c097=_0xf94a7f(0x2ac)+_0x15e780['min']+_0xf94a7f(0x342)+_0x15e780[_0xf94a7f(0x362)]+(_0x5dbee0!==0x1?_0xf94a7f(0x230)+_0x5dbee0:''),_0x577170=await R(_0x55c5d0,S(_0x15e780[_0xf94a7f(0x1ac)])+'\x20['+_0x15e780['min']+'-'+_0x15e780[_0xf94a7f(0x362)]+_0x1b10ab+']\x20(Enter\x20for\x20'+_0x5b1234+_0xf94a7f(0x368),_0x4a90f9,_0xffabeb=>{const _0x2a85fb=_0xf94a7f;let _0x490f3a=Number(_0xffabeb);return Number['isFinite'](_0x490f3a)&&_0x490f3a>=_0x15e780['min']&&_0x490f3a<=_0x15e780['max']&&_0x561420(_0x490f3a,_0x15e780[_0x2a85fb(0x2dd)],_0x5dbee0)?_0x490f3a:{'refused':_0x2a85fb(0x339)+_0x11c097+'.'};});_0xa75bc[_0x15e780['id']]=_0x577170??_0x5b1234;}return{'values':_0xa75bc};}async function Ne(_0x14fc45,_0x248539,_0x24db6){const _0x196944=_0xced2;_0x24db6(_0x14fc45[_0x196944(0x1e9)][_0x196944(0x306)]((_0x31c4c2,_0x5ac3c2)=>'\x20\x20'+(_0x5ac3c2+0x1)+'.\x20'+S(_0x31c4c2['label']))[_0x196944(0x328)]('\x0a')+'\x0a');let _0x4b6a08={};for(let _0x581343 of _0x14fc45[_0x196944(0x24f)]){let _0x1ae5dc=await R(_0x248539,S(_0x581343[_0x196944(0x1ac)])+_0x196944(0x2ff),_0x24db6,_0x29e5c5=>{const _0x110edc=_0x196944;let _0x194408=X(_0x29e5c5,_0x14fc45[_0x110edc(0x1e9)][_0x110edc(0x1ae)]);return _0x194408&&_0x194408[_0x110edc(0x1ae)]===0x1?_0x194408[0x0]:{'refused':_0x110edc(0x259)+_0x14fc45['buckets']['length']+'.'};});if(_0x1ae5dc===void 0x0)continue;let _0x112bca=_0x14fc45['buckets'][_0x1ae5dc],_0x3ec60d={};for(let _0x37ee1d of _0x112bca['subFields']??[]){let _0x5a182e='\x20\x20'+S(_0x37ee1d[_0x196944(0x1ac)])+(_0x37ee1d['optional']?_0x196944(0x25a):'')+':\x20',_0x418a96=await R(_0x248539,_0x5a182e,_0x24db6,_0x25a417=>_0x25a417);for(;_0x418a96===void 0x0&&!_0x37ee1d['optional'];)_0x24db6(S(_0x37ee1d[_0x196944(0x1ac)])+'\x20is\x20required.\x0a'),_0x418a96=await R(_0x248539,_0x5a182e,_0x24db6,_0x6d304=>_0x6d304);_0x418a96!==void 0x0&&(_0x3ec60d[_0x37ee1d['id']]=_0x418a96);}_0x4b6a08[_0x581343['id']]={'bucket':_0x112bca['id'],...Object[_0x196944(0x35a)](_0x3ec60d)[_0x196944(0x1ae)]>0x0?{'subFields':_0x3ec60d}:{}};}return Object[_0x196944(0x35a)](_0x4b6a08)['length']>0x0?{'assignments':_0x4b6a08}:void 0x0;}async function _e(_0x3aaa8d,_0x5efdfa,_0x56b202){const _0x1c67bd=_0xced2;if(_0x3aaa8d[_0x1c67bd(0x1e4)]===_0x1c67bd(0x2c4))return De(_0x3aaa8d,_0x5efdfa,_0x56b202);if(_0x3aaa8d[_0x1c67bd(0x1e4)]==='numeric')return Ue(_0x3aaa8d,_0x5efdfa,_0x56b202);if(_0x3aaa8d['type']==='bucket')return Ne(_0x3aaa8d,_0x5efdfa,_0x56b202);let _0x4a7ad3=(await _0x5efdfa(_0x1c67bd(0x282)))[_0x1c67bd(0x23a)]();return _0x4a7ad3===''?void 0x0:{'text':_0x4a7ad3};}function Z(_0x57366e,_0x4adb57){return async _0x30d433=>{const _0xe7c368=_0xced2;let _0x471008=_0x57366e();if(!_0x471008)throw new Error(_0xe7c368(0x210));let _0x103cf7=async _0x382289=>{const _0x38f5f3=_0xe7c368;if(_0x30d433[_0x38f5f3(0x1d9)][_0x38f5f3(0x205)])throw new Error(_0x38f5f3(0x1fb));let _0x43dc58=await _0x471008[_0x38f5f3(0x22a)](_0x382289,_0x30d433['signal']);if(_0x43dc58===null)throw new Error('Input\x20closed\x20before\x20the\x20question\x20was\x20answered.');return _0x43dc58;};try{_0x4adb57('\x0a'+(_0x30d433[_0xe7c368(0x317)]?S(_0x30d433[_0xe7c368(0x317)])+'\x0a':''));let _0x13d2e6={};for(let [_0x282a3c,_0x22b0b7]of _0x30d433[_0xe7c368(0x307)][_0xe7c368(0x1ed)]()){_0x4adb57('\x0a'+Te(_0x22b0b7,_0x282a3c+0x1,_0x30d433['questions'][_0xe7c368(0x1ae)])+'\x0a');let _0xe35ee5=await _e(_0x22b0b7,_0x103cf7,_0x4adb57);_0xe35ee5!==void 0x0&&(_0x13d2e6[_0x22b0b7['id']]=_0xe35ee5);}return{'answers':_0x13d2e6};}finally{_0x471008[_0xe7c368(0x270)]();}};}import{BUSINESS_ANALYSIS_PRELOADED_SKILLS as _0x530d90,DelegateAgent as _0x5139ac,cancelTurn as _0x100f17,InteropProcess as _0x2c67a7,complete as _0x3c1dee,DEFAULT_MODEL as _0x26204d,createBackendClient as _0x5b0f18,evaluate as _0x1fec2d,isCompletionRequestError as _0x3fedeb,isEvaluationRequestError as _0x41fd98,isTranscriptionError as _0x289a26,rerank as _0x106b08,transcribe as _0x5b2d0c,verify as _0x63e95f,acceptDelegation as _0x277c5f,cancelDelegation as _0x2823fd,claimDelegation as _0x4a11ec,completeDelegation as _0x1eb4e4,createDelegation as _0x17c9b9,deleteDelegation as _0x1208c3,dismissDelegation as _0x4dce77,getSessionDelegations as _0x541a60,isDelegationError as _0x54dd7f,listDelegations as _0x46b2c2,listOrgUsers as _0x16263d,previewDelegation as _0x41c1ab,TurnResultCollector as _0xbeddc4,agentEventToJsonLine as _0x48f5ca,describeBaseUrlRejection as _0x527ffb,getActivitySummary as _0x56c562,getAuthFilePath as _0x1e3ef0,getByoWarnings as _0x290f25,getCartographerAllowance as _0x5c8757,getDailyBreakdown as _0x37ba7b,getLicensingSummary as _0xe2558d,getMonthlySpending as _0xc3be4f,isOutputFormat as _0x3fb8e8,isCloudBaseUrl as _0x7b7f6,isSafeProjectFolderSegment as _0x59653b,listModels as _0x3e416d,listSessions as _0x2d2595,getSession as _0x277864,renameSession as _0x26537b,deleteSession as _0x2384e2,deleteSessionTaskLog as _0x3682ef,forkSession as _0x4d474e,isBackendRequestError as _0x10cfd4,MAX_SESSION_PAGE_SIZE as _0x48f617,listTenants as _0x4f0daa,loadAndRefreshAuth as _0x100037,loadAndRefreshSdkLogin as _0x4714a4,parsePlatformBaseUrl as _0x340ce0,resolveBackendUrl as _0x93f1b3,runHealthCheck as _0x149765,runHostCommand as _0x1ca8eb,runLoginFlow as _0x5cc19f,runTurnForResult as _0x1e2096,saveAuthData as _0x15eb87,switchTenant as _0x427fa9,toJsonLine as _0x429094,ENV_TO_CLOUD as _0x2d5a18,OUTPUT_FORMATS as _0x43ab9e}from'@uipath/delegate-sdk';var Nt=[_0x2e9e2a(0x2c2),_0x2e9e2a(0x329),_0x2e9e2a(0x34d),_0x2e9e2a(0x1a1),'logout',_0x2e9e2a(0x1b2),_0x2e9e2a(0x300),'sessions',_0x2e9e2a(0x35c),_0x2e9e2a(0x1ee),'rerank','verify',_0x2e9e2a(0x1ad),_0x2e9e2a(0x30e),'delegations',_0x2e9e2a(0x1d3)],se=['',_0x2e9e2a(0x34d),'whoami','check',_0x2e9e2a(0x2b1),_0x2e9e2a(0x35c),_0x2e9e2a(0x1ee),'rerank','verify',_0x2e9e2a(0x1ad),_0x2e9e2a(0x30e),_0x2e9e2a(0x273),_0x2e9e2a(0x1d3)],re=[_0x2e9e2a(0x25d),'medium',_0x2e9e2a(0x199),_0x2e9e2a(0x22d),_0x2e9e2a(0x362)],_t=_0x530d90;function w(_0x527a20,_0x4f3320,_0x25aca3,_0x565f20){const _0x24b978=_0x2e9e2a;let _0x4bc3b3=_0x527a20[_0x4f3320];return(!_0x4bc3b3||_0x4bc3b3[_0x24b978(0x1ae)]>0x1&&_0x4bc3b3['startsWith']('-'))&&(console[_0x24b978(0x2a6)](_0x25aca3+_0x24b978(0x32e)+_0x565f20+'.'),process[_0x24b978(0x26b)](0x2)),_0x4bc3b3;}function J(_0x555b7e,_0x41b6b9,_0x3ca889,_0x26d49f){const _0x37f015=_0x2e9e2a;let _0x20348d=w(_0x555b7e,_0x41b6b9,_0x3ca889,'a\x20number'),_0xbc81ad=Number(_0x20348d);return(!/^\d+$/[_0x37f015(0x254)](_0x20348d)||_0xbc81ad<0x1||!Number[_0x37f015(0x216)](_0xbc81ad)||_0x26d49f!==void 0x0&&_0xbc81ad>_0x26d49f)&&(console[_0x37f015(0x2a6)](_0x3ca889+_0x37f015(0x386)+(_0x26d49f===void 0x0?_0x37f015(0x237):'from\x201\x20to\x20'+_0x26d49f)+_0x37f015(0x30b)+_0x20348d+'.'),process[_0x37f015(0x26b)](0x2)),_0xbc81ad;}function Rt(_0x40bf89){const _0x16fcb7=_0x2e9e2a;let _0x37604d={'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':_0x16fcb7(0x2c4),'preloadSkills':[],'attachments':[],'skipEnvCheck':!0x1,'includeSubAgents':!0x1,'operands':[],'help':!0x1,'version':!0x1};Nt[_0x16fcb7(0x284)](_0x40bf89[0x0])&&(_0x37604d[_0x16fcb7(0x367)]=_0x40bf89[0x0],_0x40bf89=_0x40bf89[_0x16fcb7(0x2f0)](0x1));let _0x54dbca=[];for(let _0x3c9954=0x0;_0x3c9954<_0x40bf89[_0x16fcb7(0x1ae)];_0x3c9954++){let _0xeed50a=_0x40bf89[_0x3c9954];switch(_0xeed50a){case _0x16fcb7(0x1f8):case'-p':_0x37604d[_0x16fcb7(0x21b)]=!0x0;break;case'--keep-alive':_0x37604d[_0x16fcb7(0x1ef)]=!0x0;break;case _0x16fcb7(0x28b):_0x37604d[_0x16fcb7(0x34f)]=!0x0;break;case _0x16fcb7(0x345):_0x37604d[_0x16fcb7(0x37b)]=!0x0;break;case _0x16fcb7(0x29c):_0x37604d[_0x16fcb7(0x333)]=!0x0;break;case _0x16fcb7(0x31e):_0x37604d[_0x16fcb7(0x331)]=!0x0,_0x37604d['noComputerUse']=!0x0,_0x37604d[_0x16fcb7(0x2ab)][_0x16fcb7(0x371)](..._t);break;case _0x16fcb7(0x2b0):_0x37604d[_0x16fcb7(0x2c7)]=!0x0;break;case _0x16fcb7(0x233):_0x37604d[_0x16fcb7(0x2cc)]=!0x0;break;case _0x16fcb7(0x2c3):_0x37604d[_0x16fcb7(0x1ea)]=!0x0;break;case'--task-automation':_0x37604d[_0x16fcb7(0x379)]=!0x0;break;case _0x16fcb7(0x363):case'-q':_0x37604d[_0x16fcb7(0x369)]=!0x0;break;case _0x16fcb7(0x201):_0x37604d[_0x16fcb7(0x1be)]=!0x0;break;case _0x16fcb7(0x288):_0x37604d['backendUrl']=_0x40bf89[++_0x3c9954];break;case _0x16fcb7(0x206):_0x37604d['model']=_0x40bf89[++_0x3c9954];break;case _0x16fcb7(0x2a3):_0x37604d[_0x16fcb7(0x293)]=_0x40bf89[++_0x3c9954];break;case _0x16fcb7(0x1e5):_0x37604d['interopPath']=_0x40bf89[++_0x3c9954];break;case'--worker-id':_0x37604d['workerId']=_0x40bf89[++_0x3c9954];break;case'--preload-skill':_0x37604d[_0x16fcb7(0x2ab)][_0x16fcb7(0x371)](w(_0x40bf89,++_0x3c9954,_0xeed50a,_0x16fcb7(0x23b)));break;case _0x16fcb7(0x355):{let _0x1474a6=w(_0x40bf89,++_0x3c9954,_0xeed50a,_0x16fcb7(0x344));_0x59653b(_0x1474a6)||(console[_0x16fcb7(0x2a6)](_0x16fcb7(0x381)+_0x1474a6+_0x16fcb7(0x1c2)),process[_0x16fcb7(0x26b)](0x2)),_0x37604d[_0x16fcb7(0x2d1)]=_0x1474a6;break;}case _0x16fcb7(0x1f9):{let _0x353d86=w(_0x40bf89,++_0x3c9954,_0xeed50a,_0x16fcb7(0x2e5)+_0x43ab9e[_0x16fcb7(0x328)]('\x20|\x20')+')');_0x3fb8e8(_0x353d86)||(console[_0x16fcb7(0x2a6)](_0x16fcb7(0x2bf)+_0x353d86+_0x16fcb7(0x33f)+_0x43ab9e[_0x16fcb7(0x328)](_0x16fcb7(0x2b8))+'.'),process[_0x16fcb7(0x26b)](0x2)),_0x37604d[_0x16fcb7(0x2c0)]=_0x353d86;break;}case _0x16fcb7(0x1c5):_0x37604d[_0x16fcb7(0x1bd)]=w(_0x40bf89,++_0x3c9954,_0xeed50a,_0x16fcb7(0x309));break;case _0x16fcb7(0x1b8):_0x37604d['page']=J(_0x40bf89,++_0x3c9954,_0xeed50a);break;case _0x16fcb7(0x2cb):_0x37604d[_0x16fcb7(0x31c)]=J(_0x40bf89,++_0x3c9954,_0xeed50a,_0x48f617);break;case _0x16fcb7(0x1fe):_0x37604d[_0x16fcb7(0x2a8)]=!0x0;break;case'--json-schema':_0x37604d[_0x16fcb7(0x1a7)]=w(_0x40bf89,++_0x3c9954,_0xeed50a,'a\x20JSON\x20schema\x20file');break;case _0x16fcb7(0x37d):{let _0x2f031f=_0x15228c['resolve'](process['cwd'](),w(_0x40bf89,++_0x3c9954,_0xeed50a,_0x16fcb7(0x1b5)));_0x59b7ea[_0x16fcb7(0x260)](_0x2f031f)||(console[_0x16fcb7(0x2a6)]('--attach:\x20no\x20such\x20file\x20or\x20folder:\x20'+_0x2f031f),process[_0x16fcb7(0x26b)](0x2)),_0x37604d[_0x16fcb7(0x2a2)][_0x16fcb7(0x371)](_0x2f031f);break;}case _0x16fcb7(0x1b6):_0x37604d[_0x16fcb7(0x2e3)]=w(_0x40bf89,++_0x3c9954,_0xeed50a,'a\x20turn\x20id');break;case _0x16fcb7(0x31f):_0x37604d['delegateTo']=w(_0x40bf89,++_0x3c9954,_0xeed50a,'an\x20email\x20address\x20or\x20name');break;case _0x16fcb7(0x285):_0x37604d[_0x16fcb7(0x321)]=w(_0x40bf89,++_0x3c9954,_0xeed50a,_0x16fcb7(0x24b));break;case _0x16fcb7(0x1df):_0x37604d[_0x16fcb7(0x359)]=J(_0x40bf89,++_0x3c9954,_0xeed50a,0x16d);break;case _0x16fcb7(0x304):_0x37604d[_0x16fcb7(0x1c6)]=_0x15228c[_0x16fcb7(0x32d)](process[_0x16fcb7(0x200)](),w(_0x40bf89,++_0x3c9954,_0xeed50a,_0x16fcb7(0x2cd)));break;case'--skills-path':_0x37604d[_0x16fcb7(0x22e)]=_0x15228c[_0x16fcb7(0x32d)](process[_0x16fcb7(0x200)](),w(_0x40bf89,++_0x3c9954,_0xeed50a,_0x16fcb7(0x2cd)));break;case _0x16fcb7(0x2fd):{let _0x4937f3=w(_0x40bf89,++_0x3c9954,_0xeed50a,'an\x20effort\x20tier');re[_0x16fcb7(0x284)](_0x4937f3)||(console[_0x16fcb7(0x2a6)](_0x16fcb7(0x30a)+_0x4937f3+_0x16fcb7(0x33f)+re['join'](_0x16fcb7(0x2b8))+'.'),process[_0x16fcb7(0x26b)](0x2)),_0x37604d['effort']=_0x4937f3;break;}case'--tenant':{let _0x52e08d=_0x40bf89[++_0x3c9954];(!_0x52e08d||_0x52e08d[_0x16fcb7(0x323)]('--'))&&(console[_0x16fcb7(0x2a6)](_0x16fcb7(0x296)),process[_0x16fcb7(0x26b)](0x2)),_0x37604d[_0x16fcb7(0x329)]=_0x52e08d;break;}case _0x16fcb7(0x340):{let _0x4f02d2=_0x40bf89[++_0x3c9954];[_0x16fcb7(0x1d4),_0x16fcb7(0x213),_0x16fcb7(0x24c),_0x16fcb7(0x271)][_0x16fcb7(0x284)](_0x4f02d2)||(console[_0x16fcb7(0x2a6)]('Invalid\x20--env:\x20'+_0x4f02d2+_0x16fcb7(0x2bc)),process['exit'](0x2)),_0x37604d[_0x16fcb7(0x2ea)]=_0x4f02d2;break;}case _0x16fcb7(0x312):case'--authority':{let _0x517184=w(_0x40bf89,++_0x3c9954,_0xeed50a,_0x16fcb7(0x2ce)),_0x36ecad=_0x340ce0(_0x517184);if(_0x36ecad['ok']===!0x1){console[_0x16fcb7(0x2a6)](_0x527ffb(_0x517184,_0x36ecad['rejection'])),process[_0x16fcb7(0x26b)](0x2);break;}_0x37604d[_0x16fcb7(0x232)]=_0x36ecad['baseUrl'];break;}case _0x16fcb7(0x223):_0x37604d['skipEnvCheck']=!0x0;break;case'-h':case _0x16fcb7(0x218):_0x37604d[_0x16fcb7(0x25f)]=!0x0;break;case'-v':case'--version':_0x37604d[_0x16fcb7(0x27b)]=!0x0;break;default:_0xeed50a[_0x16fcb7(0x323)]('--')&&(console[_0x16fcb7(0x2a6)](_0x16fcb7(0x33b)+_0xeed50a),process[_0x16fcb7(0x26b)](0x2)),_0x54dbca['push'](_0xeed50a);}}return _0x37604d['tenant']!==void 0x0&&_0x37604d[_0x16fcb7(0x367)]!==_0x16fcb7(0x2c2)&&(console['error'](_0x16fcb7(0x26c)),process[_0x16fcb7(0x26b)](0x2)),_0x37604d[_0x16fcb7(0x232)]!==void 0x0&&_0x37604d[_0x16fcb7(0x2ea)]!==void 0x0&&(console[_0x16fcb7(0x2a6)]('Pass\x20either\x20--env\x20(a\x20named\x20cloud)\x20or\x20--url\x20(any\x20other\x20deployment),\x20not\x20both.'),process[_0x16fcb7(0x26b)](0x2)),_0x37604d[_0x16fcb7(0x232)]!==void 0x0&&_0x37604d[_0x16fcb7(0x367)]!==_0x16fcb7(0x2c2)&&(console[_0x16fcb7(0x2a6)]('--url\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Other\x20commands\x20follow\x20the\x20saved\x20login,\x20or\x20--backend\x20<url>.'),process[_0x16fcb7(0x26b)](0x2)),_0x37604d[_0x16fcb7(0x359)]!==void 0x0&&_0x37604d[_0x16fcb7(0x367)]!==_0x16fcb7(0x35c)&&(console[_0x16fcb7(0x2a6)]('--days\x20applies\x20to\x20`delegate-cli\x20usage\x20activity|daily`\x20only.'),process[_0x16fcb7(0x26b)](0x2)),_0x37604d[_0x16fcb7(0x1a7)]!==void 0x0&&(_0x37604d[_0x16fcb7(0x367)]!==_0x16fcb7(0x1ad)&&_0x37604d[_0x16fcb7(0x367)]!==''||_0x37604d['cleanup'])&&(console[_0x16fcb7(0x2a6)]('--json-schema\x20applies\x20to\x20prompts\x20and\x20to\x20`delegate-cli\x20complete`\x20only.'),process[_0x16fcb7(0x26b)](0x2)),_0x37604d[_0x16fcb7(0x2a2)][_0x16fcb7(0x1ae)]>0x0&&(_0x37604d['subcommand']!==''||_0x37604d[_0x16fcb7(0x34f)])&&(console[_0x16fcb7(0x2a6)]('--attach\x20applies\x20to\x20prompts\x20only.'),process['exit'](0x2)),_0x37604d['taskAutomation']&&(_0x37604d['subcommand']!==''||_0x37604d['cleanup'])&&(console[_0x16fcb7(0x2a6)](_0x16fcb7(0x267)),process[_0x16fcb7(0x26b)](0x2)),_0x37604d['taskAutomation']&&(_0x37604d['headless']||_0x37604d['noComputerUse'])&&(console[_0x16fcb7(0x2a6)]('--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[_0x16fcb7(0x26b)](0x2)),_0x37604d[_0x16fcb7(0x26d)]&&_0x37604d[_0x16fcb7(0x367)]!==_0x16fcb7(0x2c2)&&(console['error'](_0x16fcb7(0x207)),process['exit'](0x2)),_0x37604d[_0x16fcb7(0x2c0)]!=='text'&&!se[_0x16fcb7(0x284)](_0x37604d['subcommand'])&&(console[_0x16fcb7(0x2a6)](_0x16fcb7(0x1a6)+_0x37604d['outputFormat']+_0x16fcb7(0x385)+se[_0x16fcb7(0x261)](Boolean)[_0x16fcb7(0x328)](',\x20')+'.'),process['exit'](0x2)),(_0x37604d[_0x16fcb7(0x33c)]!==void 0x0||_0x37604d[_0x16fcb7(0x31c)]!==void 0x0||_0x37604d[_0x16fcb7(0x2a8)])&&_0x37604d[_0x16fcb7(0x367)]!==_0x16fcb7(0x2b1)&&(console[_0x16fcb7(0x2a6)](_0x16fcb7(0x2b2)),process[_0x16fcb7(0x26b)](0x2)),(_0x37604d[_0x16fcb7(0x214)]!==void 0x0||_0x37604d[_0x16fcb7(0x321)]!==void 0x0)&&_0x37604d[_0x16fcb7(0x367)]!==_0x16fcb7(0x273)&&(console[_0x16fcb7(0x2a6)](_0x16fcb7(0x1c8)),process[_0x16fcb7(0x26b)](0x2)),_0x37604d[_0x16fcb7(0x2e3)]!==void 0x0&&_0x37604d[_0x16fcb7(0x367)]!==_0x16fcb7(0x2b1)&&(console[_0x16fcb7(0x2a6)](_0x16fcb7(0x20d)),process[_0x16fcb7(0x26b)](0x2)),_0x37604d[_0x16fcb7(0x2ab)]=[...new Set(_0x37604d[_0x16fcb7(0x2ab)])],_0x37604d[_0x16fcb7(0x263)]=_0x54dbca,_0x37604d[_0x16fcb7(0x34a)]=_0x54dbca[_0x16fcb7(0x328)]('\x20'),_0x37604d;}var P=_0x59e098=>{const _0x8751b9=_0x2e9e2a;process['stdout'][_0x8751b9(0x277)](_0x59e098);};function Pt(){const _0x5ad62f=_0x2e9e2a;let _0x488560=process[_0x5ad62f(0x1f3)]['write'],_0x1584ac=_0x488560['bind'](process[_0x5ad62f(0x1f3)]),_0x346b10=P;return P=_0x125431=>{_0x1584ac(_0x125431);},process[_0x5ad62f(0x1f3)]['write']=(..._0x3b9520)=>process['stderr']['write'](..._0x3b9520),()=>{const _0x3b920d=_0x5ad62f;process[_0x3b920d(0x1f3)][_0x3b920d(0x277)]=_0x488560,P=_0x346b10;};}function u(_0x3ea1ae,_0x31b651,_0x50eae8){const _0x4fda73=_0x2e9e2a;if(_0x3ea1ae[_0x4fda73(0x2c0)]===_0x4fda73(0x2c4)){_0x50eae8(_0x31b651);return;}P(_0x429094(_0x31b651));}function Ct(){const _0x25f7ee=_0x2e9e2a;let _0x52ace7='\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'[_0x25f7ee(0x23a)]();console[_0x25f7ee(0x2f8)](_0x52ace7);}function Lt(){const _0x1154c7=_0x2e9e2a;try{return JSON[_0x1154c7(0x365)](_0x59b7ea['readFileSync'](_0x15228c['join'](__dirname,'..',_0x1154c7(0x1aa)),'utf-8'))[_0x1154c7(0x27b)]||'unknown';}catch{return _0x1154c7(0x31d);}}var Ot=0x7d0;async function ie(_0x3f47e9,_0x1faf67){const _0x563248=_0x2e9e2a;let _0x28d164=_0x1faf67?[_0x1faf67]:[];for await(let _0x42c431 of _0x3f47e9)_0x28d164[_0x563248(0x371)](Buffer['from'](_0x42c431));return Buffer[_0x563248(0x2e2)](_0x28d164)[_0x563248(0x20e)](_0x563248(0x211))[_0x563248(0x23a)]();}function Ft(_0x2ae04e,_0x56d0eb){return new Promise(_0x2d5d38=>{const _0x3d0237=_0xced2;let _0x343303=_0x4fb673=>{const _0x52ec58=_0xced2;clearTimeout(_0x1809bc),_0x2ae04e['off']('data',_0x4af3a4),_0x2ae04e[_0x52ec58(0x35b)](_0x52ec58(0x376),_0x54d778),_0x2ae04e[_0x52ec58(0x35b)](_0x52ec58(0x2a6),_0x54d778),_0x2ae04e[_0x52ec58(0x228)](),_0x2d5d38(_0x4fb673);},_0x4af3a4=_0x3e4113=>_0x343303(Buffer[_0x3d0237(0x2cf)](_0x3e4113)),_0x54d778=()=>_0x343303(null),_0x1809bc=setTimeout(()=>_0x343303(null),_0x56d0eb);_0x2ae04e['on']('data',_0x4af3a4),_0x2ae04e['on']('end',_0x54d778),_0x2ae04e['on'](_0x3d0237(0x2a6),_0x54d778),_0x2ae04e[_0x3d0237(0x1cd)]();});}async function j(_0x2bf3f4,_0x553421,_0x3f6e06=Ot){const _0x14ee8b=_0x2e9e2a;let _0x2fbf34=_0x2bf3f4==='-';if(!_0x2fbf34&&_0x2bf3f4)return _0x2bf3f4;if(!_0x2fbf34&&_0x553421[_0x14ee8b(0x27d)])return'';if(_0x2fbf34)return ie(_0x553421,null);let _0x40e4de=await Ft(_0x553421,_0x3f6e06);return _0x40e4de?ie(_0x553421,_0x40e4de):'';}function K(){const _0x64c601=_0x2e9e2a;return _0x15228c[_0x64c601(0x328)](process.env.HOME||process.env.USERPROFILE||'',_0x64c601(0x1bc),_0x64c601(0x2a4));}function M(_0x5cbc17){const _0x2c7b11=_0x2e9e2a;try{let _0x80ddb0=JSON[_0x2c7b11(0x365)](_0x59b7ea['readFileSync'](_0x5cbc17,'utf-8'));return!_0x80ddb0[_0x2c7b11(0x383)]||!_0x80ddb0['tenantId']||!_0x80ddb0[_0x2c7b11(0x297)]?null:_0x80ddb0;}catch{return null;}}function jt(){const _0x5102f9=_0x2e9e2a;let _0x3570dd=[{'file':_0x1e3ef0(),'isDesktopFallback':!0x1},{'file':K(),'isDesktopFallback':!0x0}];for(let _0x158b0e of _0x3570dd){let _0x5e2d94=M(_0x158b0e[_0x5102f9(0x325)]);if(_0x5e2d94)return{..._0x158b0e,'auth':_0x5e2d94};}return null;}async function Mt(){const _0x1f63b5=_0x2e9e2a;let _0x11f0a2=_0x1e3ef0();if(!_0x59b7ea[_0x1f63b5(0x260)](_0x11f0a2)){let _0x2f9a96=K();console[_0x1f63b5(0x2f8)](M(_0x2f9a96)?_0x1f63b5(0x24a)+_0x2f9a96+_0x1f63b5(0x377):_0x1f63b5(0x26a));return;}_0x59b7ea[_0x1f63b5(0x289)](_0x11f0a2),console[_0x1f63b5(0x2f8)](_0x1f63b5(0x298)+_0x11f0a2);}async function Bt(_0xf7de6b){const _0x4895a0=_0x2e9e2a;let _0x2458b4=Q(),_0x4d69b6,_0x5a2362;if(_0x2458b4)_0x4d69b6=_0x2458b4,_0x5a2362=_0x4895a0(0x2d8);else{let _0x132265=jt();if(!_0x132265)throw new Error(Se);_0x4d69b6=_0x132265[_0x4895a0(0x2ba)],_0x5a2362=_0x132265[_0x4895a0(0x1a5)]?_0x132265[_0x4895a0(0x325)]+_0x4895a0(0x240):_0x132265['file'];}let _0x151fde={'source':_0x5a2362,'baseUrl':_0x4d69b6[_0x4895a0(0x2e9)]??null,'deployment':Ht(_0x4d69b6[_0x4895a0(0x2e9)]),'organization':{'id':_0x4d69b6['organizationId'],'slug':_0x4d69b6[_0x4895a0(0x351)]??null},'tenant':{'id':_0x4d69b6[_0x4895a0(0x281)],'name':_0x4d69b6[_0x4895a0(0x2f2)]??null},'tokenExpiresAt':_0x4d69b6[_0x4895a0(0x231)]?new Date(_0x4d69b6[_0x4895a0(0x231)]*0x3e8)[_0x4895a0(0x2fb)]():null};u(_0xf7de6b,_0x151fde,()=>{const _0x1eeb29=_0x4895a0;let _0x5393ec=['Source:\x20\x20\x20\x20\x20\x20\x20'+_0x5a2362,'Base\x20URL:\x20\x20\x20\x20\x20'+(_0x4d69b6[_0x1eeb29(0x2e9)]??'unknown'),_0x1eeb29(0x314)+_0x151fde[_0x1eeb29(0x299)],_0x1eeb29(0x1c0)+(_0x4d69b6['orgLogicalName']??'unknown\x20slug')+'\x20('+_0x4d69b6[_0x1eeb29(0x297)]+')',_0x1eeb29(0x19c)+(_0x4d69b6[_0x1eeb29(0x2f2)]??_0x1eeb29(0x250))+'\x20('+_0x4d69b6[_0x1eeb29(0x281)]+')'];if(_0x4d69b6[_0x1eeb29(0x231)]){let _0x3bf4a9=_0x4d69b6[_0x1eeb29(0x231)]-Math['floor'](Date[_0x1eeb29(0x294)]()/0x3e8);_0x5393ec[_0x1eeb29(0x371)](_0x3bf4a9>0x0?_0x1eeb29(0x235)+_0x151fde[_0x1eeb29(0x292)]+'\x20(in\x20'+Math['round'](_0x3bf4a9/0x3c)+_0x1eeb29(0x264):_0x1eeb29(0x2de)+_0x151fde['tokenExpiresAt']);}process[_0x1eeb29(0x1f3)][_0x1eeb29(0x277)](_0x5393ec[_0x1eeb29(0x328)]('\x0a')+'\x0a');});}var Se=_0x2e9e2a(0x346);function Ht(_0x2c08fb){const _0x4481d1=_0x2e9e2a;return _0x2c08fb?_0x7b7f6(_0x2c08fb)?_0x4481d1(0x322):_0x4481d1(0x380):_0x4481d1(0x31d);}function Q(){let _0x56a2ef=process.env.AUTH_TOKEN_FILE;return(process.env.AUTH_TOKEN||_0x56a2ef)&&process.env.TENANT_ID&&process.env.ORG_ID?{'accessToken':_0x56a2ef?Jt(_0x56a2ef):process.env.AUTH_TOKEN,..._0x56a2ef?{'accessTokenFile':_0x56a2ef}:{},'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(_0x3d52ae){const _0x2fe431=_0x2e9e2a;let _0x46258e;try{_0x46258e=_0x59b7ea[_0x2fe431(0x2af)](_0x3d52ae,_0x2fe431(0x211))[_0x2fe431(0x23a)]();}catch(_0x5ef5d3){throw new Error(_0x2fe431(0x315)+_0x3d52ae+_0x2fe431(0x220)+_0x5ef5d3[_0x2fe431(0x290)]);}let _0x40206e=_0x46258e[_0x2fe431(0x323)]('Bearer\x20')?_0x46258e[_0x2fe431(0x2f0)](0x7)['trim']():_0x46258e;if(!_0x40206e)throw new Error(_0x2fe431(0x315)+_0x3d52ae+_0x2fe431(0x2ef));return _0x40206e;}function ve(){const _0x21e7ff=_0x2e9e2a;let _0x247207=process.env.UIPATH_BASE_URL;if(!_0x247207)return;let _0x327aed=_0x340ce0(_0x247207);if(_0x327aed['ok']===!0x1)throw new Error(_0x21e7ff(0x274)+_0x527ffb(_0x247207,_0x327aed['rejection']));return _0x327aed[_0x21e7ff(0x2e9)];}async function q(){let _0x125880=Q();if(_0x125880)return _0x125880;let _0x524593=await _0x100037();if(_0x524593)return _0x524593;throw new Error(Se);}async function Gt(){const _0x43b3e3=_0x2e9e2a;await new _0x2c67a7()[_0x43b3e3(0x248)]({'force':!0x0}),console[_0x43b3e3(0x2f8)](_0x43b3e3(0x203));}function z(_0x518992,_0x2dcc33,_0x200f6b){const _0x17f472=_0x2e9e2a;_0x518992?process[_0x17f472(0x2c8)][_0x17f472(0x277)]('[env='+_0x518992+_0x17f472(0x36b)+_0x200f6b+'\x0a'):!_0x2dcc33&&!process.env.BACKEND_URL&&process[_0x17f472(0x2c8)][_0x17f472(0x277)](_0x17f472(0x32b)+_0x200f6b+'\x0a');}async function v(_0x3a25c3){const _0x497965=_0x2e9e2a;let _0xa8f7ae=await q(),_0x47dfb8=_0x93f1b3(_0x3a25c3[_0x497965(0x2ea)],_0xa8f7ae,_0x3a25c3[_0x497965(0x1e1)]);return z(_0x3a25c3[_0x497965(0x2ea)],_0x3a25c3[_0x497965(0x1e1)],_0x47dfb8),{'auth':_0xa8f7ae,'backendUrl':_0x47dfb8,'client':_0x5b0f18({'auth':_0xa8f7ae,'backendUrl':_0x47dfb8})};}async function Wt(_0x53ca7f){const _0x2f79ef=_0x2e9e2a;let {client:_0x1c59ee}=await v(_0x53ca7f),[_0x4b5cc8,_0x5f322a]=await Promise['all']([_0x3e416d(_0x1c59ee),_0x290f25(_0x1c59ee)[_0x2f79ef(0x341)](_0x1af513=>(process['stderr'][_0x2f79ef(0x277)](_0x2f79ef(0x32f)+(_0x1af513 instanceof Error?_0x1af513[_0x2f79ef(0x290)]:String(_0x1af513))+'\x0a'),{}))]),_0x3dce1b=_0x4b5cc8['map'](_0x1b55ad=>_0x5f322a[_0x1b55ad['id']]?{..._0x1b55ad,'byoWarning':_0x5f322a[_0x1b55ad['id']]}:_0x1b55ad);u(_0x53ca7f,_0x3dce1b,Kt);}function Kt(_0x4bbacd){const _0x2f637c=_0x2e9e2a;if(_0x4bbacd[_0x2f637c(0x1ae)]===0x0){process[_0x2f637c(0x2c8)][_0x2f637c(0x277)](_0x2f637c(0x225));return;}process['stdout'][_0x2f637c(0x277)](_0x2f637c(0x229)+_0x4bbacd[_0x2f637c(0x1ae)]+_0x2f637c(0x35e));for(let _0x4b2f73 of _0x4bbacd){let _0x27cff6=_0x4b2f73[_0x2f637c(0x358)]&&_0x4b2f73[_0x2f637c(0x358)]!==_0x4b2f73['id']?'\x20('+_0x4b2f73[_0x2f637c(0x358)]+')':'';process['stdout'][_0x2f637c(0x277)]('\x20\x20'+_0x4b2f73['id']+_0x27cff6+'\x0a'),_0x4b2f73[_0x2f637c(0x335)]&&process[_0x2f637c(0x1f3)][_0x2f637c(0x277)](_0x2f637c(0x310)+_0x4b2f73[_0x2f637c(0x335)]+'\x0a'),_0x4b2f73['locked']&&process['stdout'][_0x2f637c(0x277)]('\x20\x20\x20\x20Not\x20available\x20on\x20this\x20plan'+(_0x4b2f73['lockReason']?'\x20('+_0x4b2f73[_0x2f637c(0x2c6)]+')':'')+'\x0a'),_0x4b2f73['byoWarning']&&process['stdout'][_0x2f637c(0x277)](_0x2f637c(0x256)+_0x4b2f73['byoWarning']+'\x0a');}process[_0x2f637c(0x1f3)]['write']('\x0aUse\x20with:\x20delegate-cli\x20--model\x20<id>\x20\x22<prompt>\x22\x0a');}var ae=['list','show',_0x2e9e2a(0x1d5),'delete',_0x2e9e2a(0x212),'fork'];async function Qt(_0x96b956){const _0x15f5ea=_0x2e9e2a;let [_0x130554='',_0x1a35e8='',..._0x4c4e69]=_0x96b956[_0x15f5ea(0x263)];if(_0x130554&&!ae[_0x15f5ea(0x284)](_0x130554)&&(console[_0x15f5ea(0x2a6)](_0x15f5ea(0x334)+_0x130554+_0x15f5ea(0x34e)+ae['join']('\x20|\x20')+'.'),process[_0x15f5ea(0x26b)](0x2)),_0x96b956[_0x15f5ea(0x2e3)]!==void 0x0&&_0x130554!==_0x15f5ea(0x212)&&(console[_0x15f5ea(0x2a6)](_0x15f5ea(0x20d)),process[_0x15f5ea(0x26b)](0x2)),_0x130554&&_0x130554!=='list'){await qt(_0x96b956,_0x130554,_0x1a35e8,_0x4c4e69['join']('\x20')[_0x15f5ea(0x23a)]());return;}_0x96b956['operands']['length']>0x1&&(console[_0x15f5ea(0x2a6)](_0x15f5ea(0x2d2)),process[_0x15f5ea(0x26b)](0x2));let {client:_0x170461}=await v(_0x96b956),_0x59ec46=await _0x2d2595(_0x170461,{'page':_0x96b956[_0x15f5ea(0x33c)],'pageSize':_0x96b956[_0x15f5ea(0x31c)],'includeSubAgents':_0x96b956[_0x15f5ea(0x2a8)]});u(_0x96b956,_0x59ec46,Xt);}async function qt(_0x3bf2c2,_0x459fd9,_0x24f056,_0x2186e7){const _0x3be93c=_0x2e9e2a;if((_0x3bf2c2[_0x3be93c(0x33c)]!==void 0x0||_0x3bf2c2[_0x3be93c(0x31c)]!==void 0x0||_0x3bf2c2[_0x3be93c(0x2a8)])&&(console['error'](_0x3be93c(0x303)),process['exit'](0x2)),_0x459fd9===_0x3be93c(0x212)){await Yt(_0x3bf2c2,_0x24f056,_0x2186e7);return;}if(_0x459fd9==='fork'){await Vt(_0x3bf2c2,_0x24f056,_0x2186e7);return;}(!_0x24f056||_0x459fd9===_0x3be93c(0x1d5)!=!!_0x2186e7)&&(console[_0x3be93c(0x2a6)](_0x3be93c(0x19e)+_0x459fd9+_0x3be93c(0x36d)+(_0x459fd9===_0x3be93c(0x1d5)?_0x3be93c(0x33a):'')),process[_0x3be93c(0x26b)](0x2));let {client:_0x3cba35}=await v(_0x3bf2c2);try{if(_0x459fd9===_0x3be93c(0x2eb)){let _0x3619fc=await _0x277864(_0x3cba35,_0x24f056);_0x3619fc||le(_0x24f056),u(_0x3bf2c2,_0x3619fc,zt);}else{if(_0x459fd9===_0x3be93c(0x1d5)){let _0x2c3197=await _0x26537b(_0x3cba35,_0x24f056,_0x2186e7);u(_0x3bf2c2,_0x2c3197,_0x540435=>{const _0x18f556=_0x3be93c;process['stdout'][_0x18f556(0x277)]('Renamed\x20'+_0x540435['id']+':\x20'+_0x540435[_0x18f556(0x224)]+'\x0a');});}else await _0x2384e2(_0x3cba35,_0x24f056),await _0x3682ef(_0x24f056,_0x3bf2c2[_0x3be93c(0x1c6)]),u(_0x3bf2c2,{'id':_0x24f056,'deleted':!0x0},_0x168980=>{const _0x1152e5=_0x3be93c;process[_0x1152e5(0x1f3)][_0x1152e5(0x277)](_0x1152e5(0x19a)+_0x168980['id']+'.\x0a');});}}catch(_0x4458a2){if(!_0x10cfd4(_0x4458a2,0x194))throw _0x4458a2;le(_0x24f056);}}function le(_0x4cda2a){const _0x457a64=_0x2e9e2a;console[_0x457a64(0x2a6)](_0x457a64(0x37a)+_0x4cda2a+_0x457a64(0x311)),process[_0x457a64(0x26b)](0x1);}function zt(_0x3deb86){const _0x1aa3d8=_0x2e9e2a;process['stdout'][_0x1aa3d8(0x277)](_0x1aa3d8(0x1ab)+_0x3deb86['id']+'\x0a'),process[_0x1aa3d8(0x1f3)][_0x1aa3d8(0x277)](_0x1aa3d8(0x356)+_0x3deb86[_0x1aa3d8(0x224)]+'\x0a'),process[_0x1aa3d8(0x1f3)][_0x1aa3d8(0x277)](_0x1aa3d8(0x1d8)+_0x3deb86[_0x1aa3d8(0x1b4)]+'\x0a'),process['stdout'][_0x1aa3d8(0x277)](_0x1aa3d8(0x244)+_0x3deb86[_0x1aa3d8(0x297)]+'\x0a'),_0x3deb86['delegationId']&&process[_0x1aa3d8(0x1f3)]['write']('Delegation\x20\x20\x20\x20'+_0x3deb86[_0x1aa3d8(0x1db)]+'\x0a');}async function Yt(_0x28623f,_0xceb205,_0x4206fe){const _0x1360ae=_0x2e9e2a;(!_0xceb205||_0x4206fe||!_0x28623f['turnId'])&&(console[_0x1360ae(0x2a6)](_0x1360ae(0x2db)),process[_0x1360ae(0x26b)](0x2));let {client:_0x2b28e9}=await v(_0x28623f),_0x1b854d=await _0x100f17(_0x2b28e9,_0xceb205,_0x28623f['turnId']);u(_0x28623f,{'sessionId':_0xceb205,'turnId':_0x28623f['turnId'],'cancelled':_0x1b854d},_0x5561c5=>{const _0x1db6ff=_0x1360ae;_0x5561c5[_0x1db6ff(0x318)]?process[_0x1db6ff(0x1f3)]['write'](_0x1db6ff(0x1ff)+_0x5561c5['turnId']+_0x1db6ff(0x272)+_0x5561c5[_0x1db6ff(0x1bd)]+'.\x0a'):process[_0x1db6ff(0x2c8)][_0x1db6ff(0x277)]('No\x20turn\x20'+_0x5561c5[_0x1db6ff(0x2e3)]+_0x1db6ff(0x2e0)+_0x5561c5[_0x1db6ff(0x1bd)]+'.\x0a');}),_0x1b854d||(process[_0x1360ae(0x320)]=0x1);}async function Vt(_0x1f680b,_0x161f92,_0x3a2ab2){const _0x1821d0=_0x2e9e2a;(!_0x161f92||/\s/[_0x1821d0(0x254)](_0x3a2ab2))&&(console[_0x1821d0(0x2a6)](_0x1821d0(0x245)),process[_0x1821d0(0x26b)](0x2));let {client:_0x3c6ba4}=await v(_0x1f680b),_0x3c1627;try{_0x3c1627=await _0x4d474e(_0x3c6ba4,_0x161f92,{'atMessageId':_0x3a2ab2||void 0x0});}catch(_0x25661c){if(!_0x10cfd4(_0x25661c,0x194))throw _0x25661c;console[_0x1821d0(0x2a6)](_0x1821d0(0x37a)+_0x161f92+_0x1821d0(0x1e2)+(_0x3a2ab2?_0x1821d0(0x2d0)+_0x3a2ab2:'')+'.'),process[_0x1821d0(0x26b)](0x1);}u(_0x1f680b,_0x3c1627,_0x5dc8d9=>{const _0x5896dd=_0x1821d0;process[_0x5896dd(0x1f3)]['write']('Forked\x20'+_0x161f92+_0x5896dd(0x2ee)+_0x5dc8d9['id']+'.\x0a'),process['stderr'][_0x5896dd(0x277)](_0x5896dd(0x1f7)+_0x5dc8d9['id']+_0x5896dd(0x28e));});}function Xt({sessions:_0x579c13,page:_0x416958,isLastPage:_0x53b985}){const _0xb1610c=_0x2e9e2a;if(_0x579c13[_0xb1610c(0x1ae)]===0x0)process[_0xb1610c(0x2c8)]['write'](_0xb1610c(0x1f5)+_0x416958+'.\x0a');else{process[_0xb1610c(0x1f3)][_0xb1610c(0x277)]('ID'[_0xb1610c(0x372)](0x24)+'\x20\x20'+_0xb1610c(0x21d)[_0xb1610c(0x372)](0x13)+_0xb1610c(0x343));for(let _0x24ceeb of _0x579c13){let _0x48f796=_0x24ceeb['updatedAt']['replace']('T','\x20')[_0xb1610c(0x2f0)](0x0,0x13),_0x18b163=_0x24ceeb['parentSessionId']?_0xb1610c(0x2b9)+_0x24ceeb[_0xb1610c(0x2fc)]+')':'';process[_0xb1610c(0x1f3)][_0xb1610c(0x277)](_0x24ceeb['id'][_0xb1610c(0x372)](0x24)+'\x20\x20'+_0x48f796[_0xb1610c(0x372)](0x13)+'\x20\x20'+_0x24ceeb[_0xb1610c(0x224)]+_0x18b163+'\x0a');}}_0x53b985||process[_0xb1610c(0x2c8)][_0xb1610c(0x277)](_0xb1610c(0x374)+(_0x416958+0x1)+'\x0a');}function _0xced2(_0x1641ab,_0x352c25){_0x1641ab=_0x1641ab-0x199;const _0x3c878c=_0x3c87();let _0xced272=_0x3c878c[_0x1641ab];return _0xced272;}async function Zt(_0x2acc48){const _0x4df9c0=_0x2e9e2a;let _0x236346=await q(),_0x3823e4=_0x93f1b3(_0x2acc48[_0x4df9c0(0x2ea)],_0x236346,_0x2acc48[_0x4df9c0(0x1e1)]);z(_0x2acc48[_0x4df9c0(0x2ea)],_0x2acc48[_0x4df9c0(0x1e1)],_0x3823e4);let _0xbad7cc=await _0x149765({'auth':_0x236346,'backendUrl':_0x3823e4,'interop':_0x2acc48[_0x4df9c0(0x37b)]?_0x4df9c0(0x262):_0x4df9c0(0x2aa)});u(_0x2acc48,_0xbad7cc,({checks:_0x534046})=>{const _0x5a580d=_0x4df9c0;for(let _0x197881 of _0x534046)process[_0x5a580d(0x1f3)][_0x5a580d(0x277)](en(_0x197881)+'\x0a');}),_0xbad7cc['ok']||process[_0x4df9c0(0x26b)](0x1);}function en(_0x27d7fb){const _0x51e91a=_0x2e9e2a;return{'ok':'✓','failed':'✗','skipped':'-'}[_0x27d7fb[_0x51e91a(0x337)]]+'\x20'+_0x27d7fb[_0x51e91a(0x358)][_0x51e91a(0x372)](0xa)+_0x27d7fb['detail'];}var tn=['','activity','daily'];async function nn(_0x342a9c){const _0x5d36c3=_0x2e9e2a;let _0x1d8adf=_0x342a9c['prompt'];tn['includes'](_0x1d8adf)||(console[_0x5d36c3(0x2a6)](_0x5d36c3(0x33e)+_0x342a9c[_0x5d36c3(0x34a)]+_0x5d36c3(0x2d5)),process[_0x5d36c3(0x26b)](0x2)),_0x1d8adf===''&&_0x342a9c[_0x5d36c3(0x359)]!==void 0x0&&(console[_0x5d36c3(0x2a6)](_0x5d36c3(0x308)),process[_0x5d36c3(0x26b)](0x2)),_0x1d8adf!==''&&_0x342a9c[_0x5d36c3(0x1bd)]!==void 0x0&&(console[_0x5d36c3(0x2a6)](_0x5d36c3(0x36a)),process[_0x5d36c3(0x26b)](0x2));let {client:_0x4dc953}=await v(_0x342a9c);if(_0x1d8adf==='activity'){u(_0x342a9c,await _0x56c562(_0x4dc953,{'days':_0x342a9c['days']}),sn);return;}if(_0x1d8adf==='daily'){u(_0x342a9c,await _0x37ba7b(_0x4dc953,{'days':_0x342a9c[_0x5d36c3(0x359)]}),rn);return;}let [_0x52fed0,_0x4dbb0d,_0x489475]=await Promise[_0x5d36c3(0x22b)]([_0xe2558d(_0x4dc953,{'sessionId':_0x342a9c[_0x5d36c3(0x1bd)]}),_0xc3be4f(_0x4dc953),_0x5c8757(_0x4dc953)]);u(_0x342a9c,{'licensing':_0x52fed0,'monthlySpending':_0x4dbb0d,'cartographerAllowance':_0x489475},on);}function on(_0x416198){const _0x440a88=_0x2e9e2a;let {licensing:_0x10ac4d,monthlySpending:_0x21205e,cartographerAllowance:_0x31db5b}=_0x416198,_0x341b0f=[_0x10ac4d['limit_enabled']?_0x440a88(0x32a)+_0x10ac4d[_0x440a88(0x23d)][_0x440a88(0x1ce)](0x1)+_0x440a88(0x1c9)+(_0x10ac4d[_0x440a88(0x19f)]??0x0)+'\x20PU\x20used'+(_0x10ac4d[_0x440a88(0x1c4)]>0x0?',\x20'+_0x10ac4d[_0x440a88(0x1c4)]+_0x440a88(0x2c9):'')+_0x440a88(0x23f)+_0x10ac4d['period_end']+')':_0x440a88(0x319),'Spending:\x20\x20\x20\x20\x20$'+_0x21205e[_0x440a88(0x1b7)][_0x440a88(0x1ce)](0x2)+_0x440a88(0x208)+(_0x21205e[_0x440a88(0x327)]&&_0x21205e['monthly_limit_usd']!==null?_0x440a88(0x217)+_0x21205e[_0x440a88(0x2d6)]['toFixed'](0x2)+'\x20cap':'\x20(no\x20cap\x20enforced)'),_0x440a88(0x2a1)+_0x31db5b[_0x440a88(0x30d)]+'\x20('+_0x31db5b['model_id']+')'];_0x10ac4d[_0x440a88(0x32c)]!==null&&_0x10ac4d[_0x440a88(0x32c)]!==void 0x0&&_0x341b0f[_0x440a88(0x371)](_0x440a88(0x291)+_0x10ac4d[_0x440a88(0x32c)]+'\x20PU'),process[_0x440a88(0x1f3)][_0x440a88(0x277)](_0x341b0f[_0x440a88(0x328)]('\x0a')+'\x0a');}function sn(_0x211bf4){const _0x206689=_0x2e9e2a;let _0x20c62a=[_0x206689(0x2d3)+_0x211bf4[_0x206689(0x242)]+'\x20days:\x20'+_0x211bf4[_0x206689(0x2e8)]+_0x206689(0x2f7)+_0x211bf4[_0x206689(0x239)]+_0x206689(0x326),_0x206689(0x249)+_0x211bf4[_0x206689(0x20f)][_0x206689(0x1ce)](0x2)+_0x206689(0x1e0)+_0x211bf4[_0x206689(0x238)][_0x206689(0x1ce)](0x2)+_0x206689(0x2c1)+_0x211bf4[_0x206689(0x36f)]+_0x206689(0x353),'Tokens:\x20'+_0x211bf4[_0x206689(0x21a)]+_0x206689(0x20a)+_0x211bf4[_0x206689(0x36c)]+_0x206689(0x2b7)];for(let [_0x270f53,_0x2b8663]of Object[_0x206689(0x1ed)](_0x211bf4[_0x206689(0x37e)]))_0x20c62a[_0x206689(0x371)]('\x20\x20'+_0x270f53+':\x20'+_0x2b8663+_0x206689(0x1fc));process['stdout'][_0x206689(0x277)](_0x20c62a['join']('\x0a')+'\x0a');}function rn(_0x16a475){const _0x572fe2=_0x2e9e2a;if(_0x16a475[_0x572fe2(0x37f)]['length']===0x0){process[_0x572fe2(0x1f3)][_0x572fe2(0x277)](_0x572fe2(0x266)+_0x16a475[_0x572fe2(0x242)]+_0x572fe2(0x1d6));return;}let _0xdc2fc5=[_0x572fe2(0x347)];for(let _0x5d5c98 of _0x16a475[_0x572fe2(0x37f)])_0xdc2fc5[_0x572fe2(0x371)](_0x5d5c98[_0x572fe2(0x301)]+'\x20\x20'+String(_0x5d5c98[_0x572fe2(0x26f)])[_0x572fe2(0x269)](0xb)+'\x20\x20'+String(_0x5d5c98['prompt_tokens'])[_0x572fe2(0x269)](0xd)+'\x20\x20'+String(_0x5d5c98[_0x572fe2(0x247)])[_0x572fe2(0x269)](0x11));process[_0x572fe2(0x1f3)][_0x572fe2(0x277)](_0xdc2fc5[_0x572fe2(0x328)]('\x0a')+'\x0a');}async function an(_0x53f41c,_0x5adefe){const _0xa4ad48=_0x2e9e2a;let _0x3d22af=await ln(_0x53f41c['prompt'],_0x5adefe);_0x53f41c[_0xa4ad48(0x215)]&&(_0x3d22af[_0xa4ad48(0x215)]=_0x53f41c[_0xa4ad48(0x215)]);let {client:_0x57b0a6}=await v(_0x53f41c);try{_0x5adefe===_0xa4ad48(0x1ee)?u(_0x53f41c,await _0x1fec2d(_0x57b0a6,_0x3d22af,void 0x0),dn):_0x5adefe===_0xa4ad48(0x2b6)?u(_0x53f41c,await _0x106b08(_0x57b0a6,_0x3d22af,void 0x0),un):u(_0x53f41c,await _0x63e95f(_0x57b0a6,_0x3d22af,void 0x0),pn);}catch(_0x3f659d){if(!_0x41fd98(_0x3f659d))throw _0x3f659d;console['error'](_0x3f659d[_0xa4ad48(0x290)]),process[_0xa4ad48(0x26b)](0x1);}}async function ln(_0x32d281,_0x5a598b){const _0x114952=_0x2e9e2a;let _0x2c2ad0;try{_0x2c2ad0=_0x32d281&&_0x32d281!=='-'?_0x59b7ea[_0x114952(0x2af)](_0x15228c['resolve'](_0x32d281),'utf-8'):await j(_0x32d281,process[_0x114952(0x27c)]);}catch(_0x4d460a){console[_0x114952(0x2a6)](_0x5a598b+':\x20cannot\x20read\x20the\x20request\x20('+_0x4d460a[_0x114952(0x290)]+').'),process[_0x114952(0x26b)](0x2);}return _0x2c2ad0||(console[_0x114952(0x2a6)](_0x5a598b+'\x20needs\x20a\x20JSON\x20request:\x20delegate-cli\x20'+_0x5a598b+_0x114952(0x1cb)),process[_0x114952(0x26b)](0x2)),Ae(_0x2c2ad0,_0x5a598b,_0x114952(0x241));}function Ae(_0x3dd2b5,_0x4366bf,_0x2c98de){const _0x2e2a5d=_0x2e9e2a;let _0x327739;try{_0x327739=JSON[_0x2e2a5d(0x365)](_0x3dd2b5);}catch(_0x1291d7){console['error'](_0x4366bf+':\x20'+_0x2c98de+'\x20is\x20not\x20valid\x20JSON\x20('+_0x1291d7[_0x2e2a5d(0x290)]+').'),process['exit'](0x2);}return(typeof _0x327739!=_0x2e2a5d(0x246)||_0x327739===null||Array['isArray'](_0x327739))&&(console[_0x2e2a5d(0x2a6)](_0x4366bf+':\x20'+_0x2c98de+'\x20must\x20be\x20a\x20JSON\x20object.'),process[_0x2e2a5d(0x26b)](0x2)),_0x327739;}function $e(_0x135f93,_0x13f62f){const _0x374f29=_0x2e9e2a;let _0x970a30;try{_0x970a30=_0x59b7ea[_0x374f29(0x2af)](_0x15228c[_0x374f29(0x32d)](_0x135f93),_0x374f29(0x211));}catch(_0x513785){console['error'](_0x13f62f+':\x20cannot\x20read\x20the\x20JSON\x20schema\x20('+_0x513785[_0x374f29(0x290)]+').'),process['exit'](0x2);}return Ae(_0x970a30,_0x13f62f,_0x374f29(0x1ba));}async function cn(_0x37fd1e){const _0x2f862b=_0x2e9e2a;_0x37fd1e[_0x2f862b(0x1a7)]===void 0x0&&(console[_0x2f862b(0x2a6)](_0x2f862b(0x2e4)),process[_0x2f862b(0x26b)](0x2));let _0x485468=$e(_0x37fd1e[_0x2f862b(0x1a7)],_0x2f862b(0x1ad)),_0x4662fa=(await j(_0x37fd1e[_0x2f862b(0x34a)],process[_0x2f862b(0x27c)]))[_0x2f862b(0x23a)]();_0x4662fa||(console[_0x2f862b(0x2a6)]('complete\x20needs\x20a\x20prompt:\x20delegate-cli\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22,\x20or\x20-\x20to\x20read\x20stdin.'),process['exit'](0x2));let {client:_0x1efc48}=await v(_0x37fd1e);try{let _0x9852fb=await _0x3c1dee(_0x1efc48,{'prompt':_0x4662fa,'jsonSchema':_0x485468,'model':_0x37fd1e[_0x2f862b(0x215)]||process.env.MODEL||_0x26204d,..._0x37fd1e['sessionId']!==void 0x0&&{'sessionId':_0x37fd1e[_0x2f862b(0x1bd)]}},void 0x0);u(_0x37fd1e,_0x9852fb,_0x452c03=>{const _0x2ebf8b=_0x2f862b;process['stdout'][_0x2ebf8b(0x277)](JSON[_0x2ebf8b(0x251)](_0x452c03[_0x2ebf8b(0x1eb)],null,0x2)+'\x0a');});}catch(_0x380333){if(!_0x3fedeb(_0x380333))throw _0x380333;console['error'](_0x380333[_0x2f862b(0x290)]),process[_0x2f862b(0x26b)](0x1);}}function Y(_0x3a7155){const _0x47eba9=_0x2e9e2a;process[_0x47eba9(0x1f3)][_0x47eba9(0x277)]('Model\x20'+_0x3a7155['model']+'\x20('+_0x3a7155[_0x47eba9(0x287)]+_0x47eba9(0x1a2)+_0x3a7155[_0x47eba9(0x35c)][_0x47eba9(0x1f6)]+_0x47eba9(0x2a7));}function dn(_0x279990){const _0x1e7c2f=_0x2e9e2a;Y(_0x279990);for(let _0x28373a of Object[_0x1e7c2f(0x35a)](_0x279990['answers'])){let _0x453161=_0x279990[_0x1e7c2f(0x1fd)][_0x28373a],_0x308515=_0x453161[_0x1e7c2f(0x1e4)]===_0x1e7c2f(0x35f)?'probability\x20'+_0x453161['probability'][_0x1e7c2f(0x1ce)](0x2):_0x453161[_0x1e7c2f(0x1e4)]===_0x1e7c2f(0x25b)?'choice\x20'+_0x453161[_0x1e7c2f(0x25b)]+_0x1e7c2f(0x27f)+_0x453161['confidence'][_0x1e7c2f(0x1ce)](0x2)+')':_0x1e7c2f(0x295)+_0x453161['score'][_0x1e7c2f(0x1ce)](0x2)+_0x1e7c2f(0x27f)+_0x453161[_0x1e7c2f(0x1b3)][_0x1e7c2f(0x1ce)](0x2)+')';process[_0x1e7c2f(0x1f3)][_0x1e7c2f(0x277)]('\x20\x20'+_0x28373a+':\x20'+_0x308515+'\x0a');}}function un(_0x4ab556){const _0x3ed677=_0x2e9e2a;Y(_0x4ab556),_0x4ab556['results'][_0x3ed677(0x1f0)]((_0x52de14,_0x113d80)=>{const _0x5cb33f=_0x3ed677;process['stdout']['write']('\x20\x20'+(_0x113d80+0x1)+'.\x20'+_0x52de14['id']+'\x20\x20'+_0x52de14[_0x5cb33f(0x2bd)][_0x5cb33f(0x1ce)](0x3)+_0x5cb33f(0x204)+_0x52de14['index']+')\x0a');});}function pn(_0x11a4a0){const _0xf7ef38=_0x2e9e2a;Y(_0x11a4a0),process[_0xf7ef38(0x1f3)][_0xf7ef38(0x277)]('Rubric\x20'+_0x11a4a0[_0xf7ef38(0x2d4)]+'\x0a');for(let _0x2e8bba of _0x11a4a0['results'])process[_0xf7ef38(0x1f3)]['write']('\x20\x20'+_0x2e8bba['id']+':\x20'+_0x2e8bba[_0xf7ef38(0x252)]+_0xf7ef38(0x27f)+_0x2e8bba[_0xf7ef38(0x1b3)][_0xf7ef38(0x1ce)](0x2)+')\x0a');}async function mn(_0x4e9abd){const _0x260fb9=_0x2e9e2a;let _0x10f213=_0x4e9abd[_0x260fb9(0x34a)][_0x260fb9(0x23a)]();_0x10f213||(console[_0x260fb9(0x2a6)]('transcribe\x20needs\x20audio:\x20delegate-cli\x20transcribe\x20<file>,\x20or\x20-\x20to\x20read\x20stdin.'),process[_0x260fb9(0x26b)](0x2));let {client:_0xe7bca3}=await v(_0x4e9abd);try{let _0x2fd246=_0x10f213==='-'?{'data':await fn(process[_0x260fb9(0x27c)])}:_0x10f213;u(_0x4e9abd,await _0x5b2d0c(_0xe7bca3,_0x2fd246,void 0x0),_0x4c5ae1=>{const _0x3beab9=_0x260fb9;process[_0x3beab9(0x1f3)]['write'](_0x4c5ae1['text']+'\x0a');});}catch(_0x4db221){if(_0x289a26(_0x4db221)&&(console['error'](_0x4db221[_0x260fb9(0x290)]),process[_0x260fb9(0x26b)](_0x4db221[_0x260fb9(0x337)]===void 0x0?0x2:0x1)),typeof _0x4db221?.[_0x260fb9(0x1f4)]!=_0x260fb9(0x265))throw _0x4db221;console[_0x260fb9(0x2a6)](_0x260fb9(0x349)+_0x10f213+'\x20('+_0x4db221[_0x260fb9(0x290)]+').'),process[_0x260fb9(0x26b)](0x2);}}async function fn(_0x227b45){const _0x560d0a=_0x2e9e2a;let _0x14f8a8=[];for await(let _0x50b0ab of _0x227b45)_0x14f8a8['push'](Buffer[_0x560d0a(0x2cf)](_0x50b0ab));return Buffer[_0x560d0a(0x2e2)](_0x14f8a8);}var ce=[_0x2e9e2a(0x336),_0x2e9e2a(0x22f),_0x2e9e2a(0x2eb),_0x2e9e2a(0x29f),_0x2e9e2a(0x202),_0x2e9e2a(0x1ad),_0x2e9e2a(0x29a),_0x2e9e2a(0x1c3),_0x2e9e2a(0x212),_0x2e9e2a(0x2ed)],de={'list':'delegations\x20list\x20<backend-project-id>','pending':_0x2e9e2a(0x20b),'show':'delegations\x20show\x20<delegation-id|delegate://delegation/…>','create':_0x2e9e2a(0x2e6),'claim':_0x2e9e2a(0x1cc),'complete':_0x2e9e2a(0x37c),'accept':_0x2e9e2a(0x1e8),'dismiss':_0x2e9e2a(0x2ec),'cancel':_0x2e9e2a(0x1d1),'delete':'delegations\x20delete\x20<delegation-id>'};async function gn(_0x6c676a){const _0x8067a3=_0x2e9e2a;let [_0x3bb831='',_0x387c22='',..._0x288f15]=_0x6c676a[_0x8067a3(0x263)];ce[_0x8067a3(0x284)](_0x3bb831)||(console['error']((_0x3bb831?_0x8067a3(0x226)+_0x3bb831+'.\x20':'')+_0x8067a3(0x2b3)+ce[_0x8067a3(0x328)]('\x20|\x20')+'.'),process['exit'](0x2));let _0xab68e5=_0x3bb831;_0xab68e5!==_0x8067a3(0x29f)&&(_0x6c676a['delegateTo']!==void 0x0||_0x6c676a['contextSummary']!==void 0x0||_0x6c676a[_0x8067a3(0x1bd)]!==void 0x0)&&(console[_0x8067a3(0x2a6)](_0x8067a3(0x209)),process[_0x8067a3(0x26b)](0x2));let _0x355db9=(_0xab68e5==='create'?_0x6c676a['operands'][_0x8067a3(0x2f0)](0x1):_0x288f15)[_0x8067a3(0x328)]('\x20')['trim'](),_0x5eaa12=_0xab68e5===_0x8067a3(0x29f)||_0xab68e5==='complete';(_0xab68e5!==_0x8067a3(0x29f)&&!_0x387c22||(_0x5eaa12?!_0x355db9:_0x355db9)||_0xab68e5===_0x8067a3(0x29f)&&!_0x6c676a['sessionId'])&&(console[_0x8067a3(0x2a6)](_0x8067a3(0x384)+de[_0xab68e5]),process[_0x8067a3(0x26b)](0x2));let _0x20bb0e=_0x5eaa12&&_0x355db9==='-'?(await j('-',process['stdin']))['trim']():_0x355db9;_0x5eaa12&&!_0x20bb0e&&(console['error'](_0x8067a3(0x384)+de[_0xab68e5]+_0x8067a3(0x357)),process[_0x8067a3(0x26b)](0x2));let {client:_0x51e484}=await v(_0x6c676a);try{await hn(_0x6c676a,_0x51e484,_0xab68e5,_0x387c22,_0x20bb0e);}catch(_0x31ff96){if(!_0x54dd7f(_0x31ff96))throw _0x31ff96;console['error'](_0x31ff96[_0x8067a3(0x290)]),process[_0x8067a3(0x26b)](0x1);}}async function hn(_0x41effd,_0x1550ba,_0x5667e4,_0x136b76,_0x19d6b3){const _0x528d1f=_0x2e9e2a;switch(_0x5667e4){case'list':u(_0x41effd,await _0x46b2c2(_0x1550ba,_0x136b76),yn);return;case _0x528d1f(0x22f):u(_0x41effd,await _0x541a60(_0x1550ba,_0x136b76),_0x27ade9=>{const _0x147323=_0x528d1f;_0x27ade9[_0x147323(0x278)]&&process['stdout']['write'](_0x147323(0x324)+_0x27ade9[_0x147323(0x278)]['id']+'\x20('+_0x27ade9[_0x147323(0x278)][_0x147323(0x337)]+_0x147323(0x221)),_0x27ade9[_0x147323(0x348)][_0x147323(0x1ae)]===0x0&&process[_0x147323(0x2c8)][_0x147323(0x277)](_0x147323(0x2f6));for(let _0x293cd1 of _0x27ade9[_0x147323(0x348)])process[_0x147323(0x1f3)]['write']('\x0a'+_0x293cd1['id']+_0x147323(0x1a0)+(_0x293cd1['assignedUserEmail']??_0x147323(0x28f))+'\x20\x20'+(_0x293cd1[_0x147323(0x330)]??'')+'\x0a'+(_0x293cd1[_0x147323(0x2f5)]?.[_0x147323(0x2c5)]??'')+'\x0a');_0x27ade9['pendingResults'][_0x147323(0x1ae)]>0x0&&process[_0x147323(0x2c8)]['write']('\x0aAccept\x20one\x20with:\x20delegate-cli\x20delegations\x20accept\x20<id>\x0a');});return;case'show':u(_0x41effd,await _0x41c1ab(_0x1550ba,_0x136b76),ue);return;case _0x528d1f(0x29f):{let _0x280e9c=await _0x17c9b9(_0x1550ba,{'sessionId':_0x41effd[_0x528d1f(0x1bd)],'task':_0x19d6b3,..._0x41effd[_0x528d1f(0x321)]!==void 0x0&&{'contextSummary':_0x41effd['contextSummary']},..._0x41effd[_0x528d1f(0x214)]!==void 0x0&&{'recipient':_0x41effd[_0x528d1f(0x214)]}});u(_0x41effd,_0x280e9c,_0x481d2e=>{const _0x13ba85=_0x528d1f;_0x481d2e[_0x13ba85(0x373)]?process[_0x13ba85(0x1f3)]['write']('Delegated\x20'+_0x481d2e[_0x13ba85(0x1db)]+_0x13ba85(0x342)+_0x481d2e[_0x13ba85(0x373)][_0x13ba85(0x29e)]+'\x20<'+_0x481d2e[_0x13ba85(0x373)][_0x13ba85(0x23c)]+_0x13ba85(0x316)):process[_0x13ba85(0x1f3)][_0x13ba85(0x277)]('Created\x20delegation\x20'+_0x481d2e['delegationId']+_0x13ba85(0x313)+_0x481d2e['deepLink']+'\x0a');});return;}case _0x528d1f(0x202):{let _0x46d971=await _0x4a11ec(_0x1550ba,_0x136b76);u(_0x41effd,_0x46d971,_0x3ad542=>{const _0x3044cb=_0x528d1f;ue(_0x3ad542),process[_0x3044cb(0x1f3)][_0x3044cb(0x277)](_0x3044cb(0x332)+_0x3ad542[_0x3044cb(0x1bd)]+'\x0a'),process[_0x3044cb(0x2c8)][_0x3044cb(0x277)]('Work\x20on\x20it\x20with:\x20delegate-cli\x20--session\x20'+_0x3ad542[_0x3044cb(0x1bd)]+'\x20\x22<prompt>\x22\x0aAnswer\x20with:\x20delegate-cli\x20delegations\x20complete\x20'+_0x3ad542['delegationId']+'\x20\x22<answer>\x22\x0a');});return;}case _0x528d1f(0x1ad):{let {alreadyCompleted:_0x5b9e8e}=await _0x1eb4e4(_0x1550ba,_0x136b76,{'content':_0x19d6b3});u(_0x41effd,{'delegationId':_0x136b76,'alreadyCompleted':_0x5b9e8e},_0x3a9f4a=>{const _0x329eb7=_0x528d1f;process[_0x329eb7(0x1f3)]['write']((_0x3a9f4a['alreadyCompleted']?_0x329eb7(0x2fa):_0x329eb7(0x2ad))+_0x329eb7(0x1d0)+_0x3a9f4a[_0x329eb7(0x1db)]+'.\x0a');});return;}case _0x528d1f(0x29a):{let _0x174f90=await _0x277c5f(_0x1550ba,_0x136b76);u(_0x41effd,{'delegationId':_0x136b76,..._0x174f90},_0x2dd625=>{const _0xc71fff=_0x528d1f;process[_0xc71fff(0x1f3)][_0xc71fff(0x277)]((_0x2dd625[_0xc71fff(0x1dc)]?_0xc71fff(0x34b):'Accepted')+_0xc71fff(0x1d0)+_0x2dd625[_0xc71fff(0x1db)]+'.\x0a');});return;}default:{let _0x3dbbd5={'dismiss':_0x4dce77,'cancel':_0x2823fd,'delete':_0x1208c3}[_0x5667e4];await _0x3dbbd5(_0x1550ba,_0x136b76);let _0x416e17={'dismiss':_0x528d1f(0x2bb),'cancel':_0x528d1f(0x318),'delete':_0x528d1f(0x366)}[_0x5667e4];u(_0x41effd,{'delegationId':_0x136b76,[_0x416e17]:!0x0},()=>{const _0x443d01=_0x528d1f;process[_0x443d01(0x1f3)][_0x443d01(0x277)](''+_0x416e17[0x0][_0x443d01(0x361)]()+_0x416e17[_0x443d01(0x2f0)](0x1)+_0x443d01(0x1d0)+_0x136b76+'.\x0a');});}}}function yn(_0x5e0dcc){const _0x408862=_0x2e9e2a;if(_0x5e0dcc['length']===0x0){process[_0x408862(0x2c8)]['write'](_0x408862(0x338));return;}process[_0x408862(0x1f3)][_0x408862(0x277)]('ID'[_0x408862(0x372)](0x24)+'\x20\x20'+'STATUS'[_0x408862(0x372)](0x9)+'\x20\x20'+'ASSIGNEE'['padEnd'](0x18)+_0x408862(0x1bb));for(let _0x36de1c of _0x5e0dcc)process[_0x408862(0x1f3)][_0x408862(0x277)](_0x36de1c['id'][_0x408862(0x372)](0x24)+'\x20\x20'+_0x36de1c['status'][_0x408862(0x372)](0x9)+'\x20\x20'+(_0x36de1c[_0x408862(0x1de)]??'-')[_0x408862(0x372)](0x18)+'\x20\x20'+(_0x36de1c['task']??'')+'\x0a');}function ue(_0x10edcd){const _0x188272=_0x2e9e2a;process[_0x188272(0x1f3)][_0x188272(0x277)](_0x188272(0x1ec)+(_0x10edcd[_0x188272(0x2e1)]??'-')+'\x0a'),_0x10edcd['sourceTitle']&&process[_0x188272(0x1f3)]['write'](_0x188272(0x332)+_0x10edcd[_0x188272(0x20c)]+'\x0a'),process[_0x188272(0x1f3)][_0x188272(0x277)](_0x188272(0x1e6)+(_0x10edcd['task']??'-')+'\x0a'),_0x10edcd['contextSummary']&&process[_0x188272(0x1f3)][_0x188272(0x277)]('\x0a'+_0x10edcd['contextSummary']+'\x0a\x0a');}async function wn(_0x4215a0){const _0x2564bc=_0x2e9e2a;_0x4215a0[_0x2564bc(0x34a)]['trim']()||(console[_0x2564bc(0x2a6)](_0x2564bc(0x257)),process[_0x2564bc(0x26b)](0x2));let {client:_0x45c37b}=await v(_0x4215a0),_0x3b53a4;try{_0x3b53a4=await _0x16263d(_0x45c37b,_0x4215a0[_0x2564bc(0x34a)]);}catch(_0x2b94fb){if(!_0x54dd7f(_0x2b94fb))throw _0x2b94fb;console[_0x2564bc(0x2a6)](_0x2b94fb[_0x2564bc(0x290)]),process[_0x2564bc(0x26b)](0x1);}u(_0x4215a0,_0x3b53a4,_0x50bd75=>{const _0x43a01d=_0x2564bc;_0x50bd75[_0x43a01d(0x1ae)]===0x0&&process[_0x43a01d(0x2c8)][_0x43a01d(0x277)]('No\x20one\x20matches\x20\x22'+_0x4215a0['prompt'][_0x43a01d(0x23a)]()+_0x43a01d(0x34c));for(let _0x32c59b of _0x50bd75)process[_0x43a01d(0x1f3)][_0x43a01d(0x277)](_0x32c59b[_0x43a01d(0x23c)][_0x43a01d(0x372)](0x20)+'\x20\x20'+_0x32c59b['displayName']+'\x0a');});}async function kn(_0xb9ec73){const _0x128f14=_0x2e9e2a;_0xb9ec73[_0x128f14(0x2ea)]===_0x128f14(0x271)&&(console[_0x128f14(0x2a6)]('--env\x20localhost\x20has\x20no\x20OAuth\x20flow;\x20pick\x20alpha,\x20staging,\x20or\x20production.'),process['exit'](0x2));let _0x50c454=M(_0x1e3ef0()),_0x382c03=_0xb9ec73['skipEnvCheck'];if(_0xb9ec73[_0x128f14(0x2ea)]){let _0x28b42d=_0xb9ec73[_0x128f14(0x2ea)];await _0x5cc19f({'env':_0x28b42d,'tenant':_0xb9ec73['tenant']??G(_0x50c454,_0x2d5a18[_0x28b42d]),'skipEnvCheck':_0x382c03});return;}let _0x2880c3=_0xb9ec73[_0x128f14(0x232)]??ve();if(_0x2880c3){await _0x5cc19f({'baseUrl':_0x2880c3,'tenant':_0xb9ec73[_0x128f14(0x329)]??G(_0x50c454,_0x2880c3),'skipEnvCheck':_0x382c03});return;}if(_0x50c454?.[_0x128f14(0x2e9)]){await _0x5cc19f({'baseUrl':_0x50c454[_0x128f14(0x2e9)],'tenant':_0xb9ec73['tenant']??_0x50c454['tenantName'],'skipEnvCheck':_0x382c03});return;}console[_0x128f14(0x2a6)](_0x128f14(0x378)),process[_0x128f14(0x26b)](0x2);}function G(_0x53d18e,_0x51fb7f){const _0x2c56c2=_0x2e9e2a;return _0x53d18e?.[_0x2c56c2(0x2e9)]&&bn(_0x53d18e['baseUrl'],_0x51fb7f)?_0x53d18e[_0x2c56c2(0x2f2)]:void 0x0;}function bn(_0x3cce2f,_0x56a668){const _0x3c4679=_0x2e9e2a;try{return new URL(_0x3cce2f)[_0x3c4679(0x21f)]===new URL(_0x56a668)[_0x3c4679(0x21f)];}catch{return!0x1;}}async function Sn(_0x4dc5f6){const _0x30a4b2=_0x2e9e2a;Q()&&(console[_0x30a4b2(0x2a6)](_0x30a4b2(0x2fe)),process['exit'](0x2));let _0x2e1719=await _0x4714a4();if(_0x2e1719||(console['error'](vn()),process[_0x30a4b2(0x26b)](0x2)),_0x4dc5f6[_0x30a4b2(0x23a)]()){let _0x53e843=await _0x427fa9(_0x2e1719,_0x4dc5f6);_0x15eb87(_0x53e843)||(console[_0x30a4b2(0x2a6)](_0x30a4b2(0x280)+_0x1e3ef0()+_0x30a4b2(0x30c)+_0x2e1719[_0x30a4b2(0x2f2)]+'.'),process[_0x30a4b2(0x26b)](0x1)),console[_0x30a4b2(0x2f8)](_0x30a4b2(0x276)+_0x53e843['tenantName']+'\x20('+_0x53e843[_0x30a4b2(0x281)]+_0x30a4b2(0x21c)+_0x1e3ef0());return;}An(await _0x4f0daa(_0x2e1719),_0x2e1719);}function vn(){const _0x48749b=_0x2e9e2a;if(_0x59b7ea[_0x48749b(0x260)](_0x1e3ef0()))return _0x48749b(0x28d);let _0x1fe766=K();return M(_0x1fe766)?_0x48749b(0x360)+_0x1fe766+',\x20whose\x20tenant\x20is\x20chosen\x20in\x20the\x20app.\x20Run\x20`delegate-cli\x20login\x20--env\x20<env>`\x20for\x20a\x20CLI\x20login\x20of\x20your\x20own.':_0x48749b(0x2d7);}function An(_0x5b8869,_0x4cead2){const _0x7b46f7=_0x2e9e2a;let _0x190691=_0x5b8869['map'](_0x215a38=>_0x215a38['id']===_0x4cead2[_0x7b46f7(0x281)]?'*\x20'+_0x215a38[_0x7b46f7(0x358)]+_0x7b46f7(0x2a5):'\x20\x20'+_0x215a38[_0x7b46f7(0x358)]);process[_0x7b46f7(0x1f3)][_0x7b46f7(0x277)](_0x7b46f7(0x1bf)+(_0x4cead2[_0x7b46f7(0x351)]??_0x4cead2[_0x7b46f7(0x297)])+':\x0a'+_0x190691[_0x7b46f7(0x328)]('\x0a')+'\x0a'),_0x5b8869['length']>0x1&&process[_0x7b46f7(0x1f3)][_0x7b46f7(0x277)](_0x7b46f7(0x35d));}function $n(_0x563eb6){const _0x394f5d=_0x2e9e2a;return _0x563eb6?.['response']?.['status']===0x191||/401/[_0x394f5d(0x254)](String(_0x563eb6?.[_0x394f5d(0x290)]??''));}var f={'lastType':null,'quiet':!0x1},Ee=_0x554e67=>{const _0x4c5738=_0x2e9e2a;switch(_0x554e67[_0x4c5738(0x1e4)]){case _0x4c5738(0x1da):_0x554e67[_0x4c5738(0x1bd)]&&_0x554e67[_0x4c5738(0x1bd)]!==f['sessionId']&&(process[_0x4c5738(0x2c8)][_0x4c5738(0x277)](_0x4c5738(0x2ae)+_0x554e67[_0x4c5738(0x1bd)]+_0x4c5738(0x1e3)+_0x554e67[_0x4c5738(0x1bd)]+')\x0a'),f[_0x4c5738(0x1bd)]=_0x554e67[_0x4c5738(0x1bd)]);break;case _0x4c5738(0x1cf):_0x554e67[_0x4c5738(0x2e3)]&&_0x554e67[_0x4c5738(0x2e3)]!==f['turnId']&&(f[_0x4c5738(0x31b)]!==null&&process[_0x4c5738(0x2c8)]['write']('\x0a'),process[_0x4c5738(0x2c8)][_0x4c5738(0x277)](_0x4c5738(0x370)+_0x554e67[_0x4c5738(0x2e3)]+_0x4c5738(0x352)+_0x554e67['sessionId']+_0x4c5738(0x305)+_0x554e67['turnId']+')\x0a'),f[_0x4c5738(0x2e3)]=_0x554e67[_0x4c5738(0x2e3)],f[_0x4c5738(0x31b)]=_0x4c5738(0x1cf));break;case _0x4c5738(0x2d9):_0x554e67[_0x4c5738(0x2c5)]&&!f[_0x4c5738(0x369)]&&(f['lastType']!=='thinking'&&process[_0x4c5738(0x2c8)][_0x4c5738(0x277)](_0x4c5738(0x258)),process[_0x4c5738(0x2c8)][_0x4c5738(0x277)](_0x554e67[_0x4c5738(0x2c5)]),f['lastType']=_0x4c5738(0x2d9));break;case _0x4c5738(0x286):f['lastType']!==null&&process[_0x4c5738(0x2c8)]['write']('\x0a'),process[_0x4c5738(0x2c8)][_0x4c5738(0x277)](_0x4c5738(0x279)+(_0x554e67[_0x4c5738(0x1dd)]??_0x4c5738(0x1f1))+'\x0a'),f[_0x4c5738(0x31b)]=_0x4c5738(0x286);break;case _0x4c5738(0x290):_0x554e67[_0x4c5738(0x2c5)]&&(f[_0x4c5738(0x31b)]!=='message'&&f[_0x4c5738(0x31b)]!==null&&process[_0x4c5738(0x1f3)]['write']('\x0a'),process[_0x4c5738(0x1f3)]['write'](_0x554e67[_0x4c5738(0x2c5)]),f['lastType']=_0x4c5738(0x290));break;case _0x4c5738(0x2a6):f[_0x4c5738(0x31b)]!==null&&process[_0x4c5738(0x2c8)][_0x4c5738(0x277)]('\x0a'),process[_0x4c5738(0x2c8)]['write']('✗\x20'+(_0x554e67[_0x4c5738(0x2a6)]??_0x4c5738(0x2a6))+'\x0a'),f[_0x4c5738(0x31b)]=_0x4c5738(0x2a6);break;case'done':(f['lastType']===_0x4c5738(0x290)||f[_0x4c5738(0x31b)]===_0x4c5738(0x2d9))&&process[_0x4c5738(0x1f3)]['write']('\x0a'),process[_0x4c5738(0x2c8)][_0x4c5738(0x277)](_0x4c5738(0x1a8)),f['lastType']=_0x4c5738(0x2be);break;}};function pe(_0x4b2bec,_0x39accf,_0x19692f,_0x200f86){const _0x2de8f9=_0x2e9e2a;let _0x2ef59d=_0x4b2bec['model']||process.env.MODEL;return{'backendUrl':_0x19692f,'auth':_0x39accf,'enableComputerUse':!_0x4b2bec[_0x2de8f9(0x37b)]&&!_0x4b2bec['noComputerUse'],'autoSpawnInterop':!_0x4b2bec['headless'],'enableConnections':!_0x4b2bec[_0x2de8f9(0x2c7)],'enableSecurity':!_0x4b2bec['noSecurity'],'keepInteropAlive':_0x4b2bec[_0x2de8f9(0x1ef)],..._0x200f86['oneTurn']?{'enableBackgroundCommands':!0x1}:{},..._0x4b2bec[_0x2de8f9(0x1ea)]?{'enableMemory':!0x1}:{},..._0x4b2bec[_0x2de8f9(0x379)]?{'enableTaskAutomation':!0x0}:{},..._0x4b2bec[_0x2de8f9(0x2ab)]['length']>0x0?{'preloadSkills':_0x4b2bec[_0x2de8f9(0x2ab)]}:{},..._0x2ef59d?{'model':_0x2ef59d}:{},..._0x4b2bec['projectId']?{'projectId':_0x4b2bec[_0x2de8f9(0x2d1)]}:{},..._0x4b2bec[_0x2de8f9(0x1c6)]?{'workingDirectory':_0x4b2bec['workingDirectory']}:{},..._0x4b2bec[_0x2de8f9(0x22e)]?{'bundledSkillsPath':_0x4b2bec[_0x2de8f9(0x22e)]}:{},..._0x4b2bec['effort']?{'effort':_0x4b2bec['effort']}:{},..._0x4b2bec['sessionId']?{'sessionId':_0x4b2bec['sessionId']}:{},..._0x4b2bec['verbose']?{'verbose':!0x0}:{}};}async function En(_0x5385c1){const _0x24c064=_0x2e9e2a;let _0x513633=_0x5385c1[_0x24c064(0x2c0)]!==_0x24c064(0x2c4),_0x3e0aa6=_0x5385c1['jsonSchemaPath']===void 0x0?null:$e(_0x5385c1[_0x24c064(0x1a7)],_0x24c064(0x27a)),_0x28301d=!_0x513633&&!_0x3e0aa6&&!_0x5385c1[_0x24c064(0x21b)]&&_0x5385c1['prompt']!=='-'&&!!process[_0x24c064(0x27c)][_0x24c064(0x27d)]&&!!process[_0x24c064(0x1f3)][_0x24c064(0x27d)],_0x4975b5=_0x28301d?_0x5385c1[_0x24c064(0x34a)][_0x24c064(0x23a)]():await j(_0x5385c1[_0x24c064(0x34a)],process[_0x24c064(0x27c)]);if(!_0x28301d&&!_0x4975b5&&(console['error'](_0x24c064(0x268)),process[_0x24c064(0x26b)](0x2)),!_0x513633){await me(_0x5385c1,_0x4975b5,_0x28301d,null,_0x3e0aa6);return;}let _0x3e0a15=!0x1,_0x59d162=_0x3bfc53=>{const _0x34ce47=_0x24c064;_0x3e0a15=!0x0,P(_0x429094(_0x3bfc53)),(_0x3bfc53[_0x34ce47(0x1a9)]||_0x3bfc53['structuredError'])&&(process[_0x34ce47(0x320)]=0x1);},_0x1b3b97=Date['now']();try{await me(_0x5385c1,_0x4975b5,!0x1,_0x59d162,_0x3e0aa6);}catch(_0x4be410){if(_0x3e0a15)throw _0x4be410;process['stderr'][_0x24c064(0x277)]((_0x4be410 instanceof Error?_0x4be410['stack']??_0x4be410[_0x24c064(0x290)]:String(_0x4be410))+'\x0a'),_0x59d162(new _0xbeddc4(_0x1b3b97)[_0x24c064(0x2a0)]({'endedAtMs':Date[_0x24c064(0x294)](),'usage':[],'error':_0x4be410}));}}async function me(_0x4e755b,_0x1a8427,_0x1529ea,_0x161f51,_0x5140f2){const _0xf44b14=_0x2e9e2a;f={'lastType':null,'quiet':_0x4e755b['quiet']};let _0x1d006f=new Set(),_0x421646,_0x14c2c3=_0x1f5833=>{const _0x41b6ef=_0xced2;(!_0x161f51||_0x1f5833['type']===_0x41b6ef(0x1da)||_0x1f5833['type']===_0x41b6ef(0x1cf))&&(_0x421646??Ee)(_0x1f5833);for(let _0x3ee2bf of _0x1d006f)_0x3ee2bf(_0x1f5833);},_0xad7c37=await q(),_0x54fe06=new _0x5139ac();_0x54fe06[_0xf44b14(0x375)](_0x14c2c3);let _0x226d8e=_0x93f1b3(_0x4e755b['env'],_0xad7c37,_0x4e755b['backendUrl']);z(_0x4e755b['env'],_0x4e755b[_0xf44b14(0x1e1)],_0x226d8e);let _0x49a65b={'input':null},_0x5887cf=_0x1529ea?Z(()=>_0x49a65b[_0xf44b14(0x24d)],_0x15a796=>{const _0x3906cd=_0xf44b14;process[_0x3906cd(0x2c8)][_0x3906cd(0x277)](_0x15a796);}):null,_0x42ac59=_0x3dd1f7=>_0x5887cf?{..._0x3dd1f7,'askUser':_0x5887cf}:_0x3dd1f7,_0x416e7e=_0x42ac59(pe(_0x4e755b,_0xad7c37,_0x226d8e,{'oneTurn':!_0x1529ea})),_0xa5053e=!0x1,_0x685dfa=!0x1,_0x4fc48d,_0x3f7a12=()=>_0x4fc48d??=_0x54fe06['destroy'](),_0x3f484f=()=>{const _0x5175c5=_0xf44b14;_0x685dfa&&process[_0x5175c5(0x26b)](0x82),_0x685dfa=!0x0,process[_0x5175c5(0x2c8)][_0x5175c5(0x277)](_0x5175c5(0x28a)),_0xa5053e&&_0x54fe06[_0x5175c5(0x212)]()[_0x5175c5(0x341)](_0x4d5af5=>console['error'](_0x4d5af5))[_0x5175c5(0x255)](_0x3f7a12)[_0x5175c5(0x255)](()=>process[_0x5175c5(0x26b)](0x82),_0x32e5fd=>{const _0x5c7f6a=_0x5175c5;console[_0x5c7f6a(0x2a6)](_0x32e5fd),process['exit'](0x82);});};process['on'](_0xf44b14(0x2b5),_0x3f484f);let _0x2811aa=_0x4e755b[_0xf44b14(0x2a2)],_0xa8b876=async _0x5c2037=>{const _0x8a9f1d=_0xf44b14;let _0x5705a2=_0x2811aa;_0x2811aa=[];let _0x2d4db4=()=>_0x54fe06[_0x8a9f1d(0x236)](_0x5c2037,{'attachments':_0x5705a2});try{return await _0x2d4db4();}catch(_0x20cd32){if(_0x685dfa||!$n(_0x20cd32)||!process[_0x8a9f1d(0x27c)]['isTTY']||_0x4e755b[_0x8a9f1d(0x2ea)]===_0x8a9f1d(0x271)||!(_0x4e755b[_0x8a9f1d(0x2ea)]||_0xad7c37['baseUrl']))throw _0x20cd32;process['stderr'][_0x8a9f1d(0x277)]('\x0a⚠️\x20\x20Auth\x20expired.\x20Opening\x20browser\x20to\x20re-login…\x0a');let _0x1f59fd=_0x54fe06[_0x8a9f1d(0x2df)]()??_0x4e755b[_0x8a9f1d(0x1bd)],_0x2cdb0b=await _0x5cc19f(_0x4e755b[_0x8a9f1d(0x2ea)]?{'env':_0x4e755b[_0x8a9f1d(0x2ea)],'tenant':G(_0xad7c37,_0x2d5a18[_0x4e755b[_0x8a9f1d(0x2ea)]]),'skipEnvCheck':!0x0}:{'baseUrl':_0xad7c37[_0x8a9f1d(0x2e9)],'tenant':_0xad7c37[_0x8a9f1d(0x2f2)],'skipEnvCheck':!0x0}),_0x564747={'text':'','failed':!0x1,'sessionId':_0x1f59fd};return _0x685dfa||(_0xa5053e=!0x1,await _0x3f7a12(),_0x685dfa)?_0x564747:(_0x54fe06=new _0x5139ac(),_0x4fc48d=void 0x0,_0x54fe06[_0x8a9f1d(0x375)](_0x14c2c3),_0xad7c37=_0x2cdb0b,await _0x54fe06[_0x8a9f1d(0x219)]({..._0x42ac59(pe(_0x4e755b,_0xad7c37,_0x226d8e,{'oneTurn':!_0x1529ea})),..._0x1f59fd?{'sessionId':_0x1f59fd}:{}}),_0xa5053e=!0x0,_0x685dfa?_0x564747:_0x2d4db4());}};try{if(await _0x54fe06[_0xf44b14(0x219)](_0x416e7e),_0xa5053e=!0x0,_0x685dfa)return;if(_0x1529ea)await xn({'prompt':_0x1a8427,'sendMessage':_0xa8b876,'onSigint':_0x3f484f,'setAnswerInput':_0x1f88b9=>{_0x49a65b['input']=_0x1f88b9;},'registerEventPrinter':_0x9d6b5f=>(_0x421646=_0x9d6b5f,()=>{_0x421646=void 0x0;})});else{if(_0x161f51||_0x5140f2){let _0x4ccd9c=_0x4e755b['outputFormat']===_0xf44b14(0x382)?_0x2de80b=>P(_0x48f5ca(_0x2de80b)):()=>{},_0x40c81a=await _0x1e2096({'onEvent':_0x4ad60a=>(_0x1d006f['add'](_0x4ad60a),()=>{const _0x212686=_0xf44b14;_0x1d006f[_0x212686(0x2ed)](_0x4ad60a);}),'sendMessage':_0x1005a3=>_0xa8b876(_0x1005a3),'getSessionId':()=>_0x54fe06[_0xf44b14(0x2df)](),'getTurnUsageHistory':_0x5561d=>_0x54fe06[_0xf44b14(0x22c)](_0x5561d),'complete':_0x2258df=>_0x54fe06[_0xf44b14(0x1ad)](_0x2258df)},_0x1a8427,void 0x0,_0x4ccd9c,_0x5140f2?{'outputSchema':_0x5140f2}:void 0x0);_0x161f51?_0x161f51(_0x40c81a):In(_0x40c81a);}else await _0xa8b876(_0x1a8427);}}catch(_0x4ecdd3){if(!_0x685dfa)throw _0x4ecdd3;}finally{try{await _0x3f7a12();}finally{process['off']('SIGINT',_0x3f484f),_0x685dfa&&(process[_0xf44b14(0x320)]=0x82);}}}function In(_0x1a69fe){const _0x5efd70=_0x2e9e2a;_0x1a69fe[_0x5efd70(0x2a9)]?(console[_0x5efd70(0x2a6)]('Structured\x20output\x20failed:\x20'+_0x1a69fe[_0x5efd70(0x2a9)][_0x5efd70(0x290)]),process['exitCode']=0x1):_0x1a69fe[_0x5efd70(0x1a9)]?(console[_0x5efd70(0x2a6)]('No\x20structured\x20output:\x20the\x20turn\x20failed\x20('+_0x1a69fe[_0x5efd70(0x2a6)]+').'),process[_0x5efd70(0x320)]=0x1):process[_0x5efd70(0x1f3)]['write'](JSON[_0x5efd70(0x251)](_0x1a69fe['structured'],null,0x2)+'\x0a');}function Tn(_0xb757fe,_0x487959){const _0x51b2b9=_0x2e9e2a;let _0x22d120=process[_0x51b2b9(0x1f3)][_0x51b2b9(0x277)]['bind'](process[_0x51b2b9(0x1f3)]),_0x5010d7=!0x1;return process[_0x51b2b9(0x1f3)]['write']=(..._0x38d887)=>{const _0x41c17d=_0x51b2b9;if(!_0x5010d7)return _0x22d120(..._0x38d887);_0xee09a1(_0x487959,0x0),_0x24795e(_0x487959,0x0);let _0x22c546=_0x22d120(..._0x38d887);return _0xb757fe[_0x41c17d(0x34a)](!0x0),_0x22c546;},{'show':()=>{const _0x11fb13=_0x51b2b9;_0x5010d7=!0x0,_0xb757fe[_0x11fb13(0x34a)]();},'hide':()=>{_0x5010d7=!0x1;},'erase':()=>{_0x5010d7&&(_0xee09a1(_0x487959,0x0),_0x24795e(_0x487959,0x0)),_0x5010d7=!0x1;},'restore':()=>{const _0x43d111=_0x51b2b9;_0x5010d7=!0x1,process[_0x43d111(0x1f3)]['write']=_0x22d120;}};}async function xn({prompt:_0x271c0e,sendMessage:_0x36187a,onSigint:_0x403722,setAnswerInput:_0x1850f4,registerEventPrinter:_0x49a2d7}){const _0x25b686=_0x2e9e2a;let _0x2eae6b=_0x2757a9({'input':process['stdin'],'output':process[_0x25b686(0x2c8)],'terminal':!0x0,'prompt':_0x25b686(0x227)}),_0x59ec1c=Tn(_0x2eae6b,process['stderr']),_0x442736=[],_0xb04b00,_0x130c14,_0x4c74a6,_0xfe726c=!0x1,_0x45e708=!0x1,_0x2aa24a=!0x1,_0x310bc4=Promise['resolve'](),_0x52728a,_0x3731de=_0x49a2d7(_0x22694f=>{const _0xaa7733=_0x25b686;_0x22694f[_0xaa7733(0x1e4)]===_0xaa7733(0x1da)&&(_0x59ec1c[_0xaa7733(0x1b9)](),_0x310bc4=new Promise(_0x3aedf7=>{_0x52728a=_0x3aedf7;})),Ee(_0x22694f),_0x22694f[_0xaa7733(0x1e4)]===_0xaa7733(0x2be)&&(_0x52728a?.(),_0x52728a=void 0x0,!_0x2aa24a&&!_0xfe726c&&_0x59ec1c[_0xaa7733(0x2eb)]());}),_0x2002f9=()=>{const _0x939ce=_0x25b686;_0x45e708=!0x0,_0x52728a?.(),_0x403722(),_0x2eae6b[_0x939ce(0x1e7)]();};_0x2eae6b['on']('line',_0x9fa44=>{const _0x1b610f=_0x25b686;_0x4c74a6?_0x4c74a6(_0x9fa44):_0xb04b00?_0xb04b00['push'](_0x9fa44):_0x130c14?_0x130c14(_0x9fa44):_0x442736[_0x1b610f(0x371)](_0x9fa44);}),_0x2eae6b[_0x25b686(0x2f9)](_0x25b686(0x1e7),()=>{const _0x566001=_0x25b686;_0xfe726c=!0x0,_0x59ec1c[_0x566001(0x24e)](),_0xb04b00&&!_0x45e708&&_0x2002f9(),_0x130c14?.(null);});let _0x47ec35=()=>_0x442736[_0x25b686(0x1ae)]>0x0?Promise['resolve'](_0x442736[_0x25b686(0x350)]()):_0xfe726c?Promise[_0x25b686(0x32d)](null):new Promise(_0x4f6a07=>{_0x130c14=_0x54e6a6=>{_0x130c14=void 0x0,_0x4f6a07(_0x54e6a6);};});_0x1850f4({'readLine':(_0x58b418,_0x485031)=>new Promise((_0x27156e,_0x8452f2)=>{const _0x486ce7=_0x25b686;if(_0xfe726c&&!_0xb04b00){_0x27156e(null);return;}_0xb04b00??=[];let _0x25d3e1=_0xb04b00[_0x486ce7(0x350)]();if(_0x25d3e1!==void 0x0){_0x27156e(_0x25d3e1);return;}let _0x4537f5=()=>{const _0x1f110c=_0x486ce7;_0x4c74a6=void 0x0,_0x485031[_0x1f110c(0x1af)]('abort',_0x4072a3),_0x59ec1c[_0x1f110c(0x24e)](),_0x2eae6b[_0x1f110c(0x2f1)](_0x1f110c(0x227));},_0x4072a3=()=>{_0x4537f5(),_0x8452f2(new Error('The\x20turn\x20was\x20cancelled.'));};_0x485031[_0x486ce7(0x2da)](_0x486ce7(0x2f4),_0x4072a3,{'once':!0x0}),!_0xfe726c&&(_0x4c74a6=_0x2e1098=>{_0x4537f5(),_0x27156e(_0x2e1098);},_0x2eae6b[_0x486ce7(0x2f1)](_0x58b418),_0x59ec1c[_0x486ce7(0x2eb)]());}),'endQuestions':()=>{const _0x16e8d5=_0x25b686;_0xb04b00&&_0x442736[_0x16e8d5(0x371)](..._0xb04b00),_0xb04b00=void 0x0;}}),_0x2eae6b['on'](_0x25b686(0x2b5),_0x2002f9),process['stderr'][_0x25b686(0x277)](_0x25b686(0x1d2));let _0xa6211f=async _0x4dcda8=>{_0x2aa24a=!0x0;try{await _0x36187a(_0x4dcda8);}finally{_0x2aa24a=!0x1;}};try{if(_0x271c0e&&await _0xa6211f(_0x271c0e),_0x45e708)return;!_0xfe726c&&!_0x52728a&&_0x59ec1c[_0x25b686(0x2eb)]();for(let _0x151c20=await _0x47ec35();_0x151c20!==null&&(_0x59ec1c['hide'](),!_0x45e708);_0x151c20=await _0x47ec35()){let _0x3c0df9=_0x151c20[_0x25b686(0x23a)]();if(_0x3c0df9===_0x25b686(0x25e))break;_0x3c0df9&&await _0xa6211f(_0x3c0df9),!_0xfe726c&&!_0x52728a&&_0x59ec1c['show']();}for(;!_0x45e708&&_0x52728a;)await _0x310bc4;}finally{_0x1850f4(null),_0x3731de(),_0x59ec1c['restore'](),_0x2eae6b[_0x25b686(0x35b)](_0x25b686(0x2b5),_0x2002f9),_0x2eae6b[_0x25b686(0x1e7)]();}}async function Dn(){const _0x5574bc=_0x2e9e2a;let _0x167175=Rt(process[_0x5574bc(0x243)]['slice'](0x2));if(_0x167175['outputFormat']===_0x5574bc(0x2c4)){await fe(_0x167175);return;}let _0x561a6c=Pt();try{await fe(_0x167175);}finally{_0x561a6c();}}async function fe(_0x17f729){const _0x3656ca=_0x2e9e2a;if(_0x17f729[_0x3656ca(0x25f)]){Ct();return;}if(_0x17f729['version']){console[_0x3656ca(0x2f8)](Lt());return;}if(_0x17f729[_0x3656ca(0x367)]===_0x3656ca(0x2c2)){await kn(_0x17f729);return;}if(_0x17f729[_0x3656ca(0x367)]===_0x3656ca(0x329)){await Sn(_0x17f729['prompt']);return;}if(_0x17f729[_0x3656ca(0x367)]===_0x3656ca(0x2dc)){await Mt();return;}if(_0x17f729[_0x3656ca(0x367)]===_0x3656ca(0x1b2)){await Bt(_0x17f729);return;}if(_0x17f729['subcommand']===_0x3656ca(0x34d)){await Wt(_0x17f729);return;}if(_0x17f729[_0x3656ca(0x367)]===_0x3656ca(0x300)){await Zt(_0x17f729);return;}if(_0x17f729[_0x3656ca(0x367)]==='sessions'){await Qt(_0x17f729);return;}if(_0x17f729[_0x3656ca(0x367)]==='usage'){await nn(_0x17f729);return;}if(_0x17f729[_0x3656ca(0x367)]===_0x3656ca(0x1ee)||_0x17f729[_0x3656ca(0x367)]===_0x3656ca(0x2b6)||_0x17f729[_0x3656ca(0x367)]===_0x3656ca(0x29d)){await an(_0x17f729,_0x17f729[_0x3656ca(0x367)]);return;}if(_0x17f729[_0x3656ca(0x367)]===_0x3656ca(0x1ad)){await cn(_0x17f729);return;}if(_0x17f729[_0x3656ca(0x367)]===_0x3656ca(0x30e)){await mn(_0x17f729);return;}if(_0x17f729['subcommand']===_0x3656ca(0x273)){await gn(_0x17f729);return;}if(_0x17f729[_0x3656ca(0x367)]===_0x3656ca(0x1d3)){await wn(_0x17f729);return;}if(_0x17f729[_0x3656ca(0x367)]===_0x3656ca(0x1a1)){await _0x1ca8eb(_0x17f729[_0x3656ca(0x34a)],{'runnerUrl':_0x17f729[_0x3656ca(0x293)],'backendUrl':_0x17f729[_0x3656ca(0x1e1)],'interopPath':_0x17f729[_0x3656ca(0x1c7)],'workerId':_0x17f729['workerId']});return;}if(_0x17f729[_0x3656ca(0x34f)]){await Gt();return;}await En(_0x17f729);}var Un=process.env.NODE_ENV===_0x2e9e2a(0x254)||!!process.env.JEST_WORKER_ID;Un||Dn()[_0x2e9e2a(0x341)](_0x127ccf=>{const _0x4b86fd=_0x2e9e2a;console[_0x4b86fd(0x2a6)](_0x127ccf['stack']||_0x127ccf[_0x4b86fd(0x290)]||_0x127ccf),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 _0x182da6=_0x3f83;(function(_0x4045f1,_0x4e19d7){const _0xb2937e=_0x3f83,_0x49e4d6=_0x4045f1();while(!![]){try{const _0x1bbab7=-parseInt(_0xb2937e(0x16b))/0x1*(-parseInt(_0xb2937e(0x1ac))/0x2)+parseInt(_0xb2937e(0x19d))/0x3*(parseInt(_0xb2937e(0x1d2))/0x4)+-parseInt(_0xb2937e(0x23b))/0x5+parseInt(_0xb2937e(0x1c8))/0x6*(parseInt(_0xb2937e(0x290))/0x7)+parseInt(_0xb2937e(0x207))/0x8+-parseInt(_0xb2937e(0x1a2))/0x9*(-parseInt(_0xb2937e(0x225))/0xa)+-parseInt(_0xb2937e(0x257))/0xb;if(_0x1bbab7===_0x4e19d7)break;else _0x49e4d6['push'](_0x49e4d6['shift']());}catch(_0x37d977){_0x49e4d6['push'](_0x49e4d6['shift']());}}}(_0x2a23,0xb82c1));const __dirname=import.meta.dirname;import _0x32f703 from'fs';import _0x584aee from'path';import{clearLine as _0x23d728,createInterface as _0x477299,cursorTo as _0x589870}from'node:readline';import{isOnStepGrid as _0x2edba0}from'@uipath/delegate-sdk';var _=_0x182da6(0x238);function S(_0x46672a){const _0x340ec9=_0x182da6;return _0x46672a[_0x340ec9(0x18f)](/\u001b\[[0-?]*[ -/]*[@-~]|\u001b\][^\u0007\u001b]*(\u0007|\u001b\\)?|\u001b./g,'')[_0x340ec9(0x18f)](/[\u0000-\u0008\u000b-\u001f\u007f-\u009f]/g,'');}function V(_0x1b0c69){const _0x239d39=_0x182da6;return S(_0x1b0c69[_0x239d39(0x1c7)]??(_0x1b0c69[_0x239d39(0x2e6)]===_?'Something\x20else':_0x1b0c69['id']));}function Te(_0x707993,_0x427d04,_0xe60b72){const _0x4f1492=_0x182da6;let _0x17129f=[''+(_0xe60b72>0x1?'['+_0x427d04+'/'+_0xe60b72+']\x20':'')+S(_0x707993[_0x4f1492(0x17d)])+(_0x707993[_0x4f1492(0x2e3)]?'\x20(optional)':''),S(_0x707993[_0x4f1492(0x18c)])];return _0x707993['type']===_0x4f1492(0x2c5)&&_0x707993[_0x4f1492(0x2e8)][_0x4f1492(0x25f)]((_0x355541,_0x26416c)=>{const _0x474302=_0x4f1492;let _0x54a03a=_0x355541[_0x474302(0x2e6)]===_?_0x474302(0x26b):'',_0x3fcdb7=_0x355541[_0x474302(0x223)]?_0x474302(0x19f)+S(_0x355541[_0x474302(0x223)]):'';_0x17129f[_0x474302(0x297)]('\x20\x20'+(_0x26416c+0x1)+'.\x20'+V(_0x355541)+_0x54a03a+_0x3fcdb7);}),_0x17129f[_0x4f1492(0x210)]('\x0a');}function X(_0x25966f,_0x251df0){const _0x2a2be4=_0x182da6;let _0x47c6f2=_0x25966f[_0x2a2be4(0x199)](/[\s,]+/)[_0x2a2be4(0x2fd)](Boolean);if(_0x47c6f2[_0x2a2be4(0x1f2)]===0x0)return null;let _0x43957d=_0x47c6f2[_0x2a2be4(0x30f)](_0x31e9c6=>/^\d+$/[_0x2a2be4(0x282)](_0x31e9c6)?Number(_0x31e9c6):NaN);return _0x43957d['some'](_0x1f85f9=>!Number[_0x2a2be4(0x2fb)](_0x1f85f9)||_0x1f85f9<0x1||_0x1f85f9>_0x251df0)?null:[...new Set(_0x43957d)][_0x2a2be4(0x30f)](_0x1f783d=>_0x1f783d-0x1);}function xe(_0xc38d64){const _0x264634=_0x182da6;return typeof _0xc38d64=='object'&&_0xc38d64!==null&&_0x264634(0x1b7)in _0xc38d64;}async function R(_0x3e33a7,_0x580222,_0x3de3bc,_0x109385){const _0x2a014d=_0x182da6;for(;;){let _0x443f1a=(await _0x3e33a7(_0x580222))[_0x2a014d(0x21f)]();if(_0x443f1a==='')return;let _0x571add=_0x109385(_0x443f1a);if(!xe(_0x571add))return _0x571add;_0x3de3bc(_0x571add['refused']+'\x0a');}}async function De(_0x2b1367,_0x62a6d9,_0x29146d){const _0x1cad89=_0x182da6;if(_0x2b1367[_0x1cad89(0x2e8)][_0x1cad89(0x1f2)]===0x0||_0x2b1367['options'][_0x1cad89(0x264)](_0x23d815=>_0x23d815[_0x1cad89(0x2e6)]===_)){let _0xe80752=(await _0x62a6d9(_0x1cad89(0x270)))[_0x1cad89(0x21f)]();return _0xe80752===''?void 0x0:{'text':_0xe80752};}let _0x2c994f=_0x2b1367[_0x1cad89(0x2e8)][_0x1cad89(0x24c)](_0x5c80c4=>_0x5c80c4[_0x1cad89(0x2e6)]===_),_0x32e1de=_0x2b1367[_0x1cad89(0x140)]?'Numbers,\x20separated\x20by\x20commas\x20(Enter\x20to\x20skip):\x20':_0x1cad89(0x1b4)+(_0x2c994f>=0x0?_0x1cad89(0x214):'')+_0x1cad89(0x1b0),_0x1286cc=await R(_0x62a6d9,_0x32e1de,_0x29146d,_0x3896c3=>{const _0xea395d=_0x1cad89;let _0x37c620=X(_0x3896c3,_0x2b1367[_0xea395d(0x2e8)][_0xea395d(0x1f2)]);return _0x37c620&&(_0x2b1367[_0xea395d(0x140)]||_0x37c620[_0xea395d(0x1f2)]===0x1)?_0x37c620:!_0x2b1367[_0xea395d(0x140)]&&_0x2c994f>=0x0?{'typed':_0x3896c3}:{'refused':_0x2b1367[_0xea395d(0x140)]?_0xea395d(0x135)+_0x2b1367[_0xea395d(0x2e8)][_0xea395d(0x1f2)]+'.':'Enter\x20one\x20number\x20from\x201\x20to\x20'+_0x2b1367['options']['length']+'.'};});if(_0x1286cc===void 0x0)return;if(!Array[_0x1cad89(0x25d)](_0x1286cc))return{'text':_0x1286cc['typed']};let _0x2416be=_0x1286cc[_0x1cad89(0x30f)](_0x274b7e=>_0x2b1367[_0x1cad89(0x2e8)][_0x274b7e]['id']),_0x17f602=_0x2416be[_0x1cad89(0x146)](_)?await R(_0x62a6d9,V(_0x2b1367[_0x1cad89(0x2e8)][_0x2c994f])+':\x20',_0x29146d,_0x135221=>_0x135221):void 0x0;if(!(_0x2416be[_0x1cad89(0x146)](_)&&_0x17f602===void 0x0))return _0x2b1367['multiSelect']?{'optionIds':_0x2416be,..._0x17f602!==void 0x0?{'text':_0x17f602}:{}}:_0x17f602!==void 0x0?{'text':_0x17f602}:{'optionId':_0x2416be[0x0]};}async function Ue(_0xfa120c,_0x4afa7e,_0x3b9ff9){const _0x266c48=_0x182da6;let _0x57ebf9={};for(let _0x298ecd of _0xfa120c[_0x266c48(0x236)]){let _0x3edaf5=_0x298ecd[_0x266c48(0x286)]??_0x298ecd[_0x266c48(0x1a0)],_0x19dcd2=_0x298ecd['step']??0x1,_0x3df3b1=_0x298ecd[_0x266c48(0x188)]?'\x20'+S(_0x298ecd[_0x266c48(0x188)]):'',_0x2ca3e8=_0x266c48(0x1cd)+_0x298ecd['min']+'\x20to\x20'+_0x298ecd[_0x266c48(0x18d)]+(_0x19dcd2!==0x1?_0x266c48(0x1fc)+_0x19dcd2:''),_0x462cae=await R(_0x4afa7e,S(_0x298ecd[_0x266c48(0x1c7)])+'\x20['+_0x298ecd[_0x266c48(0x1a0)]+'-'+_0x298ecd[_0x266c48(0x18d)]+_0x3df3b1+_0x266c48(0x138)+_0x3edaf5+_0x266c48(0x26d),_0x3b9ff9,_0x58f376=>{const _0x15814f=_0x266c48;let _0x4e1dde=Number(_0x58f376);return Number[_0x15814f(0x13f)](_0x4e1dde)&&_0x4e1dde>=_0x298ecd[_0x15814f(0x1a0)]&&_0x4e1dde<=_0x298ecd[_0x15814f(0x18d)]&&_0x2edba0(_0x4e1dde,_0x298ecd[_0x15814f(0x1a0)],_0x19dcd2)?_0x4e1dde:{'refused':_0x15814f(0x267)+_0x2ca3e8+'.'};});_0x57ebf9[_0x298ecd['id']]=_0x462cae??_0x3edaf5;}return{'values':_0x57ebf9};}async function Ne(_0x3f2f9d,_0x49f536,_0x4eeb99){const _0x47bd87=_0x182da6;_0x4eeb99(_0x3f2f9d[_0x47bd87(0x2cb)]['map']((_0x545b0e,_0x5a7260)=>'\x20\x20'+(_0x5a7260+0x1)+'.\x20'+S(_0x545b0e[_0x47bd87(0x1c7)]))['join']('\x0a')+'\x0a');let _0x258a3c={};for(let _0x3c9f93 of _0x3f2f9d[_0x47bd87(0x1de)]){let _0x3b8f72=await R(_0x49f536,S(_0x3c9f93[_0x47bd87(0x1c7)])+_0x47bd87(0x21c),_0x4eeb99,_0xc8227d=>{const _0x2c5882=_0x47bd87;let _0x25e64d=X(_0xc8227d,_0x3f2f9d['buckets']['length']);return _0x25e64d&&_0x25e64d[_0x2c5882(0x1f2)]===0x1?_0x25e64d[0x0]:{'refused':_0x2c5882(0x1b6)+_0x3f2f9d[_0x2c5882(0x2cb)][_0x2c5882(0x1f2)]+'.'};});if(_0x3b8f72===void 0x0)continue;let _0x5e180a=_0x3f2f9d[_0x47bd87(0x2cb)][_0x3b8f72],_0x6bdd5={};for(let _0x2eaded of _0x5e180a['subFields']??[]){let _0x493dab='\x20\x20'+S(_0x2eaded[_0x47bd87(0x1c7)])+(_0x2eaded['optional']?_0x47bd87(0x2ea):'')+':\x20',_0x4e5c9e=await R(_0x49f536,_0x493dab,_0x4eeb99,_0x425d25=>_0x425d25);for(;_0x4e5c9e===void 0x0&&!_0x2eaded[_0x47bd87(0x2e3)];)_0x4eeb99(S(_0x2eaded[_0x47bd87(0x1c7)])+_0x47bd87(0x134)),_0x4e5c9e=await R(_0x49f536,_0x493dab,_0x4eeb99,_0x28d2b5=>_0x28d2b5);_0x4e5c9e!==void 0x0&&(_0x6bdd5[_0x2eaded['id']]=_0x4e5c9e);}_0x258a3c[_0x3c9f93['id']]={'bucket':_0x5e180a['id'],...Object['keys'](_0x6bdd5)[_0x47bd87(0x1f2)]>0x0?{'subFields':_0x6bdd5}:{}};}return Object[_0x47bd87(0x1e6)](_0x258a3c)['length']>0x0?{'assignments':_0x258a3c}:void 0x0;}async function _e(_0x51780c,_0x541e51,_0x48f6cf){const _0x1dabd1=_0x182da6;if(_0x51780c[_0x1dabd1(0x1f8)]==='text')return De(_0x51780c,_0x541e51,_0x48f6cf);if(_0x51780c['type']===_0x1dabd1(0x14a))return Ue(_0x51780c,_0x541e51,_0x48f6cf);if(_0x51780c[_0x1dabd1(0x1f8)]===_0x1dabd1(0x232))return Ne(_0x51780c,_0x541e51,_0x48f6cf);let _0x2fd8ab=(await _0x541e51(_0x1dabd1(0x2d0)))[_0x1dabd1(0x21f)]();return _0x2fd8ab===''?void 0x0:{'text':_0x2fd8ab};}function Z(_0x336dcc,_0x6890e1){return async _0x3ccc4a=>{const _0xe8c402=_0x3f83;let _0x36f807=_0x336dcc();if(!_0x36f807)throw new Error(_0xe8c402(0x1a7));let _0x1e0a1b=async _0x15ef33=>{const _0x2cfc69=_0xe8c402;if(_0x3ccc4a[_0x2cfc69(0x2cc)][_0x2cfc69(0x197)])throw new Error(_0x2cfc69(0x18b));let _0xb29161=await _0x36f807['readLine'](_0x15ef33,_0x3ccc4a[_0x2cfc69(0x2cc)]);if(_0xb29161===null)throw new Error(_0x2cfc69(0x27a));return _0xb29161;};try{_0x6890e1('\x0a'+(_0x3ccc4a[_0xe8c402(0x227)]?S(_0x3ccc4a['intro'])+'\x0a':''));let _0xb5aead={};for(let [_0x3e3e0e,_0x135fd8]of _0x3ccc4a[_0xe8c402(0x310)][_0xe8c402(0x221)]()){_0x6890e1('\x0a'+Te(_0x135fd8,_0x3e3e0e+0x1,_0x3ccc4a[_0xe8c402(0x310)][_0xe8c402(0x1f2)])+'\x0a');let _0x1307eb=await _e(_0x135fd8,_0x1e0a1b,_0x6890e1);_0x1307eb!==void 0x0&&(_0xb5aead[_0x135fd8['id']]=_0x1307eb);}return{'answers':_0xb5aead};}finally{_0x36f807['endQuestions']();}};}import{BUSINESS_ANALYSIS_PRELOADED_SKILLS as _0x48068e,DelegateAgent as _0x1d9780,cancelTurn as _0x1bb0d3,InteropProcess as _0x25beda,complete as _0x4e21ee,DEFAULT_MODEL as _0x44f119,createBackendClient as _0x551c49,evaluate as _0x2a4289,isCompletionRequestError as _0x1d35ad,isEvaluationRequestError as _0x1b3605,isTranscriptionError as _0x3173d3,rerank as _0x655200,transcribe as _0x31f39d,verify as _0x1ec3f5,acceptDelegation as _0x51d3e,cancelDelegation as _0x3129e1,claimDelegation as _0x15c331,completeDelegation as _0x318959,createDelegation as _0xdb7e12,deleteDelegation as _0x4b3c89,dismissDelegation as _0x3900a7,getSessionDelegations as _0x61e248,isDelegationError as _0x242c97,listDelegations as _0x33d410,listOrgUsers as _0x3c8586,previewDelegation as _0x592b40,TurnResultCollector as _0x4b4198,agentEventToJsonLine as _0xdbc392,describeBaseUrlRejection as _0x17b1fc,getActivitySummary as _0x549e77,getAuthFilePath as _0x35e9a7,getByoWarnings as _0x1cc4d6,getCartographerAllowance as _0x155eed,getDailyBreakdown as _0x9353f8,getLicensingSummary as _0x14be4b,getMonthlySpending as _0x3a4b5e,isOutputFormat as _0x38a099,isCloudBaseUrl as _0x340512,isSafeProjectFolderSegment as _0x1b57a5,listModels as _0x11cff,listSessions as _0x56e7fe,getSession as _0x21b992,renameSession as _0x23d611,deleteSession as _0x2e4be8,deleteSessionTaskLog as _0x228cf7,forkSession as _0x99f26e,isBackendRequestError as _0x31662e,MAX_SESSION_PAGE_SIZE as _0x2456c0,listTenants as _0x565d2c,loadAndRefreshAuth as _0x567132,loadAndRefreshSdkLogin as _0x347f16,parsePlatformBaseUrl as _0x54ff8d,resolveBackendUrl as _0x417733,runHealthCheck as _0x5f0f83,runHostCommand as _0x25f146,runLoginFlow as _0x59b73b,runTurnForResult as _0x1b349a,saveAuthData as _0x52759b,switchTenant as _0x52403d,toJsonLine as _0x461f40,ENV_TO_CLOUD as _0x2601cc,OUTPUT_FORMATS as _0x5e2b0b}from'@uipath/delegate-sdk';var Nt=[_0x182da6(0x211),_0x182da6(0x1ba),_0x182da6(0x16e),_0x182da6(0x213),_0x182da6(0x2d3),_0x182da6(0x17b),'check',_0x182da6(0x245),'usage',_0x182da6(0x161),_0x182da6(0x22b),'verify',_0x182da6(0x2ee),_0x182da6(0x194),'delegations',_0x182da6(0x1bd)],se=['',_0x182da6(0x16e),'whoami',_0x182da6(0x2ae),_0x182da6(0x245),'usage',_0x182da6(0x161),'rerank',_0x182da6(0x269),'complete',_0x182da6(0x194),'delegations','org-users'],re=['low',_0x182da6(0x29f),_0x182da6(0x1cb),_0x182da6(0x1d5),_0x182da6(0x18d)],_t=_0x48068e;function w(_0x4fd605,_0x8cecfa,_0x72041b,_0x559541){const _0x13bf5c=_0x182da6;let _0x1bf52d=_0x4fd605[_0x8cecfa];return(!_0x1bf52d||_0x1bf52d[_0x13bf5c(0x1f2)]>0x1&&_0x1bf52d[_0x13bf5c(0x1c2)]('-'))&&(console['error'](_0x72041b+_0x13bf5c(0x1f0)+_0x559541+'.'),process[_0x13bf5c(0x20b)](0x2)),_0x1bf52d;}function J(_0x1f132e,_0x57ba2a,_0x4ba783,_0x58ae79){const _0x53ebfc=_0x182da6;let _0x6d2bd8=w(_0x1f132e,_0x57ba2a,_0x4ba783,_0x53ebfc(0x1c5)),_0x55c7d9=Number(_0x6d2bd8);return(!/^\d+$/[_0x53ebfc(0x282)](_0x6d2bd8)||_0x55c7d9<0x1||!Number[_0x53ebfc(0x2b4)](_0x55c7d9)||_0x58ae79!==void 0x0&&_0x55c7d9>_0x58ae79)&&(console[_0x53ebfc(0x144)](_0x4ba783+'\x20must\x20be\x20a\x20whole\x20number\x20'+(_0x58ae79===void 0x0?_0x53ebfc(0x263):_0x53ebfc(0x256)+_0x58ae79)+_0x53ebfc(0x2aa)+_0x6d2bd8+'.'),process[_0x53ebfc(0x20b)](0x2)),_0x55c7d9;}function Rt(_0x5ed2c2){const _0x4d9674=_0x182da6;let _0x27da06={'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':_0x4d9674(0x2c5),'preloadSkills':[],'attachments':[],'skipEnvCheck':!0x1,'includeSubAgents':!0x1,'operands':[],'help':!0x1,'version':!0x1};Nt[_0x4d9674(0x146)](_0x5ed2c2[0x0])&&(_0x27da06[_0x4d9674(0x1a9)]=_0x5ed2c2[0x0],_0x5ed2c2=_0x5ed2c2[_0x4d9674(0x1bb)](0x1));let _0x5f571d=[];for(let _0x317371=0x0;_0x317371<_0x5ed2c2[_0x4d9674(0x1f2)];_0x317371++){let _0x196039=_0x5ed2c2[_0x317371];switch(_0x196039){case'--print':case'-p':_0x27da06[_0x4d9674(0x180)]=!0x0;break;case'--keep-alive':_0x27da06[_0x4d9674(0x1eb)]=!0x0;break;case _0x4d9674(0x2f6):_0x27da06['cleanup']=!0x0;break;case _0x4d9674(0x25c):_0x27da06['headless']=!0x0;break;case _0x4d9674(0x222):_0x27da06[_0x4d9674(0x2cd)]=!0x0;break;case'--cartographer':_0x27da06[_0x4d9674(0x217)]=!0x0,_0x27da06[_0x4d9674(0x2cd)]=!0x0,_0x27da06[_0x4d9674(0x2f7)]['push'](..._t);break;case _0x4d9674(0x182):_0x27da06[_0x4d9674(0x219)]=!0x0;break;case _0x4d9674(0x185):_0x27da06[_0x4d9674(0x30a)]=!0x0;break;case'--no-memory':_0x27da06[_0x4d9674(0x198)]=!0x0;break;case _0x4d9674(0x2ff):_0x27da06[_0x4d9674(0x2fe)]=!0x0;break;case'--quiet':case'-q':_0x27da06[_0x4d9674(0x2cf)]=!0x0;break;case _0x4d9674(0x277):_0x27da06[_0x4d9674(0x1fd)]=!0x0;break;case _0x4d9674(0x272):_0x27da06[_0x4d9674(0x154)]=_0x5ed2c2[++_0x317371];break;case'--model':_0x27da06[_0x4d9674(0x12a)]=_0x5ed2c2[++_0x317371];break;case _0x4d9674(0x27e):_0x27da06[_0x4d9674(0x304)]=_0x5ed2c2[++_0x317371];break;case _0x4d9674(0x252):_0x27da06['interopPath']=_0x5ed2c2[++_0x317371];break;case _0x4d9674(0x2a3):_0x27da06['workerId']=_0x5ed2c2[++_0x317371];break;case _0x4d9674(0x2ca):_0x27da06[_0x4d9674(0x2f7)][_0x4d9674(0x297)](w(_0x5ed2c2,++_0x317371,_0x196039,'a\x20skill\x20name'));break;case _0x4d9674(0x22f):{let _0x4b5e91=w(_0x5ed2c2,++_0x317371,_0x196039,'a\x20project\x20id');_0x1b57a5(_0x4b5e91)||(console[_0x4d9674(0x144)]('Invalid\x20--project:\x20\x22'+_0x4b5e91+'\x22.\x20Use\x20a\x20single\x20folder-safe\x20segment\x20such\x20as\x20invoice-approval\x20(letters,\x20digits,\x20spaces,\x20\x22_\x22,\x20\x22-\x22,\x20\x22.\x22,\x20parentheses;\x20at\x20most\x2064\x20characters;\x20not\x20starting\x20with\x20\x22.\x22\x20or\x20ending\x20with\x20\x22.\x22\x20or\x20a\x20space).'),process['exit'](0x2)),_0x27da06[_0x4d9674(0x1ec)]=_0x4b5e91;break;}case'--output-format':{let _0x4e0120=w(_0x5ed2c2,++_0x317371,_0x196039,_0x4d9674(0x1fe)+_0x5e2b0b[_0x4d9674(0x210)]('\x20|\x20')+')');_0x38a099(_0x4e0120)||(console[_0x4d9674(0x144)]('Invalid\x20--output-format:\x20'+_0x4e0120+_0x4d9674(0x23f)+_0x5e2b0b[_0x4d9674(0x210)]('\x20|\x20')+'.'),process[_0x4d9674(0x20b)](0x2)),_0x27da06[_0x4d9674(0x261)]=_0x4e0120;break;}case'--session':_0x27da06[_0x4d9674(0x2f9)]=w(_0x5ed2c2,++_0x317371,_0x196039,'a\x20session\x20id');break;case'--page':_0x27da06['page']=J(_0x5ed2c2,++_0x317371,_0x196039);break;case _0x4d9674(0x187):_0x27da06[_0x4d9674(0x24e)]=J(_0x5ed2c2,++_0x317371,_0x196039,_0x2456c0);break;case _0x4d9674(0x11f):_0x27da06[_0x4d9674(0x262)]=!0x0;break;case _0x4d9674(0x1dd):_0x27da06[_0x4d9674(0x159)]=w(_0x5ed2c2,++_0x317371,_0x196039,_0x4d9674(0x312));break;case'--attach':{let _0x31a082=_0x584aee[_0x4d9674(0x120)](process[_0x4d9674(0x30e)](),w(_0x5ed2c2,++_0x317371,_0x196039,_0x4d9674(0x28f)));_0x32f703[_0x4d9674(0x2d9)](_0x31a082)||(console[_0x4d9674(0x144)](_0x4d9674(0x2e0)+_0x31a082),process[_0x4d9674(0x20b)](0x2)),_0x27da06[_0x4d9674(0x1e0)][_0x4d9674(0x297)](_0x31a082);break;}case'--turn':_0x27da06['turnId']=w(_0x5ed2c2,++_0x317371,_0x196039,_0x4d9674(0x1a1));break;case _0x4d9674(0x160):_0x27da06[_0x4d9674(0x12f)]=w(_0x5ed2c2,++_0x317371,_0x196039,_0x4d9674(0x287));break;case _0x4d9674(0x189):_0x27da06[_0x4d9674(0x192)]=w(_0x5ed2c2,++_0x317371,_0x196039,_0x4d9674(0x1c9));break;case _0x4d9674(0x122):_0x27da06[_0x4d9674(0x206)]=J(_0x5ed2c2,++_0x317371,_0x196039,0x16d);break;case'--working-dir':_0x27da06['workingDirectory']=_0x584aee[_0x4d9674(0x120)](process[_0x4d9674(0x30e)](),w(_0x5ed2c2,++_0x317371,_0x196039,'a\x20directory\x20path'));break;case _0x4d9674(0x237):_0x27da06[_0x4d9674(0x1c4)]=_0x584aee[_0x4d9674(0x120)](process['cwd'](),w(_0x5ed2c2,++_0x317371,_0x196039,_0x4d9674(0x249)));break;case'--effort':{let _0x4f1859=w(_0x5ed2c2,++_0x317371,_0x196039,_0x4d9674(0x191));re[_0x4d9674(0x146)](_0x4f1859)||(console['error'](_0x4d9674(0x285)+_0x4f1859+_0x4d9674(0x23f)+re[_0x4d9674(0x210)](_0x4d9674(0x1d3))+'.'),process[_0x4d9674(0x20b)](0x2)),_0x27da06[_0x4d9674(0x167)]=_0x4f1859;break;}case'--tenant':{let _0x4ce29d=_0x5ed2c2[++_0x317371];(!_0x4ce29d||_0x4ce29d[_0x4d9674(0x1c2)]('--'))&&(console['error']('--tenant\x20requires\x20a\x20tenant\x20name.'),process['exit'](0x2)),_0x27da06['tenant']=_0x4ce29d;break;}case'--env':{let _0x18378c=_0x5ed2c2[++_0x317371];[_0x4d9674(0x177),_0x4d9674(0x2ac),_0x4d9674(0x1f5),_0x4d9674(0x300)][_0x4d9674(0x146)](_0x18378c)||(console[_0x4d9674(0x144)](_0x4d9674(0x15b)+_0x18378c+_0x4d9674(0x2a7)),process[_0x4d9674(0x20b)](0x2)),_0x27da06[_0x4d9674(0x296)]=_0x18378c;break;}case _0x4d9674(0x195):case _0x4d9674(0x2b9):{let _0x54e512=w(_0x5ed2c2,++_0x317371,_0x196039,_0x4d9674(0x175)),_0x2b6d34=_0x54ff8d(_0x54e512);if(_0x2b6d34['ok']===!0x1){console[_0x4d9674(0x144)](_0x17b1fc(_0x54e512,_0x2b6d34[_0x4d9674(0x2e5)])),process[_0x4d9674(0x20b)](0x2);break;}_0x27da06[_0x4d9674(0x1d7)]=_0x2b6d34[_0x4d9674(0x193)];break;}case _0x4d9674(0x1f7):_0x27da06['skipEnvCheck']=!0x0;break;case'-h':case'--help':_0x27da06[_0x4d9674(0x2b7)]=!0x0;break;case'-v':case'--version':_0x27da06[_0x4d9674(0x19c)]=!0x0;break;default:_0x196039[_0x4d9674(0x1c2)]('--')&&(console[_0x4d9674(0x144)]('Unknown\x20flag:\x20'+_0x196039),process[_0x4d9674(0x20b)](0x2)),_0x5f571d[_0x4d9674(0x297)](_0x196039);}}return _0x27da06[_0x4d9674(0x1ba)]!==void 0x0&&_0x27da06[_0x4d9674(0x1a9)]!==_0x4d9674(0x211)&&(console[_0x4d9674(0x144)](_0x4d9674(0x133)),process[_0x4d9674(0x20b)](0x2)),_0x27da06[_0x4d9674(0x1d7)]!==void 0x0&&_0x27da06[_0x4d9674(0x296)]!==void 0x0&&(console[_0x4d9674(0x144)](_0x4d9674(0x275)),process[_0x4d9674(0x20b)](0x2)),_0x27da06[_0x4d9674(0x1d7)]!==void 0x0&&_0x27da06[_0x4d9674(0x1a9)]!==_0x4d9674(0x211)&&(console[_0x4d9674(0x144)]('--url\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Other\x20commands\x20follow\x20the\x20saved\x20login,\x20or\x20--backend\x20<url>.'),process[_0x4d9674(0x20b)](0x2)),_0x27da06['days']!==void 0x0&&_0x27da06[_0x4d9674(0x1a9)]!==_0x4d9674(0x1b5)&&(console[_0x4d9674(0x144)]('--days\x20applies\x20to\x20`delegate-cli\x20usage\x20activity|daily`\x20only.'),process[_0x4d9674(0x20b)](0x2)),_0x27da06[_0x4d9674(0x159)]!==void 0x0&&(_0x27da06[_0x4d9674(0x1a9)]!==_0x4d9674(0x2ee)&&_0x27da06[_0x4d9674(0x1a9)]!==''||_0x27da06['cleanup'])&&(console[_0x4d9674(0x144)](_0x4d9674(0x1ea)),process[_0x4d9674(0x20b)](0x2)),_0x27da06[_0x4d9674(0x1e0)][_0x4d9674(0x1f2)]>0x0&&(_0x27da06[_0x4d9674(0x1a9)]!==''||_0x27da06['cleanup'])&&(console['error'](_0x4d9674(0x1e1)),process[_0x4d9674(0x20b)](0x2)),_0x27da06[_0x4d9674(0x2fe)]&&(_0x27da06[_0x4d9674(0x1a9)]!==''||_0x27da06[_0x4d9674(0x2ba)])&&(console[_0x4d9674(0x144)](_0x4d9674(0x200)),process[_0x4d9674(0x20b)](0x2)),_0x27da06[_0x4d9674(0x2fe)]&&(_0x27da06['headless']||_0x27da06[_0x4d9674(0x2cd)])&&(console[_0x4d9674(0x144)]('--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[_0x4d9674(0x20b)](0x2)),_0x27da06[_0x4d9674(0x288)]&&_0x27da06[_0x4d9674(0x1a9)]!=='login'&&(console[_0x4d9674(0x144)](_0x4d9674(0x2f2)),process[_0x4d9674(0x20b)](0x2)),_0x27da06[_0x4d9674(0x261)]!==_0x4d9674(0x2c5)&&!se['includes'](_0x27da06[_0x4d9674(0x1a9)])&&(console[_0x4d9674(0x144)]('--output-format\x20'+_0x27da06[_0x4d9674(0x261)]+_0x4d9674(0x17a)+se[_0x4d9674(0x2fd)](Boolean)[_0x4d9674(0x210)](',\x20')+'.'),process[_0x4d9674(0x20b)](0x2)),(_0x27da06[_0x4d9674(0x2c2)]!==void 0x0||_0x27da06[_0x4d9674(0x24e)]!==void 0x0||_0x27da06[_0x4d9674(0x262)])&&_0x27da06[_0x4d9674(0x1a9)]!==_0x4d9674(0x245)&&(console['error'](_0x4d9674(0x241)),process[_0x4d9674(0x20b)](0x2)),(_0x27da06[_0x4d9674(0x12f)]!==void 0x0||_0x27da06[_0x4d9674(0x192)]!==void 0x0)&&_0x27da06[_0x4d9674(0x1a9)]!==_0x4d9674(0x1ff)&&(console[_0x4d9674(0x144)](_0x4d9674(0x1b2)),process[_0x4d9674(0x20b)](0x2)),_0x27da06[_0x4d9674(0x235)]!==void 0x0&&_0x27da06[_0x4d9674(0x1a9)]!==_0x4d9674(0x245)&&(console[_0x4d9674(0x144)](_0x4d9674(0x224)),process[_0x4d9674(0x20b)](0x2)),_0x27da06[_0x4d9674(0x2f7)]=[...new Set(_0x27da06['preloadSkills'])],_0x27da06['operands']=_0x5f571d,_0x27da06[_0x4d9674(0x29b)]=_0x5f571d[_0x4d9674(0x210)]('\x20'),_0x27da06;}var P=_0x13c628=>{const _0x2192cb=_0x182da6;process[_0x2192cb(0x1b9)]['write'](_0x13c628);};function Pt(){const _0xd7fe3b=_0x182da6;let _0x396f98=process['stdout'][_0xd7fe3b(0x25a)],_0x5a5170=_0x396f98[_0xd7fe3b(0x2fc)](process['stdout']),_0x120fa6=P;return P=_0x3f0621=>{_0x5a5170(_0x3f0621);},process[_0xd7fe3b(0x1b9)][_0xd7fe3b(0x25a)]=(..._0x44f2b3)=>process[_0xd7fe3b(0x2ed)]['write'](..._0x44f2b3),()=>{const _0x1a9085=_0xd7fe3b;process[_0x1a9085(0x1b9)]['write']=_0x396f98,P=_0x120fa6;};}function u(_0x4f4dee,_0x33b16a,_0x2cd229){const _0x577d76=_0x182da6;if(_0x4f4dee[_0x577d76(0x261)]===_0x577d76(0x2c5)){_0x2cd229(_0x33b16a);return;}P(_0x461f40(_0x33b16a));}function Ct(){const _0x44a673=_0x182da6;let _0x35564f='\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'[_0x44a673(0x21f)]();console[_0x44a673(0x20e)](_0x35564f);}function Lt(){const _0x130d55=_0x182da6;try{return JSON['parse'](_0x32f703[_0x130d55(0x129)](_0x584aee[_0x130d55(0x210)](__dirname,'..',_0x130d55(0x2da)),_0x130d55(0x155)))['version']||_0x130d55(0x2c3);}catch{return'unknown';}}var Ot=0x7d0;async function ie(_0x2163e7,_0xb08677){const _0x161824=_0x182da6;let _0x3fc4ea=_0xb08677?[_0xb08677]:[];for await(let _0x78e3c4 of _0x2163e7)_0x3fc4ea[_0x161824(0x297)](Buffer[_0x161824(0x153)](_0x78e3c4));return Buffer[_0x161824(0x295)](_0x3fc4ea)[_0x161824(0x2db)](_0x161824(0x155))['trim']();}function Ft(_0x45360e,_0x176bdd){return new Promise(_0x45db9a=>{const _0x165bc3=_0x3f83;let _0x5d25b6=_0x5efcac=>{const _0x579d2a=_0x3f83;clearTimeout(_0x4db938),_0x45360e['off'](_0x579d2a(0x283),_0x415a36),_0x45360e[_0x579d2a(0x1a6)](_0x579d2a(0x149),_0x9cc124),_0x45360e[_0x579d2a(0x1a6)](_0x579d2a(0x144),_0x9cc124),_0x45360e['pause'](),_0x45db9a(_0x5efcac);},_0x415a36=_0x26dad3=>_0x5d25b6(Buffer[_0x165bc3(0x153)](_0x26dad3)),_0x9cc124=()=>_0x5d25b6(null),_0x4db938=setTimeout(()=>_0x5d25b6(null),_0x176bdd);_0x45360e['on'](_0x165bc3(0x283),_0x415a36),_0x45360e['on'](_0x165bc3(0x149),_0x9cc124),_0x45360e['on']('error',_0x9cc124),_0x45360e[_0x165bc3(0x1ed)]();});}async function j(_0x37a10e,_0x3622c9,_0x2e83af=Ot){const _0x307db2=_0x182da6;let _0x203b72=_0x37a10e==='-';if(!_0x203b72&&_0x37a10e)return _0x37a10e;if(!_0x203b72&&_0x3622c9[_0x307db2(0x1ce)])return'';if(_0x203b72)return ie(_0x3622c9,null);let _0x5669c4=await Ft(_0x3622c9,_0x2e83af);return _0x5669c4?ie(_0x3622c9,_0x5669c4):'';}function K(){const _0x17151e=_0x182da6;return _0x584aee['join'](process.env.HOME||process.env.USERPROFILE||'',_0x17151e(0x141),_0x17151e(0x1ae));}function M(_0x46ce4c){const _0x10bd08=_0x182da6;try{let _0x1cf370=JSON[_0x10bd08(0x2ad)](_0x32f703[_0x10bd08(0x129)](_0x46ce4c,_0x10bd08(0x155)));return!_0x1cf370[_0x10bd08(0x1a4)]||!_0x1cf370[_0x10bd08(0x1d4)]||!_0x1cf370[_0x10bd08(0x2eb)]?null:_0x1cf370;}catch{return null;}}function jt(){const _0x524939=_0x182da6;let _0x392e04=[{'file':_0x35e9a7(),'isDesktopFallback':!0x1},{'file':K(),'isDesktopFallback':!0x0}];for(let _0x228f8a of _0x392e04){let _0x3d7952=M(_0x228f8a[_0x524939(0x1be)]);if(_0x3d7952)return{..._0x228f8a,'auth':_0x3d7952};}return null;}async function Mt(){const _0x698b2c=_0x182da6;let _0x315574=_0x35e9a7();if(!_0x32f703[_0x698b2c(0x2d9)](_0x315574)){let _0x583b7e=K();console[_0x698b2c(0x20e)](M(_0x583b7e)?_0x698b2c(0x243)+_0x583b7e+_0x698b2c(0x303):_0x698b2c(0x1d6));return;}_0x32f703[_0x698b2c(0x2f4)](_0x315574),console[_0x698b2c(0x20e)](_0x698b2c(0x29a)+_0x315574);}async function Bt(_0x283a74){const _0x52ff08=_0x182da6;let _0x49fe80=Q(),_0x369060,_0x2b31e6;if(_0x49fe80)_0x369060=_0x49fe80,_0x2b31e6=_0x52ff08(0x306);else{let _0x452b60=jt();if(!_0x452b60)throw new Error(Se);_0x369060=_0x452b60['auth'],_0x2b31e6=_0x452b60[_0x52ff08(0x1e7)]?_0x452b60[_0x52ff08(0x1be)]+_0x52ff08(0x274):_0x452b60[_0x52ff08(0x1be)];}let _0x11f90b={'source':_0x2b31e6,'baseUrl':_0x369060[_0x52ff08(0x193)]??null,'deployment':Ht(_0x369060['baseUrl']),'organization':{'id':_0x369060[_0x52ff08(0x2eb)],'slug':_0x369060[_0x52ff08(0x26e)]??null},'tenant':{'id':_0x369060[_0x52ff08(0x1d4)],'name':_0x369060[_0x52ff08(0x30c)]??null},'tokenExpiresAt':_0x369060[_0x52ff08(0x2d7)]?new Date(_0x369060[_0x52ff08(0x2d7)]*0x3e8)[_0x52ff08(0x273)]():null};u(_0x283a74,_0x11f90b,()=>{const _0x34cccb=_0x52ff08;let _0x246000=[_0x34cccb(0x2a1)+_0x2b31e6,_0x34cccb(0x1c1)+(_0x369060[_0x34cccb(0x193)]??_0x34cccb(0x2c3)),_0x34cccb(0x29c)+_0x11f90b['deployment'],_0x34cccb(0x2d1)+(_0x369060[_0x34cccb(0x26e)]??_0x34cccb(0x20f))+'\x20('+_0x369060['organizationId']+')',_0x34cccb(0x2bc)+(_0x369060[_0x34cccb(0x30c)]??_0x34cccb(0x20f))+'\x20('+_0x369060[_0x34cccb(0x1d4)]+')'];if(_0x369060[_0x34cccb(0x2d7)]){let _0x106fed=_0x369060['expiresAt']-Math[_0x34cccb(0x1ef)](Date[_0x34cccb(0x1cf)]()/0x3e8);_0x246000[_0x34cccb(0x297)](_0x106fed>0x0?_0x34cccb(0x2b6)+_0x11f90b[_0x34cccb(0x30d)]+_0x34cccb(0x279)+Math[_0x34cccb(0x14f)](_0x106fed/0x3c)+_0x34cccb(0x137):'Token:\x20\x20\x20\x20\x20\x20\x20\x20expired\x20'+_0x11f90b[_0x34cccb(0x30d)]);}process[_0x34cccb(0x1b9)]['write'](_0x246000[_0x34cccb(0x210)]('\x0a')+'\x0a');});}var Se=_0x182da6(0x173);function _0x3f83(_0x424320,_0x43bf09){_0x424320=_0x424320-0x11e;const _0x2a23fd=_0x2a23();let _0x3f833d=_0x2a23fd[_0x424320];return _0x3f833d;}function Ht(_0x2bf1c4){const _0x26195f=_0x182da6;return _0x2bf1c4?_0x340512(_0x2bf1c4)?_0x26195f(0x15c):'self-hosted\x20(Automation\x20Suite\x20/\x20Dedicated)':'unknown';}function Q(){let _0x215a79=process.env.AUTH_TOKEN_FILE;return(process.env.AUTH_TOKEN||_0x215a79)&&process.env.TENANT_ID&&process.env.ORG_ID?{'accessToken':_0x215a79?Jt(_0x215a79):process.env.AUTH_TOKEN,..._0x215a79?{'accessTokenFile':_0x215a79}:{},'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(_0x1f5990){const _0x3c5ca5=_0x182da6;let _0x43804d;try{_0x43804d=_0x32f703['readFileSync'](_0x1f5990,_0x3c5ca5(0x155))[_0x3c5ca5(0x21f)]();}catch(_0x11ca9e){throw new Error('AUTH_TOKEN_FILE\x20\x27'+_0x1f5990+_0x3c5ca5(0x23a)+_0x11ca9e[_0x3c5ca5(0x156)]);}let _0x3cfdb5=_0x43804d[_0x3c5ca5(0x1c2)](_0x3c5ca5(0x1bc))?_0x43804d[_0x3c5ca5(0x1bb)](0x7)[_0x3c5ca5(0x21f)]():_0x43804d;if(!_0x3cfdb5)throw new Error(_0x3c5ca5(0x12c)+_0x1f5990+_0x3c5ca5(0x226));return _0x3cfdb5;}function ve(){const _0x255b5a=_0x182da6;let _0xb3cdfb=process.env.UIPATH_BASE_URL;if(!_0xb3cdfb)return;let _0x21eef5=_0x54ff8d(_0xb3cdfb);if(_0x21eef5['ok']===!0x1)throw new Error(_0x255b5a(0x1e8)+_0x17b1fc(_0xb3cdfb,_0x21eef5[_0x255b5a(0x2e5)]));return _0x21eef5[_0x255b5a(0x193)];}async function q(){let _0x31752c=Q();if(_0x31752c)return _0x31752c;let _0x5245d7=await _0x567132();if(_0x5245d7)return _0x5245d7;throw new Error(Se);}async function Gt(){const _0x30b414=_0x182da6;await new _0x25beda()[_0x30b414(0x1b8)]({'force':!0x0}),console[_0x30b414(0x20e)](_0x30b414(0x2b0));}function z(_0x5d5ee8,_0x5c1dfc,_0xcdc3d0){const _0x2dc658=_0x182da6;_0x5d5ee8?process[_0x2dc658(0x2ed)][_0x2dc658(0x25a)](_0x2dc658(0x165)+_0x5d5ee8+']\x20Backend\x20URL:\x20'+_0xcdc3d0+'\x0a'):!_0x5c1dfc&&!process.env.BACKEND_URL&&process[_0x2dc658(0x2ed)]['write'](_0x2dc658(0x19a)+_0xcdc3d0+'\x0a');}async function v(_0x231473){const _0x3a1c31=_0x182da6;let _0x3de4ca=await q(),_0x108c1f=_0x417733(_0x231473[_0x3a1c31(0x296)],_0x3de4ca,_0x231473[_0x3a1c31(0x154)]);return z(_0x231473[_0x3a1c31(0x296)],_0x231473[_0x3a1c31(0x154)],_0x108c1f),{'auth':_0x3de4ca,'backendUrl':_0x108c1f,'client':_0x551c49({'auth':_0x3de4ca,'backendUrl':_0x108c1f})};}async function Wt(_0x40cc8a){const _0x5a2e05=_0x182da6;let {client:_0x1698f8}=await v(_0x40cc8a),[_0x456f04,_0x303678]=await Promise['all']([_0x11cff(_0x1698f8),_0x1cc4d6(_0x1698f8)[_0x5a2e05(0x2a9)](_0x28a077=>(process[_0x5a2e05(0x2ed)]['write'](_0x5a2e05(0x13b)+(_0x28a077 instanceof Error?_0x28a077['message']:String(_0x28a077))+'\x0a'),{}))]),_0x1bc76e=_0x456f04[_0x5a2e05(0x30f)](_0x32a55a=>_0x303678[_0x32a55a['id']]?{..._0x32a55a,'byoWarning':_0x303678[_0x32a55a['id']]}:_0x32a55a);u(_0x40cc8a,_0x1bc76e,Kt);}function Kt(_0x1293d5){const _0x2e1fa3=_0x182da6;if(_0x1293d5[_0x2e1fa3(0x1f2)]===0x0){process[_0x2e1fa3(0x2ed)]['write']('No\x20models\x20available\x20for\x20this\x20product/tenant.\x0a');return;}process[_0x2e1fa3(0x1b9)][_0x2e1fa3(0x25a)](_0x2e1fa3(0x2af)+_0x1293d5[_0x2e1fa3(0x1f2)]+_0x2e1fa3(0x13a));for(let _0x55d2d8 of _0x1293d5){let _0x4be10d=_0x55d2d8[_0x2e1fa3(0x14b)]&&_0x55d2d8[_0x2e1fa3(0x14b)]!==_0x55d2d8['id']?'\x20('+_0x55d2d8[_0x2e1fa3(0x14b)]+')':'';process[_0x2e1fa3(0x1b9)]['write']('\x20\x20'+_0x55d2d8['id']+_0x4be10d+'\x0a'),_0x55d2d8[_0x2e1fa3(0x223)]&&process[_0x2e1fa3(0x1b9)][_0x2e1fa3(0x25a)](_0x2e1fa3(0x126)+_0x55d2d8[_0x2e1fa3(0x223)]+'\x0a'),_0x55d2d8['locked']&&process[_0x2e1fa3(0x1b9)][_0x2e1fa3(0x25a)](_0x2e1fa3(0x2f1)+(_0x55d2d8['lockReason']?'\x20('+_0x55d2d8[_0x2e1fa3(0x220)]+')':'')+'\x0a'),_0x55d2d8[_0x2e1fa3(0x311)]&&process[_0x2e1fa3(0x1b9)]['write'](_0x2e1fa3(0x240)+_0x55d2d8[_0x2e1fa3(0x311)]+'\x0a');}process[_0x2e1fa3(0x1b9)][_0x2e1fa3(0x25a)](_0x2e1fa3(0x251));}var ae=[_0x182da6(0x22e),_0x182da6(0x239),'rename',_0x182da6(0x1c6),_0x182da6(0x1ca),'fork'];async function Qt(_0x4e8f19){const _0x5c0657=_0x182da6;let [_0x59aa32='',_0x2c20f8='',..._0x2cc060]=_0x4e8f19['operands'];if(_0x59aa32&&!ae[_0x5c0657(0x146)](_0x59aa32)&&(console[_0x5c0657(0x144)](_0x5c0657(0x2a5)+_0x59aa32+_0x5c0657(0x13d)+ae['join'](_0x5c0657(0x1d3))+'.'),process[_0x5c0657(0x20b)](0x2)),_0x4e8f19[_0x5c0657(0x235)]!==void 0x0&&_0x59aa32!=='cancel'&&(console['error'](_0x5c0657(0x224)),process[_0x5c0657(0x20b)](0x2)),_0x59aa32&&_0x59aa32!=='list'){await qt(_0x4e8f19,_0x59aa32,_0x2c20f8,_0x2cc060[_0x5c0657(0x210)]('\x20')[_0x5c0657(0x21f)]());return;}_0x4e8f19[_0x5c0657(0x1da)][_0x5c0657(0x1f2)]>0x1&&(console['error'](_0x5c0657(0x15a)),process[_0x5c0657(0x20b)](0x2));let {client:_0x4fc17a}=await v(_0x4e8f19),_0x2fc41c=await _0x56e7fe(_0x4fc17a,{'page':_0x4e8f19[_0x5c0657(0x2c2)],'pageSize':_0x4e8f19[_0x5c0657(0x24e)],'includeSubAgents':_0x4e8f19[_0x5c0657(0x262)]});u(_0x4e8f19,_0x2fc41c,Xt);}function _0x2a23(){const _0x4288cc=['contextSummary','baseUrl','transcribe','--url','delegation','aborted','noMemory','split','[saved\x20login]\x20Backend\x20URL:\x20','score','version','4413369pMdKEk','The\x20saved\x20CLI\x20login\x20could\x20not\x20be\x20refreshed.\x20Run\x20`delegate-cli\x20login`\x20again.','\x20-\x20','min','a\x20turn\x20id','5787PWKwSW','Model\x20','accessToken','lastType','off','There\x20is\x20no\x20terminal\x20input\x20to\x20answer\x20from.','Session\x20\x20\x20\x20\x20\x20\x20','subcommand','estimated_cost_usd','session_consumed_pu','2bNQGeY','cancelled','auth.json','\x20\x20TASK\x0a','\x20(Enter\x20to\x20skip):\x20','probability','--to\x20and\x20--summary\x20apply\x20to\x20`delegate-cli\x20delegations\x20create`\x20only.','string','Number','usage','Enter\x20one\x20number\x20from\x201\x20to\x20','refused','stop','stdout','tenant','slice','Bearer\x20','org-users','file','Work\x20on\x20it\x20with:\x20delegate-cli\x20--session\x20','\x20needs\x20a\x20JSON\x20request:\x20delegate-cli\x20','Base\x20URL:\x20\x20\x20\x20\x20','startsWith',':\x20cannot\x20read\x20the\x20request\x20(','bundledSkillsPath','a\x20number','delete','label','462078xNHifS','a\x20briefing\x20text','cancel','high','SIGINT','from\x20','isTTY','now','accept','interopPath','4xwVTDI','\x20|\x20','tenantId','xhigh','No\x20CLI\x20login\x20found\x20—\x20nothing\x20to\x20remove.','url',',\x20or\x20holds\x20no\x20message\x20','More:\x20delegate-cli\x20sessions\x20--page\x20','operands','/exit','confidence','--json-schema','items','parentSessionId','attachments','--attach\x20applies\x20to\x20prompts\x20only.','delegations\x20dismiss\x20<delegation-id>',')\x20—\x20saved\x20to\x20','object','\x20\x20(input\x20#','keys','isDesktopFallback','UIPATH_BASE_URL\x20is\x20unusable.\x20','Date\x20\x20\x20\x20\x20\x20\x20\x20Token\x20units\x20\x20Prompt\x20tokens\x20\x20Completion\x20tokens','--json-schema\x20applies\x20to\x20prompts\x20and\x20to\x20`delegate-cli\x20complete`\x20only.','keepAlive','projectId','resume','thinking','floor','\x20requires\x20','\x22.\x0a','length','workingDirectory','assignedUser','production','deepLink','--skip-env-check','type','restore','Task\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Cartographer:\x20','\x20in\x20steps\x20of\x20','verbose','a\x20format\x20(','delegations','--task-automation\x20applies\x20to\x20prompts\x20only.','delegations\x20delete\x20<delegation-id>','input','\x20completion','addEventListener','dismissed','days','8942504jZfHeS','total_sessions','stringify','No\x20answers\x20awaiting\x20acceptance.\x0a','exit','Forked\x20','Accepted','log','unknown\x20slug','join','login','Structured\x20output\x20failed:\x20','host','\x20or\x20your\x20own\x20answer','You>\x20','rename','cartographer','toolName','noConnections','results','create',':\x20bucket\x20number\x20(Enter\x20to\x20leave\x20out):\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','delegations\x20claim\x20<delegation-id|delegate://delegation/…>','trim','lockReason','entries','--no-computer-use','description','--turn\x20applies\x20to\x20`delegate-cli\x20sessions\x20cancel`\x20only.','180PRDBZf','\x27\x20is\x20empty.','intro','the\x20request','\x20\x22<answer>\x22\x0a',';\x20the\x20saved\x20login\x20still\x20uses\x20','rerank','Switch\x20with:\x20delegate-cli\x20tenant\x20<name>\x0a','ID\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','list','--project','Use:\x20delegate-cli\x20delegations\x20',':\x20cannot\x20read\x20the\x20JSON\x20schema\x20(','bucket','dismiss','--session\x20applies\x20to\x20the\x20`delegate-cli\x20usage`\x20summary\x20only.','turnId','fields','--skills-path','userinput','show','\x27\x20cannot\x20be\x20read:\x20','1395335ccshGi','complete\x20needs\x20a\x20prompt:\x20delegate-cli\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22,\x20or\x20-\x20to\x20read\x20stdin.','turn_start','🔧\x20','.\x20Use\x20','\x20\x20\x20\x20BYO\x20warning:\x20','--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`delegate-cli\x20sessions`\x20only.','pending','No\x20CLI\x20login\x20found.\x20Note:\x20the\x20CLI\x20is\x20currently\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20','total_cost_usd','sessions','\x20(resume\x20with\x20--session\x20','date','status','a\x20directory\x20path','answers','Delegation\x20\x20\x20\x20','findIndex','pct_used','limit','Turn:\x20','toFixed','\x0aUse\x20with:\x20delegate-cli\x20--model\x20<id>\x20\x22<prompt>\x22\x0a','--interop','\x20not\x20found,\x20has\x20no\x20messages','Continue\x20it\x20with:\x20delegate-cli\x20--session\x20','Usage:\x20delegate-cli\x20','from\x201\x20to\x20','45435302ODQoGm','\x20(cancel\x20with:\x20delegate-cli\x20sessions\x20cancel\x20','session_start','write','Answered','--headless','isArray','daily','forEach','\x20\x20TITLE\x0a','outputFormat','includeSubAgents','1\x20or\x20more','every','sourceTitle','\x20\x20(sub-agent\x20of\x20','Enter\x20a\x20number\x20','structured','verify','delegations\x20list\x20<backend-project-id>','\x20(type\x20your\x20own)','alreadyAccepted','):\x20','orgLogicalName','No\x20turn\x20','Your\x20answer\x20(Enter\x20to\x20skip):\x20','\x20<file.json>,\x20or\x20-\x20to\x20read\x20stdin.','--backend','toISOString','\x20(Delegate\x20desktop\x20app\x20fallback)','Pass\x20either\x20--env\x20(a\x20named\x20cloud)\x20or\x20--url\x20(any\x20other\x20deployment),\x20not\x20both.','\x20must\x20be\x20a\x20JSON\x20object.','--verbose','\x20token\x20units','\x20(in\x20','Input\x20closed\x20before\x20the\x20question\x20was\x20answered.','\x20<title>','result','Unknown\x20delegations\x20action:\x20','--runner-url','delegations\x20cancel\x20<delegation-id>','onEvent','From\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','test','data','exitCode','Invalid\x20--effort:\x20','default','an\x20email\x20address\x20or\x20name','skipEnvCheck','finish','\x20PU\x20beyond\x20quota','Last\x20','done','all','skip','a\x20file\x20path','133WNukJz','hide','No\x20one\x20matches\x20\x22','choice','origin','concat','env','push','structuredError','workerId','Removed\x20','prompt','Deployment:\x20\x20\x20','deleted','Already\x20answered','medium','No\x20sessions\x20on\x20page\x20','Source:\x20\x20\x20\x20\x20\x20\x20','\x20in\x20progress\x20on\x20session\x20','--worker-id',',\x20whose\x20tenant\x20is\x20chosen\x20in\x20the\x20app.\x20Run\x20`delegate-cli\x20login\x20--env\x20<env>`\x20for\x20a\x20CLI\x20login\x20of\x20your\x20own.','Unknown\x20sessions\x20action:\x20','sourceUserEmail','.\x20Use\x20alpha\x20|\x20staging\x20|\x20production\x20|\x20localhost.','toUpperCase','catch',',\x20got\x20','\x20PU\x20used','staging','parse','check','\x0aAvailable\x20models\x20(','Interop\x20stopped\x20(if\x20it\x20was\x20running).','No\x20CLI\x20login\x20found.\x20Run\x20`delegate-cli\x20login\x20--env\x20<alpha|staging|production>`\x20first.','title','\x20\x20from\x20','isSafeInteger','active_days','Token:\x20\x20\x20\x20\x20\x20\x20\x20expires\x20','help','content','--authority','cleanup','\x20\x22<prompt>\x22\x0aAnswer\x20with:\x20delegate-cli\x20delegations\x20complete\x20','Tenant:\x20\x20\x20\x20\x20\x20\x20',').\x0a','verdict','Licensing:\x20\x20\x20\x20','stream-json','\x20delegation\x20','page','unknown','shift','text','tool_call','\x20(current)','Session:\x20','--env\x20localhost\x20has\x20no\x20OAuth\x20flow;\x20pick\x20alpha,\x20staging,\x20or\x20production.','--preload-skill','buckets','signal','noComputerUse','period_days','quiet','Your\x20answer,\x20as\x20text\x20(the\x20CLI\x20attaches\x20no\x20files;\x20Enter\x20to\x20skip):\x20','Organization:\x20','Session\x20','logout','padEnd','initialize','detail','expiresAt','\x20\x22<prompt>\x22\x0a','existsSync','package.json','toString','assignedUserEmail','No\x20delegations.\x0a','No\x20usage\x20in\x20the\x20last\x20','delegationId','--attach:\x20no\x20such\x20file\x20or\x20folder:\x20','ASSIGNEE','Session:\x20\x20\x20\x20\x20\x20','optional','total_completion_tokens','rejection','kind','total_token_units','options','choice\x20','\x20(optional)','organizationId','\x20into\x20','stderr','complete','daily_usage','stack','\x20\x20\x20\x20Not\x20available\x20on\x20this\x20plan','--skip-env-check\x20applies\x20to\x20`delegate-cli\x20login`\x20only.','STATUS','rmSync','total_quota_pu','--cleanup','preloadSkills','sendMessage','sessionId','email','isInteger','bind','filter','taskAutomation','--task-automation','localhost','response','token_units','\x20—\x20sign\x20out\x20in\x20the\x20Delegate\x20app\x20to\x20clear\x20that.','runnerUrl','Tenant:\x20','environment\x20variables\x20(AUTH_TOKEN/TENANT_ID/ORG_ID)','Enter\x20sends\x20a\x20message.\x20/exit\x20or\x20EOF\x20exits;\x20Ctrl+C\x20stops\x20and\x20exits.\x0a','headless','No\x20structured\x20output:\x20the\x20turn\x20failed\x20(','noSecurity','\x20(no\x20cap\x20enforced)','tenantName','tokenExpiresAt','cwd','map','questions','byoWarning','a\x20JSON\x20schema\x20file','code','--include-subagents','resolve','\x0aStopping…\x20(Ctrl+C\x20again\x20to\x20force\x20exit)\x0a','--days','\x20of\x20a\x20$','line','Spending:\x20\x20\x20\x20\x20$','\x20\x20\x20\x20','Cancel\x20requested\x20for\x20turn\x20','Usage:\x20delegate-cli\x20sessions\x20fork\x20<id>\x20[<message-id>]','readFileSync','model','add','AUTH_TOKEN_FILE\x20\x27','.\x20Share:\x20','activity','delegateTo','task','\x20prompt,\x20','delegations\x20complete\x20<delegation-id>\x20\x22<answer>\x22|-','--tenant\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Switch\x20tenants\x20with:\x20delegate-cli\x20tenant\x20<name>','\x20is\x20required.\x0a','Enter\x20numbers\x20from\x201\x20to\x20','removeEventListener','\x20min)',']\x20(Enter\x20for\x20','\x20this\x20month','):\x0a\x0a','Could\x20not\x20check\x20BYO\x20model\x20warnings:\x20','close','.\x20Use:\x20','\x20active\x20days','isFinite','multiSelect','.aria','Auth\x20comes\x20from\x20AUTH_TOKEN/TENANT_ID/ORG_ID\x20—\x20set\x20TENANT_ID\x20and\x20TENANT_SLUG\x20to\x20change\x20the\x20tenant.','\x20is\x20not\x20valid\x20JSON\x20(','error','the\x20JSON\x20schema','includes','setPrompt','stdin','end','numeric','name','prompt_tokens','displayName','limit_enabled','round','then','Delegated\x20','--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`delegate-cli\x20sessions\x20[list]`\x20only.','from','backendUrl','utf-8','message','%\x20of\x20','pendingResults','jsonSchemaPath','Usage:\x20delegate-cli\x20sessions\x20[list]\x20[--page\x20N]\x20[--limit\x20N]\x20[--include-subagents]','Invalid\x20--env:\x20','UiPath\x20Cloud','\x20--turn\x20','\x20tokens\x0a','\x20(confidence\x20','--to','evaluate','\x20PU','Title\x20\x20\x20\x20\x20\x20\x20\x20\x20','probability\x20','[env=','No\x20CLI\x20login\x20to\x20switch:\x20the\x20CLI\x20is\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20','effort','delegations\x20accept\x20<delegation-id>','extra_pool_consumed_pu','Deleted\x20session\x20','1100161GeCFbN','isError','delegations\x20pending\x20<session-id>','models','Missing\x20prompt.\x20Pass\x20it\x20as\x20an\x20argument,\x20pipe\x20it\x20via\x20stdin,\x20or\x20run\x20`delegate-cli\x20--help`.','\x20(estimated\x20$','erase','getSessionId','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.','total_tokens','a\x20deployment\x20URL,\x20e.g.\x20https://automationsuite.contoso.com','model_id','alpha','Cost:\x20\x20\x20$','monthly_limit_usd','\x20applies\x20to\x20prompts\x20and\x20to\x20these\x20commands\x20only:\x20','whoami','\x20cap','header','padStart','Already\x20accepted','print','Renamed\x20','--no-connections','transcribe:\x20cannot\x20read\x20','\x20of\x20session\x20','--no-security','\x0aAccept\x20one\x20with:\x20delegate-cli\x20delegations\x20accept\x20<id>\x0a','--limit','unit','--summary','Tokens:\x20','The\x20turn\x20was\x20cancelled.','question','max','\x20<id>','replace','alreadyCompleted','an\x20effort\x20tier'];_0x2a23=function(){return _0x4288cc;};return _0x2a23();}async function qt(_0x3b3855,_0x36e0d9,_0x69413f,_0x198d06){const _0x24c8f2=_0x182da6;if((_0x3b3855[_0x24c8f2(0x2c2)]!==void 0x0||_0x3b3855[_0x24c8f2(0x24e)]!==void 0x0||_0x3b3855[_0x24c8f2(0x262)])&&(console[_0x24c8f2(0x144)](_0x24c8f2(0x152)),process[_0x24c8f2(0x20b)](0x2)),_0x36e0d9==='cancel'){await Yt(_0x3b3855,_0x69413f,_0x198d06);return;}if(_0x36e0d9==='fork'){await Vt(_0x3b3855,_0x69413f,_0x198d06);return;}(!_0x69413f||_0x36e0d9===_0x24c8f2(0x216)!=!!_0x198d06)&&(console[_0x24c8f2(0x144)]('Usage:\x20delegate-cli\x20sessions\x20'+_0x36e0d9+_0x24c8f2(0x18e)+(_0x36e0d9===_0x24c8f2(0x216)?_0x24c8f2(0x27b):'')),process[_0x24c8f2(0x20b)](0x2));let {client:_0x1c4b78}=await v(_0x3b3855);try{if(_0x36e0d9===_0x24c8f2(0x239)){let _0x571057=await _0x21b992(_0x1c4b78,_0x69413f);_0x571057||le(_0x69413f),u(_0x3b3855,_0x571057,zt);}else{if(_0x36e0d9==='rename'){let _0x233ba8=await _0x23d611(_0x1c4b78,_0x69413f,_0x198d06);u(_0x3b3855,_0x233ba8,_0x1b4485=>{const _0x14bd08=_0x24c8f2;process[_0x14bd08(0x1b9)]['write'](_0x14bd08(0x181)+_0x1b4485['id']+':\x20'+_0x1b4485[_0x14bd08(0x2b2)]+'\x0a');});}else await _0x2e4be8(_0x1c4b78,_0x69413f),await _0x228cf7(_0x69413f,_0x3b3855[_0x24c8f2(0x1f3)]),u(_0x3b3855,{'id':_0x69413f,'deleted':!0x0},_0x2413bd=>{const _0xfd1ee9=_0x24c8f2;process[_0xfd1ee9(0x1b9)][_0xfd1ee9(0x25a)](_0xfd1ee9(0x16a)+_0x2413bd['id']+'.\x0a');});}}catch(_0x419a0e){if(!_0x31662e(_0x419a0e,0x194))throw _0x419a0e;le(_0x69413f);}}function le(_0x19b77d){const _0xbd30d=_0x182da6;console['error'](_0xbd30d(0x2d2)+_0x19b77d+'\x20not\x20found.'),process[_0xbd30d(0x20b)](0x1);}function zt(_0x423f92){const _0x40f763=_0x182da6;process['stdout'][_0x40f763(0x25a)](_0x40f763(0x22d)+_0x423f92['id']+'\x0a'),process[_0x40f763(0x1b9)]['write'](_0x40f763(0x163)+_0x423f92[_0x40f763(0x2b2)]+'\x0a'),process[_0x40f763(0x1b9)][_0x40f763(0x25a)]('Owner\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x423f92['userId']+'\x0a'),process[_0x40f763(0x1b9)][_0x40f763(0x25a)]('Organization\x20\x20'+_0x423f92['organizationId']+'\x0a'),_0x423f92['delegationId']&&process['stdout'][_0x40f763(0x25a)](_0x40f763(0x24b)+_0x423f92[_0x40f763(0x2df)]+'\x0a');}async function Yt(_0x6859db,_0x3af2f5,_0x21ba38){const _0x1afc7a=_0x182da6;(!_0x3af2f5||_0x21ba38||!_0x6859db[_0x1afc7a(0x235)])&&(console[_0x1afc7a(0x144)]('Usage:\x20delegate-cli\x20sessions\x20cancel\x20<session-id>\x20--turn\x20<turn-id>'),process['exit'](0x2));let {client:_0xbd0773}=await v(_0x6859db),_0x374dcd=await _0x1bb0d3(_0xbd0773,_0x3af2f5,_0x6859db[_0x1afc7a(0x235)]);u(_0x6859db,{'sessionId':_0x3af2f5,'turnId':_0x6859db[_0x1afc7a(0x235)],'cancelled':_0x374dcd},_0x3d362c=>{const _0x4b162c=_0x1afc7a;_0x3d362c[_0x4b162c(0x1ad)]?process[_0x4b162c(0x1b9)][_0x4b162c(0x25a)](_0x4b162c(0x127)+_0x3d362c['turnId']+_0x4b162c(0x184)+_0x3d362c[_0x4b162c(0x2f9)]+'.\x0a'):process[_0x4b162c(0x2ed)][_0x4b162c(0x25a)](_0x4b162c(0x26f)+_0x3d362c[_0x4b162c(0x235)]+_0x4b162c(0x2a2)+_0x3d362c[_0x4b162c(0x2f9)]+'.\x0a');}),_0x374dcd||(process[_0x1afc7a(0x284)]=0x1);}async function Vt(_0x57204c,_0x2bd567,_0x4bea75){const _0x2b9c1b=_0x182da6;(!_0x2bd567||/\s/[_0x2b9c1b(0x282)](_0x4bea75))&&(console[_0x2b9c1b(0x144)](_0x2b9c1b(0x128)),process['exit'](0x2));let {client:_0x2f42e3}=await v(_0x57204c),_0xb9065e;try{_0xb9065e=await _0x99f26e(_0x2f42e3,_0x2bd567,{'atMessageId':_0x4bea75||void 0x0});}catch(_0x37d559){if(!_0x31662e(_0x37d559,0x194))throw _0x37d559;console[_0x2b9c1b(0x144)](_0x2b9c1b(0x2d2)+_0x2bd567+_0x2b9c1b(0x253)+(_0x4bea75?_0x2b9c1b(0x1d8)+_0x4bea75:'')+'.'),process[_0x2b9c1b(0x20b)](0x1);}u(_0x57204c,_0xb9065e,_0x262c69=>{const _0x3a61d4=_0x2b9c1b;process[_0x3a61d4(0x1b9)][_0x3a61d4(0x25a)](_0x3a61d4(0x20c)+_0x2bd567+_0x3a61d4(0x2ec)+_0x262c69['id']+'.\x0a'),process[_0x3a61d4(0x2ed)][_0x3a61d4(0x25a)](_0x3a61d4(0x254)+_0x262c69['id']+_0x3a61d4(0x2d8));});}function Xt({sessions:_0x55d390,page:_0x250991,isLastPage:_0x2f22b7}){const _0x29c5ad=_0x182da6;if(_0x55d390['length']===0x0)process[_0x29c5ad(0x2ed)][_0x29c5ad(0x25a)](_0x29c5ad(0x2a0)+_0x250991+'.\x0a');else{process[_0x29c5ad(0x1b9)][_0x29c5ad(0x25a)]('ID'['padEnd'](0x24)+'\x20\x20'+'UPDATED'['padEnd'](0x13)+_0x29c5ad(0x260));for(let _0xd45aea of _0x55d390){let _0x4f3d26=_0xd45aea['updatedAt'][_0x29c5ad(0x18f)]('T','\x20')[_0x29c5ad(0x1bb)](0x0,0x13),_0x128e12=_0xd45aea['parentSessionId']?_0x29c5ad(0x266)+_0xd45aea[_0x29c5ad(0x1df)]+')':'';process['stdout']['write'](_0xd45aea['id'][_0x29c5ad(0x2d4)](0x24)+'\x20\x20'+_0x4f3d26['padEnd'](0x13)+'\x20\x20'+_0xd45aea['title']+_0x128e12+'\x0a');}}_0x2f22b7||process[_0x29c5ad(0x2ed)][_0x29c5ad(0x25a)](_0x29c5ad(0x1d9)+(_0x250991+0x1)+'\x0a');}async function Zt(_0x46f597){const _0x396da4=_0x182da6;let _0x29b98d=await q(),_0x3370b1=_0x417733(_0x46f597[_0x396da4(0x296)],_0x29b98d,_0x46f597['backendUrl']);z(_0x46f597[_0x396da4(0x296)],_0x46f597['backendUrl'],_0x3370b1);let _0x2b5b8c=await _0x5f0f83({'auth':_0x29b98d,'backendUrl':_0x3370b1,'interop':_0x46f597[_0x396da4(0x308)]?_0x396da4(0x28e):'spawn'});u(_0x46f597,_0x2b5b8c,({checks:_0x1fb902})=>{const _0x3f59eb=_0x396da4;for(let _0xfe66f7 of _0x1fb902)process[_0x3f59eb(0x1b9)][_0x3f59eb(0x25a)](en(_0xfe66f7)+'\x0a');}),_0x2b5b8c['ok']||process[_0x396da4(0x20b)](0x1);}function en(_0x257d35){const _0x404ace=_0x182da6;return{'ok':'✓','failed':'✗','skipped':'-'}[_0x257d35[_0x404ace(0x248)]]+'\x20'+_0x257d35[_0x404ace(0x14b)][_0x404ace(0x2d4)](0xa)+_0x257d35[_0x404ace(0x2d6)];}var tn=['','activity',_0x182da6(0x25e)];async function nn(_0x45e542){const _0x522500=_0x182da6;let _0x4f2b4b=_0x45e542['prompt'];tn['includes'](_0x4f2b4b)||(console[_0x522500(0x144)]('Unknown\x20usage\x20view:\x20'+_0x45e542[_0x522500(0x29b)]+'.\x20Use\x20`delegate-cli\x20usage`,\x20`usage\x20activity`\x20or\x20`usage\x20daily`.'),process[_0x522500(0x20b)](0x2)),_0x4f2b4b===''&&_0x45e542[_0x522500(0x206)]!==void 0x0&&(console[_0x522500(0x144)]('--days\x20applies\x20to\x20`delegate-cli\x20usage\x20activity|daily`;\x20the\x20summary\x20covers\x20the\x20current\x20month.'),process['exit'](0x2)),_0x4f2b4b!==''&&_0x45e542['sessionId']!==void 0x0&&(console[_0x522500(0x144)](_0x522500(0x234)),process['exit'](0x2));let {client:_0x2f57e6}=await v(_0x45e542);if(_0x4f2b4b===_0x522500(0x12e)){u(_0x45e542,await _0x549e77(_0x2f57e6,{'days':_0x45e542[_0x522500(0x206)]}),sn);return;}if(_0x4f2b4b===_0x522500(0x25e)){u(_0x45e542,await _0x9353f8(_0x2f57e6,{'days':_0x45e542[_0x522500(0x206)]}),rn);return;}let [_0x411a38,_0x59f2e2,_0x990bb3]=await Promise[_0x522500(0x28d)]([_0x14be4b(_0x2f57e6,{'sessionId':_0x45e542[_0x522500(0x2f9)]}),_0x3a4b5e(_0x2f57e6),_0x155eed(_0x2f57e6)]);u(_0x45e542,{'licensing':_0x411a38,'monthlySpending':_0x59f2e2,'cartographerAllowance':_0x990bb3},on);}function on(_0x1a9b69){const _0x5b80ac=_0x182da6;let {licensing:_0x329732,monthlySpending:_0x581376,cartographerAllowance:_0x37fab4}=_0x1a9b69,_0x60168e=[_0x329732[_0x5b80ac(0x14e)]?_0x5b80ac(0x2bf)+_0x329732[_0x5b80ac(0x24d)][_0x5b80ac(0x250)](0x1)+_0x5b80ac(0x157)+(_0x329732[_0x5b80ac(0x2f5)]??0x0)+_0x5b80ac(0x2ab)+(_0x329732[_0x5b80ac(0x169)]>0x0?',\x20'+_0x329732[_0x5b80ac(0x169)]+_0x5b80ac(0x28a):'')+'\x20(resets\x20'+_0x329732['period_end']+')':'Licensing:\x20\x20\x20\x20no\x20licensing\x20quota\x20applies',_0x5b80ac(0x125)+_0x581376['monthly_spend_usd'][_0x5b80ac(0x250)](0x2)+_0x5b80ac(0x139)+(_0x581376[_0x5b80ac(0x14e)]&&_0x581376[_0x5b80ac(0x179)]!==null?_0x5b80ac(0x123)+_0x581376[_0x5b80ac(0x179)][_0x5b80ac(0x250)](0x2)+_0x5b80ac(0x17c):_0x5b80ac(0x30b)),_0x5b80ac(0x1fb)+_0x37fab4['mode']+'\x20('+_0x37fab4[_0x5b80ac(0x176)]+')'];_0x329732['session_consumed_pu']!==null&&_0x329732[_0x5b80ac(0x1ab)]!==void 0x0&&_0x60168e[_0x5b80ac(0x297)](_0x5b80ac(0x2e2)+_0x329732[_0x5b80ac(0x1ab)]+_0x5b80ac(0x162)),process[_0x5b80ac(0x1b9)][_0x5b80ac(0x25a)](_0x60168e[_0x5b80ac(0x210)]('\x0a')+'\x0a');}function sn(_0x5f30ed){const _0x162ad5=_0x182da6;let _0x58f451=[_0x162ad5(0x28b)+_0x5f30ed[_0x162ad5(0x2ce)]+'\x20days:\x20'+_0x5f30ed[_0x162ad5(0x208)]+'\x20sessions\x20on\x20'+_0x5f30ed[_0x162ad5(0x2b5)]+_0x162ad5(0x13e),_0x162ad5(0x178)+_0x5f30ed[_0x162ad5(0x244)]['toFixed'](0x2)+_0x162ad5(0x170)+_0x5f30ed[_0x162ad5(0x1aa)][_0x162ad5(0x250)](0x2)+'\x20from\x20'+_0x5f30ed[_0x162ad5(0x2e7)]+'\x20token\x20units)',_0x162ad5(0x18a)+_0x5f30ed['total_prompt_tokens']+_0x162ad5(0x131)+_0x5f30ed[_0x162ad5(0x2e4)]+_0x162ad5(0x203)];for(let [_0xcec7ee,_0x3f5578]of Object['entries'](_0x5f30ed['models_breakdown']))_0x58f451[_0x162ad5(0x297)]('\x20\x20'+_0xcec7ee+':\x20'+_0x3f5578+_0x162ad5(0x278));process['stdout'][_0x162ad5(0x25a)](_0x58f451[_0x162ad5(0x210)]('\x0a')+'\x0a');}function rn(_0x21d6a6){const _0x47978c=_0x182da6;if(_0x21d6a6[_0x47978c(0x2ef)]['length']===0x0){process['stdout'][_0x47978c(0x25a)](_0x47978c(0x2de)+_0x21d6a6[_0x47978c(0x2ce)]+'\x20days.\x0a');return;}let _0x248208=[_0x47978c(0x1e9)];for(let _0x10bacc of _0x21d6a6['daily_usage'])_0x248208[_0x47978c(0x297)](_0x10bacc[_0x47978c(0x247)]+'\x20\x20'+String(_0x10bacc[_0x47978c(0x302)])[_0x47978c(0x17e)](0xb)+'\x20\x20'+String(_0x10bacc[_0x47978c(0x14c)])[_0x47978c(0x17e)](0xd)+'\x20\x20'+String(_0x10bacc['completion_tokens'])[_0x47978c(0x17e)](0x11));process[_0x47978c(0x1b9)][_0x47978c(0x25a)](_0x248208[_0x47978c(0x210)]('\x0a')+'\x0a');}async function an(_0x36d2bb,_0x47f276){const _0x5c8b3e=_0x182da6;let _0xa6332b=await ln(_0x36d2bb[_0x5c8b3e(0x29b)],_0x47f276);_0x36d2bb[_0x5c8b3e(0x12a)]&&(_0xa6332b[_0x5c8b3e(0x12a)]=_0x36d2bb[_0x5c8b3e(0x12a)]);let {client:_0x169b1c}=await v(_0x36d2bb);try{_0x47f276==='evaluate'?u(_0x36d2bb,await _0x2a4289(_0x169b1c,_0xa6332b,void 0x0),dn):_0x47f276===_0x5c8b3e(0x22b)?u(_0x36d2bb,await _0x655200(_0x169b1c,_0xa6332b,void 0x0),un):u(_0x36d2bb,await _0x1ec3f5(_0x169b1c,_0xa6332b,void 0x0),pn);}catch(_0x3feb6e){if(!_0x1b3605(_0x3feb6e))throw _0x3feb6e;console[_0x5c8b3e(0x144)](_0x3feb6e[_0x5c8b3e(0x156)]),process[_0x5c8b3e(0x20b)](0x1);}}async function ln(_0x20652f,_0x586839){const _0x1c1ac2=_0x182da6;let _0x15ce52;try{_0x15ce52=_0x20652f&&_0x20652f!=='-'?_0x32f703[_0x1c1ac2(0x129)](_0x584aee[_0x1c1ac2(0x120)](_0x20652f),_0x1c1ac2(0x155)):await j(_0x20652f,process['stdin']);}catch(_0x59282e){console['error'](_0x586839+_0x1c1ac2(0x1c3)+_0x59282e[_0x1c1ac2(0x156)]+').'),process[_0x1c1ac2(0x20b)](0x2);}return _0x15ce52||(console['error'](_0x586839+_0x1c1ac2(0x1c0)+_0x586839+_0x1c1ac2(0x271)),process['exit'](0x2)),Ae(_0x15ce52,_0x586839,_0x1c1ac2(0x228));}function Ae(_0xb5aea6,_0x45d45d,_0x21741c){const _0x29d3d0=_0x182da6;let _0x4dd1d7;try{_0x4dd1d7=JSON[_0x29d3d0(0x2ad)](_0xb5aea6);}catch(_0x144114){console['error'](_0x45d45d+':\x20'+_0x21741c+_0x29d3d0(0x143)+_0x144114[_0x29d3d0(0x156)]+').'),process[_0x29d3d0(0x20b)](0x2);}return(typeof _0x4dd1d7!=_0x29d3d0(0x1e4)||_0x4dd1d7===null||Array['isArray'](_0x4dd1d7))&&(console[_0x29d3d0(0x144)](_0x45d45d+':\x20'+_0x21741c+_0x29d3d0(0x276)),process[_0x29d3d0(0x20b)](0x2)),_0x4dd1d7;}function $e(_0x4bad4c,_0x449e8b){const _0x538eb1=_0x182da6;let _0x23f132;try{_0x23f132=_0x32f703[_0x538eb1(0x129)](_0x584aee[_0x538eb1(0x120)](_0x4bad4c),_0x538eb1(0x155));}catch(_0x4c4001){console[_0x538eb1(0x144)](_0x449e8b+_0x538eb1(0x231)+_0x4c4001[_0x538eb1(0x156)]+').'),process['exit'](0x2);}return Ae(_0x23f132,_0x449e8b,_0x538eb1(0x145));}async function cn(_0x4b188b){const _0x44955e=_0x182da6;_0x4b188b[_0x44955e(0x159)]===void 0x0&&(console['error']('complete\x20needs\x20--json-schema\x20<file>:\x20delegate-cli\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22.'),process[_0x44955e(0x20b)](0x2));let _0x2c3adf=$e(_0x4b188b[_0x44955e(0x159)],_0x44955e(0x2ee)),_0x3a3a19=(await j(_0x4b188b['prompt'],process[_0x44955e(0x148)]))['trim']();_0x3a3a19||(console[_0x44955e(0x144)](_0x44955e(0x23c)),process[_0x44955e(0x20b)](0x2));let {client:_0x284cb6}=await v(_0x4b188b);try{let _0xc934e8=await _0x4e21ee(_0x284cb6,{'prompt':_0x3a3a19,'jsonSchema':_0x2c3adf,'model':_0x4b188b['model']||process.env.MODEL||_0x44f119,..._0x4b188b[_0x44955e(0x2f9)]!==void 0x0&&{'sessionId':_0x4b188b[_0x44955e(0x2f9)]}},void 0x0);u(_0x4b188b,_0xc934e8,_0x3a8f66=>{const _0x20a337=_0x44955e;process['stdout'][_0x20a337(0x25a)](JSON[_0x20a337(0x209)](_0x3a8f66[_0x20a337(0x268)],null,0x2)+'\x0a');});}catch(_0x99cac2){if(!_0x1d35ad(_0x99cac2))throw _0x99cac2;console['error'](_0x99cac2[_0x44955e(0x156)]),process[_0x44955e(0x20b)](0x1);}}function Y(_0x5a0ad3){const _0x5cca4e=_0x182da6;process[_0x5cca4e(0x1b9)][_0x5cca4e(0x25a)](_0x5cca4e(0x1a3)+_0x5a0ad3[_0x5cca4e(0x12a)]+'\x20('+_0x5a0ad3['model_version']+'),\x20'+_0x5a0ad3[_0x5cca4e(0x1b5)][_0x5cca4e(0x174)]+_0x5cca4e(0x15e));}function dn(_0x356449){const _0x279867=_0x182da6;Y(_0x356449);for(let _0x3a7812 of Object['keys'](_0x356449['answers'])){let _0x1dcfa7=_0x356449[_0x279867(0x24a)][_0x3a7812],_0x281285=_0x1dcfa7[_0x279867(0x1f8)]===_0x279867(0x1b1)?_0x279867(0x164)+_0x1dcfa7['probability'][_0x279867(0x250)](0x2):_0x1dcfa7[_0x279867(0x1f8)]==='choice'?_0x279867(0x2e9)+_0x1dcfa7[_0x279867(0x293)]+_0x279867(0x15f)+_0x1dcfa7[_0x279867(0x1dc)][_0x279867(0x250)](0x2)+')':'score\x20'+_0x1dcfa7[_0x279867(0x19b)][_0x279867(0x250)](0x2)+_0x279867(0x15f)+_0x1dcfa7[_0x279867(0x1dc)][_0x279867(0x250)](0x2)+')';process[_0x279867(0x1b9)][_0x279867(0x25a)]('\x20\x20'+_0x3a7812+':\x20'+_0x281285+'\x0a');}}function un(_0x1390f0){const _0x16984c=_0x182da6;Y(_0x1390f0),_0x1390f0[_0x16984c(0x21a)][_0x16984c(0x25f)]((_0x20d439,_0x4946ff)=>{const _0x52309f=_0x16984c;process[_0x52309f(0x1b9)][_0x52309f(0x25a)]('\x20\x20'+(_0x4946ff+0x1)+'.\x20'+_0x20d439['id']+'\x20\x20'+_0x20d439[_0x52309f(0x19b)][_0x52309f(0x250)](0x3)+_0x52309f(0x1e5)+_0x20d439['index']+')\x0a');});}function pn(_0x492c87){const _0x2fef2e=_0x182da6;Y(_0x492c87),process[_0x2fef2e(0x1b9)][_0x2fef2e(0x25a)]('Rubric\x20'+_0x492c87['rubric_version']+'\x0a');for(let _0x3764b9 of _0x492c87[_0x2fef2e(0x21a)])process[_0x2fef2e(0x1b9)]['write']('\x20\x20'+_0x3764b9['id']+':\x20'+_0x3764b9[_0x2fef2e(0x2be)]+_0x2fef2e(0x15f)+_0x3764b9[_0x2fef2e(0x1dc)][_0x2fef2e(0x250)](0x2)+')\x0a');}async function mn(_0x45196b){const _0x5e1326=_0x182da6;let _0x551e54=_0x45196b[_0x5e1326(0x29b)][_0x5e1326(0x21f)]();_0x551e54||(console[_0x5e1326(0x144)]('transcribe\x20needs\x20audio:\x20delegate-cli\x20transcribe\x20<file>,\x20or\x20-\x20to\x20read\x20stdin.'),process[_0x5e1326(0x20b)](0x2));let {client:_0x6b6ee5}=await v(_0x45196b);try{let _0x657ebc=_0x551e54==='-'?{'data':await fn(process[_0x5e1326(0x148)])}:_0x551e54;u(_0x45196b,await _0x31f39d(_0x6b6ee5,_0x657ebc,void 0x0),_0x5de340=>{const _0x1850fe=_0x5e1326;process['stdout']['write'](_0x5de340[_0x1850fe(0x2c5)]+'\x0a');});}catch(_0x53b9d9){if(_0x3173d3(_0x53b9d9)&&(console[_0x5e1326(0x144)](_0x53b9d9[_0x5e1326(0x156)]),process['exit'](_0x53b9d9[_0x5e1326(0x248)]===void 0x0?0x2:0x1)),typeof _0x53b9d9?.[_0x5e1326(0x11e)]!=_0x5e1326(0x1b3))throw _0x53b9d9;console[_0x5e1326(0x144)](_0x5e1326(0x183)+_0x551e54+'\x20('+_0x53b9d9[_0x5e1326(0x156)]+').'),process['exit'](0x2);}}async function fn(_0x40d52f){const _0xfa8192=_0x182da6;let _0x5b11da=[];for await(let _0x3e9158 of _0x40d52f)_0x5b11da[_0xfa8192(0x297)](Buffer[_0xfa8192(0x153)](_0x3e9158));return Buffer[_0xfa8192(0x295)](_0x5b11da);}var ce=[_0x182da6(0x22e),_0x182da6(0x242),_0x182da6(0x239),_0x182da6(0x21b),'claim','complete',_0x182da6(0x1d0),_0x182da6(0x233),'cancel',_0x182da6(0x1c6)],de={'list':_0x182da6(0x26a),'pending':_0x182da6(0x16d),'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':_0x182da6(0x21e),'complete':_0x182da6(0x132),'accept':_0x182da6(0x168),'dismiss':_0x182da6(0x1e2),'cancel':_0x182da6(0x27f),'delete':_0x182da6(0x201)};async function gn(_0xa7f193){const _0x325e1d=_0x182da6;let [_0x30fb05='',_0x537294='',..._0x1ef686]=_0xa7f193[_0x325e1d(0x1da)];ce['includes'](_0x30fb05)||(console['error']((_0x30fb05?_0x325e1d(0x27d)+_0x30fb05+'.\x20':'')+_0x325e1d(0x230)+ce[_0x325e1d(0x210)]('\x20|\x20')+'.'),process[_0x325e1d(0x20b)](0x2));let _0x4ee299=_0x30fb05;_0x4ee299!=='create'&&(_0xa7f193[_0x325e1d(0x12f)]!==void 0x0||_0xa7f193[_0x325e1d(0x192)]!==void 0x0||_0xa7f193[_0x325e1d(0x2f9)]!==void 0x0)&&(console[_0x325e1d(0x144)]('--to,\x20--summary\x20and\x20--session\x20apply\x20to\x20`delegate-cli\x20delegations\x20create`\x20only.'),process[_0x325e1d(0x20b)](0x2));let _0x1f80ce=(_0x4ee299===_0x325e1d(0x21b)?_0xa7f193[_0x325e1d(0x1da)][_0x325e1d(0x1bb)](0x1):_0x1ef686)[_0x325e1d(0x210)]('\x20')[_0x325e1d(0x21f)](),_0x2b6487=_0x4ee299==='create'||_0x4ee299==='complete';(_0x4ee299!==_0x325e1d(0x21b)&&!_0x537294||(_0x2b6487?!_0x1f80ce:_0x1f80ce)||_0x4ee299==='create'&&!_0xa7f193['sessionId'])&&(console['error']('Usage:\x20delegate-cli\x20'+de[_0x4ee299]),process[_0x325e1d(0x20b)](0x2));let _0xa7242d=_0x2b6487&&_0x1f80ce==='-'?(await j('-',process['stdin']))[_0x325e1d(0x21f)]():_0x1f80ce;_0x2b6487&&!_0xa7242d&&(console[_0x325e1d(0x144)](_0x325e1d(0x255)+de[_0x4ee299]+'\x20(stdin\x20was\x20empty)'),process[_0x325e1d(0x20b)](0x2));let {client:_0x2cd0f5}=await v(_0xa7f193);try{await hn(_0xa7f193,_0x2cd0f5,_0x4ee299,_0x537294,_0xa7242d);}catch(_0x2c3383){if(!_0x242c97(_0x2c3383))throw _0x2c3383;console[_0x325e1d(0x144)](_0x2c3383[_0x325e1d(0x156)]),process[_0x325e1d(0x20b)](0x1);}}async function hn(_0x4ef1ce,_0x243810,_0x5f3c44,_0x40e71d,_0x1c0f40){const _0x51999b=_0x182da6;switch(_0x5f3c44){case _0x51999b(0x22e):u(_0x4ef1ce,await _0x33d410(_0x243810,_0x40e71d),yn);return;case _0x51999b(0x242):u(_0x4ef1ce,await _0x61e248(_0x243810,_0x40e71d),_0x1f1f1b=>{const _0x33ca87=_0x51999b;_0x1f1f1b[_0x33ca87(0x196)]&&process['stdout'][_0x33ca87(0x25a)]('Claimed\x20from\x20delegation\x20'+_0x1f1f1b[_0x33ca87(0x196)]['id']+'\x20('+_0x1f1f1b[_0x33ca87(0x196)][_0x33ca87(0x248)]+_0x33ca87(0x2bd)),_0x1f1f1b[_0x33ca87(0x158)][_0x33ca87(0x1f2)]===0x0&&process[_0x33ca87(0x2ed)]['write'](_0x33ca87(0x20a));for(let _0x10c1be of _0x1f1f1b[_0x33ca87(0x158)])process[_0x33ca87(0x1b9)]['write']('\x0a'+_0x10c1be['id']+_0x33ca87(0x2b3)+(_0x10c1be['assignedUserEmail']??'a\x20colleague')+'\x20\x20'+(_0x10c1be[_0x33ca87(0x130)]??'')+'\x0a'+(_0x10c1be[_0x33ca87(0x27c)]?.[_0x33ca87(0x2b8)]??'')+'\x0a');_0x1f1f1b[_0x33ca87(0x158)][_0x33ca87(0x1f2)]>0x0&&process[_0x33ca87(0x2ed)][_0x33ca87(0x25a)](_0x33ca87(0x186));});return;case _0x51999b(0x239):u(_0x4ef1ce,await _0x592b40(_0x243810,_0x40e71d),ue);return;case _0x51999b(0x21b):{let _0x547df4=await _0xdb7e12(_0x243810,{'sessionId':_0x4ef1ce[_0x51999b(0x2f9)],'task':_0x1c0f40,..._0x4ef1ce[_0x51999b(0x192)]!==void 0x0&&{'contextSummary':_0x4ef1ce[_0x51999b(0x192)]},..._0x4ef1ce[_0x51999b(0x12f)]!==void 0x0&&{'recipient':_0x4ef1ce['delegateTo']}});u(_0x4ef1ce,_0x547df4,_0xf28f20=>{const _0x7f8285=_0x51999b;_0xf28f20['assignedUser']?process['stdout'][_0x7f8285(0x25a)](_0x7f8285(0x151)+_0xf28f20['delegationId']+'\x20to\x20'+_0xf28f20['assignedUser'][_0x7f8285(0x14d)]+'\x20<'+_0xf28f20[_0x7f8285(0x1f4)][_0x7f8285(0x2fa)]+'>.\x0a'):process[_0x7f8285(0x1b9)][_0x7f8285(0x25a)]('Created\x20delegation\x20'+_0xf28f20['delegationId']+_0x7f8285(0x12d)+_0xf28f20[_0x7f8285(0x1f6)]+'\x0a');});return;}case'claim':{let _0x14007d=await _0x15c331(_0x243810,_0x40e71d);u(_0x4ef1ce,_0x14007d,_0x430103=>{const _0x4b7fde=_0x51999b;ue(_0x430103),process[_0x4b7fde(0x1b9)][_0x4b7fde(0x25a)](_0x4b7fde(0x1a8)+_0x430103[_0x4b7fde(0x2f9)]+'\x0a'),process[_0x4b7fde(0x2ed)][_0x4b7fde(0x25a)](_0x4b7fde(0x1bf)+_0x430103[_0x4b7fde(0x2f9)]+_0x4b7fde(0x2bb)+_0x430103['delegationId']+_0x4b7fde(0x229));});return;}case _0x51999b(0x2ee):{let {alreadyCompleted:_0x3c89ff}=await _0x318959(_0x243810,_0x40e71d,{'content':_0x1c0f40});u(_0x4ef1ce,{'delegationId':_0x40e71d,'alreadyCompleted':_0x3c89ff},_0x5e87a4=>{const _0xeb0a0c=_0x51999b;process[_0xeb0a0c(0x1b9)][_0xeb0a0c(0x25a)]((_0x5e87a4[_0xeb0a0c(0x190)]?_0xeb0a0c(0x29e):_0xeb0a0c(0x25b))+_0xeb0a0c(0x2c1)+_0x5e87a4[_0xeb0a0c(0x2df)]+'.\x0a');});return;}case _0x51999b(0x1d0):{let _0x70767a=await _0x51d3e(_0x243810,_0x40e71d);u(_0x4ef1ce,{'delegationId':_0x40e71d,..._0x70767a},_0x3c6b16=>{const _0x46a8a3=_0x51999b;process[_0x46a8a3(0x1b9)][_0x46a8a3(0x25a)]((_0x3c6b16[_0x46a8a3(0x26c)]?_0x46a8a3(0x17f):_0x46a8a3(0x20d))+_0x46a8a3(0x2c1)+_0x3c6b16[_0x46a8a3(0x2df)]+'.\x0a');});return;}default:{let _0x5905fd={'dismiss':_0x3900a7,'cancel':_0x3129e1,'delete':_0x4b3c89}[_0x5f3c44];await _0x5905fd(_0x243810,_0x40e71d);let _0xb2d23e={'dismiss':_0x51999b(0x205),'cancel':'cancelled','delete':_0x51999b(0x29d)}[_0x5f3c44];u(_0x4ef1ce,{'delegationId':_0x40e71d,[_0xb2d23e]:!0x0},()=>{const _0x2949ca=_0x51999b;process[_0x2949ca(0x1b9)][_0x2949ca(0x25a)](''+_0xb2d23e[0x0][_0x2949ca(0x2a8)]()+_0xb2d23e[_0x2949ca(0x1bb)](0x1)+_0x2949ca(0x2c1)+_0x40e71d+'.\x0a');});}}}function yn(_0x4eef98){const _0x263b36=_0x182da6;if(_0x4eef98['length']===0x0){process[_0x263b36(0x2ed)][_0x263b36(0x25a)](_0x263b36(0x2dd));return;}process[_0x263b36(0x1b9)]['write']('ID'[_0x263b36(0x2d4)](0x24)+'\x20\x20'+_0x263b36(0x2f3)[_0x263b36(0x2d4)](0x9)+'\x20\x20'+_0x263b36(0x2e1)[_0x263b36(0x2d4)](0x18)+_0x263b36(0x1af));for(let _0x3006ce of _0x4eef98)process[_0x263b36(0x1b9)][_0x263b36(0x25a)](_0x3006ce['id']['padEnd'](0x24)+'\x20\x20'+_0x3006ce[_0x263b36(0x248)]['padEnd'](0x9)+'\x20\x20'+(_0x3006ce[_0x263b36(0x2dc)]??'-')[_0x263b36(0x2d4)](0x18)+'\x20\x20'+(_0x3006ce[_0x263b36(0x130)]??'')+'\x0a');}function ue(_0x3d89){const _0x45bc79=_0x182da6;process[_0x45bc79(0x1b9)][_0x45bc79(0x25a)](_0x45bc79(0x281)+(_0x3d89[_0x45bc79(0x2a6)]??'-')+'\x0a'),_0x3d89[_0x45bc79(0x265)]&&process['stdout'][_0x45bc79(0x25a)](_0x45bc79(0x1a8)+_0x3d89[_0x45bc79(0x265)]+'\x0a'),process['stdout']['write'](_0x45bc79(0x1fa)+(_0x3d89['task']??'-')+'\x0a'),_0x3d89[_0x45bc79(0x192)]&&process[_0x45bc79(0x1b9)][_0x45bc79(0x25a)]('\x0a'+_0x3d89[_0x45bc79(0x192)]+'\x0a\x0a');}async function wn(_0x31ff3c){const _0x152a57=_0x182da6;_0x31ff3c[_0x152a57(0x29b)][_0x152a57(0x21f)]()||(console[_0x152a57(0x144)]('Usage:\x20delegate-cli\x20org-users\x20<name\x20or\x20email\x20prefix>'),process['exit'](0x2));let {client:_0x3986d5}=await v(_0x31ff3c),_0x374fdb;try{_0x374fdb=await _0x3c8586(_0x3986d5,_0x31ff3c['prompt']);}catch(_0x53173d){if(!_0x242c97(_0x53173d))throw _0x53173d;console[_0x152a57(0x144)](_0x53173d[_0x152a57(0x156)]),process[_0x152a57(0x20b)](0x1);}u(_0x31ff3c,_0x374fdb,_0x54e36f=>{const _0x563a86=_0x152a57;_0x54e36f['length']===0x0&&process[_0x563a86(0x2ed)][_0x563a86(0x25a)](_0x563a86(0x292)+_0x31ff3c[_0x563a86(0x29b)][_0x563a86(0x21f)]()+_0x563a86(0x1f1));for(let _0xc34b21 of _0x54e36f)process[_0x563a86(0x1b9)][_0x563a86(0x25a)](_0xc34b21[_0x563a86(0x2fa)][_0x563a86(0x2d4)](0x20)+'\x20\x20'+_0xc34b21[_0x563a86(0x14d)]+'\x0a');});}async function kn(_0x4d2bbc){const _0x5efd50=_0x182da6;_0x4d2bbc[_0x5efd50(0x296)]===_0x5efd50(0x300)&&(console[_0x5efd50(0x144)](_0x5efd50(0x2c9)),process[_0x5efd50(0x20b)](0x2));let _0x4e24e4=M(_0x35e9a7()),_0x52ef62=_0x4d2bbc[_0x5efd50(0x288)];if(_0x4d2bbc['env']){let _0x50695f=_0x4d2bbc[_0x5efd50(0x296)];await _0x59b73b({'env':_0x50695f,'tenant':_0x4d2bbc[_0x5efd50(0x1ba)]??G(_0x4e24e4,_0x2601cc[_0x50695f]),'skipEnvCheck':_0x52ef62});return;}let _0x11bb74=_0x4d2bbc['url']??ve();if(_0x11bb74){await _0x59b73b({'baseUrl':_0x11bb74,'tenant':_0x4d2bbc[_0x5efd50(0x1ba)]??G(_0x4e24e4,_0x11bb74),'skipEnvCheck':_0x52ef62});return;}if(_0x4e24e4?.[_0x5efd50(0x193)]){await _0x59b73b({'baseUrl':_0x4e24e4['baseUrl'],'tenant':_0x4d2bbc[_0x5efd50(0x1ba)]??_0x4e24e4['tenantName'],'skipEnvCheck':_0x52ef62});return;}console[_0x5efd50(0x144)](_0x5efd50(0x21d)),process[_0x5efd50(0x20b)](0x2);}function G(_0x4073b1,_0x386962){const _0x1d167f=_0x182da6;return _0x4073b1?.[_0x1d167f(0x193)]&&bn(_0x4073b1[_0x1d167f(0x193)],_0x386962)?_0x4073b1[_0x1d167f(0x30c)]:void 0x0;}function bn(_0x2a9b81,_0x2c573c){const _0x134898=_0x182da6;try{return new URL(_0x2a9b81)[_0x134898(0x294)]===new URL(_0x2c573c)[_0x134898(0x294)];}catch{return!0x1;}}async function Sn(_0x386da2){const _0x2d02df=_0x182da6;Q()&&(console['error'](_0x2d02df(0x142)),process[_0x2d02df(0x20b)](0x2));let _0x3780a7=await _0x347f16();if(_0x3780a7||(console[_0x2d02df(0x144)](vn()),process['exit'](0x2)),_0x386da2[_0x2d02df(0x21f)]()){let _0x57ae17=await _0x52403d(_0x3780a7,_0x386da2);_0x52759b(_0x57ae17)||(console['error']('Tenant\x20not\x20switched:\x20could\x20not\x20write\x20'+_0x35e9a7()+_0x2d02df(0x22a)+_0x3780a7['tenantName']+'.'),process[_0x2d02df(0x20b)](0x1)),console[_0x2d02df(0x20e)](_0x2d02df(0x305)+_0x57ae17[_0x2d02df(0x30c)]+'\x20('+_0x57ae17['tenantId']+_0x2d02df(0x1e3)+_0x35e9a7());return;}An(await _0x565d2c(_0x3780a7),_0x3780a7);}function vn(){const _0x240527=_0x182da6;if(_0x32f703[_0x240527(0x2d9)](_0x35e9a7()))return _0x240527(0x19e);let _0x10bc26=K();return M(_0x10bc26)?_0x240527(0x166)+_0x10bc26+_0x240527(0x2a4):_0x240527(0x2b1);}function An(_0x402ada,_0x229512){const _0x4c6871=_0x182da6;let _0x51bb10=_0x402ada['map'](_0x24ba54=>_0x24ba54['id']===_0x229512['tenantId']?'*\x20'+_0x24ba54['name']+_0x4c6871(0x2c7):'\x20\x20'+_0x24ba54[_0x4c6871(0x14b)]);process[_0x4c6871(0x1b9)][_0x4c6871(0x25a)]('Tenants\x20of\x20'+(_0x229512[_0x4c6871(0x26e)]??_0x229512[_0x4c6871(0x2eb)])+':\x0a'+_0x51bb10['join']('\x0a')+'\x0a'),_0x402ada['length']>0x1&&process[_0x4c6871(0x1b9)]['write'](_0x4c6871(0x22c));}function $n(_0x19de70){const _0x88badf=_0x182da6;return _0x19de70?.[_0x88badf(0x301)]?.['status']===0x191||/401/['test'](String(_0x19de70?.[_0x88badf(0x156)]??''));}var f={'lastType':null,'quiet':!0x1},Ee=_0x4124c8=>{const _0x53130a=_0x182da6;switch(_0x4124c8[_0x53130a(0x1f8)]){case'session_start':_0x4124c8[_0x53130a(0x2f9)]&&_0x4124c8['sessionId']!==f[_0x53130a(0x2f9)]&&(process[_0x53130a(0x2ed)][_0x53130a(0x25a)](_0x53130a(0x2c8)+_0x4124c8[_0x53130a(0x2f9)]+_0x53130a(0x246)+_0x4124c8[_0x53130a(0x2f9)]+')\x0a'),f['sessionId']=_0x4124c8[_0x53130a(0x2f9)]);break;case _0x53130a(0x23d):_0x4124c8[_0x53130a(0x235)]&&_0x4124c8[_0x53130a(0x235)]!==f[_0x53130a(0x235)]&&(f[_0x53130a(0x1a5)]!==null&&process[_0x53130a(0x2ed)][_0x53130a(0x25a)]('\x0a'),process[_0x53130a(0x2ed)][_0x53130a(0x25a)](_0x53130a(0x24f)+_0x4124c8[_0x53130a(0x235)]+_0x53130a(0x258)+_0x4124c8[_0x53130a(0x2f9)]+_0x53130a(0x15d)+_0x4124c8[_0x53130a(0x235)]+')\x0a'),f['turnId']=_0x4124c8['turnId'],f[_0x53130a(0x1a5)]=_0x53130a(0x23d));break;case _0x53130a(0x1ee):_0x4124c8[_0x53130a(0x2b8)]&&!f[_0x53130a(0x2cf)]&&(f[_0x53130a(0x1a5)]!=='thinking'&&process['stderr'][_0x53130a(0x25a)]('\x0a🤔\x20'),process[_0x53130a(0x2ed)][_0x53130a(0x25a)](_0x4124c8['content']),f[_0x53130a(0x1a5)]=_0x53130a(0x1ee));break;case _0x53130a(0x2c6):f[_0x53130a(0x1a5)]!==null&&process[_0x53130a(0x2ed)][_0x53130a(0x25a)]('\x0a'),process['stderr'][_0x53130a(0x25a)](_0x53130a(0x23e)+(_0x4124c8[_0x53130a(0x218)]??'tool')+'\x0a'),f[_0x53130a(0x1a5)]=_0x53130a(0x2c6);break;case _0x53130a(0x156):_0x4124c8[_0x53130a(0x2b8)]&&(f[_0x53130a(0x1a5)]!==_0x53130a(0x156)&&f['lastType']!==null&&process['stdout'][_0x53130a(0x25a)]('\x0a'),process[_0x53130a(0x1b9)][_0x53130a(0x25a)](_0x4124c8[_0x53130a(0x2b8)]),f[_0x53130a(0x1a5)]=_0x53130a(0x156));break;case _0x53130a(0x144):f[_0x53130a(0x1a5)]!==null&&process['stderr'][_0x53130a(0x25a)]('\x0a'),process[_0x53130a(0x2ed)][_0x53130a(0x25a)]('✗\x20'+(_0x4124c8['error']??_0x53130a(0x144))+'\x0a'),f[_0x53130a(0x1a5)]=_0x53130a(0x144);break;case'done':(f[_0x53130a(0x1a5)]==='message'||f['lastType']==='thinking')&&process[_0x53130a(0x1b9)][_0x53130a(0x25a)]('\x0a'),process[_0x53130a(0x2ed)][_0x53130a(0x25a)]('✓\x20Done\x0a'),f[_0x53130a(0x1a5)]=_0x53130a(0x28c);break;}};function pe(_0x5b305d,_0x40a7ea,_0x46e54f,_0x75bb3){const _0xe39213=_0x182da6;let _0x2c898a=_0x5b305d[_0xe39213(0x12a)]||process.env.MODEL;return{'backendUrl':_0x46e54f,'auth':_0x40a7ea,'enableComputerUse':!_0x5b305d[_0xe39213(0x308)]&&!_0x5b305d[_0xe39213(0x2cd)],'autoSpawnInterop':!_0x5b305d['headless'],'enableConnections':!_0x5b305d['noConnections'],'enableSecurity':!_0x5b305d['noSecurity'],'keepInteropAlive':_0x5b305d['keepAlive'],..._0x75bb3['oneTurn']?{'enableBackgroundCommands':!0x1}:{},..._0x5b305d['noMemory']?{'enableMemory':!0x1}:{},..._0x5b305d[_0xe39213(0x2fe)]?{'enableTaskAutomation':!0x0}:{},..._0x5b305d[_0xe39213(0x2f7)][_0xe39213(0x1f2)]>0x0?{'preloadSkills':_0x5b305d[_0xe39213(0x2f7)]}:{},..._0x2c898a?{'model':_0x2c898a}:{},..._0x5b305d['projectId']?{'projectId':_0x5b305d[_0xe39213(0x1ec)]}:{},..._0x5b305d[_0xe39213(0x1f3)]?{'workingDirectory':_0x5b305d['workingDirectory']}:{},..._0x5b305d[_0xe39213(0x1c4)]?{'bundledSkillsPath':_0x5b305d['bundledSkillsPath']}:{},..._0x5b305d['effort']?{'effort':_0x5b305d['effort']}:{},..._0x5b305d[_0xe39213(0x2f9)]?{'sessionId':_0x5b305d['sessionId']}:{},..._0x5b305d[_0xe39213(0x1fd)]?{'verbose':!0x0}:{}};}async function En(_0x3e6861){const _0x1800e7=_0x182da6;let _0x1b5ff5=_0x3e6861['outputFormat']!=='text',_0x22589c=_0x3e6861[_0x1800e7(0x159)]===void 0x0?null:$e(_0x3e6861['jsonSchemaPath'],'delegate-cli'),_0x2e3b5b=!_0x1b5ff5&&!_0x22589c&&!_0x3e6861[_0x1800e7(0x180)]&&_0x3e6861[_0x1800e7(0x29b)]!=='-'&&!!process[_0x1800e7(0x148)][_0x1800e7(0x1ce)]&&!!process[_0x1800e7(0x1b9)][_0x1800e7(0x1ce)],_0x5b1fdb=_0x2e3b5b?_0x3e6861['prompt'][_0x1800e7(0x21f)]():await j(_0x3e6861['prompt'],process['stdin']);if(!_0x2e3b5b&&!_0x5b1fdb&&(console[_0x1800e7(0x144)](_0x1800e7(0x16f)),process[_0x1800e7(0x20b)](0x2)),!_0x1b5ff5){await me(_0x3e6861,_0x5b1fdb,_0x2e3b5b,null,_0x22589c);return;}let _0x547fae=!0x1,_0x415809=_0x26986e=>{const _0x46585e=_0x1800e7;_0x547fae=!0x0,P(_0x461f40(_0x26986e)),(_0x26986e['isError']||_0x26986e[_0x46585e(0x298)])&&(process[_0x46585e(0x284)]=0x1);},_0x239e9f=Date[_0x1800e7(0x1cf)]();try{await me(_0x3e6861,_0x5b1fdb,!0x1,_0x415809,_0x22589c);}catch(_0xe16256){if(_0x547fae)throw _0xe16256;process[_0x1800e7(0x2ed)]['write']((_0xe16256 instanceof Error?_0xe16256[_0x1800e7(0x2f0)]??_0xe16256['message']:String(_0xe16256))+'\x0a'),_0x415809(new _0x4b4198(_0x239e9f)[_0x1800e7(0x289)]({'endedAtMs':Date['now'](),'usage':[],'error':_0xe16256}));}}async function me(_0x4ab03f,_0x32c63a,_0xba7645,_0x1b1b03,_0x1e22db){const _0x110cca=_0x182da6;f={'lastType':null,'quiet':_0x4ab03f['quiet']};let _0x379863=new Set(),_0x207e7d,_0x51029d=_0x1bc3e3=>{const _0x374be2=_0x3f83;(!_0x1b1b03||_0x1bc3e3[_0x374be2(0x1f8)]===_0x374be2(0x259)||_0x1bc3e3[_0x374be2(0x1f8)]===_0x374be2(0x23d))&&(_0x207e7d??Ee)(_0x1bc3e3);for(let _0xfbd0e of _0x379863)_0xfbd0e(_0x1bc3e3);},_0x421b0f=await q(),_0x5109c2=new _0x1d9780();_0x5109c2[_0x110cca(0x280)](_0x51029d);let _0x1ce7cd=_0x417733(_0x4ab03f[_0x110cca(0x296)],_0x421b0f,_0x4ab03f[_0x110cca(0x154)]);z(_0x4ab03f[_0x110cca(0x296)],_0x4ab03f[_0x110cca(0x154)],_0x1ce7cd);let _0x49c81e={'input':null},_0xa29029=_0xba7645?Z(()=>_0x49c81e[_0x110cca(0x202)],_0x2d37b4=>{const _0x1ad5cd=_0x110cca;process['stderr'][_0x1ad5cd(0x25a)](_0x2d37b4);}):null,_0x4f49c3=_0x218b01=>_0xa29029?{..._0x218b01,'askUser':_0xa29029}:_0x218b01,_0x32c462=_0x4f49c3(pe(_0x4ab03f,_0x421b0f,_0x1ce7cd,{'oneTurn':!_0xba7645})),_0x44655f=!0x1,_0x243ce7=!0x1,_0x46841a,_0x1754b1=()=>_0x46841a??=_0x5109c2['destroy'](),_0x24eb47=()=>{const _0x1a7909=_0x110cca;_0x243ce7&&process[_0x1a7909(0x20b)](0x82),_0x243ce7=!0x0,process[_0x1a7909(0x2ed)][_0x1a7909(0x25a)](_0x1a7909(0x121)),_0x44655f&&_0x5109c2[_0x1a7909(0x1ca)]()[_0x1a7909(0x2a9)](_0x4b383c=>console[_0x1a7909(0x144)](_0x4b383c))[_0x1a7909(0x150)](_0x1754b1)[_0x1a7909(0x150)](()=>process[_0x1a7909(0x20b)](0x82),_0x10a186=>{const _0x2347d7=_0x1a7909;console['error'](_0x10a186),process[_0x2347d7(0x20b)](0x82);});};process['on'](_0x110cca(0x1cc),_0x24eb47);let _0x50928a=_0x4ab03f[_0x110cca(0x1e0)],_0x2224ec=async _0x4cf382=>{const _0x3c1845=_0x110cca;let _0x17d932=_0x50928a;_0x50928a=[];let _0x4ce059=()=>_0x5109c2[_0x3c1845(0x2f8)](_0x4cf382,{'attachments':_0x17d932});try{return await _0x4ce059();}catch(_0x212128){if(_0x243ce7||!$n(_0x212128)||!process[_0x3c1845(0x148)][_0x3c1845(0x1ce)]||_0x4ab03f['env']===_0x3c1845(0x300)||!(_0x4ab03f[_0x3c1845(0x296)]||_0x421b0f['baseUrl']))throw _0x212128;process['stderr']['write']('\x0a⚠️\x20\x20Auth\x20expired.\x20Opening\x20browser\x20to\x20re-login…\x0a');let _0x1db2c8=_0x5109c2[_0x3c1845(0x172)]()??_0x4ab03f['sessionId'],_0x4bac36=await _0x59b73b(_0x4ab03f['env']?{'env':_0x4ab03f['env'],'tenant':G(_0x421b0f,_0x2601cc[_0x4ab03f[_0x3c1845(0x296)]]),'skipEnvCheck':!0x0}:{'baseUrl':_0x421b0f[_0x3c1845(0x193)],'tenant':_0x421b0f['tenantName'],'skipEnvCheck':!0x0}),_0x3564cd={'text':'','failed':!0x1,'sessionId':_0x1db2c8};return _0x243ce7||(_0x44655f=!0x1,await _0x1754b1(),_0x243ce7)?_0x3564cd:(_0x5109c2=new _0x1d9780(),_0x46841a=void 0x0,_0x5109c2['onEvent'](_0x51029d),_0x421b0f=_0x4bac36,await _0x5109c2[_0x3c1845(0x2d5)]({..._0x4f49c3(pe(_0x4ab03f,_0x421b0f,_0x1ce7cd,{'oneTurn':!_0xba7645})),..._0x1db2c8?{'sessionId':_0x1db2c8}:{}}),_0x44655f=!0x0,_0x243ce7?_0x3564cd:_0x4ce059());}};try{if(await _0x5109c2[_0x110cca(0x2d5)](_0x32c462),_0x44655f=!0x0,_0x243ce7)return;if(_0xba7645)await xn({'prompt':_0x32c63a,'sendMessage':_0x2224ec,'onSigint':_0x24eb47,'setAnswerInput':_0x24cbf7=>{const _0x3d0109=_0x110cca;_0x49c81e[_0x3d0109(0x202)]=_0x24cbf7;},'registerEventPrinter':_0x4f8d44=>(_0x207e7d=_0x4f8d44,()=>{_0x207e7d=void 0x0;})});else{if(_0x1b1b03||_0x1e22db){let _0x7372d6=_0x4ab03f[_0x110cca(0x261)]===_0x110cca(0x2c0)?_0x327a18=>P(_0xdbc392(_0x327a18)):()=>{},_0x15d7b7=await _0x1b349a({'onEvent':_0x56548a=>(_0x379863[_0x110cca(0x12b)](_0x56548a),()=>{_0x379863['delete'](_0x56548a);}),'sendMessage':_0x13a116=>_0x2224ec(_0x13a116),'getSessionId':()=>_0x5109c2['getSessionId'](),'getTurnUsageHistory':_0x18e8b4=>_0x5109c2['getTurnUsageHistory'](_0x18e8b4),'complete':_0xc46a83=>_0x5109c2['complete'](_0xc46a83)},_0x32c63a,void 0x0,_0x7372d6,_0x1e22db?{'outputSchema':_0x1e22db}:void 0x0);_0x1b1b03?_0x1b1b03(_0x15d7b7):In(_0x15d7b7);}else await _0x2224ec(_0x32c63a);}}catch(_0x7bf920){if(!_0x243ce7)throw _0x7bf920;}finally{try{await _0x1754b1();}finally{process['off'](_0x110cca(0x1cc),_0x24eb47),_0x243ce7&&(process[_0x110cca(0x284)]=0x82);}}}function In(_0x501eff){const _0x371c3f=_0x182da6;_0x501eff['structuredError']?(console[_0x371c3f(0x144)](_0x371c3f(0x212)+_0x501eff['structuredError'][_0x371c3f(0x156)]),process[_0x371c3f(0x284)]=0x1):_0x501eff[_0x371c3f(0x16c)]?(console[_0x371c3f(0x144)](_0x371c3f(0x309)+_0x501eff['error']+').'),process['exitCode']=0x1):process[_0x371c3f(0x1b9)]['write'](JSON[_0x371c3f(0x209)](_0x501eff[_0x371c3f(0x268)],null,0x2)+'\x0a');}function Tn(_0x9cc806,_0x48ea34){const _0x13abf5=_0x182da6;let _0x1a0fe0=process[_0x13abf5(0x1b9)][_0x13abf5(0x25a)][_0x13abf5(0x2fc)](process['stdout']),_0x503d6d=!0x1;return process[_0x13abf5(0x1b9)][_0x13abf5(0x25a)]=(..._0x153c98)=>{if(!_0x503d6d)return _0x1a0fe0(..._0x153c98);_0x589870(_0x48ea34,0x0),_0x23d728(_0x48ea34,0x0);let _0x5db5ea=_0x1a0fe0(..._0x153c98);return _0x9cc806['prompt'](!0x0),_0x5db5ea;},{'show':()=>{_0x503d6d=!0x0,_0x9cc806['prompt']();},'hide':()=>{_0x503d6d=!0x1;},'erase':()=>{_0x503d6d&&(_0x589870(_0x48ea34,0x0),_0x23d728(_0x48ea34,0x0)),_0x503d6d=!0x1;},'restore':()=>{const _0x590023=_0x13abf5;_0x503d6d=!0x1,process[_0x590023(0x1b9)][_0x590023(0x25a)]=_0x1a0fe0;}};}async function xn({prompt:_0x58f45b,sendMessage:_0x230dbc,onSigint:_0x42ea22,setAnswerInput:_0x141e7e,registerEventPrinter:_0x68f1bf}){const _0x19230e=_0x182da6;let _0x1acf08=_0x477299({'input':process[_0x19230e(0x148)],'output':process[_0x19230e(0x2ed)],'terminal':!0x0,'prompt':'You>\x20'}),_0xeeb65d=Tn(_0x1acf08,process[_0x19230e(0x2ed)]),_0x9522fa=[],_0x212cdc,_0x468498,_0x4eb515,_0x5ab05c=!0x1,_0x4c97ba=!0x1,_0x4fea3d=!0x1,_0x5c477f=Promise[_0x19230e(0x120)](),_0x8c0f99,_0x590c02=_0x68f1bf(_0x4f2912=>{const _0x15d028=_0x19230e;_0x4f2912[_0x15d028(0x1f8)]===_0x15d028(0x259)&&(_0xeeb65d[_0x15d028(0x171)](),_0x5c477f=new Promise(_0x3235ff=>{_0x8c0f99=_0x3235ff;})),Ee(_0x4f2912),_0x4f2912['type']===_0x15d028(0x28c)&&(_0x8c0f99?.(),_0x8c0f99=void 0x0,!_0x4fea3d&&!_0x5ab05c&&_0xeeb65d[_0x15d028(0x239)]());}),_0xe2f594=()=>{const _0x3f8ab8=_0x19230e;_0x4c97ba=!0x0,_0x8c0f99?.(),_0x42ea22(),_0x1acf08[_0x3f8ab8(0x13c)]();};_0x1acf08['on'](_0x19230e(0x124),_0x360e16=>{const _0x4f6a7c=_0x19230e;_0x4eb515?_0x4eb515(_0x360e16):_0x212cdc?_0x212cdc[_0x4f6a7c(0x297)](_0x360e16):_0x468498?_0x468498(_0x360e16):_0x9522fa['push'](_0x360e16);}),_0x1acf08['once'](_0x19230e(0x13c),()=>{const _0x66454d=_0x19230e;_0x5ab05c=!0x0,_0xeeb65d[_0x66454d(0x291)](),_0x212cdc&&!_0x4c97ba&&_0xe2f594(),_0x468498?.(null);});let _0x48c2ea=()=>_0x9522fa[_0x19230e(0x1f2)]>0x0?Promise[_0x19230e(0x120)](_0x9522fa['shift']()):_0x5ab05c?Promise[_0x19230e(0x120)](null):new Promise(_0x2ca9d5=>{_0x468498=_0x3e880f=>{_0x468498=void 0x0,_0x2ca9d5(_0x3e880f);};});_0x141e7e({'readLine':(_0x3ab5be,_0x3f4673)=>new Promise((_0x1319da,_0x1fed47)=>{const _0x28a2a2=_0x19230e;if(_0x5ab05c&&!_0x212cdc){_0x1319da(null);return;}_0x212cdc??=[];let _0x15cb47=_0x212cdc[_0x28a2a2(0x2c4)]();if(_0x15cb47!==void 0x0){_0x1319da(_0x15cb47);return;}let _0x59d61d=()=>{const _0x59185f=_0x28a2a2;_0x4eb515=void 0x0,_0x3f4673[_0x59185f(0x136)]('abort',_0x1f69f1),_0xeeb65d[_0x59185f(0x291)](),_0x1acf08[_0x59185f(0x147)](_0x59185f(0x215));},_0x1f69f1=()=>{const _0x89f223=_0x28a2a2;_0x59d61d(),_0x1fed47(new Error(_0x89f223(0x18b)));};_0x3f4673[_0x28a2a2(0x204)]('abort',_0x1f69f1,{'once':!0x0}),!_0x5ab05c&&(_0x4eb515=_0x34c258=>{_0x59d61d(),_0x1319da(_0x34c258);},_0x1acf08[_0x28a2a2(0x147)](_0x3ab5be),_0xeeb65d['show']());}),'endQuestions':()=>{const _0x208da1=_0x19230e;_0x212cdc&&_0x9522fa[_0x208da1(0x297)](..._0x212cdc),_0x212cdc=void 0x0;}}),_0x1acf08['on']('SIGINT',_0xe2f594),process[_0x19230e(0x2ed)]['write'](_0x19230e(0x307));let _0x7f304a=async _0x99dc7e=>{_0x4fea3d=!0x0;try{await _0x230dbc(_0x99dc7e);}finally{_0x4fea3d=!0x1;}};try{if(_0x58f45b&&await _0x7f304a(_0x58f45b),_0x4c97ba)return;!_0x5ab05c&&!_0x8c0f99&&_0xeeb65d[_0x19230e(0x239)]();for(let _0x30a282=await _0x48c2ea();_0x30a282!==null&&(_0xeeb65d[_0x19230e(0x291)](),!_0x4c97ba);_0x30a282=await _0x48c2ea()){let _0x57e753=_0x30a282['trim']();if(_0x57e753===_0x19230e(0x1db))break;_0x57e753&&await _0x7f304a(_0x57e753),!_0x5ab05c&&!_0x8c0f99&&_0xeeb65d[_0x19230e(0x239)]();}for(;!_0x4c97ba&&_0x8c0f99;)await _0x5c477f;}finally{_0x141e7e(null),_0x590c02(),_0xeeb65d[_0x19230e(0x1f9)](),_0x1acf08[_0x19230e(0x1a6)]('SIGINT',_0xe2f594),_0x1acf08[_0x19230e(0x13c)]();}}async function Dn(){const _0x5aae4a=_0x182da6;let _0xa4d868=Rt(process['argv'][_0x5aae4a(0x1bb)](0x2));if(_0xa4d868[_0x5aae4a(0x261)]===_0x5aae4a(0x2c5)){await fe(_0xa4d868);return;}let _0x543d15=Pt();try{await fe(_0xa4d868);}finally{_0x543d15();}}async function fe(_0xbe334f){const _0x53b4ca=_0x182da6;if(_0xbe334f[_0x53b4ca(0x2b7)]){Ct();return;}if(_0xbe334f[_0x53b4ca(0x19c)]){console[_0x53b4ca(0x20e)](Lt());return;}if(_0xbe334f[_0x53b4ca(0x1a9)]===_0x53b4ca(0x211)){await kn(_0xbe334f);return;}if(_0xbe334f['subcommand']===_0x53b4ca(0x1ba)){await Sn(_0xbe334f[_0x53b4ca(0x29b)]);return;}if(_0xbe334f['subcommand']==='logout'){await Mt();return;}if(_0xbe334f['subcommand']===_0x53b4ca(0x17b)){await Bt(_0xbe334f);return;}if(_0xbe334f[_0x53b4ca(0x1a9)]===_0x53b4ca(0x16e)){await Wt(_0xbe334f);return;}if(_0xbe334f['subcommand']===_0x53b4ca(0x2ae)){await Zt(_0xbe334f);return;}if(_0xbe334f[_0x53b4ca(0x1a9)]===_0x53b4ca(0x245)){await Qt(_0xbe334f);return;}if(_0xbe334f[_0x53b4ca(0x1a9)]==='usage'){await nn(_0xbe334f);return;}if(_0xbe334f['subcommand']===_0x53b4ca(0x161)||_0xbe334f[_0x53b4ca(0x1a9)]===_0x53b4ca(0x22b)||_0xbe334f[_0x53b4ca(0x1a9)]===_0x53b4ca(0x269)){await an(_0xbe334f,_0xbe334f[_0x53b4ca(0x1a9)]);return;}if(_0xbe334f[_0x53b4ca(0x1a9)]===_0x53b4ca(0x2ee)){await cn(_0xbe334f);return;}if(_0xbe334f[_0x53b4ca(0x1a9)]===_0x53b4ca(0x194)){await mn(_0xbe334f);return;}if(_0xbe334f[_0x53b4ca(0x1a9)]==='delegations'){await gn(_0xbe334f);return;}if(_0xbe334f[_0x53b4ca(0x1a9)]===_0x53b4ca(0x1bd)){await wn(_0xbe334f);return;}if(_0xbe334f[_0x53b4ca(0x1a9)]===_0x53b4ca(0x213)){await _0x25f146(_0xbe334f['prompt'],{'runnerUrl':_0xbe334f[_0x53b4ca(0x304)],'backendUrl':_0xbe334f[_0x53b4ca(0x154)],'interopPath':_0xbe334f[_0x53b4ca(0x1d1)],'workerId':_0xbe334f[_0x53b4ca(0x299)]});return;}if(_0xbe334f[_0x53b4ca(0x2ba)]){await Gt();return;}await En(_0xbe334f);}var Un=process.env.NODE_ENV===_0x182da6(0x282)||!!process.env.JEST_WORKER_ID;Un||Dn()[_0x182da6(0x2a9)](_0x33aac8=>{const _0x521b67=_0x182da6;console[_0x521b67(0x144)](_0x33aac8[_0x521b67(0x2f0)]||_0x33aac8[_0x521b67(0x156)]||_0x33aac8),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};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uipath/delegate-cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.206.0-preview.20261117083746",
|
|
4
4
|
"description": "UiPath Delegate CLI - drive the Delegate agent from the terminal. Wraps @uipath/delegate-sdk; installing this package pulls the SDK in — no separate install.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "commonjs",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"publish:npmjs": "npm publish --@uipath:registry=https://registry.npmjs.org/ --access public --ignore-scripts"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@uipath/delegate-sdk": "1.
|
|
25
|
+
"@uipath/delegate-sdk": "1.206.0-preview.20261117083746"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@types/node": "^22.0.0",
|