文档: 设计文档入库与构建配套收尾

- 云化两设计文档入库(devflow-core 抽取三步收口/云化架构 html)
- 看板销账: T1-T4 逐件附验收
- D4 工具 schema 空 description 清理(渐进披露配套,~10KB/轮)
- 换装脚本验证修复: 安装后装机 exe 版本核对,防 NSIS 静默失败误报成功
- capabilities/锁文件随批
This commit is contained in:
lxy
2026-10-26 01:36:55 +08:00
parent d97cbb4439
commit 070223baa5
7 changed files with 236 additions and 15 deletions
+4 -4
View File
@@ -488,10 +488,7 @@ pub fn object_schema(properties: Vec<(&str, &str, bool)>) -> Value {
let mut required = Vec::new();
for (name, type_str, is_required) in properties {
props.insert(
name.to_string(),
serde_json::json!({ "type": type_str, "description": "" }),
);
props.insert(name.to_string(), serde_json::json!({ "type": type_str }));
if is_required {
required.push(name.to_string());
}
@@ -579,6 +576,9 @@ mod tests {
let schema = object_schema(vec![("name", "string", true), ("age", "integer", false)]);
assert_eq!(schema["type"], "object");
assert_eq!(schema["properties"]["name"]["type"], "string");
// 空属性描述不落盘:序列化输出不含 "description" 键(省 LLM 请求白携带)
let serialized = serde_json::to_string(&schema).unwrap();
assert!(!serialized.contains("description"));
let required = schema["required"].as_array().unwrap();
assert_eq!(required.len(), 1);
assert_eq!(required[0], "name");