@uipath/delegate-cli 1.207.0-preview.20261125102343 → 1.207.0-preview.20261126075801

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.
Files changed (2) hide show
  1. package/dist/cli.mjs +1 -1
  2. package/package.json +2 -2
package/dist/cli.mjs CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- const _0x513ee0=_0xad43;(function(_0x3efe03,_0x32b990){const _0x4b72eb=_0xad43,_0x3b2b93=_0x3efe03();while(!![]){try{const _0x15c40d=-parseInt(_0x4b72eb(0x116))/0x1*(-parseInt(_0x4b72eb(0x17d))/0x2)+-parseInt(_0x4b72eb(0x250))/0x3*(parseInt(_0x4b72eb(0x241))/0x4)+parseInt(_0x4b72eb(0x126))/0x5*(parseInt(_0x4b72eb(0x127))/0x6)+-parseInt(_0x4b72eb(0xbb))/0x7+-parseInt(_0x4b72eb(0x81))/0x8+-parseInt(_0x4b72eb(0x90))/0x9*(parseInt(_0x4b72eb(0x204))/0xa)+parseInt(_0x4b72eb(0x205))/0xb*(parseInt(_0x4b72eb(0xdf))/0xc);if(_0x15c40d===_0x32b990)break;else _0x3b2b93['push'](_0x3b2b93['shift']());}catch(_0x455e65){_0x3b2b93['push'](_0x3b2b93['shift']());}}}(_0xef32,0x43914));const __dirname=import.meta.dirname;import _0x4c7126 from'fs';import _0xb9ac1b from'path';import{clearLine as _0xdd9308,createInterface as _0x4e027b,cursorTo as _0x20403f}from'node:readline';import{isOnStepGrid as _0x5ab4bf}from'@uipath/delegate-sdk';var L=_0x513ee0(0x14f);function E(_0xebc344){const _0x27130e=_0x513ee0;return _0xebc344[_0x27130e(0x6f)](/\u001b\[[0-?]*[ -/]*[@-~]|\u001b\][^\u0007\u001b]*(\u0007|\u001b\\)?|\u001b./g,'')['replace'](/[\u0000-\u0008\u000b-\u001f\u007f-\u009f]/g,'');}function ee(_0x5a463f){const _0xed0913=_0x513ee0;return E(_0x5a463f['label']??(_0x5a463f[_0xed0913(0x197)]===L?'Something\x20else':_0x5a463f['id']));}function Ce(_0xcc190d,_0x144b83,_0x1ff3dd){const _0x355152=_0x513ee0;let _0x346476=[''+(_0x1ff3dd>0x1?'['+_0x144b83+'/'+_0x1ff3dd+']\x20':'')+E(_0xcc190d['header'])+(_0xcc190d[_0x355152(0x82)]?_0x355152(0x271):''),E(_0xcc190d[_0x355152(0x278)])];return _0xcc190d[_0x355152(0x1a7)]===_0x355152(0xdd)&&_0xcc190d[_0x355152(0x259)][_0x355152(0x24a)]((_0x10a017,_0x451822)=>{const _0x19adfd=_0x355152;let _0xaffe0c=_0x10a017['kind']===L?_0x19adfd(0x1d7):'',_0xc4c111=_0x10a017[_0x19adfd(0xb9)]?'\x20-\x20'+E(_0x10a017['description']):'';_0x346476[_0x19adfd(0x268)]('\x20\x20'+(_0x451822+0x1)+'.\x20'+ee(_0x10a017)+_0xaffe0c+_0xc4c111);}),_0x346476['join']('\x0a');}function te(_0x180056,_0x2733cf){const _0x1abce2=_0x513ee0;let _0x130ef4=_0x180056[_0x1abce2(0x1cb)](/[\s,]+/)[_0x1abce2(0x1da)](Boolean);if(_0x130ef4[_0x1abce2(0x8b)]===0x0)return null;let _0x5255b7=_0x130ef4['map'](_0x3928c4=>/^\d+$/[_0x1abce2(0xec)](_0x3928c4)?Number(_0x3928c4):NaN);return _0x5255b7['some'](_0x2c20e9=>!Number[_0x1abce2(0x261)](_0x2c20e9)||_0x2c20e9<0x1||_0x2c20e9>_0x2733cf)?null:[...new Set(_0x5255b7)]['map'](_0x1fbfa6=>_0x1fbfa6-0x1);}function Oe(_0x26ec27){const _0x3688de=_0x513ee0;return typeof _0x26ec27==_0x3688de(0x7f)&&_0x26ec27!==null&&'refused'in _0x26ec27;}async function F(_0x44adf9,_0x53191d,_0xd1efb4,_0x104fcb){const _0x2a6487=_0x513ee0;for(;;){let _0x365e7a=(await _0x44adf9(_0x53191d))[_0x2a6487(0x12b)]();if(_0x365e7a==='')return;let _0x3ca70a=_0x104fcb(_0x365e7a);if(!Oe(_0x3ca70a))return _0x3ca70a;_0xd1efb4(_0x3ca70a[_0x2a6487(0x1c3)]+'\x0a');}}async function Le(_0x270d9f,_0x484fd6,_0x4ec718){const _0x22367d=_0x513ee0;if(_0x270d9f['options'][_0x22367d(0x8b)]===0x0||_0x270d9f[_0x22367d(0x259)][_0x22367d(0x19c)](_0x4d4d49=>_0x4d4d49['kind']===L)){let _0x4a36ce=(await _0x484fd6(_0x22367d(0x96)))['trim']();return _0x4a36ce===''?void 0x0:{'text':_0x4a36ce};}let _0x15fa45=_0x270d9f[_0x22367d(0x259)][_0x22367d(0x1e4)](_0x22b918=>_0x22b918[_0x22367d(0x197)]===L),_0x3ce0ab=_0x270d9f[_0x22367d(0x17c)]?_0x22367d(0x124):_0x22367d(0x199)+(_0x15fa45>=0x0?_0x22367d(0x1fe):'')+_0x22367d(0x19d),_0x176cca=await F(_0x484fd6,_0x3ce0ab,_0x4ec718,_0x44be9c=>{const _0x275294=_0x22367d;let _0x3ddc07=te(_0x44be9c,_0x270d9f['options'][_0x275294(0x8b)]);return _0x3ddc07&&(_0x270d9f[_0x275294(0x17c)]||_0x3ddc07[_0x275294(0x8b)]===0x1)?_0x3ddc07:!_0x270d9f[_0x275294(0x17c)]&&_0x15fa45>=0x0?{'typed':_0x44be9c}:{'refused':_0x270d9f[_0x275294(0x17c)]?_0x275294(0x132)+_0x270d9f[_0x275294(0x259)][_0x275294(0x8b)]+'.':_0x275294(0x22c)+_0x270d9f[_0x275294(0x259)][_0x275294(0x8b)]+'.'};});if(_0x176cca===void 0x0)return;if(!Array[_0x22367d(0x1f7)](_0x176cca))return{'text':_0x176cca[_0x22367d(0x14b)]};let _0x4e8a2e=_0x176cca[_0x22367d(0x27e)](_0x4955db=>_0x270d9f[_0x22367d(0x259)][_0x4955db]['id']),_0x282db8=_0x4e8a2e[_0x22367d(0x1c0)](L)?await F(_0x484fd6,ee(_0x270d9f[_0x22367d(0x259)][_0x15fa45])+':\x20',_0x4ec718,_0x4a9610=>_0x4a9610):void 0x0;if(!(_0x4e8a2e[_0x22367d(0x1c0)](L)&&_0x282db8===void 0x0))return _0x270d9f[_0x22367d(0x17c)]?{'optionIds':_0x4e8a2e,..._0x282db8!==void 0x0?{'text':_0x282db8}:{}}:_0x282db8!==void 0x0?{'text':_0x282db8}:{'optionId':_0x4e8a2e[0x0]};}async function Fe(_0x3b53b5,_0x276459,_0x1b9845){const _0x588bc4=_0x513ee0;let _0xc31065={};for(let _0x33fb23 of _0x3b53b5[_0x588bc4(0x7b)]){let _0x38dc9f=_0x33fb23['default']??_0x33fb23[_0x588bc4(0x22f)],_0x455303=_0x33fb23['step']??0x1,_0x3dc94d=_0x33fb23[_0x588bc4(0x1b1)]?'\x20'+E(_0x33fb23[_0x588bc4(0x1b1)]):'',_0x449ad9=_0x588bc4(0x1df)+_0x33fb23[_0x588bc4(0x22f)]+_0x588bc4(0x13a)+_0x33fb23[_0x588bc4(0x13d)]+(_0x455303!==0x1?_0x588bc4(0x206)+_0x455303:''),_0x21417a=await F(_0x276459,E(_0x33fb23[_0x588bc4(0x1cd)])+'\x20['+_0x33fb23[_0x588bc4(0x22f)]+'-'+_0x33fb23[_0x588bc4(0x13d)]+_0x3dc94d+']\x20(Enter\x20for\x20'+_0x38dc9f+_0x588bc4(0x1f3),_0x1b9845,_0xf80465=>{const _0x39f526=_0x588bc4;let _0x17d45c=Number(_0xf80465);return Number[_0x39f526(0x26d)](_0x17d45c)&&_0x17d45c>=_0x33fb23[_0x39f526(0x22f)]&&_0x17d45c<=_0x33fb23[_0x39f526(0x13d)]&&_0x5ab4bf(_0x17d45c,_0x33fb23[_0x39f526(0x22f)],_0x455303)?_0x17d45c:{'refused':'Enter\x20a\x20number\x20'+_0x449ad9+'.'};});_0xc31065[_0x33fb23['id']]=_0x21417a??_0x38dc9f;}return{'values':_0xc31065};}async function Me(_0x21e886,_0x539b5b,_0x362272){const _0x2d2c63=_0x513ee0;_0x362272(_0x21e886[_0x2d2c63(0x210)][_0x2d2c63(0x27e)]((_0x19fee5,_0x57e7a0)=>'\x20\x20'+(_0x57e7a0+0x1)+'.\x20'+E(_0x19fee5[_0x2d2c63(0x1cd)]))[_0x2d2c63(0xe5)]('\x0a')+'\x0a');let _0x16b8d2={};for(let _0x11def8 of _0x21e886[_0x2d2c63(0x23e)]){let _0x55c0eb=await F(_0x539b5b,E(_0x11def8[_0x2d2c63(0x1cd)])+_0x2d2c63(0x196),_0x362272,_0x4262f7=>{const _0x2316fe=_0x2d2c63;let _0x296c37=te(_0x4262f7,_0x21e886[_0x2316fe(0x210)][_0x2316fe(0x8b)]);return _0x296c37&&_0x296c37[_0x2316fe(0x8b)]===0x1?_0x296c37[0x0]:{'refused':'Enter\x20one\x20number\x20from\x201\x20to\x20'+_0x21e886['buckets'][_0x2316fe(0x8b)]+'.'};});if(_0x55c0eb===void 0x0)continue;let _0x286b75=_0x21e886['buckets'][_0x55c0eb],_0x2c7d40={};for(let _0x1a1c17 of _0x286b75[_0x2d2c63(0x1b4)]??[]){let _0x213d74='\x20\x20'+E(_0x1a1c17[_0x2d2c63(0x1cd)])+(_0x1a1c17[_0x2d2c63(0x82)]?'\x20(optional)':'')+':\x20',_0x2634ac=await F(_0x539b5b,_0x213d74,_0x362272,_0x44c11f=>_0x44c11f);for(;_0x2634ac===void 0x0&&!_0x1a1c17[_0x2d2c63(0x82)];)_0x362272(E(_0x1a1c17[_0x2d2c63(0x1cd)])+_0x2d2c63(0xb1)),_0x2634ac=await F(_0x539b5b,_0x213d74,_0x362272,_0x5194ad=>_0x5194ad);_0x2634ac!==void 0x0&&(_0x2c7d40[_0x1a1c17['id']]=_0x2634ac);}_0x16b8d2[_0x11def8['id']]={'bucket':_0x286b75['id'],...Object[_0x2d2c63(0xc3)](_0x2c7d40)['length']>0x0?{'subFields':_0x2c7d40}:{}};}return Object[_0x2d2c63(0xc3)](_0x16b8d2)[_0x2d2c63(0x8b)]>0x0?{'assignments':_0x16b8d2}:void 0x0;}async function je(_0x33d28a,_0x62a9ef,_0x923e1a){const _0x303981=_0x513ee0;if(_0x33d28a[_0x303981(0x1a7)]===_0x303981(0xdd))return Le(_0x33d28a,_0x62a9ef,_0x923e1a);if(_0x33d28a[_0x303981(0x1a7)]===_0x303981(0x7a))return Fe(_0x33d28a,_0x62a9ef,_0x923e1a);if(_0x33d28a[_0x303981(0x1a7)]===_0x303981(0xa4))return Me(_0x33d28a,_0x62a9ef,_0x923e1a);let _0x50c68a=(await _0x62a9ef(_0x303981(0x1a8)))[_0x303981(0x12b)]();return _0x50c68a===''?void 0x0:{'text':_0x50c68a};}function _0xef32(){const _0x398869=['delegationId','--version','Tenant:\x20\x20\x20\x20\x20\x20\x20','type','Your\x20answer,\x20as\x20text\x20(the\x20CLI\x20attaches\x20no\x20files;\x20Enter\x20to\x20skip):\x20',':\x20cannot\x20read\x20the\x20request\x20(','toISOString','\x20into\x20','a\x20session\x20id','\x20(current)','delegations\x20cancel\x20<delegation-id>','from','Invalid\x20--effort:\x20','unit','\x20<file.json>,\x20or\x20-\x20to\x20read\x20stdin.','next','subFields','\x20needs\x20a\x20JSON\x20request:\x20delegate-cli\x20','Licensing:\x20\x20\x20\x20','bind','--input-format\x20stream-json\x20needs\x20--output-format\x20stream-json:\x20the\x20steering\x20messages\x20are\x20answered\x20on\x20stdout.','Usage:\x20delegate-cli\x20org-users\x20<name\x20or\x20email\x20prefix>','intro','Answered','Input\x20closed\x20before\x20the\x20question\x20was\x20answered.','rejection','resolve','task','includes','\x20not\x20found.','Invalid\x20--env:\x20','refused','Token:\x20\x20\x20\x20\x20\x20\x20\x20expired\x20','evaluate','pop','getSessionId','toString',':\x20cannot\x20read\x20the\x20JSON\x20schema\x20(','.\x20Use\x20','split','1\x20or\x20more','label','days','orgLogicalName','parse','total_token_units','--authority','cwd','the\x20request','tenant','--task-automation','\x20(type\x20your\x20own)','login','\x20tokens\x0a','filter','\x0a⚠️\x20\x20Auth\x20expired.\x20Opening\x20browser\x20to\x20re-login…\x0a','Deployment:\x20\x20\x20','delegation','delegateTo','from\x20','stack','>.\x0a','Base\x20URL:\x20\x20\x20\x20\x20','--backend','findIndex','total_completion_tokens','operands','concat','\x20not\x20found,\x20has\x20no\x20messages','extra_pool_consumed_pu','a\x20briefing\x20text','staging','--session\x20applies\x20to\x20the\x20`delegate-cli\x20usage`\x20summary\x20only.','🔧\x20','a\x20skill\x20name','Licensing:\x20\x20\x20\x20no\x20licensing\x20quota\x20applies','waitForIdle','\x27\x20cannot\x20be\x20read:\x20','cartographer','):\x20','--json-schema\x20applies\x20to\x20prompts\x20and\x20to\x20`delegate-cli\x20complete`\x20only.','complete\x20needs\x20a\x20prompt:\x20delegate-cli\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22,\x20or\x20-\x20to\x20read\x20stdin.','Source:\x20\x20\x20\x20\x20\x20\x20','isArray','tokenExpiresAt','stdout','deepLink','Auth\x20comes\x20from\x20AUTH_TOKEN/TENANT_ID/ORG_ID\x20—\x20set\x20TENANT_ID\x20and\x20TENANT_SLUG\x20to\x20change\x20the\x20tenant.','isDesktopFallback','\x20(Delegate\x20desktop\x20app\x20fallback)','\x20or\x20your\x20own\x20answer','Invalid\x20--project:\x20\x22','Use:\x20delegate-cli\x20delegations\x20','auth.json','total_cost_usd','model','10FPYson','11PMEkYO','\x20in\x20steps\x20of\x20','pause','\x20<id>','user','Usage:\x20delegate-cli\x20sessions\x20fork\x20<id>\x20[<message-id>]','exitCode','\x20requires\x20','delegations\x20pending\x20<session-id>','--input-format\x20and\x20--replay-user-messages\x20apply\x20to\x20prompts\x20only.','\x20\x20TASK\x0a','buckets','Already\x20answered','\x20(cancel\x20with:\x20delegate-cli\x20sessions\x20cancel\x20','exit',',\x20or\x20holds\x20no\x20message\x20','a\x20colleague','url','stringify','workingDirectory',')\x20—\x20saved\x20to\x20','signal','\x20of\x20session\x20','attachments','--input-format','model_version','/exit','byoWarning','\x20PU\x20used','--url','token_units','Tenant:\x20','an\x20input\x20line\x20is\x20not\x20a\x20JSON\x20object','Organization\x20\x20','help','destroy','Usage:\x20delegate-cli\x20sessions\x20cancel\x20<session-id>\x20--turn\x20<turn-id>','--verbose','Session\x20\x20\x20\x20\x20\x20\x20','Enter\x20one\x20number\x20from\x201\x20to\x20','isError','expiresAt','min','locked','organizationId','--tenant','Tenants\x20of\x20','--worker-id','--summary','initialize','dismissed','models','results','alpha','AUTH_TOKEN_FILE\x20\x27','completion_tokens','status','items','findLast','sessionId','15828ZmQOur','jsonSchemaPath','deployment','check','--env','unknown\x20slug','--json-schema','limit','resume','forEach','includeSubAgents','file','--attach\x20applies\x20to\x20prompts\x20only.','abort','date','3OqOuqn','existsSync','--no-memory','Bearer\x20','--preload-skill','Title\x20\x20\x20\x20\x20\x20\x20\x20\x20','value','tool','accept','options','No\x20structured\x20output:\x20the\x20turn\x20failed\x20(','--attach','preloadSkills','Turn:\x20','self-hosted\x20(Automation\x20Suite\x20/\x20Dedicated)','rubric_version','page','isInteger','There\x20is\x20no\x20terminal\x20input\x20to\x20answer\x20from.','Renamed\x20','\x20(estimated\x20$','pending','%\x20of\x20','whoami','push','setPrompt','Rubric\x20','org-users','daily_usage','isFinite','contextSummary','content','response','\x20(optional)','You>\x20','--session','Date\x20\x20\x20\x20\x20\x20\x20\x20Token\x20units\x20\x20Prompt\x20tokens\x20\x20Completion\x20tokens','\x20sessions\x20on\x20','a\x20vertical\x20id','--turn','question','\x20from\x20','No\x20turn\x20','rerank','\x20(confidence\x20','show','map','noMemory','delegations\x20dismiss\x20<delegation-id>',',\x20whose\x20tenant\x20is\x20chosen\x20in\x20the\x20app.\x20Run\x20`delegate-cli\x20login\x20--env\x20<env>`\x20for\x20a\x20CLI\x20login\x20of\x20your\x20own.','from\x201\x20to\x20','runnerUrl','limit_enabled','effort','Cancel\x20requested\x20for\x20turn\x20','replace','Enter\x20sends\x20a\x20message.\x20/exit\x20or\x20EOF\x20exits;\x20Ctrl+C\x20stops\x20and\x20exits.\x0a','tenantName','[env=','--days\x20applies\x20to\x20`delegate-cli\x20usage\x20activity|daily`\x20only.','logout','baseUrl','done','write','steer','\x20\x22<answer>\x22\x0a','numeric','fields','A\x20steering\x20message\x20arrived\x20after\x20the\x20turn\x20ended:\x20not\x20read.\x0a','shift','--cartographer\x20runs\x20the\x20','object','Organization:\x20','3793888BobxiI','optional','verbose','\x20delegation\x20','updatedAt','daily','--replay-user-messages','),\x20','pct_used','stderr','length','sessions','turn_start','padStart','spawn','1754937wFZFHM','\x20(in\x20','choice','title','The\x20turn\x20was\x20cancelled.','parentSessionId','Your\x20answer\x20(Enter\x20to\x20skip):\x20','--headless','assignedUser','code','now','delegations','Unknown\x20delegations\x20action:\x20','\x20|\x20','userId','dismiss','prompt','toolName','.\x20Use:\x20','isTTY','bucket','quiet','\x20prompt,\x20','sourceTitle','onEvent','\x0aAvailable\x20models\x20(','\x20min)','UPDATED','probability\x20','Created\x20delegation\x20','Pass\x20either\x20--env\x20(a\x20named\x20cloud)\x20or\x20--url\x20(any\x20other\x20deployment),\x20not\x20both.','version','input','\x20is\x20required.\x0a','create','add','.\x20Use\x20`delegate-cli\x20usage`,\x20`usage\x20activity`\x20or\x20`usage\x20daily`.','catch','verify','outputFormat','Unknown\x20flag:\x20','description','complete\x20needs\x20--json-schema\x20<file>:\x20delegate-cli\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22.','629552TJubtD','Model\x20','print','pendingResults','\x20(no\x20cap\x20enforced)','stream-json','total_prompt_tokens','medium','keys','\x20\x20(input\x20#','--page','No\x20CLI\x20login\x20found\x20—\x20nothing\x20to\x20remove.','env','Last\x20','period_days','--limit','More:\x20delegate-cli\x20sessions\x20--page\x20','The\x20saved\x20CLI\x20login\x20could\x20not\x20be\x20refreshed.\x20Run\x20`delegate-cli\x20login`\x20again.','No\x20CLI\x20login\x20found.\x20Note:\x20the\x20CLI\x20is\x20currently\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20','delegations\x20delete\x20<delegation-id>','round','\x20--turn\x20','agent_thought','noComputerUse','questions','skipEnvCheck','data','\x0adelegate-cli\x20—\x20Delegate\x20agent\x20CLI\x0a\x0aUsage:\x0a\x20\x20delegate-cli\x20[flags]\x20[\x22<prompt>\x22]\x20\x20\x20\x20Start\x20a\x20conversation\x20in\x20a\x20terminal\x0a\x20\x20delegate-cli\x20--print\x20\x22<prompt>\x22\x20\x20\x20\x20\x20\x20Send\x20one\x20prompt,\x20print\x20the\x20response,\x20and\x20exit\x0a\x20\x20delegate-cli\x20[flags]\x20-\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Read\x20one\x20prompt\x20from\x20stdin\x20through\x20EOF,\x20then\x20exit\x0a\x20\x20delegate-cli\x20-p\x20\x22<prompt>\x22\x20--output-format\x20json|stream-json\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20One\x20turn\x20with\x20JSON-only\x20stdout;\x20exit\x201\x20on\x20error\x0a\x20\x20delegate-cli\x20--json-schema\x20FILE\x20\x22<prompt>\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20One\x20turn,\x20then\x20its\x20result\x20extracted\x20as\x20JSON\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20matching\x20the\x20schema\x20in\x20FILE\x20(printed\x20after\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20answer;\x20\x22structured\x22\x20in\x20the\x20JSON\x20result);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20exit\x201\x20when\x20the\x20extraction\x20fails\x0a\x20\x20delegate-cli\x20--attach\x20PATH\x20[--attach\x20PATH\x20...]\x20\x22<prompt>\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Send\x20files\x20or\x20folders\x20with\x20the\x20first\x20message\x0a\x20\x20delegate-cli\x20login\x20[--env\x20NAME\x20|\x20--url\x20BASE]\x20[--tenant\x20NAME]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20OAuth\x20browser\x20login\x20→\x20~/.aria/sdk-auth.json.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--env\x20or\x20--url\x20required\x20on\x20FIRST\x20login;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20afterwards\x20defaults\x20to\x20the\x20saved\x20login\x27s\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20deployment.\x20--tenant\x20picks\x20a\x20tenant\x20by\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20name;\x20without\x20it\x20a\x20re-login\x20keeps\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20saved\x20tenant\x0a\x20\x20delegate-cli\x20tenant\x20[NAME]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20the\x20organization\x27s\x20tenants,\x20or\x20switch\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20saved\x20login\x20to\x20NAME\x20(no\x20browser)\x0a\x20\x20delegate-cli\x20logout\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Remove\x20the\x20saved\x20CLI\x20login\x0a\x20\x20delegate-cli\x20whoami\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20the\x20current\x20login\x20(org,\x20tenant,\x20token\x20expiry)\x0a\x20\x20delegate-cli\x20models\x20[--env\x20NAME]\x20\x20\x20\x20\x20List\x20available\x20LLM\x20models\x20for\x20the\x20current\x20tenant,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20with\x20any\x20BYO\x20configuration\x20warning\x20per\x20model\x0a\x20\x20delegate-cli\x20sessions\x20[list]\x20[--page\x20N]\x20[--limit\x20N]\x20[--include-subagents]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20your\x20backend\x20chat\x20sessions,\x20most\x20recently\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20active\x20first\x20(resume\x20one\x20with\x20--session\x20ID)\x0a\x20\x20delegate-cli\x20sessions\x20show|delete\x20ID\x20Show\x20one\x20session\x27s\x20title\x20and\x20owner,\x20or\x20delete\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20it\x20with\x20its\x20messages\x20and\x20sub-agents\x20(no\x20prompt)\x0a\x20\x20delegate-cli\x20sessions\x20rename\x20ID\x20TITLE\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Rename\x20a\x20session\x20(1-500\x20characters)\x0a\x20\x20delegate-cli\x20sessions\x20fork\x20ID\x20[MESSAGE]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Copy\x20session\x20ID\x20into\x20a\x20new\x20session,\x20up\x20to\x20and\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20including\x20message\x20MESSAGE\x20(default:\x20all\x20of\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20it);\x20continue\x20it\x20with\x20--session\x20NEW_ID\x0a\x20\x20delegate-cli\x20sessions\x20cancel\x20ID\x20--turn\x20TURN\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Cancel\x20turn\x20TURN\x20running\x20on\x20session\x20ID\x20in\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20another\x20process;\x20exits\x201\x20when\x20no\x20such\x20turn\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20is\x20in\x20progress\x0a\x20\x20delegate-cli\x20check\x20[--env\x20NAME]\x20[--headless]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Verify\x20auth,\x20backend\x20readiness,\x20backend\x20and\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20interop\x20without\x20sending\x20a\x20prompt;\x20exits\x201\x20when\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20any\x20check\x20fails\x0a\x20\x20delegate-cli\x20usage\x20[--session\x20ID]\x20\x20\x20\x20Quota\x20and\x20spend:\x20licensing\x20quota,\x20monthly\x20spend\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20and\x20cap,\x20Cartographer\x20allowance\x0a\x20\x20delegate-cli\x20usage\x20activity|daily\x20[--days\x20N]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Activity\x20totals,\x20or\x20per-day\x20usage,\x20over\x20the\x20last\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20N\x20days\x20(1-365,\x20default\x2030)\x0a\x20\x20delegate-cli\x20evaluate|rerank|verify\x20FILE|-\x20[--model\x20ID]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Stateless\x20typed\x20judgments:\x20send\x20the\x20JSON\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20request\x20in\x20FILE\x20(or\x20stdin\x20with\x20-)\x20to\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20/v1/completions/<command>\x20and\x20print\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20answers;\x20--model\x20overrides\x20its\x20\x22model\x22.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Exits\x201\x20when\x20the\x20backend\x20rejects\x20it\x0a\x20\x20delegate-cli\x20complete\x20--json-schema\x20FILE\x20[--model\x20ID]\x20[--session\x20ID]\x20\x22<prompt>\x22|-\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20One\x20structured\x20completion,\x20no\x20agent\x20turn:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20print\x20the\x20JSON\x20object\x20matching\x20the\x20schema\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20in\x20FILE\x20(--output-format\x20json\x20prints\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{structured,\x20usage});\x20--session\x20adds\x20that\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20session\x27s\x20history\x20as\x20context.\x20Exits\x201\x20when\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20output\x20fails\x20the\x20schema\x20(422)\x20or\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20backend\x20rejects\x20the\x20request\x0a\x20\x20delegate-cli\x20transcribe\x20FILE|-\x20\x20\x20\x20\x20\x20\x20Speech-to-text:\x20print\x20the\x20text\x20of\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20audio\x20in\x20FILE,\x20or\x20on\x20stdin\x20with\x20-.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20mp3,\x20mp4,\x20mpeg,\x20mpga,\x20m4a,\x20wav\x20or\x20webm,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20up\x20to\x2014\x20MB.\x20Exits\x202\x20when\x20the\x20audio\x20is\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20refused\x20locally,\x201\x20when\x20the\x20backend\x20rejects\x20it\x0a\x20\x20delegate-cli\x20org-users\x20QUERY\x20\x20\x20\x20\x20\x20\x20\x20\x20Search\x20your\x20organization\x27s\x20users\x20by\x20name\x20or\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20email\x20prefix\x20(2-100\x20characters)\x0a\x20\x20delegate-cli\x20delegations\x20create\x20--session\x20ID\x20[--to\x20WHO]\x20[--summary\x20TEXT]\x20\x22<task>\x22|-\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Hand\x20a\x20task\x20from\x20session\x20ID\x20to\x20a\x20colleague\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(WHO:\x20an\x20email,\x20or\x20a\x20name\x20matching\x20one\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20person);\x20without\x20--to,\x20print\x20a\x20link\x20anyone\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20in\x20the\x20organization\x20can\x20claim\x0a\x20\x20delegate-cli\x20delegations\x20pending\x20SESSION\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Answers\x20to\x20delegations\x20from\x20SESSION\x20that\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20await\x20acceptance\x20(poll\x20this)\x0a\x20\x20delegate-cli\x20delegations\x20accept|dismiss|cancel|delete\x20ID\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Take\x20an\x20answer\x20into\x20its\x20session,\x20drop\x20it,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20withdraw\x20a\x20live\x20delegation,\x20or\x20delete\x20it\x0a\x20\x20delegate-cli\x20delegations\x20list\x20PROJECT\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Every\x20delegation\x20targeting\x20a\x20backend\x20project\x0a\x20\x20delegate-cli\x20delegations\x20show|claim\x20ID|LINK\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Read\x20a\x20delegation\x20assigned\x20to\x20you\x20(or\x20a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20delegate://delegation/…\x20link),\x20or\x20claim\x20it:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20prints\x20the\x20session\x20to\x20work\x20it\x20in\x0a\x20\x20delegate-cli\x20delegations\x20complete\x20ID\x20\x22<answer>\x22|-\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Send\x20the\x20answer\x20to\x20a\x20delegation\x20you\x20claimed\x0a\x20\x20delegate-cli\x20host\x20[flags]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Run\x20this\x20PC\x20as\x20a\x20remote\x20worker\x20until\x20Ctrl+C\x0a\x20\x20delegate-cli\x20host\x20install\x20[flags]\x20\x20\x20\x20Auto-start\x20the\x20host\x20at\x20login\x20(macOS\x20LaunchAgent\x20/\x20Windows\x20Scheduled\x20Task)\x0a\x20\x20delegate-cli\x20host\x20uninstall\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Remove\x20auto-start\x0a\x20\x20delegate-cli\x20host\x20status\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20auto-start\x20state\x0a\x20\x20delegate-cli\x20--cleanup\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Stop\x20running\x20interop\x0a\x0aFlags:\x0a\x20\x20-p,\x20--print\x20\x20\x20\x20\x20\x20\x20Run\x20one\x20turn\x20and\x20exit,\x20including\x20any\x20tool\x20execution.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Automatic\x20when\x20stdin\x20or\x20stdout\x20is\x20not\x20a\x20terminal,\x20or\x20with\x20-\x0a\x20\x20--env\x20NAME\x20\x20\x20\x20\x20\x20\x20\x20alpha\x20|\x20staging\x20|\x20production\x20|\x20localhost\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Composes\x20backend\x20URL\x20from\x20saved\x20auth\x20(org/tenant\x20slugs).\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Omitted\x20→\x20the\x20deployment\x20you\x20logged\x20into\x20(delegate-cli\x20login).\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20localhost\x20→\x20http://localhost:5002.\x20No\x20saved\x20login\x20and\x20no\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--env/--backend/BACKEND_URL\x20is\x20an\x20error\x20—\x20never\x20a\x20guess.\x0a\x20\x20--url\x20BASE\x20\x20\x20\x20\x20\x20\x20\x20(login)\x20Base\x20URL\x20of\x20a\x20deployment\x20that\x20is\x20not\x20a\x20named\x20cloud\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20—\x20Automation\x20Suite,\x20Dedicated,\x20Public\x20Sector.\x20Accepts\x20a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20tenant\x20path\x20or\x20a\x20trailing\x20/identity_\x20and\x20reduces\x20it\x20to\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20origin.\x20Mutually\x20exclusive\x20with\x20--env;\x20also\x20settable\x20via\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20UIPATH_BASE_URL.\x20Alias:\x20--authority.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Automation\x20Suite\x20needs\x2026.10+\x20with\x20the\x20Delegate\x20service;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20the\x20deployment\x20rejects\x20the\x20built-in\x20client,\x20register\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20your\x20own\x20—\x20see\x20UIPATH_CLIENT_ID\x20in\x20the\x20README\x0a\x20\x20--skip-env-check\x20\x20(login)\x20Do\x20not\x20check\x20the\x20deployment\x20before\x20signing\x20in.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Escape\x20hatch\x20for\x20a\x20deployment\x20that\x20hides\x20its\x20OIDC\x20discovery\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20document\x20or\x20serves\x20Identity\x20from\x20another\x20origin;\x20it\x20also\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20gives\x20up\x20the\x20diagnosis\x20when\x20something\x20is\x20really\x20wrong\x0a\x20\x20--backend\x20URL\x20\x20\x20\x20\x20Full\x20backend\x20URL\x20—\x20escape\x20hatch\x20overrides\x20--env\x0a\x20\x20--tenant\x20NAME\x20\x20\x20\x20\x20(login)\x20Tenant\x20to\x20sign\x20into,\x20by\x20name\x20(case-insensitive).\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default:\x20the\x20saved\x20login\x27s\x20tenant\x20on\x20that\x20cloud,\x20else\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20org\x27s\x20first\x20tenant.\x20Later:\x20delegate-cli\x20tenant\x20<name>\x0a\x20\x20--model\x20NAME\x20\x20\x20\x20\x20\x20LLM\x20model\x20id\x20(e.g.\x20claude_sonnet_5_5,\x20kimi_k3).\x20Checked\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20against\x20the\x20tenant\x27s\x20catalog\x20(delegate-cli\x20models)\x20before\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20run\x20starts;\x20an\x20unknown\x20id\x20fails\x20and\x20lists\x20the\x20valid\x20ones.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default:\x20gpt_5_6_luna.\x20Also\x20settable\x20via\x20MODEL\x20env\x20var.\x0a\x20\x20--keep-alive\x20\x20\x20\x20\x20\x20Reuse/leave\x20interop\x20running\x20across\x20invocations\x0a\x20\x20--headless\x20\x20\x20\x20\x20\x20\x20\x20Skip\x20interop\x20(text-only\x20prompts)\x0a\x20\x20--no-computer-use\x20Keep\x20interop\x20—\x20file,\x20Office,\x20PDF\x20and\x20shell\x20tools\x20keep\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20working\x20—\x20but\x20drop\x20the\x20screen:\x20no\x20screenshots,\x20no\x20window\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20list,\x20no\x20UI-automation\x20tools.\x20Cuts\x20image\x20tokens\x20and\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20per-turn\x20screen\x20capture,\x20and\x20stops\x20desktop\x20window\x20titles\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20leaving\x20the\x20machine.\x20Use\x20for\x20document\x20and\x20file\x20work.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--headless\x20implies\x20this\x20and\x20turns\x20interop\x20off\x20as\x20well\x0a\x20\x20--no-connections\x20\x20Disable\x20orchestrator\x20ConnectionService\x20(silences\x20404\x20warnings)\x0a\x20\x20--no-security\x20\x20\x20\x20\x20Disable\x20tool\x20security\x20wrapper\x20(use\x20only\x20for\x20debugging)\x0a\x20\x20--no-memory\x20\x20\x20\x20\x20\x20\x20Do\x20not\x20send\x20the\x20Delegate\x20app\x27s\x20local\x20long-term\x20memories\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20with\x20each\x20turn,\x20and\x20do\x20not\x20ask\x20the\x20model\x20to\x20save\x20new\x20ones\x0a\x20\x20--task-automation\x20Record\x20every\x20UI\x20action\x20of\x20the\x20run,\x20with\x20the\x20selector\x20of\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20element\x20it\x20acted\x20on,\x20to\x20<working-dir>/captures/<session>/\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(~/.aria-sdk\x20without\x20--working-dir),\x20so\x20you\x20can\x20then\x20ask\x20for\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20task\x20as\x20a\x20UiPath\x20coded\x20workflow\x20(uipath-taskautomation\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20skill).\x20The\x20log\x20holds\x20on-screen\x20text\x20and\x20your\x20requests;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20typed\x20values\x20are\x20masked.\x20Needs\x20computer\x20use.\x20Ignored\x20with\x20a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20warning\x20where\x20the\x20deployment\x20does\x20not\x20offer\x20it\x20yet\x0a\x20\x20--attach\x20PATH\x20\x20\x20\x20\x20File\x20or\x20folder\x20sent\x20with\x20the\x20first\x20message\x20(repeatable),\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20as\x20the\x20Delegate\x20app\x20sends\x20attached\x20files:\x20images\x20inline,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20PDFs\x20and\x20other\x20documents\x20as\x20a\x20path\x20the\x20agent\x20reads,\x20text\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20inline\x20up\x20to\x2016,000\x20characters.\x2030\x20MiB\x20per\x20message\x20in\x20all;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20larger\x20files\x20go\x20as\x20a\x20path.\x20In\x20a\x20conversation,\x20later\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20messages\x20carry\x20none\x20of\x20their\x20own,\x20but\x20the\x20first\x20message\x27s\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20stay\x20in\x20context\x0a\x20\x20--preload-skill\x20NAME\x20\x20Preload\x20a\x20skill\x20into\x20the\x20session\x20(repeatable).\x20The\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20skill\x27s\x20content\x20is\x20attached\x20before\x20the\x20first\x20model\x20turn\x20—\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20same\x20mechanism\x20as\x20project\x20preloaded\x20skills\x20in\x20the\x20app\x0a\x20\x20--cartographer\x20\x20\x20\x20Cartographer\x20engagement\x20preset.\x20Equivalent\x20to\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--vertical\x20cartographer\x20--no-computer-use\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--preload-skill\x20business-analysis\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--preload-skill\x20project-task-list\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--preload-skill\x20knowledge-base\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--preload-skill\x20source-coverage\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--preload-skill\x20note-taker.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Add\x20--project/--working-dir\x20for\x20where\x20the\x20files\x20live,\x20and\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20extra\x20--preload-skill\x20flags\x20for\x20more\x20skills\x20—\x20a\x20skill\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20preset\x20already\x20covers\x20is\x20not\x20preloaded\x20twice.\x20An\x20explicit\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--headless\x20still\x20wins\x20and\x20turns\x20interop\x20off;\x20another\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--vertical\x20ID\x20is\x20refused\x0a\x20\x20--project\x20ID\x20\x20\x20\x20\x20\x20Route\x20the\x20session\x27s\x20local\x20wiki\x20and\x20plans\x20to\x20a\x20project\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(<working-dir>/projects/<ID>/wiki).\x20Client-side\x20key\x20only\x0a\x20\x20--vertical\x20ID\x20\x20\x20\x20\x20Run\x20the\x20session\x20as\x20that\x20product\x27s\x20vertical,\x20as\x20its\x20tab\x20in\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20desktop\x20app\x20does,\x20with\x20no\x20desktop\x20app\x20installed:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20cartographer\x20brings\x20the\x20Map\x20of\x20Work\x20and,\x20without\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--preload-skill,\x20its\x20template\x27s\x20skills.\x20Default:\x20Delegate\x0a\x20\x20--working-dir\x20PATH\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Shell\x20cwd\x20for\x20the\x20agent\x20and\x20root\x20for\x20SDK-local\x20state.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Relative\x20paths\x20resolve\x20against\x20the\x20current\x20directory;\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20directory\x20is\x20created\x20if\x20missing\x0a\x20\x20--skills-path\x20PATH\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Folder\x20of\x20custom\x20skills,\x20loaded\x20on\x20top\x20of\x20the\x20skills\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20package\x20ships;\x20wins\x20on\x20a\x20name\x20clash\x20(also:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20DELEGATE_BUNDLED_SKILLS_PATH)\x0a\x20\x20--effort\x20TIER\x20\x20\x20\x20\x20Reasoning\x20effort:\x20low\x20|\x20medium\x20|\x20high\x20|\x20xhigh\x20|\x20max.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default:\x20the\x20model\x27s\x20recommended\x20tier\x0a\x20\x20--session\x20ID\x20\x20\x20\x20\x20\x20Continue\x20an\x20existing\x20backend\x20session\x20(an\x20unknown\x20id\x20exits\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x201;\x20the\x20backend\x20assigns\x20new\x20ids).\x20For\x20complete:\x20the\x20session\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20whose\x20history\x20is\x20the\x20context\x0a\x20\x20--json-schema\x20FILE\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20JSON\x20schema\x20the\x20structured\x20answer\x20must\x20match\x20(complete,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20and\x20prompts:\x20implies\x20--print)\x0a\x20\x20--runner-url\x20URL\x20\x20(host)\x20Runner\x20worker\x20WS\x20URL.\x20Required;\x20or\x20CONTROL_PLANE_WS_URL\x20env\x0a\x20\x20--interop\x20PATH\x20\x20\x20\x20(host)\x20Interop\x20binary\x20path;\x20or\x20INTEROP_EXECUTABLE_PATH\x20env.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Absent\x20→\x20registration/discovery\x20only,\x20tool\x20execution\x20disabled\x0a\x20\x20--worker-id\x20ID\x20\x20\x20\x20(host)\x20Stable\x20worker\x20identity;\x20or\x20WORKER_ID\x20env.\x20Default:\x20hostname\x0a\x20\x20--page\x20N\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(sessions)\x20Page\x20to\x20show,\x20from\x201.\x20Default:\x201\x0a\x20\x20--limit\x20N\x20\x20\x20\x20\x20\x20\x20\x20\x20(sessions)\x20Rows\x20per\x20page,\x201-100.\x20Default:\x2030\x0a\x20\x20--include-subagents\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(sessions)\x20Also\x20list\x20sub-agent\x20sessions,\x20hidden\x20by\x20default\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20as\x20in\x20the\x20desktop\x20app\x27s\x20history\x0a\x20\x20--to\x20WHO\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(delegations\x20create)\x20Assign\x20to\x20this\x20person:\x20an\x20email,\x20or\x20a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20name\x20that\x20matches\x20exactly\x20one\x20colleague\x20(see\x20org-users)\x0a\x20\x20--summary\x20TEXT\x20\x20\x20\x20(delegations\x20create)\x20The\x20briefing\x20the\x20person\x20starts\x20from.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default:\x20empty,\x20for\x20a\x20task\x20that\x20stands\x20on\x20its\x20own\x0a\x20\x20--output-format\x20FMT\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20text\x20(default)\x20|\x20json\x20|\x20stream-json.\x20json\x20prints\x20one\x20result\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20object\x20on\x20exit;\x20stream-json\x20prints\x20every\x20agent\x20event\x20as\x20one\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20JSON\x20line,\x20then\x20the\x20result.\x20Both\x20keep\x20stdout\x20JSON-only\x20(logs,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20progress\x20and\x20the\x20session\x20id\x20go\x20to\x20stderr),\x20imply\x20--print,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20and\x20exit\x201\x20when\x20the\x20turn\x20ends\x20in\x20error.\x20Also\x20honoured\x20by\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20every\x20subcommand\x20that\x20prints\x20a\x20result\x20(all\x20but\x20login,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20logout,\x20tenant\x20and\x20host)\x0a\x20\x20--input-format\x20FMT\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20text\x20(default)\x20|\x20stream-json.\x20stream-json\x20reads\x20one\x20JSON\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20user\x20message\x20per\x20line\x20on\x20stdin\x20while\x20the\x20turn\x20runs:\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20first\x20is\x20the\x20prompt\x20(give\x20none\x20as\x20an\x20argument),\x20each\x20later\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20one\x20steers\x20the\x20turn\x20in\x20flight.\x20Needs\x20--output-format\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20stream-json\x0a\x20\x20--replay-user-messages\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(--input-format\x20stream-json)\x20Echo\x20each\x20steering\x20message\x20on\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20stdout\x20(isReplay:\x20true,\x20same\x20uuid)\x20once\x20the\x20agent\x20takes\x20it\x0a\x20\x20-q,\x20--quiet\x20\x20\x20\x20\x20\x20\x20Suppress\x20🤔\x20thinking\x20output\x20to\x20stderr\x0a\x20\x20--verbose\x20\x20\x20\x20\x20\x20\x20\x20\x20Surface\x20the\x20SDK\x27s\x20and\x20the\x20framework\x27s\x20own\x20logs.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Diagnostics\x20only,\x20on\x20stdout;\x20independent\x20of\x20-q\x0a\x20\x20-h,\x20--help\x20\x20\x20\x20\x20\x20\x20\x20Show\x20this\x20help\x0a\x20\x20-v,\x20--version\x20\x20\x20\x20\x20Print\x20the\x20installed\x20CLI\x20version\x0a\x0aConversation:\x20Enter\x20sends\x20a\x20message;\x20/exit\x20or\x20EOF\x20exits;\x20Ctrl+C\x20stops\x20and\x20exits.\x0a\x20\x20Ctrl+C\x20during\x20a\x20turn\x20cancels\x20it\x20on\x20the\x20backend\x20too;\x20a\x20second\x20Ctrl+C\x20force-exits.\x0a\x20\x20An\x20optional\x20initial\x20prompt\x20is\x20followed\x20by\x20more\x20input.\x20The\x20session\x20ID\x20is\x20printed\x0a\x20\x20to\x20stderr;\x20resume\x20later\x20with\x20--session\x20ID.\x20Redirected\x20input\x20is\x20one\x20prompt.\x0aAuth:\x20prompts\x20auto-retry\x20on\x20401\x20by\x20opening\x20the\x20browser\x20to\x20re-login\x20(TTY\x20only),\x0a\x20\x20preserving\x20the\x20active\x20session.\x0a','a\x20JSON\x20schema\x20file','keepAlive','cleanup','finish','\x20PU','return','text','result','6817308XuSfyF','tenantId','turnId','Session\x20','usage','No\x20sessions\x20on\x20page\x20','join','Switch\x20with:\x20delegate-cli\x20tenant\x20<name>\x0a','production','assignedUserEmail','stdin','removeEventListener','endQuestions','test','\x20\x20(sub-agent\x20of\x20','workerId','Usage:\x20delegate-cli\x20sessions\x20','delegations\x20claim\x20<delegation-id|delegate://delegation/…>','email','startsWith','a\x20file\x20path','end',']\x20Backend\x20URL:\x20','total_sessions','interopPath','rename','host','close','choice\x20','STATUS','actionable_error','package.json','displayName','projectId','uuid','noSecurity','✓\x20Done\x0a','argv','No\x20CLI\x20login\x20to\x20switch:\x20the\x20CLI\x20is\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20','Cartographer:\x20','addEventListener','a\x20format\x20(','vertical','--model','cancelled','transcribe','complete','--days','low','headless','--days\x20applies\x20to\x20`delegate-cli\x20usage\x20activity|daily`;\x20the\x20summary\x20covers\x20the\x20current\x20month.','--attach:\x20no\x20such\x20file\x20or\x20folder:\x20','deleted','mode','.\x20Drop\x20one\x20of\x20the\x20two.','15veFFIl','\x20(resume\x20with\x20--session\x20','prompt_tokens','lockReason','rmSync','an\x20email\x20address\x20or\x20name','UIPATH_BASE_URL\x20is\x20unusable.\x20','\x20\x20\x20\x20Not\x20available\x20on\x20this\x20plan','Tokens:\x20','tool_call','hide','--task-automation\x20needs\x20computer\x20use:\x20the\x20task\x20log\x20is\x20written\x20by\x20the\x20UI-automation\x20tools.\x20Drop\x20--headless,\x20--no-computer-use,\x20--cartographer\x20and\x20--vertical\x20cartographer.','then','Continue\x20it\x20with:\x20delegate-cli\x20--session\x20','Numbers,\x20separated\x20by\x20commas\x20(Enter\x20to\x20skip):\x20','slice','145FzgpnO','39396lTYXUB','oneTurn','padEnd','log','trim','monthly_limit_usd','\x20days:\x20','score\x20','\x20(resets\x20','thinking','--skip-env-check\x20applies\x20to\x20`delegate-cli\x20login`\x20only.','Enter\x20numbers\x20from\x201\x20to\x20','toFixed','structuredError','--quiet','No\x20usage\x20in\x20the\x20last\x20','error','an\x20input\x20line\x20has\x20an\x20empty\x20message','claim','\x20to\x20','[saved\x20login]\x20Backend\x20URL:\x20','ASSIGNEE','max','stop','total_tokens','--output-format\x20','skip','\x20in\x20progress\x20on\x20session\x20','localhost','.\x20Use\x20alpha\x20|\x20staging\x20|\x20production\x20|\x20localhost.','off','an\x20effort\x20tier','No\x20CLI\x20login\x20found.\x20Run\x20`delegate-cli\x20login\x20--env\x20<alpha|staging|production>`\x20first.','bundledSkillsPath','--tenant\x20requires\x20a\x20tenant\x20name.','confidence','typed','aborted','\x20token\x20units','\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).','userinput','\x20token\x20units)','Removed\x20','Spending:\x20\x20\x20\x20\x20$','--print','inputFormat','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','activity','taskAutomation','xhigh','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.','lastType','unknown','SIGINT','\x20vertical,\x20so\x20it\x20cannot\x20run\x20as\x20--vertical\x20','restore','a\x20directory\x20path','structured','utf-8','an\x20input\x20line\x20is\x20not\x20JSON','getTurnUsageHistory','\x20PU\x20beyond\x20quota','getSessionMessages','\x20\x20\x20\x20','model_id','The\x20steering\x20message\x20was\x20not\x20answered:\x20its\x20turn\x20did\x20not\x20run\x20or\x20added\x20no\x20reply.','No\x20one\x20matches\x20\x22','fork','Missing\x20prompt.\x20Pass\x20it\x20as\x20an\x20argument,\x20pipe\x20it\x20via\x20stdin,\x20or\x20run\x20`delegate-cli\x20--help`.','name','\x20this\x20month','Task\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','backendUrl','widget','cancel',',\x20not\x20\x22user\x22','messages','session_start','ID\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','subcommand','delete','probability','alreadyAccepted','accessToken','a\x20turn\x20id','multiSelect','37514bJMFzK','--skip-env-check','score','answers','session_consumed_pu','models_breakdown','list','--include-subagents','message','period_end','Claimed\x20from\x20delegation\x20','transcribe:\x20cannot\x20read\x20','--vertical','all','--cartographer','Usage:\x20delegate-cli\x20','replayUserMessages','index','\x20completion','Delegated\x20','isSafeInteger','toUpperCase','readFileSync','\x20\x20TITLE\x0a','--turn\x20applies\x20to\x20`delegate-cli\x20sessions\x20cancel`\x20only.',':\x20bucket\x20number\x20(Enter\x20to\x20leave\x20out):\x20','kind','race','Number','Unknown\x20sessions\x20action:\x20','Structured\x20output\x20failed:\x20','every','\x20(Enter\x20to\x20skip):\x20','origin','):\x0a\x0a','Tenant\x20not\x20switched:\x20could\x20not\x20write\x20','Interop\x20stopped\x20(if\x20it\x20was\x20running).','string','total_quota_pu'];_0xef32=function(){return _0x398869;};return _0xef32();}function ne(_0x14fda6,_0x174ebf){return async _0x4d8a65=>{const _0x57375e=_0xad43;let _0x503612=_0x14fda6();if(!_0x503612)throw new Error(_0x57375e(0x262));let _0x44d3ea=async _0x2bdc3e=>{const _0x4332bb=_0x57375e;if(_0x4d8a65[_0x4332bb(0x21a)][_0x4332bb(0x14c)])throw new Error(_0x4332bb(0x94));let _0x1c4ddd=await _0x503612['readLine'](_0x2bdc3e,_0x4d8a65[_0x4332bb(0x21a)]);if(_0x1c4ddd===null)throw new Error(_0x4332bb(0x1bc));return _0x1c4ddd;};try{_0x174ebf('\x0a'+(_0x4d8a65[_0x57375e(0x1ba)]?E(_0x4d8a65[_0x57375e(0x1ba)])+'\x0a':''));let _0x105d2c={};for(let [_0x488bf7,_0x4f3dc2]of _0x4d8a65['questions']['entries']()){_0x174ebf('\x0a'+Ce(_0x4f3dc2,_0x488bf7+0x1,_0x4d8a65[_0x57375e(0xd3)][_0x57375e(0x8b)])+'\x0a');let _0x2cd3d7=await je(_0x4f3dc2,_0x44d3ea,_0x174ebf);_0x2cd3d7!==void 0x0&&(_0x105d2c[_0x4f3dc2['id']]=_0x2cd3d7);}return{'answers':_0x105d2c};}finally{_0x503612[_0x57375e(0xeb)]();}};}import{createInterface as _0x230a54}from'node:readline';var j=['text',_0x513ee0(0xc0)];function se(_0x19fcdb){const _0xc6e136=_0x513ee0;return j[_0xc6e136(0x1c0)](_0x19fcdb);}var _=class extends Error{};function Je(_0x804d70){const _0x55f6f3=_0x513ee0;if(typeof _0x804d70==_0x55f6f3(0x1a2))return _0x804d70;if(!Array['isArray'](_0x804d70))return;let _0x59d823=[];for(let _0x2b65bc of _0x804d70){if(typeof _0x2b65bc!=_0x55f6f3(0x7f)||_0x2b65bc===null)return;let {type:_0x1c6f06,text:_0x53e58b}=_0x2b65bc;if(_0x1c6f06!==_0x55f6f3(0xdd)||typeof _0x53e58b!='string')return;_0x59d823['push'](_0x53e58b);}return _0x59d823[_0x55f6f3(0xe5)]('\x0a');}function He(_0x3f953a){const _0x50cf66=_0x513ee0;if(_0x3f953a[_0x50cf66(0x12b)]()==='')return null;let _0x9c2c9b;try{_0x9c2c9b=JSON[_0x50cf66(0x1d0)](_0x3f953a);}catch{throw new _(_0x50cf66(0x162));}if(typeof _0x9c2c9b!=_0x50cf66(0x7f)||_0x9c2c9b===null)throw new _(_0x50cf66(0x225));let {type:_0x160644,message:_0x27af7e,uuid:_0x42eb5b}=_0x9c2c9b;if(_0x160644!=='user')throw new _('an\x20input\x20line\x20has\x20type\x20'+JSON['stringify'](_0x160644)+_0x50cf66(0x172));let _0x1d8850=Je(_0x27af7e?.['content']);if(_0x1d8850===void 0x0)throw new _('an\x20input\x20line\x20has\x20no\x20message.content,\x20a\x20string\x20or\x20a\x20list\x20of\x20text\x20blocks');if(_0x1d8850[_0x50cf66(0x12b)]()==='')throw new _(_0x50cf66(0x138));return{'text':_0x1d8850,'uuid':typeof _0x42eb5b==_0x50cf66(0x1a2)?_0x42eb5b:void 0x0};}function oe(_0x3e718d,_0x1089f6){const _0x2ad805=_0x513ee0;return JSON[_0x2ad805(0x217)]({'type':_0x2ad805(0x209),'message':{'role':_0x2ad805(0x209),'content':_0x3e718d[_0x2ad805(0xdd)]},'session_id':_0x1089f6,..._0x3e718d[_0x2ad805(0x101)]===void 0x0?{}:{'uuid':_0x3e718d[_0x2ad805(0x101)]},'isReplay':!0x0})+'\x0a';}async function*re(_0x203de7,_0x52051d){const _0x15f51e=_0x513ee0;let _0x33d1e8=_0x230a54({'input':_0x203de7,'crlfDelay':0x1/0x0});try{for await(let _0x13c282 of _0x33d1e8){let _0x40ea2f;try{_0x40ea2f=He(_0x13c282);}catch(_0x52ca02){if(!(_0x52ca02 instanceof _))throw _0x52ca02;_0x52051d(_0x52ca02);continue;}_0x40ea2f&&(yield _0x40ea2f);}}finally{_0x33d1e8[_0x15f51e(0xfa)]();}}import{BUSINESS_ANALYSIS_PRELOADED_SKILLS as _0x96c5bc,DelegateAgent as _0x40549e,cancelTurn as _0x13b50c,InteropProcess as _0x46324e,complete as _0x1ffbc8,DEFAULT_MODEL as _0x448847,createBackendClient as _0x32e714,evaluate as _0x18b7ab,isCompletionRequestError as _0x1ecf21,isEvaluationRequestError as _0x684f8b,isTranscriptionError as _0x2b12bf,rerank as _0x192f3e,transcribe as _0x3c7f99,verify as _0x56e1b3,acceptDelegation as _0x4ac75a,cancelDelegation as _0x3f42b4,claimDelegation as _0x33d26f,completeDelegation as _0x24fe4a,createDelegation as _0x588bc5,deleteDelegation as _0x2c3fdf,dismissDelegation as _0x5c526b,getSessionDelegations as _0xb3b926,isDelegationError as _0x3cef1c,listDelegations as _0x30ba47,listOrgUsers as _0x46573a,previewDelegation as _0x238fe9,TurnResultCollector as _0x4f0c36,agentEventToJsonLine as _0x1ad745,describeBaseUrlRejection as _0x5091f3,getActivitySummary as _0x2e0045,getAuthFilePath as _0x445962,getByoWarnings as _0x562875,getCartographerAllowance as _0x12f33a,getDailyBreakdown as _0x38e7bb,getLicensingSummary as _0x18d0b0,getMonthlySpending as _0xab1f80,isOutputFormat as _0x477fbd,isCloudBaseUrl as _0x5b07be,isSafeProjectFolderSegment as _0x4bac61,listModels as _0x3f3a88,listSessions as _0x2c68e4,getSession as _0x14bea9,renameSession as _0x534cca,deleteSession as _0x465cf3,deleteSessionTaskLog as _0x1d16ec,forkSession as _0x41eccb,isBackendRequestError as _0x289d0c,MAX_SESSION_PAGE_SIZE as _0x477954,listTenants as _0x344315,loadAndRefreshAuth as _0x44d450,loadAndRefreshSdkLogin as _0x5cadb8,parsePlatformBaseUrl as _0x428758,resolveBackendUrl as _0x7ee8d8,runHealthCheck as _0x4c4ecd,runHostCommand as _0x2a8753,runLoginFlow as _0x46465e,runTurnForResult as _0x23103a,saveAuthData as _0x2c1b83,switchTenant as _0x16bed3,toJsonLine as _0x77dc94,ENV_TO_CLOUD as _0x3159f0,OUTPUT_FORMATS as _0x57968f,isRunStopNotice as _0x58cab0,extractActionableErrorText as _0x2e15e8}from'@uipath/delegate-sdk';function ie(_0x268003){const _0x2990dd=_0x513ee0;let {input:_0x3176b3,getAgent:_0x3cd7a2,replay:_0x4a4f67,onEvent:_0x2db543,write:_0x2eac2f,warn:_0x4c4dfc,isRunStopNotice:_0x99864,actionableErrorText:_0x2e3b35}=_0x268003,_0x124aea=0x0,_0x98cd4=0x0,_0x45139b=Promise['resolve'](),_0x584fec=!0x1,_0x3fa644=()=>{},_0x5c5029=new Promise(_0x5b9391=>{_0x3fa644=_0x5b9391;}),_0x482453=[],_0xea8e51=_0x2db543(_0x3a08ba=>{_0x3a08ba['type']==='turn_start'&&(_0x3fa644(),_0x482453['shift']()?.());}),_0x14ae87=_0x328eba=>{const _0x25ff6b=_0xad43;_0x4a4f67&&_0x2eac2f(oe(_0x328eba,_0x3cd7a2()[_0x25ff6b(0x1c7)]()));},_0x2134c7=(async()=>{const _0x554dfe=_0xad43;await _0x5c5029;for await(let _0x125403 of _0x3176b3[_0x554dfe(0x173)]){if(_0x584fec)return;_0x124aea===0x0&&(_0x98cd4=_0x3cd7a2()[_0x554dfe(0x165)]()[_0x554dfe(0x8b)]),_0x124aea++;let _0xddbe00=new Promise(_0x5ce861=>{const _0x7413fd=_0x554dfe;_0x482453[_0x7413fd(0x268)](()=>{_0x14ae87(_0x125403),_0x5ce861();});}),_0x156b29=()=>{const _0x3d9a28=_0x554dfe;_0x124aea--,_0x482453[_0x3d9a28(0x1c6)]();},_0x2b345f=_0x3cd7a2()[_0x554dfe(0x78)](_0x125403[_0x554dfe(0xdd)]);_0x45139b=_0x2b345f[_0x554dfe(0xb5)](()=>{});try{await _0x2b345f?await Promise[_0x554dfe(0x198)]([_0xddbe00,_0x3cd7a2()['waitForIdle']()]):(_0x156b29(),_0x4c4dfc(_0x554dfe(0x7c)));}catch(_0x58b9aa){_0x156b29(),_0x4c4dfc('A\x20steering\x20message\x20was\x20not\x20sent:\x20'+(_0x58b9aa instanceof Error?_0x58b9aa[_0x554dfe(0x185)]:String(_0x58b9aa))+'\x0a');}}})()[_0x2990dd(0xb5)](_0x161c0b=>{const _0x534678=_0x2990dd;_0x4c4dfc('Steering\x20input\x20stopped:\x20'+(_0x161c0b instanceof Error?_0x161c0b[_0x534678(0x185)]:String(_0x161c0b))+'\x0a');});return{'settle':async _0x212648=>{const _0x496e60=_0x2990dd;if(await _0x45139b,_0x124aea===0x0)return _0x212648;await _0x3cd7a2()[_0x496e60(0x1f0)]();for(let _0x4fcf31 of _0x482453)_0x4fcf31();_0x482453=[];let _0x3ceb9c=_0x3cd7a2()[_0x496e60(0x165)]()[_0x496e60(0x125)](_0x98cd4)[_0x496e60(0x23f)](_0x573f73=>_0x573f73[_0x496e60(0x170)]==='actionable_error'||_0x99864(_0x573f73)||_0x573f73['type']==='ai'&&_0x573f73[_0x496e60(0x170)]!==_0x496e60(0xd1)&&_0x573f73[_0x496e60(0x170)]!=='followUpsRenderer'&&!!_0x573f73[_0x496e60(0x26f)]);if(!_0x3ceb9c)return{..._0x212648,'failed':!0x0,'text':_0x496e60(0x168)};let _0x972490=_0x3ceb9c['widget']===_0x496e60(0xfd);return typeof _0x3ceb9c[_0x496e60(0x26f)]!='string'?{..._0x212648,'failed':_0x972490}:{..._0x212648,'failed':_0x972490,'text':_0x972490?_0x2e3b35(_0x3ceb9c[_0x496e60(0x26f)]):_0x3ceb9c[_0x496e60(0x26f)]};},'stop':()=>{const _0x32ea35=_0x2990dd;_0x584fec=!0x0,_0xea8e51(),_0x3176b3[_0x32ea35(0xfa)]();}};}var Gt=[_0x513ee0(0x1d8),_0x513ee0(0x1d5),_0x513ee0(0x238),'host',_0x513ee0(0x74),_0x513ee0(0x267),_0x513ee0(0x244),_0x513ee0(0x8c),'usage','evaluate',_0x513ee0(0x27b),_0x513ee0(0xb6),_0x513ee0(0x10d),_0x513ee0(0x10c),_0x513ee0(0x9b),'org-users'],ue=['',_0x513ee0(0x238),_0x513ee0(0x267),'check',_0x513ee0(0x8c),_0x513ee0(0xe3),_0x513ee0(0x1c5),_0x513ee0(0x27b),_0x513ee0(0xb6),_0x513ee0(0x10d),_0x513ee0(0x10c),_0x513ee0(0x9b),'org-users'],pe=[_0x513ee0(0x10f),_0x513ee0(0xc2),'high',_0x513ee0(0x158),'max'],Wt=_0x96c5bc,B='cartographer';function b(_0x4a13d0,_0x1aa6fa,_0x3094e1,_0x12f506){const _0x2c92e5=_0x513ee0;let _0x37a0b4=_0x4a13d0[_0x1aa6fa];return(!_0x37a0b4||_0x37a0b4[_0x2c92e5(0x8b)]>0x1&&_0x37a0b4[_0x2c92e5(0xf2)]('-'))&&(console[_0x2c92e5(0x137)](_0x3094e1+_0x2c92e5(0x20c)+_0x12f506+'.'),process['exit'](0x2)),_0x37a0b4;}function K(_0x5eebc2,_0x1b30fd,_0x2d1db4,_0x42a1e0){const _0x2e6a9e=_0x513ee0;let _0x3ac05e=b(_0x5eebc2,_0x1b30fd,_0x2d1db4,'a\x20number'),_0x25b119=Number(_0x3ac05e);return(!/^\d+$/[_0x2e6a9e(0xec)](_0x3ac05e)||_0x25b119<0x1||!Number[_0x2e6a9e(0x191)](_0x25b119)||_0x42a1e0!==void 0x0&&_0x25b119>_0x42a1e0)&&(console[_0x2e6a9e(0x137)](_0x2d1db4+'\x20must\x20be\x20a\x20whole\x20number\x20'+(_0x42a1e0===void 0x0?_0x2e6a9e(0x1cc):_0x2e6a9e(0x282)+_0x42a1e0)+',\x20got\x20'+_0x3ac05e+'.'),process[_0x2e6a9e(0x213)](0x2)),_0x25b119;}function Kt(_0xaad9df){const _0x58a1cb=_0x513ee0;let _0xffc8a0={'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':_0x58a1cb(0xdd),'inputFormat':_0x58a1cb(0xdd),'replayUserMessages':!0x1,'preloadSkills':[],'attachments':[],'skipEnvCheck':!0x1,'includeSubAgents':!0x1,'operands':[],'help':!0x1,'version':!0x1};Gt[_0x58a1cb(0x1c0)](_0xaad9df[0x0])&&(_0xffc8a0[_0x58a1cb(0x176)]=_0xaad9df[0x0],_0xaad9df=_0xaad9df[_0x58a1cb(0x125)](0x1));let _0x2bba74=[];for(let _0xb2796a=0x0;_0xb2796a<_0xaad9df['length'];_0xb2796a++){let _0x1bf17f=_0xaad9df[_0xb2796a];switch(_0x1bf17f){case _0x58a1cb(0x153):case'-p':_0xffc8a0['print']=!0x0;break;case'--keep-alive':_0xffc8a0[_0x58a1cb(0xd8)]=!0x0;break;case'--cleanup':_0xffc8a0[_0x58a1cb(0xd9)]=!0x0;break;case _0x58a1cb(0x97):_0xffc8a0['headless']=!0x0;break;case'--no-computer-use':_0xffc8a0[_0x58a1cb(0xd2)]=!0x0;break;case _0x58a1cb(0x18b):_0xffc8a0[_0x58a1cb(0x1f2)]=!0x0,_0xffc8a0[_0x58a1cb(0xd2)]=!0x0,_0xffc8a0[_0x58a1cb(0x25c)][_0x58a1cb(0x268)](...Wt);break;case'--no-connections':_0xffc8a0['noConnections']=!0x0;break;case'--no-security':_0xffc8a0[_0x58a1cb(0x102)]=!0x0;break;case _0x58a1cb(0x252):_0xffc8a0[_0x58a1cb(0x27f)]=!0x0;break;case _0x58a1cb(0x1d6):_0xffc8a0[_0x58a1cb(0x157)]=!0x0;break;case _0x58a1cb(0x135):case'-q':_0xffc8a0[_0x58a1cb(0xa5)]=!0x0;break;case _0x58a1cb(0x22a):_0xffc8a0[_0x58a1cb(0x83)]=!0x0;break;case _0x58a1cb(0x1e3):_0xffc8a0[_0x58a1cb(0x16f)]=_0xaad9df[++_0xb2796a];break;case _0x58a1cb(0x10a):_0xffc8a0[_0x58a1cb(0x203)]=_0xaad9df[++_0xb2796a];break;case'--runner-url':_0xffc8a0['runnerUrl']=_0xaad9df[++_0xb2796a];break;case'--interop':_0xffc8a0[_0x58a1cb(0xf7)]=_0xaad9df[++_0xb2796a];break;case _0x58a1cb(0x234):_0xffc8a0[_0x58a1cb(0xee)]=_0xaad9df[++_0xb2796a];break;case _0x58a1cb(0x254):_0xffc8a0[_0x58a1cb(0x25c)][_0x58a1cb(0x268)](b(_0xaad9df,++_0xb2796a,_0x1bf17f,_0x58a1cb(0x1ee)));break;case'--project':{let _0x2acb9e=b(_0xaad9df,++_0xb2796a,_0x1bf17f,'a\x20project\x20id');_0x4bac61(_0x2acb9e)||(console[_0x58a1cb(0x137)](_0x58a1cb(0x1ff)+_0x2acb9e+_0x58a1cb(0x14e)),process[_0x58a1cb(0x213)](0x2)),_0xffc8a0[_0x58a1cb(0x100)]=_0x2acb9e;break;}case _0x58a1cb(0x189):_0xffc8a0[_0x58a1cb(0x109)]=b(_0xaad9df,++_0xb2796a,_0x1bf17f,_0x58a1cb(0x276));break;case'--output-format':{let _0x18b45d=b(_0xaad9df,++_0xb2796a,_0x1bf17f,_0x58a1cb(0x108)+_0x57968f[_0x58a1cb(0xe5)](_0x58a1cb(0x9d))+')');_0x477fbd(_0x18b45d)||(console['error']('Invalid\x20--output-format:\x20'+_0x18b45d+_0x58a1cb(0x1ca)+_0x57968f[_0x58a1cb(0xe5)](_0x58a1cb(0x9d))+'.'),process[_0x58a1cb(0x213)](0x2)),_0xffc8a0[_0x58a1cb(0xb7)]=_0x18b45d;break;}case _0x58a1cb(0x21d):{let _0x12bfc6=b(_0xaad9df,++_0xb2796a,_0x1bf17f,'a\x20format\x20('+j[_0x58a1cb(0xe5)]('\x20|\x20')+')');se(_0x12bfc6)||(console[_0x58a1cb(0x137)]('Invalid\x20--input-format:\x20'+_0x12bfc6+_0x58a1cb(0x1ca)+j[_0x58a1cb(0xe5)]('\x20|\x20')+'.'),process[_0x58a1cb(0x213)](0x2)),_0xffc8a0[_0x58a1cb(0x154)]=_0x12bfc6;break;}case _0x58a1cb(0x87):_0xffc8a0[_0x58a1cb(0x18d)]=!0x0;break;case _0x58a1cb(0x273):_0xffc8a0[_0x58a1cb(0x240)]=b(_0xaad9df,++_0xb2796a,_0x1bf17f,_0x58a1cb(0x1ac));break;case _0x58a1cb(0xc5):_0xffc8a0[_0x58a1cb(0x260)]=K(_0xaad9df,++_0xb2796a,_0x1bf17f);break;case _0x58a1cb(0xca):_0xffc8a0[_0x58a1cb(0x248)]=K(_0xaad9df,++_0xb2796a,_0x1bf17f,_0x477954);break;case _0x58a1cb(0x184):_0xffc8a0[_0x58a1cb(0x24b)]=!0x0;break;case _0x58a1cb(0x247):_0xffc8a0[_0x58a1cb(0x242)]=b(_0xaad9df,++_0xb2796a,_0x1bf17f,_0x58a1cb(0xd7));break;case _0x58a1cb(0x25b):{let _0x4d440e=_0xb9ac1b['resolve'](process['cwd'](),b(_0xaad9df,++_0xb2796a,_0x1bf17f,_0x58a1cb(0xf3)));_0x4c7126[_0x58a1cb(0x251)](_0x4d440e)||(console['error'](_0x58a1cb(0x112)+_0x4d440e),process[_0x58a1cb(0x213)](0x2)),_0xffc8a0[_0x58a1cb(0x21c)][_0x58a1cb(0x268)](_0x4d440e);break;}case _0x58a1cb(0x277):_0xffc8a0['turnId']=b(_0xaad9df,++_0xb2796a,_0x1bf17f,_0x58a1cb(0x17b));break;case'--to':_0xffc8a0[_0x58a1cb(0x1de)]=b(_0xaad9df,++_0xb2796a,_0x1bf17f,_0x58a1cb(0x11b));break;case _0x58a1cb(0x235):_0xffc8a0[_0x58a1cb(0x26e)]=b(_0xaad9df,++_0xb2796a,_0x1bf17f,_0x58a1cb(0x1ea));break;case _0x58a1cb(0x10e):_0xffc8a0[_0x58a1cb(0x1ce)]=K(_0xaad9df,++_0xb2796a,_0x1bf17f,0x16d);break;case'--working-dir':_0xffc8a0['workingDirectory']=_0xb9ac1b['resolve'](process[_0x58a1cb(0x1d3)](),b(_0xaad9df,++_0xb2796a,_0x1bf17f,_0x58a1cb(0x15f)));break;case'--skills-path':_0xffc8a0[_0x58a1cb(0x148)]=_0xb9ac1b[_0x58a1cb(0x1be)](process[_0x58a1cb(0x1d3)](),b(_0xaad9df,++_0xb2796a,_0x1bf17f,_0x58a1cb(0x15f)));break;case'--effort':{let _0x10f6e9=b(_0xaad9df,++_0xb2796a,_0x1bf17f,_0x58a1cb(0x146));pe[_0x58a1cb(0x1c0)](_0x10f6e9)||(console['error'](_0x58a1cb(0x1b0)+_0x10f6e9+'.\x20Use\x20'+pe[_0x58a1cb(0xe5)](_0x58a1cb(0x9d))+'.'),process[_0x58a1cb(0x213)](0x2)),_0xffc8a0['effort']=_0x10f6e9;break;}case _0x58a1cb(0x232):{let _0x3fbf5f=_0xaad9df[++_0xb2796a];(!_0x3fbf5f||_0x3fbf5f[_0x58a1cb(0xf2)]('--'))&&(console[_0x58a1cb(0x137)](_0x58a1cb(0x149)),process[_0x58a1cb(0x213)](0x2)),_0xffc8a0[_0x58a1cb(0x1d5)]=_0x3fbf5f;break;}case _0x58a1cb(0x245):{let _0x36e2d3=_0xaad9df[++_0xb2796a];[_0x58a1cb(0x23a),_0x58a1cb(0x1eb),_0x58a1cb(0xe7),_0x58a1cb(0x143)][_0x58a1cb(0x1c0)](_0x36e2d3)||(console[_0x58a1cb(0x137)](_0x58a1cb(0x1c2)+_0x36e2d3+_0x58a1cb(0x144)),process[_0x58a1cb(0x213)](0x2)),_0xffc8a0['env']=_0x36e2d3;break;}case _0x58a1cb(0x222):case _0x58a1cb(0x1d2):{let _0x245f78=b(_0xaad9df,++_0xb2796a,_0x1bf17f,'a\x20deployment\x20URL,\x20e.g.\x20https://automationsuite.contoso.com'),_0x2829a3=_0x428758(_0x245f78);if(_0x2829a3['ok']===!0x1){console[_0x58a1cb(0x137)](_0x5091f3(_0x245f78,_0x2829a3[_0x58a1cb(0x1bd)])),process[_0x58a1cb(0x213)](0x2);break;}_0xffc8a0['url']=_0x2829a3['baseUrl'];break;}case _0x58a1cb(0x17e):_0xffc8a0[_0x58a1cb(0xd4)]=!0x0;break;case'-h':case'--help':_0xffc8a0[_0x58a1cb(0x227)]=!0x0;break;case'-v':case _0x58a1cb(0x1a5):_0xffc8a0['version']=!0x0;break;default:_0x1bf17f[_0x58a1cb(0xf2)]('--')&&(console[_0x58a1cb(0x137)](_0x58a1cb(0xb8)+_0x1bf17f),process[_0x58a1cb(0x213)](0x2)),_0x2bba74[_0x58a1cb(0x268)](_0x1bf17f);}}return _0xffc8a0['tenant']!==void 0x0&&_0xffc8a0[_0x58a1cb(0x176)]!==_0x58a1cb(0x1d8)&&(console['error']('--tenant\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Switch\x20tenants\x20with:\x20delegate-cli\x20tenant\x20<name>'),process[_0x58a1cb(0x213)](0x2)),_0xffc8a0['url']!==void 0x0&&_0xffc8a0['env']!==void 0x0&&(console[_0x58a1cb(0x137)](_0x58a1cb(0xae)),process[_0x58a1cb(0x213)](0x2)),_0xffc8a0['url']!==void 0x0&&_0xffc8a0[_0x58a1cb(0x176)]!==_0x58a1cb(0x1d8)&&(console[_0x58a1cb(0x137)]('--url\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Other\x20commands\x20follow\x20the\x20saved\x20login,\x20or\x20--backend\x20<url>.'),process[_0x58a1cb(0x213)](0x2)),_0xffc8a0[_0x58a1cb(0x1ce)]!==void 0x0&&_0xffc8a0['subcommand']!==_0x58a1cb(0xe3)&&(console[_0x58a1cb(0x137)](_0x58a1cb(0x73)),process[_0x58a1cb(0x213)](0x2)),_0xffc8a0[_0x58a1cb(0x242)]!==void 0x0&&(_0xffc8a0[_0x58a1cb(0x176)]!==_0x58a1cb(0x10d)&&_0xffc8a0[_0x58a1cb(0x176)]!==''||_0xffc8a0['cleanup'])&&(console['error'](_0x58a1cb(0x1f4)),process[_0x58a1cb(0x213)](0x2)),_0xffc8a0[_0x58a1cb(0x21c)][_0x58a1cb(0x8b)]>0x0&&(_0xffc8a0[_0x58a1cb(0x176)]!==''||_0xffc8a0['cleanup'])&&(console[_0x58a1cb(0x137)](_0x58a1cb(0x24d)),process[_0x58a1cb(0x213)](0x2)),_0xffc8a0[_0x58a1cb(0x157)]&&(_0xffc8a0[_0x58a1cb(0x176)]!==''||_0xffc8a0['cleanup'])&&(console['error']('--task-automation\x20applies\x20to\x20prompts\x20only.'),process[_0x58a1cb(0x213)](0x2)),_0xffc8a0[_0x58a1cb(0x157)]&&(_0xffc8a0['headless']||_0xffc8a0[_0x58a1cb(0xd2)]||_0xffc8a0['vertical']?.[_0x58a1cb(0x12b)]()===B)&&(console[_0x58a1cb(0x137)](_0x58a1cb(0x121)),process[_0x58a1cb(0x213)](0x2)),_0xffc8a0[_0x58a1cb(0x1f2)]&&(_0xffc8a0['vertical']!==void 0x0&&_0xffc8a0[_0x58a1cb(0x109)][_0x58a1cb(0x12b)]()!==B&&(console[_0x58a1cb(0x137)](_0x58a1cb(0x7e)+B+_0x58a1cb(0x15d)+_0xffc8a0['vertical']+_0x58a1cb(0x115)),process[_0x58a1cb(0x213)](0x2)),_0xffc8a0[_0x58a1cb(0x109)]=B),_0xffc8a0['skipEnvCheck']&&_0xffc8a0[_0x58a1cb(0x176)]!=='login'&&(console[_0x58a1cb(0x137)](_0x58a1cb(0x131)),process[_0x58a1cb(0x213)](0x2)),_0xffc8a0[_0x58a1cb(0xb7)]!==_0x58a1cb(0xdd)&&!ue['includes'](_0xffc8a0[_0x58a1cb(0x176)])&&(console['error'](_0x58a1cb(0x140)+_0xffc8a0[_0x58a1cb(0xb7)]+'\x20applies\x20to\x20prompts\x20and\x20to\x20these\x20commands\x20only:\x20'+ue['filter'](Boolean)[_0x58a1cb(0xe5)](',\x20')+'.'),process[_0x58a1cb(0x213)](0x2)),(_0xffc8a0[_0x58a1cb(0x154)]!==_0x58a1cb(0xdd)||_0xffc8a0[_0x58a1cb(0x18d)])&&_0xffc8a0[_0x58a1cb(0x176)]!==''&&(console[_0x58a1cb(0x137)](_0x58a1cb(0x20e)),process['exit'](0x2)),_0xffc8a0[_0x58a1cb(0x18d)]&&_0xffc8a0[_0x58a1cb(0x154)]!==_0x58a1cb(0xc0)&&(console[_0x58a1cb(0x137)]('--replay-user-messages\x20needs\x20--input-format\x20stream-json.'),process[_0x58a1cb(0x213)](0x2)),_0xffc8a0[_0x58a1cb(0x154)]==='stream-json'&&_0xffc8a0[_0x58a1cb(0xb7)]!==_0x58a1cb(0xc0)&&(console[_0x58a1cb(0x137)](_0x58a1cb(0x1b8)),process[_0x58a1cb(0x213)](0x2)),(_0xffc8a0[_0x58a1cb(0x260)]!==void 0x0||_0xffc8a0[_0x58a1cb(0x248)]!==void 0x0||_0xffc8a0[_0x58a1cb(0x24b)])&&_0xffc8a0['subcommand']!==_0x58a1cb(0x8c)&&(console[_0x58a1cb(0x137)]('--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`delegate-cli\x20sessions`\x20only.'),process['exit'](0x2)),(_0xffc8a0[_0x58a1cb(0x1de)]!==void 0x0||_0xffc8a0[_0x58a1cb(0x26e)]!==void 0x0)&&_0xffc8a0[_0x58a1cb(0x176)]!=='delegations'&&(console[_0x58a1cb(0x137)]('--to\x20and\x20--summary\x20apply\x20to\x20`delegate-cli\x20delegations\x20create`\x20only.'),process[_0x58a1cb(0x213)](0x2)),_0xffc8a0[_0x58a1cb(0xe1)]!==void 0x0&&_0xffc8a0[_0x58a1cb(0x176)]!==_0x58a1cb(0x8c)&&(console[_0x58a1cb(0x137)](_0x58a1cb(0x195)),process[_0x58a1cb(0x213)](0x2)),_0xffc8a0[_0x58a1cb(0x25c)]=[...new Set(_0xffc8a0[_0x58a1cb(0x25c)])],_0xffc8a0['operands']=_0x2bba74,_0xffc8a0[_0x58a1cb(0xa0)]=_0x2bba74['join']('\x20'),_0xffc8a0[_0x58a1cb(0x154)]===_0x58a1cb(0xc0)&&_0xffc8a0['prompt']!==''&&(console['error']('--input-format\x20stream-json\x20reads\x20the\x20prompt\x20from\x20stdin:\x20pass\x20no\x20prompt\x20argument.'),process[_0x58a1cb(0x213)](0x2)),_0xffc8a0;}var O=_0x35ca34=>{process['stdout']['write'](_0x35ca34);};function Qt(){const _0xb999fb=_0x513ee0;let _0x37751f=process[_0xb999fb(0x1f9)][_0xb999fb(0x77)],_0x371740=_0x37751f[_0xb999fb(0x1b7)](process[_0xb999fb(0x1f9)]),_0x475a61=O;return O=_0x3e2ae0=>{_0x371740(_0x3e2ae0);},process[_0xb999fb(0x1f9)][_0xb999fb(0x77)]=(..._0x2ea472)=>process[_0xb999fb(0x8a)][_0xb999fb(0x77)](..._0x2ea472),()=>{const _0x2a53d2=_0xb999fb;process['stdout'][_0x2a53d2(0x77)]=_0x37751f,O=_0x475a61;};}function m(_0x19cbe9,_0x502e00,_0x14358c){const _0x12dc3d=_0x513ee0;if(_0x19cbe9[_0x12dc3d(0xb7)]===_0x12dc3d(0xdd)){_0x14358c(_0x502e00);return;}O(_0x77dc94(_0x502e00));}function qt(){const _0x3265d2=_0x513ee0;let _0x4af1ed=_0x3265d2(0xd6)[_0x3265d2(0x12b)]();console[_0x3265d2(0x12a)](_0x4af1ed);}function zt(){const _0x2bdb26=_0x513ee0;try{return JSON['parse'](_0x4c7126[_0x2bdb26(0x193)](_0xb9ac1b[_0x2bdb26(0xe5)](__dirname,'..',_0x2bdb26(0xfe)),_0x2bdb26(0x161)))['version']||'unknown';}catch{return _0x2bdb26(0x15b);}}var Yt=0x7d0;async function me(_0x315002,_0x4c741d){const _0x2691f0=_0x513ee0;let _0x4f34ef=_0x4c741d?[_0x4c741d]:[];for await(let _0x44701d of _0x315002)_0x4f34ef[_0x2691f0(0x268)](Buffer[_0x2691f0(0x1af)](_0x44701d));return Buffer['concat'](_0x4f34ef)[_0x2691f0(0x1c8)]('utf-8')[_0x2691f0(0x12b)]();}function Vt(_0x1f0f49,_0x1f405e){return new Promise(_0x20c1bb=>{const _0x408d30=_0xad43;let _0x476d2d=_0x59a49c=>{const _0x449781=_0xad43;clearTimeout(_0x3840ba),_0x1f0f49['off']('data',_0x500358),_0x1f0f49[_0x449781(0x145)]('end',_0x310d3b),_0x1f0f49['off'](_0x449781(0x137),_0x310d3b),_0x1f0f49['pause'](),_0x20c1bb(_0x59a49c);},_0x500358=_0x3ad8ec=>_0x476d2d(Buffer['from'](_0x3ad8ec)),_0x310d3b=()=>_0x476d2d(null),_0x3840ba=setTimeout(()=>_0x476d2d(null),_0x1f405e);_0x1f0f49['on'](_0x408d30(0xd5),_0x500358),_0x1f0f49['on'](_0x408d30(0xf4),_0x310d3b),_0x1f0f49['on'](_0x408d30(0x137),_0x310d3b),_0x1f0f49[_0x408d30(0x249)]();});}async function H(_0x27b94c,_0x17eac2,_0x4e9899=Yt){const _0x359baa=_0x513ee0;let _0x50f2b0=_0x27b94c==='-';if(!_0x50f2b0&&_0x27b94c)return _0x27b94c;if(!_0x50f2b0&&_0x17eac2[_0x359baa(0xa3)])return'';if(_0x50f2b0)return me(_0x17eac2,null);let _0x168ff6=await Vt(_0x17eac2,_0x4e9899);return _0x168ff6?me(_0x17eac2,_0x168ff6):'';}function z(){const _0x548a88=_0x513ee0;return _0xb9ac1b[_0x548a88(0xe5)](process.env.HOME||process.env.USERPROFILE||'','.aria',_0x548a88(0x201));}function G(_0x236652){const _0x3c23af=_0x513ee0;try{let _0x31e33a=JSON[_0x3c23af(0x1d0)](_0x4c7126[_0x3c23af(0x193)](_0x236652,_0x3c23af(0x161)));return!_0x31e33a[_0x3c23af(0x17a)]||!_0x31e33a[_0x3c23af(0xe0)]||!_0x31e33a[_0x3c23af(0x231)]?null:_0x31e33a;}catch{return null;}}function Xt(){const _0xc50666=_0x513ee0;let _0x3769c3=[{'file':_0x445962(),'isDesktopFallback':!0x1},{'file':z(),'isDesktopFallback':!0x0}];for(let _0x464be7 of _0x3769c3){let _0x38d628=G(_0x464be7[_0xc50666(0x24c)]);if(_0x38d628)return{..._0x464be7,'auth':_0x38d628};}return null;}async function Zt(){const _0xc6aebd=_0x513ee0;let _0x55fe44=_0x445962();if(!_0x4c7126[_0xc6aebd(0x251)](_0x55fe44)){let _0x146878=z();console[_0xc6aebd(0x12a)](G(_0x146878)?_0xc6aebd(0xcd)+_0x146878+'\x20—\x20sign\x20out\x20in\x20the\x20Delegate\x20app\x20to\x20clear\x20that.':_0xc6aebd(0xc6));return;}_0x4c7126[_0xc6aebd(0x11a)](_0x55fe44),console[_0xc6aebd(0x12a)](_0xc6aebd(0x151)+_0x55fe44);}async function en(_0x257259){const _0x56a501=_0x513ee0;let _0x5a3604=Y(),_0x39a8ca,_0x3a21da;if(_0x5a3604)_0x39a8ca=_0x5a3604,_0x3a21da='environment\x20variables\x20(AUTH_TOKEN/TENANT_ID/ORG_ID)';else{let _0x5c7a68=Xt();if(!_0x5c7a68)throw new Error(Te);_0x39a8ca=_0x5c7a68['auth'],_0x3a21da=_0x5c7a68[_0x56a501(0x1fc)]?_0x5c7a68[_0x56a501(0x24c)]+_0x56a501(0x1fd):_0x5c7a68[_0x56a501(0x24c)];}let _0xbeee49={'source':_0x3a21da,'baseUrl':_0x39a8ca[_0x56a501(0x75)]??null,'deployment':tn(_0x39a8ca['baseUrl']),'organization':{'id':_0x39a8ca['organizationId'],'slug':_0x39a8ca[_0x56a501(0x1cf)]??null},'tenant':{'id':_0x39a8ca[_0x56a501(0xe0)],'name':_0x39a8ca[_0x56a501(0x71)]??null},'tokenExpiresAt':_0x39a8ca['expiresAt']?new Date(_0x39a8ca['expiresAt']*0x3e8)[_0x56a501(0x1aa)]():null};m(_0x257259,_0xbeee49,()=>{const _0x41010c=_0x56a501;let _0x12b0e5=[_0x41010c(0x1f6)+_0x3a21da,_0x41010c(0x1e2)+(_0x39a8ca[_0x41010c(0x75)]??'unknown'),_0x41010c(0x1dc)+_0xbeee49[_0x41010c(0x243)],_0x41010c(0x80)+(_0x39a8ca[_0x41010c(0x1cf)]??_0x41010c(0x246))+'\x20('+_0x39a8ca['organizationId']+')',_0x41010c(0x1a6)+(_0x39a8ca[_0x41010c(0x71)]??_0x41010c(0x246))+'\x20('+_0x39a8ca[_0x41010c(0xe0)]+')'];if(_0x39a8ca[_0x41010c(0x22e)]){let _0xbbb4f5=_0x39a8ca[_0x41010c(0x22e)]-Math['floor'](Date[_0x41010c(0x9a)]()/0x3e8);_0x12b0e5[_0x41010c(0x268)](_0xbbb4f5>0x0?'Token:\x20\x20\x20\x20\x20\x20\x20\x20expires\x20'+_0xbeee49[_0x41010c(0x1f8)]+_0x41010c(0x91)+Math[_0x41010c(0xcf)](_0xbbb4f5/0x3c)+_0x41010c(0xaa):_0x41010c(0x1c4)+_0xbeee49[_0x41010c(0x1f8)]);}process[_0x41010c(0x1f9)][_0x41010c(0x77)](_0x12b0e5[_0x41010c(0xe5)]('\x0a')+'\x0a');});}var Te=_0x513ee0(0x159);function tn(_0x2f8cb4){const _0x9fd5c3=_0x513ee0;return _0x2f8cb4?_0x5b07be(_0x2f8cb4)?'UiPath\x20Cloud':_0x9fd5c3(0x25e):_0x9fd5c3(0x15b);}function Y(){let _0x12cc9c=process.env.AUTH_TOKEN_FILE;return(process.env.AUTH_TOKEN||_0x12cc9c)&&process.env.TENANT_ID&&process.env.ORG_ID?{'accessToken':_0x12cc9c?nn(_0x12cc9c):process.env.AUTH_TOKEN,..._0x12cc9c?{'accessTokenFile':_0x12cc9c}:{},'tenantId':process.env.TENANT_ID,'organizationId':process.env.ORG_ID,'orgLogicalName':process.env.ORG_SLUG,'tenantName':process.env.TENANT_SLUG,'baseUrl':Ue()}:null;}function nn(_0x12921b){const _0x250f5e=_0x513ee0;let _0x585fd6;try{_0x585fd6=_0x4c7126['readFileSync'](_0x12921b,_0x250f5e(0x161))[_0x250f5e(0x12b)]();}catch(_0x48ba1c){throw new Error('AUTH_TOKEN_FILE\x20\x27'+_0x12921b+_0x250f5e(0x1f1)+_0x48ba1c['message']);}let _0x292f63=_0x585fd6['startsWith'](_0x250f5e(0x253))?_0x585fd6[_0x250f5e(0x125)](0x7)['trim']():_0x585fd6;if(!_0x292f63)throw new Error(_0x250f5e(0x23b)+_0x12921b+'\x27\x20is\x20empty.');return _0x292f63;}function Ue(){const _0x5ca46=_0x513ee0;let _0x22c053=process.env.UIPATH_BASE_URL;if(!_0x22c053)return;let _0x4c7fab=_0x428758(_0x22c053);if(_0x4c7fab['ok']===!0x1)throw new Error(_0x5ca46(0x11c)+_0x5091f3(_0x22c053,_0x4c7fab['rejection']));return _0x4c7fab['baseUrl'];}async function V(){let _0x2ca1db=Y();if(_0x2ca1db)return _0x2ca1db;let _0x746c3=await _0x44d450();if(_0x746c3)return _0x746c3;throw new Error(Te);}async function sn(){const _0x17d3b6=_0x513ee0;await new _0x46324e()['stop']({'force':!0x0}),console['log'](_0x17d3b6(0x1a1));}function X(_0x15b978,_0x493d3f,_0x433588){const _0x1bddb2=_0x513ee0;_0x15b978?process[_0x1bddb2(0x8a)]['write'](_0x1bddb2(0x72)+_0x15b978+_0x1bddb2(0xf5)+_0x433588+'\x0a'):!_0x493d3f&&!process.env.BACKEND_URL&&process[_0x1bddb2(0x8a)][_0x1bddb2(0x77)](_0x1bddb2(0x13b)+_0x433588+'\x0a');}async function $(_0x5f0a0a){const _0x1a4ad2=_0x513ee0;let _0x778a70=await V(),_0x5b8dc7=_0x7ee8d8(_0x5f0a0a[_0x1a4ad2(0xc7)],_0x778a70,_0x5f0a0a[_0x1a4ad2(0x16f)]);return X(_0x5f0a0a[_0x1a4ad2(0xc7)],_0x5f0a0a['backendUrl'],_0x5b8dc7),{'auth':_0x778a70,'backendUrl':_0x5b8dc7,'client':_0x32e714({'auth':_0x778a70,'backendUrl':_0x5b8dc7})};}async function on(_0x33d1c9){const _0x1365c3=_0x513ee0;let {client:_0x24e6d2}=await $(_0x33d1c9),[_0x3a5bc1,_0x472675]=await Promise[_0x1365c3(0x18a)]([_0x3f3a88(_0x24e6d2),_0x562875(_0x24e6d2)[_0x1365c3(0xb5)](_0x40c031=>(process[_0x1365c3(0x8a)][_0x1365c3(0x77)]('Could\x20not\x20check\x20BYO\x20model\x20warnings:\x20'+(_0x40c031 instanceof Error?_0x40c031['message']:String(_0x40c031))+'\x0a'),{}))]),_0x52e147=_0x3a5bc1[_0x1365c3(0x27e)](_0x4d926b=>_0x472675[_0x4d926b['id']]?{..._0x4d926b,'byoWarning':_0x472675[_0x4d926b['id']]}:_0x4d926b);m(_0x33d1c9,_0x52e147,rn);}function rn(_0x5d9a9c){const _0x49f96e=_0x513ee0;if(_0x5d9a9c[_0x49f96e(0x8b)]===0x0){process['stderr'][_0x49f96e(0x77)]('No\x20models\x20available\x20for\x20this\x20product/tenant.\x0a');return;}process[_0x49f96e(0x1f9)][_0x49f96e(0x77)](_0x49f96e(0xa9)+_0x5d9a9c[_0x49f96e(0x8b)]+_0x49f96e(0x19f));for(let _0x1e92f3 of _0x5d9a9c){let _0x329e03=_0x1e92f3[_0x49f96e(0x16c)]&&_0x1e92f3[_0x49f96e(0x16c)]!==_0x1e92f3['id']?'\x20('+_0x1e92f3[_0x49f96e(0x16c)]+')':'';process['stdout'][_0x49f96e(0x77)]('\x20\x20'+_0x1e92f3['id']+_0x329e03+'\x0a'),_0x1e92f3[_0x49f96e(0xb9)]&&process['stdout'][_0x49f96e(0x77)](_0x49f96e(0x166)+_0x1e92f3[_0x49f96e(0xb9)]+'\x0a'),_0x1e92f3[_0x49f96e(0x230)]&&process[_0x49f96e(0x1f9)][_0x49f96e(0x77)](_0x49f96e(0x11d)+(_0x1e92f3[_0x49f96e(0x119)]?'\x20('+_0x1e92f3[_0x49f96e(0x119)]+')':'')+'\x0a'),_0x1e92f3[_0x49f96e(0x220)]&&process['stdout']['write']('\x20\x20\x20\x20BYO\x20warning:\x20'+_0x1e92f3['byoWarning']+'\x0a');}process[_0x49f96e(0x1f9)][_0x49f96e(0x77)]('\x0aUse\x20with:\x20delegate-cli\x20--model\x20<id>\x20\x22<prompt>\x22\x0a');}var fe=[_0x513ee0(0x183),_0x513ee0(0x27d),_0x513ee0(0xf8),_0x513ee0(0x177),_0x513ee0(0x171),_0x513ee0(0x16a)];async function an(_0x28f3d8){const _0x59d6b=_0x513ee0;let [_0x1d9c36='',_0x47716c='',..._0x19cda8]=_0x28f3d8[_0x59d6b(0x1e6)];if(_0x1d9c36&&!fe[_0x59d6b(0x1c0)](_0x1d9c36)&&(console[_0x59d6b(0x137)](_0x59d6b(0x19a)+_0x1d9c36+_0x59d6b(0xa2)+fe['join'](_0x59d6b(0x9d))+'.'),process[_0x59d6b(0x213)](0x2)),_0x28f3d8[_0x59d6b(0xe1)]!==void 0x0&&_0x1d9c36!==_0x59d6b(0x171)&&(console[_0x59d6b(0x137)](_0x59d6b(0x195)),process[_0x59d6b(0x213)](0x2)),_0x1d9c36&&_0x1d9c36!=='list'){await ln(_0x28f3d8,_0x1d9c36,_0x47716c,_0x19cda8[_0x59d6b(0xe5)]('\x20')[_0x59d6b(0x12b)]());return;}_0x28f3d8[_0x59d6b(0x1e6)][_0x59d6b(0x8b)]>0x1&&(console['error']('Usage:\x20delegate-cli\x20sessions\x20[list]\x20[--page\x20N]\x20[--limit\x20N]\x20[--include-subagents]'),process[_0x59d6b(0x213)](0x2));let {client:_0x32d3e1}=await $(_0x28f3d8),_0x12d527=await _0x2c68e4(_0x32d3e1,{'page':_0x28f3d8[_0x59d6b(0x260)],'pageSize':_0x28f3d8['limit'],'includeSubAgents':_0x28f3d8[_0x59d6b(0x24b)]});m(_0x28f3d8,_0x12d527,pn);}async function ln(_0x1565e4,_0x3c4c52,_0x46387c,_0x4c6362){const _0x4760dc=_0x513ee0;if((_0x1565e4[_0x4760dc(0x260)]!==void 0x0||_0x1565e4[_0x4760dc(0x248)]!==void 0x0||_0x1565e4['includeSubAgents'])&&(console[_0x4760dc(0x137)]('--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`delegate-cli\x20sessions\x20[list]`\x20only.'),process[_0x4760dc(0x213)](0x2)),_0x3c4c52===_0x4760dc(0x171)){await dn(_0x1565e4,_0x46387c,_0x4c6362);return;}if(_0x3c4c52===_0x4760dc(0x16a)){await un(_0x1565e4,_0x46387c,_0x4c6362);return;}(!_0x46387c||_0x3c4c52===_0x4760dc(0xf8)!=!!_0x4c6362)&&(console[_0x4760dc(0x137)](_0x4760dc(0xef)+_0x3c4c52+_0x4760dc(0x208)+(_0x3c4c52===_0x4760dc(0xf8)?'\x20<title>':'')),process[_0x4760dc(0x213)](0x2));let {client:_0x123cc0}=await $(_0x1565e4);try{if(_0x3c4c52==='show'){let _0x1fb26a=await _0x14bea9(_0x123cc0,_0x46387c);_0x1fb26a||ge(_0x46387c),m(_0x1565e4,_0x1fb26a,cn);}else{if(_0x3c4c52===_0x4760dc(0xf8)){let _0x2e5664=await _0x534cca(_0x123cc0,_0x46387c,_0x4c6362);m(_0x1565e4,_0x2e5664,_0x520a1b=>{const _0x376781=_0x4760dc;process['stdout']['write'](_0x376781(0x263)+_0x520a1b['id']+':\x20'+_0x520a1b[_0x376781(0x93)]+'\x0a');});}else await _0x465cf3(_0x123cc0,_0x46387c),await _0x1d16ec(_0x46387c,_0x1565e4[_0x4760dc(0x218)]),m(_0x1565e4,{'id':_0x46387c,'deleted':!0x0},_0x3e75f3=>{const _0x3b6f8e=_0x4760dc;process[_0x3b6f8e(0x1f9)]['write']('Deleted\x20session\x20'+_0x3e75f3['id']+'.\x0a');});}}catch(_0x5cbf54){if(!_0x289d0c(_0x5cbf54,0x194))throw _0x5cbf54;ge(_0x46387c);}}function ge(_0x24f4e4){const _0x45084e=_0x513ee0;console[_0x45084e(0x137)](_0x45084e(0xe2)+_0x24f4e4+_0x45084e(0x1c1)),process[_0x45084e(0x213)](0x1);}function cn(_0x7713c6){const _0x2254ff=_0x513ee0;process[_0x2254ff(0x1f9)]['write'](_0x2254ff(0x175)+_0x7713c6['id']+'\x0a'),process['stdout'][_0x2254ff(0x77)](_0x2254ff(0x255)+_0x7713c6[_0x2254ff(0x93)]+'\x0a'),process[_0x2254ff(0x1f9)][_0x2254ff(0x77)]('Owner\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x7713c6[_0x2254ff(0x9e)]+'\x0a'),process[_0x2254ff(0x1f9)][_0x2254ff(0x77)](_0x2254ff(0x226)+_0x7713c6[_0x2254ff(0x231)]+'\x0a'),_0x7713c6[_0x2254ff(0x1a4)]&&process[_0x2254ff(0x1f9)]['write']('Delegation\x20\x20\x20\x20'+_0x7713c6[_0x2254ff(0x1a4)]+'\x0a');}async function dn(_0xae544f,_0x5c995d,_0x340711){const _0x3826de=_0x513ee0;(!_0x5c995d||_0x340711||!_0xae544f[_0x3826de(0xe1)])&&(console[_0x3826de(0x137)](_0x3826de(0x229)),process[_0x3826de(0x213)](0x2));let {client:_0x1a6f0a}=await $(_0xae544f),_0x448a6f=await _0x13b50c(_0x1a6f0a,_0x5c995d,_0xae544f[_0x3826de(0xe1)]);m(_0xae544f,{'sessionId':_0x5c995d,'turnId':_0xae544f[_0x3826de(0xe1)],'cancelled':_0x448a6f},_0x3f3293=>{const _0x297d2a=_0x3826de;_0x3f3293[_0x297d2a(0x10b)]?process[_0x297d2a(0x1f9)][_0x297d2a(0x77)](_0x297d2a(0x6e)+_0x3f3293['turnId']+_0x297d2a(0x21b)+_0x3f3293[_0x297d2a(0x240)]+'.\x0a'):process['stderr'][_0x297d2a(0x77)](_0x297d2a(0x27a)+_0x3f3293[_0x297d2a(0xe1)]+_0x297d2a(0x142)+_0x3f3293[_0x297d2a(0x240)]+'.\x0a');}),_0x448a6f||(process[_0x3826de(0x20b)]=0x1);}async function un(_0x6c741a,_0x4d7825,_0x3468f5){const _0x29a65d=_0x513ee0;(!_0x4d7825||/\s/[_0x29a65d(0xec)](_0x3468f5))&&(console['error'](_0x29a65d(0x20a)),process[_0x29a65d(0x213)](0x2));let {client:_0x4c3fdc}=await $(_0x6c741a),_0x573786;try{_0x573786=await _0x41eccb(_0x4c3fdc,_0x4d7825,{'atMessageId':_0x3468f5||void 0x0});}catch(_0x17b41f){if(!_0x289d0c(_0x17b41f,0x194))throw _0x17b41f;console['error']('Session\x20'+_0x4d7825+_0x29a65d(0x1e8)+(_0x3468f5?_0x29a65d(0x214)+_0x3468f5:'')+'.'),process[_0x29a65d(0x213)](0x1);}m(_0x6c741a,_0x573786,_0xa8f717=>{const _0x36bbaf=_0x29a65d;process[_0x36bbaf(0x1f9)][_0x36bbaf(0x77)]('Forked\x20'+_0x4d7825+_0x36bbaf(0x1ab)+_0xa8f717['id']+'.\x0a'),process['stderr']['write'](_0x36bbaf(0x123)+_0xa8f717['id']+'\x20\x22<prompt>\x22\x0a');});}function pn({sessions:_0x399311,page:_0x1fc674,isLastPage:_0x39b6ad}){const _0x4e00f4=_0x513ee0;if(_0x399311[_0x4e00f4(0x8b)]===0x0)process[_0x4e00f4(0x8a)][_0x4e00f4(0x77)](_0x4e00f4(0xe4)+_0x1fc674+'.\x0a');else{process['stdout'][_0x4e00f4(0x77)]('ID'[_0x4e00f4(0x129)](0x24)+'\x20\x20'+_0x4e00f4(0xab)[_0x4e00f4(0x129)](0x13)+_0x4e00f4(0x194));for(let _0x51a171 of _0x399311){let _0x36a0d2=_0x51a171[_0x4e00f4(0x85)][_0x4e00f4(0x6f)]('T','\x20')[_0x4e00f4(0x125)](0x0,0x13),_0x5613ec=_0x51a171['parentSessionId']?_0x4e00f4(0xed)+_0x51a171[_0x4e00f4(0x95)]+')':'';process['stdout'][_0x4e00f4(0x77)](_0x51a171['id']['padEnd'](0x24)+'\x20\x20'+_0x36a0d2[_0x4e00f4(0x129)](0x13)+'\x20\x20'+_0x51a171['title']+_0x5613ec+'\x0a');}}_0x39b6ad||process[_0x4e00f4(0x8a)][_0x4e00f4(0x77)](_0x4e00f4(0xcb)+(_0x1fc674+0x1)+'\x0a');}async function mn(_0x4e7ba6){const _0x9d1574=_0x513ee0;let _0x4a8b25=await V(),_0x2bed0f=_0x7ee8d8(_0x4e7ba6[_0x9d1574(0xc7)],_0x4a8b25,_0x4e7ba6[_0x9d1574(0x16f)]);X(_0x4e7ba6[_0x9d1574(0xc7)],_0x4e7ba6[_0x9d1574(0x16f)],_0x2bed0f);let _0x1a0a61=await _0x4c4ecd({'auth':_0x4a8b25,'backendUrl':_0x2bed0f,'interop':_0x4e7ba6[_0x9d1574(0x110)]?_0x9d1574(0x141):_0x9d1574(0x8f)});m(_0x4e7ba6,_0x1a0a61,({checks:_0x429635})=>{const _0x56dd86=_0x9d1574;for(let _0x19b8bd of _0x429635)process[_0x56dd86(0x1f9)][_0x56dd86(0x77)](fn(_0x19b8bd)+'\x0a');}),_0x1a0a61['ok']||process['exit'](0x1);}function fn(_0x5e55cb){const _0x5863d4=_0x513ee0;return{'ok':'✓','failed':'✗','skipped':'-'}[_0x5e55cb[_0x5863d4(0x23d)]]+'\x20'+_0x5e55cb[_0x5863d4(0x16c)][_0x5863d4(0x129)](0xa)+_0x5e55cb['detail'];}var gn=['','activity',_0x513ee0(0x86)];async function hn(_0x1f3dea){const _0x93da23=_0x513ee0;let _0x402b9d=_0x1f3dea[_0x93da23(0xa0)];gn[_0x93da23(0x1c0)](_0x402b9d)||(console['error']('Unknown\x20usage\x20view:\x20'+_0x1f3dea[_0x93da23(0xa0)]+_0x93da23(0xb4)),process[_0x93da23(0x213)](0x2)),_0x402b9d===''&&_0x1f3dea[_0x93da23(0x1ce)]!==void 0x0&&(console[_0x93da23(0x137)](_0x93da23(0x111)),process[_0x93da23(0x213)](0x2)),_0x402b9d!==''&&_0x1f3dea[_0x93da23(0x240)]!==void 0x0&&(console[_0x93da23(0x137)](_0x93da23(0x1ec)),process[_0x93da23(0x213)](0x2));let {client:_0x4d7eeb}=await $(_0x1f3dea);if(_0x402b9d===_0x93da23(0x156)){m(_0x1f3dea,await _0x2e0045(_0x4d7eeb,{'days':_0x1f3dea[_0x93da23(0x1ce)]}),wn);return;}if(_0x402b9d===_0x93da23(0x86)){m(_0x1f3dea,await _0x38e7bb(_0x4d7eeb,{'days':_0x1f3dea['days']}),kn);return;}let [_0x2afcd5,_0x55fa2a,_0x1f8f86]=await Promise[_0x93da23(0x18a)]([_0x18d0b0(_0x4d7eeb,{'sessionId':_0x1f3dea[_0x93da23(0x240)]}),_0xab1f80(_0x4d7eeb),_0x12f33a(_0x4d7eeb)]);m(_0x1f3dea,{'licensing':_0x2afcd5,'monthlySpending':_0x55fa2a,'cartographerAllowance':_0x1f8f86},yn);}function yn(_0x2f59b4){const _0x59d1a5=_0x513ee0;let {licensing:_0x362026,monthlySpending:_0x2f81db,cartographerAllowance:_0x5050d8}=_0x2f59b4,_0x20d54f=[_0x362026[_0x59d1a5(0x6c)]?_0x59d1a5(0x1b6)+_0x362026[_0x59d1a5(0x89)][_0x59d1a5(0x133)](0x1)+_0x59d1a5(0x266)+(_0x362026[_0x59d1a5(0x1a3)]??0x0)+_0x59d1a5(0x221)+(_0x362026[_0x59d1a5(0x1e9)]>0x0?',\x20'+_0x362026[_0x59d1a5(0x1e9)]+_0x59d1a5(0x164):'')+_0x59d1a5(0x12f)+_0x362026[_0x59d1a5(0x186)]+')':_0x59d1a5(0x1ef),_0x59d1a5(0x152)+_0x2f81db['monthly_spend_usd'][_0x59d1a5(0x133)](0x2)+_0x59d1a5(0x16d)+(_0x2f81db[_0x59d1a5(0x6c)]&&_0x2f81db[_0x59d1a5(0x12c)]!==null?'\x20of\x20a\x20$'+_0x2f81db[_0x59d1a5(0x12c)]['toFixed'](0x2)+'\x20cap':_0x59d1a5(0xbf)),_0x59d1a5(0x106)+_0x5050d8[_0x59d1a5(0x114)]+'\x20('+_0x5050d8[_0x59d1a5(0x167)]+')'];_0x362026[_0x59d1a5(0x181)]!==null&&_0x362026[_0x59d1a5(0x181)]!==void 0x0&&_0x20d54f['push']('Session:\x20\x20\x20\x20\x20\x20'+_0x362026[_0x59d1a5(0x181)]+_0x59d1a5(0xdb)),process[_0x59d1a5(0x1f9)][_0x59d1a5(0x77)](_0x20d54f[_0x59d1a5(0xe5)]('\x0a')+'\x0a');}function _0xad43(_0x3d6ee5,_0xec9a03){_0x3d6ee5=_0x3d6ee5-0x6c;const _0xef32d5=_0xef32();let _0xad438e=_0xef32d5[_0x3d6ee5];return _0xad438e;}function wn(_0x183eb8){const _0x327981=_0x513ee0;let _0x12186d=[_0x327981(0xc8)+_0x183eb8[_0x327981(0xc9)]+_0x327981(0x12d)+_0x183eb8[_0x327981(0xf6)]+_0x327981(0x275)+_0x183eb8['active_days']+'\x20active\x20days','Cost:\x20\x20\x20$'+_0x183eb8[_0x327981(0x202)][_0x327981(0x133)](0x2)+_0x327981(0x264)+_0x183eb8['estimated_cost_usd'][_0x327981(0x133)](0x2)+_0x327981(0x279)+_0x183eb8[_0x327981(0x1d1)]+_0x327981(0x150),_0x327981(0x11e)+_0x183eb8[_0x327981(0xc1)]+_0x327981(0xa6)+_0x183eb8[_0x327981(0x1e5)]+_0x327981(0x18f)];for(let [_0x5b7ca5,_0x1d81ea]of Object['entries'](_0x183eb8[_0x327981(0x182)]))_0x12186d[_0x327981(0x268)]('\x20\x20'+_0x5b7ca5+':\x20'+_0x1d81ea+_0x327981(0x14d));process[_0x327981(0x1f9)][_0x327981(0x77)](_0x12186d['join']('\x0a')+'\x0a');}function kn(_0x577dc2){const _0x55b619=_0x513ee0;if(_0x577dc2[_0x55b619(0x26c)]['length']===0x0){process[_0x55b619(0x1f9)][_0x55b619(0x77)](_0x55b619(0x136)+_0x577dc2[_0x55b619(0xc9)]+'\x20days.\x0a');return;}let _0x72eb53=[_0x55b619(0x274)];for(let _0x2dab04 of _0x577dc2['daily_usage'])_0x72eb53['push'](_0x2dab04[_0x55b619(0x24f)]+'\x20\x20'+String(_0x2dab04[_0x55b619(0x223)])['padStart'](0xb)+'\x20\x20'+String(_0x2dab04[_0x55b619(0x118)])['padStart'](0xd)+'\x20\x20'+String(_0x2dab04[_0x55b619(0x23c)])[_0x55b619(0x8e)](0x11));process[_0x55b619(0x1f9)]['write'](_0x72eb53[_0x55b619(0xe5)]('\x0a')+'\x0a');}async function bn(_0x10316a,_0x393726){const _0x9f8a1d=_0x513ee0;let _0x2befe3=await Sn(_0x10316a[_0x9f8a1d(0xa0)],_0x393726);_0x10316a[_0x9f8a1d(0x203)]&&(_0x2befe3[_0x9f8a1d(0x203)]=_0x10316a[_0x9f8a1d(0x203)]);let {client:_0x7aab8e}=await $(_0x10316a);try{_0x393726===_0x9f8a1d(0x1c5)?m(_0x10316a,await _0x18b7ab(_0x7aab8e,_0x2befe3,void 0x0),An):_0x393726===_0x9f8a1d(0x27b)?m(_0x10316a,await _0x192f3e(_0x7aab8e,_0x2befe3,void 0x0),En):m(_0x10316a,await _0x56e1b3(_0x7aab8e,_0x2befe3,void 0x0),$n);}catch(_0x5da8b4){if(!_0x684f8b(_0x5da8b4))throw _0x5da8b4;console['error'](_0x5da8b4['message']),process[_0x9f8a1d(0x213)](0x1);}}async function Sn(_0x5bb13f,_0xcee266){const _0x3e882a=_0x513ee0;let _0x37b790;try{_0x37b790=_0x5bb13f&&_0x5bb13f!=='-'?_0x4c7126[_0x3e882a(0x193)](_0xb9ac1b[_0x3e882a(0x1be)](_0x5bb13f),_0x3e882a(0x161)):await H(_0x5bb13f,process['stdin']);}catch(_0x5d490d){console[_0x3e882a(0x137)](_0xcee266+_0x3e882a(0x1a9)+_0x5d490d[_0x3e882a(0x185)]+').'),process[_0x3e882a(0x213)](0x2);}return _0x37b790||(console[_0x3e882a(0x137)](_0xcee266+_0x3e882a(0x1b5)+_0xcee266+_0x3e882a(0x1b2)),process['exit'](0x2)),De(_0x37b790,_0xcee266,_0x3e882a(0x1d4));}function De(_0x5c2a20,_0x3990cf,_0x15197b){const _0x50f8c1=_0x513ee0;let _0x442a45;try{_0x442a45=JSON[_0x50f8c1(0x1d0)](_0x5c2a20);}catch(_0x3ce4d8){console[_0x50f8c1(0x137)](_0x3990cf+':\x20'+_0x15197b+'\x20is\x20not\x20valid\x20JSON\x20('+_0x3ce4d8[_0x50f8c1(0x185)]+').'),process[_0x50f8c1(0x213)](0x2);}return(typeof _0x442a45!=_0x50f8c1(0x7f)||_0x442a45===null||Array[_0x50f8c1(0x1f7)](_0x442a45))&&(console['error'](_0x3990cf+':\x20'+_0x15197b+'\x20must\x20be\x20a\x20JSON\x20object.'),process[_0x50f8c1(0x213)](0x2)),_0x442a45;}function Ne(_0x2e50ac,_0x3f50c7){const _0x106d4f=_0x513ee0;let _0x2d3e19;try{_0x2d3e19=_0x4c7126[_0x106d4f(0x193)](_0xb9ac1b[_0x106d4f(0x1be)](_0x2e50ac),'utf-8');}catch(_0x5660b5){console[_0x106d4f(0x137)](_0x3f50c7+_0x106d4f(0x1c9)+_0x5660b5[_0x106d4f(0x185)]+').'),process[_0x106d4f(0x213)](0x2);}return De(_0x2d3e19,_0x3f50c7,'the\x20JSON\x20schema');}async function vn(_0x39dfde){const _0x156c77=_0x513ee0;_0x39dfde[_0x156c77(0x242)]===void 0x0&&(console[_0x156c77(0x137)](_0x156c77(0xba)),process[_0x156c77(0x213)](0x2));let _0x28b3e0=Ne(_0x39dfde[_0x156c77(0x242)],_0x156c77(0x10d)),_0x12a9b1=(await H(_0x39dfde['prompt'],process[_0x156c77(0xe9)]))['trim']();_0x12a9b1||(console[_0x156c77(0x137)](_0x156c77(0x1f5)),process['exit'](0x2));let {client:_0x46d46f}=await $(_0x39dfde);try{let _0x5dfe1f=await _0x1ffbc8(_0x46d46f,{'prompt':_0x12a9b1,'jsonSchema':_0x28b3e0,'model':_0x39dfde[_0x156c77(0x203)]||process.env.MODEL||_0x448847,..._0x39dfde[_0x156c77(0x240)]!==void 0x0&&{'sessionId':_0x39dfde[_0x156c77(0x240)]}},void 0x0);m(_0x39dfde,_0x5dfe1f,_0x51e49e=>{const _0x53f072=_0x156c77;process[_0x53f072(0x1f9)][_0x53f072(0x77)](JSON[_0x53f072(0x217)](_0x51e49e['structured'],null,0x2)+'\x0a');});}catch(_0x200952){if(!_0x1ecf21(_0x200952))throw _0x200952;console[_0x156c77(0x137)](_0x200952['message']),process[_0x156c77(0x213)](0x1);}}function Z(_0x414270){const _0x354061=_0x513ee0;process['stdout'][_0x354061(0x77)](_0x354061(0xbc)+_0x414270[_0x354061(0x203)]+'\x20('+_0x414270[_0x354061(0x21e)]+_0x354061(0x88)+_0x414270[_0x354061(0xe3)][_0x354061(0x13f)]+_0x354061(0x1d9));}function An(_0x481043){const _0x4a1045=_0x513ee0;Z(_0x481043);for(let _0x689a49 of Object['keys'](_0x481043[_0x4a1045(0x180)])){let _0x15b4df=_0x481043['answers'][_0x689a49],_0x52d5a1=_0x15b4df['type']==='probability'?_0x4a1045(0xac)+_0x15b4df[_0x4a1045(0x178)][_0x4a1045(0x133)](0x2):_0x15b4df[_0x4a1045(0x1a7)]===_0x4a1045(0x92)?_0x4a1045(0xfb)+_0x15b4df[_0x4a1045(0x92)]+'\x20(confidence\x20'+_0x15b4df[_0x4a1045(0x14a)]['toFixed'](0x2)+')':_0x4a1045(0x12e)+_0x15b4df['score'][_0x4a1045(0x133)](0x2)+_0x4a1045(0x27c)+_0x15b4df[_0x4a1045(0x14a)]['toFixed'](0x2)+')';process[_0x4a1045(0x1f9)][_0x4a1045(0x77)]('\x20\x20'+_0x689a49+':\x20'+_0x52d5a1+'\x0a');}}function En(_0x4505a6){const _0x44eec9=_0x513ee0;Z(_0x4505a6),_0x4505a6[_0x44eec9(0x239)][_0x44eec9(0x24a)]((_0xe952ba,_0x549ecd)=>{const _0x65731c=_0x44eec9;process[_0x65731c(0x1f9)]['write']('\x20\x20'+(_0x549ecd+0x1)+'.\x20'+_0xe952ba['id']+'\x20\x20'+_0xe952ba[_0x65731c(0x17f)][_0x65731c(0x133)](0x3)+_0x65731c(0xc4)+_0xe952ba[_0x65731c(0x18e)]+')\x0a');});}function $n(_0x34196f){const _0x50414d=_0x513ee0;Z(_0x34196f),process[_0x50414d(0x1f9)][_0x50414d(0x77)](_0x50414d(0x26a)+_0x34196f[_0x50414d(0x25f)]+'\x0a');for(let _0x3fbd93 of _0x34196f['results'])process[_0x50414d(0x1f9)]['write']('\x20\x20'+_0x3fbd93['id']+':\x20'+_0x3fbd93['verdict']+_0x50414d(0x27c)+_0x3fbd93['confidence'][_0x50414d(0x133)](0x2)+')\x0a');}async function xn(_0x534221){const _0x18b509=_0x513ee0;let _0x274dd3=_0x534221[_0x18b509(0xa0)][_0x18b509(0x12b)]();_0x274dd3||(console[_0x18b509(0x137)]('transcribe\x20needs\x20audio:\x20delegate-cli\x20transcribe\x20<file>,\x20or\x20-\x20to\x20read\x20stdin.'),process[_0x18b509(0x213)](0x2));let {client:_0x1bdf60}=await $(_0x534221);try{let _0x7934be=_0x274dd3==='-'?{'data':await In(process[_0x18b509(0xe9)])}:_0x274dd3;m(_0x534221,await _0x3c7f99(_0x1bdf60,_0x7934be,void 0x0),_0x1169f2=>{const _0xb3c9d6=_0x18b509;process[_0xb3c9d6(0x1f9)][_0xb3c9d6(0x77)](_0x1169f2[_0xb3c9d6(0xdd)]+'\x0a');});}catch(_0x376f0d){if(_0x2b12bf(_0x376f0d)&&(console[_0x18b509(0x137)](_0x376f0d[_0x18b509(0x185)]),process['exit'](_0x376f0d[_0x18b509(0x23d)]===void 0x0?0x2:0x1)),typeof _0x376f0d?.[_0x18b509(0x99)]!=_0x18b509(0x1a2))throw _0x376f0d;console[_0x18b509(0x137)](_0x18b509(0x188)+_0x274dd3+'\x20('+_0x376f0d[_0x18b509(0x185)]+').'),process[_0x18b509(0x213)](0x2);}}async function In(_0xfe7f10){const _0x319d83=_0x513ee0;let _0x598578=[];for await(let _0x42b65c of _0xfe7f10)_0x598578[_0x319d83(0x268)](Buffer[_0x319d83(0x1af)](_0x42b65c));return Buffer[_0x319d83(0x1e7)](_0x598578);}var he=['list',_0x513ee0(0x265),_0x513ee0(0x27d),_0x513ee0(0xb2),_0x513ee0(0x139),_0x513ee0(0x10d),_0x513ee0(0x258),_0x513ee0(0x9f),_0x513ee0(0x171),_0x513ee0(0x177)],ye={'list':'delegations\x20list\x20<backend-project-id>','pending':_0x513ee0(0x20d),'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':_0x513ee0(0xf0),'complete':'delegations\x20complete\x20<delegation-id>\x20\x22<answer>\x22|-','accept':'delegations\x20accept\x20<delegation-id>','dismiss':_0x513ee0(0x280),'cancel':_0x513ee0(0x1ae),'delete':_0x513ee0(0xce)};async function Tn(_0x4ea2f5){const _0x2729ac=_0x513ee0;let [_0x425368='',_0x3af6e2='',..._0xb69dfe]=_0x4ea2f5[_0x2729ac(0x1e6)];he['includes'](_0x425368)||(console['error']((_0x425368?_0x2729ac(0x9c)+_0x425368+'.\x20':'')+_0x2729ac(0x200)+he[_0x2729ac(0xe5)](_0x2729ac(0x9d))+'.'),process[_0x2729ac(0x213)](0x2));let _0x131657=_0x425368;_0x131657!=='create'&&(_0x4ea2f5[_0x2729ac(0x1de)]!==void 0x0||_0x4ea2f5['contextSummary']!==void 0x0||_0x4ea2f5[_0x2729ac(0x240)]!==void 0x0)&&(console['error']('--to,\x20--summary\x20and\x20--session\x20apply\x20to\x20`delegate-cli\x20delegations\x20create`\x20only.'),process[_0x2729ac(0x213)](0x2));let _0x4038a2=(_0x131657===_0x2729ac(0xb2)?_0x4ea2f5[_0x2729ac(0x1e6)][_0x2729ac(0x125)](0x1):_0xb69dfe)[_0x2729ac(0xe5)]('\x20')[_0x2729ac(0x12b)](),_0x2752f6=_0x131657==='create'||_0x131657===_0x2729ac(0x10d);(_0x131657!==_0x2729ac(0xb2)&&!_0x3af6e2||(_0x2752f6?!_0x4038a2:_0x4038a2)||_0x131657==='create'&&!_0x4ea2f5[_0x2729ac(0x240)])&&(console[_0x2729ac(0x137)](_0x2729ac(0x18c)+ye[_0x131657]),process['exit'](0x2));let _0x26499b=_0x2752f6&&_0x4038a2==='-'?(await H('-',process['stdin']))[_0x2729ac(0x12b)]():_0x4038a2;_0x2752f6&&!_0x26499b&&(console[_0x2729ac(0x137)](_0x2729ac(0x18c)+ye[_0x131657]+'\x20(stdin\x20was\x20empty)'),process[_0x2729ac(0x213)](0x2));let {client:_0x1177ae}=await $(_0x4ea2f5);try{await Un(_0x4ea2f5,_0x1177ae,_0x131657,_0x3af6e2,_0x26499b);}catch(_0x28a5e9){if(!_0x3cef1c(_0x28a5e9))throw _0x28a5e9;console[_0x2729ac(0x137)](_0x28a5e9[_0x2729ac(0x185)]),process['exit'](0x1);}}async function Un(_0x5a9226,_0x5dd9d8,_0x49172e,_0x4334e3,_0x1f05e7){const _0x4afa02=_0x513ee0;switch(_0x49172e){case'list':m(_0x5a9226,await _0x30ba47(_0x5dd9d8,_0x4334e3),Dn);return;case'pending':m(_0x5a9226,await _0xb3b926(_0x5dd9d8,_0x4334e3),_0x3fa848=>{const _0x27ad75=_0xad43;_0x3fa848[_0x27ad75(0x1dd)]&&process[_0x27ad75(0x1f9)]['write'](_0x27ad75(0x187)+_0x3fa848[_0x27ad75(0x1dd)]['id']+'\x20('+_0x3fa848[_0x27ad75(0x1dd)][_0x27ad75(0x23d)]+').\x0a'),_0x3fa848['pendingResults'][_0x27ad75(0x8b)]===0x0&&process[_0x27ad75(0x8a)][_0x27ad75(0x77)]('No\x20answers\x20awaiting\x20acceptance.\x0a');for(let _0x153425 of _0x3fa848[_0x27ad75(0xbe)])process['stdout'][_0x27ad75(0x77)]('\x0a'+_0x153425['id']+'\x20\x20from\x20'+(_0x153425[_0x27ad75(0xe8)]??_0x27ad75(0x215))+'\x20\x20'+(_0x153425[_0x27ad75(0x1bf)]??'')+'\x0a'+(_0x153425[_0x27ad75(0xde)]?.[_0x27ad75(0x26f)]??'')+'\x0a');_0x3fa848['pendingResults'][_0x27ad75(0x8b)]>0x0&&process[_0x27ad75(0x8a)][_0x27ad75(0x77)]('\x0aAccept\x20one\x20with:\x20delegate-cli\x20delegations\x20accept\x20<id>\x0a');});return;case'show':m(_0x5a9226,await _0x238fe9(_0x5dd9d8,_0x4334e3),we);return;case _0x4afa02(0xb2):{let _0x2e5706=await _0x588bc5(_0x5dd9d8,{'sessionId':_0x5a9226[_0x4afa02(0x240)],'task':_0x1f05e7,..._0x5a9226[_0x4afa02(0x26e)]!==void 0x0&&{'contextSummary':_0x5a9226['contextSummary']},..._0x5a9226[_0x4afa02(0x1de)]!==void 0x0&&{'recipient':_0x5a9226['delegateTo']}});m(_0x5a9226,_0x2e5706,_0x4003e5=>{const _0x5acf63=_0x4afa02;_0x4003e5[_0x5acf63(0x98)]?process[_0x5acf63(0x1f9)]['write'](_0x5acf63(0x190)+_0x4003e5['delegationId']+_0x5acf63(0x13a)+_0x4003e5[_0x5acf63(0x98)]['displayName']+'\x20<'+_0x4003e5[_0x5acf63(0x98)][_0x5acf63(0xf1)]+_0x5acf63(0x1e1)):process[_0x5acf63(0x1f9)][_0x5acf63(0x77)](_0x5acf63(0xad)+_0x4003e5[_0x5acf63(0x1a4)]+'.\x20Share:\x20'+_0x4003e5[_0x5acf63(0x1fa)]+'\x0a');});return;}case _0x4afa02(0x139):{let _0x4c8e3a=await _0x33d26f(_0x5dd9d8,_0x4334e3);m(_0x5a9226,_0x4c8e3a,_0x55a201=>{const _0x1c30ee=_0x4afa02;we(_0x55a201),process[_0x1c30ee(0x1f9)][_0x1c30ee(0x77)](_0x1c30ee(0x22b)+_0x55a201[_0x1c30ee(0x240)]+'\x0a'),process[_0x1c30ee(0x8a)][_0x1c30ee(0x77)]('Work\x20on\x20it\x20with:\x20delegate-cli\x20--session\x20'+_0x55a201[_0x1c30ee(0x240)]+'\x20\x22<prompt>\x22\x0aAnswer\x20with:\x20delegate-cli\x20delegations\x20complete\x20'+_0x55a201[_0x1c30ee(0x1a4)]+_0x1c30ee(0x79));});return;}case _0x4afa02(0x10d):{let {alreadyCompleted:_0x2f9e35}=await _0x24fe4a(_0x5dd9d8,_0x4334e3,{'content':_0x1f05e7});m(_0x5a9226,{'delegationId':_0x4334e3,'alreadyCompleted':_0x2f9e35},_0x581800=>{const _0x27c29f=_0x4afa02;process['stdout'][_0x27c29f(0x77)]((_0x581800['alreadyCompleted']?_0x27c29f(0x211):_0x27c29f(0x1bb))+_0x27c29f(0x84)+_0x581800['delegationId']+'.\x0a');});return;}case'accept':{let _0x54eb50=await _0x4ac75a(_0x5dd9d8,_0x4334e3);m(_0x5a9226,{'delegationId':_0x4334e3,..._0x54eb50},_0x3cc8a5=>{const _0x324c78=_0x4afa02;process[_0x324c78(0x1f9)][_0x324c78(0x77)]((_0x3cc8a5[_0x324c78(0x179)]?'Already\x20accepted':'Accepted')+_0x324c78(0x84)+_0x3cc8a5[_0x324c78(0x1a4)]+'.\x0a');});return;}default:{let _0x4150e3={'dismiss':_0x5c526b,'cancel':_0x3f42b4,'delete':_0x2c3fdf}[_0x49172e];await _0x4150e3(_0x5dd9d8,_0x4334e3);let _0x576925={'dismiss':_0x4afa02(0x237),'cancel':_0x4afa02(0x10b),'delete':_0x4afa02(0x113)}[_0x49172e];m(_0x5a9226,{'delegationId':_0x4334e3,[_0x576925]:!0x0},()=>{const _0x404ca9=_0x4afa02;process[_0x404ca9(0x1f9)][_0x404ca9(0x77)](''+_0x576925[0x0][_0x404ca9(0x192)]()+_0x576925[_0x404ca9(0x125)](0x1)+'\x20delegation\x20'+_0x4334e3+'.\x0a');});}}}function Dn(_0x2fe5c4){const _0x571a73=_0x513ee0;if(_0x2fe5c4[_0x571a73(0x8b)]===0x0){process[_0x571a73(0x8a)][_0x571a73(0x77)]('No\x20delegations.\x0a');return;}process[_0x571a73(0x1f9)]['write']('ID'[_0x571a73(0x129)](0x24)+'\x20\x20'+_0x571a73(0xfc)[_0x571a73(0x129)](0x9)+'\x20\x20'+_0x571a73(0x13c)[_0x571a73(0x129)](0x18)+_0x571a73(0x20f));for(let _0x63d095 of _0x2fe5c4)process['stdout'][_0x571a73(0x77)](_0x63d095['id']['padEnd'](0x24)+'\x20\x20'+_0x63d095['status'][_0x571a73(0x129)](0x9)+'\x20\x20'+(_0x63d095[_0x571a73(0xe8)]??'-')[_0x571a73(0x129)](0x18)+'\x20\x20'+(_0x63d095['task']??'')+'\x0a');}function we(_0x38be75){const _0x907fb4=_0x513ee0;process[_0x907fb4(0x1f9)][_0x907fb4(0x77)]('From\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x38be75['sourceUserEmail']??'-')+'\x0a'),_0x38be75[_0x907fb4(0xa7)]&&process['stdout'][_0x907fb4(0x77)](_0x907fb4(0x22b)+_0x38be75[_0x907fb4(0xa7)]+'\x0a'),process[_0x907fb4(0x1f9)][_0x907fb4(0x77)](_0x907fb4(0x16e)+(_0x38be75[_0x907fb4(0x1bf)]??'-')+'\x0a'),_0x38be75[_0x907fb4(0x26e)]&&process[_0x907fb4(0x1f9)]['write']('\x0a'+_0x38be75[_0x907fb4(0x26e)]+'\x0a\x0a');}async function Nn(_0xaecd86){const _0x5aa722=_0x513ee0;_0xaecd86[_0x5aa722(0xa0)][_0x5aa722(0x12b)]()||(console[_0x5aa722(0x137)](_0x5aa722(0x1b9)),process[_0x5aa722(0x213)](0x2));let {client:_0x27de84}=await $(_0xaecd86),_0x228c3e;try{_0x228c3e=await _0x46573a(_0x27de84,_0xaecd86[_0x5aa722(0xa0)]);}catch(_0x3b9d37){if(!_0x3cef1c(_0x3b9d37))throw _0x3b9d37;console[_0x5aa722(0x137)](_0x3b9d37[_0x5aa722(0x185)]),process[_0x5aa722(0x213)](0x1);}m(_0xaecd86,_0x228c3e,_0x418261=>{const _0x26ccf4=_0x5aa722;_0x418261[_0x26ccf4(0x8b)]===0x0&&process[_0x26ccf4(0x8a)]['write'](_0x26ccf4(0x169)+_0xaecd86[_0x26ccf4(0xa0)][_0x26ccf4(0x12b)]()+'\x22.\x0a');for(let _0x48b5fd of _0x418261)process[_0x26ccf4(0x1f9)][_0x26ccf4(0x77)](_0x48b5fd[_0x26ccf4(0xf1)][_0x26ccf4(0x129)](0x20)+'\x20\x20'+_0x48b5fd[_0x26ccf4(0xff)]+'\x0a');});}async function _n(_0x5912d8){const _0x2abe12=_0x513ee0;_0x5912d8[_0x2abe12(0xc7)]==='localhost'&&(console[_0x2abe12(0x137)]('--env\x20localhost\x20has\x20no\x20OAuth\x20flow;\x20pick\x20alpha,\x20staging,\x20or\x20production.'),process[_0x2abe12(0x213)](0x2));let _0x310028=G(_0x445962()),_0x2617b1=_0x5912d8[_0x2abe12(0xd4)];if(_0x5912d8['env']){let _0x477085=_0x5912d8['env'];await _0x46465e({'env':_0x477085,'tenant':_0x5912d8[_0x2abe12(0x1d5)]??Q(_0x310028,_0x3159f0[_0x477085]),'skipEnvCheck':_0x2617b1});return;}let _0x180b2c=_0x5912d8[_0x2abe12(0x216)]??Ue();if(_0x180b2c){await _0x46465e({'baseUrl':_0x180b2c,'tenant':_0x5912d8[_0x2abe12(0x1d5)]??Q(_0x310028,_0x180b2c),'skipEnvCheck':_0x2617b1});return;}if(_0x310028?.[_0x2abe12(0x75)]){await _0x46465e({'baseUrl':_0x310028[_0x2abe12(0x75)],'tenant':_0x5912d8[_0x2abe12(0x1d5)]??_0x310028[_0x2abe12(0x71)],'skipEnvCheck':_0x2617b1});return;}console[_0x2abe12(0x137)](_0x2abe12(0x155)),process[_0x2abe12(0x213)](0x2);}function Q(_0x4fa59a,_0x10a7e1){const _0xf1ad81=_0x513ee0;return _0x4fa59a?.[_0xf1ad81(0x75)]&&Rn(_0x4fa59a[_0xf1ad81(0x75)],_0x10a7e1)?_0x4fa59a[_0xf1ad81(0x71)]:void 0x0;}function Rn(_0x21b927,_0x1d479b){const _0x5e0d3f=_0x513ee0;try{return new URL(_0x21b927)[_0x5e0d3f(0x19e)]===new URL(_0x1d479b)[_0x5e0d3f(0x19e)];}catch{return!0x1;}}async function Pn(_0x3bf6d4){const _0x4fd7d6=_0x513ee0;Y()&&(console[_0x4fd7d6(0x137)](_0x4fd7d6(0x1fb)),process[_0x4fd7d6(0x213)](0x2));let _0x12923b=await _0x5cadb8();if(_0x12923b||(console[_0x4fd7d6(0x137)](Cn()),process[_0x4fd7d6(0x213)](0x2)),_0x3bf6d4['trim']()){let _0x1babd3=await _0x16bed3(_0x12923b,_0x3bf6d4);_0x2c1b83(_0x1babd3)||(console['error'](_0x4fd7d6(0x1a0)+_0x445962()+';\x20the\x20saved\x20login\x20still\x20uses\x20'+_0x12923b[_0x4fd7d6(0x71)]+'.'),process[_0x4fd7d6(0x213)](0x1)),console[_0x4fd7d6(0x12a)](_0x4fd7d6(0x224)+_0x1babd3[_0x4fd7d6(0x71)]+'\x20('+_0x1babd3[_0x4fd7d6(0xe0)]+_0x4fd7d6(0x219)+_0x445962());return;}On(await _0x344315(_0x12923b),_0x12923b);}function Cn(){const _0x2abcad=_0x513ee0;if(_0x4c7126[_0x2abcad(0x251)](_0x445962()))return _0x2abcad(0xcc);let _0x386ef3=z();return G(_0x386ef3)?_0x2abcad(0x105)+_0x386ef3+_0x2abcad(0x281):_0x2abcad(0x147);}function On(_0x1f9045,_0x5b9a06){const _0x282b32=_0x513ee0;let _0x16ff10=_0x1f9045[_0x282b32(0x27e)](_0x5edec2=>_0x5edec2['id']===_0x5b9a06[_0x282b32(0xe0)]?'*\x20'+_0x5edec2['name']+_0x282b32(0x1ad):'\x20\x20'+_0x5edec2[_0x282b32(0x16c)]);process[_0x282b32(0x1f9)][_0x282b32(0x77)](_0x282b32(0x233)+(_0x5b9a06['orgLogicalName']??_0x5b9a06[_0x282b32(0x231)])+':\x0a'+_0x16ff10[_0x282b32(0xe5)]('\x0a')+'\x0a'),_0x1f9045[_0x282b32(0x8b)]>0x1&&process[_0x282b32(0x1f9)][_0x282b32(0x77)](_0x282b32(0xe6));}function Ln(_0x106d31){const _0x50e75a=_0x513ee0;return _0x106d31?.[_0x50e75a(0x270)]?.['status']===0x191||/401/[_0x50e75a(0xec)](String(_0x106d31?.[_0x50e75a(0x185)]??''));}var w={'lastType':null,'quiet':!0x1},_e=_0x59e404=>{const _0x15d78c=_0x513ee0;switch(_0x59e404[_0x15d78c(0x1a7)]){case _0x15d78c(0x174):_0x59e404[_0x15d78c(0x240)]&&_0x59e404[_0x15d78c(0x240)]!==w[_0x15d78c(0x240)]&&(process[_0x15d78c(0x8a)][_0x15d78c(0x77)]('Session:\x20'+_0x59e404[_0x15d78c(0x240)]+_0x15d78c(0x117)+_0x59e404[_0x15d78c(0x240)]+')\x0a'),w[_0x15d78c(0x240)]=_0x59e404[_0x15d78c(0x240)]);break;case'turn_start':_0x59e404['turnId']&&_0x59e404[_0x15d78c(0xe1)]!==w['turnId']&&(w['lastType']!==null&&process[_0x15d78c(0x8a)][_0x15d78c(0x77)]('\x0a'),process[_0x15d78c(0x8a)][_0x15d78c(0x77)](_0x15d78c(0x25d)+_0x59e404['turnId']+_0x15d78c(0x212)+_0x59e404[_0x15d78c(0x240)]+_0x15d78c(0xd0)+_0x59e404[_0x15d78c(0xe1)]+')\x0a'),w[_0x15d78c(0xe1)]=_0x59e404[_0x15d78c(0xe1)],w[_0x15d78c(0x15a)]=_0x15d78c(0x8d));break;case _0x15d78c(0x130):_0x59e404[_0x15d78c(0x26f)]&&!w['quiet']&&(w['lastType']!==_0x15d78c(0x130)&&process[_0x15d78c(0x8a)][_0x15d78c(0x77)]('\x0a🤔\x20'),process['stderr']['write'](_0x59e404[_0x15d78c(0x26f)]),w[_0x15d78c(0x15a)]=_0x15d78c(0x130));break;case _0x15d78c(0x11f):w['lastType']!==null&&process[_0x15d78c(0x8a)][_0x15d78c(0x77)]('\x0a'),process['stderr'][_0x15d78c(0x77)](_0x15d78c(0x1ed)+(_0x59e404[_0x15d78c(0xa1)]??_0x15d78c(0x257))+'\x0a'),w[_0x15d78c(0x15a)]=_0x15d78c(0x11f);break;case _0x15d78c(0x185):_0x59e404[_0x15d78c(0x26f)]&&(w['lastType']!==_0x15d78c(0x185)&&w[_0x15d78c(0x15a)]!==null&&process[_0x15d78c(0x1f9)][_0x15d78c(0x77)]('\x0a'),process['stdout'][_0x15d78c(0x77)](_0x59e404[_0x15d78c(0x26f)]),w['lastType']=_0x15d78c(0x185));break;case _0x15d78c(0x137):w[_0x15d78c(0x15a)]!==null&&process['stderr']['write']('\x0a'),process[_0x15d78c(0x8a)][_0x15d78c(0x77)]('✗\x20'+(_0x59e404[_0x15d78c(0x137)]??_0x15d78c(0x137))+'\x0a'),w[_0x15d78c(0x15a)]=_0x15d78c(0x137);break;case _0x15d78c(0x76):(w['lastType']===_0x15d78c(0x185)||w[_0x15d78c(0x15a)]===_0x15d78c(0x130))&&process[_0x15d78c(0x1f9)][_0x15d78c(0x77)]('\x0a'),process['stderr'][_0x15d78c(0x77)](_0x15d78c(0x103)),w[_0x15d78c(0x15a)]=_0x15d78c(0x76);break;}};function ke(_0x3e42eb,_0xc350b2,_0x338480,_0x34f9ff){const _0x5bbf2f=_0x513ee0;let _0x26e09b=_0x3e42eb[_0x5bbf2f(0x203)]||process.env.MODEL;return{'backendUrl':_0x338480,'auth':_0xc350b2,'enableComputerUse':!_0x3e42eb[_0x5bbf2f(0x110)]&&!_0x3e42eb[_0x5bbf2f(0xd2)],'autoSpawnInterop':!_0x3e42eb['headless'],'enableConnections':!_0x3e42eb['noConnections'],'enableSecurity':!_0x3e42eb[_0x5bbf2f(0x102)],'keepInteropAlive':_0x3e42eb[_0x5bbf2f(0xd8)],..._0x34f9ff[_0x5bbf2f(0x128)]?{'enableBackgroundCommands':!0x1}:{},..._0x3e42eb[_0x5bbf2f(0x27f)]?{'enableMemory':!0x1}:{},..._0x3e42eb[_0x5bbf2f(0x157)]?{'enableTaskAutomation':!0x0}:{},..._0x3e42eb[_0x5bbf2f(0x25c)][_0x5bbf2f(0x8b)]>0x0?{'preloadSkills':_0x3e42eb['preloadSkills']}:{},..._0x26e09b?{'model':_0x26e09b}:{},..._0x3e42eb[_0x5bbf2f(0x100)]?{'projectId':_0x3e42eb['projectId']}:{},..._0x3e42eb['vertical']?{'vertical':_0x3e42eb[_0x5bbf2f(0x109)]}:{},..._0x3e42eb[_0x5bbf2f(0x218)]?{'workingDirectory':_0x3e42eb['workingDirectory']}:{},..._0x3e42eb[_0x5bbf2f(0x148)]?{'bundledSkillsPath':_0x3e42eb[_0x5bbf2f(0x148)]}:{},..._0x3e42eb['effort']?{'effort':_0x3e42eb[_0x5bbf2f(0x6d)]}:{},..._0x3e42eb['sessionId']?{'sessionId':_0x3e42eb[_0x5bbf2f(0x240)]}:{},..._0x3e42eb['verbose']?{'verbose':!0x0}:{}};}async function Fn(_0x5904c0){const _0x3df254=_0x513ee0;let _0x446db3=_0x5904c0[_0x3df254(0xb7)]!=='text',_0x117680=_0x5904c0[_0x3df254(0x242)]===void 0x0?null:Ne(_0x5904c0[_0x3df254(0x242)],'delegate-cli'),_0x2aa36c=!_0x446db3&&!_0x117680&&!_0x5904c0[_0x3df254(0xbd)]&&_0x5904c0[_0x3df254(0xa0)]!=='-'&&!!process[_0x3df254(0xe9)]['isTTY']&&!!process[_0x3df254(0x1f9)][_0x3df254(0xa3)],_0x3120e9=_0x5904c0['inputFormat']==='stream-json'?re(process[_0x3df254(0xe9)],_0x137890=>{const _0x4b84b5=_0x3df254;process[_0x4b84b5(0x8a)]['write'](_0x137890['message']+':\x20ignored\x0a');}):null,_0x21f66b=_0x3120e9?(await _0x3120e9[_0x3df254(0x1b3)]())[_0x3df254(0x256)]:void 0x0,_0x482d62=_0x3120e9?_0x21f66b?.[_0x3df254(0xdd)]??'':_0x2aa36c?_0x5904c0['prompt'][_0x3df254(0x12b)]():await H(_0x5904c0['prompt'],process[_0x3df254(0xe9)]);if(!_0x2aa36c&&!_0x482d62&&(console['error'](_0x3df254(0x16b)),process['exit'](0x2)),!_0x446db3){await be(_0x5904c0,_0x482d62,_0x2aa36c,null,_0x117680,null);return;}let _0x5daf4f=!0x1,_0x1efa6f=_0x40de73=>{const _0x11e966=_0x3df254;_0x5daf4f=!0x0,O(_0x77dc94(_0x40de73)),(_0x40de73[_0x11e966(0x22d)]||_0x40de73['structuredError'])&&(process[_0x11e966(0x20b)]=0x1);},_0x11915f=Date[_0x3df254(0x9a)]();try{await be(_0x5904c0,_0x482d62,!0x1,_0x1efa6f,_0x117680,_0x3120e9?{'messages':_0x3120e9,'first':_0x21f66b,'close':()=>{const _0x3506c8=_0x3df254;process[_0x3506c8(0xe9)][_0x3506c8(0x207)]();}}:null);}catch(_0x17960c){if(_0x5daf4f)throw _0x17960c;process[_0x3df254(0x8a)][_0x3df254(0x77)]((_0x17960c instanceof Error?_0x17960c[_0x3df254(0x1e0)]??_0x17960c[_0x3df254(0x185)]:String(_0x17960c))+'\x0a'),_0x1efa6f(new _0x4f0c36(_0x11915f)[_0x3df254(0xda)]({'endedAtMs':Date[_0x3df254(0x9a)](),'usage':[],'error':_0x17960c}));}finally{_0x3120e9&&(process[_0x3df254(0xe9)][_0x3df254(0x207)](),_0x3120e9[_0x3df254(0xdc)](void 0x0));}}async function be(_0x1c3fa6,_0x21c39c,_0x4c090c,_0x31e482,_0x1c6824,_0x46ad44){const _0x30885e=_0x513ee0;w={'lastType':null,'quiet':_0x1c3fa6['quiet']};let _0x75d88f=new Set(),_0x987ced,_0x4f3c5b=_0x10b471=>{const _0x431bc6=_0xad43;(!_0x31e482||_0x10b471[_0x431bc6(0x1a7)]===_0x431bc6(0x174)||_0x10b471[_0x431bc6(0x1a7)]===_0x431bc6(0x8d))&&(_0x987ced??_e)(_0x10b471);for(let _0x5961d0 of _0x75d88f)_0x5961d0(_0x10b471);},_0x5e6174=await V(),_0x979fbd=new _0x40549e();_0x979fbd[_0x30885e(0xa8)](_0x4f3c5b);let _0x1144f6=_0x7ee8d8(_0x1c3fa6[_0x30885e(0xc7)],_0x5e6174,_0x1c3fa6[_0x30885e(0x16f)]);X(_0x1c3fa6[_0x30885e(0xc7)],_0x1c3fa6[_0x30885e(0x16f)],_0x1144f6);let _0x232188={'input':null},_0x230986=_0x4c090c?ne(()=>_0x232188[_0x30885e(0xb0)],_0x55891a=>{const _0x596232=_0x30885e;process['stderr'][_0x596232(0x77)](_0x55891a);}):null,_0x2a081b=_0x2ef832=>_0x230986?{..._0x2ef832,'askUser':_0x230986}:_0x2ef832,_0x3e52d3=_0x2a081b(ke(_0x1c3fa6,_0x5e6174,_0x1144f6,{'oneTurn':!_0x4c090c})),_0x37445c=!0x1,_0x238a6e=!0x1,_0x381021,_0x29dc60=()=>_0x381021??=_0x979fbd[_0x30885e(0x228)](),_0x3a2aa4=()=>{const _0x4ae035=_0x30885e;_0x238a6e&&process[_0x4ae035(0x213)](0x82),_0x238a6e=!0x0,process['stderr'][_0x4ae035(0x77)]('\x0aStopping…\x20(Ctrl+C\x20again\x20to\x20force\x20exit)\x0a'),_0x37445c&&_0x979fbd[_0x4ae035(0x171)]()[_0x4ae035(0xb5)](_0x1c4c73=>console['error'](_0x1c4c73))['then'](_0x29dc60)[_0x4ae035(0x122)](()=>process[_0x4ae035(0x213)](0x82),_0x559c49=>{console['error'](_0x559c49),process['exit'](0x82);});};process['on'](_0x30885e(0x15c),_0x3a2aa4);let _0x540b3d=_0x1c3fa6[_0x30885e(0x21c)],_0x567ab8=async _0x158003=>{const _0x1d2ae5=_0x30885e;let _0x2e8541=_0x540b3d;_0x540b3d=[];let _0x41ede7=()=>_0x979fbd['sendMessage'](_0x158003,{'attachments':_0x2e8541});try{return await _0x41ede7();}catch(_0x26d256){if(_0x238a6e||!Ln(_0x26d256)||!process[_0x1d2ae5(0xe9)]['isTTY']||_0x1c3fa6['env']===_0x1d2ae5(0x143)||!(_0x1c3fa6[_0x1d2ae5(0xc7)]||_0x5e6174[_0x1d2ae5(0x75)]))throw _0x26d256;process[_0x1d2ae5(0x8a)][_0x1d2ae5(0x77)](_0x1d2ae5(0x1db));let _0x292507=_0x979fbd[_0x1d2ae5(0x1c7)]()??_0x1c3fa6['sessionId'],_0x1c2ff9=await _0x46465e(_0x1c3fa6[_0x1d2ae5(0xc7)]?{'env':_0x1c3fa6[_0x1d2ae5(0xc7)],'tenant':Q(_0x5e6174,_0x3159f0[_0x1c3fa6['env']]),'skipEnvCheck':!0x0}:{'baseUrl':_0x5e6174['baseUrl'],'tenant':_0x5e6174[_0x1d2ae5(0x71)],'skipEnvCheck':!0x0}),_0x1b8178={'text':'','failed':!0x1,'sessionId':_0x292507};return _0x238a6e||(_0x37445c=!0x1,await _0x29dc60(),_0x238a6e)?_0x1b8178:(_0x979fbd=new _0x40549e(),_0x381021=void 0x0,_0x979fbd[_0x1d2ae5(0xa8)](_0x4f3c5b),_0x5e6174=_0x1c2ff9,await _0x979fbd['initialize']({..._0x2a081b(ke(_0x1c3fa6,_0x5e6174,_0x1144f6,{'oneTurn':!_0x4c090c})),..._0x292507?{'sessionId':_0x292507}:{}}),_0x37445c=!0x0,_0x238a6e?_0x1b8178:_0x41ede7());}};try{if(await _0x979fbd[_0x30885e(0x236)](_0x3e52d3),_0x37445c=!0x0,_0x238a6e)return;if(_0x4c090c)await Bn({'prompt':_0x21c39c,'sendMessage':_0x567ab8,'onSigint':_0x3a2aa4,'setAnswerInput':_0x347102=>{_0x232188['input']=_0x347102;},'registerEventPrinter':_0x4bb364=>(_0x987ced=_0x4bb364,()=>{_0x987ced=void 0x0;})});else{if(_0x31e482||_0x1c6824){let _0x8aab4d=_0x1c3fa6[_0x30885e(0xb7)]===_0x30885e(0xc0)?_0x404d40=>O(_0x1ad745(_0x404d40)):()=>{},_0x4c1db6=_0x46ad44?ie({'input':_0x46ad44,'getAgent':()=>_0x979fbd,'replay':_0x1c3fa6[_0x30885e(0x18d)],'onEvent':_0x4cff59=>(_0x75d88f[_0x30885e(0xb3)](_0x4cff59),()=>{const _0x22e472=_0x30885e;_0x75d88f[_0x22e472(0x177)](_0x4cff59);}),'write':O,'isRunStopNotice':_0x58cab0,'actionableErrorText':_0x2e15e8,'warn':_0x441f31=>{const _0x4629c8=_0x30885e;process[_0x4629c8(0x8a)][_0x4629c8(0x77)](_0x441f31);}}):null,_0x5dd8b7=await _0x23103a({'onEvent':_0x182204=>(_0x75d88f['add'](_0x182204),()=>{const _0x128738=_0x30885e;_0x75d88f[_0x128738(0x177)](_0x182204);}),'sendMessage':async _0x5dc921=>{const _0x5b1fa1=_0x30885e;try{let _0x31e4a9=await _0x567ab8(_0x5dc921);return _0x4c1db6?await _0x4c1db6['settle'](_0x31e4a9):_0x31e4a9;}finally{_0x4c1db6?.[_0x5b1fa1(0x13e)]();}},'getSessionId':()=>_0x979fbd[_0x30885e(0x1c7)](),'getTurnUsageHistory':_0x471bd9=>_0x979fbd[_0x30885e(0x163)](_0x471bd9),'complete':_0x97adc4=>_0x979fbd[_0x30885e(0x10d)](_0x97adc4)},_0x21c39c,void 0x0,_0x8aab4d,_0x1c6824?{'outputSchema':_0x1c6824}:void 0x0);_0x31e482?_0x31e482(_0x5dd8b7):Mn(_0x5dd8b7);}else await _0x567ab8(_0x21c39c);}}catch(_0x2e7dd1){if(!_0x238a6e)throw _0x2e7dd1;}finally{try{await _0x29dc60();}finally{process[_0x30885e(0x145)]('SIGINT',_0x3a2aa4),_0x238a6e&&(process[_0x30885e(0x20b)]=0x82);}}}function Mn(_0x1f0770){const _0x5f0927=_0x513ee0;_0x1f0770[_0x5f0927(0x134)]?(console[_0x5f0927(0x137)](_0x5f0927(0x19b)+_0x1f0770[_0x5f0927(0x134)][_0x5f0927(0x185)]),process[_0x5f0927(0x20b)]=0x1):_0x1f0770[_0x5f0927(0x22d)]?(console[_0x5f0927(0x137)](_0x5f0927(0x25a)+_0x1f0770[_0x5f0927(0x137)]+').'),process['exitCode']=0x1):process[_0x5f0927(0x1f9)]['write'](JSON[_0x5f0927(0x217)](_0x1f0770[_0x5f0927(0x160)],null,0x2)+'\x0a');}function jn(_0x529883,_0x4e9934){const _0x47d54b=_0x513ee0;let _0x37bc16=process['stdout']['write'][_0x47d54b(0x1b7)](process[_0x47d54b(0x1f9)]),_0x15a96d=!0x1;return process[_0x47d54b(0x1f9)][_0x47d54b(0x77)]=(..._0x28a84d)=>{const _0x7dcb8=_0x47d54b;if(!_0x15a96d)return _0x37bc16(..._0x28a84d);_0x20403f(_0x4e9934,0x0),_0xdd9308(_0x4e9934,0x0);let _0x165f97=_0x37bc16(..._0x28a84d);return _0x529883[_0x7dcb8(0xa0)](!0x0),_0x165f97;},{'show':()=>{_0x15a96d=!0x0,_0x529883['prompt']();},'hide':()=>{_0x15a96d=!0x1;},'erase':()=>{_0x15a96d&&(_0x20403f(_0x4e9934,0x0),_0xdd9308(_0x4e9934,0x0)),_0x15a96d=!0x1;},'restore':()=>{const _0x5f307a=_0x47d54b;_0x15a96d=!0x1,process[_0x5f307a(0x1f9)][_0x5f307a(0x77)]=_0x37bc16;}};}async function Bn({prompt:_0x571bde,sendMessage:_0xa0e6d4,onSigint:_0x37f88b,setAnswerInput:_0x55f12f,registerEventPrinter:_0x28c535}){const _0x16259a=_0x513ee0;let _0x3d1066=_0x4e027b({'input':process[_0x16259a(0xe9)],'output':process[_0x16259a(0x8a)],'terminal':!0x0,'prompt':_0x16259a(0x272)}),_0xcf5a5a=jn(_0x3d1066,process[_0x16259a(0x8a)]),_0x135659=[],_0x1592bc,_0x46fbcf,_0x4e76a7,_0x404793=!0x1,_0x4959e3=!0x1,_0x526798=!0x1,_0x4df0a2=Promise[_0x16259a(0x1be)](),_0x2af865,_0x532db9=_0x28c535(_0x2c867a=>{const _0x245b00=_0x16259a;_0x2c867a[_0x245b00(0x1a7)]===_0x245b00(0x174)&&(_0xcf5a5a['erase'](),_0x4df0a2=new Promise(_0x3252c3=>{_0x2af865=_0x3252c3;})),_e(_0x2c867a),_0x2c867a[_0x245b00(0x1a7)]===_0x245b00(0x76)&&(_0x2af865?.(),_0x2af865=void 0x0,!_0x526798&&!_0x404793&&_0xcf5a5a[_0x245b00(0x27d)]());}),_0x5bbef8=()=>{const _0xf34304=_0x16259a;_0x4959e3=!0x0,_0x2af865?.(),_0x37f88b(),_0x3d1066[_0xf34304(0xfa)]();};_0x3d1066['on']('line',_0x3bcd7a=>{_0x4e76a7?_0x4e76a7(_0x3bcd7a):_0x1592bc?_0x1592bc['push'](_0x3bcd7a):_0x46fbcf?_0x46fbcf(_0x3bcd7a):_0x135659['push'](_0x3bcd7a);}),_0x3d1066['once'](_0x16259a(0xfa),()=>{const _0x30fa69=_0x16259a;_0x404793=!0x0,_0xcf5a5a[_0x30fa69(0x120)](),_0x1592bc&&!_0x4959e3&&_0x5bbef8(),_0x46fbcf?.(null);});let _0x11b98c=()=>_0x135659[_0x16259a(0x8b)]>0x0?Promise['resolve'](_0x135659[_0x16259a(0x7d)]()):_0x404793?Promise[_0x16259a(0x1be)](null):new Promise(_0x5d5d5c=>{_0x46fbcf=_0x352ba3=>{_0x46fbcf=void 0x0,_0x5d5d5c(_0x352ba3);};});_0x55f12f({'readLine':(_0x2b3a9a,_0x35918a)=>new Promise((_0x38fbdb,_0x38c083)=>{const _0x258efe=_0x16259a;if(_0x404793&&!_0x1592bc){_0x38fbdb(null);return;}_0x1592bc??=[];let _0x2b9bf5=_0x1592bc[_0x258efe(0x7d)]();if(_0x2b9bf5!==void 0x0){_0x38fbdb(_0x2b9bf5);return;}let _0x2a3ab0=()=>{const _0x13ca0a=_0x258efe;_0x4e76a7=void 0x0,_0x35918a[_0x13ca0a(0xea)](_0x13ca0a(0x24e),_0x175462),_0xcf5a5a[_0x13ca0a(0x120)](),_0x3d1066[_0x13ca0a(0x269)]('You>\x20');},_0x175462=()=>{_0x2a3ab0(),_0x38c083(new Error('The\x20turn\x20was\x20cancelled.'));};_0x35918a[_0x258efe(0x107)](_0x258efe(0x24e),_0x175462,{'once':!0x0}),!_0x404793&&(_0x4e76a7=_0x242827=>{_0x2a3ab0(),_0x38fbdb(_0x242827);},_0x3d1066['setPrompt'](_0x2b3a9a),_0xcf5a5a[_0x258efe(0x27d)]());}),'endQuestions':()=>{const _0x4e5135=_0x16259a;_0x1592bc&&_0x135659[_0x4e5135(0x268)](..._0x1592bc),_0x1592bc=void 0x0;}}),_0x3d1066['on'](_0x16259a(0x15c),_0x5bbef8),process[_0x16259a(0x8a)]['write'](_0x16259a(0x70));let _0x15c0f5=async _0x4b67c9=>{_0x526798=!0x0;try{await _0xa0e6d4(_0x4b67c9);}finally{_0x526798=!0x1;}};try{if(_0x571bde&&await _0x15c0f5(_0x571bde),_0x4959e3)return;!_0x404793&&!_0x2af865&&_0xcf5a5a[_0x16259a(0x27d)]();for(let _0x3aa34a=await _0x11b98c();_0x3aa34a!==null&&(_0xcf5a5a['hide'](),!_0x4959e3);_0x3aa34a=await _0x11b98c()){let _0x5654d7=_0x3aa34a['trim']();if(_0x5654d7===_0x16259a(0x21f))break;_0x5654d7&&await _0x15c0f5(_0x5654d7),!_0x404793&&!_0x2af865&&_0xcf5a5a[_0x16259a(0x27d)]();}for(;!_0x4959e3&&_0x2af865;)await _0x4df0a2;}finally{_0x55f12f(null),_0x532db9(),_0xcf5a5a[_0x16259a(0x15e)](),_0x3d1066['off'](_0x16259a(0x15c),_0x5bbef8),_0x3d1066[_0x16259a(0xfa)]();}}async function Jn(){const _0x27c3fc=_0x513ee0;let _0x4cbfa3=Kt(process[_0x27c3fc(0x104)][_0x27c3fc(0x125)](0x2));if(_0x4cbfa3[_0x27c3fc(0xb7)]===_0x27c3fc(0xdd)){await Se(_0x4cbfa3);return;}let _0x8be372=Qt();try{await Se(_0x4cbfa3);}finally{_0x8be372();}}async function Se(_0x904bc5){const _0x283ff4=_0x513ee0;if(_0x904bc5['help']){qt();return;}if(_0x904bc5[_0x283ff4(0xaf)]){console[_0x283ff4(0x12a)](zt());return;}if(_0x904bc5['subcommand']===_0x283ff4(0x1d8)){await _n(_0x904bc5);return;}if(_0x904bc5[_0x283ff4(0x176)]===_0x283ff4(0x1d5)){await Pn(_0x904bc5['prompt']);return;}if(_0x904bc5[_0x283ff4(0x176)]===_0x283ff4(0x74)){await Zt();return;}if(_0x904bc5[_0x283ff4(0x176)]===_0x283ff4(0x267)){await en(_0x904bc5);return;}if(_0x904bc5[_0x283ff4(0x176)]==='models'){await on(_0x904bc5);return;}if(_0x904bc5['subcommand']===_0x283ff4(0x244)){await mn(_0x904bc5);return;}if(_0x904bc5[_0x283ff4(0x176)]==='sessions'){await an(_0x904bc5);return;}if(_0x904bc5[_0x283ff4(0x176)]===_0x283ff4(0xe3)){await hn(_0x904bc5);return;}if(_0x904bc5[_0x283ff4(0x176)]==='evaluate'||_0x904bc5['subcommand']===_0x283ff4(0x27b)||_0x904bc5['subcommand']===_0x283ff4(0xb6)){await bn(_0x904bc5,_0x904bc5[_0x283ff4(0x176)]);return;}if(_0x904bc5[_0x283ff4(0x176)]===_0x283ff4(0x10d)){await vn(_0x904bc5);return;}if(_0x904bc5[_0x283ff4(0x176)]==='transcribe'){await xn(_0x904bc5);return;}if(_0x904bc5['subcommand']===_0x283ff4(0x9b)){await Tn(_0x904bc5);return;}if(_0x904bc5['subcommand']===_0x283ff4(0x26b)){await Nn(_0x904bc5);return;}if(_0x904bc5['subcommand']===_0x283ff4(0xf9)){await _0x2a8753(_0x904bc5[_0x283ff4(0xa0)],{'runnerUrl':_0x904bc5[_0x283ff4(0x283)],'backendUrl':_0x904bc5[_0x283ff4(0x16f)],'interopPath':_0x904bc5[_0x283ff4(0xf7)],'workerId':_0x904bc5['workerId']});return;}if(_0x904bc5[_0x283ff4(0xd9)]){await sn();return;}await Fn(_0x904bc5);}var Hn=process.env.NODE_ENV===_0x513ee0(0xec)||!!process.env.JEST_WORKER_ID;Hn||Jn()[_0x513ee0(0xb5)](_0x41041a=>{const _0x284962=_0x513ee0;console[_0x284962(0x137)](_0x41041a[_0x284962(0x1e0)]||_0x41041a[_0x284962(0x185)]||_0x41041a),process[_0x284962(0x213)](0x1);});export{Wt as CARTOGRAPHER_SKILLS,pe as EFFORT_TIERS,Yt as IMPLICIT_STDIN_IDLE_MS,ke as buildInitOptions,Jn as main,Kt as parseArgs,zt as readCliVersion,H as resolvePrompt,Qt as routeStdoutToStderr,m as writeCommandResult};
2
+ const _0x5eae74=_0x367c;(function(_0x877d82,_0x1ea8c7){const _0x4e9153=_0x367c,_0x38ad04=_0x877d82();while(!![]){try{const _0x406d55=parseInt(_0x4e9153(0x22e))/0x1*(-parseInt(_0x4e9153(0x1a6))/0x2)+-parseInt(_0x4e9153(0x26e))/0x3*(-parseInt(_0x4e9153(0x28f))/0x4)+parseInt(_0x4e9153(0x251))/0x5+-parseInt(_0x4e9153(0xe3))/0x6+-parseInt(_0x4e9153(0x16a))/0x7*(-parseInt(_0x4e9153(0x2b0))/0x8)+parseInt(_0x4e9153(0x20b))/0x9+-parseInt(_0x4e9153(0x253))/0xa;if(_0x406d55===_0x1ea8c7)break;else _0x38ad04['push'](_0x38ad04['shift']());}catch(_0x4767c0){_0x38ad04['push'](_0x38ad04['shift']());}}}(_0x1dd0,0x96e69));const __dirname=import.meta.dirname;import _0x637791 from'fs';import _0x28edef from'path';import{clearLine as _0x2c561c,createInterface as _0x3100fc,cursorTo as _0x4742e1}from'node:readline';import{isOnStepGrid as _0x4eb088}from'@uipath/delegate-sdk';var L=_0x5eae74(0x271);function E(_0x8e9201){const _0x524720=_0x5eae74;return _0x8e9201['replace'](/\u001b\[[0-?]*[ -/]*[@-~]|\u001b\][^\u0007\u001b]*(\u0007|\u001b\\)?|\u001b./g,'')[_0x524720(0x2ba)](/[\u0000-\u0008\u000b-\u001f\u007f-\u009f]/g,'');}function ee(_0x2b1e77){const _0x58193c=_0x5eae74;return E(_0x2b1e77[_0x58193c(0x14b)]??(_0x2b1e77['kind']===L?_0x58193c(0x210):_0x2b1e77['id']));}function _0x367c(_0x2f2762,_0x2c4abd){_0x2f2762=_0x2f2762-0xa6;const _0x1dd074=_0x1dd0();let _0x367cbb=_0x1dd074[_0x2f2762];return _0x367cbb;}function Ce(_0x550c74,_0x1550fe,_0x206ec3){const _0x514d93=_0x5eae74;let _0x3a13a0=[''+(_0x206ec3>0x1?'['+_0x1550fe+'/'+_0x206ec3+']\x20':'')+E(_0x550c74[_0x514d93(0x134)])+(_0x550c74[_0x514d93(0xb2)]?_0x514d93(0x172):''),E(_0x550c74[_0x514d93(0x183)])];return _0x550c74[_0x514d93(0x1d9)]===_0x514d93(0x284)&&_0x550c74[_0x514d93(0x1a7)][_0x514d93(0x1f7)]((_0x4d8a03,_0x1c3966)=>{const _0x344fd9=_0x514d93;let _0x29a4b0=_0x4d8a03[_0x344fd9(0x1bf)]===L?_0x344fd9(0x268):'',_0x45ab45=_0x4d8a03['description']?_0x344fd9(0x261)+E(_0x4d8a03[_0x344fd9(0x1ed)]):'';_0x3a13a0[_0x344fd9(0x15d)]('\x20\x20'+(_0x1c3966+0x1)+'.\x20'+ee(_0x4d8a03)+_0x29a4b0+_0x45ab45);}),_0x3a13a0['join']('\x0a');}function te(_0x27d644,_0xdaa399){const _0xf1b2c8=_0x5eae74;let _0x2e9930=_0x27d644[_0xf1b2c8(0x22b)](/[\s,]+/)['filter'](Boolean);if(_0x2e9930[_0xf1b2c8(0x1e6)]===0x0)return null;let _0x29aaa8=_0x2e9930[_0xf1b2c8(0x22c)](_0x18fcec=>/^\d+$/[_0xf1b2c8(0x142)](_0x18fcec)?Number(_0x18fcec):NaN);return _0x29aaa8['some'](_0x4edb07=>!Number[_0xf1b2c8(0x10b)](_0x4edb07)||_0x4edb07<0x1||_0x4edb07>_0xdaa399)?null:[...new Set(_0x29aaa8)]['map'](_0x132900=>_0x132900-0x1);}function Oe(_0x4287a2){return typeof _0x4287a2=='object'&&_0x4287a2!==null&&'refused'in _0x4287a2;}async function F(_0x41894e,_0x3f1820,_0xa5a935,_0x3ee192){const _0x2f66e3=_0x5eae74;for(;;){let _0x5a28d2=(await _0x41894e(_0x3f1820))['trim']();if(_0x5a28d2==='')return;let _0x757c0c=_0x3ee192(_0x5a28d2);if(!Oe(_0x757c0c))return _0x757c0c;_0xa5a935(_0x757c0c[_0x2f66e3(0xf4)]+'\x0a');}}async function Le(_0x18f0c7,_0xab35ee,_0x30a297){const _0x47ccab=_0x5eae74;if(_0x18f0c7[_0x47ccab(0x1a7)][_0x47ccab(0x1e6)]===0x0||_0x18f0c7[_0x47ccab(0x1a7)][_0x47ccab(0xbb)](_0x2fad62=>_0x2fad62['kind']===L)){let _0x160dd6=(await _0xab35ee(_0x47ccab(0x25d)))[_0x47ccab(0x292)]();return _0x160dd6===''?void 0x0:{'text':_0x160dd6};}let _0x3b0145=_0x18f0c7[_0x47ccab(0x1a7)]['findIndex'](_0x3d836=>_0x3d836[_0x47ccab(0x1bf)]===L),_0x185425=_0x18f0c7[_0x47ccab(0x114)]?_0x47ccab(0x197):_0x47ccab(0x184)+(_0x3b0145>=0x0?_0x47ccab(0x225):'')+_0x47ccab(0x14d),_0x27b87b=await F(_0xab35ee,_0x185425,_0x30a297,_0x259d4d=>{const _0x174603=_0x47ccab;let _0x2ffbfb=te(_0x259d4d,_0x18f0c7['options'][_0x174603(0x1e6)]);return _0x2ffbfb&&(_0x18f0c7[_0x174603(0x114)]||_0x2ffbfb[_0x174603(0x1e6)]===0x1)?_0x2ffbfb:!_0x18f0c7['multiSelect']&&_0x3b0145>=0x0?{'typed':_0x259d4d}:{'refused':_0x18f0c7[_0x174603(0x114)]?_0x174603(0x116)+_0x18f0c7[_0x174603(0x1a7)][_0x174603(0x1e6)]+'.':_0x174603(0x255)+_0x18f0c7[_0x174603(0x1a7)]['length']+'.'};});if(_0x27b87b===void 0x0)return;if(!Array[_0x47ccab(0xff)](_0x27b87b))return{'text':_0x27b87b[_0x47ccab(0x1d4)]};let _0x1e028c=_0x27b87b['map'](_0x3c8e1c=>_0x18f0c7[_0x47ccab(0x1a7)][_0x3c8e1c]['id']),_0x14f7f7=_0x1e028c['includes'](L)?await F(_0xab35ee,ee(_0x18f0c7[_0x47ccab(0x1a7)][_0x3b0145])+':\x20',_0x30a297,_0x10e4a3=>_0x10e4a3):void 0x0;if(!(_0x1e028c[_0x47ccab(0x1be)](L)&&_0x14f7f7===void 0x0))return _0x18f0c7[_0x47ccab(0x114)]?{'optionIds':_0x1e028c,..._0x14f7f7!==void 0x0?{'text':_0x14f7f7}:{}}:_0x14f7f7!==void 0x0?{'text':_0x14f7f7}:{'optionId':_0x1e028c[0x0]};}async function Fe(_0x12cd4c,_0x4bd01b,_0x4bb082){const _0x35ed19=_0x5eae74;let _0x4ab2b4={};for(let _0xb88aa0 of _0x12cd4c['fields']){let _0x1eafe4=_0xb88aa0['default']??_0xb88aa0[_0x35ed19(0x26f)],_0x5a4bac=_0xb88aa0[_0x35ed19(0x215)]??0x1,_0x54cfeb=_0xb88aa0[_0x35ed19(0x234)]?'\x20'+E(_0xb88aa0[_0x35ed19(0x234)]):'',_0x2f5906=_0x35ed19(0x1db)+_0xb88aa0[_0x35ed19(0x26f)]+'\x20to\x20'+_0xb88aa0[_0x35ed19(0x1a3)]+(_0x5a4bac!==0x1?_0x35ed19(0xfc)+_0x5a4bac:''),_0x42638d=await F(_0x4bd01b,E(_0xb88aa0[_0x35ed19(0x14b)])+'\x20['+_0xb88aa0['min']+'-'+_0xb88aa0[_0x35ed19(0x1a3)]+_0x54cfeb+_0x35ed19(0x1a4)+_0x1eafe4+'):\x20',_0x4bb082,_0x3ebbbe=>{const _0x1d4e44=_0x35ed19;let _0x129107=Number(_0x3ebbbe);return Number['isFinite'](_0x129107)&&_0x129107>=_0xb88aa0['min']&&_0x129107<=_0xb88aa0[_0x1d4e44(0x1a3)]&&_0x4eb088(_0x129107,_0xb88aa0[_0x1d4e44(0x26f)],_0x5a4bac)?_0x129107:{'refused':_0x1d4e44(0x2a9)+_0x2f5906+'.'};});_0x4ab2b4[_0xb88aa0['id']]=_0x42638d??_0x1eafe4;}return{'values':_0x4ab2b4};}async function Me(_0x670b9c,_0x22a64f,_0x8a7c1d){const _0x485520=_0x5eae74;_0x8a7c1d(_0x670b9c[_0x485520(0x2b3)][_0x485520(0x22c)]((_0x296fcc,_0x368374)=>'\x20\x20'+(_0x368374+0x1)+'.\x20'+E(_0x296fcc[_0x485520(0x14b)]))['join']('\x0a')+'\x0a');let _0x9af957={};for(let _0x48ff91 of _0x670b9c[_0x485520(0x246)]){let _0x444bdd=await F(_0x22a64f,E(_0x48ff91[_0x485520(0x14b)])+_0x485520(0x104),_0x8a7c1d,_0x2064fb=>{const _0x242f34=_0x485520;let _0x327e72=te(_0x2064fb,_0x670b9c[_0x242f34(0x2b3)]['length']);return _0x327e72&&_0x327e72[_0x242f34(0x1e6)]===0x1?_0x327e72[0x0]:{'refused':'Enter\x20one\x20number\x20from\x201\x20to\x20'+_0x670b9c[_0x242f34(0x2b3)][_0x242f34(0x1e6)]+'.'};});if(_0x444bdd===void 0x0)continue;let _0x157021=_0x670b9c[_0x485520(0x2b3)][_0x444bdd],_0x5898e6={};for(let _0x4fa2d4 of _0x157021['subFields']??[]){let _0x3bc082='\x20\x20'+E(_0x4fa2d4[_0x485520(0x14b)])+(_0x4fa2d4[_0x485520(0xb2)]?_0x485520(0x172):'')+':\x20',_0xc73b1f=await F(_0x22a64f,_0x3bc082,_0x8a7c1d,_0x1ea3c7=>_0x1ea3c7);for(;_0xc73b1f===void 0x0&&!_0x4fa2d4['optional'];)_0x8a7c1d(E(_0x4fa2d4[_0x485520(0x14b)])+_0x485520(0x1bd)),_0xc73b1f=await F(_0x22a64f,_0x3bc082,_0x8a7c1d,_0x22250e=>_0x22250e);_0xc73b1f!==void 0x0&&(_0x5898e6[_0x4fa2d4['id']]=_0xc73b1f);}_0x9af957[_0x48ff91['id']]={'bucket':_0x157021['id'],...Object[_0x485520(0x119)](_0x5898e6)['length']>0x0?{'subFields':_0x5898e6}:{}};}return Object[_0x485520(0x119)](_0x9af957)[_0x485520(0x1e6)]>0x0?{'assignments':_0x9af957}:void 0x0;}async function je(_0x459e9d,_0x43ca7e,_0x5e2e9f){const _0x5e1e89=_0x5eae74;if(_0x459e9d['type']==='text')return Le(_0x459e9d,_0x43ca7e,_0x5e2e9f);if(_0x459e9d[_0x5e1e89(0x1d9)]===_0x5e1e89(0x1fb))return Fe(_0x459e9d,_0x43ca7e,_0x5e2e9f);if(_0x459e9d[_0x5e1e89(0x1d9)]===_0x5e1e89(0x228))return Me(_0x459e9d,_0x43ca7e,_0x5e2e9f);let _0x2841e3=(await _0x43ca7e(_0x5e1e89(0x264)))['trim']();return _0x2841e3===''?void 0x0:{'text':_0x2841e3};}function ne(_0x3409a0,_0x2173fa){return async _0x165ab4=>{const _0x74d10d=_0x367c;let _0x24d0c5=_0x3409a0();if(!_0x24d0c5)throw new Error(_0x74d10d(0x2a7));let _0x43bb6b=async _0x416c3a=>{const _0x2e5000=_0x74d10d;if(_0x165ab4[_0x2e5000(0x15f)][_0x2e5000(0x240)])throw new Error(_0x2e5000(0x1e0));let _0x1b38f1=await _0x24d0c5[_0x2e5000(0x138)](_0x416c3a,_0x165ab4[_0x2e5000(0x15f)]);if(_0x1b38f1===null)throw new Error('Input\x20closed\x20before\x20the\x20question\x20was\x20answered.');return _0x1b38f1;};try{_0x2173fa('\x0a'+(_0x165ab4['intro']?E(_0x165ab4[_0x74d10d(0x1a5)])+'\x0a':''));let _0x2870ee={};for(let [_0x194c7c,_0x7496d0]of _0x165ab4[_0x74d10d(0x20e)][_0x74d10d(0x241)]()){_0x2173fa('\x0a'+Ce(_0x7496d0,_0x194c7c+0x1,_0x165ab4[_0x74d10d(0x20e)]['length'])+'\x0a');let _0xd8b2fd=await je(_0x7496d0,_0x43bb6b,_0x2173fa);_0xd8b2fd!==void 0x0&&(_0x2870ee[_0x7496d0['id']]=_0xd8b2fd);}return{'answers':_0x2870ee};}finally{_0x24d0c5['endQuestions']();}};}import{createInterface as _0x490e73}from'node:readline';var j=[_0x5eae74(0x284),_0x5eae74(0x28b)];function se(_0xf927){const _0x6df391=_0x5eae74;return j[_0x6df391(0x1be)](_0xf927);}var _=class extends Error{};function Je(_0x196c7e){const _0x335de9=_0x5eae74;if(typeof _0x196c7e==_0x335de9(0x171))return _0x196c7e;if(!Array[_0x335de9(0xff)](_0x196c7e))return;let _0x291422=[];for(let _0x12a662 of _0x196c7e){if(typeof _0x12a662!=_0x335de9(0xab)||_0x12a662===null)return;let {type:_0x12f9fa,text:_0x52e27b}=_0x12a662;if(_0x12f9fa!==_0x335de9(0x284)||typeof _0x52e27b!=_0x335de9(0x171))return;_0x291422[_0x335de9(0x15d)](_0x52e27b);}return _0x291422[_0x335de9(0xb8)]('\x0a');}function He(_0x494b98){const _0x14830e=_0x5eae74;if(_0x494b98['trim']()==='')return null;let _0x1633c0;try{_0x1633c0=JSON[_0x14830e(0xbf)](_0x494b98);}catch{throw new _(_0x14830e(0x1b8));}if(typeof _0x1633c0!=_0x14830e(0xab)||_0x1633c0===null)throw new _(_0x14830e(0x1f0));let {type:_0x4caed2,message:_0x5e675e,uuid:_0x35d386}=_0x1633c0;if(_0x4caed2!=='user')throw new _(_0x14830e(0x17b)+JSON[_0x14830e(0x1e7)](_0x4caed2)+',\x20not\x20\x22user\x22');let _0x4e91d4=Je(_0x5e675e?.[_0x14830e(0x222)]);if(_0x4e91d4===void 0x0)throw new _(_0x14830e(0x2a0));if(_0x4e91d4['trim']()==='')throw new _(_0x14830e(0xd1));return{'text':_0x4e91d4,'uuid':typeof _0x35d386==_0x14830e(0x171)?_0x35d386:void 0x0};}function oe(_0x498f30,_0x9577d2){const _0xe58b94=_0x5eae74;return JSON[_0xe58b94(0x1e7)]({'type':_0xe58b94(0x182),'message':{'role':_0xe58b94(0x182),'content':_0x498f30[_0xe58b94(0x284)]},'session_id':_0x9577d2,..._0x498f30[_0xe58b94(0x266)]===void 0x0?{}:{'uuid':_0x498f30['uuid']},'isReplay':!0x0})+'\x0a';}function _0x1dd0(){const _0x17371b=['delegations\x20claim\x20<delegation-id|delegate://delegation/…>','--backend','displayName','pending','aborted','entries','--output-format','Session\x20','prompt','--cartographer','items','transcribe','--no-memory','):\x0a\x0a','startsWith','--version','restore','--runner-url','delegations\x20show\x20<delegation-id|delegate://delegation/…>','--turn','daily_usage','3686430KNAemZ','skip','10528790sNUsNi','url','Enter\x20one\x20number\x20from\x201\x20to\x20','headless','argv','alreadyAccepted',';\x20the\x20saved\x20login\x20still\x20uses\x20','tool_call','--session\x20applies\x20to\x20the\x20`delegate-cli\x20usage`\x20summary\x20only.','Deleted\x20session\x20','Your\x20answer\x20(Enter\x20to\x20skip):\x20','vertical','--turn\x20applies\x20to\x20`delegate-cli\x20sessions\x20cancel`\x20only.','tenant','\x20-\x20',':\x20cannot\x20read\x20the\x20JSON\x20schema\x20(','env','Your\x20answer,\x20as\x20text\x20(the\x20CLI\x20attaches\x20no\x20files;\x20Enter\x20to\x20skip):\x20','help','uuid','accept','\x20(type\x20your\x20own)','Token:\x20\x20\x20\x20\x20\x20\x20\x20expires\x20','score','prompt_tokens','transcribe:\x20cannot\x20read\x20','stdin','21066AVeSak','min','Missing\x20prompt.\x20Pass\x20it\x20as\x20an\x20argument,\x20pipe\x20it\x20via\x20stdin,\x20or\x20run\x20`delegate-cli\x20--help`.','userinput','delete','Enter\x20sends\x20a\x20message.\x20/exit\x20or\x20EOF\x20exits;\x20Ctrl+C\x20stops\x20and\x20exits.\x0a','--include-subagents','UiPath\x20Cloud','AUTH_TOKEN_FILE\x20\x27','readFileSync','--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`delegate-cli\x20sessions`\x20only.','skipEnvCheck','Tenants\x20of\x20','Cancel\x20requested\x20for\x20turn\x20','days','--json-schema','1\x20or\x20more','logout','resolve','\x20\x20\x20\x20BYO\x20warning:\x20','rerank','total_completion_tokens','text','The\x20steering\x20message\x20was\x20not\x20answered:\x20its\x20turn\x20did\x20not\x20run\x20or\x20added\x20no\x20reply.','--interop','[saved\x20login]\x20Backend\x20URL:\x20','.\x20Use:\x20','Usage:\x20delegate-cli\x20org-users\x20<name\x20or\x20email\x20prefix>','\x20delegation\x20','stream-json','\x20vertical,\x20so\x20it\x20cannot\x20run\x20as\x20--vertical\x20','--to,\x20--summary\x20and\x20--session\x20apply\x20to\x20`delegate-cli\x20delegations\x20create`\x20only.','activity','516JTTsTD','result','stdout','trim','updatedAt','\x20\x20TITLE\x0a','baseUrl','rubric_version','\x20this\x20month','toUpperCase','--no-connections','No\x20models\x20available\x20for\x20this\x20product/tenant.\x0a','pendingResults','\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).','choice','\x20(current)','choice\x20','an\x20input\x20line\x20has\x20no\x20message.content,\x20a\x20string\x20or\x20a\x20list\x20of\x20text\x20blocks','isError','Owner\x20\x20\x20\x20\x20\x20\x20\x20\x20','verdict','noComputerUse','exit','sourceUserEmail','There\x20is\x20no\x20terminal\x20input\x20to\x20answer\x20from.','\x20|\x20','Enter\x20a\x20number\x20','\x0aUse\x20with:\x20delegate-cli\x20--model\x20<id>\x20\x22<prompt>\x22\x0a','delegations\x20dismiss\x20<delegation-id>','.\x20Use\x20alpha\x20|\x20staging\x20|\x20production\x20|\x20localhost.','SIGINT','unknown','--working-dir','1674272fdGXaV','Forked\x20','No\x20turn\x20','buckets','alpha','initialize','--limit','locked','limit_enabled','--url','replace','\x20(Delegate\x20desktop\x20app\x20fallback)','--help','a\x20project\x20id','accessToken','\x20cap','\x20(cancel\x20with:\x20delegate-cli\x20sessions\x20cancel\x20','stderr','object','race','from','show','\x20not\x20found.','all','\x20completion','optional','cancelled','write','workerId','email','evaluate','join','Could\x20not\x20check\x20BYO\x20model\x20warnings:\x20','rmSync','every','title','getSessionMessages','\x20\x20(sub-agent\x20of\x20','parse','deleted','message','\x20(confidence\x20','slice','exitCode','utf-8','orgLogicalName','cartographer','monthly_limit_usd','name','done','Tenant\x20not\x20switched:\x20could\x20not\x20write\x20','session_consumed_pu','auth','Unknown\x20sessions\x20action:\x20','\x20must\x20be\x20a\x20whole\x20number\x20','hide','an\x20input\x20line\x20has\x20an\x20empty\x20message','\x20\x20from\x20','effort','A\x20steering\x20message\x20arrived\x20after\x20the\x20turn\x20ended:\x20not\x20read.\x0a','Work\x20on\x20it\x20with:\x20delegate-cli\x20--session\x20','--json-schema\x20applies\x20to\x20prompts\x20and\x20to\x20`delegate-cli\x20complete`\x20only.','delegation','tenantName','Session:\x20\x20\x20\x20\x20\x20','add','delegations\x20accept\x20<delegation-id>','delegateTo','--days\x20applies\x20to\x20`delegate-cli\x20usage\x20activity|daily`;\x20the\x20summary\x20covers\x20the\x20current\x20month.','existsSync','STATUS','a\x20skill\x20name','jsonSchemaPath','cwd','5064342roaAFj','results','--input-format\x20and\x20--replay-user-messages\x20apply\x20to\x20prompts\x20only.','low','page','isDesktopFallback','--effort','workingDirectory','data','--task-automation\x20applies\x20to\x20prompts\x20only.','Interop\x20stopped\x20(if\x20it\x20was\x20running).','Pass\x20either\x20--env\x20(a\x20named\x20cloud)\x20or\x20--url\x20(any\x20other\x20deployment),\x20not\x20both.','--env\x20localhost\x20has\x20no\x20OAuth\x20flow;\x20pick\x20alpha,\x20staging,\x20or\x20production.','--tenant','--model','You>\x20','toISOString','refused','taskAutomation','--input-format','abort',',\x20got\x20','actionable_error','--verbose','%\x20of\x20','\x20in\x20steps\x20of\x20','delegations\x20pending\x20<session-id>',')\x20—\x20saved\x20to\x20','isArray','now','structuredError','\x20of\x20a\x20$','delegations\x20list\x20<backend-project-id>',':\x20bucket\x20number\x20(Enter\x20to\x20leave\x20out):\x20','keepAlive','\x20(stdin\x20was\x20empty)','estimated_cost_usd','Continue\x20it\x20with:\x20delegate-cli\x20--session\x20','noSecurity','--skip-env-check\x20applies\x20to\x20`delegate-cli\x20login`\x20only.','isInteger','a\x20vertical\x20id','includeSubAgents','),\x20','\x20must\x20be\x20a\x20JSON\x20object.','--url\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Other\x20commands\x20follow\x20the\x20saved\x20login,\x20or\x20--backend\x20<url>.','pct_used','padStart','--tenant\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Switch\x20tenants\x20with:\x20delegate-cli\x20tenant\x20<name>','multiSelect','subcommand','Enter\x20numbers\x20from\x201\x20to\x20','toolName','destroy','keys','login','--authority','Usage:\x20delegate-cli\x20sessions\x20[list]\x20[--page\x20N]\x20[--limit\x20N]\x20[--include-subagents]','\x20days:\x20','\x20needs\x20a\x20JSON\x20request:\x20delegate-cli\x20','localhost','Licensing:\x20\x20\x20\x20','Already\x20answered','delegate-cli','widget','The\x20saved\x20CLI\x20login\x20could\x20not\x20be\x20refreshed.\x20Run\x20`delegate-cli\x20login`\x20again.','>.\x0a','Task\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','delegations\x20delete\x20<delegation-id>','No\x20CLI\x20login\x20to\x20switch:\x20the\x20CLI\x20is\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20','attachments','complete','Title\x20\x20\x20\x20\x20\x20\x20\x20\x20','Session\x20\x20\x20\x20\x20\x20\x20','extra_pool_consumed_pu','org-users','UPDATED','catch','toFixed','probability','tenantId','header','--task-automation\x20needs\x20computer\x20use:\x20the\x20task\x20log\x20is\x20written\x20by\x20the\x20UI-automation\x20tools.\x20Drop\x20--headless,\x20--no-computer-use,\x20--cartographer\x20and\x20--vertical\x20cartographer.','active_days','sourceTitle','readLine','status','\x0a⚠️\x20\x20Auth\x20expired.\x20Opening\x20browser\x20to\x20re-login…\x0a','\x0aStopping…\x20(Ctrl+C\x20again\x20to\x20force\x20exit)\x0a','sessionId','lockReason','--quiet','Switch\x20with:\x20delegate-cli\x20tenant\x20<name>\x0a','--skip-env-check','Usage:\x20delegate-cli\x20','test','fork','\x27\x20cannot\x20be\x20read:\x20','projectId','rejection','Renamed\x20','\x20requires\x20','\x20in\x20progress\x20on\x20session\x20','contextSummary','label','noMemory','\x20(Enter\x20to\x20skip):\x20','task','--keep-alive','parentSessionId','outputFormat','deployment','.\x20Use\x20','the\x20JSON\x20schema','--summary','delegations','\x20from\x20','an\x20effort\x20tier','total_prompt_tokens','--input-format\x20stream-json\x20reads\x20the\x20prompt\x20from\x20stdin:\x20pass\x20no\x20prompt\x20argument.','delegations\x20create\x20--session\x20<id>\x20[--to\x20<email|name>]\x20[--summary\x20<text>]\x20\x22<task>\x22|-','\x20min)','push','Organization:\x20','signal','period_days','padEnd','--vertical','quiet','check','assignedUser','oneTurn','a\x20colleague','spawn','UIPATH_BASE_URL\x20is\x20unusable.\x20','14IYcpUF','Last\x20','\x20PU\x20beyond\x20quota','delegations\x20cancel\x20<delegation-id>','origin','turn_start','\x20\x20\x20\x20','string','\x20(optional)','concat','bundledSkillsPath',').\x0a','Invalid\x20--input-format:\x20','\x20(estimated\x20$','host','print','Usage:\x20delegate-cli\x20sessions\x20cancel\x20<session-id>\x20--turn\x20<turn-id>','an\x20input\x20line\x20has\x20type\x20','\x20PU\x20used','Structured\x20output\x20failed:\x20','Token:\x20\x20\x20\x20\x20\x20\x20\x20expired\x20','organizationId',',\x20whose\x20tenant\x20is\x20chosen\x20in\x20the\x20app.\x20Run\x20`delegate-cli\x20login\x20--env\x20<env>`\x20for\x20a\x20CLI\x20login\x20of\x20your\x20own.','end','user','question','Number','--preload-skill','No\x20usage\x20in\x20the\x20last\x20','return','Delegation\x20\x20\x20\x20','\x20tokens\x0a','\x20prompt,\x20','error','Deployment:\x20\x20\x20','environment\x20variables\x20(AUTH_TOKEN/TENANT_ID/ORG_ID)','delegationId','create','high','removeEventListener','\x20token\x20units)','isSafeInteger','runnerUrl','Date\x20\x20\x20\x20\x20\x20\x20\x20Token\x20units\x20\x20Prompt\x20tokens\x20\x20Completion\x20tokens','staging','Numbers,\x20separated\x20by\x20commas\x20(Enter\x20to\x20skip):\x20','unknown\x20slug','Rubric\x20','/exit','input','verbose','from\x201\x20to\x20','package.json','.aria','--to\x20and\x20--summary\x20apply\x20to\x20`delegate-cli\x20delegations\x20create`\x20only.','--page','deepLink','max',']\x20(Enter\x20for\x20','intro','2056RqdlrZ','options','delegations\x20complete\x20<delegation-id>\x20\x22<answer>\x22|-','waitForIdle','index','noConnections','models','total_cost_usd','isTTY','\x20\x22<prompt>\x22\x0aAnswer\x20with:\x20delegate-cli\x20delegations\x20complete\x20','Tokens:\x20','✓\x20Done\x0a','\x20—\x20sign\x20out\x20in\x20the\x20Delegate\x20app\x20to\x20clear\x20that.','\x20applies\x20to\x20prompts\x20and\x20to\x20these\x20commands\x20only:\x20','once','bind','a\x20JSON\x20schema\x20file','daily','an\x20input\x20line\x20is\x20not\x20JSON','Spending:\x20\x20\x20\x20\x20$','\x20\x20\x20\x20Not\x20available\x20on\x20this\x20plan','resume','Invalid\x20--output-format:\x20','\x20is\x20required.\x0a','includes','kind','\x20of\x20session\x20','whoami','Invalid\x20--project:\x20\x22','finish','pause','file','onEvent','version','preloadSkills','close','tokenExpiresAt','Unknown\x20usage\x20view:\x20','addEventListener','sendMessage','off','structured','Steering\x20input\x20stopped:\x20','Delegated\x20','\x0aAccept\x20one\x20with:\x20delegate-cli\x20delegations\x20accept\x20<id>\x0a','confidence','typed','expiresAt','assignedUserEmail','Claimed\x20from\x20delegation\x20','total_quota_pu','type','a\x20briefing\x20text','from\x20','From\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20(resume\x20with\x20--session\x20','interopPath','model_version','The\x20turn\x20was\x20cancelled.','response','cancel','--output-format\x20','probability\x20','--attach','length','stringify','a\x20number','Invalid\x20--env:\x20','Created\x20delegation\x20','Usage:\x20delegate-cli\x20sessions\x20fork\x20<id>\x20[<message-id>]','model','description','filter','Unknown\x20flag:\x20','an\x20input\x20line\x20is\x20not\x20a\x20JSON\x20object','log','replayUserMessages','line','byoWarning','userId','\x20(resets\x20','forEach','--replay-user-messages','a\x20directory\x20path','erase','numeric','\x0adelegate-cli\x20—\x20Delegate\x20agent\x20CLI\x0a\x0aUsage:\x0a\x20\x20delegate-cli\x20[flags]\x20[\x22<prompt>\x22]\x20\x20\x20\x20Start\x20a\x20conversation\x20in\x20a\x20terminal\x0a\x20\x20delegate-cli\x20--print\x20\x22<prompt>\x22\x20\x20\x20\x20\x20\x20Send\x20one\x20prompt,\x20print\x20the\x20response,\x20and\x20exit\x0a\x20\x20delegate-cli\x20[flags]\x20-\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Read\x20one\x20prompt\x20from\x20stdin\x20through\x20EOF,\x20then\x20exit\x0a\x20\x20delegate-cli\x20-p\x20\x22<prompt>\x22\x20--output-format\x20json|stream-json\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20One\x20turn\x20with\x20JSON-only\x20stdout;\x20exit\x201\x20on\x20error\x0a\x20\x20delegate-cli\x20--json-schema\x20FILE\x20\x22<prompt>\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20One\x20turn,\x20then\x20its\x20result\x20extracted\x20as\x20JSON\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20matching\x20the\x20schema\x20in\x20FILE\x20(printed\x20after\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20answer;\x20\x22structured\x22\x20in\x20the\x20JSON\x20result);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20exit\x201\x20when\x20the\x20extraction\x20fails\x0a\x20\x20delegate-cli\x20--attach\x20PATH\x20[--attach\x20PATH\x20...]\x20\x22<prompt>\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Send\x20files\x20or\x20folders\x20with\x20the\x20first\x20message\x0a\x20\x20delegate-cli\x20login\x20[--env\x20NAME\x20|\x20--url\x20BASE]\x20[--tenant\x20NAME]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20OAuth\x20browser\x20login\x20→\x20~/.aria/sdk-auth.json.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--env\x20or\x20--url\x20required\x20on\x20FIRST\x20login;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20afterwards\x20defaults\x20to\x20the\x20saved\x20login\x27s\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20deployment.\x20--tenant\x20picks\x20a\x20tenant\x20by\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20name;\x20without\x20it\x20a\x20re-login\x20keeps\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20saved\x20tenant\x0a\x20\x20delegate-cli\x20tenant\x20[NAME]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20the\x20organization\x27s\x20tenants,\x20or\x20switch\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20saved\x20login\x20to\x20NAME\x20(no\x20browser)\x0a\x20\x20delegate-cli\x20logout\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Remove\x20the\x20saved\x20CLI\x20login\x0a\x20\x20delegate-cli\x20whoami\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20the\x20current\x20login\x20(org,\x20tenant,\x20token\x20expiry)\x0a\x20\x20delegate-cli\x20models\x20[--env\x20NAME]\x20\x20\x20\x20\x20List\x20available\x20LLM\x20models\x20for\x20the\x20current\x20tenant,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20with\x20any\x20BYO\x20configuration\x20warning\x20per\x20model\x0a\x20\x20delegate-cli\x20sessions\x20[list]\x20[--page\x20N]\x20[--limit\x20N]\x20[--include-subagents]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20your\x20backend\x20chat\x20sessions,\x20most\x20recently\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20active\x20first\x20(resume\x20one\x20with\x20--session\x20ID)\x0a\x20\x20delegate-cli\x20sessions\x20show|delete\x20ID\x20Show\x20one\x20session\x27s\x20title\x20and\x20owner,\x20or\x20delete\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20it\x20with\x20its\x20messages\x20and\x20sub-agents\x20(no\x20prompt)\x0a\x20\x20delegate-cli\x20sessions\x20rename\x20ID\x20TITLE\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Rename\x20a\x20session\x20(1-500\x20characters)\x0a\x20\x20delegate-cli\x20sessions\x20fork\x20ID\x20[MESSAGE]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Copy\x20session\x20ID\x20into\x20a\x20new\x20session,\x20up\x20to\x20and\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20including\x20message\x20MESSAGE\x20(default:\x20all\x20of\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20it);\x20continue\x20it\x20with\x20--session\x20NEW_ID\x0a\x20\x20delegate-cli\x20sessions\x20cancel\x20ID\x20--turn\x20TURN\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Cancel\x20turn\x20TURN\x20running\x20on\x20session\x20ID\x20in\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20another\x20process;\x20exits\x201\x20when\x20no\x20such\x20turn\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20is\x20in\x20progress\x0a\x20\x20delegate-cli\x20check\x20[--env\x20NAME]\x20[--headless]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Verify\x20auth,\x20backend\x20readiness,\x20backend\x20and\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20interop\x20without\x20sending\x20a\x20prompt;\x20exits\x201\x20when\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20any\x20check\x20fails\x0a\x20\x20delegate-cli\x20usage\x20[--session\x20ID]\x20\x20\x20\x20Quota\x20and\x20spend:\x20licensing\x20quota,\x20monthly\x20spend\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20and\x20cap,\x20Cartographer\x20allowance\x0a\x20\x20delegate-cli\x20usage\x20activity|daily\x20[--days\x20N]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Activity\x20totals,\x20or\x20per-day\x20usage,\x20over\x20the\x20last\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20N\x20days\x20(1-365,\x20default\x2030)\x0a\x20\x20delegate-cli\x20evaluate|rerank|verify\x20FILE|-\x20[--model\x20ID]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Stateless\x20typed\x20judgments:\x20send\x20the\x20JSON\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20request\x20in\x20FILE\x20(or\x20stdin\x20with\x20-)\x20to\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20/v1/completions/<command>\x20and\x20print\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20answers;\x20--model\x20overrides\x20its\x20\x22model\x22.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Exits\x201\x20when\x20the\x20backend\x20rejects\x20it\x0a\x20\x20delegate-cli\x20complete\x20--json-schema\x20FILE\x20[--model\x20ID]\x20[--session\x20ID]\x20\x22<prompt>\x22|-\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20One\x20structured\x20completion,\x20no\x20agent\x20turn:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20print\x20the\x20JSON\x20object\x20matching\x20the\x20schema\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20in\x20FILE\x20(--output-format\x20json\x20prints\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{structured,\x20usage});\x20--session\x20adds\x20that\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20session\x27s\x20history\x20as\x20context.\x20Exits\x201\x20when\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20output\x20fails\x20the\x20schema\x20(422)\x20or\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20backend\x20rejects\x20the\x20request\x0a\x20\x20delegate-cli\x20transcribe\x20FILE|-\x20\x20\x20\x20\x20\x20\x20Speech-to-text:\x20print\x20the\x20text\x20of\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20audio\x20in\x20FILE,\x20or\x20on\x20stdin\x20with\x20-.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20mp3,\x20mp4,\x20mpeg,\x20mpga,\x20m4a,\x20wav\x20or\x20webm,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20up\x20to\x2014\x20MB.\x20Exits\x202\x20when\x20the\x20audio\x20is\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20refused\x20locally,\x201\x20when\x20the\x20backend\x20rejects\x20it\x0a\x20\x20delegate-cli\x20org-users\x20QUERY\x20\x20\x20\x20\x20\x20\x20\x20\x20Search\x20your\x20organization\x27s\x20users\x20by\x20name\x20or\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20email\x20prefix\x20(2-100\x20characters)\x0a\x20\x20delegate-cli\x20delegations\x20create\x20--session\x20ID\x20[--to\x20WHO]\x20[--summary\x20TEXT]\x20\x22<task>\x22|-\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Hand\x20a\x20task\x20from\x20session\x20ID\x20to\x20a\x20colleague\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(WHO:\x20an\x20email,\x20or\x20a\x20name\x20matching\x20one\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20person);\x20without\x20--to,\x20print\x20a\x20link\x20anyone\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20in\x20the\x20organization\x20can\x20claim\x0a\x20\x20delegate-cli\x20delegations\x20pending\x20SESSION\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Answers\x20to\x20delegations\x20from\x20SESSION\x20that\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20await\x20acceptance\x20(poll\x20this)\x0a\x20\x20delegate-cli\x20delegations\x20accept|dismiss|cancel|delete\x20ID\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Take\x20an\x20answer\x20into\x20its\x20session,\x20drop\x20it,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20withdraw\x20a\x20live\x20delegation,\x20or\x20delete\x20it\x0a\x20\x20delegate-cli\x20delegations\x20list\x20PROJECT\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Every\x20delegation\x20targeting\x20a\x20backend\x20project\x0a\x20\x20delegate-cli\x20delegations\x20show|claim\x20ID|LINK\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Read\x20a\x20delegation\x20assigned\x20to\x20you\x20(or\x20a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20delegate://delegation/…\x20link),\x20or\x20claim\x20it:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20prints\x20the\x20session\x20to\x20work\x20it\x20in\x0a\x20\x20delegate-cli\x20delegations\x20complete\x20ID\x20\x22<answer>\x22|-\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Send\x20the\x20answer\x20to\x20a\x20delegation\x20you\x20claimed\x0a\x20\x20delegate-cli\x20host\x20[flags]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Run\x20this\x20PC\x20as\x20a\x20remote\x20worker\x20until\x20Ctrl+C\x0a\x20\x20delegate-cli\x20host\x20install\x20[flags]\x20\x20\x20\x20Auto-start\x20the\x20host\x20at\x20login\x20(macOS\x20LaunchAgent\x20/\x20Windows\x20Scheduled\x20Task)\x0a\x20\x20delegate-cli\x20host\x20uninstall\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Remove\x20auto-start\x0a\x20\x20delegate-cli\x20host\x20status\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20auto-start\x20state\x0a\x20\x20delegate-cli\x20--cleanup\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Stop\x20running\x20interop\x0a\x0aFlags:\x0a\x20\x20-p,\x20--print\x20\x20\x20\x20\x20\x20\x20Run\x20one\x20turn\x20and\x20exit,\x20including\x20any\x20tool\x20execution.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Automatic\x20when\x20stdin\x20or\x20stdout\x20is\x20not\x20a\x20terminal,\x20or\x20with\x20-\x0a\x20\x20--env\x20NAME\x20\x20\x20\x20\x20\x20\x20\x20alpha\x20|\x20staging\x20|\x20production\x20|\x20localhost\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Composes\x20backend\x20URL\x20from\x20saved\x20auth\x20(org/tenant\x20slugs).\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Omitted\x20→\x20the\x20deployment\x20you\x20logged\x20into\x20(delegate-cli\x20login).\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20localhost\x20→\x20http://localhost:5002.\x20No\x20saved\x20login\x20and\x20no\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--env/--backend/BACKEND_URL\x20is\x20an\x20error\x20—\x20never\x20a\x20guess.\x0a\x20\x20--url\x20BASE\x20\x20\x20\x20\x20\x20\x20\x20(login)\x20Base\x20URL\x20of\x20a\x20deployment\x20that\x20is\x20not\x20a\x20named\x20cloud\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20—\x20Automation\x20Suite,\x20Dedicated,\x20Public\x20Sector.\x20Accepts\x20a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20tenant\x20path\x20or\x20a\x20trailing\x20/identity_\x20and\x20reduces\x20it\x20to\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20origin.\x20Mutually\x20exclusive\x20with\x20--env;\x20also\x20settable\x20via\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20UIPATH_BASE_URL.\x20Alias:\x20--authority.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Automation\x20Suite\x20needs\x2026.10+\x20with\x20the\x20Delegate\x20service;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20the\x20deployment\x20rejects\x20the\x20built-in\x20client,\x20register\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20your\x20own\x20—\x20see\x20UIPATH_CLIENT_ID\x20in\x20the\x20README\x0a\x20\x20--skip-env-check\x20\x20(login)\x20Do\x20not\x20check\x20the\x20deployment\x20before\x20signing\x20in.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Escape\x20hatch\x20for\x20a\x20deployment\x20that\x20hides\x20its\x20OIDC\x20discovery\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20document\x20or\x20serves\x20Identity\x20from\x20another\x20origin;\x20it\x20also\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20gives\x20up\x20the\x20diagnosis\x20when\x20something\x20is\x20really\x20wrong\x0a\x20\x20--backend\x20URL\x20\x20\x20\x20\x20Full\x20backend\x20URL\x20—\x20escape\x20hatch\x20overrides\x20--env\x0a\x20\x20--tenant\x20NAME\x20\x20\x20\x20\x20(login)\x20Tenant\x20to\x20sign\x20into,\x20by\x20name\x20(case-insensitive).\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default:\x20the\x20saved\x20login\x27s\x20tenant\x20on\x20that\x20cloud,\x20else\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20org\x27s\x20first\x20tenant.\x20Later:\x20delegate-cli\x20tenant\x20<name>\x0a\x20\x20--model\x20NAME\x20\x20\x20\x20\x20\x20LLM\x20model\x20id\x20(e.g.\x20claude_sonnet_5_5,\x20kimi_k3).\x20Checked\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20against\x20the\x20tenant\x27s\x20catalog\x20(delegate-cli\x20models)\x20before\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20run\x20starts;\x20an\x20unknown\x20id\x20fails\x20and\x20lists\x20the\x20valid\x20ones.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default:\x20gpt_5_6_luna.\x20Also\x20settable\x20via\x20MODEL\x20env\x20var.\x0a\x20\x20--keep-alive\x20\x20\x20\x20\x20\x20Reuse/leave\x20interop\x20running\x20across\x20invocations\x0a\x20\x20--headless\x20\x20\x20\x20\x20\x20\x20\x20Skip\x20interop\x20(text-only\x20prompts)\x0a\x20\x20--no-computer-use\x20Keep\x20interop\x20—\x20file,\x20Office,\x20PDF\x20and\x20shell\x20tools\x20keep\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20working\x20—\x20but\x20drop\x20the\x20screen:\x20no\x20screenshots,\x20no\x20window\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20list,\x20no\x20UI-automation\x20tools.\x20Cuts\x20image\x20tokens\x20and\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20per-turn\x20screen\x20capture,\x20and\x20stops\x20desktop\x20window\x20titles\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20leaving\x20the\x20machine.\x20Use\x20for\x20document\x20and\x20file\x20work.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--headless\x20implies\x20this\x20and\x20turns\x20interop\x20off\x20as\x20well\x0a\x20\x20--no-connections\x20\x20Disable\x20orchestrator\x20ConnectionService\x20(silences\x20404\x20warnings)\x0a\x20\x20--no-security\x20\x20\x20\x20\x20Disable\x20tool\x20security\x20wrapper\x20(use\x20only\x20for\x20debugging)\x0a\x20\x20--no-memory\x20\x20\x20\x20\x20\x20\x20Do\x20not\x20send\x20the\x20Delegate\x20app\x27s\x20local\x20long-term\x20memories\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20with\x20each\x20turn,\x20and\x20do\x20not\x20ask\x20the\x20model\x20to\x20save\x20new\x20ones\x0a\x20\x20--task-automation\x20Record\x20every\x20UI\x20action\x20of\x20the\x20run,\x20with\x20the\x20selector\x20of\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20element\x20it\x20acted\x20on,\x20to\x20<working-dir>/captures/<session>/\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(~/.aria-sdk\x20without\x20--working-dir),\x20so\x20you\x20can\x20then\x20ask\x20for\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20task\x20as\x20a\x20UiPath\x20coded\x20workflow\x20(uipath-taskautomation\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20skill).\x20The\x20log\x20holds\x20on-screen\x20text\x20and\x20your\x20requests;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20typed\x20values\x20are\x20masked.\x20Needs\x20computer\x20use.\x20Ignored\x20with\x20a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20warning\x20where\x20the\x20deployment\x20does\x20not\x20offer\x20it\x20yet\x0a\x20\x20--attach\x20PATH\x20\x20\x20\x20\x20File\x20or\x20folder\x20sent\x20with\x20the\x20first\x20message\x20(repeatable),\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20as\x20the\x20Delegate\x20app\x20sends\x20attached\x20files:\x20images\x20inline,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20PDFs\x20and\x20other\x20documents\x20as\x20a\x20path\x20the\x20agent\x20reads,\x20text\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20inline\x20up\x20to\x2016,000\x20characters.\x2030\x20MiB\x20per\x20message\x20in\x20all;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20larger\x20files\x20go\x20as\x20a\x20path.\x20In\x20a\x20conversation,\x20later\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20messages\x20carry\x20none\x20of\x20their\x20own,\x20but\x20the\x20first\x20message\x27s\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20stay\x20in\x20context\x0a\x20\x20--preload-skill\x20NAME\x20\x20Preload\x20a\x20skill\x20into\x20the\x20session\x20(repeatable).\x20The\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20skill\x27s\x20content\x20is\x20attached\x20before\x20the\x20first\x20model\x20turn\x20—\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20same\x20mechanism\x20as\x20project\x20preloaded\x20skills\x20in\x20the\x20app\x0a\x20\x20--cartographer\x20\x20\x20\x20Cartographer\x20engagement\x20preset.\x20Equivalent\x20to\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--vertical\x20cartographer\x20--no-computer-use\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--preload-skill\x20business-analysis\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--preload-skill\x20project-task-list\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--preload-skill\x20knowledge-base\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--preload-skill\x20source-coverage\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--preload-skill\x20note-taker.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Add\x20--project/--working-dir\x20for\x20where\x20the\x20files\x20live,\x20and\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20extra\x20--preload-skill\x20flags\x20for\x20more\x20skills\x20—\x20a\x20skill\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20preset\x20already\x20covers\x20is\x20not\x20preloaded\x20twice.\x20An\x20explicit\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--headless\x20still\x20wins\x20and\x20turns\x20interop\x20off;\x20another\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--vertical\x20ID\x20is\x20refused\x0a\x20\x20--project\x20ID\x20\x20\x20\x20\x20\x20Route\x20the\x20session\x27s\x20local\x20wiki\x20and\x20plans\x20to\x20a\x20project\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(<working-dir>/projects/<ID>/wiki).\x20Client-side\x20key\x20only\x0a\x20\x20--vertical\x20ID\x20\x20\x20\x20\x20Run\x20the\x20session\x20as\x20that\x20product\x27s\x20vertical,\x20as\x20its\x20tab\x20in\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20desktop\x20app\x20does,\x20with\x20no\x20desktop\x20app\x20installed:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20cartographer\x20brings\x20the\x20Map\x20of\x20Work\x20and,\x20without\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--preload-skill,\x20its\x20template\x27s\x20skills.\x20Default:\x20Delegate\x0a\x20\x20--working-dir\x20PATH\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Shell\x20cwd\x20for\x20the\x20agent\x20and\x20root\x20for\x20SDK-local\x20state.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Relative\x20paths\x20resolve\x20against\x20the\x20current\x20directory;\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20directory\x20is\x20created\x20if\x20missing\x0a\x20\x20--skills-path\x20PATH\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Folder\x20of\x20custom\x20skills,\x20loaded\x20on\x20top\x20of\x20the\x20skills\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20package\x20ships;\x20wins\x20on\x20a\x20name\x20clash\x20(also:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20DELEGATE_BUNDLED_SKILLS_PATH)\x0a\x20\x20--effort\x20TIER\x20\x20\x20\x20\x20Reasoning\x20effort:\x20low\x20|\x20medium\x20|\x20high\x20|\x20xhigh\x20|\x20max.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default:\x20the\x20model\x27s\x20recommended\x20tier\x0a\x20\x20--session\x20ID\x20\x20\x20\x20\x20\x20Continue\x20an\x20existing\x20backend\x20session\x20(an\x20unknown\x20id\x20exits\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x201;\x20the\x20backend\x20assigns\x20new\x20ids).\x20For\x20complete:\x20the\x20session\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20whose\x20history\x20is\x20the\x20context\x0a\x20\x20--json-schema\x20FILE\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20JSON\x20schema\x20the\x20structured\x20answer\x20must\x20match\x20(complete,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20and\x20prompts:\x20implies\x20--print)\x0a\x20\x20--runner-url\x20URL\x20\x20(host)\x20Runner\x20worker\x20WS\x20URL.\x20Required;\x20or\x20CONTROL_PLANE_WS_URL\x20env\x0a\x20\x20--interop\x20PATH\x20\x20\x20\x20(host)\x20Interop\x20binary\x20path;\x20or\x20INTEROP_EXECUTABLE_PATH\x20env.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Absent\x20→\x20registration/discovery\x20only,\x20tool\x20execution\x20disabled\x0a\x20\x20--worker-id\x20ID\x20\x20\x20\x20(host)\x20Stable\x20worker\x20identity;\x20or\x20WORKER_ID\x20env.\x20Default:\x20hostname\x0a\x20\x20--page\x20N\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(sessions)\x20Page\x20to\x20show,\x20from\x201.\x20Default:\x201\x0a\x20\x20--limit\x20N\x20\x20\x20\x20\x20\x20\x20\x20\x20(sessions)\x20Rows\x20per\x20page,\x201-100.\x20Default:\x2030\x0a\x20\x20--include-subagents\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(sessions)\x20Also\x20list\x20sub-agent\x20sessions,\x20hidden\x20by\x20default\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20as\x20in\x20the\x20desktop\x20app\x27s\x20history\x0a\x20\x20--to\x20WHO\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(delegations\x20create)\x20Assign\x20to\x20this\x20person:\x20an\x20email,\x20or\x20a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20name\x20that\x20matches\x20exactly\x20one\x20colleague\x20(see\x20org-users)\x0a\x20\x20--summary\x20TEXT\x20\x20\x20\x20(delegations\x20create)\x20The\x20briefing\x20the\x20person\x20starts\x20from.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default:\x20empty,\x20for\x20a\x20task\x20that\x20stands\x20on\x20its\x20own\x0a\x20\x20--output-format\x20FMT\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20text\x20(default)\x20|\x20json\x20|\x20stream-json.\x20json\x20prints\x20one\x20result\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20object\x20on\x20exit;\x20stream-json\x20prints\x20every\x20agent\x20event\x20as\x20one\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20JSON\x20line,\x20then\x20the\x20result.\x20Both\x20keep\x20stdout\x20JSON-only\x20(logs,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20progress\x20and\x20the\x20session\x20id\x20go\x20to\x20stderr),\x20imply\x20--print,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20and\x20exit\x201\x20when\x20the\x20turn\x20ends\x20in\x20error.\x20Also\x20honoured\x20by\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20every\x20subcommand\x20that\x20prints\x20a\x20result\x20(all\x20but\x20login,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20logout,\x20tenant\x20and\x20host)\x0a\x20\x20--input-format\x20FMT\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20text\x20(default)\x20|\x20stream-json.\x20stream-json\x20reads\x20one\x20JSON\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20user\x20message\x20per\x20line\x20on\x20stdin\x20while\x20the\x20turn\x20runs:\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20first\x20is\x20the\x20prompt\x20(give\x20none\x20as\x20an\x20argument),\x20each\x20later\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20one\x20steers\x20the\x20turn\x20in\x20flight.\x20Needs\x20--output-format\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20stream-json\x0a\x20\x20--replay-user-messages\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(--input-format\x20stream-json)\x20Echo\x20each\x20steering\x20message\x20on\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20stdout\x20(isReplay:\x20true,\x20same\x20uuid)\x20once\x20the\x20agent\x20takes\x20it\x0a\x20\x20-q,\x20--quiet\x20\x20\x20\x20\x20\x20\x20Suppress\x20🤔\x20thinking\x20output\x20to\x20stderr\x0a\x20\x20--verbose\x20\x20\x20\x20\x20\x20\x20\x20\x20Surface\x20the\x20SDK\x27s\x20and\x20the\x20framework\x27s\x20own\x20logs.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Diagnostics\x20only,\x20on\x20stdout;\x20independent\x20of\x20-q\x0a\x20\x20-h,\x20--help\x20\x20\x20\x20\x20\x20\x20\x20Show\x20this\x20help\x0a\x20\x20-v,\x20--version\x20\x20\x20\x20\x20Print\x20the\x20installed\x20CLI\x20version\x0a\x0aConversation:\x20Enter\x20sends\x20a\x20message;\x20/exit\x20or\x20EOF\x20exits;\x20Ctrl+C\x20stops\x20and\x20exits.\x0a\x20\x20Ctrl+C\x20during\x20a\x20turn\x20cancels\x20it\x20on\x20the\x20backend\x20too;\x20a\x20second\x20Ctrl+C\x20force-exits.\x0a\x20\x20An\x20optional\x20initial\x20prompt\x20is\x20followed\x20by\x20more\x20input.\x20The\x20session\x20ID\x20is\x20printed\x0a\x20\x20to\x20stderr;\x20resume\x20later\x20with\x20--session\x20ID.\x20Redirected\x20input\x20is\x20one\x20prompt.\x0aAuth:\x20prompts\x20auto-retry\x20on\x20401\x20by\x20opening\x20the\x20browser\x20to\x20re-login\x20(TTY\x20only),\x0a\x20\x20preserving\x20the\x20active\x20session.\x0a','backendUrl','an\x20email\x20address\x20or\x20name',']\x20Backend\x20URL:\x20','limit','detail','settle','verify','--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`delegate-cli\x20sessions\x20[list]`\x20only.','Answered','Unknown\x20delegations\x20action:\x20','token_units','a\x20format\x20(','ASSIGNEE','\x20<title>','8826273MuOXjg','Base\x20URL:\x20\x20\x20\x20\x20','.\x20Drop\x20one\x20of\x20the\x20two.','questions','\x20active\x20days','Something\x20else','setPrompt','Already\x20accepted','rename','More:\x20delegate-cli\x20sessions\x20--page\x20','step','\x20sessions\x20on\x20','lastType','cleanup','--days','production','thinking','inputFormat','No\x20answers\x20awaiting\x20acceptance.\x0a','list','pop','a\x20file\x20path','floor','content','\x20token\x20units','operands','\x20or\x20your\x20own\x20answer','round','transcribe\x20needs\x20audio:\x20delegate-cli\x20transcribe\x20<file>,\x20or\x20-\x20to\x20read\x20stdin.','bucket','self-hosted\x20(Automation\x20Suite\x20/\x20Dedicated)','stack','split','map','shift','513euSOPV','usage','Licensing:\x20\x20\x20\x20no\x20licensing\x20quota\x20applies','turnId','sessions','Bearer\x20','unit','Auth\x20comes\x20from\x20AUTH_TOKEN/TENANT_ID/ORG_ID\x20—\x20set\x20TENANT_ID\x20and\x20TENANT_SLUG\x20to\x20change\x20the\x20tenant.','alreadyCompleted','session_start','auth.json','--input-format\x20stream-json\x20needs\x20--output-format\x20stream-json:\x20the\x20steering\x20messages\x20are\x20answered\x20on\x20stdout.','\x20\x22<prompt>\x22\x0a','total_token_units'];_0x1dd0=function(){return _0x17371b;};return _0x1dd0();}async function*re(_0x3638e1,_0x2e53bc){let _0x154fa9=_0x490e73({'input':_0x3638e1,'crlfDelay':0x1/0x0});try{for await(let _0x401760 of _0x154fa9){let _0x5a09ab;try{_0x5a09ab=He(_0x401760);}catch(_0x1a0514){if(!(_0x1a0514 instanceof _))throw _0x1a0514;_0x2e53bc(_0x1a0514);continue;}_0x5a09ab&&(yield _0x5a09ab);}}finally{_0x154fa9['close']();}}import{BUSINESS_ANALYSIS_PRELOADED_SKILLS as _0x16d551,DelegateAgent as _0x30a665,cancelTurn as _0x435d97,InteropProcess as _0x571419,complete as _0x4ff14b,DEFAULT_MODEL as _0xbec683,createBackendClient as _0x32a11f,evaluate as _0x311369,isCompletionRequestError as _0x2fcd32,isEvaluationRequestError as _0xccce93,isTranscriptionError as _0x47752a,rerank as _0x2a0c65,transcribe as _0x2258c1,verify as _0x5a2f27,acceptDelegation as _0x25876a,cancelDelegation as _0x1e2d72,claimDelegation as _0x496a2f,completeDelegation as _0x5d1325,createDelegation as _0x291105,deleteDelegation as _0x2446dc,dismissDelegation as _0x416cf2,getSessionDelegations as _0x14a156,isDelegationError as _0x42fc98,listDelegations as _0x3a7afc,listOrgUsers as _0x52a83e,previewDelegation as _0x11f6c6,TurnResultCollector as _0x17e3f4,agentEventToJsonLine as _0x3ea15f,describeBaseUrlRejection as _0xf4536d,getActivitySummary as _0x3204ee,getAuthFilePath as _0x38698e,getByoWarnings as _0x2e1e1d,getCartographerAllowance as _0x38f359,getDailyBreakdown as _0x311059,getLicensingSummary as _0x21f058,getMonthlySpending as _0x23359b,isOutputFormat as _0xe5e1fb,isCloudBaseUrl as _0x38f56e,isSafeProjectFolderSegment as _0x4b7086,listModels as _0x6ddc31,listSessions as _0x2057ea,getSession as _0x244d5a,renameSession as _0x1266e4,deleteSession as _0x37fd60,deleteSessionTaskLog as _0x2e0aa7,forkSession as _0x53bb0f,isBackendRequestError as _0x38fdcf,MAX_SESSION_PAGE_SIZE as _0x5aa525,listTenants as _0x163b33,loadAndRefreshAuth as _0x16c939,loadAndRefreshSdkLogin as _0x69d5dd,parsePlatformBaseUrl as _0x3ec9c4,resolveBackendUrl as _0xa94bee,runHealthCheck as _0x1cf080,runHostCommand as _0x2cdd2e,runLoginFlow as _0x1c547c,runTurnForResult as _0x3c27f6,saveAuthData as _0x231f72,switchTenant as _0x10027a,toJsonLine as _0x512d74,ENV_TO_CLOUD as _0x1e22ff,OUTPUT_FORMATS as _0x49c097,isRunStopNotice as _0x585710,extractActionableErrorText as _0x460321}from'@uipath/delegate-sdk';function ie(_0x2007f9){const _0x51be4b=_0x5eae74;let {input:_0x4101cf,getAgent:_0x447344,replay:_0x27f429,onEvent:_0x12c0c8,write:_0x27a536,warn:_0x49cd04,isRunStopNotice:_0x4b9114,actionableErrorText:_0xc47359}=_0x2007f9,_0x165d12=0x0,_0x134578=0x0,_0x533eff=Promise['resolve'](),_0x2f3800=!0x1,_0x2fcb7c=()=>{},_0x45fb6e=new Promise(_0xb8ff0f=>{_0x2fcb7c=_0xb8ff0f;}),_0x32ad12=[],_0x1c71b1=_0x12c0c8(_0x2ac079=>{const _0x17038b=_0x367c;_0x2ac079[_0x17038b(0x1d9)]===_0x17038b(0x16f)&&(_0x2fcb7c(),_0x32ad12['shift']()?.());}),_0xefce9=_0x17e89d=>{_0x27f429&&_0x27a536(oe(_0x17e89d,_0x447344()['getSessionId']()));},_0x3546ed=(async()=>{const _0x1eeef=_0x367c;await _0x45fb6e;for await(let _0x368376 of _0x4101cf['messages']){if(_0x2f3800)return;_0x165d12===0x0&&(_0x134578=_0x447344()[_0x1eeef(0xbd)]()[_0x1eeef(0x1e6)]),_0x165d12++;let _0x1296ec=new Promise(_0x28d7ce=>{const _0x382bf8=_0x1eeef;_0x32ad12[_0x382bf8(0x15d)](()=>{_0xefce9(_0x368376),_0x28d7ce();});}),_0x42cdb3=()=>{const _0x2b3b8e=_0x1eeef;_0x165d12--,_0x32ad12[_0x2b3b8e(0x21f)]();},_0x4bd03d=_0x447344()['steer'](_0x368376[_0x1eeef(0x284)]);_0x533eff=_0x4bd03d[_0x1eeef(0x130)](()=>{});try{await _0x4bd03d?await Promise[_0x1eeef(0xac)]([_0x1296ec,_0x447344()[_0x1eeef(0x1a9)]()]):(_0x42cdb3(),_0x49cd04(_0x1eeef(0xd4)));}catch(_0x4b0173){_0x42cdb3(),_0x49cd04('A\x20steering\x20message\x20was\x20not\x20sent:\x20'+(_0x4b0173 instanceof Error?_0x4b0173[_0x1eeef(0xc1)]:String(_0x4b0173))+'\x0a');}}})()[_0x51be4b(0x130)](_0x4a7693=>{const _0x2b77c8=_0x51be4b;_0x49cd04(_0x2b77c8(0x1d0)+(_0x4a7693 instanceof Error?_0x4a7693['message']:String(_0x4a7693))+'\x0a');});return{'settle':async _0x4582f4=>{const _0x3e1573=_0x51be4b;if(await _0x533eff,_0x165d12===0x0)return _0x4582f4;await _0x447344()[_0x3e1573(0x1a9)]();for(let _0x59c1af of _0x32ad12)_0x59c1af();_0x32ad12=[];let _0x581cca=_0x447344()[_0x3e1573(0xbd)]()[_0x3e1573(0xc3)](_0x134578)['findLast'](_0x3276a4=>_0x3276a4[_0x3e1573(0x123)]===_0x3e1573(0xf9)||_0x4b9114(_0x3276a4)||_0x3276a4[_0x3e1573(0x1d9)]==='ai'&&_0x3276a4[_0x3e1573(0x123)]!=='agent_thought'&&_0x3276a4[_0x3e1573(0x123)]!=='followUpsRenderer'&&!!_0x3276a4[_0x3e1573(0x222)]);if(!_0x581cca)return{..._0x4582f4,'failed':!0x0,'text':_0x3e1573(0x285)};let _0x39fe1d=_0x581cca[_0x3e1573(0x123)]==='actionable_error';return typeof _0x581cca[_0x3e1573(0x222)]!='string'?{..._0x4582f4,'failed':_0x39fe1d}:{..._0x4582f4,'failed':_0x39fe1d,'text':_0x39fe1d?_0xc47359(_0x581cca['content']):_0x581cca[_0x3e1573(0x222)]};},'stop':()=>{const _0x249c4f=_0x51be4b;_0x2f3800=!0x0,_0x1c71b1(),_0x4101cf[_0x249c4f(0x1c9)]();}};}var Gt=[_0x5eae74(0x11a),'tenant',_0x5eae74(0x1ac),_0x5eae74(0x178),'logout',_0x5eae74(0x1c1),'check',_0x5eae74(0x232),_0x5eae74(0x22f),_0x5eae74(0xb7),'rerank',_0x5eae74(0x203),_0x5eae74(0x12a),_0x5eae74(0x247),'delegations','org-users'],ue=['',_0x5eae74(0x1ac),'whoami',_0x5eae74(0x164),_0x5eae74(0x232),_0x5eae74(0x22f),_0x5eae74(0xb7),_0x5eae74(0x282),_0x5eae74(0x203),_0x5eae74(0x12a),_0x5eae74(0x247),_0x5eae74(0x156),'org-users'],pe=[_0x5eae74(0xe6),'medium',_0x5eae74(0x190),'xhigh',_0x5eae74(0x1a3)],Wt=_0x16d551,B=_0x5eae74(0xc7);function b(_0x306176,_0xf75d52,_0x5d4ad8,_0xdf8bfd){const _0x2dc4fc=_0x5eae74;let _0xb67d7d=_0x306176[_0xf75d52];return(!_0xb67d7d||_0xb67d7d[_0x2dc4fc(0x1e6)]>0x1&&_0xb67d7d[_0x2dc4fc(0x24a)]('-'))&&(console['error'](_0x5d4ad8+_0x2dc4fc(0x148)+_0xdf8bfd+'.'),process[_0x2dc4fc(0x2a5)](0x2)),_0xb67d7d;}function K(_0x58f071,_0x5b25ec,_0x11916b,_0x101c53){const _0x55c604=_0x5eae74;let _0x27c08b=b(_0x58f071,_0x5b25ec,_0x11916b,_0x55c604(0x1e8)),_0x16ad43=Number(_0x27c08b);return(!/^\d+$/['test'](_0x27c08b)||_0x16ad43<0x1||!Number[_0x55c604(0x193)](_0x16ad43)||_0x101c53!==void 0x0&&_0x16ad43>_0x101c53)&&(console[_0x55c604(0x18b)](_0x11916b+_0x55c604(0xcf)+(_0x101c53===void 0x0?_0x55c604(0x27e):_0x55c604(0x19d)+_0x101c53)+_0x55c604(0xf8)+_0x27c08b+'.'),process[_0x55c604(0x2a5)](0x2)),_0x16ad43;}function Kt(_0x56c1fb){const _0x34ed4f=_0x5eae74;let _0x1fbd84={'subcommand':'','prompt':'','print':!0x1,'keepAlive':!0x1,'cleanup':!0x1,'headless':!0x1,'noComputerUse':!0x1,'cartographer':!0x1,'noConnections':!0x1,'noSecurity':!0x1,'noMemory':!0x1,'taskAutomation':!0x1,'quiet':!0x1,'verbose':!0x1,'outputFormat':'text','inputFormat':_0x34ed4f(0x284),'replayUserMessages':!0x1,'preloadSkills':[],'attachments':[],'skipEnvCheck':!0x1,'includeSubAgents':!0x1,'operands':[],'help':!0x1,'version':!0x1};Gt[_0x34ed4f(0x1be)](_0x56c1fb[0x0])&&(_0x1fbd84['subcommand']=_0x56c1fb[0x0],_0x56c1fb=_0x56c1fb[_0x34ed4f(0xc3)](0x1));let _0x3a6f69=[];for(let _0x4f7ccf=0x0;_0x4f7ccf<_0x56c1fb[_0x34ed4f(0x1e6)];_0x4f7ccf++){let _0x148acb=_0x56c1fb[_0x4f7ccf];switch(_0x148acb){case'--print':case'-p':_0x1fbd84[_0x34ed4f(0x179)]=!0x0;break;case _0x34ed4f(0x14f):_0x1fbd84[_0x34ed4f(0x105)]=!0x0;break;case'--cleanup':_0x1fbd84['cleanup']=!0x0;break;case'--headless':_0x1fbd84[_0x34ed4f(0x256)]=!0x0;break;case'--no-computer-use':_0x1fbd84['noComputerUse']=!0x0;break;case _0x34ed4f(0x245):_0x1fbd84[_0x34ed4f(0xc7)]=!0x0,_0x1fbd84[_0x34ed4f(0x2a4)]=!0x0,_0x1fbd84['preloadSkills']['push'](...Wt);break;case _0x34ed4f(0x299):_0x1fbd84['noConnections']=!0x0;break;case'--no-security':_0x1fbd84[_0x34ed4f(0x109)]=!0x0;break;case _0x34ed4f(0x248):_0x1fbd84[_0x34ed4f(0x14c)]=!0x0;break;case'--task-automation':_0x1fbd84['taskAutomation']=!0x0;break;case _0x34ed4f(0x13e):case'-q':_0x1fbd84['quiet']=!0x0;break;case _0x34ed4f(0xfa):_0x1fbd84[_0x34ed4f(0x19c)]=!0x0;break;case _0x34ed4f(0x23d):_0x1fbd84['backendUrl']=_0x56c1fb[++_0x4f7ccf];break;case _0x34ed4f(0xf1):_0x1fbd84[_0x34ed4f(0x1ec)]=_0x56c1fb[++_0x4f7ccf];break;case _0x34ed4f(0x24d):_0x1fbd84[_0x34ed4f(0x194)]=_0x56c1fb[++_0x4f7ccf];break;case _0x34ed4f(0x286):_0x1fbd84[_0x34ed4f(0x1de)]=_0x56c1fb[++_0x4f7ccf];break;case'--worker-id':_0x1fbd84[_0x34ed4f(0xb5)]=_0x56c1fb[++_0x4f7ccf];break;case _0x34ed4f(0x185):_0x1fbd84[_0x34ed4f(0x1c8)][_0x34ed4f(0x15d)](b(_0x56c1fb,++_0x4f7ccf,_0x148acb,_0x34ed4f(0xe0)));break;case'--project':{let _0x568b0f=b(_0x56c1fb,++_0x4f7ccf,_0x148acb,_0x34ed4f(0xa6));_0x4b7086(_0x568b0f)||(console['error'](_0x34ed4f(0x1c2)+_0x568b0f+_0x34ed4f(0x29c)),process['exit'](0x2)),_0x1fbd84['projectId']=_0x568b0f;break;}case _0x34ed4f(0x162):_0x1fbd84[_0x34ed4f(0x25e)]=b(_0x56c1fb,++_0x4f7ccf,_0x148acb,_0x34ed4f(0x10c));break;case _0x34ed4f(0x242):{let _0x361bfb=b(_0x56c1fb,++_0x4f7ccf,_0x148acb,_0x34ed4f(0x208)+_0x49c097[_0x34ed4f(0xb8)]('\x20|\x20')+')');_0xe5e1fb(_0x361bfb)||(console[_0x34ed4f(0x18b)](_0x34ed4f(0x1bc)+_0x361bfb+_0x34ed4f(0x153)+_0x49c097[_0x34ed4f(0xb8)]('\x20|\x20')+'.'),process[_0x34ed4f(0x2a5)](0x2)),_0x1fbd84['outputFormat']=_0x361bfb;break;}case _0x34ed4f(0xf6):{let _0x14448a=b(_0x56c1fb,++_0x4f7ccf,_0x148acb,_0x34ed4f(0x208)+j[_0x34ed4f(0xb8)](_0x34ed4f(0x2a8))+')');se(_0x14448a)||(console[_0x34ed4f(0x18b)](_0x34ed4f(0x176)+_0x14448a+_0x34ed4f(0x153)+j[_0x34ed4f(0xb8)](_0x34ed4f(0x2a8))+'.'),process['exit'](0x2)),_0x1fbd84[_0x34ed4f(0x21c)]=_0x14448a;break;}case _0x34ed4f(0x1f8):_0x1fbd84[_0x34ed4f(0x1f2)]=!0x0;break;case'--session':_0x1fbd84[_0x34ed4f(0x13c)]=b(_0x56c1fb,++_0x4f7ccf,_0x148acb,'a\x20session\x20id');break;case _0x34ed4f(0x1a1):_0x1fbd84[_0x34ed4f(0xe7)]=K(_0x56c1fb,++_0x4f7ccf,_0x148acb);break;case _0x34ed4f(0x2b6):_0x1fbd84[_0x34ed4f(0x200)]=K(_0x56c1fb,++_0x4f7ccf,_0x148acb,_0x5aa525);break;case _0x34ed4f(0x274):_0x1fbd84[_0x34ed4f(0x10d)]=!0x0;break;case _0x34ed4f(0x27d):_0x1fbd84[_0x34ed4f(0xe1)]=b(_0x56c1fb,++_0x4f7ccf,_0x148acb,_0x34ed4f(0x1b6));break;case _0x34ed4f(0x1e5):{let _0x706f3f=_0x28edef['resolve'](process[_0x34ed4f(0xe2)](),b(_0x56c1fb,++_0x4f7ccf,_0x148acb,_0x34ed4f(0x220)));_0x637791[_0x34ed4f(0xde)](_0x706f3f)||(console['error']('--attach:\x20no\x20such\x20file\x20or\x20folder:\x20'+_0x706f3f),process[_0x34ed4f(0x2a5)](0x2)),_0x1fbd84[_0x34ed4f(0x129)][_0x34ed4f(0x15d)](_0x706f3f);break;}case _0x34ed4f(0x24f):_0x1fbd84[_0x34ed4f(0x231)]=b(_0x56c1fb,++_0x4f7ccf,_0x148acb,'a\x20turn\x20id');break;case'--to':_0x1fbd84[_0x34ed4f(0xdc)]=b(_0x56c1fb,++_0x4f7ccf,_0x148acb,_0x34ed4f(0x1fe));break;case _0x34ed4f(0x155):_0x1fbd84['contextSummary']=b(_0x56c1fb,++_0x4f7ccf,_0x148acb,_0x34ed4f(0x1da));break;case _0x34ed4f(0x219):_0x1fbd84[_0x34ed4f(0x27c)]=K(_0x56c1fb,++_0x4f7ccf,_0x148acb,0x16d);break;case _0x34ed4f(0x2af):_0x1fbd84[_0x34ed4f(0xea)]=_0x28edef[_0x34ed4f(0x280)](process['cwd'](),b(_0x56c1fb,++_0x4f7ccf,_0x148acb,_0x34ed4f(0x1f9)));break;case'--skills-path':_0x1fbd84[_0x34ed4f(0x174)]=_0x28edef[_0x34ed4f(0x280)](process[_0x34ed4f(0xe2)](),b(_0x56c1fb,++_0x4f7ccf,_0x148acb,'a\x20directory\x20path'));break;case _0x34ed4f(0xe9):{let _0x2fc4e7=b(_0x56c1fb,++_0x4f7ccf,_0x148acb,_0x34ed4f(0x158));pe[_0x34ed4f(0x1be)](_0x2fc4e7)||(console['error']('Invalid\x20--effort:\x20'+_0x2fc4e7+'.\x20Use\x20'+pe[_0x34ed4f(0xb8)](_0x34ed4f(0x2a8))+'.'),process['exit'](0x2)),_0x1fbd84[_0x34ed4f(0xd3)]=_0x2fc4e7;break;}case _0x34ed4f(0xf0):{let _0x48cc49=_0x56c1fb[++_0x4f7ccf];(!_0x48cc49||_0x48cc49[_0x34ed4f(0x24a)]('--'))&&(console[_0x34ed4f(0x18b)]('--tenant\x20requires\x20a\x20tenant\x20name.'),process['exit'](0x2)),_0x1fbd84[_0x34ed4f(0x260)]=_0x48cc49;break;}case'--env':{let _0x2c2c90=_0x56c1fb[++_0x4f7ccf];[_0x34ed4f(0x2b4),_0x34ed4f(0x196),_0x34ed4f(0x21a),_0x34ed4f(0x11f)][_0x34ed4f(0x1be)](_0x2c2c90)||(console[_0x34ed4f(0x18b)](_0x34ed4f(0x1e9)+_0x2c2c90+_0x34ed4f(0x2ac)),process[_0x34ed4f(0x2a5)](0x2)),_0x1fbd84[_0x34ed4f(0x263)]=_0x2c2c90;break;}case _0x34ed4f(0x2b9):case _0x34ed4f(0x11b):{let _0x15b71c=b(_0x56c1fb,++_0x4f7ccf,_0x148acb,'a\x20deployment\x20URL,\x20e.g.\x20https://automationsuite.contoso.com'),_0x50c4cd=_0x3ec9c4(_0x15b71c);if(_0x50c4cd['ok']===!0x1){console['error'](_0xf4536d(_0x15b71c,_0x50c4cd[_0x34ed4f(0x146)])),process[_0x34ed4f(0x2a5)](0x2);break;}_0x1fbd84[_0x34ed4f(0x254)]=_0x50c4cd[_0x34ed4f(0x295)];break;}case _0x34ed4f(0x140):_0x1fbd84[_0x34ed4f(0x279)]=!0x0;break;case'-h':case _0x34ed4f(0x2bc):_0x1fbd84['help']=!0x0;break;case'-v':case _0x34ed4f(0x24b):_0x1fbd84[_0x34ed4f(0x1c7)]=!0x0;break;default:_0x148acb['startsWith']('--')&&(console[_0x34ed4f(0x18b)](_0x34ed4f(0x1ef)+_0x148acb),process['exit'](0x2)),_0x3a6f69['push'](_0x148acb);}}return _0x1fbd84[_0x34ed4f(0x260)]!==void 0x0&&_0x1fbd84[_0x34ed4f(0x115)]!==_0x34ed4f(0x11a)&&(console[_0x34ed4f(0x18b)](_0x34ed4f(0x113)),process['exit'](0x2)),_0x1fbd84[_0x34ed4f(0x254)]!==void 0x0&&_0x1fbd84[_0x34ed4f(0x263)]!==void 0x0&&(console['error'](_0x34ed4f(0xee)),process[_0x34ed4f(0x2a5)](0x2)),_0x1fbd84[_0x34ed4f(0x254)]!==void 0x0&&_0x1fbd84[_0x34ed4f(0x115)]!=='login'&&(console[_0x34ed4f(0x18b)](_0x34ed4f(0x110)),process[_0x34ed4f(0x2a5)](0x2)),_0x1fbd84['days']!==void 0x0&&_0x1fbd84[_0x34ed4f(0x115)]!==_0x34ed4f(0x22f)&&(console['error']('--days\x20applies\x20to\x20`delegate-cli\x20usage\x20activity|daily`\x20only.'),process['exit'](0x2)),_0x1fbd84[_0x34ed4f(0xe1)]!==void 0x0&&(_0x1fbd84['subcommand']!==_0x34ed4f(0x12a)&&_0x1fbd84[_0x34ed4f(0x115)]!==''||_0x1fbd84[_0x34ed4f(0x218)])&&(console['error'](_0x34ed4f(0xd6)),process[_0x34ed4f(0x2a5)](0x2)),_0x1fbd84[_0x34ed4f(0x129)][_0x34ed4f(0x1e6)]>0x0&&(_0x1fbd84[_0x34ed4f(0x115)]!==''||_0x1fbd84['cleanup'])&&(console[_0x34ed4f(0x18b)]('--attach\x20applies\x20to\x20prompts\x20only.'),process[_0x34ed4f(0x2a5)](0x2)),_0x1fbd84[_0x34ed4f(0xf5)]&&(_0x1fbd84[_0x34ed4f(0x115)]!==''||_0x1fbd84[_0x34ed4f(0x218)])&&(console[_0x34ed4f(0x18b)](_0x34ed4f(0xec)),process[_0x34ed4f(0x2a5)](0x2)),_0x1fbd84[_0x34ed4f(0xf5)]&&(_0x1fbd84[_0x34ed4f(0x256)]||_0x1fbd84[_0x34ed4f(0x2a4)]||_0x1fbd84['vertical']?.['trim']()===B)&&(console[_0x34ed4f(0x18b)](_0x34ed4f(0x135)),process[_0x34ed4f(0x2a5)](0x2)),_0x1fbd84['cartographer']&&(_0x1fbd84['vertical']!==void 0x0&&_0x1fbd84[_0x34ed4f(0x25e)][_0x34ed4f(0x292)]()!==B&&(console[_0x34ed4f(0x18b)]('--cartographer\x20runs\x20the\x20'+B+_0x34ed4f(0x28c)+_0x1fbd84[_0x34ed4f(0x25e)]+_0x34ed4f(0x20d)),process['exit'](0x2)),_0x1fbd84[_0x34ed4f(0x25e)]=B),_0x1fbd84[_0x34ed4f(0x279)]&&_0x1fbd84['subcommand']!=='login'&&(console[_0x34ed4f(0x18b)](_0x34ed4f(0x10a)),process['exit'](0x2)),_0x1fbd84[_0x34ed4f(0x151)]!=='text'&&!ue['includes'](_0x1fbd84['subcommand'])&&(console['error'](_0x34ed4f(0x1e3)+_0x1fbd84[_0x34ed4f(0x151)]+_0x34ed4f(0x1b3)+ue[_0x34ed4f(0x1ee)](Boolean)[_0x34ed4f(0xb8)](',\x20')+'.'),process['exit'](0x2)),(_0x1fbd84[_0x34ed4f(0x21c)]!=='text'||_0x1fbd84[_0x34ed4f(0x1f2)])&&_0x1fbd84['subcommand']!==''&&(console[_0x34ed4f(0x18b)](_0x34ed4f(0xe5)),process[_0x34ed4f(0x2a5)](0x2)),_0x1fbd84[_0x34ed4f(0x1f2)]&&_0x1fbd84[_0x34ed4f(0x21c)]!==_0x34ed4f(0x28b)&&(console[_0x34ed4f(0x18b)]('--replay-user-messages\x20needs\x20--input-format\x20stream-json.'),process[_0x34ed4f(0x2a5)](0x2)),_0x1fbd84[_0x34ed4f(0x21c)]===_0x34ed4f(0x28b)&&_0x1fbd84['outputFormat']!==_0x34ed4f(0x28b)&&(console[_0x34ed4f(0x18b)](_0x34ed4f(0x239)),process[_0x34ed4f(0x2a5)](0x2)),(_0x1fbd84[_0x34ed4f(0xe7)]!==void 0x0||_0x1fbd84['limit']!==void 0x0||_0x1fbd84['includeSubAgents'])&&_0x1fbd84[_0x34ed4f(0x115)]!==_0x34ed4f(0x232)&&(console[_0x34ed4f(0x18b)](_0x34ed4f(0x278)),process[_0x34ed4f(0x2a5)](0x2)),(_0x1fbd84['delegateTo']!==void 0x0||_0x1fbd84[_0x34ed4f(0x14a)]!==void 0x0)&&_0x1fbd84[_0x34ed4f(0x115)]!==_0x34ed4f(0x156)&&(console[_0x34ed4f(0x18b)](_0x34ed4f(0x1a0)),process[_0x34ed4f(0x2a5)](0x2)),_0x1fbd84[_0x34ed4f(0x231)]!==void 0x0&&_0x1fbd84[_0x34ed4f(0x115)]!==_0x34ed4f(0x232)&&(console['error'](_0x34ed4f(0x25f)),process[_0x34ed4f(0x2a5)](0x2)),_0x1fbd84['preloadSkills']=[...new Set(_0x1fbd84[_0x34ed4f(0x1c8)])],_0x1fbd84['operands']=_0x3a6f69,_0x1fbd84[_0x34ed4f(0x244)]=_0x3a6f69[_0x34ed4f(0xb8)]('\x20'),_0x1fbd84[_0x34ed4f(0x21c)]===_0x34ed4f(0x28b)&&_0x1fbd84['prompt']!==''&&(console['error'](_0x34ed4f(0x15a)),process[_0x34ed4f(0x2a5)](0x2)),_0x1fbd84;}var O=_0x24cb5a=>{const _0x1f1736=_0x5eae74;process[_0x1f1736(0x291)][_0x1f1736(0xb4)](_0x24cb5a);};function Qt(){const _0x3de1ab=_0x5eae74;let _0x495a6b=process['stdout']['write'],_0xec1fef=_0x495a6b['bind'](process[_0x3de1ab(0x291)]),_0x1df9a5=O;return O=_0x464123=>{_0xec1fef(_0x464123);},process[_0x3de1ab(0x291)][_0x3de1ab(0xb4)]=(..._0x418692)=>process['stderr'][_0x3de1ab(0xb4)](..._0x418692),()=>{process['stdout']['write']=_0x495a6b,O=_0x1df9a5;};}function m(_0x2c37b6,_0x434c8e,_0x36ec2e){const _0x25bae8=_0x5eae74;if(_0x2c37b6[_0x25bae8(0x151)]===_0x25bae8(0x284)){_0x36ec2e(_0x434c8e);return;}O(_0x512d74(_0x434c8e));}function qt(){const _0x548a03=_0x5eae74;let _0x20a5ce=_0x548a03(0x1fc)[_0x548a03(0x292)]();console[_0x548a03(0x1f1)](_0x20a5ce);}function zt(){const _0x5a9970=_0x5eae74;try{return JSON[_0x5a9970(0xbf)](_0x637791['readFileSync'](_0x28edef[_0x5a9970(0xb8)](__dirname,'..',_0x5a9970(0x19e)),_0x5a9970(0xc5)))[_0x5a9970(0x1c7)]||_0x5a9970(0x2ae);}catch{return _0x5a9970(0x2ae);}}var Yt=0x7d0;async function me(_0x339cd9,_0x1904b4){const _0xe8e507=_0x5eae74;let _0x560a34=_0x1904b4?[_0x1904b4]:[];for await(let _0x140945 of _0x339cd9)_0x560a34[_0xe8e507(0x15d)](Buffer[_0xe8e507(0xad)](_0x140945));return Buffer[_0xe8e507(0x173)](_0x560a34)['toString'](_0xe8e507(0xc5))[_0xe8e507(0x292)]();}function Vt(_0x545760,_0x15bfc5){return new Promise(_0x492ee4=>{const _0x6db7eb=_0x367c;let _0x48cfac=_0x19c3cb=>{const _0x4c7919=_0x367c;clearTimeout(_0x4faf63),_0x545760[_0x4c7919(0x1ce)](_0x4c7919(0xeb),_0x3b8af9),_0x545760['off'](_0x4c7919(0x181),_0x3b77df),_0x545760['off'](_0x4c7919(0x18b),_0x3b77df),_0x545760[_0x4c7919(0x1c4)](),_0x492ee4(_0x19c3cb);},_0x3b8af9=_0x5b6fe9=>_0x48cfac(Buffer[_0x6db7eb(0xad)](_0x5b6fe9)),_0x3b77df=()=>_0x48cfac(null),_0x4faf63=setTimeout(()=>_0x48cfac(null),_0x15bfc5);_0x545760['on'](_0x6db7eb(0xeb),_0x3b8af9),_0x545760['on'](_0x6db7eb(0x181),_0x3b77df),_0x545760['on'](_0x6db7eb(0x18b),_0x3b77df),_0x545760[_0x6db7eb(0x1bb)]();});}async function H(_0xd151ad,_0x1dae2a,_0x2d4ed7=Yt){const _0x3420d8=_0x5eae74;let _0xfea444=_0xd151ad==='-';if(!_0xfea444&&_0xd151ad)return _0xd151ad;if(!_0xfea444&&_0x1dae2a[_0x3420d8(0x1ae)])return'';if(_0xfea444)return me(_0x1dae2a,null);let _0x52e7be=await Vt(_0x1dae2a,_0x2d4ed7);return _0x52e7be?me(_0x1dae2a,_0x52e7be):'';}function z(){const _0x48628a=_0x5eae74;return _0x28edef[_0x48628a(0xb8)](process.env.HOME||process.env.USERPROFILE||'',_0x48628a(0x19f),_0x48628a(0x238));}function G(_0x3bc706){const _0x109201=_0x5eae74;try{let _0x3043a1=JSON[_0x109201(0xbf)](_0x637791[_0x109201(0x277)](_0x3bc706,_0x109201(0xc5)));return!_0x3043a1[_0x109201(0xa7)]||!_0x3043a1[_0x109201(0x133)]||!_0x3043a1[_0x109201(0x17f)]?null:_0x3043a1;}catch{return null;}}function Xt(){let _0x1a1ced=[{'file':_0x38698e(),'isDesktopFallback':!0x1},{'file':z(),'isDesktopFallback':!0x0}];for(let _0x568923 of _0x1a1ced){let _0x4f863b=G(_0x568923['file']);if(_0x4f863b)return{..._0x568923,'auth':_0x4f863b};}return null;}async function Zt(){const _0x3edc14=_0x5eae74;let _0x404f05=_0x38698e();if(!_0x637791[_0x3edc14(0xde)](_0x404f05)){let _0x26974c=z();console['log'](G(_0x26974c)?'No\x20CLI\x20login\x20found.\x20Note:\x20the\x20CLI\x20is\x20currently\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20'+_0x26974c+_0x3edc14(0x1b2):'No\x20CLI\x20login\x20found\x20—\x20nothing\x20to\x20remove.');return;}_0x637791[_0x3edc14(0xba)](_0x404f05),console[_0x3edc14(0x1f1)]('Removed\x20'+_0x404f05);}async function en(_0x439510){const _0x2053f6=_0x5eae74;let _0x578d0c=Y(),_0x1f9d71,_0x5e84d7;if(_0x578d0c)_0x1f9d71=_0x578d0c,_0x5e84d7=_0x2053f6(0x18d);else{let _0x55da41=Xt();if(!_0x55da41)throw new Error(Te);_0x1f9d71=_0x55da41[_0x2053f6(0xcd)],_0x5e84d7=_0x55da41[_0x2053f6(0xe8)]?_0x55da41[_0x2053f6(0x1c5)]+_0x2053f6(0x2bb):_0x55da41[_0x2053f6(0x1c5)];}let _0x1cb2b6={'source':_0x5e84d7,'baseUrl':_0x1f9d71[_0x2053f6(0x295)]??null,'deployment':tn(_0x1f9d71[_0x2053f6(0x295)]),'organization':{'id':_0x1f9d71[_0x2053f6(0x17f)],'slug':_0x1f9d71['orgLogicalName']??null},'tenant':{'id':_0x1f9d71[_0x2053f6(0x133)],'name':_0x1f9d71[_0x2053f6(0xd8)]??null},'tokenExpiresAt':_0x1f9d71['expiresAt']?new Date(_0x1f9d71[_0x2053f6(0x1d5)]*0x3e8)[_0x2053f6(0xf3)]():null};m(_0x439510,_0x1cb2b6,()=>{const _0x4890a9=_0x2053f6;let _0x1be133=['Source:\x20\x20\x20\x20\x20\x20\x20'+_0x5e84d7,_0x4890a9(0x20c)+(_0x1f9d71[_0x4890a9(0x295)]??'unknown'),_0x4890a9(0x18c)+_0x1cb2b6[_0x4890a9(0x152)],_0x4890a9(0x15e)+(_0x1f9d71[_0x4890a9(0xc6)]??_0x4890a9(0x198))+'\x20('+_0x1f9d71[_0x4890a9(0x17f)]+')','Tenant:\x20\x20\x20\x20\x20\x20\x20'+(_0x1f9d71[_0x4890a9(0xd8)]??_0x4890a9(0x198))+'\x20('+_0x1f9d71[_0x4890a9(0x133)]+')'];if(_0x1f9d71[_0x4890a9(0x1d5)]){let _0x3e881f=_0x1f9d71[_0x4890a9(0x1d5)]-Math[_0x4890a9(0x221)](Date['now']()/0x3e8);_0x1be133[_0x4890a9(0x15d)](_0x3e881f>0x0?_0x4890a9(0x269)+_0x1cb2b6[_0x4890a9(0x1ca)]+'\x20(in\x20'+Math[_0x4890a9(0x226)](_0x3e881f/0x3c)+_0x4890a9(0x15c):_0x4890a9(0x17e)+_0x1cb2b6[_0x4890a9(0x1ca)]);}process[_0x4890a9(0x291)][_0x4890a9(0xb4)](_0x1be133[_0x4890a9(0xb8)]('\x0a')+'\x0a');});}var Te='No\x20auth\x20found.\x20Set\x20AUTH_TOKEN\x20(or\x20AUTH_TOKEN_FILE)/TENANT_ID/ORG_ID\x20env\x20vars,\x20or\x20run\x20`delegate-cli\x20login\x20--env\x20<alpha|staging|production>`\x20(or\x20`--url\x20<deployment-url>`\x20for\x20Automation\x20Suite)\x20first.';function tn(_0x18a671){const _0x5980a0=_0x5eae74;return _0x18a671?_0x38f56e(_0x18a671)?_0x5980a0(0x275):_0x5980a0(0x229):_0x5980a0(0x2ae);}function Y(){let _0x2af6dd=process.env.AUTH_TOKEN_FILE;return(process.env.AUTH_TOKEN||_0x2af6dd)&&process.env.TENANT_ID&&process.env.ORG_ID?{'accessToken':_0x2af6dd?nn(_0x2af6dd):process.env.AUTH_TOKEN,..._0x2af6dd?{'accessTokenFile':_0x2af6dd}:{},'tenantId':process.env.TENANT_ID,'organizationId':process.env.ORG_ID,'orgLogicalName':process.env.ORG_SLUG,'tenantName':process.env.TENANT_SLUG,'baseUrl':Ue()}:null;}function nn(_0x1fc432){const _0x5195e2=_0x5eae74;let _0x599f34;try{_0x599f34=_0x637791[_0x5195e2(0x277)](_0x1fc432,_0x5195e2(0xc5))[_0x5195e2(0x292)]();}catch(_0x3d61fa){throw new Error(_0x5195e2(0x276)+_0x1fc432+_0x5195e2(0x144)+_0x3d61fa[_0x5195e2(0xc1)]);}let _0x195cb4=_0x599f34[_0x5195e2(0x24a)](_0x5195e2(0x233))?_0x599f34[_0x5195e2(0xc3)](0x7)[_0x5195e2(0x292)]():_0x599f34;if(!_0x195cb4)throw new Error(_0x5195e2(0x276)+_0x1fc432+'\x27\x20is\x20empty.');return _0x195cb4;}function Ue(){const _0x2873b4=_0x5eae74;let _0x2c4832=process.env.UIPATH_BASE_URL;if(!_0x2c4832)return;let _0x3cb37e=_0x3ec9c4(_0x2c4832);if(_0x3cb37e['ok']===!0x1)throw new Error(_0x2873b4(0x169)+_0xf4536d(_0x2c4832,_0x3cb37e['rejection']));return _0x3cb37e[_0x2873b4(0x295)];}async function V(){let _0x15a300=Y();if(_0x15a300)return _0x15a300;let _0x5a027f=await _0x16c939();if(_0x5a027f)return _0x5a027f;throw new Error(Te);}async function sn(){const _0x57635f=_0x5eae74;await new _0x571419()['stop']({'force':!0x0}),console[_0x57635f(0x1f1)](_0x57635f(0xed));}function X(_0x202abb,_0x4a8430,_0xfc5c63){const _0x4cce56=_0x5eae74;_0x202abb?process['stderr'][_0x4cce56(0xb4)]('[env='+_0x202abb+_0x4cce56(0x1ff)+_0xfc5c63+'\x0a'):!_0x4a8430&&!process.env.BACKEND_URL&&process['stderr'][_0x4cce56(0xb4)](_0x4cce56(0x287)+_0xfc5c63+'\x0a');}async function $(_0x5f50ab){const _0x330456=_0x5eae74;let _0x1b0f2b=await V(),_0x15d89c=_0xa94bee(_0x5f50ab[_0x330456(0x263)],_0x1b0f2b,_0x5f50ab[_0x330456(0x1fd)]);return X(_0x5f50ab[_0x330456(0x263)],_0x5f50ab[_0x330456(0x1fd)],_0x15d89c),{'auth':_0x1b0f2b,'backendUrl':_0x15d89c,'client':_0x32a11f({'auth':_0x1b0f2b,'backendUrl':_0x15d89c})};}async function on(_0x2c7cf6){const _0xe3b74=_0x5eae74;let {client:_0x2a4c48}=await $(_0x2c7cf6),[_0x4f84f2,_0x5e5886]=await Promise['all']([_0x6ddc31(_0x2a4c48),_0x2e1e1d(_0x2a4c48)[_0xe3b74(0x130)](_0x3b2a5a=>(process[_0xe3b74(0xaa)]['write'](_0xe3b74(0xb9)+(_0x3b2a5a instanceof Error?_0x3b2a5a[_0xe3b74(0xc1)]:String(_0x3b2a5a))+'\x0a'),{}))]),_0x2c0e88=_0x4f84f2[_0xe3b74(0x22c)](_0x2f58fa=>_0x5e5886[_0x2f58fa['id']]?{..._0x2f58fa,'byoWarning':_0x5e5886[_0x2f58fa['id']]}:_0x2f58fa);m(_0x2c7cf6,_0x2c0e88,rn);}function rn(_0x33dd18){const _0x2ed23b=_0x5eae74;if(_0x33dd18['length']===0x0){process['stderr']['write'](_0x2ed23b(0x29a));return;}process[_0x2ed23b(0x291)]['write']('\x0aAvailable\x20models\x20('+_0x33dd18[_0x2ed23b(0x1e6)]+_0x2ed23b(0x249));for(let _0x5f14f0 of _0x33dd18){let _0x1d64ba=_0x5f14f0['name']&&_0x5f14f0[_0x2ed23b(0xc9)]!==_0x5f14f0['id']?'\x20('+_0x5f14f0[_0x2ed23b(0xc9)]+')':'';process[_0x2ed23b(0x291)][_0x2ed23b(0xb4)]('\x20\x20'+_0x5f14f0['id']+_0x1d64ba+'\x0a'),_0x5f14f0[_0x2ed23b(0x1ed)]&&process[_0x2ed23b(0x291)][_0x2ed23b(0xb4)](_0x2ed23b(0x170)+_0x5f14f0[_0x2ed23b(0x1ed)]+'\x0a'),_0x5f14f0[_0x2ed23b(0x2b7)]&&process[_0x2ed23b(0x291)]['write'](_0x2ed23b(0x1ba)+(_0x5f14f0['lockReason']?'\x20('+_0x5f14f0[_0x2ed23b(0x13d)]+')':'')+'\x0a'),_0x5f14f0[_0x2ed23b(0x1f4)]&&process[_0x2ed23b(0x291)][_0x2ed23b(0xb4)](_0x2ed23b(0x281)+_0x5f14f0[_0x2ed23b(0x1f4)]+'\x0a');}process[_0x2ed23b(0x291)][_0x2ed23b(0xb4)](_0x2ed23b(0x2aa));}var fe=[_0x5eae74(0x21e),_0x5eae74(0xae),_0x5eae74(0x213),'delete',_0x5eae74(0x1e2),_0x5eae74(0x143)];async function an(_0x539106){const _0x407572=_0x5eae74;let [_0x224ac7='',_0x234726='',..._0x21029a]=_0x539106[_0x407572(0x224)];if(_0x224ac7&&!fe[_0x407572(0x1be)](_0x224ac7)&&(console[_0x407572(0x18b)](_0x407572(0xce)+_0x224ac7+_0x407572(0x288)+fe[_0x407572(0xb8)](_0x407572(0x2a8))+'.'),process['exit'](0x2)),_0x539106[_0x407572(0x231)]!==void 0x0&&_0x224ac7!==_0x407572(0x1e2)&&(console[_0x407572(0x18b)](_0x407572(0x25f)),process[_0x407572(0x2a5)](0x2)),_0x224ac7&&_0x224ac7!==_0x407572(0x21e)){await ln(_0x539106,_0x224ac7,_0x234726,_0x21029a[_0x407572(0xb8)]('\x20')[_0x407572(0x292)]());return;}_0x539106['operands'][_0x407572(0x1e6)]>0x1&&(console['error'](_0x407572(0x11c)),process[_0x407572(0x2a5)](0x2));let {client:_0x351cfc}=await $(_0x539106),_0x3f9e67=await _0x2057ea(_0x351cfc,{'page':_0x539106[_0x407572(0xe7)],'pageSize':_0x539106[_0x407572(0x200)],'includeSubAgents':_0x539106[_0x407572(0x10d)]});m(_0x539106,_0x3f9e67,pn);}async function ln(_0x3fd508,_0x5d749b,_0x14ffad,_0xe85b97){const _0x4c14d2=_0x5eae74;if((_0x3fd508[_0x4c14d2(0xe7)]!==void 0x0||_0x3fd508[_0x4c14d2(0x200)]!==void 0x0||_0x3fd508[_0x4c14d2(0x10d)])&&(console[_0x4c14d2(0x18b)](_0x4c14d2(0x204)),process[_0x4c14d2(0x2a5)](0x2)),_0x5d749b===_0x4c14d2(0x1e2)){await dn(_0x3fd508,_0x14ffad,_0xe85b97);return;}if(_0x5d749b===_0x4c14d2(0x143)){await un(_0x3fd508,_0x14ffad,_0xe85b97);return;}(!_0x14ffad||_0x5d749b===_0x4c14d2(0x213)!=!!_0xe85b97)&&(console[_0x4c14d2(0x18b)]('Usage:\x20delegate-cli\x20sessions\x20'+_0x5d749b+'\x20<id>'+(_0x5d749b===_0x4c14d2(0x213)?_0x4c14d2(0x20a):'')),process[_0x4c14d2(0x2a5)](0x2));let {client:_0x2d7cf8}=await $(_0x3fd508);try{if(_0x5d749b===_0x4c14d2(0xae)){let _0x1b6321=await _0x244d5a(_0x2d7cf8,_0x14ffad);_0x1b6321||ge(_0x14ffad),m(_0x3fd508,_0x1b6321,cn);}else{if(_0x5d749b===_0x4c14d2(0x213)){let _0x1e735e=await _0x1266e4(_0x2d7cf8,_0x14ffad,_0xe85b97);m(_0x3fd508,_0x1e735e,_0x3218a1=>{const _0x43abda=_0x4c14d2;process[_0x43abda(0x291)][_0x43abda(0xb4)](_0x43abda(0x147)+_0x3218a1['id']+':\x20'+_0x3218a1[_0x43abda(0xbc)]+'\x0a');});}else await _0x37fd60(_0x2d7cf8,_0x14ffad),await _0x2e0aa7(_0x14ffad,_0x3fd508[_0x4c14d2(0xea)]),m(_0x3fd508,{'id':_0x14ffad,'deleted':!0x0},_0x50b867=>{const _0x218a2a=_0x4c14d2;process[_0x218a2a(0x291)][_0x218a2a(0xb4)](_0x218a2a(0x25c)+_0x50b867['id']+'.\x0a');});}}catch(_0x552161){if(!_0x38fdcf(_0x552161,0x194))throw _0x552161;ge(_0x14ffad);}}function ge(_0x1dd990){const _0x135ecc=_0x5eae74;console['error'](_0x135ecc(0x243)+_0x1dd990+_0x135ecc(0xaf)),process[_0x135ecc(0x2a5)](0x1);}function cn(_0x4aca02){const _0x4bbe5a=_0x5eae74;process[_0x4bbe5a(0x291)][_0x4bbe5a(0xb4)]('ID\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x4aca02['id']+'\x0a'),process['stdout'][_0x4bbe5a(0xb4)](_0x4bbe5a(0x12b)+_0x4aca02[_0x4bbe5a(0xbc)]+'\x0a'),process[_0x4bbe5a(0x291)][_0x4bbe5a(0xb4)](_0x4bbe5a(0x2a2)+_0x4aca02[_0x4bbe5a(0x1f5)]+'\x0a'),process[_0x4bbe5a(0x291)][_0x4bbe5a(0xb4)]('Organization\x20\x20'+_0x4aca02['organizationId']+'\x0a'),_0x4aca02[_0x4bbe5a(0x18e)]&&process['stdout'][_0x4bbe5a(0xb4)](_0x4bbe5a(0x188)+_0x4aca02[_0x4bbe5a(0x18e)]+'\x0a');}async function dn(_0x6ef00d,_0x37f6e2,_0x363614){const _0x4c4cd6=_0x5eae74;(!_0x37f6e2||_0x363614||!_0x6ef00d[_0x4c4cd6(0x231)])&&(console[_0x4c4cd6(0x18b)](_0x4c4cd6(0x17a)),process[_0x4c4cd6(0x2a5)](0x2));let {client:_0x50c3ff}=await $(_0x6ef00d),_0x314d93=await _0x435d97(_0x50c3ff,_0x37f6e2,_0x6ef00d[_0x4c4cd6(0x231)]);m(_0x6ef00d,{'sessionId':_0x37f6e2,'turnId':_0x6ef00d[_0x4c4cd6(0x231)],'cancelled':_0x314d93},_0x384951=>{const _0x4d6408=_0x4c4cd6;_0x384951[_0x4d6408(0xb3)]?process[_0x4d6408(0x291)][_0x4d6408(0xb4)](_0x4d6408(0x27b)+_0x384951[_0x4d6408(0x231)]+_0x4d6408(0x1c0)+_0x384951[_0x4d6408(0x13c)]+'.\x0a'):process[_0x4d6408(0xaa)][_0x4d6408(0xb4)](_0x4d6408(0x2b2)+_0x384951[_0x4d6408(0x231)]+_0x4d6408(0x149)+_0x384951[_0x4d6408(0x13c)]+'.\x0a');}),_0x314d93||(process[_0x4c4cd6(0xc4)]=0x1);}async function un(_0x6a94ec,_0xe4bd37,_0x3ca2df){const _0x148532=_0x5eae74;(!_0xe4bd37||/\s/[_0x148532(0x142)](_0x3ca2df))&&(console[_0x148532(0x18b)](_0x148532(0x1eb)),process[_0x148532(0x2a5)](0x2));let {client:_0x2bf580}=await $(_0x6a94ec),_0x264cc7;try{_0x264cc7=await _0x53bb0f(_0x2bf580,_0xe4bd37,{'atMessageId':_0x3ca2df||void 0x0});}catch(_0x281c9c){if(!_0x38fdcf(_0x281c9c,0x194))throw _0x281c9c;console[_0x148532(0x18b)]('Session\x20'+_0xe4bd37+'\x20not\x20found,\x20has\x20no\x20messages'+(_0x3ca2df?',\x20or\x20holds\x20no\x20message\x20'+_0x3ca2df:'')+'.'),process[_0x148532(0x2a5)](0x1);}m(_0x6a94ec,_0x264cc7,_0xa34f5=>{const _0x4e4cc0=_0x148532;process[_0x4e4cc0(0x291)][_0x4e4cc0(0xb4)](_0x4e4cc0(0x2b1)+_0xe4bd37+'\x20into\x20'+_0xa34f5['id']+'.\x0a'),process[_0x4e4cc0(0xaa)][_0x4e4cc0(0xb4)](_0x4e4cc0(0x108)+_0xa34f5['id']+_0x4e4cc0(0x23a));});}function pn({sessions:_0x40dad1,page:_0x2996db,isLastPage:_0x5c1405}){const _0x29e415=_0x5eae74;if(_0x40dad1[_0x29e415(0x1e6)]===0x0)process[_0x29e415(0xaa)][_0x29e415(0xb4)]('No\x20sessions\x20on\x20page\x20'+_0x2996db+'.\x0a');else{process[_0x29e415(0x291)][_0x29e415(0xb4)]('ID'['padEnd'](0x24)+'\x20\x20'+_0x29e415(0x12f)[_0x29e415(0x161)](0x13)+_0x29e415(0x294));for(let _0x31fbd8 of _0x40dad1){let _0x31d2bb=_0x31fbd8[_0x29e415(0x293)][_0x29e415(0x2ba)]('T','\x20')[_0x29e415(0xc3)](0x0,0x13),_0x1366e5=_0x31fbd8[_0x29e415(0x150)]?_0x29e415(0xbe)+_0x31fbd8['parentSessionId']+')':'';process[_0x29e415(0x291)][_0x29e415(0xb4)](_0x31fbd8['id'][_0x29e415(0x161)](0x24)+'\x20\x20'+_0x31d2bb['padEnd'](0x13)+'\x20\x20'+_0x31fbd8[_0x29e415(0xbc)]+_0x1366e5+'\x0a');}}_0x5c1405||process[_0x29e415(0xaa)][_0x29e415(0xb4)](_0x29e415(0x214)+(_0x2996db+0x1)+'\x0a');}async function mn(_0x30b616){const _0x40e50a=_0x5eae74;let _0x174504=await V(),_0x1a1ae0=_0xa94bee(_0x30b616[_0x40e50a(0x263)],_0x174504,_0x30b616['backendUrl']);X(_0x30b616[_0x40e50a(0x263)],_0x30b616[_0x40e50a(0x1fd)],_0x1a1ae0);let _0x2d0a80=await _0x1cf080({'auth':_0x174504,'backendUrl':_0x1a1ae0,'interop':_0x30b616[_0x40e50a(0x256)]?_0x40e50a(0x252):_0x40e50a(0x168)});m(_0x30b616,_0x2d0a80,({checks:_0x30cf75})=>{const _0x470122=_0x40e50a;for(let _0x51df65 of _0x30cf75)process['stdout'][_0x470122(0xb4)](fn(_0x51df65)+'\x0a');}),_0x2d0a80['ok']||process[_0x40e50a(0x2a5)](0x1);}function fn(_0x5b5920){const _0x2c2a5b=_0x5eae74;return{'ok':'✓','failed':'✗','skipped':'-'}[_0x5b5920['status']]+'\x20'+_0x5b5920['name']['padEnd'](0xa)+_0x5b5920[_0x2c2a5b(0x201)];}var gn=['',_0x5eae74(0x28e),_0x5eae74(0x1b7)];async function hn(_0x6f8320){const _0x49d2dd=_0x5eae74;let _0x2f25cb=_0x6f8320[_0x49d2dd(0x244)];gn[_0x49d2dd(0x1be)](_0x2f25cb)||(console[_0x49d2dd(0x18b)](_0x49d2dd(0x1cb)+_0x6f8320[_0x49d2dd(0x244)]+'.\x20Use\x20`delegate-cli\x20usage`,\x20`usage\x20activity`\x20or\x20`usage\x20daily`.'),process['exit'](0x2)),_0x2f25cb===''&&_0x6f8320['days']!==void 0x0&&(console[_0x49d2dd(0x18b)](_0x49d2dd(0xdd)),process[_0x49d2dd(0x2a5)](0x2)),_0x2f25cb!==''&&_0x6f8320[_0x49d2dd(0x13c)]!==void 0x0&&(console[_0x49d2dd(0x18b)](_0x49d2dd(0x25b)),process[_0x49d2dd(0x2a5)](0x2));let {client:_0x5c811b}=await $(_0x6f8320);if(_0x2f25cb==='activity'){m(_0x6f8320,await _0x3204ee(_0x5c811b,{'days':_0x6f8320['days']}),wn);return;}if(_0x2f25cb===_0x49d2dd(0x1b7)){m(_0x6f8320,await _0x311059(_0x5c811b,{'days':_0x6f8320[_0x49d2dd(0x27c)]}),kn);return;}let [_0x42139d,_0x51b3f2,_0x480309]=await Promise[_0x49d2dd(0xb0)]([_0x21f058(_0x5c811b,{'sessionId':_0x6f8320[_0x49d2dd(0x13c)]}),_0x23359b(_0x5c811b),_0x38f359(_0x5c811b)]);m(_0x6f8320,{'licensing':_0x42139d,'monthlySpending':_0x51b3f2,'cartographerAllowance':_0x480309},yn);}function yn(_0x3b46db){const _0x24eee5=_0x5eae74;let {licensing:_0x171a75,monthlySpending:_0x4d107b,cartographerAllowance:_0x5647da}=_0x3b46db,_0x1655ee=[_0x171a75[_0x24eee5(0x2b8)]?_0x24eee5(0x120)+_0x171a75[_0x24eee5(0x111)]['toFixed'](0x1)+_0x24eee5(0xfb)+(_0x171a75[_0x24eee5(0x1d8)]??0x0)+_0x24eee5(0x17c)+(_0x171a75[_0x24eee5(0x12d)]>0x0?',\x20'+_0x171a75[_0x24eee5(0x12d)]+_0x24eee5(0x16c):'')+_0x24eee5(0x1f6)+_0x171a75['period_end']+')':_0x24eee5(0x230),_0x24eee5(0x1b9)+_0x4d107b['monthly_spend_usd'][_0x24eee5(0x131)](0x2)+_0x24eee5(0x297)+(_0x4d107b[_0x24eee5(0x2b8)]&&_0x4d107b[_0x24eee5(0xc8)]!==null?_0x24eee5(0x102)+_0x4d107b[_0x24eee5(0xc8)][_0x24eee5(0x131)](0x2)+_0x24eee5(0xa8):'\x20(no\x20cap\x20enforced)'),'Cartographer:\x20'+_0x5647da['mode']+'\x20('+_0x5647da['model_id']+')'];_0x171a75[_0x24eee5(0xcc)]!==null&&_0x171a75[_0x24eee5(0xcc)]!==void 0x0&&_0x1655ee['push'](_0x24eee5(0xd9)+_0x171a75['session_consumed_pu']+'\x20PU'),process[_0x24eee5(0x291)]['write'](_0x1655ee[_0x24eee5(0xb8)]('\x0a')+'\x0a');}function wn(_0x3c8d89){const _0x59f628=_0x5eae74;let _0x226bc9=[_0x59f628(0x16b)+_0x3c8d89[_0x59f628(0x160)]+_0x59f628(0x11d)+_0x3c8d89['total_sessions']+_0x59f628(0x216)+_0x3c8d89[_0x59f628(0x136)]+_0x59f628(0x20f),'Cost:\x20\x20\x20$'+_0x3c8d89[_0x59f628(0x1ad)][_0x59f628(0x131)](0x2)+_0x59f628(0x177)+_0x3c8d89[_0x59f628(0x107)][_0x59f628(0x131)](0x2)+_0x59f628(0x157)+_0x3c8d89[_0x59f628(0x23b)]+_0x59f628(0x192),_0x59f628(0x1b0)+_0x3c8d89[_0x59f628(0x159)]+_0x59f628(0x18a)+_0x3c8d89[_0x59f628(0x283)]+_0x59f628(0xb1)];for(let [_0x2abc56,_0x50e20a]of Object['entries'](_0x3c8d89['models_breakdown']))_0x226bc9[_0x59f628(0x15d)]('\x20\x20'+_0x2abc56+':\x20'+_0x50e20a+_0x59f628(0x223));process[_0x59f628(0x291)][_0x59f628(0xb4)](_0x226bc9[_0x59f628(0xb8)]('\x0a')+'\x0a');}function kn(_0x30dea1){const _0x129770=_0x5eae74;if(_0x30dea1[_0x129770(0x250)][_0x129770(0x1e6)]===0x0){process[_0x129770(0x291)]['write'](_0x129770(0x186)+_0x30dea1[_0x129770(0x160)]+'\x20days.\x0a');return;}let _0x9edf0f=[_0x129770(0x195)];for(let _0x449cb1 of _0x30dea1[_0x129770(0x250)])_0x9edf0f['push'](_0x449cb1['date']+'\x20\x20'+String(_0x449cb1[_0x129770(0x207)])[_0x129770(0x112)](0xb)+'\x20\x20'+String(_0x449cb1[_0x129770(0x26b)])[_0x129770(0x112)](0xd)+'\x20\x20'+String(_0x449cb1['completion_tokens'])[_0x129770(0x112)](0x11));process['stdout']['write'](_0x9edf0f[_0x129770(0xb8)]('\x0a')+'\x0a');}async function bn(_0x2c7c63,_0x17fe9e){const _0x20a5d2=_0x5eae74;let _0x1f9e8d=await Sn(_0x2c7c63[_0x20a5d2(0x244)],_0x17fe9e);_0x2c7c63[_0x20a5d2(0x1ec)]&&(_0x1f9e8d[_0x20a5d2(0x1ec)]=_0x2c7c63[_0x20a5d2(0x1ec)]);let {client:_0x14259b}=await $(_0x2c7c63);try{_0x17fe9e===_0x20a5d2(0xb7)?m(_0x2c7c63,await _0x311369(_0x14259b,_0x1f9e8d,void 0x0),An):_0x17fe9e===_0x20a5d2(0x282)?m(_0x2c7c63,await _0x2a0c65(_0x14259b,_0x1f9e8d,void 0x0),En):m(_0x2c7c63,await _0x5a2f27(_0x14259b,_0x1f9e8d,void 0x0),$n);}catch(_0x531a29){if(!_0xccce93(_0x531a29))throw _0x531a29;console[_0x20a5d2(0x18b)](_0x531a29['message']),process[_0x20a5d2(0x2a5)](0x1);}}async function Sn(_0x1c9563,_0x544726){const _0x4f9d19=_0x5eae74;let _0x8e69ab;try{_0x8e69ab=_0x1c9563&&_0x1c9563!=='-'?_0x637791[_0x4f9d19(0x277)](_0x28edef[_0x4f9d19(0x280)](_0x1c9563),_0x4f9d19(0xc5)):await H(_0x1c9563,process[_0x4f9d19(0x26d)]);}catch(_0x232ac5){console[_0x4f9d19(0x18b)](_0x544726+':\x20cannot\x20read\x20the\x20request\x20('+_0x232ac5[_0x4f9d19(0xc1)]+').'),process[_0x4f9d19(0x2a5)](0x2);}return _0x8e69ab||(console[_0x4f9d19(0x18b)](_0x544726+_0x4f9d19(0x11e)+_0x544726+'\x20<file.json>,\x20or\x20-\x20to\x20read\x20stdin.'),process[_0x4f9d19(0x2a5)](0x2)),De(_0x8e69ab,_0x544726,'the\x20request');}function De(_0x5cd096,_0xdde50c,_0x329049){const _0xa19724=_0x5eae74;let _0x3bd2b0;try{_0x3bd2b0=JSON[_0xa19724(0xbf)](_0x5cd096);}catch(_0x6c5c9f){console[_0xa19724(0x18b)](_0xdde50c+':\x20'+_0x329049+'\x20is\x20not\x20valid\x20JSON\x20('+_0x6c5c9f[_0xa19724(0xc1)]+').'),process[_0xa19724(0x2a5)](0x2);}return(typeof _0x3bd2b0!=_0xa19724(0xab)||_0x3bd2b0===null||Array[_0xa19724(0xff)](_0x3bd2b0))&&(console[_0xa19724(0x18b)](_0xdde50c+':\x20'+_0x329049+_0xa19724(0x10f)),process[_0xa19724(0x2a5)](0x2)),_0x3bd2b0;}function Ne(_0x1ac2bc,_0x4bdf5d){const _0x422343=_0x5eae74;let _0x515cfe;try{_0x515cfe=_0x637791[_0x422343(0x277)](_0x28edef[_0x422343(0x280)](_0x1ac2bc),_0x422343(0xc5));}catch(_0x23a5c2){console[_0x422343(0x18b)](_0x4bdf5d+_0x422343(0x262)+_0x23a5c2[_0x422343(0xc1)]+').'),process[_0x422343(0x2a5)](0x2);}return De(_0x515cfe,_0x4bdf5d,_0x422343(0x154));}async function vn(_0x4d6d56){const _0x467736=_0x5eae74;_0x4d6d56[_0x467736(0xe1)]===void 0x0&&(console[_0x467736(0x18b)]('complete\x20needs\x20--json-schema\x20<file>:\x20delegate-cli\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22.'),process[_0x467736(0x2a5)](0x2));let _0x3597ce=Ne(_0x4d6d56[_0x467736(0xe1)],_0x467736(0x12a)),_0xfb829e=(await H(_0x4d6d56['prompt'],process[_0x467736(0x26d)]))['trim']();_0xfb829e||(console[_0x467736(0x18b)]('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:_0x20b62e}=await $(_0x4d6d56);try{let _0x4a269e=await _0x4ff14b(_0x20b62e,{'prompt':_0xfb829e,'jsonSchema':_0x3597ce,'model':_0x4d6d56[_0x467736(0x1ec)]||process.env.MODEL||_0xbec683,..._0x4d6d56['sessionId']!==void 0x0&&{'sessionId':_0x4d6d56[_0x467736(0x13c)]}},void 0x0);m(_0x4d6d56,_0x4a269e,_0x11841c=>{const _0x13aeb1=_0x467736;process[_0x13aeb1(0x291)][_0x13aeb1(0xb4)](JSON[_0x13aeb1(0x1e7)](_0x11841c['structured'],null,0x2)+'\x0a');});}catch(_0x7d38bd){if(!_0x2fcd32(_0x7d38bd))throw _0x7d38bd;console[_0x467736(0x18b)](_0x7d38bd[_0x467736(0xc1)]),process[_0x467736(0x2a5)](0x1);}}function Z(_0xb1a0e2){const _0x5dff58=_0x5eae74;process[_0x5dff58(0x291)][_0x5dff58(0xb4)]('Model\x20'+_0xb1a0e2['model']+'\x20('+_0xb1a0e2[_0x5dff58(0x1df)]+_0x5dff58(0x10e)+_0xb1a0e2[_0x5dff58(0x22f)]['total_tokens']+_0x5dff58(0x189));}function An(_0xa2852f){const _0x3c1e02=_0x5eae74;Z(_0xa2852f);for(let _0x3b6da8 of Object[_0x3c1e02(0x119)](_0xa2852f['answers'])){let _0x5014df=_0xa2852f['answers'][_0x3b6da8],_0x2d8d4=_0x5014df[_0x3c1e02(0x1d9)]===_0x3c1e02(0x132)?_0x3c1e02(0x1e4)+_0x5014df[_0x3c1e02(0x132)]['toFixed'](0x2):_0x5014df[_0x3c1e02(0x1d9)]===_0x3c1e02(0x29d)?_0x3c1e02(0x29f)+_0x5014df[_0x3c1e02(0x29d)]+_0x3c1e02(0xc2)+_0x5014df[_0x3c1e02(0x1d3)][_0x3c1e02(0x131)](0x2)+')':'score\x20'+_0x5014df['score'][_0x3c1e02(0x131)](0x2)+_0x3c1e02(0xc2)+_0x5014df['confidence'][_0x3c1e02(0x131)](0x2)+')';process[_0x3c1e02(0x291)][_0x3c1e02(0xb4)]('\x20\x20'+_0x3b6da8+':\x20'+_0x2d8d4+'\x0a');}}function En(_0x27963e){const _0x37f421=_0x5eae74;Z(_0x27963e),_0x27963e['results'][_0x37f421(0x1f7)]((_0x23fcac,_0x59091)=>{const _0x2e0bcb=_0x37f421;process[_0x2e0bcb(0x291)][_0x2e0bcb(0xb4)]('\x20\x20'+(_0x59091+0x1)+'.\x20'+_0x23fcac['id']+'\x20\x20'+_0x23fcac[_0x2e0bcb(0x26a)]['toFixed'](0x3)+'\x20\x20(input\x20#'+_0x23fcac[_0x2e0bcb(0x1aa)]+')\x0a');});}function $n(_0x413aba){const _0xbd7482=_0x5eae74;Z(_0x413aba),process[_0xbd7482(0x291)][_0xbd7482(0xb4)](_0xbd7482(0x199)+_0x413aba[_0xbd7482(0x296)]+'\x0a');for(let _0x43d9e1 of _0x413aba[_0xbd7482(0xe4)])process[_0xbd7482(0x291)][_0xbd7482(0xb4)]('\x20\x20'+_0x43d9e1['id']+':\x20'+_0x43d9e1[_0xbd7482(0x2a3)]+'\x20(confidence\x20'+_0x43d9e1[_0xbd7482(0x1d3)][_0xbd7482(0x131)](0x2)+')\x0a');}async function xn(_0x20a06a){const _0x2db8a8=_0x5eae74;let _0x1fdc4d=_0x20a06a[_0x2db8a8(0x244)][_0x2db8a8(0x292)]();_0x1fdc4d||(console[_0x2db8a8(0x18b)](_0x2db8a8(0x227)),process[_0x2db8a8(0x2a5)](0x2));let {client:_0x5effbc}=await $(_0x20a06a);try{let _0x3fbccc=_0x1fdc4d==='-'?{'data':await In(process['stdin'])}:_0x1fdc4d;m(_0x20a06a,await _0x2258c1(_0x5effbc,_0x3fbccc,void 0x0),_0x10f991=>{const _0x426be1=_0x2db8a8;process[_0x426be1(0x291)][_0x426be1(0xb4)](_0x10f991['text']+'\x0a');});}catch(_0x166819){if(_0x47752a(_0x166819)&&(console['error'](_0x166819['message']),process[_0x2db8a8(0x2a5)](_0x166819[_0x2db8a8(0x139)]===void 0x0?0x2:0x1)),typeof _0x166819?.['code']!=_0x2db8a8(0x171))throw _0x166819;console[_0x2db8a8(0x18b)](_0x2db8a8(0x26c)+_0x1fdc4d+'\x20('+_0x166819[_0x2db8a8(0xc1)]+').'),process[_0x2db8a8(0x2a5)](0x2);}}async function In(_0x4516c4){const _0x37ef2a=_0x5eae74;let _0x15f326=[];for await(let _0x52b7e7 of _0x4516c4)_0x15f326[_0x37ef2a(0x15d)](Buffer['from'](_0x52b7e7));return Buffer[_0x37ef2a(0x173)](_0x15f326);}var he=[_0x5eae74(0x21e),_0x5eae74(0x23f),_0x5eae74(0xae),_0x5eae74(0x18f),'claim',_0x5eae74(0x12a),_0x5eae74(0x267),'dismiss',_0x5eae74(0x1e2),_0x5eae74(0x272)],ye={'list':_0x5eae74(0x103),'pending':_0x5eae74(0xfd),'show':_0x5eae74(0x24e),'create':_0x5eae74(0x15b),'claim':_0x5eae74(0x23c),'complete':_0x5eae74(0x1a8),'accept':_0x5eae74(0xdb),'dismiss':_0x5eae74(0x2ab),'cancel':_0x5eae74(0x16d),'delete':_0x5eae74(0x127)};async function Tn(_0x5f104f){const _0x53c6f0=_0x5eae74;let [_0x5b73bf='',_0x4d4419='',..._0x259a61]=_0x5f104f[_0x53c6f0(0x224)];he[_0x53c6f0(0x1be)](_0x5b73bf)||(console[_0x53c6f0(0x18b)]((_0x5b73bf?_0x53c6f0(0x206)+_0x5b73bf+'.\x20':'')+'Use:\x20delegate-cli\x20delegations\x20'+he['join'](_0x53c6f0(0x2a8))+'.'),process[_0x53c6f0(0x2a5)](0x2));let _0x360f4b=_0x5b73bf;_0x360f4b!==_0x53c6f0(0x18f)&&(_0x5f104f[_0x53c6f0(0xdc)]!==void 0x0||_0x5f104f[_0x53c6f0(0x14a)]!==void 0x0||_0x5f104f[_0x53c6f0(0x13c)]!==void 0x0)&&(console[_0x53c6f0(0x18b)](_0x53c6f0(0x28d)),process[_0x53c6f0(0x2a5)](0x2));let _0x5df64f=(_0x360f4b==='create'?_0x5f104f['operands'][_0x53c6f0(0xc3)](0x1):_0x259a61)[_0x53c6f0(0xb8)]('\x20')[_0x53c6f0(0x292)](),_0x5b8f1a=_0x360f4b===_0x53c6f0(0x18f)||_0x360f4b===_0x53c6f0(0x12a);(_0x360f4b!==_0x53c6f0(0x18f)&&!_0x4d4419||(_0x5b8f1a?!_0x5df64f:_0x5df64f)||_0x360f4b===_0x53c6f0(0x18f)&&!_0x5f104f[_0x53c6f0(0x13c)])&&(console['error'](_0x53c6f0(0x141)+ye[_0x360f4b]),process[_0x53c6f0(0x2a5)](0x2));let _0x16e118=_0x5b8f1a&&_0x5df64f==='-'?(await H('-',process[_0x53c6f0(0x26d)]))[_0x53c6f0(0x292)]():_0x5df64f;_0x5b8f1a&&!_0x16e118&&(console[_0x53c6f0(0x18b)](_0x53c6f0(0x141)+ye[_0x360f4b]+_0x53c6f0(0x106)),process[_0x53c6f0(0x2a5)](0x2));let {client:_0x383f34}=await $(_0x5f104f);try{await Un(_0x5f104f,_0x383f34,_0x360f4b,_0x4d4419,_0x16e118);}catch(_0x3a87e4){if(!_0x42fc98(_0x3a87e4))throw _0x3a87e4;console[_0x53c6f0(0x18b)](_0x3a87e4['message']),process[_0x53c6f0(0x2a5)](0x1);}}async function Un(_0x19daf0,_0x555d48,_0x5ea17f,_0x317a2d,_0x1a38c7){const _0x80c794=_0x5eae74;switch(_0x5ea17f){case _0x80c794(0x21e):m(_0x19daf0,await _0x3a7afc(_0x555d48,_0x317a2d),Dn);return;case _0x80c794(0x23f):m(_0x19daf0,await _0x14a156(_0x555d48,_0x317a2d),_0x507dd9=>{const _0x2e716c=_0x80c794;_0x507dd9['delegation']&&process[_0x2e716c(0x291)][_0x2e716c(0xb4)](_0x2e716c(0x1d7)+_0x507dd9['delegation']['id']+'\x20('+_0x507dd9[_0x2e716c(0xd7)][_0x2e716c(0x139)]+_0x2e716c(0x175)),_0x507dd9['pendingResults']['length']===0x0&&process[_0x2e716c(0xaa)][_0x2e716c(0xb4)](_0x2e716c(0x21d));for(let _0x4b1a18 of _0x507dd9[_0x2e716c(0x29b)])process['stdout']['write']('\x0a'+_0x4b1a18['id']+_0x2e716c(0xd2)+(_0x4b1a18[_0x2e716c(0x1d6)]??_0x2e716c(0x167))+'\x20\x20'+(_0x4b1a18[_0x2e716c(0x14e)]??'')+'\x0a'+(_0x4b1a18[_0x2e716c(0x290)]?.[_0x2e716c(0x222)]??'')+'\x0a');_0x507dd9[_0x2e716c(0x29b)][_0x2e716c(0x1e6)]>0x0&&process[_0x2e716c(0xaa)][_0x2e716c(0xb4)](_0x2e716c(0x1d2));});return;case _0x80c794(0xae):m(_0x19daf0,await _0x11f6c6(_0x555d48,_0x317a2d),we);return;case _0x80c794(0x18f):{let _0x1be8b7=await _0x291105(_0x555d48,{'sessionId':_0x19daf0['sessionId'],'task':_0x1a38c7,..._0x19daf0[_0x80c794(0x14a)]!==void 0x0&&{'contextSummary':_0x19daf0['contextSummary']},..._0x19daf0[_0x80c794(0xdc)]!==void 0x0&&{'recipient':_0x19daf0[_0x80c794(0xdc)]}});m(_0x19daf0,_0x1be8b7,_0x2b4a64=>{const _0x4855ce=_0x80c794;_0x2b4a64['assignedUser']?process['stdout'][_0x4855ce(0xb4)](_0x4855ce(0x1d1)+_0x2b4a64[_0x4855ce(0x18e)]+'\x20to\x20'+_0x2b4a64['assignedUser'][_0x4855ce(0x23e)]+'\x20<'+_0x2b4a64[_0x4855ce(0x165)][_0x4855ce(0xb6)]+_0x4855ce(0x125)):process[_0x4855ce(0x291)][_0x4855ce(0xb4)](_0x4855ce(0x1ea)+_0x2b4a64[_0x4855ce(0x18e)]+'.\x20Share:\x20'+_0x2b4a64[_0x4855ce(0x1a2)]+'\x0a');});return;}case'claim':{let _0xe74e03=await _0x496a2f(_0x555d48,_0x317a2d);m(_0x19daf0,_0xe74e03,_0xb4d18a=>{const _0x2aee72=_0x80c794;we(_0xb4d18a),process['stdout'][_0x2aee72(0xb4)](_0x2aee72(0x12c)+_0xb4d18a[_0x2aee72(0x13c)]+'\x0a'),process[_0x2aee72(0xaa)][_0x2aee72(0xb4)](_0x2aee72(0xd5)+_0xb4d18a['sessionId']+_0x2aee72(0x1af)+_0xb4d18a['delegationId']+'\x20\x22<answer>\x22\x0a');});return;}case _0x80c794(0x12a):{let {alreadyCompleted:_0x2ba52e}=await _0x5d1325(_0x555d48,_0x317a2d,{'content':_0x1a38c7});m(_0x19daf0,{'delegationId':_0x317a2d,'alreadyCompleted':_0x2ba52e},_0x391f7e=>{const _0x4b8ad4=_0x80c794;process[_0x4b8ad4(0x291)][_0x4b8ad4(0xb4)]((_0x391f7e[_0x4b8ad4(0x236)]?_0x4b8ad4(0x121):_0x4b8ad4(0x205))+_0x4b8ad4(0x28a)+_0x391f7e['delegationId']+'.\x0a');});return;}case _0x80c794(0x267):{let _0x14aac4=await _0x25876a(_0x555d48,_0x317a2d);m(_0x19daf0,{'delegationId':_0x317a2d,..._0x14aac4},_0x1d0185=>{const _0x4d9d1=_0x80c794;process[_0x4d9d1(0x291)][_0x4d9d1(0xb4)]((_0x1d0185[_0x4d9d1(0x258)]?_0x4d9d1(0x212):'Accepted')+_0x4d9d1(0x28a)+_0x1d0185['delegationId']+'.\x0a');});return;}default:{let _0x494fa8={'dismiss':_0x416cf2,'cancel':_0x1e2d72,'delete':_0x2446dc}[_0x5ea17f];await _0x494fa8(_0x555d48,_0x317a2d);let _0x5a0781={'dismiss':'dismissed','cancel':_0x80c794(0xb3),'delete':_0x80c794(0xc0)}[_0x5ea17f];m(_0x19daf0,{'delegationId':_0x317a2d,[_0x5a0781]:!0x0},()=>{const _0x11e602=_0x80c794;process[_0x11e602(0x291)][_0x11e602(0xb4)](''+_0x5a0781[0x0][_0x11e602(0x298)]()+_0x5a0781[_0x11e602(0xc3)](0x1)+'\x20delegation\x20'+_0x317a2d+'.\x0a');});}}}function Dn(_0x2e02b2){const _0x4b5f96=_0x5eae74;if(_0x2e02b2['length']===0x0){process['stderr'][_0x4b5f96(0xb4)]('No\x20delegations.\x0a');return;}process[_0x4b5f96(0x291)]['write']('ID'['padEnd'](0x24)+'\x20\x20'+_0x4b5f96(0xdf)[_0x4b5f96(0x161)](0x9)+'\x20\x20'+_0x4b5f96(0x209)[_0x4b5f96(0x161)](0x18)+'\x20\x20TASK\x0a');for(let _0x460ef3 of _0x2e02b2)process[_0x4b5f96(0x291)]['write'](_0x460ef3['id'][_0x4b5f96(0x161)](0x24)+'\x20\x20'+_0x460ef3[_0x4b5f96(0x139)]['padEnd'](0x9)+'\x20\x20'+(_0x460ef3[_0x4b5f96(0x1d6)]??'-')[_0x4b5f96(0x161)](0x18)+'\x20\x20'+(_0x460ef3[_0x4b5f96(0x14e)]??'')+'\x0a');}function we(_0x1bf97e){const _0x5e346b=_0x5eae74;process[_0x5e346b(0x291)][_0x5e346b(0xb4)](_0x5e346b(0x1dc)+(_0x1bf97e[_0x5e346b(0x2a6)]??'-')+'\x0a'),_0x1bf97e[_0x5e346b(0x137)]&&process['stdout'][_0x5e346b(0xb4)]('Session\x20\x20\x20\x20\x20\x20\x20'+_0x1bf97e[_0x5e346b(0x137)]+'\x0a'),process[_0x5e346b(0x291)][_0x5e346b(0xb4)](_0x5e346b(0x126)+(_0x1bf97e[_0x5e346b(0x14e)]??'-')+'\x0a'),_0x1bf97e[_0x5e346b(0x14a)]&&process[_0x5e346b(0x291)][_0x5e346b(0xb4)]('\x0a'+_0x1bf97e[_0x5e346b(0x14a)]+'\x0a\x0a');}async function Nn(_0x4e95cf){const _0xbb23db=_0x5eae74;_0x4e95cf[_0xbb23db(0x244)][_0xbb23db(0x292)]()||(console[_0xbb23db(0x18b)](_0xbb23db(0x289)),process[_0xbb23db(0x2a5)](0x2));let {client:_0x570bf8}=await $(_0x4e95cf),_0x42fe3e;try{_0x42fe3e=await _0x52a83e(_0x570bf8,_0x4e95cf[_0xbb23db(0x244)]);}catch(_0x5decfc){if(!_0x42fc98(_0x5decfc))throw _0x5decfc;console[_0xbb23db(0x18b)](_0x5decfc[_0xbb23db(0xc1)]),process[_0xbb23db(0x2a5)](0x1);}m(_0x4e95cf,_0x42fe3e,_0x14d92b=>{const _0x405845=_0xbb23db;_0x14d92b[_0x405845(0x1e6)]===0x0&&process[_0x405845(0xaa)][_0x405845(0xb4)]('No\x20one\x20matches\x20\x22'+_0x4e95cf[_0x405845(0x244)]['trim']()+'\x22.\x0a');for(let _0x5953a4 of _0x14d92b)process[_0x405845(0x291)][_0x405845(0xb4)](_0x5953a4[_0x405845(0xb6)][_0x405845(0x161)](0x20)+'\x20\x20'+_0x5953a4[_0x405845(0x23e)]+'\x0a');});}async function _n(_0x120af2){const _0xc3a4d=_0x5eae74;_0x120af2['env']===_0xc3a4d(0x11f)&&(console['error'](_0xc3a4d(0xef)),process[_0xc3a4d(0x2a5)](0x2));let _0x34783c=G(_0x38698e()),_0x5248d2=_0x120af2['skipEnvCheck'];if(_0x120af2['env']){let _0x14732f=_0x120af2[_0xc3a4d(0x263)];await _0x1c547c({'env':_0x14732f,'tenant':_0x120af2[_0xc3a4d(0x260)]??Q(_0x34783c,_0x1e22ff[_0x14732f]),'skipEnvCheck':_0x5248d2});return;}let _0x11d5cb=_0x120af2[_0xc3a4d(0x254)]??Ue();if(_0x11d5cb){await _0x1c547c({'baseUrl':_0x11d5cb,'tenant':_0x120af2['tenant']??Q(_0x34783c,_0x11d5cb),'skipEnvCheck':_0x5248d2});return;}if(_0x34783c?.[_0xc3a4d(0x295)]){await _0x1c547c({'baseUrl':_0x34783c[_0xc3a4d(0x295)],'tenant':_0x120af2[_0xc3a4d(0x260)]??_0x34783c[_0xc3a4d(0xd8)],'skipEnvCheck':_0x5248d2});return;}console[_0xc3a4d(0x18b)]('First\x20login\x20requires\x20--env\x20or\x20--url.\x20Usage:\x20delegate-cli\x20login\x20--env\x20<alpha|staging|production>,\x20or\x20delegate-cli\x20login\x20--url\x20https://automationsuite.contoso.com'),process[_0xc3a4d(0x2a5)](0x2);}function Q(_0x2c76a7,_0x2d8a85){const _0x4142e4=_0x5eae74;return _0x2c76a7?.['baseUrl']&&Rn(_0x2c76a7[_0x4142e4(0x295)],_0x2d8a85)?_0x2c76a7[_0x4142e4(0xd8)]:void 0x0;}function Rn(_0x5dbb42,_0x44ec0f){const _0x10e593=_0x5eae74;try{return new URL(_0x5dbb42)[_0x10e593(0x16e)]===new URL(_0x44ec0f)['origin'];}catch{return!0x1;}}async function Pn(_0x1dd47d){const _0x1aaa02=_0x5eae74;Y()&&(console[_0x1aaa02(0x18b)](_0x1aaa02(0x235)),process[_0x1aaa02(0x2a5)](0x2));let _0x249fc5=await _0x69d5dd();if(_0x249fc5||(console[_0x1aaa02(0x18b)](Cn()),process[_0x1aaa02(0x2a5)](0x2)),_0x1dd47d[_0x1aaa02(0x292)]()){let _0x5bff63=await _0x10027a(_0x249fc5,_0x1dd47d);_0x231f72(_0x5bff63)||(console[_0x1aaa02(0x18b)](_0x1aaa02(0xcb)+_0x38698e()+_0x1aaa02(0x259)+_0x249fc5[_0x1aaa02(0xd8)]+'.'),process[_0x1aaa02(0x2a5)](0x1)),console[_0x1aaa02(0x1f1)]('Tenant:\x20'+_0x5bff63[_0x1aaa02(0xd8)]+'\x20('+_0x5bff63[_0x1aaa02(0x133)]+_0x1aaa02(0xfe)+_0x38698e());return;}On(await _0x163b33(_0x249fc5),_0x249fc5);}function Cn(){const _0x555e5a=_0x5eae74;if(_0x637791[_0x555e5a(0xde)](_0x38698e()))return _0x555e5a(0x124);let _0x2b5849=z();return G(_0x2b5849)?_0x555e5a(0x128)+_0x2b5849+_0x555e5a(0x180):'No\x20CLI\x20login\x20found.\x20Run\x20`delegate-cli\x20login\x20--env\x20<alpha|staging|production>`\x20first.';}function On(_0x259acf,_0x929235){const _0x589d51=_0x5eae74;let _0x513fc0=_0x259acf[_0x589d51(0x22c)](_0x5b8340=>_0x5b8340['id']===_0x929235[_0x589d51(0x133)]?'*\x20'+_0x5b8340[_0x589d51(0xc9)]+_0x589d51(0x29e):'\x20\x20'+_0x5b8340[_0x589d51(0xc9)]);process[_0x589d51(0x291)][_0x589d51(0xb4)](_0x589d51(0x27a)+(_0x929235[_0x589d51(0xc6)]??_0x929235[_0x589d51(0x17f)])+':\x0a'+_0x513fc0[_0x589d51(0xb8)]('\x0a')+'\x0a'),_0x259acf[_0x589d51(0x1e6)]>0x1&&process['stdout']['write'](_0x589d51(0x13f));}function Ln(_0x40978d){const _0x29ff54=_0x5eae74;return _0x40978d?.[_0x29ff54(0x1e1)]?.[_0x29ff54(0x139)]===0x191||/401/[_0x29ff54(0x142)](String(_0x40978d?.[_0x29ff54(0xc1)]??''));}var w={'lastType':null,'quiet':!0x1},_e=_0x50a10e=>{const _0x596e08=_0x5eae74;switch(_0x50a10e['type']){case _0x596e08(0x237):_0x50a10e[_0x596e08(0x13c)]&&_0x50a10e[_0x596e08(0x13c)]!==w[_0x596e08(0x13c)]&&(process['stderr'][_0x596e08(0xb4)]('Session:\x20'+_0x50a10e[_0x596e08(0x13c)]+_0x596e08(0x1dd)+_0x50a10e[_0x596e08(0x13c)]+')\x0a'),w[_0x596e08(0x13c)]=_0x50a10e[_0x596e08(0x13c)]);break;case _0x596e08(0x16f):_0x50a10e[_0x596e08(0x231)]&&_0x50a10e[_0x596e08(0x231)]!==w['turnId']&&(w[_0x596e08(0x217)]!==null&&process[_0x596e08(0xaa)]['write']('\x0a'),process[_0x596e08(0xaa)][_0x596e08(0xb4)]('Turn:\x20'+_0x50a10e[_0x596e08(0x231)]+_0x596e08(0xa9)+_0x50a10e[_0x596e08(0x13c)]+'\x20--turn\x20'+_0x50a10e['turnId']+')\x0a'),w[_0x596e08(0x231)]=_0x50a10e[_0x596e08(0x231)],w[_0x596e08(0x217)]='turn_start');break;case _0x596e08(0x21b):_0x50a10e[_0x596e08(0x222)]&&!w['quiet']&&(w[_0x596e08(0x217)]!==_0x596e08(0x21b)&&process['stderr'][_0x596e08(0xb4)]('\x0a🤔\x20'),process[_0x596e08(0xaa)]['write'](_0x50a10e['content']),w[_0x596e08(0x217)]=_0x596e08(0x21b));break;case _0x596e08(0x25a):w['lastType']!==null&&process[_0x596e08(0xaa)]['write']('\x0a'),process[_0x596e08(0xaa)][_0x596e08(0xb4)]('🔧\x20'+(_0x50a10e[_0x596e08(0x117)]??'tool')+'\x0a'),w[_0x596e08(0x217)]=_0x596e08(0x25a);break;case _0x596e08(0xc1):_0x50a10e['content']&&(w['lastType']!==_0x596e08(0xc1)&&w[_0x596e08(0x217)]!==null&&process['stdout'][_0x596e08(0xb4)]('\x0a'),process[_0x596e08(0x291)]['write'](_0x50a10e[_0x596e08(0x222)]),w[_0x596e08(0x217)]=_0x596e08(0xc1));break;case'error':w[_0x596e08(0x217)]!==null&&process[_0x596e08(0xaa)]['write']('\x0a'),process[_0x596e08(0xaa)][_0x596e08(0xb4)]('✗\x20'+(_0x50a10e[_0x596e08(0x18b)]??_0x596e08(0x18b))+'\x0a'),w[_0x596e08(0x217)]=_0x596e08(0x18b);break;case _0x596e08(0xca):(w[_0x596e08(0x217)]===_0x596e08(0xc1)||w['lastType']==='thinking')&&process[_0x596e08(0x291)][_0x596e08(0xb4)]('\x0a'),process[_0x596e08(0xaa)][_0x596e08(0xb4)](_0x596e08(0x1b1)),w[_0x596e08(0x217)]=_0x596e08(0xca);break;}};function ke(_0x31a9f5,_0x4006f8,_0x55ac81,_0xb50bfd){const _0x38d3ae=_0x5eae74;let _0x58d9a0=_0x31a9f5['model']||process.env.MODEL;return{'backendUrl':_0x55ac81,'auth':_0x4006f8,'enableComputerUse':!_0x31a9f5[_0x38d3ae(0x256)]&&!_0x31a9f5[_0x38d3ae(0x2a4)],'autoSpawnInterop':!_0x31a9f5[_0x38d3ae(0x256)],'enableConnections':!_0x31a9f5[_0x38d3ae(0x1ab)],'enableSecurity':!_0x31a9f5['noSecurity'],'keepInteropAlive':_0x31a9f5[_0x38d3ae(0x105)],..._0xb50bfd[_0x38d3ae(0x166)]?{'enableBackgroundCommands':!0x1}:{},..._0x31a9f5['noMemory']?{'enableMemory':!0x1}:{},..._0x31a9f5[_0x38d3ae(0xf5)]?{'enableTaskAutomation':!0x0}:{},..._0x31a9f5[_0x38d3ae(0x1c8)][_0x38d3ae(0x1e6)]>0x0?{'preloadSkills':_0x31a9f5[_0x38d3ae(0x1c8)]}:{},..._0x58d9a0?{'model':_0x58d9a0}:{},..._0x31a9f5[_0x38d3ae(0x145)]?{'projectId':_0x31a9f5[_0x38d3ae(0x145)]}:{},..._0x31a9f5[_0x38d3ae(0x25e)]?{'vertical':_0x31a9f5['vertical']}:{},..._0x31a9f5[_0x38d3ae(0xea)]?{'workingDirectory':_0x31a9f5[_0x38d3ae(0xea)]}:{},..._0x31a9f5[_0x38d3ae(0x174)]?{'bundledSkillsPath':_0x31a9f5[_0x38d3ae(0x174)]}:{},..._0x31a9f5[_0x38d3ae(0xd3)]?{'effort':_0x31a9f5[_0x38d3ae(0xd3)]}:{},..._0x31a9f5['sessionId']?{'sessionId':_0x31a9f5[_0x38d3ae(0x13c)]}:{},..._0x31a9f5[_0x38d3ae(0x19c)]?{'verbose':!0x0}:{}};}async function Fn(_0x36b580){const _0x21bf2d=_0x5eae74;let _0x2ae3f0=_0x36b580[_0x21bf2d(0x151)]!==_0x21bf2d(0x284),_0x3995fa=_0x36b580[_0x21bf2d(0xe1)]===void 0x0?null:Ne(_0x36b580['jsonSchemaPath'],_0x21bf2d(0x122)),_0x1f1c26=!_0x2ae3f0&&!_0x3995fa&&!_0x36b580['print']&&_0x36b580['prompt']!=='-'&&!!process[_0x21bf2d(0x26d)][_0x21bf2d(0x1ae)]&&!!process[_0x21bf2d(0x291)][_0x21bf2d(0x1ae)],_0x40ed8a=_0x36b580[_0x21bf2d(0x21c)]==='stream-json'?re(process[_0x21bf2d(0x26d)],_0x109fd2=>{const _0x4e27d5=_0x21bf2d;process[_0x4e27d5(0xaa)][_0x4e27d5(0xb4)](_0x109fd2[_0x4e27d5(0xc1)]+':\x20ignored\x0a');}):null,_0x13cd03=_0x40ed8a?(await _0x40ed8a['next']())['value']:void 0x0,_0x5723b7=_0x40ed8a?_0x13cd03?.[_0x21bf2d(0x284)]??'':_0x1f1c26?_0x36b580[_0x21bf2d(0x244)][_0x21bf2d(0x292)]():await H(_0x36b580[_0x21bf2d(0x244)],process[_0x21bf2d(0x26d)]);if(!_0x1f1c26&&!_0x5723b7&&(console[_0x21bf2d(0x18b)](_0x21bf2d(0x270)),process['exit'](0x2)),!_0x2ae3f0){await be(_0x36b580,_0x5723b7,_0x1f1c26,null,_0x3995fa,null);return;}let _0x2e718e=!0x1,_0x1d7fa3=_0x5cdebd=>{const _0x158015=_0x21bf2d;_0x2e718e=!0x0,O(_0x512d74(_0x5cdebd)),(_0x5cdebd[_0x158015(0x2a1)]||_0x5cdebd[_0x158015(0x101)])&&(process[_0x158015(0xc4)]=0x1);},_0x5c18d5=Date[_0x21bf2d(0x100)]();try{await be(_0x36b580,_0x5723b7,!0x1,_0x1d7fa3,_0x3995fa,_0x40ed8a?{'messages':_0x40ed8a,'first':_0x13cd03,'close':()=>{const _0xf7f20b=_0x21bf2d;process[_0xf7f20b(0x26d)][_0xf7f20b(0x1c4)]();}}:null);}catch(_0x5afea4){if(_0x2e718e)throw _0x5afea4;process[_0x21bf2d(0xaa)][_0x21bf2d(0xb4)]((_0x5afea4 instanceof Error?_0x5afea4['stack']??_0x5afea4[_0x21bf2d(0xc1)]:String(_0x5afea4))+'\x0a'),_0x1d7fa3(new _0x17e3f4(_0x5c18d5)[_0x21bf2d(0x1c3)]({'endedAtMs':Date[_0x21bf2d(0x100)](),'usage':[],'error':_0x5afea4}));}finally{_0x40ed8a&&(process[_0x21bf2d(0x26d)][_0x21bf2d(0x1c4)](),_0x40ed8a[_0x21bf2d(0x187)](void 0x0));}}async function be(_0x5d8930,_0x534fc4,_0x304403,_0x558d3e,_0xb3e3e3,_0x21a309){const _0x2e90d1=_0x5eae74;w={'lastType':null,'quiet':_0x5d8930[_0x2e90d1(0x163)]};let _0x1509af=new Set(),_0x2d1e6d,_0x2fe946=_0x2eee0c=>{const _0x5c15db=_0x2e90d1;(!_0x558d3e||_0x2eee0c['type']==='session_start'||_0x2eee0c[_0x5c15db(0x1d9)]===_0x5c15db(0x16f))&&(_0x2d1e6d??_e)(_0x2eee0c);for(let _0x1ce133 of _0x1509af)_0x1ce133(_0x2eee0c);},_0x12c527=await V(),_0x4ac199=new _0x30a665();_0x4ac199[_0x2e90d1(0x1c6)](_0x2fe946);let _0x4c54cf=_0xa94bee(_0x5d8930['env'],_0x12c527,_0x5d8930[_0x2e90d1(0x1fd)]);X(_0x5d8930[_0x2e90d1(0x263)],_0x5d8930[_0x2e90d1(0x1fd)],_0x4c54cf);let _0x25d75a={'input':null},_0x2f5184=_0x304403?ne(()=>_0x25d75a['input'],_0xe8950=>{const _0x556a8d=_0x2e90d1;process[_0x556a8d(0xaa)]['write'](_0xe8950);}):null,_0x2f1f9f=_0x31c122=>_0x2f5184?{..._0x31c122,'askUser':_0x2f5184}:_0x31c122,_0x30b3dc=_0x2f1f9f(ke(_0x5d8930,_0x12c527,_0x4c54cf,{'oneTurn':!_0x304403})),_0x3dbd24=!0x1,_0x326618=!0x1,_0x2a5ad9,_0xde036f=()=>_0x2a5ad9??=_0x4ac199[_0x2e90d1(0x118)](),_0x27589a=()=>{const _0x1c761e=_0x2e90d1;_0x326618&&process[_0x1c761e(0x2a5)](0x82),_0x326618=!0x0,process['stderr'][_0x1c761e(0xb4)](_0x1c761e(0x13b)),_0x3dbd24&&_0x4ac199['cancel']()[_0x1c761e(0x130)](_0x3bf4c4=>console[_0x1c761e(0x18b)](_0x3bf4c4))['then'](_0xde036f)['then'](()=>process[_0x1c761e(0x2a5)](0x82),_0x2e1821=>{const _0x795e8c=_0x1c761e;console[_0x795e8c(0x18b)](_0x2e1821),process['exit'](0x82);});};process['on'](_0x2e90d1(0x2ad),_0x27589a);let _0x213ef8=_0x5d8930['attachments'],_0x59a4cf=async _0x5bb71c=>{const _0x4ce55a=_0x2e90d1;let _0x27f57a=_0x213ef8;_0x213ef8=[];let _0x35429a=()=>_0x4ac199[_0x4ce55a(0x1cd)](_0x5bb71c,{'attachments':_0x27f57a});try{return await _0x35429a();}catch(_0x30afc2){if(_0x326618||!Ln(_0x30afc2)||!process[_0x4ce55a(0x26d)]['isTTY']||_0x5d8930['env']===_0x4ce55a(0x11f)||!(_0x5d8930[_0x4ce55a(0x263)]||_0x12c527[_0x4ce55a(0x295)]))throw _0x30afc2;process[_0x4ce55a(0xaa)][_0x4ce55a(0xb4)](_0x4ce55a(0x13a));let _0x4e40b6=_0x4ac199['getSessionId']()??_0x5d8930[_0x4ce55a(0x13c)],_0x2351cf=await _0x1c547c(_0x5d8930[_0x4ce55a(0x263)]?{'env':_0x5d8930[_0x4ce55a(0x263)],'tenant':Q(_0x12c527,_0x1e22ff[_0x5d8930['env']]),'skipEnvCheck':!0x0}:{'baseUrl':_0x12c527['baseUrl'],'tenant':_0x12c527[_0x4ce55a(0xd8)],'skipEnvCheck':!0x0}),_0xad9790={'text':'','failed':!0x1,'sessionId':_0x4e40b6};return _0x326618||(_0x3dbd24=!0x1,await _0xde036f(),_0x326618)?_0xad9790:(_0x4ac199=new _0x30a665(),_0x2a5ad9=void 0x0,_0x4ac199['onEvent'](_0x2fe946),_0x12c527=_0x2351cf,await _0x4ac199[_0x4ce55a(0x2b5)]({..._0x2f1f9f(ke(_0x5d8930,_0x12c527,_0x4c54cf,{'oneTurn':!_0x304403})),..._0x4e40b6?{'sessionId':_0x4e40b6}:{}}),_0x3dbd24=!0x0,_0x326618?_0xad9790:_0x35429a());}};try{if(await _0x4ac199['initialize'](_0x30b3dc),_0x3dbd24=!0x0,_0x326618)return;if(_0x304403)await Bn({'prompt':_0x534fc4,'sendMessage':_0x59a4cf,'onSigint':_0x27589a,'setAnswerInput':_0xe9717b=>{const _0x169613=_0x2e90d1;_0x25d75a[_0x169613(0x19b)]=_0xe9717b;},'registerEventPrinter':_0x2a318f=>(_0x2d1e6d=_0x2a318f,()=>{_0x2d1e6d=void 0x0;})});else{if(_0x558d3e||_0xb3e3e3){let _0x3697c6=_0x5d8930[_0x2e90d1(0x151)]===_0x2e90d1(0x28b)?_0x36c586=>O(_0x3ea15f(_0x36c586)):()=>{},_0x2cb819=_0x21a309?ie({'input':_0x21a309,'getAgent':()=>_0x4ac199,'replay':_0x5d8930['replayUserMessages'],'onEvent':_0x1d74f6=>(_0x1509af[_0x2e90d1(0xda)](_0x1d74f6),()=>{const _0x489f9a=_0x2e90d1;_0x1509af[_0x489f9a(0x272)](_0x1d74f6);}),'write':O,'isRunStopNotice':_0x585710,'actionableErrorText':_0x460321,'warn':_0x4f9dd6=>{const _0x1c3f24=_0x2e90d1;process[_0x1c3f24(0xaa)][_0x1c3f24(0xb4)](_0x4f9dd6);}}):null,_0x302d3e=await _0x3c27f6({'onEvent':_0x5ee220=>(_0x1509af[_0x2e90d1(0xda)](_0x5ee220),()=>{const _0x370e1b=_0x2e90d1;_0x1509af[_0x370e1b(0x272)](_0x5ee220);}),'sendMessage':async _0x5e7faf=>{const _0x165234=_0x2e90d1;try{let _0x2d13a5=await _0x59a4cf(_0x5e7faf);return _0x2cb819?await _0x2cb819[_0x165234(0x202)](_0x2d13a5):_0x2d13a5;}finally{_0x2cb819?.['stop']();}},'getSessionId':()=>_0x4ac199['getSessionId'](),'getTurnUsageHistory':_0x139a02=>_0x4ac199['getTurnUsageHistory'](_0x139a02),'complete':_0x1d9580=>_0x4ac199[_0x2e90d1(0x12a)](_0x1d9580)},_0x534fc4,void 0x0,_0x3697c6,_0xb3e3e3?{'outputSchema':_0xb3e3e3}:void 0x0);_0x558d3e?_0x558d3e(_0x302d3e):Mn(_0x302d3e);}else await _0x59a4cf(_0x534fc4);}}catch(_0x157687){if(!_0x326618)throw _0x157687;}finally{try{await _0xde036f();}finally{process['off'](_0x2e90d1(0x2ad),_0x27589a),_0x326618&&(process[_0x2e90d1(0xc4)]=0x82);}}}function Mn(_0x1e2f97){const _0x1e35db=_0x5eae74;_0x1e2f97['structuredError']?(console[_0x1e35db(0x18b)](_0x1e35db(0x17d)+_0x1e2f97['structuredError'][_0x1e35db(0xc1)]),process[_0x1e35db(0xc4)]=0x1):_0x1e2f97[_0x1e35db(0x2a1)]?(console[_0x1e35db(0x18b)]('No\x20structured\x20output:\x20the\x20turn\x20failed\x20('+_0x1e2f97[_0x1e35db(0x18b)]+').'),process[_0x1e35db(0xc4)]=0x1):process[_0x1e35db(0x291)]['write'](JSON['stringify'](_0x1e2f97[_0x1e35db(0x1cf)],null,0x2)+'\x0a');}function jn(_0x13ba89,_0x2acaaf){const _0x3128bf=_0x5eae74;let _0x384ca0=process[_0x3128bf(0x291)][_0x3128bf(0xb4)][_0x3128bf(0x1b5)](process[_0x3128bf(0x291)]),_0x5e2895=!0x1;return process['stdout'][_0x3128bf(0xb4)]=(..._0x1ceda6)=>{const _0x1427de=_0x3128bf;if(!_0x5e2895)return _0x384ca0(..._0x1ceda6);_0x4742e1(_0x2acaaf,0x0),_0x2c561c(_0x2acaaf,0x0);let _0x312f59=_0x384ca0(..._0x1ceda6);return _0x13ba89[_0x1427de(0x244)](!0x0),_0x312f59;},{'show':()=>{_0x5e2895=!0x0,_0x13ba89['prompt']();},'hide':()=>{_0x5e2895=!0x1;},'erase':()=>{_0x5e2895&&(_0x4742e1(_0x2acaaf,0x0),_0x2c561c(_0x2acaaf,0x0)),_0x5e2895=!0x1;},'restore':()=>{const _0xaef7d9=_0x3128bf;_0x5e2895=!0x1,process[_0xaef7d9(0x291)][_0xaef7d9(0xb4)]=_0x384ca0;}};}async function Bn({prompt:_0x3b992f,sendMessage:_0xc430ac,onSigint:_0x1e40f6,setAnswerInput:_0x5e96af,registerEventPrinter:_0x55c260}){const _0xf9956e=_0x5eae74;let _0x51c49b=_0x3100fc({'input':process[_0xf9956e(0x26d)],'output':process[_0xf9956e(0xaa)],'terminal':!0x0,'prompt':'You>\x20'}),_0x51dea9=jn(_0x51c49b,process[_0xf9956e(0xaa)]),_0x178812=[],_0x5eb0e0,_0x168654,_0x1c2997,_0x498c45=!0x1,_0x4a88ef=!0x1,_0x5b8f26=!0x1,_0x29739d=Promise[_0xf9956e(0x280)](),_0x507170,_0x50b3dc=_0x55c260(_0x503d73=>{const _0x21385a=_0xf9956e;_0x503d73[_0x21385a(0x1d9)]===_0x21385a(0x237)&&(_0x51dea9[_0x21385a(0x1fa)](),_0x29739d=new Promise(_0x2f8dca=>{_0x507170=_0x2f8dca;})),_e(_0x503d73),_0x503d73['type']===_0x21385a(0xca)&&(_0x507170?.(),_0x507170=void 0x0,!_0x5b8f26&&!_0x498c45&&_0x51dea9[_0x21385a(0xae)]());}),_0x699260=()=>{const _0x1e932c=_0xf9956e;_0x4a88ef=!0x0,_0x507170?.(),_0x1e40f6(),_0x51c49b[_0x1e932c(0x1c9)]();};_0x51c49b['on'](_0xf9956e(0x1f3),_0xdc45e5=>{const _0x3090b8=_0xf9956e;_0x1c2997?_0x1c2997(_0xdc45e5):_0x5eb0e0?_0x5eb0e0['push'](_0xdc45e5):_0x168654?_0x168654(_0xdc45e5):_0x178812[_0x3090b8(0x15d)](_0xdc45e5);}),_0x51c49b[_0xf9956e(0x1b4)](_0xf9956e(0x1c9),()=>{const _0x54e987=_0xf9956e;_0x498c45=!0x0,_0x51dea9[_0x54e987(0xd0)](),_0x5eb0e0&&!_0x4a88ef&&_0x699260(),_0x168654?.(null);});let _0x1b3b0d=()=>_0x178812[_0xf9956e(0x1e6)]>0x0?Promise[_0xf9956e(0x280)](_0x178812[_0xf9956e(0x22d)]()):_0x498c45?Promise[_0xf9956e(0x280)](null):new Promise(_0xa74786=>{_0x168654=_0x34656e=>{_0x168654=void 0x0,_0xa74786(_0x34656e);};});_0x5e96af({'readLine':(_0x138aa7,_0x2d43e9)=>new Promise((_0x382160,_0x5bcd54)=>{const _0x19443f=_0xf9956e;if(_0x498c45&&!_0x5eb0e0){_0x382160(null);return;}_0x5eb0e0??=[];let _0x380f7d=_0x5eb0e0[_0x19443f(0x22d)]();if(_0x380f7d!==void 0x0){_0x382160(_0x380f7d);return;}let _0x58f9f6=()=>{const _0x296b1b=_0x19443f;_0x1c2997=void 0x0,_0x2d43e9[_0x296b1b(0x191)](_0x296b1b(0xf7),_0x543a1d),_0x51dea9[_0x296b1b(0xd0)](),_0x51c49b[_0x296b1b(0x211)](_0x296b1b(0xf2));},_0x543a1d=()=>{const _0x3b60d6=_0x19443f;_0x58f9f6(),_0x5bcd54(new Error(_0x3b60d6(0x1e0)));};_0x2d43e9[_0x19443f(0x1cc)](_0x19443f(0xf7),_0x543a1d,{'once':!0x0}),!_0x498c45&&(_0x1c2997=_0x10c2bb=>{_0x58f9f6(),_0x382160(_0x10c2bb);},_0x51c49b[_0x19443f(0x211)](_0x138aa7),_0x51dea9['show']());}),'endQuestions':()=>{_0x5eb0e0&&_0x178812['push'](..._0x5eb0e0),_0x5eb0e0=void 0x0;}}),_0x51c49b['on'](_0xf9956e(0x2ad),_0x699260),process[_0xf9956e(0xaa)][_0xf9956e(0xb4)](_0xf9956e(0x273));let _0xea4766=async _0x3ae8a6=>{_0x5b8f26=!0x0;try{await _0xc430ac(_0x3ae8a6);}finally{_0x5b8f26=!0x1;}};try{if(_0x3b992f&&await _0xea4766(_0x3b992f),_0x4a88ef)return;!_0x498c45&&!_0x507170&&_0x51dea9[_0xf9956e(0xae)]();for(let _0x10944c=await _0x1b3b0d();_0x10944c!==null&&(_0x51dea9[_0xf9956e(0xd0)](),!_0x4a88ef);_0x10944c=await _0x1b3b0d()){let _0x4cfc58=_0x10944c[_0xf9956e(0x292)]();if(_0x4cfc58===_0xf9956e(0x19a))break;_0x4cfc58&&await _0xea4766(_0x4cfc58),!_0x498c45&&!_0x507170&&_0x51dea9[_0xf9956e(0xae)]();}for(;!_0x4a88ef&&_0x507170;)await _0x29739d;}finally{_0x5e96af(null),_0x50b3dc(),_0x51dea9[_0xf9956e(0x24c)](),_0x51c49b[_0xf9956e(0x1ce)]('SIGINT',_0x699260),_0x51c49b[_0xf9956e(0x1c9)]();}}async function Jn(){const _0x2f2d9e=_0x5eae74;let _0x413976=Kt(process[_0x2f2d9e(0x257)][_0x2f2d9e(0xc3)](0x2));if(_0x413976[_0x2f2d9e(0x151)]===_0x2f2d9e(0x284)){await Se(_0x413976);return;}let _0x3070a2=Qt();try{await Se(_0x413976);}finally{_0x3070a2();}}async function Se(_0x2221b8){const _0x3d6336=_0x5eae74;if(_0x2221b8[_0x3d6336(0x265)]){qt();return;}if(_0x2221b8[_0x3d6336(0x1c7)]){console[_0x3d6336(0x1f1)](zt());return;}if(_0x2221b8[_0x3d6336(0x115)]===_0x3d6336(0x11a)){await _n(_0x2221b8);return;}if(_0x2221b8[_0x3d6336(0x115)]===_0x3d6336(0x260)){await Pn(_0x2221b8[_0x3d6336(0x244)]);return;}if(_0x2221b8[_0x3d6336(0x115)]===_0x3d6336(0x27f)){await Zt();return;}if(_0x2221b8[_0x3d6336(0x115)]===_0x3d6336(0x1c1)){await en(_0x2221b8);return;}if(_0x2221b8['subcommand']==='models'){await on(_0x2221b8);return;}if(_0x2221b8['subcommand']===_0x3d6336(0x164)){await mn(_0x2221b8);return;}if(_0x2221b8[_0x3d6336(0x115)]===_0x3d6336(0x232)){await an(_0x2221b8);return;}if(_0x2221b8['subcommand']===_0x3d6336(0x22f)){await hn(_0x2221b8);return;}if(_0x2221b8['subcommand']===_0x3d6336(0xb7)||_0x2221b8[_0x3d6336(0x115)]==='rerank'||_0x2221b8[_0x3d6336(0x115)]==='verify'){await bn(_0x2221b8,_0x2221b8[_0x3d6336(0x115)]);return;}if(_0x2221b8[_0x3d6336(0x115)]==='complete'){await vn(_0x2221b8);return;}if(_0x2221b8[_0x3d6336(0x115)]===_0x3d6336(0x247)){await xn(_0x2221b8);return;}if(_0x2221b8[_0x3d6336(0x115)]===_0x3d6336(0x156)){await Tn(_0x2221b8);return;}if(_0x2221b8[_0x3d6336(0x115)]===_0x3d6336(0x12e)){await Nn(_0x2221b8);return;}if(_0x2221b8[_0x3d6336(0x115)]===_0x3d6336(0x178)){await _0x2cdd2e(_0x2221b8['prompt'],{'runnerUrl':_0x2221b8[_0x3d6336(0x194)],'backendUrl':_0x2221b8[_0x3d6336(0x1fd)],'interopPath':_0x2221b8['interopPath'],'workerId':_0x2221b8[_0x3d6336(0xb5)]});return;}if(_0x2221b8[_0x3d6336(0x218)]){await sn();return;}await Fn(_0x2221b8);}var Hn=process.env.NODE_ENV===_0x5eae74(0x142)||!!process.env.JEST_WORKER_ID;Hn||Jn()[_0x5eae74(0x130)](_0x26048e=>{const _0x4a0d25=_0x5eae74;console['error'](_0x26048e[_0x4a0d25(0x22a)]||_0x26048e['message']||_0x26048e),process[_0x4a0d25(0x2a5)](0x1);});export{Wt as CARTOGRAPHER_SKILLS,pe as EFFORT_TIERS,Yt as IMPLICIT_STDIN_IDLE_MS,ke as buildInitOptions,Jn as main,Kt as parseArgs,zt as readCliVersion,H as resolvePrompt,Qt as routeStdoutToStderr,m as writeCommandResult};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uipath/delegate-cli",
3
- "version": "1.207.0-preview.20261125102343",
3
+ "version": "1.207.0-preview.20261126075801",
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.207.0-preview.20261125102343"
25
+ "@uipath/delegate-sdk": "1.207.0-preview.20261126075801"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@types/node": "^22.0.0",