(arcticValue: any, opencodeValue: any)
| 228 | } |
| 229 | |
| 230 | function mergeConfigField(arcticValue: any, opencodeValue: any): any { |
| 231 | if (Array.isArray(opencodeValue)) { |
| 232 | const arctArr = (arcticValue as any[]) || [] |
| 233 | return mergeArrayField(arctArr, opencodeValue) |
| 234 | } |
| 235 | |
| 236 | if (typeof opencodeValue === "object" && opencodeValue !== null) { |
| 237 | const arctObj = (arcticValue as Record<string, any>) || {} |
| 238 | return mergeObjectField(arctObj, opencodeValue as Record<string, any>) |
| 239 | } |
| 240 | |
| 241 | return arcticValue || opencodeValue |
| 242 | } |
| 243 | |
| 244 | function mergeConfigs(arcticConfig: Config.Info, opencodeConfig: Config.Info, fields: string[]): Config.Info { |
| 245 | const merged = { ...arcticConfig } |
no test coverage detected