feat: TenantSource 抽象——File源(测试/档案)与DB源(生产),registry 数据源可切换+reload upsert

Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
浅念
2026-10-13 08:50:16 +08:00
parent 386b5eb90a
commit c7fd533320
9 changed files with 720 additions and 85 deletions
+3
View File
@@ -139,6 +139,9 @@ def build_auto_runtime():
# (与 5b 之前 default_runtime 兜底的语义一致,既有断言零改动)
JIANCAI_HOST = "chat2.agent.hnxinyouhe.com"
AUTO_HOST = "chat.agent.hnxinyouhe.com"
# 未知 Host 哨兵(原 test_admin_mounting/test_host_routing 各自定义,
# Task 4 收拢到 conftest 单一定义)
NOPE_HOST = "nope.example.com"
def build_app(seed_dir, data_dir):