smelt.settings¶
Tier: UiHost — Requires a terminal UI; calling these from headless mode raises.
Metatable-backed proxy table for preferences. Read and write keys directly (settings.foo = true, settings.compact_threshold = 0.65) or iterate with pairs. Values are typed per the schema; type mismatches raise. UiHost-only.
smelt.settings.schema¶
Return the settings schema as an array of { key, kind, choices? } rows. kind is "bool", "number", or "string". choices is present for "string" keys with a closed value set. UIs use this to render every known setting without hand-maintaining a list.