mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-08-23 18:47:15 +00:00
feat(i18n): add zh_Hant and ja_JP translations to all adapter YAML files
- Add zh_Hant (Traditional Chinese) to all 17 adapter YAML metadata and config fields - Add ja_JP translations to global adapters (Telegram, Discord, Slack, Lark, LINE) - Fix buggy zh_Hant in line.yaml and slack.yaml (contained simplified Chinese) - Add zh_Hant field to backend I18nString model - Add adapter category grouping with locale-aware ordering - Add webhook Cloud CTA for community edition users - Fix wizard progress not clearing on skip/complete
This commit is contained in:
@@ -17,7 +17,10 @@ class I18nString(pydantic.BaseModel):
|
|||||||
"""英文"""
|
"""英文"""
|
||||||
|
|
||||||
zh_Hans: typing.Optional[str] = None
|
zh_Hans: typing.Optional[str] = None
|
||||||
"""中文"""
|
"""简体中文"""
|
||||||
|
|
||||||
|
zh_Hant: typing.Optional[str] = None
|
||||||
|
"""繁体中文"""
|
||||||
|
|
||||||
ja_JP: typing.Optional[str] = None
|
ja_JP: typing.Optional[str] = None
|
||||||
"""日文"""
|
"""日文"""
|
||||||
@@ -29,6 +32,8 @@ class I18nString(pydantic.BaseModel):
|
|||||||
dic['en_US'] = self.en_US
|
dic['en_US'] = self.en_US
|
||||||
if self.zh_Hans is not None:
|
if self.zh_Hans is not None:
|
||||||
dic['zh_Hans'] = self.zh_Hans
|
dic['zh_Hans'] = self.zh_Hans
|
||||||
|
if self.zh_Hant is not None:
|
||||||
|
dic['zh_Hant'] = self.zh_Hant
|
||||||
if self.ja_JP is not None:
|
if self.ja_JP is not None:
|
||||||
dic['ja_JP'] = self.ja_JP
|
dic['ja_JP'] = self.ja_JP
|
||||||
return dic
|
return dic
|
||||||
|
|||||||
@@ -5,19 +5,25 @@ metadata:
|
|||||||
label:
|
label:
|
||||||
en_US: OneBot v11
|
en_US: OneBot v11
|
||||||
zh_Hans: OneBot v11
|
zh_Hans: OneBot v11
|
||||||
|
zh_Hant: OneBot v11
|
||||||
description:
|
description:
|
||||||
en_US: OneBot v11 Adapter, used for QQ bots
|
en_US: OneBot v11 Adapter, used for QQ bots
|
||||||
zh_Hans: OneBot v11 适配器,用于接入 QQ 机器人协议端,请查看文档了解使用方式
|
zh_Hans: OneBot v11 适配器,用于接入 QQ 机器人协议端,请查看文档了解使用方式
|
||||||
|
zh_Hant: OneBot v11 適配器,用於接入 QQ 機器人協定端,請查看文件了解使用方式
|
||||||
icon: onebot.png
|
icon: onebot.png
|
||||||
spec:
|
spec:
|
||||||
|
categories:
|
||||||
|
- protocol
|
||||||
config:
|
config:
|
||||||
- name: host
|
- name: host
|
||||||
label:
|
label:
|
||||||
en_US: Host
|
en_US: Host
|
||||||
zh_Hans: 主机
|
zh_Hans: 主机
|
||||||
|
zh_Hant: 主機
|
||||||
description:
|
description:
|
||||||
en_US: The host that OneBot v11 listens on for reverse WebSocket connections. Unless you know what you're doing, use 0.0.0.0
|
en_US: The host that OneBot v11 listens on for reverse WebSocket connections. Unless you know what you're doing, use 0.0.0.0
|
||||||
zh_Hans: OneBot v11 监听的反向 WS 主机,除非你知道自己在做什么,否则请写 0.0.0.0
|
zh_Hans: OneBot v11 监听的反向 WS 主机,除非你知道自己在做什么,否则请写 0.0.0.0
|
||||||
|
zh_Hant: OneBot v11 監聽的反向 WS 主機,除非你知道自己在做什麼,否則請填 0.0.0.0
|
||||||
type: string
|
type: string
|
||||||
required: true
|
required: true
|
||||||
default: 0.0.0.0
|
default: 0.0.0.0
|
||||||
@@ -25,9 +31,11 @@ spec:
|
|||||||
label:
|
label:
|
||||||
en_US: Port
|
en_US: Port
|
||||||
zh_Hans: 端口
|
zh_Hans: 端口
|
||||||
|
zh_Hant: 連接埠
|
||||||
description:
|
description:
|
||||||
en_US: Port
|
en_US: Port
|
||||||
zh_Hans: 监听的端口
|
zh_Hans: 监听的端口
|
||||||
|
zh_Hant: 監聽的連接埠
|
||||||
type: integer
|
type: integer
|
||||||
required: true
|
required: true
|
||||||
default: 2280
|
default: 2280
|
||||||
@@ -35,9 +43,11 @@ spec:
|
|||||||
label:
|
label:
|
||||||
en_US: Access Token
|
en_US: Access Token
|
||||||
zh_Hans: 访问令牌
|
zh_Hans: 访问令牌
|
||||||
|
zh_Hant: 存取令牌
|
||||||
description:
|
description:
|
||||||
en_US: Custom connection token for the protocol endpoint. If the protocol endpoint is not set, don't fill it
|
en_US: Custom connection token for the protocol endpoint. If the protocol endpoint is not set, don't fill it
|
||||||
zh_Hans: 自定义的与协议端的连接令牌,若协议端未设置,则不填
|
zh_Hans: 自定义的与协议端的连接令牌,若协议端未设置,则不填
|
||||||
|
zh_Hant: 自訂的與協定端的連線令牌,若協定端未設定,則不填
|
||||||
type: string
|
type: string
|
||||||
required: false
|
required: false
|
||||||
default: ""
|
default: ""
|
||||||
|
|||||||
@@ -5,16 +5,21 @@ metadata:
|
|||||||
label:
|
label:
|
||||||
en_US: DingTalk
|
en_US: DingTalk
|
||||||
zh_Hans: 钉钉
|
zh_Hans: 钉钉
|
||||||
|
zh_Hant: 釘釘
|
||||||
description:
|
description:
|
||||||
en_US: DingTalk Adapter
|
en_US: DingTalk Adapter
|
||||||
zh_Hans: 钉钉适配器,请查看文档了解使用方式
|
zh_Hans: 钉钉适配器,请查看文档了解使用方式
|
||||||
|
zh_Hant: 釘釘適配器,請查看文件了解使用方式
|
||||||
icon: dingtalk.svg
|
icon: dingtalk.svg
|
||||||
spec:
|
spec:
|
||||||
|
categories:
|
||||||
|
- china
|
||||||
config:
|
config:
|
||||||
- name: client_id
|
- name: client_id
|
||||||
label:
|
label:
|
||||||
en_US: Client ID
|
en_US: Client ID
|
||||||
zh_Hans: 客户端ID
|
zh_Hans: 客户端ID
|
||||||
|
zh_Hant: 用戶端ID
|
||||||
type: string
|
type: string
|
||||||
required: true
|
required: true
|
||||||
default: ""
|
default: ""
|
||||||
@@ -22,6 +27,7 @@ spec:
|
|||||||
label:
|
label:
|
||||||
en_US: Client Secret
|
en_US: Client Secret
|
||||||
zh_Hans: 客户端密钥
|
zh_Hans: 客户端密钥
|
||||||
|
zh_Hant: 用戶端密鑰
|
||||||
type: string
|
type: string
|
||||||
required: true
|
required: true
|
||||||
default: ""
|
default: ""
|
||||||
@@ -29,6 +35,7 @@ spec:
|
|||||||
label:
|
label:
|
||||||
en_US: Robot Code
|
en_US: Robot Code
|
||||||
zh_Hans: 机器人代码
|
zh_Hans: 机器人代码
|
||||||
|
zh_Hant: 機器人代碼
|
||||||
type: string
|
type: string
|
||||||
required: true
|
required: true
|
||||||
default: ""
|
default: ""
|
||||||
@@ -36,6 +43,7 @@ spec:
|
|||||||
label:
|
label:
|
||||||
en_US: Robot Name
|
en_US: Robot Name
|
||||||
zh_Hans: 机器人名称
|
zh_Hans: 机器人名称
|
||||||
|
zh_Hant: 機器人名稱
|
||||||
type: string
|
type: string
|
||||||
required: true
|
required: true
|
||||||
default: ""
|
default: ""
|
||||||
@@ -43,6 +51,7 @@ spec:
|
|||||||
label:
|
label:
|
||||||
en_US: Markdown Card
|
en_US: Markdown Card
|
||||||
zh_Hans: 是否使用 Markdown 卡片
|
zh_Hans: 是否使用 Markdown 卡片
|
||||||
|
zh_Hant: 是否使用 Markdown 卡片
|
||||||
type: boolean
|
type: boolean
|
||||||
required: false
|
required: false
|
||||||
default: true
|
default: true
|
||||||
@@ -50,9 +59,11 @@ spec:
|
|||||||
label:
|
label:
|
||||||
en_US: Enable Stream Reply Mode
|
en_US: Enable Stream Reply Mode
|
||||||
zh_Hans: 启用钉钉卡片流式回复模式
|
zh_Hans: 启用钉钉卡片流式回复模式
|
||||||
|
zh_Hant: 啟用釘釘卡片串流回覆模式
|
||||||
description:
|
description:
|
||||||
en_US: If enabled, the bot will use the stream of lark reply mode
|
en_US: If enabled, the bot will use the stream of lark reply mode
|
||||||
zh_Hans: 如果启用,将使用钉钉卡片流式方式来回复内容
|
zh_Hans: 如果启用,将使用钉钉卡片流式方式来回复内容
|
||||||
|
zh_Hant: 如果啟用,將使用釘釘卡片串流方式來回覆內容
|
||||||
type: boolean
|
type: boolean
|
||||||
required: true
|
required: true
|
||||||
default: false
|
default: false
|
||||||
@@ -60,6 +71,7 @@ spec:
|
|||||||
label:
|
label:
|
||||||
en_US: Card Auto Layout
|
en_US: Card Auto Layout
|
||||||
zh_Hans: 卡片宽屏自动布局
|
zh_Hans: 卡片宽屏自动布局
|
||||||
|
zh_Hant: 卡片寬螢幕自動佈局
|
||||||
type: boolean
|
type: boolean
|
||||||
required: false
|
required: false
|
||||||
default: false
|
default: false
|
||||||
@@ -67,6 +79,7 @@ spec:
|
|||||||
label:
|
label:
|
||||||
en_US: card template id
|
en_US: card template id
|
||||||
zh_Hans: 卡片模板ID
|
zh_Hans: 卡片模板ID
|
||||||
|
zh_Hant: 卡片範本ID
|
||||||
type: string
|
type: string
|
||||||
required: true
|
required: true
|
||||||
default: "填写你的卡片template_id"
|
default: "填写你的卡片template_id"
|
||||||
|
|||||||
@@ -5,17 +5,25 @@ metadata:
|
|||||||
label:
|
label:
|
||||||
en_US: Discord
|
en_US: Discord
|
||||||
zh_Hans: Discord
|
zh_Hans: Discord
|
||||||
|
zh_Hant: Discord
|
||||||
|
ja_JP: Discord
|
||||||
description:
|
description:
|
||||||
en_US: Discord Adapter
|
en_US: Discord Adapter
|
||||||
zh_Hans: Discord 适配器,需要可连接 Discord 服务器的网络环境
|
zh_Hans: Discord 适配器,需要可连接 Discord 服务器的网络环境
|
||||||
ja_JP: Discord アダプター
|
zh_Hant: Discord 適配器,需要可連線 Discord 伺服器的網路環境
|
||||||
|
ja_JP: Discord アダプター、Discord サーバーに接続可能なネットワーク環境が必要です
|
||||||
icon: discord.svg
|
icon: discord.svg
|
||||||
spec:
|
spec:
|
||||||
|
categories:
|
||||||
|
- popular
|
||||||
|
- global
|
||||||
config:
|
config:
|
||||||
- name: client_id
|
- name: client_id
|
||||||
label:
|
label:
|
||||||
en_US: Client ID
|
en_US: Client ID
|
||||||
zh_Hans: 客户端ID
|
zh_Hans: 客户端ID
|
||||||
|
zh_Hant: 用戶端ID
|
||||||
|
ja_JP: クライアント ID
|
||||||
type: string
|
type: string
|
||||||
required: true
|
required: true
|
||||||
default: ""
|
default: ""
|
||||||
@@ -23,6 +31,8 @@ spec:
|
|||||||
label:
|
label:
|
||||||
en_US: Token
|
en_US: Token
|
||||||
zh_Hans: 令牌
|
zh_Hans: 令牌
|
||||||
|
zh_Hant: 令牌
|
||||||
|
ja_JP: トークン
|
||||||
type: string
|
type: string
|
||||||
required: true
|
required: true
|
||||||
default: ""
|
default: ""
|
||||||
|
|||||||
@@ -5,16 +5,21 @@ metadata:
|
|||||||
label:
|
label:
|
||||||
en_US: KOOK
|
en_US: KOOK
|
||||||
zh_Hans: KOOK
|
zh_Hans: KOOK
|
||||||
|
zh_Hant: KOOK
|
||||||
description:
|
description:
|
||||||
en_US: KOOK Adapter (formerly KaiHeiLa)
|
en_US: KOOK Adapter (formerly KaiHeiLa)
|
||||||
zh_Hans: KOOK 适配器(原开黑啦),支持频道消息和私聊消息
|
zh_Hans: KOOK 适配器(原开黑啦),支持频道消息和私聊消息
|
||||||
|
zh_Hant: KOOK 適配器(原開黑啦),支援頻道訊息和私聊訊息
|
||||||
icon: kook.png
|
icon: kook.png
|
||||||
spec:
|
spec:
|
||||||
|
categories:
|
||||||
|
- china
|
||||||
config:
|
config:
|
||||||
- name: token
|
- name: token
|
||||||
label:
|
label:
|
||||||
en_US: Bot Token
|
en_US: Bot Token
|
||||||
zh_Hans: 机器人令牌
|
zh_Hans: 机器人令牌
|
||||||
|
zh_Hant: 機器人令牌
|
||||||
type: string
|
type: string
|
||||||
required: true
|
required: true
|
||||||
default: ""
|
default: ""
|
||||||
|
|||||||
@@ -5,17 +5,26 @@ metadata:
|
|||||||
label:
|
label:
|
||||||
en_US: Lark
|
en_US: Lark
|
||||||
zh_Hans: 飞书
|
zh_Hans: 飞书
|
||||||
|
zh_Hant: 飛書
|
||||||
|
ja_JP: Lark
|
||||||
description:
|
description:
|
||||||
en_US: Lark Adapter, supports both long connection and Webhook modes. Please refer to the documentation for usage details.
|
en_US: Lark Adapter, supports both long connection and Webhook modes. Please refer to the documentation for usage details.
|
||||||
zh_Hans: 飞书适配器,支持长连接和 Webhook 两种接入方式,请查看文档了解使用方式
|
zh_Hans: 飞书适配器,支持长连接和 Webhook 两种接入方式,请查看文档了解使用方式
|
||||||
|
zh_Hant: 飛書適配器,支援長連線和 Webhook 兩種接入方式,請查看文件了解使用方式
|
||||||
ja_JP: Lark アダプター、長期接続およびWebhookモードの両方をサポートしています。使用方法の詳細については、ドキュメントを参照してください。
|
ja_JP: Lark アダプター、長期接続およびWebhookモードの両方をサポートしています。使用方法の詳細については、ドキュメントを参照してください。
|
||||||
icon: lark.svg
|
icon: lark.svg
|
||||||
spec:
|
spec:
|
||||||
|
categories:
|
||||||
|
- popular
|
||||||
|
- china
|
||||||
|
- global
|
||||||
config:
|
config:
|
||||||
- name: app_id
|
- name: app_id
|
||||||
label:
|
label:
|
||||||
en_US: App ID
|
en_US: App ID
|
||||||
zh_Hans: 应用ID
|
zh_Hans: 应用ID
|
||||||
|
zh_Hant: 應用ID
|
||||||
|
ja_JP: アプリ ID
|
||||||
type: string
|
type: string
|
||||||
required: true
|
required: true
|
||||||
default: ""
|
default: ""
|
||||||
@@ -23,6 +32,8 @@ spec:
|
|||||||
label:
|
label:
|
||||||
en_US: App Secret
|
en_US: App Secret
|
||||||
zh_Hans: 应用密钥
|
zh_Hans: 应用密钥
|
||||||
|
zh_Hant: 應用密鑰
|
||||||
|
ja_JP: アプリシークレット
|
||||||
type: string
|
type: string
|
||||||
required: true
|
required: true
|
||||||
default: ""
|
default: ""
|
||||||
@@ -30,9 +41,13 @@ spec:
|
|||||||
label:
|
label:
|
||||||
en_US: Bot Name
|
en_US: Bot Name
|
||||||
zh_Hans: 机器人名称
|
zh_Hans: 机器人名称
|
||||||
|
zh_Hant: 機器人名稱
|
||||||
|
ja_JP: ボット名
|
||||||
description:
|
description:
|
||||||
en_US: Must be the same as the name of the bot in Lark, otherwise the bot will not be able to receive messages in the group
|
en_US: Must be the same as the name of the bot in Lark, otherwise the bot will not be able to receive messages in the group
|
||||||
zh_Hans: 必须与飞书机器人名称一致,否则机器人将无法在群内正常接收消息
|
zh_Hans: 必须与飞书机器人名称一致,否则机器人将无法在群内正常接收消息
|
||||||
|
zh_Hant: 必須與飛書機器人名稱一致,否則機器人將無法在群組內正常接收訊息
|
||||||
|
ja_JP: Lark のボット名と一致する必要があります。一致しない場合、グループ内でメッセージを受信できません
|
||||||
type: string
|
type: string
|
||||||
required: true
|
required: true
|
||||||
default: ""
|
default: ""
|
||||||
@@ -40,9 +55,13 @@ spec:
|
|||||||
label:
|
label:
|
||||||
en_US: Enable Webhook Mode
|
en_US: Enable Webhook Mode
|
||||||
zh_Hans: 启用Webhook模式
|
zh_Hans: 启用Webhook模式
|
||||||
|
zh_Hant: 啟用 Webhook 模式
|
||||||
|
ja_JP: Webhook モードを有効化
|
||||||
description:
|
description:
|
||||||
en_US: If enabled, the bot will use webhook mode to receive messages. Otherwise, it will use WS long connection mode
|
en_US: If enabled, the bot will use webhook mode to receive messages. Otherwise, it will use WS long connection mode
|
||||||
zh_Hans: 如果启用,机器人将使用 Webhook 模式接收消息。否则,将使用 WS 长连接模式
|
zh_Hans: 如果启用,机器人将使用 Webhook 模式接收消息。否则,将使用 WS 长连接模式
|
||||||
|
zh_Hant: 如果啟用,機器人將使用 Webhook 模式接收訊息。否則,將使用 WS 長連線模式
|
||||||
|
ja_JP: 有効にすると、ボットは Webhook モードでメッセージを受信します。無効の場合は WS 長期接続モードを使用します
|
||||||
type: boolean
|
type: boolean
|
||||||
required: true
|
required: true
|
||||||
default: false
|
default: false
|
||||||
@@ -50,9 +69,13 @@ spec:
|
|||||||
label:
|
label:
|
||||||
en_US: Webhook Callback URL
|
en_US: Webhook Callback URL
|
||||||
zh_Hans: Webhook 回调地址
|
zh_Hans: Webhook 回调地址
|
||||||
|
zh_Hant: Webhook 回調地址
|
||||||
|
ja_JP: Webhook コールバック URL
|
||||||
description:
|
description:
|
||||||
en_US: Copy this URL and paste it into your Lark app's webhook configuration
|
en_US: Copy this URL and paste it into your Lark app's webhook configuration
|
||||||
zh_Hans: 复制此地址并粘贴到飞书应用的 Webhook 配置中
|
zh_Hans: 复制此地址并粘贴到飞书应用的 Webhook 配置中
|
||||||
|
zh_Hant: 複製此地址並貼到飛書應用的 Webhook 設定中
|
||||||
|
ja_JP: この URL をコピーして Lark アプリの Webhook 設定に貼り付けてください
|
||||||
type: webhook-url
|
type: webhook-url
|
||||||
required: false
|
required: false
|
||||||
default: ""
|
default: ""
|
||||||
@@ -64,9 +87,13 @@ spec:
|
|||||||
label:
|
label:
|
||||||
en_US: Encrypt Key
|
en_US: Encrypt Key
|
||||||
zh_Hans: 加密密钥
|
zh_Hans: 加密密钥
|
||||||
|
zh_Hant: 加密密鑰
|
||||||
|
ja_JP: 暗号化キー
|
||||||
description:
|
description:
|
||||||
en_US: Only valid when webhook mode is enabled, please fill in the encrypt key
|
en_US: Only valid when webhook mode is enabled, please fill in the encrypt key
|
||||||
zh_Hans: 仅在启用 Webhook 模式时有效,请填写加密密钥
|
zh_Hans: 仅在启用 Webhook 模式时有效,请填写加密密钥
|
||||||
|
zh_Hant: 僅在啟用 Webhook 模式時有效,請填寫加密密鑰
|
||||||
|
ja_JP: Webhook モードが有効な場合にのみ有効です。暗号化キーを入力してください
|
||||||
type: string
|
type: string
|
||||||
required: true
|
required: true
|
||||||
default: ""
|
default: ""
|
||||||
@@ -78,9 +105,13 @@ spec:
|
|||||||
label:
|
label:
|
||||||
en_US: Enable Stream Reply Mode
|
en_US: Enable Stream Reply Mode
|
||||||
zh_Hans: 启用飞书流式回复模式
|
zh_Hans: 启用飞书流式回复模式
|
||||||
|
zh_Hant: 啟用飛書串流回覆模式
|
||||||
|
ja_JP: ストリーミング返信モードを有効化
|
||||||
description:
|
description:
|
||||||
en_US: If enabled, the bot will use the stream of lark reply mode
|
en_US: If enabled, the bot will use the stream of lark reply mode
|
||||||
zh_Hans: 如果启用,将使用飞书流式方式来回复内容
|
zh_Hans: 如果启用,将使用飞书流式方式来回复内容
|
||||||
|
zh_Hant: 如果啟用,將使用飛書串流方式來回覆內容
|
||||||
|
ja_JP: 有効にすると、ボットはストリーミングモードでメッセージに返信します
|
||||||
type: boolean
|
type: boolean
|
||||||
required: true
|
required: true
|
||||||
default: false
|
default: false
|
||||||
@@ -88,28 +119,40 @@ spec:
|
|||||||
label:
|
label:
|
||||||
en_US: App Type
|
en_US: App Type
|
||||||
zh_Hans: 应用类型
|
zh_Hans: 应用类型
|
||||||
|
zh_Hant: 應用類型
|
||||||
|
ja_JP: アプリタイプ
|
||||||
description:
|
description:
|
||||||
en_US: Default to self-built application, refer to https://open.feishu.cn/document/platform-overveiw/overview
|
en_US: Default to self-built application, refer to https://open.feishu.cn/document/platform-overveiw/overview
|
||||||
zh_Hans: 默认为企业自建应用,参考 https://open.feishu.cn/document/platform-overveiw/overview
|
zh_Hans: 默认为企业自建应用,参考 https://open.feishu.cn/document/platform-overveiw/overview
|
||||||
|
zh_Hant: 預設為企業自建應用,參考 https://open.feishu.cn/document/platform-overveiw/overview
|
||||||
|
ja_JP: デフォルトはカスタムアプリです。詳細は https://open.feishu.cn/document/platform-overveiw/overview を参照してください
|
||||||
type: select
|
type: select
|
||||||
options:
|
options:
|
||||||
- name: self
|
- name: self
|
||||||
label:
|
label:
|
||||||
en_US: Self-built Application
|
en_US: Self-built Application
|
||||||
zh_Hans: 自建应用
|
zh_Hans: 自建应用
|
||||||
|
zh_Hant: 自建應用
|
||||||
|
ja_JP: カスタムアプリ
|
||||||
- name: isv
|
- name: isv
|
||||||
label:
|
label:
|
||||||
en_US: Store Application
|
en_US: Store Application
|
||||||
zh_Hans: 商店应用
|
zh_Hans: 商店应用
|
||||||
|
zh_Hant: 商店應用
|
||||||
|
ja_JP: ストアアプリ
|
||||||
required: false
|
required: false
|
||||||
default: self
|
default: self
|
||||||
- name: bot_added_welcome
|
- name: bot_added_welcome
|
||||||
label:
|
label:
|
||||||
en_US: Bot Welcome Message
|
en_US: Bot Welcome Message
|
||||||
zh_Hans: 机器人进群欢迎语
|
zh_Hans: 机器人进群欢迎语
|
||||||
|
zh_Hant: 機器人進群歡迎語
|
||||||
|
ja_JP: ボット参加時のウェルカムメッセージ
|
||||||
description:
|
description:
|
||||||
en_US: Welcome message when the bot is added to a group, supports Markdown format
|
en_US: Welcome message when the bot is added to a group, supports Markdown format
|
||||||
zh_Hans: 机器人进群欢迎语,支持 Markdown 格式
|
zh_Hans: 机器人进群欢迎语,支持 Markdown 格式
|
||||||
|
zh_Hant: 機器人進群歡迎語,支援 Markdown 格式
|
||||||
|
ja_JP: ボットがグループに追加された際のウェルカムメッセージ。Markdown 形式に対応しています
|
||||||
type: text
|
type: text
|
||||||
required: false
|
required: false
|
||||||
default: ""
|
default: ""
|
||||||
|
|||||||
@@ -5,13 +5,16 @@ metadata:
|
|||||||
label:
|
label:
|
||||||
en_US: LINE
|
en_US: LINE
|
||||||
zh_Hans: LINE
|
zh_Hans: LINE
|
||||||
|
zh_Hant: LINE
|
||||||
description:
|
description:
|
||||||
en_US: LINE Adapter, requires a public URL to receive LINE message pushes, please refer to the documentation for usage details
|
en_US: LINE Adapter, requires a public URL to receive LINE message pushes, please refer to the documentation for usage details
|
||||||
zh_Hans: LINE适配器,需要公网地址以接收 LINE 消息推送,请查看文档了解使用方式
|
zh_Hans: LINE适配器,需要公网地址以接收 LINE 消息推送,请查看文档了解使用方式
|
||||||
|
zh_Hant: LINE 適配器,需要公網地址以接收 LINE 訊息推送,請查看文件了解使用方式
|
||||||
ja_JP: LINEアダプター、LINEのメッセージプッシュを受信するためにパブリックURLが必要です。使用方法の詳細については、ドキュメントを参照してください。
|
ja_JP: LINEアダプター、LINEのメッセージプッシュを受信するためにパブリックURLが必要です。使用方法の詳細については、ドキュメントを参照してください。
|
||||||
zh_Hant: LINE適配器,需要公网地址以接收 LINE 消息推送,请查看文档了解使用方式
|
|
||||||
icon: line.png
|
icon: line.png
|
||||||
spec:
|
spec:
|
||||||
|
categories:
|
||||||
|
- global
|
||||||
config:
|
config:
|
||||||
- name: webhook_url
|
- name: webhook_url
|
||||||
label:
|
label:
|
||||||
@@ -23,7 +26,7 @@ spec:
|
|||||||
en_US: Copy this URL and paste it into your LINE channel's webhook configuration
|
en_US: Copy this URL and paste it into your LINE channel's webhook configuration
|
||||||
zh_Hans: 复制此地址并粘贴到 LINE 频道的 Webhook 配置中
|
zh_Hans: 复制此地址并粘贴到 LINE 频道的 Webhook 配置中
|
||||||
ja_JP: この URL をコピーして LINE チャンネルの Webhook 設定に貼り付けてください
|
ja_JP: この URL をコピーして LINE チャンネルの Webhook 設定に貼り付けてください
|
||||||
zh_Hant: 複製此地址並粘貼到 LINE 頻道的 Webhook 配置中
|
zh_Hant: 複製此地址並貼到 LINE 頻道的 Webhook 設定中
|
||||||
type: webhook-url
|
type: webhook-url
|
||||||
required: false
|
required: false
|
||||||
default: ""
|
default: ""
|
||||||
@@ -32,7 +35,7 @@ spec:
|
|||||||
en_US: Channel access token
|
en_US: Channel access token
|
||||||
zh_Hans: 频道访问令牌
|
zh_Hans: 频道访问令牌
|
||||||
ja_JP: チャンネルアクセストークン
|
ja_JP: チャンネルアクセストークン
|
||||||
zh_Hant: 頻道訪問令牌
|
zh_Hant: 頻道存取令牌
|
||||||
type: string
|
type: string
|
||||||
required: true
|
required: true
|
||||||
default: ""
|
default: ""
|
||||||
@@ -41,12 +44,12 @@ spec:
|
|||||||
en_US: Channel secret
|
en_US: Channel secret
|
||||||
zh_Hans: 消息密钥
|
zh_Hans: 消息密钥
|
||||||
ja_JP: チャンネルシークレット
|
ja_JP: チャンネルシークレット
|
||||||
zh_Hant: 消息密钥
|
zh_Hant: 訊息密鑰
|
||||||
description:
|
description:
|
||||||
en_US: Only valid when webhook mode is enabled, please fill in the encrypt key
|
en_US: Only valid when webhook mode is enabled, please fill in the encrypt key
|
||||||
zh_Hans: 请填写加密密钥
|
zh_Hans: 请填写加密密钥
|
||||||
ja_JP: Webhookモードが有効な場合にのみ、暗号化キーを入力してください
|
ja_JP: Webhookモードが有効な場合にのみ、暗号化キーを入力してください
|
||||||
zh_Hant: 請填寫加密密钥
|
zh_Hant: 請填寫加密密鑰
|
||||||
type: string
|
type: string
|
||||||
required: true
|
required: true
|
||||||
default: ""
|
default: ""
|
||||||
|
|||||||
@@ -5,19 +5,25 @@ metadata:
|
|||||||
label:
|
label:
|
||||||
en_US: Official Account
|
en_US: Official Account
|
||||||
zh_Hans: 微信公众号
|
zh_Hans: 微信公众号
|
||||||
|
zh_Hant: 微信公眾號
|
||||||
description:
|
description:
|
||||||
en_US: Official Account Adapter
|
en_US: Official Account Adapter
|
||||||
zh_Hans: 微信公众号适配器,需要公网地址以接收消息推送,请查看文档了解使用方式
|
zh_Hans: 微信公众号适配器,需要公网地址以接收消息推送,请查看文档了解使用方式
|
||||||
|
zh_Hant: 微信公眾號適配器,需要公網地址以接收訊息推送,請查看文件了解使用方式
|
||||||
icon: officialaccount.png
|
icon: officialaccount.png
|
||||||
spec:
|
spec:
|
||||||
|
categories:
|
||||||
|
- china
|
||||||
config:
|
config:
|
||||||
- name: webhook_url
|
- name: webhook_url
|
||||||
label:
|
label:
|
||||||
en_US: Webhook Callback URL
|
en_US: Webhook Callback URL
|
||||||
zh_Hans: Webhook 回调地址
|
zh_Hans: Webhook 回调地址
|
||||||
|
zh_Hant: Webhook 回調地址
|
||||||
description:
|
description:
|
||||||
en_US: Copy this URL and paste it into your Official Account webhook configuration
|
en_US: Copy this URL and paste it into your Official Account webhook configuration
|
||||||
zh_Hans: 复制此地址并粘贴到微信公众号的 Webhook 配置中
|
zh_Hans: 复制此地址并粘贴到微信公众号的 Webhook 配置中
|
||||||
|
zh_Hant: 複製此地址並貼到微信公眾號的 Webhook 設定中
|
||||||
type: webhook-url
|
type: webhook-url
|
||||||
required: false
|
required: false
|
||||||
default: ""
|
default: ""
|
||||||
@@ -25,13 +31,14 @@ spec:
|
|||||||
label:
|
label:
|
||||||
en_US: Token
|
en_US: Token
|
||||||
zh_Hans: 令牌
|
zh_Hans: 令牌
|
||||||
type: string
|
zh_Hant: 令牌
|
||||||
required: true
|
required: true
|
||||||
default: ""
|
default: ""
|
||||||
- name: EncodingAESKey
|
- name: EncodingAESKey
|
||||||
label:
|
label:
|
||||||
en_US: EncodingAESKey
|
en_US: EncodingAESKey
|
||||||
zh_Hans: 消息加解密密钥
|
zh_Hans: 消息加解密密钥
|
||||||
|
zh_Hant: 訊息加解密密鑰
|
||||||
type: string
|
type: string
|
||||||
required: true
|
required: true
|
||||||
default: ""
|
default: ""
|
||||||
@@ -39,6 +46,7 @@ spec:
|
|||||||
label:
|
label:
|
||||||
en_US: App ID
|
en_US: App ID
|
||||||
zh_Hans: 应用ID
|
zh_Hans: 应用ID
|
||||||
|
zh_Hant: 應用ID
|
||||||
type: string
|
type: string
|
||||||
required: true
|
required: true
|
||||||
default: ""
|
default: ""
|
||||||
@@ -46,6 +54,7 @@ spec:
|
|||||||
label:
|
label:
|
||||||
en_US: App Secret
|
en_US: App Secret
|
||||||
zh_Hans: 应用密钥
|
zh_Hans: 应用密钥
|
||||||
|
zh_Hant: 應用密鑰
|
||||||
type: string
|
type: string
|
||||||
required: true
|
required: true
|
||||||
default: ""
|
default: ""
|
||||||
@@ -53,6 +62,7 @@ spec:
|
|||||||
label:
|
label:
|
||||||
en_US: Mode
|
en_US: Mode
|
||||||
zh_Hans: 接入模式
|
zh_Hans: 接入模式
|
||||||
|
zh_Hant: 接入模式
|
||||||
type: string
|
type: string
|
||||||
required: true
|
required: true
|
||||||
default: "drop"
|
default: "drop"
|
||||||
@@ -60,6 +70,7 @@ spec:
|
|||||||
label:
|
label:
|
||||||
en_US: Loading Message
|
en_US: Loading Message
|
||||||
zh_Hans: 加载消息
|
zh_Hans: 加载消息
|
||||||
|
zh_Hant: 載入訊息
|
||||||
type: string
|
type: string
|
||||||
required: true
|
required: true
|
||||||
default: "AI正在思考中,请发送任意内容获取回复。"
|
default: "AI正在思考中,请发送任意内容获取回复。"
|
||||||
@@ -67,9 +78,11 @@ spec:
|
|||||||
label:
|
label:
|
||||||
en_US: API Base URL
|
en_US: API Base URL
|
||||||
zh_Hans: API 基础 URL
|
zh_Hans: API 基础 URL
|
||||||
|
zh_Hant: API 基礎 URL
|
||||||
description:
|
description:
|
||||||
en_US: API Base URL, used for accessing the Official Account API. If you are deploying in an internal network environment and accessing the Official Account API through a reverse proxy, please fill in this item according to the documentation.
|
en_US: API Base URL, used for accessing the Official Account API. If you are deploying in an internal network environment and accessing the Official Account API through a reverse proxy, please fill in this item according to the documentation.
|
||||||
zh_Hans: 可选,若您部署在内网环境并通过反向代理访问微信公众号 API,可根据文档修改此项
|
zh_Hans: 可选,若您部署在内网环境并通过反向代理访问微信公众号 API,可根据文档修改此项
|
||||||
|
zh_Hant: 可選,若您部署在內網環境並透過反向代理存取微信公眾號 API,可根據文件修改此項
|
||||||
type: string
|
type: string
|
||||||
required: false
|
required: false
|
||||||
default: "https://api.weixin.qq.com"
|
default: "https://api.weixin.qq.com"
|
||||||
|
|||||||
@@ -5,19 +5,26 @@ metadata:
|
|||||||
label:
|
label:
|
||||||
en_US: OpenClaw WeChat
|
en_US: OpenClaw WeChat
|
||||||
zh_Hans: 个人微信机器人
|
zh_Hans: 个人微信机器人
|
||||||
|
zh_Hant: 個人微信機器人
|
||||||
description:
|
description:
|
||||||
en_US: OpenClaw WeChat adapter, supports personal WeChat via QR code login
|
en_US: OpenClaw WeChat adapter, supports personal WeChat via QR code login
|
||||||
zh_Hans: 微信官方个人助手,扫码即可登录使用
|
zh_Hans: 微信官方个人助手,扫码即可登录使用
|
||||||
|
zh_Hant: 微信官方個人助手,掃碼即可登入使用
|
||||||
icon: wechat.png
|
icon: wechat.png
|
||||||
spec:
|
spec:
|
||||||
|
categories:
|
||||||
|
- popular
|
||||||
|
- china
|
||||||
config:
|
config:
|
||||||
- name: base_url
|
- name: base_url
|
||||||
label:
|
label:
|
||||||
en_US: API Base URL
|
en_US: API Base URL
|
||||||
zh_Hans: API 基础地址
|
zh_Hans: API 基础地址
|
||||||
|
zh_Hant: API 基礎地址
|
||||||
description:
|
description:
|
||||||
en_US: The base URL of the OpenClaw WeChat backend API
|
en_US: The base URL of the OpenClaw WeChat backend API
|
||||||
zh_Hans: OpenClaw 微信后端 API 的基础地址
|
zh_Hans: OpenClaw 微信后端 API 的基础地址
|
||||||
|
zh_Hant: OpenClaw 微信後端 API 的基礎地址
|
||||||
type: string
|
type: string
|
||||||
required: true
|
required: true
|
||||||
default: "https://ilinkai.weixin.qq.com"
|
default: "https://ilinkai.weixin.qq.com"
|
||||||
@@ -25,9 +32,11 @@ spec:
|
|||||||
label:
|
label:
|
||||||
en_US: Token
|
en_US: Token
|
||||||
zh_Hans: 令牌
|
zh_Hans: 令牌
|
||||||
|
zh_Hant: 令牌
|
||||||
description:
|
description:
|
||||||
en_US: Bearer token obtained after QR code login authorization. Leave empty to trigger QR code login on startup.
|
en_US: Bearer token obtained after QR code login authorization. Leave empty to trigger QR code login on startup.
|
||||||
zh_Hans: 扫码登录授权后获取的 Bearer 令牌。请留空并保存,将在启动时输出二维码到日志,扫码后即可自动登录。
|
zh_Hans: 扫码登录授权后获取的 Bearer 令牌。请留空并保存,将在启动时输出二维码到日志,扫码后即可自动登录。
|
||||||
|
zh_Hant: 掃碼登入授權後取得的 Bearer 令牌。請留空並儲存,將在啟動時輸出 QR Code 到日誌,掃碼後即可自動登入。
|
||||||
type: string
|
type: string
|
||||||
required: false
|
required: false
|
||||||
default: ""
|
default: ""
|
||||||
@@ -35,9 +44,11 @@ spec:
|
|||||||
label:
|
label:
|
||||||
en_US: Account ID
|
en_US: Account ID
|
||||||
zh_Hans: 账号标识
|
zh_Hans: 账号标识
|
||||||
|
zh_Hant: 帳號標識
|
||||||
description:
|
description:
|
||||||
en_US: A label for this WeChat account (used for display purposes)
|
en_US: A label for this WeChat account (used for display purposes)
|
||||||
zh_Hans: 此微信账号的标识(用于显示)
|
zh_Hans: 此微信账号的标识(用于显示)
|
||||||
|
zh_Hant: 此微信帳號的標識(用於顯示)
|
||||||
type: string
|
type: string
|
||||||
required: false
|
required: false
|
||||||
default: "openclaw-weixin"
|
default: "openclaw-weixin"
|
||||||
@@ -45,9 +56,11 @@ spec:
|
|||||||
label:
|
label:
|
||||||
en_US: Poll Timeout (seconds)
|
en_US: Poll Timeout (seconds)
|
||||||
zh_Hans: 轮询超时(秒)
|
zh_Hans: 轮询超时(秒)
|
||||||
|
zh_Hant: 輪詢逾時(秒)
|
||||||
description:
|
description:
|
||||||
en_US: Long-poll timeout for getUpdates, the server may hold the request up to this duration
|
en_US: Long-poll timeout for getUpdates, the server may hold the request up to this duration
|
||||||
zh_Hans: getUpdates 长轮询超时时间,服务端最多持有请求的时长
|
zh_Hans: getUpdates 长轮询超时时间,服务端最多持有请求的时长
|
||||||
|
zh_Hant: getUpdates 長輪詢逾時時間,伺服端最多持有請求的時長
|
||||||
type: integer
|
type: integer
|
||||||
required: false
|
required: false
|
||||||
default: 35
|
default: 35
|
||||||
|
|||||||
@@ -5,19 +5,25 @@ metadata:
|
|||||||
label:
|
label:
|
||||||
en_US: QQ Official API
|
en_US: QQ Official API
|
||||||
zh_Hans: QQ 官方 API
|
zh_Hans: QQ 官方 API
|
||||||
|
zh_Hant: QQ 官方 API
|
||||||
description:
|
description:
|
||||||
en_US: QQ Official API (Webhook)
|
en_US: QQ Official API (Webhook)
|
||||||
zh_Hans: QQ 官方 API (Webhook),需要公网地址以接收消息推送,请查看文档了解使用方式
|
zh_Hans: QQ 官方 API (Webhook),需要公网地址以接收消息推送,请查看文档了解使用方式
|
||||||
|
zh_Hant: QQ 官方 API (Webhook),需要公網地址以接收訊息推送,請查看文件了解使用方式
|
||||||
icon: qqofficial.svg
|
icon: qqofficial.svg
|
||||||
spec:
|
spec:
|
||||||
|
categories:
|
||||||
|
- china
|
||||||
config:
|
config:
|
||||||
- name: webhook_url
|
- name: webhook_url
|
||||||
label:
|
label:
|
||||||
en_US: Webhook Callback URL
|
en_US: Webhook Callback URL
|
||||||
zh_Hans: Webhook 回调地址
|
zh_Hans: Webhook 回调地址
|
||||||
|
zh_Hant: Webhook 回調地址
|
||||||
description:
|
description:
|
||||||
en_US: Copy this URL and paste it into your QQ Official API webhook configuration
|
en_US: Copy this URL and paste it into your QQ Official API webhook configuration
|
||||||
zh_Hans: 复制此地址并粘贴到 QQ 官方 API 的 Webhook 配置中
|
zh_Hans: 复制此地址并粘贴到 QQ 官方 API 的 Webhook 配置中
|
||||||
|
zh_Hant: 複製此地址並貼到 QQ 官方 API 的 Webhook 設定中
|
||||||
type: webhook-url
|
type: webhook-url
|
||||||
required: false
|
required: false
|
||||||
default: ""
|
default: ""
|
||||||
@@ -25,6 +31,7 @@ spec:
|
|||||||
label:
|
label:
|
||||||
en_US: App ID
|
en_US: App ID
|
||||||
zh_Hans: 应用ID
|
zh_Hans: 应用ID
|
||||||
|
zh_Hant: 應用ID
|
||||||
type: string
|
type: string
|
||||||
required: true
|
required: true
|
||||||
default: ""
|
default: ""
|
||||||
@@ -32,6 +39,7 @@ spec:
|
|||||||
label:
|
label:
|
||||||
en_US: Secret
|
en_US: Secret
|
||||||
zh_Hans: 密钥
|
zh_Hans: 密钥
|
||||||
|
zh_Hant: 密鑰
|
||||||
type: string
|
type: string
|
||||||
required: true
|
required: true
|
||||||
default: ""
|
default: ""
|
||||||
@@ -39,6 +47,7 @@ spec:
|
|||||||
label:
|
label:
|
||||||
en_US: Token
|
en_US: Token
|
||||||
zh_Hans: 令牌
|
zh_Hans: 令牌
|
||||||
|
zh_Hant: 令牌
|
||||||
type: string
|
type: string
|
||||||
required: true
|
required: true
|
||||||
default: ""
|
default: ""
|
||||||
|
|||||||
@@ -5,36 +5,45 @@ metadata:
|
|||||||
label:
|
label:
|
||||||
en_US: Satori
|
en_US: Satori
|
||||||
zh_Hans: Satori
|
zh_Hans: Satori
|
||||||
|
zh_Hant: Satori
|
||||||
description:
|
description:
|
||||||
en_US: SatoriAdapter
|
en_US: SatoriAdapter
|
||||||
zh_Hans: Satori 协议适配器,支持多种平台的接入,请查看文档了解使用方式
|
zh_Hans: Satori 协议适配器,支持多种平台的接入,请查看文档了解使用方式
|
||||||
|
zh_Hant: Satori 協定適配器,支援多種平台的接入,請查看文件了解使用方式
|
||||||
icon: satori.png
|
icon: satori.png
|
||||||
spec:
|
spec:
|
||||||
|
categories:
|
||||||
|
- protocol
|
||||||
config:
|
config:
|
||||||
- name: platform
|
- name: platform
|
||||||
label:
|
label:
|
||||||
en_US: Platform
|
en_US: Platform
|
||||||
zh_Hans: 平台名称
|
zh_Hans: 平台名称
|
||||||
|
zh_Hant: 平台名稱
|
||||||
type: string
|
type: string
|
||||||
required: true
|
required: true
|
||||||
default: "llonebot"
|
default: "llonebot"
|
||||||
description:
|
description:
|
||||||
en_US: The platform name (e.g., llonebot, discord, telegram)
|
en_US: The platform name (e.g., llonebot, discord, telegram)
|
||||||
zh_Hans: 平台名称(如 llonebot, discord, telegram)
|
zh_Hans: 平台名称(如 llonebot, discord, telegram)
|
||||||
|
zh_Hant: 平台名稱(如 llonebot、discord、telegram)
|
||||||
- name: host
|
- name: host
|
||||||
label:
|
label:
|
||||||
en_US: Host
|
en_US: Host
|
||||||
zh_Hans: 主机地址
|
zh_Hans: 主机地址
|
||||||
|
zh_Hant: 主機地址
|
||||||
type: string
|
type: string
|
||||||
required: true
|
required: true
|
||||||
default: "127.0.0.1"
|
default: "127.0.0.1"
|
||||||
description:
|
description:
|
||||||
en_US: The host address of LLOneBot Satori server (e.g., 127.0.0.1, localhost, 192.168.1.100)
|
en_US: The host address of LLOneBot Satori server (e.g., 127.0.0.1, localhost, 192.168.1.100)
|
||||||
zh_Hans: LLOneBot Satori服务器的主机地址(如 127.0.0.1, localhost, 192.168.1.100)
|
zh_Hans: LLOneBot Satori服务器的主机地址(如 127.0.0.1, localhost, 192.168.1.100)
|
||||||
|
zh_Hant: LLOneBot Satori 伺服器的主機地址(如 127.0.0.1、localhost、192.168.1.100)
|
||||||
- name: port
|
- name: port
|
||||||
label:
|
label:
|
||||||
en_US: Port
|
en_US: Port
|
||||||
zh_Hans: 监听端口
|
zh_Hans: 监听端口
|
||||||
|
zh_Hant: 監聽連接埠
|
||||||
type: integer
|
type: integer
|
||||||
required: true
|
required: true
|
||||||
default: 5600
|
default: 5600
|
||||||
@@ -42,6 +51,7 @@ spec:
|
|||||||
label:
|
label:
|
||||||
en_US: Satori API Endpoint
|
en_US: Satori API Endpoint
|
||||||
zh_Hans: Satori API 终结点
|
zh_Hans: Satori API 终结点
|
||||||
|
zh_Hant: Satori API 端點
|
||||||
type: string
|
type: string
|
||||||
required: true
|
required: true
|
||||||
default: "http://localhost:5600/v1"
|
default: "http://localhost:5600/v1"
|
||||||
@@ -49,6 +59,7 @@ spec:
|
|||||||
label:
|
label:
|
||||||
en_US: Satori WebSocket Endpoint
|
en_US: Satori WebSocket Endpoint
|
||||||
zh_Hans: Satori WebSocket 终结点
|
zh_Hans: Satori WebSocket 终结点
|
||||||
|
zh_Hant: Satori WebSocket 端點
|
||||||
type: string
|
type: string
|
||||||
required: true
|
required: true
|
||||||
default: "ws://localhost:5600/v1/events"
|
default: "ws://localhost:5600/v1/events"
|
||||||
@@ -56,6 +67,7 @@ spec:
|
|||||||
label:
|
label:
|
||||||
en_US: Token
|
en_US: Token
|
||||||
zh_Hans: 令牌
|
zh_Hans: 令牌
|
||||||
|
zh_Hant: 令牌
|
||||||
type: string
|
type: string
|
||||||
required: true
|
required: true
|
||||||
default: ""
|
default: ""
|
||||||
|
|||||||
@@ -5,21 +5,30 @@ metadata:
|
|||||||
label:
|
label:
|
||||||
en_US: Slack
|
en_US: Slack
|
||||||
zh_Hans: Slack
|
zh_Hans: Slack
|
||||||
|
zh_Hant: Slack
|
||||||
|
ja_JP: Slack
|
||||||
description:
|
description:
|
||||||
en_US: Slack Adapter
|
en_US: Slack Adapter
|
||||||
zh_Hans: Slack 适配器,需要公网地址以接收 Slack 消息推送,请查看文档了解使用方式
|
zh_Hans: Slack 适配器,需要公网地址以接收 Slack 消息推送,请查看文档了解使用方式
|
||||||
|
zh_Hant: Slack 適配器,需要公網地址以接收 Slack 訊息推送,請查看文件了解使用方式
|
||||||
ja_JP: Slack アダプター、Slackのメッセージプッシュを受信するためにパブリックURLが必要です。使用方法の詳細については、ドキュメントを参照してください。
|
ja_JP: Slack アダプター、Slackのメッセージプッシュを受信するためにパブリックURLが必要です。使用方法の詳細については、ドキュメントを参照してください。
|
||||||
zh_Hant: Slack 适配器,需要公网地址以接收 Slack 消息推送,请查看文档了解使用方式
|
|
||||||
icon: slack.png
|
icon: slack.png
|
||||||
spec:
|
spec:
|
||||||
|
categories:
|
||||||
|
- popular
|
||||||
|
- global
|
||||||
config:
|
config:
|
||||||
- name: webhook_url
|
- name: webhook_url
|
||||||
label:
|
label:
|
||||||
en_US: Webhook Callback URL
|
en_US: Webhook Callback URL
|
||||||
zh_Hans: Webhook 回调地址
|
zh_Hans: Webhook 回调地址
|
||||||
|
zh_Hant: Webhook 回調地址
|
||||||
|
ja_JP: Webhook コールバック URL
|
||||||
description:
|
description:
|
||||||
en_US: Copy this URL and paste it into your Slack app's event subscription configuration
|
en_US: Copy this URL and paste it into your Slack app's event subscription configuration
|
||||||
zh_Hans: 复制此地址并粘贴到 Slack 应用的事件订阅配置中
|
zh_Hans: 复制此地址并粘贴到 Slack 应用的事件订阅配置中
|
||||||
|
zh_Hant: 複製此地址並貼到 Slack 應用的事件訂閱設定中
|
||||||
|
ja_JP: この URL をコピーして Slack アプリのイベントサブスクリプション設定に貼り付けてください
|
||||||
type: webhook-url
|
type: webhook-url
|
||||||
required: false
|
required: false
|
||||||
default: ""
|
default: ""
|
||||||
@@ -27,6 +36,8 @@ spec:
|
|||||||
label:
|
label:
|
||||||
en_US: Bot Token
|
en_US: Bot Token
|
||||||
zh_Hans: 机器人令牌
|
zh_Hans: 机器人令牌
|
||||||
|
zh_Hant: 機器人令牌
|
||||||
|
ja_JP: ボットトークン
|
||||||
type: string
|
type: string
|
||||||
required: true
|
required: true
|
||||||
default: ""
|
default: ""
|
||||||
@@ -34,6 +45,8 @@ spec:
|
|||||||
label:
|
label:
|
||||||
en_US: signing_secret
|
en_US: signing_secret
|
||||||
zh_Hans: 密钥
|
zh_Hans: 密钥
|
||||||
|
zh_Hant: 密鑰
|
||||||
|
ja_JP: 署名シークレット
|
||||||
type: string
|
type: string
|
||||||
required: true
|
required: true
|
||||||
default: ""
|
default: ""
|
||||||
|
|||||||
@@ -5,16 +5,25 @@ metadata:
|
|||||||
label:
|
label:
|
||||||
en_US: Telegram
|
en_US: Telegram
|
||||||
zh_Hans: 电报
|
zh_Hans: 电报
|
||||||
|
zh_Hant: Telegram
|
||||||
|
ja_JP: Telegram
|
||||||
description:
|
description:
|
||||||
en_US: Telegram Adapter
|
en_US: Telegram Adapter
|
||||||
zh_Hans: Telegram 适配器,请查看文档了解使用方式
|
zh_Hans: Telegram 适配器,请查看文档了解使用方式
|
||||||
|
zh_Hant: Telegram 適配器,請查看文件了解使用方式
|
||||||
|
ja_JP: Telegram アダプター。使用方法の詳細については、ドキュメントを参照してください。
|
||||||
icon: telegram.svg
|
icon: telegram.svg
|
||||||
spec:
|
spec:
|
||||||
|
categories:
|
||||||
|
- popular
|
||||||
|
- global
|
||||||
config:
|
config:
|
||||||
- name: token
|
- name: token
|
||||||
label:
|
label:
|
||||||
en_US: Token
|
en_US: Token
|
||||||
zh_Hans: 令牌
|
zh_Hans: 令牌
|
||||||
|
zh_Hant: 令牌
|
||||||
|
ja_JP: トークン
|
||||||
type: string
|
type: string
|
||||||
required: true
|
required: true
|
||||||
default: "token_from_botfather"
|
default: "token_from_botfather"
|
||||||
@@ -22,6 +31,8 @@ spec:
|
|||||||
label:
|
label:
|
||||||
en_US: Markdown Card
|
en_US: Markdown Card
|
||||||
zh_Hans: 是否使用 Markdown 卡片
|
zh_Hans: 是否使用 Markdown 卡片
|
||||||
|
zh_Hant: 是否使用 Markdown 卡片
|
||||||
|
ja_JP: Markdown カードを使用
|
||||||
type: boolean
|
type: boolean
|
||||||
required: false
|
required: false
|
||||||
default: true
|
default: true
|
||||||
@@ -29,9 +40,13 @@ spec:
|
|||||||
label:
|
label:
|
||||||
en_US: Enable Stream Reply Mode
|
en_US: Enable Stream Reply Mode
|
||||||
zh_Hans: 启用电报流式回复模式
|
zh_Hans: 启用电报流式回复模式
|
||||||
|
zh_Hant: 啟用 Telegram 串流回覆模式
|
||||||
|
ja_JP: ストリーミング返信モードを有効化
|
||||||
description:
|
description:
|
||||||
en_US: If enabled, the bot will use the stream of telegram reply mode
|
en_US: If enabled, the bot will use the stream of telegram reply mode
|
||||||
zh_Hans: 如果启用,将使用电报流式方式来回复内容
|
zh_Hans: 如果启用,将使用电报流式方式来回复内容
|
||||||
|
zh_Hant: 如果啟用,將使用 Telegram 串流方式來回覆內容
|
||||||
|
ja_JP: 有効にすると、ボットはストリーミングモードでメッセージに返信します
|
||||||
type: boolean
|
type: boolean
|
||||||
required: true
|
required: true
|
||||||
default: false
|
default: false
|
||||||
|
|||||||
@@ -5,11 +5,15 @@ metadata:
|
|||||||
label:
|
label:
|
||||||
en_US: "WebSocket Chat"
|
en_US: "WebSocket Chat"
|
||||||
zh_Hans: "WebSocket 聊天"
|
zh_Hans: "WebSocket 聊天"
|
||||||
|
zh_Hant: "WebSocket 聊天"
|
||||||
description:
|
description:
|
||||||
en_US: "WebSocket adapter for bidirectional real-time communication"
|
en_US: "WebSocket adapter for bidirectional real-time communication"
|
||||||
zh_Hans: "用于双向实时通信的 WebSocket 适配器"
|
zh_Hans: "用于双向实时通信的 WebSocket 适配器"
|
||||||
|
zh_Hant: "用於雙向即時通訊的 WebSocket 適配器"
|
||||||
icon: ""
|
icon: ""
|
||||||
spec:
|
spec:
|
||||||
|
categories:
|
||||||
|
- protocol
|
||||||
config: []
|
config: []
|
||||||
execution:
|
execution:
|
||||||
python:
|
python:
|
||||||
|
|||||||
@@ -5,16 +5,21 @@ metadata:
|
|||||||
label:
|
label:
|
||||||
en_US: WeChatPad
|
en_US: WeChatPad
|
||||||
zh_Hans: WeChatPad(个人微信ipad)
|
zh_Hans: WeChatPad(个人微信ipad)
|
||||||
|
zh_Hant: WeChatPad(個人微信iPad)
|
||||||
description:
|
description:
|
||||||
en_US: WeChatPad Adapter
|
en_US: WeChatPad Adapter
|
||||||
zh_Hans: WeChatPad 适配器,基于WeChatPad的个人微信解决方案,请查看文档了解使用方式
|
zh_Hans: WeChatPad 适配器,基于WeChatPad的个人微信解决方案,请查看文档了解使用方式
|
||||||
|
zh_Hant: WeChatPad 適配器,基於 WeChatPad 的個人微信解決方案,請查看文件了解使用方式
|
||||||
icon: wechatpad.png
|
icon: wechatpad.png
|
||||||
spec:
|
spec:
|
||||||
|
categories:
|
||||||
|
- china
|
||||||
config:
|
config:
|
||||||
- name: wechatpad_url
|
- name: wechatpad_url
|
||||||
label:
|
label:
|
||||||
en_US: WeChatPad ERL
|
en_US: WeChatPad ERL
|
||||||
zh_CN: WeChatPad URL
|
zh_CN: WeChatPad URL
|
||||||
|
zh_Hant: WeChatPad URL
|
||||||
type: string
|
type: string
|
||||||
required: true
|
required: true
|
||||||
default: ""
|
default: ""
|
||||||
@@ -22,6 +27,7 @@ spec:
|
|||||||
label:
|
label:
|
||||||
en_US: WeChatPad_Ws
|
en_US: WeChatPad_Ws
|
||||||
zh_CN: WeChatPad_Ws
|
zh_CN: WeChatPad_Ws
|
||||||
|
zh_Hant: WeChatPad_Ws
|
||||||
type: string
|
type: string
|
||||||
required: true
|
required: true
|
||||||
default: ""
|
default: ""
|
||||||
@@ -29,6 +35,7 @@ spec:
|
|||||||
label:
|
label:
|
||||||
en_US: Admin_Key
|
en_US: Admin_Key
|
||||||
zh_CN: 管理员密匙
|
zh_CN: 管理员密匙
|
||||||
|
zh_Hant: 管理員密鑰
|
||||||
type: string
|
type: string
|
||||||
required: true
|
required: true
|
||||||
default: ""
|
default: ""
|
||||||
@@ -36,6 +43,7 @@ spec:
|
|||||||
label:
|
label:
|
||||||
en_US: Token
|
en_US: Token
|
||||||
zh_CN: 令牌
|
zh_CN: 令牌
|
||||||
|
zh_Hant: 令牌
|
||||||
type: string
|
type: string
|
||||||
required: true
|
required: true
|
||||||
default: ""
|
default: ""
|
||||||
@@ -43,6 +51,7 @@ spec:
|
|||||||
label:
|
label:
|
||||||
en_US: wxid
|
en_US: wxid
|
||||||
zh_CN: wxid
|
zh_CN: wxid
|
||||||
|
zh_Hant: wxid
|
||||||
type: string
|
type: string
|
||||||
required: true
|
required: true
|
||||||
default: ""
|
default: ""
|
||||||
|
|||||||
@@ -5,19 +5,26 @@ metadata:
|
|||||||
label:
|
label:
|
||||||
en_US: WeCom
|
en_US: WeCom
|
||||||
zh_Hans: 企业微信
|
zh_Hans: 企业微信
|
||||||
|
zh_Hant: 企業微信
|
||||||
description:
|
description:
|
||||||
en_US: WeCom Adapter
|
en_US: WeCom Adapter
|
||||||
zh_Hans: 企业微信内部机器人,请查看文档了解使用方式
|
zh_Hans: 企业微信内部机器人,请查看文档了解使用方式
|
||||||
|
zh_Hant: 企業微信內部機器人,請查看文件了解使用方式
|
||||||
icon: wecom.png
|
icon: wecom.png
|
||||||
spec:
|
spec:
|
||||||
|
categories:
|
||||||
|
- popular
|
||||||
|
- china
|
||||||
config:
|
config:
|
||||||
- name: webhook_url
|
- name: webhook_url
|
||||||
label:
|
label:
|
||||||
en_US: Webhook Callback URL
|
en_US: Webhook Callback URL
|
||||||
zh_Hans: Webhook 回调地址
|
zh_Hans: Webhook 回调地址
|
||||||
|
zh_Hant: Webhook 回調地址
|
||||||
description:
|
description:
|
||||||
en_US: Copy this URL and paste it into your WeCom app's webhook configuration
|
en_US: Copy this URL and paste it into your WeCom app's webhook configuration
|
||||||
zh_Hans: 复制此地址并粘贴到企业微信应用的 Webhook 配置中
|
zh_Hans: 复制此地址并粘贴到企业微信应用的 Webhook 配置中
|
||||||
|
zh_Hant: 複製此地址並貼到企業微信應用的 Webhook 設定中
|
||||||
type: webhook-url
|
type: webhook-url
|
||||||
required: false
|
required: false
|
||||||
default: ""
|
default: ""
|
||||||
@@ -25,6 +32,7 @@ spec:
|
|||||||
label:
|
label:
|
||||||
en_US: Corpid
|
en_US: Corpid
|
||||||
zh_Hans: 企业ID
|
zh_Hans: 企业ID
|
||||||
|
zh_Hant: 企業ID
|
||||||
type: string
|
type: string
|
||||||
required: true
|
required: true
|
||||||
default: ""
|
default: ""
|
||||||
@@ -32,6 +40,7 @@ spec:
|
|||||||
label:
|
label:
|
||||||
en_US: Secret
|
en_US: Secret
|
||||||
zh_Hans: 密钥 (Secret)
|
zh_Hans: 密钥 (Secret)
|
||||||
|
zh_Hant: 密鑰 (Secret)
|
||||||
type: string
|
type: string
|
||||||
required: true
|
required: true
|
||||||
default: ""
|
default: ""
|
||||||
@@ -39,6 +48,7 @@ spec:
|
|||||||
label:
|
label:
|
||||||
en_US: Token
|
en_US: Token
|
||||||
zh_Hans: 令牌 (Token)
|
zh_Hans: 令牌 (Token)
|
||||||
|
zh_Hant: 令牌 (Token)
|
||||||
type: string
|
type: string
|
||||||
required: true
|
required: true
|
||||||
default: ""
|
default: ""
|
||||||
@@ -46,6 +56,7 @@ spec:
|
|||||||
label:
|
label:
|
||||||
en_US: EncodingAESKey
|
en_US: EncodingAESKey
|
||||||
zh_Hans: 消息加解密密钥 (EncodingAESKey)
|
zh_Hans: 消息加解密密钥 (EncodingAESKey)
|
||||||
|
zh_Hant: 訊息加解密密鑰 (EncodingAESKey)
|
||||||
type: string
|
type: string
|
||||||
required: true
|
required: true
|
||||||
default: ""
|
default: ""
|
||||||
@@ -53,9 +64,11 @@ spec:
|
|||||||
label:
|
label:
|
||||||
en_US: API Base URL
|
en_US: API Base URL
|
||||||
zh_Hans: API 基础 URL
|
zh_Hans: API 基础 URL
|
||||||
|
zh_Hant: API 基礎 URL
|
||||||
description:
|
description:
|
||||||
en_US: API Base URL, used for accessing the WeCom API. If you are deploying in an internal network environment and accessing the WeCom Customer Service API through a reverse proxy, please fill in this item according to the documentation.
|
en_US: API Base URL, used for accessing the WeCom API. If you are deploying in an internal network environment and accessing the WeCom Customer Service API through a reverse proxy, please fill in this item according to the documentation.
|
||||||
zh_Hans: 可选,若您部署在内网环境并通过反向代理访问企业微信 API,可根据文档填写此项
|
zh_Hans: 可选,若您部署在内网环境并通过反向代理访问企业微信 API,可根据文档填写此项
|
||||||
|
zh_Hant: 可選,若您部署在內網環境並透過反向代理存取企業微信 API,可根據文件填寫此項
|
||||||
type: string
|
type: string
|
||||||
required: false
|
required: false
|
||||||
default: "https://qyapi.weixin.qq.com/cgi-bin"
|
default: "https://qyapi.weixin.qq.com/cgi-bin"
|
||||||
|
|||||||
@@ -5,16 +5,21 @@ metadata:
|
|||||||
label:
|
label:
|
||||||
en_US: WeComBot
|
en_US: WeComBot
|
||||||
zh_Hans: 企业微信智能机器人
|
zh_Hans: 企业微信智能机器人
|
||||||
|
zh_Hant: 企業微信智慧機器人
|
||||||
description:
|
description:
|
||||||
en_US: WeComBot Adapter
|
en_US: WeComBot Adapter
|
||||||
zh_Hans: 企业微信智能机器人,支持长连接和 Webhook 两种接入方式,请查看文档了解使用方式
|
zh_Hans: 企业微信智能机器人,支持长连接和 Webhook 两种接入方式,请查看文档了解使用方式
|
||||||
|
zh_Hant: 企業微信智慧機器人,支援長連線和 Webhook 兩種接入方式,請查看文件了解使用方式
|
||||||
icon: wecombot.png
|
icon: wecombot.png
|
||||||
spec:
|
spec:
|
||||||
|
categories:
|
||||||
|
- china
|
||||||
config:
|
config:
|
||||||
- name: BotId
|
- name: BotId
|
||||||
label:
|
label:
|
||||||
en_US: BotId
|
en_US: BotId
|
||||||
zh_Hans: 机器人ID (BotId)
|
zh_Hans: 机器人ID (BotId)
|
||||||
|
zh_Hant: 機器人ID (BotId)
|
||||||
type: string
|
type: string
|
||||||
required: true
|
required: true
|
||||||
default: ""
|
default: ""
|
||||||
@@ -22,6 +27,7 @@ spec:
|
|||||||
label:
|
label:
|
||||||
en_US: Robot Name
|
en_US: Robot Name
|
||||||
zh_Hans: 机器人名称
|
zh_Hans: 机器人名称
|
||||||
|
zh_Hant: 機器人名稱
|
||||||
type: string
|
type: string
|
||||||
required: true
|
required: true
|
||||||
default: ""
|
default: ""
|
||||||
@@ -29,9 +35,11 @@ spec:
|
|||||||
label:
|
label:
|
||||||
en_US: Enable Webhook Mode
|
en_US: Enable Webhook Mode
|
||||||
zh_Hans: 启用Webhook模式
|
zh_Hans: 启用Webhook模式
|
||||||
|
zh_Hant: 啟用 Webhook 模式
|
||||||
description:
|
description:
|
||||||
en_US: If enabled, the bot will use webhook mode to receive messages. Otherwise, it will use WS long connection mode
|
en_US: If enabled, the bot will use webhook mode to receive messages. Otherwise, it will use WS long connection mode
|
||||||
zh_Hans: 如果启用,机器人将使用 Webhook 模式接收消息。否则,将使用 WS 长连接模式
|
zh_Hans: 如果启用,机器人将使用 Webhook 模式接收消息。否则,将使用 WS 长连接模式
|
||||||
|
zh_Hant: 如果啟用,機器人將使用 Webhook 模式接收訊息。否則,將使用 WS 長連線模式
|
||||||
type: boolean
|
type: boolean
|
||||||
required: true
|
required: true
|
||||||
default: false
|
default: false
|
||||||
@@ -39,9 +47,11 @@ spec:
|
|||||||
label:
|
label:
|
||||||
en_US: Webhook Callback URL
|
en_US: Webhook Callback URL
|
||||||
zh_Hans: Webhook 回调地址
|
zh_Hans: Webhook 回调地址
|
||||||
|
zh_Hant: Webhook 回調地址
|
||||||
description:
|
description:
|
||||||
en_US: Copy this URL and paste it into your WeComBot webhook configuration
|
en_US: Copy this URL and paste it into your WeComBot webhook configuration
|
||||||
zh_Hans: 复制此地址并粘贴到企业微信智能机器人的 Webhook 配置中
|
zh_Hans: 复制此地址并粘贴到企业微信智能机器人的 Webhook 配置中
|
||||||
|
zh_Hant: 複製此地址並貼到企業微信智慧機器人的 Webhook 設定中
|
||||||
type: webhook-url
|
type: webhook-url
|
||||||
required: false
|
required: false
|
||||||
default: ""
|
default: ""
|
||||||
@@ -53,9 +63,11 @@ spec:
|
|||||||
label:
|
label:
|
||||||
en_US: Secret
|
en_US: Secret
|
||||||
zh_Hans: 机器人密钥 (Secret)
|
zh_Hans: 机器人密钥 (Secret)
|
||||||
|
zh_Hant: 機器人密鑰 (Secret)
|
||||||
description:
|
description:
|
||||||
en_US: Required for WebSocket long connection mode
|
en_US: Required for WebSocket long connection mode
|
||||||
zh_Hans: 使用 WS 长连接模式时必填
|
zh_Hans: 使用 WS 长连接模式时必填
|
||||||
|
zh_Hant: 使用 WS 長連線模式時必填
|
||||||
type: string
|
type: string
|
||||||
required: false
|
required: false
|
||||||
default: ""
|
default: ""
|
||||||
@@ -63,9 +75,11 @@ spec:
|
|||||||
label:
|
label:
|
||||||
en_US: Corpid
|
en_US: Corpid
|
||||||
zh_Hans: 企业ID
|
zh_Hans: 企业ID
|
||||||
|
zh_Hant: 企業ID
|
||||||
description:
|
description:
|
||||||
en_US: Required for Webhook mode
|
en_US: Required for Webhook mode
|
||||||
zh_Hans: 使用 Webhook 模式时必填
|
zh_Hans: 使用 Webhook 模式时必填
|
||||||
|
zh_Hant: 使用 Webhook 模式時必填
|
||||||
type: string
|
type: string
|
||||||
required: false
|
required: false
|
||||||
default: ""
|
default: ""
|
||||||
@@ -73,9 +87,11 @@ spec:
|
|||||||
label:
|
label:
|
||||||
en_US: Token
|
en_US: Token
|
||||||
zh_Hans: 令牌 (Token)
|
zh_Hans: 令牌 (Token)
|
||||||
|
zh_Hant: 令牌 (Token)
|
||||||
description:
|
description:
|
||||||
en_US: Required for Webhook mode
|
en_US: Required for Webhook mode
|
||||||
zh_Hans: 使用 Webhook 模式时必填
|
zh_Hans: 使用 Webhook 模式时必填
|
||||||
|
zh_Hant: 使用 Webhook 模式時必填
|
||||||
type: string
|
type: string
|
||||||
required: false
|
required: false
|
||||||
default: ""
|
default: ""
|
||||||
@@ -83,9 +99,11 @@ spec:
|
|||||||
label:
|
label:
|
||||||
en_US: EncodingAESKey
|
en_US: EncodingAESKey
|
||||||
zh_Hans: 消息加解密密钥 (EncodingAESKey)
|
zh_Hans: 消息加解密密钥 (EncodingAESKey)
|
||||||
|
zh_Hant: 訊息加解密密鑰 (EncodingAESKey)
|
||||||
description:
|
description:
|
||||||
en_US: Required for Webhook mode. Optional for WebSocket mode (used for file decryption)
|
en_US: Required for Webhook mode. Optional for WebSocket mode (used for file decryption)
|
||||||
zh_Hans: 使用 Webhook 模式时必填。WebSocket 模式下可选(用于文件解密)
|
zh_Hans: 使用 Webhook 模式时必填。WebSocket 模式下可选(用于文件解密)
|
||||||
|
zh_Hant: 使用 Webhook 模式時必填。WebSocket 模式下可選(用於檔案解密)
|
||||||
type: string
|
type: string
|
||||||
required: false
|
required: false
|
||||||
default: ""
|
default: ""
|
||||||
@@ -93,9 +111,11 @@ spec:
|
|||||||
label:
|
label:
|
||||||
en_US: Enable Stream Reply
|
en_US: Enable Stream Reply
|
||||||
zh_Hans: 启用流式回复
|
zh_Hans: 启用流式回复
|
||||||
|
zh_Hant: 啟用串流回覆
|
||||||
description:
|
description:
|
||||||
en_US: If enabled, the bot will use streaming mode to reply messages
|
en_US: If enabled, the bot will use streaming mode to reply messages
|
||||||
zh_Hans: 如果启用,机器人将使用流式模式回复消息
|
zh_Hans: 如果启用,机器人将使用流式模式回复消息
|
||||||
|
zh_Hant: 如果啟用,機器人將使用串流模式回覆訊息
|
||||||
type: boolean
|
type: boolean
|
||||||
required: false
|
required: false
|
||||||
default: true
|
default: true
|
||||||
|
|||||||
@@ -5,19 +5,25 @@ metadata:
|
|||||||
label:
|
label:
|
||||||
en_US: WeComCustomerService
|
en_US: WeComCustomerService
|
||||||
zh_Hans: 企业微信客服
|
zh_Hans: 企业微信客服
|
||||||
|
zh_Hant: 企業微信客服
|
||||||
description:
|
description:
|
||||||
en_US: WeComCSAdapter
|
en_US: WeComCSAdapter
|
||||||
zh_Hans: 企业微信对外客服机器人,需要公网地址以接收消息推送,请查看文档了解使用方式
|
zh_Hans: 企业微信对外客服机器人,需要公网地址以接收消息推送,请查看文档了解使用方式
|
||||||
|
zh_Hant: 企業微信對外客服機器人,需要公網地址以接收訊息推送,請查看文件了解使用方式
|
||||||
icon: wecom.png
|
icon: wecom.png
|
||||||
spec:
|
spec:
|
||||||
|
categories:
|
||||||
|
- china
|
||||||
config:
|
config:
|
||||||
- name: webhook_url
|
- name: webhook_url
|
||||||
label:
|
label:
|
||||||
en_US: Webhook Callback URL
|
en_US: Webhook Callback URL
|
||||||
zh_Hans: Webhook 回调地址
|
zh_Hans: Webhook 回调地址
|
||||||
|
zh_Hant: Webhook 回調地址
|
||||||
description:
|
description:
|
||||||
en_US: Copy this URL and paste it into your WeCom Customer Service webhook configuration
|
en_US: Copy this URL and paste it into your WeCom Customer Service webhook configuration
|
||||||
zh_Hans: 复制此地址并粘贴到企业微信客服的 Webhook 配置中
|
zh_Hans: 复制此地址并粘贴到企业微信客服的 Webhook 配置中
|
||||||
|
zh_Hant: 複製此地址並貼到企業微信客服的 Webhook 設定中
|
||||||
type: webhook-url
|
type: webhook-url
|
||||||
required: false
|
required: false
|
||||||
default: ""
|
default: ""
|
||||||
@@ -25,6 +31,7 @@ spec:
|
|||||||
label:
|
label:
|
||||||
en_US: Corpid
|
en_US: Corpid
|
||||||
zh_Hans: 企业ID
|
zh_Hans: 企业ID
|
||||||
|
zh_Hant: 企業ID
|
||||||
type: string
|
type: string
|
||||||
required: true
|
required: true
|
||||||
default: ""
|
default: ""
|
||||||
@@ -32,6 +39,7 @@ spec:
|
|||||||
label:
|
label:
|
||||||
en_US: Secret
|
en_US: Secret
|
||||||
zh_Hans: 密钥
|
zh_Hans: 密钥
|
||||||
|
zh_Hant: 密鑰
|
||||||
type: string
|
type: string
|
||||||
required: true
|
required: true
|
||||||
default: ""
|
default: ""
|
||||||
@@ -39,6 +47,7 @@ spec:
|
|||||||
label:
|
label:
|
||||||
en_US: Token
|
en_US: Token
|
||||||
zh_Hans: 令牌
|
zh_Hans: 令牌
|
||||||
|
zh_Hant: 令牌
|
||||||
type: string
|
type: string
|
||||||
required: true
|
required: true
|
||||||
default: ""
|
default: ""
|
||||||
@@ -46,6 +55,7 @@ spec:
|
|||||||
label:
|
label:
|
||||||
en_US: EncodingAESKey
|
en_US: EncodingAESKey
|
||||||
zh_Hans: 消息加解密密钥
|
zh_Hans: 消息加解密密钥
|
||||||
|
zh_Hant: 訊息加解密密鑰
|
||||||
type: string
|
type: string
|
||||||
required: true
|
required: true
|
||||||
default: ""
|
default: ""
|
||||||
@@ -53,9 +63,11 @@ spec:
|
|||||||
label:
|
label:
|
||||||
en_US: API Base URL
|
en_US: API Base URL
|
||||||
zh_Hans: API 基础 URL
|
zh_Hans: API 基础 URL
|
||||||
|
zh_Hant: API 基礎 URL
|
||||||
description:
|
description:
|
||||||
en_US: API Base URL, used for accessing the WeCom API. If you are deploying in an internal network environment and accessing the WeCom Customer Service API through a reverse proxy, please fill in this item according to the documentation.
|
en_US: API Base URL, used for accessing the WeCom API. If you are deploying in an internal network environment and accessing the WeCom Customer Service API through a reverse proxy, please fill in this item according to the documentation.
|
||||||
zh_Hans: 可选,若您部署在内网环境并通过反向代理访问企业微信 API,可根据文档修改此项
|
zh_Hans: 可选,若您部署在内网环境并通过反向代理访问企业微信 API,可根据文档修改此项
|
||||||
|
zh_Hant: 可選,若您部署在內網環境並透過反向代理存取企業微信 API,可根據文件修改此項
|
||||||
type: string
|
type: string
|
||||||
required: false
|
required: false
|
||||||
default: "https://qyapi.weixin.qq.com/cgi-bin"
|
default: "https://qyapi.weixin.qq.com/cgi-bin"
|
||||||
|
|||||||
@@ -23,30 +23,30 @@ stages:
|
|||||||
label:
|
label:
|
||||||
en_US: Local Agent
|
en_US: Local Agent
|
||||||
zh_Hans: 内置 Agent
|
zh_Hans: 内置 Agent
|
||||||
- name: tbox-app-api
|
|
||||||
label:
|
|
||||||
en_US: Tbox App API
|
|
||||||
zh_Hans: 蚂蚁百宝箱平台 API
|
|
||||||
- name: dify-service-api
|
- name: dify-service-api
|
||||||
label:
|
label:
|
||||||
en_US: Dify Service API
|
en_US: Dify Service API
|
||||||
zh_Hans: Dify 服务 API
|
zh_Hans: Dify 服务 API
|
||||||
- name: dashscope-app-api
|
|
||||||
label:
|
|
||||||
en_US: Aliyun Dashscope App API
|
|
||||||
zh_Hans: 阿里云百炼平台 API
|
|
||||||
- name: n8n-service-api
|
- name: n8n-service-api
|
||||||
label:
|
label:
|
||||||
en_US: n8n Workflow API
|
en_US: n8n Workflow API
|
||||||
zh_Hans: n8n 工作流 API
|
zh_Hans: n8n 工作流 API
|
||||||
- name: langflow-api
|
|
||||||
label:
|
|
||||||
en_US: Langflow API
|
|
||||||
zh_Hans: Langflow API
|
|
||||||
- name: coze-api
|
- name: coze-api
|
||||||
label:
|
label:
|
||||||
en_US: Coze API
|
en_US: Coze API
|
||||||
zh_Hans: 扣子 API
|
zh_Hans: 扣子 API
|
||||||
|
- name: tbox-app-api
|
||||||
|
label:
|
||||||
|
en_US: Tbox App API
|
||||||
|
zh_Hans: 蚂蚁百宝箱平台 API
|
||||||
|
- name: dashscope-app-api
|
||||||
|
label:
|
||||||
|
en_US: Aliyun Dashscope App API
|
||||||
|
zh_Hans: 阿里云百炼平台 API
|
||||||
|
- name: langflow-api
|
||||||
|
label:
|
||||||
|
en_US: Langflow API
|
||||||
|
zh_Hans: Langflow API
|
||||||
- name: local-agent
|
- name: local-agent
|
||||||
label:
|
label:
|
||||||
en_US: Local Agent
|
en_US: Local Agent
|
||||||
@@ -104,28 +104,6 @@ stages:
|
|||||||
field: __system.is_wizard
|
field: __system.is_wizard
|
||||||
operator: neq
|
operator: neq
|
||||||
value: true
|
value: true
|
||||||
- name: tbox-app-api
|
|
||||||
label:
|
|
||||||
en_US: Tbox App API
|
|
||||||
zh_Hans: 蚂蚁百宝箱平台 API
|
|
||||||
description:
|
|
||||||
en_US: Configure the Tbox App API of the pipeline
|
|
||||||
zh_Hans: 配置蚂蚁百宝箱平台 API
|
|
||||||
config:
|
|
||||||
- name: api-key
|
|
||||||
label:
|
|
||||||
en_US: API Key
|
|
||||||
zh_Hans: API 密钥
|
|
||||||
type: string
|
|
||||||
required: true
|
|
||||||
default: ''
|
|
||||||
- name: app-id
|
|
||||||
label:
|
|
||||||
en_US: App ID
|
|
||||||
zh_Hans: 应用 ID
|
|
||||||
type: string
|
|
||||||
required: true
|
|
||||||
default: ''
|
|
||||||
- name: dify-service-api
|
- name: dify-service-api
|
||||||
label:
|
label:
|
||||||
en_US: Dify Service API
|
en_US: Dify Service API
|
||||||
@@ -178,54 +156,6 @@ stages:
|
|||||||
type: string
|
type: string
|
||||||
required: true
|
required: true
|
||||||
default: 'your-api-key'
|
default: 'your-api-key'
|
||||||
- name: dashscope-app-api
|
|
||||||
label:
|
|
||||||
en_US: Aliyun Dashscope App API
|
|
||||||
zh_Hans: 阿里云百炼平台 API
|
|
||||||
description:
|
|
||||||
en_US: Configure the Aliyun Dashscope App API of the pipeline
|
|
||||||
zh_Hans: 配置阿里云百炼平台 API
|
|
||||||
config:
|
|
||||||
- name: app-type
|
|
||||||
label:
|
|
||||||
en_US: App Type
|
|
||||||
zh_Hans: 应用类型
|
|
||||||
type: select
|
|
||||||
required: true
|
|
||||||
default: agent
|
|
||||||
options:
|
|
||||||
- name: agent
|
|
||||||
label:
|
|
||||||
en_US: Agent
|
|
||||||
zh_Hans: Agent
|
|
||||||
- name: workflow
|
|
||||||
label:
|
|
||||||
en_US: Workflow
|
|
||||||
zh_Hans: 工作流
|
|
||||||
- name: api-key
|
|
||||||
label:
|
|
||||||
en_US: API Key
|
|
||||||
zh_Hans: API 密钥
|
|
||||||
type: string
|
|
||||||
required: true
|
|
||||||
default: 'your-api-key'
|
|
||||||
- name: app-id
|
|
||||||
label:
|
|
||||||
en_US: App ID
|
|
||||||
zh_Hans: 应用 ID
|
|
||||||
type: string
|
|
||||||
required: true
|
|
||||||
default: 'your-app-id'
|
|
||||||
- name: references_quote
|
|
||||||
label:
|
|
||||||
en_US: References Quote
|
|
||||||
zh_Hans: 引用文本
|
|
||||||
description:
|
|
||||||
en_US: The text prompt when the references are included
|
|
||||||
zh_Hans: 包含引用资料时的文本提示
|
|
||||||
type: string
|
|
||||||
required: false
|
|
||||||
default: '参考资料来自:'
|
|
||||||
- name: n8n-service-api
|
- name: n8n-service-api
|
||||||
label:
|
label:
|
||||||
en_US: n8n Workflow API
|
en_US: n8n Workflow API
|
||||||
@@ -375,6 +305,131 @@ stages:
|
|||||||
type: string
|
type: string
|
||||||
required: false
|
required: false
|
||||||
default: 'response'
|
default: 'response'
|
||||||
|
- name: coze-api
|
||||||
|
label:
|
||||||
|
en_US: coze API
|
||||||
|
zh_Hans: 扣子 API
|
||||||
|
description:
|
||||||
|
en_US: Configure the Coze API of the pipeline
|
||||||
|
zh_Hans: 配置Coze API
|
||||||
|
config:
|
||||||
|
- name: api-key
|
||||||
|
label:
|
||||||
|
en_US: API Key
|
||||||
|
zh_Hans: API 密钥
|
||||||
|
description:
|
||||||
|
en_US: The API key for the Coze server
|
||||||
|
zh_Hans: Coze服务器的 API 密钥
|
||||||
|
type: string
|
||||||
|
required: true
|
||||||
|
default: ''
|
||||||
|
- name: bot-id
|
||||||
|
label:
|
||||||
|
en_US: Bot ID
|
||||||
|
zh_Hans: 机器人 ID
|
||||||
|
description:
|
||||||
|
en_US: The ID of the bot to run
|
||||||
|
zh_Hans: 要运行的机器人 ID
|
||||||
|
type: string
|
||||||
|
required: true
|
||||||
|
default: ''
|
||||||
|
- name: api-base
|
||||||
|
label:
|
||||||
|
en_US: API Base URL
|
||||||
|
zh_Hans: API 基础 URL
|
||||||
|
description:
|
||||||
|
en_US: The base URL for the Coze API, please use https://api.coze.com for global Coze edition(coze.com).
|
||||||
|
zh_Hans: Coze API 的基础 URL,请使用 https://api.coze.com 用于全球 Coze 版(coze.com)
|
||||||
|
type: string
|
||||||
|
default: "https://api.coze.cn"
|
||||||
|
- name: auto-save-history
|
||||||
|
label:
|
||||||
|
en_US: Auto Save History
|
||||||
|
zh_Hans: 自动保存历史
|
||||||
|
description:
|
||||||
|
en_US: Whether to automatically save conversation history
|
||||||
|
zh_Hans: 是否自动保存对话历史
|
||||||
|
type: boolean
|
||||||
|
default: true
|
||||||
|
- name: timeout
|
||||||
|
label:
|
||||||
|
en_US: Request Timeout
|
||||||
|
zh_Hans: 请求超时
|
||||||
|
description:
|
||||||
|
en_US: Timeout in seconds for API requests
|
||||||
|
zh_Hans: API 请求超时时间(秒)
|
||||||
|
type: number
|
||||||
|
default: 120
|
||||||
|
- name: tbox-app-api
|
||||||
|
label:
|
||||||
|
en_US: Tbox App API
|
||||||
|
zh_Hans: 蚂蚁百宝箱平台 API
|
||||||
|
description:
|
||||||
|
en_US: Configure the Tbox App API of the pipeline
|
||||||
|
zh_Hans: 配置蚂蚁百宝箱平台 API
|
||||||
|
config:
|
||||||
|
- name: api-key
|
||||||
|
label:
|
||||||
|
en_US: API Key
|
||||||
|
zh_Hans: API 密钥
|
||||||
|
type: string
|
||||||
|
required: true
|
||||||
|
default: ''
|
||||||
|
- name: app-id
|
||||||
|
label:
|
||||||
|
en_US: App ID
|
||||||
|
zh_Hans: 应用 ID
|
||||||
|
type: string
|
||||||
|
required: true
|
||||||
|
default: ''
|
||||||
|
- name: dashscope-app-api
|
||||||
|
label:
|
||||||
|
en_US: Aliyun Dashscope App API
|
||||||
|
zh_Hans: 阿里云百炼平台 API
|
||||||
|
description:
|
||||||
|
en_US: Configure the Aliyun Dashscope App API of the pipeline
|
||||||
|
zh_Hans: 配置阿里云百炼平台 API
|
||||||
|
config:
|
||||||
|
- name: app-type
|
||||||
|
label:
|
||||||
|
en_US: App Type
|
||||||
|
zh_Hans: 应用类型
|
||||||
|
type: select
|
||||||
|
required: true
|
||||||
|
default: agent
|
||||||
|
options:
|
||||||
|
- name: agent
|
||||||
|
label:
|
||||||
|
en_US: Agent
|
||||||
|
zh_Hans: Agent
|
||||||
|
- name: workflow
|
||||||
|
label:
|
||||||
|
en_US: Workflow
|
||||||
|
zh_Hans: 工作流
|
||||||
|
- name: api-key
|
||||||
|
label:
|
||||||
|
en_US: API Key
|
||||||
|
zh_Hans: API 密钥
|
||||||
|
type: string
|
||||||
|
required: true
|
||||||
|
default: 'your-api-key'
|
||||||
|
- name: app-id
|
||||||
|
label:
|
||||||
|
en_US: App ID
|
||||||
|
zh_Hans: 应用 ID
|
||||||
|
type: string
|
||||||
|
required: true
|
||||||
|
default: 'your-app-id'
|
||||||
|
- name: references_quote
|
||||||
|
label:
|
||||||
|
en_US: References Quote
|
||||||
|
zh_Hans: 引用文本
|
||||||
|
description:
|
||||||
|
en_US: The text prompt when the references are included
|
||||||
|
zh_Hans: 包含引用资料时的文本提示
|
||||||
|
type: string
|
||||||
|
required: false
|
||||||
|
default: '参考资料来自:'
|
||||||
- name: langflow-api
|
- name: langflow-api
|
||||||
label:
|
label:
|
||||||
en_US: Langflow API
|
en_US: Langflow API
|
||||||
@@ -442,59 +497,4 @@ stages:
|
|||||||
zh_Hans: 可选的流程调整参数
|
zh_Hans: 可选的流程调整参数
|
||||||
type: json
|
type: json
|
||||||
required: false
|
required: false
|
||||||
default: '{}'
|
default: '{}'
|
||||||
- name: coze-api
|
|
||||||
label:
|
|
||||||
en_US: coze API
|
|
||||||
zh_Hans: 扣子 API
|
|
||||||
description:
|
|
||||||
en_US: Configure the Coze API of the pipeline
|
|
||||||
zh_Hans: 配置Coze API
|
|
||||||
config:
|
|
||||||
- name: api-key
|
|
||||||
label:
|
|
||||||
en_US: API Key
|
|
||||||
zh_Hans: API 密钥
|
|
||||||
description:
|
|
||||||
en_US: The API key for the Coze server
|
|
||||||
zh_Hans: Coze服务器的 API 密钥
|
|
||||||
type: string
|
|
||||||
required: true
|
|
||||||
default: ''
|
|
||||||
- name: bot-id
|
|
||||||
label:
|
|
||||||
en_US: Bot ID
|
|
||||||
zh_Hans: 机器人 ID
|
|
||||||
description:
|
|
||||||
en_US: The ID of the bot to run
|
|
||||||
zh_Hans: 要运行的机器人 ID
|
|
||||||
type: string
|
|
||||||
required: true
|
|
||||||
default: ''
|
|
||||||
- name: api-base
|
|
||||||
label:
|
|
||||||
en_US: API Base URL
|
|
||||||
zh_Hans: API 基础 URL
|
|
||||||
description:
|
|
||||||
en_US: The base URL for the Coze API, please use https://api.coze.com for global Coze edition(coze.com).
|
|
||||||
zh_Hans: Coze API 的基础 URL,请使用 https://api.coze.com 用于全球 Coze 版(coze.com)
|
|
||||||
type: string
|
|
||||||
default: "https://api.coze.cn"
|
|
||||||
- name: auto-save-history
|
|
||||||
label:
|
|
||||||
en_US: Auto Save History
|
|
||||||
zh_Hans: 自动保存历史
|
|
||||||
description:
|
|
||||||
en_US: Whether to automatically save conversation history
|
|
||||||
zh_Hans: 是否自动保存对话历史
|
|
||||||
type: boolean
|
|
||||||
default: true
|
|
||||||
- name: timeout
|
|
||||||
label:
|
|
||||||
en_US: Request Timeout
|
|
||||||
zh_Hans: 请求超时
|
|
||||||
description:
|
|
||||||
en_US: Timeout in seconds for API requests
|
|
||||||
zh_Hans: API 请求超时时间(秒)
|
|
||||||
type: number
|
|
||||||
default: 120
|
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
import React, { useEffect, useRef, useState } from 'react';
|
import React, { useEffect, useMemo, useRef, useState } from 'react';
|
||||||
import {
|
import {
|
||||||
IChooseAdapterEntity,
|
IChooseAdapterEntity,
|
||||||
IPipelineEntity,
|
IPipelineEntity,
|
||||||
@@ -35,6 +35,7 @@ import {
|
|||||||
SelectContent,
|
SelectContent,
|
||||||
SelectGroup,
|
SelectGroup,
|
||||||
SelectItem,
|
SelectItem,
|
||||||
|
SelectLabel,
|
||||||
SelectTrigger,
|
SelectTrigger,
|
||||||
SelectValue,
|
SelectValue,
|
||||||
} from '@/components/ui/select';
|
} from '@/components/ui/select';
|
||||||
@@ -47,6 +48,10 @@ import {
|
|||||||
} from '@/components/ui/card';
|
} from '@/components/ui/card';
|
||||||
import { extractI18nObject } from '@/i18n/I18nProvider';
|
import { extractI18nObject } from '@/i18n/I18nProvider';
|
||||||
import { CustomApiError } from '@/app/infra/entities/common';
|
import { CustomApiError } from '@/app/infra/entities/common';
|
||||||
|
import {
|
||||||
|
groupByCategory,
|
||||||
|
getCategoryLabel,
|
||||||
|
} from '@/app/infra/entities/adapter-categories';
|
||||||
|
|
||||||
const getFormSchema = (t: (key: string) => string) =>
|
const getFormSchema = (t: (key: string) => string) =>
|
||||||
z.object({
|
z.object({
|
||||||
@@ -113,6 +118,12 @@ export default function BotForm({
|
|||||||
const currentAdapter = form.watch('adapter');
|
const currentAdapter = form.watch('adapter');
|
||||||
const currentAdapterConfig = form.watch('adapter_config');
|
const currentAdapterConfig = form.watch('adapter_config');
|
||||||
|
|
||||||
|
// Group adapters by category for the Select dropdown
|
||||||
|
const groupedAdapters = useMemo(
|
||||||
|
() => groupByCategory(adapterNameList),
|
||||||
|
[adapterNameList],
|
||||||
|
);
|
||||||
|
|
||||||
// Notify parent when dirty state changes
|
// Notify parent when dirty state changes
|
||||||
const { isDirty } = form.formState;
|
const { isDirty } = form.formState;
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
@@ -183,6 +194,7 @@ export default function BotForm({
|
|||||||
return {
|
return {
|
||||||
label: extractI18nObject(item.label),
|
label: extractI18nObject(item.label),
|
||||||
value: item.name,
|
value: item.name,
|
||||||
|
categories: item.spec.categories,
|
||||||
};
|
};
|
||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
@@ -483,20 +495,31 @@ export default function BotForm({
|
|||||||
)}
|
)}
|
||||||
</SelectTrigger>
|
</SelectTrigger>
|
||||||
<SelectContent>
|
<SelectContent>
|
||||||
<SelectGroup>
|
{groupedAdapters.map((group) => (
|
||||||
{adapterNameList.map((item) => (
|
<SelectGroup
|
||||||
<SelectItem key={item.value} value={item.value}>
|
key={group.categoryId ?? 'uncategorized'}
|
||||||
<div className="flex items-center gap-2">
|
>
|
||||||
<img
|
{group.categoryId && (
|
||||||
src={httpClient.getAdapterIconURL(item.value)}
|
<SelectLabel>
|
||||||
alt=""
|
{getCategoryLabel(t, group.categoryId)}
|
||||||
className="h-5 w-5 rounded"
|
</SelectLabel>
|
||||||
/>
|
)}
|
||||||
<span>{item.label}</span>
|
{group.items.map((item) => (
|
||||||
</div>
|
<SelectItem key={item.value} value={item.value}>
|
||||||
</SelectItem>
|
<div className="flex items-center gap-2">
|
||||||
))}
|
<img
|
||||||
</SelectGroup>
|
src={httpClient.getAdapterIconURL(
|
||||||
|
item.value,
|
||||||
|
)}
|
||||||
|
alt=""
|
||||||
|
className="h-5 w-5 rounded"
|
||||||
|
/>
|
||||||
|
<span>{item.label}</span>
|
||||||
|
</div>
|
||||||
|
</SelectItem>
|
||||||
|
))}
|
||||||
|
</SelectGroup>
|
||||||
|
))}
|
||||||
</SelectContent>
|
</SelectContent>
|
||||||
</Select>
|
</Select>
|
||||||
</FormControl>
|
</FormControl>
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
export interface IChooseAdapterEntity {
|
export interface IChooseAdapterEntity {
|
||||||
label: string;
|
label: string;
|
||||||
value: string;
|
value: string;
|
||||||
|
categories?: string[];
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface IPipelineEntity {
|
export interface IPipelineEntity {
|
||||||
|
|||||||
@@ -0,0 +1,88 @@
|
|||||||
|
import i18n from 'i18next';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* All known adapter category IDs.
|
||||||
|
*/
|
||||||
|
export const ADAPTER_CATEGORIES = [
|
||||||
|
'popular',
|
||||||
|
'china',
|
||||||
|
'global',
|
||||||
|
'protocol',
|
||||||
|
] as const;
|
||||||
|
|
||||||
|
export type AdapterCategoryId = (typeof ADAPTER_CATEGORIES)[number];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the ordered list of category IDs based on the current locale.
|
||||||
|
*
|
||||||
|
* - zh-Hans: popular -> china -> global -> protocol
|
||||||
|
* - All other locales: popular -> global -> china -> protocol
|
||||||
|
*
|
||||||
|
* `popular` is always first.
|
||||||
|
*/
|
||||||
|
export function getOrderedCategories(): AdapterCategoryId[] {
|
||||||
|
const lang = i18n.language;
|
||||||
|
if (lang === 'zh-Hans') {
|
||||||
|
return ['popular', 'china', 'global', 'protocol'];
|
||||||
|
}
|
||||||
|
return ['popular', 'global', 'china', 'protocol'];
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Groups items that have a `categories` string array into ordered category
|
||||||
|
* buckets. An item can appear in multiple groups if it belongs to multiple
|
||||||
|
* categories. Items without any recognised category are collected into a
|
||||||
|
* trailing "uncategorized" group (null key).
|
||||||
|
*/
|
||||||
|
export function groupByCategory<T extends { categories?: string[] }>(
|
||||||
|
items: T[],
|
||||||
|
): { categoryId: AdapterCategoryId | null; items: T[] }[] {
|
||||||
|
const ordered = getOrderedCategories();
|
||||||
|
const buckets = new Map<AdapterCategoryId | null, T[]>();
|
||||||
|
|
||||||
|
// Initialise buckets in display order
|
||||||
|
for (const cat of ordered) {
|
||||||
|
buckets.set(cat, []);
|
||||||
|
}
|
||||||
|
buckets.set(null, []);
|
||||||
|
|
||||||
|
for (const item of items) {
|
||||||
|
const cats = item.categories;
|
||||||
|
if (!cats || cats.length === 0) {
|
||||||
|
buckets.get(null)!.push(item);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
let placed = false;
|
||||||
|
for (const cat of cats) {
|
||||||
|
if (ordered.includes(cat as AdapterCategoryId)) {
|
||||||
|
buckets.get(cat as AdapterCategoryId)!.push(item);
|
||||||
|
placed = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (!placed) {
|
||||||
|
buckets.get(null)!.push(item);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Build result, skipping empty buckets
|
||||||
|
const result: { categoryId: AdapterCategoryId | null; items: T[] }[] = [];
|
||||||
|
for (const [categoryId, groupItems] of buckets) {
|
||||||
|
if (groupItems.length > 0) {
|
||||||
|
result.push({ categoryId, items: groupItems });
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Resolve the i18n display name for a category ID using the
|
||||||
|
* `bots.adapterCategory.*` translation keys.
|
||||||
|
*/
|
||||||
|
export function getCategoryLabel(
|
||||||
|
t: (key: string) => string,
|
||||||
|
categoryId: AdapterCategoryId | null,
|
||||||
|
): string {
|
||||||
|
if (categoryId === null) return '';
|
||||||
|
return t(`bots.adapterCategory.${categoryId}`);
|
||||||
|
}
|
||||||
@@ -117,6 +117,7 @@ export interface Adapter {
|
|||||||
description: I18nObject;
|
description: I18nObject;
|
||||||
icon?: string;
|
icon?: string;
|
||||||
spec: {
|
spec: {
|
||||||
|
categories?: string[];
|
||||||
config: IDynamicFormItemSchema[];
|
config: IDynamicFormItemSchema[];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
+91
-52
@@ -41,6 +41,10 @@ import {
|
|||||||
import DynamicFormComponent from '@/app/home/components/dynamic-form/DynamicFormComponent';
|
import DynamicFormComponent from '@/app/home/components/dynamic-form/DynamicFormComponent';
|
||||||
import { BotLogListComponent } from '@/app/home/bots/components/bot-log/view/BotLogListComponent';
|
import { BotLogListComponent } from '@/app/home/bots/components/bot-log/view/BotLogListComponent';
|
||||||
import { extractI18nObject } from '@/i18n/I18nProvider';
|
import { extractI18nObject } from '@/i18n/I18nProvider';
|
||||||
|
import {
|
||||||
|
groupByCategory,
|
||||||
|
getCategoryLabel,
|
||||||
|
} from '@/app/infra/entities/adapter-categories';
|
||||||
|
|
||||||
import { Button } from '@/components/ui/button';
|
import { Button } from '@/components/ui/button';
|
||||||
import {
|
import {
|
||||||
@@ -490,18 +494,27 @@ export default function WizardPage() {
|
|||||||
const [isSkipping, setIsSkipping] = useState(false);
|
const [isSkipping, setIsSkipping] = useState(false);
|
||||||
|
|
||||||
const handleSkipConfirm = useCallback(async () => {
|
const handleSkipConfirm = useCallback(async () => {
|
||||||
if (systemInfo.wizard_status === 'none') {
|
setIsSkipping(true);
|
||||||
setIsSkipping(true);
|
try {
|
||||||
try {
|
if (systemInfo.wizard_status === 'none') {
|
||||||
await httpClient.updateWizardStatus('skipped');
|
await httpClient.updateWizardStatus('skipped');
|
||||||
systemInfo.wizard_status = 'skipped';
|
systemInfo.wizard_status = 'skipped';
|
||||||
} catch {
|
|
||||||
toast.error(t('wizard.skipSaveError'));
|
|
||||||
setIsSkipping(false);
|
|
||||||
return; // Dialog stays open — user can retry
|
|
||||||
}
|
}
|
||||||
|
// Always clear persisted progress so re-entering starts fresh
|
||||||
|
await httpClient.saveWizardProgress({
|
||||||
|
step: 0,
|
||||||
|
selected_adapter: null,
|
||||||
|
created_bot_uuid: null,
|
||||||
|
bot_saved: false,
|
||||||
|
selected_runner: null,
|
||||||
|
});
|
||||||
|
systemInfo.wizard_progress = null;
|
||||||
|
} catch {
|
||||||
|
toast.error(t('wizard.skipSaveError'));
|
||||||
setIsSkipping(false);
|
setIsSkipping(false);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
setIsSkipping(false);
|
||||||
setShowSkipConfirm(false);
|
setShowSkipConfirm(false);
|
||||||
router.push('/home');
|
router.push('/home');
|
||||||
}, [router, t]);
|
}, [router, t]);
|
||||||
@@ -727,6 +740,14 @@ function StepPlatform({
|
|||||||
}) {
|
}) {
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
|
|
||||||
|
const groupedAdapters = useMemo(() => {
|
||||||
|
const withCategories = adapters.map((a) => ({
|
||||||
|
...a,
|
||||||
|
categories: a.spec.categories,
|
||||||
|
}));
|
||||||
|
return groupByCategory(withCategories);
|
||||||
|
}, [adapters]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="space-y-6 max-w-4xl mx-auto">
|
<div className="space-y-6 max-w-4xl mx-auto">
|
||||||
<div className="text-center">
|
<div className="text-center">
|
||||||
@@ -735,45 +756,54 @@ function StepPlatform({
|
|||||||
{t('wizard.platform.description')}
|
{t('wizard.platform.description')}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4">
|
{groupedAdapters.map((group) => (
|
||||||
{adapters.map((adapter) => (
|
<div key={group.categoryId ?? 'uncategorized'} className="space-y-3">
|
||||||
<Card
|
{group.categoryId && (
|
||||||
key={adapter.name}
|
<h3 className="text-sm font-medium text-muted-foreground">
|
||||||
className={cn(
|
{getCategoryLabel(t, group.categoryId)}
|
||||||
'cursor-pointer transition-all hover:shadow-md',
|
</h3>
|
||||||
selected === adapter.name
|
)}
|
||||||
? 'ring-2 ring-primary shadow-md'
|
<div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4">
|
||||||
: 'hover:border-primary/50',
|
{group.items.map((adapter) => (
|
||||||
)}
|
<Card
|
||||||
onClick={() => onSelect(adapter.name)}
|
key={adapter.name}
|
||||||
>
|
className={cn(
|
||||||
<CardHeader className="flex flex-row items-center gap-3 pb-2">
|
'cursor-pointer transition-all hover:shadow-md',
|
||||||
<img
|
selected === adapter.name
|
||||||
src={httpClient.getAdapterIconURL(adapter.name)}
|
? 'ring-2 ring-primary shadow-md'
|
||||||
alt=""
|
: 'hover:border-primary/50',
|
||||||
className="w-10 h-10 rounded-lg shrink-0"
|
)}
|
||||||
/>
|
onClick={() => onSelect(adapter.name)}
|
||||||
<div className="min-w-0">
|
>
|
||||||
<CardTitle className="text-base truncate">
|
<CardHeader className="flex flex-row items-center gap-3 pb-2">
|
||||||
{extractI18nObject(adapter.label)}
|
<img
|
||||||
</CardTitle>
|
src={httpClient.getAdapterIconURL(adapter.name)}
|
||||||
</div>
|
alt=""
|
||||||
{selected === adapter.name && (
|
className="w-10 h-10 rounded-lg shrink-0"
|
||||||
<div className="ml-auto shrink-0">
|
/>
|
||||||
<div className="w-5 h-5 rounded-full bg-primary flex items-center justify-center">
|
<div className="min-w-0">
|
||||||
<Check className="w-3 h-3 text-primary-foreground" />
|
<CardTitle className="text-base truncate">
|
||||||
|
{extractI18nObject(adapter.label)}
|
||||||
|
</CardTitle>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
{selected === adapter.name && (
|
||||||
)}
|
<div className="ml-auto shrink-0">
|
||||||
</CardHeader>
|
<div className="w-5 h-5 rounded-full bg-primary flex items-center justify-center">
|
||||||
<CardContent>
|
<Check className="w-3 h-3 text-primary-foreground" />
|
||||||
<p className="text-sm text-muted-foreground line-clamp-2">
|
</div>
|
||||||
{extractI18nObject(adapter.description)}
|
</div>
|
||||||
</p>
|
)}
|
||||||
</CardContent>
|
</CardHeader>
|
||||||
</Card>
|
<CardContent>
|
||||||
))}
|
<p className="text-sm text-muted-foreground line-clamp-2">
|
||||||
</div>
|
{extractI18nObject(adapter.description)}
|
||||||
|
</p>
|
||||||
|
</CardContent>
|
||||||
|
</Card>
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
))}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -1118,18 +1148,27 @@ function StepDone() {
|
|||||||
const [isCompleting, setIsCompleting] = useState(false);
|
const [isCompleting, setIsCompleting] = useState(false);
|
||||||
|
|
||||||
const handleBack = useCallback(async () => {
|
const handleBack = useCallback(async () => {
|
||||||
if (systemInfo.wizard_status === 'none') {
|
setIsCompleting(true);
|
||||||
setIsCompleting(true);
|
try {
|
||||||
try {
|
if (systemInfo.wizard_status === 'none') {
|
||||||
await httpClient.updateWizardStatus('completed');
|
await httpClient.updateWizardStatus('completed');
|
||||||
systemInfo.wizard_status = 'completed';
|
systemInfo.wizard_status = 'completed';
|
||||||
} catch {
|
|
||||||
toast.error(t('wizard.completeSaveError'));
|
|
||||||
setIsCompleting(false);
|
|
||||||
return; // Don't navigate — let user retry
|
|
||||||
}
|
}
|
||||||
|
// Always clear persisted progress so re-entering starts fresh
|
||||||
|
await httpClient.saveWizardProgress({
|
||||||
|
step: 0,
|
||||||
|
selected_adapter: null,
|
||||||
|
created_bot_uuid: null,
|
||||||
|
bot_saved: false,
|
||||||
|
selected_runner: null,
|
||||||
|
});
|
||||||
|
systemInfo.wizard_progress = null;
|
||||||
|
} catch {
|
||||||
|
toast.error(t('wizard.completeSaveError'));
|
||||||
setIsCompleting(false);
|
setIsCompleting(false);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
setIsCompleting(false);
|
||||||
router.push('/home/bots');
|
router.push('/home/bots');
|
||||||
}, [router, t]);
|
}, [router, t]);
|
||||||
|
|
||||||
|
|||||||
@@ -321,6 +321,12 @@ const enUS = {
|
|||||||
webhookSaasHint:
|
webhookSaasHint:
|
||||||
'Webhook requires a publicly accessible domain. LangBot Cloud provides a ready-to-use public endpoint for your bot.',
|
'Webhook requires a publicly accessible domain. LangBot Cloud provides a ready-to-use public endpoint for your bot.',
|
||||||
webhookSaasLink: 'Learn more about LangBot Cloud',
|
webhookSaasLink: 'Learn more about LangBot Cloud',
|
||||||
|
adapterCategory: {
|
||||||
|
popular: 'Popular',
|
||||||
|
china: 'China',
|
||||||
|
global: 'Global',
|
||||||
|
protocol: 'Protocol',
|
||||||
|
},
|
||||||
logLevel: 'Log Level',
|
logLevel: 'Log Level',
|
||||||
allLevels: 'All Levels',
|
allLevels: 'All Levels',
|
||||||
selectLevel: 'Select Level',
|
selectLevel: 'Select Level',
|
||||||
|
|||||||
@@ -326,6 +326,12 @@
|
|||||||
webhookSaasHint:
|
webhookSaasHint:
|
||||||
'Webhook には公開アクセス可能なドメインが必要です。LangBot Cloud では、ボット用のパブリックエンドポイントをすぐにご利用いただけます。',
|
'Webhook には公開アクセス可能なドメインが必要です。LangBot Cloud では、ボット用のパブリックエンドポイントをすぐにご利用いただけます。',
|
||||||
webhookSaasLink: 'LangBot Cloud の詳細はこちら',
|
webhookSaasLink: 'LangBot Cloud の詳細はこちら',
|
||||||
|
adapterCategory: {
|
||||||
|
popular: '人気',
|
||||||
|
china: '中国',
|
||||||
|
global: 'グローバル',
|
||||||
|
protocol: 'プロトコル',
|
||||||
|
},
|
||||||
logLevel: 'ログレベル',
|
logLevel: 'ログレベル',
|
||||||
allLevels: 'すべてのレベル',
|
allLevels: 'すべてのレベル',
|
||||||
selectLevel: 'レベルを選択',
|
selectLevel: 'レベルを選択',
|
||||||
|
|||||||
@@ -306,6 +306,12 @@ const zhHans = {
|
|||||||
webhookSaasHint:
|
webhookSaasHint:
|
||||||
'Webhook 需要公网可访问的域名。LangBot Cloud 为你的机器人提供开箱即用的公网地址。',
|
'Webhook 需要公网可访问的域名。LangBot Cloud 为你的机器人提供开箱即用的公网地址。',
|
||||||
webhookSaasLink: '了解 LangBot Cloud',
|
webhookSaasLink: '了解 LangBot Cloud',
|
||||||
|
adapterCategory: {
|
||||||
|
popular: '热门',
|
||||||
|
china: '中国',
|
||||||
|
global: '全球',
|
||||||
|
protocol: '协议',
|
||||||
|
},
|
||||||
logLevel: '日志级别',
|
logLevel: '日志级别',
|
||||||
allLevels: '全部级别',
|
allLevels: '全部级别',
|
||||||
selectLevel: '选择级别',
|
selectLevel: '选择级别',
|
||||||
|
|||||||
@@ -305,6 +305,12 @@ const zhHant = {
|
|||||||
webhookSaasHint:
|
webhookSaasHint:
|
||||||
'Webhook 需要公網可存取的網域。LangBot Cloud 為你的機器人提供即開即用的公網位址。',
|
'Webhook 需要公網可存取的網域。LangBot Cloud 為你的機器人提供即開即用的公網位址。',
|
||||||
webhookSaasLink: '了解 LangBot Cloud',
|
webhookSaasLink: '了解 LangBot Cloud',
|
||||||
|
adapterCategory: {
|
||||||
|
popular: '熱門',
|
||||||
|
china: '中國',
|
||||||
|
global: '全球',
|
||||||
|
protocol: '協定',
|
||||||
|
},
|
||||||
logLevel: '日誌級別',
|
logLevel: '日誌級別',
|
||||||
allLevels: '全部級別',
|
allLevels: '全部級別',
|
||||||
selectLevel: '選擇級別',
|
selectLevel: '選擇級別',
|
||||||
|
|||||||
Reference in New Issue
Block a user