fix(ui): export SECTION_META from config-form module

Export the SECTION_META constant from config-form.render.ts and
re-export it through config-form.ts so it can be imported by config.ts.

This fixes a runtime error where SECTION_META was being referenced
but not properly exported from its source module.
This commit is contained in:
Maude Bot
2026-01-21 23:03:08 -05:00
parent 5fb6a0fd32
commit f40f16608c
3 changed files with 3 additions and 3 deletions

View File

@@ -54,7 +54,7 @@ const sectionIcons = {
};
// Section metadata
const SECTION_META: Record<string, { label: string; description: string }> = {
export const SECTION_META: Record<string, { label: string; description: string }> = {
env: { label: "Environment Variables", description: "Environment variables passed to the gateway process" },
update: { label: "Updates", description: "Auto-update settings and release channel" },
agents: { label: "Agents", description: "Agent configurations, models, and identities" },

View File

@@ -1,4 +1,4 @@
export { renderConfigForm, type ConfigFormProps } from "./config-form.render";
export { renderConfigForm, type ConfigFormProps, SECTION_META } from "./config-form.render";
export {
analyzeConfigSchema,
type ConfigSchemaAnalysis,

View File

@@ -1,6 +1,6 @@
import { html, nothing } from "lit";
import type { ConfigUiHints } from "../types";
import { analyzeConfigSchema, renderConfigForm } from "./config-form";
import { analyzeConfigSchema, renderConfigForm, SECTION_META } from "./config-form";
import {
hintForPath,
humanize,