feat: add api key auth, devii agent, openai gateway, and admin service management

This commit introduces a comprehensive set of new features including API key authentication with CLI management commands (get, reset, backfill), a Devii agentic assistant with WebSocket terminal and session bootstrap, an OpenAI-compatible LLM gateway service, and an admin service management panel. It also adds Playwright browser automation for bot support, configures internal gateway URLs, refactors content editing/deletion to support JSON API responses, and updates documentation across AGENTS.md, README.md, and the developer docs site.
This commit is contained in:
2026-06-08 15:38:33 +00:00
parent 921e382cbc
commit e0535bb7c5
270 changed files with 54408 additions and 541 deletions
+6 -4
View File
@@ -7,6 +7,8 @@ from devplacepy.templating import templates
from devplacepy.utils import get_current_user, time_ago, not_found
from devplacepy.content import canonical_redirect
from devplacepy.seo import base_seo_context, website_schema, site_url, news_article_schema, list_page_seo, next_page_url
from devplacepy.responses import respond
from devplacepy.schemas import NewsListOut, NewsDetailOut
logger = logging.getLogger(__name__)
router = APIRouter()
@@ -49,13 +51,13 @@ async def news_page(request: Request, before: str = None):
next_url=next_page_url(request, next_cursor),
)
return templates.TemplateResponse(request, "news.html", {
return respond(request, "news.html", {
**seo_ctx,
"request": request,
"user": user,
"articles": enriched,
"next_cursor": next_cursor,
})
}, model=NewsListOut)
@router.get("/{news_slug}", response_class=HTMLResponse)
@@ -91,7 +93,7 @@ async def news_detail_page(request: Request, news_slug: str):
schemas=[website_schema(base), news_article_schema(article, base, image_url)],
)
return templates.TemplateResponse(request, "news_detail.html", {
return respond(request, "news_detail.html", {
**seo_ctx,
"request": request,
"user": user,
@@ -102,4 +104,4 @@ async def news_detail_page(request: Request, news_slug: str):
"time_ago": time_ago(article["synced_at"]),
"comments": comments,
"bookmarked": bookmarked,
})
}, model=NewsDetailOut)