1 Commits
Author SHA1 Message Date
chakcy 230ceeac74 docs: 修正过期引用(gen_models 命令、网关源码路径) 2026-10-13 17:29:26 +08:00
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -58,7 +58,7 @@ config/
| `[development]` | 开发环境配置(server、logging、cors、mqtt) | | `[development]` | 开发环境配置(server、logging、cors、mqtt) |
| `[production]` | 生产环境配置 | | `[production]` | 生产环境配置 |
| `[plugins_worker]` | 插件 Worker 注册配置路径 | | `[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 模型**: 修改任何 TOML 配置后,**必须重新生成 Pydantic 模型**:
```bash ```bash
uv run python -m chongming.scripts.gen_models uv run gen_models
``` ```
该命令扫描 `config/workers/*/` 下所有 `.toml` 文件,自动更新 `src/plugins/*/models/pydantic.py`。 该命令扫描 `config/workers/*/` 下所有 `.toml` 文件,自动更新 `src/plugins/*/models/pydantic.py`。
+1 -1
View File
@@ -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 网络。 // 这是项目的zenoh 客户端会话配置,决定应用如何加入 zenoh 网络。
// 注意:此文件是应用侧(peer/client)配置,不是独立 router 的配置文件。 // 注意:此文件是应用侧(peer/client)配置,不是独立 router 的配置文件。