{
  "id": "m04",
  "execution": "MiniMax Code 0.7.4 原生 CLI（隔离配置）",
  "passed": true,
  "checks": {
    "官方 CLI 保存隔离的自定义提供商": true,
    "列表包含样例 Provider 和模型": true,
    "未知 Provider 测试未发出请求": true,
    "连接测试实际访问本机 Chat 路径": true
  },
  "commands": [
    {
      "command": "'mcode' provider add --name qrfixture --base-url http://127.0.0.1:53879/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:6705be6dafc2c4c754917e23402f36704eb3840c17621e05d95c42dade4accbe\",\n      \"apiFormat\": \"openai-completions\",\n      \"baseUrl\": \"http://127.0.0.1:53879/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 qrmissing --model qr-fixture",
      "exit": 1,
      "stdout": "",
      "stderr": "Model provider not found\n"
    },
    {
      "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
    }
  ]
}
