mirror of
https://github.com/HKUDS/nanobot.git
synced 2026-08-13 07:39:15 +03:00
* refactor(channels): own setup and instance contracts * refactor(channels): isolate management contracts * refactor(channels): normalize activation contracts * fix(channels): enforce management contracts * refactor(channels): finish setup ownership migration * fix(channels): harden management contracts * fix(channels): enforce lazy loading and runtime ownership * fix(feishu): make multi-instance startup idempotent * fix(webui): render channel setup contracts cleanly * fix(feishu): stop websocket clients cleanly * fix(channels): enforce persistence and activation gates * fix(channels): preserve global feature action scope * fix(channels): apply defaults for single plugins * fix(channels): enforce management contract boundaries * refactor(feishu): remove identity helper indirection * fix(channels): preserve management setup contracts * refactor(channels): generalize instance settings UI * refactor(channels): package channel plugins with web UI metadata * refactor(channels): make built-ins self-contained packages * test(channels): colocate tests with channel packages * fix(dingtalk): use official brand icon * feat(channels): colocate webui translations * docs(channels): clarify plugin ownership * test(exec): remove output wait race * refactor(channels): unify plugin descriptors * fix(channels): enforce descriptor-owned contracts * refactor(channels): finish package-owned plugin setup * refactor(channels): use repository-owned packages only * fix(channels): self-describe dependencies and runtime state * fix(channels): warn about legacy entry points
93 lines
2.7 KiB
JSON
93 lines
2.7 KiB
JSON
{
|
|
"description": "让 nanobot 接收并回复电子邮件。",
|
|
"requirements": "IMAP 收件箱、SMTP 发件服务、应用专用密码和明确授权",
|
|
"setup": {
|
|
"docsLabel": "打开邮件配置指南",
|
|
"officialLabel": "打开应用专用密码指南",
|
|
"tryIt": "向已连接的邮箱发送一封测试邮件。",
|
|
"summary": "邮件渠道通过 IMAP 读取邮件并通过 SMTP 回复。请使用专用邮箱,并在启用前明确授权。",
|
|
"steps": [
|
|
"创建专用邮箱,并在服务商要求时创建应用专用密码。",
|
|
"选择服务商预设,或手动填写 IMAP 和 SMTP 设置。",
|
|
"授予授权,保存并启用邮件渠道,然后向邮箱发送一封测试邮件。"
|
|
],
|
|
"presets": {
|
|
"gmail": "Gmail",
|
|
"outlook": "Outlook",
|
|
"icloud": "iCloud",
|
|
"custom": "自定义"
|
|
},
|
|
"fields": {
|
|
"consentGranted": {
|
|
"label": "已授权",
|
|
"help": "必需的安全开关。仅在确定要连接此机器人邮箱后才开启。",
|
|
"choices": {
|
|
"true": "已授权",
|
|
"false": "未授权"
|
|
}
|
|
},
|
|
"imapHost": {
|
|
"label": "IMAP 主机",
|
|
"placeholder": "imap.gmail.com"
|
|
},
|
|
"imapUsername": {
|
|
"label": "IMAP 用户名",
|
|
"placeholder": "bot@example.com"
|
|
},
|
|
"imapPassword": {
|
|
"label": "IMAP 密码",
|
|
"placeholder": "应用专用密码",
|
|
"help": "如果邮件服务商要求,请使用应用专用密码。"
|
|
},
|
|
"smtpHost": {
|
|
"label": "SMTP 主机",
|
|
"placeholder": "smtp.gmail.com"
|
|
},
|
|
"smtpUsername": {
|
|
"label": "SMTP 用户名",
|
|
"placeholder": "bot@example.com"
|
|
},
|
|
"smtpPassword": {
|
|
"label": "SMTP 密码",
|
|
"placeholder": "应用专用密码",
|
|
"help": "通常与 IMAP 使用同一个应用专用密码。"
|
|
},
|
|
"imapPort": {
|
|
"label": "IMAP 端口",
|
|
"placeholder": "993"
|
|
},
|
|
"smtpPort": {
|
|
"label": "SMTP 端口",
|
|
"placeholder": "587"
|
|
},
|
|
"fromAddress": {
|
|
"label": "发件地址",
|
|
"placeholder": "bot@example.com"
|
|
},
|
|
"pollIntervalSeconds": {
|
|
"label": "轮询间隔",
|
|
"placeholder": "30"
|
|
},
|
|
"allowFrom": {
|
|
"label": "允许的发件人",
|
|
"placeholder": "邮箱地址,用逗号分隔",
|
|
"help": "留空则要求发件人先完成配对。"
|
|
},
|
|
"verifyDkim": {
|
|
"label": "验证 DKIM",
|
|
"choices": {
|
|
"true": "开启",
|
|
"false": "关闭"
|
|
}
|
|
},
|
|
"verifySpf": {
|
|
"label": "验证 SPF",
|
|
"choices": {
|
|
"true": "开启",
|
|
"false": "关闭"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|