johns-harness 2026.9.39 → 2026.9.41

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 (39) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/README.md +1 -1
  3. package/dist/auth-profiles-5CHn7vq1.js +1 -1
  4. package/dist/channels/plugins/actions/telegram.js +1 -1
  5. package/dist/config-koj5M_EO.js +1 -1
  6. package/dist/daemon-cli.js +1 -1
  7. package/dist/image-generate.js +45 -21
  8. package/dist/model-selection-BGlGpPgM.js +1 -1
  9. package/dist/model-selection-BU6wl1le.js +1 -1
  10. package/dist/model-selection-L7RMwsG-.js +1 -1
  11. package/dist/plugin-sdk/config-4Fgm-yEH.js +1 -1
  12. package/dist/plugin-sdk/config-Di-lyCdh.js +1 -1
  13. package/dist/plugin-sdk/discord.js +1 -1
  14. package/dist/plugin-sdk/mattermost.js +1 -1
  15. package/dist/plugin-sdk/model-auth-CX9cPHdC.js +1 -1
  16. package/dist/plugin-sdk/model-auth-Ciehz0x5.js +1 -1
  17. package/dist/plugin-sdk/model-auth-DVyo6JSX.js +1 -1
  18. package/dist/plugin-sdk/model-auth-kiHYHGrs.js +1 -1
  19. package/dist/plugin-sdk/model-selection-Dbj4jDYM.js +1 -1
  20. package/dist/plugin-sdk/thinking-B-rIrY_n.js +1 -1
  21. package/dist/plugin-sdk/thinking-CopbP_Cn.js +1 -1
  22. package/dist/plugin-sdk/thinking-WQ4Zq8Nl.js +1 -1
  23. package/dist/plugin-sdk/thinking-WXqkGljb.js +1 -1
  24. package/dist/plugin-sdk/thinking-_uXqFaFO.js +1 -1
  25. package/dist/plugin-sdk/thinking-pTdxk2dr.js +1 -1
  26. package/dist/thinking-B5B36ffe.js +1 -1
  27. package/dist/thinking-BYwvlJ3S.js +1 -1
  28. package/dist/thinking-CAzdgmNV.js +1 -1
  29. package/dist/thinking-DykY2Fzj.js +1 -1
  30. package/docs/MODELS.md +16 -0
  31. package/docs/PATCHES.md +10 -0
  32. package/models/models.json +9 -5
  33. package/node_modules/@mariozechner/pi-ai/dist/models.generated.js +3 -2
  34. package/node_modules/@mariozechner/pi-ai/dist/providers/anthropic.js +31 -0
  35. package/package.json +1 -1
  36. package/scripts/check-models-master.mjs +10 -1
  37. package/scripts/models-sync.mjs +106 -0
  38. package/vendor/patched-deps/@mariozechner/pi-ai/dist/models.generated.js +3 -2
  39. package/vendor/patched-deps/@mariozechner/pi-ai/dist/providers/anthropic.js +31 -0
@@ -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,8 +14,10 @@ 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 |
20
+ | Image aliases (every alias whose target has `imageGeneration: true`: `nano-banana`, `banana`, `nano-banana-pro`, `image`) | `dist/image-generate.js` (the `image_generate` tool's `model` param) |
19
21
 
20
22
  Generated code sits between `/* JOHNNESS_MODELS_MASTER:BEGIN ... */` and `/* JOHNNESS_MODELS_MASTER:END */`
21
23
  markers. Never edit inside them. The older hand-written literals stay in place byte for byte
@@ -33,6 +35,20 @@ markers. Never edit inside them. The older hand-written literals stay in place b
33
35
  API accepts; others are sent as the nearest accepted one. `harness.temperature`: `"drop"`
34
36
  (always rejected) or `"drop-unless-effort-none"`. Put the source URL and date in
35
37
  `harness.source` / `harness.checked`.
38
+ - Anthropic (`anthropic-messages`) entries: `harness.thinking: "adaptive"` makes the adapter send
39
+ `thinking: {type: "adaptive"}` + `output_config.effort` instead of manual `budget_tokens` (use it
40
+ when the model rejects `thinking.type: "enabled"`); `harness.thinkingOff: "disabled"` sends
41
+ `thinking: {type: "disabled"}` when `/think` is off (for models whose thinking is on by default);
42
+ `harness.efforts` lists the accepted `output_config.effort` levels (low..max; `minimal` is sent as
43
+ `low`); `harness.temperature: "drop"` strips temperature/top_p/top_k. Models without these keys
44
+ keep the adapter's historical gates. Probe `enabled`, `disabled` and `temperature` live before
45
+ setting them (Claude Haiku 5.5, 2026-10-08, was the first user).
46
+ - `cost` is flat. When a model's official price is tiered (for example by prompt length), use the
47
+ base tier and write the other tier in `harness.notes` and the CHANGELOG.
48
+ - Image models (`imageGeneration: true`, `chat: false`) are reached through `image_generate`. Point a
49
+ plain alias in `aliases` at one (`nano-banana` -> Nano Banana 2.1 since 2026.9.41) and the sync
50
+ copies it into the tool's alias table; when an alias moves, keep the old model on a versioned
51
+ alias (`nano-banana-pro`).
36
52
  - Shorthands move by themselves: a `latest` rule points its alias at the highest version in the
37
53
  line. If a shorthand moved, add a versioned alias for the model it left (for example `sol6`),
38
54
  or the sync refuses to run.
package/docs/PATCHES.md CHANGED
@@ -2888,3 +2888,13 @@ John's rule: model updates are one change to one master file. `models/models.jso
2888
2888
  - **Aliases.** `sol` and `gpt` -> `openai-codex/gpt-6.1-sol`; new `sol6` -> `openai-codex/gpt-6-sol`; `sol56`, `luna`, `luna56`, `astra` unchanged. `gpt-6.1-luna` is not on the API (`model_not_found` on 2026-09-29), so `luna` stays on GPT-6 Luna.
2889
2889
  - Verifier 83.1-83.6 check the tree against the master; `tests/models-master.test.mjs` does the same from the master (no per-model strings).
2890
2890
  - Roll back with `npm i -g johns-harness@2026.9.37`.
2891
+
2892
+ ### Nano Banana 2.1 as `nano-banana` (2026.9.41)
2893
+
2894
+ John's call (2026-10-11): Nano Banana 2.1 is better than Pro, so the shorthand should point at it. Sources checked 2026-10-11: <https://ai.google.dev/gemini-api/docs/models/gemini-nano-banana-2.1>, the image generation guide, `/pricing`, `/changelog` (GA 2026-10-06; `gemini-3.1-flash-image` deprecated, migrate to `gemini-nano-banana-2.1`), `/deprecations` and the DeepMind model card <https://deepmind.google/models/model-cards/nano-banana-2-1/> (Overall Preference Elo 1050 thinking / 1015 no thinking vs 935 for Gemini 3 Pro Image; Pro trails on every listed T2I and editing eval). `GET /v1beta/models/gemini-nano-banana-2.1` still reports 65,536 / 65,536 tokens (the model page says 131,072 / 32,768); the card limits stay on the API values from 2026.9.39.
2895
+
2896
+ - **Aliases** (master `aliases`): `nano-banana`, `banana` -> `google/gemini-nano-banana-2.1`; new `nano-banana-pro` -> `google/gemini-3-pro-image-preview`. `image` unchanged.
2897
+ - **image_generate**: `NANO_BANANA_MODEL_ID` is now `gemini-nano-banana-2.1`; `NANO_BANANA_PRO_MODEL_ID`/`NANO_BANANA_PRO_REF` name Pro. The hand-written alias table is followed by a generated `image aliases` block (models-sync target 38) that copies every shipped alias whose target has `imageGeneration: true`. New `imageSize` param (`1K`/`2K`/`4K` on `generationConfig.imageConfig.imageSize`), up to 14 input images when the model is a Google one (4 otherwise), and aspect ratios `1:4`, `4:1`, `1:8`, `8:1`. Default chain unchanged (GPT Image 2, subscription first); Google stays opt-in.
2898
+ - **Checks**: `check-models-master.mjs` loads the tool and compares its aliases with the master; verifier 83.7 (generated block present) and 83.8 (resolution, default chain, imageSize, 14 refs). `tests/nano-banana-catalog.test.mjs` covers the new defaults, Pro routing, imageSize, 14 references, panoramic ratios and master/tool agreement; its alias loader now reads through the generated master block.
2899
+ - **Live (2026-10-11)**, real Gemini API through the repo's `image_generate`: generation (`model: "nano-banana"`, 16:9) HTTP 200, 1376x768 JPEG, 1,120 image tokens + 1,294 thought tokens; edit of that image HTTP 200, composition kept, requested on-screen text legible.
2900
+ - Roll back with `npm i -g johns-harness@2026.9.40`.
@@ -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$"},
@@ -25,11 +26,13 @@
25
26
  "gemini-flash": "google/gemini-3.8-flash",
26
27
  "gemini-flash-lite": "google/gemini-2.5-flash-lite",
27
28
  "flash": "google/gemini-3.8-flash",
28
- "banana": "google/gemini-3-pro-image-preview",
29
- "nano-banana": "google/gemini-3-pro-image-preview",
29
+ "banana": "google/gemini-nano-banana-2.1",
30
+ "nano-banana": "google/gemini-nano-banana-2.1",
31
+ "nano-banana-pro": "google/gemini-3-pro-image-preview",
30
32
  "image": "openai-codex/gpt-image-2",
31
33
  "sonnet5": "anthropic/claude-sonnet-5",
32
34
  "opus5": "anthropic/claude-opus-5",
35
+ "haiku45": "anthropic/claude-haiku-4-5",
33
36
  "sol6": "openai-codex/gpt-6-sol",
34
37
  "sol56": "openai-codex/gpt-5.6-sol",
35
38
  "luna56": "openai-codex/gpt-5.6-luna",
@@ -148,8 +151,9 @@
148
151
  "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
152
  "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
153
  "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}},
154
+ "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
155
  "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}},
156
+ "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
157
  "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
158
  "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
159
  "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}},
@@ -255,7 +259,7 @@
255
259
  "gemini-2.5-pro-preview-05-06": {"name":"Gemini 2.5 Pro Preview 05-06","api":"google-generative-ai","baseUrl":"https://generativelanguage.googleapis.com/v1beta","reasoning":true,"input":["text","image"],"cost":{"input":1.25,"output":10,"cacheRead":0.31,"cacheWrite":0},"contextWindow":1048576,"maxTokens":65536},
256
260
  "gemini-2.5-pro-preview-06-05": {"name":"Gemini 2.5 Pro Preview 06-05","api":"google-generative-ai","baseUrl":"https://generativelanguage.googleapis.com/v1beta","reasoning":true,"input":["text","image"],"cost":{"input":1.25,"output":10,"cacheRead":0.31,"cacheWrite":0},"contextWindow":1048576,"maxTokens":65536},
257
261
  "gemini-3-pro-image-preview": {"name":"Nano Banana Pro","api":"google-generative-ai","baseUrl":"https://generativelanguage.googleapis.com/v1beta","reasoning":false,"input":["text","image"],"output":["image"],"imageGeneration":true,"imageEditing":true,"chat":false,"cost":{"input":2,"output":120,"cacheRead":0.2,"cacheWrite":0},"contextWindow":32768,"maxTokens":8192},
258
- "gemini-nano-banana-2.1": {"name":"Nano Banana 2.1","api":"google-generative-ai","baseUrl":"https://generativelanguage.googleapis.com/v1beta","reasoning":false,"input":["text","image"],"output":["image"],"imageGeneration":true,"imageEditing":true,"chat":false,"cost":{"input":1.5,"output":30,"cacheRead":0,"cacheWrite":0},"contextWindow":65536,"maxTokens":65536,"harness":{"source":"generativelanguage.googleapis.com/v1beta/models/gemini-nano-banana-2.1 (inputTokenLimit 65536, outputTokenLimit 65536; models list agrees) and ai.google.dev/gemini-api/docs/models/gemini-nano-banana-2.1 + /pricing. Official limits conflict: the model card says 131,072 input / 32,768 output; the harness uses the API endpoint values.","checked":"2026-10-07","notes":"GA 2026-10-06. Image generation and conversational image editing, the update to Nano Banana 2 (gemini-3.1-flash-image). Image-only like Nano Banana Pro (function calling and structured outputs unsupported); reached through image_generate model google/gemini-nano-banana-2.1. $1.50/MTok input, $30/MTok image output ($7.50 text/thinking output), about $0.034 per 1K image; caching unsupported. Thinking minimal/medium(default)/high; 1K/2K/4K output."}},
262
+ "gemini-nano-banana-2.1": {"name":"Nano Banana 2.1","api":"google-generative-ai","baseUrl":"https://generativelanguage.googleapis.com/v1beta","reasoning":false,"input":["text","image"],"output":["image"],"imageGeneration":true,"imageEditing":true,"chat":false,"cost":{"input":1.5,"output":30,"cacheRead":0,"cacheWrite":0},"contextWindow":65536,"maxTokens":65536,"harness":{"source":"generativelanguage.googleapis.com/v1beta/models/gemini-nano-banana-2.1 (inputTokenLimit 65536, outputTokenLimit 65536; models list agrees, rechecked 2026-10-11) and ai.google.dev/gemini-api/docs/models/gemini-nano-banana-2.1 + /pricing + /changelog (GA 2026-10-06; gemini-3.1-flash-image deprecated in its favor) + deepmind.google/models/model-cards/nano-banana-2-1 (Overall Preference Elo 1050 thinking vs Nano Banana Pro 935). Official limits conflict: the model page says 131,072 input / 32,768 output; the harness uses the API endpoint values.","checked":"2026-10-11","notes":"GA 2026-10-06. Image generation and conversational image editing, the update to Nano Banana 2 (gemini-3.1-flash-image). Image-only like Nano Banana Pro (function calling and structured outputs unsupported); the nano-banana/banana aliases since 2026.9.41 (image_generate model nano-banana), Pro stays on nano-banana-pro. Up to 14 reference images; aspect ratios add 1:4, 4:1, 1:8, 8:1. $1.50/MTok input, $30/MTok image output ($7.50 text/thinking output), about $0.034 per 1K image; caching unsupported. Thinking minimal/medium(default)/high; 1K/2K/4K output."}},
259
263
  "gemini-3.8-flash": {"name":"Gemini 3.8 Flash","api":"google-generative-ai","baseUrl":"https://generativelanguage.googleapis.com/v1beta","reasoning":true,"input":["text","image"],"cost":{"input":0.75,"output":3.75,"cacheRead":0.075,"cacheWrite":0},"contextWindow":1048576,"maxTokens":65536},
260
264
  "gemini-3-flash-preview": {"name":"Gemini 3 Flash Preview","api":"google-generative-ai","baseUrl":"https://generativelanguage.googleapis.com/v1beta","reasoning":true,"input":["text","image"],"cost":{"input":0.5,"output":3,"cacheRead":0.05,"cacheWrite":0},"contextWindow":1048576,"maxTokens":65536},
261
265
  "gemini-3-pro-preview": {"name":"Gemini 3 Pro Preview","api":"google-generative-ai","baseUrl":"https://generativelanguage.googleapis.com/v1beta","reasoning":true,"input":["text","image"],"cost":{"input":2,"output":12,"cacheRead":0.2,"cacheWrite":0},"contextWindow":1000000,"maxTokens":64000},
@@ -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.41",
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",
@@ -45,9 +45,18 @@ for (const rel of sync.XHIGH12) {
45
45
  const line = src.slice(at).split("\n")[1];
46
46
  if (JSON.stringify(new Function(`const XHIGH_MODEL_REFS = []; ${line} return XHIGH_MODEL_REFS;`)()) !== refs) problems.push(`${rel}: XHIGH_MODEL_REFS differ from models/models.json`);
47
47
  }
48
+ // image_generate's `model` param resolves the same image aliases /model does (2026.9.41).
49
+ const imageTool = path.join(root, sync.IMAGE_TOOL);
50
+ if (!fs.existsSync(imageTool)) problems.push(`missing ${sync.IMAGE_TOOL}`);
51
+ else {
52
+ const { IMAGE_MODEL_ALIASES } = await import(pathToFileURL(imageTool).href);
53
+ for (const [alias, ref] of Object.entries(sync.imageAliasesOf(master))) {
54
+ if (IMAGE_MODEL_ALIASES?.[alias] !== ref) problems.push(`${sync.IMAGE_TOOL}: image alias ${alias} is ${IMAGE_MODEL_ALIASES?.[alias] ?? "(missing)"}, master says ${ref}`);
55
+ }
56
+ }
48
57
  if (problems.length) {
49
58
  for (const line of problems.slice(0, 20)) console.error(`FAIL ${line}`);
50
59
  console.error(`models master check: ${problems.length} problem(s)`);
51
60
  process.exit(1);
52
61
  }
53
- console.log(`models master check: ${models / 2} models x 2 catalogs, ${sync.ALIAS14.length} alias copies, ${sync.XHIGH12.length} xhigh copies match models/models.json`);
62
+ console.log(`models master check: ${models / 2} models x 2 catalogs, ${sync.ALIAS14.length} alias copies, ${sync.XHIGH12.length} xhigh copies and the image_generate aliases match models/models.json`);
@@ -13,8 +13,16 @@
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.
23
+ // - dist/image-generate.js: every shipped alias that names an image generation model (banana,
24
+ // nano-banana, nano-banana-pro, image) also resolves in the image_generate `model` param
25
+ // (since 2026.9.41, when nano-banana moved to Nano Banana 2.1).
18
26
  // Older hand-written literals stay byte-for-byte in place (older exact-replay families hash them);
19
27
  // the generated blocks run last and win. Never hand-edit a generated block: edit the master, run
20
28
  // `node scripts/models-sync.mjs`, then `node scripts/models-sync.mjs --check`.
@@ -46,6 +54,7 @@ export const ALIAS14 = [
46
54
  "dist/plugin-sdk/model-auth-DVyo6JSX.js", "dist/plugin-sdk/model-auth-kiHYHGrs.js",
47
55
  "dist/plugin-sdk/model-selection-Dbj4jDYM.js",
48
56
  ];
57
+ export const IMAGE_TOOL = "dist/image-generate.js";
49
58
  export const XHIGH12 = [
50
59
  "dist/thinking-B5B36ffe.js", "dist/thinking-BYwvlJ3S.js", "dist/thinking-CAzdgmNV.js", "dist/thinking-DykY2Fzj.js",
51
60
  "dist/plugin-sdk/thinking-B-rIrY_n.js", "dist/plugin-sdk/thinking-CopbP_Cn.js", "dist/plugin-sdk/thinking-WQ4Zq8Nl.js",
@@ -55,6 +64,12 @@ export const XHIGH12 = [
55
64
  const EFFORTS = ["none", "minimal", "low", "medium", "high", "xhigh", "max"];
56
65
  const TEMPERATURE_RULES = ["drop", "drop-unless-effort-none"];
57
66
  const RUNTIME_RULE_KEYS = ["efforts", "temperature"];
67
+ // Anthropic Messages: output_config.effort levels, the only thinking mode the master can request
68
+ // (manual budget thinking is the adapter's historical default) and the only temperature rule.
69
+ const ANTHROPIC_API = "anthropic-messages";
70
+ const ANTHROPIC_EFFORTS = ["low", "medium", "high", "xhigh", "max"];
71
+ const ANTHROPIC_RULE_KEYS = ["thinking", "thinkingOff", "efforts", "temperature"];
72
+ const ANTHROPIC_IMPORT = 'import { transformMessages } from "./transform-messages.js";\n';
58
73
 
59
74
  export function stripGenerated(text) {
60
75
  return text.replace(BLOCK_RE, "");
@@ -91,9 +106,30 @@ export function validateMaster(master) {
91
106
  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
107
  if (h.temperature !== undefined && !TEMPERATURE_RULES.includes(h.temperature)) problems.push(`${ref}: harness.temperature must be ${TEMPERATURE_RULES.join(" or ")}`);
93
108
  if (h.xhigh === true && h.efforts && !h.efforts.includes("xhigh")) problems.push(`${ref}: harness.xhigh true but efforts omit xhigh`);
109
+ if (h.thinking !== undefined && entry.api !== ANTHROPIC_API) problems.push(`${ref}: harness.thinking applies to anthropic-messages models only`);
110
+ 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)`);
111
+ if (h.thinkingOff !== undefined && entry.api !== ANTHROPIC_API) problems.push(`${ref}: harness.thinkingOff applies to anthropic-messages models only`);
112
+ 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)`);
113
+ if (entry.api === ANTHROPIC_API) {
114
+ if (h.temperature !== undefined && h.temperature !== "drop") problems.push(`${ref}: anthropic-messages harness.temperature must be drop`);
115
+ 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("|")}`);
116
+ if (h.efforts !== undefined && h.thinking !== "adaptive") problems.push(`${ref}: anthropic-messages harness.efforts needs harness.thinking adaptive (effort only rides adaptive thinking)`);
117
+ }
94
118
  }
95
119
  }
96
120
  }
121
+ // The Anthropic adapter's gates take a bare model id, so one id must carry one rule set on every
122
+ // anthropic-messages provider that serves it.
123
+ const anthropicSeen = new Map();
124
+ for (const [provider, models] of Object.entries(master.providers)) {
125
+ for (const [id, entry] of Object.entries(models)) {
126
+ if (entry?.api !== ANTHROPIC_API) continue;
127
+ const rules = JSON.stringify(anthropicRuleOf(entry) ?? {});
128
+ const prior = anthropicSeen.get(id);
129
+ if (prior && prior.rules !== rules) problems.push(`${id}: Anthropic rules differ between anthropic-messages providers (${prior.provider}, ${provider})`);
130
+ else if (!prior) anthropicSeen.set(id, { provider, rules });
131
+ }
132
+ }
97
133
  for (const [alias, ref] of Object.entries(master.aliases ?? {})) {
98
134
  if (!refs.has(ref)) problems.push(`alias ${alias} -> ${ref} is not in the master catalog`);
99
135
  if (master.latest?.[alias]) problems.push(`alias ${alias} is governed by a latest rule; remove it from aliases`);
@@ -172,6 +208,35 @@ export function rulesOf(master) {
172
208
  }
173
209
  return rules;
174
210
  }
211
+ // Anthropic rules of one entry (anthropic-messages only): the harness keys the adapter acts on.
212
+ function anthropicRuleOf(entry) {
213
+ if (entry?.api !== ANTHROPIC_API) return undefined;
214
+ const h = entry.harness ?? {};
215
+ const rule = {};
216
+ for (const key of ANTHROPIC_RULE_KEYS) if (h[key] !== undefined) rule[key] = h[key];
217
+ return Object.keys(rule).length ? rule : undefined;
218
+ }
219
+ // Bare model id -> rules, for providers/anthropic.js (its gates see model ids, not provider refs).
220
+ export function anthropicRulesOf(master) {
221
+ const rules = {};
222
+ for (const models of Object.values(master.providers)) {
223
+ for (const [id, entry] of Object.entries(models)) {
224
+ const rule = anthropicRuleOf(entry);
225
+ if (rule && !rules[id]) rules[id] = rule;
226
+ }
227
+ }
228
+ return rules;
229
+ }
230
+ // Shipped aliases whose target is an image generation model: the image_generate tool's `model`
231
+ // param accepts them too, so `/model nano-banana` and `image_generate model: nano-banana` agree.
232
+ export function imageAliasesOf(master) {
233
+ const out = {};
234
+ for (const [alias, ref] of Object.entries(resolvedAliases(master))) {
235
+ const slash = ref.indexOf("/");
236
+ if (master.providers[ref.slice(0, slash)]?.[ref.slice(slash + 1)]?.imageGeneration === true) out[alias] = ref;
237
+ }
238
+ return out;
239
+ }
175
240
  export function xhighRefsOf(master) {
176
241
  const refs = [];
177
242
  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,11 +305,50 @@ const adapterBlock = (builder) => HEAD("wire rules") + [
240
305
  ` return johnnessApplyModelRules(model, options, johnnessHistorical_${builder}(model, context, options));`,
241
306
  "};",
242
307
  ].join("\n") + "\n" + TAIL();
308
+ // providers/anthropic.js: master-driven adaptive thinking, effort and temperature for the models the
309
+ // master gives Anthropic rules; every other model falls through to the historical gates. Wrapper
310
+ // names differ from the declarations on purpose (tests and replays find `function <name>(`).
311
+ function anthropicBlock(master) {
312
+ return HEAD("anthropic rules") + [
313
+ `const JOHNNESS_ANTHROPIC_RULES = ${JSON.stringify(anthropicRulesOf(master))};`,
314
+ `const JOHNNESS_ANTHROPIC_EFFORT_ORDER = ${JSON.stringify(ANTHROPIC_EFFORTS)};`,
315
+ "const johnnessHistoricalSupportsAdaptiveThinking = supportsAdaptiveThinking;",
316
+ "supportsAdaptiveThinking = function johnnessMasterSupportsAdaptiveThinking(modelId) {",
317
+ ' return JOHNNESS_ANTHROPIC_RULES[modelId]?.thinking === "adaptive" || johnnessHistoricalSupportsAdaptiveThinking(modelId);',
318
+ "};",
319
+ "const johnnessHistoricalMapThinkingLevelToEffort = mapThinkingLevelToEffort;",
320
+ "mapThinkingLevelToEffort = function johnnessMasterMapThinkingLevelToEffort(level, modelId) {",
321
+ " const efforts = JOHNNESS_ANTHROPIC_RULES[modelId]?.efforts;",
322
+ " if (!efforts) return johnnessHistoricalMapThinkingLevelToEffort(level, modelId);",
323
+ ' const wanted = level === "minimal" ? "low" : JOHNNESS_ANTHROPIC_EFFORT_ORDER.includes(level) ? level : "high";',
324
+ " if (efforts.includes(wanted)) return wanted;",
325
+ " const accepted = JOHNNESS_ANTHROPIC_EFFORT_ORDER.filter((effort) => efforts.includes(effort));",
326
+ " return accepted.find((effort) => JOHNNESS_ANTHROPIC_EFFORT_ORDER.indexOf(effort) >= JOHNNESS_ANTHROPIC_EFFORT_ORDER.indexOf(wanted)) ?? accepted.at(-1);",
327
+ "};",
328
+ "const johnnessHistoricalAnthropicBuildParams = buildParams;",
329
+ "buildParams = function johnnessMasterAnthropicBuildParams(model, context, isOAuthToken, options) {",
330
+ " const params = johnnessHistoricalAnthropicBuildParams(model, context, isOAuthToken, options);",
331
+ " const rules = JOHNNESS_ANTHROPIC_RULES[model?.id];",
332
+ " // Thinking off on a model whose thinking is on by default: say so (no effort is sent, so the",
333
+ " // provider default effort applies; disabled is only rejected at xhigh/max).",
334
+ ' if (rules?.thinkingOff === "disabled" && !(options?.thinkingEnabled && model.reasoning) && params.thinking === undefined) params.thinking = { type: "disabled" };',
335
+ ' if (rules?.temperature === "drop") {',
336
+ " delete params.temperature;",
337
+ " delete params.top_p;",
338
+ " delete params.top_k;",
339
+ " }",
340
+ " return params;",
341
+ "};",
342
+ ].join("\n") + "\n" + TAIL();
343
+ }
243
344
  function aliasBlock(master) {
244
345
  // A plain assignment loop (not Object.assign): older verifier checks count the literal blocks.
245
346
  return HEAD("aliases") + `const JOHNNESS_MASTER_ALIASES = ${JSON.stringify(resolvedAliases(master))};\n`
246
347
  + "for (const [alias, ref] of Object.entries(JOHNNESS_MASTER_ALIASES)) DEFAULT_MODEL_ALIASES[alias] = ref;\n" + TAIL();
247
348
  }
349
+ function imageAliasBlock(master) {
350
+ return HEAD("image aliases") + `for (const [alias, ref] of Object.entries(${JSON.stringify(imageAliasesOf(master))})) IMAGE_MODEL_ALIAS_TABLE[alias] = ref;\n` + TAIL();
351
+ }
248
352
  function xhighRefsBlock(master) {
249
353
  // Single-quoted on purpose: older verifier checks count the historical double-quoted literals.
250
354
  const refs = xhighRefsOf(master);
@@ -290,12 +394,14 @@ export function targets(master) {
290
394
  out.push({ rel: `${base}/models.generated.js`, edits: [appendAfterLast("\n};\n", catalogBlock(master))] });
291
395
  out.push({ rel: `${base}/models.js`, edits: [insertAfter('import { MODELS } from "./models.generated.js";\n', RULES_BLOCK)] });
292
396
  out.push({ rel: `${base}/providers/openai-codex-responses.js`, edits: [insertAfter('import { supportsXhigh } from "../models.js";\n', adapterBlock("buildRequestBody"))] });
397
+ out.push({ rel: `${base}/providers/anthropic.js`, edits: [insertAfter(ANTHROPIC_IMPORT, anthropicBlock(master))] });
293
398
  }
294
399
  for (const rel of [`${PI_VENDOR}/providers/openai-responses.js`, `${PI_INSTALLED}/providers/openai-responses.js`, SNAPSHOT]) {
295
400
  out.push({ rel, edits: [insertAfter('import { supportsXhigh } from "../models.js";\n', adapterBlock("buildParams"))] });
296
401
  }
297
402
  for (const rel of ALIAS14) out.push({ rel, edits: [insertBefore("const DEFAULT_MODEL_COST = {", aliasBlock(master))] });
298
403
  for (const rel of XHIGH12) out.push({ rel, edits: [afterArray("const XHIGH_MODEL_REFS = [", xhighRefsBlock(master))] });
404
+ out.push({ rel: IMAGE_TOOL, edits: [insertBefore("export const IMAGE_MODEL_ALIASES = Object.freeze(IMAGE_MODEL_ALIAS_TABLE);\n", imageAliasBlock(master))] });
299
405
  return out;
300
406
  }
301
407