From 230ceeac74dbb3e2020b97df0d32a05e11500a5d Mon Sep 17 00:00:00 2001 From: chakcy <947105045@qq.com> Date: Tue, 13 Oct 2026 17:29:26 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E4=BF=AE=E6=AD=A3=E8=BF=87=E6=9C=9F?= =?UTF-8?q?=E5=BC=95=E7=94=A8=EF=BC=88gen=5Fmodels=20=E5=91=BD=E4=BB=A4?= =?UTF-8?q?=E3=80=81=E7=BD=91=E5=85=B3=E6=BA=90=E7=A0=81=E8=B7=AF=E5=BE=84?= =?UTF-8?q?=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 ++-- zenoh_config.json5 | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index a2b0842..8dde84c 100644 --- a/README.md +++ b/README.md @@ -58,7 +58,7 @@ config/ | `[development]` | 开发环境配置(server、logging、cors、mqtt) | | `[production]` | 生产环境配置 | | `[plugins_worker]` | 插件 Worker 注册配置路径 | -| `[pyinstaller_build_import]` | PyInstaller 打包时的隐式导入声明 | +| `[pyinstaller_build_import]` | PyInstaller 打包时的隐式导入声明(只放网关本体依赖;内置插件专属依赖见根目录 `plugins_deps.toml`) | ### 开发环境配置示例 @@ -230,7 +230,7 @@ optional_field = { type = "int", required = false, default = 0 } 修改任何 TOML 配置后,**必须重新生成 Pydantic 模型**: ```bash -uv run python -m chongming.scripts.gen_models +uv run gen_models ``` 该命令扫描 `config/workers/*/` 下所有 `.toml` 文件,自动更新 `src/plugins/*/models/pydantic.py`。 diff --git a/zenoh_config.json5 b/zenoh_config.json5 index e318175..b93b688 100644 --- a/zenoh_config.json5 +++ b/zenoh_config.json5 @@ -1,5 +1,5 @@ { - // Zenoh 会话配置 —— 由 config.toml 的 [zenoh].json5_path 指定(见 src/chongming/app/core/lifespan_setup.py) + // Zenoh 会话配置 —— 由 config.toml 的 [zenoh].json5_path 指定(见 utils/gateway/src/chongming/app/core/lifespan_setup.py) // 这是项目的zenoh 客户端会话配置,决定应用如何加入 zenoh 网络。 // 注意:此文件是应用侧(peer/client)配置,不是独立 router 的配置文件。