Add AI-assisted world and character drafting flows
All checks were successful
CI / validate (push) Successful in 14m3s

This commit is contained in:
2026-08-17 09:25:37 +05:00
parent 830aa5dc1f
commit cdeea8653c
23 changed files with 811 additions and 92 deletions

View File

@@ -8,6 +8,7 @@ const outputPath = join(root, 'supabase', 'bootstrap.sql')
const migrationNames = (await readdir(migrationsDirectory))
.filter(name => /^\d+_.+\.sql$/.test(name))
.sort((left, right) => left.localeCompare(right))
const latestSchemaVersion = Math.max(...migrationNames.map(name => Number(name.slice(0, 4))))
if (migrationNames.length === 0) throw new Error('No Supabase migrations were found.')
@@ -62,6 +63,12 @@ begin
if to_regprocedure('public.dng_schema_version()') is null then
raise exception 'D&G bootstrap verification failed: schema version RPC is missing';
end if;
if to_regprocedure('public.stage_four_create_character(uuid,uuid,text,text,text,jsonb,integer,integer,integer,integer,jsonb,jsonb,jsonb)') is null then
raise exception 'D&G bootstrap verification failed: character creation RPC is missing';
end if;
if public.dng_schema_version() <> ${latestSchemaVersion} then
raise exception 'D&G bootstrap verification failed: unexpected schema version';
end if;
end;
$$;