{
  "name": "retry_middleware",
  "title": "智能重试中间件",
  "description": "编译错误检测与自动修复中间件，检测Python/MSBuild/node-gyp等编译工具链缺失，自动安装并重试编译。触发关键词：重试中间件、编译修复、环境检测",
  "category": "系统工具",
  "group": "system",
  "type": "function",
  "main": "./index.js",
  "params": [
    {
      "name": "action",
      "type": "string",
      "description": "操作类型：check(环境检测)、detect(错误检测)、install(自动安装)、report(生成报告)",
      "required": true,
      "enum": ["check", "detect", "install", "report"]
    },
    {
      "name": "error_output",
      "type": "string",
      "description": "错误输出内容（detect操作时必填）",
      "required": false
    },
    {
      "name": "std_output",
      "type": "string",
      "description": "标准输出内容（detect操作时选填）",
      "required": false
    }
  ],
  "returns": [
    {
      "name": "code",
      "type": "number",
      "description": "操作状态码，0表示成功",
      "default": 0
    },
    {
      "name": "msg",
      "type": "string",
      "description": "操作状态描述"
    },
    {
      "name": "data",
      "type": "object",
      "description": "操作结果数据"
    }
  ]
}
