@uipath/agenthub-tool 1.197.0 → 1.198.0-preview.81

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/tool.js +43 -12
  2. package/package.json +2 -2
package/dist/tool.js CHANGED
@@ -3058,8 +3058,15 @@ function settlePromiseLike2(thenable) {
3058
3058
 
3059
3059
  // ../common/src/error-handler.ts
3060
3060
  function describeConnectivityError(error) {
3061
- let current = error;
3062
- for (let depth = 0;depth < 5 && current !== null && typeof current === "object"; depth++) {
3061
+ const queue = [error];
3062
+ const seen = new Set;
3063
+ for (let steps = 0;queue.length > 0 && steps < 32; steps++) {
3064
+ const current = queue.shift();
3065
+ if (current === null || typeof current !== "object")
3066
+ continue;
3067
+ if (seen.has(current))
3068
+ continue;
3069
+ seen.add(current);
3063
3070
  const cur = current;
3064
3071
  const code = typeof cur.code === "string" ? cur.code : undefined;
3065
3072
  const message = typeof cur.message === "string" ? cur.message : undefined;
@@ -3079,7 +3086,10 @@ function describeConnectivityError(error) {
3079
3086
  instructions: NETWORK_INSTRUCTIONS
3080
3087
  };
3081
3088
  }
3082
- current = cur.cause;
3089
+ if (cur.cause !== undefined)
3090
+ queue.push(cur.cause);
3091
+ if (Array.isArray(cur.errors))
3092
+ queue.push(...cur.errors);
3083
3093
  }
3084
3094
  return;
3085
3095
  }
@@ -8324,11 +8334,12 @@ function getOutputFormat() {
8324
8334
  function getOutputFilter() {
8325
8335
  return filterSlot.get();
8326
8336
  }
8327
- var formatSlot, formatExplicitSlot, filterSlot;
8337
+ var formatSlot, formatExplicitSlot, helpRequestedSlot, filterSlot;
8328
8338
  var init_output_format_context = __esm(() => {
8329
8339
  init_singleton();
8330
8340
  formatSlot = singleton2("OutputFormat");
8331
8341
  formatExplicitSlot = singleton2("OutputFormatExplicit");
8342
+ helpRequestedSlot = singleton2("HelpRequested");
8332
8343
  filterSlot = singleton2("OutputFilter");
8333
8344
  });
8334
8345
 
@@ -9470,6 +9481,9 @@ var init_formatter = __esm(() => {
9470
9481
  if (opts?.warning) {
9471
9482
  data.Warning = opts.warning;
9472
9483
  }
9484
+ if (opts?.pagination) {
9485
+ data.Pagination = opts.pagination;
9486
+ }
9473
9487
  success(data);
9474
9488
  }
9475
9489
  OutputFormatter.emitList = emitList;
@@ -9966,11 +9980,12 @@ var init_error_instructions = __esm(() => {
9966
9980
  var init_guid = () => {};
9967
9981
 
9968
9982
  // ../common/src/interactivity-context.ts
9969
- var modeSlot;
9983
+ var modeSlot, interactiveFlagSlot;
9970
9984
  var init_interactivity_context = __esm(() => {
9971
9985
  init_output_context();
9972
9986
  init_singleton();
9973
9987
  modeSlot = singleton2("InteractivityMode");
9988
+ interactiveFlagSlot = singleton2("InteractiveFlag");
9974
9989
  });
9975
9990
 
9976
9991
  // ../common/src/option-aliases.ts
@@ -10549,7 +10564,7 @@ var init_package = __esm(() => {
10549
10564
  package_default3 = {
10550
10565
  name: "@uipath/orchestrator-sdk",
10551
10566
  license: "MIT",
10552
- version: "1.197.0",
10567
+ version: "1.198.0",
10553
10568
  repository: {
10554
10569
  type: "git",
10555
10570
  url: "https://github.com/UiPath/cli.git",
@@ -64488,6 +64503,7 @@ var init_src5 = __esm(() => {
64488
64503
  init_constants3();
64489
64504
  init_oidc();
64490
64505
  init_config();
64506
+ init_constants3();
64491
64507
  init_envAuth();
64492
64508
  init_refreshCircuitBreaker();
64493
64509
  init_selectTenant();
@@ -67166,7 +67182,7 @@ init_esm();
67166
67182
  var package_default = {
67167
67183
  name: "@uipath/agenthub-tool",
67168
67184
  license: "MIT",
67169
- version: "1.197.0",
67185
+ version: "1.198.0-preview.81",
67170
67186
  description: "Manage UiPath AgentHub MCP server registrations, tools, and remote A2A agents.",
67171
67187
  private: false,
67172
67188
  repository: {
@@ -86303,7 +86319,7 @@ class VoidApiResponse {
86303
86319
  var package_default2 = {
86304
86320
  name: "@uipath/agenthub-sdk",
86305
86321
  license: "MIT",
86306
- version: "1.197.0",
86322
+ version: "1.198.0",
86307
86323
  repository: {
86308
86324
  type: "git",
86309
86325
  url: "https://github.com/UiPath/cli.git",
@@ -88603,6 +88619,7 @@ var getAuthContext = async (options = {}) => {
88603
88619
  tenantName
88604
88620
  };
88605
88621
  };
88622
+ init_constants();
88606
88623
  init_src();
88607
88624
  var TENANT_SELECTION_REQUIRED_CODE = "TENANT_SELECTION_REQUIRED";
88608
88625
  var INVALID_TENANT_CODE = "INVALID_TENANT";
@@ -90401,7 +90418,7 @@ class TextApiResponse2 {
90401
90418
  var package_default4 = {
90402
90419
  name: "@uipath/integrationservice-sdk",
90403
90420
  license: "MIT",
90404
- version: "1.197.0",
90421
+ version: "1.198.0-preview.81",
90405
90422
  repository: {
90406
90423
  type: "git",
90407
90424
  url: "https://github.com/UiPath/cli.git",
@@ -96143,6 +96160,20 @@ var API_DOMAIN_MAP = new Map([
96143
96160
  [SessionsApi3, "connections"],
96144
96161
  [ElementsApi, "elements"]
96145
96162
  ]);
96163
+ function baseApiClassName(name) {
96164
+ let end = name.length;
96165
+ while (end > 0 && name[end - 1] >= "0" && name[end - 1] <= "9") {
96166
+ end--;
96167
+ }
96168
+ return name.slice(0, end);
96169
+ }
96170
+ var API_DOMAIN_BY_NAME = new Map([...API_DOMAIN_MAP].map(([ApiClass, domain]) => [
96171
+ baseApiClassName(ApiClass.name),
96172
+ domain
96173
+ ]));
96174
+ function resolveApiDomain(ApiClass) {
96175
+ return API_DOMAIN_MAP.get(ApiClass) ?? API_DOMAIN_BY_NAME.get(baseApiClassName(ApiClass.name));
96176
+ }
96146
96177
  async function getValidatedAuthContext(options) {
96147
96178
  const ctx = await getAuthContext2({
96148
96179
  tenant: options?.tenant,
@@ -96179,7 +96210,7 @@ async function createElementsConfig(options) {
96179
96210
  });
96180
96211
  }
96181
96212
  async function createApiClient3(ApiClass, options) {
96182
- const domain = API_DOMAIN_MAP.get(ApiClass);
96213
+ const domain = resolveApiDomain(ApiClass);
96183
96214
  if (!domain) {
96184
96215
  throw new Error(`Unknown API class: ${ApiClass.name}`);
96185
96216
  }
@@ -96943,7 +96974,7 @@ class JSONApiResponse5 {
96943
96974
  var package_default5 = {
96944
96975
  name: "@uipath/resourcecatalog-sdk",
96945
96976
  license: "MIT",
96946
- version: "1.197.0",
96977
+ version: "1.198.0",
96947
96978
  description: "SDK for the UiPath Resource Catalog Service API.",
96948
96979
  repository: {
96949
96980
  type: "git",
@@ -99066,4 +99097,4 @@ export {
99066
99097
  createStandaloneProgram
99067
99098
  };
99068
99099
 
99069
- //# debugId=9E3C77FEAB650E3C64756E2164756E21
99100
+ //# debugId=199B17AEC8E6FE9564756E2164756E21
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@uipath/agenthub-tool",
3
3
  "license": "MIT",
4
- "version": "1.197.0",
4
+ "version": "1.198.0-preview.81",
5
5
  "description": "Manage UiPath AgentHub MCP server registrations, tools, and remote A2A agents.",
6
6
  "private": false,
7
7
  "repository": {
@@ -26,5 +26,5 @@
26
26
  "files": [
27
27
  "dist"
28
28
  ],
29
- "gitHead": "56f68b263cec4ea1f2a39d738bd99ecf52f88fea"
29
+ "gitHead": "d6a326ee051d553694b61f4923bcf1719d2e5110"
30
30
  }