@uipath/tasks-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 +66 -1
- package/dist/{folder-picker-interactive-gyxze8wq.js → folder-picker-interactive-g7r2c8ct.js} +2 -2
- package/dist/{folder-resolver-66p6b3jy.js → folder-resolver-v3hx6eqb.js} +2 -2
- package/dist/index.js +2 -2
- package/dist/{tool-qhy72z2y.js → tool-6ykqbeks.js} +4 -3
- package/dist/{tool-fqszw775.js → tool-pbamehqj.js} +282 -33
- package/dist/{tool-4j2rwskk.js → tool-x9nfv7d0.js} +7 -6
- package/dist/tool.js +2 -2
- package/package.json +3 -2
|
@@ -5,11 +5,12 @@ compiled into its `dist/` output rather than installed alongside it.
|
|
|
5
5
|
Their licences and copyright notices are reproduced here in full, as
|
|
6
6
|
those licences require.
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
34 bundled dependencies:
|
|
9
9
|
|
|
10
10
|
- @inquirer/ansi@2.0.7 — MIT
|
|
11
11
|
- @inquirer/core@11.2.1 — MIT
|
|
12
12
|
- @inquirer/figures@2.0.7 — MIT
|
|
13
|
+
- @inquirer/prompts@8.5.2 — MIT
|
|
13
14
|
- @inquirer/select@5.2.1 — MIT
|
|
14
15
|
- @opentelemetry/api@1.9.1 — Apache-2.0
|
|
15
16
|
- @opentelemetry/api-logs@0.204.0 — Apache-2.0
|
|
@@ -17,6 +18,8 @@ those licences require.
|
|
|
17
18
|
- @opentelemetry/resources@2.1.0 — Apache-2.0
|
|
18
19
|
- @opentelemetry/sdk-logs@0.204.0 — Apache-2.0
|
|
19
20
|
- @opentelemetry/semantic-conventions@1.43.0 — Apache-2.0
|
|
21
|
+
- @uipath/core-telemetry@1.0.0-beta.3 — MIT
|
|
22
|
+
- @uipath/uipath-typescript@1.7.1 — MIT
|
|
20
23
|
- bundle-name@4.1.0 — MIT
|
|
21
24
|
- cli-width@4.1.0 — ISC
|
|
22
25
|
- commander@14.0.3 — MIT
|
|
@@ -134,6 +137,40 @@ OTHER DEALINGS IN THE SOFTWARE.
|
|
|
134
137
|
|
|
135
138
|
---
|
|
136
139
|
|
|
140
|
+
## @inquirer/prompts@8.5.2
|
|
141
|
+
|
|
142
|
+
Inlined by a bundled dependency rather than resolved directly,
|
|
143
|
+
so it does not appear in this package's source maps.
|
|
144
|
+
|
|
145
|
+
SPDX: MIT
|
|
146
|
+
|
|
147
|
+
```
|
|
148
|
+
Copyright (c) 2025 Simon Boudrias
|
|
149
|
+
|
|
150
|
+
Permission is hereby granted, free of charge, to any person
|
|
151
|
+
obtaining a copy of this software and associated documentation
|
|
152
|
+
files (the "Software"), to deal in the Software without
|
|
153
|
+
restriction, including without limitation the rights to use,
|
|
154
|
+
copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
155
|
+
copies of the Software, and to permit persons to whom the
|
|
156
|
+
Software is furnished to do so, subject to the following
|
|
157
|
+
conditions:
|
|
158
|
+
|
|
159
|
+
The above copyright notice and this permission notice shall be
|
|
160
|
+
included in all copies or substantial portions of the Software.
|
|
161
|
+
|
|
162
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
163
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|
164
|
+
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
165
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|
166
|
+
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
167
|
+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
168
|
+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
169
|
+
OTHER DEALINGS IN THE SOFTWARE.
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
---
|
|
173
|
+
|
|
137
174
|
## @inquirer/select@5.2.1
|
|
138
175
|
|
|
139
176
|
SPDX: MIT
|
|
@@ -1425,6 +1462,34 @@ SPDX: Apache-2.0
|
|
|
1425
1462
|
|
|
1426
1463
|
---
|
|
1427
1464
|
|
|
1465
|
+
## @uipath/core-telemetry@1.0.0-beta.3
|
|
1466
|
+
|
|
1467
|
+
SPDX: MIT
|
|
1468
|
+
|
|
1469
|
+
The upstream package ships no licence file here; `MIT` is the
|
|
1470
|
+
licence it is distributed under. The canonical text of that licence
|
|
1471
|
+
applies, with copyright held by the package's authors.
|
|
1472
|
+
|
|
1473
|
+
---
|
|
1474
|
+
|
|
1475
|
+
## @uipath/uipath-typescript@1.7.1
|
|
1476
|
+
|
|
1477
|
+
SPDX: MIT
|
|
1478
|
+
|
|
1479
|
+
```
|
|
1480
|
+
MIT License
|
|
1481
|
+
|
|
1482
|
+
Copyright 2025-present UiPath
|
|
1483
|
+
|
|
1484
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
1485
|
+
|
|
1486
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
1487
|
+
|
|
1488
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
1489
|
+
```
|
|
1490
|
+
|
|
1491
|
+
---
|
|
1492
|
+
|
|
1428
1493
|
## bundle-name@4.1.0
|
|
1429
1494
|
|
|
1430
1495
|
SPDX: MIT
|
package/dist/{folder-picker-interactive-gyxze8wq.js → folder-picker-interactive-g7r2c8ct.js}
RENAMED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
FoldersApi,
|
|
3
3
|
createApiClient
|
|
4
|
-
} from "./tool-
|
|
4
|
+
} from "./tool-6ykqbeks.js";
|
|
5
5
|
import {
|
|
6
6
|
OutputFormatter,
|
|
7
7
|
RESULTS,
|
|
8
8
|
catchError,
|
|
9
9
|
extractErrorMessage,
|
|
10
10
|
processContext
|
|
11
|
-
} from "./tool-
|
|
11
|
+
} from "./tool-pbamehqj.js";
|
|
12
12
|
import {
|
|
13
13
|
__commonJS,
|
|
14
14
|
__require,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveFolder
|
|
3
|
-
} from "./tool-
|
|
3
|
+
} from "./tool-6ykqbeks.js";
|
|
4
4
|
import {
|
|
5
5
|
OutputFormatter,
|
|
6
6
|
RESULTS,
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
extractErrorMessage,
|
|
9
9
|
isGuid,
|
|
10
10
|
processContext
|
|
11
|
-
} from "./tool-
|
|
11
|
+
} from "./tool-pbamehqj.js";
|
|
12
12
|
import"./tool-1de529jm.js";
|
|
13
13
|
|
|
14
14
|
// src/commands/_shared/folder-resolver.ts
|
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
getAuthContext,
|
|
4
4
|
getSdkUserAgentToken,
|
|
5
5
|
installSdkUserAgentHeader
|
|
6
|
-
} from "./tool-
|
|
6
|
+
} from "./tool-pbamehqj.js";
|
|
7
7
|
|
|
8
8
|
// ../orchestrator-sdk/generated/src/runtime.ts
|
|
9
9
|
var BASE_PATH = "https://alpha.uipath.com/uipattycyrhx/abizon_1/orchestrator_".replace(/\/+$/, "");
|
|
@@ -2313,8 +2313,9 @@ class FoldersApi extends BaseAPI {
|
|
|
2313
2313
|
// ../orchestrator-sdk/package.json
|
|
2314
2314
|
var package_default = {
|
|
2315
2315
|
name: "@uipath/orchestrator-sdk",
|
|
2316
|
+
author: "UiPath",
|
|
2316
2317
|
license: "SEE LICENSE IN LICENSE.txt",
|
|
2317
|
-
version: "1.
|
|
2318
|
+
version: "1.203.0",
|
|
2318
2319
|
repository: {
|
|
2319
2320
|
type: "git",
|
|
2320
2321
|
url: "https://github.com/UiPath/cli.git",
|
|
@@ -2445,4 +2446,4 @@ async function resolveByPath(foldersApi, folderPath) {
|
|
|
2445
2446
|
}
|
|
2446
2447
|
export { FoldersApi, createApiClient, resolveFolder };
|
|
2447
2448
|
|
|
2448
|
-
//# debugId=
|
|
2449
|
+
//# debugId=1B4FF271E6FB4D0B64756E2164756E21
|
|
@@ -2379,7 +2379,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
|
|
|
2379
2379
|
var EMAIL_PATTERN = /\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}\b/g;
|
|
2380
2380
|
var JWT_PATTERN = /\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+/g;
|
|
2381
2381
|
var LONG_TOKEN_PATTERN = /\b[A-Za-z0-9_-]{40,}\b/g;
|
|
2382
|
-
var PADDED_BASE64_PATTERN = /[A-Za-z0-9+/]{16,}={1,2}(?![A-Za-z0-9+/=])/g;
|
|
2382
|
+
var PADDED_BASE64_PATTERN = /(?<![A-Za-z0-9+/])[A-Za-z0-9+/]{16,}={1,2}(?![A-Za-z0-9+/=])/g;
|
|
2383
2383
|
var BASE64_WITH_PLUS_PATTERN = /[A-Za-z0-9+/]{40,}/g;
|
|
2384
2384
|
var USER_HOME_PATTERN = /(?<![A-Za-z0-9._-])([/\\])(Users|home|Profiles)([/\\])([^/\\]+)/gi;
|
|
2385
2385
|
var UNC_PATH_PATTERN = /(^|[\s"'<>|=,;([{])(\\\\[^\s"'<>|]+)/g;
|
|
@@ -2426,7 +2426,7 @@ var QUOTED_LITERAL_PATTERN = new RegExp([
|
|
|
2426
2426
|
`(?<![A-Za-z0-9])"(?:[^\\
|
|
2427
2427
|
]|\\.){2,${QUOTED_LITERAL_MAX_SPAN}}?"(?![A-Za-z0-9])`
|
|
2428
2428
|
].join("|"), "g");
|
|
2429
|
-
var JSON_BODY_PATTERN = /[{[][^{}[\]]*[:,][^{}[\]]*[\]}]/g;
|
|
2429
|
+
var JSON_BODY_PATTERN = /[{[][^{}[\]:,]*[:,][^{}[\]]*[\]}]/g;
|
|
2430
2430
|
var COLLAPSED_BODY = "{…}";
|
|
2431
2431
|
var COLLAPSED_BODY_MARKER = "\x01body\x01";
|
|
2432
2432
|
var MAX_BODY_NESTING = 8;
|
|
@@ -2441,10 +2441,13 @@ function collapseJsonBodies(text) {
|
|
|
2441
2441
|
}
|
|
2442
2442
|
return out.split(COLLAPSED_BODY_MARKER).join(COLLAPSED_BODY);
|
|
2443
2443
|
}
|
|
2444
|
-
var TRAILING_PROSE_PUNCT =
|
|
2444
|
+
var TRAILING_PROSE_PUNCT = `.,;:!?)]}>'"`;
|
|
2445
2445
|
function peelTrailingPunctuation(match) {
|
|
2446
|
-
|
|
2447
|
-
|
|
2446
|
+
let end = match.length;
|
|
2447
|
+
while (end > 0 && TRAILING_PROSE_PUNCT.includes(match[end - 1])) {
|
|
2448
|
+
end -= 1;
|
|
2449
|
+
}
|
|
2450
|
+
return [match.slice(0, end), match.slice(end)];
|
|
2448
2451
|
}
|
|
2449
2452
|
function redactUrl(raw) {
|
|
2450
2453
|
try {
|
|
@@ -2747,6 +2750,22 @@ function parseHttpStatusFromMessage(message) {
|
|
|
2747
2750
|
const status = Number(match[1]);
|
|
2748
2751
|
return Number.isInteger(status) && status >= 100 && status <= 599 ? status : undefined;
|
|
2749
2752
|
}
|
|
2753
|
+
function findHttpStatusInGraph(error) {
|
|
2754
|
+
for (const node of walkErrorGraph(error)) {
|
|
2755
|
+
const response = node.response;
|
|
2756
|
+
const explicit = typeof node.status === "number" ? node.status : response?.status;
|
|
2757
|
+
if (typeof explicit === "number" && explicit >= 400 && explicit <= 599) {
|
|
2758
|
+
return explicit;
|
|
2759
|
+
}
|
|
2760
|
+
if (typeof node.message === "string") {
|
|
2761
|
+
const parsed = parseHttpStatusFromMessage(node.message);
|
|
2762
|
+
if (parsed !== undefined && parsed >= 400) {
|
|
2763
|
+
return parsed;
|
|
2764
|
+
}
|
|
2765
|
+
}
|
|
2766
|
+
}
|
|
2767
|
+
return;
|
|
2768
|
+
}
|
|
2750
2769
|
function isHtmlDocument(body) {
|
|
2751
2770
|
return /^\s*(<!doctype html|<html\b)/i.test(body);
|
|
2752
2771
|
}
|
|
@@ -2860,7 +2879,8 @@ async function extractErrorDetails(error, options) {
|
|
|
2860
2879
|
}
|
|
2861
2880
|
let message;
|
|
2862
2881
|
let result = "Failure";
|
|
2863
|
-
const
|
|
2882
|
+
const classificationStatus = status ?? findHttpStatusInGraph(error);
|
|
2883
|
+
const classification = classifyError(classificationStatus, error);
|
|
2864
2884
|
let retry = classification.retry;
|
|
2865
2885
|
if (status === 401) {
|
|
2866
2886
|
message = DEFAULT_401;
|
|
@@ -2936,8 +2956,8 @@ async function extractErrorDetails(error, options) {
|
|
|
2936
2956
|
details = describeThrownValue(error);
|
|
2937
2957
|
}
|
|
2938
2958
|
const context = {};
|
|
2939
|
-
if (
|
|
2940
|
-
context.httpStatus =
|
|
2959
|
+
if (classificationStatus) {
|
|
2960
|
+
context.httpStatus = classificationStatus;
|
|
2941
2961
|
}
|
|
2942
2962
|
if (parsedBody?.errorCode && typeof parsedBody.errorCode === "string") {
|
|
2943
2963
|
context.errorCode = parsedBody.errorCode;
|
|
@@ -3744,7 +3764,8 @@ function readRegistryValue(keyPath, valueName) {
|
|
|
3744
3764
|
}
|
|
3745
3765
|
const [error, output] = catchError(() => execFileSync("reg", ["query", keyPath, "/v", valueName], {
|
|
3746
3766
|
encoding: "utf-8",
|
|
3747
|
-
stdio: ["pipe", "pipe", "pipe"]
|
|
3767
|
+
stdio: ["pipe", "pipe", "pipe"],
|
|
3768
|
+
windowsHide: true
|
|
3748
3769
|
}));
|
|
3749
3770
|
if (error) {
|
|
3750
3771
|
return "";
|
|
@@ -4426,28 +4447,32 @@ function isPlainRecord(value) {
|
|
|
4426
4447
|
const prototype = Object.getPrototypeOf(value);
|
|
4427
4448
|
return prototype === Object.prototype || prototype === null;
|
|
4428
4449
|
}
|
|
4429
|
-
function
|
|
4450
|
+
function splitPagedEnvelope(value) {
|
|
4430
4451
|
if (Array.isArray(value) || !isPlainRecord(value))
|
|
4431
4452
|
return null;
|
|
4432
|
-
const entries = Object.
|
|
4453
|
+
const entries = Object.entries(value);
|
|
4433
4454
|
if (entries.length === 0)
|
|
4434
4455
|
return null;
|
|
4435
|
-
let
|
|
4436
|
-
|
|
4437
|
-
for (const entry of entries) {
|
|
4456
|
+
let found = null;
|
|
4457
|
+
const meta = Object.create(null);
|
|
4458
|
+
for (const [key, entry] of entries) {
|
|
4438
4459
|
if (Array.isArray(entry)) {
|
|
4439
|
-
if (
|
|
4460
|
+
if (found !== null)
|
|
4440
4461
|
return null;
|
|
4441
|
-
|
|
4462
|
+
found = { key, rows: entry };
|
|
4442
4463
|
} else if (entry !== null && typeof entry === "object") {
|
|
4443
4464
|
return null;
|
|
4444
4465
|
} else {
|
|
4445
|
-
|
|
4466
|
+
meta[key] = entry;
|
|
4446
4467
|
}
|
|
4447
4468
|
}
|
|
4448
|
-
if (
|
|
4469
|
+
if (found === null || Object.keys(meta).length === 0)
|
|
4449
4470
|
return null;
|
|
4450
|
-
return
|
|
4471
|
+
return { ...found, meta };
|
|
4472
|
+
}
|
|
4473
|
+
function extractPagedRows(value) {
|
|
4474
|
+
const paged = splitPagedEnvelope(value);
|
|
4475
|
+
return paged === null ? null : paged.rows;
|
|
4451
4476
|
}
|
|
4452
4477
|
function toLowerCamelCaseKey(key) {
|
|
4453
4478
|
if (!key)
|
|
@@ -4551,6 +4576,9 @@ function printOutput(data, format = "json", logFn, asciiSafe = false, tableRowSt
|
|
|
4551
4576
|
}
|
|
4552
4577
|
break;
|
|
4553
4578
|
}
|
|
4579
|
+
case "markdown":
|
|
4580
|
+
logFn(renderMarkdown(data));
|
|
4581
|
+
break;
|
|
4554
4582
|
default: {
|
|
4555
4583
|
const hasData = "Data" in data && data.Data != null;
|
|
4556
4584
|
const pagedRows = hasData ? extractPagedRows(data.Data) : null;
|
|
@@ -4575,6 +4603,10 @@ function logOutput(data, format = "json", tableRowStyle) {
|
|
|
4575
4603
|
printOutput(data, format, (msg) => sink.writeOut(`${msg}
|
|
4576
4604
|
`), needsAsciiSafeJson(sink), styleFn);
|
|
4577
4605
|
}
|
|
4606
|
+
var PLUMBING_KEYS = new Set(["code", "log"]);
|
|
4607
|
+
function isPlumbingKey(key) {
|
|
4608
|
+
return PLUMBING_KEYS.has(key.toLowerCase());
|
|
4609
|
+
}
|
|
4578
4610
|
function cellToString(val) {
|
|
4579
4611
|
return val != null && typeof val === "object" ? JSON.stringify(val) : String(val ?? "");
|
|
4580
4612
|
}
|
|
@@ -4590,7 +4622,7 @@ function wrapText(text, width) {
|
|
|
4590
4622
|
function printTable(data, logFn, externalLogValue, tableRowStyle) {
|
|
4591
4623
|
if (data.length === 0)
|
|
4592
4624
|
return;
|
|
4593
|
-
const keys = Object.keys(data[0]).filter((key) => !
|
|
4625
|
+
const keys = Object.keys(data[0]).filter((key) => !isPlumbingKey(key));
|
|
4594
4626
|
const maxWidths = keys.map((key) => Math.max(key.length, ...data.map((item) => cellToString(item[key]).length)));
|
|
4595
4627
|
const header = keys.map((key, i) => key.padEnd(maxWidths[i])).join(" | ");
|
|
4596
4628
|
logFn(header);
|
|
@@ -4612,7 +4644,7 @@ function isNonEmptyPlainObject(value) {
|
|
|
4612
4644
|
}
|
|
4613
4645
|
var NESTED_INDENT = " ";
|
|
4614
4646
|
function printVerticalTable(data, logFn = console.log, externalLogValue) {
|
|
4615
|
-
const keys = Object.keys(data).filter((key) => !
|
|
4647
|
+
const keys = Object.keys(data).filter((key) => !isPlumbingKey(key));
|
|
4616
4648
|
if (keys.length === 0)
|
|
4617
4649
|
return;
|
|
4618
4650
|
const isBlockValue = (value) => isPlainObjectArray(value) || isNonEmptyPlainObject(value);
|
|
@@ -4643,7 +4675,7 @@ function printVerticalTable(data, logFn = console.log, externalLogValue) {
|
|
|
4643
4675
|
function printResizableTable(data, logFn = console.log, externalLogValue, availableWidth, tableRowStyle) {
|
|
4644
4676
|
if (data.length === 0)
|
|
4645
4677
|
return;
|
|
4646
|
-
const keys = Object.keys(data[0]).filter((key) => !
|
|
4678
|
+
const keys = Object.keys(data[0]).filter((key) => !isPlumbingKey(key));
|
|
4647
4679
|
if (keys.length === 0)
|
|
4648
4680
|
return;
|
|
4649
4681
|
if (!process.stdout.isTTY) {
|
|
@@ -4717,6 +4749,220 @@ function printResizableTable(data, logFn = console.log, externalLogValue, availa
|
|
|
4717
4749
|
logFn(`Log: ${externalLogValue}`);
|
|
4718
4750
|
}
|
|
4719
4751
|
}
|
|
4752
|
+
var MARKDOWN_MAX_CELL = 200;
|
|
4753
|
+
var MARKDOWN_MAX_DEPTH = 3;
|
|
4754
|
+
function markdownHeading(depth) {
|
|
4755
|
+
return "#".repeat(Math.min(3 + depth, 6));
|
|
4756
|
+
}
|
|
4757
|
+
var BACKTICK_RUN = /`+/g;
|
|
4758
|
+
function fencedBlock(text) {
|
|
4759
|
+
const first = text.trimStart()[0];
|
|
4760
|
+
const language = first === "<" ? "xml" : first === "{" || first === "[" ? "json" : "";
|
|
4761
|
+
const longestRun = Math.max(0, ...Array.from(text.matchAll(BACKTICK_RUN), (match) => match[0].length));
|
|
4762
|
+
const fence = "`".repeat(Math.max(3, longestRun + 1));
|
|
4763
|
+
return `${fence}${language}
|
|
4764
|
+
${text}
|
|
4765
|
+
${fence}`;
|
|
4766
|
+
}
|
|
4767
|
+
function collapseNewlineRuns(text) {
|
|
4768
|
+
return text.split(/(\s+)/).map((part, index) => index % 2 === 1 && part.includes(`
|
|
4769
|
+
`) ? " " : part).join("");
|
|
4770
|
+
}
|
|
4771
|
+
function markdownCell(value) {
|
|
4772
|
+
const text = value instanceof Date ? value.toISOString() : cellToString(value);
|
|
4773
|
+
return collapseNewlineRuns(text).replace(/\|/g, "\\|");
|
|
4774
|
+
}
|
|
4775
|
+
function markdownLabel(key) {
|
|
4776
|
+
return collapseNewlineRuns(key).replace(/[\\`*|]/g, "\\$&");
|
|
4777
|
+
}
|
|
4778
|
+
function withoutPlumbing(record) {
|
|
4779
|
+
const kept = Object.create(null);
|
|
4780
|
+
for (const [key, value] of Object.entries(record)) {
|
|
4781
|
+
if (!isPlumbingKey(key))
|
|
4782
|
+
kept[key] = value;
|
|
4783
|
+
}
|
|
4784
|
+
return kept;
|
|
4785
|
+
}
|
|
4786
|
+
function rowsWithoutPlumbing(rows) {
|
|
4787
|
+
return rows.map((row) => isPlainRecord(row) ? withoutPlumbing(row) : row);
|
|
4788
|
+
}
|
|
4789
|
+
function markdownTable(rows) {
|
|
4790
|
+
const columns = [];
|
|
4791
|
+
const seen = new Set;
|
|
4792
|
+
for (const row of rows) {
|
|
4793
|
+
for (const key of Object.keys(row)) {
|
|
4794
|
+
if (!seen.has(key)) {
|
|
4795
|
+
seen.add(key);
|
|
4796
|
+
columns.push(key);
|
|
4797
|
+
}
|
|
4798
|
+
}
|
|
4799
|
+
}
|
|
4800
|
+
if (columns.length === 0)
|
|
4801
|
+
return null;
|
|
4802
|
+
const cells = rows.map((row) => columns.map((key) => markdownCell(row[key])));
|
|
4803
|
+
if (cells.some((row) => row.some((c) => c.length > MARKDOWN_MAX_CELL))) {
|
|
4804
|
+
return null;
|
|
4805
|
+
}
|
|
4806
|
+
return [
|
|
4807
|
+
`| ${columns.map(markdownLabel).join(" | ")} |`,
|
|
4808
|
+
`| ${columns.map(() => "---").join(" | ")} |`,
|
|
4809
|
+
...cells.map((row) => `| ${row.join(" | ")} |`)
|
|
4810
|
+
].join(`
|
|
4811
|
+
`);
|
|
4812
|
+
}
|
|
4813
|
+
function extractMessageSequence(rows) {
|
|
4814
|
+
const messages = [];
|
|
4815
|
+
for (const row of rows) {
|
|
4816
|
+
const message = extractSingleMessage(row);
|
|
4817
|
+
if (message === null)
|
|
4818
|
+
return null;
|
|
4819
|
+
messages.push(message);
|
|
4820
|
+
}
|
|
4821
|
+
return messages.join(`
|
|
4822
|
+
|
|
4823
|
+
`);
|
|
4824
|
+
}
|
|
4825
|
+
function markdownRows(rows, depth) {
|
|
4826
|
+
if (rows.length === 0)
|
|
4827
|
+
return "(none)";
|
|
4828
|
+
if (!isPlainObjectArray(rows)) {
|
|
4829
|
+
return rows.map((item) => `- ${markdownCell(item)}`).join(`
|
|
4830
|
+
`);
|
|
4831
|
+
}
|
|
4832
|
+
const prose = extractMessageSequence(rows);
|
|
4833
|
+
if (prose !== null)
|
|
4834
|
+
return prose;
|
|
4835
|
+
const table = markdownTable(rows);
|
|
4836
|
+
if (table !== null)
|
|
4837
|
+
return table;
|
|
4838
|
+
if (depth >= MARKDOWN_MAX_DEPTH) {
|
|
4839
|
+
return fencedBlock(JSON.stringify(rows, null, 2));
|
|
4840
|
+
}
|
|
4841
|
+
return rows.map((row, index) => [
|
|
4842
|
+
`${markdownHeading(depth)} ${index + 1}`,
|
|
4843
|
+
markdownObject(row, depth + 1)
|
|
4844
|
+
].join(`
|
|
4845
|
+
|
|
4846
|
+
`)).join(`
|
|
4847
|
+
|
|
4848
|
+
`);
|
|
4849
|
+
}
|
|
4850
|
+
function markdownObject(obj, depth) {
|
|
4851
|
+
const scalars = [];
|
|
4852
|
+
const blocks = [];
|
|
4853
|
+
for (const [key, value] of Object.entries(obj)) {
|
|
4854
|
+
if (value === undefined)
|
|
4855
|
+
continue;
|
|
4856
|
+
const label = markdownLabel(key);
|
|
4857
|
+
if (Array.isArray(value)) {
|
|
4858
|
+
blocks.push(`${markdownHeading(depth)} ${label}
|
|
4859
|
+
|
|
4860
|
+
${markdownRows(value, depth + 1)}`);
|
|
4861
|
+
} else if (isNonEmptyPlainObject(value)) {
|
|
4862
|
+
const nested = depth < MARKDOWN_MAX_DEPTH ? markdownObject(value, depth + 1) : fencedBlock(JSON.stringify(value, null, 2));
|
|
4863
|
+
if (nested !== "") {
|
|
4864
|
+
blocks.push(`${markdownHeading(depth)} ${label}
|
|
4865
|
+
|
|
4866
|
+
${nested}`);
|
|
4867
|
+
}
|
|
4868
|
+
} else if (typeof value === "string" && value.includes(`
|
|
4869
|
+
`)) {
|
|
4870
|
+
blocks.push(`**${label}:**
|
|
4871
|
+
|
|
4872
|
+
${fencedBlock(value)}`);
|
|
4873
|
+
} else {
|
|
4874
|
+
scalars.push(`**${label}:** ${markdownCell(value)}`);
|
|
4875
|
+
}
|
|
4876
|
+
}
|
|
4877
|
+
const sections = scalars.length > 0 ? [scalars.join(`
|
|
4878
|
+
`)] : [];
|
|
4879
|
+
sections.push(...blocks);
|
|
4880
|
+
return sections.join(`
|
|
4881
|
+
|
|
4882
|
+
`);
|
|
4883
|
+
}
|
|
4884
|
+
function extractSingleMessage(payload) {
|
|
4885
|
+
if (!isPlainRecord(payload))
|
|
4886
|
+
return null;
|
|
4887
|
+
const keys = Object.keys(payload);
|
|
4888
|
+
if (keys.length !== 1 || keys[0].toLowerCase() !== "message")
|
|
4889
|
+
return null;
|
|
4890
|
+
const value = payload[keys[0]];
|
|
4891
|
+
return typeof value === "string" ? value : null;
|
|
4892
|
+
}
|
|
4893
|
+
function markdownPayload(payload) {
|
|
4894
|
+
const message = extractSingleMessage(payload);
|
|
4895
|
+
if (message !== null)
|
|
4896
|
+
return message;
|
|
4897
|
+
if (Array.isArray(payload)) {
|
|
4898
|
+
return markdownRows(rowsWithoutPlumbing(payload), 0);
|
|
4899
|
+
}
|
|
4900
|
+
const visible = withoutPlumbing(payload);
|
|
4901
|
+
const paged = splitPagedEnvelope(visible);
|
|
4902
|
+
if (paged !== null) {
|
|
4903
|
+
const meta = markdownObject(paged.meta, 0);
|
|
4904
|
+
const rows = `${markdownHeading(0)} ${markdownLabel(paged.key)}
|
|
4905
|
+
|
|
4906
|
+
${markdownRows(rowsWithoutPlumbing(paged.rows), 1)}`;
|
|
4907
|
+
return meta === "" ? rows : `${meta}
|
|
4908
|
+
|
|
4909
|
+
${rows}`;
|
|
4910
|
+
}
|
|
4911
|
+
return markdownObject(visible, 0);
|
|
4912
|
+
}
|
|
4913
|
+
function isPaginationWorthShowing(value) {
|
|
4914
|
+
if (typeof value !== "object" || value === null)
|
|
4915
|
+
return false;
|
|
4916
|
+
const page = value;
|
|
4917
|
+
return page.HasMore === true || typeof page.Offset === "number" && page.Offset > 0;
|
|
4918
|
+
}
|
|
4919
|
+
function markdownEnvelopeNotes(data) {
|
|
4920
|
+
const envelope = data;
|
|
4921
|
+
const notes = [];
|
|
4922
|
+
const warning = envelope.Warning;
|
|
4923
|
+
if (typeof warning === "string" && warning !== "") {
|
|
4924
|
+
notes.push(`> **Warning:** ${warning}`);
|
|
4925
|
+
}
|
|
4926
|
+
const instructions = envelope.Instructions;
|
|
4927
|
+
if (typeof instructions === "string" && instructions !== "") {
|
|
4928
|
+
notes.push(`> ${instructions}`);
|
|
4929
|
+
}
|
|
4930
|
+
const pagination = envelope.Pagination;
|
|
4931
|
+
if (isPaginationWorthShowing(pagination)) {
|
|
4932
|
+
const body = markdownObject(pagination, 1);
|
|
4933
|
+
if (body !== "") {
|
|
4934
|
+
notes.push(`${markdownHeading(0)} Pagination
|
|
4935
|
+
|
|
4936
|
+
${body}`);
|
|
4937
|
+
}
|
|
4938
|
+
}
|
|
4939
|
+
const log = envelope.Log;
|
|
4940
|
+
if (typeof log === "string" && log !== "") {
|
|
4941
|
+
notes.push(`**Log:** ${log}`);
|
|
4942
|
+
}
|
|
4943
|
+
return notes;
|
|
4944
|
+
}
|
|
4945
|
+
function renderMarkdown(data) {
|
|
4946
|
+
if (data.Result !== RESULTS.Success) {
|
|
4947
|
+
const failure = data;
|
|
4948
|
+
const sections = [`**Failed:** ${failure.Message}`];
|
|
4949
|
+
if (failure.Data != null) {
|
|
4950
|
+
sections.push(markdownPayload(failure.Data));
|
|
4951
|
+
}
|
|
4952
|
+
if (failure.Instructions) {
|
|
4953
|
+
sections.push(`> ${failure.Instructions}`);
|
|
4954
|
+
}
|
|
4955
|
+
return sections.filter((section) => section !== "").join(`
|
|
4956
|
+
|
|
4957
|
+
`);
|
|
4958
|
+
}
|
|
4959
|
+
if (!("Data" in data) || data.Data == null) {
|
|
4960
|
+
return markdownObject(withoutPlumbing(data), 0);
|
|
4961
|
+
}
|
|
4962
|
+
return [markdownPayload(data.Data), ...markdownEnvelopeNotes(data)].filter((section) => section !== "").join(`
|
|
4963
|
+
|
|
4964
|
+
`);
|
|
4965
|
+
}
|
|
4720
4966
|
function toYaml(data) {
|
|
4721
4967
|
const codec = getYamlCodec();
|
|
4722
4968
|
if (!codec) {
|
|
@@ -6537,16 +6783,7 @@ var resolveEnvFilePathAsync = async (envFilePath = DEFAULT_ENV_FILENAME, opts) =
|
|
|
6537
6783
|
errorMessage: location.source === "absolute" ? `Environment file not found: ${envFilePath}` : `Unable to locate environment file: ${envFilePath}. Run 'uip login' to authenticate.`
|
|
6538
6784
|
};
|
|
6539
6785
|
};
|
|
6540
|
-
var
|
|
6541
|
-
const fs2 = getFileSystem();
|
|
6542
|
-
const absolutePath = fs2.path.isAbsolute(envPath) ? envPath : fs2.path.join(fs2.env.cwd(), envPath);
|
|
6543
|
-
if (!await fs2.exists(absolutePath)) {
|
|
6544
|
-
throw new Error(`Environment file not found: ${envPath}`);
|
|
6545
|
-
}
|
|
6546
|
-
const content = await fs2.readFile(absolutePath, "utf-8");
|
|
6547
|
-
if (content === null) {
|
|
6548
|
-
throw new Error(`Environment file not found: ${envPath}`);
|
|
6549
|
-
}
|
|
6786
|
+
var parseEnvContent = (content) => {
|
|
6550
6787
|
const env = {};
|
|
6551
6788
|
for (const line of content.split(`
|
|
6552
6789
|
`)) {
|
|
@@ -6567,6 +6804,18 @@ var loadEnvFileAsync = async ({ envPath }) => {
|
|
|
6567
6804
|
}
|
|
6568
6805
|
return env;
|
|
6569
6806
|
};
|
|
6807
|
+
var loadEnvFileAsync = async ({ envPath }) => {
|
|
6808
|
+
const fs2 = getFileSystem();
|
|
6809
|
+
const absolutePath = fs2.path.isAbsolute(envPath) ? envPath : fs2.path.join(fs2.env.cwd(), envPath);
|
|
6810
|
+
if (!await fs2.exists(absolutePath)) {
|
|
6811
|
+
throw new Error(`Environment file not found: ${envPath}`);
|
|
6812
|
+
}
|
|
6813
|
+
const content = await fs2.readFile(absolutePath, "utf-8");
|
|
6814
|
+
if (content === null) {
|
|
6815
|
+
throw new Error(`Environment file not found: ${envPath}`);
|
|
6816
|
+
}
|
|
6817
|
+
return parseEnvContent(content);
|
|
6818
|
+
};
|
|
6570
6819
|
var saveEnvFileAsync = async ({
|
|
6571
6820
|
envPath,
|
|
6572
6821
|
data,
|
|
@@ -7119,4 +7368,4 @@ var TENANT_SELECTION_CODES = new Set([
|
|
|
7119
7368
|
]);
|
|
7120
7369
|
export { catchError, extractErrorMessage, extractErrorMessageSync, RESULTS, OutputFormatter, classifiedFailure, Command, Option, processContext, isGuid, createHiddenDeprecatedTenantOption, getSdkUserAgentToken, addSdkUserAgentHeader, installSdkUserAgentHeader, getLoginStatusAsync, getAuthContext };
|
|
7121
7370
|
|
|
7122
|
-
//# debugId=
|
|
7371
|
+
//# debugId=2BD0227A2166399C64756E2164756E21
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
extractErrorMessageSync,
|
|
10
10
|
getLoginStatusAsync,
|
|
11
11
|
processContext
|
|
12
|
-
} from "./tool-
|
|
12
|
+
} from "./tool-pbamehqj.js";
|
|
13
13
|
import {
|
|
14
14
|
require_src
|
|
15
15
|
} from "./tool-bndhpxxj.js";
|
|
@@ -4501,8 +4501,9 @@ var require_src6 = __commonJS(function(exports) {
|
|
|
4501
4501
|
// package.json
|
|
4502
4502
|
var package_default = {
|
|
4503
4503
|
name: "@uipath/tasks-tool",
|
|
4504
|
+
author: "UiPath",
|
|
4504
4505
|
license: "SEE LICENSE IN LICENSE.txt",
|
|
4505
|
-
version: "1.
|
|
4506
|
+
version: "1.203.0-preview.160",
|
|
4506
4507
|
description: "Manage Action Center tasks.",
|
|
4507
4508
|
publishConfig: {
|
|
4508
4509
|
registry: "https://npm.pkg.github.com/"
|
|
@@ -18596,11 +18597,11 @@ async function resolveFolderScope(options) {
|
|
|
18596
18597
|
return parseIntArg(options.folderId, "--folder-id");
|
|
18597
18598
|
}
|
|
18598
18599
|
if (options.folderKey !== undefined) {
|
|
18599
|
-
const { resolveFolderIdByKey } = await import("./folder-resolver-
|
|
18600
|
+
const { resolveFolderIdByKey } = await import("./folder-resolver-v3hx6eqb.js");
|
|
18600
18601
|
return resolveFolderIdByKey(options.folderKey, options.tenant);
|
|
18601
18602
|
}
|
|
18602
18603
|
if (options.folderPath !== undefined) {
|
|
18603
|
-
const { resolveFolderIdByPath } = await import("./folder-resolver-
|
|
18604
|
+
const { resolveFolderIdByPath } = await import("./folder-resolver-v3hx6eqb.js");
|
|
18604
18605
|
return resolveFolderIdByPath(options.folderPath, options.tenant);
|
|
18605
18606
|
}
|
|
18606
18607
|
return;
|
|
@@ -18620,7 +18621,7 @@ async function resolveFolderId(options, missingFolderInstructions = DEFAULT_FOLD
|
|
|
18620
18621
|
processContext.exit(1);
|
|
18621
18622
|
return null;
|
|
18622
18623
|
}
|
|
18623
|
-
const { pickFolderInteractively } = await import("./folder-picker-interactive-
|
|
18624
|
+
const { pickFolderInteractively } = await import("./folder-picker-interactive-g7r2c8ct.js");
|
|
18624
18625
|
return pickFolderInteractively(options.tenant);
|
|
18625
18626
|
}
|
|
18626
18627
|
|
|
@@ -19442,4 +19443,4 @@ var registerCommands = async (program) => {
|
|
|
19442
19443
|
|
|
19443
19444
|
export { metadata, registerCommands };
|
|
19444
19445
|
|
|
19445
|
-
//# debugId=
|
|
19446
|
+
//# debugId=23D099BBD08C1FEA64756E2164756E21
|
package/dist/tool.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uipath/tasks-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 Action Center tasks.",
|
|
6
7
|
"publishConfig": {
|
|
7
8
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -17,5 +18,5 @@
|
|
|
17
18
|
"files": [
|
|
18
19
|
"dist"
|
|
19
20
|
],
|
|
20
|
-
"gitHead": "
|
|
21
|
+
"gitHead": "3a42062ba731afca4595ba9aa8a80afc9667528d"
|
|
21
22
|
}
|