Multi-Agent Collaboration for Team and Friends
TypeScript agent-automationagent-orchestrationagent-workflowai-agentsai-collaborationai-memoryai-workforceautonomous-agentsclaude-codeclaude-code-skillscodexcoding-agentmulti-agentmultiple-agentone-person-businessone-person-companyone-person-teamopencodesolopreneur
feat: add blog system with Shiki highlighting and refactor agent form UX
Gus030cb50bb91b
diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex bbd83200a..8bddb7d5c 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -276,6 +276,9 @@ importers:shadcn:specifier: ^4.7.0version: 4.7.0(@types/[email protected])([email protected])+ shiki:+ specifier: ^4.1.0+ version: 4.1.0sonner:specifier: ^2.0.7@@ -2130,6 +2133,37 @@ packages:resolution: {integrity: sha512-zCKpyDIWKHwtervNK2ZlaK8mMV7gVUijAgFeJStH+CU/imcdquizV3pFLlSQYRswG+Lbyd6CT/LGRh3IbtkCFw==}engines: {node: '>=8'}+ '@shikijs/[email protected]':+ resolution: {integrity: sha512-jLJtSJeuFffqX6/inRE1zqU5aFv2hrszvYgq3OjbAgFRZiWv7abKMDdQzYxuSDfmUPQozZvI/kuy6VMTvnvqTQ==}+ engines: {node: '>=20'}++ '@shikijs/[email protected]':+ resolution: {integrity: sha512-YquhawCUgaBfhsS72e2Y/dI59gCBNPHu3fEO/tvLaXrTssxZrY5ddjtNLTwndrMgPo8b3IscE+xoICDzpTmlFQ==}+ engines: {node: '>=20'}++ '@shikijs/[email protected]':+ resolution: {integrity: sha512-axLpjVs45YBvvINa+dJF+NPW+KtFkNXsFr4SDw2BMj9GdeMnGxVB9PQb2xXlJYovslt/nz6giedAyOANkfc7hg==}+ engines: {node: '>=20'}++ '@shikijs/[email protected]':+ resolution: {integrity: sha512-nwOMruEkbgdZfQ/b8CgpNBVOpvG1k0N5tbmgiFeqsan401+x3ILqlzZJowSla4Agmq4hG2Uf2wh5jLTEhR8VSg==}+ engines: {node: '>=20'}++ '@shikijs/[email protected]':+ resolution: {integrity: sha512-zx2/2Uwj2q9X3KSyYREEhXO23xBw5WUhP4orK2lE4r+t9JGITmEe0JH+wPmJhqHpOT2bRRs6lAL945+LDvOAGw==}+ engines: {node: '>=20'}++ '@shikijs/[email protected]':+ resolution: {integrity: sha512-emCcTnUM7yO2wltYbaxm+yLvcCI4+h8XBKc4KmJ7EZUXoSGjcCHifkI//R4OFit9ewpg7H2/9tjOuXrT2v/Knw==}+ engines: {node: '>=20'}++ '@shikijs/[email protected]':+ resolution: {integrity: sha512-3EQWX54fMpniOrDblzAhiwiJwpiTMW6+B9DWyUd9ska483tbayFYuw47UxwuPknI31bKnySfVQ/QW+jFL4rFdA==}+ engines: {node: '>=20'}++ '@shikijs/[email protected]':+ resolution: {integrity: sha512-83yeghZ2xxin3Nj8z1NMd/NCuca+gsYXswywDy5bHvwlWL8tpTQmzGeUuHd9FC3E/SBEMvzJRwWEOz5gGes9Qg==}+'@sindresorhus/[email protected]':resolution: {integrity: sha512-P1Cz1dWaFfR4IR+U13mqqiGsLFf1KbayybWwdd2vfctdV6hDpUkgCY0nKOLLTMSoRd/jJNjtbqzf13K8DCCXQw==}engines: {node: '>=18'}@@ -4719,6 +4753,9 @@ packages:resolution: {integrity: sha512-3yTWghByc50aGS7JlGhk61SPenfE/p1oaFeNwkOOyrscaOkMGrcW9+Cy/QAIOBpZxP1yqDIzFMR0+Np0i0+usg==}+ resolution: {integrity: sha512-OguPdidb+fbHQSU4Q4ZiLKnzWo8Wwsf5bZfbvu7//a9oTYoqD/fWpe96NuHkoS9h0ccGOTe0C4NGXdtS0iObOw==}+resolution: {integrity: sha512-zl6s8LwNyo1P9uw+XJGvZtdFF1GdAkOg8ujOw+4Pyb76874fLps4ueHXDhXWdk6YHQ6OgUtinliG7RsYvCbbBg==}@@ -5791,6 +5828,12 @@ packages:resolution: {integrity: sha512-VXJjc87FScF88uafS3JllDgvAm+c/Slfz06lorj2uAY34rlUu0Nt+v8wreiImcrgAjjIHp1rXpTDlLOGw29WwQ==}engines: {node: '>=18'}+ resolution: {integrity: sha512-6HVa5oIrgMC6aA6WF6XyyqbhRPJrKR02L20+2+zpDtO5QAzGHAUGw5TKQvwi5vctNnRHkJYmjAhRVQF2EKdTQw==}++ resolution: {integrity: sha512-csuQ9x3Yr0cEIs/Zgx/OEt9iBw9vqIunAPQkx19R/fiMq2oGVTgcMqO/V3Ybqefr1TBvosI6jU539ksaBULJyA==}+resolution: {integrity: sha512-smsWv2LzFjP03xmvFoJ331ss6h+jixfA4UUV/Bsiyuu4YJPfN+FIQGOIiv4w9/+MoHkfkJ22UIaQWRVFRfH6Vw==}engines: {node: '>=20'}@@ -6115,6 +6158,15 @@ packages:resolution: {integrity: sha512-00o4I+DVrefhv+nX0ulyi3biSHCPDe+yLv5o/p6d/UVlirijB8E16FtfwSAi4g3tcqrQ4lRAqQSoFEZJehYEcw==}engines: {node: '>= 0.4'}+ resolution: {integrity: sha512-0YCaSCq2VRIebiaUviZNs0cBz1kg5kVS2UKUfNIx8YVs1cN3AV7NTctO5FOKBA+UT2BPJIWZauYHPqJODG50cg==}++ resolution: {integrity: sha512-8VhliFJAWRaUiVvREIiW2NXXTmHs4vMNnSzuJVhscgmGav3g9VDxLrQndI3dZZVVdp0ZO/5v0xmX516/7M9cng==}++ resolution: {integrity: sha512-6VwtthbV4o/7+OaAF9I5L5V3llLEsoPyq9P1JVXkedTP33c7MfCG0/5NOPcSJn0TzXcG9YUrR0gQSWioew3LDg==}+resolution: {integrity: sha512-dYqgNSZbDwkaJ2ceRd9ojCGjBq+mOm9LmtXnAnEGyHhN/5R7iDW2TRw3h+o/jCFxus3P2LfWIIiwowAjANm7IA==}engines: {node: '>= 0.4'}@@ -6324,6 +6376,10 @@ packages:resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==}engines: {node: '>=8'}+ resolution: {integrity: sha512-l/ABZPUR5v70jI10EzqfMS/I96vjSGv2y0ihUV+WYFzv0EfvW4s54m0Lg8wCrrL+2IkwBzFTuxkZjPf8b2NX9Q==}+ engines: {node: '>=20'}+resolution: {integrity: sha512-mjn/0bi/oUURjc5Xl7IaWi/OJJJumuoJFQJfDDyO46+hBWsfaVM65TBHq2eoZBhzl9EchxOijpkbRC8SVBQU0w==}engines: {node: '>= 0.4'}@@ -9115,6 +9171,46 @@ snapshots:dependencies:'@sentry/types': 7.120.4+ '@shikijs/[email protected]':+ dependencies:+ '@shikijs/primitive': 4.1.0+ '@shikijs/types': 4.1.0+ '@shikijs/vscode-textmate': 10.0.2+ '@types/hast': 3.0.4+ hast-util-to-html: 9.0.5++ '@shikijs/[email protected]':+ dependencies:+ '@shikijs/types': 4.1.0+ '@shikijs/vscode-textmate': 10.0.2+ oniguruma-to-es: 4.3.6++ '@shikijs/[email protected]':+ dependencies:+ '@shikijs/types': 4.1.0+ '@shikijs/vscode-textmate': 10.0.2++ '@shikijs/[email protected]':+ dependencies:+ '@shikijs/types': 4.1.0++ '@shikijs/[email protected]':+ dependencies:+ '@shikijs/types': 4.1.0+ '@shikijs/vscode-textmate': 10.0.2+ '@types/hast': 3.0.4++ '@shikijs/[email protected]':+ dependencies:+ '@shikijs/types': 4.1.0++ '@shikijs/[email protected]':+ dependencies:+ '@shikijs/vscode-textmate': 10.0.2+ '@types/hast': 3.0.4++ '@shikijs/[email protected]': {}+'@sindresorhus/[email protected]': {}'@sindresorhus/[email protected]': {}@@ -12054,6 +12150,20 @@ snapshots:'@ungap/structured-clone': 1.3.0unist-util-position: 5.0.0+ dependencies:+ '@types/hast': 3.0.4+ '@types/unist': 3.0.3+ ccount: 2.0.1+ comma-separated-tokens: 2.0.3+ hast-util-whitespace: 3.0.0+ html-void-elements: 3.0.0+ mdast-util-to-hast: 13.2.1+ property-information: 7.1.0+ space-separated-tokens: 2.0.2+ stringify-entities: 4.0.4+ zwitch: 2.0.4+dependencies:'@types/estree': 1.0.8@@ -13329,6 +13439,14 @@ snapshots:dependencies:mimic-function: 5.0.1+ [email protected]: {}++ dependencies:+ oniguruma-parser: 0.12.2+ regex: 6.1.0+ regex-recursion: 6.0.2+dependencies:default-browser: 5.5.0@@ -13727,6 +13845,16 @@ snapshots:get-proto: 1.0.1which-builtin-type: 1.2.1+ dependencies:+ regex-utilities: 2.3.0++ [email protected]: {}++ dependencies:+ regex-utilities: 2.3.0+dependencies:call-bind: 1.0.9@@ -14081,6 +14209,17 @@ snapshots:+ dependencies:+ '@shikijs/core': 4.1.0+ '@shikijs/engine-javascript': 4.1.0+ '@shikijs/engine-oniguruma': 4.1.0+ '@shikijs/langs': 4.1.0+ '@shikijs/themes': 4.1.0+ '@shikijs/types': 4.1.0+ '@shikijs/vscode-textmate': 10.0.2+ '@types/hast': 3.0.4+dependencies:es-errors: 1.3.0diff --git a/src/web/package.json b/src/web/package.jsonindex 51d0c4055..9a16e7104 100644--- a/src/web/package.json+++ b/src/web/package.json@@ -58,6 +58,7 @@"react": "19.2.6","react-dom": "19.2.6","shadcn": "^4.7.0",+ "shiki": "^4.1.0","sonner": "^2.0.7","streamdown": "^2.5.0","tailwind-merge": "^3.6.0",diff --git a/src/web/src/app/blog/[slug]/page.tsx b/src/web/src/app/blog/[slug]/page.tsxnew file mode 100644index 000000000..6dfa5f9d0--- /dev/null+++ b/src/web/src/app/blog/[slug]/page.tsx@@ -0,0 +1,159 @@+import type { Metadata } from "next";+import { notFound } from "next/navigation";+import Link from "next/link";+import { ArrowLeft, ArrowRight } from "lucide-react";+import { getAllPosts, getPostBySlug } from "@/lib/blog/posts";+import { highlightCodeBlocks } from "@/lib/blog/highlight";++export function generateStaticParams(): { slug: string }[] {+ return getAllPosts().map((post) => ({ slug: post.slug }));+}++export async function generateMetadata({+ params,+}: {+ params: Promise<{ slug: string }>;+}): Promise<Metadata> {+ const { slug } = await params;+ const post = getPostBySlug(slug);+ if (!post) return {};++ return {+ title: `${post.title} — Alook Blog`,+ description: post.excerpt,+ alternates: { canonical: `https://alook.ai/blog/${post.slug}` },+ openGraph: {+ title: post.title,+ description: post.excerpt,+ url: `https://alook.ai/blog/${post.slug}`,+ type: "article",+ publishedTime: post.date,+ authors: [post.author],+ images: [+ {+ url: `/og?title=${encodeURIComponent(post.title)}`,+ width: 1200,+ height: 630,+ },+ ],+ },+ twitter: {+ card: "summary_large_image",+ title: post.title,+ description: post.excerpt,+ images: [`/og?title=${encodeURIComponent(post.title)}`],+ },+ };+}++export default async function BlogPostPage({+ params,+}: {+ params: Promise<{ slug: string }>;+}) {+ const { slug } = await params;+ const post = getPostBySlug(slug);+ if (!post) notFound();++ const posts = getAllPosts();+ const currentIndex = posts.findIndex((p) => p.slug === slug);+ const prevPost = currentIndex < posts.length - 1 ? posts[currentIndex + 1] : null;+ const nextPost = currentIndex > 0 ? posts[currentIndex - 1] : null;++ const highlightedContent = await highlightCodeBlocks(post.content);++ const blogPostingJsonLd = {+ "@context": "https://schema.org",+ "@type": "BlogPosting",+ headline: post.title,+ description: post.excerpt,+ datePublished: post.date,+ author: {+ "@type": "Person",+ name: post.author,+ },+ publisher: {+ "@type": "Organization",+ name: "Alook AI",+ url: "https://alook.ai",+ },+ url: `https://alook.ai/blog/${post.slug}`,+ };++ return (+ <>+ <script+ type="application/ld+json"+ dangerouslySetInnerHTML={{ __html: JSON.stringify(blogPostingJsonLd) }}+ />+ <article className="mx-auto max-w-3xl px-6 pt-20 pb-24">+ <Link+ href="/blog"+ className="inline-flex items-center gap-1.5 text-sm text-muted-foreground hover:text-foreground transition-colors mb-12"+ >+ <ArrowLeft className="size-3.5" />+ All posts+ </Link>++ <header className="mb-14">+ <h1 className="font-news text-4xl sm:text-5xl font-semibold tracking-tight leading-[1.12]">+ {post.title}+ </h1>+ <div className="mt-5 flex items-center gap-3 text-sm text-muted-foreground">+ <span className="font-medium text-foreground/70">{post.author}</span>+ <span className="text-muted-foreground/40">/</span>+ <span>+ {new Date(post.date).toLocaleDateString("en-US", {+ year: "numeric",+ month: "long",+ day: "numeric",+ })}+ </span>+ <span className="text-muted-foreground/40">/</span>+ <span>{post.readingTime}</span>+ </div>+ </header>++ <div+ className="blog-content blog-content-editorial font-news text-lg leading-[1.8] text-foreground [&_h2]:font-news [&_h2]:text-[1.625rem] [&_h2]:font-semibold [&_h2]:tracking-tight [&_h2]:mt-14 [&_h2]:mb-5 [&_p]:mb-7 [&_blockquote]:border-l-[3px] [&_blockquote]:border-foreground/20 [&_blockquote]:pl-6 [&_blockquote]:italic [&_blockquote]:text-foreground/70 [&_blockquote]:my-8 [&_blockquote]:text-xl [&_blockquote]:leading-relaxed [&_code]:font-mono [&_code]:bg-muted [&_code]:px-1.5 [&_code]:py-0.5 [&_code]:rounded [&_code]:text-[0.875em] [&_pre]:bg-muted [&_pre]:rounded-lg [&_pre]:px-5 [&_pre]:py-4 [&_pre]:my-8 [&_pre]:overflow-x-auto [&_pre]:text-[0.875rem] [&_pre]:leading-relaxed [&_pre_code]:bg-transparent [&_pre_code]:p-0 [&_img]:rounded-lg [&_img]:my-10 [&_img]:w-full [&_ul]:list-disc [&_ul]:pl-6 [&_ul]:mb-6 [&_ul]:mt-[-0.25rem] [&_li]:mb-2.5 [&_li]:leading-[1.7] [&_strong]:font-semibold [&_em]:italic [&_a]:underline [&_a]:underline-offset-3 [&_a]:decoration-foreground/30 [&_a]:hover:decoration-foreground/60 [&_a]:transition-colors"+ dangerouslySetInnerHTML={{ __html: highlightedContent }}+ />++ <nav className="mt-20 border-t border-border pt-10 flex items-stretch justify-between gap-6">+ {prevPost ? (+ <Link+ href={`/blog/${prevPost.slug}`}+ className="group flex flex-col gap-1.5 text-left max-w-[45%]"+ >+ <span className="text-[11px] uppercase tracking-[0.15em] font-mono text-muted-foreground flex items-center gap-1.5">+ <ArrowLeft className="size-3" />+ Previous+ </span>+ <span className="text-[15px] font-news group-hover:translate-x-[-2px] transition-transform duration-200 leading-snug">+ {prevPost.title}+ </span>+ </Link>+ ) : (+ <div />+ )}+ {nextPost ? (+ <Link+ href={`/blog/${nextPost.slug}`}+ className="group flex flex-col gap-1.5 text-right ml-auto max-w-[45%]"+ >+ <span className="text-[11px] uppercase tracking-[0.15em] font-mono text-muted-foreground flex items-center justify-end gap-1.5">+ Next+ <ArrowRight className="size-3" />+ </span>+ <span className="text-[15px] font-news group-hover:translate-x-[2px] transition-transform duration-200 leading-snug">+ {nextPost.title}+ </span>+ </Link>+ ) : (+ <div />+ )}+ </nav>+ </article>+ </>+ );+}diff --git a/src/web/src/app/blog/feed.xml/route.ts b/src/web/src/app/blog/feed.xml/route.tsnew file mode 100644index 000000000..a534c6648--- /dev/null+++ b/src/web/src/app/blog/feed.xml/route.ts@@ -0,0 +1,51 @@+import { getAllPosts } from "@/lib/blog/posts";++export function GET() {+ const posts = getAllPosts();+ const siteUrl = "https://alook.ai";++ const items = posts+ .map(+ (post) => `+ <item>+ <title>${escapeXml(post.title)}</title>+ <link>${siteUrl}/blog/${post.slug}</link>+ <description>${escapeXml(post.excerpt)}</description>+ <pubDate>${new Date(post.date).toUTCString()}</pubDate>+ <guid isPermaLink="true">${siteUrl}/blog/${post.slug}</guid>+ <dc:creator>${escapeXml(post.author)}</dc:creator>+ </item>`+ )+ .join("");++ const lastBuildDate = posts.length > 0+ ? new Date(posts[0].date).toUTCString()+ : new Date().toUTCString();++ const xml = `<?xml version="1.0" encoding="UTF-8"?>+<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">+ <channel>+ <title>Alook Blog</title>+ <link>${siteUrl}/blog</link>+ <description>Thoughts on building AI companies, agent collaboration, and the future of personal software.</description>+ <language>en-us</language>+ <lastBuildDate>${lastBuildDate}</lastBuildDate>+ <atom:link href="${siteUrl}/blog/feed.xml" rel="self" type="application/rss+xml" />${items}+ </channel>+</rss>`;++ return new Response(xml, {+ headers: {+ "Content-Type": "application/rss+xml",+ },+ });+}++function escapeXml(str: string): string {+ return str+ .replace(/&/g, "&")+ .replace(/</g, "<")+ .replace(/>/g, ">")+ .replace(/"/g, """)+ .replace(/'/g, "'");+}diff --git a/src/web/src/app/blog/layout.tsx b/src/web/src/app/blog/layout.tsxnew file mode 100644index 000000000..749ecd55b--- /dev/null+++ b/src/web/src/app/blog/layout.tsx@@ -0,0 +1,95 @@+import Link from "next/link";+import Image from "next/image";+import { ThemeToggle } from "@/components/theme-toggle";++const footerLinks = [+ { href: "/templates", label: "Templates" },+ { href: "/blog", label: "Blog" },+ { href: "https://github.com/alookai/alook", label: "GitHub", external: true },+ { href: "https://discord.alook.ai", label: "Discord", external: true },+ { href: "https://x.com/alook_ai", label: "X", external: true },+ { href: "/privacy", label: "Privacy" },+];++export default function BlogLayout({+ children,+}: {+ children: React.ReactNode;+}) {+ return (+ <div className="min-h-dvh flex flex-col bg-background text-foreground">+ <nav className="sticky top-0 z-50 border-b border-border bg-background/90 backdrop-blur-sm">+ <div className="mx-auto flex max-w-5xl items-center justify-between px-6 py-3">+ <div className="flex items-center gap-1.5">+ <Link href="/" className="flex items-center gap-2">+ <Image src="/alook.svg" alt="Alook" width={22} height={22} />+ <span+ className="text-lg tracking-tight font-bold"+ style={{ fontFamily: "var(--font-brand)" }}+ >+ Alook+ </span>+ </Link>+ <span className="text-muted-foreground/50 text-sm">/</span>+ <Link+ href="/blog"+ className="text-sm font-medium text-foreground hover:text-muted-foreground transition-colors"+ >+ Blog+ </Link>+ </div>+ <ThemeToggle />+ </div>+ </nav>++ <main className="flex-1">{children}</main>++ <footer className="border-t border-border px-6 py-12">+ <div className="mx-auto flex max-w-5xl flex-col items-center justify-between gap-6 md:flex-row">+ <div className="flex items-center gap-4">+ <Link href="/" className="flex items-center gap-2">+ <Image src="/alook.svg" alt="Alook" width={20} height={20} />+ <span+ className="text-lg tracking-tight font-bold"+ style={{ fontFamily: "var(--font-brand)" }}+ >+ Alook+ </span>+ </Link>+ <span className="text-[10px] uppercase tracking-[0.2em] font-mono text-muted-foreground">+ Your Personal Company+ </span>+ </div>++ <nav className="flex items-center gap-5" aria-label="Footer navigation">+ {footerLinks.map((link) =>+ link.external ? (+ <a+ key={link.label}+ href={link.href}+ target="_blank"+ rel="noopener noreferrer"+ className="text-[11px] uppercase tracking-[0.15em] font-mono text-muted-foreground transition-opacity hover:opacity-70"+ >+ {link.label}+ </a>+ ) : (+ <Link+ key={link.label}+ href={link.href}+ className="text-[11px] uppercase tracking-[0.15em] font-mono text-muted-foreground transition-opacity hover:opacity-70"+ >+ {link.label}+ </Link>+ )+ )}+ </nav>++ <span className="text-[10px] uppercase tracking-[0.2em] font-mono text-muted-foreground/50">+ © {new Date().getFullYear()} Alook AI+ </span>+ </div>+ </footer>+ </div>+ );+}diff --git a/src/web/src/app/blog/page.tsx b/src/web/src/app/blog/page.tsxnew file mode 100644index 000000000..81090b6aa--- /dev/null+++ b/src/web/src/app/blog/page.tsx@@ -0,0 +1,117 @@+import type { Metadata } from "next";+import Link from "next/link";+import { getAllPosts } from "@/lib/blog/posts";++const description =+ "Thoughts on building AI companies, agent collaboration, and the future of personal software.";++export const metadata: Metadata = {+ title: "Blog — Alook",+ description,+ alternates: {+ canonical: "https://alook.ai/blog",+ types: { "application/rss+xml": "/blog/feed.xml" },+ },+ openGraph: {+ title: "Blog — Alook",+ description,+ url: "https://alook.ai/blog",+ images: [{ url: "/og?title=Blog", width: 1200, height: 630 }],+ },+ twitter: {+ card: "summary_large_image",+ title: "Blog — Alook",+ description,+ images: ["/og?title=Blog"],+ },+};++const collectionJsonLd = {+ "@context": "https://schema.org",+ "@type": "CollectionPage",+ name: "Alook Blog",+ description,+ url: "https://alook.ai/blog",+};++export default function BlogPage() {+ const posts = getAllPosts();+ const [featured, ...rest] = posts;++ return (+ <>+ <script+ type="application/ld+json"+ dangerouslySetInnerHTML={{ __html: JSON.stringify(collectionJsonLd) }}+ />+ <div className="mx-auto max-w-3xl px-6 pt-20 pb-24">+ <header className="mb-16">+ <h1 className="font-news text-5xl sm:text-6xl font-semibold tracking-[-0.025em] leading-none">+ Blog+ </h1>+ <p className="mt-4 text-[1.0625rem] text-muted-foreground font-news leading-relaxed max-w-xl">+ {description}+ </p>+ </header>++ {featured && (+ <Link+ href={`/blog/${featured.slug}`}+ className="group block pb-14 mb-14 border-b border-border"+ >+ <span className="text-xs font-mono uppercase tracking-[0.2em] text-muted-foreground/60">+ Latest+ </span>+ <h2 className="mt-3 font-news text-3xl sm:text-4xl font-semibold tracking-tight leading-tight group-hover:translate-x-1 transition-transform duration-200">+ {featured.title}+ </h2>+ <p className="mt-3 text-sm text-muted-foreground">+ {new Date(featured.date).toLocaleDateString("en-US", {+ year: "numeric",+ month: "long",+ day: "numeric",+ })}{" "}+ · {featured.readingTime}+ </p>+ <p className="mt-4 font-news text-lg text-foreground/80 leading-relaxed max-w-2xl">+ {featured.excerpt}+ </p>+ </Link>+ )}++ <div className="space-y-0">+ {rest.map((post, i) => (+ <article+ key={post.slug}+ className={`py-10 ${i < rest.length - 1 ? "border-b border-border" : ""}`}+ >+ <Link href={`/blog/${post.slug}`} className="group block">+ <div className="flex items-baseline gap-4">+ <span className="text-xs font-mono text-muted-foreground/40 tabular-nums w-6 shrink-0">+ {String(i + 2).padStart(2, "0")}+ </span>+ <div>+ <h2 className="font-news text-xl sm:text-2xl font-semibold tracking-tight group-hover:translate-x-0.5 transition-transform duration-200">+ {post.title}+ </h2>+ <p className="mt-1.5 text-sm text-muted-foreground">+ {new Date(post.date).toLocaleDateString("en-US", {+ year: "numeric",+ month: "long",+ day: "numeric",+ })}{" "}+ · {post.readingTime}+ </p>+ <p className="mt-3 font-news text-foreground/75 leading-relaxed">+ {post.excerpt}+ </p>+ </div>+ </div>+ </Link>+ </article>+ ))}+ </div>+ </div>+ </>+ );+}diff --git a/src/web/src/app/globals.css b/src/web/src/app/globals.cssindex f0ddeecf4..1ce946d0c 100644--- a/src/web/src/app/globals.css+++ b/src/web/src/app/globals.css@@ -1045,33 +1045,89 @@/* ── Thin scrollbar (code blocks, tool panels, chat scroll) ── */.markdown pre,[data-streamdown] pre,-.task-stream-pre {+.task-stream-pre,+.blog-content pre {scrollbar-width: thin;scrollbar-color: var(--border) transparent;}.markdown pre::-webkit-scrollbar,[data-streamdown] pre::-webkit-scrollbar,-.task-stream-pre::-webkit-scrollbar {+.task-stream-pre::-webkit-scrollbar,+.blog-content pre::-webkit-scrollbar {height: 4px;width: 4px;}.markdown pre::-webkit-scrollbar-track,[data-streamdown] pre::-webkit-scrollbar-track,-.task-stream-pre::-webkit-scrollbar-track {+.task-stream-pre::-webkit-scrollbar-track,+.blog-content pre::-webkit-scrollbar-track {background: transparent;}.markdown pre::-webkit-scrollbar-thumb,[data-streamdown] pre::-webkit-scrollbar-thumb,-.task-stream-pre::-webkit-scrollbar-thumb {+.task-stream-pre::-webkit-scrollbar-thumb,+.blog-content pre::-webkit-scrollbar-thumb {background: var(--border);border-radius: 2px;}.markdown pre::-webkit-scrollbar-thumb:hover,[data-streamdown] pre::-webkit-scrollbar-thumb:hover,-.task-stream-pre::-webkit-scrollbar-thumb:hover {+.task-stream-pre::-webkit-scrollbar-thumb:hover,+.blog-content pre::-webkit-scrollbar-thumb:hover {background: var(--muted-foreground);}+/* ── Blog: Editorial drop cap ── */+.blog-content-editorial > p:first-of-type::first-letter {+ font-family: var(--font-literata);+ font-size: 3.4em;+ font-weight: 600;+ float: left;+ line-height: 0.75;+ margin-right: 0.06em;+ margin-top: 0.07em;+ padding-bottom: 0.04em;+ color: var(--foreground);+}++/* ── Blog: responsive h2 (arbitrary variants don't support sm: inside [&_]) ── */+@media (min-width: 640px) {+ .blog-content-editorial h2 {+ font-size: 1.875rem;+ }+}++/* ── Blog: Shiki syntax highlighting ── */+.blog-content .shiki {+ background-color: var(--muted) !important;+ border-radius: 0.5rem;+ padding: 1.25rem;+ margin: 1.5rem 0;+ overflow-x: auto;+ font-family: var(--font-dm-mono);+ font-size: 0.875rem;+ line-height: 1.7;+}+.blog-content .shiki code {+ background: transparent !important;+ padding: 0;+ font-size: inherit;+}+html.light .blog-content .shiki,+html:not(.dark) .blog-content .shiki {+ background-color: var(--muted) !important;+}+html.light .blog-content .shiki span,+html:not(.dark) .blog-content .shiki span {+ color: var(--shiki-light) !important;+}+html.dark .blog-content .shiki span {+ color: var(--shiki-dark) !important;+}+html.dark .blog-content .shiki {+ background-color: var(--muted) !important;+}+/* ── Streamdown code block: everything inside the dark area ── *//* Outer container: owns border + radius + clipping */diff --git a/src/web/src/app/sitemap.ts b/src/web/src/app/sitemap.tsindex 8474535e2..34450bddc 100644--- a/src/web/src/app/sitemap.ts+++ b/src/web/src/app/sitemap.ts@@ -1,5 +1,6 @@import type { MetadataRoute } from "next";import { TEMPLATES } from "@/lib/templates";+import { getAllPosts } from "@/lib/blog/posts";const SITE_URL = "https://alook.ai";@@ -11,6 +12,13 @@ export default function sitemap(): MetadataRoute.Sitemap {priority: 0.7,}));+ const blogEntries: MetadataRoute.Sitemap = getAllPosts().map((post) => ({+ url: `${SITE_URL}/blog/${post.slug}`,+ lastModified: new Date(post.date),+ changeFrequency: "monthly",+ priority: 0.6,+ }));+return [{url: SITE_URL,@@ -25,6 +33,13 @@ export default function sitemap(): MetadataRoute.Sitemap {priority: 0.8,},...templateEntries,+ {+ url: `${SITE_URL}/blog`,+ lastModified: new Date(),+ changeFrequency: "weekly",+ priority: 0.8,+ },+ ...blogEntries,{url: `${SITE_URL}/sign-in`,lastModified: new Date(),diff --git a/src/web/src/components/agent-create-form.tsx b/src/web/src/components/agent-create-form.tsxindex 6ec08a52e..ecf9210e0 100644--- a/src/web/src/components/agent-create-form.tsx+++ b/src/web/src/components/agent-create-form.tsx@@ -213,8 +213,8 @@ export function AgentCreateForm({};return (- <div className="flex-1 min-h-0 overflow-y-auto thin-scrollbar px-5 py-6">- <form onSubmit={handleSubmit} noValidate className="mx-auto max-w-md space-y-4">+ <div className="flex-1 min-h-0 overflow-y-auto thin-scrollbar">+ <form onSubmit={handleSubmit} noValidate className="mx-auto max-w-md flex flex-col gap-5 px-8 pt-8 pb-6"><AvatarPickerDialogconfig={avatarConfig}onChange={setAvatarConfig}@@ -235,22 +235,22 @@ export function AgentCreateForm({errors={fieldErrors}runtimeAsRadioonShuffle={shuffleName}+ emailHandleSlot={+ <EmailHandleField+ emailHandle={emailHandle}+ setEmailHandle={setEmailHandle}+ derivedHandle={derivedHandle}+ />+ }+ advancedSection={+ <CustomEmailForm+ workspaceId={workspaceId}+ onDataChange={setCustomEmailData}+ getDataRef={customEmailGetDataRef}+ />+ }/>- <div className="border-t border-border/50 pt-4 mt-4 space-y-4">- <EmailHandleField- emailHandle={emailHandle}- setEmailHandle={setEmailHandle}- derivedHandle={derivedHandle}- />-- <CustomEmailForm- workspaceId={workspaceId}- onDataChange={setCustomEmailData}- getDataRef={customEmailGetDataRef}- />- </div>-<div className="flex items-center gap-2 pt-2"><Button type="button" variant="ghost" size="sm" onClick={onCancel}>Canceldiff --git a/src/web/src/components/agent-edit-form.tsx b/src/web/src/components/agent-edit-form.tsxindex 8a94700f3..40fb7994b 100644--- a/src/web/src/components/agent-edit-form.tsx+++ b/src/web/src/components/agent-edit-form.tsx@@ -8,13 +8,15 @@ import type { AgentRuntime as Runtime } from "@alook/shared";import { cn } from "@/lib/utils";import { LockIcon } from "lucide-react";import { CustomEmailForm } from "@/components/custom-email-form";+import { Input } from "@/components/ui/input";+import { Label } from "@/components/ui/label";import { MarkdownEditor } from "@/components/ui/markdown-editor";+import { RuntimeSelect } from "@/components/runtime-select";import { useWorkspace } from "@/contexts/workspace-context";import { updateAgent as updateAgentApi } from "@/lib/api";import { toast } from "sonner";import {GeneralFields,- PinToggle,AllowedSendersTab,AgentAccessTab,} from "@/components/agent-form-fields";@@ -55,6 +57,62 @@ function UsageRing({ ratio, size = 16, stroke = 1.5 }: { ratio: number; size?: n);}+function RuntimeTab({+ model,+ setModel,+ runtimeId,+ setRuntimeId,+ runtimes,+ providerModels,+}: {+ model: string;+ setModel: (v: string) => void;+ runtimeId: string;+ setRuntimeId: (v: string) => void;+ runtimes: Runtime[];+ providerModels: string[];+}) {+ return (+ <>+ <div className="space-y-1.5">+ <Label className="text-xs text-muted-foreground">Runtime</Label>+ <RuntimeSelect+ value={runtimeId}+ onValueChange={(newId) => {+ const oldProvider = runtimes.find((r) => r.id === runtimeId)?.provider;+ const newProvider = runtimes.find((r) => r.id === newId)?.provider;+ setRuntimeId(newId);+ if (oldProvider && oldProvider !== newProvider) {+ setModel("");+ }+ }}+ runtimes={runtimes}+ />+ </div>++ <div className="space-y-1.5">+ <Label className="text-xs text-muted-foreground">Model</Label>+ <Input+ value={model}+ onChange={(e) => setModel(e.target.value)}+ placeholder="Default (runtime model)"+ list="agent-model-options-edit"+ />+ {providerModels.length > 0 && (+ <datalist id="agent-model-options-edit">+ {providerModels.map((m) => (+ <option key={m} value={m} />+ ))}+ </datalist>+ )}+ <p className="text-xs text-muted-foreground/70">+ Optional. Leave blank to use the runtime's default model.+ </p>+ </div>+ </>+ );+}+interface AgentEditFormProps {agent: Agent;runtimes: Runtime[];@@ -70,7 +128,7 @@ interface AgentEditFormProps {saving: boolean;}-type TabId = "general" | "instruction" | "email" | "permission";+type TabId = "general" | "instruction" | "runtime" | "email" | "permission";export function AgentEditForm({agent,@@ -196,11 +254,12 @@ export function AgentEditForm({const tabs: { id: TabId; label: string }[] = [{ id: "general", label: "General" },{ id: "instruction", label: "Instruction" },+ { id: "runtime", label: "Runtime" },{ id: "email", label: "Email" },{ id: "permission", label: "Permission" },];- const isFormTab = activeTab === "general" || activeTab === "email";+ const isFormTab = activeTab === "general" || activeTab === "runtime" || activeTab === "email";const instructionRatio = instructions.length / MAX_INSTRUCTION_LENGTH;return (@@ -281,13 +340,23 @@ export function AgentEditForm({setModel={setModel}runtimeId={runtimeId}setRuntimeId={setRuntimeId}- runtimes={runtimes}- providerModels={providerModels}+ runtimes={[]}+ providerModels={[]}/>- <PinToggle agentId={agent.id} /></>)}+ {activeTab === "runtime" && (+ <RuntimeTab+ model={model}+ setModel={setModel}+ runtimeId={runtimeId}+ setRuntimeId={setRuntimeId}+ runtimes={runtimes}+ providerModels={providerModels}+ />+ )}+{activeTab === "email" && (<><div className="rounded-lg border border-border/50 bg-muted/30 px-4 py-3">diff --git a/src/web/src/components/agent-form-fields.tsx b/src/web/src/components/agent-form-fields.tsxindex efbdc4e96..c4450a704 100644--- a/src/web/src/components/agent-form-fields.tsx+++ b/src/web/src/components/agent-form-fields.tsx@@ -4,7 +4,6 @@ import { useState, useEffect } from "react";import { Button } from "@/components/ui/button";import { Input } from "@/components/ui/input";import { Label } from "@/components/ui/label";-import { Textarea } from "@/components/ui/textarea";import {Select,SelectTrigger,@@ -26,7 +25,7 @@ import { ProviderLogo } from "@/components/provider-logo";import { isValidHandle } from "@alook/shared";import type { AgentRuntime as Runtime } from "@alook/shared";import { cn } from "@/lib/utils";-import { InfoIcon, XIcon, Dices } from "lucide-react";+import { InfoIcon, XIcon, Dices, ChevronDown } from "lucide-react";import { useWorkspace } from "@/contexts/workspace-context";import {listWhitelist,@@ -75,6 +74,8 @@ interface GeneralFieldsProps {};runtimeAsRadio?: boolean;onShuffle?: () => void;+ emailHandleSlot?: React.ReactNode;+ advancedSection?: React.ReactNode;}export function GeneralFields({@@ -93,80 +94,68 @@ export function GeneralFields({errors,runtimeAsRadio = false,onShuffle,+ emailHandleSlot,+ advancedSection,}: GeneralFieldsProps) {return (<>- <div className="space-y-1.5">- <Label htmlFor="agent-name">Name <span className="text-destructive">*</span></Label>- <div className="flex items-center gap-1">- <Input+ {/* Name — large frameless input */}+ <div>+ <div className="relative">+ <inputid="agent-name"value={name}onChange={(e) => setName(e.target.value)}- placeholder="My Agent"+ placeholder="Agent name"required+ autoFocusaria-invalid={Boolean(errors?.name)}aria-describedby={errors?.name ? "agent-name-error" : undefined}+ className="w-full border-0 bg-transparent px-0 py-1 text-2xl font-medium leading-[1.2] tracking-tight shadow-none outline-none placeholder:text-muted-foreground/40 placeholder:font-normal focus-visible:ring-0"/>{onShuffle && (- <Button type="button" variant="ghost" size="icon" className="shrink-0 size-8" onClick={onShuffle} aria-label="Randomize name">- <Dices className="size-4 text-muted-foreground" />- </Button>+ <button+ type="button"+ onClick={onShuffle}+ aria-label="Randomize name"+ className="absolute right-0 top-1/2 -translate-y-1/2 rounded p-1.5 text-muted-foreground/50 hover:text-foreground hover:bg-accent transition-colors"+ >+ <Dices className="size-4" />+ </button>)}</div>{errors?.name && (- <p id="agent-name-error" className="text-xs text-destructive">+ <p id="agent-name-error" className="text-xs text-destructive mt-1">{errors.name}</p>)}</div>- <div className="space-y-1.5">- <Label htmlFor="agent-description">Description</Label>- <Input- id="agent-description"- value={description}- onChange={(e) => setDescription(e.target.value)}- placeholder="What does this agent do?"- />- </div>-- {setInstructions && (- <div className="space-y-1.5">- <Label htmlFor="agent-instructions">Instructions</Label>- <Textarea- id="agent-instructions"- value={instructions ?? ""}- onChange={(e) => setInstructions(e.target.value)}- placeholder="System prompt or instructions..."- rows={6}- />- </div>- )}+ {/* Description — frameless, auto-growing */}+ <textarea+ id="agent-description"+ value={description}+ onChange={(e) => {+ setDescription(e.target.value);+ e.target.style.height = "auto";+ e.target.style.height = `${e.target.scrollHeight}px`;+ }}+ ref={(el) => {+ if (el) {+ el.style.height = "auto";+ el.style.height = `${el.scrollHeight}px`;+ }+ }}+ placeholder="Add a description…"+ rows={1}+ className="w-full resize-none overflow-hidden border-0 bg-transparent px-0 py-0.5 text-sm text-foreground shadow-none outline-none placeholder:text-muted-foreground/40 focus-visible:ring-0"+ />- <div className="space-y-1.5">- <Label htmlFor="agent-model">Model</Label>- <Input- id="agent-model"- value={model}- onChange={(e) => setModel(e.target.value)}- placeholder="Default (runtime model)"- list="agent-model-options"- />- {providerModels.length > 0 && (- <datalist id="agent-model-options">- {providerModels.map((m) => (- <option key={m} value={m} />- ))}- </datalist>- )}- <p className="text-xs text-muted-foreground/70">- Optional. Leave blank to use the runtime's default model.- </p>- </div>+ {emailHandleSlot}- <div id="agent-runtime-select" className="space-y-1.5">- <Label>Runtime <span className="text-destructive">*</span></Label>+ {/* Runtime */}+ {(runtimeAsRadio || runtimes.length > 0) && <div id="agent-runtime-select" className="space-y-1.5">+ <Label className="text-xs text-muted-foreground">Runtime</Label>{runtimeAsRadio ? (<div className="space-y-1.5" role="radiogroup" aria-label="Runtime">{runtimes.length === 0 ? (@@ -183,7 +172,7 @@ export function GeneralFields({"flex items-center gap-2.5 rounded-lg border p-2.5 cursor-pointer transition-colors",isSelected? "border-primary bg-primary/5"- : "border-border hover:border-foreground/20",+ : "border-border/50 hover:border-foreground/20",!isOnline && "opacity-40 pointer-events-none")}>@@ -241,11 +230,80 @@ export function GeneralFields({{errors.runtimeId}</p>)}- </div>+ </div>}++ {/* Advanced — collapsible */}+ {(setInstructions || advancedSection) && (+ <AdvancedSection>+ {setInstructions && (+ <div className="space-y-1">+ <Label className="text-xs text-muted-foreground">Instructions</Label>+ <textarea+ id="agent-instructions"+ value={instructions ?? ""}+ onChange={(e) => {+ setInstructions(e.target.value);+ e.target.style.height = "auto";+ e.target.style.height = `${e.target.scrollHeight}px`;+ }}+ ref={(el) => {+ if (el) {+ el.style.height = "auto";+ el.style.height = `${el.scrollHeight}px`;+ }+ }}+ placeholder="System prompt or instructions..."+ rows={3}+ className="w-full resize-none overflow-hidden border-0 bg-transparent px-0 py-1 text-sm text-foreground shadow-none outline-none placeholder:text-muted-foreground/40 focus-visible:ring-0"+ />+ </div>+ )}++ <div className="space-y-1">+ <Label className="text-xs text-muted-foreground">Model</Label>+ <input+ id="agent-model"+ value={model}+ onChange={(e) => setModel(e.target.value)}+ placeholder="Default (runtime model)"+ list="agent-model-options"+ className="w-full border-0 bg-transparent px-0 py-0.5 text-sm text-foreground shadow-none outline-none placeholder:text-muted-foreground/40 focus-visible:ring-0"+ />+ {providerModels.length > 0 && (+ <datalist id="agent-model-options">+ {providerModels.map((m) => (+ <option key={m} value={m} />+ ))}+ </datalist>+ )}+ </div>++ {advancedSection}+ </AdvancedSection>+ )}</>);}+// --- Advanced Section (collapsible) ---++function AdvancedSection({ children }: { children: React.ReactNode }) {+ const [open, setOpen] = useState(false);+ return (+ <div className="pt-1">+ <button+ type="button"+ onClick={() => setOpen(!open)}+ className="flex items-center gap-1.5 text-xs text-muted-foreground hover:text-foreground transition-colors"+ >+ <ChevronDown className={cn("size-3.5 transition-transform", open && "rotate-180")} />+ Advanced+ </button>+ {open && <div className="mt-3 space-y-4">{children}</div>}+ </div>+ );+}+// --- Email Handle Field ---interface EmailHandleFieldProps {@@ -266,33 +324,23 @@ export function EmailHandleField({: "";return (- <div className="space-y-1.5">- <Label htmlFor="agent-handle">Email Handle</Label>- <div className="flex items-center gap-0">- <Input+ <div className="space-y-1">+ <Label className="text-xs text-muted-foreground">Email</Label>+ <div className="flex items-center">+ <inputid="agent-handle"value={emailHandle}onChange={(e) => setEmailHandle(e.target.value.toLowerCase())}placeholder={derivedHandle || "my-agent"}- className="rounded-r-none"+ className="w-full border-0 bg-transparent px-0 py-0.5 text-sm text-foreground shadow-none outline-none placeholder:text-muted-foreground/40 focus-visible:ring-0"/>- <span className="inline-flex h-8 items-center rounded-r-lg border border-l-0 border-input bg-muted px-2.5 text-sm text-muted-foreground">+ <span className="shrink-0 text-sm text-muted-foreground/70">@alook.ai</span></div>- {effectiveHandle && (- <p- className={cn(- "text-xs",- handleError ? "text-destructive" : "text-muted-foreground"- )}- >- {handleError || `${effectiveHandle}@alook.ai`}- </p>+ {handleError && (+ <p className="text-xs text-destructive">{handleError}</p>)}- <p className="text-xs text-muted-foreground/70">- This cannot be changed after creation.- </p></div>);}diff --git a/src/web/src/components/home/marketing-footer.tsx b/src/web/src/components/home/marketing-footer.tsxindex 1e5c6d7a8..ddc72e774 100644--- a/src/web/src/components/home/marketing-footer.tsx+++ b/src/web/src/components/home/marketing-footer.tsx@@ -11,11 +11,11 @@ gsap.registerPlugin(ScrollTrigger);const footerLinks = [{ href: "/templates", label: "Templates" },+ { href: "/blog", label: "Blog" },{ href: "https://github.com/alookai/alook", label: "GitHub", external: true },{ href: "https://discord.alook.ai", label: "Discord", external: true },{ href: "https://x.com/alook_ai", label: "X", external: true },{ href: "/privacy", label: "Privacy" },- { href: "mailto:[email protected]", label: "Contact", external: true },];export function MarketingFooter() {diff --git a/src/web/src/components/home/marketing-nav.tsx b/src/web/src/components/home/marketing-nav.tsxindex 595fbfe8b..f4c899092 100644--- a/src/web/src/components/home/marketing-nav.tsx+++ b/src/web/src/components/home/marketing-nav.tsx@@ -39,6 +39,16 @@ export function MarketingNav({ isLoggedIn }: { isLoggedIn: boolean }) {>Templates</Link>+ <Link+ href="/blog"+ className="hidden sm:block px-3 py-1.5 text-xs uppercase tracking-widest transition-opacity duration-150 hover:opacity-70"+ style={{+ fontFamily: "var(--font-mono)",+ color: "var(--landing-text)",+ }}+ >+ Blog+ </Link><ahref="https://github.com/alookai/alook"target="_blank"diff --git a/src/web/src/components/theme-toggle.tsx b/src/web/src/components/theme-toggle.tsxindex cd3352090..4e644f8a1 100644--- a/src/web/src/components/theme-toggle.tsx+++ b/src/web/src/components/theme-toggle.tsx@@ -1,36 +1,32 @@"use client";-import { useEffect, useRef, useState } from "react";+import { useEffect, useState } from "react";import { useTheme } from "next-themes";-import { Sun, Moon, Monitor } from "lucide-react";+import { Sun, Moon } from "lucide-react";import { Button } from "@/components/ui/button";-const themes = ["system", "light", "dark"] as const;-export function ThemeToggle() {- const { theme, setTheme } = useTheme();+ const { resolvedTheme, setTheme } = useTheme();const [mounted, setMounted] = useState(false);- const mountedRef = useRef(setMounted);- useEffect(() => { mountedRef.current(true); }, []);+ useEffect(() => { setMounted(true); }, []);- const cycle = () => {- const i = themes.indexOf(theme as (typeof themes)[number]);- setTheme(themes[(i + 1) % themes.length]);+ const toggle = () => {+ setTheme(resolvedTheme === "dark" ? "light" : "dark");};if (!mounted) {return (<Button variant="ghost" size="sm" disabled>- <Monitor className="size-4" />+ <Sun className="size-4" /></Button>);}- const Icon = theme === "dark" ? Moon : theme === "light" ? Sun : Monitor;+ const Icon = resolvedTheme === "dark" ? Moon : Sun;return (- <Button variant="ghost" size="sm" onClick={cycle} aria-label="Toggle theme">+ <Button variant="ghost" size="sm" onClick={toggle} aria-label="Toggle theme"><Icon className="size-4" /></Button>);diff --git a/src/web/src/lib/blog/highlight.ts b/src/web/src/lib/blog/highlight.tsnew file mode 100644index 000000000..68aea4c78--- /dev/null+++ b/src/web/src/lib/blog/highlight.ts@@ -0,0 +1,47 @@+import { createHighlighter, type Highlighter } from "shiki";++let highlighter: Highlighter | null = null;++async function getHighlighter(): Promise<Highlighter> {+ if (!highlighter) {+ highlighter = await createHighlighter({+ themes: ["vitesse-light", "vitesse-dark"],+ langs: ["typescript", "javascript", "bash", "json", "html", "css", "tsx", "jsx", "yaml", "markdown", "python"],+ });+ }+ return highlighter;+}++function detectLanguage(code: string): string {+ if (code.includes("import ") || code.includes("export ") || code.includes("const ") || code.includes("async ") || code.includes("=>")) return "typescript";+ if (code.includes("npx ") || code.includes("pnpm ") || code.includes("npm ") || code.startsWith("$") || code.startsWith("#!")) return "bash";+ if (code.trim().startsWith("{") || code.trim().startsWith("[")) return "json";+ if (code.includes("<html") || code.includes("<!DOCTYPE")) return "html";+ if (code.includes("def ") || code.includes("print(")) return "python";+ return "typescript";+}++export async function highlightCodeBlocks(html: string): Promise<string> {+ const hl = await getHighlighter();++ return html.replace(+ /<pre><code(?:\s+class="language-(\w+)")?>([\s\S]*?)<\/code><\/pre>/g,+ (_, lang: string | undefined, code: string) => {+ const decoded = code+ .replace(/</g, "<")+ .replace(/>/g, ">")+ .replace(/&/g, "&")+ .replace(/"/g, '"')+ .replace(/'/g, "'");++ const language = lang || detectLanguage(decoded);++ const highlighted = hl.codeToHtml(decoded.trim(), {+ lang: language,+ themes: { light: "vitesse-light", dark: "vitesse-dark" },+ });++ return highlighted;+ }+ );+}diff --git a/src/web/src/lib/blog/posts.ts b/src/web/src/lib/blog/posts.tsnew file mode 100644index 000000000..fdf33bbdd--- /dev/null+++ b/src/web/src/lib/blog/posts.ts@@ -0,0 +1,109 @@+/**+ * HOW TO ADD A NEW BLOG POST+ * ==========================+ *+ * 1. Add a new object to the `posts` array below. Required fields:+ * - slug: URL path (lowercase, hyphens only, e.g. "my-new-post")+ * - title: Display title+ * - date: ISO date string "YYYY-MM-DD" (determines sort order, newest first)+ * - author: Author name+ * - excerpt: 1-2 sentence summary shown on the listing page+ * - readingTime: e.g. "3 min read"+ * - content: Raw HTML string (see supported tags below)+ *+ * 2. SUPPORTED HTML TAGS (these are styled by the template):+ * <h2> — Section headings (don't use h1, the post title is h1)+ * <p> — Paragraphs+ * <strong> — Bold text+ * <em> — Italic text+ * <a href=""> — Links (rendered with underline)+ * <ul><li> — Unordered lists+ * <blockquote> — Pull quotes (rendered with left border, italic)+ * <code> — Inline code (rendered with mono font, muted background)+ * <pre><code> — Code blocks (syntax highlighted via Shiki, horizontal scroll)+ * Optional: add class="language-xxx" to <code> for explicit language+ * Supported: typescript, javascript, bash, json, html, css, tsx, jsx, yaml, markdown, python+ * If omitted, language is auto-detected from content+ * <img> — Images (full width, rounded corners, vertical spacing)+ *+ * 3. UNSTYLED TAGS (avoid unless styles are added to blog/[slug]/page.tsx):+ * h3, h4, ol, hr, table+ *+ * 4. RULES:+ * - Wrap ALL text in <p> tags (bare text won't get spacing)+ * - Don't use <h1> — it's reserved for the post title+ * - Don't use class attributes — styling comes from the template+ * - Don't use <script> or event handlers+ * - Keep slugs unique across all posts+ */++export type BlogPost = {+ slug: string;+ title: string;+ date: string;+ author: string;+ excerpt: string;+ readingTime: string;+ content: string;+};++const posts: BlogPost[] = [+ {+ slug: "why-we-built-alook",+ title: "Why We Built Alook",+ date: "2026-05-15",+ author: "Gus",+ excerpt:+ "The pain of managing AI across ten platforms, and why we decided to build something different.",+ readingTime: "4 min read",+ content: `+<p>I was drowning in tabs. ChatGPT for brainstorming. Claude for code. Midjourney for visuals. Notion AI for notes. A different tool for every thought, a different context window for every task. None of them talked to each other. None of them remembered what the others had done.</p>++<p>This wasn't the future of AI-augmented work. This was tool fragmentation dressed up as progress.</p>++<h2>The Breaking Point</h2>++<p>I'd been building products for a decade. I knew what good tools felt like — they disappeared into your workflow, not multiplied across it. But the AI landscape was evolving so fast that every week brought a new best-in-class model for something. The rational response was to use them all. The human cost was context-switching hell.</p>++<p>One afternoon I counted: I had eleven AI subscriptions. Eleven billing pages. Eleven different memory systems (mostly none). I was spending more time orchestrating my AI tools than doing the actual work they were supposed to help with.</p>++<h2>The Insight</h2>++<p>What if instead of using AI tools, you could hire AI the way you hire people? Not as isolated utilities, but as a team. A team that shares context, divides labor, and collaborates without you being the bottleneck in every loop.</p>++<p>That's the core idea behind Alook. Not another AI tool — a personal company. A team of AI agents that work together, remember your preferences, and get things done while you focus on what matters.</p>++<h2>What "Personal Company" Means</h2>++<p>A company has roles. A company has communication channels. A company has institutional memory. These aren't metaphors — they're architectural decisions.</p>++<p>In Alook, each agent has a job description, a set of tools, and the ability to email other agents when it needs help. Your planner agent writes development plans. Your coder agent implements them. Your reviewer agent catches bugs. They coordinate through structured communication, not shared token windows.</p>++<blockquote>The best manager doesn't do the work — they make sure the right people are doing the right work at the right time.</blockquote>++<p>That's the role we think humans should play with AI. Not writing prompts all day, but setting direction and letting a competent team execute.</p>++<h2>Why Now</h2>++<p>Three things converged: models got good enough to be genuinely useful at specialized tasks. Context windows got large enough to hold meaningful work state. And tool-use capabilities matured to the point where agents could actually do things in the world — send emails, write code, manage calendars.</p>++<p>The missing piece was the orchestration layer. Something that turned isolated capabilities into coordinated action. That's what we're building.</p>++<h2>What's Next</h2>++<p>Alook is open source. It runs on your machine or your cloud. Your data stays yours. We believe the future of AI assistance is personal, private, and composable — not locked behind someone else's platform.</p>++<p>We're just getting started, and we'd love your help shaping what comes next.</p>+`,+ },+];++export function getAllPosts(): BlogPost[] {+ return [...posts].sort(+ (a, b) => new Date(b.date).getTime() - new Date(a.date).getTime()+ );+}++export function getPostBySlug(slug: string): BlogPost | undefined {+ return posts.find((p) => p.slug === slug);+}