/* Barrel export for the @warpgogol/werkstatt-shared/ontology/cosmic sub-path. Re-exports all three closed catalogs, their union types, and Zod schemas so consumers can import from a single entry point (DNA-23, RFC-0025). Do not add runtime logic. Do not import from outside the cosmic directory or zod. RFC-1097: step 6 — compass.migrate codemod run Mechanical v1 to v2 header migration across the workspace: 942 files rewritten — CHANGE_SUMMARY windows collapsed into history, forbidden v1 blocks stripped, KEY_DECISIONS seeded from @ai-invariant comments (5 files) or TODO placeholders (103 files), blocks reordered to canonical order. RFC-1097: sweep — werkstatt-engine clean Sweep batch 4: 73 Compass headers on headerless engine files (certification, component-runtime, isolation, evolution, testing), real KEY_DECISIONS on 75 files (kernel, cache, dht, swim, gitmesh, runtime), ~80 purpose expansions (CONTRACT-02/PURPOSE-02), non-goals on 13 CONTRACT-03 files, CS-07 history literal fix repo-wide (253 files). Policy: .template.ts/.template.astro excludedPaths. werkstatt-engine now 0 diagnostics. RFC-1308: re-export KNOWN_CROSS_CATALOG_COLLISIONS and KNOWN_SAME_CATALOG_COLLISIONS — shared collision declarations replacing the test-local whitelist. */ import { z } from "zod"; import { StarCatalog } from "./star-catalog.ts"; import { PlanetCatalog } from "./planet-catalog.ts"; import { MoonCatalog } from "./moon-catalog.ts"; // Re-export individual catalogs, schemas, and types export { StarCatalog, starNameSchema } from "./star-catalog.ts"; export type { StarName } from "./star-catalog.ts"; export { PlanetCatalog, planetNameSchema } from "./planet-catalog.ts"; export type { PlanetName } from "./planet-catalog.ts"; export { MoonCatalog, moonNameSchema } from "./moon-catalog.ts"; export type { MoonName } from "./moon-catalog.ts"; // Declared collision exceptions — the single reviewable list of // cross-catalog and same-catalog name collisions (RFC-1308). export { KNOWN_CROSS_CATALOG_COLLISIONS, KNOWN_SAME_CATALOG_COLLISIONS, } from "./known-collisions.ts"; // ── Cross-catalog union ──────────────────────────────────────────────────── // CosmicName is the full set of valid cosmicName values across all layers. // Use the per-layer schemas (starNameSchema, planetNameSchema, moonNameSchema) // for layer-specific validation; cosmicNameSchema accepts any catalog entry. export type CosmicName = | import("./star-catalog.ts").StarName | import("./planet-catalog.ts").PlanetName | import("./moon-catalog.ts").MoonName; /** Runtime schema that accepts any name from any catalog. */ export const cosmicNameSchema = z.union([ z.enum(StarCatalog), z.enum(PlanetCatalog), z.enum(MoonCatalog), ]);