mirror of
https://github.com/glittercowboy/get-shit-done
synced 2026-05-14 02:56:38 +02:00
* fix(config): bump MODEL_ALIAS_MAP and RUNTIME_PROFILE_MAP to claude-opus-4-7 Opus 4.7 shipped Q1 2026 but MODEL_ALIAS_MAP and RUNTIME_PROFILE_MAP.claude.opus were still pinned to claude-opus-4-6. Users with resolve_model_ids: true received stale model IDs in logs and agent-tool calls. Also adds a resolve_model_ids: true test suite — this path had zero coverage, which is why the stale ID survived undetected. Closes #2712 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * refactor(config): derive RUNTIME_PROFILE_MAP.claude from MODEL_ALIAS_MAP (coderabbit) RUNTIME_PROFILE_MAP.claude was duplicating model IDs that MODEL_ALIAS_MAP already owns. Future model bumps now only require updating MODEL_ALIAS_MAP. Also fixes stale test assertion (claude-opus-4-6 → claude-opus-4-7). * fix(tests): update stale claude-opus-4-6 refs to claude-opus-4-7; DRY: derive RUNTIME_PROFILE_MAP.claude from MODEL_ALIAS_MAP - Update 3 hardcoded `claude-opus-4-6` assertions in tests/issue-2517-runtime-aware-profiles.test.cjs to `claude-opus-4-7` - Update comment on line 128 that referenced the old model ID - Replace manual per-tier expansion of RUNTIME_PROFILE_MAP.claude with Object.fromEntries so future alias bumps only require updating MODEL_ALIAS_MAP Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
28 lines
829 B
JavaScript
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('../get-shit-done/bin/lib/core.cjs');
|
|
|
|
describe('MODEL_ALIAS_MAP (#1690 regression)', () => {
|
|
test('opus maps to claude-opus-4-7', () => {
|
|
assert.equal(MODEL_ALIAS_MAP.opus, 'claude-opus-4-7');
|
|
});
|
|
|
|
test('sonnet maps to claude-sonnet-4-6', () => {
|
|
assert.equal(MODEL_ALIAS_MAP.sonnet, 'claude-sonnet-4-6');
|
|
});
|
|
|
|
test('haiku maps to claude-haiku-4-5', () => {
|
|
assert.equal(MODEL_ALIAS_MAP.haiku, 'claude-haiku-4-5');
|
|
});
|
|
});
|