@uipath/solution-tool 1.205.0-preview.281 → 1.206.0-preview.282
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/{archive-extract-x35t9ktj.js → archive-extract-136rn3ja.js} +13 -15
- package/dist/{cleanup-command-service-je9d70vv.js → cleanup-command-service-kadmvyk4.js} +34 -31
- package/dist/deploy-delete-service-xa25k94p.js +23 -0
- package/dist/deploy-run-service-rsedb9hr.js +23 -0
- package/dist/{deploy-status-service-919yn8wn.js → deploy-status-service-nmm8k9fa.js} +72 -62
- package/dist/deploy.js +35 -37
- package/dist/deployment-search-wtbye8v6.js +54 -0
- package/dist/{embedded-file-reader-z4becc02.js → embedded-file-reader-0228j82a.js} +1 -4
- package/dist/feed-resolver-28pfxmky.js +27 -0
- package/dist/feed-scope-failure-d4avsc7j.js +20 -0
- package/dist/feed-session-4skrr620.js +23 -0
- package/dist/first-party-service-n3vva2m4.js +8 -0
- package/dist/governance-options-bevmhh1z.js +19 -0
- package/dist/index-aspmac9f.js +24 -0
- package/dist/index-md8d2ttf.js +60 -0
- package/dist/{index-sby22td6.js → index-nzr4mx5p.js} +2 -22
- package/dist/index-qq4kre7a.js +93 -0
- package/dist/index-t262f2xv.js +16 -0
- package/dist/index.js +33 -34
- package/dist/init.js +18 -21
- package/dist/{jmespath-231m3hyn.js → jmespath-ab6tdc42.js} +1 -1
- package/dist/{js-yaml-88tdqrtd.js → js-yaml-a2bk27p6.js} +1 -3
- package/dist/{list-5fke71jn.js → list-pnggwekk.js} +23 -23
- package/dist/models/pack-command-types.d.ts +3 -1
- package/dist/node-z9c03k2q.js +25 -0
- package/dist/pack-command-service-2txx876d.js +29 -0
- package/dist/{pack-project-ha0pxw3h.js → pack-project-ngwtfgge.js} +33 -40
- package/dist/pack.js +26 -30
- package/dist/package-id-350pep6r.js +11 -0
- package/dist/{packager-tool-5qzgdb66.js → packager-tool-0k205evy.js} +13 -15
- package/dist/{packager-tool-wm0jaz7p.js → packager-tool-0vz19vhv.js} +305 -657
- package/dist/{packager-tool-gs3f3tf7.js → packager-tool-1ctvbx0h.js} +1 -1
- package/dist/{packager-tool-h1tq7bqf.js → packager-tool-41a5axkd.js} +65 -35
- package/dist/packager-tool-8097ps72.js +2307 -0
- package/dist/{packager-tool-1ybnxbp9.js → packager-tool-85f75be3.js} +18 -18
- package/dist/{packager-tool-tx834spe.js → packager-tool-9vrwpgt3.js} +757 -309
- package/dist/{packager-tool-pbmqk39a.js → packager-tool-a7s0gbxs.js} +33 -28
- package/dist/{packager-tool-47wzvqw0.js → packager-tool-aws5w512.js} +6 -6
- package/dist/packager-tool-c64hqa8n.js +106 -0
- package/dist/{packager-tool-5ddtwzva.js → packager-tool-ca5ngmqv.js} +12 -12
- package/dist/{packager-tool-d78ww4hb.js → packager-tool-cp66jc40.js} +51 -48
- package/dist/{packager-tool-6kz1pv9f.js → packager-tool-d1texmvn.js} +828 -338
- package/dist/{packager-tool-cvf46scg.js → packager-tool-daphtc6e.js} +122 -89
- package/dist/{packager-tool-1de529jm.js → packager-tool-epsr41wx.js} +12 -3
- package/dist/packager-tool-f84z7nds.js +130 -0
- package/dist/{packager-tool-45a8fkw0.js → packager-tool-fgk0fkm5.js} +37 -39
- package/dist/{packager-tool-8ptbmmmp.js → packager-tool-fp46ebde.js} +147 -76
- package/dist/{packager-tool-3bwnkjdq.js → packager-tool-fx4ws49n.js} +12 -12
- package/dist/{packager-tool-4pa108k7.js → packager-tool-g8ghm6wk.js} +11 -11
- package/dist/{packager-tool-2t72aez8.js → packager-tool-gpcr8zxf.js} +15 -15
- package/dist/packager-tool-gqb9ytg9.js +290 -0
- package/dist/packager-tool-hrkvdw31.js +280 -0
- package/dist/{packager-tool-056k8w2f.js → packager-tool-hs1kjv0c.js} +75 -9
- package/dist/{packager-tool-2vmz56qh.js → packager-tool-jatbb6c5.js} +184 -33
- package/dist/{packager-tool-f23a485e.js → packager-tool-jfp5mvqm.js} +176 -196
- package/dist/{packager-tool-6ybywxxn.js → packager-tool-m07vyk89.js} +371 -221
- package/dist/{packager-tool-61pwb567.js → packager-tool-ppj5f4y7.js} +6 -7
- package/dist/{packager-tool-t8gh825q.js → packager-tool-qf8753ee.js} +53 -41
- package/dist/{packager-tool-60af1hw2.js → packager-tool-qzcd5c9s.js} +3 -3
- package/dist/packager-tool-rb06drad.js +1178 -0
- package/dist/packager-tool-resolver-td3bhccd.js +20 -0
- package/dist/{packager-tool-dfrk01gn.js → packager-tool-rj2d1g0w.js} +154 -154
- package/dist/{packager-tool-43ahv5mn.js → packager-tool-t39pjz7n.js} +35 -18
- package/dist/{packager-tool-v1f5e8t9.js → packager-tool-vgrswa8p.js} +53 -8
- package/dist/{packager-tool-gyqfs04e.js → packager-tool-vq5fwggb.js} +273 -255
- package/dist/{packager-tool-gmwva4yv.js → packager-tool-vx2c68sb.js} +2 -2
- package/dist/{packager-tool-b2nhscfk.js → packager-tool-wm8nj6e9.js} +18 -18
- package/dist/{packager-tool-amhyxzz6.js → packager-tool-x33sdw6n.js} +16 -16
- package/dist/{packager-tool-97rcgwvv.js → packager-tool-x461tgwy.js} +331 -55
- package/dist/{packager-tool-dnrk1gg6.js → packager-tool-y6efv1f8.js} +356 -298
- package/dist/{packager-tool-wy4fx250.js → packager-tool-yetmzme9.js} +89 -30
- package/dist/packager-tool-z45eej6s.js +74 -0
- package/dist/packager-tool.js +6 -7
- package/dist/prepare-solution-resources-pwnyvtza.js +26 -0
- package/dist/{project-command-utils-t6pmpvq3.js → project-command-utils-zcmbecfy.js} +23 -26
- package/dist/project-contributions-kh9yftvg.js +27 -0
- package/dist/publish.js +17 -17
- package/dist/resource-mutations-mfn5k1hb.js +27 -0
- package/dist/{resource-version-lookup-0e3e2j58.js → resource-version-lookup-6ejh1hwd.js} +20 -23
- package/dist/resource.js +13 -16
- package/dist/{restore-command-service-pzpet021.js → restore-command-service-r7t52t25.js} +37 -34
- package/dist/{run-service-hk8w2h31.js → run-service-xrhg0z2a.js} +144 -66
- package/dist/services/deploy-activate-service.d.ts +2 -1
- package/dist/services/deployment-search-client.d.ts +2 -1
- package/dist/services/deployment-search.d.ts +39 -0
- package/dist/services/feed-resolver.d.ts +13 -1
- package/dist/services/feed-selection.d.ts +8 -5
- package/dist/services/feed-session.d.ts +34 -0
- package/dist/services/install-run.d.ts +92 -0
- package/dist/services/prepare-solution-resources.d.ts +11 -2
- package/dist/services/project-contributions.d.ts +2 -0
- package/dist/services/project-identity-telemetry.d.ts +3 -0
- package/dist/services/publish-service.d.ts +20 -3
- package/dist/services/solution-identity.d.ts +18 -0
- package/dist/ship-telemetry-bkf3800w.js +16 -0
- package/dist/solution-auth-jxcgd2m0.js +10 -0
- package/dist/solution-identity-92h2fbpa.js +19 -0
- package/dist/templates/AGENTS.md +27 -29
- package/dist/tool.js +32 -33
- package/package.json +2 -2
- package/dist/deploy-delete-service-0tm600d1.js +0 -25
- package/dist/deploy-run-service-hne5w17k.js +0 -25
- package/dist/deployment-search-32zvxn35.js +0 -55
- package/dist/feed-resolver-pdeb4wkq.js +0 -28
- package/dist/feed-scope-failure-4baame72.js +0 -19
- package/dist/feed-session-7xqphdrg.js +0 -17
- package/dist/first-party-service-sd8yaf73.js +0 -27
- package/dist/governance-options-bqgv5fte.js +0 -32
- package/dist/index-dqa169gp.js +0 -25
- package/dist/index-prm27bvm.js +0 -138
- package/dist/index-wdndcwab.js +0 -667
- package/dist/node-v7xhqwe2.js +0 -86
- package/dist/pack-command-service-b1v9c8cw.js +0 -35
- package/dist/package-id-rpzgy31w.js +0 -13
- package/dist/packager-tool-53w8skv5.js +0 -262
- package/dist/packager-tool-5edvzz80.js +0 -543
- package/dist/packager-tool-99jaqabz.js +0 -171
- package/dist/packager-tool-9hsmn8th.js +0 -418
- package/dist/packager-tool-azre7mm1.js +0 -182
- package/dist/packager-tool-fn13r8e1.js +0 -188
- package/dist/packager-tool-gdtpsdn7.js +0 -342
- package/dist/packager-tool-qw47eyw7.js +0 -43
- package/dist/packager-tool-resolver-994z3jkj.js +0 -23
- package/dist/packager-tool-tedbebpq.js +0 -5367
- package/dist/packager-tool-x1ah4eez.js +0 -68
- package/dist/prepare-solution-resources-m1djfj62.js +0 -29
- package/dist/project-contributions-79ndycrx.js +0 -32
- package/dist/resource-mutations-c3krjqze.js +0 -36
- package/dist/ship-telemetry-myes7ak5.js +0 -21
- package/dist/solution-auth-aead70sw.js +0 -11
- /package/dist/{packager-tool-act5r386.js → packager-tool-2pxe2r4j.js} +0 -0
- /package/dist/{packager-tool-kkfb5kgn.js → packager-tool-vrqbbh01.js} +0 -0
|
@@ -1,6 +1,217 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__require
|
|
3
|
-
} from "./packager-tool-
|
|
3
|
+
} from "./packager-tool-epsr41wx.js";
|
|
4
|
+
|
|
5
|
+
// ../common/src/telemetry/telemetry-dimensions.ts
|
|
6
|
+
var BaseDimensions = {
|
|
7
|
+
ApplicationName: "ApplicationName",
|
|
8
|
+
ProductVersion: "ProductVersion",
|
|
9
|
+
InstallationId: "InstallationId",
|
|
10
|
+
CloudUserId: "CloudUserId",
|
|
11
|
+
CloudTenantId: "CloudTenantId",
|
|
12
|
+
CloudOrganizationId: "CloudOrganizationId",
|
|
13
|
+
IsInternalUser: "IsInternalUser",
|
|
14
|
+
Environment: "Environment",
|
|
15
|
+
BaseUrl: "BaseUrl",
|
|
16
|
+
Region: "Region",
|
|
17
|
+
Agent: "Agent",
|
|
18
|
+
AgentVersion: "AgentVersion",
|
|
19
|
+
AgentModel: "AgentModel",
|
|
20
|
+
ToolName: "ToolName",
|
|
21
|
+
ToolVersion: "ToolVersion",
|
|
22
|
+
ExecutionContext: "ExecutionContext",
|
|
23
|
+
CiProvider: "CiProvider",
|
|
24
|
+
SessionIdSource: "SessionIdSource",
|
|
25
|
+
SessionId: "SessionId"
|
|
26
|
+
};
|
|
27
|
+
var CommandDimensions = {
|
|
28
|
+
IsCommand: "IsCommand",
|
|
29
|
+
IsReexec: "IsReexec",
|
|
30
|
+
CommandName: "CommandName",
|
|
31
|
+
ExitCode: "ExitCode",
|
|
32
|
+
TerminalOutcome: "TerminalOutcome",
|
|
33
|
+
ErrorClass: "ErrorClass",
|
|
34
|
+
TerminalSignal: "TerminalSignal",
|
|
35
|
+
ErrorMessage: "ErrorMessage",
|
|
36
|
+
SkillName: "SkillName",
|
|
37
|
+
ProductArea: "ProductArea",
|
|
38
|
+
Mode: "Mode"
|
|
39
|
+
};
|
|
40
|
+
var ProjectDimensions = {
|
|
41
|
+
ProjectKey: "ProjectKey",
|
|
42
|
+
ProjectType: "ProjectType",
|
|
43
|
+
ProjectIdentityStatus: "ProjectIdentityStatus",
|
|
44
|
+
SolutionKey: "SolutionKey",
|
|
45
|
+
SolutionProjectKey: "SolutionProjectKey",
|
|
46
|
+
SolutionIdentityStatus: "SolutionIdentityStatus",
|
|
47
|
+
PreviousSolutionKey: "PreviousSolutionKey"
|
|
48
|
+
};
|
|
49
|
+
var GUID_KEY_DIMENSIONS = new Set([
|
|
50
|
+
ProjectDimensions.ProjectKey,
|
|
51
|
+
ProjectDimensions.SolutionKey,
|
|
52
|
+
ProjectDimensions.SolutionProjectKey,
|
|
53
|
+
ProjectDimensions.PreviousSolutionKey
|
|
54
|
+
]);
|
|
55
|
+
var ShipDimensions = {
|
|
56
|
+
ShipKind: "ShipKind",
|
|
57
|
+
Target: "Target",
|
|
58
|
+
ProjectType: "ProjectType",
|
|
59
|
+
ProjectTypes: "ProjectTypes",
|
|
60
|
+
ArtifactCorrelationKey: "ArtifactCorrelationKey",
|
|
61
|
+
PackageName: "PackageName",
|
|
62
|
+
PackageVersion: "PackageVersion",
|
|
63
|
+
PackageVersionKey: "PackageVersionKey",
|
|
64
|
+
DeploymentKey: "DeploymentKey",
|
|
65
|
+
SolutionId: "SolutionId",
|
|
66
|
+
FolderKey: "FolderKey",
|
|
67
|
+
FeedId: "FeedId"
|
|
68
|
+
};
|
|
69
|
+
var ErrorDimensions = {
|
|
70
|
+
Result: "Result",
|
|
71
|
+
ErrorCode: "ErrorCode",
|
|
72
|
+
Retry: "Retry",
|
|
73
|
+
ErrorMessage: "ErrorMessage",
|
|
74
|
+
HttpStatus: "HttpStatus",
|
|
75
|
+
UpstreamErrorCode: "UpstreamErrorCode"
|
|
76
|
+
};
|
|
77
|
+
var AuthDimensions = {
|
|
78
|
+
AuthenticationMethod: "AuthenticationMethod",
|
|
79
|
+
Success: "Success",
|
|
80
|
+
Reason: "Reason"
|
|
81
|
+
};
|
|
82
|
+
var SkillsDimensions = {
|
|
83
|
+
SchemaVersion: "SchemaVersion",
|
|
84
|
+
AgentType: "AgentType",
|
|
85
|
+
SkillsVersion: "SkillsVersion",
|
|
86
|
+
UipSubcommand: "UipSubcommand",
|
|
87
|
+
FileExtension: "FileExtension",
|
|
88
|
+
SubagentModel: "SubagentModel",
|
|
89
|
+
SubagentType: "SubagentType",
|
|
90
|
+
PermissionMode: "PermissionMode",
|
|
91
|
+
EffortLevel: "EffortLevel",
|
|
92
|
+
SessionSource: "SessionSource",
|
|
93
|
+
Outcome: "Outcome",
|
|
94
|
+
DurationMs: "DurationMs",
|
|
95
|
+
Source: "Source"
|
|
96
|
+
};
|
|
97
|
+
var PackagerDimensions = {
|
|
98
|
+
ProjectId: "ProjectId",
|
|
99
|
+
ProjectType: "ProjectType",
|
|
100
|
+
SolutionId: "SolutionId"
|
|
101
|
+
};
|
|
102
|
+
var ScopeDimensions = {
|
|
103
|
+
FolderId: "FolderId"
|
|
104
|
+
};
|
|
105
|
+
var ID_DIMENSIONS = new Set([
|
|
106
|
+
BaseDimensions.CloudUserId,
|
|
107
|
+
BaseDimensions.CloudTenantId,
|
|
108
|
+
BaseDimensions.CloudOrganizationId,
|
|
109
|
+
BaseDimensions.InstallationId,
|
|
110
|
+
ShipDimensions.ArtifactCorrelationKey,
|
|
111
|
+
ShipDimensions.PackageVersionKey,
|
|
112
|
+
ShipDimensions.DeploymentKey,
|
|
113
|
+
ShipDimensions.SolutionId,
|
|
114
|
+
ShipDimensions.FolderKey,
|
|
115
|
+
ShipDimensions.FeedId,
|
|
116
|
+
PackagerDimensions.ProjectId
|
|
117
|
+
]);
|
|
118
|
+
var NON_IDENTIFIER_PLACEHOLDER_PATTERN = /^(?:\[[A-Z_]+\]|<[^>]+>)$/;
|
|
119
|
+
var RESERVED_DIMENSION_NAMES = new Set([
|
|
120
|
+
...Object.values(BaseDimensions),
|
|
121
|
+
...Object.values(CommandDimensions),
|
|
122
|
+
...Object.values(ShipDimensions),
|
|
123
|
+
...Object.values(ProjectDimensions),
|
|
124
|
+
...Object.values(ErrorDimensions),
|
|
125
|
+
...Object.values(AuthDimensions),
|
|
126
|
+
...Object.values(SkillsDimensions),
|
|
127
|
+
...Object.values(PackagerDimensions),
|
|
128
|
+
...Object.values(ScopeDimensions)
|
|
129
|
+
]);
|
|
130
|
+
var CURATED_DIMENSIONS = new Set([
|
|
131
|
+
BaseDimensions.ApplicationName,
|
|
132
|
+
BaseDimensions.ProductVersion,
|
|
133
|
+
BaseDimensions.InstallationId,
|
|
134
|
+
BaseDimensions.CloudUserId,
|
|
135
|
+
BaseDimensions.CloudTenantId,
|
|
136
|
+
BaseDimensions.CloudOrganizationId,
|
|
137
|
+
BaseDimensions.IsInternalUser,
|
|
138
|
+
BaseDimensions.Environment,
|
|
139
|
+
BaseDimensions.BaseUrl,
|
|
140
|
+
BaseDimensions.Region,
|
|
141
|
+
BaseDimensions.Agent,
|
|
142
|
+
BaseDimensions.AgentVersion,
|
|
143
|
+
BaseDimensions.ToolVersion,
|
|
144
|
+
BaseDimensions.ExecutionContext,
|
|
145
|
+
BaseDimensions.CiProvider,
|
|
146
|
+
BaseDimensions.SessionIdSource,
|
|
147
|
+
BaseDimensions.SessionId,
|
|
148
|
+
...Object.values(CommandDimensions),
|
|
149
|
+
...Object.values(ShipDimensions),
|
|
150
|
+
...Object.values(ProjectDimensions)
|
|
151
|
+
]);
|
|
152
|
+
function lowercaseIdDimensionValues(properties) {
|
|
153
|
+
let changed = false;
|
|
154
|
+
const result = {
|
|
155
|
+
...properties
|
|
156
|
+
};
|
|
157
|
+
for (const key of Object.keys(result)) {
|
|
158
|
+
const value = result[key];
|
|
159
|
+
if (!ID_DIMENSIONS.has(key) || typeof value !== "string" || NON_IDENTIFIER_PLACEHOLDER_PATTERN.test(value)) {
|
|
160
|
+
continue;
|
|
161
|
+
}
|
|
162
|
+
const lowered = value.toLowerCase();
|
|
163
|
+
if (lowered !== value) {
|
|
164
|
+
result[key] = lowered;
|
|
165
|
+
changed = true;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
return changed ? result : properties;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
// ../common/src/telemetry/project-identity.ts
|
|
172
|
+
function solutionIdentityProperties(identity) {
|
|
173
|
+
const key = identity.id ? projectKey(identity.id) : undefined;
|
|
174
|
+
return {
|
|
175
|
+
[ProjectDimensions.SolutionIdentityStatus]: identity.status === "resolved" && !key ? "invalid" : identity.status,
|
|
176
|
+
...identity.status === "resolved" && key ? {
|
|
177
|
+
[ProjectDimensions.SolutionKey]: key
|
|
178
|
+
} : {}
|
|
179
|
+
};
|
|
180
|
+
}
|
|
181
|
+
function projectKey(id) {
|
|
182
|
+
if (typeof id !== "string")
|
|
183
|
+
return;
|
|
184
|
+
const key = id.trim().toLowerCase().replaceAll("-", "");
|
|
185
|
+
return /^[0-9a-f]{32}$/.test(key) ? key : undefined;
|
|
186
|
+
}
|
|
187
|
+
function projectIdentityProperties(identity) {
|
|
188
|
+
const key = identity.id ? projectKey(identity.id) : undefined;
|
|
189
|
+
return {
|
|
190
|
+
[ProjectDimensions.ProjectIdentityStatus]: identity.status === "resolved" && !key ? "invalid" : identity.status,
|
|
191
|
+
[ProjectDimensions.ProjectType]: identity.projectType,
|
|
192
|
+
...identity.status === "resolved" && key ? {
|
|
193
|
+
[ProjectDimensions.ProjectKey]: key
|
|
194
|
+
} : {}
|
|
195
|
+
};
|
|
196
|
+
}
|
|
197
|
+
var PROJECT_IDENTITY_LOOKUP_BUDGET_MS = 1000;
|
|
198
|
+
async function withinProjectIdentityBudget(work, onTimeout) {
|
|
199
|
+
work.catch(() => {
|
|
200
|
+
return;
|
|
201
|
+
});
|
|
202
|
+
let timer;
|
|
203
|
+
const expired = new Promise((resolve) => {
|
|
204
|
+
timer = setTimeout(() => {
|
|
205
|
+
onTimeout?.();
|
|
206
|
+
resolve(undefined);
|
|
207
|
+
}, PROJECT_IDENTITY_LOOKUP_BUDGET_MS);
|
|
208
|
+
});
|
|
209
|
+
try {
|
|
210
|
+
return await Promise.race([work, expired]);
|
|
211
|
+
} finally {
|
|
212
|
+
clearTimeout(timer);
|
|
213
|
+
}
|
|
214
|
+
}
|
|
4
215
|
|
|
5
216
|
// ../common/src/telemetry/pseudonymize.ts
|
|
6
217
|
var PSEUDONYM_DOMAIN = "uipath-cli/telemetry/pseudonym/v1:";
|
|
@@ -465,6 +676,8 @@ function redactProperty(name, value) {
|
|
|
465
676
|
if (isSensitiveName(name)) {
|
|
466
677
|
return REDACTED;
|
|
467
678
|
}
|
|
679
|
+
if (GUID_KEY_DIMENSIONS.has(name))
|
|
680
|
+
return projectKey(value);
|
|
468
681
|
if (typeof value === "boolean" || typeof value === "number") {
|
|
469
682
|
return value;
|
|
470
683
|
}
|
|
@@ -539,6 +752,106 @@ function settlePromiseLike(thenable) {
|
|
|
539
752
|
return Promise.resolve(thenable).then((data) => [undefined, data]).catch((error) => [toError(error), undefined]);
|
|
540
753
|
}
|
|
541
754
|
|
|
755
|
+
// ../common/src/error-codes.ts
|
|
756
|
+
var CLI_ERROR_CODES = [
|
|
757
|
+
"invalid_argument",
|
|
758
|
+
"authentication_required",
|
|
759
|
+
"permission_denied",
|
|
760
|
+
"local_permission_denied",
|
|
761
|
+
"not_found",
|
|
762
|
+
"rate_limited",
|
|
763
|
+
"network_error",
|
|
764
|
+
"timeout",
|
|
765
|
+
"server_error",
|
|
766
|
+
"method_not_allowed",
|
|
767
|
+
"not_supported",
|
|
768
|
+
"configuration_error",
|
|
769
|
+
"execution_failed",
|
|
770
|
+
"unknown_error"
|
|
771
|
+
];
|
|
772
|
+
var RETRY_HINTS = [
|
|
773
|
+
"RetryWillNotFix",
|
|
774
|
+
"RetryLater",
|
|
775
|
+
"RetryAfter1Second",
|
|
776
|
+
"RetryAfter10Seconds",
|
|
777
|
+
"RetryAfter30Seconds",
|
|
778
|
+
"RetryAfter60Seconds"
|
|
779
|
+
];
|
|
780
|
+
var CLI_ERROR_CODE_VALUES = new Set(CLI_ERROR_CODES);
|
|
781
|
+
var RETRY_HINT_VALUES = new Set(RETRY_HINTS);
|
|
782
|
+
function isCliErrorCode(value) {
|
|
783
|
+
return typeof value === "string" && CLI_ERROR_CODE_VALUES.has(value);
|
|
784
|
+
}
|
|
785
|
+
function isRetryHint(value) {
|
|
786
|
+
return typeof value === "string" && RETRY_HINT_VALUES.has(value);
|
|
787
|
+
}
|
|
788
|
+
function carriedErrorCode(error) {
|
|
789
|
+
if (!error || typeof error !== "object")
|
|
790
|
+
return;
|
|
791
|
+
const code = error.errorCode;
|
|
792
|
+
return isCliErrorCode(code) ? code : undefined;
|
|
793
|
+
}
|
|
794
|
+
function carriedRetry(error) {
|
|
795
|
+
if (!error || typeof error !== "object")
|
|
796
|
+
return;
|
|
797
|
+
const retry = error.retry;
|
|
798
|
+
return isRetryHint(retry) ? retry : undefined;
|
|
799
|
+
}
|
|
800
|
+
function defaultRetryForErrorCode(errorCode) {
|
|
801
|
+
switch (errorCode) {
|
|
802
|
+
case "network_error":
|
|
803
|
+
case "rate_limited":
|
|
804
|
+
case "server_error":
|
|
805
|
+
case "timeout":
|
|
806
|
+
return "RetryLater";
|
|
807
|
+
default:
|
|
808
|
+
return "RetryWillNotFix";
|
|
809
|
+
}
|
|
810
|
+
}
|
|
811
|
+
|
|
812
|
+
// ../common/src/http-status.ts
|
|
813
|
+
function httpStatusOf2(error) {
|
|
814
|
+
if (!error || typeof error !== "object") {
|
|
815
|
+
return;
|
|
816
|
+
}
|
|
817
|
+
if ("response" in error && error.response && typeof error.response === "object" && "status" in error.response && typeof error.response.status === "number") {
|
|
818
|
+
return error.response.status;
|
|
819
|
+
}
|
|
820
|
+
return "status" in error && typeof error.status === "number" ? error.status : undefined;
|
|
821
|
+
}
|
|
822
|
+
function classifyHttpStatus(status) {
|
|
823
|
+
if (status === undefined)
|
|
824
|
+
return;
|
|
825
|
+
if (status === 400 || status === 409 || status === 413 || status === 422) {
|
|
826
|
+
return { errorCode: "invalid_argument", retry: "RetryWillNotFix" };
|
|
827
|
+
}
|
|
828
|
+
if (status === 401) {
|
|
829
|
+
return {
|
|
830
|
+
errorCode: "authentication_required",
|
|
831
|
+
retry: "RetryWillNotFix"
|
|
832
|
+
};
|
|
833
|
+
}
|
|
834
|
+
if (status === 403) {
|
|
835
|
+
return { errorCode: "permission_denied", retry: "RetryWillNotFix" };
|
|
836
|
+
}
|
|
837
|
+
if (status === 404) {
|
|
838
|
+
return { errorCode: "not_found", retry: "RetryWillNotFix" };
|
|
839
|
+
}
|
|
840
|
+
if (status === 405) {
|
|
841
|
+
return { errorCode: "method_not_allowed", retry: "RetryWillNotFix" };
|
|
842
|
+
}
|
|
843
|
+
if (status === 408) {
|
|
844
|
+
return { errorCode: "timeout", retry: "RetryLater" };
|
|
845
|
+
}
|
|
846
|
+
if (status === 429) {
|
|
847
|
+
return { errorCode: "rate_limited", retry: "RetryLater" };
|
|
848
|
+
}
|
|
849
|
+
if (status >= 500 && status < 600) {
|
|
850
|
+
return { errorCode: "server_error", retry: "RetryLater" };
|
|
851
|
+
}
|
|
852
|
+
return;
|
|
853
|
+
}
|
|
854
|
+
|
|
542
855
|
// ../common/src/error-graph.ts
|
|
543
856
|
function* walkErrorGraph(error) {
|
|
544
857
|
const queue = [error];
|
|
@@ -595,6 +908,8 @@ var DEFAULT_401 = "Unauthorized (401). The session is missing or expired, or its
|
|
|
595
908
|
var DEFAULT_403 = "Forbidden (403). The account lacks permission for this operation, or the token carries no scope for this API. Run `uip login status --detailed` to see the token's scopes.";
|
|
596
909
|
var DEFAULT_405 = "Method Not Allowed (405). The endpoint may not exist or the base URL may be incorrect.";
|
|
597
910
|
var DEFAULT_413 = "Payload too large (413). The upload exceeded the server or CDN size limit. Reduce the package size — for example, exclude unused dependencies or remove large files from the project — and try again.";
|
|
911
|
+
var CLOUDFLARE_BLOCK_403 = "Forbidden (403) by Cloudflare, in front of the service: the answer is a Cloudflare HTML page, not the service's JSON, so the service did not see the request and did not check the account's roles or the token's scopes. Cloudflare blocks a request when its content matches a firewall rule (text that looks like SQL or script code, for example) or when it comes from a network the firewall does not allow.";
|
|
912
|
+
var CLOUDFLARE_BLOCK_403_INSTRUCTIONS = "If the request carries text that looks like code, change that text and try again. Otherwise send the time of the request and the Cloudflare Ray ID, when the message gives one, to the owner of the service or UiPath support.";
|
|
598
913
|
var HTML_RESPONSE_MESSAGE = "Received HTML instead of the expected JSON response.";
|
|
599
914
|
var NETWORK_ERROR_CODES = new Set([
|
|
600
915
|
"ECONNREFUSED",
|
|
@@ -686,6 +1001,20 @@ function localPermissionPath(path, message) {
|
|
|
686
1001
|
return path;
|
|
687
1002
|
return message ? /'([^']+)'/.exec(message)?.[1] : undefined;
|
|
688
1003
|
}
|
|
1004
|
+
function readHeader(response, name) {
|
|
1005
|
+
const headers = response?.headers;
|
|
1006
|
+
if (!headers || typeof headers !== "object")
|
|
1007
|
+
return;
|
|
1008
|
+
if (typeof headers.get === "function") {
|
|
1009
|
+
const value = headers.get(name);
|
|
1010
|
+
if (value)
|
|
1011
|
+
return value;
|
|
1012
|
+
}
|
|
1013
|
+
const plain = headers;
|
|
1014
|
+
const key = Object.keys(plain).find((k) => k.toLowerCase() === name.toLowerCase());
|
|
1015
|
+
const value = key === undefined ? undefined : plain[key];
|
|
1016
|
+
return typeof value === "string" && value !== "" ? value : undefined;
|
|
1017
|
+
}
|
|
689
1018
|
function isHtmlDocument(body) {
|
|
690
1019
|
return /^\s*(<!doctype html|<html\b)/i.test(body);
|
|
691
1020
|
}
|
|
@@ -702,36 +1031,9 @@ function retryHintForRetryAfter(seconds) {
|
|
|
702
1031
|
return "RetryAfter60Seconds";
|
|
703
1032
|
}
|
|
704
1033
|
function classifyError(status, error) {
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
if (status === 401) {
|
|
709
|
-
return {
|
|
710
|
-
errorCode: "authentication_required",
|
|
711
|
-
retry: "RetryWillNotFix"
|
|
712
|
-
};
|
|
713
|
-
}
|
|
714
|
-
if (status === 403) {
|
|
715
|
-
return { errorCode: "permission_denied", retry: "RetryWillNotFix" };
|
|
716
|
-
}
|
|
717
|
-
if (status === 404) {
|
|
718
|
-
return { errorCode: "not_found", retry: "RetryWillNotFix" };
|
|
719
|
-
}
|
|
720
|
-
if (status === 405) {
|
|
721
|
-
return { errorCode: "method_not_allowed", retry: "RetryWillNotFix" };
|
|
722
|
-
}
|
|
723
|
-
if (status === 413) {
|
|
724
|
-
return { errorCode: "invalid_argument", retry: "RetryWillNotFix" };
|
|
725
|
-
}
|
|
726
|
-
if (status === 408) {
|
|
727
|
-
return { errorCode: "timeout", retry: "RetryLater" };
|
|
728
|
-
}
|
|
729
|
-
if (status === 429) {
|
|
730
|
-
return { errorCode: "rate_limited", retry: "RetryLater" };
|
|
731
|
-
}
|
|
732
|
-
if (status !== undefined && status >= 500 && status < 600) {
|
|
733
|
-
return { errorCode: "server_error", retry: "RetryLater" };
|
|
734
|
-
}
|
|
1034
|
+
const byStatus = classifyHttpStatus(status);
|
|
1035
|
+
if (byStatus)
|
|
1036
|
+
return byStatus;
|
|
735
1037
|
if (status === undefined && describePermissionError(error)) {
|
|
736
1038
|
return {
|
|
737
1039
|
errorCode: "local_permission_denied",
|
|
@@ -747,6 +1049,20 @@ function classifyError(status, error) {
|
|
|
747
1049
|
}
|
|
748
1050
|
return { errorCode: "unknown_error", retry: "RetryWillNotFix" };
|
|
749
1051
|
}
|
|
1052
|
+
function withCarriedClass(inferred, error) {
|
|
1053
|
+
const errorCode = carriedErrorCode(error);
|
|
1054
|
+
const retry = carriedRetry(error);
|
|
1055
|
+
if (errorCode === undefined || errorCode === inferred.errorCode) {
|
|
1056
|
+
return {
|
|
1057
|
+
errorCode: inferred.errorCode,
|
|
1058
|
+
retry: retry ?? inferred.retry
|
|
1059
|
+
};
|
|
1060
|
+
}
|
|
1061
|
+
return { errorCode, retry: retry ?? defaultRetryForErrorCode(errorCode) };
|
|
1062
|
+
}
|
|
1063
|
+
function classifyThrownError(error) {
|
|
1064
|
+
return withCarriedClass(classifyError(findHttpStatusInGraph(error), error), error);
|
|
1065
|
+
}
|
|
750
1066
|
function formatHttpStatusMessage(status, rawMessage, extractedMessage, inferredStatus) {
|
|
751
1067
|
if (extractedMessage) {
|
|
752
1068
|
return `HTTP ${status}: ${extractedMessage}`;
|
|
@@ -802,9 +1118,14 @@ async function extractErrorDetails(error, options) {
|
|
|
802
1118
|
const classificationStatus = status ?? findHttpStatusInGraph(error);
|
|
803
1119
|
const classification = classifyError(classificationStatus, error);
|
|
804
1120
|
let retry = classification.retry;
|
|
1121
|
+
const htmlForbidden = status === 403 && rawBody !== undefined && isHtmlDocument(rawBody);
|
|
1122
|
+
const rayId = htmlForbidden ? readHeader(response, "cf-ray") : undefined;
|
|
1123
|
+
const cloudflareBlock = htmlForbidden && (rayId !== undefined || /\bcloudflare\b/i.test(readHeader(response, "server") ?? ""));
|
|
805
1124
|
if (status === 401) {
|
|
806
1125
|
message = DEFAULT_401;
|
|
807
1126
|
result = "AuthenticationError";
|
|
1127
|
+
} else if (cloudflareBlock) {
|
|
1128
|
+
message = rayId ? `${CLOUDFLARE_BLOCK_403} Cloudflare Ray ID: ${rayId}.` : CLOUDFLARE_BLOCK_403;
|
|
808
1129
|
} else if (status === 403) {
|
|
809
1130
|
message = options?.forbiddenMessage ?? DEFAULT_403;
|
|
810
1131
|
result = "AuthenticationError";
|
|
@@ -852,7 +1173,9 @@ async function extractErrorDetails(error, options) {
|
|
|
852
1173
|
}
|
|
853
1174
|
}
|
|
854
1175
|
let details = rawMessage;
|
|
855
|
-
if (
|
|
1176
|
+
if (htmlForbidden) {
|
|
1177
|
+
details = cloudflareBlock ? CLOUDFLARE_BLOCK_403_INSTRUCTIONS : HTML_RESPONSE_MESSAGE;
|
|
1178
|
+
} else if (rawBody) {
|
|
856
1179
|
if (parsedBody) {
|
|
857
1180
|
const extra = {};
|
|
858
1181
|
if (parsedBody.errorCode)
|
|
@@ -886,6 +1209,8 @@ async function extractErrorDetails(error, options) {
|
|
|
886
1209
|
}
|
|
887
1210
|
if (parsedBody?.requestId && typeof parsedBody.requestId === "string") {
|
|
888
1211
|
context.requestId = parsedBody.requestId;
|
|
1212
|
+
} else if (cloudflareBlock && rayId) {
|
|
1213
|
+
context.requestId = rayId;
|
|
889
1214
|
}
|
|
890
1215
|
if (parsedBody?.traceId && typeof parsedBody.traceId === "string") {
|
|
891
1216
|
context.traceId = parsedBody.traceId;
|
|
@@ -894,16 +1219,7 @@ async function extractErrorDetails(error, options) {
|
|
|
894
1219
|
context.path = permission.path;
|
|
895
1220
|
}
|
|
896
1221
|
if (status === 429) {
|
|
897
|
-
const
|
|
898
|
-
const headersObj = resp?.headers;
|
|
899
|
-
let retryAfterValue;
|
|
900
|
-
if (headersObj && typeof headersObj === "object" && typeof headersObj.get === "function") {
|
|
901
|
-
retryAfterValue = headersObj.get("retry-after") ?? undefined;
|
|
902
|
-
}
|
|
903
|
-
if (!retryAfterValue && headersObj && typeof headersObj === "object") {
|
|
904
|
-
const headers = headersObj;
|
|
905
|
-
retryAfterValue = headers["retry-after"] ?? headers["Retry-After"];
|
|
906
|
-
}
|
|
1222
|
+
const retryAfterValue = readHeader(response, "retry-after");
|
|
907
1223
|
if (retryAfterValue) {
|
|
908
1224
|
const seconds = Number(retryAfterValue);
|
|
909
1225
|
if (!Number.isNaN(seconds)) {
|
|
@@ -937,9 +1253,8 @@ async function extractErrorDetails(error, options) {
|
|
|
937
1253
|
}
|
|
938
1254
|
return {
|
|
939
1255
|
result,
|
|
940
|
-
errorCode: classification.errorCode,
|
|
1256
|
+
...withCarriedClass({ errorCode: classification.errorCode, retry }, error),
|
|
941
1257
|
message,
|
|
942
|
-
retry,
|
|
943
1258
|
details,
|
|
944
1259
|
...hasContext ? { context } : {},
|
|
945
1260
|
...parsedErrors ? { parsedErrors } : {}
|
|
@@ -950,153 +1265,13 @@ async function extractErrorMessage(error, options) {
|
|
|
950
1265
|
return message;
|
|
951
1266
|
}
|
|
952
1267
|
|
|
953
|
-
// ../common/src/telemetry/telemetry-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
CloudOrganizationId: "CloudOrganizationId",
|
|
961
|
-
IsInternalUser: "IsInternalUser",
|
|
962
|
-
Environment: "Environment",
|
|
963
|
-
BaseUrl: "BaseUrl",
|
|
964
|
-
Region: "Region",
|
|
965
|
-
Agent: "Agent",
|
|
966
|
-
AgentVersion: "AgentVersion",
|
|
967
|
-
AgentModel: "AgentModel",
|
|
968
|
-
ToolName: "ToolName",
|
|
969
|
-
ToolVersion: "ToolVersion",
|
|
970
|
-
ExecutionContext: "ExecutionContext",
|
|
971
|
-
CiProvider: "CiProvider",
|
|
972
|
-
SessionIdSource: "SessionIdSource",
|
|
973
|
-
SessionId: "SessionId"
|
|
974
|
-
};
|
|
975
|
-
var CommandDimensions = {
|
|
976
|
-
IsCommand: "IsCommand",
|
|
977
|
-
IsReexec: "IsReexec",
|
|
978
|
-
CommandName: "CommandName",
|
|
979
|
-
ExitCode: "ExitCode",
|
|
980
|
-
TerminalOutcome: "TerminalOutcome",
|
|
981
|
-
ErrorClass: "ErrorClass",
|
|
982
|
-
TerminalSignal: "TerminalSignal",
|
|
983
|
-
ErrorMessage: "ErrorMessage",
|
|
984
|
-
SkillName: "SkillName",
|
|
985
|
-
ProductArea: "ProductArea",
|
|
986
|
-
Mode: "Mode"
|
|
987
|
-
};
|
|
988
|
-
var ShipDimensions = {
|
|
989
|
-
ShipKind: "ShipKind",
|
|
990
|
-
Target: "Target",
|
|
991
|
-
ProjectType: "ProjectType",
|
|
992
|
-
ProjectTypes: "ProjectTypes",
|
|
993
|
-
ArtifactCorrelationKey: "ArtifactCorrelationKey",
|
|
994
|
-
PackageName: "PackageName",
|
|
995
|
-
PackageVersion: "PackageVersion",
|
|
996
|
-
PackageVersionKey: "PackageVersionKey",
|
|
997
|
-
DeploymentKey: "DeploymentKey",
|
|
998
|
-
SolutionId: "SolutionId",
|
|
999
|
-
FolderKey: "FolderKey",
|
|
1000
|
-
FeedId: "FeedId"
|
|
1001
|
-
};
|
|
1002
|
-
var ErrorDimensions = {
|
|
1003
|
-
Result: "Result",
|
|
1004
|
-
ErrorCode: "ErrorCode",
|
|
1005
|
-
Retry: "Retry",
|
|
1006
|
-
ErrorMessage: "ErrorMessage",
|
|
1007
|
-
HttpStatus: "HttpStatus",
|
|
1008
|
-
UpstreamErrorCode: "UpstreamErrorCode"
|
|
1009
|
-
};
|
|
1010
|
-
var AuthDimensions = {
|
|
1011
|
-
AuthenticationMethod: "AuthenticationMethod",
|
|
1012
|
-
Success: "Success",
|
|
1013
|
-
Reason: "Reason"
|
|
1014
|
-
};
|
|
1015
|
-
var SkillsDimensions = {
|
|
1016
|
-
SchemaVersion: "SchemaVersion",
|
|
1017
|
-
AgentType: "AgentType",
|
|
1018
|
-
SkillsVersion: "SkillsVersion",
|
|
1019
|
-
UipSubcommand: "UipSubcommand",
|
|
1020
|
-
FileExtension: "FileExtension",
|
|
1021
|
-
SubagentModel: "SubagentModel",
|
|
1022
|
-
SubagentType: "SubagentType",
|
|
1023
|
-
PermissionMode: "PermissionMode",
|
|
1024
|
-
EffortLevel: "EffortLevel",
|
|
1025
|
-
SessionSource: "SessionSource",
|
|
1026
|
-
Outcome: "Outcome",
|
|
1027
|
-
DurationMs: "DurationMs",
|
|
1028
|
-
Source: "Source"
|
|
1029
|
-
};
|
|
1030
|
-
var PackagerDimensions = {
|
|
1031
|
-
ProjectId: "ProjectId",
|
|
1032
|
-
ProjectType: "ProjectType",
|
|
1033
|
-
SolutionId: "SolutionId"
|
|
1034
|
-
};
|
|
1035
|
-
var ScopeDimensions = {
|
|
1036
|
-
FolderId: "FolderId"
|
|
1037
|
-
};
|
|
1038
|
-
var ID_DIMENSIONS = new Set([
|
|
1039
|
-
BaseDimensions.CloudUserId,
|
|
1040
|
-
BaseDimensions.CloudTenantId,
|
|
1041
|
-
BaseDimensions.CloudOrganizationId,
|
|
1042
|
-
BaseDimensions.InstallationId,
|
|
1043
|
-
ShipDimensions.ArtifactCorrelationKey,
|
|
1044
|
-
ShipDimensions.PackageVersionKey,
|
|
1045
|
-
ShipDimensions.DeploymentKey,
|
|
1046
|
-
ShipDimensions.SolutionId,
|
|
1047
|
-
ShipDimensions.FolderKey,
|
|
1048
|
-
ShipDimensions.FeedId,
|
|
1049
|
-
PackagerDimensions.ProjectId
|
|
1050
|
-
]);
|
|
1051
|
-
var NON_IDENTIFIER_PLACEHOLDER_PATTERN = /^(?:\[[A-Z_]+\]|<[^>]+>)$/;
|
|
1052
|
-
var RESERVED_DIMENSION_NAMES = new Set([
|
|
1053
|
-
...Object.values(BaseDimensions),
|
|
1054
|
-
...Object.values(CommandDimensions),
|
|
1055
|
-
...Object.values(ShipDimensions),
|
|
1056
|
-
...Object.values(ErrorDimensions),
|
|
1057
|
-
...Object.values(AuthDimensions),
|
|
1058
|
-
...Object.values(SkillsDimensions),
|
|
1059
|
-
...Object.values(PackagerDimensions),
|
|
1060
|
-
...Object.values(ScopeDimensions)
|
|
1061
|
-
]);
|
|
1062
|
-
var CURATED_DIMENSIONS = new Set([
|
|
1063
|
-
BaseDimensions.ApplicationName,
|
|
1064
|
-
BaseDimensions.ProductVersion,
|
|
1065
|
-
BaseDimensions.InstallationId,
|
|
1066
|
-
BaseDimensions.CloudUserId,
|
|
1067
|
-
BaseDimensions.CloudTenantId,
|
|
1068
|
-
BaseDimensions.CloudOrganizationId,
|
|
1069
|
-
BaseDimensions.IsInternalUser,
|
|
1070
|
-
BaseDimensions.Environment,
|
|
1071
|
-
BaseDimensions.BaseUrl,
|
|
1072
|
-
BaseDimensions.Region,
|
|
1073
|
-
BaseDimensions.Agent,
|
|
1074
|
-
BaseDimensions.AgentVersion,
|
|
1075
|
-
BaseDimensions.ToolVersion,
|
|
1076
|
-
BaseDimensions.ExecutionContext,
|
|
1077
|
-
BaseDimensions.CiProvider,
|
|
1078
|
-
BaseDimensions.SessionIdSource,
|
|
1079
|
-
BaseDimensions.SessionId,
|
|
1080
|
-
...Object.values(CommandDimensions),
|
|
1081
|
-
...Object.values(ShipDimensions)
|
|
1082
|
-
]);
|
|
1083
|
-
function lowercaseIdDimensionValues(properties) {
|
|
1084
|
-
let changed = false;
|
|
1085
|
-
const result = {
|
|
1086
|
-
...properties
|
|
1087
|
-
};
|
|
1088
|
-
for (const key of Object.keys(result)) {
|
|
1089
|
-
const value = result[key];
|
|
1090
|
-
if (!ID_DIMENSIONS.has(key) || typeof value !== "string" || NON_IDENTIFIER_PLACEHOLDER_PATTERN.test(value)) {
|
|
1091
|
-
continue;
|
|
1092
|
-
}
|
|
1093
|
-
const lowered = value.toLowerCase();
|
|
1094
|
-
if (lowered !== value) {
|
|
1095
|
-
result[key] = lowered;
|
|
1096
|
-
changed = true;
|
|
1097
|
-
}
|
|
1098
|
-
}
|
|
1099
|
-
return changed ? result : properties;
|
|
1268
|
+
// ../common/src/telemetry/telemetry-config.ts
|
|
1269
|
+
function isTelemetryDisabled() {
|
|
1270
|
+
const value = process.env.UIPATH_TELEMETRY_DISABLED;
|
|
1271
|
+
return value === "1" || value === "true";
|
|
1272
|
+
}
|
|
1273
|
+
function isProjectTelemetryDisabled() {
|
|
1274
|
+
return isTelemetryDisabled() || process.env.UIPATH_PROJECT_TELEMETRY_DISABLED === "1" || process.env.UIPATH_PROJECT_TELEMETRY_DISABLED === "true";
|
|
1100
1275
|
}
|
|
1101
1276
|
|
|
1102
1277
|
// ../common/src/telemetry/detect-agent.ts
|
|
@@ -1524,34 +1699,6 @@ class TelemetryService {
|
|
|
1524
1699
|
}
|
|
1525
1700
|
}
|
|
1526
1701
|
|
|
1527
|
-
// ../common/src/telemetry/console-telemetry-provider.ts
|
|
1528
|
-
class ConsoleTelemetryProvider {
|
|
1529
|
-
async trackEvent({ name }) {
|
|
1530
|
-
console.debug(`[Telemetry] Event: ${name}`);
|
|
1531
|
-
}
|
|
1532
|
-
async trackException({ error }) {
|
|
1533
|
-
console.error(`[Telemetry] Exception: ${error.message}`);
|
|
1534
|
-
}
|
|
1535
|
-
async trackRequest({
|
|
1536
|
-
name,
|
|
1537
|
-
durationMs,
|
|
1538
|
-
success
|
|
1539
|
-
}) {
|
|
1540
|
-
console.debug(`[Telemetry] Request: ${name} (${durationMs}ms, ${success ? "ok" : "fail"})`);
|
|
1541
|
-
}
|
|
1542
|
-
async trackDependency({
|
|
1543
|
-
name,
|
|
1544
|
-
type,
|
|
1545
|
-
durationMs,
|
|
1546
|
-
success
|
|
1547
|
-
}) {
|
|
1548
|
-
console.debug(`[Telemetry] Dependency: ${name} [${type}] (${durationMs}ms, ${success ? "ok" : "fail"})`);
|
|
1549
|
-
}
|
|
1550
|
-
}
|
|
1551
|
-
|
|
1552
|
-
// ../common/src/telemetry/environment-info.ts
|
|
1553
|
-
var LOCAL_HOSTS = new Set(["localhost", "127.0.0.1", "::1", "[::1]"]);
|
|
1554
|
-
|
|
1555
1702
|
// ../common/src/telemetry/command-attribution.ts
|
|
1556
1703
|
var LEGACY_SKILL_NAMESPACE = "uipath:";
|
|
1557
1704
|
var MAX_SKILL_NAME_LENGTH = 80;
|
|
@@ -1804,6 +1951,9 @@ function installSdkUserAgentHeader(BaseApiClass, userAgent) {
|
|
|
1804
1951
|
installRequestHeaderForwarding(BaseApiClass, userAgentPatchKey(userAgent), (headers) => addSdkUserAgentHeader(headers, userAgent));
|
|
1805
1952
|
}
|
|
1806
1953
|
|
|
1807
|
-
|
|
1954
|
+
// ../common/src/telemetry/environment-info.ts
|
|
1955
|
+
var LOCAL_HOSTS = new Set(["localhost", "127.0.0.1", "::1", "[::1]"]);
|
|
1956
|
+
|
|
1957
|
+
export { CommandDimensions, ProjectDimensions, GUID_KEY_DIMENSIONS, ShipDimensions, ErrorDimensions, PackagerDimensions, solutionIdentityProperties, projectKey, projectIdentityProperties, PROJECT_IDENTITY_LOOKUP_BUDGET_MS, withinProjectIdentityBudget, pseudonymize, singleton, recordSuppliedArgumentValues, releaseSuppliedArgumentValues, redactProperties, catchError, isCliErrorCode, isRetryHint, carriedErrorCode, carriedRetry, defaultRetryForErrorCode, walkErrorGraph, parseHttpStatusFromMessage, findHttpStatusInGraph, httpStatusOf2, classifyHttpStatus, LOCAL_PERMISSION_ERROR_CODES, carriedInstructions, describeConnectivityError, describePermissionError, classifyThrownError, extractErrorDetails, extractErrorMessage, TelemetryService, isProjectTelemetryDisabled, buildCommandTelemetryAttribution, buildAgentSessionTelemetry, getSdkUserAgentToken, addSdkUserAgentHeader, installSdkUserAgentHeader };
|
|
1808
1958
|
|
|
1809
|
-
//# debugId=
|
|
1959
|
+
//# debugId=5BB352B11907134064756E2164756E21
|