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

@@ -425,6 +425,8 @@ export type Database = {
};
upload_jobs: {
Row: {
kind: string;
source_dataset_id: string | null;
attempts: number;
created_at: string;
dataset_id: string;
@@ -437,6 +439,8 @@ export type Database = {
updated_at: string;
};
Insert: {
kind?: string;
source_dataset_id?: string | null;
attempts?: number;
created_at?: string;
dataset_id: string;
@@ -449,6 +453,8 @@ export type Database = {
updated_at?: string;
};
Update: {
kind?: string;
source_dataset_id?: string | null;
attempts?: number;
created_at?: string;
dataset_id?: string;
@@ -475,6 +481,10 @@ export type Database = {
[_ in never]: never;
};
Functions: {
refresh_map: {
Args: { p_dataset: string; p_owner: string; p_source: string };
Returns: undefined;
};
activate_round: {
Args: { p_access_hash: string; p_round: number; p_session: string };
Returns: string;
@@ -503,6 +513,8 @@ export type Database = {
claim_job: {
Args: { p_worker: string };
Returns: {
kind: string;
source_dataset_id: string | null;
attempts: number;
created_at: string;
dataset_id: string;

View File

@@ -1,4 +1,5 @@
export type ProcessingJob = {
kind?: string;
state: string;
progress: number;
error: string | null;

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>;