@uipath/solution-tool 1.203.0-preview.235 → 1.203.0-preview.237
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/deploy.js +6 -6
- package/dist/index.js +15 -15
- package/dist/init.js +5 -5
- package/dist/{list-q4e119rz.js → list-cygw4ays.js} +4 -4
- package/dist/pack.js +8 -8
- package/dist/{packager-tool-3jrq7smt.js → packager-tool-371g7ncz.js} +1 -1
- package/dist/{packager-tool-znakt6yw.js → packager-tool-4en00krn.js} +3 -3
- package/dist/{packager-tool-vas0xg5h.js → packager-tool-51yv0h9t.js} +1 -1
- package/dist/{packager-tool-mv5gp9ky.js → packager-tool-6nsq0bgx.js} +4 -4
- package/dist/{packager-tool-6rjchfr3.js → packager-tool-8qxbvd8p.js} +22 -22
- package/dist/{packager-tool-t83y1kt2.js → packager-tool-ad7cjqbr.js} +4 -4
- package/dist/{packager-tool-0f0wt9vh.js → packager-tool-bv7p4xrf.js} +224 -7
- package/dist/{packager-tool-y97kpjr2.js → packager-tool-e36v866n.js} +453 -19
- package/dist/{packager-tool-7cyeqva9.js → packager-tool-fdptqx2c.js} +4 -4
- package/dist/{packager-tool-k4mskzww.js → packager-tool-hmg4h4be.js} +1 -1
- package/dist/{packager-tool-2syrt51a.js → packager-tool-ptqqaxz4.js} +2 -2
- package/dist/{packager-tool-1haahq17.js → packager-tool-q2tzz45h.js} +2 -2
- package/dist/{packager-tool-resolver-fmjr60x8.js → packager-tool-resolver-jzjgh1vx.js} +2 -2
- package/dist/{packager-tool-bkwnetqn.js → packager-tool-rmqfg1cb.js} +3 -3
- package/dist/{packager-tool-hwec9y8p.js → packager-tool-tb88r1tz.js} +4 -4
- package/dist/{packager-tool-7znqtw3f.js → packager-tool-wyztfanh.js} +4 -4
- package/dist/{prepare-solution-resources-wds3r8bq.js → prepare-solution-resources-0ms8dtg3.js} +7 -7
- package/dist/{project-contributions-cvttys34.js → project-contributions-jatm7p1p.js} +6 -6
- package/dist/publish.js +6 -6
- package/dist/resource.js +4 -4
- package/dist/templates/AGENTS.md +5 -2
- package/dist/tool.js +15 -15
- package/package.json +2 -2
package/dist/deploy.js
CHANGED
|
@@ -5,12 +5,12 @@ import {
|
|
|
5
5
|
listPackagesAsync,
|
|
6
6
|
uninstallDeploymentAsync,
|
|
7
7
|
upgradeDeploymentAsync
|
|
8
|
-
} from "./packager-tool-
|
|
9
|
-
import"./packager-tool-
|
|
10
|
-
import"./packager-tool-
|
|
11
|
-
import"./packager-tool-
|
|
12
|
-
import"./packager-tool-
|
|
13
|
-
import"./packager-tool-
|
|
8
|
+
} from "./packager-tool-ad7cjqbr.js";
|
|
9
|
+
import"./packager-tool-fdptqx2c.js";
|
|
10
|
+
import"./packager-tool-tb88r1tz.js";
|
|
11
|
+
import"./packager-tool-ptqqaxz4.js";
|
|
12
|
+
import"./packager-tool-371g7ncz.js";
|
|
13
|
+
import"./packager-tool-bv7p4xrf.js";
|
|
14
14
|
import"./packager-tool-dfrk01gn.js";
|
|
15
15
|
import"./packager-tool-1de529jm.js";
|
|
16
16
|
export {
|
package/dist/index.js
CHANGED
|
@@ -2,27 +2,27 @@
|
|
|
2
2
|
import {
|
|
3
3
|
metadata,
|
|
4
4
|
registerCommands
|
|
5
|
-
} from "./packager-tool-
|
|
6
|
-
import"./packager-tool-
|
|
7
|
-
import"./packager-tool-
|
|
8
|
-
import"./packager-tool-
|
|
9
|
-
import"./packager-tool-
|
|
10
|
-
import"./packager-tool-
|
|
11
|
-
import"./packager-tool-
|
|
12
|
-
import"./packager-tool-
|
|
5
|
+
} from "./packager-tool-8qxbvd8p.js";
|
|
6
|
+
import"./packager-tool-q2tzz45h.js";
|
|
7
|
+
import"./packager-tool-ad7cjqbr.js";
|
|
8
|
+
import"./packager-tool-51yv0h9t.js";
|
|
9
|
+
import"./packager-tool-e36v866n.js";
|
|
10
|
+
import"./packager-tool-wyztfanh.js";
|
|
11
|
+
import"./packager-tool-4en00krn.js";
|
|
12
|
+
import"./packager-tool-hmg4h4be.js";
|
|
13
13
|
import"./packager-tool-jz2wbfjz.js";
|
|
14
|
-
import"./packager-tool-
|
|
15
|
-
import"./packager-tool-
|
|
16
|
-
import"./packager-tool-
|
|
17
|
-
import"./packager-tool-
|
|
14
|
+
import"./packager-tool-6nsq0bgx.js";
|
|
15
|
+
import"./packager-tool-fdptqx2c.js";
|
|
16
|
+
import"./packager-tool-tb88r1tz.js";
|
|
17
|
+
import"./packager-tool-rmqfg1cb.js";
|
|
18
18
|
import"./packager-tool-gdtpsdn7.js";
|
|
19
19
|
import"./packager-tool-53w8skv5.js";
|
|
20
20
|
import"./packager-tool-nzghfa48.js";
|
|
21
|
-
import"./packager-tool-
|
|
22
|
-
import"./packager-tool-
|
|
21
|
+
import"./packager-tool-ptqqaxz4.js";
|
|
22
|
+
import"./packager-tool-371g7ncz.js";
|
|
23
23
|
import {
|
|
24
24
|
Command
|
|
25
|
-
} from "./packager-tool-
|
|
25
|
+
} from "./packager-tool-bv7p4xrf.js";
|
|
26
26
|
import"./packager-tool-dfrk01gn.js";
|
|
27
27
|
import"./packager-tool-1de529jm.js";
|
|
28
28
|
|
package/dist/init.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SolutionInitError,
|
|
3
3
|
solutionInitAsync
|
|
4
|
-
} from "./packager-tool-
|
|
4
|
+
} from "./packager-tool-51yv0h9t.js";
|
|
5
5
|
import {
|
|
6
6
|
addProjectArtifactsToSolutionAsync
|
|
7
|
-
} from "./packager-tool-
|
|
7
|
+
} from "./packager-tool-rmqfg1cb.js";
|
|
8
8
|
import"./packager-tool-gdtpsdn7.js";
|
|
9
9
|
import"./packager-tool-53w8skv5.js";
|
|
10
10
|
import"./packager-tool-nzghfa48.js";
|
|
11
|
-
import"./packager-tool-
|
|
12
|
-
import"./packager-tool-
|
|
13
|
-
import"./packager-tool-
|
|
11
|
+
import"./packager-tool-ptqqaxz4.js";
|
|
12
|
+
import"./packager-tool-371g7ncz.js";
|
|
13
|
+
import"./packager-tool-bv7p4xrf.js";
|
|
14
14
|
import"./packager-tool-dfrk01gn.js";
|
|
15
15
|
import"./packager-tool-1de529jm.js";
|
|
16
16
|
export {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getStudioWebAuth,
|
|
3
3
|
useStudioWebAuth
|
|
4
|
-
} from "./packager-tool-
|
|
4
|
+
} from "./packager-tool-q2tzz45h.js";
|
|
5
5
|
import {
|
|
6
6
|
getStudioWebSolutionProjects,
|
|
7
7
|
listStudioWebSolutions
|
|
8
|
-
} from "./packager-tool-
|
|
9
|
-
import"./packager-tool-
|
|
8
|
+
} from "./packager-tool-tb88r1tz.js";
|
|
9
|
+
import"./packager-tool-371g7ncz.js";
|
|
10
10
|
import {
|
|
11
11
|
DEFAULT_PAGE_SIZE,
|
|
12
12
|
OutputFormatter,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
parseBoundedInt,
|
|
18
18
|
parseOffset,
|
|
19
19
|
processContext
|
|
20
|
-
} from "./packager-tool-
|
|
20
|
+
} from "./packager-tool-bv7p4xrf.js";
|
|
21
21
|
import"./packager-tool-dfrk01gn.js";
|
|
22
22
|
import"./packager-tool-1de529jm.js";
|
|
23
23
|
|
package/dist/pack.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
packSolutionAsync
|
|
3
|
-
} from "./packager-tool-
|
|
4
|
-
import"./packager-tool-
|
|
5
|
-
import"./packager-tool-
|
|
6
|
-
import"./packager-tool-
|
|
3
|
+
} from "./packager-tool-e36v866n.js";
|
|
4
|
+
import"./packager-tool-wyztfanh.js";
|
|
5
|
+
import"./packager-tool-4en00krn.js";
|
|
6
|
+
import"./packager-tool-hmg4h4be.js";
|
|
7
7
|
import"./packager-tool-jz2wbfjz.js";
|
|
8
|
-
import"./packager-tool-
|
|
8
|
+
import"./packager-tool-rmqfg1cb.js";
|
|
9
9
|
import"./packager-tool-gdtpsdn7.js";
|
|
10
10
|
import"./packager-tool-53w8skv5.js";
|
|
11
11
|
import"./packager-tool-nzghfa48.js";
|
|
12
|
-
import"./packager-tool-
|
|
13
|
-
import"./packager-tool-
|
|
14
|
-
import"./packager-tool-
|
|
12
|
+
import"./packager-tool-ptqqaxz4.js";
|
|
13
|
+
import"./packager-tool-371g7ncz.js";
|
|
14
|
+
import"./packager-tool-bv7p4xrf.js";
|
|
15
15
|
import"./packager-tool-dfrk01gn.js";
|
|
16
16
|
import"./packager-tool-1de529jm.js";
|
|
17
17
|
export {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
toolVerbForProjectType
|
|
3
|
-
} from "./packager-tool-
|
|
3
|
+
} from "./packager-tool-hmg4h4be.js";
|
|
4
4
|
import {
|
|
5
5
|
computeEntryPointSpec,
|
|
6
6
|
createResourceBuilderServices,
|
|
7
7
|
hasAnyTemplateRow,
|
|
8
8
|
hasBareTemplateRow,
|
|
9
9
|
readUipxProjects
|
|
10
|
-
} from "./packager-tool-
|
|
10
|
+
} from "./packager-tool-rmqfg1cb.js";
|
|
11
11
|
import {
|
|
12
12
|
toolsFactoryRepository
|
|
13
13
|
} from "./packager-tool-nzghfa48.js";
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
catchError,
|
|
16
16
|
getFileSystem,
|
|
17
17
|
logger
|
|
18
|
-
} from "./packager-tool-
|
|
18
|
+
} from "./packager-tool-bv7p4xrf.js";
|
|
19
19
|
|
|
20
20
|
// src/services/project-contributions.ts
|
|
21
21
|
var ENTRY_POINT_RESOURCE_KIND = "process";
|
|
@@ -3,14 +3,14 @@ import {
|
|
|
3
3
|
PipelinesApi,
|
|
4
4
|
feedScopeInitOverride,
|
|
5
5
|
resolveFeedScope
|
|
6
|
-
} from "./packager-tool-
|
|
6
|
+
} from "./packager-tool-fdptqx2c.js";
|
|
7
7
|
import {
|
|
8
8
|
Configuration as Configuration2,
|
|
9
9
|
PackagesApi
|
|
10
|
-
} from "./packager-tool-
|
|
10
|
+
} from "./packager-tool-tb88r1tz.js";
|
|
11
11
|
import {
|
|
12
12
|
getSolutionAuthContext
|
|
13
|
-
} from "./packager-tool-
|
|
13
|
+
} from "./packager-tool-ptqqaxz4.js";
|
|
14
14
|
import {
|
|
15
15
|
PollOutcome,
|
|
16
16
|
catchError,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
logger,
|
|
20
20
|
mapPollFailure,
|
|
21
21
|
pollUntil
|
|
22
|
-
} from "./packager-tool-
|
|
22
|
+
} from "./packager-tool-bv7p4xrf.js";
|
|
23
23
|
import {
|
|
24
24
|
strFromU8,
|
|
25
25
|
strToU8,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getStudioWebAuthWithOrganizationId,
|
|
3
3
|
useStudioWebAuth
|
|
4
|
-
} from "./packager-tool-
|
|
4
|
+
} from "./packager-tool-q2tzz45h.js";
|
|
5
5
|
import {
|
|
6
6
|
activateDeploymentAsync,
|
|
7
7
|
deployRunAsync,
|
|
@@ -11,11 +11,11 @@ import {
|
|
|
11
11
|
listPackagesAsync,
|
|
12
12
|
uninstallDeploymentAsync,
|
|
13
13
|
upgradeDeploymentAsync
|
|
14
|
-
} from "./packager-tool-
|
|
14
|
+
} from "./packager-tool-ad7cjqbr.js";
|
|
15
15
|
import {
|
|
16
16
|
SolutionInitError,
|
|
17
17
|
solutionInitAsync
|
|
18
|
-
} from "./packager-tool-
|
|
18
|
+
} from "./packager-tool-51yv0h9t.js";
|
|
19
19
|
import {
|
|
20
20
|
GOVERNANCE_OPTION_INSTRUCTIONS,
|
|
21
21
|
PackCommandService,
|
|
@@ -28,18 +28,18 @@ import {
|
|
|
28
28
|
readSolutionFileAsUint8Array,
|
|
29
29
|
resolveSdkLogLevel,
|
|
30
30
|
validateGovernanceOptions
|
|
31
|
-
} from "./packager-tool-
|
|
31
|
+
} from "./packager-tool-e36v866n.js";
|
|
32
32
|
import {
|
|
33
33
|
prepareSolutionResources
|
|
34
|
-
} from "./packager-tool-
|
|
34
|
+
} from "./packager-tool-wyztfanh.js";
|
|
35
35
|
import {
|
|
36
36
|
ensurePackagerTools,
|
|
37
37
|
isUnpackableProjectTypeError,
|
|
38
38
|
toolVerbForProjectType
|
|
39
|
-
} from "./packager-tool-
|
|
39
|
+
} from "./packager-tool-hmg4h4be.js";
|
|
40
40
|
import {
|
|
41
41
|
publishSolutionAsync
|
|
42
|
-
} from "./packager-tool-
|
|
42
|
+
} from "./packager-tool-6nsq0bgx.js";
|
|
43
43
|
import {
|
|
44
44
|
Configuration,
|
|
45
45
|
PipelinesApi,
|
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
feedScopeInitOverride,
|
|
48
48
|
listSelectablePublishLocations,
|
|
49
49
|
resolveFeedScope
|
|
50
|
-
} from "./packager-tool-
|
|
50
|
+
} from "./packager-tool-fdptqx2c.js";
|
|
51
51
|
import {
|
|
52
52
|
Configuration as Configuration2,
|
|
53
53
|
DeploymentActivationStatus,
|
|
@@ -65,7 +65,7 @@ import {
|
|
|
65
65
|
overwriteSolution,
|
|
66
66
|
searchPackageVersions,
|
|
67
67
|
solutionExistsOnStudioWeb
|
|
68
|
-
} from "./packager-tool-
|
|
68
|
+
} from "./packager-tool-tb88r1tz.js";
|
|
69
69
|
import {
|
|
70
70
|
Tokens,
|
|
71
71
|
applyEntryPointEnhancementAsync,
|
|
@@ -93,19 +93,19 @@ import {
|
|
|
93
93
|
searchRcsResources,
|
|
94
94
|
syncResourcesFromBindings,
|
|
95
95
|
writeSolutionFile
|
|
96
|
-
} from "./packager-tool-
|
|
96
|
+
} from "./packager-tool-rmqfg1cb.js";
|
|
97
97
|
import {
|
|
98
98
|
ToolResult
|
|
99
99
|
} from "./packager-tool-nzghfa48.js";
|
|
100
100
|
import {
|
|
101
101
|
getSolutionAuthContext
|
|
102
|
-
} from "./packager-tool-
|
|
102
|
+
} from "./packager-tool-ptqqaxz4.js";
|
|
103
103
|
import {
|
|
104
104
|
getLoginStatusAsync,
|
|
105
105
|
resolveSolutionDir,
|
|
106
106
|
toPortableRelativePath,
|
|
107
107
|
updateUipxSolutionId
|
|
108
|
-
} from "./packager-tool-
|
|
108
|
+
} from "./packager-tool-371g7ncz.js";
|
|
109
109
|
import {
|
|
110
110
|
DEFAULT_PAGE_SIZE,
|
|
111
111
|
Option,
|
|
@@ -137,7 +137,7 @@ import {
|
|
|
137
137
|
unsupportedSolutionProjectType,
|
|
138
138
|
warnDeprecatedOptionAlias,
|
|
139
139
|
withCompleter
|
|
140
|
-
} from "./packager-tool-
|
|
140
|
+
} from "./packager-tool-bv7p4xrf.js";
|
|
141
141
|
import {
|
|
142
142
|
strFromU8,
|
|
143
143
|
unzip,
|
|
@@ -151,7 +151,7 @@ var package_default = {
|
|
|
151
151
|
name: "@uipath/solution-tool",
|
|
152
152
|
author: "UiPath",
|
|
153
153
|
license: "SEE LICENSE IN LICENSE.txt",
|
|
154
|
-
version: "1.203.0-preview.
|
|
154
|
+
version: "1.203.0-preview.237",
|
|
155
155
|
description: "Create, pack, publish, and deploy UiPath Automation Solutions.",
|
|
156
156
|
repository: {
|
|
157
157
|
type: "git",
|
|
@@ -2461,9 +2461,9 @@ var SOLUTION_PACKAGES_LIST_EXAMPLES = [
|
|
|
2461
2461
|
Code: "SolutionPackagesList",
|
|
2462
2462
|
Data: [
|
|
2463
2463
|
{
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
|
|
2464
|
+
Name: "MyPackage",
|
|
2465
|
+
LatestVersion: "1.0.0",
|
|
2466
|
+
PublishDate: "2025-04-15T10:30:00Z"
|
|
2467
2467
|
}
|
|
2468
2468
|
]
|
|
2469
2469
|
}
|
|
@@ -5093,9 +5093,9 @@ var registerResourceRefreshSubcommand = (resource) => {
|
|
|
5093
5093
|
contributionErrorMessages
|
|
5094
5094
|
}
|
|
5095
5095
|
] = await Promise.all([
|
|
5096
|
-
import("./packager-tool-resolver-
|
|
5097
|
-
import("./prepare-solution-resources-
|
|
5098
|
-
import("./project-contributions-
|
|
5096
|
+
import("./packager-tool-resolver-jzjgh1vx.js"),
|
|
5097
|
+
import("./prepare-solution-resources-0ms8dtg3.js"),
|
|
5098
|
+
import("./project-contributions-jatm7p1p.js")
|
|
5099
5099
|
]);
|
|
5100
5100
|
const resolveProjectSubTypesAsync = async () => {
|
|
5101
5101
|
await ensurePackagerTools2(solutionFolder, fs);
|
|
@@ -6387,7 +6387,7 @@ var registerCommands = async (program) => {
|
|
|
6387
6387
|
registerResourceCommand(program);
|
|
6388
6388
|
registerDeleteCommand(program);
|
|
6389
6389
|
if (isPreviewBuild()) {
|
|
6390
|
-
const { registerListCommand } = await import("./list-
|
|
6390
|
+
const { registerListCommand } = await import("./list-cygw4ays.js");
|
|
6391
6391
|
registerListCommand(program);
|
|
6392
6392
|
}
|
|
6393
6393
|
registerFeedsCommand(program);
|
|
@@ -6395,4 +6395,4 @@ var registerCommands = async (program) => {
|
|
|
6395
6395
|
|
|
6396
6396
|
export { metadata, registerCommands };
|
|
6397
6397
|
|
|
6398
|
-
//# debugId=
|
|
6398
|
+
//# debugId=1FDB714AFE1D4DC864756E2164756E21
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
listSelectablePublishLocations,
|
|
8
8
|
resolveFeedScope,
|
|
9
9
|
resolvePersonalWorkspace
|
|
10
|
-
} from "./packager-tool-
|
|
10
|
+
} from "./packager-tool-fdptqx2c.js";
|
|
11
11
|
import {
|
|
12
12
|
Configuration as Configuration2,
|
|
13
13
|
DeploymentOperationStatus,
|
|
@@ -16,11 +16,11 @@ import {
|
|
|
16
16
|
SolutionDeploymentAction,
|
|
17
17
|
deploymentsAutoInstall,
|
|
18
18
|
searchPackageVersions
|
|
19
|
-
} from "./packager-tool-
|
|
19
|
+
} from "./packager-tool-tb88r1tz.js";
|
|
20
20
|
import {
|
|
21
21
|
getSolutionAuthContext,
|
|
22
22
|
resolveFolder
|
|
23
|
-
} from "./packager-tool-
|
|
23
|
+
} from "./packager-tool-ptqqaxz4.js";
|
|
24
24
|
import {
|
|
25
25
|
DEFAULT_PAGE_SIZE,
|
|
26
26
|
PollOutcome,
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
mapPollFailure,
|
|
32
32
|
pollUntil,
|
|
33
33
|
processContext
|
|
34
|
-
} from "./packager-tool-
|
|
34
|
+
} from "./packager-tool-bv7p4xrf.js";
|
|
35
35
|
import {
|
|
36
36
|
__commonJS,
|
|
37
37
|
__require
|
|
@@ -4635,7 +4635,165 @@ class FilterImplicitLimitError extends Error {
|
|
|
4635
4635
|
this.instructions = "Pass --limit <n> to choose how many records the filter applies to. " + "To filter over all records, pass the command's maximum accepted --limit (see the option's description in --help).";
|
|
4636
4636
|
}
|
|
4637
4637
|
}
|
|
4638
|
-
function
|
|
4638
|
+
function countRecords(data) {
|
|
4639
|
+
if (Array.isArray(data))
|
|
4640
|
+
return data.length;
|
|
4641
|
+
return data == null ? 0 : 1;
|
|
4642
|
+
}
|
|
4643
|
+
function availableFields(data) {
|
|
4644
|
+
const records = Array.isArray(data) ? data : [data];
|
|
4645
|
+
const keys = new Set;
|
|
4646
|
+
for (const record of records) {
|
|
4647
|
+
if (record && typeof record === "object" && !Array.isArray(record)) {
|
|
4648
|
+
for (const key of Object.keys(record))
|
|
4649
|
+
keys.add(key);
|
|
4650
|
+
}
|
|
4651
|
+
}
|
|
4652
|
+
return [...keys];
|
|
4653
|
+
}
|
|
4654
|
+
function decodeQuotedIdentifier(whole, inner) {
|
|
4655
|
+
const [error, decoded] = catchError(() => JSON.parse(whole));
|
|
4656
|
+
if (!error && typeof decoded === "string")
|
|
4657
|
+
return decoded;
|
|
4658
|
+
return inner.replace(/\\(.)/g, "$1");
|
|
4659
|
+
}
|
|
4660
|
+
function referencedFields(filter) {
|
|
4661
|
+
const top = new Set;
|
|
4662
|
+
const nested = new Set;
|
|
4663
|
+
const withoutValueLiterals = filter.replace(/'(?:\\.|[^'\\])*'/g, " ").replace(/`(?:\\.|[^`\\])*`/g, " ");
|
|
4664
|
+
const isPathTail = (text, index) => text[index - 1] === "." && /[A-Za-z0-9_"]/.test(text[index - 2] ?? "");
|
|
4665
|
+
const quoted = [];
|
|
4666
|
+
const withoutLiterals = withoutValueLiterals.replace(/"((?:\\.|[^"\\])*)"/g, (whole, name, index) => {
|
|
4667
|
+
const isAlias = /^\s*:/.test(withoutValueLiterals.slice(index + whole.length));
|
|
4668
|
+
if (!isAlias) {
|
|
4669
|
+
quoted.push({
|
|
4670
|
+
name: decodeQuotedIdentifier(whole, name),
|
|
4671
|
+
index,
|
|
4672
|
+
tail: isPathTail(withoutValueLiterals, index)
|
|
4673
|
+
});
|
|
4674
|
+
}
|
|
4675
|
+
return `"${" ".repeat(whole.length - 2)}"`;
|
|
4676
|
+
});
|
|
4677
|
+
const descent = /[A-Za-z0-9_"]\s*[.[]/.exec(withoutLiterals);
|
|
4678
|
+
const rootEnd = descent ? descent.index + 1 : Number.POSITIVE_INFINITY;
|
|
4679
|
+
const place = (name, index, tail) => {
|
|
4680
|
+
if (tail || index >= rootEnd)
|
|
4681
|
+
nested.add(name);
|
|
4682
|
+
else
|
|
4683
|
+
top.add(name);
|
|
4684
|
+
};
|
|
4685
|
+
for (const entry of quoted)
|
|
4686
|
+
place(entry.name, entry.index, entry.tail);
|
|
4687
|
+
const identifiers = withoutLiterals.matchAll(/([A-Za-z_][A-Za-z0-9_]*)(\s*[:(])?/g);
|
|
4688
|
+
const reserved = new Set(["true", "false", "null", "and", "or", "not"]);
|
|
4689
|
+
for (const match of identifiers) {
|
|
4690
|
+
const [, name, trailing] = match;
|
|
4691
|
+
if (trailing || reserved.has(name))
|
|
4692
|
+
continue;
|
|
4693
|
+
place(name, match.index, isPathTail(withoutLiterals, match.index));
|
|
4694
|
+
}
|
|
4695
|
+
return {
|
|
4696
|
+
top: [...top],
|
|
4697
|
+
nested: [...nested].filter((name) => !top.has(name)),
|
|
4698
|
+
hasPredicate: /\[\s*\?/.test(withoutValueLiterals)
|
|
4699
|
+
};
|
|
4700
|
+
}
|
|
4701
|
+
function appearsBelowTopLevel(data, name) {
|
|
4702
|
+
let budget = 2000;
|
|
4703
|
+
const visit = (value, depth) => {
|
|
4704
|
+
if (budget-- <= 0 || depth > 4)
|
|
4705
|
+
return false;
|
|
4706
|
+
if (value === null || typeof value !== "object")
|
|
4707
|
+
return false;
|
|
4708
|
+
if (Array.isArray(value))
|
|
4709
|
+
return value.some((entry) => visit(entry, depth));
|
|
4710
|
+
const record = value;
|
|
4711
|
+
if (depth > 0 && Object.hasOwn(record, name))
|
|
4712
|
+
return true;
|
|
4713
|
+
return Object.values(record).some((entry) => visit(entry, depth + 1));
|
|
4714
|
+
};
|
|
4715
|
+
return visit(data, 0);
|
|
4716
|
+
}
|
|
4717
|
+
function alwaysNullKeys(records) {
|
|
4718
|
+
const objects = records.filter((r) => r != null && typeof r === "object" && !Array.isArray(r));
|
|
4719
|
+
if (objects.length === 0 || objects.length !== records.length)
|
|
4720
|
+
return [];
|
|
4721
|
+
const keys = [...new Set(objects.flatMap((o) => Object.keys(o)))];
|
|
4722
|
+
if (keys.length === 0)
|
|
4723
|
+
return [];
|
|
4724
|
+
const nullKeys = keys.filter((key) => objects.every((record) => record[key] === null));
|
|
4725
|
+
return nullKeys.length === keys.length ? nullKeys : [];
|
|
4726
|
+
}
|
|
4727
|
+
function carriesOnlyNulls(value) {
|
|
4728
|
+
if (value === null)
|
|
4729
|
+
return true;
|
|
4730
|
+
if (Array.isArray(value)) {
|
|
4731
|
+
return value.length > 0 && value.every(carriesOnlyNulls);
|
|
4732
|
+
}
|
|
4733
|
+
if (typeof value === "object" && value !== undefined) {
|
|
4734
|
+
const values = Object.values(value);
|
|
4735
|
+
return values.length > 0 && values.every(carriesOnlyNulls);
|
|
4736
|
+
}
|
|
4737
|
+
return false;
|
|
4738
|
+
}
|
|
4739
|
+
function nameList(names, cap2 = 12) {
|
|
4740
|
+
const shown = names.slice(0, cap2).map((n) => `\`${n}\``);
|
|
4741
|
+
const rest = names.length - shown.length;
|
|
4742
|
+
return shown.join(", ") + (rest > 0 ? `, and ${rest} more` : "");
|
|
4743
|
+
}
|
|
4744
|
+
function buildFilterWarning(filter, data, outcome) {
|
|
4745
|
+
const present = availableFields(data);
|
|
4746
|
+
const refs = referencedFields(filter);
|
|
4747
|
+
const unknown = refs.top.filter((name) => !present.includes(name) && !appearsBelowTopLevel(data, name));
|
|
4748
|
+
const unchecked = refs.nested.filter((name) => !present.includes(name));
|
|
4749
|
+
const count = countRecords(data);
|
|
4750
|
+
const scope = `${count} record(s)`;
|
|
4751
|
+
const isNotAField = (names) => `${nameList(names)} ${names.length === 1 ? "is not a field" : "are not fields"} on the ${scope} it read`;
|
|
4752
|
+
const soundness = unchecked.length > 0 ? `${nameList(unchecked)} ${unchecked.length === 1 ? "reads" : "read"} below the top level, so ${unchecked.length === 1 ? "it was" : "they were"} not checked against the record keys` : refs.top.length > 0 ? "every field it names exists" : "";
|
|
4753
|
+
const withSoundness = (base) => soundness ? `${base}, and ${soundness}` : base;
|
|
4754
|
+
let detail;
|
|
4755
|
+
let lede;
|
|
4756
|
+
if (outcome.kind === "null-elements") {
|
|
4757
|
+
lede = "returned only null values";
|
|
4758
|
+
const projected = `all ${outcome.count} of the elements it projected are null`;
|
|
4759
|
+
if (unknown.length > 0) {
|
|
4760
|
+
detail = `${projected}, because ${isNotAField(unknown)}`;
|
|
4761
|
+
} else if (unchecked.length > 0) {
|
|
4762
|
+
detail = withSoundness(projected);
|
|
4763
|
+
} else {
|
|
4764
|
+
detail = `${projected}, and every field it names exists — a multi-select list ` + `(\`[A, B]\`) reads each entry against \`Data\` itself, so on a list ` + `result use \`[].[A, B]\` or \`[].{a: A, b: B}\` to read the records`;
|
|
4765
|
+
}
|
|
4766
|
+
} else if (outcome.kind === "null-rows") {
|
|
4767
|
+
lede = "returned only null values";
|
|
4768
|
+
const projected = `every value it projected is null on all ${outcome.count} row(s)`;
|
|
4769
|
+
detail = unknown.length > 0 ? `${projected}, because ${isNotAField(unknown)}` : withSoundness(projected);
|
|
4770
|
+
} else if (outcome.kind === "null-values") {
|
|
4771
|
+
lede = "returned only null values";
|
|
4772
|
+
const projected = `every key it projected (${nameList(outcome.keys)}) is null`;
|
|
4773
|
+
const sameSet = unknown.length === outcome.keys.length && outcome.keys.every((k) => unknown.includes(k));
|
|
4774
|
+
if (sameSet) {
|
|
4775
|
+
detail = `${isNotAField(outcome.keys)}, so every key it projected is null`;
|
|
4776
|
+
} else if (unknown.length > 0) {
|
|
4777
|
+
detail = `${projected}, because ${isNotAField(unknown)}`;
|
|
4778
|
+
} else {
|
|
4779
|
+
detail = withSoundness(`${projected} on all ${scope}`);
|
|
4780
|
+
}
|
|
4781
|
+
} else {
|
|
4782
|
+
lede = "returned nothing";
|
|
4783
|
+
if (unknown.length > 0) {
|
|
4784
|
+
detail = isNotAField(unknown);
|
|
4785
|
+
} else {
|
|
4786
|
+
const selection = refs.hasPredicate ? "no record matched" : "the expression resolved to no value";
|
|
4787
|
+
detail = withSoundness(`${selection} — it read ${scope}`);
|
|
4788
|
+
}
|
|
4789
|
+
}
|
|
4790
|
+
const fields = present.length > 0 ? ` Available fields: ${nameList(present)}.` : "";
|
|
4791
|
+
return `--output-filter ${JSON.stringify(filter)} ${lede}: ${detail}.${fields}`;
|
|
4792
|
+
}
|
|
4793
|
+
function appendWarning(existing, note) {
|
|
4794
|
+
return existing ? `${existing} ${note}` : note;
|
|
4795
|
+
}
|
|
4796
|
+
function applyFilter(data, filter, onWarning) {
|
|
4639
4797
|
const codec = requireJmespath();
|
|
4640
4798
|
let result;
|
|
4641
4799
|
try {
|
|
@@ -4643,9 +4801,34 @@ function applyFilter(data, filter) {
|
|
|
4643
4801
|
} catch (err) {
|
|
4644
4802
|
throw new FilterEvaluationError(filter, err);
|
|
4645
4803
|
}
|
|
4646
|
-
|
|
4804
|
+
const inputCount = countRecords(data);
|
|
4805
|
+
const warn = (outcome) => {
|
|
4806
|
+
if (inputCount === 0)
|
|
4807
|
+
return;
|
|
4808
|
+
const note = buildFilterWarning(filter, data, outcome);
|
|
4809
|
+
getOutputSink().writeErr(`[WARN] ${note}
|
|
4810
|
+
`);
|
|
4811
|
+
onWarning?.(note);
|
|
4812
|
+
};
|
|
4813
|
+
const warnIfAllNull = (records) => {
|
|
4814
|
+
const keys = alwaysNullKeys(records);
|
|
4815
|
+
if (keys.length > 0)
|
|
4816
|
+
warn({ kind: "null-values", keys });
|
|
4817
|
+
};
|
|
4818
|
+
if (result == null) {
|
|
4819
|
+
warn({ kind: "empty" });
|
|
4647
4820
|
return [];
|
|
4821
|
+
}
|
|
4648
4822
|
if (Array.isArray(result)) {
|
|
4823
|
+
if (result.length === 0) {
|
|
4824
|
+
warn({ kind: "empty" });
|
|
4825
|
+
} else if (result.every((entry) => entry === null)) {
|
|
4826
|
+
warn({ kind: "null-elements", count: result.length });
|
|
4827
|
+
} else if (result.every((entry) => Array.isArray(entry)) && carriesOnlyNulls(result)) {
|
|
4828
|
+
warn({ kind: "null-rows", count: result.length });
|
|
4829
|
+
} else {
|
|
4830
|
+
warnIfAllNull(result);
|
|
4831
|
+
}
|
|
4649
4832
|
if (result.length > 0 && typeof result[0] !== "object") {
|
|
4650
4833
|
const fieldMatch = filter.match(/\.(\w+)$/);
|
|
4651
4834
|
const key = fieldMatch ? fieldMatch[1] : "Value";
|
|
@@ -4653,10 +4836,30 @@ function applyFilter(data, filter) {
|
|
|
4653
4836
|
}
|
|
4654
4837
|
return result;
|
|
4655
4838
|
}
|
|
4656
|
-
if (typeof result === "object")
|
|
4839
|
+
if (typeof result === "object") {
|
|
4840
|
+
warnIfAllNull([result]);
|
|
4657
4841
|
return result;
|
|
4842
|
+
}
|
|
4658
4843
|
return { Value: result };
|
|
4659
4844
|
}
|
|
4845
|
+
function filterFailureData(envelope) {
|
|
4846
|
+
const filter = getOutputFilter();
|
|
4847
|
+
const data = envelope.Data;
|
|
4848
|
+
if (!filter || data == null)
|
|
4849
|
+
return;
|
|
4850
|
+
let note;
|
|
4851
|
+
const [filterError, filtered] = catchError(() => applyFilter(data, filter, (n) => {
|
|
4852
|
+
note = n;
|
|
4853
|
+
}));
|
|
4854
|
+
if (filterError) {
|
|
4855
|
+
envelope.Warning = appendWarning(envelope.Warning, `--output-filter was not applied, so Data is shown in full: ${filterError.message}`);
|
|
4856
|
+
return;
|
|
4857
|
+
}
|
|
4858
|
+
envelope.Data = filtered;
|
|
4859
|
+
if (note) {
|
|
4860
|
+
envelope.Warning = appendWarning(envelope.Warning, note);
|
|
4861
|
+
}
|
|
4862
|
+
}
|
|
4660
4863
|
function defaultErrorCodeForResult(result) {
|
|
4661
4864
|
switch (result) {
|
|
4662
4865
|
case RESULTS.AuthenticationError:
|
|
@@ -4739,8 +4942,14 @@ var OutputFormatter;
|
|
|
4739
4942
|
}
|
|
4740
4943
|
const filter = getOutputFilter();
|
|
4741
4944
|
if (filter) {
|
|
4742
|
-
|
|
4945
|
+
let note;
|
|
4946
|
+
const filtered = applyFilter(data.Data, filter, (n) => {
|
|
4947
|
+
note = n;
|
|
4948
|
+
});
|
|
4743
4949
|
data.Data = normalize ? normalizeDataKeys(filtered, verbatim, subtrees && { refs: subtrees.refs, mode: "skip" }) : filtered;
|
|
4950
|
+
if (note) {
|
|
4951
|
+
data.Warning = appendWarning(data.Warning, note);
|
|
4952
|
+
}
|
|
4744
4953
|
}
|
|
4745
4954
|
logOutput(normalizeOutputKeys(data), getOutputFormat(), options?.tableRowStyle);
|
|
4746
4955
|
}
|
|
@@ -4768,6 +4977,7 @@ var OutputFormatter;
|
|
|
4768
4977
|
delete envelope.TelemetryErrorClass;
|
|
4769
4978
|
delete envelope.TelemetryTerminalOutcome;
|
|
4770
4979
|
delete envelope.TelemetryTerminalSignal;
|
|
4980
|
+
filterFailureData(envelope);
|
|
4771
4981
|
if (!suppressTelemetry) {
|
|
4772
4982
|
telemetry.trackEvent(CommonTelemetryEvents.Error, {
|
|
4773
4983
|
result: data.Result,
|
|
@@ -4816,13 +5026,20 @@ var OutputFormatter;
|
|
|
4816
5026
|
OutputFormatter.log = log;
|
|
4817
5027
|
function formatToString(data) {
|
|
4818
5028
|
const filter = getOutputFilter();
|
|
5029
|
+
const envelope = data;
|
|
4819
5030
|
if ("Data" in data && data.Data != null) {
|
|
4820
5031
|
data.Data = normalizeDataKeys(data.Data);
|
|
4821
5032
|
if (filter) {
|
|
4822
|
-
|
|
5033
|
+
let note;
|
|
5034
|
+
data.Data = normalizeDataKeys(applyFilter(data.Data, filter, (n) => {
|
|
5035
|
+
note = n;
|
|
5036
|
+
}));
|
|
5037
|
+
if (note) {
|
|
5038
|
+
envelope.Warning = appendWarning(envelope.Warning, note);
|
|
5039
|
+
}
|
|
4823
5040
|
}
|
|
4824
5041
|
}
|
|
4825
|
-
const output = normalizeOutputKeys(
|
|
5042
|
+
const output = normalizeOutputKeys(envelope);
|
|
4826
5043
|
const lines = [];
|
|
4827
5044
|
const sink = getOutputSink();
|
|
4828
5045
|
printOutput(output, getOutputFormat(), (msg) => {
|
|
@@ -6659,4 +6876,4 @@ function trackShipSucceeded(payload) {
|
|
|
6659
6876
|
}
|
|
6660
6877
|
export { getFileSystem, catchError, carriedInstructions, extractErrorDetails, extractErrorMessage, logger, telemetry, carriedErrorCode, RESULTS, Pagination, OutputFormatter, summarizePlatformBody, Command, Option, isPreviewBuild, processContext, withCompleter, requireConfirmation, DEFAULT_PAGE_SIZE, resolveEnvReference, isGuid, resolveDeprecatedOptionAlias, warnDeprecatedOptionAlias, createHiddenDeprecatedTenantOption, parseLimit, parseOffset, parseBoundedInt, registerPackageMetadataOptions, mapPackageMetadataOptions, PollOutcome, mapPollFailure, pollUntil, getSdkUserAgentToken, addSdkUserAgentHeader, installSdkUserAgentHeader, unsupportedSolutionProjectType, trackShipSucceeded, ensurePackagerFactory };
|
|
6661
6878
|
|
|
6662
|
-
//# debugId=
|
|
6879
|
+
//# debugId=D43FEFD1C135B11764756E2164756E21
|