Spaces:
Running
Running
Update app/app.py
Browse files- app/app.py +8 -8
app/app.py
CHANGED
|
@@ -34,13 +34,13 @@ from typing import Dict, Any, Optional
|
|
| 34 |
# Each module reads its own config from app/.pyfun independently.
|
| 35 |
# NO fundaments passed into these modules!
|
| 36 |
# =============================================================================
|
| 37 |
-
from . import mcp # MCP transport layer (stdio / SSE)
|
| 38 |
-
from . import providers # API provider registry (LLM, Search, Web) β reads app/.pyfun
|
| 39 |
-
from . import models # Model config + token/rate limits β reads app/.pyfun
|
| 40 |
-
from . import tools # MCP tool definitions + provider mapping β reads app/.pyfun
|
| 41 |
-
from . import db_sync # Internal SQLite IPC for app/* state & communication
|
| 42 |
# db_sync β postgresql.py! Cloud DB is Guardian-only.
|
| 43 |
-
from . import config as app_config # app/.pyfun parser β used only in app/*
|
| 44 |
|
| 45 |
# Future modules (uncomment when ready):
|
| 46 |
# from . import discord_api # Discord bot integration
|
|
@@ -52,12 +52,12 @@ from . import config as app_config # app/.pyfun parser β used only in app/*
|
|
| 52 |
# Loggers β one per module for clean log filtering
|
| 53 |
# =============================================================================
|
| 54 |
logger = logging.getLogger('application')
|
| 55 |
-
#
|
| 56 |
# logger_tools = logging.getLogger('tools')
|
| 57 |
# logger_providers = logging.getLogger('providers')
|
| 58 |
# logger_models = logging.getLogger('models')
|
| 59 |
# logger_db_sync = logging.getLogger('db_sync')
|
| 60 |
-
#
|
| 61 |
|
| 62 |
# =============================================================================
|
| 63 |
# Quart app instance
|
|
|
|
| 34 |
# Each module reads its own config from app/.pyfun independently.
|
| 35 |
# NO fundaments passed into these modules!
|
| 36 |
# =============================================================================
|
| 37 |
+
#from . import mcp # MCP transport layer (stdio / SSE)
|
| 38 |
+
#from . import providers # API provider registry (LLM, Search, Web) β reads app/.pyfun
|
| 39 |
+
#from . import models # Model config + token/rate limits β reads app/.pyfun
|
| 40 |
+
#from . import tools # MCP tool definitions + provider mapping β reads app/.pyfun
|
| 41 |
+
#from . import db_sync # Internal SQLite IPC for app/* state & communication
|
| 42 |
# db_sync β postgresql.py! Cloud DB is Guardian-only.
|
| 43 |
+
#from . import config as app_config # app/.pyfun parser β used only in app/*
|
| 44 |
|
| 45 |
# Future modules (uncomment when ready):
|
| 46 |
# from . import discord_api # Discord bot integration
|
|
|
|
| 52 |
# Loggers β one per module for clean log filtering
|
| 53 |
# =============================================================================
|
| 54 |
logger = logging.getLogger('application')
|
| 55 |
+
#logger_mcp = logging.getLogger('mcp')
|
| 56 |
# logger_tools = logging.getLogger('tools')
|
| 57 |
# logger_providers = logging.getLogger('providers')
|
| 58 |
# logger_models = logging.getLogger('models')
|
| 59 |
# logger_db_sync = logging.getLogger('db_sync')
|
| 60 |
+
#logger_config = logging.getLogger('config')
|
| 61 |
|
| 62 |
# =============================================================================
|
| 63 |
# Quart app instance
|