- plugin.yaml name qqbot-platform (bundled-plugin convention) - drop env_enablement/apply_yaml_config hooks and platform_hint: core config_env _ENV_STEPS and PLATFORM_HINTS still own them, the hooks were new behaviour (markdown/env seeding) the move must not add - drop validate_config/max_message_length: base never config-gated or chunked QQ in send_message (REST sender truncates at 4000) - install_hint carries the old _BUILTIN_ADAPTERS warning text - drop the _send_qqbot compat alias - replace env-seeding tests with a registration-shape test (cherry picked from commit b34a6d21e42d934555a2e6243c9a126dc0d5de42)
68 lines
2.3 KiB
YAML
68 lines
2.3 KiB
YAML
name: qqbot-platform
|
|
label: QQ Bot
|
|
kind: platform
|
|
version: 1.0.0
|
|
description: >
|
|
QQ Bot gateway adapter (Official QQ Bot API v2). WebSocket gateway for
|
|
inbound events, REST for outbound text and media.
|
|
author: Nous Research
|
|
requires_env:
|
|
- name: QQ_APP_ID
|
|
description: "QQ Bot App ID from QQ Open Platform (q.qq.com)"
|
|
prompt: "QQ App ID"
|
|
url: "https://q.qq.com"
|
|
password: false
|
|
- name: QQ_CLIENT_SECRET
|
|
description: "QQ Bot Client Secret from QQ Open Platform"
|
|
prompt: "QQ Client Secret"
|
|
password: true
|
|
optional_env:
|
|
- name: QQ_ALLOWED_USERS
|
|
description: "Comma-separated QQ user OpenIDs allowed to use the bot"
|
|
prompt: "QQ Allowed Users"
|
|
password: false
|
|
- name: QQ_GROUP_ALLOWED_USERS
|
|
description: "Comma-separated QQ group OpenIDs allowed to interact with the bot"
|
|
prompt: "QQ Group Allowed Users"
|
|
password: false
|
|
- name: QQ_ALLOW_ALL_USERS
|
|
description: "Allow all QQ users without an allowlist (true/false)"
|
|
prompt: "Allow All QQ Users"
|
|
password: false
|
|
- name: QQBOT_HOME_CHANNEL
|
|
description: "Default QQ channel/group for cron delivery and notifications"
|
|
prompt: "QQ Home Channel"
|
|
password: false
|
|
- name: QQBOT_HOME_CHANNEL_NAME
|
|
description: "Display name for the QQ home channel"
|
|
prompt: "QQ Home Channel Name"
|
|
password: false
|
|
- name: QQBOT_HOME_CHANNEL_THREAD_ID
|
|
description: "Thread id for the QQ home channel, when the target is a thread"
|
|
prompt: "QQ Home Channel Thread ID"
|
|
password: false
|
|
- name: QQ_MARKDOWN_SUPPORT
|
|
description: "Send QQ messages as markdown when the bot is allowed to (true/false)"
|
|
prompt: "QQ Markdown Support"
|
|
password: false
|
|
- name: QQ_SANDBOX
|
|
description: "Enable QQ sandbox mode for development testing (true/false)"
|
|
prompt: "QQ Sandbox Mode"
|
|
password: false
|
|
- name: QQ_PORTAL_HOST
|
|
description: "QQ Open Platform portal host (default q.qq.com)"
|
|
prompt: "QQ Portal Host"
|
|
password: false
|
|
- name: QQ_STT_API_KEY
|
|
description: "API key for QQ voice transcription fallback"
|
|
prompt: "QQ STT API Key"
|
|
password: true
|
|
- name: QQ_STT_BASE_URL
|
|
description: "Base URL for the QQ voice transcription provider"
|
|
prompt: "QQ STT Base URL"
|
|
password: false
|
|
- name: QQ_STT_MODEL
|
|
description: "Model name for the QQ voice transcription provider"
|
|
prompt: "QQ STT Model"
|
|
password: false
|