Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
A team bot's shared chat says who can really read it
milind-sonife2b16602d2a
diff --git a/docs/team-cloud.md b/docs/team-cloud.mdindex 368ac5748a..9a360c04f8 100644--- a/docs/team-cloud.md+++ b/docs/team-cloud.md@@ -16,7 +16,7 @@ keeps people apart on it. The bot box ([bot-box.md](bot-box.md)) is what makes tis yours alone: no other Member and no Admin, the Super admin included, sees it, writes in it or learns of it, inlists, counts, unread marks, searches, files, notifications, streams, a bot's tools or another bot. A group chat isseen by whoever sees it, and its unread mark is each person's own: a bot's reply there is unread for everyone until- they read it, and one person reading it clears it for nobody else (`room-reads.json`). Every private chat says so in its header, *"Private · only you"*, and the first one on a+ they read it, and one person reading it clears it for nobody else (`room-reads.json`). A bot's shared chats say who can read them, *"Shared · everyone in Acme can see"* or, on a bot set to Only people added (`onlyPeopleAdded` on everyone's copy of it), *"Shared · only people added and admins can see"*. Every private chat says so in its header, *"Private · only you"*, and the first one on adevice also says it as a sentence: *"Your chats in Acme are private. Only you can see them: not other members, notAcme's admins."* The server marks such a conversation `private: true` on the wire (`WireTask.private`). When you leavethe team (or are removed), your private chats and everything only yours there are deleted, never handed to an admindiff --git a/server/bot-visibility.test.ts b/server/bot-visibility.test.tsindex 613ad96a7c..fd0d9a88d0 100644--- a/server/bot-visibility.test.ts+++ b/server/bot-visibility.test.ts@@ -383,6 +383,18 @@ describe("a Team Cloud's audiences", () => {expect(memberBot({ id: "pub", threadId: "t-pub-2" }, admin)).toEqual({ id: "pub", access: { everyone: "chat", people: {} }, yourAccess: "edit" });});+ it("says on everyone's copy when only the people added see a bot, without naming them to anyone who can't edit it", () => {+ const restricted = { id: "pub", threadId: "t-pub", tasks: [{ threadId: "t-pub" }], visibility: { people: ["[email protected]"] } };+ const member = memberBot(restricted, new VisibleSet(open, openGroups, ADA, undefined, { of: audienceOf, person: ADA_KEY })) as Record<string, unknown>;+ expect(member).toMatchObject({ onlyPeopleAdded: true });+ expect(JSON.stringify(member)).not.toContain("[email protected]");+ const admin = new VisibleSet(open, openGroups, BEN_ADMIN, undefined, { of: audienceOf, person: BEN_KEY });+ expect(memberBot(restricted, admin)).toMatchObject({ onlyPeopleAdded: true });+ expect(memberBot({ ...restricted, visibility: "admins" }, admin)).toMatchObject({ onlyPeopleAdded: true });+ expect(memberBot({ ...restricted, visibility: "everyone" }, admin)).not.toHaveProperty("onlyPeopleAdded");+ expect(memberBot({ id: "pub", threadId: "t-pub", tasks: [{ threadId: "t-pub" }] }, admin)).not.toHaveProperty("onlyPeopleAdded");+ });+it("a main chat named as another person's private chat is replaced by a conversation the viewer reads, never sent", () => {const admin = new VisibleSet(open, openGroups, BEN_ADMIN, undefined, { of: audienceOf, person: BEN_KEY });const bot = { id: "pub", threadId: "t-pub-2", mainThreadId: "t-pub-2", tasks: [{ threadId: "t-pub-2" }, { threadId: "t-pub" }] };diff --git a/server/bot-visibility.ts b/server/bot-visibility.tsindex af10a0033e..c3859ae5f4 100644--- a/server/bot-visibility.ts+++ b/server/bot-visibility.ts@@ -399,7 +399,8 @@ function withLevel<T extends object>(bot: T, visible: VisibleSet): T {if (typeof record.id !== "string") return bot;const yourAccess = visible.level(record.id);const { access: _access, ...rest } = record;- return (yourAccess === "edit" ? { ...rest, access: accessOf(record), yourAccess } : { ...rest, yourAccess }) as T;+ const audience = isRestricted(record.visibility) ? { onlyPeopleAdded: true as const } : {};+ return (yourAccess === "edit" ? { ...rest, access: accessOf(record), yourAccess, ...audience } : { ...rest, yourAccess, ...audience }) as T;}/** What only the bot's selected conversation carries, dropped when that conversation is someone else's. */diff --git a/shared/bot-access.ts b/shared/bot-access.tsindex 50e0957739..cb90837ab7 100644--- a/shared/bot-access.ts+++ b/shared/bot-access.ts@@ -20,6 +20,9 @@ export interface BotAccessFields {access?: BotAccess;/** Team Cloud only: what the person this copy was sent to may do with the bot. */yourAccess?: BotAccessLevel;+ /** Team Cloud only, on everyone's copy: only the people added, whoever looks after the bot and the admins see it, so+ * its shared chats reach no further. */+ onlyPeopleAdded?: true;}export const levelRank = (level: BotAccessLevel | undefined): number => BOT_ACCESS_LEVELS.indexOf(level ?? "none");diff --git a/src/components/ChatHeadPill.tsx b/src/components/ChatHeadPill.tsxindex 4ea67bf262..a43e50b32a 100644--- a/src/components/ChatHeadPill.tsx+++ b/src/components/ChatHeadPill.tsx@@ -9,12 +9,13 @@ import { BotAvatar } from "./Avatar";import { ELEVATED_FLOAT, ELEVATED_HOVER } from "./elevated";import { sidebarBotActivityTasks } from "./SidebarBotActivity";import { BOT_PANEL_ID } from "./bot-panel/side-panel";+import { sharedChatAudience } from "./TeamPrivateChatsLine";/** The factory title a new conversation starts with. */const UNTITLED = "New thread";const CHEVRON_MOTION = "duration-[140ms] ease-[cubic-bezier(.22,1,.36,1)]";-export type ChatHeadPrivacy = { kind: "private" } | { kind: "ownHelper" } | { kind: "shared"; team: string } | null;+export type ChatHeadPrivacy = { kind: "private" } | { kind: "ownHelper" } | { kind: "shared"; team: string; onlyPeopleAdded?: boolean } | null;const PRIVACY_ICONS = { private: Lock, ownHelper: UserRound, shared: Users } as const;@@ -22,7 +23,7 @@ function privacyLabelOf(privacy: ChatHeadPrivacy): string | null {switch (privacy?.kind) {case "private": return t("team.privateHeader");case "ownHelper": return t("team.ownHelperHeader");- case "shared": return t("team.sharedHeader", { team: privacy.team });+ case "shared": return sharedChatAudience(privacy.team, privacy.onlyPeopleAdded);default: return null;}}diff --git a/src/components/ChatView.team.test.ts b/src/components/ChatView.team.test.tsindex 7d1a6b3b8c..74e3c17822 100644--- a/src/components/ChatView.team.test.ts+++ b/src/components/ChatView.team.test.ts@@ -18,6 +18,7 @@ const { ChatView } = await import("./ChatView");const { setColorUserBubbles } = await import("@/lib/user-bubble-preference");const { BotEditorStore, initialState } = await import("@/state/store");const { t } = await import("@/lib/i18n");+const { setAdvancedMode } = await import("@/lib/interface-mode");let root: Root;let container: HTMLDivElement;@@ -65,3 +66,13 @@ it("says a member's own MausBot is theirs, not everyone's", () => {expect(container.textContent).not.toContain(t("team.sharedHeader", { team: "Acme" }));expect(container.textContent).toContain(t("team.ownHelperHeader"));});++it.each([[false, "[data-chathead-privacy='shared']"], [true, "[data-chathead-shared]"]])("names who can read a bot's shared chat from the bot's own sharing (Advanced: %s)", (advanced, shown) => {+ setAdvancedMode(advanced);+ const said = () => container.querySelector(shown)?.getAttribute("title");+ draw(luna([]));+ expect(said()).toBe(t("team.sharedHeader", { team: "Acme" }));+ draw(luna([], { onlyPeopleAdded: true }));+ expect(said()).toBe(t("team.sharedHeaderPeople"));+ setAdvancedMode(false);+});diff --git a/src/components/ChatView.tsx b/src/components/ChatView.tsxindex d54cf2a066..9345ff29c3 100644--- a/src/components/ChatView.tsx+++ b/src/components/ChatView.tsx@@ -1026,7 +1026,7 @@ export function ChatView({ bot: profile }: { bot: Bot }) {<ChatHeadPillbot={bot}avatar={{ state: stateForBot({ ...bot, messages }), motion: mascotMotion?.kind ?? "none", motionKey: mascotMotion?.nonce ?? 0, animated: headerAnimated }}- privacy={privateChat ? { kind: "private" } : ownHelper ? { kind: "ownHelper" } : sharedChat && team ? { kind: "shared", team: team.name } : null}+ privacy={privateChat ? { kind: "private" } : ownHelper ? { kind: "ownHelper" } : sharedChat && team ? { kind: "shared", team: team.name, onlyPeopleAdded: bot.onlyPeopleAdded } : null}onToggle={() => dispatch({ type: "toggleSettings", open: !state.settingsOpen })}/>) : advanced ? (@@ -1082,7 +1082,7 @@ export function ChatView({ bot: profile }: { bot: Bot }) {<ChevronRight size={14} aria-hidden="true" className="-ml-2.5 w-0 shrink-0 text-ink-secondary opacity-0 transition-[width,margin,opacity] duration-150 group-hover:ml-0 group-hover:w-3.5 group-hover:opacity-100 group-focus-visible:ml-0 group-focus-visible:w-3.5 group-focus-visible:opacity-100" /></button>)}- {!phone && !simpleHead && <ChatHeadRole bot={bot} />}<span role="status" className="sr-only" data-chathead-status>{bot.busy ? t("sidebar.preview.working") : ""}</span>{!simpleHead && privateChat && <TeamPrivateHeader />}{!simpleHead && ownHelper && <TeamOwnHelperHeader />}{!simpleHead && sharedChat && team && <TeamSharedHeader team={team} />}+ {!phone && !simpleHead && <ChatHeadRole bot={bot} />}<span role="status" className="sr-only" data-chathead-status>{bot.busy ? t("sidebar.preview.working") : ""}</span>{!simpleHead && privateChat && <TeamPrivateHeader />}{!simpleHead && ownHelper && <TeamOwnHelperHeader />}{!simpleHead && sharedChat && team && <TeamSharedHeader team={team} onlyPeopleAdded={bot.onlyPeopleAdded} />}{!simpleHead && !bot.busy && bot.waitingForTeammates && <span className="truncate text-[12px] text-ink-secondary" role="status">Teammates working</span>}{(advanced || remoteClient) && awayFromMainThread(profile, showThreads) && (<buttondiff --git a/src/components/TeamPrivateChatsLine.test.ts b/src/components/TeamPrivateChatsLine.test.tsindex e72154dbf3..9a3a45be68 100644--- a/src/components/TeamPrivateChatsLine.test.ts+++ b/src/components/TeamPrivateChatsLine.test.ts@@ -23,6 +23,12 @@ describe("who can see a team's private chat", () => {expect(renderToStaticMarkup(createElement(TeamSharedHeader, { team: { name: "Acme" } }))).toContain("Shared · everyone in Acme can see");});+ it("says only the people added can see them when the bot is shared that way, never everyone", () => {+ const html = renderToStaticMarkup(createElement(TeamSharedHeader, { team: { name: "Acme" }, onlyPeopleAdded: true }));+ expect(html).toContain("Shared · only people added and admins can see");+ expect(html).not.toContain("everyone");+ });+it("keeps the bot's name in view on a narrow header: the label gives way to its icon, never the name", () => {for (const html of [renderToStaticMarkup(createElement(TeamSharedHeader, { team: { name: "Acme" } })), renderToStaticMarkup(createElement(TeamPrivateHeader))]) {expect(html).not.toMatch(/^<span[^>]*\bshrink-0\b/);diff --git a/src/components/TeamPrivateChatsLine.tsx b/src/components/TeamPrivateChatsLine.tsxindex 68f887e8cf..33d19841ca 100644--- a/src/components/TeamPrivateChatsLine.tsx+++ b/src/components/TeamPrivateChatsLine.tsx@@ -21,9 +21,13 @@ export function TeamPrivateHeader() {return <ChatHeadAudience icon={<Lock size={12} aria-hidden="true" className="shrink-0" />} label={t("team.privateHeader")} data-chathead-private="" />;}-/** In a team bot's shared chats (its main chat, a routine's report): everyone in the team can read them. */-export function TeamSharedHeader({ team }: { team: { name: string } }) {- return <ChatHeadAudience icon={<Users size={12} aria-hidden="true" className="shrink-0" />} label={t("team.sharedHeader", { team: team.name })} data-chathead-shared="" />;+/** Who can read a team bot's shared chats (its main chat, a routine's report). */+export function sharedChatAudience(team: string, onlyPeopleAdded?: boolean): string {+ return onlyPeopleAdded ? t("team.sharedHeaderPeople") : t("team.sharedHeader", { team });+}++export function TeamSharedHeader({ team, onlyPeopleAdded }: { team: { name: string }; onlyPeopleAdded?: boolean }) {+ return <ChatHeadAudience icon={<Users size={12} aria-hidden="true" className="shrink-0" />} label={sharedChatAudience(team.name, onlyPeopleAdded)} data-chathead-shared="" />;}/** On a narrow header only the icon shows, so the bot's name keeps its room. */diff --git a/src/locales/de.json b/src/locales/de.jsonindex 69ff67dbcc..56b92c5929 100644--- a/src/locales/de.json+++ b/src/locales/de.json@@ -2417,6 +2417,7 @@"mcp.apps.toggleAria": "Apps von {name} im Chat zeigen","team.privateChats": "Deine Chats in {team} sind privat. Nur du kannst sie sehen: keine anderen Mitglieder, keine Admins von {team}.","team.privateHeader": "Privat · nur du",+ "team.sharedHeaderPeople": "Geteilt · nur hinzugefügte Personen und Admins können es sehen","chat.page.usage": "{pages} von {limit} Seiten","chat.page.copyLink": "Link kopieren","chat.page.copied": "Kopiert",diff --git a/src/locales/en.json b/src/locales/en.jsonindex 2dc463d346..f9c5f1b60d 100644--- a/src/locales/en.json+++ b/src/locales/en.json@@ -7114,6 +7114,7 @@"team.privateChats": "Your chats in {team} are private. Only you can see them: not other members, not {team}'s admins.","team.privateHeader": "Private · only you","team.sharedHeader": "Shared · everyone in {team} can see",+ "team.sharedHeaderPeople": "Shared · only people added and admins can see","liveConnection.reconnecting": "Reconnecting… New replies show up once the connection is back.","liveConnection.offline": "You're offline. New replies show up once you're back online.","team.ownHelperHeader": "Own helper · other members can't see it",diff --git a/src/locales/es.json b/src/locales/es.jsonindex 312451deba..3b06cb0526 100644--- a/src/locales/es.json+++ b/src/locales/es.json@@ -5507,6 +5507,7 @@"mcp.apps.toggleAria": "Mostrar apps de {name} en el chat","team.privateChats": "Tus chats en {team} son privados. Solo tú puedes verlos: ni otros miembros ni los administradores de {team}.","team.privateHeader": "Privado · solo tú",+ "team.sharedHeaderPeople": "Compartido · solo las personas añadidas y los administradores pueden verlo","chat.page.usage": "{pages} de {limit} páginas","chat.page.copyLink": "Copiar enlace","chat.page.copied": "Copiado",diff --git a/src/locales/fr.json b/src/locales/fr.jsonindex e35c88773f..bac3ecacaa 100644--- a/src/locales/fr.json+++ b/src/locales/fr.json@@ -2389,6 +2389,7 @@"mcp.apps.toggleAria": "Afficher les apps de {name} dans la conversation","team.privateChats": "Vos discussions dans {team} sont privées. Vous seul pouvez les voir : ni les autres membres, ni les administrateurs de {team}.","team.privateHeader": "Privé · vous seul",+ "team.sharedHeaderPeople": "Partagé · seules les personnes ajoutées et les admins peuvent voir","chat.page.usage": "{pages} pages sur {limit}","chat.page.copyLink": "Copier le lien","chat.page.copied": "Copié",diff --git a/src/locales/hi.json b/src/locales/hi.jsonindex 3330da0f9a..609cf4e447 100644--- a/src/locales/hi.json+++ b/src/locales/hi.json@@ -2389,6 +2389,7 @@"mcp.apps.toggleAria": "{name} के ऐप चैट में दिखाएँ","team.privateChats": "{team} में आपकी चैट निजी हैं। उन्हें सिर्फ़ आप देख सकते हैं: न दूसरे सदस्य, न {team} के एडमिन।","team.privateHeader": "निजी · सिर्फ़ आप",+ "team.sharedHeaderPeople": "साझा · सिर्फ़ जोड़े गए लोग और एडमिन देख सकते हैं","chat.page.usage": "{limit} में से {pages} पेज","chat.page.copyLink": "लिंक कॉपी करें","chat.page.copied": "कॉपी हो गया",diff --git a/src/locales/it.json b/src/locales/it.jsonindex 3192f02ce3..f9d64a3144 100644--- a/src/locales/it.json+++ b/src/locales/it.json@@ -6172,6 +6172,7 @@"team.privateChats": "Le tue chat in {team} sono private. Solo tu puoi vederle: non gli altri membri, non gli amministratori di {team}.","team.privateHeader": "Privato · solo tu","team.sharedHeader": "Condiviso · tutti in {team} possono vedere",+ "team.sharedHeaderPeople": "Condiviso · possono vedere solo le persone aggiunte e gli admin","chat.page.usage": "{pages} di {limit} pagine","chat.page.copyLink": "Copia link","chat.page.copied": "Copiato",diff --git a/src/locales/ja.json b/src/locales/ja.jsonindex 0e9bf7b0dc..4f7b4ab8b8 100644--- a/src/locales/ja.json+++ b/src/locales/ja.json@@ -6426,6 +6426,7 @@"team.privateChats": "{team} でのあなたのチャットは非公開です。見られるのはあなただけで、他のメンバーも {team} の管理者も見られません。","team.privateHeader": "非公開 · あなただけ","team.sharedHeader": "共有 · {team} の全員が閲覧できます",+ "team.sharedHeaderPeople": "共有 · 追加された人と管理者だけが閲覧できます","chat.page.usage": "{limit}ページ中{pages}ページ","chat.page.copyLink": "リンクをコピー","chat.page.copied": "コピーしました",diff --git a/src/locales/ko.json b/src/locales/ko.jsonindex e6f4cadd85..c52cf21283 100644--- a/src/locales/ko.json+++ b/src/locales/ko.json@@ -6867,6 +6867,7 @@"team.privateChats": "{team}에서 내 채팅은 비공개예요. 다른 멤버도, {team}의 관리자도 아닌 나만 볼 수 있어요.","team.privateHeader": "비공개 · 나만","team.sharedHeader": "공유 · {team}의 모든 사람이 볼 수 있음",+ "team.sharedHeaderPeople": "공유 · 추가된 사람과 관리자만 볼 수 있음","chat.page.usage": "{limit}페이지 중 {pages}페이지","chat.page.copyLink": "링크 복사","chat.page.copied": "복사됨",diff --git a/src/locales/pl.json b/src/locales/pl.jsonindex 5ebfec6702..82dc848646 100644--- a/src/locales/pl.json+++ b/src/locales/pl.json@@ -6304,6 +6304,7 @@"team.privateChats": "Twoje czaty w {team} są prywatne. Tylko ty możesz je widzieć. Inni członkowie ani administratorzy {team} nie mają do nich dostępu.","team.privateHeader": "Prywatne · tylko ty","team.sharedHeader": "Udostępnione · widzą wszyscy w {team}",+ "team.sharedHeaderPeople": "Udostępnione · widzą tylko dodane osoby i administratorzy","chat.page.usage": "Strony: {pages} z {limit}","chat.page.copyLink": "Kopiuj link","chat.page.copied": "Skopiowano",diff --git a/src/locales/pt-br.json b/src/locales/pt-br.jsonindex 8fe32c2164..bceeb2b8da 100644--- a/src/locales/pt-br.json+++ b/src/locales/pt-br.json@@ -6187,6 +6187,7 @@"mcp.apps.toggleAria": "Mostrar apps de {name} no chat","team.privateChats": "Suas conversas em {team} são privadas. Só você pode vê-las: nem outros membros, nem os administradores de {team}.","team.privateHeader": "Privado · só você",+ "team.sharedHeaderPeople": "Compartilhado · só as pessoas adicionadas e os admins podem ver","chat.page.usage": "{pages} de {limit} páginas","chat.page.copyLink": "Copiar link","chat.page.copied": "Copiado",diff --git a/src/locales/ru.json b/src/locales/ru.jsonindex ee6cc7fa62..268ff5e52b 100644--- a/src/locales/ru.json+++ b/src/locales/ru.json@@ -6395,6 +6395,7 @@"team.privateChats": "Ваши чаты в {team} приватны. Их видите только вы: не другие участники и не администраторы {team}.","team.privateHeader": "Приватный · только вы","team.sharedHeader": "Общий · его видят все в {team}",+ "team.sharedHeaderPeople": "Общий · его видят только добавленные люди и админы","chat.page.usage": "{pages} из {limit} страниц","chat.page.copyLink": "Скопировать ссылку","chat.page.copied": "Скопировано",diff --git a/src/locales/tr.json b/src/locales/tr.jsonindex 9868a6c55e..d708b77f8f 100644--- a/src/locales/tr.json+++ b/src/locales/tr.json@@ -4876,6 +4876,7 @@"mcp.apps.toggleAria": "{name} uygulamalarını sohbette göster","team.privateChats": "{team} içindeki sohbetlerin özeldir. Onları yalnızca sen görebilirsin: diğer üyeler de {team} yöneticileri de göremez.","team.privateHeader": "Özel · yalnızca sen",+ "team.sharedHeaderPeople": "Paylaşıldı · yalnızca eklenen kişiler ve yöneticiler görebilir","chat.page.usage": "{pages}/{limit} sayfa","chat.page.copyLink": "Bağlantıyı kopyala","chat.page.copied": "Kopyalandı",diff --git a/src/locales/uk.json b/src/locales/uk.jsonindex 14c34fd934..a2a4a59766 100644--- a/src/locales/uk.json+++ b/src/locales/uk.json@@ -2861,6 +2861,7 @@"mcp.apps.toggleAria": "Показувати застосунки {name} в чаті","team.privateChats": "Ваші чати в {team} приватні. Їх бачите лише ви: ні інші учасники, ні адміністратори {team}.","team.privateHeader": "Приватно · лише ви",+ "team.sharedHeaderPeople": "Спільний · його бачать лише додані люди й адміни","chat.page.usage": "{pages} з {limit} сторінок","chat.page.copyLink": "Копіювати посилання","chat.page.copied": "Скопійовано",diff --git a/src/locales/vi.json b/src/locales/vi.jsonindex 475c50665f..7d28949f2c 100644--- a/src/locales/vi.json+++ b/src/locales/vi.json@@ -4876,6 +4876,7 @@"mcp.apps.toggleAria": "Hiện ứng dụng từ {name} trong đoạn chat","team.privateChats": "Các cuộc trò chuyện của bạn trong {team} là riêng tư. Chỉ bạn xem được: các thành viên khác và quản trị viên của {team} đều không xem được.","team.privateHeader": "Riêng tư · chỉ bạn",+ "team.sharedHeaderPeople": "Đã chia sẻ · chỉ người được thêm và quản trị viên mới xem được","chat.page.usage": "{pages}/{limit} trang","chat.page.copyLink": "Sao chép liên kết","chat.page.copied": "Đã sao chép",diff --git a/src/locales/zh-tw.json b/src/locales/zh-tw.jsonindex 6128add6cb..8b17161886 100644--- a/src/locales/zh-tw.json+++ b/src/locales/zh-tw.json@@ -4258,6 +4258,7 @@"mcp.apps.toggleAria": "在聊天中顯示 {name} 的應用程式","team.privateChats": "你在 {team} 中的聊天是私密的。只有你看得到:其他成員和 {team} 的管理員都看不到。","team.privateHeader": "私密 · 僅你可見",+ "team.sharedHeaderPeople": "共享 · 只有新增的人和管理員可見","chat.page.usage": "已用 {pages}/{limit} 個頁面","chat.page.copyLink": "複製連結","chat.page.copied": "已複製",diff --git a/src/locales/zh.json b/src/locales/zh.jsonindex 51a6d7ce1e..4c5d7b4465 100644--- a/src/locales/zh.json+++ b/src/locales/zh.json@@ -7037,6 +7037,7 @@"team.privateChats": "你在 {team} 中的聊天是私密的。只有你能看到:其他成员和 {team} 的管理员都看不到。","team.privateHeader": "私密 · 仅你可见","team.sharedHeader": "共享 · {team} 中的所有人可见",+ "team.sharedHeaderPeople": "共享 · 只有添加的人和管理员可见","liveConnection.reconnecting": "正在重新连接… 连接恢复后新回复就会显示。","liveConnection.offline": "你已离线。恢复在线后新回复就会显示。","team.ownHelperHeader": "个人助手 · 其他成员看不到",diff --git a/src/state/store.tsx b/src/state/store.tsxindex 7b552bdc5d..5b321d4ca2 100644--- a/src/state/store.tsx+++ b/src/state/store.tsx@@ -269,7 +269,7 @@ export interface TaskUsage {context?: { tokens: number; window?: number };}-export interface Bot extends DefaultBotFields, Pick<WireBot, "mascotFaceColor" | "access" | "yourAccess"> {+export interface Bot extends DefaultBotFields, Pick<WireBot, "mascotFaceColor" | "access" | "yourAccess" | "onlyPeopleAdded"> {toolScope?: ToolScope;waitingForTeammates?: boolean;id: string;