Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.
fmt
Julius Marmingeba4a62eb0335
diff --git a/apps/web/src/chat-scroll.test.ts b/apps/web/src/chat-scroll.test.tsindex 4d85278bc..5311fb40a 100644--- a/apps/web/src/chat-scroll.test.ts+++ b/apps/web/src/chat-scroll.test.ts@@ -1,9 +1,6 @@import { describe, expect, it } from "vitest";-import {- AUTO_SCROLL_BOTTOM_THRESHOLD_PX,- isScrollContainerNearBottom,-} from "./chat-scroll";+import { AUTO_SCROLL_BOTTOM_THRESHOLD_PX, isScrollContainerNearBottom } from "./chat-scroll";describe("isScrollContainerNearBottom", () => {it("returns true when already at bottom", () => {diff --git a/apps/web/src/components/ChatView.tsx b/apps/web/src/components/ChatView.tsxindex 7a29f57e0..da90b9a86 100644--- a/apps/web/src/components/ChatView.tsx+++ b/apps/web/src/components/ChatView.tsx@@ -1447,7 +1447,9 @@ const MessagesTimeline = memo(function MessagesTimeline({if (!hasMessages && !isWorking) {return (<div className="flex h-full items-center justify-center">- <p className="text-sm text-muted-foreground/30">Send a message to start the conversation.</p>+ <p className="text-sm text-muted-foreground/30">+ Send a message to start the conversation.+ </p></div>);}diff --git a/apps/web/src/components/GitActionsControl.tsx b/apps/web/src/components/GitActionsControl.tsxindex 68599e0aa..7890665a9 100644--- a/apps/web/src/components/GitActionsControl.tsx+++ b/apps/web/src/components/GitActionsControl.tsx@@ -627,7 +627,8 @@ export default function GitActionsControl({ api, gitCwd }: GitActionsControlProp: gitStatusForActions.aheadCount === 0 &&gitStatusForActions.behindCount === 0? "Up to date"- : gitStatusForActions.aheadCount > 0 && gitStatusForActions.behindCount > 0+ : gitStatusForActions.aheadCount > 0 &&+ gitStatusForActions.behindCount > 0? `Diverged (+${gitStatusForActions.aheadCount} / -${gitStatusForActions.behindCount})`: gitStatusForActions.aheadCount > 0? `Ahead by ${gitStatusForActions.aheadCount}`diff --git a/apps/web/src/keybindings.test.ts b/apps/web/src/keybindings.test.tsindex 2a3b9c324..9c17ca40b 100644--- a/apps/web/src/keybindings.test.ts+++ b/apps/web/src/keybindings.test.ts@@ -98,7 +98,9 @@ const DEFAULT_BINDINGS = compile([describe("isTerminalToggleShortcut", () => {it("matches Cmd+J on macOS", () => {assert.isTrue(- isTerminalToggleShortcut(event({ metaKey: true }), DEFAULT_BINDINGS, { platform: "MacIntel" }),+ isTerminalToggleShortcut(event({ metaKey: true }), DEFAULT_BINDINGS, {+ platform: "MacIntel",+ }),);});@@ -219,7 +221,10 @@ describe("shortcutLabelForCommand", () => {whenAst: whenNot(whenIdentifier("terminalFocus")),},]);- assert.strictEqual(shortcutLabelForCommand(bindings, "terminal.split", "Linux"), "Ctrl+Shift+\\");+ assert.strictEqual(+ shortcutLabelForCommand(bindings, "terminal.split", "Linux"),+ "Ctrl+Shift+\\",+ );});it("returns labels for non-terminal commands", () => {@@ -247,22 +252,14 @@ describe("chat/editor shortcuts", () => {it("matches chat.newLocal shortcut", () => {assert.isTrue(- isChatNewLocalShortcut(- event({ key: "n", metaKey: true, shiftKey: true }),- DEFAULT_BINDINGS,- {- platform: "MacIntel",- },- ),+ isChatNewLocalShortcut(event({ key: "n", metaKey: true, shiftKey: true }), DEFAULT_BINDINGS, {+ platform: "MacIntel",+ }),);assert.isTrue(- isChatNewLocalShortcut(- event({ key: "n", ctrlKey: true, shiftKey: true }),- DEFAULT_BINDINGS,- {- platform: "Linux",- },- ),+ isChatNewLocalShortcut(event({ key: "n", ctrlKey: true, shiftKey: true }), DEFAULT_BINDINGS, {+ platform: "Linux",+ }),);});@@ -344,11 +341,17 @@ describe("cross-command precedence", () => {describe("formatShortcutLabel", () => {it("formats labels for macOS", () => {- assert.strictEqual(formatShortcutLabel(modShortcut("d", { shiftKey: true }), "MacIntel"), "⇧⌘D");+ assert.strictEqual(+ formatShortcutLabel(modShortcut("d", { shiftKey: true }), "MacIntel"),+ "⇧⌘D",+ );});it("formats labels for non-macOS", () => {- assert.strictEqual(formatShortcutLabel(modShortcut("d", { shiftKey: true }), "Linux"), "Ctrl+Shift+D");+ assert.strictEqual(+ formatShortcutLabel(modShortcut("d", { shiftKey: true }), "Linux"),+ "Ctrl+Shift+D",+ );});it("formats labels for plus key", () => {@@ -368,7 +371,9 @@ describe("isTerminalClearShortcut", () => {});it("ignores non-keydown events", () => {- assert.isFalse(isTerminalClearShortcut(event({ type: "keyup", key: "l", ctrlKey: true }), "Linux"));+ assert.isFalse(+ isTerminalClearShortcut(event({ type: "keyup", key: "l", ctrlKey: true }), "Linux"),+ );});});@@ -413,7 +418,9 @@ describe("terminalNavigationShortcutData", () => {"MacIntel",),);- assert.isNull(terminalNavigationShortcutData(event({ key: "ArrowLeft", metaKey: true }), "Linux"));+ assert.isNull(+ terminalNavigationShortcutData(event({ key: "ArrowLeft", metaKey: true }), "Linux"),+ );assert.isNull(terminalNavigationShortcutData(event({ key: "a", altKey: true }), "MacIntel"));});diff --git a/packages/contracts/src/keybindings.ts b/packages/contracts/src/keybindings.tsindex d9d8bfbf9..96f89de12 100644--- a/packages/contracts/src/keybindings.ts+++ b/packages/contracts/src/keybindings.ts@@ -21,14 +21,16 @@ export const keybindingRuleSchema = z.object({export const keybindingsConfigSchema = z.array(keybindingRuleSchema).max(256);-export const keybindingShortcutSchema = z.object({- key: z.string().trim().min(1).max(32),- metaKey: z.boolean(),- ctrlKey: z.boolean(),- shiftKey: z.boolean(),- altKey: z.boolean(),- modKey: z.boolean(),-}).strict();+export const keybindingShortcutSchema = z+ .object({+ key: z.string().trim().min(1).max(32),+ metaKey: z.boolean(),+ ctrlKey: z.boolean(),+ shiftKey: z.boolean(),+ altKey: z.boolean(),+ modKey: z.boolean(),+ })+ .strict();export type KeybindingWhenNode =| { type: "identifier"; name: string }@@ -59,11 +61,13 @@ export const keybindingWhenNodeSchema: z.ZodType<KeybindingWhenNode> = z.lazy(()]),);-export const resolvedKeybindingRuleSchema = z.object({- command: keybindingCommandSchema,- shortcut: keybindingShortcutSchema,- whenAst: keybindingWhenNodeSchema.optional(),-}).strict();+export const resolvedKeybindingRuleSchema = z+ .object({+ command: keybindingCommandSchema,+ shortcut: keybindingShortcutSchema,+ whenAst: keybindingWhenNodeSchema.optional(),+ })+ .strict();export const resolvedKeybindingsConfigSchema = z.array(resolvedKeybindingRuleSchema).max(256);