@uipath/case-tool 1.197.0-preview.65 → 1.197.0-preview.67

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 +624 -55
  2. package/package.json +2 -2
package/dist/tool.js CHANGED
@@ -33297,7 +33297,7 @@ React keys must be passed directly to JSX without using spread:
33297
33297
  var useEffect8 = React8.useEffect;
33298
33298
  var useMemo9 = React8.useMemo;
33299
33299
  var useDebugValue3 = React8.useDebugValue;
33300
- exports2.useSyncExternalStoreWithSelector = function(subscribe, getSnapshot, getServerSnapshot, selector, isEqual) {
33300
+ exports2.useSyncExternalStoreWithSelector = function(subscribe, getSnapshot, getServerSnapshot, selector, isEqual2) {
33301
33301
  var instRef = useRef6(null);
33302
33302
  if (instRef.current === null) {
33303
33303
  var inst = { hasValue: false, value: null };
@@ -33310,9 +33310,9 @@ React keys must be passed directly to JSX without using spread:
33310
33310
  hasMemo = true;
33311
33311
  memoizedSnapshot = nextSnapshot;
33312
33312
  nextSnapshot = selector(nextSnapshot);
33313
- if (isEqual !== undefined && inst.hasValue) {
33313
+ if (isEqual2 !== undefined && inst.hasValue) {
33314
33314
  var currentSelection = inst.value;
33315
- if (isEqual(currentSelection, nextSnapshot))
33315
+ if (isEqual2(currentSelection, nextSnapshot))
33316
33316
  return memoizedSelection = currentSelection;
33317
33317
  }
33318
33318
  return memoizedSelection = nextSnapshot;
@@ -33321,7 +33321,7 @@ React keys must be passed directly to JSX without using spread:
33321
33321
  if (objectIs(memoizedSnapshot, nextSnapshot))
33322
33322
  return currentSelection;
33323
33323
  var nextSelection = selector(nextSnapshot);
33324
- if (isEqual !== undefined && isEqual(currentSelection, nextSelection))
33324
+ if (isEqual2 !== undefined && isEqual2(currentSelection, nextSelection))
33325
33325
  return memoizedSnapshot = nextSnapshot, currentSelection;
33326
33326
  memoizedSnapshot = nextSnapshot;
33327
33327
  return memoizedSelection = nextSelection;
@@ -33335,7 +33335,7 @@ React keys must be passed directly to JSX without using spread:
33335
33335
  return memoizedSelector(maybeGetServerSnapshot());
33336
33336
  }
33337
33337
  ];
33338
- }, [getSnapshot, getServerSnapshot, selector, isEqual]);
33338
+ }, [getSnapshot, getServerSnapshot, selector, isEqual2]);
33339
33339
  var value = useSyncExternalStore2(subscribe, instRef[0], instRef[1]);
33340
33340
  useEffect8(function() {
33341
33341
  inst.hasValue = true;
@@ -33356,7 +33356,7 @@ React keys must be passed directly to JSX without using spread:
33356
33356
  }
33357
33357
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart === "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
33358
33358
  var React8 = require_react(), shim = require_shim(), objectIs = typeof Object.is === "function" ? Object.is : is3, useSyncExternalStore2 = shim.useSyncExternalStore, useRef6 = React8.useRef, useEffect8 = React8.useEffect, useMemo9 = React8.useMemo, useDebugValue3 = React8.useDebugValue;
33359
- exports2.useSyncExternalStoreWithSelector = function(subscribe, getSnapshot, getServerSnapshot, selector, isEqual) {
33359
+ exports2.useSyncExternalStoreWithSelector = function(subscribe, getSnapshot, getServerSnapshot, selector, isEqual2) {
33360
33360
  var instRef = useRef6(null);
33361
33361
  if (instRef.current === null) {
33362
33362
  var inst = { hasValue: false, value: null };
@@ -33369,9 +33369,9 @@ React keys must be passed directly to JSX without using spread:
33369
33369
  hasMemo = true;
33370
33370
  memoizedSnapshot = nextSnapshot;
33371
33371
  nextSnapshot = selector(nextSnapshot);
33372
- if (isEqual !== undefined && inst.hasValue) {
33372
+ if (isEqual2 !== undefined && inst.hasValue) {
33373
33373
  var currentSelection = inst.value;
33374
- if (isEqual(currentSelection, nextSnapshot))
33374
+ if (isEqual2(currentSelection, nextSnapshot))
33375
33375
  return memoizedSelection = currentSelection;
33376
33376
  }
33377
33377
  return memoizedSelection = nextSnapshot;
@@ -33380,7 +33380,7 @@ React keys must be passed directly to JSX without using spread:
33380
33380
  if (objectIs(memoizedSnapshot, nextSnapshot))
33381
33381
  return currentSelection;
33382
33382
  var nextSelection = selector(nextSnapshot);
33383
- if (isEqual !== undefined && isEqual(currentSelection, nextSelection))
33383
+ if (isEqual2 !== undefined && isEqual2(currentSelection, nextSelection))
33384
33384
  return memoizedSnapshot = nextSnapshot, currentSelection;
33385
33385
  memoizedSnapshot = nextSnapshot;
33386
33386
  return memoizedSelection = nextSelection;
@@ -33394,7 +33394,7 @@ React keys must be passed directly to JSX without using spread:
33394
33394
  return memoizedSelector(maybeGetServerSnapshot());
33395
33395
  }
33396
33396
  ];
33397
- }, [getSnapshot, getServerSnapshot, selector, isEqual]);
33397
+ }, [getSnapshot, getServerSnapshot, selector, isEqual2]);
33398
33398
  var value = useSyncExternalStore2(subscribe, instRef[0], instRef[1]);
33399
33399
  useEffect8(function() {
33400
33400
  inst.hasValue = true;
@@ -66381,7 +66381,7 @@ You might need to use a local HTTP server (instead of file://): https://reactjs.
66381
66381
  return value != null && isLength2(value.length) && !isFunction5(value);
66382
66382
  }
66383
66383
  var isBuffer3 = nativeIsBuffer2 || stubFalse2;
66384
- function isEqual(value, other) {
66384
+ function isEqual2(value, other) {
66385
66385
  return baseIsEqual(value, other);
66386
66386
  }
66387
66387
  function isFunction5(value) {
@@ -66411,7 +66411,7 @@ You might need to use a local HTTP server (instead of file://): https://reactjs.
66411
66411
  function stubFalse2() {
66412
66412
  return false;
66413
66413
  }
66414
- module2.exports = isEqual;
66414
+ module2.exports = isEqual2;
66415
66415
  }
66416
66416
  });
66417
66417
  var require_lodash3 = __commonJS2({
@@ -67034,7 +67034,7 @@ You might need to use a local HTTP server (instead of file://): https://reactjs.
67034
67034
  "node_modules/to-json-schema/lib/helpers.js"(exports2, module2) {
67035
67035
  init_document_shim();
67036
67036
  init_appConfig_shim();
67037
- var isEqual = require_lodash2();
67037
+ var isEqual2 = require_lodash2();
67038
67038
  var xor3 = require_lodash3();
67039
67039
  var keys2 = require_lodash4();
67040
67040
  var _require = require_jsonSchemaHelpers();
@@ -67062,13 +67062,13 @@ You might need to use a local HTTP server (instead of file://): https://reactjs.
67062
67062
  mergeSchemaObjs: function mergeSchemaObjs(schema1, schema2) {
67063
67063
  var schema1Keys = keys2(schema1);
67064
67064
  var schema2Keys = keys2(schema2);
67065
- if (!isEqual(schema1Keys, schema2Keys)) {
67065
+ if (!isEqual2(schema1Keys, schema2Keys)) {
67066
67066
  if (schema1.type === "array" && schema2.type === "array") {
67067
- if (isEqual(xor3(schema1Keys, schema2Keys), ["items"])) {
67067
+ if (isEqual2(xor3(schema1Keys, schema2Keys), ["items"])) {
67068
67068
  var schemaWithoutItems = schema1Keys.length > schema2Keys.length ? schema2 : schema1;
67069
67069
  var schemaWithItems = schema1Keys.length > schema2Keys.length ? schema1 : schema2;
67070
67070
  var isSame = keys2(schemaWithoutItems).reduce(function(acc, current2) {
67071
- return isEqual(schemaWithoutItems[current2], schemaWithItems[current2]) && acc;
67071
+ return isEqual2(schemaWithoutItems[current2], schemaWithItems[current2]) && acc;
67072
67072
  }, true);
67073
67073
  if (isSame) {
67074
67074
  return schemaWithoutItems;
@@ -67108,7 +67108,7 @@ You might need to use a local HTTP server (instead of file://): https://reactjs.
67108
67108
  retObj[key] = schema1[key];
67109
67109
  }
67110
67110
  } else {
67111
- if (!isEqual(schema1[key], schema2[key])) {
67111
+ if (!isEqual2(schema1[key], schema2[key])) {
67112
67112
  return null;
67113
67113
  }
67114
67114
  retObj[key] = schema1[key];
@@ -67148,7 +67148,7 @@ You might need to use a local HTTP server (instead of file://): https://reactjs.
67148
67148
  return Constructor;
67149
67149
  }
67150
67150
  var merge3 = require_lodash();
67151
- var isEqual = require_lodash2();
67151
+ var isEqual2 = require_lodash2();
67152
67152
  var helpers = require_helpers();
67153
67153
  var defaultOptions3 = {
67154
67154
  required: false,
@@ -67290,7 +67290,7 @@ You might need to use a local HTTP server (instead of file://): https://reactjs.
67290
67290
  var schema = this.getArraySchemaNoMerging(arr);
67291
67291
  if (arr.length > 1) {
67292
67292
  for (var i = 1;i < arr.length; i++) {
67293
- if (!isEqual(schema.items, this.getSchema(arr[i]))) {
67293
+ if (!isEqual2(schema.items, this.getSchema(arr[i]))) {
67294
67294
  throw new Error("Invalid schema, incompatible array items");
67295
67295
  }
67296
67296
  }
@@ -130309,7 +130309,7 @@ You might need to use a local HTTP server (instead of file://): https://reactjs.
130309
130309
  function isPromiseLike3(value) {
130310
130310
  return !!(value && value.then && isFunction5(value.then));
130311
130311
  }
130312
- function isTruthy(value) {
130312
+ function isTruthy2(value) {
130313
130313
  return !(!value || /* @__PURE__ */ safeGet(function() {
130314
130314
  return !(value && 0 + value);
130315
130315
  }, !value));
@@ -133432,7 +133432,7 @@ You might need to use a local HTTP server (instead of file://): https://reactjs.
133432
133432
  theValue = strTrim(/* @__PURE__ */ strLeft(value, idx));
133433
133433
  values = _extractParts(strSubstring(value, idx + 1));
133434
133434
  }
133435
- setValue(values, STR_DOMAIN, domain2 || _domain, isTruthy, isUndefined5);
133435
+ setValue(values, STR_DOMAIN, domain2 || _domain, isTruthy2, isUndefined5);
133436
133436
  if (!/* @__PURE__ */ isNullOrUndefined(maxAgeSec)) {
133437
133437
  var _isIE = isIE();
133438
133438
  if (/* @__PURE__ */ isUndefined5(values[strExpires])) {
@@ -133441,7 +133441,7 @@ You might need to use a local HTTP server (instead of file://): https://reactjs.
133441
133441
  if (expireMs > 0) {
133442
133442
  var expiry = /* @__PURE__ */ new Date;
133443
133443
  expiry.setTime(expireMs);
133444
- setValue(values, strExpires, _formatDate(expiry, !_isIE ? strToUTCString : strToGMTString) || _formatDate(expiry, _isIE ? strToGMTString : strToUTCString) || STR_EMPTY$1, isTruthy);
133444
+ setValue(values, strExpires, _formatDate(expiry, !_isIE ? strToUTCString : strToGMTString) || _formatDate(expiry, _isIE ? strToGMTString : strToUTCString) || STR_EMPTY$1, isTruthy2);
133445
133445
  }
133446
133446
  }
133447
133447
  if (!_isIE) {
@@ -139436,7 +139436,7 @@ You might need to use a local HTTP server (instead of file://): https://reactjs.
139436
139436
  var strProperties = "properties";
139437
139437
  var strTrue = "true";
139438
139438
  function _setValueIf(target, field, value) {
139439
- return setValue(target, field, value, isTruthy);
139439
+ return setValue(target, field, value, isTruthy2);
139440
139440
  }
139441
139441
  function _extractPartAExtensions(logger3, item, env) {
139442
139442
  var envTags = env[_DYN_TAGS] = env[_DYN_TAGS] || {};
@@ -140083,7 +140083,7 @@ You might need to use a local HTTP server (instead of file://): https://reactjs.
140083
140083
  return httpXHROverride && httpXHROverride.sendPOST;
140084
140084
  }
140085
140085
  var defaultAppInsightsChannelConfig = objDeepFreeze((_a$3 = {
140086
- endpointUrl: cfgDfValidate(isTruthy, DEFAULT_BREEZE_ENDPOINT + DEFAULT_BREEZE_PATH)
140086
+ endpointUrl: cfgDfValidate(isTruthy2, DEFAULT_BREEZE_ENDPOINT + DEFAULT_BREEZE_PATH)
140087
140087
  }, _a$3[_DYN_EMIT_LINE_DELIMITED_0] = cfgDfBoolean(), _a$3[_DYN_MAX_BATCH_INTERVAL] = 15000, _a$3[_DYN_MAX_BATCH_SIZE_IN_BY1] = 102400, _a$3.disableTelemetry = cfgDfBoolean(), _a$3[_DYN_ENABLE_SESSION_STORA5] = cfgDfBoolean(true), _a$3.isRetryDisabled = cfgDfBoolean(), _a$3[_DYN_IS_BEACON_API_DISABL3] = cfgDfBoolean(true), _a$3[_DYN_DISABLE_SEND_BEACON_7] = cfgDfBoolean(true), _a$3[_DYN_DISABLE_XHR] = cfgDfBoolean(), _a$3[_DYN_ONUNLOAD_DISABLE_FET6] = cfgDfBoolean(), _a$3[_DYN_ONUNLOAD_DISABLE_BEA2] = cfgDfBoolean(), _a$3[_DYN_INSTRUMENTATION_KEY$1] = UNDEFINED_VALUE$1, _a$3.namePrefix = UNDEFINED_VALUE$1, _a$3.samplingPercentage = cfgDfValidate(_chkSampling, 100), _a$3[_DYN_CUSTOM_HEADERS] = UNDEFINED_VALUE$1, _a$3[_DYN_CONVERT_UNDEFINED] = UNDEFINED_VALUE$1, _a$3[_DYN_EVENTS_LIMIT_IN_MEM] = 1e4, _a$3[_DYN_BUFFER_OVERRIDE] = false, _a$3.httpXHROverride = { isVal: isOverrideFn, v: UNDEFINED_VALUE$1 }, _a$3[_DYN_ALWAYS_USE_XHR_OVERR4] = cfgDfBoolean(), _a$3.transports = UNDEFINED_VALUE$1, _a$3.retryCodes = UNDEFINED_VALUE$1, _a$3));
140088
140088
  function _chkSampling(value) {
140089
140089
  return !isNaN(value) && value > 0 && value <= 100;
@@ -143183,9 +143183,9 @@ You might need to use a local HTTP server (instead of file://): https://reactjs.
143183
143183
  return !!(value && value.then && isFunction5(value.then));
143184
143184
  }
143185
143185
  function isNotTruthy(value) {
143186
- return !value || !/* @__PURE__ */ isTruthy(value);
143186
+ return !value || !/* @__PURE__ */ isTruthy2(value);
143187
143187
  }
143188
- function isTruthy(value) {
143188
+ function isTruthy2(value) {
143189
143189
  return !(!value || /* @__PURE__ */ safeGet(function() {
143190
143190
  return !(value && 0 + value);
143191
143191
  }, !value));
@@ -146379,7 +146379,7 @@ You might need to use a local HTTP server (instead of file://): https://reactjs.
146379
146379
  theValue = strTrim(/* @__PURE__ */ strLeft(value, idx));
146380
146380
  values = _extractParts(strSubstring(value, idx + 1));
146381
146381
  }
146382
- setValue(values, STR_DOMAIN, domain2 || _domain, isTruthy, isUndefined5);
146382
+ setValue(values, STR_DOMAIN, domain2 || _domain, isTruthy2, isUndefined5);
146383
146383
  if (!/* @__PURE__ */ isNullOrUndefined(maxAgeSec)) {
146384
146384
  var _isIE = isIE();
146385
146385
  if (/* @__PURE__ */ isUndefined5(values[strExpires])) {
@@ -146388,7 +146388,7 @@ You might need to use a local HTTP server (instead of file://): https://reactjs.
146388
146388
  if (expireMs > 0) {
146389
146389
  var expiry = /* @__PURE__ */ new Date;
146390
146390
  expiry.setTime(expireMs);
146391
- setValue(values, strExpires, _formatDate(expiry, !_isIE ? strToUTCString : strToGMTString) || _formatDate(expiry, _isIE ? strToGMTString : strToUTCString) || STR_EMPTY$1, isTruthy);
146391
+ setValue(values, strExpires, _formatDate(expiry, !_isIE ? strToUTCString : strToGMTString) || _formatDate(expiry, _isIE ? strToGMTString : strToUTCString) || STR_EMPTY$1, isTruthy2);
146392
146392
  }
146393
146393
  }
146394
146394
  if (!_isIE) {
@@ -149504,7 +149504,7 @@ You might need to use a local HTTP server (instead of file://): https://reactjs.
149504
149504
  exports3.isSampledFlag = isSampledFlag;
149505
149505
  exports3.isString = isString6;
149506
149506
  exports3.isSymbol = isSymbol;
149507
- exports3.isTruthy = isTruthy;
149507
+ exports3.isTruthy = isTruthy2;
149508
149508
  exports3.isTypeof = isTypeof;
149509
149509
  exports3.isUndefined = isUndefined5;
149510
149510
  exports3.isValidSpanId = isValidSpanId;
@@ -193397,7 +193397,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
193397
193397
  var useEffect8 = React8.useEffect;
193398
193398
  var useMemo9 = React8.useMemo;
193399
193399
  var useDebugValue3 = React8.useDebugValue;
193400
- exports2.useSyncExternalStoreWithSelector = function(subscribe, getSnapshot, getServerSnapshot, selector, isEqual) {
193400
+ exports2.useSyncExternalStoreWithSelector = function(subscribe, getSnapshot, getServerSnapshot, selector, isEqual2) {
193401
193401
  var instRef = useRef6(null);
193402
193402
  if (instRef.current === null) {
193403
193403
  var inst = { hasValue: false, value: null };
@@ -193410,9 +193410,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
193410
193410
  hasMemo = true;
193411
193411
  memoizedSnapshot = nextSnapshot;
193412
193412
  nextSnapshot = selector(nextSnapshot);
193413
- if (isEqual !== undefined && inst.hasValue) {
193413
+ if (isEqual2 !== undefined && inst.hasValue) {
193414
193414
  var currentSelection = inst.value;
193415
- if (isEqual(currentSelection, nextSnapshot))
193415
+ if (isEqual2(currentSelection, nextSnapshot))
193416
193416
  return memoizedSelection = currentSelection;
193417
193417
  }
193418
193418
  return memoizedSelection = nextSnapshot;
@@ -193421,7 +193421,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
193421
193421
  if (objectIs(memoizedSnapshot, nextSnapshot))
193422
193422
  return currentSelection;
193423
193423
  var nextSelection = selector(nextSnapshot);
193424
- if (isEqual !== undefined && isEqual(currentSelection, nextSelection))
193424
+ if (isEqual2 !== undefined && isEqual2(currentSelection, nextSelection))
193425
193425
  return memoizedSnapshot = nextSnapshot, currentSelection;
193426
193426
  memoizedSnapshot = nextSnapshot;
193427
193427
  return memoizedSelection = nextSelection;
@@ -193435,7 +193435,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
193435
193435
  return memoizedSelector(maybeGetServerSnapshot());
193436
193436
  }
193437
193437
  ];
193438
- }, [getSnapshot, getServerSnapshot, selector, isEqual]);
193438
+ }, [getSnapshot, getServerSnapshot, selector, isEqual2]);
193439
193439
  var value = useSyncExternalStore2(subscribe, instRef[0], instRef[1]);
193440
193440
  useEffect8(function() {
193441
193441
  inst.hasValue = true;
@@ -193456,7 +193456,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
193456
193456
  }
193457
193457
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart === "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
193458
193458
  var React8 = require_react(), objectIs = typeof Object.is === "function" ? Object.is : is3, useSyncExternalStore2 = React8.useSyncExternalStore, useRef6 = React8.useRef, useEffect8 = React8.useEffect, useMemo9 = React8.useMemo, useDebugValue3 = React8.useDebugValue;
193459
- exports2.useSyncExternalStoreWithSelector = function(subscribe, getSnapshot, getServerSnapshot, selector, isEqual) {
193459
+ exports2.useSyncExternalStoreWithSelector = function(subscribe, getSnapshot, getServerSnapshot, selector, isEqual2) {
193460
193460
  var instRef = useRef6(null);
193461
193461
  if (instRef.current === null) {
193462
193462
  var inst = { hasValue: false, value: null };
@@ -193469,9 +193469,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
193469
193469
  hasMemo = true;
193470
193470
  memoizedSnapshot = nextSnapshot;
193471
193471
  nextSnapshot = selector(nextSnapshot);
193472
- if (isEqual !== undefined && inst.hasValue) {
193472
+ if (isEqual2 !== undefined && inst.hasValue) {
193473
193473
  var currentSelection = inst.value;
193474
- if (isEqual(currentSelection, nextSnapshot))
193474
+ if (isEqual2(currentSelection, nextSnapshot))
193475
193475
  return memoizedSelection = currentSelection;
193476
193476
  }
193477
193477
  return memoizedSelection = nextSnapshot;
@@ -193480,7 +193480,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
193480
193480
  if (objectIs(memoizedSnapshot, nextSnapshot))
193481
193481
  return currentSelection;
193482
193482
  var nextSelection = selector(nextSnapshot);
193483
- if (isEqual !== undefined && isEqual(currentSelection, nextSelection))
193483
+ if (isEqual2 !== undefined && isEqual2(currentSelection, nextSelection))
193484
193484
  return memoizedSnapshot = nextSnapshot, currentSelection;
193485
193485
  memoizedSnapshot = nextSnapshot;
193486
193486
  return memoizedSelection = nextSelection;
@@ -193494,7 +193494,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
193494
193494
  return memoizedSelector(maybeGetServerSnapshot());
193495
193495
  }
193496
193496
  ];
193497
- }, [getSnapshot, getServerSnapshot, selector, isEqual]);
193497
+ }, [getSnapshot, getServerSnapshot, selector, isEqual2]);
193498
193498
  var value = useSyncExternalStore2(subscribe, instRef[0], instRef[1]);
193499
193499
  useEffect8(function() {
193500
193500
  inst.hasValue = true;
@@ -282707,7 +282707,7 @@ import"./packager-tool.js";
282707
282707
  var package_default = {
282708
282708
  name: "@uipath/case-tool",
282709
282709
  license: "MIT",
282710
- version: "1.197.0-preview.65",
282710
+ version: "1.197.0-preview.67",
282711
282711
  description: "Manage Case Management instances, processes, and incidents.",
282712
282712
  private: false,
282713
282713
  repository: {
@@ -288082,9 +288082,228 @@ function getOutputFilter() {
288082
288082
  return filterSlot.get();
288083
288083
  }
288084
288084
 
288085
+ // ../common/src/telemetry/command-terminal.ts
288086
+ var recordedFailureSlot = singleton("CommandTelemetryFailure");
288087
+ var AUTH_ERROR_CODES = new Set([
288088
+ "authentication_required",
288089
+ "permission_denied"
288090
+ ]);
288091
+ var VALIDATION_ERROR_CODES = new Set(["invalid_argument"]);
288092
+ var NETWORK_HTTP_ERROR_CODES = new Set([
288093
+ "network_error",
288094
+ "rate_limited",
288095
+ "server_error",
288096
+ "not_found",
288097
+ "method_not_allowed"
288098
+ ]);
288099
+ var TIMEOUT_ERROR_CODES = new Set(["timeout"]);
288100
+ var NETWORK_OS_ERROR_CODES = new Set([
288101
+ "ECONNREFUSED",
288102
+ "ECONNRESET",
288103
+ "ENOTFOUND",
288104
+ "EAI_AGAIN",
288105
+ "EPIPE",
288106
+ "EHOSTUNREACH",
288107
+ "ENETUNREACH",
288108
+ "EAI_FAIL"
288109
+ ]);
288110
+ var TIMEOUT_OS_ERROR_CODES = new Set(["ETIMEDOUT", "ESOCKETTIMEDOUT"]);
288111
+ var TLS_ERROR_CODES2 = new Set([
288112
+ "SELF_SIGNED_CERT_IN_CHAIN",
288113
+ "DEPTH_ZERO_SELF_SIGNED_CERT",
288114
+ "UNABLE_TO_VERIFY_LEAF_SIGNATURE",
288115
+ "UNABLE_TO_GET_ISSUER_CERT_LOCALLY",
288116
+ "UNABLE_TO_GET_ISSUER_CERT",
288117
+ "CERT_HAS_EXPIRED",
288118
+ "CERT_UNTRUSTED",
288119
+ "ERR_TLS_CERT_ALTNAME_INVALID"
288120
+ ]);
288121
+ var MISSING_DEPENDENCY_CODES = new Set([
288122
+ "MODULE_NOT_FOUND",
288123
+ "ERR_MODULE_NOT_FOUND"
288124
+ ]);
288125
+ var INTERNAL_ERROR_NAMES = new Set([
288126
+ "TypeError",
288127
+ "ReferenceError",
288128
+ "SyntaxError",
288129
+ "RangeError"
288130
+ ]);
288131
+ function isRecord(value) {
288132
+ return value !== null && typeof value === "object";
288133
+ }
288134
+ function stringField(value, field) {
288135
+ if (!isRecord(value)) {
288136
+ return;
288137
+ }
288138
+ const raw = value[field];
288139
+ return typeof raw === "string" ? raw : undefined;
288140
+ }
288141
+ function numberField(value, field) {
288142
+ if (!isRecord(value)) {
288143
+ return;
288144
+ }
288145
+ const raw = value[field];
288146
+ return typeof raw === "number" ? raw : undefined;
288147
+ }
288148
+ function findStringInCauseChain(error, field) {
288149
+ let current = error;
288150
+ for (let depth = 0;depth < 5 && current !== null && typeof current === "object"; depth++) {
288151
+ const value = stringField(current, field);
288152
+ if (value) {
288153
+ return value;
288154
+ }
288155
+ current = current.cause;
288156
+ }
288157
+ return;
288158
+ }
288159
+ function findCodeInCauseChain(error) {
288160
+ return findStringInCauseChain(error, "code");
288161
+ }
288162
+ function isSpawnEnoent(error) {
288163
+ const code = findCodeInCauseChain(error);
288164
+ if (code !== "ENOENT") {
288165
+ return false;
288166
+ }
288167
+ const syscall = findStringInCauseChain(error, "syscall");
288168
+ return syscall?.startsWith("spawn") === true;
288169
+ }
288170
+ function isCancellationError(error, exitCode, pollSignal) {
288171
+ if (exitCode === 130) {
288172
+ return true;
288173
+ }
288174
+ if (!isRecord(error)) {
288175
+ return false;
288176
+ }
288177
+ if (numberField(error, "exitCode") === 130) {
288178
+ return true;
288179
+ }
288180
+ const name2 = stringField(error, "name");
288181
+ if (name2 === "ExitPromptError") {
288182
+ return true;
288183
+ }
288184
+ if (name2 === "AbortError" && pollSignal?.aborted) {
288185
+ return true;
288186
+ }
288187
+ const message = stringField(error, "message");
288188
+ return message?.includes("SIGINT") === true;
288189
+ }
288190
+ function terminalSignalFor(input, outcome) {
288191
+ if (input.recordedFailure?.terminalSignal) {
288192
+ return input.recordedFailure.terminalSignal;
288193
+ }
288194
+ const explicit = findStringInCauseChain(input.error, "terminalSignal") ?? findStringInCauseChain(input.error, "signal");
288195
+ if (explicit) {
288196
+ return explicit;
288197
+ }
288198
+ return outcome === "cancelled" ? "SIGINT" : undefined;
288199
+ }
288200
+ function classifyHttpStatus(status) {
288201
+ if (status === 401 || status === 403) {
288202
+ return "auth";
288203
+ }
288204
+ if (status === 400 || status === 409 || status === 422) {
288205
+ return "validation";
288206
+ }
288207
+ if (status === 408) {
288208
+ return "timeout";
288209
+ }
288210
+ return "network_http";
288211
+ }
288212
+ function classifyFromResult(result) {
288213
+ switch (result) {
288214
+ case "AuthenticationError":
288215
+ return "auth";
288216
+ case "ValidationError":
288217
+ return "validation";
288218
+ case "TimeoutError":
288219
+ return "timeout";
288220
+ default:
288221
+ return;
288222
+ }
288223
+ }
288224
+ function classifyFromErrorCode(errorCode) {
288225
+ if (!errorCode) {
288226
+ return;
288227
+ }
288228
+ if (AUTH_ERROR_CODES.has(errorCode)) {
288229
+ return "auth";
288230
+ }
288231
+ if (VALIDATION_ERROR_CODES.has(errorCode)) {
288232
+ return "validation";
288233
+ }
288234
+ if (TIMEOUT_ERROR_CODES.has(errorCode)) {
288235
+ return "timeout";
288236
+ }
288237
+ if (NETWORK_HTTP_ERROR_CODES.has(errorCode)) {
288238
+ return "network_http";
288239
+ }
288240
+ return;
288241
+ }
288242
+ function classifyFromError(error) {
288243
+ const code = findCodeInCauseChain(error);
288244
+ if (code) {
288245
+ if (code.startsWith("commander.")) {
288246
+ return "validation";
288247
+ }
288248
+ if (NETWORK_OS_ERROR_CODES.has(code) || TLS_ERROR_CODES2.has(code)) {
288249
+ return "network_http";
288250
+ }
288251
+ if (TIMEOUT_OS_ERROR_CODES.has(code)) {
288252
+ return "timeout";
288253
+ }
288254
+ if (MISSING_DEPENDENCY_CODES.has(code) || isSpawnEnoent(error)) {
288255
+ return "missing_dependency";
288256
+ }
288257
+ }
288258
+ const message = stringField(error, "message");
288259
+ if (message?.includes("fetch failed") === true) {
288260
+ return "network_http";
288261
+ }
288262
+ const name2 = stringField(error, "name");
288263
+ if (name2 && INTERNAL_ERROR_NAMES.has(name2)) {
288264
+ return "internal";
288265
+ }
288266
+ return;
288267
+ }
288268
+ function classifyError2(input) {
288269
+ const recorded = input.recordedFailure;
288270
+ if (recorded?.errorClass) {
288271
+ return recorded.errorClass;
288272
+ }
288273
+ const status = recorded?.context?.httpStatus;
288274
+ if (status !== undefined) {
288275
+ return classifyHttpStatus(status);
288276
+ }
288277
+ return classifyFromResult(recorded?.result) ?? classifyFromErrorCode(recorded?.errorCode) ?? classifyFromError(input.error) ?? "unknown";
288278
+ }
288279
+ function recordCommandFailureTelemetry(failure) {
288280
+ recordedFailureSlot.set(failure);
288281
+ }
288282
+ function clearRecordedCommandFailureTelemetry() {
288283
+ recordedFailureSlot.clear();
288284
+ }
288285
+ function takeRecordedCommandFailureTelemetry() {
288286
+ const failure = recordedFailureSlot.get();
288287
+ recordedFailureSlot.clear();
288288
+ return failure;
288289
+ }
288290
+ function buildCommandTerminalTelemetryProperties(input) {
288291
+ const cancelled = isCancellationError(input.error, input.exitCode, input.pollSignal);
288292
+ const outcome = input.recordedFailure?.terminalOutcome ?? (input.exitCode === 0 ? "success" : cancelled ? "cancelled" : "failure");
288293
+ const errorClass = outcome === "success" || outcome === "no_op" ? undefined : outcome === "cancelled" ? "user_cancelled" : classifyError2(input);
288294
+ const terminalSignal = terminalSignalFor(input, outcome);
288295
+ return {
288296
+ exit_code: input.exitCode,
288297
+ terminal_outcome: outcome,
288298
+ ...errorClass ? { error_class: errorClass } : {},
288299
+ ...terminalSignal ? { terminal_signal: terminalSignal } : {}
288300
+ };
288301
+ }
288302
+
288085
288303
  // ../common/src/telemetry/telemetry-events.ts
288086
288304
  var CommonTelemetryEvents = {
288087
- Error: "uip.error"
288305
+ Error: "uip.error",
288306
+ ShipSucceeded: "ship_succeeded"
288088
288307
  };
288089
288308
 
288090
288309
  // ../common/src/registry.ts
@@ -288151,6 +288370,136 @@ function formatMessage(category, name2, properties) {
288151
288370
  }
288152
288371
  return message;
288153
288372
  }
288373
+ // ../common/src/telemetry/detect-agent.ts
288374
+ var KNOWN_AGENTS = [
288375
+ { envVar: "CLAUDECODE", value: "1", id: "claude-code" },
288376
+ { envVar: "CURSOR_AGENT", value: "1", id: "cursor" },
288377
+ { envVar: "GEMINI_CLI", value: "1", id: "gemini-cli" },
288378
+ { envVar: "CODEX_THREAD_ID", id: "codex" },
288379
+ { envVar: "CODEX_SANDBOX", id: "codex" },
288380
+ { envVar: "AUGMENT_AGENT", value: "1", id: "augment" },
288381
+ { envVar: "CLINE_ACTIVE", value: "true", id: "cline" }
288382
+ ];
288383
+ function detectAgentFromEnv(env) {
288384
+ for (const agent of KNOWN_AGENTS) {
288385
+ const envValue = env[agent.envVar];
288386
+ if (agent.value !== undefined) {
288387
+ if (envValue === agent.value)
288388
+ return agent.id;
288389
+ } else {
288390
+ if (envValue)
288391
+ return agent.id;
288392
+ }
288393
+ }
288394
+ const agentEnv = env.AGENT;
288395
+ if (agentEnv) {
288396
+ if (agentEnv === "1" || agentEnv === "true")
288397
+ return "unknown";
288398
+ if (agentEnv.length <= 32)
288399
+ return agentEnv.toLowerCase();
288400
+ }
288401
+ return;
288402
+ }
288403
+ // ../common/src/telemetry/environment-info.ts
288404
+ var LOCAL_HOSTS = new Set(["localhost", "127.0.0.1", "::1", "[::1]"]);
288405
+ // ../common/src/telemetry/execution-context.ts
288406
+ var authSignalSlot = singleton("TelemetryExecutionContextAuthSignal");
288407
+ var isTruthy = (value) => value !== undefined && value !== "" && value !== "0" && value.toLowerCase() !== "false";
288408
+ var isEqual = (value, expected) => value?.toLowerCase() === expected;
288409
+ var CI_SIGNATURES = [
288410
+ {
288411
+ provider: "github_actions",
288412
+ matches: (env) => isTruthy(env.GITHUB_ACTIONS),
288413
+ isScheduler: (env) => env.GITHUB_EVENT_NAME === "schedule"
288414
+ },
288415
+ {
288416
+ provider: "azure_devops",
288417
+ matches: (env) => isTruthy(env.TF_BUILD),
288418
+ isScheduler: (env) => isEqual(env.BUILD_REASON, "schedule")
288419
+ },
288420
+ {
288421
+ provider: "gitlab",
288422
+ matches: (env) => isTruthy(env.GITLAB_CI),
288423
+ isScheduler: (env) => env.CI_PIPELINE_SOURCE === "schedule"
288424
+ },
288425
+ {
288426
+ provider: "circleci",
288427
+ matches: (env) => isTruthy(env.CIRCLECI),
288428
+ isScheduler: (env) => env.CIRCLE_PIPELINE_TRIGGER_SOURCE === "scheduled_pipeline"
288429
+ },
288430
+ {
288431
+ provider: "jenkins",
288432
+ matches: (env) => isTruthy(env.JENKINS_URL) || isTruthy(env.JENKINS_HOME)
288433
+ },
288434
+ {
288435
+ provider: "teamcity",
288436
+ matches: (env) => isTruthy(env.TEAMCITY_VERSION)
288437
+ },
288438
+ {
288439
+ provider: "buildkite",
288440
+ matches: (env) => isTruthy(env.BUILDKITE),
288441
+ isScheduler: (env) => env.BUILDKITE_SOURCE === "schedule"
288442
+ },
288443
+ {
288444
+ provider: "bitbucket",
288445
+ matches: (env) => isTruthy(env.BITBUCKET_BUILD_NUMBER)
288446
+ },
288447
+ {
288448
+ provider: "travis",
288449
+ matches: (env) => isTruthy(env.TRAVIS)
288450
+ },
288451
+ {
288452
+ provider: "appveyor",
288453
+ matches: (env) => isTruthy(env.APPVEYOR)
288454
+ },
288455
+ {
288456
+ provider: "generic",
288457
+ matches: (env) => isTruthy(env.CI)
288458
+ }
288459
+ ];
288460
+ function currentEnv() {
288461
+ return typeof process === "undefined" ? {} : process.env;
288462
+ }
288463
+ function currentTtyState() {
288464
+ if (typeof process === "undefined")
288465
+ return false;
288466
+ return Boolean(process.stdout?.isTTY || process.stdin?.isTTY || process.stderr?.isTTY);
288467
+ }
288468
+ function detectCi(env) {
288469
+ const signature = CI_SIGNATURES.find((candidate) => candidate.matches(env));
288470
+ if (!signature)
288471
+ return;
288472
+ return {
288473
+ executionContext: signature.isScheduler?.(env) ? "scheduler" : "ci",
288474
+ ciProvider: signature.provider
288475
+ };
288476
+ }
288477
+ function detectExecutionContext(options = {}) {
288478
+ const env = options.env ?? currentEnv();
288479
+ const ci = detectCi(env);
288480
+ if (ci)
288481
+ return ci;
288482
+ const agent = options.agent ?? detectAgentFromEnv(env);
288483
+ if (agent) {
288484
+ return { executionContext: "agent" };
288485
+ }
288486
+ const authSignal = options.authSignal ?? authSignalSlot.get();
288487
+ if (authSignal === "service_account") {
288488
+ return { executionContext: "service_account" };
288489
+ }
288490
+ const isTty = options.isTty ?? currentTtyState();
288491
+ if (isTty) {
288492
+ return { executionContext: "manual" };
288493
+ }
288494
+ return { executionContext: "unknown" };
288495
+ }
288496
+ function getExecutionContextTelemetryProperties() {
288497
+ const detected = detectExecutionContext();
288498
+ return {
288499
+ execution_context: detected.executionContext,
288500
+ ...detected.ciProvider ? { ci_provider: detected.ciProvider } : {}
288501
+ };
288502
+ }
288154
288503
  // ../common/src/telemetry/node-context-storage.ts
288155
288504
  import { AsyncLocalStorage } from "node:async_hooks";
288156
288505
 
@@ -288163,6 +288512,26 @@ class NodeContextStorage {
288163
288512
  return this.storage.getStore();
288164
288513
  }
288165
288514
  }
288515
+ // ../common/src/telemetry/session-id.ts
288516
+ var TELEMETRY_SESSION_ID_ENV = "UIPATH_SESSION_ID";
288517
+ var TELEMETRY_SESSION_ID_PROPERTY = "session_id";
288518
+ var telemetrySessionIdSlot = singleton("TelemetrySessionId");
288519
+ function getProcessEnv() {
288520
+ return globalThis.process?.env;
288521
+ }
288522
+ function normalizeSessionId(value) {
288523
+ if (typeof value !== "string" && typeof value !== "number" && typeof value !== "boolean") {
288524
+ return;
288525
+ }
288526
+ const trimmed = String(value).trim();
288527
+ return trimmed || undefined;
288528
+ }
288529
+ function getConfiguredTelemetrySessionId() {
288530
+ return normalizeSessionId(getProcessEnv()?.[TELEMETRY_SESSION_ID_ENV]);
288531
+ }
288532
+ function resolveTelemetrySessionId(existingSessionId) {
288533
+ return getConfiguredTelemetrySessionId() ?? normalizeSessionId(existingSessionId);
288534
+ }
288166
288535
  // ../common/src/telemetry/global-telemetry-properties.ts
288167
288536
  var telemetryPropsSlot = singleton("TelemetryDefaultProps");
288168
288537
  function getGlobalTelemetryProperties() {
@@ -288247,12 +288616,22 @@ class TelemetryService {
288247
288616
  return this.contextStorage.getContext();
288248
288617
  }
288249
288618
  enrichPropertiesWithContext(properties, context) {
288250
- return {
288251
- ...getGlobalTelemetryProperties(),
288619
+ const globalProperties = getGlobalTelemetryProperties();
288620
+ const existingSessionId = properties?.[TELEMETRY_SESSION_ID_PROPERTY] ?? this.defaultProperties?.[TELEMETRY_SESSION_ID_PROPERTY] ?? globalProperties?.[TELEMETRY_SESSION_ID_PROPERTY];
288621
+ const sessionId = resolveTelemetrySessionId(existingSessionId);
288622
+ const enriched = {
288623
+ ...getExecutionContextTelemetryProperties(),
288624
+ ...globalProperties,
288252
288625
  ...this.defaultProperties,
288253
288626
  ...properties,
288254
288627
  ...context
288255
288628
  };
288629
+ if (sessionId === undefined) {
288630
+ delete enriched[TELEMETRY_SESSION_ID_PROPERTY];
288631
+ } else {
288632
+ enriched[TELEMETRY_SESSION_ID_PROPERTY] = sessionId;
288633
+ }
288634
+ return enriched;
288256
288635
  }
288257
288636
  generateId() {
288258
288637
  return crypto.randomUUID().replaceAll("-", "");
@@ -288722,8 +289101,24 @@ var OutputFormatter;
288722
289101
  data.ErrorCode ??= defaultErrorCodeForFailure(data);
288723
289102
  data.Retry ??= defaultRetryForErrorCode(data.ErrorCode);
288724
289103
  process.exitCode = EXIT_CODES[data.Result] ?? 1;
288725
- const { SuppressTelemetry, ...envelope } = data;
288726
- if (!SuppressTelemetry) {
289104
+ recordCommandFailureTelemetry({
289105
+ result: data.Result,
289106
+ errorCode: data.ErrorCode,
289107
+ retry: data.Retry,
289108
+ message: data.Message,
289109
+ context: data.Context,
289110
+ exitCode: process.exitCode,
289111
+ errorClass: data.TelemetryErrorClass,
289112
+ terminalOutcome: data.TelemetryTerminalOutcome,
289113
+ terminalSignal: data.TelemetryTerminalSignal
289114
+ });
289115
+ const suppressTelemetry = data.SuppressTelemetry === true;
289116
+ const envelope = { ...data };
289117
+ delete envelope.SuppressTelemetry;
289118
+ delete envelope.TelemetryErrorClass;
289119
+ delete envelope.TelemetryTerminalOutcome;
289120
+ delete envelope.TelemetryTerminalSignal;
289121
+ if (!suppressTelemetry) {
288727
289122
  telemetry.trackEvent(CommonTelemetryEvents.Error, {
288728
289123
  result: data.Result,
288729
289124
  errorCode: data.ErrorCode,
@@ -288786,6 +289181,158 @@ var OutputFormatter;
288786
289181
  OutputFormatter.formatToString = formatToString;
288787
289182
  })(OutputFormatter ||= {});
288788
289183
 
289184
+ // ../common/src/telemetry/command-attribution.ts
289185
+ var LEGACY_SKILL_NAMESPACE = "uipath:";
289186
+ var MAX_SKILL_NAME_LENGTH = 80;
289187
+ var SKILL_NAME_PATTERN = /^[a-z0-9][a-z0-9-]*[a-z0-9]$/;
289188
+ function productMode(productArea, mode) {
289189
+ return { product_area: productArea, mode };
289190
+ }
289191
+ function attributionRecord(groups) {
289192
+ const record = {};
289193
+ for (const [productArea, mode, names] of groups) {
289194
+ const attribution = productMode(productArea, mode);
289195
+ for (const name2 of names) {
289196
+ record[name2] = attribution;
289197
+ }
289198
+ }
289199
+ return record;
289200
+ }
289201
+ function commandAttribution(groups) {
289202
+ const entries = [];
289203
+ for (const [productArea, mode, prefixes] of groups) {
289204
+ const attribution = productMode(productArea, mode);
289205
+ for (const prefix of prefixes) {
289206
+ entries.push({ prefix, attribution });
289207
+ }
289208
+ }
289209
+ return entries;
289210
+ }
289211
+ var SKILL_ATTRIBUTION = attributionRecord([
289212
+ ["admin", "operate", ["uipath-admin"]],
289213
+ ["agents", "build", ["uipath-agents"]],
289214
+ ["api-workflow", "build", ["uipath-api-workflow"]],
289215
+ ["automation-discovery", "build", ["uipath-automation-discovery"]],
289216
+ ["coded-apps", "build", ["uipath-coded-apps"]],
289217
+ ["data-fabric", "operate", ["uipath-data-fabric"]],
289218
+ ["cli", "troubleshoot", ["uipath-feedback"]],
289219
+ ["governance", "operate", ["uipath-governance"]],
289220
+ ["action-center", "build", ["uipath-human-in-the-loop"]],
289221
+ ["document-understanding", "build", ["uipath-ixp"]],
289222
+ [
289223
+ "maestro",
289224
+ "build",
289225
+ ["uipath-maestro-bpmn", "uipath-maestro-case", "uipath-maestro-flow"]
289226
+ ],
289227
+ ["agenthub", "build", ["uipath-mcp-servers"]],
289228
+ ["solution", "build", ["uipath-planner", "uipath-solution"]],
289229
+ ["platform", "operate", ["uipath-platform"]],
289230
+ ["quality", "troubleshoot", ["uipath-review"]],
289231
+ ["rpa", "build", ["uipath-rpa"]],
289232
+ ["cli", "operate", ["uipath-skill-catalog"]],
289233
+ ["action-center", "operate", ["uipath-tasks"]],
289234
+ ["test-manager", "operate", ["uipath-test"]],
289235
+ ["platform", "troubleshoot", ["uipath-troubleshoot"]]
289236
+ ]);
289237
+ var KNOWN_SKILL_NAMES = new Set(Object.keys(SKILL_ATTRIBUTION));
289238
+ var COMMAND_ATTRIBUTION = commandAttribution([
289239
+ ["cli", "troubleshoot", ["uip.feedback"]],
289240
+ ["llm-gateway", "operate", ["uip.llm-configuration", "uip.model-hub"]],
289241
+ ["context-grounding", "build", ["uip.context-grounding"]],
289242
+ ["api-workflow", "build", ["uip.api-workflow"]],
289243
+ ["rpa", "build", ["uip.rpa-legacy"]],
289244
+ ["conversational", "operate", ["uip.conversational"]],
289245
+ ["agents", "build", ["uip.codedagent", "uip.agent"]],
289246
+ ["agenthub", "build", ["uip.agenthub"]],
289247
+ ["coded-apps", "build", ["uip.codedapp"]],
289248
+ ["functions", "build", ["uip.functions"]],
289249
+ ["solution", "build", ["uip.solution"]],
289250
+ ["maestro", "build", ["uip.maestro", "uip.case", "uip.flow"]],
289251
+ ["llm-observability", "troubleshoot", ["uip.traces"]],
289252
+ ["platform", "operate", ["uip.platform"]],
289253
+ ["admin", "operate", ["uip.admin"]],
289254
+ ["automation-ops", "operate", ["uip.aops"]],
289255
+ ["documentation", "troubleshoot", ["uip.docsai"]],
289256
+ ["governance", "operate", ["uip.gov"]],
289257
+ ["insights", "operate", ["uip.insights"]],
289258
+ ["document-understanding", "build", ["uip.ixp"]],
289259
+ ["process-mining", "operate", ["uip.pm"]],
289260
+ ["action-center", "operate", ["uip.tasks"]],
289261
+ ["test-manager", "operate", ["uip.tm"]],
289262
+ ["vertical-solutions", "build", ["uip.vss"]],
289263
+ ["data-fabric", "operate", ["uip.df"]],
289264
+ ["integration-service", "build", ["uip.is"]],
289265
+ ["orchestrator", "operate", ["uip.or"]],
289266
+ [
289267
+ "cli",
289268
+ "operate",
289269
+ [
289270
+ "uip.login",
289271
+ "uip.logout",
289272
+ "uip.user",
289273
+ "uip.config",
289274
+ "uip.tools",
289275
+ "uip.skills",
289276
+ "uip.completion",
289277
+ "uip.update",
289278
+ "uip.mcp",
289279
+ "uip.track"
289280
+ ]
289281
+ ]
289282
+ ]).sort((a, b) => b.prefix.length - a.prefix.length);
289283
+ function normalizeCommandPath(value) {
289284
+ if (typeof value !== "string") {
289285
+ return;
289286
+ }
289287
+ const trimmed = value.trim().toLowerCase();
289288
+ if (!trimmed) {
289289
+ return;
289290
+ }
289291
+ const tokens = trimmed.includes(" ") ? trimmed.split(/\s+/).filter((token) => token.length > 0).filter((token) => !token.startsWith("-")) : trimmed.split(".").filter((token) => token.length > 0);
289292
+ if (tokens.length === 0) {
289293
+ return;
289294
+ }
289295
+ const commandTokens = tokens[0] === "uip" ? tokens : ["uip", ...tokens];
289296
+ return commandTokens.join(".");
289297
+ }
289298
+ function getCommandProductModeAttribution(commandPath) {
289299
+ const normalized = normalizeCommandPath(commandPath);
289300
+ if (!normalized) {
289301
+ return;
289302
+ }
289303
+ return COMMAND_ATTRIBUTION.find(({ prefix }) => normalized === prefix || normalized.startsWith(`${prefix}.`))?.attribution;
289304
+ }
289305
+ function normalizeSkillNameWithOptions(value, options) {
289306
+ if (typeof value !== "string") {
289307
+ return;
289308
+ }
289309
+ const normalized = value.trim().toLowerCase();
289310
+ if (!normalized) {
289311
+ return;
289312
+ }
289313
+ const hasLegacyNamespace = normalized.startsWith(LEGACY_SKILL_NAMESPACE);
289314
+ if (hasLegacyNamespace && !options.allowLegacyNamespace) {
289315
+ return;
289316
+ }
289317
+ const skillName = hasLegacyNamespace ? normalized.slice(LEGACY_SKILL_NAMESPACE.length) : normalized;
289318
+ if (skillName.length > MAX_SKILL_NAME_LENGTH || !SKILL_NAME_PATTERN.test(skillName) || !KNOWN_SKILL_NAMES.has(skillName)) {
289319
+ return;
289320
+ }
289321
+ return skillName;
289322
+ }
289323
+ function normalizeSkillName(value) {
289324
+ return normalizeSkillNameWithOptions(value, {
289325
+ allowLegacyNamespace: false
289326
+ });
289327
+ }
289328
+ function buildCommandTelemetryAttribution(commandPath, skillSource) {
289329
+ const skillName = normalizeSkillName(skillSource);
289330
+ return {
289331
+ ...skillName ? { skill_name: skillName } : {},
289332
+ ...getCommandProductModeAttribution(commandPath)
289333
+ };
289334
+ }
289335
+
288789
289336
  // ../common/src/telemetry/pii-redactor.ts
288790
289337
  var REDACTED = "[REDACTED]";
288791
289338
  var MAX_VALUE_LENGTH = 200;
@@ -288971,6 +289518,12 @@ function commandHelpHint(commandPath) {
288971
289518
  const command = commandPath.replace(/\./g, " ");
288972
289519
  return `An unexpected error occurred. Run '${command} --help' to verify command syntax, or run with --log-level debug for details.`;
288973
289520
  }
289521
+ function isPromptCancellation(error) {
289522
+ return error instanceof Error && error.name === "ExitPromptError";
289523
+ }
289524
+ function exitCodeFromProcess(fallback) {
289525
+ return typeof process.exitCode === "number" ? process.exitCode : fallback;
289526
+ }
288974
289527
  Command.prototype.trackedAction = function(context, fn, properties) {
288975
289528
  const command = this;
288976
289529
  return this.action(async (...args) => {
@@ -288978,6 +289531,8 @@ Command.prototype.trackedAction = function(context, fn, properties) {
288978
289531
  const props = typeof properties === "function" ? properties(...args) : properties;
288979
289532
  const startTime = performance.now();
288980
289533
  let errorMessage;
289534
+ let fallbackExitCode = EXIT_CODES.Success;
289535
+ clearRecordedCommandFailureTelemetry();
288981
289536
  const [error] = await catchError(fn(...args));
288982
289537
  if (error) {
288983
289538
  errorMessage = error instanceof Error ? error.message : String(error);
@@ -288992,6 +289547,8 @@ Command.prototype.trackedAction = function(context, fn, properties) {
288992
289547
  const customRetry = isRetryHint(typedRetry) ? typedRetry : undefined;
288993
289548
  const typedContext = typed.context ?? typed.Context;
288994
289549
  const customContext = isErrorContext(typedContext) ? typedContext : undefined;
289550
+ const cancellationExitCode = typed.exitCode === 130 || isPromptCancellation(error) ? 130 : undefined;
289551
+ fallbackExitCode = cancellationExitCode ?? EXIT_CODES[finalResult];
288995
289552
  OutputFormatter.error({
288996
289553
  Result: finalResult,
288997
289554
  ...customErrorCode ? { ErrorCode: customErrorCode } : {},
@@ -289000,16 +289557,26 @@ Command.prototype.trackedAction = function(context, fn, properties) {
289000
289557
  ...customRetry ? { Retry: customRetry } : {},
289001
289558
  ...customContext ? { Context: customContext } : {}
289002
289559
  });
289003
- context.exit(EXIT_CODES[finalResult]);
289560
+ context.exit(fallbackExitCode);
289004
289561
  }
289005
289562
  const durationMs = performance.now() - startTime;
289006
- const success = !error && (process.exitCode === undefined || process.exitCode === 0);
289563
+ const exitCode = fallbackExitCode === 130 ? fallbackExitCode : exitCodeFromProcess(fallbackExitCode);
289564
+ const recordedFailure = takeRecordedCommandFailureTelemetry();
289565
+ const success = !error && exitCode === 0;
289566
+ const terminalTelemetry = buildCommandTerminalTelemetryProperties({
289567
+ error,
289568
+ exitCode,
289569
+ recordedFailure,
289570
+ pollSignal: context.pollSignal
289571
+ });
289007
289572
  telemetry.trackEvent(telemetryName, redactProperties({
289008
289573
  ...extractCommandParams(command),
289009
289574
  ...props,
289575
+ ...buildCommandTelemetryAttribution(telemetryName, process.env.UIPATH_SKILL),
289010
289576
  command: "true",
289011
289577
  duration: String(durationMs),
289012
289578
  success: String(success),
289579
+ ...terminalTelemetry,
289013
289580
  ...errorMessage ? { errorMessage } : {}
289014
289581
  }));
289015
289582
  });
@@ -289295,6 +289862,8 @@ async function readStdin() {
289295
289862
  process.stdin.on("error", reject);
289296
289863
  });
289297
289864
  }
289865
+ // ../common/src/telemetry/ship-succeeded.ts
289866
+ var shippedKeysSlot = singleton("ShipSucceededDedupeKeys");
289298
289867
  // ../common/src/tool-provider.ts
289299
289868
  var factorySlot = singleton("PackagerFactoryProvider");
289300
289869
  // src/utils/schema-helpers.ts
@@ -359136,7 +359705,7 @@ class TextApiResponse {
359136
359705
  var package_default2 = {
359137
359706
  name: "@uipath/integrationservice-sdk",
359138
359707
  license: "MIT",
359139
- version: "1.197.0-preview.65",
359708
+ version: "1.197.0-preview.67",
359140
359709
  repository: {
359141
359710
  type: "git",
359142
359711
  url: "https://github.com/UiPath/cli.git",
@@ -373213,7 +373782,7 @@ function querystringSingleKey4(key, value, keyPrefix = "") {
373213
373782
  var package_default4 = {
373214
373783
  name: "@uipath/solution-sdk",
373215
373784
  license: "MIT",
373216
- version: "1.197.0-preview.65",
373785
+ version: "1.197.0-preview.67",
373217
373786
  repository: {
373218
373787
  type: "git",
373219
373788
  url: "https://github.com/UiPath/cli.git",
@@ -373274,7 +373843,7 @@ function normalizeProjectType(projectType) {
373274
373843
  function toPortableRelativePath(relativePath) {
373275
373844
  return relativePath.replace(/\\/g, "/");
373276
373845
  }
373277
- function isRecord(value) {
373846
+ function isRecord2(value) {
373278
373847
  return typeof value === "object" && value !== null && !Array.isArray(value);
373279
373848
  }
373280
373849
  async function updateUipxSolutionId(fs7, uipxPath, newSolutionId) {
@@ -373532,11 +374101,11 @@ async function readProjectManifest(fs7, filePath, useProjectJson) {
373532
374101
  null
373533
374102
  ];
373534
374103
  }
373535
- if (!isRecord(parsed)) {
374104
+ if (!isRecord2(parsed)) {
373536
374105
  return [new Error(`Invalid project file: ${filePath}`), null];
373537
374106
  }
373538
374107
  const designOptions = parsed.designOptions;
373539
- const outputType = useProjectJson && isRecord(designOptions) ? readString(designOptions.outputType) : undefined;
374108
+ const outputType = useProjectJson && isRecord2(designOptions) ? readString(designOptions.outputType) : undefined;
373540
374109
  const projectType = outputType ?? readString(parsed.ProjectType);
373541
374110
  if (!projectType) {
373542
374111
  return [new Error(`ProjectType not found in ${filePath}`), null];
@@ -373563,7 +374132,7 @@ async function readSolutionManifest(fs7, solutionFile) {
373563
374132
  null
373564
374133
  ];
373565
374134
  }
373566
- if (!isRecord(parsed)) {
374135
+ if (!isRecord2(parsed)) {
373567
374136
  return [
373568
374137
  new Error(`Invalid solution file: ${solutionFile} must contain a JSON object.`),
373569
374138
  null
@@ -373577,7 +374146,7 @@ async function readSolutionManifest(fs7, solutionFile) {
373577
374146
  }
373578
374147
  const projects = [];
373579
374148
  for (const [index, project] of parsed.Projects.entries()) {
373580
- if (!isRecord(project)) {
374149
+ if (!isRecord2(project)) {
373581
374150
  return [
373582
374151
  new Error(`Invalid solution file: Projects[${index}] must be an object.`),
373583
374152
  null
@@ -387577,4 +388146,4 @@ export {
387577
388146
  metadata
387578
388147
  };
387579
388148
 
387580
- //# debugId=E3277B3700D09B6D64756E2164756E21
388149
+ //# debugId=43A081C625C46B8664756E2164756E21
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@uipath/case-tool",
3
3
  "license": "MIT",
4
- "version": "1.197.0-preview.65",
4
+ "version": "1.197.0-preview.67",
5
5
  "description": "Manage Case Management instances, processes, and incidents.",
6
6
  "private": false,
7
7
  "repository": {
@@ -26,5 +26,5 @@
26
26
  "files": [
27
27
  "dist"
28
28
  ],
29
- "gitHead": "9388ccbe5e739c9578bfd9b5395980fb63e11d9c"
29
+ "gitHead": "579e7d41cb100fcb8130eec8ed1c9b5b55feaf0b"
30
30
  }