@uipath/codedapp-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 +51 -20
- package/package.json +2 -2
package/dist/tool.js
CHANGED
|
@@ -59716,7 +59716,7 @@ var init_src2 = __esm(() => {
|
|
|
59716
59716
|
var package_default = {
|
|
59717
59717
|
name: "@uipath/codedapp-tool",
|
|
59718
59718
|
license: "MIT",
|
|
59719
|
-
version: "1.199.0
|
|
59719
|
+
version: "1.199.0",
|
|
59720
59720
|
description: "Build, pack, publish, deploy, and manage UiPath Coded Web Applications.",
|
|
59721
59721
|
keywords: [
|
|
59722
59722
|
"cli-tool",
|
|
@@ -62774,7 +62774,7 @@ function requireOmap() {
|
|
|
62774
62774
|
function resolveYamlOmap(data) {
|
|
62775
62775
|
if (data === null)
|
|
62776
62776
|
return true;
|
|
62777
|
-
const objectKeys =
|
|
62777
|
+
const objectKeys = {};
|
|
62778
62778
|
const object = data;
|
|
62779
62779
|
for (let index = 0, length = object.length;index < length; index += 1) {
|
|
62780
62780
|
const pair = object[index];
|
|
@@ -62792,10 +62792,9 @@ function requireOmap() {
|
|
|
62792
62792
|
}
|
|
62793
62793
|
if (!pairHasKey)
|
|
62794
62794
|
return false;
|
|
62795
|
-
if (
|
|
62796
|
-
objectKeys.push(pairKey);
|
|
62797
|
-
else
|
|
62795
|
+
if (_hasOwnProperty.call(objectKeys, pairKey))
|
|
62798
62796
|
return false;
|
|
62797
|
+
Object.defineProperty(objectKeys, pairKey, { value: true });
|
|
62799
62798
|
}
|
|
62800
62799
|
return true;
|
|
62801
62800
|
}
|
|
@@ -65656,8 +65655,18 @@ function getInboundTraceContext() {
|
|
|
65656
65655
|
|
|
65657
65656
|
// ../common/src/telemetry/session-id.ts
|
|
65658
65657
|
var TELEMETRY_SESSION_ID_ENV = "UIPATH_SESSION_ID";
|
|
65659
|
-
var
|
|
65660
|
-
var
|
|
65658
|
+
var SESSION_ID_MAX_LENGTH = 64;
|
|
65659
|
+
var RANDOM_SESSION_ID_LENGTH = 32;
|
|
65660
|
+
var TELEMETRY_SESSION_SOURCE_PROPERTY = "session_id_source";
|
|
65661
|
+
var CONTROL_CHARACTERS = /\p{Cc}/gu;
|
|
65662
|
+
var INHERITED_SESSION_SOURCES = [
|
|
65663
|
+
{ envVar: "CLAUDE_CODE_SESSION_ID", source: "claude-code" },
|
|
65664
|
+
{ envVar: "CODEX_THREAD_ID", source: "codex" },
|
|
65665
|
+
{ envVar: "ANTIGRAVITY_TRAJECTORY_ID", source: "antigravity" },
|
|
65666
|
+
{ envVar: "TERM_SESSION_ID", source: "terminal" },
|
|
65667
|
+
{ envVar: "WT_SESSION", source: "terminal" }
|
|
65668
|
+
];
|
|
65669
|
+
var telemetrySessionSlot = singleton("TelemetrySession");
|
|
65661
65670
|
var telemetryOperationIdSlot = singleton("TelemetryOperationId");
|
|
65662
65671
|
function getProcessEnv2() {
|
|
65663
65672
|
return globalThis.process?.env;
|
|
@@ -65666,14 +65675,42 @@ function normalizeSessionId(value) {
|
|
|
65666
65675
|
if (typeof value !== "string" && typeof value !== "number" && typeof value !== "boolean") {
|
|
65667
65676
|
return;
|
|
65668
65677
|
}
|
|
65669
|
-
const
|
|
65670
|
-
return
|
|
65678
|
+
const cleaned = String(value).replace(CONTROL_CHARACTERS, "").trim().slice(0, SESSION_ID_MAX_LENGTH);
|
|
65679
|
+
return cleaned || undefined;
|
|
65671
65680
|
}
|
|
65672
65681
|
function getConfiguredTelemetrySessionId() {
|
|
65673
65682
|
return normalizeSessionId(getProcessEnv2()?.[TELEMETRY_SESSION_ID_ENV]);
|
|
65674
65683
|
}
|
|
65675
|
-
function
|
|
65676
|
-
|
|
65684
|
+
function getInheritedSession(env) {
|
|
65685
|
+
for (const candidate of INHERITED_SESSION_SOURCES) {
|
|
65686
|
+
const handle = normalizeSessionId(env[candidate.envVar]);
|
|
65687
|
+
if (handle) {
|
|
65688
|
+
return { id: handle, source: candidate.source };
|
|
65689
|
+
}
|
|
65690
|
+
}
|
|
65691
|
+
return;
|
|
65692
|
+
}
|
|
65693
|
+
function generateRandomSession() {
|
|
65694
|
+
const bytes = new Uint8Array(RANDOM_SESSION_ID_LENGTH / 2);
|
|
65695
|
+
crypto.getRandomValues(bytes);
|
|
65696
|
+
let hex = "";
|
|
65697
|
+
for (const byte of bytes) {
|
|
65698
|
+
hex += byte.toString(16).padStart(2, "0");
|
|
65699
|
+
}
|
|
65700
|
+
return { id: hex, source: "random" };
|
|
65701
|
+
}
|
|
65702
|
+
function resolveTelemetrySession() {
|
|
65703
|
+
const existing = telemetrySessionSlot.get();
|
|
65704
|
+
if (existing) {
|
|
65705
|
+
return existing;
|
|
65706
|
+
}
|
|
65707
|
+
const declaredHandle = getConfiguredTelemetrySessionId();
|
|
65708
|
+
const resolved = declaredHandle ? { id: declaredHandle, source: "declared" } : getInheritedSession(getProcessEnv2() ?? {}) ?? generateRandomSession();
|
|
65709
|
+
telemetrySessionSlot.set(resolved);
|
|
65710
|
+
return resolved;
|
|
65711
|
+
}
|
|
65712
|
+
function getTelemetrySessionSource() {
|
|
65713
|
+
return resolveTelemetrySession().source;
|
|
65677
65714
|
}
|
|
65678
65715
|
function getTelemetryOperationId() {
|
|
65679
65716
|
const existing = telemetryOperationIdSlot.get();
|
|
@@ -65950,24 +65987,18 @@ class TelemetryService {
|
|
|
65950
65987
|
}
|
|
65951
65988
|
enrichPropertiesWithContext(properties, context) {
|
|
65952
65989
|
const globalProperties = getGlobalTelemetryProperties();
|
|
65953
|
-
const existingSessionId = properties?.[TELEMETRY_SESSION_ID_PROPERTY] ?? this.defaultProperties?.[TELEMETRY_SESSION_ID_PROPERTY] ?? globalProperties?.[TELEMETRY_SESSION_ID_PROPERTY];
|
|
65954
|
-
const sessionId = resolveTelemetrySessionId(existingSessionId);
|
|
65955
65990
|
const enriched = {
|
|
65956
65991
|
...getExecutionContextTelemetryProperties(),
|
|
65957
65992
|
...globalProperties,
|
|
65958
65993
|
...this.defaultProperties,
|
|
65959
65994
|
...redactProperties(properties ?? {}),
|
|
65995
|
+
[TELEMETRY_SESSION_SOURCE_PROPERTY]: getTelemetrySessionSource(),
|
|
65960
65996
|
...context ? {
|
|
65961
65997
|
[TELEMETRY_OPERATION_ID_PROPERTY]: context.operationId,
|
|
65962
65998
|
...context.parentId !== undefined ? { [TELEMETRY_PARENT_ID_PROPERTY]: context.parentId } : {},
|
|
65963
65999
|
[TELEMETRY_SPAN_ID_PROPERTY]: context.id
|
|
65964
66000
|
} : {}
|
|
65965
66001
|
};
|
|
65966
|
-
if (sessionId === undefined) {
|
|
65967
|
-
delete enriched[TELEMETRY_SESSION_ID_PROPERTY];
|
|
65968
|
-
} else {
|
|
65969
|
-
enriched[TELEMETRY_SESSION_ID_PROPERTY] = sessionId;
|
|
65970
|
-
}
|
|
65971
66002
|
return enriched;
|
|
65972
66003
|
}
|
|
65973
66004
|
generateId() {
|
|
@@ -91057,7 +91088,7 @@ function querystringSingleKey(key, value, keyPrefix = "") {
|
|
|
91057
91088
|
var package_default2 = {
|
|
91058
91089
|
name: "@uipath/solution-sdk",
|
|
91059
91090
|
license: "MIT",
|
|
91060
|
-
version: "1.199.0
|
|
91091
|
+
version: "1.199.0",
|
|
91061
91092
|
repository: {
|
|
91062
91093
|
type: "git",
|
|
91063
91094
|
url: "https://github.com/UiPath/cli.git",
|
|
@@ -99003,4 +99034,4 @@ export {
|
|
|
99003
99034
|
metadata
|
|
99004
99035
|
};
|
|
99005
99036
|
|
|
99006
|
-
//# debugId=
|
|
99037
|
+
//# debugId=789A145F548A5F8B64756E2164756E21
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uipath/codedapp-tool",
|
|
3
3
|
"license": "MIT",
|
|
4
|
-
"version": "1.199.0
|
|
4
|
+
"version": "1.199.0",
|
|
5
5
|
"description": "Build, pack, publish, deploy, and manage UiPath Coded Web Applications.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"cli-tool",
|
|
@@ -27,5 +27,5 @@
|
|
|
27
27
|
"publishConfig": {
|
|
28
28
|
"registry": "https://registry.npmjs.org/"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "723e6801b77b5926ba75e75b6a756cc38b1b7adc"
|
|
31
31
|
}
|