C1
运行时配置
更新 src/config.rs、config.example.toml、using/configuration 文档、相关 reference/* 页面,以及 generated default 测试。
修改 ProxAI 行为并准备提交 PR 前,使用这份清单检查。它刻意偏操作化:同步代码路径、测试和文档,让项目保持一致。
更新 src/config.rs、config.example.toml、using/configuration 文档、相关 reference/* 页面,以及 generated default 测试。
更新 route matching 行为、provider request preparation、provider transport/auth、行为契约和聚焦 route 测试。
补齐 request、non-streaming response、streaming conversion、route selection 支持、协议文档和 e2e 行为测试。
检查 terminal events、SSE byte preservation、idle-read timeout、semantic tool-call timeout、Unicode chunk scanning 和 stream outcome logs。
更新 typed error projection、客户端错误 payload、保留 headers、SSE error rendering、文档和契约。
保持 en 与 zh 页面成对,更新 sidebar,更新 index/hub 页面,并运行 just site check。
| 边界 | 规则 |
|---|---|
| 请求转换 | (request_protocol, provider_protocol, normalized_payload) -> payload |
| 非流式响应转换 | (request_protocol, provider_protocol, payload) -> payload |
| 流式响应转换 | (request_protocol, provider_protocol, ByteStream) -> ByteStream |
| 不要传入 | 不要把 HTTP Response、Body、route/model rewrite details 或 provider request structs 传进 translation/ |
| 分区 | 负责内容 | 避免内容 |
|---|---|---|
using/ | 任务 walkthrough:如何运行、配置、路由、观测和排障 ProxAI | 长 reference 表或源码级 internals |
protocol/ | Wire behavior、request/response shapes、streaming expectations 和交互示例 | 属于 developer/ 的实现细节 |
developer/ | 源码级架构、转换边界、streaming internals、error internals 和维护者清单 | 面向用户的安装配置教程 |
reference/ | 精确取值、默认值、phase names、protocol names、行为契约和术语 | 教程流或实现叙事 |
| 改动范围 | 建议校验 |
|---|---|
| 仅文档 | just site check |
| 仅格式 | cargo fmt --check |
| Rust 单元覆盖 | just test_lib |
| 代理行为 / 路由 / 规范化 | just test-e2e |
| Rust warning-free 检查 | pixi run cargo clippy --lib --tests -- -D warnings |
| 完整本地路径 | just check |
config.toml、API keys、private captures、logs 或包含 prompt 的本地 fixtures。