fix: serve_chat endpoint bug, stale docs, and license mismatch

- Fix /serve/chat AttributeError: split Request and ChatRequest params
  so auth headers are read from HTTP request, not Pydantic body
- Add regression tests for the serve_chat endpoint bug
- Add agent_core and lightning to pyproject.toml wheel includes
- Replace Apache 2.0 LICENSE with MIT to match pyproject.toml
- Update test count from "228" to "600+" across README, docs, AGENTS.md
- Add 5 missing subsystems to README table (Spark, Creative, Tools,
  Telegram, agent_core/lightning)
- Update AGENTS.md project structure with 6 missing modules
- Mark completed v2 roadmap items (personas, MCP tools) in AGENTS.md

https://claude.ai/code/session_01GMiccXbo77GkV3TA69x6KS
This commit is contained in:
Claude
2026-02-24 17:18:29 +00:00
parent d7cd686341
commit 832478f0d0
7 changed files with 146 additions and 211 deletions

View File

@@ -566,7 +566,7 @@
gate API access with Bitcoin Lightning — no cloud, no telemetry, no compromise.
</p>
<div class="hero-badges">
<span class="badge green">228 Tests Passing</span>
<span class="badge green">600+ Tests Passing</span>
<span class="badge blue">FastAPI + HTMX</span>
<span class="badge amber">Lightning L402</span>
<span class="badge">No Cloud</span>
@@ -582,7 +582,7 @@
<!-- ── Stats ────────────────────────────────────────────────────────────── -->
<div class="stats">
<div class="stat">
<div class="stat-number">228</div>
<div class="stat-number">600+</div>
<div class="stat-label">Tests Passing</div>
</div>
<div class="stat">
@@ -590,7 +590,7 @@
<div class="stat-label">API Endpoints</div>
</div>
<div class="stat">
<div class="stat-number">11</div>
<div class="stat-number">15</div>
<div class="stat-label">Subsystems</div>
</div>
<div class="stat">
@@ -780,7 +780,7 @@ External: Ollama :11434 · optional Redis · optional LND gRPC</span>
<div class="step-num">5</div>
<div>
<h4>Test</h4>
<pre class="codeblock"><span class="cmd">make test</span> <span class="cmt"># 228 tests — no Ollama needed</span>
<pre class="codeblock"><span class="cmd">make test</span> <span class="cmt"># 600+ tests — no Ollama needed</span>
<span class="cmd">make test-cov</span> <span class="cmt"># + coverage report</span>
<span class="cmd">make watch</span> <span class="cmt"># self-TDD watchdog in background</span></pre>
</div>
@@ -870,7 +870,7 @@ External: Ollama :11434 · optional Redis · optional LND gRPC</span>
<div class="roadmap-content">
<div class="roadmap-status" style="color:var(--green);">✓ Complete</div>
<h4>Foundation</h4>
<p>Agno + Ollama + SQLite + FastAPI dashboard + HTMX + 228 tests.
<p>Agno + Ollama + SQLite + FastAPI dashboard + HTMX + full test suite.
CLI, mobile layout, Bootstrap, CI/CD, AirLLM big-brain backend.</p>
</div>
</div>