@uipath/agenthub-tool 1.206.0-preview.301 → 1.207.0-preview.305

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.
@@ -12,14 +12,14 @@ import {
12
12
  getSdkUserAgentToken,
13
13
  addSdkUserAgentHeader,
14
14
  installSdkUserAgentHeader
15
- } from "./tool-8fc3dv3j.js";
15
+ } from "./tool-zmhrvrtj.js";
16
16
  import {
17
17
  resolveSessionIdentity2,
18
18
  getAuthContext2
19
- } from "./tool-f2evc0qk.js";
19
+ } from "./tool-tgahyq1y.js";
20
20
  import {
21
21
  getFileSystem2
22
- } from "./tool-bhbmn53g.js";
22
+ } from "./tool-x8dsz8c6.js";
23
23
  import {
24
24
  __toESM,
25
25
  __commonJS,
@@ -2354,7 +2354,7 @@ var package_default = {
2354
2354
  name: "@uipath/orchestrator-sdk",
2355
2355
  author: "UiPath",
2356
2356
  license: "SEE LICENSE IN LICENSE.txt",
2357
- version: "1.206.0",
2357
+ version: "1.207.0",
2358
2358
  repository: {
2359
2359
  type: "git",
2360
2360
  url: "https://github.com/UiPath/cli.git",
@@ -2791,6 +2791,37 @@ function MachineFolderDtoFromJSONTyped(json, ignoreDiscriminator) {
2791
2791
  updateInfo: json["UpdateInfo"] == null ? undefined : UpdateInfoDtoFromJSON(json["UpdateInfo"])
2792
2792
  };
2793
2793
  }
2794
+ // ../orchestrator-sdk/generated/src/models/MachineRuntimeDto.ts
2795
+ var MachineRuntimeDtoTypeEnum = {
2796
+ NonProduction: "NonProduction",
2797
+ Attended: "Attended",
2798
+ Unattended: "Unattended",
2799
+ Development: "Development",
2800
+ Studio: "Studio",
2801
+ RpaDeveloper: "RpaDeveloper",
2802
+ StudioX: "StudioX",
2803
+ CitizenDeveloper: "CitizenDeveloper",
2804
+ Headless: "Headless",
2805
+ StudioPro: "StudioPro",
2806
+ RpaDeveloperPro: "RpaDeveloperPro",
2807
+ TestAutomation: "TestAutomation",
2808
+ AutomationCloud: "AutomationCloud",
2809
+ Serverless: "Serverless",
2810
+ AutomationKit: "AutomationKit",
2811
+ ServerlessTestAutomation: "ServerlessTestAutomation",
2812
+ AutomationCloudTestAutomation: "AutomationCloudTestAutomation",
2813
+ AttendedStudioWeb: "AttendedStudioWeb",
2814
+ Hosting: "Hosting",
2815
+ AssistantWeb: "AssistantWeb",
2816
+ ProcessOrchestration: "ProcessOrchestration",
2817
+ AgentService: "AgentService",
2818
+ AppTest: "AppTest",
2819
+ PerformanceTest: "PerformanceTest",
2820
+ BusinessRule: "BusinessRule",
2821
+ CaseManagement: "CaseManagement",
2822
+ Flow: "Flow",
2823
+ Local: "Local"
2824
+ };
2794
2825
  // ../orchestrator-sdk/generated/src/models/ODataValueOfIEnumerableOfFolderDto.ts
2795
2826
  function ODataValueOfIEnumerableOfFolderDtoFromJSON(json) {
2796
2827
  return ODataValueOfIEnumerableOfFolderDtoFromJSONTyped(json, false);
@@ -2887,6 +2918,7 @@ function UserEntityDtoFromJSONTyped(json, ignoreDiscriminator) {
2887
2918
  return {
2888
2919
  fullName: json["FullName"] == null ? undefined : json["FullName"],
2889
2920
  authenticationSource: json["AuthenticationSource"] == null ? undefined : json["AuthenticationSource"],
2921
+ emailAddress: json["EmailAddress"] == null ? undefined : json["EmailAddress"],
2890
2922
  key: json["Key"] == null ? undefined : json["Key"],
2891
2923
  userName: json["UserName"] == null ? undefined : json["UserName"],
2892
2924
  isInherited: json["IsInherited"] == null ? undefined : json["IsInherited"],
@@ -3143,6 +3175,9 @@ class FoldersApi2 extends BaseAPI {
3143
3175
  if (requestParameters["searchText"] != null) {
3144
3176
  queryParameters["searchText"] = requestParameters["searchText"];
3145
3177
  }
3178
+ if (requestParameters["includeTenantRoles"] != null) {
3179
+ queryParameters["includeTenantRoles"] = requestParameters["includeTenantRoles"];
3180
+ }
3146
3181
  if (requestParameters["$select"] != null) {
3147
3182
  queryParameters["$select"] = requestParameters["$select"];
3148
3183
  }
@@ -3499,6 +3534,23 @@ class FoldersApi2 extends BaseAPI {
3499
3534
  await this.foldersRemoveUserFromFolderByIdRaw(requestParameters, initOverrides);
3500
3535
  }
3501
3536
  }
3537
+ // ../orchestrator-sdk/generated/src/apis/MachinesApi.ts
3538
+ var MachinesGetRuntimesForFolderByFolderidProcessTypeEnum = {
3539
+ Undefined: "Undefined",
3540
+ Process: "Process",
3541
+ ProcessOrchestration: "ProcessOrchestration",
3542
+ WebApp: "WebApp",
3543
+ Agent: "Agent",
3544
+ TestAutomationProcess: "TestAutomationProcess",
3545
+ Api: "Api",
3546
+ McpServer: "MCPServer",
3547
+ BusinessRules: "BusinessRules",
3548
+ CaseManagement: "CaseManagement",
3549
+ Flow: "Flow",
3550
+ Function: "Function",
3551
+ System: "System",
3552
+ FlowAutomate: "FlowAutomate"
3553
+ };
3502
3554
  // ../orchestrator-sdk/generated/src/apis/PersonalWorkspacesApi.ts
3503
3555
  class PersonalWorkspacesApi2 extends BaseAPI {
3504
3556
  async personalWorkspacesGetRaw(requestParameters, initOverrides) {
@@ -3566,6 +3618,50 @@ class PersonalWorkspacesApi2 extends BaseAPI {
3566
3618
  const response = await this.personalWorkspacesGetPersonalWorkspaceRaw(requestParameters, initOverrides);
3567
3619
  return await response.value();
3568
3620
  }
3621
+ async personalWorkspacesStartExploringByIdRaw(requestParameters, initOverrides) {
3622
+ if (requestParameters["key"] == null) {
3623
+ throw new RequiredError("key", 'Required parameter "key" was null or undefined when calling personalWorkspacesStartExploringById().');
3624
+ }
3625
+ const queryParameters = {};
3626
+ const headerParameters = {};
3627
+ if (this.configuration && this.configuration.accessToken) {
3628
+ headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
3629
+ }
3630
+ let urlPath = `/odata/PersonalWorkspaces({key})/UiPath.Server.Configuration.OData.StartExploring`;
3631
+ urlPath = urlPath.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"])));
3632
+ const response = await this.request({
3633
+ path: urlPath,
3634
+ method: "POST",
3635
+ headers: headerParameters,
3636
+ query: queryParameters
3637
+ }, initOverrides);
3638
+ return new VoidApiResponse(response);
3639
+ }
3640
+ async personalWorkspacesStartExploringById(requestParameters, initOverrides) {
3641
+ await this.personalWorkspacesStartExploringByIdRaw(requestParameters, initOverrides);
3642
+ }
3643
+ async personalWorkspacesStopExploringByIdRaw(requestParameters, initOverrides) {
3644
+ if (requestParameters["key"] == null) {
3645
+ throw new RequiredError("key", 'Required parameter "key" was null or undefined when calling personalWorkspacesStopExploringById().');
3646
+ }
3647
+ const queryParameters = {};
3648
+ const headerParameters = {};
3649
+ if (this.configuration && this.configuration.accessToken) {
3650
+ headerParameters["Authorization"] = await this.configuration.accessToken("OAuth2", []);
3651
+ }
3652
+ let urlPath = `/odata/PersonalWorkspaces({key})/UiPath.Server.Configuration.OData.StopExploring`;
3653
+ urlPath = urlPath.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"])));
3654
+ const response = await this.request({
3655
+ path: urlPath,
3656
+ method: "POST",
3657
+ headers: headerParameters,
3658
+ query: queryParameters
3659
+ }, initOverrides);
3660
+ return new VoidApiResponse(response);
3661
+ }
3662
+ async personalWorkspacesStopExploringById(requestParameters, initOverrides) {
3663
+ await this.personalWorkspacesStopExploringByIdRaw(requestParameters, initOverrides);
3664
+ }
3569
3665
  }
3570
3666
  // ../common/src/session-kind.ts
3571
3667
  var SESSION_KIND_KEY = Symbol.for("@uipath/common/SessionKind");
@@ -3668,9 +3764,7 @@ async function withinProjectIdentityBudget(work, onTimeout) {
3668
3764
  }
3669
3765
  }
3670
3766
 
3671
- // ../common/src/telemetry/pseudonymize.ts
3672
- var PSEUDONYM_DOMAIN = "uipath-cli/telemetry/pseudonym/v1:";
3673
- var PSEUDONYM_HEX_LENGTH = 32;
3767
+ // ../common/src/sha256.ts
3674
3768
  var SHA256_K = new Uint32Array([
3675
3769
  1116352408,
3676
3770
  1899447441,
@@ -3750,7 +3844,7 @@ var SHA256_INITIAL_STATE = new Uint32Array([
3750
3844
  function rotr(value, bits) {
3751
3845
  return (value >>> bits | value << 32 - bits) >>> 0;
3752
3846
  }
3753
- function sha256Hex(input) {
3847
+ function sha256Words(input) {
3754
3848
  const bytes = new TextEncoder().encode(input);
3755
3849
  const paddedLength = bytes.length + 9 + 63 >> 6 << 6;
3756
3850
  const buffer = new Uint8Array(paddedLength);
@@ -3806,12 +3900,19 @@ function sha256Hex(input) {
3806
3900
  state[6] = state[6] + g >>> 0;
3807
3901
  state[7] = state[7] + h >>> 0;
3808
3902
  }
3903
+ return state;
3904
+ }
3905
+ function sha256Hex(input) {
3809
3906
  let hex = "";
3810
- for (const word of state) {
3907
+ for (const word of sha256Words(input)) {
3811
3908
  hex += word.toString(16).padStart(8, "0");
3812
3909
  }
3813
3910
  return hex;
3814
3911
  }
3912
+
3913
+ // ../common/src/telemetry/pseudonymize.ts
3914
+ var PSEUDONYM_DOMAIN = "uipath-cli/telemetry/pseudonym/v1:";
3915
+ var PSEUDONYM_HEX_LENGTH = 32;
3815
3916
  function resolveSha256Hex() {
3816
3917
  try {
3817
3918
  const nodeCrypto = __require("node:crypto");
@@ -4177,13 +4278,25 @@ function settlePromiseLike(thenable) {
4177
4278
  return Promise.resolve(thenable).then((data) => [undefined, data]).catch((error) => [toError(error), undefined]);
4178
4279
  }
4179
4280
 
4281
+ // ../common/src/result-types.ts
4282
+ var RESULTS = {
4283
+ Success: "Success",
4284
+ Failure: "Failure",
4285
+ ConfigError: "ConfigError",
4286
+ AuthenticationError: "AuthenticationError",
4287
+ ValidationError: "ValidationError",
4288
+ TimeoutError: "TimeoutError"
4289
+ };
4290
+
4180
4291
  // ../common/src/error-codes.ts
4181
4292
  var CLI_ERROR_CODES = [
4182
4293
  "invalid_argument",
4294
+ "confirmation_required",
4183
4295
  "authentication_required",
4184
4296
  "permission_denied",
4185
4297
  "local_permission_denied",
4186
4298
  "not_found",
4299
+ "not_enabled",
4187
4300
  "rate_limited",
4188
4301
  "network_error",
4189
4302
  "timeout",
@@ -4222,6 +4335,12 @@ function carriedRetry(error) {
4222
4335
  const retry = error.retry;
4223
4336
  return isRetryHint(retry) ? retry : undefined;
4224
4337
  }
4338
+ function carriedResult(error) {
4339
+ if (!error || typeof error !== "object")
4340
+ return;
4341
+ const result = error.result;
4342
+ return typeof result === "string" && result !== RESULTS.Success && Object.values(RESULTS).includes(result) ? result : undefined;
4343
+ }
4225
4344
  function defaultRetryForErrorCode(errorCode) {
4226
4345
  switch (errorCode) {
4227
4346
  case "network_error":
@@ -4617,6 +4736,8 @@ async function extractErrorDetails(error, options) {
4617
4736
  }
4618
4737
  if (parsedBody?.errorCode && typeof parsedBody.errorCode === "string") {
4619
4738
  context.errorCode = parsedBody.errorCode;
4739
+ } else if (typeof parsedBody?.errorCode === "number") {
4740
+ context.errorCode = String(parsedBody.errorCode);
4620
4741
  } else if (parsedBody?.code && typeof parsedBody.code === "string") {
4621
4742
  context.errorCode = parsedBody.code;
4622
4743
  }
@@ -4751,16 +4872,6 @@ function instructionsFor(ctx, err) {
4751
4872
  }
4752
4873
  }
4753
4874
 
4754
- // ../common/src/result-types.ts
4755
- var RESULTS = {
4756
- Success: "Success",
4757
- Failure: "Failure",
4758
- ConfigError: "ConfigError",
4759
- AuthenticationError: "AuthenticationError",
4760
- ValidationError: "ValidationError",
4761
- TimeoutError: "TimeoutError"
4762
- };
4763
-
4764
4875
  // ../common/src/classified-failure.ts
4765
4876
  function notSupportedFailure(operation, instructions, context) {
4766
4877
  return {
@@ -5204,7 +5315,10 @@ var AUTH_ERROR_CODES = new Set([
5204
5315
  var LOCAL_PERMISSION_CLI_ERROR_CODES = new Set([
5205
5316
  "local_permission_denied"
5206
5317
  ]);
5207
- var VALIDATION_ERROR_CODES = new Set(["invalid_argument"]);
5318
+ var VALIDATION_ERROR_CODES = new Set([
5319
+ "invalid_argument",
5320
+ "confirmation_required"
5321
+ ]);
5208
5322
  var NETWORK_HTTP_ERROR_CODES = new Set([
5209
5323
  "network_error",
5210
5324
  "rate_limited",
@@ -5430,6 +5544,103 @@ var CommonTelemetryEvents = {
5430
5544
  ShipSucceeded: "Cli.ShipSucceeded"
5431
5545
  };
5432
5546
 
5547
+ // ../common/src/telemetry/trace-context.ts
5548
+ var TELEMETRY_TRACEPARENT_ENV = "TRACEPARENT";
5549
+ var TRACEPARENT_PATTERN = /^00-([0-9a-f]{32})-([0-9a-f]{16})-[0-9a-f]{2}$/;
5550
+ function getProcessEnv() {
5551
+ return globalThis.process?.env;
5552
+ }
5553
+ function parseInboundTraceparent(value) {
5554
+ if (!value) {
5555
+ return;
5556
+ }
5557
+ const match = TRACEPARENT_PATTERN.exec(value.trim().toLowerCase());
5558
+ if (!match) {
5559
+ return;
5560
+ }
5561
+ const [, traceId, parentSpanId] = match;
5562
+ if (/^0+$/.test(traceId) || /^0+$/.test(parentSpanId)) {
5563
+ return;
5564
+ }
5565
+ return { traceId, parentSpanId };
5566
+ }
5567
+ function getInboundTraceContext() {
5568
+ return parseInboundTraceparent(getProcessEnv()?.[TELEMETRY_TRACEPARENT_ENV]);
5569
+ }
5570
+
5571
+ // ../common/src/telemetry/session-id.ts
5572
+ var TELEMETRY_SESSION_ID_ENV = "UIPATH_SESSION_ID";
5573
+ var SESSION_ID_MAX_LENGTH = 64;
5574
+ var RANDOM_SESSION_ID_LENGTH = 32;
5575
+ var TELEMETRY_SESSION_SOURCE_PROPERTY = "SessionIdSource";
5576
+ var CONTROL_CHARACTERS = /\p{Cc}/gu;
5577
+ var INHERITED_SESSION_SOURCES = [
5578
+ { envVar: "CLAUDE_CODE_SESSION_ID", source: "claude-code" },
5579
+ { envVar: "CODEX_THREAD_ID", source: "codex" },
5580
+ { envVar: "ANTIGRAVITY_TRAJECTORY_ID", source: "antigravity" },
5581
+ { envVar: "TERM_SESSION_ID", source: "terminal" },
5582
+ { envVar: "WT_SESSION", source: "terminal" }
5583
+ ];
5584
+ var telemetrySessionSlot = singleton("TelemetrySession");
5585
+ var telemetryOperationIdSlot = singleton("TelemetryOperationId");
5586
+ function getProcessEnv2() {
5587
+ return globalThis.process?.env;
5588
+ }
5589
+ function normalizeSessionId(value) {
5590
+ if (typeof value !== "string" && typeof value !== "number" && typeof value !== "boolean") {
5591
+ return;
5592
+ }
5593
+ const cleaned = String(value).replace(CONTROL_CHARACTERS, "").trim().slice(0, SESSION_ID_MAX_LENGTH);
5594
+ return cleaned || undefined;
5595
+ }
5596
+ function getConfiguredTelemetrySessionId() {
5597
+ return normalizeSessionId(getProcessEnv2()?.[TELEMETRY_SESSION_ID_ENV]);
5598
+ }
5599
+ function getInheritedSession(env) {
5600
+ for (const candidate of INHERITED_SESSION_SOURCES) {
5601
+ const handle = normalizeSessionId(env[candidate.envVar]);
5602
+ if (handle) {
5603
+ return { id: handle, source: candidate.source };
5604
+ }
5605
+ }
5606
+ return;
5607
+ }
5608
+ function generateRandomSession() {
5609
+ const bytes = new Uint8Array(RANDOM_SESSION_ID_LENGTH / 2);
5610
+ crypto.getRandomValues(bytes);
5611
+ let hex = "";
5612
+ for (const byte of bytes) {
5613
+ hex += byte.toString(16).padStart(2, "0");
5614
+ }
5615
+ return { id: hex, source: "random" };
5616
+ }
5617
+ function resolveTelemetrySession() {
5618
+ const existing = telemetrySessionSlot.get();
5619
+ if (existing) {
5620
+ return existing;
5621
+ }
5622
+ const declaredHandle = getConfiguredTelemetrySessionId();
5623
+ const resolved = declaredHandle ? { id: declaredHandle, source: "declared" } : getInheritedSession(getProcessEnv2() ?? {}) ?? generateRandomSession();
5624
+ telemetrySessionSlot.set(resolved);
5625
+ return resolved;
5626
+ }
5627
+ function getTelemetrySessionId() {
5628
+ return resolveTelemetrySession().id;
5629
+ }
5630
+ function getTelemetrySessionSource() {
5631
+ return resolveTelemetrySession().source;
5632
+ }
5633
+ function getTelemetryOperationId() {
5634
+ const existing = telemetryOperationIdSlot.get();
5635
+ if (existing) {
5636
+ return existing;
5637
+ }
5638
+ const inboundTraceId = getInboundTraceContext()?.traceId;
5639
+ const generated = inboundTraceId ?? crypto.randomUUID().replaceAll("-", "");
5640
+ telemetryOperationIdSlot.set(generated);
5641
+ return generated;
5642
+ }
5643
+
5433
5644
  // ../common/src/registry.ts
5434
5645
  import { execFileSync } from "node:child_process";
5435
5646
  function readRegistryValue(keyPath, valueName) {
@@ -5651,102 +5862,6 @@ class NodeContextStorage {
5651
5862
  return this.storage.getStore();
5652
5863
  }
5653
5864
  }
5654
- // ../common/src/telemetry/trace-context.ts
5655
- var TELEMETRY_TRACEPARENT_ENV = "TRACEPARENT";
5656
- var TRACEPARENT_PATTERN = /^00-([0-9a-f]{32})-([0-9a-f]{16})-[0-9a-f]{2}$/;
5657
- function getProcessEnv() {
5658
- return globalThis.process?.env;
5659
- }
5660
- function parseInboundTraceparent(value) {
5661
- if (!value) {
5662
- return;
5663
- }
5664
- const match = TRACEPARENT_PATTERN.exec(value.trim().toLowerCase());
5665
- if (!match) {
5666
- return;
5667
- }
5668
- const [, traceId, parentSpanId] = match;
5669
- if (/^0+$/.test(traceId) || /^0+$/.test(parentSpanId)) {
5670
- return;
5671
- }
5672
- return { traceId, parentSpanId };
5673
- }
5674
- function getInboundTraceContext() {
5675
- return parseInboundTraceparent(getProcessEnv()?.[TELEMETRY_TRACEPARENT_ENV]);
5676
- }
5677
-
5678
- // ../common/src/telemetry/session-id.ts
5679
- var TELEMETRY_SESSION_ID_ENV = "UIPATH_SESSION_ID";
5680
- var SESSION_ID_MAX_LENGTH = 64;
5681
- var RANDOM_SESSION_ID_LENGTH = 32;
5682
- var TELEMETRY_SESSION_SOURCE_PROPERTY = "SessionIdSource";
5683
- var CONTROL_CHARACTERS = /\p{Cc}/gu;
5684
- var INHERITED_SESSION_SOURCES = [
5685
- { envVar: "CLAUDE_CODE_SESSION_ID", source: "claude-code" },
5686
- { envVar: "CODEX_THREAD_ID", source: "codex" },
5687
- { envVar: "ANTIGRAVITY_TRAJECTORY_ID", source: "antigravity" },
5688
- { envVar: "TERM_SESSION_ID", source: "terminal" },
5689
- { envVar: "WT_SESSION", source: "terminal" }
5690
- ];
5691
- var telemetrySessionSlot = singleton("TelemetrySession");
5692
- var telemetryOperationIdSlot = singleton("TelemetryOperationId");
5693
- function getProcessEnv2() {
5694
- return globalThis.process?.env;
5695
- }
5696
- function normalizeSessionId(value) {
5697
- if (typeof value !== "string" && typeof value !== "number" && typeof value !== "boolean") {
5698
- return;
5699
- }
5700
- const cleaned = String(value).replace(CONTROL_CHARACTERS, "").trim().slice(0, SESSION_ID_MAX_LENGTH);
5701
- return cleaned || undefined;
5702
- }
5703
- function getConfiguredTelemetrySessionId() {
5704
- return normalizeSessionId(getProcessEnv2()?.[TELEMETRY_SESSION_ID_ENV]);
5705
- }
5706
- function getInheritedSession(env) {
5707
- for (const candidate of INHERITED_SESSION_SOURCES) {
5708
- const handle = normalizeSessionId(env[candidate.envVar]);
5709
- if (handle) {
5710
- return { id: handle, source: candidate.source };
5711
- }
5712
- }
5713
- return;
5714
- }
5715
- function generateRandomSession() {
5716
- const bytes = new Uint8Array(RANDOM_SESSION_ID_LENGTH / 2);
5717
- crypto.getRandomValues(bytes);
5718
- let hex = "";
5719
- for (const byte of bytes) {
5720
- hex += byte.toString(16).padStart(2, "0");
5721
- }
5722
- return { id: hex, source: "random" };
5723
- }
5724
- function resolveTelemetrySession() {
5725
- const existing = telemetrySessionSlot.get();
5726
- if (existing) {
5727
- return existing;
5728
- }
5729
- const declaredHandle = getConfiguredTelemetrySessionId();
5730
- const resolved = declaredHandle ? { id: declaredHandle, source: "declared" } : getInheritedSession(getProcessEnv2() ?? {}) ?? generateRandomSession();
5731
- telemetrySessionSlot.set(resolved);
5732
- return resolved;
5733
- }
5734
- function getTelemetrySessionId() {
5735
- return resolveTelemetrySession().id;
5736
- }
5737
- function getTelemetrySessionSource() {
5738
- return resolveTelemetrySession().source;
5739
- }
5740
- function getTelemetryOperationId() {
5741
- const existing = telemetryOperationIdSlot.get();
5742
- if (existing) {
5743
- return existing;
5744
- }
5745
- const inboundTraceId = getInboundTraceContext()?.traceId;
5746
- const generated = inboundTraceId ?? crypto.randomUUID().replaceAll("-", "");
5747
- telemetryOperationIdSlot.set(generated);
5748
- return generated;
5749
- }
5750
5865
  // ../common/src/telemetry/span-clock.ts
5751
5866
  function startSpanClock() {
5752
5867
  const started = performance.now();
@@ -5951,6 +6066,7 @@ var MAX_SPOOL_AGE_MS = 72 * 60 * 60 * 1000;
5951
6066
  // ../common/src/telemetry/telemetry-init.ts
5952
6067
  var telemetryInstanceSlot = singleton("TelemetryService");
5953
6068
  var DEFAULT_AI_CONNECTION_STRING = atob("SW5zdHJ1bWVudGF0aW9uS2V5PTliZDM3NDgyLTgxMGUtNDQyYS1hYWE2LWQzOGVmNjVjNjY3NDtJbmdlc3Rpb25FbmRwb2ludD1odHRwczovL3dlc3RldXJvcGUtNS5pbi5hcHBsaWNhdGlvbmluc2lnaHRzLmF6dXJlLmNvbS87TGl2ZUVuZHBvaW50PWh0dHBzOi8vd2VzdGV1cm9wZS5saXZlZGlhZ25vc3RpY3MubW9uaXRvci5henVyZS5jb20vO0FwcGxpY2F0aW9uSWQ9MzU2OTdlZjEtOGJkMC00ZjE5LWEyN2MtZDg3Y2NhYzY2ZDJj");
6069
+ var browserProviderSlot = singleton("BrowserAppInsightsTelemetryProvider");
5954
6070
  function getGlobalTelemetryInstance() {
5955
6071
  const existing = telemetryInstanceSlot.get();
5956
6072
  if (existing && typeof existing === "object" && "trackEvent" in existing && typeof existing.trackEvent === "function") {
@@ -6134,7 +6250,7 @@ function printOutput(data, format = "json", logFn, asciiSafe = false, tableRowSt
6134
6250
  const pagedRows = extractPagedRows(data.Data);
6135
6251
  const items = pagedRows ?? (Array.isArray(data.Data) ? data.Data : [data.Data]);
6136
6252
  items.forEach((item) => {
6137
- const values = Object.values(item).map((v) => v ?? "").join("\t");
6253
+ const values = item === null || typeof item !== "object" ? String(item ?? "") : Object.values(item).map((v) => v ?? "").join("\t");
6138
6254
  logFn(values);
6139
6255
  });
6140
6256
  } else {
@@ -6149,7 +6265,8 @@ function printOutput(data, format = "json", logFn, asciiSafe = false, tableRowSt
6149
6265
  default: {
6150
6266
  const hasData = "Data" in data && data.Data != null;
6151
6267
  const pagedRows = hasData ? extractPagedRows(data.Data) : null;
6152
- const rows = pagedRows ? pagedRows : Array.isArray(data.Data) ? data.Data : null;
6268
+ const resolvedRows = pagedRows ? pagedRows : Array.isArray(data.Data) ? data.Data : null;
6269
+ const rows = resolvedRows && isPrimitiveArray(resolvedRows) ? resolvedRows.map((entry) => ({ Value: entry })) : resolvedRows;
6153
6270
  if (hasData && !(rows !== null && rows.length === 0)) {
6154
6271
  const logValue = data.Log;
6155
6272
  if (rows !== null) {
@@ -6206,6 +6323,9 @@ function printTable(data, logFn, externalLogValue, tableRowStyle) {
6206
6323
  function isPlainObjectArray(value) {
6207
6324
  return Array.isArray(value) && value.length > 0 && value.every(isPlainRecord);
6208
6325
  }
6326
+ function isPrimitiveArray(value) {
6327
+ return Array.isArray(value) && value.length > 0 && value.every((entry) => entry === null || typeof entry !== "object");
6328
+ }
6209
6329
  function isNonEmptyPlainObject(value) {
6210
6330
  return isPlainRecord(value) && Object.keys(value).length > 0;
6211
6331
  }
@@ -6552,12 +6672,12 @@ class FilterEvaluationError extends Error {
6552
6672
  instructions;
6553
6673
  retry = "RetryWillNotFix";
6554
6674
  result = RESULTS.ValidationError;
6555
- constructor(filter, cause) {
6675
+ constructor(filter, cause, hint) {
6556
6676
  const underlying = cause instanceof Error ? cause.message : String(cause);
6557
- super(`Filter '${filter}' failed to evaluate: ${underlying}`);
6677
+ super(`Filter '${filter}' failed to evaluate: ${underlying}` + (hint ? ` ${hint.detail}` : ""));
6558
6678
  this.name = "FilterEvaluationError";
6559
6679
  this.filter = filter;
6560
- this.instructions = `The --output-filter expression '${filter}' failed at evaluation time. ` + "Note that --output-filter operates on the 'Data' field of the envelope, not the full object. " + "For example, on a list result use 'length(@)' instead of 'Data | length(@)'.";
6680
+ this.instructions = (hint ? `${hint.instructions} ` : "") + `The --output-filter expression '${filter}' failed at evaluation time. ` + "Note that --output-filter operates on the 'Data' field of the envelope, not the full object. " + "For example, on a list result use 'length(@)' instead of 'Data | length(@)'.";
6561
6681
  }
6562
6682
  }
6563
6683
 
@@ -6679,6 +6799,93 @@ function nameList(names, cap = 12) {
6679
6799
  const rest = names.length - shown.length;
6680
6800
  return shown.join(", ") + (rest > 0 ? `, and ${rest} more` : "");
6681
6801
  }
6802
+ function notFieldsOn(names, scope) {
6803
+ return `${nameList(names)} ${names.length === 1 ? "is not a field" : "are not fields"} on the ${scope} it read`;
6804
+ }
6805
+ function failingFieldRead(ast, isList, fn, argIndex) {
6806
+ const [left, right, condition] = ast.children ?? [];
6807
+ let scopes = [];
6808
+ if (!isList) {
6809
+ scopes = [ast];
6810
+ } else if (ast.type === "FilterProjection" && left?.type === "Identity") {
6811
+ scopes = [condition, right];
6812
+ } else if (ast.type === "Projection" && (left?.type === "Identity" || left?.type === "Flatten" && left.children?.[0]?.type === "Identity")) {
6813
+ scopes = [right];
6814
+ }
6815
+ const reads = new Set;
6816
+ let tracked = 0;
6817
+ const visit = (node) => {
6818
+ if (!node)
6819
+ return;
6820
+ switch (node.type) {
6821
+ case "Function": {
6822
+ const arg = node.children?.[argIndex - 1];
6823
+ if (node.name === fn && arg?.type === "Field" && arg.name) {
6824
+ reads.add(arg.name);
6825
+ tracked++;
6826
+ }
6827
+ node.children?.forEach(visit);
6828
+ return;
6829
+ }
6830
+ case "AndExpression":
6831
+ case "OrExpression":
6832
+ case "NotExpression":
6833
+ case "Comparator":
6834
+ case "MultiSelectList":
6835
+ case "MultiSelectHash":
6836
+ node.children?.forEach(visit);
6837
+ return;
6838
+ case "KeyValuePair":
6839
+ visit(node.value);
6840
+ return;
6841
+ }
6842
+ };
6843
+ scopes.forEach(visit);
6844
+ const calls = (node) => {
6845
+ if (node === null || typeof node !== "object")
6846
+ return 0;
6847
+ const own = node.type === "Function" && node.name === fn ? 1 : 0;
6848
+ const next = node.type === "KeyValuePair" ? [node.value] : node.children ?? [];
6849
+ return own + next.reduce((sum, child) => sum + calls(child), 0);
6850
+ };
6851
+ return reads.size === 1 && tracked === calls(ast) ? [...reads][0] : undefined;
6852
+ }
6853
+ function fieldExpression(name) {
6854
+ return /^[A-Za-z_]\w*$/.test(name) ? name : JSON.stringify(name);
6855
+ }
6856
+ function evaluationHint(codec, filter, data, cause) {
6857
+ const underlying = cause instanceof Error ? cause.message : String(cause);
6858
+ const failure = /\b(\w+)\(\) expected argument (\d+) to be type (\S+) but received type null\b/.exec(underlying);
6859
+ if (!failure)
6860
+ return;
6861
+ const [, fn, position, expected] = failure;
6862
+ const name = failingFieldRead(codec.compile(filter), Array.isArray(data), fn, Number(position));
6863
+ if (name === undefined)
6864
+ return;
6865
+ const present = availableFields(data);
6866
+ if (present.length === 0)
6867
+ return;
6868
+ const scope = `${countRecords(data)} record(s)`;
6869
+ if (!present.includes(name)) {
6870
+ return {
6871
+ detail: `${notFieldsOn([name], scope)}. Available fields: ${nameList(present)}.`,
6872
+ instructions: "Use a field the records have; names are case-sensitive."
6873
+ };
6874
+ }
6875
+ const records = Array.isArray(data) ? data : [data];
6876
+ const unset = records.filter((r) => r?.[name] == null).length;
6877
+ const field = fieldExpression(name);
6878
+ let fallback;
6879
+ if (expected.split(",").includes("string")) {
6880
+ fallback = "''";
6881
+ } else if (expected.split(",").includes("array")) {
6882
+ fallback = "`[]`";
6883
+ }
6884
+ return {
6885
+ detail: `\`${name}\` is null or missing on ${unset} of the ${scope} it read.`,
6886
+ instructions: fallback ? `Give it a default where ${fn}() reads it, e.g. \`${field} || ${fallback}\`.` : `Filter out the records where \`${name}\` is null before ${fn}() reads it.`
6887
+ };
6888
+ }
6682
6889
  function buildFilterWarning(filter, data, outcome) {
6683
6890
  const present = availableFields(data);
6684
6891
  const refs = referencedFields(filter);
@@ -6686,7 +6893,7 @@ function buildFilterWarning(filter, data, outcome) {
6686
6893
  const unchecked = refs.nested.filter((name) => !present.includes(name));
6687
6894
  const count = countRecords(data);
6688
6895
  const scope = `${count} record(s)`;
6689
- const isNotAField = (names) => `${nameList(names)} ${names.length === 1 ? "is not a field" : "are not fields"} on the ${scope} it read`;
6896
+ const isNotAField = (names) => notFieldsOn(names, scope);
6690
6897
  const soundness = unchecked.length > 0 ? `${nameList(unchecked)} ${unchecked.length === 1 ? "reads" : "read"} below the top level, so ${unchecked.length === 1 ? "it was" : "they were"} not checked against the record keys` : refs.top.length > 0 ? "every field it names exists" : "";
6691
6898
  const withSoundness = (base) => soundness ? `${base}, and ${soundness}` : base;
6692
6899
  let detail;
@@ -6737,7 +6944,8 @@ function applyFilter(data, filter, onWarning) {
6737
6944
  try {
6738
6945
  result = codec.search(data, filter);
6739
6946
  } catch (err) {
6740
- throw new FilterEvaluationError(filter, err);
6947
+ const [, hint] = catchError(() => evaluationHint(codec, filter, data, err));
6948
+ throw new FilterEvaluationError(filter, err, hint);
6741
6949
  }
6742
6950
  const inputCount = countRecords(data);
6743
6951
  const warn = (outcome) => {
@@ -7628,7 +7836,7 @@ Command.prototype.trackedAction = function(context, fn, properties) {
7628
7836
  logger.debug(`[trackedAction] ${telemetryName} failed: ${errorMessage}`);
7629
7837
  const typed = error;
7630
7838
  const customInstructions = typeof typed.instructions === "string" ? typed.instructions : undefined;
7631
- const customResult = typeof typed.result === "string" && typed.result !== RESULTS.Success && Object.values(RESULTS).includes(typed.result) ? typed.result : undefined;
7839
+ const customResult = carriedResult(error);
7632
7840
  const cancellationExitCode = typed.exitCode === 130 || isPromptCancellation(error) ? 130 : undefined;
7633
7841
  const classified = cancellationExitCode === undefined ? await extractErrorDetails(error) : undefined;
7634
7842
  const finalResult = customResult ?? classified?.result ?? RESULTS.Failure;
@@ -7702,14 +7910,17 @@ Command.prototype.trackedAction = function(context, fn, properties) {
7702
7910
  // ../common/src/completer.ts
7703
7911
  var COMPLETER_SYMBOL = Symbol.for("@uipath/common/completer");
7704
7912
  // ../common/src/confirmation.ts
7705
- function requireConfirmation(flags, operation) {
7913
+ function requireConfirmation(flags, operation, options) {
7706
7914
  if (flags.yes === true || flags.force === true) {
7707
7915
  return true;
7708
7916
  }
7917
+ const message = options?.reversible ? `Confirmation required: this will ${operation}.` : `Confirmation required: this will ${operation} and cannot be undone.`;
7709
7918
  OutputFormatter.error({
7710
7919
  Result: RESULTS.Failure,
7711
- Message: `Confirmation required: this will ${operation} and cannot be undone.`,
7712
- Instructions: "Re-run with --yes to confirm."
7920
+ Message: message,
7921
+ Instructions: options?.instructions ?? "Re-run with --yes to confirm.",
7922
+ ErrorCode: "confirmation_required",
7923
+ Retry: "RetryWillNotFix"
7713
7924
  });
7714
7925
  processContext.exit(1);
7715
7926
  return false;
@@ -8070,6 +8281,8 @@ var FAILURE_STATUSES = new Set([
8070
8281
  "canceled",
8071
8282
  "stopped"
8072
8283
  ]);
8284
+ // ../common/src/relayed-output.ts
8285
+ var RELAYED_OUTPUT_SYMBOL = Symbol.for("@uipath/common/relayed-output");
8073
8286
  // ../common/src/screen-logger.ts
8074
8287
  var ScreenLogger;
8075
8288
  ((ScreenLogger) => {
@@ -8083,12 +8296,35 @@ var ScreenLogger;
8083
8296
  var shippedKeysSlot = singleton("ShipSucceededDedupeKeys");
8084
8297
  // ../common/src/tool-provider.ts
8085
8298
  var factorySlot = singleton("PackagerFactoryProvider");
8299
+ // ../orchestrator-sdk/src/folder-runtimes.ts
8300
+ var FOLDER_RUNTIMES = {
8301
+ [MachinesGetRuntimesForFolderByFolderidProcessTypeEnum.Process]: [
8302
+ MachineRuntimeDtoTypeEnum.Serverless,
8303
+ MachineRuntimeDtoTypeEnum.AutomationCloud,
8304
+ MachineRuntimeDtoTypeEnum.AutomationCloudTestAutomation,
8305
+ MachineRuntimeDtoTypeEnum.AppTest,
8306
+ MachineRuntimeDtoTypeEnum.PerformanceTest,
8307
+ MachineRuntimeDtoTypeEnum.Unattended,
8308
+ MachineRuntimeDtoTypeEnum.NonProduction,
8309
+ MachineRuntimeDtoTypeEnum.TestAutomation
8310
+ ],
8311
+ [MachinesGetRuntimesForFolderByFolderidProcessTypeEnum.TestAutomationProcess]: [
8312
+ MachineRuntimeDtoTypeEnum.Serverless,
8313
+ MachineRuntimeDtoTypeEnum.ServerlessTestAutomation,
8314
+ MachineRuntimeDtoTypeEnum.AutomationCloudTestAutomation,
8315
+ MachineRuntimeDtoTypeEnum.AutomationCloud,
8316
+ MachineRuntimeDtoTypeEnum.AppTest,
8317
+ MachineRuntimeDtoTypeEnum.TestAutomation,
8318
+ MachineRuntimeDtoTypeEnum.Unattended
8319
+ ],
8320
+ [MachinesGetRuntimesForFolderByFolderidProcessTypeEnum.McpServer]: [MachineRuntimeDtoTypeEnum.Serverless]
8321
+ };
8086
8322
  // ../orchestrator-sdk/src/knowledge-bundles.ts
8087
8323
  var KB_INLINE_LIMITS = {
8088
8324
  maxObjectBytes: 16 * 1024 * 1024,
8089
8325
  maxBodyBytes: 100 * 1024 * 1024,
8090
8326
  maxParts: 1e4
8091
8327
  };
8092
- export { InvalidArgumentError, Command, Argument, Option, catchError, carriedErrorCode, carriedRetry, carriedInstructions, extractErrorDetails, instructionsFor, RESULTS, notSupportedFailure, getOutputSink, EXIT_CODES, OutputFormatter, processContext, requireConfirmation, DEFAULT_PAGE_SIZE, isGuid, resolveDeprecatedOptionAlias, warnDeprecatedOptionAlias, createHiddenDeprecatedTenantOption, parseLimit, parseOffset, FoldersApi2, PersonalWorkspacesApi2, createOrchestratorConfig2, createApiClient3 };
8328
+ export { InvalidArgumentError, Command, Argument, Option, catchError, RESULTS, carriedErrorCode, carriedRetry, carriedInstructions, extractErrorDetails, instructionsFor, notSupportedFailure, getOutputSink, EXIT_CODES, OutputFormatter, processContext, requireConfirmation, DEFAULT_PAGE_SIZE, isGuid, resolveDeprecatedOptionAlias, warnDeprecatedOptionAlias, createHiddenDeprecatedTenantOption, parseLimit, parseOffset, FoldersApi2, PersonalWorkspacesApi2, createOrchestratorConfig2, createApiClient3 };
8093
8329
 
8094
- //# debugId=C143CEBA9AAFBE8264756E2164756E21
8330
+ //# debugId=C82B9FB5BCFD33B164756E2164756E21