htmlgraph 0.28.0__py3-none-any.whl → 0.28.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- htmlgraph/__init__.py +1 -1
- htmlgraph/api/main.py +25 -0
- htmlgraph/api/static/presence-widget-demo.html +785 -0
- htmlgraph/api/templates/partials/agents.html +308 -80
- htmlgraph/db/schema.py +12 -0
- htmlgraph/models.py +1 -0
- htmlgraph/session_manager.py +7 -0
- {htmlgraph-0.28.0.dist-info → htmlgraph-0.28.1.dist-info}/METADATA +1 -1
- {htmlgraph-0.28.0.dist-info → htmlgraph-0.28.1.dist-info}/RECORD +15 -16
- htmlgraph/dashboard.html +0 -6592
- htmlgraph-0.28.0.data/data/htmlgraph/dashboard.html +0 -6592
- {htmlgraph-0.28.0.data → htmlgraph-0.28.1.data}/data/htmlgraph/styles.css +0 -0
- {htmlgraph-0.28.0.data → htmlgraph-0.28.1.data}/data/htmlgraph/templates/AGENTS.md.template +0 -0
- {htmlgraph-0.28.0.data → htmlgraph-0.28.1.data}/data/htmlgraph/templates/CLAUDE.md.template +0 -0
- {htmlgraph-0.28.0.data → htmlgraph-0.28.1.data}/data/htmlgraph/templates/GEMINI.md.template +0 -0
- {htmlgraph-0.28.0.dist-info → htmlgraph-0.28.1.dist-info}/WHEEL +0 -0
- {htmlgraph-0.28.0.dist-info → htmlgraph-0.28.1.dist-info}/entry_points.txt +0 -0
htmlgraph/__init__.py
CHANGED
htmlgraph/api/main.py
CHANGED
|
@@ -380,6 +380,31 @@ def get_app(db_path: str) -> FastAPI:
|
|
|
380
380
|
finally:
|
|
381
381
|
await db.close()
|
|
382
382
|
|
|
383
|
+
# ========== PRESENCE WIDGET DEMO (Phase 6) ==========
|
|
384
|
+
|
|
385
|
+
@app.get("/views/presence-widget", response_class=HTMLResponse)
|
|
386
|
+
async def presence_widget_demo(request: Request) -> HTMLResponse:
|
|
387
|
+
"""Phase 6 Demo: Real-time Presence Widget showing active agents across sessions.
|
|
388
|
+
|
|
389
|
+
This widget demonstrates:
|
|
390
|
+
- WebSocket connections to broadcast stream
|
|
391
|
+
- Real-time presence updates (<100ms latency)
|
|
392
|
+
- Multi-session agent coordination
|
|
393
|
+
- Integration with Phase 5 broadcast API
|
|
394
|
+
|
|
395
|
+
Try it out:
|
|
396
|
+
1. Open this page in your browser
|
|
397
|
+
2. In another terminal, emit presence events
|
|
398
|
+
3. Watch the dashboard update in real-time!
|
|
399
|
+
"""
|
|
400
|
+
widget_path = Path(__file__).parent / "static" / "presence-widget-demo.html"
|
|
401
|
+
if widget_path.exists():
|
|
402
|
+
return HTMLResponse(content=widget_path.read_text())
|
|
403
|
+
else:
|
|
404
|
+
raise HTTPException(
|
|
405
|
+
status_code=404, detail="Presence widget demo not found"
|
|
406
|
+
)
|
|
407
|
+
|
|
383
408
|
# ========== ACTIVITY FEED ENDPOINTS ==========
|
|
384
409
|
|
|
385
410
|
@app.get("/views/activity-feed", response_class=HTMLResponse)
|