Added some features :D, Codex limits are burned out by GPT 6 Astra D:

This commit is contained in:
2026-10-05 19:33:00 +05:00
parent b33db48b63
commit 923abdc472
23 changed files with 538 additions and 53 deletions

View File

@@ -51,6 +51,10 @@ export const datasetSchema = z
bounds: boundsSchema,
north: z.literal("-z"),
contributionTo: z.string().uuid().optional(),
mapPath: z
.string()
.regex(/^[a-f0-9-]{36}\/maps\/[a-f0-9-]{36}\.webp$/)
.optional(),
viewpoints: z.array(viewpointSchema).min(1).max(24),
// Retain the capture's locations while viewpoints holds the saved selection.
availableViewpoints: z.array(viewpointSchema).min(1).max(24).optional(),
@@ -138,6 +142,8 @@ export function parseUploadManifest(value: unknown) {
throw new Error(
"Upload all captured viewpoints; selection happens in the dashboard",
);
if (manifest.mapPath)
throw new Error("Uploads cannot specify server map paths");
return manifest;
}
export type DatasetManifest = z.infer<typeof datasetSchema>;