@uipath/api-workflow-tool 1.202.1 → 1.203.0-preview.180
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/executor-tool.js +1 -1
- package/dist/{index-5rwqj9ef.js → index-ptwe43vb.js} +2182 -212
- package/dist/index.js +4 -4
- package/dist/{node-ahdpcmnm.js → node-f2pcceya.js} +2343 -375
- package/dist/{packager-tool-4vt21dnn.js → packager-tool-6se0wnbx.js} +4 -1
- package/dist/{packager-tool-bbc3332a.js → packager-tool-htyg4jck.js} +262 -30
- package/dist/{packager-tool-m6ddy2t4.js → packager-tool-k9wheprx.js} +1 -1
- package/dist/{packager-tool-xv9anbyc.js → packager-tool-nmf1zmrz.js} +38 -17
- package/dist/packager-tool.js +2 -2
- package/dist/tool.js +4 -4
- package/package.json +3 -2
|
@@ -1065,6 +1065,9 @@ class ZipService {
|
|
|
1065
1065
|
});
|
|
1066
1066
|
return zipData;
|
|
1067
1067
|
}
|
|
1068
|
+
compressEntries(entries) {
|
|
1069
|
+
return zipSync(entries, { level: 6 });
|
|
1070
|
+
}
|
|
1068
1071
|
}
|
|
1069
1072
|
function isPluralForm(value) {
|
|
1070
1073
|
return typeof value === "object" && value !== null && "other" in value;
|
|
@@ -2358,4 +2361,4 @@ var toolsFactoryRepository = _global[REGISTRY_KEY];
|
|
|
2358
2361
|
|
|
2359
2362
|
export { Path, TemporaryStorageService, ZipService, I18nManager, translate, LogLevel, LogMessage, NugetConstants, ProjectTypes, TargetFramework, ToolErrorCodes, ToolResult, ensureContentOperateFile, NugetPackager, ProjectTool, toolsFactoryRepository };
|
|
2360
2363
|
|
|
2361
|
-
//# debugId=
|
|
2364
|
+
//# debugId=B304248572D8EF8064756E2164756E21
|
|
@@ -28005,7 +28005,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
|
|
|
28005
28005
|
var EMAIL_PATTERN = /\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}\b/g;
|
|
28006
28006
|
var JWT_PATTERN = /\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+/g;
|
|
28007
28007
|
var LONG_TOKEN_PATTERN = /\b[A-Za-z0-9_-]{40,}\b/g;
|
|
28008
|
-
var PADDED_BASE64_PATTERN = /[A-Za-z0-9+/]{16,}={1,2}(?![A-Za-z0-9+/=])/g;
|
|
28008
|
+
var PADDED_BASE64_PATTERN = /(?<![A-Za-z0-9+/])[A-Za-z0-9+/]{16,}={1,2}(?![A-Za-z0-9+/=])/g;
|
|
28009
28009
|
var BASE64_WITH_PLUS_PATTERN = /[A-Za-z0-9+/]{40,}/g;
|
|
28010
28010
|
var USER_HOME_PATTERN = /(?<![A-Za-z0-9._-])([/\\])(Users|home|Profiles)([/\\])([^/\\]+)/gi;
|
|
28011
28011
|
var UNC_PATH_PATTERN = /(^|[\s"'<>|=,;([{])(\\\\[^\s"'<>|]+)/g;
|
|
@@ -28052,7 +28052,7 @@ var QUOTED_LITERAL_PATTERN = new RegExp([
|
|
|
28052
28052
|
`(?<![A-Za-z0-9])"(?:[^\\
|
|
28053
28053
|
]|\\.){2,${QUOTED_LITERAL_MAX_SPAN}}?"(?![A-Za-z0-9])`
|
|
28054
28054
|
].join("|"), "g");
|
|
28055
|
-
var JSON_BODY_PATTERN = /[{[][^{}[\]]*[:,][^{}[\]]*[\]}]/g;
|
|
28055
|
+
var JSON_BODY_PATTERN = /[{[][^{}[\]:,]*[:,][^{}[\]]*[\]}]/g;
|
|
28056
28056
|
var COLLAPSED_BODY = "{…}";
|
|
28057
28057
|
var COLLAPSED_BODY_MARKER = "\x01body\x01";
|
|
28058
28058
|
var MAX_BODY_NESTING = 8;
|
|
@@ -28067,10 +28067,13 @@ function collapseJsonBodies(text) {
|
|
|
28067
28067
|
}
|
|
28068
28068
|
return out.split(COLLAPSED_BODY_MARKER).join(COLLAPSED_BODY);
|
|
28069
28069
|
}
|
|
28070
|
-
var TRAILING_PROSE_PUNCT =
|
|
28070
|
+
var TRAILING_PROSE_PUNCT = `.,;:!?)]}>'"`;
|
|
28071
28071
|
function peelTrailingPunctuation(match) {
|
|
28072
|
-
|
|
28073
|
-
|
|
28072
|
+
let end = match.length;
|
|
28073
|
+
while (end > 0 && TRAILING_PROSE_PUNCT.includes(match[end - 1])) {
|
|
28074
|
+
end -= 1;
|
|
28075
|
+
}
|
|
28076
|
+
return [match.slice(0, end), match.slice(end)];
|
|
28074
28077
|
}
|
|
28075
28078
|
function redactUrl(raw) {
|
|
28076
28079
|
try {
|
|
@@ -28747,7 +28750,8 @@ function readRegistryValue(keyPath, valueName) {
|
|
|
28747
28750
|
}
|
|
28748
28751
|
const [error, output] = catchError(() => execFileSync("reg", ["query", keyPath, "/v", valueName], {
|
|
28749
28752
|
encoding: "utf-8",
|
|
28750
|
-
stdio: ["pipe", "pipe", "pipe"]
|
|
28753
|
+
stdio: ["pipe", "pipe", "pipe"],
|
|
28754
|
+
windowsHide: true
|
|
28751
28755
|
}));
|
|
28752
28756
|
if (error) {
|
|
28753
28757
|
return "";
|
|
@@ -29479,28 +29483,32 @@ function isPlainRecord(value) {
|
|
|
29479
29483
|
const prototype = Object.getPrototypeOf(value);
|
|
29480
29484
|
return prototype === Object.prototype || prototype === null;
|
|
29481
29485
|
}
|
|
29482
|
-
function
|
|
29486
|
+
function splitPagedEnvelope(value) {
|
|
29483
29487
|
if (Array.isArray(value) || !isPlainRecord(value))
|
|
29484
29488
|
return null;
|
|
29485
|
-
const entries = Object.
|
|
29489
|
+
const entries = Object.entries(value);
|
|
29486
29490
|
if (entries.length === 0)
|
|
29487
29491
|
return null;
|
|
29488
|
-
let
|
|
29489
|
-
|
|
29490
|
-
for (const entry of entries) {
|
|
29492
|
+
let found = null;
|
|
29493
|
+
const meta = Object.create(null);
|
|
29494
|
+
for (const [key, entry] of entries) {
|
|
29491
29495
|
if (Array.isArray(entry)) {
|
|
29492
|
-
if (
|
|
29496
|
+
if (found !== null)
|
|
29493
29497
|
return null;
|
|
29494
|
-
|
|
29498
|
+
found = { key, rows: entry };
|
|
29495
29499
|
} else if (entry !== null && typeof entry === "object") {
|
|
29496
29500
|
return null;
|
|
29497
29501
|
} else {
|
|
29498
|
-
|
|
29502
|
+
meta[key] = entry;
|
|
29499
29503
|
}
|
|
29500
29504
|
}
|
|
29501
|
-
if (
|
|
29505
|
+
if (found === null || Object.keys(meta).length === 0)
|
|
29502
29506
|
return null;
|
|
29503
|
-
return
|
|
29507
|
+
return { ...found, meta };
|
|
29508
|
+
}
|
|
29509
|
+
function extractPagedRows(value) {
|
|
29510
|
+
const paged = splitPagedEnvelope(value);
|
|
29511
|
+
return paged === null ? null : paged.rows;
|
|
29504
29512
|
}
|
|
29505
29513
|
function toLowerCamelCaseKey(key) {
|
|
29506
29514
|
if (!key)
|
|
@@ -29604,6 +29612,9 @@ function printOutput(data, format = "json", logFn, asciiSafe = false, tableRowSt
|
|
|
29604
29612
|
}
|
|
29605
29613
|
break;
|
|
29606
29614
|
}
|
|
29615
|
+
case "markdown":
|
|
29616
|
+
logFn(renderMarkdown(data));
|
|
29617
|
+
break;
|
|
29607
29618
|
default: {
|
|
29608
29619
|
const hasData = "Data" in data && data.Data != null;
|
|
29609
29620
|
const pagedRows = hasData ? extractPagedRows(data.Data) : null;
|
|
@@ -29628,6 +29639,10 @@ function logOutput(data, format = "json", tableRowStyle) {
|
|
|
29628
29639
|
printOutput(data, format, (msg) => sink.writeOut(`${msg}
|
|
29629
29640
|
`), needsAsciiSafeJson(sink), styleFn);
|
|
29630
29641
|
}
|
|
29642
|
+
var PLUMBING_KEYS = new Set(["code", "log"]);
|
|
29643
|
+
function isPlumbingKey(key) {
|
|
29644
|
+
return PLUMBING_KEYS.has(key.toLowerCase());
|
|
29645
|
+
}
|
|
29631
29646
|
function cellToString(val) {
|
|
29632
29647
|
return val != null && typeof val === "object" ? JSON.stringify(val) : String(val ?? "");
|
|
29633
29648
|
}
|
|
@@ -29643,7 +29658,7 @@ function wrapText(text, width) {
|
|
|
29643
29658
|
function printTable(data, logFn, externalLogValue, tableRowStyle) {
|
|
29644
29659
|
if (data.length === 0)
|
|
29645
29660
|
return;
|
|
29646
|
-
const keys = Object.keys(data[0]).filter((key) => !
|
|
29661
|
+
const keys = Object.keys(data[0]).filter((key) => !isPlumbingKey(key));
|
|
29647
29662
|
const maxWidths = keys.map((key) => Math.max(key.length, ...data.map((item) => cellToString(item[key]).length)));
|
|
29648
29663
|
const header = keys.map((key, i) => key.padEnd(maxWidths[i])).join(" | ");
|
|
29649
29664
|
logFn(header);
|
|
@@ -29665,7 +29680,7 @@ function isNonEmptyPlainObject(value) {
|
|
|
29665
29680
|
}
|
|
29666
29681
|
var NESTED_INDENT = " ";
|
|
29667
29682
|
function printVerticalTable(data, logFn = console.log, externalLogValue) {
|
|
29668
|
-
const keys = Object.keys(data).filter((key) => !
|
|
29683
|
+
const keys = Object.keys(data).filter((key) => !isPlumbingKey(key));
|
|
29669
29684
|
if (keys.length === 0)
|
|
29670
29685
|
return;
|
|
29671
29686
|
const isBlockValue = (value) => isPlainObjectArray(value) || isNonEmptyPlainObject(value);
|
|
@@ -29696,7 +29711,7 @@ function printVerticalTable(data, logFn = console.log, externalLogValue) {
|
|
|
29696
29711
|
function printResizableTable(data, logFn = console.log, externalLogValue, availableWidth, tableRowStyle) {
|
|
29697
29712
|
if (data.length === 0)
|
|
29698
29713
|
return;
|
|
29699
|
-
const keys = Object.keys(data[0]).filter((key) => !
|
|
29714
|
+
const keys = Object.keys(data[0]).filter((key) => !isPlumbingKey(key));
|
|
29700
29715
|
if (keys.length === 0)
|
|
29701
29716
|
return;
|
|
29702
29717
|
if (!process.stdout.isTTY) {
|
|
@@ -29770,6 +29785,220 @@ function printResizableTable(data, logFn = console.log, externalLogValue, availa
|
|
|
29770
29785
|
logFn(`Log: ${externalLogValue}`);
|
|
29771
29786
|
}
|
|
29772
29787
|
}
|
|
29788
|
+
var MARKDOWN_MAX_CELL = 200;
|
|
29789
|
+
var MARKDOWN_MAX_DEPTH = 3;
|
|
29790
|
+
function markdownHeading(depth) {
|
|
29791
|
+
return "#".repeat(Math.min(3 + depth, 6));
|
|
29792
|
+
}
|
|
29793
|
+
var BACKTICK_RUN = /`+/g;
|
|
29794
|
+
function fencedBlock(text) {
|
|
29795
|
+
const first = text.trimStart()[0];
|
|
29796
|
+
const language = first === "<" ? "xml" : first === "{" || first === "[" ? "json" : "";
|
|
29797
|
+
const longestRun = Math.max(0, ...Array.from(text.matchAll(BACKTICK_RUN), (match) => match[0].length));
|
|
29798
|
+
const fence = "`".repeat(Math.max(3, longestRun + 1));
|
|
29799
|
+
return `${fence}${language}
|
|
29800
|
+
${text}
|
|
29801
|
+
${fence}`;
|
|
29802
|
+
}
|
|
29803
|
+
function collapseNewlineRuns(text) {
|
|
29804
|
+
return text.split(/(\s+)/).map((part, index) => index % 2 === 1 && part.includes(`
|
|
29805
|
+
`) ? " " : part).join("");
|
|
29806
|
+
}
|
|
29807
|
+
function markdownCell(value) {
|
|
29808
|
+
const text = value instanceof Date ? value.toISOString() : cellToString(value);
|
|
29809
|
+
return collapseNewlineRuns(text).replace(/\|/g, "\\|");
|
|
29810
|
+
}
|
|
29811
|
+
function markdownLabel(key) {
|
|
29812
|
+
return collapseNewlineRuns(key).replace(/[\\`*|]/g, "\\$&");
|
|
29813
|
+
}
|
|
29814
|
+
function withoutPlumbing(record) {
|
|
29815
|
+
const kept = Object.create(null);
|
|
29816
|
+
for (const [key, value] of Object.entries(record)) {
|
|
29817
|
+
if (!isPlumbingKey(key))
|
|
29818
|
+
kept[key] = value;
|
|
29819
|
+
}
|
|
29820
|
+
return kept;
|
|
29821
|
+
}
|
|
29822
|
+
function rowsWithoutPlumbing(rows) {
|
|
29823
|
+
return rows.map((row) => isPlainRecord(row) ? withoutPlumbing(row) : row);
|
|
29824
|
+
}
|
|
29825
|
+
function markdownTable(rows) {
|
|
29826
|
+
const columns = [];
|
|
29827
|
+
const seen = new Set;
|
|
29828
|
+
for (const row of rows) {
|
|
29829
|
+
for (const key of Object.keys(row)) {
|
|
29830
|
+
if (!seen.has(key)) {
|
|
29831
|
+
seen.add(key);
|
|
29832
|
+
columns.push(key);
|
|
29833
|
+
}
|
|
29834
|
+
}
|
|
29835
|
+
}
|
|
29836
|
+
if (columns.length === 0)
|
|
29837
|
+
return null;
|
|
29838
|
+
const cells = rows.map((row) => columns.map((key) => markdownCell(row[key])));
|
|
29839
|
+
if (cells.some((row) => row.some((c) => c.length > MARKDOWN_MAX_CELL))) {
|
|
29840
|
+
return null;
|
|
29841
|
+
}
|
|
29842
|
+
return [
|
|
29843
|
+
`| ${columns.map(markdownLabel).join(" | ")} |`,
|
|
29844
|
+
`| ${columns.map(() => "---").join(" | ")} |`,
|
|
29845
|
+
...cells.map((row) => `| ${row.join(" | ")} |`)
|
|
29846
|
+
].join(`
|
|
29847
|
+
`);
|
|
29848
|
+
}
|
|
29849
|
+
function extractMessageSequence(rows) {
|
|
29850
|
+
const messages = [];
|
|
29851
|
+
for (const row of rows) {
|
|
29852
|
+
const message = extractSingleMessage(row);
|
|
29853
|
+
if (message === null)
|
|
29854
|
+
return null;
|
|
29855
|
+
messages.push(message);
|
|
29856
|
+
}
|
|
29857
|
+
return messages.join(`
|
|
29858
|
+
|
|
29859
|
+
`);
|
|
29860
|
+
}
|
|
29861
|
+
function markdownRows(rows, depth) {
|
|
29862
|
+
if (rows.length === 0)
|
|
29863
|
+
return "(none)";
|
|
29864
|
+
if (!isPlainObjectArray(rows)) {
|
|
29865
|
+
return rows.map((item) => `- ${markdownCell(item)}`).join(`
|
|
29866
|
+
`);
|
|
29867
|
+
}
|
|
29868
|
+
const prose = extractMessageSequence(rows);
|
|
29869
|
+
if (prose !== null)
|
|
29870
|
+
return prose;
|
|
29871
|
+
const table = markdownTable(rows);
|
|
29872
|
+
if (table !== null)
|
|
29873
|
+
return table;
|
|
29874
|
+
if (depth >= MARKDOWN_MAX_DEPTH) {
|
|
29875
|
+
return fencedBlock(JSON.stringify(rows, null, 2));
|
|
29876
|
+
}
|
|
29877
|
+
return rows.map((row, index) => [
|
|
29878
|
+
`${markdownHeading(depth)} ${index + 1}`,
|
|
29879
|
+
markdownObject(row, depth + 1)
|
|
29880
|
+
].join(`
|
|
29881
|
+
|
|
29882
|
+
`)).join(`
|
|
29883
|
+
|
|
29884
|
+
`);
|
|
29885
|
+
}
|
|
29886
|
+
function markdownObject(obj, depth) {
|
|
29887
|
+
const scalars = [];
|
|
29888
|
+
const blocks = [];
|
|
29889
|
+
for (const [key, value] of Object.entries(obj)) {
|
|
29890
|
+
if (value === undefined)
|
|
29891
|
+
continue;
|
|
29892
|
+
const label = markdownLabel(key);
|
|
29893
|
+
if (Array.isArray(value)) {
|
|
29894
|
+
blocks.push(`${markdownHeading(depth)} ${label}
|
|
29895
|
+
|
|
29896
|
+
${markdownRows(value, depth + 1)}`);
|
|
29897
|
+
} else if (isNonEmptyPlainObject(value)) {
|
|
29898
|
+
const nested = depth < MARKDOWN_MAX_DEPTH ? markdownObject(value, depth + 1) : fencedBlock(JSON.stringify(value, null, 2));
|
|
29899
|
+
if (nested !== "") {
|
|
29900
|
+
blocks.push(`${markdownHeading(depth)} ${label}
|
|
29901
|
+
|
|
29902
|
+
${nested}`);
|
|
29903
|
+
}
|
|
29904
|
+
} else if (typeof value === "string" && value.includes(`
|
|
29905
|
+
`)) {
|
|
29906
|
+
blocks.push(`**${label}:**
|
|
29907
|
+
|
|
29908
|
+
${fencedBlock(value)}`);
|
|
29909
|
+
} else {
|
|
29910
|
+
scalars.push(`**${label}:** ${markdownCell(value)}`);
|
|
29911
|
+
}
|
|
29912
|
+
}
|
|
29913
|
+
const sections = scalars.length > 0 ? [scalars.join(`
|
|
29914
|
+
`)] : [];
|
|
29915
|
+
sections.push(...blocks);
|
|
29916
|
+
return sections.join(`
|
|
29917
|
+
|
|
29918
|
+
`);
|
|
29919
|
+
}
|
|
29920
|
+
function extractSingleMessage(payload) {
|
|
29921
|
+
if (!isPlainRecord(payload))
|
|
29922
|
+
return null;
|
|
29923
|
+
const keys = Object.keys(payload);
|
|
29924
|
+
if (keys.length !== 1 || keys[0].toLowerCase() !== "message")
|
|
29925
|
+
return null;
|
|
29926
|
+
const value = payload[keys[0]];
|
|
29927
|
+
return typeof value === "string" ? value : null;
|
|
29928
|
+
}
|
|
29929
|
+
function markdownPayload(payload) {
|
|
29930
|
+
const message = extractSingleMessage(payload);
|
|
29931
|
+
if (message !== null)
|
|
29932
|
+
return message;
|
|
29933
|
+
if (Array.isArray(payload)) {
|
|
29934
|
+
return markdownRows(rowsWithoutPlumbing(payload), 0);
|
|
29935
|
+
}
|
|
29936
|
+
const visible = withoutPlumbing(payload);
|
|
29937
|
+
const paged = splitPagedEnvelope(visible);
|
|
29938
|
+
if (paged !== null) {
|
|
29939
|
+
const meta = markdownObject(paged.meta, 0);
|
|
29940
|
+
const rows = `${markdownHeading(0)} ${markdownLabel(paged.key)}
|
|
29941
|
+
|
|
29942
|
+
${markdownRows(rowsWithoutPlumbing(paged.rows), 1)}`;
|
|
29943
|
+
return meta === "" ? rows : `${meta}
|
|
29944
|
+
|
|
29945
|
+
${rows}`;
|
|
29946
|
+
}
|
|
29947
|
+
return markdownObject(visible, 0);
|
|
29948
|
+
}
|
|
29949
|
+
function isPaginationWorthShowing(value) {
|
|
29950
|
+
if (typeof value !== "object" || value === null)
|
|
29951
|
+
return false;
|
|
29952
|
+
const page = value;
|
|
29953
|
+
return page.HasMore === true || typeof page.Offset === "number" && page.Offset > 0;
|
|
29954
|
+
}
|
|
29955
|
+
function markdownEnvelopeNotes(data) {
|
|
29956
|
+
const envelope = data;
|
|
29957
|
+
const notes = [];
|
|
29958
|
+
const warning = envelope.Warning;
|
|
29959
|
+
if (typeof warning === "string" && warning !== "") {
|
|
29960
|
+
notes.push(`> **Warning:** ${warning}`);
|
|
29961
|
+
}
|
|
29962
|
+
const instructions = envelope.Instructions;
|
|
29963
|
+
if (typeof instructions === "string" && instructions !== "") {
|
|
29964
|
+
notes.push(`> ${instructions}`);
|
|
29965
|
+
}
|
|
29966
|
+
const pagination = envelope.Pagination;
|
|
29967
|
+
if (isPaginationWorthShowing(pagination)) {
|
|
29968
|
+
const body = markdownObject(pagination, 1);
|
|
29969
|
+
if (body !== "") {
|
|
29970
|
+
notes.push(`${markdownHeading(0)} Pagination
|
|
29971
|
+
|
|
29972
|
+
${body}`);
|
|
29973
|
+
}
|
|
29974
|
+
}
|
|
29975
|
+
const log = envelope.Log;
|
|
29976
|
+
if (typeof log === "string" && log !== "") {
|
|
29977
|
+
notes.push(`**Log:** ${log}`);
|
|
29978
|
+
}
|
|
29979
|
+
return notes;
|
|
29980
|
+
}
|
|
29981
|
+
function renderMarkdown(data) {
|
|
29982
|
+
if (data.Result !== RESULTS.Success) {
|
|
29983
|
+
const failure = data;
|
|
29984
|
+
const sections = [`**Failed:** ${failure.Message}`];
|
|
29985
|
+
if (failure.Data != null) {
|
|
29986
|
+
sections.push(markdownPayload(failure.Data));
|
|
29987
|
+
}
|
|
29988
|
+
if (failure.Instructions) {
|
|
29989
|
+
sections.push(`> ${failure.Instructions}`);
|
|
29990
|
+
}
|
|
29991
|
+
return sections.filter((section) => section !== "").join(`
|
|
29992
|
+
|
|
29993
|
+
`);
|
|
29994
|
+
}
|
|
29995
|
+
if (!("Data" in data) || data.Data == null) {
|
|
29996
|
+
return markdownObject(withoutPlumbing(data), 0);
|
|
29997
|
+
}
|
|
29998
|
+
return [markdownPayload(data.Data), ...markdownEnvelopeNotes(data)].filter((section) => section !== "").join(`
|
|
29999
|
+
|
|
30000
|
+
`);
|
|
30001
|
+
}
|
|
29773
30002
|
function toYaml(data) {
|
|
29774
30003
|
const codec = getYamlCodec();
|
|
29775
30004
|
if (!codec) {
|
|
@@ -31604,16 +31833,7 @@ var resolveEnvFilePathAsync = async (envFilePath = DEFAULT_ENV_FILENAME, opts) =
|
|
|
31604
31833
|
errorMessage: location.source === "absolute" ? `Environment file not found: ${envFilePath}` : `Unable to locate environment file: ${envFilePath}. Run 'uip login' to authenticate.`
|
|
31605
31834
|
};
|
|
31606
31835
|
};
|
|
31607
|
-
var
|
|
31608
|
-
const fs2 = getFileSystem();
|
|
31609
|
-
const absolutePath = fs2.path.isAbsolute(envPath) ? envPath : fs2.path.join(fs2.env.cwd(), envPath);
|
|
31610
|
-
if (!await fs2.exists(absolutePath)) {
|
|
31611
|
-
throw new Error(`Environment file not found: ${envPath}`);
|
|
31612
|
-
}
|
|
31613
|
-
const content = await fs2.readFile(absolutePath, "utf-8");
|
|
31614
|
-
if (content === null) {
|
|
31615
|
-
throw new Error(`Environment file not found: ${envPath}`);
|
|
31616
|
-
}
|
|
31836
|
+
var parseEnvContent = (content) => {
|
|
31617
31837
|
const env = {};
|
|
31618
31838
|
for (const line of content.split(`
|
|
31619
31839
|
`)) {
|
|
@@ -31634,6 +31854,18 @@ var loadEnvFileAsync = async ({ envPath }) => {
|
|
|
31634
31854
|
}
|
|
31635
31855
|
return env;
|
|
31636
31856
|
};
|
|
31857
|
+
var loadEnvFileAsync = async ({ envPath }) => {
|
|
31858
|
+
const fs2 = getFileSystem();
|
|
31859
|
+
const absolutePath = fs2.path.isAbsolute(envPath) ? envPath : fs2.path.join(fs2.env.cwd(), envPath);
|
|
31860
|
+
if (!await fs2.exists(absolutePath)) {
|
|
31861
|
+
throw new Error(`Environment file not found: ${envPath}`);
|
|
31862
|
+
}
|
|
31863
|
+
const content = await fs2.readFile(absolutePath, "utf-8");
|
|
31864
|
+
if (content === null) {
|
|
31865
|
+
throw new Error(`Environment file not found: ${envPath}`);
|
|
31866
|
+
}
|
|
31867
|
+
return parseEnvContent(content);
|
|
31868
|
+
};
|
|
31637
31869
|
var saveEnvFileAsync = async ({
|
|
31638
31870
|
envPath,
|
|
31639
31871
|
data,
|
|
@@ -32787,4 +33019,4 @@ Running workflow: ${fs2.path.basename(resolvedPath)}`);
|
|
|
32787
33019
|
|
|
32788
33020
|
export { getFileSystem, catchError, logger, RESULTS, SuccessOutput, FailureOutput, OutputFormatter, Command, processContext, registerPackageMetadataOptions, mapPackageMetadataOptions, getSdkUserAgentToken, addSdkUserAgentHeader, installSdkUserAgentHeader, unsupportedSolutionProjectType, getLoginStatusAsync, getAuthContext, WorkflowRunService };
|
|
32789
33021
|
|
|
32790
|
-
//# debugId=
|
|
33022
|
+
//# debugId=755819A287F9A86164756E2164756E21
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
ToolResult,
|
|
11
11
|
ensureContentOperateFile,
|
|
12
12
|
translate
|
|
13
|
-
} from "./packager-tool-
|
|
13
|
+
} from "./packager-tool-6se0wnbx.js";
|
|
14
14
|
// ../packager/packager-tool-apiworkflow/src/i18n/locales/de.json
|
|
15
15
|
var de_default = {
|
|
16
16
|
toolApiworkflow: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
registerPackagerFactories
|
|
3
|
-
} from "./packager-tool-
|
|
3
|
+
} from "./packager-tool-k9wheprx.js";
|
|
4
4
|
import {
|
|
5
5
|
FailureOutput,
|
|
6
6
|
OutputFormatter,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
processContext,
|
|
20
20
|
registerPackageMetadataOptions,
|
|
21
21
|
unsupportedSolutionProjectType
|
|
22
|
-
} from "./packager-tool-
|
|
22
|
+
} from "./packager-tool-htyg4jck.js";
|
|
23
23
|
import {
|
|
24
24
|
yaml
|
|
25
25
|
} from "./packager-tool-d3w0wn6k.js";
|
|
@@ -7153,8 +7153,9 @@ var require__2020 = __commonJS(function(exports, module) {
|
|
|
7153
7153
|
// package.json
|
|
7154
7154
|
var package_default = {
|
|
7155
7155
|
name: "@uipath/api-workflow-tool",
|
|
7156
|
+
author: "UiPath",
|
|
7156
7157
|
license: "SEE LICENSE IN LICENSE.txt",
|
|
7157
|
-
version: "1.
|
|
7158
|
+
version: "1.203.0-preview.180",
|
|
7158
7159
|
description: "Run UiPath API Workflows locally.",
|
|
7159
7160
|
private: false,
|
|
7160
7161
|
repository: {
|
|
@@ -7735,8 +7736,9 @@ class TextApiResponse {
|
|
|
7735
7736
|
// ../integrationservice-sdk/package.json
|
|
7736
7737
|
var package_default2 = {
|
|
7737
7738
|
name: "@uipath/integrationservice-sdk",
|
|
7739
|
+
author: "UiPath",
|
|
7738
7740
|
license: "SEE LICENSE IN LICENSE.txt",
|
|
7739
|
-
version: "1.
|
|
7741
|
+
version: "1.203.0-preview.180",
|
|
7740
7742
|
repository: {
|
|
7741
7743
|
type: "git",
|
|
7742
7744
|
url: "https://github.com/UiPath/cli.git",
|
|
@@ -14368,7 +14370,7 @@ Subcommands:
|
|
|
14368
14370
|
// src/commands/packager-shared.ts
|
|
14369
14371
|
async function createPackager() {
|
|
14370
14372
|
registerPackagerFactories();
|
|
14371
|
-
const { createNodeProjectPackager } = await import("./node-
|
|
14373
|
+
const { createNodeProjectPackager } = await import("./node-f2pcceya.js");
|
|
14372
14374
|
return await createNodeProjectPackager({
|
|
14373
14375
|
logHandler: logger.handleLog
|
|
14374
14376
|
});
|
|
@@ -14391,7 +14393,7 @@ async function setupProject(packager, projectPath) {
|
|
|
14391
14393
|
return packager.setupAsync(absPath);
|
|
14392
14394
|
}
|
|
14393
14395
|
async function buildBaseOptions() {
|
|
14394
|
-
const { ProjectPackOptions } = await import("./index-
|
|
14396
|
+
const { ProjectPackOptions } = await import("./index-ptwe43vb.js");
|
|
14395
14397
|
const sdkLogLevelMap = {
|
|
14396
14398
|
[0 /* DEBUG */]: "Debug" /* Debug */,
|
|
14397
14399
|
[1 /* INFO */]: "Information" /* Info */,
|
|
@@ -14686,8 +14688,9 @@ function querystringSingleKey3(key, value, keyPrefix = "") {
|
|
|
14686
14688
|
// ../solution-sdk/package.json
|
|
14687
14689
|
var package_default3 = {
|
|
14688
14690
|
name: "@uipath/solution-sdk",
|
|
14691
|
+
author: "UiPath",
|
|
14689
14692
|
license: "SEE LICENSE IN LICENSE.txt",
|
|
14690
|
-
version: "1.
|
|
14693
|
+
version: "1.203.0-preview.180",
|
|
14691
14694
|
repository: {
|
|
14692
14695
|
type: "git",
|
|
14693
14696
|
url: "https://github.com/UiPath/cli.git",
|
|
@@ -14726,7 +14729,7 @@ var package_default3 = {
|
|
|
14726
14729
|
],
|
|
14727
14730
|
private: false,
|
|
14728
14731
|
scripts: {
|
|
14729
|
-
build: "bun build ./src/index.ts ./src/resources/index.ts ./src/solution-auth.ts --outdir dist --format esm --target node --sourcemap=linked && bun build ./src/scripts/generate-sdk.ts --outdir dist/scripts --format esm --target node --sourcemap=linked && tsc -p tsconfig.build.json --noCheck",
|
|
14732
|
+
build: "bun build ./src/index.ts ./src/resources/index.ts ./src/solution-auth.ts --outdir dist --format esm --target node --splitting --sourcemap=linked && bun build ./src/scripts/generate-sdk.ts --outdir dist/scripts --format esm --target node --sourcemap=linked && tsc -p tsconfig.build.json --noCheck",
|
|
14730
14733
|
generate: "bun run src/scripts/generate-sdk.ts",
|
|
14731
14734
|
lint: "biome check .",
|
|
14732
14735
|
test: "vitest run",
|
|
@@ -14738,7 +14741,7 @@ var package_default3 = {
|
|
|
14738
14741
|
"@uipath/common": "workspace:*",
|
|
14739
14742
|
"@uipath/filesystem": "workspace:*",
|
|
14740
14743
|
"@uipath/orchestrator-sdk": "workspace:*",
|
|
14741
|
-
"@uipath/resource-builder-sdk": "
|
|
14744
|
+
"@uipath/resource-builder-sdk": "2025.11.0-alpha5891-4020",
|
|
14742
14745
|
"@uipath/solutionpackager-tool-core": "workspace:*",
|
|
14743
14746
|
"@uipath/studioweb-sdk": "workspace:*",
|
|
14744
14747
|
"@types/node": "^25.5.2",
|
|
@@ -16426,9 +16429,25 @@ var ACTIVITY_REQUIRED_KEYS = {
|
|
|
16426
16429
|
};
|
|
16427
16430
|
var VALID_EXPRESSION_LANGUAGES = ["javascript"];
|
|
16428
16431
|
var VALID_EVALUATE_MODES = ["strict"];
|
|
16429
|
-
var
|
|
16430
|
-
|
|
16431
|
-
|
|
16432
|
+
var schemaValidators;
|
|
16433
|
+
function compiledSchemaValidators() {
|
|
16434
|
+
if (schemaValidators) {
|
|
16435
|
+
return schemaValidators;
|
|
16436
|
+
}
|
|
16437
|
+
const ajv = new import__2020.default({ allErrors: true, strict: false });
|
|
16438
|
+
const [error, compiled] = catchError(() => ({
|
|
16439
|
+
workflow: ajv.compile(apiwf_schema_default),
|
|
16440
|
+
essentialConfig: ajv.compile(essential_configuration_schema_default)
|
|
16441
|
+
}));
|
|
16442
|
+
if (error) {
|
|
16443
|
+
if (error instanceof EvalError) {
|
|
16444
|
+
throw new Error("Validating an API Workflow compiles its JSON schema into generated code, and this host's Content Security Policy does not allow that ('unsafe-eval'). Run `uip api-workflow validate` from the desktop CLI.", { cause: error });
|
|
16445
|
+
}
|
|
16446
|
+
throw error;
|
|
16447
|
+
}
|
|
16448
|
+
schemaValidators = compiled;
|
|
16449
|
+
return compiled;
|
|
16450
|
+
}
|
|
16432
16451
|
function formatAjvError(err) {
|
|
16433
16452
|
switch (err.keyword) {
|
|
16434
16453
|
case "additionalProperties":
|
|
@@ -16725,9 +16744,10 @@ function validateConnectorConfiguration(task, taskName, taskPath, issues) {
|
|
|
16725
16744
|
});
|
|
16726
16745
|
return;
|
|
16727
16746
|
}
|
|
16728
|
-
const
|
|
16747
|
+
const { essentialConfig } = compiledSchemaValidators();
|
|
16748
|
+
const valid = essentialConfig(essential);
|
|
16729
16749
|
if (!valid) {
|
|
16730
|
-
for (const err of
|
|
16750
|
+
for (const err of essentialConfig.errors ?? []) {
|
|
16731
16751
|
issues.push({
|
|
16732
16752
|
path: `${taskPath}/metadata/configuration/essentialConfiguration${err.instancePath}`,
|
|
16733
16753
|
message: `Connector task '${taskName}': essentialConfiguration ${formatAjvError(err)}`,
|
|
@@ -16820,9 +16840,10 @@ Validating: ${absolutePath}
|
|
|
16820
16840
|
]
|
|
16821
16841
|
};
|
|
16822
16842
|
}
|
|
16823
|
-
const
|
|
16843
|
+
const { workflow } = compiledSchemaValidators();
|
|
16844
|
+
const valid = workflow(parsed);
|
|
16824
16845
|
if (!valid) {
|
|
16825
|
-
issues.push(...ajvErrorsToValidationIssues(
|
|
16846
|
+
issues.push(...ajvErrorsToValidationIssues(workflow.errors));
|
|
16826
16847
|
}
|
|
16827
16848
|
issues.push(...semanticValidation(parsed));
|
|
16828
16849
|
return {
|
|
@@ -16884,4 +16905,4 @@ var registerCommands = async (program) => {
|
|
|
16884
16905
|
|
|
16885
16906
|
export { metadata, registerCommands };
|
|
16886
16907
|
|
|
16887
|
-
//# debugId=
|
|
16908
|
+
//# debugId=ADCE2BBF6764D2CD64756E2164756E21
|
package/dist/packager-tool.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
registerPackagerFactories
|
|
3
|
-
} from "./packager-tool-
|
|
4
|
-
import"./packager-tool-
|
|
3
|
+
} from "./packager-tool-k9wheprx.js";
|
|
4
|
+
import"./packager-tool-6se0wnbx.js";
|
|
5
5
|
import"./packager-tool-1de529jm.js";
|
|
6
6
|
export {
|
|
7
7
|
registerPackagerFactories
|
package/dist/tool.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
metadata,
|
|
3
3
|
registerCommands
|
|
4
|
-
} from "./packager-tool-
|
|
5
|
-
import"./packager-tool-
|
|
6
|
-
import"./packager-tool-
|
|
7
|
-
import"./packager-tool-
|
|
4
|
+
} from "./packager-tool-nmf1zmrz.js";
|
|
5
|
+
import"./packager-tool-k9wheprx.js";
|
|
6
|
+
import"./packager-tool-6se0wnbx.js";
|
|
7
|
+
import"./packager-tool-htyg4jck.js";
|
|
8
8
|
import"./packager-tool-d3w0wn6k.js";
|
|
9
9
|
import"./packager-tool-1de529jm.js";
|
|
10
10
|
export {
|
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uipath/api-workflow-tool",
|
|
3
|
+
"author": "UiPath",
|
|
3
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
4
|
-
"version": "1.
|
|
5
|
+
"version": "1.203.0-preview.180",
|
|
5
6
|
"description": "Run UiPath API Workflows locally.",
|
|
6
7
|
"private": false,
|
|
7
8
|
"repository": {
|
|
@@ -25,5 +26,5 @@
|
|
|
25
26
|
"files": [
|
|
26
27
|
"dist"
|
|
27
28
|
],
|
|
28
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "4e0a51e3ab2c9d89afd3d35a7b087a7fa58133a0"
|
|
29
30
|
}
|