@uipath/agent-tool 1.202.0-preview.159 → 1.203.0-preview.160
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/THIRD-PARTY-NOTICES.md +35 -22
- package/dist/{index-jkdwsj5d.js → embedded-file-reader-0sjt4nkj.js} +96 -17497
- package/dist/executor-tool.js +2 -2
- package/dist/first-party-service-srxaftkn.js +27 -0
- package/dist/index-kmp9fmhb.js +25 -0
- package/dist/index-s1mvhfbj.js +17598 -0
- package/dist/index.js +3 -3
- package/dist/packager-tool-53w8skv5.js +262 -0
- package/dist/packager-tool-abj3ftf8.js +1751 -0
- package/dist/{packager-tool-bstv6gk4.js → packager-tool-g5g8vyx2.js} +268 -18
- package/dist/packager-tool-gdtpsdn7.js +342 -0
- package/dist/{packager-tool-r46ma7qq.js → packager-tool-tnz82jk0.js} +301 -35
- package/dist/tool.js +3 -3
- package/package.json +3 -2
- package/dist/packager-tool-1p2be2cq.js +0 -4241
|
@@ -3111,16 +3111,7 @@ var resolveEnvFilePathAsync = async (envFilePath = DEFAULT_ENV_FILENAME, opts) =
|
|
|
3111
3111
|
errorMessage: location.source === "absolute" ? `Environment file not found: ${envFilePath}` : `Unable to locate environment file: ${envFilePath}. Run 'uip login' to authenticate.`
|
|
3112
3112
|
};
|
|
3113
3113
|
};
|
|
3114
|
-
var
|
|
3115
|
-
const fs2 = getFileSystem();
|
|
3116
|
-
const absolutePath = fs2.path.isAbsolute(envPath) ? envPath : fs2.path.join(fs2.env.cwd(), envPath);
|
|
3117
|
-
if (!await fs2.exists(absolutePath)) {
|
|
3118
|
-
throw new Error(`Environment file not found: ${envPath}`);
|
|
3119
|
-
}
|
|
3120
|
-
const content = await fs2.readFile(absolutePath, "utf-8");
|
|
3121
|
-
if (content === null) {
|
|
3122
|
-
throw new Error(`Environment file not found: ${envPath}`);
|
|
3123
|
-
}
|
|
3114
|
+
var parseEnvContent = (content) => {
|
|
3124
3115
|
const env = {};
|
|
3125
3116
|
for (const line of content.split(`
|
|
3126
3117
|
`)) {
|
|
@@ -3141,6 +3132,18 @@ var loadEnvFileAsync = async ({ envPath }) => {
|
|
|
3141
3132
|
}
|
|
3142
3133
|
return env;
|
|
3143
3134
|
};
|
|
3135
|
+
var loadEnvFileAsync = async ({ envPath }) => {
|
|
3136
|
+
const fs2 = getFileSystem();
|
|
3137
|
+
const absolutePath = fs2.path.isAbsolute(envPath) ? envPath : fs2.path.join(fs2.env.cwd(), envPath);
|
|
3138
|
+
if (!await fs2.exists(absolutePath)) {
|
|
3139
|
+
throw new Error(`Environment file not found: ${envPath}`);
|
|
3140
|
+
}
|
|
3141
|
+
const content = await fs2.readFile(absolutePath, "utf-8");
|
|
3142
|
+
if (content === null) {
|
|
3143
|
+
throw new Error(`Environment file not found: ${envPath}`);
|
|
3144
|
+
}
|
|
3145
|
+
return parseEnvContent(content);
|
|
3146
|
+
};
|
|
3144
3147
|
var saveEnvFileAsync = async ({
|
|
3145
3148
|
envPath,
|
|
3146
3149
|
data,
|
|
@@ -3973,7 +3976,7 @@ var UUID_PATTERN = /\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{1
|
|
|
3973
3976
|
var EMAIL_PATTERN = /\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}\b/g;
|
|
3974
3977
|
var JWT_PATTERN = /\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+/g;
|
|
3975
3978
|
var LONG_TOKEN_PATTERN = /\b[A-Za-z0-9_-]{40,}\b/g;
|
|
3976
|
-
var PADDED_BASE64_PATTERN = /[A-Za-z0-9+/]{16,}={1,2}(?![A-Za-z0-9+/=])/g;
|
|
3979
|
+
var PADDED_BASE64_PATTERN = /(?<![A-Za-z0-9+/])[A-Za-z0-9+/]{16,}={1,2}(?![A-Za-z0-9+/=])/g;
|
|
3977
3980
|
var BASE64_WITH_PLUS_PATTERN = /[A-Za-z0-9+/]{40,}/g;
|
|
3978
3981
|
var USER_HOME_PATTERN = /(?<![A-Za-z0-9._-])([/\\])(Users|home|Profiles)([/\\])([^/\\]+)/gi;
|
|
3979
3982
|
var UNC_PATH_PATTERN = /(^|[\s"'<>|=,;([{])(\\\\[^\s"'<>|]+)/g;
|
|
@@ -4020,7 +4023,7 @@ var QUOTED_LITERAL_PATTERN = new RegExp([
|
|
|
4020
4023
|
`(?<![A-Za-z0-9])"(?:[^\\
|
|
4021
4024
|
]|\\.){2,${QUOTED_LITERAL_MAX_SPAN}}?"(?![A-Za-z0-9])`
|
|
4022
4025
|
].join("|"), "g");
|
|
4023
|
-
var JSON_BODY_PATTERN = /[{[][^{}[\]]*[:,][^{}[\]]*[\]}]/g;
|
|
4026
|
+
var JSON_BODY_PATTERN = /[{[][^{}[\]:,]*[:,][^{}[\]]*[\]}]/g;
|
|
4024
4027
|
var COLLAPSED_BODY = "{…}";
|
|
4025
4028
|
var COLLAPSED_BODY_MARKER = "\x01body\x01";
|
|
4026
4029
|
var MAX_BODY_NESTING = 8;
|
|
@@ -4035,10 +4038,13 @@ function collapseJsonBodies(text) {
|
|
|
4035
4038
|
}
|
|
4036
4039
|
return out.split(COLLAPSED_BODY_MARKER).join(COLLAPSED_BODY);
|
|
4037
4040
|
}
|
|
4038
|
-
var TRAILING_PROSE_PUNCT =
|
|
4041
|
+
var TRAILING_PROSE_PUNCT = `.,;:!?)]}>'"`;
|
|
4039
4042
|
function peelTrailingPunctuation(match) {
|
|
4040
|
-
|
|
4041
|
-
|
|
4043
|
+
let end = match.length;
|
|
4044
|
+
while (end > 0 && TRAILING_PROSE_PUNCT.includes(match[end - 1])) {
|
|
4045
|
+
end -= 1;
|
|
4046
|
+
}
|
|
4047
|
+
return [match.slice(0, end), match.slice(end)];
|
|
4042
4048
|
}
|
|
4043
4049
|
function redactUrl(raw) {
|
|
4044
4050
|
try {
|
|
@@ -4341,6 +4347,22 @@ function parseHttpStatusFromMessage(message) {
|
|
|
4341
4347
|
const status = Number(match[1]);
|
|
4342
4348
|
return Number.isInteger(status) && status >= 100 && status <= 599 ? status : undefined;
|
|
4343
4349
|
}
|
|
4350
|
+
function findHttpStatusInGraph(error) {
|
|
4351
|
+
for (const node of walkErrorGraph(error)) {
|
|
4352
|
+
const response = node.response;
|
|
4353
|
+
const explicit = typeof node.status === "number" ? node.status : response?.status;
|
|
4354
|
+
if (typeof explicit === "number" && explicit >= 400 && explicit <= 599) {
|
|
4355
|
+
return explicit;
|
|
4356
|
+
}
|
|
4357
|
+
if (typeof node.message === "string") {
|
|
4358
|
+
const parsed = parseHttpStatusFromMessage(node.message);
|
|
4359
|
+
if (parsed !== undefined && parsed >= 400) {
|
|
4360
|
+
return parsed;
|
|
4361
|
+
}
|
|
4362
|
+
}
|
|
4363
|
+
}
|
|
4364
|
+
return;
|
|
4365
|
+
}
|
|
4344
4366
|
function isHtmlDocument(body) {
|
|
4345
4367
|
return /^\s*(<!doctype html|<html\b)/i.test(body);
|
|
4346
4368
|
}
|
|
@@ -4454,7 +4476,8 @@ async function extractErrorDetails(error, options) {
|
|
|
4454
4476
|
}
|
|
4455
4477
|
let message;
|
|
4456
4478
|
let result = "Failure";
|
|
4457
|
-
const
|
|
4479
|
+
const classificationStatus = status ?? findHttpStatusInGraph(error);
|
|
4480
|
+
const classification = classifyError(classificationStatus, error);
|
|
4458
4481
|
let retry = classification.retry;
|
|
4459
4482
|
if (status === 401) {
|
|
4460
4483
|
message = DEFAULT_401;
|
|
@@ -4530,8 +4553,8 @@ async function extractErrorDetails(error, options) {
|
|
|
4530
4553
|
details = describeThrownValue(error);
|
|
4531
4554
|
}
|
|
4532
4555
|
const context = {};
|
|
4533
|
-
if (
|
|
4534
|
-
context.httpStatus =
|
|
4556
|
+
if (classificationStatus) {
|
|
4557
|
+
context.httpStatus = classificationStatus;
|
|
4535
4558
|
}
|
|
4536
4559
|
if (parsedBody?.errorCode && typeof parsedBody.errorCode === "string") {
|
|
4537
4560
|
context.errorCode = parsedBody.errorCode;
|
|
@@ -5108,7 +5131,8 @@ function readRegistryValue(keyPath, valueName) {
|
|
|
5108
5131
|
}
|
|
5109
5132
|
const [error, output] = catchError2(() => execFileSync("reg", ["query", keyPath, "/v", valueName], {
|
|
5110
5133
|
encoding: "utf-8",
|
|
5111
|
-
stdio: ["pipe", "pipe", "pipe"]
|
|
5134
|
+
stdio: ["pipe", "pipe", "pipe"],
|
|
5135
|
+
windowsHide: true
|
|
5112
5136
|
}));
|
|
5113
5137
|
if (error) {
|
|
5114
5138
|
return "";
|
|
@@ -5790,28 +5814,32 @@ function isPlainRecord(value) {
|
|
|
5790
5814
|
const prototype = Object.getPrototypeOf(value);
|
|
5791
5815
|
return prototype === Object.prototype || prototype === null;
|
|
5792
5816
|
}
|
|
5793
|
-
function
|
|
5817
|
+
function splitPagedEnvelope(value) {
|
|
5794
5818
|
if (Array.isArray(value) || !isPlainRecord(value))
|
|
5795
5819
|
return null;
|
|
5796
|
-
const entries = Object.
|
|
5820
|
+
const entries = Object.entries(value);
|
|
5797
5821
|
if (entries.length === 0)
|
|
5798
5822
|
return null;
|
|
5799
|
-
let
|
|
5800
|
-
|
|
5801
|
-
for (const entry of entries) {
|
|
5823
|
+
let found = null;
|
|
5824
|
+
const meta = Object.create(null);
|
|
5825
|
+
for (const [key, entry] of entries) {
|
|
5802
5826
|
if (Array.isArray(entry)) {
|
|
5803
|
-
if (
|
|
5827
|
+
if (found !== null)
|
|
5804
5828
|
return null;
|
|
5805
|
-
|
|
5829
|
+
found = { key, rows: entry };
|
|
5806
5830
|
} else if (entry !== null && typeof entry === "object") {
|
|
5807
5831
|
return null;
|
|
5808
5832
|
} else {
|
|
5809
|
-
|
|
5833
|
+
meta[key] = entry;
|
|
5810
5834
|
}
|
|
5811
5835
|
}
|
|
5812
|
-
if (
|
|
5836
|
+
if (found === null || Object.keys(meta).length === 0)
|
|
5813
5837
|
return null;
|
|
5814
|
-
return
|
|
5838
|
+
return { ...found, meta };
|
|
5839
|
+
}
|
|
5840
|
+
function extractPagedRows(value) {
|
|
5841
|
+
const paged = splitPagedEnvelope(value);
|
|
5842
|
+
return paged === null ? null : paged.rows;
|
|
5815
5843
|
}
|
|
5816
5844
|
function toLowerCamelCaseKey(key) {
|
|
5817
5845
|
if (!key)
|
|
@@ -5915,6 +5943,9 @@ function printOutput(data, format = "json", logFn, asciiSafe = false, tableRowSt
|
|
|
5915
5943
|
}
|
|
5916
5944
|
break;
|
|
5917
5945
|
}
|
|
5946
|
+
case "markdown":
|
|
5947
|
+
logFn(renderMarkdown(data));
|
|
5948
|
+
break;
|
|
5918
5949
|
default: {
|
|
5919
5950
|
const hasData = "Data" in data && data.Data != null;
|
|
5920
5951
|
const pagedRows = hasData ? extractPagedRows(data.Data) : null;
|
|
@@ -5939,6 +5970,10 @@ function logOutput(data, format = "json", tableRowStyle) {
|
|
|
5939
5970
|
printOutput(data, format, (msg) => sink.writeOut(`${msg}
|
|
5940
5971
|
`), needsAsciiSafeJson(sink), styleFn);
|
|
5941
5972
|
}
|
|
5973
|
+
var PLUMBING_KEYS = new Set(["code", "log"]);
|
|
5974
|
+
function isPlumbingKey(key) {
|
|
5975
|
+
return PLUMBING_KEYS.has(key.toLowerCase());
|
|
5976
|
+
}
|
|
5942
5977
|
function cellToString(val) {
|
|
5943
5978
|
return val != null && typeof val === "object" ? JSON.stringify(val) : String(val ?? "");
|
|
5944
5979
|
}
|
|
@@ -5954,7 +5989,7 @@ function wrapText(text, width) {
|
|
|
5954
5989
|
function printTable(data, logFn, externalLogValue, tableRowStyle) {
|
|
5955
5990
|
if (data.length === 0)
|
|
5956
5991
|
return;
|
|
5957
|
-
const keys = Object.keys(data[0]).filter((key) => !
|
|
5992
|
+
const keys = Object.keys(data[0]).filter((key) => !isPlumbingKey(key));
|
|
5958
5993
|
const maxWidths = keys.map((key) => Math.max(key.length, ...data.map((item) => cellToString(item[key]).length)));
|
|
5959
5994
|
const header = keys.map((key, i) => key.padEnd(maxWidths[i])).join(" | ");
|
|
5960
5995
|
logFn(header);
|
|
@@ -5976,7 +6011,7 @@ function isNonEmptyPlainObject(value) {
|
|
|
5976
6011
|
}
|
|
5977
6012
|
var NESTED_INDENT = " ";
|
|
5978
6013
|
function printVerticalTable(data, logFn = console.log, externalLogValue) {
|
|
5979
|
-
const keys = Object.keys(data).filter((key) => !
|
|
6014
|
+
const keys = Object.keys(data).filter((key) => !isPlumbingKey(key));
|
|
5980
6015
|
if (keys.length === 0)
|
|
5981
6016
|
return;
|
|
5982
6017
|
const isBlockValue = (value) => isPlainObjectArray(value) || isNonEmptyPlainObject(value);
|
|
@@ -6007,7 +6042,7 @@ function printVerticalTable(data, logFn = console.log, externalLogValue) {
|
|
|
6007
6042
|
function printResizableTable(data, logFn = console.log, externalLogValue, availableWidth, tableRowStyle) {
|
|
6008
6043
|
if (data.length === 0)
|
|
6009
6044
|
return;
|
|
6010
|
-
const keys = Object.keys(data[0]).filter((key) => !
|
|
6045
|
+
const keys = Object.keys(data[0]).filter((key) => !isPlumbingKey(key));
|
|
6011
6046
|
if (keys.length === 0)
|
|
6012
6047
|
return;
|
|
6013
6048
|
if (!process.stdout.isTTY) {
|
|
@@ -6081,6 +6116,220 @@ function printResizableTable(data, logFn = console.log, externalLogValue, availa
|
|
|
6081
6116
|
logFn(`Log: ${externalLogValue}`);
|
|
6082
6117
|
}
|
|
6083
6118
|
}
|
|
6119
|
+
var MARKDOWN_MAX_CELL = 200;
|
|
6120
|
+
var MARKDOWN_MAX_DEPTH = 3;
|
|
6121
|
+
function markdownHeading(depth) {
|
|
6122
|
+
return "#".repeat(Math.min(3 + depth, 6));
|
|
6123
|
+
}
|
|
6124
|
+
var BACKTICK_RUN = /`+/g;
|
|
6125
|
+
function fencedBlock(text) {
|
|
6126
|
+
const first = text.trimStart()[0];
|
|
6127
|
+
const language = first === "<" ? "xml" : first === "{" || first === "[" ? "json" : "";
|
|
6128
|
+
const longestRun = Math.max(0, ...Array.from(text.matchAll(BACKTICK_RUN), (match) => match[0].length));
|
|
6129
|
+
const fence = "`".repeat(Math.max(3, longestRun + 1));
|
|
6130
|
+
return `${fence}${language}
|
|
6131
|
+
${text}
|
|
6132
|
+
${fence}`;
|
|
6133
|
+
}
|
|
6134
|
+
function collapseNewlineRuns(text) {
|
|
6135
|
+
return text.split(/(\s+)/).map((part, index) => index % 2 === 1 && part.includes(`
|
|
6136
|
+
`) ? " " : part).join("");
|
|
6137
|
+
}
|
|
6138
|
+
function markdownCell(value) {
|
|
6139
|
+
const text = value instanceof Date ? value.toISOString() : cellToString(value);
|
|
6140
|
+
return collapseNewlineRuns(text).replace(/\|/g, "\\|");
|
|
6141
|
+
}
|
|
6142
|
+
function markdownLabel(key) {
|
|
6143
|
+
return collapseNewlineRuns(key).replace(/[\\`*|]/g, "\\$&");
|
|
6144
|
+
}
|
|
6145
|
+
function withoutPlumbing(record) {
|
|
6146
|
+
const kept = Object.create(null);
|
|
6147
|
+
for (const [key, value] of Object.entries(record)) {
|
|
6148
|
+
if (!isPlumbingKey(key))
|
|
6149
|
+
kept[key] = value;
|
|
6150
|
+
}
|
|
6151
|
+
return kept;
|
|
6152
|
+
}
|
|
6153
|
+
function rowsWithoutPlumbing(rows) {
|
|
6154
|
+
return rows.map((row) => isPlainRecord(row) ? withoutPlumbing(row) : row);
|
|
6155
|
+
}
|
|
6156
|
+
function markdownTable(rows) {
|
|
6157
|
+
const columns = [];
|
|
6158
|
+
const seen = new Set;
|
|
6159
|
+
for (const row of rows) {
|
|
6160
|
+
for (const key of Object.keys(row)) {
|
|
6161
|
+
if (!seen.has(key)) {
|
|
6162
|
+
seen.add(key);
|
|
6163
|
+
columns.push(key);
|
|
6164
|
+
}
|
|
6165
|
+
}
|
|
6166
|
+
}
|
|
6167
|
+
if (columns.length === 0)
|
|
6168
|
+
return null;
|
|
6169
|
+
const cells = rows.map((row) => columns.map((key) => markdownCell(row[key])));
|
|
6170
|
+
if (cells.some((row) => row.some((c) => c.length > MARKDOWN_MAX_CELL))) {
|
|
6171
|
+
return null;
|
|
6172
|
+
}
|
|
6173
|
+
return [
|
|
6174
|
+
`| ${columns.map(markdownLabel).join(" | ")} |`,
|
|
6175
|
+
`| ${columns.map(() => "---").join(" | ")} |`,
|
|
6176
|
+
...cells.map((row) => `| ${row.join(" | ")} |`)
|
|
6177
|
+
].join(`
|
|
6178
|
+
`);
|
|
6179
|
+
}
|
|
6180
|
+
function extractMessageSequence(rows) {
|
|
6181
|
+
const messages = [];
|
|
6182
|
+
for (const row of rows) {
|
|
6183
|
+
const message = extractSingleMessage(row);
|
|
6184
|
+
if (message === null)
|
|
6185
|
+
return null;
|
|
6186
|
+
messages.push(message);
|
|
6187
|
+
}
|
|
6188
|
+
return messages.join(`
|
|
6189
|
+
|
|
6190
|
+
`);
|
|
6191
|
+
}
|
|
6192
|
+
function markdownRows(rows, depth) {
|
|
6193
|
+
if (rows.length === 0)
|
|
6194
|
+
return "(none)";
|
|
6195
|
+
if (!isPlainObjectArray(rows)) {
|
|
6196
|
+
return rows.map((item) => `- ${markdownCell(item)}`).join(`
|
|
6197
|
+
`);
|
|
6198
|
+
}
|
|
6199
|
+
const prose = extractMessageSequence(rows);
|
|
6200
|
+
if (prose !== null)
|
|
6201
|
+
return prose;
|
|
6202
|
+
const table = markdownTable(rows);
|
|
6203
|
+
if (table !== null)
|
|
6204
|
+
return table;
|
|
6205
|
+
if (depth >= MARKDOWN_MAX_DEPTH) {
|
|
6206
|
+
return fencedBlock(JSON.stringify(rows, null, 2));
|
|
6207
|
+
}
|
|
6208
|
+
return rows.map((row, index) => [
|
|
6209
|
+
`${markdownHeading(depth)} ${index + 1}`,
|
|
6210
|
+
markdownObject(row, depth + 1)
|
|
6211
|
+
].join(`
|
|
6212
|
+
|
|
6213
|
+
`)).join(`
|
|
6214
|
+
|
|
6215
|
+
`);
|
|
6216
|
+
}
|
|
6217
|
+
function markdownObject(obj, depth) {
|
|
6218
|
+
const scalars = [];
|
|
6219
|
+
const blocks = [];
|
|
6220
|
+
for (const [key, value] of Object.entries(obj)) {
|
|
6221
|
+
if (value === undefined)
|
|
6222
|
+
continue;
|
|
6223
|
+
const label = markdownLabel(key);
|
|
6224
|
+
if (Array.isArray(value)) {
|
|
6225
|
+
blocks.push(`${markdownHeading(depth)} ${label}
|
|
6226
|
+
|
|
6227
|
+
${markdownRows(value, depth + 1)}`);
|
|
6228
|
+
} else if (isNonEmptyPlainObject(value)) {
|
|
6229
|
+
const nested = depth < MARKDOWN_MAX_DEPTH ? markdownObject(value, depth + 1) : fencedBlock(JSON.stringify(value, null, 2));
|
|
6230
|
+
if (nested !== "") {
|
|
6231
|
+
blocks.push(`${markdownHeading(depth)} ${label}
|
|
6232
|
+
|
|
6233
|
+
${nested}`);
|
|
6234
|
+
}
|
|
6235
|
+
} else if (typeof value === "string" && value.includes(`
|
|
6236
|
+
`)) {
|
|
6237
|
+
blocks.push(`**${label}:**
|
|
6238
|
+
|
|
6239
|
+
${fencedBlock(value)}`);
|
|
6240
|
+
} else {
|
|
6241
|
+
scalars.push(`**${label}:** ${markdownCell(value)}`);
|
|
6242
|
+
}
|
|
6243
|
+
}
|
|
6244
|
+
const sections = scalars.length > 0 ? [scalars.join(`
|
|
6245
|
+
`)] : [];
|
|
6246
|
+
sections.push(...blocks);
|
|
6247
|
+
return sections.join(`
|
|
6248
|
+
|
|
6249
|
+
`);
|
|
6250
|
+
}
|
|
6251
|
+
function extractSingleMessage(payload) {
|
|
6252
|
+
if (!isPlainRecord(payload))
|
|
6253
|
+
return null;
|
|
6254
|
+
const keys = Object.keys(payload);
|
|
6255
|
+
if (keys.length !== 1 || keys[0].toLowerCase() !== "message")
|
|
6256
|
+
return null;
|
|
6257
|
+
const value = payload[keys[0]];
|
|
6258
|
+
return typeof value === "string" ? value : null;
|
|
6259
|
+
}
|
|
6260
|
+
function markdownPayload(payload) {
|
|
6261
|
+
const message = extractSingleMessage(payload);
|
|
6262
|
+
if (message !== null)
|
|
6263
|
+
return message;
|
|
6264
|
+
if (Array.isArray(payload)) {
|
|
6265
|
+
return markdownRows(rowsWithoutPlumbing(payload), 0);
|
|
6266
|
+
}
|
|
6267
|
+
const visible = withoutPlumbing(payload);
|
|
6268
|
+
const paged = splitPagedEnvelope(visible);
|
|
6269
|
+
if (paged !== null) {
|
|
6270
|
+
const meta = markdownObject(paged.meta, 0);
|
|
6271
|
+
const rows = `${markdownHeading(0)} ${markdownLabel(paged.key)}
|
|
6272
|
+
|
|
6273
|
+
${markdownRows(rowsWithoutPlumbing(paged.rows), 1)}`;
|
|
6274
|
+
return meta === "" ? rows : `${meta}
|
|
6275
|
+
|
|
6276
|
+
${rows}`;
|
|
6277
|
+
}
|
|
6278
|
+
return markdownObject(visible, 0);
|
|
6279
|
+
}
|
|
6280
|
+
function isPaginationWorthShowing(value) {
|
|
6281
|
+
if (typeof value !== "object" || value === null)
|
|
6282
|
+
return false;
|
|
6283
|
+
const page = value;
|
|
6284
|
+
return page.HasMore === true || typeof page.Offset === "number" && page.Offset > 0;
|
|
6285
|
+
}
|
|
6286
|
+
function markdownEnvelopeNotes(data) {
|
|
6287
|
+
const envelope = data;
|
|
6288
|
+
const notes = [];
|
|
6289
|
+
const warning = envelope.Warning;
|
|
6290
|
+
if (typeof warning === "string" && warning !== "") {
|
|
6291
|
+
notes.push(`> **Warning:** ${warning}`);
|
|
6292
|
+
}
|
|
6293
|
+
const instructions = envelope.Instructions;
|
|
6294
|
+
if (typeof instructions === "string" && instructions !== "") {
|
|
6295
|
+
notes.push(`> ${instructions}`);
|
|
6296
|
+
}
|
|
6297
|
+
const pagination = envelope.Pagination;
|
|
6298
|
+
if (isPaginationWorthShowing(pagination)) {
|
|
6299
|
+
const body = markdownObject(pagination, 1);
|
|
6300
|
+
if (body !== "") {
|
|
6301
|
+
notes.push(`${markdownHeading(0)} Pagination
|
|
6302
|
+
|
|
6303
|
+
${body}`);
|
|
6304
|
+
}
|
|
6305
|
+
}
|
|
6306
|
+
const log = envelope.Log;
|
|
6307
|
+
if (typeof log === "string" && log !== "") {
|
|
6308
|
+
notes.push(`**Log:** ${log}`);
|
|
6309
|
+
}
|
|
6310
|
+
return notes;
|
|
6311
|
+
}
|
|
6312
|
+
function renderMarkdown(data) {
|
|
6313
|
+
if (data.Result !== RESULTS.Success) {
|
|
6314
|
+
const failure = data;
|
|
6315
|
+
const sections = [`**Failed:** ${failure.Message}`];
|
|
6316
|
+
if (failure.Data != null) {
|
|
6317
|
+
sections.push(markdownPayload(failure.Data));
|
|
6318
|
+
}
|
|
6319
|
+
if (failure.Instructions) {
|
|
6320
|
+
sections.push(`> ${failure.Instructions}`);
|
|
6321
|
+
}
|
|
6322
|
+
return sections.filter((section) => section !== "").join(`
|
|
6323
|
+
|
|
6324
|
+
`);
|
|
6325
|
+
}
|
|
6326
|
+
if (!("Data" in data) || data.Data == null) {
|
|
6327
|
+
return markdownObject(withoutPlumbing(data), 0);
|
|
6328
|
+
}
|
|
6329
|
+
return [markdownPayload(data.Data), ...markdownEnvelopeNotes(data)].filter((section) => section !== "").join(`
|
|
6330
|
+
|
|
6331
|
+
`);
|
|
6332
|
+
}
|
|
6084
6333
|
function toYaml(data) {
|
|
6085
6334
|
const codec = getYamlCodec();
|
|
6086
6335
|
if (!codec) {
|
|
@@ -6721,6 +6970,22 @@ Command.prototype.trackedAction = function(context, fn, properties) {
|
|
|
6721
6970
|
}
|
|
6722
6971
|
});
|
|
6723
6972
|
};
|
|
6973
|
+
|
|
6974
|
+
// ../common/src/option-validators.ts
|
|
6975
|
+
function parseBoundedInt(raw, optionName, bounds) {
|
|
6976
|
+
const normalized = raw.trim();
|
|
6977
|
+
if (normalized === "") {
|
|
6978
|
+
throw new InvalidArgumentError(`${optionName} requires a value (got empty).`);
|
|
6979
|
+
}
|
|
6980
|
+
if (!/^-?\d+$/.test(normalized)) {
|
|
6981
|
+
throw new InvalidArgumentError(`${optionName} must be an integer, got '${normalized}'.`);
|
|
6982
|
+
}
|
|
6983
|
+
const n = parseInt(normalized, 10);
|
|
6984
|
+
if (n < bounds.min || n > bounds.max) {
|
|
6985
|
+
throw new InvalidArgumentError(`${optionName} must be between ${bounds.min} and ${bounds.max}, got ${n}.`);
|
|
6986
|
+
}
|
|
6987
|
+
return n;
|
|
6988
|
+
}
|
|
6724
6989
|
// ../common/src/classified-failure.ts
|
|
6725
6990
|
var MAX_QUOTED_BODY_CHARS = 200;
|
|
6726
6991
|
function summarizePlatformBody(body) {
|
|
@@ -9665,8 +9930,9 @@ class UsersApi extends BaseAPI {
|
|
|
9665
9930
|
// ../orchestrator-sdk/package.json
|
|
9666
9931
|
var package_default = {
|
|
9667
9932
|
name: "@uipath/orchestrator-sdk",
|
|
9933
|
+
author: "UiPath",
|
|
9668
9934
|
license: "SEE LICENSE IN LICENSE.txt",
|
|
9669
|
-
version: "1.
|
|
9935
|
+
version: "1.203.0",
|
|
9670
9936
|
repository: {
|
|
9671
9937
|
type: "git",
|
|
9672
9938
|
url: "https://github.com/UiPath/cli.git",
|
|
@@ -9748,6 +10014,6 @@ async function createApiClient(ApiClass, options) {
|
|
|
9748
10014
|
const config = await createOrchestratorConfig(options);
|
|
9749
10015
|
return new ApiClass(config);
|
|
9750
10016
|
}
|
|
9751
|
-
export { getFileSystem, getLoginStatusAsync, getAuthContext, catchError2 as catchError, extractErrorMessage, extractErrorMessageSync, logger, RESULTS, OutputFormatter, summarizePlatformBody, Command, processContext, isGuid, getSdkUserAgentToken, addSdkUserAgentHeader, installSdkUserAgentHeader, normalizeProjectType, readUipxFile, prepareProjectLocation, updateUipxSolutionId, findSolutionFile, updateSolutionFile, tryRegisterProjectInParentSolution, findSolutionFileUpward, PersonalWorkspacesApi, UsersApi, createApiClient };
|
|
10017
|
+
export { getFileSystem, getLoginStatusAsync, getAuthContext, catchError2 as catchError, extractErrorMessage, extractErrorMessageSync, logger, RESULTS, OutputFormatter, summarizePlatformBody, Command, processContext, isGuid, parseBoundedInt, getSdkUserAgentToken, addSdkUserAgentHeader, installSdkUserAgentHeader, normalizeProjectType, toPortableRelativePath, readUipxFile, prepareProjectLocation, updateUipxSolutionId, findSolutionFile, updateSolutionFile, tryRegisterProjectInParentSolution, findSolutionFileUpward, PersonalWorkspacesApi, UsersApi, createApiClient };
|
|
9752
10018
|
|
|
9753
|
-
//# debugId=
|
|
10019
|
+
//# debugId=88C90198961D7A2064756E2164756E21
|
package/dist/tool.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
metadata,
|
|
3
3
|
registerCommands
|
|
4
|
-
} from "./packager-tool-
|
|
4
|
+
} from "./packager-tool-g5g8vyx2.js";
|
|
5
5
|
import"./packager-tool-4mna26cc.js";
|
|
6
6
|
import"./packager-tool-c23zrhj8.js";
|
|
7
|
-
import"./packager-tool-
|
|
8
|
-
import"./packager-tool-
|
|
7
|
+
import"./packager-tool-abj3ftf8.js";
|
|
8
|
+
import"./packager-tool-tnz82jk0.js";
|
|
9
9
|
import"./packager-tool-mc1499dc.js";
|
|
10
10
|
import"./packager-tool-b098y4a2.js";
|
|
11
11
|
import"./packager-tool-1yh8g550.js";
|
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uipath/agent-tool",
|
|
3
|
+
"author": "UiPath",
|
|
3
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
4
|
-
"version": "1.
|
|
5
|
+
"version": "1.203.0-preview.160",
|
|
5
6
|
"description": "cli plugin for creating and managing UiPath low-code agents",
|
|
6
7
|
"private": false,
|
|
7
8
|
"repository": {
|
|
@@ -28,5 +29,5 @@
|
|
|
28
29
|
"files": [
|
|
29
30
|
"dist"
|
|
30
31
|
],
|
|
31
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "3a42062ba731afca4595ba9aa8a80afc9667528d"
|
|
32
33
|
}
|