feat: add CommandCode provider plugin

Add first-class CommandCode provider with dual API mode support:

profile commandcode (chat_completions):
  20+ models via OpenAI-compatible endpoint
  DeepSeek, Qwen, Kimi, GLM, MiniMax, StepFun, Mimo, Gemini, GPT
  Default: deepseek/deepseek-v4-pro (1M context)

profile commandcode-anthropic (anthropic_messages):
  Claude models via Anthropic Messages-compatible endpoint
  Default: claude-sonnet-4-6 (1M context)

Changes:
- plugins/model-providers/commandcode/ — provider plugin
  - __init__.py: dual ProviderProfile classes with fetch_models
  - plugin.yaml: manifest
- agent/anthropic_adapter.py: recognize api.commandcode.ai as Bearer auth
- tests/plugins/model_providers/test_commandcode_profile.py: 28 tests
- tests/providers/test_plugin_discovery.py: bump profile count 34→36

171 provider tests pass (28 new, 0 regressions)
This commit is contained in:
Johann
2026-05-26 21:08:01 -04:00
committed by Teknium
parent fe8c9f1c92
commit 26d8bf567c
4 changed files with 401 additions and 0 deletions
@@ -0,0 +1,5 @@
name: commandcode-provider
kind: model-provider
version: 1.0.0
description: CommandCode — unified multi-model API (OpenAI chat completions + Anthropic Messages)
author: Nous Research