fix: no import-time side effects, env-driven paths, shim dead-logic, smoke test

This commit is contained in:
ENI
2026-11-07 14:01:53 +03:00
parent 7cf876a87a
commit 0e68513e1b
6 changed files with 270 additions and 139 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ from flow import solve_captcha
API = "https://api.minara.ai"
INVITE = os.environ.get("MINARA_INVITE", "UM9Y8P")
PROXIES = [p.strip() for p in os.environ.get("MINARA_PROXY_POOL", "").split(",") if p.strip()]
IMAPMAP_PATH = os.environ.get("MINARA_IMAPMAP", "discovered_imap.json")
IMAPMAP_PATH = os.environ.get("MINARA_IMAPMAP") or os.path.join(HERE, "discovered_imap.json")
IMAPMAP = json.load(open(IMAPMAP_PATH)) if os.path.exists(IMAPMAP_PATH) else {}
POP_HOSTS = {"rediffmail.com": ("pop.rediffmail.com", 995)}
BANK = os.environ.get("MINARA_BANK", HERE + "/bank.jsonl")