refactor(config): remove preferences API

This commit is contained in:
Dax Raad
2026-09-13 19:27:56 -04:00
parent 7784b3ee0d
commit c2cf497e19
20 changed files with 11 additions and 888 deletions
-16
View File
@@ -7,22 +7,6 @@ import { Api } from "../api"
export const ConfigHandler = HttpApiBuilder.group(Api, "server.config", (handlers) =>
handlers
.handle("config.get", () => Config.Service.use((config) => config.entries()))
.handle(
"config.preferences",
Effect.fn(function* () {
const config = yield* Config.Service
if (!config.preferences) return yield* Effect.die(new Error("Config preferences are unavailable"))
return yield* config.preferences().pipe(Effect.orDie)
}),
)
.handle(
"config.updatePreferences",
Effect.fn(function* (ctx) {
const config = yield* Config.Service
if (!config.updatePreferences) return yield* Effect.die(new Error("Config preference updates are unavailable"))
return yield* config.updatePreferences(ctx.payload).pipe(Effect.orDie)
}),
)
.handle(
"config.shells",
Effect.fn(function* () {