Modify generic name for model tiers

Co-Authored-By: win0na <winnie@winneon.moe>

refactor: neutral model vocabulary (low/mid/high) in source agents

feat(claude-code): cc_model_to_native() maps low/mid/high to haiku/sonnet/opus

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

feat(opencode): update oc_model_to_provider() for low/mid/high vocabulary

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
nunziati
2026-04-10 11:51:53 +00:00
parent 9a93cd4aa5
commit 5a15e5b79b
13 changed files with 46 additions and 21 deletions

View File

@@ -71,7 +71,7 @@ test_translate_agents_basic() {
---
name: scribe
description: Test scribe
model: sonnet
model: mid
mode: subagent
capabilities: [read, write, edit]
---
@@ -98,7 +98,7 @@ test_translate_agents_bash_capability() {
---
name: architect
description: Test
model: opus
model: high
capabilities: [read, write, edit, bash]
---
@@ -183,3 +183,12 @@ EOF
rm -rf "$src" "$dst"
return $result
}
test_cc_model_to_native_maps_tiers() {
local result=0
[[ "$(cc_model_to_native "low")" == "haiku" ]] || { echo "low→haiku failed"; result=1; }
[[ "$(cc_model_to_native "mid")" == "sonnet" ]] || { echo "mid→sonnet failed"; result=1; }
[[ "$(cc_model_to_native "high")" == "opus" ]] || { echo "high→opus failed"; result=1; }
[[ "$(cc_model_to_native "anthropic/custom")" == "anthropic/custom" ]] || { echo "passthrough failed"; result=1; }
return $result
}