Skip to content

Open-source Grok Bot alternative with a virtual machine that bots can use

GitHub sign-in card: review fixes

milind-sonia679d29e2fba
diff --git a/packages/phone-protocol/src/connector-card.ts b/packages/phone-protocol/src/connector-card.ts
index 146680f5d4..60f7a33ee4 100644
--- a/packages/phone-protocol/src/connector-card.ts
+++ b/packages/phone-protocol/src/connector-card.ts
@@ -4,6 +4,9 @@ export interface ConnectorCardData {
source?: "composio" | "mcp" | "github";
/** Composio toolkit slug, or the MCP server's name. It is validated server-side before every action. */
slug: string;
+ /** A "github" card on a Team Cloud: the member whose own GitHub sign-in it asks for (their person key), kept on the
+ * card so only they can settle it, whoever writes in the chat later and across restarts. */
+ person?: string;
label: string;
description: string;
status: "required" | "authorizing" | "connected" | "failed";
diff --git a/server/host/github-sign-in-cards.test.ts b/server/host/github-sign-in-cards.test.ts
index 1724dd6a85..e1b3cfa1d8 100644
--- a/server/host/github-sign-in-cards.test.ts
+++ b/server/host/github-sign-in-cards.test.ts
@@ -27,22 +27,27 @@ function setup(options: { team?: boolean; status?: GithubSignInStatus; person?:
const reported: string[] = [];
const resumed: string[] = [];
const released: string[] = [];
+ const threadOf = new Map<string, string>();
+ const clock = { at: 1_000_000 };
const store = {
- messagesFor: () => messages,
- appendMessage: vi.fn((_threadId: string, message: Omit<Message, "id" | "at">) => { const row = { ...message, id: `m${messages.length + 1}`, at: 1 } as Message; messages.push(row); return row; }),
+ messagesFor: (threadId: string) => messages.filter((row) => threadOf.get(row.id) === threadId),
+ appendMessage: vi.fn((threadId: string, message: Omit<Message, "id" | "at">) => { const row = { ...message, id: `m${messages.length + 1}`, at: 1 } as Message; messages.push(row); threadOf.set(row.id, threadId); return row; }),
patchMessage: vi.fn((_threadId: string, id: string, patch: Partial<Message>) => { const at = messages.findIndex((row) => row.id === id); messages[at] = { ...messages[at]!, ...patch }; }),
};
- const cards = createGithubSignInCards({
- store,
+ const make = (turnPerson: () => string | null) => createGithubSignInCards({
+ store, now: () => clock.at,
signIn: { status: vi.fn(async (audience: string) => { asked.push(audience); return status; }), reportAuthFailure: (audience) => { reported.push(String(audience)); } },
team: options.team ?? false,
- turnPerson: () => (options.person === undefined ? ADA : options.person),
+ turnPerson,
language: () => undefined,
threadVisible: () => true,
resume: (threadId, resumeKey) => { resumed.push(`${threadId} ${resumeKey}`); },
release: (threadId, messageId) => { released.push(`${threadId} ${messageId}`); },
});
- return { cards, messages, store, asked, reported, resumed, released, set: (next: GithubSignInStatus) => { status = next; } };
+ const cards = make(() => (options.person === undefined ? ADA : options.person));
+ /** The server again after a restart: the same transcript, nothing in memory, nobody's turn running. */
+ const restarted = () => make(() => null);
+ return { cards, restarted, clock, messages, store, asked, reported, resumed, released, set: (next: GithubSignInStatus) => { status = next; } };
}
const chief = { bot: { id: "chief", name: "Chief" }, threadId: "t1", from: { botId: "chief", name: "Chief", color: "blue" } } as const;
@@ -55,7 +60,7 @@ describe("the Connect GitHub card in a chat", () => {
});
it("says which bot could not do what to which repository, as a connector card a phone can draw as text", async () => {
- const { cards, messages, asked } = setup();
+ const { cards, messages, asked, clock } = setup();
const raised = await cards.raise(chief, { operation: "push", repo: "acme/site" });
expect(raised).toEqual({ posted: true, messageId: "m1" });
expect(asked).toEqual(["owner"]);
@@ -64,6 +69,8 @@ describe("the Connect GitHub card in a chat", () => {
expect(card).toMatchObject({ role: "bot", kind: "connector", text: "Chief couldn't push to acme/site: GitHub isn't connected.", from: chief.from });
expect(card.connector).toMatchObject({ source: "github", slug: GITHUB_CARD_SLUG, label: "GitHub", status: "required" });
expect(card.connector!.resumeKey).toMatch(/^github-[\w-]{8,}$/);
+ expect(card.connector!.person).toBeUndefined();
+ clock.at += 61 * 60_000;
await cards.raise({ ...chief, threadId: "t2", from: undefined }, { operation: "clone", repo: "acme/other.repo" });
expect(messages[1]!.text).toBe("Chief couldn't clone acme/other.repo: GitHub isn't connected.");
});
@@ -91,6 +98,56 @@ describe("the Connect GitHub card in a chat", () => {
expect(messages).toHaveLength(1);
});
+ it("shows a person at most one card an hour, across chats and after Not now, so a bot can't repeat it", async () => {
+ const { cards, messages, clock } = setup();
+ await cards.raise(chief, { operation: "push", repo: "acme/site" });
+ await cards.route("dismiss", "POST", { auth: OWNER, threadId: "t1", message: messages[0]! });
+ for (let i = 0; i < 10; i++) {
+ expect(await cards.raise(chief, { operation: "push", repo: "acme/site" })).toEqual({ posted: false, reason: "cooldown" });
+ expect(await cards.raise({ ...chief, threadId: `chat-${i}` }, { operation: "push", repo: "acme/site" })).toEqual({ posted: false, reason: "cooldown" });
+ }
+ expect(messages).toHaveLength(1);
+ clock.at += 59 * 60_000;
+ expect((await cards.raise({ ...chief, threadId: "t9" }, { operation: "push", repo: "acme/site" })).posted).toBe(false);
+ clock.at += 2 * 60_000;
+ expect((await cards.raise({ ...chief, threadId: "t9" }, { operation: "push", repo: "acme/site" })).posted).toBe(true);
+ });
+
+ it("on a Team Cloud the hour is each person's own", async () => {
+ let person = ADA;
+ const { cards, messages } = setup({ team: true });
+ const other = createGithubSignInCards({ store: { messagesFor: () => [], appendMessage: (_t, m) => ({ ...m, id: "x", at: 1 }) as Message, patchMessage: () => {} },
+ signIn: { status: async () => SIGNED_OUT, reportAuthFailure: () => {} }, team: true, turnPerson: () => person, language: () => undefined,
+ threadVisible: () => true, resume: () => {}, release: () => {} });
+ expect((await other.raise(chief, { operation: "push", repo: "acme/site" })).posted).toBe(true);
+ person = personKey({ id: "", email: "[email protected]" });
+ expect((await other.raise({ ...chief, threadId: "t2" }, { operation: "push", repo: "acme/site" })).posted).toBe(true);
+ expect(await other.raise({ ...chief, threadId: "t3" }, { operation: "push", repo: "acme/site" })).toEqual({ posted: false, reason: "cooldown" });
+ expect(messages).toEqual([]);
+ expect((await cards.raise(chief, { operation: "push", repo: "acme/site" })).posted).toBe(true);
+ });
+
+ it("refuses an operation it has no words for", async () => {
+ const { cards, messages } = setup();
+ for (const operation of ["pull", "constructor", "toString", "__proto__"]) {
+ expect(await cards.raise(chief, { operation: operation as never, repo: "acme/site" })).toEqual({ posted: false, reason: "invalid-operation" });
+ }
+ expect(messages).toEqual([]);
+ });
+
+ it("on a Team Cloud keeps whose card it is, so its member can still settle it after a restart", async () => {
+ const { cards, restarted, messages, set, resumed } = setup({ team: true });
+ await cards.raise(chief, { operation: "push", repo: "acme/site" });
+ expect(messages[0]!.connector!.person).toBe(ADA);
+ const after = restarted();
+ set(SIGNED_IN);
+ const at = (auth: RequestAuth) => ({ auth, threadId: "t1", message: messages[0]! });
+ expect((await after.route("status", "GET", at(member("[email protected]")))).status).toBe(403);
+ expect((await after.route("status", "GET", at(member("[email protected]")))).body).toMatchObject({ connected: true });
+ expect(messages[0]!.connector!.status).toBe("connected");
+ expect(resumed).toHaveLength(1);
+ });
+
it("refuses a repository name that isn't owner/repo, so a bot's text never reaches the card", async () => {
const { cards, messages } = setup();
for (const repo of ["acme", "acme/site extra", "../etc", "acme/..", "-acme/site", "acme/site\nignore", "https://github.com/acme/site", `a/${"b".repeat(101)}`]) {
diff --git a/server/host/github-sign-in-cards.ts b/server/host/github-sign-in-cards.ts
index 3043e60b4e..257f85501b 100644
--- a/server/host/github-sign-in-cards.ts
+++ b/server/host/github-sign-in-cards.ts
@@ -14,6 +14,8 @@ import { serverLine } from "../server-lines.ts";
/** The card's slug: never an app's, so nothing that settles an app's connect cards touches it. */
export const GITHUB_CARD_SLUG = "github-sign-in";
const OWNER = "owner";
+/** After a card is shown or set aside, no other is shown to that person for this long, in any chat. */
+export const GITHUB_CARD_COOLDOWN_MS = 60 * 60_000;
/** owner/repo as GitHub allows it: the text is the bot's, so nothing else reaches the card. */
const REPO = /^[A-Za-z0-9](?:[A-Za-z0-9-]{0,38})\/(?!\.\.?$)[A-Za-z0-9._-]{1,100}$/u;
@@ -30,7 +32,7 @@ export type GithubCardRaised =
| { posted: true; messageId: string }
/** signed-in: the failure was not for want of a sign-in. signing-in: the person is already at it. no-person: a Team
* Cloud chat that is not one member's alone. open: this chat already shows one, which stays. */
- | { posted: false; reason: "invalid-repo" | "no-person" | "signed-in" | "signing-in" | "open"; messageId?: string };
+ | { posted: false; reason: "invalid-repo" | "invalid-operation" | "no-person" | "cooldown" | "signed-in" | "signing-in" | "open"; messageId?: string };
interface CardStore {
messagesFor(threadId: string): readonly Message[];
@@ -51,6 +53,7 @@ export interface GithubSignInCardDeps {
resume(threadId: string, resumeKey: string): void;
/** The card was set aside: a turn parked on it stops waiting. */
release(threadId: string, messageId: string): void;
+ now?: () => number;
}
type GithubCard = Message & { connector: ConnectorCardData };
@@ -63,7 +66,12 @@ const LINE = { clone: "server.github.card.clone", fetch: "server.github.card.fet
export function createGithubSignInCards(deps: GithubSignInCardDeps) {
const { store } = deps;
+ const now = deps.now ?? Date.now;
+ /** When each person was last shown a card, or set one aside. */
+ const lastShown = new Map<string, number>();
const audienceOf = (threadId: string, generation?: string): string | null => (deps.team ? deps.turnPerson(threadId, generation) : OWNER);
+ /** Whose sign-in a card asks for: the person it was raised for, never whoever the chat's turns act for now. */
+ const cardAudience = (card: GithubCard): string | null => (deps.team ? card.connector.person ?? null : OWNER);
const open = (threadId: string, botId: string | undefined) => store.messagesFor(threadId).find((message): message is GithubCard =>
isGithubSignInCard(message) && (message.from?.botId ?? null) === (botId ?? null)
&& !message.connector.dismissed && !message.connector.stopped && message.connector.status !== "connected");
@@ -72,15 +80,21 @@ export function createGithubSignInCards(deps: GithubSignInCardDeps) {
/** After a clone, fetch or push failed for want of a GitHub sign-in: shows the person a Connect GitHub card where the
* work stopped, unless the sign-in is there after all, one is under way, or this chat already shows the card. */
async raise(at: { bot: { id: string; name: string }; threadId: string; generation?: string; from?: Message["from"] }, failure: GithubSignInFailure): Promise<GithubCardRaised> {
- if (!REPO.test(failure.repo)) return { posted: false, reason: "invalid-repo" };
+ if (!Object.hasOwn(LINE, failure.operation)) return { posted: false, reason: "invalid-operation" };
+ if (typeof failure.repo !== "string" || !REPO.test(failure.repo)) return { posted: false, reason: "invalid-repo" };
const audience = audienceOf(at.threadId, at.generation);
if (!audience) return { posted: false, reason: "no-person" };
if (failure.refused) deps.signIn.reportAuthFailure(audience);
- const now = await deps.signIn.status(audience);
- if (now.state === "signed-in") return { posted: false, reason: "signed-in" };
- if (now.state === "installing" || now.state === "signing-in") return { posted: false, reason: "signing-in" };
const shown = open(at.threadId, at.from?.botId);
if (shown) return { posted: false, reason: "open", messageId: shown.id };
+ const last = lastShown.get(audience);
+ if (last !== undefined && now() - last < GITHUB_CARD_COOLDOWN_MS) return { posted: false, reason: "cooldown" };
+ const signIn = await deps.signIn.status(audience);
+ if (signIn.state === "signed-in") return { posted: false, reason: "signed-in" };
+ if (signIn.state === "installing" || signIn.state === "signing-in") return { posted: false, reason: "signing-in" };
+ const again = lastShown.get(audience);
+ if (again !== undefined && now() - again < GITHUB_CARD_COOLDOWN_MS) return { posted: false, reason: "cooldown" };
+ lastShown.set(audience, now());
const language = deps.language(at.threadId);
const message = store.appendMessage(at.threadId, {
role: "bot", kind: "connector",
@@ -88,6 +102,7 @@ export function createGithubSignInCards(deps: GithubSignInCardDeps) {
...(at.from ? { from: at.from } : {}),
connector: {
source: "github", slug: GITHUB_CARD_SLUG, label: "GitHub", status: "required", resumeKey: `github-${randomUUID()}`,
+ ...(deps.team ? { person: audience } : {}),
description: serverLine(language, "server.github.card.description", { bot: at.bot.name }),
},
});
@@ -101,21 +116,23 @@ export function createGithubSignInCards(deps: GithubSignInCardDeps) {
if (!isGithubSignInCard(card) || !deps.threadVisible(at.auth, at.threadId)) return { status: 404, body: { error: "no such connection request" } };
if (action === "dismiss" && method === "POST") {
store.patchMessage(at.threadId, card.id, { connector: { ...card.connector, dismissed: true } });
+ const person = cardAudience(card);
+ if (person) lastShown.set(person, now());
deps.release(at.threadId, card.id);
return { status: 200, body: { dismissed: true } };
}
if (action === "authorize" && method === "POST") return { status: 409, body: { error: serverLine(deps.language(at.threadId), "server.github.card.connectInApps") } };
if (action === "resume" && method === "POST") return { status: 409, body: { error: "nothing waits on this card" } };
if (action !== "status" || method !== "GET") return { status: 405, body: { error: "method not allowed" } };
- const audience = audienceOf(at.threadId);
+ const audience = cardAudience(card);
if (!audience || githubAudience(at.auth, deps.team) !== audience) return { status: 403, body: { error: "This GitHub sign-in is someone else's." } };
- const now = await deps.signIn.status(audience);
- const connected = now.state === "signed-in";
+ const signIn = await deps.signIn.status(audience);
+ const connected = signIn.state === "signed-in";
if (connected && card.connector.status !== "connected") {
store.patchMessage(at.threadId, card.id, { connector: { ...card.connector, status: "connected", error: undefined } });
deps.resume(at.threadId, card.connector.resumeKey);
}
- const pending = now.state === "installing" || now.state === "signing-in";
+ const pending = signIn.state === "installing" || signIn.state === "signing-in";
return { status: 200, body: { connected, pending, status: connected ? "connected" : pending ? "authorizing" : "required" } };
},
};
diff --git a/src/components/github/GithubAppCard.dom.test.ts b/src/components/github/GithubAppCard.dom.test.ts
index f3b953d379..5b0e036fe9 100644
--- a/src/components/github/GithubAppCard.dom.test.ts
+++ b/src/components/github/GithubAppCard.dom.test.ts
@@ -55,7 +55,8 @@ describe("the GitHub row in Apps", () => {
it("not connected: one line and Connect; the download is said only when there is one; a quiet note after an expired code", async () => {
const { timers } = await show({ "/api/github/sign-in": [SIGNED_OUT] });
expect(card()!.dataset.githubState).toBe("signed-out");
- expect(card()!.textContent).toContain("Push bots' work to your repositories.");
+ expect(card()!.textContent).toContain("Bots push code and open pull requests as you.");
+ expect(card()!.textContent).toContain("GitHub sign-in");
expect(card()!.textContent).not.toContain("15 MB");
expect(button("Connect")).toBeTruthy();
expect(timers).toEqual([]);
@@ -169,7 +170,8 @@ describe("the GitHub row in Apps", () => {
"/api/github/sign-in/token": [new ApiError(`GitHub did not accept ${token}`, 400)],
});
await click(button("Connect"));
- expect(host.querySelector("[data-github-refused]")!.textContent).toContain("A new GitHub sign-in can't start on this computer.");
+ expect(host.querySelector("[data-github-refused]")!.textContent).toContain("A new GitHub sign-in can't start here.");
+ expect(host.querySelector("[data-github-connect]"), "starting again gets the same refusal").toBeNull();
expect(host.querySelector("a[href='https://github.com/settings/personal-access-tokens/new']")).toBeNull();
await click(button("Paste a token instead"));
const field = host.querySelector<HTMLInputElement>("input[name='github-token']")!;
@@ -228,6 +230,6 @@ describe("its words", () => {
}
}
setLocale("pt-br");
- expect(t("githubSignIn.pitch")).toBe("Envie o trabalho dos bots para os seus repositórios.");
+ expect(t("githubSignIn.pitch")).toBe("Os bots enviam código e abrem pull requests em seu nome.");
});
});
diff --git a/src/components/github/GithubAppCard.tsx b/src/components/github/GithubAppCard.tsx
index bd1553921f..8d8e645a35 100644
--- a/src/components/github/GithubAppCard.tsx
+++ b/src/components/github/GithubAppCard.tsx
@@ -18,6 +18,8 @@ export function GithubRowAction({ view, store, className = PILL }: { view: Githu
if (view.phase === "loading") return <button type="button" disabled className={className} aria-label={t("common.checking")}>{spinner}</button>;
if (view.phase === "error") return <button type="button" onClick={() => void store.refresh()} className={className}>{t("connectors.action.retry")}</button>;
const state = view.status?.state;
+ // Start was refused: starting again gets the same answer, so the token's Connect is the one action.
+ if ((state === "signed-out" || state === "invalid") && view.refused) return null;
if (state === "signed-out" || state === "invalid") {
return (
<button type="button" data-github-connect disabled={view.busy !== null} onClick={() => void store.start()} className={className}>
@@ -62,7 +64,7 @@ export function GithubAppCard({ store = githubSignIn, refreshKey = 0 }: { store?
{signedIn && <Check size={13} strokeWidth={2.5} className="shrink-0 text-success" aria-label={t("apps.connected")} />}
{state === "installing" && <Loader2 size={13} aria-hidden="true" className="shrink-0 animate-spin text-ink-tertiary motion-reduce:animate-none" />}
</div>
- <p dir="auto" className="text-[13px] leading-[18px] text-ink-secondary">{headline}</p>
+ <p dir="auto" className="truncate text-[13px] leading-[18px] text-ink-secondary" title={headline}>{headline}</p>
</div>
<GithubRowAction view={view} store={store} />
</div>
diff --git a/src/components/github/GithubChatCard.dom.test.ts b/src/components/github/GithubChatCard.dom.test.ts
index 790606a123..47dab4bbe2 100644
--- a/src/components/github/GithubChatCard.dom.test.ts
+++ b/src/components/github/GithubChatCard.dom.test.ts
@@ -6,8 +6,16 @@ import { afterEach, beforeEach, expect, it, vi } from "vitest";
import type { GithubSignInStatus } from "../../../shared/github-sign-in";
const sent = vi.hoisted(() => [] as Array<{ path: string; init?: RequestInit }>);
+const route = vi.hoisted(() => ({ refuse: false }));
vi.mock("@/state/store", () => ({
- api: vi.fn(async (path: string, init?: RequestInit) => { sent.push({ path, init }); return { connected: true }; }),
+ api: vi.fn(async (path: string, init?: RequestInit) => {
+ sent.push({ path, init });
+ if (route.refuse && path.includes("/status")) {
+ const { ApiError } = await import("@/state/api");
+ throw new ApiError("This GitHub sign-in is someone else's.", 403);
+ }
+ return { connected: true };
+ }),
}));
const { setLocale } = await import("@/lib/i18n");
@@ -26,13 +34,17 @@ const message = (status: "required" | "connected" = "required", extra = {}) => (
let root: Root | null = null;
let host: HTMLElement;
-beforeEach(() => { setLocale("en"); sent.length = 0; host = document.createElement("div"); document.body.append(host); });
+beforeEach(() => { setLocale("en"); sent.length = 0; route.refuse = false; reads.length = 0; host = document.createElement("div"); document.body.append(host); });
afterEach(async () => { if (root) await act(async () => root!.unmount()); root = null; document.body.innerHTML = ""; });
-async function show(answers: Array<GithubSignInStatus | InstanceType<typeof ApiError>>, card = message(), starts: GithubSignInStatus[] = [CODE]) {
+const reads: string[] = [];
+const cardStatusCalls = () => sent.filter((call) => call.path === "/api/bots/chief/connector-cards/m1/status?threadId=t1").length;
+
+async function show(answers: Array<GithubSignInStatus | InstanceType<typeof ApiError>>, card = message(), starts: Array<GithubSignInStatus | InstanceType<typeof ApiError>> = [CODE]) {
const store = createGithubSignInStore({
api: async (path) => {
- if (path.endsWith("/start")) return starts.shift();
+ reads.push(path);
+ if (path.endsWith("/start")) { const next = starts.shift()!; if (next instanceof ApiError) throw next; return next; }
const next = answers.length > 1 ? answers.shift()! : answers[0]!;
if (next instanceof ApiError) throw next;
return next;
@@ -44,12 +56,13 @@ async function show(answers: Array<GithubSignInStatus | InstanceType<typeof ApiE
const { GithubChatCard } = await import("./GithubChatCard");
await act(async () => { root!.render(createElement(ConnectorCard, { botId: "chief", threadId: "t1", message: card })); });
await act(async () => { await Promise.resolve(); });
- if (!(card as { connector: { dismissed?: boolean } }).connector.dismissed) {
+ if (!(card as { connector: { dismissed?: boolean } }).connector.dismissed && !route.refuse) {
expect(host.querySelector("[data-github-connect], [data-ask-card]"), "ConnectorCard draws a github card as the GitHub card").toBeTruthy();
expect(host.textContent).not.toContain("Connect securely");
}
+ sent.length = 0;
await act(async () => { root!.render(createElement(GithubChatCard, { botId: "chief", threadId: "t1", message: card, store })); });
- await act(async () => { await Promise.resolve(); });
+ await act(async () => { await Promise.resolve(); await Promise.resolve(); });
return store;
}
const button = (label: string) => [...host.querySelectorAll("button")].find((candidate) => candidate.textContent === label || candidate.getAttribute("aria-label") === label);
@@ -58,7 +71,7 @@ it("says what failed and connects GitHub in place: the code, GitHub's page, then
await show([SIGNED_OUT]);
const card = host.querySelector("[data-ask-card='pending']")!;
expect(card.textContent).toContain("Chief couldn't push to acme/site: GitHub isn't connected.");
- expect(card.textContent).toContain("Push bots' work to your repositories.");
+ expect(card.textContent).toContain("Bots push code and open pull requests as you.");
await act(async () => { button("Connect GitHub")!.click(); await Promise.resolve(); await Promise.resolve(); });
expect(host.querySelector("[data-github-code]")!.textContent).toBe("WDJB-MJHT");
expect(host.querySelector<HTMLAnchorElement>("[data-github-open]")!.href).toBe("https://github.com/login/device");
@@ -68,7 +81,7 @@ it("says what failed and connects GitHub in place: the code, GitHub's page, then
it("settles on the server and becomes one quiet line once GitHub is connected", async () => {
await show([{ state: "signed-in", login: "octo", source: "mausbot", scopes: [], checkedAt: 1 }]);
expect(host.querySelector("[data-ask-card='settled']")!.textContent).toContain("GitHub · Connected as @octo");
- expect(sent.some((call) => call.path === "/api/bots/chief/connector-cards/m1/status?threadId=t1")).toBe(true);
+ expect(cardStatusCalls()).toBe(1);
});
it("Not now sets the card aside through the card's own route", async () => {
@@ -99,6 +112,34 @@ it("asks again before it says connected: a sign-in revoked since Apps last looke
expect(host.querySelector("[data-ask-card='settled']")).toBeNull();
expect(button("Connect again")).toBeTruthy();
expect(host.textContent).toContain("GitHub sign-in stopped working.");
- expect(sent.some((call) => call.path.includes("/status"))).toBe(false);
+ expect(cardStatusCalls()).toBe(1);
appsStillOpen();
});
+
+it("is hidden when the card's own route says it is someone else's, though the viewer's own GitHub is signed out", async () => {
+ route.refuse = true;
+ await show([SIGNED_OUT]);
+ expect(host.innerHTML).toBe("");
+});
+
+it("start refused: no Connect in the footer, the token's Connect is the one primary button", async () => {
+ await show([SIGNED_OUT], message(), [new ApiError("Windows Credential Manager already holds a GitHub CLI sign-in", 409)]);
+ await act(async () => { button("Connect GitHub")!.click(); await Promise.resolve(); await Promise.resolve(); await Promise.resolve(); });
+ expect(host.querySelector("[data-github-connect]")).toBeNull();
+ await act(async () => { button("Paste a token instead")!.click(); });
+ const primaries = [...host.querySelectorAll("button.ui-button-primary")];
+ expect(primaries.map((candidate) => candidate.textContent)).toEqual(["Connect"]);
+ expect(primaries[0]!.closest("[data-github-token-form]")).not.toBeNull();
+});
+
+it("an open card asks for the sign-in once; one set aside or already connected asks nothing", async () => {
+ await show([SIGNED_OUT]);
+ expect(reads.filter((path) => path.startsWith("/api/github/sign-in"))).toEqual(["/api/github/sign-in"]);
+ for (const card of [message("required", { dismissed: true }), message("connected")]) {
+ await act(async () => root!.unmount()); root = null; host.innerHTML = ""; reads.length = 0;
+ await show([SIGNED_OUT], card);
+ expect(reads).toEqual([]);
+ expect(cardStatusCalls()).toBe(0);
+ }
+ expect(host.textContent).toContain("GitHub · Connected");
+});
diff --git a/src/components/github/GithubChatCard.tsx b/src/components/github/GithubChatCard.tsx
index 9878586cc3..e479cae49a 100644
--- a/src/components/github/GithubChatCard.tsx
+++ b/src/components/github/GithubChatCard.tsx
@@ -7,53 +7,73 @@ import { api, type Bot, type Message } from "@/state/store";
import { ASK_SECONDARY_BUTTON, askPrimary, AskCard, AskSettledLine } from "../AskCard";
import { githubHeadline, GithubMark, GithubSignInDetails } from "./GithubSignInDetails";
+type GithubChatCardProps = { botId: string; color?: Bot["color"]; threadId: string; message: Message; store?: GithubSignInStore };
+
/** The card a chat shows after a clone, a fetch or a push failed because GitHub isn't connected: the same sign-in as Apps,
- * right where the work stopped. A client that does not draw it shows the message's text instead. */
-export function GithubChatCard({ botId, color, threadId, message, store = githubSignIn }: {
- botId: string;
- color?: Bot["color"];
- threadId: string;
- message: Message;
- store?: GithubSignInStore;
-}) {
+ * right where the work stopped. A client that does not draw it shows the message's text instead. A card set aside or
+ * already connected asks nothing. */
+export function GithubChatCard(props: GithubChatCardProps) {
+ const connector = props.message.connector!;
+ if (connector.dismissed || connector.superseded) return null;
+ if (connector.status === "connected") {
+ return (
+ <AskSettledLine ariaLabel={connector.label}>
+ <span className="text-ink-secondary">{connector.label}</span>
+ <span> · {t("connectors.card.connected")}</span>
+ </AskSettledLine>
+ );
+ }
+ return <OpenGithubCard {...props} />;
+}
+
+const statusOf = (cause: unknown) => (cause as { status?: unknown } | null)?.status;
+
+function OpenGithubCard({ botId, color, threadId, message, store = githubSignIn }: GithubChatCardProps) {
const connector = message.connector!;
const view = useGithubSignIn(store);
- // What another card or Apps read earlier may be out of date: this card asks again before it says connected.
+ // Whether this card is the viewer's own: the card's route says (403: someone else's), so nobody is shown their own
+ // sign-in on another person's card. Null until it has answered.
+ const [mine, setMine] = useState<boolean | null>(null);
+ // What another card or Apps read earlier may be out of date: this card has its own answer before it says connected.
const [checked, setChecked] = useState(false);
- const signedIn = checked && view.status?.state === "signed-in" ? view.status : null;
- const endpoint = `/api/bots/${encodeURIComponent(botId)}/connector-cards/${encodeURIComponent(message.id)}`;
- const settling = useRef(false);
+ const askedToSettle = useRef(true);
+ const cardStatus = `/api/bots/${encodeURIComponent(botId)}/connector-cards/${encodeURIComponent(message.id)}/status?threadId=${encodeURIComponent(threadId)}`;
+ const dismissPath = `/api/bots/${encodeURIComponent(botId)}/connector-cards/${encodeURIComponent(message.id)}/dismiss`;
+
useEffect(() => {
- if (connector.status === "connected" || connector.dismissed) return;
let live = true;
- void store.refresh().finally(() => { if (live) setChecked(true); });
+ void api(cardStatus).then(() => { if (live) setMine(true); }, (cause) => { if (live) setMine(statusOf(cause) !== 403); });
+ void store.fresh().finally(() => { if (live) setChecked(true); });
return () => { live = false; };
- }, [store, connector.status, connector.dismissed]);
+ }, [store, cardStatus]);
+ const state = checked ? view.status?.state : undefined;
+ // A sign-in finished while the card was shown: the card's route settles it, and a turn parked on it carries on.
useEffect(() => {
- if (!signedIn || connector.status === "connected" || connector.dismissed || settling.current) return;
- settling.current = true;
- void api(`${endpoint}/status?threadId=${encodeURIComponent(threadId)}`).catch(() => {}).finally(() => { settling.current = false; });
- }, [signedIn, connector.status, connector.dismissed, endpoint, threadId]);
-
- if (connector.dismissed || connector.superseded || view.phase === "hidden") return null;
+ if (!checked) return;
+ if (state !== "signed-in") askedToSettle.current = false;
+ else if (!askedToSettle.current && mine) {
+ askedToSettle.current = true;
+ void api(cardStatus).catch(() => {});
+ }
+ }, [checked, state, mine, cardStatus]);
- if (signedIn || connector.status === "connected") {
+ if (mine !== true || view.phase === "hidden") return null;
+ if (state === "signed-in" && view.status?.state === "signed-in") {
return (
<AskSettledLine ariaLabel={connector.label}>
<span className="text-ink-secondary">{connector.label}</span>
- <span> · {signedIn ? t("githubSignIn.connectedAs", { login: signedIn.login }) : t("connectors.card.connected")}</span>
+ <span> · {t("githubSignIn.connectedAs", { login: view.status.login })}</span>
</AskSettledLine>
);
}
- const state = checked ? view.status?.state : undefined;
- const dismiss = () => void api(`${endpoint}/dismiss`, { method: "POST", body: JSON.stringify({ threadId }) }).catch(() => {});
+ const dismiss = () => void api(dismissPath, { method: "POST", body: JSON.stringify({ threadId }) }).catch(() => {});
const spinner = <Loader2 size={14} aria-hidden="true" className="animate-spin motion-reduce:animate-none" />;
return (
<AskCard
ariaLabel={connector.label}
- icon={<GithubMark className="size-4 rounded-[4px]" />}
+ icon={<GithubMark plate={false} className="size-4" />}
title={message.text}
explanation={checked && view.phase === "ready" ? githubHeadline(view) : undefined}
onDismiss={dismiss}
@@ -65,7 +85,7 @@ export function GithubChatCard({ botId, color, threadId, message, store = github
<button type="button" data-github-cancel disabled={view.busy !== null} onClick={() => void store.cancel()} className={ASK_SECONDARY_BUTTON}>
{view.busy === "cancel" ? spinner : t("common.cancel")}
</button>
- ) : state === "signed-out" || state === "invalid" ? (
+ ) : (state === "signed-out" || state === "invalid") && !view.refused ? (
<button type="button" data-github-connect disabled={view.busy !== null} onClick={() => void store.start()} {...askPrimary(color)}>
{view.busy === "start" ? spinner : t(state === "invalid" ? "githubSignIn.connectAgain" : "githubSignIn.connectGithub")}
</button>
diff --git a/src/components/github/GithubSignInDetails.tsx b/src/components/github/GithubSignInDetails.tsx
index 07639bedd7..576e255f3c 100644
--- a/src/components/github/GithubSignInDetails.tsx
+++ b/src/components/github/GithubSignInDetails.tsx
@@ -12,13 +12,14 @@ import {
import { intlLocale, t } from "@/lib/i18n";
import type { LocaleKey } from "@/locales";
-export function GithubMark({ className = "size-10" }: { className?: string }) {
- return (
- <svg viewBox="0 0 40 40" className={cn("shrink-0 rounded-[8px]", className)} aria-hidden="true">
- <rect width="40" height="40" rx="10" fill="#1f2328" />
- <path transform="translate(8 8) scale(1.5)" fill="#fff" d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z" />
- </svg>
- );
+const GITHUB_MARK = "M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z";
+
+/** GitHub's mark on the plate an app's tile gets when it has no logo of its own, so it reads on every skin; bare (no
+ * `plate`) where a card's small icon goes. */
+export function GithubMark({ className = "size-10", plate = true }: { className?: string; plate?: boolean }) {
+ const mark = <svg viewBox="0 0 16 16" aria-hidden="true" className={plate ? "size-[55%]" : className} fill="currentColor"><path d={GITHUB_MARK} /></svg>;
+ if (!plate) return mark;
+ return <span aria-hidden="true" className={cn("flex shrink-0 items-center justify-center rounded-[8px] bg-raised text-ink", className)}>{mark}</span>;
}
const SOURCE: Record<"mausbot" | "token" | "cli", LocaleKey> = {
@@ -35,7 +36,6 @@ const LINK = "inline-flex items-center gap-1 text-[12px] font-medium text-accent
const FIELD = "h-8 w-full min-w-0 rounded-lg bg-inset px-2.5 text-[13px] text-ink placeholder:text-ink-tertiary focus:outline-none focus:ring-1 focus:ring-accent/50";
const NOTE = "text-[12px] leading-4 text-ink-secondary";
export const GITHUB_PRIMARY = "ui-button ui-button-md ui-button-pill ui-button-primary";
-export const GITHUB_SECONDARY = "ui-button ui-button-md ui-button-pill";
/** The line that says where GitHub stands, beside the title. */
export function githubHeadline(view: GithubSignInView): string {
@@ -130,7 +130,7 @@ function SignedIn({ status }: { status: Extract<GithubSignInStatus, { state: "si
<>
<p className={NOTE}>
{t(SOURCE[status.source])}
- {orgs.length > 0 && <> · {t("githubSignIn.orgs", { orgs: new Intl.ListFormat(intlLocale(), { style: "short", type: "unit" }).format(orgs) })}</>}
+ {orgs.length > 0 && <> · {t("githubSignIn.orgs", { orgs: new Intl.ListFormat(intlLocale(), { style: "narrow", type: "conjunction" }).format(orgs) })}</>}
</p>
{status.source === "cli" && <p data-github-cli-reason className={NOTE}>{t("githubSignIn.cliReason")}</p>}
<a href={githubManageUrl(status.source)} target="_blank" rel="noopener noreferrer" className={LINK}
@@ -173,15 +173,18 @@ function TokenForm({ view, store }: { view: GithubSignInView; store: GithubSignI
onChange={(event) => setDraft(event.target.value)}
className={FIELD}
/>
- <button type="submit" disabled={busy || !draft.trim()} className={GITHUB_SECONDARY}>
+ <button type="submit" disabled={busy || !draft.trim()} className={GITHUB_PRIMARY}>
{busy ? <Loader2 size={14} aria-label={t("common.checking")} className="animate-spin" /> : t("connectors.action.connect")}
</button>
</div>
- <a href={GITHUB_NEW_TOKEN_URL} target="_blank" rel="noopener noreferrer" className={cn(LINK, "self-start")}
- onClick={(event) => { if (window.ogb) { event.preventDefault(); void openExternalLink(GITHUB_NEW_TOKEN_URL); } }}>
- {t("githubSignIn.tokenCreate")}
- <ExternalLink size={11} aria-hidden="true" />
- </a>
+ <p className="text-[12px] leading-4">
+ <a href={GITHUB_NEW_TOKEN_URL} target="_blank" rel="noopener noreferrer"
+ className="rounded-sm font-medium text-accent-text hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-focus"
+ onClick={(event) => { if (window.ogb) { event.preventDefault(); void openExternalLink(GITHUB_NEW_TOKEN_URL); } }}>
+ {t("githubSignIn.tokenCreate")}
+ <ExternalLink size={11} aria-hidden="true" className="ms-1 inline-block align-[-1px]" />
+ </a>
+ </p>
</form>
)}
</div>
diff --git a/src/lib/github-sign-in.test.ts b/src/lib/github-sign-in.test.ts
index 22c352cae7..ac14a49af2 100644
--- a/src/lib/github-sign-in.test.ts
+++ b/src/lib/github-sign-in.test.ts
@@ -3,7 +3,7 @@ import { describe, expect, it, vi } from "vitest";
import type { GithubSignInStatus } from "../../shared/github-sign-in";
import { ApiError } from "@/state/api";
import {
- createGithubSignInStore, githubConnected, githubManageUrl, groupCode, INSTALLING_POLL_MS, isGithubDeviceUrl, SIGNING_IN_POLL_MS, spellCode,
+ createGithubSignInStore, EXPIRY_GRACE_MS, POLL_FAILURES_MAX, githubConnected, githubManageUrl, groupCode, INSTALLING_POLL_MS, isGithubDeviceUrl, SIGNING_IN_POLL_MS, spellCode,
} from "./github-sign-in";
const SIGNED_OUT: GithubSignInStatus = { state: "signed-out", download: false };
@@ -11,7 +11,7 @@ const CODE: GithubSignInStatus = { state: "signing-in", code: "WDJB-MJHT", verif
const SIGNED_IN: GithubSignInStatus = { state: "signed-in", login: "octo", source: "mausbot", scopes: ["repo"], checkedAt: 1 };
/** A fake server: answers in order for each path, and hand-run timers. */
-function harness(answers: Record<string, Array<GithubSignInStatus | ApiError>>) {
+function harness(answers: Record<string, Array<GithubSignInStatus | ApiError>>, clock = { at: 0 }) {
const calls: Array<{ path: string; init?: RequestInit & { background?: boolean } }> = [];
const api = vi.fn(async (path: string, init?: RequestInit & { background?: boolean }) => {
calls.push({ path, init });
@@ -33,7 +33,7 @@ function harness(answers: Record<string, Array<GithubSignInStatus | ApiError>>)
for (const timer of due) { timer.cleared = true; timer.fn(); }
await flush();
};
- const store = createGithubSignInStore({ api, timers });
+ const store = createGithubSignInStore({ api, timers, now: () => clock.at });
return { store, calls, live, tick };
}
const flush = async () => { for (let i = 0; i < 5; i++) await Promise.resolve(); };
@@ -192,4 +192,40 @@ describe("the shared status", () => {
const sent = calls.filter((call) => call.path === "/api/github/sign-in/token");
expect(sent.map((call) => [call.init?.method, call.init?.body])).toEqual(Array(3).fill(["POST", JSON.stringify({ token })]));
});
+
+ it("stops asking once the code is past its expiry, whatever the server keeps saying", async () => {
+ const clock = { at: 0 };
+ const { store, live, tick, calls } = harness({ "/api/github/sign-in": [CODE] }, clock);
+ store.subscribe(() => {});
+ await flush();
+ expect(live()).toHaveLength(1);
+ clock.at = CODE.state === "signing-in" ? CODE.expiresAt + EXPIRY_GRACE_MS + 1 : 0;
+ await tick();
+ expect(live()).toEqual([]);
+ const asked = calls.length;
+ await tick();
+ expect(calls).toHaveLength(asked);
+ });
+
+ it("backs off while reads fail, then stops and offers Retry", async () => {
+ const failing = Array.from({ length: 20 }, () => new ApiError("Internal error", 500));
+ const { store, live, tick, calls } = harness({ "/api/github/sign-in": [{ ...CODE, expiresAt: Number.MAX_SAFE_INTEGER } as GithubSignInStatus, ...failing] });
+ store.subscribe(() => {});
+ await flush();
+ const waits: number[] = [];
+ for (let i = 0; i < 10 && live().length; i++) { waits.push(live()[0]!.ms); await tick(); }
+ expect(waits).toEqual(Array.from({ length: POLL_FAILURES_MAX }, (_, i) => SIGNING_IN_POLL_MS * 2 ** i));
+ expect(live()).toEqual([]);
+ expect(store.snapshot().phase).toBe("error");
+ expect(calls).toHaveLength(1 + POLL_FAILURES_MAX);
+ });
+
+ it("a card that comes into view while a read is under way shares it", async () => {
+ const { store, calls } = harness({ "/api/github/sign-in": [SIGNED_OUT] });
+ store.subscribe(() => {});
+ await store.fresh();
+ expect(calls).toHaveLength(1);
+ await store.fresh();
+ expect(calls).toHaveLength(2);
+ });
});
diff --git a/src/lib/github-sign-in.ts b/src/lib/github-sign-in.ts
index 0489f0ead5..c3acd76fbf 100644
--- a/src/lib/github-sign-in.ts
+++ b/src/lib/github-sign-in.ts
@@ -13,6 +13,10 @@ export const GITHUB_TOKENS_URL = "https://github.com/settings/personal-access-to
export const GITHUB_NEW_TOKEN_URL = "https://github.com/settings/personal-access-tokens/new";
export const INSTALLING_POLL_MS = 1_500;
export const SIGNING_IN_POLL_MS = 3_000;
+/** A code past its expiry by this much is not asked about again: the server has said it expired, or cannot say. */
+export const EXPIRY_GRACE_MS = 60_000;
+/** Reads that fail in a row before polling gives up and offers Retry; each failure doubles the wait. */
+export const POLL_FAILURES_MAX = 5;
/** Only GitHub's own device page is ever drawn as a link: anything else the server says is not opened. */
export function isGithubDeviceUrl(value: unknown): value is string {
@@ -48,6 +52,7 @@ export interface GithubSignInView {
type Api = (path: string, init?: RequestInit & { background?: boolean }) => Promise<unknown>;
type Timers = { set(fn: () => void, ms: number): unknown; clear(handle: unknown): void };
+type Read = Promise<void>;
const statusOf = (cause: unknown): number | undefined => {
const status = (cause as { status?: unknown } | null)?.status;
@@ -61,12 +66,15 @@ function isStatus(value: unknown): value is GithubSignInStatus {
const INITIAL: GithubSignInView = { phase: "loading", status: null, busy: null, refused: false, error: null };
-export function createGithubSignInStore(deps: { api?: Api; timers?: Timers } = {}) {
+export function createGithubSignInStore(deps: { api?: Api; timers?: Timers; now?: () => number } = {}) {
+ const now = deps.now ?? Date.now;
const api: Api = deps.api ?? storeApi;
const timers: Timers = deps.timers ?? { set: (fn, ms) => setTimeout(fn, ms), clear: (handle) => clearTimeout(handle as ReturnType<typeof setTimeout>) };
let view = INITIAL;
let reads = 0;
let timer: unknown = null;
+ let failures = 0;
+ let reading: Read | null = null;
const listeners = new Set<() => void>();
const set = (patch: Partial<GithubSignInView>) => {
@@ -82,25 +90,35 @@ export function createGithubSignInStore(deps: { api?: Api; timers?: Timers } = {
const state = view.status?.state;
const wait = state === "installing" ? INSTALLING_POLL_MS : state === "signing-in" ? SIGNING_IN_POLL_MS : null;
if (wait === null || !listeners.size || view.phase !== "ready") return stopPolling();
+ if (view.status?.state === "signing-in" && now() > view.status.expiresAt + EXPIRY_GRACE_MS) return stopPolling();
if (timer !== null) return;
timer = timers.set(() => {
timer = null;
void read({ background: true });
- }, wait);
+ }, wait * 2 ** failures);
}
/** A status answer; a 403 hides the card, anything else that fails keeps what was shown, or offers Retry. */
- async function read(options: { check?: boolean; background?: boolean } = {}): Promise<void> {
+ function read(options: { check?: boolean; background?: boolean } = {}): Read {
+ const started = ask(options);
+ reading = started;
+ void started.finally(() => { if (reading === started) reading = null; });
+ return started;
+ }
+
+ async function ask(options: { check?: boolean; background?: boolean }): Read {
const mine = ++reads;
try {
const answer = await api(`${GITHUB_SIGN_IN_PATH}${options.check ? "?check=1" : ""}`, options.background ? { background: true } : undefined);
if (mine !== reads) return;
if (!isStatus(answer)) throw new Error("unexpected GitHub sign-in status");
+ failures = 0;
set({ phase: "ready", status: answer, refused: answer.state === "signed-in" ? false : view.refused });
} catch (cause) {
if (mine !== reads) return;
- if (statusOf(cause) === 403) set({ phase: "hidden", status: null });
- else if (view.status) set({});
+ if (statusOf(cause) === 403) return set({ phase: "hidden", status: null });
+ failures += 1;
+ if (view.status && failures < POLL_FAILURES_MAX) set({});
else set({ phase: "error" });
}
}
@@ -112,6 +130,7 @@ export function createGithubSignInStore(deps: { api?: Api; timers?: Timers } = {
try {
const answer = await api(`${GITHUB_SIGN_IN_PATH}/${action}`, { method: "POST", ...(body === undefined ? {} : { body }) });
if (!isStatus(answer)) throw new Error("unexpected GitHub sign-in status");
+ failures = 0;
set({ phase: "ready", status: answer, busy: null, refused: action === "start" || answer.state === "signed-in" ? false : view.refused });
return true;
} catch (cause) {
@@ -143,7 +162,9 @@ export function createGithubSignInStore(deps: { api?: Api; timers?: Timers } = {
},
snapshot: (): GithubSignInView => view,
/** Ask again now; `check` asks GitHub whether the saved sign-in still works. */
- refresh: (check = false) => read({ check }),
+ refresh: (check = false) => { failures = 0; return read({ check }); },
+ /** The answer being read now, else a new one: a card that just came into view asks once, not twice. */
+ fresh: (): Read => reading ?? read(),
start: () => act("start", "start"),
cancel: () => act("cancel", "cancel"),
signOut: () => act("sign-out", "sign-out"),
diff --git a/src/locales/de.json b/src/locales/de.json
index a2fc285127..6ec8daaa31 100644
--- a/src/locales/de.json
+++ b/src/locales/de.json
@@ -4306,7 +4306,7 @@
"skillBurger.run.addPathFailed": "Das hat nicht geklappt. Versuch es noch einmal.",
"activity.tool.team.runWorkflow": "Skill Burger ausführen",
"activity.tool.team.workflowEdit": "Skill Burger ändern",
- "githubSignIn.pitch": "Die Arbeit der Bots in deine Repositorys pushen.",
+ "githubSignIn.pitch": "Bots pushen Code und öffnen Pull Requests in deinem Namen.",
"githubSignIn.download": "Beim Verbinden wird zuerst das Befehlszeilentool von GitHub heruntergeladen (etwa 15 MB).",
"githubSignIn.connectGithub": "GitHub verbinden",
"githubSignIn.connectAgain": "Erneut verbinden",
@@ -4326,7 +4326,7 @@
"githubSignIn.manage": "Auf GitHub verwalten",
"githubSignIn.cliReason": "Das ist die Anmeldung deines eigenen GitHub CLI. Melde dich im Terminal mit gh auth logout davon ab.",
"githubSignIn.invalid": "Die GitHub-Anmeldung funktioniert nicht mehr. Bots können erst wieder pushen, wenn du neu verbindest.",
- "githubSignIn.refused": "Auf diesem Computer kann keine neue GitHub-Anmeldung starten.",
+ "githubSignIn.refused": "Hier kann keine neue GitHub-Anmeldung starten.",
"githubSignIn.pasteInstead": "Stattdessen ein Token einfügen",
"githubSignIn.tokenLabel": "GitHub-Token",
"githubSignIn.tokenCreate": "Ein fein abgestuftes Token auf GitHub erstellen",
@@ -4341,6 +4341,6 @@
"server.github.card.fetch": "{bot} konnte nicht von {repo} abrufen: GitHub ist nicht verbunden.",
"server.github.card.description": "Verbinde GitHub, damit {bot} seine Arbeit in deine Repositorys pushen kann.",
"server.github.card.connectInApps": "Verbinde GitHub über diese Karte in der App auf deinem Computer oder unter Apps.",
- "githubSignIn.title": "GitHub",
+ "githubSignIn.title": "GitHub-Anmeldung",
"githubSignIn.tokenPlaceholder": "github_pat_…"
}
diff --git a/src/locales/en.json b/src/locales/en.json
index 3c1736beda..c47626cdbd 100644
--- a/src/locales/en.json
+++ b/src/locales/en.json
@@ -11783,8 +11783,8 @@
"skillBurger.run.addPathFailed": "Couldn't do that. Try again.",
"activity.tool.team.runWorkflow": "Run workflow",
"activity.tool.team.workflowEdit": "Workflow edit",
- "githubSignIn.title": "GitHub",
- "githubSignIn.pitch": "Push bots' work to your repositories.",
+ "githubSignIn.title": "GitHub sign-in",
+ "githubSignIn.pitch": "Bots push code and open pull requests as you.",
"githubSignIn.download": "Connecting first downloads GitHub's command-line tool (about 15 MB).",
"githubSignIn.connectGithub": "Connect GitHub",
"githubSignIn.connectAgain": "Connect again",
@@ -11804,7 +11804,7 @@
"githubSignIn.manage": "Manage on GitHub",
"githubSignIn.cliReason": "This is your own GitHub CLI sign-in. Sign out of it in your terminal with gh auth logout.",
"githubSignIn.invalid": "GitHub sign-in stopped working. Bots can't push until you connect again.",
- "githubSignIn.refused": "A new GitHub sign-in can't start on this computer.",
+ "githubSignIn.refused": "A new GitHub sign-in can't start here.",
"githubSignIn.pasteInstead": "Paste a token instead",
"githubSignIn.tokenLabel": "GitHub token",
"githubSignIn.tokenPlaceholder": "github_pat_…",
diff --git a/src/locales/es.json b/src/locales/es.json
index 2c549c1f78..5eb4490d93 100644
--- a/src/locales/es.json
+++ b/src/locales/es.json
@@ -6578,7 +6578,7 @@
"skillBurger.run.addPathFailed": "No se pudo hacer. Inténtalo de nuevo.",
"activity.tool.team.runWorkflow": "Ejecutar Skill Burger",
"activity.tool.team.workflowEdit": "Cambiar Skill Burger",
- "githubSignIn.pitch": "Sube el trabajo de los bots a tus repositorios.",
+ "githubSignIn.pitch": "Los bots suben código y abren pull requests en tu nombre.",
"githubSignIn.download": "Al conectar, primero se descarga la herramienta de línea de comandos de GitHub (unos 15 MB).",
"githubSignIn.connectGithub": "Conectar GitHub",
"githubSignIn.connectAgain": "Conectar de nuevo",
@@ -6598,7 +6598,7 @@
"githubSignIn.manage": "Gestionar en GitHub",
"githubSignIn.cliReason": "Es la sesión de tu propio GitHub CLI. Ciérrala en tu terminal con gh auth logout.",
"githubSignIn.invalid": "El inicio de sesión en GitHub dejó de funcionar. Los bots no pueden subir cambios hasta que vuelvas a conectar.",
- "githubSignIn.refused": "No se puede iniciar una nueva sesión de GitHub en este ordenador.",
+ "githubSignIn.refused": "Aquí no se puede iniciar una nueva sesión de GitHub.",
"githubSignIn.pasteInstead": "Pegar un token",
"githubSignIn.tokenLabel": "Token de GitHub",
"githubSignIn.tokenCreate": "Crear un token detallado en GitHub",
@@ -6613,6 +6613,6 @@
"server.github.card.fetch": "{bot} no pudo traer cambios de {repo}: GitHub no está conectado.",
"server.github.card.description": "Conecta GitHub para que {bot} pueda subir su trabajo a tus repositorios.",
"server.github.card.connectInApps": "Conecta GitHub desde esta tarjeta en la app de tu ordenador o en Apps.",
- "githubSignIn.title": "GitHub",
+ "githubSignIn.title": "Inicio de sesión en GitHub",
"githubSignIn.tokenPlaceholder": "github_pat_…"
}
diff --git a/src/locales/everyday-words.test.ts b/src/locales/everyday-words.test.ts
index a3ae1b4f4a..1ee574078c 100644
--- a/src/locales/everyday-words.test.ts
+++ b/src/locales/everyday-words.test.ts
@@ -27,7 +27,7 @@ const EVERYDAY_PREFIXES: Record<string, readonly string[]> = {
],
"routines and automations": ["routines.", "automations."],
"the team map": ["canvas.", "mapComputer.", "canvasComputers."],
- "Apps": ["apps.", "connectors."],
+ "Apps": ["apps.", "connectors.", "githubSignIn."],
"the Settings pages Simple mode shows": ["settings.section.", "settings.group.", "settings.mcpCalls.", "settings.logins."],
"Settings's pages, its search and Phone & devices": [
"settings.page.", "settings.scope.", "settings.place.", "settings.glance.", "settings.overview.", "settings.search.", "phone.pair.", "phone.reach.",
diff --git a/src/locales/fr.json b/src/locales/fr.json
index cc0b5c24d1..ac062b9fb3 100644
--- a/src/locales/fr.json
+++ b/src/locales/fr.json
@@ -3983,7 +3983,7 @@
"skillBurger.run.addPathFailed": "Impossible de le faire. Réessayez.",
"activity.tool.team.runWorkflow": "Exécuter le Skill Burger",
"activity.tool.team.workflowEdit": "Modifier le Skill Burger",
- "githubSignIn.pitch": "Pousser le travail des bots vers vos dépôts.",
+ "githubSignIn.pitch": "Les bots poussent du code et ouvrent des pull requests en votre nom.",
"githubSignIn.download": "La connexion télécharge d'abord l'outil en ligne de commande de GitHub (environ 15 Mo).",
"githubSignIn.connectGithub": "Connecter GitHub",
"githubSignIn.connectAgain": "Se reconnecter",
@@ -4003,7 +4003,7 @@
"githubSignIn.manage": "Gérer sur GitHub",
"githubSignIn.cliReason": "C'est la connexion de votre propre GitHub CLI. Déconnectez-vous dans votre terminal avec gh auth logout.",
"githubSignIn.invalid": "La connexion à GitHub ne fonctionne plus. Les bots ne peuvent plus pousser tant que vous ne vous reconnectez pas.",
- "githubSignIn.refused": "Une nouvelle connexion à GitHub ne peut pas démarrer sur cet ordinateur.",
+ "githubSignIn.refused": "Une nouvelle connexion à GitHub ne peut pas démarrer ici.",
"githubSignIn.pasteInstead": "Coller un jeton à la place",
"githubSignIn.tokenLabel": "Jeton GitHub",
"githubSignIn.tokenCreate": "Créer un jeton à granularité fine sur GitHub",
@@ -4018,6 +4018,6 @@
"server.github.card.fetch": "{bot} n'a pas pu récupérer {repo} : GitHub n'est pas connecté.",
"server.github.card.description": "Connectez GitHub pour que {bot} puisse pousser son travail vers vos dépôts.",
"server.github.card.connectInApps": "Connectez GitHub depuis cette carte dans l'app de votre ordinateur, ou dans Apps.",
- "githubSignIn.title": "GitHub",
+ "githubSignIn.title": "Connexion à GitHub",
"githubSignIn.tokenPlaceholder": "github_pat_…"
}
diff --git a/src/locales/hi.json b/src/locales/hi.json
index f941661e56..d02974dd4e 100644
--- a/src/locales/hi.json
+++ b/src/locales/hi.json
@@ -3835,7 +3835,7 @@
"skillBurger.run.addPathFailed": "यह नहीं हो सका। फिर कोशिश करें।",
"activity.tool.team.runWorkflow": "Skill Burger चलाएँ",
"activity.tool.team.workflowEdit": "Skill Burger बदलें",
- "githubSignIn.pitch": "बॉट्स का काम अपनी रिपॉज़िटरी में पुश करें।",
+ "githubSignIn.pitch": "बॉट्स आपकी ओर से कोड पुश करते हैं और पुल रिक्वेस्ट खोलते हैं।",
"githubSignIn.download": "कनेक्ट करने पर पहले GitHub का कमांड-लाइन टूल डाउनलोड होता है (लगभग 15 MB)।",
"githubSignIn.connectGithub": "GitHub कनेक्ट करें",
"githubSignIn.connectAgain": "फिर से कनेक्ट करें",
@@ -3855,7 +3855,7 @@
"githubSignIn.manage": "GitHub पर मैनेज करें",
"githubSignIn.cliReason": "यह आपके अपने GitHub CLI का साइन-इन है। अपने टर्मिनल में gh auth logout से इससे साइन आउट करें।",
"githubSignIn.invalid": "GitHub साइन-इन ने काम करना बंद कर दिया। जब तक आप फिर से कनेक्ट नहीं करते, बॉट्स पुश नहीं कर सकते।",
- "githubSignIn.refused": "इस कंप्यूटर पर नया GitHub साइन-इन शुरू नहीं हो सकता।",
+ "githubSignIn.refused": "यहाँ नया GitHub साइन-इन शुरू नहीं हो सकता।",
"githubSignIn.pasteInstead": "इसके बजाय टोकन पेस्ट करें",
"githubSignIn.tokenLabel": "GitHub टोकन",
"githubSignIn.tokenCreate": "GitHub पर फ़ाइन-ग्रेन्ड टोकन बनाएँ",
@@ -3870,6 +3870,6 @@
"server.github.card.fetch": "{bot} {repo} से फ़ेच नहीं कर सका: GitHub कनेक्ट नहीं है।",
"server.github.card.description": "GitHub कनेक्ट करें ताकि {bot} अपना काम आपकी रिपॉज़िटरी में पुश कर सके।",
"server.github.card.connectInApps": "अपने कंप्यूटर के ऐप में इस कार्ड से, या Apps में, GitHub कनेक्ट करें।",
- "githubSignIn.title": "GitHub",
+ "githubSignIn.title": "GitHub साइन-इन",
"githubSignIn.tokenPlaceholder": "github_pat_…"
}
diff --git a/src/locales/it.json b/src/locales/it.json
index f24173772f..69dfe7bb73 100644
--- a/src/locales/it.json
+++ b/src/locales/it.json
@@ -11468,7 +11468,7 @@
"skillBurger.run.addPathFailed": "Non è stato possibile. Riprova.",
"activity.tool.team.runWorkflow": "Esegui Skill Burger",
"activity.tool.team.workflowEdit": "Modifica Skill Burger",
- "githubSignIn.pitch": "Invia il lavoro dei bot ai tuoi repository.",
+ "githubSignIn.pitch": "I bot inviano codice e aprono pull request a tuo nome.",
"githubSignIn.download": "La connessione scarica prima lo strumento a riga di comando di GitHub (circa 15 MB).",
"githubSignIn.connectGithub": "Connetti GitHub",
"githubSignIn.connectAgain": "Connetti di nuovo",
@@ -11488,7 +11488,7 @@
"githubSignIn.manage": "Gestisci su GitHub",
"githubSignIn.cliReason": "È l'accesso del tuo GitHub CLI. Esci dal terminale con gh auth logout.",
"githubSignIn.invalid": "L'accesso a GitHub ha smesso di funzionare. I bot non possono inviare modifiche finché non ti connetti di nuovo.",
- "githubSignIn.refused": "Su questo computer non può partire un nuovo accesso a GitHub.",
+ "githubSignIn.refused": "Qui non può partire un nuovo accesso a GitHub.",
"githubSignIn.pasteInstead": "Incolla un token",
"githubSignIn.tokenLabel": "Token GitHub",
"githubSignIn.tokenCreate": "Crea un token con permessi granulari su GitHub",
@@ -11503,6 +11503,6 @@
"server.github.card.fetch": "{bot} non è riuscito a scaricare da {repo}: GitHub non è connesso.",
"server.github.card.description": "Connetti GitHub perché {bot} possa inviare il suo lavoro ai tuoi repository.",
"server.github.card.connectInApps": "Connetti GitHub da questa scheda nell'app sul tuo computer, oppure in App.",
- "githubSignIn.title": "GitHub",
+ "githubSignIn.title": "Accesso a GitHub",
"githubSignIn.tokenPlaceholder": "github_pat_…"
}
diff --git a/src/locales/ja.json b/src/locales/ja.json
index 564abbd67c..4da77597fc 100644
--- a/src/locales/ja.json
+++ b/src/locales/ja.json
@@ -8112,7 +8112,7 @@
"skillBurger.run.addPathFailed": "できませんでした。もう一度お試しください。",
"activity.tool.team.runWorkflow": "Skill Burger を実行",
"activity.tool.team.workflowEdit": "Skill Burger を変更",
- "githubSignIn.pitch": "ボットの作業をあなたのリポジトリにプッシュします。",
+ "githubSignIn.pitch": "ボットがあなたとしてコードをプッシュし、プルリクエストを作成します。",
"githubSignIn.download": "接続すると、最初に GitHub のコマンドラインツール (約 15 MB) をダウンロードします。",
"githubSignIn.connectGithub": "GitHub に接続",
"githubSignIn.connectAgain": "もう一度接続",
@@ -8128,11 +8128,11 @@
"githubSignIn.source.mausbot": "ここでサインイン",
"githubSignIn.source.cli": "あなたの GitHub CLI を使用",
"githubSignIn.source.token": "貼り付けたトークンを使用",
- "githubSignIn.orgs": "Organization: {orgs}",
+ "githubSignIn.orgs": "組織: {orgs}",
"githubSignIn.manage": "GitHub で管理",
"githubSignIn.cliReason": "これはあなた自身の GitHub CLI のサインインです。ターミナルで gh auth logout を実行してサインアウトしてください。",
"githubSignIn.invalid": "GitHub のサインインが無効になりました。もう一度接続するまで、ボットはプッシュできません。",
- "githubSignIn.refused": "このコンピューターでは新しい GitHub サインインを開始できません。",
+ "githubSignIn.refused": "ここでは新しい GitHub サインインを開始できません。",
"githubSignIn.pasteInstead": "代わりにトークンを貼り付ける",
"githubSignIn.tokenLabel": "GitHub トークン",
"githubSignIn.tokenCreate": "GitHub で Fine-grained トークンを作成",
@@ -8147,6 +8147,6 @@
"server.github.card.fetch": "{bot} は {repo} からフェッチできませんでした: GitHub が接続されていません。",
"server.github.card.description": "GitHub に接続すると、{bot} が作業をあなたのリポジトリにプッシュできます。",
"server.github.card.connectInApps": "コンピューターのアプリのこのカード、またはアプリ画面から GitHub に接続してください。",
- "githubSignIn.title": "GitHub",
+ "githubSignIn.title": "GitHub サインイン",
"githubSignIn.tokenPlaceholder": "github_pat_…"
}
diff --git a/src/locales/ko.json b/src/locales/ko.json
index 2f1fd19cc0..319f7cd3e2 100644
--- a/src/locales/ko.json
+++ b/src/locales/ko.json
@@ -7802,7 +7802,7 @@
"skillBurger.run.addPathFailed": "하지 못했습니다. 다시 시도하세요.",
"activity.tool.team.runWorkflow": "Skill Burger 실행",
"activity.tool.team.workflowEdit": "Skill Burger 변경",
- "githubSignIn.pitch": "봇의 작업을 내 저장소로 푸시합니다.",
+ "githubSignIn.pitch": "봇이 내 이름으로 코드를 푸시하고 풀 리퀘스트를 엽니다.",
"githubSignIn.download": "연결하면 먼저 GitHub 명령줄 도구(약 15MB)를 내려받습니다.",
"githubSignIn.connectGithub": "GitHub 연결",
"githubSignIn.connectAgain": "다시 연결",
@@ -7822,7 +7822,7 @@
"githubSignIn.manage": "GitHub에서 관리",
"githubSignIn.cliReason": "내 GitHub CLI의 로그인입니다. 터미널에서 gh auth logout으로 로그아웃하세요.",
"githubSignIn.invalid": "GitHub 로그인이 더 이상 작동하지 않습니다. 다시 연결할 때까지 봇이 푸시할 수 없습니다.",
- "githubSignIn.refused": "이 컴퓨터에서는 새 GitHub 로그인을 시작할 수 없습니다.",
+ "githubSignIn.refused": "여기에서는 새 GitHub 로그인을 시작할 수 없습니다.",
"githubSignIn.pasteInstead": "대신 토큰 붙여 넣기",
"githubSignIn.tokenLabel": "GitHub 토큰",
"githubSignIn.tokenCreate": "GitHub에서 세분화된 토큰 만들기",
@@ -7837,6 +7837,6 @@
"server.github.card.fetch": "{bot}이(가) {repo}에서 가져오지 못했습니다: GitHub가 연결되지 않았습니다.",
"server.github.card.description": "GitHub를 연결하면 {bot}이(가) 작업을 내 저장소로 푸시할 수 있습니다.",
"server.github.card.connectInApps": "컴퓨터의 앱에서 이 카드로, 또는 앱 화면에서 GitHub를 연결하세요.",
- "githubSignIn.title": "GitHub",
+ "githubSignIn.title": "GitHub 로그인",
"githubSignIn.tokenPlaceholder": "github_pat_…"
}
diff --git a/src/locales/pl.json b/src/locales/pl.json
index 0161ee5f56..1286a0400f 100644
--- a/src/locales/pl.json
+++ b/src/locales/pl.json
@@ -7274,7 +7274,7 @@
"skillBurger.run.addPathFailed": "Nie udało się. Spróbuj ponownie.",
"activity.tool.team.runWorkflow": "Uruchom Skill Burger",
"activity.tool.team.workflowEdit": "Zmień Skill Burger",
- "githubSignIn.pitch": "Wysyłaj pracę botów do swoich repozytoriów.",
+ "githubSignIn.pitch": "Boty wysyłają kod i otwierają pull requesty w Twoim imieniu.",
"githubSignIn.download": "Połączenie najpierw pobiera narzędzie wiersza poleceń GitHuba (około 15 MB).",
"githubSignIn.connectGithub": "Połącz z GitHubem",
"githubSignIn.connectAgain": "Połącz ponownie",
@@ -7294,7 +7294,7 @@
"githubSignIn.manage": "Zarządzaj na GitHubie",
"githubSignIn.cliReason": "To logowanie Twojego własnego GitHub CLI. Wyloguj się w terminalu poleceniem gh auth logout.",
"githubSignIn.invalid": "Logowanie do GitHuba przestało działać. Boty nie mogą wysyłać zmian, dopóki nie połączysz ponownie.",
- "githubSignIn.refused": "Na tym komputerze nie można rozpocząć nowego logowania do GitHuba.",
+ "githubSignIn.refused": "Tutaj nie można rozpocząć nowego logowania do GitHuba.",
"githubSignIn.pasteInstead": "Wklej token",
"githubSignIn.tokenLabel": "Token GitHuba",
"githubSignIn.tokenCreate": "Utwórz szczegółowy token na GitHubie",
@@ -7309,6 +7309,6 @@
"server.github.card.fetch": "{bot} nie może pobrać zmian z {repo}: GitHub nie jest połączony.",
"server.github.card.description": "Połącz z GitHubem, aby {bot} mógł wysyłać swoją pracę do Twoich repozytoriów.",
"server.github.card.connectInApps": "Połącz z GitHubem przez tę kartę w aplikacji na komputerze albo w Aplikacjach.",
- "githubSignIn.title": "GitHub",
+ "githubSignIn.title": "Logowanie do GitHuba",
"githubSignIn.tokenPlaceholder": "github_pat_…"
}
diff --git a/src/locales/pt-br.json b/src/locales/pt-br.json
index 23ea9794bd..5aa9e2ebf9 100644
--- a/src/locales/pt-br.json
+++ b/src/locales/pt-br.json
@@ -11783,7 +11783,7 @@
"skillBurger.run.addPathFailed": "Não foi possível. Tente de novo.",
"activity.tool.team.runWorkflow": "Executar Skill Burger",
"activity.tool.team.workflowEdit": "Alterar Skill Burger",
- "githubSignIn.pitch": "Envie o trabalho dos bots para os seus repositórios.",
+ "githubSignIn.pitch": "Os bots enviam código e abrem pull requests em seu nome.",
"githubSignIn.download": "Ao conectar, a ferramenta de linha de comando do GitHub é baixada primeiro (cerca de 15 MB).",
"githubSignIn.connectGithub": "Conectar GitHub",
"githubSignIn.connectAgain": "Conectar novamente",
@@ -11803,7 +11803,7 @@
"githubSignIn.manage": "Gerenciar no GitHub",
"githubSignIn.cliReason": "Este é o login do seu próprio GitHub CLI. Para sair dele, rode gh auth logout no seu terminal.",
"githubSignIn.invalid": "O login no GitHub parou de funcionar. Os bots não podem enviar alterações até você conectar novamente.",
- "githubSignIn.refused": "Não é possível iniciar um novo login no GitHub neste computador.",
+ "githubSignIn.refused": "Não é possível iniciar um novo login no GitHub aqui.",
"githubSignIn.pasteInstead": "Colar um token",
"githubSignIn.tokenLabel": "Token do GitHub",
"githubSignIn.tokenCreate": "Criar um token de acesso refinado no GitHub",
@@ -11818,6 +11818,6 @@
"server.github.card.fetch": "{bot} não conseguiu buscar de {repo}: o GitHub não está conectado.",
"server.github.card.description": "Conecte o GitHub para que {bot} possa enviar o trabalho para os seus repositórios.",
"server.github.card.connectInApps": "Conecte o GitHub por este cartão no app do seu computador, ou em Apps.",
- "githubSignIn.title": "GitHub",
+ "githubSignIn.title": "Login no GitHub",
"githubSignIn.tokenPlaceholder": "github_pat_…"
}
diff --git a/src/locales/ru.json b/src/locales/ru.json
index 4abe318904..6495b3e49f 100644
--- a/src/locales/ru.json
+++ b/src/locales/ru.json
@@ -7328,7 +7328,7 @@
"skillBurger.run.addPathFailed": "Не получилось. Попробуйте ещё раз.",
"activity.tool.team.runWorkflow": "Запустить Skill Burger",
"activity.tool.team.workflowEdit": "Изменить Skill Burger",
- "githubSignIn.pitch": "Отправляйте работу ботов в свои репозитории.",
+ "githubSignIn.pitch": "Боты отправляют код и открывают пул-реквесты от вашего имени.",
"githubSignIn.download": "При подключении сначала скачивается инструмент командной строки GitHub (около 15 МБ).",
"githubSignIn.connectGithub": "Подключить GitHub",
"githubSignIn.connectAgain": "Подключить снова",
@@ -7348,7 +7348,7 @@
"githubSignIn.manage": "Управлять на GitHub",
"githubSignIn.cliReason": "Это вход вашего собственного GitHub CLI. Выйти из него можно в терминале командой gh auth logout.",
"githubSignIn.invalid": "Вход в GitHub перестал работать. Боты не смогут отправлять изменения, пока вы не подключитесь снова.",
- "githubSignIn.refused": "На этом компьютере нельзя начать новый вход в GitHub.",
+ "githubSignIn.refused": "Здесь нельзя начать новый вход в GitHub.",
"githubSignIn.pasteInstead": "Вставить токен",
"githubSignIn.tokenLabel": "Токен GitHub",
"githubSignIn.tokenCreate": "Создать детализированный токен на GitHub",
@@ -7363,6 +7363,6 @@
"server.github.card.fetch": "{bot} не удалось получить изменения из {repo}: GitHub не подключён.",
"server.github.card.description": "Подключите GitHub, чтобы {bot} мог отправлять работу в ваши репозитории.",
"server.github.card.connectInApps": "Подключите GitHub через эту карточку в приложении на компьютере или в разделе «Приложения».",
- "githubSignIn.title": "GitHub",
+ "githubSignIn.title": "Вход в GitHub",
"githubSignIn.tokenPlaceholder": "github_pat_…"
}
diff --git a/src/locales/tr.json b/src/locales/tr.json
index 1ba1c3629d..d5f565b7a1 100644
--- a/src/locales/tr.json
+++ b/src/locales/tr.json
@@ -6073,7 +6073,7 @@
"skillBurger.run.addPathFailed": "Yapılamadı. Tekrar deneyin.",
"activity.tool.team.runWorkflow": "Skill Burger çalıştır",
"activity.tool.team.workflowEdit": "Skill Burger değiştir",
- "githubSignIn.pitch": "Botların işini depolarınıza gönderin.",
+ "githubSignIn.pitch": "Botlar sizin adınıza kod gönderir ve pull request açar.",
"githubSignIn.download": "Bağlanırken önce GitHub'ın komut satırı aracı indirilir (yaklaşık 15 MB).",
"githubSignIn.connectGithub": "GitHub'ı bağla",
"githubSignIn.connectAgain": "Yeniden bağla",
@@ -6093,7 +6093,7 @@
"githubSignIn.manage": "GitHub'da yönet",
"githubSignIn.cliReason": "Bu, kendi GitHub CLI oturumunuz. Terminalinizde gh auth logout ile oturumu kapatın.",
"githubSignIn.invalid": "GitHub oturumu artık çalışmıyor. Yeniden bağlanana kadar botlar gönderim yapamaz.",
- "githubSignIn.refused": "Bu bilgisayarda yeni bir GitHub oturumu başlatılamıyor.",
+ "githubSignIn.refused": "Burada yeni bir GitHub oturumu başlatılamıyor.",
"githubSignIn.pasteInstead": "Bunun yerine token yapıştır",
"githubSignIn.tokenLabel": "GitHub token'ı",
"githubSignIn.tokenCreate": "GitHub'da ayrıntılı izinli bir token oluştur",
@@ -6108,6 +6108,6 @@
"server.github.card.fetch": "{bot}, {repo} deposundan çekemedi: GitHub bağlı değil.",
"server.github.card.description": "{bot} işini depolarınıza gönderebilsin diye GitHub'ı bağlayın.",
"server.github.card.connectInApps": "GitHub'ı bilgisayarınızdaki uygulamada bu karttan ya da Uygulamalar'dan bağlayın.",
- "githubSignIn.title": "GitHub",
+ "githubSignIn.title": "GitHub oturumu",
"githubSignIn.tokenPlaceholder": "github_pat_…"
}
diff --git a/src/locales/uk.json b/src/locales/uk.json
index 0f358ff455..945b1268d5 100644
--- a/src/locales/uk.json
+++ b/src/locales/uk.json
@@ -4255,7 +4255,7 @@
"skillBurger.run.addPathFailed": "Не вдалося. Спробуйте ще раз.",
"activity.tool.team.runWorkflow": "Запустити Skill Burger",
"activity.tool.team.workflowEdit": "Змінити Skill Burger",
- "githubSignIn.pitch": "Надсилайте роботу ботів у свої репозиторії.",
+ "githubSignIn.pitch": "Боти надсилають код і відкривають пул-реквести від вашого імені.",
"githubSignIn.download": "Під час підключення спершу завантажується інструмент командного рядка GitHub (близько 15 МБ).",
"githubSignIn.connectGithub": "Підключити GitHub",
"githubSignIn.connectAgain": "Підключити знову",
@@ -4275,7 +4275,7 @@
"githubSignIn.manage": "Керувати на GitHub",
"githubSignIn.cliReason": "Це вхід вашого власного GitHub CLI. Вийти з нього можна в терміналі командою gh auth logout.",
"githubSignIn.invalid": "Вхід у GitHub перестав працювати. Боти не зможуть надсилати зміни, доки ви не підключитеся знову.",
- "githubSignIn.refused": "На цьому комп'ютері не можна почати новий вхід у GitHub.",
+ "githubSignIn.refused": "Тут не можна почати новий вхід у GitHub.",
"githubSignIn.pasteInstead": "Вставити токен",
"githubSignIn.tokenLabel": "Токен GitHub",
"githubSignIn.tokenCreate": "Створити детальний токен на GitHub",
@@ -4290,6 +4290,6 @@
"server.github.card.fetch": "{bot} не вдалося отримати зміни з {repo}: GitHub не підключено.",
"server.github.card.description": "Підключіть GitHub, щоб {bot} міг надсилати роботу у ваші репозиторії.",
"server.github.card.connectInApps": "Підключіть GitHub через цю картку в застосунку на комп'ютері або в розділі «Застосунки».",
- "githubSignIn.title": "GitHub",
+ "githubSignIn.title": "Вхід у GitHub",
"githubSignIn.tokenPlaceholder": "github_pat_…"
}
diff --git a/src/locales/vi.json b/src/locales/vi.json
index cdacaeada1..337ba96137 100644
--- a/src/locales/vi.json
+++ b/src/locales/vi.json
@@ -6073,7 +6073,7 @@
"skillBurger.run.addPathFailed": "Không làm được. Hãy thử lại.",
"activity.tool.team.runWorkflow": "Chạy Skill Burger",
"activity.tool.team.workflowEdit": "Đổi Skill Burger",
- "githubSignIn.pitch": "Đẩy công việc của bot lên kho mã của bạn.",
+ "githubSignIn.pitch": "Bot đẩy mã và mở pull request thay bạn.",
"githubSignIn.download": "Khi kết nối, công cụ dòng lệnh của GitHub sẽ được tải xuống trước (khoảng 15 MB).",
"githubSignIn.connectGithub": "Kết nối GitHub",
"githubSignIn.connectAgain": "Kết nối lại",
@@ -6093,7 +6093,7 @@
"githubSignIn.manage": "Quản lý trên GitHub",
"githubSignIn.cliReason": "Đây là phiên đăng nhập GitHub CLI của riêng bạn. Đăng xuất trong terminal bằng gh auth logout.",
"githubSignIn.invalid": "Đăng nhập GitHub đã ngừng hoạt động. Bot không thể đẩy cho đến khi bạn kết nối lại.",
- "githubSignIn.refused": "Không thể bắt đầu đăng nhập GitHub mới trên máy tính này.",
+ "githubSignIn.refused": "Không thể bắt đầu đăng nhập GitHub mới tại đây.",
"githubSignIn.pasteInstead": "Dán token thay thế",
"githubSignIn.tokenLabel": "Token GitHub",
"githubSignIn.tokenCreate": "Tạo token chi tiết trên GitHub",
@@ -6108,6 +6108,6 @@
"server.github.card.fetch": "{bot} không thể lấy dữ liệu từ {repo}: GitHub chưa được kết nối.",
"server.github.card.description": "Kết nối GitHub để {bot} có thể đẩy công việc lên kho mã của bạn.",
"server.github.card.connectInApps": "Kết nối GitHub từ thẻ này trong ứng dụng trên máy tính, hoặc trong Ứng dụng.",
- "githubSignIn.title": "GitHub",
+ "githubSignIn.title": "Đăng nhập GitHub",
"githubSignIn.tokenPlaceholder": "github_pat_…"
}
diff --git a/src/locales/zh-tw.json b/src/locales/zh-tw.json
index c7347a01a7..683157343f 100644
--- a/src/locales/zh-tw.json
+++ b/src/locales/zh-tw.json
@@ -10390,7 +10390,7 @@
"skillBurger.run.addPathFailed": "無法完成,請再試一次。",
"activity.tool.team.runWorkflow": "執行 Skill Burger",
"activity.tool.team.workflowEdit": "變更 Skill Burger",
- "githubSignIn.pitch": "將機器人的工作推送到你的儲存庫。",
+ "githubSignIn.pitch": "機器人以你的身分推送程式碼並建立提取要求。",
"githubSignIn.download": "連線時會先下載 GitHub 的命令列工具(約 15 MB)。",
"githubSignIn.connectGithub": "連線 GitHub",
"githubSignIn.connectAgain": "重新連線",
@@ -10410,7 +10410,7 @@
"githubSignIn.manage": "在 GitHub 上管理",
"githubSignIn.cliReason": "這是你自己的 GitHub CLI 登入。請在終端機執行 gh auth logout 登出。",
"githubSignIn.invalid": "GitHub 登入已失效。重新連線之前,機器人無法推送。",
- "githubSignIn.refused": "無法在這台電腦上開始新的 GitHub 登入。",
+ "githubSignIn.refused": "無法在此處開始新的 GitHub 登入。",
"githubSignIn.pasteInstead": "改為貼上權杖",
"githubSignIn.tokenLabel": "GitHub 權杖",
"githubSignIn.tokenCreate": "在 GitHub 上建立細緻權限的權杖",
@@ -10425,6 +10425,6 @@
"server.github.card.fetch": "{bot} 無法從 {repo} 擷取:GitHub 尚未連線。",
"server.github.card.description": "連線 GitHub 後,{bot} 就能把工作推送到你的儲存庫。",
"server.github.card.connectInApps": "請在電腦上的應用程式中透過此卡片連線 GitHub,或在「應用程式」中連線。",
- "githubSignIn.title": "GitHub",
+ "githubSignIn.title": "GitHub 登入",
"githubSignIn.tokenPlaceholder": "github_pat_…"
}
diff --git a/src/locales/zh.json b/src/locales/zh.json
index c9e20b74ce..a1f6bc2a08 100644
--- a/src/locales/zh.json
+++ b/src/locales/zh.json
@@ -10303,7 +10303,7 @@
"skillBurger.run.addPathFailed": "无法完成,请重试。",
"activity.tool.team.runWorkflow": "运行 Skill Burger",
"activity.tool.team.workflowEdit": "更改 Skill Burger",
- "githubSignIn.pitch": "将机器人的工作推送到你的仓库。",
+ "githubSignIn.pitch": "机器人以你的身份推送代码并创建拉取请求。",
"githubSignIn.download": "连接时会先下载 GitHub 的命令行工具(约 15 MB)。",
"githubSignIn.connectGithub": "连接 GitHub",
"githubSignIn.connectAgain": "重新连接",
@@ -10323,7 +10323,7 @@
"githubSignIn.manage": "在 GitHub 上管理",
"githubSignIn.cliReason": "这是你自己的 GitHub CLI 登录。请在终端中运行 gh auth logout 退出。",
"githubSignIn.invalid": "GitHub 登录已失效。重新连接之前,机器人无法推送。",
- "githubSignIn.refused": "无法在这台电脑上开始新的 GitHub 登录。",
+ "githubSignIn.refused": "无法在此处开始新的 GitHub 登录。",
"githubSignIn.pasteInstead": "改为粘贴令牌",
"githubSignIn.tokenLabel": "GitHub 令牌",
"githubSignIn.tokenCreate": "在 GitHub 上创建细粒度令牌",
@@ -10338,6 +10338,6 @@
"server.github.card.fetch": "{bot} 无法从 {repo} 拉取:GitHub 未连接。",
"server.github.card.description": "连接 GitHub 后,{bot} 就能把工作推送到你的仓库。",
"server.github.card.connectInApps": "请在电脑上的应用中通过此卡片连接 GitHub,或在“应用”中连接。",
- "githubSignIn.title": "GitHub",
+ "githubSignIn.title": "GitHub 登录",
"githubSignIn.tokenPlaceholder": "github_pat_…"
}