@uipath/agent-tool 1.206.0-preview.296 → 1.206.0-preview.298

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.
@@ -3423,6 +3423,23 @@ async function readAttachmentSpecs(specs) {
3423
3423
  };
3424
3424
  }));
3425
3425
  }
3426
+ // ../common/src/auth-challenge.ts
3427
+ var TOKEN_SHAPED = /\beyJ[A-Za-z0-9_-]{6,}\.[A-Za-z0-9_-]+(?:\.[A-Za-z0-9_-]*)?|\bBearer\s+[A-Za-z0-9._~+/=-]{8,}/gi;
3428
+ function redactTokens(text) {
3429
+ return text.replace(TOKEN_SHAPED, "[REDACTED]");
3430
+ }
3431
+ var MAX_CHALLENGE_DESCRIPTION = 200;
3432
+ function parseAuthChallenge(header) {
3433
+ if (!header)
3434
+ return {};
3435
+ const code = /\berror="([^"]*)"/.exec(header)?.[1]?.trim();
3436
+ const raw = /\berror_description="([^"]*)"/.exec(header)?.[1]?.trim();
3437
+ const description = raw ? redactTokens(raw).slice(0, MAX_CHALLENGE_DESCRIPTION) : undefined;
3438
+ return {
3439
+ error: code || undefined,
3440
+ description: description || undefined
3441
+ };
3442
+ }
3426
3443
  // ../common/src/error-instructions.ts
3427
3444
  function extractHttpStatus(err) {
3428
3445
  if (!err || typeof err !== "object")
@@ -3513,6 +3530,17 @@ var RESULTS = {
3513
3530
 
3514
3531
  // ../common/src/classified-failure.ts
3515
3532
  var MAX_QUOTED_BODY_CHARS = 200;
3533
+ async function classifiedFailure(message, error) {
3534
+ const details = await extractErrorDetails(error);
3535
+ return {
3536
+ Result: details.result,
3537
+ ErrorCode: details.errorCode,
3538
+ Message: message,
3539
+ Instructions: details.message,
3540
+ Retry: details.retry,
3541
+ ...details.context ? { Context: details.context } : {}
3542
+ };
3543
+ }
3516
3544
  async function authContextFailure(error, sessionInstructions) {
3517
3545
  const details = await extractErrorDetails(error);
3518
3546
  const missingIdentity = hasIdentityInstructionContext(error);
@@ -6832,6 +6860,6 @@ function unsupportedSolutionProjectType(projectType) {
6832
6860
  var shippedKeysSlot = singleton("ShipSucceededDedupeKeys");
6833
6861
  // ../common/src/tool-provider.ts
6834
6862
  var factorySlot = singleton("PackagerFactoryProvider");
6835
- export { catchError, extractErrorDetails, extractErrorMessage, extractErrorMessageSync, appendOption, ATTACHMENT_UPLOAD_INSTRUCTIONS, parseAttachmentSpec, readAttachmentSpecs, RESULTS, authContextFailure, summarizePlatformBody, Command, logger, OutputFormatter, processContext, isGuid, mimeTypeForFileName, parseBoundedInt, getSdkUserAgentToken, addSdkUserAgentHeader, installSdkUserAgentHeader, quoteForShell, unsupportedSolutionProjectType };
6863
+ export { catchError, extractErrorDetails, extractErrorMessage, extractErrorMessageSync, appendOption, ATTACHMENT_UPLOAD_INSTRUCTIONS, parseAttachmentSpec, readAttachmentSpecs, redactTokens, parseAuthChallenge, RESULTS, classifiedFailure, authContextFailure, summarizePlatformBody, Command, logger, OutputFormatter, processContext, isGuid, mimeTypeForFileName, parseBoundedInt, getSdkUserAgentToken, addSdkUserAgentHeader, installSdkUserAgentHeader, quoteForShell, unsupportedSolutionProjectType };
6836
6864
 
6837
- //# debugId=3328C65B1C03516964756E2164756E21
6865
+ //# debugId=DE50ED1E551B672764756E2164756E21
@@ -1,15 +1,17 @@
1
1
  import {
2
2
  catchError,
3
+ redactTokens,
4
+ parseAuthChallenge,
3
5
  RESULTS,
4
6
  summarizePlatformBody,
5
7
  logger,
6
8
  getSdkUserAgentToken,
7
9
  addSdkUserAgentHeader,
8
10
  installSdkUserAgentHeader
9
- } from "./packager-tool-21r3phhc.js";
11
+ } from "./packager-tool-dy6gcgks.js";
10
12
  import {
11
13
  readUipxFile
12
- } from "./packager-tool-4j09ztk2.js";
14
+ } from "./packager-tool-3t6d1zdz.js";
13
15
  import {
14
16
  zipSync
15
17
  } from "./packager-tool-wbksf242.js";
@@ -502,7 +504,7 @@ var package_default = {
502
504
  name: "@uipath/solution-sdk",
503
505
  author: "UiPath",
504
506
  license: "SEE LICENSE IN LICENSE.txt",
505
- version: "1.206.0-preview.296",
507
+ version: "1.206.0-preview.298",
506
508
  repository: {
507
509
  type: "git",
508
510
  url: "https://github.com/UiPath/cli.git",
@@ -1214,22 +1216,6 @@ function requestPath(url) {
1214
1216
  const [, parsed] = catchError(() => new URL(url));
1215
1217
  return parsed ? `${parsed.pathname}${parsed.search}` : url;
1216
1218
  }
1217
- var TOKEN_SHAPED = /\beyJ[A-Za-z0-9_-]{6,}\.[A-Za-z0-9_-]+(?:\.[A-Za-z0-9_-]*)?|\bBearer\s+[A-Za-z0-9._~+/=-]{8,}/gi;
1218
- function redactTokens(text) {
1219
- return text.replace(TOKEN_SHAPED, "[REDACTED]");
1220
- }
1221
- var MAX_CHALLENGE_DESCRIPTION = 200;
1222
- function parseAuthChallenge(header) {
1223
- if (!header)
1224
- return {};
1225
- const code = /\berror="([^"]*)"/.exec(header)?.[1]?.trim();
1226
- const raw = /\berror_description="([^"]*)"/.exec(header)?.[1]?.trim();
1227
- const description = raw ? redactTokens(raw).slice(0, MAX_CHALLENGE_DESCRIPTION) : undefined;
1228
- return {
1229
- error: code || undefined,
1230
- description: description || undefined
1231
- };
1232
- }
1233
1219
  function summarizeAuthRefusalBody(body) {
1234
1220
  return summarizePlatformBody(redactTokens(body));
1235
1221
  }
@@ -1431,4 +1417,4 @@ async function uploadOrOverwriteSolution2(config, organizationName, fileBufferOr
1431
1417
  }
1432
1418
  export { StudioWebIncompatibleProjectError2, finalizeZip642, UipignoreExcludesProjectError2, bundleSolution2, isSolutionUploadHttpError2, buildSolutionUploadFailureOutput2, uploadOrOverwriteSolution2 };
1433
1419
 
1434
- //# debugId=853735253971B24864756E2164756E21
1420
+ //# debugId=8DF2AA023DC6FBE864756E2164756E21
@@ -1,8 +1,8 @@
1
1
  import {
2
- parseJWT,
3
- getLoginStatusAsync,
4
- getAuthContext
5
- } from "./packager-tool-qr8dtv3r.js";
2
+ parseJWT2,
3
+ getLoginStatusAsync2,
4
+ getAuthContext2
5
+ } from "./packager-tool-9xrkfzn1.js";
6
6
  import {
7
7
  getFileSystem
8
8
  } from "./packager-tool-0ajs8pnk.js";
@@ -13,8 +13,12 @@ import {
13
13
  extractErrorMessageSync,
14
14
  appendOption,
15
15
  ATTACHMENT_UPLOAD_INSTRUCTIONS,
16
+ redactTokens,
17
+ parseAuthChallenge,
16
18
  RESULTS,
19
+ classifiedFailure,
17
20
  authContextFailure,
21
+ summarizePlatformBody,
18
22
  logger,
19
23
  OutputFormatter,
20
24
  processContext,
@@ -22,16 +26,16 @@ import {
22
26
  getSdkUserAgentToken,
23
27
  addSdkUserAgentHeader,
24
28
  installSdkUserAgentHeader
25
- } from "./packager-tool-21r3phhc.js";
29
+ } from "./packager-tool-dy6gcgks.js";
26
30
  import {
27
31
  JobAttachmentUploadError2
28
- } from "./packager-tool-z6a5nr2d.js";
32
+ } from "./packager-tool-2dd1qswc.js";
29
33
  import {
30
34
  StudioWebIncompatibleProjectError2,
31
35
  UipignoreExcludesProjectError2,
32
36
  isSolutionUploadHttpError2,
33
37
  buildSolutionUploadFailureOutput2
34
- } from "./packager-tool-cc2sgsw1.js";
38
+ } from "./packager-tool-gzgsgttk.js";
35
39
  import {
36
40
  migrateLegacyToolGuardrailPolicies,
37
41
  AgentProjectService,
@@ -43,7 +47,7 @@ import {
43
47
  AgentDebugAttachmentUploadError,
44
48
  AgentDebugStartOutcomeUnknownError,
45
49
  AgentDebugService
46
- } from "./packager-tool-1373myfq.js";
50
+ } from "./packager-tool-9j9swnns.js";
47
51
  import {
48
52
  string,
49
53
  uuid,
@@ -75,7 +79,7 @@ import {
75
79
  import {
76
80
  prepareProjectLocation2,
77
81
  tryRegisterProjectInParentSolution2
78
- } from "./packager-tool-4j09ztk2.js";
82
+ } from "./packager-tool-3t6d1zdz.js";
79
83
  import {
80
84
  __toESM,
81
85
  __commonJS
@@ -7077,7 +7081,7 @@ var package_default = {
7077
7081
  name: "@uipath/agent-tool",
7078
7082
  author: "UiPath",
7079
7083
  license: "SEE LICENSE IN LICENSE.txt",
7080
- version: "1.206.0-preview.296",
7084
+ version: "1.206.0-preview.298",
7081
7085
  description: "cli plugin for creating and managing UiPath low-code agents",
7082
7086
  private: false,
7083
7087
  repository: {
@@ -7183,7 +7187,7 @@ function parsePositiveNumber(value, flag) {
7183
7187
  }
7184
7188
  var registerDebugCommand = (program) => {
7185
7189
  program.command("debug").description("Debug a low-code agent by running it on Studio Web and streaming the result. Job-attachment inputs can be supplied from local files with --attachment field=path.").argument("<project-path>", "Path to the agent project directory (containing agent.json)").option("-i, --inputs <json>", `Input arguments as JSON string (e.g. '{"input":"hello"}'). For a job-attachment field pass an existing Orchestrator attachment reference {"ID": "<attachment-id>"} (Data.Attachments of a previous --attachment run lists the IDs), or use --attachment to upload a local file.`).option("--attachment <field=path>", 'Upload a local file into a job-attachment input field of agent.json (repeatable). Format: field=path, e.g. --attachment fileIn=./invoice.pdf. The field must be declared as {"$ref": "#/definitions/job-attachment"} in inputSchema. Uploaded attachment IDs are returned in Data.Attachments.', appendOption, []).option("--poll-interval <ms>", "Polling interval in milliseconds", "2000").option("--timeout <seconds>", "Maximum seconds to wait for the debug run to finish").option("--login-validity <minutes>", "Minimum minutes before token expiration", (v) => Number.parseInt(v, 10), 10).examples(AGENT_DEBUG_EXAMPLES).trackedAction(processContext, async (projectPath, options) => {
7186
- const [authError, authContext] = await catchError(getAuthContext({
7190
+ const [authError, authContext] = await catchError(getAuthContext2({
7187
7191
  ensureTokenValidityMinutes: options.loginValidity,
7188
7192
  requireOrganizationId: true,
7189
7193
  requireTenantName: true
@@ -7606,7 +7610,7 @@ var package_default2 = {
7606
7610
  name: "@uipath/agent-sdk",
7607
7611
  author: "UiPath",
7608
7612
  license: "SEE LICENSE IN LICENSE.txt",
7609
- version: "1.206.0-preview.296",
7613
+ version: "1.206.0-preview.298",
7610
7614
  description: "SDK for the UiPath Agent Runtime API — evaluation execution and debug sessions.",
7611
7615
  repository: {
7612
7616
  type: "git",
@@ -8909,7 +8913,7 @@ class EvalsTenantExecutionApi extends BaseAPI {
8909
8913
  }
8910
8914
  // ../agent-sdk/src/client-factory.ts
8911
8915
  async function createAgentRuntimeConfig(options) {
8912
- const ctx = await getAuthContext({
8916
+ const ctx = await getAuthContext2({
8913
8917
  ensureTokenValidityMinutes: options?.loginValidity,
8914
8918
  requireOrganizationId: true,
8915
8919
  requireTenantId: true
@@ -9239,6 +9243,50 @@ class EvalService {
9239
9243
  }
9240
9244
  }
9241
9245
 
9246
+ // src/commands/eval/runtime-failure.ts
9247
+ async function evalRuntimeFailure(message, error) {
9248
+ const response = error?.response;
9249
+ const status = response?.status;
9250
+ const responseCopy = status === 401 || status === 403 ? cloneResponse(response) : undefined;
9251
+ const failure = await classifiedFailure(message, error);
9252
+ if (!response || status !== 401 && status !== 403 || failure.Result !== RESULTS.AuthenticationError) {
9253
+ return failure;
9254
+ }
9255
+ const challenge = parseAuthChallenge(response.headers?.get?.("www-authenticate") ?? undefined);
9256
+ const challengeReason = challenge.error ? `${challenge.error}${challenge.description ? `: ${challenge.description}` : ""}` : challenge.description;
9257
+ const bodyReason = await refusalBody(responseCopy);
9258
+ const reason = challengeReason ?? bodyReason;
9259
+ const refusal = status === 401 ? "The Agents runtime rejected this session's token (HTTP 401)" : "The Agents runtime forbade the call (HTTP 403)";
9260
+ const said = reason ? `${refusal}: ${reason}.` : `${refusal}.`;
9261
+ const invalidAudience = status === 401 && challenge.error?.toLowerCase() === "invalid_token" && /\baudience\b/i.test(challenge.description ?? "") && /\binvalid\b/i.test(challenge.description ?? "");
9262
+ const identity = invalidAudience ? await sessionIdentity() : undefined;
9263
+ if (identity?.type === "Application") {
9264
+ return {
9265
+ ...failure,
9266
+ Instructions: `${said} This session acts as external application ` + `${identity.clientId ?? "(client id unknown)"}, and the ` + `Agents runtime rejected that application's token audience. ` + `Confirm with the Agents runtime owner whether evaluation ` + `runs support client credentials and which token audience ` + `and scopes they require before changing the login ` + `configuration.`
9267
+ };
9268
+ }
9269
+ return { ...failure, Instructions: `${said} ${failure.Instructions}` };
9270
+ }
9271
+ function cloneResponse(response) {
9272
+ const [error, copy] = catchError(() => response?.clone?.());
9273
+ return error ? undefined : copy;
9274
+ }
9275
+ async function refusalBody(response) {
9276
+ const text = response?.text?.bind(response);
9277
+ if (!text)
9278
+ return;
9279
+ const [error, body] = await catchError(text());
9280
+ if (error || !body?.trim())
9281
+ return;
9282
+ return summarizePlatformBody(redactTokens(body));
9283
+ }
9284
+ async function sessionIdentity() {
9285
+ const { getAuthContext } = await import("./index-kvhrzcvf.js");
9286
+ const [, ctx] = await catchError(getAuthContext());
9287
+ return ctx?.identity;
9288
+ }
9289
+
9242
9290
  // src/commands/eval/eval-run.ts
9243
9291
  var EVAL_RUN_START_EXAMPLES = [
9244
9292
  {
@@ -9600,9 +9648,7 @@ var registerEvalRunCommands = (evalCmd) => {
9600
9648
  evalSetMultipleEvaluatorsStartRequest: payload
9601
9649
  }));
9602
9650
  if (startError) {
9603
- const resp = startError.response;
9604
- const body = resp?.text ? await resp.text() : "";
9605
- throw new Error(`API error starting eval: ${body || startError.message}`);
9651
+ throw startError;
9606
9652
  }
9607
9653
  const result = await rawResponse.raw.json();
9608
9654
  OutputFormatter.success({
@@ -9651,11 +9697,23 @@ var registerEvalRunCommands = (evalCmd) => {
9651
9697
  }
9652
9698
  })());
9653
9699
  if (error) {
9654
- OutputFormatter.error({
9655
- Result: RESULTS.Failure,
9656
- Message: "Failed to start evaluation run",
9657
- Instructions: error.message
9658
- });
9700
+ const {
9701
+ buildSolutionUploadFailureOutput,
9702
+ isSolutionUploadHttpError
9703
+ } = await import("./index-020tq4fn.js");
9704
+ if (isSolutionUploadHttpError(error)) {
9705
+ const failure = buildSolutionUploadFailureOutput(error, {
9706
+ subject: "agent",
9707
+ importCheckHint: "Run 'uip agent validate' to confirm the project is well-formed."
9708
+ });
9709
+ OutputFormatter.error({
9710
+ ...failure,
9711
+ Message: "Failed to start evaluation run",
9712
+ Instructions: `${failure.Message}. ${failure.Instructions}`
9713
+ });
9714
+ return;
9715
+ }
9716
+ OutputFormatter.error(await evalRuntimeFailure("Failed to start evaluation run", error));
9659
9717
  processContext.exit(1);
9660
9718
  }
9661
9719
  });
@@ -9695,11 +9753,7 @@ var registerEvalRunCommands = (evalCmd) => {
9695
9753
  });
9696
9754
  })());
9697
9755
  if (error) {
9698
- OutputFormatter.error({
9699
- Result: RESULTS.Failure,
9700
- Message: "Failed to get evaluation run status",
9701
- Instructions: error.message
9702
- });
9756
+ OutputFormatter.error(await evalRuntimeFailure("Failed to get evaluation run status", error));
9703
9757
  processContext.exit(1);
9704
9758
  }
9705
9759
  });
@@ -9789,11 +9843,7 @@ var registerEvalRunCommands = (evalCmd) => {
9789
9843
  });
9790
9844
  })());
9791
9845
  if (error) {
9792
- OutputFormatter.error({
9793
- Result: RESULTS.Failure,
9794
- Message: "Failed to get evaluation results",
9795
- Instructions: error.message
9796
- });
9846
+ OutputFormatter.error(await evalRuntimeFailure("Failed to get evaluation results", error));
9797
9847
  processContext.exit(1);
9798
9848
  }
9799
9849
  });
@@ -9839,11 +9889,7 @@ var registerEvalRunCommands = (evalCmd) => {
9839
9889
  });
9840
9890
  })());
9841
9891
  if (error) {
9842
- OutputFormatter.error({
9843
- Result: RESULTS.Failure,
9844
- Message: "Failed to list evaluation runs",
9845
- Instructions: error.message
9846
- });
9892
+ OutputFormatter.error(await evalRuntimeFailure("Failed to list evaluation runs", error));
9847
9893
  processContext.exit(1);
9848
9894
  }
9849
9895
  });
@@ -9927,11 +9973,7 @@ var registerEvalRunCommands = (evalCmd) => {
9927
9973
  });
9928
9974
  })());
9929
9975
  if (error) {
9930
- OutputFormatter.error({
9931
- Result: RESULTS.Failure,
9932
- Message: "Failed to compare evaluation runs",
9933
- Instructions: error.message
9934
- });
9976
+ OutputFormatter.error(await evalRuntimeFailure("Failed to compare evaluation runs", error));
9935
9977
  processContext.exit(1);
9936
9978
  }
9937
9979
  });
@@ -10370,7 +10412,7 @@ var SERVICE_PATH = {
10370
10412
  };
10371
10413
  var REQUESTING_PRODUCT = "uipath-cli";
10372
10414
  async function resolveAuth(options) {
10373
- const auth = await getAuthContext({
10415
+ const auth = await getAuthContext2({
10374
10416
  ensureTokenValidityMinutes: options?.loginValidity,
10375
10417
  requireOrganizationId: true
10376
10418
  });
@@ -10493,12 +10535,12 @@ async function getDiscoveryModels(options) {
10493
10535
  if (options.operationCode) {
10494
10536
  extraHeaders["X-UiPath-LlmGateway-OperationCode"] = options.operationCode;
10495
10537
  }
10496
- const status = await getLoginStatusAsync({
10538
+ const status = await getLoginStatusAsync2({
10497
10539
  ensureTokenValidityMinutes: options.loginValidity
10498
10540
  });
10499
10541
  if (status.accessToken) {
10500
10542
  try {
10501
- const claims = parseJWT(status.accessToken);
10543
+ const claims = parseJWT2(status.accessToken);
10502
10544
  if (typeof claims.sub === "string") {
10503
10545
  extraHeaders["X-UiPath-LlmGateway-UserId"] = claims.sub;
10504
10546
  }
@@ -10802,7 +10844,7 @@ var registerGuardrailCommands = (program) => {
10802
10844
 
10803
10845
  // src/services/project-artifacts.ts
10804
10846
  async function ensureProjectArtifacts(args) {
10805
- const { addProjectArtifactsToSolutionAsync } = await import("./index-41ykvvtr.js");
10847
+ const { addProjectArtifactsToSolutionAsync } = await import("./index-r7ff4pb0.js");
10806
10848
  return addProjectArtifactsToSolutionAsync(args);
10807
10849
  }
10808
10850
 
@@ -11302,7 +11344,7 @@ var SOLUTION_FOLDER = "solution_folder";
11302
11344
  // src/services/memory-space-solution-link.ts
11303
11345
  async function findEnclosingSolutionFile(projectPath) {
11304
11346
  const fs = getFileSystem();
11305
- const { findSolutionFileUpward } = await import("./index-aytc7vwb.js");
11347
+ const { findSolutionFileUpward } = await import("./index-020tq4fn.js");
11306
11348
  const [error, solutionFile] = await catchError(findSolutionFileUpward(fs, fs.path.resolve(projectPath)));
11307
11349
  if (error) {
11308
11350
  if (error.message.startsWith("No .uipx solution file found")) {
@@ -11346,13 +11388,13 @@ async function readImportedResourceFolders(fs, solutionDir, tenantId) {
11346
11388
  return folders;
11347
11389
  }
11348
11390
  async function activeTenantId() {
11349
- const [error, status] = await catchError(getLoginStatusAsync());
11391
+ const [error, status] = await catchError(getLoginStatusAsync2());
11350
11392
  if (error || status.loginStatus !== "Logged in")
11351
11393
  return;
11352
11394
  return status.tenantId ?? undefined;
11353
11395
  }
11354
11396
  async function openSolution(solutionDir) {
11355
- const engine = await import("./index-41ykvvtr.js");
11397
+ const engine = await import("./index-r7ff4pb0.js");
11356
11398
  const services = await engine.createResourceBuilderServices();
11357
11399
  await engine.normalizeResourceFileCasing(solutionDir);
11358
11400
  const builder = await services.getSolutionBuilder(solutionDir);
@@ -11862,7 +11904,7 @@ async function resolveRuntimeTarget(memoryName, options) {
11862
11904
  if (options.folderKey === undefined && folderPath.toLowerCase() === SOLUTION_FOLDER) {
11863
11905
  throw new Error(`Feature "${feature.name}" points at ${SOLUTION_FOLDER}, the placeholder the deploy replaces with the deployment folder. Pass --folder-path <deployed folder path> or --folder-key <key> for the folder the solution is deployed to ('uip solution deploy list' shows it).`);
11864
11906
  }
11865
- const { findRuntimeMemorySpace, resolveRuntimeFolder } = await import("./memory-runtime-service-cp5eqzvz.js");
11907
+ const { findRuntimeMemorySpace, resolveRuntimeFolder } = await import("./memory-runtime-service-tt5y1af6.js");
11866
11908
  const folder = await resolveRuntimeFolder(options.folderKey !== undefined ? { folderKey: options.folderKey } : { folderPath });
11867
11909
  if (folder === undefined) {
11868
11910
  throw new Error("Memory items are not available in this build; use the uip CLI.");
@@ -12003,7 +12045,7 @@ var registerMemoryCommands = (program) => {
12003
12045
  const memoryType = parseMemoryType(options.memoryType);
12004
12046
  const request = buildItemRequest(memoryType, options);
12005
12047
  const target = await resolveRuntimeTarget(memoryName, options);
12006
- const { addRuntimeMemoryItem } = await import("./memory-runtime-service-cp5eqzvz.js");
12048
+ const { addRuntimeMemoryItem } = await import("./memory-runtime-service-tt5y1af6.js");
12007
12049
  const item = await addRuntimeMemoryItem(target.space.id, target.folder.key, request);
12008
12050
  OutputFormatter.success({
12009
12051
  Result: RESULTS.Success,
@@ -12036,7 +12078,7 @@ var registerMemoryCommands = (program) => {
12036
12078
  const [error] = await catchError((async () => {
12037
12079
  const memoryType = options.memoryType === undefined ? undefined : parseMemoryType(options.memoryType);
12038
12080
  const target = await resolveRuntimeTarget(memoryName, options);
12039
- const { listRuntimeMemoryItems } = await import("./memory-runtime-service-cp5eqzvz.js");
12081
+ const { listRuntimeMemoryItems } = await import("./memory-runtime-service-tt5y1af6.js");
12040
12082
  const items = await listRuntimeMemoryItems(target.space.id, target.folder.key, memoryType);
12041
12083
  OutputFormatter.success({
12042
12084
  Result: RESULTS.Success,
@@ -17926,7 +17968,7 @@ var package_default3 = {
17926
17968
  name: "@uipath/integrationservice-sdk",
17927
17969
  author: "UiPath",
17928
17970
  license: "SEE LICENSE IN LICENSE.txt",
17929
- version: "1.206.0-preview.296",
17971
+ version: "1.206.0-preview.298",
17930
17972
  repository: {
17931
17973
  type: "git",
17932
17974
  url: "https://github.com/UiPath/cli.git",
@@ -23699,7 +23741,7 @@ function resolveApiDomain(ApiClass) {
23699
23741
  return API_DOMAIN_MAP.get(ApiClass) ?? API_DOMAIN_BY_NAME.get(baseApiClassName(ApiClass.name));
23700
23742
  }
23701
23743
  async function getValidatedAuthContext(options) {
23702
- const ctx = await getAuthContext({
23744
+ const ctx = await getAuthContext2({
23703
23745
  tenant: options?.tenant,
23704
23746
  ensureTokenValidityMinutes: options?.loginValidity,
23705
23747
  requireOrganizationId: true,
@@ -28266,4 +28308,4 @@ var registerCommands2 = async (program) => {
28266
28308
 
28267
28309
  export { metadata2, registerCommands2 };
28268
28310
 
28269
- //# debugId=6CA3873841B2E9FA64756E2164756E21
28311
+ //# debugId=EF27810B5B3405A864756E2164756E21
@@ -0,0 +1,31 @@
1
+ // ../auth/src/catch-error.ts
2
+ function isPromiseLike(value) {
3
+ return value !== null && typeof value === "object" && typeof value.then === "function";
4
+ }
5
+ function catchError2(fnOrPromise) {
6
+ if (isPromiseLike(fnOrPromise)) {
7
+ return settlePromiseLike(fnOrPromise);
8
+ }
9
+ try {
10
+ const result = fnOrPromise();
11
+ if (isPromiseLike(result)) {
12
+ return settlePromiseLike(result);
13
+ }
14
+ return [undefined, result];
15
+ } catch (error) {
16
+ return [
17
+ error instanceof Error ? error : new Error(String(error)),
18
+ undefined
19
+ ];
20
+ }
21
+ }
22
+ function settlePromiseLike(thenable) {
23
+ return Promise.resolve(thenable).then((data) => [undefined, data]).catch((error) => [
24
+ error instanceof Error ? error : new Error(String(error)),
25
+ undefined
26
+ ]);
27
+ }
28
+
29
+ export { catchError2 };
30
+
31
+ //# debugId=5BBFFF71F3FAF6A164756E2164756E21
@@ -0,0 +1,14 @@
1
+ // ../auth/src/utils/platform.ts
2
+ function isBrowser2() {
3
+ return typeof globalThis !== "undefined" && "window" in globalThis && "document" in globalThis;
4
+ }
5
+ function getGlobalThis() {
6
+ if (typeof globalThis !== "undefined") {
7
+ return globalThis;
8
+ }
9
+ return;
10
+ }
11
+
12
+ export { isBrowser2, getGlobalThis };
13
+
14
+ //# debugId=BB900EA7514A888D64756E2164756E21
@@ -0,0 +1,11 @@
1
+ import {
2
+ getSolutionAuthContext2
3
+ } from "./packager-tool-9nh85680.js";
4
+ import"./packager-tool-9xrkfzn1.js";
5
+ import"./packager-tool-0ajs8pnk.js";
6
+ import"./packager-tool-1qg04b7q.js";
7
+ export {
8
+ getSolutionAuthContext2 as getSolutionAuthContext
9
+ };
10
+
11
+ //# debugId=8C64D22B8E0C22F864756E2164756E21
package/dist/tool.js CHANGED
@@ -1,18 +1,19 @@
1
1
  import {
2
2
  metadata2,
3
3
  registerCommands2
4
- } from "./packager-tool-0fh43aka.js";
5
- import"./packager-tool-1373myfq.js";
6
- import"./packager-tool-z6a5nr2d.js";
7
- import"./packager-tool-qr8dtv3r.js";
8
- import"./packager-tool-cc2sgsw1.js";
9
- import"./packager-tool-4j09ztk2.js";
10
- import"./packager-tool-21r3phhc.js";
11
- import"./packager-tool-0ajs8pnk.js";
4
+ } from "./packager-tool-kq3wrf1p.js";
5
+ import"./packager-tool-9j9swnns.js";
6
+ import"./packager-tool-2dd1qswc.js";
7
+ import"./packager-tool-9xrkfzn1.js";
8
+ import"./packager-tool-gzgsgttk.js";
9
+ import"./packager-tool-3t6d1zdz.js";
10
+ import"./packager-tool-dy6gcgks.js";
12
11
  import"./packager-tool-bh92xy8d.js";
12
+ import"./packager-tool-0ajs8pnk.js";
13
+ import"./packager-tool-1qg04b7q.js";
13
14
  export {
14
15
  metadata2 as metadata,
15
16
  registerCommands2 as registerCommands
16
17
  };
17
18
 
18
- //# debugId=5763DD0F2A83F65D64756E2164756E21
19
+ //# debugId=AC0F61B59142B50164756E2164756E21
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@uipath/agent-tool",
3
3
  "author": "UiPath",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
- "version": "1.206.0-preview.296",
5
+ "version": "1.206.0-preview.298",
6
6
  "description": "cli plugin for creating and managing UiPath low-code agents",
7
7
  "private": false,
8
8
  "repository": {
@@ -29,5 +29,5 @@
29
29
  "files": [
30
30
  "dist"
31
31
  ],
32
- "gitHead": "b816f3b1d711f0888be774af87a58536780af5c2"
32
+ "gitHead": "a0ed1d051971fa12165c56d8b74d0be5d7a25d41"
33
33
  }
@@ -1,10 +0,0 @@
1
- import {
2
- getSolutionAuthContext2
3
- } from "./packager-tool-qvsazy59.js";
4
- import"./packager-tool-qr8dtv3r.js";
5
- import"./packager-tool-0ajs8pnk.js";
6
- export {
7
- getSolutionAuthContext2 as getSolutionAuthContext
8
- };
9
-
10
- //# debugId=D0318E126BDC065664756E2164756E21