@vercel/python-analysis 0.11.0 → 0.12.0
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/index.cjs +26 -9
- package/dist/index.d.ts +2 -2
- package/dist/index.js +23 -9
- package/dist/manifest/pipfile/schema.d.ts +6 -6
- package/dist/manifest/pyproject/schema.d.ts +23 -11
- package/dist/manifest/pyproject/schema.zod.d.ts +159 -0
- package/dist/manifest/pyproject/types.d.ts +19 -0
- package/dist/manifest/requirement/schema.d.ts +4 -4
- package/dist/manifest/uv-config/schema.d.ts +3 -3
- package/dist/util/fs.d.ts +0 -1
- package/dist/wasm/host-utils.d.ts +0 -1
- package/dist/wasm/interfaces/wasi-cli-environment.d.ts +1 -1
- package/dist/wasm/interfaces/wasi-cli-exit.d.ts +1 -1
- package/dist/wasm/interfaces/wasi-cli-stderr.d.ts +1 -1
- package/dist/wasm/interfaces/wasi-cli-stdin.d.ts +1 -1
- package/dist/wasm/interfaces/wasi-cli-stdout.d.ts +1 -1
- package/dist/wasm/interfaces/wasi-cli-terminal-input.d.ts +1 -1
- package/dist/wasm/interfaces/wasi-cli-terminal-output.d.ts +1 -1
- package/dist/wasm/interfaces/wasi-cli-terminal-stderr.d.ts +1 -1
- package/dist/wasm/interfaces/wasi-cli-terminal-stdin.d.ts +1 -1
- package/dist/wasm/interfaces/wasi-cli-terminal-stdout.d.ts +1 -1
- package/dist/wasm/interfaces/wasi-clocks-monotonic-clock.d.ts +4 -0
- package/dist/wasm/interfaces/wasi-clocks-wall-clock.d.ts +1 -1
- package/dist/wasm/interfaces/wasi-filesystem-preopens.d.ts +1 -1
- package/dist/wasm/interfaces/wasi-filesystem-types.d.ts +1 -1
- package/dist/wasm/interfaces/wasi-io-error.d.ts +1 -1
- package/dist/wasm/interfaces/wasi-io-poll.d.ts +2 -1
- package/dist/wasm/interfaces/wasi-io-streams.d.ts +1 -1
- package/dist/wasm/interfaces/wasi-random-insecure-seed.d.ts +1 -1
- package/dist/wasm/vercel_python_analysis.core.wasm +0 -0
- package/dist/wasm/vercel_python_analysis.core2.wasm +0 -0
- package/dist/wasm/vercel_python_analysis.core3.wasm +0 -0
- package/dist/wasm/vercel_python_analysis.d.ts +36 -34
- package/dist/wasm/vercel_python_analysis.js +200 -127
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -48,6 +48,9 @@ __export(src_exports, {
|
|
|
48
48
|
PyProjectProjectSchema: () => PyProjectProjectSchema,
|
|
49
49
|
PyProjectTomlSchema: () => PyProjectTomlSchema,
|
|
50
50
|
PyProjectToolSectionSchema: () => PyProjectToolSectionSchema,
|
|
51
|
+
PyProjectToolVercelFastapiSectionSchema: () => PyProjectToolVercelFastapiSectionSchema,
|
|
52
|
+
PyProjectToolVercelFastapiStaticSectionSchema: () => PyProjectToolVercelFastapiStaticSectionSchema,
|
|
53
|
+
PyProjectToolVercelSectionSchema: () => PyProjectToolVercelSectionSchema,
|
|
51
54
|
PythonAnalysisError: () => PythonAnalysisError,
|
|
52
55
|
PythonBuild: () => PythonBuild,
|
|
53
56
|
PythonConfigKind: () => PythonConfigKind,
|
|
@@ -1008,8 +1011,18 @@ var dependencyGroupEntrySchema = import_zod4.z.union([
|
|
|
1008
1011
|
var pyProjectDependencyGroupsSchema = import_zod4.z.record(
|
|
1009
1012
|
import_zod4.z.array(dependencyGroupEntrySchema)
|
|
1010
1013
|
);
|
|
1014
|
+
var pyProjectToolVercelFastapiStaticSectionSchema = import_zod4.z.object({
|
|
1015
|
+
cdn: import_zod4.z.boolean().optional()
|
|
1016
|
+
});
|
|
1017
|
+
var pyProjectToolVercelFastapiSectionSchema = import_zod4.z.object({
|
|
1018
|
+
static: pyProjectToolVercelFastapiStaticSectionSchema.optional()
|
|
1019
|
+
});
|
|
1020
|
+
var pyProjectToolVercelSectionSchema = import_zod4.z.object({
|
|
1021
|
+
fastapi: pyProjectToolVercelFastapiSectionSchema.optional()
|
|
1022
|
+
});
|
|
1011
1023
|
var pyProjectToolSectionSchema = import_zod4.z.object({
|
|
1012
|
-
uv: uvConfigSchema.optional()
|
|
1024
|
+
uv: uvConfigSchema.optional(),
|
|
1025
|
+
vercel: pyProjectToolVercelSectionSchema.optional()
|
|
1013
1026
|
});
|
|
1014
1027
|
var pyProjectTomlSchema = import_zod4.z.object({
|
|
1015
1028
|
project: pyProjectProjectSchema.optional(),
|
|
@@ -1027,8 +1040,11 @@ var LicenseObjectSchema = licenseObjectSchema.passthrough();
|
|
|
1027
1040
|
var LicenseSchema = licenseSchema;
|
|
1028
1041
|
var PyProjectProjectSchema = pyProjectProjectSchema.passthrough();
|
|
1029
1042
|
var PyProjectDependencyGroupsSchema = pyProjectDependencyGroupsSchema;
|
|
1043
|
+
var PyProjectToolVercelSectionSchema = pyProjectToolVercelSectionSchema;
|
|
1044
|
+
var PyProjectToolVercelFastapiSectionSchema = pyProjectToolVercelFastapiSectionSchema;
|
|
1045
|
+
var PyProjectToolVercelFastapiStaticSectionSchema = pyProjectToolVercelFastapiStaticSectionSchema;
|
|
1030
1046
|
var PyProjectToolSectionSchema = pyProjectToolSectionSchema.passthrough();
|
|
1031
|
-
var PyProjectTomlSchema = pyProjectTomlSchema.passthrough();
|
|
1047
|
+
var PyProjectTomlSchema = pyProjectTomlSchema.extend({ tool: PyProjectToolSectionSchema.optional() }).passthrough();
|
|
1032
1048
|
|
|
1033
1049
|
// src/manifest/requirements-txt-parser.ts
|
|
1034
1050
|
var import_posix2 = require("path/posix");
|
|
@@ -1126,13 +1142,11 @@ async function convertRequirementsToPyprojectToml(fileContent, options) {
|
|
|
1126
1142
|
}
|
|
1127
1143
|
}
|
|
1128
1144
|
}
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
};
|
|
1135
|
-
}
|
|
1145
|
+
pyproject.project = {
|
|
1146
|
+
name: "app",
|
|
1147
|
+
version: "0.1.0",
|
|
1148
|
+
dependencies: deps
|
|
1149
|
+
};
|
|
1136
1150
|
const uv = {};
|
|
1137
1151
|
const indexes = buildIndexEntries(parsed.pipOptions);
|
|
1138
1152
|
if (indexes.length > 0) {
|
|
@@ -2403,6 +2417,9 @@ var HashDigestSchema = hashDigestSchema;
|
|
|
2403
2417
|
PyProjectProjectSchema,
|
|
2404
2418
|
PyProjectTomlSchema,
|
|
2405
2419
|
PyProjectToolSectionSchema,
|
|
2420
|
+
PyProjectToolVercelFastapiSectionSchema,
|
|
2421
|
+
PyProjectToolVercelFastapiStaticSectionSchema,
|
|
2422
|
+
PyProjectToolVercelSectionSchema,
|
|
2406
2423
|
PythonAnalysisError,
|
|
2407
2424
|
PythonBuild,
|
|
2408
2425
|
PythonConfigKind,
|
package/dist/index.d.ts
CHANGED
|
@@ -18,8 +18,8 @@ export { evaluateMarker, isWheelCompatible, } from './manifest/wheel-compat';
|
|
|
18
18
|
export type { PythonSelectionResult, PythonVersionSelectionResult, } from './manifest/python-selector';
|
|
19
19
|
export { selectPython, selectPythonVersion } from './manifest/python-selector';
|
|
20
20
|
export { PythonAnalysisError } from './util/error';
|
|
21
|
-
export { LicenseObjectSchema, LicenseSchema, PersonSchema, PyProjectBuildSystemSchema, PyProjectDependencyGroupsSchema, PyProjectProjectSchema, PyProjectToolSectionSchema, PyProjectTomlSchema, ReadmeObjectSchema, ReadmeSchema, } from './manifest/pyproject/schema';
|
|
22
|
-
export type { DependencyGroupEntry, DependencyGroupInclude, License, LicenseObject, Person, PyProjectBuildSystem, PyProjectDependencyGroups, PyProjectProject, PyProjectToml, PyProjectToolSection, Readme, ReadmeObject, } from './manifest/pyproject/types';
|
|
21
|
+
export { LicenseObjectSchema, LicenseSchema, PersonSchema, PyProjectBuildSystemSchema, PyProjectDependencyGroupsSchema, PyProjectProjectSchema, PyProjectToolSectionSchema, PyProjectTomlSchema, ReadmeObjectSchema, ReadmeSchema, PyProjectToolVercelFastapiSectionSchema, PyProjectToolVercelFastapiStaticSectionSchema, PyProjectToolVercelSectionSchema, } from './manifest/pyproject/schema';
|
|
22
|
+
export type { DependencyGroupEntry, DependencyGroupInclude, License, LicenseObject, Person, PyProjectBuildSystem, PyProjectDependencyGroups, PyProjectProject, PyProjectToml, PyProjectToolSection, Readme, ReadmeObject, PyProjectToolVercelFastapiSection, PyProjectToolVercelFastapiStaticSection, PyProjectToolVercelSection, } from './manifest/pyproject/types';
|
|
23
23
|
export { UvConfigSchema, UvConfigWorkspaceSchema, UvIndexEntrySchema, } from './manifest/uv-config/schema';
|
|
24
24
|
export type { UvConfig, UvConfigWorkspace, UvIndexEntry, } from './manifest/uv-config/types';
|
|
25
25
|
export { PipfileDependencyDetailSchema, PipfileDependencySchema, PipfileLikeSchema, PipfileLockLikeSchema, PipfileLockMetaSchema, PipfileSourceSchema, } from './manifest/pipfile/schema';
|
package/dist/index.js
CHANGED
|
@@ -927,8 +927,18 @@ var dependencyGroupEntrySchema = z4.union([
|
|
|
927
927
|
var pyProjectDependencyGroupsSchema = z4.record(
|
|
928
928
|
z4.array(dependencyGroupEntrySchema)
|
|
929
929
|
);
|
|
930
|
+
var pyProjectToolVercelFastapiStaticSectionSchema = z4.object({
|
|
931
|
+
cdn: z4.boolean().optional()
|
|
932
|
+
});
|
|
933
|
+
var pyProjectToolVercelFastapiSectionSchema = z4.object({
|
|
934
|
+
static: pyProjectToolVercelFastapiStaticSectionSchema.optional()
|
|
935
|
+
});
|
|
936
|
+
var pyProjectToolVercelSectionSchema = z4.object({
|
|
937
|
+
fastapi: pyProjectToolVercelFastapiSectionSchema.optional()
|
|
938
|
+
});
|
|
930
939
|
var pyProjectToolSectionSchema = z4.object({
|
|
931
|
-
uv: uvConfigSchema.optional()
|
|
940
|
+
uv: uvConfigSchema.optional(),
|
|
941
|
+
vercel: pyProjectToolVercelSectionSchema.optional()
|
|
932
942
|
});
|
|
933
943
|
var pyProjectTomlSchema = z4.object({
|
|
934
944
|
project: pyProjectProjectSchema.optional(),
|
|
@@ -946,8 +956,11 @@ var LicenseObjectSchema = licenseObjectSchema.passthrough();
|
|
|
946
956
|
var LicenseSchema = licenseSchema;
|
|
947
957
|
var PyProjectProjectSchema = pyProjectProjectSchema.passthrough();
|
|
948
958
|
var PyProjectDependencyGroupsSchema = pyProjectDependencyGroupsSchema;
|
|
959
|
+
var PyProjectToolVercelSectionSchema = pyProjectToolVercelSectionSchema;
|
|
960
|
+
var PyProjectToolVercelFastapiSectionSchema = pyProjectToolVercelFastapiSectionSchema;
|
|
961
|
+
var PyProjectToolVercelFastapiStaticSectionSchema = pyProjectToolVercelFastapiStaticSectionSchema;
|
|
949
962
|
var PyProjectToolSectionSchema = pyProjectToolSectionSchema.passthrough();
|
|
950
|
-
var PyProjectTomlSchema = pyProjectTomlSchema.passthrough();
|
|
963
|
+
var PyProjectTomlSchema = pyProjectTomlSchema.extend({ tool: PyProjectToolSectionSchema.optional() }).passthrough();
|
|
951
964
|
|
|
952
965
|
// src/manifest/requirements-txt-parser.ts
|
|
953
966
|
import { isAbsolute, join as join3, relative } from "path/posix";
|
|
@@ -1045,13 +1058,11 @@ async function convertRequirementsToPyprojectToml(fileContent, options) {
|
|
|
1045
1058
|
}
|
|
1046
1059
|
}
|
|
1047
1060
|
}
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
};
|
|
1054
|
-
}
|
|
1061
|
+
pyproject.project = {
|
|
1062
|
+
name: "app",
|
|
1063
|
+
version: "0.1.0",
|
|
1064
|
+
dependencies: deps
|
|
1065
|
+
};
|
|
1055
1066
|
const uv = {};
|
|
1056
1067
|
const indexes = buildIndexEntries(parsed.pipOptions);
|
|
1057
1068
|
if (indexes.length > 0) {
|
|
@@ -2321,6 +2332,9 @@ export {
|
|
|
2321
2332
|
PyProjectProjectSchema,
|
|
2322
2333
|
PyProjectTomlSchema,
|
|
2323
2334
|
PyProjectToolSectionSchema,
|
|
2335
|
+
PyProjectToolVercelFastapiSectionSchema,
|
|
2336
|
+
PyProjectToolVercelFastapiStaticSectionSchema,
|
|
2337
|
+
PyProjectToolVercelSectionSchema,
|
|
2324
2338
|
PythonAnalysisError,
|
|
2325
2339
|
PythonBuild,
|
|
2326
2340
|
PythonConfigKind,
|
|
@@ -11,30 +11,30 @@ import type { PipfileDependency, PipfileDependencyDetail, PipfileLike, PipfileLo
|
|
|
11
11
|
/**
|
|
12
12
|
* Schema for Pipfile dependency detail.
|
|
13
13
|
*/
|
|
14
|
-
export declare const PipfileDependencyDetailSchema: z.ZodType<PipfileDependencyDetail
|
|
14
|
+
export declare const PipfileDependencyDetailSchema: z.ZodType<PipfileDependencyDetail>;
|
|
15
15
|
/**
|
|
16
16
|
* Schema for Pipfile dependency (string version specifier or detail object).
|
|
17
17
|
*/
|
|
18
|
-
export declare const PipfileDependencySchema: z.ZodType<PipfileDependency
|
|
18
|
+
export declare const PipfileDependencySchema: z.ZodType<PipfileDependency>;
|
|
19
19
|
/**
|
|
20
20
|
* Schema for Pipfile source configuration.
|
|
21
21
|
*/
|
|
22
|
-
export declare const PipfileSourceSchema: z.ZodType<PipfileSource
|
|
22
|
+
export declare const PipfileSourceSchema: z.ZodType<PipfileSource>;
|
|
23
23
|
/**
|
|
24
24
|
* Schema for Pipfile.
|
|
25
25
|
*
|
|
26
26
|
* Note: This is an intersection type (z.record().and(z.object())) so we don't
|
|
27
27
|
* call .passthrough() - the record part already allows additional keys.
|
|
28
28
|
*/
|
|
29
|
-
export declare const PipfileLikeSchema: z.ZodType<PipfileLike
|
|
29
|
+
export declare const PipfileLikeSchema: z.ZodType<PipfileLike>;
|
|
30
30
|
/**
|
|
31
31
|
* Schema for Pipfile.lock _meta section.
|
|
32
32
|
*/
|
|
33
|
-
export declare const PipfileLockMetaSchema: z.ZodType<PipfileLockMeta
|
|
33
|
+
export declare const PipfileLockMetaSchema: z.ZodType<PipfileLockMeta>;
|
|
34
34
|
/**
|
|
35
35
|
* Schema for Pipfile.lock.
|
|
36
36
|
*
|
|
37
37
|
* Note: This is an intersection type (z.record().and(z.object())) so we don't
|
|
38
38
|
* call .passthrough() - the record part already allows additional keys.
|
|
39
39
|
*/
|
|
40
|
-
export declare const PipfileLockLikeSchema: z.ZodType<PipfileLockLike
|
|
40
|
+
export declare const PipfileLockLikeSchema: z.ZodType<PipfileLockLike>;
|
|
@@ -7,44 +7,56 @@
|
|
|
7
7
|
* @module pyproject/schema
|
|
8
8
|
*/
|
|
9
9
|
import type { z } from 'zod';
|
|
10
|
-
import type { License, LicenseObject, Person, PyProjectBuildSystem, PyProjectDependencyGroups, PyProjectProject, PyProjectToml, PyProjectToolSection, Readme, ReadmeObject } from './types';
|
|
10
|
+
import type { License, LicenseObject, Person, PyProjectBuildSystem, PyProjectDependencyGroups, PyProjectProject, PyProjectToml, PyProjectToolSection, Readme, ReadmeObject, PyProjectToolVercelFastapiSection, PyProjectToolVercelFastapiStaticSection, PyProjectToolVercelSection } from './types';
|
|
11
11
|
/**
|
|
12
12
|
* Schema for [build-system] per PEP 518.
|
|
13
13
|
*/
|
|
14
|
-
export declare const PyProjectBuildSystemSchema: z.ZodType<PyProjectBuildSystem
|
|
14
|
+
export declare const PyProjectBuildSystemSchema: z.ZodType<PyProjectBuildSystem>;
|
|
15
15
|
/**
|
|
16
16
|
* Schema for author/maintainer entries.
|
|
17
17
|
*/
|
|
18
|
-
export declare const PersonSchema: z.ZodType<Person
|
|
18
|
+
export declare const PersonSchema: z.ZodType<Person>;
|
|
19
19
|
/**
|
|
20
20
|
* Schema for readme field as an object.
|
|
21
21
|
*/
|
|
22
|
-
export declare const ReadmeObjectSchema: z.ZodType<ReadmeObject
|
|
22
|
+
export declare const ReadmeObjectSchema: z.ZodType<ReadmeObject>;
|
|
23
23
|
/**
|
|
24
24
|
* Schema for readme field (can be string or object).
|
|
25
25
|
*/
|
|
26
|
-
export declare const ReadmeSchema: z.ZodType<Readme
|
|
26
|
+
export declare const ReadmeSchema: z.ZodType<Readme>;
|
|
27
27
|
/**
|
|
28
28
|
* Schema for license field as an object.
|
|
29
29
|
*/
|
|
30
|
-
export declare const LicenseObjectSchema: z.ZodType<LicenseObject
|
|
30
|
+
export declare const LicenseObjectSchema: z.ZodType<LicenseObject>;
|
|
31
31
|
/**
|
|
32
32
|
* Schema for license field (can be string or object).
|
|
33
33
|
*/
|
|
34
|
-
export declare const LicenseSchema: z.ZodType<License
|
|
34
|
+
export declare const LicenseSchema: z.ZodType<License>;
|
|
35
35
|
/**
|
|
36
36
|
* Schema for core PEP 621 fields for [project].
|
|
37
37
|
*/
|
|
38
|
-
export declare const PyProjectProjectSchema: z.ZodType<PyProjectProject
|
|
38
|
+
export declare const PyProjectProjectSchema: z.ZodType<PyProjectProject>;
|
|
39
39
|
/**
|
|
40
40
|
* Schema for [dependency-groups].
|
|
41
41
|
*/
|
|
42
|
-
export declare const PyProjectDependencyGroupsSchema: z.ZodType<PyProjectDependencyGroups
|
|
42
|
+
export declare const PyProjectDependencyGroupsSchema: z.ZodType<PyProjectDependencyGroups>;
|
|
43
|
+
/**
|
|
44
|
+
* Schema for [tool.vercel] section.
|
|
45
|
+
*/
|
|
46
|
+
export declare const PyProjectToolVercelSectionSchema: z.ZodType<PyProjectToolVercelSection>;
|
|
47
|
+
/**
|
|
48
|
+
* Schema for [tool.vercel.fastapi] section.
|
|
49
|
+
*/
|
|
50
|
+
export declare const PyProjectToolVercelFastapiSectionSchema: z.ZodType<PyProjectToolVercelFastapiSection>;
|
|
51
|
+
/**
|
|
52
|
+
* Schema for [tool.vercel.fastapi.static] section.
|
|
53
|
+
*/
|
|
54
|
+
export declare const PyProjectToolVercelFastapiStaticSectionSchema: z.ZodType<PyProjectToolVercelFastapiStaticSection>;
|
|
43
55
|
/**
|
|
44
56
|
* Schema for [tool.FOO] section.
|
|
45
57
|
*/
|
|
46
|
-
export declare const PyProjectToolSectionSchema: z.ZodType<PyProjectToolSection
|
|
58
|
+
export declare const PyProjectToolSectionSchema: z.ZodType<PyProjectToolSection>;
|
|
47
59
|
/**
|
|
48
60
|
* Schema for a pyproject.toml file.
|
|
49
61
|
*/
|
|
50
|
-
export declare const PyProjectTomlSchema: z.ZodType<PyProjectToml
|
|
62
|
+
export declare const PyProjectTomlSchema: z.ZodType<PyProjectToml>;
|
|
@@ -195,6 +195,61 @@ export declare const pyProjectDependencyGroupsSchema: z.ZodRecord<z.ZodString, z
|
|
|
195
195
|
}, {
|
|
196
196
|
'include-group': string;
|
|
197
197
|
}>]>, "many">>;
|
|
198
|
+
export declare const pyProjectToolVercelFastapiStaticSectionSchema: z.ZodObject<{
|
|
199
|
+
cdn: z.ZodOptional<z.ZodBoolean>;
|
|
200
|
+
}, "strip", z.ZodTypeAny, {
|
|
201
|
+
cdn?: boolean | undefined;
|
|
202
|
+
}, {
|
|
203
|
+
cdn?: boolean | undefined;
|
|
204
|
+
}>;
|
|
205
|
+
export declare const pyProjectToolVercelFastapiSectionSchema: z.ZodObject<{
|
|
206
|
+
static: z.ZodOptional<z.ZodObject<{
|
|
207
|
+
cdn: z.ZodOptional<z.ZodBoolean>;
|
|
208
|
+
}, "strip", z.ZodTypeAny, {
|
|
209
|
+
cdn?: boolean | undefined;
|
|
210
|
+
}, {
|
|
211
|
+
cdn?: boolean | undefined;
|
|
212
|
+
}>>;
|
|
213
|
+
}, "strip", z.ZodTypeAny, {
|
|
214
|
+
static?: {
|
|
215
|
+
cdn?: boolean | undefined;
|
|
216
|
+
} | undefined;
|
|
217
|
+
}, {
|
|
218
|
+
static?: {
|
|
219
|
+
cdn?: boolean | undefined;
|
|
220
|
+
} | undefined;
|
|
221
|
+
}>;
|
|
222
|
+
export declare const pyProjectToolVercelSectionSchema: z.ZodObject<{
|
|
223
|
+
fastapi: z.ZodOptional<z.ZodObject<{
|
|
224
|
+
static: z.ZodOptional<z.ZodObject<{
|
|
225
|
+
cdn: z.ZodOptional<z.ZodBoolean>;
|
|
226
|
+
}, "strip", z.ZodTypeAny, {
|
|
227
|
+
cdn?: boolean | undefined;
|
|
228
|
+
}, {
|
|
229
|
+
cdn?: boolean | undefined;
|
|
230
|
+
}>>;
|
|
231
|
+
}, "strip", z.ZodTypeAny, {
|
|
232
|
+
static?: {
|
|
233
|
+
cdn?: boolean | undefined;
|
|
234
|
+
} | undefined;
|
|
235
|
+
}, {
|
|
236
|
+
static?: {
|
|
237
|
+
cdn?: boolean | undefined;
|
|
238
|
+
} | undefined;
|
|
239
|
+
}>>;
|
|
240
|
+
}, "strip", z.ZodTypeAny, {
|
|
241
|
+
fastapi?: {
|
|
242
|
+
static?: {
|
|
243
|
+
cdn?: boolean | undefined;
|
|
244
|
+
} | undefined;
|
|
245
|
+
} | undefined;
|
|
246
|
+
}, {
|
|
247
|
+
fastapi?: {
|
|
248
|
+
static?: {
|
|
249
|
+
cdn?: boolean | undefined;
|
|
250
|
+
} | undefined;
|
|
251
|
+
} | undefined;
|
|
252
|
+
}>;
|
|
198
253
|
export declare const pyProjectToolSectionSchema: z.ZodObject<{
|
|
199
254
|
uv: z.ZodOptional<z.ZodObject<{
|
|
200
255
|
sources: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
|
|
@@ -317,6 +372,37 @@ export declare const pyProjectToolSectionSchema: z.ZodObject<{
|
|
|
317
372
|
} | undefined;
|
|
318
373
|
'dev-dependencies'?: string[] | undefined;
|
|
319
374
|
}>>;
|
|
375
|
+
vercel: z.ZodOptional<z.ZodObject<{
|
|
376
|
+
fastapi: z.ZodOptional<z.ZodObject<{
|
|
377
|
+
static: z.ZodOptional<z.ZodObject<{
|
|
378
|
+
cdn: z.ZodOptional<z.ZodBoolean>;
|
|
379
|
+
}, "strip", z.ZodTypeAny, {
|
|
380
|
+
cdn?: boolean | undefined;
|
|
381
|
+
}, {
|
|
382
|
+
cdn?: boolean | undefined;
|
|
383
|
+
}>>;
|
|
384
|
+
}, "strip", z.ZodTypeAny, {
|
|
385
|
+
static?: {
|
|
386
|
+
cdn?: boolean | undefined;
|
|
387
|
+
} | undefined;
|
|
388
|
+
}, {
|
|
389
|
+
static?: {
|
|
390
|
+
cdn?: boolean | undefined;
|
|
391
|
+
} | undefined;
|
|
392
|
+
}>>;
|
|
393
|
+
}, "strip", z.ZodTypeAny, {
|
|
394
|
+
fastapi?: {
|
|
395
|
+
static?: {
|
|
396
|
+
cdn?: boolean | undefined;
|
|
397
|
+
} | undefined;
|
|
398
|
+
} | undefined;
|
|
399
|
+
}, {
|
|
400
|
+
fastapi?: {
|
|
401
|
+
static?: {
|
|
402
|
+
cdn?: boolean | undefined;
|
|
403
|
+
} | undefined;
|
|
404
|
+
} | undefined;
|
|
405
|
+
}>>;
|
|
320
406
|
}, "strip", z.ZodTypeAny, {
|
|
321
407
|
uv?: {
|
|
322
408
|
sources?: Record<string, {
|
|
@@ -345,6 +431,13 @@ export declare const pyProjectToolSectionSchema: z.ZodObject<{
|
|
|
345
431
|
} | undefined;
|
|
346
432
|
'dev-dependencies'?: string[] | undefined;
|
|
347
433
|
} | undefined;
|
|
434
|
+
vercel?: {
|
|
435
|
+
fastapi?: {
|
|
436
|
+
static?: {
|
|
437
|
+
cdn?: boolean | undefined;
|
|
438
|
+
} | undefined;
|
|
439
|
+
} | undefined;
|
|
440
|
+
} | undefined;
|
|
348
441
|
}, {
|
|
349
442
|
uv?: {
|
|
350
443
|
sources?: Record<string, {
|
|
@@ -373,6 +466,13 @@ export declare const pyProjectToolSectionSchema: z.ZodObject<{
|
|
|
373
466
|
} | undefined;
|
|
374
467
|
'dev-dependencies'?: string[] | undefined;
|
|
375
468
|
} | undefined;
|
|
469
|
+
vercel?: {
|
|
470
|
+
fastapi?: {
|
|
471
|
+
static?: {
|
|
472
|
+
cdn?: boolean | undefined;
|
|
473
|
+
} | undefined;
|
|
474
|
+
} | undefined;
|
|
475
|
+
} | undefined;
|
|
376
476
|
}>;
|
|
377
477
|
export declare const pyProjectTomlSchema: z.ZodObject<{
|
|
378
478
|
project: z.ZodOptional<z.ZodObject<{
|
|
@@ -629,6 +729,37 @@ export declare const pyProjectTomlSchema: z.ZodObject<{
|
|
|
629
729
|
} | undefined;
|
|
630
730
|
'dev-dependencies'?: string[] | undefined;
|
|
631
731
|
}>>;
|
|
732
|
+
vercel: z.ZodOptional<z.ZodObject<{
|
|
733
|
+
fastapi: z.ZodOptional<z.ZodObject<{
|
|
734
|
+
static: z.ZodOptional<z.ZodObject<{
|
|
735
|
+
cdn: z.ZodOptional<z.ZodBoolean>;
|
|
736
|
+
}, "strip", z.ZodTypeAny, {
|
|
737
|
+
cdn?: boolean | undefined;
|
|
738
|
+
}, {
|
|
739
|
+
cdn?: boolean | undefined;
|
|
740
|
+
}>>;
|
|
741
|
+
}, "strip", z.ZodTypeAny, {
|
|
742
|
+
static?: {
|
|
743
|
+
cdn?: boolean | undefined;
|
|
744
|
+
} | undefined;
|
|
745
|
+
}, {
|
|
746
|
+
static?: {
|
|
747
|
+
cdn?: boolean | undefined;
|
|
748
|
+
} | undefined;
|
|
749
|
+
}>>;
|
|
750
|
+
}, "strip", z.ZodTypeAny, {
|
|
751
|
+
fastapi?: {
|
|
752
|
+
static?: {
|
|
753
|
+
cdn?: boolean | undefined;
|
|
754
|
+
} | undefined;
|
|
755
|
+
} | undefined;
|
|
756
|
+
}, {
|
|
757
|
+
fastapi?: {
|
|
758
|
+
static?: {
|
|
759
|
+
cdn?: boolean | undefined;
|
|
760
|
+
} | undefined;
|
|
761
|
+
} | undefined;
|
|
762
|
+
}>>;
|
|
632
763
|
}, "strip", z.ZodTypeAny, {
|
|
633
764
|
uv?: {
|
|
634
765
|
sources?: Record<string, {
|
|
@@ -657,6 +788,13 @@ export declare const pyProjectTomlSchema: z.ZodObject<{
|
|
|
657
788
|
} | undefined;
|
|
658
789
|
'dev-dependencies'?: string[] | undefined;
|
|
659
790
|
} | undefined;
|
|
791
|
+
vercel?: {
|
|
792
|
+
fastapi?: {
|
|
793
|
+
static?: {
|
|
794
|
+
cdn?: boolean | undefined;
|
|
795
|
+
} | undefined;
|
|
796
|
+
} | undefined;
|
|
797
|
+
} | undefined;
|
|
660
798
|
}, {
|
|
661
799
|
uv?: {
|
|
662
800
|
sources?: Record<string, {
|
|
@@ -685,6 +823,13 @@ export declare const pyProjectTomlSchema: z.ZodObject<{
|
|
|
685
823
|
} | undefined;
|
|
686
824
|
'dev-dependencies'?: string[] | undefined;
|
|
687
825
|
} | undefined;
|
|
826
|
+
vercel?: {
|
|
827
|
+
fastapi?: {
|
|
828
|
+
static?: {
|
|
829
|
+
cdn?: boolean | undefined;
|
|
830
|
+
} | undefined;
|
|
831
|
+
} | undefined;
|
|
832
|
+
} | undefined;
|
|
688
833
|
}>>;
|
|
689
834
|
}, "strip", z.ZodTypeAny, {
|
|
690
835
|
project?: {
|
|
@@ -753,6 +898,13 @@ export declare const pyProjectTomlSchema: z.ZodObject<{
|
|
|
753
898
|
} | undefined;
|
|
754
899
|
'dev-dependencies'?: string[] | undefined;
|
|
755
900
|
} | undefined;
|
|
901
|
+
vercel?: {
|
|
902
|
+
fastapi?: {
|
|
903
|
+
static?: {
|
|
904
|
+
cdn?: boolean | undefined;
|
|
905
|
+
} | undefined;
|
|
906
|
+
} | undefined;
|
|
907
|
+
} | undefined;
|
|
756
908
|
} | undefined;
|
|
757
909
|
}, {
|
|
758
910
|
project?: {
|
|
@@ -821,5 +973,12 @@ export declare const pyProjectTomlSchema: z.ZodObject<{
|
|
|
821
973
|
} | undefined;
|
|
822
974
|
'dev-dependencies'?: string[] | undefined;
|
|
823
975
|
} | undefined;
|
|
976
|
+
vercel?: {
|
|
977
|
+
fastapi?: {
|
|
978
|
+
static?: {
|
|
979
|
+
cdn?: boolean | undefined;
|
|
980
|
+
} | undefined;
|
|
981
|
+
} | undefined;
|
|
982
|
+
} | undefined;
|
|
824
983
|
} | undefined;
|
|
825
984
|
}>;
|
|
@@ -84,12 +84,31 @@ export type DependencyGroupEntry = string | DependencyGroupInclude;
|
|
|
84
84
|
* [dependency-groups] per PEP 735.
|
|
85
85
|
*/
|
|
86
86
|
export type PyProjectDependencyGroups = Record<string, DependencyGroupEntry[]>;
|
|
87
|
+
/**
|
|
88
|
+
* [tool.vercel] section.
|
|
89
|
+
*/
|
|
90
|
+
export interface PyProjectToolVercelSection {
|
|
91
|
+
fastapi?: PyProjectToolVercelFastapiSection;
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* [tool.vercel.fastapi] section.
|
|
95
|
+
*/
|
|
96
|
+
export interface PyProjectToolVercelFastapiSection {
|
|
97
|
+
static?: PyProjectToolVercelFastapiStaticSection;
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* [tool.vercel.fastapi.static] section.
|
|
101
|
+
*/
|
|
102
|
+
export interface PyProjectToolVercelFastapiStaticSection {
|
|
103
|
+
cdn?: boolean;
|
|
104
|
+
}
|
|
87
105
|
/**
|
|
88
106
|
* [tool.FOO] section.
|
|
89
107
|
* @passthrough
|
|
90
108
|
*/
|
|
91
109
|
export interface PyProjectToolSection {
|
|
92
110
|
uv?: UvConfig;
|
|
111
|
+
vercel?: PyProjectToolVercelSection;
|
|
93
112
|
}
|
|
94
113
|
/**
|
|
95
114
|
* A pyproject.toml file.
|
|
@@ -7,12 +7,12 @@
|
|
|
7
7
|
* @module requirement/schema
|
|
8
8
|
*/
|
|
9
9
|
import type { z } from 'zod';
|
|
10
|
-
import type { DependencySource, NormalizedRequirement } from './types';
|
|
10
|
+
import type { DependencySource, HashDigest, NormalizedRequirement } from './types';
|
|
11
11
|
/**
|
|
12
12
|
* Schema for dependency source information (git, path, or index).
|
|
13
13
|
* Used in [tool.uv.sources] in pyproject.toml.
|
|
14
14
|
*/
|
|
15
|
-
export declare const DependencySourceSchema: z.ZodType<DependencySource
|
|
15
|
+
export declare const DependencySourceSchema: z.ZodType<DependencySource>;
|
|
16
16
|
/**
|
|
17
17
|
* Schema for a normalized representation of a Python dependency.
|
|
18
18
|
* This is the common format used by all parsers before converting to PEP 508 format.
|
|
@@ -20,9 +20,9 @@ export declare const DependencySourceSchema: z.ZodType<DependencySource, z.ZodTy
|
|
|
20
20
|
* Note: This schema uses the generated version without passthrough since
|
|
21
21
|
* NormalizedRequirement is an internal type with a known structure.
|
|
22
22
|
*/
|
|
23
|
-
export declare const NormalizedRequirementSchema: z.ZodType<NormalizedRequirement
|
|
23
|
+
export declare const NormalizedRequirementSchema: z.ZodType<NormalizedRequirement>;
|
|
24
24
|
/**
|
|
25
25
|
* Schema for parsed hash digest for a requirement.
|
|
26
26
|
* Format: algorithm:hash_value (e.g., "sha256:abc123...")
|
|
27
27
|
*/
|
|
28
|
-
export declare const HashDigestSchema: z.ZodType<
|
|
28
|
+
export declare const HashDigestSchema: z.ZodType<HashDigest>;
|
|
@@ -11,12 +11,12 @@ import type { UvConfig, UvConfigWorkspace, UvIndexEntry } from './types';
|
|
|
11
11
|
/**
|
|
12
12
|
* Schema for uv workspace configuration.
|
|
13
13
|
*/
|
|
14
|
-
export declare const UvConfigWorkspaceSchema: z.ZodType<UvConfigWorkspace
|
|
14
|
+
export declare const UvConfigWorkspaceSchema: z.ZodType<UvConfigWorkspace>;
|
|
15
15
|
/**
|
|
16
16
|
* Schema for uv index entry configuration.
|
|
17
17
|
*/
|
|
18
|
-
export declare const UvIndexEntrySchema: z.ZodType<UvIndexEntry
|
|
18
|
+
export declare const UvIndexEntrySchema: z.ZodType<UvIndexEntry>;
|
|
19
19
|
/**
|
|
20
20
|
* Schema for [tool.uv] section in pyproject.toml or uv.toml.
|
|
21
21
|
*/
|
|
22
|
-
export declare const UvConfigSchema: z.ZodType<UvConfig
|
|
22
|
+
export declare const UvConfigSchema: z.ZodType<UvConfig>;
|
package/dist/util/fs.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/** @module Interface wasi:cli/environment@0.2.
|
|
1
|
+
/** @module Interface wasi:cli/environment@0.2.9 **/
|
|
2
2
|
export function getEnvironment(): Array<[string, string]>;
|