Skip to content

Commit c48fee4

Browse files
fix: Add FastAPI entrypoint for deployment platform auto-detection
Creates minimal app.py at root for deployment platforms that auto-detect FastAPI apps. The Empathy Framework is primarily a CLI tool - this just provides health check and info endpoints. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 29467e0 commit c48fee4

1 file changed

Lines changed: 42 additions & 0 deletions

File tree

app.py

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
"""Empathy Framework - Minimal FastAPI Entrypoint
2+
3+
This is a minimal API entrypoint for deployment platforms that auto-detect FastAPI.
4+
The Empathy Framework is primarily a CLI tool (`pip install empathy-framework`).
5+
6+
For the full wizards backend, see: deployments/wizards-backend/app.py
7+
"""
8+
9+
from fastapi import FastAPI
10+
from fastapi.responses import RedirectResponse
11+
12+
app = FastAPI(
13+
title="Empathy Framework",
14+
description="Power tools for Claude Code. This is a minimal API - the framework is primarily CLI-based.",
15+
version="4.4.0",
16+
docs_url="/docs",
17+
)
18+
19+
20+
@app.get("/")
21+
async def root():
22+
"""Root endpoint with project info."""
23+
return {
24+
"name": "Empathy Framework",
25+
"version": "4.4.0",
26+
"description": "Power tools for Claude Code",
27+
"cli_install": "pip install empathy-framework",
28+
"docs": "https://smartaimemory.com/framework-docs/",
29+
"github": "https://github.com/Smart-AI-Memory/empathy-framework",
30+
}
31+
32+
33+
@app.get("/health")
34+
async def health():
35+
"""Health check endpoint."""
36+
return {"status": "healthy", "version": "4.4.0"}
37+
38+
39+
@app.get("/docs-redirect")
40+
async def docs_redirect():
41+
"""Redirect to main documentation."""
42+
return RedirectResponse(url="https://smartaimemory.com/framework-docs/")

0 commit comments

Comments
 (0)