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

Function mergeConfigConcatArrays

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

Source from the content-addressed store, hash-verified

43}
44
45function mergeConfigConcatArrays(target: Info, source: Info): Info {
46 const merged = mergeConfig(target, source)
47 if (target.instructions && source.instructions) {
48 merged.instructions = Array.from(new Set([...target.instructions, ...source.instructions]))
49 }
50 return merged
51}
52
53function normalizeLoadedConfig(data: unknown) {
54 if (!isRecord(data)) return data

Callers 2

mergeFunction · 0.85
config.tsFile · 0.85

Calls 2

mergeConfigFunction · 0.85
fromMethod · 0.45

Tested by

no test coverage detected