@uipath/maestro-sdk 1.207.0-preview.382 → 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.
@@ -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=F2107C24FEF32E9E64756E2164756E21
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=81F08108CFF2170964756E2164756E21
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=7B34ADC2186A8A6D64756E2164756E21
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.382",
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 isSet = (value) => value !== undefined && value !== null && value !== "";
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 && !isSet(authoredValue(values, field.name))).map((field) => `${bucket}.${field.name}`);
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=4EC34B65D0D2B5BB64756E2164756E21
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=764AEDE3781F4B6764756E2164756E21
13536
+ //# debugId=C1F648F98425A89F64756E2164756E21
@@ -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=0F94871705D5E98764756E2164756E21
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.382",
145147
+ version: "1.207.0-preview.383",
145076
145148
  repository: {
145077
145149
  type: "git",
145078
145150
  url: "https://github.com/UiPath/cli.git",
@@ -289475,4 +289547,4 @@ export {
289475
289547
  withPimsCall
289476
289548
  };
289477
289549
 
289478
- //# debugId=EBD87C36470CCFB464756E2164756E21
289550
+ //# debugId=F8C775210F462EB664756E2164756E21
@@ -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();
@@ -13295,4 +13367,4 @@ export {
13295
13367
  resolveJsonInput
13296
13368
  };
13297
13369
 
13298
- //# debugId=0ACCA028727BD7A164756E2164756E21
13370
+ //# debugId=EA467CAC8492213564756E2164756E21