feat(webui): improve setup flows across chat channels (NAN-112) (#5356)

* feat(webui): improve channel setup flows

* fix(webui): refine channel setup interactions (NAN-112)

* fix(webui): keep email setup sections channel-owned

* fix(webui): remove concrete channel details from shared components

* refactor(webui): remove unused channel setup resources

* fix(webui): finish channel-owned setup boundaries

* fix(webui): update channel switches optimistically

* test(channels): remove obsolete absence assertions

* fix(webui): flatten channel instance settings disclosure

* fix(webui): complete channel setup and connection flows

* fix(whatsapp): wait for session database release

* fix(webui): preserve scrolling channel controls

* fix(webui): stage channel connection checks

* fix(channels): align verification actions

* fix(email): expose connection checks

* fix(webui): align channel field actions

* fix(email): verify account credentials

* fix(wecom): bypass system proxy for websocket

* fix(channels): stabilize async connection cleanup

* fix(webui): autosave channel credentials

* fix(email): make provider presets non-destructive

* test(weixin): isolate persisted QR credentials
This commit is contained in:
chengyongru authored and GitHub committed 2026-09-11 15:22:14 +08:00
1 parent 3cc3012b3a
commit e8a29a0087
291 files changed
+12194 -3979

No files matched your search

+10
View File
@@ -24,6 +24,16 @@ SETUP_SPEC = ChannelSetupSpec(
),
"allowFrom": field("list", snapshot=False),
"topicIsolation": field("bool", default=True, snapshot=False),
"name": field(default="nanobot", snapshot=False),
"encryptKey": field("secret", snapshot=False),
"verificationToken": field("secret", snapshot=False),
"reactEmoji": field(default="THUMBSUP", snapshot=False),
"doneEmoji": field(snapshot=False),
"toolHintPrefix": field(default="🔧", snapshot=False),
"replyToMessage": field("bool", default=False, snapshot=False),
"streaming": field("bool", default=True, snapshot=False),
"instanceId": field(writable=False, snapshot=False),
"identityKey": field(writable=False, snapshot=False),
},
required=required_fields("appId", "appSecret"),
official_url="https://open.feishu.cn/app",
@@ -1,29 +1,20 @@
import { useState } from "react";
import { Loader2, RotateCcw } from "lucide-react";
import { useTranslation } from "react-i18next";
import {
channelTranslator,
type ChannelTranslator,
} from "@/channel-plugins/i18n";
import type { ChannelPluginPanelProps } from "@/channel-plugins/types";
import { ChannelInstancesPanel } from "@/components/settings/channels/ChannelInstancesPanel";
import { Button } from "@/components/ui/button";
import { enableNanobotFeature } from "@/lib/api";
import type {
NanobotChannelInstanceInfo,
NanobotFeatureInfo,
NanobotFeaturesPayload,
} from "@/lib/types";
import { useClient } from "@/providers/ClientProvider";
import { FeishuConnectFlow } from "./FeishuConnectFlow";
export function FeishuAssistantsPanel({
token,
feature,
showBrandLogos,
chatAppsDocsUrl,
onFeaturesUpdate,
}: ChannelPluginPanelProps) {
const { t } = useTranslation();
@@ -36,122 +27,30 @@ export function FeishuAssistantsPanel({
<ChannelInstancesPanel
feature={feature}
showBrandLogos={showBrandLogos}
chatAppsDocsUrl={chatAppsDocsUrl}
instances={instances}
onFeaturesUpdate={onFeaturesUpdate}
customization={{
countLabel: (count) => feishuAssistantCountLabel(count, tx),
toggleAriaLabel: (instance) => tx("custom.toggleAssistant", "{{name}} assistant", {
name: instanceDisplayName(instance),
}),
configuredLabel: tx("custom.configured", "Connected"),
needsSetupLabel: tx("custom.needsSetup", "Needs authorization"),
renderInstanceSummary: (instance) => (
maskFeishuAppId(instance.config_values?.["channels.feishu.appId"])
|| tx("custom.noAppId", "No App ID")
),
renderInstanceAction: (instance) => (
<FeishuInstanceAction
renderInstanceSummary: () => null,
renderInstanceAction: (instance) => instance.configured ? null : (
<FeishuConnectFlow
key={instance.id}
token={token}
instance={instance}
instanceId={instance.id}
mode="replace"
idleLabel={t("settings.channels.connect", { defaultValue: "Connect" })}
onFeaturesUpdate={onFeaturesUpdate}
/>
),
footer: (
<div className="mt-4 overflow-hidden rounded-floating border border-border/70 bg-background px-4 py-4">
<div className="text-[13px] font-semibold text-foreground">
{tx("custom.createAnother", "Create another assistant")}
</div>
<p className="mt-1 text-[12.5px] leading-5 text-muted-foreground">
{tx(
"custom.createHint",
"Create a separate Feishu bot for another team, space, or workflow.",
)}
</p>
<FeishuConnectFlow
token={token}
instanceId="default"
mode="create"
idleLabel={tx("custom.createAssistant", "Create assistant")}
onFeaturesUpdate={onFeaturesUpdate}
/>
</div>
),
}}
/>
);
}
function FeishuInstanceAction({
token,
instance,
onFeaturesUpdate,
}: {
token: string;
instance: NanobotChannelInstanceInfo;
onFeaturesUpdate: (payload: NanobotFeaturesPayload) => void;
}) {
const { client } = useClient();
const { t } = useTranslation();
const tx = channelTranslator(t, "feishu");
const [busy, setBusy] = useState(false);
const [error, setError] = useState<string | null>(null);
if (!instance.configured) {
return (
<FeishuConnectFlow
token={token}
instanceId={instance.id}
mode="replace"
idleLabel={t("settings.channels.connect", { defaultValue: "Connect" })}
onFeaturesUpdate={onFeaturesUpdate}
/>
);
}
const reconnect = async () => {
setBusy(true);
setError(null);
try {
onFeaturesUpdate(
await enableNanobotFeature(client, "feishu", { instanceId: instance.id }),
);
} catch (err) {
setError((err as Error).message);
} finally {
setBusy(false);
}
};
return (
<>
<div className="mt-3 flex justify-end">
<Button
type="button"
size="sm"
variant="outline"
className="h-8 rounded-full border-border/65 bg-background/80 px-3 text-[12px] font-semibold hover:bg-muted/70"
onClick={() => void reconnect()}
disabled={busy || !instance.enabled}
>
{busy ? (
<Loader2 className="mr-1.5 h-3.5 w-3.5 animate-spin" aria-hidden />
) : (
<RotateCcw className="mr-1.5 h-3.5 w-3.5" aria-hidden />
)}
{tx("custom.reconnect", "Reconnect")}
</Button>
</div>
{error ? (
<div className="mt-3 rounded-control border border-destructive/20 px-3 py-2 text-[12px] leading-5 text-destructive">
{error}
</div>
) : null}
</>
);
}
function defaultFeishuInstance(feature: NanobotFeatureInfo): NanobotChannelInstanceInfo {
return {
id: "default",
@@ -163,21 +62,6 @@ function defaultFeishuInstance(feature: NanobotFeatureInfo): NanobotChannelInsta
};
}
function feishuAssistantCountLabel(
count: number,
tx: ChannelTranslator,
): string {
if (count === 0) return tx("custom.countNone", "No assistant connected");
if (count === 1) return tx("custom.countOne", "1 assistant connected");
return tx("custom.countMany", "{{count}} assistants connected", { count });
}
function instanceDisplayName(instance: NanobotChannelInstanceInfo): string {
return instance.display_name?.trim() || instance.name.trim() || instance.id;
}
function maskFeishuAppId(appId: string | undefined): string {
if (!appId) return "";
if (appId.length <= 10) return appId;
return `${appId.slice(0, 7)}...${appId.slice(-4)}`;
}
@@ -25,7 +25,7 @@ export function FeishuConnectFlow({
<ChannelQrConnectFlow
token={token}
channelName="feishu"
startOptions={{ domain: "feishu", instanceId, mode }}
startParams={{ domain: "feishu", instance_id: instanceId, mode }}
idleLabel={idleLabel}
connectRequestId={connectRequestId}
onFeaturesUpdate={onFeaturesUpdate}
+1 -2
View File
@@ -15,14 +15,13 @@ export default {
lark: {
displayName: "Lark",
initials: "LK",
logoUrl: "https://www.larksuite.com/favicon.ico",
},
},
presentation: {
logoUrl: "https://www.larksuite.com/favicon.ico",
displayName: "Feishu",
initials: "FS",
color: "#3370FF",
logoUrl: "https://www.feishu.cn/favicon.ico",
setup: {
mode: "connect",
command: "nanobot channels login feishu",
+33 -19
View File
@@ -1,17 +1,8 @@
{
"description": "Use nanobot from Feishu chats and groups.",
"requirements": "Feishu app credentials, event subscription, gateway",
"setup": {
"primaryAction": "Connect with Feishu",
"docsLabel": "Open Feishu setup",
"officialLabel": "Open Feishu console",
"tryIt": "Send a DM or mention the Feishu assistant in a group.",
"summary": "Connect creates or links a Feishu app by QR code, then saves the app credentials for nanobot.",
"steps": [
"Click Connect and scan the QR code with Feishu or Lark on your phone.",
"Approve the app connection. nanobot saves the App ID and Secret automatically.",
"Send the bot a direct message or mention it in a Feishu group to test it."
],
"fields": {
"appId": {
"label": "App ID",
@@ -19,8 +10,7 @@
},
"appSecret": {
"label": "App Secret",
"placeholder": "Leave blank to keep current secret",
"help": "Paste a new App Secret only when rotating credentials."
"placeholder": "Leave blank to keep current secret"
},
"domain": {
"label": "Region",
@@ -47,6 +37,38 @@
"true": "Separate session for each topic",
"false": "One shared session for the group"
}
},
"name": {
"label": "Account name"
},
"encryptKey": {
"label": "Encryption key"
},
"verificationToken": {
"label": "Verification token"
},
"reactEmoji": {
"label": "Read emoji"
},
"doneEmoji": {
"label": "Done emoji"
},
"toolHintPrefix": {
"label": "Tool hint prefix"
},
"replyToMessage": {
"label": "Reply to message",
"choices": {
"true": "On",
"false": "Off"
}
},
"streaming": {
"label": "Streaming",
"choices": {
"true": "On",
"false": "Off"
}
}
}
},
@@ -54,14 +76,6 @@
"toggleAssistant": "{{name}} assistant",
"configured": "Connected",
"needsSetup": "Needs authorization",
"noAppId": "No App ID",
"createAnother": "Create another assistant",
"createHint": "Create a separate Feishu bot for another team, space, or workflow.",
"createAssistant": "Create assistant",
"reconnect": "Reconnect",
"countNone": "No assistant connected",
"countOne": "1 assistant connected",
"countMany": "{{count}} assistants connected",
"qrAlt": "Feishu connection QR code",
"scanTitle": "Scan with Feishu",
"scanDescription": "Use Feishu or Lark on your phone to scan this code. nanobot will finish setup automatically after authorization.",
+33 -19
View File
@@ -1,17 +1,8 @@
{
"description": "Usa nanobot en chats y grupos de Feishu.",
"requirements": "Credenciales de Feishu, suscripción a eventos y pasarela",
"setup": {
"primaryAction": "Conectar Feishu",
"docsLabel": "Abrir guía de Feishu",
"officialLabel": "Abrir consola de Feishu",
"tryIt": "Envía un DM o menciona al asistente en un grupo.",
"summary": "La conexión crea o vincula una app de Feishu por QR y guarda sus credenciales.",
"steps": [
"Haz clic en Conectar y escanea el QR con Feishu o Lark.",
"Aprueba la conexión. nanobot guarda el App ID y el Secret automáticamente.",
"Envía un DM al bot o menciónalo en un grupo de Feishu."
],
"fields": {
"appId": {
"label": "App ID",
@@ -19,8 +10,7 @@
},
"appSecret": {
"label": "App Secret",
"placeholder": "Déjalo vacío para conservar el secreto",
"help": "Pega un nuevo secreto solo si quieres sustituir el que está guardado."
"placeholder": "Déjalo vacío para conservar el secreto"
},
"domain": {
"label": "Región",
@@ -47,6 +37,38 @@
"true": "Una sesión separada por tema",
"false": "Una sesión compartida para el grupo"
}
},
"name": {
"label": "Nombre de cuenta"
},
"encryptKey": {
"label": "Clave de cifrado"
},
"verificationToken": {
"label": "Token de verificación"
},
"reactEmoji": {
"label": "Leer emojis"
},
"doneEmoji": {
"label": "emoji hecho"
},
"toolHintPrefix": {
"label": "Prefijo de sugerencia de herramienta"
},
"replyToMessage": {
"label": "Responder al mensaje",
"choices": {
"true": "encendido",
"false": "Apagado"
}
},
"streaming": {
"label": "Transmisión",
"choices": {
"true": "encendido",
"false": "Apagado"
}
}
}
},
@@ -54,14 +76,6 @@
"toggleAssistant": "Activar el asistente {{name}}",
"configured": "Conectado",
"needsSetup": "Necesita autorización",
"noAppId": "Sin App ID",
"createAnother": "Crear otro asistente",
"createHint": "Crea un bot de Feishu independiente para otro equipo, espacio o flujo de trabajo.",
"createAssistant": "Crear asistente",
"reconnect": "Reconectar",
"countNone": "Ningún asistente conectado",
"countOne": "1 asistente conectado",
"countMany": "{{count}} asistentes conectados",
"qrAlt": "Código QR de conexión de Feishu",
"scanTitle": "Escanea con Feishu",
"scanDescription": "Escanea con Feishu o Lark en tu teléfono. nanobot completará la configuración tras la autorización.",
+33 -19
View File
@@ -1,17 +1,8 @@
{
"description": "Utilisez nanobot dans les conversations et groupes Feishu.",
"requirements": "Identifiants Feishu, abonnement aux événements et passerelle",
"setup": {
"primaryAction": "Connecter Feishu",
"docsLabel": "Ouvrir le guide Feishu",
"officialLabel": "Ouvrir la console Feishu",
"tryIt": "Envoyez un message privé ou mentionnez l’assistant dans un groupe.",
"summary": "La connexion crée ou associe une application Feishu par QR code et enregistre ses identifiants.",
"steps": [
"Cliquez sur Connecter et scannez le QR code avec Feishu ou Lark.",
"Approuvez la connexion. nanobot enregistre automatiquement l’App ID et le Secret.",
"Envoyez un message privé au bot ou mentionnez-le dans un groupe Feishu."
],
"fields": {
"appId": {
"label": "App ID",
@@ -19,8 +10,7 @@
},
"appSecret": {
"label": "App Secret",
"placeholder": "Laisser vide pour conserver le secret",
"help": "Collez un nouveau secret uniquement pour remplacer celui qui est enregistré."
"placeholder": "Laisser vide pour conserver le secret"
},
"domain": {
"label": "Région",
@@ -47,6 +37,38 @@
"true": "Une session séparée par sujet",
"false": "Une session partagée pour le groupe"
}
},
"name": {
"label": "Nom du compte"
},
"encryptKey": {
"label": "Clé de chiffrement"
},
"verificationToken": {
"label": "Jeton de vérification"
},
"reactEmoji": {
"label": "Lire les emoji"
},
"doneEmoji": {
"label": "Terminé emoji"
},
"toolHintPrefix": {
"label": "Préfixe d'indice d'outil"
},
"replyToMessage": {
"label": "Répondre au message",
"choices": {
"true": "Sur",
"false": "Désactivé"
}
},
"streaming": {
"label": "Diffusion en continu",
"choices": {
"true": "Sur",
"false": "Désactivé"
}
}
}
},
@@ -54,14 +76,6 @@
"toggleAssistant": "Activer l’assistant {{name}}",
"configured": "Connecté",
"needsSetup": "Autorisation requise",
"noAppId": "Aucun App ID",
"createAnother": "Créer un autre assistant",
"createHint": "Créez un bot Feishu distinct pour une autre équipe, un autre espace ou un autre usage.",
"createAssistant": "Créer l’assistant",
"reconnect": "Reconnecter",
"countNone": "Aucun assistant connecté",
"countOne": "1 assistant connecté",
"countMany": "{{count}} assistants connectés",
"qrAlt": "QR code de connexion Feishu",
"scanTitle": "Scanner avec Feishu",
"scanDescription": "Utilisez Feishu ou Lark sur votre téléphone pour scanner ce code. nanobot terminera la configuration après autorisation.",
+33 -19
View File
@@ -1,17 +1,8 @@
{
"description": "Gunakan nanobot dari chat dan grup Feishu.",
"requirements": "Kredensial Feishu, langganan event, dan gateway",
"setup": {
"primaryAction": "Hubungkan Feishu",
"docsLabel": "Buka panduan Feishu",
"officialLabel": "Buka konsol Feishu",
"tryIt": "Kirim DM atau sebut asisten di grup.",
"summary": "Koneksi membuat atau menautkan aplikasi Feishu lewat QR dan menyimpan kredensialnya.",
"steps": [
"Klik Hubungkan dan pindai QR dengan Feishu atau Lark.",
"Setujui koneksi. nanobot menyimpan App ID dan Secret otomatis.",
"Kirim DM ke bot atau sebut di grup Feishu."
],
"fields": {
"appId": {
"label": "App ID",
@@ -19,8 +10,7 @@
},
"appSecret": {
"label": "App Secret",
"placeholder": "Kosongkan untuk mempertahankan secret",
"help": "Masukkan App Secret baru hanya untuk mengganti nilai yang tersimpan."
"placeholder": "Kosongkan untuk mempertahankan secret"
},
"domain": {
"label": "Wilayah",
@@ -47,6 +37,38 @@
"true": "Sesi terpisah untuk setiap topik",
"false": "Satu sesi bersama untuk grup"
}
},
"name": {
"label": "Nama akun"
},
"encryptKey": {
"label": "Kunci enkripsi"
},
"verificationToken": {
"label": "Token verifikasi"
},
"reactEmoji": {
"label": "Baca emoji"
},
"doneEmoji": {
"label": "Selesai emoji"
},
"toolHintPrefix": {
"label": "Awalan petunjuk alat"
},
"replyToMessage": {
"label": "Membalas pesan",
"choices": {
"true": "Aktif",
"false": "Mati"
}
},
"streaming": {
"label": "Streaming",
"choices": {
"true": "Aktif",
"false": "Mati"
}
}
}
},
@@ -54,14 +76,6 @@
"toggleAssistant": "Aktifkan asisten {{name}}",
"configured": "Terhubung",
"needsSetup": "Perlu otorisasi",
"noAppId": "Tidak ada App ID",
"createAnother": "Buat asisten lain",
"createHint": "Buat bot Feishu terpisah untuk tim atau alur kerja lain.",
"createAssistant": "Buat asisten",
"reconnect": "Hubungkan ulang",
"countNone": "Belum ada asisten terhubung",
"countOne": "1 asisten terhubung",
"countMany": "{{count}} asisten terhubung",
"qrAlt": "Kode QR koneksi Feishu",
"scanTitle": "Pindai dengan Feishu",
"scanDescription": "Pindai kode ini dengan Feishu atau Lark di ponsel. nanobot akan menyelesaikan penyiapan setelah Anda menyetujui akses.",
+33 -19
View File
@@ -1,17 +1,8 @@
{
"description": "Feishu のチャットとグループから nanobot を利用します。",
"requirements": "Feishu アプリ認証情報、イベント購読、ゲートウェイ",
"setup": {
"primaryAction": "Feishu に接続",
"docsLabel": "Feishu 設定ガイドを開く",
"officialLabel": "Feishu コンソールを開く",
"tryIt": "DM を送るか、グループで Feishu アシスタントをメンションします。",
"summary": "QR コードで Feishu アプリを作成または連携し、認証情報を自動保存します。",
"steps": [
"接続をクリックし、スマートフォンの Feishu または Lark で QR コードを読み取ります。",
"アプリ接続を承認すると、nanobot が App ID と Secret を保存します。",
"ボットに DM を送るか Feishu グループでメンションします。"
],
"fields": {
"appId": {
"label": "App ID",
@@ -19,8 +10,7 @@
},
"appSecret": {
"label": "App Secret",
"placeholder": "現在のシークレットを保持するには空欄",
"help": "認証情報を更新するときだけ新しい App Secret を貼り付けます。"
"placeholder": "現在のシークレットを保持するには空欄"
},
"domain": {
"label": "地域",
@@ -47,6 +37,38 @@
"true": "トピックごとにセッションを分離",
"false": "グループでセッションを共有"
}
},
"name": {
"label": "アカウント名"
},
"encryptKey": {
"label": "暗号化キー"
},
"verificationToken": {
"label": "検証トークン"
},
"reactEmoji": {
"label": "絵文字を読む"
},
"doneEmoji": {
"label": "完了絵文字"
},
"toolHintPrefix": {
"label": "ツールヒントの接頭辞"
},
"replyToMessage": {
"label": "メッセージに返信する",
"choices": {
"true": "オン",
"false": "オフ"
}
},
"streaming": {
"label": "ストリーミング",
"choices": {
"true": "オン",
"false": "オフ"
}
}
}
},
@@ -54,14 +76,6 @@
"toggleAssistant": "アシスタント {{name}} を有効にする",
"configured": "接続済み",
"needsSetup": "認可が必要",
"noAppId": "App ID なし",
"createAnother": "別のアシスタントを作成",
"createHint": "別のチームやワークフロー用に独立した Feishu ボットを作成します。",
"createAssistant": "アシスタントを作成",
"reconnect": "再接続",
"countNone": "接続済みアシスタントなし",
"countOne": "接続済みアシスタント:1 件",
"countMany": "接続済みアシスタント:{{count}} 件",
"qrAlt": "Feishu 接続 QR コード",
"scanTitle": "Feishu でスキャン",
"scanDescription": "スマートフォンの Feishu または Lark でスキャンしてください。認可後に nanobot が設定を完了します。",
+33 -19
View File
@@ -1,17 +1,8 @@
{
"description": "Feishu 채팅과 그룹에서 nanobot을 사용합니다.",
"requirements": "Feishu 앱 인증 정보, 이벤트 구독 및 게이트웨이",
"setup": {
"primaryAction": "Feishu 연결",
"docsLabel": "Feishu 설정 가이드 열기",
"officialLabel": "Feishu 콘솔 열기",
"tryIt": "DM을 보내거나 그룹에서 Feishu 어시스턴트를 멘션하세요.",
"summary": "QR 코드로 Feishu 앱을 만들거나 연결하고 인증 정보을 자동 저장합니다.",
"steps": [
"연결을 클릭하고 휴대폰의 Feishu 또는 Lark로 QR 코드를 스캔하세요.",
"앱 연결을 승인하면 nanobot이 App ID와 Secret을 자동 저장합니다.",
"봇에 DM을 보내거나 Feishu 그룹에서 멘션하세요."
],
"fields": {
"appId": {
"label": "App ID",
@@ -19,8 +10,7 @@
},
"appSecret": {
"label": "App Secret",
"placeholder": "현재 Secret을 유지하려면 비워 두세요",
"help": "인증 정보을 교체할 때만 새 App Secret을 붙여 넣으세요."
"placeholder": "현재 Secret을 유지하려면 비워 두세요"
},
"domain": {
"label": "지역",
@@ -47,6 +37,38 @@
"true": "주제별로 세션 분리",
"false": "그룹에서 하나의 세션 공유"
}
},
"name": {
"label": "계정 이름"
},
"encryptKey": {
"label": "암호화 키"
},
"verificationToken": {
"label": "인증 토큰"
},
"reactEmoji": {
"label": "이모티콘 읽기"
},
"doneEmoji": {
"label": "이모티콘 완료"
},
"toolHintPrefix": {
"label": "도구 힌트 접두사"
},
"replyToMessage": {
"label": "메시지에 답장하기",
"choices": {
"true": "켜기",
"false": "끄기"
}
},
"streaming": {
"label": "스트리밍",
"choices": {
"true": "켜기",
"false": "끄기"
}
}
}
},
@@ -54,14 +76,6 @@
"toggleAssistant": "{{name}} 어시스턴트 활성화",
"configured": "연결됨",
"needsSetup": "인증 필요",
"noAppId": "App ID 없음",
"createAnother": "다른 어시스턴트 만들기",
"createHint": "다른 팀이나 워크플로를 위한 별도 Feishu 봇을 만드세요.",
"createAssistant": "어시스턴트 만들기",
"reconnect": "다시 연결",
"countNone": "연결된 어시스턴트 없음",
"countOne": "어시스턴트 1개 연결됨",
"countMany": "어시스턴트 {{count}}개 연결됨",
"qrAlt": "Feishu 연결 QR 코드",
"scanTitle": "Feishu로 스캔",
"scanDescription": "휴대폰의 Feishu 또는 Lark로 스캔하세요. 승인 후 nanobot이 설정을 완료합니다.",
@@ -1,17 +1,8 @@
{
"description": "Use o nanobot em conversas e grupos do Feishu.",
"requirements": "Credenciais do Feishu, assinatura de eventos e gateway",
"setup": {
"primaryAction": "Conectar Feishu",
"docsLabel": "Abrir guia do Feishu",
"officialLabel": "Abrir console do Feishu",
"tryIt": "Envie uma DM ou mencione o assistente em um grupo.",
"summary": "A conexão cria ou vincula um app Feishu por QR e salva as credenciais.",
"steps": [
"Clique em Conectar e escaneie o QR com Feishu ou Lark.",
"Aprove a conexão. O nanobot salva App ID e Secret automaticamente.",
"Envie uma DM ao bot ou mencione-o em um grupo Feishu."
],
"fields": {
"appId": {
"label": "App ID",
@@ -19,8 +10,7 @@
},
"appSecret": {
"label": "App Secret",
"placeholder": "Deixe vazio para manter o segredo",
"help": "Cole um novo apenas ao trocar credenciais."
"placeholder": "Deixe vazio para manter o segredo"
},
"domain": {
"label": "Região",
@@ -47,6 +37,38 @@
"true": "Uma sessão separada por tópico",
"false": "Uma sessão compartilhada para o grupo"
}
},
"name": {
"label": "Nome da conta"
},
"encryptKey": {
"label": "Chave de criptografia"
},
"verificationToken": {
"label": "Token de verificação"
},
"reactEmoji": {
"label": "Ler emoticons"
},
"doneEmoji": {
"label": "Emoji pronto"
},
"toolHintPrefix": {
"label": "Prefixo de dica de ferramenta"
},
"replyToMessage": {
"label": "Responder à mensagem",
"choices": {
"true": "Ligado",
"false": "Desligado"
}
},
"streaming": {
"label": "Transmissão",
"choices": {
"true": "Ligado",
"false": "Desligado"
}
}
}
},
@@ -54,14 +76,6 @@
"toggleAssistant": "Ativar assistente {{name}}",
"configured": "Conectado",
"needsSetup": "Precisa de autorização",
"noAppId": "Sem App ID",
"createAnother": "Criar outro assistente",
"createHint": "Crie um bot Feishu separado para outra equipe, espaço ou fluxo de trabalho.",
"createAssistant": "Criar assistente",
"reconnect": "Reconectar",
"countNone": "Nenhum assistente conectado",
"countOne": "1 assistente conectado",
"countMany": "{{count}} assistentes conectados",
"qrAlt": "QR code de conexão do Feishu",
"scanTitle": "Escaneie com o Feishu",
"scanDescription": "Escaneie com Feishu ou Lark no celular. O nanobot concluirá a configuração após a autorização.",
+33 -19
View File
@@ -1,17 +1,8 @@
{
"description": "Sử dụng nanobot trong cuộc trò chuyện và nhóm Feishu.",
"requirements": "Thông tin xác thực Feishu, đăng ký sự kiện và gateway",
"setup": {
"primaryAction": "Kết nối Feishu",
"docsLabel": "Mở hướng dẫn Feishu",
"officialLabel": "Mở bảng điều khiển Feishu",
"tryIt": "Gửi tin nhắn riêng hoặc nhắc trợ lý trong nhóm.",
"summary": "Kết nối tạo hoặc liên kết ứng dụng Feishu bằng QR và lưu thông tin xác thực.",
"steps": [
"Nhấn Kết nối và quét QR bằng Feishu hoặc Lark.",
"Phê duyệt kết nối. nanobot tự lưu App ID và Secret.",
"Gửi tin nhắn riêng cho bot hoặc nhắc bot trong nhóm Feishu."
],
"fields": {
"appId": {
"label": "App ID",
@@ -19,8 +10,7 @@
},
"appSecret": {
"label": "App Secret",
"placeholder": "Để trống để giữ khóa hiện tại",
"help": "Chỉ nhập App Secret mới khi muốn thay thế giá trị đã lưu."
"placeholder": "Để trống để giữ khóa hiện tại"
},
"domain": {
"label": "Khu vực",
@@ -47,6 +37,38 @@
"true": "Phiên riêng cho từng chủ đề",
"false": "Dùng chung một phiên cho nhóm"
}
},
"name": {
"label": "Tên tài khoản"
},
"encryptKey": {
"label": "Khóa mã hóa"
},
"verificationToken": {
"label": "Mã thông báo xác minh"
},
"reactEmoji": {
"label": "Đọc biểu tượng cảm xúc"
},
"doneEmoji": {
"label": "biểu tượng cảm xúc xong"
},
"toolHintPrefix": {
"label": "Tiền tố gợi ý công cụ"
},
"replyToMessage": {
"label": "Trả lời tin nhắn",
"choices": {
"true": "Bật",
"false": "Tắt"
}
},
"streaming": {
"label": "Truyền phát",
"choices": {
"true": "Bật",
"false": "Tắt"
}
}
}
},
@@ -54,14 +76,6 @@
"toggleAssistant": "Bật trợ lý {{name}}",
"configured": "Đã kết nối",
"needsSetup": "Cần cấp quyền",
"noAppId": "Không có App ID",
"createAnother": "Tạo trợ lý khác",
"createHint": "Tạo bot Feishu riêng cho nhóm hoặc quy trình khác.",
"createAssistant": "Tạo trợ lý",
"reconnect": "Kết nối lại",
"countNone": "Chưa kết nối trợ lý",
"countOne": "Đã kết nối 1 trợ lý",
"countMany": "Đã kết nối {{count}} trợ lý",
"qrAlt": "Mã QR kết nối Feishu",
"scanTitle": "Quét bằng Feishu",
"scanDescription": "Quét bằng Feishu hoặc Lark trên điện thoại. nanobot sẽ hoàn tất cấu hình sau khi cấp quyền.",
@@ -1,18 +1,9 @@
{
"displayName": "飞书",
"description": "在飞书会话和群组中使用 nanobot。",
"requirements": "飞书应用凭据、事件订阅和网关",
"setup": {
"primaryAction": "连接飞书",
"docsLabel": "打开飞书配置指南",
"officialLabel": "打开飞书开发者后台",
"tryIt": "向飞书助手发送私信,或在群组中提及它。",
"summary": "连接流程会通过二维码创建或关联飞书应用,并自动为 nanobot 保存应用凭据。",
"steps": [
"点击连接,用手机飞书或 Lark 扫描二维码。",
"批准应用连接,nanobot 会自动保存 App ID 和 Secret。",
"向机器人发送私信,或在飞书群中提及它以完成测试。"
],
"fields": {
"appId": {
"label": "App ID",
@@ -20,8 +11,7 @@
},
"appSecret": {
"label": "App Secret",
"placeholder": "留空以保留现有密钥",
"help": "仅在轮换凭据时粘贴新的 App Secret。"
"placeholder": "留空以保留现有密钥"
},
"domain": {
"label": "区域",
@@ -48,6 +38,38 @@
"true": "每个话题使用独立会话",
"false": "群聊共用一个会话"
}
},
"name": {
"label": "账户名称"
},
"encryptKey": {
"label": "加密密钥"
},
"verificationToken": {
"label": "验证令牌"
},
"reactEmoji": {
"label": "已读表情"
},
"doneEmoji": {
"label": "完成表情"
},
"toolHintPrefix": {
"label": "工具提示前缀"
},
"replyToMessage": {
"label": "引用回复",
"choices": {
"true": "开启",
"false": "关闭"
}
},
"streaming": {
"label": "流式输出",
"choices": {
"true": "开启",
"false": "关闭"
}
}
}
},
@@ -55,14 +77,6 @@
"toggleAssistant": "{{name}} 助手",
"configured": "已连接",
"needsSetup": "需要授权",
"noAppId": "没有 App ID",
"createAnother": "创建另一个助手",
"createHint": "为其他团队、空间或工作流创建独立的飞书机器人。",
"createAssistant": "创建助手",
"reconnect": "重新连接",
"countNone": "尚未连接助手",
"countOne": "已连接 1 个助手",
"countMany": "已连接 {{count}} 个助手",
"qrAlt": "飞书连接二维码",
"scanTitle": "使用飞书扫码",
"scanDescription": "用手机上的飞书或 Lark 扫描二维码。授权完成后,nanobot 会自动完成配置。",
@@ -1,18 +1,9 @@
{
"displayName": "飛書",
"description": "在飛書對話和群組中使用 nanobot。",
"requirements": "飛書應用程式憑證、事件訂閱和閘道",
"setup": {
"primaryAction": "連接飛書",
"docsLabel": "開啟飛書設定指南",
"officialLabel": "開啟飛書開發者後台",
"tryIt": "向飛書助手傳送私訊,或在群組中提及它。",
"summary": "連接流程會透過QR Code建立或關聯飛書應用程式,並自動為 nanobot 儲存應用程式憑證。",
"steps": [
"點選連接,用手機飛書或 Lark 掃描QR Code。",
"核准應用程式連接,nanobot 會自動儲存 App ID 和 Secret。",
"向機器人傳送私訊,或在飛書群組中提及它以完成測試。"
],
"fields": {
"appId": {
"label": "App ID",
@@ -20,8 +11,7 @@
},
"appSecret": {
"label": "App Secret",
"placeholder": "留空以保留現有金鑰",
"help": "僅在輪換憑證時貼上新的 App Secret。"
"placeholder": "留空以保留現有金鑰"
},
"domain": {
"label": "區域",
@@ -48,6 +38,38 @@
"true": "每個主題使用獨立工作階段",
"false": "群組共用一個工作階段"
}
},
"name": {
"label": "帳戶名稱"
},
"encryptKey": {
"label": "加密金鑰"
},
"verificationToken": {
"label": "驗證令牌"
},
"reactEmoji": {
"label": "已讀表情"
},
"doneEmoji": {
"label": "完成表情"
},
"toolHintPrefix": {
"label": "工具提示前綴"
},
"replyToMessage": {
"label": "引用回覆",
"choices": {
"true": "開啟",
"false": "關閉"
}
},
"streaming": {
"label": "串流輸出",
"choices": {
"true": "開啟",
"false": "關閉"
}
}
}
},
@@ -55,14 +77,6 @@
"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 會自動完成設定。",