@uipath/case-tool 1.199.0-preview.107 → 1.199.0-preview.110
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 +122 -40
- package/package.json +2 -2
package/dist/tool.js
CHANGED
|
@@ -278559,7 +278559,12 @@ var require_fast_uri = __commonJS((exports, module) => {
|
|
|
278559
278559
|
}
|
|
278560
278560
|
function resolve2(baseURI, relativeURI, options) {
|
|
278561
278561
|
const schemelessOptions = options ? Object.assign({ scheme: "null" }, options) : { scheme: "null" };
|
|
278562
|
-
const
|
|
278562
|
+
const { parsed: baseParsed, malformedAuthorityOrPort: baseMalformed } = parseWithStatus(baseURI, schemelessOptions);
|
|
278563
|
+
const { parsed: relativeParsed, malformedAuthorityOrPort: relativeMalformed } = parseWithStatus(relativeURI, schemelessOptions);
|
|
278564
|
+
if (baseMalformed || relativeMalformed) {
|
|
278565
|
+
throw new Error(baseParsed.error || relativeParsed.error || "URI is malformed.");
|
|
278566
|
+
}
|
|
278567
|
+
const resolved = resolveComponent(baseParsed, relativeParsed, schemelessOptions, true);
|
|
278563
278568
|
schemelessOptions.skipEscape = true;
|
|
278564
278569
|
return serialize(resolved, schemelessOptions);
|
|
278565
278570
|
}
|
|
@@ -278686,6 +278691,7 @@ var require_fast_uri = __commonJS((exports, module) => {
|
|
|
278686
278691
|
}
|
|
278687
278692
|
var URI_PARSE = /^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;
|
|
278688
278693
|
var AUTHORITY_PREFIX = /^(?:[^#/:?]+:)?\/\/([^/?#]*)/;
|
|
278694
|
+
var AUTHORITY_INTRODUCER_REGION = /^(?:[^#/:?]+:)?([/\\\t\n\r]*)/;
|
|
278689
278695
|
function getParseError(parsed, matches) {
|
|
278690
278696
|
if (matches[2] !== undefined && parsed.path && parsed.path[0] !== "/") {
|
|
278691
278697
|
return 'URI path must start with "/" when authority is present.';
|
|
@@ -278720,6 +278726,20 @@ var require_fast_uri = __commonJS((exports, module) => {
|
|
|
278720
278726
|
parsed.error = "URI authority must not contain a literal backslash.";
|
|
278721
278727
|
malformedAuthorityOrPort = true;
|
|
278722
278728
|
}
|
|
278729
|
+
const introducerMatch = uri.match(AUTHORITY_INTRODUCER_REGION);
|
|
278730
|
+
if (introducerMatch !== null) {
|
|
278731
|
+
const region = introducerMatch[1];
|
|
278732
|
+
const normalizedRegion = region.replace(/[\t\n\r]/g, "");
|
|
278733
|
+
if (normalizedRegion.length >= 2) {
|
|
278734
|
+
if (normalizedRegion.slice(0, 2) !== "//") {
|
|
278735
|
+
parsed.error = parsed.error || "URI authority must not contain a literal backslash.";
|
|
278736
|
+
malformedAuthorityOrPort = true;
|
|
278737
|
+
} else if (region.length !== normalizedRegion.length) {
|
|
278738
|
+
parsed.error = parsed.error || "URI authority introducer must not contain whitespace.";
|
|
278739
|
+
malformedAuthorityOrPort = true;
|
|
278740
|
+
}
|
|
278741
|
+
}
|
|
278742
|
+
}
|
|
278723
278743
|
const matches = uri.match(URI_PARSE);
|
|
278724
278744
|
if (matches) {
|
|
278725
278745
|
parsed.scheme = matches[1];
|
|
@@ -283463,7 +283483,7 @@ import"./packager-tool.js";
|
|
|
283463
283483
|
var package_default = {
|
|
283464
283484
|
name: "@uipath/case-tool",
|
|
283465
283485
|
license: "MIT",
|
|
283466
|
-
version: "1.199.0-preview.
|
|
283486
|
+
version: "1.199.0-preview.110",
|
|
283467
283487
|
description: "Manage Case Management instances, processes, and incidents.",
|
|
283468
283488
|
private: false,
|
|
283469
283489
|
repository: {
|
|
@@ -286804,7 +286824,7 @@ function requireOmap() {
|
|
|
286804
286824
|
function resolveYamlOmap(data) {
|
|
286805
286825
|
if (data === null)
|
|
286806
286826
|
return true;
|
|
286807
|
-
const objectKeys =
|
|
286827
|
+
const objectKeys = {};
|
|
286808
286828
|
const object = data;
|
|
286809
286829
|
for (let index = 0, length = object.length;index < length; index += 1) {
|
|
286810
286830
|
const pair = object[index];
|
|
@@ -286822,10 +286842,9 @@ function requireOmap() {
|
|
|
286822
286842
|
}
|
|
286823
286843
|
if (!pairHasKey)
|
|
286824
286844
|
return false;
|
|
286825
|
-
if (
|
|
286826
|
-
objectKeys.push(pairKey);
|
|
286827
|
-
else
|
|
286845
|
+
if (_hasOwnProperty.call(objectKeys, pairKey))
|
|
286828
286846
|
return false;
|
|
286847
|
+
Object.defineProperty(objectKeys, pairKey, { value: true });
|
|
286829
286848
|
}
|
|
286830
286849
|
return true;
|
|
286831
286850
|
}
|
|
@@ -289686,8 +289705,18 @@ function getInboundTraceContext() {
|
|
|
289686
289705
|
|
|
289687
289706
|
// ../common/src/telemetry/session-id.ts
|
|
289688
289707
|
var TELEMETRY_SESSION_ID_ENV = "UIPATH_SESSION_ID";
|
|
289689
|
-
var
|
|
289690
|
-
var
|
|
289708
|
+
var SESSION_ID_MAX_LENGTH = 64;
|
|
289709
|
+
var RANDOM_SESSION_ID_LENGTH = 32;
|
|
289710
|
+
var TELEMETRY_SESSION_SOURCE_PROPERTY = "session_id_source";
|
|
289711
|
+
var CONTROL_CHARACTERS = /\p{Cc}/gu;
|
|
289712
|
+
var INHERITED_SESSION_SOURCES = [
|
|
289713
|
+
{ envVar: "CLAUDE_CODE_SESSION_ID", source: "claude-code" },
|
|
289714
|
+
{ envVar: "CODEX_THREAD_ID", source: "codex" },
|
|
289715
|
+
{ envVar: "ANTIGRAVITY_TRAJECTORY_ID", source: "antigravity" },
|
|
289716
|
+
{ envVar: "TERM_SESSION_ID", source: "terminal" },
|
|
289717
|
+
{ envVar: "WT_SESSION", source: "terminal" }
|
|
289718
|
+
];
|
|
289719
|
+
var telemetrySessionSlot = singleton("TelemetrySession");
|
|
289691
289720
|
var telemetryOperationIdSlot = singleton("TelemetryOperationId");
|
|
289692
289721
|
function getProcessEnv2() {
|
|
289693
289722
|
return globalThis.process?.env;
|
|
@@ -289696,14 +289725,42 @@ function normalizeSessionId(value) {
|
|
|
289696
289725
|
if (typeof value !== "string" && typeof value !== "number" && typeof value !== "boolean") {
|
|
289697
289726
|
return;
|
|
289698
289727
|
}
|
|
289699
|
-
const
|
|
289700
|
-
return
|
|
289728
|
+
const cleaned = String(value).replace(CONTROL_CHARACTERS, "").trim().slice(0, SESSION_ID_MAX_LENGTH);
|
|
289729
|
+
return cleaned || undefined;
|
|
289701
289730
|
}
|
|
289702
289731
|
function getConfiguredTelemetrySessionId() {
|
|
289703
289732
|
return normalizeSessionId(getProcessEnv2()?.[TELEMETRY_SESSION_ID_ENV]);
|
|
289704
289733
|
}
|
|
289705
|
-
function
|
|
289706
|
-
|
|
289734
|
+
function getInheritedSession(env) {
|
|
289735
|
+
for (const candidate of INHERITED_SESSION_SOURCES) {
|
|
289736
|
+
const handle = normalizeSessionId(env[candidate.envVar]);
|
|
289737
|
+
if (handle) {
|
|
289738
|
+
return { id: handle, source: candidate.source };
|
|
289739
|
+
}
|
|
289740
|
+
}
|
|
289741
|
+
return;
|
|
289742
|
+
}
|
|
289743
|
+
function generateRandomSession() {
|
|
289744
|
+
const bytes = new Uint8Array(RANDOM_SESSION_ID_LENGTH / 2);
|
|
289745
|
+
crypto.getRandomValues(bytes);
|
|
289746
|
+
let hex = "";
|
|
289747
|
+
for (const byte of bytes) {
|
|
289748
|
+
hex += byte.toString(16).padStart(2, "0");
|
|
289749
|
+
}
|
|
289750
|
+
return { id: hex, source: "random" };
|
|
289751
|
+
}
|
|
289752
|
+
function resolveTelemetrySession() {
|
|
289753
|
+
const existing = telemetrySessionSlot.get();
|
|
289754
|
+
if (existing) {
|
|
289755
|
+
return existing;
|
|
289756
|
+
}
|
|
289757
|
+
const declaredHandle = getConfiguredTelemetrySessionId();
|
|
289758
|
+
const resolved = declaredHandle ? { id: declaredHandle, source: "declared" } : getInheritedSession(getProcessEnv2() ?? {}) ?? generateRandomSession();
|
|
289759
|
+
telemetrySessionSlot.set(resolved);
|
|
289760
|
+
return resolved;
|
|
289761
|
+
}
|
|
289762
|
+
function getTelemetrySessionSource() {
|
|
289763
|
+
return resolveTelemetrySession().source;
|
|
289707
289764
|
}
|
|
289708
289765
|
function getTelemetryOperationId() {
|
|
289709
289766
|
const existing = telemetryOperationIdSlot.get();
|
|
@@ -289980,24 +290037,18 @@ class TelemetryService {
|
|
|
289980
290037
|
}
|
|
289981
290038
|
enrichPropertiesWithContext(properties, context) {
|
|
289982
290039
|
const globalProperties = getGlobalTelemetryProperties();
|
|
289983
|
-
const existingSessionId = properties?.[TELEMETRY_SESSION_ID_PROPERTY] ?? this.defaultProperties?.[TELEMETRY_SESSION_ID_PROPERTY] ?? globalProperties?.[TELEMETRY_SESSION_ID_PROPERTY];
|
|
289984
|
-
const sessionId = resolveTelemetrySessionId(existingSessionId);
|
|
289985
290040
|
const enriched = {
|
|
289986
290041
|
...getExecutionContextTelemetryProperties(),
|
|
289987
290042
|
...globalProperties,
|
|
289988
290043
|
...this.defaultProperties,
|
|
289989
290044
|
...redactProperties(properties ?? {}),
|
|
290045
|
+
[TELEMETRY_SESSION_SOURCE_PROPERTY]: getTelemetrySessionSource(),
|
|
289990
290046
|
...context ? {
|
|
289991
290047
|
[TELEMETRY_OPERATION_ID_PROPERTY]: context.operationId,
|
|
289992
290048
|
...context.parentId !== undefined ? { [TELEMETRY_PARENT_ID_PROPERTY]: context.parentId } : {},
|
|
289993
290049
|
[TELEMETRY_SPAN_ID_PROPERTY]: context.id
|
|
289994
290050
|
} : {}
|
|
289995
290051
|
};
|
|
289996
|
-
if (sessionId === undefined) {
|
|
289997
|
-
delete enriched[TELEMETRY_SESSION_ID_PROPERTY];
|
|
289998
|
-
} else {
|
|
289999
|
-
enriched[TELEMETRY_SESSION_ID_PROPERTY] = sessionId;
|
|
290000
|
-
}
|
|
290001
290052
|
return enriched;
|
|
290002
290053
|
}
|
|
290003
290054
|
generateId() {
|
|
@@ -366936,7 +366987,7 @@ class TextApiResponse {
|
|
|
366936
366987
|
var package_default2 = {
|
|
366937
366988
|
name: "@uipath/integrationservice-sdk",
|
|
366938
366989
|
license: "MIT",
|
|
366939
|
-
version: "1.199.0-preview.
|
|
366990
|
+
version: "1.199.0-preview.110",
|
|
366940
366991
|
repository: {
|
|
366941
366992
|
type: "git",
|
|
366942
366993
|
url: "https://github.com/UiPath/cli.git",
|
|
@@ -381143,7 +381194,7 @@ function querystringSingleKey4(key, value, keyPrefix = "") {
|
|
|
381143
381194
|
var package_default4 = {
|
|
381144
381195
|
name: "@uipath/solution-sdk",
|
|
381145
381196
|
license: "MIT",
|
|
381146
|
-
version: "1.199.0-preview.
|
|
381197
|
+
version: "1.199.0-preview.110",
|
|
381147
381198
|
repository: {
|
|
381148
381199
|
type: "git",
|
|
381149
381200
|
url: "https://github.com/UiPath/cli.git",
|
|
@@ -409605,7 +409656,7 @@ function requireOmap2() {
|
|
|
409605
409656
|
function resolveYamlOmap(data) {
|
|
409606
409657
|
if (data === null)
|
|
409607
409658
|
return true;
|
|
409608
|
-
const objectKeys =
|
|
409659
|
+
const objectKeys = {};
|
|
409609
409660
|
const object3 = data;
|
|
409610
409661
|
for (let index = 0, length = object3.length;index < length; index += 1) {
|
|
409611
409662
|
const pair = object3[index];
|
|
@@ -409623,10 +409674,9 @@ function requireOmap2() {
|
|
|
409623
409674
|
}
|
|
409624
409675
|
if (!pairHasKey)
|
|
409625
409676
|
return false;
|
|
409626
|
-
if (
|
|
409627
|
-
objectKeys.push(pairKey);
|
|
409628
|
-
else
|
|
409677
|
+
if (_hasOwnProperty.call(objectKeys, pairKey))
|
|
409629
409678
|
return false;
|
|
409679
|
+
Object.defineProperty(objectKeys, pairKey, { value: true });
|
|
409630
409680
|
}
|
|
409631
409681
|
return true;
|
|
409632
409682
|
}
|
|
@@ -412467,8 +412517,18 @@ function getInboundTraceContext2() {
|
|
|
412467
412517
|
return parseInboundTraceparent2(getProcessEnv3()?.[TELEMETRY_TRACEPARENT_ENV2]);
|
|
412468
412518
|
}
|
|
412469
412519
|
var TELEMETRY_SESSION_ID_ENV2 = "UIPATH_SESSION_ID";
|
|
412470
|
-
var
|
|
412471
|
-
var
|
|
412520
|
+
var SESSION_ID_MAX_LENGTH2 = 64;
|
|
412521
|
+
var RANDOM_SESSION_ID_LENGTH2 = 32;
|
|
412522
|
+
var TELEMETRY_SESSION_SOURCE_PROPERTY2 = "session_id_source";
|
|
412523
|
+
var CONTROL_CHARACTERS2 = /\p{Cc}/gu;
|
|
412524
|
+
var INHERITED_SESSION_SOURCES2 = [
|
|
412525
|
+
{ envVar: "CLAUDE_CODE_SESSION_ID", source: "claude-code" },
|
|
412526
|
+
{ envVar: "CODEX_THREAD_ID", source: "codex" },
|
|
412527
|
+
{ envVar: "ANTIGRAVITY_TRAJECTORY_ID", source: "antigravity" },
|
|
412528
|
+
{ envVar: "TERM_SESSION_ID", source: "terminal" },
|
|
412529
|
+
{ envVar: "WT_SESSION", source: "terminal" }
|
|
412530
|
+
];
|
|
412531
|
+
var telemetrySessionSlot2 = singleton3("TelemetrySession");
|
|
412472
412532
|
var telemetryOperationIdSlot2 = singleton3("TelemetryOperationId");
|
|
412473
412533
|
function getProcessEnv22() {
|
|
412474
412534
|
return globalThis.process?.env;
|
|
@@ -412477,14 +412537,42 @@ function normalizeSessionId2(value) {
|
|
|
412477
412537
|
if (typeof value !== "string" && typeof value !== "number" && typeof value !== "boolean") {
|
|
412478
412538
|
return;
|
|
412479
412539
|
}
|
|
412480
|
-
const
|
|
412481
|
-
return
|
|
412540
|
+
const cleaned = String(value).replace(CONTROL_CHARACTERS2, "").trim().slice(0, SESSION_ID_MAX_LENGTH2);
|
|
412541
|
+
return cleaned || undefined;
|
|
412482
412542
|
}
|
|
412483
412543
|
function getConfiguredTelemetrySessionId2() {
|
|
412484
412544
|
return normalizeSessionId2(getProcessEnv22()?.[TELEMETRY_SESSION_ID_ENV2]);
|
|
412485
412545
|
}
|
|
412486
|
-
function
|
|
412487
|
-
|
|
412546
|
+
function getInheritedSession2(env) {
|
|
412547
|
+
for (const candidate of INHERITED_SESSION_SOURCES2) {
|
|
412548
|
+
const handle = normalizeSessionId2(env[candidate.envVar]);
|
|
412549
|
+
if (handle) {
|
|
412550
|
+
return { id: handle, source: candidate.source };
|
|
412551
|
+
}
|
|
412552
|
+
}
|
|
412553
|
+
return;
|
|
412554
|
+
}
|
|
412555
|
+
function generateRandomSession2() {
|
|
412556
|
+
const bytes = new Uint8Array(RANDOM_SESSION_ID_LENGTH2 / 2);
|
|
412557
|
+
crypto.getRandomValues(bytes);
|
|
412558
|
+
let hex3 = "";
|
|
412559
|
+
for (const byte of bytes) {
|
|
412560
|
+
hex3 += byte.toString(16).padStart(2, "0");
|
|
412561
|
+
}
|
|
412562
|
+
return { id: hex3, source: "random" };
|
|
412563
|
+
}
|
|
412564
|
+
function resolveTelemetrySession2() {
|
|
412565
|
+
const existing = telemetrySessionSlot2.get();
|
|
412566
|
+
if (existing) {
|
|
412567
|
+
return existing;
|
|
412568
|
+
}
|
|
412569
|
+
const declaredHandle = getConfiguredTelemetrySessionId2();
|
|
412570
|
+
const resolved = declaredHandle ? { id: declaredHandle, source: "declared" } : getInheritedSession2(getProcessEnv22() ?? {}) ?? generateRandomSession2();
|
|
412571
|
+
telemetrySessionSlot2.set(resolved);
|
|
412572
|
+
return resolved;
|
|
412573
|
+
}
|
|
412574
|
+
function getTelemetrySessionSource2() {
|
|
412575
|
+
return resolveTelemetrySession2().source;
|
|
412488
412576
|
}
|
|
412489
412577
|
function getTelemetryOperationId2() {
|
|
412490
412578
|
const existing = telemetryOperationIdSlot2.get();
|
|
@@ -412756,24 +412844,18 @@ class TelemetryService2 {
|
|
|
412756
412844
|
}
|
|
412757
412845
|
enrichPropertiesWithContext(properties, context) {
|
|
412758
412846
|
const globalProperties = getGlobalTelemetryProperties2();
|
|
412759
|
-
const existingSessionId = properties?.[TELEMETRY_SESSION_ID_PROPERTY2] ?? this.defaultProperties?.[TELEMETRY_SESSION_ID_PROPERTY2] ?? globalProperties?.[TELEMETRY_SESSION_ID_PROPERTY2];
|
|
412760
|
-
const sessionId = resolveTelemetrySessionId2(existingSessionId);
|
|
412761
412847
|
const enriched = {
|
|
412762
412848
|
...getExecutionContextTelemetryProperties2(),
|
|
412763
412849
|
...globalProperties,
|
|
412764
412850
|
...this.defaultProperties,
|
|
412765
412851
|
...redactProperties2(properties ?? {}),
|
|
412852
|
+
[TELEMETRY_SESSION_SOURCE_PROPERTY2]: getTelemetrySessionSource2(),
|
|
412766
412853
|
...context ? {
|
|
412767
412854
|
[TELEMETRY_OPERATION_ID_PROPERTY2]: context.operationId,
|
|
412768
412855
|
...context.parentId !== undefined ? { [TELEMETRY_PARENT_ID_PROPERTY2]: context.parentId } : {},
|
|
412769
412856
|
[TELEMETRY_SPAN_ID_PROPERTY2]: context.id
|
|
412770
412857
|
} : {}
|
|
412771
412858
|
};
|
|
412772
|
-
if (sessionId === undefined) {
|
|
412773
|
-
delete enriched[TELEMETRY_SESSION_ID_PROPERTY2];
|
|
412774
|
-
} else {
|
|
412775
|
-
enriched[TELEMETRY_SESSION_ID_PROPERTY2] = sessionId;
|
|
412776
|
-
}
|
|
412777
412859
|
return enriched;
|
|
412778
412860
|
}
|
|
412779
412861
|
generateId() {
|
|
@@ -413954,7 +414036,7 @@ function querystringSingleKey6(key, value, keyPrefix = "") {
|
|
|
413954
414036
|
var package_default5 = {
|
|
413955
414037
|
name: "@uipath/solution-sdk",
|
|
413956
414038
|
license: "MIT",
|
|
413957
|
-
version: "1.199.0-preview.
|
|
414039
|
+
version: "1.199.0-preview.110",
|
|
413958
414040
|
repository: {
|
|
413959
414041
|
type: "git",
|
|
413960
414042
|
url: "https://github.com/UiPath/cli.git",
|
|
@@ -443640,4 +443722,4 @@ export {
|
|
|
443640
443722
|
metadata
|
|
443641
443723
|
};
|
|
443642
443724
|
|
|
443643
|
-
//# debugId=
|
|
443725
|
+
//# debugId=161D57D8AAB163F064756E2164756E21
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uipath/case-tool",
|
|
3
3
|
"license": "MIT",
|
|
4
|
-
"version": "1.199.0-preview.
|
|
4
|
+
"version": "1.199.0-preview.110",
|
|
5
5
|
"description": "Manage Case Management instances, processes, and incidents.",
|
|
6
6
|
"private": false,
|
|
7
7
|
"repository": {
|
|
@@ -26,5 +26,5 @@
|
|
|
26
26
|
"files": [
|
|
27
27
|
"dist"
|
|
28
28
|
],
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "a714aed479181e56e2a867470c3050b7230ec41f"
|
|
30
30
|
}
|