@uipath/delegate-cli 1.208.0-preview.20261127162640 → 1.208.0-preview.20261203091045

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/cli.mjs +1 -1
  2. package/package.json +2 -2
package/dist/cli.mjs CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- const _0x2d1cd7=_0xc71e;(function(_0x251357,_0x2d5a0e){const _0x217278=_0xc71e,_0x2e2944=_0x251357();while(!![]){try{const _0x2b294e=parseInt(_0x217278(0x304))/0x1*(parseInt(_0x217278(0x244))/0x2)+parseInt(_0x217278(0x299))/0x3*(parseInt(_0x217278(0x1c2))/0x4)+parseInt(_0x217278(0x206))/0x5+parseInt(_0x217278(0x28d))/0x6+parseInt(_0x217278(0x2f6))/0x7+-parseInt(_0x217278(0x33a))/0x8*(-parseInt(_0x217278(0x2a8))/0x9)+-parseInt(_0x217278(0x2ad))/0xa;if(_0x2b294e===_0x2d5a0e)break;else _0x2e2944['push'](_0x2e2944['shift']());}catch(_0x137e4c){_0x2e2944['push'](_0x2e2944['shift']());}}}(_0x5b54,0x465b6));const __dirname=import.meta.dirname;import _0x5a32b5 from'fs';import _0x30cae0 from'path';import{clearLine as _0xb650bc,createInterface as _0x183103,cursorTo as _0x35707e}from'node:readline';import{isOnStepGrid as _0x37e204}from'@uipath/delegate-sdk';var C=_0x2d1cd7(0x313);function E(_0x1fe655){const _0x3ed5b8=_0x2d1cd7;return _0x1fe655[_0x3ed5b8(0x1fb)](/\u001b\[[0-?]*[ -/]*[@-~]|\u001b\][^\u0007\u001b]*(\u0007|\u001b\\)?|\u001b./g,'')[_0x3ed5b8(0x1fb)](/[\u0000-\u0008\u000b-\u001f\u007f-\u009f]/g,'');}function ee(_0x1e97aa){const _0x285d3b=_0x2d1cd7;return E(_0x1e97aa[_0x285d3b(0x261)]??(_0x1e97aa['kind']===C?_0x285d3b(0x325):_0x1e97aa['id']));}function je(_0x4addc0,_0x23ead7,_0x649610){const _0x4c0b08=_0x2d1cd7;let _0x48f49d=[''+(_0x649610>0x1?'['+_0x23ead7+'/'+_0x649610+']\x20':'')+E(_0x4addc0[_0x4c0b08(0x2ba)])+(_0x4addc0[_0x4c0b08(0x189)]?_0x4c0b08(0x205):''),E(_0x4addc0[_0x4c0b08(0x201)])];return _0x4addc0[_0x4c0b08(0x157)]===_0x4c0b08(0x18d)&&_0x4addc0[_0x4c0b08(0x339)][_0x4c0b08(0x219)]((_0xc63611,_0x3040a9)=>{const _0x22d556=_0x4c0b08;let _0x4fd5c6=_0xc63611[_0x22d556(0x1a3)]===C?'\x20(type\x20your\x20own)':'',_0x5c0a8b=_0xc63611[_0x22d556(0x1f4)]?_0x22d556(0x275)+E(_0xc63611['description']):'';_0x48f49d['push']('\x20\x20'+(_0x3040a9+0x1)+'.\x20'+ee(_0xc63611)+_0x4fd5c6+_0x5c0a8b);}),_0x48f49d['join']('\x0a');}function te(_0x24b8ff,_0x5bad2b){const _0x4ce44e=_0x2d1cd7;let _0x49e3a6=_0x24b8ff[_0x4ce44e(0x364)](/[\s,]+/)[_0x4ce44e(0x2c1)](Boolean);if(_0x49e3a6[_0x4ce44e(0x36d)]===0x0)return null;let _0x52ccf8=_0x49e3a6[_0x4ce44e(0x175)](_0x227b64=>/^\d+$/[_0x4ce44e(0x35e)](_0x227b64)?Number(_0x227b64):NaN);return _0x52ccf8[_0x4ce44e(0x28c)](_0x38c681=>!Number[_0x4ce44e(0x18a)](_0x38c681)||_0x38c681<0x1||_0x38c681>_0x5bad2b)?null:[...new Set(_0x52ccf8)][_0x4ce44e(0x175)](_0x37e060=>_0x37e060-0x1);}function Me(_0x1ae309){const _0x43e1d0=_0x2d1cd7;return typeof _0x1ae309=='object'&&_0x1ae309!==null&&_0x43e1d0(0x1fc)in _0x1ae309;}async function j(_0x487ca6,_0xf76044,_0x156b0c,_0x54d9d8){const _0x2f2146=_0x2d1cd7;for(;;){let _0x3315de=(await _0x487ca6(_0xf76044))['trim']();if(_0x3315de==='')return;let _0x3e77a9=_0x54d9d8(_0x3315de);if(!Me(_0x3e77a9))return _0x3e77a9;_0x156b0c(_0x3e77a9[_0x2f2146(0x1fc)]+'\x0a');}}async function Fe(_0x48c4fe,_0x8f223f,_0x22fdb2){const _0x14a386=_0x2d1cd7;if(_0x48c4fe[_0x14a386(0x339)][_0x14a386(0x36d)]===0x0||_0x48c4fe[_0x14a386(0x339)][_0x14a386(0x2a7)](_0x344bdf=>_0x344bdf['kind']===C)){let _0x5cfc5c=(await _0x8f223f('Your\x20answer\x20(Enter\x20to\x20skip):\x20'))[_0x14a386(0x153)]();return _0x5cfc5c===''?void 0x0:{'text':_0x5cfc5c};}let _0x1ddcb6=_0x48c4fe[_0x14a386(0x339)][_0x14a386(0x165)](_0xb82046=>_0xb82046[_0x14a386(0x1a3)]===C),_0x2e6337=_0x48c4fe['multiSelect']?_0x14a386(0x174):_0x14a386(0x333)+(_0x1ddcb6>=0x0?_0x14a386(0x1a2):'')+_0x14a386(0x2c2),_0x3d64bf=await j(_0x8f223f,_0x2e6337,_0x22fdb2,_0x7072b0=>{const _0x1c48b9=_0x14a386;let _0x37010a=te(_0x7072b0,_0x48c4fe['options'][_0x1c48b9(0x36d)]);return _0x37010a&&(_0x48c4fe[_0x1c48b9(0x272)]||_0x37010a[_0x1c48b9(0x36d)]===0x1)?_0x37010a:!_0x48c4fe[_0x1c48b9(0x272)]&&_0x1ddcb6>=0x0?{'typed':_0x7072b0}:{'refused':_0x48c4fe[_0x1c48b9(0x272)]?_0x1c48b9(0x30b)+_0x48c4fe[_0x1c48b9(0x339)][_0x1c48b9(0x36d)]+'.':_0x1c48b9(0x20b)+_0x48c4fe[_0x1c48b9(0x339)][_0x1c48b9(0x36d)]+'.'};});if(_0x3d64bf===void 0x0)return;if(!Array[_0x14a386(0x18e)](_0x3d64bf))return{'text':_0x3d64bf[_0x14a386(0x1db)]};let _0x36f171=_0x3d64bf[_0x14a386(0x175)](_0x2fb7a2=>_0x48c4fe[_0x14a386(0x339)][_0x2fb7a2]['id']),_0x5c5fa9=_0x36f171[_0x14a386(0x2df)](C)?await j(_0x8f223f,ee(_0x48c4fe['options'][_0x1ddcb6])+':\x20',_0x22fdb2,_0xb4e750=>_0xb4e750):void 0x0;if(!(_0x36f171[_0x14a386(0x2df)](C)&&_0x5c5fa9===void 0x0))return _0x48c4fe[_0x14a386(0x272)]?{'optionIds':_0x36f171,..._0x5c5fa9!==void 0x0?{'text':_0x5c5fa9}:{}}:_0x5c5fa9!==void 0x0?{'text':_0x5c5fa9}:{'optionId':_0x36f171[0x0]};}async function Be(_0x2bdedb,_0xb41737,_0x4d7fa0){const _0x35c43d=_0x2d1cd7;let _0x859008={};for(let _0x284aa3 of _0x2bdedb[_0x35c43d(0x337)]){let _0x52d0b2=_0x284aa3['default']??_0x284aa3[_0x35c43d(0x355)],_0xf592a=_0x284aa3[_0x35c43d(0x1e5)]??0x1,_0x2a3557=_0x284aa3[_0x35c43d(0x17f)]?'\x20'+E(_0x284aa3['unit']):'',_0x3fcfd7='from\x20'+_0x284aa3[_0x35c43d(0x355)]+'\x20to\x20'+_0x284aa3[_0x35c43d(0x229)]+(_0xf592a!==0x1?_0x35c43d(0x33f)+_0xf592a:''),_0x368eeb=await j(_0xb41737,E(_0x284aa3[_0x35c43d(0x261)])+'\x20['+_0x284aa3['min']+'-'+_0x284aa3[_0x35c43d(0x229)]+_0x2a3557+']\x20(Enter\x20for\x20'+_0x52d0b2+_0x35c43d(0x312),_0x4d7fa0,_0x5a2fe1=>{const _0x1f6f57=_0x35c43d;let _0x385733=Number(_0x5a2fe1);return Number['isFinite'](_0x385733)&&_0x385733>=_0x284aa3[_0x1f6f57(0x355)]&&_0x385733<=_0x284aa3[_0x1f6f57(0x229)]&&_0x37e204(_0x385733,_0x284aa3['min'],_0xf592a)?_0x385733:{'refused':_0x1f6f57(0x2b4)+_0x3fcfd7+'.'};});_0x859008[_0x284aa3['id']]=_0x368eeb??_0x52d0b2;}return{'values':_0x859008};}async function He(_0xedfec9,_0x2e84ec,_0x2e5bef){const _0x37f568=_0x2d1cd7;_0x2e5bef(_0xedfec9['buckets']['map']((_0x1e60a0,_0x36176b)=>'\x20\x20'+(_0x36176b+0x1)+'.\x20'+E(_0x1e60a0[_0x37f568(0x261)]))[_0x37f568(0x1cb)]('\x0a')+'\x0a');let _0x5af17a={};for(let _0x1777af of _0xedfec9['items']){let _0x16576b=await j(_0x2e84ec,E(_0x1777af['label'])+':\x20bucket\x20number\x20(Enter\x20to\x20leave\x20out):\x20',_0x2e5bef,_0x495c29=>{const _0x5af5d4=_0x37f568;let _0x4c34a9=te(_0x495c29,_0xedfec9[_0x5af5d4(0x26a)][_0x5af5d4(0x36d)]);return _0x4c34a9&&_0x4c34a9[_0x5af5d4(0x36d)]===0x1?_0x4c34a9[0x0]:{'refused':_0x5af5d4(0x20b)+_0xedfec9[_0x5af5d4(0x26a)]['length']+'.'};});if(_0x16576b===void 0x0)continue;let _0x16f9f8=_0xedfec9[_0x37f568(0x26a)][_0x16576b],_0x2aeaac={};for(let _0x31cf21 of _0x16f9f8[_0x37f568(0x1de)]??[]){let _0xd36921='\x20\x20'+E(_0x31cf21[_0x37f568(0x261)])+(_0x31cf21[_0x37f568(0x189)]?_0x37f568(0x205):'')+':\x20',_0x144e57=await j(_0x2e84ec,_0xd36921,_0x2e5bef,_0x5e9cf5=>_0x5e9cf5);for(;_0x144e57===void 0x0&&!_0x31cf21[_0x37f568(0x189)];)_0x2e5bef(E(_0x31cf21[_0x37f568(0x261)])+_0x37f568(0x35c)),_0x144e57=await j(_0x2e84ec,_0xd36921,_0x2e5bef,_0x571f6f=>_0x571f6f);_0x144e57!==void 0x0&&(_0x2aeaac[_0x31cf21['id']]=_0x144e57);}_0x5af17a[_0x1777af['id']]={'bucket':_0x16f9f8['id'],...Object[_0x37f568(0x220)](_0x2aeaac)[_0x37f568(0x36d)]>0x0?{'subFields':_0x2aeaac}:{}};}return Object['keys'](_0x5af17a)['length']>0x0?{'assignments':_0x5af17a}:void 0x0;}async function Je(_0x2fdb5a,_0x5b2338,_0x39c5ec){const _0x325da5=_0x2d1cd7;if(_0x2fdb5a[_0x325da5(0x157)]===_0x325da5(0x18d))return Fe(_0x2fdb5a,_0x5b2338,_0x39c5ec);if(_0x2fdb5a[_0x325da5(0x157)]===_0x325da5(0x29b))return Be(_0x2fdb5a,_0x5b2338,_0x39c5ec);if(_0x2fdb5a[_0x325da5(0x157)]===_0x325da5(0x2b5))return He(_0x2fdb5a,_0x5b2338,_0x39c5ec);let _0x12838e=(await _0x5b2338(_0x325da5(0x197)))[_0x325da5(0x153)]();return _0x12838e===''?void 0x0:{'text':_0x12838e};}function ne(_0x4158c3,_0x500101){return async _0x305822=>{const _0x3d96b5=_0xc71e;let _0x3b4786=_0x4158c3();if(!_0x3b4786)throw new Error(_0x3d96b5(0x14f));let _0xac398f=async _0x464dc6=>{const _0x2ba839=_0x3d96b5;if(_0x305822[_0x2ba839(0x34f)][_0x2ba839(0x173)])throw new Error(_0x2ba839(0x25a));let _0x2c40ed=await _0x3b4786[_0x2ba839(0x160)](_0x464dc6,_0x305822[_0x2ba839(0x34f)]);if(_0x2c40ed===null)throw new Error('Input\x20closed\x20before\x20the\x20question\x20was\x20answered.');return _0x2c40ed;};try{_0x500101('\x0a'+(_0x305822[_0x3d96b5(0x2f7)]?E(_0x305822[_0x3d96b5(0x2f7)])+'\x0a':''));let _0x35fdad={};for(let [_0x45a51d,_0x3d1dd3]of _0x305822[_0x3d96b5(0x2f0)]['entries']()){_0x500101('\x0a'+je(_0x3d1dd3,_0x45a51d+0x1,_0x305822['questions'][_0x3d96b5(0x36d)])+'\x0a');let _0xcacfd1=await Je(_0x3d1dd3,_0xac398f,_0x500101);_0xcacfd1!==void 0x0&&(_0x35fdad[_0x3d1dd3['id']]=_0xcacfd1);}return{'answers':_0x35fdad};}finally{_0x3b4786[_0x3d96b5(0x277)]();}};}import{createInterface as _0x4c660f}from'node:readline';var F=[_0x2d1cd7(0x18d),'stream-json'];function se(_0x2b0499){const _0x59db6a=_0x2d1cd7;return F[_0x59db6a(0x2df)](_0x2b0499);}var P=class extends Error{};function We(_0x51eeb5){const _0x5121df=_0x2d1cd7;if(typeof _0x51eeb5=='string')return _0x51eeb5;if(!Array[_0x5121df(0x18e)](_0x51eeb5))return;let _0x2c6137=[];for(let _0x9169f2 of _0x51eeb5){if(typeof _0x9169f2!='object'||_0x9169f2===null)return;let {type:_0x233c3a,text:_0x3c2aa4}=_0x9169f2;if(_0x233c3a!==_0x5121df(0x18d)||typeof _0x3c2aa4!=_0x5121df(0x2b1))return;_0x2c6137['push'](_0x3c2aa4);}return _0x2c6137[_0x5121df(0x1cb)]('\x0a');}function Ke(_0x135e9e){const _0x51d560=_0x2d1cd7;if(_0x135e9e['trim']()==='')return null;let _0x5d7533;try{_0x5d7533=JSON['parse'](_0x135e9e);}catch{throw new P(_0x51d560(0x2db));}if(typeof _0x5d7533!=_0x51d560(0x2a1)||_0x5d7533===null)throw new P(_0x51d560(0x282));let {type:_0x314648,message:_0x18c2e9,uuid:_0x177b47}=_0x5d7533;if(_0x314648!=='user')throw new P('an\x20input\x20line\x20has\x20type\x20'+JSON[_0x51d560(0x324)](_0x314648)+_0x51d560(0x33e));let _0x2303eb=We(_0x18c2e9?.[_0x51d560(0x30a)]);if(_0x2303eb===void 0x0)throw new P(_0x51d560(0x1b9));if(_0x2303eb['trim']()==='')throw new P(_0x51d560(0x2b2));return{'text':_0x2303eb,'uuid':typeof _0x177b47=='string'?_0x177b47:void 0x0};}function _0x5b54(){const _0x27681d=['No\x20sessions\x20on\x20page\x20','exitCode','origin','confidence','\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\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\x20export\x20TYPE\x20[DOCUMENT_ID]\x20--project\x20ID\x20[--working-dir\x20PATH]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Export\x20a\x20project\x27s\x20living\x20document\x20(TYPE:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20pdd,\x20sdd,\x20...)\x20to\x20.docx,\x20as\x20an\x20agent\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\x20/livingdoc/export\x20does,\x20from\x20the\x20local\x20disk:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20no\x20login\x20or\x20interop.\x20--project\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\x20--working-dir\x20name\x20the\x20project\x20as\x20the\x20run\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20that\x20wrote\x20it\x20did.\x20DOCUMENT_ID\x20(the\x20draft\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20path)\x20picks\x20one\x20of\x20several\x20documents\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\x20TYPE.\x20Prints\x20the\x20.docx\x20path;\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\x20there\x20is\x20no\x20such\x20document\x20or\x20export\x20fails\x0a\x20\x20delegate-cli\x20maps\x20share\x20--project\x20ID\x20--remote\x20URL|PATH\x20--map-name\x20NAME\x20[--working-dir\x20PATH]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Share\x20a\x20project\x27s\x20Map\x20of\x20Work,\x20as\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\x20desktop\x20app\x27s\x20Share\x20does\x20with\x20New\x20map\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\x20work:\x20its\x20history,\x20change\x20requests\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\x20versions\x20go\x20to\x20a\x20bare\x20git\x20repository\x20on\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this\x20computer\x20or\x20a\x20shared\x20drive\x20(a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20file://\x20URL\x20or\x20an\x20absolute\x20path),\x20under\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\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,\x20and\x20publish\x20there\x20from\x20then\x20on.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Join\x20it\x20in\x20the\x20app\x20with\x20Existing\x20map\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\x20work.\x20GitHub\x20is\x20not\x20available\x20here\x20yet.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20No\x20login\x20or\x20interop;\x20exits\x201\x20when\x20refused\x0a\x20\x20delegate-cli\x20maps\x20save-version\x20MESSAGE\x20--project\x20ID\x20[--working-dir\x20PATH]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Save\x20version,\x20as\x20in\x20the\x20desktop\x20app:\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\x20map\x27s\x20next\x200.x\x20version\x20(0.1.0\x20first),\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20named\x20MESSAGE.\x20Exits\x201\x20when\x20refused,\x20as\x20on\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20a\x20settled\x20map,\x20which\x20gets\x20versions\x20from\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20applied\x20change\x20requests\x20only\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--remote\x20URL|PATH\x20(maps\x20share)\x20The\x20bare\x20git\x20repository\x20to\x20share\x20to:\x20a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20file://\x20URL\x20or\x20an\x20absolute\x20path,\x20on\x20this\x20computer\x20or\x20a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20shared\x20drive.\x20Create\x20it\x20first\x20(git\x20init\x20--bare)\x0a\x20\x20--map-name\x20NAME\x20\x20\x20(maps\x20share)\x20The\x20Map\x27s\x20name\x20in\x20that\x20repository,\x20beside\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20other\x20projects\x27\x20Maps:\x20up\x20to\x2064\x20letters,\x20digits,\x20\x22.\x22,\x20\x22_\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20or\x20\x22-\x22,\x20starting\x20with\x20a\x20letter\x20or\x20digit\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','No\x20answers\x20awaiting\x20acceptance.\x0a','--page','now','from','remote','--worker-id','cwd','--skip-env-check\x20applies\x20to\x20`delegate-cli\x20login`\x20only.','\x20cap',',\x20got\x20','Source:\x20\x20\x20\x20\x20\x20\x20',',\x20whose\x20tenant\x20is\x20chosen\x20in\x20the\x20app.\x20Run\x20`delegate-cli\x20login\x20--env\x20<env>`\x20for\x20a\x20CLI\x20login\x20of\x20your\x20own.','an\x20input\x20line\x20has\x20no\x20message.content,\x20a\x20string\x20or\x20a\x20list\x20of\x20text\x20blocks','shift','expiresAt','delete','No\x20CLI\x20login\x20found\x20—\x20nothing\x20to\x20remove.','Spending:\x20\x20\x20\x20\x20$','Bearer\x20','--days','Already\x20answered','4jqntmM','The\x20saved\x20CLI\x20login\x20could\x20not\x20be\x20refreshed.\x20Run\x20`delegate-cli\x20login`\x20again.','--json-schema','messages','maps','then','\x20\x20(input\x20#','--remote\x20and\x20--map-name\x20apply\x20to\x20`delegate-cli\x20maps\x20share`\x20only.','No\x20delegations.\x0a','join','\x20(stdin\x20was\x20empty)','delegations','\x0a🤔\x20','hide','No\x20usage\x20in\x20the\x20last\x20','Invalid\x20--output-format:\x20','uuid','stdout','actionable_error','--map-name','followUpsRenderer','period_end','entries','tenantId','--authority','typed','[saved\x20login]\x20Backend\x20URL:\x20','finish','subFields','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.','--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`delegate-cli\x20sessions`\x20only.','task','dismissed','includeSubAgents','padEnd','step','low','Deployment:\x20\x20\x20','\x20active\x20days','user','The\x20steering\x20message\x20was\x20not\x20answered:\x20its\x20turn\x20did\x20not\x20run\x20or\x20added\x20no\x20reply.','total_prompt_tokens','Created\x20delegation\x20','add','probability','tool','getSessionId','resume','model_version','delegation','description','limit','next','accept','setPrompt','prompt_tokens','AUTH_TOKEN_FILE\x20\x27','replace','refused','a\x20number','\x20\x20from\x20','score\x20','org-users','question','toolName','1\x20or\x20more','medium','\x20(optional)','1934805FTuOJY','url','unknown','Session:\x20\x20\x20\x20\x20\x20','Saved\x20version\x20','Enter\x20one\x20number\x20from\x201\x20to\x20','Shared\x20the\x20Map\x20of\x20Work\x20of\x20','--effort','mapName','--no-connections','\x20of\x20a\x20$','\x20applies\x20to\x20prompts\x20and\x20to\x20these\x20commands\x20only:\x20','\x20vertical,\x20so\x20it\x20cannot\x20run\x20as\x20--vertical\x20','spawn','organizationId','\x0aAccept\x20one\x20with:\x20delegate-cli\x20delegations\x20accept\x20<id>\x0a','parse','interopPath','end','forEach','thinking','padStart','rejection','vertical','--no-memory','Token:\x20\x20\x20\x20\x20\x20\x20\x20expires\x20','keys','active_days','destroy','Cancel\x20requested\x20for\x20turn\x20','structuredError','No\x20CLI\x20login\x20to\x20switch:\x20the\x20CLI\x20is\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20','completion_tokens','orgLogicalName','No\x20structured\x20output:\x20the\x20turn\x20failed\x20(','max','days','--vertical','Interop\x20stopped\x20(if\x20it\x20was\x20running).','workerId','Task\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','name','ASSIGNEE','Unknown\x20flag:\x20','\x20(in\x20','stdin','/exit','stack','\x20(resets\x20','--remote','prompt','--tenant\x20requires\x20a\x20tenant\x20name.','rename','\x20prompt,\x20','--cartographer','noMemory','activity','Use:\x20delegate-cli\x20delegations\x20','auth.json','\x20as\x20\x22',',\x20or\x20holds\x20no\x20message\x20','--days\x20applies\x20to\x20`delegate-cli\x20usage\x20activity|daily`;\x20the\x20summary\x20covers\x20the\x20current\x20month.','46jvEFvd','Date\x20\x20\x20\x20\x20\x20\x20\x20Token\x20units\x20\x20Prompt\x20tokens\x20\x20Completion\x20tokens','contextSummary','\x20min)','\x20not\x20found,\x20has\x20no\x20messages','workingDirectory','byoWarning','claim','a\x20session\x20id','lockReason','monthly_limit_usd','settle','usage','an\x20effort\x20tier','getSessionMessages','high','race','host','subcommand','\x20(estimated\x20$','exit','fork','The\x20turn\x20was\x20cancelled.','Delegation\x20\x20\x20\x20','a\x20file://\x20URL\x20or\x20an\x20absolute\x20path','More:\x20delegate-cli\x20sessions\x20--page\x20','version','--summary','--session','label','Removed\x20','error','export','help','--cartographer\x20runs\x20the\x20','models','sessionId','extra_pool_consumed_pu','buckets','existsSync','delegations\x20create\x20--session\x20<id>\x20[--to\x20<email|name>]\x20[--summary\x20<text>]\x20\x22<task>\x22|-','\x20tokens\x0a','complete','score','UIPATH_BASE_URL\x20is\x20unusable.\x20','--attach','multiSelect','--runner-url','delegateTo','\x20-\x20','Usage:\x20delegate-cli\x20export\x20TYPE\x20[DOCUMENT_ID]\x20--project\x20ID\x20[--working-dir\x20PATH]','endQuestions','attachments','A\x20steering\x20message\x20arrived\x20after\x20the\x20turn\x20ended:\x20not\x20read.\x0a','Model\x20','STATUS','--turn','a\x20turn\x20id','--input-format\x20stream-json\x20needs\x20--output-format\x20stream-json:\x20the\x20steering\x20messages\x20are\x20answered\x20on\x20stdout.','\x20\x22<prompt>\x22\x0a','\x20—\x20sign\x20out\x20in\x20the\x20Delegate\x20app\x20to\x20clear\x20that.','\x27\x20is\x20empty.','an\x20input\x20line\x20is\x20not\x20a\x20JSON\x20object','Usage:\x20delegate-cli\x20org-users\x20<name\x20or\x20email\x20prefix>','cartographer','waitForIdle','\x0aUse\x20with:\x20delegate-cli\x20--model\x20<id>\x20\x22<prompt>\x22\x0a','--verbose','--task-automation','status','alpha','Continue\x20it\x20with:\x20delegate-cli\x20--session\x20','some','284676BAOzmK','dismiss','UiPath\x20Cloud','total_sessions','daily_usage','sourceTitle','Forked\x20','assignedUserEmail','alreadyCompleted','logout','\x22.\x0a','\x20<id>','162759YBwCwa','answers','numeric','whoami','Pass\x20either\x20--env\x20(a\x20named\x20cloud)\x20or\x20--url\x20(any\x20other\x20deployment),\x20not\x20both.','structured','Answered','skipEnvCheck','object','Work\x20on\x20it\x20with:\x20delegate-cli\x20--session\x20','Usage:\x20delegate-cli\x20sessions\x20fork\x20<id>\x20[<message-id>]','--to','backendUrl','parentSessionId','every','5706nFglCr','\x20this\x20month','headless','toUpperCase','deepLink','9589460JdFWKJ','Organization:\x20','delegations\x20complete\x20<delegation-id>\x20\x22<answer>\x22|-','choice\x20','string','an\x20input\x20line\x20has\x20an\x20empty\x20message','line','Enter\x20a\x20number\x20','bucket','env','a\x20vertical\x20id','--output-format\x20','Cost:\x20\x20\x20$','header','\x20must\x20be\x20a\x20whole\x20number\x20','delegations\x20cancel\x20<delegation-id>','delegations\x20pending\x20<session-id>','concat','delegations\x20show\x20<delegation-id|delegate://delegation/…>','skip','filter','\x20(Enter\x20to\x20skip):\x20','--session\x20applies\x20to\x20the\x20`delegate-cli\x20usage`\x20summary\x20only.','%\x20of\x20','--tenant\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Switch\x20tenants\x20with:\x20delegate-cli\x20tenant\x20<name>','a\x20directory\x20path','turnId','a\x20colleague','--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|\x20',':\x20ignored\x0a','\x20(resume\x20with\x20--session\x20',';\x20the\x20saved\x20login\x20still\x20uses\x20','Tenants\x20of\x20','Usage:\x20delegate-cli\x20maps\x20save-version\x20MESSAGE\x20--project\x20ID\x20[--working-dir\x20PATH]','Unknown\x20usage\x20view:\x20','--attach\x20applies\x20to\x20prompts\x20only.','From\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Unknown\x20delegations\x20action:\x20','title','--to,\x20--summary\x20and\x20--session\x20apply\x20to\x20`delegate-cli\x20delegations\x20create`\x20only.','--interop','Usage:\x20delegate-cli\x20sessions\x20[list]\x20[--page\x20N]\x20[--limit\x20N]\x20[--include-subagents]','--input-format\x20and\x20--replay-user-messages\x20apply\x20to\x20prompts\x20only.','Invalid\x20--input-format:\x20','--input-format\x20stream-json\x20reads\x20the\x20prompt\x20from\x20stdin:\x20pass\x20no\x20prompt\x20argument.','an\x20input\x20line\x20is\x20not\x20JSON','probability\x20','delegations\x20claim\x20<delegation-id|delegate://delegation/…>','xhigh','includes','operands','delegationId','steer','input','\x20to\x20','Usage:\x20delegate-cli\x20','response','readFileSync','--cleanup','utf-8','--limit','jsonSchemaPath','value','date','Tenant:\x20','auth','questions','email','isDesktopFallback','show','.\x20Drop\x20one\x20of\x20the\x20two.','🔧\x20','1479527qyquGr','intro','taskAutomation','isError','create','sourceUserEmail','\x20(Delegate\x20desktop\x20app\x20fallback)','Missing\x20prompt.\x20Pass\x20it\x20as\x20an\x20argument,\x20pipe\x20it\x20via\x20stdin,\x20or\x20run\x20`delegate-cli\x20--help`.','toFixed','getTurnUsageHistory','noComputerUse','results','done','--keep-alive','21141eytZZf','Invalid\x20--effort:\x20','initialize','stop','\x20<title>','Session:\x20','content','Enter\x20numbers\x20from\x201\x20to\x20','Usage:\x20delegate-cli\x20maps\x20share\x20--project\x20ID\x20--remote\x20URL|PATH\x20--map-name\x20NAME\x20[--working-dir\x20PATH]','oneTurn','inputFormat','\x20(current)','--project','\x20(confidence\x20','):\x20','userinput','accessToken','\x20token\x20units','\x20needs\x20a\x20JSON\x20request:\x20delegate-cli\x20','outputFormat','\x20is\x20not\x20valid\x20JSON\x20(','\x20from\x20','bundledSkillsPath','\x20PU','turn_start','Unknown\x20sessions\x20action:\x20','complete\x20needs\x20--json-schema\x20<file>:\x20delegate-cli\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22.','--backend','--skills-path','\x20token\x20units)','You>\x20','cancel','stringify','Something\x20else','\x20PU\x20beyond\x20quota','write','file','rerank','runnerUrl','Tenant\x20not\x20switched:\x20could\x20not\x20write\x20','displayName','--preload-skill','toString','off','session_consumed_pu','\x20\x20(sub-agent\x20of\x20','\x20\x22<prompt>\x22\x0aAnswer\x20with:\x20delegate-cli\x20delegations\x20complete\x20','Number','total_tokens','a\x20project\x20id','--replay-user-messages','fields','pause','options','768gVcSje','verbose','baseUrl','slice',',\x20not\x20\x22user\x22','\x20in\x20steps\x20of\x20','check','Structured\x20output\x20failed:\x20','\x0aStopping…\x20(Ctrl+C\x20again\x20to\x20force\x20exit)\x0a','all','--tenant','tool_call','session_start','a\x20format\x20(','Organization\x20\x20','a\x20deployment\x20URL,\x20e.g.\x20https://automationsuite.contoso.com','\x20of\x20the\x20Map\x20of\x20Work\x20of\x20','tenant','choice','Session\x20','removeEventListener','signal','\x20of\x20session\x20','preloadSkills','stderr','--input-format','updatedAt','min','\x20sessions\x20on\x20','transcribe','\x20in\x20progress\x20on\x20session\x20','isSafeInteger','assignedUser','\x0aAvailable\x20models\x20(','\x20is\x20required.\x0a','\x20delegation\x20','test','stream-json','),\x20','isTTY','pending','--task-automation\x20applies\x20to\x20prompts\x20only.','split','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','.\x20Use\x20','noSecurity','Tokens:\x20','share','Turn:\x20','\x20requires\x20',').\x0a','length','keepAlive','save-version','a\x20file\x20path','Claimed\x20from\x20delegation\x20','model','a\x20JSON\x20schema\x20file','verdict','--env','code','toISOString','deleted','resolve','--model','quiet','noConnections','There\x20is\x20no\x20terminal\x20input\x20to\x20answer\x20from.','total_cost_usd','\x20\x20TITLE\x0a','page','trim','Auth\x20comes\x20from\x20AUTH_TOKEN/TENANT_ID/ORG_ID\x20—\x20set\x20TENANT_ID\x20and\x20TENANT_SLUG\x20to\x20change\x20the\x20tenant.','Session\x20\x20\x20\x20\x20\x20\x20','evaluate','type','total_token_units','--no-computer-use','period_days','list','--url','--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`delegate-cli\x20sessions\x20[list]`\x20only.','Owner\x20\x20\x20\x20\x20\x20\x20\x20\x20','tokenExpiresAt','readLine','verify','replayUserMessages','deployment','\x20(cancel\x20with:\x20delegate-cli\x20sessions\x20cancel\x20','findIndex','--turn\x20applies\x20to\x20`delegate-cli\x20sessions\x20cancel`\x20only.','staging','.\x20Use\x20alpha\x20|\x20staging\x20|\x20production\x20|\x20localhost.','--working-dir','Switch\x20with:\x20delegate-cli\x20tenant\x20<name>\x0a','total_completion_tokens','alreadyAccepted','push','close','SIGINT','onEvent','\x20PU\x20used','.\x20Use\x20`delegate-cli\x20usage`,\x20`usage\x20activity`\x20or\x20`usage\x20daily`.','aborted','Numbers,\x20separated\x20by\x20commas\x20(Enter\x20to\x20skip):\x20','map','Steering\x20input\x20stopped:\x20','Usage:\x20delegate-cli\x20sessions\x20cancel\x20<session-id>\x20--turn\x20<turn-id>','--url\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Other\x20commands\x20follow\x20the\x20saved\x20login,\x20or\x20--backend\x20<url>.','login','erase','transcribe:\x20cannot\x20read\x20','abort','effort','--replay-user-messages\x20needs\x20--input-format\x20stream-json.','unit','detail','data','sessions','tenantName','pendingResults','log','Accepted','cleanup','widget','optional','isInteger','startsWith','--days\x20applies\x20to\x20`delegate-cli\x20usage\x20activity|daily`\x20only.','text','isArray','pct_used','No\x20one\x20matches\x20\x22','delegations\x20accept\x20<delegation-id>',':\x20cannot\x20read\x20the\x20JSON\x20schema\x20(','pop','self-hosted\x20(Automation\x20Suite\x20/\x20Dedicated)','unknown\x20slug','cancelled','Your\x20answer,\x20as\x20text\x20(the\x20CLI\x20attaches\x20no\x20files;\x20Enter\x20to\x20skip):\x20','limit_enabled','No\x20turn\x20','Enter\x20sends\x20a\x20message.\x20/exit\x20or\x20EOF\x20exits;\x20Ctrl+C\x20stops\x20and\x20exits.\x0a','localhost','projectId','estimated_cost_usd','catch','delegate-cli','round','userId','\x20or\x20your\x20own\x20answer','kind','return','bind','message','lastType'];_0x5b54=function(){return _0x27681d;};return _0x5b54();}function oe(_0x22ddde,_0x3d066a){const _0x19f085=_0x2d1cd7;return JSON['stringify']({'type':_0x19f085(0x1e9),'message':{'role':'user','content':_0x22ddde[_0x19f085(0x18d)]},'session_id':_0x3d066a,..._0x22ddde[_0x19f085(0x1d2)]===void 0x0?{}:{'uuid':_0x22ddde[_0x19f085(0x1d2)]},'isReplay':!0x0})+'\x0a';}function _0xc71e(_0x529bdf,_0x4c9bfa){_0x529bdf=_0x529bdf-0x14b;const _0x5b5482=_0x5b54();let _0xc71e3f=_0x5b5482[_0x529bdf];return _0xc71e3f;}async function*re(_0x38a40c,_0x23b421){const _0x8cfd7f=_0x2d1cd7;let _0x54a06e=_0x4c660f({'input':_0x38a40c,'crlfDelay':0x1/0x0});try{for await(let _0xcfe05f of _0x54a06e){let _0x3e79d8;try{_0x3e79d8=Ke(_0xcfe05f);}catch(_0xc26410){if(!(_0xc26410 instanceof P))throw _0xc26410;_0x23b421(_0xc26410);continue;}_0x3e79d8&&(yield _0x3e79d8);}}finally{_0x54a06e[_0x8cfd7f(0x16e)]();}}import{BUSINESS_ANALYSIS_PRELOADED_SKILLS as _0x4ad03a,DelegateAgent as _0x418778,cancelTurn as _0x302a94,InteropProcess as _0x7e6568,complete as _0x1ea516,DEFAULT_MODEL as _0x52d8f0,createBackendClient as _0x2c788e,evaluate as _0x315f83,isCompletionRequestError as _0x511823,isEvaluationRequestError as _0x28ca55,isTranscriptionError as _0x9fdede,rerank as _0x13dfbd,transcribe as _0x2d16d6,exportLivingDocument as _0x104d3f,saveMapVersion as _0x261f75,shareMap as _0x5e2d7d,verify as _0x3aa613,acceptDelegation as _0x1635ea,cancelDelegation as _0x353156,claimDelegation as _0x1bca6f,completeDelegation as _0x31bbfc,createDelegation as _0x4b4335,deleteDelegation as _0x5127a4,dismissDelegation as _0x5f5918,getSessionDelegations as _0xfacc8f,isDelegationError as _0x392e53,listDelegations as _0x41300d,listOrgUsers as _0xe19e05,previewDelegation as _0xdbc144,TurnResultCollector as _0x63b84,agentEventToJsonLine as _0x1a8be5,describeBaseUrlRejection as _0x41c1bb,getActivitySummary as _0x4dba0b,getAuthFilePath as _0x13e15a,getByoWarnings as _0x247c2c,getDailyBreakdown as _0x151fdf,getLicensingSummary as _0x5e9c0c,getMonthlySpending as _0x270ae9,isOutputFormat as _0x100f66,isCloudBaseUrl as _0x4a0f69,isSafeProjectFolderSegment as _0x455f2d,listModels as _0x301841,listSessions as _0x8b1797,getSession as _0x2ed83f,renameSession as _0x1661a7,deleteSession as _0x59e72e,deleteSessionTaskLog as _0x2a55ca,forkSession as _0xf0a480,isBackendRequestError as _0x3b6578,MAX_SESSION_PAGE_SIZE as _0x5c798f,listTenants as _0x40a7ee,loadAndRefreshAuth as _0x77731b,loadAndRefreshSdkLogin as _0x1e5984,parsePlatformBaseUrl as _0xbb16b1,resolveBackendUrl as _0x2854a6,runHealthCheck as _0x449e3d,runHostCommand as _0xc4df0e,runLoginFlow as _0x5e12fd,runTurnForResult as _0x254ab8,saveAuthData as _0x3d20a4,switchTenant as _0x2be77f,toJsonLine as _0xfc737e,ENV_TO_CLOUD as _0x359710,OUTPUT_FORMATS as _0x37d327,isRunStopNotice as _0x25601e,extractActionableErrorText as _0x458304}from'@uipath/delegate-sdk';function ie(_0x2d4dc3){const _0x19595a=_0x2d1cd7;let {input:_0x154f13,getAgent:_0x18b425,replay:_0x483aba,onEvent:_0x47cd1b,write:_0x23ced2,warn:_0x40e22c,isRunStopNotice:_0x415f8d,actionableErrorText:_0x7fe4ee}=_0x2d4dc3,_0x1af97b=0x0,_0x1bdc37=0x0,_0x239c1a=Promise[_0x19595a(0x14b)](),_0x1488e7=!0x1,_0x2ae012=()=>{},_0x237b1e=new Promise(_0x37f174=>{_0x2ae012=_0x37f174;}),_0xf0fc37=[],_0x4dc5f6=_0x47cd1b(_0x4b2e3f=>{const _0x404dfb=_0x19595a;_0x4b2e3f['type']===_0x404dfb(0x31c)&&(_0x2ae012(),_0xf0fc37[_0x404dfb(0x1ba)]()?.());}),_0x5e60b8=_0x386f44=>{const _0x4f2757=_0x19595a;_0x483aba&&_0x23ced2(oe(_0x386f44,_0x18b425()[_0x4f2757(0x1f0)]()));},_0x1516cd=(async()=>{const _0x5d149e=_0x19595a;await _0x237b1e;for await(let _0xe8cb69 of _0x154f13[_0x5d149e(0x1c5)]){if(_0x1488e7)return;_0x1af97b===0x0&&(_0x1bdc37=_0x18b425()[_0x5d149e(0x252)]()[_0x5d149e(0x36d)]),_0x1af97b++;let _0x180b99=new Promise(_0xa43abe=>{const _0x4bed1a=_0x5d149e;_0xf0fc37[_0x4bed1a(0x16d)](()=>{_0x5e60b8(_0xe8cb69),_0xa43abe();});}),_0x47d601=()=>{const _0x425187=_0x5d149e;_0x1af97b--,_0xf0fc37[_0x425187(0x193)]();},_0x8785a0=_0x18b425()[_0x5d149e(0x2e2)](_0xe8cb69[_0x5d149e(0x18d)]);_0x239c1a=_0x8785a0[_0x5d149e(0x19e)](()=>{});try{await _0x8785a0?await Promise[_0x5d149e(0x254)]([_0x180b99,_0x18b425()[_0x5d149e(0x285)]()]):(_0x47d601(),_0x40e22c(_0x5d149e(0x279)));}catch(_0x459b2a){_0x47d601(),_0x40e22c('A\x20steering\x20message\x20was\x20not\x20sent:\x20'+(_0x459b2a instanceof Error?_0x459b2a[_0x5d149e(0x1a6)]:String(_0x459b2a))+'\x0a');}}})()['catch'](_0x352485=>{const _0x52e544=_0x19595a;_0x40e22c(_0x52e544(0x176)+(_0x352485 instanceof Error?_0x352485[_0x52e544(0x1a6)]:String(_0x352485))+'\x0a');});return{'settle':async _0x97224e=>{const _0x458270=_0x19595a;if(await _0x239c1a,_0x1af97b===0x0)return _0x97224e;await _0x18b425()[_0x458270(0x285)]();for(let _0x248dbe of _0xf0fc37)_0x248dbe();_0xf0fc37=[];let _0x1d33fa=_0x18b425()[_0x458270(0x252)]()[_0x458270(0x33d)](_0x1bdc37)['findLast'](_0x3cad73=>_0x3cad73[_0x458270(0x188)]===_0x458270(0x1d4)||_0x415f8d(_0x3cad73)||_0x3cad73[_0x458270(0x157)]==='ai'&&_0x3cad73['widget']!=='agent_thought'&&_0x3cad73[_0x458270(0x188)]!==_0x458270(0x1d6)&&!!_0x3cad73[_0x458270(0x30a)]);if(!_0x1d33fa)return{..._0x97224e,'failed':!0x0,'text':_0x458270(0x1ea)};let _0x117451=_0x1d33fa[_0x458270(0x188)]===_0x458270(0x1d4);return typeof _0x1d33fa[_0x458270(0x30a)]!='string'?{..._0x97224e,'failed':_0x117451}:{..._0x97224e,'failed':_0x117451,'text':_0x117451?_0x7fe4ee(_0x1d33fa[_0x458270(0x30a)]):_0x1d33fa[_0x458270(0x30a)]};},'stop':()=>{const _0x40a3cc=_0x19595a;_0x1488e7=!0x0,_0x4dc5f6(),_0x154f13[_0x40a3cc(0x16e)]();}};}var Yt=['login','tenant',_0x2d1cd7(0x267),_0x2d1cd7(0x255),_0x2d1cd7(0x296),_0x2d1cd7(0x29c),_0x2d1cd7(0x340),_0x2d1cd7(0x182),'usage',_0x2d1cd7(0x156),_0x2d1cd7(0x329),_0x2d1cd7(0x161),_0x2d1cd7(0x26e),_0x2d1cd7(0x357),_0x2d1cd7(0x264),_0x2d1cd7(0x1c6),_0x2d1cd7(0x1cd),'org-users'],ue=['',_0x2d1cd7(0x267),'whoami','check',_0x2d1cd7(0x182),_0x2d1cd7(0x250),_0x2d1cd7(0x156),_0x2d1cd7(0x329),_0x2d1cd7(0x161),'complete','transcribe',_0x2d1cd7(0x264),_0x2d1cd7(0x1c6),_0x2d1cd7(0x1cd),_0x2d1cd7(0x200)],pe=[_0x2d1cd7(0x1e6),_0x2d1cd7(0x204),_0x2d1cd7(0x253),_0x2d1cd7(0x2de),_0x2d1cd7(0x229)],zt=_0x4ad03a,B=_0x2d1cd7(0x284);function b(_0x44fa03,_0x3183c9,_0x2d0cf5,_0x27e771){const _0x8d573b=_0x2d1cd7;let _0x4df845=_0x44fa03[_0x3183c9];return(!_0x4df845||_0x4df845[_0x8d573b(0x36d)]>0x1&&_0x4df845['startsWith']('-'))&&(console[_0x8d573b(0x263)](_0x2d0cf5+_0x8d573b(0x36b)+_0x27e771+'.'),process['exit'](0x2)),_0x4df845;}function K(_0xf14ba7,_0x282652,_0x439399,_0x2c9ccf){const _0x446126=_0x2d1cd7;let _0x16eb6c=b(_0xf14ba7,_0x282652,_0x439399,_0x446126(0x1fd)),_0x347abe=Number(_0x16eb6c);return(!/^\d+$/[_0x446126(0x35e)](_0x16eb6c)||_0x347abe<0x1||!Number[_0x446126(0x359)](_0x347abe)||_0x2c9ccf!==void 0x0&&_0x347abe>_0x2c9ccf)&&(console[_0x446126(0x263)](_0x439399+_0x446126(0x2bb)+(_0x2c9ccf===void 0x0?_0x446126(0x203):'from\x201\x20to\x20'+_0x2c9ccf)+_0x446126(0x1b6)+_0x16eb6c+'.'),process[_0x446126(0x258)](0x2)),_0x347abe;}function Vt(_0x5d9075){const _0x4c70bf=_0x2d1cd7;let _0x17073d={'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':_0x4c70bf(0x18d),'inputFormat':'text','replayUserMessages':!0x1,'preloadSkills':[],'attachments':[],'skipEnvCheck':!0x1,'includeSubAgents':!0x1,'operands':[],'help':!0x1,'version':!0x1};Yt[_0x4c70bf(0x2df)](_0x5d9075[0x0])&&(_0x17073d[_0x4c70bf(0x256)]=_0x5d9075[0x0],_0x5d9075=_0x5d9075[_0x4c70bf(0x33d)](0x1));let _0x57fa66=[];for(let _0x42349d=0x0;_0x42349d<_0x5d9075[_0x4c70bf(0x36d)];_0x42349d++){let _0x1bac23=_0x5d9075[_0x42349d];switch(_0x1bac23){case'--print':case'-p':_0x17073d['print']=!0x0;break;case _0x4c70bf(0x303):_0x17073d['keepAlive']=!0x0;break;case _0x4c70bf(0x2e8):_0x17073d[_0x4c70bf(0x187)]=!0x0;break;case'--headless':_0x17073d[_0x4c70bf(0x2aa)]=!0x0;break;case _0x4c70bf(0x159):_0x17073d['noComputerUse']=!0x0;break;case _0x4c70bf(0x23c):_0x17073d['cartographer']=!0x0,_0x17073d[_0x4c70bf(0x300)]=!0x0,_0x17073d['preloadSkills'][_0x4c70bf(0x16d)](...zt);break;case _0x4c70bf(0x20f):_0x17073d[_0x4c70bf(0x14e)]=!0x0;break;case'--no-security':_0x17073d[_0x4c70bf(0x367)]=!0x0;break;case _0x4c70bf(0x21e):_0x17073d[_0x4c70bf(0x23d)]=!0x0;break;case _0x4c70bf(0x288):_0x17073d[_0x4c70bf(0x2f8)]=!0x0;break;case'--quiet':case'-q':_0x17073d[_0x4c70bf(0x14d)]=!0x0;break;case _0x4c70bf(0x287):_0x17073d[_0x4c70bf(0x33b)]=!0x0;break;case _0x4c70bf(0x31f):_0x17073d[_0x4c70bf(0x2a5)]=_0x5d9075[++_0x42349d];break;case _0x4c70bf(0x14c):_0x17073d[_0x4c70bf(0x372)]=_0x5d9075[++_0x42349d];break;case _0x4c70bf(0x273):_0x17073d[_0x4c70bf(0x32a)]=_0x5d9075[++_0x42349d];break;case _0x4c70bf(0x2d6):_0x17073d[_0x4c70bf(0x217)]=_0x5d9075[++_0x42349d];break;case _0x4c70bf(0x1b2):_0x17073d[_0x4c70bf(0x22d)]=_0x5d9075[++_0x42349d];break;case _0x4c70bf(0x32d):_0x17073d['preloadSkills'][_0x4c70bf(0x16d)](b(_0x5d9075,++_0x42349d,_0x1bac23,'a\x20skill\x20name'));break;case _0x4c70bf(0x310):{let _0x304d6c=b(_0x5d9075,++_0x42349d,_0x1bac23,_0x4c70bf(0x335));_0x455f2d(_0x304d6c)||(console[_0x4c70bf(0x263)]('Invalid\x20--project:\x20\x22'+_0x304d6c+'\x22.\x20Use\x20a\x20single\x20folder-safe\x20segment\x20such\x20as\x20invoice-approval\x20(letters,\x20digits,\x20spaces,\x20\x22_\x22,\x20\x22-\x22,\x20\x22.\x22,\x20parentheses;\x20at\x20most\x2064\x20characters;\x20not\x20starting\x20with\x20\x22.\x22\x20or\x20ending\x20with\x20\x22.\x22\x20or\x20a\x20space).'),process['exit'](0x2)),_0x17073d[_0x4c70bf(0x19c)]=_0x304d6c;break;}case _0x4c70bf(0x22b):_0x17073d['vertical']=b(_0x5d9075,++_0x42349d,_0x1bac23,_0x4c70bf(0x2b7));break;case'--output-format':{let _0x26478c=b(_0x5d9075,++_0x42349d,_0x1bac23,_0x4c70bf(0x347)+_0x37d327[_0x4c70bf(0x1cb)](_0x4c70bf(0x2ca))+')');_0x100f66(_0x26478c)||(console[_0x4c70bf(0x263)](_0x4c70bf(0x1d1)+_0x26478c+_0x4c70bf(0x366)+_0x37d327[_0x4c70bf(0x1cb)](_0x4c70bf(0x2ca))+'.'),process[_0x4c70bf(0x258)](0x2)),_0x17073d[_0x4c70bf(0x317)]=_0x26478c;break;}case _0x4c70bf(0x353):{let _0xe3c5a7=b(_0x5d9075,++_0x42349d,_0x1bac23,_0x4c70bf(0x347)+F['join'](_0x4c70bf(0x2ca))+')');se(_0xe3c5a7)||(console[_0x4c70bf(0x263)](_0x4c70bf(0x2d9)+_0xe3c5a7+_0x4c70bf(0x366)+F[_0x4c70bf(0x1cb)](_0x4c70bf(0x2ca))+'.'),process[_0x4c70bf(0x258)](0x2)),_0x17073d[_0x4c70bf(0x30e)]=_0xe3c5a7;break;}case _0x4c70bf(0x336):_0x17073d[_0x4c70bf(0x162)]=!0x0;break;case _0x4c70bf(0x260):_0x17073d[_0x4c70bf(0x268)]=b(_0x5d9075,++_0x42349d,_0x1bac23,_0x4c70bf(0x24c));break;case _0x4c70bf(0x1ae):_0x17073d[_0x4c70bf(0x152)]=K(_0x5d9075,++_0x42349d,_0x1bac23);break;case _0x4c70bf(0x2ea):_0x17073d[_0x4c70bf(0x1f5)]=K(_0x5d9075,++_0x42349d,_0x1bac23,_0x5c798f);break;case'--include-subagents':_0x17073d[_0x4c70bf(0x1e3)]=!0x0;break;case _0x4c70bf(0x1c4):_0x17073d[_0x4c70bf(0x2eb)]=b(_0x5d9075,++_0x42349d,_0x1bac23,_0x4c70bf(0x373));break;case _0x4c70bf(0x271):{let _0x53abc7=_0x30cae0['resolve'](process[_0x4c70bf(0x1b3)](),b(_0x5d9075,++_0x42349d,_0x1bac23,_0x4c70bf(0x370)));_0x5a32b5[_0x4c70bf(0x26b)](_0x53abc7)||(console[_0x4c70bf(0x263)]('--attach:\x20no\x20such\x20file\x20or\x20folder:\x20'+_0x53abc7),process[_0x4c70bf(0x258)](0x2)),_0x17073d['attachments']['push'](_0x53abc7);break;}case _0x4c70bf(0x27c):_0x17073d['turnId']=b(_0x5d9075,++_0x42349d,_0x1bac23,_0x4c70bf(0x27d));break;case _0x4c70bf(0x2a4):_0x17073d[_0x4c70bf(0x274)]=b(_0x5d9075,++_0x42349d,_0x1bac23,'an\x20email\x20address\x20or\x20name');break;case _0x4c70bf(0x25f):_0x17073d[_0x4c70bf(0x246)]=b(_0x5d9075,++_0x42349d,_0x1bac23,'a\x20briefing\x20text');break;case _0x4c70bf(0x237):_0x17073d['remote']=b(_0x5d9075,++_0x42349d,_0x1bac23,_0x4c70bf(0x25c));break;case _0x4c70bf(0x1d5):_0x17073d[_0x4c70bf(0x20e)]=b(_0x5d9075,++_0x42349d,_0x1bac23,'a\x20Map\x20name');break;case _0x4c70bf(0x1c0):_0x17073d['days']=K(_0x5d9075,++_0x42349d,_0x1bac23,0x16d);break;case _0x4c70bf(0x169):_0x17073d['workingDirectory']=_0x30cae0[_0x4c70bf(0x14b)](process[_0x4c70bf(0x1b3)](),b(_0x5d9075,++_0x42349d,_0x1bac23,_0x4c70bf(0x2c6)));break;case _0x4c70bf(0x320):_0x17073d['bundledSkillsPath']=_0x30cae0[_0x4c70bf(0x14b)](process[_0x4c70bf(0x1b3)](),b(_0x5d9075,++_0x42349d,_0x1bac23,_0x4c70bf(0x2c6)));break;case _0x4c70bf(0x20d):{let _0x2316e7=b(_0x5d9075,++_0x42349d,_0x1bac23,_0x4c70bf(0x251));pe[_0x4c70bf(0x2df)](_0x2316e7)||(console[_0x4c70bf(0x263)](_0x4c70bf(0x305)+_0x2316e7+_0x4c70bf(0x366)+pe['join'](_0x4c70bf(0x2ca))+'.'),process[_0x4c70bf(0x258)](0x2)),_0x17073d['effort']=_0x2316e7;break;}case _0x4c70bf(0x344):{let _0x402400=_0x5d9075[++_0x42349d];(!_0x402400||_0x402400['startsWith']('--'))&&(console[_0x4c70bf(0x263)](_0x4c70bf(0x239)),process[_0x4c70bf(0x258)](0x2)),_0x17073d['tenant']=_0x402400;break;}case _0x4c70bf(0x375):{let _0x104d00=_0x5d9075[++_0x42349d];[_0x4c70bf(0x28a),_0x4c70bf(0x167),'production','localhost'][_0x4c70bf(0x2df)](_0x104d00)||(console[_0x4c70bf(0x263)]('Invalid\x20--env:\x20'+_0x104d00+_0x4c70bf(0x168)),process[_0x4c70bf(0x258)](0x2)),_0x17073d[_0x4c70bf(0x2b6)]=_0x104d00;break;}case _0x4c70bf(0x15c):case _0x4c70bf(0x1da):{let _0x1313d5=b(_0x5d9075,++_0x42349d,_0x1bac23,_0x4c70bf(0x349)),_0x1d1d6f=_0xbb16b1(_0x1313d5);if(_0x1d1d6f['ok']===!0x1){console[_0x4c70bf(0x263)](_0x41c1bb(_0x1313d5,_0x1d1d6f[_0x4c70bf(0x21c)])),process[_0x4c70bf(0x258)](0x2);break;}_0x17073d[_0x4c70bf(0x207)]=_0x1d1d6f['baseUrl'];break;}case'--skip-env-check':_0x17073d[_0x4c70bf(0x2a0)]=!0x0;break;case'-h':case'--help':_0x17073d[_0x4c70bf(0x265)]=!0x0;break;case'-v':case'--version':_0x17073d[_0x4c70bf(0x25e)]=!0x0;break;default:_0x1bac23[_0x4c70bf(0x18b)]('--')&&(console[_0x4c70bf(0x263)](_0x4c70bf(0x231)+_0x1bac23),process[_0x4c70bf(0x258)](0x2)),_0x57fa66[_0x4c70bf(0x16d)](_0x1bac23);}}return _0x17073d['tenant']!==void 0x0&&_0x17073d[_0x4c70bf(0x256)]!==_0x4c70bf(0x179)&&(console[_0x4c70bf(0x263)](_0x4c70bf(0x2c5)),process['exit'](0x2)),_0x17073d[_0x4c70bf(0x207)]!==void 0x0&&_0x17073d[_0x4c70bf(0x2b6)]!==void 0x0&&(console[_0x4c70bf(0x263)](_0x4c70bf(0x29d)),process[_0x4c70bf(0x258)](0x2)),_0x17073d[_0x4c70bf(0x207)]!==void 0x0&&_0x17073d[_0x4c70bf(0x256)]!=='login'&&(console[_0x4c70bf(0x263)](_0x4c70bf(0x178)),process[_0x4c70bf(0x258)](0x2)),_0x17073d[_0x4c70bf(0x22a)]!==void 0x0&&_0x17073d[_0x4c70bf(0x256)]!==_0x4c70bf(0x250)&&(console[_0x4c70bf(0x263)](_0x4c70bf(0x18c)),process[_0x4c70bf(0x258)](0x2)),_0x17073d[_0x4c70bf(0x2eb)]!==void 0x0&&(_0x17073d[_0x4c70bf(0x256)]!=='complete'&&_0x17073d['subcommand']!==''||_0x17073d[_0x4c70bf(0x187)])&&(console[_0x4c70bf(0x263)]('--json-schema\x20applies\x20to\x20prompts\x20and\x20to\x20`delegate-cli\x20complete`\x20only.'),process[_0x4c70bf(0x258)](0x2)),_0x17073d['attachments'][_0x4c70bf(0x36d)]>0x0&&(_0x17073d[_0x4c70bf(0x256)]!==''||_0x17073d['cleanup'])&&(console[_0x4c70bf(0x263)](_0x4c70bf(0x2d1)),process[_0x4c70bf(0x258)](0x2)),_0x17073d['taskAutomation']&&(_0x17073d[_0x4c70bf(0x256)]!==''||_0x17073d['cleanup'])&&(console[_0x4c70bf(0x263)](_0x4c70bf(0x363)),process[_0x4c70bf(0x258)](0x2)),_0x17073d[_0x4c70bf(0x2f8)]&&(_0x17073d['headless']||_0x17073d['noComputerUse']||_0x17073d[_0x4c70bf(0x21d)]?.[_0x4c70bf(0x153)]()===B)&&(console[_0x4c70bf(0x263)](_0x4c70bf(0x2c9)),process[_0x4c70bf(0x258)](0x2)),_0x17073d[_0x4c70bf(0x284)]&&(_0x17073d[_0x4c70bf(0x21d)]!==void 0x0&&_0x17073d[_0x4c70bf(0x21d)][_0x4c70bf(0x153)]()!==B&&(console[_0x4c70bf(0x263)](_0x4c70bf(0x266)+B+_0x4c70bf(0x212)+_0x17073d[_0x4c70bf(0x21d)]+_0x4c70bf(0x2f4)),process[_0x4c70bf(0x258)](0x2)),_0x17073d[_0x4c70bf(0x21d)]=B),_0x17073d[_0x4c70bf(0x2a0)]&&_0x17073d[_0x4c70bf(0x256)]!=='login'&&(console[_0x4c70bf(0x263)](_0x4c70bf(0x1b4)),process['exit'](0x2)),_0x17073d[_0x4c70bf(0x317)]!=='text'&&!ue[_0x4c70bf(0x2df)](_0x17073d['subcommand'])&&(console[_0x4c70bf(0x263)](_0x4c70bf(0x2b8)+_0x17073d[_0x4c70bf(0x317)]+_0x4c70bf(0x211)+ue[_0x4c70bf(0x2c1)](Boolean)[_0x4c70bf(0x1cb)](',\x20')+'.'),process[_0x4c70bf(0x258)](0x2)),(_0x17073d[_0x4c70bf(0x30e)]!==_0x4c70bf(0x18d)||_0x17073d[_0x4c70bf(0x162)])&&_0x17073d['subcommand']!==''&&(console[_0x4c70bf(0x263)](_0x4c70bf(0x2d8)),process[_0x4c70bf(0x258)](0x2)),_0x17073d[_0x4c70bf(0x162)]&&_0x17073d[_0x4c70bf(0x30e)]!=='stream-json'&&(console[_0x4c70bf(0x263)](_0x4c70bf(0x17e)),process[_0x4c70bf(0x258)](0x2)),_0x17073d[_0x4c70bf(0x30e)]===_0x4c70bf(0x35f)&&_0x17073d['outputFormat']!==_0x4c70bf(0x35f)&&(console['error'](_0x4c70bf(0x27e)),process['exit'](0x2)),(_0x17073d[_0x4c70bf(0x152)]!==void 0x0||_0x17073d['limit']!==void 0x0||_0x17073d[_0x4c70bf(0x1e3)])&&_0x17073d[_0x4c70bf(0x256)]!==_0x4c70bf(0x182)&&(console[_0x4c70bf(0x263)](_0x4c70bf(0x1e0)),process['exit'](0x2)),(_0x17073d[_0x4c70bf(0x274)]!==void 0x0||_0x17073d[_0x4c70bf(0x246)]!==void 0x0)&&_0x17073d[_0x4c70bf(0x256)]!==_0x4c70bf(0x1cd)&&(console['error']('--to\x20and\x20--summary\x20apply\x20to\x20`delegate-cli\x20delegations\x20create`\x20only.'),process['exit'](0x2)),_0x17073d[_0x4c70bf(0x2c7)]!==void 0x0&&_0x17073d[_0x4c70bf(0x256)]!==_0x4c70bf(0x182)&&(console[_0x4c70bf(0x263)]('--turn\x20applies\x20to\x20`delegate-cli\x20sessions\x20cancel`\x20only.'),process[_0x4c70bf(0x258)](0x2)),(_0x17073d[_0x4c70bf(0x1b1)]!==void 0x0||_0x17073d[_0x4c70bf(0x20e)]!==void 0x0)&&(_0x17073d[_0x4c70bf(0x256)]!==_0x4c70bf(0x1c6)||_0x57fa66[0x0]!==_0x4c70bf(0x369))&&(console[_0x4c70bf(0x263)](_0x4c70bf(0x1c9)),process['exit'](0x2)),_0x17073d[_0x4c70bf(0x351)]=[...new Set(_0x17073d['preloadSkills'])],_0x17073d[_0x4c70bf(0x2e0)]=_0x57fa66,_0x17073d[_0x4c70bf(0x238)]=_0x57fa66['join']('\x20'),_0x17073d[_0x4c70bf(0x30e)]==='stream-json'&&_0x17073d[_0x4c70bf(0x238)]!==''&&(console['error'](_0x4c70bf(0x2da)),process['exit'](0x2)),_0x17073d;}var L=_0x352181=>{const _0x5356ad=_0x2d1cd7;process[_0x5356ad(0x1d3)][_0x5356ad(0x327)](_0x352181);};function Xt(){const _0x399756=_0x2d1cd7;let _0x16ce90=process['stdout'][_0x399756(0x327)],_0x2324ea=_0x16ce90[_0x399756(0x1a5)](process[_0x399756(0x1d3)]),_0x19277a=L;return L=_0x441de7=>{_0x2324ea(_0x441de7);},process['stdout'][_0x399756(0x327)]=(..._0x23d0cd)=>process[_0x399756(0x352)][_0x399756(0x327)](..._0x23d0cd),()=>{const _0xd97a53=_0x399756;process[_0xd97a53(0x1d3)][_0xd97a53(0x327)]=_0x16ce90,L=_0x19277a;};}function m(_0x2101a1,_0x329cd8,_0x3cfa0d){const _0x8550cd=_0x2d1cd7;if(_0x2101a1[_0x8550cd(0x317)]===_0x8550cd(0x18d)){_0x3cfa0d(_0x329cd8);return;}L(_0xfc737e(_0x329cd8));}function Zt(){const _0x55a24f=_0x2d1cd7;let _0x57d43b=_0x55a24f(0x1ac)[_0x55a24f(0x153)]();console[_0x55a24f(0x185)](_0x57d43b);}function en(){const _0x457a47=_0x2d1cd7;try{return JSON[_0x457a47(0x216)](_0x5a32b5[_0x457a47(0x2e7)](_0x30cae0[_0x457a47(0x1cb)](__dirname,'..','package.json'),_0x457a47(0x2e9)))['version']||_0x457a47(0x208);}catch{return _0x457a47(0x208);}}var tn=0x7d0;async function me(_0x4d050e,_0x52e31c){const _0x1c559a=_0x2d1cd7;let _0xac1551=_0x52e31c?[_0x52e31c]:[];for await(let _0x41fe94 of _0x4d050e)_0xac1551[_0x1c559a(0x16d)](Buffer[_0x1c559a(0x1b0)](_0x41fe94));return Buffer[_0x1c559a(0x2be)](_0xac1551)[_0x1c559a(0x32e)](_0x1c559a(0x2e9))[_0x1c559a(0x153)]();}function nn(_0x35b740,_0x198669){return new Promise(_0x45a2ad=>{const _0x5cc08a=_0xc71e;let _0x390eac=_0x1cf21d=>{const _0x478600=_0xc71e;clearTimeout(_0x44340c),_0x35b740['off'](_0x478600(0x181),_0x40b430),_0x35b740['off'](_0x478600(0x218),_0x1e2e36),_0x35b740[_0x478600(0x32f)](_0x478600(0x263),_0x1e2e36),_0x35b740[_0x478600(0x338)](),_0x45a2ad(_0x1cf21d);},_0x40b430=_0x27d6b2=>_0x390eac(Buffer[_0x5cc08a(0x1b0)](_0x27d6b2)),_0x1e2e36=()=>_0x390eac(null),_0x44340c=setTimeout(()=>_0x390eac(null),_0x198669);_0x35b740['on'](_0x5cc08a(0x181),_0x40b430),_0x35b740['on'](_0x5cc08a(0x218),_0x1e2e36),_0x35b740['on']('error',_0x1e2e36),_0x35b740[_0x5cc08a(0x1f1)]();});}async function J(_0x2386be,_0x99844c,_0x20ac6d=tn){const _0x5898b9=_0x2d1cd7;let _0xa8671a=_0x2386be==='-';if(!_0xa8671a&&_0x2386be)return _0x2386be;if(!_0xa8671a&&_0x99844c[_0x5898b9(0x361)])return'';if(_0xa8671a)return me(_0x99844c,null);let _0x54719c=await nn(_0x99844c,_0x20ac6d);return _0x54719c?me(_0x99844c,_0x54719c):'';}function Y(){const _0x18bbd6=_0x2d1cd7;return _0x30cae0['join'](process.env.HOME||process.env.USERPROFILE||'','.aria',_0x18bbd6(0x240));}function G(_0x5d75d7){const _0x37f67f=_0x2d1cd7;try{let _0x4af388=JSON[_0x37f67f(0x216)](_0x5a32b5[_0x37f67f(0x2e7)](_0x5d75d7,_0x37f67f(0x2e9)));return!_0x4af388[_0x37f67f(0x314)]||!_0x4af388[_0x37f67f(0x1d9)]||!_0x4af388[_0x37f67f(0x214)]?null:_0x4af388;}catch{return null;}}function sn(){const _0x40d09c=_0x2d1cd7;let _0x58c5f8=[{'file':_0x13e15a(),'isDesktopFallback':!0x1},{'file':Y(),'isDesktopFallback':!0x0}];for(let _0x68828a of _0x58c5f8){let _0x4bcbe7=G(_0x68828a[_0x40d09c(0x328)]);if(_0x4bcbe7)return{..._0x68828a,'auth':_0x4bcbe7};}return null;}async function on(){const _0x5c1263=_0x2d1cd7;let _0x4b49f8=_0x13e15a();if(!_0x5a32b5[_0x5c1263(0x26b)](_0x4b49f8)){let _0x6f6be7=Y();console[_0x5c1263(0x185)](G(_0x6f6be7)?'No\x20CLI\x20login\x20found.\x20Note:\x20the\x20CLI\x20is\x20currently\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20'+_0x6f6be7+_0x5c1263(0x280):_0x5c1263(0x1bd));return;}_0x5a32b5['rmSync'](_0x4b49f8),console[_0x5c1263(0x185)](_0x5c1263(0x262)+_0x4b49f8);}async function rn(_0xff0f3f){const _0x2170c0=_0x2d1cd7;let _0x239392=z(),_0x4de336,_0xb75c89;if(_0x239392)_0x4de336=_0x239392,_0xb75c89='environment\x20variables\x20(AUTH_TOKEN/TENANT_ID/ORG_ID)';else{let _0x339d6b=sn();if(!_0x339d6b)throw new Error(Ne);_0x4de336=_0x339d6b[_0x2170c0(0x2ef)],_0xb75c89=_0x339d6b[_0x2170c0(0x2f2)]?_0x339d6b[_0x2170c0(0x328)]+_0x2170c0(0x2fc):_0x339d6b[_0x2170c0(0x328)];}let _0x53c218={'source':_0xb75c89,'baseUrl':_0x4de336[_0x2170c0(0x33c)]??null,'deployment':an(_0x4de336[_0x2170c0(0x33c)]),'organization':{'id':_0x4de336[_0x2170c0(0x214)],'slug':_0x4de336['orgLogicalName']??null},'tenant':{'id':_0x4de336[_0x2170c0(0x1d9)],'name':_0x4de336['tenantName']??null},'tokenExpiresAt':_0x4de336[_0x2170c0(0x1bb)]?new Date(_0x4de336['expiresAt']*0x3e8)[_0x2170c0(0x377)]():null};m(_0xff0f3f,_0x53c218,()=>{const _0x29e17e=_0x2170c0;let _0x548e31=[_0x29e17e(0x1b7)+_0xb75c89,'Base\x20URL:\x20\x20\x20\x20\x20'+(_0x4de336[_0x29e17e(0x33c)]??'unknown'),_0x29e17e(0x1e7)+_0x53c218[_0x29e17e(0x163)],_0x29e17e(0x2ae)+(_0x4de336[_0x29e17e(0x227)]??_0x29e17e(0x195))+'\x20('+_0x4de336[_0x29e17e(0x214)]+')','Tenant:\x20\x20\x20\x20\x20\x20\x20'+(_0x4de336[_0x29e17e(0x183)]??_0x29e17e(0x195))+'\x20('+_0x4de336[_0x29e17e(0x1d9)]+')'];if(_0x4de336['expiresAt']){let _0x469c92=_0x4de336[_0x29e17e(0x1bb)]-Math['floor'](Date[_0x29e17e(0x1af)]()/0x3e8);_0x548e31[_0x29e17e(0x16d)](_0x469c92>0x0?_0x29e17e(0x21f)+_0x53c218[_0x29e17e(0x15f)]+_0x29e17e(0x232)+Math[_0x29e17e(0x1a0)](_0x469c92/0x3c)+_0x29e17e(0x247):'Token:\x20\x20\x20\x20\x20\x20\x20\x20expired\x20'+_0x53c218[_0x29e17e(0x15f)]);}process[_0x29e17e(0x1d3)][_0x29e17e(0x327)](_0x548e31[_0x29e17e(0x1cb)]('\x0a')+'\x0a');});}var Ne=_0x2d1cd7(0x1df);function an(_0x39f848){const _0x5edb46=_0x2d1cd7;return _0x39f848?_0x4a0f69(_0x39f848)?_0x5edb46(0x28f):_0x5edb46(0x194):_0x5edb46(0x208);}function z(){let _0x330d14=process.env.AUTH_TOKEN_FILE;return(process.env.AUTH_TOKEN||_0x330d14)&&process.env.TENANT_ID&&process.env.ORG_ID?{'accessToken':_0x330d14?ln(_0x330d14):process.env.AUTH_TOKEN,..._0x330d14?{'accessTokenFile':_0x330d14}:{},'tenantId':process.env.TENANT_ID,'organizationId':process.env.ORG_ID,'orgLogicalName':process.env.ORG_SLUG,'tenantName':process.env.TENANT_SLUG,'baseUrl':Pe()}:null;}function ln(_0x37e934){const _0x4c61d5=_0x2d1cd7;let _0x5a9573;try{_0x5a9573=_0x5a32b5[_0x4c61d5(0x2e7)](_0x37e934,_0x4c61d5(0x2e9))[_0x4c61d5(0x153)]();}catch(_0x1a7c14){throw new Error(_0x4c61d5(0x1fa)+_0x37e934+'\x27\x20cannot\x20be\x20read:\x20'+_0x1a7c14[_0x4c61d5(0x1a6)]);}let _0x4771d3=_0x5a9573['startsWith'](_0x4c61d5(0x1bf))?_0x5a9573[_0x4c61d5(0x33d)](0x7)[_0x4c61d5(0x153)]():_0x5a9573;if(!_0x4771d3)throw new Error(_0x4c61d5(0x1fa)+_0x37e934+_0x4c61d5(0x281));return _0x4771d3;}function Pe(){const _0x2b4926=_0x2d1cd7;let _0x364f8b=process.env.UIPATH_BASE_URL;if(!_0x364f8b)return;let _0x4ef12=_0xbb16b1(_0x364f8b);if(_0x4ef12['ok']===!0x1)throw new Error(_0x2b4926(0x270)+_0x41c1bb(_0x364f8b,_0x4ef12[_0x2b4926(0x21c)]));return _0x4ef12[_0x2b4926(0x33c)];}async function V(){let _0x445e71=z();if(_0x445e71)return _0x445e71;let _0x48dd8d=await _0x77731b();if(_0x48dd8d)return _0x48dd8d;throw new Error(Ne);}async function cn(){const _0x161f00=_0x2d1cd7;await new _0x7e6568()[_0x161f00(0x307)]({'force':!0x0}),console['log'](_0x161f00(0x22c));}function X(_0x2d6453,_0x4df863,_0x5b2703){const _0x197686=_0x2d1cd7;_0x2d6453?process[_0x197686(0x352)][_0x197686(0x327)]('[env='+_0x2d6453+']\x20Backend\x20URL:\x20'+_0x5b2703+'\x0a'):!_0x4df863&&!process.env.BACKEND_URL&&process[_0x197686(0x352)][_0x197686(0x327)](_0x197686(0x1dc)+_0x5b2703+'\x0a');}async function x(_0x4b8795){const _0x3956dd=_0x2d1cd7;let _0x65c31f=await V(),_0x253ca8=_0x2854a6(_0x4b8795[_0x3956dd(0x2b6)],_0x65c31f,_0x4b8795[_0x3956dd(0x2a5)]);return X(_0x4b8795[_0x3956dd(0x2b6)],_0x4b8795['backendUrl'],_0x253ca8),{'auth':_0x65c31f,'backendUrl':_0x253ca8,'client':_0x2c788e({'auth':_0x65c31f,'backendUrl':_0x253ca8})};}async function dn(_0x49c28a){const _0x5b4fc0=_0x2d1cd7;let {client:_0x5332aa}=await x(_0x49c28a),[_0x28eaf3,_0x2be8e0]=await Promise[_0x5b4fc0(0x343)]([_0x301841(_0x5332aa),_0x247c2c(_0x5332aa)[_0x5b4fc0(0x19e)](_0x2f4e94=>(process[_0x5b4fc0(0x352)]['write']('Could\x20not\x20check\x20BYO\x20model\x20warnings:\x20'+(_0x2f4e94 instanceof Error?_0x2f4e94[_0x5b4fc0(0x1a6)]:String(_0x2f4e94))+'\x0a'),{}))]),_0x24ee59=_0x28eaf3[_0x5b4fc0(0x175)](_0x1215cf=>_0x2be8e0[_0x1215cf['id']]?{..._0x1215cf,'byoWarning':_0x2be8e0[_0x1215cf['id']]}:_0x1215cf);m(_0x49c28a,_0x24ee59,un);}function un(_0x1b2a5b){const _0x1c45f5=_0x2d1cd7;if(_0x1b2a5b['length']===0x0){process[_0x1c45f5(0x352)][_0x1c45f5(0x327)]('No\x20models\x20available\x20for\x20this\x20product/tenant.\x0a');return;}process[_0x1c45f5(0x1d3)][_0x1c45f5(0x327)](_0x1c45f5(0x35b)+_0x1b2a5b[_0x1c45f5(0x36d)]+'):\x0a\x0a');for(let _0xde63f2 of _0x1b2a5b){let _0x5a215f=_0xde63f2[_0x1c45f5(0x22f)]&&_0xde63f2[_0x1c45f5(0x22f)]!==_0xde63f2['id']?'\x20('+_0xde63f2[_0x1c45f5(0x22f)]+')':'';process[_0x1c45f5(0x1d3)][_0x1c45f5(0x327)]('\x20\x20'+_0xde63f2['id']+_0x5a215f+'\x0a'),_0xde63f2['description']&&process[_0x1c45f5(0x1d3)][_0x1c45f5(0x327)]('\x20\x20\x20\x20'+_0xde63f2[_0x1c45f5(0x1f4)]+'\x0a'),_0xde63f2['locked']&&process[_0x1c45f5(0x1d3)]['write']('\x20\x20\x20\x20Not\x20available\x20on\x20this\x20plan'+(_0xde63f2[_0x1c45f5(0x24d)]?'\x20('+_0xde63f2[_0x1c45f5(0x24d)]+')':'')+'\x0a'),_0xde63f2['byoWarning']&&process[_0x1c45f5(0x1d3)]['write']('\x20\x20\x20\x20BYO\x20warning:\x20'+_0xde63f2[_0x1c45f5(0x24a)]+'\x0a');}process['stdout'][_0x1c45f5(0x327)](_0x1c45f5(0x286));}var fe=[_0x2d1cd7(0x15b),_0x2d1cd7(0x2f3),_0x2d1cd7(0x23a),_0x2d1cd7(0x1bc),_0x2d1cd7(0x323),'fork'];async function pn(_0x15806d){const _0x1eaa61=_0x2d1cd7;let [_0x274e47='',_0x49b758='',..._0x1803d6]=_0x15806d['operands'];if(_0x274e47&&!fe[_0x1eaa61(0x2df)](_0x274e47)&&(console[_0x1eaa61(0x263)](_0x1eaa61(0x31d)+_0x274e47+'.\x20Use:\x20'+fe[_0x1eaa61(0x1cb)](_0x1eaa61(0x2ca))+'.'),process[_0x1eaa61(0x258)](0x2)),_0x15806d['turnId']!==void 0x0&&_0x274e47!=='cancel'&&(console[_0x1eaa61(0x263)](_0x1eaa61(0x166)),process['exit'](0x2)),_0x274e47&&_0x274e47!==_0x1eaa61(0x15b)){await mn(_0x15806d,_0x274e47,_0x49b758,_0x1803d6[_0x1eaa61(0x1cb)]('\x20')[_0x1eaa61(0x153)]());return;}_0x15806d['operands'][_0x1eaa61(0x36d)]>0x1&&(console[_0x1eaa61(0x263)](_0x1eaa61(0x2d7)),process[_0x1eaa61(0x258)](0x2));let {client:_0x5ea14e}=await x(_0x15806d),_0x9a1489=await _0x8b1797(_0x5ea14e,{'page':_0x15806d[_0x1eaa61(0x152)],'pageSize':_0x15806d[_0x1eaa61(0x1f5)],'includeSubAgents':_0x15806d['includeSubAgents']});m(_0x15806d,_0x9a1489,yn);}async function mn(_0x40fa3f,_0x2b2c2f,_0x5a0a5c,_0x5bb850){const _0x2b68ae=_0x2d1cd7;if((_0x40fa3f[_0x2b68ae(0x152)]!==void 0x0||_0x40fa3f['limit']!==void 0x0||_0x40fa3f['includeSubAgents'])&&(console[_0x2b68ae(0x263)](_0x2b68ae(0x15d)),process[_0x2b68ae(0x258)](0x2)),_0x2b2c2f===_0x2b68ae(0x323)){await gn(_0x40fa3f,_0x5a0a5c,_0x5bb850);return;}if(_0x2b2c2f===_0x2b68ae(0x259)){await hn(_0x40fa3f,_0x5a0a5c,_0x5bb850);return;}(!_0x5a0a5c||_0x2b2c2f==='rename'!=!!_0x5bb850)&&(console[_0x2b68ae(0x263)]('Usage:\x20delegate-cli\x20sessions\x20'+_0x2b2c2f+_0x2b68ae(0x298)+(_0x2b2c2f==='rename'?_0x2b68ae(0x308):'')),process[_0x2b68ae(0x258)](0x2));let {client:_0x316ab7}=await x(_0x40fa3f);try{if(_0x2b2c2f===_0x2b68ae(0x2f3)){let _0x44d48f=await _0x2ed83f(_0x316ab7,_0x5a0a5c);_0x44d48f||ge(_0x5a0a5c),m(_0x40fa3f,_0x44d48f,fn);}else{if(_0x2b2c2f===_0x2b68ae(0x23a)){let _0x51c08c=await _0x1661a7(_0x316ab7,_0x5a0a5c,_0x5bb850);m(_0x40fa3f,_0x51c08c,_0x49f071=>{const _0x3ec0a6=_0x2b68ae;process[_0x3ec0a6(0x1d3)][_0x3ec0a6(0x327)]('Renamed\x20'+_0x49f071['id']+':\x20'+_0x49f071['title']+'\x0a');});}else await _0x59e72e(_0x316ab7,_0x5a0a5c),await _0x2a55ca(_0x5a0a5c,_0x40fa3f[_0x2b68ae(0x249)]),m(_0x40fa3f,{'id':_0x5a0a5c,'deleted':!0x0},_0x19cb92=>{const _0x16e460=_0x2b68ae;process[_0x16e460(0x1d3)]['write']('Deleted\x20session\x20'+_0x19cb92['id']+'.\x0a');});}}catch(_0x5887ed){if(!_0x3b6578(_0x5887ed,0x194))throw _0x5887ed;ge(_0x5a0a5c);}}function ge(_0x3ba84b){const _0x35e4f8=_0x2d1cd7;console[_0x35e4f8(0x263)](_0x35e4f8(0x34d)+_0x3ba84b+'\x20not\x20found.'),process[_0x35e4f8(0x258)](0x1);}function fn(_0x57d2de){const _0x31409b=_0x2d1cd7;process[_0x31409b(0x1d3)][_0x31409b(0x327)]('ID\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x57d2de['id']+'\x0a'),process[_0x31409b(0x1d3)][_0x31409b(0x327)]('Title\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x57d2de[_0x31409b(0x2d4)]+'\x0a'),process['stdout'][_0x31409b(0x327)](_0x31409b(0x15e)+_0x57d2de[_0x31409b(0x1a1)]+'\x0a'),process['stdout'][_0x31409b(0x327)](_0x31409b(0x348)+_0x57d2de[_0x31409b(0x214)]+'\x0a'),_0x57d2de[_0x31409b(0x2e1)]&&process['stdout'][_0x31409b(0x327)](_0x31409b(0x25b)+_0x57d2de['delegationId']+'\x0a');}async function gn(_0x49c127,_0x8a9ff7,_0x3ccaa7){const _0x4b59ac=_0x2d1cd7;(!_0x8a9ff7||_0x3ccaa7||!_0x49c127[_0x4b59ac(0x2c7)])&&(console['error'](_0x4b59ac(0x177)),process[_0x4b59ac(0x258)](0x2));let {client:_0x41ebcf}=await x(_0x49c127),_0x32af62=await _0x302a94(_0x41ebcf,_0x8a9ff7,_0x49c127[_0x4b59ac(0x2c7)]);m(_0x49c127,{'sessionId':_0x8a9ff7,'turnId':_0x49c127['turnId'],'cancelled':_0x32af62},_0x1040fa=>{const _0x467496=_0x4b59ac;_0x1040fa['cancelled']?process[_0x467496(0x1d3)][_0x467496(0x327)](_0x467496(0x223)+_0x1040fa[_0x467496(0x2c7)]+_0x467496(0x350)+_0x1040fa['sessionId']+'.\x0a'):process['stderr'][_0x467496(0x327)](_0x467496(0x199)+_0x1040fa[_0x467496(0x2c7)]+_0x467496(0x358)+_0x1040fa[_0x467496(0x268)]+'.\x0a');}),_0x32af62||(process[_0x4b59ac(0x1a9)]=0x1);}async function hn(_0xadc384,_0x4a8a15,_0x403d32){const _0x529ae5=_0x2d1cd7;(!_0x4a8a15||/\s/[_0x529ae5(0x35e)](_0x403d32))&&(console[_0x529ae5(0x263)](_0x529ae5(0x2a3)),process[_0x529ae5(0x258)](0x2));let {client:_0x3df999}=await x(_0xadc384),_0x6314ac;try{_0x6314ac=await _0xf0a480(_0x3df999,_0x4a8a15,{'atMessageId':_0x403d32||void 0x0});}catch(_0x4de5dc){if(!_0x3b6578(_0x4de5dc,0x194))throw _0x4de5dc;console[_0x529ae5(0x263)](_0x529ae5(0x34d)+_0x4a8a15+_0x529ae5(0x248)+(_0x403d32?_0x529ae5(0x242)+_0x403d32:'')+'.'),process[_0x529ae5(0x258)](0x1);}m(_0xadc384,_0x6314ac,_0x1ef4bb=>{const _0x5e9d07=_0x529ae5;process['stdout'][_0x5e9d07(0x327)](_0x5e9d07(0x293)+_0x4a8a15+'\x20into\x20'+_0x1ef4bb['id']+'.\x0a'),process[_0x5e9d07(0x352)][_0x5e9d07(0x327)](_0x5e9d07(0x28b)+_0x1ef4bb['id']+_0x5e9d07(0x27f));});}function yn({sessions:_0xab51cd,page:_0x1ba20f,isLastPage:_0xb3d456}){const _0x5de398=_0x2d1cd7;if(_0xab51cd[_0x5de398(0x36d)]===0x0)process[_0x5de398(0x352)]['write'](_0x5de398(0x1a8)+_0x1ba20f+'.\x0a');else{process[_0x5de398(0x1d3)]['write']('ID'[_0x5de398(0x1e4)](0x24)+'\x20\x20'+'UPDATED'[_0x5de398(0x1e4)](0x13)+_0x5de398(0x151));for(let _0x2596b0 of _0xab51cd){let _0x53b7cd=_0x2596b0[_0x5de398(0x354)][_0x5de398(0x1fb)]('T','\x20')[_0x5de398(0x33d)](0x0,0x13),_0x269d2c=_0x2596b0[_0x5de398(0x2a6)]?_0x5de398(0x331)+_0x2596b0[_0x5de398(0x2a6)]+')':'';process[_0x5de398(0x1d3)][_0x5de398(0x327)](_0x2596b0['id'][_0x5de398(0x1e4)](0x24)+'\x20\x20'+_0x53b7cd['padEnd'](0x13)+'\x20\x20'+_0x2596b0['title']+_0x269d2c+'\x0a');}}_0xb3d456||process[_0x5de398(0x352)][_0x5de398(0x327)](_0x5de398(0x25d)+(_0x1ba20f+0x1)+'\x0a');}async function wn(_0x5f415b){const _0xd778be=_0x2d1cd7;let _0xdc4227=await V(),_0x31607f=_0x2854a6(_0x5f415b['env'],_0xdc4227,_0x5f415b['backendUrl']);X(_0x5f415b['env'],_0x5f415b['backendUrl'],_0x31607f);let _0x2b8912=await _0x449e3d({'auth':_0xdc4227,'backendUrl':_0x31607f,'interop':_0x5f415b[_0xd778be(0x2aa)]?_0xd778be(0x2c0):_0xd778be(0x213)});m(_0x5f415b,_0x2b8912,({checks:_0x137c66})=>{const _0x54c99c=_0xd778be;for(let _0xcb6334 of _0x137c66)process[_0x54c99c(0x1d3)][_0x54c99c(0x327)](kn(_0xcb6334)+'\x0a');}),_0x2b8912['ok']||process[_0xd778be(0x258)](0x1);}function kn(_0x50b1e5){const _0x2aa5da=_0x2d1cd7;return{'ok':'✓','failed':'✗','skipped':'-'}[_0x50b1e5[_0x2aa5da(0x289)]]+'\x20'+_0x50b1e5[_0x2aa5da(0x22f)]['padEnd'](0xa)+_0x50b1e5[_0x2aa5da(0x180)];}var bn=['',_0x2d1cd7(0x23e),'daily'];async function vn(_0x3dd027){const _0x5dba7b=_0x2d1cd7;let _0x24af81=_0x3dd027[_0x5dba7b(0x238)];bn[_0x5dba7b(0x2df)](_0x24af81)||(console[_0x5dba7b(0x263)](_0x5dba7b(0x2d0)+_0x3dd027['prompt']+_0x5dba7b(0x172)),process['exit'](0x2)),_0x24af81===''&&_0x3dd027[_0x5dba7b(0x22a)]!==void 0x0&&(console[_0x5dba7b(0x263)](_0x5dba7b(0x243)),process['exit'](0x2)),_0x24af81!==''&&_0x3dd027[_0x5dba7b(0x268)]!==void 0x0&&(console['error'](_0x5dba7b(0x2c3)),process['exit'](0x2));let {client:_0x2b4e20}=await x(_0x3dd027);if(_0x24af81==='activity'){m(_0x3dd027,await _0x4dba0b(_0x2b4e20,{'days':_0x3dd027['days']}),An);return;}if(_0x24af81==='daily'){m(_0x3dd027,await _0x151fdf(_0x2b4e20,{'days':_0x3dd027['days']}),En);return;}let [_0x4105ff,_0x2293dc]=await Promise[_0x5dba7b(0x343)]([_0x5e9c0c(_0x2b4e20,{'sessionId':_0x3dd027[_0x5dba7b(0x268)]}),_0x270ae9(_0x2b4e20)]);m(_0x3dd027,{'licensing':_0x4105ff,'monthlySpending':_0x2293dc},Sn);}function Sn(_0x2f4bb3){const _0xa158e1=_0x2d1cd7;let {licensing:_0x2e3875,monthlySpending:_0x2b2e92}=_0x2f4bb3,_0x30b448=[_0x2e3875[_0xa158e1(0x198)]?'Licensing:\x20\x20\x20\x20'+_0x2e3875[_0xa158e1(0x18f)][_0xa158e1(0x2fe)](0x1)+_0xa158e1(0x2c4)+(_0x2e3875['total_quota_pu']??0x0)+_0xa158e1(0x171)+(_0x2e3875[_0xa158e1(0x269)]>0x0?',\x20'+_0x2e3875[_0xa158e1(0x269)]+_0xa158e1(0x326):'')+_0xa158e1(0x236)+_0x2e3875[_0xa158e1(0x1d7)]+')':'Licensing:\x20\x20\x20\x20no\x20licensing\x20quota\x20applies',_0xa158e1(0x1be)+_0x2b2e92['monthly_spend_usd'][_0xa158e1(0x2fe)](0x2)+_0xa158e1(0x2a9)+(_0x2b2e92['limit_enabled']&&_0x2b2e92[_0xa158e1(0x24e)]!==null?_0xa158e1(0x210)+_0x2b2e92[_0xa158e1(0x24e)]['toFixed'](0x2)+_0xa158e1(0x1b5):'\x20(no\x20cap\x20enforced)')];_0x2e3875[_0xa158e1(0x330)]!==null&&_0x2e3875['session_consumed_pu']!==void 0x0&&_0x30b448[_0xa158e1(0x16d)](_0xa158e1(0x209)+_0x2e3875[_0xa158e1(0x330)]+_0xa158e1(0x31b)),process[_0xa158e1(0x1d3)]['write'](_0x30b448[_0xa158e1(0x1cb)]('\x0a')+'\x0a');}function An(_0x596e7d){const _0x5bc0=_0x2d1cd7;let _0x5953de=['Last\x20'+_0x596e7d[_0x5bc0(0x15a)]+'\x20days:\x20'+_0x596e7d[_0x5bc0(0x290)]+_0x5bc0(0x356)+_0x596e7d[_0x5bc0(0x221)]+_0x5bc0(0x1e8),_0x5bc0(0x2b9)+_0x596e7d[_0x5bc0(0x150)][_0x5bc0(0x2fe)](0x2)+_0x5bc0(0x257)+_0x596e7d[_0x5bc0(0x19d)][_0x5bc0(0x2fe)](0x2)+_0x5bc0(0x319)+_0x596e7d[_0x5bc0(0x158)]+_0x5bc0(0x321),_0x5bc0(0x368)+_0x596e7d[_0x5bc0(0x1eb)]+_0x5bc0(0x23b)+_0x596e7d[_0x5bc0(0x16b)]+'\x20completion'];for(let [_0x30b219,_0xa6da4b]of Object[_0x5bc0(0x1d8)](_0x596e7d['models_breakdown']))_0x5953de[_0x5bc0(0x16d)]('\x20\x20'+_0x30b219+':\x20'+_0xa6da4b+_0x5bc0(0x315));process[_0x5bc0(0x1d3)][_0x5bc0(0x327)](_0x5953de[_0x5bc0(0x1cb)]('\x0a')+'\x0a');}function En(_0x4fdcad){const _0x460946=_0x2d1cd7;if(_0x4fdcad['daily_usage'][_0x460946(0x36d)]===0x0){process[_0x460946(0x1d3)][_0x460946(0x327)](_0x460946(0x1d0)+_0x4fdcad[_0x460946(0x15a)]+'\x20days.\x0a');return;}let _0x1e4f75=[_0x460946(0x245)];for(let _0x2736a3 of _0x4fdcad[_0x460946(0x291)])_0x1e4f75[_0x460946(0x16d)](_0x2736a3[_0x460946(0x2ed)]+'\x20\x20'+String(_0x2736a3['token_units'])['padStart'](0xb)+'\x20\x20'+String(_0x2736a3[_0x460946(0x1f9)])[_0x460946(0x21b)](0xd)+'\x20\x20'+String(_0x2736a3[_0x460946(0x226)])[_0x460946(0x21b)](0x11));process['stdout']['write'](_0x1e4f75['join']('\x0a')+'\x0a');}async function xn(_0x806538,_0x36c262){const _0x3c5f2c=_0x2d1cd7;let _0x5d405b=await In(_0x806538[_0x3c5f2c(0x238)],_0x36c262);_0x806538['model']&&(_0x5d405b[_0x3c5f2c(0x372)]=_0x806538[_0x3c5f2c(0x372)]);let {client:_0x9aafc2}=await x(_0x806538);try{_0x36c262===_0x3c5f2c(0x156)?m(_0x806538,await _0x315f83(_0x9aafc2,_0x5d405b,void 0x0),Tn):_0x36c262===_0x3c5f2c(0x329)?m(_0x806538,await _0x13dfbd(_0x9aafc2,_0x5d405b,void 0x0),Dn):m(_0x806538,await _0x3aa613(_0x9aafc2,_0x5d405b,void 0x0),Un);}catch(_0x353d95){if(!_0x28ca55(_0x353d95))throw _0x353d95;console['error'](_0x353d95[_0x3c5f2c(0x1a6)]),process[_0x3c5f2c(0x258)](0x1);}}async function In(_0x36c38e,_0x73a7cc){const _0x32a0d4=_0x2d1cd7;let _0x334d8c;try{_0x334d8c=_0x36c38e&&_0x36c38e!=='-'?_0x5a32b5[_0x32a0d4(0x2e7)](_0x30cae0[_0x32a0d4(0x14b)](_0x36c38e),_0x32a0d4(0x2e9)):await J(_0x36c38e,process[_0x32a0d4(0x233)]);}catch(_0x4da9ac){console['error'](_0x73a7cc+':\x20cannot\x20read\x20the\x20request\x20('+_0x4da9ac['message']+').'),process[_0x32a0d4(0x258)](0x2);}return _0x334d8c||(console[_0x32a0d4(0x263)](_0x73a7cc+_0x32a0d4(0x316)+_0x73a7cc+'\x20<file.json>,\x20or\x20-\x20to\x20read\x20stdin.'),process[_0x32a0d4(0x258)](0x2)),_e(_0x334d8c,_0x73a7cc,'the\x20request');}function _e(_0x512795,_0x34a1ce,_0x164a33){const _0x1343e1=_0x2d1cd7;let _0x34cd00;try{_0x34cd00=JSON[_0x1343e1(0x216)](_0x512795);}catch(_0x2e7e93){console[_0x1343e1(0x263)](_0x34a1ce+':\x20'+_0x164a33+_0x1343e1(0x318)+_0x2e7e93[_0x1343e1(0x1a6)]+').'),process['exit'](0x2);}return(typeof _0x34cd00!=_0x1343e1(0x2a1)||_0x34cd00===null||Array[_0x1343e1(0x18e)](_0x34cd00))&&(console['error'](_0x34a1ce+':\x20'+_0x164a33+'\x20must\x20be\x20a\x20JSON\x20object.'),process['exit'](0x2)),_0x34cd00;}function Re(_0x53474d,_0x351c4f){const _0x4d0b25=_0x2d1cd7;let _0x432969;try{_0x432969=_0x5a32b5[_0x4d0b25(0x2e7)](_0x30cae0[_0x4d0b25(0x14b)](_0x53474d),_0x4d0b25(0x2e9));}catch(_0x39ee82){console[_0x4d0b25(0x263)](_0x351c4f+_0x4d0b25(0x192)+_0x39ee82[_0x4d0b25(0x1a6)]+').'),process[_0x4d0b25(0x258)](0x2);}return _e(_0x432969,_0x351c4f,'the\x20JSON\x20schema');}async function $n(_0x14da0a){const _0x399ef5=_0x2d1cd7;_0x14da0a['jsonSchemaPath']===void 0x0&&(console[_0x399ef5(0x263)](_0x399ef5(0x31e)),process[_0x399ef5(0x258)](0x2));let _0x30cc30=Re(_0x14da0a['jsonSchemaPath'],'complete'),_0x369065=(await J(_0x14da0a[_0x399ef5(0x238)],process['stdin']))['trim']();_0x369065||(console[_0x399ef5(0x263)]('complete\x20needs\x20a\x20prompt:\x20delegate-cli\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22,\x20or\x20-\x20to\x20read\x20stdin.'),process['exit'](0x2));let {client:_0x2b38f4}=await x(_0x14da0a);try{let _0x4cf602=await _0x1ea516(_0x2b38f4,{'prompt':_0x369065,'jsonSchema':_0x30cc30,'model':_0x14da0a['model']||process.env.MODEL||_0x52d8f0,..._0x14da0a[_0x399ef5(0x268)]!==void 0x0&&{'sessionId':_0x14da0a[_0x399ef5(0x268)]}},void 0x0);m(_0x14da0a,_0x4cf602,_0x32a28d=>{const _0x58b528=_0x399ef5;process[_0x58b528(0x1d3)][_0x58b528(0x327)](JSON[_0x58b528(0x324)](_0x32a28d[_0x58b528(0x29e)],null,0x2)+'\x0a');});}catch(_0x59be90){if(!_0x511823(_0x59be90))throw _0x59be90;console[_0x399ef5(0x263)](_0x59be90[_0x399ef5(0x1a6)]),process[_0x399ef5(0x258)](0x1);}}function Z(_0x7025f4){const _0x280c3b=_0x2d1cd7;process[_0x280c3b(0x1d3)]['write'](_0x280c3b(0x27a)+_0x7025f4[_0x280c3b(0x372)]+'\x20('+_0x7025f4[_0x280c3b(0x1f2)]+_0x280c3b(0x360)+_0x7025f4[_0x280c3b(0x250)][_0x280c3b(0x334)]+_0x280c3b(0x26d));}function Tn(_0x292b1d){const _0x5a5c64=_0x2d1cd7;Z(_0x292b1d);for(let _0x2f6f66 of Object[_0x5a5c64(0x220)](_0x292b1d[_0x5a5c64(0x29a)])){let _0x48834a=_0x292b1d[_0x5a5c64(0x29a)][_0x2f6f66],_0x31af3e=_0x48834a['type']==='probability'?_0x5a5c64(0x2dc)+_0x48834a[_0x5a5c64(0x1ee)][_0x5a5c64(0x2fe)](0x2):_0x48834a[_0x5a5c64(0x157)]===_0x5a5c64(0x34c)?_0x5a5c64(0x2b0)+_0x48834a['choice']+'\x20(confidence\x20'+_0x48834a[_0x5a5c64(0x1ab)][_0x5a5c64(0x2fe)](0x2)+')':_0x5a5c64(0x1ff)+_0x48834a['score'][_0x5a5c64(0x2fe)](0x2)+_0x5a5c64(0x311)+_0x48834a[_0x5a5c64(0x1ab)][_0x5a5c64(0x2fe)](0x2)+')';process[_0x5a5c64(0x1d3)]['write']('\x20\x20'+_0x2f6f66+':\x20'+_0x31af3e+'\x0a');}}function Dn(_0x376657){const _0x283a91=_0x2d1cd7;Z(_0x376657),_0x376657[_0x283a91(0x301)]['forEach']((_0x592d86,_0x2a9bb6)=>{const _0x32dc57=_0x283a91;process[_0x32dc57(0x1d3)]['write']('\x20\x20'+(_0x2a9bb6+0x1)+'.\x20'+_0x592d86['id']+'\x20\x20'+_0x592d86[_0x32dc57(0x26f)][_0x32dc57(0x2fe)](0x3)+_0x32dc57(0x1c8)+_0x592d86['index']+')\x0a');});}function Un(_0x47ea4a){const _0x54bc6c=_0x2d1cd7;Z(_0x47ea4a),process[_0x54bc6c(0x1d3)][_0x54bc6c(0x327)]('Rubric\x20'+_0x47ea4a['rubric_version']+'\x0a');for(let _0x16d6ab of _0x47ea4a['results'])process['stdout'][_0x54bc6c(0x327)]('\x20\x20'+_0x16d6ab['id']+':\x20'+_0x16d6ab[_0x54bc6c(0x374)]+_0x54bc6c(0x311)+_0x16d6ab[_0x54bc6c(0x1ab)][_0x54bc6c(0x2fe)](0x2)+')\x0a');}async function Nn(_0x1417f2){const _0x379000=_0x2d1cd7;let _0x1abd66=_0x1417f2[_0x379000(0x238)][_0x379000(0x153)]();_0x1abd66||(console[_0x379000(0x263)]('transcribe\x20needs\x20audio:\x20delegate-cli\x20transcribe\x20<file>,\x20or\x20-\x20to\x20read\x20stdin.'),process[_0x379000(0x258)](0x2));let {client:_0x45cf2c}=await x(_0x1417f2);try{let _0x4ed28f=_0x1abd66==='-'?{'data':await Rn(process['stdin'])}:_0x1abd66;m(_0x1417f2,await _0x2d16d6(_0x45cf2c,_0x4ed28f,void 0x0),_0x261b99=>{const _0x3043c7=_0x379000;process[_0x3043c7(0x1d3)][_0x3043c7(0x327)](_0x261b99[_0x3043c7(0x18d)]+'\x0a');});}catch(_0x47f8b5){if(_0x9fdede(_0x47f8b5)&&(console[_0x379000(0x263)](_0x47f8b5[_0x379000(0x1a6)]),process['exit'](_0x47f8b5[_0x379000(0x289)]===void 0x0?0x2:0x1)),typeof _0x47f8b5?.[_0x379000(0x376)]!='string')throw _0x47f8b5;console[_0x379000(0x263)](_0x379000(0x17b)+_0x1abd66+'\x20('+_0x47f8b5[_0x379000(0x1a6)]+').'),process['exit'](0x2);}}async function Pn(_0x28dc3e){const _0x50b392=_0x2d1cd7;let [_0x256318,_0x82bdee,..._0x16ba32]=_0x28dc3e[_0x50b392(0x2e0)];(!_0x256318||_0x16ba32[_0x50b392(0x36d)]>0x0||!_0x28dc3e[_0x50b392(0x19c)])&&(console[_0x50b392(0x263)](_0x50b392(0x276)),process[_0x50b392(0x258)](0x2));let _0xcab33;try{_0xcab33=await _0x104d3f({'projectId':_0x28dc3e['projectId'],'type':_0x256318,..._0x82bdee?{'documentId':_0x82bdee}:{},..._0x28dc3e['workingDirectory']?{'workingDirectory':_0x28dc3e[_0x50b392(0x249)]}:{}});}catch(_0x69b4a0){console['error']('export:\x20'+(_0x69b4a0 instanceof Error?_0x69b4a0[_0x50b392(0x1a6)]:String(_0x69b4a0))),process[_0x50b392(0x258)](0x1);}m(_0x28dc3e,_0xcab33,_0x5d9c55=>{const _0x3f3fc7=_0x50b392;process[_0x3f3fc7(0x1d3)][_0x3f3fc7(0x327)](_0x5d9c55['message']+'\x0a');});}var he=_0x2d1cd7(0x30c),ye=_0x2d1cd7(0x2cf);async function _n(_0x38e8c1){const _0xd3e708=_0x2d1cd7;let [_0x24edc4='',..._0x5c4864]=_0x38e8c1[_0xd3e708(0x2e0)];if(_0x24edc4===_0xd3e708(0x369)){(_0x5c4864[_0xd3e708(0x36d)]>0x0||!_0x38e8c1['projectId']||!_0x38e8c1['remote']||!_0x38e8c1[_0xd3e708(0x20e)])&&(console[_0xd3e708(0x263)](he),process[_0xd3e708(0x258)](0x2));let _0x5a192e=await we(_0xd3e708(0x369),()=>_0x5e2d7d({'projectId':_0x38e8c1[_0xd3e708(0x19c)],'remote':_0x38e8c1[_0xd3e708(0x1b1)],'mapName':_0x38e8c1[_0xd3e708(0x20e)],..._0x38e8c1['workingDirectory']?{'workingDirectory':_0x38e8c1['workingDirectory']}:{}}));m(_0x38e8c1,_0x5a192e,_0x29bdba=>{const _0x319051=_0xd3e708;process[_0x319051(0x1d3)]['write'](_0x319051(0x20c)+_0x38e8c1['projectId']+'\x20to\x20'+_0x29bdba[_0x319051(0x1b1)]+_0x319051(0x241)+_0x29bdba[_0x319051(0x20e)]+_0x319051(0x297));});return;}if(_0x24edc4===_0xd3e708(0x36f)){let _0x103b9d=_0x5c4864['join']('\x20')[_0xd3e708(0x153)]();(!_0x103b9d||!_0x38e8c1[_0xd3e708(0x19c)])&&(console[_0xd3e708(0x263)](ye),process[_0xd3e708(0x258)](0x2));let _0x4d6a4e=await we(_0xd3e708(0x36f),()=>_0x261f75({'projectId':_0x38e8c1[_0xd3e708(0x19c)],'message':_0x103b9d,..._0x38e8c1['workingDirectory']?{'workingDirectory':_0x38e8c1[_0xd3e708(0x249)]}:{}}));m(_0x38e8c1,_0x4d6a4e,_0x60ac70=>{const _0x6a6c2a=_0xd3e708;process[_0x6a6c2a(0x1d3)][_0x6a6c2a(0x327)](_0x6a6c2a(0x20a)+_0x60ac70[_0x6a6c2a(0x25e)]+_0x6a6c2a(0x34a)+_0x38e8c1[_0x6a6c2a(0x19c)]+':\x20'+_0x60ac70[_0x6a6c2a(0x1a6)]+'\x0a');});return;}console['error'](he+'\x0a'+ye),process[_0xd3e708(0x258)](0x2);}async function we(_0x4f5e5a,_0x5194dd){const _0x4cff48=_0x2d1cd7;try{return await _0x5194dd();}catch(_0xf5950f){let _0x23907b=_0xf5950f?.['paths'],_0x3329f2=Array[_0x4cff48(0x18e)](_0x23907b)&&_0x23907b[_0x4cff48(0x36d)]>0x0?'\x20('+_0x23907b[_0x4cff48(0x1cb)](',\x20')+')':'';console['error']('maps\x20'+_0x4f5e5a+':\x20'+(_0xf5950f instanceof Error?_0xf5950f[_0x4cff48(0x1a6)]:String(_0xf5950f))+_0x3329f2),process[_0x4cff48(0x258)](0x1);}}async function Rn(_0x1a8ff2){const _0x495823=_0x2d1cd7;let _0x583649=[];for await(let _0x1011ba of _0x1a8ff2)_0x583649['push'](Buffer[_0x495823(0x1b0)](_0x1011ba));return Buffer[_0x495823(0x2be)](_0x583649);}var ke=['list',_0x2d1cd7(0x362),_0x2d1cd7(0x2f3),_0x2d1cd7(0x2fa),_0x2d1cd7(0x24b),'complete',_0x2d1cd7(0x1f7),_0x2d1cd7(0x28e),_0x2d1cd7(0x323),'delete'],be={'list':'delegations\x20list\x20<backend-project-id>','pending':_0x2d1cd7(0x2bd),'show':_0x2d1cd7(0x2bf),'create':_0x2d1cd7(0x26c),'claim':_0x2d1cd7(0x2dd),'complete':_0x2d1cd7(0x2af),'accept':_0x2d1cd7(0x191),'dismiss':'delegations\x20dismiss\x20<delegation-id>','cancel':_0x2d1cd7(0x2bc),'delete':'delegations\x20delete\x20<delegation-id>'};async function On(_0x3a23ef){const _0x3bb297=_0x2d1cd7;let [_0x2a3892='',_0x2d02ee='',..._0x4a07a2]=_0x3a23ef[_0x3bb297(0x2e0)];ke[_0x3bb297(0x2df)](_0x2a3892)||(console[_0x3bb297(0x263)]((_0x2a3892?_0x3bb297(0x2d3)+_0x2a3892+'.\x20':'')+_0x3bb297(0x23f)+ke[_0x3bb297(0x1cb)](_0x3bb297(0x2ca))+'.'),process[_0x3bb297(0x258)](0x2));let _0x330d68=_0x2a3892;_0x330d68!==_0x3bb297(0x2fa)&&(_0x3a23ef[_0x3bb297(0x274)]!==void 0x0||_0x3a23ef[_0x3bb297(0x246)]!==void 0x0||_0x3a23ef[_0x3bb297(0x268)]!==void 0x0)&&(console[_0x3bb297(0x263)](_0x3bb297(0x2d5)),process[_0x3bb297(0x258)](0x2));let _0x30755c=(_0x330d68===_0x3bb297(0x2fa)?_0x3a23ef[_0x3bb297(0x2e0)][_0x3bb297(0x33d)](0x1):_0x4a07a2)['join']('\x20')[_0x3bb297(0x153)](),_0x5e5c6=_0x330d68===_0x3bb297(0x2fa)||_0x330d68===_0x3bb297(0x26e);(_0x330d68!==_0x3bb297(0x2fa)&&!_0x2d02ee||(_0x5e5c6?!_0x30755c:_0x30755c)||_0x330d68===_0x3bb297(0x2fa)&&!_0x3a23ef['sessionId'])&&(console['error'](_0x3bb297(0x2e5)+be[_0x330d68]),process[_0x3bb297(0x258)](0x2));let _0x322cd6=_0x5e5c6&&_0x30755c==='-'?(await J('-',process[_0x3bb297(0x233)]))[_0x3bb297(0x153)]():_0x30755c;_0x5e5c6&&!_0x322cd6&&(console[_0x3bb297(0x263)](_0x3bb297(0x2e5)+be[_0x330d68]+_0x3bb297(0x1cc)),process[_0x3bb297(0x258)](0x2));let {client:_0x5a0c08}=await x(_0x3a23ef);try{await Ln(_0x3a23ef,_0x5a0c08,_0x330d68,_0x2d02ee,_0x322cd6);}catch(_0x22ec62){if(!_0x392e53(_0x22ec62))throw _0x22ec62;console[_0x3bb297(0x263)](_0x22ec62[_0x3bb297(0x1a6)]),process[_0x3bb297(0x258)](0x1);}}async function Ln(_0x1df291,_0x33e4a1,_0x1c44e8,_0x2f246c,_0xb36e6f){const _0x730035=_0x2d1cd7;switch(_0x1c44e8){case _0x730035(0x15b):m(_0x1df291,await _0x41300d(_0x33e4a1,_0x2f246c),Cn);return;case'pending':m(_0x1df291,await _0xfacc8f(_0x33e4a1,_0x2f246c),_0x94df6f=>{const _0x582217=_0x730035;_0x94df6f[_0x582217(0x1f3)]&&process[_0x582217(0x1d3)][_0x582217(0x327)](_0x582217(0x371)+_0x94df6f['delegation']['id']+'\x20('+_0x94df6f[_0x582217(0x1f3)][_0x582217(0x289)]+_0x582217(0x36c)),_0x94df6f[_0x582217(0x184)]['length']===0x0&&process['stderr'][_0x582217(0x327)](_0x582217(0x1ad));for(let _0x52cce9 of _0x94df6f['pendingResults'])process[_0x582217(0x1d3)][_0x582217(0x327)]('\x0a'+_0x52cce9['id']+_0x582217(0x1fe)+(_0x52cce9['assignedUserEmail']??_0x582217(0x2c8))+'\x20\x20'+(_0x52cce9[_0x582217(0x1e1)]??'')+'\x0a'+(_0x52cce9['result']?.['content']??'')+'\x0a');_0x94df6f[_0x582217(0x184)][_0x582217(0x36d)]>0x0&&process['stderr'][_0x582217(0x327)](_0x582217(0x215));});return;case _0x730035(0x2f3):m(_0x1df291,await _0xdbc144(_0x33e4a1,_0x2f246c),ve);return;case'create':{let _0x1518b0=await _0x4b4335(_0x33e4a1,{'sessionId':_0x1df291['sessionId'],'task':_0xb36e6f,..._0x1df291[_0x730035(0x246)]!==void 0x0&&{'contextSummary':_0x1df291[_0x730035(0x246)]},..._0x1df291[_0x730035(0x274)]!==void 0x0&&{'recipient':_0x1df291[_0x730035(0x274)]}});m(_0x1df291,_0x1518b0,_0x4b99ab=>{const _0x179828=_0x730035;_0x4b99ab['assignedUser']?process[_0x179828(0x1d3)]['write']('Delegated\x20'+_0x4b99ab[_0x179828(0x2e1)]+_0x179828(0x2e4)+_0x4b99ab[_0x179828(0x35a)][_0x179828(0x32c)]+'\x20<'+_0x4b99ab['assignedUser'][_0x179828(0x2f1)]+'>.\x0a'):process[_0x179828(0x1d3)][_0x179828(0x327)](_0x179828(0x1ec)+_0x4b99ab[_0x179828(0x2e1)]+'.\x20Share:\x20'+_0x4b99ab[_0x179828(0x2ac)]+'\x0a');});return;}case _0x730035(0x24b):{let _0x3f2549=await _0x1bca6f(_0x33e4a1,_0x2f246c);m(_0x1df291,_0x3f2549,_0x239f7b=>{const _0x24e2f7=_0x730035;ve(_0x239f7b),process[_0x24e2f7(0x1d3)][_0x24e2f7(0x327)](_0x24e2f7(0x155)+_0x239f7b['sessionId']+'\x0a'),process[_0x24e2f7(0x352)][_0x24e2f7(0x327)](_0x24e2f7(0x2a2)+_0x239f7b[_0x24e2f7(0x268)]+_0x24e2f7(0x332)+_0x239f7b[_0x24e2f7(0x2e1)]+'\x20\x22<answer>\x22\x0a');});return;}case'complete':{let {alreadyCompleted:_0x56e111}=await _0x31bbfc(_0x33e4a1,_0x2f246c,{'content':_0xb36e6f});m(_0x1df291,{'delegationId':_0x2f246c,'alreadyCompleted':_0x56e111},_0x5168bb=>{const _0x28352b=_0x730035;process[_0x28352b(0x1d3)][_0x28352b(0x327)]((_0x5168bb[_0x28352b(0x295)]?_0x28352b(0x1c1):_0x28352b(0x29f))+_0x28352b(0x35d)+_0x5168bb[_0x28352b(0x2e1)]+'.\x0a');});return;}case _0x730035(0x1f7):{let _0xbe7ec1=await _0x1635ea(_0x33e4a1,_0x2f246c);m(_0x1df291,{'delegationId':_0x2f246c,..._0xbe7ec1},_0x58c947=>{const _0x4fa08e=_0x730035;process[_0x4fa08e(0x1d3)][_0x4fa08e(0x327)]((_0x58c947[_0x4fa08e(0x16c)]?'Already\x20accepted':_0x4fa08e(0x186))+'\x20delegation\x20'+_0x58c947[_0x4fa08e(0x2e1)]+'.\x0a');});return;}default:{let _0x3d0ea0={'dismiss':_0x5f5918,'cancel':_0x353156,'delete':_0x5127a4}[_0x1c44e8];await _0x3d0ea0(_0x33e4a1,_0x2f246c);let _0x3db5c0={'dismiss':_0x730035(0x1e2),'cancel':_0x730035(0x196),'delete':_0x730035(0x378)}[_0x1c44e8];m(_0x1df291,{'delegationId':_0x2f246c,[_0x3db5c0]:!0x0},()=>{const _0x5b8da6=_0x730035;process[_0x5b8da6(0x1d3)]['write'](''+_0x3db5c0[0x0][_0x5b8da6(0x2ab)]()+_0x3db5c0['slice'](0x1)+_0x5b8da6(0x35d)+_0x2f246c+'.\x0a');});}}}function Cn(_0x47ce57){const _0x569753=_0x2d1cd7;if(_0x47ce57[_0x569753(0x36d)]===0x0){process[_0x569753(0x352)]['write'](_0x569753(0x1ca));return;}process[_0x569753(0x1d3)][_0x569753(0x327)]('ID'['padEnd'](0x24)+'\x20\x20'+_0x569753(0x27b)[_0x569753(0x1e4)](0x9)+'\x20\x20'+_0x569753(0x230)[_0x569753(0x1e4)](0x18)+'\x20\x20TASK\x0a');for(let _0x627332 of _0x47ce57)process['stdout'][_0x569753(0x327)](_0x627332['id'][_0x569753(0x1e4)](0x24)+'\x20\x20'+_0x627332[_0x569753(0x289)]['padEnd'](0x9)+'\x20\x20'+(_0x627332[_0x569753(0x294)]??'-')[_0x569753(0x1e4)](0x18)+'\x20\x20'+(_0x627332[_0x569753(0x1e1)]??'')+'\x0a');}function ve(_0x610d3c){const _0x1f8f84=_0x2d1cd7;process[_0x1f8f84(0x1d3)][_0x1f8f84(0x327)](_0x1f8f84(0x2d2)+(_0x610d3c[_0x1f8f84(0x2fb)]??'-')+'\x0a'),_0x610d3c[_0x1f8f84(0x292)]&&process[_0x1f8f84(0x1d3)][_0x1f8f84(0x327)]('Session\x20\x20\x20\x20\x20\x20\x20'+_0x610d3c[_0x1f8f84(0x292)]+'\x0a'),process[_0x1f8f84(0x1d3)]['write'](_0x1f8f84(0x22e)+(_0x610d3c[_0x1f8f84(0x1e1)]??'-')+'\x0a'),_0x610d3c['contextSummary']&&process[_0x1f8f84(0x1d3)]['write']('\x0a'+_0x610d3c[_0x1f8f84(0x246)]+'\x0a\x0a');}async function jn(_0x2413a2){const _0x56a4ee=_0x2d1cd7;_0x2413a2[_0x56a4ee(0x238)][_0x56a4ee(0x153)]()||(console['error'](_0x56a4ee(0x283)),process['exit'](0x2));let {client:_0x414da6}=await x(_0x2413a2),_0x4856ba;try{_0x4856ba=await _0xe19e05(_0x414da6,_0x2413a2[_0x56a4ee(0x238)]);}catch(_0x3982ff){if(!_0x392e53(_0x3982ff))throw _0x3982ff;console[_0x56a4ee(0x263)](_0x3982ff[_0x56a4ee(0x1a6)]),process[_0x56a4ee(0x258)](0x1);}m(_0x2413a2,_0x4856ba,_0x28673f=>{const _0x51211b=_0x56a4ee;_0x28673f[_0x51211b(0x36d)]===0x0&&process[_0x51211b(0x352)][_0x51211b(0x327)](_0x51211b(0x190)+_0x2413a2[_0x51211b(0x238)][_0x51211b(0x153)]()+_0x51211b(0x297));for(let _0x490afc of _0x28673f)process[_0x51211b(0x1d3)][_0x51211b(0x327)](_0x490afc[_0x51211b(0x2f1)][_0x51211b(0x1e4)](0x20)+'\x20\x20'+_0x490afc['displayName']+'\x0a');});}async function Mn(_0x1c1af1){const _0x56d887=_0x2d1cd7;_0x1c1af1[_0x56d887(0x2b6)]==='localhost'&&(console['error']('--env\x20localhost\x20has\x20no\x20OAuth\x20flow;\x20pick\x20alpha,\x20staging,\x20or\x20production.'),process[_0x56d887(0x258)](0x2));let _0x6847a0=G(_0x13e15a()),_0x5a6f41=_0x1c1af1['skipEnvCheck'];if(_0x1c1af1[_0x56d887(0x2b6)]){let _0x214711=_0x1c1af1[_0x56d887(0x2b6)];await _0x5e12fd({'env':_0x214711,'tenant':_0x1c1af1[_0x56d887(0x34b)]??q(_0x6847a0,_0x359710[_0x214711]),'skipEnvCheck':_0x5a6f41});return;}let _0x4b5c4e=_0x1c1af1[_0x56d887(0x207)]??Pe();if(_0x4b5c4e){await _0x5e12fd({'baseUrl':_0x4b5c4e,'tenant':_0x1c1af1[_0x56d887(0x34b)]??q(_0x6847a0,_0x4b5c4e),'skipEnvCheck':_0x5a6f41});return;}if(_0x6847a0?.['baseUrl']){await _0x5e12fd({'baseUrl':_0x6847a0[_0x56d887(0x33c)],'tenant':_0x1c1af1[_0x56d887(0x34b)]??_0x6847a0[_0x56d887(0x183)],'skipEnvCheck':_0x5a6f41});return;}console[_0x56d887(0x263)](_0x56d887(0x365)),process[_0x56d887(0x258)](0x2);}function q(_0x5861ff,_0x4073cd){const _0xf57dd5=_0x2d1cd7;return _0x5861ff?.['baseUrl']&&Fn(_0x5861ff[_0xf57dd5(0x33c)],_0x4073cd)?_0x5861ff['tenantName']:void 0x0;}function Fn(_0x32b55f,_0x588d44){const _0x3a4542=_0x2d1cd7;try{return new URL(_0x32b55f)['origin']===new URL(_0x588d44)[_0x3a4542(0x1aa)];}catch{return!0x1;}}async function Bn(_0x15932d){const _0x17629b=_0x2d1cd7;z()&&(console[_0x17629b(0x263)](_0x17629b(0x154)),process[_0x17629b(0x258)](0x2));let _0x532e79=await _0x1e5984();if(_0x532e79||(console['error'](Hn()),process[_0x17629b(0x258)](0x2)),_0x15932d['trim']()){let _0x2347bc=await _0x2be77f(_0x532e79,_0x15932d);_0x3d20a4(_0x2347bc)||(console[_0x17629b(0x263)](_0x17629b(0x32b)+_0x13e15a()+_0x17629b(0x2cd)+_0x532e79[_0x17629b(0x183)]+'.'),process[_0x17629b(0x258)](0x1)),console['log'](_0x17629b(0x2ee)+_0x2347bc[_0x17629b(0x183)]+'\x20('+_0x2347bc[_0x17629b(0x1d9)]+')\x20—\x20saved\x20to\x20'+_0x13e15a());return;}Jn(await _0x40a7ee(_0x532e79),_0x532e79);}function Hn(){const _0x273bfc=_0x2d1cd7;if(_0x5a32b5[_0x273bfc(0x26b)](_0x13e15a()))return _0x273bfc(0x1c3);let _0xaf5285=Y();return G(_0xaf5285)?_0x273bfc(0x225)+_0xaf5285+_0x273bfc(0x1b8):'No\x20CLI\x20login\x20found.\x20Run\x20`delegate-cli\x20login\x20--env\x20<alpha|staging|production>`\x20first.';}function Jn(_0x2a0708,_0x46915c){const _0x53961c=_0x2d1cd7;let _0x1ed47=_0x2a0708[_0x53961c(0x175)](_0x1cca31=>_0x1cca31['id']===_0x46915c[_0x53961c(0x1d9)]?'*\x20'+_0x1cca31[_0x53961c(0x22f)]+_0x53961c(0x30f):'\x20\x20'+_0x1cca31[_0x53961c(0x22f)]);process[_0x53961c(0x1d3)][_0x53961c(0x327)](_0x53961c(0x2ce)+(_0x46915c['orgLogicalName']??_0x46915c['organizationId'])+':\x0a'+_0x1ed47['join']('\x0a')+'\x0a'),_0x2a0708['length']>0x1&&process['stdout'][_0x53961c(0x327)](_0x53961c(0x16a));}function Gn(_0x266667){const _0x5b40d7=_0x2d1cd7;return _0x266667?.[_0x5b40d7(0x2e6)]?.['status']===0x191||/401/[_0x5b40d7(0x35e)](String(_0x266667?.[_0x5b40d7(0x1a6)]??''));}var w={'lastType':null,'quiet':!0x1},Oe=_0x3286a4=>{const _0x39b916=_0x2d1cd7;switch(_0x3286a4[_0x39b916(0x157)]){case'session_start':_0x3286a4[_0x39b916(0x268)]&&_0x3286a4[_0x39b916(0x268)]!==w['sessionId']&&(process[_0x39b916(0x352)][_0x39b916(0x327)](_0x39b916(0x309)+_0x3286a4[_0x39b916(0x268)]+_0x39b916(0x2cc)+_0x3286a4[_0x39b916(0x268)]+')\x0a'),w[_0x39b916(0x268)]=_0x3286a4[_0x39b916(0x268)]);break;case'turn_start':_0x3286a4[_0x39b916(0x2c7)]&&_0x3286a4[_0x39b916(0x2c7)]!==w[_0x39b916(0x2c7)]&&(w['lastType']!==null&&process[_0x39b916(0x352)]['write']('\x0a'),process['stderr'][_0x39b916(0x327)](_0x39b916(0x36a)+_0x3286a4[_0x39b916(0x2c7)]+_0x39b916(0x164)+_0x3286a4[_0x39b916(0x268)]+'\x20--turn\x20'+_0x3286a4[_0x39b916(0x2c7)]+')\x0a'),w[_0x39b916(0x2c7)]=_0x3286a4[_0x39b916(0x2c7)],w[_0x39b916(0x1a7)]=_0x39b916(0x31c));break;case'thinking':_0x3286a4['content']&&!w[_0x39b916(0x14d)]&&(w[_0x39b916(0x1a7)]!==_0x39b916(0x21a)&&process['stderr'][_0x39b916(0x327)](_0x39b916(0x1ce)),process[_0x39b916(0x352)][_0x39b916(0x327)](_0x3286a4[_0x39b916(0x30a)]),w[_0x39b916(0x1a7)]=_0x39b916(0x21a));break;case _0x39b916(0x345):w[_0x39b916(0x1a7)]!==null&&process[_0x39b916(0x352)]['write']('\x0a'),process[_0x39b916(0x352)][_0x39b916(0x327)](_0x39b916(0x2f5)+(_0x3286a4[_0x39b916(0x202)]??_0x39b916(0x1ef))+'\x0a'),w[_0x39b916(0x1a7)]=_0x39b916(0x345);break;case _0x39b916(0x1a6):_0x3286a4[_0x39b916(0x30a)]&&(w[_0x39b916(0x1a7)]!=='message'&&w[_0x39b916(0x1a7)]!==null&&process[_0x39b916(0x1d3)][_0x39b916(0x327)]('\x0a'),process[_0x39b916(0x1d3)][_0x39b916(0x327)](_0x3286a4['content']),w[_0x39b916(0x1a7)]=_0x39b916(0x1a6));break;case _0x39b916(0x263):w['lastType']!==null&&process[_0x39b916(0x352)][_0x39b916(0x327)]('\x0a'),process[_0x39b916(0x352)][_0x39b916(0x327)]('✗\x20'+(_0x3286a4[_0x39b916(0x263)]??_0x39b916(0x263))+'\x0a'),w[_0x39b916(0x1a7)]='error';break;case _0x39b916(0x302):(w[_0x39b916(0x1a7)]==='message'||w['lastType']===_0x39b916(0x21a))&&process[_0x39b916(0x1d3)][_0x39b916(0x327)]('\x0a'),process[_0x39b916(0x352)][_0x39b916(0x327)]('✓\x20Done\x0a'),w['lastType']=_0x39b916(0x302);break;}};function Se(_0x279ed3,_0x47a24f,_0x424740,_0x574ced){const _0x137c29=_0x2d1cd7;let _0x516554=_0x279ed3[_0x137c29(0x372)]||process.env.MODEL;return{'backendUrl':_0x424740,'auth':_0x47a24f,'enableComputerUse':!_0x279ed3[_0x137c29(0x2aa)]&&!_0x279ed3[_0x137c29(0x300)],'autoSpawnInterop':!_0x279ed3['headless'],'enableConnections':!_0x279ed3[_0x137c29(0x14e)],'enableSecurity':!_0x279ed3[_0x137c29(0x367)],'keepInteropAlive':_0x279ed3[_0x137c29(0x36e)],..._0x574ced[_0x137c29(0x30d)]?{'enableBackgroundCommands':!0x1}:{},..._0x279ed3[_0x137c29(0x23d)]?{'enableMemory':!0x1}:{},..._0x279ed3[_0x137c29(0x2f8)]?{'enableTaskAutomation':!0x0}:{},..._0x279ed3[_0x137c29(0x351)]['length']>0x0?{'preloadSkills':_0x279ed3[_0x137c29(0x351)]}:{},..._0x516554?{'model':_0x516554}:{},..._0x279ed3[_0x137c29(0x19c)]?{'projectId':_0x279ed3[_0x137c29(0x19c)]}:{},..._0x279ed3['vertical']?{'vertical':_0x279ed3[_0x137c29(0x21d)]}:{},..._0x279ed3['workingDirectory']?{'workingDirectory':_0x279ed3[_0x137c29(0x249)]}:{},..._0x279ed3[_0x137c29(0x31a)]?{'bundledSkillsPath':_0x279ed3[_0x137c29(0x31a)]}:{},..._0x279ed3['effort']?{'effort':_0x279ed3[_0x137c29(0x17d)]}:{},..._0x279ed3['sessionId']?{'sessionId':_0x279ed3[_0x137c29(0x268)]}:{},..._0x279ed3[_0x137c29(0x33b)]?{'verbose':!0x0}:{}};}async function Wn(_0x3f1ffc){const _0x1cf19f=_0x2d1cd7;let _0x320585=_0x3f1ffc['outputFormat']!=='text',_0x4852ae=_0x3f1ffc[_0x1cf19f(0x2eb)]===void 0x0?null:Re(_0x3f1ffc[_0x1cf19f(0x2eb)],_0x1cf19f(0x19f)),_0x3febfe=!_0x320585&&!_0x4852ae&&!_0x3f1ffc['print']&&_0x3f1ffc[_0x1cf19f(0x238)]!=='-'&&!!process['stdin'][_0x1cf19f(0x361)]&&!!process['stdout']['isTTY'],_0x354111=_0x3f1ffc[_0x1cf19f(0x30e)]===_0x1cf19f(0x35f)?re(process[_0x1cf19f(0x233)],_0x33de60=>{const _0x5a3589=_0x1cf19f;process['stderr'][_0x5a3589(0x327)](_0x33de60[_0x5a3589(0x1a6)]+_0x5a3589(0x2cb));}):null,_0x219ae2=_0x354111?(await _0x354111[_0x1cf19f(0x1f6)]())[_0x1cf19f(0x2ec)]:void 0x0,_0x353cdc=_0x354111?_0x219ae2?.[_0x1cf19f(0x18d)]??'':_0x3febfe?_0x3f1ffc[_0x1cf19f(0x238)]['trim']():await J(_0x3f1ffc[_0x1cf19f(0x238)],process[_0x1cf19f(0x233)]);if(!_0x3febfe&&!_0x353cdc&&(console[_0x1cf19f(0x263)](_0x1cf19f(0x2fd)),process['exit'](0x2)),!_0x320585){await Ae(_0x3f1ffc,_0x353cdc,_0x3febfe,null,_0x4852ae,null);return;}let _0x1175a8=!0x1,_0x2c09ee=_0x5700b6=>{const _0x515235=_0x1cf19f;_0x1175a8=!0x0,L(_0xfc737e(_0x5700b6)),(_0x5700b6['isError']||_0x5700b6['structuredError'])&&(process[_0x515235(0x1a9)]=0x1);},_0x41daca=Date[_0x1cf19f(0x1af)]();try{await Ae(_0x3f1ffc,_0x353cdc,!0x1,_0x2c09ee,_0x4852ae,_0x354111?{'messages':_0x354111,'first':_0x219ae2,'close':()=>{const _0x6d4029=_0x1cf19f;process['stdin'][_0x6d4029(0x338)]();}}:null);}catch(_0x582792){if(_0x1175a8)throw _0x582792;process['stderr'][_0x1cf19f(0x327)]((_0x582792 instanceof Error?_0x582792[_0x1cf19f(0x235)]??_0x582792[_0x1cf19f(0x1a6)]:String(_0x582792))+'\x0a'),_0x2c09ee(new _0x63b84(_0x41daca)[_0x1cf19f(0x1dd)]({'endedAtMs':Date[_0x1cf19f(0x1af)](),'usage':[],'error':_0x582792}));}finally{_0x354111&&(process[_0x1cf19f(0x233)][_0x1cf19f(0x338)](),_0x354111[_0x1cf19f(0x1a4)](void 0x0));}}async function Ae(_0x3dbb17,_0xdc6f97,_0x4c9dc0,_0x2fa794,_0x1895b5,_0x513454){const _0x49e6ac=_0x2d1cd7;w={'lastType':null,'quiet':_0x3dbb17[_0x49e6ac(0x14d)]};let _0x50bd3c=new Set(),_0x1d5c73,_0x1c2ac3=_0x1f6716=>{const _0x18bfef=_0x49e6ac;(!_0x2fa794||_0x1f6716[_0x18bfef(0x157)]===_0x18bfef(0x346)||_0x1f6716[_0x18bfef(0x157)]===_0x18bfef(0x31c))&&(_0x1d5c73??Oe)(_0x1f6716);for(let _0x29d5af of _0x50bd3c)_0x29d5af(_0x1f6716);},_0x3ba4f7=await V(),_0x4720e9=new _0x418778();_0x4720e9[_0x49e6ac(0x170)](_0x1c2ac3);let _0x537b10=_0x2854a6(_0x3dbb17[_0x49e6ac(0x2b6)],_0x3ba4f7,_0x3dbb17[_0x49e6ac(0x2a5)]);X(_0x3dbb17['env'],_0x3dbb17[_0x49e6ac(0x2a5)],_0x537b10);let _0x436e74={'input':null},_0x5568bb=_0x4c9dc0?ne(()=>_0x436e74[_0x49e6ac(0x2e3)],_0x51a314=>{const _0x1af4b7=_0x49e6ac;process[_0x1af4b7(0x352)][_0x1af4b7(0x327)](_0x51a314);}):null,_0x273408=_0x4509c7=>_0x5568bb?{..._0x4509c7,'askUser':_0x5568bb}:_0x4509c7,_0x48a006=_0x273408(Se(_0x3dbb17,_0x3ba4f7,_0x537b10,{'oneTurn':!_0x4c9dc0})),_0x1490cd=!0x1,_0x142b24=!0x1,_0x57b45e,_0x531430=()=>_0x57b45e??=_0x4720e9[_0x49e6ac(0x222)](),_0x3f3887=()=>{const _0x35749b=_0x49e6ac;_0x142b24&&process[_0x35749b(0x258)](0x82),_0x142b24=!0x0,process[_0x35749b(0x352)]['write'](_0x35749b(0x342)),_0x1490cd&&_0x4720e9[_0x35749b(0x323)]()['catch'](_0x76e105=>console[_0x35749b(0x263)](_0x76e105))[_0x35749b(0x1c7)](_0x531430)[_0x35749b(0x1c7)](()=>process[_0x35749b(0x258)](0x82),_0x26ecc0=>{const _0x378536=_0x35749b;console[_0x378536(0x263)](_0x26ecc0),process[_0x378536(0x258)](0x82);});};process['on'](_0x49e6ac(0x16f),_0x3f3887);let _0x2a9219=_0x3dbb17[_0x49e6ac(0x278)],_0x42ad31=async _0x4f7f75=>{const _0x3d8689=_0x49e6ac;let _0x41d0bb=_0x2a9219;_0x2a9219=[];let _0x5a9580=()=>_0x4720e9['sendMessage'](_0x4f7f75,{'attachments':_0x41d0bb});try{return await _0x5a9580();}catch(_0xb9ad11){if(_0x142b24||!Gn(_0xb9ad11)||!process['stdin'][_0x3d8689(0x361)]||_0x3dbb17[_0x3d8689(0x2b6)]===_0x3d8689(0x19b)||!(_0x3dbb17['env']||_0x3ba4f7[_0x3d8689(0x33c)]))throw _0xb9ad11;process[_0x3d8689(0x352)]['write']('\x0a⚠️\x20\x20Auth\x20expired.\x20Opening\x20browser\x20to\x20re-login…\x0a');let _0x304eac=_0x4720e9[_0x3d8689(0x1f0)]()??_0x3dbb17[_0x3d8689(0x268)],_0x5c8d90=await _0x5e12fd(_0x3dbb17[_0x3d8689(0x2b6)]?{'env':_0x3dbb17['env'],'tenant':q(_0x3ba4f7,_0x359710[_0x3dbb17[_0x3d8689(0x2b6)]]),'skipEnvCheck':!0x0}:{'baseUrl':_0x3ba4f7[_0x3d8689(0x33c)],'tenant':_0x3ba4f7[_0x3d8689(0x183)],'skipEnvCheck':!0x0}),_0x2bbe97={'text':'','failed':!0x1,'sessionId':_0x304eac};return _0x142b24||(_0x1490cd=!0x1,await _0x531430(),_0x142b24)?_0x2bbe97:(_0x4720e9=new _0x418778(),_0x57b45e=void 0x0,_0x4720e9[_0x3d8689(0x170)](_0x1c2ac3),_0x3ba4f7=_0x5c8d90,await _0x4720e9[_0x3d8689(0x306)]({..._0x273408(Se(_0x3dbb17,_0x3ba4f7,_0x537b10,{'oneTurn':!_0x4c9dc0})),..._0x304eac?{'sessionId':_0x304eac}:{}}),_0x1490cd=!0x0,_0x142b24?_0x2bbe97:_0x5a9580());}};try{if(await _0x4720e9[_0x49e6ac(0x306)](_0x48a006),_0x1490cd=!0x0,_0x142b24)return;if(_0x4c9dc0)await Qn({'prompt':_0xdc6f97,'sendMessage':_0x42ad31,'onSigint':_0x3f3887,'setAnswerInput':_0x138208=>{_0x436e74['input']=_0x138208;},'registerEventPrinter':_0x5d1dcd=>(_0x1d5c73=_0x5d1dcd,()=>{_0x1d5c73=void 0x0;})});else{if(_0x2fa794||_0x1895b5){let _0x10f65e=_0x3dbb17[_0x49e6ac(0x317)]==='stream-json'?_0x531c37=>L(_0x1a8be5(_0x531c37)):()=>{},_0x57ea47=_0x513454?ie({'input':_0x513454,'getAgent':()=>_0x4720e9,'replay':_0x3dbb17[_0x49e6ac(0x162)],'onEvent':_0x49bfd9=>(_0x50bd3c[_0x49e6ac(0x1ed)](_0x49bfd9),()=>{_0x50bd3c['delete'](_0x49bfd9);}),'write':L,'isRunStopNotice':_0x25601e,'actionableErrorText':_0x458304,'warn':_0x36e488=>{const _0x1f14ff=_0x49e6ac;process[_0x1f14ff(0x352)][_0x1f14ff(0x327)](_0x36e488);}}):null,_0x565e4a=await _0x254ab8({'onEvent':_0x2e8f58=>(_0x50bd3c[_0x49e6ac(0x1ed)](_0x2e8f58),()=>{const _0x5d7b15=_0x49e6ac;_0x50bd3c[_0x5d7b15(0x1bc)](_0x2e8f58);}),'sendMessage':async _0x2913ac=>{const _0x14579e=_0x49e6ac;try{let _0x30b84f=await _0x42ad31(_0x2913ac);return _0x57ea47?await _0x57ea47[_0x14579e(0x24f)](_0x30b84f):_0x30b84f;}finally{_0x57ea47?.[_0x14579e(0x307)]();}},'getSessionId':()=>_0x4720e9[_0x49e6ac(0x1f0)](),'getTurnUsageHistory':_0x356f57=>_0x4720e9[_0x49e6ac(0x2ff)](_0x356f57),'complete':_0x4c6905=>_0x4720e9['complete'](_0x4c6905)},_0xdc6f97,void 0x0,_0x10f65e,_0x1895b5?{'outputSchema':_0x1895b5}:void 0x0);_0x2fa794?_0x2fa794(_0x565e4a):Kn(_0x565e4a);}else await _0x42ad31(_0xdc6f97);}}catch(_0x3db4d4){if(!_0x142b24)throw _0x3db4d4;}finally{try{await _0x531430();}finally{process[_0x49e6ac(0x32f)](_0x49e6ac(0x16f),_0x3f3887),_0x142b24&&(process[_0x49e6ac(0x1a9)]=0x82);}}}function Kn(_0x206484){const _0x5c5593=_0x2d1cd7;_0x206484['structuredError']?(console[_0x5c5593(0x263)](_0x5c5593(0x341)+_0x206484[_0x5c5593(0x224)][_0x5c5593(0x1a6)]),process[_0x5c5593(0x1a9)]=0x1):_0x206484[_0x5c5593(0x2f9)]?(console[_0x5c5593(0x263)](_0x5c5593(0x228)+_0x206484[_0x5c5593(0x263)]+').'),process[_0x5c5593(0x1a9)]=0x1):process[_0x5c5593(0x1d3)][_0x5c5593(0x327)](JSON[_0x5c5593(0x324)](_0x206484[_0x5c5593(0x29e)],null,0x2)+'\x0a');}function qn(_0x1709dc,_0x1c35be){const _0xabe2e3=_0x2d1cd7;let _0x2e6cd9=process[_0xabe2e3(0x1d3)][_0xabe2e3(0x327)][_0xabe2e3(0x1a5)](process[_0xabe2e3(0x1d3)]),_0x5aca13=!0x1;return process[_0xabe2e3(0x1d3)]['write']=(..._0x35e6f7)=>{const _0x51b482=_0xabe2e3;if(!_0x5aca13)return _0x2e6cd9(..._0x35e6f7);_0x35707e(_0x1c35be,0x0),_0xb650bc(_0x1c35be,0x0);let _0x4d8596=_0x2e6cd9(..._0x35e6f7);return _0x1709dc[_0x51b482(0x238)](!0x0),_0x4d8596;},{'show':()=>{const _0x55c20c=_0xabe2e3;_0x5aca13=!0x0,_0x1709dc[_0x55c20c(0x238)]();},'hide':()=>{_0x5aca13=!0x1;},'erase':()=>{_0x5aca13&&(_0x35707e(_0x1c35be,0x0),_0xb650bc(_0x1c35be,0x0)),_0x5aca13=!0x1;},'restore':()=>{const _0x28a598=_0xabe2e3;_0x5aca13=!0x1,process[_0x28a598(0x1d3)]['write']=_0x2e6cd9;}};}async function Qn({prompt:_0x2d00b1,sendMessage:_0x4233cb,onSigint:_0x42c624,setAnswerInput:_0x230625,registerEventPrinter:_0x54bcd3}){const _0x96831=_0x2d1cd7;let _0x3078b9=_0x183103({'input':process[_0x96831(0x233)],'output':process[_0x96831(0x352)],'terminal':!0x0,'prompt':'You>\x20'}),_0x5d1ba1=qn(_0x3078b9,process[_0x96831(0x352)]),_0x449269=[],_0x5dd640,_0x5e7e02,_0x38aec2,_0x339761=!0x1,_0xf6cb4a=!0x1,_0x9d1a40=!0x1,_0x362159=Promise[_0x96831(0x14b)](),_0x173101,_0x495e69=_0x54bcd3(_0x3246d2=>{const _0x6f29b3=_0x96831;_0x3246d2[_0x6f29b3(0x157)]===_0x6f29b3(0x346)&&(_0x5d1ba1[_0x6f29b3(0x17a)](),_0x362159=new Promise(_0x2a4c20=>{_0x173101=_0x2a4c20;})),Oe(_0x3246d2),_0x3246d2['type']===_0x6f29b3(0x302)&&(_0x173101?.(),_0x173101=void 0x0,!_0x9d1a40&&!_0x339761&&_0x5d1ba1[_0x6f29b3(0x2f3)]());}),_0x5a68bb=()=>{const _0x3bcf2f=_0x96831;_0xf6cb4a=!0x0,_0x173101?.(),_0x42c624(),_0x3078b9[_0x3bcf2f(0x16e)]();};_0x3078b9['on'](_0x96831(0x2b3),_0x4ac9f8=>{const _0x31bf47=_0x96831;_0x38aec2?_0x38aec2(_0x4ac9f8):_0x5dd640?_0x5dd640['push'](_0x4ac9f8):_0x5e7e02?_0x5e7e02(_0x4ac9f8):_0x449269[_0x31bf47(0x16d)](_0x4ac9f8);}),_0x3078b9['once'](_0x96831(0x16e),()=>{const _0x84664d=_0x96831;_0x339761=!0x0,_0x5d1ba1[_0x84664d(0x1cf)](),_0x5dd640&&!_0xf6cb4a&&_0x5a68bb(),_0x5e7e02?.(null);});let _0x10b78a=()=>_0x449269[_0x96831(0x36d)]>0x0?Promise['resolve'](_0x449269[_0x96831(0x1ba)]()):_0x339761?Promise[_0x96831(0x14b)](null):new Promise(_0x1f9a31=>{_0x5e7e02=_0x5b8dc9=>{_0x5e7e02=void 0x0,_0x1f9a31(_0x5b8dc9);};});_0x230625({'readLine':(_0x5bb36b,_0x5de990)=>new Promise((_0x167415,_0x40fdb5)=>{const _0x96c8ed=_0x96831;if(_0x339761&&!_0x5dd640){_0x167415(null);return;}_0x5dd640??=[];let _0x2e18df=_0x5dd640[_0x96c8ed(0x1ba)]();if(_0x2e18df!==void 0x0){_0x167415(_0x2e18df);return;}let _0x2e77c8=()=>{const _0x812d84=_0x96c8ed;_0x38aec2=void 0x0,_0x5de990[_0x812d84(0x34e)](_0x812d84(0x17c),_0x20b843),_0x5d1ba1[_0x812d84(0x1cf)](),_0x3078b9[_0x812d84(0x1f8)](_0x812d84(0x322));},_0x20b843=()=>{const _0xe88489=_0x96c8ed;_0x2e77c8(),_0x40fdb5(new Error(_0xe88489(0x25a)));};_0x5de990['addEventListener']('abort',_0x20b843,{'once':!0x0}),!_0x339761&&(_0x38aec2=_0x2c28ed=>{_0x2e77c8(),_0x167415(_0x2c28ed);},_0x3078b9[_0x96c8ed(0x1f8)](_0x5bb36b),_0x5d1ba1['show']());}),'endQuestions':()=>{_0x5dd640&&_0x449269['push'](..._0x5dd640),_0x5dd640=void 0x0;}}),_0x3078b9['on'](_0x96831(0x16f),_0x5a68bb),process[_0x96831(0x352)][_0x96831(0x327)](_0x96831(0x19a));let _0x4040ee=async _0x50d750=>{_0x9d1a40=!0x0;try{await _0x4233cb(_0x50d750);}finally{_0x9d1a40=!0x1;}};try{if(_0x2d00b1&&await _0x4040ee(_0x2d00b1),_0xf6cb4a)return;!_0x339761&&!_0x173101&&_0x5d1ba1[_0x96831(0x2f3)]();for(let _0x308c18=await _0x10b78a();_0x308c18!==null&&(_0x5d1ba1[_0x96831(0x1cf)](),!_0xf6cb4a);_0x308c18=await _0x10b78a()){let _0x327dec=_0x308c18['trim']();if(_0x327dec===_0x96831(0x234))break;_0x327dec&&await _0x4040ee(_0x327dec),!_0x339761&&!_0x173101&&_0x5d1ba1[_0x96831(0x2f3)]();}for(;!_0xf6cb4a&&_0x173101;)await _0x362159;}finally{_0x230625(null),_0x495e69(),_0x5d1ba1['restore'](),_0x3078b9[_0x96831(0x32f)]('SIGINT',_0x5a68bb),_0x3078b9[_0x96831(0x16e)]();}}async function Yn(){let _0x4df053=Vt(process['argv']['slice'](0x2));if(_0x4df053['outputFormat']==='text'){await Ee(_0x4df053);return;}let _0x42a2b5=Xt();try{await Ee(_0x4df053);}finally{_0x42a2b5();}}async function Ee(_0x42a42b){const _0x1f7aef=_0x2d1cd7;if(_0x42a42b[_0x1f7aef(0x265)]){Zt();return;}if(_0x42a42b[_0x1f7aef(0x25e)]){console['log'](en());return;}if(_0x42a42b['subcommand']===_0x1f7aef(0x179)){await Mn(_0x42a42b);return;}if(_0x42a42b['subcommand']===_0x1f7aef(0x34b)){await Bn(_0x42a42b[_0x1f7aef(0x238)]);return;}if(_0x42a42b[_0x1f7aef(0x256)]===_0x1f7aef(0x296)){await on();return;}if(_0x42a42b[_0x1f7aef(0x256)]===_0x1f7aef(0x29c)){await rn(_0x42a42b);return;}if(_0x42a42b[_0x1f7aef(0x256)]===_0x1f7aef(0x267)){await dn(_0x42a42b);return;}if(_0x42a42b[_0x1f7aef(0x256)]==='check'){await wn(_0x42a42b);return;}if(_0x42a42b[_0x1f7aef(0x256)]===_0x1f7aef(0x182)){await pn(_0x42a42b);return;}if(_0x42a42b[_0x1f7aef(0x256)]===_0x1f7aef(0x250)){await vn(_0x42a42b);return;}if(_0x42a42b[_0x1f7aef(0x256)]===_0x1f7aef(0x156)||_0x42a42b[_0x1f7aef(0x256)]==='rerank'||_0x42a42b[_0x1f7aef(0x256)]===_0x1f7aef(0x161)){await xn(_0x42a42b,_0x42a42b[_0x1f7aef(0x256)]);return;}if(_0x42a42b[_0x1f7aef(0x256)]==='complete'){await $n(_0x42a42b);return;}if(_0x42a42b[_0x1f7aef(0x256)]===_0x1f7aef(0x357)){await Nn(_0x42a42b);return;}if(_0x42a42b[_0x1f7aef(0x256)]===_0x1f7aef(0x264)){await Pn(_0x42a42b);return;}if(_0x42a42b[_0x1f7aef(0x256)]===_0x1f7aef(0x1c6)){await _n(_0x42a42b);return;}if(_0x42a42b[_0x1f7aef(0x256)]===_0x1f7aef(0x1cd)){await On(_0x42a42b);return;}if(_0x42a42b['subcommand']==='org-users'){await jn(_0x42a42b);return;}if(_0x42a42b['subcommand']==='host'){await _0xc4df0e(_0x42a42b[_0x1f7aef(0x238)],{'runnerUrl':_0x42a42b[_0x1f7aef(0x32a)],'backendUrl':_0x42a42b[_0x1f7aef(0x2a5)],'interopPath':_0x42a42b['interopPath'],'workerId':_0x42a42b[_0x1f7aef(0x22d)]});return;}if(_0x42a42b[_0x1f7aef(0x187)]){await cn();return;}await Wn(_0x42a42b);}var zn=process.env.NODE_ENV===_0x2d1cd7(0x35e)||!!process.env.JEST_WORKER_ID;zn||Yn()[_0x2d1cd7(0x19e)](_0x1afead=>{const _0x11cf92=_0x2d1cd7;console['error'](_0x1afead[_0x11cf92(0x235)]||_0x1afead[_0x11cf92(0x1a6)]||_0x1afead),process[_0x11cf92(0x258)](0x1);});export{zt as CARTOGRAPHER_SKILLS,pe as EFFORT_TIERS,tn as IMPLICIT_STDIN_IDLE_MS,Se as buildInitOptions,Yn as main,Vt as parseArgs,en as readCliVersion,J as resolvePrompt,Xt as routeStdoutToStderr,m as writeCommandResult};
2
+ const _0xa59708=_0x27e7;(function(_0x25450f,_0x329e34){const _0x4c9d76=_0x27e7,_0x3727bd=_0x25450f();while(!![]){try{const _0x1cbe3b=-parseInt(_0x4c9d76(0x178))/0x1+-parseInt(_0x4c9d76(0x20f))/0x2+-parseInt(_0x4c9d76(0x26e))/0x3*(parseInt(_0x4c9d76(0x1fa))/0x4)+parseInt(_0x4c9d76(0x21c))/0x5*(parseInt(_0x4c9d76(0x1f2))/0x6)+parseInt(_0x4c9d76(0x140))/0x7+-parseInt(_0x4c9d76(0x247))/0x8*(parseInt(_0x4c9d76(0x27f))/0x9)+-parseInt(_0x4c9d76(0x2a5))/0xa*(-parseInt(_0x4c9d76(0x295))/0xb);if(_0x1cbe3b===_0x329e34)break;else _0x3727bd['push'](_0x3727bd['shift']());}catch(_0x3c0ad9){_0x3727bd['push'](_0x3727bd['shift']());}}}(_0x406c,0xb64ee));const __dirname=import.meta.dirname;import _0x7c43eb from'fs';function _0x406c(){const _0x479db8=['--output-format','stop','accept','toString','limit','noConnections','Session\x20\x20\x20\x20\x20\x20\x20','--no-memory','--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.','endQuestions','ID\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','help','choice','share','Pass\x20either\x20--env\x20(a\x20named\x20cloud)\x20or\x20--url\x20(any\x20other\x20deployment),\x20not\x20both.','ASSIGNEE','\x20token\x20units)','delegateTo','actionable_error','complete\x20needs\x20--json-schema\x20<file>:\x20delegate-cli\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22.','delete','min','step','\x20PU\x20beyond\x20quota','\x20(current)','result','auth','subcommand','quiet','\x20of\x20a\x20$','There\x20is\x20no\x20terminal\x20input\x20to\x20answer\x20from.','replayUserMessages','Organization\x20\x20','Structured\x20output\x20failed:\x20','bind','Your\x20answer\x20(Enter\x20to\x20skip):\x20',')\x20—\x20saved\x20to\x20','headless','some','complete','Owner\x20\x20\x20\x20\x20\x20\x20\x20\x20','filter','accessToken','updatedAt','stringify','description','unknown\x20slug','--backend','delegate-cli','alreadyCompleted','workerId','check','\x0aAvailable\x20models\x20(','stream-json','\x20PU\x20used','a\x20turn\x20id','[saved\x20login]\x20Backend\x20URL:\x20','initialize','restore','Usage:\x20delegate-cli\x20','rmSync','existsSync','aborted','test','\x20in\x20progress\x20on\x20session\x20','content','token_units','\x20is\x20not\x20valid\x20JSON\x20(','cancelled','.\x20Use:\x20','Invalid\x20--output-format:\x20','SIGINT','alreadyAccepted','Invalid\x20--env:\x20','--to\x20and\x20--summary\x20apply\x20to\x20`delegate-cli\x20delegations\x20create`\x20only.',':\x20cannot\x20read\x20the\x20JSON\x20schema\x20(','session_start','structured','--to','Delegated\x20','sessionId','results','userinput','index','\x20(Enter\x20to\x20skip):\x20','No\x20CLI\x20login\x20found.\x20Run\x20`delegate-cli\x20login\x20--env\x20<alpha|staging|production>`\x20first.','--cartographer','structuredError','--task-automation\x20applies\x20to\x20prompts\x20only.','\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).','\x20in\x20steps\x20of\x20','stdin','thinking','turn_start','Numbers,\x20separated\x20by\x20commas\x20(Enter\x20to\x20skip):\x20','\x20\x20(input\x20#','end','verify','Delegation\x20\x20\x20\x20','vertical','expiresAt','Title\x20\x20\x20\x20\x20\x20\x20\x20\x20','input','an\x20effort\x20tier','isArray','--verbose','\x20PU','stack','\x20-\x20',',\x20got\x20','Session:\x20\x20\x20\x20\x20\x20','--session\x20applies\x20to\x20the\x20`delegate-cli\x20usage`\x20summary\x20only.','--include-subagents','No\x20delegations.\x0a','jsonSchemaPath','Your\x20answer,\x20as\x20text\x20(the\x20CLI\x20attaches\x20no\x20files;\x20Enter\x20to\x20skip):\x20','delegations\x20show\x20<delegation-id|delegate://delegation/…>','assignedUser','\x0aStopping…\x20(Ctrl+C\x20again\x20to\x20force\x20exit)\x0a','Organization:\x20','an\x20input\x20line\x20has\x20an\x20empty\x20message','off','AUTH_TOKEN_FILE\x20\x27','Task\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','daily_usage','workingDirectory','\x20(optional)','--preload-skill','.aria','daily','a\x20format\x20(','No\x20structured\x20output:\x20the\x20turn\x20failed\x20(','show','--session','concat','detail','pendingResults','toFixed','Token:\x20\x20\x20\x20\x20\x20\x20\x20expires\x20','--json-schema','done','--remote\x20and\x20--map-name\x20apply\x20to\x20`delegate-cli\x20maps\x20share`\x20only.','UIPATH_BASE_URL\x20is\x20unusable.\x20','Invalid\x20--input-format:\x20','stderr','1134427SaCEQQ','prompt','page','\x20not\x20found.','deleted','the\x20request','intro','unknown','email','cancel','tool','backendUrl','cartographer','object','verdict','--cleanup','\x20—\x20sign\x20out\x20in\x20the\x20Delegate\x20app\x20to\x20clear\x20that.','--attach:\x20no\x20such\x20file\x20or\x20folder:\x20','\x20(in\x20','limit_enabled','entries','user','refused','lastType','--tenant','\x20days:\x20',']\x20Backend\x20URL:\x20','whoami','toolName','\x20delegation\x20','localhost','Usage:\x20delegate-cli\x20export\x20TYPE\x20[DOCUMENT_ID]\x20--project\x20ID\x20[--working-dir\x20PATH]','rerank','delegationId','--limit','trim','--input-format\x20stream-json\x20needs\x20--output-format\x20stream-json:\x20the\x20steering\x20messages\x20are\x20answered\x20on\x20stdout.','replace','parse','\x20days.\x0a','fields','findIndex','attachments','claim','--attach','add','\x20\x20(sub-agent\x20of\x20','\x20or\x20your\x20own\x20answer','total_completion_tokens','Unknown\x20flag:\x20','sourceTitle','Turn:\x20','write','delegation','\x20(estimated\x20$','total_prompt_tokens','1201863WmNoWh','probability\x20','--task-automation','Enter\x20one\x20number\x20from\x201\x20to\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.','Rubric\x20','setPrompt','Session:\x20','hide','mapName','cleanup','Number','export:\x20','\x20<title>','maps\x20','noSecurity','evaluate','total_tokens','options','.\x20Use\x20','Unknown\x20sessions\x20action:\x20','models','isTTY','Deployment:\x20\x20\x20','\x20not\x20found,\x20has\x20no\x20messages','interopPath','The\x20turn\x20was\x20cancelled.','shift','question','monthly_limit_usd','\x20\x20\x20\x20BYO\x20warning:\x20','padStart','keys','startsWith','organizationId','\x20completion','tool_call','activity','env','low','runnerUrl','buckets','Invalid\x20--effort:\x20','displayName','a\x20skill\x20name','Something\x20else','error','Invalid\x20--project:\x20\x22','\x20applies\x20to\x20prompts\x20and\x20to\x20these\x20commands\x20only:\x20','/exit','tenantName','date','No\x20models\x20available\x20for\x20this\x20product/tenant.\x0a','package.json','message','org-users','Last\x20','save-version','--days\x20applies\x20to\x20`delegate-cli\x20usage\x20activity|daily`\x20only.','\x20into\x20','a\x20vertical\x20id','type','--input-format\x20stream-json\x20reads\x20the\x20prompt\x20from\x20stdin:\x20pass\x20no\x20prompt\x20argument.','Tenant:\x20','--input-format\x20and\x20--replay-user-messages\x20apply\x20to\x20prompts\x20only.','\x0aUse\x20with:\x20delegate-cli\x20--model\x20<id>\x20\x22<prompt>\x22\x0a','create','--summary','UPDATED','log','environment\x20variables\x20(AUTH_TOKEN/TENANT_ID/ORG_ID)','period_days','byoWarning','turnId','No\x20turn\x20','\x20(cancel\x20with:\x20delegate-cli\x20sessions\x20cancel\x20','\x20(resume\x20with\x20--session\x20','period_end','\x20<id>','projectId','medium','title','waitForIdle','kind','findLast','task','\x0a⚠️\x20\x20Auth\x20expired.\x20Opening\x20browser\x20to\x20re-login…\x0a','userId','slice','forEach','tenantId','all','completion_tokens','utf-8','Already\x20accepted','an\x20input\x20line\x20has\x20no\x20message.content,\x20a\x20string\x20or\x20a\x20list\x20of\x20text\x20blocks','Model\x20','delegations\x20delete\x20<delegation-id>','--vertical','\x20|\x20','oneTurn','Usage:\x20delegate-cli\x20maps\x20share\x20--project\x20ID\x20--remote\x20URL|PATH\x20--map-name\x20NAME\x20[--working-dir\x20PATH]','label','resolve','outputFormat','production','a\x20file\x20path','keepAlive','pending','multiSelect','\x20must\x20be\x20a\x20JSON\x20object.','abort','\x20token\x20units','🔧\x20',',\x20not\x20\x22user\x22','from\x20','transcribe\x20needs\x20audio:\x20delegate-cli\x20transcribe\x20<file>,\x20or\x20-\x20to\x20read\x20stdin.','\x0aAccept\x20one\x20with:\x20delegate-cli\x20delegations\x20accept\x20<id>\x0a','Use:\x20delegate-cli\x20delegations\x20','\x20to\x20','then','signal','6dJqsJo','):\x20',').\x0a','answers','total_sessions','A\x20steering\x20message\x20arrived\x20after\x20the\x20turn\x20ended:\x20not\x20read.\x0a','login','cwd','4oPrggN','models_breakdown','a\x20session\x20id','--skills-path','No\x20CLI\x20login\x20to\x20switch:\x20the\x20CLI\x20is\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20','high','a\x20file://\x20URL\x20or\x20an\x20absolute\x20path','session_consumed_pu','rejection','noComputerUse','\x0a🤔\x20','stdout','readFileSync','days','--url','print','total_token_units','xhigh','--keep-alive','tenant','Auth\x20comes\x20from\x20AUTH_TOKEN/TENANT_ID/ORG_ID\x20—\x20set\x20TENANT_ID\x20and\x20TENANT_SLUG\x20to\x20change\x20the\x20tenant.','741694ABgylg','usage','From\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x20\x22<prompt>\x22\x0aAnswer\x20with:\x20delegate-cli\x20delegations\x20complete\x20','A\x20steering\x20message\x20was\x20not\x20sent:\x20','delegations\x20cancel\x20<delegation-id>','--runner-url','\x20(type\x20your\x20own)','\x22.\x0a','\x20(confidence\x20','fork','\x20active\x20days','length','1617905zYOSLB','\x20sessions\x20on\x20','messages','\x20\x22<prompt>\x22\x0a','\x20needs\x20a\x20JSON\x20request:\x20delegate-cli\x20','\x20is\x20required.\x0a','numeric','isDesktopFallback','Usage:\x20delegate-cli\x20sessions\x20cancel\x20<session-id>\x20--turn\x20<turn-id>','delegations\x20list\x20<backend-project-id>','--map-name','maps','readLine','Base\x20URL:\x20\x20\x20\x20\x20','catch','rubric_version','--skip-env-check\x20applies\x20to\x20`delegate-cli\x20login`\x20only.','pause','>.\x0a','\x27\x20cannot\x20be\x20read:\x20','unit','addEventListener','a\x20project\x20id','\x20\x20TASK\x0a','Source:\x20\x20\x20\x20\x20\x20\x20','max','name','auth.json','sendMessage','delegations','round','\x20of\x20session\x20','Licensing:\x20\x20\x20\x20','\x20(stdin\x20was\x20empty)','from\x201\x20to\x20','string','padEnd','--print','--help','logout','line','--replay-user-messages','join','5135512LUuKFW','):\x0a\x0a','\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\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\x20export\x20TYPE\x20[DOCUMENT_ID]\x20--project\x20ID\x20[--working-dir\x20PATH]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Export\x20a\x20project\x27s\x20living\x20document\x20(TYPE:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20pdd,\x20sdd,\x20...)\x20to\x20.docx,\x20as\x20an\x20agent\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\x20/livingdoc/export\x20does,\x20from\x20the\x20local\x20disk:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20no\x20login\x20or\x20interop.\x20--project\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\x20--working-dir\x20name\x20the\x20project\x20as\x20the\x20run\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20that\x20wrote\x20it\x20did.\x20DOCUMENT_ID\x20(the\x20draft\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20path)\x20picks\x20one\x20of\x20several\x20documents\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\x20TYPE.\x20Prints\x20the\x20.docx\x20path;\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\x20there\x20is\x20no\x20such\x20document\x20or\x20export\x20fails\x0a\x20\x20delegate-cli\x20maps\x20share\x20--project\x20ID\x20--remote\x20URL|PATH\x20--map-name\x20NAME\x20[--working-dir\x20PATH]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Share\x20a\x20project\x27s\x20Map\x20of\x20Work,\x20as\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\x20desktop\x20app\x27s\x20Share\x20does\x20with\x20New\x20map\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\x20work:\x20its\x20history,\x20change\x20requests\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\x20versions\x20go\x20to\x20a\x20bare\x20git\x20repository\x20on\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20this\x20computer\x20or\x20a\x20shared\x20drive\x20(a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20file://\x20URL\x20or\x20an\x20absolute\x20path),\x20under\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\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,\x20and\x20publish\x20there\x20from\x20then\x20on.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Join\x20it\x20in\x20the\x20app\x20with\x20Existing\x20map\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\x20work.\x20GitHub\x20is\x20not\x20available\x20here\x20yet.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20No\x20login\x20or\x20interop;\x20exits\x201\x20when\x20refused\x0a\x20\x20delegate-cli\x20maps\x20save-version\x20MESSAGE\x20--project\x20ID\x20[--working-dir\x20PATH]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Save\x20version,\x20as\x20in\x20the\x20desktop\x20app:\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\x20map\x27s\x20next\x200.x\x20version\x20(0.1.0\x20first),\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20named\x20MESSAGE.\x20Exits\x201\x20when\x20refused,\x20as\x20on\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20a\x20settled\x20map,\x20which\x20gets\x20versions\x20from\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20applied\x20change\x20requests\x20only\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--remote\x20URL|PATH\x20(maps\x20share)\x20The\x20bare\x20git\x20repository\x20to\x20share\x20to:\x20a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20file://\x20URL\x20or\x20an\x20absolute\x20path,\x20on\x20this\x20computer\x20or\x20a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20shared\x20drive.\x20Create\x20it\x20first\x20(git\x20init\x20--bare)\x0a\x20\x20--map-name\x20NAME\x20\x20\x20(maps\x20share)\x20The\x20Map\x27s\x20name\x20in\x20that\x20repository,\x20beside\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20other\x20projects\x27\x20Maps:\x20up\x20to\x2064\x20letters,\x20digits,\x20\x22.\x22,\x20\x22_\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20or\x20\x22-\x22,\x20starting\x20with\x20a\x20letter\x20or\x20digit\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','\x20(resets\x20','[env=','includes','widget',',\x20whose\x20tenant\x20is\x20chosen\x20in\x20the\x20app.\x20Run\x20`delegate-cli\x20login\x20--env\x20<env>`\x20for\x20a\x20CLI\x20login\x20of\x20your\x20own.','effort','typed','No\x20answers\x20awaiting\x20acceptance.\x0a','--no-connections','The\x20steering\x20message\x20was\x20not\x20answered:\x20its\x20turn\x20did\x20not\x20run\x20or\x20added\x20no\x20reply.','self-hosted\x20(Automation\x20Suite\x20/\x20Dedicated)','--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`delegate-cli\x20sessions`\x20only.','The\x20saved\x20CLI\x20login\x20could\x20not\x20be\x20refreshed.\x20Run\x20`delegate-cli\x20login`\x20again.','bundledSkillsPath','sessions','--effort','--version','You>\x20','probability','choice\x20','file','a\x20JSON\x20schema\x20file','skipEnvCheck','Usage:\x20delegate-cli\x20sessions\x20','delegations\x20create\x20--session\x20<id>\x20[--to\x20<email|name>]\x20[--summary\x20<text>]\x20\x22<task>\x22|-','parentSessionId','optional','model','--days','--interop','contextSummary','--quiet','Unknown\x20usage\x20view:\x20','default','subFields','model_version','3819219TbZKhm','STATUS','Could\x20not\x20check\x20BYO\x20model\x20warnings:\x20','a\x20directory\x20path','origin','--no-computer-use','floor','deepLink','items','No\x20CLI\x20login\x20found\x20—\x20nothing\x20to\x20remove.','getSessionMessages','noMemory','\x20vertical,\x20so\x20it\x20cannot\x20run\x20as\x20--vertical\x20','confidence','a\x20deployment\x20URL,\x20e.g.\x20https://automationsuite.contoso.com','list','Tenants\x20of\x20','18VFdpxF','map','score\x20','Token:\x20\x20\x20\x20\x20\x20\x20\x20expired\x20','Cancel\x20requested\x20for\x20turn\x20','\x20--turn\x20','includeSubAgents','next','--remote','--output-format\x20','dismissed','resume','--input-format','status','complete\x20needs\x20a\x20prompt:\x20delegate-cli\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22,\x20or\x20-\x20to\x20read\x20stdin.','First\x20login\x20requires\x20--env\x20or\x20--url.\x20Usage:\x20delegate-cli\x20login\x20--env\x20<alpha|staging|production>,\x20or\x20delegate-cli\x20login\x20--url\x20https://automationsuite.contoso.com','taskAutomation','Work\x20on\x20it\x20with:\x20delegate-cli\x20--session\x20','verbose','paths',']\x20(Enter\x20for\x20','staging','48298283jNeFvD','assignedUserEmail','split','lockReason','close','inputFormat','--turn','\x20from\x20','Missing\x20prompt.\x20Pass\x20it\x20as\x20an\x20argument,\x20pipe\x20it\x20via\x20stdin,\x20or\x20run\x20`delegate-cli\x20--help`.','data','spawn','--env',':\x20cannot\x20read\x20the\x20request\x20(','--authority','text','remote','10TizOTK','isError','Unknown\x20delegations\x20action:\x20','More:\x20delegate-cli\x20sessions\x20--page\x20','transcribe','No\x20sessions\x20on\x20page\x20','exitCode','Renamed\x20','questions','code','extra_pool_consumed_pu','url','rename','argv','an\x20input\x20line\x20has\x20type\x20','delegations\x20accept\x20<delegation-id>','\x20\x20\x20\x20','--model','\x20requires\x20','erase','Tenant\x20not\x20switched:\x20could\x20not\x20write\x20','baseUrl','pct_used','\x20as\x20\x22',':\x20bucket\x20number\x20(Enter\x20to\x20leave\x20out):\x20','from','deployment','preloadSkills','\x20of\x20the\x20Map\x20of\x20Work\x20of\x20','exit','host','\x20\x20TITLE\x0a','Session\x20','\x20(no\x20cap\x20enforced)','version','push','steer','Enter\x20numbers\x20from\x201\x20to\x20','operands','.\x20Use\x20alpha\x20|\x20staging\x20|\x20production\x20|\x20localhost.','getTurnUsageHistory','--tenant\x20requires\x20a\x20tenant\x20name.','--replay-user-messages\x20needs\x20--input-format\x20stream-json.','getSessionId','prompt_tokens','Usage:\x20delegate-cli\x20sessions\x20fork\x20<id>\x20[<message-id>]','\x20<file.json>,\x20or\x20-\x20to\x20read\x20stdin.','),\x20','race','now','--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`delegate-cli\x20sessions\x20[list]`\x20only.','--turn\x20applies\x20to\x20`delegate-cli\x20sessions\x20cancel`\x20only.','\x20must\x20be\x20a\x20whole\x20number\x20','Input\x20closed\x20before\x20the\x20question\x20was\x20answered.','header','export'];_0x406c=function(){return _0x479db8;};return _0x406c();}import _0x54d64c from'path';import{clearLine as _0x2c85d7,createInterface as _0xe93aca,cursorTo as _0x3d882d}from'node:readline';import{isOnStepGrid as _0x553b83}from'@uipath/delegate-sdk';var C=_0xa59708(0x32f);function E(_0x1d9eae){const _0x38e81a=_0xa59708;return _0x1d9eae[_0x38e81a(0x165)](/\u001b\[[0-?]*[ -/]*[@-~]|\u001b\][^\u0007\u001b]*(\u0007|\u001b\\)?|\u001b./g,'')[_0x38e81a(0x165)](/[\u0000-\u0008\u000b-\u001f\u007f-\u009f]/g,'');}function ee(_0x2eaf70){const _0x4cb881=_0xa59708;return E(_0x2eaf70[_0x4cb881(0x1de)]??(_0x2eaf70[_0x4cb881(0x1cb)]===C?_0x4cb881(0x1a5):_0x2eaf70['id']));}function je(_0x39b55d,_0x183878,_0x4da98f){const _0xc54afb=_0xa59708;let _0x299894=[''+(_0x4da98f>0x1?'['+_0x183878+'/'+_0x4da98f+']\x20':'')+E(_0x39b55d[_0xc54afb(0x2db)])+(_0x39b55d['optional']?_0xc54afb(0x12d):''),E(_0x39b55d[_0xc54afb(0x194)])];return _0x39b55d['type']==='text'&&_0x39b55d['options']['forEach']((_0x145ec6,_0x56f93b)=>{const _0x2b3b83=_0xc54afb;let _0x35514e=_0x145ec6[_0x2b3b83(0x1cb)]===C?_0x2b3b83(0x216):'',_0x4d5b3d=_0x145ec6['description']?_0x2b3b83(0x349)+E(_0x145ec6[_0x2b3b83(0x30a)]):'';_0x299894[_0x2b3b83(0x2c8)]('\x20\x20'+(_0x56f93b+0x1)+'.\x20'+ee(_0x145ec6)+_0x35514e+_0x4d5b3d);}),_0x299894[_0xc54afb(0x246)]('\x0a');}function te(_0x3a2b42,_0x1d40ad){const _0xc566eb=_0xa59708;let _0x52a44c=_0x3a2b42[_0xc566eb(0x297)](/[\s,]+/)[_0xc566eb(0x306)](Boolean);if(_0x52a44c[_0xc566eb(0x21b)]===0x0)return null;let _0x4d81d2=_0x52a44c[_0xc566eb(0x280)](_0x1e04ef=>/^\d+$/[_0xc566eb(0x31c)](_0x1e04ef)?Number(_0x1e04ef):NaN);return _0x4d81d2[_0xc566eb(0x303)](_0x356bbe=>!Number['isInteger'](_0x356bbe)||_0x356bbe<0x1||_0x356bbe>_0x1d40ad)?null:[...new Set(_0x4d81d2)][_0xc566eb(0x280)](_0x454494=>_0x454494-0x1);}function Me(_0xee43a1){const _0x5a54d7=_0xa59708;return typeof _0xee43a1==_0x5a54d7(0x14d)&&_0xee43a1!==null&&_0x5a54d7(0x156)in _0xee43a1;}async function j(_0x4345fe,_0x49ee48,_0x2d4d1e,_0x1e0907){const _0x7d5e14=_0xa59708;for(;;){let _0x296ae2=(await _0x4345fe(_0x49ee48))[_0x7d5e14(0x163)]();if(_0x296ae2==='')return;let _0x6bb569=_0x1e0907(_0x296ae2);if(!Me(_0x6bb569))return _0x6bb569;_0x2d4d1e(_0x6bb569[_0x7d5e14(0x156)]+'\x0a');}}async function Fe(_0x5d7a1f,_0x200b95,_0xf72a87){const _0x22417a=_0xa59708;if(_0x5d7a1f['options']['length']===0x0||_0x5d7a1f['options']['every'](_0x591890=>_0x591890[_0x22417a(0x1cb)]===C)){let _0x285ed6=(await _0x200b95(_0x22417a(0x300)))[_0x22417a(0x163)]();return _0x285ed6===''?void 0x0:{'text':_0x285ed6};}let _0x5494e6=_0x5d7a1f[_0x22417a(0x18a)][_0x22417a(0x169)](_0x16e8a5=>_0x16e8a5[_0x22417a(0x1cb)]===C),_0x2aeb55=_0x5d7a1f[_0x22417a(0x1e5)]?_0x22417a(0x33b):_0x22417a(0x183)+(_0x5494e6>=0x0?_0x22417a(0x16f):'')+_0x22417a(0x331),_0x347e37=await j(_0x200b95,_0x2aeb55,_0xf72a87,_0x3b1900=>{const _0x2e4ea5=_0x22417a;let _0xc474ae=te(_0x3b1900,_0x5d7a1f[_0x2e4ea5(0x18a)][_0x2e4ea5(0x21b)]);return _0xc474ae&&(_0x5d7a1f['multiSelect']||_0xc474ae[_0x2e4ea5(0x21b)]===0x1)?_0xc474ae:!_0x5d7a1f['multiSelect']&&_0x5494e6>=0x0?{'typed':_0x3b1900}:{'refused':_0x5d7a1f['multiSelect']?_0x2e4ea5(0x2ca)+_0x5d7a1f[_0x2e4ea5(0x18a)][_0x2e4ea5(0x21b)]+'.':_0x2e4ea5(0x17b)+_0x5d7a1f[_0x2e4ea5(0x18a)][_0x2e4ea5(0x21b)]+'.'};});if(_0x347e37===void 0x0)return;if(!Array[_0x22417a(0x345)](_0x347e37))return{'text':_0x347e37[_0x22417a(0x250)]};let _0x5c0dbb=_0x347e37[_0x22417a(0x280)](_0x319a6e=>_0x5d7a1f['options'][_0x319a6e]['id']),_0x4c6f42=_0x5c0dbb[_0x22417a(0x24c)](C)?await j(_0x200b95,ee(_0x5d7a1f['options'][_0x5494e6])+':\x20',_0xf72a87,_0x2649af=>_0x2649af):void 0x0;if(!(_0x5c0dbb['includes'](C)&&_0x4c6f42===void 0x0))return _0x5d7a1f[_0x22417a(0x1e5)]?{'optionIds':_0x5c0dbb,..._0x4c6f42!==void 0x0?{'text':_0x4c6f42}:{}}:_0x4c6f42!==void 0x0?{'text':_0x4c6f42}:{'optionId':_0x5c0dbb[0x0]};}async function Be(_0x1d93fa,_0x2b1324,_0xf5c2a8){const _0x2cfee4=_0xa59708;let _0x637d33={};for(let _0x1a3f9c of _0x1d93fa[_0x2cfee4(0x168)]){let _0x8de42f=_0x1a3f9c[_0x2cfee4(0x26b)]??_0x1a3f9c[_0x2cfee4(0x2f2)],_0x1e985c=_0x1a3f9c[_0x2cfee4(0x2f3)]??0x1,_0x582c11=_0x1a3f9c[_0x2cfee4(0x230)]?'\x20'+E(_0x1a3f9c[_0x2cfee4(0x230)]):'',_0x936430=_0x2cfee4(0x1eb)+_0x1a3f9c[_0x2cfee4(0x2f2)]+_0x2cfee4(0x1ef)+_0x1a3f9c[_0x2cfee4(0x235)]+(_0x1e985c!==0x1?_0x2cfee4(0x337)+_0x1e985c:''),_0x28f254=await j(_0x2b1324,E(_0x1a3f9c[_0x2cfee4(0x1de)])+'\x20['+_0x1a3f9c[_0x2cfee4(0x2f2)]+'-'+_0x1a3f9c[_0x2cfee4(0x235)]+_0x582c11+_0x2cfee4(0x293)+_0x8de42f+_0x2cfee4(0x1f3),_0xf5c2a8,_0x33eb7c=>{const _0x5431b6=_0x2cfee4;let _0x557178=Number(_0x33eb7c);return Number['isFinite'](_0x557178)&&_0x557178>=_0x1a3f9c[_0x5431b6(0x2f2)]&&_0x557178<=_0x1a3f9c['max']&&_0x553b83(_0x557178,_0x1a3f9c['min'],_0x1e985c)?_0x557178:{'refused':'Enter\x20a\x20number\x20'+_0x936430+'.'};});_0x637d33[_0x1a3f9c['id']]=_0x28f254??_0x8de42f;}return{'values':_0x637d33};}async function He(_0x2c2c80,_0x23e117,_0x4be503){const _0x38a96d=_0xa59708;_0x4be503(_0x2c2c80[_0x38a96d(0x1a1)][_0x38a96d(0x280)]((_0x316fea,_0x444151)=>'\x20\x20'+(_0x444151+0x1)+'.\x20'+E(_0x316fea[_0x38a96d(0x1de)]))[_0x38a96d(0x246)]('\x0a')+'\x0a');let _0x22e83c={};for(let _0x322ce5 of _0x2c2c80[_0x38a96d(0x276)]){let _0x547584=await j(_0x23e117,E(_0x322ce5['label'])+_0x38a96d(0x2bd),_0x4be503,_0x2c3727=>{const _0x3283c9=_0x38a96d;let _0x55869d=te(_0x2c3727,_0x2c2c80[_0x3283c9(0x1a1)][_0x3283c9(0x21b)]);return _0x55869d&&_0x55869d['length']===0x1?_0x55869d[0x0]:{'refused':_0x3283c9(0x17b)+_0x2c2c80[_0x3283c9(0x1a1)][_0x3283c9(0x21b)]+'.'};});if(_0x547584===void 0x0)continue;let _0x10c890=_0x2c2c80[_0x38a96d(0x1a1)][_0x547584],_0x4ecf1d={};for(let _0x303fe5 of _0x10c890[_0x38a96d(0x26c)]??[]){let _0x443ca0='\x20\x20'+E(_0x303fe5[_0x38a96d(0x1de)])+(_0x303fe5['optional']?_0x38a96d(0x12d):'')+':\x20',_0x59b331=await j(_0x23e117,_0x443ca0,_0x4be503,_0x5e911f=>_0x5e911f);for(;_0x59b331===void 0x0&&!_0x303fe5[_0x38a96d(0x264)];)_0x4be503(E(_0x303fe5[_0x38a96d(0x1de)])+_0x38a96d(0x221)),_0x59b331=await j(_0x23e117,_0x443ca0,_0x4be503,_0x35f1c2=>_0x35f1c2);_0x59b331!==void 0x0&&(_0x4ecf1d[_0x303fe5['id']]=_0x59b331);}_0x22e83c[_0x322ce5['id']]={'bucket':_0x10c890['id'],...Object[_0x38a96d(0x198)](_0x4ecf1d)[_0x38a96d(0x21b)]>0x0?{'subFields':_0x4ecf1d}:{}};}return Object[_0x38a96d(0x198)](_0x22e83c)[_0x38a96d(0x21b)]>0x0?{'assignments':_0x22e83c}:void 0x0;}async function Je(_0xcef333,_0x338edd,_0x4d508d){const _0x2f1a1f=_0xa59708;if(_0xcef333['type']==='text')return Fe(_0xcef333,_0x338edd,_0x4d508d);if(_0xcef333[_0x2f1a1f(0x1b5)]===_0x2f1a1f(0x222))return Be(_0xcef333,_0x338edd,_0x4d508d);if(_0xcef333[_0x2f1a1f(0x1b5)]==='bucket')return He(_0xcef333,_0x338edd,_0x4d508d);let _0x163fe4=(await _0x338edd(_0x2f1a1f(0x122)))[_0x2f1a1f(0x163)]();return _0x163fe4===''?void 0x0:{'text':_0x163fe4};}function ne(_0x3ad722,_0x1b5780){return async _0xf7037e=>{const _0x29efa2=_0x27e7;let _0x4f9f25=_0x3ad722();if(!_0x4f9f25)throw new Error(_0x29efa2(0x2fb));let _0x1b8ee9=async _0x26f645=>{const _0x2c5b20=_0x29efa2;if(_0xf7037e[_0x2c5b20(0x1f1)][_0x2c5b20(0x31b)])throw new Error(_0x2c5b20(0x192));let _0x431b1c=await _0x4f9f25[_0x2c5b20(0x228)](_0x26f645,_0xf7037e[_0x2c5b20(0x1f1)]);if(_0x431b1c===null)throw new Error(_0x2c5b20(0x2da));return _0x431b1c;};try{_0x1b5780('\x0a'+(_0xf7037e[_0x29efa2(0x146)]?E(_0xf7037e['intro'])+'\x0a':''));let _0x56d93c={};for(let [_0x59e391,_0x5e8814]of _0xf7037e[_0x29efa2(0x2ad)][_0x29efa2(0x154)]()){_0x1b5780('\x0a'+je(_0x5e8814,_0x59e391+0x1,_0xf7037e[_0x29efa2(0x2ad)]['length'])+'\x0a');let _0x3ae67b=await Je(_0x5e8814,_0x1b8ee9,_0x1b5780);_0x3ae67b!==void 0x0&&(_0x56d93c[_0x5e8814['id']]=_0x3ae67b);}return{'answers':_0x56d93c};}finally{_0x4f9f25[_0x29efa2(0x2e6)]();}};}import{createInterface as _0x133347}from'node:readline';var F=[_0xa59708(0x2a3),_0xa59708(0x312)];function se(_0x4c39e0){return F['includes'](_0x4c39e0);}var P=class extends Error{};function We(_0x29a2e6){const _0x2222d2=_0xa59708;if(typeof _0x29a2e6==_0x2222d2(0x23f))return _0x29a2e6;if(!Array[_0x2222d2(0x345)](_0x29a2e6))return;let _0x1e04f2=[];for(let _0x229fd6 of _0x29a2e6){if(typeof _0x229fd6!=_0x2222d2(0x14d)||_0x229fd6===null)return;let {type:_0xacaede,text:_0x3dc6af}=_0x229fd6;if(_0xacaede!==_0x2222d2(0x2a3)||typeof _0x3dc6af!=_0x2222d2(0x23f))return;_0x1e04f2[_0x2222d2(0x2c8)](_0x3dc6af);}return _0x1e04f2[_0x2222d2(0x246)]('\x0a');}function Ke(_0x359615){const _0x1b9de4=_0xa59708;if(_0x359615[_0x1b9de4(0x163)]()==='')return null;let _0x434fa8;try{_0x434fa8=JSON[_0x1b9de4(0x166)](_0x359615);}catch{throw new P('an\x20input\x20line\x20is\x20not\x20JSON');}if(typeof _0x434fa8!=_0x1b9de4(0x14d)||_0x434fa8===null)throw new P('an\x20input\x20line\x20is\x20not\x20a\x20JSON\x20object');let {type:_0x362c2e,message:_0x370ae4,uuid:_0x3ee746}=_0x434fa8;if(_0x362c2e!==_0x1b9de4(0x155))throw new P(_0x1b9de4(0x2b3)+JSON[_0x1b9de4(0x309)](_0x362c2e)+_0x1b9de4(0x1ea));let _0x4d7f0f=We(_0x370ae4?.[_0x1b9de4(0x31e)]);if(_0x4d7f0f===void 0x0)throw new P(_0x1b9de4(0x1d7));if(_0x4d7f0f[_0x1b9de4(0x163)]()==='')throw new P(_0x1b9de4(0x127));return{'text':_0x4d7f0f,'uuid':typeof _0x3ee746==_0x1b9de4(0x23f)?_0x3ee746:void 0x0};}function oe(_0x280a5f,_0xb7db8e){const _0x336730=_0xa59708;return JSON[_0x336730(0x309)]({'type':_0x336730(0x155),'message':{'role':'user','content':_0x280a5f['text']},'session_id':_0xb7db8e,..._0x280a5f['uuid']===void 0x0?{}:{'uuid':_0x280a5f['uuid']},'isReplay':!0x0})+'\x0a';}async function*re(_0x30d514,_0x1951f6){const _0x592c2d=_0xa59708;let _0x4bb5f2=_0x133347({'input':_0x30d514,'crlfDelay':0x1/0x0});try{for await(let _0x10304f of _0x4bb5f2){let _0x62c095;try{_0x62c095=Ke(_0x10304f);}catch(_0x18ac6e){if(!(_0x18ac6e instanceof P))throw _0x18ac6e;_0x1951f6(_0x18ac6e);continue;}_0x62c095&&(yield _0x62c095);}}finally{_0x4bb5f2[_0x592c2d(0x299)]();}}import{BUSINESS_ANALYSIS_PRELOADED_SKILLS as _0x48cff7,DelegateAgent as _0x1c31da,cancelTurn as _0x4cecd2,InteropProcess as _0x32ef44,complete as _0x13a164,DEFAULT_MODEL as _0x19c2da,createBackendClient as _0x18182c,evaluate as _0x2aac02,isCompletionRequestError as _0x485d90,isEvaluationRequestError as _0xa86ec7,isTranscriptionError as _0x3bd34c,rerank as _0x523b81,transcribe as _0x23fda3,exportLivingDocument as _0x1b2115,saveMapVersion as _0xdb4366,shareMap as _0x2c7c9d,verify as _0x22d6cc,acceptDelegation as _0x4d4b9b,cancelDelegation as _0x107e92,claimDelegation as _0x502ac7,completeDelegation as _0x13d935,createDelegation as _0x2886e2,deleteDelegation as _0x30ab5d,dismissDelegation as _0x2bf481,getSessionDelegations as _0x36a701,isDelegationError as _0x5622be,listDelegations as _0x34bdca,listOrgUsers as _0x9e49d8,previewDelegation as _0x468635,TurnResultCollector as _0x1d7007,agentEventToJsonLine as _0x2af09d,describeBaseUrlRejection as _0x46c4f5,getActivitySummary as _0x2c9646,getAuthFilePath as _0x58f6b2,getByoWarnings as _0x127d11,getDailyBreakdown as _0xb5cf31,getLicensingSummary as _0x1c54c7,getMonthlySpending as _0x4357f9,isOutputFormat as _0x5e6219,isCloudBaseUrl as _0x10f2b1,isSafeProjectFolderSegment as _0x5a6e2d,listModels as _0x27c4f6,listSessions as _0x39a07b,getSession as _0x2ac5fa,renameSession as _0x3e2373,deleteSession as _0x4e54a1,deleteSessionTaskLog as _0x10c041,forkSession as _0x3e3060,isBackendRequestError as _0x440da1,MAX_SESSION_PAGE_SIZE as _0x2af2b0,listTenants as _0x1b8b4b,loadAndRefreshAuth as _0x516464,loadAndRefreshSdkLogin as _0x2c87f9,parsePlatformBaseUrl as _0x403d0b,resolveBackendUrl as _0x306d32,runHealthCheck as _0x49efef,runHostCommand as _0xe243ff,runLoginFlow as _0x3e0c34,runTurnForResult as _0x123282,saveAuthData as _0x505698,switchTenant as _0x730c9a,toJsonLine as _0x599331,ENV_TO_CLOUD as _0x5de306,OUTPUT_FORMATS as _0x110272,isRunStopNotice as _0x3f3d07,extractActionableErrorText as _0x38fbe1}from'@uipath/delegate-sdk';function ie(_0x4a5b82){let {input:_0xbc4c05,getAgent:_0x33ccbe,replay:_0x36feb4,onEvent:_0x1f7296,write:_0x35c6ec,warn:_0x4a39eb,isRunStopNotice:_0x36a84b,actionableErrorText:_0x19fca1}=_0x4a5b82,_0x211282=0x0,_0x4e3d90=0x0,_0x4bd5f=Promise['resolve'](),_0x5b869c=!0x1,_0x29de0f=()=>{},_0x896955=new Promise(_0x5b4e31=>{_0x29de0f=_0x5b4e31;}),_0x18ae5c=[],_0x4c19d7=_0x1f7296(_0x4ab1be=>{const _0x3307f3=_0x27e7;_0x4ab1be['type']==='turn_start'&&(_0x29de0f(),_0x18ae5c[_0x3307f3(0x193)]()?.());}),_0x3c23aa=_0x466f9f=>{const _0x15a45a=_0x27e7;_0x36feb4&&_0x35c6ec(oe(_0x466f9f,_0x33ccbe()[_0x15a45a(0x2d0)]()));},_0x1dd265=(async()=>{const _0x3da81e=_0x27e7;await _0x896955;for await(let _0x390c87 of _0xbc4c05[_0x3da81e(0x21e)]){if(_0x5b869c)return;_0x211282===0x0&&(_0x4e3d90=_0x33ccbe()[_0x3da81e(0x278)]()[_0x3da81e(0x21b)]),_0x211282++;let _0x245877=new Promise(_0x5ade3a=>{const _0x19d94c=_0x3da81e;_0x18ae5c[_0x19d94c(0x2c8)](()=>{_0x3c23aa(_0x390c87),_0x5ade3a();});}),_0x262d51=()=>{_0x211282--,_0x18ae5c['pop']();},_0x2cee35=_0x33ccbe()[_0x3da81e(0x2c9)](_0x390c87[_0x3da81e(0x2a3)]);_0x4bd5f=_0x2cee35['catch'](()=>{});try{await _0x2cee35?await Promise[_0x3da81e(0x2d5)]([_0x245877,_0x33ccbe()['waitForIdle']()]):(_0x262d51(),_0x4a39eb(_0x3da81e(0x1f7)));}catch(_0x3fe8f9){_0x262d51(),_0x4a39eb(_0x3da81e(0x213)+(_0x3fe8f9 instanceof Error?_0x3fe8f9[_0x3da81e(0x1ae)]:String(_0x3fe8f9))+'\x0a');}}})()['catch'](_0x3ff34d=>{const _0x40ffb1=_0x27e7;_0x4a39eb('Steering\x20input\x20stopped:\x20'+(_0x3ff34d instanceof Error?_0x3ff34d[_0x40ffb1(0x1ae)]:String(_0x3ff34d))+'\x0a');});return{'settle':async _0x325572=>{const _0x2aae52=_0x27e7;if(await _0x4bd5f,_0x211282===0x0)return _0x325572;await _0x33ccbe()[_0x2aae52(0x1ca)]();for(let _0x4316ab of _0x18ae5c)_0x4316ab();_0x18ae5c=[];let _0x403feb=_0x33ccbe()['getSessionMessages']()['slice'](_0x4e3d90)[_0x2aae52(0x1cc)](_0x132219=>_0x132219[_0x2aae52(0x24d)]===_0x2aae52(0x2ef)||_0x36a84b(_0x132219)||_0x132219['type']==='ai'&&_0x132219[_0x2aae52(0x24d)]!=='agent_thought'&&_0x132219[_0x2aae52(0x24d)]!=='followUpsRenderer'&&!!_0x132219[_0x2aae52(0x31e)]);if(!_0x403feb)return{..._0x325572,'failed':!0x0,'text':_0x2aae52(0x253)};let _0x3de9f3=_0x403feb['widget']==='actionable_error';return typeof _0x403feb['content']!=_0x2aae52(0x23f)?{..._0x325572,'failed':_0x3de9f3}:{..._0x325572,'failed':_0x3de9f3,'text':_0x3de9f3?_0x19fca1(_0x403feb[_0x2aae52(0x31e)]):_0x403feb[_0x2aae52(0x31e)]};},'stop':()=>{const _0x3442fc=_0x27e7;_0x5b869c=!0x0,_0x4c19d7(),_0xbc4c05[_0x3442fc(0x299)]();}};}var Yt=[_0xa59708(0x1f8),_0xa59708(0x20d),_0xa59708(0x18d),_0xa59708(0x2c3),_0xa59708(0x243),_0xa59708(0x15b),_0xa59708(0x310),_0xa59708(0x258),_0xa59708(0x210),_0xa59708(0x188),_0xa59708(0x160),_0xa59708(0x33e),_0xa59708(0x304),_0xa59708(0x2a9),_0xa59708(0x2dc),_0xa59708(0x227),_0xa59708(0x239),_0xa59708(0x1af)],ue=['',_0xa59708(0x18d),_0xa59708(0x15b),'check','sessions',_0xa59708(0x210),'evaluate',_0xa59708(0x160),'verify',_0xa59708(0x304),_0xa59708(0x2a9),_0xa59708(0x2dc),'maps',_0xa59708(0x239),_0xa59708(0x1af)],pe=[_0xa59708(0x19f),_0xa59708(0x1c8),_0xa59708(0x1ff),_0xa59708(0x20b),_0xa59708(0x235)],zt=_0x48cff7,B=_0xa59708(0x14c);function b(_0x5a3a2b,_0xaba94e,_0x7ac978,_0x5ea185){const _0x324288=_0xa59708;let _0x230468=_0x5a3a2b[_0xaba94e];return(!_0x230468||_0x230468[_0x324288(0x21b)]>0x1&&_0x230468[_0x324288(0x199)]('-'))&&(console['error'](_0x7ac978+_0x324288(0x2b7)+_0x5ea185+'.'),process[_0x324288(0x2c2)](0x2)),_0x230468;}function K(_0x14d163,_0xd01b2b,_0x389377,_0x81516d){const _0x4cb7be=_0xa59708;let _0x4c3971=b(_0x14d163,_0xd01b2b,_0x389377,'a\x20number'),_0xadfede=Number(_0x4c3971);return(!/^\d+$/[_0x4cb7be(0x31c)](_0x4c3971)||_0xadfede<0x1||!Number['isSafeInteger'](_0xadfede)||_0x81516d!==void 0x0&&_0xadfede>_0x81516d)&&(console[_0x4cb7be(0x1a6)](_0x389377+_0x4cb7be(0x2d9)+(_0x81516d===void 0x0?'1\x20or\x20more':_0x4cb7be(0x23e)+_0x81516d)+_0x4cb7be(0x34a)+_0x4c3971+'.'),process[_0x4cb7be(0x2c2)](0x2)),_0xadfede;}function Vt(_0x377b69){const _0xd86c70=_0xa59708;let _0x2cd0b3={'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':_0xd86c70(0x2a3),'inputFormat':'text','replayUserMessages':!0x1,'preloadSkills':[],'attachments':[],'skipEnvCheck':!0x1,'includeSubAgents':!0x1,'operands':[],'help':!0x1,'version':!0x1};Yt[_0xd86c70(0x24c)](_0x377b69[0x0])&&(_0x2cd0b3[_0xd86c70(0x2f8)]=_0x377b69[0x0],_0x377b69=_0x377b69['slice'](0x1));let _0x3eb0e9=[];for(let _0x4d0c11=0x0;_0x4d0c11<_0x377b69['length'];_0x4d0c11++){let _0x177df2=_0x377b69[_0x4d0c11];switch(_0x177df2){case _0xd86c70(0x241):case'-p':_0x2cd0b3[_0xd86c70(0x209)]=!0x0;break;case _0xd86c70(0x20c):_0x2cd0b3[_0xd86c70(0x1e3)]=!0x0;break;case _0xd86c70(0x14f):_0x2cd0b3[_0xd86c70(0x182)]=!0x0;break;case'--headless':_0x2cd0b3['headless']=!0x0;break;case _0xd86c70(0x273):_0x2cd0b3['noComputerUse']=!0x0;break;case _0xd86c70(0x333):_0x2cd0b3[_0xd86c70(0x14c)]=!0x0,_0x2cd0b3['noComputerUse']=!0x0,_0x2cd0b3[_0xd86c70(0x2c0)][_0xd86c70(0x2c8)](...zt);break;case _0xd86c70(0x252):_0x2cd0b3[_0xd86c70(0x2e2)]=!0x0;break;case'--no-security':_0x2cd0b3[_0xd86c70(0x187)]=!0x0;break;case _0xd86c70(0x2e4):_0x2cd0b3[_0xd86c70(0x279)]=!0x0;break;case _0xd86c70(0x17a):_0x2cd0b3[_0xd86c70(0x28f)]=!0x0;break;case _0xd86c70(0x269):case'-q':_0x2cd0b3[_0xd86c70(0x2f9)]=!0x0;break;case _0xd86c70(0x346):_0x2cd0b3[_0xd86c70(0x291)]=!0x0;break;case _0xd86c70(0x30c):_0x2cd0b3[_0xd86c70(0x14b)]=_0x377b69[++_0x4d0c11];break;case _0xd86c70(0x2b6):_0x2cd0b3['model']=_0x377b69[++_0x4d0c11];break;case _0xd86c70(0x215):_0x2cd0b3[_0xd86c70(0x1a0)]=_0x377b69[++_0x4d0c11];break;case _0xd86c70(0x267):_0x2cd0b3['interopPath']=_0x377b69[++_0x4d0c11];break;case'--worker-id':_0x2cd0b3[_0xd86c70(0x30f)]=_0x377b69[++_0x4d0c11];break;case _0xd86c70(0x12e):_0x2cd0b3['preloadSkills'][_0xd86c70(0x2c8)](b(_0x377b69,++_0x4d0c11,_0x177df2,_0xd86c70(0x1a4)));break;case'--project':{let _0x4a7187=b(_0x377b69,++_0x4d0c11,_0x177df2,_0xd86c70(0x232));_0x5a6e2d(_0x4a7187)||(console[_0xd86c70(0x1a6)](_0xd86c70(0x1a7)+_0x4a7187+_0xd86c70(0x336)),process['exit'](0x2)),_0x2cd0b3[_0xd86c70(0x1c7)]=_0x4a7187;break;}case _0xd86c70(0x1da):_0x2cd0b3[_0xd86c70(0x340)]=b(_0x377b69,++_0x4d0c11,_0x177df2,_0xd86c70(0x1b4));break;case _0xd86c70(0x2dd):{let _0x399a9f=b(_0x377b69,++_0x4d0c11,_0x177df2,_0xd86c70(0x131)+_0x110272[_0xd86c70(0x246)]('\x20|\x20')+')');_0x5e6219(_0x399a9f)||(console[_0xd86c70(0x1a6)](_0xd86c70(0x323)+_0x399a9f+_0xd86c70(0x18b)+_0x110272['join'](_0xd86c70(0x1db))+'.'),process[_0xd86c70(0x2c2)](0x2)),_0x2cd0b3['outputFormat']=_0x399a9f;break;}case _0xd86c70(0x28b):{let _0x314c14=b(_0x377b69,++_0x4d0c11,_0x177df2,_0xd86c70(0x131)+F[_0xd86c70(0x246)](_0xd86c70(0x1db))+')');se(_0x314c14)||(console[_0xd86c70(0x1a6)](_0xd86c70(0x13e)+_0x314c14+'.\x20Use\x20'+F[_0xd86c70(0x246)]('\x20|\x20')+'.'),process['exit'](0x2)),_0x2cd0b3[_0xd86c70(0x29a)]=_0x314c14;break;}case _0xd86c70(0x245):_0x2cd0b3[_0xd86c70(0x2fc)]=!0x0;break;case _0xd86c70(0x134):_0x2cd0b3[_0xd86c70(0x32d)]=b(_0x377b69,++_0x4d0c11,_0x177df2,_0xd86c70(0x1fc));break;case'--page':_0x2cd0b3['page']=K(_0x377b69,++_0x4d0c11,_0x177df2);break;case _0xd86c70(0x162):_0x2cd0b3[_0xd86c70(0x2e1)]=K(_0x377b69,++_0x4d0c11,_0x177df2,_0x2af2b0);break;case _0xd86c70(0x34d):_0x2cd0b3[_0xd86c70(0x285)]=!0x0;break;case _0xd86c70(0x13a):_0x2cd0b3[_0xd86c70(0x121)]=b(_0x377b69,++_0x4d0c11,_0x177df2,_0xd86c70(0x25f));break;case _0xd86c70(0x16c):{let _0x10fd0d=_0x54d64c['resolve'](process[_0xd86c70(0x1f9)](),b(_0x377b69,++_0x4d0c11,_0x177df2,_0xd86c70(0x1e2)));_0x7c43eb[_0xd86c70(0x31a)](_0x10fd0d)||(console[_0xd86c70(0x1a6)](_0xd86c70(0x151)+_0x10fd0d),process[_0xd86c70(0x2c2)](0x2)),_0x2cd0b3['attachments']['push'](_0x10fd0d);break;}case _0xd86c70(0x29b):_0x2cd0b3['turnId']=b(_0x377b69,++_0x4d0c11,_0x177df2,_0xd86c70(0x314));break;case _0xd86c70(0x32b):_0x2cd0b3[_0xd86c70(0x2ee)]=b(_0x377b69,++_0x4d0c11,_0x177df2,'an\x20email\x20address\x20or\x20name');break;case _0xd86c70(0x1bb):_0x2cd0b3[_0xd86c70(0x268)]=b(_0x377b69,++_0x4d0c11,_0x177df2,'a\x20briefing\x20text');break;case _0xd86c70(0x287):_0x2cd0b3[_0xd86c70(0x2a4)]=b(_0x377b69,++_0x4d0c11,_0x177df2,_0xd86c70(0x200));break;case _0xd86c70(0x226):_0x2cd0b3['mapName']=b(_0x377b69,++_0x4d0c11,_0x177df2,'a\x20Map\x20name');break;case _0xd86c70(0x266):_0x2cd0b3[_0xd86c70(0x207)]=K(_0x377b69,++_0x4d0c11,_0x177df2,0x16d);break;case'--working-dir':_0x2cd0b3[_0xd86c70(0x12c)]=_0x54d64c[_0xd86c70(0x1df)](process[_0xd86c70(0x1f9)](),b(_0x377b69,++_0x4d0c11,_0x177df2,_0xd86c70(0x271)));break;case _0xd86c70(0x1fd):_0x2cd0b3[_0xd86c70(0x257)]=_0x54d64c[_0xd86c70(0x1df)](process['cwd'](),b(_0x377b69,++_0x4d0c11,_0x177df2,_0xd86c70(0x271)));break;case _0xd86c70(0x259):{let _0x5c129c=b(_0x377b69,++_0x4d0c11,_0x177df2,_0xd86c70(0x344));pe[_0xd86c70(0x24c)](_0x5c129c)||(console['error'](_0xd86c70(0x1a2)+_0x5c129c+_0xd86c70(0x18b)+pe[_0xd86c70(0x246)](_0xd86c70(0x1db))+'.'),process['exit'](0x2)),_0x2cd0b3[_0xd86c70(0x24f)]=_0x5c129c;break;}case _0xd86c70(0x158):{let _0x184420=_0x377b69[++_0x4d0c11];(!_0x184420||_0x184420['startsWith']('--'))&&(console[_0xd86c70(0x1a6)](_0xd86c70(0x2ce)),process[_0xd86c70(0x2c2)](0x2)),_0x2cd0b3[_0xd86c70(0x20d)]=_0x184420;break;}case _0xd86c70(0x2a0):{let _0x2b71e5=_0x377b69[++_0x4d0c11];['alpha',_0xd86c70(0x294),_0xd86c70(0x1e1),_0xd86c70(0x15e)][_0xd86c70(0x24c)](_0x2b71e5)||(console[_0xd86c70(0x1a6)](_0xd86c70(0x326)+_0x2b71e5+_0xd86c70(0x2cc)),process['exit'](0x2)),_0x2cd0b3['env']=_0x2b71e5;break;}case _0xd86c70(0x208):case _0xd86c70(0x2a2):{let _0x544076=b(_0x377b69,++_0x4d0c11,_0x177df2,_0xd86c70(0x27c)),_0x2a7005=_0x403d0b(_0x544076);if(_0x2a7005['ok']===!0x1){console[_0xd86c70(0x1a6)](_0x46c4f5(_0x544076,_0x2a7005[_0xd86c70(0x202)])),process[_0xd86c70(0x2c2)](0x2);break;}_0x2cd0b3[_0xd86c70(0x2b0)]=_0x2a7005[_0xd86c70(0x2ba)];break;}case'--skip-env-check':_0x2cd0b3[_0xd86c70(0x260)]=!0x0;break;case'-h':case _0xd86c70(0x242):_0x2cd0b3[_0xd86c70(0x2e8)]=!0x0;break;case'-v':case _0xd86c70(0x25a):_0x2cd0b3[_0xd86c70(0x2c7)]=!0x0;break;default:_0x177df2[_0xd86c70(0x199)]('--')&&(console[_0xd86c70(0x1a6)](_0xd86c70(0x171)+_0x177df2),process[_0xd86c70(0x2c2)](0x2)),_0x3eb0e9[_0xd86c70(0x2c8)](_0x177df2);}}return _0x2cd0b3['tenant']!==void 0x0&&_0x2cd0b3['subcommand']!==_0xd86c70(0x1f8)&&(console[_0xd86c70(0x1a6)]('--tenant\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Switch\x20tenants\x20with:\x20delegate-cli\x20tenant\x20<name>'),process[_0xd86c70(0x2c2)](0x2)),_0x2cd0b3[_0xd86c70(0x2b0)]!==void 0x0&&_0x2cd0b3[_0xd86c70(0x19e)]!==void 0x0&&(console[_0xd86c70(0x1a6)](_0xd86c70(0x2eb)),process[_0xd86c70(0x2c2)](0x2)),_0x2cd0b3['url']!==void 0x0&&_0x2cd0b3['subcommand']!==_0xd86c70(0x1f8)&&(console['error']('--url\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Other\x20commands\x20follow\x20the\x20saved\x20login,\x20or\x20--backend\x20<url>.'),process['exit'](0x2)),_0x2cd0b3[_0xd86c70(0x207)]!==void 0x0&&_0x2cd0b3['subcommand']!==_0xd86c70(0x210)&&(console['error'](_0xd86c70(0x1b2)),process[_0xd86c70(0x2c2)](0x2)),_0x2cd0b3['jsonSchemaPath']!==void 0x0&&(_0x2cd0b3['subcommand']!==_0xd86c70(0x304)&&_0x2cd0b3[_0xd86c70(0x2f8)]!==''||_0x2cd0b3[_0xd86c70(0x182)])&&(console[_0xd86c70(0x1a6)]('--json-schema\x20applies\x20to\x20prompts\x20and\x20to\x20`delegate-cli\x20complete`\x20only.'),process[_0xd86c70(0x2c2)](0x2)),_0x2cd0b3[_0xd86c70(0x16a)][_0xd86c70(0x21b)]>0x0&&(_0x2cd0b3[_0xd86c70(0x2f8)]!==''||_0x2cd0b3[_0xd86c70(0x182)])&&(console['error']('--attach\x20applies\x20to\x20prompts\x20only.'),process[_0xd86c70(0x2c2)](0x2)),_0x2cd0b3[_0xd86c70(0x28f)]&&(_0x2cd0b3[_0xd86c70(0x2f8)]!==''||_0x2cd0b3[_0xd86c70(0x182)])&&(console[_0xd86c70(0x1a6)](_0xd86c70(0x335)),process[_0xd86c70(0x2c2)](0x2)),_0x2cd0b3[_0xd86c70(0x28f)]&&(_0x2cd0b3[_0xd86c70(0x302)]||_0x2cd0b3[_0xd86c70(0x203)]||_0x2cd0b3['vertical']?.['trim']()===B)&&(console['error'](_0xd86c70(0x2e5)),process[_0xd86c70(0x2c2)](0x2)),_0x2cd0b3[_0xd86c70(0x14c)]&&(_0x2cd0b3[_0xd86c70(0x340)]!==void 0x0&&_0x2cd0b3[_0xd86c70(0x340)][_0xd86c70(0x163)]()!==B&&(console['error']('--cartographer\x20runs\x20the\x20'+B+_0xd86c70(0x27a)+_0x2cd0b3[_0xd86c70(0x340)]+'.\x20Drop\x20one\x20of\x20the\x20two.'),process['exit'](0x2)),_0x2cd0b3['vertical']=B),_0x2cd0b3[_0xd86c70(0x260)]&&_0x2cd0b3[_0xd86c70(0x2f8)]!==_0xd86c70(0x1f8)&&(console[_0xd86c70(0x1a6)](_0xd86c70(0x22c)),process[_0xd86c70(0x2c2)](0x2)),_0x2cd0b3[_0xd86c70(0x1e0)]!=='text'&&!ue[_0xd86c70(0x24c)](_0x2cd0b3[_0xd86c70(0x2f8)])&&(console[_0xd86c70(0x1a6)](_0xd86c70(0x288)+_0x2cd0b3['outputFormat']+_0xd86c70(0x1a8)+ue['filter'](Boolean)[_0xd86c70(0x246)](',\x20')+'.'),process[_0xd86c70(0x2c2)](0x2)),(_0x2cd0b3[_0xd86c70(0x29a)]!=='text'||_0x2cd0b3[_0xd86c70(0x2fc)])&&_0x2cd0b3[_0xd86c70(0x2f8)]!==''&&(console[_0xd86c70(0x1a6)](_0xd86c70(0x1b8)),process['exit'](0x2)),_0x2cd0b3[_0xd86c70(0x2fc)]&&_0x2cd0b3[_0xd86c70(0x29a)]!==_0xd86c70(0x312)&&(console['error'](_0xd86c70(0x2cf)),process[_0xd86c70(0x2c2)](0x2)),_0x2cd0b3[_0xd86c70(0x29a)]===_0xd86c70(0x312)&&_0x2cd0b3[_0xd86c70(0x1e0)]!==_0xd86c70(0x312)&&(console[_0xd86c70(0x1a6)](_0xd86c70(0x164)),process[_0xd86c70(0x2c2)](0x2)),(_0x2cd0b3[_0xd86c70(0x142)]!==void 0x0||_0x2cd0b3['limit']!==void 0x0||_0x2cd0b3['includeSubAgents'])&&_0x2cd0b3[_0xd86c70(0x2f8)]!=='sessions'&&(console[_0xd86c70(0x1a6)](_0xd86c70(0x255)),process[_0xd86c70(0x2c2)](0x2)),(_0x2cd0b3['delegateTo']!==void 0x0||_0x2cd0b3[_0xd86c70(0x268)]!==void 0x0)&&_0x2cd0b3[_0xd86c70(0x2f8)]!==_0xd86c70(0x239)&&(console[_0xd86c70(0x1a6)](_0xd86c70(0x327)),process['exit'](0x2)),_0x2cd0b3['turnId']!==void 0x0&&_0x2cd0b3[_0xd86c70(0x2f8)]!==_0xd86c70(0x258)&&(console[_0xd86c70(0x1a6)](_0xd86c70(0x2d8)),process[_0xd86c70(0x2c2)](0x2)),(_0x2cd0b3['remote']!==void 0x0||_0x2cd0b3[_0xd86c70(0x181)]!==void 0x0)&&(_0x2cd0b3[_0xd86c70(0x2f8)]!=='maps'||_0x3eb0e9[0x0]!==_0xd86c70(0x2ea))&&(console[_0xd86c70(0x1a6)](_0xd86c70(0x13c)),process[_0xd86c70(0x2c2)](0x2)),_0x2cd0b3[_0xd86c70(0x2c0)]=[...new Set(_0x2cd0b3[_0xd86c70(0x2c0)])],_0x2cd0b3[_0xd86c70(0x2cb)]=_0x3eb0e9,_0x2cd0b3['prompt']=_0x3eb0e9['join']('\x20'),_0x2cd0b3['inputFormat']===_0xd86c70(0x312)&&_0x2cd0b3[_0xd86c70(0x141)]!==''&&(console[_0xd86c70(0x1a6)](_0xd86c70(0x1b6)),process[_0xd86c70(0x2c2)](0x2)),_0x2cd0b3;}var L=_0xd306cc=>{const _0x13fc9e=_0xa59708;process[_0x13fc9e(0x205)][_0x13fc9e(0x174)](_0xd306cc);};function Xt(){const _0x36681d=_0xa59708;let _0x487d17=process[_0x36681d(0x205)][_0x36681d(0x174)],_0x49be78=_0x487d17[_0x36681d(0x2ff)](process['stdout']),_0x3c2f9a=L;return L=_0x217d12=>{_0x49be78(_0x217d12);},process[_0x36681d(0x205)][_0x36681d(0x174)]=(..._0x3c0f6b)=>process[_0x36681d(0x13f)]['write'](..._0x3c0f6b),()=>{const _0x4a5064=_0x36681d;process[_0x4a5064(0x205)][_0x4a5064(0x174)]=_0x487d17,L=_0x3c2f9a;};}function m(_0x3ecd2a,_0xc4395b,_0x163ca3){const _0x15fd11=_0xa59708;if(_0x3ecd2a[_0x15fd11(0x1e0)]===_0x15fd11(0x2a3)){_0x163ca3(_0xc4395b);return;}L(_0x599331(_0xc4395b));}function Zt(){const _0x1ae36c=_0xa59708;let _0x1dfee0=_0x1ae36c(0x249)[_0x1ae36c(0x163)]();console[_0x1ae36c(0x1bd)](_0x1dfee0);}function en(){const _0x25f67c=_0xa59708;try{return JSON[_0x25f67c(0x166)](_0x7c43eb[_0x25f67c(0x206)](_0x54d64c[_0x25f67c(0x246)](__dirname,'..',_0x25f67c(0x1ad)),_0x25f67c(0x1d5)))[_0x25f67c(0x2c7)]||_0x25f67c(0x147);}catch{return _0x25f67c(0x147);}}var tn=0x7d0;async function me(_0x5ccecc,_0x492880){const _0x49e2fb=_0xa59708;let _0x40be9b=_0x492880?[_0x492880]:[];for await(let _0x5db0d9 of _0x5ccecc)_0x40be9b[_0x49e2fb(0x2c8)](Buffer['from'](_0x5db0d9));return Buffer[_0x49e2fb(0x135)](_0x40be9b)[_0x49e2fb(0x2e0)](_0x49e2fb(0x1d5))[_0x49e2fb(0x163)]();}function nn(_0xe26b94,_0x5bf017){return new Promise(_0x30e663=>{const _0x2271f9=_0x27e7;let _0x19f061=_0x1163bf=>{const _0x554c73=_0x27e7;clearTimeout(_0x11b548),_0xe26b94[_0x554c73(0x128)](_0x554c73(0x29e),_0x9e3aab),_0xe26b94[_0x554c73(0x128)](_0x554c73(0x33d),_0x4374c2),_0xe26b94[_0x554c73(0x128)](_0x554c73(0x1a6),_0x4374c2),_0xe26b94[_0x554c73(0x22d)](),_0x30e663(_0x1163bf);},_0x9e3aab=_0xeec9ba=>_0x19f061(Buffer[_0x2271f9(0x2be)](_0xeec9ba)),_0x4374c2=()=>_0x19f061(null),_0x11b548=setTimeout(()=>_0x19f061(null),_0x5bf017);_0xe26b94['on'](_0x2271f9(0x29e),_0x9e3aab),_0xe26b94['on'](_0x2271f9(0x33d),_0x4374c2),_0xe26b94['on'](_0x2271f9(0x1a6),_0x4374c2),_0xe26b94[_0x2271f9(0x28a)]();});}async function J(_0x37551f,_0x5e4989,_0xa97221=tn){const _0x4d41df=_0xa59708;let _0x3b90b9=_0x37551f==='-';if(!_0x3b90b9&&_0x37551f)return _0x37551f;if(!_0x3b90b9&&_0x5e4989[_0x4d41df(0x18e)])return'';if(_0x3b90b9)return me(_0x5e4989,null);let _0x2ecf04=await nn(_0x5e4989,_0xa97221);return _0x2ecf04?me(_0x5e4989,_0x2ecf04):'';}function Y(){const _0x2c4573=_0xa59708;return _0x54d64c['join'](process.env.HOME||process.env.USERPROFILE||'',_0x2c4573(0x12f),_0x2c4573(0x237));}function G(_0x5e93c2){const _0xab0dfa=_0xa59708;try{let _0x254766=JSON[_0xab0dfa(0x166)](_0x7c43eb[_0xab0dfa(0x206)](_0x5e93c2,_0xab0dfa(0x1d5)));return!_0x254766[_0xab0dfa(0x307)]||!_0x254766[_0xab0dfa(0x1d2)]||!_0x254766[_0xab0dfa(0x19a)]?null:_0x254766;}catch{return null;}}function sn(){const _0x31c310=_0xa59708;let _0x135dd9=[{'file':_0x58f6b2(),'isDesktopFallback':!0x1},{'file':Y(),'isDesktopFallback':!0x0}];for(let _0x1bcdcf of _0x135dd9){let _0xe24ff5=G(_0x1bcdcf[_0x31c310(0x25e)]);if(_0xe24ff5)return{..._0x1bcdcf,'auth':_0xe24ff5};}return null;}async function on(){const _0x201511=_0xa59708;let _0xef7439=_0x58f6b2();if(!_0x7c43eb[_0x201511(0x31a)](_0xef7439)){let _0x4f460f=Y();console[_0x201511(0x1bd)](G(_0x4f460f)?'No\x20CLI\x20login\x20found.\x20Note:\x20the\x20CLI\x20is\x20currently\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20'+_0x4f460f+_0x201511(0x150):_0x201511(0x277));return;}_0x7c43eb[_0x201511(0x319)](_0xef7439),console[_0x201511(0x1bd)]('Removed\x20'+_0xef7439);}async function rn(_0x919e85){const _0x44c511=_0xa59708;let _0x39d7b0=z(),_0x48435d,_0x5c9b4;if(_0x39d7b0)_0x48435d=_0x39d7b0,_0x5c9b4=_0x44c511(0x1be);else{let _0x180365=sn();if(!_0x180365)throw new Error(Ne);_0x48435d=_0x180365[_0x44c511(0x2f7)],_0x5c9b4=_0x180365[_0x44c511(0x223)]?_0x180365[_0x44c511(0x25e)]+'\x20(Delegate\x20desktop\x20app\x20fallback)':_0x180365[_0x44c511(0x25e)];}let _0x172b48={'source':_0x5c9b4,'baseUrl':_0x48435d[_0x44c511(0x2ba)]??null,'deployment':an(_0x48435d[_0x44c511(0x2ba)]),'organization':{'id':_0x48435d[_0x44c511(0x19a)],'slug':_0x48435d['orgLogicalName']??null},'tenant':{'id':_0x48435d[_0x44c511(0x1d2)],'name':_0x48435d[_0x44c511(0x1aa)]??null},'tokenExpiresAt':_0x48435d['expiresAt']?new Date(_0x48435d[_0x44c511(0x341)]*0x3e8)['toISOString']():null};m(_0x919e85,_0x172b48,()=>{const _0x1e1f79=_0x44c511;let _0xa97f5c=[_0x1e1f79(0x234)+_0x5c9b4,_0x1e1f79(0x229)+(_0x48435d[_0x1e1f79(0x2ba)]??'unknown'),_0x1e1f79(0x18f)+_0x172b48[_0x1e1f79(0x2bf)],_0x1e1f79(0x126)+(_0x48435d['orgLogicalName']??'unknown\x20slug')+'\x20('+_0x48435d[_0x1e1f79(0x19a)]+')','Tenant:\x20\x20\x20\x20\x20\x20\x20'+(_0x48435d[_0x1e1f79(0x1aa)]??_0x1e1f79(0x30b))+'\x20('+_0x48435d[_0x1e1f79(0x1d2)]+')'];if(_0x48435d[_0x1e1f79(0x341)]){let _0x118d9f=_0x48435d[_0x1e1f79(0x341)]-Math[_0x1e1f79(0x274)](Date['now']()/0x3e8);_0xa97f5c[_0x1e1f79(0x2c8)](_0x118d9f>0x0?_0x1e1f79(0x139)+_0x172b48['tokenExpiresAt']+_0x1e1f79(0x152)+Math[_0x1e1f79(0x23a)](_0x118d9f/0x3c)+'\x20min)':_0x1e1f79(0x282)+_0x172b48['tokenExpiresAt']);}process[_0x1e1f79(0x205)][_0x1e1f79(0x174)](_0xa97f5c[_0x1e1f79(0x246)]('\x0a')+'\x0a');});}var Ne=_0xa59708(0x17c);function an(_0x3736f1){const _0x3b6a7d=_0xa59708;return _0x3736f1?_0x10f2b1(_0x3736f1)?'UiPath\x20Cloud':_0x3b6a7d(0x254):'unknown';}function z(){let _0x2fca04=process.env.AUTH_TOKEN_FILE;return(process.env.AUTH_TOKEN||_0x2fca04)&&process.env.TENANT_ID&&process.env.ORG_ID?{'accessToken':_0x2fca04?ln(_0x2fca04):process.env.AUTH_TOKEN,..._0x2fca04?{'accessTokenFile':_0x2fca04}:{},'tenantId':process.env.TENANT_ID,'organizationId':process.env.ORG_ID,'orgLogicalName':process.env.ORG_SLUG,'tenantName':process.env.TENANT_SLUG,'baseUrl':Pe()}:null;}function ln(_0x29c1c2){const _0x1f60ba=_0xa59708;let _0x2944b7;try{_0x2944b7=_0x7c43eb[_0x1f60ba(0x206)](_0x29c1c2,_0x1f60ba(0x1d5))[_0x1f60ba(0x163)]();}catch(_0x582890){throw new Error(_0x1f60ba(0x129)+_0x29c1c2+_0x1f60ba(0x22f)+_0x582890[_0x1f60ba(0x1ae)]);}let _0x2a2441=_0x2944b7[_0x1f60ba(0x199)]('Bearer\x20')?_0x2944b7[_0x1f60ba(0x1d0)](0x7)[_0x1f60ba(0x163)]():_0x2944b7;if(!_0x2a2441)throw new Error(_0x1f60ba(0x129)+_0x29c1c2+'\x27\x20is\x20empty.');return _0x2a2441;}function Pe(){const _0x1bd06b=_0xa59708;let _0x169231=process.env.UIPATH_BASE_URL;if(!_0x169231)return;let _0x512da4=_0x403d0b(_0x169231);if(_0x512da4['ok']===!0x1)throw new Error(_0x1bd06b(0x13d)+_0x46c4f5(_0x169231,_0x512da4[_0x1bd06b(0x202)]));return _0x512da4[_0x1bd06b(0x2ba)];}async function V(){let _0xf63086=z();if(_0xf63086)return _0xf63086;let _0x4be887=await _0x516464();if(_0x4be887)return _0x4be887;throw new Error(Ne);}async function cn(){const _0x5e685c=_0xa59708;await new _0x32ef44()[_0x5e685c(0x2de)]({'force':!0x0}),console['log']('Interop\x20stopped\x20(if\x20it\x20was\x20running).');}function X(_0x23a1d9,_0x1a409c,_0x16e8e2){const _0x2a861f=_0xa59708;_0x23a1d9?process['stderr'][_0x2a861f(0x174)](_0x2a861f(0x24b)+_0x23a1d9+_0x2a861f(0x15a)+_0x16e8e2+'\x0a'):!_0x1a409c&&!process.env.BACKEND_URL&&process[_0x2a861f(0x13f)][_0x2a861f(0x174)](_0x2a861f(0x315)+_0x16e8e2+'\x0a');}async function x(_0x12b1cf){const _0x40e5a0=_0xa59708;let _0x36cb42=await V(),_0x484009=_0x306d32(_0x12b1cf[_0x40e5a0(0x19e)],_0x36cb42,_0x12b1cf[_0x40e5a0(0x14b)]);return X(_0x12b1cf[_0x40e5a0(0x19e)],_0x12b1cf['backendUrl'],_0x484009),{'auth':_0x36cb42,'backendUrl':_0x484009,'client':_0x18182c({'auth':_0x36cb42,'backendUrl':_0x484009})};}async function dn(_0x3ae60d){const _0x1c2fa1=_0xa59708;let {client:_0x1b7bc3}=await x(_0x3ae60d),[_0x563e11,_0x26010d]=await Promise[_0x1c2fa1(0x1d3)]([_0x27c4f6(_0x1b7bc3),_0x127d11(_0x1b7bc3)[_0x1c2fa1(0x22a)](_0x1082e3=>(process[_0x1c2fa1(0x13f)][_0x1c2fa1(0x174)](_0x1c2fa1(0x270)+(_0x1082e3 instanceof Error?_0x1082e3[_0x1c2fa1(0x1ae)]:String(_0x1082e3))+'\x0a'),{}))]),_0x5af995=_0x563e11[_0x1c2fa1(0x280)](_0x6720ce=>_0x26010d[_0x6720ce['id']]?{..._0x6720ce,'byoWarning':_0x26010d[_0x6720ce['id']]}:_0x6720ce);m(_0x3ae60d,_0x5af995,un);}function un(_0x2b8639){const _0x15ed1e=_0xa59708;if(_0x2b8639[_0x15ed1e(0x21b)]===0x0){process['stderr'][_0x15ed1e(0x174)](_0x15ed1e(0x1ac));return;}process[_0x15ed1e(0x205)][_0x15ed1e(0x174)](_0x15ed1e(0x311)+_0x2b8639[_0x15ed1e(0x21b)]+_0x15ed1e(0x248));for(let _0x162a22 of _0x2b8639){let _0x329f8d=_0x162a22[_0x15ed1e(0x236)]&&_0x162a22[_0x15ed1e(0x236)]!==_0x162a22['id']?'\x20('+_0x162a22['name']+')':'';process[_0x15ed1e(0x205)]['write']('\x20\x20'+_0x162a22['id']+_0x329f8d+'\x0a'),_0x162a22[_0x15ed1e(0x30a)]&&process[_0x15ed1e(0x205)][_0x15ed1e(0x174)](_0x15ed1e(0x2b5)+_0x162a22[_0x15ed1e(0x30a)]+'\x0a'),_0x162a22['locked']&&process[_0x15ed1e(0x205)][_0x15ed1e(0x174)]('\x20\x20\x20\x20Not\x20available\x20on\x20this\x20plan'+(_0x162a22[_0x15ed1e(0x298)]?'\x20('+_0x162a22[_0x15ed1e(0x298)]+')':'')+'\x0a'),_0x162a22[_0x15ed1e(0x1c0)]&&process[_0x15ed1e(0x205)][_0x15ed1e(0x174)](_0x15ed1e(0x196)+_0x162a22[_0x15ed1e(0x1c0)]+'\x0a');}process[_0x15ed1e(0x205)]['write'](_0x15ed1e(0x1b9));}var fe=['list',_0xa59708(0x133),_0xa59708(0x2b1),'delete','cancel',_0xa59708(0x219)];async function pn(_0x57c5b5){const _0x1d5e55=_0xa59708;let [_0x12f5dc='',_0x13da76='',..._0x7313f5]=_0x57c5b5[_0x1d5e55(0x2cb)];if(_0x12f5dc&&!fe[_0x1d5e55(0x24c)](_0x12f5dc)&&(console[_0x1d5e55(0x1a6)](_0x1d5e55(0x18c)+_0x12f5dc+_0x1d5e55(0x322)+fe[_0x1d5e55(0x246)]('\x20|\x20')+'.'),process[_0x1d5e55(0x2c2)](0x2)),_0x57c5b5[_0x1d5e55(0x1c1)]!==void 0x0&&_0x12f5dc!==_0x1d5e55(0x149)&&(console['error'](_0x1d5e55(0x2d8)),process[_0x1d5e55(0x2c2)](0x2)),_0x12f5dc&&_0x12f5dc!==_0x1d5e55(0x27d)){await mn(_0x57c5b5,_0x12f5dc,_0x13da76,_0x7313f5[_0x1d5e55(0x246)]('\x20')['trim']());return;}_0x57c5b5[_0x1d5e55(0x2cb)]['length']>0x1&&(console[_0x1d5e55(0x1a6)]('Usage:\x20delegate-cli\x20sessions\x20[list]\x20[--page\x20N]\x20[--limit\x20N]\x20[--include-subagents]'),process[_0x1d5e55(0x2c2)](0x2));let {client:_0x20fa1e}=await x(_0x57c5b5),_0x3b292a=await _0x39a07b(_0x20fa1e,{'page':_0x57c5b5[_0x1d5e55(0x142)],'pageSize':_0x57c5b5[_0x1d5e55(0x2e1)],'includeSubAgents':_0x57c5b5[_0x1d5e55(0x285)]});m(_0x57c5b5,_0x3b292a,yn);}async function mn(_0x4f28e5,_0x2e60ab,_0x4e64a2,_0x4e180a){const _0xf7f381=_0xa59708;if((_0x4f28e5['page']!==void 0x0||_0x4f28e5[_0xf7f381(0x2e1)]!==void 0x0||_0x4f28e5[_0xf7f381(0x285)])&&(console[_0xf7f381(0x1a6)](_0xf7f381(0x2d7)),process[_0xf7f381(0x2c2)](0x2)),_0x2e60ab===_0xf7f381(0x149)){await gn(_0x4f28e5,_0x4e64a2,_0x4e180a);return;}if(_0x2e60ab===_0xf7f381(0x219)){await hn(_0x4f28e5,_0x4e64a2,_0x4e180a);return;}(!_0x4e64a2||_0x2e60ab===_0xf7f381(0x2b1)!=!!_0x4e180a)&&(console[_0xf7f381(0x1a6)](_0xf7f381(0x261)+_0x2e60ab+_0xf7f381(0x1c6)+(_0x2e60ab===_0xf7f381(0x2b1)?_0xf7f381(0x185):'')),process[_0xf7f381(0x2c2)](0x2));let {client:_0x45fb65}=await x(_0x4f28e5);try{if(_0x2e60ab===_0xf7f381(0x133)){let _0x35e5b7=await _0x2ac5fa(_0x45fb65,_0x4e64a2);_0x35e5b7||ge(_0x4e64a2),m(_0x4f28e5,_0x35e5b7,fn);}else{if(_0x2e60ab===_0xf7f381(0x2b1)){let _0x3f6367=await _0x3e2373(_0x45fb65,_0x4e64a2,_0x4e180a);m(_0x4f28e5,_0x3f6367,_0x450574=>{const _0x2cc8c2=_0xf7f381;process['stdout'][_0x2cc8c2(0x174)](_0x2cc8c2(0x2ac)+_0x450574['id']+':\x20'+_0x450574['title']+'\x0a');});}else await _0x4e54a1(_0x45fb65,_0x4e64a2),await _0x10c041(_0x4e64a2,_0x4f28e5['workingDirectory']),m(_0x4f28e5,{'id':_0x4e64a2,'deleted':!0x0},_0x44effc=>{process['stdout']['write']('Deleted\x20session\x20'+_0x44effc['id']+'.\x0a');});}}catch(_0x1f63f2){if(!_0x440da1(_0x1f63f2,0x194))throw _0x1f63f2;ge(_0x4e64a2);}}function ge(_0x59adda){const _0x58c688=_0xa59708;console['error'](_0x58c688(0x2c5)+_0x59adda+_0x58c688(0x143)),process[_0x58c688(0x2c2)](0x1);}function fn(_0x310fbb){const _0xb3726=_0xa59708;process['stdout'][_0xb3726(0x174)](_0xb3726(0x2e7)+_0x310fbb['id']+'\x0a'),process[_0xb3726(0x205)][_0xb3726(0x174)](_0xb3726(0x342)+_0x310fbb['title']+'\x0a'),process[_0xb3726(0x205)][_0xb3726(0x174)](_0xb3726(0x305)+_0x310fbb[_0xb3726(0x1cf)]+'\x0a'),process[_0xb3726(0x205)][_0xb3726(0x174)](_0xb3726(0x2fd)+_0x310fbb[_0xb3726(0x19a)]+'\x0a'),_0x310fbb[_0xb3726(0x161)]&&process[_0xb3726(0x205)][_0xb3726(0x174)](_0xb3726(0x33f)+_0x310fbb[_0xb3726(0x161)]+'\x0a');}async function gn(_0x4c2818,_0x4ae8ff,_0x8bbe56){const _0x1ea5ef=_0xa59708;(!_0x4ae8ff||_0x8bbe56||!_0x4c2818[_0x1ea5ef(0x1c1)])&&(console[_0x1ea5ef(0x1a6)](_0x1ea5ef(0x224)),process[_0x1ea5ef(0x2c2)](0x2));let {client:_0x2680ce}=await x(_0x4c2818),_0x4e7153=await _0x4cecd2(_0x2680ce,_0x4ae8ff,_0x4c2818[_0x1ea5ef(0x1c1)]);m(_0x4c2818,{'sessionId':_0x4ae8ff,'turnId':_0x4c2818['turnId'],'cancelled':_0x4e7153},_0x5ae227=>{const _0x4c0f8f=_0x1ea5ef;_0x5ae227[_0x4c0f8f(0x321)]?process['stdout'][_0x4c0f8f(0x174)](_0x4c0f8f(0x283)+_0x5ae227[_0x4c0f8f(0x1c1)]+_0x4c0f8f(0x23b)+_0x5ae227['sessionId']+'.\x0a'):process['stderr'][_0x4c0f8f(0x174)](_0x4c0f8f(0x1c2)+_0x5ae227[_0x4c0f8f(0x1c1)]+_0x4c0f8f(0x31d)+_0x5ae227[_0x4c0f8f(0x32d)]+'.\x0a');}),_0x4e7153||(process[_0x1ea5ef(0x2ab)]=0x1);}async function hn(_0x454819,_0x436ea5,_0x50ed52){const _0x340a81=_0xa59708;(!_0x436ea5||/\s/[_0x340a81(0x31c)](_0x50ed52))&&(console[_0x340a81(0x1a6)](_0x340a81(0x2d2)),process[_0x340a81(0x2c2)](0x2));let {client:_0xd2f302}=await x(_0x454819),_0x397710;try{_0x397710=await _0x3e3060(_0xd2f302,_0x436ea5,{'atMessageId':_0x50ed52||void 0x0});}catch(_0x49d369){if(!_0x440da1(_0x49d369,0x194))throw _0x49d369;console[_0x340a81(0x1a6)]('Session\x20'+_0x436ea5+_0x340a81(0x190)+(_0x50ed52?',\x20or\x20holds\x20no\x20message\x20'+_0x50ed52:'')+'.'),process[_0x340a81(0x2c2)](0x1);}m(_0x454819,_0x397710,_0x45daea=>{const _0x33b4d9=_0x340a81;process[_0x33b4d9(0x205)][_0x33b4d9(0x174)]('Forked\x20'+_0x436ea5+_0x33b4d9(0x1b3)+_0x45daea['id']+'.\x0a'),process['stderr'][_0x33b4d9(0x174)]('Continue\x20it\x20with:\x20delegate-cli\x20--session\x20'+_0x45daea['id']+_0x33b4d9(0x21f));});}function yn({sessions:_0xb7ab2d,page:_0x5eb6eb,isLastPage:_0x56ab35}){const _0x2f929e=_0xa59708;if(_0xb7ab2d[_0x2f929e(0x21b)]===0x0)process['stderr'][_0x2f929e(0x174)](_0x2f929e(0x2aa)+_0x5eb6eb+'.\x0a');else{process[_0x2f929e(0x205)][_0x2f929e(0x174)]('ID'[_0x2f929e(0x240)](0x24)+'\x20\x20'+_0x2f929e(0x1bc)[_0x2f929e(0x240)](0x13)+_0x2f929e(0x2c4));for(let _0x3e12bf of _0xb7ab2d){let _0x3e41b9=_0x3e12bf[_0x2f929e(0x308)][_0x2f929e(0x165)]('T','\x20')[_0x2f929e(0x1d0)](0x0,0x13),_0x34e7a6=_0x3e12bf['parentSessionId']?_0x2f929e(0x16e)+_0x3e12bf[_0x2f929e(0x263)]+')':'';process[_0x2f929e(0x205)]['write'](_0x3e12bf['id'][_0x2f929e(0x240)](0x24)+'\x20\x20'+_0x3e41b9[_0x2f929e(0x240)](0x13)+'\x20\x20'+_0x3e12bf[_0x2f929e(0x1c9)]+_0x34e7a6+'\x0a');}}_0x56ab35||process[_0x2f929e(0x13f)]['write'](_0x2f929e(0x2a8)+(_0x5eb6eb+0x1)+'\x0a');}async function wn(_0x43c618){const _0x2d63c2=_0xa59708;let _0x1cdf90=await V(),_0x2a424f=_0x306d32(_0x43c618[_0x2d63c2(0x19e)],_0x1cdf90,_0x43c618[_0x2d63c2(0x14b)]);X(_0x43c618[_0x2d63c2(0x19e)],_0x43c618['backendUrl'],_0x2a424f);let _0x33f7ce=await _0x49efef({'auth':_0x1cdf90,'backendUrl':_0x2a424f,'interop':_0x43c618[_0x2d63c2(0x302)]?'skip':_0x2d63c2(0x29f)});m(_0x43c618,_0x33f7ce,({checks:_0x1ecee4})=>{const _0x1faec8=_0x2d63c2;for(let _0x37e6ef of _0x1ecee4)process['stdout'][_0x1faec8(0x174)](kn(_0x37e6ef)+'\x0a');}),_0x33f7ce['ok']||process[_0x2d63c2(0x2c2)](0x1);}function kn(_0x447b85){const _0x570362=_0xa59708;return{'ok':'✓','failed':'✗','skipped':'-'}[_0x447b85[_0x570362(0x28c)]]+'\x20'+_0x447b85[_0x570362(0x236)][_0x570362(0x240)](0xa)+_0x447b85[_0x570362(0x136)];}var bn=['',_0xa59708(0x19d),_0xa59708(0x130)];async function vn(_0x2aafd3){const _0x1d01f7=_0xa59708;let _0x4f6d72=_0x2aafd3[_0x1d01f7(0x141)];bn[_0x1d01f7(0x24c)](_0x4f6d72)||(console[_0x1d01f7(0x1a6)](_0x1d01f7(0x26a)+_0x2aafd3[_0x1d01f7(0x141)]+'.\x20Use\x20`delegate-cli\x20usage`,\x20`usage\x20activity`\x20or\x20`usage\x20daily`.'),process[_0x1d01f7(0x2c2)](0x2)),_0x4f6d72===''&&_0x2aafd3[_0x1d01f7(0x207)]!==void 0x0&&(console['error']('--days\x20applies\x20to\x20`delegate-cli\x20usage\x20activity|daily`;\x20the\x20summary\x20covers\x20the\x20current\x20month.'),process['exit'](0x2)),_0x4f6d72!==''&&_0x2aafd3[_0x1d01f7(0x32d)]!==void 0x0&&(console[_0x1d01f7(0x1a6)](_0x1d01f7(0x34c)),process[_0x1d01f7(0x2c2)](0x2));let {client:_0x15573e}=await x(_0x2aafd3);if(_0x4f6d72===_0x1d01f7(0x19d)){m(_0x2aafd3,await _0x2c9646(_0x15573e,{'days':_0x2aafd3[_0x1d01f7(0x207)]}),An);return;}if(_0x4f6d72===_0x1d01f7(0x130)){m(_0x2aafd3,await _0xb5cf31(_0x15573e,{'days':_0x2aafd3['days']}),En);return;}let [_0x1c02dd,_0xabc40f]=await Promise['all']([_0x1c54c7(_0x15573e,{'sessionId':_0x2aafd3[_0x1d01f7(0x32d)]}),_0x4357f9(_0x15573e)]);m(_0x2aafd3,{'licensing':_0x1c02dd,'monthlySpending':_0xabc40f},Sn);}function Sn(_0x1b8190){const _0xc6f841=_0xa59708;let {licensing:_0x2775db,monthlySpending:_0x12e545}=_0x1b8190,_0xdbf805=[_0x2775db[_0xc6f841(0x153)]?_0xc6f841(0x23c)+_0x2775db[_0xc6f841(0x2bb)][_0xc6f841(0x138)](0x1)+'%\x20of\x20'+(_0x2775db['total_quota_pu']??0x0)+_0xc6f841(0x313)+(_0x2775db[_0xc6f841(0x2af)]>0x0?',\x20'+_0x2775db[_0xc6f841(0x2af)]+_0xc6f841(0x2f4):'')+_0xc6f841(0x24a)+_0x2775db[_0xc6f841(0x1c5)]+')':'Licensing:\x20\x20\x20\x20no\x20licensing\x20quota\x20applies','Spending:\x20\x20\x20\x20\x20$'+_0x12e545['monthly_spend_usd'][_0xc6f841(0x138)](0x2)+'\x20this\x20month'+(_0x12e545[_0xc6f841(0x153)]&&_0x12e545[_0xc6f841(0x195)]!==null?_0xc6f841(0x2fa)+_0x12e545[_0xc6f841(0x195)]['toFixed'](0x2)+'\x20cap':_0xc6f841(0x2c6))];_0x2775db[_0xc6f841(0x201)]!==null&&_0x2775db['session_consumed_pu']!==void 0x0&&_0xdbf805[_0xc6f841(0x2c8)](_0xc6f841(0x34b)+_0x2775db[_0xc6f841(0x201)]+_0xc6f841(0x347)),process[_0xc6f841(0x205)][_0xc6f841(0x174)](_0xdbf805[_0xc6f841(0x246)]('\x0a')+'\x0a');}function An(_0x4023da){const _0x29dde9=_0xa59708;let _0x4a565d=[_0x29dde9(0x1b0)+_0x4023da[_0x29dde9(0x1bf)]+_0x29dde9(0x159)+_0x4023da[_0x29dde9(0x1f6)]+_0x29dde9(0x21d)+_0x4023da['active_days']+_0x29dde9(0x21a),'Cost:\x20\x20\x20$'+_0x4023da['total_cost_usd'][_0x29dde9(0x138)](0x2)+_0x29dde9(0x176)+_0x4023da['estimated_cost_usd'][_0x29dde9(0x138)](0x2)+_0x29dde9(0x29c)+_0x4023da[_0x29dde9(0x20a)]+_0x29dde9(0x2ed),'Tokens:\x20'+_0x4023da[_0x29dde9(0x177)]+'\x20prompt,\x20'+_0x4023da[_0x29dde9(0x170)]+_0x29dde9(0x19b)];for(let [_0xc0b5af,_0xe8c252]of Object[_0x29dde9(0x154)](_0x4023da[_0x29dde9(0x1fb)]))_0x4a565d[_0x29dde9(0x2c8)]('\x20\x20'+_0xc0b5af+':\x20'+_0xe8c252+_0x29dde9(0x1e8));process[_0x29dde9(0x205)][_0x29dde9(0x174)](_0x4a565d[_0x29dde9(0x246)]('\x0a')+'\x0a');}function En(_0x34db69){const _0x1679c0=_0xa59708;if(_0x34db69[_0x1679c0(0x12b)][_0x1679c0(0x21b)]===0x0){process[_0x1679c0(0x205)][_0x1679c0(0x174)]('No\x20usage\x20in\x20the\x20last\x20'+_0x34db69[_0x1679c0(0x1bf)]+_0x1679c0(0x167));return;}let _0x38b675=['Date\x20\x20\x20\x20\x20\x20\x20\x20Token\x20units\x20\x20Prompt\x20tokens\x20\x20Completion\x20tokens'];for(let _0x384ce6 of _0x34db69['daily_usage'])_0x38b675[_0x1679c0(0x2c8)](_0x384ce6[_0x1679c0(0x1ab)]+'\x20\x20'+String(_0x384ce6[_0x1679c0(0x31f)])[_0x1679c0(0x197)](0xb)+'\x20\x20'+String(_0x384ce6[_0x1679c0(0x2d1)])[_0x1679c0(0x197)](0xd)+'\x20\x20'+String(_0x384ce6[_0x1679c0(0x1d4)])['padStart'](0x11));process['stdout'][_0x1679c0(0x174)](_0x38b675['join']('\x0a')+'\x0a');}async function xn(_0x1c5e13,_0x12d685){const _0x23f29b=_0xa59708;let _0x4ec6ae=await In(_0x1c5e13[_0x23f29b(0x141)],_0x12d685);_0x1c5e13[_0x23f29b(0x265)]&&(_0x4ec6ae[_0x23f29b(0x265)]=_0x1c5e13[_0x23f29b(0x265)]);let {client:_0x3104b8}=await x(_0x1c5e13);try{_0x12d685===_0x23f29b(0x188)?m(_0x1c5e13,await _0x2aac02(_0x3104b8,_0x4ec6ae,void 0x0),Tn):_0x12d685===_0x23f29b(0x160)?m(_0x1c5e13,await _0x523b81(_0x3104b8,_0x4ec6ae,void 0x0),Dn):m(_0x1c5e13,await _0x22d6cc(_0x3104b8,_0x4ec6ae,void 0x0),Un);}catch(_0x51182a){if(!_0xa86ec7(_0x51182a))throw _0x51182a;console[_0x23f29b(0x1a6)](_0x51182a[_0x23f29b(0x1ae)]),process[_0x23f29b(0x2c2)](0x1);}}async function In(_0x245478,_0x58c7d5){const _0x3ab2c4=_0xa59708;let _0x450f45;try{_0x450f45=_0x245478&&_0x245478!=='-'?_0x7c43eb[_0x3ab2c4(0x206)](_0x54d64c[_0x3ab2c4(0x1df)](_0x245478),_0x3ab2c4(0x1d5)):await J(_0x245478,process[_0x3ab2c4(0x338)]);}catch(_0x5ebc66){console[_0x3ab2c4(0x1a6)](_0x58c7d5+_0x3ab2c4(0x2a1)+_0x5ebc66['message']+').'),process[_0x3ab2c4(0x2c2)](0x2);}return _0x450f45||(console['error'](_0x58c7d5+_0x3ab2c4(0x220)+_0x58c7d5+_0x3ab2c4(0x2d3)),process[_0x3ab2c4(0x2c2)](0x2)),_e(_0x450f45,_0x58c7d5,_0x3ab2c4(0x145));}function _e(_0x2070e,_0x3d36e2,_0x4f2ce4){const _0x58dfd3=_0xa59708;let _0x9afd82;try{_0x9afd82=JSON['parse'](_0x2070e);}catch(_0x2e6d53){console[_0x58dfd3(0x1a6)](_0x3d36e2+':\x20'+_0x4f2ce4+_0x58dfd3(0x320)+_0x2e6d53[_0x58dfd3(0x1ae)]+').'),process[_0x58dfd3(0x2c2)](0x2);}return(typeof _0x9afd82!=_0x58dfd3(0x14d)||_0x9afd82===null||Array[_0x58dfd3(0x345)](_0x9afd82))&&(console[_0x58dfd3(0x1a6)](_0x3d36e2+':\x20'+_0x4f2ce4+_0x58dfd3(0x1e6)),process[_0x58dfd3(0x2c2)](0x2)),_0x9afd82;}function Re(_0x5c1f40,_0x1024e6){const _0x4c0f99=_0xa59708;let _0x265a94;try{_0x265a94=_0x7c43eb[_0x4c0f99(0x206)](_0x54d64c[_0x4c0f99(0x1df)](_0x5c1f40),_0x4c0f99(0x1d5));}catch(_0x445dea){console[_0x4c0f99(0x1a6)](_0x1024e6+_0x4c0f99(0x328)+_0x445dea[_0x4c0f99(0x1ae)]+').'),process['exit'](0x2);}return _e(_0x265a94,_0x1024e6,'the\x20JSON\x20schema');}function _0x27e7(_0x112b99,_0x2c8b46){_0x112b99=_0x112b99-0x120;const _0x406c52=_0x406c();let _0x27e7f1=_0x406c52[_0x112b99];return _0x27e7f1;}async function $n(_0x57ee27){const _0x11ac22=_0xa59708;_0x57ee27[_0x11ac22(0x121)]===void 0x0&&(console['error'](_0x11ac22(0x2f0)),process[_0x11ac22(0x2c2)](0x2));let _0x1d2df9=Re(_0x57ee27['jsonSchemaPath'],'complete'),_0x3d5bef=(await J(_0x57ee27[_0x11ac22(0x141)],process['stdin']))['trim']();_0x3d5bef||(console[_0x11ac22(0x1a6)](_0x11ac22(0x28d)),process[_0x11ac22(0x2c2)](0x2));let {client:_0x5bbbee}=await x(_0x57ee27);try{let _0x4e5e05=await _0x13a164(_0x5bbbee,{'prompt':_0x3d5bef,'jsonSchema':_0x1d2df9,'model':_0x57ee27[_0x11ac22(0x265)]||process.env.MODEL||_0x19c2da,..._0x57ee27['sessionId']!==void 0x0&&{'sessionId':_0x57ee27['sessionId']}},void 0x0);m(_0x57ee27,_0x4e5e05,_0x17daba=>{const _0x4ef646=_0x11ac22;process[_0x4ef646(0x205)][_0x4ef646(0x174)](JSON[_0x4ef646(0x309)](_0x17daba[_0x4ef646(0x32a)],null,0x2)+'\x0a');});}catch(_0x18ffdf){if(!_0x485d90(_0x18ffdf))throw _0x18ffdf;console[_0x11ac22(0x1a6)](_0x18ffdf['message']),process[_0x11ac22(0x2c2)](0x1);}}function Z(_0x1f0503){const _0x2ee189=_0xa59708;process['stdout'][_0x2ee189(0x174)](_0x2ee189(0x1d8)+_0x1f0503[_0x2ee189(0x265)]+'\x20('+_0x1f0503[_0x2ee189(0x26d)]+_0x2ee189(0x2d4)+_0x1f0503[_0x2ee189(0x210)][_0x2ee189(0x189)]+'\x20tokens\x0a');}function Tn(_0x3628eb){const _0x20f8b5=_0xa59708;Z(_0x3628eb);for(let _0x1028f2 of Object[_0x20f8b5(0x198)](_0x3628eb[_0x20f8b5(0x1f5)])){let _0x82a86c=_0x3628eb['answers'][_0x1028f2],_0x227ae7=_0x82a86c[_0x20f8b5(0x1b5)]===_0x20f8b5(0x25c)?_0x20f8b5(0x179)+_0x82a86c[_0x20f8b5(0x25c)][_0x20f8b5(0x138)](0x2):_0x82a86c[_0x20f8b5(0x1b5)]===_0x20f8b5(0x2e9)?_0x20f8b5(0x25d)+_0x82a86c[_0x20f8b5(0x2e9)]+'\x20(confidence\x20'+_0x82a86c[_0x20f8b5(0x27b)][_0x20f8b5(0x138)](0x2)+')':_0x20f8b5(0x281)+_0x82a86c['score'][_0x20f8b5(0x138)](0x2)+_0x20f8b5(0x218)+_0x82a86c['confidence'][_0x20f8b5(0x138)](0x2)+')';process[_0x20f8b5(0x205)][_0x20f8b5(0x174)]('\x20\x20'+_0x1028f2+':\x20'+_0x227ae7+'\x0a');}}function Dn(_0x3544e6){const _0x117071=_0xa59708;Z(_0x3544e6),_0x3544e6[_0x117071(0x32e)][_0x117071(0x1d1)]((_0x1eb9dd,_0x33b21b)=>{const _0xd81966=_0x117071;process['stdout'][_0xd81966(0x174)]('\x20\x20'+(_0x33b21b+0x1)+'.\x20'+_0x1eb9dd['id']+'\x20\x20'+_0x1eb9dd['score'][_0xd81966(0x138)](0x3)+_0xd81966(0x33c)+_0x1eb9dd[_0xd81966(0x330)]+')\x0a');});}function Un(_0x1cc55e){const _0x4dcc88=_0xa59708;Z(_0x1cc55e),process[_0x4dcc88(0x205)]['write'](_0x4dcc88(0x17d)+_0x1cc55e[_0x4dcc88(0x22b)]+'\x0a');for(let _0x58e20e of _0x1cc55e[_0x4dcc88(0x32e)])process['stdout'][_0x4dcc88(0x174)]('\x20\x20'+_0x58e20e['id']+':\x20'+_0x58e20e[_0x4dcc88(0x14e)]+_0x4dcc88(0x218)+_0x58e20e['confidence'][_0x4dcc88(0x138)](0x2)+')\x0a');}async function Nn(_0xcb2dc5){const _0x9c4ff1=_0xa59708;let _0x228bf4=_0xcb2dc5[_0x9c4ff1(0x141)][_0x9c4ff1(0x163)]();_0x228bf4||(console[_0x9c4ff1(0x1a6)](_0x9c4ff1(0x1ec)),process['exit'](0x2));let {client:_0xfafbad}=await x(_0xcb2dc5);try{let _0x467951=_0x228bf4==='-'?{'data':await Rn(process[_0x9c4ff1(0x338)])}:_0x228bf4;m(_0xcb2dc5,await _0x23fda3(_0xfafbad,_0x467951,void 0x0),_0x398f39=>{const _0x43f8ad=_0x9c4ff1;process['stdout'][_0x43f8ad(0x174)](_0x398f39[_0x43f8ad(0x2a3)]+'\x0a');});}catch(_0x2a2b7c){if(_0x3bd34c(_0x2a2b7c)&&(console[_0x9c4ff1(0x1a6)](_0x2a2b7c[_0x9c4ff1(0x1ae)]),process[_0x9c4ff1(0x2c2)](_0x2a2b7c[_0x9c4ff1(0x28c)]===void 0x0?0x2:0x1)),typeof _0x2a2b7c?.[_0x9c4ff1(0x2ae)]!=_0x9c4ff1(0x23f))throw _0x2a2b7c;console[_0x9c4ff1(0x1a6)]('transcribe:\x20cannot\x20read\x20'+_0x228bf4+'\x20('+_0x2a2b7c[_0x9c4ff1(0x1ae)]+').'),process[_0x9c4ff1(0x2c2)](0x2);}}async function Pn(_0x4e6c10){const _0x251e60=_0xa59708;let [_0x5a4a94,_0x41d8f3,..._0x6ef252]=_0x4e6c10[_0x251e60(0x2cb)];(!_0x5a4a94||_0x6ef252[_0x251e60(0x21b)]>0x0||!_0x4e6c10[_0x251e60(0x1c7)])&&(console[_0x251e60(0x1a6)](_0x251e60(0x15f)),process['exit'](0x2));let _0x3b2fd1;try{_0x3b2fd1=await _0x1b2115({'projectId':_0x4e6c10[_0x251e60(0x1c7)],'type':_0x5a4a94,..._0x41d8f3?{'documentId':_0x41d8f3}:{},..._0x4e6c10['workingDirectory']?{'workingDirectory':_0x4e6c10[_0x251e60(0x12c)]}:{}});}catch(_0x3e01f6){console[_0x251e60(0x1a6)](_0x251e60(0x184)+(_0x3e01f6 instanceof Error?_0x3e01f6[_0x251e60(0x1ae)]:String(_0x3e01f6))),process[_0x251e60(0x2c2)](0x1);}m(_0x4e6c10,_0x3b2fd1,_0x300174=>{const _0x3925c6=_0x251e60;process[_0x3925c6(0x205)][_0x3925c6(0x174)](_0x300174[_0x3925c6(0x1ae)]+'\x0a');});}var he=_0xa59708(0x1dd),ye='Usage:\x20delegate-cli\x20maps\x20save-version\x20MESSAGE\x20--project\x20ID\x20[--working-dir\x20PATH]';async function _n(_0x4da314){const _0x52bb65=_0xa59708;let [_0x2c0120='',..._0x13c85f]=_0x4da314['operands'];if(_0x2c0120===_0x52bb65(0x2ea)){(_0x13c85f[_0x52bb65(0x21b)]>0x0||!_0x4da314['projectId']||!_0x4da314[_0x52bb65(0x2a4)]||!_0x4da314[_0x52bb65(0x181)])&&(console['error'](he),process['exit'](0x2));let _0x57d458=await we(_0x52bb65(0x2ea),()=>_0x2c7c9d({'projectId':_0x4da314[_0x52bb65(0x1c7)],'remote':_0x4da314['remote'],'mapName':_0x4da314[_0x52bb65(0x181)],..._0x4da314[_0x52bb65(0x12c)]?{'workingDirectory':_0x4da314[_0x52bb65(0x12c)]}:{}}));m(_0x4da314,_0x57d458,_0x12fb55=>{const _0x5c0d10=_0x52bb65;process[_0x5c0d10(0x205)][_0x5c0d10(0x174)]('Shared\x20the\x20Map\x20of\x20Work\x20of\x20'+_0x4da314[_0x5c0d10(0x1c7)]+_0x5c0d10(0x1ef)+_0x12fb55[_0x5c0d10(0x2a4)]+_0x5c0d10(0x2bc)+_0x12fb55[_0x5c0d10(0x181)]+_0x5c0d10(0x217));});return;}if(_0x2c0120===_0x52bb65(0x1b1)){let _0x18e069=_0x13c85f[_0x52bb65(0x246)]('\x20')[_0x52bb65(0x163)]();(!_0x18e069||!_0x4da314['projectId'])&&(console[_0x52bb65(0x1a6)](ye),process[_0x52bb65(0x2c2)](0x2));let _0x465384=await we(_0x52bb65(0x1b1),()=>_0xdb4366({'projectId':_0x4da314[_0x52bb65(0x1c7)],'message':_0x18e069,..._0x4da314[_0x52bb65(0x12c)]?{'workingDirectory':_0x4da314[_0x52bb65(0x12c)]}:{}}));m(_0x4da314,_0x465384,_0x3c6dc4=>{const _0x2f953f=_0x52bb65;process[_0x2f953f(0x205)]['write']('Saved\x20version\x20'+_0x3c6dc4[_0x2f953f(0x2c7)]+_0x2f953f(0x2c1)+_0x4da314['projectId']+':\x20'+_0x3c6dc4[_0x2f953f(0x1ae)]+'\x0a');});return;}console[_0x52bb65(0x1a6)](he+'\x0a'+ye),process[_0x52bb65(0x2c2)](0x2);}async function we(_0x435618,_0x28a550){const _0x3b7240=_0xa59708;try{return await _0x28a550();}catch(_0x4f3cf7){let _0x208341=_0x4f3cf7?.[_0x3b7240(0x292)],_0x433428=Array['isArray'](_0x208341)&&_0x208341['length']>0x0?'\x20('+_0x208341[_0x3b7240(0x246)](',\x20')+')':'';console[_0x3b7240(0x1a6)](_0x3b7240(0x186)+_0x435618+':\x20'+(_0x4f3cf7 instanceof Error?_0x4f3cf7['message']:String(_0x4f3cf7))+_0x433428),process[_0x3b7240(0x2c2)](0x1);}}async function Rn(_0x1c720c){const _0x11481c=_0xa59708;let _0x55d67b=[];for await(let _0x4c8fe1 of _0x1c720c)_0x55d67b['push'](Buffer[_0x11481c(0x2be)](_0x4c8fe1));return Buffer[_0x11481c(0x135)](_0x55d67b);}var ke=[_0xa59708(0x27d),_0xa59708(0x1e4),'show',_0xa59708(0x1ba),'claim',_0xa59708(0x304),'accept','dismiss',_0xa59708(0x149),_0xa59708(0x2f1)],be={'list':_0xa59708(0x225),'pending':'delegations\x20pending\x20<session-id>','show':_0xa59708(0x123),'create':_0xa59708(0x262),'claim':'delegations\x20claim\x20<delegation-id|delegate://delegation/…>','complete':'delegations\x20complete\x20<delegation-id>\x20\x22<answer>\x22|-','accept':_0xa59708(0x2b4),'dismiss':'delegations\x20dismiss\x20<delegation-id>','cancel':_0xa59708(0x214),'delete':_0xa59708(0x1d9)};async function On(_0x3910a3){const _0x50c5fb=_0xa59708;let [_0x438db3='',_0x101639='',..._0xcde931]=_0x3910a3['operands'];ke[_0x50c5fb(0x24c)](_0x438db3)||(console['error']((_0x438db3?_0x50c5fb(0x2a7)+_0x438db3+'.\x20':'')+_0x50c5fb(0x1ee)+ke['join'](_0x50c5fb(0x1db))+'.'),process['exit'](0x2));let _0x5a881b=_0x438db3;_0x5a881b!==_0x50c5fb(0x1ba)&&(_0x3910a3['delegateTo']!==void 0x0||_0x3910a3['contextSummary']!==void 0x0||_0x3910a3[_0x50c5fb(0x32d)]!==void 0x0)&&(console[_0x50c5fb(0x1a6)]('--to,\x20--summary\x20and\x20--session\x20apply\x20to\x20`delegate-cli\x20delegations\x20create`\x20only.'),process[_0x50c5fb(0x2c2)](0x2));let _0xbe459c=(_0x5a881b===_0x50c5fb(0x1ba)?_0x3910a3[_0x50c5fb(0x2cb)][_0x50c5fb(0x1d0)](0x1):_0xcde931)[_0x50c5fb(0x246)]('\x20')[_0x50c5fb(0x163)](),_0x4a3314=_0x5a881b===_0x50c5fb(0x1ba)||_0x5a881b==='complete';(_0x5a881b!==_0x50c5fb(0x1ba)&&!_0x101639||(_0x4a3314?!_0xbe459c:_0xbe459c)||_0x5a881b===_0x50c5fb(0x1ba)&&!_0x3910a3[_0x50c5fb(0x32d)])&&(console[_0x50c5fb(0x1a6)]('Usage:\x20delegate-cli\x20'+be[_0x5a881b]),process['exit'](0x2));let _0x4bde5b=_0x4a3314&&_0xbe459c==='-'?(await J('-',process[_0x50c5fb(0x338)]))[_0x50c5fb(0x163)]():_0xbe459c;_0x4a3314&&!_0x4bde5b&&(console[_0x50c5fb(0x1a6)](_0x50c5fb(0x318)+be[_0x5a881b]+_0x50c5fb(0x23d)),process[_0x50c5fb(0x2c2)](0x2));let {client:_0xb8fd7}=await x(_0x3910a3);try{await Ln(_0x3910a3,_0xb8fd7,_0x5a881b,_0x101639,_0x4bde5b);}catch(_0x4823db){if(!_0x5622be(_0x4823db))throw _0x4823db;console[_0x50c5fb(0x1a6)](_0x4823db[_0x50c5fb(0x1ae)]),process[_0x50c5fb(0x2c2)](0x1);}}async function Ln(_0x3530c9,_0xf04019,_0x30fb29,_0x55c37f,_0x5951a6){const _0x1dffa0=_0xa59708;switch(_0x30fb29){case _0x1dffa0(0x27d):m(_0x3530c9,await _0x34bdca(_0xf04019,_0x55c37f),Cn);return;case _0x1dffa0(0x1e4):m(_0x3530c9,await _0x36a701(_0xf04019,_0x55c37f),_0x49ff2d=>{const _0x2e9208=_0x1dffa0;_0x49ff2d[_0x2e9208(0x175)]&&process[_0x2e9208(0x205)]['write']('Claimed\x20from\x20delegation\x20'+_0x49ff2d[_0x2e9208(0x175)]['id']+'\x20('+_0x49ff2d[_0x2e9208(0x175)][_0x2e9208(0x28c)]+_0x2e9208(0x1f4)),_0x49ff2d[_0x2e9208(0x137)][_0x2e9208(0x21b)]===0x0&&process[_0x2e9208(0x13f)]['write'](_0x2e9208(0x251));for(let _0x1b1668 of _0x49ff2d['pendingResults'])process[_0x2e9208(0x205)][_0x2e9208(0x174)]('\x0a'+_0x1b1668['id']+'\x20\x20from\x20'+(_0x1b1668[_0x2e9208(0x296)]??'a\x20colleague')+'\x20\x20'+(_0x1b1668[_0x2e9208(0x1cd)]??'')+'\x0a'+(_0x1b1668[_0x2e9208(0x2f6)]?.[_0x2e9208(0x31e)]??'')+'\x0a');_0x49ff2d['pendingResults'][_0x2e9208(0x21b)]>0x0&&process['stderr']['write'](_0x2e9208(0x1ed));});return;case _0x1dffa0(0x133):m(_0x3530c9,await _0x468635(_0xf04019,_0x55c37f),ve);return;case _0x1dffa0(0x1ba):{let _0x5c6801=await _0x2886e2(_0xf04019,{'sessionId':_0x3530c9[_0x1dffa0(0x32d)],'task':_0x5951a6,..._0x3530c9[_0x1dffa0(0x268)]!==void 0x0&&{'contextSummary':_0x3530c9[_0x1dffa0(0x268)]},..._0x3530c9[_0x1dffa0(0x2ee)]!==void 0x0&&{'recipient':_0x3530c9[_0x1dffa0(0x2ee)]}});m(_0x3530c9,_0x5c6801,_0x24127b=>{const _0x4c751d=_0x1dffa0;_0x24127b[_0x4c751d(0x124)]?process['stdout'][_0x4c751d(0x174)](_0x4c751d(0x32c)+_0x24127b[_0x4c751d(0x161)]+_0x4c751d(0x1ef)+_0x24127b[_0x4c751d(0x124)][_0x4c751d(0x1a3)]+'\x20<'+_0x24127b[_0x4c751d(0x124)][_0x4c751d(0x148)]+_0x4c751d(0x22e)):process[_0x4c751d(0x205)][_0x4c751d(0x174)]('Created\x20delegation\x20'+_0x24127b['delegationId']+'.\x20Share:\x20'+_0x24127b[_0x4c751d(0x275)]+'\x0a');});return;}case _0x1dffa0(0x16b):{let _0x55e62d=await _0x502ac7(_0xf04019,_0x55c37f);m(_0x3530c9,_0x55e62d,_0x10a717=>{const _0x56036a=_0x1dffa0;ve(_0x10a717),process[_0x56036a(0x205)][_0x56036a(0x174)](_0x56036a(0x2e3)+_0x10a717[_0x56036a(0x32d)]+'\x0a'),process[_0x56036a(0x13f)][_0x56036a(0x174)](_0x56036a(0x290)+_0x10a717[_0x56036a(0x32d)]+_0x56036a(0x212)+_0x10a717['delegationId']+'\x20\x22<answer>\x22\x0a');});return;}case _0x1dffa0(0x304):{let {alreadyCompleted:_0x1f6b34}=await _0x13d935(_0xf04019,_0x55c37f,{'content':_0x5951a6});m(_0x3530c9,{'delegationId':_0x55c37f,'alreadyCompleted':_0x1f6b34},_0x3afc67=>{const _0x35465c=_0x1dffa0;process[_0x35465c(0x205)][_0x35465c(0x174)]((_0x3afc67[_0x35465c(0x30e)]?'Already\x20answered':'Answered')+_0x35465c(0x15d)+_0x3afc67[_0x35465c(0x161)]+'.\x0a');});return;}case _0x1dffa0(0x2df):{let _0x3ac8e5=await _0x4d4b9b(_0xf04019,_0x55c37f);m(_0x3530c9,{'delegationId':_0x55c37f,..._0x3ac8e5},_0x343e58=>{const _0x51a38d=_0x1dffa0;process[_0x51a38d(0x205)][_0x51a38d(0x174)]((_0x343e58[_0x51a38d(0x325)]?_0x51a38d(0x1d6):'Accepted')+_0x51a38d(0x15d)+_0x343e58[_0x51a38d(0x161)]+'.\x0a');});return;}default:{let _0x217a95={'dismiss':_0x2bf481,'cancel':_0x107e92,'delete':_0x30ab5d}[_0x30fb29];await _0x217a95(_0xf04019,_0x55c37f);let _0x5536bf={'dismiss':_0x1dffa0(0x289),'cancel':'cancelled','delete':_0x1dffa0(0x144)}[_0x30fb29];m(_0x3530c9,{'delegationId':_0x55c37f,[_0x5536bf]:!0x0},()=>{const _0x47c630=_0x1dffa0;process['stdout'][_0x47c630(0x174)](''+_0x5536bf[0x0]['toUpperCase']()+_0x5536bf[_0x47c630(0x1d0)](0x1)+_0x47c630(0x15d)+_0x55c37f+'.\x0a');});}}}function Cn(_0x5943a4){const _0x2fa8c8=_0xa59708;if(_0x5943a4[_0x2fa8c8(0x21b)]===0x0){process[_0x2fa8c8(0x13f)][_0x2fa8c8(0x174)](_0x2fa8c8(0x120));return;}process['stdout'][_0x2fa8c8(0x174)]('ID'[_0x2fa8c8(0x240)](0x24)+'\x20\x20'+_0x2fa8c8(0x26f)[_0x2fa8c8(0x240)](0x9)+'\x20\x20'+_0x2fa8c8(0x2ec)[_0x2fa8c8(0x240)](0x18)+_0x2fa8c8(0x233));for(let _0x1e2805 of _0x5943a4)process[_0x2fa8c8(0x205)][_0x2fa8c8(0x174)](_0x1e2805['id']['padEnd'](0x24)+'\x20\x20'+_0x1e2805[_0x2fa8c8(0x28c)][_0x2fa8c8(0x240)](0x9)+'\x20\x20'+(_0x1e2805[_0x2fa8c8(0x296)]??'-')[_0x2fa8c8(0x240)](0x18)+'\x20\x20'+(_0x1e2805[_0x2fa8c8(0x1cd)]??'')+'\x0a');}function ve(_0x11be5a){const _0x1151d4=_0xa59708;process[_0x1151d4(0x205)]['write'](_0x1151d4(0x211)+(_0x11be5a['sourceUserEmail']??'-')+'\x0a'),_0x11be5a[_0x1151d4(0x172)]&&process[_0x1151d4(0x205)]['write'](_0x1151d4(0x2e3)+_0x11be5a['sourceTitle']+'\x0a'),process[_0x1151d4(0x205)][_0x1151d4(0x174)](_0x1151d4(0x12a)+(_0x11be5a['task']??'-')+'\x0a'),_0x11be5a['contextSummary']&&process[_0x1151d4(0x205)]['write']('\x0a'+_0x11be5a[_0x1151d4(0x268)]+'\x0a\x0a');}async function jn(_0x1a110c){const _0x3d3182=_0xa59708;_0x1a110c[_0x3d3182(0x141)][_0x3d3182(0x163)]()||(console['error']('Usage:\x20delegate-cli\x20org-users\x20<name\x20or\x20email\x20prefix>'),process['exit'](0x2));let {client:_0x9c07d6}=await x(_0x1a110c),_0x480b82;try{_0x480b82=await _0x9e49d8(_0x9c07d6,_0x1a110c[_0x3d3182(0x141)]);}catch(_0x9239a0){if(!_0x5622be(_0x9239a0))throw _0x9239a0;console[_0x3d3182(0x1a6)](_0x9239a0[_0x3d3182(0x1ae)]),process['exit'](0x1);}m(_0x1a110c,_0x480b82,_0x1d34f3=>{const _0x570019=_0x3d3182;_0x1d34f3['length']===0x0&&process[_0x570019(0x13f)][_0x570019(0x174)]('No\x20one\x20matches\x20\x22'+_0x1a110c[_0x570019(0x141)][_0x570019(0x163)]()+_0x570019(0x217));for(let _0x511671 of _0x1d34f3)process['stdout'][_0x570019(0x174)](_0x511671[_0x570019(0x148)][_0x570019(0x240)](0x20)+'\x20\x20'+_0x511671[_0x570019(0x1a3)]+'\x0a');});}async function Mn(_0x4baf10){const _0x3a2960=_0xa59708;_0x4baf10['env']===_0x3a2960(0x15e)&&(console[_0x3a2960(0x1a6)]('--env\x20localhost\x20has\x20no\x20OAuth\x20flow;\x20pick\x20alpha,\x20staging,\x20or\x20production.'),process[_0x3a2960(0x2c2)](0x2));let _0x55fabe=G(_0x58f6b2()),_0x2a7af6=_0x4baf10['skipEnvCheck'];if(_0x4baf10[_0x3a2960(0x19e)]){let _0x197b0e=_0x4baf10[_0x3a2960(0x19e)];await _0x3e0c34({'env':_0x197b0e,'tenant':_0x4baf10[_0x3a2960(0x20d)]??q(_0x55fabe,_0x5de306[_0x197b0e]),'skipEnvCheck':_0x2a7af6});return;}let _0x537721=_0x4baf10[_0x3a2960(0x2b0)]??Pe();if(_0x537721){await _0x3e0c34({'baseUrl':_0x537721,'tenant':_0x4baf10[_0x3a2960(0x20d)]??q(_0x55fabe,_0x537721),'skipEnvCheck':_0x2a7af6});return;}if(_0x55fabe?.[_0x3a2960(0x2ba)]){await _0x3e0c34({'baseUrl':_0x55fabe[_0x3a2960(0x2ba)],'tenant':_0x4baf10[_0x3a2960(0x20d)]??_0x55fabe[_0x3a2960(0x1aa)],'skipEnvCheck':_0x2a7af6});return;}console[_0x3a2960(0x1a6)](_0x3a2960(0x28e)),process['exit'](0x2);}function q(_0x2bada1,_0x23bc34){const _0x5b17a4=_0xa59708;return _0x2bada1?.[_0x5b17a4(0x2ba)]&&Fn(_0x2bada1[_0x5b17a4(0x2ba)],_0x23bc34)?_0x2bada1[_0x5b17a4(0x1aa)]:void 0x0;}function Fn(_0x2e4fa2,_0x41e99a){const _0x2197c1=_0xa59708;try{return new URL(_0x2e4fa2)[_0x2197c1(0x272)]===new URL(_0x41e99a)['origin'];}catch{return!0x1;}}async function Bn(_0x459dae){const _0x1f55d5=_0xa59708;z()&&(console[_0x1f55d5(0x1a6)](_0x1f55d5(0x20e)),process['exit'](0x2));let _0x72a4fe=await _0x2c87f9();if(_0x72a4fe||(console['error'](Hn()),process[_0x1f55d5(0x2c2)](0x2)),_0x459dae[_0x1f55d5(0x163)]()){let _0x32b51e=await _0x730c9a(_0x72a4fe,_0x459dae);_0x505698(_0x32b51e)||(console[_0x1f55d5(0x1a6)](_0x1f55d5(0x2b9)+_0x58f6b2()+';\x20the\x20saved\x20login\x20still\x20uses\x20'+_0x72a4fe['tenantName']+'.'),process[_0x1f55d5(0x2c2)](0x1)),console[_0x1f55d5(0x1bd)](_0x1f55d5(0x1b7)+_0x32b51e['tenantName']+'\x20('+_0x32b51e['tenantId']+_0x1f55d5(0x301)+_0x58f6b2());return;}Jn(await _0x1b8b4b(_0x72a4fe),_0x72a4fe);}function Hn(){const _0x22a23a=_0xa59708;if(_0x7c43eb[_0x22a23a(0x31a)](_0x58f6b2()))return _0x22a23a(0x256);let _0x13d19c=Y();return G(_0x13d19c)?_0x22a23a(0x1fe)+_0x13d19c+_0x22a23a(0x24e):_0x22a23a(0x332);}function Jn(_0x1e4580,_0x1c5ddc){const _0x1a4afc=_0xa59708;let _0x5046b4=_0x1e4580['map'](_0x17f52c=>_0x17f52c['id']===_0x1c5ddc[_0x1a4afc(0x1d2)]?'*\x20'+_0x17f52c[_0x1a4afc(0x236)]+_0x1a4afc(0x2f5):'\x20\x20'+_0x17f52c[_0x1a4afc(0x236)]);process['stdout']['write'](_0x1a4afc(0x27e)+(_0x1c5ddc['orgLogicalName']??_0x1c5ddc[_0x1a4afc(0x19a)])+':\x0a'+_0x5046b4[_0x1a4afc(0x246)]('\x0a')+'\x0a'),_0x1e4580[_0x1a4afc(0x21b)]>0x1&&process[_0x1a4afc(0x205)][_0x1a4afc(0x174)]('Switch\x20with:\x20delegate-cli\x20tenant\x20<name>\x0a');}function Gn(_0x1e7fdb){const _0xd3ca77=_0xa59708;return _0x1e7fdb?.['response']?.['status']===0x191||/401/[_0xd3ca77(0x31c)](String(_0x1e7fdb?.['message']??''));}var w={'lastType':null,'quiet':!0x1},Oe=_0x1302f5=>{const _0x46c694=_0xa59708;switch(_0x1302f5[_0x46c694(0x1b5)]){case _0x46c694(0x329):_0x1302f5[_0x46c694(0x32d)]&&_0x1302f5[_0x46c694(0x32d)]!==w[_0x46c694(0x32d)]&&(process['stderr']['write'](_0x46c694(0x17f)+_0x1302f5[_0x46c694(0x32d)]+_0x46c694(0x1c4)+_0x1302f5['sessionId']+')\x0a'),w[_0x46c694(0x32d)]=_0x1302f5[_0x46c694(0x32d)]);break;case _0x46c694(0x33a):_0x1302f5[_0x46c694(0x1c1)]&&_0x1302f5['turnId']!==w[_0x46c694(0x1c1)]&&(w[_0x46c694(0x157)]!==null&&process[_0x46c694(0x13f)][_0x46c694(0x174)]('\x0a'),process[_0x46c694(0x13f)][_0x46c694(0x174)](_0x46c694(0x173)+_0x1302f5[_0x46c694(0x1c1)]+_0x46c694(0x1c3)+_0x1302f5[_0x46c694(0x32d)]+_0x46c694(0x284)+_0x1302f5['turnId']+')\x0a'),w[_0x46c694(0x1c1)]=_0x1302f5[_0x46c694(0x1c1)],w['lastType']=_0x46c694(0x33a));break;case _0x46c694(0x339):_0x1302f5['content']&&!w[_0x46c694(0x2f9)]&&(w[_0x46c694(0x157)]!==_0x46c694(0x339)&&process[_0x46c694(0x13f)][_0x46c694(0x174)](_0x46c694(0x204)),process['stderr'][_0x46c694(0x174)](_0x1302f5[_0x46c694(0x31e)]),w[_0x46c694(0x157)]=_0x46c694(0x339));break;case _0x46c694(0x19c):w['lastType']!==null&&process['stderr']['write']('\x0a'),process[_0x46c694(0x13f)][_0x46c694(0x174)](_0x46c694(0x1e9)+(_0x1302f5[_0x46c694(0x15c)]??_0x46c694(0x14a))+'\x0a'),w[_0x46c694(0x157)]=_0x46c694(0x19c);break;case'message':_0x1302f5[_0x46c694(0x31e)]&&(w[_0x46c694(0x157)]!=='message'&&w[_0x46c694(0x157)]!==null&&process[_0x46c694(0x205)][_0x46c694(0x174)]('\x0a'),process[_0x46c694(0x205)]['write'](_0x1302f5[_0x46c694(0x31e)]),w[_0x46c694(0x157)]=_0x46c694(0x1ae));break;case _0x46c694(0x1a6):w[_0x46c694(0x157)]!==null&&process['stderr']['write']('\x0a'),process[_0x46c694(0x13f)][_0x46c694(0x174)]('✗\x20'+(_0x1302f5['error']??_0x46c694(0x1a6))+'\x0a'),w[_0x46c694(0x157)]=_0x46c694(0x1a6);break;case _0x46c694(0x13b):(w['lastType']===_0x46c694(0x1ae)||w['lastType']===_0x46c694(0x339))&&process[_0x46c694(0x205)][_0x46c694(0x174)]('\x0a'),process[_0x46c694(0x13f)][_0x46c694(0x174)]('✓\x20Done\x0a'),w['lastType']=_0x46c694(0x13b);break;}};function Se(_0x406155,_0x2a3894,_0x8482fc,_0x3f020f){const _0x5e6f8b=_0xa59708;let _0x133a63=_0x406155['model']||process.env.MODEL;return{'backendUrl':_0x8482fc,'auth':_0x2a3894,'enableComputerUse':!_0x406155['headless']&&!_0x406155[_0x5e6f8b(0x203)],'autoSpawnInterop':!_0x406155[_0x5e6f8b(0x302)],'enableConnections':!_0x406155[_0x5e6f8b(0x2e2)],'enableSecurity':!_0x406155[_0x5e6f8b(0x187)],'keepInteropAlive':_0x406155[_0x5e6f8b(0x1e3)],..._0x3f020f[_0x5e6f8b(0x1dc)]?{'enableBackgroundCommands':!0x1}:{},..._0x406155[_0x5e6f8b(0x279)]?{'enableMemory':!0x1}:{},..._0x406155['taskAutomation']?{'enableTaskAutomation':!0x0}:{},..._0x406155[_0x5e6f8b(0x2c0)][_0x5e6f8b(0x21b)]>0x0?{'preloadSkills':_0x406155[_0x5e6f8b(0x2c0)]}:{},..._0x133a63?{'model':_0x133a63}:{},..._0x406155['projectId']?{'projectId':_0x406155['projectId']}:{},..._0x406155[_0x5e6f8b(0x340)]?{'vertical':_0x406155[_0x5e6f8b(0x340)]}:{},..._0x406155[_0x5e6f8b(0x12c)]?{'workingDirectory':_0x406155['workingDirectory']}:{},..._0x406155['bundledSkillsPath']?{'bundledSkillsPath':_0x406155['bundledSkillsPath']}:{},..._0x406155[_0x5e6f8b(0x24f)]?{'effort':_0x406155[_0x5e6f8b(0x24f)]}:{},..._0x406155[_0x5e6f8b(0x32d)]?{'sessionId':_0x406155['sessionId']}:{},..._0x406155[_0x5e6f8b(0x291)]?{'verbose':!0x0}:{}};}async function Wn(_0xcc7d2a){const _0x45c17d=_0xa59708;let _0x1ea59d=_0xcc7d2a['outputFormat']!==_0x45c17d(0x2a3),_0x1e2e9b=_0xcc7d2a[_0x45c17d(0x121)]===void 0x0?null:Re(_0xcc7d2a['jsonSchemaPath'],_0x45c17d(0x30d)),_0x4c3572=!_0x1ea59d&&!_0x1e2e9b&&!_0xcc7d2a[_0x45c17d(0x209)]&&_0xcc7d2a[_0x45c17d(0x141)]!=='-'&&!!process[_0x45c17d(0x338)]['isTTY']&&!!process[_0x45c17d(0x205)]['isTTY'],_0x1eb442=_0xcc7d2a[_0x45c17d(0x29a)]==='stream-json'?re(process[_0x45c17d(0x338)],_0x1f9bbf=>{const _0x7895a9=_0x45c17d;process[_0x7895a9(0x13f)][_0x7895a9(0x174)](_0x1f9bbf['message']+':\x20ignored\x0a');}):null,_0x48f387=_0x1eb442?(await _0x1eb442[_0x45c17d(0x286)]())['value']:void 0x0,_0x3836f7=_0x1eb442?_0x48f387?.[_0x45c17d(0x2a3)]??'':_0x4c3572?_0xcc7d2a['prompt'][_0x45c17d(0x163)]():await J(_0xcc7d2a[_0x45c17d(0x141)],process[_0x45c17d(0x338)]);if(!_0x4c3572&&!_0x3836f7&&(console[_0x45c17d(0x1a6)](_0x45c17d(0x29d)),process[_0x45c17d(0x2c2)](0x2)),!_0x1ea59d){await Ae(_0xcc7d2a,_0x3836f7,_0x4c3572,null,_0x1e2e9b,null);return;}let _0x2bf885=!0x1,_0x34d714=_0x342e58=>{const _0xc5e146=_0x45c17d;_0x2bf885=!0x0,L(_0x599331(_0x342e58)),(_0x342e58[_0xc5e146(0x2a6)]||_0x342e58[_0xc5e146(0x334)])&&(process[_0xc5e146(0x2ab)]=0x1);},_0x224c1f=Date[_0x45c17d(0x2d6)]();try{await Ae(_0xcc7d2a,_0x3836f7,!0x1,_0x34d714,_0x1e2e9b,_0x1eb442?{'messages':_0x1eb442,'first':_0x48f387,'close':()=>{const _0x55ee12=_0x45c17d;process['stdin'][_0x55ee12(0x22d)]();}}:null);}catch(_0x4b13ff){if(_0x2bf885)throw _0x4b13ff;process['stderr'][_0x45c17d(0x174)]((_0x4b13ff instanceof Error?_0x4b13ff[_0x45c17d(0x348)]??_0x4b13ff[_0x45c17d(0x1ae)]:String(_0x4b13ff))+'\x0a'),_0x34d714(new _0x1d7007(_0x224c1f)['finish']({'endedAtMs':Date[_0x45c17d(0x2d6)](),'usage':[],'error':_0x4b13ff}));}finally{_0x1eb442&&(process[_0x45c17d(0x338)][_0x45c17d(0x22d)](),_0x1eb442['return'](void 0x0));}}async function Ae(_0x1bd2ca,_0x3f9363,_0x5c0235,_0xf30042,_0x585b70,_0x3f3407){const _0xc7684=_0xa59708;w={'lastType':null,'quiet':_0x1bd2ca[_0xc7684(0x2f9)]};let _0x481413=new Set(),_0x1e3aec,_0x14661c=_0x175e1c=>{const _0x1cd97f=_0xc7684;(!_0xf30042||_0x175e1c[_0x1cd97f(0x1b5)]==='session_start'||_0x175e1c[_0x1cd97f(0x1b5)]===_0x1cd97f(0x33a))&&(_0x1e3aec??Oe)(_0x175e1c);for(let _0x1bca68 of _0x481413)_0x1bca68(_0x175e1c);},_0x380366=await V(),_0xb18101=new _0x1c31da();_0xb18101['onEvent'](_0x14661c);let _0x34f6dc=_0x306d32(_0x1bd2ca[_0xc7684(0x19e)],_0x380366,_0x1bd2ca[_0xc7684(0x14b)]);X(_0x1bd2ca['env'],_0x1bd2ca[_0xc7684(0x14b)],_0x34f6dc);let _0x5350b5={'input':null},_0x26666e=_0x5c0235?ne(()=>_0x5350b5[_0xc7684(0x343)],_0x2e667d=>{const _0xf0b84e=_0xc7684;process[_0xf0b84e(0x13f)]['write'](_0x2e667d);}):null,_0x18325a=_0x5206fe=>_0x26666e?{..._0x5206fe,'askUser':_0x26666e}:_0x5206fe,_0x254ceb=_0x18325a(Se(_0x1bd2ca,_0x380366,_0x34f6dc,{'oneTurn':!_0x5c0235})),_0x1213b2=!0x1,_0x34001c=!0x1,_0x33f517,_0xc9954a=()=>_0x33f517??=_0xb18101['destroy'](),_0x396f8b=()=>{const _0x4c497e=_0xc7684;_0x34001c&&process[_0x4c497e(0x2c2)](0x82),_0x34001c=!0x0,process[_0x4c497e(0x13f)][_0x4c497e(0x174)](_0x4c497e(0x125)),_0x1213b2&&_0xb18101[_0x4c497e(0x149)]()['catch'](_0x3e19fb=>console[_0x4c497e(0x1a6)](_0x3e19fb))[_0x4c497e(0x1f0)](_0xc9954a)[_0x4c497e(0x1f0)](()=>process[_0x4c497e(0x2c2)](0x82),_0x4e5b30=>{const _0x7802da=_0x4c497e;console['error'](_0x4e5b30),process[_0x7802da(0x2c2)](0x82);});};process['on'](_0xc7684(0x324),_0x396f8b);let _0x40f3fc=_0x1bd2ca[_0xc7684(0x16a)],_0x441994=async _0xff626a=>{const _0x4edce8=_0xc7684;let _0x1cbf0d=_0x40f3fc;_0x40f3fc=[];let _0x32ece0=()=>_0xb18101[_0x4edce8(0x238)](_0xff626a,{'attachments':_0x1cbf0d});try{return await _0x32ece0();}catch(_0x373044){if(_0x34001c||!Gn(_0x373044)||!process[_0x4edce8(0x338)][_0x4edce8(0x18e)]||_0x1bd2ca['env']===_0x4edce8(0x15e)||!(_0x1bd2ca['env']||_0x380366['baseUrl']))throw _0x373044;process[_0x4edce8(0x13f)][_0x4edce8(0x174)](_0x4edce8(0x1ce));let _0x37b878=_0xb18101['getSessionId']()??_0x1bd2ca[_0x4edce8(0x32d)],_0x38b612=await _0x3e0c34(_0x1bd2ca['env']?{'env':_0x1bd2ca[_0x4edce8(0x19e)],'tenant':q(_0x380366,_0x5de306[_0x1bd2ca['env']]),'skipEnvCheck':!0x0}:{'baseUrl':_0x380366[_0x4edce8(0x2ba)],'tenant':_0x380366['tenantName'],'skipEnvCheck':!0x0}),_0x3ed86e={'text':'','failed':!0x1,'sessionId':_0x37b878};return _0x34001c||(_0x1213b2=!0x1,await _0xc9954a(),_0x34001c)?_0x3ed86e:(_0xb18101=new _0x1c31da(),_0x33f517=void 0x0,_0xb18101['onEvent'](_0x14661c),_0x380366=_0x38b612,await _0xb18101['initialize']({..._0x18325a(Se(_0x1bd2ca,_0x380366,_0x34f6dc,{'oneTurn':!_0x5c0235})),..._0x37b878?{'sessionId':_0x37b878}:{}}),_0x1213b2=!0x0,_0x34001c?_0x3ed86e:_0x32ece0());}};try{if(await _0xb18101[_0xc7684(0x316)](_0x254ceb),_0x1213b2=!0x0,_0x34001c)return;if(_0x5c0235)await Qn({'prompt':_0x3f9363,'sendMessage':_0x441994,'onSigint':_0x396f8b,'setAnswerInput':_0x5d0cc0=>{const _0x4781ba=_0xc7684;_0x5350b5[_0x4781ba(0x343)]=_0x5d0cc0;},'registerEventPrinter':_0x22ba07=>(_0x1e3aec=_0x22ba07,()=>{_0x1e3aec=void 0x0;})});else{if(_0xf30042||_0x585b70){let _0x409bf9=_0x1bd2ca[_0xc7684(0x1e0)]===_0xc7684(0x312)?_0x551c36=>L(_0x2af09d(_0x551c36)):()=>{},_0x1e854c=_0x3f3407?ie({'input':_0x3f3407,'getAgent':()=>_0xb18101,'replay':_0x1bd2ca[_0xc7684(0x2fc)],'onEvent':_0x312961=>(_0x481413[_0xc7684(0x16d)](_0x312961),()=>{const _0x313f0e=_0xc7684;_0x481413[_0x313f0e(0x2f1)](_0x312961);}),'write':L,'isRunStopNotice':_0x3f3d07,'actionableErrorText':_0x38fbe1,'warn':_0x4a1caf=>{const _0x390a07=_0xc7684;process[_0x390a07(0x13f)][_0x390a07(0x174)](_0x4a1caf);}}):null,_0x34030c=await _0x123282({'onEvent':_0x4888b2=>(_0x481413[_0xc7684(0x16d)](_0x4888b2),()=>{const _0x32165e=_0xc7684;_0x481413[_0x32165e(0x2f1)](_0x4888b2);}),'sendMessage':async _0x286172=>{const _0x4ea2d1=_0xc7684;try{let _0x477e59=await _0x441994(_0x286172);return _0x1e854c?await _0x1e854c['settle'](_0x477e59):_0x477e59;}finally{_0x1e854c?.[_0x4ea2d1(0x2de)]();}},'getSessionId':()=>_0xb18101['getSessionId'](),'getTurnUsageHistory':_0xce09a1=>_0xb18101[_0xc7684(0x2cd)](_0xce09a1),'complete':_0x27213a=>_0xb18101[_0xc7684(0x304)](_0x27213a)},_0x3f9363,void 0x0,_0x409bf9,_0x585b70?{'outputSchema':_0x585b70}:void 0x0);_0xf30042?_0xf30042(_0x34030c):Kn(_0x34030c);}else await _0x441994(_0x3f9363);}}catch(_0x130063){if(!_0x34001c)throw _0x130063;}finally{try{await _0xc9954a();}finally{process['off'](_0xc7684(0x324),_0x396f8b),_0x34001c&&(process[_0xc7684(0x2ab)]=0x82);}}}function Kn(_0x11ff45){const _0xcf321d=_0xa59708;_0x11ff45[_0xcf321d(0x334)]?(console[_0xcf321d(0x1a6)](_0xcf321d(0x2fe)+_0x11ff45['structuredError']['message']),process[_0xcf321d(0x2ab)]=0x1):_0x11ff45[_0xcf321d(0x2a6)]?(console['error'](_0xcf321d(0x132)+_0x11ff45[_0xcf321d(0x1a6)]+').'),process[_0xcf321d(0x2ab)]=0x1):process['stdout'][_0xcf321d(0x174)](JSON['stringify'](_0x11ff45['structured'],null,0x2)+'\x0a');}function qn(_0x53ae06,_0x3677e5){const _0x332675=_0xa59708;let _0x518e64=process[_0x332675(0x205)][_0x332675(0x174)][_0x332675(0x2ff)](process['stdout']),_0x30be92=!0x1;return process['stdout']['write']=(..._0x4bc53e)=>{const _0x320f9f=_0x332675;if(!_0x30be92)return _0x518e64(..._0x4bc53e);_0x3d882d(_0x3677e5,0x0),_0x2c85d7(_0x3677e5,0x0);let _0x2f17ef=_0x518e64(..._0x4bc53e);return _0x53ae06[_0x320f9f(0x141)](!0x0),_0x2f17ef;},{'show':()=>{const _0x69cbfc=_0x332675;_0x30be92=!0x0,_0x53ae06[_0x69cbfc(0x141)]();},'hide':()=>{_0x30be92=!0x1;},'erase':()=>{_0x30be92&&(_0x3d882d(_0x3677e5,0x0),_0x2c85d7(_0x3677e5,0x0)),_0x30be92=!0x1;},'restore':()=>{const _0x33c23f=_0x332675;_0x30be92=!0x1,process[_0x33c23f(0x205)][_0x33c23f(0x174)]=_0x518e64;}};}async function Qn({prompt:_0x518855,sendMessage:_0x208dca,onSigint:_0xb77e7,setAnswerInput:_0xb7b0d7,registerEventPrinter:_0x1fce74}){const _0x17fbd5=_0xa59708;let _0x1fbbdc=_0xe93aca({'input':process[_0x17fbd5(0x338)],'output':process['stderr'],'terminal':!0x0,'prompt':'You>\x20'}),_0x2e3324=qn(_0x1fbbdc,process[_0x17fbd5(0x13f)]),_0x1aea00=[],_0x4d1902,_0x3e8453,_0x1eeac0,_0x329ae7=!0x1,_0x2f26b6=!0x1,_0x15af8d=!0x1,_0x221e7b=Promise['resolve'](),_0x518093,_0x58a16b=_0x1fce74(_0x36ba41=>{const _0x328132=_0x17fbd5;_0x36ba41[_0x328132(0x1b5)]===_0x328132(0x329)&&(_0x2e3324[_0x328132(0x2b8)](),_0x221e7b=new Promise(_0xcdd2b8=>{_0x518093=_0xcdd2b8;})),Oe(_0x36ba41),_0x36ba41[_0x328132(0x1b5)]==='done'&&(_0x518093?.(),_0x518093=void 0x0,!_0x15af8d&&!_0x329ae7&&_0x2e3324[_0x328132(0x133)]());}),_0x33d5dc=()=>{const _0x3e8de8=_0x17fbd5;_0x2f26b6=!0x0,_0x518093?.(),_0xb77e7(),_0x1fbbdc[_0x3e8de8(0x299)]();};_0x1fbbdc['on'](_0x17fbd5(0x244),_0x2c8948=>{const _0x4a9313=_0x17fbd5;_0x1eeac0?_0x1eeac0(_0x2c8948):_0x4d1902?_0x4d1902['push'](_0x2c8948):_0x3e8453?_0x3e8453(_0x2c8948):_0x1aea00[_0x4a9313(0x2c8)](_0x2c8948);}),_0x1fbbdc['once'](_0x17fbd5(0x299),()=>{const _0x187668=_0x17fbd5;_0x329ae7=!0x0,_0x2e3324[_0x187668(0x180)](),_0x4d1902&&!_0x2f26b6&&_0x33d5dc(),_0x3e8453?.(null);});let _0x6a4ff0=()=>_0x1aea00[_0x17fbd5(0x21b)]>0x0?Promise[_0x17fbd5(0x1df)](_0x1aea00[_0x17fbd5(0x193)]()):_0x329ae7?Promise['resolve'](null):new Promise(_0x32184b=>{_0x3e8453=_0x3475e0=>{_0x3e8453=void 0x0,_0x32184b(_0x3475e0);};});_0xb7b0d7({'readLine':(_0x29daae,_0x5beb54)=>new Promise((_0x47810d,_0x5a250b)=>{const _0x8aa470=_0x17fbd5;if(_0x329ae7&&!_0x4d1902){_0x47810d(null);return;}_0x4d1902??=[];let _0x48dacd=_0x4d1902['shift']();if(_0x48dacd!==void 0x0){_0x47810d(_0x48dacd);return;}let _0x530039=()=>{const _0x1e3cfb=_0x27e7;_0x1eeac0=void 0x0,_0x5beb54['removeEventListener'](_0x1e3cfb(0x1e7),_0x18ce6c),_0x2e3324[_0x1e3cfb(0x180)](),_0x1fbbdc[_0x1e3cfb(0x17e)](_0x1e3cfb(0x25b));},_0x18ce6c=()=>{const _0x27fc8f=_0x27e7;_0x530039(),_0x5a250b(new Error(_0x27fc8f(0x192)));};_0x5beb54[_0x8aa470(0x231)](_0x8aa470(0x1e7),_0x18ce6c,{'once':!0x0}),!_0x329ae7&&(_0x1eeac0=_0x2286cd=>{_0x530039(),_0x47810d(_0x2286cd);},_0x1fbbdc[_0x8aa470(0x17e)](_0x29daae),_0x2e3324[_0x8aa470(0x133)]());}),'endQuestions':()=>{const _0x55c654=_0x17fbd5;_0x4d1902&&_0x1aea00[_0x55c654(0x2c8)](..._0x4d1902),_0x4d1902=void 0x0;}}),_0x1fbbdc['on']('SIGINT',_0x33d5dc),process[_0x17fbd5(0x13f)][_0x17fbd5(0x174)]('Enter\x20sends\x20a\x20message.\x20/exit\x20or\x20EOF\x20exits;\x20Ctrl+C\x20stops\x20and\x20exits.\x0a');let _0x5f0249=async _0x31e449=>{_0x15af8d=!0x0;try{await _0x208dca(_0x31e449);}finally{_0x15af8d=!0x1;}};try{if(_0x518855&&await _0x5f0249(_0x518855),_0x2f26b6)return;!_0x329ae7&&!_0x518093&&_0x2e3324[_0x17fbd5(0x133)]();for(let _0x4bc6e2=await _0x6a4ff0();_0x4bc6e2!==null&&(_0x2e3324[_0x17fbd5(0x180)](),!_0x2f26b6);_0x4bc6e2=await _0x6a4ff0()){let _0x512f63=_0x4bc6e2[_0x17fbd5(0x163)]();if(_0x512f63===_0x17fbd5(0x1a9))break;_0x512f63&&await _0x5f0249(_0x512f63),!_0x329ae7&&!_0x518093&&_0x2e3324[_0x17fbd5(0x133)]();}for(;!_0x2f26b6&&_0x518093;)await _0x221e7b;}finally{_0xb7b0d7(null),_0x58a16b(),_0x2e3324[_0x17fbd5(0x317)](),_0x1fbbdc['off'](_0x17fbd5(0x324),_0x33d5dc),_0x1fbbdc[_0x17fbd5(0x299)]();}}async function Yn(){const _0x45f26b=_0xa59708;let _0x18bf87=Vt(process[_0x45f26b(0x2b2)]['slice'](0x2));if(_0x18bf87[_0x45f26b(0x1e0)]===_0x45f26b(0x2a3)){await Ee(_0x18bf87);return;}let _0x231f2f=Xt();try{await Ee(_0x18bf87);}finally{_0x231f2f();}}async function Ee(_0x156497){const _0x2f53e7=_0xa59708;if(_0x156497[_0x2f53e7(0x2e8)]){Zt();return;}if(_0x156497[_0x2f53e7(0x2c7)]){console['log'](en());return;}if(_0x156497['subcommand']===_0x2f53e7(0x1f8)){await Mn(_0x156497);return;}if(_0x156497[_0x2f53e7(0x2f8)]==='tenant'){await Bn(_0x156497[_0x2f53e7(0x141)]);return;}if(_0x156497['subcommand']===_0x2f53e7(0x243)){await on();return;}if(_0x156497['subcommand']===_0x2f53e7(0x15b)){await rn(_0x156497);return;}if(_0x156497[_0x2f53e7(0x2f8)]==='models'){await dn(_0x156497);return;}if(_0x156497[_0x2f53e7(0x2f8)]===_0x2f53e7(0x310)){await wn(_0x156497);return;}if(_0x156497[_0x2f53e7(0x2f8)]===_0x2f53e7(0x258)){await pn(_0x156497);return;}if(_0x156497['subcommand']===_0x2f53e7(0x210)){await vn(_0x156497);return;}if(_0x156497['subcommand']===_0x2f53e7(0x188)||_0x156497['subcommand']===_0x2f53e7(0x160)||_0x156497[_0x2f53e7(0x2f8)]===_0x2f53e7(0x33e)){await xn(_0x156497,_0x156497[_0x2f53e7(0x2f8)]);return;}if(_0x156497[_0x2f53e7(0x2f8)]===_0x2f53e7(0x304)){await $n(_0x156497);return;}if(_0x156497[_0x2f53e7(0x2f8)]===_0x2f53e7(0x2a9)){await Nn(_0x156497);return;}if(_0x156497['subcommand']===_0x2f53e7(0x2dc)){await Pn(_0x156497);return;}if(_0x156497[_0x2f53e7(0x2f8)]==='maps'){await _n(_0x156497);return;}if(_0x156497[_0x2f53e7(0x2f8)]==='delegations'){await On(_0x156497);return;}if(_0x156497['subcommand']===_0x2f53e7(0x1af)){await jn(_0x156497);return;}if(_0x156497['subcommand']===_0x2f53e7(0x2c3)){await _0xe243ff(_0x156497[_0x2f53e7(0x141)],{'runnerUrl':_0x156497[_0x2f53e7(0x1a0)],'backendUrl':_0x156497[_0x2f53e7(0x14b)],'interopPath':_0x156497[_0x2f53e7(0x191)],'workerId':_0x156497[_0x2f53e7(0x30f)]});return;}if(_0x156497[_0x2f53e7(0x182)]){await cn();return;}await Wn(_0x156497);}var zn=process.env.NODE_ENV===_0xa59708(0x31c)||!!process.env.JEST_WORKER_ID;zn||Yn()[_0xa59708(0x22a)](_0x17bc4d=>{const _0x266d11=_0xa59708;console[_0x266d11(0x1a6)](_0x17bc4d[_0x266d11(0x348)]||_0x17bc4d[_0x266d11(0x1ae)]||_0x17bc4d),process['exit'](0x1);});export{zt as CARTOGRAPHER_SKILLS,pe as EFFORT_TIERS,tn as IMPLICIT_STDIN_IDLE_MS,Se as buildInitOptions,Yn as main,Vt as parseArgs,en as readCliVersion,J as resolvePrompt,Xt as routeStdoutToStderr,m as writeCommandResult};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uipath/delegate-cli",
3
- "version": "1.208.0-preview.20261127162640",
3
+ "version": "1.208.0-preview.20261203091045",
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.208.0-preview.20261127162640"
25
+ "@uipath/delegate-sdk": "1.208.0-preview.20261203091045"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@types/node": "^22.0.0",