@uipath/delegate-cli 1.203.0-preview.20261005112239 → 1.204.0-preview.20261005123254

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -550,6 +550,10 @@ To authenticate as your own identity app (custom `UIPATH_CLIENT_ID` / `UIPATH_CL
550
550
  AUTH_TOKEN=... TENANT_ID=... ORG_ID=... npx delegate-cli --env production "..."
551
551
  ```
552
552
 
553
+ `AUTH_TOKEN` is never refreshed, so a run that outlives it fails. A host that can renew the token sets `AUTH_TOKEN_FILE` to a file it keeps rewritten with the current token instead; the CLI re-reads it on every request.
554
+
555
+ These variables are removed from the environment of the interop process, so the shell commands the agent runs cannot read them.
556
+
553
557
  ### Automation Suite and other self-hosted deployments
554
558
 
555
559
  Sign in by URL rather than by environment name:
package/dist/cli.mjs CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- const _0x5c3cd6=_0x4db8;(function(_0x35dd84,_0x53d0e4){const _0x4985fa=_0x4db8,_0x7b9056=_0x35dd84();while(!![]){try{const _0x2536da=-parseInt(_0x4985fa(0x31e))/0x1*(parseInt(_0x4985fa(0x2cd))/0x2)+parseInt(_0x4985fa(0x39a))/0x3+parseInt(_0x4985fa(0x22c))/0x4+-parseInt(_0x4985fa(0x280))/0x5+parseInt(_0x4985fa(0x372))/0x6*(parseInt(_0x4985fa(0x27c))/0x7)+-parseInt(_0x4985fa(0x2ca))/0x8*(-parseInt(_0x4985fa(0x1f3))/0x9)+-parseInt(_0x4985fa(0x2b9))/0xa;if(_0x2536da===_0x53d0e4)break;else _0x7b9056['push'](_0x7b9056['shift']());}catch(_0x4ff2c7){_0x7b9056['push'](_0x7b9056['shift']());}}}(_0x5f38,0xda33d));const __dirname=import.meta.dirname;import _0xea0a68 from'fs';import _0x4d472f from'path';import{clearLine as _0x1dcba8,createInterface as _0x49cc95,cursorTo as _0x26e9db}from'node:readline';import{BUSINESS_ANALYSIS_PRELOADED_SKILLS as _0x5b0985,DelegateAgent as _0x399f6d,cancelTurn as _0x4961b7,InteropProcess as _0x4dd290,complete as _0x20b8a2,DEFAULT_MODEL as _0x4d46e9,createBackendClient as _0x2e3a78,evaluate as _0x25e6f8,isCompletionRequestError as _0x1cd659,isEvaluationRequestError as _0x35afd7,isTranscriptionError as _0x148eb3,rerank as _0x1c5229,transcribe as _0x489f10,verify as _0x44a5f1,acceptDelegation as _0x2fc141,cancelDelegation as _0x452cc5,claimDelegation as _0x367f3a,completeDelegation as _0x447659,createDelegation as _0x46caae,deleteDelegation as _0x27e268,dismissDelegation as _0x226927,getSessionDelegations as _0x78e406,isDelegationError as _0x8d1533,listDelegations as _0x196136,listOrgUsers as _0x31f58b,previewDelegation as _0x5174e8,TurnResultCollector as _0x117650,agentEventToJsonLine as _0x4c4c19,describeBaseUrlRejection as _0x327834,getActivitySummary as _0x392af5,getAuthFilePath as _0x28797c,getByoWarnings as _0x4b36c9,getCartographerAllowance as _0x320d0d,getDailyBreakdown as _0x58a8aa,getLicensingSummary as _0x17c196,getMonthlySpending as _0x14252d,isOutputFormat as _0x12f03e,isCloudBaseUrl as _0x1fd96d,isSafeProjectFolderSegment as _0x20f6f6,listModels as _0x1332c6,listSessions as _0x3c5837,getSession as _0x4fda64,renameSession as _0x102864,deleteSession as _0x4ded31,forkSession as _0x10c080,isBackendRequestError as _0x161c57,MAX_SESSION_PAGE_SIZE as _0x254906,listTenants as _0x442126,loadAndRefreshAuth as _0x1157c5,loadAndRefreshSdkLogin as _0x2f083,parsePlatformBaseUrl as _0x3e44ab,resolveBackendUrl as _0x4abdb1,runHealthCheck as _0x4bf9cf,runHostCommand as _0x10b478,runLoginFlow as _0x38c1bd,runTurnForResult as _0x302986,saveAuthData as _0xa7d579,switchTenant as _0x1bb7ef,toJsonLine as _0x3f1b63,ENV_TO_CLOUD as _0x1480d0,OUTPUT_FORMATS as _0x191b40}from'@uipath/delegate-sdk';var pt=[_0x5c3cd6(0x322),'tenant','models','host',_0x5c3cd6(0x2e4),_0x5c3cd6(0x268),_0x5c3cd6(0x321),_0x5c3cd6(0x25d),_0x5c3cd6(0x289),_0x5c3cd6(0x2b1),_0x5c3cd6(0x2a5),_0x5c3cd6(0x29d),_0x5c3cd6(0x244),_0x5c3cd6(0x213),_0x5c3cd6(0x211),_0x5c3cd6(0x2da)],G=['',_0x5c3cd6(0x309),_0x5c3cd6(0x268),'check','sessions',_0x5c3cd6(0x289),'evaluate',_0x5c3cd6(0x2a5),_0x5c3cd6(0x29d),_0x5c3cd6(0x244),'transcribe',_0x5c3cd6(0x211),'org-users'],W=[_0x5c3cd6(0x324),_0x5c3cd6(0x315),'high','xhigh',_0x5c3cd6(0x2d6)],mt=_0x5b0985;function p(_0x3f8311,_0x504c96,_0x4308dd,_0xb1d42a){const _0x2d1038=_0x5c3cd6;let _0x1abcf1=_0x3f8311[_0x504c96];return(!_0x1abcf1||_0x1abcf1[_0x2d1038(0x2e9)]>0x1&&_0x1abcf1[_0x2d1038(0x34b)]('-'))&&(console[_0x2d1038(0x236)](_0x4308dd+_0x2d1038(0x1ff)+_0xb1d42a+'.'),process[_0x2d1038(0x1f8)](0x2)),_0x1abcf1;}function N(_0x22cf32,_0x18b9d9,_0x1a6d57,_0x108212){const _0x568a29=_0x5c3cd6;let _0x57455e=p(_0x22cf32,_0x18b9d9,_0x1a6d57,_0x568a29(0x2ad)),_0x40d843=Number(_0x57455e);return(!/^\d+$/[_0x568a29(0x304)](_0x57455e)||_0x40d843<0x1||!Number[_0x568a29(0x1ee)](_0x40d843)||_0x108212!==void 0x0&&_0x40d843>_0x108212)&&(console[_0x568a29(0x236)](_0x1a6d57+'\x20must\x20be\x20a\x20whole\x20number\x20'+(_0x108212===void 0x0?_0x568a29(0x2d9):_0x568a29(0x348)+_0x108212)+',\x20got\x20'+_0x57455e+'.'),process[_0x568a29(0x1f8)](0x2)),_0x40d843;}function ft(_0x240c1a){const _0x5af792=_0x5c3cd6;let _0x2f9bed={'subcommand':'','prompt':'','print':!0x1,'keepAlive':!0x1,'cleanup':!0x1,'headless':!0x1,'noComputerUse':!0x1,'cartographer':!0x1,'noConnections':!0x1,'noSecurity':!0x1,'noMemory':!0x1,'quiet':!0x1,'verbose':!0x1,'outputFormat':_0x5af792(0x338),'preloadSkills':[],'attachments':[],'skipEnvCheck':!0x1,'includeSubAgents':!0x1,'operands':[],'help':!0x1,'version':!0x1};pt[_0x5af792(0x21b)](_0x240c1a[0x0])&&(_0x2f9bed[_0x5af792(0x337)]=_0x240c1a[0x0],_0x240c1a=_0x240c1a[_0x5af792(0x298)](0x1));let _0x3b71ff=[];for(let _0x41c969=0x0;_0x41c969<_0x240c1a[_0x5af792(0x2e9)];_0x41c969++){let _0x4e7ac9=_0x240c1a[_0x41c969];switch(_0x4e7ac9){case'--print':case'-p':_0x2f9bed['print']=!0x0;break;case'--keep-alive':_0x2f9bed['keepAlive']=!0x0;break;case'--cleanup':_0x2f9bed['cleanup']=!0x0;break;case _0x5af792(0x2f0):_0x2f9bed[_0x5af792(0x2ea)]=!0x0;break;case _0x5af792(0x2f2):_0x2f9bed['noComputerUse']=!0x0;break;case _0x5af792(0x2a4):_0x2f9bed['cartographer']=!0x0,_0x2f9bed[_0x5af792(0x1fb)]=!0x0,_0x2f9bed[_0x5af792(0x1eb)][_0x5af792(0x36f)](...mt);break;case _0x5af792(0x235):_0x2f9bed[_0x5af792(0x296)]=!0x0;break;case _0x5af792(0x2dd):_0x2f9bed['noSecurity']=!0x0;break;case _0x5af792(0x323):_0x2f9bed[_0x5af792(0x346)]=!0x0;break;case'--quiet':case'-q':_0x2f9bed[_0x5af792(0x355)]=!0x0;break;case _0x5af792(0x292):_0x2f9bed[_0x5af792(0x303)]=!0x0;break;case _0x5af792(0x2d1):_0x2f9bed[_0x5af792(0x215)]=_0x240c1a[++_0x41c969];break;case _0x5af792(0x317):_0x2f9bed[_0x5af792(0x286)]=_0x240c1a[++_0x41c969];break;case _0x5af792(0x214):_0x2f9bed[_0x5af792(0x376)]=_0x240c1a[++_0x41c969];break;case _0x5af792(0x22e):_0x2f9bed[_0x5af792(0x231)]=_0x240c1a[++_0x41c969];break;case'--worker-id':_0x2f9bed['workerId']=_0x240c1a[++_0x41c969];break;case _0x5af792(0x1fc):_0x2f9bed['preloadSkills'][_0x5af792(0x36f)](p(_0x240c1a,++_0x41c969,_0x4e7ac9,_0x5af792(0x2ac)));break;case _0x5af792(0x2f5):{let _0x51da45=p(_0x240c1a,++_0x41c969,_0x4e7ac9,_0x5af792(0x2d2));_0x20f6f6(_0x51da45)||(console['error']('Invalid\x20--project:\x20\x22'+_0x51da45+_0x5af792(0x284)),process['exit'](0x2)),_0x2f9bed['projectId']=_0x51da45;break;}case _0x5af792(0x326):{let _0x315cda=p(_0x240c1a,++_0x41c969,_0x4e7ac9,_0x5af792(0x37c)+_0x191b40[_0x5af792(0x335)](_0x5af792(0x243))+')');_0x12f03e(_0x315cda)||(console['error'](_0x5af792(0x27f)+_0x315cda+_0x5af792(0x21d)+_0x191b40[_0x5af792(0x335)]('\x20|\x20')+'.'),process[_0x5af792(0x1f8)](0x2)),_0x2f9bed[_0x5af792(0x360)]=_0x315cda;break;}case _0x5af792(0x35a):_0x2f9bed[_0x5af792(0x316)]=p(_0x240c1a,++_0x41c969,_0x4e7ac9,_0x5af792(0x36c));break;case _0x5af792(0x2de):_0x2f9bed[_0x5af792(0x2e2)]=N(_0x240c1a,++_0x41c969,_0x4e7ac9);break;case'--limit':_0x2f9bed[_0x5af792(0x368)]=N(_0x240c1a,++_0x41c969,_0x4e7ac9,_0x254906);break;case'--include-subagents':_0x2f9bed[_0x5af792(0x1e9)]=!0x0;break;case'--json-schema':_0x2f9bed[_0x5af792(0x22a)]=p(_0x240c1a,++_0x41c969,_0x4e7ac9,_0x5af792(0x206));break;case _0x5af792(0x31b):{let _0x57a391=_0x4d472f['resolve'](process[_0x5af792(0x249)](),p(_0x240c1a,++_0x41c969,_0x4e7ac9,_0x5af792(0x388)));_0xea0a68[_0x5af792(0x2ce)](_0x57a391)||(console[_0x5af792(0x236)](_0x5af792(0x295)+_0x57a391),process[_0x5af792(0x1f8)](0x2)),_0x2f9bed[_0x5af792(0x23a)][_0x5af792(0x36f)](_0x57a391);break;}case _0x5af792(0x228):_0x2f9bed[_0x5af792(0x274)]=p(_0x240c1a,++_0x41c969,_0x4e7ac9,'a\x20turn\x20id');break;case'--to':_0x2f9bed[_0x5af792(0x240)]=p(_0x240c1a,++_0x41c969,_0x4e7ac9,_0x5af792(0x340));break;case _0x5af792(0x389):_0x2f9bed[_0x5af792(0x2b2)]=p(_0x240c1a,++_0x41c969,_0x4e7ac9,_0x5af792(0x339));break;case _0x5af792(0x23e):_0x2f9bed[_0x5af792(0x2fc)]=N(_0x240c1a,++_0x41c969,_0x4e7ac9,0x16d);break;case _0x5af792(0x227):_0x2f9bed[_0x5af792(0x334)]=_0x4d472f[_0x5af792(0x2b6)](process[_0x5af792(0x249)](),p(_0x240c1a,++_0x41c969,_0x4e7ac9,'a\x20directory\x20path'));break;case _0x5af792(0x2f9):_0x2f9bed[_0x5af792(0x2b4)]=_0x4d472f[_0x5af792(0x2b6)](process[_0x5af792(0x249)](),p(_0x240c1a,++_0x41c969,_0x4e7ac9,_0x5af792(0x279)));break;case _0x5af792(0x305):{let _0x2de2c4=p(_0x240c1a,++_0x41c969,_0x4e7ac9,_0x5af792(0x29c));W[_0x5af792(0x21b)](_0x2de2c4)||(console[_0x5af792(0x236)](_0x5af792(0x330)+_0x2de2c4+_0x5af792(0x21d)+W[_0x5af792(0x335)](_0x5af792(0x243))+'.'),process['exit'](0x2)),_0x2f9bed[_0x5af792(0x2f6)]=_0x2de2c4;break;}case _0x5af792(0x27e):{let _0x25c7c9=_0x240c1a[++_0x41c969];(!_0x25c7c9||_0x25c7c9[_0x5af792(0x34b)]('--'))&&(console[_0x5af792(0x236)](_0x5af792(0x307)),process[_0x5af792(0x1f8)](0x2)),_0x2f9bed['tenant']=_0x25c7c9;break;}case _0x5af792(0x21c):{let _0x8e8165=_0x240c1a[++_0x41c969];[_0x5af792(0x2d0),_0x5af792(0x397),'production',_0x5af792(0x245)][_0x5af792(0x21b)](_0x8e8165)||(console['error'](_0x5af792(0x382)+_0x8e8165+_0x5af792(0x31f)),process[_0x5af792(0x1f8)](0x2)),_0x2f9bed['env']=_0x8e8165;break;}case _0x5af792(0x238):case'--authority':{let _0x5a3380=p(_0x240c1a,++_0x41c969,_0x4e7ac9,_0x5af792(0x373)),_0x3552d5=_0x3e44ab(_0x5a3380);if(_0x3552d5['ok']===!0x1){console[_0x5af792(0x236)](_0x327834(_0x5a3380,_0x3552d5[_0x5af792(0x35f)])),process[_0x5af792(0x1f8)](0x2);break;}_0x2f9bed[_0x5af792(0x375)]=_0x3552d5[_0x5af792(0x203)];break;}case _0x5af792(0x361):_0x2f9bed[_0x5af792(0x2a8)]=!0x0;break;case'-h':case _0x5af792(0x230):_0x2f9bed['help']=!0x0;break;case'-v':case _0x5af792(0x20f):_0x2f9bed[_0x5af792(0x1e8)]=!0x0;break;default:_0x4e7ac9[_0x5af792(0x34b)]('--')&&(console[_0x5af792(0x236)]('Unknown\x20flag:\x20'+_0x4e7ac9),process[_0x5af792(0x1f8)](0x2)),_0x3b71ff['push'](_0x4e7ac9);}}return _0x2f9bed[_0x5af792(0x23b)]!==void 0x0&&_0x2f9bed[_0x5af792(0x337)]!==_0x5af792(0x322)&&(console[_0x5af792(0x236)](_0x5af792(0x271)),process[_0x5af792(0x1f8)](0x2)),_0x2f9bed[_0x5af792(0x375)]!==void 0x0&&_0x2f9bed[_0x5af792(0x2e0)]!==void 0x0&&(console[_0x5af792(0x236)](_0x5af792(0x207)),process[_0x5af792(0x1f8)](0x2)),_0x2f9bed[_0x5af792(0x375)]!==void 0x0&&_0x2f9bed['subcommand']!=='login'&&(console[_0x5af792(0x236)](_0x5af792(0x220)),process['exit'](0x2)),_0x2f9bed['days']!==void 0x0&&_0x2f9bed[_0x5af792(0x337)]!==_0x5af792(0x289)&&(console[_0x5af792(0x236)](_0x5af792(0x2aa)),process[_0x5af792(0x1f8)](0x2)),_0x2f9bed['jsonSchemaPath']!==void 0x0&&(_0x2f9bed[_0x5af792(0x337)]!=='complete'&&_0x2f9bed['subcommand']!==''||_0x2f9bed[_0x5af792(0x34a)])&&(console[_0x5af792(0x236)]('--json-schema\x20applies\x20to\x20prompts\x20and\x20to\x20`delegate-cli\x20complete`\x20only.'),process[_0x5af792(0x1f8)](0x2)),_0x2f9bed[_0x5af792(0x23a)][_0x5af792(0x2e9)]>0x0&&(_0x2f9bed[_0x5af792(0x337)]!==''||_0x2f9bed[_0x5af792(0x34a)])&&(console[_0x5af792(0x236)](_0x5af792(0x352)),process[_0x5af792(0x1f8)](0x2)),_0x2f9bed[_0x5af792(0x2a8)]&&_0x2f9bed[_0x5af792(0x337)]!==_0x5af792(0x322)&&(console[_0x5af792(0x236)]('--skip-env-check\x20applies\x20to\x20`delegate-cli\x20login`\x20only.'),process[_0x5af792(0x1f8)](0x2)),_0x2f9bed[_0x5af792(0x360)]!=='text'&&!G[_0x5af792(0x21b)](_0x2f9bed[_0x5af792(0x337)])&&(console[_0x5af792(0x236)](_0x5af792(0x350)+_0x2f9bed[_0x5af792(0x360)]+_0x5af792(0x314)+G['filter'](Boolean)['join'](',\x20')+'.'),process['exit'](0x2)),(_0x2f9bed['page']!==void 0x0||_0x2f9bed['limit']!==void 0x0||_0x2f9bed['includeSubAgents'])&&_0x2f9bed[_0x5af792(0x337)]!==_0x5af792(0x25d)&&(console[_0x5af792(0x236)](_0x5af792(0x294)),process[_0x5af792(0x1f8)](0x2)),(_0x2f9bed['delegateTo']!==void 0x0||_0x2f9bed[_0x5af792(0x2b2)]!==void 0x0)&&_0x2f9bed['subcommand']!==_0x5af792(0x211)&&(console['error']('--to\x20and\x20--summary\x20apply\x20to\x20`delegate-cli\x20delegations\x20create`\x20only.'),process[_0x5af792(0x1f8)](0x2)),_0x2f9bed['turnId']!==void 0x0&&_0x2f9bed[_0x5af792(0x337)]!=='sessions'&&(console[_0x5af792(0x236)](_0x5af792(0x399)),process[_0x5af792(0x1f8)](0x2)),_0x2f9bed[_0x5af792(0x1eb)]=[...new Set(_0x2f9bed[_0x5af792(0x1eb)])],_0x2f9bed['operands']=_0x3b71ff,_0x2f9bed['prompt']=_0x3b71ff[_0x5af792(0x335)]('\x20'),_0x2f9bed;}var S=_0x42b510=>{const _0x1872f5=_0x5c3cd6;process[_0x1872f5(0x29e)]['write'](_0x42b510);};function gt(){const _0x273bf8=_0x5c3cd6;let _0x380249=process[_0x273bf8(0x29e)][_0x273bf8(0x35e)],_0x454bd9=_0x380249[_0x273bf8(0x30c)](process[_0x273bf8(0x29e)]),_0x7f9a7a=S;return S=_0x4fe6a4=>{_0x454bd9(_0x4fe6a4);},process[_0x273bf8(0x29e)][_0x273bf8(0x35e)]=(..._0x508069)=>process[_0x273bf8(0x2dc)]['write'](..._0x508069),()=>{const _0x38bc7e=_0x273bf8;process[_0x38bc7e(0x29e)]['write']=_0x380249,S=_0x7f9a7a;};}function l(_0x1872d9,_0x419271,_0x2ea76b){const _0x41da64=_0x5c3cd6;if(_0x1872d9[_0x41da64(0x360)]===_0x41da64(0x338)){_0x2ea76b(_0x419271);return;}S(_0x3f1b63(_0x419271));}function ht(){const _0x37be79=_0x5c3cd6;let _0x3cfa74=_0x37be79(0x2fe)[_0x37be79(0x31c)]();console['log'](_0x3cfa74);}function wt(){const _0x53056c=_0x5c3cd6;try{return JSON[_0x53056c(0x27d)](_0xea0a68[_0x53056c(0x287)](_0x4d472f[_0x53056c(0x335)](__dirname,'..',_0x53056c(0x2ec)),_0x53056c(0x312)))[_0x53056c(0x1e8)]||_0x53056c(0x313);}catch{return _0x53056c(0x313);}}var yt=0x7d0;async function K(_0x19005c,_0x473fad){const _0x36c1c1=_0x5c3cd6;let _0x2ce2ee=_0x473fad?[_0x473fad]:[];for await(let _0x4ecee8 of _0x19005c)_0x2ce2ee[_0x36c1c1(0x36f)](Buffer[_0x36c1c1(0x20c)](_0x4ecee8));return Buffer[_0x36c1c1(0x354)](_0x2ce2ee)[_0x36c1c1(0x311)]('utf-8')[_0x36c1c1(0x31c)]();}function kt(_0x32f32a,_0x107a56){return new Promise(_0x269951=>{const _0x1994bd=_0x4db8;let _0xc3e0c1=_0x8b7341=>{const _0x4f3881=_0x4db8;clearTimeout(_0xe5868b),_0x32f32a[_0x4f3881(0x1f0)](_0x4f3881(0x260),_0x5c9272),_0x32f32a[_0x4f3881(0x1f0)]('end',_0x3a813e),_0x32f32a['off'](_0x4f3881(0x236),_0x3a813e),_0x32f32a[_0x4f3881(0x310)](),_0x269951(_0x8b7341);},_0x5c9272=_0xbf6f12=>_0xc3e0c1(Buffer[_0x1994bd(0x20c)](_0xbf6f12)),_0x3a813e=()=>_0xc3e0c1(null),_0xe5868b=setTimeout(()=>_0xc3e0c1(null),_0x107a56);_0x32f32a['on'](_0x1994bd(0x260),_0x5c9272),_0x32f32a['on'](_0x1994bd(0x377),_0x3a813e),_0x32f32a['on'](_0x1994bd(0x236),_0x3a813e),_0x32f32a[_0x1994bd(0x205)]();});}async function I(_0x1c18d8,_0x48570a,_0x7dad6c=yt){let _0xa7fe06=_0x1c18d8==='-';if(!_0xa7fe06&&_0x1c18d8)return _0x1c18d8;if(!_0xa7fe06&&_0x48570a['isTTY'])return'';if(_0xa7fe06)return K(_0x48570a,null);let _0x3fa899=await kt(_0x48570a,_0x7dad6c);return _0x3fa899?K(_0x48570a,_0x3fa899):'';}function L(){const _0x5208a9=_0x5c3cd6;return _0x4d472f[_0x5208a9(0x335)](process.env.HOME||process.env.USERPROFILE||'','.aria','auth.json');}function $(_0x4463eb){const _0x2e1dd6=_0x5c3cd6;try{let _0x513686=JSON[_0x2e1dd6(0x27d)](_0xea0a68[_0x2e1dd6(0x287)](_0x4463eb,_0x2e1dd6(0x312)));return!_0x513686[_0x2e1dd6(0x1fe)]||!_0x513686[_0x2e1dd6(0x26a)]||!_0x513686[_0x2e1dd6(0x306)]?null:_0x513686;}catch{return null;}}function St(){const _0x597d7a=_0x5c3cd6;let _0x1bba3e=[{'file':_0x28797c(),'isDesktopFallback':!0x1},{'file':L(),'isDesktopFallback':!0x0}];for(let _0x4e3f41 of _0x1bba3e){let _0x15a5e5=$(_0x4e3f41[_0x597d7a(0x24b)]);if(_0x15a5e5)return{..._0x4e3f41,'auth':_0x15a5e5};}return null;}async function bt(){const _0x37a2ec=_0x5c3cd6;let _0x1bb76c=_0x28797c();if(!_0xea0a68[_0x37a2ec(0x2ce)](_0x1bb76c)){let _0x1ba401=L();console['log']($(_0x1ba401)?_0x37a2ec(0x234)+_0x1ba401+_0x37a2ec(0x351):_0x37a2ec(0x26c));return;}_0xea0a68[_0x37a2ec(0x277)](_0x1bb76c),console[_0x37a2ec(0x35c)](_0x37a2ec(0x36a)+_0x1bb76c);}async function vt(_0x4a2756){const _0x2c10a8=_0x5c3cd6;let _0x323375=O(),_0x576f6f,_0x53edfe;if(_0x323375)_0x576f6f=_0x323375,_0x53edfe=_0x2c10a8(0x28d);else{let _0x32a57f=St();if(!_0x32a57f)throw new Error(le);_0x576f6f=_0x32a57f[_0x2c10a8(0x333)],_0x53edfe=_0x32a57f['isDesktopFallback']?_0x32a57f[_0x2c10a8(0x24b)]+_0x2c10a8(0x2fb):_0x32a57f[_0x2c10a8(0x24b)];}let _0x40b842={'source':_0x53edfe,'baseUrl':_0x576f6f[_0x2c10a8(0x203)]??null,'deployment':At(_0x576f6f[_0x2c10a8(0x203)]),'organization':{'id':_0x576f6f['organizationId'],'slug':_0x576f6f[_0x2c10a8(0x2c6)]??null},'tenant':{'id':_0x576f6f[_0x2c10a8(0x26a)],'name':_0x576f6f[_0x2c10a8(0x327)]??null},'tokenExpiresAt':_0x576f6f['expiresAt']?new Date(_0x576f6f[_0x2c10a8(0x33e)]*0x3e8)['toISOString']():null};l(_0x4a2756,_0x40b842,()=>{const _0x58fc68=_0x2c10a8;let _0x14f84a=[_0x58fc68(0x363)+_0x53edfe,_0x58fc68(0x2c5)+(_0x576f6f[_0x58fc68(0x203)]??_0x58fc68(0x313)),_0x58fc68(0x30d)+_0x40b842[_0x58fc68(0x208)],_0x58fc68(0x353)+(_0x576f6f[_0x58fc68(0x2c6)]??_0x58fc68(0x33c))+'\x20('+_0x576f6f[_0x58fc68(0x306)]+')',_0x58fc68(0x241)+(_0x576f6f[_0x58fc68(0x327)]??_0x58fc68(0x33c))+'\x20('+_0x576f6f[_0x58fc68(0x26a)]+')'];if(_0x576f6f[_0x58fc68(0x33e)]){let _0x17f1db=_0x576f6f[_0x58fc68(0x33e)]-Math[_0x58fc68(0x2b5)](Date['now']()/0x3e8);_0x14f84a[_0x58fc68(0x36f)](_0x17f1db>0x0?_0x58fc68(0x34f)+_0x40b842[_0x58fc68(0x28b)]+'\x20(in\x20'+Math[_0x58fc68(0x349)](_0x17f1db/0x3c)+_0x58fc68(0x302):_0x58fc68(0x343)+_0x40b842[_0x58fc68(0x28b)]);}process[_0x58fc68(0x29e)]['write'](_0x14f84a[_0x58fc68(0x335)]('\x0a')+'\x0a');});}var le=_0x5c3cd6(0x369);function At(_0x5d9af2){const _0x377393=_0x5c3cd6;return _0x5d9af2?_0x1fd96d(_0x5d9af2)?'UiPath\x20Cloud':'self-hosted\x20(Automation\x20Suite\x20/\x20Dedicated)':_0x377393(0x313);}function O(){return process.env.AUTH_TOKEN&&process.env.TENANT_ID&&process.env.ORG_ID?{'accessToken':process.env.AUTH_TOKEN,'tenantId':process.env.TENANT_ID,'organizationId':process.env.ORG_ID,'orgLogicalName':process.env.ORG_SLUG,'tenantName':process.env.TENANT_SLUG,'baseUrl':ce()}:null;}function _0x5f38(){const _0x32d3fe=['fork','assignedUser','evaluate','contextSummary','type','bundledSkillsPath','floor','resolve','tool_call','\x20needs\x20a\x20JSON\x20request:\x20delegate-cli\x20','19346160LbYYMj','delegations\x20dismiss\x20<delegation-id>','Licensing:\x20\x20\x20\x20no\x20licensing\x20quota\x20applies','No\x20sessions\x20on\x20page\x20','string','Usage:\x20delegate-cli\x20sessions\x20[list]\x20[--page\x20N]\x20[--limit\x20N]\x20[--include-subagents]','period_days','pendingResults',',\x20whose\x20tenant\x20is\x20chosen\x20in\x20the\x20app.\x20Run\x20`delegate-cli\x20login\x20--env\x20<env>`\x20for\x20a\x20CLI\x20login\x20of\x20your\x20own.','extra_pool_consumed_pu','[env=','then','Base\x20URL:\x20\x20\x20\x20\x20','orgLogicalName','Continue\x20it\x20with:\x20delegate-cli\x20--session\x20','\x20<file.json>,\x20or\x20-\x20to\x20read\x20stdin.','No\x20structured\x20output:\x20the\x20turn\x20failed\x20(','3978920ioTcfZ','deleted','[saved\x20login]\x20Backend\x20URL:\x20','2smnZej','existsSync','total_quota_pu','alpha','--backend','a\x20project\x20id','keepAlive','choice','onEvent','max','delegations\x20delete\x20<delegation-id>','title','1\x20or\x20more','org-users','status','stderr','--no-security','--page','structuredError','env','initialize','page','help','logout','\x20(current)','--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`delegate-cli\x20sessions\x20[list]`\x20only.','Interop\x20stopped\x20(if\x20it\x20was\x20running).','Accepted','length','headless','transcribe:\x20cannot\x20read\x20','package.json','stack','complete\x20needs\x20--json-schema\x20<file>:\x20delegate-cli\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22.','Work\x20on\x20it\x20with:\x20delegate-cli\x20--session\x20','--headless','No\x20answers\x20awaiting\x20acceptance.\x0a','--no-computer-use','\x20--turn\x20',':\x20cannot\x20read\x20the\x20request\x20(','--project','effort','prompt_tokens','Organization\x20\x20','--skills-path','sourceUserEmail','\x20(Delegate\x20desktop\x20app\x20fallback)','days','projectId','\x0adelegate-cli\x20—\x20Delegate\x20agent\x20CLI\x0a\x0aUsage:\x0a\x20\x20delegate-cli\x20[flags]\x20[\x22<prompt>\x22]\x20\x20\x20\x20Start\x20a\x20conversation\x20in\x20a\x20terminal\x0a\x20\x20delegate-cli\x20--print\x20\x22<prompt>\x22\x20\x20\x20\x20\x20\x20Send\x20one\x20prompt,\x20print\x20the\x20response,\x20and\x20exit\x0a\x20\x20delegate-cli\x20[flags]\x20-\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Read\x20one\x20prompt\x20from\x20stdin\x20through\x20EOF,\x20then\x20exit\x0a\x20\x20delegate-cli\x20-p\x20\x22<prompt>\x22\x20--output-format\x20json|stream-json\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20One\x20turn\x20with\x20JSON-only\x20stdout;\x20exit\x201\x20on\x20error\x0a\x20\x20delegate-cli\x20--json-schema\x20FILE\x20\x22<prompt>\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20One\x20turn,\x20then\x20its\x20result\x20extracted\x20as\x20JSON\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20matching\x20the\x20schema\x20in\x20FILE\x20(printed\x20after\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20answer;\x20\x22structured\x22\x20in\x20the\x20JSON\x20result);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20exit\x201\x20when\x20the\x20extraction\x20fails\x0a\x20\x20delegate-cli\x20--attach\x20PATH\x20[--attach\x20PATH\x20...]\x20\x22<prompt>\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Send\x20files\x20or\x20folders\x20with\x20the\x20first\x20message\x0a\x20\x20delegate-cli\x20login\x20[--env\x20NAME\x20|\x20--url\x20BASE]\x20[--tenant\x20NAME]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20OAuth\x20browser\x20login\x20→\x20~/.aria/sdk-auth.json.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--env\x20or\x20--url\x20required\x20on\x20FIRST\x20login;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20afterwards\x20defaults\x20to\x20the\x20saved\x20login\x27s\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20deployment.\x20--tenant\x20picks\x20a\x20tenant\x20by\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20name;\x20without\x20it\x20a\x20re-login\x20keeps\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20saved\x20tenant\x0a\x20\x20delegate-cli\x20tenant\x20[NAME]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20the\x20organization\x27s\x20tenants,\x20or\x20switch\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20saved\x20login\x20to\x20NAME\x20(no\x20browser)\x0a\x20\x20delegate-cli\x20logout\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Remove\x20the\x20saved\x20CLI\x20login\x0a\x20\x20delegate-cli\x20whoami\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20the\x20current\x20login\x20(org,\x20tenant,\x20token\x20expiry)\x0a\x20\x20delegate-cli\x20models\x20[--env\x20NAME]\x20\x20\x20\x20\x20List\x20available\x20LLM\x20models\x20for\x20the\x20current\x20tenant,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20with\x20any\x20BYO\x20configuration\x20warning\x20per\x20model\x0a\x20\x20delegate-cli\x20sessions\x20[list]\x20[--page\x20N]\x20[--limit\x20N]\x20[--include-subagents]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20your\x20backend\x20chat\x20sessions,\x20most\x20recently\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20active\x20first\x20(resume\x20one\x20with\x20--session\x20ID)\x0a\x20\x20delegate-cli\x20sessions\x20show|delete\x20ID\x20Show\x20one\x20session\x27s\x20title\x20and\x20owner,\x20or\x20delete\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20it\x20with\x20its\x20messages\x20and\x20sub-agents\x20(no\x20prompt)\x0a\x20\x20delegate-cli\x20sessions\x20rename\x20ID\x20TITLE\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Rename\x20a\x20session\x20(1-500\x20characters)\x0a\x20\x20delegate-cli\x20sessions\x20fork\x20ID\x20[MESSAGE]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Copy\x20session\x20ID\x20into\x20a\x20new\x20session,\x20up\x20to\x20and\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20including\x20message\x20MESSAGE\x20(default:\x20all\x20of\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20it);\x20continue\x20it\x20with\x20--session\x20NEW_ID\x0a\x20\x20delegate-cli\x20sessions\x20cancel\x20ID\x20--turn\x20TURN\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Cancel\x20turn\x20TURN\x20running\x20on\x20session\x20ID\x20in\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20another\x20process;\x20exits\x201\x20when\x20no\x20such\x20turn\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20is\x20in\x20progress\x0a\x20\x20delegate-cli\x20check\x20[--env\x20NAME]\x20[--headless]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Verify\x20auth,\x20backend\x20readiness,\x20backend\x20and\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20interop\x20without\x20sending\x20a\x20prompt;\x20exits\x201\x20when\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20any\x20check\x20fails\x0a\x20\x20delegate-cli\x20usage\x20[--session\x20ID]\x20\x20\x20\x20Quota\x20and\x20spend:\x20licensing\x20quota,\x20monthly\x20spend\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20and\x20cap,\x20Cartographer\x20allowance\x0a\x20\x20delegate-cli\x20usage\x20activity|daily\x20[--days\x20N]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Activity\x20totals,\x20or\x20per-day\x20usage,\x20over\x20the\x20last\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20N\x20days\x20(1-365,\x20default\x2030)\x0a\x20\x20delegate-cli\x20evaluate|rerank|verify\x20FILE|-\x20[--model\x20ID]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Stateless\x20typed\x20judgments:\x20send\x20the\x20JSON\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20request\x20in\x20FILE\x20(or\x20stdin\x20with\x20-)\x20to\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20/v1/completions/<command>\x20and\x20print\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20answers;\x20--model\x20overrides\x20its\x20\x22model\x22.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Exits\x201\x20when\x20the\x20backend\x20rejects\x20it\x0a\x20\x20delegate-cli\x20complete\x20--json-schema\x20FILE\x20[--model\x20ID]\x20[--session\x20ID]\x20\x22<prompt>\x22|-\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20One\x20structured\x20completion,\x20no\x20agent\x20turn:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20print\x20the\x20JSON\x20object\x20matching\x20the\x20schema\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20in\x20FILE\x20(--output-format\x20json\x20prints\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{structured,\x20usage});\x20--session\x20adds\x20that\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20session\x27s\x20history\x20as\x20context.\x20Exits\x201\x20when\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20output\x20fails\x20the\x20schema\x20(422)\x20or\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20backend\x20rejects\x20the\x20request\x0a\x20\x20delegate-cli\x20transcribe\x20FILE|-\x20\x20\x20\x20\x20\x20\x20Speech-to-text\x20(Whisper):\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\x2025\x20MiB.\x20Exits\x202\x20when\x20the\x20audio\x20is\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20refused\x20locally,\x201\x20when\x20the\x20backend\x20rejects\x20it\x0a\x20\x20delegate-cli\x20org-users\x20QUERY\x20\x20\x20\x20\x20\x20\x20\x20\x20Search\x20your\x20organization\x27s\x20users\x20by\x20name\x20or\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20email\x20prefix\x20(2-100\x20characters)\x0a\x20\x20delegate-cli\x20delegations\x20create\x20--session\x20ID\x20[--to\x20WHO]\x20[--summary\x20TEXT]\x20\x22<task>\x22|-\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Hand\x20a\x20task\x20from\x20session\x20ID\x20to\x20a\x20colleague\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(WHO:\x20an\x20email,\x20or\x20a\x20name\x20matching\x20one\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20person);\x20without\x20--to,\x20print\x20a\x20link\x20anyone\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20in\x20the\x20organization\x20can\x20claim\x0a\x20\x20delegate-cli\x20delegations\x20pending\x20SESSION\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Answers\x20to\x20delegations\x20from\x20SESSION\x20that\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20await\x20acceptance\x20(poll\x20this)\x0a\x20\x20delegate-cli\x20delegations\x20accept|dismiss|cancel|delete\x20ID\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Take\x20an\x20answer\x20into\x20its\x20session,\x20drop\x20it,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20withdraw\x20a\x20live\x20delegation,\x20or\x20delete\x20it\x0a\x20\x20delegate-cli\x20delegations\x20list\x20PROJECT\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Every\x20delegation\x20targeting\x20a\x20backend\x20project\x0a\x20\x20delegate-cli\x20delegations\x20show|claim\x20ID|LINK\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Read\x20a\x20delegation\x20assigned\x20to\x20you\x20(or\x20a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20delegate://delegation/…\x20link),\x20or\x20claim\x20it:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20prints\x20the\x20session\x20to\x20work\x20it\x20in\x0a\x20\x20delegate-cli\x20delegations\x20complete\x20ID\x20\x22<answer>\x22|-\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Send\x20the\x20answer\x20to\x20a\x20delegation\x20you\x20claimed\x0a\x20\x20delegate-cli\x20host\x20[flags]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Run\x20this\x20PC\x20as\x20a\x20remote\x20worker\x20until\x20Ctrl+C\x0a\x20\x20delegate-cli\x20host\x20install\x20[flags]\x20\x20\x20\x20Auto-start\x20the\x20host\x20at\x20login\x20(macOS\x20LaunchAgent\x20/\x20Windows\x20Scheduled\x20Task)\x0a\x20\x20delegate-cli\x20host\x20uninstall\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Remove\x20auto-start\x0a\x20\x20delegate-cli\x20host\x20status\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20auto-start\x20state\x0a\x20\x20delegate-cli\x20--cleanup\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Stop\x20running\x20interop\x0a\x0aFlags:\x0a\x20\x20-p,\x20--print\x20\x20\x20\x20\x20\x20\x20Run\x20one\x20turn\x20and\x20exit,\x20including\x20any\x20tool\x20execution.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Automatic\x20when\x20stdin\x20or\x20stdout\x20is\x20not\x20a\x20terminal,\x20or\x20with\x20-\x0a\x20\x20--env\x20NAME\x20\x20\x20\x20\x20\x20\x20\x20alpha\x20|\x20staging\x20|\x20production\x20|\x20localhost\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Composes\x20backend\x20URL\x20from\x20saved\x20auth\x20(org/tenant\x20slugs).\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Omitted\x20→\x20the\x20deployment\x20you\x20logged\x20into\x20(delegate-cli\x20login).\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20localhost\x20→\x20http://localhost:5002.\x20No\x20saved\x20login\x20and\x20no\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--env/--backend/BACKEND_URL\x20is\x20an\x20error\x20—\x20never\x20a\x20guess.\x0a\x20\x20--url\x20BASE\x20\x20\x20\x20\x20\x20\x20\x20(login)\x20Base\x20URL\x20of\x20a\x20deployment\x20that\x20is\x20not\x20a\x20named\x20cloud\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20—\x20Automation\x20Suite,\x20Dedicated,\x20Public\x20Sector.\x20Accepts\x20a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20tenant\x20path\x20or\x20a\x20trailing\x20/identity_\x20and\x20reduces\x20it\x20to\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20origin.\x20Mutually\x20exclusive\x20with\x20--env;\x20also\x20settable\x20via\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20UIPATH_BASE_URL.\x20Alias:\x20--authority.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Automation\x20Suite\x20needs\x2026.10+\x20with\x20the\x20Delegate\x20service;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20the\x20deployment\x20rejects\x20the\x20built-in\x20client,\x20register\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20your\x20own\x20—\x20see\x20UIPATH_CLIENT_ID\x20in\x20the\x20README\x0a\x20\x20--skip-env-check\x20\x20(login)\x20Do\x20not\x20check\x20the\x20deployment\x20before\x20signing\x20in.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Escape\x20hatch\x20for\x20a\x20deployment\x20that\x20hides\x20its\x20OIDC\x20discovery\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20document\x20or\x20serves\x20Identity\x20from\x20another\x20origin;\x20it\x20also\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20gives\x20up\x20the\x20diagnosis\x20when\x20something\x20is\x20really\x20wrong\x0a\x20\x20--backend\x20URL\x20\x20\x20\x20\x20Full\x20backend\x20URL\x20—\x20escape\x20hatch\x20overrides\x20--env\x0a\x20\x20--tenant\x20NAME\x20\x20\x20\x20\x20(login)\x20Tenant\x20to\x20sign\x20into,\x20by\x20name\x20(case-insensitive).\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default:\x20the\x20saved\x20login\x27s\x20tenant\x20on\x20that\x20cloud,\x20else\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20org\x27s\x20first\x20tenant.\x20Later:\x20delegate-cli\x20tenant\x20<name>\x0a\x20\x20--model\x20NAME\x20\x20\x20\x20\x20\x20LLM\x20model\x20id\x20(e.g.\x20claude_sonnet_5,\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--attach\x20PATH\x20\x20\x20\x20\x20File\x20or\x20folder\x20sent\x20with\x20the\x20first\x20message\x20(repeatable),\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20as\x20the\x20Delegate\x20app\x20sends\x20attached\x20files:\x20images\x20inline,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20PDFs\x20and\x20other\x20documents\x20as\x20a\x20path\x20the\x20agent\x20reads,\x20text\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20inline\x20up\x20to\x2016,000\x20characters.\x2030\x20MiB\x20per\x20message\x20in\x20all;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20larger\x20files\x20go\x20as\x20a\x20path.\x20In\x20a\x20conversation,\x20later\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20messages\x20carry\x20none\x20of\x20their\x20own,\x20but\x20the\x20first\x20message\x27s\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20stay\x20in\x20context\x0a\x20\x20--preload-skill\x20NAME\x20\x20Preload\x20a\x20skill\x20into\x20the\x20session\x20(repeatable).\x20The\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20skill\x27s\x20content\x20is\x20attached\x20before\x20the\x20first\x20model\x20turn\x20—\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20same\x20mechanism\x20as\x20project\x20preloaded\x20skills\x20in\x20the\x20app\x0a\x20\x20--cartographer\x20\x20\x20\x20Cartographer\x20engagement\x20preset.\x20Equivalent\x20to\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--no-computer-use\x20--preload-skill\x20business-analysis\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--preload-skill\x20project-task-list\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--preload-skill\x20knowledge-base.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Add\x20--project/--working-dir\x20for\x20where\x20the\x20files\x20live,\x20and\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20extra\x20--preload-skill\x20flags\x20for\x20more\x20skills\x20—\x20a\x20skill\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20preset\x20already\x20covers\x20is\x20not\x20preloaded\x20twice.\x20An\x20explicit\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--headless\x20still\x20wins\x20and\x20turns\x20interop\x20off\x0a\x20\x20--project\x20ID\x20\x20\x20\x20\x20\x20Route\x20the\x20session\x27s\x20local\x20wiki\x20and\x20plans\x20to\x20a\x20project\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(<working-dir>/projects/<ID>/wiki).\x20Client-side\x20key\x20only\x0a\x20\x20--working-dir\x20PATH\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Shell\x20cwd\x20for\x20the\x20agent\x20and\x20root\x20for\x20SDK-local\x20state.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Relative\x20paths\x20resolve\x20against\x20the\x20current\x20directory;\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20directory\x20is\x20created\x20if\x20missing\x0a\x20\x20--skills-path\x20PATH\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Extra\x20bundled-skills\x20directory\x20(merged\x20with\x20the\x20installed\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20app\x27s\x20skills\x20and\x20DELEGATE_BUNDLED_SKILLS_PATH)\x0a\x20\x20--effort\x20TIER\x20\x20\x20\x20\x20Reasoning\x20effort:\x20low\x20|\x20medium\x20|\x20high\x20|\x20xhigh\x20|\x20max.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default:\x20the\x20model\x27s\x20recommended\x20tier\x0a\x20\x20--session\x20ID\x20\x20\x20\x20\x20\x20Continue\x20an\x20existing\x20backend\x20session\x20(an\x20unknown\x20id\x20exits\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x201;\x20the\x20backend\x20assigns\x20new\x20ids).\x20For\x20complete:\x20the\x20session\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20whose\x20history\x20is\x20the\x20context\x0a\x20\x20--json-schema\x20FILE\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20JSON\x20schema\x20the\x20structured\x20answer\x20must\x20match\x20(complete,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20and\x20prompts:\x20implies\x20--print)\x0a\x20\x20--runner-url\x20URL\x20\x20(host)\x20Runner\x20worker\x20WS\x20URL.\x20Required;\x20or\x20CONTROL_PLANE_WS_URL\x20env\x0a\x20\x20--interop\x20PATH\x20\x20\x20\x20(host)\x20Interop\x20binary\x20path;\x20or\x20INTEROP_EXECUTABLE_PATH\x20env.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Absent\x20→\x20registration/discovery\x20only,\x20tool\x20execution\x20disabled\x0a\x20\x20--worker-id\x20ID\x20\x20\x20\x20(host)\x20Stable\x20worker\x20identity;\x20or\x20WORKER_ID\x20env.\x20Default:\x20hostname\x0a\x20\x20--page\x20N\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(sessions)\x20Page\x20to\x20show,\x20from\x201.\x20Default:\x201\x0a\x20\x20--limit\x20N\x20\x20\x20\x20\x20\x20\x20\x20\x20(sessions)\x20Rows\x20per\x20page,\x201-100.\x20Default:\x2030\x0a\x20\x20--include-subagents\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(sessions)\x20Also\x20list\x20sub-agent\x20sessions,\x20hidden\x20by\x20default\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20as\x20in\x20the\x20desktop\x20app\x27s\x20history\x0a\x20\x20--to\x20WHO\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(delegations\x20create)\x20Assign\x20to\x20this\x20person:\x20an\x20email,\x20or\x20a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20name\x20that\x20matches\x20exactly\x20one\x20colleague\x20(see\x20org-users)\x0a\x20\x20--summary\x20TEXT\x20\x20\x20\x20(delegations\x20create)\x20The\x20briefing\x20the\x20person\x20starts\x20from.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default:\x20empty,\x20for\x20a\x20task\x20that\x20stands\x20on\x20its\x20own\x0a\x20\x20--output-format\x20FMT\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20text\x20(default)\x20|\x20json\x20|\x20stream-json.\x20json\x20prints\x20one\x20result\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20object\x20on\x20exit;\x20stream-json\x20prints\x20every\x20agent\x20event\x20as\x20one\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20JSON\x20line,\x20then\x20the\x20result.\x20Both\x20keep\x20stdout\x20JSON-only\x20(logs,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20progress\x20and\x20the\x20session\x20id\x20go\x20to\x20stderr),\x20imply\x20--print,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20and\x20exit\x201\x20when\x20the\x20turn\x20ends\x20in\x20error.\x20Also\x20honoured\x20by\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20every\x20subcommand\x20that\x20prints\x20a\x20result\x20(all\x20but\x20login,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20logout,\x20tenant\x20and\x20host)\x0a\x20\x20-q,\x20--quiet\x20\x20\x20\x20\x20\x20\x20Suppress\x20🤔\x20thinking\x20output\x20to\x20stderr\x0a\x20\x20--verbose\x20\x20\x20\x20\x20\x20\x20\x20\x20Surface\x20the\x20SDK\x27s\x20and\x20the\x20framework\x27s\x20own\x20logs.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Diagnostics\x20only,\x20on\x20stdout;\x20independent\x20of\x20-q\x0a\x20\x20-h,\x20--help\x20\x20\x20\x20\x20\x20\x20\x20Show\x20this\x20help\x0a\x20\x20-v,\x20--version\x20\x20\x20\x20\x20Print\x20the\x20installed\x20CLI\x20version\x0a\x0aConversation:\x20Enter\x20sends\x20a\x20message;\x20/exit\x20or\x20EOF\x20exits;\x20Ctrl+C\x20stops\x20and\x20exits.\x0a\x20\x20Ctrl+C\x20during\x20a\x20turn\x20cancels\x20it\x20on\x20the\x20backend\x20too;\x20a\x20second\x20Ctrl+C\x20force-exits.\x0a\x20\x20An\x20optional\x20initial\x20prompt\x20is\x20followed\x20by\x20more\x20input.\x20The\x20session\x20ID\x20is\x20printed\x0a\x20\x20to\x20stderr;\x20resume\x20later\x20with\x20--session\x20ID.\x20Redirected\x20input\x20is\x20one\x20prompt.\x0aAuth:\x20prompts\x20auto-retry\x20on\x20401\x20by\x20opening\x20the\x20browser\x20to\x20re-login\x20(TTY\x20only),\x0a\x20\x20preserving\x20the\x20active\x20session.\x0a','the\x20JSON\x20schema','name',':\x20cannot\x20read\x20the\x20JSON\x20schema\x20(','\x20min)','verbose','test','--effort','organizationId','--tenant\x20requires\x20a\x20tenant\x20name.','Usage:\x20delegate-cli\x20org-users\x20<name\x20or\x20email\x20prefix>','models','pct_used','rubric_version','bind','Deployment:\x20\x20\x20','delete','\x20to\x20','pause','toString','utf-8','unknown','\x20applies\x20to\x20prompts\x20and\x20to\x20these\x20commands\x20only:\x20','medium','sessionId','--model','alreadyAccepted','Delegated\x20','getTurnUsageHistory','--attach','trim','assignedUserEmail','42463PXeNUu','.\x20Use\x20alpha\x20|\x20staging\x20|\x20production\x20|\x20localhost.','noSecurity','check','login','--no-memory','low','Last\x20','--output-format','tenantName','delegation','exitCode','description','>.\x0a','stop','delegations\x20list\x20<backend-project-id>','isError','No\x20delegations.\x0a','Invalid\x20--effort:\x20','locked','results','auth','workingDirectory','join','hide','subcommand','text','a\x20briefing\x20text','total_completion_tokens','\x20from\x20','unknown\x20slug','\x20\x20TITLE\x0a','expiresAt','stdin','an\x20email\x20address\x20or\x20name','total_token_units','the\x20request','Token:\x20\x20\x20\x20\x20\x20\x20\x20expired\x20','\x20\x22<prompt>\x22\x0aAnswer\x20with:\x20delegate-cli\x20delegations\x20complete\x20','\x20<id>','noMemory','score\x20','from\x201\x20to\x20','round','cleanup','startsWith','once','--to,\x20--summary\x20and\x20--session\x20apply\x20to\x20`delegate-cli\x20delegations\x20create`\x20only.','total_prompt_tokens','Token:\x20\x20\x20\x20\x20\x20\x20\x20expires\x20','--output-format\x20','\x20—\x20sign\x20out\x20in\x20the\x20Delegate\x20app\x20to\x20clear\x20that.','--attach\x20applies\x20to\x20prompts\x20only.','Organization:\x20','concat','quiet','--env\x20localhost\x20has\x20no\x20OAuth\x20flow;\x20pick\x20alpha,\x20staging,\x20or\x20production.','\x20days:\x20','host','session_consumed_pu','--session','pending','log','probability','write','rejection','outputFormat','--skip-env-check','From\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Source:\x20\x20\x20\x20\x20\x20\x20','content','--session\x20applies\x20to\x20the\x20`delegate-cli\x20usage`\x20summary\x20only.','index','Usage:\x20delegate-cli\x20','limit','No\x20auth\x20found.\x20Set\x20AUTH_TOKEN/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.','Removed\x20','\x20is\x20not\x20valid\x20JSON\x20(','a\x20session\x20id','\x22.\x0a','Deleted\x20session\x20','push','email','message','2982aehgMz','a\x20deployment\x20URL,\x20e.g.\x20https://automationsuite.contoso.com','add','url','runnerUrl','end','\x20token\x20units','Structured\x20output\x20failed:\x20','token_units','entries','a\x20format\x20(','task','sourceTitle','Unknown\x20sessions\x20action:\x20','%\x20of\x20','Answered','Invalid\x20--env:\x20','toUpperCase','--days\x20applies\x20to\x20`delegate-cli\x20usage\x20activity|daily`;\x20the\x20summary\x20covers\x20the\x20current\x20month.','Forked\x20','operands','\x20of\x20session\x20','a\x20file\x20path','--summary','ID\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','parentSessionId','create','Cancel\x20requested\x20for\x20turn\x20','delegations\x20claim\x20<delegation-id|delegate://delegation/…>','\x20active\x20days','estimated_cost_usd','result','\x0aStopping…\x20(Ctrl+C\x20again\x20to\x20force\x20exit)\x0a','rename','\x20\x20from\x20','daily_usage','\x20\x20\x20\x20BYO\x20warning:\x20','staging','map','--turn\x20applies\x20to\x20`delegate-cli\x20sessions\x20cancel`\x20only.','3339306AzcAkl','),\x20','lastType','structured','version','includeSubAgents','stream-json','preloadSkills','\x20prompt,\x20','show','isSafeInteger','Cartographer:\x20','off','complete\x20needs\x20a\x20prompt:\x20delegate-cli\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22,\x20or\x20-\x20to\x20read\x20stdin.','turn_start','18HEMqRm','close','delegate-cli','\x20must\x20be\x20a\x20JSON\x20object.','\x20PU','exit','Session\x20\x20\x20\x20\x20\x20\x20','prompt','noComputerUse','--preload-skill','\x0aAvailable\x20models\x20(','accessToken','\x20requires\x20','claim','ASSIGNEE','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','baseUrl','done','resume','a\x20JSON\x20schema\x20file','Pass\x20either\x20--env\x20(a\x20named\x20cloud)\x20or\x20--url\x20(any\x20other\x20deployment),\x20not\x20both.','deployment','toFixed','list','padEnd','from','SIGINT','/exit','--version','workerId','delegations','\x20(confidence\x20','transcribe','--runner-url','backendUrl','isTTY','sendMessage','cancel','\x20this\x20month','Model\x20','includes','--env','.\x20Use\x20','thinking','destroy','--url\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Other\x20commands\x20follow\x20the\x20saved\x20login,\x20or\x20--backend\x20<url>.','forEach','No\x20turn\x20','replace','Enter\x20sends\x20a\x20message.\x20/exit\x20or\x20EOF\x20exits;\x20Ctrl+C\x20stops\x20and\x20exits.\x0a','.\x20Use:\x20','a\x20colleague','--working-dir','--turn','delegations\x20cancel\x20<delegation-id>','jsonSchemaPath','delegations\x20show\x20<delegation-id|delegate://delegation/…>','3484208ytnjDb','updatedAt','--interop',').\x0a','--help','interopPath','origin','Spending:\x20\x20\x20\x20\x20$','No\x20CLI\x20login\x20found.\x20Note:\x20the\x20CLI\x20is\x20currently\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20','--no-connections','error','total_tokens','--url','Already\x20accepted','attachments','tenant','Claimed\x20from\x20delegation\x20','No\x20models\x20available\x20for\x20this\x20product/tenant.\x0a','--days','.\x20Share:\x20','delegateTo','Tenant:\x20\x20\x20\x20\x20\x20\x20','padStart','\x20|\x20','complete','localhost','):\x0a\x0a',']\x20Backend\x20URL:\x20','limit_enabled','cwd','\x20into\x20','file','\x20PU\x20used','Switch\x20with:\x20delegate-cli\x20tenant\x20<name>\x0a','🔧\x20','argv','lockReason','total_cost_usd','UIPATH_BASE_URL\x20is\x20unusable.\x20','\x20in\x20progress\x20on\x20session\x20','spawn','answers','Tokens:\x20','date','\x20\x22<prompt>\x22\x0a','\x20PU\x20beyond\x20quota','confidence','all','Tenants\x20of\x20','sessions','delegations\x20pending\x20<session-id>','monthly_limit_usd','data','cancelled','Usage:\x20delegate-cli\x20sessions\x20cancel\x20<session-id>\x20--turn\x20<turn-id>','code','active_days','Unknown\x20delegations\x20action:\x20','Session:\x20','\x20\x20\x20\x20Not\x20available\x20on\x20this\x20plan','whoami','total_sessions','tenantId','Date\x20\x20\x20\x20\x20\x20\x20\x20Token\x20units\x20\x20Prompt\x20tokens\x20\x20Completion\x20tokens','No\x20CLI\x20login\x20found\x20—\x20nothing\x20to\x20remove.','asyncIterator','catch','restore','userId','--tenant\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Switch\x20tenants\x20with:\x20delegate-cli\x20tenant\x20<name>','verdict','response','turnId','Tenant:\x20','stringify','rmSync','\x20(no\x20cap\x20enforced)','a\x20directory\x20path','score','delegations\x20complete\x20<delegation-id>\x20\x22<answer>\x22|-','5803AkgEMC','parse','--tenant','Invalid\x20--output-format:\x20','2600305cXNJjk','object','model_version','session_start','\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).','mode','model','readFileSync','getSessionId','usage','\x20\x20TASK\x0a','tokenExpiresAt','\x20days.\x0a','environment\x20variables\x20(AUTH_TOKEN/TENANT_ID/ORG_ID)','\x20\x20(sub-agent\x20of\x20','daily','\x20tokens\x0a','\x20\x22<answer>\x22\x0a','--verbose','No\x20CLI\x20login\x20found.\x20Run\x20`delegate-cli\x20login\x20--env\x20<alpha|staging|production>`\x20first.','--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`delegate-cli\x20sessions`\x20only.','--attach:\x20no\x20such\x20file\x20or\x20folder:\x20','noConnections','Task\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','slice','Owner\x20\x20\x20\x20\x20\x20\x20\x20\x20','now','delegationId','an\x20effort\x20tier','verify','stdout','Unknown\x20usage\x20view:\x20','\x20delegation\x20','displayName','activity','monthly_spend_usd','--cartographer','rerank','detail','Created\x20delegation\x20','skipEnvCheck','\x20completion','--days\x20applies\x20to\x20`delegate-cli\x20usage\x20activity|daily`\x20only.','Tenant\x20not\x20switched:\x20could\x20not\x20write\x20','a\x20skill\x20name','a\x20number','accept'];_0x5f38=function(){return _0x32d3fe;};return _0x5f38();}function ce(){const _0x21537e=_0x5c3cd6;let _0x3714b9=process.env.UIPATH_BASE_URL;if(!_0x3714b9)return;let _0x17074f=_0x3e44ab(_0x3714b9);if(_0x17074f['ok']===!0x1)throw new Error(_0x21537e(0x252)+_0x327834(_0x3714b9,_0x17074f[_0x21537e(0x35f)]));return _0x17074f[_0x21537e(0x203)];}async function P(){let _0x367671=O();if(_0x367671)return _0x367671;let _0x5776d4=await _0x1157c5();if(_0x5776d4)return _0x5776d4;throw new Error(le);}async function Et(){const _0x555559=_0x5c3cd6;await new _0x4dd290()[_0x555559(0x32c)]({'force':!0x0}),console[_0x555559(0x35c)](_0x555559(0x2e7));}function j(_0x1dda4d,_0x4e2b1e,_0x583166){const _0x31c990=_0x5c3cd6;_0x1dda4d?process[_0x31c990(0x2dc)]['write'](_0x31c990(0x2c3)+_0x1dda4d+_0x31c990(0x247)+_0x583166+'\x0a'):!_0x4e2b1e&&!process.env.BACKEND_URL&&process[_0x31c990(0x2dc)][_0x31c990(0x35e)](_0x31c990(0x2cc)+_0x583166+'\x0a');}async function f(_0x21db28){const _0x52bf4d=_0x5c3cd6;let _0x465e5d=await P(),_0x2204e4=_0x4abdb1(_0x21db28[_0x52bf4d(0x2e0)],_0x465e5d,_0x21db28['backendUrl']);return j(_0x21db28[_0x52bf4d(0x2e0)],_0x21db28[_0x52bf4d(0x215)],_0x2204e4),{'auth':_0x465e5d,'backendUrl':_0x2204e4,'client':_0x2e3a78({'auth':_0x465e5d,'backendUrl':_0x2204e4})};}async function It(_0x69f407){const _0x1270d8=_0x5c3cd6;let {client:_0x517240}=await f(_0x69f407),[_0x4f33a4,_0x4db11b]=await Promise['all']([_0x1332c6(_0x517240),_0x4b36c9(_0x517240)['catch'](_0x46466f=>(process[_0x1270d8(0x2dc)][_0x1270d8(0x35e)]('Could\x20not\x20check\x20BYO\x20model\x20warnings:\x20'+(_0x46466f instanceof Error?_0x46466f['message']:String(_0x46466f))+'\x0a'),{}))]),_0x5eb07b=_0x4f33a4[_0x1270d8(0x398)](_0x31f9c8=>_0x4db11b[_0x31f9c8['id']]?{..._0x31f9c8,'byoWarning':_0x4db11b[_0x31f9c8['id']]}:_0x31f9c8);l(_0x69f407,_0x5eb07b,$t);}function $t(_0x23aab8){const _0x18b2d5=_0x5c3cd6;if(_0x23aab8[_0x18b2d5(0x2e9)]===0x0){process[_0x18b2d5(0x2dc)][_0x18b2d5(0x35e)](_0x18b2d5(0x23d));return;}process[_0x18b2d5(0x29e)][_0x18b2d5(0x35e)](_0x18b2d5(0x1fd)+_0x23aab8[_0x18b2d5(0x2e9)]+_0x18b2d5(0x246));for(let _0x2a9e67 of _0x23aab8){let _0x452d15=_0x2a9e67[_0x18b2d5(0x300)]&&_0x2a9e67[_0x18b2d5(0x300)]!==_0x2a9e67['id']?'\x20('+_0x2a9e67['name']+')':'';process[_0x18b2d5(0x29e)][_0x18b2d5(0x35e)]('\x20\x20'+_0x2a9e67['id']+_0x452d15+'\x0a'),_0x2a9e67[_0x18b2d5(0x32a)]&&process['stdout'][_0x18b2d5(0x35e)]('\x20\x20\x20\x20'+_0x2a9e67[_0x18b2d5(0x32a)]+'\x0a'),_0x2a9e67[_0x18b2d5(0x331)]&&process[_0x18b2d5(0x29e)]['write'](_0x18b2d5(0x267)+(_0x2a9e67[_0x18b2d5(0x250)]?'\x20('+_0x2a9e67[_0x18b2d5(0x250)]+')':'')+'\x0a'),_0x2a9e67['byoWarning']&&process['stdout'][_0x18b2d5(0x35e)](_0x18b2d5(0x396)+_0x2a9e67['byoWarning']+'\x0a');}process['stdout'][_0x18b2d5(0x35e)]('\x0aUse\x20with:\x20delegate-cli\x20--model\x20<id>\x20\x22<prompt>\x22\x0a');}var z=[_0x5c3cd6(0x20a),'show',_0x5c3cd6(0x393),'delete',_0x5c3cd6(0x218),_0x5c3cd6(0x2af)];async function xt(_0x405c67){const _0x430c79=_0x5c3cd6;let [_0x4f4f6e='',_0x5c876f='',..._0x5929af]=_0x405c67[_0x430c79(0x386)];if(_0x4f4f6e&&!z[_0x430c79(0x21b)](_0x4f4f6e)&&(console[_0x430c79(0x236)](_0x430c79(0x37f)+_0x4f4f6e+_0x430c79(0x225)+z[_0x430c79(0x335)](_0x430c79(0x243))+'.'),process[_0x430c79(0x1f8)](0x2)),_0x405c67[_0x430c79(0x274)]!==void 0x0&&_0x4f4f6e!==_0x430c79(0x218)&&(console[_0x430c79(0x236)](_0x430c79(0x399)),process[_0x430c79(0x1f8)](0x2)),_0x4f4f6e&&_0x4f4f6e!==_0x430c79(0x20a)){await Tt(_0x405c67,_0x4f4f6e,_0x5c876f,_0x5929af['join']('\x20')[_0x430c79(0x31c)]());return;}_0x405c67[_0x430c79(0x386)][_0x430c79(0x2e9)]>0x1&&(console[_0x430c79(0x236)](_0x430c79(0x2be)),process['exit'](0x2));let {client:_0x31c5bb}=await f(_0x405c67),_0x11c037=await _0x3c5837(_0x31c5bb,{'page':_0x405c67['page'],'pageSize':_0x405c67[_0x430c79(0x368)],'includeSubAgents':_0x405c67['includeSubAgents']});l(_0x405c67,_0x11c037,Nt);}async function Tt(_0x15b5c6,_0x21e950,_0x3f0a78,_0x5edd7a){const _0x677521=_0x5c3cd6;if((_0x15b5c6['page']!==void 0x0||_0x15b5c6[_0x677521(0x368)]!==void 0x0||_0x15b5c6[_0x677521(0x1e9)])&&(console[_0x677521(0x236)](_0x677521(0x2e6)),process[_0x677521(0x1f8)](0x2)),_0x21e950==='cancel'){await Ut(_0x15b5c6,_0x3f0a78,_0x5edd7a);return;}if(_0x21e950===_0x677521(0x2af)){await _t(_0x15b5c6,_0x3f0a78,_0x5edd7a);return;}(!_0x3f0a78||_0x21e950===_0x677521(0x393)!=!!_0x5edd7a)&&(console[_0x677521(0x236)]('Usage:\x20delegate-cli\x20sessions\x20'+_0x21e950+_0x677521(0x345)+(_0x21e950===_0x677521(0x393)?'\x20<title>':'')),process[_0x677521(0x1f8)](0x2));let {client:_0x220922}=await f(_0x15b5c6);try{if(_0x21e950===_0x677521(0x1ed)){let _0x33c6b7=await _0x4fda64(_0x220922,_0x3f0a78);_0x33c6b7||V(_0x3f0a78),l(_0x15b5c6,_0x33c6b7,Dt);}else{if(_0x21e950==='rename'){let _0x365416=await _0x102864(_0x220922,_0x3f0a78,_0x5edd7a);l(_0x15b5c6,_0x365416,_0x3bb02c=>{const _0x5c8bd0=_0x677521;process[_0x5c8bd0(0x29e)][_0x5c8bd0(0x35e)]('Renamed\x20'+_0x3bb02c['id']+':\x20'+_0x3bb02c[_0x5c8bd0(0x2d8)]+'\x0a');});}else await _0x4ded31(_0x220922,_0x3f0a78),l(_0x15b5c6,{'id':_0x3f0a78,'deleted':!0x0},_0x43044f=>{const _0x3d0bd8=_0x677521;process['stdout'][_0x3d0bd8(0x35e)](_0x3d0bd8(0x36e)+_0x43044f['id']+'.\x0a');});}}catch(_0x5d4096){if(!_0x161c57(_0x5d4096,0x194))throw _0x5d4096;V(_0x3f0a78);}}function V(_0x4b807b){const _0x373775=_0x5c3cd6;console[_0x373775(0x236)]('Session\x20'+_0x4b807b+'\x20not\x20found.'),process['exit'](0x1);}function Dt(_0x5b65dc){const _0x2ff8d1=_0x5c3cd6;process[_0x2ff8d1(0x29e)][_0x2ff8d1(0x35e)](_0x2ff8d1(0x38a)+_0x5b65dc['id']+'\x0a'),process[_0x2ff8d1(0x29e)][_0x2ff8d1(0x35e)]('Title\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x5b65dc[_0x2ff8d1(0x2d8)]+'\x0a'),process[_0x2ff8d1(0x29e)][_0x2ff8d1(0x35e)](_0x2ff8d1(0x299)+_0x5b65dc[_0x2ff8d1(0x270)]+'\x0a'),process[_0x2ff8d1(0x29e)]['write'](_0x2ff8d1(0x2f8)+_0x5b65dc[_0x2ff8d1(0x306)]+'\x0a'),_0x5b65dc[_0x2ff8d1(0x29b)]&&process['stdout'][_0x2ff8d1(0x35e)]('Delegation\x20\x20\x20\x20'+_0x5b65dc[_0x2ff8d1(0x29b)]+'\x0a');}async function Ut(_0x4dea05,_0x481835,_0x534738){const _0x481877=_0x5c3cd6;(!_0x481835||_0x534738||!_0x4dea05[_0x481877(0x274)])&&(console[_0x481877(0x236)](_0x481877(0x262)),process['exit'](0x2));let {client:_0x413e4c}=await f(_0x4dea05),_0xfe8ba0=await _0x4961b7(_0x413e4c,_0x481835,_0x4dea05[_0x481877(0x274)]);l(_0x4dea05,{'sessionId':_0x481835,'turnId':_0x4dea05[_0x481877(0x274)],'cancelled':_0xfe8ba0},_0x12e0bf=>{const _0x42cb3d=_0x481877;_0x12e0bf[_0x42cb3d(0x261)]?process[_0x42cb3d(0x29e)][_0x42cb3d(0x35e)](_0x42cb3d(0x38d)+_0x12e0bf[_0x42cb3d(0x274)]+_0x42cb3d(0x387)+_0x12e0bf['sessionId']+'.\x0a'):process[_0x42cb3d(0x2dc)][_0x42cb3d(0x35e)](_0x42cb3d(0x222)+_0x12e0bf['turnId']+_0x42cb3d(0x253)+_0x12e0bf['sessionId']+'.\x0a');}),_0xfe8ba0||(process[_0x481877(0x329)]=0x1);}async function _t(_0x39033c,_0x2df317,_0x56cc65){const _0x345980=_0x5c3cd6;(!_0x2df317||/\s/[_0x345980(0x304)](_0x56cc65))&&(console['error']('Usage:\x20delegate-cli\x20sessions\x20fork\x20<id>\x20[<message-id>]'),process[_0x345980(0x1f8)](0x2));let {client:_0x4cc6e2}=await f(_0x39033c),_0x59091a;try{_0x59091a=await _0x10c080(_0x4cc6e2,_0x2df317,{'atMessageId':_0x56cc65||void 0x0});}catch(_0x274907){if(!_0x161c57(_0x274907,0x194))throw _0x274907;console[_0x345980(0x236)]('Session\x20'+_0x2df317+'\x20not\x20found,\x20has\x20no\x20messages'+(_0x56cc65?',\x20or\x20holds\x20no\x20message\x20'+_0x56cc65:'')+'.'),process['exit'](0x1);}l(_0x39033c,_0x59091a,_0x71727a=>{const _0x415cef=_0x345980;process['stdout'][_0x415cef(0x35e)](_0x415cef(0x385)+_0x2df317+_0x415cef(0x24a)+_0x71727a['id']+'.\x0a'),process[_0x415cef(0x2dc)][_0x415cef(0x35e)](_0x415cef(0x2c7)+_0x71727a['id']+_0x415cef(0x258));});}function Nt({sessions:_0x2cb15f,page:_0xf06267,isLastPage:_0x45634a}){const _0x2b1e85=_0x5c3cd6;if(_0x2cb15f[_0x2b1e85(0x2e9)]===0x0)process[_0x2b1e85(0x2dc)][_0x2b1e85(0x35e)](_0x2b1e85(0x2bc)+_0xf06267+'.\x0a');else{process[_0x2b1e85(0x29e)][_0x2b1e85(0x35e)]('ID'['padEnd'](0x24)+'\x20\x20'+'UPDATED'[_0x2b1e85(0x20b)](0x13)+_0x2b1e85(0x33d));for(let _0x514b1f of _0x2cb15f){let _0x45836e=_0x514b1f[_0x2b1e85(0x22d)][_0x2b1e85(0x223)]('T','\x20')[_0x2b1e85(0x298)](0x0,0x13),_0x2cb059=_0x514b1f[_0x2b1e85(0x38b)]?_0x2b1e85(0x28e)+_0x514b1f[_0x2b1e85(0x38b)]+')':'';process[_0x2b1e85(0x29e)][_0x2b1e85(0x35e)](_0x514b1f['id'][_0x2b1e85(0x20b)](0x24)+'\x20\x20'+_0x45836e['padEnd'](0x13)+'\x20\x20'+_0x514b1f[_0x2b1e85(0x2d8)]+_0x2cb059+'\x0a');}}_0x45634a||process[_0x2b1e85(0x2dc)][_0x2b1e85(0x35e)]('More:\x20delegate-cli\x20sessions\x20--page\x20'+(_0xf06267+0x1)+'\x0a');}async function Ct(_0x445e7e){const _0x3846c3=_0x5c3cd6;let _0x52dd0a=await P(),_0x5dd285=_0x4abdb1(_0x445e7e[_0x3846c3(0x2e0)],_0x52dd0a,_0x445e7e[_0x3846c3(0x215)]);j(_0x445e7e[_0x3846c3(0x2e0)],_0x445e7e[_0x3846c3(0x215)],_0x5dd285);let _0x16d1e2=await _0x4bf9cf({'auth':_0x52dd0a,'backendUrl':_0x5dd285,'interop':_0x445e7e[_0x3846c3(0x2ea)]?'skip':_0x3846c3(0x254)});l(_0x445e7e,_0x16d1e2,({checks:_0x469527})=>{const _0x4a2215=_0x3846c3;for(let _0x1b027b of _0x469527)process[_0x4a2215(0x29e)][_0x4a2215(0x35e)](Rt(_0x1b027b)+'\x0a');}),_0x16d1e2['ok']||process[_0x3846c3(0x1f8)](0x1);}function Rt(_0x37a897){const _0x58ad89=_0x5c3cd6;return{'ok':'✓','failed':'✗','skipped':'-'}[_0x37a897[_0x58ad89(0x2db)]]+'\x20'+_0x37a897['name'][_0x58ad89(0x20b)](0xa)+_0x37a897[_0x58ad89(0x2a6)];}var Lt=['',_0x5c3cd6(0x2a2),_0x5c3cd6(0x28f)];async function Ot(_0x326b0c){const _0x495192=_0x5c3cd6;let _0x3b3ac3=_0x326b0c[_0x495192(0x1fa)];Lt[_0x495192(0x21b)](_0x3b3ac3)||(console[_0x495192(0x236)](_0x495192(0x29f)+_0x326b0c[_0x495192(0x1fa)]+'.\x20Use\x20`delegate-cli\x20usage`,\x20`usage\x20activity`\x20or\x20`usage\x20daily`.'),process[_0x495192(0x1f8)](0x2)),_0x3b3ac3===''&&_0x326b0c[_0x495192(0x2fc)]!==void 0x0&&(console[_0x495192(0x236)](_0x495192(0x384)),process[_0x495192(0x1f8)](0x2)),_0x3b3ac3!==''&&_0x326b0c[_0x495192(0x316)]!==void 0x0&&(console[_0x495192(0x236)](_0x495192(0x365)),process[_0x495192(0x1f8)](0x2));let {client:_0x323482}=await f(_0x326b0c);if(_0x3b3ac3===_0x495192(0x2a2)){l(_0x326b0c,await _0x392af5(_0x323482,{'days':_0x326b0c[_0x495192(0x2fc)]}),jt);return;}if(_0x3b3ac3===_0x495192(0x28f)){l(_0x326b0c,await _0x58a8aa(_0x323482,{'days':_0x326b0c[_0x495192(0x2fc)]}),Ft);return;}let [_0x4656e5,_0x296226,_0x5713dc]=await Promise[_0x495192(0x25b)]([_0x17c196(_0x323482,{'sessionId':_0x326b0c[_0x495192(0x316)]}),_0x14252d(_0x323482),_0x320d0d(_0x323482)]);l(_0x326b0c,{'licensing':_0x4656e5,'monthlySpending':_0x296226,'cartographerAllowance':_0x5713dc},Pt);}function Pt(_0x544967){const _0x925051=_0x5c3cd6;let {licensing:_0x488523,monthlySpending:_0x284125,cartographerAllowance:_0x307211}=_0x544967,_0x2ae6a7=[_0x488523[_0x925051(0x248)]?'Licensing:\x20\x20\x20\x20'+_0x488523[_0x925051(0x30a)]['toFixed'](0x1)+_0x925051(0x380)+(_0x488523[_0x925051(0x2cf)]??0x0)+_0x925051(0x24c)+(_0x488523['extra_pool_consumed_pu']>0x0?',\x20'+_0x488523[_0x925051(0x2c2)]+_0x925051(0x259):'')+'\x20(resets\x20'+_0x488523['period_end']+')':_0x925051(0x2bb),_0x925051(0x233)+_0x284125[_0x925051(0x2a3)]['toFixed'](0x2)+_0x925051(0x219)+(_0x284125[_0x925051(0x248)]&&_0x284125['monthly_limit_usd']!==null?'\x20of\x20a\x20$'+_0x284125[_0x925051(0x25f)][_0x925051(0x209)](0x2)+'\x20cap':_0x925051(0x278)),_0x925051(0x1ef)+_0x307211[_0x925051(0x285)]+'\x20('+_0x307211['model_id']+')'];_0x488523['session_consumed_pu']!==null&&_0x488523[_0x925051(0x359)]!==void 0x0&&_0x2ae6a7[_0x925051(0x36f)]('Session:\x20\x20\x20\x20\x20\x20'+_0x488523[_0x925051(0x359)]+_0x925051(0x1f7)),process[_0x925051(0x29e)][_0x925051(0x35e)](_0x2ae6a7[_0x925051(0x335)]('\x0a')+'\x0a');}function jt(_0x1c4f47){const _0x3e304a=_0x5c3cd6;let _0x5e90ea=[_0x3e304a(0x325)+_0x1c4f47[_0x3e304a(0x2bf)]+_0x3e304a(0x357)+_0x1c4f47[_0x3e304a(0x269)]+'\x20sessions\x20on\x20'+_0x1c4f47[_0x3e304a(0x264)]+_0x3e304a(0x38f),'Cost:\x20\x20\x20$'+_0x1c4f47[_0x3e304a(0x251)]['toFixed'](0x2)+'\x20(estimated\x20$'+_0x1c4f47[_0x3e304a(0x390)][_0x3e304a(0x209)](0x2)+_0x3e304a(0x33b)+_0x1c4f47[_0x3e304a(0x341)]+'\x20token\x20units)',_0x3e304a(0x256)+_0x1c4f47[_0x3e304a(0x34e)]+_0x3e304a(0x1ec)+_0x1c4f47[_0x3e304a(0x33a)]+_0x3e304a(0x2a9)];for(let [_0x2a0e1c,_0x421720]of Object[_0x3e304a(0x37b)](_0x1c4f47['models_breakdown']))_0x5e90ea[_0x3e304a(0x36f)]('\x20\x20'+_0x2a0e1c+':\x20'+_0x421720+_0x3e304a(0x378));process[_0x3e304a(0x29e)][_0x3e304a(0x35e)](_0x5e90ea[_0x3e304a(0x335)]('\x0a')+'\x0a');}function Ft(_0x324c24){const _0x59a88e=_0x5c3cd6;if(_0x324c24[_0x59a88e(0x395)][_0x59a88e(0x2e9)]===0x0){process[_0x59a88e(0x29e)][_0x59a88e(0x35e)]('No\x20usage\x20in\x20the\x20last\x20'+_0x324c24[_0x59a88e(0x2bf)]+_0x59a88e(0x28c));return;}let _0x434bb5=[_0x59a88e(0x26b)];for(let _0x2e82b7 of _0x324c24['daily_usage'])_0x434bb5[_0x59a88e(0x36f)](_0x2e82b7[_0x59a88e(0x257)]+'\x20\x20'+String(_0x2e82b7[_0x59a88e(0x37a)])[_0x59a88e(0x242)](0xb)+'\x20\x20'+String(_0x2e82b7[_0x59a88e(0x2f7)])['padStart'](0xd)+'\x20\x20'+String(_0x2e82b7['completion_tokens'])[_0x59a88e(0x242)](0x11));process[_0x59a88e(0x29e)]['write'](_0x434bb5['join']('\x0a')+'\x0a');}async function Mt(_0xe48222,_0x5953fc){const _0x166c25=_0x5c3cd6;let _0x4bc330=await Bt(_0xe48222[_0x166c25(0x1fa)],_0x5953fc);_0xe48222['model']&&(_0x4bc330[_0x166c25(0x286)]=_0xe48222['model']);let {client:_0x5b3451}=await f(_0xe48222);try{_0x5953fc===_0x166c25(0x2b1)?l(_0xe48222,await _0x25e6f8(_0x5b3451,_0x4bc330,void 0x0),Ht):_0x5953fc===_0x166c25(0x2a5)?l(_0xe48222,await _0x1c5229(_0x5b3451,_0x4bc330,void 0x0),Jt):l(_0xe48222,await _0x44a5f1(_0x5b3451,_0x4bc330,void 0x0),Gt);}catch(_0x4d8f9c){if(!_0x35afd7(_0x4d8f9c))throw _0x4d8f9c;console[_0x166c25(0x236)](_0x4d8f9c[_0x166c25(0x371)]),process['exit'](0x1);}}async function Bt(_0x3ef926,_0x628fc4){const _0xc65061=_0x5c3cd6;let _0xcd7a33;try{_0xcd7a33=_0x3ef926&&_0x3ef926!=='-'?_0xea0a68[_0xc65061(0x287)](_0x4d472f[_0xc65061(0x2b6)](_0x3ef926),_0xc65061(0x312)):await I(_0x3ef926,process[_0xc65061(0x33f)]);}catch(_0xdd92b1){console['error'](_0x628fc4+_0xc65061(0x2f4)+_0xdd92b1[_0xc65061(0x371)]+').'),process[_0xc65061(0x1f8)](0x2);}return _0xcd7a33||(console[_0xc65061(0x236)](_0x628fc4+_0xc65061(0x2b8)+_0x628fc4+_0xc65061(0x2c8)),process[_0xc65061(0x1f8)](0x2)),de(_0xcd7a33,_0x628fc4,_0xc65061(0x342));}function de(_0x31d368,_0x1133d,_0x483534){const _0x5be80a=_0x5c3cd6;let _0x9da2ec;try{_0x9da2ec=JSON[_0x5be80a(0x27d)](_0x31d368);}catch(_0x1f045b){console['error'](_0x1133d+':\x20'+_0x483534+_0x5be80a(0x36b)+_0x1f045b[_0x5be80a(0x371)]+').'),process[_0x5be80a(0x1f8)](0x2);}return(typeof _0x9da2ec!=_0x5be80a(0x281)||_0x9da2ec===null||Array['isArray'](_0x9da2ec))&&(console[_0x5be80a(0x236)](_0x1133d+':\x20'+_0x483534+_0x5be80a(0x1f6)),process[_0x5be80a(0x1f8)](0x2)),_0x9da2ec;}function ue(_0xc3bfe6,_0x392298){const _0x54f686=_0x5c3cd6;let _0x2df861;try{_0x2df861=_0xea0a68[_0x54f686(0x287)](_0x4d472f[_0x54f686(0x2b6)](_0xc3bfe6),'utf-8');}catch(_0x5e9e5b){console[_0x54f686(0x236)](_0x392298+_0x54f686(0x301)+_0x5e9e5b[_0x54f686(0x371)]+').'),process[_0x54f686(0x1f8)](0x2);}return de(_0x2df861,_0x392298,_0x54f686(0x2ff));}async function qt(_0x16c32a){const _0x83de57=_0x5c3cd6;_0x16c32a[_0x83de57(0x22a)]===void 0x0&&(console['error'](_0x83de57(0x2ee)),process[_0x83de57(0x1f8)](0x2));let _0x1f2904=ue(_0x16c32a['jsonSchemaPath'],_0x83de57(0x244)),_0x2e904d=(await I(_0x16c32a[_0x83de57(0x1fa)],process['stdin']))[_0x83de57(0x31c)]();_0x2e904d||(console[_0x83de57(0x236)](_0x83de57(0x1f1)),process[_0x83de57(0x1f8)](0x2));let {client:_0x3ae869}=await f(_0x16c32a);try{let _0x2f1bfd=await _0x20b8a2(_0x3ae869,{'prompt':_0x2e904d,'jsonSchema':_0x1f2904,'model':_0x16c32a[_0x83de57(0x286)]||process.env.MODEL||_0x4d46e9,..._0x16c32a[_0x83de57(0x316)]!==void 0x0&&{'sessionId':_0x16c32a[_0x83de57(0x316)]}},void 0x0);l(_0x16c32a,_0x2f1bfd,_0xb9a300=>{const _0x494ea6=_0x83de57;process[_0x494ea6(0x29e)][_0x494ea6(0x35e)](JSON[_0x494ea6(0x276)](_0xb9a300[_0x494ea6(0x39d)],null,0x2)+'\x0a');});}catch(_0x430357){if(!_0x1cd659(_0x430357))throw _0x430357;console['error'](_0x430357[_0x83de57(0x371)]),process[_0x83de57(0x1f8)](0x1);}}function F(_0xf59592){const _0xcd7508=_0x5c3cd6;process[_0xcd7508(0x29e)][_0xcd7508(0x35e)](_0xcd7508(0x21a)+_0xf59592[_0xcd7508(0x286)]+'\x20('+_0xf59592[_0xcd7508(0x282)]+_0xcd7508(0x39b)+_0xf59592[_0xcd7508(0x289)][_0xcd7508(0x237)]+_0xcd7508(0x290));}function Ht(_0x58597a){const _0x2c6ef5=_0x5c3cd6;F(_0x58597a);for(let _0x407d79 of Object['keys'](_0x58597a['answers'])){let _0x49beb6=_0x58597a[_0x2c6ef5(0x255)][_0x407d79],_0x1247f4=_0x49beb6[_0x2c6ef5(0x2b3)]===_0x2c6ef5(0x35d)?'probability\x20'+_0x49beb6['probability']['toFixed'](0x2):_0x49beb6[_0x2c6ef5(0x2b3)]===_0x2c6ef5(0x2d4)?'choice\x20'+_0x49beb6[_0x2c6ef5(0x2d4)]+'\x20(confidence\x20'+_0x49beb6['confidence'][_0x2c6ef5(0x209)](0x2)+')':_0x2c6ef5(0x347)+_0x49beb6[_0x2c6ef5(0x27a)]['toFixed'](0x2)+_0x2c6ef5(0x212)+_0x49beb6[_0x2c6ef5(0x25a)][_0x2c6ef5(0x209)](0x2)+')';process[_0x2c6ef5(0x29e)][_0x2c6ef5(0x35e)]('\x20\x20'+_0x407d79+':\x20'+_0x1247f4+'\x0a');}}function Jt(_0xd8fba8){const _0x576f11=_0x5c3cd6;F(_0xd8fba8),_0xd8fba8[_0x576f11(0x332)][_0x576f11(0x221)]((_0x9d6bdb,_0x1f507f)=>{const _0x1c38bb=_0x576f11;process[_0x1c38bb(0x29e)][_0x1c38bb(0x35e)]('\x20\x20'+(_0x1f507f+0x1)+'.\x20'+_0x9d6bdb['id']+'\x20\x20'+_0x9d6bdb[_0x1c38bb(0x27a)][_0x1c38bb(0x209)](0x3)+'\x20\x20(input\x20#'+_0x9d6bdb[_0x1c38bb(0x366)]+')\x0a');});}function Gt(_0x2d2aaa){const _0x1022c3=_0x5c3cd6;F(_0x2d2aaa),process[_0x1022c3(0x29e)][_0x1022c3(0x35e)]('Rubric\x20'+_0x2d2aaa[_0x1022c3(0x30b)]+'\x0a');for(let _0x252a44 of _0x2d2aaa[_0x1022c3(0x332)])process[_0x1022c3(0x29e)][_0x1022c3(0x35e)]('\x20\x20'+_0x252a44['id']+':\x20'+_0x252a44[_0x1022c3(0x272)]+_0x1022c3(0x212)+_0x252a44[_0x1022c3(0x25a)][_0x1022c3(0x209)](0x2)+')\x0a');}async function Wt(_0x5a85a7){const _0x53d4ab=_0x5c3cd6;let _0x359a25=_0x5a85a7[_0x53d4ab(0x1fa)][_0x53d4ab(0x31c)]();_0x359a25||(console[_0x53d4ab(0x236)]('transcribe\x20needs\x20audio:\x20delegate-cli\x20transcribe\x20<file>,\x20or\x20-\x20to\x20read\x20stdin.'),process[_0x53d4ab(0x1f8)](0x2));let {client:_0x2fb8bd}=await f(_0x5a85a7);try{let _0x1b112b=_0x359a25==='-'?{'data':await Kt(process[_0x53d4ab(0x33f)])}:_0x359a25;l(_0x5a85a7,await _0x489f10(_0x2fb8bd,_0x1b112b,void 0x0),_0x286362=>{const _0x2c7262=_0x53d4ab;process[_0x2c7262(0x29e)][_0x2c7262(0x35e)](_0x286362[_0x2c7262(0x338)]+'\x0a');});}catch(_0x3e74be){if(_0x148eb3(_0x3e74be)&&(console['error'](_0x3e74be[_0x53d4ab(0x371)]),process['exit'](_0x3e74be[_0x53d4ab(0x2db)]===void 0x0?0x2:0x1)),typeof _0x3e74be?.[_0x53d4ab(0x263)]!=_0x53d4ab(0x2bd))throw _0x3e74be;console['error'](_0x53d4ab(0x2eb)+_0x359a25+'\x20('+_0x3e74be[_0x53d4ab(0x371)]+').'),process[_0x53d4ab(0x1f8)](0x2);}}async function Kt(_0x3c914f){const _0x38065e=_0x5c3cd6;let _0x523f50=[];for await(let _0x204e24 of _0x3c914f)_0x523f50[_0x38065e(0x36f)](Buffer['from'](_0x204e24));return Buffer[_0x38065e(0x354)](_0x523f50);}var Y=[_0x5c3cd6(0x20a),_0x5c3cd6(0x35b),_0x5c3cd6(0x1ed),'create',_0x5c3cd6(0x200),_0x5c3cd6(0x244),_0x5c3cd6(0x2ae),'dismiss','cancel',_0x5c3cd6(0x30e)],X={'list':_0x5c3cd6(0x32d),'pending':_0x5c3cd6(0x25e),'show':_0x5c3cd6(0x22b),'create':'delegations\x20create\x20--session\x20<id>\x20[--to\x20<email|name>]\x20[--summary\x20<text>]\x20\x22<task>\x22|-','claim':_0x5c3cd6(0x38e),'complete':_0x5c3cd6(0x27b),'accept':'delegations\x20accept\x20<delegation-id>','dismiss':_0x5c3cd6(0x2ba),'cancel':_0x5c3cd6(0x229),'delete':_0x5c3cd6(0x2d7)};async function zt(_0x5da54d){const _0x15f88f=_0x5c3cd6;let [_0x554582='',_0x344768='',..._0x3ec2e5]=_0x5da54d['operands'];Y['includes'](_0x554582)||(console['error']((_0x554582?_0x15f88f(0x265)+_0x554582+'.\x20':'')+'Use:\x20delegate-cli\x20delegations\x20'+Y[_0x15f88f(0x335)](_0x15f88f(0x243))+'.'),process[_0x15f88f(0x1f8)](0x2));let _0xcadec8=_0x554582;_0xcadec8!=='create'&&(_0x5da54d['delegateTo']!==void 0x0||_0x5da54d[_0x15f88f(0x2b2)]!==void 0x0||_0x5da54d[_0x15f88f(0x316)]!==void 0x0)&&(console['error'](_0x15f88f(0x34d)),process[_0x15f88f(0x1f8)](0x2));let _0x3aefeb=(_0xcadec8==='create'?_0x5da54d[_0x15f88f(0x386)][_0x15f88f(0x298)](0x1):_0x3ec2e5)[_0x15f88f(0x335)]('\x20')[_0x15f88f(0x31c)](),_0x34f14f=_0xcadec8===_0x15f88f(0x38c)||_0xcadec8===_0x15f88f(0x244);(_0xcadec8!==_0x15f88f(0x38c)&&!_0x344768||(_0x34f14f?!_0x3aefeb:_0x3aefeb)||_0xcadec8===_0x15f88f(0x38c)&&!_0x5da54d[_0x15f88f(0x316)])&&(console[_0x15f88f(0x236)](_0x15f88f(0x367)+X[_0xcadec8]),process['exit'](0x2));let _0x5b99cb=_0x34f14f&&_0x3aefeb==='-'?(await I('-',process[_0x15f88f(0x33f)]))[_0x15f88f(0x31c)]():_0x3aefeb;_0x34f14f&&!_0x5b99cb&&(console[_0x15f88f(0x236)]('Usage:\x20delegate-cli\x20'+X[_0xcadec8]+'\x20(stdin\x20was\x20empty)'),process[_0x15f88f(0x1f8)](0x2));let {client:_0x38c616}=await f(_0x5da54d);try{await Vt(_0x5da54d,_0x38c616,_0xcadec8,_0x344768,_0x5b99cb);}catch(_0x3977a1){if(!_0x8d1533(_0x3977a1))throw _0x3977a1;console[_0x15f88f(0x236)](_0x3977a1['message']),process[_0x15f88f(0x1f8)](0x1);}}async function Vt(_0x50aaf2,_0x5c5a01,_0x57f125,_0x4b0f6a,_0x288bed){const _0x38a192=_0x5c3cd6;switch(_0x57f125){case _0x38a192(0x20a):l(_0x50aaf2,await _0x196136(_0x5c5a01,_0x4b0f6a),Yt);return;case'pending':l(_0x50aaf2,await _0x78e406(_0x5c5a01,_0x4b0f6a),_0x167c88=>{const _0xf9a1a6=_0x38a192;_0x167c88['delegation']&&process['stdout'][_0xf9a1a6(0x35e)](_0xf9a1a6(0x23c)+_0x167c88[_0xf9a1a6(0x328)]['id']+'\x20('+_0x167c88[_0xf9a1a6(0x328)][_0xf9a1a6(0x2db)]+_0xf9a1a6(0x22f)),_0x167c88[_0xf9a1a6(0x2c0)][_0xf9a1a6(0x2e9)]===0x0&&process[_0xf9a1a6(0x2dc)][_0xf9a1a6(0x35e)](_0xf9a1a6(0x2f1));for(let _0x51e940 of _0x167c88[_0xf9a1a6(0x2c0)])process[_0xf9a1a6(0x29e)][_0xf9a1a6(0x35e)]('\x0a'+_0x51e940['id']+_0xf9a1a6(0x394)+(_0x51e940[_0xf9a1a6(0x31d)]??_0xf9a1a6(0x226))+'\x20\x20'+(_0x51e940['task']??'')+'\x0a'+(_0x51e940[_0xf9a1a6(0x391)]?.[_0xf9a1a6(0x364)]??'')+'\x0a');_0x167c88[_0xf9a1a6(0x2c0)][_0xf9a1a6(0x2e9)]>0x0&&process[_0xf9a1a6(0x2dc)][_0xf9a1a6(0x35e)]('\x0aAccept\x20one\x20with:\x20delegate-cli\x20delegations\x20accept\x20<id>\x0a');});return;case _0x38a192(0x1ed):l(_0x50aaf2,await _0x5174e8(_0x5c5a01,_0x4b0f6a),Q);return;case _0x38a192(0x38c):{let _0x36c4db=await _0x46caae(_0x5c5a01,{'sessionId':_0x50aaf2[_0x38a192(0x316)],'task':_0x288bed,..._0x50aaf2[_0x38a192(0x2b2)]!==void 0x0&&{'contextSummary':_0x50aaf2['contextSummary']},..._0x50aaf2[_0x38a192(0x240)]!==void 0x0&&{'recipient':_0x50aaf2[_0x38a192(0x240)]}});l(_0x50aaf2,_0x36c4db,_0x29dfae=>{const _0x56735f=_0x38a192;_0x29dfae[_0x56735f(0x2b0)]?process[_0x56735f(0x29e)]['write'](_0x56735f(0x319)+_0x29dfae['delegationId']+_0x56735f(0x30f)+_0x29dfae[_0x56735f(0x2b0)][_0x56735f(0x2a1)]+'\x20<'+_0x29dfae[_0x56735f(0x2b0)][_0x56735f(0x370)]+_0x56735f(0x32b)):process['stdout'][_0x56735f(0x35e)](_0x56735f(0x2a7)+_0x29dfae[_0x56735f(0x29b)]+_0x56735f(0x23f)+_0x29dfae['deepLink']+'\x0a');});return;}case'claim':{let _0x5cb8c3=await _0x367f3a(_0x5c5a01,_0x4b0f6a);l(_0x50aaf2,_0x5cb8c3,_0x128f57=>{const _0x2529f8=_0x38a192;Q(_0x128f57),process[_0x2529f8(0x29e)][_0x2529f8(0x35e)](_0x2529f8(0x1f9)+_0x128f57[_0x2529f8(0x316)]+'\x0a'),process[_0x2529f8(0x2dc)][_0x2529f8(0x35e)](_0x2529f8(0x2ef)+_0x128f57[_0x2529f8(0x316)]+_0x2529f8(0x344)+_0x128f57[_0x2529f8(0x29b)]+_0x2529f8(0x291));});return;}case _0x38a192(0x244):{let {alreadyCompleted:_0x579d39}=await _0x447659(_0x5c5a01,_0x4b0f6a,{'content':_0x288bed});l(_0x50aaf2,{'delegationId':_0x4b0f6a,'alreadyCompleted':_0x579d39},_0x390a89=>{const _0x3a1580=_0x38a192;process[_0x3a1580(0x29e)]['write']((_0x390a89['alreadyCompleted']?'Already\x20answered':_0x3a1580(0x381))+'\x20delegation\x20'+_0x390a89[_0x3a1580(0x29b)]+'.\x0a');});return;}case'accept':{let _0x48c3ed=await _0x2fc141(_0x5c5a01,_0x4b0f6a);l(_0x50aaf2,{'delegationId':_0x4b0f6a,..._0x48c3ed},_0x45fe1f=>{const _0x1f034a=_0x38a192;process[_0x1f034a(0x29e)][_0x1f034a(0x35e)]((_0x45fe1f[_0x1f034a(0x318)]?_0x1f034a(0x239):_0x1f034a(0x2e8))+_0x1f034a(0x2a0)+_0x45fe1f[_0x1f034a(0x29b)]+'.\x0a');});return;}default:{let _0x25b30c={'dismiss':_0x226927,'cancel':_0x452cc5,'delete':_0x27e268}[_0x57f125];await _0x25b30c(_0x5c5a01,_0x4b0f6a);let _0x52c689={'dismiss':'dismissed','cancel':_0x38a192(0x261),'delete':_0x38a192(0x2cb)}[_0x57f125];l(_0x50aaf2,{'delegationId':_0x4b0f6a,[_0x52c689]:!0x0},()=>{const _0x58018d=_0x38a192;process[_0x58018d(0x29e)]['write'](''+_0x52c689[0x0][_0x58018d(0x383)]()+_0x52c689[_0x58018d(0x298)](0x1)+_0x58018d(0x2a0)+_0x4b0f6a+'.\x0a');});}}}function Yt(_0x39cf27){const _0x4434df=_0x5c3cd6;if(_0x39cf27['length']===0x0){process['stderr'][_0x4434df(0x35e)](_0x4434df(0x32f));return;}process[_0x4434df(0x29e)][_0x4434df(0x35e)]('ID'[_0x4434df(0x20b)](0x24)+'\x20\x20'+'STATUS'[_0x4434df(0x20b)](0x9)+'\x20\x20'+_0x4434df(0x201)['padEnd'](0x18)+_0x4434df(0x28a));for(let _0x255caf of _0x39cf27)process['stdout'][_0x4434df(0x35e)](_0x255caf['id'][_0x4434df(0x20b)](0x24)+'\x20\x20'+_0x255caf[_0x4434df(0x2db)][_0x4434df(0x20b)](0x9)+'\x20\x20'+(_0x255caf[_0x4434df(0x31d)]??'-')['padEnd'](0x18)+'\x20\x20'+(_0x255caf[_0x4434df(0x37d)]??'')+'\x0a');}function Q(_0x7bdf70){const _0x3baa13=_0x5c3cd6;process[_0x3baa13(0x29e)][_0x3baa13(0x35e)](_0x3baa13(0x362)+(_0x7bdf70[_0x3baa13(0x2fa)]??'-')+'\x0a'),_0x7bdf70[_0x3baa13(0x37e)]&&process[_0x3baa13(0x29e)][_0x3baa13(0x35e)]('Session\x20\x20\x20\x20\x20\x20\x20'+_0x7bdf70[_0x3baa13(0x37e)]+'\x0a'),process['stdout'][_0x3baa13(0x35e)](_0x3baa13(0x297)+(_0x7bdf70[_0x3baa13(0x37d)]??'-')+'\x0a'),_0x7bdf70[_0x3baa13(0x2b2)]&&process[_0x3baa13(0x29e)]['write']('\x0a'+_0x7bdf70['contextSummary']+'\x0a\x0a');}async function Xt(_0x33f374){const _0x5dd937=_0x5c3cd6;_0x33f374[_0x5dd937(0x1fa)]['trim']()||(console['error'](_0x5dd937(0x308)),process['exit'](0x2));let {client:_0x14e131}=await f(_0x33f374),_0x185b6d;try{_0x185b6d=await _0x31f58b(_0x14e131,_0x33f374[_0x5dd937(0x1fa)]);}catch(_0x10567e){if(!_0x8d1533(_0x10567e))throw _0x10567e;console[_0x5dd937(0x236)](_0x10567e[_0x5dd937(0x371)]),process[_0x5dd937(0x1f8)](0x1);}l(_0x33f374,_0x185b6d,_0x32d188=>{const _0x10b8f5=_0x5dd937;_0x32d188[_0x10b8f5(0x2e9)]===0x0&&process[_0x10b8f5(0x2dc)][_0x10b8f5(0x35e)]('No\x20one\x20matches\x20\x22'+_0x33f374[_0x10b8f5(0x1fa)][_0x10b8f5(0x31c)]()+_0x10b8f5(0x36d));for(let _0x1dee28 of _0x32d188)process[_0x10b8f5(0x29e)]['write'](_0x1dee28['email'][_0x10b8f5(0x20b)](0x20)+'\x20\x20'+_0x1dee28[_0x10b8f5(0x2a1)]+'\x0a');});}async function Qt(_0x30c0f6){const _0x24d1ce=_0x5c3cd6;_0x30c0f6[_0x24d1ce(0x2e0)]===_0x24d1ce(0x245)&&(console['error'](_0x24d1ce(0x356)),process['exit'](0x2));let _0x1f3ea5=$(_0x28797c()),_0x1725a9=_0x30c0f6[_0x24d1ce(0x2a8)];if(_0x30c0f6['env']){let _0x1d3f36=_0x30c0f6[_0x24d1ce(0x2e0)];await _0x38c1bd({'env':_0x1d3f36,'tenant':_0x30c0f6[_0x24d1ce(0x23b)]??C(_0x1f3ea5,_0x1480d0[_0x1d3f36]),'skipEnvCheck':_0x1725a9});return;}let _0x3f7392=_0x30c0f6[_0x24d1ce(0x375)]??ce();if(_0x3f7392){await _0x38c1bd({'baseUrl':_0x3f7392,'tenant':_0x30c0f6['tenant']??C(_0x1f3ea5,_0x3f7392),'skipEnvCheck':_0x1725a9});return;}if(_0x1f3ea5?.[_0x24d1ce(0x203)]){await _0x38c1bd({'baseUrl':_0x1f3ea5['baseUrl'],'tenant':_0x30c0f6[_0x24d1ce(0x23b)]??_0x1f3ea5[_0x24d1ce(0x327)],'skipEnvCheck':_0x1725a9});return;}console[_0x24d1ce(0x236)](_0x24d1ce(0x202)),process[_0x24d1ce(0x1f8)](0x2);}function C(_0xa31283,_0xeaed09){const _0x297b8a=_0x5c3cd6;return _0xa31283?.[_0x297b8a(0x203)]&&Zt(_0xa31283[_0x297b8a(0x203)],_0xeaed09)?_0xa31283[_0x297b8a(0x327)]:void 0x0;}function Zt(_0x56eeea,_0x2af17b){const _0x461268=_0x5c3cd6;try{return new URL(_0x56eeea)[_0x461268(0x232)]===new URL(_0x2af17b)['origin'];}catch{return!0x1;}}async function en(_0x1c2a42){const _0x35b48c=_0x5c3cd6;O()&&(console[_0x35b48c(0x236)]('Auth\x20comes\x20from\x20AUTH_TOKEN/TENANT_ID/ORG_ID\x20—\x20set\x20TENANT_ID\x20and\x20TENANT_SLUG\x20to\x20change\x20the\x20tenant.'),process['exit'](0x2));let _0x1b65cd=await _0x2f083();if(_0x1b65cd||(console['error'](tn()),process[_0x35b48c(0x1f8)](0x2)),_0x1c2a42[_0x35b48c(0x31c)]()){let _0x510359=await _0x1bb7ef(_0x1b65cd,_0x1c2a42);_0xa7d579(_0x510359)||(console[_0x35b48c(0x236)](_0x35b48c(0x2ab)+_0x28797c()+';\x20the\x20saved\x20login\x20still\x20uses\x20'+_0x1b65cd[_0x35b48c(0x327)]+'.'),process[_0x35b48c(0x1f8)](0x1)),console[_0x35b48c(0x35c)](_0x35b48c(0x275)+_0x510359[_0x35b48c(0x327)]+'\x20('+_0x510359[_0x35b48c(0x26a)]+')\x20—\x20saved\x20to\x20'+_0x28797c());return;}nn(await _0x442126(_0x1b65cd),_0x1b65cd);}function tn(){const _0x184088=_0x5c3cd6;if(_0xea0a68['existsSync'](_0x28797c()))return'The\x20saved\x20CLI\x20login\x20could\x20not\x20be\x20refreshed.\x20Run\x20`delegate-cli\x20login`\x20again.';let _0x35bda7=L();return $(_0x35bda7)?'No\x20CLI\x20login\x20to\x20switch:\x20the\x20CLI\x20is\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20'+_0x35bda7+_0x184088(0x2c1):_0x184088(0x293);}function nn(_0x45ea99,_0x226b8a){const _0x4065d8=_0x5c3cd6;let _0x2cde9b=_0x45ea99['map'](_0x2cb9d9=>_0x2cb9d9['id']===_0x226b8a[_0x4065d8(0x26a)]?'*\x20'+_0x2cb9d9[_0x4065d8(0x300)]+_0x4065d8(0x2e5):'\x20\x20'+_0x2cb9d9[_0x4065d8(0x300)]);process['stdout'][_0x4065d8(0x35e)](_0x4065d8(0x25c)+(_0x226b8a['orgLogicalName']??_0x226b8a[_0x4065d8(0x306)])+':\x0a'+_0x2cde9b[_0x4065d8(0x335)]('\x0a')+'\x0a'),_0x45ea99['length']>0x1&&process[_0x4065d8(0x29e)][_0x4065d8(0x35e)](_0x4065d8(0x24d));}function on(_0x5cc0a9){const _0x443bf3=_0x5c3cd6;return _0x5cc0a9?.[_0x443bf3(0x273)]?.[_0x443bf3(0x2db)]===0x191||/401/['test'](String(_0x5cc0a9?.[_0x443bf3(0x371)]??''));}var d={'lastType':null,'quiet':!0x1},sn=_0x56c36c=>{const _0x597d0e=_0x5c3cd6;switch(_0x56c36c['type']){case _0x597d0e(0x283):_0x56c36c[_0x597d0e(0x316)]&&_0x56c36c[_0x597d0e(0x316)]!==d[_0x597d0e(0x316)]&&(process[_0x597d0e(0x2dc)]['write'](_0x597d0e(0x266)+_0x56c36c['sessionId']+'\x20(resume\x20with\x20--session\x20'+_0x56c36c['sessionId']+')\x0a'),d[_0x597d0e(0x316)]=_0x56c36c[_0x597d0e(0x316)]);break;case _0x597d0e(0x1f2):_0x56c36c[_0x597d0e(0x274)]&&_0x56c36c[_0x597d0e(0x274)]!==d['turnId']&&(d[_0x597d0e(0x39c)]!==null&&process[_0x597d0e(0x2dc)]['write']('\x0a'),process[_0x597d0e(0x2dc)][_0x597d0e(0x35e)]('Turn:\x20'+_0x56c36c['turnId']+'\x20(cancel\x20with:\x20delegate-cli\x20sessions\x20cancel\x20'+_0x56c36c[_0x597d0e(0x316)]+_0x597d0e(0x2f3)+_0x56c36c[_0x597d0e(0x274)]+')\x0a'),d[_0x597d0e(0x274)]=_0x56c36c[_0x597d0e(0x274)],d[_0x597d0e(0x39c)]='turn_start');break;case _0x597d0e(0x21e):_0x56c36c[_0x597d0e(0x364)]&&!d[_0x597d0e(0x355)]&&(d[_0x597d0e(0x39c)]!==_0x597d0e(0x21e)&&process[_0x597d0e(0x2dc)][_0x597d0e(0x35e)]('\x0a🤔\x20'),process[_0x597d0e(0x2dc)]['write'](_0x56c36c['content']),d[_0x597d0e(0x39c)]=_0x597d0e(0x21e));break;case _0x597d0e(0x2b7):d[_0x597d0e(0x39c)]!==null&&process[_0x597d0e(0x2dc)]['write']('\x0a'),process['stderr'][_0x597d0e(0x35e)](_0x597d0e(0x24e)+(_0x56c36c['toolName']??'tool')+'\x0a'),d[_0x597d0e(0x39c)]=_0x597d0e(0x2b7);break;case _0x597d0e(0x371):_0x56c36c[_0x597d0e(0x364)]&&(d[_0x597d0e(0x39c)]!=='message'&&d['lastType']!==null&&process['stdout'][_0x597d0e(0x35e)]('\x0a'),process[_0x597d0e(0x29e)]['write'](_0x56c36c[_0x597d0e(0x364)]),d['lastType']=_0x597d0e(0x371));break;case'error':d[_0x597d0e(0x39c)]!==null&&process[_0x597d0e(0x2dc)][_0x597d0e(0x35e)]('\x0a'),process[_0x597d0e(0x2dc)][_0x597d0e(0x35e)]('✗\x20'+(_0x56c36c[_0x597d0e(0x236)]??_0x597d0e(0x236))+'\x0a'),d[_0x597d0e(0x39c)]=_0x597d0e(0x236);break;case'done':(d[_0x597d0e(0x39c)]===_0x597d0e(0x371)||d[_0x597d0e(0x39c)]==='thinking')&&process[_0x597d0e(0x29e)][_0x597d0e(0x35e)]('\x0a'),process['stderr'][_0x597d0e(0x35e)]('✓\x20Done\x0a'),d[_0x597d0e(0x39c)]=_0x597d0e(0x204);break;}};function Z(_0x4c8bd6,_0x4109c6,_0x15d7f8){const _0x12ed62=_0x5c3cd6;let _0x20428f=_0x4c8bd6['model']||process.env.MODEL;return{'backendUrl':_0x15d7f8,'auth':_0x4109c6,'enableComputerUse':!_0x4c8bd6[_0x12ed62(0x2ea)]&&!_0x4c8bd6[_0x12ed62(0x1fb)],'autoSpawnInterop':!_0x4c8bd6[_0x12ed62(0x2ea)],'enableConnections':!_0x4c8bd6[_0x12ed62(0x296)],'enableSecurity':!_0x4c8bd6[_0x12ed62(0x320)],'keepInteropAlive':_0x4c8bd6[_0x12ed62(0x2d3)],..._0x4c8bd6[_0x12ed62(0x346)]?{'enableMemory':!0x1}:{},..._0x4c8bd6[_0x12ed62(0x1eb)][_0x12ed62(0x2e9)]>0x0?{'preloadSkills':_0x4c8bd6[_0x12ed62(0x1eb)]}:{},..._0x20428f?{'model':_0x20428f}:{},..._0x4c8bd6[_0x12ed62(0x2fd)]?{'projectId':_0x4c8bd6[_0x12ed62(0x2fd)]}:{},..._0x4c8bd6[_0x12ed62(0x334)]?{'workingDirectory':_0x4c8bd6['workingDirectory']}:{},..._0x4c8bd6[_0x12ed62(0x2b4)]?{'bundledSkillsPath':_0x4c8bd6[_0x12ed62(0x2b4)]}:{},..._0x4c8bd6[_0x12ed62(0x2f6)]?{'effort':_0x4c8bd6['effort']}:{},..._0x4c8bd6[_0x12ed62(0x316)]?{'sessionId':_0x4c8bd6[_0x12ed62(0x316)]}:{},..._0x4c8bd6[_0x12ed62(0x303)]?{'verbose':!0x0}:{}};}async function rn(_0x1751c1){const _0x141063=_0x5c3cd6;let _0x3ee6cb=_0x1751c1[_0x141063(0x360)]!==_0x141063(0x338),_0x3e2365=_0x1751c1[_0x141063(0x22a)]===void 0x0?null:ue(_0x1751c1[_0x141063(0x22a)],_0x141063(0x1f5)),_0xe12a81=!_0x3ee6cb&&!_0x3e2365&&!_0x1751c1['print']&&_0x1751c1['prompt']!=='-'&&!!process[_0x141063(0x33f)][_0x141063(0x216)]&&!!process[_0x141063(0x29e)][_0x141063(0x216)],_0x58bb24=_0xe12a81?_0x1751c1[_0x141063(0x1fa)]['trim']():await I(_0x1751c1[_0x141063(0x1fa)],process[_0x141063(0x33f)]);if(!_0xe12a81&&!_0x58bb24&&(console[_0x141063(0x236)]('Missing\x20prompt.\x20Pass\x20it\x20as\x20an\x20argument,\x20pipe\x20it\x20via\x20stdin,\x20or\x20run\x20`delegate-cli\x20--help`.'),process[_0x141063(0x1f8)](0x2)),!_0x3ee6cb){await ee(_0x1751c1,_0x58bb24,_0xe12a81,null,_0x3e2365);return;}let _0x8cb603=!0x1,_0x29c7ee=_0x438893=>{const _0xe29bb=_0x141063;_0x8cb603=!0x0,S(_0x3f1b63(_0x438893)),(_0x438893['isError']||_0x438893['structuredError'])&&(process[_0xe29bb(0x329)]=0x1);},_0x354565=Date[_0x141063(0x29a)]();try{await ee(_0x1751c1,_0x58bb24,!0x1,_0x29c7ee,_0x3e2365);}catch(_0xa3c686){if(_0x8cb603)throw _0xa3c686;process['stderr']['write']((_0xa3c686 instanceof Error?_0xa3c686['stack']??_0xa3c686[_0x141063(0x371)]:String(_0xa3c686))+'\x0a'),_0x29c7ee(new _0x117650(_0x354565)['finish']({'endedAtMs':Date[_0x141063(0x29a)](),'usage':[],'error':_0xa3c686}));}}async function ee(_0x1f511d,_0x5bbb79,_0x175096,_0x5e76ef,_0x386b53){const _0x4eca1c=_0x5c3cd6;d={'lastType':null,'quiet':_0x1f511d[_0x4eca1c(0x355)]};let _0xd3923e=new Set(),_0x318d6a=_0x1d7960=>{const _0x2c5863=_0x4eca1c;(!_0x5e76ef||_0x1d7960[_0x2c5863(0x2b3)]===_0x2c5863(0x283)||_0x1d7960[_0x2c5863(0x2b3)]==='turn_start')&&sn(_0x1d7960);for(let _0x17b842 of _0xd3923e)_0x17b842(_0x1d7960);},_0x1b89c1=await P(),_0x441ca5=new _0x399f6d();_0x441ca5[_0x4eca1c(0x2d5)](_0x318d6a);let _0x6e1223=_0x4abdb1(_0x1f511d[_0x4eca1c(0x2e0)],_0x1b89c1,_0x1f511d[_0x4eca1c(0x215)]);j(_0x1f511d[_0x4eca1c(0x2e0)],_0x1f511d['backendUrl'],_0x6e1223);let _0x4b3f54=Z(_0x1f511d,_0x1b89c1,_0x6e1223),_0x372a80=!0x1,_0x37e38a=!0x1,_0x24b19b,_0x36ea48=()=>_0x24b19b??=_0x441ca5[_0x4eca1c(0x21f)](),_0x204afd=()=>{const _0x479b9a=_0x4eca1c;_0x37e38a&&process[_0x479b9a(0x1f8)](0x82),_0x37e38a=!0x0,process[_0x479b9a(0x2dc)]['write'](_0x479b9a(0x392)),_0x372a80&&_0x441ca5[_0x479b9a(0x218)]()[_0x479b9a(0x26e)](_0x1f1e92=>console[_0x479b9a(0x236)](_0x1f1e92))['then'](_0x36ea48)[_0x479b9a(0x2c4)](()=>process['exit'](0x82),_0x3460ab=>{const _0x19d3f2=_0x479b9a;console[_0x19d3f2(0x236)](_0x3460ab),process[_0x19d3f2(0x1f8)](0x82);});};process['on'](_0x4eca1c(0x20d),_0x204afd);let _0x19ec8a=_0x1f511d['attachments'],_0x3fb00c=async _0x19c07e=>{const _0x5d001a=_0x4eca1c;let _0xcadff=_0x19ec8a;_0x19ec8a=[];let _0x4004c5=()=>_0x441ca5[_0x5d001a(0x217)](_0x19c07e,{'attachments':_0xcadff});try{return await _0x4004c5();}catch(_0x3438e0){if(_0x37e38a||!on(_0x3438e0)||!process[_0x5d001a(0x33f)][_0x5d001a(0x216)]||_0x1f511d[_0x5d001a(0x2e0)]==='localhost'||!(_0x1f511d['env']||_0x1b89c1[_0x5d001a(0x203)]))throw _0x3438e0;process['stderr'][_0x5d001a(0x35e)]('\x0a⚠️\x20\x20Auth\x20expired.\x20Opening\x20browser\x20to\x20re-login…\x0a');let _0x4851d9=_0x441ca5[_0x5d001a(0x288)]()??_0x1f511d[_0x5d001a(0x316)],_0x2742ba=await _0x38c1bd(_0x1f511d[_0x5d001a(0x2e0)]?{'env':_0x1f511d[_0x5d001a(0x2e0)],'tenant':C(_0x1b89c1,_0x1480d0[_0x1f511d[_0x5d001a(0x2e0)]]),'skipEnvCheck':!0x0}:{'baseUrl':_0x1b89c1[_0x5d001a(0x203)],'tenant':_0x1b89c1[_0x5d001a(0x327)],'skipEnvCheck':!0x0}),_0x49db30={'text':'','failed':!0x1,'sessionId':_0x4851d9};return _0x37e38a||(_0x372a80=!0x1,await _0x36ea48(),_0x37e38a)?_0x49db30:(_0x441ca5=new _0x399f6d(),_0x24b19b=void 0x0,_0x441ca5[_0x5d001a(0x2d5)](_0x318d6a),_0x1b89c1=_0x2742ba,await _0x441ca5['initialize']({...Z(_0x1f511d,_0x1b89c1,_0x6e1223),..._0x4851d9?{'sessionId':_0x4851d9}:{}}),_0x372a80=!0x0,_0x37e38a?_0x49db30:_0x4004c5());}};try{if(await _0x441ca5[_0x4eca1c(0x2e1)](_0x4b3f54),_0x372a80=!0x0,_0x37e38a)return;if(_0x175096)await cn({'prompt':_0x5bbb79,'sendMessage':_0x3fb00c,'onSigint':_0x204afd});else{if(_0x5e76ef||_0x386b53){let _0x3f2a8c=_0x1f511d['outputFormat']===_0x4eca1c(0x1ea)?_0x29f296=>S(_0x4c4c19(_0x29f296)):()=>{},_0x1b6ffc=await _0x302986({'onEvent':_0x25a432=>(_0xd3923e[_0x4eca1c(0x374)](_0x25a432),()=>{const _0x291c04=_0x4eca1c;_0xd3923e[_0x291c04(0x30e)](_0x25a432);}),'sendMessage':_0x2b983f=>_0x3fb00c(_0x2b983f),'getSessionId':()=>_0x441ca5['getSessionId'](),'getTurnUsageHistory':_0x2ee063=>_0x441ca5[_0x4eca1c(0x31a)](_0x2ee063),'complete':_0x3ea7f0=>_0x441ca5[_0x4eca1c(0x244)](_0x3ea7f0)},_0x5bbb79,void 0x0,_0x3f2a8c,_0x386b53?{'outputSchema':_0x386b53}:void 0x0);_0x5e76ef?_0x5e76ef(_0x1b6ffc):an(_0x1b6ffc);}else await _0x3fb00c(_0x5bbb79);}}catch(_0x40a12b){if(!_0x37e38a)throw _0x40a12b;}finally{try{await _0x36ea48();}finally{process['off'](_0x4eca1c(0x20d),_0x204afd),_0x37e38a&&(process[_0x4eca1c(0x329)]=0x82);}}}function an(_0x2b6007){const _0x5e871c=_0x5c3cd6;_0x2b6007['structuredError']?(console[_0x5e871c(0x236)](_0x5e871c(0x379)+_0x2b6007[_0x5e871c(0x2df)]['message']),process[_0x5e871c(0x329)]=0x1):_0x2b6007[_0x5e871c(0x32e)]?(console[_0x5e871c(0x236)](_0x5e871c(0x2c9)+_0x2b6007[_0x5e871c(0x236)]+').'),process[_0x5e871c(0x329)]=0x1):process[_0x5e871c(0x29e)][_0x5e871c(0x35e)](JSON['stringify'](_0x2b6007[_0x5e871c(0x39d)],null,0x2)+'\x0a');}function ln(_0x5502ff,_0x5b25d7){const _0x43ff01=_0x5c3cd6;let _0x2a1f73=process[_0x43ff01(0x29e)][_0x43ff01(0x35e)][_0x43ff01(0x30c)](process['stdout']),_0x549d67=!0x1;return process[_0x43ff01(0x29e)][_0x43ff01(0x35e)]=(..._0x538c9c)=>{const _0x2dc35d=_0x43ff01;if(!_0x549d67)return _0x2a1f73(..._0x538c9c);_0x26e9db(_0x5b25d7,0x0),_0x1dcba8(_0x5b25d7,0x0);let _0xa4921b=_0x2a1f73(..._0x538c9c);return _0x5502ff[_0x2dc35d(0x1fa)](!0x0),_0xa4921b;},{'show':()=>{const _0x5955bd=_0x43ff01;_0x549d67=!0x0,_0x5502ff[_0x5955bd(0x1fa)]();},'hide':()=>{_0x549d67=!0x1;},'restore':()=>{const _0x20a42f=_0x43ff01;_0x549d67=!0x1,process['stdout'][_0x20a42f(0x35e)]=_0x2a1f73;}};}async function cn({prompt:_0x4c8f31,sendMessage:_0x2ec796,onSigint:_0x1dbfe1}){const _0x163672=_0x5c3cd6;let _0x2e0060=_0x49cc95({'input':process[_0x163672(0x33f)],'output':process[_0x163672(0x2dc)],'terminal':!0x0,'prompt':'You>\x20'}),_0x147ed6=ln(_0x2e0060,process['stderr']),_0x59e789=_0x2e0060[Symbol[_0x163672(0x26d)]](),_0x109039=!0x1;_0x2e0060[_0x163672(0x34c)]('close',()=>{const _0x2adc1f=_0x163672;_0x109039=!0x0,_0x147ed6[_0x2adc1f(0x336)]();});let _0x50d2c5=!0x1,_0x3bde00=()=>{const _0x55ca3a=_0x163672;_0x50d2c5=!0x0,_0x2e0060[_0x55ca3a(0x1f4)](),_0x1dbfe1();};_0x2e0060['on'](_0x163672(0x20d),_0x3bde00),process['stderr'][_0x163672(0x35e)](_0x163672(0x224));try{if(_0x4c8f31&&await _0x2ec796(_0x4c8f31),_0x50d2c5)return;_0x109039||_0x147ed6['show']();for await(let _0xfbd27 of _0x59e789){if(_0x147ed6['hide'](),_0x50d2c5)break;let _0x49e7e2=_0xfbd27[_0x163672(0x31c)]();if(_0x49e7e2===_0x163672(0x20e))break;_0x49e7e2&&await _0x2ec796(_0x49e7e2),_0x109039||_0x147ed6['show']();}}finally{_0x147ed6[_0x163672(0x26f)](),_0x2e0060[_0x163672(0x1f0)]('SIGINT',_0x3bde00),_0x2e0060['close']();}}async function dn(){const _0x3cb32b=_0x5c3cd6;let _0x40de37=ft(process[_0x3cb32b(0x24f)]['slice'](0x2));if(_0x40de37[_0x3cb32b(0x360)]===_0x3cb32b(0x338)){await te(_0x40de37);return;}let _0x4f3ca8=gt();try{await te(_0x40de37);}finally{_0x4f3ca8();}}async function te(_0x4a59c7){const _0x2507bd=_0x5c3cd6;if(_0x4a59c7[_0x2507bd(0x2e3)]){ht();return;}if(_0x4a59c7[_0x2507bd(0x1e8)]){console[_0x2507bd(0x35c)](wt());return;}if(_0x4a59c7[_0x2507bd(0x337)]===_0x2507bd(0x322)){await Qt(_0x4a59c7);return;}if(_0x4a59c7[_0x2507bd(0x337)]==='tenant'){await en(_0x4a59c7['prompt']);return;}if(_0x4a59c7[_0x2507bd(0x337)]===_0x2507bd(0x2e4)){await bt();return;}if(_0x4a59c7[_0x2507bd(0x337)]===_0x2507bd(0x268)){await vt(_0x4a59c7);return;}if(_0x4a59c7[_0x2507bd(0x337)]===_0x2507bd(0x309)){await It(_0x4a59c7);return;}if(_0x4a59c7[_0x2507bd(0x337)]==='check'){await Ct(_0x4a59c7);return;}if(_0x4a59c7[_0x2507bd(0x337)]==='sessions'){await xt(_0x4a59c7);return;}if(_0x4a59c7['subcommand']==='usage'){await Ot(_0x4a59c7);return;}if(_0x4a59c7['subcommand']===_0x2507bd(0x2b1)||_0x4a59c7[_0x2507bd(0x337)]===_0x2507bd(0x2a5)||_0x4a59c7[_0x2507bd(0x337)]===_0x2507bd(0x29d)){await Mt(_0x4a59c7,_0x4a59c7[_0x2507bd(0x337)]);return;}if(_0x4a59c7[_0x2507bd(0x337)]===_0x2507bd(0x244)){await qt(_0x4a59c7);return;}if(_0x4a59c7[_0x2507bd(0x337)]===_0x2507bd(0x213)){await Wt(_0x4a59c7);return;}if(_0x4a59c7['subcommand']===_0x2507bd(0x211)){await zt(_0x4a59c7);return;}if(_0x4a59c7[_0x2507bd(0x337)]===_0x2507bd(0x2da)){await Xt(_0x4a59c7);return;}if(_0x4a59c7[_0x2507bd(0x337)]===_0x2507bd(0x358)){await _0x10b478(_0x4a59c7['prompt'],{'runnerUrl':_0x4a59c7[_0x2507bd(0x376)],'backendUrl':_0x4a59c7[_0x2507bd(0x215)],'interopPath':_0x4a59c7[_0x2507bd(0x231)],'workerId':_0x4a59c7[_0x2507bd(0x210)]});return;}if(_0x4a59c7[_0x2507bd(0x34a)]){await Et();return;}await rn(_0x4a59c7);}var un=process.env.NODE_ENV===_0x5c3cd6(0x304)||!!process.env.JEST_WORKER_ID;un||dn()[_0x5c3cd6(0x26e)](_0x288d57=>{const _0x10634d=_0x5c3cd6;console[_0x10634d(0x236)](_0x288d57[_0x10634d(0x2ed)]||_0x288d57[_0x10634d(0x371)]||_0x288d57),process[_0x10634d(0x1f8)](0x1);});function _0x4db8(_0x14b838,_0x211a8e){_0x14b838=_0x14b838-0x1e8;const _0x5f382f=_0x5f38();let _0x4db8ab=_0x5f382f[_0x14b838];return _0x4db8ab;}export{mt as CARTOGRAPHER_SKILLS,W as EFFORT_TIERS,yt as IMPLICIT_STDIN_IDLE_MS,Z as buildInitOptions,dn as main,ft as parseArgs,wt as readCliVersion,I as resolvePrompt,gt as routeStdoutToStderr,l as writeCommandResult};
2
+ const _0x46ea59=_0x5968;(function(_0x3e4c64,_0x28c76a){const _0x124645=_0x5968,_0x2f7074=_0x3e4c64();while(!![]){try{const _0x3236fa=-parseInt(_0x124645(0x343))/0x1*(-parseInt(_0x124645(0x1f0))/0x2)+parseInt(_0x124645(0x31e))/0x3+-parseInt(_0x124645(0x34b))/0x4+-parseInt(_0x124645(0x27a))/0x5+parseInt(_0x124645(0x1a2))/0x6+-parseInt(_0x124645(0x2f2))/0x7+parseInt(_0x124645(0x287))/0x8;if(_0x3236fa===_0x28c76a)break;else _0x2f7074['push'](_0x2f7074['shift']());}catch(_0x49ae11){_0x2f7074['push'](_0x2f7074['shift']());}}}(_0x4cb7,0x45230));const __dirname=import.meta.dirname;import _0x17238c from'fs';import _0x28eb08 from'path';import{clearLine as _0x36ea70,createInterface as _0x5118ff,cursorTo as _0x5b1856}from'node:readline';import{BUSINESS_ANALYSIS_PRELOADED_SKILLS as _0x5971de,DelegateAgent as _0x4359d1,cancelTurn as _0xbb849c,InteropProcess as _0x3b70d7,complete as _0x254e8a,DEFAULT_MODEL as _0x369e99,createBackendClient as _0x38b73c,evaluate as _0x304c86,isCompletionRequestError as _0x5f1e1a,isEvaluationRequestError as _0x18e1e5,isTranscriptionError as _0x3fe483,rerank as _0x4d1d35,transcribe as _0x15b210,verify as _0x297592,acceptDelegation as _0x39bfe6,cancelDelegation as _0x25518b,claimDelegation as _0x3562f4,completeDelegation as _0x31396b,createDelegation as _0xbeee08,deleteDelegation as _0x53d1d5,dismissDelegation as _0x46ad1e,getSessionDelegations as _0x23b50e,isDelegationError as _0x75966c,listDelegations as _0x24bd61,listOrgUsers as _0x3b39b8,previewDelegation as _0x180b0d,TurnResultCollector as _0x1782cf,agentEventToJsonLine as _0x425dbf,describeBaseUrlRejection as _0x5ed3bd,getActivitySummary as _0x2a95df,getAuthFilePath as _0x27961c,getByoWarnings as _0x2dbb09,getCartographerAllowance as _0x50a57c,getDailyBreakdown as _0x54aeba,getLicensingSummary as _0x166d88,getMonthlySpending as _0x6c648f,isOutputFormat as _0x1eff73,isCloudBaseUrl as _0x49f409,isSafeProjectFolderSegment as _0x5b03c1,listModels as _0x53b029,listSessions as _0x2c532e,getSession as _0x29489e,renameSession as _0x5d4fb2,deleteSession as _0xe0140c,forkSession as _0x5c0c1f,isBackendRequestError as _0x55b017,MAX_SESSION_PAGE_SIZE as _0xf2b3bf,listTenants as _0x1c8b99,loadAndRefreshAuth as _0xab5c39,loadAndRefreshSdkLogin as _0x12ac0a,parsePlatformBaseUrl as _0x40b28c,resolveBackendUrl as _0xb1d4f1,runHealthCheck as _0x737d1e,runHostCommand as _0x72b9d5,runLoginFlow as _0x4bcfe5,runTurnForResult as _0x30d59d,saveAuthData as _0x11b036,switchTenant as _0x120b0c,toJsonLine as _0x4e23bf,ENV_TO_CLOUD as _0x92253,OUTPUT_FORMATS as _0x7ed8e0}from'@uipath/delegate-sdk';var pt=[_0x46ea59(0x1cf),_0x46ea59(0x2de),'models',_0x46ea59(0x300),'logout',_0x46ea59(0x204),_0x46ea59(0x2cb),_0x46ea59(0x308),_0x46ea59(0x1bc),'evaluate',_0x46ea59(0x1f3),'verify','complete','transcribe',_0x46ea59(0x340),'org-users'],W=['','models',_0x46ea59(0x204),'check',_0x46ea59(0x308),_0x46ea59(0x1bc),_0x46ea59(0x322),_0x46ea59(0x1f3),_0x46ea59(0x1c3),_0x46ea59(0x2ec),'transcribe',_0x46ea59(0x340),_0x46ea59(0x239)],G=['low',_0x46ea59(0x2c4),'high',_0x46ea59(0x29a),_0x46ea59(0x237)],mt=_0x5971de;function p(_0x10d2a0,_0x476858,_0x15048f,_0x45778d){const _0x37f4a6=_0x46ea59;let _0x204e6d=_0x10d2a0[_0x476858];return(!_0x204e6d||_0x204e6d[_0x37f4a6(0x284)]>0x1&&_0x204e6d[_0x37f4a6(0x256)]('-'))&&(console[_0x37f4a6(0x1d4)](_0x15048f+_0x37f4a6(0x2a0)+_0x45778d+'.'),process['exit'](0x2)),_0x204e6d;}function N(_0x32b073,_0x18de5e,_0x4df0f0,_0x249846){const _0x5591a9=_0x46ea59;let _0x107686=p(_0x32b073,_0x18de5e,_0x4df0f0,_0x5591a9(0x1c0)),_0xe14b47=Number(_0x107686);return(!/^\d+$/[_0x5591a9(0x249)](_0x107686)||_0xe14b47<0x1||!Number[_0x5591a9(0x2a9)](_0xe14b47)||_0x249846!==void 0x0&&_0xe14b47>_0x249846)&&(console[_0x5591a9(0x1d4)](_0x4df0f0+'\x20must\x20be\x20a\x20whole\x20number\x20'+(_0x249846===void 0x0?'1\x20or\x20more':_0x5591a9(0x26f)+_0x249846)+_0x5591a9(0x270)+_0x107686+'.'),process['exit'](0x2)),_0xe14b47;}function _0x4cb7(){const _0x2598cc=['--preload-skill','Usage:\x20delegate-cli\x20','medium','No\x20sessions\x20on\x20page\x20','catch','includeSubAgents','email','Use:\x20delegate-cli\x20delegations\x20','tokenExpiresAt','check','Auth\x20comes\x20from\x20AUTH_TOKEN/TENANT_ID/ORG_ID\x20—\x20set\x20TENANT_ID\x20and\x20TENANT_SLUG\x20to\x20change\x20the\x20tenant.','organizationId','noConnections','--headless','push','rmSync','fork','jsonSchemaPath','cwd','delete','stderr','message','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','\x20\x22<prompt>\x22\x0aAnswer\x20with:\x20delegate-cli\x20delegations\x20complete\x20','.\x20Use\x20','turnId','total_cost_usd','entries','tenant','No\x20models\x20available\x20for\x20this\x20product/tenant.\x0a','includes','extra_pool_consumed_pu','delegations\x20complete\x20<delegation-id>\x20\x22<answer>\x22|-','toFixed','\x20\x20from\x20','No\x20CLI\x20login\x20to\x20switch:\x20the\x20CLI\x20is\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20','Tenant\x20not\x20switched:\x20could\x20not\x20write\x20','a\x20project\x20id','\x20(Delegate\x20desktop\x20app\x20fallback)','a\x20JSON\x20schema\x20file','forEach','description','complete','a\x20file\x20path','\x20PU\x20beyond\x20quota','[env=','Cost:\x20\x20\x20$','restore','2534623ttjTFD','text','--backend','Invalid\x20--effort:\x20','UPDATED','done','verdict','--worker-id','a\x20directory\x20path','bundledSkillsPath','headless','Work\x20on\x20it\x20with:\x20delegate-cli\x20--session\x20','score\x20','skipEnvCheck','host','argv','\x20\x20(input\x20#','structured','\x20\x20\x20\x20Not\x20available\x20on\x20this\x20plan','logout','a\x20turn\x20id','readFileSync','sessions','ASSIGNEE','Unknown\x20delegations\x20action:\x20','Created\x20delegation\x20','dismiss','Licensing:\x20\x20\x20\x20no\x20licensing\x20quota\x20applies','deepLink','Deleted\x20session\x20','padStart','subcommand','stream-json','join','pending','session_start','No\x20delegations.\x0a','--skills-path','Structured\x20output\x20failed:\x20','[saved\x20login]\x20Backend\x20URL:\x20','help','tenantId','model','slice','717987llZDIp','Interop\x20stopped\x20(if\x20it\x20was\x20running).','\x20<title>','locked','evaluate','\x20completion','\x20\x20\x20\x20BYO\x20warning:\x20','\x20<id>','delegations\x20create\x20--session\x20<id>\x20[--to\x20<email|name>]\x20[--summary\x20<text>]\x20\x22<task>\x22|-','\x20<file.json>,\x20or\x20-\x20to\x20read\x20stdin.','--version','alreadyAccepted','orgLogicalName','mode','estimated_cost_usd','a\x20session\x20id','Base\x20URL:\x20\x20\x20\x20\x20','noMemory','--json-schema\x20applies\x20to\x20prompts\x20and\x20to\x20`delegate-cli\x20complete`\x20only.','--limit','byoWarning','env','--env','page','\x20sessions\x20on\x20','getSessionId','Continue\x20it\x20with:\x20delegate-cli\x20--session\x20','task','attachments','total_completion_tokens','--tenant\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Switch\x20tenants\x20with:\x20delegate-cli\x20tenant\x20<name>','rejection','\x20cap','Removed\x20','delegations','rename','assignedUser','1JGBAuN','\x20delegation\x20','outputFormat','from','ID\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','delegations\x20delete\x20<delegation-id>','Turn:\x20','isArray','1955068gkrDOr','\x20(resume\x20with\x20--session\x20','toISOString','\x20(resets\x20','round',',\x20or\x20holds\x20no\x20message\x20','Organization\x20\x20','the\x20request','show','--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`delegate-cli\x20sessions\x20[list]`\x20only.','transcribe:\x20cannot\x20read\x20','--tenant\x20requires\x20a\x20tenant\x20name.','>.\x0a','delegations\x20accept\x20<delegation-id>','a\x20colleague','name','\x20—\x20sign\x20out\x20in\x20the\x20Delegate\x20app\x20to\x20clear\x20that.','--effort','.\x20Use\x20`delegate-cli\x20usage`,\x20`usage\x20activity`\x20or\x20`usage\x20daily`.','parentSessionId','--runner-url','stdin','1568454BpyvIC','title',':\x20cannot\x20read\x20the\x20JSON\x20schema\x20(','\x20applies\x20to\x20prompts\x20and\x20to\x20these\x20commands\x20only:\x20','),\x20','version','--no-memory','close','data','self-hosted\x20(Automation\x20Suite\x20/\x20Dedicated)','object','results','delegationId','You>\x20','\x0aAvailable\x20models\x20(','interopPath','getTurnUsageHistory','probability','delegations\x20pending\x20<session-id>','\x20PU','\x20active\x20days','--verbose','resolve','Usage:\x20delegate-cli\x20sessions\x20','active_days','\x0aAccept\x20one\x20with:\x20delegate-cli\x20delegations\x20accept\x20<id>\x0a','usage','Forked\x20','probability\x20','projectId','a\x20number','all','Unknown\x20sessions\x20action:\x20','verify','bind','write','\x20\x20TITLE\x0a','transcribe','updatedAt','Deployment:\x20\x20\x20','delegations\x20cancel\x20<delegation-id>','deleted','Usage:\x20delegate-cli\x20sessions\x20fork\x20<id>\x20[<message-id>]','🔧\x20','UiPath\x20Cloud','login','url','sessionId','date','Invalid\x20--output-format:\x20','error','complete\x20needs\x20a\x20prompt:\x20delegate-cli\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22,\x20or\x20-\x20to\x20read\x20stdin.','delegations\x20show\x20<delegation-id|delegate://delegation/…>','--no-computer-use','end','score','isError','Rubric\x20','package.json','Title\x20\x20\x20\x20\x20\x20\x20\x20\x20','--authority','prompt','\x20\x20TASK\x0a','index','Session\x20','verbose','--session','--include-subagents','noComputerUse','confidence','initialize','existsSync',').\x0a','lockReason','stop','\x27\x20cannot\x20be\x20read:\x20','prompt_tokens','Tenant:\x20\x20\x20\x20\x20\x20\x20','874066oFRWMA','Tenant:\x20','Renamed\x20','rerank','Enter\x20sends\x20a\x20message.\x20/exit\x20or\x20EOF\x20exits;\x20Ctrl+C\x20stops\x20and\x20exits.\x0a','runnerUrl','--help','--to,\x20--summary\x20and\x20--session\x20apply\x20to\x20`delegate-cli\x20delegations\x20create`\x20only.','Invalid\x20--project:\x20\x22','\x20not\x20found,\x20has\x20no\x20messages','unknown','Claimed\x20from\x20delegation\x20','quiet','isDesktopFallback','turn_start','pendingResults','total_sessions','Session:\x20\x20\x20\x20\x20\x20','Delegated\x20','now','whoami','\x20tokens\x0a','type','workerId','accessToken','accept','staging','--keep-alive','limit_enabled','tenantName','UIPATH_BASE_URL\x20is\x20unusable.\x20','\x20token\x20units','off','answers','--output-format','onEvent','contextSummary','Usage:\x20delegate-cli\x20sessions\x20cancel\x20<session-id>\x20--turn\x20<turn-id>','baseUrl','✓\x20Done\x0a','\x20\x22<prompt>\x22\x0a','Spending:\x20\x20\x20\x20\x20$','From\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','cleanup','claim','isTTY','filter','--session\x20applies\x20to\x20the\x20`delegate-cli\x20usage`\x20summary\x20only.','skip','--working-dir','\x0aUse\x20with:\x20delegate-cli\x20--model\x20<id>\x20\x22<prompt>\x22\x0a',';\x20the\x20saved\x20login\x20still\x20uses\x20','thinking','parse','preloadSkills','toolName','replace','Model\x20','\x20min)','STATUS','unknown\x20slug','--print','--interop',',\x20whose\x20tenant\x20is\x20chosen\x20in\x20the\x20app.\x20Run\x20`delegate-cli\x20login\x20--env\x20<env>`\x20for\x20a\x20CLI\x20login\x20of\x20your\x20own.','delegation','SIGINT','activity','effort','displayName','--days\x20applies\x20to\x20`delegate-cli\x20usage\x20activity|daily`;\x20the\x20summary\x20covers\x20the\x20current\x20month.','origin','max','\x20in\x20progress\x20on\x20session\x20','org-users','limit',']\x20Backend\x20URL:\x20','pct_used','\x20\x22<answer>\x22\x0a','\x20is\x20not\x20valid\x20JSON\x20(','--attach','\x20token\x20units)','\x20|\x20','operands','--cartographer','then','Already\x20accepted','\x20of\x20a\x20$','alpha','model_id','test','file','map','--summary','transcribe\x20needs\x20audio:\x20delegate-cli\x20transcribe\x20<file>,\x20or\x20-\x20to\x20read\x20stdin.','rubric_version','log','AUTH_TOKEN_FILE\x20\x27','monthly_spend_usd','backendUrl','delegateTo','--json-schema','):\x0a\x0a','startsWith','\x22.\x0a','hide','--url','workingDirectory','\x20to\x20','the\x20JSON\x20schema','--cleanup','delegations\x20dismiss\x20<delegation-id>','an\x20effort\x20tier','sourceTitle','expiresAt','.\x20Use\x20alpha\x20|\x20staging\x20|\x20production\x20|\x20localhost.','result','list','detail','auth','spawn','Date\x20\x20\x20\x20\x20\x20\x20\x20Token\x20units\x20\x20Prompt\x20tokens\x20\x20Completion\x20tokens','The\x20saved\x20CLI\x20login\x20could\x20not\x20be\x20refreshed.\x20Run\x20`delegate-cli\x20login`\x20again.','Session:\x20','concat','stack','padEnd','Source:\x20\x20\x20\x20\x20\x20\x20','from\x201\x20to\x20',',\x20got\x20','sendMessage','--to\x20and\x20--summary\x20apply\x20to\x20`delegate-cli\x20delegations\x20create`\x20only.','daily_usage','cartographer','cancelled','resume','token_units','tool_call','total_prompt_tokens','758705WADLHX','Usage:\x20delegate-cli\x20sessions\x20[list]\x20[--page\x20N]\x20[--limit\x20N]\x20[--include-subagents]','stdout','No\x20CLI\x20login\x20found.\x20Run\x20`delegate-cli\x20login\x20--env\x20<alpha|staging|production>`\x20first.',':\x20cannot\x20read\x20the\x20request\x20(','cancel','Could\x20not\x20check\x20BYO\x20model\x20warnings:\x20','\x0adelegate-cli\x20—\x20Delegate\x20agent\x20CLI\x0a\x0aUsage:\x0a\x20\x20delegate-cli\x20[flags]\x20[\x22<prompt>\x22]\x20\x20\x20\x20Start\x20a\x20conversation\x20in\x20a\x20terminal\x0a\x20\x20delegate-cli\x20--print\x20\x22<prompt>\x22\x20\x20\x20\x20\x20\x20Send\x20one\x20prompt,\x20print\x20the\x20response,\x20and\x20exit\x0a\x20\x20delegate-cli\x20[flags]\x20-\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Read\x20one\x20prompt\x20from\x20stdin\x20through\x20EOF,\x20then\x20exit\x0a\x20\x20delegate-cli\x20-p\x20\x22<prompt>\x22\x20--output-format\x20json|stream-json\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20One\x20turn\x20with\x20JSON-only\x20stdout;\x20exit\x201\x20on\x20error\x0a\x20\x20delegate-cli\x20--json-schema\x20FILE\x20\x22<prompt>\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20One\x20turn,\x20then\x20its\x20result\x20extracted\x20as\x20JSON\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20matching\x20the\x20schema\x20in\x20FILE\x20(printed\x20after\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20answer;\x20\x22structured\x22\x20in\x20the\x20JSON\x20result);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20exit\x201\x20when\x20the\x20extraction\x20fails\x0a\x20\x20delegate-cli\x20--attach\x20PATH\x20[--attach\x20PATH\x20...]\x20\x22<prompt>\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Send\x20files\x20or\x20folders\x20with\x20the\x20first\x20message\x0a\x20\x20delegate-cli\x20login\x20[--env\x20NAME\x20|\x20--url\x20BASE]\x20[--tenant\x20NAME]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20OAuth\x20browser\x20login\x20→\x20~/.aria/sdk-auth.json.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--env\x20or\x20--url\x20required\x20on\x20FIRST\x20login;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20afterwards\x20defaults\x20to\x20the\x20saved\x20login\x27s\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20deployment.\x20--tenant\x20picks\x20a\x20tenant\x20by\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20name;\x20without\x20it\x20a\x20re-login\x20keeps\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20saved\x20tenant\x0a\x20\x20delegate-cli\x20tenant\x20[NAME]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20the\x20organization\x27s\x20tenants,\x20or\x20switch\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20saved\x20login\x20to\x20NAME\x20(no\x20browser)\x0a\x20\x20delegate-cli\x20logout\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Remove\x20the\x20saved\x20CLI\x20login\x0a\x20\x20delegate-cli\x20whoami\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20the\x20current\x20login\x20(org,\x20tenant,\x20token\x20expiry)\x0a\x20\x20delegate-cli\x20models\x20[--env\x20NAME]\x20\x20\x20\x20\x20List\x20available\x20LLM\x20models\x20for\x20the\x20current\x20tenant,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20with\x20any\x20BYO\x20configuration\x20warning\x20per\x20model\x0a\x20\x20delegate-cli\x20sessions\x20[list]\x20[--page\x20N]\x20[--limit\x20N]\x20[--include-subagents]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20your\x20backend\x20chat\x20sessions,\x20most\x20recently\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20active\x20first\x20(resume\x20one\x20with\x20--session\x20ID)\x0a\x20\x20delegate-cli\x20sessions\x20show|delete\x20ID\x20Show\x20one\x20session\x27s\x20title\x20and\x20owner,\x20or\x20delete\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20it\x20with\x20its\x20messages\x20and\x20sub-agents\x20(no\x20prompt)\x0a\x20\x20delegate-cli\x20sessions\x20rename\x20ID\x20TITLE\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Rename\x20a\x20session\x20(1-500\x20characters)\x0a\x20\x20delegate-cli\x20sessions\x20fork\x20ID\x20[MESSAGE]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Copy\x20session\x20ID\x20into\x20a\x20new\x20session,\x20up\x20to\x20and\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20including\x20message\x20MESSAGE\x20(default:\x20all\x20of\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20it);\x20continue\x20it\x20with\x20--session\x20NEW_ID\x0a\x20\x20delegate-cli\x20sessions\x20cancel\x20ID\x20--turn\x20TURN\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Cancel\x20turn\x20TURN\x20running\x20on\x20session\x20ID\x20in\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20another\x20process;\x20exits\x201\x20when\x20no\x20such\x20turn\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20is\x20in\x20progress\x0a\x20\x20delegate-cli\x20check\x20[--env\x20NAME]\x20[--headless]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Verify\x20auth,\x20backend\x20readiness,\x20backend\x20and\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20interop\x20without\x20sending\x20a\x20prompt;\x20exits\x201\x20when\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20any\x20check\x20fails\x0a\x20\x20delegate-cli\x20usage\x20[--session\x20ID]\x20\x20\x20\x20Quota\x20and\x20spend:\x20licensing\x20quota,\x20monthly\x20spend\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20and\x20cap,\x20Cartographer\x20allowance\x0a\x20\x20delegate-cli\x20usage\x20activity|daily\x20[--days\x20N]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Activity\x20totals,\x20or\x20per-day\x20usage,\x20over\x20the\x20last\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20N\x20days\x20(1-365,\x20default\x2030)\x0a\x20\x20delegate-cli\x20evaluate|rerank|verify\x20FILE|-\x20[--model\x20ID]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Stateless\x20typed\x20judgments:\x20send\x20the\x20JSON\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20request\x20in\x20FILE\x20(or\x20stdin\x20with\x20-)\x20to\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20/v1/completions/<command>\x20and\x20print\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20answers;\x20--model\x20overrides\x20its\x20\x22model\x22.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Exits\x201\x20when\x20the\x20backend\x20rejects\x20it\x0a\x20\x20delegate-cli\x20complete\x20--json-schema\x20FILE\x20[--model\x20ID]\x20[--session\x20ID]\x20\x22<prompt>\x22|-\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20One\x20structured\x20completion,\x20no\x20agent\x20turn:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20print\x20the\x20JSON\x20object\x20matching\x20the\x20schema\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20in\x20FILE\x20(--output-format\x20json\x20prints\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{structured,\x20usage});\x20--session\x20adds\x20that\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20session\x27s\x20history\x20as\x20context.\x20Exits\x201\x20when\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20the\x20output\x20fails\x20the\x20schema\x20(422)\x20or\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20backend\x20rejects\x20the\x20request\x0a\x20\x20delegate-cli\x20transcribe\x20FILE|-\x20\x20\x20\x20\x20\x20\x20Speech-to-text\x20(Whisper):\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\x2025\x20MiB.\x20Exits\x202\x20when\x20the\x20audio\x20is\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20refused\x20locally,\x201\x20when\x20the\x20backend\x20rejects\x20it\x0a\x20\x20delegate-cli\x20org-users\x20QUERY\x20\x20\x20\x20\x20\x20\x20\x20\x20Search\x20your\x20organization\x27s\x20users\x20by\x20name\x20or\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20email\x20prefix\x20(2-100\x20characters)\x0a\x20\x20delegate-cli\x20delegations\x20create\x20--session\x20ID\x20[--to\x20WHO]\x20[--summary\x20TEXT]\x20\x22<task>\x22|-\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Hand\x20a\x20task\x20from\x20session\x20ID\x20to\x20a\x20colleague\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(WHO:\x20an\x20email,\x20or\x20a\x20name\x20matching\x20one\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20person);\x20without\x20--to,\x20print\x20a\x20link\x20anyone\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20in\x20the\x20organization\x20can\x20claim\x0a\x20\x20delegate-cli\x20delegations\x20pending\x20SESSION\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Answers\x20to\x20delegations\x20from\x20SESSION\x20that\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20await\x20acceptance\x20(poll\x20this)\x0a\x20\x20delegate-cli\x20delegations\x20accept|dismiss|cancel|delete\x20ID\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Take\x20an\x20answer\x20into\x20its\x20session,\x20drop\x20it,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20withdraw\x20a\x20live\x20delegation,\x20or\x20delete\x20it\x0a\x20\x20delegate-cli\x20delegations\x20list\x20PROJECT\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Every\x20delegation\x20targeting\x20a\x20backend\x20project\x0a\x20\x20delegate-cli\x20delegations\x20show|claim\x20ID|LINK\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Read\x20a\x20delegation\x20assigned\x20to\x20you\x20(or\x20a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20delegate://delegation/…\x20link),\x20or\x20claim\x20it:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20prints\x20the\x20session\x20to\x20work\x20it\x20in\x0a\x20\x20delegate-cli\x20delegations\x20complete\x20ID\x20\x22<answer>\x22|-\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Send\x20the\x20answer\x20to\x20a\x20delegation\x20you\x20claimed\x0a\x20\x20delegate-cli\x20host\x20[flags]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Run\x20this\x20PC\x20as\x20a\x20remote\x20worker\x20until\x20Ctrl+C\x0a\x20\x20delegate-cli\x20host\x20install\x20[flags]\x20\x20\x20\x20Auto-start\x20the\x20host\x20at\x20login\x20(macOS\x20LaunchAgent\x20/\x20Windows\x20Scheduled\x20Task)\x0a\x20\x20delegate-cli\x20host\x20uninstall\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Remove\x20auto-start\x0a\x20\x20delegate-cli\x20host\x20status\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20auto-start\x20state\x0a\x20\x20delegate-cli\x20--cleanup\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Stop\x20running\x20interop\x0a\x0aFlags:\x0a\x20\x20-p,\x20--print\x20\x20\x20\x20\x20\x20\x20Run\x20one\x20turn\x20and\x20exit,\x20including\x20any\x20tool\x20execution.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Automatic\x20when\x20stdin\x20or\x20stdout\x20is\x20not\x20a\x20terminal,\x20or\x20with\x20-\x0a\x20\x20--env\x20NAME\x20\x20\x20\x20\x20\x20\x20\x20alpha\x20|\x20staging\x20|\x20production\x20|\x20localhost\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Composes\x20backend\x20URL\x20from\x20saved\x20auth\x20(org/tenant\x20slugs).\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Omitted\x20→\x20the\x20deployment\x20you\x20logged\x20into\x20(delegate-cli\x20login).\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20localhost\x20→\x20http://localhost:5002.\x20No\x20saved\x20login\x20and\x20no\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--env/--backend/BACKEND_URL\x20is\x20an\x20error\x20—\x20never\x20a\x20guess.\x0a\x20\x20--url\x20BASE\x20\x20\x20\x20\x20\x20\x20\x20(login)\x20Base\x20URL\x20of\x20a\x20deployment\x20that\x20is\x20not\x20a\x20named\x20cloud\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20—\x20Automation\x20Suite,\x20Dedicated,\x20Public\x20Sector.\x20Accepts\x20a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20tenant\x20path\x20or\x20a\x20trailing\x20/identity_\x20and\x20reduces\x20it\x20to\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20origin.\x20Mutually\x20exclusive\x20with\x20--env;\x20also\x20settable\x20via\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20UIPATH_BASE_URL.\x20Alias:\x20--authority.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Automation\x20Suite\x20needs\x2026.10+\x20with\x20the\x20Delegate\x20service;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20the\x20deployment\x20rejects\x20the\x20built-in\x20client,\x20register\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20your\x20own\x20—\x20see\x20UIPATH_CLIENT_ID\x20in\x20the\x20README\x0a\x20\x20--skip-env-check\x20\x20(login)\x20Do\x20not\x20check\x20the\x20deployment\x20before\x20signing\x20in.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Escape\x20hatch\x20for\x20a\x20deployment\x20that\x20hides\x20its\x20OIDC\x20discovery\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20document\x20or\x20serves\x20Identity\x20from\x20another\x20origin;\x20it\x20also\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20gives\x20up\x20the\x20diagnosis\x20when\x20something\x20is\x20really\x20wrong\x0a\x20\x20--backend\x20URL\x20\x20\x20\x20\x20Full\x20backend\x20URL\x20—\x20escape\x20hatch\x20overrides\x20--env\x0a\x20\x20--tenant\x20NAME\x20\x20\x20\x20\x20(login)\x20Tenant\x20to\x20sign\x20into,\x20by\x20name\x20(case-insensitive).\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default:\x20the\x20saved\x20login\x27s\x20tenant\x20on\x20that\x20cloud,\x20else\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20org\x27s\x20first\x20tenant.\x20Later:\x20delegate-cli\x20tenant\x20<name>\x0a\x20\x20--model\x20NAME\x20\x20\x20\x20\x20\x20LLM\x20model\x20id\x20(e.g.\x20claude_sonnet_5,\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--attach\x20PATH\x20\x20\x20\x20\x20File\x20or\x20folder\x20sent\x20with\x20the\x20first\x20message\x20(repeatable),\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20as\x20the\x20Delegate\x20app\x20sends\x20attached\x20files:\x20images\x20inline,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20PDFs\x20and\x20other\x20documents\x20as\x20a\x20path\x20the\x20agent\x20reads,\x20text\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20inline\x20up\x20to\x2016,000\x20characters.\x2030\x20MiB\x20per\x20message\x20in\x20all;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20larger\x20files\x20go\x20as\x20a\x20path.\x20In\x20a\x20conversation,\x20later\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20messages\x20carry\x20none\x20of\x20their\x20own,\x20but\x20the\x20first\x20message\x27s\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20stay\x20in\x20context\x0a\x20\x20--preload-skill\x20NAME\x20\x20Preload\x20a\x20skill\x20into\x20the\x20session\x20(repeatable).\x20The\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20skill\x27s\x20content\x20is\x20attached\x20before\x20the\x20first\x20model\x20turn\x20—\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20same\x20mechanism\x20as\x20project\x20preloaded\x20skills\x20in\x20the\x20app\x0a\x20\x20--cartographer\x20\x20\x20\x20Cartographer\x20engagement\x20preset.\x20Equivalent\x20to\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--no-computer-use\x20--preload-skill\x20business-analysis\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--preload-skill\x20project-task-list\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--preload-skill\x20knowledge-base.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Add\x20--project/--working-dir\x20for\x20where\x20the\x20files\x20live,\x20and\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20extra\x20--preload-skill\x20flags\x20for\x20more\x20skills\x20—\x20a\x20skill\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20preset\x20already\x20covers\x20is\x20not\x20preloaded\x20twice.\x20An\x20explicit\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--headless\x20still\x20wins\x20and\x20turns\x20interop\x20off\x0a\x20\x20--project\x20ID\x20\x20\x20\x20\x20\x20Route\x20the\x20session\x27s\x20local\x20wiki\x20and\x20plans\x20to\x20a\x20project\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(<working-dir>/projects/<ID>/wiki).\x20Client-side\x20key\x20only\x0a\x20\x20--working-dir\x20PATH\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Shell\x20cwd\x20for\x20the\x20agent\x20and\x20root\x20for\x20SDK-local\x20state.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Relative\x20paths\x20resolve\x20against\x20the\x20current\x20directory;\x20the\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20directory\x20is\x20created\x20if\x20missing\x0a\x20\x20--skills-path\x20PATH\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Extra\x20bundled-skills\x20directory\x20(merged\x20with\x20the\x20installed\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20app\x27s\x20skills\x20and\x20DELEGATE_BUNDLED_SKILLS_PATH)\x0a\x20\x20--effort\x20TIER\x20\x20\x20\x20\x20Reasoning\x20effort:\x20low\x20|\x20medium\x20|\x20high\x20|\x20xhigh\x20|\x20max.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default:\x20the\x20model\x27s\x20recommended\x20tier\x0a\x20\x20--session\x20ID\x20\x20\x20\x20\x20\x20Continue\x20an\x20existing\x20backend\x20session\x20(an\x20unknown\x20id\x20exits\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x201;\x20the\x20backend\x20assigns\x20new\x20ids).\x20For\x20complete:\x20the\x20session\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20whose\x20history\x20is\x20the\x20context\x0a\x20\x20--json-schema\x20FILE\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20JSON\x20schema\x20the\x20structured\x20answer\x20must\x20match\x20(complete,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20and\x20prompts:\x20implies\x20--print)\x0a\x20\x20--runner-url\x20URL\x20\x20(host)\x20Runner\x20worker\x20WS\x20URL.\x20Required;\x20or\x20CONTROL_PLANE_WS_URL\x20env\x0a\x20\x20--interop\x20PATH\x20\x20\x20\x20(host)\x20Interop\x20binary\x20path;\x20or\x20INTEROP_EXECUTABLE_PATH\x20env.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Absent\x20→\x20registration/discovery\x20only,\x20tool\x20execution\x20disabled\x0a\x20\x20--worker-id\x20ID\x20\x20\x20\x20(host)\x20Stable\x20worker\x20identity;\x20or\x20WORKER_ID\x20env.\x20Default:\x20hostname\x0a\x20\x20--page\x20N\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(sessions)\x20Page\x20to\x20show,\x20from\x201.\x20Default:\x201\x0a\x20\x20--limit\x20N\x20\x20\x20\x20\x20\x20\x20\x20\x20(sessions)\x20Rows\x20per\x20page,\x201-100.\x20Default:\x2030\x0a\x20\x20--include-subagents\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(sessions)\x20Also\x20list\x20sub-agent\x20sessions,\x20hidden\x20by\x20default\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20as\x20in\x20the\x20desktop\x20app\x27s\x20history\x0a\x20\x20--to\x20WHO\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(delegations\x20create)\x20Assign\x20to\x20this\x20person:\x20an\x20email,\x20or\x20a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20name\x20that\x20matches\x20exactly\x20one\x20colleague\x20(see\x20org-users)\x0a\x20\x20--summary\x20TEXT\x20\x20\x20\x20(delegations\x20create)\x20The\x20briefing\x20the\x20person\x20starts\x20from.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default:\x20empty,\x20for\x20a\x20task\x20that\x20stands\x20on\x20its\x20own\x0a\x20\x20--output-format\x20FMT\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20text\x20(default)\x20|\x20json\x20|\x20stream-json.\x20json\x20prints\x20one\x20result\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20object\x20on\x20exit;\x20stream-json\x20prints\x20every\x20agent\x20event\x20as\x20one\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20JSON\x20line,\x20then\x20the\x20result.\x20Both\x20keep\x20stdout\x20JSON-only\x20(logs,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20progress\x20and\x20the\x20session\x20id\x20go\x20to\x20stderr),\x20imply\x20--print,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20and\x20exit\x201\x20when\x20the\x20turn\x20ends\x20in\x20error.\x20Also\x20honoured\x20by\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20every\x20subcommand\x20that\x20prints\x20a\x20result\x20(all\x20but\x20login,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20logout,\x20tenant\x20and\x20host)\x0a\x20\x20-q,\x20--quiet\x20\x20\x20\x20\x20\x20\x20Suppress\x20🤔\x20thinking\x20output\x20to\x20stderr\x0a\x20\x20--verbose\x20\x20\x20\x20\x20\x20\x20\x20\x20Surface\x20the\x20SDK\x27s\x20and\x20the\x20framework\x27s\x20own\x20logs.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Diagnostics\x20only,\x20on\x20stdout;\x20independent\x20of\x20-q\x0a\x20\x20-h,\x20--help\x20\x20\x20\x20\x20\x20\x20\x20Show\x20this\x20help\x0a\x20\x20-v,\x20--version\x20\x20\x20\x20\x20Print\x20the\x20installed\x20CLI\x20version\x0a\x0aConversation:\x20Enter\x20sends\x20a\x20message;\x20/exit\x20or\x20EOF\x20exits;\x20Ctrl+C\x20stops\x20and\x20exits.\x0a\x20\x20Ctrl+C\x20during\x20a\x20turn\x20cancels\x20it\x20on\x20the\x20backend\x20too;\x20a\x20second\x20Ctrl+C\x20force-exits.\x0a\x20\x20An\x20optional\x20initial\x20prompt\x20is\x20followed\x20by\x20more\x20input.\x20The\x20session\x20ID\x20is\x20printed\x0a\x20\x20to\x20stderr;\x20resume\x20later\x20with\x20--session\x20ID.\x20Redirected\x20input\x20is\x20one\x20prompt.\x0aAuth:\x20prompts\x20auto-retry\x20on\x20401\x20by\x20opening\x20the\x20browser\x20to\x20re-login\x20(TTY\x20only),\x0a\x20\x20preserving\x20the\x20active\x20session.\x0a','status','delegate-cli','length','.\x20Share:\x20','--attach:\x20no\x20such\x20file\x20or\x20folder:\x20','2784080GBmkIX','\x20PU\x20used','Tenants\x20of\x20','Token:\x20\x20\x20\x20\x20\x20\x20\x20expired\x20','No\x20structured\x20output:\x20the\x20turn\x20failed\x20(','Switch\x20with:\x20delegate-cli\x20tenant\x20<name>\x0a','production','Tokens:\x20','\x0a⚠️\x20\x20Auth\x20expired.\x20Opening\x20browser\x20to\x20re-login…\x0a','choice','%\x20of\x20','trim','\x20(no\x20cap\x20enforced)','add','monthly_limit_usd','floor','\x20(estimated\x20$','Unknown\x20usage\x20view:\x20','keepAlive','xhigh','--no-security','localhost','\x20(confidence\x20','Already\x20answered','Last\x20','\x20requires\x20','stringify','exit','No\x20CLI\x20login\x20found\x20—\x20nothing\x20to\x20remove.','pause','create','utf-8','content','Owner\x20\x20\x20\x20\x20\x20\x20\x20\x20','isSafeInteger','--turn\x20applies\x20to\x20`delegate-cli\x20sessions\x20cancel`\x20only.','\x20\x20\x20\x20','Cartographer:\x20','Invalid\x20--env:\x20','assignedUserEmail','structuredError','--page','once',')\x20—\x20saved\x20to\x20','\x27\x20is\x20empty.','--url\x20applies\x20to\x20`delegate-cli\x20login`\x20only.\x20Other\x20commands\x20follow\x20the\x20saved\x20login,\x20or\x20--backend\x20<url>.','\x0aStopping…\x20(Ctrl+C\x20again\x20to\x20force\x20exit)\x0a','Session\x20\x20\x20\x20\x20\x20\x20','an\x20email\x20address\x20or\x20name','period_days','finish','session_consumed_pu','days','lastType','\x20not\x20found.','noSecurity','asyncIterator','exitCode','print'];_0x4cb7=function(){return _0x2598cc;};return _0x4cb7();}function ft(_0x2bf384){const _0x4c57c1=_0x46ea59;let _0x467f4c={'subcommand':'','prompt':'','print':!0x1,'keepAlive':!0x1,'cleanup':!0x1,'headless':!0x1,'noComputerUse':!0x1,'cartographer':!0x1,'noConnections':!0x1,'noSecurity':!0x1,'noMemory':!0x1,'quiet':!0x1,'verbose':!0x1,'outputFormat':'text','preloadSkills':[],'attachments':[],'skipEnvCheck':!0x1,'includeSubAgents':!0x1,'operands':[],'help':!0x1,'version':!0x1};pt[_0x4c57c1(0x2e0)](_0x2bf384[0x0])&&(_0x467f4c[_0x4c57c1(0x311)]=_0x2bf384[0x0],_0x2bf384=_0x2bf384[_0x4c57c1(0x31d)](0x1));let _0x436d2c=[];for(let _0x220853=0x0;_0x220853<_0x2bf384['length'];_0x220853++){let _0x3841b6=_0x2bf384[_0x220853];switch(_0x3841b6){case _0x4c57c1(0x22d):case'-p':_0x467f4c[_0x4c57c1(0x2c1)]=!0x0;break;case _0x4c57c1(0x20b):_0x467f4c[_0x4c57c1(0x299)]=!0x0;break;case _0x4c57c1(0x25d):_0x467f4c[_0x4c57c1(0x21b)]=!0x0;break;case _0x4c57c1(0x2cf):_0x467f4c[_0x4c57c1(0x2fc)]=!0x0;break;case _0x4c57c1(0x1d7):_0x467f4c['noComputerUse']=!0x0;break;case _0x4c57c1(0x243):_0x467f4c[_0x4c57c1(0x274)]=!0x0,_0x467f4c['noComputerUse']=!0x0,_0x467f4c[_0x4c57c1(0x226)]['push'](...mt);break;case'--no-connections':_0x467f4c[_0x4c57c1(0x2ce)]=!0x0;break;case _0x4c57c1(0x29b):_0x467f4c[_0x4c57c1(0x2be)]=!0x0;break;case _0x4c57c1(0x1a8):_0x467f4c[_0x4c57c1(0x32f)]=!0x0;break;case'--quiet':case'-q':_0x467f4c[_0x4c57c1(0x1fc)]=!0x0;break;case _0x4c57c1(0x1b7):_0x467f4c[_0x4c57c1(0x1e3)]=!0x0;break;case _0x4c57c1(0x2f4):_0x467f4c['backendUrl']=_0x2bf384[++_0x220853];break;case'--model':_0x467f4c[_0x4c57c1(0x31c)]=_0x2bf384[++_0x220853];break;case _0x4c57c1(0x1a0):_0x467f4c[_0x4c57c1(0x1f5)]=_0x2bf384[++_0x220853];break;case _0x4c57c1(0x22e):_0x467f4c[_0x4c57c1(0x1b1)]=_0x2bf384[++_0x220853];break;case _0x4c57c1(0x2f9):_0x467f4c[_0x4c57c1(0x207)]=_0x2bf384[++_0x220853];break;case _0x4c57c1(0x2c2):_0x467f4c['preloadSkills'][_0x4c57c1(0x2d0)](p(_0x2bf384,++_0x220853,_0x3841b6,'a\x20skill\x20name'));break;case'--project':{let _0x42b0b0=p(_0x2bf384,++_0x220853,_0x3841b6,_0x4c57c1(0x2e7));_0x5b03c1(_0x42b0b0)||(console['error'](_0x4c57c1(0x1f8)+_0x42b0b0+'\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[_0x4c57c1(0x2a2)](0x2)),_0x467f4c[_0x4c57c1(0x1bf)]=_0x42b0b0;break;}case _0x4c57c1(0x212):{let _0x798224=p(_0x2bf384,++_0x220853,_0x3841b6,'a\x20format\x20('+_0x7ed8e0['join']('\x20|\x20')+')');_0x1eff73(_0x798224)||(console[_0x4c57c1(0x1d4)](_0x4c57c1(0x1d3)+_0x798224+_0x4c57c1(0x2da)+_0x7ed8e0[_0x4c57c1(0x313)](_0x4c57c1(0x241))+'.'),process[_0x4c57c1(0x2a2)](0x2)),_0x467f4c[_0x4c57c1(0x345)]=_0x798224;break;}case _0x4c57c1(0x1e4):_0x467f4c[_0x4c57c1(0x1d1)]=p(_0x2bf384,++_0x220853,_0x3841b6,_0x4c57c1(0x32d));break;case _0x4c57c1(0x2b0):_0x467f4c[_0x4c57c1(0x335)]=N(_0x2bf384,++_0x220853,_0x3841b6);break;case _0x4c57c1(0x331):_0x467f4c[_0x4c57c1(0x23a)]=N(_0x2bf384,++_0x220853,_0x3841b6,_0xf2b3bf);break;case _0x4c57c1(0x1e5):_0x467f4c[_0x4c57c1(0x2c7)]=!0x0;break;case _0x4c57c1(0x254):_0x467f4c[_0x4c57c1(0x2d3)]=p(_0x2bf384,++_0x220853,_0x3841b6,_0x4c57c1(0x2e9));break;case _0x4c57c1(0x23f):{let _0x1d0f7c=_0x28eb08['resolve'](process['cwd'](),p(_0x2bf384,++_0x220853,_0x3841b6,_0x4c57c1(0x2ed)));_0x17238c[_0x4c57c1(0x1e9)](_0x1d0f7c)||(console[_0x4c57c1(0x1d4)](_0x4c57c1(0x286)+_0x1d0f7c),process[_0x4c57c1(0x2a2)](0x2)),_0x467f4c[_0x4c57c1(0x33a)][_0x4c57c1(0x2d0)](_0x1d0f7c);break;}case'--turn':_0x467f4c['turnId']=p(_0x2bf384,++_0x220853,_0x3841b6,_0x4c57c1(0x306));break;case'--to':_0x467f4c[_0x4c57c1(0x253)]=p(_0x2bf384,++_0x220853,_0x3841b6,_0x4c57c1(0x2b7));break;case _0x4c57c1(0x24c):_0x467f4c[_0x4c57c1(0x214)]=p(_0x2bf384,++_0x220853,_0x3841b6,'a\x20briefing\x20text');break;case'--days':_0x467f4c[_0x4c57c1(0x2bb)]=N(_0x2bf384,++_0x220853,_0x3841b6,0x16d);break;case _0x4c57c1(0x221):_0x467f4c[_0x4c57c1(0x25a)]=_0x28eb08[_0x4c57c1(0x1b8)](process['cwd'](),p(_0x2bf384,++_0x220853,_0x3841b6,_0x4c57c1(0x2fa)));break;case _0x4c57c1(0x317):_0x467f4c['bundledSkillsPath']=_0x28eb08[_0x4c57c1(0x1b8)](process[_0x4c57c1(0x2d4)](),p(_0x2bf384,++_0x220853,_0x3841b6,_0x4c57c1(0x2fa)));break;case _0x4c57c1(0x19d):{let _0x458b4d=p(_0x2bf384,++_0x220853,_0x3841b6,_0x4c57c1(0x25f));G[_0x4c57c1(0x2e0)](_0x458b4d)||(console[_0x4c57c1(0x1d4)](_0x4c57c1(0x2f5)+_0x458b4d+'.\x20Use\x20'+G['join']('\x20|\x20')+'.'),process[_0x4c57c1(0x2a2)](0x2)),_0x467f4c['effort']=_0x458b4d;break;}case'--tenant':{let _0x46dc92=_0x2bf384[++_0x220853];(!_0x46dc92||_0x46dc92['startsWith']('--'))&&(console[_0x4c57c1(0x1d4)](_0x4c57c1(0x197)),process['exit'](0x2)),_0x467f4c[_0x4c57c1(0x2de)]=_0x46dc92;break;}case _0x4c57c1(0x334):{let _0x15fda3=_0x2bf384[++_0x220853];[_0x4c57c1(0x247),_0x4c57c1(0x20a),_0x4c57c1(0x28d),'localhost'][_0x4c57c1(0x2e0)](_0x15fda3)||(console[_0x4c57c1(0x1d4)](_0x4c57c1(0x2ad)+_0x15fda3+_0x4c57c1(0x262)),process[_0x4c57c1(0x2a2)](0x2)),_0x467f4c[_0x4c57c1(0x333)]=_0x15fda3;break;}case _0x4c57c1(0x259):case _0x4c57c1(0x1de):{let _0x57465e=p(_0x2bf384,++_0x220853,_0x3841b6,'a\x20deployment\x20URL,\x20e.g.\x20https://automationsuite.contoso.com'),_0xed573a=_0x40b28c(_0x57465e);if(_0xed573a['ok']===!0x1){console[_0x4c57c1(0x1d4)](_0x5ed3bd(_0x57465e,_0xed573a[_0x4c57c1(0x33d)])),process[_0x4c57c1(0x2a2)](0x2);break;}_0x467f4c[_0x4c57c1(0x1d0)]=_0xed573a['baseUrl'];break;}case'--skip-env-check':_0x467f4c[_0x4c57c1(0x2ff)]=!0x0;break;case'-h':case _0x4c57c1(0x1f6):_0x467f4c[_0x4c57c1(0x31a)]=!0x0;break;case'-v':case _0x4c57c1(0x328):_0x467f4c[_0x4c57c1(0x1a7)]=!0x0;break;default:_0x3841b6[_0x4c57c1(0x256)]('--')&&(console[_0x4c57c1(0x1d4)]('Unknown\x20flag:\x20'+_0x3841b6),process[_0x4c57c1(0x2a2)](0x2)),_0x436d2c[_0x4c57c1(0x2d0)](_0x3841b6);}}return _0x467f4c[_0x4c57c1(0x2de)]!==void 0x0&&_0x467f4c[_0x4c57c1(0x311)]!==_0x4c57c1(0x1cf)&&(console['error'](_0x4c57c1(0x33c)),process[_0x4c57c1(0x2a2)](0x2)),_0x467f4c[_0x4c57c1(0x1d0)]!==void 0x0&&_0x467f4c[_0x4c57c1(0x333)]!==void 0x0&&(console[_0x4c57c1(0x1d4)]('Pass\x20either\x20--env\x20(a\x20named\x20cloud)\x20or\x20--url\x20(any\x20other\x20deployment),\x20not\x20both.'),process['exit'](0x2)),_0x467f4c[_0x4c57c1(0x1d0)]!==void 0x0&&_0x467f4c[_0x4c57c1(0x311)]!=='login'&&(console[_0x4c57c1(0x1d4)](_0x4c57c1(0x2b4)),process[_0x4c57c1(0x2a2)](0x2)),_0x467f4c[_0x4c57c1(0x2bb)]!==void 0x0&&_0x467f4c['subcommand']!==_0x4c57c1(0x1bc)&&(console[_0x4c57c1(0x1d4)]('--days\x20applies\x20to\x20`delegate-cli\x20usage\x20activity|daily`\x20only.'),process[_0x4c57c1(0x2a2)](0x2)),_0x467f4c[_0x4c57c1(0x2d3)]!==void 0x0&&(_0x467f4c[_0x4c57c1(0x311)]!==_0x4c57c1(0x2ec)&&_0x467f4c[_0x4c57c1(0x311)]!==''||_0x467f4c['cleanup'])&&(console[_0x4c57c1(0x1d4)](_0x4c57c1(0x330)),process[_0x4c57c1(0x2a2)](0x2)),_0x467f4c[_0x4c57c1(0x33a)][_0x4c57c1(0x284)]>0x0&&(_0x467f4c[_0x4c57c1(0x311)]!==''||_0x467f4c[_0x4c57c1(0x21b)])&&(console[_0x4c57c1(0x1d4)]('--attach\x20applies\x20to\x20prompts\x20only.'),process[_0x4c57c1(0x2a2)](0x2)),_0x467f4c[_0x4c57c1(0x2ff)]&&_0x467f4c[_0x4c57c1(0x311)]!==_0x4c57c1(0x1cf)&&(console['error']('--skip-env-check\x20applies\x20to\x20`delegate-cli\x20login`\x20only.'),process['exit'](0x2)),_0x467f4c[_0x4c57c1(0x345)]!==_0x4c57c1(0x2f3)&&!W['includes'](_0x467f4c[_0x4c57c1(0x311)])&&(console[_0x4c57c1(0x1d4)]('--output-format\x20'+_0x467f4c[_0x4c57c1(0x345)]+_0x4c57c1(0x1a5)+W[_0x4c57c1(0x21e)](Boolean)[_0x4c57c1(0x313)](',\x20')+'.'),process[_0x4c57c1(0x2a2)](0x2)),(_0x467f4c[_0x4c57c1(0x335)]!==void 0x0||_0x467f4c[_0x4c57c1(0x23a)]!==void 0x0||_0x467f4c[_0x4c57c1(0x2c7)])&&_0x467f4c[_0x4c57c1(0x311)]!==_0x4c57c1(0x308)&&(console[_0x4c57c1(0x1d4)]('--page,\x20--limit\x20and\x20--include-subagents\x20apply\x20to\x20`delegate-cli\x20sessions`\x20only.'),process[_0x4c57c1(0x2a2)](0x2)),(_0x467f4c[_0x4c57c1(0x253)]!==void 0x0||_0x467f4c['contextSummary']!==void 0x0)&&_0x467f4c['subcommand']!==_0x4c57c1(0x340)&&(console[_0x4c57c1(0x1d4)](_0x4c57c1(0x272)),process[_0x4c57c1(0x2a2)](0x2)),_0x467f4c[_0x4c57c1(0x2db)]!==void 0x0&&_0x467f4c['subcommand']!==_0x4c57c1(0x308)&&(console[_0x4c57c1(0x1d4)](_0x4c57c1(0x2aa)),process['exit'](0x2)),_0x467f4c['preloadSkills']=[...new Set(_0x467f4c[_0x4c57c1(0x226)])],_0x467f4c[_0x4c57c1(0x242)]=_0x436d2c,_0x467f4c[_0x4c57c1(0x1df)]=_0x436d2c[_0x4c57c1(0x313)]('\x20'),_0x467f4c;}var S=_0x5d0590=>{const _0x15e6b9=_0x46ea59;process[_0x15e6b9(0x27c)][_0x15e6b9(0x1c5)](_0x5d0590);};function gt(){const _0x18d35f=_0x46ea59;let _0x3eb1dc=process[_0x18d35f(0x27c)][_0x18d35f(0x1c5)],_0xd923e4=_0x3eb1dc[_0x18d35f(0x1c4)](process[_0x18d35f(0x27c)]),_0xc04f74=S;return S=_0x86b6c0=>{_0xd923e4(_0x86b6c0);},process['stdout'][_0x18d35f(0x1c5)]=(..._0x188c9a)=>process[_0x18d35f(0x2d6)][_0x18d35f(0x1c5)](..._0x188c9a),()=>{const _0x315f74=_0x18d35f;process['stdout'][_0x315f74(0x1c5)]=_0x3eb1dc,S=_0xc04f74;};}function l(_0x52d09c,_0x3e6655,_0xc350d2){const _0x86f4e7=_0x46ea59;if(_0x52d09c[_0x86f4e7(0x345)]===_0x86f4e7(0x2f3)){_0xc350d2(_0x3e6655);return;}S(_0x4e23bf(_0x3e6655));}function ht(){const _0x5d4f88=_0x46ea59;let _0x3843d0=_0x5d4f88(0x281)['trim']();console[_0x5d4f88(0x24f)](_0x3843d0);}function wt(){const _0x96cb3d=_0x46ea59;try{return JSON['parse'](_0x17238c[_0x96cb3d(0x307)](_0x28eb08[_0x96cb3d(0x313)](__dirname,'..',_0x96cb3d(0x1dc)),'utf-8'))[_0x96cb3d(0x1a7)]||'unknown';}catch{return'unknown';}}var yt=0x7d0;async function K(_0x3855c3,_0x48cff5){const _0x6c65dd=_0x46ea59;let _0x5168e2=_0x48cff5?[_0x48cff5]:[];for await(let _0x5e45ed of _0x3855c3)_0x5168e2[_0x6c65dd(0x2d0)](Buffer['from'](_0x5e45ed));return Buffer['concat'](_0x5168e2)['toString'](_0x6c65dd(0x2a6))[_0x6c65dd(0x292)]();}function kt(_0x4bc2d3,_0x22c28b){return new Promise(_0x38d3c5=>{const _0x7d383a=_0x5968;let _0xbbb1af=_0x753455=>{const _0xe73ab3=_0x5968;clearTimeout(_0x422af9),_0x4bc2d3['off']('data',_0x28f2b4),_0x4bc2d3['off'](_0xe73ab3(0x1d8),_0x104217),_0x4bc2d3[_0xe73ab3(0x210)](_0xe73ab3(0x1d4),_0x104217),_0x4bc2d3[_0xe73ab3(0x2a4)](),_0x38d3c5(_0x753455);},_0x28f2b4=_0x3a160f=>_0xbbb1af(Buffer[_0x7d383a(0x346)](_0x3a160f)),_0x104217=()=>_0xbbb1af(null),_0x422af9=setTimeout(()=>_0xbbb1af(null),_0x22c28b);_0x4bc2d3['on'](_0x7d383a(0x1aa),_0x28f2b4),_0x4bc2d3['on']('end',_0x104217),_0x4bc2d3['on']('error',_0x104217),_0x4bc2d3[_0x7d383a(0x276)]();});}async function I(_0x5e6d58,_0x1ef761,_0x2a74b1=yt){const _0x4a682d=_0x46ea59;let _0x5e3008=_0x5e6d58==='-';if(!_0x5e3008&&_0x5e6d58)return _0x5e6d58;if(!_0x5e3008&&_0x1ef761[_0x4a682d(0x21d)])return'';if(_0x5e3008)return K(_0x1ef761,null);let _0x8604cd=await kt(_0x1ef761,_0x2a74b1);return _0x8604cd?K(_0x1ef761,_0x8604cd):'';}function L(){const _0x7ea6c8=_0x46ea59;return _0x28eb08[_0x7ea6c8(0x313)](process.env.HOME||process.env.USERPROFILE||'','.aria','auth.json');}function $(_0x3ef5b5){const _0x1baffb=_0x46ea59;try{let _0x49fb35=JSON[_0x1baffb(0x225)](_0x17238c[_0x1baffb(0x307)](_0x3ef5b5,'utf-8'));return!_0x49fb35[_0x1baffb(0x208)]||!_0x49fb35['tenantId']||!_0x49fb35[_0x1baffb(0x2cd)]?null:_0x49fb35;}catch{return null;}}function St(){const _0x2dad22=_0x46ea59;let _0x1b0263=[{'file':_0x27961c(),'isDesktopFallback':!0x1},{'file':L(),'isDesktopFallback':!0x0}];for(let _0x15cbe4 of _0x1b0263){let _0x3e4580=$(_0x15cbe4[_0x2dad22(0x24a)]);if(_0x3e4580)return{..._0x15cbe4,'auth':_0x3e4580};}return null;}async function bt(){const _0x386a29=_0x46ea59;let _0x2544e9=_0x27961c();if(!_0x17238c[_0x386a29(0x1e9)](_0x2544e9)){let _0x305dec=L();console[_0x386a29(0x24f)]($(_0x305dec)?'No\x20CLI\x20login\x20found.\x20Note:\x20the\x20CLI\x20is\x20currently\x20authenticating\x20via\x20the\x20Delegate\x20desktop\x20app\x27s\x20'+_0x305dec+_0x386a29(0x19c):_0x386a29(0x2a3));return;}_0x17238c[_0x386a29(0x2d1)](_0x2544e9),console[_0x386a29(0x24f)](_0x386a29(0x33f)+_0x2544e9);}async function vt(_0x5824f3){const _0xd60d2=_0x46ea59;let _0xeb6f1d=O(),_0x5cf670,_0x331391;if(_0xeb6f1d)_0x5cf670=_0xeb6f1d,_0x331391='environment\x20variables\x20(AUTH_TOKEN/TENANT_ID/ORG_ID)';else{let _0x482fd8=St();if(!_0x482fd8)throw new Error(le);_0x5cf670=_0x482fd8[_0xd60d2(0x266)],_0x331391=_0x482fd8[_0xd60d2(0x1fd)]?_0x482fd8[_0xd60d2(0x24a)]+_0xd60d2(0x2e8):_0x482fd8[_0xd60d2(0x24a)];}let _0x2a177a={'source':_0x331391,'baseUrl':_0x5cf670[_0xd60d2(0x216)]??null,'deployment':Et(_0x5cf670[_0xd60d2(0x216)]),'organization':{'id':_0x5cf670[_0xd60d2(0x2cd)],'slug':_0x5cf670['orgLogicalName']??null},'tenant':{'id':_0x5cf670['tenantId'],'name':_0x5cf670[_0xd60d2(0x20d)]??null},'tokenExpiresAt':_0x5cf670[_0xd60d2(0x261)]?new Date(_0x5cf670[_0xd60d2(0x261)]*0x3e8)[_0xd60d2(0x34d)]():null};l(_0x5824f3,_0x2a177a,()=>{const _0x223810=_0xd60d2;let _0x2029a4=[_0x223810(0x26e)+_0x331391,_0x223810(0x32e)+(_0x5cf670[_0x223810(0x216)]??'unknown'),_0x223810(0x1c9)+_0x2a177a['deployment'],'Organization:\x20'+(_0x5cf670[_0x223810(0x32a)]??_0x223810(0x22c))+'\x20('+_0x5cf670[_0x223810(0x2cd)]+')',_0x223810(0x1ef)+(_0x5cf670['tenantName']??_0x223810(0x22c))+'\x20('+_0x5cf670['tenantId']+')'];if(_0x5cf670[_0x223810(0x261)]){let _0x1854b9=_0x5cf670[_0x223810(0x261)]-Math[_0x223810(0x296)](Date[_0x223810(0x203)]()/0x3e8);_0x2029a4['push'](_0x1854b9>0x0?'Token:\x20\x20\x20\x20\x20\x20\x20\x20expires\x20'+_0x2a177a[_0x223810(0x2ca)]+'\x20(in\x20'+Math[_0x223810(0x34f)](_0x1854b9/0x3c)+_0x223810(0x22a):_0x223810(0x28a)+_0x2a177a[_0x223810(0x2ca)]);}process['stdout'][_0x223810(0x1c5)](_0x2029a4[_0x223810(0x313)]('\x0a')+'\x0a');});}var le='No\x20auth\x20found.\x20Set\x20AUTH_TOKEN\x20(or\x20AUTH_TOKEN_FILE)/TENANT_ID/ORG_ID\x20env\x20vars,\x20or\x20run\x20`delegate-cli\x20login\x20--env\x20<alpha|staging|production>`\x20(or\x20`--url\x20<deployment-url>`\x20for\x20Automation\x20Suite)\x20first.';function Et(_0x19de06){const _0x4c2b5e=_0x46ea59;return _0x19de06?_0x49f409(_0x19de06)?_0x4c2b5e(0x1ce):_0x4c2b5e(0x1ab):_0x4c2b5e(0x1fa);}function O(){let _0x36d339=process.env.AUTH_TOKEN_FILE;return(process.env.AUTH_TOKEN||_0x36d339)&&process.env.TENANT_ID&&process.env.ORG_ID?{'accessToken':_0x36d339?At(_0x36d339):process.env.AUTH_TOKEN,..._0x36d339?{'accessTokenFile':_0x36d339}:{},'tenantId':process.env.TENANT_ID,'organizationId':process.env.ORG_ID,'orgLogicalName':process.env.ORG_SLUG,'tenantName':process.env.TENANT_SLUG,'baseUrl':ce()}:null;}function At(_0x212a73){const _0x3b455a=_0x46ea59;let _0x5233f2;try{_0x5233f2=_0x17238c[_0x3b455a(0x307)](_0x212a73,_0x3b455a(0x2a6))[_0x3b455a(0x292)]();}catch(_0x5579f7){throw new Error(_0x3b455a(0x250)+_0x212a73+_0x3b455a(0x1ed)+_0x5579f7[_0x3b455a(0x2d7)]);}let _0x3a8ad1=_0x5233f2[_0x3b455a(0x256)]('Bearer\x20')?_0x5233f2[_0x3b455a(0x31d)](0x7)[_0x3b455a(0x292)]():_0x5233f2;if(!_0x3a8ad1)throw new Error('AUTH_TOKEN_FILE\x20\x27'+_0x212a73+_0x3b455a(0x2b3));return _0x3a8ad1;}function ce(){const _0xc2359e=_0x46ea59;let _0xfbbd79=process.env.UIPATH_BASE_URL;if(!_0xfbbd79)return;let _0x1483c4=_0x40b28c(_0xfbbd79);if(_0x1483c4['ok']===!0x1)throw new Error(_0xc2359e(0x20e)+_0x5ed3bd(_0xfbbd79,_0x1483c4[_0xc2359e(0x33d)]));return _0x1483c4['baseUrl'];}async function P(){let _0x42ac2b=O();if(_0x42ac2b)return _0x42ac2b;let _0x54b467=await _0xab5c39();if(_0x54b467)return _0x54b467;throw new Error(le);}async function It(){const _0x300d43=_0x46ea59;await new _0x3b70d7()[_0x300d43(0x1ec)]({'force':!0x0}),console[_0x300d43(0x24f)](_0x300d43(0x31f));}function F(_0x33be2c,_0x28bd7c,_0x4458b7){const _0x41f3b7=_0x46ea59;_0x33be2c?process[_0x41f3b7(0x2d6)][_0x41f3b7(0x1c5)](_0x41f3b7(0x2ef)+_0x33be2c+_0x41f3b7(0x23b)+_0x4458b7+'\x0a'):!_0x28bd7c&&!process.env.BACKEND_URL&&process[_0x41f3b7(0x2d6)]['write'](_0x41f3b7(0x319)+_0x4458b7+'\x0a');}async function f(_0x297a28){const _0x1d6995=_0x46ea59;let _0x9d9654=await P(),_0x1519cb=_0xb1d4f1(_0x297a28[_0x1d6995(0x333)],_0x9d9654,_0x297a28[_0x1d6995(0x252)]);return F(_0x297a28[_0x1d6995(0x333)],_0x297a28[_0x1d6995(0x252)],_0x1519cb),{'auth':_0x9d9654,'backendUrl':_0x1519cb,'client':_0x38b73c({'auth':_0x9d9654,'backendUrl':_0x1519cb})};}async function $t(_0x3d4f9b){const _0xbba6e9=_0x46ea59;let {client:_0x5c3e18}=await f(_0x3d4f9b),[_0x130436,_0x1e0ea1]=await Promise[_0xbba6e9(0x1c1)]([_0x53b029(_0x5c3e18),_0x2dbb09(_0x5c3e18)[_0xbba6e9(0x2c6)](_0x3aed13=>(process[_0xbba6e9(0x2d6)][_0xbba6e9(0x1c5)](_0xbba6e9(0x280)+(_0x3aed13 instanceof Error?_0x3aed13[_0xbba6e9(0x2d7)]:String(_0x3aed13))+'\x0a'),{}))]),_0x1ec5c3=_0x130436[_0xbba6e9(0x24b)](_0x3c3f43=>_0x1e0ea1[_0x3c3f43['id']]?{..._0x3c3f43,'byoWarning':_0x1e0ea1[_0x3c3f43['id']]}:_0x3c3f43);l(_0x3d4f9b,_0x1ec5c3,Tt);}function Tt(_0x2f9e05){const _0x289e73=_0x46ea59;if(_0x2f9e05[_0x289e73(0x284)]===0x0){process['stderr'][_0x289e73(0x1c5)](_0x289e73(0x2df));return;}process['stdout'][_0x289e73(0x1c5)](_0x289e73(0x1b0)+_0x2f9e05[_0x289e73(0x284)]+_0x289e73(0x255));for(let _0x547c9b of _0x2f9e05){let _0x48cbbd=_0x547c9b[_0x289e73(0x19b)]&&_0x547c9b['name']!==_0x547c9b['id']?'\x20('+_0x547c9b[_0x289e73(0x19b)]+')':'';process['stdout'][_0x289e73(0x1c5)]('\x20\x20'+_0x547c9b['id']+_0x48cbbd+'\x0a'),_0x547c9b[_0x289e73(0x2eb)]&&process[_0x289e73(0x27c)][_0x289e73(0x1c5)](_0x289e73(0x2ab)+_0x547c9b[_0x289e73(0x2eb)]+'\x0a'),_0x547c9b[_0x289e73(0x321)]&&process[_0x289e73(0x27c)]['write'](_0x289e73(0x304)+(_0x547c9b[_0x289e73(0x1eb)]?'\x20('+_0x547c9b[_0x289e73(0x1eb)]+')':'')+'\x0a'),_0x547c9b[_0x289e73(0x332)]&&process[_0x289e73(0x27c)]['write'](_0x289e73(0x324)+_0x547c9b[_0x289e73(0x332)]+'\x0a');}process[_0x289e73(0x27c)][_0x289e73(0x1c5)](_0x289e73(0x222));}var z=['list',_0x46ea59(0x194),_0x46ea59(0x341),'delete',_0x46ea59(0x27f),'fork'];async function xt(_0x2159ab){const _0x2bae00=_0x46ea59;let [_0x1ed7a3='',_0x197b53='',..._0x2b569b]=_0x2159ab[_0x2bae00(0x242)];if(_0x1ed7a3&&!z['includes'](_0x1ed7a3)&&(console['error'](_0x2bae00(0x1c2)+_0x1ed7a3+'.\x20Use:\x20'+z[_0x2bae00(0x313)](_0x2bae00(0x241))+'.'),process[_0x2bae00(0x2a2)](0x2)),_0x2159ab[_0x2bae00(0x2db)]!==void 0x0&&_0x1ed7a3!=='cancel'&&(console[_0x2bae00(0x1d4)](_0x2bae00(0x2aa)),process['exit'](0x2)),_0x1ed7a3&&_0x1ed7a3!==_0x2bae00(0x264)){await Dt(_0x2159ab,_0x1ed7a3,_0x197b53,_0x2b569b[_0x2bae00(0x313)]('\x20')[_0x2bae00(0x292)]());return;}_0x2159ab[_0x2bae00(0x242)][_0x2bae00(0x284)]>0x1&&(console[_0x2bae00(0x1d4)](_0x2bae00(0x27b)),process[_0x2bae00(0x2a2)](0x2));let {client:_0x2774b8}=await f(_0x2159ab),_0x19dd84=await _0x2c532e(_0x2774b8,{'page':_0x2159ab['page'],'pageSize':_0x2159ab[_0x2bae00(0x23a)],'includeSubAgents':_0x2159ab['includeSubAgents']});l(_0x2159ab,_0x19dd84,Ct);}async function Dt(_0x421260,_0x394764,_0x272eac,_0x2089b5){const _0x33e003=_0x46ea59;if((_0x421260[_0x33e003(0x335)]!==void 0x0||_0x421260[_0x33e003(0x23a)]!==void 0x0||_0x421260[_0x33e003(0x2c7)])&&(console[_0x33e003(0x1d4)](_0x33e003(0x195)),process[_0x33e003(0x2a2)](0x2)),_0x394764===_0x33e003(0x27f)){await Ut(_0x421260,_0x272eac,_0x2089b5);return;}if(_0x394764===_0x33e003(0x2d2)){await Nt(_0x421260,_0x272eac,_0x2089b5);return;}(!_0x272eac||_0x394764===_0x33e003(0x341)!=!!_0x2089b5)&&(console[_0x33e003(0x1d4)](_0x33e003(0x1b9)+_0x394764+_0x33e003(0x325)+(_0x394764===_0x33e003(0x341)?_0x33e003(0x320):'')),process[_0x33e003(0x2a2)](0x2));let {client:_0x34500d}=await f(_0x421260);try{if(_0x394764===_0x33e003(0x194)){let _0x12db67=await _0x29489e(_0x34500d,_0x272eac);_0x12db67||V(_0x272eac),l(_0x421260,_0x12db67,_t);}else{if(_0x394764===_0x33e003(0x341)){let _0x41bc56=await _0x5d4fb2(_0x34500d,_0x272eac,_0x2089b5);l(_0x421260,_0x41bc56,_0x1f9d87=>{const _0x389fe6=_0x33e003;process[_0x389fe6(0x27c)][_0x389fe6(0x1c5)](_0x389fe6(0x1f2)+_0x1f9d87['id']+':\x20'+_0x1f9d87[_0x389fe6(0x1a3)]+'\x0a');});}else await _0xe0140c(_0x34500d,_0x272eac),l(_0x421260,{'id':_0x272eac,'deleted':!0x0},_0x4be88e=>{const _0x27578d=_0x33e003;process['stdout']['write'](_0x27578d(0x30f)+_0x4be88e['id']+'.\x0a');});}}catch(_0x5f55be){if(!_0x55b017(_0x5f55be,0x194))throw _0x5f55be;V(_0x272eac);}}function V(_0x5a7424){const _0xd1285=_0x46ea59;console['error'](_0xd1285(0x1e2)+_0x5a7424+_0xd1285(0x2bd)),process[_0xd1285(0x2a2)](0x1);}function _t(_0x1cb017){const _0x1c8d2d=_0x46ea59;process[_0x1c8d2d(0x27c)][_0x1c8d2d(0x1c5)](_0x1c8d2d(0x347)+_0x1cb017['id']+'\x0a'),process[_0x1c8d2d(0x27c)][_0x1c8d2d(0x1c5)](_0x1c8d2d(0x1dd)+_0x1cb017[_0x1c8d2d(0x1a3)]+'\x0a'),process['stdout'][_0x1c8d2d(0x1c5)](_0x1c8d2d(0x2a8)+_0x1cb017['userId']+'\x0a'),process[_0x1c8d2d(0x27c)][_0x1c8d2d(0x1c5)](_0x1c8d2d(0x351)+_0x1cb017[_0x1c8d2d(0x2cd)]+'\x0a'),_0x1cb017[_0x1c8d2d(0x1ae)]&&process['stdout']['write']('Delegation\x20\x20\x20\x20'+_0x1cb017[_0x1c8d2d(0x1ae)]+'\x0a');}async function Ut(_0x2d3423,_0xf10e41,_0x3fb189){const _0x306df7=_0x46ea59;(!_0xf10e41||_0x3fb189||!_0x2d3423[_0x306df7(0x2db)])&&(console[_0x306df7(0x1d4)](_0x306df7(0x215)),process[_0x306df7(0x2a2)](0x2));let {client:_0x134fa8}=await f(_0x2d3423),_0x89a983=await _0xbb849c(_0x134fa8,_0xf10e41,_0x2d3423[_0x306df7(0x2db)]);l(_0x2d3423,{'sessionId':_0xf10e41,'turnId':_0x2d3423[_0x306df7(0x2db)],'cancelled':_0x89a983},_0x2110a6=>{const _0x1dd877=_0x306df7;_0x2110a6[_0x1dd877(0x275)]?process[_0x1dd877(0x27c)][_0x1dd877(0x1c5)]('Cancel\x20requested\x20for\x20turn\x20'+_0x2110a6[_0x1dd877(0x2db)]+'\x20of\x20session\x20'+_0x2110a6[_0x1dd877(0x1d1)]+'.\x0a'):process[_0x1dd877(0x2d6)]['write']('No\x20turn\x20'+_0x2110a6[_0x1dd877(0x2db)]+_0x1dd877(0x238)+_0x2110a6['sessionId']+'.\x0a');}),_0x89a983||(process['exitCode']=0x1);}async function Nt(_0x12020f,_0xeb5d3d,_0x21710c){const _0x4ead67=_0x46ea59;(!_0xeb5d3d||/\s/[_0x4ead67(0x249)](_0x21710c))&&(console['error'](_0x4ead67(0x1cc)),process[_0x4ead67(0x2a2)](0x2));let {client:_0x4e4346}=await f(_0x12020f),_0x5f4211;try{_0x5f4211=await _0x5c0c1f(_0x4e4346,_0xeb5d3d,{'atMessageId':_0x21710c||void 0x0});}catch(_0x44c40a){if(!_0x55b017(_0x44c40a,0x194))throw _0x44c40a;console[_0x4ead67(0x1d4)](_0x4ead67(0x1e2)+_0xeb5d3d+_0x4ead67(0x1f9)+(_0x21710c?_0x4ead67(0x350)+_0x21710c:'')+'.'),process[_0x4ead67(0x2a2)](0x1);}l(_0x12020f,_0x5f4211,_0x1979b6=>{const _0x5ac5f9=_0x4ead67;process['stdout'][_0x5ac5f9(0x1c5)](_0x5ac5f9(0x1bd)+_0xeb5d3d+'\x20into\x20'+_0x1979b6['id']+'.\x0a'),process[_0x5ac5f9(0x2d6)][_0x5ac5f9(0x1c5)](_0x5ac5f9(0x338)+_0x1979b6['id']+_0x5ac5f9(0x218));});}function Ct({sessions:_0xdaf4ef,page:_0x5984ee,isLastPage:_0x6d343d}){const _0x5dc9fe=_0x46ea59;if(_0xdaf4ef['length']===0x0)process[_0x5dc9fe(0x2d6)][_0x5dc9fe(0x1c5)](_0x5dc9fe(0x2c5)+_0x5984ee+'.\x0a');else{process[_0x5dc9fe(0x27c)]['write']('ID'[_0x5dc9fe(0x26d)](0x24)+'\x20\x20'+_0x5dc9fe(0x2f6)[_0x5dc9fe(0x26d)](0x13)+_0x5dc9fe(0x1c6));for(let _0x408d70 of _0xdaf4ef){let _0x1c2c38=_0x408d70[_0x5dc9fe(0x1c8)][_0x5dc9fe(0x228)]('T','\x20')['slice'](0x0,0x13),_0x3daaf1=_0x408d70[_0x5dc9fe(0x19f)]?'\x20\x20(sub-agent\x20of\x20'+_0x408d70[_0x5dc9fe(0x19f)]+')':'';process['stdout'][_0x5dc9fe(0x1c5)](_0x408d70['id'][_0x5dc9fe(0x26d)](0x24)+'\x20\x20'+_0x1c2c38[_0x5dc9fe(0x26d)](0x13)+'\x20\x20'+_0x408d70['title']+_0x3daaf1+'\x0a');}}_0x6d343d||process[_0x5dc9fe(0x2d6)]['write']('More:\x20delegate-cli\x20sessions\x20--page\x20'+(_0x5984ee+0x1)+'\x0a');}async function Rt(_0x411f7b){const _0x5a4343=_0x46ea59;let _0x466ba9=await P(),_0x59e6a4=_0xb1d4f1(_0x411f7b['env'],_0x466ba9,_0x411f7b[_0x5a4343(0x252)]);F(_0x411f7b[_0x5a4343(0x333)],_0x411f7b[_0x5a4343(0x252)],_0x59e6a4);let _0x3290e9=await _0x737d1e({'auth':_0x466ba9,'backendUrl':_0x59e6a4,'interop':_0x411f7b[_0x5a4343(0x2fc)]?_0x5a4343(0x220):_0x5a4343(0x267)});l(_0x411f7b,_0x3290e9,({checks:_0x4487f2})=>{const _0x8e22b5=_0x5a4343;for(let _0x175609 of _0x4487f2)process['stdout'][_0x8e22b5(0x1c5)](Lt(_0x175609)+'\x0a');}),_0x3290e9['ok']||process['exit'](0x1);}function Lt(_0x1e4213){const _0x224b43=_0x46ea59;return{'ok':'✓','failed':'✗','skipped':'-'}[_0x1e4213[_0x224b43(0x282)]]+'\x20'+_0x1e4213[_0x224b43(0x19b)][_0x224b43(0x26d)](0xa)+_0x1e4213[_0x224b43(0x265)];}var Ot=['','activity','daily'];async function Pt(_0x5f2a57){const _0x45d1ec=_0x46ea59;let _0x533349=_0x5f2a57[_0x45d1ec(0x1df)];Ot[_0x45d1ec(0x2e0)](_0x533349)||(console[_0x45d1ec(0x1d4)](_0x45d1ec(0x298)+_0x5f2a57[_0x45d1ec(0x1df)]+_0x45d1ec(0x19e)),process[_0x45d1ec(0x2a2)](0x2)),_0x533349===''&&_0x5f2a57['days']!==void 0x0&&(console[_0x45d1ec(0x1d4)](_0x45d1ec(0x235)),process[_0x45d1ec(0x2a2)](0x2)),_0x533349!==''&&_0x5f2a57[_0x45d1ec(0x1d1)]!==void 0x0&&(console[_0x45d1ec(0x1d4)](_0x45d1ec(0x21f)),process[_0x45d1ec(0x2a2)](0x2));let {client:_0x56483a}=await f(_0x5f2a57);if(_0x533349===_0x45d1ec(0x232)){l(_0x5f2a57,await _0x2a95df(_0x56483a,{'days':_0x5f2a57[_0x45d1ec(0x2bb)]}),jt);return;}if(_0x533349==='daily'){l(_0x5f2a57,await _0x54aeba(_0x56483a,{'days':_0x5f2a57['days']}),Mt);return;}let [_0x9c9d53,_0x14f8ff,_0x5621ca]=await Promise['all']([_0x166d88(_0x56483a,{'sessionId':_0x5f2a57[_0x45d1ec(0x1d1)]}),_0x6c648f(_0x56483a),_0x50a57c(_0x56483a)]);l(_0x5f2a57,{'licensing':_0x9c9d53,'monthlySpending':_0x14f8ff,'cartographerAllowance':_0x5621ca},Ft);}function Ft(_0x4b66c1){const _0x206de2=_0x46ea59;let {licensing:_0x4a2d26,monthlySpending:_0x28cdfe,cartographerAllowance:_0x10f9cf}=_0x4b66c1,_0x177567=[_0x4a2d26['limit_enabled']?'Licensing:\x20\x20\x20\x20'+_0x4a2d26[_0x206de2(0x23c)][_0x206de2(0x2e3)](0x1)+_0x206de2(0x291)+(_0x4a2d26['total_quota_pu']??0x0)+_0x206de2(0x288)+(_0x4a2d26[_0x206de2(0x2e1)]>0x0?',\x20'+_0x4a2d26['extra_pool_consumed_pu']+_0x206de2(0x2ee):'')+_0x206de2(0x34e)+_0x4a2d26['period_end']+')':_0x206de2(0x30d),_0x206de2(0x219)+_0x28cdfe[_0x206de2(0x251)]['toFixed'](0x2)+'\x20this\x20month'+(_0x28cdfe[_0x206de2(0x20c)]&&_0x28cdfe[_0x206de2(0x295)]!==null?_0x206de2(0x246)+_0x28cdfe[_0x206de2(0x295)][_0x206de2(0x2e3)](0x2)+_0x206de2(0x33e):_0x206de2(0x293)),_0x206de2(0x2ac)+_0x10f9cf[_0x206de2(0x32b)]+'\x20('+_0x10f9cf[_0x206de2(0x248)]+')'];_0x4a2d26[_0x206de2(0x2ba)]!==null&&_0x4a2d26[_0x206de2(0x2ba)]!==void 0x0&&_0x177567[_0x206de2(0x2d0)](_0x206de2(0x201)+_0x4a2d26[_0x206de2(0x2ba)]+_0x206de2(0x1b5)),process[_0x206de2(0x27c)]['write'](_0x177567[_0x206de2(0x313)]('\x0a')+'\x0a');}function jt(_0x41c077){const _0x6f355b=_0x46ea59;let _0x482790=[_0x6f355b(0x29f)+_0x41c077[_0x6f355b(0x2b8)]+'\x20days:\x20'+_0x41c077[_0x6f355b(0x200)]+_0x6f355b(0x336)+_0x41c077[_0x6f355b(0x1ba)]+_0x6f355b(0x1b6),_0x6f355b(0x2f0)+_0x41c077[_0x6f355b(0x2dc)]['toFixed'](0x2)+_0x6f355b(0x297)+_0x41c077[_0x6f355b(0x32c)][_0x6f355b(0x2e3)](0x2)+'\x20from\x20'+_0x41c077['total_token_units']+_0x6f355b(0x240),_0x6f355b(0x28e)+_0x41c077[_0x6f355b(0x279)]+'\x20prompt,\x20'+_0x41c077[_0x6f355b(0x33b)]+_0x6f355b(0x323)];for(let [_0x190d14,_0x5595e5]of Object[_0x6f355b(0x2dd)](_0x41c077['models_breakdown']))_0x482790[_0x6f355b(0x2d0)]('\x20\x20'+_0x190d14+':\x20'+_0x5595e5+_0x6f355b(0x20f));process['stdout'][_0x6f355b(0x1c5)](_0x482790['join']('\x0a')+'\x0a');}function Mt(_0x3616ac){const _0x52cd24=_0x46ea59;if(_0x3616ac['daily_usage'][_0x52cd24(0x284)]===0x0){process[_0x52cd24(0x27c)][_0x52cd24(0x1c5)]('No\x20usage\x20in\x20the\x20last\x20'+_0x3616ac[_0x52cd24(0x2b8)]+'\x20days.\x0a');return;}let _0x5d4022=[_0x52cd24(0x268)];for(let _0x5c9f80 of _0x3616ac[_0x52cd24(0x273)])_0x5d4022[_0x52cd24(0x2d0)](_0x5c9f80[_0x52cd24(0x1d2)]+'\x20\x20'+String(_0x5c9f80[_0x52cd24(0x277)])[_0x52cd24(0x310)](0xb)+'\x20\x20'+String(_0x5c9f80[_0x52cd24(0x1ee)])[_0x52cd24(0x310)](0xd)+'\x20\x20'+String(_0x5c9f80['completion_tokens'])[_0x52cd24(0x310)](0x11));process[_0x52cd24(0x27c)][_0x52cd24(0x1c5)](_0x5d4022[_0x52cd24(0x313)]('\x0a')+'\x0a');}async function Bt(_0x51a0c7,_0x45f0f9){const _0x137f1c=_0x46ea59;let _0x349e9a=await Ht(_0x51a0c7['prompt'],_0x45f0f9);_0x51a0c7['model']&&(_0x349e9a['model']=_0x51a0c7[_0x137f1c(0x31c)]);let {client:_0x25c9b7}=await f(_0x51a0c7);try{_0x45f0f9==='evaluate'?l(_0x51a0c7,await _0x304c86(_0x25c9b7,_0x349e9a,void 0x0),Jt):_0x45f0f9===_0x137f1c(0x1f3)?l(_0x51a0c7,await _0x4d1d35(_0x25c9b7,_0x349e9a,void 0x0),Wt):l(_0x51a0c7,await _0x297592(_0x25c9b7,_0x349e9a,void 0x0),Gt);}catch(_0x5870e3){if(!_0x18e1e5(_0x5870e3))throw _0x5870e3;console['error'](_0x5870e3[_0x137f1c(0x2d7)]),process[_0x137f1c(0x2a2)](0x1);}}async function Ht(_0x3c374e,_0x1d381f){const _0x3bab81=_0x46ea59;let _0x280bb5;try{_0x280bb5=_0x3c374e&&_0x3c374e!=='-'?_0x17238c['readFileSync'](_0x28eb08[_0x3bab81(0x1b8)](_0x3c374e),_0x3bab81(0x2a6)):await I(_0x3c374e,process[_0x3bab81(0x1a1)]);}catch(_0x28846e){console[_0x3bab81(0x1d4)](_0x1d381f+_0x3bab81(0x27e)+_0x28846e[_0x3bab81(0x2d7)]+').'),process[_0x3bab81(0x2a2)](0x2);}return _0x280bb5||(console[_0x3bab81(0x1d4)](_0x1d381f+'\x20needs\x20a\x20JSON\x20request:\x20delegate-cli\x20'+_0x1d381f+_0x3bab81(0x327)),process[_0x3bab81(0x2a2)](0x2)),de(_0x280bb5,_0x1d381f,_0x3bab81(0x193));}function de(_0x3edf05,_0x433879,_0x1e325d){const _0x8add24=_0x46ea59;let _0x1bb9b3;try{_0x1bb9b3=JSON[_0x8add24(0x225)](_0x3edf05);}catch(_0x31db3e){console[_0x8add24(0x1d4)](_0x433879+':\x20'+_0x1e325d+_0x8add24(0x23e)+_0x31db3e[_0x8add24(0x2d7)]+').'),process[_0x8add24(0x2a2)](0x2);}return(typeof _0x1bb9b3!=_0x8add24(0x1ac)||_0x1bb9b3===null||Array[_0x8add24(0x34a)](_0x1bb9b3))&&(console[_0x8add24(0x1d4)](_0x433879+':\x20'+_0x1e325d+'\x20must\x20be\x20a\x20JSON\x20object.'),process[_0x8add24(0x2a2)](0x2)),_0x1bb9b3;}function ue(_0x2fb54e,_0x420283){const _0x3863f0=_0x46ea59;let _0x28ed7e;try{_0x28ed7e=_0x17238c['readFileSync'](_0x28eb08['resolve'](_0x2fb54e),_0x3863f0(0x2a6));}catch(_0x39a283){console[_0x3863f0(0x1d4)](_0x420283+_0x3863f0(0x1a4)+_0x39a283[_0x3863f0(0x2d7)]+').'),process[_0x3863f0(0x2a2)](0x2);}return de(_0x28ed7e,_0x420283,_0x3863f0(0x25c));}async function qt(_0x33f2fe){const _0x436752=_0x46ea59;_0x33f2fe[_0x436752(0x2d3)]===void 0x0&&(console[_0x436752(0x1d4)]('complete\x20needs\x20--json-schema\x20<file>:\x20delegate-cli\x20complete\x20--json-schema\x20schema.json\x20\x22<prompt>\x22.'),process[_0x436752(0x2a2)](0x2));let _0x5216a9=ue(_0x33f2fe[_0x436752(0x2d3)],_0x436752(0x2ec)),_0x29af7a=(await I(_0x33f2fe[_0x436752(0x1df)],process[_0x436752(0x1a1)]))[_0x436752(0x292)]();_0x29af7a||(console[_0x436752(0x1d4)](_0x436752(0x1d5)),process['exit'](0x2));let {client:_0x5b43c0}=await f(_0x33f2fe);try{let _0x1400d6=await _0x254e8a(_0x5b43c0,{'prompt':_0x29af7a,'jsonSchema':_0x5216a9,'model':_0x33f2fe[_0x436752(0x31c)]||process.env.MODEL||_0x369e99,..._0x33f2fe[_0x436752(0x1d1)]!==void 0x0&&{'sessionId':_0x33f2fe['sessionId']}},void 0x0);l(_0x33f2fe,_0x1400d6,_0x509f55=>{const _0x13ea70=_0x436752;process[_0x13ea70(0x27c)][_0x13ea70(0x1c5)](JSON[_0x13ea70(0x2a1)](_0x509f55[_0x13ea70(0x303)],null,0x2)+'\x0a');});}catch(_0x328c0b){if(!_0x5f1e1a(_0x328c0b))throw _0x328c0b;console[_0x436752(0x1d4)](_0x328c0b[_0x436752(0x2d7)]),process[_0x436752(0x2a2)](0x1);}}function j(_0x36ce01){const _0x2ce8b3=_0x46ea59;process[_0x2ce8b3(0x27c)]['write'](_0x2ce8b3(0x229)+_0x36ce01[_0x2ce8b3(0x31c)]+'\x20('+_0x36ce01['model_version']+_0x2ce8b3(0x1a6)+_0x36ce01[_0x2ce8b3(0x1bc)]['total_tokens']+_0x2ce8b3(0x205));}function Jt(_0xcdd0c4){const _0x2832dc=_0x46ea59;j(_0xcdd0c4);for(let _0x3484ca of Object['keys'](_0xcdd0c4[_0x2832dc(0x211)])){let _0x2f00a1=_0xcdd0c4[_0x2832dc(0x211)][_0x3484ca],_0x1b1344=_0x2f00a1[_0x2832dc(0x206)]===_0x2832dc(0x1b3)?_0x2832dc(0x1be)+_0x2f00a1[_0x2832dc(0x1b3)][_0x2832dc(0x2e3)](0x2):_0x2f00a1['type']===_0x2832dc(0x290)?'choice\x20'+_0x2f00a1[_0x2832dc(0x290)]+_0x2832dc(0x29d)+_0x2f00a1[_0x2832dc(0x1e7)]['toFixed'](0x2)+')':_0x2832dc(0x2fe)+_0x2f00a1[_0x2832dc(0x1d9)]['toFixed'](0x2)+_0x2832dc(0x29d)+_0x2f00a1['confidence']['toFixed'](0x2)+')';process[_0x2832dc(0x27c)][_0x2832dc(0x1c5)]('\x20\x20'+_0x3484ca+':\x20'+_0x1b1344+'\x0a');}}function Wt(_0x1e292d){const _0x27a513=_0x46ea59;j(_0x1e292d),_0x1e292d[_0x27a513(0x1ad)][_0x27a513(0x2ea)]((_0x4a10d4,_0x1f4756)=>{const _0x54115c=_0x27a513;process['stdout']['write']('\x20\x20'+(_0x1f4756+0x1)+'.\x20'+_0x4a10d4['id']+'\x20\x20'+_0x4a10d4['score'][_0x54115c(0x2e3)](0x3)+_0x54115c(0x302)+_0x4a10d4[_0x54115c(0x1e1)]+')\x0a');});}function Gt(_0x25461e){const _0x5122ab=_0x46ea59;j(_0x25461e),process['stdout'][_0x5122ab(0x1c5)](_0x5122ab(0x1db)+_0x25461e[_0x5122ab(0x24e)]+'\x0a');for(let _0x12f334 of _0x25461e[_0x5122ab(0x1ad)])process[_0x5122ab(0x27c)][_0x5122ab(0x1c5)]('\x20\x20'+_0x12f334['id']+':\x20'+_0x12f334[_0x5122ab(0x2f8)]+_0x5122ab(0x29d)+_0x12f334[_0x5122ab(0x1e7)]['toFixed'](0x2)+')\x0a');}async function Kt(_0x3af854){const _0x44b713=_0x46ea59;let _0x1f9c4d=_0x3af854['prompt'][_0x44b713(0x292)]();_0x1f9c4d||(console[_0x44b713(0x1d4)](_0x44b713(0x24d)),process[_0x44b713(0x2a2)](0x2));let {client:_0x36e3a2}=await f(_0x3af854);try{let _0x210037=_0x1f9c4d==='-'?{'data':await zt(process[_0x44b713(0x1a1)])}:_0x1f9c4d;l(_0x3af854,await _0x15b210(_0x36e3a2,_0x210037,void 0x0),_0x237544=>{const _0x430eb7=_0x44b713;process['stdout']['write'](_0x237544[_0x430eb7(0x2f3)]+'\x0a');});}catch(_0x5a92cd){if(_0x3fe483(_0x5a92cd)&&(console[_0x44b713(0x1d4)](_0x5a92cd['message']),process['exit'](_0x5a92cd[_0x44b713(0x282)]===void 0x0?0x2:0x1)),typeof _0x5a92cd?.['code']!='string')throw _0x5a92cd;console['error'](_0x44b713(0x196)+_0x1f9c4d+'\x20('+_0x5a92cd['message']+').'),process[_0x44b713(0x2a2)](0x2);}}async function zt(_0x1e68c7){const _0x2cef53=_0x46ea59;let _0x17bad9=[];for await(let _0x5428d6 of _0x1e68c7)_0x17bad9['push'](Buffer[_0x2cef53(0x346)](_0x5428d6));return Buffer[_0x2cef53(0x26b)](_0x17bad9);}function _0x5968(_0x185d10,_0x37215b){_0x185d10=_0x185d10-0x193;const _0x4cb706=_0x4cb7();let _0x5968b4=_0x4cb706[_0x185d10];return _0x5968b4;}var Y=[_0x46ea59(0x264),_0x46ea59(0x314),'show',_0x46ea59(0x2a5),_0x46ea59(0x21c),'complete','accept',_0x46ea59(0x30c),'cancel','delete'],X={'list':'delegations\x20list\x20<backend-project-id>','pending':_0x46ea59(0x1b4),'show':_0x46ea59(0x1d6),'create':_0x46ea59(0x326),'claim':'delegations\x20claim\x20<delegation-id|delegate://delegation/…>','complete':_0x46ea59(0x2e2),'accept':_0x46ea59(0x199),'dismiss':_0x46ea59(0x25e),'cancel':_0x46ea59(0x1ca),'delete':_0x46ea59(0x348)};async function Vt(_0x539b6e){const _0x18364a=_0x46ea59;let [_0x18df85='',_0x3ed8b0='',..._0x1a0e97]=_0x539b6e[_0x18364a(0x242)];Y[_0x18364a(0x2e0)](_0x18df85)||(console[_0x18364a(0x1d4)]((_0x18df85?_0x18364a(0x30a)+_0x18df85+'.\x20':'')+_0x18364a(0x2c9)+Y[_0x18364a(0x313)](_0x18364a(0x241))+'.'),process[_0x18364a(0x2a2)](0x2));let _0x51c963=_0x18df85;_0x51c963!==_0x18364a(0x2a5)&&(_0x539b6e[_0x18364a(0x253)]!==void 0x0||_0x539b6e['contextSummary']!==void 0x0||_0x539b6e[_0x18364a(0x1d1)]!==void 0x0)&&(console[_0x18364a(0x1d4)](_0x18364a(0x1f7)),process['exit'](0x2));let _0x16ad02=(_0x51c963===_0x18364a(0x2a5)?_0x539b6e['operands'][_0x18364a(0x31d)](0x1):_0x1a0e97)['join']('\x20')['trim'](),_0x2cc81d=_0x51c963===_0x18364a(0x2a5)||_0x51c963===_0x18364a(0x2ec);(_0x51c963!==_0x18364a(0x2a5)&&!_0x3ed8b0||(_0x2cc81d?!_0x16ad02:_0x16ad02)||_0x51c963===_0x18364a(0x2a5)&&!_0x539b6e['sessionId'])&&(console[_0x18364a(0x1d4)](_0x18364a(0x2c3)+X[_0x51c963]),process['exit'](0x2));let _0x34b780=_0x2cc81d&&_0x16ad02==='-'?(await I('-',process[_0x18364a(0x1a1)]))[_0x18364a(0x292)]():_0x16ad02;_0x2cc81d&&!_0x34b780&&(console[_0x18364a(0x1d4)]('Usage:\x20delegate-cli\x20'+X[_0x51c963]+'\x20(stdin\x20was\x20empty)'),process[_0x18364a(0x2a2)](0x2));let {client:_0x1eca23}=await f(_0x539b6e);try{await Yt(_0x539b6e,_0x1eca23,_0x51c963,_0x3ed8b0,_0x34b780);}catch(_0x1b03a1){if(!_0x75966c(_0x1b03a1))throw _0x1b03a1;console[_0x18364a(0x1d4)](_0x1b03a1['message']),process['exit'](0x1);}}async function Yt(_0x20ba18,_0x5eb984,_0x397cce,_0x2714fe,_0x3af145){const _0x294917=_0x46ea59;switch(_0x397cce){case'list':l(_0x20ba18,await _0x24bd61(_0x5eb984,_0x2714fe),Xt);return;case _0x294917(0x314):l(_0x20ba18,await _0x23b50e(_0x5eb984,_0x2714fe),_0x17eccf=>{const _0x216aa7=_0x294917;_0x17eccf[_0x216aa7(0x230)]&&process[_0x216aa7(0x27c)][_0x216aa7(0x1c5)](_0x216aa7(0x1fb)+_0x17eccf[_0x216aa7(0x230)]['id']+'\x20('+_0x17eccf[_0x216aa7(0x230)]['status']+_0x216aa7(0x1ea)),_0x17eccf[_0x216aa7(0x1ff)][_0x216aa7(0x284)]===0x0&&process[_0x216aa7(0x2d6)][_0x216aa7(0x1c5)]('No\x20answers\x20awaiting\x20acceptance.\x0a');for(let _0x22dc82 of _0x17eccf['pendingResults'])process[_0x216aa7(0x27c)][_0x216aa7(0x1c5)]('\x0a'+_0x22dc82['id']+_0x216aa7(0x2e4)+(_0x22dc82[_0x216aa7(0x2ae)]??_0x216aa7(0x19a))+'\x20\x20'+(_0x22dc82[_0x216aa7(0x339)]??'')+'\x0a'+(_0x22dc82[_0x216aa7(0x263)]?.['content']??'')+'\x0a');_0x17eccf[_0x216aa7(0x1ff)][_0x216aa7(0x284)]>0x0&&process[_0x216aa7(0x2d6)][_0x216aa7(0x1c5)](_0x216aa7(0x1bb));});return;case _0x294917(0x194):l(_0x20ba18,await _0x180b0d(_0x5eb984,_0x2714fe),Q);return;case _0x294917(0x2a5):{let _0x45312b=await _0xbeee08(_0x5eb984,{'sessionId':_0x20ba18[_0x294917(0x1d1)],'task':_0x3af145,..._0x20ba18[_0x294917(0x214)]!==void 0x0&&{'contextSummary':_0x20ba18[_0x294917(0x214)]},..._0x20ba18['delegateTo']!==void 0x0&&{'recipient':_0x20ba18[_0x294917(0x253)]}});l(_0x20ba18,_0x45312b,_0x43b968=>{const _0xb294c7=_0x294917;_0x43b968[_0xb294c7(0x342)]?process[_0xb294c7(0x27c)][_0xb294c7(0x1c5)](_0xb294c7(0x202)+_0x43b968[_0xb294c7(0x1ae)]+_0xb294c7(0x25b)+_0x43b968['assignedUser'][_0xb294c7(0x234)]+'\x20<'+_0x43b968[_0xb294c7(0x342)]['email']+_0xb294c7(0x198)):process['stdout'][_0xb294c7(0x1c5)](_0xb294c7(0x30b)+_0x43b968['delegationId']+_0xb294c7(0x285)+_0x43b968[_0xb294c7(0x30e)]+'\x0a');});return;}case _0x294917(0x21c):{let _0x2dc2f6=await _0x3562f4(_0x5eb984,_0x2714fe);l(_0x20ba18,_0x2dc2f6,_0x2cacf6=>{const _0x28c706=_0x294917;Q(_0x2cacf6),process[_0x28c706(0x27c)][_0x28c706(0x1c5)](_0x28c706(0x2b6)+_0x2cacf6['sessionId']+'\x0a'),process[_0x28c706(0x2d6)][_0x28c706(0x1c5)](_0x28c706(0x2fd)+_0x2cacf6[_0x28c706(0x1d1)]+_0x28c706(0x2d9)+_0x2cacf6[_0x28c706(0x1ae)]+_0x28c706(0x23d));});return;}case _0x294917(0x2ec):{let {alreadyCompleted:_0x1941cc}=await _0x31396b(_0x5eb984,_0x2714fe,{'content':_0x3af145});l(_0x20ba18,{'delegationId':_0x2714fe,'alreadyCompleted':_0x1941cc},_0x7c18b=>{const _0xb1658c=_0x294917;process[_0xb1658c(0x27c)][_0xb1658c(0x1c5)]((_0x7c18b['alreadyCompleted']?_0xb1658c(0x29e):'Answered')+_0xb1658c(0x344)+_0x7c18b['delegationId']+'.\x0a');});return;}case _0x294917(0x209):{let _0x17682a=await _0x39bfe6(_0x5eb984,_0x2714fe);l(_0x20ba18,{'delegationId':_0x2714fe,..._0x17682a},_0x5c48cd=>{const _0x3cb67d=_0x294917;process[_0x3cb67d(0x27c)][_0x3cb67d(0x1c5)]((_0x5c48cd[_0x3cb67d(0x329)]?_0x3cb67d(0x245):'Accepted')+_0x3cb67d(0x344)+_0x5c48cd[_0x3cb67d(0x1ae)]+'.\x0a');});return;}default:{let _0x13c21b={'dismiss':_0x46ad1e,'cancel':_0x25518b,'delete':_0x53d1d5}[_0x397cce];await _0x13c21b(_0x5eb984,_0x2714fe);let _0x2e7d9d={'dismiss':'dismissed','cancel':_0x294917(0x275),'delete':_0x294917(0x1cb)}[_0x397cce];l(_0x20ba18,{'delegationId':_0x2714fe,[_0x2e7d9d]:!0x0},()=>{const _0x277466=_0x294917;process[_0x277466(0x27c)]['write'](''+_0x2e7d9d[0x0]['toUpperCase']()+_0x2e7d9d[_0x277466(0x31d)](0x1)+_0x277466(0x344)+_0x2714fe+'.\x0a');});}}}function Xt(_0x4b4cc5){const _0xd16bde=_0x46ea59;if(_0x4b4cc5[_0xd16bde(0x284)]===0x0){process[_0xd16bde(0x2d6)]['write'](_0xd16bde(0x316));return;}process[_0xd16bde(0x27c)][_0xd16bde(0x1c5)]('ID'[_0xd16bde(0x26d)](0x24)+'\x20\x20'+_0xd16bde(0x22b)[_0xd16bde(0x26d)](0x9)+'\x20\x20'+_0xd16bde(0x309)[_0xd16bde(0x26d)](0x18)+_0xd16bde(0x1e0));for(let _0x2c80c1 of _0x4b4cc5)process[_0xd16bde(0x27c)]['write'](_0x2c80c1['id'][_0xd16bde(0x26d)](0x24)+'\x20\x20'+_0x2c80c1['status'][_0xd16bde(0x26d)](0x9)+'\x20\x20'+(_0x2c80c1[_0xd16bde(0x2ae)]??'-')[_0xd16bde(0x26d)](0x18)+'\x20\x20'+(_0x2c80c1[_0xd16bde(0x339)]??'')+'\x0a');}function Q(_0x3de6ce){const _0x78658e=_0x46ea59;process[_0x78658e(0x27c)][_0x78658e(0x1c5)](_0x78658e(0x21a)+(_0x3de6ce['sourceUserEmail']??'-')+'\x0a'),_0x3de6ce[_0x78658e(0x260)]&&process[_0x78658e(0x27c)][_0x78658e(0x1c5)]('Session\x20\x20\x20\x20\x20\x20\x20'+_0x3de6ce[_0x78658e(0x260)]+'\x0a'),process[_0x78658e(0x27c)]['write']('Task\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x3de6ce['task']??'-')+'\x0a'),_0x3de6ce['contextSummary']&&process['stdout'][_0x78658e(0x1c5)]('\x0a'+_0x3de6ce[_0x78658e(0x214)]+'\x0a\x0a');}async function Qt(_0x4c8a1c){const _0x225b44=_0x46ea59;_0x4c8a1c[_0x225b44(0x1df)]['trim']()||(console[_0x225b44(0x1d4)]('Usage:\x20delegate-cli\x20org-users\x20<name\x20or\x20email\x20prefix>'),process[_0x225b44(0x2a2)](0x2));let {client:_0x59831e}=await f(_0x4c8a1c),_0x58cdd3;try{_0x58cdd3=await _0x3b39b8(_0x59831e,_0x4c8a1c[_0x225b44(0x1df)]);}catch(_0x38f705){if(!_0x75966c(_0x38f705))throw _0x38f705;console[_0x225b44(0x1d4)](_0x38f705['message']),process[_0x225b44(0x2a2)](0x1);}l(_0x4c8a1c,_0x58cdd3,_0x69a02c=>{const _0x1d19a9=_0x225b44;_0x69a02c[_0x1d19a9(0x284)]===0x0&&process['stderr']['write']('No\x20one\x20matches\x20\x22'+_0x4c8a1c[_0x1d19a9(0x1df)][_0x1d19a9(0x292)]()+_0x1d19a9(0x257));for(let _0x598525 of _0x69a02c)process['stdout'][_0x1d19a9(0x1c5)](_0x598525[_0x1d19a9(0x2c8)]['padEnd'](0x20)+'\x20\x20'+_0x598525[_0x1d19a9(0x234)]+'\x0a');});}async function Zt(_0x4afec9){const _0x2ec764=_0x46ea59;_0x4afec9[_0x2ec764(0x333)]===_0x2ec764(0x29c)&&(console[_0x2ec764(0x1d4)]('--env\x20localhost\x20has\x20no\x20OAuth\x20flow;\x20pick\x20alpha,\x20staging,\x20or\x20production.'),process['exit'](0x2));let _0x96b08d=$(_0x27961c()),_0x214fc0=_0x4afec9[_0x2ec764(0x2ff)];if(_0x4afec9[_0x2ec764(0x333)]){let _0x3f942c=_0x4afec9[_0x2ec764(0x333)];await _0x4bcfe5({'env':_0x3f942c,'tenant':_0x4afec9[_0x2ec764(0x2de)]??C(_0x96b08d,_0x92253[_0x3f942c]),'skipEnvCheck':_0x214fc0});return;}let _0x405496=_0x4afec9[_0x2ec764(0x1d0)]??ce();if(_0x405496){await _0x4bcfe5({'baseUrl':_0x405496,'tenant':_0x4afec9[_0x2ec764(0x2de)]??C(_0x96b08d,_0x405496),'skipEnvCheck':_0x214fc0});return;}if(_0x96b08d?.[_0x2ec764(0x216)]){await _0x4bcfe5({'baseUrl':_0x96b08d[_0x2ec764(0x216)],'tenant':_0x4afec9[_0x2ec764(0x2de)]??_0x96b08d[_0x2ec764(0x20d)],'skipEnvCheck':_0x214fc0});return;}console[_0x2ec764(0x1d4)](_0x2ec764(0x2d8)),process[_0x2ec764(0x2a2)](0x2);}function C(_0x287e9d,_0x1e8d19){const _0x2a6fdb=_0x46ea59;return _0x287e9d?.[_0x2a6fdb(0x216)]&&en(_0x287e9d['baseUrl'],_0x1e8d19)?_0x287e9d[_0x2a6fdb(0x20d)]:void 0x0;}function en(_0x3585f8,_0x5a4175){const _0x160ddd=_0x46ea59;try{return new URL(_0x3585f8)[_0x160ddd(0x236)]===new URL(_0x5a4175)[_0x160ddd(0x236)];}catch{return!0x1;}}async function tn(_0x48155a){const _0x3758c4=_0x46ea59;O()&&(console['error'](_0x3758c4(0x2cc)),process[_0x3758c4(0x2a2)](0x2));let _0x5bb943=await _0x12ac0a();if(_0x5bb943||(console[_0x3758c4(0x1d4)](nn()),process[_0x3758c4(0x2a2)](0x2)),_0x48155a[_0x3758c4(0x292)]()){let _0x1598ba=await _0x120b0c(_0x5bb943,_0x48155a);_0x11b036(_0x1598ba)||(console[_0x3758c4(0x1d4)](_0x3758c4(0x2e6)+_0x27961c()+_0x3758c4(0x223)+_0x5bb943[_0x3758c4(0x20d)]+'.'),process[_0x3758c4(0x2a2)](0x1)),console[_0x3758c4(0x24f)](_0x3758c4(0x1f1)+_0x1598ba[_0x3758c4(0x20d)]+'\x20('+_0x1598ba[_0x3758c4(0x31b)]+_0x3758c4(0x2b2)+_0x27961c());return;}on(await _0x1c8b99(_0x5bb943),_0x5bb943);}function nn(){const _0x1a6d57=_0x46ea59;if(_0x17238c[_0x1a6d57(0x1e9)](_0x27961c()))return _0x1a6d57(0x269);let _0x33d14a=L();return $(_0x33d14a)?_0x1a6d57(0x2e5)+_0x33d14a+_0x1a6d57(0x22f):_0x1a6d57(0x27d);}function on(_0x55c003,_0x315edd){const _0xb68e85=_0x46ea59;let _0x66aaf=_0x55c003[_0xb68e85(0x24b)](_0x37e32d=>_0x37e32d['id']===_0x315edd[_0xb68e85(0x31b)]?'*\x20'+_0x37e32d[_0xb68e85(0x19b)]+'\x20(current)':'\x20\x20'+_0x37e32d['name']);process[_0xb68e85(0x27c)][_0xb68e85(0x1c5)](_0xb68e85(0x289)+(_0x315edd[_0xb68e85(0x32a)]??_0x315edd[_0xb68e85(0x2cd)])+':\x0a'+_0x66aaf[_0xb68e85(0x313)]('\x0a')+'\x0a'),_0x55c003[_0xb68e85(0x284)]>0x1&&process[_0xb68e85(0x27c)][_0xb68e85(0x1c5)](_0xb68e85(0x28c));}function sn(_0xe53e24){const _0x142de6=_0x46ea59;return _0xe53e24?.['response']?.[_0x142de6(0x282)]===0x191||/401/[_0x142de6(0x249)](String(_0xe53e24?.[_0x142de6(0x2d7)]??''));}var d={'lastType':null,'quiet':!0x1},rn=_0x1d93e5=>{const _0x1ae198=_0x46ea59;switch(_0x1d93e5[_0x1ae198(0x206)]){case _0x1ae198(0x315):_0x1d93e5['sessionId']&&_0x1d93e5[_0x1ae198(0x1d1)]!==d[_0x1ae198(0x1d1)]&&(process[_0x1ae198(0x2d6)][_0x1ae198(0x1c5)](_0x1ae198(0x26a)+_0x1d93e5['sessionId']+_0x1ae198(0x34c)+_0x1d93e5[_0x1ae198(0x1d1)]+')\x0a'),d[_0x1ae198(0x1d1)]=_0x1d93e5[_0x1ae198(0x1d1)]);break;case _0x1ae198(0x1fe):_0x1d93e5[_0x1ae198(0x2db)]&&_0x1d93e5['turnId']!==d[_0x1ae198(0x2db)]&&(d[_0x1ae198(0x2bc)]!==null&&process['stderr'][_0x1ae198(0x1c5)]('\x0a'),process[_0x1ae198(0x2d6)]['write'](_0x1ae198(0x349)+_0x1d93e5[_0x1ae198(0x2db)]+'\x20(cancel\x20with:\x20delegate-cli\x20sessions\x20cancel\x20'+_0x1d93e5[_0x1ae198(0x1d1)]+'\x20--turn\x20'+_0x1d93e5[_0x1ae198(0x2db)]+')\x0a'),d['turnId']=_0x1d93e5[_0x1ae198(0x2db)],d[_0x1ae198(0x2bc)]=_0x1ae198(0x1fe));break;case'thinking':_0x1d93e5['content']&&!d[_0x1ae198(0x1fc)]&&(d[_0x1ae198(0x2bc)]!==_0x1ae198(0x224)&&process['stderr'][_0x1ae198(0x1c5)]('\x0a🤔\x20'),process['stderr']['write'](_0x1d93e5[_0x1ae198(0x2a7)]),d['lastType']=_0x1ae198(0x224));break;case'tool_call':d[_0x1ae198(0x2bc)]!==null&&process[_0x1ae198(0x2d6)][_0x1ae198(0x1c5)]('\x0a'),process[_0x1ae198(0x2d6)][_0x1ae198(0x1c5)](_0x1ae198(0x1cd)+(_0x1d93e5[_0x1ae198(0x227)]??'tool')+'\x0a'),d[_0x1ae198(0x2bc)]=_0x1ae198(0x278);break;case'message':_0x1d93e5['content']&&(d[_0x1ae198(0x2bc)]!==_0x1ae198(0x2d7)&&d[_0x1ae198(0x2bc)]!==null&&process[_0x1ae198(0x27c)][_0x1ae198(0x1c5)]('\x0a'),process[_0x1ae198(0x27c)][_0x1ae198(0x1c5)](_0x1d93e5['content']),d[_0x1ae198(0x2bc)]='message');break;case _0x1ae198(0x1d4):d['lastType']!==null&&process['stderr'][_0x1ae198(0x1c5)]('\x0a'),process['stderr'][_0x1ae198(0x1c5)]('✗\x20'+(_0x1d93e5[_0x1ae198(0x1d4)]??'error')+'\x0a'),d[_0x1ae198(0x2bc)]=_0x1ae198(0x1d4);break;case'done':(d[_0x1ae198(0x2bc)]===_0x1ae198(0x2d7)||d[_0x1ae198(0x2bc)]===_0x1ae198(0x224))&&process[_0x1ae198(0x27c)]['write']('\x0a'),process['stderr'][_0x1ae198(0x1c5)](_0x1ae198(0x217)),d[_0x1ae198(0x2bc)]=_0x1ae198(0x2f7);break;}};function Z(_0x1846cf,_0x3b8ebd,_0x2c4d7d){const _0x3abf8e=_0x46ea59;let _0x4f2382=_0x1846cf[_0x3abf8e(0x31c)]||process.env.MODEL;return{'backendUrl':_0x2c4d7d,'auth':_0x3b8ebd,'enableComputerUse':!_0x1846cf['headless']&&!_0x1846cf[_0x3abf8e(0x1e6)],'autoSpawnInterop':!_0x1846cf['headless'],'enableConnections':!_0x1846cf['noConnections'],'enableSecurity':!_0x1846cf[_0x3abf8e(0x2be)],'keepInteropAlive':_0x1846cf[_0x3abf8e(0x299)],..._0x1846cf['noMemory']?{'enableMemory':!0x1}:{},..._0x1846cf['preloadSkills'][_0x3abf8e(0x284)]>0x0?{'preloadSkills':_0x1846cf[_0x3abf8e(0x226)]}:{},..._0x4f2382?{'model':_0x4f2382}:{},..._0x1846cf[_0x3abf8e(0x1bf)]?{'projectId':_0x1846cf['projectId']}:{},..._0x1846cf['workingDirectory']?{'workingDirectory':_0x1846cf[_0x3abf8e(0x25a)]}:{},..._0x1846cf['bundledSkillsPath']?{'bundledSkillsPath':_0x1846cf[_0x3abf8e(0x2fb)]}:{},..._0x1846cf[_0x3abf8e(0x233)]?{'effort':_0x1846cf['effort']}:{},..._0x1846cf['sessionId']?{'sessionId':_0x1846cf['sessionId']}:{},..._0x1846cf[_0x3abf8e(0x1e3)]?{'verbose':!0x0}:{}};}async function an(_0x23a657){const _0x4ea5b5=_0x46ea59;let _0x296c10=_0x23a657[_0x4ea5b5(0x345)]!=='text',_0x383fa2=_0x23a657[_0x4ea5b5(0x2d3)]===void 0x0?null:ue(_0x23a657[_0x4ea5b5(0x2d3)],_0x4ea5b5(0x283)),_0x506691=!_0x296c10&&!_0x383fa2&&!_0x23a657[_0x4ea5b5(0x2c1)]&&_0x23a657[_0x4ea5b5(0x1df)]!=='-'&&!!process[_0x4ea5b5(0x1a1)][_0x4ea5b5(0x21d)]&&!!process[_0x4ea5b5(0x27c)][_0x4ea5b5(0x21d)],_0x55b871=_0x506691?_0x23a657['prompt'][_0x4ea5b5(0x292)]():await I(_0x23a657[_0x4ea5b5(0x1df)],process[_0x4ea5b5(0x1a1)]);if(!_0x506691&&!_0x55b871&&(console[_0x4ea5b5(0x1d4)]('Missing\x20prompt.\x20Pass\x20it\x20as\x20an\x20argument,\x20pipe\x20it\x20via\x20stdin,\x20or\x20run\x20`delegate-cli\x20--help`.'),process['exit'](0x2)),!_0x296c10){await ee(_0x23a657,_0x55b871,_0x506691,null,_0x383fa2);return;}let _0x351792=!0x1,_0x414878=_0x59ecab=>{const _0x2fca6c=_0x4ea5b5;_0x351792=!0x0,S(_0x4e23bf(_0x59ecab)),(_0x59ecab['isError']||_0x59ecab[_0x2fca6c(0x2af)])&&(process['exitCode']=0x1);},_0x4c3f7c=Date[_0x4ea5b5(0x203)]();try{await ee(_0x23a657,_0x55b871,!0x1,_0x414878,_0x383fa2);}catch(_0x54d796){if(_0x351792)throw _0x54d796;process[_0x4ea5b5(0x2d6)][_0x4ea5b5(0x1c5)]((_0x54d796 instanceof Error?_0x54d796[_0x4ea5b5(0x26c)]??_0x54d796['message']:String(_0x54d796))+'\x0a'),_0x414878(new _0x1782cf(_0x4c3f7c)[_0x4ea5b5(0x2b9)]({'endedAtMs':Date[_0x4ea5b5(0x203)](),'usage':[],'error':_0x54d796}));}}async function ee(_0xf9badb,_0x359af8,_0x52a97c,_0x2c424b,_0x1d6acd){const _0x973a48=_0x46ea59;d={'lastType':null,'quiet':_0xf9badb[_0x973a48(0x1fc)]};let _0x1432c9=new Set(),_0x11be93=_0x57ead6=>{const _0x556852=_0x973a48;(!_0x2c424b||_0x57ead6[_0x556852(0x206)]===_0x556852(0x315)||_0x57ead6[_0x556852(0x206)]===_0x556852(0x1fe))&&rn(_0x57ead6);for(let _0x32b867 of _0x1432c9)_0x32b867(_0x57ead6);},_0x254369=await P(),_0x3791c6=new _0x4359d1();_0x3791c6[_0x973a48(0x213)](_0x11be93);let _0x4f1735=_0xb1d4f1(_0xf9badb[_0x973a48(0x333)],_0x254369,_0xf9badb[_0x973a48(0x252)]);F(_0xf9badb['env'],_0xf9badb['backendUrl'],_0x4f1735);let _0xc3ac97=Z(_0xf9badb,_0x254369,_0x4f1735),_0x432533=!0x1,_0x2ca591=!0x1,_0x1896a2,_0x279000=()=>_0x1896a2??=_0x3791c6['destroy'](),_0x370455=()=>{const _0x2a2981=_0x973a48;_0x2ca591&&process[_0x2a2981(0x2a2)](0x82),_0x2ca591=!0x0,process[_0x2a2981(0x2d6)][_0x2a2981(0x1c5)](_0x2a2981(0x2b5)),_0x432533&&_0x3791c6[_0x2a2981(0x27f)]()[_0x2a2981(0x2c6)](_0x31d613=>console[_0x2a2981(0x1d4)](_0x31d613))[_0x2a2981(0x244)](_0x279000)[_0x2a2981(0x244)](()=>process[_0x2a2981(0x2a2)](0x82),_0x17d673=>{const _0x588581=_0x2a2981;console[_0x588581(0x1d4)](_0x17d673),process[_0x588581(0x2a2)](0x82);});};process['on']('SIGINT',_0x370455);let _0x2ccefe=_0xf9badb[_0x973a48(0x33a)],_0x237f25=async _0x52d382=>{const _0x41ff35=_0x973a48;let _0x14742f=_0x2ccefe;_0x2ccefe=[];let _0x147c18=()=>_0x3791c6[_0x41ff35(0x271)](_0x52d382,{'attachments':_0x14742f});try{return await _0x147c18();}catch(_0x4c2d87){if(_0x2ca591||!sn(_0x4c2d87)||!process[_0x41ff35(0x1a1)][_0x41ff35(0x21d)]||_0xf9badb['env']===_0x41ff35(0x29c)||!(_0xf9badb[_0x41ff35(0x333)]||_0x254369['baseUrl']))throw _0x4c2d87;process[_0x41ff35(0x2d6)]['write'](_0x41ff35(0x28f));let _0x5948d5=_0x3791c6['getSessionId']()??_0xf9badb[_0x41ff35(0x1d1)],_0x1d7004=await _0x4bcfe5(_0xf9badb['env']?{'env':_0xf9badb[_0x41ff35(0x333)],'tenant':C(_0x254369,_0x92253[_0xf9badb[_0x41ff35(0x333)]]),'skipEnvCheck':!0x0}:{'baseUrl':_0x254369[_0x41ff35(0x216)],'tenant':_0x254369[_0x41ff35(0x20d)],'skipEnvCheck':!0x0}),_0x4239b9={'text':'','failed':!0x1,'sessionId':_0x5948d5};return _0x2ca591||(_0x432533=!0x1,await _0x279000(),_0x2ca591)?_0x4239b9:(_0x3791c6=new _0x4359d1(),_0x1896a2=void 0x0,_0x3791c6[_0x41ff35(0x213)](_0x11be93),_0x254369=_0x1d7004,await _0x3791c6[_0x41ff35(0x1e8)]({...Z(_0xf9badb,_0x254369,_0x4f1735),..._0x5948d5?{'sessionId':_0x5948d5}:{}}),_0x432533=!0x0,_0x2ca591?_0x4239b9:_0x147c18());}};try{if(await _0x3791c6[_0x973a48(0x1e8)](_0xc3ac97),_0x432533=!0x0,_0x2ca591)return;if(_0x52a97c)await dn({'prompt':_0x359af8,'sendMessage':_0x237f25,'onSigint':_0x370455});else{if(_0x2c424b||_0x1d6acd){let _0x40312c=_0xf9badb[_0x973a48(0x345)]===_0x973a48(0x312)?_0x43ce6b=>S(_0x425dbf(_0x43ce6b)):()=>{},_0x126ed6=await _0x30d59d({'onEvent':_0x28cb1c=>(_0x1432c9[_0x973a48(0x294)](_0x28cb1c),()=>{const _0x98d35e=_0x973a48;_0x1432c9[_0x98d35e(0x2d5)](_0x28cb1c);}),'sendMessage':_0x27357e=>_0x237f25(_0x27357e),'getSessionId':()=>_0x3791c6[_0x973a48(0x337)](),'getTurnUsageHistory':_0x45bb34=>_0x3791c6[_0x973a48(0x1b2)](_0x45bb34),'complete':_0x1fdc9b=>_0x3791c6['complete'](_0x1fdc9b)},_0x359af8,void 0x0,_0x40312c,_0x1d6acd?{'outputSchema':_0x1d6acd}:void 0x0);_0x2c424b?_0x2c424b(_0x126ed6):ln(_0x126ed6);}else await _0x237f25(_0x359af8);}}catch(_0x50fa1c){if(!_0x2ca591)throw _0x50fa1c;}finally{try{await _0x279000();}finally{process[_0x973a48(0x210)](_0x973a48(0x231),_0x370455),_0x2ca591&&(process[_0x973a48(0x2c0)]=0x82);}}}function ln(_0x280294){const _0xc120d4=_0x46ea59;_0x280294[_0xc120d4(0x2af)]?(console[_0xc120d4(0x1d4)](_0xc120d4(0x318)+_0x280294[_0xc120d4(0x2af)]['message']),process[_0xc120d4(0x2c0)]=0x1):_0x280294[_0xc120d4(0x1da)]?(console[_0xc120d4(0x1d4)](_0xc120d4(0x28b)+_0x280294['error']+').'),process[_0xc120d4(0x2c0)]=0x1):process[_0xc120d4(0x27c)][_0xc120d4(0x1c5)](JSON[_0xc120d4(0x2a1)](_0x280294[_0xc120d4(0x303)],null,0x2)+'\x0a');}function cn(_0x3bb014,_0x3e01a9){const _0x4a1913=_0x46ea59;let _0x1707ff=process['stdout'][_0x4a1913(0x1c5)][_0x4a1913(0x1c4)](process[_0x4a1913(0x27c)]),_0x28c0c9=!0x1;return process[_0x4a1913(0x27c)][_0x4a1913(0x1c5)]=(..._0x24a1b2)=>{const _0x5739a6=_0x4a1913;if(!_0x28c0c9)return _0x1707ff(..._0x24a1b2);_0x5b1856(_0x3e01a9,0x0),_0x36ea70(_0x3e01a9,0x0);let _0x1f6d14=_0x1707ff(..._0x24a1b2);return _0x3bb014[_0x5739a6(0x1df)](!0x0),_0x1f6d14;},{'show':()=>{const _0x541b9a=_0x4a1913;_0x28c0c9=!0x0,_0x3bb014[_0x541b9a(0x1df)]();},'hide':()=>{_0x28c0c9=!0x1;},'restore':()=>{const _0xef3763=_0x4a1913;_0x28c0c9=!0x1,process['stdout'][_0xef3763(0x1c5)]=_0x1707ff;}};}async function dn({prompt:_0x4f7c77,sendMessage:_0x59c707,onSigint:_0x5e0411}){const _0xc8cd88=_0x46ea59;let _0x5c4d33=_0x5118ff({'input':process[_0xc8cd88(0x1a1)],'output':process[_0xc8cd88(0x2d6)],'terminal':!0x0,'prompt':_0xc8cd88(0x1af)}),_0x434d3b=cn(_0x5c4d33,process['stderr']),_0x4e9cef=_0x5c4d33[Symbol[_0xc8cd88(0x2bf)]](),_0x5cb28d=!0x1;_0x5c4d33[_0xc8cd88(0x2b1)]('close',()=>{const _0x2eda07=_0xc8cd88;_0x5cb28d=!0x0,_0x434d3b[_0x2eda07(0x258)]();});let _0xbafb0b=!0x1,_0x3c2802=()=>{const _0xa8732a=_0xc8cd88;_0xbafb0b=!0x0,_0x5c4d33[_0xa8732a(0x1a9)](),_0x5e0411();};_0x5c4d33['on'](_0xc8cd88(0x231),_0x3c2802),process[_0xc8cd88(0x2d6)][_0xc8cd88(0x1c5)](_0xc8cd88(0x1f4));try{if(_0x4f7c77&&await _0x59c707(_0x4f7c77),_0xbafb0b)return;_0x5cb28d||_0x434d3b[_0xc8cd88(0x194)]();for await(let _0x478bc2 of _0x4e9cef){if(_0x434d3b[_0xc8cd88(0x258)](),_0xbafb0b)break;let _0x36462d=_0x478bc2[_0xc8cd88(0x292)]();if(_0x36462d==='/exit')break;_0x36462d&&await _0x59c707(_0x36462d),_0x5cb28d||_0x434d3b['show']();}}finally{_0x434d3b[_0xc8cd88(0x2f1)](),_0x5c4d33[_0xc8cd88(0x210)](_0xc8cd88(0x231),_0x3c2802),_0x5c4d33['close']();}}async function un(){const _0x1cbf1b=_0x46ea59;let _0x37aad6=ft(process[_0x1cbf1b(0x301)][_0x1cbf1b(0x31d)](0x2));if(_0x37aad6['outputFormat']===_0x1cbf1b(0x2f3)){await te(_0x37aad6);return;}let _0x2a6316=gt();try{await te(_0x37aad6);}finally{_0x2a6316();}}async function te(_0x2036c7){const _0x5f1583=_0x46ea59;if(_0x2036c7[_0x5f1583(0x31a)]){ht();return;}if(_0x2036c7[_0x5f1583(0x1a7)]){console[_0x5f1583(0x24f)](wt());return;}if(_0x2036c7[_0x5f1583(0x311)]===_0x5f1583(0x1cf)){await Zt(_0x2036c7);return;}if(_0x2036c7[_0x5f1583(0x311)]==='tenant'){await tn(_0x2036c7[_0x5f1583(0x1df)]);return;}if(_0x2036c7[_0x5f1583(0x311)]===_0x5f1583(0x305)){await bt();return;}if(_0x2036c7[_0x5f1583(0x311)]===_0x5f1583(0x204)){await vt(_0x2036c7);return;}if(_0x2036c7['subcommand']==='models'){await $t(_0x2036c7);return;}if(_0x2036c7['subcommand']===_0x5f1583(0x2cb)){await Rt(_0x2036c7);return;}if(_0x2036c7[_0x5f1583(0x311)]==='sessions'){await xt(_0x2036c7);return;}if(_0x2036c7['subcommand']===_0x5f1583(0x1bc)){await Pt(_0x2036c7);return;}if(_0x2036c7[_0x5f1583(0x311)]===_0x5f1583(0x322)||_0x2036c7[_0x5f1583(0x311)]===_0x5f1583(0x1f3)||_0x2036c7['subcommand']===_0x5f1583(0x1c3)){await Bt(_0x2036c7,_0x2036c7['subcommand']);return;}if(_0x2036c7[_0x5f1583(0x311)]==='complete'){await qt(_0x2036c7);return;}if(_0x2036c7['subcommand']===_0x5f1583(0x1c7)){await Kt(_0x2036c7);return;}if(_0x2036c7['subcommand']===_0x5f1583(0x340)){await Vt(_0x2036c7);return;}if(_0x2036c7[_0x5f1583(0x311)]==='org-users'){await Qt(_0x2036c7);return;}if(_0x2036c7[_0x5f1583(0x311)]===_0x5f1583(0x300)){await _0x72b9d5(_0x2036c7['prompt'],{'runnerUrl':_0x2036c7[_0x5f1583(0x1f5)],'backendUrl':_0x2036c7['backendUrl'],'interopPath':_0x2036c7['interopPath'],'workerId':_0x2036c7[_0x5f1583(0x207)]});return;}if(_0x2036c7[_0x5f1583(0x21b)]){await It();return;}await an(_0x2036c7);}var pn=process.env.NODE_ENV===_0x46ea59(0x249)||!!process.env.JEST_WORKER_ID;pn||un()['catch'](_0x2e9d1e=>{const _0x34b517=_0x46ea59;console[_0x34b517(0x1d4)](_0x2e9d1e[_0x34b517(0x26c)]||_0x2e9d1e[_0x34b517(0x2d7)]||_0x2e9d1e),process[_0x34b517(0x2a2)](0x1);});export{mt as CARTOGRAPHER_SKILLS,G as EFFORT_TIERS,yt as IMPLICIT_STDIN_IDLE_MS,Z as buildInitOptions,un as main,ft as parseArgs,wt as readCliVersion,I as resolvePrompt,gt as routeStdoutToStderr,l as writeCommandResult};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uipath/delegate-cli",
3
- "version": "1.203.0-preview.20261005112239",
3
+ "version": "1.204.0-preview.20261005123254",
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.203.0-preview.20261005112239"
25
+ "@uipath/delegate-sdk": "1.204.0-preview.20261005123254"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@types/node": "^22.0.0",