MCPcopy Index your code
hub / github.com/anomalyco/opencode / normalizeLoadedConfig

Function normalizeLoadedConfig

packages/opencode/src/config/config.ts:53–62  ·  view source on GitHub ↗
(data: unknown)

Source from the content-addressed store, hash-verified

51}
52
53function normalizeLoadedConfig(data: unknown) {
54 if (!isRecord(data)) return data
55 const copy = { ...data }
56 const hadLegacy = "theme" in copy || "keybinds" in copy || "tui" in copy
57 if (!hadLegacy) return copy
58 delete copy.theme
59 delete copy.keybinds
60 delete copy.tui
61 return copy
62}
63
64async function substituteWellKnownRemoteConfig(input: {
65 value: unknown

Callers 1

config.tsFile · 0.85

Calls 1

isRecordFunction · 0.90

Tested by

no test coverage detected