{
  "id": "m01",
  "execution": "MiniMax Code 0.7.4 原生 CLI（隔离配置）",
  "passed": true,
  "checks": {
    "官方 CLI 保存隔离的自定义提供商": true,
    "列表包含样例 Provider 和模型": true,
    "连接测试实际访问本机 Chat 路径": true
  },
  "commands": [
    {
      "command": "'mcode' provider add --name qrfixture --base-url http://127.0.0.1:53809/v1 --api-format openai-completions --model qr-fixture --api-key-env MCODE_PROVIDER_API_KEY",
      "exit": 0,
      "stdout": "Provider added: qrfixture\n",
      "stderr": ""
    },
    {
      "command": "'mcode' provider list --json",
      "exit": 0,
      "stdout": "{\n  \"minimaxModelSource\": \"token_plan\",\n  \"providers\": [\n    {\n      \"providerId\": \"minimax_oauth\",\n      \"name\": \"MiniMax OAuth\",\n      \"kind\": \"minimax-oauth\",\n      \"active\": true,\n      \"enabled\": true,\n      \"readOnly\": true,\n      \"hasApiKey\": false,\n      \"models\": []\n    },\n    {\n      \"providerId\": \"minimax_api\",\n      \"name\": \"MiniMax API Key\",\n      \"kind\": \"minimax-api-key\",\n      \"active\": false,\n      \"enabled\": true,\n      \"readOnly\": false,\n      \"hasApiKey\": false,\n      \"models\": []\n    },\n    {\n      \"providerId\": \"custom_provider:qrfixture\",\n      \"name\": \"qrfixture\",\n      \"kind\": \"custom\",\n      \"active\": false,\n      \"enabled\": true,\n      \"readOnly\": false,\n      \"configRevision\": \"sha256:a7d2d0d4f2363b3122da10ea5f4bc45b51b0fab4770a6c1e5d10eac0919c8cf7\",\n      \"apiFormat\": \"openai-completions\",\n      \"baseUrl\": \"http://127.0.0.1:53809/v1\",\n      \"hasApiKey\": true,\n      \"maskedApiKey\": \"fixt****-env\",\n      \"models\": [\n        {\n          \"modelId\": \"qr-fixture\",\n          \"displayName\": \"qr-fixture\",\n          \"selected\": false\n        }\n      ]\n    }\n  ]\n}\n",
      "stderr": ""
    },
    {
      "command": "'mcode' provider test qrfixture --model qr-fixture",
      "exit": 0,
      "stdout": "Provider available: qrfixture/qr-fixture\n",
      "stderr": ""
    }
  ],
  "localRequests": [
    {
      "path": "/v1/chat/completions",
      "model": "qr-fixture",
      "authSource": "environment",
      "stream": false
    }
  ],
  "direct": {
    "modelRequested": "deepseek-v4.1-flash",
    "path": "/v1/chat/completions",
    "checkedAt": "2026-11-05T02:43:37.534258+00:00",
    "http": 200,
    "modelReturned": "deepseek-v4.1-flash",
    "usage": {
      "prompt_tokens": 20,
      "completion_tokens": 2,
      "total_tokens": 22
    },
    "output": "READY",
    "expectedTextMatched": true,
    "seconds": 14.666
  }
}
