@platforma-sdk/package-builder-lib 1.4.0 → 1.4.2
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/_virtual/_rolldown/runtime.cjs +2 -3
- package/dist/_virtual/_rolldown/runtime.js +1 -2
- package/dist/core/archive.cjs +1 -2
- package/dist/core/archive.cjs.map +1 -1
- package/dist/core/archive.js +1 -2
- package/dist/core/conda/builder.cjs +1 -2
- package/dist/core/conda/builder.cjs.map +1 -1
- package/dist/core/conda/builder.js +1 -2
- package/dist/core/conda/builder.js.map +1 -1
- package/dist/core/conda/validate-spec.cjs +1 -2
- package/dist/core/conda/validate-spec.js +1 -2
- package/dist/core/core.cjs +11 -12
- package/dist/core/core.cjs.map +1 -1
- package/dist/core/core.d.ts +3 -5
- package/dist/core/core.d.ts.map +1 -1
- package/dist/core/core.js +13 -13
- package/dist/core/core.js.map +1 -1
- package/dist/core/docker-conda.cjs +1 -2
- package/dist/core/docker-conda.js +1 -2
- package/dist/core/docker-coverage.cjs +1 -2
- package/dist/core/docker-coverage.d.ts +1 -3
- package/dist/core/docker-coverage.d.ts.map +1 -1
- package/dist/core/docker-coverage.js +3 -3
- package/dist/core/docker-coverage.js.map +1 -1
- package/dist/core/docker-python.cjs +1 -2
- package/dist/core/docker-python.js +1 -2
- package/dist/core/docker.cjs +3 -5
- package/dist/core/docker.cjs.map +1 -1
- package/dist/core/docker.js +3 -5
- package/dist/core/docker.js.map +1 -1
- package/dist/core/envs.cjs +1 -2
- package/dist/core/envs.d.ts +0 -1
- package/dist/core/envs.js +1 -2
- package/dist/core/package-info.cjs +13 -12
- package/dist/core/package-info.cjs.map +1 -1
- package/dist/core/package-info.d.ts +4 -5
- package/dist/core/package-info.d.ts.map +1 -1
- package/dist/core/package-info.js +13 -12
- package/dist/core/package-info.js.map +1 -1
- package/dist/core/paths.cjs +1 -2
- package/dist/core/paths.cjs.map +1 -1
- package/dist/core/paths.js +1 -2
- package/dist/core/paths.js.map +1 -1
- package/dist/core/push-guard.cjs +1 -2
- package/dist/core/push-guard.cjs.map +1 -1
- package/dist/core/push-guard.d.ts +0 -2
- package/dist/core/push-guard.d.ts.map +1 -1
- package/dist/core/push-guard.js +1 -2
- package/dist/core/resolver.cjs +1 -2
- package/dist/core/resolver.js +1 -2
- package/dist/core/schemas/artifacts.cjs +1 -2
- package/dist/core/schemas/artifacts.d.ts +1 -169
- package/dist/core/schemas/artifacts.d.ts.map +1 -1
- package/dist/core/schemas/artifacts.js +1 -2
- package/dist/core/schemas/entrypoints.cjs +1 -2
- package/dist/core/schemas/entrypoints.d.ts +1 -352
- package/dist/core/schemas/entrypoints.d.ts.map +1 -1
- package/dist/core/schemas/entrypoints.js +1 -2
- package/dist/core/schemas/sw-json.cjs +1 -2
- package/dist/core/schemas/sw-json.js +1 -2
- package/dist/core/storage.cjs +1 -2
- package/dist/core/storage.js +1 -2
- package/dist/core/sw-json-render.cjs +1 -2
- package/dist/core/sw-json-render.js +1 -2
- package/dist/core/util.cjs +1 -2
- package/dist/core/util.cjs.map +1 -1
- package/dist/core/util.d.ts +0 -1
- package/dist/core/util.js +1 -2
- package/dist/defaults.cjs +1 -2
- package/dist/defaults.d.ts +0 -1
- package/dist/defaults.js +1 -2
- package/dist/index.cjs +1 -2
- package/dist/index.d.ts +0 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -2
- package/package.json +20 -15
- package/src/core/__tests__/docker-build.test.ts +51 -0
- package/src/core/conda/builder.ts +1 -1
- package/src/core/docker.ts +2 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"push-guard.d.ts","names":[],"sources":["../../src/core/push-guard.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"push-guard.d.ts","names":[],"sources":["../../src/core/push-guard.ts"],"mappings":"A,YAeY;;EAEV;;EAEA;;EAEA;;EAEA;;;wBAIc,uBAAuB,QAAQ"}
|
package/dist/core/push-guard.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PL_DOCKER_NO_AUTOPUSH, isCI } from "./envs.js";
|
|
2
2
|
import { CLIError } from "./util.js";
|
|
3
|
-
|
|
3
|
+
// src/core/push-guard.ts
|
|
4
4
|
/** Throws when a CI run is about to reference docker images it never pushed. */
|
|
5
5
|
function assertDockerPushIntent(intent) {
|
|
6
6
|
if (!isCI()) return;
|
|
@@ -11,7 +11,6 @@ function assertDockerPushIntent(intent) {
|
|
|
11
11
|
The usual cause is "private": true in package.json: auto-push is gated on !isPrivate, and software packages must never be private.
|
|
12
12
|
If this package really must build images without publishing them, say so with --docker-no-autopush (or ${PL_DOCKER_NO_AUTOPUSH}=1).`);
|
|
13
13
|
}
|
|
14
|
-
//#endregion
|
|
15
14
|
export { assertDockerPushIntent };
|
|
16
15
|
|
|
17
16
|
//# sourceMappingURL=push-guard.js.map
|
package/dist/core/resolver.cjs
CHANGED
|
@@ -5,7 +5,7 @@ let node_fs = require("node:fs");
|
|
|
5
5
|
node_fs = require_runtime.__toESM(node_fs, 1);
|
|
6
6
|
let node_path = require("node:path");
|
|
7
7
|
node_path = require_runtime.__toESM(node_path, 1);
|
|
8
|
-
|
|
8
|
+
// src/core/resolver.ts
|
|
9
9
|
const compiledSoftwareSuffix = ".sw.json";
|
|
10
10
|
const compiledAssetSuffix = ".as.json";
|
|
11
11
|
function descriptorFilePath(packageRoot, entrypointType, entrypointName) {
|
|
@@ -92,7 +92,6 @@ function resolveRunEnvironment(logger, packageRoot, packageName, envName, requir
|
|
|
92
92
|
throw new Error("renderer logic error: resolveRunEnvironment does not cover all run environment types");
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
|
-
//#endregion
|
|
96
95
|
exports.compiledAssetSuffix = compiledAssetSuffix;
|
|
97
96
|
exports.compiledSoftwareSuffix = compiledSoftwareSuffix;
|
|
98
97
|
exports.descriptorFilePath = descriptorFilePath;
|
package/dist/core/resolver.js
CHANGED
|
@@ -2,7 +2,7 @@ import { CLIError, assertNever, findInstalledModule, formatZodIssues, rSplit } f
|
|
|
2
2
|
import { swJsonSchema } from "./schemas/sw-json.js";
|
|
3
3
|
import fs from "node:fs";
|
|
4
4
|
import path from "node:path";
|
|
5
|
-
|
|
5
|
+
// src/core/resolver.ts
|
|
6
6
|
const compiledSoftwareSuffix = ".sw.json";
|
|
7
7
|
const compiledAssetSuffix = ".as.json";
|
|
8
8
|
function descriptorFilePath(packageRoot, entrypointType, entrypointName) {
|
|
@@ -89,7 +89,6 @@ function resolveRunEnvironment(logger, packageRoot, packageName, envName, requir
|
|
|
89
89
|
throw new Error("renderer logic error: resolveRunEnvironment does not cover all run environment types");
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
|
-
//#endregion
|
|
93
92
|
export { compiledAssetSuffix, compiledSoftwareSuffix, descriptorFilePath, readDescriptorFile, readSwJsonFile, resolveDependency, resolveRunEnvironment };
|
|
94
93
|
|
|
95
94
|
//# sourceMappingURL=resolver.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_defaults = require("../../defaults.cjs");
|
|
2
2
|
const require_util = require("../util.cjs");
|
|
3
3
|
let zod_v4 = require("zod/v4");
|
|
4
|
-
|
|
4
|
+
// src/core/schemas/artifacts.ts
|
|
5
5
|
const artifactTypes = [
|
|
6
6
|
"asset",
|
|
7
7
|
"environment",
|
|
@@ -116,7 +116,6 @@ const anyArtifactSchema = zod_v4.z.discriminatedUnion("type", [
|
|
|
116
116
|
dockerSchema
|
|
117
117
|
]);
|
|
118
118
|
const artifactIndexSchema = zod_v4.z.record(zod_v4.z.string(), anyArtifactSchema);
|
|
119
|
-
//#endregion
|
|
120
119
|
exports.anyArtifactSchema = anyArtifactSchema;
|
|
121
120
|
exports.archiveArtifactTypes = archiveArtifactTypes;
|
|
122
121
|
exports.artifactIDSchema = artifactIDSchema;
|
|
@@ -1,52 +1,13 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "../util.js";
|
|
2
2
|
import { z } from "zod/v4";
|
|
3
|
-
declare namespace artifacts_d_exports {
|
|
4
|
-
export { anyArtifactSchema, anyArtifactType, archiveArtifactTypes, archiveRules, artifactIDSchema, artifactIDString, artifactIndexSchema, artifactIndexType, artifactType, artifactTypes, assetSchema, assetType, binarySchema, binaryType, condaSchema, condaType, crossplatformTypes, dockerArchitectures, dockerAutogenTypes, dockerSchema, dockerType, environmentSchema, environmentType, isBuildable, isCrossPlatform, javaSchema, javaType, pythonSchema, pythonToolsetName, pythonToolsetSchema, pythonToolsets, pythonType, rSchema, rType, registry, registryOrRef, registrySchema, runEnvironmentType, runEnvironmentTypes, withId, withType };
|
|
5
|
-
}
|
|
6
3
|
export declare const artifactTypes: readonly ["asset", "environment", "binary", "java", "python", "R", "docker", "conda"];
|
|
7
4
|
export type artifactType = (typeof artifactTypes)[number];
|
|
8
|
-
export declare const archiveArtifactTypes: artifactType[];
|
|
9
|
-
export declare const crossplatformTypes: artifactType[];
|
|
10
|
-
export declare const dockerAutogenTypes: artifactType[];
|
|
11
|
-
export declare const dockerArchitectures: ArchType[];
|
|
12
|
-
export declare function isBuildable(aType: artifactType): boolean;
|
|
13
|
-
export declare function isCrossPlatform(aType: artifactType): boolean;
|
|
14
|
-
export declare const runEnvironmentTypes: readonly ["java", "python", "R"];
|
|
15
|
-
export type runEnvironmentType = (typeof runEnvironmentTypes)[number];
|
|
16
|
-
export declare const pythonToolsets: readonly ["pip"];
|
|
17
|
-
export type pythonToolsetName = (typeof pythonToolsets)[number];
|
|
18
5
|
export declare const registrySchema: z.ZodObject<{
|
|
19
6
|
name: z.ZodString;
|
|
20
7
|
downloadURL: z.ZodOptional<z.ZodString>;
|
|
21
8
|
storageURL: z.ZodOptional<z.ZodString>;
|
|
22
9
|
}, z.core.$strict>;
|
|
23
10
|
export type registry = z.infer<typeof registrySchema>;
|
|
24
|
-
export declare const registryOrRef: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
25
|
-
name: z.ZodString;
|
|
26
|
-
downloadURL: z.ZodOptional<z.ZodString>;
|
|
27
|
-
storageURL: z.ZodOptional<z.ZodString>;
|
|
28
|
-
}, z.core.$strict>]>;
|
|
29
|
-
declare const archiveRulesSchema: z.ZodObject<{
|
|
30
|
-
registry: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
31
|
-
name: z.ZodString;
|
|
32
|
-
downloadURL: z.ZodOptional<z.ZodString>;
|
|
33
|
-
storageURL: z.ZodOptional<z.ZodString>;
|
|
34
|
-
}, z.core.$strict>]>>;
|
|
35
|
-
name: z.ZodOptional<z.ZodString>;
|
|
36
|
-
version: z.ZodOptional<z.ZodString>;
|
|
37
|
-
root: z.ZodString;
|
|
38
|
-
roots: z.ZodRecord<z.ZodEnum<{
|
|
39
|
-
"linux-aarch64": "linux-aarch64";
|
|
40
|
-
"linux-x64": "linux-x64";
|
|
41
|
-
"macosx-aarch64": "macosx-aarch64";
|
|
42
|
-
"macosx-x64": "macosx-x64";
|
|
43
|
-
"windows-aarch64": "windows-aarch64";
|
|
44
|
-
"windows-x64": "windows-x64";
|
|
45
|
-
}> & z.core.$partial, z.ZodString>;
|
|
46
|
-
}, z.core.$strip>;
|
|
47
|
-
export type archiveRules = z.infer<typeof archiveRulesSchema>;
|
|
48
|
-
export declare const artifactIDSchema: z.ZodString;
|
|
49
|
-
export type artifactIDString = z.infer<typeof artifactIDSchema>;
|
|
50
11
|
export declare const assetSchema: z.ZodObject<{
|
|
51
12
|
registry: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
52
13
|
name: z.ZodString;
|
|
@@ -120,10 +81,6 @@ export declare const javaSchema: z.ZodObject<{
|
|
|
120
81
|
environment: z.ZodString;
|
|
121
82
|
}, z.core.$strip>;
|
|
122
83
|
export type javaType = z.infer<typeof javaSchema>;
|
|
123
|
-
export declare const pythonToolsetSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
124
|
-
toolset: z.ZodLiteral<"pip">;
|
|
125
|
-
requirements: z.ZodString;
|
|
126
|
-
}, z.core.$strict>]>;
|
|
127
84
|
export declare const pythonSchema: z.ZodObject<{
|
|
128
85
|
registry: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
129
86
|
name: z.ZodString;
|
|
@@ -311,135 +268,10 @@ export declare const anyArtifactSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
311
268
|
pkg: z.ZodDefault<z.ZodString>;
|
|
312
269
|
}, z.core.$strip>]>;
|
|
313
270
|
export type anyArtifactType = z.infer<typeof anyArtifactSchema>;
|
|
314
|
-
export declare const artifactIndexSchema: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
315
|
-
registry: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
316
|
-
name: z.ZodString;
|
|
317
|
-
downloadURL: z.ZodOptional<z.ZodString>;
|
|
318
|
-
storageURL: z.ZodOptional<z.ZodString>;
|
|
319
|
-
}, z.core.$strict>]>>;
|
|
320
|
-
name: z.ZodOptional<z.ZodString>;
|
|
321
|
-
version: z.ZodOptional<z.ZodString>;
|
|
322
|
-
root: z.ZodString;
|
|
323
|
-
type: z.ZodLiteral<"asset">;
|
|
324
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
325
|
-
registry: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
326
|
-
name: z.ZodString;
|
|
327
|
-
downloadURL: z.ZodOptional<z.ZodString>;
|
|
328
|
-
storageURL: z.ZodOptional<z.ZodString>;
|
|
329
|
-
}, z.core.$strict>]>>;
|
|
330
|
-
name: z.ZodOptional<z.ZodString>;
|
|
331
|
-
version: z.ZodOptional<z.ZodString>;
|
|
332
|
-
roots: z.ZodRecord<z.ZodEnum<{
|
|
333
|
-
"linux-aarch64": "linux-aarch64";
|
|
334
|
-
"linux-x64": "linux-x64";
|
|
335
|
-
"macosx-aarch64": "macosx-aarch64";
|
|
336
|
-
"macosx-x64": "macosx-x64";
|
|
337
|
-
"windows-aarch64": "windows-aarch64";
|
|
338
|
-
"windows-x64": "windows-x64";
|
|
339
|
-
}> & z.core.$partial, z.ZodString>;
|
|
340
|
-
type: z.ZodLiteral<"environment">;
|
|
341
|
-
runtime: z.ZodEnum<{
|
|
342
|
-
R: "R";
|
|
343
|
-
java: "java";
|
|
344
|
-
python: "python";
|
|
345
|
-
}>;
|
|
346
|
-
"r-version": z.ZodOptional<z.ZodString>;
|
|
347
|
-
"python-version": z.ZodOptional<z.ZodString>;
|
|
348
|
-
"java-version": z.ZodOptional<z.ZodString>;
|
|
349
|
-
envVars: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
350
|
-
binDir: z.ZodString;
|
|
351
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
352
|
-
registry: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
353
|
-
name: z.ZodString;
|
|
354
|
-
downloadURL: z.ZodOptional<z.ZodString>;
|
|
355
|
-
storageURL: z.ZodOptional<z.ZodString>;
|
|
356
|
-
}, z.core.$strict>]>>;
|
|
357
|
-
name: z.ZodOptional<z.ZodString>;
|
|
358
|
-
version: z.ZodOptional<z.ZodString>;
|
|
359
|
-
roots: z.ZodRecord<z.ZodEnum<{
|
|
360
|
-
"linux-aarch64": "linux-aarch64";
|
|
361
|
-
"linux-x64": "linux-x64";
|
|
362
|
-
"macosx-aarch64": "macosx-aarch64";
|
|
363
|
-
"macosx-x64": "macosx-x64";
|
|
364
|
-
"windows-aarch64": "windows-aarch64";
|
|
365
|
-
"windows-x64": "windows-x64";
|
|
366
|
-
}> & z.core.$partial, z.ZodString>;
|
|
367
|
-
type: z.ZodLiteral<"binary">;
|
|
368
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
369
|
-
registry: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
370
|
-
name: z.ZodString;
|
|
371
|
-
downloadURL: z.ZodOptional<z.ZodString>;
|
|
372
|
-
storageURL: z.ZodOptional<z.ZodString>;
|
|
373
|
-
}, z.core.$strict>]>>;
|
|
374
|
-
name: z.ZodOptional<z.ZodString>;
|
|
375
|
-
version: z.ZodOptional<z.ZodString>;
|
|
376
|
-
root: z.ZodString;
|
|
377
|
-
type: z.ZodLiteral<"java">;
|
|
378
|
-
environment: z.ZodString;
|
|
379
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
380
|
-
registry: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
381
|
-
name: z.ZodString;
|
|
382
|
-
downloadURL: z.ZodOptional<z.ZodString>;
|
|
383
|
-
storageURL: z.ZodOptional<z.ZodString>;
|
|
384
|
-
}, z.core.$strict>]>>;
|
|
385
|
-
name: z.ZodOptional<z.ZodString>;
|
|
386
|
-
version: z.ZodOptional<z.ZodString>;
|
|
387
|
-
root: z.ZodString;
|
|
388
|
-
"docker-registry": z.ZodDefault<z.ZodString>;
|
|
389
|
-
pkg: z.ZodDefault<z.ZodString>;
|
|
390
|
-
type: z.ZodLiteral<"python">;
|
|
391
|
-
environment: z.ZodString;
|
|
392
|
-
dependencies: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
393
|
-
toolset: z.ZodLiteral<"pip">;
|
|
394
|
-
requirements: z.ZodString;
|
|
395
|
-
}, z.core.$strict>]>>;
|
|
396
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
397
|
-
registry: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
398
|
-
name: z.ZodString;
|
|
399
|
-
downloadURL: z.ZodOptional<z.ZodString>;
|
|
400
|
-
storageURL: z.ZodOptional<z.ZodString>;
|
|
401
|
-
}, z.core.$strict>]>>;
|
|
402
|
-
name: z.ZodOptional<z.ZodString>;
|
|
403
|
-
version: z.ZodOptional<z.ZodString>;
|
|
404
|
-
root: z.ZodString;
|
|
405
|
-
type: z.ZodLiteral<"R">;
|
|
406
|
-
environment: z.ZodString;
|
|
407
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
408
|
-
registry: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
409
|
-
name: z.ZodString;
|
|
410
|
-
downloadURL: z.ZodOptional<z.ZodString>;
|
|
411
|
-
storageURL: z.ZodOptional<z.ZodString>;
|
|
412
|
-
}, z.core.$strict>]>>;
|
|
413
|
-
name: z.ZodOptional<z.ZodString>;
|
|
414
|
-
version: z.ZodOptional<z.ZodString>;
|
|
415
|
-
roots: z.ZodRecord<z.ZodEnum<{
|
|
416
|
-
"linux-aarch64": "linux-aarch64";
|
|
417
|
-
"linux-x64": "linux-x64";
|
|
418
|
-
"macosx-aarch64": "macosx-aarch64";
|
|
419
|
-
"macosx-x64": "macosx-x64";
|
|
420
|
-
"windows-aarch64": "windows-aarch64";
|
|
421
|
-
"windows-x64": "windows-x64";
|
|
422
|
-
}> & z.core.$partial, z.ZodString>;
|
|
423
|
-
"docker-registry": z.ZodDefault<z.ZodString>;
|
|
424
|
-
pkg: z.ZodDefault<z.ZodString>;
|
|
425
|
-
type: z.ZodLiteral<"conda">;
|
|
426
|
-
"micromamba-version": z.ZodDefault<z.ZodString>;
|
|
427
|
-
"conda-root-dir": z.ZodDefault<z.ZodString>;
|
|
428
|
-
spec: z.ZodDefault<z.ZodString>;
|
|
429
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
430
|
-
type: z.ZodLiteral<"docker">;
|
|
431
|
-
registry: z.ZodDefault<z.ZodString>;
|
|
432
|
-
context: z.ZodString;
|
|
433
|
-
dockerfile: z.ZodDefault<z.ZodString>;
|
|
434
|
-
pkg: z.ZodDefault<z.ZodString>;
|
|
435
|
-
}, z.core.$strip>]>>;
|
|
436
|
-
export type artifactIndexType = z.infer<typeof artifactIndexSchema>;
|
|
437
271
|
export type withType<Typ, Orig> = Orig & {
|
|
438
272
|
type: Typ;
|
|
439
273
|
};
|
|
440
274
|
export type withId<T> = T & {
|
|
441
275
|
id: string;
|
|
442
276
|
};
|
|
443
|
-
//#endregion
|
|
444
|
-
export { artifacts_d_exports };
|
|
445
277
|
//# sourceMappingURL=artifacts.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"artifacts.d.ts","names":[],"sources":["../../../src/core/schemas/artifacts.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"artifacts.d.ts","names":[],"sources":["../../../src/core/schemas/artifacts.ts"],"mappings":";;qBAKa;YAUD,uBAAuB;qBA+BtB,gBAAc,EAAA;;;;GAIzB,EAAA,KAAA;YACU,WAAW,EAAE,aAAa;qBA6EzB,aAAW,EAAA;;;;;;;;;;GAGb,EAAA,KAAA;YACC,YAAY,EAAE,aAAa;qBAE1B,mBAAiB,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2B5B,EAAA,KAAA;YAEU,kBAAkB,EAAE,aAAa;qBAEhC,cAAY,EAAA;;;;;;;;;;;;;;;;;GAEvB,EAAA,KAAA;YACU,aAAa,EAAE,aAAa;qBAE3B,YAAU,EAAA;;;;;;;;;;;GAGrB,EAAA,KAAA;YACU,WAAW,EAAE,aAAa;qBASzB,cAAY,EAAA;;;;;;;;;;;;;;;;;GAQrB,EAAA,KAAA;YACQ,aAAa,EAAE,aAAa;qBAE3B,SAAO,EAAA;;;;;;;;;;;GAGlB,EAAA,KAAA;YACU,QAAQ,EAAE,aAAa;qBAEtB,aAAW,EAAA;;;;;;;;;;;;;;;;;;;;;;GAmBpB,EAAA,KAAA;YACQ,YAAY,EAAE,aAAa;qBAE1B,cAAY,EAAA;;;;;;GAoCvB,EAAA,KAAA;YACU,aAAa,EAAE,aAAa;qBAE3B,mBAAiB,EAAA,uBAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAS5B,EAAA,KAAA;YAEU,kBAAkB,EAAE,aAAa;YAKjC,SAAS,KAAK,QAAQ;EAAS,MAAM;;YACrC,OAAO,KAAK;EAAM"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BIN_REGISTRY_DOWNLOAD_URL, BIN_REGISTRY_NAME, CONDA_DATA_LOCATION, CONDA_MICROMAMBA_VERSION, CONDA_SOURCE_ENV_SPEC_FILE, DOCKER_DOCKERFILE, DOCKER_PLACEHOLDER_PKG, DOCKER_REGISTRY } from "../../defaults.js";
|
|
2
2
|
import { AllPlatforms } from "../util.js";
|
|
3
3
|
import { z } from "zod/v4";
|
|
4
|
-
|
|
4
|
+
// src/core/schemas/artifacts.ts
|
|
5
5
|
const artifactTypes = [
|
|
6
6
|
"asset",
|
|
7
7
|
"environment",
|
|
@@ -116,7 +116,6 @@ const anyArtifactSchema = z.discriminatedUnion("type", [
|
|
|
116
116
|
dockerSchema
|
|
117
117
|
]);
|
|
118
118
|
const artifactIndexSchema = z.record(z.string(), anyArtifactSchema);
|
|
119
|
-
//#endregion
|
|
120
119
|
export { anyArtifactSchema, archiveArtifactTypes, artifactIDSchema, artifactIndexSchema, artifactTypes, assetSchema, binarySchema, condaSchema, crossplatformTypes, dockerAutogenTypes, dockerSchema, environmentSchema, isBuildable, isCrossPlatform, javaSchema, pythonSchema, pythonToolsetSchema, rSchema, registryOrRef, registrySchema, runEnvironmentTypes };
|
|
121
120
|
|
|
122
121
|
//# sourceMappingURL=artifacts.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_util = require("../util.cjs");
|
|
2
2
|
const require_artifacts = require("./artifacts.cjs");
|
|
3
3
|
let zod_v4 = require("zod/v4");
|
|
4
|
-
|
|
4
|
+
// src/core/schemas/entrypoints.ts
|
|
5
5
|
const envVarsSchema = zod_v4.z.array(zod_v4.z.string().regex(/=/, "full environment variable specification is required: <var-name>=<var-value>, e.g.: IS_CI=yes"));
|
|
6
6
|
const EnyrypointReferencePattern = /^(?<fullName>(?:(?<scope>@[a-z0-9-.]+)\/)?(?<name>[a-z0-9-.]+))\/(?<path>.*)$/;
|
|
7
7
|
const referenceSchema = zod_v4.z.string().regex(EnyrypointReferencePattern, "entrypoint reference must contain full package name and path to the file inside");
|
|
@@ -35,7 +35,6 @@ const entrypointSchema = zod_v4.z.strictObject({
|
|
|
35
35
|
path: ["reference | asset | binary | environment | docker"]
|
|
36
36
|
});
|
|
37
37
|
const entrypointListSchema = zod_v4.z.record(zod_v4.z.string().regex(/[-_a-z0-9.]/).describe("name of entrypoint descriptor, client should import to use this entrypoint (assets.importSoftware)"), entrypointSchema);
|
|
38
|
-
//#endregion
|
|
39
38
|
exports.EnyrypointReferencePattern = EnyrypointReferencePattern;
|
|
40
39
|
exports.entrypointListSchema = entrypointListSchema;
|
|
41
40
|
exports.entrypointSchema = entrypointSchema;
|