Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
feat(bots): 为伙伴飞书连接补充创建指引
xuzini-xzn18eae5bbb858
diff --git a/apps/desktop/scripts/fixtures/teammate-feishu/teammate-feishu-fixture.tsx b/apps/desktop/scripts/fixtures/teammate-feishu/teammate-feishu-fixture.tsxnew file mode 100644index 0000000000..78fcdb0147--- /dev/null+++ b/apps/desktop/scripts/fixtures/teammate-feishu/teammate-feishu-fixture.tsx@@ -0,0 +1,30 @@+import { BotChannelsPage } from '../../../src/renderer/features/bots/BotChannelsPage';+import type { BotProfile } from '../../../src/renderer/features/bots/botStore';+import { forbid, mountPage, subscription } from '../../ui-page/harness';++mountPage({+ route: '/bots/fixture-cindy?settings=1&settingsPage=channels',+ host: {+ botImConnection: {+ list: async () => ({ connections: [] }),+ listAdoptable: async () => ({ bots: [] }),+ onChanged: subscription('connections'),+ add: forbid('botImConnection.add'),+ adopt: forbid('botImConnection.adopt'),+ remove: forbid('botImConnection.remove'),+ },+ openExternal: async () => undefined,+ maker: {+ imDefaultSettingsGet: async () => ({ agentKind: 'codex', agents: { codex: { model: 'gpt-6.1-sol' } } }),+ },+ wechatBot: {+ getState: async () => ({ phase: 'disconnected', bound: false, queuedTasks: 0 }),+ getChannelSettings: async () => ({ version: 1, workingDir: null, workingDirAvailable: true }),+ onStateChange: subscription('wechatState'),+ onChannelSettingsChange: subscription('wechatSettings'),+ },+ },+ render: () => <div className="mx-auto max-w-xl p-4">+ <BotChannelsPage bot={{ id: 'fixture-cindy', name: 'Cindy', status: 'active' } as BotProfile} />+ </div>,+});diff --git a/apps/desktop/scripts/fixtures/teammate-feishu/ui-page.mjs b/apps/desktop/scripts/fixtures/teammate-feishu/ui-page.mjsnew file mode 100644index 0000000000..bacf810329--- /dev/null+++ b/apps/desktop/scripts/fixtures/teammate-feishu/ui-page.mjs@@ -0,0 +1,50 @@+import assert from 'node:assert/strict';++export default {+ name: 'teammate-feishu',+ entry: './teammate-feishu-fixture.tsx',+ viewport: { width: 720, height: 900 },+ real: 'BotChannelsPage add-platform dialog, shared Input, Button, SegmentedControl, Collapse and five-locale translations',+ notCovered: 'Live Feishu/Lark login, application provisioning, external browser navigation, credential persistence and connection handshake; host writes are forbidden',+ cases: {+ default: { about: 'Feishu creation prompt and link share one row', data: {} },+ 'feishu-onboarding': { about: 'Feishu creation prompt and link share one row', data: {} },+ 'feishu-lark': { about: 'Lark updates the link, description and submit label', data: { lark: true } },+ 'feishu-expanded': { about: 'Expanded setup guide above the credential inputs', data: { expanded: true } },+ 'feishu-narrow': { about: '320px viewport wraps guidance and keeps the form scrollable', data: { expanded: true }, viewport: { width: 320, height: 700 } },+ },+ async check(page, ui) {+ await page.getByRole('button', { name: await ui.t('bots.channels.add.button'), exact: true }).click();+ const dialog = page.getByRole('dialog');+ await dialog.getByRole('radio', { name: await ui.t('bots.channels.platform.feishu'), exact: true }).click();+ if (ui.data.lark) {+ await dialog.getByRole('radio', { name: await ui.t('bots.channels.platform.lark'), exact: true }).click();+ }+ const service = await ui.t('bots.channels.platform.' + (ui.data.lark ? 'lark' : 'feishu'));+ const link = dialog.getByRole('link', { name: await ui.t('bots.channels.add.feishu.createLink', { service }), exact: true });+ assert.equal(await link.getAttribute('href'), ui.data.lark+ ? 'https://open.larksuite.com/page/launcher?from=backend_oneclick'+ : 'https://open.feishu.cn/page/launcher?from=backend_oneclick');+ assert.equal(await dialog.getByRole('button', { name: await ui.t('bots.channels.add.feishu.confirm', { service }), exact: true }).isDisabled(), true);+ assert.equal(await dialog.locator('span.truncate').evaluateAll((labels) =>+ labels.some((label) => label.scrollWidth > label.clientWidth)), false, 'platform names fit without truncation');+ if (ui.locale === 'zh-CN' && ui.viewport.width >= 600) {+ const prompt = await dialog.getByText(await ui.t('bots.channels.add.feishu.createPrompt', { service }), { exact: true }).boundingBox();+ const anchor = await link.boundingBox();+ assert.ok(Math.abs(prompt.y - anchor.y) < 2, 'Chinese creation prompt and link stay on one row');+ }+ const steps = dialog.getByRole('button', { name: await ui.t('bots.channels.add.feishu.stepsLabel'), exact: true });+ if (ui.data.expanded) {+ await steps.click();+ await dialog.getByText(await ui.t('bots.channels.add.feishu.stepCreate'), { exact: true }).waitFor({ state: 'visible' });+ assert.equal(await steps.getAttribute('aria-expanded'), 'true');+ }+ await ui.capture('onboarding');+ if (ui.viewport.width < 400) {+ const secret = dialog.getByLabel(await ui.t('bots.channels.add.feishu.appSecretLabel'), { exact: true });+ await secret.scrollIntoViewIfNeeded();+ assert.equal(await secret.isVisible(), true, 'credential inputs remain reachable below the guide');+ await ui.capture('credentials');+ }+ },+};diff --git a/apps/desktop/src/renderer/features/bots/BotChannelsPage.tsx b/apps/desktop/src/renderer/features/bots/BotChannelsPage.tsxindex e03f2d82a8..224926b7eb 100644--- a/apps/desktop/src/renderer/features/bots/BotChannelsPage.tsx+++ b/apps/desktop/src/renderer/features/bots/BotChannelsPage.tsx@@ -15,7 +15,7 @@ import { standardSessionRoute } from '@/lib/orcaSessionIdentity';import { HookConnectionsSection } from '@/components/settings/HookConnectionsSection';import { useCallback, useEffect, useId, useRef, useState, type FormEvent } from 'react';import * as Dialog from '@radix-ui/react-dialog';-import { Archive, Briefcase, ChevronRight, ChevronUp, Gamepad2, MessageSquare, Plus, Send, Zap, type LucideIcon } from 'lucide-react';+import { Archive, ArrowUpRight, Briefcase, ChevronRight, ChevronUp, Gamepad2, MessageSquare, Plus, Send, Zap, type LucideIcon } from 'lucide-react';import { useNavigate } from 'react-router-dom';import { ChromeIconButton } from '@/components/title-bar/ChromeIconButton';@@ -26,7 +26,6 @@ import { useConfirmDialog } from '@/components/ui/confirm-dialog-provider';import { FormField } from '@/components/ui/form-field';import { Input } from '@/components/ui/input';import { SegmentedControl } from '@/components/ui/segmented-control';-import { Select } from '@/components/ui/select';import { Spinner } from '@/components/ui/spinner';import { WechatBotSection } from '@/components/settings/WechatBotSection';import { cn } from '@/lib/utils';@@ -68,6 +67,11 @@ import {const BOT_TOKEN_PATTERN = /^\d+:[A-Za-z0-9_-]{20,}$/;const OWNER_USER_ID_PATTERN = /^\d{4,20}$/;+// Same application launchers as Settings → IM bots.+const FEISHU_APP_LAUNCHER_URL: Record<BotImFeishuService, string> = {+ feishu: 'https://open.feishu.cn/page/launcher?from=backend_oneclick',+ lark: 'https://open.larksuite.com/page/launcher?from=backend_oneclick',+};const DISCORD_OWNER_ID_PATTERN = /^\d{17,20}$/;const CHANNEL_ICON: Record<BotImChannel, LucideIcon> = {@@ -703,6 +707,8 @@ function BotChannelAddDialog({const [token, setToken] = useState('');const [ownerUserId, setOwnerUserId] = useState('');const [service, setService] = useState<BotImFeishuService>('feishu');+ const [guideOpen, setGuideOpen] = useState(false);+ const guideId = useId();const [appId, setAppId] = useState('');const [appSecret, setAppSecret] = useState('');// 企业微信 / 钉钉 / Discord 各自的两格: 字段名跟平台的叫法走, 互不串用。@@ -722,6 +728,8 @@ function BotChannelAddDialog({const existing = adoptable.find((item) => item.channel === channel) ?? null;const credentialsHere = remoteName === undefined;const useExisting = existing !== null && (source === 'existing' || !credentialsHere);+ const manualFeishu = channel === 'feishu' && credentialsHere && !useExisting;+ const serviceName = t('bots.channels.platform.' + service);const apiRef = useRef(api);apiRef.current = api;@@ -849,13 +857,15 @@ function BotChannelAddDialog({{t('bots.channels.add.title', { name: bot.name })}</Dialog.Title><Dialog.Description className="mt-2 text-13 leading-[1.5] text-[var(--confirm-desc)]">- {t('bots.channels.add.description')}+ {manualFeishu+ ? t('bots.channels.add.feishu.description', { service: serviceName, name: bot.name })+ : t('bots.channels.add.description')}</Dialog.Description><divrole="radiogroup"aria-label={t('bots.channels.add.platformLabel')}- className="mt-4 grid grid-cols-3 gap-2"+ className="mt-4 grid grid-cols-2 gap-2 min-[400px]:grid-cols-3">{PLATFORMS.map((item, index) => {const checked = item === channel;@@ -869,7 +879,7 @@ function BotChannelAddDialog({disabled={busy}onClick={() => setChannel(item)}className={cn(- 'flex min-h-11 min-w-0 items-center justify-center gap-2 rounded-xl border px-3 text-13 outline-none transition-colors',+ 'flex min-h-9 min-w-0 items-center justify-center gap-2 rounded-full border px-3 text-13 outline-none transition-colors','focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--focus-ring)]','disabled:cursor-not-allowed',checked@@ -956,21 +966,57 @@ function BotChannelAddDialog({</>) : channel === 'feishu' ? (<>- <FormField label={t('bots.channels.add.feishu.serviceLabel')}>- {(control) => (- <Select- id={control.id}- label={t('bots.channels.add.feishu.serviceLabel')}- value={service}- options={[- { value: 'feishu', label: t('bots.channels.platform.feishu') },- { value: 'lark', label: t('bots.channels.platform.lark') },- ]}- onValueChange={(next) => setService(next === 'lark' ? 'lark' : 'feishu')}- disabled={busy}- />- )}- </FormField>+ <SegmentedControl+ aria-label={t('bots.channels.add.feishu.serviceLabel')}+ value={service}+ options={[+ { value: 'feishu', label: t('bots.channels.platform.feishu') },+ { value: 'lark', label: t('bots.channels.platform.lark') },+ ]}+ onValueChange={setService}+ disabled={busy}+ />+ <section className="flex flex-col gap-2 rounded-xl border border-[var(--border-default)] p-3">+ <div className="flex flex-wrap items-center gap-x-2 gap-y-1 text-13 leading-[1.5]">+ <p className="font-medium text-[var(--text-primary)]">+ {t('bots.channels.add.feishu.createPrompt', { service: serviceName })}+ </p>+ <a+ href={FEISHU_APP_LAUNCHER_URL[service]}+ onClick={(event) => {+ event.preventDefault();+ void window.electronAPI.openExternal?.(FEISHU_APP_LAUNCHER_URL[service]);+ }}+ className="inline-flex items-center gap-0.5 text-[var(--text-secondary)] underline underline-offset-2 outline-none focus-visible:ring-2 focus-visible:ring-[var(--focus-ring)]"+ >+ {t('bots.channels.add.feishu.createLink', { service: serviceName })}+ <ArrowUpRight size={13} aria-hidden="true" className="shrink-0" />+ </a>+ </div>+ <p className="text-12 leading-[1.5] text-[var(--text-secondary)]">+ {t('bots.channels.add.feishu.credentialsHint')}+ </p>+ <Button+ type="button"+ variant="secondary"+ tone="quiet"+ size="sm"+ className="w-fit justify-start gap-1 px-1 text-[var(--text-secondary)]"+ aria-expanded={guideOpen}+ aria-controls={guideId}+ onClick={() => setGuideOpen((open) => !open)}+ >+ <ChevronRight size={12} aria-hidden="true" className={cn('shrink-0 transition-transform motion-reduce:transition-none', guideOpen && 'rotate-90')} />+ {t('bots.channels.add.feishu.stepsLabel')}+ </Button>+ <Collapse open={guideOpen} id={guideId}>+ <ol className="list-decimal space-y-2 pl-5 text-12 leading-[1.5] text-[var(--text-secondary)]">+ <li>{t('bots.channels.add.feishu.stepCreate')}</li>+ <li>{t('bots.channels.add.feishu.stepCredentials')}</li>+ <li>{t('bots.channels.add.feishu.stepConnect', { service: serviceName })}</li>+ </ol>+ </Collapse>+ </section><FormField label={t('bots.channels.add.feishu.appIdLabel')}>{(control) => (<Input@@ -1133,7 +1179,11 @@ function BotChannelAddDialog({loading={busy}disabled={!canSubmit || busy}>- {t(busy ? 'bots.channels.add.connecting' : 'bots.channels.add.confirm')}+ {busy+ ? t('bots.channels.add.connecting')+ : manualFeishu+ ? t('bots.channels.add.feishu.confirm', { service: serviceName })+ : t('bots.channels.add.confirm')}</Button></div></form>diff --git a/apps/desktop/src/renderer/features/bots/__tests__/botChannelsPage.test.tsx b/apps/desktop/src/renderer/features/bots/__tests__/botChannelsPage.test.tsxindex 97e39cec45..be1c49442f 100644--- a/apps/desktop/src/renderer/features/bots/__tests__/botChannelsPage.test.tsx+++ b/apps/desktop/src/renderer/features/bots/__tests__/botChannelsPage.test.tsx@@ -477,7 +477,7 @@ describe('BotChannelsPage', () => {fireEvent.change(within(dialog).getByLabelText('bots.channels.add.feishu.appSecretLabel'), {target: { value: 'secret' },});- fireEvent.click(within(dialog).getByRole('button', { name: 'bots.channels.add.confirm' }));+ fireEvent.click(within(dialog).getByRole('button', { name: /^bots\.channels\.add\.feishu\.confirm:/ }));await waitFor(() =>expect(api.add).toHaveBeenCalledWith({@@ -495,6 +495,66 @@ describe('BotChannelsPage', () => {expect(screen.getByRole('dialog')).toBeTruthy();});+ // Feature: users can create an application before entering credentials. Exercise+ // the real form, external-link bridge and service payload; no live Feishu account.+ it('opens the matching creation platform, toggles setup help and connects Lark with the entered credentials', async () => {+ const api = installApi({ connections: [] });+ const openExternal = vi.fn();+ Object.assign(window.electronAPI, { openExternal });+ render(<BotChannelsPage bot={mia} />);+ fireEvent.click(await screen.findByRole('button', { name: 'bots.channels.add.button' }));+ const dialog = await screen.findByRole('dialog');+ fireEvent.click(within(dialog).getByRole('radio', { name: 'bots.channels.platform.feishu' }));++ const create = () => within(dialog).getByRole('link', { name: /^bots\.channels\.add\.feishu\.createLink:/ });+ const steps = within(dialog).getByRole('button', { name: 'bots.channels.add.feishu.stepsLabel' });+ expect(steps.getAttribute('aria-expanded')).toBe('false');+ expect(within(dialog).queryByText('bots.channels.add.feishu.stepCreate')).toBeNull();+ fireEvent.click(steps);+ expect(steps.getAttribute('aria-expanded')).toBe('true');+ expect(await within(dialog).findByText('bots.channels.add.feishu.stepCreate')).toBeTruthy();+ fireEvent.click(steps);+ expect(steps.getAttribute('aria-expanded')).toBe('false');++ fireEvent.click(create());+ expect(openExternal).toHaveBeenLastCalledWith('https://open.feishu.cn/page/launcher?from=backend_oneclick');+ expect(api.add).not.toHaveBeenCalled();+ expect(screen.getByRole('dialog')).toBe(dialog);+ const submit = () => within(dialog).getByRole('button', { name: /^bots\.channels\.add\.feishu\.confirm:/ });+ expect((submit() as HTMLButtonElement).disabled).toBe(true);+ fireEvent.change(within(dialog).getByLabelText('bots.channels.add.feishu.appIdLabel'), { target: { value: ' cli_lark ' } });+ fireEvent.change(within(dialog).getByLabelText('bots.channels.add.feishu.appSecretLabel'), { target: { value: ' secret ' } });+ fireEvent.click(within(dialog).getByRole('radio', { name: 'bots.channels.platform.lark' }));+ expect(create().textContent).toContain('"service":"bots.channels.platform.lark"');+ expect(submit().textContent).toContain('"service":"bots.channels.platform.lark"');+ expect(within(dialog).getByText(/^bots\.channels\.add\.feishu\.description:/).textContent).toContain('"service":"bots.channels.platform.lark"');+ fireEvent.click(create());+ expect(openExternal).toHaveBeenLastCalledWith('https://open.larksuite.com/page/launcher?from=backend_oneclick');+ fireEvent.click(submit());+ await waitFor(() => expect(api.add).toHaveBeenCalledWith({ botId: 'bot-1', channel: 'feishu', service: 'lark', appId: 'cli_lark', appSecret: 'secret' }));+ await waitFor(() => expect(screen.queryByRole('dialog')).toBeNull());+ });++ it('shows creation guidance only for manual Feishu setup and preserves existing-bot adoption', async () => {+ const api = Object.assign(installApi({ connections: [] }), {+ listAdoptable: vi.fn(async () => ({ bots: [{ channel: 'feishu', identity: 'cli_existing' }] })),+ adopt: vi.fn(async () => ({ connections: [connection({ channel: 'feishu' })] })),+ });+ render(<BotChannelsPage bot={mia} />);+ fireEvent.click(await screen.findByRole('button', { name: 'bots.channels.add.button' }));+ const dialog = await screen.findByRole('dialog');+ fireEvent.click(within(dialog).getByRole('radio', { name: 'bots.channels.platform.feishu' }));+ const existing = await within(dialog).findByRole('radio', { name: /bots\.channels\.add\.source\.existing/ });+ expect(within(dialog).queryByRole('button', { name: 'bots.channels.add.feishu.stepsLabel' })).toBeNull();+ fireEvent.click(within(dialog).getByRole('radio', { name: 'bots.channels.add.source.manual' }));+ expect(within(dialog).getByRole('button', { name: 'bots.channels.add.feishu.stepsLabel' })).toBeTruthy();+ fireEvent.click(existing);+ expect(within(dialog).queryByLabelText('bots.channels.add.feishu.appSecretLabel')).toBeNull();+ fireEvent.click(within(dialog).getByRole('button', { name: 'bots.channels.add.confirm' }));+ await waitFor(() => expect(api.adopt).toHaveBeenCalledWith({ botId: 'bot-1', channel: 'feishu' }));+ expect(api.add).not.toHaveBeenCalled();+ });+it('tells the user when the same bot is already connected on this computer', async () => {const api = installApi({ connections: [] });api.add.mockRejectedValueOnce(@@ -611,6 +671,10 @@ describe('BotChannelsPage for a teammate on another computer', () => {expect(within(dialog).queryByLabelText('bots.channels.add.telegram.tokenLabel')).toBeNull();expect(within(dialog).getByText(/bots\.remoteSettings\.finishOnHost:.*Studio/)).toBeTruthy();expect((within(dialog).getByRole('button', { name: 'bots.channels.add.confirm' }) as HTMLButtonElement).disabled).toBe(true);+ fireEvent.click(within(dialog).getByRole('radio', { name: 'bots.channels.platform.feishu' }));+ expect(within(dialog).queryByLabelText('bots.channels.add.feishu.appIdLabel')).toBeNull();+ expect(within(dialog).queryByRole('button', { name: 'bots.channels.add.feishu.stepsLabel' })).toBeNull();+ expect((within(dialog).getByRole('button', { name: 'bots.channels.add.confirm' }) as HTMLButtonElement).disabled).toBe(true);expect(api.add).not.toHaveBeenCalled();});diff --git a/apps/desktop/src/renderer/i18n/locales/en/common.json b/apps/desktop/src/renderer/i18n/locales/en/common.jsonindex 93bea5f2b9..cccd896ea4 100644--- a/apps/desktop/src/renderer/i18n/locales/en/common.json+++ b/apps/desktop/src/renderer/i18n/locales/en/common.json@@ -10610,7 +10610,16 @@"appIdLabel": "App ID","appIdPlaceholder": "cli_xxxxxxxxxxxxxxxx","appSecretLabel": "App Secret",- "appSecretPlaceholder": "Paste the app secret"+ "appSecretPlaceholder": "Paste the app secret",+ "description": "Once connected, you can message {{name}} in {{service}}.",+ "createPrompt": "Need a {{service}} bot?",+ "createLink": "Create one on {{service}} Open Platform",+ "credentialsHint": "After creating the app, copy its App ID and App Secret from Credentials & Basic Info and enter them here.",+ "stepsLabel": "View setup steps",+ "stepCreate": "Create a custom app on the Open Platform and add the bot capability.",+ "stepCredentials": "Open Credentials & Basic Info in your app and copy the App ID and App Secret.",+ "stepConnect": "Enter the credentials below and click “Connect {{service}}”.",+ "confirm": "Connect {{service}}"},"wecom": {"botIdLabel": "Bot ID",diff --git a/apps/desktop/src/renderer/i18n/locales/ja/common.json b/apps/desktop/src/renderer/i18n/locales/ja/common.jsonindex d15ccb19c4..4989489086 100644--- a/apps/desktop/src/renderer/i18n/locales/ja/common.json+++ b/apps/desktop/src/renderer/i18n/locales/ja/common.json@@ -10575,7 +10575,16 @@"appIdLabel": "App ID","appIdPlaceholder": "cli_xxxxxxxxxxxxxxxx","appSecretLabel": "App Secret",- "appSecretPlaceholder": "App Secret を貼り付け"+ "appSecretPlaceholder": "App Secret を貼り付け",+ "description": "接続すると、{{service}} で {{name}} にメッセージを送れます。",+ "createPrompt": "{{service}} ボットをお持ちでない場合",+ "createLink": "{{service}} オープンプラットフォームで作成",+ "credentialsHint": "作成後、アプリの「認証情報と基本情報」から App ID と App Secret をコピーし、ここに入力してください。",+ "stepsLabel": "設定手順を見る",+ "stepCreate": "オープンプラットフォームでカスタムアプリを作成し、ボット機能を追加します。",+ "stepCredentials": "アプリの「認証情報と基本情報」を開き、App ID と App Secret をコピーします。",+ "stepConnect": "下の欄に認証情報を入力し、「{{service}} に接続」をクリックします。",+ "confirm": "{{service}} に接続"},"wecom": {"botIdLabel": "Bot ID",diff --git a/apps/desktop/src/renderer/i18n/locales/ko/common.json b/apps/desktop/src/renderer/i18n/locales/ko/common.jsonindex e13b140301..6801288464 100644--- a/apps/desktop/src/renderer/i18n/locales/ko/common.json+++ b/apps/desktop/src/renderer/i18n/locales/ko/common.json@@ -10575,7 +10575,16 @@"appIdLabel": "App ID","appIdPlaceholder": "cli_xxxxxxxxxxxxxxxx","appSecretLabel": "App Secret",- "appSecretPlaceholder": "App Secret 붙여넣기"+ "appSecretPlaceholder": "App Secret 붙여넣기",+ "description": "연결하면 {{service}}에서 {{name}}에게 메시지를 보낼 수 있습니다.",+ "createPrompt": "{{service}} 봇이 없으신가요?",+ "createLink": "{{service}} 오픈 플랫폼에서 만들기",+ "credentialsHint": "앱을 만든 후 “자격 증명 및 기본 정보”에서 App ID와 App Secret을 복사해 여기에 입력하세요.",+ "stepsLabel": "설정 단계 보기",+ "stepCreate": "오픈 플랫폼에서 사용자 지정 앱을 만들고 봇 기능을 추가하세요.",+ "stepCredentials": "앱의 “자격 증명 및 기본 정보”를 열어 App ID와 App Secret을 복사하세요.",+ "stepConnect": "아래에 자격 증명을 입력하고 “{{service}} 연결”을 클릭하세요.",+ "confirm": "{{service}} 연결"},"wecom": {"botIdLabel": "Bot ID",diff --git a/apps/desktop/src/renderer/i18n/locales/zh-CN/common.json b/apps/desktop/src/renderer/i18n/locales/zh-CN/common.jsonindex eafbd97666..8d18812c7d 100644--- a/apps/desktop/src/renderer/i18n/locales/zh-CN/common.json+++ b/apps/desktop/src/renderer/i18n/locales/zh-CN/common.json@@ -10575,7 +10575,16 @@"appIdLabel": "App ID","appIdPlaceholder": "cli_xxxxxxxxxxxxxxxx","appSecretLabel": "App Secret",- "appSecretPlaceholder": "粘贴 App Secret"+ "appSecretPlaceholder": "粘贴 App Secret",+ "description": "连接后,可以在{{service}}中给 {{name}} 发消息。",+ "createPrompt": "还没有{{service}}机器人?",+ "createLink": "前往{{service}}开放平台创建",+ "credentialsHint": "创建后,从「凭证与基础信息」复制 App ID 和 App Secret,回到这里填写。",+ "stepsLabel": "查看配置步骤",+ "stepCreate": "在开放平台创建企业自建应用,并添加机器人能力。",+ "stepCredentials": "打开应用的「凭证与基础信息」,复制 App ID 和 App Secret。",+ "stepConnect": "将凭证填入下方,点击「连接{{service}}」。",+ "confirm": "连接{{service}}"},"wecom": {"botIdLabel": "Bot ID",diff --git a/apps/desktop/src/renderer/i18n/locales/zh-TW/common.json b/apps/desktop/src/renderer/i18n/locales/zh-TW/common.jsonindex abbe1bf914..c0eedc37b0 100644--- a/apps/desktop/src/renderer/i18n/locales/zh-TW/common.json+++ b/apps/desktop/src/renderer/i18n/locales/zh-TW/common.json@@ -10575,7 +10575,16 @@"appIdLabel": "App ID","appIdPlaceholder": "cli_xxxxxxxxxxxxxxxx","appSecretLabel": "App Secret",- "appSecretPlaceholder": "貼上 App Secret"+ "appSecretPlaceholder": "貼上 App Secret",+ "description": "連線後,可以在{{service}}中給 {{name}} 傳訊息。",+ "createPrompt": "還沒有{{service}}機器人?",+ "createLink": "前往{{service}}開放平台建立",+ "credentialsHint": "建立後,從「憑證與基礎資訊」複製 App ID 和 App Secret,回到這裡填寫。",+ "stepsLabel": "查看設定步驟",+ "stepCreate": "在開放平台建立企業自建應用程式,並新增機器人功能。",+ "stepCredentials": "開啟應用程式的「憑證與基礎資訊」,複製 App ID 和 App Secret。",+ "stepConnect": "將憑證填入下方,點擊「連線{{service}}」。",+ "confirm": "連線{{service}}"},"wecom": {"botIdLabel": "Bot ID",