@uipath/delegate-cli 1.207.0-preview.20261126173224 β 1.207.0-preview.20261127025649
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.mjs +1 -1
- package/package.json +2 -2
package/dist/cli.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
const _0x3a4b26=_0x9e2b;(function(_0x5b10e8,_0x408d61){const _0x15c709=_0x9e2b,_0x124ee9=_0x5b10e8();while(!![]){try{const _0x29c418=parseInt(_0x15c709(0x36b))/0x1*(parseInt(_0x15c709(0x1ef))/0x2)+-parseInt(_0x15c709(0x16e))/0x3*(-parseInt(_0x15c709(0x329))/0x4)+parseInt(_0x15c709(0x1c9))/0x5+-parseInt(_0x15c709(0x1cc))/0x6*(-parseInt(_0x15c709(0x358))/0x7)+parseInt(_0x15c709(0x175))/0x8+parseInt(_0x15c709(0x222))/0x9*(-parseInt(_0x15c709(0x1a2))/0xa)+parseInt(_0x15c709(0x269))/0xb*(-parseInt(_0x15c709(0x15f))/0xc);if(_0x29c418===_0x408d61)break;else _0x124ee9['push'](_0x124ee9['shift']());}catch(_0x3ddf58){_0x124ee9['push'](_0x124ee9['shift']());}}}(_0x568e,0x1d932));const __dirname=import.meta.dirname;import _0x28daf7 from'fs';import _0x4ec28e from'path';import{clearLine as _0x16679d,createInterface as _0x1b8259,cursorTo as _0x269458}from'node:readline';import{isOnStepGrid as _0x491209}from'@uipath/delegate-sdk';var L='userinput';function E(_0x4fece2){const _0x113248=_0x9e2b;return _0x4fece2[_0x113248(0x1d1)](/\u001b\[[0-?]*[ -/]*[@-~]|\u001b\][^\u0007\u001b]*(\u0007|\u001b\\)?|\u001b./g,'')['replace'](/[\u0000-\u0008\u000b-\u001f\u007f-\u009f]/g,'');}function ee(_0x47053b){const _0x381e94=_0x9e2b;return E(_0x47053b[_0x381e94(0x319)]??(_0x47053b[_0x381e94(0x207)]===L?'Something\x20else':_0x47053b['id']));}function Ce(_0x3da9d4,_0x4f78aa,_0x1758ba){const _0x3d0266=_0x9e2b;let _0x2f9697=[''+(_0x1758ba>0x1?'['+_0x4f78aa+'/'+_0x1758ba+']\x20':'')+E(_0x3da9d4[_0x3d0266(0x2d2)])+(_0x3da9d4[_0x3d0266(0x2b8)]?_0x3d0266(0x1d5):''),E(_0x3da9d4['question'])];return _0x3da9d4[_0x3d0266(0x1a7)]===_0x3d0266(0x331)&&_0x3da9d4[_0x3d0266(0x2b0)][_0x3d0266(0x2ed)]((_0x35808e,_0x3e4338)=>{const _0x340fda=_0x3d0266;let _0x5d8290=_0x35808e[_0x340fda(0x207)]===L?_0x340fda(0x22f):'',_0x21b1d6=_0x35808e['description']?'\x20-\x20'+E(_0x35808e[_0x340fda(0x313)]):'';_0x2f9697['push']('\x20\x20'+(_0x3e4338+0x1)+'.\x20'+ee(_0x35808e)+_0x5d8290+_0x21b1d6);}),_0x2f9697['join']('\x0a');}function te(_0x4ee80f,_0x201ba5){const _0x34d9c1=_0x9e2b;let _0x36e988=_0x4ee80f[_0x34d9c1(0x14c)](/[\s,]+/)['filter'](Boolean);if(_0x36e988[_0x34d9c1(0x362)]===0x0)return null;let _0x4dc451=_0x36e988[_0x34d9c1(0x268)](_0x7d39b0=>/^\d+$/['test'](_0x7d39b0)?Number(_0x7d39b0):NaN);return _0x4dc451[_0x34d9c1(0x2e0)](_0x109a92=>!Number[_0x34d9c1(0x1fb)](_0x109a92)||_0x109a92<0x1||_0x109a92>_0x201ba5)?null:[...new Set(_0x4dc451)][_0x34d9c1(0x268)](_0x5dbd90=>_0x5dbd90-0x1);}function Oe(_0x3ab5b9){const _0x5fd758=_0x9e2b;return typeof _0x3ab5b9==_0x5fd758(0x18f)&&_0x3ab5b9!==null&&_0x5fd758(0x272)in _0x3ab5b9;}async function F(_0x470064,_0x36bd2e,_0x100e54,_0x42e4f7){const _0x558041=_0x9e2b;for(;;){let _0x5b7066=(await _0x470064(_0x36bd2e))[_0x558041(0x2b1)]();if(_0x5b7066==='')return;let _0x33e64b=_0x42e4f7(_0x5b7066);if(!Oe(_0x33e64b))return _0x33e64b;_0x100e54(_0x33e64b[_0x558041(0x272)]+'\x0a');}}async function Le(_0xd69a50,_0x3f5fae,_0x5592b6){const _0x3fb1b6=_0x9e2b;if(_0xd69a50[_0x3fb1b6(0x2b0)][_0x3fb1b6(0x362)]===0x0||_0xd69a50[_0x3fb1b6(0x2b0)][_0x3fb1b6(0x2e8)](_0x3d011a=>_0x3d011a['kind']===L)){let _0x2aace5=(await _0x3f5fae('Your\x20answer\x20(Enter\x20to\x20skip):\x20'))[_0x3fb1b6(0x2b1)]();return _0x2aace5===''?void 0x0:{'text':_0x2aace5};}let _0x6d02ff=_0xd69a50[_0x3fb1b6(0x2b0)][_0x3fb1b6(0x281)](_0x1a20d6=>_0x1a20d6['kind']===L),_0x24b4b0=_0xd69a50[_0x3fb1b6(0x31b)]?'Numbers,\x20separated\x20by\x20commas\x20(Enter\x20to\x20skip):\x20':_0x3fb1b6(0x34f)+(_0x6d02ff>=0x0?_0x3fb1b6(0x162):'')+_0x3fb1b6(0x1c3),_0x1c8cf0=await F(_0x3f5fae,_0x24b4b0,_0x5592b6,_0x19a306=>{const _0x409b40=_0x3fb1b6;let _0x4e1864=te(_0x19a306,_0xd69a50['options'][_0x409b40(0x362)]);return _0x4e1864&&(_0xd69a50[_0x409b40(0x31b)]||_0x4e1864[_0x409b40(0x362)]===0x1)?_0x4e1864:!_0xd69a50['multiSelect']&&_0x6d02ff>=0x0?{'typed':_0x19a306}:{'refused':_0xd69a50[_0x409b40(0x31b)]?_0x409b40(0x149)+_0xd69a50['options'][_0x409b40(0x362)]+'.':_0x409b40(0x1bf)+_0xd69a50[_0x409b40(0x2b0)]['length']+'.'};});if(_0x1c8cf0===void 0x0)return;if(!Array[_0x3fb1b6(0x273)](_0x1c8cf0))return{'text':_0x1c8cf0[_0x3fb1b6(0x317)]};let _0x7e260d=_0x1c8cf0[_0x3fb1b6(0x268)](_0x30108e=>_0xd69a50[_0x3fb1b6(0x2b0)][_0x30108e]['id']),_0x4e2764=_0x7e260d[_0x3fb1b6(0x224)](L)?await F(_0x3f5fae,ee(_0xd69a50['options'][_0x6d02ff])+':\x20',_0x5592b6,_0x1515c2=>_0x1515c2):void 0x0;if(!(_0x7e260d[_0x3fb1b6(0x224)](L)&&_0x4e2764===void 0x0))return _0xd69a50[_0x3fb1b6(0x31b)]?{'optionIds':_0x7e260d,..._0x4e2764!==void 0x0?{'text':_0x4e2764}:{}}:_0x4e2764!==void 0x0?{'text':_0x4e2764}:{'optionId':_0x7e260d[0x0]};}async function Fe(_0x59e15a,_0x4c4dd2,_0x15b097){const _0x59fa4a=_0x9e2b;let _0x4ec8d0={};for(let _0x419b38 of _0x59e15a[_0x59fa4a(0x19d)]){let _0x39b0dd=_0x419b38['default']??_0x419b38[_0x59fa4a(0x191)],_0x4d2339=_0x419b38['step']??0x1,_0x1ce25e=_0x419b38[_0x59fa4a(0x28e)]?'\x20'+E(_0x419b38[_0x59fa4a(0x28e)]):'',_0x1f7faa=_0x59fa4a(0x1e4)+_0x419b38[_0x59fa4a(0x191)]+'\x20to\x20'+_0x419b38[_0x59fa4a(0x1cb)]+(_0x4d2339!==0x1?_0x59fa4a(0x330)+_0x4d2339:''),_0x29dfb1=await F(_0x4c4dd2,E(_0x419b38[_0x59fa4a(0x319)])+'\x20['+_0x419b38['min']+'-'+_0x419b38['max']+_0x1ce25e+_0x59fa4a(0x2aa)+_0x39b0dd+_0x59fa4a(0x1ab),_0x15b097,_0x480774=>{const _0x175088=_0x59fa4a;let _0x1e10e0=Number(_0x480774);return Number[_0x175088(0x263)](_0x1e10e0)&&_0x1e10e0>=_0x419b38[_0x175088(0x191)]&&_0x1e10e0<=_0x419b38[_0x175088(0x1cb)]&&_0x491209(_0x1e10e0,_0x419b38[_0x175088(0x191)],_0x4d2339)?_0x1e10e0:{'refused':_0x175088(0x2d1)+_0x1f7faa+'.'};});_0x4ec8d0[_0x419b38['id']]=_0x29dfb1??_0x39b0dd;}return{'values':_0x4ec8d0};}async function Me(_0x5c484e,_0x3af116,_0x4783f2){const _0x25d061=_0x9e2b;_0x4783f2(_0x5c484e[_0x25d061(0x2ca)][_0x25d061(0x268)]((_0x4fa70c,_0x4a7872)=>'\x20\x20'+(_0x4a7872+0x1)+'.\x20'+E(_0x4fa70c[_0x25d061(0x319)]))[_0x25d061(0x167)]('\x0a')+'\x0a');let _0x461033={};for(let _0xe9fe12 of _0x5c484e[_0x25d061(0x26c)]){let _0x153c56=await F(_0x3af116,E(_0xe9fe12['label'])+':\x20bucket\x20number\x20(Enter\x20to\x20leave\x20out):\x20',_0x4783f2,_0xa47740=>{const _0x4ba800=_0x25d061;let _0x1b2cdb=te(_0xa47740,_0x5c484e[_0x4ba800(0x2ca)][_0x4ba800(0x362)]);return _0x1b2cdb&&_0x1b2cdb[_0x4ba800(0x362)]===0x1?_0x1b2cdb[0x0]:{'refused':_0x4ba800(0x1bf)+_0x5c484e['buckets']['length']+'.'};});if(_0x153c56===void 0x0)continue;let _0x593b12=_0x5c484e['buckets'][_0x153c56],_0xbd1d0e={};for(let _0x5442cb of _0x593b12[_0x25d061(0x1fd)]??[]){let _0x1e7a06='\x20\x20'+E(_0x5442cb['label'])+(_0x5442cb['optional']?'\x20(optional)':'')+':\x20',_0x248465=await F(_0x3af116,_0x1e7a06,_0x4783f2,_0x210f7a=>_0x210f7a);for(;_0x248465===void 0x0&&!_0x5442cb[_0x25d061(0x2b8)];)_0x4783f2(E(_0x5442cb[_0x25d061(0x319)])+_0x25d061(0x345)),_0x248465=await F(_0x3af116,_0x1e7a06,_0x4783f2,_0x5d785e=>_0x5d785e);_0x248465!==void 0x0&&(_0xbd1d0e[_0x5442cb['id']]=_0x248465);}_0x461033[_0xe9fe12['id']]={'bucket':_0x593b12['id'],...Object[_0x25d061(0x33f)](_0xbd1d0e)[_0x25d061(0x362)]>0x0?{'subFields':_0xbd1d0e}:{}};}return Object[_0x25d061(0x33f)](_0x461033)[_0x25d061(0x362)]>0x0?{'assignments':_0x461033}:void 0x0;}async function je(_0x1301dc,_0xd036ab,_0x400968){const _0x47529d=_0x9e2b;if(_0x1301dc[_0x47529d(0x1a7)]===_0x47529d(0x331))return Le(_0x1301dc,_0xd036ab,_0x400968);if(_0x1301dc[_0x47529d(0x1a7)]===_0x47529d(0x150))return Fe(_0x1301dc,_0xd036ab,_0x400968);if(_0x1301dc[_0x47529d(0x1a7)]===_0x47529d(0x15e))return Me(_0x1301dc,_0xd036ab,_0x400968);let _0x175747=(await _0xd036ab(_0x47529d(0x2a0)))[_0x47529d(0x2b1)]();return _0x175747===''?void 0x0:{'text':_0x175747};}function ne(_0xaa8031,_0x4e3a08){return async _0x43e31c=>{const _0x3debc1=_0x9e2b;let _0x258785=_0xaa8031();if(!_0x258785)throw new Error('There\x20is\x20no\x20terminal\x20input\x20to\x20answer\x20from.');let _0x543149=async _0x1b3205=>{const _0x3fe6a1=_0x9e2b;if(_0x43e31c[_0x3fe6a1(0x30b)]['aborted'])throw new Error(_0x3fe6a1(0x264));let _0x1cae71=await _0x258785[_0x3fe6a1(0x216)](_0x1b3205,_0x43e31c[_0x3fe6a1(0x30b)]);if(_0x1cae71===null)throw new Error(_0x3fe6a1(0x169));return _0x1cae71;};try{_0x4e3a08('\x0a'+(_0x43e31c[_0x3debc1(0x148)]?E(_0x43e31c[_0x3debc1(0x148)])+'\x0a':''));let _0x2ec14a={};for(let [_0x500df3,_0x442c44]of _0x43e31c[_0x3debc1(0x354)][_0x3debc1(0x1b3)]()){_0x4e3a08('\x0a'+Ce(_0x442c44,_0x500df3+0x1,_0x43e31c[_0x3debc1(0x354)]['length'])+'\x0a');let _0x561623=await je(_0x442c44,_0x543149,_0x4e3a08);_0x561623!==void 0x0&&(_0x2ec14a[_0x442c44['id']]=_0x561623);}return{'answers':_0x2ec14a};}finally{_0x258785['endQuestions']();}};}import{createInterface as _0x306a96}from'node:readline';var j=['text',_0x3a4b26(0x2f1)];function se(_0x237641){const _0xc252c4=_0x3a4b26;return j[_0xc252c4(0x224)](_0x237641);}function _0x568e(){const _0x523f80=['verdict','delegations\x20cancel\x20<delegation-id>','\x20(current)','padStart','mode','rubric_version','A\x20steering\x20message\x20was\x20not\x20sent:\x20','quiet','):\x0a\x0a','isError','attachments','add','Token:\x20\x20\x20\x20\x20\x20\x20\x20expired\x20','--task-automation\x20applies\x20to\x20prompts\x20only.','shift','isFinite','The\x20turn\x20was\x20cancelled.','addEventListener','lockReason','\x20PU\x20beyond\x20quota','map','627vaxHaA','replayUserMessages','--skip-env-check\x20applies\x20to\x20`delegate-cli\x20login`\x20only.','items','\x20cap','print','host','--no-security','done','refused','isArray','getSessionId','\x20applies\x20to\x20prompts\x20and\x20to\x20these\x20commands\x20only:\x20','Enter\x20sends\x20a\x20message.\x20/exit\x20or\x20EOF\x20exits;\x20Ctrl+C\x20stops\x20and\x20exits.\x0a','tenantName','delegate-cli','.\x20Use\x20`delegate-cli\x20usage`,\x20`usage\x20activity`\x20or\x20`usage\x20daily`.','delegations\x20accept\x20<delegation-id>','--to',':\x20cannot\x20read\x20the\x20JSON\x20schema\x20(','accessToken','\x20\x22<prompt>\x22\x0a','\x22.\x0a','taskAutomation','findIndex','logout','\x20<file.json>,\x20or\x20-\x20to\x20read\x20stdin.','a\x20JSON\x20schema\x20file','from\x201\x20to\x20','log','keepAlive','Turn:\x20','\x20(stdin\x20was\x20empty)','resume','date','onEvent','extra_pool_consumed_pu','unit','--version','\x20needs\x20a\x20JSON\x20request:\x20delegate-cli\x20','pop','claim','--tenant\x20requires\x20a\x20tenant\x20name.','backendUrl','--preload-skill','settle','models','More:\x20delegate-cli\x20sessions\x20--page\x20','Tenant:\x20','--interop','--attach\x20applies\x20to\x20prompts\x20only.','vertical','π§\x20','an\x20input\x20line\x20has\x20type\x20','orgLogicalName','Your\x20answer,\x20as\x20text\x20(the\x20CLI\x20attaches\x20no\x20files;\x20Enter\x20to\x20skip):\x20','Last\x20','return','\x20must\x20be\x20a\x20JSON\x20object.','Claimed\x20from\x20delegation\x20','pending','cwd','workingDirectory','show','startsWith',']\x20(Enter\x20for\x20','line','title','index','\x20(in\x20','\x20<id>','options','trim',',\x20got\x20','push','Invalid\x20--input-format:\x20','interopPath','operands','total_completion_tokens','optional','\x0aAccept\x20one\x20with:\x20delegate-cli\x20delegations\x20accept\x20<id>\x0a','\x20|\x20','runnerUrl','--env','accept','floor','--to\x20and\x20--summary\x20apply\x20to\x20`delegate-cli\x20delegations\x20create`\x20only.','deleted','stderr','sendMessage','\x20sessions\x20on\x20','Tokens:\x20','all','Missing\x20prompt.\x20Pass\x20it\x20as\x20an\x20argument,\x20pipe\x20it\x20via\x20stdin,\x20or\x20run\x20`delegate-cli\x20--help`.','Interop\x20stopped\x20(if\x20it\x20was\x20running).','\x20tokens\x0a','Cancel\x20requested\x20for\x20turn\x20','buckets','delegations\x20list\x20<backend-project-id>','active_days','delegations\x20delete\x20<delegation-id>','a\x20number','Unknown\x20sessions\x20action:\x20','Title\x20\x20\x20\x20\x20\x20\x20\x20\x20','Enter\x20a\x20number\x20','header','\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','--include-subagents','--input-format','--tenant','bind','structured','The\x20steering\x20message\x20was\x20not\x20answered:\x20its\x20turn\x20did\x20not\x20run\x20or\x20added\x20no\x20reply.','\x20from\x20','abort','headless','help','contextSummary','),\x20','some','delegations\x20create\x20--session\x20<id>\x20[--to\x20<email|name>]\x20[--summary\x20<text>]\x20\x22<task>\x22|-','completion_tokens','--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`delegate-cli\x20sessions\x20[list]`\x20only.','session_consumed_pu','tool_call','Usage:\x20delegate-cli\x20sessions\x20cancel\x20<session-id>\x20--turn\x20<turn-id>','noSecurity','every','alreadyAccepted','\x20delegation\x20',').\x0a','input','forEach','tokenExpiresAt','auth','utf-8','stream-json','--session\x20applies\x20to\x20the\x20`delegate-cli\x20usage`\x20summary\x20only.','stdin','actionable_error','outputFormat','user','\x20(Delegate\x20desktop\x20app\x20fallback)','1\x20or\x20more','No\x20CLI\x20login\x20to\x20switch:\x20the\x20CLI\x20is\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20','\x20\x20TASK\x0a','\x20must\x20be\x20a\x20whole\x20number\x20','deepLink','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','then','--no-memory','prompt','delegateTo','updatedAt','\x20not\x20found,\x20has\x20no\x20messages','\x20\x20TITLE\x0a','Organization:\x20','preloadSkills','[saved\x20login]\x20Backend\x20URL:\x20','inputFormat','exit','write','signal','[env=','setPrompt','a\x20directory\x20path','\x20<title>','widget','filter','toFixed','description','off','whoami','UIPATH_BASE_URL\x20is\x20unusable.\x20','typed','finish','label','isDesktopFallback','multiSelect','userId','No\x20structured\x20output:\x20the\x20turn\x20failed\x20(','--input-format\x20and\x20--replay-user-messages\x20apply\x20to\x20prompts\x20only.','Renamed\x20','findLast','tenant','--vertical','package.json','cancel','check','sessionId','\x20\x20\x20\x20BYO\x20warning:\x20','cleanup','214684FFXPNW','task','No\x20one\x20matches\x20\x22','No\x20models\x20available\x20for\x20this\x20product/tenant.\x0a','tenantId','from','catch','\x20in\x20steps\x20of\x20','text','Usage:\x20delegate-cli\x20','Unknown\x20usage\x20view:\x20','\x20\x20\x20\x20','isTTY','--summary','initialize','\x0aStoppingβ¦\x20(Ctrl+C\x20again\x20to\x20force\x20exit)\x0a','Usage:\x20delegate-cli\x20sessions\x20[list]\x20[--page\x20N]\x20[--limit\x20N]\x20[--include-subagents]','unknown','STATUS','existsSync','confidence','choice','keys','β\x20Done\x0a','.\x20Use:\x20','>.\x0a','sourceTitle','uuid','\x20is\x20required.\x0a','--turn\x20applies\x20to\x20`delegate-cli\x20sessions\x20cancel`\x20only.','/exit','Invalid\x20--project:\x20\x22','Date\x20\x20\x20\x20\x20\x20\x20\x20Token\x20units\x20\x20Prompt\x20tokens\x20\x20Completion\x20tokens','transcribe:\x20cannot\x20read\x20','a\x20format\x20(','Deployment:\x20\x20\x20','--model','total_prompt_tokens','Number','\x20of\x20session\x20','error','delete','hide','questions','Already\x20accepted','login','\x27\x20cannot\x20be\x20read:\x20','1107841MQPOUf','waitForIdle','Work\x20on\x20it\x20with:\x20delegate-cli\x20--session\x20','ID\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','result','dismiss','Removed\x20','complete\x20needs\x20--json-schema\x20<file>:\x20delegate-cli\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22.','list','org-users','length','total_tokens','messages',']\x20Backend\x20URL:\x20','--verbose','models_breakdown','UiPath\x20Cloud','--json-schema\x20applies\x20to\x20prompts\x20and\x20to\x20`delegate-cli\x20complete`\x20only.','answers','2RszDIg','\x20vertical,\x20so\x20it\x20cannot\x20run\x20as\x20--vertical\x20','intro','Enter\x20numbers\x20from\x201\x20to\x20','projectId','delegations\x20dismiss\x20<delegation-id>','split','medium','SIGINT','Deleted\x20session\x20','numeric','displayName','assignedUser','model','noComputerUse','a\x20vertical\x20id','days','Base\x20URL:\x20\x20\x20\x20\x20','Forked\x20','the\x20JSON\x20schema','ASSIGNEE','\x20token\x20units)','Delegation\x20\x20\x20\x20','toUpperCase','bucket','65604KNBDkH','staging','lastType','\x20or\x20your\x20own\x20answer','baseUrl','AUTH_TOKEN_FILE\x20\x27','toString','delegationId','join','turn_start','Input\x20closed\x20before\x20the\x20question\x20was\x20answered.','organizationId','model_id','auth.json','close','3oejTlO','structuredError','bundledSkillsPath','stack','sessions','Answered','cancelled','1709208cOwoby','\x20\x20(sub-agent\x20of\x20','slice','No\x20CLI\x20login\x20found.\x20Note:\x20the\x20CLI\x20is\x20currently\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20','\x20days.\x0a','low','end','getSessionMessages','\x0aπ€\x20','choice\x20','\x20is\x20not\x20valid\x20JSON\x20(','rerank','test','--turn','Owner\x20\x20\x20\x20\x20\x20\x20\x20\x20','effort','Created\x20delegation\x20','\x20(no\x20cap\x20enforced)','\x20(confidence\x20','delegations','stop',':\x20ignored\x0a','monthly_limit_usd','skip','Source:\x20\x20\x20\x20\x20\x20\x20','Licensing:\x20\x20\x20\x20','object','verbose','min',':\x20cannot\x20read\x20the\x20request\x20(','Continue\x20it\x20with:\x20delegate-cli\x20--session\x20','complete','code','Auth\x20comes\x20from\x20AUTH_TOKEN/TENANT_ID/ORG_ID\x20β\x20set\x20TENANT_ID\x20and\x20TENANT_SLUG\x20to\x20change\x20the\x20tenant.','production',')\x20β\x20saved\x20to\x20',',\x20not\x20\x22user\x22','once','stdout','\x20(resume\x20with\x20--session\x20','fields','The\x20saved\x20CLI\x20login\x20could\x20not\x20be\x20refreshed.\x20Run\x20`delegate-cli\x20login`\x20again.','restore','probability\x20','env','39390gjBApb','followUpsRenderer','\x20not\x20found.','--env\x20localhost\x20has\x20no\x20OAuth\x20flow;\x20pick\x20alpha,\x20staging,\x20or\x20production.','UPDATED','type','file','--page','\x20PU\x20used','):\x20','.\x20Use\x20','Invalid\x20--effort:\x20','\x20PU','\x0aAvailable\x20models\x20(','alpha','--no-computer-use','--url\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Other\x20commands\x20follow\x20the\x20saved\x20login,\x20or\x20--backend\x20<url>.','entries','a\x20colleague','--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`delegate-cli\x20sessions`\x20only.','status','probability','resolve','No\x20turn\x20','next','Licensing:\x20\x20\x20\x20no\x20licensing\x20quota\x20applies','\x20\x22<answer>\x22\x0a','\x20--turn\x20','Usage:\x20delegate-cli\x20sessions\x20','Enter\x20one\x20number\x20from\x201\x20to\x20','activity','the\x20request','--output-format\x20','\x20(Enter\x20to\x20skip):\x20','\x20this\x20month','--output-format','Organization\x20\x20','content',',\x20whose\x20tenant\x20is\x20chosen\x20in\x20the\x20app.\x20Run\x20`delegate-cli\x20login\x20--env\x20<env>`\x20for\x20a\x20CLI\x20login\x20of\x20your\x20own.','54360WscVyi','Model\x20','max','6yLykiO','Session\x20\x20\x20\x20\x20\x20\x20','Accepted','Spending:\x20\x20\x20\x20\x20$','data','replace','localhost','evaluate','--attach','\x20(optional)','fork','Use:\x20delegate-cli\x20delegations\x20','parentSessionId','--replay-user-messages','jsonSchemaPath','subcommand','delegation','You>\x20','string','limit_enabled','total_quota_pu','--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.','\x20(estimated\x20$','name','from\x20','--authority','erase','%\x20of\x20','.\x20Use\x20alpha\x20|\x20staging\x20|\x20production\x20|\x20localhost.','a\x20deployment\x20URL,\x20e.g.\x20https://automationsuite.contoso.com','isSafeInteger','Steering\x20input\x20stopped:\x20','expiresAt','delegations\x20claim\x20<delegation-id|delegate://delegation/β¦>','pendingResults','4178LuQnfP','page','a\x20skill\x20name','usage','--session','byoWarning','a\x20file\x20path','Unknown\x20flag:\x20','session_start','value','a\x20briefing\x20text','rename','isInteger','create','subFields','workerId','thinking','.aria','results','toISOString','total_sessions','score\x20','Session\x20','No\x20CLI\x20login\x20found.\x20Run\x20`delegate-cli\x20login\x20--env\x20<alpha|staging|production>`\x20first.','kind','.\x20Share:\x20','an\x20input\x20line\x20is\x20not\x20JSON','Task\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Structured\x20output\x20failed:\x20','score','round','Pass\x20either\x20--env\x20(a\x20named\x20cloud)\x20or\x20--url\x20(any\x20other\x20deployment),\x20not\x20both.','No\x20CLI\x20login\x20found\x20β\x20nothing\x20to\x20remove.','\x0aUse\x20with:\x20delegate-cli\x20--model\x20<id>\x20\x22<prompt>\x22\x0a','--input-format\x20stream-json\x20needs\x20--output-format\x20stream-json:\x20the\x20steering\x20messages\x20are\x20answered\x20on\x20stdout.','readFileSync','--headless','\x20\x22<prompt>\x22\x0aAnswer\x20with:\x20delegate-cli\x20delegations\x20complete\x20','Usage:\x20delegate-cli\x20org-users\x20<name\x20or\x20email\x20prefix>','readLine','high','\x20of\x20a\x20$','rejection',',\x20or\x20holds\x20no\x20message\x20','rmSync','stringify','--no-connections','No\x20answers\x20awaiting\x20acceptance.\x0a','period_days','unknown\x20slug','\x20requires\x20','18FGFbZs','skipEnvCheck','includes','exitCode','\x20(resets\x20','\x20prompt,\x20','cartographer','argv','\x20\x20\x20\x20Not\x20available\x20on\x20this\x20plan','--task-automation','detail','\x20(cancel\x20with:\x20delegate-cli\x20sessions\x20cancel\x20','message','\x20(type\x20your\x20own)','Session:\x20\x20\x20\x20\x20\x20','\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).','transcribe','padEnd','--replay-user-messages\x20needs\x20--input-format\x20stream-json.','Token:\x20\x20\x20\x20\x20\x20\x20\x20expires\x20','email','assignedUserEmail','--cartographer\x20runs\x20the\x20','\x20β\x20sign\x20out\x20in\x20the\x20Delegate\x20app\x20to\x20clear\x20that.','limit','\x20into\x20','turnId','complete\x20needs\x20a\x20prompt:\x20delegate-cli\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22,\x20or\x20-\x20to\x20read\x20stdin.','--help','Could\x20not\x20check\x20BYO\x20model\x20warnings:\x20','\x20to\x20','noConnections','--days','daily','total_cost_usd','\x20in\x20progress\x20on\x20session\x20','transcribe\x20needs\x20audio:\x20delegate-cli\x20transcribe\x20<file>,\x20or\x20-\x20to\x20read\x20stdin.','includeSubAgents','version','parse','pause','\x20min)','sourceUserEmail','tool','origin','\x20\x20(input\x20#','No\x20auth\x20found.\x20Set\x20AUTH_TOKEN\x20(or\x20AUTH_TOKEN_FILE)/TENANT_ID/ORG_ID\x20env\x20vars,\x20or\x20run\x20`delegate-cli\x20login\x20--env\x20<alpha|staging|production>`\x20(or\x20`--url\x20<deployment-url>`\x20for\x20Automation\x20Suite)\x20first.','url','a\x20project\x20id','verify'];_0x568e=function(){return _0x523f80;};return _0x568e();}var _=class extends Error{};function Je(_0x1a6246){const _0xd10081=_0x3a4b26;if(typeof _0x1a6246==_0xd10081(0x1de))return _0x1a6246;if(!Array['isArray'](_0x1a6246))return;let _0x33e774=[];for(let _0x4685b8 of _0x1a6246){if(typeof _0x4685b8!=_0xd10081(0x18f)||_0x4685b8===null)return;let {type:_0x163f88,text:_0x526520}=_0x4685b8;if(_0x163f88!==_0xd10081(0x331)||typeof _0x526520!=_0xd10081(0x1de))return;_0x33e774['push'](_0x526520);}return _0x33e774['join']('\x0a');}function He(_0x3237b0){const _0x171154=_0x3a4b26;if(_0x3237b0['trim']()==='')return null;let _0x187bed;try{_0x187bed=JSON[_0x171154(0x249)](_0x3237b0);}catch{throw new _(_0x171154(0x209));}if(typeof _0x187bed!=_0x171154(0x18f)||_0x187bed===null)throw new _('an\x20input\x20line\x20is\x20not\x20a\x20JSON\x20object');let {type:_0x51f5ee,message:_0x393d9f,uuid:_0x1b4738}=_0x187bed;if(_0x51f5ee!=='user')throw new _(_0x171154(0x29e)+JSON[_0x171154(0x21c)](_0x51f5ee)+_0x171154(0x199));let _0x35809e=Je(_0x393d9f?.[_0x171154(0x1c7)]);if(_0x35809e===void 0x0)throw new _('an\x20input\x20line\x20has\x20no\x20message.content,\x20a\x20string\x20or\x20a\x20list\x20of\x20text\x20blocks');if(_0x35809e[_0x171154(0x2b1)]()==='')throw new _('an\x20input\x20line\x20has\x20an\x20empty\x20message');return{'text':_0x35809e,'uuid':typeof _0x1b4738==_0x171154(0x1de)?_0x1b4738:void 0x0};}function oe(_0x844e4e,_0x4d88b7){const _0xc68032=_0x3a4b26;return JSON['stringify']({'type':_0xc68032(0x2f6),'message':{'role':_0xc68032(0x2f6),'content':_0x844e4e[_0xc68032(0x331)]},'session_id':_0x4d88b7,..._0x844e4e[_0xc68032(0x344)]===void 0x0?{}:{'uuid':_0x844e4e[_0xc68032(0x344)]},'isReplay':!0x0})+'\x0a';}async function*re(_0x523848,_0x18d173){const _0xdcfcb5=_0x3a4b26;let _0x6f1f7b=_0x306a96({'input':_0x523848,'crlfDelay':0x1/0x0});try{for await(let _0x335fdb of _0x6f1f7b){let _0x228b33;try{_0x228b33=He(_0x335fdb);}catch(_0x373ea9){if(!(_0x373ea9 instanceof _))throw _0x373ea9;_0x18d173(_0x373ea9);continue;}_0x228b33&&(yield _0x228b33);}}finally{_0x6f1f7b[_0xdcfcb5(0x16d)]();}}import{BUSINESS_ANALYSIS_PRELOADED_SKILLS as _0x395eec,DelegateAgent as _0x1427ba,cancelTurn as _0x5ba1f2,InteropProcess as _0xda19b4,complete as _0x2f6e96,DEFAULT_MODEL as _0x1d05e1,createBackendClient as _0x492d21,evaluate as _0x4a1037,isCompletionRequestError as _0x59fdf,isEvaluationRequestError as _0x2a7bbb,isTranscriptionError as _0x2efef6,rerank as _0x27147c,transcribe as _0x51c673,verify as _0x4361e9,acceptDelegation as _0x269871,cancelDelegation as _0x54be72,claimDelegation as _0x1c0edd,completeDelegation as _0x4774ad,createDelegation as _0x2bcd8e,deleteDelegation as _0x34dfa8,dismissDelegation as _0xd70e60,getSessionDelegations as _0x1f9306,isDelegationError as _0xe2f4f1,listDelegations as _0x336b67,listOrgUsers as _0x430b79,previewDelegation as _0x5a2254,TurnResultCollector as _0x526ad6,agentEventToJsonLine as _0x5a2300,describeBaseUrlRejection as _0x353097,getActivitySummary as _0x2e020c,getAuthFilePath as _0x324a52,getByoWarnings as _0x3e48c8,getCartographerAllowance as _0x528bc3,getDailyBreakdown as _0x3e4675,getLicensingSummary as _0x149516,getMonthlySpending as _0x3958ac,isOutputFormat as _0x5c3335,isCloudBaseUrl as _0x14198e,isSafeProjectFolderSegment as _0x14e3de,listModels as _0x1a6930,listSessions as _0x1da551,getSession as _0x117e7f,renameSession as _0x3811c8,deleteSession as _0x538998,deleteSessionTaskLog as _0x1f696a,forkSession as _0x42df00,isBackendRequestError as _0x427662,MAX_SESSION_PAGE_SIZE as _0x4baa25,listTenants as _0x140694,loadAndRefreshAuth as _0x2e7c44,loadAndRefreshSdkLogin as _0x43bd84,parsePlatformBaseUrl as _0x5b36d2,resolveBackendUrl as _0x3a304c,runHealthCheck as _0x2199fa,runHostCommand as _0x42a335,runLoginFlow as _0x2f3f40,runTurnForResult as _0x3b1601,saveAuthData as _0x3336ea,switchTenant as _0x282363,toJsonLine as _0x5acac5,ENV_TO_CLOUD as _0x58b47b,OUTPUT_FORMATS as _0x3bed9c,isRunStopNotice as _0x2a18c3,extractActionableErrorText as _0x152ec5}from'@uipath/delegate-sdk';function ie(_0x251326){const _0x58028d=_0x3a4b26;let {input:_0x510b79,getAgent:_0x2c081c,replay:_0x160558,onEvent:_0x5d67e4,write:_0x44928e,warn:_0x379c69,isRunStopNotice:_0x57fda3,actionableErrorText:_0x24d19b}=_0x251326,_0xe1214b=0x0,_0x2f67a0=0x0,_0x4e7d0b=Promise[_0x58028d(0x1b8)](),_0x572284=!0x1,_0x3d4c69=()=>{},_0xb31650=new Promise(_0x413b54=>{_0x3d4c69=_0x413b54;}),_0x2e4bfe=[],_0xd40a44=_0x5d67e4(_0x569d40=>{const _0x23301b=_0x58028d;_0x569d40['type']===_0x23301b(0x168)&&(_0x3d4c69(),_0x2e4bfe[_0x23301b(0x262)]()?.());}),_0x169282=_0x25c4e6=>{_0x160558&&_0x44928e(oe(_0x25c4e6,_0x2c081c()['getSessionId']()));},_0x40516d=(async()=>{const _0x2c9c20=_0x58028d;await _0xb31650;for await(let _0x2c3da7 of _0x510b79[_0x2c9c20(0x364)]){if(_0x572284)return;_0xe1214b===0x0&&(_0x2f67a0=_0x2c081c()[_0x2c9c20(0x17c)]()[_0x2c9c20(0x362)]),_0xe1214b++;let _0x1f1a21=new Promise(_0x3549b2=>{_0x2e4bfe['push'](()=>{_0x169282(_0x2c3da7),_0x3549b2();});}),_0x37227a=()=>{const _0x23cb4f=_0x2c9c20;_0xe1214b--,_0x2e4bfe[_0x23cb4f(0x291)]();},_0x12b134=_0x2c081c()['steer'](_0x2c3da7[_0x2c9c20(0x331)]);_0x4e7d0b=_0x12b134[_0x2c9c20(0x32f)](()=>{});try{await _0x12b134?await Promise['race']([_0x1f1a21,_0x2c081c()['waitForIdle']()]):(_0x37227a(),_0x379c69('A\x20steering\x20message\x20arrived\x20after\x20the\x20turn\x20ended:\x20not\x20read.\x0a'));}catch(_0x155bbe){_0x37227a(),_0x379c69(_0x2c9c20(0x25a)+(_0x155bbe instanceof Error?_0x155bbe[_0x2c9c20(0x22e)]:String(_0x155bbe))+'\x0a');}}})()[_0x58028d(0x32f)](_0xf54993=>{const _0x42bfce=_0x58028d;_0x379c69(_0x42bfce(0x1eb)+(_0xf54993 instanceof Error?_0xf54993['message']:String(_0xf54993))+'\x0a');});return{'settle':async _0x8b15df=>{const _0x1cea3d=_0x58028d;if(await _0x4e7d0b,_0xe1214b===0x0)return _0x8b15df;await _0x2c081c()[_0x1cea3d(0x359)]();for(let _0x36e469 of _0x2e4bfe)_0x36e469();_0x2e4bfe=[];let _0x4714c9=_0x2c081c()[_0x1cea3d(0x17c)]()['slice'](_0x2f67a0)[_0x1cea3d(0x320)](_0x5e4ad1=>_0x5e4ad1[_0x1cea3d(0x310)]===_0x1cea3d(0x2f4)||_0x57fda3(_0x5e4ad1)||_0x5e4ad1[_0x1cea3d(0x1a7)]==='ai'&&_0x5e4ad1[_0x1cea3d(0x310)]!=='agent_thought'&&_0x5e4ad1['widget']!==_0x1cea3d(0x1a3)&&!!_0x5e4ad1['content']);if(!_0x4714c9)return{..._0x8b15df,'failed':!0x0,'text':_0x1cea3d(0x2d9)};let _0x2c8c20=_0x4714c9[_0x1cea3d(0x310)]==='actionable_error';return typeof _0x4714c9['content']!=_0x1cea3d(0x1de)?{..._0x8b15df,'failed':_0x2c8c20}:{..._0x8b15df,'failed':_0x2c8c20,'text':_0x2c8c20?_0x24d19b(_0x4714c9[_0x1cea3d(0x1c7)]):_0x4714c9[_0x1cea3d(0x1c7)]};},'stop':()=>{const _0x754832=_0x58028d;_0x572284=!0x0,_0xd40a44(),_0x510b79[_0x754832(0x16d)]();}};}var Gt=[_0x3a4b26(0x356),'tenant',_0x3a4b26(0x297),_0x3a4b26(0x26f),_0x3a4b26(0x282),_0x3a4b26(0x315),_0x3a4b26(0x325),_0x3a4b26(0x172),_0x3a4b26(0x1f2),_0x3a4b26(0x1d3),_0x3a4b26(0x180),'verify',_0x3a4b26(0x194),'transcribe','delegations',_0x3a4b26(0x361)],ue=['','models',_0x3a4b26(0x315),'check',_0x3a4b26(0x172),'usage',_0x3a4b26(0x1d3),_0x3a4b26(0x180),'verify','complete',_0x3a4b26(0x232),'delegations',_0x3a4b26(0x361)],pe=[_0x3a4b26(0x17a),_0x3a4b26(0x14d),_0x3a4b26(0x217),'xhigh',_0x3a4b26(0x1cb)],Wt=_0x395eec,B=_0x3a4b26(0x228);function b(_0x62a6b2,_0x98818c,_0x1c127f,_0x2fa667){const _0x4c76c6=_0x3a4b26;let _0x2a867b=_0x62a6b2[_0x98818c];return(!_0x2a867b||_0x2a867b[_0x4c76c6(0x362)]>0x1&&_0x2a867b[_0x4c76c6(0x2a9)]('-'))&&(console[_0x4c76c6(0x351)](_0x1c127f+_0x4c76c6(0x221)+_0x2fa667+'.'),process[_0x4c76c6(0x309)](0x2)),_0x2a867b;}function K(_0x5192a5,_0x2cff26,_0x5d98c5,_0x1b120c){const _0x2692f5=_0x3a4b26;let _0x10b0d2=b(_0x5192a5,_0x2cff26,_0x5d98c5,_0x2692f5(0x2ce)),_0x46ad20=Number(_0x10b0d2);return(!/^\d+$/[_0x2692f5(0x181)](_0x10b0d2)||_0x46ad20<0x1||!Number[_0x2692f5(0x1ea)](_0x46ad20)||_0x1b120c!==void 0x0&&_0x46ad20>_0x1b120c)&&(console[_0x2692f5(0x351)](_0x5d98c5+_0x2692f5(0x2fb)+(_0x1b120c===void 0x0?_0x2692f5(0x2f8):_0x2692f5(0x285)+_0x1b120c)+_0x2692f5(0x2b2)+_0x10b0d2+'.'),process[_0x2692f5(0x309)](0x2)),_0x46ad20;}function Kt(_0x326c42){const _0x27630b=_0x3a4b26;let _0x17c13f={'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':_0x27630b(0x331),'inputFormat':'text','replayUserMessages':!0x1,'preloadSkills':[],'attachments':[],'skipEnvCheck':!0x1,'includeSubAgents':!0x1,'operands':[],'help':!0x1,'version':!0x1};Gt[_0x27630b(0x224)](_0x326c42[0x0])&&(_0x17c13f[_0x27630b(0x1db)]=_0x326c42[0x0],_0x326c42=_0x326c42[_0x27630b(0x177)](0x1));let _0x37f44b=[];for(let _0x5725fd=0x0;_0x5725fd<_0x326c42[_0x27630b(0x362)];_0x5725fd++){let _0x4d967d=_0x326c42[_0x5725fd];switch(_0x4d967d){case'--print':case'-p':_0x17c13f[_0x27630b(0x26e)]=!0x0;break;case'--keep-alive':_0x17c13f['keepAlive']=!0x0;break;case'--cleanup':_0x17c13f['cleanup']=!0x0;break;case _0x27630b(0x213):_0x17c13f[_0x27630b(0x2dc)]=!0x0;break;case _0x27630b(0x1b1):_0x17c13f[_0x27630b(0x154)]=!0x0;break;case'--cartographer':_0x17c13f[_0x27630b(0x228)]=!0x0,_0x17c13f['noComputerUse']=!0x0,_0x17c13f[_0x27630b(0x306)][_0x27630b(0x2b3)](...Wt);break;case _0x27630b(0x21d):_0x17c13f[_0x27630b(0x241)]=!0x0;break;case _0x27630b(0x270):_0x17c13f[_0x27630b(0x2e7)]=!0x0;break;case _0x27630b(0x2ff):_0x17c13f['noMemory']=!0x0;break;case _0x27630b(0x22b):_0x17c13f['taskAutomation']=!0x0;break;case'--quiet':case'-q':_0x17c13f['quiet']=!0x0;break;case _0x27630b(0x366):_0x17c13f[_0x27630b(0x190)]=!0x0;break;case'--backend':_0x17c13f[_0x27630b(0x294)]=_0x326c42[++_0x5725fd];break;case _0x27630b(0x34d):_0x17c13f[_0x27630b(0x153)]=_0x326c42[++_0x5725fd];break;case'--runner-url':_0x17c13f[_0x27630b(0x2bb)]=_0x326c42[++_0x5725fd];break;case _0x27630b(0x29a):_0x17c13f[_0x27630b(0x2b5)]=_0x326c42[++_0x5725fd];break;case'--worker-id':_0x17c13f[_0x27630b(0x1fe)]=_0x326c42[++_0x5725fd];break;case _0x27630b(0x295):_0x17c13f[_0x27630b(0x306)][_0x27630b(0x2b3)](b(_0x326c42,++_0x5725fd,_0x4d967d,_0x27630b(0x1f1)));break;case'--project':{let _0xd7c92c=b(_0x326c42,++_0x5725fd,_0x4d967d,_0x27630b(0x252));_0x14e3de(_0xd7c92c)||(console[_0x27630b(0x351)](_0x27630b(0x348)+_0xd7c92c+_0x27630b(0x231)),process[_0x27630b(0x309)](0x2)),_0x17c13f[_0x27630b(0x14a)]=_0xd7c92c;break;}case _0x27630b(0x322):_0x17c13f['vertical']=b(_0x326c42,++_0x5725fd,_0x4d967d,_0x27630b(0x155));break;case _0x27630b(0x1c5):{let _0x4f9106=b(_0x326c42,++_0x5725fd,_0x4d967d,_0x27630b(0x34b)+_0x3bed9c[_0x27630b(0x167)](_0x27630b(0x2ba))+')');_0x5c3335(_0x4f9106)||(console[_0x27630b(0x351)]('Invalid\x20--output-format:\x20'+_0x4f9106+'.\x20Use\x20'+_0x3bed9c[_0x27630b(0x167)](_0x27630b(0x2ba))+'.'),process[_0x27630b(0x309)](0x2)),_0x17c13f[_0x27630b(0x2f5)]=_0x4f9106;break;}case _0x27630b(0x2d5):{let _0x85fe7c=b(_0x326c42,++_0x5725fd,_0x4d967d,_0x27630b(0x34b)+j['join']('\x20|\x20')+')');se(_0x85fe7c)||(console[_0x27630b(0x351)](_0x27630b(0x2b4)+_0x85fe7c+_0x27630b(0x1ac)+j['join'](_0x27630b(0x2ba))+'.'),process[_0x27630b(0x309)](0x2)),_0x17c13f[_0x27630b(0x308)]=_0x85fe7c;break;}case _0x27630b(0x1d9):_0x17c13f['replayUserMessages']=!0x0;break;case _0x27630b(0x1f3):_0x17c13f[_0x27630b(0x326)]=b(_0x326c42,++_0x5725fd,_0x4d967d,'a\x20session\x20id');break;case _0x27630b(0x1a9):_0x17c13f['page']=K(_0x326c42,++_0x5725fd,_0x4d967d);break;case'--limit':_0x17c13f[_0x27630b(0x23a)]=K(_0x326c42,++_0x5725fd,_0x4d967d,_0x4baa25);break;case _0x27630b(0x2d4):_0x17c13f[_0x27630b(0x247)]=!0x0;break;case'--json-schema':_0x17c13f[_0x27630b(0x1da)]=b(_0x326c42,++_0x5725fd,_0x4d967d,_0x27630b(0x284));break;case _0x27630b(0x1d4):{let _0x5aa036=_0x4ec28e[_0x27630b(0x1b8)](process[_0x27630b(0x2a6)](),b(_0x326c42,++_0x5725fd,_0x4d967d,_0x27630b(0x1f5)));_0x28daf7['existsSync'](_0x5aa036)||(console['error']('--attach:\x20no\x20such\x20file\x20or\x20folder:\x20'+_0x5aa036),process[_0x27630b(0x309)](0x2)),_0x17c13f[_0x27630b(0x25e)]['push'](_0x5aa036);break;}case _0x27630b(0x182):_0x17c13f[_0x27630b(0x23c)]=b(_0x326c42,++_0x5725fd,_0x4d967d,'a\x20turn\x20id');break;case _0x27630b(0x27b):_0x17c13f[_0x27630b(0x301)]=b(_0x326c42,++_0x5725fd,_0x4d967d,'an\x20email\x20address\x20or\x20name');break;case _0x27630b(0x336):_0x17c13f['contextSummary']=b(_0x326c42,++_0x5725fd,_0x4d967d,_0x27630b(0x1f9));break;case _0x27630b(0x242):_0x17c13f[_0x27630b(0x156)]=K(_0x326c42,++_0x5725fd,_0x4d967d,0x16d);break;case'--working-dir':_0x17c13f[_0x27630b(0x2a7)]=_0x4ec28e[_0x27630b(0x1b8)](process['cwd'](),b(_0x326c42,++_0x5725fd,_0x4d967d,_0x27630b(0x30e)));break;case'--skills-path':_0x17c13f[_0x27630b(0x170)]=_0x4ec28e[_0x27630b(0x1b8)](process[_0x27630b(0x2a6)](),b(_0x326c42,++_0x5725fd,_0x4d967d,_0x27630b(0x30e)));break;case'--effort':{let _0x3f1d74=b(_0x326c42,++_0x5725fd,_0x4d967d,'an\x20effort\x20tier');pe[_0x27630b(0x224)](_0x3f1d74)||(console[_0x27630b(0x351)](_0x27630b(0x1ad)+_0x3f1d74+_0x27630b(0x1ac)+pe[_0x27630b(0x167)](_0x27630b(0x2ba))+'.'),process[_0x27630b(0x309)](0x2)),_0x17c13f[_0x27630b(0x184)]=_0x3f1d74;break;}case _0x27630b(0x2d6):{let _0x671a95=_0x326c42[++_0x5725fd];(!_0x671a95||_0x671a95[_0x27630b(0x2a9)]('--'))&&(console[_0x27630b(0x351)](_0x27630b(0x293)),process['exit'](0x2)),_0x17c13f[_0x27630b(0x321)]=_0x671a95;break;}case _0x27630b(0x2bc):{let _0x3c3701=_0x326c42[++_0x5725fd];[_0x27630b(0x1b0),_0x27630b(0x160),_0x27630b(0x197),'localhost'][_0x27630b(0x224)](_0x3c3701)||(console[_0x27630b(0x351)]('Invalid\x20--env:\x20'+_0x3c3701+_0x27630b(0x1e8)),process[_0x27630b(0x309)](0x2)),_0x17c13f['env']=_0x3c3701;break;}case'--url':case _0x27630b(0x1e5):{let _0x26a5ff=b(_0x326c42,++_0x5725fd,_0x4d967d,_0x27630b(0x1e9)),_0xc9eb92=_0x5b36d2(_0x26a5ff);if(_0xc9eb92['ok']===!0x1){console[_0x27630b(0x351)](_0x353097(_0x26a5ff,_0xc9eb92['rejection'])),process[_0x27630b(0x309)](0x2);break;}_0x17c13f[_0x27630b(0x251)]=_0xc9eb92[_0x27630b(0x163)];break;}case'--skip-env-check':_0x17c13f['skipEnvCheck']=!0x0;break;case'-h':case _0x27630b(0x23e):_0x17c13f[_0x27630b(0x2dd)]=!0x0;break;case'-v':case _0x27630b(0x28f):_0x17c13f[_0x27630b(0x248)]=!0x0;break;default:_0x4d967d[_0x27630b(0x2a9)]('--')&&(console['error'](_0x27630b(0x1f6)+_0x4d967d),process[_0x27630b(0x309)](0x2)),_0x37f44b['push'](_0x4d967d);}}return _0x17c13f[_0x27630b(0x321)]!==void 0x0&&_0x17c13f[_0x27630b(0x1db)]!==_0x27630b(0x356)&&(console[_0x27630b(0x351)]('--tenant\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Switch\x20tenants\x20with:\x20delegate-cli\x20tenant\x20<name>'),process[_0x27630b(0x309)](0x2)),_0x17c13f[_0x27630b(0x251)]!==void 0x0&&_0x17c13f[_0x27630b(0x1a1)]!==void 0x0&&(console[_0x27630b(0x351)](_0x27630b(0x20e)),process[_0x27630b(0x309)](0x2)),_0x17c13f[_0x27630b(0x251)]!==void 0x0&&_0x17c13f[_0x27630b(0x1db)]!=='login'&&(console[_0x27630b(0x351)](_0x27630b(0x1b2)),process[_0x27630b(0x309)](0x2)),_0x17c13f['days']!==void 0x0&&_0x17c13f[_0x27630b(0x1db)]!==_0x27630b(0x1f2)&&(console[_0x27630b(0x351)]('--days\x20applies\x20to\x20`delegate-cli\x20usage\x20activity|daily`\x20only.'),process[_0x27630b(0x309)](0x2)),_0x17c13f['jsonSchemaPath']!==void 0x0&&(_0x17c13f[_0x27630b(0x1db)]!=='complete'&&_0x17c13f['subcommand']!==''||_0x17c13f[_0x27630b(0x328)])&&(console['error'](_0x27630b(0x369)),process[_0x27630b(0x309)](0x2)),_0x17c13f['attachments'][_0x27630b(0x362)]>0x0&&(_0x17c13f['subcommand']!==''||_0x17c13f[_0x27630b(0x328)])&&(console[_0x27630b(0x351)](_0x27630b(0x29b)),process[_0x27630b(0x309)](0x2)),_0x17c13f[_0x27630b(0x280)]&&(_0x17c13f[_0x27630b(0x1db)]!==''||_0x17c13f['cleanup'])&&(console[_0x27630b(0x351)](_0x27630b(0x261)),process['exit'](0x2)),_0x17c13f[_0x27630b(0x280)]&&(_0x17c13f[_0x27630b(0x2dc)]||_0x17c13f[_0x27630b(0x154)]||_0x17c13f['vertical']?.[_0x27630b(0x2b1)]()===B)&&(console[_0x27630b(0x351)](_0x27630b(0x1e1)),process[_0x27630b(0x309)](0x2)),_0x17c13f[_0x27630b(0x228)]&&(_0x17c13f[_0x27630b(0x29c)]!==void 0x0&&_0x17c13f[_0x27630b(0x29c)][_0x27630b(0x2b1)]()!==B&&(console[_0x27630b(0x351)](_0x27630b(0x238)+B+_0x27630b(0x36c)+_0x17c13f[_0x27630b(0x29c)]+'.\x20Drop\x20one\x20of\x20the\x20two.'),process[_0x27630b(0x309)](0x2)),_0x17c13f[_0x27630b(0x29c)]=B),_0x17c13f[_0x27630b(0x223)]&&_0x17c13f[_0x27630b(0x1db)]!==_0x27630b(0x356)&&(console['error'](_0x27630b(0x26b)),process[_0x27630b(0x309)](0x2)),_0x17c13f['outputFormat']!==_0x27630b(0x331)&&!ue[_0x27630b(0x224)](_0x17c13f[_0x27630b(0x1db)])&&(console['error'](_0x27630b(0x1c2)+_0x17c13f[_0x27630b(0x2f5)]+_0x27630b(0x275)+ue[_0x27630b(0x311)](Boolean)['join'](',\x20')+'.'),process[_0x27630b(0x309)](0x2)),(_0x17c13f['inputFormat']!==_0x27630b(0x331)||_0x17c13f[_0x27630b(0x26a)])&&_0x17c13f[_0x27630b(0x1db)]!==''&&(console[_0x27630b(0x351)](_0x27630b(0x31e)),process['exit'](0x2)),_0x17c13f['replayUserMessages']&&_0x17c13f[_0x27630b(0x308)]!==_0x27630b(0x2f1)&&(console[_0x27630b(0x351)](_0x27630b(0x234)),process[_0x27630b(0x309)](0x2)),_0x17c13f[_0x27630b(0x308)]===_0x27630b(0x2f1)&&_0x17c13f[_0x27630b(0x2f5)]!==_0x27630b(0x2f1)&&(console[_0x27630b(0x351)](_0x27630b(0x211)),process[_0x27630b(0x309)](0x2)),(_0x17c13f[_0x27630b(0x1f0)]!==void 0x0||_0x17c13f['limit']!==void 0x0||_0x17c13f[_0x27630b(0x247)])&&_0x17c13f[_0x27630b(0x1db)]!==_0x27630b(0x172)&&(console[_0x27630b(0x351)](_0x27630b(0x1b5)),process['exit'](0x2)),(_0x17c13f[_0x27630b(0x301)]!==void 0x0||_0x17c13f[_0x27630b(0x2de)]!==void 0x0)&&_0x17c13f[_0x27630b(0x1db)]!==_0x27630b(0x188)&&(console[_0x27630b(0x351)](_0x27630b(0x2bf)),process[_0x27630b(0x309)](0x2)),_0x17c13f[_0x27630b(0x23c)]!==void 0x0&&_0x17c13f[_0x27630b(0x1db)]!=='sessions'&&(console['error'](_0x27630b(0x346)),process[_0x27630b(0x309)](0x2)),_0x17c13f[_0x27630b(0x306)]=[...new Set(_0x17c13f[_0x27630b(0x306)])],_0x17c13f[_0x27630b(0x2b6)]=_0x37f44b,_0x17c13f[_0x27630b(0x300)]=_0x37f44b[_0x27630b(0x167)]('\x20'),_0x17c13f[_0x27630b(0x308)]==='stream-json'&&_0x17c13f[_0x27630b(0x300)]!==''&&(console[_0x27630b(0x351)]('--input-format\x20stream-json\x20reads\x20the\x20prompt\x20from\x20stdin:\x20pass\x20no\x20prompt\x20argument.'),process[_0x27630b(0x309)](0x2)),_0x17c13f;}var O=_0x5efb31=>{const _0x59c236=_0x3a4b26;process[_0x59c236(0x19b)][_0x59c236(0x30a)](_0x5efb31);};function Qt(){const _0x5b0a5d=_0x3a4b26;let _0xab82ad=process[_0x5b0a5d(0x19b)][_0x5b0a5d(0x30a)],_0x5b7101=_0xab82ad[_0x5b0a5d(0x2d7)](process[_0x5b0a5d(0x19b)]),_0x14e0ed=O;return O=_0x39df3e=>{_0x5b7101(_0x39df3e);},process[_0x5b0a5d(0x19b)][_0x5b0a5d(0x30a)]=(..._0x3da9f7)=>process['stderr'][_0x5b0a5d(0x30a)](..._0x3da9f7),()=>{const _0x2f254f=_0x5b0a5d;process[_0x2f254f(0x19b)][_0x2f254f(0x30a)]=_0xab82ad,O=_0x14e0ed;};}function m(_0x28a83f,_0x5e944e,_0x5540c8){const _0x3bb01f=_0x3a4b26;if(_0x28a83f['outputFormat']===_0x3bb01f(0x331)){_0x5540c8(_0x5e944e);return;}O(_0x5acac5(_0x5e944e));}function qt(){const _0x39fb02=_0x3a4b26;let _0x20a47e=_0x39fb02(0x2d3)[_0x39fb02(0x2b1)]();console[_0x39fb02(0x286)](_0x20a47e);}function zt(){const _0x145fe2=_0x3a4b26;try{return JSON[_0x145fe2(0x249)](_0x28daf7[_0x145fe2(0x212)](_0x4ec28e[_0x145fe2(0x167)](__dirname,'..',_0x145fe2(0x323)),_0x145fe2(0x2f0)))['version']||'unknown';}catch{return _0x145fe2(0x33a);}}var Yt=0x7d0;async function me(_0x4ebbaa,_0x23df77){const _0x120260=_0x3a4b26;let _0x2e5f85=_0x23df77?[_0x23df77]:[];for await(let _0x2e6490 of _0x4ebbaa)_0x2e5f85[_0x120260(0x2b3)](Buffer[_0x120260(0x32e)](_0x2e6490));return Buffer['concat'](_0x2e5f85)[_0x120260(0x165)](_0x120260(0x2f0))[_0x120260(0x2b1)]();}function Vt(_0x139800,_0x7cc45b){return new Promise(_0x51bfd0=>{const _0x278c3b=_0x9e2b;let _0x15c26b=_0x15aa60=>{const _0x37ce04=_0x9e2b;clearTimeout(_0x4aca02),_0x139800[_0x37ce04(0x314)]('data',_0x1b39f7),_0x139800[_0x37ce04(0x314)](_0x37ce04(0x17b),_0x60189e),_0x139800[_0x37ce04(0x314)](_0x37ce04(0x351),_0x60189e),_0x139800[_0x37ce04(0x24a)](),_0x51bfd0(_0x15aa60);},_0x1b39f7=_0x456830=>_0x15c26b(Buffer[_0x278c3b(0x32e)](_0x456830)),_0x60189e=()=>_0x15c26b(null),_0x4aca02=setTimeout(()=>_0x15c26b(null),_0x7cc45b);_0x139800['on'](_0x278c3b(0x1d0),_0x1b39f7),_0x139800['on'](_0x278c3b(0x17b),_0x60189e),_0x139800['on']('error',_0x60189e),_0x139800[_0x278c3b(0x28a)]();});}async function H(_0x3aae7e,_0x4deb2e,_0x1278f8=Yt){const _0x5cbc81=_0x3a4b26;let _0x4b07a5=_0x3aae7e==='-';if(!_0x4b07a5&&_0x3aae7e)return _0x3aae7e;if(!_0x4b07a5&&_0x4deb2e[_0x5cbc81(0x335)])return'';if(_0x4b07a5)return me(_0x4deb2e,null);let _0xe500fa=await Vt(_0x4deb2e,_0x1278f8);return _0xe500fa?me(_0x4deb2e,_0xe500fa):'';}function z(){const _0x3618e1=_0x3a4b26;return _0x4ec28e[_0x3618e1(0x167)](process.env.HOME||process.env.USERPROFILE||'',_0x3618e1(0x200),_0x3618e1(0x16c));}function G(_0x42105c){const _0x90067d=_0x3a4b26;try{let _0x400e5d=JSON[_0x90067d(0x249)](_0x28daf7[_0x90067d(0x212)](_0x42105c,_0x90067d(0x2f0)));return!_0x400e5d[_0x90067d(0x27d)]||!_0x400e5d['tenantId']||!_0x400e5d[_0x90067d(0x16a)]?null:_0x400e5d;}catch{return null;}}function Xt(){let _0x1b962e=[{'file':_0x324a52(),'isDesktopFallback':!0x1},{'file':z(),'isDesktopFallback':!0x0}];for(let _0x4701fa of _0x1b962e){let _0x7614e5=G(_0x4701fa['file']);if(_0x7614e5)return{..._0x4701fa,'auth':_0x7614e5};}return null;}async function Zt(){const _0x59f471=_0x3a4b26;let _0x277397=_0x324a52();if(!_0x28daf7[_0x59f471(0x33c)](_0x277397)){let _0x15c600=z();console[_0x59f471(0x286)](G(_0x15c600)?_0x59f471(0x178)+_0x15c600+_0x59f471(0x239):_0x59f471(0x20f));return;}_0x28daf7[_0x59f471(0x21b)](_0x277397),console['log'](_0x59f471(0x35e)+_0x277397);}async function en(_0x20e2e4){const _0x4608f4=_0x3a4b26;let _0x4fbc0c=Y(),_0x1def25,_0x5602ff;if(_0x4fbc0c)_0x1def25=_0x4fbc0c,_0x5602ff='environment\x20variables\x20(AUTH_TOKEN/TENANT_ID/ORG_ID)';else{let _0x4cc2bc=Xt();if(!_0x4cc2bc)throw new Error(Te);_0x1def25=_0x4cc2bc[_0x4608f4(0x2ef)],_0x5602ff=_0x4cc2bc[_0x4608f4(0x31a)]?_0x4cc2bc[_0x4608f4(0x1a8)]+_0x4608f4(0x2f7):_0x4cc2bc[_0x4608f4(0x1a8)];}let _0x30a8bd={'source':_0x5602ff,'baseUrl':_0x1def25[_0x4608f4(0x163)]??null,'deployment':tn(_0x1def25[_0x4608f4(0x163)]),'organization':{'id':_0x1def25[_0x4608f4(0x16a)],'slug':_0x1def25[_0x4608f4(0x29f)]??null},'tenant':{'id':_0x1def25['tenantId'],'name':_0x1def25[_0x4608f4(0x277)]??null},'tokenExpiresAt':_0x1def25[_0x4608f4(0x1ec)]?new Date(_0x1def25[_0x4608f4(0x1ec)]*0x3e8)[_0x4608f4(0x202)]():null};m(_0x20e2e4,_0x30a8bd,()=>{const _0x4d8cc9=_0x4608f4;let _0x2f3a26=[_0x4d8cc9(0x18d)+_0x5602ff,_0x4d8cc9(0x157)+(_0x1def25[_0x4d8cc9(0x163)]??_0x4d8cc9(0x33a)),_0x4d8cc9(0x34c)+_0x30a8bd['deployment'],_0x4d8cc9(0x305)+(_0x1def25[_0x4d8cc9(0x29f)]??_0x4d8cc9(0x220))+'\x20('+_0x1def25[_0x4d8cc9(0x16a)]+')','Tenant:\x20\x20\x20\x20\x20\x20\x20'+(_0x1def25[_0x4d8cc9(0x277)]??'unknown\x20slug')+'\x20('+_0x1def25[_0x4d8cc9(0x32d)]+')'];if(_0x1def25[_0x4d8cc9(0x1ec)]){let _0x2741ed=_0x1def25[_0x4d8cc9(0x1ec)]-Math[_0x4d8cc9(0x2be)](Date['now']()/0x3e8);_0x2f3a26['push'](_0x2741ed>0x0?_0x4d8cc9(0x235)+_0x30a8bd['tokenExpiresAt']+_0x4d8cc9(0x2ae)+Math[_0x4d8cc9(0x20d)](_0x2741ed/0x3c)+_0x4d8cc9(0x24b):_0x4d8cc9(0x260)+_0x30a8bd[_0x4d8cc9(0x2ee)]);}process['stdout'][_0x4d8cc9(0x30a)](_0x2f3a26['join']('\x0a')+'\x0a');});}var Te=_0x3a4b26(0x250);function tn(_0x129030){const _0x4b1283=_0x3a4b26;return _0x129030?_0x14198e(_0x129030)?_0x4b1283(0x368):'self-hosted\x20(Automation\x20Suite\x20/\x20Dedicated)':'unknown';}function Y(){let _0x36cbb2=process.env.AUTH_TOKEN_FILE;return(process.env.AUTH_TOKEN||_0x36cbb2)&&process.env.TENANT_ID&&process.env.ORG_ID?{'accessToken':_0x36cbb2?nn(_0x36cbb2):process.env.AUTH_TOKEN,..._0x36cbb2?{'accessTokenFile':_0x36cbb2}:{},'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(_0x52c6e7){const _0x58ebee=_0x3a4b26;let _0x4679e0;try{_0x4679e0=_0x28daf7[_0x58ebee(0x212)](_0x52c6e7,_0x58ebee(0x2f0))[_0x58ebee(0x2b1)]();}catch(_0x18b8a9){throw new Error(_0x58ebee(0x164)+_0x52c6e7+_0x58ebee(0x357)+_0x18b8a9['message']);}let _0x140822=_0x4679e0[_0x58ebee(0x2a9)]('Bearer\x20')?_0x4679e0[_0x58ebee(0x177)](0x7)[_0x58ebee(0x2b1)]():_0x4679e0;if(!_0x140822)throw new Error(_0x58ebee(0x164)+_0x52c6e7+'\x27\x20is\x20empty.');return _0x140822;}function Ue(){const _0x3dc9c5=_0x3a4b26;let _0x42a0ad=process.env.UIPATH_BASE_URL;if(!_0x42a0ad)return;let _0x3b0a08=_0x5b36d2(_0x42a0ad);if(_0x3b0a08['ok']===!0x1)throw new Error(_0x3dc9c5(0x316)+_0x353097(_0x42a0ad,_0x3b0a08[_0x3dc9c5(0x219)]));return _0x3b0a08[_0x3dc9c5(0x163)];}async function V(){let _0x5c4c98=Y();if(_0x5c4c98)return _0x5c4c98;let _0x55a969=await _0x2e7c44();if(_0x55a969)return _0x55a969;throw new Error(Te);}async function sn(){const _0x30c0ee=_0x3a4b26;await new _0xda19b4()['stop']({'force':!0x0}),console[_0x30c0ee(0x286)](_0x30c0ee(0x2c7));}function X(_0x13f4cd,_0x1e9741,_0x48a19b){const _0x22518a=_0x3a4b26;_0x13f4cd?process[_0x22518a(0x2c1)][_0x22518a(0x30a)](_0x22518a(0x30c)+_0x13f4cd+_0x22518a(0x365)+_0x48a19b+'\x0a'):!_0x1e9741&&!process.env.BACKEND_URL&&process[_0x22518a(0x2c1)][_0x22518a(0x30a)](_0x22518a(0x307)+_0x48a19b+'\x0a');}async function $(_0x2b6e45){const _0x23c416=_0x3a4b26;let _0x70986d=await V(),_0xc4fca4=_0x3a304c(_0x2b6e45['env'],_0x70986d,_0x2b6e45[_0x23c416(0x294)]);return X(_0x2b6e45[_0x23c416(0x1a1)],_0x2b6e45['backendUrl'],_0xc4fca4),{'auth':_0x70986d,'backendUrl':_0xc4fca4,'client':_0x492d21({'auth':_0x70986d,'backendUrl':_0xc4fca4})};}async function on(_0x73bb5d){const _0x389576=_0x3a4b26;let {client:_0x1c1eb3}=await $(_0x73bb5d),[_0x23ff8d,_0x52b85d]=await Promise[_0x389576(0x2c5)]([_0x1a6930(_0x1c1eb3),_0x3e48c8(_0x1c1eb3)['catch'](_0x10db0b=>(process['stderr']['write'](_0x389576(0x23f)+(_0x10db0b instanceof Error?_0x10db0b['message']:String(_0x10db0b))+'\x0a'),{}))]),_0x365f9a=_0x23ff8d[_0x389576(0x268)](_0x1def78=>_0x52b85d[_0x1def78['id']]?{..._0x1def78,'byoWarning':_0x52b85d[_0x1def78['id']]}:_0x1def78);m(_0x73bb5d,_0x365f9a,rn);}function rn(_0x2275f6){const _0x17e169=_0x3a4b26;if(_0x2275f6[_0x17e169(0x362)]===0x0){process[_0x17e169(0x2c1)][_0x17e169(0x30a)](_0x17e169(0x32c));return;}process[_0x17e169(0x19b)][_0x17e169(0x30a)](_0x17e169(0x1af)+_0x2275f6[_0x17e169(0x362)]+_0x17e169(0x25c));for(let _0xb98d57 of _0x2275f6){let _0x1562f1=_0xb98d57['name']&&_0xb98d57[_0x17e169(0x1e3)]!==_0xb98d57['id']?'\x20('+_0xb98d57[_0x17e169(0x1e3)]+')':'';process[_0x17e169(0x19b)][_0x17e169(0x30a)]('\x20\x20'+_0xb98d57['id']+_0x1562f1+'\x0a'),_0xb98d57['description']&&process[_0x17e169(0x19b)][_0x17e169(0x30a)](_0x17e169(0x334)+_0xb98d57[_0x17e169(0x313)]+'\x0a'),_0xb98d57['locked']&&process[_0x17e169(0x19b)][_0x17e169(0x30a)](_0x17e169(0x22a)+(_0xb98d57['lockReason']?'\x20('+_0xb98d57[_0x17e169(0x266)]+')':'')+'\x0a'),_0xb98d57[_0x17e169(0x1f4)]&&process[_0x17e169(0x19b)]['write'](_0x17e169(0x327)+_0xb98d57[_0x17e169(0x1f4)]+'\x0a');}process['stdout']['write'](_0x17e169(0x210));}var fe=[_0x3a4b26(0x360),_0x3a4b26(0x2a8),_0x3a4b26(0x1fa),_0x3a4b26(0x352),'cancel',_0x3a4b26(0x1d6)];async function an(_0x4debe7){const _0x24bfd0=_0x3a4b26;let [_0x2983b9='',_0xe2c299='',..._0x1c2af2]=_0x4debe7['operands'];if(_0x2983b9&&!fe[_0x24bfd0(0x224)](_0x2983b9)&&(console['error'](_0x24bfd0(0x2cf)+_0x2983b9+_0x24bfd0(0x341)+fe['join'](_0x24bfd0(0x2ba))+'.'),process[_0x24bfd0(0x309)](0x2)),_0x4debe7[_0x24bfd0(0x23c)]!==void 0x0&&_0x2983b9!==_0x24bfd0(0x324)&&(console['error'](_0x24bfd0(0x346)),process[_0x24bfd0(0x309)](0x2)),_0x2983b9&&_0x2983b9!==_0x24bfd0(0x360)){await ln(_0x4debe7,_0x2983b9,_0xe2c299,_0x1c2af2[_0x24bfd0(0x167)]('\x20')[_0x24bfd0(0x2b1)]());return;}_0x4debe7[_0x24bfd0(0x2b6)][_0x24bfd0(0x362)]>0x1&&(console[_0x24bfd0(0x351)](_0x24bfd0(0x339)),process[_0x24bfd0(0x309)](0x2));let {client:_0x4224db}=await $(_0x4debe7),_0x5ab1a1=await _0x1da551(_0x4224db,{'page':_0x4debe7[_0x24bfd0(0x1f0)],'pageSize':_0x4debe7['limit'],'includeSubAgents':_0x4debe7[_0x24bfd0(0x247)]});m(_0x4debe7,_0x5ab1a1,pn);}async function ln(_0x47a1c1,_0x6d9690,_0x4a6cf7,_0x4daae8){const _0x138ce0=_0x3a4b26;if((_0x47a1c1[_0x138ce0(0x1f0)]!==void 0x0||_0x47a1c1[_0x138ce0(0x23a)]!==void 0x0||_0x47a1c1[_0x138ce0(0x247)])&&(console['error'](_0x138ce0(0x2e3)),process[_0x138ce0(0x309)](0x2)),_0x6d9690==='cancel'){await dn(_0x47a1c1,_0x4a6cf7,_0x4daae8);return;}if(_0x6d9690==='fork'){await un(_0x47a1c1,_0x4a6cf7,_0x4daae8);return;}(!_0x4a6cf7||_0x6d9690==='rename'!=!!_0x4daae8)&&(console[_0x138ce0(0x351)](_0x138ce0(0x1be)+_0x6d9690+_0x138ce0(0x2af)+(_0x6d9690===_0x138ce0(0x1fa)?_0x138ce0(0x30f):'')),process[_0x138ce0(0x309)](0x2));let {client:_0x14132c}=await $(_0x47a1c1);try{if(_0x6d9690===_0x138ce0(0x2a8)){let _0x1c4b15=await _0x117e7f(_0x14132c,_0x4a6cf7);_0x1c4b15||ge(_0x4a6cf7),m(_0x47a1c1,_0x1c4b15,cn);}else{if(_0x6d9690==='rename'){let _0x17c3c9=await _0x3811c8(_0x14132c,_0x4a6cf7,_0x4daae8);m(_0x47a1c1,_0x17c3c9,_0x2f4305=>{const _0x53e03d=_0x138ce0;process[_0x53e03d(0x19b)]['write'](_0x53e03d(0x31f)+_0x2f4305['id']+':\x20'+_0x2f4305[_0x53e03d(0x2ac)]+'\x0a');});}else await _0x538998(_0x14132c,_0x4a6cf7),await _0x1f696a(_0x4a6cf7,_0x47a1c1[_0x138ce0(0x2a7)]),m(_0x47a1c1,{'id':_0x4a6cf7,'deleted':!0x0},_0x27dbfa=>{const _0x3b0423=_0x138ce0;process['stdout']['write'](_0x3b0423(0x14f)+_0x27dbfa['id']+'.\x0a');});}}catch(_0x259939){if(!_0x427662(_0x259939,0x194))throw _0x259939;ge(_0x4a6cf7);}}function ge(_0x2b1d4c){const _0xe05b55=_0x3a4b26;console[_0xe05b55(0x351)](_0xe05b55(0x205)+_0x2b1d4c+_0xe05b55(0x1a4)),process[_0xe05b55(0x309)](0x1);}function cn(_0x4d11d4){const _0x357952=_0x3a4b26;process['stdout'][_0x357952(0x30a)](_0x357952(0x35b)+_0x4d11d4['id']+'\x0a'),process[_0x357952(0x19b)][_0x357952(0x30a)](_0x357952(0x2d0)+_0x4d11d4[_0x357952(0x2ac)]+'\x0a'),process[_0x357952(0x19b)]['write'](_0x357952(0x183)+_0x4d11d4[_0x357952(0x31c)]+'\x0a'),process[_0x357952(0x19b)][_0x357952(0x30a)](_0x357952(0x1c6)+_0x4d11d4[_0x357952(0x16a)]+'\x0a'),_0x4d11d4[_0x357952(0x166)]&&process['stdout'][_0x357952(0x30a)](_0x357952(0x15c)+_0x4d11d4[_0x357952(0x166)]+'\x0a');}async function dn(_0x19304c,_0x4ee78e,_0x4dcd2e){const _0x2a1c4c=_0x3a4b26;(!_0x4ee78e||_0x4dcd2e||!_0x19304c[_0x2a1c4c(0x23c)])&&(console[_0x2a1c4c(0x351)](_0x2a1c4c(0x2e6)),process['exit'](0x2));let {client:_0x2fc2e3}=await $(_0x19304c),_0x5197b1=await _0x5ba1f2(_0x2fc2e3,_0x4ee78e,_0x19304c[_0x2a1c4c(0x23c)]);m(_0x19304c,{'sessionId':_0x4ee78e,'turnId':_0x19304c[_0x2a1c4c(0x23c)],'cancelled':_0x5197b1},_0x483d78=>{const _0x58bf7b=_0x2a1c4c;_0x483d78[_0x58bf7b(0x174)]?process[_0x58bf7b(0x19b)]['write'](_0x58bf7b(0x2c9)+_0x483d78[_0x58bf7b(0x23c)]+_0x58bf7b(0x350)+_0x483d78['sessionId']+'.\x0a'):process[_0x58bf7b(0x2c1)][_0x58bf7b(0x30a)](_0x58bf7b(0x1b9)+_0x483d78[_0x58bf7b(0x23c)]+_0x58bf7b(0x245)+_0x483d78[_0x58bf7b(0x326)]+'.\x0a');}),_0x5197b1||(process[_0x2a1c4c(0x225)]=0x1);}async function un(_0xe7bcd5,_0x389941,_0xae4b8b){const _0x3eac10=_0x3a4b26;(!_0x389941||/\s/[_0x3eac10(0x181)](_0xae4b8b))&&(console[_0x3eac10(0x351)]('Usage:\x20delegate-cli\x20sessions\x20fork\x20<id>\x20[<message-id>]'),process[_0x3eac10(0x309)](0x2));let {client:_0x2af650}=await $(_0xe7bcd5),_0x1f8a23;try{_0x1f8a23=await _0x42df00(_0x2af650,_0x389941,{'atMessageId':_0xae4b8b||void 0x0});}catch(_0x5d28d4){if(!_0x427662(_0x5d28d4,0x194))throw _0x5d28d4;console[_0x3eac10(0x351)](_0x3eac10(0x205)+_0x389941+_0x3eac10(0x303)+(_0xae4b8b?_0x3eac10(0x21a)+_0xae4b8b:'')+'.'),process[_0x3eac10(0x309)](0x1);}m(_0xe7bcd5,_0x1f8a23,_0x5e278e=>{const _0x13f262=_0x3eac10;process[_0x13f262(0x19b)]['write'](_0x13f262(0x158)+_0x389941+_0x13f262(0x23b)+_0x5e278e['id']+'.\x0a'),process[_0x13f262(0x2c1)][_0x13f262(0x30a)](_0x13f262(0x193)+_0x5e278e['id']+_0x13f262(0x27e));});}function pn({sessions:_0x38396c,page:_0x54fdf6,isLastPage:_0x1e1a3f}){const _0x41bb9c=_0x3a4b26;if(_0x38396c[_0x41bb9c(0x362)]===0x0)process[_0x41bb9c(0x2c1)]['write']('No\x20sessions\x20on\x20page\x20'+_0x54fdf6+'.\x0a');else{process[_0x41bb9c(0x19b)][_0x41bb9c(0x30a)]('ID'[_0x41bb9c(0x233)](0x24)+'\x20\x20'+_0x41bb9c(0x1a6)['padEnd'](0x13)+_0x41bb9c(0x304));for(let _0x44c91a of _0x38396c){let _0xf83e16=_0x44c91a[_0x41bb9c(0x302)][_0x41bb9c(0x1d1)]('T','\x20')['slice'](0x0,0x13),_0x45a4e2=_0x44c91a[_0x41bb9c(0x1d8)]?_0x41bb9c(0x176)+_0x44c91a[_0x41bb9c(0x1d8)]+')':'';process['stdout'][_0x41bb9c(0x30a)](_0x44c91a['id'][_0x41bb9c(0x233)](0x24)+'\x20\x20'+_0xf83e16[_0x41bb9c(0x233)](0x13)+'\x20\x20'+_0x44c91a['title']+_0x45a4e2+'\x0a');}}_0x1e1a3f||process['stderr'][_0x41bb9c(0x30a)](_0x41bb9c(0x298)+(_0x54fdf6+0x1)+'\x0a');}async function mn(_0x584cae){const _0x289356=_0x3a4b26;let _0x15bfaf=await V(),_0x27cd0c=_0x3a304c(_0x584cae[_0x289356(0x1a1)],_0x15bfaf,_0x584cae[_0x289356(0x294)]);X(_0x584cae[_0x289356(0x1a1)],_0x584cae[_0x289356(0x294)],_0x27cd0c);let _0x5f3270=await _0x2199fa({'auth':_0x15bfaf,'backendUrl':_0x27cd0c,'interop':_0x584cae[_0x289356(0x2dc)]?_0x289356(0x18c):'spawn'});m(_0x584cae,_0x5f3270,({checks:_0x3a1ee5})=>{for(let _0x5c9ba2 of _0x3a1ee5)process['stdout']['write'](fn(_0x5c9ba2)+'\x0a');}),_0x5f3270['ok']||process['exit'](0x1);}function fn(_0x19d126){const _0x43dcdd=_0x3a4b26;return{'ok':'β','failed':'β','skipped':'-'}[_0x19d126[_0x43dcdd(0x1b6)]]+'\x20'+_0x19d126[_0x43dcdd(0x1e3)][_0x43dcdd(0x233)](0xa)+_0x19d126[_0x43dcdd(0x22c)];}var gn=['',_0x3a4b26(0x1c0),_0x3a4b26(0x243)];async function hn(_0x21fe67){const _0x155067=_0x3a4b26;let _0x2ccf03=_0x21fe67[_0x155067(0x300)];gn[_0x155067(0x224)](_0x2ccf03)||(console[_0x155067(0x351)](_0x155067(0x333)+_0x21fe67[_0x155067(0x300)]+_0x155067(0x279)),process[_0x155067(0x309)](0x2)),_0x2ccf03===''&&_0x21fe67[_0x155067(0x156)]!==void 0x0&&(console['error']('--days\x20applies\x20to\x20`delegate-cli\x20usage\x20activity|daily`;\x20the\x20summary\x20covers\x20the\x20current\x20month.'),process[_0x155067(0x309)](0x2)),_0x2ccf03!==''&&_0x21fe67[_0x155067(0x326)]!==void 0x0&&(console[_0x155067(0x351)](_0x155067(0x2f2)),process[_0x155067(0x309)](0x2));let {client:_0xae172}=await $(_0x21fe67);if(_0x2ccf03===_0x155067(0x1c0)){m(_0x21fe67,await _0x2e020c(_0xae172,{'days':_0x21fe67['days']}),wn);return;}if(_0x2ccf03===_0x155067(0x243)){m(_0x21fe67,await _0x3e4675(_0xae172,{'days':_0x21fe67['days']}),kn);return;}let [_0x36e169,_0x21c23f,_0x5bcb28]=await Promise[_0x155067(0x2c5)]([_0x149516(_0xae172,{'sessionId':_0x21fe67[_0x155067(0x326)]}),_0x3958ac(_0xae172),_0x528bc3(_0xae172)]);m(_0x21fe67,{'licensing':_0x36e169,'monthlySpending':_0x21c23f,'cartographerAllowance':_0x5bcb28},yn);}function yn(_0x1f4fa1){const _0x11d89e=_0x3a4b26;let {licensing:_0x19af4f,monthlySpending:_0xa16d2f,cartographerAllowance:_0x12a849}=_0x1f4fa1,_0x243480=[_0x19af4f[_0x11d89e(0x1df)]?_0x11d89e(0x18e)+_0x19af4f['pct_used'][_0x11d89e(0x312)](0x1)+_0x11d89e(0x1e7)+(_0x19af4f[_0x11d89e(0x1e0)]??0x0)+_0x11d89e(0x1aa)+(_0x19af4f[_0x11d89e(0x28d)]>0x0?',\x20'+_0x19af4f[_0x11d89e(0x28d)]+_0x11d89e(0x267):'')+_0x11d89e(0x226)+_0x19af4f['period_end']+')':_0x11d89e(0x1bb),_0x11d89e(0x1cf)+_0xa16d2f['monthly_spend_usd'][_0x11d89e(0x312)](0x2)+_0x11d89e(0x1c4)+(_0xa16d2f[_0x11d89e(0x1df)]&&_0xa16d2f['monthly_limit_usd']!==null?_0x11d89e(0x218)+_0xa16d2f[_0x11d89e(0x18b)][_0x11d89e(0x312)](0x2)+_0x11d89e(0x26d):_0x11d89e(0x186)),'Cartographer:\x20'+_0x12a849[_0x11d89e(0x258)]+'\x20('+_0x12a849[_0x11d89e(0x16b)]+')'];_0x19af4f[_0x11d89e(0x2e4)]!==null&&_0x19af4f[_0x11d89e(0x2e4)]!==void 0x0&&_0x243480[_0x11d89e(0x2b3)](_0x11d89e(0x230)+_0x19af4f[_0x11d89e(0x2e4)]+_0x11d89e(0x1ae)),process['stdout']['write'](_0x243480['join']('\x0a')+'\x0a');}function wn(_0xd89267){const _0x2c4b7f=_0x3a4b26;let _0x4c6116=[_0x2c4b7f(0x2a1)+_0xd89267[_0x2c4b7f(0x21f)]+'\x20days:\x20'+_0xd89267[_0x2c4b7f(0x203)]+_0x2c4b7f(0x2c3)+_0xd89267[_0x2c4b7f(0x2cc)]+'\x20active\x20days','Cost:\x20\x20\x20$'+_0xd89267[_0x2c4b7f(0x244)]['toFixed'](0x2)+_0x2c4b7f(0x1e2)+_0xd89267['estimated_cost_usd'][_0x2c4b7f(0x312)](0x2)+_0x2c4b7f(0x2da)+_0xd89267['total_token_units']+_0x2c4b7f(0x15b),_0x2c4b7f(0x2c4)+_0xd89267[_0x2c4b7f(0x34e)]+_0x2c4b7f(0x227)+_0xd89267[_0x2c4b7f(0x2b7)]+'\x20completion'];for(let [_0x4881b7,_0x2140ac]of Object[_0x2c4b7f(0x1b3)](_0xd89267[_0x2c4b7f(0x367)]))_0x4c6116[_0x2c4b7f(0x2b3)]('\x20\x20'+_0x4881b7+':\x20'+_0x2140ac+'\x20token\x20units');process['stdout']['write'](_0x4c6116[_0x2c4b7f(0x167)]('\x0a')+'\x0a');}function kn(_0x506d85){const _0x297418=_0x3a4b26;if(_0x506d85['daily_usage']['length']===0x0){process[_0x297418(0x19b)][_0x297418(0x30a)]('No\x20usage\x20in\x20the\x20last\x20'+_0x506d85[_0x297418(0x21f)]+_0x297418(0x179));return;}let _0x2a1613=[_0x297418(0x349)];for(let _0x1f2444 of _0x506d85['daily_usage'])_0x2a1613['push'](_0x1f2444[_0x297418(0x28b)]+'\x20\x20'+String(_0x1f2444['token_units'])[_0x297418(0x257)](0xb)+'\x20\x20'+String(_0x1f2444['prompt_tokens'])['padStart'](0xd)+'\x20\x20'+String(_0x1f2444[_0x297418(0x2e2)])[_0x297418(0x257)](0x11));process[_0x297418(0x19b)][_0x297418(0x30a)](_0x2a1613['join']('\x0a')+'\x0a');}async function bn(_0xdeb9c4,_0x327f2c){const _0x13a045=_0x3a4b26;let _0x3a3e50=await Sn(_0xdeb9c4[_0x13a045(0x300)],_0x327f2c);_0xdeb9c4[_0x13a045(0x153)]&&(_0x3a3e50['model']=_0xdeb9c4['model']);let {client:_0x1f5bd5}=await $(_0xdeb9c4);try{_0x327f2c===_0x13a045(0x1d3)?m(_0xdeb9c4,await _0x4a1037(_0x1f5bd5,_0x3a3e50,void 0x0),An):_0x327f2c==='rerank'?m(_0xdeb9c4,await _0x27147c(_0x1f5bd5,_0x3a3e50,void 0x0),En):m(_0xdeb9c4,await _0x4361e9(_0x1f5bd5,_0x3a3e50,void 0x0),$n);}catch(_0x2287f3){if(!_0x2a7bbb(_0x2287f3))throw _0x2287f3;console[_0x13a045(0x351)](_0x2287f3['message']),process[_0x13a045(0x309)](0x1);}}async function Sn(_0x386fd4,_0x1dcbe7){const _0x2ad027=_0x3a4b26;let _0x4c873d;try{_0x4c873d=_0x386fd4&&_0x386fd4!=='-'?_0x28daf7[_0x2ad027(0x212)](_0x4ec28e[_0x2ad027(0x1b8)](_0x386fd4),'utf-8'):await H(_0x386fd4,process[_0x2ad027(0x2f3)]);}catch(_0x2d86d4){console[_0x2ad027(0x351)](_0x1dcbe7+_0x2ad027(0x192)+_0x2d86d4[_0x2ad027(0x22e)]+').'),process[_0x2ad027(0x309)](0x2);}return _0x4c873d||(console[_0x2ad027(0x351)](_0x1dcbe7+_0x2ad027(0x290)+_0x1dcbe7+_0x2ad027(0x283)),process[_0x2ad027(0x309)](0x2)),De(_0x4c873d,_0x1dcbe7,_0x2ad027(0x1c1));}function De(_0x2d53c2,_0x59e4cc,_0x246adb){const _0x4200fd=_0x3a4b26;let _0x3954f6;try{_0x3954f6=JSON[_0x4200fd(0x249)](_0x2d53c2);}catch(_0x19f948){console[_0x4200fd(0x351)](_0x59e4cc+':\x20'+_0x246adb+_0x4200fd(0x17f)+_0x19f948[_0x4200fd(0x22e)]+').'),process[_0x4200fd(0x309)](0x2);}return(typeof _0x3954f6!=_0x4200fd(0x18f)||_0x3954f6===null||Array['isArray'](_0x3954f6))&&(console['error'](_0x59e4cc+':\x20'+_0x246adb+_0x4200fd(0x2a3)),process['exit'](0x2)),_0x3954f6;}function Ne(_0x24b272,_0x2d4af6){const _0x21ebd0=_0x3a4b26;let _0x571ca3;try{_0x571ca3=_0x28daf7[_0x21ebd0(0x212)](_0x4ec28e[_0x21ebd0(0x1b8)](_0x24b272),_0x21ebd0(0x2f0));}catch(_0x3200f9){console[_0x21ebd0(0x351)](_0x2d4af6+_0x21ebd0(0x27c)+_0x3200f9[_0x21ebd0(0x22e)]+').'),process[_0x21ebd0(0x309)](0x2);}return De(_0x571ca3,_0x2d4af6,_0x21ebd0(0x159));}async function vn(_0x16a475){const _0x1af2c1=_0x3a4b26;_0x16a475[_0x1af2c1(0x1da)]===void 0x0&&(console[_0x1af2c1(0x351)](_0x1af2c1(0x35f)),process[_0x1af2c1(0x309)](0x2));let _0x1e0de7=Ne(_0x16a475['jsonSchemaPath'],_0x1af2c1(0x194)),_0x1c5a14=(await H(_0x16a475[_0x1af2c1(0x300)],process[_0x1af2c1(0x2f3)]))[_0x1af2c1(0x2b1)]();_0x1c5a14||(console[_0x1af2c1(0x351)](_0x1af2c1(0x23d)),process[_0x1af2c1(0x309)](0x2));let {client:_0x56411f}=await $(_0x16a475);try{let _0x2ba429=await _0x2f6e96(_0x56411f,{'prompt':_0x1c5a14,'jsonSchema':_0x1e0de7,'model':_0x16a475['model']||process.env.MODEL||_0x1d05e1,..._0x16a475[_0x1af2c1(0x326)]!==void 0x0&&{'sessionId':_0x16a475[_0x1af2c1(0x326)]}},void 0x0);m(_0x16a475,_0x2ba429,_0x81e6e7=>{const _0x44869d=_0x1af2c1;process['stdout'][_0x44869d(0x30a)](JSON[_0x44869d(0x21c)](_0x81e6e7[_0x44869d(0x2d8)],null,0x2)+'\x0a');});}catch(_0x235140){if(!_0x59fdf(_0x235140))throw _0x235140;console[_0x1af2c1(0x351)](_0x235140['message']),process['exit'](0x1);}}function Z(_0x10f700){const _0x3718e2=_0x3a4b26;process[_0x3718e2(0x19b)][_0x3718e2(0x30a)](_0x3718e2(0x1ca)+_0x10f700[_0x3718e2(0x153)]+'\x20('+_0x10f700['model_version']+_0x3718e2(0x2df)+_0x10f700[_0x3718e2(0x1f2)][_0x3718e2(0x363)]+_0x3718e2(0x2c8));}function An(_0x4af90e){const _0x12de74=_0x3a4b26;Z(_0x4af90e);for(let _0x35c14d of Object['keys'](_0x4af90e[_0x12de74(0x36a)])){let _0x522ca2=_0x4af90e['answers'][_0x35c14d],_0x557af6=_0x522ca2[_0x12de74(0x1a7)]===_0x12de74(0x1b7)?_0x12de74(0x1a0)+_0x522ca2[_0x12de74(0x1b7)][_0x12de74(0x312)](0x2):_0x522ca2['type']===_0x12de74(0x33e)?_0x12de74(0x17e)+_0x522ca2[_0x12de74(0x33e)]+_0x12de74(0x187)+_0x522ca2[_0x12de74(0x33d)][_0x12de74(0x312)](0x2)+')':_0x12de74(0x204)+_0x522ca2[_0x12de74(0x20c)][_0x12de74(0x312)](0x2)+_0x12de74(0x187)+_0x522ca2[_0x12de74(0x33d)]['toFixed'](0x2)+')';process[_0x12de74(0x19b)][_0x12de74(0x30a)]('\x20\x20'+_0x35c14d+':\x20'+_0x557af6+'\x0a');}}function En(_0xdb74e5){Z(_0xdb74e5),_0xdb74e5['results']['forEach']((_0x2e3168,_0x2e7877)=>{const _0x10b06a=_0x9e2b;process[_0x10b06a(0x19b)][_0x10b06a(0x30a)]('\x20\x20'+(_0x2e7877+0x1)+'.\x20'+_0x2e3168['id']+'\x20\x20'+_0x2e3168[_0x10b06a(0x20c)][_0x10b06a(0x312)](0x3)+_0x10b06a(0x24f)+_0x2e3168[_0x10b06a(0x2ad)]+')\x0a');});}function $n(_0x581e09){const _0x1a2715=_0x3a4b26;Z(_0x581e09),process[_0x1a2715(0x19b)]['write']('Rubric\x20'+_0x581e09[_0x1a2715(0x259)]+'\x0a');for(let _0x496ad9 of _0x581e09[_0x1a2715(0x201)])process[_0x1a2715(0x19b)][_0x1a2715(0x30a)]('\x20\x20'+_0x496ad9['id']+':\x20'+_0x496ad9[_0x1a2715(0x254)]+_0x1a2715(0x187)+_0x496ad9[_0x1a2715(0x33d)][_0x1a2715(0x312)](0x2)+')\x0a');}async function xn(_0x5e860d){const _0x2ddc2e=_0x3a4b26;let _0x34b24b=_0x5e860d['prompt'][_0x2ddc2e(0x2b1)]();_0x34b24b||(console['error'](_0x2ddc2e(0x246)),process['exit'](0x2));let {client:_0x3d26ba}=await $(_0x5e860d);try{let _0x56afe5=_0x34b24b==='-'?{'data':await In(process[_0x2ddc2e(0x2f3)])}:_0x34b24b;m(_0x5e860d,await _0x51c673(_0x3d26ba,_0x56afe5,void 0x0),_0x9ff112=>{const _0x408cfd=_0x2ddc2e;process[_0x408cfd(0x19b)][_0x408cfd(0x30a)](_0x9ff112[_0x408cfd(0x331)]+'\x0a');});}catch(_0x4edbc9){if(_0x2efef6(_0x4edbc9)&&(console[_0x2ddc2e(0x351)](_0x4edbc9[_0x2ddc2e(0x22e)]),process[_0x2ddc2e(0x309)](_0x4edbc9[_0x2ddc2e(0x1b6)]===void 0x0?0x2:0x1)),typeof _0x4edbc9?.[_0x2ddc2e(0x195)]!='string')throw _0x4edbc9;console['error'](_0x2ddc2e(0x34a)+_0x34b24b+'\x20('+_0x4edbc9[_0x2ddc2e(0x22e)]+').'),process[_0x2ddc2e(0x309)](0x2);}}async function In(_0x28f671){const _0x4fd353=_0x3a4b26;let _0x4d827e=[];for await(let _0x131d5d of _0x28f671)_0x4d827e[_0x4fd353(0x2b3)](Buffer[_0x4fd353(0x32e)](_0x131d5d));return Buffer['concat'](_0x4d827e);}var he=[_0x3a4b26(0x360),'pending',_0x3a4b26(0x2a8),_0x3a4b26(0x1fc),_0x3a4b26(0x292),_0x3a4b26(0x194),_0x3a4b26(0x2bd),_0x3a4b26(0x35d),_0x3a4b26(0x324),_0x3a4b26(0x352)],ye={'list':_0x3a4b26(0x2cb),'pending':'delegations\x20pending\x20<session-id>','show':'delegations\x20show\x20<delegation-id|delegate://delegation/β¦>','create':_0x3a4b26(0x2e1),'claim':_0x3a4b26(0x1ed),'complete':'delegations\x20complete\x20<delegation-id>\x20\x22<answer>\x22|-','accept':_0x3a4b26(0x27a),'dismiss':_0x3a4b26(0x14b),'cancel':_0x3a4b26(0x255),'delete':_0x3a4b26(0x2cd)};async function Tn(_0x259daf){const _0x5cc220=_0x3a4b26;let [_0x4a5b95='',_0x359f8a='',..._0x488137]=_0x259daf[_0x5cc220(0x2b6)];he['includes'](_0x4a5b95)||(console[_0x5cc220(0x351)]((_0x4a5b95?'Unknown\x20delegations\x20action:\x20'+_0x4a5b95+'.\x20':'')+_0x5cc220(0x1d7)+he[_0x5cc220(0x167)](_0x5cc220(0x2ba))+'.'),process[_0x5cc220(0x309)](0x2));let _0x3b844a=_0x4a5b95;_0x3b844a!==_0x5cc220(0x1fc)&&(_0x259daf[_0x5cc220(0x301)]!==void 0x0||_0x259daf['contextSummary']!==void 0x0||_0x259daf[_0x5cc220(0x326)]!==void 0x0)&&(console[_0x5cc220(0x351)]('--to,\x20--summary\x20and\x20--session\x20apply\x20to\x20`delegate-cli\x20delegations\x20create`\x20only.'),process['exit'](0x2));let _0x582bcf=(_0x3b844a===_0x5cc220(0x1fc)?_0x259daf[_0x5cc220(0x2b6)]['slice'](0x1):_0x488137)[_0x5cc220(0x167)]('\x20')[_0x5cc220(0x2b1)](),_0x36cfb3=_0x3b844a===_0x5cc220(0x1fc)||_0x3b844a===_0x5cc220(0x194);(_0x3b844a!=='create'&&!_0x359f8a||(_0x36cfb3?!_0x582bcf:_0x582bcf)||_0x3b844a===_0x5cc220(0x1fc)&&!_0x259daf[_0x5cc220(0x326)])&&(console[_0x5cc220(0x351)](_0x5cc220(0x332)+ye[_0x3b844a]),process[_0x5cc220(0x309)](0x2));let _0x5bd313=_0x36cfb3&&_0x582bcf==='-'?(await H('-',process[_0x5cc220(0x2f3)]))[_0x5cc220(0x2b1)]():_0x582bcf;_0x36cfb3&&!_0x5bd313&&(console[_0x5cc220(0x351)](_0x5cc220(0x332)+ye[_0x3b844a]+_0x5cc220(0x289)),process[_0x5cc220(0x309)](0x2));let {client:_0xff2532}=await $(_0x259daf);try{await Un(_0x259daf,_0xff2532,_0x3b844a,_0x359f8a,_0x5bd313);}catch(_0x4db716){if(!_0xe2f4f1(_0x4db716))throw _0x4db716;console[_0x5cc220(0x351)](_0x4db716[_0x5cc220(0x22e)]),process[_0x5cc220(0x309)](0x1);}}async function Un(_0x4f4092,_0x304035,_0x77e913,_0x350aef,_0x6065d4){const _0x323600=_0x3a4b26;switch(_0x77e913){case _0x323600(0x360):m(_0x4f4092,await _0x336b67(_0x304035,_0x350aef),Dn);return;case _0x323600(0x2a5):m(_0x4f4092,await _0x1f9306(_0x304035,_0x350aef),_0x1b2582=>{const _0x3f8e4d=_0x323600;_0x1b2582[_0x3f8e4d(0x1dc)]&&process['stdout'][_0x3f8e4d(0x30a)](_0x3f8e4d(0x2a4)+_0x1b2582[_0x3f8e4d(0x1dc)]['id']+'\x20('+_0x1b2582['delegation'][_0x3f8e4d(0x1b6)]+_0x3f8e4d(0x2eb)),_0x1b2582[_0x3f8e4d(0x1ee)][_0x3f8e4d(0x362)]===0x0&&process['stderr'][_0x3f8e4d(0x30a)](_0x3f8e4d(0x21e));for(let _0x67580f of _0x1b2582[_0x3f8e4d(0x1ee)])process[_0x3f8e4d(0x19b)][_0x3f8e4d(0x30a)]('\x0a'+_0x67580f['id']+'\x20\x20from\x20'+(_0x67580f[_0x3f8e4d(0x237)]??_0x3f8e4d(0x1b4))+'\x20\x20'+(_0x67580f[_0x3f8e4d(0x32a)]??'')+'\x0a'+(_0x67580f[_0x3f8e4d(0x35c)]?.['content']??'')+'\x0a');_0x1b2582['pendingResults']['length']>0x0&&process['stderr'][_0x3f8e4d(0x30a)](_0x3f8e4d(0x2b9));});return;case _0x323600(0x2a8):m(_0x4f4092,await _0x5a2254(_0x304035,_0x350aef),we);return;case _0x323600(0x1fc):{let _0x3152d1=await _0x2bcd8e(_0x304035,{'sessionId':_0x4f4092[_0x323600(0x326)],'task':_0x6065d4,..._0x4f4092[_0x323600(0x2de)]!==void 0x0&&{'contextSummary':_0x4f4092[_0x323600(0x2de)]},..._0x4f4092['delegateTo']!==void 0x0&&{'recipient':_0x4f4092['delegateTo']}});m(_0x4f4092,_0x3152d1,_0x831a42=>{const _0x149ad2=_0x323600;_0x831a42[_0x149ad2(0x152)]?process[_0x149ad2(0x19b)][_0x149ad2(0x30a)]('Delegated\x20'+_0x831a42[_0x149ad2(0x166)]+_0x149ad2(0x240)+_0x831a42[_0x149ad2(0x152)][_0x149ad2(0x151)]+'\x20<'+_0x831a42[_0x149ad2(0x152)][_0x149ad2(0x236)]+_0x149ad2(0x342)):process[_0x149ad2(0x19b)][_0x149ad2(0x30a)](_0x149ad2(0x185)+_0x831a42['delegationId']+_0x149ad2(0x208)+_0x831a42[_0x149ad2(0x2fc)]+'\x0a');});return;}case _0x323600(0x292):{let _0x393213=await _0x1c0edd(_0x304035,_0x350aef);m(_0x4f4092,_0x393213,_0x24feb5=>{const _0x522a8a=_0x323600;we(_0x24feb5),process[_0x522a8a(0x19b)]['write'](_0x522a8a(0x1cd)+_0x24feb5[_0x522a8a(0x326)]+'\x0a'),process[_0x522a8a(0x2c1)][_0x522a8a(0x30a)](_0x522a8a(0x35a)+_0x24feb5[_0x522a8a(0x326)]+_0x522a8a(0x214)+_0x24feb5[_0x522a8a(0x166)]+_0x522a8a(0x1bc));});return;}case _0x323600(0x194):{let {alreadyCompleted:_0xedc4f3}=await _0x4774ad(_0x304035,_0x350aef,{'content':_0x6065d4});m(_0x4f4092,{'delegationId':_0x350aef,'alreadyCompleted':_0xedc4f3},_0x40bb1d=>{const _0x1d6f20=_0x323600;process[_0x1d6f20(0x19b)][_0x1d6f20(0x30a)]((_0x40bb1d['alreadyCompleted']?'Already\x20answered':_0x1d6f20(0x173))+'\x20delegation\x20'+_0x40bb1d['delegationId']+'.\x0a');});return;}case'accept':{let _0x14a38d=await _0x269871(_0x304035,_0x350aef);m(_0x4f4092,{'delegationId':_0x350aef,..._0x14a38d},_0x2b47da=>{const _0xd02ed2=_0x323600;process[_0xd02ed2(0x19b)][_0xd02ed2(0x30a)]((_0x2b47da[_0xd02ed2(0x2e9)]?_0xd02ed2(0x355):_0xd02ed2(0x1ce))+_0xd02ed2(0x2ea)+_0x2b47da[_0xd02ed2(0x166)]+'.\x0a');});return;}default:{let _0x22756d={'dismiss':_0xd70e60,'cancel':_0x54be72,'delete':_0x34dfa8}[_0x77e913];await _0x22756d(_0x304035,_0x350aef);let _0x2d0a95={'dismiss':'dismissed','cancel':_0x323600(0x174),'delete':_0x323600(0x2c0)}[_0x77e913];m(_0x4f4092,{'delegationId':_0x350aef,[_0x2d0a95]:!0x0},()=>{const _0x5863b0=_0x323600;process['stdout'][_0x5863b0(0x30a)](''+_0x2d0a95[0x0][_0x5863b0(0x15d)]()+_0x2d0a95[_0x5863b0(0x177)](0x1)+_0x5863b0(0x2ea)+_0x350aef+'.\x0a');});}}}function Dn(_0xa17d6e){const _0x35416d=_0x3a4b26;if(_0xa17d6e['length']===0x0){process[_0x35416d(0x2c1)]['write']('No\x20delegations.\x0a');return;}process[_0x35416d(0x19b)][_0x35416d(0x30a)]('ID'[_0x35416d(0x233)](0x24)+'\x20\x20'+_0x35416d(0x33b)[_0x35416d(0x233)](0x9)+'\x20\x20'+_0x35416d(0x15a)['padEnd'](0x18)+_0x35416d(0x2fa));for(let _0x3e6bec of _0xa17d6e)process[_0x35416d(0x19b)][_0x35416d(0x30a)](_0x3e6bec['id']['padEnd'](0x24)+'\x20\x20'+_0x3e6bec[_0x35416d(0x1b6)]['padEnd'](0x9)+'\x20\x20'+(_0x3e6bec['assignedUserEmail']??'-')[_0x35416d(0x233)](0x18)+'\x20\x20'+(_0x3e6bec[_0x35416d(0x32a)]??'')+'\x0a');}function we(_0x290c81){const _0x5132a8=_0x3a4b26;process[_0x5132a8(0x19b)][_0x5132a8(0x30a)]('From\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x290c81[_0x5132a8(0x24c)]??'-')+'\x0a'),_0x290c81[_0x5132a8(0x343)]&&process['stdout'][_0x5132a8(0x30a)]('Session\x20\x20\x20\x20\x20\x20\x20'+_0x290c81[_0x5132a8(0x343)]+'\x0a'),process[_0x5132a8(0x19b)]['write'](_0x5132a8(0x20a)+(_0x290c81['task']??'-')+'\x0a'),_0x290c81[_0x5132a8(0x2de)]&&process['stdout']['write']('\x0a'+_0x290c81[_0x5132a8(0x2de)]+'\x0a\x0a');}async function Nn(_0x1a0ff6){const _0x50e4a1=_0x3a4b26;_0x1a0ff6[_0x50e4a1(0x300)][_0x50e4a1(0x2b1)]()||(console[_0x50e4a1(0x351)](_0x50e4a1(0x215)),process['exit'](0x2));let {client:_0x97a5a5}=await $(_0x1a0ff6),_0x4179f9;try{_0x4179f9=await _0x430b79(_0x97a5a5,_0x1a0ff6['prompt']);}catch(_0x112caf){if(!_0xe2f4f1(_0x112caf))throw _0x112caf;console[_0x50e4a1(0x351)](_0x112caf[_0x50e4a1(0x22e)]),process[_0x50e4a1(0x309)](0x1);}m(_0x1a0ff6,_0x4179f9,_0x2cbf8e=>{const _0x41749f=_0x50e4a1;_0x2cbf8e['length']===0x0&&process[_0x41749f(0x2c1)][_0x41749f(0x30a)](_0x41749f(0x32b)+_0x1a0ff6[_0x41749f(0x300)]['trim']()+_0x41749f(0x27f));for(let _0x4516ab of _0x2cbf8e)process['stdout'][_0x41749f(0x30a)](_0x4516ab[_0x41749f(0x236)][_0x41749f(0x233)](0x20)+'\x20\x20'+_0x4516ab[_0x41749f(0x151)]+'\x0a');});}async function _n(_0x155216){const _0x1eae2c=_0x3a4b26;_0x155216[_0x1eae2c(0x1a1)]===_0x1eae2c(0x1d2)&&(console[_0x1eae2c(0x351)](_0x1eae2c(0x1a5)),process['exit'](0x2));let _0x483f30=G(_0x324a52()),_0x2baa4d=_0x155216[_0x1eae2c(0x223)];if(_0x155216[_0x1eae2c(0x1a1)]){let _0x455982=_0x155216[_0x1eae2c(0x1a1)];await _0x2f3f40({'env':_0x455982,'tenant':_0x155216[_0x1eae2c(0x321)]??Q(_0x483f30,_0x58b47b[_0x455982]),'skipEnvCheck':_0x2baa4d});return;}let _0x36289f=_0x155216[_0x1eae2c(0x251)]??Ue();if(_0x36289f){await _0x2f3f40({'baseUrl':_0x36289f,'tenant':_0x155216['tenant']??Q(_0x483f30,_0x36289f),'skipEnvCheck':_0x2baa4d});return;}if(_0x483f30?.[_0x1eae2c(0x163)]){await _0x2f3f40({'baseUrl':_0x483f30['baseUrl'],'tenant':_0x155216['tenant']??_0x483f30[_0x1eae2c(0x277)],'skipEnvCheck':_0x2baa4d});return;}console['error'](_0x1eae2c(0x2fd)),process['exit'](0x2);}function Q(_0x5ced90,_0x5bf758){const _0xb01e86=_0x3a4b26;return _0x5ced90?.['baseUrl']&&Rn(_0x5ced90[_0xb01e86(0x163)],_0x5bf758)?_0x5ced90[_0xb01e86(0x277)]:void 0x0;}function Rn(_0x325abc,_0x5d2524){const _0x55e8dd=_0x3a4b26;try{return new URL(_0x325abc)[_0x55e8dd(0x24e)]===new URL(_0x5d2524)[_0x55e8dd(0x24e)];}catch{return!0x1;}}async function Pn(_0x38058f){const _0x1bdd9e=_0x3a4b26;Y()&&(console['error'](_0x1bdd9e(0x196)),process[_0x1bdd9e(0x309)](0x2));let _0x458b61=await _0x43bd84();if(_0x458b61||(console['error'](Cn()),process[_0x1bdd9e(0x309)](0x2)),_0x38058f[_0x1bdd9e(0x2b1)]()){let _0x580c24=await _0x282363(_0x458b61,_0x38058f);_0x3336ea(_0x580c24)||(console[_0x1bdd9e(0x351)]('Tenant\x20not\x20switched:\x20could\x20not\x20write\x20'+_0x324a52()+';\x20the\x20saved\x20login\x20still\x20uses\x20'+_0x458b61['tenantName']+'.'),process[_0x1bdd9e(0x309)](0x1)),console[_0x1bdd9e(0x286)](_0x1bdd9e(0x299)+_0x580c24[_0x1bdd9e(0x277)]+'\x20('+_0x580c24[_0x1bdd9e(0x32d)]+_0x1bdd9e(0x198)+_0x324a52());return;}On(await _0x140694(_0x458b61),_0x458b61);}function Cn(){const _0x536136=_0x3a4b26;if(_0x28daf7['existsSync'](_0x324a52()))return _0x536136(0x19e);let _0x28cadd=z();return G(_0x28cadd)?_0x536136(0x2f9)+_0x28cadd+_0x536136(0x1c8):_0x536136(0x206);}function On(_0xe80620,_0x2bcdfc){const _0x42963e=_0x3a4b26;let _0x951803=_0xe80620[_0x42963e(0x268)](_0x1e41e4=>_0x1e41e4['id']===_0x2bcdfc['tenantId']?'*\x20'+_0x1e41e4['name']+_0x42963e(0x256):'\x20\x20'+_0x1e41e4[_0x42963e(0x1e3)]);process[_0x42963e(0x19b)][_0x42963e(0x30a)]('Tenants\x20of\x20'+(_0x2bcdfc[_0x42963e(0x29f)]??_0x2bcdfc['organizationId'])+':\x0a'+_0x951803[_0x42963e(0x167)]('\x0a')+'\x0a'),_0xe80620[_0x42963e(0x362)]>0x1&&process[_0x42963e(0x19b)][_0x42963e(0x30a)]('Switch\x20with:\x20delegate-cli\x20tenant\x20<name>\x0a');}function Ln(_0x24dde1){const _0x41c579=_0x3a4b26;return _0x24dde1?.['response']?.['status']===0x191||/401/[_0x41c579(0x181)](String(_0x24dde1?.[_0x41c579(0x22e)]??''));}var w={'lastType':null,'quiet':!0x1},_e=_0x7255ce=>{const _0x3d3c33=_0x3a4b26;switch(_0x7255ce[_0x3d3c33(0x1a7)]){case _0x3d3c33(0x1f7):_0x7255ce['sessionId']&&_0x7255ce[_0x3d3c33(0x326)]!==w[_0x3d3c33(0x326)]&&(process['stderr'][_0x3d3c33(0x30a)]('Session:\x20'+_0x7255ce['sessionId']+_0x3d3c33(0x19c)+_0x7255ce['sessionId']+')\x0a'),w[_0x3d3c33(0x326)]=_0x7255ce[_0x3d3c33(0x326)]);break;case _0x3d3c33(0x168):_0x7255ce[_0x3d3c33(0x23c)]&&_0x7255ce['turnId']!==w[_0x3d3c33(0x23c)]&&(w[_0x3d3c33(0x161)]!==null&&process['stderr'][_0x3d3c33(0x30a)]('\x0a'),process[_0x3d3c33(0x2c1)][_0x3d3c33(0x30a)](_0x3d3c33(0x288)+_0x7255ce[_0x3d3c33(0x23c)]+_0x3d3c33(0x22d)+_0x7255ce[_0x3d3c33(0x326)]+_0x3d3c33(0x1bd)+_0x7255ce['turnId']+')\x0a'),w[_0x3d3c33(0x23c)]=_0x7255ce[_0x3d3c33(0x23c)],w['lastType']=_0x3d3c33(0x168));break;case _0x3d3c33(0x1ff):_0x7255ce[_0x3d3c33(0x1c7)]&&!w['quiet']&&(w[_0x3d3c33(0x161)]!==_0x3d3c33(0x1ff)&&process[_0x3d3c33(0x2c1)][_0x3d3c33(0x30a)](_0x3d3c33(0x17d)),process[_0x3d3c33(0x2c1)][_0x3d3c33(0x30a)](_0x7255ce[_0x3d3c33(0x1c7)]),w[_0x3d3c33(0x161)]=_0x3d3c33(0x1ff));break;case _0x3d3c33(0x2e5):w[_0x3d3c33(0x161)]!==null&&process['stderr'][_0x3d3c33(0x30a)]('\x0a'),process[_0x3d3c33(0x2c1)][_0x3d3c33(0x30a)](_0x3d3c33(0x29d)+(_0x7255ce['toolName']??_0x3d3c33(0x24d))+'\x0a'),w['lastType']=_0x3d3c33(0x2e5);break;case _0x3d3c33(0x22e):_0x7255ce[_0x3d3c33(0x1c7)]&&(w['lastType']!==_0x3d3c33(0x22e)&&w[_0x3d3c33(0x161)]!==null&&process['stdout'][_0x3d3c33(0x30a)]('\x0a'),process[_0x3d3c33(0x19b)][_0x3d3c33(0x30a)](_0x7255ce['content']),w[_0x3d3c33(0x161)]=_0x3d3c33(0x22e));break;case _0x3d3c33(0x351):w[_0x3d3c33(0x161)]!==null&&process[_0x3d3c33(0x2c1)][_0x3d3c33(0x30a)]('\x0a'),process[_0x3d3c33(0x2c1)]['write']('β\x20'+(_0x7255ce[_0x3d3c33(0x351)]??_0x3d3c33(0x351))+'\x0a'),w[_0x3d3c33(0x161)]=_0x3d3c33(0x351);break;case _0x3d3c33(0x271):(w['lastType']===_0x3d3c33(0x22e)||w[_0x3d3c33(0x161)]===_0x3d3c33(0x1ff))&&process[_0x3d3c33(0x19b)][_0x3d3c33(0x30a)]('\x0a'),process[_0x3d3c33(0x2c1)][_0x3d3c33(0x30a)](_0x3d3c33(0x340)),w[_0x3d3c33(0x161)]='done';break;}};function ke(_0x3b07b6,_0x212083,_0x3f01e7,_0x714770){const _0x18c198=_0x3a4b26;let _0x5271c6=_0x3b07b6[_0x18c198(0x153)]||process.env.MODEL;return{'backendUrl':_0x3f01e7,'auth':_0x212083,'enableComputerUse':!_0x3b07b6['headless']&&!_0x3b07b6['noComputerUse'],'autoSpawnInterop':!_0x3b07b6[_0x18c198(0x2dc)],'enableConnections':!_0x3b07b6['noConnections'],'enableSecurity':!_0x3b07b6[_0x18c198(0x2e7)],'keepInteropAlive':_0x3b07b6[_0x18c198(0x287)],..._0x714770['oneTurn']?{'enableBackgroundCommands':!0x1}:{},..._0x3b07b6['noMemory']?{'enableMemory':!0x1}:{},..._0x3b07b6[_0x18c198(0x280)]?{'enableTaskAutomation':!0x0}:{},..._0x3b07b6[_0x18c198(0x306)][_0x18c198(0x362)]>0x0?{'preloadSkills':_0x3b07b6[_0x18c198(0x306)]}:{},..._0x5271c6?{'model':_0x5271c6}:{},..._0x3b07b6[_0x18c198(0x14a)]?{'projectId':_0x3b07b6[_0x18c198(0x14a)]}:{},..._0x3b07b6['vertical']?{'vertical':_0x3b07b6['vertical']}:{},..._0x3b07b6['workingDirectory']?{'workingDirectory':_0x3b07b6[_0x18c198(0x2a7)]}:{},..._0x3b07b6[_0x18c198(0x170)]?{'bundledSkillsPath':_0x3b07b6[_0x18c198(0x170)]}:{},..._0x3b07b6[_0x18c198(0x184)]?{'effort':_0x3b07b6[_0x18c198(0x184)]}:{},..._0x3b07b6[_0x18c198(0x326)]?{'sessionId':_0x3b07b6[_0x18c198(0x326)]}:{},..._0x3b07b6['verbose']?{'verbose':!0x0}:{}};}async function Fn(_0x2ae605){const _0x5e43fd=_0x3a4b26;let _0x1c2b7a=_0x2ae605[_0x5e43fd(0x2f5)]!==_0x5e43fd(0x331),_0x22a150=_0x2ae605[_0x5e43fd(0x1da)]===void 0x0?null:Ne(_0x2ae605[_0x5e43fd(0x1da)],_0x5e43fd(0x278)),_0xa1d65=!_0x1c2b7a&&!_0x22a150&&!_0x2ae605[_0x5e43fd(0x26e)]&&_0x2ae605[_0x5e43fd(0x300)]!=='-'&&!!process[_0x5e43fd(0x2f3)][_0x5e43fd(0x335)]&&!!process['stdout'][_0x5e43fd(0x335)],_0x49c46a=_0x2ae605[_0x5e43fd(0x308)]==='stream-json'?re(process[_0x5e43fd(0x2f3)],_0x1b368e=>{const _0x51ba5b=_0x5e43fd;process['stderr'][_0x51ba5b(0x30a)](_0x1b368e[_0x51ba5b(0x22e)]+_0x51ba5b(0x18a));}):null,_0x5d9c96=_0x49c46a?(await _0x49c46a[_0x5e43fd(0x1ba)]())[_0x5e43fd(0x1f8)]:void 0x0,_0x21bd13=_0x49c46a?_0x5d9c96?.[_0x5e43fd(0x331)]??'':_0xa1d65?_0x2ae605['prompt']['trim']():await H(_0x2ae605[_0x5e43fd(0x300)],process[_0x5e43fd(0x2f3)]);if(!_0xa1d65&&!_0x21bd13&&(console[_0x5e43fd(0x351)](_0x5e43fd(0x2c6)),process[_0x5e43fd(0x309)](0x2)),!_0x1c2b7a){await be(_0x2ae605,_0x21bd13,_0xa1d65,null,_0x22a150,null);return;}let _0x3fe6a9=!0x1,_0x388ad9=_0x11d148=>{const _0xa0d271=_0x5e43fd;_0x3fe6a9=!0x0,O(_0x5acac5(_0x11d148)),(_0x11d148[_0xa0d271(0x25d)]||_0x11d148[_0xa0d271(0x16f)])&&(process[_0xa0d271(0x225)]=0x1);},_0x8e0688=Date['now']();try{await be(_0x2ae605,_0x21bd13,!0x1,_0x388ad9,_0x22a150,_0x49c46a?{'messages':_0x49c46a,'first':_0x5d9c96,'close':()=>{const _0x4a7b83=_0x5e43fd;process[_0x4a7b83(0x2f3)]['pause']();}}:null);}catch(_0x4aabe7){if(_0x3fe6a9)throw _0x4aabe7;process[_0x5e43fd(0x2c1)][_0x5e43fd(0x30a)]((_0x4aabe7 instanceof Error?_0x4aabe7[_0x5e43fd(0x171)]??_0x4aabe7['message']:String(_0x4aabe7))+'\x0a'),_0x388ad9(new _0x526ad6(_0x8e0688)[_0x5e43fd(0x318)]({'endedAtMs':Date['now'](),'usage':[],'error':_0x4aabe7}));}finally{_0x49c46a&&(process[_0x5e43fd(0x2f3)][_0x5e43fd(0x24a)](),_0x49c46a[_0x5e43fd(0x2a2)](void 0x0));}}async function be(_0x3f1a55,_0x3457fa,_0xb5bc4f,_0x38f410,_0x822c54,_0x841182){const _0x28e5f8=_0x3a4b26;w={'lastType':null,'quiet':_0x3f1a55[_0x28e5f8(0x25b)]};let _0x10ddc4=new Set(),_0x203249,_0x10c8e5=_0x4ab61d=>{const _0x2e8831=_0x28e5f8;(!_0x38f410||_0x4ab61d[_0x2e8831(0x1a7)]===_0x2e8831(0x1f7)||_0x4ab61d['type']===_0x2e8831(0x168))&&(_0x203249??_e)(_0x4ab61d);for(let _0x4e5392 of _0x10ddc4)_0x4e5392(_0x4ab61d);},_0x27925a=await V(),_0x52b1b5=new _0x1427ba();_0x52b1b5[_0x28e5f8(0x28c)](_0x10c8e5);let _0x192fc8=_0x3a304c(_0x3f1a55[_0x28e5f8(0x1a1)],_0x27925a,_0x3f1a55[_0x28e5f8(0x294)]);X(_0x3f1a55[_0x28e5f8(0x1a1)],_0x3f1a55['backendUrl'],_0x192fc8);let _0x229af6={'input':null},_0x487b48=_0xb5bc4f?ne(()=>_0x229af6[_0x28e5f8(0x2ec)],_0x2e5f75=>{const _0xbcdc3e=_0x28e5f8;process[_0xbcdc3e(0x2c1)][_0xbcdc3e(0x30a)](_0x2e5f75);}):null,_0x4e20a3=_0x4a03fd=>_0x487b48?{..._0x4a03fd,'askUser':_0x487b48}:_0x4a03fd,_0x57ba11=_0x4e20a3(ke(_0x3f1a55,_0x27925a,_0x192fc8,{'oneTurn':!_0xb5bc4f})),_0x274683=!0x1,_0x2a6abc=!0x1,_0x43b8b3,_0x5619c8=()=>_0x43b8b3??=_0x52b1b5['destroy'](),_0x89a51=()=>{const _0x12ae8c=_0x28e5f8;_0x2a6abc&&process[_0x12ae8c(0x309)](0x82),_0x2a6abc=!0x0,process[_0x12ae8c(0x2c1)][_0x12ae8c(0x30a)](_0x12ae8c(0x338)),_0x274683&&_0x52b1b5[_0x12ae8c(0x324)]()['catch'](_0x9deb81=>console[_0x12ae8c(0x351)](_0x9deb81))[_0x12ae8c(0x2fe)](_0x5619c8)[_0x12ae8c(0x2fe)](()=>process[_0x12ae8c(0x309)](0x82),_0x225b39=>{const _0x193522=_0x12ae8c;console['error'](_0x225b39),process[_0x193522(0x309)](0x82);});};process['on'](_0x28e5f8(0x14e),_0x89a51);let _0xf166e5=_0x3f1a55['attachments'],_0x5d9dd3=async _0x9c0f13=>{const _0x1c2027=_0x28e5f8;let _0x5cc989=_0xf166e5;_0xf166e5=[];let _0x23eaa6=()=>_0x52b1b5[_0x1c2027(0x2c2)](_0x9c0f13,{'attachments':_0x5cc989});try{return await _0x23eaa6();}catch(_0x18e098){if(_0x2a6abc||!Ln(_0x18e098)||!process[_0x1c2027(0x2f3)][_0x1c2027(0x335)]||_0x3f1a55['env']===_0x1c2027(0x1d2)||!(_0x3f1a55[_0x1c2027(0x1a1)]||_0x27925a[_0x1c2027(0x163)]))throw _0x18e098;process[_0x1c2027(0x2c1)]['write']('\x0aβ οΈ\x20\x20Auth\x20expired.\x20Opening\x20browser\x20to\x20re-loginβ¦\x0a');let _0x5ccf09=_0x52b1b5[_0x1c2027(0x274)]()??_0x3f1a55[_0x1c2027(0x326)],_0x1d048b=await _0x2f3f40(_0x3f1a55[_0x1c2027(0x1a1)]?{'env':_0x3f1a55['env'],'tenant':Q(_0x27925a,_0x58b47b[_0x3f1a55['env']]),'skipEnvCheck':!0x0}:{'baseUrl':_0x27925a[_0x1c2027(0x163)],'tenant':_0x27925a[_0x1c2027(0x277)],'skipEnvCheck':!0x0}),_0x4e158d={'text':'','failed':!0x1,'sessionId':_0x5ccf09};return _0x2a6abc||(_0x274683=!0x1,await _0x5619c8(),_0x2a6abc)?_0x4e158d:(_0x52b1b5=new _0x1427ba(),_0x43b8b3=void 0x0,_0x52b1b5[_0x1c2027(0x28c)](_0x10c8e5),_0x27925a=_0x1d048b,await _0x52b1b5[_0x1c2027(0x337)]({..._0x4e20a3(ke(_0x3f1a55,_0x27925a,_0x192fc8,{'oneTurn':!_0xb5bc4f})),..._0x5ccf09?{'sessionId':_0x5ccf09}:{}}),_0x274683=!0x0,_0x2a6abc?_0x4e158d:_0x23eaa6());}};try{if(await _0x52b1b5[_0x28e5f8(0x337)](_0x57ba11),_0x274683=!0x0,_0x2a6abc)return;if(_0xb5bc4f)await Bn({'prompt':_0x3457fa,'sendMessage':_0x5d9dd3,'onSigint':_0x89a51,'setAnswerInput':_0x4ea2c0=>{const _0x324595=_0x28e5f8;_0x229af6[_0x324595(0x2ec)]=_0x4ea2c0;},'registerEventPrinter':_0x17cf7e=>(_0x203249=_0x17cf7e,()=>{_0x203249=void 0x0;})});else{if(_0x38f410||_0x822c54){let _0x4828ee=_0x3f1a55[_0x28e5f8(0x2f5)]===_0x28e5f8(0x2f1)?_0x1bf6ad=>O(_0x5a2300(_0x1bf6ad)):()=>{},_0x5f4b1b=_0x841182?ie({'input':_0x841182,'getAgent':()=>_0x52b1b5,'replay':_0x3f1a55[_0x28e5f8(0x26a)],'onEvent':_0x4cd843=>(_0x10ddc4[_0x28e5f8(0x25f)](_0x4cd843),()=>{const _0x481d8d=_0x28e5f8;_0x10ddc4[_0x481d8d(0x352)](_0x4cd843);}),'write':O,'isRunStopNotice':_0x2a18c3,'actionableErrorText':_0x152ec5,'warn':_0x2f4448=>{const _0x356a0a=_0x28e5f8;process['stderr'][_0x356a0a(0x30a)](_0x2f4448);}}):null,_0x5a4925=await _0x3b1601({'onEvent':_0x45eda5=>(_0x10ddc4[_0x28e5f8(0x25f)](_0x45eda5),()=>{const _0x1caa14=_0x28e5f8;_0x10ddc4[_0x1caa14(0x352)](_0x45eda5);}),'sendMessage':async _0x26c1f0=>{const _0x2e3e9c=_0x28e5f8;try{let _0x82907b=await _0x5d9dd3(_0x26c1f0);return _0x5f4b1b?await _0x5f4b1b[_0x2e3e9c(0x296)](_0x82907b):_0x82907b;}finally{_0x5f4b1b?.[_0x2e3e9c(0x189)]();}},'getSessionId':()=>_0x52b1b5[_0x28e5f8(0x274)](),'getTurnUsageHistory':_0x5d7ee5=>_0x52b1b5['getTurnUsageHistory'](_0x5d7ee5),'complete':_0x2388a0=>_0x52b1b5[_0x28e5f8(0x194)](_0x2388a0)},_0x3457fa,void 0x0,_0x4828ee,_0x822c54?{'outputSchema':_0x822c54}:void 0x0);_0x38f410?_0x38f410(_0x5a4925):Mn(_0x5a4925);}else await _0x5d9dd3(_0x3457fa);}}catch(_0x31138d){if(!_0x2a6abc)throw _0x31138d;}finally{try{await _0x5619c8();}finally{process[_0x28e5f8(0x314)](_0x28e5f8(0x14e),_0x89a51),_0x2a6abc&&(process[_0x28e5f8(0x225)]=0x82);}}}function Mn(_0x11d12e){const _0x3a2e0e=_0x3a4b26;_0x11d12e['structuredError']?(console[_0x3a2e0e(0x351)](_0x3a2e0e(0x20b)+_0x11d12e[_0x3a2e0e(0x16f)][_0x3a2e0e(0x22e)]),process['exitCode']=0x1):_0x11d12e[_0x3a2e0e(0x25d)]?(console[_0x3a2e0e(0x351)](_0x3a2e0e(0x31d)+_0x11d12e[_0x3a2e0e(0x351)]+').'),process['exitCode']=0x1):process[_0x3a2e0e(0x19b)][_0x3a2e0e(0x30a)](JSON[_0x3a2e0e(0x21c)](_0x11d12e[_0x3a2e0e(0x2d8)],null,0x2)+'\x0a');}function jn(_0x10e1a2,_0xb3170){const _0x178b8b=_0x3a4b26;let _0x3d21ee=process[_0x178b8b(0x19b)]['write'][_0x178b8b(0x2d7)](process[_0x178b8b(0x19b)]),_0x2437d8=!0x1;return process['stdout'][_0x178b8b(0x30a)]=(..._0x5ac3be)=>{const _0x131960=_0x178b8b;if(!_0x2437d8)return _0x3d21ee(..._0x5ac3be);_0x269458(_0xb3170,0x0),_0x16679d(_0xb3170,0x0);let _0x3b78c7=_0x3d21ee(..._0x5ac3be);return _0x10e1a2[_0x131960(0x300)](!0x0),_0x3b78c7;},{'show':()=>{const _0x1980f2=_0x178b8b;_0x2437d8=!0x0,_0x10e1a2[_0x1980f2(0x300)]();},'hide':()=>{_0x2437d8=!0x1;},'erase':()=>{_0x2437d8&&(_0x269458(_0xb3170,0x0),_0x16679d(_0xb3170,0x0)),_0x2437d8=!0x1;},'restore':()=>{const _0x369340=_0x178b8b;_0x2437d8=!0x1,process['stdout'][_0x369340(0x30a)]=_0x3d21ee;}};}async function Bn({prompt:_0xd40e9f,sendMessage:_0x6bfe6e,onSigint:_0x4d6dd2,setAnswerInput:_0x23786c,registerEventPrinter:_0x19b5f0}){const _0x2a20ef=_0x3a4b26;let _0x260891=_0x1b8259({'input':process[_0x2a20ef(0x2f3)],'output':process[_0x2a20ef(0x2c1)],'terminal':!0x0,'prompt':'You>\x20'}),_0x4c8690=jn(_0x260891,process['stderr']),_0x5c4ba9=[],_0x5c25c5,_0x1013a8,_0x36588c,_0x510cdb=!0x1,_0x19c730=!0x1,_0x170636=!0x1,_0x1e1844=Promise[_0x2a20ef(0x1b8)](),_0xdba5d0,_0x322ac8=_0x19b5f0(_0x26cda2=>{const _0x23cd0f=_0x2a20ef;_0x26cda2[_0x23cd0f(0x1a7)]===_0x23cd0f(0x1f7)&&(_0x4c8690[_0x23cd0f(0x1e6)](),_0x1e1844=new Promise(_0x40fb92=>{_0xdba5d0=_0x40fb92;})),_e(_0x26cda2),_0x26cda2['type']===_0x23cd0f(0x271)&&(_0xdba5d0?.(),_0xdba5d0=void 0x0,!_0x170636&&!_0x510cdb&&_0x4c8690['show']());}),_0x3917a2=()=>{const _0x499d76=_0x2a20ef;_0x19c730=!0x0,_0xdba5d0?.(),_0x4d6dd2(),_0x260891[_0x499d76(0x16d)]();};_0x260891['on'](_0x2a20ef(0x2ab),_0x5b94f5=>{const _0xacc94=_0x2a20ef;_0x36588c?_0x36588c(_0x5b94f5):_0x5c25c5?_0x5c25c5[_0xacc94(0x2b3)](_0x5b94f5):_0x1013a8?_0x1013a8(_0x5b94f5):_0x5c4ba9[_0xacc94(0x2b3)](_0x5b94f5);}),_0x260891[_0x2a20ef(0x19a)](_0x2a20ef(0x16d),()=>{const _0x250c99=_0x2a20ef;_0x510cdb=!0x0,_0x4c8690[_0x250c99(0x353)](),_0x5c25c5&&!_0x19c730&&_0x3917a2(),_0x1013a8?.(null);});let _0x31092e=()=>_0x5c4ba9['length']>0x0?Promise[_0x2a20ef(0x1b8)](_0x5c4ba9['shift']()):_0x510cdb?Promise[_0x2a20ef(0x1b8)](null):new Promise(_0x5fd82f=>{_0x1013a8=_0x15c8db=>{_0x1013a8=void 0x0,_0x5fd82f(_0x15c8db);};});_0x23786c({'readLine':(_0x410bf2,_0x49b231)=>new Promise((_0x4d3c4c,_0x2a14a0)=>{const _0x307000=_0x2a20ef;if(_0x510cdb&&!_0x5c25c5){_0x4d3c4c(null);return;}_0x5c25c5??=[];let _0x5d281e=_0x5c25c5[_0x307000(0x262)]();if(_0x5d281e!==void 0x0){_0x4d3c4c(_0x5d281e);return;}let _0x4b858b=()=>{const _0x356533=_0x307000;_0x36588c=void 0x0,_0x49b231['removeEventListener'](_0x356533(0x2db),_0x2fdd28),_0x4c8690[_0x356533(0x353)](),_0x260891[_0x356533(0x30d)](_0x356533(0x1dd));},_0x2fdd28=()=>{_0x4b858b(),_0x2a14a0(new Error('The\x20turn\x20was\x20cancelled.'));};_0x49b231[_0x307000(0x265)](_0x307000(0x2db),_0x2fdd28,{'once':!0x0}),!_0x510cdb&&(_0x36588c=_0x1cc82b=>{_0x4b858b(),_0x4d3c4c(_0x1cc82b);},_0x260891['setPrompt'](_0x410bf2),_0x4c8690[_0x307000(0x2a8)]());}),'endQuestions':()=>{const _0x9cfb02=_0x2a20ef;_0x5c25c5&&_0x5c4ba9[_0x9cfb02(0x2b3)](..._0x5c25c5),_0x5c25c5=void 0x0;}}),_0x260891['on'](_0x2a20ef(0x14e),_0x3917a2),process[_0x2a20ef(0x2c1)][_0x2a20ef(0x30a)](_0x2a20ef(0x276));let _0x46c125=async _0x3cd8cf=>{_0x170636=!0x0;try{await _0x6bfe6e(_0x3cd8cf);}finally{_0x170636=!0x1;}};try{if(_0xd40e9f&&await _0x46c125(_0xd40e9f),_0x19c730)return;!_0x510cdb&&!_0xdba5d0&&_0x4c8690[_0x2a20ef(0x2a8)]();for(let _0x30b6a0=await _0x31092e();_0x30b6a0!==null&&(_0x4c8690[_0x2a20ef(0x353)](),!_0x19c730);_0x30b6a0=await _0x31092e()){let _0x46b41d=_0x30b6a0['trim']();if(_0x46b41d===_0x2a20ef(0x347))break;_0x46b41d&&await _0x46c125(_0x46b41d),!_0x510cdb&&!_0xdba5d0&&_0x4c8690[_0x2a20ef(0x2a8)]();}for(;!_0x19c730&&_0xdba5d0;)await _0x1e1844;}finally{_0x23786c(null),_0x322ac8(),_0x4c8690[_0x2a20ef(0x19f)](),_0x260891[_0x2a20ef(0x314)]('SIGINT',_0x3917a2),_0x260891[_0x2a20ef(0x16d)]();}}async function Jn(){const _0x46af35=_0x3a4b26;let _0x2f7fd0=Kt(process[_0x46af35(0x229)][_0x46af35(0x177)](0x2));if(_0x2f7fd0[_0x46af35(0x2f5)]==='text'){await Se(_0x2f7fd0);return;}let _0x18b2d0=Qt();try{await Se(_0x2f7fd0);}finally{_0x18b2d0();}}async function Se(_0x263a6f){const _0x329592=_0x3a4b26;if(_0x263a6f[_0x329592(0x2dd)]){qt();return;}if(_0x263a6f[_0x329592(0x248)]){console[_0x329592(0x286)](zt());return;}if(_0x263a6f['subcommand']===_0x329592(0x356)){await _n(_0x263a6f);return;}if(_0x263a6f[_0x329592(0x1db)]===_0x329592(0x321)){await Pn(_0x263a6f[_0x329592(0x300)]);return;}if(_0x263a6f[_0x329592(0x1db)]===_0x329592(0x282)){await Zt();return;}if(_0x263a6f[_0x329592(0x1db)]===_0x329592(0x315)){await en(_0x263a6f);return;}if(_0x263a6f[_0x329592(0x1db)]===_0x329592(0x297)){await on(_0x263a6f);return;}if(_0x263a6f[_0x329592(0x1db)]===_0x329592(0x325)){await mn(_0x263a6f);return;}if(_0x263a6f[_0x329592(0x1db)]===_0x329592(0x172)){await an(_0x263a6f);return;}if(_0x263a6f[_0x329592(0x1db)]==='usage'){await hn(_0x263a6f);return;}if(_0x263a6f[_0x329592(0x1db)]==='evaluate'||_0x263a6f[_0x329592(0x1db)]===_0x329592(0x180)||_0x263a6f[_0x329592(0x1db)]===_0x329592(0x253)){await bn(_0x263a6f,_0x263a6f[_0x329592(0x1db)]);return;}if(_0x263a6f[_0x329592(0x1db)]===_0x329592(0x194)){await vn(_0x263a6f);return;}if(_0x263a6f['subcommand']===_0x329592(0x232)){await xn(_0x263a6f);return;}if(_0x263a6f[_0x329592(0x1db)]===_0x329592(0x188)){await Tn(_0x263a6f);return;}if(_0x263a6f['subcommand']==='org-users'){await Nn(_0x263a6f);return;}if(_0x263a6f[_0x329592(0x1db)]===_0x329592(0x26f)){await _0x42a335(_0x263a6f[_0x329592(0x300)],{'runnerUrl':_0x263a6f[_0x329592(0x2bb)],'backendUrl':_0x263a6f['backendUrl'],'interopPath':_0x263a6f['interopPath'],'workerId':_0x263a6f['workerId']});return;}if(_0x263a6f[_0x329592(0x328)]){await sn();return;}await Fn(_0x263a6f);}var Hn=process.env.NODE_ENV===_0x3a4b26(0x181)||!!process.env.JEST_WORKER_ID;Hn||Jn()[_0x3a4b26(0x32f)](_0x404986=>{const _0x1a9070=_0x3a4b26;console[_0x1a9070(0x351)](_0x404986[_0x1a9070(0x171)]||_0x404986[_0x1a9070(0x22e)]||_0x404986),process[_0x1a9070(0x309)](0x1);});function _0x9e2b(_0x548354,_0x500f88){_0x548354=_0x548354-0x148;const _0x568ed2=_0x568e();let _0x9e2b1e=_0x568ed2[_0x548354];return _0x9e2b1e;}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 _0x5a74af=_0xc8d3;(function(_0x135ec6,_0x8862cf){const _0x4fc1fd=_0xc8d3,_0x4e4a87=_0x135ec6();while(!![]){try{const _0x4524ac=parseInt(_0x4fc1fd(0x20b))/0x1+-parseInt(_0x4fc1fd(0x36b))/0x2*(parseInt(_0x4fc1fd(0x36c))/0x3)+parseInt(_0x4fc1fd(0x3b0))/0x4+parseInt(_0x4fc1fd(0x331))/0x5*(parseInt(_0x4fc1fd(0x392))/0x6)+-parseInt(_0x4fc1fd(0x344))/0x7*(parseInt(_0x4fc1fd(0x2d3))/0x8)+parseInt(_0x4fc1fd(0x2ba))/0x9*(-parseInt(_0x4fc1fd(0x21f))/0xa)+parseInt(_0x4fc1fd(0x292))/0xb;if(_0x4524ac===_0x8862cf)break;else _0x4e4a87['push'](_0x4e4a87['shift']());}catch(_0xfada51){_0x4e4a87['push'](_0x4e4a87['shift']());}}}(_0x3352,0xa3394));const __dirname=import.meta.dirname;function _0x3352(){const _0x1f7c3b=['Use:\x20delegate-cli\x20delegations\x20','locked','Licensing:\x20\x20\x20\x20no\x20licensing\x20quota\x20applies','dismissed','actionable_error','check','\x20sessions\x20on\x20','an\x20email\x20address\x20or\x20name','\x20this\x20month','verdict','widget','\x0aAvailable\x20models\x20(','sessionId',',\x20not\x20\x22user\x22','\x20applies\x20to\x20prompts\x20and\x20to\x20these\x20commands\x20only:\x20','from\x20','padStart','\x20active\x20days','--page','isArray','Auth\x20comes\x20from\x20AUTH_TOKEN/TENANT_ID/ORG_ID\x20β\x20set\x20TENANT_ID\x20and\x20TENANT_SLUG\x20to\x20change\x20the\x20tenant.','total_quota_pu','entries','\x20\x20\x20\x20','--replay-user-messages','preloadSkills','getSessionId','Source:\x20\x20\x20\x20\x20\x20\x20','18604938cCjFdI','Pass\x20either\x20--env\x20(a\x20named\x20cloud)\x20or\x20--url\x20(any\x20other\x20deployment),\x20not\x20both.','--session\x20applies\x20to\x20the\x20`delegate-cli\x20usage`\x20summary\x20only.','getSessionMessages','return','):\x0a\x0a','answers','--no-computer-use','delegations\x20pending\x20<session-id>','monthly_spend_usd','description','hide','\x20in\x20steps\x20of\x20','runnerUrl','replayUserMessages',',\x20or\x20holds\x20no\x20message\x20','ASSIGNEE','Token:\x20\x20\x20\x20\x20\x20\x20\x20expires\x20','assignedUser','Title\x20\x20\x20\x20\x20\x20\x20\x20\x20','alreadyAccepted','rubric_version','--input-format','every','sendMessage','confidence','choice\x20','\x20to\x20','messages','.\x20Drop\x20one\x20of\x20the\x20two.','Deleted\x20session\x20','orgLogicalName','removeEventListener','some','\x20(Enter\x20to\x20skip):\x20','exitCode','Tenant:\x20\x20\x20\x20\x20\x20\x20','getTurnUsageHistory','sessions','agent_thought','201384PLATof','delegateTo','Bearer\x20','cleanup','No\x20CLI\x20login\x20found\x20β\x20nothing\x20to\x20remove.','options','delete','baseUrl','rmSync','toFixed','host','--session','Number','\x20<file.json>,\x20or\x20-\x20to\x20read\x20stdin.','thinking','contextSummary','rerank','Missing\x20prompt.\x20Pass\x20it\x20as\x20an\x20argument,\x20pipe\x20it\x20via\x20stdin,\x20or\x20run\x20`delegate-cli\x20--help`.','total_completion_tokens','\x22.\x0a','\x20PU\x20used','text','vertical','\x20days:\x20','score','32UtlMhb','abort','--task-automation\x20applies\x20to\x20prompts\x20only.','evaluate','argv','There\x20is\x20no\x20terminal\x20input\x20to\x20answer\x20from.','active_days','daily','\x20token\x20units)','rename','--project','results','effort','message','followUpsRenderer','\x20\x20(input\x20#','workingDirectory','--model','Session\x20\x20\x20\x20\x20\x20\x20','\x20\x22<answer>\x22\x0a','readLine','Renamed\x20','lastType','model_version','a\x20turn\x20id','Date\x20\x20\x20\x20\x20\x20\x20\x20Token\x20units\x20\x20Prompt\x20tokens\x20\x20Completion\x20tokens','cartographer','delegationId','a\x20JSON\x20schema\x20file','isFinite','userinput','keepAlive','parentSessionId','--cartographer\x20runs\x20the\x20','structuredError','low','Delegated\x20','model','resume','Cartographer:\x20','--effort','Last\x20','mode','token_units','user','projectId','question','prompt','shift','--authority','Already\x20accepted','\x20\x20(sub-agent\x20of\x20','\x20(confidence\x20','\x0aUse\x20with:\x20delegate-cli\x20--model\x20<id>\x20\x22<prompt>\x22\x0a','version','staging','\x20(resets\x20','No\x20CLI\x20login\x20found.\x20Run\x20`delegate-cli\x20login\x20--env\x20<alpha|staging|production>`\x20first.','\x20from\x20','status','daily_usage','\x20delegation\x20','all','.\x20Use\x20`delegate-cli\x20usage`,\x20`usage\x20activity`\x20or\x20`usage\x20daily`.','next','attachments','workerId','outputFormat','keys','unit','numeric','AUTH_TOKEN_FILE\x20\x27','cancelled','--summary','round','displayName','map','tokenExpiresAt','onEvent','Work\x20on\x20it\x20with:\x20delegate-cli\x20--session\x20','\x20vertical,\x20so\x20it\x20cannot\x20run\x20as\x20--vertical\x20','β\x20Done\x0a','structured','deployment','Model\x20','No\x20CLI\x20login\x20to\x20switch:\x20the\x20CLI\x20is\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20','steer','Already\x20answered','Token:\x20\x20\x20\x20\x20\x20\x20\x20expired\x20','score\x20','index','includeSubAgents','isDesktopFallback','headless','35BavaSd','Usage:\x20delegate-cli\x20sessions\x20fork\x20<id>\x20[<message-id>]','The\x20turn\x20was\x20cancelled.','turnId','input','Removed\x20','email','\x20token\x20units','toString','task','the\x20request','A\x20steering\x20message\x20was\x20not\x20sent:\x20','--env','UiPath\x20Cloud','pendingResults','complete\x20needs\x20--json-schema\x20<file>:\x20delegate-cli\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22.','Tenants\x20of\x20','\x20(resume\x20with\x20--session\x20','--to\x20and\x20--summary\x20apply\x20to\x20`delegate-cli\x20delegations\x20create`\x20only.','1222319zTBKqH','Accepted','end','monthly_limit_usd','--cartographer','No\x20models\x20available\x20for\x20this\x20product/tenant.\x0a','Usage:\x20delegate-cli\x20sessions\x20cancel\x20<session-id>\x20--turn\x20<turn-id>','bind','split','Organization\x20\x20','fields','delegations\x20claim\x20<delegation-id|delegate://delegation/β¦>','value','a\x20number','show','total_token_units','\x20min)','complete','--turn','concat','filter','pause','bundledSkillsPath','an\x20input\x20line\x20has\x20no\x20message.content,\x20a\x20string\x20or\x20a\x20list\x20of\x20text\x20blocks','Tenant:\x20','\x20PU\x20beyond\x20quota','content','pending','.aria','noConnections','--limit','\x20days.\x0a','auth','Owner\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x0aAccept\x20one\x20with:\x20delegate-cli\x20delegations\x20accept\x20<id>\x0a','optional','probability\x20','stdin','signal','46kPQufe','150978XbncOS','restore','inputFormat','turn_start',')\x20β\x20saved\x20to\x20','organizationId','intro','),\x20','--output-format','min','cancel','detail','list','push','noComputerUse','Cost:\x20\x20\x20$','model_id','You>\x20','A\x20steering\x20message\x20arrived\x20after\x20the\x20turn\x20ended:\x20not\x20read.\x0a','\x20(optional)','\x20--turn\x20','No\x20answers\x20awaiting\x20acceptance.\x0a','Created\x20delegation\x20','backendUrl','sourceUserEmail','slice','\x20\x22<prompt>\x22\x0aAnswer\x20with:\x20delegate-cli\x20delegations\x20complete\x20','string','findIndex','\x20(estimated\x20$','delegations\x20delete\x20<delegation-id>','\x20(in\x20','expiresAt','delegations\x20complete\x20<delegation-id>\x20\x22<answer>\x22|-','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','done','subcommand','pct_used','847284fZTHWw','session_consumed_pu','max','exit','tenantId','existsSync','>.\x0a','delegations\x20list\x20<backend-project-id>','Usage:\x20delegate-cli\x20','--runner-url','--backend','\x20\x22<prompt>\x22\x0a','Session:\x20','total_sessions','object','tenantName','includes','period_days','page','\x20cap','--attach:\x20no\x20such\x20file\x20or\x20folder:\x20','--skip-env-check','\x20or\x20your\x20own\x20answer','Your\x20answer,\x20as\x20text\x20(the\x20CLI\x20attaches\x20no\x20files;\x20Enter\x20to\x20skip):\x20','--attach\x20applies\x20to\x20prompts\x20only.','then','1\x20or\x20more','--input-format\x20stream-json\x20needs\x20--output-format\x20stream-json:\x20the\x20steering\x20messages\x20are\x20answered\x20on\x20stdout.','label','resolve','3821644YJppXM','items','Input\x20closed\x20before\x20the\x20question\x20was\x20answered.','log','an\x20input\x20line\x20has\x20type\x20','fork','--output-format\x20','\x20(stdin\x20was\x20empty)','alpha','--json-schema','addEventListener','No\x20sessions\x20on\x20page\x20','startsWith','jsonSchemaPath','unknown','SIGINT','ID\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','multiSelect','xhigh','tenant','org-users','Delegation\x20\x20\x20\x20','line','Enter\x20sends\x20a\x20message.\x20/exit\x20or\x20EOF\x20exits;\x20Ctrl+C\x20stops\x20and\x20exits.\x0a','\x20requires\x20','More:\x20delegate-cli\x20sessions\x20--page\x20','--working-dir','now','response','limit_enabled','stderr','\x0aStoppingβ¦\x20(Ctrl+C\x20again\x20to\x20force\x20exit)\x0a','--skills-path','print','delegations\x20dismiss\x20<delegation-id>','forEach','noMemory','--quiet','Session\x20','.\x20Use\x20','session_start','--url','help','--skip-env-check\x20applies\x20to\x20`delegate-cli\x20login`\x20only.','\x20(no\x20cap\x20enforced)','origin','--no-memory','trim','accept','erase','create','Rubric\x20','waitForIdle','\x20<id>','setPrompt','kind','.\x20Share:\x20','Usage:\x20delegate-cli\x20org-users\x20<name\x20or\x20email\x20prefix>','\x20β\x20sign\x20out\x20in\x20the\x20Delegate\x20app\x20to\x20clear\x20that.','the\x20JSON\x20schema','No\x20one\x20matches\x20\x22','Usage:\x20delegate-cli\x20sessions\x20[list]\x20[--page\x20N]\x20[--limit\x20N]\x20[--include-subagents]','models','Enter\x20a\x20number\x20','Interop\x20stopped\x20(if\x20it\x20was\x20running).','replace','data','uuid','--turn\x20applies\x20to\x20`delegate-cli\x20sessions\x20cancel`\x20only.','isTTY','lockReason','Numbers,\x20separated\x20by\x20commas\x20(Enter\x20to\x20skip):\x20','env','\x27\x20cannot\x20be\x20read:\x20','verify','catch','subFields','--headless','\x20(type\x20your\x20own)','--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`delegate-cli\x20sessions\x20[list]`\x20only.','cwd','--input-format\x20and\x20--replay-user-messages\x20apply\x20to\x20prompts\x20only.',',\x20got\x20','a\x20colleague','sourceTitle','delegations','.\x20Use\x20alpha\x20|\x20staging\x20|\x20production\x20|\x20localhost.','claim','delegation','initialize','dismiss','):\x20','verbose','Cancel\x20requested\x20for\x20turn\x20','Forked\x20','No\x20auth\x20found.\x20Set\x20AUTH_TOKEN\x20(or\x20AUTH_TOKEN_FILE)/TENANT_ID/ORG_ID\x20env\x20vars,\x20or\x20run\x20`delegate-cli\x20login\x20--env\x20<alpha|staging|production>`\x20(or\x20`--url\x20<deployment-url>`\x20for\x20Automation\x20Suite)\x20first.','write','stringify','buckets','Steering\x20input\x20stopped:\x20','stop','The\x20saved\x20CLI\x20login\x20could\x20not\x20be\x20refreshed.\x20Run\x20`delegate-cli\x20login`\x20again.','activity','usage','questions','title','type','refused','delegations\x20accept\x20<delegation-id>','once','oneTurn','isError','Task\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','padEnd','--no-security','quiet','stream-json','error','\x20not\x20found.','Tokens:\x20','login','close','187071mqvMli','interopPath','Could\x20not\x20check\x20BYO\x20model\x20warnings:\x20','probability','No\x20CLI\x20login\x20found.\x20Note:\x20the\x20CLI\x20is\x20currently\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20','a\x20file\x20path','auth.json','%\x20of\x20','extra_pool_consumed_pu','--to,\x20--summary\x20and\x20--session\x20apply\x20to\x20`delegate-cli\x20delegations\x20create`\x20only.','spawn','code','delegations\x20cancel\x20<delegation-id>','taskAutomation','isInteger','byoWarning','/exit','Continue\x20it\x20with:\x20delegate-cli\x20--session\x20','utf-8','\x0aβ οΈ\x20\x20Auth\x20expired.\x20Opening\x20browser\x20to\x20re-loginβ¦\x0a','580lIeQFb','bucket','join','transcribe','\x20in\x20progress\x20on\x20session\x20','tool_call','off','\x20completion','transcribe:\x20cannot\x20read\x20','typed','readFileSync','file','\x20|\x20','\x0aπ€\x20','\x20of\x20session\x20',']\x20Backend\x20URL:\x20','--print','Structured\x20output\x20failed:\x20','--replay-user-messages\x20needs\x20--input-format\x20stream-json.','--version','high','finish','\x20<title>','from\x201\x20to\x20','Claimed\x20from\x20delegation\x20','\x20is\x20not\x20valid\x20JSON\x20(','Unknown\x20usage\x20view:\x20','operands','deepLink','Unknown\x20flag:\x20','pop','whoami','an\x20input\x20line\x20is\x20not\x20a\x20JSON\x20object','parse','\x20prompt,\x20','\x20(cancel\x20with:\x20delegate-cli\x20sessions\x20cancel\x20','step','Switch\x20with:\x20delegate-cli\x20tenant\x20<name>\x0a','toolName',']\x20(Enter\x20for\x20','days','length','--days','No\x20structured\x20output:\x20the\x20turn\x20failed\x20(','\x20(current)','toISOString','\x20not\x20found,\x20has\x20no\x20messages','a\x20format\x20(','--include-subagents','add','limit','Session:\x20\x20\x20\x20\x20\x20','Tenant\x20not\x20switched:\x20could\x20not\x20write\x20','\x20-\x20','test','No\x20usage\x20in\x20the\x20last\x20','--url\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Other\x20commands\x20follow\x20the\x20saved\x20login,\x20or\x20--backend\x20<url>.','localhost',':\x20cannot\x20read\x20the\x20JSON\x20schema\x20(','unknown\x20slug','Invalid\x20--project:\x20\x22',').\x0a','UPDATED','Usage:\x20delegate-cli\x20sessions\x20','Your\x20answer\x20(Enter\x20to\x20skip):\x20','logout','name','stdout','accessToken','--interop','url','--to','total_cost_usd','rejection','a\x20directory\x20path','No\x20delegations.\x0a','updatedAt','isSafeInteger','Invalid\x20--output-format:\x20','userId','noSecurity','--task-automation','delegate-cli','\x20into\x20','an\x20input\x20line\x20is\x20not\x20JSON','skipEnvCheck','from'];_0x3352=function(){return _0x1f7c3b;};return _0x3352();}import _0x43634d from'fs';import _0xb053b8 from'path';import{clearLine as _0x4cfc48,createInterface as _0x188cd7,cursorTo as _0x153ab3}from'node:readline';import{isOnStepGrid as _0x53e4d4}from'@uipath/delegate-sdk';var L=_0x5a74af(0x2f1);function E(_0x2f8adf){const _0x39e267=_0x5a74af;return _0x2f8adf[_0x39e267(0x1d2)](/\u001b\[[0-?]*[ -/]*[@-~]|\u001b\][^\u0007\u001b]*(\u0007|\u001b\\)?|\u001b./g,'')[_0x39e267(0x1d2)](/[\u0000-\u0008\u000b-\u001f\u007f-\u009f]/g,'');}function ee(_0x3d07d6){const _0x457e3f=_0x5a74af;return E(_0x3d07d6['label']??(_0x3d07d6[_0x457e3f(0x1c8)]===L?'Something\x20else':_0x3d07d6['id']));}function Ce(_0x3cc7fa,_0x3f12e0,_0x460b35){const _0x1589c9=_0x5a74af;let _0x251aaa=[''+(_0x460b35>0x1?'['+_0x3f12e0+'/'+_0x460b35+']\x20':'')+E(_0x3cc7fa['header'])+(_0x3cc7fa[_0x1589c9(0x367)]?_0x1589c9(0x37f):''),E(_0x3cc7fa[_0x1589c9(0x301)])];return _0x3cc7fa[_0x1589c9(0x1fb)]===_0x1589c9(0x2cf)&&_0x3cc7fa[_0x1589c9(0x2bf)][_0x1589c9(0x3d3)]((_0x33a88d,_0x4e6d72)=>{const _0xa35001=_0x1589c9;let _0x55fb83=_0x33a88d['kind']===L?_0xa35001(0x1df):'',_0x53896c=_0x33a88d[_0xa35001(0x29c)]?_0xa35001(0x254)+E(_0x33a88d['description']):'';_0x251aaa[_0xa35001(0x379)]('\x20\x20'+(_0x4e6d72+0x1)+'.\x20'+ee(_0x33a88d)+_0x55fb83+_0x53896c);}),_0x251aaa[_0x1589c9(0x221)]('\x0a');}function te(_0x3c5fa3,_0x8c8708){const _0x360217=_0x5a74af;let _0x6a5a5a=_0x3c5fa3[_0x360217(0x34c)](/[\s,]+/)[_0x360217(0x358)](Boolean);if(_0x6a5a5a[_0x360217(0x248)]===0x0)return null;let _0x40d7bb=_0x6a5a5a[_0x360217(0x31f)](_0x22059a=>/^\d+$/['test'](_0x22059a)?Number(_0x22059a):NaN);return _0x40d7bb[_0x360217(0x2b3)](_0x49d296=>!Number[_0x360217(0x219)](_0x49d296)||_0x49d296<0x1||_0x49d296>_0x8c8708)?null:[...new Set(_0x40d7bb)][_0x360217(0x31f)](_0x3b229d=>_0x3b229d-0x1);}function Oe(_0x30f7e7){const _0x44bd80=_0x5a74af;return typeof _0x30f7e7==_0x44bd80(0x3a0)&&_0x30f7e7!==null&&_0x44bd80(0x1fc)in _0x30f7e7;}async function F(_0x4db824,_0x8d6cf,_0x135db6,_0xec7a8f){const _0x44d6cc=_0x5a74af;for(;;){let _0x596ca3=(await _0x4db824(_0x8d6cf))[_0x44d6cc(0x1c0)]();if(_0x596ca3==='')return;let _0x395aae=_0xec7a8f(_0x596ca3);if(!Oe(_0x395aae))return _0x395aae;_0x135db6(_0x395aae['refused']+'\x0a');}}async function Le(_0x23c199,_0x5850bb,_0x224fe5){const _0x538400=_0x5a74af;if(_0x23c199[_0x538400(0x2bf)][_0x538400(0x248)]===0x0||_0x23c199['options'][_0x538400(0x2a9)](_0x41d3c0=>_0x41d3c0[_0x538400(0x1c8)]===L)){let _0x1dfc54=(await _0x5850bb(_0x538400(0x25f)))[_0x538400(0x1c0)]();return _0x1dfc54===''?void 0x0:{'text':_0x1dfc54};}let _0x209506=_0x23c199[_0x538400(0x2bf)][_0x538400(0x388)](_0x4fdaba=>_0x4fdaba['kind']===L),_0x10c40c=_0x23c199[_0x538400(0x3c1)]?_0x538400(0x1d8):_0x538400(0x2c6)+(_0x209506>=0x0?_0x538400(0x3a8):'')+_0x538400(0x2b4),_0x67dd3e=await F(_0x5850bb,_0x10c40c,_0x224fe5,_0x3d418a=>{const _0x419d69=_0x538400;let _0x492619=te(_0x3d418a,_0x23c199[_0x419d69(0x2bf)][_0x419d69(0x248)]);return _0x492619&&(_0x23c199[_0x419d69(0x3c1)]||_0x492619[_0x419d69(0x248)]===0x1)?_0x492619:!_0x23c199[_0x419d69(0x3c1)]&&_0x209506>=0x0?{'typed':_0x3d418a}:{'refused':_0x23c199[_0x419d69(0x3c1)]?'Enter\x20numbers\x20from\x201\x20to\x20'+_0x23c199['options'][_0x419d69(0x248)]+'.':'Enter\x20one\x20number\x20from\x201\x20to\x20'+_0x23c199[_0x419d69(0x2bf)][_0x419d69(0x248)]+'.'};});if(_0x67dd3e===void 0x0)return;if(!Array[_0x538400(0x289)](_0x67dd3e))return{'text':_0x67dd3e[_0x538400(0x228)]};let _0x47fa36=_0x67dd3e[_0x538400(0x31f)](_0x156180=>_0x23c199[_0x538400(0x2bf)][_0x156180]['id']),_0x5c33ed=_0x47fa36[_0x538400(0x3a2)](L)?await F(_0x5850bb,ee(_0x23c199[_0x538400(0x2bf)][_0x209506])+':\x20',_0x224fe5,_0x3cb2db=>_0x3cb2db):void 0x0;if(!(_0x47fa36[_0x538400(0x3a2)](L)&&_0x5c33ed===void 0x0))return _0x23c199[_0x538400(0x3c1)]?{'optionIds':_0x47fa36,..._0x5c33ed!==void 0x0?{'text':_0x5c33ed}:{}}:_0x5c33ed!==void 0x0?{'text':_0x5c33ed}:{'optionId':_0x47fa36[0x0]};}async function Fe(_0x51828f,_0x14417b,_0x524517){const _0x3bffc5=_0x5a74af;let _0x3f1b13={};for(let _0x387eed of _0x51828f[_0x3bffc5(0x34e)]){let _0x502952=_0x387eed['default']??_0x387eed[_0x3bffc5(0x375)],_0x20c5ca=_0x387eed[_0x3bffc5(0x243)]??0x1,_0x4a7af0=_0x387eed[_0x3bffc5(0x318)]?'\x20'+E(_0x387eed['unit']):'',_0x50d007=_0x3bffc5(0x285)+_0x387eed[_0x3bffc5(0x375)]+_0x3bffc5(0x2ad)+_0x387eed[_0x3bffc5(0x394)]+(_0x20c5ca!==0x1?_0x3bffc5(0x29e)+_0x20c5ca:''),_0x46f8ac=await F(_0x14417b,E(_0x387eed[_0x3bffc5(0x3ae)])+'\x20['+_0x387eed['min']+'-'+_0x387eed['max']+_0x4a7af0+_0x3bffc5(0x246)+_0x502952+_0x3bffc5(0x1ec),_0x524517,_0x1e01eb=>{const _0x485eab=_0x3bffc5;let _0x3bc319=Number(_0x1e01eb);return Number[_0x485eab(0x2f0)](_0x3bc319)&&_0x3bc319>=_0x387eed[_0x485eab(0x375)]&&_0x3bc319<=_0x387eed[_0x485eab(0x394)]&&_0x53e4d4(_0x3bc319,_0x387eed[_0x485eab(0x375)],_0x20c5ca)?_0x3bc319:{'refused':_0x485eab(0x1d0)+_0x50d007+'.'};});_0x3f1b13[_0x387eed['id']]=_0x46f8ac??_0x502952;}return{'values':_0x3f1b13};}async function Me(_0x388689,_0x3005ad,_0x265ea1){const _0x25bc44=_0x5a74af;_0x265ea1(_0x388689[_0x25bc44(0x1f3)][_0x25bc44(0x31f)]((_0x3746aa,_0x5b0c63)=>'\x20\x20'+(_0x5b0c63+0x1)+'.\x20'+E(_0x3746aa[_0x25bc44(0x3ae)]))[_0x25bc44(0x221)]('\x0a')+'\x0a');let _0x49de56={};for(let _0x14e858 of _0x388689[_0x25bc44(0x3b1)]){let _0x18ada6=await F(_0x3005ad,E(_0x14e858[_0x25bc44(0x3ae)])+':\x20bucket\x20number\x20(Enter\x20to\x20leave\x20out):\x20',_0x265ea1,_0x5e89c5=>{const _0x1c08b9=_0x25bc44;let _0x4a0e3f=te(_0x5e89c5,_0x388689[_0x1c08b9(0x1f3)][_0x1c08b9(0x248)]);return _0x4a0e3f&&_0x4a0e3f[_0x1c08b9(0x248)]===0x1?_0x4a0e3f[0x0]:{'refused':'Enter\x20one\x20number\x20from\x201\x20to\x20'+_0x388689['buckets'][_0x1c08b9(0x248)]+'.'};});if(_0x18ada6===void 0x0)continue;let _0x981313=_0x388689[_0x25bc44(0x1f3)][_0x18ada6],_0x64fce8={};for(let _0xc3cfe7 of _0x981313[_0x25bc44(0x1dd)]??[]){let _0x96b938='\x20\x20'+E(_0xc3cfe7['label'])+(_0xc3cfe7['optional']?_0x25bc44(0x37f):'')+':\x20',_0x3b8992=await F(_0x3005ad,_0x96b938,_0x265ea1,_0x5375d0=>_0x5375d0);for(;_0x3b8992===void 0x0&&!_0xc3cfe7[_0x25bc44(0x367)];)_0x265ea1(E(_0xc3cfe7['label'])+'\x20is\x20required.\x0a'),_0x3b8992=await F(_0x3005ad,_0x96b938,_0x265ea1,_0x4de04e=>_0x4de04e);_0x3b8992!==void 0x0&&(_0x64fce8[_0xc3cfe7['id']]=_0x3b8992);}_0x49de56[_0x14e858['id']]={'bucket':_0x981313['id'],...Object[_0x25bc44(0x317)](_0x64fce8)['length']>0x0?{'subFields':_0x64fce8}:{}};}return Object[_0x25bc44(0x317)](_0x49de56)[_0x25bc44(0x248)]>0x0?{'assignments':_0x49de56}:void 0x0;}async function je(_0x55ed44,_0x41c6b0,_0x52a7f3){const _0x4e3dbf=_0x5a74af;if(_0x55ed44[_0x4e3dbf(0x1fb)]===_0x4e3dbf(0x2cf))return Le(_0x55ed44,_0x41c6b0,_0x52a7f3);if(_0x55ed44[_0x4e3dbf(0x1fb)]===_0x4e3dbf(0x319))return Fe(_0x55ed44,_0x41c6b0,_0x52a7f3);if(_0x55ed44[_0x4e3dbf(0x1fb)]===_0x4e3dbf(0x220))return Me(_0x55ed44,_0x41c6b0,_0x52a7f3);let _0x1e330c=(await _0x41c6b0(_0x4e3dbf(0x3a9)))[_0x4e3dbf(0x1c0)]();return _0x1e330c===''?void 0x0:{'text':_0x1e330c};}function ne(_0x3e6a05,_0x5e2b31){return async _0x1bb9ae=>{const _0x5393d1=_0xc8d3;let _0x4d154b=_0x3e6a05();if(!_0x4d154b)throw new Error(_0x5393d1(0x2d8));let _0x3881b4=async _0x2a3ee6=>{const _0x2675e2=_0x5393d1;if(_0x1bb9ae['signal']['aborted'])throw new Error(_0x2675e2(0x333));let _0x1da2ab=await _0x4d154b[_0x2675e2(0x2e7)](_0x2a3ee6,_0x1bb9ae[_0x2675e2(0x36a)]);if(_0x1da2ab===null)throw new Error(_0x2675e2(0x3b2));return _0x1da2ab;};try{_0x5e2b31('\x0a'+(_0x1bb9ae['intro']?E(_0x1bb9ae[_0x5393d1(0x372)])+'\x0a':''));let _0x4fb8cf={};for(let [_0x2c87b3,_0x19cd4b]of _0x1bb9ae['questions'][_0x5393d1(0x28c)]()){_0x5e2b31('\x0a'+Ce(_0x19cd4b,_0x2c87b3+0x1,_0x1bb9ae[_0x5393d1(0x1f9)]['length'])+'\x0a');let _0x12166c=await je(_0x19cd4b,_0x3881b4,_0x5e2b31);_0x12166c!==void 0x0&&(_0x4fb8cf[_0x19cd4b['id']]=_0x12166c);}return{'answers':_0x4fb8cf};}finally{_0x4d154b['endQuestions']();}};}import{createInterface as _0xa84cf4}from'node:readline';var j=[_0x5a74af(0x2cf),_0x5a74af(0x205)];function se(_0x3c1ba8){return j['includes'](_0x3c1ba8);}var _=class extends Error{};function Je(_0x18413f){const _0x1f8a3d=_0x5a74af;if(typeof _0x18413f==_0x1f8a3d(0x387))return _0x18413f;if(!Array[_0x1f8a3d(0x289)](_0x18413f))return;let _0x2b3e3d=[];for(let _0x4f857d of _0x18413f){if(typeof _0x4f857d!=_0x1f8a3d(0x3a0)||_0x4f857d===null)return;let {type:_0x4644c1,text:_0x429fe6}=_0x4f857d;if(_0x4644c1!=='text'||typeof _0x429fe6!=_0x1f8a3d(0x387))return;_0x2b3e3d[_0x1f8a3d(0x379)](_0x429fe6);}return _0x2b3e3d['join']('\x0a');}function He(_0x386be4){const _0xd155fe=_0x5a74af;if(_0x386be4['trim']()==='')return null;let _0x3f5575;try{_0x3f5575=JSON[_0xd155fe(0x240)](_0x386be4);}catch{throw new _(_0xd155fe(0x273));}if(typeof _0x3f5575!=_0xd155fe(0x3a0)||_0x3f5575===null)throw new _(_0xd155fe(0x23f));let {type:_0x3137f1,message:_0x4fa139,uuid:_0xa4d955}=_0x3f5575;if(_0x3137f1!==_0xd155fe(0x2ff))throw new _(_0xd155fe(0x3b4)+JSON['stringify'](_0x3137f1)+_0xd155fe(0x283));let _0x329bd9=Je(_0x4fa139?.[_0xd155fe(0x35e)]);if(_0x329bd9===void 0x0)throw new _(_0xd155fe(0x35b));if(_0x329bd9[_0xd155fe(0x1c0)]()==='')throw new _('an\x20input\x20line\x20has\x20an\x20empty\x20message');return{'text':_0x329bd9,'uuid':typeof _0xa4d955==_0xd155fe(0x387)?_0xa4d955:void 0x0};}function oe(_0x43b517,_0x307a8f){const _0x194f41=_0x5a74af;return JSON[_0x194f41(0x1f2)]({'type':_0x194f41(0x2ff),'message':{'role':'user','content':_0x43b517[_0x194f41(0x2cf)]},'session_id':_0x307a8f,..._0x43b517['uuid']===void 0x0?{}:{'uuid':_0x43b517[_0x194f41(0x1d4)]},'isReplay':!0x0})+'\x0a';}async function*re(_0x1f4d71,_0x3970bf){const _0x1965ba=_0x5a74af;let _0x43b7f1=_0xa84cf4({'input':_0x1f4d71,'crlfDelay':0x1/0x0});try{for await(let _0x2e2ccd of _0x43b7f1){let _0xbfe42b;try{_0xbfe42b=He(_0x2e2ccd);}catch(_0x9c0df4){if(!(_0x9c0df4 instanceof _))throw _0x9c0df4;_0x3970bf(_0x9c0df4);continue;}_0xbfe42b&&(yield _0xbfe42b);}}finally{_0x43b7f1[_0x1965ba(0x20a)]();}}import{BUSINESS_ANALYSIS_PRELOADED_SKILLS as _0x54f5ba,DelegateAgent as _0x3064a8,cancelTurn as _0x109505,InteropProcess as _0x1fa3fc,complete as _0x382ae7,DEFAULT_MODEL as _0x4bfb05,createBackendClient as _0x5b33b7,evaluate as _0xeda7f9,isCompletionRequestError as _0x48ea37,isEvaluationRequestError as _0x48ba12,isTranscriptionError as _0x2f0f4d,rerank as _0x55a147,transcribe as _0x262e17,verify as _0x4d484d,acceptDelegation as _0x325306,cancelDelegation as _0x3e6007,claimDelegation as _0x2b5f96,completeDelegation as _0x5e7ae6,createDelegation as _0x232b16,deleteDelegation as _0xc17f44,dismissDelegation as _0x5b9ff3,getSessionDelegations as _0x2672b9,isDelegationError as _0x33f686,listDelegations as _0x2639a5,listOrgUsers as _0x306538,previewDelegation as _0x1a6503,TurnResultCollector as _0x4c9348,agentEventToJsonLine as _0x31778c,describeBaseUrlRejection as _0x3732a2,getActivitySummary as _0x52611b,getAuthFilePath as _0x24045b,getByoWarnings as _0xc1ec94,getCartographerAllowance as _0x15cc56,getDailyBreakdown as _0x461ef2,getLicensingSummary as _0x380edc,getMonthlySpending as _0x361533,isOutputFormat as _0x2b0a63,isCloudBaseUrl as _0x5541b8,isSafeProjectFolderSegment as _0x6099a9,listModels as _0x4ead5b,listSessions as _0xcd6bcf,getSession as _0x49700a,renameSession as _0x194246,deleteSession as _0x24f820,deleteSessionTaskLog as _0x13eeee,forkSession as _0x39b021,isBackendRequestError as _0x42b6f9,MAX_SESSION_PAGE_SIZE as _0x2035c8,listTenants as _0x4d04b8,loadAndRefreshAuth as _0x454e9c,loadAndRefreshSdkLogin as _0x1092e1,parsePlatformBaseUrl as _0x447e29,resolveBackendUrl as _0x3b2a5b,runHealthCheck as _0x1f9689,runHostCommand as _0x39fb49,runLoginFlow as _0x484930,runTurnForResult as _0x57612a,saveAuthData as _0x4a61ce,switchTenant as _0x817f6d,toJsonLine as _0x47513a,ENV_TO_CLOUD as _0xed5dea,OUTPUT_FORMATS as _0x516660,isRunStopNotice as _0x7a7cb9,extractActionableErrorText as _0x15697f}from'@uipath/delegate-sdk';function ie(_0x24ede6){const _0x51da3e=_0x5a74af;let {input:_0x2278aa,getAgent:_0x341b7b,replay:_0x116926,onEvent:_0x59027d,write:_0x391974,warn:_0x2b54f4,isRunStopNotice:_0x1d27f8,actionableErrorText:_0x1d0502}=_0x24ede6,_0x49f63d=0x0,_0x36e0b6=0x0,_0x299744=Promise[_0x51da3e(0x3af)](),_0x1ddd4e=!0x1,_0x143ab8=()=>{},_0x2acf5e=new Promise(_0x175980=>{_0x143ab8=_0x175980;}),_0x44af4f=[],_0x31e736=_0x59027d(_0x56a26a=>{_0x56a26a['type']==='turn_start'&&(_0x143ab8(),_0x44af4f['shift']()?.());}),_0x1db227=_0x192ebb=>{_0x116926&&_0x391974(oe(_0x192ebb,_0x341b7b()['getSessionId']()));},_0x16a0e9=(async()=>{const _0x43dec2=_0x51da3e;await _0x2acf5e;for await(let _0x1fef01 of _0x2278aa[_0x43dec2(0x2ae)]){if(_0x1ddd4e)return;_0x49f63d===0x0&&(_0x36e0b6=_0x341b7b()['getSessionMessages']()[_0x43dec2(0x248)]),_0x49f63d++;let _0x2f16ab=new Promise(_0x2968cd=>{_0x44af4f['push'](()=>{_0x1db227(_0x1fef01),_0x2968cd();});}),_0x34fcce=()=>{const _0x1044e6=_0x43dec2;_0x49f63d--,_0x44af4f[_0x1044e6(0x23d)]();},_0x5a276d=_0x341b7b()[_0x43dec2(0x329)](_0x1fef01[_0x43dec2(0x2cf)]);_0x299744=_0x5a276d['catch'](()=>{});try{await _0x5a276d?await Promise['race']([_0x2f16ab,_0x341b7b()[_0x43dec2(0x1c5)]()]):(_0x34fcce(),_0x2b54f4(_0x43dec2(0x37e)));}catch(_0x1eff82){_0x34fcce(),_0x2b54f4(_0x43dec2(0x33c)+(_0x1eff82 instanceof Error?_0x1eff82[_0x43dec2(0x2e0)]:String(_0x1eff82))+'\x0a');}}})()['catch'](_0x42413c=>{const _0x2223e2=_0x51da3e;_0x2b54f4(_0x2223e2(0x1f4)+(_0x42413c instanceof Error?_0x42413c[_0x2223e2(0x2e0)]:String(_0x42413c))+'\x0a');});return{'settle':async _0x179296=>{const _0x58f144=_0x51da3e;if(await _0x299744,_0x49f63d===0x0)return _0x179296;await _0x341b7b()['waitForIdle']();for(let _0x1ba060 of _0x44af4f)_0x1ba060();_0x44af4f=[];let _0x3fb91d=_0x341b7b()[_0x58f144(0x295)]()[_0x58f144(0x385)](_0x36e0b6)['findLast'](_0x3c4663=>_0x3c4663[_0x58f144(0x280)]===_0x58f144(0x27a)||_0x1d27f8(_0x3c4663)||_0x3c4663[_0x58f144(0x1fb)]==='ai'&&_0x3c4663[_0x58f144(0x280)]!==_0x58f144(0x2b9)&&_0x3c4663[_0x58f144(0x280)]!==_0x58f144(0x2e1)&&!!_0x3c4663[_0x58f144(0x35e)]);if(!_0x3fb91d)return{..._0x179296,'failed':!0x0,'text':'The\x20steering\x20message\x20was\x20not\x20answered:\x20its\x20turn\x20did\x20not\x20run\x20or\x20added\x20no\x20reply.'};let _0x3ebda6=_0x3fb91d[_0x58f144(0x280)]===_0x58f144(0x27a);return typeof _0x3fb91d['content']!='string'?{..._0x179296,'failed':_0x3ebda6}:{..._0x179296,'failed':_0x3ebda6,'text':_0x3ebda6?_0x1d0502(_0x3fb91d[_0x58f144(0x35e)]):_0x3fb91d[_0x58f144(0x35e)]};},'stop':()=>{const _0x33e343=_0x51da3e;_0x1ddd4e=!0x0,_0x31e736(),_0x2278aa[_0x33e343(0x20a)]();}};}var Gt=[_0x5a74af(0x209),_0x5a74af(0x3c3),_0x5a74af(0x1cf),_0x5a74af(0x2c4),'logout',_0x5a74af(0x23e),_0x5a74af(0x27b),'sessions',_0x5a74af(0x1f8),_0x5a74af(0x2d6),_0x5a74af(0x2ca),'verify',_0x5a74af(0x355),_0x5a74af(0x222),_0x5a74af(0x1e6),_0x5a74af(0x3c4)],ue=['','models',_0x5a74af(0x23e),'check',_0x5a74af(0x2b8),_0x5a74af(0x1f8),'evaluate',_0x5a74af(0x2ca),_0x5a74af(0x1db),_0x5a74af(0x355),'transcribe',_0x5a74af(0x1e6),_0x5a74af(0x3c4)],pe=[_0x5a74af(0x2f6),'medium',_0x5a74af(0x233),_0x5a74af(0x3c2),_0x5a74af(0x394)],Wt=_0x54f5ba,B=_0x5a74af(0x2ed);function b(_0x2386a1,_0x3eb508,_0xe03d8,_0x2f69ae){const _0x3996ec=_0x5a74af;let _0x3b3a56=_0x2386a1[_0x3eb508];return(!_0x3b3a56||_0x3b3a56['length']>0x1&&_0x3b3a56['startsWith']('-'))&&(console[_0x3996ec(0x206)](_0xe03d8+_0x3996ec(0x3c8)+_0x2f69ae+'.'),process[_0x3996ec(0x395)](0x2)),_0x3b3a56;}function K(_0x248591,_0x5d15fa,_0x5348ff,_0x5e7356){const _0x576097=_0x5a74af;let _0x39c5c3=b(_0x248591,_0x5d15fa,_0x5348ff,_0x576097(0x351)),_0x6dd59e=Number(_0x39c5c3);return(!/^\d+$/['test'](_0x39c5c3)||_0x6dd59e<0x1||!Number[_0x576097(0x26c)](_0x6dd59e)||_0x5e7356!==void 0x0&&_0x6dd59e>_0x5e7356)&&(console[_0x576097(0x206)](_0x5348ff+'\x20must\x20be\x20a\x20whole\x20number\x20'+(_0x5e7356===void 0x0?_0x576097(0x3ac):_0x576097(0x236)+_0x5e7356)+_0x576097(0x1e3)+_0x39c5c3+'.'),process[_0x576097(0x395)](0x2)),_0x6dd59e;}function Kt(_0x1d9be5){const _0x57b5c7=_0x5a74af;let _0x1c1d3c={'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':_0x57b5c7(0x2cf),'inputFormat':_0x57b5c7(0x2cf),'replayUserMessages':!0x1,'preloadSkills':[],'attachments':[],'skipEnvCheck':!0x1,'includeSubAgents':!0x1,'operands':[],'help':!0x1,'version':!0x1};Gt['includes'](_0x1d9be5[0x0])&&(_0x1c1d3c[_0x57b5c7(0x390)]=_0x1d9be5[0x0],_0x1d9be5=_0x1d9be5['slice'](0x1));let _0x25fde1=[];for(let _0x52597d=0x0;_0x52597d<_0x1d9be5['length'];_0x52597d++){let _0x2759ef=_0x1d9be5[_0x52597d];switch(_0x2759ef){case _0x57b5c7(0x22f):case'-p':_0x1c1d3c[_0x57b5c7(0x3d1)]=!0x0;break;case'--keep-alive':_0x1c1d3c['keepAlive']=!0x0;break;case'--cleanup':_0x1c1d3c[_0x57b5c7(0x2bd)]=!0x0;break;case _0x57b5c7(0x1de):_0x1c1d3c['headless']=!0x0;break;case _0x57b5c7(0x299):_0x1c1d3c[_0x57b5c7(0x37a)]=!0x0;break;case _0x57b5c7(0x348):_0x1c1d3c[_0x57b5c7(0x2ed)]=!0x0,_0x1c1d3c['noComputerUse']=!0x0,_0x1c1d3c[_0x57b5c7(0x28f)][_0x57b5c7(0x379)](...Wt);break;case'--no-connections':_0x1c1d3c['noConnections']=!0x0;break;case _0x57b5c7(0x203):_0x1c1d3c[_0x57b5c7(0x26f)]=!0x0;break;case _0x57b5c7(0x1bf):_0x1c1d3c[_0x57b5c7(0x3d4)]=!0x0;break;case _0x57b5c7(0x270):_0x1c1d3c[_0x57b5c7(0x218)]=!0x0;break;case _0x57b5c7(0x3d5):case'-q':_0x1c1d3c[_0x57b5c7(0x204)]=!0x0;break;case'--verbose':_0x1c1d3c[_0x57b5c7(0x1ed)]=!0x0;break;case _0x57b5c7(0x39c):_0x1c1d3c[_0x57b5c7(0x383)]=_0x1d9be5[++_0x52597d];break;case _0x57b5c7(0x2e4):_0x1c1d3c[_0x57b5c7(0x2f8)]=_0x1d9be5[++_0x52597d];break;case _0x57b5c7(0x39b):_0x1c1d3c['runnerUrl']=_0x1d9be5[++_0x52597d];break;case _0x57b5c7(0x264):_0x1c1d3c[_0x57b5c7(0x20c)]=_0x1d9be5[++_0x52597d];break;case'--worker-id':_0x1c1d3c['workerId']=_0x1d9be5[++_0x52597d];break;case'--preload-skill':_0x1c1d3c['preloadSkills'][_0x57b5c7(0x379)](b(_0x1d9be5,++_0x52597d,_0x2759ef,'a\x20skill\x20name'));break;case _0x57b5c7(0x2dd):{let _0x1ad74e=b(_0x1d9be5,++_0x52597d,_0x2759ef,'a\x20project\x20id');_0x6099a9(_0x1ad74e)||(console['error'](_0x57b5c7(0x25b)+_0x1ad74e+'\x22.\x20Use\x20a\x20single\x20folder-safe\x20segment\x20such\x20as\x20invoice-approval\x20(letters,\x20digits,\x20spaces,\x20\x22_\x22,\x20\x22-\x22,\x20\x22.\x22,\x20parentheses;\x20at\x20most\x2064\x20characters;\x20not\x20starting\x20with\x20\x22.\x22\x20or\x20ending\x20with\x20\x22.\x22\x20or\x20a\x20space).'),process[_0x57b5c7(0x395)](0x2)),_0x1c1d3c[_0x57b5c7(0x300)]=_0x1ad74e;break;}case'--vertical':_0x1c1d3c[_0x57b5c7(0x2d0)]=b(_0x1d9be5,++_0x52597d,_0x2759ef,'a\x20vertical\x20id');break;case _0x57b5c7(0x374):{let _0x1388cb=b(_0x1d9be5,++_0x52597d,_0x2759ef,_0x57b5c7(0x24e)+_0x516660[_0x57b5c7(0x221)](_0x57b5c7(0x22b))+')');_0x2b0a63(_0x1388cb)||(console['error'](_0x57b5c7(0x26d)+_0x1388cb+_0x57b5c7(0x1b8)+_0x516660[_0x57b5c7(0x221)](_0x57b5c7(0x22b))+'.'),process[_0x57b5c7(0x395)](0x2)),_0x1c1d3c[_0x57b5c7(0x316)]=_0x1388cb;break;}case _0x57b5c7(0x2a8):{let _0xd9e95e=b(_0x1d9be5,++_0x52597d,_0x2759ef,_0x57b5c7(0x24e)+j['join'](_0x57b5c7(0x22b))+')');se(_0xd9e95e)||(console[_0x57b5c7(0x206)]('Invalid\x20--input-format:\x20'+_0xd9e95e+_0x57b5c7(0x1b8)+j['join'](_0x57b5c7(0x22b))+'.'),process[_0x57b5c7(0x395)](0x2)),_0x1c1d3c[_0x57b5c7(0x36e)]=_0xd9e95e;break;}case _0x57b5c7(0x28e):_0x1c1d3c[_0x57b5c7(0x2a0)]=!0x0;break;case _0x57b5c7(0x2c5):_0x1c1d3c['sessionId']=b(_0x1d9be5,++_0x52597d,_0x2759ef,'a\x20session\x20id');break;case _0x57b5c7(0x288):_0x1c1d3c[_0x57b5c7(0x3a4)]=K(_0x1d9be5,++_0x52597d,_0x2759ef);break;case _0x57b5c7(0x362):_0x1c1d3c['limit']=K(_0x1d9be5,++_0x52597d,_0x2759ef,_0x2035c8);break;case _0x57b5c7(0x24f):_0x1c1d3c[_0x57b5c7(0x32e)]=!0x0;break;case _0x57b5c7(0x3b9):_0x1c1d3c['jsonSchemaPath']=b(_0x1d9be5,++_0x52597d,_0x2759ef,_0x57b5c7(0x2ef));break;case'--attach':{let _0x11dd3f=_0xb053b8[_0x57b5c7(0x3af)](process['cwd'](),b(_0x1d9be5,++_0x52597d,_0x2759ef,_0x57b5c7(0x210)));_0x43634d[_0x57b5c7(0x397)](_0x11dd3f)||(console[_0x57b5c7(0x206)](_0x57b5c7(0x3a6)+_0x11dd3f),process['exit'](0x2)),_0x1c1d3c[_0x57b5c7(0x314)][_0x57b5c7(0x379)](_0x11dd3f);break;}case _0x57b5c7(0x356):_0x1c1d3c[_0x57b5c7(0x334)]=b(_0x1d9be5,++_0x52597d,_0x2759ef,_0x57b5c7(0x2eb));break;case _0x57b5c7(0x266):_0x1c1d3c[_0x57b5c7(0x2bb)]=b(_0x1d9be5,++_0x52597d,_0x2759ef,_0x57b5c7(0x27d));break;case _0x57b5c7(0x31c):_0x1c1d3c[_0x57b5c7(0x2c9)]=b(_0x1d9be5,++_0x52597d,_0x2759ef,'a\x20briefing\x20text');break;case _0x57b5c7(0x249):_0x1c1d3c[_0x57b5c7(0x247)]=K(_0x1d9be5,++_0x52597d,_0x2759ef,0x16d);break;case _0x57b5c7(0x3ca):_0x1c1d3c[_0x57b5c7(0x2e3)]=_0xb053b8['resolve'](process[_0x57b5c7(0x1e1)](),b(_0x1d9be5,++_0x52597d,_0x2759ef,_0x57b5c7(0x269)));break;case _0x57b5c7(0x3d0):_0x1c1d3c['bundledSkillsPath']=_0xb053b8['resolve'](process[_0x57b5c7(0x1e1)](),b(_0x1d9be5,++_0x52597d,_0x2759ef,_0x57b5c7(0x269)));break;case _0x57b5c7(0x2fb):{let _0x28c19e=b(_0x1d9be5,++_0x52597d,_0x2759ef,'an\x20effort\x20tier');pe['includes'](_0x28c19e)||(console[_0x57b5c7(0x206)]('Invalid\x20--effort:\x20'+_0x28c19e+_0x57b5c7(0x1b8)+pe['join'](_0x57b5c7(0x22b))+'.'),process[_0x57b5c7(0x395)](0x2)),_0x1c1d3c[_0x57b5c7(0x2df)]=_0x28c19e;break;}case'--tenant':{let _0x11eb09=_0x1d9be5[++_0x52597d];(!_0x11eb09||_0x11eb09[_0x57b5c7(0x3bc)]('--'))&&(console[_0x57b5c7(0x206)]('--tenant\x20requires\x20a\x20tenant\x20name.'),process[_0x57b5c7(0x395)](0x2)),_0x1c1d3c[_0x57b5c7(0x3c3)]=_0x11eb09;break;}case _0x57b5c7(0x33d):{let _0x462d6a=_0x1d9be5[++_0x52597d];[_0x57b5c7(0x3b8),_0x57b5c7(0x30a),'production',_0x57b5c7(0x258)][_0x57b5c7(0x3a2)](_0x462d6a)||(console[_0x57b5c7(0x206)]('Invalid\x20--env:\x20'+_0x462d6a+_0x57b5c7(0x1e7)),process[_0x57b5c7(0x395)](0x2)),_0x1c1d3c[_0x57b5c7(0x1d9)]=_0x462d6a;break;}case _0x57b5c7(0x1ba):case _0x57b5c7(0x304):{let _0x15eb29=b(_0x1d9be5,++_0x52597d,_0x2759ef,'a\x20deployment\x20URL,\x20e.g.\x20https://automationsuite.contoso.com'),_0x1f8ec3=_0x447e29(_0x15eb29);if(_0x1f8ec3['ok']===!0x1){console['error'](_0x3732a2(_0x15eb29,_0x1f8ec3['rejection'])),process[_0x57b5c7(0x395)](0x2);break;}_0x1c1d3c['url']=_0x1f8ec3[_0x57b5c7(0x2c1)];break;}case _0x57b5c7(0x3a7):_0x1c1d3c['skipEnvCheck']=!0x0;break;case'-h':case'--help':_0x1c1d3c['help']=!0x0;break;case'-v':case _0x57b5c7(0x232):_0x1c1d3c[_0x57b5c7(0x309)]=!0x0;break;default:_0x2759ef['startsWith']('--')&&(console[_0x57b5c7(0x206)](_0x57b5c7(0x23c)+_0x2759ef),process[_0x57b5c7(0x395)](0x2)),_0x25fde1['push'](_0x2759ef);}}return _0x1c1d3c[_0x57b5c7(0x3c3)]!==void 0x0&&_0x1c1d3c[_0x57b5c7(0x390)]!==_0x57b5c7(0x209)&&(console['error']('--tenant\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Switch\x20tenants\x20with:\x20delegate-cli\x20tenant\x20<name>'),process[_0x57b5c7(0x395)](0x2)),_0x1c1d3c['url']!==void 0x0&&_0x1c1d3c[_0x57b5c7(0x1d9)]!==void 0x0&&(console['error'](_0x57b5c7(0x293)),process[_0x57b5c7(0x395)](0x2)),_0x1c1d3c['url']!==void 0x0&&_0x1c1d3c['subcommand']!=='login'&&(console[_0x57b5c7(0x206)](_0x57b5c7(0x257)),process[_0x57b5c7(0x395)](0x2)),_0x1c1d3c[_0x57b5c7(0x247)]!==void 0x0&&_0x1c1d3c[_0x57b5c7(0x390)]!==_0x57b5c7(0x1f8)&&(console[_0x57b5c7(0x206)]('--days\x20applies\x20to\x20`delegate-cli\x20usage\x20activity|daily`\x20only.'),process[_0x57b5c7(0x395)](0x2)),_0x1c1d3c['jsonSchemaPath']!==void 0x0&&(_0x1c1d3c['subcommand']!==_0x57b5c7(0x355)&&_0x1c1d3c[_0x57b5c7(0x390)]!==''||_0x1c1d3c['cleanup'])&&(console[_0x57b5c7(0x206)]('--json-schema\x20applies\x20to\x20prompts\x20and\x20to\x20`delegate-cli\x20complete`\x20only.'),process['exit'](0x2)),_0x1c1d3c[_0x57b5c7(0x314)][_0x57b5c7(0x248)]>0x0&&(_0x1c1d3c['subcommand']!==''||_0x1c1d3c[_0x57b5c7(0x2bd)])&&(console[_0x57b5c7(0x206)](_0x57b5c7(0x3aa)),process[_0x57b5c7(0x395)](0x2)),_0x1c1d3c[_0x57b5c7(0x218)]&&(_0x1c1d3c[_0x57b5c7(0x390)]!==''||_0x1c1d3c['cleanup'])&&(console[_0x57b5c7(0x206)](_0x57b5c7(0x2d5)),process[_0x57b5c7(0x395)](0x2)),_0x1c1d3c[_0x57b5c7(0x218)]&&(_0x1c1d3c[_0x57b5c7(0x330)]||_0x1c1d3c[_0x57b5c7(0x37a)]||_0x1c1d3c[_0x57b5c7(0x2d0)]?.[_0x57b5c7(0x1c0)]()===B)&&(console[_0x57b5c7(0x206)]('--task-automation\x20needs\x20computer\x20use:\x20the\x20task\x20log\x20is\x20written\x20by\x20the\x20UI-automation\x20tools.\x20Drop\x20--headless,\x20--no-computer-use,\x20--cartographer\x20and\x20--vertical\x20cartographer.'),process[_0x57b5c7(0x395)](0x2)),_0x1c1d3c[_0x57b5c7(0x2ed)]&&(_0x1c1d3c['vertical']!==void 0x0&&_0x1c1d3c[_0x57b5c7(0x2d0)]['trim']()!==B&&(console[_0x57b5c7(0x206)](_0x57b5c7(0x2f4)+B+_0x57b5c7(0x323)+_0x1c1d3c[_0x57b5c7(0x2d0)]+_0x57b5c7(0x2af)),process[_0x57b5c7(0x395)](0x2)),_0x1c1d3c[_0x57b5c7(0x2d0)]=B),_0x1c1d3c[_0x57b5c7(0x274)]&&_0x1c1d3c['subcommand']!==_0x57b5c7(0x209)&&(console['error'](_0x57b5c7(0x1bc)),process[_0x57b5c7(0x395)](0x2)),_0x1c1d3c[_0x57b5c7(0x316)]!==_0x57b5c7(0x2cf)&&!ue[_0x57b5c7(0x3a2)](_0x1c1d3c[_0x57b5c7(0x390)])&&(console[_0x57b5c7(0x206)](_0x57b5c7(0x3b6)+_0x1c1d3c[_0x57b5c7(0x316)]+_0x57b5c7(0x284)+ue[_0x57b5c7(0x358)](Boolean)['join'](',\x20')+'.'),process[_0x57b5c7(0x395)](0x2)),(_0x1c1d3c[_0x57b5c7(0x36e)]!==_0x57b5c7(0x2cf)||_0x1c1d3c['replayUserMessages'])&&_0x1c1d3c[_0x57b5c7(0x390)]!==''&&(console[_0x57b5c7(0x206)](_0x57b5c7(0x1e2)),process['exit'](0x2)),_0x1c1d3c[_0x57b5c7(0x2a0)]&&_0x1c1d3c[_0x57b5c7(0x36e)]!==_0x57b5c7(0x205)&&(console['error'](_0x57b5c7(0x231)),process[_0x57b5c7(0x395)](0x2)),_0x1c1d3c['inputFormat']===_0x57b5c7(0x205)&&_0x1c1d3c[_0x57b5c7(0x316)]!==_0x57b5c7(0x205)&&(console[_0x57b5c7(0x206)](_0x57b5c7(0x3ad)),process[_0x57b5c7(0x395)](0x2)),(_0x1c1d3c[_0x57b5c7(0x3a4)]!==void 0x0||_0x1c1d3c[_0x57b5c7(0x251)]!==void 0x0||_0x1c1d3c[_0x57b5c7(0x32e)])&&_0x1c1d3c[_0x57b5c7(0x390)]!==_0x57b5c7(0x2b8)&&(console['error']('--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`delegate-cli\x20sessions`\x20only.'),process[_0x57b5c7(0x395)](0x2)),(_0x1c1d3c[_0x57b5c7(0x2bb)]!==void 0x0||_0x1c1d3c['contextSummary']!==void 0x0)&&_0x1c1d3c[_0x57b5c7(0x390)]!=='delegations'&&(console[_0x57b5c7(0x206)](_0x57b5c7(0x343)),process[_0x57b5c7(0x395)](0x2)),_0x1c1d3c['turnId']!==void 0x0&&_0x1c1d3c[_0x57b5c7(0x390)]!==_0x57b5c7(0x2b8)&&(console[_0x57b5c7(0x206)](_0x57b5c7(0x1d5)),process[_0x57b5c7(0x395)](0x2)),_0x1c1d3c['preloadSkills']=[...new Set(_0x1c1d3c[_0x57b5c7(0x28f)])],_0x1c1d3c[_0x57b5c7(0x23a)]=_0x25fde1,_0x1c1d3c[_0x57b5c7(0x302)]=_0x25fde1[_0x57b5c7(0x221)]('\x20'),_0x1c1d3c[_0x57b5c7(0x36e)]===_0x57b5c7(0x205)&&_0x1c1d3c['prompt']!==''&&(console['error']('--input-format\x20stream-json\x20reads\x20the\x20prompt\x20from\x20stdin:\x20pass\x20no\x20prompt\x20argument.'),process['exit'](0x2)),_0x1c1d3c;}var O=_0x4ab6e4=>{const _0x126848=_0x5a74af;process['stdout'][_0x126848(0x1f1)](_0x4ab6e4);};function Qt(){const _0x40f1c2=_0x5a74af;let _0x76e1f5=process['stdout'][_0x40f1c2(0x1f1)],_0x4f4324=_0x76e1f5['bind'](process['stdout']),_0x14bfea=O;return O=_0x1f9f8c=>{_0x4f4324(_0x1f9f8c);},process['stdout'][_0x40f1c2(0x1f1)]=(..._0x2a6da5)=>process['stderr']['write'](..._0x2a6da5),()=>{const _0x832436=_0x40f1c2;process[_0x832436(0x262)][_0x832436(0x1f1)]=_0x76e1f5,O=_0x14bfea;};}function m(_0x39d923,_0x4045fa,_0x4cbccb){const _0x162f37=_0x5a74af;if(_0x39d923[_0x162f37(0x316)]===_0x162f37(0x2cf)){_0x4cbccb(_0x4045fa);return;}O(_0x47513a(_0x4045fa));}function qt(){const _0x1f359f=_0x5a74af;let _0x182a6e='\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'['trim']();console[_0x1f359f(0x3b3)](_0x182a6e);}function zt(){const _0x30ae7e=_0x5a74af;try{return JSON[_0x30ae7e(0x240)](_0x43634d[_0x30ae7e(0x229)](_0xb053b8[_0x30ae7e(0x221)](__dirname,'..','package.json'),_0x30ae7e(0x21d)))[_0x30ae7e(0x309)]||_0x30ae7e(0x3be);}catch{return _0x30ae7e(0x3be);}}var Yt=0x7d0;async function me(_0x54f419,_0x478c2d){const _0x30562e=_0x5a74af;let _0x4e30de=_0x478c2d?[_0x478c2d]:[];for await(let _0x5bad4d of _0x54f419)_0x4e30de['push'](Buffer['from'](_0x5bad4d));return Buffer[_0x30562e(0x357)](_0x4e30de)[_0x30562e(0x339)]('utf-8')['trim']();}function Vt(_0x3f319d,_0x349f29){return new Promise(_0x3c62f5=>{const _0x3b1e83=_0xc8d3;let _0xf8d0f8=_0x47b5eb=>{const _0x1266ec=_0xc8d3;clearTimeout(_0x34925e),_0x3f319d[_0x1266ec(0x225)](_0x1266ec(0x1d3),_0x102885),_0x3f319d[_0x1266ec(0x225)](_0x1266ec(0x346),_0x294132),_0x3f319d['off'](_0x1266ec(0x206),_0x294132),_0x3f319d[_0x1266ec(0x359)](),_0x3c62f5(_0x47b5eb);},_0x102885=_0x1688a0=>_0xf8d0f8(Buffer[_0x3b1e83(0x275)](_0x1688a0)),_0x294132=()=>_0xf8d0f8(null),_0x34925e=setTimeout(()=>_0xf8d0f8(null),_0x349f29);_0x3f319d['on']('data',_0x102885),_0x3f319d['on'](_0x3b1e83(0x346),_0x294132),_0x3f319d['on']('error',_0x294132),_0x3f319d[_0x3b1e83(0x2f9)]();});}async function H(_0x407668,_0x424e70,_0xb8c945=Yt){let _0x3c3c83=_0x407668==='-';if(!_0x3c3c83&&_0x407668)return _0x407668;if(!_0x3c3c83&&_0x424e70['isTTY'])return'';if(_0x3c3c83)return me(_0x424e70,null);let _0x37862a=await Vt(_0x424e70,_0xb8c945);return _0x37862a?me(_0x424e70,_0x37862a):'';}function z(){const _0x4a42ba=_0x5a74af;return _0xb053b8[_0x4a42ba(0x221)](process.env.HOME||process.env.USERPROFILE||'',_0x4a42ba(0x360),_0x4a42ba(0x211));}function G(_0x294f62){const _0x4e0fb5=_0x5a74af;try{let _0x4e4baa=JSON[_0x4e0fb5(0x240)](_0x43634d[_0x4e0fb5(0x229)](_0x294f62,_0x4e0fb5(0x21d)));return!_0x4e4baa[_0x4e0fb5(0x263)]||!_0x4e4baa[_0x4e0fb5(0x396)]||!_0x4e4baa['organizationId']?null:_0x4e4baa;}catch{return null;}}function Xt(){const _0x5307ec=_0x5a74af;let _0x15bce4=[{'file':_0x24045b(),'isDesktopFallback':!0x1},{'file':z(),'isDesktopFallback':!0x0}];for(let _0x7abb70 of _0x15bce4){let _0x2876c1=G(_0x7abb70[_0x5307ec(0x22a)]);if(_0x2876c1)return{..._0x7abb70,'auth':_0x2876c1};}return null;}async function Zt(){const _0x3e9033=_0x5a74af;let _0x1becf9=_0x24045b();if(!_0x43634d[_0x3e9033(0x397)](_0x1becf9)){let _0x2fb5ce=z();console[_0x3e9033(0x3b3)](G(_0x2fb5ce)?_0x3e9033(0x20f)+_0x2fb5ce+_0x3e9033(0x1cb):_0x3e9033(0x2be));return;}_0x43634d[_0x3e9033(0x2c2)](_0x1becf9),console[_0x3e9033(0x3b3)](_0x3e9033(0x336)+_0x1becf9);}async function en(_0x34faaa){const _0x4299e2=_0x5a74af;let _0x1a7a41=Y(),_0x2705eb,_0xe8a7d8;if(_0x1a7a41)_0x2705eb=_0x1a7a41,_0xe8a7d8='environment\x20variables\x20(AUTH_TOKEN/TENANT_ID/ORG_ID)';else{let _0x80519=Xt();if(!_0x80519)throw new Error(Te);_0x2705eb=_0x80519[_0x4299e2(0x364)],_0xe8a7d8=_0x80519[_0x4299e2(0x32f)]?_0x80519[_0x4299e2(0x22a)]+'\x20(Delegate\x20desktop\x20app\x20fallback)':_0x80519[_0x4299e2(0x22a)];}let _0x1a2f40={'source':_0xe8a7d8,'baseUrl':_0x2705eb[_0x4299e2(0x2c1)]??null,'deployment':tn(_0x2705eb[_0x4299e2(0x2c1)]),'organization':{'id':_0x2705eb['organizationId'],'slug':_0x2705eb[_0x4299e2(0x2b1)]??null},'tenant':{'id':_0x2705eb[_0x4299e2(0x396)],'name':_0x2705eb[_0x4299e2(0x3a1)]??null},'tokenExpiresAt':_0x2705eb[_0x4299e2(0x38c)]?new Date(_0x2705eb['expiresAt']*0x3e8)[_0x4299e2(0x24c)]():null};m(_0x34faaa,_0x1a2f40,()=>{const _0x50c823=_0x4299e2;let _0x2145c1=[_0x50c823(0x291)+_0xe8a7d8,'Base\x20URL:\x20\x20\x20\x20\x20'+(_0x2705eb[_0x50c823(0x2c1)]??_0x50c823(0x3be)),'Deployment:\x20\x20\x20'+_0x1a2f40[_0x50c823(0x326)],'Organization:\x20'+(_0x2705eb[_0x50c823(0x2b1)]??_0x50c823(0x25a))+'\x20('+_0x2705eb[_0x50c823(0x371)]+')',_0x50c823(0x2b6)+(_0x2705eb[_0x50c823(0x3a1)]??'unknown\x20slug')+'\x20('+_0x2705eb[_0x50c823(0x396)]+')'];if(_0x2705eb[_0x50c823(0x38c)]){let _0x3bbec2=_0x2705eb[_0x50c823(0x38c)]-Math['floor'](Date[_0x50c823(0x3cb)]()/0x3e8);_0x2145c1[_0x50c823(0x379)](_0x3bbec2>0x0?_0x50c823(0x2a3)+_0x1a2f40['tokenExpiresAt']+_0x50c823(0x38b)+Math[_0x50c823(0x31d)](_0x3bbec2/0x3c)+_0x50c823(0x354):_0x50c823(0x32b)+_0x1a2f40[_0x50c823(0x320)]);}process['stdout'][_0x50c823(0x1f1)](_0x2145c1[_0x50c823(0x221)]('\x0a')+'\x0a');});}function _0xc8d3(_0x52f4ee,_0x456857){_0x52f4ee=_0x52f4ee-0x1b7;const _0x3352a4=_0x3352();let _0xc8d34f=_0x3352a4[_0x52f4ee];return _0xc8d34f;}var Te=_0x5a74af(0x1f0);function tn(_0x482c6f){const _0x16d686=_0x5a74af;return _0x482c6f?_0x5541b8(_0x482c6f)?_0x16d686(0x33e):'self-hosted\x20(Automation\x20Suite\x20/\x20Dedicated)':'unknown';}function Y(){let _0x231db0=process.env.AUTH_TOKEN_FILE;return(process.env.AUTH_TOKEN||_0x231db0)&&process.env.TENANT_ID&&process.env.ORG_ID?{'accessToken':_0x231db0?nn(_0x231db0):process.env.AUTH_TOKEN,..._0x231db0?{'accessTokenFile':_0x231db0}:{},'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(_0x4d772a){const _0x2d0e29=_0x5a74af;let _0x3ac6a1;try{_0x3ac6a1=_0x43634d['readFileSync'](_0x4d772a,'utf-8')[_0x2d0e29(0x1c0)]();}catch(_0x2b3d31){throw new Error(_0x2d0e29(0x31a)+_0x4d772a+_0x2d0e29(0x1da)+_0x2b3d31[_0x2d0e29(0x2e0)]);}let _0x65d5cc=_0x3ac6a1['startsWith'](_0x2d0e29(0x2bc))?_0x3ac6a1[_0x2d0e29(0x385)](0x7)[_0x2d0e29(0x1c0)]():_0x3ac6a1;if(!_0x65d5cc)throw new Error(_0x2d0e29(0x31a)+_0x4d772a+'\x27\x20is\x20empty.');return _0x65d5cc;}function Ue(){const _0x12ef6b=_0x5a74af;let _0x59c17b=process.env.UIPATH_BASE_URL;if(!_0x59c17b)return;let _0x44cb0b=_0x447e29(_0x59c17b);if(_0x44cb0b['ok']===!0x1)throw new Error('UIPATH_BASE_URL\x20is\x20unusable.\x20'+_0x3732a2(_0x59c17b,_0x44cb0b[_0x12ef6b(0x268)]));return _0x44cb0b[_0x12ef6b(0x2c1)];}async function V(){let _0x5a98bb=Y();if(_0x5a98bb)return _0x5a98bb;let _0x28f74f=await _0x454e9c();if(_0x28f74f)return _0x28f74f;throw new Error(Te);}async function sn(){const _0x3050d1=_0x5a74af;await new _0x1fa3fc()['stop']({'force':!0x0}),console[_0x3050d1(0x3b3)](_0x3050d1(0x1d1));}function X(_0x3861fa,_0x512d29,_0xd52293){const _0x400b1a=_0x5a74af;_0x3861fa?process[_0x400b1a(0x3ce)][_0x400b1a(0x1f1)]('[env='+_0x3861fa+_0x400b1a(0x22e)+_0xd52293+'\x0a'):!_0x512d29&&!process.env.BACKEND_URL&&process[_0x400b1a(0x3ce)][_0x400b1a(0x1f1)]('[saved\x20login]\x20Backend\x20URL:\x20'+_0xd52293+'\x0a');}async function $(_0xc5a8b9){const _0x106b6c=_0x5a74af;let _0x391abb=await V(),_0x44c6a2=_0x3b2a5b(_0xc5a8b9[_0x106b6c(0x1d9)],_0x391abb,_0xc5a8b9[_0x106b6c(0x383)]);return X(_0xc5a8b9[_0x106b6c(0x1d9)],_0xc5a8b9[_0x106b6c(0x383)],_0x44c6a2),{'auth':_0x391abb,'backendUrl':_0x44c6a2,'client':_0x5b33b7({'auth':_0x391abb,'backendUrl':_0x44c6a2})};}async function on(_0x1aaf3a){const _0x1aa3c1=_0x5a74af;let {client:_0x570506}=await $(_0x1aaf3a),[_0x300953,_0xf46a26]=await Promise[_0x1aa3c1(0x311)]([_0x4ead5b(_0x570506),_0xc1ec94(_0x570506)[_0x1aa3c1(0x1dc)](_0x26a6a5=>(process[_0x1aa3c1(0x3ce)]['write'](_0x1aa3c1(0x20d)+(_0x26a6a5 instanceof Error?_0x26a6a5['message']:String(_0x26a6a5))+'\x0a'),{}))]),_0x278220=_0x300953['map'](_0x3bbb3e=>_0xf46a26[_0x3bbb3e['id']]?{..._0x3bbb3e,'byoWarning':_0xf46a26[_0x3bbb3e['id']]}:_0x3bbb3e);m(_0x1aaf3a,_0x278220,rn);}function rn(_0x46c51f){const _0xb83e6b=_0x5a74af;if(_0x46c51f['length']===0x0){process[_0xb83e6b(0x3ce)][_0xb83e6b(0x1f1)](_0xb83e6b(0x349));return;}process[_0xb83e6b(0x262)]['write'](_0xb83e6b(0x281)+_0x46c51f['length']+_0xb83e6b(0x297));for(let _0x3eecea of _0x46c51f){let _0x5a9fff=_0x3eecea[_0xb83e6b(0x261)]&&_0x3eecea['name']!==_0x3eecea['id']?'\x20('+_0x3eecea[_0xb83e6b(0x261)]+')':'';process[_0xb83e6b(0x262)]['write']('\x20\x20'+_0x3eecea['id']+_0x5a9fff+'\x0a'),_0x3eecea[_0xb83e6b(0x29c)]&&process[_0xb83e6b(0x262)][_0xb83e6b(0x1f1)](_0xb83e6b(0x28d)+_0x3eecea[_0xb83e6b(0x29c)]+'\x0a'),_0x3eecea[_0xb83e6b(0x277)]&&process[_0xb83e6b(0x262)]['write']('\x20\x20\x20\x20Not\x20available\x20on\x20this\x20plan'+(_0x3eecea['lockReason']?'\x20('+_0x3eecea[_0xb83e6b(0x1d7)]+')':'')+'\x0a'),_0x3eecea[_0xb83e6b(0x21a)]&&process['stdout']['write']('\x20\x20\x20\x20BYO\x20warning:\x20'+_0x3eecea[_0xb83e6b(0x21a)]+'\x0a');}process[_0xb83e6b(0x262)][_0xb83e6b(0x1f1)](_0xb83e6b(0x308));}var fe=[_0x5a74af(0x378),'show','rename',_0x5a74af(0x2c0),_0x5a74af(0x376),_0x5a74af(0x3b5)];async function an(_0x55681e){const _0xe11aa6=_0x5a74af;let [_0x30dca0='',_0x202888='',..._0x36258d]=_0x55681e[_0xe11aa6(0x23a)];if(_0x30dca0&&!fe[_0xe11aa6(0x3a2)](_0x30dca0)&&(console[_0xe11aa6(0x206)]('Unknown\x20sessions\x20action:\x20'+_0x30dca0+'.\x20Use:\x20'+fe[_0xe11aa6(0x221)](_0xe11aa6(0x22b))+'.'),process[_0xe11aa6(0x395)](0x2)),_0x55681e[_0xe11aa6(0x334)]!==void 0x0&&_0x30dca0!==_0xe11aa6(0x376)&&(console[_0xe11aa6(0x206)](_0xe11aa6(0x1d5)),process['exit'](0x2)),_0x30dca0&&_0x30dca0!=='list'){await ln(_0x55681e,_0x30dca0,_0x202888,_0x36258d[_0xe11aa6(0x221)]('\x20')[_0xe11aa6(0x1c0)]());return;}_0x55681e[_0xe11aa6(0x23a)][_0xe11aa6(0x248)]>0x1&&(console[_0xe11aa6(0x206)](_0xe11aa6(0x1ce)),process[_0xe11aa6(0x395)](0x2));let {client:_0x439c19}=await $(_0x55681e),_0x23ec6b=await _0xcd6bcf(_0x439c19,{'page':_0x55681e[_0xe11aa6(0x3a4)],'pageSize':_0x55681e[_0xe11aa6(0x251)],'includeSubAgents':_0x55681e['includeSubAgents']});m(_0x55681e,_0x23ec6b,pn);}async function ln(_0xc98e24,_0x1e9673,_0x4e53bd,_0x35bdd5){const _0x236408=_0x5a74af;if((_0xc98e24['page']!==void 0x0||_0xc98e24[_0x236408(0x251)]!==void 0x0||_0xc98e24[_0x236408(0x32e)])&&(console[_0x236408(0x206)](_0x236408(0x1e0)),process['exit'](0x2)),_0x1e9673===_0x236408(0x376)){await dn(_0xc98e24,_0x4e53bd,_0x35bdd5);return;}if(_0x1e9673===_0x236408(0x3b5)){await un(_0xc98e24,_0x4e53bd,_0x35bdd5);return;}(!_0x4e53bd||_0x1e9673===_0x236408(0x2dc)!=!!_0x35bdd5)&&(console[_0x236408(0x206)](_0x236408(0x25e)+_0x1e9673+_0x236408(0x1c6)+(_0x1e9673===_0x236408(0x2dc)?_0x236408(0x235):'')),process[_0x236408(0x395)](0x2));let {client:_0x2c863e}=await $(_0xc98e24);try{if(_0x1e9673===_0x236408(0x352)){let _0x4bfd30=await _0x49700a(_0x2c863e,_0x4e53bd);_0x4bfd30||ge(_0x4e53bd),m(_0xc98e24,_0x4bfd30,cn);}else{if(_0x1e9673===_0x236408(0x2dc)){let _0x3ba682=await _0x194246(_0x2c863e,_0x4e53bd,_0x35bdd5);m(_0xc98e24,_0x3ba682,_0x4a61a0=>{const _0x5013de=_0x236408;process[_0x5013de(0x262)][_0x5013de(0x1f1)](_0x5013de(0x2e8)+_0x4a61a0['id']+':\x20'+_0x4a61a0[_0x5013de(0x1fa)]+'\x0a');});}else await _0x24f820(_0x2c863e,_0x4e53bd),await _0x13eeee(_0x4e53bd,_0xc98e24[_0x236408(0x2e3)]),m(_0xc98e24,{'id':_0x4e53bd,'deleted':!0x0},_0x348213=>{const _0xe34d90=_0x236408;process[_0xe34d90(0x262)][_0xe34d90(0x1f1)](_0xe34d90(0x2b0)+_0x348213['id']+'.\x0a');});}}catch(_0x572e1b){if(!_0x42b6f9(_0x572e1b,0x194))throw _0x572e1b;ge(_0x4e53bd);}}function ge(_0x152f34){const _0x2aa47f=_0x5a74af;console[_0x2aa47f(0x206)]('Session\x20'+_0x152f34+_0x2aa47f(0x207)),process[_0x2aa47f(0x395)](0x1);}function cn(_0x132ae9){const _0x50dbdf=_0x5a74af;process[_0x50dbdf(0x262)][_0x50dbdf(0x1f1)](_0x50dbdf(0x3c0)+_0x132ae9['id']+'\x0a'),process[_0x50dbdf(0x262)][_0x50dbdf(0x1f1)](_0x50dbdf(0x2a5)+_0x132ae9[_0x50dbdf(0x1fa)]+'\x0a'),process[_0x50dbdf(0x262)][_0x50dbdf(0x1f1)](_0x50dbdf(0x365)+_0x132ae9[_0x50dbdf(0x26e)]+'\x0a'),process['stdout'][_0x50dbdf(0x1f1)](_0x50dbdf(0x34d)+_0x132ae9['organizationId']+'\x0a'),_0x132ae9[_0x50dbdf(0x2ee)]&&process[_0x50dbdf(0x262)]['write'](_0x50dbdf(0x3c5)+_0x132ae9[_0x50dbdf(0x2ee)]+'\x0a');}async function dn(_0x3d4b6a,_0x10f2d6,_0x23cb85){const _0x3bf6d8=_0x5a74af;(!_0x10f2d6||_0x23cb85||!_0x3d4b6a[_0x3bf6d8(0x334)])&&(console[_0x3bf6d8(0x206)](_0x3bf6d8(0x34a)),process['exit'](0x2));let {client:_0x2c7903}=await $(_0x3d4b6a),_0x20487a=await _0x109505(_0x2c7903,_0x10f2d6,_0x3d4b6a[_0x3bf6d8(0x334)]);m(_0x3d4b6a,{'sessionId':_0x10f2d6,'turnId':_0x3d4b6a['turnId'],'cancelled':_0x20487a},_0x17eeb1=>{const _0x1f176d=_0x3bf6d8;_0x17eeb1[_0x1f176d(0x31b)]?process['stdout'][_0x1f176d(0x1f1)](_0x1f176d(0x1ee)+_0x17eeb1[_0x1f176d(0x334)]+_0x1f176d(0x22d)+_0x17eeb1['sessionId']+'.\x0a'):process[_0x1f176d(0x3ce)][_0x1f176d(0x1f1)]('No\x20turn\x20'+_0x17eeb1['turnId']+_0x1f176d(0x223)+_0x17eeb1[_0x1f176d(0x282)]+'.\x0a');}),_0x20487a||(process[_0x3bf6d8(0x2b5)]=0x1);}async function un(_0x2d267d,_0x3374c7,_0x202f95){const _0x8637c=_0x5a74af;(!_0x3374c7||/\s/[_0x8637c(0x255)](_0x202f95))&&(console['error'](_0x8637c(0x332)),process[_0x8637c(0x395)](0x2));let {client:_0x45c352}=await $(_0x2d267d),_0x1d6f92;try{_0x1d6f92=await _0x39b021(_0x45c352,_0x3374c7,{'atMessageId':_0x202f95||void 0x0});}catch(_0x53de6c){if(!_0x42b6f9(_0x53de6c,0x194))throw _0x53de6c;console[_0x8637c(0x206)](_0x8637c(0x1b7)+_0x3374c7+_0x8637c(0x24d)+(_0x202f95?_0x8637c(0x2a1)+_0x202f95:'')+'.'),process['exit'](0x1);}m(_0x2d267d,_0x1d6f92,_0x38429f=>{const _0x94791f=_0x8637c;process[_0x94791f(0x262)]['write'](_0x94791f(0x1ef)+_0x3374c7+_0x94791f(0x272)+_0x38429f['id']+'.\x0a'),process[_0x94791f(0x3ce)][_0x94791f(0x1f1)](_0x94791f(0x21c)+_0x38429f['id']+_0x94791f(0x39d));});}function pn({sessions:_0x41b9dd,page:_0x530e28,isLastPage:_0x3ed9d0}){const _0x4156a1=_0x5a74af;if(_0x41b9dd['length']===0x0)process[_0x4156a1(0x3ce)][_0x4156a1(0x1f1)](_0x4156a1(0x3bb)+_0x530e28+'.\x0a');else{process[_0x4156a1(0x262)][_0x4156a1(0x1f1)]('ID'[_0x4156a1(0x202)](0x24)+'\x20\x20'+_0x4156a1(0x25d)[_0x4156a1(0x202)](0x13)+'\x20\x20TITLE\x0a');for(let _0x114edc of _0x41b9dd){let _0x608efd=_0x114edc[_0x4156a1(0x26b)]['replace']('T','\x20')[_0x4156a1(0x385)](0x0,0x13),_0x2b14af=_0x114edc[_0x4156a1(0x2f3)]?_0x4156a1(0x306)+_0x114edc[_0x4156a1(0x2f3)]+')':'';process['stdout'][_0x4156a1(0x1f1)](_0x114edc['id'][_0x4156a1(0x202)](0x24)+'\x20\x20'+_0x608efd[_0x4156a1(0x202)](0x13)+'\x20\x20'+_0x114edc[_0x4156a1(0x1fa)]+_0x2b14af+'\x0a');}}_0x3ed9d0||process[_0x4156a1(0x3ce)]['write'](_0x4156a1(0x3c9)+(_0x530e28+0x1)+'\x0a');}async function mn(_0x201282){const _0x305ab5=_0x5a74af;let _0x15320a=await V(),_0x19e813=_0x3b2a5b(_0x201282[_0x305ab5(0x1d9)],_0x15320a,_0x201282[_0x305ab5(0x383)]);X(_0x201282[_0x305ab5(0x1d9)],_0x201282[_0x305ab5(0x383)],_0x19e813);let _0x312d19=await _0x1f9689({'auth':_0x15320a,'backendUrl':_0x19e813,'interop':_0x201282[_0x305ab5(0x330)]?'skip':_0x305ab5(0x215)});m(_0x201282,_0x312d19,({checks:_0x455dda})=>{const _0x5f48ce=_0x305ab5;for(let _0x1cb69d of _0x455dda)process[_0x5f48ce(0x262)]['write'](fn(_0x1cb69d)+'\x0a');}),_0x312d19['ok']||process['exit'](0x1);}function fn(_0x478fd6){const _0x12525e=_0x5a74af;return{'ok':'β','failed':'β','skipped':'-'}[_0x478fd6[_0x12525e(0x30e)]]+'\x20'+_0x478fd6['name'][_0x12525e(0x202)](0xa)+_0x478fd6[_0x12525e(0x377)];}var gn=['','activity',_0x5a74af(0x2da)];async function hn(_0x1e5555){const _0x52121a=_0x5a74af;let _0x1bdf8b=_0x1e5555[_0x52121a(0x302)];gn[_0x52121a(0x3a2)](_0x1bdf8b)||(console[_0x52121a(0x206)](_0x52121a(0x239)+_0x1e5555[_0x52121a(0x302)]+_0x52121a(0x312)),process[_0x52121a(0x395)](0x2)),_0x1bdf8b===''&&_0x1e5555[_0x52121a(0x247)]!==void 0x0&&(console['error']('--days\x20applies\x20to\x20`delegate-cli\x20usage\x20activity|daily`;\x20the\x20summary\x20covers\x20the\x20current\x20month.'),process['exit'](0x2)),_0x1bdf8b!==''&&_0x1e5555['sessionId']!==void 0x0&&(console[_0x52121a(0x206)](_0x52121a(0x294)),process[_0x52121a(0x395)](0x2));let {client:_0xa47f19}=await $(_0x1e5555);if(_0x1bdf8b===_0x52121a(0x1f7)){m(_0x1e5555,await _0x52611b(_0xa47f19,{'days':_0x1e5555['days']}),wn);return;}if(_0x1bdf8b===_0x52121a(0x2da)){m(_0x1e5555,await _0x461ef2(_0xa47f19,{'days':_0x1e5555[_0x52121a(0x247)]}),kn);return;}let [_0x387015,_0x3eca66,_0x5ef2a9]=await Promise['all']([_0x380edc(_0xa47f19,{'sessionId':_0x1e5555['sessionId']}),_0x361533(_0xa47f19),_0x15cc56(_0xa47f19)]);m(_0x1e5555,{'licensing':_0x387015,'monthlySpending':_0x3eca66,'cartographerAllowance':_0x5ef2a9},yn);}function yn(_0x479fc7){const _0x4ece0=_0x5a74af;let {licensing:_0x58156d,monthlySpending:_0x10f622,cartographerAllowance:_0x33f920}=_0x479fc7,_0x370525=[_0x58156d['limit_enabled']?'Licensing:\x20\x20\x20\x20'+_0x58156d[_0x4ece0(0x391)][_0x4ece0(0x2c3)](0x1)+_0x4ece0(0x212)+(_0x58156d[_0x4ece0(0x28b)]??0x0)+_0x4ece0(0x2ce)+(_0x58156d[_0x4ece0(0x213)]>0x0?',\x20'+_0x58156d[_0x4ece0(0x213)]+_0x4ece0(0x35d):'')+_0x4ece0(0x30b)+_0x58156d['period_end']+')':_0x4ece0(0x278),'Spending:\x20\x20\x20\x20\x20$'+_0x10f622[_0x4ece0(0x29b)][_0x4ece0(0x2c3)](0x2)+_0x4ece0(0x27e)+(_0x10f622[_0x4ece0(0x3cd)]&&_0x10f622[_0x4ece0(0x347)]!==null?'\x20of\x20a\x20$'+_0x10f622[_0x4ece0(0x347)][_0x4ece0(0x2c3)](0x2)+_0x4ece0(0x3a5):_0x4ece0(0x1bd)),_0x4ece0(0x2fa)+_0x33f920[_0x4ece0(0x2fd)]+'\x20('+_0x33f920[_0x4ece0(0x37c)]+')'];_0x58156d['session_consumed_pu']!==null&&_0x58156d['session_consumed_pu']!==void 0x0&&_0x370525[_0x4ece0(0x379)](_0x4ece0(0x252)+_0x58156d[_0x4ece0(0x393)]+'\x20PU'),process[_0x4ece0(0x262)][_0x4ece0(0x1f1)](_0x370525[_0x4ece0(0x221)]('\x0a')+'\x0a');}function wn(_0x45e547){const _0x4e6875=_0x5a74af;let _0x2abe4c=[_0x4e6875(0x2fc)+_0x45e547[_0x4e6875(0x3a3)]+_0x4e6875(0x2d1)+_0x45e547[_0x4e6875(0x39f)]+_0x4e6875(0x27c)+_0x45e547[_0x4e6875(0x2d9)]+_0x4e6875(0x287),_0x4e6875(0x37b)+_0x45e547[_0x4e6875(0x267)]['toFixed'](0x2)+_0x4e6875(0x389)+_0x45e547['estimated_cost_usd'][_0x4e6875(0x2c3)](0x2)+_0x4e6875(0x30d)+_0x45e547[_0x4e6875(0x353)]+_0x4e6875(0x2db),_0x4e6875(0x208)+_0x45e547['total_prompt_tokens']+_0x4e6875(0x241)+_0x45e547[_0x4e6875(0x2cc)]+_0x4e6875(0x226)];for(let [_0x302f0a,_0x21204c]of Object[_0x4e6875(0x28c)](_0x45e547['models_breakdown']))_0x2abe4c[_0x4e6875(0x379)]('\x20\x20'+_0x302f0a+':\x20'+_0x21204c+_0x4e6875(0x338));process[_0x4e6875(0x262)][_0x4e6875(0x1f1)](_0x2abe4c[_0x4e6875(0x221)]('\x0a')+'\x0a');}function kn(_0x25886d){const _0x1ac529=_0x5a74af;if(_0x25886d[_0x1ac529(0x30f)][_0x1ac529(0x248)]===0x0){process[_0x1ac529(0x262)][_0x1ac529(0x1f1)](_0x1ac529(0x256)+_0x25886d[_0x1ac529(0x3a3)]+_0x1ac529(0x363));return;}let _0x48f525=[_0x1ac529(0x2ec)];for(let _0x14b09a of _0x25886d['daily_usage'])_0x48f525['push'](_0x14b09a['date']+'\x20\x20'+String(_0x14b09a[_0x1ac529(0x2fe)])[_0x1ac529(0x286)](0xb)+'\x20\x20'+String(_0x14b09a['prompt_tokens'])[_0x1ac529(0x286)](0xd)+'\x20\x20'+String(_0x14b09a['completion_tokens'])[_0x1ac529(0x286)](0x11));process[_0x1ac529(0x262)][_0x1ac529(0x1f1)](_0x48f525[_0x1ac529(0x221)]('\x0a')+'\x0a');}async function bn(_0xe8c142,_0x2fcd83){const _0x2bf158=_0x5a74af;let _0x113325=await Sn(_0xe8c142['prompt'],_0x2fcd83);_0xe8c142[_0x2bf158(0x2f8)]&&(_0x113325[_0x2bf158(0x2f8)]=_0xe8c142[_0x2bf158(0x2f8)]);let {client:_0x48aa5c}=await $(_0xe8c142);try{_0x2fcd83==='evaluate'?m(_0xe8c142,await _0xeda7f9(_0x48aa5c,_0x113325,void 0x0),An):_0x2fcd83===_0x2bf158(0x2ca)?m(_0xe8c142,await _0x55a147(_0x48aa5c,_0x113325,void 0x0),En):m(_0xe8c142,await _0x4d484d(_0x48aa5c,_0x113325,void 0x0),$n);}catch(_0x1ad68d){if(!_0x48ba12(_0x1ad68d))throw _0x1ad68d;console['error'](_0x1ad68d['message']),process['exit'](0x1);}}async function Sn(_0x468e16,_0xfd9ef5){const _0x1bb71b=_0x5a74af;let _0x256b4c;try{_0x256b4c=_0x468e16&&_0x468e16!=='-'?_0x43634d[_0x1bb71b(0x229)](_0xb053b8[_0x1bb71b(0x3af)](_0x468e16),_0x1bb71b(0x21d)):await H(_0x468e16,process[_0x1bb71b(0x369)]);}catch(_0x375eca){console[_0x1bb71b(0x206)](_0xfd9ef5+':\x20cannot\x20read\x20the\x20request\x20('+_0x375eca[_0x1bb71b(0x2e0)]+').'),process[_0x1bb71b(0x395)](0x2);}return _0x256b4c||(console['error'](_0xfd9ef5+'\x20needs\x20a\x20JSON\x20request:\x20delegate-cli\x20'+_0xfd9ef5+_0x1bb71b(0x2c7)),process['exit'](0x2)),De(_0x256b4c,_0xfd9ef5,_0x1bb71b(0x33b));}function De(_0x4e0a80,_0x20635f,_0xb0fa84){const _0x1256c0=_0x5a74af;let _0x5c3ab5;try{_0x5c3ab5=JSON['parse'](_0x4e0a80);}catch(_0x1bfda7){console[_0x1256c0(0x206)](_0x20635f+':\x20'+_0xb0fa84+_0x1256c0(0x238)+_0x1bfda7[_0x1256c0(0x2e0)]+').'),process[_0x1256c0(0x395)](0x2);}return(typeof _0x5c3ab5!=_0x1256c0(0x3a0)||_0x5c3ab5===null||Array[_0x1256c0(0x289)](_0x5c3ab5))&&(console[_0x1256c0(0x206)](_0x20635f+':\x20'+_0xb0fa84+'\x20must\x20be\x20a\x20JSON\x20object.'),process[_0x1256c0(0x395)](0x2)),_0x5c3ab5;}function Ne(_0x4fd8ee,_0x406793){const _0x115b09=_0x5a74af;let _0x483f6a;try{_0x483f6a=_0x43634d[_0x115b09(0x229)](_0xb053b8[_0x115b09(0x3af)](_0x4fd8ee),_0x115b09(0x21d));}catch(_0x330ccb){console[_0x115b09(0x206)](_0x406793+_0x115b09(0x259)+_0x330ccb[_0x115b09(0x2e0)]+').'),process['exit'](0x2);}return De(_0x483f6a,_0x406793,_0x115b09(0x1cc));}async function vn(_0x2cda01){const _0x5ca97c=_0x5a74af;_0x2cda01[_0x5ca97c(0x3bd)]===void 0x0&&(console[_0x5ca97c(0x206)](_0x5ca97c(0x340)),process['exit'](0x2));let _0x48fb37=Ne(_0x2cda01[_0x5ca97c(0x3bd)],_0x5ca97c(0x355)),_0x39fa9b=(await H(_0x2cda01['prompt'],process[_0x5ca97c(0x369)]))[_0x5ca97c(0x1c0)]();_0x39fa9b||(console[_0x5ca97c(0x206)]('complete\x20needs\x20a\x20prompt:\x20delegate-cli\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22,\x20or\x20-\x20to\x20read\x20stdin.'),process[_0x5ca97c(0x395)](0x2));let {client:_0x112574}=await $(_0x2cda01);try{let _0x38d59b=await _0x382ae7(_0x112574,{'prompt':_0x39fa9b,'jsonSchema':_0x48fb37,'model':_0x2cda01[_0x5ca97c(0x2f8)]||process.env.MODEL||_0x4bfb05,..._0x2cda01[_0x5ca97c(0x282)]!==void 0x0&&{'sessionId':_0x2cda01[_0x5ca97c(0x282)]}},void 0x0);m(_0x2cda01,_0x38d59b,_0x11f4f6=>{const _0x5d57bb=_0x5ca97c;process['stdout'][_0x5d57bb(0x1f1)](JSON[_0x5d57bb(0x1f2)](_0x11f4f6[_0x5d57bb(0x325)],null,0x2)+'\x0a');});}catch(_0x50d56b){if(!_0x48ea37(_0x50d56b))throw _0x50d56b;console[_0x5ca97c(0x206)](_0x50d56b[_0x5ca97c(0x2e0)]),process['exit'](0x1);}}function Z(_0x3b6bbe){const _0x19134c=_0x5a74af;process['stdout'][_0x19134c(0x1f1)](_0x19134c(0x327)+_0x3b6bbe['model']+'\x20('+_0x3b6bbe[_0x19134c(0x2ea)]+_0x19134c(0x373)+_0x3b6bbe['usage']['total_tokens']+'\x20tokens\x0a');}function An(_0x35b38f){const _0xd7f85=_0x5a74af;Z(_0x35b38f);for(let _0x2e6eda of Object[_0xd7f85(0x317)](_0x35b38f[_0xd7f85(0x298)])){let _0x26e5e4=_0x35b38f['answers'][_0x2e6eda],_0x4b8d25=_0x26e5e4[_0xd7f85(0x1fb)]===_0xd7f85(0x20e)?_0xd7f85(0x368)+_0x26e5e4[_0xd7f85(0x20e)][_0xd7f85(0x2c3)](0x2):_0x26e5e4[_0xd7f85(0x1fb)]==='choice'?_0xd7f85(0x2ac)+_0x26e5e4['choice']+'\x20(confidence\x20'+_0x26e5e4[_0xd7f85(0x2ab)][_0xd7f85(0x2c3)](0x2)+')':_0xd7f85(0x32c)+_0x26e5e4[_0xd7f85(0x2d2)][_0xd7f85(0x2c3)](0x2)+_0xd7f85(0x307)+_0x26e5e4[_0xd7f85(0x2ab)][_0xd7f85(0x2c3)](0x2)+')';process['stdout'][_0xd7f85(0x1f1)]('\x20\x20'+_0x2e6eda+':\x20'+_0x4b8d25+'\x0a');}}function En(_0x4b53f1){const _0x38166d=_0x5a74af;Z(_0x4b53f1),_0x4b53f1[_0x38166d(0x2de)][_0x38166d(0x3d3)]((_0x5e9a6c,_0x17ff97)=>{const _0x59d783=_0x38166d;process[_0x59d783(0x262)]['write']('\x20\x20'+(_0x17ff97+0x1)+'.\x20'+_0x5e9a6c['id']+'\x20\x20'+_0x5e9a6c['score']['toFixed'](0x3)+_0x59d783(0x2e2)+_0x5e9a6c[_0x59d783(0x32d)]+')\x0a');});}function $n(_0x53adbc){const _0x1a387c=_0x5a74af;Z(_0x53adbc),process['stdout']['write'](_0x1a387c(0x1c4)+_0x53adbc[_0x1a387c(0x2a7)]+'\x0a');for(let _0x1b8457 of _0x53adbc['results'])process[_0x1a387c(0x262)][_0x1a387c(0x1f1)]('\x20\x20'+_0x1b8457['id']+':\x20'+_0x1b8457[_0x1a387c(0x27f)]+_0x1a387c(0x307)+_0x1b8457[_0x1a387c(0x2ab)]['toFixed'](0x2)+')\x0a');}async function xn(_0x1d906b){const _0x55e1c8=_0x5a74af;let _0x482e6e=_0x1d906b['prompt'][_0x55e1c8(0x1c0)]();_0x482e6e||(console[_0x55e1c8(0x206)]('transcribe\x20needs\x20audio:\x20delegate-cli\x20transcribe\x20<file>,\x20or\x20-\x20to\x20read\x20stdin.'),process[_0x55e1c8(0x395)](0x2));let {client:_0x1ebc76}=await $(_0x1d906b);try{let _0x2b7000=_0x482e6e==='-'?{'data':await In(process[_0x55e1c8(0x369)])}:_0x482e6e;m(_0x1d906b,await _0x262e17(_0x1ebc76,_0x2b7000,void 0x0),_0x3d57ae=>{const _0x34fd51=_0x55e1c8;process[_0x34fd51(0x262)][_0x34fd51(0x1f1)](_0x3d57ae[_0x34fd51(0x2cf)]+'\x0a');});}catch(_0x280f91){if(_0x2f0f4d(_0x280f91)&&(console[_0x55e1c8(0x206)](_0x280f91[_0x55e1c8(0x2e0)]),process[_0x55e1c8(0x395)](_0x280f91[_0x55e1c8(0x30e)]===void 0x0?0x2:0x1)),typeof _0x280f91?.[_0x55e1c8(0x216)]!=_0x55e1c8(0x387))throw _0x280f91;console['error'](_0x55e1c8(0x227)+_0x482e6e+'\x20('+_0x280f91[_0x55e1c8(0x2e0)]+').'),process[_0x55e1c8(0x395)](0x2);}}async function In(_0x43e1c3){const _0x2fe030=_0x5a74af;let _0x1f7640=[];for await(let _0x3b5ebb of _0x43e1c3)_0x1f7640['push'](Buffer[_0x2fe030(0x275)](_0x3b5ebb));return Buffer['concat'](_0x1f7640);}var he=['list',_0x5a74af(0x35f),'show','create',_0x5a74af(0x1e8),_0x5a74af(0x355),_0x5a74af(0x1c1),_0x5a74af(0x1eb),_0x5a74af(0x376),_0x5a74af(0x2c0)],ye={'list':_0x5a74af(0x399),'pending':_0x5a74af(0x29a),'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':_0x5a74af(0x34f),'complete':_0x5a74af(0x38d),'accept':_0x5a74af(0x1fd),'dismiss':_0x5a74af(0x3d2),'cancel':_0x5a74af(0x217),'delete':_0x5a74af(0x38a)};async function Tn(_0x59fb36){const _0x62115=_0x5a74af;let [_0x52f90c='',_0x3e54b0='',..._0x4e7a9d]=_0x59fb36[_0x62115(0x23a)];he[_0x62115(0x3a2)](_0x52f90c)||(console['error']((_0x52f90c?'Unknown\x20delegations\x20action:\x20'+_0x52f90c+'.\x20':'')+_0x62115(0x276)+he[_0x62115(0x221)](_0x62115(0x22b))+'.'),process[_0x62115(0x395)](0x2));let _0x1f4e45=_0x52f90c;_0x1f4e45!==_0x62115(0x1c3)&&(_0x59fb36[_0x62115(0x2bb)]!==void 0x0||_0x59fb36[_0x62115(0x2c9)]!==void 0x0||_0x59fb36['sessionId']!==void 0x0)&&(console[_0x62115(0x206)](_0x62115(0x214)),process[_0x62115(0x395)](0x2));let _0x3e5a80=(_0x1f4e45==='create'?_0x59fb36[_0x62115(0x23a)][_0x62115(0x385)](0x1):_0x4e7a9d)[_0x62115(0x221)]('\x20')[_0x62115(0x1c0)](),_0x25d8e3=_0x1f4e45===_0x62115(0x1c3)||_0x1f4e45===_0x62115(0x355);(_0x1f4e45!==_0x62115(0x1c3)&&!_0x3e54b0||(_0x25d8e3?!_0x3e5a80:_0x3e5a80)||_0x1f4e45===_0x62115(0x1c3)&&!_0x59fb36['sessionId'])&&(console[_0x62115(0x206)]('Usage:\x20delegate-cli\x20'+ye[_0x1f4e45]),process[_0x62115(0x395)](0x2));let _0x435df0=_0x25d8e3&&_0x3e5a80==='-'?(await H('-',process[_0x62115(0x369)]))[_0x62115(0x1c0)]():_0x3e5a80;_0x25d8e3&&!_0x435df0&&(console[_0x62115(0x206)](_0x62115(0x39a)+ye[_0x1f4e45]+_0x62115(0x3b7)),process[_0x62115(0x395)](0x2));let {client:_0x4a711f}=await $(_0x59fb36);try{await Un(_0x59fb36,_0x4a711f,_0x1f4e45,_0x3e54b0,_0x435df0);}catch(_0x363c04){if(!_0x33f686(_0x363c04))throw _0x363c04;console['error'](_0x363c04['message']),process[_0x62115(0x395)](0x1);}}async function Un(_0x50c0d0,_0x2ff2b9,_0x41abb1,_0x2bf166,_0x5444df){const _0x57a8b7=_0x5a74af;switch(_0x41abb1){case _0x57a8b7(0x378):m(_0x50c0d0,await _0x2639a5(_0x2ff2b9,_0x2bf166),Dn);return;case _0x57a8b7(0x35f):m(_0x50c0d0,await _0x2672b9(_0x2ff2b9,_0x2bf166),_0x524d69=>{const _0x2ab021=_0x57a8b7;_0x524d69[_0x2ab021(0x1e9)]&&process['stdout'][_0x2ab021(0x1f1)](_0x2ab021(0x237)+_0x524d69['delegation']['id']+'\x20('+_0x524d69[_0x2ab021(0x1e9)][_0x2ab021(0x30e)]+_0x2ab021(0x25c)),_0x524d69[_0x2ab021(0x33f)]['length']===0x0&&process[_0x2ab021(0x3ce)][_0x2ab021(0x1f1)](_0x2ab021(0x381));for(let _0x51baff of _0x524d69[_0x2ab021(0x33f)])process[_0x2ab021(0x262)][_0x2ab021(0x1f1)]('\x0a'+_0x51baff['id']+'\x20\x20from\x20'+(_0x51baff['assignedUserEmail']??_0x2ab021(0x1e4))+'\x20\x20'+(_0x51baff[_0x2ab021(0x33a)]??'')+'\x0a'+(_0x51baff['result']?.[_0x2ab021(0x35e)]??'')+'\x0a');_0x524d69[_0x2ab021(0x33f)][_0x2ab021(0x248)]>0x0&&process['stderr'][_0x2ab021(0x1f1)](_0x2ab021(0x366));});return;case _0x57a8b7(0x352):m(_0x50c0d0,await _0x1a6503(_0x2ff2b9,_0x2bf166),we);return;case _0x57a8b7(0x1c3):{let _0x12f829=await _0x232b16(_0x2ff2b9,{'sessionId':_0x50c0d0[_0x57a8b7(0x282)],'task':_0x5444df,..._0x50c0d0[_0x57a8b7(0x2c9)]!==void 0x0&&{'contextSummary':_0x50c0d0[_0x57a8b7(0x2c9)]},..._0x50c0d0['delegateTo']!==void 0x0&&{'recipient':_0x50c0d0['delegateTo']}});m(_0x50c0d0,_0x12f829,_0x288916=>{const _0x4ea08a=_0x57a8b7;_0x288916['assignedUser']?process[_0x4ea08a(0x262)][_0x4ea08a(0x1f1)](_0x4ea08a(0x2f7)+_0x288916[_0x4ea08a(0x2ee)]+_0x4ea08a(0x2ad)+_0x288916[_0x4ea08a(0x2a4)][_0x4ea08a(0x31e)]+'\x20<'+_0x288916[_0x4ea08a(0x2a4)][_0x4ea08a(0x337)]+_0x4ea08a(0x398)):process[_0x4ea08a(0x262)][_0x4ea08a(0x1f1)](_0x4ea08a(0x382)+_0x288916[_0x4ea08a(0x2ee)]+_0x4ea08a(0x1c9)+_0x288916[_0x4ea08a(0x23b)]+'\x0a');});return;}case _0x57a8b7(0x1e8):{let _0x53b034=await _0x2b5f96(_0x2ff2b9,_0x2bf166);m(_0x50c0d0,_0x53b034,_0x248e56=>{const _0x58a334=_0x57a8b7;we(_0x248e56),process[_0x58a334(0x262)]['write'](_0x58a334(0x2e5)+_0x248e56[_0x58a334(0x282)]+'\x0a'),process[_0x58a334(0x3ce)][_0x58a334(0x1f1)](_0x58a334(0x322)+_0x248e56[_0x58a334(0x282)]+_0x58a334(0x386)+_0x248e56[_0x58a334(0x2ee)]+_0x58a334(0x2e6));});return;}case _0x57a8b7(0x355):{let {alreadyCompleted:_0xb7d9d7}=await _0x5e7ae6(_0x2ff2b9,_0x2bf166,{'content':_0x5444df});m(_0x50c0d0,{'delegationId':_0x2bf166,'alreadyCompleted':_0xb7d9d7},_0x258c64=>{const _0x2fab2d=_0x57a8b7;process[_0x2fab2d(0x262)][_0x2fab2d(0x1f1)]((_0x258c64['alreadyCompleted']?_0x2fab2d(0x32a):'Answered')+_0x2fab2d(0x310)+_0x258c64['delegationId']+'.\x0a');});return;}case _0x57a8b7(0x1c1):{let _0x2c2e4d=await _0x325306(_0x2ff2b9,_0x2bf166);m(_0x50c0d0,{'delegationId':_0x2bf166,..._0x2c2e4d},_0x1ae607=>{const _0x1bef9e=_0x57a8b7;process['stdout']['write']((_0x1ae607[_0x1bef9e(0x2a6)]?_0x1bef9e(0x305):_0x1bef9e(0x345))+_0x1bef9e(0x310)+_0x1ae607[_0x1bef9e(0x2ee)]+'.\x0a');});return;}default:{let _0x4fc74b={'dismiss':_0x5b9ff3,'cancel':_0x3e6007,'delete':_0xc17f44}[_0x41abb1];await _0x4fc74b(_0x2ff2b9,_0x2bf166);let _0x26f099={'dismiss':_0x57a8b7(0x279),'cancel':_0x57a8b7(0x31b),'delete':'deleted'}[_0x41abb1];m(_0x50c0d0,{'delegationId':_0x2bf166,[_0x26f099]:!0x0},()=>{const _0x3eaffd=_0x57a8b7;process[_0x3eaffd(0x262)][_0x3eaffd(0x1f1)](''+_0x26f099[0x0]['toUpperCase']()+_0x26f099['slice'](0x1)+_0x3eaffd(0x310)+_0x2bf166+'.\x0a');});}}}function Dn(_0x62f79c){const _0x2848f7=_0x5a74af;if(_0x62f79c[_0x2848f7(0x248)]===0x0){process[_0x2848f7(0x3ce)]['write'](_0x2848f7(0x26a));return;}process[_0x2848f7(0x262)][_0x2848f7(0x1f1)]('ID'[_0x2848f7(0x202)](0x24)+'\x20\x20'+'STATUS'[_0x2848f7(0x202)](0x9)+'\x20\x20'+_0x2848f7(0x2a2)[_0x2848f7(0x202)](0x18)+'\x20\x20TASK\x0a');for(let _0x173d02 of _0x62f79c)process['stdout']['write'](_0x173d02['id'][_0x2848f7(0x202)](0x24)+'\x20\x20'+_0x173d02['status']['padEnd'](0x9)+'\x20\x20'+(_0x173d02['assignedUserEmail']??'-')[_0x2848f7(0x202)](0x18)+'\x20\x20'+(_0x173d02[_0x2848f7(0x33a)]??'')+'\x0a');}function we(_0x34dfb7){const _0x13f49c=_0x5a74af;process['stdout'][_0x13f49c(0x1f1)]('From\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x34dfb7[_0x13f49c(0x384)]??'-')+'\x0a'),_0x34dfb7[_0x13f49c(0x1e5)]&&process['stdout'][_0x13f49c(0x1f1)]('Session\x20\x20\x20\x20\x20\x20\x20'+_0x34dfb7['sourceTitle']+'\x0a'),process[_0x13f49c(0x262)]['write'](_0x13f49c(0x201)+(_0x34dfb7[_0x13f49c(0x33a)]??'-')+'\x0a'),_0x34dfb7[_0x13f49c(0x2c9)]&&process['stdout'][_0x13f49c(0x1f1)]('\x0a'+_0x34dfb7['contextSummary']+'\x0a\x0a');}async function Nn(_0x236ae2){const _0x56a591=_0x5a74af;_0x236ae2[_0x56a591(0x302)][_0x56a591(0x1c0)]()||(console[_0x56a591(0x206)](_0x56a591(0x1ca)),process[_0x56a591(0x395)](0x2));let {client:_0x39a265}=await $(_0x236ae2),_0x57a80c;try{_0x57a80c=await _0x306538(_0x39a265,_0x236ae2[_0x56a591(0x302)]);}catch(_0x17a8d8){if(!_0x33f686(_0x17a8d8))throw _0x17a8d8;console[_0x56a591(0x206)](_0x17a8d8[_0x56a591(0x2e0)]),process[_0x56a591(0x395)](0x1);}m(_0x236ae2,_0x57a80c,_0x5b13a1=>{const _0x4cbc98=_0x56a591;_0x5b13a1[_0x4cbc98(0x248)]===0x0&&process[_0x4cbc98(0x3ce)][_0x4cbc98(0x1f1)](_0x4cbc98(0x1cd)+_0x236ae2[_0x4cbc98(0x302)][_0x4cbc98(0x1c0)]()+_0x4cbc98(0x2cd));for(let _0x2cdaaa of _0x5b13a1)process[_0x4cbc98(0x262)][_0x4cbc98(0x1f1)](_0x2cdaaa[_0x4cbc98(0x337)][_0x4cbc98(0x202)](0x20)+'\x20\x20'+_0x2cdaaa[_0x4cbc98(0x31e)]+'\x0a');});}async function _n(_0x586b3c){const _0x169438=_0x5a74af;_0x586b3c['env']===_0x169438(0x258)&&(console[_0x169438(0x206)]('--env\x20localhost\x20has\x20no\x20OAuth\x20flow;\x20pick\x20alpha,\x20staging,\x20or\x20production.'),process[_0x169438(0x395)](0x2));let _0x25961a=G(_0x24045b()),_0x3b29db=_0x586b3c[_0x169438(0x274)];if(_0x586b3c[_0x169438(0x1d9)]){let _0x1d4e52=_0x586b3c[_0x169438(0x1d9)];await _0x484930({'env':_0x1d4e52,'tenant':_0x586b3c[_0x169438(0x3c3)]??Q(_0x25961a,_0xed5dea[_0x1d4e52]),'skipEnvCheck':_0x3b29db});return;}let _0x27d320=_0x586b3c[_0x169438(0x265)]??Ue();if(_0x27d320){await _0x484930({'baseUrl':_0x27d320,'tenant':_0x586b3c[_0x169438(0x3c3)]??Q(_0x25961a,_0x27d320),'skipEnvCheck':_0x3b29db});return;}if(_0x25961a?.[_0x169438(0x2c1)]){await _0x484930({'baseUrl':_0x25961a[_0x169438(0x2c1)],'tenant':_0x586b3c[_0x169438(0x3c3)]??_0x25961a[_0x169438(0x3a1)],'skipEnvCheck':_0x3b29db});return;}console[_0x169438(0x206)](_0x169438(0x38e)),process['exit'](0x2);}function Q(_0x3ca0e4,_0x1ce903){const _0x4d5320=_0x5a74af;return _0x3ca0e4?.['baseUrl']&&Rn(_0x3ca0e4[_0x4d5320(0x2c1)],_0x1ce903)?_0x3ca0e4[_0x4d5320(0x3a1)]:void 0x0;}function Rn(_0x400494,_0x4665e8){const _0xe8b811=_0x5a74af;try{return new URL(_0x400494)[_0xe8b811(0x1be)]===new URL(_0x4665e8)[_0xe8b811(0x1be)];}catch{return!0x1;}}async function Pn(_0x4dbb5e){const _0x426009=_0x5a74af;Y()&&(console[_0x426009(0x206)](_0x426009(0x28a)),process[_0x426009(0x395)](0x2));let _0x4cbf5a=await _0x1092e1();if(_0x4cbf5a||(console[_0x426009(0x206)](Cn()),process[_0x426009(0x395)](0x2)),_0x4dbb5e[_0x426009(0x1c0)]()){let _0x3c7223=await _0x817f6d(_0x4cbf5a,_0x4dbb5e);_0x4a61ce(_0x3c7223)||(console['error'](_0x426009(0x253)+_0x24045b()+';\x20the\x20saved\x20login\x20still\x20uses\x20'+_0x4cbf5a['tenantName']+'.'),process[_0x426009(0x395)](0x1)),console[_0x426009(0x3b3)](_0x426009(0x35c)+_0x3c7223['tenantName']+'\x20('+_0x3c7223['tenantId']+_0x426009(0x370)+_0x24045b());return;}On(await _0x4d04b8(_0x4cbf5a),_0x4cbf5a);}function Cn(){const _0x14e28c=_0x5a74af;if(_0x43634d[_0x14e28c(0x397)](_0x24045b()))return _0x14e28c(0x1f6);let _0x3aefe3=z();return G(_0x3aefe3)?_0x14e28c(0x328)+_0x3aefe3+',\x20whose\x20tenant\x20is\x20chosen\x20in\x20the\x20app.\x20Run\x20`delegate-cli\x20login\x20--env\x20<env>`\x20for\x20a\x20CLI\x20login\x20of\x20your\x20own.':_0x14e28c(0x30c);}function On(_0x52ad5d,_0x36aa31){const _0x45ea29=_0x5a74af;let _0x4ee8fd=_0x52ad5d[_0x45ea29(0x31f)](_0x5881ab=>_0x5881ab['id']===_0x36aa31[_0x45ea29(0x396)]?'*\x20'+_0x5881ab['name']+_0x45ea29(0x24b):'\x20\x20'+_0x5881ab['name']);process[_0x45ea29(0x262)][_0x45ea29(0x1f1)](_0x45ea29(0x341)+(_0x36aa31['orgLogicalName']??_0x36aa31[_0x45ea29(0x371)])+':\x0a'+_0x4ee8fd[_0x45ea29(0x221)]('\x0a')+'\x0a'),_0x52ad5d['length']>0x1&&process[_0x45ea29(0x262)][_0x45ea29(0x1f1)](_0x45ea29(0x244));}function Ln(_0x11a0d6){const _0x5e0b03=_0x5a74af;return _0x11a0d6?.[_0x5e0b03(0x3cc)]?.[_0x5e0b03(0x30e)]===0x191||/401/['test'](String(_0x11a0d6?.[_0x5e0b03(0x2e0)]??''));}var w={'lastType':null,'quiet':!0x1},_e=_0x140960=>{const _0xbf3f79=_0x5a74af;switch(_0x140960[_0xbf3f79(0x1fb)]){case _0xbf3f79(0x1b9):_0x140960['sessionId']&&_0x140960[_0xbf3f79(0x282)]!==w[_0xbf3f79(0x282)]&&(process[_0xbf3f79(0x3ce)][_0xbf3f79(0x1f1)](_0xbf3f79(0x39e)+_0x140960['sessionId']+_0xbf3f79(0x342)+_0x140960[_0xbf3f79(0x282)]+')\x0a'),w[_0xbf3f79(0x282)]=_0x140960['sessionId']);break;case _0xbf3f79(0x36f):_0x140960[_0xbf3f79(0x334)]&&_0x140960['turnId']!==w[_0xbf3f79(0x334)]&&(w[_0xbf3f79(0x2e9)]!==null&&process[_0xbf3f79(0x3ce)][_0xbf3f79(0x1f1)]('\x0a'),process[_0xbf3f79(0x3ce)][_0xbf3f79(0x1f1)]('Turn:\x20'+_0x140960[_0xbf3f79(0x334)]+_0xbf3f79(0x242)+_0x140960[_0xbf3f79(0x282)]+_0xbf3f79(0x380)+_0x140960['turnId']+')\x0a'),w['turnId']=_0x140960[_0xbf3f79(0x334)],w[_0xbf3f79(0x2e9)]=_0xbf3f79(0x36f));break;case _0xbf3f79(0x2c8):_0x140960[_0xbf3f79(0x35e)]&&!w[_0xbf3f79(0x204)]&&(w[_0xbf3f79(0x2e9)]!==_0xbf3f79(0x2c8)&&process[_0xbf3f79(0x3ce)][_0xbf3f79(0x1f1)](_0xbf3f79(0x22c)),process['stderr'][_0xbf3f79(0x1f1)](_0x140960['content']),w[_0xbf3f79(0x2e9)]=_0xbf3f79(0x2c8));break;case'tool_call':w['lastType']!==null&&process[_0xbf3f79(0x3ce)][_0xbf3f79(0x1f1)]('\x0a'),process[_0xbf3f79(0x3ce)][_0xbf3f79(0x1f1)]('π§\x20'+(_0x140960[_0xbf3f79(0x245)]??'tool')+'\x0a'),w[_0xbf3f79(0x2e9)]=_0xbf3f79(0x224);break;case _0xbf3f79(0x2e0):_0x140960[_0xbf3f79(0x35e)]&&(w['lastType']!==_0xbf3f79(0x2e0)&&w[_0xbf3f79(0x2e9)]!==null&&process[_0xbf3f79(0x262)][_0xbf3f79(0x1f1)]('\x0a'),process[_0xbf3f79(0x262)]['write'](_0x140960[_0xbf3f79(0x35e)]),w[_0xbf3f79(0x2e9)]='message');break;case _0xbf3f79(0x206):w[_0xbf3f79(0x2e9)]!==null&&process[_0xbf3f79(0x3ce)][_0xbf3f79(0x1f1)]('\x0a'),process['stderr']['write']('β\x20'+(_0x140960[_0xbf3f79(0x206)]??_0xbf3f79(0x206))+'\x0a'),w[_0xbf3f79(0x2e9)]=_0xbf3f79(0x206);break;case _0xbf3f79(0x38f):(w[_0xbf3f79(0x2e9)]===_0xbf3f79(0x2e0)||w[_0xbf3f79(0x2e9)]===_0xbf3f79(0x2c8))&&process[_0xbf3f79(0x262)]['write']('\x0a'),process[_0xbf3f79(0x3ce)][_0xbf3f79(0x1f1)](_0xbf3f79(0x324)),w[_0xbf3f79(0x2e9)]=_0xbf3f79(0x38f);break;}};function ke(_0x483bfa,_0x359344,_0x52b1cd,_0x495ba4){const _0x4d495c=_0x5a74af;let _0x250215=_0x483bfa[_0x4d495c(0x2f8)]||process.env.MODEL;return{'backendUrl':_0x52b1cd,'auth':_0x359344,'enableComputerUse':!_0x483bfa[_0x4d495c(0x330)]&&!_0x483bfa[_0x4d495c(0x37a)],'autoSpawnInterop':!_0x483bfa[_0x4d495c(0x330)],'enableConnections':!_0x483bfa[_0x4d495c(0x361)],'enableSecurity':!_0x483bfa[_0x4d495c(0x26f)],'keepInteropAlive':_0x483bfa[_0x4d495c(0x2f2)],..._0x495ba4[_0x4d495c(0x1ff)]?{'enableBackgroundCommands':!0x1}:{},..._0x483bfa[_0x4d495c(0x3d4)]?{'enableMemory':!0x1}:{},..._0x483bfa['taskAutomation']?{'enableTaskAutomation':!0x0}:{},..._0x483bfa[_0x4d495c(0x28f)][_0x4d495c(0x248)]>0x0?{'preloadSkills':_0x483bfa['preloadSkills']}:{},..._0x250215?{'model':_0x250215}:{},..._0x483bfa[_0x4d495c(0x300)]?{'projectId':_0x483bfa[_0x4d495c(0x300)]}:{},..._0x483bfa[_0x4d495c(0x2d0)]?{'vertical':_0x483bfa[_0x4d495c(0x2d0)]}:{},..._0x483bfa[_0x4d495c(0x2e3)]?{'workingDirectory':_0x483bfa[_0x4d495c(0x2e3)]}:{},..._0x483bfa[_0x4d495c(0x35a)]?{'bundledSkillsPath':_0x483bfa[_0x4d495c(0x35a)]}:{},..._0x483bfa[_0x4d495c(0x2df)]?{'effort':_0x483bfa[_0x4d495c(0x2df)]}:{},..._0x483bfa['sessionId']?{'sessionId':_0x483bfa[_0x4d495c(0x282)]}:{},..._0x483bfa['verbose']?{'verbose':!0x0}:{}};}async function Fn(_0x3559b7){const _0x4d9881=_0x5a74af;let _0x4afa64=_0x3559b7[_0x4d9881(0x316)]!==_0x4d9881(0x2cf),_0xcabf25=_0x3559b7[_0x4d9881(0x3bd)]===void 0x0?null:Ne(_0x3559b7[_0x4d9881(0x3bd)],_0x4d9881(0x271)),_0x1e0fad=!_0x4afa64&&!_0xcabf25&&!_0x3559b7[_0x4d9881(0x3d1)]&&_0x3559b7[_0x4d9881(0x302)]!=='-'&&!!process[_0x4d9881(0x369)][_0x4d9881(0x1d6)]&&!!process[_0x4d9881(0x262)][_0x4d9881(0x1d6)],_0x3fa494=_0x3559b7['inputFormat']==='stream-json'?re(process[_0x4d9881(0x369)],_0x3ff7c1=>{const _0x31e5a5=_0x4d9881;process[_0x31e5a5(0x3ce)][_0x31e5a5(0x1f1)](_0x3ff7c1['message']+':\x20ignored\x0a');}):null,_0x9c03c6=_0x3fa494?(await _0x3fa494[_0x4d9881(0x313)]())[_0x4d9881(0x350)]:void 0x0,_0x5c64e7=_0x3fa494?_0x9c03c6?.['text']??'':_0x1e0fad?_0x3559b7[_0x4d9881(0x302)][_0x4d9881(0x1c0)]():await H(_0x3559b7[_0x4d9881(0x302)],process['stdin']);if(!_0x1e0fad&&!_0x5c64e7&&(console['error'](_0x4d9881(0x2cb)),process[_0x4d9881(0x395)](0x2)),!_0x4afa64){await be(_0x3559b7,_0x5c64e7,_0x1e0fad,null,_0xcabf25,null);return;}let _0x5b7358=!0x1,_0xe07a5a=_0x5ee590=>{const _0x212ddf=_0x4d9881;_0x5b7358=!0x0,O(_0x47513a(_0x5ee590)),(_0x5ee590[_0x212ddf(0x200)]||_0x5ee590[_0x212ddf(0x2f5)])&&(process[_0x212ddf(0x2b5)]=0x1);},_0x20a0fe=Date[_0x4d9881(0x3cb)]();try{await be(_0x3559b7,_0x5c64e7,!0x1,_0xe07a5a,_0xcabf25,_0x3fa494?{'messages':_0x3fa494,'first':_0x9c03c6,'close':()=>{const _0x3afa6d=_0x4d9881;process[_0x3afa6d(0x369)]['pause']();}}:null);}catch(_0x2b7de5){if(_0x5b7358)throw _0x2b7de5;process[_0x4d9881(0x3ce)]['write']((_0x2b7de5 instanceof Error?_0x2b7de5['stack']??_0x2b7de5['message']:String(_0x2b7de5))+'\x0a'),_0xe07a5a(new _0x4c9348(_0x20a0fe)[_0x4d9881(0x234)]({'endedAtMs':Date['now'](),'usage':[],'error':_0x2b7de5}));}finally{_0x3fa494&&(process[_0x4d9881(0x369)]['pause'](),_0x3fa494[_0x4d9881(0x296)](void 0x0));}}async function be(_0x54dca4,_0x4587eb,_0xe83003,_0x5b5a7a,_0x185aff,_0x4f513c){const _0x217046=_0x5a74af;w={'lastType':null,'quiet':_0x54dca4[_0x217046(0x204)]};let _0x42c299=new Set(),_0x50cbc8,_0x3a5f16=_0x56345d=>{const _0xb0c816=_0x217046;(!_0x5b5a7a||_0x56345d['type']===_0xb0c816(0x1b9)||_0x56345d[_0xb0c816(0x1fb)]===_0xb0c816(0x36f))&&(_0x50cbc8??_e)(_0x56345d);for(let _0x4de3d5 of _0x42c299)_0x4de3d5(_0x56345d);},_0x15a616=await V(),_0x22d5a2=new _0x3064a8();_0x22d5a2[_0x217046(0x321)](_0x3a5f16);let _0x142dc5=_0x3b2a5b(_0x54dca4[_0x217046(0x1d9)],_0x15a616,_0x54dca4[_0x217046(0x383)]);X(_0x54dca4[_0x217046(0x1d9)],_0x54dca4['backendUrl'],_0x142dc5);let _0x46fa34={'input':null},_0x4acefd=_0xe83003?ne(()=>_0x46fa34['input'],_0x39d336=>{const _0x6aca2e=_0x217046;process[_0x6aca2e(0x3ce)][_0x6aca2e(0x1f1)](_0x39d336);}):null,_0x2ef1d5=_0x483250=>_0x4acefd?{..._0x483250,'askUser':_0x4acefd}:_0x483250,_0x41ca5a=_0x2ef1d5(ke(_0x54dca4,_0x15a616,_0x142dc5,{'oneTurn':!_0xe83003})),_0x1dd575=!0x1,_0x5f1c55=!0x1,_0x294cc7,_0x45dabf=()=>_0x294cc7??=_0x22d5a2['destroy'](),_0x5c7169=()=>{const _0x401b69=_0x217046;_0x5f1c55&&process[_0x401b69(0x395)](0x82),_0x5f1c55=!0x0,process[_0x401b69(0x3ce)][_0x401b69(0x1f1)](_0x401b69(0x3cf)),_0x1dd575&&_0x22d5a2[_0x401b69(0x376)]()[_0x401b69(0x1dc)](_0x31c1d7=>console[_0x401b69(0x206)](_0x31c1d7))[_0x401b69(0x3ab)](_0x45dabf)[_0x401b69(0x3ab)](()=>process[_0x401b69(0x395)](0x82),_0x359481=>{const _0x4564ac=_0x401b69;console['error'](_0x359481),process[_0x4564ac(0x395)](0x82);});};process['on']('SIGINT',_0x5c7169);let _0x3babda=_0x54dca4[_0x217046(0x314)],_0x3b8ff4=async _0x136eb0=>{const _0x2e97d9=_0x217046;let _0x81bef7=_0x3babda;_0x3babda=[];let _0x28d568=()=>_0x22d5a2[_0x2e97d9(0x2aa)](_0x136eb0,{'attachments':_0x81bef7});try{return await _0x28d568();}catch(_0x37325c){if(_0x5f1c55||!Ln(_0x37325c)||!process['stdin']['isTTY']||_0x54dca4['env']==='localhost'||!(_0x54dca4[_0x2e97d9(0x1d9)]||_0x15a616[_0x2e97d9(0x2c1)]))throw _0x37325c;process[_0x2e97d9(0x3ce)][_0x2e97d9(0x1f1)](_0x2e97d9(0x21e));let _0x9883d7=_0x22d5a2[_0x2e97d9(0x290)]()??_0x54dca4['sessionId'],_0x4eca35=await _0x484930(_0x54dca4['env']?{'env':_0x54dca4[_0x2e97d9(0x1d9)],'tenant':Q(_0x15a616,_0xed5dea[_0x54dca4['env']]),'skipEnvCheck':!0x0}:{'baseUrl':_0x15a616[_0x2e97d9(0x2c1)],'tenant':_0x15a616['tenantName'],'skipEnvCheck':!0x0}),_0x4a2d28={'text':'','failed':!0x1,'sessionId':_0x9883d7};return _0x5f1c55||(_0x1dd575=!0x1,await _0x45dabf(),_0x5f1c55)?_0x4a2d28:(_0x22d5a2=new _0x3064a8(),_0x294cc7=void 0x0,_0x22d5a2[_0x2e97d9(0x321)](_0x3a5f16),_0x15a616=_0x4eca35,await _0x22d5a2[_0x2e97d9(0x1ea)]({..._0x2ef1d5(ke(_0x54dca4,_0x15a616,_0x142dc5,{'oneTurn':!_0xe83003})),..._0x9883d7?{'sessionId':_0x9883d7}:{}}),_0x1dd575=!0x0,_0x5f1c55?_0x4a2d28:_0x28d568());}};try{if(await _0x22d5a2[_0x217046(0x1ea)](_0x41ca5a),_0x1dd575=!0x0,_0x5f1c55)return;if(_0xe83003)await Bn({'prompt':_0x4587eb,'sendMessage':_0x3b8ff4,'onSigint':_0x5c7169,'setAnswerInput':_0x149227=>{const _0xfc2441=_0x217046;_0x46fa34[_0xfc2441(0x335)]=_0x149227;},'registerEventPrinter':_0x15a8af=>(_0x50cbc8=_0x15a8af,()=>{_0x50cbc8=void 0x0;})});else{if(_0x5b5a7a||_0x185aff){let _0x4c5806=_0x54dca4['outputFormat']===_0x217046(0x205)?_0x2f6aa3=>O(_0x31778c(_0x2f6aa3)):()=>{},_0x35e7c9=_0x4f513c?ie({'input':_0x4f513c,'getAgent':()=>_0x22d5a2,'replay':_0x54dca4[_0x217046(0x2a0)],'onEvent':_0x28ea73=>(_0x42c299[_0x217046(0x250)](_0x28ea73),()=>{const _0x1dd2f0=_0x217046;_0x42c299[_0x1dd2f0(0x2c0)](_0x28ea73);}),'write':O,'isRunStopNotice':_0x7a7cb9,'actionableErrorText':_0x15697f,'warn':_0x50a1b4=>{const _0x30327a=_0x217046;process[_0x30327a(0x3ce)]['write'](_0x50a1b4);}}):null,_0x254f90=await _0x57612a({'onEvent':_0x56b955=>(_0x42c299[_0x217046(0x250)](_0x56b955),()=>{_0x42c299['delete'](_0x56b955);}),'sendMessage':async _0x18329a=>{const _0x271d19=_0x217046;try{let _0x4c3b6a=await _0x3b8ff4(_0x18329a);return _0x35e7c9?await _0x35e7c9['settle'](_0x4c3b6a):_0x4c3b6a;}finally{_0x35e7c9?.[_0x271d19(0x1f5)]();}},'getSessionId':()=>_0x22d5a2[_0x217046(0x290)](),'getTurnUsageHistory':_0x2df685=>_0x22d5a2[_0x217046(0x2b7)](_0x2df685),'complete':_0x1273dd=>_0x22d5a2['complete'](_0x1273dd)},_0x4587eb,void 0x0,_0x4c5806,_0x185aff?{'outputSchema':_0x185aff}:void 0x0);_0x5b5a7a?_0x5b5a7a(_0x254f90):Mn(_0x254f90);}else await _0x3b8ff4(_0x4587eb);}}catch(_0x4ba1bd){if(!_0x5f1c55)throw _0x4ba1bd;}finally{try{await _0x45dabf();}finally{process[_0x217046(0x225)]('SIGINT',_0x5c7169),_0x5f1c55&&(process[_0x217046(0x2b5)]=0x82);}}}function Mn(_0x5bf0ef){const _0x549726=_0x5a74af;_0x5bf0ef[_0x549726(0x2f5)]?(console[_0x549726(0x206)](_0x549726(0x230)+_0x5bf0ef[_0x549726(0x2f5)][_0x549726(0x2e0)]),process[_0x549726(0x2b5)]=0x1):_0x5bf0ef[_0x549726(0x200)]?(console[_0x549726(0x206)](_0x549726(0x24a)+_0x5bf0ef['error']+').'),process[_0x549726(0x2b5)]=0x1):process[_0x549726(0x262)][_0x549726(0x1f1)](JSON[_0x549726(0x1f2)](_0x5bf0ef[_0x549726(0x325)],null,0x2)+'\x0a');}function jn(_0x407b03,_0x50dbd7){const _0x58ae1e=_0x5a74af;let _0x5b8d3a=process['stdout']['write'][_0x58ae1e(0x34b)](process[_0x58ae1e(0x262)]),_0xc083ca=!0x1;return process[_0x58ae1e(0x262)][_0x58ae1e(0x1f1)]=(..._0x1d8cbb)=>{if(!_0xc083ca)return _0x5b8d3a(..._0x1d8cbb);_0x153ab3(_0x50dbd7,0x0),_0x4cfc48(_0x50dbd7,0x0);let _0x4282d5=_0x5b8d3a(..._0x1d8cbb);return _0x407b03['prompt'](!0x0),_0x4282d5;},{'show':()=>{const _0x3afeb4=_0x58ae1e;_0xc083ca=!0x0,_0x407b03[_0x3afeb4(0x302)]();},'hide':()=>{_0xc083ca=!0x1;},'erase':()=>{_0xc083ca&&(_0x153ab3(_0x50dbd7,0x0),_0x4cfc48(_0x50dbd7,0x0)),_0xc083ca=!0x1;},'restore':()=>{const _0x406deb=_0x58ae1e;_0xc083ca=!0x1,process[_0x406deb(0x262)][_0x406deb(0x1f1)]=_0x5b8d3a;}};}async function Bn({prompt:_0x1a898d,sendMessage:_0x1f0610,onSigint:_0x47e4d2,setAnswerInput:_0x5b0421,registerEventPrinter:_0x518b3f}){const _0x170c48=_0x5a74af;let _0x347c29=_0x188cd7({'input':process['stdin'],'output':process[_0x170c48(0x3ce)],'terminal':!0x0,'prompt':'You>\x20'}),_0x3527cd=jn(_0x347c29,process[_0x170c48(0x3ce)]),_0x2c29a9=[],_0x38f968,_0xfa957f,_0x1d7419,_0x10cdf9=!0x1,_0x194606=!0x1,_0x3b7146=!0x1,_0x4ffe1a=Promise[_0x170c48(0x3af)](),_0x27bb0a,_0x17b904=_0x518b3f(_0x10c54d=>{const _0x4cc160=_0x170c48;_0x10c54d[_0x4cc160(0x1fb)]===_0x4cc160(0x1b9)&&(_0x3527cd[_0x4cc160(0x1c2)](),_0x4ffe1a=new Promise(_0x4cdf40=>{_0x27bb0a=_0x4cdf40;})),_e(_0x10c54d),_0x10c54d[_0x4cc160(0x1fb)]===_0x4cc160(0x38f)&&(_0x27bb0a?.(),_0x27bb0a=void 0x0,!_0x3b7146&&!_0x10cdf9&&_0x3527cd[_0x4cc160(0x352)]());}),_0x1d9a25=()=>{const _0x30721c=_0x170c48;_0x194606=!0x0,_0x27bb0a?.(),_0x47e4d2(),_0x347c29[_0x30721c(0x20a)]();};_0x347c29['on'](_0x170c48(0x3c6),_0x3874ef=>{const _0xffc96b=_0x170c48;_0x1d7419?_0x1d7419(_0x3874ef):_0x38f968?_0x38f968['push'](_0x3874ef):_0xfa957f?_0xfa957f(_0x3874ef):_0x2c29a9[_0xffc96b(0x379)](_0x3874ef);}),_0x347c29[_0x170c48(0x1fe)](_0x170c48(0x20a),()=>{const _0x31e3ac=_0x170c48;_0x10cdf9=!0x0,_0x3527cd[_0x31e3ac(0x29d)](),_0x38f968&&!_0x194606&&_0x1d9a25(),_0xfa957f?.(null);});let _0x233422=()=>_0x2c29a9[_0x170c48(0x248)]>0x0?Promise['resolve'](_0x2c29a9[_0x170c48(0x303)]()):_0x10cdf9?Promise['resolve'](null):new Promise(_0x50ad5d=>{_0xfa957f=_0x179ff5=>{_0xfa957f=void 0x0,_0x50ad5d(_0x179ff5);};});_0x5b0421({'readLine':(_0xde1945,_0x50e840)=>new Promise((_0x3df862,_0x5aa6ab)=>{const _0x3390bb=_0x170c48;if(_0x10cdf9&&!_0x38f968){_0x3df862(null);return;}_0x38f968??=[];let _0x472765=_0x38f968[_0x3390bb(0x303)]();if(_0x472765!==void 0x0){_0x3df862(_0x472765);return;}let _0x2d0929=()=>{const _0x2e0d2b=_0x3390bb;_0x1d7419=void 0x0,_0x50e840[_0x2e0d2b(0x2b2)](_0x2e0d2b(0x2d4),_0x5a2419),_0x3527cd[_0x2e0d2b(0x29d)](),_0x347c29[_0x2e0d2b(0x1c7)](_0x2e0d2b(0x37d));},_0x5a2419=()=>{_0x2d0929(),_0x5aa6ab(new Error('The\x20turn\x20was\x20cancelled.'));};_0x50e840[_0x3390bb(0x3ba)](_0x3390bb(0x2d4),_0x5a2419,{'once':!0x0}),!_0x10cdf9&&(_0x1d7419=_0x2b6b61=>{_0x2d0929(),_0x3df862(_0x2b6b61);},_0x347c29[_0x3390bb(0x1c7)](_0xde1945),_0x3527cd[_0x3390bb(0x352)]());}),'endQuestions':()=>{_0x38f968&&_0x2c29a9['push'](..._0x38f968),_0x38f968=void 0x0;}}),_0x347c29['on'](_0x170c48(0x3bf),_0x1d9a25),process['stderr'][_0x170c48(0x1f1)](_0x170c48(0x3c7));let _0x465eea=async _0x2a6969=>{_0x3b7146=!0x0;try{await _0x1f0610(_0x2a6969);}finally{_0x3b7146=!0x1;}};try{if(_0x1a898d&&await _0x465eea(_0x1a898d),_0x194606)return;!_0x10cdf9&&!_0x27bb0a&&_0x3527cd[_0x170c48(0x352)]();for(let _0x14d297=await _0x233422();_0x14d297!==null&&(_0x3527cd[_0x170c48(0x29d)](),!_0x194606);_0x14d297=await _0x233422()){let _0x2014ce=_0x14d297[_0x170c48(0x1c0)]();if(_0x2014ce===_0x170c48(0x21b))break;_0x2014ce&&await _0x465eea(_0x2014ce),!_0x10cdf9&&!_0x27bb0a&&_0x3527cd[_0x170c48(0x352)]();}for(;!_0x194606&&_0x27bb0a;)await _0x4ffe1a;}finally{_0x5b0421(null),_0x17b904(),_0x3527cd[_0x170c48(0x36d)](),_0x347c29[_0x170c48(0x225)](_0x170c48(0x3bf),_0x1d9a25),_0x347c29[_0x170c48(0x20a)]();}}async function Jn(){const _0x582a57=_0x5a74af;let _0x2b3d55=Kt(process[_0x582a57(0x2d7)]['slice'](0x2));if(_0x2b3d55['outputFormat']===_0x582a57(0x2cf)){await Se(_0x2b3d55);return;}let _0x4d76ea=Qt();try{await Se(_0x2b3d55);}finally{_0x4d76ea();}}async function Se(_0x557a86){const _0x439c49=_0x5a74af;if(_0x557a86[_0x439c49(0x1bb)]){qt();return;}if(_0x557a86[_0x439c49(0x309)]){console[_0x439c49(0x3b3)](zt());return;}if(_0x557a86[_0x439c49(0x390)]===_0x439c49(0x209)){await _n(_0x557a86);return;}if(_0x557a86[_0x439c49(0x390)]===_0x439c49(0x3c3)){await Pn(_0x557a86[_0x439c49(0x302)]);return;}if(_0x557a86[_0x439c49(0x390)]===_0x439c49(0x260)){await Zt();return;}if(_0x557a86['subcommand']===_0x439c49(0x23e)){await en(_0x557a86);return;}if(_0x557a86[_0x439c49(0x390)]===_0x439c49(0x1cf)){await on(_0x557a86);return;}if(_0x557a86['subcommand']===_0x439c49(0x27b)){await mn(_0x557a86);return;}if(_0x557a86[_0x439c49(0x390)]===_0x439c49(0x2b8)){await an(_0x557a86);return;}if(_0x557a86[_0x439c49(0x390)]===_0x439c49(0x1f8)){await hn(_0x557a86);return;}if(_0x557a86[_0x439c49(0x390)]===_0x439c49(0x2d6)||_0x557a86[_0x439c49(0x390)]===_0x439c49(0x2ca)||_0x557a86[_0x439c49(0x390)]===_0x439c49(0x1db)){await bn(_0x557a86,_0x557a86[_0x439c49(0x390)]);return;}if(_0x557a86[_0x439c49(0x390)]===_0x439c49(0x355)){await vn(_0x557a86);return;}if(_0x557a86[_0x439c49(0x390)]===_0x439c49(0x222)){await xn(_0x557a86);return;}if(_0x557a86[_0x439c49(0x390)]===_0x439c49(0x1e6)){await Tn(_0x557a86);return;}if(_0x557a86[_0x439c49(0x390)]==='org-users'){await Nn(_0x557a86);return;}if(_0x557a86[_0x439c49(0x390)]===_0x439c49(0x2c4)){await _0x39fb49(_0x557a86[_0x439c49(0x302)],{'runnerUrl':_0x557a86[_0x439c49(0x29f)],'backendUrl':_0x557a86[_0x439c49(0x383)],'interopPath':_0x557a86[_0x439c49(0x20c)],'workerId':_0x557a86[_0x439c49(0x315)]});return;}if(_0x557a86[_0x439c49(0x2bd)]){await sn();return;}await Fn(_0x557a86);}var Hn=process.env.NODE_ENV===_0x5a74af(0x255)||!!process.env.JEST_WORKER_ID;Hn||Jn()['catch'](_0x454dd5=>{const _0x5e686e=_0x5a74af;console[_0x5e686e(0x206)](_0x454dd5['stack']||_0x454dd5[_0x5e686e(0x2e0)]||_0x454dd5),process[_0x5e686e(0x395)](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.
|
|
3
|
+
"version": "1.207.0-preview.20261127025649",
|
|
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.
|
|
25
|
+
"@uipath/delegate-sdk": "1.207.0-preview.20261127025649"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@types/node": "^22.0.0",
|