refactor(config): remove async facade exports (#22325)

This commit is contained in:
Kit Langton
2026-04-13 13:11:05 -04:00
committed by GitHub
parent 91fe4db27c
commit f7c6943817
16 changed files with 117 additions and 132 deletions
@@ -44,7 +44,8 @@ export const ProviderRoutes = lazy(() =>
const result = await AppRuntime.runPromise(
Effect.gen(function* () {
const svc = yield* Provider.Service
const config = yield* Effect.promise(() => Config.get())
const cfg = yield* Config.Service
const config = yield* cfg.get()
const all = yield* Effect.promise(() => ModelsDev.get())
const disabled = new Set(config.disabled_providers ?? [])
const enabled = config.enabled_providers ? new Set(config.enabled_providers) : undefined