User edition: prune docs, license gate, obfuscate core lib.

Keep deploy/basic docs only; integrate sq.bz121.com license client; encrypt strategy/trade/key_monitor/options/hedge_plan for release.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-07-17 16:30:58 +08:00
parent 53863559f4
commit 16ef0f31e3
154 changed files with 1998 additions and 27914 deletions
+7
View File
@@ -768,6 +768,13 @@ async def _hub_lifespan(_app: FastAPI):
app = FastAPI(title="复盘系统中控", docs_url=None, redoc_url=None, lifespan=_hub_lifespan)
try:
from lib.license.fastapi_gate import install_license_middleware
install_license_middleware(app)
except Exception as _lic_err:
print(f"[license] hub: {_lic_err}")
STATIC_DIR = DIR / "static"
_REPO_STATIC = _REPO_ROOT / "lib" / "common" / "static"
_AI_REVIEW_RENDER_JS = _REPO_STATIC / "ai_review_render.js"