MCPcopy Create free account
hub / github.com/anomalyco/opencode / mergeConfig

Function mergeConfig

packages/opencode/src/config/config.ts:41–43  ·  view source on GitHub ↗
(target: Info, source: Info)

Source from the content-addressed store, hash-verified

39// Custom merge function that concatenates array fields instead of replacing them
40// Keep remeda's deep conditional merge type out of hot config-loading paths; TS profiling showed it dominates here.
41function mergeConfig(target: Info, source: Info): Info {
42 return mergeDeep(target, source) as Info
43}
44
45function mergeConfigConcatArrays(target: Info, source: Info): Info {
46 const merged = mergeConfig(target, source)

Callers 2

mergeConfigConcatArraysFunction · 0.85
config.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected