v0.41.0 - Marketing Site, Image Generation & Chat Refactor
π ChatLima v0.41.0 - Marketing Site, Image Generation & Chat Refactor
π― What's New
- Marketing homepage β new public landing experience with ChatLima moved to
/chatfor a clearer product/marketing split. - Image generation β generate images in chat with model selection, cost visibility, download support, and credit-based billing integration.
- MarketingShell layout β consistent marketing layout and accessibility improvements across homepage, pricing, and related pages.
- OpenRouter Fusion support β Fusion and meta-router models work in chat with dedicated 50-credit-per-message billing.
- MiniMax M3 presets β preset manager support for MiniMax M3 with updated max-token handling.
- Smarter sign-in redirects β Google OAuth sign-in returns users to their intended page after authentication.
- Cyberpunk theme fixes β code blocks and tables are readable again in the cyberpunk theme.
- Clearer pricing copy β credit-based plan usage messaging is easier to understand on marketing and billing surfaces.
π§ Technical Implementation
- Decomposed
POST /api/chatinto modularlib/chat/*services for stream setup, finalization, and route orchestration. - Added client-side message persistence and improved chat stream finalization with
createdAton AI/chat UI messages. - Introduced image generation tool handling, model validation, cost integration, and UI components (
image-modal, textarea cost visibility). - Added marketing routes and
MarketingShellcomponent; integrated across multiple pages for shared layout/SEO structure. - Extended chat routing for OpenRouter Fusion/meta-router model IDs and billing pre-checks.
- Updated
docs/architecture/flows.json, flow explorer,SPEC.md, and README for subscription tiers, credit pricing, and the chat refactor. - CI: Neon PR branch schema push is now non-interactive.
- Dev: added
docs:flowsscript and Codex worktree setup helpers.
π‘οΈ Security & Privacy
- No new required environment variables for production.
- No database migrations required.
- Image generation and Fusion model usage remain credit-gated with pre-check validation.
- Auth redirect support preserves intended destination without exposing sensitive state.
π Benefits
For Users
- A polished marketing site explains ChatLima before sign-in; chat lives at a dedicated
/chatURL. - Generate images directly in conversation with transparent cost handling.
- Fusion/meta-router models are usable without routing errors.
- Cyberpunk theme users get readable markdown tables and code blocks.
- Sign-in no longer drops users on a generic page after OAuth.
For Platform Operators
- Modular chat pipeline is easier to maintain and extend.
- Fusion billing is explicit (50 credits/message) rather than ambiguous token-based estimates.
- Marketing and product surfaces are separated for better SEO and onboarding.
For Developers
lib/chat/*modules clarify responsibilities previously buried in the monolithic chat route.- Architecture flow docs and SPEC updates reflect the refactored chat pipeline.
- Expanded type safety for image generation models and API key provider checks.
π Migration Notes
URL Change
- The main chat UI is now at
/chat. Bookmarks or integrations pointing at/for chat should be updated.
No Breaking API Changes
Existing chats, accounts, billing, and provider integrations continue to work.
For Developers
- Run
pnpm installafter pulling. - No new required environment variables.
- No database migrations.
- Review
SPEC.mdanddocs/architecture/flows.jsonfor updated chat architecture.
π Deployment
Standard Deployment Process
pnpm test:unit
pnpm build
git push origin main --tagsAutomatic Deployment
Pushing main automatically triggers production deployment via Vercel GitHub integration.
Pre-Deployment Checklist
- Feature branches merged to main
- Release notes generated for
v0.41.0 - Version bump and tag prepared for
v0.41.0
π Changes Summary
Key Areas Added
- Marketing homepage and
/chatroute split - Image generation tool pipeline and UI
lib/chat/*modular chat servicesMarketingShellshared layout component- OpenRouter Fusion / meta-router chat support
Key Areas Modified
app/api/chat/route.tsβ decomposed intolib/chat/*- Marketing pages, auth sign-in flow, preset manager
- Billing/credit handling for Fusion models
- Cyberpunk markdown rendering (tables, code blocks)
SPEC.md, README, architecture flow docs
Commits Included (since v0.40.0)
- Marketing homepage and
/chatroute move (PR #35) - Chat route quality refactor (PR #34)
- Image generation capabilities end-to-end
- MarketingShell integration and accessibility
- MiniMax M3 preset support
- OpenRouter Fusion chat + 50-credit billing
- Cyberpunk theme markdown fixes
- Auth redirect support
- Pricing copy improvements
Statistics
- 114 files changed since
v0.40.0 - 29 non-merge commits
- Enhancement: Marketing site, image generation, and chat architecture refactor
Full Changelog: v0.40.0...v0.41.0
π What's Next
Future work can extend landing-page SEO, deepen image generation model coverage, and build on the modular chat pipeline for additional OpenRouter capabilities.