@uipath/maestro-sdk 1.207.0-preview.381 → 1.207.0-preview.383
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 +106 -11
- package/dist/json-input.js +74 -2
- package/dist/registry/command.js +106 -11
- 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
|
@@ -103779,7 +103779,9 @@ var BaseDimensions = {
|
|
|
103779
103779
|
ExecutionContext: "ExecutionContext",
|
|
103780
103780
|
CiProvider: "CiProvider",
|
|
103781
103781
|
SessionIdSource: "SessionIdSource",
|
|
103782
|
-
SessionId: "SessionId"
|
|
103782
|
+
SessionId: "SessionId",
|
|
103783
|
+
HostApp: "HostApp",
|
|
103784
|
+
HostAppSource: "HostAppSource"
|
|
103783
103785
|
};
|
|
103784
103786
|
var CommandDimensions = {
|
|
103785
103787
|
IsCommand: "IsCommand",
|
|
@@ -103903,6 +103905,8 @@ var CURATED_DIMENSIONS = new Set([
|
|
|
103903
103905
|
BaseDimensions.CiProvider,
|
|
103904
103906
|
BaseDimensions.SessionIdSource,
|
|
103905
103907
|
BaseDimensions.SessionId,
|
|
103908
|
+
BaseDimensions.HostApp,
|
|
103909
|
+
BaseDimensions.HostAppSource,
|
|
103906
103910
|
...Object.values(CommandDimensions),
|
|
103907
103911
|
...Object.values(ShipDimensions),
|
|
103908
103912
|
...Object.values(ProjectDimensions)
|
|
@@ -105798,4 +105802,4 @@ export {
|
|
|
105798
105802
|
updateBpmnLayout
|
|
105799
105803
|
};
|
|
105800
105804
|
|
|
105801
|
-
//# debugId=
|
|
105805
|
+
//# debugId=6256FEEBEFB8D17B64756E2164756E21
|
|
@@ -264,7 +264,9 @@ var BaseDimensions = {
|
|
|
264
264
|
ExecutionContext: "ExecutionContext",
|
|
265
265
|
CiProvider: "CiProvider",
|
|
266
266
|
SessionIdSource: "SessionIdSource",
|
|
267
|
-
SessionId: "SessionId"
|
|
267
|
+
SessionId: "SessionId",
|
|
268
|
+
HostApp: "HostApp",
|
|
269
|
+
HostAppSource: "HostAppSource"
|
|
268
270
|
};
|
|
269
271
|
var CommandDimensions = {
|
|
270
272
|
IsCommand: "IsCommand",
|
|
@@ -388,6 +390,8 @@ var CURATED_DIMENSIONS = new Set([
|
|
|
388
390
|
BaseDimensions.CiProvider,
|
|
389
391
|
BaseDimensions.SessionIdSource,
|
|
390
392
|
BaseDimensions.SessionId,
|
|
393
|
+
BaseDimensions.HostApp,
|
|
394
|
+
BaseDimensions.HostAppSource,
|
|
391
395
|
...Object.values(CommandDimensions),
|
|
392
396
|
...Object.values(ShipDimensions),
|
|
393
397
|
...Object.values(ProjectDimensions)
|
|
@@ -17620,4 +17624,4 @@ export {
|
|
|
17620
17624
|
required
|
|
17621
17625
|
};
|
|
17622
17626
|
|
|
17623
|
-
//# debugId=
|
|
17627
|
+
//# debugId=5F5BD111586BF6BF64756E2164756E21
|
|
@@ -107,7 +107,9 @@ var init_telemetry_dimensions = __esm(() => {
|
|
|
107
107
|
ExecutionContext: "ExecutionContext",
|
|
108
108
|
CiProvider: "CiProvider",
|
|
109
109
|
SessionIdSource: "SessionIdSource",
|
|
110
|
-
SessionId: "SessionId"
|
|
110
|
+
SessionId: "SessionId",
|
|
111
|
+
HostApp: "HostApp",
|
|
112
|
+
HostAppSource: "HostAppSource"
|
|
111
113
|
};
|
|
112
114
|
CommandDimensions = {
|
|
113
115
|
IsCommand: "IsCommand",
|
|
@@ -232,6 +234,8 @@ var init_telemetry_dimensions = __esm(() => {
|
|
|
232
234
|
BaseDimensions.CiProvider,
|
|
233
235
|
BaseDimensions.SessionIdSource,
|
|
234
236
|
BaseDimensions.SessionId,
|
|
237
|
+
BaseDimensions.HostApp,
|
|
238
|
+
BaseDimensions.HostAppSource,
|
|
235
239
|
...Object.values(CommandDimensions),
|
|
236
240
|
...Object.values(ShipDimensions),
|
|
237
241
|
...Object.values(ProjectDimensions)
|
|
@@ -13903,4 +13907,4 @@ export {
|
|
|
13903
13907
|
isIntsvcActivityExecutionV1
|
|
13904
13908
|
};
|
|
13905
13909
|
|
|
13906
|
-
//# debugId=
|
|
13910
|
+
//# debugId=510956BA0D09EDFF64756E2164756E21
|
|
@@ -158,7 +158,9 @@ var init_telemetry_dimensions = __esm(() => {
|
|
|
158
158
|
ExecutionContext: "ExecutionContext",
|
|
159
159
|
CiProvider: "CiProvider",
|
|
160
160
|
SessionIdSource: "SessionIdSource",
|
|
161
|
-
SessionId: "SessionId"
|
|
161
|
+
SessionId: "SessionId",
|
|
162
|
+
HostApp: "HostApp",
|
|
163
|
+
HostAppSource: "HostAppSource"
|
|
162
164
|
};
|
|
163
165
|
CommandDimensions = {
|
|
164
166
|
IsCommand: "IsCommand",
|
|
@@ -283,6 +285,8 @@ var init_telemetry_dimensions = __esm(() => {
|
|
|
283
285
|
BaseDimensions.CiProvider,
|
|
284
286
|
BaseDimensions.SessionIdSource,
|
|
285
287
|
BaseDimensions.SessionId,
|
|
288
|
+
BaseDimensions.HostApp,
|
|
289
|
+
BaseDimensions.HostAppSource,
|
|
286
290
|
...Object.values(CommandDimensions),
|
|
287
291
|
...Object.values(ShipDimensions),
|
|
288
292
|
...Object.values(ProjectDimensions)
|
|
@@ -1121,7 +1125,7 @@ var init_package = __esm(() => {
|
|
|
1121
1125
|
name: "@uipath/integrationservice-sdk",
|
|
1122
1126
|
author: "UiPath",
|
|
1123
1127
|
license: "SEE LICENSE IN LICENSE.txt",
|
|
1124
|
-
version: "1.207.0-preview.
|
|
1128
|
+
version: "1.207.0-preview.383",
|
|
1125
1129
|
repository: {
|
|
1126
1130
|
type: "git",
|
|
1127
1131
|
url: "https://github.com/UiPath/cli.git",
|
|
@@ -20416,6 +20420,72 @@ class NodeContextStorage {
|
|
|
20416
20420
|
}
|
|
20417
20421
|
var init_node_context_storage = () => {};
|
|
20418
20422
|
|
|
20423
|
+
// ../common/src/telemetry/host-app.ts
|
|
20424
|
+
function declaredHostApp(env) {
|
|
20425
|
+
const raw = env[TELEMETRY_HOST_APP_ENV]?.trim().toLowerCase();
|
|
20426
|
+
if (!raw)
|
|
20427
|
+
return;
|
|
20428
|
+
return DECLARABLE_HOST_APPS.includes(raw) ? raw : "other";
|
|
20429
|
+
}
|
|
20430
|
+
function inferredHostApp(env) {
|
|
20431
|
+
if (isSet(env.UIPATH_STUDIO_PID))
|
|
20432
|
+
return "studio-desktop";
|
|
20433
|
+
if (env.TERMINAL_EMULATOR === "JetBrains-JediTerm")
|
|
20434
|
+
return "jetbrains";
|
|
20435
|
+
if (env.TERM_PROGRAM?.toLowerCase() === "vscode" || env.CLAUDE_CODE_ENTRYPOINT === "claude-vscode") {
|
|
20436
|
+
return "vscode";
|
|
20437
|
+
}
|
|
20438
|
+
if (isSet(env.TERM_PROGRAM) || isSet(env.WT_SESSION))
|
|
20439
|
+
return "terminal";
|
|
20440
|
+
return;
|
|
20441
|
+
}
|
|
20442
|
+
function detectHostAppFromEnv(env) {
|
|
20443
|
+
const declared = declaredHostApp(env);
|
|
20444
|
+
if (declared)
|
|
20445
|
+
return { hostApp: declared, source: "declared" };
|
|
20446
|
+
const inferred = inferredHostApp(env);
|
|
20447
|
+
if (inferred)
|
|
20448
|
+
return { hostApp: inferred, source: "inferred" };
|
|
20449
|
+
return { hostApp: "unknown", source: "none" };
|
|
20450
|
+
}
|
|
20451
|
+
function getTelemetryHostApp() {
|
|
20452
|
+
const proc = globalThis.process;
|
|
20453
|
+
if (!proc?.env || proc.platform === "browser")
|
|
20454
|
+
return;
|
|
20455
|
+
const env = proc.env;
|
|
20456
|
+
const existing = hostAppSlot.get();
|
|
20457
|
+
if (existing)
|
|
20458
|
+
return existing;
|
|
20459
|
+
const detected = detectHostAppFromEnv(env);
|
|
20460
|
+
hostAppSlot.set(detected);
|
|
20461
|
+
return detected;
|
|
20462
|
+
}
|
|
20463
|
+
function getHostAppTelemetryProperties() {
|
|
20464
|
+
const detected = getTelemetryHostApp();
|
|
20465
|
+
if (!detected)
|
|
20466
|
+
return {};
|
|
20467
|
+
return {
|
|
20468
|
+
[BaseDimensions.HostApp]: detected.hostApp,
|
|
20469
|
+
[BaseDimensions.HostAppSource]: detected.source
|
|
20470
|
+
};
|
|
20471
|
+
}
|
|
20472
|
+
var TELEMETRY_HOST_APP_ENV = "UIPATH_HOST_APP", DECLARABLE_HOST_APPS, isSet = (value) => value !== undefined && value.trim() !== "", hostAppSlot;
|
|
20473
|
+
var init_host_app = __esm(() => {
|
|
20474
|
+
init_singleton();
|
|
20475
|
+
init_telemetry_dimensions();
|
|
20476
|
+
DECLARABLE_HOST_APPS = [
|
|
20477
|
+
"studio-desktop",
|
|
20478
|
+
"vscode",
|
|
20479
|
+
"cursor",
|
|
20480
|
+
"windsurf",
|
|
20481
|
+
"kiro",
|
|
20482
|
+
"antigravity",
|
|
20483
|
+
"jetbrains",
|
|
20484
|
+
"terminal"
|
|
20485
|
+
];
|
|
20486
|
+
hostAppSlot = singleton("TelemetryHostApp");
|
|
20487
|
+
});
|
|
20488
|
+
|
|
20419
20489
|
// ../common/src/telemetry/span-clock.ts
|
|
20420
20490
|
function startSpanClock() {
|
|
20421
20491
|
const started = performance.now();
|
|
@@ -20590,6 +20660,7 @@ class TelemetryService {
|
|
|
20590
20660
|
...this.defaultProperties,
|
|
20591
20661
|
...redactProperties(properties ?? {}),
|
|
20592
20662
|
[TELEMETRY_SESSION_SOURCE_PROPERTY]: getTelemetrySessionSource(),
|
|
20663
|
+
...getHostAppTelemetryProperties(),
|
|
20593
20664
|
[BaseDimensions.SessionId]: this.telemetryProvider.getSessionId?.() ?? getTelemetrySessionId()
|
|
20594
20665
|
};
|
|
20595
20666
|
return lowercaseIdDimensionValues(enriched);
|
|
@@ -20610,6 +20681,7 @@ class TelemetryService {
|
|
|
20610
20681
|
var init_telemetry_service = __esm(() => {
|
|
20611
20682
|
init_execution_context();
|
|
20612
20683
|
init_global_telemetry_properties();
|
|
20684
|
+
init_host_app();
|
|
20613
20685
|
init_pii_redactor();
|
|
20614
20686
|
init_session_id();
|
|
20615
20687
|
init_telemetry_dimensions();
|
|
@@ -265429,7 +265501,7 @@ function buildManagedHttpSpec(detail, catalog, connection) {
|
|
|
265429
265501
|
};
|
|
265430
265502
|
}
|
|
265431
265503
|
// src/connector-spec/missing-required.ts
|
|
265432
|
-
var
|
|
265504
|
+
var isSet2 = (value) => value !== undefined && value !== null && value !== "";
|
|
265433
265505
|
function authoredValue(values, name) {
|
|
265434
265506
|
if (values === undefined)
|
|
265435
265507
|
return;
|
|
@@ -265444,7 +265516,7 @@ function authoredValue(values, name) {
|
|
|
265444
265516
|
return current;
|
|
265445
265517
|
}
|
|
265446
265518
|
function missingRequiredInputs(spec, authored) {
|
|
265447
|
-
const unset = (fields, values, bucket) => (fields ?? []).filter((field) => field.required && field.defaultValue === undefined && !
|
|
265519
|
+
const unset = (fields, values, bucket) => (fields ?? []).filter((field) => field.required && field.defaultValue === undefined && !isSet2(authoredValue(values, field.name))).map((field) => `${bucket}.${field.name}`);
|
|
265448
265520
|
const inputs = spec.inputs;
|
|
265449
265521
|
return [
|
|
265450
265522
|
...unset(inputs?.pathParameters, authored?.pathParameters, "pathParameters"),
|
|
@@ -265612,4 +265684,4 @@ export {
|
|
|
265612
265684
|
studioCatalogTypeCache
|
|
265613
265685
|
};
|
|
265614
265686
|
|
|
265615
|
-
//# debugId=
|
|
265687
|
+
//# debugId=4F1E829CA39125EC64756E2164756E21
|
|
@@ -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();
|
|
@@ -13461,4 +13533,4 @@ export {
|
|
|
13461
13533
|
studioWebPost
|
|
13462
13534
|
};
|
|
13463
13535
|
|
|
13464
|
-
//# debugId=
|
|
13536
|
+
//# debugId=C1F648F98425A89F64756E2164756E21
|
package/dist/debug-service.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();
|
|
@@ -14465,4 +14537,4 @@ export {
|
|
|
14465
14537
|
uploadAndDebugSolution
|
|
14466
14538
|
};
|
|
14467
14539
|
|
|
14468
|
-
//# debugId=
|
|
14540
|
+
//# debugId=FDE7FD1A3DFB4D7D64756E2164756E21
|
package/dist/index.js
CHANGED
|
@@ -107,7 +107,9 @@ var init_telemetry_dimensions = __esm(() => {
|
|
|
107
107
|
ExecutionContext: "ExecutionContext",
|
|
108
108
|
CiProvider: "CiProvider",
|
|
109
109
|
SessionIdSource: "SessionIdSource",
|
|
110
|
-
SessionId: "SessionId"
|
|
110
|
+
SessionId: "SessionId",
|
|
111
|
+
HostApp: "HostApp",
|
|
112
|
+
HostAppSource: "HostAppSource"
|
|
111
113
|
};
|
|
112
114
|
CommandDimensions = {
|
|
113
115
|
IsCommand: "IsCommand",
|
|
@@ -232,6 +234,8 @@ var init_telemetry_dimensions = __esm(() => {
|
|
|
232
234
|
BaseDimensions.CiProvider,
|
|
233
235
|
BaseDimensions.SessionIdSource,
|
|
234
236
|
BaseDimensions.SessionId,
|
|
237
|
+
BaseDimensions.HostApp,
|
|
238
|
+
BaseDimensions.HostAppSource,
|
|
235
239
|
...Object.values(CommandDimensions),
|
|
236
240
|
...Object.values(ShipDimensions),
|
|
237
241
|
...Object.values(ProjectDimensions)
|
|
@@ -10350,6 +10354,72 @@ class NodeContextStorage {
|
|
|
10350
10354
|
}
|
|
10351
10355
|
var init_node_context_storage = () => {};
|
|
10352
10356
|
|
|
10357
|
+
// ../common/src/telemetry/host-app.ts
|
|
10358
|
+
function declaredHostApp(env) {
|
|
10359
|
+
const raw = env[TELEMETRY_HOST_APP_ENV]?.trim().toLowerCase();
|
|
10360
|
+
if (!raw)
|
|
10361
|
+
return;
|
|
10362
|
+
return DECLARABLE_HOST_APPS.includes(raw) ? raw : "other";
|
|
10363
|
+
}
|
|
10364
|
+
function inferredHostApp(env) {
|
|
10365
|
+
if (isSet(env.UIPATH_STUDIO_PID))
|
|
10366
|
+
return "studio-desktop";
|
|
10367
|
+
if (env.TERMINAL_EMULATOR === "JetBrains-JediTerm")
|
|
10368
|
+
return "jetbrains";
|
|
10369
|
+
if (env.TERM_PROGRAM?.toLowerCase() === "vscode" || env.CLAUDE_CODE_ENTRYPOINT === "claude-vscode") {
|
|
10370
|
+
return "vscode";
|
|
10371
|
+
}
|
|
10372
|
+
if (isSet(env.TERM_PROGRAM) || isSet(env.WT_SESSION))
|
|
10373
|
+
return "terminal";
|
|
10374
|
+
return;
|
|
10375
|
+
}
|
|
10376
|
+
function detectHostAppFromEnv(env) {
|
|
10377
|
+
const declared = declaredHostApp(env);
|
|
10378
|
+
if (declared)
|
|
10379
|
+
return { hostApp: declared, source: "declared" };
|
|
10380
|
+
const inferred = inferredHostApp(env);
|
|
10381
|
+
if (inferred)
|
|
10382
|
+
return { hostApp: inferred, source: "inferred" };
|
|
10383
|
+
return { hostApp: "unknown", source: "none" };
|
|
10384
|
+
}
|
|
10385
|
+
function getTelemetryHostApp() {
|
|
10386
|
+
const proc = globalThis.process;
|
|
10387
|
+
if (!proc?.env || proc.platform === "browser")
|
|
10388
|
+
return;
|
|
10389
|
+
const env = proc.env;
|
|
10390
|
+
const existing = hostAppSlot.get();
|
|
10391
|
+
if (existing)
|
|
10392
|
+
return existing;
|
|
10393
|
+
const detected = detectHostAppFromEnv(env);
|
|
10394
|
+
hostAppSlot.set(detected);
|
|
10395
|
+
return detected;
|
|
10396
|
+
}
|
|
10397
|
+
function getHostAppTelemetryProperties() {
|
|
10398
|
+
const detected = getTelemetryHostApp();
|
|
10399
|
+
if (!detected)
|
|
10400
|
+
return {};
|
|
10401
|
+
return {
|
|
10402
|
+
[BaseDimensions.HostApp]: detected.hostApp,
|
|
10403
|
+
[BaseDimensions.HostAppSource]: detected.source
|
|
10404
|
+
};
|
|
10405
|
+
}
|
|
10406
|
+
var TELEMETRY_HOST_APP_ENV = "UIPATH_HOST_APP", DECLARABLE_HOST_APPS, isSet = (value) => value !== undefined && value.trim() !== "", hostAppSlot;
|
|
10407
|
+
var init_host_app = __esm(() => {
|
|
10408
|
+
init_singleton();
|
|
10409
|
+
init_telemetry_dimensions();
|
|
10410
|
+
DECLARABLE_HOST_APPS = [
|
|
10411
|
+
"studio-desktop",
|
|
10412
|
+
"vscode",
|
|
10413
|
+
"cursor",
|
|
10414
|
+
"windsurf",
|
|
10415
|
+
"kiro",
|
|
10416
|
+
"antigravity",
|
|
10417
|
+
"jetbrains",
|
|
10418
|
+
"terminal"
|
|
10419
|
+
];
|
|
10420
|
+
hostAppSlot = singleton("TelemetryHostApp");
|
|
10421
|
+
});
|
|
10422
|
+
|
|
10353
10423
|
// ../common/src/telemetry/span-clock.ts
|
|
10354
10424
|
function startSpanClock() {
|
|
10355
10425
|
const started = performance.now();
|
|
@@ -10524,6 +10594,7 @@ class TelemetryService {
|
|
|
10524
10594
|
...this.defaultProperties,
|
|
10525
10595
|
...redactProperties(properties ?? {}),
|
|
10526
10596
|
[TELEMETRY_SESSION_SOURCE_PROPERTY]: getTelemetrySessionSource(),
|
|
10597
|
+
...getHostAppTelemetryProperties(),
|
|
10527
10598
|
[BaseDimensions.SessionId]: this.telemetryProvider.getSessionId?.() ?? getTelemetrySessionId()
|
|
10528
10599
|
};
|
|
10529
10600
|
return lowercaseIdDimensionValues(enriched);
|
|
@@ -10544,6 +10615,7 @@ class TelemetryService {
|
|
|
10544
10615
|
var init_telemetry_service = __esm(() => {
|
|
10545
10616
|
init_execution_context();
|
|
10546
10617
|
init_global_telemetry_properties();
|
|
10618
|
+
init_host_app();
|
|
10547
10619
|
init_pii_redactor();
|
|
10548
10620
|
init_session_id();
|
|
10549
10621
|
init_telemetry_dimensions();
|
|
@@ -145072,7 +145144,7 @@ var init_package = __esm(() => {
|
|
|
145072
145144
|
name: "@uipath/integrationservice-sdk",
|
|
145073
145145
|
author: "UiPath",
|
|
145074
145146
|
license: "SEE LICENSE IN LICENSE.txt",
|
|
145075
|
-
version: "1.207.0-preview.
|
|
145147
|
+
version: "1.207.0-preview.383",
|
|
145076
145148
|
repository: {
|
|
145077
145149
|
type: "git",
|
|
145078
145150
|
url: "https://github.com/UiPath/cli.git",
|
|
@@ -264201,17 +264273,36 @@ async function getNodesWithCacheFallback() {
|
|
|
264201
264273
|
function isConnectorCatalogType(lowerNodeType) {
|
|
264202
264274
|
return CONNECTOR_CATALOG_PREFIXES.some((prefix) => lowerNodeType.startsWith(prefix));
|
|
264203
264275
|
}
|
|
264204
|
-
|
|
264276
|
+
function withinMissRefreshInterval(at) {
|
|
264277
|
+
const age = typeof at === "number" ? Date.now() - at : -1;
|
|
264278
|
+
return age >= 0 && age < MISS_REFRESH_INTERVAL;
|
|
264279
|
+
}
|
|
264280
|
+
async function refreshOnMiss(kind) {
|
|
264205
264281
|
const scope = loginScope(await readLoginStatus());
|
|
264206
264282
|
if (scope === undefined)
|
|
264207
264283
|
return null;
|
|
264208
264284
|
const [, last] = await catchError(loadMissRefreshAt(scope));
|
|
264209
|
-
|
|
264210
|
-
|
|
264211
|
-
return
|
|
264285
|
+
if (withinMissRefreshInterval(last)) {
|
|
264286
|
+
const [, current] = await catchError(loadScopedNodeIndex(scope));
|
|
264287
|
+
return current ? {
|
|
264288
|
+
result: current.nodes,
|
|
264289
|
+
missingSources: missingSourceNames(current.metadata.missingSources)
|
|
264290
|
+
} : null;
|
|
264291
|
+
}
|
|
264292
|
+
if (kind === "connector-catalogue") {
|
|
264293
|
+
const [, current] = await catchError(loadScopedNodeIndex(scope));
|
|
264294
|
+
if (current && withinMissRefreshInterval(current.metadata.lastSync) && !current.metadata.missingSources?.some((missing) => CONNECTOR_CATALOGUE_SOURCES.has(missing.source))) {
|
|
264295
|
+
return {
|
|
264296
|
+
result: current.nodes,
|
|
264297
|
+
missingSources: missingSourceNames(current.metadata.missingSources)
|
|
264298
|
+
};
|
|
264299
|
+
}
|
|
264212
264300
|
}
|
|
264213
264301
|
await catchError(saveMissRefreshAt(scope, Date.now()));
|
|
264214
|
-
const [error, refreshed] = await catchError(loadCurrentTenantNodes({
|
|
264302
|
+
const [error, refreshed] = await catchError(loadCurrentTenantNodes({
|
|
264303
|
+
force: true,
|
|
264304
|
+
reuseConnectors: kind === "tenant-resource"
|
|
264305
|
+
}));
|
|
264215
264306
|
if (error || refreshed.failures?.length || refreshed.refreshError) {
|
|
264216
264307
|
return null;
|
|
264217
264308
|
}
|
|
@@ -264400,7 +264491,7 @@ async function searchNodeSummariesWithAvailabilityAndDiagnostics(keyword, filter
|
|
|
264400
264491
|
if (found.length > 0 || !snapshot.fromCache || !keyword && !filters) {
|
|
264401
264492
|
return { result: found, missingSources: snapshot.missingSources };
|
|
264402
264493
|
}
|
|
264403
|
-
const refreshed = await refreshOnMiss(
|
|
264494
|
+
const refreshed = await refreshOnMiss("search");
|
|
264404
264495
|
return refreshed ? {
|
|
264405
264496
|
result: searchSummaries(buildSearchIndex(refreshed.result), keyword, filters),
|
|
264406
264497
|
missingSources: refreshed.missingSources
|
|
@@ -264480,7 +264571,7 @@ async function getNodeWithDiagnostics(nodeType, options) {
|
|
|
264480
264571
|
if (node || !snapshot.fromCache || options?.refreshOnMiss === false) {
|
|
264481
264572
|
return { result: node, missingSources: snapshot.missingSources };
|
|
264482
264573
|
}
|
|
264483
|
-
const refreshed = await refreshOnMiss(
|
|
264574
|
+
const refreshed = await refreshOnMiss(isConnectorCatalogType(lowerNodeType) ? "connector-catalogue" : "tenant-resource");
|
|
264484
264575
|
return refreshed ? {
|
|
264485
264576
|
result: findNodeByType(refreshed.result, nodeType),
|
|
264486
264577
|
missingSources: refreshed.missingSources
|
|
@@ -264516,7 +264607,7 @@ async function searchNodesWithFilters(keyword, filters, options) {
|
|
|
264516
264607
|
}
|
|
264517
264608
|
return searchWithFilters(nodes, keyword, filters);
|
|
264518
264609
|
}
|
|
264519
|
-
var MANIFEST_VALIDATION_SOURCE = "manifest validation", MANIFEST_VALIDATION_NEXT_STEP = "Fix or remove the tenant resource named in the validation error, then run 'registry pull' again.", TENANT_MANIFEST_INVALID = "TenantManifestInvalid", TenantManifestInvalidError, TENANT_MANIFEST_UNAVAILABLE = "TenantManifestUnavailable", PartialNodeSourcesError, TenantManifestUnavailableError, SessionExpiredError, MAX_FAILURE_REASON_LENGTH = 500, CACHE_EXPIRATION, ENABLED_MANIFEST_FLAGS, CONNECTOR_CATALOG_PREFIXES, MISS_REFRESH_INTERVAL;
|
|
264610
|
+
var MANIFEST_VALIDATION_SOURCE = "manifest validation", MANIFEST_VALIDATION_NEXT_STEP = "Fix or remove the tenant resource named in the validation error, then run 'registry pull' again.", TENANT_MANIFEST_INVALID = "TenantManifestInvalid", TenantManifestInvalidError, TENANT_MANIFEST_UNAVAILABLE = "TenantManifestUnavailable", PartialNodeSourcesError, TenantManifestUnavailableError, SessionExpiredError, MAX_FAILURE_REASON_LENGTH = 500, CACHE_EXPIRATION, ENABLED_MANIFEST_FLAGS, CONNECTOR_CATALOG_PREFIXES, MISS_REFRESH_INTERVAL, CONNECTOR_CATALOGUE_SOURCES;
|
|
264520
264611
|
var init_node_sync_service = __esm(() => {
|
|
264521
264612
|
init_src3();
|
|
264522
264613
|
init_src2();
|
|
@@ -264589,6 +264680,10 @@ var init_node_sync_service = __esm(() => {
|
|
|
264589
264680
|
AGENT_TOOL_CONNECTOR_NODE_PREFIX
|
|
264590
264681
|
];
|
|
264591
264682
|
MISS_REFRESH_INTERVAL = 60 * 1000;
|
|
264683
|
+
CONNECTOR_CATALOGUE_SOURCES = new Set([
|
|
264684
|
+
"connector nodes",
|
|
264685
|
+
"integration trigger nodes"
|
|
264686
|
+
]);
|
|
264592
264687
|
});
|
|
264593
264688
|
|
|
264594
264689
|
// src/variable-tags/catalog-types.ts
|
|
@@ -289452,4 +289547,4 @@ export {
|
|
|
289452
289547
|
withPimsCall
|
|
289453
289548
|
};
|
|
289454
289549
|
|
|
289455
|
-
//# debugId=
|
|
289550
|
+
//# debugId=F8C775210F462EB664756E2164756E21
|