@uipath/api-workflow-tool 1.199.0-preview.97 → 1.199.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/tool.js +169 -60
- package/package.json +2 -2
package/dist/tool.js
CHANGED
|
@@ -26090,7 +26090,7 @@ function requireOmap2() {
|
|
|
26090
26090
|
function resolveYamlOmap(data) {
|
|
26091
26091
|
if (data === null)
|
|
26092
26092
|
return true;
|
|
26093
|
-
const objectKeys =
|
|
26093
|
+
const objectKeys = {};
|
|
26094
26094
|
const object = data;
|
|
26095
26095
|
for (let index = 0, length = object.length;index < length; index += 1) {
|
|
26096
26096
|
const pair = object[index];
|
|
@@ -26108,10 +26108,9 @@ function requireOmap2() {
|
|
|
26108
26108
|
}
|
|
26109
26109
|
if (!pairHasKey)
|
|
26110
26110
|
return false;
|
|
26111
|
-
if (
|
|
26112
|
-
objectKeys.push(pairKey);
|
|
26113
|
-
else
|
|
26111
|
+
if (_hasOwnProperty.call(objectKeys, pairKey))
|
|
26114
26112
|
return false;
|
|
26113
|
+
Object.defineProperty(objectKeys, pairKey, { value: true });
|
|
26115
26114
|
}
|
|
26116
26115
|
return true;
|
|
26117
26116
|
}
|
|
@@ -28630,14 +28629,42 @@ function normalizeSessionId2(value) {
|
|
|
28630
28629
|
if (typeof value !== "string" && typeof value !== "number" && typeof value !== "boolean") {
|
|
28631
28630
|
return;
|
|
28632
28631
|
}
|
|
28633
|
-
const
|
|
28634
|
-
return
|
|
28632
|
+
const cleaned = String(value).replace(CONTROL_CHARACTERS2, "").trim().slice(0, SESSION_ID_MAX_LENGTH2);
|
|
28633
|
+
return cleaned || undefined;
|
|
28635
28634
|
}
|
|
28636
28635
|
function getConfiguredTelemetrySessionId2() {
|
|
28637
28636
|
return normalizeSessionId2(getProcessEnv22()?.[TELEMETRY_SESSION_ID_ENV2]);
|
|
28638
28637
|
}
|
|
28639
|
-
function
|
|
28640
|
-
|
|
28638
|
+
function getInheritedSession2(env) {
|
|
28639
|
+
for (const candidate of INHERITED_SESSION_SOURCES2) {
|
|
28640
|
+
const handle = normalizeSessionId2(env[candidate.envVar]);
|
|
28641
|
+
if (handle) {
|
|
28642
|
+
return { id: handle, source: candidate.source };
|
|
28643
|
+
}
|
|
28644
|
+
}
|
|
28645
|
+
return;
|
|
28646
|
+
}
|
|
28647
|
+
function generateRandomSession2() {
|
|
28648
|
+
const bytes = new Uint8Array(RANDOM_SESSION_ID_LENGTH2 / 2);
|
|
28649
|
+
crypto.getRandomValues(bytes);
|
|
28650
|
+
let hex = "";
|
|
28651
|
+
for (const byte of bytes) {
|
|
28652
|
+
hex += byte.toString(16).padStart(2, "0");
|
|
28653
|
+
}
|
|
28654
|
+
return { id: hex, source: "random" };
|
|
28655
|
+
}
|
|
28656
|
+
function resolveTelemetrySession2() {
|
|
28657
|
+
const existing = telemetrySessionSlot2.get();
|
|
28658
|
+
if (existing) {
|
|
28659
|
+
return existing;
|
|
28660
|
+
}
|
|
28661
|
+
const declaredHandle = getConfiguredTelemetrySessionId2();
|
|
28662
|
+
const resolved = declaredHandle ? { id: declaredHandle, source: "declared" } : getInheritedSession2(getProcessEnv22() ?? {}) ?? generateRandomSession2();
|
|
28663
|
+
telemetrySessionSlot2.set(resolved);
|
|
28664
|
+
return resolved;
|
|
28665
|
+
}
|
|
28666
|
+
function getTelemetrySessionSource2() {
|
|
28667
|
+
return resolveTelemetrySession2().source;
|
|
28641
28668
|
}
|
|
28642
28669
|
function getTelemetryOperationId2() {
|
|
28643
28670
|
const existing = telemetryOperationIdSlot2.get();
|
|
@@ -28860,24 +28887,18 @@ class TelemetryService2 {
|
|
|
28860
28887
|
}
|
|
28861
28888
|
enrichPropertiesWithContext(properties, context) {
|
|
28862
28889
|
const globalProperties = getGlobalTelemetryProperties2();
|
|
28863
|
-
const existingSessionId = properties?.[TELEMETRY_SESSION_ID_PROPERTY2] ?? this.defaultProperties?.[TELEMETRY_SESSION_ID_PROPERTY2] ?? globalProperties?.[TELEMETRY_SESSION_ID_PROPERTY2];
|
|
28864
|
-
const sessionId = resolveTelemetrySessionId2(existingSessionId);
|
|
28865
28890
|
const enriched = {
|
|
28866
28891
|
...getExecutionContextTelemetryProperties2(),
|
|
28867
28892
|
...globalProperties,
|
|
28868
28893
|
...this.defaultProperties,
|
|
28869
28894
|
...redactProperties2(properties ?? {}),
|
|
28895
|
+
[TELEMETRY_SESSION_SOURCE_PROPERTY2]: getTelemetrySessionSource2(),
|
|
28870
28896
|
...context ? {
|
|
28871
28897
|
[TELEMETRY_OPERATION_ID_PROPERTY2]: context.operationId,
|
|
28872
28898
|
...context.parentId !== undefined ? { [TELEMETRY_PARENT_ID_PROPERTY2]: context.parentId } : {},
|
|
28873
28899
|
[TELEMETRY_SPAN_ID_PROPERTY2]: context.id
|
|
28874
28900
|
} : {}
|
|
28875
28901
|
};
|
|
28876
|
-
if (sessionId === undefined) {
|
|
28877
|
-
delete enriched[TELEMETRY_SESSION_ID_PROPERTY2];
|
|
28878
|
-
} else {
|
|
28879
|
-
enriched[TELEMETRY_SESSION_ID_PROPERTY2] = sessionId;
|
|
28880
|
-
}
|
|
28881
28902
|
return enriched;
|
|
28882
28903
|
}
|
|
28883
28904
|
generateId() {
|
|
@@ -31569,7 +31590,7 @@ var __create2, __getProtoOf2, __defProp2, __getOwnPropNames2, __hasOwnProp2, __t
|
|
|
31569
31590
|
}
|
|
31570
31591
|
return result;
|
|
31571
31592
|
}
|
|
31572
|
-
}, TreeInterpreterInstance2, TreeInterpreter_default2, jsYaml2, loader2, common2, hasRequiredCommon2, exception2, hasRequiredException2, snippet2, hasRequiredSnippet2, type2, hasRequiredType2, schema2, hasRequiredSchema2, str2, hasRequiredStr2, seq2, hasRequiredSeq2, map2, hasRequiredMap2, failsafe2, hasRequiredFailsafe2, _null2, hasRequired_null2, bool2, hasRequiredBool2, int2, hasRequiredInt2, float2, hasRequiredFloat2, json2, hasRequiredJson2, core2, hasRequiredCore2, timestamp2, hasRequiredTimestamp2, merge2, hasRequiredMerge2, binary2, hasRequiredBinary2, omap2, hasRequiredOmap2, pairs2, hasRequiredPairs2, set2, hasRequiredSet2, _default2, hasRequired_default2, hasRequiredLoader2, dumper2, hasRequiredDumper2, hasRequiredJsYaml2, jsYamlExports2, yaml2, Type2, Schema2, FAILSAFE_SCHEMA2, JSON_SCHEMA2, CORE_SCHEMA2, DEFAULT_SCHEMA2, load2, loadAll2, dump2, YAMLException2, types2, safeLoad2, safeLoadAll2, safeDump2, logFilePathSlot2, LogLevel3, DEFAULT_LOG_LEVEL2 = 3, SimpleLogger2, loggerSingleton2, logger3, formatSlot2, formatExplicitSlot2, helpRequestedSlot2, filterSlot2, recordedFailureSlot2, AUTH_ERROR_CODES2, VALIDATION_ERROR_CODES2, NETWORK_HTTP_ERROR_CODES2, TIMEOUT_ERROR_CODES2, NETWORK_OS_ERROR_CODES2, TIMEOUT_OS_ERROR_CODES2, TLS_ERROR_CODES22, MISSING_DEPENDENCY_CODES2, INTERNAL_ERROR_NAMES2, CommonTelemetryEvents2, KNOWN_AGENTS2, LOCAL_HOSTS2, authSignalSlot2, isTruthy2 = (value) => value !== undefined && value !== "" && value !== "0" && value.toLowerCase() !== "false", isEqual2 = (value, expected) => value?.toLowerCase() === expected, CI_SIGNATURES2, TELEMETRY_TRACEPARENT_ENV2 = "TRACEPARENT", TRACEPARENT_PATTERN2, TELEMETRY_SESSION_ID_ENV2 = "UIPATH_SESSION_ID",
|
|
31593
|
+
}, TreeInterpreterInstance2, TreeInterpreter_default2, jsYaml2, loader2, common2, hasRequiredCommon2, exception2, hasRequiredException2, snippet2, hasRequiredSnippet2, type2, hasRequiredType2, schema2, hasRequiredSchema2, str2, hasRequiredStr2, seq2, hasRequiredSeq2, map2, hasRequiredMap2, failsafe2, hasRequiredFailsafe2, _null2, hasRequired_null2, bool2, hasRequiredBool2, int2, hasRequiredInt2, float2, hasRequiredFloat2, json2, hasRequiredJson2, core2, hasRequiredCore2, timestamp2, hasRequiredTimestamp2, merge2, hasRequiredMerge2, binary2, hasRequiredBinary2, omap2, hasRequiredOmap2, pairs2, hasRequiredPairs2, set2, hasRequiredSet2, _default2, hasRequired_default2, hasRequiredLoader2, dumper2, hasRequiredDumper2, hasRequiredJsYaml2, jsYamlExports2, yaml2, Type2, Schema2, FAILSAFE_SCHEMA2, JSON_SCHEMA2, CORE_SCHEMA2, DEFAULT_SCHEMA2, load2, loadAll2, dump2, YAMLException2, types2, safeLoad2, safeLoadAll2, safeDump2, logFilePathSlot2, LogLevel3, DEFAULT_LOG_LEVEL2 = 3, SimpleLogger2, loggerSingleton2, logger3, formatSlot2, formatExplicitSlot2, helpRequestedSlot2, filterSlot2, recordedFailureSlot2, AUTH_ERROR_CODES2, VALIDATION_ERROR_CODES2, NETWORK_HTTP_ERROR_CODES2, TIMEOUT_ERROR_CODES2, NETWORK_OS_ERROR_CODES2, TIMEOUT_OS_ERROR_CODES2, TLS_ERROR_CODES22, MISSING_DEPENDENCY_CODES2, INTERNAL_ERROR_NAMES2, CommonTelemetryEvents2, KNOWN_AGENTS2, LOCAL_HOSTS2, authSignalSlot2, isTruthy2 = (value) => value !== undefined && value !== "" && value !== "0" && value.toLowerCase() !== "false", isEqual2 = (value, expected) => value?.toLowerCase() === expected, CI_SIGNATURES2, TELEMETRY_TRACEPARENT_ENV2 = "TRACEPARENT", TRACEPARENT_PATTERN2, TELEMETRY_SESSION_ID_ENV2 = "UIPATH_SESSION_ID", SESSION_ID_MAX_LENGTH2 = 64, RANDOM_SESSION_ID_LENGTH2 = 32, TELEMETRY_SESSION_SOURCE_PROPERTY2 = "session_id_source", CONTROL_CHARACTERS2, INHERITED_SESSION_SOURCES2, telemetrySessionSlot2, telemetryOperationIdSlot2, telemetryPropsSlot2, REDACTED2 = "[REDACTED]", MAX_VALUE_LENGTH2 = 200, SENSITIVE_NAME_TOKENS2, SENSITIVE_KEY_PREFIXES2, UUID_PATTERN2, EMAIL_PATTERN2, JWT_PATTERN2, LONG_TOKEN_PATTERN2, USER_HOME_PATTERN2, URL_PATTERN2, URL_TRAILING_PUNCT2, TELEMETRY_OPERATION_ID_PROPERTY2 = "uip.trace.operation_id", TELEMETRY_PARENT_ID_PROPERTY2 = "uip.trace.parent_id", TELEMETRY_SPAN_ID_PROPERTY2 = "uip.trace.span_id", providerSlot2, telemetryInstanceSlot2, DEFAULT_AI_CONNECTION_STRING2, _localTelemetryInstance2, telemetry2, CLI_ERROR_CODES2, RETRY_HINTS2, RESULTS2, EXIT_CODES2, FilterEvaluationError2, OutputFormatter2, LEGACY_SKILL_NAMESPACE2 = "uipath:", MAX_SKILL_NAME_LENGTH2 = 80, SKILL_NAME_PATTERN2, SKILL_ATTRIBUTION2, KNOWN_SKILL_NAMES2, COMMAND_ATTRIBUTION2, pollSignalSlot2, cliErrorCodeValues2, retryHintValues2, TELEMETRY_COMMAND_ARG_PREFIX2 = "uip.cmd.arg.", guardInstalledSlot2, savedOriginalsSlot2, DEFAULT_AUTH_TIMEOUT_MS3, modeSlot2, interactiveFlagSlot2, PollOutcome2, REASON_BY_OUTCOME2, TERMINAL_STATUSES2, FAILURE_STATUSES2, previewSlot2, ScreenLogger2, sdkUserAgentHostToken2, shippedKeysSlot2, factorySlot2;
|
|
31573
31594
|
var init_dist2 = __esm(() => {
|
|
31574
31595
|
__create2 = Object.create;
|
|
31575
31596
|
__getProtoOf2 = Object.getPrototypeOf;
|
|
@@ -34229,7 +34250,15 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
34229
34250
|
}
|
|
34230
34251
|
];
|
|
34231
34252
|
TRACEPARENT_PATTERN2 = /^00-([0-9a-f]{32})-([0-9a-f]{16})-[0-9a-f]{2}$/;
|
|
34232
|
-
|
|
34253
|
+
CONTROL_CHARACTERS2 = /\p{Cc}/gu;
|
|
34254
|
+
INHERITED_SESSION_SOURCES2 = [
|
|
34255
|
+
{ envVar: "CLAUDE_CODE_SESSION_ID", source: "claude-code" },
|
|
34256
|
+
{ envVar: "CODEX_THREAD_ID", source: "codex" },
|
|
34257
|
+
{ envVar: "ANTIGRAVITY_TRAJECTORY_ID", source: "antigravity" },
|
|
34258
|
+
{ envVar: "TERM_SESSION_ID", source: "terminal" },
|
|
34259
|
+
{ envVar: "WT_SESSION", source: "terminal" }
|
|
34260
|
+
];
|
|
34261
|
+
telemetrySessionSlot2 = singleton3("TelemetrySession");
|
|
34233
34262
|
telemetryOperationIdSlot2 = singleton3("TelemetryOperationId");
|
|
34234
34263
|
telemetryPropsSlot2 = singleton3("TelemetryDefaultProps");
|
|
34235
34264
|
SENSITIVE_NAME_TOKENS2 = new Set([
|
|
@@ -39540,7 +39569,7 @@ function requireOmap3() {
|
|
|
39540
39569
|
function resolveYamlOmap(data) {
|
|
39541
39570
|
if (data === null)
|
|
39542
39571
|
return true;
|
|
39543
|
-
const objectKeys =
|
|
39572
|
+
const objectKeys = {};
|
|
39544
39573
|
const object = data;
|
|
39545
39574
|
for (let index = 0, length = object.length;index < length; index += 1) {
|
|
39546
39575
|
const pair = object[index];
|
|
@@ -39558,10 +39587,9 @@ function requireOmap3() {
|
|
|
39558
39587
|
}
|
|
39559
39588
|
if (!pairHasKey)
|
|
39560
39589
|
return false;
|
|
39561
|
-
if (
|
|
39562
|
-
objectKeys.push(pairKey);
|
|
39563
|
-
else
|
|
39590
|
+
if (_hasOwnProperty.call(objectKeys, pairKey))
|
|
39564
39591
|
return false;
|
|
39592
|
+
Object.defineProperty(objectKeys, pairKey, { value: true });
|
|
39565
39593
|
}
|
|
39566
39594
|
return true;
|
|
39567
39595
|
}
|
|
@@ -42095,14 +42123,42 @@ function normalizeSessionId3(value) {
|
|
|
42095
42123
|
if (typeof value !== "string" && typeof value !== "number" && typeof value !== "boolean") {
|
|
42096
42124
|
return;
|
|
42097
42125
|
}
|
|
42098
|
-
const
|
|
42099
|
-
return
|
|
42126
|
+
const cleaned = String(value).replace(CONTROL_CHARACTERS3, "").trim().slice(0, SESSION_ID_MAX_LENGTH3);
|
|
42127
|
+
return cleaned || undefined;
|
|
42100
42128
|
}
|
|
42101
42129
|
function getConfiguredTelemetrySessionId3() {
|
|
42102
42130
|
return normalizeSessionId3(getProcessEnv23()?.[TELEMETRY_SESSION_ID_ENV3]);
|
|
42103
42131
|
}
|
|
42104
|
-
function
|
|
42105
|
-
|
|
42132
|
+
function getInheritedSession3(env) {
|
|
42133
|
+
for (const candidate of INHERITED_SESSION_SOURCES3) {
|
|
42134
|
+
const handle = normalizeSessionId3(env[candidate.envVar]);
|
|
42135
|
+
if (handle) {
|
|
42136
|
+
return { id: handle, source: candidate.source };
|
|
42137
|
+
}
|
|
42138
|
+
}
|
|
42139
|
+
return;
|
|
42140
|
+
}
|
|
42141
|
+
function generateRandomSession3() {
|
|
42142
|
+
const bytes = new Uint8Array(RANDOM_SESSION_ID_LENGTH3 / 2);
|
|
42143
|
+
crypto.getRandomValues(bytes);
|
|
42144
|
+
let hex = "";
|
|
42145
|
+
for (const byte of bytes) {
|
|
42146
|
+
hex += byte.toString(16).padStart(2, "0");
|
|
42147
|
+
}
|
|
42148
|
+
return { id: hex, source: "random" };
|
|
42149
|
+
}
|
|
42150
|
+
function resolveTelemetrySession3() {
|
|
42151
|
+
const existing = telemetrySessionSlot3.get();
|
|
42152
|
+
if (existing) {
|
|
42153
|
+
return existing;
|
|
42154
|
+
}
|
|
42155
|
+
const declaredHandle = getConfiguredTelemetrySessionId3();
|
|
42156
|
+
const resolved = declaredHandle ? { id: declaredHandle, source: "declared" } : getInheritedSession3(getProcessEnv23() ?? {}) ?? generateRandomSession3();
|
|
42157
|
+
telemetrySessionSlot3.set(resolved);
|
|
42158
|
+
return resolved;
|
|
42159
|
+
}
|
|
42160
|
+
function getTelemetrySessionSource3() {
|
|
42161
|
+
return resolveTelemetrySession3().source;
|
|
42106
42162
|
}
|
|
42107
42163
|
function getTelemetryOperationId3() {
|
|
42108
42164
|
const existing = telemetryOperationIdSlot3.get();
|
|
@@ -42325,24 +42381,18 @@ class TelemetryService3 {
|
|
|
42325
42381
|
}
|
|
42326
42382
|
enrichPropertiesWithContext(properties, context) {
|
|
42327
42383
|
const globalProperties = getGlobalTelemetryProperties3();
|
|
42328
|
-
const existingSessionId = properties?.[TELEMETRY_SESSION_ID_PROPERTY3] ?? this.defaultProperties?.[TELEMETRY_SESSION_ID_PROPERTY3] ?? globalProperties?.[TELEMETRY_SESSION_ID_PROPERTY3];
|
|
42329
|
-
const sessionId = resolveTelemetrySessionId3(existingSessionId);
|
|
42330
42384
|
const enriched = {
|
|
42331
42385
|
...getExecutionContextTelemetryProperties3(),
|
|
42332
42386
|
...globalProperties,
|
|
42333
42387
|
...this.defaultProperties,
|
|
42334
42388
|
...redactProperties3(properties ?? {}),
|
|
42389
|
+
[TELEMETRY_SESSION_SOURCE_PROPERTY3]: getTelemetrySessionSource3(),
|
|
42335
42390
|
...context ? {
|
|
42336
42391
|
[TELEMETRY_OPERATION_ID_PROPERTY3]: context.operationId,
|
|
42337
42392
|
...context.parentId !== undefined ? { [TELEMETRY_PARENT_ID_PROPERTY3]: context.parentId } : {},
|
|
42338
42393
|
[TELEMETRY_SPAN_ID_PROPERTY3]: context.id
|
|
42339
42394
|
} : {}
|
|
42340
42395
|
};
|
|
42341
|
-
if (sessionId === undefined) {
|
|
42342
|
-
delete enriched[TELEMETRY_SESSION_ID_PROPERTY3];
|
|
42343
|
-
} else {
|
|
42344
|
-
enriched[TELEMETRY_SESSION_ID_PROPERTY3] = sessionId;
|
|
42345
|
-
}
|
|
42346
42396
|
return enriched;
|
|
42347
42397
|
}
|
|
42348
42398
|
generateId() {
|
|
@@ -46457,7 +46507,7 @@ var de_default2, en4, es_default2, es_MX_default2, fr_default2, ja_default2, ko_
|
|
|
46457
46507
|
}
|
|
46458
46508
|
return result;
|
|
46459
46509
|
}
|
|
46460
|
-
}, TreeInterpreterInstance3, TreeInterpreter_default3, jsYaml3, loader3, common3, hasRequiredCommon3, exception3, hasRequiredException3, snippet3, hasRequiredSnippet3, type3, hasRequiredType3, schema3, hasRequiredSchema3, str3, hasRequiredStr3, seq3, hasRequiredSeq3, map3, hasRequiredMap3, failsafe3, hasRequiredFailsafe3, _null3, hasRequired_null3, bool3, hasRequiredBool3, int3, hasRequiredInt3, float3, hasRequiredFloat3, json3, hasRequiredJson3, core3, hasRequiredCore3, timestamp3, hasRequiredTimestamp3, merge3, hasRequiredMerge3, binary3, hasRequiredBinary3, omap3, hasRequiredOmap3, pairs3, hasRequiredPairs3, set3, hasRequiredSet3, _default3, hasRequired_default3, hasRequiredLoader3, dumper3, hasRequiredDumper3, hasRequiredJsYaml3, jsYamlExports3, yaml3, Type3, Schema3, FAILSAFE_SCHEMA3, JSON_SCHEMA3, CORE_SCHEMA3, DEFAULT_SCHEMA3, load3, loadAll3, dump3, YAMLException3, types3, safeLoad3, safeLoadAll3, safeDump3, logFilePathSlot3, LogLevel4, DEFAULT_LOG_LEVEL3 = 3, SimpleLogger3, loggerSingleton3, logger4, formatSlot3, formatExplicitSlot3, helpRequestedSlot3, filterSlot3, recordedFailureSlot3, AUTH_ERROR_CODES3, VALIDATION_ERROR_CODES3, NETWORK_HTTP_ERROR_CODES3, TIMEOUT_ERROR_CODES3, NETWORK_OS_ERROR_CODES3, TIMEOUT_OS_ERROR_CODES3, TLS_ERROR_CODES23, MISSING_DEPENDENCY_CODES3, INTERNAL_ERROR_NAMES3, CommonTelemetryEvents3, KNOWN_AGENTS3, LOCAL_HOSTS3, authSignalSlot3, isTruthy3 = (value) => value !== undefined && value !== "" && value !== "0" && value.toLowerCase() !== "false", isEqual3 = (value, expected) => value?.toLowerCase() === expected, CI_SIGNATURES3, TELEMETRY_TRACEPARENT_ENV3 = "TRACEPARENT", TRACEPARENT_PATTERN3, TELEMETRY_SESSION_ID_ENV3 = "UIPATH_SESSION_ID",
|
|
46510
|
+
}, TreeInterpreterInstance3, TreeInterpreter_default3, jsYaml3, loader3, common3, hasRequiredCommon3, exception3, hasRequiredException3, snippet3, hasRequiredSnippet3, type3, hasRequiredType3, schema3, hasRequiredSchema3, str3, hasRequiredStr3, seq3, hasRequiredSeq3, map3, hasRequiredMap3, failsafe3, hasRequiredFailsafe3, _null3, hasRequired_null3, bool3, hasRequiredBool3, int3, hasRequiredInt3, float3, hasRequiredFloat3, json3, hasRequiredJson3, core3, hasRequiredCore3, timestamp3, hasRequiredTimestamp3, merge3, hasRequiredMerge3, binary3, hasRequiredBinary3, omap3, hasRequiredOmap3, pairs3, hasRequiredPairs3, set3, hasRequiredSet3, _default3, hasRequired_default3, hasRequiredLoader3, dumper3, hasRequiredDumper3, hasRequiredJsYaml3, jsYamlExports3, yaml3, Type3, Schema3, FAILSAFE_SCHEMA3, JSON_SCHEMA3, CORE_SCHEMA3, DEFAULT_SCHEMA3, load3, loadAll3, dump3, YAMLException3, types3, safeLoad3, safeLoadAll3, safeDump3, logFilePathSlot3, LogLevel4, DEFAULT_LOG_LEVEL3 = 3, SimpleLogger3, loggerSingleton3, logger4, formatSlot3, formatExplicitSlot3, helpRequestedSlot3, filterSlot3, recordedFailureSlot3, AUTH_ERROR_CODES3, VALIDATION_ERROR_CODES3, NETWORK_HTTP_ERROR_CODES3, TIMEOUT_ERROR_CODES3, NETWORK_OS_ERROR_CODES3, TIMEOUT_OS_ERROR_CODES3, TLS_ERROR_CODES23, MISSING_DEPENDENCY_CODES3, INTERNAL_ERROR_NAMES3, CommonTelemetryEvents3, KNOWN_AGENTS3, LOCAL_HOSTS3, authSignalSlot3, isTruthy3 = (value) => value !== undefined && value !== "" && value !== "0" && value.toLowerCase() !== "false", isEqual3 = (value, expected) => value?.toLowerCase() === expected, CI_SIGNATURES3, TELEMETRY_TRACEPARENT_ENV3 = "TRACEPARENT", TRACEPARENT_PATTERN3, TELEMETRY_SESSION_ID_ENV3 = "UIPATH_SESSION_ID", SESSION_ID_MAX_LENGTH3 = 64, RANDOM_SESSION_ID_LENGTH3 = 32, TELEMETRY_SESSION_SOURCE_PROPERTY3 = "session_id_source", CONTROL_CHARACTERS3, INHERITED_SESSION_SOURCES3, telemetrySessionSlot3, telemetryOperationIdSlot3, telemetryPropsSlot3, REDACTED3 = "[REDACTED]", MAX_VALUE_LENGTH3 = 200, SENSITIVE_NAME_TOKENS3, SENSITIVE_KEY_PREFIXES3, UUID_PATTERN3, EMAIL_PATTERN3, JWT_PATTERN3, LONG_TOKEN_PATTERN3, USER_HOME_PATTERN3, URL_PATTERN3, URL_TRAILING_PUNCT3, TELEMETRY_OPERATION_ID_PROPERTY3 = "uip.trace.operation_id", TELEMETRY_PARENT_ID_PROPERTY3 = "uip.trace.parent_id", TELEMETRY_SPAN_ID_PROPERTY3 = "uip.trace.span_id", providerSlot3, telemetryInstanceSlot3, DEFAULT_AI_CONNECTION_STRING3, _localTelemetryInstance3, telemetry3, CLI_ERROR_CODES3, RETRY_HINTS3, RESULTS3, EXIT_CODES3, FilterEvaluationError3, OutputFormatter3, LEGACY_SKILL_NAMESPACE3 = "uipath:", MAX_SKILL_NAME_LENGTH3 = 80, SKILL_NAME_PATTERN3, SKILL_ATTRIBUTION3, KNOWN_SKILL_NAMES3, COMMAND_ATTRIBUTION3, pollSignalSlot3, cliErrorCodeValues3, retryHintValues3, TELEMETRY_COMMAND_ARG_PREFIX3 = "uip.cmd.arg.", guardInstalledSlot3, savedOriginalsSlot3, DEFAULT_AUTH_TIMEOUT_MS4, modeSlot3, interactiveFlagSlot3, PollOutcome3, REASON_BY_OUTCOME3, TERMINAL_STATUSES3, FAILURE_STATUSES3, previewSlot3, ScreenLogger3, sdkUserAgentHostToken3, shippedKeysSlot3, factorySlot3, globalLogHandler2 = (logMessage) => {
|
|
46461
46511
|
const formattedMessage = logMessage.toFormattedString();
|
|
46462
46512
|
switch (logMessage.logLevel) {
|
|
46463
46513
|
case LogLevel2.Debug:
|
|
@@ -50410,7 +50460,15 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
50410
50460
|
}
|
|
50411
50461
|
];
|
|
50412
50462
|
TRACEPARENT_PATTERN3 = /^00-([0-9a-f]{32})-([0-9a-f]{16})-[0-9a-f]{2}$/;
|
|
50413
|
-
|
|
50463
|
+
CONTROL_CHARACTERS3 = /\p{Cc}/gu;
|
|
50464
|
+
INHERITED_SESSION_SOURCES3 = [
|
|
50465
|
+
{ envVar: "CLAUDE_CODE_SESSION_ID", source: "claude-code" },
|
|
50466
|
+
{ envVar: "CODEX_THREAD_ID", source: "codex" },
|
|
50467
|
+
{ envVar: "ANTIGRAVITY_TRAJECTORY_ID", source: "antigravity" },
|
|
50468
|
+
{ envVar: "TERM_SESSION_ID", source: "terminal" },
|
|
50469
|
+
{ envVar: "WT_SESSION", source: "terminal" }
|
|
50470
|
+
];
|
|
50471
|
+
telemetrySessionSlot3 = singleton4("TelemetrySession");
|
|
50414
50472
|
telemetryOperationIdSlot3 = singleton4("TelemetryOperationId");
|
|
50415
50473
|
telemetryPropsSlot3 = singleton4("TelemetryDefaultProps");
|
|
50416
50474
|
SENSITIVE_NAME_TOKENS3 = new Set([
|
|
@@ -50934,7 +50992,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
50934
50992
|
package_default3 = {
|
|
50935
50993
|
name: "@uipath/project-packager",
|
|
50936
50994
|
license: "MIT",
|
|
50937
|
-
version: "1.199.0
|
|
50995
|
+
version: "1.199.0",
|
|
50938
50996
|
description: "UiPath Project Packager - core library for packing individual UiPath projects",
|
|
50939
50997
|
type: "module",
|
|
50940
50998
|
main: "./dist/index.js",
|
|
@@ -50997,7 +51055,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
50997
51055
|
"@uipath/packager-tool-webapp": "workspace:*",
|
|
50998
51056
|
"@uipath/packager-tool-workflowcompiler": "workspace:*",
|
|
50999
51057
|
"@vitest/coverage-v8": "^4.1.6",
|
|
51000
|
-
jsdom: "^
|
|
51058
|
+
jsdom: "^30.0.1",
|
|
51001
51059
|
typescript: "^6.0.2",
|
|
51002
51060
|
"vite-tsconfig-paths": "^6.1.1",
|
|
51003
51061
|
vitest: "^4.1.6"
|
|
@@ -51329,7 +51387,7 @@ var init_package = __esm(() => {
|
|
|
51329
51387
|
package_default4 = {
|
|
51330
51388
|
name: "@uipath/project-packager",
|
|
51331
51389
|
license: "MIT",
|
|
51332
|
-
version: "1.199.0
|
|
51390
|
+
version: "1.199.0",
|
|
51333
51391
|
description: "UiPath Project Packager - core library for packing individual UiPath projects",
|
|
51334
51392
|
type: "module",
|
|
51335
51393
|
main: "./dist/index.js",
|
|
@@ -51392,7 +51450,7 @@ var init_package = __esm(() => {
|
|
|
51392
51450
|
"@uipath/packager-tool-webapp": "workspace:*",
|
|
51393
51451
|
"@uipath/packager-tool-workflowcompiler": "workspace:*",
|
|
51394
51452
|
"@vitest/coverage-v8": "^4.1.6",
|
|
51395
|
-
jsdom: "^
|
|
51453
|
+
jsdom: "^30.0.1",
|
|
51396
51454
|
typescript: "^6.0.2",
|
|
51397
51455
|
"vite-tsconfig-paths": "^6.1.1",
|
|
51398
51456
|
vitest: "^4.1.6"
|
|
@@ -77477,7 +77535,12 @@ var require_fast_uri = __commonJS((exports, module) => {
|
|
|
77477
77535
|
}
|
|
77478
77536
|
function resolve5(baseURI, relativeURI, options) {
|
|
77479
77537
|
const schemelessOptions = options ? Object.assign({ scheme: "null" }, options) : { scheme: "null" };
|
|
77480
|
-
const
|
|
77538
|
+
const { parsed: baseParsed, malformedAuthorityOrPort: baseMalformed } = parseWithStatus(baseURI, schemelessOptions);
|
|
77539
|
+
const { parsed: relativeParsed, malformedAuthorityOrPort: relativeMalformed } = parseWithStatus(relativeURI, schemelessOptions);
|
|
77540
|
+
if (baseMalformed || relativeMalformed) {
|
|
77541
|
+
throw new Error(baseParsed.error || relativeParsed.error || "URI is malformed.");
|
|
77542
|
+
}
|
|
77543
|
+
const resolved = resolveComponent(baseParsed, relativeParsed, schemelessOptions, true);
|
|
77481
77544
|
schemelessOptions.skipEscape = true;
|
|
77482
77545
|
return serialize(resolved, schemelessOptions);
|
|
77483
77546
|
}
|
|
@@ -77604,6 +77667,7 @@ var require_fast_uri = __commonJS((exports, module) => {
|
|
|
77604
77667
|
}
|
|
77605
77668
|
var URI_PARSE = /^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;
|
|
77606
77669
|
var AUTHORITY_PREFIX = /^(?:[^#/:?]+:)?\/\/([^/?#]*)/;
|
|
77670
|
+
var AUTHORITY_INTRODUCER_REGION = /^(?:[^#/:?]+:)?([/\\\t\n\r]*)/;
|
|
77607
77671
|
function getParseError(parsed, matches) {
|
|
77608
77672
|
if (matches[2] !== undefined && parsed.path && parsed.path[0] !== "/") {
|
|
77609
77673
|
return 'URI path must start with "/" when authority is present.';
|
|
@@ -77638,6 +77702,20 @@ var require_fast_uri = __commonJS((exports, module) => {
|
|
|
77638
77702
|
parsed.error = "URI authority must not contain a literal backslash.";
|
|
77639
77703
|
malformedAuthorityOrPort = true;
|
|
77640
77704
|
}
|
|
77705
|
+
const introducerMatch = uri.match(AUTHORITY_INTRODUCER_REGION);
|
|
77706
|
+
if (introducerMatch !== null) {
|
|
77707
|
+
const region = introducerMatch[1];
|
|
77708
|
+
const normalizedRegion = region.replace(/[\t\n\r]/g, "");
|
|
77709
|
+
if (normalizedRegion.length >= 2) {
|
|
77710
|
+
if (normalizedRegion.slice(0, 2) !== "//") {
|
|
77711
|
+
parsed.error = parsed.error || "URI authority must not contain a literal backslash.";
|
|
77712
|
+
malformedAuthorityOrPort = true;
|
|
77713
|
+
} else if (region.length !== normalizedRegion.length) {
|
|
77714
|
+
parsed.error = parsed.error || "URI authority introducer must not contain whitespace.";
|
|
77715
|
+
malformedAuthorityOrPort = true;
|
|
77716
|
+
}
|
|
77717
|
+
}
|
|
77718
|
+
}
|
|
77641
77719
|
const matches = uri.match(URI_PARSE);
|
|
77642
77720
|
if (matches) {
|
|
77643
77721
|
parsed.scheme = matches[1];
|
|
@@ -80783,7 +80861,7 @@ import"./packager-tool.js";
|
|
|
80783
80861
|
var package_default = {
|
|
80784
80862
|
name: "@uipath/api-workflow-tool",
|
|
80785
80863
|
license: "MIT",
|
|
80786
|
-
version: "1.199.0
|
|
80864
|
+
version: "1.199.0",
|
|
80787
80865
|
description: "Run UiPath API Workflows locally.",
|
|
80788
80866
|
private: false,
|
|
80789
80867
|
repository: {
|
|
@@ -83834,7 +83912,7 @@ function requireOmap() {
|
|
|
83834
83912
|
function resolveYamlOmap(data) {
|
|
83835
83913
|
if (data === null)
|
|
83836
83914
|
return true;
|
|
83837
|
-
const objectKeys =
|
|
83915
|
+
const objectKeys = {};
|
|
83838
83916
|
const object = data;
|
|
83839
83917
|
for (let index = 0, length = object.length;index < length; index += 1) {
|
|
83840
83918
|
const pair = object[index];
|
|
@@ -83852,10 +83930,9 @@ function requireOmap() {
|
|
|
83852
83930
|
}
|
|
83853
83931
|
if (!pairHasKey)
|
|
83854
83932
|
return false;
|
|
83855
|
-
if (
|
|
83856
|
-
objectKeys.push(pairKey);
|
|
83857
|
-
else
|
|
83933
|
+
if (_hasOwnProperty.call(objectKeys, pairKey))
|
|
83858
83934
|
return false;
|
|
83935
|
+
Object.defineProperty(objectKeys, pairKey, { value: true });
|
|
83859
83936
|
}
|
|
83860
83937
|
return true;
|
|
83861
83938
|
}
|
|
@@ -86716,8 +86793,18 @@ function getInboundTraceContext() {
|
|
|
86716
86793
|
|
|
86717
86794
|
// ../common/src/telemetry/session-id.ts
|
|
86718
86795
|
var TELEMETRY_SESSION_ID_ENV = "UIPATH_SESSION_ID";
|
|
86719
|
-
var
|
|
86720
|
-
var
|
|
86796
|
+
var SESSION_ID_MAX_LENGTH = 64;
|
|
86797
|
+
var RANDOM_SESSION_ID_LENGTH = 32;
|
|
86798
|
+
var TELEMETRY_SESSION_SOURCE_PROPERTY = "session_id_source";
|
|
86799
|
+
var CONTROL_CHARACTERS = /\p{Cc}/gu;
|
|
86800
|
+
var INHERITED_SESSION_SOURCES = [
|
|
86801
|
+
{ envVar: "CLAUDE_CODE_SESSION_ID", source: "claude-code" },
|
|
86802
|
+
{ envVar: "CODEX_THREAD_ID", source: "codex" },
|
|
86803
|
+
{ envVar: "ANTIGRAVITY_TRAJECTORY_ID", source: "antigravity" },
|
|
86804
|
+
{ envVar: "TERM_SESSION_ID", source: "terminal" },
|
|
86805
|
+
{ envVar: "WT_SESSION", source: "terminal" }
|
|
86806
|
+
];
|
|
86807
|
+
var telemetrySessionSlot = singleton("TelemetrySession");
|
|
86721
86808
|
var telemetryOperationIdSlot = singleton("TelemetryOperationId");
|
|
86722
86809
|
function getProcessEnv2() {
|
|
86723
86810
|
return globalThis.process?.env;
|
|
@@ -86726,14 +86813,42 @@ function normalizeSessionId(value) {
|
|
|
86726
86813
|
if (typeof value !== "string" && typeof value !== "number" && typeof value !== "boolean") {
|
|
86727
86814
|
return;
|
|
86728
86815
|
}
|
|
86729
|
-
const
|
|
86730
|
-
return
|
|
86816
|
+
const cleaned = String(value).replace(CONTROL_CHARACTERS, "").trim().slice(0, SESSION_ID_MAX_LENGTH);
|
|
86817
|
+
return cleaned || undefined;
|
|
86731
86818
|
}
|
|
86732
86819
|
function getConfiguredTelemetrySessionId() {
|
|
86733
86820
|
return normalizeSessionId(getProcessEnv2()?.[TELEMETRY_SESSION_ID_ENV]);
|
|
86734
86821
|
}
|
|
86735
|
-
function
|
|
86736
|
-
|
|
86822
|
+
function getInheritedSession(env) {
|
|
86823
|
+
for (const candidate of INHERITED_SESSION_SOURCES) {
|
|
86824
|
+
const handle = normalizeSessionId(env[candidate.envVar]);
|
|
86825
|
+
if (handle) {
|
|
86826
|
+
return { id: handle, source: candidate.source };
|
|
86827
|
+
}
|
|
86828
|
+
}
|
|
86829
|
+
return;
|
|
86830
|
+
}
|
|
86831
|
+
function generateRandomSession() {
|
|
86832
|
+
const bytes = new Uint8Array(RANDOM_SESSION_ID_LENGTH / 2);
|
|
86833
|
+
crypto.getRandomValues(bytes);
|
|
86834
|
+
let hex = "";
|
|
86835
|
+
for (const byte of bytes) {
|
|
86836
|
+
hex += byte.toString(16).padStart(2, "0");
|
|
86837
|
+
}
|
|
86838
|
+
return { id: hex, source: "random" };
|
|
86839
|
+
}
|
|
86840
|
+
function resolveTelemetrySession() {
|
|
86841
|
+
const existing = telemetrySessionSlot.get();
|
|
86842
|
+
if (existing) {
|
|
86843
|
+
return existing;
|
|
86844
|
+
}
|
|
86845
|
+
const declaredHandle = getConfiguredTelemetrySessionId();
|
|
86846
|
+
const resolved = declaredHandle ? { id: declaredHandle, source: "declared" } : getInheritedSession(getProcessEnv2() ?? {}) ?? generateRandomSession();
|
|
86847
|
+
telemetrySessionSlot.set(resolved);
|
|
86848
|
+
return resolved;
|
|
86849
|
+
}
|
|
86850
|
+
function getTelemetrySessionSource() {
|
|
86851
|
+
return resolveTelemetrySession().source;
|
|
86737
86852
|
}
|
|
86738
86853
|
function getTelemetryOperationId() {
|
|
86739
86854
|
const existing = telemetryOperationIdSlot.get();
|
|
@@ -87010,24 +87125,18 @@ class TelemetryService {
|
|
|
87010
87125
|
}
|
|
87011
87126
|
enrichPropertiesWithContext(properties, context) {
|
|
87012
87127
|
const globalProperties = getGlobalTelemetryProperties();
|
|
87013
|
-
const existingSessionId = properties?.[TELEMETRY_SESSION_ID_PROPERTY] ?? this.defaultProperties?.[TELEMETRY_SESSION_ID_PROPERTY] ?? globalProperties?.[TELEMETRY_SESSION_ID_PROPERTY];
|
|
87014
|
-
const sessionId = resolveTelemetrySessionId(existingSessionId);
|
|
87015
87128
|
const enriched = {
|
|
87016
87129
|
...getExecutionContextTelemetryProperties(),
|
|
87017
87130
|
...globalProperties,
|
|
87018
87131
|
...this.defaultProperties,
|
|
87019
87132
|
...redactProperties(properties ?? {}),
|
|
87133
|
+
[TELEMETRY_SESSION_SOURCE_PROPERTY]: getTelemetrySessionSource(),
|
|
87020
87134
|
...context ? {
|
|
87021
87135
|
[TELEMETRY_OPERATION_ID_PROPERTY]: context.operationId,
|
|
87022
87136
|
...context.parentId !== undefined ? { [TELEMETRY_PARENT_ID_PROPERTY]: context.parentId } : {},
|
|
87023
87137
|
[TELEMETRY_SPAN_ID_PROPERTY]: context.id
|
|
87024
87138
|
} : {}
|
|
87025
87139
|
};
|
|
87026
|
-
if (sessionId === undefined) {
|
|
87027
|
-
delete enriched[TELEMETRY_SESSION_ID_PROPERTY];
|
|
87028
|
-
} else {
|
|
87029
|
-
enriched[TELEMETRY_SESSION_ID_PROPERTY] = sessionId;
|
|
87030
|
-
}
|
|
87031
87140
|
return enriched;
|
|
87032
87141
|
}
|
|
87033
87142
|
generateId() {
|
|
@@ -88604,7 +88713,7 @@ class TextApiResponse {
|
|
|
88604
88713
|
var package_default2 = {
|
|
88605
88714
|
name: "@uipath/integrationservice-sdk",
|
|
88606
88715
|
license: "MIT",
|
|
88607
|
-
version: "1.199.0
|
|
88716
|
+
version: "1.199.0",
|
|
88608
88717
|
repository: {
|
|
88609
88718
|
type: "git",
|
|
88610
88719
|
url: "https://github.com/UiPath/cli.git",
|
|
@@ -98153,7 +98262,7 @@ function querystringSingleKey3(key, value, keyPrefix = "") {
|
|
|
98153
98262
|
var package_default5 = {
|
|
98154
98263
|
name: "@uipath/solution-sdk",
|
|
98155
98264
|
license: "MIT",
|
|
98156
|
-
version: "1.199.0
|
|
98265
|
+
version: "1.199.0",
|
|
98157
98266
|
repository: {
|
|
98158
98267
|
type: "git",
|
|
98159
98268
|
url: "https://github.com/UiPath/cli.git",
|
|
@@ -100444,4 +100553,4 @@ export {
|
|
|
100444
100553
|
metadata
|
|
100445
100554
|
};
|
|
100446
100555
|
|
|
100447
|
-
//# debugId=
|
|
100556
|
+
//# debugId=CB93A07DE5858AA764756E2164756E21
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uipath/api-workflow-tool",
|
|
3
3
|
"license": "MIT",
|
|
4
|
-
"version": "1.199.0
|
|
4
|
+
"version": "1.199.0",
|
|
5
5
|
"description": "Run UiPath API Workflows locally.",
|
|
6
6
|
"private": false,
|
|
7
7
|
"repository": {
|
|
@@ -23,5 +23,5 @@
|
|
|
23
23
|
"files": [
|
|
24
24
|
"dist"
|
|
25
25
|
],
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "723e6801b77b5926ba75e75b6a756cc38b1b7adc"
|
|
27
27
|
}
|