johns-harness 2026.9.39 → 2026.9.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/dist/auth-profiles-5CHn7vq1.js +1 -1
  3. package/dist/channels/plugins/actions/telegram.js +1 -1
  4. package/dist/config-koj5M_EO.js +1 -1
  5. package/dist/daemon-cli.js +1 -1
  6. package/dist/model-selection-BGlGpPgM.js +1 -1
  7. package/dist/model-selection-BU6wl1le.js +1 -1
  8. package/dist/model-selection-L7RMwsG-.js +1 -1
  9. package/dist/plugin-sdk/config-4Fgm-yEH.js +1 -1
  10. package/dist/plugin-sdk/config-Di-lyCdh.js +1 -1
  11. package/dist/plugin-sdk/discord.js +1 -1
  12. package/dist/plugin-sdk/mattermost.js +1 -1
  13. package/dist/plugin-sdk/model-auth-CX9cPHdC.js +1 -1
  14. package/dist/plugin-sdk/model-auth-Ciehz0x5.js +1 -1
  15. package/dist/plugin-sdk/model-auth-DVyo6JSX.js +1 -1
  16. package/dist/plugin-sdk/model-auth-kiHYHGrs.js +1 -1
  17. package/dist/plugin-sdk/model-selection-Dbj4jDYM.js +1 -1
  18. package/dist/plugin-sdk/thinking-B-rIrY_n.js +1 -1
  19. package/dist/plugin-sdk/thinking-CopbP_Cn.js +1 -1
  20. package/dist/plugin-sdk/thinking-WQ4Zq8Nl.js +1 -1
  21. package/dist/plugin-sdk/thinking-WXqkGljb.js +1 -1
  22. package/dist/plugin-sdk/thinking-_uXqFaFO.js +1 -1
  23. package/dist/plugin-sdk/thinking-pTdxk2dr.js +1 -1
  24. package/dist/thinking-B5B36ffe.js +1 -1
  25. package/dist/thinking-BYwvlJ3S.js +1 -1
  26. package/dist/thinking-CAzdgmNV.js +1 -1
  27. package/dist/thinking-DykY2Fzj.js +1 -1
  28. package/docs/MODELS.md +11 -0
  29. package/models/models.json +5 -2
  30. package/node_modules/@mariozechner/pi-ai/dist/models.generated.js +3 -2
  31. package/node_modules/@mariozechner/pi-ai/dist/providers/anthropic.js +31 -0
  32. package/package.json +1 -1
  33. package/scripts/models-sync.mjs +88 -0
  34. package/vendor/patched-deps/@mariozechner/pi-ai/dist/models.generated.js +3 -2
  35. package/vendor/patched-deps/@mariozechner/pi-ai/dist/providers/anthropic.js +31 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Changelog
2
2
 
3
+ ## 2026.9.40
4
+
5
+ - Claude Haiku 5.5 (`anthropic/claude-haiku-5-5`, GA 2026-10-07) is first-class. Card (docs.claude.com/docs/en/models/haiku-5-5/overview, pricing, effort and thinking pages, release notes, and `GET /v1/models/claude-haiku-5-5`, checked 2026-10-08): 1M context (the harness uses the full native window), 128K max output, text + image input, adaptive thinking on by default (default effort `medium`, thinking display omitted), effort `low` through `max`, knowledge cutoff Jun 2026, newer tokenizer (about 30% more tokens than Haiku 4.5). Manual thinking (`thinking.type: "enabled"` / `budget_tokens`) and any non-default `temperature`/`top_p`/`top_k` return 400.
6
+ - Pricing is tiered by prompt length. Prompts up to 100K tokens: $0.10 input, $0.50 output, $0.01 cache read, $0.125 5m cache write, $0.20 1h cache write per MTok. Prompts over 100K: $0.50, $2.50, $0.05, $0.625, $1.00. The catalog `cost` is flat, so it holds the up-to-100K tier and the over-100K tier is recorded in `harness.notes`; usage cost estimates for a single prompt over 100K tokens read 5x low. Batch is 50% off.
7
+ - The Anthropic adapter now takes wire rules from the models master. New `harness` keys for `anthropic-messages` entries: `thinking: "adaptive"` (send adaptive thinking + `output_config.effort` instead of `budget_tokens`), `thinkingOff: "disabled"` (send `thinking.type: "disabled"` when `/think` is off, for models that think by default), `efforts` and `temperature: "drop"` (also strips top_p/top_k). `scripts/models-sync.mjs` generates them into `providers/anthropic.js` (vendor + installed); models without these keys keep the historical gates byte for byte. Haiku 5.5 is the first user: `/think minimal` -> `low`, `low`..`max` 1:1, off -> disabled, temperature always dropped. Without this every reasoning turn on Haiku 5.5 would have sent `budget_tokens` (a 400).
8
+ - Live through the harness adapter (2026-10-08): no `/think` and every level `minimal`..`max` returned 200 with temperature 0.7 dropped; a tool round trip at `/think max` with signed thinking blocks replayed returned 200; `/think off` sent `disabled` and produced no thinking (the API default on the same prompt spent 181 thinking tokens).
9
+ - Claude Sonnet 5.5 cache reads drop from $0.20 to $0.10/MTok (0.05x), per the 2026-10-07 release notes and the pricing page; every other price is unchanged.
10
+ - Aliases: `haiku` (new, newest Haiku) resolves to `anthropic/claude-haiku-5-5`; `haiku45` keeps Claude Haiku 4.5. Every other alias is unchanged.
11
+ - Roll back with `npm i -g johns-harness@2026.9.39`.
12
+
3
13
  ## 2026.9.39
4
14
 
5
15
  - Nano Banana 2.1 (`google/gemini-nano-banana-2.1`, GA 2026-10-06) ships as an image-only Google model, registered like Nano Banana Pro (`imageGeneration`/`imageEditing`, `chat: false`; function calling is unsupported, so it is not an agent chat model). Use it with `image_generate` model `google/gemini-nano-banana-2.1`. Card: $1.50/MTok input, $30/MTok image output (about $0.034 per 1K image), caching unsupported. Limits: 65,536 input / 65,536 output from the API's model endpoint and model list; the official model card says 131,072 / 32,768, and that conflict is recorded in `harness.source`. Live `generateContent` with IMAGE output returned a JPEG.
@@ -5157,7 +5157,7 @@ Object.assign(DEFAULT_MODEL_ALIASES, {
5157
5157
  grok46: "xai/grok-4.6"
5158
5158
  });
5159
5159
  /* JOHNNESS_MODELS_MASTER:BEGIN aliases (generated from models/models.json by scripts/models-sync.mjs; edit the master, not this block) */
5160
- const JOHNNESS_MASTER_ALIASES = {"deepseek":"deepseek/deepseek-flash","deepseek-pro":"deepseek/deepseek-v4-pro","gemini-lite":"google/gemini-3.5-flash-lite","muse":"meta/muse-spark-1.3","muse-spark":"meta/muse-spark-1.3","opus46":"anthropic/claude-opus-4-6","sonnet46":"anthropic/claude-sonnet-4-6","gpt-mini":"openai/gpt-5-mini","gemini":"google/gemini-3.1-pro-preview","gemini-flash":"google/gemini-3.8-flash","gemini-flash-lite":"google/gemini-2.5-flash-lite","flash":"google/gemini-3.8-flash","banana":"google/gemini-3-pro-image-preview","nano-banana":"google/gemini-3-pro-image-preview","image":"openai-codex/gpt-image-2","sonnet5":"anthropic/claude-sonnet-5","opus5":"anthropic/claude-opus-5","sol6":"openai-codex/gpt-6-sol","sol56":"openai-codex/gpt-5.6-sol","luna56":"openai-codex/gpt-5.6-luna","grok46":"xai/grok-4.6","opus":"anthropic/claude-opus-5-5","sonnet":"anthropic/claude-sonnet-5-5","fable":"anthropic/claude-fable-5-1","gpt":"openai-codex/gpt-6.1-sol","sol":"openai-codex/gpt-6.1-sol","luna":"openai-codex/gpt-6-luna","astra":"openai-codex/gpt-6-astra","terra":"openai-codex/gpt-5.6-terra","grok":"xai/grok-4.7"};
5160
+ const JOHNNESS_MASTER_ALIASES = {"deepseek":"deepseek/deepseek-flash","deepseek-pro":"deepseek/deepseek-v4-pro","gemini-lite":"google/gemini-3.5-flash-lite","muse":"meta/muse-spark-1.3","muse-spark":"meta/muse-spark-1.3","opus46":"anthropic/claude-opus-4-6","sonnet46":"anthropic/claude-sonnet-4-6","gpt-mini":"openai/gpt-5-mini","gemini":"google/gemini-3.1-pro-preview","gemini-flash":"google/gemini-3.8-flash","gemini-flash-lite":"google/gemini-2.5-flash-lite","flash":"google/gemini-3.8-flash","banana":"google/gemini-3-pro-image-preview","nano-banana":"google/gemini-3-pro-image-preview","image":"openai-codex/gpt-image-2","sonnet5":"anthropic/claude-sonnet-5","opus5":"anthropic/claude-opus-5","haiku45":"anthropic/claude-haiku-4-5","sol6":"openai-codex/gpt-6-sol","sol56":"openai-codex/gpt-5.6-sol","luna56":"openai-codex/gpt-5.6-luna","grok46":"xai/grok-4.6","opus":"anthropic/claude-opus-5-5","sonnet":"anthropic/claude-sonnet-5-5","fable":"anthropic/claude-fable-5-1","haiku":"anthropic/claude-haiku-5-5","gpt":"openai-codex/gpt-6.1-sol","sol":"openai-codex/gpt-6.1-sol","luna":"openai-codex/gpt-6-luna","astra":"openai-codex/gpt-6-astra","terra":"openai-codex/gpt-5.6-terra","grok":"xai/grok-4.7"};
5161
5161
  for (const [alias, ref] of Object.entries(JOHNNESS_MASTER_ALIASES)) DEFAULT_MODEL_ALIASES[alias] = ref;
5162
5162
  /* JOHNNESS_MODELS_MASTER:END */
5163
5163
  const DEFAULT_MODEL_COST = {
@@ -2132,7 +2132,7 @@ const XHIGH_MODEL_REFS = [
2132
2132
  "github-copilot/gpt-5.2"
2133
2133
  ];
2134
2134
  /* JOHNNESS_MODELS_MASTER:BEGIN xhigh refs (generated from models/models.json by scripts/models-sync.mjs; edit the master, not this block) */
2135
- XHIGH_MODEL_REFS.splice(0, XHIGH_MODEL_REFS.length, ...['deepseek/deepseek-flash','deepseek/deepseek-v4-pro','meta/muse-spark-1.3','meta/muse-spark-1.2','anthropic/claude-fable-5-1','anthropic/claude-sonnet-5-5','anthropic/claude-opus-5-5','anthropic/claude-opus-5','anthropic/claude-sonnet-5','anthropic/claude-fable-5','anthropic/claude-opus-4-6','azure-openai-responses/gpt-5.2','azure-openai-responses/gpt-5.2-chat-latest','azure-openai-responses/gpt-5.2-codex','azure-openai-responses/gpt-5.2-pro','azure-openai-responses/gpt-5.3-codex','azure-openai-responses/gpt-5.3-codex-spark','github-copilot/claude-opus-4.6','github-copilot/gpt-5.2','github-copilot/gpt-5.2-codex','openai/gpt-5.2','openai/gpt-5.2-chat-latest','openai/gpt-5.2-codex','openai/gpt-5.2-pro','openai/gpt-5.3-codex','openai/gpt-5.3-codex-spark','openai/gpt-6-astra','openai/gpt-6.1-sol','openai/gpt-6-sol','openai/gpt-6-luna','openai/gpt-5.6-sol','openai/gpt-5.6-terra','openai/gpt-5.6-luna','openai-codex/gpt-5.2','openai-codex/gpt-5.2-codex','openai-codex/gpt-5.3-codex','openai-codex/gpt-5.3-codex-spark','openai-codex/gpt-6.1-sol','openai-codex/gpt-6-sol','openai-codex/gpt-6-luna','openai-codex/gpt-6-astra','openai-codex/gpt-5.6-sol','openai-codex/gpt-5.6-terra','openai-codex/gpt-5.6-luna','opencode/claude-opus-4-6','opencode/gpt-5.2','opencode/gpt-5.2-codex','opencode/gpt-5.3-codex','openrouter/openai/gpt-5.2','openrouter/openai/gpt-5.2-chat','openrouter/openai/gpt-5.2-codex','openrouter/openai/gpt-5.2-pro','openrouter/openai/gpt-5.3-codex','vercel-ai-gateway/anthropic/claude-opus-4.6','vercel-ai-gateway/openai/gpt-5.2','vercel-ai-gateway/openai/gpt-5.2-chat','vercel-ai-gateway/openai/gpt-5.2-codex','vercel-ai-gateway/openai/gpt-5.2-pro','vercel-ai-gateway/openai/gpt-5.3-codex','xai/grok-4.7','xai/grok-4.6','openai/gpt-5.4','openai/gpt-5.4-pro','openai/gpt-5.6','openai-codex/gpt-5.6','openai-codex/gpt-5.4','openai-codex/gpt-5.1-codex']);
2135
+ XHIGH_MODEL_REFS.splice(0, XHIGH_MODEL_REFS.length, ...['deepseek/deepseek-flash','deepseek/deepseek-v4-pro','meta/muse-spark-1.3','meta/muse-spark-1.2','anthropic/claude-fable-5-1','anthropic/claude-sonnet-5-5','anthropic/claude-opus-5-5','anthropic/claude-haiku-5-5','anthropic/claude-opus-5','anthropic/claude-sonnet-5','anthropic/claude-fable-5','anthropic/claude-opus-4-6','azure-openai-responses/gpt-5.2','azure-openai-responses/gpt-5.2-chat-latest','azure-openai-responses/gpt-5.2-codex','azure-openai-responses/gpt-5.2-pro','azure-openai-responses/gpt-5.3-codex','azure-openai-responses/gpt-5.3-codex-spark','github-copilot/claude-opus-4.6','github-copilot/gpt-5.2','github-copilot/gpt-5.2-codex','openai/gpt-5.2','openai/gpt-5.2-chat-latest','openai/gpt-5.2-codex','openai/gpt-5.2-pro','openai/gpt-5.3-codex','openai/gpt-5.3-codex-spark','openai/gpt-6-astra','openai/gpt-6.1-sol','openai/gpt-6-sol','openai/gpt-6-luna','openai/gpt-5.6-sol','openai/gpt-5.6-terra','openai/gpt-5.6-luna','openai-codex/gpt-5.2','openai-codex/gpt-5.2-codex','openai-codex/gpt-5.3-codex','openai-codex/gpt-5.3-codex-spark','openai-codex/gpt-6.1-sol','openai-codex/gpt-6-sol','openai-codex/gpt-6-luna','openai-codex/gpt-6-astra','openai-codex/gpt-5.6-sol','openai-codex/gpt-5.6-terra','openai-codex/gpt-5.6-luna','opencode/claude-opus-4-6','opencode/gpt-5.2','opencode/gpt-5.2-codex','opencode/gpt-5.3-codex','openrouter/openai/gpt-5.2','openrouter/openai/gpt-5.2-chat','openrouter/openai/gpt-5.2-codex','openrouter/openai/gpt-5.2-pro','openrouter/openai/gpt-5.3-codex','vercel-ai-gateway/anthropic/claude-opus-4.6','vercel-ai-gateway/openai/gpt-5.2','vercel-ai-gateway/openai/gpt-5.2-chat','vercel-ai-gateway/openai/gpt-5.2-codex','vercel-ai-gateway/openai/gpt-5.2-pro','vercel-ai-gateway/openai/gpt-5.3-codex','xai/grok-4.7','xai/grok-4.6','openai/gpt-5.4','openai/gpt-5.4-pro','openai/gpt-5.6','openai-codex/gpt-5.6','openai-codex/gpt-5.4','openai-codex/gpt-5.1-codex']);
2136
2136
  /* JOHNNESS_MODELS_MASTER:END */
2137
2137
  new Set(XHIGH_MODEL_REFS.map((entry) => entry.toLowerCase()));
2138
2138
  new Set(XHIGH_MODEL_REFS.map((entry) => entry.split("/")[1]?.toLowerCase()).filter((entry) => Boolean(entry)));
@@ -1852,7 +1852,7 @@ Object.assign(DEFAULT_MODEL_ALIASES, {
1852
1852
  grok46: "xai/grok-4.6"
1853
1853
  });
1854
1854
  /* JOHNNESS_MODELS_MASTER:BEGIN aliases (generated from models/models.json by scripts/models-sync.mjs; edit the master, not this block) */
1855
- const JOHNNESS_MASTER_ALIASES = {"deepseek":"deepseek/deepseek-flash","deepseek-pro":"deepseek/deepseek-v4-pro","gemini-lite":"google/gemini-3.5-flash-lite","muse":"meta/muse-spark-1.3","muse-spark":"meta/muse-spark-1.3","opus46":"anthropic/claude-opus-4-6","sonnet46":"anthropic/claude-sonnet-4-6","gpt-mini":"openai/gpt-5-mini","gemini":"google/gemini-3.1-pro-preview","gemini-flash":"google/gemini-3.8-flash","gemini-flash-lite":"google/gemini-2.5-flash-lite","flash":"google/gemini-3.8-flash","banana":"google/gemini-3-pro-image-preview","nano-banana":"google/gemini-3-pro-image-preview","image":"openai-codex/gpt-image-2","sonnet5":"anthropic/claude-sonnet-5","opus5":"anthropic/claude-opus-5","sol6":"openai-codex/gpt-6-sol","sol56":"openai-codex/gpt-5.6-sol","luna56":"openai-codex/gpt-5.6-luna","grok46":"xai/grok-4.6","opus":"anthropic/claude-opus-5-5","sonnet":"anthropic/claude-sonnet-5-5","fable":"anthropic/claude-fable-5-1","gpt":"openai-codex/gpt-6.1-sol","sol":"openai-codex/gpt-6.1-sol","luna":"openai-codex/gpt-6-luna","astra":"openai-codex/gpt-6-astra","terra":"openai-codex/gpt-5.6-terra","grok":"xai/grok-4.7"};
1855
+ const JOHNNESS_MASTER_ALIASES = {"deepseek":"deepseek/deepseek-flash","deepseek-pro":"deepseek/deepseek-v4-pro","gemini-lite":"google/gemini-3.5-flash-lite","muse":"meta/muse-spark-1.3","muse-spark":"meta/muse-spark-1.3","opus46":"anthropic/claude-opus-4-6","sonnet46":"anthropic/claude-sonnet-4-6","gpt-mini":"openai/gpt-5-mini","gemini":"google/gemini-3.1-pro-preview","gemini-flash":"google/gemini-3.8-flash","gemini-flash-lite":"google/gemini-2.5-flash-lite","flash":"google/gemini-3.8-flash","banana":"google/gemini-3-pro-image-preview","nano-banana":"google/gemini-3-pro-image-preview","image":"openai-codex/gpt-image-2","sonnet5":"anthropic/claude-sonnet-5","opus5":"anthropic/claude-opus-5","haiku45":"anthropic/claude-haiku-4-5","sol6":"openai-codex/gpt-6-sol","sol56":"openai-codex/gpt-5.6-sol","luna56":"openai-codex/gpt-5.6-luna","grok46":"xai/grok-4.6","opus":"anthropic/claude-opus-5-5","sonnet":"anthropic/claude-sonnet-5-5","fable":"anthropic/claude-fable-5-1","haiku":"anthropic/claude-haiku-5-5","gpt":"openai-codex/gpt-6.1-sol","sol":"openai-codex/gpt-6.1-sol","luna":"openai-codex/gpt-6-luna","astra":"openai-codex/gpt-6-astra","terra":"openai-codex/gpt-5.6-terra","grok":"xai/grok-4.7"};
1856
1856
  for (const [alias, ref] of Object.entries(JOHNNESS_MASTER_ALIASES)) DEFAULT_MODEL_ALIASES[alias] = ref;
1857
1857
  /* JOHNNESS_MODELS_MASTER:END */
1858
1858
  const DEFAULT_MODEL_COST = {
@@ -5004,7 +5004,7 @@ Object.assign(DEFAULT_MODEL_ALIASES, {
5004
5004
  grok46: "xai/grok-4.6"
5005
5005
  });
5006
5006
  /* JOHNNESS_MODELS_MASTER:BEGIN aliases (generated from models/models.json by scripts/models-sync.mjs; edit the master, not this block) */
5007
- const JOHNNESS_MASTER_ALIASES = {"deepseek":"deepseek/deepseek-flash","deepseek-pro":"deepseek/deepseek-v4-pro","gemini-lite":"google/gemini-3.5-flash-lite","muse":"meta/muse-spark-1.3","muse-spark":"meta/muse-spark-1.3","opus46":"anthropic/claude-opus-4-6","sonnet46":"anthropic/claude-sonnet-4-6","gpt-mini":"openai/gpt-5-mini","gemini":"google/gemini-3.1-pro-preview","gemini-flash":"google/gemini-3.8-flash","gemini-flash-lite":"google/gemini-2.5-flash-lite","flash":"google/gemini-3.8-flash","banana":"google/gemini-3-pro-image-preview","nano-banana":"google/gemini-3-pro-image-preview","image":"openai-codex/gpt-image-2","sonnet5":"anthropic/claude-sonnet-5","opus5":"anthropic/claude-opus-5","sol6":"openai-codex/gpt-6-sol","sol56":"openai-codex/gpt-5.6-sol","luna56":"openai-codex/gpt-5.6-luna","grok46":"xai/grok-4.6","opus":"anthropic/claude-opus-5-5","sonnet":"anthropic/claude-sonnet-5-5","fable":"anthropic/claude-fable-5-1","gpt":"openai-codex/gpt-6.1-sol","sol":"openai-codex/gpt-6.1-sol","luna":"openai-codex/gpt-6-luna","astra":"openai-codex/gpt-6-astra","terra":"openai-codex/gpt-5.6-terra","grok":"xai/grok-4.7"};
5007
+ const JOHNNESS_MASTER_ALIASES = {"deepseek":"deepseek/deepseek-flash","deepseek-pro":"deepseek/deepseek-v4-pro","gemini-lite":"google/gemini-3.5-flash-lite","muse":"meta/muse-spark-1.3","muse-spark":"meta/muse-spark-1.3","opus46":"anthropic/claude-opus-4-6","sonnet46":"anthropic/claude-sonnet-4-6","gpt-mini":"openai/gpt-5-mini","gemini":"google/gemini-3.1-pro-preview","gemini-flash":"google/gemini-3.8-flash","gemini-flash-lite":"google/gemini-2.5-flash-lite","flash":"google/gemini-3.8-flash","banana":"google/gemini-3-pro-image-preview","nano-banana":"google/gemini-3-pro-image-preview","image":"openai-codex/gpt-image-2","sonnet5":"anthropic/claude-sonnet-5","opus5":"anthropic/claude-opus-5","haiku45":"anthropic/claude-haiku-4-5","sol6":"openai-codex/gpt-6-sol","sol56":"openai-codex/gpt-5.6-sol","luna56":"openai-codex/gpt-5.6-luna","grok46":"xai/grok-4.6","opus":"anthropic/claude-opus-5-5","sonnet":"anthropic/claude-sonnet-5-5","fable":"anthropic/claude-fable-5-1","haiku":"anthropic/claude-haiku-5-5","gpt":"openai-codex/gpt-6.1-sol","sol":"openai-codex/gpt-6.1-sol","luna":"openai-codex/gpt-6-luna","astra":"openai-codex/gpt-6-astra","terra":"openai-codex/gpt-5.6-terra","grok":"xai/grok-4.7"};
5008
5008
  for (const [alias, ref] of Object.entries(JOHNNESS_MASTER_ALIASES)) DEFAULT_MODEL_ALIASES[alias] = ref;
5009
5009
  /* JOHNNESS_MODELS_MASTER:END */
5010
5010
  const DEFAULT_MODEL_COST = {
@@ -1709,7 +1709,7 @@ Object.assign(DEFAULT_MODEL_ALIASES, {
1709
1709
  grok46: "xai/grok-4.6"
1710
1710
  });
1711
1711
  /* JOHNNESS_MODELS_MASTER:BEGIN aliases (generated from models/models.json by scripts/models-sync.mjs; edit the master, not this block) */
1712
- const JOHNNESS_MASTER_ALIASES = {"deepseek":"deepseek/deepseek-flash","deepseek-pro":"deepseek/deepseek-v4-pro","gemini-lite":"google/gemini-3.5-flash-lite","muse":"meta/muse-spark-1.3","muse-spark":"meta/muse-spark-1.3","opus46":"anthropic/claude-opus-4-6","sonnet46":"anthropic/claude-sonnet-4-6","gpt-mini":"openai/gpt-5-mini","gemini":"google/gemini-3.1-pro-preview","gemini-flash":"google/gemini-3.8-flash","gemini-flash-lite":"google/gemini-2.5-flash-lite","flash":"google/gemini-3.8-flash","banana":"google/gemini-3-pro-image-preview","nano-banana":"google/gemini-3-pro-image-preview","image":"openai-codex/gpt-image-2","sonnet5":"anthropic/claude-sonnet-5","opus5":"anthropic/claude-opus-5","sol6":"openai-codex/gpt-6-sol","sol56":"openai-codex/gpt-5.6-sol","luna56":"openai-codex/gpt-5.6-luna","grok46":"xai/grok-4.6","opus":"anthropic/claude-opus-5-5","sonnet":"anthropic/claude-sonnet-5-5","fable":"anthropic/claude-fable-5-1","gpt":"openai-codex/gpt-6.1-sol","sol":"openai-codex/gpt-6.1-sol","luna":"openai-codex/gpt-6-luna","astra":"openai-codex/gpt-6-astra","terra":"openai-codex/gpt-5.6-terra","grok":"xai/grok-4.7"};
1712
+ const JOHNNESS_MASTER_ALIASES = {"deepseek":"deepseek/deepseek-flash","deepseek-pro":"deepseek/deepseek-v4-pro","gemini-lite":"google/gemini-3.5-flash-lite","muse":"meta/muse-spark-1.3","muse-spark":"meta/muse-spark-1.3","opus46":"anthropic/claude-opus-4-6","sonnet46":"anthropic/claude-sonnet-4-6","gpt-mini":"openai/gpt-5-mini","gemini":"google/gemini-3.1-pro-preview","gemini-flash":"google/gemini-3.8-flash","gemini-flash-lite":"google/gemini-2.5-flash-lite","flash":"google/gemini-3.8-flash","banana":"google/gemini-3-pro-image-preview","nano-banana":"google/gemini-3-pro-image-preview","image":"openai-codex/gpt-image-2","sonnet5":"anthropic/claude-sonnet-5","opus5":"anthropic/claude-opus-5","haiku45":"anthropic/claude-haiku-4-5","sol6":"openai-codex/gpt-6-sol","sol56":"openai-codex/gpt-5.6-sol","luna56":"openai-codex/gpt-5.6-luna","grok46":"xai/grok-4.6","opus":"anthropic/claude-opus-5-5","sonnet":"anthropic/claude-sonnet-5-5","fable":"anthropic/claude-fable-5-1","haiku":"anthropic/claude-haiku-5-5","gpt":"openai-codex/gpt-6.1-sol","sol":"openai-codex/gpt-6.1-sol","luna":"openai-codex/gpt-6-luna","astra":"openai-codex/gpt-6-astra","terra":"openai-codex/gpt-5.6-terra","grok":"xai/grok-4.7"};
1713
1713
  for (const [alias, ref] of Object.entries(JOHNNESS_MASTER_ALIASES)) DEFAULT_MODEL_ALIASES[alias] = ref;
1714
1714
  /* JOHNNESS_MODELS_MASTER:END */
1715
1715
  const DEFAULT_MODEL_COST = {
@@ -1684,7 +1684,7 @@ Object.assign(DEFAULT_MODEL_ALIASES, {
1684
1684
  grok46: "xai/grok-4.6"
1685
1685
  });
1686
1686
  /* JOHNNESS_MODELS_MASTER:BEGIN aliases (generated from models/models.json by scripts/models-sync.mjs; edit the master, not this block) */
1687
- const JOHNNESS_MASTER_ALIASES = {"deepseek":"deepseek/deepseek-flash","deepseek-pro":"deepseek/deepseek-v4-pro","gemini-lite":"google/gemini-3.5-flash-lite","muse":"meta/muse-spark-1.3","muse-spark":"meta/muse-spark-1.3","opus46":"anthropic/claude-opus-4-6","sonnet46":"anthropic/claude-sonnet-4-6","gpt-mini":"openai/gpt-5-mini","gemini":"google/gemini-3.1-pro-preview","gemini-flash":"google/gemini-3.8-flash","gemini-flash-lite":"google/gemini-2.5-flash-lite","flash":"google/gemini-3.8-flash","banana":"google/gemini-3-pro-image-preview","nano-banana":"google/gemini-3-pro-image-preview","image":"openai-codex/gpt-image-2","sonnet5":"anthropic/claude-sonnet-5","opus5":"anthropic/claude-opus-5","sol6":"openai-codex/gpt-6-sol","sol56":"openai-codex/gpt-5.6-sol","luna56":"openai-codex/gpt-5.6-luna","grok46":"xai/grok-4.6","opus":"anthropic/claude-opus-5-5","sonnet":"anthropic/claude-sonnet-5-5","fable":"anthropic/claude-fable-5-1","gpt":"openai-codex/gpt-6.1-sol","sol":"openai-codex/gpt-6.1-sol","luna":"openai-codex/gpt-6-luna","astra":"openai-codex/gpt-6-astra","terra":"openai-codex/gpt-5.6-terra","grok":"xai/grok-4.7"};
1687
+ const JOHNNESS_MASTER_ALIASES = {"deepseek":"deepseek/deepseek-flash","deepseek-pro":"deepseek/deepseek-v4-pro","gemini-lite":"google/gemini-3.5-flash-lite","muse":"meta/muse-spark-1.3","muse-spark":"meta/muse-spark-1.3","opus46":"anthropic/claude-opus-4-6","sonnet46":"anthropic/claude-sonnet-4-6","gpt-mini":"openai/gpt-5-mini","gemini":"google/gemini-3.1-pro-preview","gemini-flash":"google/gemini-3.8-flash","gemini-flash-lite":"google/gemini-2.5-flash-lite","flash":"google/gemini-3.8-flash","banana":"google/gemini-3-pro-image-preview","nano-banana":"google/gemini-3-pro-image-preview","image":"openai-codex/gpt-image-2","sonnet5":"anthropic/claude-sonnet-5","opus5":"anthropic/claude-opus-5","haiku45":"anthropic/claude-haiku-4-5","sol6":"openai-codex/gpt-6-sol","sol56":"openai-codex/gpt-5.6-sol","luna56":"openai-codex/gpt-5.6-luna","grok46":"xai/grok-4.6","opus":"anthropic/claude-opus-5-5","sonnet":"anthropic/claude-sonnet-5-5","fable":"anthropic/claude-fable-5-1","haiku":"anthropic/claude-haiku-5-5","gpt":"openai-codex/gpt-6.1-sol","sol":"openai-codex/gpt-6.1-sol","luna":"openai-codex/gpt-6-luna","astra":"openai-codex/gpt-6-astra","terra":"openai-codex/gpt-5.6-terra","grok":"xai/grok-4.7"};
1688
1688
  for (const [alias, ref] of Object.entries(JOHNNESS_MASTER_ALIASES)) DEFAULT_MODEL_ALIASES[alias] = ref;
1689
1689
  /* JOHNNESS_MODELS_MASTER:END */
1690
1690
  const DEFAULT_MODEL_COST = {
@@ -1615,7 +1615,7 @@ Object.assign(DEFAULT_MODEL_ALIASES, {
1615
1615
  grok46: "xai/grok-4.6"
1616
1616
  });
1617
1617
  /* JOHNNESS_MODELS_MASTER:BEGIN aliases (generated from models/models.json by scripts/models-sync.mjs; edit the master, not this block) */
1618
- const JOHNNESS_MASTER_ALIASES = {"deepseek":"deepseek/deepseek-flash","deepseek-pro":"deepseek/deepseek-v4-pro","gemini-lite":"google/gemini-3.5-flash-lite","muse":"meta/muse-spark-1.3","muse-spark":"meta/muse-spark-1.3","opus46":"anthropic/claude-opus-4-6","sonnet46":"anthropic/claude-sonnet-4-6","gpt-mini":"openai/gpt-5-mini","gemini":"google/gemini-3.1-pro-preview","gemini-flash":"google/gemini-3.8-flash","gemini-flash-lite":"google/gemini-2.5-flash-lite","flash":"google/gemini-3.8-flash","banana":"google/gemini-3-pro-image-preview","nano-banana":"google/gemini-3-pro-image-preview","image":"openai-codex/gpt-image-2","sonnet5":"anthropic/claude-sonnet-5","opus5":"anthropic/claude-opus-5","sol6":"openai-codex/gpt-6-sol","sol56":"openai-codex/gpt-5.6-sol","luna56":"openai-codex/gpt-5.6-luna","grok46":"xai/grok-4.6","opus":"anthropic/claude-opus-5-5","sonnet":"anthropic/claude-sonnet-5-5","fable":"anthropic/claude-fable-5-1","gpt":"openai-codex/gpt-6.1-sol","sol":"openai-codex/gpt-6.1-sol","luna":"openai-codex/gpt-6-luna","astra":"openai-codex/gpt-6-astra","terra":"openai-codex/gpt-5.6-terra","grok":"xai/grok-4.7"};
1618
+ const JOHNNESS_MASTER_ALIASES = {"deepseek":"deepseek/deepseek-flash","deepseek-pro":"deepseek/deepseek-v4-pro","gemini-lite":"google/gemini-3.5-flash-lite","muse":"meta/muse-spark-1.3","muse-spark":"meta/muse-spark-1.3","opus46":"anthropic/claude-opus-4-6","sonnet46":"anthropic/claude-sonnet-4-6","gpt-mini":"openai/gpt-5-mini","gemini":"google/gemini-3.1-pro-preview","gemini-flash":"google/gemini-3.8-flash","gemini-flash-lite":"google/gemini-2.5-flash-lite","flash":"google/gemini-3.8-flash","banana":"google/gemini-3-pro-image-preview","nano-banana":"google/gemini-3-pro-image-preview","image":"openai-codex/gpt-image-2","sonnet5":"anthropic/claude-sonnet-5","opus5":"anthropic/claude-opus-5","haiku45":"anthropic/claude-haiku-4-5","sol6":"openai-codex/gpt-6-sol","sol56":"openai-codex/gpt-5.6-sol","luna56":"openai-codex/gpt-5.6-luna","grok46":"xai/grok-4.6","opus":"anthropic/claude-opus-5-5","sonnet":"anthropic/claude-sonnet-5-5","fable":"anthropic/claude-fable-5-1","haiku":"anthropic/claude-haiku-5-5","gpt":"openai-codex/gpt-6.1-sol","sol":"openai-codex/gpt-6.1-sol","luna":"openai-codex/gpt-6-luna","astra":"openai-codex/gpt-6-astra","terra":"openai-codex/gpt-5.6-terra","grok":"xai/grok-4.7"};
1619
1619
  for (const [alias, ref] of Object.entries(JOHNNESS_MASTER_ALIASES)) DEFAULT_MODEL_ALIASES[alias] = ref;
1620
1620
  /* JOHNNESS_MODELS_MASTER:END */
1621
1621
  const DEFAULT_MODEL_COST = {
@@ -7102,7 +7102,7 @@ Object.assign(DEFAULT_MODEL_ALIASES, {
7102
7102
  grok46: "xai/grok-4.6"
7103
7103
  });
7104
7104
  /* JOHNNESS_MODELS_MASTER:BEGIN aliases (generated from models/models.json by scripts/models-sync.mjs; edit the master, not this block) */
7105
- const JOHNNESS_MASTER_ALIASES = {"deepseek":"deepseek/deepseek-flash","deepseek-pro":"deepseek/deepseek-v4-pro","gemini-lite":"google/gemini-3.5-flash-lite","muse":"meta/muse-spark-1.3","muse-spark":"meta/muse-spark-1.3","opus46":"anthropic/claude-opus-4-6","sonnet46":"anthropic/claude-sonnet-4-6","gpt-mini":"openai/gpt-5-mini","gemini":"google/gemini-3.1-pro-preview","gemini-flash":"google/gemini-3.8-flash","gemini-flash-lite":"google/gemini-2.5-flash-lite","flash":"google/gemini-3.8-flash","banana":"google/gemini-3-pro-image-preview","nano-banana":"google/gemini-3-pro-image-preview","image":"openai-codex/gpt-image-2","sonnet5":"anthropic/claude-sonnet-5","opus5":"anthropic/claude-opus-5","sol6":"openai-codex/gpt-6-sol","sol56":"openai-codex/gpt-5.6-sol","luna56":"openai-codex/gpt-5.6-luna","grok46":"xai/grok-4.6","opus":"anthropic/claude-opus-5-5","sonnet":"anthropic/claude-sonnet-5-5","fable":"anthropic/claude-fable-5-1","gpt":"openai-codex/gpt-6.1-sol","sol":"openai-codex/gpt-6.1-sol","luna":"openai-codex/gpt-6-luna","astra":"openai-codex/gpt-6-astra","terra":"openai-codex/gpt-5.6-terra","grok":"xai/grok-4.7"};
7105
+ const JOHNNESS_MASTER_ALIASES = {"deepseek":"deepseek/deepseek-flash","deepseek-pro":"deepseek/deepseek-v4-pro","gemini-lite":"google/gemini-3.5-flash-lite","muse":"meta/muse-spark-1.3","muse-spark":"meta/muse-spark-1.3","opus46":"anthropic/claude-opus-4-6","sonnet46":"anthropic/claude-sonnet-4-6","gpt-mini":"openai/gpt-5-mini","gemini":"google/gemini-3.1-pro-preview","gemini-flash":"google/gemini-3.8-flash","gemini-flash-lite":"google/gemini-2.5-flash-lite","flash":"google/gemini-3.8-flash","banana":"google/gemini-3-pro-image-preview","nano-banana":"google/gemini-3-pro-image-preview","image":"openai-codex/gpt-image-2","sonnet5":"anthropic/claude-sonnet-5","opus5":"anthropic/claude-opus-5","haiku45":"anthropic/claude-haiku-4-5","sol6":"openai-codex/gpt-6-sol","sol56":"openai-codex/gpt-5.6-sol","luna56":"openai-codex/gpt-5.6-luna","grok46":"xai/grok-4.6","opus":"anthropic/claude-opus-5-5","sonnet":"anthropic/claude-sonnet-5-5","fable":"anthropic/claude-fable-5-1","haiku":"anthropic/claude-haiku-5-5","gpt":"openai-codex/gpt-6.1-sol","sol":"openai-codex/gpt-6.1-sol","luna":"openai-codex/gpt-6-luna","astra":"openai-codex/gpt-6-astra","terra":"openai-codex/gpt-5.6-terra","grok":"xai/grok-4.7"};
7106
7106
  for (const [alias, ref] of Object.entries(JOHNNESS_MASTER_ALIASES)) DEFAULT_MODEL_ALIASES[alias] = ref;
7107
7107
  /* JOHNNESS_MODELS_MASTER:END */
7108
7108
  const DEFAULT_MODEL_COST = {
@@ -8103,7 +8103,7 @@ Object.assign(DEFAULT_MODEL_ALIASES, {
8103
8103
  grok46: "xai/grok-4.6"
8104
8104
  });
8105
8105
  /* JOHNNESS_MODELS_MASTER:BEGIN aliases (generated from models/models.json by scripts/models-sync.mjs; edit the master, not this block) */
8106
- const JOHNNESS_MASTER_ALIASES = {"deepseek":"deepseek/deepseek-flash","deepseek-pro":"deepseek/deepseek-v4-pro","gemini-lite":"google/gemini-3.5-flash-lite","muse":"meta/muse-spark-1.3","muse-spark":"meta/muse-spark-1.3","opus46":"anthropic/claude-opus-4-6","sonnet46":"anthropic/claude-sonnet-4-6","gpt-mini":"openai/gpt-5-mini","gemini":"google/gemini-3.1-pro-preview","gemini-flash":"google/gemini-3.8-flash","gemini-flash-lite":"google/gemini-2.5-flash-lite","flash":"google/gemini-3.8-flash","banana":"google/gemini-3-pro-image-preview","nano-banana":"google/gemini-3-pro-image-preview","image":"openai-codex/gpt-image-2","sonnet5":"anthropic/claude-sonnet-5","opus5":"anthropic/claude-opus-5","sol6":"openai-codex/gpt-6-sol","sol56":"openai-codex/gpt-5.6-sol","luna56":"openai-codex/gpt-5.6-luna","grok46":"xai/grok-4.6","opus":"anthropic/claude-opus-5-5","sonnet":"anthropic/claude-sonnet-5-5","fable":"anthropic/claude-fable-5-1","gpt":"openai-codex/gpt-6.1-sol","sol":"openai-codex/gpt-6.1-sol","luna":"openai-codex/gpt-6-luna","astra":"openai-codex/gpt-6-astra","terra":"openai-codex/gpt-5.6-terra","grok":"xai/grok-4.7"};
8106
+ const JOHNNESS_MASTER_ALIASES = {"deepseek":"deepseek/deepseek-flash","deepseek-pro":"deepseek/deepseek-v4-pro","gemini-lite":"google/gemini-3.5-flash-lite","muse":"meta/muse-spark-1.3","muse-spark":"meta/muse-spark-1.3","opus46":"anthropic/claude-opus-4-6","sonnet46":"anthropic/claude-sonnet-4-6","gpt-mini":"openai/gpt-5-mini","gemini":"google/gemini-3.1-pro-preview","gemini-flash":"google/gemini-3.8-flash","gemini-flash-lite":"google/gemini-2.5-flash-lite","flash":"google/gemini-3.8-flash","banana":"google/gemini-3-pro-image-preview","nano-banana":"google/gemini-3-pro-image-preview","image":"openai-codex/gpt-image-2","sonnet5":"anthropic/claude-sonnet-5","opus5":"anthropic/claude-opus-5","haiku45":"anthropic/claude-haiku-4-5","sol6":"openai-codex/gpt-6-sol","sol56":"openai-codex/gpt-5.6-sol","luna56":"openai-codex/gpt-5.6-luna","grok46":"xai/grok-4.6","opus":"anthropic/claude-opus-5-5","sonnet":"anthropic/claude-sonnet-5-5","fable":"anthropic/claude-fable-5-1","haiku":"anthropic/claude-haiku-5-5","gpt":"openai-codex/gpt-6.1-sol","sol":"openai-codex/gpt-6.1-sol","luna":"openai-codex/gpt-6-luna","astra":"openai-codex/gpt-6-astra","terra":"openai-codex/gpt-5.6-terra","grok":"xai/grok-4.7"};
8107
8107
  for (const [alias, ref] of Object.entries(JOHNNESS_MASTER_ALIASES)) DEFAULT_MODEL_ALIASES[alias] = ref;
8108
8108
  /* JOHNNESS_MODELS_MASTER:END */
8109
8109
  const DEFAULT_MODEL_COST = {
@@ -5232,7 +5232,7 @@ Object.assign(DEFAULT_MODEL_ALIASES, {
5232
5232
  grok46: "xai/grok-4.6"
5233
5233
  });
5234
5234
  /* JOHNNESS_MODELS_MASTER:BEGIN aliases (generated from models/models.json by scripts/models-sync.mjs; edit the master, not this block) */
5235
- const JOHNNESS_MASTER_ALIASES = {"deepseek":"deepseek/deepseek-flash","deepseek-pro":"deepseek/deepseek-v4-pro","gemini-lite":"google/gemini-3.5-flash-lite","muse":"meta/muse-spark-1.3","muse-spark":"meta/muse-spark-1.3","opus46":"anthropic/claude-opus-4-6","sonnet46":"anthropic/claude-sonnet-4-6","gpt-mini":"openai/gpt-5-mini","gemini":"google/gemini-3.1-pro-preview","gemini-flash":"google/gemini-3.8-flash","gemini-flash-lite":"google/gemini-2.5-flash-lite","flash":"google/gemini-3.8-flash","banana":"google/gemini-3-pro-image-preview","nano-banana":"google/gemini-3-pro-image-preview","image":"openai-codex/gpt-image-2","sonnet5":"anthropic/claude-sonnet-5","opus5":"anthropic/claude-opus-5","sol6":"openai-codex/gpt-6-sol","sol56":"openai-codex/gpt-5.6-sol","luna56":"openai-codex/gpt-5.6-luna","grok46":"xai/grok-4.6","opus":"anthropic/claude-opus-5-5","sonnet":"anthropic/claude-sonnet-5-5","fable":"anthropic/claude-fable-5-1","gpt":"openai-codex/gpt-6.1-sol","sol":"openai-codex/gpt-6.1-sol","luna":"openai-codex/gpt-6-luna","astra":"openai-codex/gpt-6-astra","terra":"openai-codex/gpt-5.6-terra","grok":"xai/grok-4.7"};
5235
+ const JOHNNESS_MASTER_ALIASES = {"deepseek":"deepseek/deepseek-flash","deepseek-pro":"deepseek/deepseek-v4-pro","gemini-lite":"google/gemini-3.5-flash-lite","muse":"meta/muse-spark-1.3","muse-spark":"meta/muse-spark-1.3","opus46":"anthropic/claude-opus-4-6","sonnet46":"anthropic/claude-sonnet-4-6","gpt-mini":"openai/gpt-5-mini","gemini":"google/gemini-3.1-pro-preview","gemini-flash":"google/gemini-3.8-flash","gemini-flash-lite":"google/gemini-2.5-flash-lite","flash":"google/gemini-3.8-flash","banana":"google/gemini-3-pro-image-preview","nano-banana":"google/gemini-3-pro-image-preview","image":"openai-codex/gpt-image-2","sonnet5":"anthropic/claude-sonnet-5","opus5":"anthropic/claude-opus-5","haiku45":"anthropic/claude-haiku-4-5","sol6":"openai-codex/gpt-6-sol","sol56":"openai-codex/gpt-5.6-sol","luna56":"openai-codex/gpt-5.6-luna","grok46":"xai/grok-4.6","opus":"anthropic/claude-opus-5-5","sonnet":"anthropic/claude-sonnet-5-5","fable":"anthropic/claude-fable-5-1","haiku":"anthropic/claude-haiku-5-5","gpt":"openai-codex/gpt-6.1-sol","sol":"openai-codex/gpt-6.1-sol","luna":"openai-codex/gpt-6-luna","astra":"openai-codex/gpt-6-astra","terra":"openai-codex/gpt-5.6-terra","grok":"xai/grok-4.7"};
5236
5236
  for (const [alias, ref] of Object.entries(JOHNNESS_MASTER_ALIASES)) DEFAULT_MODEL_ALIASES[alias] = ref;
5237
5237
  /* JOHNNESS_MODELS_MASTER:END */
5238
5238
  const DEFAULT_MODEL_COST = {
@@ -3157,7 +3157,7 @@ const XHIGH_MODEL_REFS = [
3157
3157
  "github-copilot/gpt-5.2"
3158
3158
  ];
3159
3159
  /* JOHNNESS_MODELS_MASTER:BEGIN xhigh refs (generated from models/models.json by scripts/models-sync.mjs; edit the master, not this block) */
3160
- XHIGH_MODEL_REFS.splice(0, XHIGH_MODEL_REFS.length, ...['deepseek/deepseek-flash','deepseek/deepseek-v4-pro','meta/muse-spark-1.3','meta/muse-spark-1.2','anthropic/claude-fable-5-1','anthropic/claude-sonnet-5-5','anthropic/claude-opus-5-5','anthropic/claude-opus-5','anthropic/claude-sonnet-5','anthropic/claude-fable-5','anthropic/claude-opus-4-6','azure-openai-responses/gpt-5.2','azure-openai-responses/gpt-5.2-chat-latest','azure-openai-responses/gpt-5.2-codex','azure-openai-responses/gpt-5.2-pro','azure-openai-responses/gpt-5.3-codex','azure-openai-responses/gpt-5.3-codex-spark','github-copilot/claude-opus-4.6','github-copilot/gpt-5.2','github-copilot/gpt-5.2-codex','openai/gpt-5.2','openai/gpt-5.2-chat-latest','openai/gpt-5.2-codex','openai/gpt-5.2-pro','openai/gpt-5.3-codex','openai/gpt-5.3-codex-spark','openai/gpt-6-astra','openai/gpt-6.1-sol','openai/gpt-6-sol','openai/gpt-6-luna','openai/gpt-5.6-sol','openai/gpt-5.6-terra','openai/gpt-5.6-luna','openai-codex/gpt-5.2','openai-codex/gpt-5.2-codex','openai-codex/gpt-5.3-codex','openai-codex/gpt-5.3-codex-spark','openai-codex/gpt-6.1-sol','openai-codex/gpt-6-sol','openai-codex/gpt-6-luna','openai-codex/gpt-6-astra','openai-codex/gpt-5.6-sol','openai-codex/gpt-5.6-terra','openai-codex/gpt-5.6-luna','opencode/claude-opus-4-6','opencode/gpt-5.2','opencode/gpt-5.2-codex','opencode/gpt-5.3-codex','openrouter/openai/gpt-5.2','openrouter/openai/gpt-5.2-chat','openrouter/openai/gpt-5.2-codex','openrouter/openai/gpt-5.2-pro','openrouter/openai/gpt-5.3-codex','vercel-ai-gateway/anthropic/claude-opus-4.6','vercel-ai-gateway/openai/gpt-5.2','vercel-ai-gateway/openai/gpt-5.2-chat','vercel-ai-gateway/openai/gpt-5.2-codex','vercel-ai-gateway/openai/gpt-5.2-pro','vercel-ai-gateway/openai/gpt-5.3-codex','xai/grok-4.7','xai/grok-4.6','openai/gpt-5.4','openai/gpt-5.4-pro','openai/gpt-5.6','openai-codex/gpt-5.6','openai-codex/gpt-5.4','openai-codex/gpt-5.1-codex']);
3160
+ XHIGH_MODEL_REFS.splice(0, XHIGH_MODEL_REFS.length, ...['deepseek/deepseek-flash','deepseek/deepseek-v4-pro','meta/muse-spark-1.3','meta/muse-spark-1.2','anthropic/claude-fable-5-1','anthropic/claude-sonnet-5-5','anthropic/claude-opus-5-5','anthropic/claude-haiku-5-5','anthropic/claude-opus-5','anthropic/claude-sonnet-5','anthropic/claude-fable-5','anthropic/claude-opus-4-6','azure-openai-responses/gpt-5.2','azure-openai-responses/gpt-5.2-chat-latest','azure-openai-responses/gpt-5.2-codex','azure-openai-responses/gpt-5.2-pro','azure-openai-responses/gpt-5.3-codex','azure-openai-responses/gpt-5.3-codex-spark','github-copilot/claude-opus-4.6','github-copilot/gpt-5.2','github-copilot/gpt-5.2-codex','openai/gpt-5.2','openai/gpt-5.2-chat-latest','openai/gpt-5.2-codex','openai/gpt-5.2-pro','openai/gpt-5.3-codex','openai/gpt-5.3-codex-spark','openai/gpt-6-astra','openai/gpt-6.1-sol','openai/gpt-6-sol','openai/gpt-6-luna','openai/gpt-5.6-sol','openai/gpt-5.6-terra','openai/gpt-5.6-luna','openai-codex/gpt-5.2','openai-codex/gpt-5.2-codex','openai-codex/gpt-5.3-codex','openai-codex/gpt-5.3-codex-spark','openai-codex/gpt-6.1-sol','openai-codex/gpt-6-sol','openai-codex/gpt-6-luna','openai-codex/gpt-6-astra','openai-codex/gpt-5.6-sol','openai-codex/gpt-5.6-terra','openai-codex/gpt-5.6-luna','opencode/claude-opus-4-6','opencode/gpt-5.2','opencode/gpt-5.2-codex','opencode/gpt-5.3-codex','openrouter/openai/gpt-5.2','openrouter/openai/gpt-5.2-chat','openrouter/openai/gpt-5.2-codex','openrouter/openai/gpt-5.2-pro','openrouter/openai/gpt-5.3-codex','vercel-ai-gateway/anthropic/claude-opus-4.6','vercel-ai-gateway/openai/gpt-5.2','vercel-ai-gateway/openai/gpt-5.2-chat','vercel-ai-gateway/openai/gpt-5.2-codex','vercel-ai-gateway/openai/gpt-5.2-pro','vercel-ai-gateway/openai/gpt-5.3-codex','xai/grok-4.7','xai/grok-4.6','openai/gpt-5.4','openai/gpt-5.4-pro','openai/gpt-5.6','openai-codex/gpt-5.6','openai-codex/gpt-5.4','openai-codex/gpt-5.1-codex']);
3161
3161
  /* JOHNNESS_MODELS_MASTER:END */
3162
3162
  const XHIGH_MODEL_SET = new Set(XHIGH_MODEL_REFS.map((entry) => entry.toLowerCase()));
3163
3163
  const XHIGH_MODEL_IDS = new Set(XHIGH_MODEL_REFS.map((entry) => entry.split("/")[1]?.toLowerCase()).filter((entry) => Boolean(entry)));
@@ -6023,7 +6023,7 @@ Object.assign(DEFAULT_MODEL_ALIASES, {
6023
6023
  grok46: "xai/grok-4.6"
6024
6024
  });
6025
6025
  /* JOHNNESS_MODELS_MASTER:BEGIN aliases (generated from models/models.json by scripts/models-sync.mjs; edit the master, not this block) */
6026
- const JOHNNESS_MASTER_ALIASES = {"deepseek":"deepseek/deepseek-flash","deepseek-pro":"deepseek/deepseek-v4-pro","gemini-lite":"google/gemini-3.5-flash-lite","muse":"meta/muse-spark-1.3","muse-spark":"meta/muse-spark-1.3","opus46":"anthropic/claude-opus-4-6","sonnet46":"anthropic/claude-sonnet-4-6","gpt-mini":"openai/gpt-5-mini","gemini":"google/gemini-3.1-pro-preview","gemini-flash":"google/gemini-3.8-flash","gemini-flash-lite":"google/gemini-2.5-flash-lite","flash":"google/gemini-3.8-flash","banana":"google/gemini-3-pro-image-preview","nano-banana":"google/gemini-3-pro-image-preview","image":"openai-codex/gpt-image-2","sonnet5":"anthropic/claude-sonnet-5","opus5":"anthropic/claude-opus-5","sol6":"openai-codex/gpt-6-sol","sol56":"openai-codex/gpt-5.6-sol","luna56":"openai-codex/gpt-5.6-luna","grok46":"xai/grok-4.6","opus":"anthropic/claude-opus-5-5","sonnet":"anthropic/claude-sonnet-5-5","fable":"anthropic/claude-fable-5-1","gpt":"openai-codex/gpt-6.1-sol","sol":"openai-codex/gpt-6.1-sol","luna":"openai-codex/gpt-6-luna","astra":"openai-codex/gpt-6-astra","terra":"openai-codex/gpt-5.6-terra","grok":"xai/grok-4.7"};
6026
+ const JOHNNESS_MASTER_ALIASES = {"deepseek":"deepseek/deepseek-flash","deepseek-pro":"deepseek/deepseek-v4-pro","gemini-lite":"google/gemini-3.5-flash-lite","muse":"meta/muse-spark-1.3","muse-spark":"meta/muse-spark-1.3","opus46":"anthropic/claude-opus-4-6","sonnet46":"anthropic/claude-sonnet-4-6","gpt-mini":"openai/gpt-5-mini","gemini":"google/gemini-3.1-pro-preview","gemini-flash":"google/gemini-3.8-flash","gemini-flash-lite":"google/gemini-2.5-flash-lite","flash":"google/gemini-3.8-flash","banana":"google/gemini-3-pro-image-preview","nano-banana":"google/gemini-3-pro-image-preview","image":"openai-codex/gpt-image-2","sonnet5":"anthropic/claude-sonnet-5","opus5":"anthropic/claude-opus-5","haiku45":"anthropic/claude-haiku-4-5","sol6":"openai-codex/gpt-6-sol","sol56":"openai-codex/gpt-5.6-sol","luna56":"openai-codex/gpt-5.6-luna","grok46":"xai/grok-4.6","opus":"anthropic/claude-opus-5-5","sonnet":"anthropic/claude-sonnet-5-5","fable":"anthropic/claude-fable-5-1","haiku":"anthropic/claude-haiku-5-5","gpt":"openai-codex/gpt-6.1-sol","sol":"openai-codex/gpt-6.1-sol","luna":"openai-codex/gpt-6-luna","astra":"openai-codex/gpt-6-astra","terra":"openai-codex/gpt-5.6-terra","grok":"xai/grok-4.7"};
6027
6027
  for (const [alias, ref] of Object.entries(JOHNNESS_MASTER_ALIASES)) DEFAULT_MODEL_ALIASES[alias] = ref;
6028
6028
  /* JOHNNESS_MODELS_MASTER:END */
6029
6029
  const DEFAULT_MODEL_COST = {
@@ -4992,7 +4992,7 @@ Object.assign(DEFAULT_MODEL_ALIASES, {
4992
4992
  grok46: "xai/grok-4.6"
4993
4993
  });
4994
4994
  /* JOHNNESS_MODELS_MASTER:BEGIN aliases (generated from models/models.json by scripts/models-sync.mjs; edit the master, not this block) */
4995
- const JOHNNESS_MASTER_ALIASES = {"deepseek":"deepseek/deepseek-flash","deepseek-pro":"deepseek/deepseek-v4-pro","gemini-lite":"google/gemini-3.5-flash-lite","muse":"meta/muse-spark-1.3","muse-spark":"meta/muse-spark-1.3","opus46":"anthropic/claude-opus-4-6","sonnet46":"anthropic/claude-sonnet-4-6","gpt-mini":"openai/gpt-5-mini","gemini":"google/gemini-3.1-pro-preview","gemini-flash":"google/gemini-3.8-flash","gemini-flash-lite":"google/gemini-2.5-flash-lite","flash":"google/gemini-3.8-flash","banana":"google/gemini-3-pro-image-preview","nano-banana":"google/gemini-3-pro-image-preview","image":"openai-codex/gpt-image-2","sonnet5":"anthropic/claude-sonnet-5","opus5":"anthropic/claude-opus-5","sol6":"openai-codex/gpt-6-sol","sol56":"openai-codex/gpt-5.6-sol","luna56":"openai-codex/gpt-5.6-luna","grok46":"xai/grok-4.6","opus":"anthropic/claude-opus-5-5","sonnet":"anthropic/claude-sonnet-5-5","fable":"anthropic/claude-fable-5-1","gpt":"openai-codex/gpt-6.1-sol","sol":"openai-codex/gpt-6.1-sol","luna":"openai-codex/gpt-6-luna","astra":"openai-codex/gpt-6-astra","terra":"openai-codex/gpt-5.6-terra","grok":"xai/grok-4.7"};
4995
+ const JOHNNESS_MASTER_ALIASES = {"deepseek":"deepseek/deepseek-flash","deepseek-pro":"deepseek/deepseek-v4-pro","gemini-lite":"google/gemini-3.5-flash-lite","muse":"meta/muse-spark-1.3","muse-spark":"meta/muse-spark-1.3","opus46":"anthropic/claude-opus-4-6","sonnet46":"anthropic/claude-sonnet-4-6","gpt-mini":"openai/gpt-5-mini","gemini":"google/gemini-3.1-pro-preview","gemini-flash":"google/gemini-3.8-flash","gemini-flash-lite":"google/gemini-2.5-flash-lite","flash":"google/gemini-3.8-flash","banana":"google/gemini-3-pro-image-preview","nano-banana":"google/gemini-3-pro-image-preview","image":"openai-codex/gpt-image-2","sonnet5":"anthropic/claude-sonnet-5","opus5":"anthropic/claude-opus-5","haiku45":"anthropic/claude-haiku-4-5","sol6":"openai-codex/gpt-6-sol","sol56":"openai-codex/gpt-5.6-sol","luna56":"openai-codex/gpt-5.6-luna","grok46":"xai/grok-4.6","opus":"anthropic/claude-opus-5-5","sonnet":"anthropic/claude-sonnet-5-5","fable":"anthropic/claude-fable-5-1","haiku":"anthropic/claude-haiku-5-5","gpt":"openai-codex/gpt-6.1-sol","sol":"openai-codex/gpt-6.1-sol","luna":"openai-codex/gpt-6-luna","astra":"openai-codex/gpt-6-astra","terra":"openai-codex/gpt-5.6-terra","grok":"xai/grok-4.7"};
4996
4996
  for (const [alias, ref] of Object.entries(JOHNNESS_MASTER_ALIASES)) DEFAULT_MODEL_ALIASES[alias] = ref;
4997
4997
  /* JOHNNESS_MODELS_MASTER:END */
4998
4998
  const DEFAULT_MODEL_COST = {
@@ -4996,7 +4996,7 @@ Object.assign(DEFAULT_MODEL_ALIASES, {
4996
4996
  grok46: "xai/grok-4.6"
4997
4997
  });
4998
4998
  /* JOHNNESS_MODELS_MASTER:BEGIN aliases (generated from models/models.json by scripts/models-sync.mjs; edit the master, not this block) */
4999
- const JOHNNESS_MASTER_ALIASES = {"deepseek":"deepseek/deepseek-flash","deepseek-pro":"deepseek/deepseek-v4-pro","gemini-lite":"google/gemini-3.5-flash-lite","muse":"meta/muse-spark-1.3","muse-spark":"meta/muse-spark-1.3","opus46":"anthropic/claude-opus-4-6","sonnet46":"anthropic/claude-sonnet-4-6","gpt-mini":"openai/gpt-5-mini","gemini":"google/gemini-3.1-pro-preview","gemini-flash":"google/gemini-3.8-flash","gemini-flash-lite":"google/gemini-2.5-flash-lite","flash":"google/gemini-3.8-flash","banana":"google/gemini-3-pro-image-preview","nano-banana":"google/gemini-3-pro-image-preview","image":"openai-codex/gpt-image-2","sonnet5":"anthropic/claude-sonnet-5","opus5":"anthropic/claude-opus-5","sol6":"openai-codex/gpt-6-sol","sol56":"openai-codex/gpt-5.6-sol","luna56":"openai-codex/gpt-5.6-luna","grok46":"xai/grok-4.6","opus":"anthropic/claude-opus-5-5","sonnet":"anthropic/claude-sonnet-5-5","fable":"anthropic/claude-fable-5-1","gpt":"openai-codex/gpt-6.1-sol","sol":"openai-codex/gpt-6.1-sol","luna":"openai-codex/gpt-6-luna","astra":"openai-codex/gpt-6-astra","terra":"openai-codex/gpt-5.6-terra","grok":"xai/grok-4.7"};
4999
+ const JOHNNESS_MASTER_ALIASES = {"deepseek":"deepseek/deepseek-flash","deepseek-pro":"deepseek/deepseek-v4-pro","gemini-lite":"google/gemini-3.5-flash-lite","muse":"meta/muse-spark-1.3","muse-spark":"meta/muse-spark-1.3","opus46":"anthropic/claude-opus-4-6","sonnet46":"anthropic/claude-sonnet-4-6","gpt-mini":"openai/gpt-5-mini","gemini":"google/gemini-3.1-pro-preview","gemini-flash":"google/gemini-3.8-flash","gemini-flash-lite":"google/gemini-2.5-flash-lite","flash":"google/gemini-3.8-flash","banana":"google/gemini-3-pro-image-preview","nano-banana":"google/gemini-3-pro-image-preview","image":"openai-codex/gpt-image-2","sonnet5":"anthropic/claude-sonnet-5","opus5":"anthropic/claude-opus-5","haiku45":"anthropic/claude-haiku-4-5","sol6":"openai-codex/gpt-6-sol","sol56":"openai-codex/gpt-5.6-sol","luna56":"openai-codex/gpt-5.6-luna","grok46":"xai/grok-4.6","opus":"anthropic/claude-opus-5-5","sonnet":"anthropic/claude-sonnet-5-5","fable":"anthropic/claude-fable-5-1","haiku":"anthropic/claude-haiku-5-5","gpt":"openai-codex/gpt-6.1-sol","sol":"openai-codex/gpt-6.1-sol","luna":"openai-codex/gpt-6-luna","astra":"openai-codex/gpt-6-astra","terra":"openai-codex/gpt-5.6-terra","grok":"xai/grok-4.7"};
5000
5000
  for (const [alias, ref] of Object.entries(JOHNNESS_MASTER_ALIASES)) DEFAULT_MODEL_ALIASES[alias] = ref;
5001
5001
  /* JOHNNESS_MODELS_MASTER:END */
5002
5002
  const DEFAULT_MODEL_COST = {
@@ -4996,7 +4996,7 @@ Object.assign(DEFAULT_MODEL_ALIASES, {
4996
4996
  grok46: "xai/grok-4.6"
4997
4997
  });
4998
4998
  /* JOHNNESS_MODELS_MASTER:BEGIN aliases (generated from models/models.json by scripts/models-sync.mjs; edit the master, not this block) */
4999
- const JOHNNESS_MASTER_ALIASES = {"deepseek":"deepseek/deepseek-flash","deepseek-pro":"deepseek/deepseek-v4-pro","gemini-lite":"google/gemini-3.5-flash-lite","muse":"meta/muse-spark-1.3","muse-spark":"meta/muse-spark-1.3","opus46":"anthropic/claude-opus-4-6","sonnet46":"anthropic/claude-sonnet-4-6","gpt-mini":"openai/gpt-5-mini","gemini":"google/gemini-3.1-pro-preview","gemini-flash":"google/gemini-3.8-flash","gemini-flash-lite":"google/gemini-2.5-flash-lite","flash":"google/gemini-3.8-flash","banana":"google/gemini-3-pro-image-preview","nano-banana":"google/gemini-3-pro-image-preview","image":"openai-codex/gpt-image-2","sonnet5":"anthropic/claude-sonnet-5","opus5":"anthropic/claude-opus-5","sol6":"openai-codex/gpt-6-sol","sol56":"openai-codex/gpt-5.6-sol","luna56":"openai-codex/gpt-5.6-luna","grok46":"xai/grok-4.6","opus":"anthropic/claude-opus-5-5","sonnet":"anthropic/claude-sonnet-5-5","fable":"anthropic/claude-fable-5-1","gpt":"openai-codex/gpt-6.1-sol","sol":"openai-codex/gpt-6.1-sol","luna":"openai-codex/gpt-6-luna","astra":"openai-codex/gpt-6-astra","terra":"openai-codex/gpt-5.6-terra","grok":"xai/grok-4.7"};
4999
+ const JOHNNESS_MASTER_ALIASES = {"deepseek":"deepseek/deepseek-flash","deepseek-pro":"deepseek/deepseek-v4-pro","gemini-lite":"google/gemini-3.5-flash-lite","muse":"meta/muse-spark-1.3","muse-spark":"meta/muse-spark-1.3","opus46":"anthropic/claude-opus-4-6","sonnet46":"anthropic/claude-sonnet-4-6","gpt-mini":"openai/gpt-5-mini","gemini":"google/gemini-3.1-pro-preview","gemini-flash":"google/gemini-3.8-flash","gemini-flash-lite":"google/gemini-2.5-flash-lite","flash":"google/gemini-3.8-flash","banana":"google/gemini-3-pro-image-preview","nano-banana":"google/gemini-3-pro-image-preview","image":"openai-codex/gpt-image-2","sonnet5":"anthropic/claude-sonnet-5","opus5":"anthropic/claude-opus-5","haiku45":"anthropic/claude-haiku-4-5","sol6":"openai-codex/gpt-6-sol","sol56":"openai-codex/gpt-5.6-sol","luna56":"openai-codex/gpt-5.6-luna","grok46":"xai/grok-4.6","opus":"anthropic/claude-opus-5-5","sonnet":"anthropic/claude-sonnet-5-5","fable":"anthropic/claude-fable-5-1","haiku":"anthropic/claude-haiku-5-5","gpt":"openai-codex/gpt-6.1-sol","sol":"openai-codex/gpt-6.1-sol","luna":"openai-codex/gpt-6-luna","astra":"openai-codex/gpt-6-astra","terra":"openai-codex/gpt-5.6-terra","grok":"xai/grok-4.7"};
5000
5000
  for (const [alias, ref] of Object.entries(JOHNNESS_MASTER_ALIASES)) DEFAULT_MODEL_ALIASES[alias] = ref;
5001
5001
  /* JOHNNESS_MODELS_MASTER:END */
5002
5002
  const DEFAULT_MODEL_COST = {
@@ -4805,7 +4805,7 @@ Object.assign(DEFAULT_MODEL_ALIASES, {
4805
4805
  grok46: "xai/grok-4.6"
4806
4806
  });
4807
4807
  /* JOHNNESS_MODELS_MASTER:BEGIN aliases (generated from models/models.json by scripts/models-sync.mjs; edit the master, not this block) */
4808
- const JOHNNESS_MASTER_ALIASES = {"deepseek":"deepseek/deepseek-flash","deepseek-pro":"deepseek/deepseek-v4-pro","gemini-lite":"google/gemini-3.5-flash-lite","muse":"meta/muse-spark-1.3","muse-spark":"meta/muse-spark-1.3","opus46":"anthropic/claude-opus-4-6","sonnet46":"anthropic/claude-sonnet-4-6","gpt-mini":"openai/gpt-5-mini","gemini":"google/gemini-3.1-pro-preview","gemini-flash":"google/gemini-3.8-flash","gemini-flash-lite":"google/gemini-2.5-flash-lite","flash":"google/gemini-3.8-flash","banana":"google/gemini-3-pro-image-preview","nano-banana":"google/gemini-3-pro-image-preview","image":"openai-codex/gpt-image-2","sonnet5":"anthropic/claude-sonnet-5","opus5":"anthropic/claude-opus-5","sol6":"openai-codex/gpt-6-sol","sol56":"openai-codex/gpt-5.6-sol","luna56":"openai-codex/gpt-5.6-luna","grok46":"xai/grok-4.6","opus":"anthropic/claude-opus-5-5","sonnet":"anthropic/claude-sonnet-5-5","fable":"anthropic/claude-fable-5-1","gpt":"openai-codex/gpt-6.1-sol","sol":"openai-codex/gpt-6.1-sol","luna":"openai-codex/gpt-6-luna","astra":"openai-codex/gpt-6-astra","terra":"openai-codex/gpt-5.6-terra","grok":"xai/grok-4.7"};
4808
+ const JOHNNESS_MASTER_ALIASES = {"deepseek":"deepseek/deepseek-flash","deepseek-pro":"deepseek/deepseek-v4-pro","gemini-lite":"google/gemini-3.5-flash-lite","muse":"meta/muse-spark-1.3","muse-spark":"meta/muse-spark-1.3","opus46":"anthropic/claude-opus-4-6","sonnet46":"anthropic/claude-sonnet-4-6","gpt-mini":"openai/gpt-5-mini","gemini":"google/gemini-3.1-pro-preview","gemini-flash":"google/gemini-3.8-flash","gemini-flash-lite":"google/gemini-2.5-flash-lite","flash":"google/gemini-3.8-flash","banana":"google/gemini-3-pro-image-preview","nano-banana":"google/gemini-3-pro-image-preview","image":"openai-codex/gpt-image-2","sonnet5":"anthropic/claude-sonnet-5","opus5":"anthropic/claude-opus-5","haiku45":"anthropic/claude-haiku-4-5","sol6":"openai-codex/gpt-6-sol","sol56":"openai-codex/gpt-5.6-sol","luna56":"openai-codex/gpt-5.6-luna","grok46":"xai/grok-4.6","opus":"anthropic/claude-opus-5-5","sonnet":"anthropic/claude-sonnet-5-5","fable":"anthropic/claude-fable-5-1","haiku":"anthropic/claude-haiku-5-5","gpt":"openai-codex/gpt-6.1-sol","sol":"openai-codex/gpt-6.1-sol","luna":"openai-codex/gpt-6-luna","astra":"openai-codex/gpt-6-astra","terra":"openai-codex/gpt-5.6-terra","grok":"xai/grok-4.7"};
4809
4809
  for (const [alias, ref] of Object.entries(JOHNNESS_MASTER_ALIASES)) DEFAULT_MODEL_ALIASES[alias] = ref;
4810
4810
  /* JOHNNESS_MODELS_MASTER:END */
4811
4811
  const DEFAULT_MODEL_COST = {
@@ -1020,7 +1020,7 @@ const XHIGH_MODEL_REFS = [
1020
1020
  "github-copilot/gpt-5.2"
1021
1021
  ];
1022
1022
  /* JOHNNESS_MODELS_MASTER:BEGIN xhigh refs (generated from models/models.json by scripts/models-sync.mjs; edit the master, not this block) */
1023
- XHIGH_MODEL_REFS.splice(0, XHIGH_MODEL_REFS.length, ...['deepseek/deepseek-flash','deepseek/deepseek-v4-pro','meta/muse-spark-1.3','meta/muse-spark-1.2','anthropic/claude-fable-5-1','anthropic/claude-sonnet-5-5','anthropic/claude-opus-5-5','anthropic/claude-opus-5','anthropic/claude-sonnet-5','anthropic/claude-fable-5','anthropic/claude-opus-4-6','azure-openai-responses/gpt-5.2','azure-openai-responses/gpt-5.2-chat-latest','azure-openai-responses/gpt-5.2-codex','azure-openai-responses/gpt-5.2-pro','azure-openai-responses/gpt-5.3-codex','azure-openai-responses/gpt-5.3-codex-spark','github-copilot/claude-opus-4.6','github-copilot/gpt-5.2','github-copilot/gpt-5.2-codex','openai/gpt-5.2','openai/gpt-5.2-chat-latest','openai/gpt-5.2-codex','openai/gpt-5.2-pro','openai/gpt-5.3-codex','openai/gpt-5.3-codex-spark','openai/gpt-6-astra','openai/gpt-6.1-sol','openai/gpt-6-sol','openai/gpt-6-luna','openai/gpt-5.6-sol','openai/gpt-5.6-terra','openai/gpt-5.6-luna','openai-codex/gpt-5.2','openai-codex/gpt-5.2-codex','openai-codex/gpt-5.3-codex','openai-codex/gpt-5.3-codex-spark','openai-codex/gpt-6.1-sol','openai-codex/gpt-6-sol','openai-codex/gpt-6-luna','openai-codex/gpt-6-astra','openai-codex/gpt-5.6-sol','openai-codex/gpt-5.6-terra','openai-codex/gpt-5.6-luna','opencode/claude-opus-4-6','opencode/gpt-5.2','opencode/gpt-5.2-codex','opencode/gpt-5.3-codex','openrouter/openai/gpt-5.2','openrouter/openai/gpt-5.2-chat','openrouter/openai/gpt-5.2-codex','openrouter/openai/gpt-5.2-pro','openrouter/openai/gpt-5.3-codex','vercel-ai-gateway/anthropic/claude-opus-4.6','vercel-ai-gateway/openai/gpt-5.2','vercel-ai-gateway/openai/gpt-5.2-chat','vercel-ai-gateway/openai/gpt-5.2-codex','vercel-ai-gateway/openai/gpt-5.2-pro','vercel-ai-gateway/openai/gpt-5.3-codex','xai/grok-4.7','xai/grok-4.6','openai/gpt-5.4','openai/gpt-5.4-pro','openai/gpt-5.6','openai-codex/gpt-5.6','openai-codex/gpt-5.4','openai-codex/gpt-5.1-codex']);
1023
+ XHIGH_MODEL_REFS.splice(0, XHIGH_MODEL_REFS.length, ...['deepseek/deepseek-flash','deepseek/deepseek-v4-pro','meta/muse-spark-1.3','meta/muse-spark-1.2','anthropic/claude-fable-5-1','anthropic/claude-sonnet-5-5','anthropic/claude-opus-5-5','anthropic/claude-haiku-5-5','anthropic/claude-opus-5','anthropic/claude-sonnet-5','anthropic/claude-fable-5','anthropic/claude-opus-4-6','azure-openai-responses/gpt-5.2','azure-openai-responses/gpt-5.2-chat-latest','azure-openai-responses/gpt-5.2-codex','azure-openai-responses/gpt-5.2-pro','azure-openai-responses/gpt-5.3-codex','azure-openai-responses/gpt-5.3-codex-spark','github-copilot/claude-opus-4.6','github-copilot/gpt-5.2','github-copilot/gpt-5.2-codex','openai/gpt-5.2','openai/gpt-5.2-chat-latest','openai/gpt-5.2-codex','openai/gpt-5.2-pro','openai/gpt-5.3-codex','openai/gpt-5.3-codex-spark','openai/gpt-6-astra','openai/gpt-6.1-sol','openai/gpt-6-sol','openai/gpt-6-luna','openai/gpt-5.6-sol','openai/gpt-5.6-terra','openai/gpt-5.6-luna','openai-codex/gpt-5.2','openai-codex/gpt-5.2-codex','openai-codex/gpt-5.3-codex','openai-codex/gpt-5.3-codex-spark','openai-codex/gpt-6.1-sol','openai-codex/gpt-6-sol','openai-codex/gpt-6-luna','openai-codex/gpt-6-astra','openai-codex/gpt-5.6-sol','openai-codex/gpt-5.6-terra','openai-codex/gpt-5.6-luna','opencode/claude-opus-4-6','opencode/gpt-5.2','opencode/gpt-5.2-codex','opencode/gpt-5.3-codex','openrouter/openai/gpt-5.2','openrouter/openai/gpt-5.2-chat','openrouter/openai/gpt-5.2-codex','openrouter/openai/gpt-5.2-pro','openrouter/openai/gpt-5.3-codex','vercel-ai-gateway/anthropic/claude-opus-4.6','vercel-ai-gateway/openai/gpt-5.2','vercel-ai-gateway/openai/gpt-5.2-chat','vercel-ai-gateway/openai/gpt-5.2-codex','vercel-ai-gateway/openai/gpt-5.2-pro','vercel-ai-gateway/openai/gpt-5.3-codex','xai/grok-4.7','xai/grok-4.6','openai/gpt-5.4','openai/gpt-5.4-pro','openai/gpt-5.6','openai-codex/gpt-5.6','openai-codex/gpt-5.4','openai-codex/gpt-5.1-codex']);
1024
1024
  /* JOHNNESS_MODELS_MASTER:END */
1025
1025
  const XHIGH_MODEL_SET = new Set(XHIGH_MODEL_REFS.map((entry) => entry.toLowerCase()));
1026
1026
  const XHIGH_MODEL_IDS = new Set(XHIGH_MODEL_REFS.map((entry) => entry.split("/")[1]?.toLowerCase()).filter((entry) => Boolean(entry)));
@@ -1020,7 +1020,7 @@ const XHIGH_MODEL_REFS = [
1020
1020
  "github-copilot/gpt-5.2"
1021
1021
  ];
1022
1022
  /* JOHNNESS_MODELS_MASTER:BEGIN xhigh refs (generated from models/models.json by scripts/models-sync.mjs; edit the master, not this block) */
1023
- XHIGH_MODEL_REFS.splice(0, XHIGH_MODEL_REFS.length, ...['deepseek/deepseek-flash','deepseek/deepseek-v4-pro','meta/muse-spark-1.3','meta/muse-spark-1.2','anthropic/claude-fable-5-1','anthropic/claude-sonnet-5-5','anthropic/claude-opus-5-5','anthropic/claude-opus-5','anthropic/claude-sonnet-5','anthropic/claude-fable-5','anthropic/claude-opus-4-6','azure-openai-responses/gpt-5.2','azure-openai-responses/gpt-5.2-chat-latest','azure-openai-responses/gpt-5.2-codex','azure-openai-responses/gpt-5.2-pro','azure-openai-responses/gpt-5.3-codex','azure-openai-responses/gpt-5.3-codex-spark','github-copilot/claude-opus-4.6','github-copilot/gpt-5.2','github-copilot/gpt-5.2-codex','openai/gpt-5.2','openai/gpt-5.2-chat-latest','openai/gpt-5.2-codex','openai/gpt-5.2-pro','openai/gpt-5.3-codex','openai/gpt-5.3-codex-spark','openai/gpt-6-astra','openai/gpt-6.1-sol','openai/gpt-6-sol','openai/gpt-6-luna','openai/gpt-5.6-sol','openai/gpt-5.6-terra','openai/gpt-5.6-luna','openai-codex/gpt-5.2','openai-codex/gpt-5.2-codex','openai-codex/gpt-5.3-codex','openai-codex/gpt-5.3-codex-spark','openai-codex/gpt-6.1-sol','openai-codex/gpt-6-sol','openai-codex/gpt-6-luna','openai-codex/gpt-6-astra','openai-codex/gpt-5.6-sol','openai-codex/gpt-5.6-terra','openai-codex/gpt-5.6-luna','opencode/claude-opus-4-6','opencode/gpt-5.2','opencode/gpt-5.2-codex','opencode/gpt-5.3-codex','openrouter/openai/gpt-5.2','openrouter/openai/gpt-5.2-chat','openrouter/openai/gpt-5.2-codex','openrouter/openai/gpt-5.2-pro','openrouter/openai/gpt-5.3-codex','vercel-ai-gateway/anthropic/claude-opus-4.6','vercel-ai-gateway/openai/gpt-5.2','vercel-ai-gateway/openai/gpt-5.2-chat','vercel-ai-gateway/openai/gpt-5.2-codex','vercel-ai-gateway/openai/gpt-5.2-pro','vercel-ai-gateway/openai/gpt-5.3-codex','xai/grok-4.7','xai/grok-4.6','openai/gpt-5.4','openai/gpt-5.4-pro','openai/gpt-5.6','openai-codex/gpt-5.6','openai-codex/gpt-5.4','openai-codex/gpt-5.1-codex']);
1023
+ XHIGH_MODEL_REFS.splice(0, XHIGH_MODEL_REFS.length, ...['deepseek/deepseek-flash','deepseek/deepseek-v4-pro','meta/muse-spark-1.3','meta/muse-spark-1.2','anthropic/claude-fable-5-1','anthropic/claude-sonnet-5-5','anthropic/claude-opus-5-5','anthropic/claude-haiku-5-5','anthropic/claude-opus-5','anthropic/claude-sonnet-5','anthropic/claude-fable-5','anthropic/claude-opus-4-6','azure-openai-responses/gpt-5.2','azure-openai-responses/gpt-5.2-chat-latest','azure-openai-responses/gpt-5.2-codex','azure-openai-responses/gpt-5.2-pro','azure-openai-responses/gpt-5.3-codex','azure-openai-responses/gpt-5.3-codex-spark','github-copilot/claude-opus-4.6','github-copilot/gpt-5.2','github-copilot/gpt-5.2-codex','openai/gpt-5.2','openai/gpt-5.2-chat-latest','openai/gpt-5.2-codex','openai/gpt-5.2-pro','openai/gpt-5.3-codex','openai/gpt-5.3-codex-spark','openai/gpt-6-astra','openai/gpt-6.1-sol','openai/gpt-6-sol','openai/gpt-6-luna','openai/gpt-5.6-sol','openai/gpt-5.6-terra','openai/gpt-5.6-luna','openai-codex/gpt-5.2','openai-codex/gpt-5.2-codex','openai-codex/gpt-5.3-codex','openai-codex/gpt-5.3-codex-spark','openai-codex/gpt-6.1-sol','openai-codex/gpt-6-sol','openai-codex/gpt-6-luna','openai-codex/gpt-6-astra','openai-codex/gpt-5.6-sol','openai-codex/gpt-5.6-terra','openai-codex/gpt-5.6-luna','opencode/claude-opus-4-6','opencode/gpt-5.2','opencode/gpt-5.2-codex','opencode/gpt-5.3-codex','openrouter/openai/gpt-5.2','openrouter/openai/gpt-5.2-chat','openrouter/openai/gpt-5.2-codex','openrouter/openai/gpt-5.2-pro','openrouter/openai/gpt-5.3-codex','vercel-ai-gateway/anthropic/claude-opus-4.6','vercel-ai-gateway/openai/gpt-5.2','vercel-ai-gateway/openai/gpt-5.2-chat','vercel-ai-gateway/openai/gpt-5.2-codex','vercel-ai-gateway/openai/gpt-5.2-pro','vercel-ai-gateway/openai/gpt-5.3-codex','xai/grok-4.7','xai/grok-4.6','openai/gpt-5.4','openai/gpt-5.4-pro','openai/gpt-5.6','openai-codex/gpt-5.6','openai-codex/gpt-5.4','openai-codex/gpt-5.1-codex']);
1024
1024
  /* JOHNNESS_MODELS_MASTER:END */
1025
1025
  const XHIGH_MODEL_SET = new Set(XHIGH_MODEL_REFS.map((entry) => entry.toLowerCase()));
1026
1026
  const XHIGH_MODEL_IDS = new Set(XHIGH_MODEL_REFS.map((entry) => entry.split("/")[1]?.toLowerCase()).filter((entry) => Boolean(entry)));
@@ -1020,7 +1020,7 @@ const XHIGH_MODEL_REFS = [
1020
1020
  "github-copilot/gpt-5.2"
1021
1021
  ];
1022
1022
  /* JOHNNESS_MODELS_MASTER:BEGIN xhigh refs (generated from models/models.json by scripts/models-sync.mjs; edit the master, not this block) */
1023
- XHIGH_MODEL_REFS.splice(0, XHIGH_MODEL_REFS.length, ...['deepseek/deepseek-flash','deepseek/deepseek-v4-pro','meta/muse-spark-1.3','meta/muse-spark-1.2','anthropic/claude-fable-5-1','anthropic/claude-sonnet-5-5','anthropic/claude-opus-5-5','anthropic/claude-opus-5','anthropic/claude-sonnet-5','anthropic/claude-fable-5','anthropic/claude-opus-4-6','azure-openai-responses/gpt-5.2','azure-openai-responses/gpt-5.2-chat-latest','azure-openai-responses/gpt-5.2-codex','azure-openai-responses/gpt-5.2-pro','azure-openai-responses/gpt-5.3-codex','azure-openai-responses/gpt-5.3-codex-spark','github-copilot/claude-opus-4.6','github-copilot/gpt-5.2','github-copilot/gpt-5.2-codex','openai/gpt-5.2','openai/gpt-5.2-chat-latest','openai/gpt-5.2-codex','openai/gpt-5.2-pro','openai/gpt-5.3-codex','openai/gpt-5.3-codex-spark','openai/gpt-6-astra','openai/gpt-6.1-sol','openai/gpt-6-sol','openai/gpt-6-luna','openai/gpt-5.6-sol','openai/gpt-5.6-terra','openai/gpt-5.6-luna','openai-codex/gpt-5.2','openai-codex/gpt-5.2-codex','openai-codex/gpt-5.3-codex','openai-codex/gpt-5.3-codex-spark','openai-codex/gpt-6.1-sol','openai-codex/gpt-6-sol','openai-codex/gpt-6-luna','openai-codex/gpt-6-astra','openai-codex/gpt-5.6-sol','openai-codex/gpt-5.6-terra','openai-codex/gpt-5.6-luna','opencode/claude-opus-4-6','opencode/gpt-5.2','opencode/gpt-5.2-codex','opencode/gpt-5.3-codex','openrouter/openai/gpt-5.2','openrouter/openai/gpt-5.2-chat','openrouter/openai/gpt-5.2-codex','openrouter/openai/gpt-5.2-pro','openrouter/openai/gpt-5.3-codex','vercel-ai-gateway/anthropic/claude-opus-4.6','vercel-ai-gateway/openai/gpt-5.2','vercel-ai-gateway/openai/gpt-5.2-chat','vercel-ai-gateway/openai/gpt-5.2-codex','vercel-ai-gateway/openai/gpt-5.2-pro','vercel-ai-gateway/openai/gpt-5.3-codex','xai/grok-4.7','xai/grok-4.6','openai/gpt-5.4','openai/gpt-5.4-pro','openai/gpt-5.6','openai-codex/gpt-5.6','openai-codex/gpt-5.4','openai-codex/gpt-5.1-codex']);
1023
+ XHIGH_MODEL_REFS.splice(0, XHIGH_MODEL_REFS.length, ...['deepseek/deepseek-flash','deepseek/deepseek-v4-pro','meta/muse-spark-1.3','meta/muse-spark-1.2','anthropic/claude-fable-5-1','anthropic/claude-sonnet-5-5','anthropic/claude-opus-5-5','anthropic/claude-haiku-5-5','anthropic/claude-opus-5','anthropic/claude-sonnet-5','anthropic/claude-fable-5','anthropic/claude-opus-4-6','azure-openai-responses/gpt-5.2','azure-openai-responses/gpt-5.2-chat-latest','azure-openai-responses/gpt-5.2-codex','azure-openai-responses/gpt-5.2-pro','azure-openai-responses/gpt-5.3-codex','azure-openai-responses/gpt-5.3-codex-spark','github-copilot/claude-opus-4.6','github-copilot/gpt-5.2','github-copilot/gpt-5.2-codex','openai/gpt-5.2','openai/gpt-5.2-chat-latest','openai/gpt-5.2-codex','openai/gpt-5.2-pro','openai/gpt-5.3-codex','openai/gpt-5.3-codex-spark','openai/gpt-6-astra','openai/gpt-6.1-sol','openai/gpt-6-sol','openai/gpt-6-luna','openai/gpt-5.6-sol','openai/gpt-5.6-terra','openai/gpt-5.6-luna','openai-codex/gpt-5.2','openai-codex/gpt-5.2-codex','openai-codex/gpt-5.3-codex','openai-codex/gpt-5.3-codex-spark','openai-codex/gpt-6.1-sol','openai-codex/gpt-6-sol','openai-codex/gpt-6-luna','openai-codex/gpt-6-astra','openai-codex/gpt-5.6-sol','openai-codex/gpt-5.6-terra','openai-codex/gpt-5.6-luna','opencode/claude-opus-4-6','opencode/gpt-5.2','opencode/gpt-5.2-codex','opencode/gpt-5.3-codex','openrouter/openai/gpt-5.2','openrouter/openai/gpt-5.2-chat','openrouter/openai/gpt-5.2-codex','openrouter/openai/gpt-5.2-pro','openrouter/openai/gpt-5.3-codex','vercel-ai-gateway/anthropic/claude-opus-4.6','vercel-ai-gateway/openai/gpt-5.2','vercel-ai-gateway/openai/gpt-5.2-chat','vercel-ai-gateway/openai/gpt-5.2-codex','vercel-ai-gateway/openai/gpt-5.2-pro','vercel-ai-gateway/openai/gpt-5.3-codex','xai/grok-4.7','xai/grok-4.6','openai/gpt-5.4','openai/gpt-5.4-pro','openai/gpt-5.6','openai-codex/gpt-5.6','openai-codex/gpt-5.4','openai-codex/gpt-5.1-codex']);
1024
1024
  /* JOHNNESS_MODELS_MASTER:END */
1025
1025
  const XHIGH_MODEL_SET = new Set(XHIGH_MODEL_REFS.map((entry) => entry.toLowerCase()));
1026
1026
  const XHIGH_MODEL_IDS = new Set(XHIGH_MODEL_REFS.map((entry) => entry.split("/")[1]?.toLowerCase()).filter((entry) => Boolean(entry)));
@@ -1020,7 +1020,7 @@ const XHIGH_MODEL_REFS = [
1020
1020
  "github-copilot/gpt-5.2"
1021
1021
  ];
1022
1022
  /* JOHNNESS_MODELS_MASTER:BEGIN xhigh refs (generated from models/models.json by scripts/models-sync.mjs; edit the master, not this block) */
1023
- XHIGH_MODEL_REFS.splice(0, XHIGH_MODEL_REFS.length, ...['deepseek/deepseek-flash','deepseek/deepseek-v4-pro','meta/muse-spark-1.3','meta/muse-spark-1.2','anthropic/claude-fable-5-1','anthropic/claude-sonnet-5-5','anthropic/claude-opus-5-5','anthropic/claude-opus-5','anthropic/claude-sonnet-5','anthropic/claude-fable-5','anthropic/claude-opus-4-6','azure-openai-responses/gpt-5.2','azure-openai-responses/gpt-5.2-chat-latest','azure-openai-responses/gpt-5.2-codex','azure-openai-responses/gpt-5.2-pro','azure-openai-responses/gpt-5.3-codex','azure-openai-responses/gpt-5.3-codex-spark','github-copilot/claude-opus-4.6','github-copilot/gpt-5.2','github-copilot/gpt-5.2-codex','openai/gpt-5.2','openai/gpt-5.2-chat-latest','openai/gpt-5.2-codex','openai/gpt-5.2-pro','openai/gpt-5.3-codex','openai/gpt-5.3-codex-spark','openai/gpt-6-astra','openai/gpt-6.1-sol','openai/gpt-6-sol','openai/gpt-6-luna','openai/gpt-5.6-sol','openai/gpt-5.6-terra','openai/gpt-5.6-luna','openai-codex/gpt-5.2','openai-codex/gpt-5.2-codex','openai-codex/gpt-5.3-codex','openai-codex/gpt-5.3-codex-spark','openai-codex/gpt-6.1-sol','openai-codex/gpt-6-sol','openai-codex/gpt-6-luna','openai-codex/gpt-6-astra','openai-codex/gpt-5.6-sol','openai-codex/gpt-5.6-terra','openai-codex/gpt-5.6-luna','opencode/claude-opus-4-6','opencode/gpt-5.2','opencode/gpt-5.2-codex','opencode/gpt-5.3-codex','openrouter/openai/gpt-5.2','openrouter/openai/gpt-5.2-chat','openrouter/openai/gpt-5.2-codex','openrouter/openai/gpt-5.2-pro','openrouter/openai/gpt-5.3-codex','vercel-ai-gateway/anthropic/claude-opus-4.6','vercel-ai-gateway/openai/gpt-5.2','vercel-ai-gateway/openai/gpt-5.2-chat','vercel-ai-gateway/openai/gpt-5.2-codex','vercel-ai-gateway/openai/gpt-5.2-pro','vercel-ai-gateway/openai/gpt-5.3-codex','xai/grok-4.7','xai/grok-4.6','openai/gpt-5.4','openai/gpt-5.4-pro','openai/gpt-5.6','openai-codex/gpt-5.6','openai-codex/gpt-5.4','openai-codex/gpt-5.1-codex']);
1023
+ XHIGH_MODEL_REFS.splice(0, XHIGH_MODEL_REFS.length, ...['deepseek/deepseek-flash','deepseek/deepseek-v4-pro','meta/muse-spark-1.3','meta/muse-spark-1.2','anthropic/claude-fable-5-1','anthropic/claude-sonnet-5-5','anthropic/claude-opus-5-5','anthropic/claude-haiku-5-5','anthropic/claude-opus-5','anthropic/claude-sonnet-5','anthropic/claude-fable-5','anthropic/claude-opus-4-6','azure-openai-responses/gpt-5.2','azure-openai-responses/gpt-5.2-chat-latest','azure-openai-responses/gpt-5.2-codex','azure-openai-responses/gpt-5.2-pro','azure-openai-responses/gpt-5.3-codex','azure-openai-responses/gpt-5.3-codex-spark','github-copilot/claude-opus-4.6','github-copilot/gpt-5.2','github-copilot/gpt-5.2-codex','openai/gpt-5.2','openai/gpt-5.2-chat-latest','openai/gpt-5.2-codex','openai/gpt-5.2-pro','openai/gpt-5.3-codex','openai/gpt-5.3-codex-spark','openai/gpt-6-astra','openai/gpt-6.1-sol','openai/gpt-6-sol','openai/gpt-6-luna','openai/gpt-5.6-sol','openai/gpt-5.6-terra','openai/gpt-5.6-luna','openai-codex/gpt-5.2','openai-codex/gpt-5.2-codex','openai-codex/gpt-5.3-codex','openai-codex/gpt-5.3-codex-spark','openai-codex/gpt-6.1-sol','openai-codex/gpt-6-sol','openai-codex/gpt-6-luna','openai-codex/gpt-6-astra','openai-codex/gpt-5.6-sol','openai-codex/gpt-5.6-terra','openai-codex/gpt-5.6-luna','opencode/claude-opus-4-6','opencode/gpt-5.2','opencode/gpt-5.2-codex','opencode/gpt-5.3-codex','openrouter/openai/gpt-5.2','openrouter/openai/gpt-5.2-chat','openrouter/openai/gpt-5.2-codex','openrouter/openai/gpt-5.2-pro','openrouter/openai/gpt-5.3-codex','vercel-ai-gateway/anthropic/claude-opus-4.6','vercel-ai-gateway/openai/gpt-5.2','vercel-ai-gateway/openai/gpt-5.2-chat','vercel-ai-gateway/openai/gpt-5.2-codex','vercel-ai-gateway/openai/gpt-5.2-pro','vercel-ai-gateway/openai/gpt-5.3-codex','xai/grok-4.7','xai/grok-4.6','openai/gpt-5.4','openai/gpt-5.4-pro','openai/gpt-5.6','openai-codex/gpt-5.6','openai-codex/gpt-5.4','openai-codex/gpt-5.1-codex']);
1024
1024
  /* JOHNNESS_MODELS_MASTER:END */
1025
1025
  const XHIGH_MODEL_SET = new Set(XHIGH_MODEL_REFS.map((entry) => entry.toLowerCase()));
1026
1026
  const XHIGH_MODEL_IDS = new Set(XHIGH_MODEL_REFS.map((entry) => entry.split("/")[1]?.toLowerCase()).filter((entry) => Boolean(entry)));
@@ -1020,7 +1020,7 @@ const XHIGH_MODEL_REFS = [
1020
1020
  "github-copilot/gpt-5.2"
1021
1021
  ];
1022
1022
  /* JOHNNESS_MODELS_MASTER:BEGIN xhigh refs (generated from models/models.json by scripts/models-sync.mjs; edit the master, not this block) */
1023
- XHIGH_MODEL_REFS.splice(0, XHIGH_MODEL_REFS.length, ...['deepseek/deepseek-flash','deepseek/deepseek-v4-pro','meta/muse-spark-1.3','meta/muse-spark-1.2','anthropic/claude-fable-5-1','anthropic/claude-sonnet-5-5','anthropic/claude-opus-5-5','anthropic/claude-opus-5','anthropic/claude-sonnet-5','anthropic/claude-fable-5','anthropic/claude-opus-4-6','azure-openai-responses/gpt-5.2','azure-openai-responses/gpt-5.2-chat-latest','azure-openai-responses/gpt-5.2-codex','azure-openai-responses/gpt-5.2-pro','azure-openai-responses/gpt-5.3-codex','azure-openai-responses/gpt-5.3-codex-spark','github-copilot/claude-opus-4.6','github-copilot/gpt-5.2','github-copilot/gpt-5.2-codex','openai/gpt-5.2','openai/gpt-5.2-chat-latest','openai/gpt-5.2-codex','openai/gpt-5.2-pro','openai/gpt-5.3-codex','openai/gpt-5.3-codex-spark','openai/gpt-6-astra','openai/gpt-6.1-sol','openai/gpt-6-sol','openai/gpt-6-luna','openai/gpt-5.6-sol','openai/gpt-5.6-terra','openai/gpt-5.6-luna','openai-codex/gpt-5.2','openai-codex/gpt-5.2-codex','openai-codex/gpt-5.3-codex','openai-codex/gpt-5.3-codex-spark','openai-codex/gpt-6.1-sol','openai-codex/gpt-6-sol','openai-codex/gpt-6-luna','openai-codex/gpt-6-astra','openai-codex/gpt-5.6-sol','openai-codex/gpt-5.6-terra','openai-codex/gpt-5.6-luna','opencode/claude-opus-4-6','opencode/gpt-5.2','opencode/gpt-5.2-codex','opencode/gpt-5.3-codex','openrouter/openai/gpt-5.2','openrouter/openai/gpt-5.2-chat','openrouter/openai/gpt-5.2-codex','openrouter/openai/gpt-5.2-pro','openrouter/openai/gpt-5.3-codex','vercel-ai-gateway/anthropic/claude-opus-4.6','vercel-ai-gateway/openai/gpt-5.2','vercel-ai-gateway/openai/gpt-5.2-chat','vercel-ai-gateway/openai/gpt-5.2-codex','vercel-ai-gateway/openai/gpt-5.2-pro','vercel-ai-gateway/openai/gpt-5.3-codex','xai/grok-4.7','xai/grok-4.6','openai/gpt-5.4','openai/gpt-5.4-pro','openai/gpt-5.6','openai-codex/gpt-5.6','openai-codex/gpt-5.4','openai-codex/gpt-5.1-codex']);
1023
+ XHIGH_MODEL_REFS.splice(0, XHIGH_MODEL_REFS.length, ...['deepseek/deepseek-flash','deepseek/deepseek-v4-pro','meta/muse-spark-1.3','meta/muse-spark-1.2','anthropic/claude-fable-5-1','anthropic/claude-sonnet-5-5','anthropic/claude-opus-5-5','anthropic/claude-haiku-5-5','anthropic/claude-opus-5','anthropic/claude-sonnet-5','anthropic/claude-fable-5','anthropic/claude-opus-4-6','azure-openai-responses/gpt-5.2','azure-openai-responses/gpt-5.2-chat-latest','azure-openai-responses/gpt-5.2-codex','azure-openai-responses/gpt-5.2-pro','azure-openai-responses/gpt-5.3-codex','azure-openai-responses/gpt-5.3-codex-spark','github-copilot/claude-opus-4.6','github-copilot/gpt-5.2','github-copilot/gpt-5.2-codex','openai/gpt-5.2','openai/gpt-5.2-chat-latest','openai/gpt-5.2-codex','openai/gpt-5.2-pro','openai/gpt-5.3-codex','openai/gpt-5.3-codex-spark','openai/gpt-6-astra','openai/gpt-6.1-sol','openai/gpt-6-sol','openai/gpt-6-luna','openai/gpt-5.6-sol','openai/gpt-5.6-terra','openai/gpt-5.6-luna','openai-codex/gpt-5.2','openai-codex/gpt-5.2-codex','openai-codex/gpt-5.3-codex','openai-codex/gpt-5.3-codex-spark','openai-codex/gpt-6.1-sol','openai-codex/gpt-6-sol','openai-codex/gpt-6-luna','openai-codex/gpt-6-astra','openai-codex/gpt-5.6-sol','openai-codex/gpt-5.6-terra','openai-codex/gpt-5.6-luna','opencode/claude-opus-4-6','opencode/gpt-5.2','opencode/gpt-5.2-codex','opencode/gpt-5.3-codex','openrouter/openai/gpt-5.2','openrouter/openai/gpt-5.2-chat','openrouter/openai/gpt-5.2-codex','openrouter/openai/gpt-5.2-pro','openrouter/openai/gpt-5.3-codex','vercel-ai-gateway/anthropic/claude-opus-4.6','vercel-ai-gateway/openai/gpt-5.2','vercel-ai-gateway/openai/gpt-5.2-chat','vercel-ai-gateway/openai/gpt-5.2-codex','vercel-ai-gateway/openai/gpt-5.2-pro','vercel-ai-gateway/openai/gpt-5.3-codex','xai/grok-4.7','xai/grok-4.6','openai/gpt-5.4','openai/gpt-5.4-pro','openai/gpt-5.6','openai-codex/gpt-5.6','openai-codex/gpt-5.4','openai-codex/gpt-5.1-codex']);
1024
1024
  /* JOHNNESS_MODELS_MASTER:END */
1025
1025
  const XHIGH_MODEL_SET = new Set(XHIGH_MODEL_REFS.map((entry) => entry.toLowerCase()));
1026
1026
  const XHIGH_MODEL_IDS = new Set(XHIGH_MODEL_REFS.map((entry) => entry.split("/")[1]?.toLowerCase()).filter((entry) => Boolean(entry)));
@@ -1044,7 +1044,7 @@ const XHIGH_MODEL_REFS = [
1044
1044
  "github-copilot/gpt-5.2"
1045
1045
  ];
1046
1046
  /* JOHNNESS_MODELS_MASTER:BEGIN xhigh refs (generated from models/models.json by scripts/models-sync.mjs; edit the master, not this block) */
1047
- XHIGH_MODEL_REFS.splice(0, XHIGH_MODEL_REFS.length, ...['deepseek/deepseek-flash','deepseek/deepseek-v4-pro','meta/muse-spark-1.3','meta/muse-spark-1.2','anthropic/claude-fable-5-1','anthropic/claude-sonnet-5-5','anthropic/claude-opus-5-5','anthropic/claude-opus-5','anthropic/claude-sonnet-5','anthropic/claude-fable-5','anthropic/claude-opus-4-6','azure-openai-responses/gpt-5.2','azure-openai-responses/gpt-5.2-chat-latest','azure-openai-responses/gpt-5.2-codex','azure-openai-responses/gpt-5.2-pro','azure-openai-responses/gpt-5.3-codex','azure-openai-responses/gpt-5.3-codex-spark','github-copilot/claude-opus-4.6','github-copilot/gpt-5.2','github-copilot/gpt-5.2-codex','openai/gpt-5.2','openai/gpt-5.2-chat-latest','openai/gpt-5.2-codex','openai/gpt-5.2-pro','openai/gpt-5.3-codex','openai/gpt-5.3-codex-spark','openai/gpt-6-astra','openai/gpt-6.1-sol','openai/gpt-6-sol','openai/gpt-6-luna','openai/gpt-5.6-sol','openai/gpt-5.6-terra','openai/gpt-5.6-luna','openai-codex/gpt-5.2','openai-codex/gpt-5.2-codex','openai-codex/gpt-5.3-codex','openai-codex/gpt-5.3-codex-spark','openai-codex/gpt-6.1-sol','openai-codex/gpt-6-sol','openai-codex/gpt-6-luna','openai-codex/gpt-6-astra','openai-codex/gpt-5.6-sol','openai-codex/gpt-5.6-terra','openai-codex/gpt-5.6-luna','opencode/claude-opus-4-6','opencode/gpt-5.2','opencode/gpt-5.2-codex','opencode/gpt-5.3-codex','openrouter/openai/gpt-5.2','openrouter/openai/gpt-5.2-chat','openrouter/openai/gpt-5.2-codex','openrouter/openai/gpt-5.2-pro','openrouter/openai/gpt-5.3-codex','vercel-ai-gateway/anthropic/claude-opus-4.6','vercel-ai-gateway/openai/gpt-5.2','vercel-ai-gateway/openai/gpt-5.2-chat','vercel-ai-gateway/openai/gpt-5.2-codex','vercel-ai-gateway/openai/gpt-5.2-pro','vercel-ai-gateway/openai/gpt-5.3-codex','xai/grok-4.7','xai/grok-4.6','openai/gpt-5.4','openai/gpt-5.4-pro','openai/gpt-5.6','openai-codex/gpt-5.6','openai-codex/gpt-5.4','openai-codex/gpt-5.1-codex']);
1047
+ XHIGH_MODEL_REFS.splice(0, XHIGH_MODEL_REFS.length, ...['deepseek/deepseek-flash','deepseek/deepseek-v4-pro','meta/muse-spark-1.3','meta/muse-spark-1.2','anthropic/claude-fable-5-1','anthropic/claude-sonnet-5-5','anthropic/claude-opus-5-5','anthropic/claude-haiku-5-5','anthropic/claude-opus-5','anthropic/claude-sonnet-5','anthropic/claude-fable-5','anthropic/claude-opus-4-6','azure-openai-responses/gpt-5.2','azure-openai-responses/gpt-5.2-chat-latest','azure-openai-responses/gpt-5.2-codex','azure-openai-responses/gpt-5.2-pro','azure-openai-responses/gpt-5.3-codex','azure-openai-responses/gpt-5.3-codex-spark','github-copilot/claude-opus-4.6','github-copilot/gpt-5.2','github-copilot/gpt-5.2-codex','openai/gpt-5.2','openai/gpt-5.2-chat-latest','openai/gpt-5.2-codex','openai/gpt-5.2-pro','openai/gpt-5.3-codex','openai/gpt-5.3-codex-spark','openai/gpt-6-astra','openai/gpt-6.1-sol','openai/gpt-6-sol','openai/gpt-6-luna','openai/gpt-5.6-sol','openai/gpt-5.6-terra','openai/gpt-5.6-luna','openai-codex/gpt-5.2','openai-codex/gpt-5.2-codex','openai-codex/gpt-5.3-codex','openai-codex/gpt-5.3-codex-spark','openai-codex/gpt-6.1-sol','openai-codex/gpt-6-sol','openai-codex/gpt-6-luna','openai-codex/gpt-6-astra','openai-codex/gpt-5.6-sol','openai-codex/gpt-5.6-terra','openai-codex/gpt-5.6-luna','opencode/claude-opus-4-6','opencode/gpt-5.2','opencode/gpt-5.2-codex','opencode/gpt-5.3-codex','openrouter/openai/gpt-5.2','openrouter/openai/gpt-5.2-chat','openrouter/openai/gpt-5.2-codex','openrouter/openai/gpt-5.2-pro','openrouter/openai/gpt-5.3-codex','vercel-ai-gateway/anthropic/claude-opus-4.6','vercel-ai-gateway/openai/gpt-5.2','vercel-ai-gateway/openai/gpt-5.2-chat','vercel-ai-gateway/openai/gpt-5.2-codex','vercel-ai-gateway/openai/gpt-5.2-pro','vercel-ai-gateway/openai/gpt-5.3-codex','xai/grok-4.7','xai/grok-4.6','openai/gpt-5.4','openai/gpt-5.4-pro','openai/gpt-5.6','openai-codex/gpt-5.6','openai-codex/gpt-5.4','openai-codex/gpt-5.1-codex']);
1048
1048
  /* JOHNNESS_MODELS_MASTER:END */
1049
1049
  const XHIGH_MODEL_SET = new Set(XHIGH_MODEL_REFS.map((entry) => entry.toLowerCase()));
1050
1050
  const XHIGH_MODEL_IDS = new Set(XHIGH_MODEL_REFS.map((entry) => entry.split("/")[1]?.toLowerCase()).filter((entry) => Boolean(entry)));
@@ -1021,7 +1021,7 @@ const XHIGH_MODEL_REFS = [
1021
1021
  "github-copilot/gpt-5.2"
1022
1022
  ];
1023
1023
  /* JOHNNESS_MODELS_MASTER:BEGIN xhigh refs (generated from models/models.json by scripts/models-sync.mjs; edit the master, not this block) */
1024
- XHIGH_MODEL_REFS.splice(0, XHIGH_MODEL_REFS.length, ...['deepseek/deepseek-flash','deepseek/deepseek-v4-pro','meta/muse-spark-1.3','meta/muse-spark-1.2','anthropic/claude-fable-5-1','anthropic/claude-sonnet-5-5','anthropic/claude-opus-5-5','anthropic/claude-opus-5','anthropic/claude-sonnet-5','anthropic/claude-fable-5','anthropic/claude-opus-4-6','azure-openai-responses/gpt-5.2','azure-openai-responses/gpt-5.2-chat-latest','azure-openai-responses/gpt-5.2-codex','azure-openai-responses/gpt-5.2-pro','azure-openai-responses/gpt-5.3-codex','azure-openai-responses/gpt-5.3-codex-spark','github-copilot/claude-opus-4.6','github-copilot/gpt-5.2','github-copilot/gpt-5.2-codex','openai/gpt-5.2','openai/gpt-5.2-chat-latest','openai/gpt-5.2-codex','openai/gpt-5.2-pro','openai/gpt-5.3-codex','openai/gpt-5.3-codex-spark','openai/gpt-6-astra','openai/gpt-6.1-sol','openai/gpt-6-sol','openai/gpt-6-luna','openai/gpt-5.6-sol','openai/gpt-5.6-terra','openai/gpt-5.6-luna','openai-codex/gpt-5.2','openai-codex/gpt-5.2-codex','openai-codex/gpt-5.3-codex','openai-codex/gpt-5.3-codex-spark','openai-codex/gpt-6.1-sol','openai-codex/gpt-6-sol','openai-codex/gpt-6-luna','openai-codex/gpt-6-astra','openai-codex/gpt-5.6-sol','openai-codex/gpt-5.6-terra','openai-codex/gpt-5.6-luna','opencode/claude-opus-4-6','opencode/gpt-5.2','opencode/gpt-5.2-codex','opencode/gpt-5.3-codex','openrouter/openai/gpt-5.2','openrouter/openai/gpt-5.2-chat','openrouter/openai/gpt-5.2-codex','openrouter/openai/gpt-5.2-pro','openrouter/openai/gpt-5.3-codex','vercel-ai-gateway/anthropic/claude-opus-4.6','vercel-ai-gateway/openai/gpt-5.2','vercel-ai-gateway/openai/gpt-5.2-chat','vercel-ai-gateway/openai/gpt-5.2-codex','vercel-ai-gateway/openai/gpt-5.2-pro','vercel-ai-gateway/openai/gpt-5.3-codex','xai/grok-4.7','xai/grok-4.6','openai/gpt-5.4','openai/gpt-5.4-pro','openai/gpt-5.6','openai-codex/gpt-5.6','openai-codex/gpt-5.4','openai-codex/gpt-5.1-codex']);
1024
+ XHIGH_MODEL_REFS.splice(0, XHIGH_MODEL_REFS.length, ...['deepseek/deepseek-flash','deepseek/deepseek-v4-pro','meta/muse-spark-1.3','meta/muse-spark-1.2','anthropic/claude-fable-5-1','anthropic/claude-sonnet-5-5','anthropic/claude-opus-5-5','anthropic/claude-haiku-5-5','anthropic/claude-opus-5','anthropic/claude-sonnet-5','anthropic/claude-fable-5','anthropic/claude-opus-4-6','azure-openai-responses/gpt-5.2','azure-openai-responses/gpt-5.2-chat-latest','azure-openai-responses/gpt-5.2-codex','azure-openai-responses/gpt-5.2-pro','azure-openai-responses/gpt-5.3-codex','azure-openai-responses/gpt-5.3-codex-spark','github-copilot/claude-opus-4.6','github-copilot/gpt-5.2','github-copilot/gpt-5.2-codex','openai/gpt-5.2','openai/gpt-5.2-chat-latest','openai/gpt-5.2-codex','openai/gpt-5.2-pro','openai/gpt-5.3-codex','openai/gpt-5.3-codex-spark','openai/gpt-6-astra','openai/gpt-6.1-sol','openai/gpt-6-sol','openai/gpt-6-luna','openai/gpt-5.6-sol','openai/gpt-5.6-terra','openai/gpt-5.6-luna','openai-codex/gpt-5.2','openai-codex/gpt-5.2-codex','openai-codex/gpt-5.3-codex','openai-codex/gpt-5.3-codex-spark','openai-codex/gpt-6.1-sol','openai-codex/gpt-6-sol','openai-codex/gpt-6-luna','openai-codex/gpt-6-astra','openai-codex/gpt-5.6-sol','openai-codex/gpt-5.6-terra','openai-codex/gpt-5.6-luna','opencode/claude-opus-4-6','opencode/gpt-5.2','opencode/gpt-5.2-codex','opencode/gpt-5.3-codex','openrouter/openai/gpt-5.2','openrouter/openai/gpt-5.2-chat','openrouter/openai/gpt-5.2-codex','openrouter/openai/gpt-5.2-pro','openrouter/openai/gpt-5.3-codex','vercel-ai-gateway/anthropic/claude-opus-4.6','vercel-ai-gateway/openai/gpt-5.2','vercel-ai-gateway/openai/gpt-5.2-chat','vercel-ai-gateway/openai/gpt-5.2-codex','vercel-ai-gateway/openai/gpt-5.2-pro','vercel-ai-gateway/openai/gpt-5.3-codex','xai/grok-4.7','xai/grok-4.6','openai/gpt-5.4','openai/gpt-5.4-pro','openai/gpt-5.6','openai-codex/gpt-5.6','openai-codex/gpt-5.4','openai-codex/gpt-5.1-codex']);
1025
1025
  /* JOHNNESS_MODELS_MASTER:END */
1026
1026
  const XHIGH_MODEL_SET = new Set(XHIGH_MODEL_REFS.map((entry) => entry.toLowerCase()));
1027
1027
  const XHIGH_MODEL_IDS = new Set(XHIGH_MODEL_REFS.map((entry) => entry.split("/")[1]?.toLowerCase()).filter((entry) => Boolean(entry)));
@@ -48,7 +48,7 @@ const XHIGH_MODEL_REFS = [
48
48
  "github-copilot/gpt-5.2"
49
49
  ];
50
50
  /* JOHNNESS_MODELS_MASTER:BEGIN xhigh refs (generated from models/models.json by scripts/models-sync.mjs; edit the master, not this block) */
51
- XHIGH_MODEL_REFS.splice(0, XHIGH_MODEL_REFS.length, ...['deepseek/deepseek-flash','deepseek/deepseek-v4-pro','meta/muse-spark-1.3','meta/muse-spark-1.2','anthropic/claude-fable-5-1','anthropic/claude-sonnet-5-5','anthropic/claude-opus-5-5','anthropic/claude-opus-5','anthropic/claude-sonnet-5','anthropic/claude-fable-5','anthropic/claude-opus-4-6','azure-openai-responses/gpt-5.2','azure-openai-responses/gpt-5.2-chat-latest','azure-openai-responses/gpt-5.2-codex','azure-openai-responses/gpt-5.2-pro','azure-openai-responses/gpt-5.3-codex','azure-openai-responses/gpt-5.3-codex-spark','github-copilot/claude-opus-4.6','github-copilot/gpt-5.2','github-copilot/gpt-5.2-codex','openai/gpt-5.2','openai/gpt-5.2-chat-latest','openai/gpt-5.2-codex','openai/gpt-5.2-pro','openai/gpt-5.3-codex','openai/gpt-5.3-codex-spark','openai/gpt-6-astra','openai/gpt-6.1-sol','openai/gpt-6-sol','openai/gpt-6-luna','openai/gpt-5.6-sol','openai/gpt-5.6-terra','openai/gpt-5.6-luna','openai-codex/gpt-5.2','openai-codex/gpt-5.2-codex','openai-codex/gpt-5.3-codex','openai-codex/gpt-5.3-codex-spark','openai-codex/gpt-6.1-sol','openai-codex/gpt-6-sol','openai-codex/gpt-6-luna','openai-codex/gpt-6-astra','openai-codex/gpt-5.6-sol','openai-codex/gpt-5.6-terra','openai-codex/gpt-5.6-luna','opencode/claude-opus-4-6','opencode/gpt-5.2','opencode/gpt-5.2-codex','opencode/gpt-5.3-codex','openrouter/openai/gpt-5.2','openrouter/openai/gpt-5.2-chat','openrouter/openai/gpt-5.2-codex','openrouter/openai/gpt-5.2-pro','openrouter/openai/gpt-5.3-codex','vercel-ai-gateway/anthropic/claude-opus-4.6','vercel-ai-gateway/openai/gpt-5.2','vercel-ai-gateway/openai/gpt-5.2-chat','vercel-ai-gateway/openai/gpt-5.2-codex','vercel-ai-gateway/openai/gpt-5.2-pro','vercel-ai-gateway/openai/gpt-5.3-codex','xai/grok-4.7','xai/grok-4.6','openai/gpt-5.4','openai/gpt-5.4-pro','openai/gpt-5.6','openai-codex/gpt-5.6','openai-codex/gpt-5.4','openai-codex/gpt-5.1-codex']);
51
+ XHIGH_MODEL_REFS.splice(0, XHIGH_MODEL_REFS.length, ...['deepseek/deepseek-flash','deepseek/deepseek-v4-pro','meta/muse-spark-1.3','meta/muse-spark-1.2','anthropic/claude-fable-5-1','anthropic/claude-sonnet-5-5','anthropic/claude-opus-5-5','anthropic/claude-haiku-5-5','anthropic/claude-opus-5','anthropic/claude-sonnet-5','anthropic/claude-fable-5','anthropic/claude-opus-4-6','azure-openai-responses/gpt-5.2','azure-openai-responses/gpt-5.2-chat-latest','azure-openai-responses/gpt-5.2-codex','azure-openai-responses/gpt-5.2-pro','azure-openai-responses/gpt-5.3-codex','azure-openai-responses/gpt-5.3-codex-spark','github-copilot/claude-opus-4.6','github-copilot/gpt-5.2','github-copilot/gpt-5.2-codex','openai/gpt-5.2','openai/gpt-5.2-chat-latest','openai/gpt-5.2-codex','openai/gpt-5.2-pro','openai/gpt-5.3-codex','openai/gpt-5.3-codex-spark','openai/gpt-6-astra','openai/gpt-6.1-sol','openai/gpt-6-sol','openai/gpt-6-luna','openai/gpt-5.6-sol','openai/gpt-5.6-terra','openai/gpt-5.6-luna','openai-codex/gpt-5.2','openai-codex/gpt-5.2-codex','openai-codex/gpt-5.3-codex','openai-codex/gpt-5.3-codex-spark','openai-codex/gpt-6.1-sol','openai-codex/gpt-6-sol','openai-codex/gpt-6-luna','openai-codex/gpt-6-astra','openai-codex/gpt-5.6-sol','openai-codex/gpt-5.6-terra','openai-codex/gpt-5.6-luna','opencode/claude-opus-4-6','opencode/gpt-5.2','opencode/gpt-5.2-codex','opencode/gpt-5.3-codex','openrouter/openai/gpt-5.2','openrouter/openai/gpt-5.2-chat','openrouter/openai/gpt-5.2-codex','openrouter/openai/gpt-5.2-pro','openrouter/openai/gpt-5.3-codex','vercel-ai-gateway/anthropic/claude-opus-4.6','vercel-ai-gateway/openai/gpt-5.2','vercel-ai-gateway/openai/gpt-5.2-chat','vercel-ai-gateway/openai/gpt-5.2-codex','vercel-ai-gateway/openai/gpt-5.2-pro','vercel-ai-gateway/openai/gpt-5.3-codex','xai/grok-4.7','xai/grok-4.6','openai/gpt-5.4','openai/gpt-5.4-pro','openai/gpt-5.6','openai-codex/gpt-5.6','openai-codex/gpt-5.4','openai-codex/gpt-5.1-codex']);
52
52
  /* JOHNNESS_MODELS_MASTER:END */
53
53
  const XHIGH_MODEL_SET = new Set(XHIGH_MODEL_REFS.map((entry) => entry.toLowerCase()));
54
54
  const XHIGH_MODEL_IDS = new Set(XHIGH_MODEL_REFS.map((entry) => entry.split("/")[1]?.toLowerCase()).filter((entry) => Boolean(entry)));
@@ -1020,7 +1020,7 @@ const XHIGH_MODEL_REFS = [
1020
1020
  "github-copilot/gpt-5.2"
1021
1021
  ];
1022
1022
  /* JOHNNESS_MODELS_MASTER:BEGIN xhigh refs (generated from models/models.json by scripts/models-sync.mjs; edit the master, not this block) */
1023
- XHIGH_MODEL_REFS.splice(0, XHIGH_MODEL_REFS.length, ...['deepseek/deepseek-flash','deepseek/deepseek-v4-pro','meta/muse-spark-1.3','meta/muse-spark-1.2','anthropic/claude-fable-5-1','anthropic/claude-sonnet-5-5','anthropic/claude-opus-5-5','anthropic/claude-opus-5','anthropic/claude-sonnet-5','anthropic/claude-fable-5','anthropic/claude-opus-4-6','azure-openai-responses/gpt-5.2','azure-openai-responses/gpt-5.2-chat-latest','azure-openai-responses/gpt-5.2-codex','azure-openai-responses/gpt-5.2-pro','azure-openai-responses/gpt-5.3-codex','azure-openai-responses/gpt-5.3-codex-spark','github-copilot/claude-opus-4.6','github-copilot/gpt-5.2','github-copilot/gpt-5.2-codex','openai/gpt-5.2','openai/gpt-5.2-chat-latest','openai/gpt-5.2-codex','openai/gpt-5.2-pro','openai/gpt-5.3-codex','openai/gpt-5.3-codex-spark','openai/gpt-6-astra','openai/gpt-6.1-sol','openai/gpt-6-sol','openai/gpt-6-luna','openai/gpt-5.6-sol','openai/gpt-5.6-terra','openai/gpt-5.6-luna','openai-codex/gpt-5.2','openai-codex/gpt-5.2-codex','openai-codex/gpt-5.3-codex','openai-codex/gpt-5.3-codex-spark','openai-codex/gpt-6.1-sol','openai-codex/gpt-6-sol','openai-codex/gpt-6-luna','openai-codex/gpt-6-astra','openai-codex/gpt-5.6-sol','openai-codex/gpt-5.6-terra','openai-codex/gpt-5.6-luna','opencode/claude-opus-4-6','opencode/gpt-5.2','opencode/gpt-5.2-codex','opencode/gpt-5.3-codex','openrouter/openai/gpt-5.2','openrouter/openai/gpt-5.2-chat','openrouter/openai/gpt-5.2-codex','openrouter/openai/gpt-5.2-pro','openrouter/openai/gpt-5.3-codex','vercel-ai-gateway/anthropic/claude-opus-4.6','vercel-ai-gateway/openai/gpt-5.2','vercel-ai-gateway/openai/gpt-5.2-chat','vercel-ai-gateway/openai/gpt-5.2-codex','vercel-ai-gateway/openai/gpt-5.2-pro','vercel-ai-gateway/openai/gpt-5.3-codex','xai/grok-4.7','xai/grok-4.6','openai/gpt-5.4','openai/gpt-5.4-pro','openai/gpt-5.6','openai-codex/gpt-5.6','openai-codex/gpt-5.4','openai-codex/gpt-5.1-codex']);
1023
+ XHIGH_MODEL_REFS.splice(0, XHIGH_MODEL_REFS.length, ...['deepseek/deepseek-flash','deepseek/deepseek-v4-pro','meta/muse-spark-1.3','meta/muse-spark-1.2','anthropic/claude-fable-5-1','anthropic/claude-sonnet-5-5','anthropic/claude-opus-5-5','anthropic/claude-haiku-5-5','anthropic/claude-opus-5','anthropic/claude-sonnet-5','anthropic/claude-fable-5','anthropic/claude-opus-4-6','azure-openai-responses/gpt-5.2','azure-openai-responses/gpt-5.2-chat-latest','azure-openai-responses/gpt-5.2-codex','azure-openai-responses/gpt-5.2-pro','azure-openai-responses/gpt-5.3-codex','azure-openai-responses/gpt-5.3-codex-spark','github-copilot/claude-opus-4.6','github-copilot/gpt-5.2','github-copilot/gpt-5.2-codex','openai/gpt-5.2','openai/gpt-5.2-chat-latest','openai/gpt-5.2-codex','openai/gpt-5.2-pro','openai/gpt-5.3-codex','openai/gpt-5.3-codex-spark','openai/gpt-6-astra','openai/gpt-6.1-sol','openai/gpt-6-sol','openai/gpt-6-luna','openai/gpt-5.6-sol','openai/gpt-5.6-terra','openai/gpt-5.6-luna','openai-codex/gpt-5.2','openai-codex/gpt-5.2-codex','openai-codex/gpt-5.3-codex','openai-codex/gpt-5.3-codex-spark','openai-codex/gpt-6.1-sol','openai-codex/gpt-6-sol','openai-codex/gpt-6-luna','openai-codex/gpt-6-astra','openai-codex/gpt-5.6-sol','openai-codex/gpt-5.6-terra','openai-codex/gpt-5.6-luna','opencode/claude-opus-4-6','opencode/gpt-5.2','opencode/gpt-5.2-codex','opencode/gpt-5.3-codex','openrouter/openai/gpt-5.2','openrouter/openai/gpt-5.2-chat','openrouter/openai/gpt-5.2-codex','openrouter/openai/gpt-5.2-pro','openrouter/openai/gpt-5.3-codex','vercel-ai-gateway/anthropic/claude-opus-4.6','vercel-ai-gateway/openai/gpt-5.2','vercel-ai-gateway/openai/gpt-5.2-chat','vercel-ai-gateway/openai/gpt-5.2-codex','vercel-ai-gateway/openai/gpt-5.2-pro','vercel-ai-gateway/openai/gpt-5.3-codex','xai/grok-4.7','xai/grok-4.6','openai/gpt-5.4','openai/gpt-5.4-pro','openai/gpt-5.6','openai-codex/gpt-5.6','openai-codex/gpt-5.4','openai-codex/gpt-5.1-codex']);
1024
1024
  /* JOHNNESS_MODELS_MASTER:END */
1025
1025
  const XHIGH_MODEL_SET = new Set(XHIGH_MODEL_REFS.map((entry) => entry.toLowerCase()));
1026
1026
  const XHIGH_MODEL_IDS = new Set(XHIGH_MODEL_REFS.map((entry) => entry.split("/")[1]?.toLowerCase()).filter((entry) => Boolean(entry)));
@@ -48,7 +48,7 @@ const XHIGH_MODEL_REFS = [
48
48
  "github-copilot/gpt-5.2"
49
49
  ];
50
50
  /* JOHNNESS_MODELS_MASTER:BEGIN xhigh refs (generated from models/models.json by scripts/models-sync.mjs; edit the master, not this block) */
51
- XHIGH_MODEL_REFS.splice(0, XHIGH_MODEL_REFS.length, ...['deepseek/deepseek-flash','deepseek/deepseek-v4-pro','meta/muse-spark-1.3','meta/muse-spark-1.2','anthropic/claude-fable-5-1','anthropic/claude-sonnet-5-5','anthropic/claude-opus-5-5','anthropic/claude-opus-5','anthropic/claude-sonnet-5','anthropic/claude-fable-5','anthropic/claude-opus-4-6','azure-openai-responses/gpt-5.2','azure-openai-responses/gpt-5.2-chat-latest','azure-openai-responses/gpt-5.2-codex','azure-openai-responses/gpt-5.2-pro','azure-openai-responses/gpt-5.3-codex','azure-openai-responses/gpt-5.3-codex-spark','github-copilot/claude-opus-4.6','github-copilot/gpt-5.2','github-copilot/gpt-5.2-codex','openai/gpt-5.2','openai/gpt-5.2-chat-latest','openai/gpt-5.2-codex','openai/gpt-5.2-pro','openai/gpt-5.3-codex','openai/gpt-5.3-codex-spark','openai/gpt-6-astra','openai/gpt-6.1-sol','openai/gpt-6-sol','openai/gpt-6-luna','openai/gpt-5.6-sol','openai/gpt-5.6-terra','openai/gpt-5.6-luna','openai-codex/gpt-5.2','openai-codex/gpt-5.2-codex','openai-codex/gpt-5.3-codex','openai-codex/gpt-5.3-codex-spark','openai-codex/gpt-6.1-sol','openai-codex/gpt-6-sol','openai-codex/gpt-6-luna','openai-codex/gpt-6-astra','openai-codex/gpt-5.6-sol','openai-codex/gpt-5.6-terra','openai-codex/gpt-5.6-luna','opencode/claude-opus-4-6','opencode/gpt-5.2','opencode/gpt-5.2-codex','opencode/gpt-5.3-codex','openrouter/openai/gpt-5.2','openrouter/openai/gpt-5.2-chat','openrouter/openai/gpt-5.2-codex','openrouter/openai/gpt-5.2-pro','openrouter/openai/gpt-5.3-codex','vercel-ai-gateway/anthropic/claude-opus-4.6','vercel-ai-gateway/openai/gpt-5.2','vercel-ai-gateway/openai/gpt-5.2-chat','vercel-ai-gateway/openai/gpt-5.2-codex','vercel-ai-gateway/openai/gpt-5.2-pro','vercel-ai-gateway/openai/gpt-5.3-codex','xai/grok-4.7','xai/grok-4.6','openai/gpt-5.4','openai/gpt-5.4-pro','openai/gpt-5.6','openai-codex/gpt-5.6','openai-codex/gpt-5.4','openai-codex/gpt-5.1-codex']);
51
+ XHIGH_MODEL_REFS.splice(0, XHIGH_MODEL_REFS.length, ...['deepseek/deepseek-flash','deepseek/deepseek-v4-pro','meta/muse-spark-1.3','meta/muse-spark-1.2','anthropic/claude-fable-5-1','anthropic/claude-sonnet-5-5','anthropic/claude-opus-5-5','anthropic/claude-haiku-5-5','anthropic/claude-opus-5','anthropic/claude-sonnet-5','anthropic/claude-fable-5','anthropic/claude-opus-4-6','azure-openai-responses/gpt-5.2','azure-openai-responses/gpt-5.2-chat-latest','azure-openai-responses/gpt-5.2-codex','azure-openai-responses/gpt-5.2-pro','azure-openai-responses/gpt-5.3-codex','azure-openai-responses/gpt-5.3-codex-spark','github-copilot/claude-opus-4.6','github-copilot/gpt-5.2','github-copilot/gpt-5.2-codex','openai/gpt-5.2','openai/gpt-5.2-chat-latest','openai/gpt-5.2-codex','openai/gpt-5.2-pro','openai/gpt-5.3-codex','openai/gpt-5.3-codex-spark','openai/gpt-6-astra','openai/gpt-6.1-sol','openai/gpt-6-sol','openai/gpt-6-luna','openai/gpt-5.6-sol','openai/gpt-5.6-terra','openai/gpt-5.6-luna','openai-codex/gpt-5.2','openai-codex/gpt-5.2-codex','openai-codex/gpt-5.3-codex','openai-codex/gpt-5.3-codex-spark','openai-codex/gpt-6.1-sol','openai-codex/gpt-6-sol','openai-codex/gpt-6-luna','openai-codex/gpt-6-astra','openai-codex/gpt-5.6-sol','openai-codex/gpt-5.6-terra','openai-codex/gpt-5.6-luna','opencode/claude-opus-4-6','opencode/gpt-5.2','opencode/gpt-5.2-codex','opencode/gpt-5.3-codex','openrouter/openai/gpt-5.2','openrouter/openai/gpt-5.2-chat','openrouter/openai/gpt-5.2-codex','openrouter/openai/gpt-5.2-pro','openrouter/openai/gpt-5.3-codex','vercel-ai-gateway/anthropic/claude-opus-4.6','vercel-ai-gateway/openai/gpt-5.2','vercel-ai-gateway/openai/gpt-5.2-chat','vercel-ai-gateway/openai/gpt-5.2-codex','vercel-ai-gateway/openai/gpt-5.2-pro','vercel-ai-gateway/openai/gpt-5.3-codex','xai/grok-4.7','xai/grok-4.6','openai/gpt-5.4','openai/gpt-5.4-pro','openai/gpt-5.6','openai-codex/gpt-5.6','openai-codex/gpt-5.4','openai-codex/gpt-5.1-codex']);
52
52
  /* JOHNNESS_MODELS_MASTER:END */
53
53
  const XHIGH_MODEL_SET = new Set(XHIGH_MODEL_REFS.map((entry) => entry.toLowerCase()));
54
54
  const XHIGH_MODEL_IDS = new Set(XHIGH_MODEL_REFS.map((entry) => entry.split("/")[1]?.toLowerCase()).filter((entry) => Boolean(entry)));
package/docs/MODELS.md CHANGED
@@ -14,6 +14,7 @@ versioned alias (`aliases`). `scripts/models-sync.mjs` generates every copy in t
14
14
  | Model catalog (`MODELS`) and per-model wire rules | pi-ai `models.generated.js` (vendor + installed) |
15
15
  | `supportsXhigh()` for every catalog model, `johnnessApplyModelRules()` | pi-ai `models.js` (vendor + installed) |
16
16
  | Effort clamping and temperature/top_p dropping on the wire | `openai-responses.js`, `openai-codex-responses.js` (vendor + installed) and family 53's snapshot |
17
+ | Anthropic adaptive thinking, effort, thinking-off and temperature rules (`anthropic rules` block) | `providers/anthropic.js` (vendor + installed) |
17
18
  | `DEFAULT_MODEL_ALIASES` (the shipped alias table) | 14 bundles (`model-selection-*`, `config-*`, `model-auth-*`, `auth-profiles-*`, `daemon-cli`, `discord`) |
18
19
  | `XHIGH_MODEL_REFS` (`/think xhigh` gate) | 12 `thinking-*` copies plus the Telegram and Mattermost bundles |
19
20
 
@@ -33,6 +34,16 @@ markers. Never edit inside them. The older hand-written literals stay in place b
33
34
  API accepts; others are sent as the nearest accepted one. `harness.temperature`: `"drop"`
34
35
  (always rejected) or `"drop-unless-effort-none"`. Put the source URL and date in
35
36
  `harness.source` / `harness.checked`.
37
+ - Anthropic (`anthropic-messages`) entries: `harness.thinking: "adaptive"` makes the adapter send
38
+ `thinking: {type: "adaptive"}` + `output_config.effort` instead of manual `budget_tokens` (use it
39
+ when the model rejects `thinking.type: "enabled"`); `harness.thinkingOff: "disabled"` sends
40
+ `thinking: {type: "disabled"}` when `/think` is off (for models whose thinking is on by default);
41
+ `harness.efforts` lists the accepted `output_config.effort` levels (low..max; `minimal` is sent as
42
+ `low`); `harness.temperature: "drop"` strips temperature/top_p/top_k. Models without these keys
43
+ keep the adapter's historical gates. Probe `enabled`, `disabled` and `temperature` live before
44
+ setting them (Claude Haiku 5.5, 2026-10-08, was the first user).
45
+ - `cost` is flat. When a model's official price is tiered (for example by prompt length), use the
46
+ base tier and write the other tier in `harness.notes` and the CHANGELOG.
36
47
  - Shorthands move by themselves: a `latest` rule points its alias at the highest version in the
37
48
  line. If a shorthand moved, add a versioned alias for the model it left (for example `sol6`),
38
49
  or the sync refuses to run.
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "about": "Master model file for John's Harness (family 83). Every shipped catalog entry, wire rule and alias lives here; scripts/models-sync.mjs generates every copy in the tree from it. See docs/MODELS.md.",
3
- "fields": "providers.<provider>.<id>: the pi-ai catalog card (name, api, baseUrl, reasoning, input, cost per MTok, contextWindow = the window the harness uses, maxTokens). harness.xhigh: /think xhigh and wire xhigh allowed. harness.efforts: reasoning efforts the API accepts (others map to the nearest accepted). harness.temperature: drop | drop-unless-effort-none. harness.nativeContextWindow/source/checked: documentation only.",
3
+ "fields": "providers.<provider>.<id>: the pi-ai catalog card (name, api, baseUrl, reasoning, input, cost per MTok, contextWindow = the window the harness uses, maxTokens). harness.xhigh: /think xhigh and wire xhigh allowed. harness.efforts: reasoning efforts the API accepts (others map to the nearest accepted). harness.temperature: drop | drop-unless-effort-none. Anthropic (anthropic-messages) only: harness.thinking adaptive (adaptive thinking + output_config.effort instead of budget_tokens), harness.thinkingOff disabled (thinking.type disabled when /think is off), harness.efforts low..max, harness.temperature drop (also top_p/top_k). harness.nativeContextWindow/source/checked/notes: documentation only. cost is flat; tiered official prices keep the base tier here and the rest in harness.notes.",
4
4
  "latest": {
5
5
  "opus": {"provider":"anthropic","match":"^claude-opus-(\\d+)(?:-(\\d{1,2}))?$"},
6
6
  "sonnet": {"provider":"anthropic","match":"^claude-sonnet-(\\d+)(?:-(\\d{1,2}))?$"},
7
7
  "fable": {"provider":"anthropic","match":"^claude-fable-(\\d+)(?:-(\\d{1,2}))?$","keepPrevious":false},
8
+ "haiku": {"provider":"anthropic","match":"^claude-haiku-(\\d+)(?:-(\\d{1,2}))?$"},
8
9
  "gpt": {"provider":"openai-codex","match":"^gpt-(\\d+)(?:\\.(\\d+))?-sol$"},
9
10
  "sol": {"provider":"openai-codex","match":"^gpt-(\\d+)(?:\\.(\\d+))?-sol$"},
10
11
  "luna": {"provider":"openai-codex","match":"^gpt-(\\d+)(?:\\.(\\d+))?-luna$"},
@@ -30,6 +31,7 @@
30
31
  "image": "openai-codex/gpt-image-2",
31
32
  "sonnet5": "anthropic/claude-sonnet-5",
32
33
  "opus5": "anthropic/claude-opus-5",
34
+ "haiku45": "anthropic/claude-haiku-4-5",
33
35
  "sol6": "openai-codex/gpt-6-sol",
34
36
  "sol56": "openai-codex/gpt-5.6-sol",
35
37
  "luna56": "openai-codex/gpt-5.6-luna",
@@ -148,8 +150,9 @@
148
150
  "claude-3-opus-20240229": {"name":"Claude Opus 3","api":"anthropic-messages","baseUrl":"https://api.anthropic.com","reasoning":false,"input":["text","image"],"cost":{"input":15,"output":75,"cacheRead":1.5,"cacheWrite":18.75},"contextWindow":200000,"maxTokens":4096},
149
151
  "claude-3-sonnet-20240229": {"name":"Claude Sonnet 3","api":"anthropic-messages","baseUrl":"https://api.anthropic.com","reasoning":false,"input":["text","image"],"cost":{"input":3,"output":15,"cacheRead":0.3,"cacheWrite":0.3},"contextWindow":200000,"maxTokens":4096},
150
152
  "claude-fable-5-1": {"name":"Claude Fable 5.1","api":"anthropic-messages","baseUrl":"https://api.anthropic.com","reasoning":true,"input":["text","image"],"cost":{"input":10,"output":50,"cacheRead":0.25,"cacheWrite":12.5},"contextWindow":300000,"maxTokens":128000,"harness":{"xhigh":true}},
151
- "claude-sonnet-5-5": {"name":"Claude Sonnet 5.5","api":"anthropic-messages","baseUrl":"https://api.anthropic.com","reasoning":true,"input":["text","image"],"cost":{"input":2,"output":10,"cacheRead":0.2,"cacheWrite":2.5},"contextWindow":1000000,"maxTokens":128000,"harness":{"xhigh":true}},
153
+ "claude-sonnet-5-5": {"name":"Claude Sonnet 5.5","api":"anthropic-messages","baseUrl":"https://api.anthropic.com","reasoning":true,"input":["text","image"],"cost":{"input":2,"output":10,"cacheRead":0.1,"cacheWrite":2.5},"contextWindow":1000000,"maxTokens":128000,"harness":{"xhigh":true,"source":"docs.claude.com/docs/en/about-claude/pricing (cache read 0.05x on Claude Opus 5.5 and Claude Sonnet 5.5) and the 2026-10-07 release notes","checked":"2026-10-08","notes":"Cache reads lowered from $0.20 to $0.10/MTok on 2026-10-07; cache writes and all other prices unchanged."}},
152
154
  "claude-opus-5-5": {"name":"Claude Opus 5.5","api":"anthropic-messages","baseUrl":"https://api.anthropic.com","reasoning":true,"input":["text","image"],"cost":{"input":4,"output":20,"cacheRead":0.2,"cacheWrite":5},"contextWindow":500000,"maxTokens":128000,"harness":{"xhigh":true}},
155
+ "claude-haiku-5-5": {"name":"Claude Haiku 5.5","api":"anthropic-messages","baseUrl":"https://api.anthropic.com","reasoning":true,"input":["text","image"],"cost":{"input":0.1,"output":0.5,"cacheRead":0.01,"cacheWrite":0.125},"contextWindow":1000000,"maxTokens":128000,"harness":{"xhigh":true,"thinking":"adaptive","thinkingOff":"disabled","efforts":["low","medium","high","xhigh","max"],"temperature":"drop","nativeContextWindow":1000000,"source":"docs.claude.com/docs/en/models/haiku-5-5/overview, /docs/en/about-claude/pricing, /docs/en/build-with-claude/effort, /docs/en/build-with-claude/thinking and the 2026-10-07 release notes; GET api.anthropic.com/v1/models/claude-haiku-5-5 (max_input_tokens 1000000, max_tokens 128000, effort low..max supported, thinking adaptive and disabled supported, enabled unsupported)","checked":"2026-10-08","notes":"GA 2026-10-07. Adaptive thinking is on by default (display omitted), default effort medium. thinking.type enabled (budget_tokens) returns 400 (live), so the adapter must send adaptive + output_config.effort. Non-default temperature/top_p/top_k return 400 (live: temperature 400). Pricing is tiered by prompt length: prompts up to 100K tokens $0.10 input, $0.50 output, $0.01 cache read, $0.125 5m cache write, $0.20 1h cache write per MTok; prompts over 100K $0.50, $2.50, $0.05, $0.625, $1.00. cost holds the up-to-100K tier because the catalog cost is flat, so usage estimates for prompts over 100K tokens read 5x low. Batch 50% off. Newer tokenizer (about 30% more tokens than Haiku 4.5). Knowledge cutoff Jun 2026."}},
153
156
  "claude-opus-5": {"name":"Claude Opus 5","api":"anthropic-messages","baseUrl":"https://api.anthropic.com","reasoning":true,"input":["text","image"],"cost":{"input":5,"output":25,"cacheRead":0.5,"cacheWrite":6.25},"contextWindow":300000,"maxTokens":128000,"harness":{"xhigh":true}},
154
157
  "claude-sonnet-5": {"name":"Claude Sonnet 5","api":"anthropic-messages","baseUrl":"https://api.anthropic.com","reasoning":true,"input":["text","image"],"cost":{"input":2,"output":10,"cacheRead":0.2,"cacheWrite":2.5},"contextWindow":1000000,"maxTokens":128000,"harness":{"xhigh":true}},
155
158
  "claude-fable-5": {"name":"Claude Fable 5","api":"anthropic-messages","baseUrl":"https://api.anthropic.com","reasoning":true,"input":["text","image"],"cost":{"input":10,"output":50,"cacheRead":1,"cacheWrite":12.5},"contextWindow":300000,"maxTokens":128000,"harness":{"xhigh":true}},
@@ -13752,8 +13752,9 @@ const JOHNNESS_MODELS_MASTER = {
13752
13752
  "claude-3-opus-20240229":{"id":"claude-3-opus-20240229","name":"Claude Opus 3","api":"anthropic-messages","provider":"anthropic","baseUrl":"https://api.anthropic.com","reasoning":false,"input":["text","image"],"cost":{"input":15,"output":75,"cacheRead":1.5,"cacheWrite":18.75},"contextWindow":200000,"maxTokens":4096},
13753
13753
  "claude-3-sonnet-20240229":{"id":"claude-3-sonnet-20240229","name":"Claude Sonnet 3","api":"anthropic-messages","provider":"anthropic","baseUrl":"https://api.anthropic.com","reasoning":false,"input":["text","image"],"cost":{"input":3,"output":15,"cacheRead":0.3,"cacheWrite":0.3},"contextWindow":200000,"maxTokens":4096},
13754
13754
  "claude-fable-5-1":{"id":"claude-fable-5-1","name":"Claude Fable 5.1","api":"anthropic-messages","provider":"anthropic","baseUrl":"https://api.anthropic.com","reasoning":true,"input":["text","image"],"cost":{"input":10,"output":50,"cacheRead":0.25,"cacheWrite":12.5},"contextWindow":300000,"maxTokens":128000},
13755
- "claude-sonnet-5-5":{"id":"claude-sonnet-5-5","name":"Claude Sonnet 5.5","api":"anthropic-messages","provider":"anthropic","baseUrl":"https://api.anthropic.com","reasoning":true,"input":["text","image"],"cost":{"input":2,"output":10,"cacheRead":0.2,"cacheWrite":2.5},"contextWindow":1000000,"maxTokens":128000},
13755
+ "claude-sonnet-5-5":{"id":"claude-sonnet-5-5","name":"Claude Sonnet 5.5","api":"anthropic-messages","provider":"anthropic","baseUrl":"https://api.anthropic.com","reasoning":true,"input":["text","image"],"cost":{"input":2,"output":10,"cacheRead":0.1,"cacheWrite":2.5},"contextWindow":1000000,"maxTokens":128000},
13756
13756
  "claude-opus-5-5":{"id":"claude-opus-5-5","name":"Claude Opus 5.5","api":"anthropic-messages","provider":"anthropic","baseUrl":"https://api.anthropic.com","reasoning":true,"input":["text","image"],"cost":{"input":4,"output":20,"cacheRead":0.2,"cacheWrite":5},"contextWindow":500000,"maxTokens":128000},
13757
+ "claude-haiku-5-5":{"id":"claude-haiku-5-5","name":"Claude Haiku 5.5","api":"anthropic-messages","provider":"anthropic","baseUrl":"https://api.anthropic.com","reasoning":true,"input":["text","image"],"cost":{"input":0.1,"output":0.5,"cacheRead":0.01,"cacheWrite":0.125},"contextWindow":1000000,"maxTokens":128000},
13757
13758
  "claude-opus-5":{"id":"claude-opus-5","name":"Claude Opus 5","api":"anthropic-messages","provider":"anthropic","baseUrl":"https://api.anthropic.com","reasoning":true,"input":["text","image"],"cost":{"input":5,"output":25,"cacheRead":0.5,"cacheWrite":6.25},"contextWindow":300000,"maxTokens":128000},
13758
13759
  "claude-sonnet-5":{"id":"claude-sonnet-5","name":"Claude Sonnet 5","api":"anthropic-messages","provider":"anthropic","baseUrl":"https://api.anthropic.com","reasoning":true,"input":["text","image"],"cost":{"input":2,"output":10,"cacheRead":0.2,"cacheWrite":2.5},"contextWindow":1000000,"maxTokens":128000},
13759
13760
  "claude-fable-5":{"id":"claude-fable-5","name":"Claude Fable 5","api":"anthropic-messages","provider":"anthropic","baseUrl":"https://api.anthropic.com","reasoning":true,"input":["text","image"],"cost":{"input":10,"output":50,"cacheRead":1,"cacheWrite":12.5},"contextWindow":300000,"maxTokens":128000},
@@ -14492,6 +14493,6 @@ const JOHNNESS_MODELS_MASTER = {
14492
14493
  };
14493
14494
  for (const provider of Object.keys(MODELS)) delete MODELS[provider];
14494
14495
  Object.assign(MODELS, JOHNNESS_MODELS_MASTER);
14495
- export const JOHNNESS_MODEL_RULES = {"deepseek/deepseek-flash":{"xhigh":true},"deepseek/deepseek-v4-pro":{"xhigh":true},"meta/muse-spark-1.3":{"xhigh":true},"meta/muse-spark-1.2":{"xhigh":true},"anthropic/claude-fable-5-1":{"xhigh":true},"anthropic/claude-sonnet-5-5":{"xhigh":true},"anthropic/claude-opus-5-5":{"xhigh":true},"anthropic/claude-opus-5":{"xhigh":true},"anthropic/claude-sonnet-5":{"xhigh":true},"anthropic/claude-fable-5":{"xhigh":true},"anthropic/claude-opus-4-6":{"xhigh":true},"azure-openai-responses/gpt-5.2":{"xhigh":true},"azure-openai-responses/gpt-5.2-chat-latest":{"xhigh":true},"azure-openai-responses/gpt-5.2-codex":{"xhigh":true},"azure-openai-responses/gpt-5.2-pro":{"xhigh":true},"azure-openai-responses/gpt-5.3-codex":{"xhigh":true},"azure-openai-responses/gpt-5.3-codex-spark":{"xhigh":true},"github-copilot/claude-opus-4.6":{"xhigh":true},"github-copilot/gpt-5.2":{"xhigh":true},"github-copilot/gpt-5.2-codex":{"xhigh":true},"openai/gpt-5.2":{"xhigh":true},"openai/gpt-5.2-chat-latest":{"xhigh":true},"openai/gpt-5.2-codex":{"xhigh":true},"openai/gpt-5.2-pro":{"xhigh":true},"openai/gpt-5.3-codex":{"xhigh":true},"openai/gpt-5.3-codex-spark":{"xhigh":true},"openai/gpt-6-astra":{"xhigh":true,"efforts":["low","medium","high","xhigh","max"],"temperature":"drop"},"openai/gpt-6.1-sol":{"xhigh":true,"efforts":["low","medium","high","xhigh","max"],"temperature":"drop"},"openai/gpt-6-sol":{"xhigh":true,"efforts":["none","low","medium","high","xhigh","max"],"temperature":"drop-unless-effort-none"},"openai/gpt-6-luna":{"xhigh":true,"efforts":["none","low","medium","high","xhigh","max"],"temperature":"drop-unless-effort-none"},"openai/gpt-5.6-sol":{"xhigh":true,"temperature":"drop-unless-effort-none"},"openai/gpt-5.6-terra":{"xhigh":true,"temperature":"drop-unless-effort-none"},"openai/gpt-5.6-luna":{"xhigh":true,"temperature":"drop-unless-effort-none"},"openai-codex/gpt-5.2":{"xhigh":true},"openai-codex/gpt-5.2-codex":{"xhigh":true},"openai-codex/gpt-5.3-codex":{"xhigh":true},"openai-codex/gpt-5.3-codex-spark":{"xhigh":true},"openai-codex/gpt-6.1-sol":{"xhigh":true,"efforts":["low","medium","high","xhigh","max"],"temperature":"drop"},"openai-codex/gpt-6-sol":{"xhigh":true,"efforts":["none","low","medium","high","xhigh","max"],"temperature":"drop-unless-effort-none"},"openai-codex/gpt-6-luna":{"xhigh":true,"efforts":["none","low","medium","high","xhigh","max"],"temperature":"drop-unless-effort-none"},"openai-codex/gpt-6-astra":{"xhigh":true,"efforts":["low","medium","high","xhigh","max"],"temperature":"drop"},"openai-codex/gpt-5.6-sol":{"xhigh":true,"temperature":"drop-unless-effort-none"},"openai-codex/gpt-5.6-terra":{"xhigh":true,"temperature":"drop-unless-effort-none"},"openai-codex/gpt-5.6-luna":{"xhigh":true,"temperature":"drop-unless-effort-none"},"opencode/claude-opus-4-6":{"xhigh":true},"opencode/gpt-5.2":{"xhigh":true},"opencode/gpt-5.2-codex":{"xhigh":true},"opencode/gpt-5.3-codex":{"xhigh":true},"openrouter/openai/gpt-5.2":{"xhigh":true},"openrouter/openai/gpt-5.2-chat":{"xhigh":true},"openrouter/openai/gpt-5.2-codex":{"xhigh":true},"openrouter/openai/gpt-5.2-pro":{"xhigh":true},"openrouter/openai/gpt-5.3-codex":{"xhigh":true},"vercel-ai-gateway/anthropic/claude-opus-4.6":{"xhigh":true},"vercel-ai-gateway/openai/gpt-5.2":{"xhigh":true},"vercel-ai-gateway/openai/gpt-5.2-chat":{"xhigh":true},"vercel-ai-gateway/openai/gpt-5.2-codex":{"xhigh":true},"vercel-ai-gateway/openai/gpt-5.2-pro":{"xhigh":true},"vercel-ai-gateway/openai/gpt-5.3-codex":{"xhigh":true},"xai/grok-4.7":{"xhigh":true},"xai/grok-4.6":{"xhigh":true}};
14496
+ export const JOHNNESS_MODEL_RULES = {"deepseek/deepseek-flash":{"xhigh":true},"deepseek/deepseek-v4-pro":{"xhigh":true},"meta/muse-spark-1.3":{"xhigh":true},"meta/muse-spark-1.2":{"xhigh":true},"anthropic/claude-fable-5-1":{"xhigh":true},"anthropic/claude-sonnet-5-5":{"xhigh":true},"anthropic/claude-opus-5-5":{"xhigh":true},"anthropic/claude-haiku-5-5":{"xhigh":true,"efforts":["low","medium","high","xhigh","max"],"temperature":"drop"},"anthropic/claude-opus-5":{"xhigh":true},"anthropic/claude-sonnet-5":{"xhigh":true},"anthropic/claude-fable-5":{"xhigh":true},"anthropic/claude-opus-4-6":{"xhigh":true},"azure-openai-responses/gpt-5.2":{"xhigh":true},"azure-openai-responses/gpt-5.2-chat-latest":{"xhigh":true},"azure-openai-responses/gpt-5.2-codex":{"xhigh":true},"azure-openai-responses/gpt-5.2-pro":{"xhigh":true},"azure-openai-responses/gpt-5.3-codex":{"xhigh":true},"azure-openai-responses/gpt-5.3-codex-spark":{"xhigh":true},"github-copilot/claude-opus-4.6":{"xhigh":true},"github-copilot/gpt-5.2":{"xhigh":true},"github-copilot/gpt-5.2-codex":{"xhigh":true},"openai/gpt-5.2":{"xhigh":true},"openai/gpt-5.2-chat-latest":{"xhigh":true},"openai/gpt-5.2-codex":{"xhigh":true},"openai/gpt-5.2-pro":{"xhigh":true},"openai/gpt-5.3-codex":{"xhigh":true},"openai/gpt-5.3-codex-spark":{"xhigh":true},"openai/gpt-6-astra":{"xhigh":true,"efforts":["low","medium","high","xhigh","max"],"temperature":"drop"},"openai/gpt-6.1-sol":{"xhigh":true,"efforts":["low","medium","high","xhigh","max"],"temperature":"drop"},"openai/gpt-6-sol":{"xhigh":true,"efforts":["none","low","medium","high","xhigh","max"],"temperature":"drop-unless-effort-none"},"openai/gpt-6-luna":{"xhigh":true,"efforts":["none","low","medium","high","xhigh","max"],"temperature":"drop-unless-effort-none"},"openai/gpt-5.6-sol":{"xhigh":true,"temperature":"drop-unless-effort-none"},"openai/gpt-5.6-terra":{"xhigh":true,"temperature":"drop-unless-effort-none"},"openai/gpt-5.6-luna":{"xhigh":true,"temperature":"drop-unless-effort-none"},"openai-codex/gpt-5.2":{"xhigh":true},"openai-codex/gpt-5.2-codex":{"xhigh":true},"openai-codex/gpt-5.3-codex":{"xhigh":true},"openai-codex/gpt-5.3-codex-spark":{"xhigh":true},"openai-codex/gpt-6.1-sol":{"xhigh":true,"efforts":["low","medium","high","xhigh","max"],"temperature":"drop"},"openai-codex/gpt-6-sol":{"xhigh":true,"efforts":["none","low","medium","high","xhigh","max"],"temperature":"drop-unless-effort-none"},"openai-codex/gpt-6-luna":{"xhigh":true,"efforts":["none","low","medium","high","xhigh","max"],"temperature":"drop-unless-effort-none"},"openai-codex/gpt-6-astra":{"xhigh":true,"efforts":["low","medium","high","xhigh","max"],"temperature":"drop"},"openai-codex/gpt-5.6-sol":{"xhigh":true,"temperature":"drop-unless-effort-none"},"openai-codex/gpt-5.6-terra":{"xhigh":true,"temperature":"drop-unless-effort-none"},"openai-codex/gpt-5.6-luna":{"xhigh":true,"temperature":"drop-unless-effort-none"},"opencode/claude-opus-4-6":{"xhigh":true},"opencode/gpt-5.2":{"xhigh":true},"opencode/gpt-5.2-codex":{"xhigh":true},"opencode/gpt-5.3-codex":{"xhigh":true},"openrouter/openai/gpt-5.2":{"xhigh":true},"openrouter/openai/gpt-5.2-chat":{"xhigh":true},"openrouter/openai/gpt-5.2-codex":{"xhigh":true},"openrouter/openai/gpt-5.2-pro":{"xhigh":true},"openrouter/openai/gpt-5.3-codex":{"xhigh":true},"vercel-ai-gateway/anthropic/claude-opus-4.6":{"xhigh":true},"vercel-ai-gateway/openai/gpt-5.2":{"xhigh":true},"vercel-ai-gateway/openai/gpt-5.2-chat":{"xhigh":true},"vercel-ai-gateway/openai/gpt-5.2-codex":{"xhigh":true},"vercel-ai-gateway/openai/gpt-5.2-pro":{"xhigh":true},"vercel-ai-gateway/openai/gpt-5.3-codex":{"xhigh":true},"xai/grok-4.7":{"xhigh":true},"xai/grok-4.6":{"xhigh":true}};
14496
14497
  /* JOHNNESS_MODELS_MASTER:END */
14497
14498
  //# sourceMappingURL=models.generated.js.map
@@ -7,6 +7,37 @@ import { sanitizeSurrogates } from "../utils/sanitize-unicode.js";
7
7
  import { buildCopilotDynamicHeaders, hasCopilotVisionInput } from "./github-copilot-headers.js";
8
8
  import { adjustMaxTokensForThinking, buildBaseOptions } from "./simple-options.js";
9
9
  import { transformMessages } from "./transform-messages.js";
10
+ /* JOHNNESS_MODELS_MASTER:BEGIN anthropic rules (generated from models/models.json by scripts/models-sync.mjs; edit the master, not this block) */
11
+ const JOHNNESS_ANTHROPIC_RULES = {"claude-haiku-5-5":{"thinking":"adaptive","thinkingOff":"disabled","efforts":["low","medium","high","xhigh","max"],"temperature":"drop"}};
12
+ const JOHNNESS_ANTHROPIC_EFFORT_ORDER = ["low","medium","high","xhigh","max"];
13
+ const johnnessHistoricalSupportsAdaptiveThinking = supportsAdaptiveThinking;
14
+ supportsAdaptiveThinking = function johnnessMasterSupportsAdaptiveThinking(modelId) {
15
+ return JOHNNESS_ANTHROPIC_RULES[modelId]?.thinking === "adaptive" || johnnessHistoricalSupportsAdaptiveThinking(modelId);
16
+ };
17
+ const johnnessHistoricalMapThinkingLevelToEffort = mapThinkingLevelToEffort;
18
+ mapThinkingLevelToEffort = function johnnessMasterMapThinkingLevelToEffort(level, modelId) {
19
+ const efforts = JOHNNESS_ANTHROPIC_RULES[modelId]?.efforts;
20
+ if (!efforts) return johnnessHistoricalMapThinkingLevelToEffort(level, modelId);
21
+ const wanted = level === "minimal" ? "low" : JOHNNESS_ANTHROPIC_EFFORT_ORDER.includes(level) ? level : "high";
22
+ if (efforts.includes(wanted)) return wanted;
23
+ const accepted = JOHNNESS_ANTHROPIC_EFFORT_ORDER.filter((effort) => efforts.includes(effort));
24
+ return accepted.find((effort) => JOHNNESS_ANTHROPIC_EFFORT_ORDER.indexOf(effort) >= JOHNNESS_ANTHROPIC_EFFORT_ORDER.indexOf(wanted)) ?? accepted.at(-1);
25
+ };
26
+ const johnnessHistoricalAnthropicBuildParams = buildParams;
27
+ buildParams = function johnnessMasterAnthropicBuildParams(model, context, isOAuthToken, options) {
28
+ const params = johnnessHistoricalAnthropicBuildParams(model, context, isOAuthToken, options);
29
+ const rules = JOHNNESS_ANTHROPIC_RULES[model?.id];
30
+ // Thinking off on a model whose thinking is on by default: say so (no effort is sent, so the
31
+ // provider default effort applies; disabled is only rejected at xhigh/max).
32
+ if (rules?.thinkingOff === "disabled" && !(options?.thinkingEnabled && model.reasoning) && params.thinking === undefined) params.thinking = { type: "disabled" };
33
+ if (rules?.temperature === "drop") {
34
+ delete params.temperature;
35
+ delete params.top_p;
36
+ delete params.top_k;
37
+ }
38
+ return params;
39
+ };
40
+ /* JOHNNESS_MODELS_MASTER:END */
10
41
  /**
11
42
  * Resolve cache retention preference.
12
43
  * Defaults to "short" and uses PI_CACHE_RETENTION for backward compatibility.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "johns-harness",
3
- "version": "2026.9.39",
3
+ "version": "2026.9.40",
4
4
  "description": "John's Harness: a production agent harness that runs autonomous coding agents as one cooperative swarm.",
5
5
  "keywords": [
6
6
  "ai-agents",
@@ -13,6 +13,11 @@
13
13
  // catalog model; johnnessApplyModelRules() enforces efforts/temperature on the wire.
14
14
  // - providers/openai-responses.js, providers/openai-codex-responses.js (vendor + installed) and
15
15
  // family 53's reviewed Responses snapshot: call johnnessApplyModelRules() on every payload.
16
+ // - providers/anthropic.js (vendor + installed): anthropic-messages models with harness.thinking
17
+ // "adaptive", harness.thinkingOff "disabled", harness.efforts or harness.temperature "drop" get
18
+ // adaptive thinking + output_config.effort, thinking.type "disabled" when thinking is off, and a
19
+ // dropped temperature/top_p/top_k from the master (first use: Claude Haiku 5.5, 2026-10-08);
20
+ // every other model keeps the historical adapter gates.
16
21
  // - 14 DEFAULT_MODEL_ALIASES copies: one generated Object.assign block (the full shipped table).
17
22
  // - 12 XHIGH_MODEL_REFS copies: the command-level /think xhigh gate, rebuilt from the master.
18
23
  // Older hand-written literals stay byte-for-byte in place (older exact-replay families hash them);
@@ -55,6 +60,12 @@ export const XHIGH12 = [
55
60
  const EFFORTS = ["none", "minimal", "low", "medium", "high", "xhigh", "max"];
56
61
  const TEMPERATURE_RULES = ["drop", "drop-unless-effort-none"];
57
62
  const RUNTIME_RULE_KEYS = ["efforts", "temperature"];
63
+ // Anthropic Messages: output_config.effort levels, the only thinking mode the master can request
64
+ // (manual budget thinking is the adapter's historical default) and the only temperature rule.
65
+ const ANTHROPIC_API = "anthropic-messages";
66
+ const ANTHROPIC_EFFORTS = ["low", "medium", "high", "xhigh", "max"];
67
+ const ANTHROPIC_RULE_KEYS = ["thinking", "thinkingOff", "efforts", "temperature"];
68
+ const ANTHROPIC_IMPORT = 'import { transformMessages } from "./transform-messages.js";\n';
58
69
 
59
70
  export function stripGenerated(text) {
60
71
  return text.replace(BLOCK_RE, "");
@@ -91,9 +102,30 @@ export function validateMaster(master) {
91
102
  if (h.efforts !== undefined && (!Array.isArray(h.efforts) || h.efforts.length === 0 || h.efforts.some((e) => !EFFORTS.includes(e)))) problems.push(`${ref}: harness.efforts must list ${EFFORTS.join("|")}`);
92
103
  if (h.temperature !== undefined && !TEMPERATURE_RULES.includes(h.temperature)) problems.push(`${ref}: harness.temperature must be ${TEMPERATURE_RULES.join(" or ")}`);
93
104
  if (h.xhigh === true && h.efforts && !h.efforts.includes("xhigh")) problems.push(`${ref}: harness.xhigh true but efforts omit xhigh`);
105
+ if (h.thinking !== undefined && entry.api !== ANTHROPIC_API) problems.push(`${ref}: harness.thinking applies to anthropic-messages models only`);
106
+ else if (h.thinking !== undefined && h.thinking !== "adaptive") problems.push(`${ref}: harness.thinking must be adaptive (omit it for the adapter's historical thinking mode)`);
107
+ if (h.thinkingOff !== undefined && entry.api !== ANTHROPIC_API) problems.push(`${ref}: harness.thinkingOff applies to anthropic-messages models only`);
108
+ else if (h.thinkingOff !== undefined && h.thinkingOff !== "disabled") problems.push(`${ref}: harness.thinkingOff must be disabled (omit it to leave the provider default when thinking is off)`);
109
+ if (entry.api === ANTHROPIC_API) {
110
+ if (h.temperature !== undefined && h.temperature !== "drop") problems.push(`${ref}: anthropic-messages harness.temperature must be drop`);
111
+ if (h.efforts !== undefined && (!Array.isArray(h.efforts) || h.efforts.some((e) => !ANTHROPIC_EFFORTS.includes(e)))) problems.push(`${ref}: anthropic-messages harness.efforts must list ${ANTHROPIC_EFFORTS.join("|")}`);
112
+ if (h.efforts !== undefined && h.thinking !== "adaptive") problems.push(`${ref}: anthropic-messages harness.efforts needs harness.thinking adaptive (effort only rides adaptive thinking)`);
113
+ }
94
114
  }
95
115
  }
96
116
  }
117
+ // The Anthropic adapter's gates take a bare model id, so one id must carry one rule set on every
118
+ // anthropic-messages provider that serves it.
119
+ const anthropicSeen = new Map();
120
+ for (const [provider, models] of Object.entries(master.providers)) {
121
+ for (const [id, entry] of Object.entries(models)) {
122
+ if (entry?.api !== ANTHROPIC_API) continue;
123
+ const rules = JSON.stringify(anthropicRuleOf(entry) ?? {});
124
+ const prior = anthropicSeen.get(id);
125
+ if (prior && prior.rules !== rules) problems.push(`${id}: Anthropic rules differ between anthropic-messages providers (${prior.provider}, ${provider})`);
126
+ else if (!prior) anthropicSeen.set(id, { provider, rules });
127
+ }
128
+ }
97
129
  for (const [alias, ref] of Object.entries(master.aliases ?? {})) {
98
130
  if (!refs.has(ref)) problems.push(`alias ${alias} -> ${ref} is not in the master catalog`);
99
131
  if (master.latest?.[alias]) problems.push(`alias ${alias} is governed by a latest rule; remove it from aliases`);
@@ -172,6 +204,25 @@ export function rulesOf(master) {
172
204
  }
173
205
  return rules;
174
206
  }
207
+ // Anthropic rules of one entry (anthropic-messages only): the harness keys the adapter acts on.
208
+ function anthropicRuleOf(entry) {
209
+ if (entry?.api !== ANTHROPIC_API) return undefined;
210
+ const h = entry.harness ?? {};
211
+ const rule = {};
212
+ for (const key of ANTHROPIC_RULE_KEYS) if (h[key] !== undefined) rule[key] = h[key];
213
+ return Object.keys(rule).length ? rule : undefined;
214
+ }
215
+ // Bare model id -> rules, for providers/anthropic.js (its gates see model ids, not provider refs).
216
+ export function anthropicRulesOf(master) {
217
+ const rules = {};
218
+ for (const models of Object.values(master.providers)) {
219
+ for (const [id, entry] of Object.entries(models)) {
220
+ const rule = anthropicRuleOf(entry);
221
+ if (rule && !rules[id]) rules[id] = rule;
222
+ }
223
+ }
224
+ return rules;
225
+ }
175
226
  export function xhighRefsOf(master) {
176
227
  const refs = [];
177
228
  for (const [provider, models] of Object.entries(master.providers)) for (const [id, entry] of Object.entries(models)) if (entry.harness?.xhigh === true) refs.push(`${provider}/${id}`);
@@ -240,6 +291,42 @@ const adapterBlock = (builder) => HEAD("wire rules") + [
240
291
  ` return johnnessApplyModelRules(model, options, johnnessHistorical_${builder}(model, context, options));`,
241
292
  "};",
242
293
  ].join("\n") + "\n" + TAIL();
294
+ // providers/anthropic.js: master-driven adaptive thinking, effort and temperature for the models the
295
+ // master gives Anthropic rules; every other model falls through to the historical gates. Wrapper
296
+ // names differ from the declarations on purpose (tests and replays find `function <name>(`).
297
+ function anthropicBlock(master) {
298
+ return HEAD("anthropic rules") + [
299
+ `const JOHNNESS_ANTHROPIC_RULES = ${JSON.stringify(anthropicRulesOf(master))};`,
300
+ `const JOHNNESS_ANTHROPIC_EFFORT_ORDER = ${JSON.stringify(ANTHROPIC_EFFORTS)};`,
301
+ "const johnnessHistoricalSupportsAdaptiveThinking = supportsAdaptiveThinking;",
302
+ "supportsAdaptiveThinking = function johnnessMasterSupportsAdaptiveThinking(modelId) {",
303
+ ' return JOHNNESS_ANTHROPIC_RULES[modelId]?.thinking === "adaptive" || johnnessHistoricalSupportsAdaptiveThinking(modelId);',
304
+ "};",
305
+ "const johnnessHistoricalMapThinkingLevelToEffort = mapThinkingLevelToEffort;",
306
+ "mapThinkingLevelToEffort = function johnnessMasterMapThinkingLevelToEffort(level, modelId) {",
307
+ " const efforts = JOHNNESS_ANTHROPIC_RULES[modelId]?.efforts;",
308
+ " if (!efforts) return johnnessHistoricalMapThinkingLevelToEffort(level, modelId);",
309
+ ' const wanted = level === "minimal" ? "low" : JOHNNESS_ANTHROPIC_EFFORT_ORDER.includes(level) ? level : "high";',
310
+ " if (efforts.includes(wanted)) return wanted;",
311
+ " const accepted = JOHNNESS_ANTHROPIC_EFFORT_ORDER.filter((effort) => efforts.includes(effort));",
312
+ " return accepted.find((effort) => JOHNNESS_ANTHROPIC_EFFORT_ORDER.indexOf(effort) >= JOHNNESS_ANTHROPIC_EFFORT_ORDER.indexOf(wanted)) ?? accepted.at(-1);",
313
+ "};",
314
+ "const johnnessHistoricalAnthropicBuildParams = buildParams;",
315
+ "buildParams = function johnnessMasterAnthropicBuildParams(model, context, isOAuthToken, options) {",
316
+ " const params = johnnessHistoricalAnthropicBuildParams(model, context, isOAuthToken, options);",
317
+ " const rules = JOHNNESS_ANTHROPIC_RULES[model?.id];",
318
+ " // Thinking off on a model whose thinking is on by default: say so (no effort is sent, so the",
319
+ " // provider default effort applies; disabled is only rejected at xhigh/max).",
320
+ ' if (rules?.thinkingOff === "disabled" && !(options?.thinkingEnabled && model.reasoning) && params.thinking === undefined) params.thinking = { type: "disabled" };',
321
+ ' if (rules?.temperature === "drop") {',
322
+ " delete params.temperature;",
323
+ " delete params.top_p;",
324
+ " delete params.top_k;",
325
+ " }",
326
+ " return params;",
327
+ "};",
328
+ ].join("\n") + "\n" + TAIL();
329
+ }
243
330
  function aliasBlock(master) {
244
331
  // A plain assignment loop (not Object.assign): older verifier checks count the literal blocks.
245
332
  return HEAD("aliases") + `const JOHNNESS_MASTER_ALIASES = ${JSON.stringify(resolvedAliases(master))};\n`
@@ -290,6 +377,7 @@ export function targets(master) {
290
377
  out.push({ rel: `${base}/models.generated.js`, edits: [appendAfterLast("\n};\n", catalogBlock(master))] });
291
378
  out.push({ rel: `${base}/models.js`, edits: [insertAfter('import { MODELS } from "./models.generated.js";\n', RULES_BLOCK)] });
292
379
  out.push({ rel: `${base}/providers/openai-codex-responses.js`, edits: [insertAfter('import { supportsXhigh } from "../models.js";\n', adapterBlock("buildRequestBody"))] });
380
+ out.push({ rel: `${base}/providers/anthropic.js`, edits: [insertAfter(ANTHROPIC_IMPORT, anthropicBlock(master))] });
293
381
  }
294
382
  for (const rel of [`${PI_VENDOR}/providers/openai-responses.js`, `${PI_INSTALLED}/providers/openai-responses.js`, SNAPSHOT]) {
295
383
  out.push({ rel, edits: [insertAfter('import { supportsXhigh } from "../models.js";\n', adapterBlock("buildParams"))] });
@@ -13752,8 +13752,9 @@ const JOHNNESS_MODELS_MASTER = {
13752
13752
  "claude-3-opus-20240229":{"id":"claude-3-opus-20240229","name":"Claude Opus 3","api":"anthropic-messages","provider":"anthropic","baseUrl":"https://api.anthropic.com","reasoning":false,"input":["text","image"],"cost":{"input":15,"output":75,"cacheRead":1.5,"cacheWrite":18.75},"contextWindow":200000,"maxTokens":4096},
13753
13753
  "claude-3-sonnet-20240229":{"id":"claude-3-sonnet-20240229","name":"Claude Sonnet 3","api":"anthropic-messages","provider":"anthropic","baseUrl":"https://api.anthropic.com","reasoning":false,"input":["text","image"],"cost":{"input":3,"output":15,"cacheRead":0.3,"cacheWrite":0.3},"contextWindow":200000,"maxTokens":4096},
13754
13754
  "claude-fable-5-1":{"id":"claude-fable-5-1","name":"Claude Fable 5.1","api":"anthropic-messages","provider":"anthropic","baseUrl":"https://api.anthropic.com","reasoning":true,"input":["text","image"],"cost":{"input":10,"output":50,"cacheRead":0.25,"cacheWrite":12.5},"contextWindow":300000,"maxTokens":128000},
13755
- "claude-sonnet-5-5":{"id":"claude-sonnet-5-5","name":"Claude Sonnet 5.5","api":"anthropic-messages","provider":"anthropic","baseUrl":"https://api.anthropic.com","reasoning":true,"input":["text","image"],"cost":{"input":2,"output":10,"cacheRead":0.2,"cacheWrite":2.5},"contextWindow":1000000,"maxTokens":128000},
13755
+ "claude-sonnet-5-5":{"id":"claude-sonnet-5-5","name":"Claude Sonnet 5.5","api":"anthropic-messages","provider":"anthropic","baseUrl":"https://api.anthropic.com","reasoning":true,"input":["text","image"],"cost":{"input":2,"output":10,"cacheRead":0.1,"cacheWrite":2.5},"contextWindow":1000000,"maxTokens":128000},
13756
13756
  "claude-opus-5-5":{"id":"claude-opus-5-5","name":"Claude Opus 5.5","api":"anthropic-messages","provider":"anthropic","baseUrl":"https://api.anthropic.com","reasoning":true,"input":["text","image"],"cost":{"input":4,"output":20,"cacheRead":0.2,"cacheWrite":5},"contextWindow":500000,"maxTokens":128000},
13757
+ "claude-haiku-5-5":{"id":"claude-haiku-5-5","name":"Claude Haiku 5.5","api":"anthropic-messages","provider":"anthropic","baseUrl":"https://api.anthropic.com","reasoning":true,"input":["text","image"],"cost":{"input":0.1,"output":0.5,"cacheRead":0.01,"cacheWrite":0.125},"contextWindow":1000000,"maxTokens":128000},
13757
13758
  "claude-opus-5":{"id":"claude-opus-5","name":"Claude Opus 5","api":"anthropic-messages","provider":"anthropic","baseUrl":"https://api.anthropic.com","reasoning":true,"input":["text","image"],"cost":{"input":5,"output":25,"cacheRead":0.5,"cacheWrite":6.25},"contextWindow":300000,"maxTokens":128000},
13758
13759
  "claude-sonnet-5":{"id":"claude-sonnet-5","name":"Claude Sonnet 5","api":"anthropic-messages","provider":"anthropic","baseUrl":"https://api.anthropic.com","reasoning":true,"input":["text","image"],"cost":{"input":2,"output":10,"cacheRead":0.2,"cacheWrite":2.5},"contextWindow":1000000,"maxTokens":128000},
13759
13760
  "claude-fable-5":{"id":"claude-fable-5","name":"Claude Fable 5","api":"anthropic-messages","provider":"anthropic","baseUrl":"https://api.anthropic.com","reasoning":true,"input":["text","image"],"cost":{"input":10,"output":50,"cacheRead":1,"cacheWrite":12.5},"contextWindow":300000,"maxTokens":128000},
@@ -14492,6 +14493,6 @@ const JOHNNESS_MODELS_MASTER = {
14492
14493
  };
14493
14494
  for (const provider of Object.keys(MODELS)) delete MODELS[provider];
14494
14495
  Object.assign(MODELS, JOHNNESS_MODELS_MASTER);
14495
- export const JOHNNESS_MODEL_RULES = {"deepseek/deepseek-flash":{"xhigh":true},"deepseek/deepseek-v4-pro":{"xhigh":true},"meta/muse-spark-1.3":{"xhigh":true},"meta/muse-spark-1.2":{"xhigh":true},"anthropic/claude-fable-5-1":{"xhigh":true},"anthropic/claude-sonnet-5-5":{"xhigh":true},"anthropic/claude-opus-5-5":{"xhigh":true},"anthropic/claude-opus-5":{"xhigh":true},"anthropic/claude-sonnet-5":{"xhigh":true},"anthropic/claude-fable-5":{"xhigh":true},"anthropic/claude-opus-4-6":{"xhigh":true},"azure-openai-responses/gpt-5.2":{"xhigh":true},"azure-openai-responses/gpt-5.2-chat-latest":{"xhigh":true},"azure-openai-responses/gpt-5.2-codex":{"xhigh":true},"azure-openai-responses/gpt-5.2-pro":{"xhigh":true},"azure-openai-responses/gpt-5.3-codex":{"xhigh":true},"azure-openai-responses/gpt-5.3-codex-spark":{"xhigh":true},"github-copilot/claude-opus-4.6":{"xhigh":true},"github-copilot/gpt-5.2":{"xhigh":true},"github-copilot/gpt-5.2-codex":{"xhigh":true},"openai/gpt-5.2":{"xhigh":true},"openai/gpt-5.2-chat-latest":{"xhigh":true},"openai/gpt-5.2-codex":{"xhigh":true},"openai/gpt-5.2-pro":{"xhigh":true},"openai/gpt-5.3-codex":{"xhigh":true},"openai/gpt-5.3-codex-spark":{"xhigh":true},"openai/gpt-6-astra":{"xhigh":true,"efforts":["low","medium","high","xhigh","max"],"temperature":"drop"},"openai/gpt-6.1-sol":{"xhigh":true,"efforts":["low","medium","high","xhigh","max"],"temperature":"drop"},"openai/gpt-6-sol":{"xhigh":true,"efforts":["none","low","medium","high","xhigh","max"],"temperature":"drop-unless-effort-none"},"openai/gpt-6-luna":{"xhigh":true,"efforts":["none","low","medium","high","xhigh","max"],"temperature":"drop-unless-effort-none"},"openai/gpt-5.6-sol":{"xhigh":true,"temperature":"drop-unless-effort-none"},"openai/gpt-5.6-terra":{"xhigh":true,"temperature":"drop-unless-effort-none"},"openai/gpt-5.6-luna":{"xhigh":true,"temperature":"drop-unless-effort-none"},"openai-codex/gpt-5.2":{"xhigh":true},"openai-codex/gpt-5.2-codex":{"xhigh":true},"openai-codex/gpt-5.3-codex":{"xhigh":true},"openai-codex/gpt-5.3-codex-spark":{"xhigh":true},"openai-codex/gpt-6.1-sol":{"xhigh":true,"efforts":["low","medium","high","xhigh","max"],"temperature":"drop"},"openai-codex/gpt-6-sol":{"xhigh":true,"efforts":["none","low","medium","high","xhigh","max"],"temperature":"drop-unless-effort-none"},"openai-codex/gpt-6-luna":{"xhigh":true,"efforts":["none","low","medium","high","xhigh","max"],"temperature":"drop-unless-effort-none"},"openai-codex/gpt-6-astra":{"xhigh":true,"efforts":["low","medium","high","xhigh","max"],"temperature":"drop"},"openai-codex/gpt-5.6-sol":{"xhigh":true,"temperature":"drop-unless-effort-none"},"openai-codex/gpt-5.6-terra":{"xhigh":true,"temperature":"drop-unless-effort-none"},"openai-codex/gpt-5.6-luna":{"xhigh":true,"temperature":"drop-unless-effort-none"},"opencode/claude-opus-4-6":{"xhigh":true},"opencode/gpt-5.2":{"xhigh":true},"opencode/gpt-5.2-codex":{"xhigh":true},"opencode/gpt-5.3-codex":{"xhigh":true},"openrouter/openai/gpt-5.2":{"xhigh":true},"openrouter/openai/gpt-5.2-chat":{"xhigh":true},"openrouter/openai/gpt-5.2-codex":{"xhigh":true},"openrouter/openai/gpt-5.2-pro":{"xhigh":true},"openrouter/openai/gpt-5.3-codex":{"xhigh":true},"vercel-ai-gateway/anthropic/claude-opus-4.6":{"xhigh":true},"vercel-ai-gateway/openai/gpt-5.2":{"xhigh":true},"vercel-ai-gateway/openai/gpt-5.2-chat":{"xhigh":true},"vercel-ai-gateway/openai/gpt-5.2-codex":{"xhigh":true},"vercel-ai-gateway/openai/gpt-5.2-pro":{"xhigh":true},"vercel-ai-gateway/openai/gpt-5.3-codex":{"xhigh":true},"xai/grok-4.7":{"xhigh":true},"xai/grok-4.6":{"xhigh":true}};
14496
+ export const JOHNNESS_MODEL_RULES = {"deepseek/deepseek-flash":{"xhigh":true},"deepseek/deepseek-v4-pro":{"xhigh":true},"meta/muse-spark-1.3":{"xhigh":true},"meta/muse-spark-1.2":{"xhigh":true},"anthropic/claude-fable-5-1":{"xhigh":true},"anthropic/claude-sonnet-5-5":{"xhigh":true},"anthropic/claude-opus-5-5":{"xhigh":true},"anthropic/claude-haiku-5-5":{"xhigh":true,"efforts":["low","medium","high","xhigh","max"],"temperature":"drop"},"anthropic/claude-opus-5":{"xhigh":true},"anthropic/claude-sonnet-5":{"xhigh":true},"anthropic/claude-fable-5":{"xhigh":true},"anthropic/claude-opus-4-6":{"xhigh":true},"azure-openai-responses/gpt-5.2":{"xhigh":true},"azure-openai-responses/gpt-5.2-chat-latest":{"xhigh":true},"azure-openai-responses/gpt-5.2-codex":{"xhigh":true},"azure-openai-responses/gpt-5.2-pro":{"xhigh":true},"azure-openai-responses/gpt-5.3-codex":{"xhigh":true},"azure-openai-responses/gpt-5.3-codex-spark":{"xhigh":true},"github-copilot/claude-opus-4.6":{"xhigh":true},"github-copilot/gpt-5.2":{"xhigh":true},"github-copilot/gpt-5.2-codex":{"xhigh":true},"openai/gpt-5.2":{"xhigh":true},"openai/gpt-5.2-chat-latest":{"xhigh":true},"openai/gpt-5.2-codex":{"xhigh":true},"openai/gpt-5.2-pro":{"xhigh":true},"openai/gpt-5.3-codex":{"xhigh":true},"openai/gpt-5.3-codex-spark":{"xhigh":true},"openai/gpt-6-astra":{"xhigh":true,"efforts":["low","medium","high","xhigh","max"],"temperature":"drop"},"openai/gpt-6.1-sol":{"xhigh":true,"efforts":["low","medium","high","xhigh","max"],"temperature":"drop"},"openai/gpt-6-sol":{"xhigh":true,"efforts":["none","low","medium","high","xhigh","max"],"temperature":"drop-unless-effort-none"},"openai/gpt-6-luna":{"xhigh":true,"efforts":["none","low","medium","high","xhigh","max"],"temperature":"drop-unless-effort-none"},"openai/gpt-5.6-sol":{"xhigh":true,"temperature":"drop-unless-effort-none"},"openai/gpt-5.6-terra":{"xhigh":true,"temperature":"drop-unless-effort-none"},"openai/gpt-5.6-luna":{"xhigh":true,"temperature":"drop-unless-effort-none"},"openai-codex/gpt-5.2":{"xhigh":true},"openai-codex/gpt-5.2-codex":{"xhigh":true},"openai-codex/gpt-5.3-codex":{"xhigh":true},"openai-codex/gpt-5.3-codex-spark":{"xhigh":true},"openai-codex/gpt-6.1-sol":{"xhigh":true,"efforts":["low","medium","high","xhigh","max"],"temperature":"drop"},"openai-codex/gpt-6-sol":{"xhigh":true,"efforts":["none","low","medium","high","xhigh","max"],"temperature":"drop-unless-effort-none"},"openai-codex/gpt-6-luna":{"xhigh":true,"efforts":["none","low","medium","high","xhigh","max"],"temperature":"drop-unless-effort-none"},"openai-codex/gpt-6-astra":{"xhigh":true,"efforts":["low","medium","high","xhigh","max"],"temperature":"drop"},"openai-codex/gpt-5.6-sol":{"xhigh":true,"temperature":"drop-unless-effort-none"},"openai-codex/gpt-5.6-terra":{"xhigh":true,"temperature":"drop-unless-effort-none"},"openai-codex/gpt-5.6-luna":{"xhigh":true,"temperature":"drop-unless-effort-none"},"opencode/claude-opus-4-6":{"xhigh":true},"opencode/gpt-5.2":{"xhigh":true},"opencode/gpt-5.2-codex":{"xhigh":true},"opencode/gpt-5.3-codex":{"xhigh":true},"openrouter/openai/gpt-5.2":{"xhigh":true},"openrouter/openai/gpt-5.2-chat":{"xhigh":true},"openrouter/openai/gpt-5.2-codex":{"xhigh":true},"openrouter/openai/gpt-5.2-pro":{"xhigh":true},"openrouter/openai/gpt-5.3-codex":{"xhigh":true},"vercel-ai-gateway/anthropic/claude-opus-4.6":{"xhigh":true},"vercel-ai-gateway/openai/gpt-5.2":{"xhigh":true},"vercel-ai-gateway/openai/gpt-5.2-chat":{"xhigh":true},"vercel-ai-gateway/openai/gpt-5.2-codex":{"xhigh":true},"vercel-ai-gateway/openai/gpt-5.2-pro":{"xhigh":true},"vercel-ai-gateway/openai/gpt-5.3-codex":{"xhigh":true},"xai/grok-4.7":{"xhigh":true},"xai/grok-4.6":{"xhigh":true}};
14496
14497
  /* JOHNNESS_MODELS_MASTER:END */
14497
14498
  //# sourceMappingURL=models.generated.js.map
@@ -7,6 +7,37 @@ import { sanitizeSurrogates } from "../utils/sanitize-unicode.js";
7
7
  import { buildCopilotDynamicHeaders, hasCopilotVisionInput } from "./github-copilot-headers.js";
8
8
  import { adjustMaxTokensForThinking, buildBaseOptions } from "./simple-options.js";
9
9
  import { transformMessages } from "./transform-messages.js";
10
+ /* JOHNNESS_MODELS_MASTER:BEGIN anthropic rules (generated from models/models.json by scripts/models-sync.mjs; edit the master, not this block) */
11
+ const JOHNNESS_ANTHROPIC_RULES = {"claude-haiku-5-5":{"thinking":"adaptive","thinkingOff":"disabled","efforts":["low","medium","high","xhigh","max"],"temperature":"drop"}};
12
+ const JOHNNESS_ANTHROPIC_EFFORT_ORDER = ["low","medium","high","xhigh","max"];
13
+ const johnnessHistoricalSupportsAdaptiveThinking = supportsAdaptiveThinking;
14
+ supportsAdaptiveThinking = function johnnessMasterSupportsAdaptiveThinking(modelId) {
15
+ return JOHNNESS_ANTHROPIC_RULES[modelId]?.thinking === "adaptive" || johnnessHistoricalSupportsAdaptiveThinking(modelId);
16
+ };
17
+ const johnnessHistoricalMapThinkingLevelToEffort = mapThinkingLevelToEffort;
18
+ mapThinkingLevelToEffort = function johnnessMasterMapThinkingLevelToEffort(level, modelId) {
19
+ const efforts = JOHNNESS_ANTHROPIC_RULES[modelId]?.efforts;
20
+ if (!efforts) return johnnessHistoricalMapThinkingLevelToEffort(level, modelId);
21
+ const wanted = level === "minimal" ? "low" : JOHNNESS_ANTHROPIC_EFFORT_ORDER.includes(level) ? level : "high";
22
+ if (efforts.includes(wanted)) return wanted;
23
+ const accepted = JOHNNESS_ANTHROPIC_EFFORT_ORDER.filter((effort) => efforts.includes(effort));
24
+ return accepted.find((effort) => JOHNNESS_ANTHROPIC_EFFORT_ORDER.indexOf(effort) >= JOHNNESS_ANTHROPIC_EFFORT_ORDER.indexOf(wanted)) ?? accepted.at(-1);
25
+ };
26
+ const johnnessHistoricalAnthropicBuildParams = buildParams;
27
+ buildParams = function johnnessMasterAnthropicBuildParams(model, context, isOAuthToken, options) {
28
+ const params = johnnessHistoricalAnthropicBuildParams(model, context, isOAuthToken, options);
29
+ const rules = JOHNNESS_ANTHROPIC_RULES[model?.id];
30
+ // Thinking off on a model whose thinking is on by default: say so (no effort is sent, so the
31
+ // provider default effort applies; disabled is only rejected at xhigh/max).
32
+ if (rules?.thinkingOff === "disabled" && !(options?.thinkingEnabled && model.reasoning) && params.thinking === undefined) params.thinking = { type: "disabled" };
33
+ if (rules?.temperature === "drop") {
34
+ delete params.temperature;
35
+ delete params.top_p;
36
+ delete params.top_k;
37
+ }
38
+ return params;
39
+ };
40
+ /* JOHNNESS_MODELS_MASTER:END */
10
41
  /**
11
42
  * Resolve cache retention preference.
12
43
  * Defaults to "short" and uses PI_CACHE_RETENTION for backward compatibility.