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

@@ -249,6 +249,13 @@ def test_message_visualization_rules_are_offline_safe_and_scoped_to_ordinary_qa(
assert "flow-json" not in ordinary_prompt
assert "chart-json" not in ordinary_prompt
assert "禁止在地图数据中放入 URL" in ordinary_prompt
assert "不要用 `from`/`to`/`coords`" in ordinary_prompt
assert '"coordinates":[[116.4,39.9],[121.47,31.23]]' in ordinary_prompt
assert '"color":"red"' in ordinary_prompt
assert '"arrow":true' in ordinary_prompt
assert '"flow":true' in ordinary_prompt
assert "只有用户**明确要求**连线" in ordinary_prompt
assert "`lines` 必须为 `[]`" in ordinary_prompt
assert "map-json" not in writing_prompt
assert "map-json" not in notebook_prompt
assert "map-json" not in scheduled_prompt
@@ -367,12 +374,13 @@ def test_markdown_file_deliverable_is_scoped_to_ordinary_qa(monkeypatch) -> None
def test_html_runtime_exposes_only_local_geojson_maps(monkeypatch) -> None:
monkeypatch.setattr(
html_runtime,
"get_app_config",
lambda: SimpleNamespace(
html_runtime=SimpleNamespace(
base_url="http://gateway.internal/api/public/html-runtime"
)
),
"html_runtime_base_url",
lambda: "http://gateway.internal/api/public/html-runtime",
)
monkeypatch.setattr(
html_runtime,
"html_map_tile_url",
lambda: "https://mt0.google.com/vt/lyrs=m&hl=zh-CN&x={x}&y={y}&z={z}",
)
app = FastAPI()
app.include_router(html_runtime.router)