@uipath/maestro-sdk 1.207.0-preview.382 → 1.207.0-preview.384
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/bpmn-layout/index.js +6 -2
- package/dist/bpmn-packaging/index.js +6 -2
- package/dist/bpmn-validation/project-validator.js +6 -2
- package/dist/connector-spec/index.js +77 -5
- package/dist/debug-http-client.js +74 -2
- package/dist/debug-service.js +74 -2
- package/dist/index.js +75 -3
- package/dist/json-input.js +74 -2
- package/dist/registry/command.js +75 -3
- package/dist/registry/snapshot.js +74 -2
- package/dist/shared-commands/index.js +74 -2
- package/dist/shared-utils.js +74 -2
- package/dist/studio-catalog.js +74 -2
- package/dist/with-pims-call.js +74 -2
- package/package.json +2 -2
package/dist/registry/command.js
CHANGED
|
@@ -1050,7 +1050,9 @@ var init_telemetry_dimensions = __esm(() => {
|
|
|
1050
1050
|
ExecutionContext: "ExecutionContext",
|
|
1051
1051
|
CiProvider: "CiProvider",
|
|
1052
1052
|
SessionIdSource: "SessionIdSource",
|
|
1053
|
-
SessionId: "SessionId"
|
|
1053
|
+
SessionId: "SessionId",
|
|
1054
|
+
HostApp: "HostApp",
|
|
1055
|
+
HostAppSource: "HostAppSource"
|
|
1054
1056
|
};
|
|
1055
1057
|
CommandDimensions = {
|
|
1056
1058
|
IsCommand: "IsCommand",
|
|
@@ -1175,6 +1177,8 @@ var init_telemetry_dimensions = __esm(() => {
|
|
|
1175
1177
|
BaseDimensions.CiProvider,
|
|
1176
1178
|
BaseDimensions.SessionIdSource,
|
|
1177
1179
|
BaseDimensions.SessionId,
|
|
1180
|
+
BaseDimensions.HostApp,
|
|
1181
|
+
BaseDimensions.HostAppSource,
|
|
1178
1182
|
...Object.values(CommandDimensions),
|
|
1179
1183
|
...Object.values(ShipDimensions),
|
|
1180
1184
|
...Object.values(ProjectDimensions)
|
|
@@ -10177,6 +10181,72 @@ class NodeContextStorage {
|
|
|
10177
10181
|
}
|
|
10178
10182
|
var init_node_context_storage = () => {};
|
|
10179
10183
|
|
|
10184
|
+
// ../common/src/telemetry/host-app.ts
|
|
10185
|
+
function declaredHostApp(env) {
|
|
10186
|
+
const raw = env[TELEMETRY_HOST_APP_ENV]?.trim().toLowerCase();
|
|
10187
|
+
if (!raw)
|
|
10188
|
+
return;
|
|
10189
|
+
return DECLARABLE_HOST_APPS.includes(raw) ? raw : "other";
|
|
10190
|
+
}
|
|
10191
|
+
function inferredHostApp(env) {
|
|
10192
|
+
if (isSet(env.UIPATH_STUDIO_PID))
|
|
10193
|
+
return "studio-desktop";
|
|
10194
|
+
if (env.TERMINAL_EMULATOR === "JetBrains-JediTerm")
|
|
10195
|
+
return "jetbrains";
|
|
10196
|
+
if (env.TERM_PROGRAM?.toLowerCase() === "vscode" || env.CLAUDE_CODE_ENTRYPOINT === "claude-vscode") {
|
|
10197
|
+
return "vscode";
|
|
10198
|
+
}
|
|
10199
|
+
if (isSet(env.TERM_PROGRAM) || isSet(env.WT_SESSION))
|
|
10200
|
+
return "terminal";
|
|
10201
|
+
return;
|
|
10202
|
+
}
|
|
10203
|
+
function detectHostAppFromEnv(env) {
|
|
10204
|
+
const declared = declaredHostApp(env);
|
|
10205
|
+
if (declared)
|
|
10206
|
+
return { hostApp: declared, source: "declared" };
|
|
10207
|
+
const inferred = inferredHostApp(env);
|
|
10208
|
+
if (inferred)
|
|
10209
|
+
return { hostApp: inferred, source: "inferred" };
|
|
10210
|
+
return { hostApp: "unknown", source: "none" };
|
|
10211
|
+
}
|
|
10212
|
+
function getTelemetryHostApp() {
|
|
10213
|
+
const proc = globalThis.process;
|
|
10214
|
+
if (!proc?.env || proc.platform === "browser")
|
|
10215
|
+
return;
|
|
10216
|
+
const env = proc.env;
|
|
10217
|
+
const existing = hostAppSlot.get();
|
|
10218
|
+
if (existing)
|
|
10219
|
+
return existing;
|
|
10220
|
+
const detected = detectHostAppFromEnv(env);
|
|
10221
|
+
hostAppSlot.set(detected);
|
|
10222
|
+
return detected;
|
|
10223
|
+
}
|
|
10224
|
+
function getHostAppTelemetryProperties() {
|
|
10225
|
+
const detected = getTelemetryHostApp();
|
|
10226
|
+
if (!detected)
|
|
10227
|
+
return {};
|
|
10228
|
+
return {
|
|
10229
|
+
[BaseDimensions.HostApp]: detected.hostApp,
|
|
10230
|
+
[BaseDimensions.HostAppSource]: detected.source
|
|
10231
|
+
};
|
|
10232
|
+
}
|
|
10233
|
+
var TELEMETRY_HOST_APP_ENV = "UIPATH_HOST_APP", DECLARABLE_HOST_APPS, isSet = (value) => value !== undefined && value.trim() !== "", hostAppSlot;
|
|
10234
|
+
var init_host_app = __esm(() => {
|
|
10235
|
+
init_singleton();
|
|
10236
|
+
init_telemetry_dimensions();
|
|
10237
|
+
DECLARABLE_HOST_APPS = [
|
|
10238
|
+
"studio-desktop",
|
|
10239
|
+
"vscode",
|
|
10240
|
+
"cursor",
|
|
10241
|
+
"windsurf",
|
|
10242
|
+
"kiro",
|
|
10243
|
+
"antigravity",
|
|
10244
|
+
"jetbrains",
|
|
10245
|
+
"terminal"
|
|
10246
|
+
];
|
|
10247
|
+
hostAppSlot = singleton("TelemetryHostApp");
|
|
10248
|
+
});
|
|
10249
|
+
|
|
10180
10250
|
// ../common/src/telemetry/span-clock.ts
|
|
10181
10251
|
function startSpanClock() {
|
|
10182
10252
|
const started = performance.now();
|
|
@@ -10351,6 +10421,7 @@ class TelemetryService {
|
|
|
10351
10421
|
...this.defaultProperties,
|
|
10352
10422
|
...redactProperties(properties ?? {}),
|
|
10353
10423
|
[TELEMETRY_SESSION_SOURCE_PROPERTY]: getTelemetrySessionSource(),
|
|
10424
|
+
...getHostAppTelemetryProperties(),
|
|
10354
10425
|
[BaseDimensions.SessionId]: this.telemetryProvider.getSessionId?.() ?? getTelemetrySessionId()
|
|
10355
10426
|
};
|
|
10356
10427
|
return lowercaseIdDimensionValues(enriched);
|
|
@@ -10371,6 +10442,7 @@ class TelemetryService {
|
|
|
10371
10442
|
var init_telemetry_service = __esm(() => {
|
|
10372
10443
|
init_execution_context();
|
|
10373
10444
|
init_global_telemetry_properties();
|
|
10445
|
+
init_host_app();
|
|
10374
10446
|
init_pii_redactor();
|
|
10375
10447
|
init_session_id();
|
|
10376
10448
|
init_telemetry_dimensions();
|
|
@@ -144908,7 +144980,7 @@ var init_package = __esm(() => {
|
|
|
144908
144980
|
name: "@uipath/integrationservice-sdk",
|
|
144909
144981
|
author: "UiPath",
|
|
144910
144982
|
license: "SEE LICENSE IN LICENSE.txt",
|
|
144911
|
-
version: "1.207.0-preview.
|
|
144983
|
+
version: "1.207.0-preview.384",
|
|
144912
144984
|
repository: {
|
|
144913
144985
|
type: "git",
|
|
144914
144986
|
url: "https://github.com/UiPath/cli.git",
|
|
@@ -265211,4 +265283,4 @@ export {
|
|
|
265211
265283
|
shownRows
|
|
265212
265284
|
};
|
|
265213
265285
|
|
|
265214
|
-
//# debugId=
|
|
265286
|
+
//# debugId=5BE730E98B06A40964756E2164756E21
|
|
@@ -1050,7 +1050,9 @@ var init_telemetry_dimensions = __esm(() => {
|
|
|
1050
1050
|
ExecutionContext: "ExecutionContext",
|
|
1051
1051
|
CiProvider: "CiProvider",
|
|
1052
1052
|
SessionIdSource: "SessionIdSource",
|
|
1053
|
-
SessionId: "SessionId"
|
|
1053
|
+
SessionId: "SessionId",
|
|
1054
|
+
HostApp: "HostApp",
|
|
1055
|
+
HostAppSource: "HostAppSource"
|
|
1054
1056
|
};
|
|
1055
1057
|
CommandDimensions = {
|
|
1056
1058
|
IsCommand: "IsCommand",
|
|
@@ -1175,6 +1177,8 @@ var init_telemetry_dimensions = __esm(() => {
|
|
|
1175
1177
|
BaseDimensions.CiProvider,
|
|
1176
1178
|
BaseDimensions.SessionIdSource,
|
|
1177
1179
|
BaseDimensions.SessionId,
|
|
1180
|
+
BaseDimensions.HostApp,
|
|
1181
|
+
BaseDimensions.HostAppSource,
|
|
1178
1182
|
...Object.values(CommandDimensions),
|
|
1179
1183
|
...Object.values(ShipDimensions),
|
|
1180
1184
|
...Object.values(ProjectDimensions)
|
|
@@ -10177,6 +10181,72 @@ class NodeContextStorage {
|
|
|
10177
10181
|
}
|
|
10178
10182
|
var init_node_context_storage = () => {};
|
|
10179
10183
|
|
|
10184
|
+
// ../common/src/telemetry/host-app.ts
|
|
10185
|
+
function declaredHostApp(env) {
|
|
10186
|
+
const raw = env[TELEMETRY_HOST_APP_ENV]?.trim().toLowerCase();
|
|
10187
|
+
if (!raw)
|
|
10188
|
+
return;
|
|
10189
|
+
return DECLARABLE_HOST_APPS.includes(raw) ? raw : "other";
|
|
10190
|
+
}
|
|
10191
|
+
function inferredHostApp(env) {
|
|
10192
|
+
if (isSet(env.UIPATH_STUDIO_PID))
|
|
10193
|
+
return "studio-desktop";
|
|
10194
|
+
if (env.TERMINAL_EMULATOR === "JetBrains-JediTerm")
|
|
10195
|
+
return "jetbrains";
|
|
10196
|
+
if (env.TERM_PROGRAM?.toLowerCase() === "vscode" || env.CLAUDE_CODE_ENTRYPOINT === "claude-vscode") {
|
|
10197
|
+
return "vscode";
|
|
10198
|
+
}
|
|
10199
|
+
if (isSet(env.TERM_PROGRAM) || isSet(env.WT_SESSION))
|
|
10200
|
+
return "terminal";
|
|
10201
|
+
return;
|
|
10202
|
+
}
|
|
10203
|
+
function detectHostAppFromEnv(env) {
|
|
10204
|
+
const declared = declaredHostApp(env);
|
|
10205
|
+
if (declared)
|
|
10206
|
+
return { hostApp: declared, source: "declared" };
|
|
10207
|
+
const inferred = inferredHostApp(env);
|
|
10208
|
+
if (inferred)
|
|
10209
|
+
return { hostApp: inferred, source: "inferred" };
|
|
10210
|
+
return { hostApp: "unknown", source: "none" };
|
|
10211
|
+
}
|
|
10212
|
+
function getTelemetryHostApp() {
|
|
10213
|
+
const proc = globalThis.process;
|
|
10214
|
+
if (!proc?.env || proc.platform === "browser")
|
|
10215
|
+
return;
|
|
10216
|
+
const env = proc.env;
|
|
10217
|
+
const existing = hostAppSlot.get();
|
|
10218
|
+
if (existing)
|
|
10219
|
+
return existing;
|
|
10220
|
+
const detected = detectHostAppFromEnv(env);
|
|
10221
|
+
hostAppSlot.set(detected);
|
|
10222
|
+
return detected;
|
|
10223
|
+
}
|
|
10224
|
+
function getHostAppTelemetryProperties() {
|
|
10225
|
+
const detected = getTelemetryHostApp();
|
|
10226
|
+
if (!detected)
|
|
10227
|
+
return {};
|
|
10228
|
+
return {
|
|
10229
|
+
[BaseDimensions.HostApp]: detected.hostApp,
|
|
10230
|
+
[BaseDimensions.HostAppSource]: detected.source
|
|
10231
|
+
};
|
|
10232
|
+
}
|
|
10233
|
+
var TELEMETRY_HOST_APP_ENV = "UIPATH_HOST_APP", DECLARABLE_HOST_APPS, isSet = (value) => value !== undefined && value.trim() !== "", hostAppSlot;
|
|
10234
|
+
var init_host_app = __esm(() => {
|
|
10235
|
+
init_singleton();
|
|
10236
|
+
init_telemetry_dimensions();
|
|
10237
|
+
DECLARABLE_HOST_APPS = [
|
|
10238
|
+
"studio-desktop",
|
|
10239
|
+
"vscode",
|
|
10240
|
+
"cursor",
|
|
10241
|
+
"windsurf",
|
|
10242
|
+
"kiro",
|
|
10243
|
+
"antigravity",
|
|
10244
|
+
"jetbrains",
|
|
10245
|
+
"terminal"
|
|
10246
|
+
];
|
|
10247
|
+
hostAppSlot = singleton("TelemetryHostApp");
|
|
10248
|
+
});
|
|
10249
|
+
|
|
10180
10250
|
// ../common/src/telemetry/span-clock.ts
|
|
10181
10251
|
function startSpanClock() {
|
|
10182
10252
|
const started = performance.now();
|
|
@@ -10351,6 +10421,7 @@ class TelemetryService {
|
|
|
10351
10421
|
...this.defaultProperties,
|
|
10352
10422
|
...redactProperties(properties ?? {}),
|
|
10353
10423
|
[TELEMETRY_SESSION_SOURCE_PROPERTY]: getTelemetrySessionSource(),
|
|
10424
|
+
...getHostAppTelemetryProperties(),
|
|
10354
10425
|
[BaseDimensions.SessionId]: this.telemetryProvider.getSessionId?.() ?? getTelemetrySessionId()
|
|
10355
10426
|
};
|
|
10356
10427
|
return lowercaseIdDimensionValues(enriched);
|
|
@@ -10371,6 +10442,7 @@ class TelemetryService {
|
|
|
10371
10442
|
var init_telemetry_service = __esm(() => {
|
|
10372
10443
|
init_execution_context();
|
|
10373
10444
|
init_global_telemetry_properties();
|
|
10445
|
+
init_host_app();
|
|
10374
10446
|
init_pii_redactor();
|
|
10375
10447
|
init_session_id();
|
|
10376
10448
|
init_telemetry_dimensions();
|
|
@@ -13184,4 +13256,4 @@ export {
|
|
|
13184
13256
|
resolveMaestroRegistry
|
|
13185
13257
|
};
|
|
13186
13258
|
|
|
13187
|
-
//# debugId=
|
|
13259
|
+
//# debugId=0B758AEC4C7028F864756E2164756E21
|
|
@@ -1050,7 +1050,9 @@ var init_telemetry_dimensions = __esm(() => {
|
|
|
1050
1050
|
ExecutionContext: "ExecutionContext",
|
|
1051
1051
|
CiProvider: "CiProvider",
|
|
1052
1052
|
SessionIdSource: "SessionIdSource",
|
|
1053
|
-
SessionId: "SessionId"
|
|
1053
|
+
SessionId: "SessionId",
|
|
1054
|
+
HostApp: "HostApp",
|
|
1055
|
+
HostAppSource: "HostAppSource"
|
|
1054
1056
|
};
|
|
1055
1057
|
CommandDimensions = {
|
|
1056
1058
|
IsCommand: "IsCommand",
|
|
@@ -1175,6 +1177,8 @@ var init_telemetry_dimensions = __esm(() => {
|
|
|
1175
1177
|
BaseDimensions.CiProvider,
|
|
1176
1178
|
BaseDimensions.SessionIdSource,
|
|
1177
1179
|
BaseDimensions.SessionId,
|
|
1180
|
+
BaseDimensions.HostApp,
|
|
1181
|
+
BaseDimensions.HostAppSource,
|
|
1178
1182
|
...Object.values(CommandDimensions),
|
|
1179
1183
|
...Object.values(ShipDimensions),
|
|
1180
1184
|
...Object.values(ProjectDimensions)
|
|
@@ -10177,6 +10181,72 @@ class NodeContextStorage {
|
|
|
10177
10181
|
}
|
|
10178
10182
|
var init_node_context_storage = () => {};
|
|
10179
10183
|
|
|
10184
|
+
// ../common/src/telemetry/host-app.ts
|
|
10185
|
+
function declaredHostApp(env) {
|
|
10186
|
+
const raw = env[TELEMETRY_HOST_APP_ENV]?.trim().toLowerCase();
|
|
10187
|
+
if (!raw)
|
|
10188
|
+
return;
|
|
10189
|
+
return DECLARABLE_HOST_APPS.includes(raw) ? raw : "other";
|
|
10190
|
+
}
|
|
10191
|
+
function inferredHostApp(env) {
|
|
10192
|
+
if (isSet(env.UIPATH_STUDIO_PID))
|
|
10193
|
+
return "studio-desktop";
|
|
10194
|
+
if (env.TERMINAL_EMULATOR === "JetBrains-JediTerm")
|
|
10195
|
+
return "jetbrains";
|
|
10196
|
+
if (env.TERM_PROGRAM?.toLowerCase() === "vscode" || env.CLAUDE_CODE_ENTRYPOINT === "claude-vscode") {
|
|
10197
|
+
return "vscode";
|
|
10198
|
+
}
|
|
10199
|
+
if (isSet(env.TERM_PROGRAM) || isSet(env.WT_SESSION))
|
|
10200
|
+
return "terminal";
|
|
10201
|
+
return;
|
|
10202
|
+
}
|
|
10203
|
+
function detectHostAppFromEnv(env) {
|
|
10204
|
+
const declared = declaredHostApp(env);
|
|
10205
|
+
if (declared)
|
|
10206
|
+
return { hostApp: declared, source: "declared" };
|
|
10207
|
+
const inferred = inferredHostApp(env);
|
|
10208
|
+
if (inferred)
|
|
10209
|
+
return { hostApp: inferred, source: "inferred" };
|
|
10210
|
+
return { hostApp: "unknown", source: "none" };
|
|
10211
|
+
}
|
|
10212
|
+
function getTelemetryHostApp() {
|
|
10213
|
+
const proc = globalThis.process;
|
|
10214
|
+
if (!proc?.env || proc.platform === "browser")
|
|
10215
|
+
return;
|
|
10216
|
+
const env = proc.env;
|
|
10217
|
+
const existing = hostAppSlot.get();
|
|
10218
|
+
if (existing)
|
|
10219
|
+
return existing;
|
|
10220
|
+
const detected = detectHostAppFromEnv(env);
|
|
10221
|
+
hostAppSlot.set(detected);
|
|
10222
|
+
return detected;
|
|
10223
|
+
}
|
|
10224
|
+
function getHostAppTelemetryProperties() {
|
|
10225
|
+
const detected = getTelemetryHostApp();
|
|
10226
|
+
if (!detected)
|
|
10227
|
+
return {};
|
|
10228
|
+
return {
|
|
10229
|
+
[BaseDimensions.HostApp]: detected.hostApp,
|
|
10230
|
+
[BaseDimensions.HostAppSource]: detected.source
|
|
10231
|
+
};
|
|
10232
|
+
}
|
|
10233
|
+
var TELEMETRY_HOST_APP_ENV = "UIPATH_HOST_APP", DECLARABLE_HOST_APPS, isSet = (value) => value !== undefined && value.trim() !== "", hostAppSlot;
|
|
10234
|
+
var init_host_app = __esm(() => {
|
|
10235
|
+
init_singleton();
|
|
10236
|
+
init_telemetry_dimensions();
|
|
10237
|
+
DECLARABLE_HOST_APPS = [
|
|
10238
|
+
"studio-desktop",
|
|
10239
|
+
"vscode",
|
|
10240
|
+
"cursor",
|
|
10241
|
+
"windsurf",
|
|
10242
|
+
"kiro",
|
|
10243
|
+
"antigravity",
|
|
10244
|
+
"jetbrains",
|
|
10245
|
+
"terminal"
|
|
10246
|
+
];
|
|
10247
|
+
hostAppSlot = singleton("TelemetryHostApp");
|
|
10248
|
+
});
|
|
10249
|
+
|
|
10180
10250
|
// ../common/src/telemetry/span-clock.ts
|
|
10181
10251
|
function startSpanClock() {
|
|
10182
10252
|
const started = performance.now();
|
|
@@ -10351,6 +10421,7 @@ class TelemetryService {
|
|
|
10351
10421
|
...this.defaultProperties,
|
|
10352
10422
|
...redactProperties(properties ?? {}),
|
|
10353
10423
|
[TELEMETRY_SESSION_SOURCE_PROPERTY]: getTelemetrySessionSource(),
|
|
10424
|
+
...getHostAppTelemetryProperties(),
|
|
10354
10425
|
[BaseDimensions.SessionId]: this.telemetryProvider.getSessionId?.() ?? getTelemetrySessionId()
|
|
10355
10426
|
};
|
|
10356
10427
|
return lowercaseIdDimensionValues(enriched);
|
|
@@ -10371,6 +10442,7 @@ class TelemetryService {
|
|
|
10371
10442
|
var init_telemetry_service = __esm(() => {
|
|
10372
10443
|
init_execution_context();
|
|
10373
10444
|
init_global_telemetry_properties();
|
|
10445
|
+
init_host_app();
|
|
10374
10446
|
init_pii_redactor();
|
|
10375
10447
|
init_session_id();
|
|
10376
10448
|
init_telemetry_dimensions();
|
|
@@ -30490,4 +30562,4 @@ export {
|
|
|
30490
30562
|
splitProcessKey
|
|
30491
30563
|
};
|
|
30492
30564
|
|
|
30493
|
-
//# debugId=
|
|
30565
|
+
//# debugId=D6D2BD78B835409564756E2164756E21
|
package/dist/shared-utils.js
CHANGED
|
@@ -1050,7 +1050,9 @@ var init_telemetry_dimensions = __esm(() => {
|
|
|
1050
1050
|
ExecutionContext: "ExecutionContext",
|
|
1051
1051
|
CiProvider: "CiProvider",
|
|
1052
1052
|
SessionIdSource: "SessionIdSource",
|
|
1053
|
-
SessionId: "SessionId"
|
|
1053
|
+
SessionId: "SessionId",
|
|
1054
|
+
HostApp: "HostApp",
|
|
1055
|
+
HostAppSource: "HostAppSource"
|
|
1054
1056
|
};
|
|
1055
1057
|
CommandDimensions = {
|
|
1056
1058
|
IsCommand: "IsCommand",
|
|
@@ -1175,6 +1177,8 @@ var init_telemetry_dimensions = __esm(() => {
|
|
|
1175
1177
|
BaseDimensions.CiProvider,
|
|
1176
1178
|
BaseDimensions.SessionIdSource,
|
|
1177
1179
|
BaseDimensions.SessionId,
|
|
1180
|
+
BaseDimensions.HostApp,
|
|
1181
|
+
BaseDimensions.HostAppSource,
|
|
1178
1182
|
...Object.values(CommandDimensions),
|
|
1179
1183
|
...Object.values(ShipDimensions),
|
|
1180
1184
|
...Object.values(ProjectDimensions)
|
|
@@ -10177,6 +10181,72 @@ class NodeContextStorage {
|
|
|
10177
10181
|
}
|
|
10178
10182
|
var init_node_context_storage = () => {};
|
|
10179
10183
|
|
|
10184
|
+
// ../common/src/telemetry/host-app.ts
|
|
10185
|
+
function declaredHostApp(env) {
|
|
10186
|
+
const raw = env[TELEMETRY_HOST_APP_ENV]?.trim().toLowerCase();
|
|
10187
|
+
if (!raw)
|
|
10188
|
+
return;
|
|
10189
|
+
return DECLARABLE_HOST_APPS.includes(raw) ? raw : "other";
|
|
10190
|
+
}
|
|
10191
|
+
function inferredHostApp(env) {
|
|
10192
|
+
if (isSet(env.UIPATH_STUDIO_PID))
|
|
10193
|
+
return "studio-desktop";
|
|
10194
|
+
if (env.TERMINAL_EMULATOR === "JetBrains-JediTerm")
|
|
10195
|
+
return "jetbrains";
|
|
10196
|
+
if (env.TERM_PROGRAM?.toLowerCase() === "vscode" || env.CLAUDE_CODE_ENTRYPOINT === "claude-vscode") {
|
|
10197
|
+
return "vscode";
|
|
10198
|
+
}
|
|
10199
|
+
if (isSet(env.TERM_PROGRAM) || isSet(env.WT_SESSION))
|
|
10200
|
+
return "terminal";
|
|
10201
|
+
return;
|
|
10202
|
+
}
|
|
10203
|
+
function detectHostAppFromEnv(env) {
|
|
10204
|
+
const declared = declaredHostApp(env);
|
|
10205
|
+
if (declared)
|
|
10206
|
+
return { hostApp: declared, source: "declared" };
|
|
10207
|
+
const inferred = inferredHostApp(env);
|
|
10208
|
+
if (inferred)
|
|
10209
|
+
return { hostApp: inferred, source: "inferred" };
|
|
10210
|
+
return { hostApp: "unknown", source: "none" };
|
|
10211
|
+
}
|
|
10212
|
+
function getTelemetryHostApp() {
|
|
10213
|
+
const proc = globalThis.process;
|
|
10214
|
+
if (!proc?.env || proc.platform === "browser")
|
|
10215
|
+
return;
|
|
10216
|
+
const env = proc.env;
|
|
10217
|
+
const existing = hostAppSlot.get();
|
|
10218
|
+
if (existing)
|
|
10219
|
+
return existing;
|
|
10220
|
+
const detected = detectHostAppFromEnv(env);
|
|
10221
|
+
hostAppSlot.set(detected);
|
|
10222
|
+
return detected;
|
|
10223
|
+
}
|
|
10224
|
+
function getHostAppTelemetryProperties() {
|
|
10225
|
+
const detected = getTelemetryHostApp();
|
|
10226
|
+
if (!detected)
|
|
10227
|
+
return {};
|
|
10228
|
+
return {
|
|
10229
|
+
[BaseDimensions.HostApp]: detected.hostApp,
|
|
10230
|
+
[BaseDimensions.HostAppSource]: detected.source
|
|
10231
|
+
};
|
|
10232
|
+
}
|
|
10233
|
+
var TELEMETRY_HOST_APP_ENV = "UIPATH_HOST_APP", DECLARABLE_HOST_APPS, isSet = (value) => value !== undefined && value.trim() !== "", hostAppSlot;
|
|
10234
|
+
var init_host_app = __esm(() => {
|
|
10235
|
+
init_singleton();
|
|
10236
|
+
init_telemetry_dimensions();
|
|
10237
|
+
DECLARABLE_HOST_APPS = [
|
|
10238
|
+
"studio-desktop",
|
|
10239
|
+
"vscode",
|
|
10240
|
+
"cursor",
|
|
10241
|
+
"windsurf",
|
|
10242
|
+
"kiro",
|
|
10243
|
+
"antigravity",
|
|
10244
|
+
"jetbrains",
|
|
10245
|
+
"terminal"
|
|
10246
|
+
];
|
|
10247
|
+
hostAppSlot = singleton("TelemetryHostApp");
|
|
10248
|
+
});
|
|
10249
|
+
|
|
10180
10250
|
// ../common/src/telemetry/span-clock.ts
|
|
10181
10251
|
function startSpanClock() {
|
|
10182
10252
|
const started = performance.now();
|
|
@@ -10351,6 +10421,7 @@ class TelemetryService {
|
|
|
10351
10421
|
...this.defaultProperties,
|
|
10352
10422
|
...redactProperties(properties ?? {}),
|
|
10353
10423
|
[TELEMETRY_SESSION_SOURCE_PROPERTY]: getTelemetrySessionSource(),
|
|
10424
|
+
...getHostAppTelemetryProperties(),
|
|
10354
10425
|
[BaseDimensions.SessionId]: this.telemetryProvider.getSessionId?.() ?? getTelemetrySessionId()
|
|
10355
10426
|
};
|
|
10356
10427
|
return lowercaseIdDimensionValues(enriched);
|
|
@@ -10371,6 +10442,7 @@ class TelemetryService {
|
|
|
10371
10442
|
var init_telemetry_service = __esm(() => {
|
|
10372
10443
|
init_execution_context();
|
|
10373
10444
|
init_global_telemetry_properties();
|
|
10445
|
+
init_host_app();
|
|
10374
10446
|
init_pii_redactor();
|
|
10375
10447
|
init_session_id();
|
|
10376
10448
|
init_telemetry_dimensions();
|
|
@@ -13255,4 +13327,4 @@ export {
|
|
|
13255
13327
|
tracesFailure
|
|
13256
13328
|
};
|
|
13257
13329
|
|
|
13258
|
-
//# debugId=
|
|
13330
|
+
//# debugId=8BC997CB362B0D1C64756E2164756E21
|
package/dist/studio-catalog.js
CHANGED
|
@@ -2646,7 +2646,9 @@ var init_telemetry_dimensions = __esm(() => {
|
|
|
2646
2646
|
ExecutionContext: "ExecutionContext",
|
|
2647
2647
|
CiProvider: "CiProvider",
|
|
2648
2648
|
SessionIdSource: "SessionIdSource",
|
|
2649
|
-
SessionId: "SessionId"
|
|
2649
|
+
SessionId: "SessionId",
|
|
2650
|
+
HostApp: "HostApp",
|
|
2651
|
+
HostAppSource: "HostAppSource"
|
|
2650
2652
|
};
|
|
2651
2653
|
CommandDimensions = {
|
|
2652
2654
|
IsCommand: "IsCommand",
|
|
@@ -2771,6 +2773,8 @@ var init_telemetry_dimensions = __esm(() => {
|
|
|
2771
2773
|
BaseDimensions.CiProvider,
|
|
2772
2774
|
BaseDimensions.SessionIdSource,
|
|
2773
2775
|
BaseDimensions.SessionId,
|
|
2776
|
+
BaseDimensions.HostApp,
|
|
2777
|
+
BaseDimensions.HostAppSource,
|
|
2774
2778
|
...Object.values(CommandDimensions),
|
|
2775
2779
|
...Object.values(ShipDimensions),
|
|
2776
2780
|
...Object.values(ProjectDimensions)
|
|
@@ -11773,6 +11777,72 @@ class NodeContextStorage {
|
|
|
11773
11777
|
}
|
|
11774
11778
|
var init_node_context_storage = () => {};
|
|
11775
11779
|
|
|
11780
|
+
// ../common/src/telemetry/host-app.ts
|
|
11781
|
+
function declaredHostApp(env) {
|
|
11782
|
+
const raw = env[TELEMETRY_HOST_APP_ENV]?.trim().toLowerCase();
|
|
11783
|
+
if (!raw)
|
|
11784
|
+
return;
|
|
11785
|
+
return DECLARABLE_HOST_APPS.includes(raw) ? raw : "other";
|
|
11786
|
+
}
|
|
11787
|
+
function inferredHostApp(env) {
|
|
11788
|
+
if (isSet(env.UIPATH_STUDIO_PID))
|
|
11789
|
+
return "studio-desktop";
|
|
11790
|
+
if (env.TERMINAL_EMULATOR === "JetBrains-JediTerm")
|
|
11791
|
+
return "jetbrains";
|
|
11792
|
+
if (env.TERM_PROGRAM?.toLowerCase() === "vscode" || env.CLAUDE_CODE_ENTRYPOINT === "claude-vscode") {
|
|
11793
|
+
return "vscode";
|
|
11794
|
+
}
|
|
11795
|
+
if (isSet(env.TERM_PROGRAM) || isSet(env.WT_SESSION))
|
|
11796
|
+
return "terminal";
|
|
11797
|
+
return;
|
|
11798
|
+
}
|
|
11799
|
+
function detectHostAppFromEnv(env) {
|
|
11800
|
+
const declared = declaredHostApp(env);
|
|
11801
|
+
if (declared)
|
|
11802
|
+
return { hostApp: declared, source: "declared" };
|
|
11803
|
+
const inferred = inferredHostApp(env);
|
|
11804
|
+
if (inferred)
|
|
11805
|
+
return { hostApp: inferred, source: "inferred" };
|
|
11806
|
+
return { hostApp: "unknown", source: "none" };
|
|
11807
|
+
}
|
|
11808
|
+
function getTelemetryHostApp() {
|
|
11809
|
+
const proc = globalThis.process;
|
|
11810
|
+
if (!proc?.env || proc.platform === "browser")
|
|
11811
|
+
return;
|
|
11812
|
+
const env = proc.env;
|
|
11813
|
+
const existing = hostAppSlot.get();
|
|
11814
|
+
if (existing)
|
|
11815
|
+
return existing;
|
|
11816
|
+
const detected = detectHostAppFromEnv(env);
|
|
11817
|
+
hostAppSlot.set(detected);
|
|
11818
|
+
return detected;
|
|
11819
|
+
}
|
|
11820
|
+
function getHostAppTelemetryProperties() {
|
|
11821
|
+
const detected = getTelemetryHostApp();
|
|
11822
|
+
if (!detected)
|
|
11823
|
+
return {};
|
|
11824
|
+
return {
|
|
11825
|
+
[BaseDimensions.HostApp]: detected.hostApp,
|
|
11826
|
+
[BaseDimensions.HostAppSource]: detected.source
|
|
11827
|
+
};
|
|
11828
|
+
}
|
|
11829
|
+
var TELEMETRY_HOST_APP_ENV = "UIPATH_HOST_APP", DECLARABLE_HOST_APPS, isSet = (value) => value !== undefined && value.trim() !== "", hostAppSlot;
|
|
11830
|
+
var init_host_app = __esm(() => {
|
|
11831
|
+
init_singleton();
|
|
11832
|
+
init_telemetry_dimensions();
|
|
11833
|
+
DECLARABLE_HOST_APPS = [
|
|
11834
|
+
"studio-desktop",
|
|
11835
|
+
"vscode",
|
|
11836
|
+
"cursor",
|
|
11837
|
+
"windsurf",
|
|
11838
|
+
"kiro",
|
|
11839
|
+
"antigravity",
|
|
11840
|
+
"jetbrains",
|
|
11841
|
+
"terminal"
|
|
11842
|
+
];
|
|
11843
|
+
hostAppSlot = singleton("TelemetryHostApp");
|
|
11844
|
+
});
|
|
11845
|
+
|
|
11776
11846
|
// ../common/src/telemetry/span-clock.ts
|
|
11777
11847
|
function startSpanClock() {
|
|
11778
11848
|
const started = performance.now();
|
|
@@ -11947,6 +12017,7 @@ class TelemetryService {
|
|
|
11947
12017
|
...this.defaultProperties,
|
|
11948
12018
|
...redactProperties(properties ?? {}),
|
|
11949
12019
|
[TELEMETRY_SESSION_SOURCE_PROPERTY]: getTelemetrySessionSource(),
|
|
12020
|
+
...getHostAppTelemetryProperties(),
|
|
11950
12021
|
[BaseDimensions.SessionId]: this.telemetryProvider.getSessionId?.() ?? getTelemetrySessionId()
|
|
11951
12022
|
};
|
|
11952
12023
|
return lowercaseIdDimensionValues(enriched);
|
|
@@ -11967,6 +12038,7 @@ class TelemetryService {
|
|
|
11967
12038
|
var init_telemetry_service = __esm(() => {
|
|
11968
12039
|
init_execution_context();
|
|
11969
12040
|
init_global_telemetry_properties();
|
|
12041
|
+
init_host_app();
|
|
11970
12042
|
init_pii_redactor();
|
|
11971
12043
|
init_session_id();
|
|
11972
12044
|
init_telemetry_dimensions();
|
|
@@ -14810,4 +14882,4 @@ export {
|
|
|
14810
14882
|
searchTriggers
|
|
14811
14883
|
};
|
|
14812
14884
|
|
|
14813
|
-
//# debugId=
|
|
14885
|
+
//# debugId=8969644A8B11D09364756E2164756E21
|
package/dist/with-pims-call.js
CHANGED
|
@@ -1050,7 +1050,9 @@ var init_telemetry_dimensions = __esm(() => {
|
|
|
1050
1050
|
ExecutionContext: "ExecutionContext",
|
|
1051
1051
|
CiProvider: "CiProvider",
|
|
1052
1052
|
SessionIdSource: "SessionIdSource",
|
|
1053
|
-
SessionId: "SessionId"
|
|
1053
|
+
SessionId: "SessionId",
|
|
1054
|
+
HostApp: "HostApp",
|
|
1055
|
+
HostAppSource: "HostAppSource"
|
|
1054
1056
|
};
|
|
1055
1057
|
CommandDimensions = {
|
|
1056
1058
|
IsCommand: "IsCommand",
|
|
@@ -1175,6 +1177,8 @@ var init_telemetry_dimensions = __esm(() => {
|
|
|
1175
1177
|
BaseDimensions.CiProvider,
|
|
1176
1178
|
BaseDimensions.SessionIdSource,
|
|
1177
1179
|
BaseDimensions.SessionId,
|
|
1180
|
+
BaseDimensions.HostApp,
|
|
1181
|
+
BaseDimensions.HostAppSource,
|
|
1178
1182
|
...Object.values(CommandDimensions),
|
|
1179
1183
|
...Object.values(ShipDimensions),
|
|
1180
1184
|
...Object.values(ProjectDimensions)
|
|
@@ -10177,6 +10181,72 @@ class NodeContextStorage {
|
|
|
10177
10181
|
}
|
|
10178
10182
|
var init_node_context_storage = () => {};
|
|
10179
10183
|
|
|
10184
|
+
// ../common/src/telemetry/host-app.ts
|
|
10185
|
+
function declaredHostApp(env) {
|
|
10186
|
+
const raw = env[TELEMETRY_HOST_APP_ENV]?.trim().toLowerCase();
|
|
10187
|
+
if (!raw)
|
|
10188
|
+
return;
|
|
10189
|
+
return DECLARABLE_HOST_APPS.includes(raw) ? raw : "other";
|
|
10190
|
+
}
|
|
10191
|
+
function inferredHostApp(env) {
|
|
10192
|
+
if (isSet(env.UIPATH_STUDIO_PID))
|
|
10193
|
+
return "studio-desktop";
|
|
10194
|
+
if (env.TERMINAL_EMULATOR === "JetBrains-JediTerm")
|
|
10195
|
+
return "jetbrains";
|
|
10196
|
+
if (env.TERM_PROGRAM?.toLowerCase() === "vscode" || env.CLAUDE_CODE_ENTRYPOINT === "claude-vscode") {
|
|
10197
|
+
return "vscode";
|
|
10198
|
+
}
|
|
10199
|
+
if (isSet(env.TERM_PROGRAM) || isSet(env.WT_SESSION))
|
|
10200
|
+
return "terminal";
|
|
10201
|
+
return;
|
|
10202
|
+
}
|
|
10203
|
+
function detectHostAppFromEnv(env) {
|
|
10204
|
+
const declared = declaredHostApp(env);
|
|
10205
|
+
if (declared)
|
|
10206
|
+
return { hostApp: declared, source: "declared" };
|
|
10207
|
+
const inferred = inferredHostApp(env);
|
|
10208
|
+
if (inferred)
|
|
10209
|
+
return { hostApp: inferred, source: "inferred" };
|
|
10210
|
+
return { hostApp: "unknown", source: "none" };
|
|
10211
|
+
}
|
|
10212
|
+
function getTelemetryHostApp() {
|
|
10213
|
+
const proc = globalThis.process;
|
|
10214
|
+
if (!proc?.env || proc.platform === "browser")
|
|
10215
|
+
return;
|
|
10216
|
+
const env = proc.env;
|
|
10217
|
+
const existing = hostAppSlot.get();
|
|
10218
|
+
if (existing)
|
|
10219
|
+
return existing;
|
|
10220
|
+
const detected = detectHostAppFromEnv(env);
|
|
10221
|
+
hostAppSlot.set(detected);
|
|
10222
|
+
return detected;
|
|
10223
|
+
}
|
|
10224
|
+
function getHostAppTelemetryProperties() {
|
|
10225
|
+
const detected = getTelemetryHostApp();
|
|
10226
|
+
if (!detected)
|
|
10227
|
+
return {};
|
|
10228
|
+
return {
|
|
10229
|
+
[BaseDimensions.HostApp]: detected.hostApp,
|
|
10230
|
+
[BaseDimensions.HostAppSource]: detected.source
|
|
10231
|
+
};
|
|
10232
|
+
}
|
|
10233
|
+
var TELEMETRY_HOST_APP_ENV = "UIPATH_HOST_APP", DECLARABLE_HOST_APPS, isSet = (value) => value !== undefined && value.trim() !== "", hostAppSlot;
|
|
10234
|
+
var init_host_app = __esm(() => {
|
|
10235
|
+
init_singleton();
|
|
10236
|
+
init_telemetry_dimensions();
|
|
10237
|
+
DECLARABLE_HOST_APPS = [
|
|
10238
|
+
"studio-desktop",
|
|
10239
|
+
"vscode",
|
|
10240
|
+
"cursor",
|
|
10241
|
+
"windsurf",
|
|
10242
|
+
"kiro",
|
|
10243
|
+
"antigravity",
|
|
10244
|
+
"jetbrains",
|
|
10245
|
+
"terminal"
|
|
10246
|
+
];
|
|
10247
|
+
hostAppSlot = singleton("TelemetryHostApp");
|
|
10248
|
+
});
|
|
10249
|
+
|
|
10180
10250
|
// ../common/src/telemetry/span-clock.ts
|
|
10181
10251
|
function startSpanClock() {
|
|
10182
10252
|
const started = performance.now();
|
|
@@ -10351,6 +10421,7 @@ class TelemetryService {
|
|
|
10351
10421
|
...this.defaultProperties,
|
|
10352
10422
|
...redactProperties(properties ?? {}),
|
|
10353
10423
|
[TELEMETRY_SESSION_SOURCE_PROPERTY]: getTelemetrySessionSource(),
|
|
10424
|
+
...getHostAppTelemetryProperties(),
|
|
10354
10425
|
[BaseDimensions.SessionId]: this.telemetryProvider.getSessionId?.() ?? getTelemetrySessionId()
|
|
10355
10426
|
};
|
|
10356
10427
|
return lowercaseIdDimensionValues(enriched);
|
|
@@ -10371,6 +10442,7 @@ class TelemetryService {
|
|
|
10371
10442
|
var init_telemetry_service = __esm(() => {
|
|
10372
10443
|
init_execution_context();
|
|
10373
10444
|
init_global_telemetry_properties();
|
|
10445
|
+
init_host_app();
|
|
10374
10446
|
init_pii_redactor();
|
|
10375
10447
|
init_session_id();
|
|
10376
10448
|
init_telemetry_dimensions();
|
|
@@ -15080,4 +15152,4 @@ export {
|
|
|
15080
15152
|
withPimsCall
|
|
15081
15153
|
};
|
|
15082
15154
|
|
|
15083
|
-
//# debugId=
|
|
15155
|
+
//# debugId=317F52B67D2F054264756E2164756E21
|