@uipath/admin-tool 1.199.0-preview.99 → 1.199.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/tool.js +105 -43
- package/package.json +2 -2
package/dist/tool.js
CHANGED
|
@@ -23693,7 +23693,7 @@ var __require2 = /* @__PURE__ */ createRequire2(import.meta.url);
|
|
|
23693
23693
|
var package_default = {
|
|
23694
23694
|
name: "@uipath/admin-vpngateway-tool",
|
|
23695
23695
|
license: "MIT",
|
|
23696
|
-
version: "1.199.0
|
|
23696
|
+
version: "1.199.0",
|
|
23697
23697
|
description: "CLI plugin for UiPath VPN Gateway management (Hypervisor service).",
|
|
23698
23698
|
private: false,
|
|
23699
23699
|
repository: {
|
|
@@ -48716,7 +48716,7 @@ function requireOmap() {
|
|
|
48716
48716
|
function resolveYamlOmap(data) {
|
|
48717
48717
|
if (data === null)
|
|
48718
48718
|
return true;
|
|
48719
|
-
const objectKeys =
|
|
48719
|
+
const objectKeys = {};
|
|
48720
48720
|
const object = data;
|
|
48721
48721
|
for (let index = 0, length = object.length;index < length; index += 1) {
|
|
48722
48722
|
const pair = object[index];
|
|
@@ -48734,10 +48734,9 @@ function requireOmap() {
|
|
|
48734
48734
|
}
|
|
48735
48735
|
if (!pairHasKey)
|
|
48736
48736
|
return false;
|
|
48737
|
-
if (
|
|
48738
|
-
objectKeys.push(pairKey);
|
|
48739
|
-
else
|
|
48737
|
+
if (_hasOwnProperty.call(objectKeys, pairKey))
|
|
48740
48738
|
return false;
|
|
48739
|
+
Object.defineProperty(objectKeys, pairKey, { value: true });
|
|
48741
48740
|
}
|
|
48742
48741
|
return true;
|
|
48743
48742
|
}
|
|
@@ -51577,8 +51576,18 @@ function getInboundTraceContext() {
|
|
|
51577
51576
|
return parseInboundTraceparent(getProcessEnv()?.[TELEMETRY_TRACEPARENT_ENV]);
|
|
51578
51577
|
}
|
|
51579
51578
|
var TELEMETRY_SESSION_ID_ENV = "UIPATH_SESSION_ID";
|
|
51580
|
-
var
|
|
51581
|
-
var
|
|
51579
|
+
var SESSION_ID_MAX_LENGTH = 64;
|
|
51580
|
+
var RANDOM_SESSION_ID_LENGTH = 32;
|
|
51581
|
+
var TELEMETRY_SESSION_SOURCE_PROPERTY = "session_id_source";
|
|
51582
|
+
var CONTROL_CHARACTERS = /\p{Cc}/gu;
|
|
51583
|
+
var INHERITED_SESSION_SOURCES = [
|
|
51584
|
+
{ envVar: "CLAUDE_CODE_SESSION_ID", source: "claude-code" },
|
|
51585
|
+
{ envVar: "CODEX_THREAD_ID", source: "codex" },
|
|
51586
|
+
{ envVar: "ANTIGRAVITY_TRAJECTORY_ID", source: "antigravity" },
|
|
51587
|
+
{ envVar: "TERM_SESSION_ID", source: "terminal" },
|
|
51588
|
+
{ envVar: "WT_SESSION", source: "terminal" }
|
|
51589
|
+
];
|
|
51590
|
+
var telemetrySessionSlot = singleton2("TelemetrySession");
|
|
51582
51591
|
var telemetryOperationIdSlot = singleton2("TelemetryOperationId");
|
|
51583
51592
|
function getProcessEnv2() {
|
|
51584
51593
|
return globalThis.process?.env;
|
|
@@ -51587,14 +51596,42 @@ function normalizeSessionId(value) {
|
|
|
51587
51596
|
if (typeof value !== "string" && typeof value !== "number" && typeof value !== "boolean") {
|
|
51588
51597
|
return;
|
|
51589
51598
|
}
|
|
51590
|
-
const
|
|
51591
|
-
return
|
|
51599
|
+
const cleaned = String(value).replace(CONTROL_CHARACTERS, "").trim().slice(0, SESSION_ID_MAX_LENGTH);
|
|
51600
|
+
return cleaned || undefined;
|
|
51592
51601
|
}
|
|
51593
51602
|
function getConfiguredTelemetrySessionId() {
|
|
51594
51603
|
return normalizeSessionId(getProcessEnv2()?.[TELEMETRY_SESSION_ID_ENV]);
|
|
51595
51604
|
}
|
|
51596
|
-
function
|
|
51597
|
-
|
|
51605
|
+
function getInheritedSession(env) {
|
|
51606
|
+
for (const candidate of INHERITED_SESSION_SOURCES) {
|
|
51607
|
+
const handle = normalizeSessionId(env[candidate.envVar]);
|
|
51608
|
+
if (handle) {
|
|
51609
|
+
return { id: handle, source: candidate.source };
|
|
51610
|
+
}
|
|
51611
|
+
}
|
|
51612
|
+
return;
|
|
51613
|
+
}
|
|
51614
|
+
function generateRandomSession() {
|
|
51615
|
+
const bytes = new Uint8Array(RANDOM_SESSION_ID_LENGTH / 2);
|
|
51616
|
+
crypto.getRandomValues(bytes);
|
|
51617
|
+
let hex = "";
|
|
51618
|
+
for (const byte of bytes) {
|
|
51619
|
+
hex += byte.toString(16).padStart(2, "0");
|
|
51620
|
+
}
|
|
51621
|
+
return { id: hex, source: "random" };
|
|
51622
|
+
}
|
|
51623
|
+
function resolveTelemetrySession() {
|
|
51624
|
+
const existing = telemetrySessionSlot.get();
|
|
51625
|
+
if (existing) {
|
|
51626
|
+
return existing;
|
|
51627
|
+
}
|
|
51628
|
+
const declaredHandle = getConfiguredTelemetrySessionId();
|
|
51629
|
+
const resolved = declaredHandle ? { id: declaredHandle, source: "declared" } : getInheritedSession(getProcessEnv2() ?? {}) ?? generateRandomSession();
|
|
51630
|
+
telemetrySessionSlot.set(resolved);
|
|
51631
|
+
return resolved;
|
|
51632
|
+
}
|
|
51633
|
+
function getTelemetrySessionSource() {
|
|
51634
|
+
return resolveTelemetrySession().source;
|
|
51598
51635
|
}
|
|
51599
51636
|
function getTelemetryOperationId() {
|
|
51600
51637
|
const existing = telemetryOperationIdSlot.get();
|
|
@@ -51866,24 +51903,18 @@ class TelemetryService {
|
|
|
51866
51903
|
}
|
|
51867
51904
|
enrichPropertiesWithContext(properties, context) {
|
|
51868
51905
|
const globalProperties = getGlobalTelemetryProperties();
|
|
51869
|
-
const existingSessionId = properties?.[TELEMETRY_SESSION_ID_PROPERTY] ?? this.defaultProperties?.[TELEMETRY_SESSION_ID_PROPERTY] ?? globalProperties?.[TELEMETRY_SESSION_ID_PROPERTY];
|
|
51870
|
-
const sessionId = resolveTelemetrySessionId(existingSessionId);
|
|
51871
51906
|
const enriched = {
|
|
51872
51907
|
...getExecutionContextTelemetryProperties(),
|
|
51873
51908
|
...globalProperties,
|
|
51874
51909
|
...this.defaultProperties,
|
|
51875
51910
|
...redactProperties(properties ?? {}),
|
|
51911
|
+
[TELEMETRY_SESSION_SOURCE_PROPERTY]: getTelemetrySessionSource(),
|
|
51876
51912
|
...context ? {
|
|
51877
51913
|
[TELEMETRY_OPERATION_ID_PROPERTY]: context.operationId,
|
|
51878
51914
|
...context.parentId !== undefined ? { [TELEMETRY_PARENT_ID_PROPERTY]: context.parentId } : {},
|
|
51879
51915
|
[TELEMETRY_SPAN_ID_PROPERTY]: context.id
|
|
51880
51916
|
} : {}
|
|
51881
51917
|
};
|
|
51882
|
-
if (sessionId === undefined) {
|
|
51883
|
-
delete enriched[TELEMETRY_SESSION_ID_PROPERTY];
|
|
51884
|
-
} else {
|
|
51885
|
-
enriched[TELEMETRY_SESSION_ID_PROPERTY] = sessionId;
|
|
51886
|
-
}
|
|
51887
51918
|
return enriched;
|
|
51888
51919
|
}
|
|
51889
51920
|
generateId() {
|
|
@@ -54007,7 +54038,7 @@ var registerCommands = async (program2) => {
|
|
|
54007
54038
|
var package_default3 = {
|
|
54008
54039
|
name: "@uipath/apms-tool",
|
|
54009
54040
|
license: "MIT",
|
|
54010
|
-
version: "1.199.0
|
|
54041
|
+
version: "1.199.0",
|
|
54011
54042
|
description: "CLI plugin for the UiPath Access Policy Management Service.",
|
|
54012
54043
|
private: false,
|
|
54013
54044
|
repository: {
|
|
@@ -59945,7 +59976,7 @@ function requireOmap2() {
|
|
|
59945
59976
|
function resolveYamlOmap(data) {
|
|
59946
59977
|
if (data === null)
|
|
59947
59978
|
return true;
|
|
59948
|
-
const objectKeys =
|
|
59979
|
+
const objectKeys = {};
|
|
59949
59980
|
const object = data;
|
|
59950
59981
|
for (let index = 0, length = object.length;index < length; index += 1) {
|
|
59951
59982
|
const pair = object[index];
|
|
@@ -59963,10 +59994,9 @@ function requireOmap2() {
|
|
|
59963
59994
|
}
|
|
59964
59995
|
if (!pairHasKey)
|
|
59965
59996
|
return false;
|
|
59966
|
-
if (
|
|
59967
|
-
objectKeys.push(pairKey);
|
|
59968
|
-
else
|
|
59997
|
+
if (_hasOwnProperty.call(objectKeys, pairKey))
|
|
59969
59998
|
return false;
|
|
59999
|
+
Object.defineProperty(objectKeys, pairKey, { value: true });
|
|
59970
60000
|
}
|
|
59971
60001
|
return true;
|
|
59972
60002
|
}
|
|
@@ -62827,8 +62857,18 @@ function getInboundTraceContext2() {
|
|
|
62827
62857
|
|
|
62828
62858
|
// ../../common/src/telemetry/session-id.ts
|
|
62829
62859
|
var TELEMETRY_SESSION_ID_ENV2 = "UIPATH_SESSION_ID";
|
|
62830
|
-
var
|
|
62831
|
-
var
|
|
62860
|
+
var SESSION_ID_MAX_LENGTH2 = 64;
|
|
62861
|
+
var RANDOM_SESSION_ID_LENGTH2 = 32;
|
|
62862
|
+
var TELEMETRY_SESSION_SOURCE_PROPERTY2 = "session_id_source";
|
|
62863
|
+
var CONTROL_CHARACTERS2 = /\p{Cc}/gu;
|
|
62864
|
+
var INHERITED_SESSION_SOURCES2 = [
|
|
62865
|
+
{ envVar: "CLAUDE_CODE_SESSION_ID", source: "claude-code" },
|
|
62866
|
+
{ envVar: "CODEX_THREAD_ID", source: "codex" },
|
|
62867
|
+
{ envVar: "ANTIGRAVITY_TRAJECTORY_ID", source: "antigravity" },
|
|
62868
|
+
{ envVar: "TERM_SESSION_ID", source: "terminal" },
|
|
62869
|
+
{ envVar: "WT_SESSION", source: "terminal" }
|
|
62870
|
+
];
|
|
62871
|
+
var telemetrySessionSlot2 = singleton3("TelemetrySession");
|
|
62832
62872
|
var telemetryOperationIdSlot2 = singleton3("TelemetryOperationId");
|
|
62833
62873
|
function getProcessEnv5() {
|
|
62834
62874
|
return globalThis.process?.env;
|
|
@@ -62837,14 +62877,42 @@ function normalizeSessionId2(value) {
|
|
|
62837
62877
|
if (typeof value !== "string" && typeof value !== "number" && typeof value !== "boolean") {
|
|
62838
62878
|
return;
|
|
62839
62879
|
}
|
|
62840
|
-
const
|
|
62841
|
-
return
|
|
62880
|
+
const cleaned = String(value).replace(CONTROL_CHARACTERS2, "").trim().slice(0, SESSION_ID_MAX_LENGTH2);
|
|
62881
|
+
return cleaned || undefined;
|
|
62842
62882
|
}
|
|
62843
62883
|
function getConfiguredTelemetrySessionId2() {
|
|
62844
62884
|
return normalizeSessionId2(getProcessEnv5()?.[TELEMETRY_SESSION_ID_ENV2]);
|
|
62845
62885
|
}
|
|
62846
|
-
function
|
|
62847
|
-
|
|
62886
|
+
function getInheritedSession2(env) {
|
|
62887
|
+
for (const candidate of INHERITED_SESSION_SOURCES2) {
|
|
62888
|
+
const handle = normalizeSessionId2(env[candidate.envVar]);
|
|
62889
|
+
if (handle) {
|
|
62890
|
+
return { id: handle, source: candidate.source };
|
|
62891
|
+
}
|
|
62892
|
+
}
|
|
62893
|
+
return;
|
|
62894
|
+
}
|
|
62895
|
+
function generateRandomSession2() {
|
|
62896
|
+
const bytes = new Uint8Array(RANDOM_SESSION_ID_LENGTH2 / 2);
|
|
62897
|
+
crypto.getRandomValues(bytes);
|
|
62898
|
+
let hex = "";
|
|
62899
|
+
for (const byte of bytes) {
|
|
62900
|
+
hex += byte.toString(16).padStart(2, "0");
|
|
62901
|
+
}
|
|
62902
|
+
return { id: hex, source: "random" };
|
|
62903
|
+
}
|
|
62904
|
+
function resolveTelemetrySession2() {
|
|
62905
|
+
const existing = telemetrySessionSlot2.get();
|
|
62906
|
+
if (existing) {
|
|
62907
|
+
return existing;
|
|
62908
|
+
}
|
|
62909
|
+
const declaredHandle = getConfiguredTelemetrySessionId2();
|
|
62910
|
+
const resolved = declaredHandle ? { id: declaredHandle, source: "declared" } : getInheritedSession2(getProcessEnv5() ?? {}) ?? generateRandomSession2();
|
|
62911
|
+
telemetrySessionSlot2.set(resolved);
|
|
62912
|
+
return resolved;
|
|
62913
|
+
}
|
|
62914
|
+
function getTelemetrySessionSource2() {
|
|
62915
|
+
return resolveTelemetrySession2().source;
|
|
62848
62916
|
}
|
|
62849
62917
|
function getTelemetryOperationId2() {
|
|
62850
62918
|
const existing = telemetryOperationIdSlot2.get();
|
|
@@ -63115,24 +63183,18 @@ class TelemetryService2 {
|
|
|
63115
63183
|
}
|
|
63116
63184
|
enrichPropertiesWithContext(properties, context) {
|
|
63117
63185
|
const globalProperties = getGlobalTelemetryProperties2();
|
|
63118
|
-
const existingSessionId = properties?.[TELEMETRY_SESSION_ID_PROPERTY2] ?? this.defaultProperties?.[TELEMETRY_SESSION_ID_PROPERTY2] ?? globalProperties?.[TELEMETRY_SESSION_ID_PROPERTY2];
|
|
63119
|
-
const sessionId = resolveTelemetrySessionId2(existingSessionId);
|
|
63120
63186
|
const enriched = {
|
|
63121
63187
|
...getExecutionContextTelemetryProperties2(),
|
|
63122
63188
|
...globalProperties,
|
|
63123
63189
|
...this.defaultProperties,
|
|
63124
63190
|
...redactProperties2(properties ?? {}),
|
|
63191
|
+
[TELEMETRY_SESSION_SOURCE_PROPERTY2]: getTelemetrySessionSource2(),
|
|
63125
63192
|
...context ? {
|
|
63126
63193
|
[TELEMETRY_OPERATION_ID_PROPERTY2]: context.operationId,
|
|
63127
63194
|
...context.parentId !== undefined ? { [TELEMETRY_PARENT_ID_PROPERTY2]: context.parentId } : {},
|
|
63128
63195
|
[TELEMETRY_SPAN_ID_PROPERTY2]: context.id
|
|
63129
63196
|
} : {}
|
|
63130
63197
|
};
|
|
63131
|
-
if (sessionId === undefined) {
|
|
63132
|
-
delete enriched[TELEMETRY_SESSION_ID_PROPERTY2];
|
|
63133
|
-
} else {
|
|
63134
|
-
enriched[TELEMETRY_SESSION_ID_PROPERTY2] = sessionId;
|
|
63135
|
-
}
|
|
63136
63198
|
return enriched;
|
|
63137
63199
|
}
|
|
63138
63200
|
generateId() {
|
|
@@ -65243,7 +65305,7 @@ var registerCommands2 = async (program2) => {
|
|
|
65243
65305
|
var package_default6 = {
|
|
65244
65306
|
name: "@uipath/audit-tool",
|
|
65245
65307
|
license: "MIT",
|
|
65246
|
-
version: "1.199.0
|
|
65308
|
+
version: "1.199.0",
|
|
65247
65309
|
description: "CLI plugin for the UiPath Audit Service — query event sources, paginate events, and export ZIPs from the long-term store.",
|
|
65248
65310
|
private: false,
|
|
65249
65311
|
repository: {
|
|
@@ -66499,7 +66561,7 @@ var registerCommands3 = async (program2) => {
|
|
|
66499
66561
|
var package_default8 = {
|
|
66500
66562
|
name: "@uipath/authz-tool",
|
|
66501
66563
|
license: "MIT",
|
|
66502
|
-
version: "1.199.0
|
|
66564
|
+
version: "1.199.0",
|
|
66503
66565
|
description: "CLI plugin for the UiPath Authorization service.",
|
|
66504
66566
|
private: false,
|
|
66505
66567
|
repository: {
|
|
@@ -72110,7 +72172,7 @@ var registerCommands4 = async (program2) => {
|
|
|
72110
72172
|
var package_default11 = {
|
|
72111
72173
|
name: "@uipath/identity-tool",
|
|
72112
72174
|
license: "MIT",
|
|
72113
|
-
version: "1.199.0
|
|
72175
|
+
version: "1.199.0",
|
|
72114
72176
|
description: "Manage Identity Server users, groups, robot accounts, and external apps.",
|
|
72115
72177
|
private: false,
|
|
72116
72178
|
repository: {
|
|
@@ -74479,7 +74541,7 @@ var registerCommands5 = async (program2) => {
|
|
|
74479
74541
|
var package_default12 = {
|
|
74480
74542
|
name: "@uipath/oms-tool",
|
|
74481
74543
|
license: "MIT",
|
|
74482
|
-
version: "1.199.0
|
|
74544
|
+
version: "1.199.0",
|
|
74483
74545
|
description: "CLI plugin for the UiPath Organization Management Service.",
|
|
74484
74546
|
private: false,
|
|
74485
74547
|
repository: {
|
|
@@ -81010,7 +81072,7 @@ var registerCommands6 = async (program2) => {
|
|
|
81010
81072
|
var package_default14 = {
|
|
81011
81073
|
name: "@uipath/resourcecatalog-tool",
|
|
81012
81074
|
license: "MIT",
|
|
81013
|
-
version: "1.199.0
|
|
81075
|
+
version: "1.199.0",
|
|
81014
81076
|
description: "CLI plugin for the UiPath Resource Catalog Service.",
|
|
81015
81077
|
private: false,
|
|
81016
81078
|
repository: {
|
|
@@ -82958,7 +83020,7 @@ var registerCommands7 = async (program2) => {
|
|
|
82958
83020
|
var package_default16 = {
|
|
82959
83021
|
name: "@uipath/admin-tool",
|
|
82960
83022
|
license: "MIT",
|
|
82961
|
-
version: "1.199.0
|
|
83023
|
+
version: "1.199.0",
|
|
82962
83024
|
description: "Manage UiPath admin resources — Identity Server, Resource Catalog Service, Audit Service, VPN Gateway.",
|
|
82963
83025
|
private: false,
|
|
82964
83026
|
repository: {
|
|
@@ -83023,4 +83085,4 @@ export {
|
|
|
83023
83085
|
metadata8 as metadata
|
|
83024
83086
|
};
|
|
83025
83087
|
|
|
83026
|
-
//# debugId=
|
|
83088
|
+
//# debugId=AC86210838248E6364756E2164756E21
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uipath/admin-tool",
|
|
3
3
|
"license": "MIT",
|
|
4
|
-
"version": "1.199.0
|
|
4
|
+
"version": "1.199.0",
|
|
5
5
|
"description": "Manage UiPath admin resources — Identity Server, Resource Catalog Service, Audit Service, VPN Gateway.",
|
|
6
6
|
"private": false,
|
|
7
7
|
"repository": {
|
|
@@ -23,5 +23,5 @@
|
|
|
23
23
|
"files": [
|
|
24
24
|
"dist"
|
|
25
25
|
],
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "723e6801b77b5926ba75e75b6a756cc38b1b7adc"
|
|
27
27
|
}
|