@uipath/platform-tool 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.
- package/dist/index.js +1 -1
- package/dist/{tool-w17y59wc.js → tool-27nyndtf.js} +71 -3
- package/dist/tool.js +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -28120,7 +28120,7 @@ var package_default = {
|
|
|
28120
28120
|
name: "@uipath/platform-tool",
|
|
28121
28121
|
author: "UiPath",
|
|
28122
28122
|
license: "SEE LICENSE IN LICENSE.txt",
|
|
28123
|
-
version: "1.207.0-preview.
|
|
28123
|
+
version: "1.207.0-preview.383",
|
|
28124
28124
|
description: "Manage UiPath platform-level resources such as tenant licensing.",
|
|
28125
28125
|
publishConfig: {
|
|
28126
28126
|
registry: "https://npm.pkg.github.com/"
|
|
@@ -30013,7 +30013,9 @@ var BaseDimensions = {
|
|
|
30013
30013
|
ExecutionContext: "ExecutionContext",
|
|
30014
30014
|
CiProvider: "CiProvider",
|
|
30015
30015
|
SessionIdSource: "SessionIdSource",
|
|
30016
|
-
SessionId: "SessionId"
|
|
30016
|
+
SessionId: "SessionId",
|
|
30017
|
+
HostApp: "HostApp",
|
|
30018
|
+
HostAppSource: "HostAppSource"
|
|
30017
30019
|
};
|
|
30018
30020
|
var CommandDimensions = {
|
|
30019
30021
|
IsCommand: "IsCommand",
|
|
@@ -30138,6 +30140,8 @@ var CURATED_DIMENSIONS = new Set([
|
|
|
30138
30140
|
BaseDimensions.CiProvider,
|
|
30139
30141
|
BaseDimensions.SessionIdSource,
|
|
30140
30142
|
BaseDimensions.SessionId,
|
|
30143
|
+
BaseDimensions.HostApp,
|
|
30144
|
+
BaseDimensions.HostAppSource,
|
|
30141
30145
|
...Object.values(CommandDimensions),
|
|
30142
30146
|
...Object.values(ShipDimensions),
|
|
30143
30147
|
...Object.values(ProjectDimensions)
|
|
@@ -32331,6 +32335,69 @@ class NodeContextStorage {
|
|
|
32331
32335
|
return this.storage.getStore();
|
|
32332
32336
|
}
|
|
32333
32337
|
}
|
|
32338
|
+
// ../common/src/telemetry/host-app.ts
|
|
32339
|
+
var TELEMETRY_HOST_APP_ENV = "UIPATH_HOST_APP";
|
|
32340
|
+
var DECLARABLE_HOST_APPS = [
|
|
32341
|
+
"studio-desktop",
|
|
32342
|
+
"vscode",
|
|
32343
|
+
"cursor",
|
|
32344
|
+
"windsurf",
|
|
32345
|
+
"kiro",
|
|
32346
|
+
"antigravity",
|
|
32347
|
+
"jetbrains",
|
|
32348
|
+
"terminal"
|
|
32349
|
+
];
|
|
32350
|
+
var isSet = (value) => value !== undefined && value.trim() !== "";
|
|
32351
|
+
function declaredHostApp(env) {
|
|
32352
|
+
const raw = env[TELEMETRY_HOST_APP_ENV]?.trim().toLowerCase();
|
|
32353
|
+
if (!raw)
|
|
32354
|
+
return;
|
|
32355
|
+
return DECLARABLE_HOST_APPS.includes(raw) ? raw : "other";
|
|
32356
|
+
}
|
|
32357
|
+
function inferredHostApp(env) {
|
|
32358
|
+
if (isSet(env.UIPATH_STUDIO_PID))
|
|
32359
|
+
return "studio-desktop";
|
|
32360
|
+
if (env.TERMINAL_EMULATOR === "JetBrains-JediTerm")
|
|
32361
|
+
return "jetbrains";
|
|
32362
|
+
if (env.TERM_PROGRAM?.toLowerCase() === "vscode" || env.CLAUDE_CODE_ENTRYPOINT === "claude-vscode") {
|
|
32363
|
+
return "vscode";
|
|
32364
|
+
}
|
|
32365
|
+
if (isSet(env.TERM_PROGRAM) || isSet(env.WT_SESSION))
|
|
32366
|
+
return "terminal";
|
|
32367
|
+
return;
|
|
32368
|
+
}
|
|
32369
|
+
function detectHostAppFromEnv(env) {
|
|
32370
|
+
const declared = declaredHostApp(env);
|
|
32371
|
+
if (declared)
|
|
32372
|
+
return { hostApp: declared, source: "declared" };
|
|
32373
|
+
const inferred = inferredHostApp(env);
|
|
32374
|
+
if (inferred)
|
|
32375
|
+
return { hostApp: inferred, source: "inferred" };
|
|
32376
|
+
return { hostApp: "unknown", source: "none" };
|
|
32377
|
+
}
|
|
32378
|
+
var hostAppSlot = singleton("TelemetryHostApp");
|
|
32379
|
+
function getTelemetryHostApp() {
|
|
32380
|
+
const proc = globalThis.process;
|
|
32381
|
+
if (!proc?.env || proc.platform === "browser")
|
|
32382
|
+
return;
|
|
32383
|
+
const env = proc.env;
|
|
32384
|
+
const existing = hostAppSlot.get();
|
|
32385
|
+
if (existing)
|
|
32386
|
+
return existing;
|
|
32387
|
+
const detected = detectHostAppFromEnv(env);
|
|
32388
|
+
hostAppSlot.set(detected);
|
|
32389
|
+
return detected;
|
|
32390
|
+
}
|
|
32391
|
+
function getHostAppTelemetryProperties() {
|
|
32392
|
+
const detected = getTelemetryHostApp();
|
|
32393
|
+
if (!detected)
|
|
32394
|
+
return {};
|
|
32395
|
+
return {
|
|
32396
|
+
[BaseDimensions.HostApp]: detected.hostApp,
|
|
32397
|
+
[BaseDimensions.HostAppSource]: detected.source
|
|
32398
|
+
};
|
|
32399
|
+
}
|
|
32400
|
+
|
|
32334
32401
|
// ../common/src/telemetry/span-clock.ts
|
|
32335
32402
|
function startSpanClock() {
|
|
32336
32403
|
const started = performance.now();
|
|
@@ -32505,6 +32572,7 @@ class TelemetryService {
|
|
|
32505
32572
|
...this.defaultProperties,
|
|
32506
32573
|
...redactProperties(properties ?? {}),
|
|
32507
32574
|
[TELEMETRY_SESSION_SOURCE_PROPERTY]: getTelemetrySessionSource(),
|
|
32575
|
+
...getHostAppTelemetryProperties(),
|
|
32508
32576
|
[BaseDimensions.SessionId]: this.telemetryProvider.getSessionId?.() ?? getTelemetrySessionId()
|
|
32509
32577
|
};
|
|
32510
32578
|
return lowercaseIdDimensionValues(enriched);
|
|
@@ -38894,4 +38962,4 @@ var registerCommands2 = async (program) => {
|
|
|
38894
38962
|
|
|
38895
38963
|
export { Command, metadata2, registerCommands2 };
|
|
38896
38964
|
|
|
38897
|
-
//# debugId=
|
|
38965
|
+
//# debugId=88A0090B4A50F78564756E2164756E21
|
package/dist/tool.js
CHANGED
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@uipath/platform-tool",
|
|
3
3
|
"author": "UiPath",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
|
-
"version": "1.207.0-preview.
|
|
5
|
+
"version": "1.207.0-preview.383",
|
|
6
6
|
"description": "Manage UiPath platform-level resources such as tenant licensing.",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -21,5 +21,5 @@
|
|
|
21
21
|
"keywords": [
|
|
22
22
|
"cli-tool"
|
|
23
23
|
],
|
|
24
|
-
"gitHead": "
|
|
24
|
+
"gitHead": "85d84703860a43424852e068d6d3f867832f6d30"
|
|
25
25
|
}
|