docs(think-mode): document getHighVariant deprecation

Add deprecation notice explaining that getHighVariant() is no longer
used by the hook. Function is kept for backward compatibility and
potential future validation use.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode)
Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
acamq
2026-03-08 09:13:07 -06:00
parent ccd4dceaf2
commit 05a5c010ab
+14
View File
@@ -4,6 +4,20 @@ import {
isAlreadyHighVariant,
} from "./switcher"
/**
* DEPRECATION NOTICE:
*
* getHighVariant() is no longer used by the think-mode hook.
* The hook now only sets output.message.variant = "high" and lets
* OpenCode's native variant system handle the transformation.
*
* This function is kept for:
* - Potential future validation use
* - Backward compatibility for external consumers
*
* Tests verify the function still works correctly.
*/
describe("think-mode switcher", () => {
describe("Model ID normalization", () => {
describe("getHighVariant with dots vs hyphens", () => {