Files
msd-core/tests/model-alias-map.test.cjs
Tom Boucher da37986cd0 fix(#1847): resolve standard tier to claude sonnet 5
Point the sonnet/standard tier at Claude Sonnet 5 (`claude-sonnet-5`,
GA 2026-06-30) across the Anthropic-backed runtimes and provider presets,
replacing the superseded `claude-sonnet-4-6`. Mirrors the change into the
CONFIGURATION.md and settings-advanced.md runtime-defaults tables (the
#3229 catalog↔docs parity gate) plus the pt-BR/zh-CN translations, and
updates the tests that pin the old ID. Regenerates the workflow size
baseline for the (smaller) settings-advanced.md.

Scope is Sonnet only — opus/haiku IDs are untouched. Prepared as a 1.6.1
hotfix off the v1.6.0 tag.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
(cherry picked from commit 33260555b4)
2026-06-30 22:21:18 -04:00

28 lines
829 B
JavaScript

/**
* GSD Tools Tests - MODEL_ALIAS_MAP
*
* Verifies that model aliases map to current Claude model IDs.
* Regression test for #1690: aliases were pointing to outdated model versions.
*
* Uses node:test and node:assert/strict (NOT Jest).
*/
const { test, describe } = require('node:test');
const assert = require('node:assert/strict');
const { MODEL_ALIAS_MAP } = require('../gsd-core/bin/lib/model-catalog.cjs');
describe('MODEL_ALIAS_MAP (#1690 regression)', () => {
test('opus maps to claude-opus-4-8', () => {
assert.equal(MODEL_ALIAS_MAP.opus, 'claude-opus-4-8');
});
test('sonnet maps to claude-sonnet-5', () => {
assert.equal(MODEL_ALIAS_MAP.sonnet, 'claude-sonnet-5');
});
test('haiku maps to claude-haiku-4-5', () => {
assert.equal(MODEL_ALIAS_MAP.haiku, 'claude-haiku-4-5');
});
});