mirror of
https://github.com/HKUDS/nanobot.git
synced 2026-08-17 01:26:40 +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
75 lines
2.5 KiB
JSON
75 lines
2.5 KiB
JSON
{
|
|
"displayName": "飛書",
|
|
"description": "在飛書對話和群組中使用 nanobot。",
|
|
"requirements": "飛書應用程式憑證、事件訂閱和閘道",
|
|
"setup": {
|
|
"primaryAction": "連接飛書",
|
|
"docsLabel": "開啟飛書設定指南",
|
|
"officialLabel": "開啟飛書開發者後台",
|
|
"tryIt": "向飛書助手傳送私訊,或在群組中提及它。",
|
|
"summary": "連接流程會透過二維碼建立或關聯飛書應用程式,並自動為 nanobot 儲存應用程式憑證。",
|
|
"steps": [
|
|
"點擊連接,用手機飛書或 Lark 掃描二維碼。",
|
|
"批准應用程式連接,nanobot 會自動儲存 App ID 和 Secret。",
|
|
"向機器人傳送私訊,或在飛書群組中提及它以完成測試。"
|
|
],
|
|
"fields": {
|
|
"appId": {
|
|
"label": "App ID",
|
|
"placeholder": "cli_xxx"
|
|
},
|
|
"appSecret": {
|
|
"label": "App Secret",
|
|
"placeholder": "留空以保留現有密鑰",
|
|
"help": "僅在輪換憑證時貼上新的 App Secret。"
|
|
},
|
|
"domain": {
|
|
"label": "區域",
|
|
"choices": {
|
|
"feishu": "飛書",
|
|
"lark": "Lark"
|
|
}
|
|
},
|
|
"groupPolicy": {
|
|
"label": "群組行為",
|
|
"choices": {
|
|
"mention": "僅提及時",
|
|
"open": "所有訊息",
|
|
"allowlist": "允許清單"
|
|
}
|
|
},
|
|
"allowFrom": {
|
|
"label": "允許的使用者",
|
|
"placeholder": "使用者 ID,以逗號分隔"
|
|
},
|
|
"topicIsolation": {
|
|
"label": "主題隔離",
|
|
"choices": {
|
|
"true": "每個主題使用獨立工作階段",
|
|
"false": "群組共用一個工作階段"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"custom": {
|
|
"toggleAssistant": "{{name}} 助手",
|
|
"configured": "已連接",
|
|
"needsSetup": "需要授權",
|
|
"noAppId": "沒有 App ID",
|
|
"createAnother": "建立另一個助手",
|
|
"createHint": "為其他團隊、空間或工作流程建立獨立的飛書機器人。",
|
|
"createAssistant": "建立助手",
|
|
"reconnect": "重新連線",
|
|
"countNone": "尚未連接助手",
|
|
"countOne": "已連接 1 個助手",
|
|
"countMany": "已連接 {{count}} 個助手",
|
|
"qrAlt": "飛書連線 QR Code",
|
|
"scanTitle": "使用飛書掃描",
|
|
"scanDescription": "請使用手機上的飛書或 Lark 掃描此 QR Code。完成授權後,nanobot 會自動完成設定。",
|
|
"waiting": "正在等待授權…",
|
|
"connected": "飛書已連線。",
|
|
"stopped": "連線已停止。",
|
|
"connecting": "正在連線…"
|
|
}
|
|
}
|