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.
import { Predicate } from "effect";
import type { PreviewSessionSnapshot, ProjectScript } from "@akeru/contracts";
export function shouldShowPreviewEmptyState(snapshot: PreviewSessionSnapshot | null): boolean {
return snapshot === null || Predicate.isTagged(snapshot.navStatus, "Idle");
}
export function getConfiguredPreviewUrls(
scripts: ReadonlyArray<ProjectScript> | undefined,
): ReadonlyArray<string> {
return scripts?.flatMap((script) => (script.previewUrl ? [script.previewUrl] : [])) ?? [];
}