Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
Merge main
milind-sonibcd0cfadc1d6
diff --cc server/turn-watchdog.test.tsindex 16e8fb539a,d454c6e410..fe4b4ab08b--- a/server/turn-watchdog.test.ts+++ b/server/turn-watchdog.test.ts@@@ -1,9 -1,8 +1,9 @@@import { readFileSync } from "node:fs";import vm from "node:vm";import ts from "typescript";- import { describe, expect, it } from "vitest";+ import { describe, expect, it, vi } from "vitest";+import { chatNotice, failedNoticeTool } from "./chat-notices.ts";import type { RuntimeEvent } from "./contracts.ts";import { EngineMemory } from "./engine-memory.ts";import type { Message } from "./store.ts";diff --cc src/components/CitationUI.tsxindex b95dd3b776,120fc47ebd..d4da5ce368--- a/src/components/CitationUI.tsx+++ b/src/components/CitationUI.tsx@@@ -8,9 -8,9 +8,10 @@@ importwithCitationComment,type CitationAttachment,} from "@/lib/citations";- import { captureCitationSelection, citationTabShortcut } from "@/lib/citations-dom";+ import { captureCitationSelection, citationShortcutHint, citationTabShortcut, isCitationShortcut } from "@/lib/citations-dom";+ import { isMacPlatform } from "@/lib/keyboard-shortcuts";import { sendsMessage, useSendKey } from "@/lib/send-key";+import { intlLocale, t } from "@/lib/i18n";type Point = { left: number; top: number };@@@ -185,7 -200,9 +201,9 @@@ export function CitationSelectionToolbaref={buttonRef}type="button"disabled={tooLong}- aria-label={tooLong ? "Selection is too long to cite" : "Cite selected text"}+ aria-label={t(tooLong ? "chat.citation.tooLongLabel" : "chat.citation.citeLabel")}+ aria-keyshortcuts={tooLong ? undefined : isMac ? "Meta+L" : "Control+L"}- title={tooLong ? undefined : `Cite selected text (${shortcut})`}++ title={tooLong ? undefined : `${t("chat.citation.citeLabel")} (${shortcut})`}onPointerDown={(event) => event.preventDefault()}onClick={() => setEditing(true)}onKeyDown={(event) => {@@@ -194,7 -211,8 +212,8 @@@className="fixed z-50 flex items-center gap-1.5 rounded-full border border-hairline/50 bg-panel px-3 py-1.5 text-[12px] font-medium text-ink shadow-lg disabled:text-danger"style={captured.point}>- <Quote size={13} aria-hidden="true" /> {tooLong ? "Shorten selection" : "Cite"}+ <Quote size={13} aria-hidden="true" /> {t(tooLong ? "chat.citation.shorten" : "chat.citation.cite")}+ {!tooLong && <kbd aria-hidden="true" className="font-sans text-[11px] font-normal text-ink-secondary">{shortcut}</kbd>}</button>,document.body,);