@uipath/agent-tool 1.204.0-preview.255 → 1.205.0-preview.256
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-26qyqxha.js → index-aa5b4rsq.js} +63 -2228
- package/dist/{index-6dvnvfjv.js → index-ar269vgy.js} +1085 -230
- package/dist/{index-wpcscws8.js → index-f9rnt0r4.js} +5 -4
- package/dist/index.js +9 -8
- package/dist/{memory-runtime-service-x1ndz84n.js → memory-runtime-service-h9wdsd31.js} +5 -4
- package/dist/{packager-tool-vyry6fha.js → packager-tool-1zdqafyj.js} +25 -22
- 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-e9c9f8zx.js → packager-tool-mrrc7jr3.js} +17 -7
- package/dist/{packager-tool-n95spghc.js → packager-tool-sda9pzxz.js} +16 -27
- package/dist/{packager-tool-h4ymyb9t.js → packager-tool-vwsq85y7.js} +123 -27
- package/dist/solution-auth-h0yjcbsy.js +11 -0
- package/dist/tool.js +9 -8
- package/package.json +2 -2
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__require
|
|
3
|
+
} from "./packager-tool-1yh8g550.js";
|
|
4
|
+
|
|
5
|
+
// ../filesystem/src/node.ts
|
|
6
|
+
import { randomUUID } from "node:crypto";
|
|
7
|
+
import { existsSync } from "node:fs";
|
|
8
|
+
import * as fs from "node:fs/promises";
|
|
9
|
+
import * as os from "node:os";
|
|
10
|
+
import * as path from "node:path";
|
|
11
|
+
var LOCK_HEARTBEAT_MS = 5000;
|
|
12
|
+
var LOCK_STALE_MS = 15000;
|
|
13
|
+
var LOCK_MAX_WAIT_MS = 20000;
|
|
14
|
+
var LOCK_MAX_HOLD_MS = 60000;
|
|
15
|
+
var LOCK_RETRY_MIN_MS = 100;
|
|
16
|
+
var LOCK_RETRY_JITTER_MS = 200;
|
|
17
|
+
|
|
18
|
+
class NodeFileSystem {
|
|
19
|
+
path = {
|
|
20
|
+
join: path.join,
|
|
21
|
+
resolve: path.resolve,
|
|
22
|
+
relative: path.relative,
|
|
23
|
+
dirname: path.dirname,
|
|
24
|
+
isAbsolute: path.isAbsolute,
|
|
25
|
+
basename: path.basename
|
|
26
|
+
};
|
|
27
|
+
env = {
|
|
28
|
+
cwd: process.cwd,
|
|
29
|
+
homedir: os.homedir,
|
|
30
|
+
tmpdir: os.tmpdir,
|
|
31
|
+
getenv: (key) => process.env[key]
|
|
32
|
+
};
|
|
33
|
+
utils = {
|
|
34
|
+
open: async (url) => {
|
|
35
|
+
const { default: open } = await import("./index-h8cph72k.js");
|
|
36
|
+
await open(url);
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
async readFile(path2, options) {
|
|
40
|
+
try {
|
|
41
|
+
if (options) {
|
|
42
|
+
return await fs.readFile(path2, "utf-8");
|
|
43
|
+
}
|
|
44
|
+
return await fs.readFile(path2);
|
|
45
|
+
} catch (error) {
|
|
46
|
+
if (this.isEnoent(error))
|
|
47
|
+
return null;
|
|
48
|
+
throw error;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
async writeFile(filePath, data) {
|
|
52
|
+
const dir = path.dirname(filePath);
|
|
53
|
+
if (dir) {
|
|
54
|
+
await fs.mkdir(dir, { recursive: true });
|
|
55
|
+
}
|
|
56
|
+
await fs.writeFile(filePath, data);
|
|
57
|
+
}
|
|
58
|
+
async appendFile(filePath, data) {
|
|
59
|
+
const dir = path.dirname(filePath);
|
|
60
|
+
if (dir) {
|
|
61
|
+
await fs.mkdir(dir, { recursive: true });
|
|
62
|
+
}
|
|
63
|
+
await fs.appendFile(filePath, data);
|
|
64
|
+
}
|
|
65
|
+
async readdir(dirPath) {
|
|
66
|
+
try {
|
|
67
|
+
return await fs.readdir(dirPath);
|
|
68
|
+
} catch (error) {
|
|
69
|
+
if (this.isEnoent(error))
|
|
70
|
+
return [];
|
|
71
|
+
throw error;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
async stat(filePath) {
|
|
75
|
+
try {
|
|
76
|
+
const stats = await fs.stat(filePath);
|
|
77
|
+
return {
|
|
78
|
+
isFile: () => stats.isFile(),
|
|
79
|
+
isDirectory: () => stats.isDirectory(),
|
|
80
|
+
size: stats.size,
|
|
81
|
+
mtimeMs: stats.mtimeMs
|
|
82
|
+
};
|
|
83
|
+
} catch (error) {
|
|
84
|
+
if (this.isEnoent(error))
|
|
85
|
+
return null;
|
|
86
|
+
throw error;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
async exists(filePath) {
|
|
90
|
+
return existsSync(filePath);
|
|
91
|
+
}
|
|
92
|
+
async mkdir(dirPath) {
|
|
93
|
+
await fs.mkdir(dirPath, { recursive: true });
|
|
94
|
+
}
|
|
95
|
+
async acquireLock(lockPath) {
|
|
96
|
+
const canonicalPath = await this.canonicalizeLockTarget(lockPath);
|
|
97
|
+
const lockFile = `${canonicalPath}.lock`;
|
|
98
|
+
const ownerId = randomUUID();
|
|
99
|
+
const start = Date.now();
|
|
100
|
+
while (true) {
|
|
101
|
+
try {
|
|
102
|
+
await fs.writeFile(lockFile, ownerId, { flag: "wx" });
|
|
103
|
+
return this.createLockRelease(lockFile, ownerId);
|
|
104
|
+
} catch (error) {
|
|
105
|
+
if (!this.hasErrnoCode(error, "EEXIST")) {
|
|
106
|
+
throw error;
|
|
107
|
+
}
|
|
108
|
+
const stats = await fs.stat(lockFile).catch(() => null);
|
|
109
|
+
if (stats && Date.now() - stats.mtimeMs > LOCK_STALE_MS) {
|
|
110
|
+
const reclaimed = await fs.rm(lockFile, { force: true }).then(() => true).catch(() => false);
|
|
111
|
+
if (reclaimed)
|
|
112
|
+
continue;
|
|
113
|
+
}
|
|
114
|
+
if (Date.now() - start > LOCK_MAX_WAIT_MS) {
|
|
115
|
+
throw new Error(`ELOCKED: timed out waiting for lock on ${canonicalPath}`);
|
|
116
|
+
}
|
|
117
|
+
await new Promise((resolve2) => setTimeout(resolve2, LOCK_RETRY_MIN_MS + Math.random() * LOCK_RETRY_JITTER_MS));
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
async canonicalizeLockTarget(lockPath) {
|
|
122
|
+
const absolute = path.resolve(lockPath);
|
|
123
|
+
const fullReal = await fs.realpath(absolute).catch(() => null);
|
|
124
|
+
if (fullReal)
|
|
125
|
+
return fullReal;
|
|
126
|
+
const parent = path.dirname(absolute);
|
|
127
|
+
const base = path.basename(absolute);
|
|
128
|
+
const canonicalParent = await fs.realpath(parent).catch(() => parent);
|
|
129
|
+
return path.join(canonicalParent, base);
|
|
130
|
+
}
|
|
131
|
+
createLockRelease(lockFile, ownerId) {
|
|
132
|
+
const heartbeatStart = Date.now();
|
|
133
|
+
let heartbeatTimer;
|
|
134
|
+
let stopped = false;
|
|
135
|
+
const stopHeartbeat = () => {
|
|
136
|
+
stopped = true;
|
|
137
|
+
if (heartbeatTimer)
|
|
138
|
+
clearTimeout(heartbeatTimer);
|
|
139
|
+
};
|
|
140
|
+
const scheduleNextHeartbeat = () => {
|
|
141
|
+
if (stopped)
|
|
142
|
+
return;
|
|
143
|
+
if (Date.now() - heartbeatStart >= LOCK_MAX_HOLD_MS) {
|
|
144
|
+
stopped = true;
|
|
145
|
+
return;
|
|
146
|
+
}
|
|
147
|
+
heartbeatTimer = setTimeout(() => {
|
|
148
|
+
runHeartbeat();
|
|
149
|
+
}, LOCK_HEARTBEAT_MS);
|
|
150
|
+
heartbeatTimer.unref?.();
|
|
151
|
+
};
|
|
152
|
+
const runHeartbeat = async () => {
|
|
153
|
+
if (stopped)
|
|
154
|
+
return;
|
|
155
|
+
const current = await fs.readFile(lockFile, "utf-8").catch(() => null);
|
|
156
|
+
if (stopped)
|
|
157
|
+
return;
|
|
158
|
+
if (current !== ownerId) {
|
|
159
|
+
stopped = true;
|
|
160
|
+
return;
|
|
161
|
+
}
|
|
162
|
+
const now = Date.now() / 1000;
|
|
163
|
+
await fs.utimes(lockFile, now, now).catch(() => {});
|
|
164
|
+
scheduleNextHeartbeat();
|
|
165
|
+
};
|
|
166
|
+
scheduleNextHeartbeat();
|
|
167
|
+
let released = false;
|
|
168
|
+
return async () => {
|
|
169
|
+
if (released)
|
|
170
|
+
return;
|
|
171
|
+
released = true;
|
|
172
|
+
stopHeartbeat();
|
|
173
|
+
const current = await fs.readFile(lockFile, "utf-8").catch(() => null);
|
|
174
|
+
if (current === ownerId) {
|
|
175
|
+
await fs.rm(lockFile, { force: true });
|
|
176
|
+
}
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
async rm(filePath) {
|
|
180
|
+
await fs.rm(filePath, { recursive: true, force: true });
|
|
181
|
+
}
|
|
182
|
+
async rename(oldPath, newPath) {
|
|
183
|
+
await fs.rename(oldPath, newPath);
|
|
184
|
+
}
|
|
185
|
+
async isSymbolicLink(filePath) {
|
|
186
|
+
try {
|
|
187
|
+
return (await fs.lstat(filePath)).isSymbolicLink();
|
|
188
|
+
} catch (error) {
|
|
189
|
+
if (this.isEnoent(error) || this.hasErrnoCode(error, "ENOTDIR")) {
|
|
190
|
+
return false;
|
|
191
|
+
}
|
|
192
|
+
throw error;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
async realpath(filePath) {
|
|
196
|
+
try {
|
|
197
|
+
return await fs.realpath(filePath);
|
|
198
|
+
} catch (error) {
|
|
199
|
+
if (this.isEnoent(error))
|
|
200
|
+
return filePath;
|
|
201
|
+
throw error;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
async getTempDir() {
|
|
205
|
+
return await fs.mkdtemp(path.join(os.tmpdir(), "uipath-fs-"));
|
|
206
|
+
}
|
|
207
|
+
async copyDirectory(sourcePath, destPath) {
|
|
208
|
+
const sourceStats = await this.stat(sourcePath);
|
|
209
|
+
if (!sourceStats) {
|
|
210
|
+
throw new Error(`Source directory does not exist: ${sourcePath}`);
|
|
211
|
+
}
|
|
212
|
+
if (!sourceStats.isDirectory()) {
|
|
213
|
+
throw new Error(`Source path is not a directory: ${sourcePath}`);
|
|
214
|
+
}
|
|
215
|
+
await this.mkdir(destPath);
|
|
216
|
+
const entries = await this.readdir(sourcePath);
|
|
217
|
+
for (const entry of entries) {
|
|
218
|
+
const srcEntry = path.join(sourcePath, entry);
|
|
219
|
+
const destEntry = path.join(destPath, entry);
|
|
220
|
+
const entryStats = await this.stat(srcEntry);
|
|
221
|
+
if (!entryStats)
|
|
222
|
+
continue;
|
|
223
|
+
if (entryStats.isDirectory()) {
|
|
224
|
+
await this.copyDirectory(srcEntry, destEntry);
|
|
225
|
+
} else if (entryStats.isFile()) {
|
|
226
|
+
const content = await this.readFile(srcEntry);
|
|
227
|
+
if (content !== null) {
|
|
228
|
+
await this.writeFile(destEntry, content);
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
isEnoent(error) {
|
|
234
|
+
return this.hasErrnoCode(error, "ENOENT");
|
|
235
|
+
}
|
|
236
|
+
hasErrnoCode(error, code) {
|
|
237
|
+
return typeof error === "object" && error !== null && "code" in error && error.code === code;
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
// ../filesystem/src/index.ts
|
|
242
|
+
var fsInstance = new NodeFileSystem;
|
|
243
|
+
var getFileSystem = () => fsInstance;
|
|
244
|
+
|
|
245
|
+
export { getFileSystem };
|
|
246
|
+
|
|
247
|
+
//# debugId=82E3494FD83B7EB464756E2164756E21
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
readUipxFile
|
|
3
|
-
} from "./packager-tool-
|
|
3
|
+
} from "./packager-tool-jd8cfevc.js";
|
|
4
4
|
import {
|
|
5
5
|
RESULTS,
|
|
6
6
|
addSdkUserAgentHeader,
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
installSdkUserAgentHeader,
|
|
10
10
|
logger,
|
|
11
11
|
summarizePlatformBody
|
|
12
|
-
} from "./packager-tool-
|
|
12
|
+
} from "./packager-tool-fza8z686.js";
|
|
13
13
|
import {
|
|
14
14
|
zipSync
|
|
15
15
|
} from "./packager-tool-b098y4a2.js";
|
|
@@ -578,7 +578,7 @@ var package_default = {
|
|
|
578
578
|
name: "@uipath/solution-sdk",
|
|
579
579
|
author: "UiPath",
|
|
580
580
|
license: "SEE LICENSE IN LICENSE.txt",
|
|
581
|
-
version: "1.
|
|
581
|
+
version: "1.205.0-preview.256",
|
|
582
582
|
repository: {
|
|
583
583
|
type: "git",
|
|
584
584
|
url: "https://github.com/UiPath/cli.git",
|
|
@@ -607,6 +607,14 @@ var package_default = {
|
|
|
607
607
|
"./auth": {
|
|
608
608
|
types: "./dist/src/solution-auth.d.ts",
|
|
609
609
|
default: "./dist/solution-auth.js"
|
|
610
|
+
},
|
|
611
|
+
"./deployments": {
|
|
612
|
+
types: "./dist/src/deployment-search.d.ts",
|
|
613
|
+
default: "./dist/deployment-search.js"
|
|
614
|
+
},
|
|
615
|
+
"./packages": {
|
|
616
|
+
types: "./dist/src/package-search.d.ts",
|
|
617
|
+
default: "./dist/package-search.js"
|
|
610
618
|
}
|
|
611
619
|
},
|
|
612
620
|
bin: {
|
|
@@ -617,7 +625,7 @@ var package_default = {
|
|
|
617
625
|
],
|
|
618
626
|
private: false,
|
|
619
627
|
scripts: {
|
|
620
|
-
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",
|
|
628
|
+
build: "bun build ./src/index.ts ./src/resources/index.ts ./src/solution-auth.ts ./src/deployment-search.ts ./src/package-search.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",
|
|
621
629
|
generate: "bun run src/scripts/generate-sdk.ts",
|
|
622
630
|
lint: "biome check .",
|
|
623
631
|
test: "vitest run",
|
|
@@ -629,7 +637,8 @@ var package_default = {
|
|
|
629
637
|
"@uipath/common": "workspace:*",
|
|
630
638
|
"@uipath/filesystem": "workspace:*",
|
|
631
639
|
"@uipath/orchestrator-sdk": "workspace:*",
|
|
632
|
-
"@uipath/
|
|
640
|
+
"@uipath/pipelines-sdk": "workspace:*",
|
|
641
|
+
"@uipath/resource-builder-sdk": "2025.11.0-alpha6584-4367",
|
|
633
642
|
"@uipath/solutionpackager-tool-core": "workspace:*",
|
|
634
643
|
"@uipath/studioweb-sdk": "workspace:*",
|
|
635
644
|
"@types/node": "^25.5.2",
|
|
@@ -4597,7 +4606,8 @@ var DEFAULT_EXCLUDED_DIR_NAMES = new Set([
|
|
|
4597
4606
|
"__pycache__",
|
|
4598
4607
|
".git",
|
|
4599
4608
|
".local",
|
|
4600
|
-
".flow-sdk"
|
|
4609
|
+
".flow-sdk",
|
|
4610
|
+
".flow-debug"
|
|
4601
4611
|
]);
|
|
4602
4612
|
var DEFAULT_EXCLUDED_FILE_PATTERNS = [
|
|
4603
4613
|
/^\.env($|\..+)/
|
|
@@ -5352,4 +5362,4 @@ async function uploadOrOverwriteSolution(config, organizationName, fileBufferOrP
|
|
|
5352
5362
|
}
|
|
5353
5363
|
export { BASE_PATH, Configuration, DefaultConfig, BaseAPI, ResponseError, FetchError, RequiredError, COLLECTION_FORMATS, querystring, exists, mapValues, canConsumeForm, JSONApiResponse, VoidApiResponse, BlobApiResponse, TextApiResponse, SDK_USER_AGENT, getAvailablePublishLocationsV2, instanceOfResponseDictionaryDto, ResponseDictionaryDtoFromJSON, ResponseDictionaryDtoFromJSONTyped, ResponseDictionaryDtoToJSON, ResponseDictionaryDtoToJSONTyped, instanceOfBlobFileAccessDto, BlobFileAccessDtoFromJSON, BlobFileAccessDtoFromJSONTyped, BlobFileAccessDtoToJSON, BlobFileAccessDtoToJSONTyped, instanceOfCreateConfigurationCommand, CreateConfigurationCommandFromJSON, CreateConfigurationCommandFromJSONTyped, CreateConfigurationCommandToJSON, CreateConfigurationCommandToJSONTyped, DeploymentActivationStatus, instanceOfDeploymentActivationStatus, DeploymentActivationStatusFromJSON, DeploymentActivationStatusFromJSONTyped, DeploymentActivationStatusToJSON, DeploymentActivationStatusToJSONTyped, OverwriteType, instanceOfOverwriteType, OverwriteTypeFromJSON, OverwriteTypeFromJSONTyped, OverwriteTypeToJSON, OverwriteTypeToJSONTyped, instanceOfOverwrite, OverwriteFromJSON, OverwriteFromJSONTyped, OverwriteToJSON, OverwriteToJSONTyped, instanceOfResourceOverwrite, ResourceOverwriteFromJSON, ResourceOverwriteFromJSONTyped, ResourceOverwriteToJSON, ResourceOverwriteToJSONTyped, instanceOfRuntimeSetup, RuntimeSetupFromJSON, RuntimeSetupFromJSONTyped, RuntimeSetupToJSON, RuntimeSetupToJSONTyped, instanceOfDeploymentAutoRequest, DeploymentAutoRequestFromJSON, DeploymentAutoRequestFromJSONTyped, DeploymentAutoRequestToJSON, DeploymentAutoRequestToJSONTyped, instanceOfDeploymentDto, DeploymentDtoFromJSON, DeploymentDtoFromJSONTyped, DeploymentDtoToJSON, DeploymentDtoToJSONTyped, WorkflowAction, instanceOfWorkflowAction, WorkflowActionFromJSON, WorkflowActionFromJSONTyped, WorkflowActionToJSON, WorkflowActionToJSONTyped, DeploymentOperation, instanceOfDeploymentOperation, DeploymentOperationFromJSON, DeploymentOperationFromJSONTyped, DeploymentOperationToJSON, DeploymentOperationToJSONTyped, PackageVersionOrigin, instanceOfPackageVersionOrigin, PackageVersionOriginFromJSON, PackageVersionOriginFromJSONTyped, PackageVersionOriginToJSON, PackageVersionOriginToJSONTyped, DeploymentOperationStatus, instanceOfDeploymentOperationStatus, DeploymentOperationStatusFromJSON, DeploymentOperationStatusFromJSONTyped, DeploymentOperationStatusToJSON, DeploymentOperationStatusToJSONTyped, DeploymentUpgradeType, instanceOfDeploymentUpgradeType, DeploymentUpgradeTypeFromJSON, DeploymentUpgradeTypeFromJSONTyped, DeploymentUpgradeTypeToJSON, DeploymentUpgradeTypeToJSONTyped, DeploymentStatus, instanceOfDeploymentStatus, DeploymentStatusFromJSON, DeploymentStatusFromJSONTyped, DeploymentStatusToJSON, DeploymentStatusToJSONTyped, instanceOfDeploymentItemDto, DeploymentItemDtoFromJSON, DeploymentItemDtoFromJSONTyped, DeploymentItemDtoToJSON, DeploymentItemDtoToJSONTyped, instanceOfDeploymentRequest, DeploymentRequestFromJSON, DeploymentRequestFromJSONTyped, DeploymentRequestToJSON, DeploymentRequestToJSONTyped, DeploymentResourceValidationAction, instanceOfDeploymentResourceValidationAction, DeploymentResourceValidationActionFromJSON, DeploymentResourceValidationActionFromJSONTyped, DeploymentResourceValidationActionToJSON, DeploymentResourceValidationActionToJSONTyped, ResetConfigurationSource, instanceOfResetConfigurationSource, ResetConfigurationSourceFromJSON, ResetConfigurationSourceFromJSONTyped, ResetConfigurationSourceToJSON, ResetConfigurationSourceToJSONTyped, DeploymentUpgradeState, instanceOfDeploymentUpgradeState, DeploymentUpgradeStateFromJSON, DeploymentUpgradeStateFromJSONTyped, DeploymentUpgradeStateToJSON, DeploymentUpgradeStateToJSONTyped, instanceOfDeploymentResourceReplacementDto, DeploymentResourceReplacementDtoFromJSON, DeploymentResourceReplacementDtoFromJSONTyped, DeploymentResourceReplacementDtoToJSON, DeploymentResourceReplacementDtoToJSONTyped, instanceOfFolderInfo, FolderInfoFromJSON, FolderInfoFromJSONTyped, FolderInfoToJSON, FolderInfoToJSONTyped, instanceOfDeploymentResourceInfo, DeploymentResourceInfoFromJSON, DeploymentResourceInfoFromJSONTyped, DeploymentResourceInfoToJSON, DeploymentResourceInfoToJSONTyped, DeploymentResourceValidationErrorKind, instanceOfDeploymentResourceValidationErrorKind, DeploymentResourceValidationErrorKindFromJSON, DeploymentResourceValidationErrorKindFromJSONTyped, DeploymentResourceValidationErrorKindToJSON, DeploymentResourceValidationErrorKindToJSONTyped, DeploymentResourceValidationErrorLevel, instanceOfDeploymentResourceValidationErrorLevel, DeploymentResourceValidationErrorLevelFromJSON, DeploymentResourceValidationErrorLevelFromJSONTyped, DeploymentResourceValidationErrorLevelToJSON, DeploymentResourceValidationErrorLevelToJSONTyped, DeploymentType, instanceOfDeploymentType, DeploymentTypeFromJSON, DeploymentTypeFromJSONTyped, DeploymentTypeToJSON, DeploymentTypeToJSONTyped, instanceOfDeploymentSearchItemDto2, DeploymentSearchItemDto2FromJSON, DeploymentSearchItemDto2FromJSONTyped, DeploymentSearchItemDto2ToJSON, DeploymentSearchItemDto2ToJSONTyped, instanceOfServiceMessage, ServiceMessageFromJSON, ServiceMessageFromJSONTyped, ServiceMessageToJSON, ServiceMessageToJSONTyped, instanceOfResourceValidationError, ResourceValidationErrorFromJSON, ResourceValidationErrorFromJSONTyped, ResourceValidationErrorToJSON, ResourceValidationErrorToJSONTyped, instanceOfResourceValidationDto, ResourceValidationDtoFromJSON, ResourceValidationDtoFromJSONTyped, ResourceValidationDtoToJSON, ResourceValidationDtoToJSONTyped, instanceOfDeploymentValidationResultDto, DeploymentValidationResultDtoFromJSON, DeploymentValidationResultDtoFromJSONTyped, DeploymentValidationResultDtoToJSON, DeploymentValidationResultDtoToJSONTyped, OrderByDirection, instanceOfOrderByDirection, OrderByDirectionFromJSON, OrderByDirectionFromJSONTyped, OrderByDirectionToJSON, OrderByDirectionToJSONTyped, instanceOfDeploymentsSearchRequest2, DeploymentsSearchRequest2FromJSON, DeploymentsSearchRequest2FromJSONTyped, DeploymentsSearchRequest2ToJSON, DeploymentsSearchRequest2ToJSONTyped, ExtendedPackageVersionState, instanceOfExtendedPackageVersionState, ExtendedPackageVersionStateFromJSON, ExtendedPackageVersionStateFromJSONTyped, ExtendedPackageVersionStateToJSON, ExtendedPackageVersionStateToJSONTyped, instanceOfLocationDto, LocationDtoFromJSON, LocationDtoFromJSONTyped, LocationDtoToJSON, LocationDtoToJSONTyped, instanceOfPackageInfo, PackageInfoFromJSON, PackageInfoFromJSONTyped, PackageInfoToJSON, PackageInfoToJSONTyped, instanceOfResourceStats, ResourceStatsFromJSON, ResourceStatsFromJSONTyped, ResourceStatsToJSON, ResourceStatsToJSONTyped, instanceOfPackageVersionResourceDto, PackageVersionResourceDtoFromJSON, PackageVersionResourceDtoFromJSONTyped, PackageVersionResourceDtoToJSON, PackageVersionResourceDtoToJSONTyped, instanceOfPackageVersionComponentsDto, PackageVersionComponentsDtoFromJSON, PackageVersionComponentsDtoFromJSONTyped, PackageVersionComponentsDtoToJSON, PackageVersionComponentsDtoToJSONTyped, instanceOfPackageVersionInfoDto, PackageVersionInfoDtoFromJSON, PackageVersionInfoDtoFromJSONTyped, PackageVersionInfoDtoToJSON, PackageVersionInfoDtoToJSONTyped, instanceOfPageInfoDtoOfDeploymentResourceInfo, PageInfoDtoOfDeploymentResourceInfoFromJSON, PageInfoDtoOfDeploymentResourceInfoFromJSONTyped, PageInfoDtoOfDeploymentResourceInfoToJSON, PageInfoDtoOfDeploymentResourceInfoToJSONTyped, instanceOfPageInfoDtoOfDeploymentSearchItemDto2, PageInfoDtoOfDeploymentSearchItemDto2FromJSON, PageInfoDtoOfDeploymentSearchItemDto2FromJSONTyped, PageInfoDtoOfDeploymentSearchItemDto2ToJSON, PageInfoDtoOfDeploymentSearchItemDto2ToJSONTyped, instanceOfPageInfoDtoOfPackageInfo, PageInfoDtoOfPackageInfoFromJSON, PageInfoDtoOfPackageInfoFromJSONTyped, PageInfoDtoOfPackageInfoToJSON, PageInfoDtoOfPackageInfoToJSONTyped, instanceOfProblemDetails, ProblemDetailsFromJSON, ProblemDetailsFromJSONTyped, ProblemDetailsToJSON, ProblemDetailsToJSONTyped, instanceOfProjectCreateRequest, ProjectCreateRequestFromJSON, ProjectCreateRequestFromJSONTyped, ProjectCreateRequestToJSON, ProjectCreateRequestToJSONTyped, ProjectImportStatus, instanceOfProjectImportStatus, ProjectImportStatusFromJSON, ProjectImportStatusFromJSONTyped, ProjectImportStatusToJSON, ProjectImportStatusToJSONTyped, instanceOfProjectDto, ProjectDtoFromJSON2 as ProjectDtoFromJSON, ProjectDtoFromJSONTyped3 as ProjectDtoFromJSONTyped, ProjectDtoToJSON2 as ProjectDtoToJSON, ProjectDtoToJSONTyped2 as ProjectDtoToJSONTyped, instanceOfSearchFilter, SearchFilterFromJSON, SearchFilterFromJSONTyped, SearchFilterToJSON, SearchFilterToJSONTyped, SolutionDeploymentAction, instanceOfSolutionDeploymentAction, SolutionDeploymentActionFromJSON, SolutionDeploymentActionFromJSONTyped, SolutionDeploymentActionToJSON, SolutionDeploymentActionToJSONTyped, ConfigurationsApi, DeploymentsApi, PackagesApi, ProjectsApi, SearchApi, SettingsApi, StudioWebIncompatibleProjectError, collectFiles, createZipFromDir, finalizeZip64, UipignoreExcludesProjectError, bundleSolution, buildSolutionPackageFromDir, isDebugProvisioningTerminal, isDebugProvisioningSucceeded, getProjectDebugStatus, searchPackageVersions, getStudioWebSolutionProjects, listStudioWebSolutions, SolutionUploadHttpError, isSolutionUploadHttpError, buildSolutionUploadFailureOutput, solutionExistsOnStudioWeb, importSolution, overwriteSolution, uploadOrOverwriteSolution };
|
|
5354
5364
|
|
|
5355
|
-
//# debugId=
|
|
5365
|
+
//# debugId=B7FE1F5CE2DDB78864756E2164756E21
|
|
@@ -2,32 +2,33 @@ import {
|
|
|
2
2
|
bundleSolution,
|
|
3
3
|
finalizeZip64,
|
|
4
4
|
uploadOrOverwriteSolution
|
|
5
|
-
} from "./packager-tool-
|
|
5
|
+
} from "./packager-tool-mrrc7jr3.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
|