personal memory agent
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix: rename agents_bp → sol_bp in sol app routes

The blueprint variable was still named agents_bp despite the blueprint
name and URL prefix being correctly updated to app:sol. This caused a
convention warning from the AppRegistry.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

+13 -13
+11 -11
apps/sol/routes.py
··· 21 21 from think.talent import get_output_path, get_talent_configs 22 22 from think.utils import updated_days 23 23 24 - agents_bp = Blueprint( 24 + sol_bp = Blueprint( 25 25 "app:sol", 26 26 __name__, 27 27 url_prefix="/app/sol", ··· 349 349 # ============================================================================= 350 350 351 351 352 - @agents_bp.route("/") 352 + @sol_bp.route("/") 353 353 def index() -> Any: 354 354 """Redirect to today's agent history.""" 355 355 today = date.today().strftime("%Y%m%d") 356 356 return redirect(url_for("app:sol.agents_day", day=today)) 357 357 358 358 359 - @agents_bp.route("/<day>") 359 + @sol_bp.route("/<day>") 360 360 def agents_day(day: str) -> str: 361 361 """Render agent history viewer for a specific day.""" 362 362 if not DATE_RE.fullmatch(day): ··· 372 372 # ============================================================================= 373 373 374 374 375 - @agents_bp.route("/api/agents/<day>") 375 + @sol_bp.route("/api/agents/<day>") 376 376 def api_agents_day(day: str) -> Any: 377 377 """Get agent runs and metadata for a specific day. 378 378 ··· 409 409 ) 410 410 411 411 412 - @agents_bp.route("/api/run/<agent_id>") 412 + @sol_bp.route("/api/run/<agent_id>") 413 413 def api_agent_run(agent_id: str) -> Any: 414 414 """Return full agent run detail with metadata and parsed events.""" 415 415 # Locate the agent JSONL file ··· 490 490 return jsonify({"error": str(e)}), 500 491 491 492 492 493 - @agents_bp.route("/api/output/<day>/<path:filename>") 493 + @sol_bp.route("/api/output/<day>/<path:filename>") 494 494 def api_output_file(day: str, filename: str) -> Any: 495 495 """Serve output file content for the run detail output tab. 496 496 ··· 532 532 return jsonify(content=content, format=fmt, filename=file_path.name) 533 533 534 534 535 - @agents_bp.route("/api/preview/<path:name>") 535 + @sol_bp.route("/api/preview/<path:name>") 536 536 def api_preview_prompt(name: str) -> Any: 537 537 """Return the complete rendered prompt for an agent. 538 538 ··· 576 576 return jsonify({"error": str(e)}), 500 577 577 578 578 579 - @agents_bp.route("/api/stats/<month>") 579 + @sol_bp.route("/api/stats/<month>") 580 580 def api_stats(month: str) -> Any: 581 581 """Return agent run counts per day per facet for a month. 582 582 ··· 623 623 return jsonify(stats) 624 624 625 625 626 - @agents_bp.route("/api/badge-count") 626 + @sol_bp.route("/api/badge-count") 627 627 def api_badge_count() -> Any: 628 628 """Get count of failed agent runs for today (for app icon badge).""" 629 629 today = date.today().strftime("%Y%m%d") ··· 632 632 return jsonify({"count": failed_count}) 633 633 634 634 635 - @agents_bp.route("/api/updated-days") 635 + @sol_bp.route("/api/updated-days") 636 636 def api_updated_days() -> Any: 637 637 """Return journal days with pending reprocessing.""" 638 638 today = date.today().strftime("%Y%m%d") ··· 642 642 return jsonify([]) 643 643 644 644 645 - @agents_bp.route("/api/identity") 645 + @sol_bp.route("/api/identity") 646 646 def api_identity() -> Any: 647 647 """Return agent identity and thickness signals.""" 648 648 try:
+2 -2
tests/test_app_sol.py
··· 246 246 """Create a Flask test client with agents blueprint and tmp journal.""" 247 247 from flask import Flask 248 248 249 - from apps.sol.routes import agents_bp 249 + from apps.sol.routes import sol_bp 250 250 from convey import state 251 251 252 252 app = Flask(__name__) 253 - app.register_blueprint(agents_bp) 253 + app.register_blueprint(sol_bp) 254 254 255 255 # Point state at our tmp journal 256 256 state.journal_root = str(tmp_path)