Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
Boat sign-in: quiet actions read the same in the computer panel; the account wraps
milind-soni837fecc87a51
diff --git a/server/boat-sign-in.test.ts b/server/boat-sign-in.test.tsindex eff15d5d11..4d1bb1fd4a 100644--- a/server/boat-sign-in.test.ts+++ b/server/boat-sign-in.test.ts@@ -348,7 +348,7 @@ describe("what the person allowed", () => {expect(created.status).toBe(403);expect(await created.json()).toMatchObject({ error: "api_key_action_forbidden", boatSignIn: true, message: expect.stringMatching(/does not let this app create a cloud computer: "sandbox\.create" was not allowed/) });const ran = await boatFetch(SIGNED_IN, "/sandboxes/bx_1/commands", { method: "POST", body: "{}" });- expect((await ran.json()).message).toContain("run commands on a cloud computer");+ expect(((await ran.json()) as { message: string }).message).toContain("run commands on a cloud computer");expect(fake.counts.api).toBe(sent);});diff --git a/src/components/keys/BoatSignIn.tsx b/src/components/keys/BoatSignIn.tsxindex bd105523dc..55ce870bbb 100644--- a/src/components/keys/BoatSignIn.tsx+++ b/src/components/keys/BoatSignIn.tsx@@ -14,6 +14,9 @@ const OUTCOME: Partial<Record<BoatSignInOutcome, LocaleKey>> = {"not-saved": "boatSignIn.notSaved",};+/** A quiet text action that reads the same in Settings and in the computer panel. */+const QUIET = "shrink-0 cursor-pointer text-[13px] leading-5 text-ink-secondary hover:text-ink hover:underline disabled:opacity-50";+const reason = (cause: unknown) => (cause instanceof Error ? cause.message : String(cause));/** The primary way to connect a Boat account, above the key field of the Boat row: a button with Boat's mark, then, once@@ -51,17 +54,17 @@ export function BoatSignIn({ status, fieldShown, onConnected }: { status: BoatSi<div data-boat-sign-in-state={waiting ? "waiting" : status.state} className="flex flex-col gap-2">{status.state !== "none" && (<div className="flex flex-wrap items-center gap-x-3 gap-y-1">- <span className="flex min-w-0 flex-1 items-center gap-1.5 text-[13px] leading-5 text-ink">+ <span className="flex min-w-[min(100%,12rem)] flex-1 items-start gap-1.5 text-[13px] leading-5 text-ink">{connected- ? <Check size={14} aria-hidden="true" className="shrink-0 text-success" />- : <CircleAlert size={14} aria-hidden="true" className="shrink-0 text-danger" />}- <span data-boat-account className="truncate">+ ? <Check size={14} aria-hidden="true" className="mt-[3px] shrink-0 text-success" />+ : <CircleAlert size={14} aria-hidden="true" className="mt-[3px] shrink-0 text-danger" />}+ <span data-boat-account className="min-w-0 break-words">{connected? status.account ? t("boatSignIn.signedInAs", { account: status.account }) : t("boatSignIn.signedIn"): t("boatSignIn.ended")}</span></span>- <button type="button" data-boat-disconnect data-danger="" className="settings-quiet shrink-0 cursor-pointer" disabled={busy !== null}+ <button type="button" data-boat-disconnect data-danger="" className={QUIET} disabled={busy !== null}onClick={() => run("disconnecting", disconnectBoat, null)}>{busy === "disconnecting" ? t("boatSignIn.disconnecting") : t("boatSignIn.disconnect")}</button>@@ -85,7 +88,7 @@ export function BoatSignIn({ status, fieldShown, onConnected }: { status: BoatSi{status.pending && (<><button type="button" className="cursor-pointer text-accent-text hover:underline" disabled={busy !== null} onClick={start}>{t("boatSignIn.openAgain")}</button>- <button type="button" data-boat-cancel className="settings-quiet cursor-pointer" disabled={busy !== null} onClick={() => run("cancelling", cancelBoatSignIn, null)}>{t("common.cancel")}</button>+ <button type="button" data-boat-cancel className={QUIET} disabled={busy !== null} onClick={() => run("cancelling", cancelBoatSignIn, null)}>{t("common.cancel")}</button></>)}</div>