@uipath/aops-tool 1.202.0 → 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/index.js +1 -1
- package/dist/{tool-cganjg63.js → tool-y97354yn.js} +288 -36
- package/dist/tool.js +1 -1
- package/package.json +3 -2
package/dist/index.js
CHANGED
|
@@ -2099,8 +2099,9 @@ var require_commander = __commonJS(function(exports) {
|
|
|
2099
2099
|
// package.json
|
|
2100
2100
|
var package_default = {
|
|
2101
2101
|
name: "@uipath/aops-tool",
|
|
2102
|
+
author: "UiPath",
|
|
2102
2103
|
license: "SEE LICENSE IN LICENSE.txt",
|
|
2103
|
-
version: "1.
|
|
2104
|
+
version: "1.203.0-preview.160",
|
|
2104
2105
|
description: "Manage UiPath StudioAdmin AOps — connections, repos, projects, solutions, pipelines, executions.",
|
|
2105
2106
|
private: false,
|
|
2106
2107
|
repository: {
|
|
@@ -2656,7 +2657,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
|
|
|
2656
2657
|
var EMAIL_PATTERN = /\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}\b/g;
|
|
2657
2658
|
var JWT_PATTERN = /\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+/g;
|
|
2658
2659
|
var LONG_TOKEN_PATTERN = /\b[A-Za-z0-9_-]{40,}\b/g;
|
|
2659
|
-
var PADDED_BASE64_PATTERN = /[A-Za-z0-9+/]{16,}={1,2}(?![A-Za-z0-9+/=])/g;
|
|
2660
|
+
var PADDED_BASE64_PATTERN = /(?<![A-Za-z0-9+/])[A-Za-z0-9+/]{16,}={1,2}(?![A-Za-z0-9+/=])/g;
|
|
2660
2661
|
var BASE64_WITH_PLUS_PATTERN = /[A-Za-z0-9+/]{40,}/g;
|
|
2661
2662
|
var USER_HOME_PATTERN = /(?<![A-Za-z0-9._-])([/\\])(Users|home|Profiles)([/\\])([^/\\]+)/gi;
|
|
2662
2663
|
var UNC_PATH_PATTERN = /(^|[\s"'<>|=,;([{])(\\\\[^\s"'<>|]+)/g;
|
|
@@ -2703,7 +2704,7 @@ var QUOTED_LITERAL_PATTERN = new RegExp([
|
|
|
2703
2704
|
`(?<![A-Za-z0-9])"(?:[^\\
|
|
2704
2705
|
]|\\.){2,${QUOTED_LITERAL_MAX_SPAN}}?"(?![A-Za-z0-9])`
|
|
2705
2706
|
].join("|"), "g");
|
|
2706
|
-
var JSON_BODY_PATTERN = /[{[][^{}[\]]*[:,][^{}[\]]*[\]}]/g;
|
|
2707
|
+
var JSON_BODY_PATTERN = /[{[][^{}[\]:,]*[:,][^{}[\]]*[\]}]/g;
|
|
2707
2708
|
var COLLAPSED_BODY = "{…}";
|
|
2708
2709
|
var COLLAPSED_BODY_MARKER = "\x01body\x01";
|
|
2709
2710
|
var MAX_BODY_NESTING = 8;
|
|
@@ -2718,10 +2719,13 @@ function collapseJsonBodies(text) {
|
|
|
2718
2719
|
}
|
|
2719
2720
|
return out.split(COLLAPSED_BODY_MARKER).join(COLLAPSED_BODY);
|
|
2720
2721
|
}
|
|
2721
|
-
var TRAILING_PROSE_PUNCT =
|
|
2722
|
+
var TRAILING_PROSE_PUNCT = `.,;:!?)]}>'"`;
|
|
2722
2723
|
function peelTrailingPunctuation(match) {
|
|
2723
|
-
|
|
2724
|
-
|
|
2724
|
+
let end = match.length;
|
|
2725
|
+
while (end > 0 && TRAILING_PROSE_PUNCT.includes(match[end - 1])) {
|
|
2726
|
+
end -= 1;
|
|
2727
|
+
}
|
|
2728
|
+
return [match.slice(0, end), match.slice(end)];
|
|
2725
2729
|
}
|
|
2726
2730
|
function redactUrl(raw) {
|
|
2727
2731
|
try {
|
|
@@ -3024,6 +3028,22 @@ function parseHttpStatusFromMessage(message) {
|
|
|
3024
3028
|
const status = Number(match[1]);
|
|
3025
3029
|
return Number.isInteger(status) && status >= 100 && status <= 599 ? status : undefined;
|
|
3026
3030
|
}
|
|
3031
|
+
function findHttpStatusInGraph(error) {
|
|
3032
|
+
for (const node of walkErrorGraph(error)) {
|
|
3033
|
+
const response = node.response;
|
|
3034
|
+
const explicit = typeof node.status === "number" ? node.status : response?.status;
|
|
3035
|
+
if (typeof explicit === "number" && explicit >= 400 && explicit <= 599) {
|
|
3036
|
+
return explicit;
|
|
3037
|
+
}
|
|
3038
|
+
if (typeof node.message === "string") {
|
|
3039
|
+
const parsed = parseHttpStatusFromMessage(node.message);
|
|
3040
|
+
if (parsed !== undefined && parsed >= 400) {
|
|
3041
|
+
return parsed;
|
|
3042
|
+
}
|
|
3043
|
+
}
|
|
3044
|
+
}
|
|
3045
|
+
return;
|
|
3046
|
+
}
|
|
3027
3047
|
function isHtmlDocument(body) {
|
|
3028
3048
|
return /^\s*(<!doctype html|<html\b)/i.test(body);
|
|
3029
3049
|
}
|
|
@@ -3137,7 +3157,8 @@ async function extractErrorDetails(error, options) {
|
|
|
3137
3157
|
}
|
|
3138
3158
|
let message;
|
|
3139
3159
|
let result = "Failure";
|
|
3140
|
-
const
|
|
3160
|
+
const classificationStatus = status ?? findHttpStatusInGraph(error);
|
|
3161
|
+
const classification = classifyError(classificationStatus, error);
|
|
3141
3162
|
let retry = classification.retry;
|
|
3142
3163
|
if (status === 401) {
|
|
3143
3164
|
message = DEFAULT_401;
|
|
@@ -3213,8 +3234,8 @@ async function extractErrorDetails(error, options) {
|
|
|
3213
3234
|
details = describeThrownValue(error);
|
|
3214
3235
|
}
|
|
3215
3236
|
const context = {};
|
|
3216
|
-
if (
|
|
3217
|
-
context.httpStatus =
|
|
3237
|
+
if (classificationStatus) {
|
|
3238
|
+
context.httpStatus = classificationStatus;
|
|
3218
3239
|
}
|
|
3219
3240
|
if (parsedBody?.errorCode && typeof parsedBody.errorCode === "string") {
|
|
3220
3241
|
context.errorCode = parsedBody.errorCode;
|
|
@@ -3776,7 +3797,8 @@ function readRegistryValue(keyPath, valueName) {
|
|
|
3776
3797
|
}
|
|
3777
3798
|
const [error, output] = catchError(() => execFileSync("reg", ["query", keyPath, "/v", valueName], {
|
|
3778
3799
|
encoding: "utf-8",
|
|
3779
|
-
stdio: ["pipe", "pipe", "pipe"]
|
|
3800
|
+
stdio: ["pipe", "pipe", "pipe"],
|
|
3801
|
+
windowsHide: true
|
|
3780
3802
|
}));
|
|
3781
3803
|
if (error) {
|
|
3782
3804
|
return "";
|
|
@@ -4458,28 +4480,32 @@ function isPlainRecord(value) {
|
|
|
4458
4480
|
const prototype = Object.getPrototypeOf(value);
|
|
4459
4481
|
return prototype === Object.prototype || prototype === null;
|
|
4460
4482
|
}
|
|
4461
|
-
function
|
|
4483
|
+
function splitPagedEnvelope(value) {
|
|
4462
4484
|
if (Array.isArray(value) || !isPlainRecord(value))
|
|
4463
4485
|
return null;
|
|
4464
|
-
const entries = Object.
|
|
4486
|
+
const entries = Object.entries(value);
|
|
4465
4487
|
if (entries.length === 0)
|
|
4466
4488
|
return null;
|
|
4467
|
-
let
|
|
4468
|
-
|
|
4469
|
-
for (const entry of entries) {
|
|
4489
|
+
let found = null;
|
|
4490
|
+
const meta = Object.create(null);
|
|
4491
|
+
for (const [key, entry] of entries) {
|
|
4470
4492
|
if (Array.isArray(entry)) {
|
|
4471
|
-
if (
|
|
4493
|
+
if (found !== null)
|
|
4472
4494
|
return null;
|
|
4473
|
-
|
|
4495
|
+
found = { key, rows: entry };
|
|
4474
4496
|
} else if (entry !== null && typeof entry === "object") {
|
|
4475
4497
|
return null;
|
|
4476
4498
|
} else {
|
|
4477
|
-
|
|
4499
|
+
meta[key] = entry;
|
|
4478
4500
|
}
|
|
4479
4501
|
}
|
|
4480
|
-
if (
|
|
4502
|
+
if (found === null || Object.keys(meta).length === 0)
|
|
4481
4503
|
return null;
|
|
4482
|
-
return
|
|
4504
|
+
return { ...found, meta };
|
|
4505
|
+
}
|
|
4506
|
+
function extractPagedRows(value) {
|
|
4507
|
+
const paged = splitPagedEnvelope(value);
|
|
4508
|
+
return paged === null ? null : paged.rows;
|
|
4483
4509
|
}
|
|
4484
4510
|
function toLowerCamelCaseKey(key) {
|
|
4485
4511
|
if (!key)
|
|
@@ -4583,6 +4609,9 @@ function printOutput(data, format = "json", logFn, asciiSafe = false, tableRowSt
|
|
|
4583
4609
|
}
|
|
4584
4610
|
break;
|
|
4585
4611
|
}
|
|
4612
|
+
case "markdown":
|
|
4613
|
+
logFn(renderMarkdown(data));
|
|
4614
|
+
break;
|
|
4586
4615
|
default: {
|
|
4587
4616
|
const hasData = "Data" in data && data.Data != null;
|
|
4588
4617
|
const pagedRows = hasData ? extractPagedRows(data.Data) : null;
|
|
@@ -4607,6 +4636,10 @@ function logOutput(data, format = "json", tableRowStyle) {
|
|
|
4607
4636
|
printOutput(data, format, (msg) => sink.writeOut(`${msg}
|
|
4608
4637
|
`), needsAsciiSafeJson(sink), styleFn);
|
|
4609
4638
|
}
|
|
4639
|
+
var PLUMBING_KEYS = new Set(["code", "log"]);
|
|
4640
|
+
function isPlumbingKey(key) {
|
|
4641
|
+
return PLUMBING_KEYS.has(key.toLowerCase());
|
|
4642
|
+
}
|
|
4610
4643
|
function cellToString(val) {
|
|
4611
4644
|
return val != null && typeof val === "object" ? JSON.stringify(val) : String(val ?? "");
|
|
4612
4645
|
}
|
|
@@ -4622,7 +4655,7 @@ function wrapText(text, width) {
|
|
|
4622
4655
|
function printTable(data, logFn, externalLogValue, tableRowStyle) {
|
|
4623
4656
|
if (data.length === 0)
|
|
4624
4657
|
return;
|
|
4625
|
-
const keys = Object.keys(data[0]).filter((key) => !
|
|
4658
|
+
const keys = Object.keys(data[0]).filter((key) => !isPlumbingKey(key));
|
|
4626
4659
|
const maxWidths = keys.map((key) => Math.max(key.length, ...data.map((item) => cellToString(item[key]).length)));
|
|
4627
4660
|
const header = keys.map((key, i) => key.padEnd(maxWidths[i])).join(" | ");
|
|
4628
4661
|
logFn(header);
|
|
@@ -4644,7 +4677,7 @@ function isNonEmptyPlainObject(value) {
|
|
|
4644
4677
|
}
|
|
4645
4678
|
var NESTED_INDENT = " ";
|
|
4646
4679
|
function printVerticalTable(data, logFn = console.log, externalLogValue) {
|
|
4647
|
-
const keys = Object.keys(data).filter((key) => !
|
|
4680
|
+
const keys = Object.keys(data).filter((key) => !isPlumbingKey(key));
|
|
4648
4681
|
if (keys.length === 0)
|
|
4649
4682
|
return;
|
|
4650
4683
|
const isBlockValue = (value) => isPlainObjectArray(value) || isNonEmptyPlainObject(value);
|
|
@@ -4675,7 +4708,7 @@ function printVerticalTable(data, logFn = console.log, externalLogValue) {
|
|
|
4675
4708
|
function printResizableTable(data, logFn = console.log, externalLogValue, availableWidth, tableRowStyle) {
|
|
4676
4709
|
if (data.length === 0)
|
|
4677
4710
|
return;
|
|
4678
|
-
const keys = Object.keys(data[0]).filter((key) => !
|
|
4711
|
+
const keys = Object.keys(data[0]).filter((key) => !isPlumbingKey(key));
|
|
4679
4712
|
if (keys.length === 0)
|
|
4680
4713
|
return;
|
|
4681
4714
|
if (!process.stdout.isTTY) {
|
|
@@ -4749,6 +4782,220 @@ function printResizableTable(data, logFn = console.log, externalLogValue, availa
|
|
|
4749
4782
|
logFn(`Log: ${externalLogValue}`);
|
|
4750
4783
|
}
|
|
4751
4784
|
}
|
|
4785
|
+
var MARKDOWN_MAX_CELL = 200;
|
|
4786
|
+
var MARKDOWN_MAX_DEPTH = 3;
|
|
4787
|
+
function markdownHeading(depth) {
|
|
4788
|
+
return "#".repeat(Math.min(3 + depth, 6));
|
|
4789
|
+
}
|
|
4790
|
+
var BACKTICK_RUN = /`+/g;
|
|
4791
|
+
function fencedBlock(text) {
|
|
4792
|
+
const first = text.trimStart()[0];
|
|
4793
|
+
const language = first === "<" ? "xml" : first === "{" || first === "[" ? "json" : "";
|
|
4794
|
+
const longestRun = Math.max(0, ...Array.from(text.matchAll(BACKTICK_RUN), (match) => match[0].length));
|
|
4795
|
+
const fence = "`".repeat(Math.max(3, longestRun + 1));
|
|
4796
|
+
return `${fence}${language}
|
|
4797
|
+
${text}
|
|
4798
|
+
${fence}`;
|
|
4799
|
+
}
|
|
4800
|
+
function collapseNewlineRuns(text) {
|
|
4801
|
+
return text.split(/(\s+)/).map((part, index) => index % 2 === 1 && part.includes(`
|
|
4802
|
+
`) ? " " : part).join("");
|
|
4803
|
+
}
|
|
4804
|
+
function markdownCell(value) {
|
|
4805
|
+
const text = value instanceof Date ? value.toISOString() : cellToString(value);
|
|
4806
|
+
return collapseNewlineRuns(text).replace(/\|/g, "\\|");
|
|
4807
|
+
}
|
|
4808
|
+
function markdownLabel(key) {
|
|
4809
|
+
return collapseNewlineRuns(key).replace(/[\\`*|]/g, "\\$&");
|
|
4810
|
+
}
|
|
4811
|
+
function withoutPlumbing(record) {
|
|
4812
|
+
const kept = Object.create(null);
|
|
4813
|
+
for (const [key, value] of Object.entries(record)) {
|
|
4814
|
+
if (!isPlumbingKey(key))
|
|
4815
|
+
kept[key] = value;
|
|
4816
|
+
}
|
|
4817
|
+
return kept;
|
|
4818
|
+
}
|
|
4819
|
+
function rowsWithoutPlumbing(rows) {
|
|
4820
|
+
return rows.map((row) => isPlainRecord(row) ? withoutPlumbing(row) : row);
|
|
4821
|
+
}
|
|
4822
|
+
function markdownTable(rows) {
|
|
4823
|
+
const columns = [];
|
|
4824
|
+
const seen = new Set;
|
|
4825
|
+
for (const row of rows) {
|
|
4826
|
+
for (const key of Object.keys(row)) {
|
|
4827
|
+
if (!seen.has(key)) {
|
|
4828
|
+
seen.add(key);
|
|
4829
|
+
columns.push(key);
|
|
4830
|
+
}
|
|
4831
|
+
}
|
|
4832
|
+
}
|
|
4833
|
+
if (columns.length === 0)
|
|
4834
|
+
return null;
|
|
4835
|
+
const cells = rows.map((row) => columns.map((key) => markdownCell(row[key])));
|
|
4836
|
+
if (cells.some((row) => row.some((c) => c.length > MARKDOWN_MAX_CELL))) {
|
|
4837
|
+
return null;
|
|
4838
|
+
}
|
|
4839
|
+
return [
|
|
4840
|
+
`| ${columns.map(markdownLabel).join(" | ")} |`,
|
|
4841
|
+
`| ${columns.map(() => "---").join(" | ")} |`,
|
|
4842
|
+
...cells.map((row) => `| ${row.join(" | ")} |`)
|
|
4843
|
+
].join(`
|
|
4844
|
+
`);
|
|
4845
|
+
}
|
|
4846
|
+
function extractMessageSequence(rows) {
|
|
4847
|
+
const messages = [];
|
|
4848
|
+
for (const row of rows) {
|
|
4849
|
+
const message = extractSingleMessage(row);
|
|
4850
|
+
if (message === null)
|
|
4851
|
+
return null;
|
|
4852
|
+
messages.push(message);
|
|
4853
|
+
}
|
|
4854
|
+
return messages.join(`
|
|
4855
|
+
|
|
4856
|
+
`);
|
|
4857
|
+
}
|
|
4858
|
+
function markdownRows(rows, depth) {
|
|
4859
|
+
if (rows.length === 0)
|
|
4860
|
+
return "(none)";
|
|
4861
|
+
if (!isPlainObjectArray(rows)) {
|
|
4862
|
+
return rows.map((item) => `- ${markdownCell(item)}`).join(`
|
|
4863
|
+
`);
|
|
4864
|
+
}
|
|
4865
|
+
const prose = extractMessageSequence(rows);
|
|
4866
|
+
if (prose !== null)
|
|
4867
|
+
return prose;
|
|
4868
|
+
const table = markdownTable(rows);
|
|
4869
|
+
if (table !== null)
|
|
4870
|
+
return table;
|
|
4871
|
+
if (depth >= MARKDOWN_MAX_DEPTH) {
|
|
4872
|
+
return fencedBlock(JSON.stringify(rows, null, 2));
|
|
4873
|
+
}
|
|
4874
|
+
return rows.map((row, index) => [
|
|
4875
|
+
`${markdownHeading(depth)} ${index + 1}`,
|
|
4876
|
+
markdownObject(row, depth + 1)
|
|
4877
|
+
].join(`
|
|
4878
|
+
|
|
4879
|
+
`)).join(`
|
|
4880
|
+
|
|
4881
|
+
`);
|
|
4882
|
+
}
|
|
4883
|
+
function markdownObject(obj, depth) {
|
|
4884
|
+
const scalars = [];
|
|
4885
|
+
const blocks = [];
|
|
4886
|
+
for (const [key, value] of Object.entries(obj)) {
|
|
4887
|
+
if (value === undefined)
|
|
4888
|
+
continue;
|
|
4889
|
+
const label = markdownLabel(key);
|
|
4890
|
+
if (Array.isArray(value)) {
|
|
4891
|
+
blocks.push(`${markdownHeading(depth)} ${label}
|
|
4892
|
+
|
|
4893
|
+
${markdownRows(value, depth + 1)}`);
|
|
4894
|
+
} else if (isNonEmptyPlainObject(value)) {
|
|
4895
|
+
const nested = depth < MARKDOWN_MAX_DEPTH ? markdownObject(value, depth + 1) : fencedBlock(JSON.stringify(value, null, 2));
|
|
4896
|
+
if (nested !== "") {
|
|
4897
|
+
blocks.push(`${markdownHeading(depth)} ${label}
|
|
4898
|
+
|
|
4899
|
+
${nested}`);
|
|
4900
|
+
}
|
|
4901
|
+
} else if (typeof value === "string" && value.includes(`
|
|
4902
|
+
`)) {
|
|
4903
|
+
blocks.push(`**${label}:**
|
|
4904
|
+
|
|
4905
|
+
${fencedBlock(value)}`);
|
|
4906
|
+
} else {
|
|
4907
|
+
scalars.push(`**${label}:** ${markdownCell(value)}`);
|
|
4908
|
+
}
|
|
4909
|
+
}
|
|
4910
|
+
const sections = scalars.length > 0 ? [scalars.join(`
|
|
4911
|
+
`)] : [];
|
|
4912
|
+
sections.push(...blocks);
|
|
4913
|
+
return sections.join(`
|
|
4914
|
+
|
|
4915
|
+
`);
|
|
4916
|
+
}
|
|
4917
|
+
function extractSingleMessage(payload) {
|
|
4918
|
+
if (!isPlainRecord(payload))
|
|
4919
|
+
return null;
|
|
4920
|
+
const keys = Object.keys(payload);
|
|
4921
|
+
if (keys.length !== 1 || keys[0].toLowerCase() !== "message")
|
|
4922
|
+
return null;
|
|
4923
|
+
const value = payload[keys[0]];
|
|
4924
|
+
return typeof value === "string" ? value : null;
|
|
4925
|
+
}
|
|
4926
|
+
function markdownPayload(payload) {
|
|
4927
|
+
const message = extractSingleMessage(payload);
|
|
4928
|
+
if (message !== null)
|
|
4929
|
+
return message;
|
|
4930
|
+
if (Array.isArray(payload)) {
|
|
4931
|
+
return markdownRows(rowsWithoutPlumbing(payload), 0);
|
|
4932
|
+
}
|
|
4933
|
+
const visible = withoutPlumbing(payload);
|
|
4934
|
+
const paged = splitPagedEnvelope(visible);
|
|
4935
|
+
if (paged !== null) {
|
|
4936
|
+
const meta = markdownObject(paged.meta, 0);
|
|
4937
|
+
const rows = `${markdownHeading(0)} ${markdownLabel(paged.key)}
|
|
4938
|
+
|
|
4939
|
+
${markdownRows(rowsWithoutPlumbing(paged.rows), 1)}`;
|
|
4940
|
+
return meta === "" ? rows : `${meta}
|
|
4941
|
+
|
|
4942
|
+
${rows}`;
|
|
4943
|
+
}
|
|
4944
|
+
return markdownObject(visible, 0);
|
|
4945
|
+
}
|
|
4946
|
+
function isPaginationWorthShowing(value) {
|
|
4947
|
+
if (typeof value !== "object" || value === null)
|
|
4948
|
+
return false;
|
|
4949
|
+
const page = value;
|
|
4950
|
+
return page.HasMore === true || typeof page.Offset === "number" && page.Offset > 0;
|
|
4951
|
+
}
|
|
4952
|
+
function markdownEnvelopeNotes(data) {
|
|
4953
|
+
const envelope = data;
|
|
4954
|
+
const notes = [];
|
|
4955
|
+
const warning = envelope.Warning;
|
|
4956
|
+
if (typeof warning === "string" && warning !== "") {
|
|
4957
|
+
notes.push(`> **Warning:** ${warning}`);
|
|
4958
|
+
}
|
|
4959
|
+
const instructions = envelope.Instructions;
|
|
4960
|
+
if (typeof instructions === "string" && instructions !== "") {
|
|
4961
|
+
notes.push(`> ${instructions}`);
|
|
4962
|
+
}
|
|
4963
|
+
const pagination = envelope.Pagination;
|
|
4964
|
+
if (isPaginationWorthShowing(pagination)) {
|
|
4965
|
+
const body = markdownObject(pagination, 1);
|
|
4966
|
+
if (body !== "") {
|
|
4967
|
+
notes.push(`${markdownHeading(0)} Pagination
|
|
4968
|
+
|
|
4969
|
+
${body}`);
|
|
4970
|
+
}
|
|
4971
|
+
}
|
|
4972
|
+
const log = envelope.Log;
|
|
4973
|
+
if (typeof log === "string" && log !== "") {
|
|
4974
|
+
notes.push(`**Log:** ${log}`);
|
|
4975
|
+
}
|
|
4976
|
+
return notes;
|
|
4977
|
+
}
|
|
4978
|
+
function renderMarkdown(data) {
|
|
4979
|
+
if (data.Result !== RESULTS.Success) {
|
|
4980
|
+
const failure = data;
|
|
4981
|
+
const sections = [`**Failed:** ${failure.Message}`];
|
|
4982
|
+
if (failure.Data != null) {
|
|
4983
|
+
sections.push(markdownPayload(failure.Data));
|
|
4984
|
+
}
|
|
4985
|
+
if (failure.Instructions) {
|
|
4986
|
+
sections.push(`> ${failure.Instructions}`);
|
|
4987
|
+
}
|
|
4988
|
+
return sections.filter((section) => section !== "").join(`
|
|
4989
|
+
|
|
4990
|
+
`);
|
|
4991
|
+
}
|
|
4992
|
+
if (!("Data" in data) || data.Data == null) {
|
|
4993
|
+
return markdownObject(withoutPlumbing(data), 0);
|
|
4994
|
+
}
|
|
4995
|
+
return [markdownPayload(data.Data), ...markdownEnvelopeNotes(data)].filter((section) => section !== "").join(`
|
|
4996
|
+
|
|
4997
|
+
`);
|
|
4998
|
+
}
|
|
4752
4999
|
function toYaml(data) {
|
|
4753
5000
|
const codec = getYamlCodec();
|
|
4754
5001
|
if (!codec) {
|
|
@@ -6494,8 +6741,9 @@ class VoidApiResponse {
|
|
|
6494
6741
|
// ../sc-sdk/package.json
|
|
6495
6742
|
var package_default2 = {
|
|
6496
6743
|
name: "@uipath/sc-sdk",
|
|
6744
|
+
author: "UiPath",
|
|
6497
6745
|
license: "SEE LICENSE IN LICENSE.txt",
|
|
6498
|
-
version: "1.
|
|
6746
|
+
version: "1.203.0",
|
|
6499
6747
|
description: "SDK for the UiPath SourceControl API — connections, repositories, automation projects, solutions.",
|
|
6500
6748
|
repository: {
|
|
6501
6749
|
type: "git",
|
|
@@ -8448,16 +8696,7 @@ var resolveEnvFilePathAsync = async (envFilePath = DEFAULT_ENV_FILENAME, opts) =
|
|
|
8448
8696
|
errorMessage: location.source === "absolute" ? `Environment file not found: ${envFilePath}` : `Unable to locate environment file: ${envFilePath}. Run 'uip login' to authenticate.`
|
|
8449
8697
|
};
|
|
8450
8698
|
};
|
|
8451
|
-
var
|
|
8452
|
-
const fs2 = getFileSystem();
|
|
8453
|
-
const absolutePath = fs2.path.isAbsolute(envPath) ? envPath : fs2.path.join(fs2.env.cwd(), envPath);
|
|
8454
|
-
if (!await fs2.exists(absolutePath)) {
|
|
8455
|
-
throw new Error(`Environment file not found: ${envPath}`);
|
|
8456
|
-
}
|
|
8457
|
-
const content = await fs2.readFile(absolutePath, "utf-8");
|
|
8458
|
-
if (content === null) {
|
|
8459
|
-
throw new Error(`Environment file not found: ${envPath}`);
|
|
8460
|
-
}
|
|
8699
|
+
var parseEnvContent = (content) => {
|
|
8461
8700
|
const env = {};
|
|
8462
8701
|
for (const line of content.split(`
|
|
8463
8702
|
`)) {
|
|
@@ -8478,6 +8717,18 @@ var loadEnvFileAsync = async ({ envPath }) => {
|
|
|
8478
8717
|
}
|
|
8479
8718
|
return env;
|
|
8480
8719
|
};
|
|
8720
|
+
var loadEnvFileAsync = async ({ envPath }) => {
|
|
8721
|
+
const fs2 = getFileSystem();
|
|
8722
|
+
const absolutePath = fs2.path.isAbsolute(envPath) ? envPath : fs2.path.join(fs2.env.cwd(), envPath);
|
|
8723
|
+
if (!await fs2.exists(absolutePath)) {
|
|
8724
|
+
throw new Error(`Environment file not found: ${envPath}`);
|
|
8725
|
+
}
|
|
8726
|
+
const content = await fs2.readFile(absolutePath, "utf-8");
|
|
8727
|
+
if (content === null) {
|
|
8728
|
+
throw new Error(`Environment file not found: ${envPath}`);
|
|
8729
|
+
}
|
|
8730
|
+
return parseEnvContent(content);
|
|
8731
|
+
};
|
|
8481
8732
|
var saveEnvFileAsync = async ({
|
|
8482
8733
|
envPath,
|
|
8483
8734
|
data,
|
|
@@ -9311,8 +9562,9 @@ class VoidApiResponse2 {
|
|
|
9311
9562
|
// ../cicd-sdk/package.json
|
|
9312
9563
|
var package_default3 = {
|
|
9313
9564
|
name: "@uipath/cicd-sdk",
|
|
9565
|
+
author: "UiPath",
|
|
9314
9566
|
license: "SEE LICENSE IN LICENSE.txt",
|
|
9315
|
-
version: "1.
|
|
9567
|
+
version: "1.203.0",
|
|
9316
9568
|
description: "SDK for the UiPath StudioAdmin CICD API — pipelines, pipeline executions, partition configuration.",
|
|
9317
9569
|
repository: {
|
|
9318
9570
|
type: "git",
|
|
@@ -13162,4 +13414,4 @@ var registerCommands = async (program2) => {
|
|
|
13162
13414
|
|
|
13163
13415
|
export { Command, metadata, registerCommands };
|
|
13164
13416
|
|
|
13165
|
-
//# debugId=
|
|
13417
|
+
//# debugId=64BE22DFE4B0D7DC64756E2164756E21
|
package/dist/tool.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uipath/aops-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": "Manage UiPath StudioAdmin AOps — connections, repos, projects, solutions, pipelines, executions.",
|
|
6
7
|
"private": false,
|
|
7
8
|
"repository": {
|
|
@@ -26,5 +27,5 @@
|
|
|
26
27
|
"files": [
|
|
27
28
|
"dist"
|
|
28
29
|
],
|
|
29
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "3a42062ba731afca4595ba9aa8a80afc9667528d"
|
|
30
31
|
}
|