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>
This commit is contained in:
@@ -1,11 +1,12 @@
|
||||
import { describe, expect, test } from "bun:test"
|
||||
|
||||
import { getBundledModelCapabilitiesSnapshot, getModelCapabilities } from "./model-capabilities"
|
||||
import bundledModelCapabilitiesSnapshotJson from "./generated/model-capabilities.generated.json"
|
||||
|
||||
describe("bundled model capabilities snapshot", () => {
|
||||
test("keeps GPT-4.1 OpenAI variants marked as supporting tool calls", () => {
|
||||
// given
|
||||
const bundledSnapshot = getBundledModelCapabilitiesSnapshot()
|
||||
const bundledSnapshot = getBundledModelCapabilitiesSnapshot(bundledModelCapabilitiesSnapshotJson)
|
||||
const modelIDs = [
|
||||
"openai/gpt-4.1",
|
||||
"openai/gpt-4.1-mini",
|
||||
|
||||
Reference in New Issue
Block a user