Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
feat(shared-task): include joining guidance in invitation messages
DavidShen48dbf2a30d1f
diff --git a/apps/desktop/src/renderer/features/cc-agent/sidebar/SessionTaskMenu.tsx b/apps/desktop/src/renderer/features/cc-agent/sidebar/SessionTaskMenu.tsxindex e5aa0c3858..32ffe49eb2 100644--- a/apps/desktop/src/renderer/features/cc-agent/sidebar/SessionTaskMenu.tsx+++ b/apps/desktop/src/renderer/features/cc-agent/sidebar/SessionTaskMenu.tsx@@ -162,10 +162,12 @@ function ActiveSessionTaskMenu({SHARED_TASK_HOST_CHANNEL,[command],)- : window.electronAPI.sharedTask.host(command))) as { invitation: string };+ : window.electronAPI.sharedTask.host(command))) as { invitation: string; invitationLink?: string };if (!current()) return;try {- await navigator.clipboard.writeText(result.invitation);+ await navigator.clipboard.writeText(result.invitationLink+ ? t('sharedTask.invitationMessage', { title: hosted.title || session.title, link: result.invitationLink })+ : result.invitation);} catch {if (current()) toast.error(t('sharedTask.invitationCopyFailed'));return;diff --git a/apps/desktop/src/renderer/features/cc-agent/sidebar/__tests__/SessionTaskMenu.test.tsx b/apps/desktop/src/renderer/features/cc-agent/sidebar/__tests__/SessionTaskMenu.test.tsxindex e66293804e..62c4df1e6a 100644--- a/apps/desktop/src/renderer/features/cc-agent/sidebar/__tests__/SessionTaskMenu.test.tsx+++ b/apps/desktop/src/renderer/features/cc-agent/sidebar/__tests__/SessionTaskMenu.test.tsx@@ -22,7 +22,7 @@ const state = vi.hoisted(() => ({writeClipboard: vi.fn(),}));vi.mock('react-i18next', () => ({- useTranslation: () => ({ t: (key: string) => key.startsWith('taskMigration.') ? key : key.split('.').at(-1) }),+ useTranslation: () => ({ t: (key: string, values?: { title: string; link: string }) => key === 'sharedTask.invitationMessage' ? `Join ${values?.title}\n${values?.link}\nOpen Cindy on mobile.` : key.startsWith('taskMigration.') ? key : key.split('.').at(-1) }),}));vi.mock('@/features/device-link/remoteProjectsStore', () => ({remoteProjectsStore: { removeDevice: state.removeDevice, getDeviceName: () => undefined },@@ -321,6 +321,15 @@ it('does not copy a late invitation after the account changes', async () => {await act(async () => finish({ invitation: 'old-account-invitation' }));expect(state.writeClipboard).not.toHaveBeenCalled();});+it('copies the public link and joining instructions from the quick sharing submenu', async () => {+ const invitationLink = 'https://relay.example.test/shared-task/join#' + 'A'.repeat(43);+ state.host.mockImplementation(async command => command.action === 'invite'+ ? { invitation: 'A'.repeat(43), invitationLink }+ : { available: true, detail: { sharedTaskId: 'share', status: 'active', title: 'Shared task' } });+ render(<Harness />); openMenu(); await openSharingSubmenu();+ fireEvent.click(screen.getByRole('menuitem', { name: 'invite' }));+ await waitFor(() => expect(state.writeClipboard).toHaveBeenCalledWith(`Join Shared task\n${invitationLink}\nOpen Cindy on mobile.`));+});it('reports clipboard failure separately and allows retrying', async () => {state.host.mockImplementation(async command => command.action === 'invite'diff --git a/apps/desktop/src/renderer/features/device-link/SharedTaskDialog.tsx b/apps/desktop/src/renderer/features/device-link/SharedTaskDialog.tsxindex cffa271b7c..def1a90110 100644--- a/apps/desktop/src/renderer/features/device-link/SharedTaskDialog.tsx+++ b/apps/desktop/src/renderer/features/device-link/SharedTaskDialog.tsx@@ -294,7 +294,10 @@ export function SharedTaskDialog({ open, onOpenChange, session, returnFocus, iniif (!detail || !target) return;const result = await host(target, { action: 'invite', sharedTaskId: detail.sharedTaskId }) as { invitation: string; invitationLink?: string };if (!current()) return;- try { await navigator.clipboard.writeText(result.invitationLink ?? result.invitation); }+ const content = result.invitationLink+ ? t('sharedTask.invitationMessage', { title: detail.title || target.title, link: result.invitationLink })+ : result.invitation;+ try { await navigator.clipboard.writeText(content); }catch { if (current()) toast.error(t('sharedTask.invitationCopyFailed')); return; }if (current()) toast.success(t('sharedTask.invitationCopied'));});diff --git a/apps/desktop/src/renderer/features/device-link/__tests__/SharedTaskButton.test.tsx b/apps/desktop/src/renderer/features/device-link/__tests__/SharedTaskButton.test.tsxindex 511df821c3..fb17ab8652 100644--- a/apps/desktop/src/renderer/features/device-link/__tests__/SharedTaskButton.test.tsx+++ b/apps/desktop/src/renderer/features/device-link/__tests__/SharedTaskButton.test.tsx@@ -3,14 +3,14 @@ import { useRef, useState } from 'react';import { MemoryRouter } from 'react-router-dom';import { act, cleanup, fireEvent, render, screen, waitFor } from '@testing-library/react';import { afterEach, beforeEach, expect, it, vi } from 'vitest';-import { sharedTaskHostPeer, SHARED_TASK_HOST_CHANNEL, type SharedTaskDetail } from '@cindy/device-link';+import { parseSharedTaskInvitation, sharedTaskHostPeer, SHARED_TASK_HOST_CHANNEL, type SharedTaskDetail } from '@cindy/device-link';import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger } from '@/components/ui/dropdown-menu';import { SharedTaskButton } from '../SharedTaskButton';import { setDataOwnerGeneration } from '@/contexts/dataOwnerGeneration';import type { Session } from '@/lib/ccAgent.types';import { toast } from '@/lib/toast';const state = vi.hoisted(() => ({ invoke: vi.fn(), openLink: vi.fn(), host: vi.fn(), account: vi.fn(), closeLink: vi.fn(), removeDevice: vi.fn(), resetFence: vi.fn() }));-vi.mock('react-i18next', () => ({ useTranslation: () => ({ t: (key: string) => key }) }));+vi.mock('react-i18next', () => ({ useTranslation: () => ({ t: (key: string, values?: { title: string; link: string }) => key === 'sharedTask.invitationMessage' ? `Join “${values?.title}”\n${values?.link}\nOpen the link, or copy it and open Cindy on mobile.` : key }) }));vi.mock('@/contexts/AuthContext', () => ({ useAuth: () => ({ dataOwnerId: 'owner', isAuthenticated: true }) }));vi.mock('@/lib/toast', () => ({ toast: { error: vi.fn(), success: vi.fn() } }));vi.mock('@/lib/remoteDataOwnerPushFence', () => ({ resetRemoteDataOwnerPushFence: state.resetFence, bindSharedTaskPushOwner: vi.fn() }));@@ -80,7 +80,11 @@ it('distinguishes a clipboard failure from a request failure and allows retry',await openWindow(); click('invite'); await waitFor(() => expect(toast.error).toHaveBeenCalledWith('sharedTask.invitationCopyFailed'));expect(toast.success).not.toHaveBeenCalled(); copy.mockResolvedValue(undefined); click('invite');await waitFor(() => expect(toast.success).toHaveBeenCalledWith('sharedTask.invitationCopied'));- expect(copy).toHaveBeenLastCalledWith(invitationLink);+ const content = copy.mock.lastCall![0] as string;+ expect(content).toContain('Task A');+ expect(content).toContain(invitationLink);+ expect(content).toContain('copy it and open Cindy on mobile');+ expect(parseSharedTaskInvitation(content, 'https://relay.example.test')).toEqual({ ok: true, invitation: 'A'.repeat(43) });});it('does not copy when generating an invitation fails', async () => {const copy = vi.fn(); Object.defineProperty(navigator, 'clipboard', { configurable: true, value: { writeText: copy } });diff --git a/apps/desktop/src/renderer/i18n/locales/en/common.json b/apps/desktop/src/renderer/i18n/locales/en/common.jsonindex 5fed3d268e..f7362c1917 100644--- a/apps/desktop/src/renderer/i18n/locales/en/common.json+++ b/apps/desktop/src/renderer/i18n/locales/en/common.json@@ -116,14 +116,15 @@"open": "Start Sharing","host": "Host","remove": "Remove Guest",- "invite": "Copy Invitation Link",- "invitationCopied": "Invitation link copied",+ "invite": "Copy invitation",+ "invitationCopied": "Invitation copied. Paste it into a message to your teammate.","tabOwned": "Shared by Me","startIntro": "Invite a partner to read everything in this task and work with the same Agent.","runsOnThisDevice": "Runs on this device","inviteNotice": "Anyone holding the invitation link can join after signing in, with the same Agent access as the host.","offlineAutoClose": "Sharing ends automatically if the host computer stays offline.",- "inviteBoxHint": "Teammates enter the code to join the shared task",+ "inviteBoxHint": "Send the link to your teammate to join. On mobile, they can also copy the link and open Cindy.",+ "invitationMessage": "You’re invited to join “{{title}}”\n{{link}}\nOpen the link to join. On mobile, you can also copy the link, open Cindy, and confirm to join.","membersWithLimit": "Members · {{count}} (up to 2 guests)","me": "Me","thisDevice": "This device",diff --git a/apps/desktop/src/renderer/i18n/locales/ja/common.json b/apps/desktop/src/renderer/i18n/locales/ja/common.jsonindex bd5f85870e..eabb879f35 100644--- a/apps/desktop/src/renderer/i18n/locales/ja/common.json+++ b/apps/desktop/src/renderer/i18n/locales/ja/common.json@@ -116,14 +116,15 @@"open": "共有を開始","host": "ホスト","remove": "ゲストを削除",- "invite": "招待リンクをコピー",- "invitationCopied": "招待リンクをコピーしました",+ "invite": "招待をコピー",+ "invitationCopied": "招待をコピーしました。メッセージに貼り付けて送信してください。","tabOwned": "自分が共有中","startIntro": "パートナーを招待して、このセッションのすべての内容を共有し、同じ Agent で協力できます。","runsOnThisDevice": "このパソコンで実行中","inviteNotice": "招待リンクを持つユーザーはログイン後に参加でき、所有者と同じ Agent 権限を持ちます。","offlineAutoClose": "ホストのパソコンがオフラインのままだと、共有は自動的に終了します。",- "inviteBoxHint": "仲間は招待リンクを入力して共有セッションに参加できます",+ "inviteBoxHint": "リンクを送ると、相手はクリックして参加できます。モバイルではリンクをコピーして Cindy を開くこともできます。",+ "invitationMessage": "「{{title}}」への招待です\n{{link}}\nリンクを開いて参加してください。モバイルではリンクをコピーして Cindy を開き、参加を確認することもできます。","membersWithLimit": "メンバー · {{count}} 人(ゲストは最大 2 人)","me": "自分","thisDevice": "このパソコン",diff --git a/apps/desktop/src/renderer/i18n/locales/ko/common.json b/apps/desktop/src/renderer/i18n/locales/ko/common.jsonindex abb5da6e5e..b5a04cbfb5 100644--- a/apps/desktop/src/renderer/i18n/locales/ko/common.json+++ b/apps/desktop/src/renderer/i18n/locales/ko/common.json@@ -116,14 +116,15 @@"open": "공유 시작","host": "호스트","remove": "게스트 내보내기",- "invite": "초대 링크 복사",- "invitationCopied": "초대 링크를 복사했습니다",+ "invite": "초대 복사",+ "invitationCopied": "초대를 복사했습니다. 메시지에 붙여넣어 동료에게 보내세요.","tabOwned": "내가 공유한 항목","startIntro": "파트너를 초대해 이 세션의 모든 내용을 함께 보고, 같은 Agent로 협업하세요.","runsOnThisDevice": "이 PC에서 실행 중","inviteNotice": "초대 링크를 가진 사용자는 로그인 후 참여할 수 있으며, 호스트와 동일한 Agent 권한을 갖습니다.","offlineAutoClose": "호스트 컴퓨터가 계속 오프라인 상태이면 공유가 자동으로 종료됩니다.",- "inviteBoxHint": "동료가 초대 링크를 입력하면 공유 세션에 참여할 수 있습니다",+ "inviteBoxHint": "동료에게 링크를 보내면 클릭하여 참여할 수 있습니다. 모바일에서는 링크를 복사한 뒤 Cindy를 열어도 됩니다.",+ "invitationMessage": "“{{title}}”에 초대합니다\n{{link}}\n링크를 열어 참여하세요. 모바일에서는 링크를 복사한 뒤 Cindy를 열고 참여를 확인할 수도 있습니다.","membersWithLimit": "멤버 · {{count}}명 (최대 게스트 2명)","me": "나","thisDevice": "이 PC",diff --git a/apps/desktop/src/renderer/i18n/locales/zh-CN/common.json b/apps/desktop/src/renderer/i18n/locales/zh-CN/common.jsonindex fbff84f21a..771c5e0630 100644--- a/apps/desktop/src/renderer/i18n/locales/zh-CN/common.json+++ b/apps/desktop/src/renderer/i18n/locales/zh-CN/common.json@@ -116,14 +116,15 @@"open": "开启共享","host": "房主","remove": "移除访客",- "invite": "复制邀请链接",- "invitationCopied": "邀请链接已复制",+ "invite": "复制邀请",+ "invitationCopied": "邀请已复制,粘贴发送给伙伴即可。","tabOwned": "我发起的","startIntro": "邀请伙伴查看这个任务的全部内容,一起与同一个 Agent 协作。","runsOnThisDevice": "运行在这台电脑","inviteNotice": "持有邀请链接的用户登录后即可加入,拥有与房主相同的 Agent 使用权限。","offlineAutoClose": "房主电脑持续离线后,共享会自动结束。",- "inviteBoxHint": "伙伴打开链接后,即可加入共享任务",+ "inviteBoxHint": "将链接发送给伙伴,对方点击即可加入。手机端也可复制链接后打开 Cindy。",+ "invitationMessage": "邀请你加入「{{title}}」\n{{link}}\n点击链接加入;手机端也可复制链接后打开 Cindy,确认加入。","membersWithLimit": "成员 · {{count}} 人(最多 2 位访客)","me": "我","thisDevice": "这台电脑",diff --git a/apps/desktop/src/renderer/i18n/locales/zh-TW/common.json b/apps/desktop/src/renderer/i18n/locales/zh-TW/common.jsonindex 02eba20aff..222d17fb26 100644--- a/apps/desktop/src/renderer/i18n/locales/zh-TW/common.json+++ b/apps/desktop/src/renderer/i18n/locales/zh-TW/common.json@@ -116,14 +116,15 @@"open": "開啟共享","host": "主持人","remove": "移除訪客",- "invite": "複製邀請連結",- "invitationCopied": "邀請連結已複製",+ "invite": "複製邀請",+ "invitationCopied": "已複製邀請,貼上並傳送給夥伴即可。","tabOwned": "我發起的","startIntro": "邀請夥伴查看這個任務的全部內容,一起與同一個 Agent 協作。","runsOnThisDevice": "執行在這台電腦","inviteNotice": "持有邀請連結的使用者登入後即可加入,擁有與房主相同的 Agent 使用權限。","offlineAutoClose": "房主電腦持續離線後,共享會自動結束。",- "inviteBoxHint": "夥伴開啟連結後,即可加入共享任務",+ "inviteBoxHint": "將連結傳送給夥伴,對方點擊即可加入。手機端也可複製連結後開啟 Cindy。",+ "invitationMessage": "邀請你加入「{{title}}」\n{{link}}\n點擊連結加入;手機端也可複製連結後開啟 Cindy,確認加入。","membersWithLimit": "成員 · {{count}} 人(最多 2 位訪客)","me": "我","thisDevice": "這台電腦",diff --git a/apps/mobile/app/shared-session.tsx b/apps/mobile/app/shared-session.tsxindex fe7d953e86..98b6146ac0 100644--- a/apps/mobile/app/shared-session.tsx+++ b/apps/mobile/app/shared-session.tsx@@ -381,7 +381,8 @@ export default function SharedSessionScreen() {const result = await host({ action: 'invite', sharedTaskId: detail.sharedTaskId }) as { invitation: string };if (!current()) return;const invitationApp = APP_SCHEME === 'cindycn' ? 'cindycn' : APP_SCHEME === 'cindydev' ? 'cindydev' : 'cindy';- try { await writeClipboardText(buildSharedTaskInvitationLink(result.invitation, DEVICE_LINK_API_BASE_URL, invitationApp)); if (current()) setNotice(t('sharedTask.invitationCopied')); }+ const invitationLink = buildSharedTaskInvitationLink(result.invitation, DEVICE_LINK_API_BASE_URL, invitationApp);+ try { await writeClipboardText(t('sharedTask.invitationMessage', { title, link: invitationLink })); if (current()) setNotice(t('sharedTask.invitationCopied')); }catch { if (current()) setNotice(t('sharedTask.invitationCopyFailed')); }}, false) }} /></View>diff --git a/apps/mobile/src/__tests__/sharedTaskFlow.test.tsx b/apps/mobile/src/__tests__/sharedTaskFlow.test.tsxindex 1e7c764913..19bd5fa1a2 100644--- a/apps/mobile/src/__tests__/sharedTaskFlow.test.tsx+++ b/apps/mobile/src/__tests__/sharedTaskFlow.test.tsx@@ -2,7 +2,8 @@import { act, createElement, type ReactNode } from 'react';import { createRoot, type Root } from 'react-dom/client';import { afterEach, beforeEach, expect, it, vi } from 'vitest';-import { sharedTaskHostPeer } from '@cindy/device-link';+import { parseSharedTaskInvitation, sharedTaskHostPeer } from '@cindy/device-link';+import { writeClipboardText } from '@/session/messageActions';import { setMobileAuthOwner } from '@/auth/authOwnerGeneration';import { ApiError } from '@/api/client';import { Platform } from 'react-native';@@ -16,7 +17,7 @@ const h = vi.hoisted(() => ({link: { sharedTaskAvailable: true, invoke: vi.fn(), openLink: vi.fn(), closeLink: vi.fn(), readDeviceList: vi.fn() },api: { list: vi.fn(), get: vi.fn(), join: vi.fn(), leave: vi.fn(), close: vi.fn() },store: { getSessions: () => [], removeDevice: vi.fn(), setDeviceSessions: vi.fn(), upsertDeviceSession: vi.fn() },- t: (key: string, options?: { title?: string }) => options?.title ? key + ':' + options.title : key,+ t: (key: string, options?: { title?: string; link?: string }) => key === 'sharedTask.invitationMessage' ? `Join “${options?.title}”\n${options?.link}\nOpen the link, or copy it and open Cindy on mobile.` : options?.title ? key + ':' + options.title : key,}));vi.mock('react-i18next', () => ({ useTranslation: () => ({ t: h.t }) }));vi.mock('@/config/env', () => ({ DEVICE_LINK_API_BASE_URL: 'https://relay.example.test', APP_SCHEME: 'cindy' }));@@ -94,6 +95,16 @@ beforeEach(() => {afterEach(async () => { await act(async () => root.unmount()); clearSharedTaskInvitationIntent(); vi.useRealTimers(); });const invitationLink = 'https://relay.example.test/shared-task/join#' + 'A'.repeat(43);const invitationIntent = 'cindy://shared-session?invitation=' + 'A'.repeat(43) + '&server=https%3A%2F%2Frelay.example.test';+it('copies a shareable invitation message with a link accepted by automatic and manual admission', async () => {+ h.params = { sessionId: 'task', deviceId: 'desktop' };+ h.link.invoke.mockImplementation(async (_device, _channel, [command]) => command.action === 'invite' ? { invitation: 'A'.repeat(43) } : { available: true, detail });+ await render(); await click('sharedTask.invite');+ const content = vi.mocked(writeClipboardText).mock.lastCall![0];+ expect(content).toContain('Design review');+ expect(content).toContain(invitationLink);+ expect(content).toContain('copy it and open Cindy on mobile');+ expect(parseSharedTaskInvitation(content, 'https://relay.example.test')).toEqual({ ok: true, invitation: 'A'.repeat(43) });+});it('uses an automatically detected clipboard invitation without a paste or nickname control', async () => {receiveSharedTaskInvitationIntent(invitationIntent, 'clipboard');h.link.invoke.mockResolvedValue({ id: 'task' });diff --git a/apps/mobile/src/i18n/locales/en/sharedTask.json b/apps/mobile/src/i18n/locales/en/sharedTask.jsonindex 103c72dc8f..9d75023da0 100644--- a/apps/mobile/src/i18n/locales/en/sharedTask.json+++ b/apps/mobile/src/i18n/locales/en/sharedTask.json@@ -27,9 +27,9 @@"host": "Host","remove": "Remove Guest","leave": "Leave Shared Task",- "invite": "Copy Invitation Link",+ "invite": "Copy invitation","close": "Stop Sharing",- "invitationCopied": "Invitation link copied",+ "invitationCopied": "Invitation copied. Paste it into a message to your teammate.","invitationCopyFailed": "Could not copy the invitation link. Try again.","accessEndedBody": "You can no longer access this shared task. To join again, ask the host for a new invitation.","joinIntro": "Join the host’s shared task using your account name.",@@ -59,7 +59,8 @@"runsOnThisDevice": "Runs on this device","inviteNotice": "Anyone holding the invitation can join after signing in, with the same Agent access as the host.","offlineAutoClose": "Sharing closes automatically when the host goes offline.",- "inviteBoxHint": "Full history and messaging after joining",+ "inviteBoxHint": "Send the link to your teammate to join. On mobile, they can also copy the link and open Cindy.",+ "invitationMessage": "You’re invited to join “{{title}}”\n{{link}}\nOpen the link to join. On mobile, you can also copy the link, open Cindy, and confirm to join.","membersWithLimit": "Members · {{count}} (up to 2 guests)","me": "Me","thisDevice": "This device",diff --git a/apps/mobile/src/i18n/locales/ja/sharedTask.json b/apps/mobile/src/i18n/locales/ja/sharedTask.jsonindex 683823ab22..21b3644145 100644--- a/apps/mobile/src/i18n/locales/ja/sharedTask.json+++ b/apps/mobile/src/i18n/locales/ja/sharedTask.json@@ -27,9 +27,9 @@"host": "ホスト","remove": "ゲストを削除","leave": "共有セッションから退出",- "invite": "招待リンクをコピー",+ "invite": "招待をコピー","close": "共有を停止",- "invitationCopied": "招待リンクをコピーしました",+ "invitationCopied": "招待をコピーしました。メッセージに貼り付けて送信してください。","invitationCopyFailed": "招待リンクをコピーできませんでした。もう一度お試しください。","accessEndedBody": "この共有タスクにはアクセスできなくなりました。再参加するには、ホストに新しい招待を依頼してください。","joinIntro": "アカウント名でホストの共有タスクに参加します。",@@ -59,7 +59,8 @@"runsOnThisDevice": "このパソコンで実行中","inviteNotice": "招待を持つユーザーはログイン後に参加でき、所有者と同じ Agent 権限を持ちます。","offlineAutoClose": "ホストがオフラインになると、共有は自動的に終了します。",- "inviteBoxHint": "参加後はすべての履歴の閲覧とメッセージ送信が可能",+ "inviteBoxHint": "リンクを送ると、相手はクリックして参加できます。モバイルではリンクをコピーして Cindy を開くこともできます。",+ "invitationMessage": "「{{title}}」への招待です\n{{link}}\nリンクを開いて参加してください。モバイルではリンクをコピーして Cindy を開き、参加を確認することもできます。","membersWithLimit": "メンバー · {{count}} 人(ゲストは最大 2 人)","me": "自分","thisDevice": "このパソコン",diff --git a/apps/mobile/src/i18n/locales/ko/sharedTask.json b/apps/mobile/src/i18n/locales/ko/sharedTask.jsonindex cb147ff6e6..4018310246 100644--- a/apps/mobile/src/i18n/locales/ko/sharedTask.json+++ b/apps/mobile/src/i18n/locales/ko/sharedTask.json@@ -27,9 +27,9 @@"host": "호스트","remove": "게스트 내보내기","leave": "공유 세션 나가기",- "invite": "초대 링크 복사",+ "invite": "초대 복사","close": "공유 중지",- "invitationCopied": "초대 링크를 복사했습니다",+ "invitationCopied": "초대를 복사했습니다. 메시지에 붙여넣어 동료에게 보내세요.","invitationCopyFailed": "초대 링크를 복사하지 못했습니다. 다시 시도하세요.","accessEndedBody": "이 공유 작업에 더 이상 접근할 수 없습니다. 다시 참여하려면 호스트에게 새 초대를 요청하세요.","joinIntro": "계정 이름으로 호스트의 공유 작업에 참여합니다.",@@ -59,7 +59,8 @@"runsOnThisDevice": "이 PC에서 실행 중","inviteNotice": "초대를 가진 사용자는 로그인 후 참여할 수 있으며, 호스트와 동일한 Agent 권한을 갖습니다.","offlineAutoClose": "호스트가 오프라인이 되면 공유는 자동으로 종료됩니다.",- "inviteBoxHint": "참여 후 전체 기록 조회와 메시지 전송 가능",+ "inviteBoxHint": "동료에게 링크를 보내면 클릭하여 참여할 수 있습니다. 모바일에서는 링크를 복사한 뒤 Cindy를 열어도 됩니다.",+ "invitationMessage": "“{{title}}”에 초대합니다\n{{link}}\n링크를 열어 참여하세요. 모바일에서는 링크를 복사한 뒤 Cindy를 열고 참여를 확인할 수도 있습니다.","membersWithLimit": "멤버 · {{count}}명 (최대 게스트 2명)","me": "나","thisDevice": "이 PC",diff --git a/apps/mobile/src/i18n/locales/zh-CN/sharedTask.json b/apps/mobile/src/i18n/locales/zh-CN/sharedTask.jsonindex 889379a080..af1c9dce09 100644--- a/apps/mobile/src/i18n/locales/zh-CN/sharedTask.json+++ b/apps/mobile/src/i18n/locales/zh-CN/sharedTask.json@@ -27,9 +27,9 @@"host": "房主","remove": "移除访客","leave": "退出共享任务",- "invite": "复制邀请链接",+ "invite": "复制邀请","close": "关闭共享",- "invitationCopied": "邀请链接已复制",+ "invitationCopied": "邀请已复制,粘贴发送给伙伴即可。","invitationCopyFailed": "未能复制邀请链接,请重试","accessEndedBody": "当前已无法访问这个共享任务。如需再次加入,请联系房主发送新邀请。","joinIntro": "使用你的账号昵称加入房主邀请的任务。",@@ -59,7 +59,8 @@"runsOnThisDevice": "运行在这台电脑","inviteNotice": "持有邀请的用户登录后即可加入,拥有与房主相同的 Agent 使用权限。","offlineAutoClose": "房主离线时,共享会自动关闭。",- "inviteBoxHint": "加入后可查看完整历史并发消息",+ "inviteBoxHint": "将链接发送给伙伴,对方点击即可加入。手机端也可复制链接后打开 Cindy。",+ "invitationMessage": "邀请你加入「{{title}}」\n{{link}}\n点击链接加入;手机端也可复制链接后打开 Cindy,确认加入。","membersWithLimit": "成员 · {{count}} 人(最多 2 位访客)","me": "我","thisDevice": "这台电脑",diff --git a/apps/mobile/src/i18n/locales/zh-TW/sharedTask.json b/apps/mobile/src/i18n/locales/zh-TW/sharedTask.jsonindex 29f50014b3..57ae607e49 100644--- a/apps/mobile/src/i18n/locales/zh-TW/sharedTask.json+++ b/apps/mobile/src/i18n/locales/zh-TW/sharedTask.json@@ -27,9 +27,9 @@"host": "主持人","remove": "移除訪客","leave": "離開共享任務",- "invite": "複製邀請連結",+ "invite": "複製邀請","close": "停止共享",- "invitationCopied": "邀請連結已複製",+ "invitationCopied": "已複製邀請,貼上並傳送給夥伴即可。","invitationCopyFailed": "無法複製邀請連結,請重試","accessEndedBody": "目前已無法存取此共享任務。如需再次加入,請聯絡房主傳送新邀請。","joinIntro": "使用你的帳號暱稱加入房主邀請的任務。",@@ -59,7 +59,8 @@"runsOnThisDevice": "執行在這台電腦","inviteNotice": "持有邀請的使用者登入後即可加入,擁有與房主相同的 Agent 使用權限。","offlineAutoClose": "房主離線時,共享會自動關閉。",- "inviteBoxHint": "加入後可查看完整歷史並傳送訊息",+ "inviteBoxHint": "將連結傳送給夥伴,對方點擊即可加入。手機端也可複製連結後開啟 Cindy。",+ "invitationMessage": "邀請你加入「{{title}}」\n{{link}}\n點擊連結加入;手機端也可複製連結後開啟 Cindy,確認加入。","membersWithLimit": "成員 · {{count}} 人(最多 2 位訪客)","me": "我","thisDevice": "這台電腦",