{
  "adapter_name": "QwenCode Inheritance Adapter",
  "version": "1.0.0",
  "description": "QwenCode CLI Class Inheritance系统跨平台调用适配器",
  "extension_mechanism": "class_inheritance",
  "supported_plugins": [
    "on_before_execute",
    "on_after_execute",
    "on_prompt_received",
    "on_code_generated",
    "on_error_occurred",
    "on_file_created",
    "on_before_save"
  ],
  "configuration": {
    "cross_cli_enabled": true,
    "supported_clis": [
      "claude",
      "gemini",
      "iflow",
      "qoder",
      "codebuddy",
      "codex"
    ],
    "auto_detect": true,
    "timeout": 30,
    "retry_count": 3,
    "max_concurrent_calls": 5
  },
  "qwencode_integration": {
    "config_file": "~/.config/qwencode/config.yml",
    "config_dir": "~/.config/qwencode",
    "adapter_config_dir": "~/.config/qwencode/adapters",
    "auto_load": true,
    "plugin_priority": 85,
    "base_class": "BaseQwenCodePlugin",
    "plugin_name": "CrossCLIAdapterPlugin"
  },
  "inheritance_setup": {
    "parent_classes": [
      "BaseQwenCodePlugin",
      "PluginInterface"
    ],
    "required_methods": [
      "execute",
      "validate_input",
      "format_output"
    ],
    "override_methods": [
      "on_prompt_received",
      "on_code_generated",
      "on_error_occurred"
    ]
  },
  "protocols": {
    "chinese": [
      "请用{cli}帮我{task}",
      "调用{cli}来{task}",
      "用{cli}帮我{task}",
      "让{cli}帮我{task}",
      "通过{cli}执行{task}",
      "使用{cli}生成{task}"
    ],
    "english": [
      "use {cli} to {task}",
      "call {cli} to {task}",
      "ask {cli} for {task}",
      "tell {cli} to {task}",
      "get {cli} to {task}",
      "have {cli} {task}",
      "generate {task} with {cli}"
    ]
  },
  "logging": {
    "level": "INFO",
    "file": "~/.config/qwencode/logs/cross_cli_inheritance.log",
    "max_file_size": "10MB",
    "backup_count": 5
  },
  "error_handling": {
    "fallback_to_qwencode": true,
    "show_error_details": true,
    "continue_on_plugin_failure": true,
    "retry_on_error": true,
    "log_errors": true
  },
  "plugin_metadata": {
    "name": "Cross-CLI Integration Plugin",
    "description": "Enables cross-CLI tool calling from QwenCode CLI through inheritance",
    "author": "Smart CLI Router",
    "license": "MIT",
    "repository": "https://github.com/smart-cli-router",
    "plugin_type": "adapter"
  }
}