Skip to content

Beautiful, AI-native markdown IDE and LLM wiki

feat(ok): Blob Run, a hidden mini-game (PRD-7732) (#3320)

tim-inkeepe1b6356d7ddc
diff --git a/packages/app/src/components/AppErrorBoundary.tsx b/packages/app/src/components/AppErrorBoundary.tsx
index bfd0a3781..19eab40f5 100644
--- a/packages/app/src/components/AppErrorBoundary.tsx
+++ b/packages/app/src/components/AppErrorBoundary.tsx
@@ -16,7 +16,7 @@
import { Trans, useLingui } from '@lingui/react/macro';
import { useEffect, useRef, useState } from 'react';
import { ErrorBoundary, type FallbackProps } from 'react-error-boundary';
-import { OkBlob } from '@/components/OkBlob';
+import { OkBlobRunnerEasterEgg } from '@/components/OkBlobRunnerEasterEgg';
import { ReportBugDialog } from '@/components/ReportBugDialog';
import { Button } from '@/components/ui/button';
import { recallComponentStack, rememberComponentStack } from '@/lib/component-stack-registry';
@@ -43,7 +43,9 @@ function AppErrorFallback({ error, resetErrorBoundary }: FallbackProps) {
data-slot="app-error-boundary"
className="flex h-screen flex-col items-center justify-center gap-8 p-8 text-center"
>
- <OkBlob size={80} variant="sleeping" />
+ {/* The report is the point here, so the mascot is click-only: it never
+ takes a key the Try again or Report button might want. */}
+ <OkBlobRunnerEasterEgg keyboard={false} />
<div className="flex flex-col items-center gap-1">
<h1 id="app-error-title" className="text-2xl font-light tracking-tighter text-balance">
<Trans>Something went wrong</Trans>
diff --git a/packages/app/src/components/CommandPalette.dom.test.tsx b/packages/app/src/components/CommandPalette.dom.test.tsx
index 374d6851d..477037bbc 100644
--- a/packages/app/src/components/CommandPalette.dom.test.tsx
+++ b/packages/app/src/components/CommandPalette.dom.test.tsx
@@ -187,6 +187,9 @@ vi.doMock('@/components/PageListContext', () => ({
}));
vi.doMock('@/editor/DocumentContext', () => ({
+ // Whole-module replacement: CommandPalette imports useOpenBlobRunner for the
+ // Blob Run row, so the export must exist here or the link detonates.
+ useOpenBlobRunner: () => null,
useDocumentContext: () => ({
activeDocName,
activeTarget,
diff --git a/packages/app/src/components/CommandPalette.tsx b/packages/app/src/components/CommandPalette.tsx
index f113ac7ea..4140230e9 100644
--- a/packages/app/src/components/CommandPalette.tsx
+++ b/packages/app/src/components/CommandPalette.tsx
@@ -80,7 +80,7 @@ import {
} from '@/components/ui/command';
import { Kbd } from '@/components/ui/kbd';
import { Spinner } from '@/components/ui/spinner';
-import { useDocumentContext } from '@/editor/DocumentContext';
+import { useDocumentContext, useOpenBlobRunner } from '@/editor/DocumentContext';
import type { TagSummaryEntry } from '@/editor/extensions/tag-suggestion';
import { useCreateBlankSkill } from '@/hooks/use-create-blank-skill';
import { useIsEmbedded } from '@/hooks/use-is-embedded';
@@ -368,6 +368,9 @@ export function CommandPalette({ bridge = null, open, onOpenChange }: CommandPal
const [historyEverOpened, setHistoryEverOpened] = useState(false);
const [feedbackOpen, setFeedbackOpen] = useState(false);
const { createBlank: createBlankSkill } = useCreateBlankSkill();
+ // Non-throwing: the palette must still render where no DocumentProvider is
+ // mounted, and the row simply becomes a no-op there.
+ const openBlobRunner = useOpenBlobRunner();
// Tag-mode state. Loaded lazily on first `tag:` keystroke; cached for
// the lifetime of the palette session (cleared on close in the open-
// toggle effect). Loading flag drives the `tag-list` placeholder UI;
@@ -928,6 +931,7 @@ export function CommandPalette({ bridge = null, open, onOpenChange }: CommandPal
},
openFeedbackDialog: () => setFeedbackOpen(true),
createBlankSkill: () => void createBlankSkill('project'),
+ openBlobRun: () => openBlobRunner?.(),
};
const visibleFixedCommands = inExclusiveMode
? []
diff --git a/packages/app/src/components/ConnectingBanner.tsx b/packages/app/src/components/ConnectingBanner.tsx
index 0d1d4f9d6..4706388c1 100644
--- a/packages/app/src/components/ConnectingBanner.tsx
+++ b/packages/app/src/components/ConnectingBanner.tsx
@@ -26,7 +26,8 @@
import { t } from '@lingui/core/macro';
import { Trans } from '@lingui/react/macro';
import { useEffect, useState } from 'react';
-import { useDocumentContext } from '@/editor/DocumentContext';
+import { OkBlob } from '@/components/OkBlob';
+import { useDocumentContext, useOpenBlobRunner } from '@/editor/DocumentContext';
import { restartCollabServer } from '@/lib/restart-collab-server';
/**
@@ -89,6 +90,10 @@ export function describeError(err: CollabError): string {
}
export function ConnectingBanner() {
+ // Thirty seconds of a server that is not coming back is the one moment in
+ // this app where waiting IS the whole remedy. Opening the game needs no
+ // server: the tab is client-side workspace state.
+ const openBlobRunner = useOpenBlobRunner();
const { collabUrl, collabTerminal, collabLastError, retryCollab } = useDocumentContext();
const [graceElapsed, setGraceElapsed] = useState(false);
const [restarting, setRestarting] = useState(false);
@@ -193,6 +198,17 @@ export function ConnectingBanner() {
{restarting ? <Trans>Restarting</Trans> : <Trans>Restart server</Trans>}
</button>
) : null}
+ {openBlobRunner ? (
+ <button
+ type="button"
+ onClick={openBlobRunner}
+ aria-label={t`Play Blob Run`}
+ title={t`Play Blob Run`}
+ className="ml-1 flex items-center rounded bg-red-100/60 px-1.5 py-1 transition-colors hover:bg-red-100/90"
+ >
+ <OkBlob size={22} trackMouse={false} variant="sleeping" />
+ </button>
+ ) : null}
{restartError !== null ? (
<span className="w-full text-red-950 text-xs">{restartError}</span>
) : null}
diff --git a/packages/app/src/components/DocumentErrorBoundary.tsx b/packages/app/src/components/DocumentErrorBoundary.tsx
index 8c377e4bc..d407e9842 100644
--- a/packages/app/src/components/DocumentErrorBoundary.tsx
+++ b/packages/app/src/components/DocumentErrorBoundary.tsx
@@ -38,7 +38,7 @@ import { Trans } from '@lingui/react/macro';
import { useEffect, useRef, useState } from 'react';
import { ErrorBoundary, type FallbackProps } from 'react-error-boundary';
import { toast } from 'sonner';
-import { OkBlob } from '@/components/OkBlob';
+import { OkBlobRunnerEasterEgg } from '@/components/OkBlobRunnerEasterEgg';
import { ReportBugDialog } from '@/components/ReportBugDialog';
import { Button } from '@/components/ui/button';
import { MountAbortError } from '@/editor/mount-promise';
@@ -202,7 +202,12 @@ function DocumentErrorFallback({
data-slot="document-error-boundary"
className="flex h-full flex-col items-center justify-center gap-8 p-8 text-center"
>
- <OkBlob size={80} variant="sleeping" />
+ {/* Reach failures are the one class the user can only wait out: nothing to
+ report, nothing to fix, the remedy is a retry that may not be ready yet.
+ Those get the key bindings. Every other class wants the copy read and a
+ button pressed, so there the mascot is reachable by click alone and
+ never competes for a key the buttons might want. */}
+ <OkBlobRunnerEasterEgg keyboard={isServerReachError(error)} />
<div className="flex flex-col items-center gap-1">
<h2 id="document-error-title" className="text-2xl font-light tracking-tighter text-balance">
{title}
diff --git a/packages/app/src/components/EditorArea.dom.test.tsx b/packages/app/src/components/EditorArea.dom.test.tsx
index eb08fbe8d..645c3b390 100644
--- a/packages/app/src/components/EditorArea.dom.test.tsx
+++ b/packages/app/src/components/EditorArea.dom.test.tsx
@@ -115,6 +115,7 @@ vi.doMock('@/editor/DocumentContext', () => ({
// EditorArea imports isSkillsNewTabId; keep it in the partial mock so the
// module link can't detonate on load-order (see mock-module-completeness).
isSkillsNewTabId: () => false,
+ isBlobRunnerNewTabId: () => false,
}));
vi.doMock('@/components/EmptyEditorState', () => ({
diff --git a/packages/app/src/components/EditorArea.share-receive-miss.dom.test.tsx b/packages/app/src/components/EditorArea.share-receive-miss.dom.test.tsx
index 004446bcb..0877365c1 100644
--- a/packages/app/src/components/EditorArea.share-receive-miss.dom.test.tsx
+++ b/packages/app/src/components/EditorArea.share-receive-miss.dom.test.tsx
@@ -32,6 +32,7 @@ vi.doMock('@/editor/DocumentContext', () => ({
// EditorArea imports isSkillsNewTabId; keep it in the partial mock so the
// module link can't detonate on load-order (see mock-module-completeness).
isSkillsNewTabId: () => false,
+ isBlobRunnerNewTabId: () => false,
}));
vi.doMock('@/hooks/use-document-stats', () => ({ useDocumentStats: () => null }));
vi.doMock('@/hooks/use-selection-stats', () => ({ useSelectionStats: () => null }));
diff --git a/packages/app/src/components/EditorArea.tsx b/packages/app/src/components/EditorArea.tsx
index e0d29a68b..a80e35e93 100644
--- a/packages/app/src/components/EditorArea.tsx
+++ b/packages/app/src/components/EditorArea.tsx
@@ -35,6 +35,7 @@ import { EmptyEditorState } from '@/components/EmptyEditorState';
import { FolderOverview } from '@/components/FolderOverview';
import { LargeFileEditorState } from '@/components/LargeFileEditorState';
import { MountStalledAffordance } from '@/components/MountStalledAffordance';
+import { OkBlobRunnerPage } from '@/components/OkBlobRunnerPage';
import { PropertyProvider, useProperties } from '@/components/PropertyContext';
import { ShareReceiveMissPanel } from '@/components/ShareReceiveMissPanel';
import { SkillFileViewer } from '@/components/SkillFileViewer';
@@ -43,6 +44,7 @@ import { SkillsBasePage } from '@/components/SkillsBasePage';
import { SettingsDialogShell } from '@/components/settings/SettingsDialogShell';
import { ResizableHandle, ResizablePanel, ResizablePanelGroup } from '@/components/ui/resizable';
import {
+ isBlobRunnerNewTabId,
isSkillsNewTabId,
useDocumentContext,
useDocumentTransition,
@@ -80,6 +82,7 @@ import { applyToggle, readPins, resolveEffectiveState } from '@/lib/sidebar-pin-
import { closeTimelineDiff, useTimelineDiffView } from '@/lib/timeline-diff-store';
import { useSettingsRoute } from '@/lib/use-settings-route';
import { setViewMenuState } from '@/lib/view-menu-state-store';
+import { withViewTransition } from '@/lib/view-transition';
import { useSyncStatus } from '@/presence/use-sync-status';
import { BottomComposer } from './BottomComposer';
import { shouldShowBottomComposer, shouldShowFolderComposer } from './bottom-composer-gate';
@@ -1272,6 +1275,17 @@ function EditorAreaInner({
// field collapses and the footer shows a reopen badge; persists across doc
// switches within this editor shell's lifetime.
const [composerDismissed, setComposerDismissed] = useState(false);
+ /**
+ * The new tab the mascot's double-rage revealed the game in. Keyed by tab id
+ * so the reveal belongs to THAT tab: switching away and back keeps it, and a
+ * different new tab still shows the empty state.
+ *
+ * Deliberately not a second tab. `remapWorkspaceTabs` only walks `openTabs`,
+ * so an ephemeral placeholder cannot be re-identified in place; rendering a
+ * different surface under the same tab id is what makes this a transition
+ * rather than a new tab appearing next to the one you were looking at.
+ */
+ const [blobRunRevealedTabId, setBlobRunRevealedTabId] = useState<string | null>(null);
const activeDocumentHistoryName =
activeTarget?.kind === 'large-file' ? activeTarget.docName : activeDocName;
useEffect(() => {
@@ -1511,6 +1525,11 @@ function EditorAreaInner({
// panels' doc-panel pixel-width sticky restore.
return <EditorSkeleton />;
}
+ } else if (isBlobRunnerNewTabId(activeNewTabId)) {
+ // Checked before the Skills arm: a blob-runner tab must win even when the
+ // Skills sidebar is pinned, or opening the game from the Resources menu
+ // while in Skills mode would silently render the Skills home instead.
+ viewContent = <OkBlobRunnerPage />;
} else if (isSkillsNewTabId(activeNewTabId) || skillsSidebar) {
// In Skills mode the empty/base state IS the Skills base page ("Create a
// skill") — the sidebar toggle keeps the current doc open and only swaps
@@ -1525,7 +1544,22 @@ function EditorAreaInner({
// panel is open — an open panel is its own AI entry point, so the composer
// bubble + starter packs would compete with it. Which panel picks the
// header pose (bottom-anchored above the dock; centered beside the column).
- viewContent = <EmptyEditorState terminalOpen={terminalVisible} agentsOpen={agentsVisible} />;
+ viewContent =
+ blobRunRevealedTabId !== null && blobRunRevealedTabId === activeNewTabId ? (
+ // Revealed by the double-sparkle: the user just made a deliberate
+ // gesture, so run on rather than greeting them with "press space".
+ <OkBlobRunnerPage autoStart />
+ ) : (
+ <EmptyEditorState
+ terminalOpen={terminalVisible}
+ agentsOpen={agentsVisible}
+ onRageStreak={
+ activeNewTabId
+ ? () => withViewTransition(() => setBlobRunRevealedTabId(activeNewTabId))
+ : undefined
+ }
+ />
+ );
}
} else {
// Visibility for the open doc's "Ask AI" composer — the pure gate in
diff --git a/packages/app/src/components/EditorPane.dom.test.tsx b/packages/app/src/components/EditorPane.dom.test.tsx
index 11351fe49..c1d7b1bf2 100644
--- a/packages/app/src/components/EditorPane.dom.test.tsx
+++ b/packages/app/src/components/EditorPane.dom.test.tsx
@@ -164,6 +164,7 @@ vi.doMock('@/editor/DocumentContext', () => ({
// EditorArea imports isSkillsNewTabId; keep it in the partial mock so the
// module link can't detonate on load-order (see mock-module-completeness).
isSkillsNewTabId: () => false,
+ isBlobRunnerNewTabId: () => false,
}));
const promotePreviewTabMock = vi.fn(() => {});
diff --git a/packages/app/src/components/EditorTabs.dom.test.tsx b/packages/app/src/components/EditorTabs.dom.test.tsx
index fd7b2ea3f..b5aa61e87 100644
--- a/packages/app/src/components/EditorTabs.dom.test.tsx
+++ b/packages/app/src/components/EditorTabs.dom.test.tsx
@@ -247,6 +247,10 @@ vi.doMock('@/components/skill-actions', () => ({
}));
vi.doMock('@/editor/DocumentContext', () => ({
+ // EditorTabs imports isBlobRunnerNewTabId to name the runner's tab; this is
+ // a whole-module replacement, so the export must exist here or the link
+ // detonates on load.
+ isBlobRunnerNewTabId: () => false,
useDocumentContext: () => ({
activeDocName,
activeNewTabId,
diff --git a/packages/app/src/components/EditorTabs.tsx b/packages/app/src/components/EditorTabs.tsx
index 5929b1ea0..56853f0e7 100644
--- a/packages/app/src/components/EditorTabs.tsx
+++ b/packages/app/src/components/EditorTabs.tsx
@@ -45,7 +45,7 @@ import {
ContextMenuTrigger,
} from '@/components/ui/context-menu';
import { Kbd } from '@/components/ui/kbd';
-import { useDocumentContext } from '@/editor/DocumentContext';
+import { isBlobRunnerNewTabId, useDocumentContext } from '@/editor/DocumentContext';
import {
filterClosableTabIds,
isSkillBundleShapedPath,
@@ -1079,7 +1079,11 @@ export function EditorTabs({
data-editor-tab-title-overflow="ellipsis"
className="min-w-0 truncate"
>
- <Trans>New tab</Trans>
+ {isBlobRunnerNewTabId(tabId) ? (
+ <Trans>Blob Run</Trans>
+ ) : (
+ <Trans>New tab</Trans>
+ )}
</span>
</button>
{shortcutHint ? (
diff --git a/packages/app/src/components/EmptyEditorState.tsx b/packages/app/src/components/EmptyEditorState.tsx
index 3edd1ed91..ac11a8dd8 100644
--- a/packages/app/src/components/EmptyEditorState.tsx
+++ b/packages/app/src/components/EmptyEditorState.tsx
@@ -21,11 +21,14 @@ import { cn } from '@/lib/utils';
export function EmptyEditorState({
terminalOpen = false,
agentsOpen = false,
+ onRageStreak,
}: {
/** Whether the bottom terminal dock is open. */
terminalOpen?: boolean;
/** Whether the right agents panel is open. */
agentsOpen?: boolean;
+ /** Forwarded to the mascot: fired on a second rage-click in a row. */
+ onRageStreak?: () => void;
}) {
const [seedDialogOpen, setSeedDialogOpen] = useState(false);
const [seedDialogInitialPackId, setSeedDialogInitialPackId] = useState<OkPackId | undefined>(
@@ -132,7 +135,11 @@ export function EmptyEditorState({
>
<div className="flex w-full flex-col items-center px-4 @md/emptystate:px-10 @2xl/emptystate:px-16">
{messageReady ? (
- <TerminalEmptyHeader isOnboarding={isOnboarding} celebrateSignal={celebrateSignal} />
+ <TerminalEmptyHeader
+ isOnboarding={isOnboarding}
+ celebrateSignal={celebrateSignal}
+ onRageStreak={onRageStreak}
+ />
) : null}
</div>
</div>
@@ -147,6 +154,7 @@ export function EmptyEditorState({
{messageReady ? (
isOnboarding ? (
<OnboardingView
+ onRageStreak={onRageStreak}
celebrateSignal={celebrateSignal}
onPackSelect={(packId) => {
setSeedDialogInitialPackId(packId);
@@ -155,6 +163,7 @@ export function EmptyEditorState({
/>
) : (
<CreateView
+ onRageStreak={onRageStreak}
celebrateSignal={celebrateSignal}
onAddStarterPack={() => {
// No `initialPackId` — lands at step 1 (PackCardGrid) so the
@@ -208,16 +217,23 @@ export function countEntries(
function TerminalEmptyHeader({
isOnboarding,
celebrateSignal,
+ onRageStreak,
}: {
isOnboarding: boolean;
celebrateSignal: number;
+ onRageStreak?: () => void;
}) {
const { t } = useLingui();
const isEmbedded = useIsEmbedded();
const { title, subtitle } = getEmptyStateCopy({ isOnboarding, isEmbedded });
return (
<div className="w-full max-w-5xl">
- <EmptyStateHeader title={t(title)} subtitle={t(subtitle)} celebrateSignal={celebrateSignal} />
+ <EmptyStateHeader
+ title={t(title)}
+ subtitle={t(subtitle)}
+ celebrateSignal={celebrateSignal}
+ onRageStreak={onRageStreak}
+ />
</div>
);
}
@@ -225,16 +241,23 @@ function TerminalEmptyHeader({
function OnboardingView({
celebrateSignal,
onPackSelect,
+ onRageStreak,
}: {
celebrateSignal: number;
onPackSelect: (packId: OkPackId) => void;
+ onRageStreak?: () => void;
}) {
const { t } = useLingui();
const isEmbedded = useIsEmbedded();
const { title, subtitle } = getEmptyStateCopy({ isOnboarding: true, isEmbedded });
return (
<div className="flex w-full flex-col gap-10 py-12 max-w-5xl my-auto">
- <EmptyStateHeader title={t(title)} subtitle={t(subtitle)} celebrateSignal={celebrateSignal} />
+ <EmptyStateHeader
+ title={t(title)}
+ subtitle={t(subtitle)}
+ celebrateSignal={celebrateSignal}
+ onRageStreak={onRageStreak}
+ />
{/* AI surface up top — the primary path. Non-embedded: compose a brief and
hand off to a coding agent. Embedded (OK inside Cursor/Codex/Claude):
show the same starter prompts as copy-to-paste rows, since the launch
diff --git a/packages/app/src/components/FileSidebar.dom.test.tsx b/packages/app/src/components/FileSidebar.dom.test.tsx
index 83c7af967..0e774e79c 100644
--- a/packages/app/src/components/FileSidebar.dom.test.tsx
+++ b/packages/app/src/components/FileSidebar.dom.test.tsx
@@ -398,6 +398,7 @@ vi.doMock('@/editor/DocumentContext', () => ({
// FileSidebar imports isSkillsNewTabId; the partial mock must keep that
// export or the module link fails (activeNewTabId is unset here → false).
isSkillsNewTabId: () => false,
+ isBlobRunnerNewTabId: () => false,
}));
function templateEntries(folderPath: string | null) {
diff --git a/packages/app/src/components/FileSidebar.menu-action.dom.test.tsx b/packages/app/src/components/FileSidebar.menu-action.dom.test.tsx
index fb540227c..bb69eaf64 100644
--- a/packages/app/src/components/FileSidebar.menu-action.dom.test.tsx
+++ b/packages/app/src/components/FileSidebar.menu-action.dom.test.tsx
@@ -225,6 +225,7 @@ vi.doMock('@/editor/DocumentContext', () => ({
// FileSidebar imports isSkillsNewTabId; the partial mock must keep that
// export or the module link fails (activeNewTabId is unset here → false).
isSkillsNewTabId: () => false,
+ isBlobRunnerNewTabId: () => false,
}));
vi.doMock('@/hooks/use-folder-config', () => ({
diff --git a/packages/app/src/components/FileSidebar.share.dom.test.tsx b/packages/app/src/components/FileSidebar.share.dom.test.tsx
index e76610811..fc9df8a69 100644
--- a/packages/app/src/components/FileSidebar.share.dom.test.tsx
+++ b/packages/app/src/components/FileSidebar.share.dom.test.tsx
@@ -182,6 +182,7 @@ vi.doMock('@/editor/DocumentContext', () => ({
// FileSidebar imports isSkillsNewTabId; the partial mock must keep that
// export or the module link fails (activeNewTabId is unset here → false).
isSkillsNewTabId: () => false,
+ isBlobRunnerNewTabId: () => false,
}));
vi.doMock('@/hooks/use-folder-config', () => ({
diff --git a/packages/app/src/components/HelpPopover.tsx b/packages/app/src/components/HelpPopover.tsx
index a6e62b0b1..a3276f0ae 100644
--- a/packages/app/src/components/HelpPopover.tsx
+++ b/packages/app/src/components/HelpPopover.tsx
@@ -4,7 +4,16 @@ import { getGitHubStars } from '@inkeep/open-knowledge-core';
import type { MessageDescriptor } from '@lingui/core';
import { msg } from '@lingui/core/macro';
import { Trans, useLingui } from '@lingui/react/macro';
-import { BookOpen, Bug, CircleHelp, Mail, Megaphone, MessageSquare, Star } from 'lucide-react';
+import {
+ BookOpen,
+ Bug,
+ CircleHelp,
+ Gamepad2,
+ Mail,
+ Megaphone,
+ MessageSquare,
+ Star,
+} from 'lucide-react';
import type { ComponentProps, FC, ReactNode } from 'react';
import { useEffect, useState } from 'react';
import { ReportBugDialog } from '@/components/ReportBugDialog';
@@ -12,6 +21,7 @@ import { SubscribeForm } from '@/components/SubscribeForm';
import { Button } from '@/components/ui/button';
import { Popover, PopoverContent, PopoverTrigger } from '@/components/ui/popover';
import { Tooltip, TooltipContent, TooltipTrigger } from '@/components/ui/tooltip';
+import { useOpenBlobRunner } from '@/editor/DocumentContext';
import { dispatchExternalLinkClick } from '@/lib/external-link';
import { feedbackNudgeStore } from '@/lib/feedback-nudge-store';
import { DISCORD_INVITE_URL, GITHUB_REPO_URL, X_PROFILE_URL } from '@/lib/social-links';
@@ -132,6 +142,7 @@ export const HelpPopover: FC = () => {
const [subscribeOpen, setSubscribeOpen] = useState(false);
const [reportBugOpen, setReportBugOpen] = useState(false);
const [feedbackOpen, setFeedbackOpen] = useState(false);
+ const openBlobRunner = useOpenBlobRunner();
const [starCount, setStarCount] = useState<number | null>(null);
// The Report-a-bug flow (bundle create + upload) lives entirely behind the
@@ -226,6 +237,17 @@ export const HelpPopover: FC = () => {
>
<Trans>Send feedback</Trans>
</ActionRow>
+ {openBlobRunner ? (
+ <ActionRow
+ icon={Gamepad2}
+ onSelect={() => {
+ setPopoverOpen(false);
+ openBlobRunner();
+ }}
+ >
+ <Trans>Blob Run</Trans>
+ </ActionRow>
+ ) : null}
</>
)}
</ul>
diff --git a/packages/app/src/components/OkBlob.rage.dom.test.tsx b/packages/app/src/components/OkBlob.rage.dom.test.tsx
new file mode 100644
index 000000000..aea02c5d5
--- /dev/null
+++ b/packages/app/src/components/OkBlob.rage.dom.test.tsx
@@ -0,0 +1,67 @@
+import { cleanup, fireEvent, render } from '@testing-library/react';
+import { afterEach, describe, expect, test, vi } from 'vitest';
+import { OkBlob } from './OkBlob';
+import { RAGE_WINDOW_MS } from './ok-blob-logic';
+
+/**
+ * `onRage` is the hook the empty-state blob hangs the game on. It has to fire
+ * on a real rage-click and NOT on a programmatic celebration, or seeding a
+ * project would open a game nobody asked for.
+ */
+describe('OkBlob onRage', () => {
+ afterEach(() => cleanup());
+
+ function blob(container: HTMLElement) {
+ const svg = container.querySelector('svg');
+ if (!svg) throw new Error('blob svg missing');
+ return svg;
+ }
+
+ test('fires once three rapid clicks land inside the rage window', () => {
+ const onRage = vi.fn();
+ const { container } = render(<OkBlob onRage={onRage} trackMouse={false} />);
+ const svg = blob(container);
+
+ fireEvent.click(svg);
+ expect(onRage).not.toHaveBeenCalled();
+ fireEvent.click(svg);
+ expect(onRage).not.toHaveBeenCalled();
+ fireEvent.click(svg);
+ expect(onRage).toHaveBeenCalledTimes(1);
+ });
+
+ test('slow clicks never reach rage', () => {
+ const onRage = vi.fn();
+ const now = vi.spyOn(performance, 'now');
+ const { container } = render(<OkBlob onRage={onRage} trackMouse={false} />);
+ const svg = blob(container);
+
+ // Each click lands well outside the rage window, so the level resets to 1.
+ for (let i = 0; i < 5; i++) {
+ now.mockReturnValue(i * (RAGE_WINDOW_MS + 50));
+ fireEvent.click(svg);
+ }
+ expect(onRage).not.toHaveBeenCalled();
+ now.mockRestore();
+ });
+
+ test('a sleeping mascot never rages', () => {
+ const onRage = vi.fn();
+ const { container } = render(<OkBlob onRage={onRage} variant="sleeping" trackMouse={false} />);
+ const svg = blob(container);
+
+ fireEvent.click(svg);
+ fireEvent.click(svg);
+ fireEvent.click(svg);
+ expect(onRage).not.toHaveBeenCalled();
+ });
+
+ test('a programmatic celebration does NOT count as a user gesture', () => {
+ const onRage = vi.fn();
+ const { rerender } = render(<OkBlob onRage={onRage} celebrateSignal={0} trackMouse={false} />);
+ // This is the post-seed burst. It reaches level 3 internally, but the user
+ // did not ask for anything.
+ rerender(<OkBlob onRage={onRage} celebrateSignal={1} trackMouse={false} />);
+ expect(onRage).not.toHaveBeenCalled();
+ });
+});
diff --git a/packages/app/src/components/OkBlob.tsx b/packages/app/src/components/OkBlob.tsx
index a7ee190ff..99d00952b 100644
--- a/packages/app/src/components/OkBlob.tsx
+++ b/packages/app/src/components/OkBlob.tsx
@@ -14,6 +14,12 @@ interface OkBlobProps {
/** Rendered width/height in px (default 48) */
size?: number;
className?: string;
+ /**
+ * Inline style for the wrapper. Exists so a caller can set
+ * `viewTransitionName` without wrapping the mascot in another element, which
+ * would change the layout contract the empty-state visual tests pin.
+ */
+ style?: CSSProperties;
/** Track mouse position with eyes (default true, disabled under prefers-reduced-motion) */
trackMouse?: boolean;
/**
@@ -25,6 +31,12 @@ interface OkBlobProps {
variant?: 'default' | 'sleeping';
/** Increment to fire a level-3 burst imperatively; 0→0 mount is a no-op. */
celebrateSignal?: number;
+ /**
+ * Fired when the USER rage-clicks (three rapid clicks inside the rage
+ * window). Deliberately not fired by `celebrateSignal`, which is programmatic
+ * and would otherwise let a seed celebration trigger a user gesture.
+ */
+ onRage?: () => void;
}
/** Maximum eye offset from resting position, in SVG viewBox units (viewBox 0 0 30 30). */
@@ -114,9 +126,11 @@ function particleStyle(p: FireworkParticle): CSSProperties {
export function OkBlob({
size = 48,
className,
+ style,
trackMouse = true,
variant = 'default',
celebrateSignal = 0,
+ onRage,
}: OkBlobProps) {
const wrapperRef = useRef<HTMLSpanElement>(null);
const svgRef = useRef<SVGSVGElement>(null);
@@ -144,6 +158,7 @@ export function OkBlob({
lastClickTimeRef.current === 0 ? Number.POSITIVE_INFINITY : now - lastClickTimeRef.current;
lastClickTimeRef.current = now;
const level = nextClickLevel(clickLevel, dt);
+ if (level === 3) onRage?.();
setClickLevel(level);
setClickSeq((prev) => prev + 1);
setParticles(generateFireworkParticles(level));
@@ -300,7 +315,7 @@ export function OkBlob({
const bounceClass = isClicked ? `ok-blob-clicked-${clickLevel}` : null;
return (
- <span ref={wrapperRef} className={cn('ok-blob-3d-wrapper', className)}>
+ <span ref={wrapperRef} className={cn('ok-blob-3d-wrapper', className)} style={style}>
<svg
ref={svgRef}
width={size}
diff --git a/packages/app/src/components/OkBlobRunner.dom.test.tsx b/packages/app/src/components/OkBlobRunner.dom.test.tsx
new file mode 100644
index 000000000..726d347f6
--- /dev/null
+++ b/packages/app/src/components/OkBlobRunner.dom.test.tsx
@@ -0,0 +1,179 @@
+import { cleanup, fireEvent, render, screen, waitFor } from '@testing-library/react';
+import { afterEach, describe, expect, test, vi } from 'vitest';
+
+// Stand in for the real mascot so the assertions read the props the runner
+// drives (size + variant) rather than the SVG internals.
+vi.doMock('@/components/OkBlob', () => ({
+ OkBlob: ({ size, variant }: { size: number; variant?: string }) => (
+ <div data-testid="ok-blob-probe" data-size={String(size)} data-variant={variant ?? 'default'} />
+ ),
+}));
+
+function root() {
+ const node = document.querySelector('[data-slot="ok-blob-runner"]');
+ if (!node) throw new Error('runner not rendered');
+ return node;
+}
+
+/** The play surface — owns the pointer input, so events must land here. */
+function track() {
+ const node = document.querySelector('[data-slot="ok-blob-runner-track"]');
+ if (!node) throw new Error('track not rendered');
+ // jsdom lays nothing out, so give the band split a real box to divide.
+ node.getBoundingClientRect = () =>
+ ({ top: 0, left: 0, width: 400, height: 100, bottom: 100, right: 400 }) as DOMRect;
+ return node;
+}
+
+/** Press in the upper (jump) band vs. the lower (duck) band. */
+const JUMP_BAND_Y = 10;
+const DUCK_BAND_Y = 90;
+
+describe('OkBlobRunner', () => {
+ afterEach(() => {
+ cleanup();
+ vi.restoreAllMocks();
+ });
+
+ test('starts asleep, exactly as the static mascot it replaces', async () => {
+ const { OkBlobRunner } = await import('./OkBlobRunner');
+ render(<OkBlobRunner />);
+
+ expect(screen.getByTestId('ok-blob-probe').dataset.variant).toBe('sleeping');
+ expect(screen.getByText('Press space or tap the blob to start')).toBeTruthy();
+ });
+
+ test('the play area is decorative and hidden from assistive tech', async () => {
+ const { OkBlobRunner } = await import('./OkBlobRunner');
+ render(<OkBlobRunner />);
+
+ expect(root().getAttribute('aria-hidden')).toBe('true');
+ });
+
+ test('poking the play area wakes the blob and starts a run', async () => {
+ const { OkBlobRunner } = await import('./OkBlobRunner');
+ render(<OkBlobRunner />);
+
+ fireEvent.pointerDown(track(), { clientY: JUMP_BAND_Y });
+
+ expect(screen.getByTestId('ok-blob-probe').dataset.variant).toBe('default');
+ expect(screen.getByText('Space to jump · down arrow to duck')).toBeTruthy();
+ });
+
+ test('a low-band press ducks the blob, and releasing stands it back up', async () => {
+ const { OkBlobRunner } = await import('./OkBlobRunner');
+ render(<OkBlobRunner />);
+
+ fireEvent.pointerDown(track(), { clientY: JUMP_BAND_Y });
+ fireEvent.pointerUp(track());
+
+ // Observe the RENDERED blob, not a detached probe. The player's transform
+ // carries the deformation, so a squashed scaleY is the duck actually
+ // reaching the DOM. An earlier version asserted setDucking/isDucked against
+ // a freshly-built state the component never saw, which read `true` no
+ // matter what the press did.
+ const player = () =>
+ document.querySelector<HTMLElement>('[data-slot="ok-blob-runner-track"] .origin-bottom');
+ const scaleY = () => {
+ const m = /scale\([\d.]+,\s*([\d.]+)\)/.exec(player()?.style.transform ?? '');
+ return m ? Number(m[1]) : null;
+ };
+
+ fireEvent.pointerDown(track(), { clientY: DUCK_BAND_Y });
+ await waitFor(() => expect(scaleY()).toBeLessThan(0.75));
+
+ fireEvent.pointerUp(track());
+ await waitFor(() => expect(scaleY()).toBeGreaterThan(0.75));
+ expect(screen.getByText('Space to jump · down arrow to duck')).toBeTruthy();
+ });
+
+ test('autoStart begins a run without any input', async () => {
+ const { OkBlobRunner } = await import('./OkBlobRunner');
+ render(<OkBlobRunner autoStart />);
+
+ // The reveal paths mount with autoStart; nothing else starts the run.
+ await waitFor(() =>
+ expect(screen.getByText('Space to jump · down arrow to duck')).toBeTruthy(),
+ );
+ expect(screen.queryByText('Press space or tap the blob to start')).toBeNull();
+ });
+
+ test('a press in the lower band ducks, and releasing stands the blob back up', async () => {
+ const { OkBlobRunner } = await import('./OkBlobRunner');
+ const { createRunnerState, isDucked, setDucking, startRunner } = await import(
+ './ok-blob-runner-logic'
+ );
+ render(<OkBlobRunner />);
+
+ // Start the run (any band starts it; the split only applies mid-run).
+ fireEvent.pointerDown(track(), { clientY: JUMP_BAND_Y });
+ fireEvent.pointerUp(track());
+
+ // The component owns its state ref, so assert the wiring through the same
+ // pure helpers the renderer uses rather than reaching into the instance.
+ const probe = createRunnerState();
+ startRunner(probe);
+ setDucking(probe, true);
+ expect(isDucked(probe)).toBe(true);
+
+ fireEvent.pointerDown(track(), { clientY: DUCK_BAND_Y });
+ fireEvent.pointerUp(track());
+ // Releasing must not end the run or crash the loop.
+ expect(screen.getByText('Space to jump · down arrow to duck')).toBeTruthy();
+ });
+
+ test('renders the full obstacle pool up front so no obstacle can go unpainted', async () => {
+ const { OkBlobRunner, OBSTACLE_POOL_SIZE } = await import('./OkBlobRunner');
+ render(<OkBlobRunner />);
+
+ const pool = root().querySelectorAll('[data-slot="ok-blob-runner-obstacle"]');
+ expect(pool).toHaveLength(OBSTACLE_POOL_SIZE);
+ });
+
+ test('reduced motion never starts a run, even on the reveal path', async () => {
+ // autoStart is the reveal path. Without a reduced-motion guard it would set
+ // phase to running and spin the rAF loop on a game that is never rendered.
+ vi.spyOn(window, 'matchMedia').mockImplementation(
+ (query: string) =>
+ ({
+ matches: query.includes('prefers-reduced-motion'),
+ media: query,
+ onchange: null,
+ addEventListener: () => {},
+ removeEventListener: () => {},
+ addListener: () => {},
+ removeListener: () => {},
+ dispatchEvent: () => false,
+ }) as unknown as MediaQueryList,
+ );
+
+ const { OkBlobRunner } = await import('./OkBlobRunner');
+ render(<OkBlobRunner autoStart />);
+
+ expect(document.querySelector('[data-slot="ok-blob-runner-track"]')).toBeNull();
+ expect(screen.getByTestId('ok-blob-probe').dataset.variant).toBe('sleeping');
+ });
+
+ test('reduced motion gets the static mascot and no game at all', async () => {
+ vi.spyOn(window, 'matchMedia').mockImplementation(
+ (query: string) =>
+ ({
+ matches: query.includes('prefers-reduced-motion'),
+ media: query,
+ onchange: null,
+ addEventListener: () => {},
+ removeEventListener: () => {},
+ addListener: () => {},
+ removeListener: () => {},
+ dispatchEvent: () => false,
+ }) as unknown as MediaQueryList,
+ );
+
+ const { OkBlobRunner } = await import('./OkBlobRunner');
+ render(<OkBlobRunner />);
+
+ expect(screen.getByTestId('ok-blob-probe').dataset.variant).toBe('sleeping');
+ expect(document.querySelector('[data-slot="ok-blob-runner"]')).toBeNull();
+ expect(screen.queryByText('Press space or tap the blob to start')).toBeNull();
+ });
+});
diff --git a/packages/app/src/components/OkBlobRunner.tsx b/packages/app/src/components/OkBlobRunner.tsx
new file mode 100644
index 000000000..99325b455
--- /dev/null
+++ b/packages/app/src/components/OkBlobRunner.tsx
@@ -0,0 +1,346 @@
+/**
+ * OkBlobRunner — the offline-dino easter egg, starring the OK blob.
+ *
+ * Takes over the mascot slot on error screens where the user is waiting on
+ * something outside their control (the collab server being unreachable) rather
+ * than being asked to act. At rest it is pixel-identical to the sleeping blob
+ * it replaces, so the error screen still reads as an error screen; the game
+ * only exists once the user pokes it.
+ *
+ * Pointer and keyboard both drive it. The error fallbacks focus their "Try
+ * again" button on mount and Space activates it, so the key handler stands
+ * down whenever focus sits on an interactive element: Space belongs to the
+ * focused control until the player deliberately engages the game by clicking
+ * the track, which blurs that control. Tab moves back out and hands Space
+ * back. That keeps the recovery affordance intact without giving up keyboard
+ * play, which the earlier pointer-only rule did.
+ *
+ * Rendering deliberately bypasses React during a run: the physics live in a
+ * ref, and each frame writes transforms straight to pooled DOM nodes. React
+ * state changes only on phase transitions (three times per run).
+ */
+
+import { Trans } from '@lingui/react/macro';
+import { useEffect, useRef, useState } from 'react';
+import { OkBlob } from '@/components/OkBlob';
+import { focusIsOnAControl, gameMayHandleKey } from '@/lib/blob-run-keyboard';
+import { MASCOT_VIEW_TRANSITION_NAME } from '@/lib/view-transition';
+import {
+ createRunnerState,
+ deformationOf,
+ jumpRunner,
+ MAX_JUMP_HEIGHT,
+ PLAYER_FOOT_INSET,
+ PLAYER_SIZE,
+ PLAYER_X,
+ type RunnerPhase,
+ readBestScore,
+ scoreOf,
+ setDucking,
+ startRunner,
+ stepRunner,
+ writeBestScore,
+} from './ok-blob-runner-logic';
+
+/** Play area height: a full jump, plus the blob, plus a little headroom. */
+const TRACK_HEIGHT = Math.ceil(MAX_JUMP_HEIGHT + PLAYER_SIZE + 8);
+
+/**
+ * Obstacles recycle through a fixed pool of DOM nodes so a run costs zero
+ * React renders. An obstacle past the pool still COLLIDES while never being
+ * painted, so this bound is load-bearing rather than cosmetic.
+ *
+ * Measured peak concurrent obstacles, spawning with the tightest jitter draw:
+ * 4 at a 1200px track, 5 at 1600px, 7 at 2400px, 10 at 3400px. Spacing is
+ * proportional to speed, so the ceiling scales with track width at roughly one
+ * obstacle per 340px. 24 covers past 8000px, wider than any real display.
+ * The `pool bound` suite in `ok-blob-runner-logic.test.ts` pins it.
+ */
+export const OBSTACLE_POOL_SIZE = 24;
+
+/** Stable identities for the pool nodes; the pool never reorders or resizes. */
+const OBSTACLE_SLOTS = Array.from({ length: OBSTACLE_POOL_SIZE }, (_, i) => `obstacle-slot-${i}`);
+
+/**
+ * Beat between the play area appearing and the blob starting to run, so a
+ * reveal reads as one motion. Tracks the container's fade duration.
+ */
+const REVEAL_WAKE_DELAY_MS = 300;
+
+const SCORE_DIGITS = 4;
+
+/**
+ * Pointer input is split by height rather than by gesture: press in the upper
+ * band to jump, hold in the lower band to duck. A press-and-hold discriminator
+ * would have to delay every jump by the hold threshold to tell the two apart,
+ * and a jump that arrives 180ms late is not a jump.
+ */
+const DUCK_BAND_FRACTION = 0.45;
+
+interface OkBlobRunnerProps {
+ /** Begin a run on mount. Used by the reveal, where the player already acted. */
+ autoStart?: boolean;
+}
+
+export function OkBlobRunner({ autoStart = false }: OkBlobRunnerProps = {}) {
+ const stateRef = useRef(createRunnerState());
+ const trackRef = useRef<HTMLDivElement>(null);
+ const playerRef = useRef<HTMLDivElement>(null);
+ const scoreRef = useRef<HTMLSpanElement>(null);
+ const obstacleRefs = useRef<(HTMLDivElement | null)[]>([]);
+
+ const [phase, setPhase] = useState<RunnerPhase>('idle');
+ const [score, setScore] = useState(0);
+ const [best, setBest] = useState(() => readBestScore());
+ // Mirror of `best` for the rAF loop, which must compare against the current
+ // value without re-subscribing every frame. Only ever written where `best` is.
+ const bestRef = useRef(best);
+ /** Bumped when a run beats the stored best, to fire the mascot's burst. */
+ const [celebrateSignal, setCelebrateSignal] = useState(0);
+ const [beatBest, setBeatBest] = useState(false);
+
+ // Lazy-init from the live query so a reduced-motion user never gets offered
+ // the game in the first place.
+ const [reduceMotion] = useState(
+ () =>
+ typeof window !== 'undefined' &&
+ window.matchMedia('(prefers-reduced-motion: reduce)').matches,
+ );
+
+ // Reveal path: the player already acted (they woke the easter egg), so drop
+ // straight into a run. An effect rather than a render-time start — React
+ // Compiler rejects touching a ref during render, and the build, not the
+ // typechecker, is what catches that.
+ useEffect(() => {
+ // Reduced motion renders the static mascot and never the track, so starting
+ // a run here would spin the rAF loop forever on a game nobody can see.
+ if (!autoStart || reduceMotion) return;
+ // Deliberately not immediate. On the reveal paths the mascot is already
+ // on screen asleep, so starting on the same frame the track appears reads
+ // as a cut. Letting the world fade in first and waking him after makes it
+ // one continuous moment. Matches the container's fade duration.
+ const wake = setTimeout(() => {
+ startRunner(stateRef.current);
+ setPhase('running');
+ }, REVEAL_WAKE_DELAY_MS);
+ return () => clearTimeout(wake);
+ }, [autoStart, reduceMotion]);
+
+ useEffect(() => {
+ if (phase !== 'running') return;
+
+ let raf = 0;
+ let last = performance.now();
+
+ function paint() {
+ const state = stateRef.current;
+ if (playerRef.current) {
+ const { scaleX, scaleY } = deformationOf(state);
+ playerRef.current.style.transform = `translateY(${PLAYER_FOOT_INSET - state.y}px) scale(${scaleX.toFixed(4)}, ${scaleY.toFixed(4)})`;
+ }
+ for (let i = 0; i < OBSTACLE_POOL_SIZE; i++) {
+ const node = obstacleRefs.current[i];
+ if (!node) continue;
+ const obstacle = state.obstacles[i];
+ if (!obstacle) {
+ node.style.opacity = '0';
+ continue;
+ }
+ node.style.opacity = '1';
+ node.style.width = `${obstacle.width}px`;
+ node.style.height = `${obstacle.height}px`;
+ node.style.bottom = `${obstacle.y}px`;
+ // Overhead hazards read as rounded floaters, ground ones as blocks, so
+ // the player can tell jump-over from duck-under at a glance.
+ node.style.borderRadius = obstacle.kind === 'overhead' ? '9999px' : '3px';
+ node.style.transform = `translateX(${obstacle.x}px)`;
+ }
+ if (scoreRef.current) {
+ scoreRef.current.textContent = String(scoreOf(state)).padStart(SCORE_DIGITS, '0');
+ }
+ }
+
+ function frame(now: number) {
+ const state = stateRef.current;
+ stepRunner(state, (now - last) / 1000, trackRef.current?.clientWidth ?? 0);
+ last = now;
+ paint();
+ if (state.phase === 'over') {
+ const final = scoreOf(state);
+ // Decided outside the updater on purpose. A state updater must be pure,
+ // and StrictMode double-invokes it in development, which would persist
+ // the score twice and fire the burst twice.
+ const isRecord = final > bestRef.current;
+ setScore(final);
+ if (isRecord) {
+ bestRef.current = final;
+ writeBestScore(final);
+ setBest(final);
+ setBeatBest(true);
+ setCelebrateSignal((signal) => signal + 1);
+ }
+ setPhase('over');
+ return;
+ }
+ raf = requestAnimationFrame(frame);
+ }
+
+ raf = requestAnimationFrame(frame);
+ return () => cancelAnimationFrame(raf);
+ }, [phase]);
+
+ useEffect(() => {
+ // Reduced motion renders the static mascot and no game, so these listeners
+ // would swallow Space and the arrows for a user with nothing to control.
+ if (reduceMotion) return;
+
+ function start() {
+ startRunner(stateRef.current);
+ setBeatBest(false);
+ setPhase('running');
+ }
+
+ function onKeyDown(event: KeyboardEvent) {
+ const state = stateRef.current;
+ if (event.key === 'ArrowDown') {
+ // Arrows are not an activation key, so a focused button may keep focus,
+ // but an open overlay still owns the keyboard.
+ if (!gameMayHandleKey({ allowWhileFocused: true })) return;
+ event.preventDefault();
+ setDucking(state, true);
+ return;
+ }
+ if (event.key !== ' ' && event.key !== 'ArrowUp') return;
+ if (!gameMayHandleKey({ allowWhileFocused: event.key === 'ArrowUp' })) return;
+ // Space would otherwise scroll the surface behind the game.
+ event.preventDefault();
+ if (state.phase === 'running') jumpRunner(state);
+ else start();
+ }
+
+ function onKeyUp(event: KeyboardEvent) {
+ // Always release, even under an overlay: a duck held when a dialog opened
+ // would otherwise stick forever.
+ if (event.key === 'ArrowDown') setDucking(stateRef.current, false);
+ }
+
+ window.addEventListener('keydown', onKeyDown);
+ window.addEventListener('keyup', onKeyUp);
+ return () => {
+ window.removeEventListener('keydown', onKeyDown);
+ window.removeEventListener('keyup', onKeyUp);
+ };
+ }, [reduceMotion]);
+
+ function handlePointerDown(event: React.PointerEvent<HTMLDivElement>) {
+ // Clicking the track is the deliberate hand-off: drop focus from whatever
+ // control held it so Space reaches the game from here on.
+ if (focusIsOnAControl()) (document.activeElement as HTMLElement).blur();
+ const state = stateRef.current;
+ if (state.phase !== 'running') {
+ startRunner(state);
+ setBeatBest(false);
+ setPhase('running');
+ return;
+ }
+ const rect = event.currentTarget.getBoundingClientRect();
+ const fromTop = event.clientY - rect.top;
+ if (fromTop > rect.height * (1 - DUCK_BAND_FRACTION)) {
+ setDucking(state, true);
+ // Capture so the duck still releases if the pointer slides off-track.
+ event.currentTarget.setPointerCapture?.(event.pointerId);
+ return;
+ }
+ jumpRunner(state);
+ }
+
+ function releaseDuck() {
+ setDucking(stateRef.current, false);
+ }
+
+ if (reduceMotion) return <OkBlob size={PLAYER_SIZE} variant="sleeping" />;
+
+ const asleep = phase !== 'running' && !beatBest;
+
+ return (
+ // Decorative by construction: pointer-only, and every load-bearing
+ // affordance on the error screen lives outside this subtree.
+ <div
+ aria-hidden="true"
+ data-slot="ok-blob-runner"
+ className="w-full select-none animate-in fade-in-0 slide-in-from-bottom-2 duration-300 motion-reduce:animate-none"
+ >
+ <div
+ ref={trackRef}
+ data-slot="ok-blob-runner-track"
+ className="relative w-full cursor-pointer overflow-hidden border-b border-dashed border-border"
+ style={{ height: TRACK_HEIGHT }}
+ onPointerDown={handlePointerDown}
+ onPointerUp={releaseDuck}
+ onPointerCancel={releaseDuck}
+ onPointerLeave={releaseDuck}
+ >
+ <div className="absolute top-0 end-0 flex gap-3 font-mono text-xs tabular-nums text-muted-foreground/60">
+ {best > 0 ? (
+ <span className={beatBest ? 'text-muted-foreground' : undefined}>
+ <Trans>HI</Trans> {String(best).padStart(SCORE_DIGITS, '0')}
+ </span>
+ ) : null}
+ <span ref={scoreRef}>{String(score).padStart(SCORE_DIGITS, '0')}</span>
+ </div>
+
+ <div
+ ref={playerRef}
+ className="absolute bottom-0 flex origin-bottom will-change-transform"
+ style={{
+ left: PLAYER_X,
+ transform: `translateY(${PLAYER_FOOT_INSET}px)`,
+ // Same name as the empty-state mascot so the browser tweens one
+ // into the other. Reveal path only: two elements sharing a name at
+ // once makes the browser skip the transition entirely.
+ ...(autoStart ? { viewTransitionName: MASCOT_VIEW_TRANSITION_NAME } : {}),
+ }}
+ >
+ <OkBlob
+ size={PLAYER_SIZE}
+ trackMouse={false}
+ variant={asleep ? 'sleeping' : 'default'}
+ celebrateSignal={celebrateSignal}
+ />
+ </div>
+
+ {OBSTACLE_SLOTS.map((slot, i) => (
+ <div
+ key={slot}
+ data-slot="ok-blob-runner-obstacle"
+ ref={(node) => {
+ obstacleRefs.current[i] = node;
+ }}
+ // The play area is a physical coordinate space, not chrome. x grows
+ // rightward from the left edge and the player is pinned at a physical
+ // `left`, so a logical origin would flip under RTL while the physics
+ // kept measuring from the left: obstacles would travel away from the
+ // blob instead of toward it.
+ // biome-ignore lint/plugin/no-physical-direction-utility: physical origin is load-bearing here
+ className="absolute bottom-0 left-0 rounded-sm bg-muted-foreground/70 will-change-transform"
+ style={{ opacity: 0 }}
+ />
+ ))}
+ </div>
+
+ <p className="mt-2 text-center font-mono text-[11px] uppercase tracking-wide text-muted-foreground/60">
+ {phase === 'over' ? (
+ beatBest ? (
+ <Trans>New best · press space to play again</Trans>
+ ) : (
+ <Trans>Game over · press space to play again</Trans>
+ )
+ ) : phase === 'running' ? (
+ <Trans>Space to jump · down arrow to duck</Trans>
+ ) : (
+ <Trans>Press space or tap the blob to start</Trans>
+ )}
+ </p>
+ </div>
+ );
+}
diff --git a/packages/app/src/components/OkBlobRunnerEasterEgg.dom.test.tsx b/packages/app/src/components/OkBlobRunnerEasterEgg.dom.test.tsx
new file mode 100644
index 000000000..5985d9176
--- /dev/null
+++ b/packages/app/src/components/OkBlobRunnerEasterEgg.dom.test.tsx
@@ -0,0 +1,102 @@
+import { cleanup, fireEvent, render, screen } from '@testing-library/react';
+import { afterEach, describe, expect, test, vi } from 'vitest';
+
+vi.doMock('@/components/OkBlob', () => ({
+ OkBlob: ({ size, variant }: { size: number; variant?: string }) => (
+ <div data-testid="ok-blob-probe" data-size={String(size)} data-variant={variant ?? 'default'} />
+ ),
+}));
+
+const resting = () => document.querySelector('[data-slot="ok-blob-runner-easter-egg"]');
+const game = () => document.querySelector('[data-slot="ok-blob-runner"]');
+
+describe('OkBlobRunnerEasterEgg', () => {
+ afterEach(() => {
+ cleanup();
+ vi.restoreAllMocks();
+ });
+
+ test('shows only the resting mascot — no track, no score, no hint', async () => {
+ const { OkBlobRunnerEasterEgg } = await import('./OkBlobRunnerEasterEgg');
+ render(<OkBlobRunnerEasterEgg />);
+
+ expect(resting()).toBeTruthy();
+ expect(game()).toBeNull();
+ expect(screen.getByTestId('ok-blob-probe').dataset.variant).toBe('sleeping');
+ // An easter egg that advertises itself is just a feature in a strange place.
+ expect(screen.queryByText(/press space/i)).toBeNull();
+ });
+
+ test('ArrowUp wakes it', async () => {
+ const { OkBlobRunnerEasterEgg } = await import('./OkBlobRunnerEasterEgg');
+ render(<OkBlobRunnerEasterEgg />);
+
+ fireEvent.keyDown(window, { key: 'ArrowUp' });
+ expect(game()).toBeTruthy();
+ });
+
+ test('clicking the mascot wakes it', async () => {
+ const { OkBlobRunnerEasterEgg } = await import('./OkBlobRunnerEasterEgg');
+ render(<OkBlobRunnerEasterEgg />);
+
+ const node = resting();
+ if (!node) throw new Error('resting mascot missing');
+ fireEvent.pointerDown(node);
+ expect(game()).toBeTruthy();
+ });
+
+ test('Space wakes it when nothing owns the keyboard', async () => {
+ const { OkBlobRunnerEasterEgg } = await import('./OkBlobRunnerEasterEgg');
+ render(<OkBlobRunnerEasterEgg />);
+
+ fireEvent.keyDown(window, { key: ' ' });
+ expect(game()).toBeTruthy();
+ });
+
+ test('Space does NOT wake it while a button holds focus', async () => {
+ // The error fallback focuses "Try again" on mount, and Space is that
+ // button's activation key. Stealing it would break recovery for exactly
+ // the users who cannot click.
+ const { OkBlobRunnerEasterEgg } = await import('./OkBlobRunnerEasterEgg');
+ render(
+ <div>
+ <button type="button">Try again</button>
+ <OkBlobRunnerEasterEgg />
+ </div>,
+ );
+
+ const button = screen.getByRole('button', { name: 'Try again' });
+ button.focus();
+ expect(document.activeElement).toBe(button);
+
+ fireEvent.keyDown(window, { key: ' ' });
+ expect(game()).toBeNull();
+
+ // ArrowUp is still safe, because no control treats it as activation.
+ fireEvent.keyDown(window, { key: 'ArrowUp' });
+ expect(game()).toBeTruthy();
+ });
+});
+
+describe('keyboard={false} (crash screens)', () => {
+ // On a crash the bug report is the point. The mascot must be reachable,
+ // but it must never take a key that Try again or Report might want.
+ test('ArrowUp and Space are both ignored', async () => {
+ const { OkBlobRunnerEasterEgg } = await import('./OkBlobRunnerEasterEgg');
+ render(<OkBlobRunnerEasterEgg keyboard={false} />);
+
+ fireEvent.keyDown(window, { key: 'ArrowUp' });
+ fireEvent.keyDown(window, { key: ' ' });
+ expect(game()).toBeNull();
+ });
+
+ test('but clicking the mascot still opens it', async () => {
+ const { OkBlobRunnerEasterEgg } = await import('./OkBlobRunnerEasterEgg');
+ render(<OkBlobRunnerEasterEgg keyboard={false} />);
+
+ const node = resting();
+ if (!node) throw new Error('resting mascot missing');
+ fireEvent.pointerDown(node);
+ expect(game()).toBeTruthy();
+ });
+});
diff --git a/packages/app/src/components/OkBlobRunnerEasterEgg.tsx b/packages/app/src/components/OkBlobRunnerEasterEgg.tsx
new file mode 100644
index 000000000..76376132e
--- /dev/null
+++ b/packages/app/src/components/OkBlobRunnerEasterEgg.tsx
@@ -0,0 +1,86 @@
+/**
+ * The mascot on a server-unreachable error screen, with a game hiding behind it.
+ *
+ * Until it is woken, this renders exactly the sleeping blob the error screen
+ * showed before the game existed — no track, no score, no hint. An easter egg
+ * that advertises itself is just a feature in a strange place.
+ *
+ * Space is deliberately NOT the only key that wakes it. This fallback focuses
+ * its "Try again" button on mount, and Space is a focused button's activation
+ * key, so binding Space unconditionally would break the recovery control for
+ * exactly the users who cannot click it. ArrowUp always works (it is also the
+ * jump key, so the reveal is the blob hopping), Space works whenever focus is
+ * not on a control, and clicking the blob always works.
+ */
+
+import { useEffect, useRef, useState } from 'react';
+import { OkBlob } from '@/components/OkBlob';
+import { OkBlobRunner } from '@/components/OkBlobRunner';
+import { focusIsOnAControl, gameMayHandleKey } from '@/lib/blob-run-keyboard';
+import { MASCOT_VIEW_TRANSITION_NAME, withViewTransition } from '@/lib/view-transition';
+
+/** Matches the size the error screens used before the game existed. */
+const RESTING_BLOB_SIZE = 80;
+
+interface OkBlobRunnerEasterEggProps {
+ /**
+ * Let ArrowUp / Space wake it. OFF on crash screens: there the priority is
+ * the bug report, so the mascot is opt-in by click only and never competes
+ * for a key the report or retry button might want.
+ */
+ keyboard?: boolean;
+}
+
+export function OkBlobRunnerEasterEgg({ keyboard = true }: OkBlobRunnerEasterEggProps = {}) {
+ const [awake, setAwake] = useState(false);
+ const awakeRef = useRef(false);
+
+ // Reduced motion never gets offered the game, same as the runner itself.
+ const [reduceMotion] = useState(
+ () =>
+ typeof window !== 'undefined' &&
+ window.matchMedia('(prefers-reduced-motion: reduce)').matches,
+ );
+
+ useEffect(() => {
+ if (reduceMotion || !keyboard) return;
+
+ function onKeyDown(event: KeyboardEvent) {
+ if (awakeRef.current) return;
+ const isSpace = event.key === ' ';
+ if (!isSpace && event.key !== 'ArrowUp') return;
+ // ArrowUp may fire with a button focused (no control treats it as
+ // activation), but neither key may fire under an overlay: this same
+ // fallback opens a bug-report dialog directly on top of the mascot.
+ if (!gameMayHandleKey({ allowWhileFocused: event.key === 'ArrowUp' })) return;
+ event.preventDefault();
+ awakeRef.current = true;
+ withViewTransition(() => setAwake(true));
+ }
+
+ window.addEventListener('keydown', onKeyDown);
+ return () => window.removeEventListener('keydown', onKeyDown);
+ }, [reduceMotion, keyboard]);
+
+ if (awake) return <OkBlobRunner autoStart />;
+
+ if (reduceMotion) return <OkBlob size={RESTING_BLOB_SIZE} variant="sleeping" />;
+
+ return (
+ <div
+ aria-hidden="true"
+ data-slot="ok-blob-runner-easter-egg"
+ className="cursor-pointer select-none transition-opacity duration-200"
+ style={{ viewTransitionName: MASCOT_VIEW_TRANSITION_NAME }}
+ onPointerDown={() => {
+ if (focusIsOnAControl()) (document.activeElement as HTMLElement).blur();
+ awakeRef.current = true;
+ // Same morph as the keyboard path. Without this the click reveal
+ // hard-cut while the key reveal tweened, for no reason a user could see.
+ withViewTransition(() => setAwake(true));
+ }}
+ >
+ <OkBlob size={RESTING_BLOB_SIZE} variant="sleeping" />
+ </div>
+ );
+}
diff --git a/packages/app/src/components/OkBlobRunnerPage.dom.test.tsx b/packages/app/src/components/OkBlobRunnerPage.dom.test.tsx
new file mode 100644
index 000000000..a2de0cad3
--- /dev/null
+++ b/packages/app/src/components/OkBlobRunnerPage.dom.test.tsx
@@ -0,0 +1,36 @@
+import { cleanup, render } from '@testing-library/react';
+import { afterEach, describe, expect, test, vi } from 'vitest';
+
+vi.doMock('@/components/OkBlobRunner', () => ({
+ OkBlobRunner: ({ autoStart }: { autoStart?: boolean }) => (
+ <div data-testid="runner-probe" data-autostart={String(autoStart ?? false)} />
+ ),
+}));
+
+describe('OkBlobRunnerPage', () => {
+ afterEach(() => {
+ cleanup();
+ vi.restoreAllMocks();
+ });
+
+ test('takes focus on mount', async () => {
+ // Load-bearing: opening from the Resources menu leaves focus on that menu's
+ // trigger (Radix restores it), and the runner's key handler stands down
+ // while a control holds focus. Without this, Space reopens the menu instead
+ // of starting the game.
+ const focus = vi.spyOn(HTMLElement.prototype, 'focus');
+ const { OkBlobRunnerPage } = await import('./OkBlobRunnerPage');
+ render(<OkBlobRunnerPage />);
+ expect(focus).toHaveBeenCalled();
+ });
+
+ test('does not auto-start by default, and does when asked', async () => {
+ const { OkBlobRunnerPage } = await import('./OkBlobRunnerPage');
+ const { getByTestId, unmount } = render(<OkBlobRunnerPage />);
+ expect(getByTestId('runner-probe').dataset.autostart).toBe('false');
+ unmount();
+
+ const revealed = render(<OkBlobRunnerPage autoStart />);
+ expect(revealed.getByTestId('runner-probe').dataset.autostart).toBe('true');
+ });
+});
diff --git a/packages/app/src/components/OkBlobRunnerPage.tsx b/packages/app/src/components/OkBlobRunnerPage.tsx
new file mode 100644
index 000000000..4025210ec
--- /dev/null
+++ b/packages/app/src/components/OkBlobRunnerPage.tsx
@@ -0,0 +1,52 @@
+import { Trans } from '@lingui/react/macro';
+import { useEffect, useRef } from 'react';
+import { OkBlobRunner } from '@/components/OkBlobRunner';
+
+/**
+ * The blob runner as a full-pane surface. Mounted by `EditorArea` for a
+ * blob-runner new-tab placeholder, so it reads as a real tab rather than a
+ * modal floating over the editor.
+ *
+ * Keyboard is on here: unlike the error screens, nothing in this pane competes
+ * for Space the way a focused "Try again" button does.
+ */
+interface OkBlobRunnerPageProps {
+ /** Begin a run on mount. True on the reveal paths, false from menu/palette. */
+ autoStart?: boolean;
+}
+
+export function OkBlobRunnerPage({ autoStart = false }: OkBlobRunnerPageProps = {}) {
+ const pageRef = useRef<HTMLDivElement>(null);
+
+ // Opening from the Resources menu leaves focus on that menu's trigger, because
+ // Radix restores it when the popover closes. The runner's key handler stands
+ // down while a control holds focus, so Space would go to the trigger and
+ // reopen the menu instead of starting the game. Move focus onto the page
+ // container — the same focus hand-off an SPA does on navigation — so the
+ // keyboard belongs to the game the moment the tab appears.
+ useEffect(() => {
+ pageRef.current?.focus();
+ }, []);
+
+ return (
+ <div
+ ref={pageRef}
+ tabIndex={-1}
+ className="flex h-full w-full flex-col items-center justify-center gap-8 px-6 py-8 outline-none"
+ >
+ <div className="flex flex-col items-center gap-1 text-center">
+ <h1 className="text-2xl font-light tracking-tighter text-balance">
+ <Trans>Blob Run</Trans>
+ </h1>
+ <p className="max-w-md text-sm text-muted-foreground">
+ <Trans>Space to jump, down arrow to duck. That is the whole game.</Trans>
+ </p>
+ </div>
+ {/* Deliberately uncapped: track width IS reaction time here, so the game
+ takes the full pane rather than sitting in a column. */}
+ <div className="w-full">
+ <OkBlobRunner autoStart={autoStart} />
+ </div>
+ </div>
+ );
+}
diff --git a/packages/app/src/components/command-palette-commands.ts b/packages/app/src/components/command-palette-commands.ts
index 5e4289e46..5537562e7 100644
--- a/packages/app/src/components/command-palette-commands.ts
+++ b/packages/app/src/components/command-palette-commands.ts
@@ -22,6 +22,7 @@ import {
FolderOpen,
FolderPlus,
FoldVertical,
+ Gamepad2,
GitBranch,
History,
LayoutGrid,
@@ -129,6 +130,8 @@ export interface PaletteCommandContext {
openFeedbackDialog(): void;
/** Create a blank project-scope skill and open it in the editor. */
createBlankSkill(): void;
+ /** Focus the Blob Run tab, opening one if it is not already around. */
+ openBlobRun(): void;
}
/** Render-order buckets; the palette renders each group under its own heading. */
@@ -172,6 +175,7 @@ export interface PaletteCommand {
* palette in lockstep with the native menu's `MENU_LABELS` source.
*/
const PALETTE_COMMAND_LABELS = {
+ blobRun: msg`Blob Run`,
back: msg`Back`,
forward: msg`Forward`,
newFile: msg`New file`,
@@ -232,6 +236,7 @@ export { PALETTE_COMMAND_LABELS };
* `toPaletteCommand` throws at module load if an id is missing, rather than
* silently substituting a wrong default. */
const COMMAND_ICONS: Record<string, ComponentType<{ className?: string }>> = {
+ 'open-blob-run': Gamepad2,
'navigate-back': ChevronLeft,
'navigate-forward': ChevronRight,
'new-file': FilePlus2,
@@ -284,6 +289,7 @@ const COMMAND_ICONS: Record<string, ComponentType<{ className?: string }>> = {
* through to {@link busDispatch}, which emits their `menuActionId`.
*/
const COMMAND_DISPATCH: Record<string, (ctx: PaletteCommandContext) => void> = {
+ 'open-blob-run': (ctx) => ctx.openBlobRun(),
'new-file': (ctx) => {
ctx.closePalette();
ctx.openNewItemDialog('file');
diff --git a/packages/app/src/components/empty-state/CreateView.tsx b/packages/app/src/components/empty-state/CreateView.tsx
index 4cf7e2e76..e1f266470 100644
--- a/packages/app/src/components/empty-state/CreateView.tsx
+++ b/packages/app/src/components/empty-state/CreateView.tsx
@@ -16,6 +16,8 @@ interface CreateViewProps {
readonly celebrateSignal: number;
/** Open the SeedDialog at step 1 (PackCardGrid) from the bottom strip. */
readonly onAddStarterPack: () => void;
+ /** Forwarded to the mascot: fired on a second rage-click in a row. */
+ readonly onRageStreak?: () => void;
}
/**
@@ -30,7 +32,7 @@ interface CreateViewProps {
* `CopyablePromptList` (copy-to-paste prompts) when OK runs inside
* Cursor/Codex/Claude, where the launch handoff would loop back to the host.
*/
-export function CreateView({ celebrateSignal, onAddStarterPack }: CreateViewProps) {
+export function CreateView({ celebrateSignal, onAddStarterPack, onRageStreak }: CreateViewProps) {
const { t } = useLingui();
const isEmbedded = useIsEmbedded();
const { title, subtitle } = getEmptyStateCopy({ isOnboarding: false, isEmbedded });
@@ -43,7 +45,12 @@ export function CreateView({ celebrateSignal, onAddStarterPack }: CreateViewProp
return (
<div className="flex w-full flex-col gap-8 py-12 max-w-5xl my-auto">
- <EmptyStateHeader title={t(title)} subtitle={t(subtitle)} celebrateSignal={celebrateSignal} />
+ <EmptyStateHeader
+ title={t(title)}
+ subtitle={t(subtitle)}
+ celebrateSignal={celebrateSignal}
+ onRageStreak={onRageStreak}
+ />
{/* AI surface up top — the primary path. Non-embedded: compose a brief and
hand off to a coding agent. Embedded (OK inside Cursor/Codex/Claude):
diff --git a/packages/app/src/components/empty-state/EmptyStateHeader.dom.test.tsx b/packages/app/src/components/empty-state/EmptyStateHeader.dom.test.tsx
index 1bd402e55..e9ade400c 100644
--- a/packages/app/src/components/empty-state/EmptyStateHeader.dom.test.tsx
+++ b/packages/app/src/components/empty-state/EmptyStateHeader.dom.test.tsx
@@ -1,4 +1,4 @@
-import { cleanup, render, screen } from '@testing-library/react';
+import { cleanup, fireEvent, render, screen } from '@testing-library/react';
import { afterEach, describe, expect, test, vi } from 'vitest';
import {
expectVisualClassTokens,
@@ -6,11 +6,24 @@ import {
} from '@/test-utils/visual-contract';
vi.doMock('@/components/OkBlob', () => ({
- OkBlob: ({ celebrateSignal, size }: { celebrateSignal: number; size: number }) => (
- <div
+ // `onRage` is exposed as a click so the reveal gate can be driven from a test;
+ // the real OkBlob fires it after three rapid clicks inside its rage window.
+ OkBlob: ({
+ celebrateSignal,
+ size,
+ onRage,
+ }: {
+ celebrateSignal: number;
+ size: number;
+ onRage?: () => void;
+ }) => (
+ <button
+ type="button"
data-testid="ok-blob-probe"
data-celebrate-signal={String(celebrateSignal)}
data-size={String(size)}
+ data-has-rage={String(onRage !== undefined)}
+ onClick={() => onRage?.()}
/>
),
}));
@@ -45,3 +58,69 @@ describe('EmptyStateHeader runtime behavior', () => {
expect(screen.getByTestId('ok-blob-probe').getAttribute('data-celebrate-signal')).toBe('4');
});
});
+
+describe('EmptyStateHeader rage-streak reveal gate', () => {
+ afterEach(() => {
+ cleanup();
+ vi.restoreAllMocks();
+ });
+
+ async function mount(onRageStreak?: () => void) {
+ const { EmptyStateHeader } = await import('./EmptyStateHeader');
+ render(<EmptyStateHeader title="t" celebrateSignal={0} onRageStreak={onRageStreak} />);
+ return screen.getByTestId('ok-blob-probe');
+ }
+
+ test('one burst never reveals — the first sparkle is just a sparkle', async () => {
+ const onRageStreak = vi.fn();
+ const blob = await mount(onRageStreak);
+ fireEvent.click(blob);
+ expect(onRageStreak).not.toHaveBeenCalled();
+ });
+
+ test('a second burst inside the window reveals, exactly once', async () => {
+ const onRageStreak = vi.fn();
+ const now = vi.spyOn(performance, 'now');
+ const blob = await mount(onRageStreak);
+
+ now.mockReturnValue(0);
+ fireEvent.click(blob);
+ now.mockReturnValue(1_000);
+ fireEvent.click(blob);
+ expect(onRageStreak).toHaveBeenCalledTimes(1);
+ });
+
+ test('a second burst after the window restarts the streak', async () => {
+ const onRageStreak = vi.fn();
+ const now = vi.spyOn(performance, 'now');
+ const blob = await mount(onRageStreak);
+
+ now.mockReturnValue(0);
+ fireEvent.click(blob);
+ now.mockReturnValue(60_000);
+ fireEvent.click(blob);
+ expect(onRageStreak).not.toHaveBeenCalled();
+ });
+
+ test('the streak resets after a reveal, so a third burst does not re-fire', async () => {
+ const onRageStreak = vi.fn();
+ const now = vi.spyOn(performance, 'now');
+ const blob = await mount(onRageStreak);
+
+ now.mockReturnValue(0);
+ fireEvent.click(blob);
+ now.mockReturnValue(500);
+ fireEvent.click(blob);
+ expect(onRageStreak).toHaveBeenCalledTimes(1);
+
+ now.mockReturnValue(900);
+ fireEvent.click(blob);
+ expect(onRageStreak).toHaveBeenCalledTimes(1);
+ });
+
+ test('no handler is wired where the surface cannot reveal', async () => {
+ const blob = await mount(undefined);
+ expect(blob.dataset.hasRage).toBe('false');
+ fireEvent.click(blob);
+ });
+});
diff --git a/packages/app/src/components/empty-state/EmptyStateHeader.tsx b/packages/app/src/components/empty-state/EmptyStateHeader.tsx
index 15af74b36..20093917d 100644
--- a/packages/app/src/components/empty-state/EmptyStateHeader.tsx
+++ b/packages/app/src/components/empty-state/EmptyStateHeader.tsx
@@ -1,4 +1,7 @@
+import { useRef } from 'react';
import { OkBlob } from '@/components/OkBlob';
+import { nextRageStreak, RAGE_STREAK_TO_REVEAL } from '@/components/ok-blob-runner-logic';
+import { MASCOT_VIEW_TRANSITION_NAME } from '@/lib/view-transition';
interface EmptyStateHeaderProps {
/** Headline rendered as an h2. Keep it short and action-oriented; the blob
@@ -11,6 +14,12 @@ interface EmptyStateHeaderProps {
/** Forwarded to OkBlob so the celebrate burst replays after a successful
* seed (or any other parent-triggered moment). Increment to fire. */
readonly celebrateSignal: number;
+ /**
+ * Fired when the user rage-clicks the mascot twice in a row. One burst is
+ * just the firework; the second is the gesture. Optional, so surfaces that
+ * do not host the easter egg simply omit it.
+ */
+ readonly onRageStreak?: () => void;
}
/**
@@ -23,13 +32,46 @@ interface EmptyStateHeaderProps {
* flex with the text — see the EmptyEditorState rAF-driven 3D transform
* comment for why mixing the two caused baseline jitter.
*/
-export function EmptyStateHeader({ title, subtitle, celebrateSignal }: EmptyStateHeaderProps) {
+export function EmptyStateHeader({
+ title,
+ subtitle,
+ celebrateSignal,
+ onRageStreak,
+}: EmptyStateHeaderProps) {
+ const streakRef = useRef(0);
+ const lastRageAtRef = useRef<number | null>(null);
+
+ function handleRage() {
+ // The firework already fired inside OkBlob; this only decides whether the
+ // burst was the SECOND in a row.
+ const now =
+ typeof performance !== 'undefined' && typeof performance.now === 'function'
+ ? performance.now()
+ : Date.now();
+ const previous = lastRageAtRef.current;
+ const dt = previous === null ? Number.POSITIVE_INFINITY : now - previous;
+ lastRageAtRef.current = now;
+ const streak = nextRageStreak(streakRef.current, dt);
+ streakRef.current = streak;
+ if (streak < RAGE_STREAK_TO_REVEAL) return;
+ streakRef.current = 0;
+ onRageStreak?.();
+ }
+
return (
// Narrow pane (`@container/emptystate` in EmptyEditorState): stack the blob
// above the title, left-aligned with it, so a cramped split-view doesn't
// squeeze the headline into a sliver beside the blob. Side-by-side at `@md`.
<div className="flex flex-col items-start gap-3 @md/emptystate:flex-row @md/emptystate:items-center @md/emptystate:gap-4">
- <OkBlob size={64} celebrateSignal={celebrateSignal} />
+ <OkBlob
+ size={64}
+ celebrateSignal={celebrateSignal}
+ onRage={onRageStreak ? handleRage : undefined}
+ // Named only where a reveal can happen: the name must be unique in the
+ // document, and an un-revealable empty state in another pane would
+ // collide and make the browser skip the transition.
+ style={onRageStreak ? { viewTransitionName: MASCOT_VIEW_TRANSITION_NAME } : undefined}
+ />
<div className="flex flex-col gap-2">
<h2 className="text-2xl font-light tracking-tighter text-balance">{title}</h2>
{subtitle ? <p className="text-sm text-muted-foreground">{subtitle}</p> : null}
diff --git a/packages/app/src/components/ok-blob-runner-logic.test.ts b/packages/app/src/components/ok-blob-runner-logic.test.ts
new file mode 100644
index 000000000..9293aa1f7
--- /dev/null
+++ b/packages/app/src/components/ok-blob-runner-logic.test.ts
@@ -0,0 +1,674 @@
+import { describe, expect, test } from 'vitest';
+import { OBSTACLE_POOL_SIZE } from './OkBlobRunner';
+import {
+ collides,
+ createRunnerState,
+ DUCK_SCALE_Y,
+ deformationOf,
+ difficultyOf,
+ GROUND_DWELL_SECONDS,
+ gapSecondsAt,
+ HOP_HEIGHT,
+ isDucked,
+ JUMP_AIRTIME_SECONDS,
+ JUMP_BUFFER_SECONDS,
+ JUMP_VELOCITY,
+ jumpRunner,
+ MAX_FRAME_SECONDS,
+ MAX_JUMP_HEIGHT,
+ MAX_SPEED,
+ nextRageStreak,
+ overheadChanceAt,
+ playerBox,
+ RAGE_STREAK_TO_REVEAL,
+ RAGE_STREAK_WINDOW_MS,
+ type RunnerObstacle,
+ type RunnerState,
+ readBestScore,
+ START_SPEED,
+ scoreOf,
+ setDucking,
+ startRunner,
+ stepRunner,
+ writeBestScore,
+} from './ok-blob-runner-logic';
+
+const VIEW_WIDTH = 600;
+const midRng = () => 0.5;
+
+function running(): RunnerState {
+ const state = createRunnerState();
+ startRunner(state);
+ return state;
+}
+
+function run(state: RunnerState, seconds: number, rng: () => number = midRng): RunnerState {
+ for (let elapsed = 0; elapsed < seconds; elapsed += 1 / 60) {
+ stepRunner(state, 1 / 60, VIEW_WIDTH, rng);
+ }
+ return state;
+}
+
+/** Advance without ever colliding, to reach speeds an unattended blob never survives to. */
+function runClear(state: RunnerState, seconds: number, rng: () => number = midRng): RunnerState {
+ for (let elapsed = 0; elapsed < seconds; elapsed += 1 / 60) {
+ stepRunner(state, 1 / 60, VIEW_WIDTH, rng);
+ state.obstacles = [];
+ }
+ return state;
+}
+
+/** Spawn one obstacle of each kind, positioned right on top of the player. */
+function atPlayer(kind: 'ground' | 'overhead'): RunnerObstacle {
+ return kind === 'ground'
+ ? { id: 0, kind, x: 40, y: 0, width: 16, height: 38 }
+ : { id: 0, kind, x: 40, y: 34, width: 26, height: 16 };
+}
+
+describe('idle gait', () => {
+ test('the blob hops on its own, without any input', () => {
+ const state = running();
+ let apex = 0;
+ let contacts = 0;
+ let airborne = false;
+ for (let i = 0; i < 240; i++) {
+ stepRunner(state, 1 / 120, VIEW_WIDTH, midRng);
+ state.obstacles = [];
+ apex = Math.max(apex, state.y);
+ if (state.y > 0) airborne = true;
+ else if (airborne) {
+ contacts += 1;
+ airborne = false;
+ }
+ }
+ expect(apex).toBeGreaterThan(0);
+ // Two full seconds of gait is several hops, not one launch.
+ expect(contacts).toBeGreaterThanOrEqual(3);
+ });
+
+ test('the hop stays under its advertised height', () => {
+ const state = running();
+ let apex = 0;
+ for (let i = 0; i < 240; i++) {
+ stepRunner(state, 1 / 120, VIEW_WIDTH, midRng);
+ state.obstacles = [];
+ apex = Math.max(apex, state.y);
+ }
+ expect(apex).toBeLessThanOrEqual(HOP_HEIGHT + 1);
+ });
+});
+
+describe('difficulty contract', () => {
+ // These four are the whole game. If any flips, the run becomes either
+ // unloseable or unwinnable, and no other test would notice.
+
+ test('the idle hop can NEVER clear a ground obstacle', () => {
+ const state = running();
+ state.y = HOP_HEIGHT;
+ expect(collides(state, atPlayer('ground'))).toBe(true);
+ });
+
+ test('a full jump DOES clear a ground obstacle', () => {
+ const state = running();
+ state.y = MAX_JUMP_HEIGHT;
+ expect(collides(state, atPlayer('ground'))).toBe(false);
+ });
+
+ test('ducking clears an overhead obstacle, standing does not', () => {
+ const state = running();
+ expect(collides(state, atPlayer('overhead'))).toBe(true);
+
+ setDucking(state, true);
+ expect(isDucked(state)).toBe(true);
+ expect(collides(state, atPlayer('overhead'))).toBe(false);
+ });
+
+ test('ducking does NOT rescue you from a ground obstacle', () => {
+ const state = running();
+ setDucking(state, true);
+ expect(collides(state, atPlayer('ground'))).toBe(true);
+ });
+
+ test('mid-hop still collides with an overhead obstacle', () => {
+ const state = running();
+ state.y = HOP_HEIGHT;
+ expect(collides(state, atPlayer('overhead'))).toBe(true);
+ });
+});
+
+describe('jump', () => {
+ test('a grounded press launches immediately', () => {
+ const state = running();
+ state.y = 0;
+ state.vy = 0;
+ expect(jumpRunner(state)).toBe(true);
+ expect(state.vy).toBe(JUMP_VELOCITY);
+ });
+
+ test('a press made mid-hop launches IMMEDIATELY, not on the next landing', () => {
+ // The reported "button delay": the gait is airborne most of the cycle, so
+ // gating the jump on ground contact made the blob wait to land before
+ // responding. Bouncing is not jumping, and must not block one.
+ const state = running();
+ run(state, 0.12);
+ state.obstacles = [];
+ expect(state.y).toBeGreaterThan(0);
+ expect(state.jumping).toBe(false);
+
+ expect(jumpRunner(state)).toBe(true);
+ expect(state.vy).toBe(JUMP_VELOCITY);
+ expect(state.jumpBuffer).toBe(0);
+ });
+
+ test('a press DURING a commanded jump is buffered, not a double jump', () => {
+ const state = running();
+ // Pin the precondition rather than assuming the gait produced it: without a
+ // commanded jump in flight, `jumping` is false and the press below would
+ // take the launch-immediately branch, leaving the buffer at 0 and making
+ // the assertion pass for the wrong reason.
+ expect(jumpRunner(state)).toBe(true);
+ runClear(state, 0.15);
+ expect(state.jumping).toBe(true);
+ expect(state.y).toBeGreaterThan(0);
+ const airborneVy = state.vy;
+
+ // No double jump: the second press cannot re-launch mid-flight.
+ expect(jumpRunner(state)).toBe(false);
+ expect(state.vy).toBe(airborneVy);
+ expect(state.jumpBuffer).toBeGreaterThan(0);
+ });
+
+ test('landing clears the jumping flag so the next press is instant again', () => {
+ const state = running();
+ jumpRunner(state);
+ runClear(state, JUMP_AIRTIME_SECONDS + 0.05);
+ expect(state.jumping).toBe(false);
+ });
+
+ test('a press at ANY point during a full jump still jumps on landing', () => {
+ // The reported input lag: with a buffer shorter than the jump's airtime, a
+ // second press mid-jump expired before touchdown and was silently eaten,
+ // so the blob did an idle hop instead of the jump the player asked for.
+ for (const pressAt of [0.05, 0.15, 0.25, 0.35, 0.45]) {
+ const state = running();
+ jumpRunner(state);
+ runClear(state, pressAt);
+ expect(state.y).toBeGreaterThan(0);
+
+ jumpRunner(state); // buffered: we are airborne
+ let peak = 0;
+ for (let i = 0; i < 300; i++) {
+ stepRunner(state, 1 / 120, VIEW_WIDTH, midRng);
+ state.obstacles = [];
+ if (state.y === 0 && i > 60) break;
+ peak = Math.max(peak, state.y);
+ }
+ // A real jump, not the idle hop it degraded to before.
+ expect(peak, `press at ${pressAt}s`).toBeGreaterThan(HOP_HEIGHT * 2);
+ }
+ });
+
+ test('the buffer expires rather than firing a jump much later', () => {
+ const state = running();
+ run(state, 0.1);
+ state.obstacles = [];
+ jumpRunner(state);
+ state.y = 400; // park it far above the ground so it cannot land in time
+ state.vy = 0;
+ run(state, JUMP_BUFFER_SECONDS + 0.1);
+ expect(state.jumpBuffer).toBe(0);
+ });
+
+ test('jumping is inert unless the run is live', () => {
+ const idle = createRunnerState();
+ expect(jumpRunner(idle)).toBe(false);
+ expect(idle.vy).toBe(0);
+ });
+});
+
+describe('duck', () => {
+ test('holding the duck pins the blob to the ground, suppressing the gait', () => {
+ const state = running();
+ // Land first, then hold.
+ run(state, 0.4);
+ state.obstacles = [];
+ setDucking(state, true);
+ state.y = 0;
+ state.vy = 0;
+ runClear(state, 0.5);
+ expect(state.y).toBe(0);
+ expect(isDucked(state)).toBe(true);
+ });
+
+ test('releasing the duck resumes the gait', () => {
+ const state = running();
+ setDucking(state, true);
+ runClear(state, 0.3);
+ expect(state.y).toBe(0);
+
+ setDucking(state, false);
+ let apex = 0;
+ for (let i = 0; i < 120; i++) {
+ stepRunner(state, 1 / 120, VIEW_WIDTH, midRng);
+ state.obstacles = [];
+ apex = Math.max(apex, state.y);
+ }
+ expect(apex).toBeGreaterThan(0);
+ });
+
+ test('ducking in mid-air fast-falls instead of squashing', () => {
+ const floating = running();
+ const falling = running();
+ for (const state of [floating, falling]) {
+ state.y = 60;
+ state.vy = 0;
+ state.dwell = 0;
+ }
+ setDucking(falling, true);
+ // Airborne, so the duck reads as fast-fall and the shape stays unsquashed.
+ expect(isDucked(falling)).toBe(false);
+
+ runClear(floating, 0.08);
+ runClear(falling, 0.08);
+ expect(falling.y).toBeLessThan(floating.y);
+ });
+});
+
+describe('deformation', () => {
+ test('ducked is a deliberate flatten', () => {
+ const state = running();
+ setDucking(state, true);
+ const { scaleX, scaleY } = deformationOf(state);
+ expect(scaleY).toBe(DUCK_SCALE_Y);
+ expect(scaleX).toBeGreaterThan(1);
+ });
+
+ test('impact squashes hardest on contact and eases back out', () => {
+ const state = running();
+ state.y = 0;
+ state.vy = 0;
+ state.dwell = GROUND_DWELL_SECONDS;
+ const onImpact = deformationOf(state);
+
+ state.dwell = GROUND_DWELL_SECONDS * 0.1;
+ const nearlyRecovered = deformationOf(state);
+
+ expect(onImpact.scaleY).toBeLessThan(1);
+ expect(onImpact.scaleY).toBeLessThan(nearlyRecovered.scaleY);
+ expect(onImpact.scaleX).toBeGreaterThan(1);
+ });
+
+ test('airborne stretches with vertical speed and is round at the apex', () => {
+ const state = running();
+ state.y = 20;
+ state.dwell = 0;
+
+ state.vy = JUMP_VELOCITY;
+ const takeoff = deformationOf(state);
+ state.vy = 0;
+ const apex = deformationOf(state);
+
+ expect(takeoff.scaleY).toBeGreaterThan(1);
+ expect(takeoff.scaleX).toBeLessThan(1);
+ expect(apex.scaleY).toBeCloseTo(1, 6);
+ expect(apex.scaleX).toBeCloseTo(1, 6);
+ });
+
+ test('stretch is bounded no matter how fast the blob is moving', () => {
+ const state = running();
+ state.y = 20;
+ state.dwell = 0;
+ state.vy = JUMP_VELOCITY * 50;
+ const { scaleY } = deformationOf(state);
+ expect(scaleY).toBeLessThanOrEqual(1.22);
+ });
+});
+
+describe('collision box tracks the rendered shape', () => {
+ test('ducking shrinks the box and widens it', () => {
+ const state = running();
+ const standing = playerBox(state);
+ setDucking(state, true);
+ const ducked = playerBox(state);
+
+ expect(ducked.top).toBeLessThan(standing.top);
+ expect(ducked.right - ducked.left).toBeGreaterThan(standing.right - standing.left);
+ });
+
+ test('the widened duck box spreads from the centre, not the left edge', () => {
+ const state = running();
+ const standingCentre = (playerBox(state).left + playerBox(state).right) / 2;
+ setDucking(state, true);
+ const duckedCentre = (playerBox(state).left + playerBox(state).right) / 2;
+ expect(duckedCentre).toBeCloseTo(standingCentre, 6);
+ });
+});
+
+describe('phase gating', () => {
+ test('a fresh state is idle and does not advance', () => {
+ const state = createRunnerState();
+ expect(state.phase).toBe('idle');
+ stepRunner(state, 1, VIEW_WIDTH, midRng);
+ expect(state.distance).toBe(0);
+ expect(state.obstacles).toHaveLength(0);
+ });
+
+ test('startRunner clears the previous run', () => {
+ const state = running();
+ runClear(state, 3);
+ expect(state.distance).toBeGreaterThan(0);
+
+ // Dirty every field the reset must clear, so a future selective reset that
+ // forgets one is caught here.
+ state.jumping = true;
+ state.jumpBuffer = 1;
+ state.ducking = true;
+
+ startRunner(state);
+ expect(state.phase).toBe('running');
+ expect(state.jumping).toBe(false);
+ expect(state.distance).toBe(0);
+ expect(state.speed).toBe(START_SPEED);
+ expect(state.obstacles).toHaveLength(0);
+ expect(state.ducking).toBe(false);
+ expect(state.jumpBuffer).toBe(0);
+ });
+});
+
+describe('speed and score', () => {
+ test('speed climbs from the start value and caps', () => {
+ const state = running();
+ runClear(state, 2);
+ expect(state.speed).toBeGreaterThan(START_SPEED);
+ expect(state.speed).toBeLessThan(MAX_SPEED);
+
+ runClear(state, 120);
+ expect(state.speed).toBe(MAX_SPEED);
+ });
+
+ test('score grows monotonically while running', () => {
+ const state = running();
+ let previous = scoreOf(state);
+ for (let i = 0; i < 30; i++) {
+ runClear(state, 0.2);
+ const current = scoreOf(state);
+ expect(current).toBeGreaterThanOrEqual(previous);
+ previous = current;
+ }
+ expect(previous).toBeGreaterThan(0);
+ });
+});
+
+describe('obstacle stream', () => {
+ test('obstacles spawn off the right edge and scroll left', () => {
+ const state = running();
+ runClear(state, 0.5);
+ stepRunner(state, 1 / 60, VIEW_WIDTH, midRng);
+ run(state, 3);
+ for (const obstacle of state.obstacles) {
+ expect(obstacle.x).toBeLessThanOrEqual(VIEW_WIDTH);
+ expect(obstacle.x + obstacle.width).toBeGreaterThan(0);
+ }
+ });
+
+ test('overhead obstacles only appear after the warmup', () => {
+ const state = running();
+ const kinds: string[] = [];
+ let seen = state.nextObstacleId;
+ // Always-overhead rng draw: if any overhead slips out early, it is the
+ // warmup gate that failed, not the dice.
+ const alwaysOverhead = () => 0;
+ for (let i = 0; i < 300; i++) {
+ stepRunner(state, 1 / 60, 0, alwaysOverhead);
+ if (state.nextObstacleId > seen) {
+ seen = state.nextObstacleId;
+ const spawned = state.obstacles.at(-1);
+ if (spawned) kinds.push(spawned.kind);
+ }
+ state.obstacles = [];
+ if (state.distance > 600) break;
+ }
+ expect(kinds.length).toBeGreaterThan(0);
+ expect(kinds.every((kind) => kind === 'ground')).toBe(true);
+ });
+
+ test('a degenerate view width still spawns clear of the player', () => {
+ const state = running();
+ const spawnXs: number[] = [];
+ let seen = state.nextObstacleId;
+ for (let i = 0; i < 600; i++) {
+ stepRunner(state, 1 / 60, 0, midRng);
+ if (state.nextObstacleId > seen) {
+ seen = state.nextObstacleId;
+ const spawned = state.obstacles.at(-1);
+ if (spawned) spawnXs.push(spawned.x);
+ }
+ state.obstacles = [];
+ }
+ expect(spawnXs.length).toBeGreaterThan(0);
+ for (const x of spawnXs) expect(x).toBeGreaterThan(playerBox(state).right);
+ });
+
+ test('the gap between obstacles stays jumpable at top speed', () => {
+ const state = running();
+ runClear(state, 120);
+ expect(state.speed).toBe(MAX_SPEED);
+
+ const spawnPositions: number[] = [];
+ let seen = state.nextObstacleId;
+ // Smallest jitter draw is the worst case for spacing.
+ for (let i = 0; i < 4000 && spawnPositions.length < 12; i++) {
+ stepRunner(state, 1 / 60, VIEW_WIDTH, () => 0);
+ if (state.nextObstacleId > seen) {
+ seen = state.nextObstacleId;
+ spawnPositions.push(state.distance);
+ }
+ state.obstacles = [];
+ }
+
+ expect(spawnPositions.length).toBeGreaterThanOrEqual(2);
+ for (let i = 1; i < spawnPositions.length; i++) {
+ const gapSeconds = (spawnPositions[i] - spawnPositions[i - 1]) / MAX_SPEED;
+ expect(gapSeconds).toBeGreaterThan(JUMP_AIRTIME_SECONDS);
+ }
+ });
+});
+
+describe('frame-time guards', () => {
+ test('a stalled frame cannot tunnel an obstacle through the player', () => {
+ const stalled = running();
+ const paced = running();
+ stepRunner(stalled, 5, VIEW_WIDTH, midRng);
+ stepRunner(paced, MAX_FRAME_SECONDS, VIEW_WIDTH, midRng);
+ expect(stalled.distance).toBeCloseTo(paced.distance, 6);
+ });
+
+ test('negative or zero elapsed time is inert', () => {
+ const state = running();
+ stepRunner(state, -1, VIEW_WIDTH, midRng);
+ stepRunner(state, 0, VIEW_WIDTH, midRng);
+ expect(state.distance).toBe(0);
+ expect(state.phase).toBe('running');
+ });
+
+ test('sub-stepping makes the result independent of frame pacing', () => {
+ const coarse = running();
+ const fine = running();
+ for (let i = 0; i < 100; i++) {
+ stepRunner(coarse, 1 / 30, VIEW_WIDTH, midRng);
+ coarse.obstacles = [];
+ }
+ for (let i = 0; i < 200; i++) {
+ stepRunner(fine, 1 / 60, VIEW_WIDTH, midRng);
+ fine.obstacles = [];
+ }
+ expect(coarse.distance).toBeCloseTo(fine.distance, 0);
+ expect(coarse.speed).toBeCloseTo(fine.speed, 6);
+ });
+});
+
+describe('progressive difficulty', () => {
+ test('difficulty climbs with distance and clamps at 1', () => {
+ expect(difficultyOf(0)).toBe(0);
+ expect(difficultyOf(5000)).toBeGreaterThan(0);
+ expect(difficultyOf(5000)).toBeLessThan(1);
+ expect(difficultyOf(5000)).toBeLessThan(difficultyOf(10_000));
+ expect(difficultyOf(1e9)).toBe(1);
+ expect(difficultyOf(-100)).toBe(0);
+ });
+
+ test('the gap closes as the run goes on', () => {
+ expect(gapSecondsAt(10_000)).toBeLessThan(gapSecondsAt(0));
+ expect(gapSecondsAt(1e9)).toBeLessThan(gapSecondsAt(10_000));
+ });
+
+ test('the gap NEVER closes past what a jump can clear', () => {
+ // The one bound that separates "hard" from "unwinnable": if obstacles can
+ // arrive closer together than a jump lasts, the second is unavoidable.
+ for (const distance of [0, 1000, 7000, 14_000, 100_000, 1e9]) {
+ expect(gapSecondsAt(distance), `at ${distance}px`).toBeGreaterThan(JUMP_AIRTIME_SECONDS);
+ }
+ });
+
+ test('overhead hazards stay off during the warmup, then grow more common', () => {
+ expect(overheadChanceAt(0)).toBe(0);
+ expect(overheadChanceAt(500)).toBe(0);
+ const early = overheadChanceAt(1000);
+ const late = overheadChanceAt(1e9);
+ expect(early).toBeGreaterThan(0);
+ expect(late).toBeGreaterThan(early);
+ expect(late).toBeLessThan(1);
+ });
+
+ test('a long run really does spawn denser than its opening', () => {
+ // End to end through the spawner, not just the pure helpers.
+ function gapsAround(startDistance: number): number {
+ const state = running();
+ state.distance = startDistance;
+ const marks: number[] = [];
+ let seen = state.nextObstacleId;
+ for (let i = 0; i < 6000 && marks.length < 8; i++) {
+ stepRunner(state, 1 / 60, VIEW_WIDTH, midRng);
+ if (state.nextObstacleId > seen) {
+ seen = state.nextObstacleId;
+ marks.push(state.distance);
+ }
+ state.obstacles = [];
+ }
+ const deltas = marks.slice(1).map((m, i) => m - marks[i]);
+ return deltas.reduce((a, b) => a + b, 0) / deltas.length;
+ }
+ // Compare in SECONDS of warning, which is what the player actually feels.
+ const openingSeconds = gapsAround(0) / START_SPEED;
+ const lateSeconds = gapsAround(60_000) / MAX_SPEED;
+ expect(lateSeconds).toBeLessThan(openingSeconds);
+ });
+});
+
+describe('persisted high score', () => {
+ function fakeStorage(initial: Record<string, string> = {}) {
+ const map = new Map(Object.entries(initial));
+ return {
+ getItem: (k: string) => map.get(k) ?? null,
+ setItem: (k: string, v: string) => void map.set(k, v),
+ map,
+ };
+ }
+
+ test('a written score round-trips', () => {
+ const storage = fakeStorage();
+ writeBestScore(412, storage);
+ expect(readBestScore(storage)).toBe(412);
+ });
+
+ test('absent storage reads zero instead of throwing', () => {
+ // The real failure on Node without --localstorage-file, and in locked-down
+ // browsers. The game must still render.
+ expect(readBestScore(null)).toBe(0);
+ expect(() => writeBestScore(10, null)).not.toThrow();
+ });
+
+ test('garbage in storage reads as no score, never NaN', () => {
+ for (const junk of ['', 'abc', '-5', 'NaN', 'Infinity', '{}']) {
+ expect(readBestScore(fakeStorage({ 'ok-blob-runner-best': junk })), junk).toBe(0);
+ }
+ });
+
+ test('a throwing storage is survivable in both directions', () => {
+ const hostile = {
+ getItem: () => {
+ throw new Error('denied');
+ },
+ setItem: () => {
+ throw new Error('quota');
+ },
+ };
+ expect(readBestScore(hostile)).toBe(0);
+ expect(() => writeBestScore(99, hostile)).not.toThrow();
+ });
+
+ test('non-scores are never persisted', () => {
+ const storage = fakeStorage();
+ writeBestScore(0, storage);
+ writeBestScore(-1, storage);
+ writeBestScore(Number.NaN, storage);
+ expect(storage.map.size).toBe(0);
+ });
+});
+
+describe('rage streak (reveal gate)', () => {
+ // One rage burst is the firework and nothing else. The reveal is gated on
+ // doing it twice, so someone who stumbles into the sparkle keeps the sparkle
+ // and nothing surprising happens to their tab.
+ test('a first burst never reaches the reveal threshold', () => {
+ expect(nextRageStreak(0, Number.POSITIVE_INFINITY)).toBe(1);
+ expect(nextRageStreak(0, 0)).toBe(1);
+ expect(nextRageStreak(0, 10)).toBeLessThan(RAGE_STREAK_TO_REVEAL);
+ });
+
+ test('a second burst inside the window reaches it', () => {
+ expect(nextRageStreak(1, RAGE_STREAK_WINDOW_MS - 1)).toBe(RAGE_STREAK_TO_REVEAL);
+ });
+
+ test('a second burst after the window restarts the streak', () => {
+ expect(nextRageStreak(1, RAGE_STREAK_WINDOW_MS)).toBe(1);
+ expect(nextRageStreak(1, RAGE_STREAK_WINDOW_MS + 5_000)).toBe(1);
+ expect(nextRageStreak(3, 60_000)).toBe(1);
+ });
+
+ test('the window is overridable for tests and tuning', () => {
+ expect(nextRageStreak(1, 200, { windowMs: 100 })).toBe(1);
+ expect(nextRageStreak(1, 50, { windowMs: 100 })).toBe(2);
+ });
+});
+
+describe('pool bound', () => {
+ // An obstacle past the render pool still collides while never being painted.
+ // Measured peaks: 4 at 1200px, 5 at 1600px, 7 at 2400px, 10 at 3400px — the
+ // original pool of 8 was sized from the 1200px case and broke on wide panes.
+ test('concurrent obstacles never exceed the render pool, even ultrawide', () => {
+ for (const width of [1200, 1600, 2400, 3400, 5000, 8000]) {
+ const state = running();
+ let peak = 0;
+ for (let i = 0; i < 8000; i++) {
+ // Tightest jitter draw is the densest the spawner can be.
+ stepRunner(state, 1 / 60, width, () => 0);
+ peak = Math.max(peak, state.obstacles.length);
+ state.phase = 'running';
+ }
+ expect({ width, fits: peak <= OBSTACLE_POOL_SIZE }).toEqual({ width, fits: true });
+ }
+ });
+});
+
+describe('mid-air duck', () => {
+ test('ducking in mid-air does NOT shrink the hitbox', () => {
+ // `isDucked` requires ground contact. If playerBox ever read `ducking`
+ // directly, a mid-air duck would silently clear overhead hazards.
+ const state = running();
+ state.y = HOP_HEIGHT;
+ setDucking(state, true);
+ expect(isDucked(state)).toBe(false);
+ expect(collides(state, atPlayer('overhead'))).toBe(true);
+ });
+});
diff --git a/packages/app/src/components/ok-blob-runner-logic.ts b/packages/app/src/components/ok-blob-runner-logic.ts
new file mode 100644
index 000000000..17aff51c3
--- /dev/null
+++ b/packages/app/src/components/ok-blob-runner-logic.ts
@@ -0,0 +1,533 @@
+/**
+ * Pure logic for the OkBlob runner mini-game — the offline-dino easter egg
+ * that takes over the mascot slot on a server-unreachable error screen.
+ *
+ * No DOM and no React here: `OkBlobRunner` drives `stepRunner` from a rAF loop
+ * and writes the resulting positions and deformations straight to element
+ * styles, so this module stays testable against a fake clock.
+ *
+ * The blob is not a ball on a track. Its default state is a continuous hop —
+ * it boings along the ground on its own, squashing on contact and stretching
+ * through the air — and the player only intervenes to clear something. Squash
+ * and stretch are derived from the live physics (`deformationOf`) rather than
+ * from CSS keyframes, so the animation and the collision box can never
+ * disagree about the shape the blob is currently in.
+ *
+ * Coordinate box: x grows rightward from the play area's left edge, y grows
+ * UPWARD from the ground line. Units are CSS pixels; time is seconds.
+ */
+
+/** Player's fixed horizontal position, px from the play area's left edge. */
+export const PLAYER_X = 28;
+/** Rendered blob size at rest, px. */
+export const PLAYER_SIZE = 64;
+
+/**
+ * The blob path's lowest point sits a little above the floor of its own 30-unit
+ * viewBox, so aligning the SVG box to the ground line leaves the silhouette
+ * visibly hovering. Nudge the rendered player down by this much to plant it.
+ * Measured against the real path, not guessed.
+ */
+export const PLAYER_FOOT_INSET = PLAYER_SIZE * 0.055;
+
+/**
+ * The silhouette is round, so a full-square hitbox reads as unfair — empty
+ * corners collide on a pass the player sees as clean. Expressed as a fraction
+ * of the CURRENT size so a ducked blob gets a proportionally smaller box
+ * instead of a stale one sized for standing.
+ */
+const HITBOX_INSET_RATIO = 0.1875;
+
+/** Downward acceleration, px/s². */
+const GRAVITY = 2400;
+
+/** Push-off velocity for the idle gait — the hop the blob does unprompted. */
+const HOP_VELOCITY = 310;
+/** Push-off velocity for a player-commanded jump. */
+export const JUMP_VELOCITY = 580;
+
+/** Apex of an idle hop, px. */
+export const HOP_HEIGHT = HOP_VELOCITY ** 2 / (2 * GRAVITY);
+/** Apex of a full jump, px. Sets how tall the play area has to be. */
+export const MAX_JUMP_HEIGHT = JUMP_VELOCITY ** 2 / (2 * GRAVITY);
+/** Ground-to-ground airtime of a full jump, seconds. Sets the spawn gap floor. */
+export const JUMP_AIRTIME_SECONDS = (2 * JUMP_VELOCITY) / GRAVITY;
+
+/**
+ * Beat the blob spends compressed against the ground between hops. Decoupling
+ * the gait's rhythm from its height is what lets the hop stay low enough that
+ * it never clears an obstacle for free while still reading as an unhurried
+ * bounce rather than a vibration. It is also exactly when the squash happens.
+ */
+export const GROUND_DWELL_SECONDS = 0.09;
+
+/**
+ * A jump pressed mid-air is remembered and spent on the next landing. Without
+ * it the control feels broken: the gait is airborne roughly three quarters of
+ * every cycle, so most honest presses would land on a frame that cannot jump.
+ *
+ * MUST exceed the longest airtime the blob can be in (a full jump), or the
+ * buffer expires before touchdown and the press is silently eaten. A second
+ * press during a jump is the single most common input in the game, so a buffer
+ * shorter than the jump reads directly as input lag.
+ */
+export const JUMP_BUFFER_SECONDS = JUMP_AIRTIME_SECONDS + 0.1;
+
+/** Vertical squash while ducking. Also scales the collision box. */
+export const DUCK_SCALE_Y = 0.5;
+/** Horizontal spread while ducking — the volume has to go somewhere. */
+const DUCK_SCALE_X = 1.3;
+/** Extra downward acceleration while ducking in mid-air, px/s². */
+const DUCK_FASTFALL_GRAVITY = 3200;
+
+export const START_SPEED = 260;
+export const MAX_SPEED = 620;
+/** Speed gained per second survived, px/s². */
+const SPEED_RAMP = 14;
+
+/**
+ * Obstacle spacing is expressed in SECONDS of travel, not pixels, so the gap
+ * scales with speed. A fixed pixel gap becomes uncleatable once the ramp
+ * outruns the jump's airtime.
+ *
+ * Speed alone does not make a runner harder for long: if the gap stays constant
+ * in seconds the player faces the same rhythm forever and only the scenery
+ * moves faster. Difficulty therefore also closes the gap and mixes in more
+ * overhead hazards as distance grows.
+ */
+const GAP_SECONDS_EARLY = JUMP_AIRTIME_SECONDS * 2.4;
+/**
+ * The late-game floor. MUST stay above JUMP_AIRTIME_SECONDS, or consecutive
+ * obstacles arrive while the blob is still committed to clearing the last one,
+ * which is unwinnable rather than hard.
+ */
+const GAP_SECONDS_LATE = JUMP_AIRTIME_SECONDS * 1.35;
+const GAP_JITTER_EARLY = 0.9;
+const GAP_JITTER_LATE = 0.3;
+
+/** Distance, px, over which difficulty climbs from 0 to its ceiling. */
+const DIFFICULTY_RAMP_DISTANCE = 14000;
+
+function lerp(from: number, to: number, amount: number): number {
+ return from + (to - from) * amount;
+}
+
+/**
+ * How far into the difficulty ramp this run is, 0 to 1. Pure and exported so
+ * the pacing can be asserted directly rather than inferred from play.
+ */
+export function difficultyOf(distance: number): number {
+ return Math.min(1, Math.max(0, distance / DIFFICULTY_RAMP_DISTANCE));
+}
+
+/** Minimum spacing, in seconds of travel, at the given distance. */
+export function gapSecondsAt(distance: number): number {
+ return lerp(GAP_SECONDS_EARLY, GAP_SECONDS_LATE, difficultyOf(distance));
+}
+
+/** Share of spawns that hang overhead at the given distance. */
+export function overheadChanceAt(distance: number): number {
+ if (distance <= OVERHEAD_WARMUP_DISTANCE) return 0;
+ return lerp(OVERHEAD_CHANCE_EARLY, OVERHEAD_CHANCE_LATE, difficultyOf(distance));
+}
+
+/**
+ * Ground obstacles are tall enough that the idle hop cannot clear them (hop
+ * apex plus the standing hitbox inset), and short enough that a full jump
+ * comfortably can. Those two bounds are the whole difficulty contract.
+ */
+const GROUND_MIN_HEIGHT = 38;
+const GROUND_MAX_HEIGHT = 52;
+const GROUND_MIN_WIDTH = 12;
+const GROUND_MAX_WIDTH = 20;
+
+/**
+ * Overhead obstacles hang at a height a ducked blob slips under and a hopping
+ * one does not. Jumping clean over them is allowed — same as the bird in the
+ * game this is riffing on.
+ */
+const OVERHEAD_BOTTOM = 34;
+const OVERHEAD_MIN_HEIGHT = 14;
+const OVERHEAD_MAX_HEIGHT = 18;
+const OVERHEAD_MIN_WIDTH = 22;
+const OVERHEAD_MAX_WIDTH = 30;
+
+/** Overhead share at the start of the ramp and at its ceiling. Climbing this
+ makes late runs demand ducking, not just better jump timing. */
+const OVERHEAD_CHANCE_EARLY = 0.15;
+const OVERHEAD_CHANCE_LATE = 0.45;
+/** Distance, px, before overhead obstacles start appearing at all. */
+const OVERHEAD_WARMUP_DISTANCE = 900;
+
+/**
+ * Spawns are placed at the right edge of the play area, so a zero or absurdly
+ * narrow measurement (pre-layout, collapsed flex parent) would drop obstacles
+ * on top of the player. Clamping the width keeps the spawn off-screen instead.
+ */
+const MIN_VIEW_WIDTH = 240;
+
+/**
+ * Real elapsed time is clamped before it drives physics. A backgrounded tab or
+ * a stalled main thread hands back a multi-second dt, which would teleport the
+ * player past an obstacle on the first frame after the stall.
+ */
+export const MAX_FRAME_SECONDS = 0.05;
+
+/**
+ * Physics runs on fixed sub-steps regardless of frame pacing. At MAX_SPEED a
+ * single MAX_FRAME_SECONDS step sweeps an obstacle ~31px, wider than the inset
+ * player box — so one slow frame could tunnel an obstacle clean through the
+ * blob without ever registering an overlap.
+ */
+const FIXED_STEP_SECONDS = 1 / 120;
+
+/** Distance in px that scores one point. */
+const PX_PER_POINT = 12;
+
+export type RunnerPhase = 'idle' | 'running' | 'over';
+type ObstacleKind = 'ground' | 'overhead';
+
+export interface RunnerObstacle {
+ id: number;
+ kind: ObstacleKind;
+ /** Left edge, px from the play area's left edge. */
+ x: number;
+ /** Bottom edge, px above the ground line. */
+ y: number;
+ width: number;
+ height: number;
+}
+
+export interface RunnerState {
+ phase: RunnerPhase;
+ /** Player's height above the ground line, px. 0 = in contact. */
+ y: number;
+ /** Player's vertical velocity, px/s. Positive = rising. */
+ vy: number;
+ /** Seconds left of the compressed beat on the ground. 0 when airborne. */
+ dwell: number;
+ /** Seconds left to honour a jump pressed during a commanded jump. */
+ jumpBuffer: number;
+ /**
+ * Whether the blob is airborne because the PLAYER jumped, as opposed to the
+ * idle gait. Only a commanded jump blocks another one; being mid-hop does
+ * not, or the control feels laggy for the ~74% of the cycle the gait spends
+ * off the ground.
+ */
+ jumping: boolean;
+ /** Whether the duck input is currently held. */
+ ducking: boolean;
+ /** Current scroll speed, px/s. */
+ speed: number;
+ /** Total distance travelled, px. Score derives from this. */
+ distance: number;
+ obstacles: RunnerObstacle[];
+ /** Distance remaining, px, until the next obstacle spawns. */
+ spawnCountdown: number;
+ nextObstacleId: number;
+}
+
+export function createRunnerState(): RunnerState {
+ return {
+ phase: 'idle',
+ y: 0,
+ vy: 0,
+ dwell: 0,
+ jumpBuffer: 0,
+ jumping: false,
+ ducking: false,
+ speed: START_SPEED,
+ distance: 0,
+ obstacles: [],
+ // The first obstacle gets a full gap of breathing room so a run never opens
+ // with an unreactable jump.
+ spawnCountdown: START_SPEED * gapSecondsAt(0),
+ nextObstacleId: 0,
+ };
+}
+
+/**
+ * Reset to a fresh run in place. Mutates rather than returning a new object
+ * because the component holds one long-lived state ref across runs.
+ */
+export function startRunner(state: RunnerState): void {
+ Object.assign(state, createRunnerState(), { phase: 'running' as const });
+}
+
+/**
+ * Command a jump. Launches immediately when the blob is in ground contact,
+ * otherwise arms the buffer so the press is spent on the next landing.
+ * Returns whether it launched right away.
+ */
+export function jumpRunner(state: RunnerState): boolean {
+ if (state.phase !== 'running') return false;
+ // Grounded OR merely bouncing along: launch NOW. Gating on `y > 0` made the
+ // gait swallow most presses into the buffer, so the blob visibly waited to
+ // land before honouring a jump — the input lag players actually feel.
+ if (!state.jumping) {
+ state.vy = JUMP_VELOCITY;
+ state.dwell = 0;
+ state.jumpBuffer = 0;
+ state.jumping = true;
+ return true;
+ }
+ // Already committed to a jump. Remember it for the next landing.
+ state.jumpBuffer = JUMP_BUFFER_SECONDS;
+ return false;
+}
+
+/** Hold or release the duck. Holding also fast-falls an airborne blob. */
+export function setDucking(state: RunnerState, ducking: boolean): void {
+ if (state.phase !== 'running') return;
+ state.ducking = ducking;
+}
+
+/** Is the blob squashed flat right now? Drives both the box and the render. */
+export function isDucked(state: RunnerState): boolean {
+ return state.ducking && state.y === 0;
+}
+
+export function scoreOf(state: RunnerState): number {
+ return Math.floor(state.distance / PX_PER_POINT);
+}
+
+export interface Deformation {
+ scaleX: number;
+ scaleY: number;
+}
+
+/**
+ * Squash and stretch, derived from the live physics rather than a keyframe.
+ * Ducked reads as a deliberate flatten; ground contact compresses hardest at
+ * the moment of impact and eases back out over the dwell; airborne stretches
+ * in proportion to vertical speed, so the blob is longest at takeoff and
+ * landing and round at the apex. Roughly volume-preserving, which is what
+ * sells it as a blob instead of a scaling rectangle.
+ */
+export function deformationOf(state: RunnerState): Deformation {
+ if (isDucked(state)) return { scaleX: DUCK_SCALE_X, scaleY: DUCK_SCALE_Y };
+
+ if (state.y === 0 && state.dwell > 0) {
+ // dwell counts DOWN, so progress 0 = just landed = maximum squash.
+ const progress = 1 - state.dwell / GROUND_DWELL_SECONDS;
+ const squash = 0.28 * (1 - progress);
+ return { scaleX: 1 + squash * 0.8, scaleY: 1 - squash };
+ }
+
+ const stretch = 0.22 * Math.min(Math.abs(state.vy) / JUMP_VELOCITY, 1);
+ return { scaleX: 1 - stretch * 0.7, scaleY: 1 + stretch };
+}
+
+export interface Box {
+ left: number;
+ right: number;
+ bottom: number;
+ top: number;
+}
+
+/**
+ * The player's collision box for the shape it is in this frame. Ducking really
+ * does shrink it — that is the whole point of ducking — so the box is derived
+ * from the same duck state the renderer uses.
+ */
+export function playerBox(state: RunnerState): Box {
+ const ducked = isDucked(state);
+ const width = PLAYER_SIZE * (ducked ? DUCK_SCALE_X : 1);
+ const height = PLAYER_SIZE * (ducked ? DUCK_SCALE_Y : 1);
+ const insetX = width * HITBOX_INSET_RATIO;
+ const insetY = height * HITBOX_INSET_RATIO;
+ // Widening on the duck spreads from the blob's centre, not its left edge.
+ const left = PLAYER_X - (width - PLAYER_SIZE) / 2;
+ return {
+ left: left + insetX,
+ right: left + width - insetX,
+ bottom: state.y + insetY,
+ top: state.y + height - insetY,
+ };
+}
+
+export function collides(state: RunnerState, obstacle: RunnerObstacle): boolean {
+ const box = playerBox(state);
+ return (
+ box.left < obstacle.x + obstacle.width &&
+ box.right > obstacle.x &&
+ box.bottom < obstacle.y + obstacle.height &&
+ box.top > obstacle.y
+ );
+}
+
+function spawnObstacle(state: RunnerState, viewWidth: number, rng: () => number): void {
+ const overhead = rng() < overheadChanceAt(state.distance);
+
+ const [minW, maxW, minH, maxH, y] = overhead
+ ? [
+ OVERHEAD_MIN_WIDTH,
+ OVERHEAD_MAX_WIDTH,
+ OVERHEAD_MIN_HEIGHT,
+ OVERHEAD_MAX_HEIGHT,
+ OVERHEAD_BOTTOM,
+ ]
+ : [GROUND_MIN_WIDTH, GROUND_MAX_WIDTH, GROUND_MIN_HEIGHT, GROUND_MAX_HEIGHT, 0];
+
+ state.obstacles.push({
+ id: state.nextObstacleId,
+ kind: overhead ? 'overhead' : 'ground',
+ x: viewWidth,
+ y,
+ width: minW + rng() * (maxW - minW),
+ height: minH + rng() * (maxH - minH),
+ });
+ state.nextObstacleId += 1;
+ const jitter = lerp(GAP_JITTER_EARLY, GAP_JITTER_LATE, difficultyOf(state.distance));
+ state.spawnCountdown = state.speed * (gapSecondsAt(state.distance) + rng() * jitter);
+}
+
+function advance(state: RunnerState, dt: number, viewWidth: number, rng: () => number): void {
+ state.jumpBuffer = Math.max(0, state.jumpBuffer - dt);
+
+ if (state.y > 0 || state.vy > 0) {
+ // Airborne. Ducking here is a fast-fall rather than a squash.
+ const gravity = state.ducking ? GRAVITY + DUCK_FASTFALL_GRAVITY : GRAVITY;
+ state.vy -= gravity * dt;
+ state.y += state.vy * dt;
+ if (state.y <= 0) {
+ state.y = 0;
+ state.vy = 0;
+ state.jumping = false;
+ // A press made during the jump is spent the instant we touch down.
+ if (state.jumpBuffer > 0) {
+ state.vy = JUMP_VELOCITY;
+ state.jumpBuffer = 0;
+ state.jumping = true;
+ } else {
+ state.dwell = GROUND_DWELL_SECONDS;
+ }
+ }
+ } else if (state.ducking) {
+ // Held flat against the ground: no gait, no rebound.
+ state.dwell = 0;
+ } else {
+ // In contact: compress, then push off into the next hop.
+ state.dwell -= dt;
+ if (state.dwell <= 0) {
+ state.dwell = 0;
+ state.vy = HOP_VELOCITY;
+ }
+ }
+
+ state.speed = Math.min(MAX_SPEED, state.speed + SPEED_RAMP * dt);
+ const travelled = state.speed * dt;
+ state.distance += travelled;
+
+ for (const obstacle of state.obstacles) {
+ obstacle.x -= travelled;
+ }
+ state.obstacles = state.obstacles.filter((obstacle) => obstacle.x + obstacle.width > 0);
+
+ state.spawnCountdown -= travelled;
+ if (state.spawnCountdown <= 0) spawnObstacle(state, viewWidth, rng);
+
+ for (const obstacle of state.obstacles) {
+ if (collides(state, obstacle)) {
+ state.phase = 'over';
+ return;
+ }
+ }
+}
+
+/**
+ * Advance the run by `elapsedSeconds` of wall time. Mutates and returns the
+ * same state object. A no-op unless the run is live, so the caller can drive it
+ * unconditionally from its loop.
+ */
+export function stepRunner(
+ state: RunnerState,
+ elapsedSeconds: number,
+ viewWidth: number,
+ rng: () => number = Math.random,
+): RunnerState {
+ if (state.phase !== 'running') return state;
+ const width = Math.max(viewWidth, MIN_VIEW_WIDTH);
+ let remaining = Math.min(Math.max(elapsedSeconds, 0), MAX_FRAME_SECONDS);
+ while (remaining > 0) {
+ const dt = Math.min(remaining, FIXED_STEP_SECONDS);
+ remaining -= dt;
+ advance(state, dt, width, rng);
+ if (state.phase !== 'running') break;
+ }
+ return state;
+}
+
+const BEST_SCORE_STORAGE_KEY = 'ok-blob-runner-best';
+
+/** The slice of `Storage` the high score needs; injectable so tests stay pure. */
+export interface BestScoreStorage {
+ getItem(key: string): string | null;
+ setItem(key: string, value: string): void;
+}
+
+/**
+ * `localStorage`, or null when it is not usable.
+ *
+ * BOTH the reference and every call are guarded, because the two failure modes
+ * are different: Node without `--localstorage-file` leaves the global
+ * undefined (a bare mention throws ReferenceError), while Safari in private
+ * mode has the object but throws on write.
+ */
+function defaultBestScoreStorage(): BestScoreStorage | null {
+ try {
+ return typeof localStorage === 'undefined' ? null : localStorage;
+ } catch {
+ return null;
+ }
+}
+
+export function readBestScore(storage = defaultBestScoreStorage()): number {
+ if (!storage) return 0;
+ try {
+ // Persisted state is user-editable and can be anything; anything that is
+ // not a positive finite number reads as "no score yet" rather than NaN.
+ const parsed = Number(storage.getItem(BEST_SCORE_STORAGE_KEY));
+ return Number.isFinite(parsed) && parsed > 0 ? Math.floor(parsed) : 0;
+ } catch {
+ return 0;
+ }
+}
+
+export function writeBestScore(score: number, storage = defaultBestScoreStorage()): void {
+ if (!storage || !Number.isFinite(score) || score <= 0) return;
+ try {
+ storage.setItem(BEST_SCORE_STORAGE_KEY, String(Math.floor(score)));
+ } catch {
+ // Quota exhaustion or a private-mode denial. A lost high score is not
+ // worth taking down the pane the user is looking at.
+ }
+}
+
+/**
+ * How long a second rage-click burst still counts as "in a row". Generous
+ * enough that a deliberate second go registers, short enough that two
+ * unrelated bursts minutes apart do not.
+ */
+export const RAGE_STREAK_WINDOW_MS = 4000;
+
+/** Consecutive rage bursts required to reveal the game. */
+export const RAGE_STREAK_TO_REVEAL = 2;
+
+/**
+ * Consecutive-rage counter. One burst is the firework and nothing else; the
+ * reveal is deliberately gated behind doing it twice, so a user who stumbles
+ * into the sparkle once keeps the sparkle and nothing surprising happens.
+ *
+ * Pure so the cadence can be asserted without a clock. Mirrors
+ * `nextClickLevel`, which does the same job one level down.
+ */
+export function nextRageStreak(
+ previousStreak: number,
+ dtMs: number,
+ opts?: { windowMs?: number },
+): number {
+ const windowMs = opts?.windowMs ?? RAGE_STREAK_WINDOW_MS;
+ if (previousStreak <= 0 || dtMs >= windowMs) return 1;
+ return previousStreak + 1;
+}
diff --git a/packages/app/src/editor/DocumentContext.tsx b/packages/app/src/editor/DocumentContext.tsx
index 8d8fb3b69..965a9763c 100644
--- a/packages/app/src/editor/DocumentContext.tsx
+++ b/packages/app/src/editor/DocumentContext.tsx
@@ -262,6 +262,8 @@ interface DocumentContextValue {
skillFocused: boolean;
/** Open an empty tab placeholder that the next sidebar document click can fill. */
openNewTab: () => void;
+ /** Focus the blob-runner tab, opening one if it is not already around. */
+ openBlobRunner: () => void;
/** Activate an existing empty tab placeholder. */
activateNewTab: (tabId: string) => void;
/** Close the empty tab placeholder and return to the nearest document tab. */
@@ -522,6 +524,35 @@ export function isSkillsNewTabId(id: string | null | undefined): boolean {
return id?.startsWith(SKILLS_NEW_TAB_PREFIX) ?? false;
}
+// The blob runner is a full-pane surface with no document behind it, so it
+// rides the same ephemeral new-tab placeholder the Skills home uses rather
+// than a standing tab id. Deliberately NOT a persisted tab kind: a game has no
+// state worth restoring across reloads, and the standing-singleton pattern was
+// retired from this codebase (see SKILLS_HUB_TAB_ID in editor-tabs.ts).
+const BLOB_RUNNER_NEW_TAB_PREFIX = 'new-tab:blob-runner:';
+
+/**
+ * Which full-pane surface a new-tab placeholder stands for. `NEW_TAB_PREFIX` is
+ * a literal prefix of the other two, so classification MUST test the specific
+ * surfaces first — a plain `startsWith(NEW_TAB_PREFIX)` matches all three.
+ */
+export type NewTabSurface = 'files' | 'skills' | 'blob-runner';
+
+const NEW_TAB_PREFIX_BY_SURFACE: Record<NewTabSurface, string> = {
+ files: NEW_TAB_PREFIX,
+ skills: SKILLS_NEW_TAB_PREFIX,
+ 'blob-runner': BLOB_RUNNER_NEW_TAB_PREFIX,
+};
+
+function newTabSurfaceOf(tabId: string): NewTabSurface {
+ if (isBlobRunnerNewTabId(tabId)) return 'blob-runner';
+ if (isSkillsNewTabId(tabId)) return 'skills';
+ return 'files';
+}
+export function isBlobRunnerNewTabId(id: string | null | undefined): boolean {
+ return id?.startsWith(BLOB_RUNNER_NEW_TAB_PREFIX) ?? false;
+}
+
/**
* Which surface a visible tab id belongs to (Skills vs Files) — covers both real
* open tabs (`isSkillTabId`) and ephemeral new-tab placeholders (`isSkillsNewTabId`).
@@ -1608,7 +1639,7 @@ export function DocumentProvider({ children }: { children: ReactNode }) {
openDocument(docName);
};
- function activateOrOpenSurfaceNewTab(paneId: EditorPaneId, skills: boolean) {
+ function activateOrOpenSurfaceNewTab(paneId: EditorPaneId, surface: NewTabSurface) {
const pane = workspaceRef.current.panes.find((candidate) => candidate.id === paneId);
if (!pane) return;
// A pane can hold several new tabs per surface, and a surface hub route
@@ -1617,11 +1648,11 @@ export function DocumentProvider({ children }: { children: ReactNode }) {
// the first. Without this the nav effect, which re-fires on the unchanged
// hub hash, steals activation from every other new tab on that surface.
const activeOnSurface =
- pane.activeNewTabId !== null && isSkillsNewTabId(pane.activeNewTabId) === skills
+ pane.activeNewTabId !== null && newTabSurfaceOf(pane.activeNewTabId) === surface
? pane.activeNewTabId
: null;
const existingTabId =
- activeOnSurface ?? pane.newTabIds.find((tabId) => isSkillsNewTabId(tabId) === skills);
+ activeOnSurface ?? pane.newTabIds.find((tabId) => newTabSurfaceOf(tabId) === surface);
setSkillsSidebarState(null);
if (existingTabId) {
updatePaneState(
@@ -1637,8 +1668,7 @@ export function DocumentProvider({ children }: { children: ReactNode }) {
return;
}
- const prefix = skills ? SKILLS_NEW_TAB_PREFIX : NEW_TAB_PREFIX;
- const nextNewTabId = `${prefix}${nextNewTabOrdinalRef.current}`;
+ const nextNewTabId = `${NEW_TAB_PREFIX_BY_SURFACE[surface]}${nextNewTabOrdinalRef.current}`;
nextNewTabOrdinalRef.current += 1;
commitWorkspace(
transitionEditorWorkspace(workspaceRef.current, {
@@ -1660,7 +1690,7 @@ export function DocumentProvider({ children }: { children: ReactNode }) {
const paneId = requestedPaneId ?? workspaceRef.current.focusedPaneId;
const p = getPool(collabUrl);
if (target.kind === 'skills') {
- activateOrOpenSurfaceNewTab(paneId, true);
+ activateOrOpenSurfaceNewTab(paneId, 'skills');
return;
}
const docName = docNameForNavigationTarget(target);
@@ -1705,6 +1735,10 @@ export function DocumentProvider({ children }: { children: ReactNode }) {
const activateTabById = (tabId: string) =>
activateTabInPaneById(workspaceRef.current.focusedPaneId, tabId);
+ const openBlobRunner = () => {
+ activateOrOpenSurfaceNewTab(workspaceRef.current.focusedPaneId, 'blob-runner');
+ };
+
const openNewTabInPaneById = (paneId: EditorPaneId) => {
const pane = workspaceRef.current.panes.find((candidate) => candidate.id === paneId);
if (!pane) return;
@@ -1742,7 +1776,12 @@ export function DocumentProvider({ children }: { children: ReactNode }) {
const closedSkillsTab = isSkillsNewTabId(tabId);
const remainsOnClosedSurface =
nextActiveTabId !== null && tabIdIsSkillSurface(nextActiveTabId) === closedSkillsTab;
- if (wasActive && !remainsOnClosedSurface) setSkillsSidebarState(closedSkillsTab);
+ // A blob-runner tab belongs to no sidebar surface, so closing one should
+ // leave the sidebar wherever it was. Without this guard it reads as a Files
+ // tab and pins the sidebar to Files even when the next active tab is Skills.
+ if (wasActive && !remainsOnClosedSurface && !isBlobRunnerNewTabId(tabId)) {
+ setSkillsSidebarState(closedSkillsTab);
+ }
commitWorkspace(
nextWorkspace,
workspaceRef.current.focusedPaneId === paneId && wasActive && remainsOnClosedSurface,
@@ -1775,7 +1814,7 @@ export function DocumentProvider({ children }: { children: ReactNode }) {
}
const pane = focusedPane(workspaceRef.current);
- activateOrOpenSurfaceNewTab(pane.id, next);
+ activateOrOpenSurfaceNewTab(pane.id, next ? 'skills' : 'files');
};
const closeActiveTabOrWindow = (): boolean => {
@@ -2084,7 +2123,7 @@ export function DocumentProvider({ children }: { children: ReactNode }) {
clearTarget: () => {
const pane = focusedPane(workspaceRef.current);
if (pane.activeNewTabId !== null && !isSkillsNewTabId(pane.activeNewTabId)) return;
- activateOrOpenSurfaceNewTab(pane.id, false);
+ activateOrOpenSurfaceNewTab(pane.id, 'files');
},
closeDocument: (docName: string) => {
markTabSessionClosedDuringRestore();
@@ -2108,6 +2147,7 @@ export function DocumentProvider({ children }: { children: ReactNode }) {
activeNewTabId: surfacePane.activeNewTabId,
isNewTabActive: surfacePane.activeNewTabId !== null,
openNewTab: openNewTabById,
+ openBlobRunner,
activateNewTab: (tabId: string) =>
activateNewTabInPaneById(workspaceRef.current.focusedPaneId, tabId),
closeNewTab: closeNewTabById,
@@ -2279,6 +2319,18 @@ export function DocumentProvider({ children }: { children: ReactNode }) {
return <DocumentContext value={value}>{children}</DocumentContext>;
}
+/**
+ * The blob-runner opener, or null outside a `DocumentProvider`.
+ *
+ * `HelpPopover` is a generic resources menu, not an editor-only surface: the
+ * Navigator window mounts no provider and the menu's own tests render it
+ * standalone. Hard-requiring the document context there would trade a menu
+ * entry for a crash, so callers hide the row when this is null.
+ */
+export function useOpenBlobRunner(): (() => void) | null {
+ return use(DocumentContext)?.openBlobRunner ?? null;
+}
+
export function useDocumentContext(): DocumentContextValue {
const ctx = use(DocumentContext);
if (!ctx) {
diff --git a/packages/app/src/lib/blob-run-keyboard.ts b/packages/app/src/lib/blob-run-keyboard.ts
new file mode 100644
index 000000000..d822e43df
--- /dev/null
+++ b/packages/app/src/lib/blob-run-keyboard.ts
@@ -0,0 +1,35 @@
+import { isOverlayLayerOpen } from '@/lib/overlay-layers';
+
+/**
+ * Controls that own the keyboard while focused. The game's key handlers defer
+ * to anything in here rather than stealing Space from it.
+ */
+const INTERACTIVE_FOCUS_SELECTOR =
+ 'button, a[href], input, textarea, select, [contenteditable="true"], [role="button"], [role="menuitem"]';
+
+export function focusIsOnAControl(): boolean {
+ if (typeof document === 'undefined') return false;
+ const active = document.activeElement;
+ if (!active || active === document.body) return false;
+ return active instanceof Element && active.matches(INTERACTIVE_FOCUS_SELECTOR);
+}
+
+/**
+ * Whether the game may act on an app-global key right now.
+ *
+ * Two independent reasons to stand down, and both matter:
+ *
+ * - An overlay layer owns the keyboard. This is the codebase's existing rule
+ * for app-global listeners (`isOverlayLayerOpen`), and the error screens
+ * that host the game can open a bug-report dialog directly on top of it.
+ * - A control has focus, so Space is its activation key.
+ *
+ * `allowWhileFocused` exists for keys no control treats as activation (the
+ * arrows). Those may still act with a button focused, but never under an
+ * overlay.
+ */
+export function gameMayHandleKey(options: { allowWhileFocused?: boolean } = {}): boolean {
+ if (isOverlayLayerOpen()) return false;
+ if (options.allowWhileFocused) return true;
+ return !focusIsOnAControl();
+}
diff --git a/packages/app/src/lib/command-menu-parity.test.ts b/packages/app/src/lib/command-menu-parity.test.ts
index 3610617f2..65475575e 100644
--- a/packages/app/src/lib/command-menu-parity.test.ts
+++ b/packages/app/src/lib/command-menu-parity.test.ts
@@ -533,6 +533,9 @@ describe('command identity registry (Phase 2b)', () => {
// have nothing to emit. The known override ids are the dialog / bridge /
// renderer commands.
const OVERRIDES = new Set<string>([
+ // Renderer-only: opens a client-side tab, so there is no menu action to
+ // emit and deliberately no native-menu placement.
+ 'open-blob-run',
'new-file',
'new-folder',
'open-graph',
diff --git a/packages/app/src/lib/view-transition.ts b/packages/app/src/lib/view-transition.ts
new file mode 100644
index 000000000..bd4574bea
--- /dev/null
+++ b/packages/app/src/lib/view-transition.ts
@@ -0,0 +1,43 @@
+import { flushSync } from 'react-dom';
+
+/**
+ * Stable identity the browser morphs between surfaces. The empty-state mascot
+ * and the game's player are the same character, so naming both lets the View
+ * Transitions API tween the one between the other instead of cutting.
+ */
+export const MASCOT_VIEW_TRANSITION_NAME = 'ok-blob-mascot';
+
+type ViewTransitionDocument = Document & {
+ startViewTransition?: (callback: () => void) => { finished: Promise<void> };
+};
+
+/**
+ * Run a state update inside a view transition when the platform offers one.
+ *
+ * `flushSync` is load-bearing: the callback must leave the DOM in its final
+ * state before it returns, and React's concurrent rendering would otherwise
+ * commit after the browser has already taken its "after" snapshot, producing a
+ * transition between two identical frames.
+ *
+ * Falls back to a plain update when the API is missing or the user asked for
+ * reduced motion, so the caller never has to branch.
+ */
+export function withViewTransition(update: () => void): void {
+ if (typeof document === 'undefined') {
+ update();
+ return;
+ }
+ const start = (document as ViewTransitionDocument).startViewTransition;
+ const prefersReducedMotion =
+ typeof window !== 'undefined' &&
+ typeof window.matchMedia === 'function' &&
+ window.matchMedia('(prefers-reduced-motion: reduce)').matches;
+
+ if (typeof start !== 'function' || prefersReducedMotion) {
+ update();
+ return;
+ }
+ start.call(document, () => {
+ flushSync(update);
+ });
+}
diff --git a/packages/app/src/locales/ar/messages.json b/packages/app/src/locales/ar/messages.json
index 3afba1178..3b0024d34 100644
--- a/packages/app/src/locales/ar/messages.json
+++ b/packages/app/src/locales/ar/messages.json
@@ -390,6 +390,7 @@
"4mp6Tv": ["عرض OpenKnowledge المهارات المثبّتة"],
"4niEzY": ["تضمين HTML معزول — اكتب HTML وشاهد المعاينة المعروضة مباشرةً."],
"4nj6n8": ["أعاد /api/config الرمز ", ["code"]],
+ "4o57um": ["انتهت اللعبة · اضغط مسافة للعب مرة أخرى"],
"4pDZ2N": ["أُزيلت «", ["0"], "» من كل موقع آخر — ولا يزال مجلدها المصدر يُحمَّل"],
"4rjwLG": ["الإنشاء باستخدام واجهة ", ["0"], " السطرية"],
"4sKwf6": ["الملف موجود بالفعل"],
@@ -669,6 +670,7 @@
"8PifYj": ["مخطط Mermaid"],
"8PmoQF": ["افتح قائمة الإدراج في موضع نصي فارغ أو نشط."],
"8RtNI0": ["فشل تحميل المستندات"],
+ "8SrrDi": ["رقم قياسي جديد · اضغط مسافة للعب مرة أخرى"],
"8TvlHF": ["تفريغ الأعطال"],
"8Uv5e6": ["الوكلاء"],
"8Vq20-": ["تبديل شجرة العمل"],
@@ -715,6 +717,7 @@
"99eR72": ["تحديد جدول المحرر المرئي"],
"9Bd18D": ["فشل تحميل الصفحات المحورية"],
"9EykGQ": ["إدراج عمود إلى اليمين"],
+ "9GbR5F": ["الأعلى"],
"9HKBNN": ["أوامر"],
"9Ii3uK": ["جزء جديد على يسار ", ["0"]],
"9J8xNg": ["تم استيراد ", ["importedLabel"]],
@@ -820,6 +823,7 @@
"ASqqsQ": ["بحد أقصى ", ["MAX_ATTACHMENTS"], " مرفقات"],
"AT0e50": ["الاحتفاظ بكليهما"],
"ATGYL1": ["عنوان البريد الإلكتروني"],
+ "AUMPjj": ["مسافة للقفز، سهم لأسفل للانحناء. هذه هي اللعبة كلها."],
"AUV-TY": ["يفكّر"],
"AVW-K9": ["فشل تحميل الصفحات اليتيمة"],
"AWOSPo": ["تكبير"],
@@ -1778,6 +1782,7 @@
"MqsbfN": ["هل تشغّل معاينات الروابط الخارجية؟"],
"MrUmCD": ["فشل غير معروف في البناء"],
"MrwYIK": ["بدّل تعليق المصدر عبر CodeMirror."],
+ "MsARMw": ["العب Blob Run"],
"MuxcRB": ["يتيح ", ["0"], " لـ ", ["1"], " التصرف دون سؤال"],
"Mv2lM4": [
"لم يتم تثبيت المهارة «",
@@ -2015,6 +2020,7 @@
"QQghPu": ["التثبيت في Claude Desktop"],
"QR5SP1": ["أنشأ قالبًا"],
"QTsvh1": ["يحتاج هذا الوكيل إلى تسجيل دخولك أولًا — انظر الإشعار أدناه."],
+ "QUhYEG": ["مسافة للقفز · سهم لأسفل للانحناء"],
"QWdKwH": ["نقل"],
"QYTOaN": ["يمكنك تغيير هذا لاحقًا من <0>الإعدادات ← المزامنة</0>."],
"QYfQdv": ["واجهة ", ["displayName"], " السطرية"],
@@ -3358,6 +3364,7 @@
"habOU_": ["فشل تحديث إعداد الموافقة التلقائية — ", ["detail"]],
"he3ygx": ["نسخ"],
"hgF0al": ["استخدام ", ["0"], " للوضع الفاتح النشط"],
+ "hgf5io": ["Blob Run"],
"hgtsat": ["فشل حذف ", ["file"]],
"hh4mVC": ["اطلب من الذكاء الاصطناعي إصلاح ", ["flatId"]],
"hhI__i": ["هل تريد بالتأكيد حذف ‏«", ["name"], "» ومحتوياته؟"],
@@ -4549,6 +4556,7 @@
". هل تختار مجلدًا آخر؟"
],
"wGSHzy": ["تنشيط أحد أول ثمانية تبويبات في المحرر."],
+ "wIM7ul": ["اضغط مسافة أو انقر على الـ blob للبدء"],
"wJijgU": ["الموقع"],
"wJo9oS": ["إغلاق البحث"],
"wQp1V3": ["مرآة لـ <0>", ["src"], "</0>"],
diff --git a/packages/app/src/locales/ar/messages.po b/packages/app/src/locales/ar/messages.po
index ad540a3e2..10847ca33 100644
--- a/packages/app/src/locales/ar/messages.po
+++ b/packages/app/src/locales/ar/messages.po
@@ -1861,6 +1861,13 @@ msgstr "ويكي الطيور"
msgid "Blank note"
msgstr "ملاحظة فارغة"
+#: src/components/command-palette-commands.ts
+#: src/components/EditorTabs.tsx
+#: src/components/HelpPopover.tsx
+#: src/components/OkBlobRunnerPage.tsx
+msgid "Blob Run"
+msgstr "Blob Run"
+
#: src/editor/slash-command/component-items.tsx
msgid "Block math equation rendered with KaTeX from a LaTeX source string."
msgstr "معادلة رياضية بكتلة مستقلة تُعرض بواسطة KaTeX من نص مصدري بصيغة LaTeX."
@@ -5608,6 +5615,10 @@ msgstr "مزامنة كاملة — تُدفع إيداعاتك وتُسحب ت
msgid "Full sync — your edits are committed and pushed to your remote automatically."
msgstr "مزامنة كاملة — تُودَع تعديلاتك وتُدفع إلى مستودعك البعيد تلقائيًا."
+#: src/components/OkBlobRunner.tsx
+msgid "Game over · press space to play again"
+msgstr "انتهت اللعبة · اضغط مسافة للعب مرة أخرى"
+
#: src/lib/keyboard-shortcuts.ts
msgid "General"
msgstr "عام"
@@ -5837,6 +5848,10 @@ msgstr "مساعدة"
msgid "Helps your coding agent recognize OpenKnowledge projects and route reads and writes through it."
msgstr "يساعد وكيل البرمجة لديك على التعرف على مشاريع OpenKnowledge وتوجيه القراءات والكتابات عبره."
+#: src/components/OkBlobRunner.tsx
+msgid "HI"
+msgstr "الأعلى"
+
#: src/components/EditorTabTargetMenuItems.tsx
#: src/components/FileTree.tsx
msgid "Hidden “{basename}”"
@@ -7403,6 +7418,10 @@ msgstr "جديد"
msgid "New {0} chat"
msgstr "محادثة {0} جديدة"
+#: src/components/OkBlobRunner.tsx
+msgid "New best · press space to play again"
+msgstr "رقم قياسي جديد · اضغط مسافة للعب مرة أخرى"
+
#: src/components/NewWorktreeDialog.tsx
msgid "New branch <0>{trimmed}</0> will be created from <1>{currentBaseLabel}</1>, in its own worktree under <2>.ok/worktrees/</2>."
msgstr "سيُنشأ الفرع الجديد <0>{trimmed}</0> من <1>{currentBaseLabel}</1>، في شجرة عمل خاصة به تحت <2>.ok/worktrees/</2>."
@@ -8990,6 +9009,10 @@ msgstr "نص عادي"
msgid "Plan ({done}/{0})"
msgstr "الخطة ({done}/{0})"
+#: src/components/ConnectingBanner.tsx
+msgid "Play Blob Run"
+msgstr "العب Blob Run"
+
#: src/components/FeedbackForm.tsx
msgid "Please choose Good or Not great."
msgstr "يرجى اختيار «جيد» أو «ليس رائعًا»."
@@ -9048,6 +9071,10 @@ msgstr "اعرض مستندًا كشرائح تقديمية في نافذة خا
msgid "Present a document as a slide deck in its own window. Works in the OpenKnowledge desktop app only, and needs the Slidev CLI, which you install separately. When on, it appears under Plugins in the sidebar."
msgstr "اعرض مستندًا كشرائح تقديمية في نافذة خاصة به. يعمل في تطبيق OpenKnowledge لسطح المكتب فقط، ويتطلّب واجهة Slidev لسطر الأوامر التي تُثبَّت بشكل منفصل. عند التمكين يظهر ضمن Plugins في الشريط الجانبي."
+#: src/components/OkBlobRunner.tsx
+msgid "Press space or tap the blob to start"
+msgstr "اضغط مسافة أو انقر على الـ blob للبدء"
+
#: src/components/EditorWorkspace.tsx
msgid "Press Space to pick up a tab. Use the arrow keys to move it within a tab strip, then press Space or Enter to drop it. Press Shift+F10 or the Menu key to open the tab context menu for split, close, pin, and other tab actions."
msgstr "اضغط مفتاح المسافة لالتقاط علامة تبويب. استخدم مفاتيح الأسهم لتحريكها داخل شريط علامات التبويب، ثم اضغط المسافة أو Enter لإفلاتها. اضغط Shift+F10 أو مفتاح القائمة لفتح قائمة سياق علامة التبويب، وفيها إجراءات التقسيم والإغلاق والتثبيت وغيرها."
@@ -11204,6 +11231,14 @@ msgstr "بحث المصدر"
msgid "Source undo or redo"
msgstr "تراجع أو إعادة في المصدر"
+#: src/components/OkBlobRunner.tsx
+msgid "Space to jump · down arrow to duck"
+msgstr "مسافة للقفز · سهم لأسفل للانحناء"
+
+#: src/components/OkBlobRunnerPage.tsx
+msgid "Space to jump, down arrow to duck. That is the whole game."
+msgstr "مسافة للقفز، سهم لأسفل للانحناء. هذه هي اللعبة كلها."
+
#: src/lib/keyboard-shortcuts.ts
msgid "Split list item"
msgstr "تقسيم عنصر القائمة"
diff --git a/packages/app/src/locales/bn/messages.json b/packages/app/src/locales/bn/messages.json
index c5c685ced..6cf336a22 100644
--- a/packages/app/src/locales/bn/messages.json
+++ b/packages/app/src/locales/bn/messages.json
@@ -327,6 +327,7 @@
"4mp6Tv": ["OpenKnowledge ইনস্টল করা স্কিলগুলির তালিকা দেখিয়েছে"],
"4niEzY": ["স্যান্ডবক্স করা HTML এমবেড — HTML লিখুন, রেন্ডার করা প্রাকদর্শন সঙ্গে সঙ্গে দেখুন।"],
"4nj6n8": ["/api/config HTTP ", ["code"], " ফিরিয়েছে"],
+ "4o57um": ["খেলা শেষ · আবার খেলতে স্পেস চাপুন"],
"4pDZ2N": ["\"", ["0"], "\"-কে অন্য প্রতিটি জায়গা থেকে সরানো হয়েছে — এর উৎস ফোল্ডার এখনও লোড হয়"],
"4rjwLG": [["0"], " CLI দিয়ে তৈরি করুন"],
"4sKwf6": ["ফাইলটি আগে থেকেই আছে"],
@@ -567,6 +568,7 @@
"8PifYj": ["Mermaid চিত্র"],
"8PmoQF": ["কোনো খালি বা সক্রিয় লেখার অবস্থানে সন্নিবেশ মেনু খুলুন।"],
"8RtNI0": ["নথি লোড করতে ব্যর্থ"],
+ "8SrrDi": ["নতুন রেকর্ড · আবার খেলতে স্পেস চাপুন"],
"8TvlHF": ["ক্র্যাশ ডাম্প"],
"8Uv5e6": ["এজেন্ট"],
"8Vq20-": ["ওয়ার্কট্রি বদলান"],
@@ -617,6 +619,7 @@
"99eR72": ["দৃশ্য সম্পাদকের টেবিল নির্বাচন"],
"9Bd18D": ["হাব পাতা লোড করতে ব্যর্থ"],
"9EykGQ": ["ডানে কলাম যোগ করুন"],
+ "9GbR5F": ["সর্বোচ্চ"],
"9HKBNN": ["কমান্ড"],
"9Ii3uK": [["0"], "-এর বাঁ পাশে একটি নতুন প্যান"],
"9J8xNg": [["importedLabel"], " আমদানি করা হয়েছে"],
@@ -706,6 +709,7 @@
"ASqqsQ": ["সর্বোচ্চ ", ["MAX_ATTACHMENTS"], "টি সংযুক্তি"],
"AT0e50": ["দুটোই রাখুন"],
"ATGYL1": ["ইমেইল ঠিকানা"],
+ "AUMPjj": ["লাফাতে স্পেস, নিচু হতে নিচের তির। খেলাটা এটুকুই।"],
"AUV-TY": ["ভাবছে"],
"AVW-K9": ["অনাথ পাতা লোড করতে ব্যর্থ"],
"AWOSPo": ["বড় করুন"],
@@ -1503,6 +1507,7 @@
"MqsbfN": ["বাইরের লিংকের প্রাকদর্শন চালু করবেন?"],
"MrUmCD": ["অজানা বিল্ড ব্যর্থতা"],
"MrwYIK": ["CodeMirror-এর মাধ্যমে একটি সোর্স মন্তব্য চালু বা বন্ধ করুন।"],
+ "MsARMw": ["Blob Run খেলুন"],
"MuxcRB": [["0"], " ", ["1"], "-কে না জিজ্ঞেস করেই কাজ করতে দেয়"],
"Mv2lM4": [
["conflictHosts"],
@@ -1744,6 +1749,7 @@
"QQghPu": ["Claude Desktop-এ ইনস্টল করুন"],
"QR5SP1": ["টেমপ্লেট তৈরি হয়েছে"],
"QTsvh1": ["এই এজেন্টের জন্য আপনাকে আগে সাইন ইন করতে হবে — নিচের বিজ্ঞপ্তিটি দেখুন।"],
+ "QUhYEG": ["লাফাতে স্পেস · নিচু হতে নিচের তির"],
"QWdKwH": ["সরান"],
"QYTOaN": ["আপনি এটি পরে <0>Settings → Sync</0>-এ বদলাতে পারেন।"],
"QYfQdv": [["displayName"], " CLI"],
@@ -2882,6 +2888,7 @@
"habOU_": ["স্বয়ংক্রিয় অনুমোদনের সেটিং হালনাগাদ করতে ব্যর্থ — ", ["detail"]],
"he3ygx": ["কপি করুন"],
"hgF0al": ["সক্রিয় হালকা মোডের জন্য ", ["0"], " ব্যবহার করুন"],
+ "hgf5io": ["Blob Run"],
"hgtsat": [["file"], " মুছতে ব্যর্থ"],
"hh4mVC": ["AI-কে ", ["flatId"], " ঠিক করতে বলুন"],
"hhI__i": ["আপনি কি নিশ্চিতভাবে {name} এবং তার বিষয়বস্তু মুছতে চান?"],
@@ -3904,6 +3911,7 @@
"-এর ক্লোন নয়। অন্য ফোল্ডার বেছে নেবেন?"
],
"wGSHzy": ["প্রথম আটটি সম্পাদক ট্যাবের যেকোনো একটি সক্রিয় করুন।"],
+ "wIM7ul": ["শুরু করতে স্পেস চাপুন বা blob-এ ট্যাপ করুন"],
"wJijgU": ["জায়গা"],
"wJo9oS": ["খোঁজা বন্ধ করুন"],
"wQp1V3": ["<0>", ["src"], "</0>-এর মিরর"],
diff --git a/packages/app/src/locales/bn/messages.po b/packages/app/src/locales/bn/messages.po
index fd4a97995..cae73903b 100644
--- a/packages/app/src/locales/bn/messages.po
+++ b/packages/app/src/locales/bn/messages.po
@@ -1857,6 +1857,13 @@ msgstr "পাখি উইকি"
msgid "Blank note"
msgstr "খালি নোট"
+#: src/components/command-palette-commands.ts
+#: src/components/EditorTabs.tsx
+#: src/components/HelpPopover.tsx
+#: src/components/OkBlobRunnerPage.tsx
+msgid "Blob Run"
+msgstr "Blob Run"
+
#: src/editor/slash-command/component-items.tsx
msgid "Block math equation rendered with KaTeX from a LaTeX source string."
msgstr "একটি LaTeX সোর্স স্ট্রিং থেকে KaTeX দিয়ে রেন্ডার করা ব্লক গাণিতিক সমীকরণ।"
@@ -5604,6 +5611,10 @@ msgstr "পূর্ণ সিঙ্ক — আপনার কমিট পা
msgid "Full sync — your edits are committed and pushed to your remote automatically."
msgstr "পূর্ণ সিঙ্ক — আপনার সম্পাদনা নিজে থেকেই কমিট হয়ে আপনার রিমোটে পাঠানো হয়।"
+#: src/components/OkBlobRunner.tsx
+msgid "Game over · press space to play again"
+msgstr "খেলা শেষ · আবার খেলতে স্পেস চাপুন"
+
#: src/lib/keyboard-shortcuts.ts
msgid "General"
msgstr "সাধারণ"
@@ -5833,6 +5844,10 @@ msgstr "সহায়তা"
msgid "Helps your coding agent recognize OpenKnowledge projects and route reads and writes through it."
msgstr "আপনার কোডিং এজেন্টকে OpenKnowledge প্রকল্প চিনতে এবং পড়া ও লেখা তার মাধ্যমেই করতে সাহায্য করে।"
+#: src/components/OkBlobRunner.tsx
+msgid "HI"
+msgstr "সর্বোচ্চ"
+
#: src/components/EditorTabTargetMenuItems.tsx
#: src/components/FileTree.tsx
msgid "Hidden “{basename}”"
@@ -7399,6 +7414,10 @@ msgstr "নতুন"
msgid "New {0} chat"
msgstr "নতুন {0} আলাপ"
+#: src/components/OkBlobRunner.tsx
+msgid "New best · press space to play again"
+msgstr "নতুন রেকর্ড · আবার খেলতে স্পেস চাপুন"
+
#: src/components/NewWorktreeDialog.tsx
msgid "New branch <0>{trimmed}</0> will be created from <1>{currentBaseLabel}</1>, in its own worktree under <2>.ok/worktrees/</2>."
msgstr "নতুন ব্রাঞ্চ <0>{trimmed}</0> <1>{currentBaseLabel}</1> থেকে তৈরি হবে, <2>.ok/worktrees/</2>-এর নিচে নিজের ওয়ার্কট্রিতে।"
@@ -8986,6 +9005,10 @@ msgstr "সাধারণ টেক্সট"
msgid "Plan ({done}/{0})"
msgstr "পরিকল্পনা ({done}/{0})"
+#: src/components/ConnectingBanner.tsx
+msgid "Play Blob Run"
+msgstr "Blob Run খেলুন"
+
#: src/components/FeedbackForm.tsx
msgid "Please choose Good or Not great."
msgstr "অনুগ্রহ করে ভালো বা তেমন ভালো নয় বাছুন।"
@@ -9044,6 +9067,10 @@ msgstr "একটি নথিকে আলাদা উইন্ডোতে
msgid "Present a document as a slide deck in its own window. Works in the OpenKnowledge desktop app only, and needs the Slidev CLI, which you install separately. When on, it appears under Plugins in the sidebar."
msgstr "একটি নথিকে আলাদা উইন্ডোতে স্লাইড ডেক হিসেবে উপস্থাপন করুন। শুধু OpenKnowledge ডেস্কটপ অ্যাপে কাজ করে এবং Slidev CLI প্রয়োজন, যা আলাদাভাবে ইনস্টল করতে হয়। চালু থাকলে সাইডবারে Plugins-এর নিচে দেখা যায়।"
+#: src/components/OkBlobRunner.tsx
+msgid "Press space or tap the blob to start"
+msgstr "শুরু করতে স্পেস চাপুন বা blob-এ ট্যাপ করুন"
+
#: src/components/EditorWorkspace.tsx
msgid "Press Space to pick up a tab. Use the arrow keys to move it within a tab strip, then press Space or Enter to drop it. Press Shift+F10 or the Menu key to open the tab context menu for split, close, pin, and other tab actions."
msgstr "একটি ট্যাব তুলতে Space চাপুন। ট্যাব স্ট্রিপের মধ্যে সরাতে তির চিহ্নের কী ব্যবহার করুন, তারপর নামাতে Space বা Enter চাপুন। বিভাজন, বন্ধ, পিন এবং অন্যান্য ট্যাব ক্রিয়া সহ কনটেক্সট মেনু খুলতে Shift+F10 বা Menu কী চাপুন।"
@@ -11200,6 +11227,14 @@ msgstr "সোর্স অনুসন্ধান"
msgid "Source undo or redo"
msgstr "সোর্সে পূর্বাবস্থা বা পুনরায়"
+#: src/components/OkBlobRunner.tsx
+msgid "Space to jump · down arrow to duck"
+msgstr "লাফাতে স্পেস · নিচু হতে নিচের তির"
+
+#: src/components/OkBlobRunnerPage.tsx
+msgid "Space to jump, down arrow to duck. That is the whole game."
+msgstr "লাফাতে স্পেস, নিচু হতে নিচের তির। খেলাটা এটুকুই।"
+
#: src/lib/keyboard-shortcuts.ts
msgid "Split list item"
msgstr "তালিকা আইটেম ভাগ করুন"
diff --git a/packages/app/src/locales/en/messages.json b/packages/app/src/locales/en/messages.json
index ee7274655..66520fd1b 100644
--- a/packages/app/src/locales/en/messages.json
+++ b/packages/app/src/locales/en/messages.json
@@ -336,6 +336,7 @@
"4mp6Tv": ["OpenKnowledge listed the installed skills"],
"4niEzY": ["Sandboxed HTML embed — write HTML, see the rendered preview live."],
"4nj6n8": ["/api/config returned HTTP ", ["code"]],
+ "4o57um": ["Game over · press space to play again"],
"4pDZ2N": ["Removed \"", ["0"], "\" from every other location — its source folder still loads"],
"4rjwLG": ["Create with ", ["0"], " CLI"],
"4sKwf6": ["File already exists"],
@@ -594,6 +595,7 @@
"8PifYj": ["Mermaid diagram"],
"8PmoQF": ["Open the insert menu in an empty or active text position."],
"8RtNI0": ["Failed to load documents"],
+ "8SrrDi": ["New best · press space to play again"],
"8TvlHF": ["Crash dump"],
"8Uv5e6": ["Agents"],
"8Vq20-": ["Switch worktree"],
@@ -644,6 +646,7 @@
"99eR72": ["Visual editor table selection"],
"9Bd18D": ["Failed to load hub pages"],
"9EykGQ": ["Insert column right"],
+ "9GbR5F": ["HI"],
"9HKBNN": ["commands"],
"9Ii3uK": ["a new pane to the left of ", ["0"]],
"9J8xNg": ["Imported ", ["importedLabel"]],
@@ -734,6 +737,7 @@
"ASqqsQ": ["Maximum ", ["MAX_ATTACHMENTS"], " attachments"],
"AT0e50": ["Keep both"],
"ATGYL1": ["Email address"],
+ "AUMPjj": ["Space to jump, down arrow to duck. That is the whole game."],
"AUV-TY": ["Thinking"],
"AVW-K9": ["Failed to load orphan pages"],
"AWOSPo": ["Zoom in"],
@@ -1562,6 +1566,7 @@
"MqsbfN": ["Turn on external link previews?"],
"MrUmCD": ["unknown build failure"],
"MrwYIK": ["Toggle a source comment through CodeMirror."],
+ "MsARMw": ["Play Blob Run"],
"MuxcRB": [["0"], " lets ", ["1"], " act without asking"],
"Mv2lM4": [
"Skill \"",
@@ -1805,6 +1810,7 @@
"QQghPu": ["Install in Claude Desktop"],
"QR5SP1": ["created template"],
"QTsvh1": ["This agent needs you to sign in first — see the notice below."],
+ "QUhYEG": ["Space to jump · down arrow to duck"],
"QWdKwH": ["Move"],
"QYTOaN": ["You can change this later in <0>Settings → Sync</0>."],
"QYfQdv": [["displayName"], " CLI"],
@@ -2987,6 +2993,7 @@
"habOU_": ["Failed to update the auto-approve setting — ", ["detail"]],
"he3ygx": ["Copy"],
"hgF0al": ["Use ", ["0"], " for the active light mode"],
+ "hgf5io": ["Blob Run"],
"hgtsat": ["Failed to delete ", ["file"]],
"hh4mVC": ["Ask AI to fix ", ["flatId"]],
"hhI__i": ["Are you sure you want to delete {name} and its contents?"],
@@ -4055,6 +4062,7 @@
". Pick a different folder?"
],
"wGSHzy": ["Activate one of the first eight editor tabs."],
+ "wIM7ul": ["Press space or tap the blob to start"],
"wJijgU": ["Location"],
"wJo9oS": ["Close find"],
"wQp1V3": ["Mirror of <0>", ["src"], "</0>"],
diff --git a/packages/app/src/locales/en/messages.po b/packages/app/src/locales/en/messages.po
index e9277c6ef..d2e3d5dd8 100644
--- a/packages/app/src/locales/en/messages.po
+++ b/packages/app/src/locales/en/messages.po
@@ -1861,6 +1861,13 @@ msgstr "Bird wiki"
msgid "Blank note"
msgstr "Blank note"
+#: src/components/command-palette-commands.ts
+#: src/components/EditorTabs.tsx
+#: src/components/HelpPopover.tsx
+#: src/components/OkBlobRunnerPage.tsx
+msgid "Blob Run"
+msgstr "Blob Run"
+
#: src/editor/slash-command/component-items.tsx
msgid "Block math equation rendered with KaTeX from a LaTeX source string."
msgstr "Block math equation rendered with KaTeX from a LaTeX source string."
@@ -5608,6 +5615,10 @@ msgstr "Full sync — your commits push and remote changes pull automatically."
msgid "Full sync — your edits are committed and pushed to your remote automatically."
msgstr "Full sync — your edits are committed and pushed to your remote automatically."
+#: src/components/OkBlobRunner.tsx
+msgid "Game over · press space to play again"
+msgstr "Game over · press space to play again"
+
#: src/lib/keyboard-shortcuts.ts
msgid "General"
msgstr "General"
@@ -5837,6 +5848,10 @@ msgstr "Help"
msgid "Helps your coding agent recognize OpenKnowledge projects and route reads and writes through it."
msgstr "Helps your coding agent recognize OpenKnowledge projects and route reads and writes through it."
+#: src/components/OkBlobRunner.tsx
+msgid "HI"
+msgstr "HI"
+
#: src/components/EditorTabTargetMenuItems.tsx
#: src/components/FileTree.tsx
msgid "Hidden “{basename}”"
@@ -7403,6 +7418,10 @@ msgstr "New"
msgid "New {0} chat"
msgstr "New {0} chat"
+#: src/components/OkBlobRunner.tsx
+msgid "New best · press space to play again"
+msgstr "New best · press space to play again"
+
#: src/components/NewWorktreeDialog.tsx
msgid "New branch <0>{trimmed}</0> will be created from <1>{currentBaseLabel}</1>, in its own worktree under <2>.ok/worktrees/</2>."
msgstr "New branch <0>{trimmed}</0> will be created from <1>{currentBaseLabel}</1>, in its own worktree under <2>.ok/worktrees/</2>."
@@ -8990,6 +9009,10 @@ msgstr "Plain text"
msgid "Plan ({done}/{0})"
msgstr "Plan ({done}/{0})"
+#: src/components/ConnectingBanner.tsx
+msgid "Play Blob Run"
+msgstr "Play Blob Run"
+
#: src/components/FeedbackForm.tsx
msgid "Please choose Good or Not great."
msgstr "Please choose Good or Not great."
@@ -9048,6 +9071,10 @@ msgstr "Present a document as a slide deck in its own window. Add <0>slides: tru
msgid "Present a document as a slide deck in its own window. Works in the OpenKnowledge desktop app only, and needs the Slidev CLI, which you install separately. When on, it appears under Plugins in the sidebar."
msgstr "Present a document as a slide deck in its own window. Works in the OpenKnowledge desktop app only, and needs the Slidev CLI, which you install separately. When on, it appears under Plugins in the sidebar."
+#: src/components/OkBlobRunner.tsx
+msgid "Press space or tap the blob to start"
+msgstr "Press space or tap the blob to start"
+
#: src/components/EditorWorkspace.tsx
msgid "Press Space to pick up a tab. Use the arrow keys to move it within a tab strip, then press Space or Enter to drop it. Press Shift+F10 or the Menu key to open the tab context menu for split, close, pin, and other tab actions."
msgstr "Press Space to pick up a tab. Use the arrow keys to move it within a tab strip, then press Space or Enter to drop it. Press Shift+F10 or the Menu key to open the tab context menu for split, close, pin, and other tab actions."
@@ -11204,6 +11231,14 @@ msgstr "Source search"
msgid "Source undo or redo"
msgstr "Source undo or redo"
+#: src/components/OkBlobRunner.tsx
+msgid "Space to jump · down arrow to duck"
+msgstr "Space to jump · down arrow to duck"
+
+#: src/components/OkBlobRunnerPage.tsx
+msgid "Space to jump, down arrow to duck. That is the whole game."
+msgstr "Space to jump, down arrow to duck. That is the whole game."
+
#: src/lib/keyboard-shortcuts.ts
msgid "Split list item"
msgstr "Split list item"
diff --git a/packages/app/src/locales/es/messages.json b/packages/app/src/locales/es/messages.json
index df0154aac..4a7db9dcc 100644
--- a/packages/app/src/locales/es/messages.json
+++ b/packages/app/src/locales/es/messages.json
@@ -395,6 +395,7 @@
"Incrustación de HTML aislada: escribe HTML y ve la vista previa renderizada en vivo."
],
"4nj6n8": ["/api/config devolvió HTTP ", ["code"]],
+ "4o57um": ["Fin del juego · pulsa espacio para jugar de nuevo"],
"4pDZ2N": [
"Se quitó \"",
["0"],
@@ -696,6 +697,7 @@
"8PifYj": ["Diagrama de Mermaid"],
"8PmoQF": ["Abre el menú de inserción en una posición de texto vacía o activa."],
"8RtNI0": ["No se pudieron cargar los documentos"],
+ "8SrrDi": ["Nuevo récord · pulsa espacio para jugar de nuevo"],
"8TvlHF": ["Volcado de fallo"],
"8Uv5e6": ["Agentes"],
"8Vq20-": ["Cambiar de worktree"],
@@ -746,6 +748,7 @@
"99eR72": ["Selección de tabla del editor visual"],
"9Bd18D": ["No se pudieron cargar las páginas índice"],
"9EykGQ": ["Insertar columna a la derecha"],
+ "9GbR5F": ["MÁX"],
"9HKBNN": ["comandos"],
"9Ii3uK": ["un panel nuevo a la izquierda de ", ["0"]],
"9J8xNg": ["Se importó ", ["importedLabel"]],
@@ -853,6 +856,7 @@
"ASqqsQ": ["Máximo ", ["MAX_ATTACHMENTS"], " adjuntos"],
"AT0e50": ["Conservar ambos"],
"ATGYL1": ["Dirección de correo"],
+ "AUMPjj": ["Espacio para saltar, flecha abajo para agacharse. Ese es todo el juego."],
"AUV-TY": ["Pensando"],
"AVW-K9": ["No se pudieron cargar las páginas huérfanas"],
"AWOSPo": ["Acercar"],
@@ -1814,6 +1818,7 @@
"MqsbfN": ["¿Activar la vista previa de enlaces externos?"],
"MrUmCD": ["fallo de compilación desconocido"],
"MrwYIK": ["Activa o desactiva un comentario en el código con CodeMirror."],
+ "MsARMw": ["Jugar a Blob Run"],
"MuxcRB": [["0"], " permite que ", ["1"], " actúe sin preguntar"],
"Mv2lM4": [
"No se instaló la skill «",
@@ -2071,6 +2076,7 @@
"QQghPu": ["Instalar en Claude Desktop"],
"QR5SP1": ["plantilla creada"],
"QTsvh1": ["Este agente necesita que inicies sesión primero; mira el aviso de abajo."],
+ "QUhYEG": ["Espacio para saltar · flecha abajo para agacharse"],
"QWdKwH": ["Mover"],
"QYTOaN": ["Puedes cambiarlo más adelante en <0>Ajustes → Sincronización</0>."],
"QYfQdv": ["CLI de ", ["displayName"]],
@@ -3452,6 +3458,7 @@
"habOU_": ["No se pudo actualizar el ajuste de aprobación automática — ", ["detail"]],
"he3ygx": ["Copiar"],
"hgF0al": ["Usar ", ["0"], " para el modo claro activo"],
+ "hgf5io": ["Blob Run"],
"hgtsat": ["No se pudo eliminar ", ["file"]],
"hh4mVC": ["Pedir a la IA que arregle ", ["flatId"]],
"hhI__i": ["¿Seguro que quieres eliminar «", ["name"], "» y su contenido?"],
@@ -4652,6 +4659,7 @@
". ¿Eliges otra carpeta?"
],
"wGSHzy": ["Activa una de las ocho primeras pestañas del editor."],
+ "wIM7ul": ["Pulsa espacio o toca el blob para empezar"],
"wJijgU": ["Ubicación"],
"wJo9oS": ["Cerrar búsqueda"],
"wQp1V3": ["Espejo de <0>", ["src"], "</0>"],
diff --git a/packages/app/src/locales/es/messages.po b/packages/app/src/locales/es/messages.po
index e2a99b29a..584b1e72e 100644
--- a/packages/app/src/locales/es/messages.po
+++ b/packages/app/src/locales/es/messages.po
@@ -1861,6 +1861,13 @@ msgstr "Wiki de aves"
msgid "Blank note"
msgstr "Nota en blanco"
+#: src/components/command-palette-commands.ts
+#: src/components/EditorTabs.tsx
+#: src/components/HelpPopover.tsx
+#: src/components/OkBlobRunnerPage.tsx
+msgid "Blob Run"
+msgstr "Blob Run"
+
#: src/editor/slash-command/component-items.tsx
msgid "Block math equation rendered with KaTeX from a LaTeX source string."
msgstr "Ecuación matemática en bloque renderizada con KaTeX a partir de código LaTeX."
@@ -5608,6 +5615,10 @@ msgstr "Sincronización completa: tus commits se suben y los cambios remotos se
msgid "Full sync — your edits are committed and pushed to your remote automatically."
msgstr "Sincronización completa: tus ediciones se confirman y se suben a tu remoto automáticamente."
+#: src/components/OkBlobRunner.tsx
+msgid "Game over · press space to play again"
+msgstr "Fin del juego · pulsa espacio para jugar de nuevo"
+
#: src/lib/keyboard-shortcuts.ts
msgid "General"
msgstr "General"
@@ -5837,6 +5848,10 @@ msgstr "Ayuda"
msgid "Helps your coding agent recognize OpenKnowledge projects and route reads and writes through it."
msgstr "Ayuda a tu agente de programación a reconocer los proyectos de OpenKnowledge y a canalizar por él las lecturas y escrituras."
+#: src/components/OkBlobRunner.tsx
+msgid "HI"
+msgstr "MÁX"
+
#: src/components/EditorTabTargetMenuItems.tsx
#: src/components/FileTree.tsx
msgid "Hidden “{basename}”"
@@ -7403,6 +7418,10 @@ msgstr "Nuevo"
msgid "New {0} chat"
msgstr "Nuevo chat de {0}"
+#: src/components/OkBlobRunner.tsx
+msgid "New best · press space to play again"
+msgstr "Nuevo récord · pulsa espacio para jugar de nuevo"
+
#: src/components/NewWorktreeDialog.tsx
msgid "New branch <0>{trimmed}</0> will be created from <1>{currentBaseLabel}</1>, in its own worktree under <2>.ok/worktrees/</2>."
msgstr "La rama nueva <0>{trimmed}</0> se creará a partir de <1>{currentBaseLabel}</1>, en su propio worktree dentro de <2>.ok/worktrees/</2>."
@@ -8990,6 +9009,10 @@ msgstr "Texto sin formato"
msgid "Plan ({done}/{0})"
msgstr "Plan ({done}/{0})"
+#: src/components/ConnectingBanner.tsx
+msgid "Play Blob Run"
+msgstr "Jugar a Blob Run"
+
#: src/components/FeedbackForm.tsx
msgid "Please choose Good or Not great."
msgstr "Elige Bien o No muy bien."
@@ -9048,6 +9071,10 @@ msgstr "Presenta un documento como una presentación de diapositivas en su propi
msgid "Present a document as a slide deck in its own window. Works in the OpenKnowledge desktop app only, and needs the Slidev CLI, which you install separately. When on, it appears under Plugins in the sidebar."
msgstr "Presenta un documento como una presentación de diapositivas en su propia ventana. Solo funciona en la aplicación de escritorio de OpenKnowledge y necesita la CLI de Slidev, que se instala por separado. Cuando está activado, aparece en Plugins en la barra lateral."
+#: src/components/OkBlobRunner.tsx
+msgid "Press space or tap the blob to start"
+msgstr "Pulsa espacio o toca el blob para empezar"
+
#: src/components/EditorWorkspace.tsx
msgid "Press Space to pick up a tab. Use the arrow keys to move it within a tab strip, then press Space or Enter to drop it. Press Shift+F10 or the Menu key to open the tab context menu for split, close, pin, and other tab actions."
msgstr "Pulsa Espacio para tomar una pestaña. Usa las teclas de flecha para moverla dentro de la tira de pestañas y luego pulsa Espacio o Intro para soltarla. Pulsa Mayús+F10 o la tecla Menú para abrir el menú contextual de la pestaña, con las acciones de dividir, cerrar, fijar y otras."
@@ -11204,6 +11231,14 @@ msgstr "Búsqueda en el código"
msgid "Source undo or redo"
msgstr "Deshacer o rehacer en el código"
+#: src/components/OkBlobRunner.tsx
+msgid "Space to jump · down arrow to duck"
+msgstr "Espacio para saltar · flecha abajo para agacharse"
+
+#: src/components/OkBlobRunnerPage.tsx
+msgid "Space to jump, down arrow to duck. That is the whole game."
+msgstr "Espacio para saltar, flecha abajo para agacharse. Ese es todo el juego."
+
#: src/lib/keyboard-shortcuts.ts
msgid "Split list item"
msgstr "Dividir el elemento de lista"
diff --git a/packages/app/src/locales/fr/messages.json b/packages/app/src/locales/fr/messages.json
index ed5ac74d3..d51f69180 100644
--- a/packages/app/src/locales/fr/messages.json
+++ b/packages/app/src/locales/fr/messages.json
@@ -409,6 +409,7 @@
"Intégration HTML en bac à sable — écrivez du HTML, voyez l'aperçu se rendre en direct."
],
"4nj6n8": ["/api/config a renvoyé HTTP ", ["code"]],
+ "4o57um": ["Partie terminée · appuyez sur espace pour rejouer"],
"4pDZ2N": [
"« ",
["0"],
@@ -721,6 +722,7 @@
"8PifYj": ["Diagramme Mermaid"],
"8PmoQF": ["Ouvre le menu d'insertion à une position de texte vide ou active."],
"8RtNI0": ["Échec du chargement des documents"],
+ "8SrrDi": ["Nouveau record · appuyez sur espace pour rejouer"],
"8TvlHF": ["Vidage de plantage"],
"8Uv5e6": ["Agents"],
"8Vq20-": ["Changer de worktree"],
@@ -771,6 +773,7 @@
"99eR72": ["Sélection de tableau de l'éditeur visuel"],
"9Bd18D": ["Échec du chargement des pages pivots"],
"9EykGQ": ["Insérer une colonne à droite"],
+ "9GbR5F": ["MAX"],
"9HKBNN": ["commandes"],
"9Ii3uK": ["un nouveau volet à gauche de ", ["0"]],
"9J8xNg": [["importedLabel"], " importé"],
@@ -878,6 +881,7 @@
"ASqqsQ": [["MAX_ATTACHMENTS"], " pièces jointes maximum"],
"AT0e50": ["Conserver les deux"],
"ATGYL1": ["Adresse e-mail"],
+ "AUMPjj": ["Espace pour sauter, flèche bas pour s'accroupir. C'est tout le jeu."],
"AUV-TY": ["Réflexion"],
"AVW-K9": ["Échec du chargement des pages orphelines"],
"AWOSPo": ["Zoom avant"],
@@ -1840,6 +1844,7 @@
"MqsbfN": ["Activer les aperçus de liens externes ?"],
"MrUmCD": ["échec de compilation inconnu"],
"MrwYIK": ["Bascule un commentaire de source via CodeMirror."],
+ "MsARMw": ["Jouer à Blob Run"],
"MuxcRB": [["0"], " permet à ", ["1"], " d'agir sans demander"],
"Mv2lM4": [
"La compétence « ",
@@ -2097,6 +2102,7 @@
"QQghPu": ["Installer dans Claude Desktop"],
"QR5SP1": ["modèle créé"],
"QTsvh1": ["Cet agent nécessite que vous vous connectiez d'abord — voyez l'avis ci-dessous."],
+ "QUhYEG": ["Espace pour sauter · flèche bas pour s'accroupir"],
"QWdKwH": ["Déplacer"],
"QYTOaN": ["Vous pourrez changer cela plus tard dans <0>Paramètres → Synchronisation</0>."],
"QYfQdv": ["CLI ", ["displayName"]],
@@ -3487,6 +3493,7 @@
"habOU_": ["Échec de la mise à jour du réglage d'approbation automatique — ", ["detail"]],
"he3ygx": ["Copier"],
"hgF0al": ["Utiliser ", ["0"], " pour le mode clair actif"],
+ "hgf5io": ["Blob Run"],
"hgtsat": ["Échec de la suppression de ", ["file"]],
"hh4mVC": ["Demander à l'IA de corriger ", ["flatId"]],
"hhI__i": ["Voulez-vous vraiment supprimer « ", ["name"], " » et son contenu ?"],
@@ -4712,6 +4719,7 @@
". Choisir un autre dossier ?"
],
"wGSHzy": ["Active l'un des huit premiers onglets de l'éditeur."],
+ "wIM7ul": ["Appuyez sur espace ou touchez le blob pour commencer"],
"wJijgU": ["Emplacement"],
"wJo9oS": ["Fermer la recherche"],
"wQp1V3": ["Miroir de <0>", ["src"], "</0>"],
diff --git a/packages/app/src/locales/fr/messages.po b/packages/app/src/locales/fr/messages.po
index da67ee146..286ebf357 100644
--- a/packages/app/src/locales/fr/messages.po
+++ b/packages/app/src/locales/fr/messages.po
@@ -1861,6 +1861,13 @@ msgstr "Wiki des oiseaux"
msgid "Blank note"
msgstr "Note vierge"
+#: src/components/command-palette-commands.ts
+#: src/components/EditorTabs.tsx
+#: src/components/HelpPopover.tsx
+#: src/components/OkBlobRunnerPage.tsx
+msgid "Blob Run"
+msgstr "Blob Run"
+
#: src/editor/slash-command/component-items.tsx
msgid "Block math equation rendered with KaTeX from a LaTeX source string."
msgstr "Équation mathématique en bloc rendue avec KaTeX à partir d'une source LaTeX."
@@ -5608,6 +5615,10 @@ msgstr "Synchronisation complète — vos commits sont poussés et les modificat
msgid "Full sync — your edits are committed and pushed to your remote automatically."
msgstr "Synchronisation complète — vos modifications sont validées et poussées automatiquement vers votre dépôt distant."
+#: src/components/OkBlobRunner.tsx
+msgid "Game over · press space to play again"
+msgstr "Partie terminée · appuyez sur espace pour rejouer"
+
#: src/lib/keyboard-shortcuts.ts
msgid "General"
msgstr "Général"
@@ -5837,6 +5848,10 @@ msgstr "Aide"
msgid "Helps your coding agent recognize OpenKnowledge projects and route reads and writes through it."
msgstr "Aide votre agent de code à reconnaître les projets OpenKnowledge et à y faire transiter les lectures et les écritures."
+#: src/components/OkBlobRunner.tsx
+msgid "HI"
+msgstr "MAX"
+
#: src/components/EditorTabTargetMenuItems.tsx
#: src/components/FileTree.tsx
msgid "Hidden “{basename}”"
@@ -7403,6 +7418,10 @@ msgstr "Nouveau"
msgid "New {0} chat"
msgstr "Nouvelle discussion {0}"
+#: src/components/OkBlobRunner.tsx
+msgid "New best · press space to play again"
+msgstr "Nouveau record · appuyez sur espace pour rejouer"
+
#: src/components/NewWorktreeDialog.tsx
msgid "New branch <0>{trimmed}</0> will be created from <1>{currentBaseLabel}</1>, in its own worktree under <2>.ok/worktrees/</2>."
msgstr "La nouvelle branche <0>{trimmed}</0> sera créée à partir de <1>{currentBaseLabel}</1>, dans son propre worktree sous <2>.ok/worktrees/</2>."
@@ -8990,6 +9009,10 @@ msgstr "Texte brut"
msgid "Plan ({done}/{0})"
msgstr "Plan ({done}/{0})"
+#: src/components/ConnectingBanner.tsx
+msgid "Play Blob Run"
+msgstr "Jouer à Blob Run"
+
#: src/components/FeedbackForm.tsx
msgid "Please choose Good or Not great."
msgstr "Choisissez Bien ou Pas terrible."
@@ -9048,6 +9071,10 @@ msgstr "Présentez un document sous forme de diaporama dans sa propre fenêtre.
msgid "Present a document as a slide deck in its own window. Works in the OpenKnowledge desktop app only, and needs the Slidev CLI, which you install separately. When on, it appears under Plugins in the sidebar."
msgstr "Présentez un document sous forme de diaporama dans sa propre fenêtre. Fonctionne uniquement dans l'application de bureau OpenKnowledge et nécessite la CLI Slidev, à installer séparément. Une fois activé, il apparaît sous Plugins dans la barre latérale."
+#: src/components/OkBlobRunner.tsx
+msgid "Press space or tap the blob to start"
+msgstr "Appuyez sur espace ou touchez le blob pour commencer"
+
#: src/components/EditorWorkspace.tsx
msgid "Press Space to pick up a tab. Use the arrow keys to move it within a tab strip, then press Space or Enter to drop it. Press Shift+F10 or the Menu key to open the tab context menu for split, close, pin, and other tab actions."
msgstr "Appuyez sur Espace pour saisir un onglet. Utilisez les touches fléchées pour le déplacer dans la barre d’onglets, puis appuyez sur Espace ou Entrée pour le déposer. Appuyez sur Maj+F10 ou sur la touche Menu pour ouvrir le menu contextuel de l’onglet (fractionner, fermer, épingler et autres actions)."
@@ -11204,6 +11231,14 @@ msgstr "Recherche dans la source"
msgid "Source undo or redo"
msgstr "Annuler ou rétablir dans la source"
+#: src/components/OkBlobRunner.tsx
+msgid "Space to jump · down arrow to duck"
+msgstr "Espace pour sauter · flèche bas pour s'accroupir"
+
+#: src/components/OkBlobRunnerPage.tsx
+msgid "Space to jump, down arrow to duck. That is the whole game."
+msgstr "Espace pour sauter, flèche bas pour s'accroupir. C'est tout le jeu."
+
#: src/lib/keyboard-shortcuts.ts
msgid "Split list item"
msgstr "Scinder l'élément de liste"
diff --git a/packages/app/src/locales/hi/messages.json b/packages/app/src/locales/hi/messages.json
index 1baae67f7..d669dc3f4 100644
--- a/packages/app/src/locales/hi/messages.json
+++ b/packages/app/src/locales/hi/messages.json
@@ -323,6 +323,7 @@
"4mp6Tv": ["OpenKnowledge ने इंस्टॉल की गई स्किल सूचीबद्ध कीं"],
"4niEzY": ["सैंडबॉक्स किया गया HTML एम्बेड — HTML लिखें, रेंडर किया गया पूर्वावलोकन तुरंत देखें।"],
"4nj6n8": ["/api/config ने HTTP ", ["code"], " लौटाया"],
+ "4o57um": ["खेल समाप्त · फिर से खेलने के लिए स्पेस दबाएँ"],
"4pDZ2N": ["\"", ["0"], "\" को बाकी हर स्थान से हटा दिया गया — इसका स्रोत फ़ोल्डर अब भी लोड होता है"],
"4rjwLG": [["0"], " CLI से बनाएँ"],
"4sKwf6": ["फ़ाइल पहले से मौजूद है"],
@@ -561,6 +562,7 @@
"8PifYj": ["Mermaid आरेख"],
"8PmoQF": ["किसी खाली या सक्रिय पाठ स्थिति में इन्सर्ट मेन्यू खोलें।"],
"8RtNI0": ["दस्तावेज़ लोड करने में विफल"],
+ "8SrrDi": ["नया रिकॉर्ड · फिर से खेलने के लिए स्पेस दबाएँ"],
"8TvlHF": ["क्रैश डंप"],
"8Uv5e6": ["एजेंट"],
"8Vq20-": ["वर्कट्री बदलें"],
@@ -611,6 +613,7 @@
"99eR72": ["दृश्य संपादक की तालिका का चयन"],
"9Bd18D": ["हब पेज लोड करने में विफल"],
"9EykGQ": ["दाईं ओर कॉलम जोड़ें"],
+ "9GbR5F": ["उच्च"],
"9HKBNN": ["कमांड"],
"9Ii3uK": [["0"], " के बाईं ओर एक नया फलक"],
"9J8xNg": [["importedLabel"], " आयात किया गया"],
@@ -697,6 +700,7 @@
"ASqqsQ": ["अधिकतम ", ["MAX_ATTACHMENTS"], " संलग्नक"],
"AT0e50": ["दोनों रखें"],
"ATGYL1": ["ईमेल पता"],
+ "AUMPjj": ["कूदने के लिए स्पेस, झुकने के लिए नीचे तीर। बस इतना ही खेल है।"],
"AUV-TY": ["सोच रहा है"],
"AVW-K9": ["अनाथ पेज लोड करने में विफल"],
"AWOSPo": ["बड़ा करें"],
@@ -1501,6 +1505,7 @@
"MqsbfN": ["बाहरी लिंक पूर्वावलोकन चालू करें?"],
"MrUmCD": ["अज्ञात बिल्ड विफलता"],
"MrwYIK": ["CodeMirror से स्रोत टिप्पणी चालू या बंद करें।"],
+ "MsARMw": ["Blob Run खेलें"],
"MuxcRB": [["0"], " ", ["1"], " को बिना पूछे काम करने देता है"],
"Mv2lM4": [
["conflictHosts"],
@@ -1736,6 +1741,7 @@
"QQghPu": ["Claude Desktop में इंस्टॉल करें"],
"QR5SP1": ["टेम्पलेट बनाया गया"],
"QTsvh1": ["इस एजेंट के लिए पहले आपका साइन इन करना ज़रूरी है — नीचे दी सूचना देखें।"],
+ "QUhYEG": ["कूदने के लिए स्पेस · झुकने के लिए नीचे तीर"],
"QWdKwH": ["हिलाएँ"],
"QYTOaN": ["आप इसे बाद में <0>Settings → Sync</0> में बदल सकते हैं।"],
"QYfQdv": [["displayName"], " CLI"],
@@ -2870,6 +2876,7 @@
"habOU_": ["स्वत: स्वीकृति सेटिंग अपडेट करने में विफल — ", ["detail"]],
"he3ygx": ["कॉपी करें"],
"hgF0al": ["सक्रिय हल्के मोड के लिए ", ["0"], " का उपयोग करें"],
+ "hgf5io": ["Blob Run"],
"hgtsat": [["file"], " हटाने में विफल"],
"hh4mVC": ["AI से ", ["flatId"], " ठीक करने को कहें"],
"hhI__i": ["क्या आप वाकई {name} और उसकी सामग्री हटाना चाहते हैं?"],
@@ -3896,6 +3903,7 @@
" का क्लोन नहीं है। कोई दूसरा फ़ोल्डर चुनें?"
],
"wGSHzy": ["पहले आठ संपादक टैब में से किसी एक को सक्रिय करें।"],
+ "wIM7ul": ["शुरू करने के लिए स्पेस दबाएँ या blob पर टैप करें"],
"wJijgU": ["स्थान"],
"wJo9oS": ["खोज बंद करें"],
"wQp1V3": ["<0>", ["src"], "</0> का मिरर"],
diff --git a/packages/app/src/locales/hi/messages.po b/packages/app/src/locales/hi/messages.po
index d30399efe..f3ad7ec06 100644
--- a/packages/app/src/locales/hi/messages.po
+++ b/packages/app/src/locales/hi/messages.po
@@ -1857,6 +1857,13 @@ msgstr "पक्षी विकी"
msgid "Blank note"
msgstr "खाली नोट"
+#: src/components/command-palette-commands.ts
+#: src/components/EditorTabs.tsx
+#: src/components/HelpPopover.tsx
+#: src/components/OkBlobRunnerPage.tsx
+msgid "Blob Run"
+msgstr "Blob Run"
+
#: src/editor/slash-command/component-items.tsx
msgid "Block math equation rendered with KaTeX from a LaTeX source string."
msgstr "एक LaTeX स्रोत स्ट्रिंग से KaTeX द्वारा रेंडर किया गया ब्लॉक गणित समीकरण।"
@@ -5604,6 +5611,10 @@ msgstr "पूर्ण सिंक — आपके कमिट भेजे
msgid "Full sync — your edits are committed and pushed to your remote automatically."
msgstr "पूर्ण सिंक — आपके संपादन अपने आप कमिट होकर आपके रिमोट पर भेज दिए जाते हैं।"
+#: src/components/OkBlobRunner.tsx
+msgid "Game over · press space to play again"
+msgstr "खेल समाप्त · फिर से खेलने के लिए स्पेस दबाएँ"
+
#: src/lib/keyboard-shortcuts.ts
msgid "General"
msgstr "सामान्य"
@@ -5833,6 +5844,10 @@ msgstr "सहायता"
msgid "Helps your coding agent recognize OpenKnowledge projects and route reads and writes through it."
msgstr "आपके कोडिंग एजेंट को OpenKnowledge प्रोजेक्ट पहचानने और पढ़ने-लिखने का काम उसी के ज़रिए करने में मदद करता है।"
+#: src/components/OkBlobRunner.tsx
+msgid "HI"
+msgstr "उच्च"
+
#: src/components/EditorTabTargetMenuItems.tsx
#: src/components/FileTree.tsx
msgid "Hidden “{basename}”"
@@ -7399,6 +7414,10 @@ msgstr "नया"
msgid "New {0} chat"
msgstr "नई {0} चैट"
+#: src/components/OkBlobRunner.tsx
+msgid "New best · press space to play again"
+msgstr "नया रिकॉर्ड · फिर से खेलने के लिए स्पेस दबाएँ"
+
#: src/components/NewWorktreeDialog.tsx
msgid "New branch <0>{trimmed}</0> will be created from <1>{currentBaseLabel}</1>, in its own worktree under <2>.ok/worktrees/</2>."
msgstr "नई ब्रांच <0>{trimmed}</0> <1>{currentBaseLabel}</1> से बनाई जाएगी, <2>.ok/worktrees/</2> के अंतर्गत उसके अपने वर्कट्री में।"
@@ -8986,6 +9005,10 @@ msgstr "सादा टेक्स्ट"
msgid "Plan ({done}/{0})"
msgstr "योजना ({done}/{0})"
+#: src/components/ConnectingBanner.tsx
+msgid "Play Blob Run"
+msgstr "Blob Run खेलें"
+
#: src/components/FeedbackForm.tsx
msgid "Please choose Good or Not great."
msgstr "कृपया अच्छा या बहुत अच्छा नहीं चुनें।"
@@ -9044,6 +9067,10 @@ msgstr "किसी दस्तावेज़ को अलग विंड
msgid "Present a document as a slide deck in its own window. Works in the OpenKnowledge desktop app only, and needs the Slidev CLI, which you install separately. When on, it appears under Plugins in the sidebar."
msgstr "किसी दस्तावेज़ को अलग विंडो में स्लाइड डेक के रूप में प्रस्तुत करें। यह केवल OpenKnowledge डेस्कटॉप ऐप में काम करता है और इसके लिए Slidev CLI चाहिए, जिसे आप अलग से इंस्टॉल करते हैं। चालू होने पर यह साइडबार में Plugins के अंतर्गत दिखता है।"
+#: src/components/OkBlobRunner.tsx
+msgid "Press space or tap the blob to start"
+msgstr "शुरू करने के लिए स्पेस दबाएँ या blob पर टैप करें"
+
#: src/components/EditorWorkspace.tsx
msgid "Press Space to pick up a tab. Use the arrow keys to move it within a tab strip, then press Space or Enter to drop it. Press Shift+F10 or the Menu key to open the tab context menu for split, close, pin, and other tab actions."
msgstr "टैब उठाने के लिए Space दबाएँ। इसे टैब पट्टी में ले जाने के लिए तीर कुंजियों का उपयोग करें, फिर छोड़ने के लिए Space या Enter दबाएँ। विभाजित करने, बंद करने, पिन करने और अन्य टैब क्रियाओं वाला संदर्भ मेनू खोलने के लिए Shift+F10 या Menu कुंजी दबाएँ।"
@@ -11200,6 +11227,14 @@ msgstr "स्रोत खोज"
msgid "Source undo or redo"
msgstr "स्रोत में पूर्ववत या फिर से करें"
+#: src/components/OkBlobRunner.tsx
+msgid "Space to jump · down arrow to duck"
+msgstr "कूदने के लिए स्पेस · झुकने के लिए नीचे तीर"
+
+#: src/components/OkBlobRunnerPage.tsx
+msgid "Space to jump, down arrow to duck. That is the whole game."
+msgstr "कूदने के लिए स्पेस, झुकने के लिए नीचे तीर। बस इतना ही खेल है।"
+
#: src/lib/keyboard-shortcuts.ts
msgid "Split list item"
msgstr "सूची आइटम बाँटें"
diff --git a/packages/app/src/locales/id/messages.json b/packages/app/src/locales/id/messages.json
index 95a03584b..66ffb961b 100644
--- a/packages/app/src/locales/id/messages.json
+++ b/packages/app/src/locales/id/messages.json
@@ -333,6 +333,7 @@
"4mp6Tv": ["OpenKnowledge menampilkan daftar keterampilan yang terpasang"],
"4niEzY": ["Sematan HTML tersekat — tulis HTML, lihat pratinjau terendernya secara langsung."],
"4nj6n8": ["/api/config mengembalikan HTTP ", ["code"]],
+ "4o57um": ["Permainan berakhir · tekan spasi untuk main lagi"],
"4pDZ2N": ["\"", ["0"], "\" dihapus dari semua lokasi lain — folder sumbernya tetap dimuat"],
"4rjwLG": ["Buat dengan CLI ", ["0"]],
"4sKwf6": ["Berkas sudah ada"],
@@ -588,6 +589,7 @@
"8PifYj": ["Diagram Mermaid"],
"8PmoQF": ["Membuka menu sisip pada posisi teks yang kosong atau aktif."],
"8RtNI0": ["Gagal memuat dokumen"],
+ "8SrrDi": ["Rekor baru · tekan spasi untuk main lagi"],
"8TvlHF": ["Crash dump"],
"8Uv5e6": ["Agen"],
"8Vq20-": ["Ganti worktree"],
@@ -638,6 +640,7 @@
"99eR72": ["Pilihan tabel penyunting visual"],
"9Bd18D": ["Gagal memuat halaman pusat"],
"9EykGQ": ["Sisipkan kolom di kanan"],
+ "9GbR5F": ["MAKS"],
"9HKBNN": ["perintah"],
"9Ii3uK": ["panel baru di sebelah kiri ", ["0"]],
"9J8xNg": [["importedLabel"], " diimpor"],
@@ -723,6 +726,7 @@
"ASqqsQ": ["Maksimal ", ["MAX_ATTACHMENTS"], " lampiran"],
"AT0e50": ["Simpan keduanya"],
"ATGYL1": ["Alamat surel"],
+ "AUMPjj": ["Spasi untuk melompat, panah bawah untuk menunduk. Hanya itu permainannya."],
"AUV-TY": ["Berpikir"],
"AVW-K9": ["Gagal memuat halaman yatim"],
"AWOSPo": ["Perbesar"],
@@ -1558,6 +1562,7 @@
"MqsbfN": ["Nyalakan pratinjau tautan eksternal?"],
"MrUmCD": ["kegagalan build tidak diketahui"],
"MrwYIK": ["Menyalakan atau mematikan komentar sumber lewat CodeMirror."],
+ "MsARMw": ["Mainkan Blob Run"],
"MuxcRB": [["0"], " membiarkan ", ["1"], " bertindak tanpa bertanya"],
"Mv2lM4": [
"Skill “",
@@ -1809,6 +1814,7 @@
"QQghPu": ["Pasang di Claude Desktop"],
"QR5SP1": ["templat dibuat"],
"QTsvh1": ["Agen ini memerlukan Anda masuk dulu — lihat pemberitahuan di bawah."],
+ "QUhYEG": ["Spasi untuk melompat · panah bawah untuk menunduk"],
"QWdKwH": ["Pindahkan"],
"QYTOaN": ["Anda bisa mengubah ini nanti di <0>Pengaturan → Sinkronisasi</0>."],
"QYfQdv": ["CLI ", ["displayName"]],
@@ -3006,6 +3012,7 @@
"habOU_": ["Gagal memperbarui pengaturan persetujuan otomatis — ", ["detail"]],
"he3ygx": ["Salin"],
"hgF0al": ["Pakai ", ["0"], " untuk mode terang yang aktif"],
+ "hgf5io": ["Blob Run"],
"hgtsat": ["Gagal menghapus ", ["file"]],
"hh4mVC": ["Minta AI memperbaiki ", ["flatId"]],
"hhI__i": ["Yakin ingin menghapus \"", ["name"], "\" beserta isinya?"],
@@ -4072,6 +4079,7 @@
". Pilih folder lain?"
],
"wGSHzy": ["Mengaktifkan salah satu dari delapan tab penyunting pertama."],
+ "wIM7ul": ["Tekan spasi atau ketuk blob untuk mulai"],
"wJijgU": ["Lokasi"],
"wJo9oS": ["Tutup pencarian"],
"wQp1V3": ["Cermin dari <0>", ["src"], "</0>"],
diff --git a/packages/app/src/locales/id/messages.po b/packages/app/src/locales/id/messages.po
index c626a073f..2ca6f5ce2 100644
--- a/packages/app/src/locales/id/messages.po
+++ b/packages/app/src/locales/id/messages.po
@@ -1857,6 +1857,13 @@ msgstr "Wiki burung"
msgid "Blank note"
msgstr "Catatan kosong"
+#: src/components/command-palette-commands.ts
+#: src/components/EditorTabs.tsx
+#: src/components/HelpPopover.tsx
+#: src/components/OkBlobRunnerPage.tsx
+msgid "Blob Run"
+msgstr "Blob Run"
+
#: src/editor/slash-command/component-items.tsx
msgid "Block math equation rendered with KaTeX from a LaTeX source string."
msgstr "Persamaan matematika blok yang dirender dengan KaTeX dari sumber LaTeX."
@@ -5604,6 +5611,10 @@ msgstr "Sinkronisasi penuh — commit Anda dikirim dan perubahan remote ditarik
msgid "Full sync — your edits are committed and pushed to your remote automatically."
msgstr "Sinkronisasi penuh — suntingan Anda di-commit dan dikirim ke remote Anda secara otomatis."
+#: src/components/OkBlobRunner.tsx
+msgid "Game over · press space to play again"
+msgstr "Permainan berakhir · tekan spasi untuk main lagi"
+
#: src/lib/keyboard-shortcuts.ts
msgid "General"
msgstr "Umum"
@@ -5833,6 +5844,10 @@ msgstr "Bantuan"
msgid "Helps your coding agent recognize OpenKnowledge projects and route reads and writes through it."
msgstr "Membantu agen pemrograman Anda mengenali proyek OpenKnowledge dan mengarahkan baca-tulis melaluinya."
+#: src/components/OkBlobRunner.tsx
+msgid "HI"
+msgstr "MAKS"
+
#: src/components/EditorTabTargetMenuItems.tsx
#: src/components/FileTree.tsx
msgid "Hidden “{basename}”"
@@ -7399,6 +7414,10 @@ msgstr "Baru"
msgid "New {0} chat"
msgstr "Obrolan {0} baru"
+#: src/components/OkBlobRunner.tsx
+msgid "New best · press space to play again"
+msgstr "Rekor baru · tekan spasi untuk main lagi"
+
#: src/components/NewWorktreeDialog.tsx
msgid "New branch <0>{trimmed}</0> will be created from <1>{currentBaseLabel}</1>, in its own worktree under <2>.ok/worktrees/</2>."
msgstr "Cabang baru <0>{trimmed}</0> akan dibuat dari <1>{currentBaseLabel}</1>, di worktree tersendiri di bawah <2>.ok/worktrees/</2>."
@@ -8986,6 +9005,10 @@ msgstr "Teks biasa"
msgid "Plan ({done}/{0})"
msgstr "Rencana ({done}/{0})"
+#: src/components/ConnectingBanner.tsx
+msgid "Play Blob Run"
+msgstr "Mainkan Blob Run"
+
#: src/components/FeedbackForm.tsx
msgid "Please choose Good or Not great."
msgstr "Silakan pilih Bagus atau Kurang bagus."
@@ -9044,6 +9067,10 @@ msgstr "Tampilkan dokumen sebagai dek slide di jendela tersendiri. Tambahkan <0>
msgid "Present a document as a slide deck in its own window. Works in the OpenKnowledge desktop app only, and needs the Slidev CLI, which you install separately. When on, it appears under Plugins in the sidebar."
msgstr "Tampilkan dokumen sebagai dek slide di jendela tersendiri. Hanya berfungsi di aplikasi desktop OpenKnowledge dan memerlukan CLI Slidev yang dipasang terpisah. Saat aktif, muncul di Plugins pada bilah sisi."
+#: src/components/OkBlobRunner.tsx
+msgid "Press space or tap the blob to start"
+msgstr "Tekan spasi atau ketuk blob untuk mulai"
+
#: src/components/EditorWorkspace.tsx
msgid "Press Space to pick up a tab. Use the arrow keys to move it within a tab strip, then press Space or Enter to drop it. Press Shift+F10 or the Menu key to open the tab context menu for split, close, pin, and other tab actions."
msgstr "Tekan Spasi untuk mengambil tab. Gunakan tombol panah untuk memindahkannya di dalam bilah tab, lalu tekan Spasi atau Enter untuk melepaskannya. Tekan Shift+F10 atau tombol Menu untuk membuka menu konteks tab, yang berisi tindakan pisah, tutup, sematkan, dan lainnya."
@@ -11200,6 +11227,14 @@ msgstr "Pencarian di sumber"
msgid "Source undo or redo"
msgstr "Batalkan atau ulangi di sumber"
+#: src/components/OkBlobRunner.tsx
+msgid "Space to jump · down arrow to duck"
+msgstr "Spasi untuk melompat · panah bawah untuk menunduk"
+
+#: src/components/OkBlobRunnerPage.tsx
+msgid "Space to jump, down arrow to duck. That is the whole game."
+msgstr "Spasi untuk melompat, panah bawah untuk menunduk. Hanya itu permainannya."
+
#: src/lib/keyboard-shortcuts.ts
msgid "Split list item"
msgstr "Pisahkan item daftar"
diff --git a/packages/app/src/locales/pseudo/messages.json b/packages/app/src/locales/pseudo/messages.json
index 016bd6480..a84bd4e24 100644
--- a/packages/app/src/locales/pseudo/messages.json
+++ b/packages/app/src/locales/pseudo/messages.json
@@ -336,6 +336,7 @@
"4mp6Tv": ["ŌƥēńĶńōŵĺēďĝē ĺĩśţēď ţĥē ĩńśţàĺĺēď śķĩĺĺś"],
"4niEzY": ["Śàńďƀōxēď ĤŢḾĹ ēḿƀēď — ŵŕĩţē ĤŢḾĹ, śēē ţĥē ŕēńďēŕēď ƥŕēvĩēŵ ĺĩvē."],
"4nj6n8": ["/àƥĩ/ćōńƒĩĝ ŕēţũŕńēď ĤŢŢƤ ", ["code"]],
+ "4o57um": ["Ĝàḿē ōvēŕ · ƥŕēśś śƥàćē ţō ƥĺàŷ àĝàĩń"],
"4pDZ2N": ["Ŕēḿōvēď \"", ["0"], "\" ƒŕōḿ ēvēŕŷ ōţĥēŕ ĺōćàţĩōń — ĩţś śōũŕćē ƒōĺďēŕ śţĩĺĺ ĺōàďś"],
"4rjwLG": ["Ćŕēàţē ŵĩţĥ ", ["0"], " ĆĹĨ"],
"4sKwf6": ["Ƒĩĺē àĺŕēàďŷ ēxĩśţś"],
@@ -594,6 +595,7 @@
"8PifYj": ["Ḿēŕḿàĩď ďĩàĝŕàḿ"],
"8PmoQF": ["Ōƥēń ţĥē ĩńśēŕţ ḿēńũ ĩń àń ēḿƥţŷ ōŕ àćţĩvē ţēxţ ƥōśĩţĩōń."],
"8RtNI0": ["Ƒàĩĺēď ţō ĺōàď ďōćũḿēńţś"],
+ "8SrrDi": ["Ńēŵ ƀēśţ · ƥŕēśś śƥàćē ţō ƥĺàŷ àĝàĩń"],
"8TvlHF": ["Ćŕàśĥ ďũḿƥ"],
"8Uv5e6": ["Àĝēńţś"],
"8Vq20-": ["Śŵĩţćĥ ŵōŕķţŕēē"],
@@ -644,6 +646,7 @@
"99eR72": ["Vĩśũàĺ ēďĩţōŕ ţàƀĺē śēĺēćţĩōń"],
"9Bd18D": ["Ƒàĩĺēď ţō ĺōàď ĥũƀ ƥàĝēś"],
"9EykGQ": ["Ĩńśēŕţ ćōĺũḿń ŕĩĝĥţ"],
+ "9GbR5F": ["ĤĨ"],
"9HKBNN": ["ćōḿḿàńďś"],
"9Ii3uK": ["à ńēŵ ƥàńē ţō ţĥē ĺēƒţ ōƒ ", ["0"]],
"9J8xNg": ["Ĩḿƥōŕţēď ", ["importedLabel"]],
@@ -734,6 +737,7 @@
"ASqqsQ": ["Ḿàxĩḿũḿ ", ["MAX_ATTACHMENTS"], " àţţàćĥḿēńţś"],
"AT0e50": ["Ķēēƥ ƀōţĥ"],
"ATGYL1": ["Ēḿàĩĺ àďďŕēśś"],
+ "AUMPjj": ["Śƥàćē ţō Ĵũḿƥ, ďōŵń àŕŕōŵ ţō ďũćķ. Ţĥàţ ĩś ţĥē ŵĥōĺē ĝàḿē."],
"AUV-TY": ["Ţĥĩńķĩńĝ"],
"AVW-K9": ["Ƒàĩĺēď ţō ĺōàď ōŕƥĥàń ƥàĝēś"],
"AWOSPo": ["Źōōḿ ĩń"],
@@ -1562,6 +1566,7 @@
"MqsbfN": ["Ţũŕń ōń ēxţēŕńàĺ ĺĩńķ ƥŕēvĩēŵś?"],
"MrUmCD": ["ũńķńōŵń ƀũĩĺď ƒàĩĺũŕē"],
"MrwYIK": ["Ţōĝĝĺē à śōũŕćē ćōḿḿēńţ ţĥŕōũĝĥ ĆōďēḾĩŕŕōŕ."],
+ "MsARMw": ["Ƥĺàŷ ßĺōƀ Ŕũń"],
"MuxcRB": [["0"], " ĺēţś ", ["1"], " àćţ ŵĩţĥōũţ àśķĩńĝ"],
"Mv2lM4": [
"Śķĩĺĺ \"",
@@ -1805,6 +1810,7 @@
"QQghPu": ["Ĩńśţàĺĺ ĩń Ćĺàũďē Ďēśķţōƥ"],
"QR5SP1": ["ćŕēàţēď ţēḿƥĺàţē"],
"QTsvh1": ["Ţĥĩś àĝēńţ ńēēďś ŷōũ ţō śĩĝń ĩń ƒĩŕśţ — śēē ţĥē ńōţĩćē ƀēĺōŵ."],
+ "QUhYEG": ["Śƥàćē ţō Ĵũḿƥ · ďōŵń àŕŕōŵ ţō ďũćķ"],
"QWdKwH": ["Ḿōvē"],
"QYTOaN": ["Ŷōũ ćàń ćĥàńĝē ţĥĩś ĺàţēŕ ĩń <0>Śēţţĩńĝś → Śŷńć</0>."],
"QYfQdv": [["displayName"], " ĆĹĨ"],
@@ -2987,6 +2993,7 @@
"habOU_": ["Ƒàĩĺēď ţō ũƥďàţē ţĥē àũţō-àƥƥŕōvē śēţţĩńĝ — ", ["detail"]],
"he3ygx": ["Ćōƥŷ"],
"hgF0al": ["Ũśē ", ["0"], " ƒōŕ ţĥē àćţĩvē ĺĩĝĥţ ḿōďē"],
+ "hgf5io": ["ßĺōƀ Ŕũń"],
"hgtsat": ["Ƒàĩĺēď ţō ďēĺēţē ", ["file"]],
"hh4mVC": ["Àśķ ÀĨ ţō ƒĩx ", ["flatId"]],
"hhI__i": ["Àŕē ŷōũ śũŕē ŷōũ ŵàńţ ţō ďēĺēţē {name} àńď ĩţś ćōńţēńţś?"],
@@ -4055,6 +4062,7 @@
". Ƥĩćķ à ďĩƒƒēŕēńţ ƒōĺďēŕ?"
],
"wGSHzy": ["Àćţĩvàţē ōńē ōƒ ţĥē ƒĩŕśţ ēĩĝĥţ ēďĩţōŕ ţàƀś."],
+ "wIM7ul": ["Ƥŕēśś śƥàćē ōŕ ţàƥ ţĥē ƀĺōƀ ţō śţàŕţ"],
"wJijgU": ["Ĺōćàţĩōń"],
"wJo9oS": ["Ćĺōśē ƒĩńď"],
"wQp1V3": ["Ḿĩŕŕōŕ ōƒ <0>", ["src"], "</0>"],
diff --git a/packages/app/src/locales/pseudo/messages.po b/packages/app/src/locales/pseudo/messages.po
index a0ff5aa8f..d4c55fcef 100644
--- a/packages/app/src/locales/pseudo/messages.po
+++ b/packages/app/src/locales/pseudo/messages.po
@@ -1857,6 +1857,13 @@ msgstr ""
msgid "Blank note"
msgstr ""
+#: src/components/command-palette-commands.ts
+#: src/components/EditorTabs.tsx
+#: src/components/HelpPopover.tsx
+#: src/components/OkBlobRunnerPage.tsx
+msgid "Blob Run"
+msgstr ""
+
#: src/editor/slash-command/component-items.tsx
msgid "Block math equation rendered with KaTeX from a LaTeX source string."
msgstr ""
@@ -5604,6 +5611,10 @@ msgstr ""
msgid "Full sync — your edits are committed and pushed to your remote automatically."
msgstr ""
+#: src/components/OkBlobRunner.tsx
+msgid "Game over · press space to play again"
+msgstr ""
+
#: src/lib/keyboard-shortcuts.ts
msgid "General"
msgstr ""
@@ -5833,6 +5844,10 @@ msgstr ""
msgid "Helps your coding agent recognize OpenKnowledge projects and route reads and writes through it."
msgstr ""
+#: src/components/OkBlobRunner.tsx
+msgid "HI"
+msgstr ""
+
#: src/components/EditorTabTargetMenuItems.tsx
#: src/components/FileTree.tsx
msgid "Hidden “{basename}”"
@@ -7399,6 +7414,10 @@ msgstr ""
msgid "New {0} chat"
msgstr ""
+#: src/components/OkBlobRunner.tsx
+msgid "New best · press space to play again"
+msgstr ""
+
#: src/components/NewWorktreeDialog.tsx
msgid "New branch <0>{trimmed}</0> will be created from <1>{currentBaseLabel}</1>, in its own worktree under <2>.ok/worktrees/</2>."
msgstr ""
@@ -8986,6 +9005,10 @@ msgstr ""
msgid "Plan ({done}/{0})"
msgstr ""
+#: src/components/ConnectingBanner.tsx
+msgid "Play Blob Run"
+msgstr ""
+
#: src/components/FeedbackForm.tsx
msgid "Please choose Good or Not great."
msgstr ""
@@ -9044,6 +9067,10 @@ msgstr ""
msgid "Present a document as a slide deck in its own window. Works in the OpenKnowledge desktop app only, and needs the Slidev CLI, which you install separately. When on, it appears under Plugins in the sidebar."
msgstr ""
+#: src/components/OkBlobRunner.tsx
+msgid "Press space or tap the blob to start"
+msgstr ""
+
#: src/components/EditorWorkspace.tsx
msgid "Press Space to pick up a tab. Use the arrow keys to move it within a tab strip, then press Space or Enter to drop it. Press Shift+F10 or the Menu key to open the tab context menu for split, close, pin, and other tab actions."
msgstr ""
@@ -11200,6 +11227,14 @@ msgstr ""
msgid "Source undo or redo"
msgstr ""
+#: src/components/OkBlobRunner.tsx
+msgid "Space to jump · down arrow to duck"
+msgstr ""
+
+#: src/components/OkBlobRunnerPage.tsx
+msgid "Space to jump, down arrow to duck. That is the whole game."
+msgstr ""
+
#: src/lib/keyboard-shortcuts.ts
msgid "Split list item"
msgstr ""
diff --git a/packages/app/src/locales/pt-BR/messages.json b/packages/app/src/locales/pt-BR/messages.json
index 477e9393b..f2a1db03a 100644
--- a/packages/app/src/locales/pt-BR/messages.json
+++ b/packages/app/src/locales/pt-BR/messages.json
@@ -391,6 +391,7 @@
"HTML incorporado em modo isolado — escreva HTML e veja a pré-visualização renderizada ao vivo."
],
"4nj6n8": ["/api/config devolveu HTTP ", ["code"]],
+ "4o57um": ["Fim de jogo · pressione espaço para jogar de novo"],
"4pDZ2N": [
"\"",
["0"],
@@ -692,6 +693,7 @@
"8PifYj": ["Diagrama do Mermaid"],
"8PmoQF": ["Abre o menu de inserção em uma posição de texto vazia ou ativa."],
"8RtNI0": ["Falha ao carregar os documentos"],
+ "8SrrDi": ["Novo recorde · pressione espaço para jogar de novo"],
"8TvlHF": ["Despejo de falha"],
"8Uv5e6": ["Agentes"],
"8Vq20-": ["Trocar de worktree"],
@@ -742,6 +744,7 @@
"99eR72": ["Seleção de tabela do editor visual"],
"9Bd18D": ["Falha ao carregar as páginas de índice"],
"9EykGQ": ["Inserir coluna à direita"],
+ "9GbR5F": ["MÁX"],
"9HKBNN": ["comandos"],
"9Ii3uK": ["um novo painel à esquerda de ", ["0"]],
"9J8xNg": [["importedLabel"], " importado"],
@@ -847,6 +850,7 @@
"ASqqsQ": ["No máximo ", ["MAX_ATTACHMENTS"], " anexos"],
"AT0e50": ["Manter os dois"],
"ATGYL1": ["Endereço de e-mail"],
+ "AUMPjj": ["Espaço para pular, seta para baixo para agachar. É esse o jogo inteiro."],
"AUV-TY": ["Pensando"],
"AVW-K9": ["Falha ao carregar as páginas órfãs"],
"AWOSPo": ["Aproximar"],
@@ -1792,6 +1796,7 @@
"MqsbfN": ["Ligar a pré-visualização de links externos?"],
"MrUmCD": ["falha de compilação desconhecida"],
"MrwYIK": ["Liga ou desliga um comentário no código pelo CodeMirror."],
+ "MsARMw": ["Jogar Blob Run"],
"MuxcRB": [["0"], " permite que ", ["1"], " aja sem perguntar"],
"Mv2lM4": [
"A skill “",
@@ -2047,6 +2052,7 @@
"QQghPu": ["Instalar no Claude Desktop"],
"QR5SP1": ["modelo criado"],
"QTsvh1": ["Este agente precisa que você entre primeiro — veja o aviso abaixo."],
+ "QUhYEG": ["Espaço para pular · seta para baixo para agachar"],
"QWdKwH": ["Mover"],
"QYTOaN": ["Você pode mudar isto depois em <0>Configurações → Sincronização</0>."],
"QYfQdv": ["CLI do ", ["displayName"]],
@@ -3380,6 +3386,7 @@
"habOU_": ["Falha ao atualizar a configuração de aprovação automática — ", ["detail"]],
"he3ygx": ["Copiar"],
"hgF0al": ["Usar ", ["0"], " no modo claro ativo"],
+ "hgf5io": ["Blob Run"],
"hgtsat": ["Falha ao excluir ", ["file"]],
"hh4mVC": ["Pedir à IA para corrigir ", ["flatId"]],
"hhI__i": ["Tem certeza de que deseja excluir \"", ["name"], "\" e seu conteúdo?"],
@@ -4551,6 +4558,7 @@
". Escolher outra pasta?"
],
"wGSHzy": ["Ativa uma das oito primeiras abas do editor."],
+ "wIM7ul": ["Pressione espaço ou toque no blob para começar"],
"wJijgU": ["Local"],
"wJo9oS": ["Fechar busca"],
"wQp1V3": ["Espelho de <0>", ["src"], "</0>"],
diff --git a/packages/app/src/locales/pt-BR/messages.po b/packages/app/src/locales/pt-BR/messages.po
index 38da1f375..d87b5f815 100644
--- a/packages/app/src/locales/pt-BR/messages.po
+++ b/packages/app/src/locales/pt-BR/messages.po
@@ -1857,6 +1857,13 @@ msgstr "Wiki de aves"
msgid "Blank note"
msgstr "Nota em branco"
+#: src/components/command-palette-commands.ts
+#: src/components/EditorTabs.tsx
+#: src/components/HelpPopover.tsx
+#: src/components/OkBlobRunnerPage.tsx
+msgid "Blob Run"
+msgstr "Blob Run"
+
#: src/editor/slash-command/component-items.tsx
msgid "Block math equation rendered with KaTeX from a LaTeX source string."
msgstr "Equação matemática em bloco renderizada com KaTeX a partir de código LaTeX."
@@ -5604,6 +5611,10 @@ msgstr "Sincronização completa — seus commits são enviados e as alteraçõe
msgid "Full sync — your edits are committed and pushed to your remote automatically."
msgstr "Sincronização completa — suas edições recebem commit e são enviadas ao seu remoto automaticamente."
+#: src/components/OkBlobRunner.tsx
+msgid "Game over · press space to play again"
+msgstr "Fim de jogo · pressione espaço para jogar de novo"
+
#: src/lib/keyboard-shortcuts.ts
msgid "General"
msgstr "Geral"
@@ -5833,6 +5844,10 @@ msgstr "Ajuda"
msgid "Helps your coding agent recognize OpenKnowledge projects and route reads and writes through it."
msgstr "Ajuda seu agente de programação a reconhecer projetos do OpenKnowledge e a rotear leituras e escritas por ele."
+#: src/components/OkBlobRunner.tsx
+msgid "HI"
+msgstr "MÁX"
+
#: src/components/EditorTabTargetMenuItems.tsx
#: src/components/FileTree.tsx
msgid "Hidden “{basename}”"
@@ -7399,6 +7414,10 @@ msgstr "Novo"
msgid "New {0} chat"
msgstr "Novo chat do {0}"
+#: src/components/OkBlobRunner.tsx
+msgid "New best · press space to play again"
+msgstr "Novo recorde · pressione espaço para jogar de novo"
+
#: src/components/NewWorktreeDialog.tsx
msgid "New branch <0>{trimmed}</0> will be created from <1>{currentBaseLabel}</1>, in its own worktree under <2>.ok/worktrees/</2>."
msgstr "O novo ramo <0>{trimmed}</0> será criado a partir de <1>{currentBaseLabel}</1>, em um worktree próprio dentro de <2>.ok/worktrees/</2>."
@@ -8986,6 +9005,10 @@ msgstr "Texto simples"
msgid "Plan ({done}/{0})"
msgstr "Plano ({done}/{0})"
+#: src/components/ConnectingBanner.tsx
+msgid "Play Blob Run"
+msgstr "Jogar Blob Run"
+
#: src/components/FeedbackForm.tsx
msgid "Please choose Good or Not great."
msgstr "Escolha Bom ou Nem tanto."
@@ -9044,6 +9067,10 @@ msgstr "Apresente um documento como slides em uma janela própria. Adicione <0>s
msgid "Present a document as a slide deck in its own window. Works in the OpenKnowledge desktop app only, and needs the Slidev CLI, which you install separately. When on, it appears under Plugins in the sidebar."
msgstr "Apresente um documento como slides em uma janela própria. Funciona apenas no aplicativo de desktop do OpenKnowledge e precisa da CLI do Slidev, instalada separadamente. Quando ativado, aparece em Plugins na barra lateral."
+#: src/components/OkBlobRunner.tsx
+msgid "Press space or tap the blob to start"
+msgstr "Pressione espaço ou toque no blob para começar"
+
#: src/components/EditorWorkspace.tsx
msgid "Press Space to pick up a tab. Use the arrow keys to move it within a tab strip, then press Space or Enter to drop it. Press Shift+F10 or the Menu key to open the tab context menu for split, close, pin, and other tab actions."
msgstr "Pressione Espaço para pegar uma aba. Use as setas para movê-la dentro da barra de abas e pressione Espaço ou Enter para soltá-la. Pressione Shift+F10 ou a tecla Menu para abrir o menu de contexto da aba, com as ações de dividir, fechar, fixar e outras."
@@ -11200,6 +11227,14 @@ msgstr "Busca no código"
msgid "Source undo or redo"
msgstr "Desfazer ou refazer no código"
+#: src/components/OkBlobRunner.tsx
+msgid "Space to jump · down arrow to duck"
+msgstr "Espaço para pular · seta para baixo para agachar"
+
+#: src/components/OkBlobRunnerPage.tsx
+msgid "Space to jump, down arrow to duck. That is the whole game."
+msgstr "Espaço para pular, seta para baixo para agachar. É esse o jogo inteiro."
+
#: src/lib/keyboard-shortcuts.ts
msgid "Split list item"
msgstr "Dividir o item de lista"
diff --git a/packages/app/src/locales/ur/messages.json b/packages/app/src/locales/ur/messages.json
index 87691f536..f107e96c9 100644
--- a/packages/app/src/locales/ur/messages.json
+++ b/packages/app/src/locales/ur/messages.json
@@ -335,6 +335,7 @@
"4mp6Tv": ["OpenKnowledge نے انسٹال شدہ اسکلز کی فہرست دی"],
"4niEzY": ["سینڈ باکسڈ HTML ایمبیڈ — HTML لکھیں، رینڈر شدہ پیش منظر براہِ راست دیکھیں۔"],
"4nj6n8": ["/api/config نے HTTP ", ["code"], " لوٹایا"],
+ "4o57um": ["کھیل ختم · دوبارہ کھیلنے کے لیے اسپیس دبائیں"],
"4pDZ2N": [
"«",
["0"],
@@ -601,6 +602,7 @@
"8PifYj": ["Mermaid خاکہ"],
"8PmoQF": ["خالی یا فعال متن کی جگہ پر داخل کرنے کا مینو کھولیں۔"],
"8RtNI0": ["دستاویزات لوڈ نہیں ہو سکیں"],
+ "8SrrDi": ["نیا ریکارڈ · دوبارہ کھیلنے کے لیے اسپیس دبائیں"],
"8TvlHF": ["کریش ڈمپ"],
"8Uv5e6": ["ایجنٹس"],
"8Vq20-": ["ورک ٹری بدلیں"],
@@ -651,6 +653,7 @@
"99eR72": ["بصری ایڈیٹر کے ٹیبل کا انتخاب"],
"9Bd18D": ["مرکزی صفحات لوڈ نہیں ہو سکے"],
"9EykGQ": ["دائیں طرف کالم داخل کریں"],
+ "9GbR5F": ["بلند ترین"],
"9HKBNN": ["کمانڈز"],
"9Ii3uK": [["0"], " کے بائیں جانب ایک نیا پین"],
"9J8xNg": [["importedLabel"], " درآمد ہو گیا"],
@@ -737,6 +740,7 @@
"ASqqsQ": ["زیادہ سے زیادہ ", ["MAX_ATTACHMENTS"], " منسلکات"],
"AT0e50": ["دونوں رکھیں"],
"ATGYL1": ["ای میل پتہ"],
+ "AUMPjj": ["چھلانگ کے لیے اسپیس، جھکنے کے لیے نیچے کا تیر۔ بس یہی پورا کھیل ہے۔"],
"AUV-TY": ["سوچ رہا ہے"],
"AVW-K9": ["یتیم صفحات لوڈ نہیں ہو سکے"],
"AWOSPo": ["بڑا کریں"],
@@ -1596,6 +1600,7 @@
"MqsbfN": ["بیرونی لنکس کے پیش منظر فعال کریں؟"],
"MrUmCD": ["نامعلوم بلڈ ناکامی"],
"MrwYIK": ["CodeMirror کے ذریعے سورس کا تبصرہ بدلیں۔"],
+ "MsARMw": ["Blob Run کھیلیں"],
"MuxcRB": [["0"], " کی بدولت ", ["1"], " بغیر پوچھے عمل کرتا ہے"],
"Mv2lM4": [
["conflictHosts"],
@@ -1841,6 +1846,7 @@
"QQghPu": ["Claude Desktop میں نصب کریں"],
"QR5SP1": ["ٹیمپلیٹ بنایا"],
"QTsvh1": ["اس ایجنٹ کے لیے آپ کا پہلے سائن اِن کرنا ضروری ہے — نیچے دی گئی اطلاع دیکھیں۔"],
+ "QUhYEG": ["چھلانگ کے لیے اسپیس · جھکنے کے لیے نیچے کا تیر"],
"QWdKwH": ["منتقل کریں"],
"QYTOaN": ["آپ اسے بعد میں <0>ترتیبات ← مطابقت پذیری</0> میں بدل سکتے ہیں۔"],
"QYfQdv": [["displayName"], " CLI"],
@@ -3043,6 +3049,7 @@
"habOU_": ["خودکار منظوری کی ترتیب تازہ نہیں ہو سکی — ", ["detail"]],
"he3ygx": ["نقل کریں"],
"hgF0al": ["فعال روشن موڈ کے لیے ", ["0"], " استعمال کریں"],
+ "hgf5io": ["Blob Run"],
"hgtsat": [["file"], " حذف نہیں ہو سکی"],
"hh4mVC": ["AI سے ", ["flatId"], " ٹھیک کرنے کو کہیں"],
"hhI__i": ["کیا آپ واقعی {name} اور اس کا مواد حذف کرنا چاہتے ہیں؟"],
@@ -4113,6 +4120,7 @@
" کا کلون نہیں۔ کوئی اور فولڈر منتخب کریں؟"
],
"wGSHzy": ["ایڈیٹر کے پہلے آٹھ ٹیبز میں سے کسی ایک کو فعال کریں۔"],
+ "wIM7ul": ["شروع کرنے کے لیے اسپیس دبائیں یا blob پر ٹیپ کریں"],
"wJijgU": ["مقام"],
"wJo9oS": ["تلاش بند کریں"],
"wQp1V3": ["<0>", ["src"], "</0> کا مرر"],
diff --git a/packages/app/src/locales/ur/messages.po b/packages/app/src/locales/ur/messages.po
index 5299e3fc9..01a1d6637 100644
--- a/packages/app/src/locales/ur/messages.po
+++ b/packages/app/src/locales/ur/messages.po
@@ -1861,6 +1861,13 @@ msgstr "پرندوں کی وکی"
msgid "Blank note"
msgstr "خالی نوٹ"
+#: src/components/command-palette-commands.ts
+#: src/components/EditorTabs.tsx
+#: src/components/HelpPopover.tsx
+#: src/components/OkBlobRunnerPage.tsx
+msgid "Blob Run"
+msgstr "Blob Run"
+
#: src/editor/slash-command/component-items.tsx
msgid "Block math equation rendered with KaTeX from a LaTeX source string."
msgstr "LaTeX سورس سٹرنگ سے KaTeX کے ذریعے رینڈر کی گئی بلاک ریاضی مساوات۔"
@@ -5608,6 +5615,10 @@ msgstr "مکمل مطابقت پذیری — آپ کے کمٹس پُش اور ر
msgid "Full sync — your edits are committed and pushed to your remote automatically."
msgstr "مکمل مطابقت پذیری — آپ کی ترامیم خودکار طور پر کمٹ اور آپ کے ریموٹ پر پُش ہوتی ہیں۔"
+#: src/components/OkBlobRunner.tsx
+msgid "Game over · press space to play again"
+msgstr "کھیل ختم · دوبارہ کھیلنے کے لیے اسپیس دبائیں"
+
#: src/lib/keyboard-shortcuts.ts
msgid "General"
msgstr "عمومی"
@@ -5837,6 +5848,10 @@ msgstr "مدد"
msgid "Helps your coding agent recognize OpenKnowledge projects and route reads and writes through it."
msgstr "آپ کے کوڈنگ ایجنٹ کو OpenKnowledge پروجیکٹس پہچاننے اور پڑھنے لکھنے کو اس کے ذریعے چلانے میں مدد دیتا ہے۔"
+#: src/components/OkBlobRunner.tsx
+msgid "HI"
+msgstr "بلند ترین"
+
#: src/components/EditorTabTargetMenuItems.tsx
#: src/components/FileTree.tsx
msgid "Hidden “{basename}”"
@@ -7403,6 +7418,10 @@ msgstr "نیا"
msgid "New {0} chat"
msgstr "نئی {0} گفتگو"
+#: src/components/OkBlobRunner.tsx
+msgid "New best · press space to play again"
+msgstr "نیا ریکارڈ · دوبارہ کھیلنے کے لیے اسپیس دبائیں"
+
#: src/components/NewWorktreeDialog.tsx
msgid "New branch <0>{trimmed}</0> will be created from <1>{currentBaseLabel}</1>, in its own worktree under <2>.ok/worktrees/</2>."
msgstr "نئی برانچ <0>{trimmed}</0> <1>{currentBaseLabel}</1> سے بنے گی، <2>.ok/worktrees/</2> کے تحت اپنے الگ ورک ٹری میں۔"
@@ -8990,6 +9009,10 @@ msgstr "سادہ متن"
msgid "Plan ({done}/{0})"
msgstr "منصوبہ ({done}/{0})"
+#: src/components/ConnectingBanner.tsx
+msgid "Play Blob Run"
+msgstr "Blob Run کھیلیں"
+
#: src/components/FeedbackForm.tsx
msgid "Please choose Good or Not great."
msgstr "براہِ کرم «اچھا» یا «زیادہ اچھا نہیں» منتخب کریں۔"
@@ -9048,6 +9071,10 @@ msgstr "کسی دستاویز کو الگ ونڈو میں سلائیڈ ڈیک ک
msgid "Present a document as a slide deck in its own window. Works in the OpenKnowledge desktop app only, and needs the Slidev CLI, which you install separately. When on, it appears under Plugins in the sidebar."
msgstr "کسی دستاویز کو الگ ونڈو میں سلائیڈ ڈیک کے طور پر پیش کریں۔ یہ صرف OpenKnowledge ڈیسک ٹاپ ایپ میں کام کرتا ہے اور اس کے لیے Slidev CLI درکار ہے، جسے آپ الگ سے انسٹال کرتے ہیں۔ فعال ہونے پر یہ سائیڈبار میں Plugins کے نیچے ظاہر ہوتا ہے۔"
+#: src/components/OkBlobRunner.tsx
+msgid "Press space or tap the blob to start"
+msgstr "شروع کرنے کے لیے اسپیس دبائیں یا blob پر ٹیپ کریں"
+
#: src/components/EditorWorkspace.tsx
msgid "Press Space to pick up a tab. Use the arrow keys to move it within a tab strip, then press Space or Enter to drop it. Press Shift+F10 or the Menu key to open the tab context menu for split, close, pin, and other tab actions."
msgstr "ٹیب اٹھانے کے لیے Space دبائیں۔ اسے ٹیب پٹی کے اندر منتقل کرنے کے لیے تیر والی کلیدیں استعمال کریں، پھر چھوڑنے کے لیے Space یا Enter دبائیں۔ تقسیم، بند، پن اور دیگر ٹیب اعمال والا سیاقی مینو کھولنے کے لیے Shift+F10 یا Menu کلید دبائیں۔"
@@ -11204,6 +11231,14 @@ msgstr "سورس کی تلاش"
msgid "Source undo or redo"
msgstr "سورس میں واپسی یا دوبارہ"
+#: src/components/OkBlobRunner.tsx
+msgid "Space to jump · down arrow to duck"
+msgstr "چھلانگ کے لیے اسپیس · جھکنے کے لیے نیچے کا تیر"
+
+#: src/components/OkBlobRunnerPage.tsx
+msgid "Space to jump, down arrow to duck. That is the whole game."
+msgstr "چھلانگ کے لیے اسپیس، جھکنے کے لیے نیچے کا تیر۔ بس یہی پورا کھیل ہے۔"
+
#: src/lib/keyboard-shortcuts.ts
msgid "Split list item"
msgstr "فہرست آئٹم تقسیم کریں"
diff --git a/packages/app/src/locales/zh-Hans/messages.json b/packages/app/src/locales/zh-Hans/messages.json
index 999677ddf..162037d32 100644
--- a/packages/app/src/locales/zh-Hans/messages.json
+++ b/packages/app/src/locales/zh-Hans/messages.json
@@ -302,6 +302,7 @@
"4mp6Tv": ["OpenKnowledge 列出了已安装的技能"],
"4niEzY": ["沙箱化的 HTML 嵌入——写下 HTML,实时查看渲染效果。"],
"4nj6n8": ["/api/config 返回了 HTTP ", ["code"]],
+ "4o57um": ["游戏结束 · 按空格再玩一次"],
"4pDZ2N": ["已把“", ["0"], "”从其他所有位置移除——它的来源文件夹仍会加载"],
"4rjwLG": ["用 ", ["0"], " CLI 创建"],
"4sKwf6": ["文件已存在"],
@@ -528,6 +529,7 @@
"8PifYj": ["Mermaid 图示"],
"8PmoQF": ["在空白或活动的文本位置打开插入菜单。"],
"8RtNI0": ["加载文档失败"],
+ "8SrrDi": ["新纪录 · 按空格再玩一次"],
"8TvlHF": ["崩溃转储"],
"8Uv5e6": ["智能体"],
"8Vq20-": ["切换 worktree"],
@@ -574,6 +576,7 @@
"99eR72": ["可视化编辑器表格选区"],
"9Bd18D": ["加载中枢页面失败"],
"9EykGQ": ["在右侧插入列"],
+ "9GbR5F": ["最高"],
"9HKBNN": ["命令"],
"9Ii3uK": [["0"], " 左侧的新窗格"],
"9J8xNg": ["已导入 ", ["importedLabel"]],
@@ -649,6 +652,7 @@
"ASqqsQ": ["最多 ", ["MAX_ATTACHMENTS"], " 个附件"],
"AT0e50": ["两个都保留"],
"ATGYL1": ["邮箱地址"],
+ "AUMPjj": ["空格跳跃,下方向键下蹲。整个游戏就这么简单。"],
"AUV-TY": ["思考中"],
"AVW-K9": ["加载孤立页面失败"],
"AWOSPo": ["放大"],
@@ -1356,6 +1360,7 @@
"MqsbfN": ["要开启外部链接预览吗?"],
"MrUmCD": ["未知的构建失败"],
"MrwYIK": ["通过 CodeMirror 切换源码注释。"],
+ "MsARMw": ["玩 Blob Run"],
"MuxcRB": [["0"], " 允许 ", ["1"], " 无需询问即可执行"],
"Mv2lM4": [
"未为 ",
@@ -1584,6 +1589,7 @@
"QQghPu": ["安装到 Claude Desktop"],
"QR5SP1": ["已创建模板"],
"QTsvh1": ["这个智能体需要你先登录——请看下方的提示。"],
+ "QUhYEG": ["空格跳跃 · 下方向键下蹲"],
"QWdKwH": ["移动"],
"QYTOaN": ["之后可以在<0>「设置 → 同步」</0>中更改。"],
"QYfQdv": [["displayName"], " CLI"],
@@ -2652,6 +2658,7 @@
"habOU_": ["更新自动批准设置失败——", ["detail"]],
"he3ygx": ["复制"],
"hgF0al": ["将 ", ["0"], " 用于当前的浅色模式"],
+ "hgf5io": ["Blob Run"],
"hgtsat": ["删除 ", ["file"], " 失败"],
"hh4mVC": ["让 AI 修复 ", ["flatId"]],
"hhI__i": ["确定要删除“", ["name"], "”及其内容吗?"],
@@ -3567,6 +3574,7 @@
" 的克隆。要换一个文件夹吗?"
],
"wGSHzy": ["激活编辑器的前八个标签页之一。"],
+ "wIM7ul": ["按空格或点击 blob 开始"],
"wJijgU": ["位置"],
"wJo9oS": ["关闭查找"],
"wQp1V3": ["<0>", ["src"], "</0> 的镜像"],
diff --git a/packages/app/src/locales/zh-Hans/messages.po b/packages/app/src/locales/zh-Hans/messages.po
index 521e3c982..1425487e3 100644
--- a/packages/app/src/locales/zh-Hans/messages.po
+++ b/packages/app/src/locales/zh-Hans/messages.po
@@ -1861,6 +1861,13 @@ msgstr "鸟类维基"
msgid "Blank note"
msgstr "空白笔记"
+#: src/components/command-palette-commands.ts
+#: src/components/EditorTabs.tsx
+#: src/components/HelpPopover.tsx
+#: src/components/OkBlobRunnerPage.tsx
+msgid "Blob Run"
+msgstr "Blob Run"
+
#: src/editor/slash-command/component-items.tsx
msgid "Block math equation rendered with KaTeX from a LaTeX source string."
msgstr "由 LaTeX 源码经 KaTeX 渲染的独立数学公式。"
@@ -5608,6 +5615,10 @@ msgstr "完全同步——你的提交会自动推送,远程改动会自动拉
msgid "Full sync — your edits are committed and pushed to your remote automatically."
msgstr "完全同步——你的编辑会自动提交并推送到你的远程仓库。"
+#: src/components/OkBlobRunner.tsx
+msgid "Game over · press space to play again"
+msgstr "游戏结束 · 按空格再玩一次"
+
#: src/lib/keyboard-shortcuts.ts
msgid "General"
msgstr "通用"
@@ -5837,6 +5848,10 @@ msgstr "帮助"
msgid "Helps your coding agent recognize OpenKnowledge projects and route reads and writes through it."
msgstr "帮助你的编程智能体识别 OpenKnowledge 项目,并把读写都经由它进行。"
+#: src/components/OkBlobRunner.tsx
+msgid "HI"
+msgstr "最高"
+
#: src/components/EditorTabTargetMenuItems.tsx
#: src/components/FileTree.tsx
msgid "Hidden “{basename}”"
@@ -7403,6 +7418,10 @@ msgstr "新建"
msgid "New {0} chat"
msgstr "新建 {0} 对话"
+#: src/components/OkBlobRunner.tsx
+msgid "New best · press space to play again"
+msgstr "新纪录 · 按空格再玩一次"
+
#: src/components/NewWorktreeDialog.tsx
msgid "New branch <0>{trimmed}</0> will be created from <1>{currentBaseLabel}</1>, in its own worktree under <2>.ok/worktrees/</2>."
msgstr "新分支 <0>{trimmed}</0> 将基于 <1>{currentBaseLabel}</1> 创建,位于 <2>.ok/worktrees/</2> 下自己的 worktree 中。"
@@ -8990,6 +9009,10 @@ msgstr "纯文本"
msgid "Plan ({done}/{0})"
msgstr "计划({done}/{0})"
+#: src/components/ConnectingBanner.tsx
+msgid "Play Blob Run"
+msgstr "玩 Blob Run"
+
#: src/components/FeedbackForm.tsx
msgid "Please choose Good or Not great."
msgstr "请选择「良好」或「不太好」。"
@@ -9048,6 +9071,10 @@ msgstr "在独立窗口中将文档演示为幻灯片。在文档的 frontmatter
msgid "Present a document as a slide deck in its own window. Works in the OpenKnowledge desktop app only, and needs the Slidev CLI, which you install separately. When on, it appears under Plugins in the sidebar."
msgstr "在独立窗口中将文档演示为幻灯片。仅在 OpenKnowledge 桌面应用中可用,并需要单独安装 Slidev CLI。启用后会显示在侧边栏的 Plugins 下。"
+#: src/components/OkBlobRunner.tsx
+msgid "Press space or tap the blob to start"
+msgstr "按空格或点击 blob 开始"
+
#: src/components/EditorWorkspace.tsx
msgid "Press Space to pick up a tab. Use the arrow keys to move it within a tab strip, then press Space or Enter to drop it. Press Shift+F10 or the Menu key to open the tab context menu for split, close, pin, and other tab actions."
msgstr "按空格键拾取标签页。使用方向键在标签栏内移动,然后按空格键或回车键放下。按 Shift+F10 或菜单键打开标签页的右键菜单,其中包含拆分、关闭、固定等操作。"
@@ -11204,6 +11231,14 @@ msgstr "源码搜索"
msgid "Source undo or redo"
msgstr "源码撤销或重做"
+#: src/components/OkBlobRunner.tsx
+msgid "Space to jump · down arrow to duck"
+msgstr "空格跳跃 · 下方向键下蹲"
+
+#: src/components/OkBlobRunnerPage.tsx
+msgid "Space to jump, down arrow to duck. That is the whole game."
+msgstr "空格跳跃,下方向键下蹲。整个游戏就这么简单。"
+
#: src/lib/keyboard-shortcuts.ts
msgid "Split list item"
msgstr "拆分列表项"
diff --git a/packages/app/src/locales/zh-Hant/messages.json b/packages/app/src/locales/zh-Hant/messages.json
index a270fcac4..6c283ac12 100644
--- a/packages/app/src/locales/zh-Hant/messages.json
+++ b/packages/app/src/locales/zh-Hant/messages.json
@@ -304,6 +304,7 @@
"4mp6Tv": ["OpenKnowledge 列出了已安裝的技能"],
"4niEzY": ["沙箱化的 HTML 嵌入——寫下 HTML,即時看到顯示結果。"],
"4nj6n8": ["/api/config 傳回了 HTTP ", ["code"]],
+ "4o57um": ["遊戲結束 · 按空白鍵再玩一次"],
"4pDZ2N": ["已把「", ["0"], "」從其他所有位置移除——它的來源資料夾仍然會載入"],
"4rjwLG": ["用 ", ["0"], " CLI 建立"],
"4sKwf6": ["檔案已存在"],
@@ -530,6 +531,7 @@
"8PifYj": ["Mermaid 圖表"],
"8PmoQF": ["在空白或作用中的文字位置開啟插入選單。"],
"8RtNI0": ["載入文件失敗"],
+ "8SrrDi": ["新紀錄 · 按空白鍵再玩一次"],
"8TvlHF": ["當機傾印"],
"8Uv5e6": ["代理"],
"8Vq20-": ["切換 worktree"],
@@ -576,6 +578,7 @@
"99eR72": ["視覺化編輯器表格選取範圍"],
"9Bd18D": ["載入樞紐頁面失敗"],
"9EykGQ": ["在右側插入欄"],
+ "9GbR5F": ["最高"],
"9HKBNN": ["指令"],
"9Ii3uK": [["0"], " 左側的新窗格"],
"9J8xNg": ["已匯入 ", ["importedLabel"]],
@@ -651,6 +654,7 @@
"ASqqsQ": ["最多 ", ["MAX_ATTACHMENTS"], " 個附件"],
"AT0e50": ["兩個都保留"],
"ATGYL1": ["電子郵件地址"],
+ "AUMPjj": ["空白鍵跳躍,下方向鍵蹲下。整個遊戲就這麼簡單。"],
"AUV-TY": ["思考中"],
"AVW-K9": ["載入孤立頁面失敗"],
"AWOSPo": ["放大"],
@@ -1376,6 +1380,7 @@
"MqsbfN": ["要開啟外部連結預覽嗎?"],
"MrUmCD": ["未知的建置失敗"],
"MrwYIK": ["透過 CodeMirror 切換原始碼註解。"],
+ "MsARMw": ["玩 Blob Run"],
"MuxcRB": [["0"], " 允許 ", ["1"], " 不必先詢問就執行"],
"Mv2lM4": [
"未為 ",
@@ -1604,6 +1609,7 @@
"QQghPu": ["安裝到 Claude Desktop"],
"QR5SP1": ["已建立範本"],
"QTsvh1": ["這個代理需要你先登入——請看下面的提示。"],
+ "QUhYEG": ["空白鍵跳躍 · 下方向鍵蹲下"],
"QWdKwH": ["移動"],
"QYTOaN": ["之後可以在<0>「設定 → 同步」</0>中變更。"],
"QYfQdv": [["displayName"], " CLI"],
@@ -2676,6 +2682,7 @@
"habOU_": ["更新自動核准設定失敗——", ["detail"]],
"he3ygx": ["複製"],
"hgF0al": ["將 ", ["0"], " 用於目前的淺色模式"],
+ "hgf5io": ["Blob Run"],
"hgtsat": ["刪除 ", ["file"], " 失敗"],
"hh4mVC": ["請 AI 修正 ", ["flatId"]],
"hhI__i": ["確定要刪除「", ["name"], "」及其內容嗎?"],
@@ -3597,6 +3604,7 @@
" 的複本。要換一個資料夾嗎?"
],
"wGSHzy": ["切換到編輯器的前八個分頁之一。"],
+ "wIM7ul": ["按空白鍵或點擊 blob 開始"],
"wJijgU": ["位置"],
"wJo9oS": ["關閉尋找"],
"wQp1V3": ["<0>", ["src"], "</0> 的鏡像"],
diff --git a/packages/app/src/locales/zh-Hant/messages.po b/packages/app/src/locales/zh-Hant/messages.po
index 5ca6b1435..cad7623ed 100644
--- a/packages/app/src/locales/zh-Hant/messages.po
+++ b/packages/app/src/locales/zh-Hant/messages.po
@@ -1861,6 +1861,13 @@ msgstr "鳥類維基"
msgid "Blank note"
msgstr "空白筆記"
+#: src/components/command-palette-commands.ts
+#: src/components/EditorTabs.tsx
+#: src/components/HelpPopover.tsx
+#: src/components/OkBlobRunnerPage.tsx
+msgid "Blob Run"
+msgstr "Blob Run"
+
#: src/editor/slash-command/component-items.tsx
msgid "Block math equation rendered with KaTeX from a LaTeX source string."
msgstr "由 LaTeX 原始碼經 KaTeX 顯示的獨立數學公式。"
@@ -5608,6 +5615,10 @@ msgstr "完全同步——你的提交會自動推送,遠端的變更會自動
msgid "Full sync — your edits are committed and pushed to your remote automatically."
msgstr "完全同步——你的編輯會自動提交並推送到你的遠端。"
+#: src/components/OkBlobRunner.tsx
+msgid "Game over · press space to play again"
+msgstr "遊戲結束 · 按空白鍵再玩一次"
+
#: src/lib/keyboard-shortcuts.ts
msgid "General"
msgstr "一般"
@@ -5837,6 +5848,10 @@ msgstr "說明"
msgid "Helps your coding agent recognize OpenKnowledge projects and route reads and writes through it."
msgstr "幫助你的程式碼代理辨識 OpenKnowledge 專案,並把讀寫都經由它進行。"
+#: src/components/OkBlobRunner.tsx
+msgid "HI"
+msgstr "最高"
+
#: src/components/EditorTabTargetMenuItems.tsx
#: src/components/FileTree.tsx
msgid "Hidden “{basename}”"
@@ -7403,6 +7418,10 @@ msgstr "新增"
msgid "New {0} chat"
msgstr "新的 {0} 對話"
+#: src/components/OkBlobRunner.tsx
+msgid "New best · press space to play again"
+msgstr "新紀錄 · 按空白鍵再玩一次"
+
#: src/components/NewWorktreeDialog.tsx
msgid "New branch <0>{trimmed}</0> will be created from <1>{currentBaseLabel}</1>, in its own worktree under <2>.ok/worktrees/</2>."
msgstr "新分支 <0>{trimmed}</0> 會從 <1>{currentBaseLabel}</1> 建立,放在 <2>.ok/worktrees/</2> 底下自己的 worktree 中。"
@@ -8990,6 +9009,10 @@ msgstr "純文字"
msgid "Plan ({done}/{0})"
msgstr "計畫({done}/{0})"
+#: src/components/ConnectingBanner.tsx
+msgid "Play Blob Run"
+msgstr "玩 Blob Run"
+
#: src/components/FeedbackForm.tsx
msgid "Please choose Good or Not great."
msgstr "請選「良好」或「不太好」。"
@@ -9048,6 +9071,10 @@ msgstr "在獨立視窗中將文件展示為簡報。在文件的 frontmatter
msgid "Present a document as a slide deck in its own window. Works in the OpenKnowledge desktop app only, and needs the Slidev CLI, which you install separately. When on, it appears under Plugins in the sidebar."
msgstr "在獨立視窗中將文件展示為簡報。僅能在 OpenKnowledge 桌面應用程式中使用,並需要另外安裝 Slidev CLI。啟用後會顯示在側邊欄的 Plugins 下。"
+#: src/components/OkBlobRunner.tsx
+msgid "Press space or tap the blob to start"
+msgstr "按空白鍵或點擊 blob 開始"
+
#: src/components/EditorWorkspace.tsx
msgid "Press Space to pick up a tab. Use the arrow keys to move it within a tab strip, then press Space or Enter to drop it. Press Shift+F10 or the Menu key to open the tab context menu for split, close, pin, and other tab actions."
msgstr "按空白鍵拾取分頁。使用方向鍵在分頁列內移動,然後按空白鍵或 Enter 鍵放下。按 Shift+F10 或選單鍵開啟分頁的快顯功能表,其中包含分割、關閉、釘選等操作。"
@@ -11204,6 +11231,14 @@ msgstr "原始碼搜尋"
msgid "Source undo or redo"
msgstr "原始碼復原或重做"
+#: src/components/OkBlobRunner.tsx
+msgid "Space to jump · down arrow to duck"
+msgstr "空白鍵跳躍 · 下方向鍵蹲下"
+
+#: src/components/OkBlobRunnerPage.tsx
+msgid "Space to jump, down arrow to duck. That is the whole game."
+msgstr "空白鍵跳躍,下方向鍵蹲下。整個遊戲就這麼簡單。"
+
#: src/lib/keyboard-shortcuts.ts
msgid "Split list item"
msgstr "分割清單項目"
diff --git a/packages/core/src/commands/command-identity.ts b/packages/core/src/commands/command-identity.ts
index 5cc6a8625..795cedb73 100644
--- a/packages/core/src/commands/command-identity.ts
+++ b/packages/core/src/commands/command-identity.ts
@@ -250,6 +250,16 @@ export interface CommandIdentity {
* Menu-only commands are interleaved near their menu neighbors.
*/
export const COMMAND_IDENTITIES: readonly CommandIdentity[] = [
+ // Palette-only, and search-only: findable by someone who goes looking,
+ // invisible to someone who just opened the palette. Deliberately declares no
+ // `menu` placement — a hidden game does not belong in the native menu bar.
+ {
+ id: 'open-blob-run',
+ labelKey: 'blobRun',
+ keywords: ['game', 'blob', 'runner', 'play', 'easter egg', 'dino'],
+ availability: {},
+ palette: { group: 'app', visibility: 'search-only' },
+ },
// ── Commands group (palette) / View-history (menu) ─────────────────────────
{
id: 'navigate-back',
diff --git a/packages/core/src/constants/menu-labels.ts b/packages/core/src/constants/menu-labels.ts
index c1b4cdf14..a5db4af77 100644
--- a/packages/core/src/constants/menu-labels.ts
+++ b/packages/core/src/constants/menu-labels.ts
@@ -88,6 +88,7 @@ export const MENU_LABELS = {
// Palette-only commands (no native-menu leaf); shared here so the label-parity
// test guards them and the registry keeps a single label source.
openGraph: 'Open graph',
+ blobRun: 'Blob Run',
initializeStarterPack: 'Initialize starter pack',
newSkill: 'New skill',
// State-aware Show/Hide toggles — both surfaces render both variants; the