mirror of
https://github.com/johndoe6345789/AutoMetabuilder.git
synced 2026-05-02 01:34:58 +00:00
- Implement core components: CLI argument parsing, environment loading, GitHub service creation, and logging configuration. - Add support for OpenAI client setup and model resolution. - Develop SDLC context loader from GitHub and repository files. - Implement workflow context and engine builders. - Introduce major workflow packages: `game_tick_loop` and `contextual_iterative_loop`. - Update localization files with new package descriptions and labels. - Streamline web navigation by loading items from a dedicated JSON file.
26 lines
754 B
Python
26 lines
754 B
Python
"""Flask-based API surface that replaces the legacy FastAPI frontend."""
|
|
from __future__ import annotations
|
|
|
|
from flask import Flask
|
|
|
|
from .routes.context import context_bp
|
|
from .routes.navigation import navigation_bp
|
|
from .routes.prompt import prompt_bp
|
|
from .routes.run import run_bp
|
|
from .routes.settings import settings_bp
|
|
from .routes.translations import translations_bp
|
|
|
|
app = Flask(__name__)
|
|
app.config["JSON_SORT_KEYS"] = False
|
|
|
|
app.register_blueprint(context_bp)
|
|
app.register_blueprint(run_bp)
|
|
app.register_blueprint(prompt_bp)
|
|
app.register_blueprint(settings_bp)
|
|
app.register_blueprint(translations_bp)
|
|
app.register_blueprint(navigation_bp)
|
|
|
|
|
|
def start_web_ui(host: str = "0.0.0.0", port: int = 8000) -> None:
|
|
app.run(host=host, port=port)
|