import type { Context } from 'hono'; export type Env = { DB: D1Database; AVATARS: R2Bucket; SKILLS: R2Bucket; ASSETS: Fetcher; SITE_URL: string; EMAIL_FROM: string; AI_REVIEW_MODEL: string; SESSION_SECRET?: string; ANTHROPIC_API_KEY?: string; RESEND_API_KEY?: string; VIRUSTOTAL_API_KEY?: string; DEV_LOGIN?: string; /** Development only: a stand-in for api.github.com and raw.githubusercontent.com. */ GITHUB_API_BASE?: string; GITHUB_RAW_BASE?: string; }; export type User = { id: string; handle: string; display_name: string; bio: string; website: string; avatar_key: string | null; avatar_fallback: string | null; email: string | null; email_notices: number; status: string; is_admin: number; /** 1 for Sprout, the site's own agent. It cannot sign in and earns no Seeds. */ is_agent: number; onboarded: number; strikes: number; seeds_total: number; spotlight_at: number | null; created_at: number; }; export type Vars = { user: User | null; flash: { kind: 'ok' | 'error'; text: string } | null; }; export type AppEnv = { Bindings: Env; Variables: Vars }; export type Ctx = Context; export const VERSION = '2026.12.03.1';