cocoplus-config
CocoPlus 的配置单一事实来源(SSOT)技能,负责将项目根目录下的 cocoplus.toml 配置同步到下游产物,并把旧版 safety-config.json 迁移为 cocoplus.toml。它提供两个命令:$cocoplus sync 读取 cocoplus.toml,重新生成 .cocoplus/config/security-rules.json 中的安全边界规则(always_allow、ask_first、human_required、never),更新 .cocoplus/.gitignore 中的演示数据忽略项,写入带哈希的同步清单 sync-manifest.json,并自动提交变更;$cocoplus migrate-config 检测旧版 safety-config.json,将其安全规则映射到 cocoplus.toml 的 [security] 段,保留原文件为 .migrated 作为审计记录,随后自动执行一次 sync。该技能包含漂移检测,会在覆盖前提示被手动修改过的生成文件,并强调生成文件不应直接编辑,应改 cocoplus.toml。