sync update from LAN repo (source master @ ca48c4ec)

This commit is contained in:
gozeros committed 2026-11-05 10:53:54 +08:00
1 parent 8bc8b0e082
commit ea9dcff9c0
873 files changed
+107866 -14011

No files matched your search

@@ -17,7 +17,7 @@ import secrets
import stat
from pathlib import Path
from deerflow.config import get_app_config, get_paths
from deerflow.config import get_paths
from deerflow.config.paths import Paths
from deerflow.config.runtime_paths import runtime_home
from deerflow.runtime.thread_paths import remember_thread_owner, resolve_path_user_id
@@ -125,10 +125,14 @@ def verify_html_image_token(token: str) -> tuple[str, str, str]:
def html_images_base_url(runtime_base: str | None = None) -> str:
"""Browser-reachable prefix for signed HTML images.
Derived from ``html_runtime.base_url`` so intranet deployments keep the
same Gateway origin / reverse-proxy prefix as G6/ECharts.
Derived from the HTML runtime address saved in the settings dialog, so
intranet deployments keep the same Gateway origin as G6/ECharts.
"""
base = (runtime_base if runtime_base is not None else get_app_config().html_runtime.base_url).rstrip("/")
if runtime_base is None:
from deerflow.html_runtime.addresses import html_runtime_base_url
runtime_base = html_runtime_base_url()
base = runtime_base.rstrip("/")
if base.endswith("/html-runtime"):
return f"{base[: -len('html-runtime')]}html-images"
parent, _sep, _name = base.rpartition("/")