Files
oh-my-opencode/packages/model-core/src/model-capabilities/bundled-snapshot.ts
T
YeonGyu-Kim e15461febc refactor(model-core): inject bundled capabilities snapshot from harness
- remove bundled snapshot dependency on src/generated in model-core

- make shared harness provide runtime bundled snapshot

- update guardrail and capability tests to pass explicit snapshot

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
2026-05-21 12:50:10 +09:00

15 lines
374 B
TypeScript

import { SUPPLEMENTAL_MODEL_CAPABILITIES } from "./supplemental-entries"
import type { ModelCapabilitiesSnapshot } from "./types"
export function getBundledModelCapabilitiesSnapshot(
snapshotJson: ModelCapabilitiesSnapshot,
): ModelCapabilitiesSnapshot {
return {
...snapshotJson,
models: {
...snapshotJson.models,
...SUPPLEMENTAL_MODEL_CAPABILITIES,
},
}
}