chore(backend,infra): resolve template update conflicts, import check knows the watcher and the api login

This commit is contained in:
hh committed 2026-10-10 02:58:29 +00:00
1 parent 9e672623ac
commit 4945c7cbd3
27 files changed
+27 -82

No files matched your search

+3 -2
View File
@@ -4,8 +4,9 @@ import sys
HEAVY = ["aiogram", "pyrogram", "fastapi", "google.genai"]
SERVICES = {
"api": (["api.app"], {"fastapi"}),
"api": (["api.app"], {"fastapi", "pyrogram"}),
"userbot": (["userbot.runner", "userbot.handlers"], {"pyrogram"}),
"watcher": (["watcher.runner"], {"pyrogram"}),
}
PROBE = """
import importlib, sys
@@ -13,7 +14,7 @@ for module in sys.argv[1].split(","):
importlib.import_module(module)
print(" ".join(name for name in sys.argv[2:] if name in sys.modules))
"""
ENV = dict(os.environ)
ENV = {**os.environ, "AUTH__TOKEN": "check"}
def loaded(modules: list[str]) -> tuple[set[str], str]: