用途:在项目中安装并配置 Pawbytes Creative Suites 模块(模块标识符为 cra)。模块名称、代码、版本等信息来自 ./assets/module.yaml。
主要能力:读取 ./assets/module.yaml 获取模块元数据与变量定义;检查 {project-root}/.pawbytes/config/config.yaml 是否已有 cra: 段(若有则提示为更新);检查旧版 BMad 配置 {project-root}/_bmad/config.yaml 并提示可迁移;收集核心配置(user_name、communication_language、document_output_language)与模块变量;收集 API 密钥 fal_key(图像/视频生成必需)、elevenlabs_api_key(可选语音)、pexels_api_key(可选素材检索);写入 config.yaml、config.user.yaml(存放密钥与 user_setting: true 的变量,建议 gitignore)与 module-help.csv;两个配置脚本采用 anti-zombie 模式,写入前先移除该模块已有条目。配置中的 {project-root} 为字面量,不应替换为实际路径。
使用方式:激活后读取 module.yaml,检查现有配置。若用户提供参数(如接受默认值、--headless 或内联值),则映射到配置键、其余用默认值并跳过交互提示,但仍显示确认摘要。默认值优先级为现有配置值高于 module.yaml 默认值。写入流程:先写临时 JSON(结构为 {"core": {...}, "module": {...}}),再执行 python3 ./scripts/merge-config.py --config-path "{project-root}/.pawbytes/config/config.yaml" --user-config-path "{project-root}/.pawbytes/config/config.user.yaml" --module-yaml ./assets/module.yaml --answers {temp-file},然后执行 python3 ./scripts/merge-help-csv.py --target "{project-root}/.pawbytes/config/module-help.csv" --source ./assets/module-help.csv --module-code cra。两脚本以 JSON 输出到 stdout,若退出码非零则报错并停止。之后创建目录:mkdir -p "{project-root}/.pawbytes/creative-suites"、mkdir -p "{project-root}/.pawbytes/creative-suites/brands"、mkdir -p "{project-root}/.pawbytes/creative-suites/knowledge"、mkdir -p "{project-root}/.pawbytes/creative-suites/daily",并显示 module.yaml 中的问候语。
适用场景:需要在项目中首次安装或更新 Creative Suites 配置时。
限制:以上为资料所述流程;未提供的收费、价格、平台支持范围、实际生成效果等信息暂未提供。