UNPKG

@fusedashlabs/ui9000-workspace

Version:

UI9000 workspace MCP. One tool, show_workspace, draws a chart from your table. Set TYPESAFE_API_KEY to let Jev choose the chart.

22 lines (21 loc) • 846 B
import cityGeo from "./catalogs/city.json" with { type: "json" }; import countryGeo from "./catalogs/country.json" with { type: "json" }; import countyGeo from "./catalogs/county.json" with { type: "json" }; import provinceGeo from "./catalogs/province.json" with { type: "json" }; import stateGeo from "./catalogs/state.json" with { type: "json" }; // Geometry-free boundary catalogs for every map type the renderer supports. // region reuses the world-provinces (admin-1) set. const CATALOGS = { city: cityGeo, country: countryGeo, county: countyGeo, province: provinceGeo, region: provinceGeo, state: stateGeo, }; export const loadCatalog = (mapType) => { const catalog = CATALOGS[mapType]; if (!catalog) throw new Error(`No vendored catalog for map type "${mapType}"`); return catalog.features; };