@uipath/agent-tool 1.204.0 → 1.205.0-preview.258
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 +5 -5
- package/dist/{embedded-file-reader-v8c2yj2a.js → embedded-file-reader-r66242ey.js} +2 -2
- package/dist/executor-tool.js +8 -7
- package/dist/{index-wdwv17hz.js → index-3acyr1r7.js} +5 -4
- package/dist/{index-26qyqxha.js → index-aa5b4rsq.js} +63 -2228
- package/dist/{index-6dvnvfjv.js → index-ar269vgy.js} +1085 -230
- package/dist/index.js +9 -8
- package/dist/{memory-runtime-service-x1ndz84n.js → memory-runtime-service-h9wdsd31.js} +5 -4
- package/dist/{packager-tool-cfkfh4xq.js → packager-tool-4fq1ta8t.js} +16 -27
- package/dist/{packager-tool-xxd71jja.js → packager-tool-607v4t05.js} +10803 -25506
- package/dist/packager-tool-7sbsrgd5.js +28 -0
- package/dist/{packager-tool-2tf3hrem.js → packager-tool-fza8z686.js} +44 -261
- package/dist/{packager-tool-z8ryp7pb.js → packager-tool-jd8cfevc.js} +4 -3
- package/dist/packager-tool-je2re4j6.js +247 -0
- package/dist/{packager-tool-6ymwf9tt.js → packager-tool-n6kextff.js} +25 -22
- package/dist/{packager-tool-h4ymyb9t.js → packager-tool-vwsq85y7.js} +123 -27
- package/dist/{packager-tool-s41pfpn7.js → packager-tool-yv1n0tph.js} +17 -7
- package/dist/solution-auth-h0yjcbsy.js +11 -0
- package/dist/tool.js +9 -8
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -2,17 +2,18 @@
|
|
|
2
2
|
import {
|
|
3
3
|
metadata,
|
|
4
4
|
registerCommands
|
|
5
|
-
} from "./packager-tool-
|
|
5
|
+
} from "./packager-tool-n6kextff.js";
|
|
6
6
|
import"./packager-tool-4mna26cc.js";
|
|
7
7
|
import"./packager-tool-c23zrhj8.js";
|
|
8
|
-
import"./packager-tool-
|
|
9
|
-
import"./packager-tool-
|
|
10
|
-
import"./packager-tool-
|
|
11
|
-
import"./packager-tool-
|
|
12
|
-
import"./packager-tool-
|
|
8
|
+
import"./packager-tool-4fq1ta8t.js";
|
|
9
|
+
import"./packager-tool-yv1n0tph.js";
|
|
10
|
+
import"./packager-tool-jd8cfevc.js";
|
|
11
|
+
import"./packager-tool-607v4t05.js";
|
|
12
|
+
import"./packager-tool-vwsq85y7.js";
|
|
13
13
|
import {
|
|
14
14
|
Command
|
|
15
|
-
} from "./packager-tool-
|
|
15
|
+
} from "./packager-tool-fza8z686.js";
|
|
16
|
+
import"./packager-tool-je2re4j6.js";
|
|
16
17
|
import"./packager-tool-thr9mncj.js";
|
|
17
18
|
import"./packager-tool-b098y4a2.js";
|
|
18
19
|
import"./packager-tool-1yh8g550.js";
|
|
@@ -23,4 +24,4 @@ program.name(metadata.commandPrefix).description(metadata.description).version(m
|
|
|
23
24
|
await registerCommands(program);
|
|
24
25
|
await program.parseAsync(process.argv);
|
|
25
26
|
|
|
26
|
-
//# debugId=
|
|
27
|
+
//# debugId=36093355EFD0A42564756E2164756E21
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getLoginStatusAsync
|
|
3
|
-
} from "./packager-tool-
|
|
3
|
+
} from "./packager-tool-vwsq85y7.js";
|
|
4
4
|
import {
|
|
5
5
|
catchError
|
|
6
|
-
} from "./packager-tool-
|
|
6
|
+
} from "./packager-tool-fza8z686.js";
|
|
7
|
+
import"./packager-tool-je2re4j6.js";
|
|
7
8
|
import {
|
|
8
9
|
__require
|
|
9
10
|
} from "./packager-tool-1yh8g550.js";
|
|
@@ -76,7 +77,7 @@ async function readJson(response, context) {
|
|
|
76
77
|
return parsed;
|
|
77
78
|
}
|
|
78
79
|
async function resolveRuntimeFolder(input) {
|
|
79
|
-
const { resolveFolder } = await import("./index-
|
|
80
|
+
const { resolveFolder } = await import("./index-aa5b4rsq.js");
|
|
80
81
|
const [resolveError, folder] = await catchError(resolveFolder(input));
|
|
81
82
|
if (resolveError) {
|
|
82
83
|
if (input.folderPath !== undefined && input.folderKey === undefined && resolveError.message.startsWith("Folder not found")) {
|
|
@@ -135,4 +136,4 @@ export {
|
|
|
135
136
|
resolveRuntimeFolder
|
|
136
137
|
};
|
|
137
138
|
|
|
138
|
-
//# debugId=
|
|
139
|
+
//# debugId=FC865CFAF864B89564756E2164756E21
|
|
@@ -2,32 +2,33 @@ import {
|
|
|
2
2
|
bundleSolution,
|
|
3
3
|
finalizeZip64,
|
|
4
4
|
uploadOrOverwriteSolution
|
|
5
|
-
} from "./packager-tool-
|
|
5
|
+
} from "./packager-tool-yv1n0tph.js";
|
|
6
6
|
import {
|
|
7
7
|
findSolutionFile,
|
|
8
8
|
updateSolutionFile,
|
|
9
9
|
updateUipxSolutionId
|
|
10
|
-
} from "./packager-tool-
|
|
10
|
+
} from "./packager-tool-jd8cfevc.js";
|
|
11
11
|
import {
|
|
12
|
-
AttachmentsApi,
|
|
13
12
|
JobAttachmentUploadError,
|
|
14
13
|
PersonalWorkspacesApi,
|
|
15
14
|
createApiClient,
|
|
16
15
|
uploadJobAttachment
|
|
17
|
-
} from "./packager-tool-
|
|
16
|
+
} from "./packager-tool-607v4t05.js";
|
|
18
17
|
import {
|
|
19
18
|
getLoginStatusAsync
|
|
20
|
-
} from "./packager-tool-
|
|
19
|
+
} from "./packager-tool-vwsq85y7.js";
|
|
21
20
|
import {
|
|
22
21
|
OutputFormatter,
|
|
23
22
|
catchError,
|
|
24
23
|
extractErrorDetails,
|
|
25
24
|
extractErrorMessage,
|
|
26
|
-
getFileSystem,
|
|
27
25
|
logger,
|
|
28
26
|
parseAttachmentSpec,
|
|
29
27
|
readAttachmentSpecs
|
|
30
|
-
} from "./packager-tool-
|
|
28
|
+
} from "./packager-tool-fza8z686.js";
|
|
29
|
+
import {
|
|
30
|
+
getFileSystem
|
|
31
|
+
} from "./packager-tool-je2re4j6.js";
|
|
31
32
|
import {
|
|
32
33
|
zipSync
|
|
33
34
|
} from "./packager-tool-b098y4a2.js";
|
|
@@ -728,7 +729,7 @@ class AgentDebugService {
|
|
|
728
729
|
const bound = await this.uploadAttachments(options.attachments ?? [], auth.tenantName, options.signal);
|
|
729
730
|
const inputs = applyAttachmentReferences(options.inputs, bound);
|
|
730
731
|
if (options.signal?.aborted) {
|
|
731
|
-
|
|
732
|
+
this.warnAttachmentsLeftBehind(bound);
|
|
732
733
|
throw new AgentDebugCancelledError;
|
|
733
734
|
}
|
|
734
735
|
const [startError, started] = await catchError(this.startDebugJob(auth, folderKey, projectId, inputs, options.signal));
|
|
@@ -741,7 +742,7 @@ class AgentDebugService {
|
|
|
741
742
|
attachments: bound
|
|
742
743
|
});
|
|
743
744
|
}
|
|
744
|
-
|
|
745
|
+
this.warnAttachmentsLeftBehind(bound);
|
|
745
746
|
throw startError;
|
|
746
747
|
}
|
|
747
748
|
const job = await asCancellation(() => this.pollJob(auth, folderKey, started.jobKey, options), started.jobKey);
|
|
@@ -777,10 +778,10 @@ class AgentDebugService {
|
|
|
777
778
|
}
|
|
778
779
|
});
|
|
779
780
|
if (failures.length > 0) {
|
|
780
|
-
|
|
781
|
+
this.warnAttachmentsLeftBehind(bound);
|
|
781
782
|
for (const { input: input2, reason: reason2 } of failures) {
|
|
782
|
-
if (reason2 instanceof JobAttachmentUploadError && reason2.stage === "upload" && reason2.attachmentId !== undefined
|
|
783
|
-
logger.warn(`Attachment record ${reason2.attachmentId} for '${input2.path}'
|
|
783
|
+
if (reason2 instanceof JobAttachmentUploadError && reason2.stage === "upload" && reason2.attachmentId !== undefined) {
|
|
784
|
+
logger.warn(`Attachment record ${reason2.attachmentId} for '${input2.path}' is left behind after its upload failed.`);
|
|
784
785
|
}
|
|
785
786
|
}
|
|
786
787
|
const [{ input, reason }] = failures;
|
|
@@ -792,23 +793,11 @@ class AgentDebugService {
|
|
|
792
793
|
}
|
|
793
794
|
return bound;
|
|
794
795
|
}
|
|
795
|
-
|
|
796
|
+
warnAttachmentsLeftBehind(bound) {
|
|
796
797
|
if (bound.length === 0) {
|
|
797
798
|
return;
|
|
798
799
|
}
|
|
799
|
-
|
|
800
|
-
if (clientError) {
|
|
801
|
-
logger.warn(`Could not clean up attachments ${bound.map((b) => b.reference.ID).join(", ")}: ${clientError.message}`);
|
|
802
|
-
return;
|
|
803
|
-
}
|
|
804
|
-
for (const b of bound) {
|
|
805
|
-
const [deleteError] = await catchError(api.attachmentsDeleteById({ key: b.reference.ID }));
|
|
806
|
-
if (deleteError) {
|
|
807
|
-
logger.warn(`Could not delete attachment ${b.reference.ID}: ${deleteError.message}`);
|
|
808
|
-
} else {
|
|
809
|
-
logger.info(`Deleted attachment ${b.reference.ID}: the debug job did not start.`);
|
|
810
|
-
}
|
|
811
|
-
}
|
|
800
|
+
logger.warn(`The debug job did not start, so attachments ${bound.map((b) => b.reference.ID).join(", ")} are left on the tenant for retention to reclaim.`);
|
|
812
801
|
}
|
|
813
802
|
async resolveProjectId(projectPath) {
|
|
814
803
|
const preparer = new AgentLocalWorkspaceEvalPreparer;
|
|
@@ -985,4 +974,4 @@ function parseOutput(outputArguments) {
|
|
|
985
974
|
|
|
986
975
|
export { migrateLegacyToolGuardrailPolicies, AgentProjectService, resolveStudioWebConfig, AgentLocalWorkspaceEvalPreparer, AttachmentInputError, toAttachmentSummaries, prepareAttachmentInputs, AgentDebugCancelledError, AgentDebugAttachmentUploadError, AgentDebugStartOutcomeUnknownError, AgentDebugService };
|
|
987
976
|
|
|
988
|
-
//# debugId=
|
|
977
|
+
//# debugId=7E5DF11FED4C587664756E2164756E21
|