@nick848/sf-cli 1.0.10 → 1.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -5,23 +5,60 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## v1.0.11 (2026-03-22)
9
+
10
+ **重大更新 - 规格确认后自动执行开发流程**
11
+
12
+ - ✨ 规格确认后自动执行:TDD 测试生成 → 开发实现 → 代码审核
13
+ - 🤖 `executeDevelopment()` - AI 自动生成代码实现
14
+ - 🔍 `executeReview()` - AI 自动进行代码审核
15
+ - 📦 自动解析代码块并写入文件
16
+ - 🎯 审核通过自动归档,审核失败可重新审核或回退
17
+
18
+ **新增函数**
19
+
20
+ - `executeDevelopment()` - 调用 AI 生成代码,自动写入文件
21
+ - `executeReview()` - 调用 AI 审核代码,返回问题和建议
22
+ - `buildDevelopmentPrompt()` - 构建开发提示词
23
+ - `parseCodeBlocks()` - 解析 AI 返回的代码块
24
+
25
+ **流程优化**
26
+
27
+ ```
28
+ 规格确认(y)
29
+ → 自动生成测试
30
+ → 自动生成代码
31
+ → 自动审核
32
+ → 通过:自动归档
33
+ → 失败:y 重新审核 / n 回退规格
34
+ ```
35
+
8
36
  ## v1.0.10 (2026-03-22)
9
37
 
10
38
  **重大重构 - 工作流系统重写**
11
39
 
12
- - ✨ 全新的 `WorkflowSession` 架构 - 7 阶段自动流转
13
- - 🔄 自动执行流程:context analysis → bdd → spec → tdd → develop → review
14
- - ⏸️ 唯一暂停点:spec 阶段等待 y/n 确认
15
- - 🎯 简化交互:y/n/c 三键操作(确认/重新生成/取消)
40
+ - ✨ 全新的 `WorkflowSession` 架构 - 8 阶段自动流转
41
+ - 🆕 **需求澄清阶段** - 需求不明确时主动引导开发者补充信息
42
+ - 📊 需求清晰度评估 - 自动计算需求清晰度分数
43
+ - 智能问题生成 - 根据需求内容自动生成澄清问题
44
+ - 🔄 自动执行流程:context → clarify → analysis → bdd → spec → tdd → develop → review
45
+ - ⏸️ 两个暂停点:clarify(需求澄清)、spec(规格确认)
46
+
47
+ **需求澄清功能**
48
+
49
+ - 自动检测需求清晰度(长度、动作、UI、数据、交互、边界)
50
+ - 生成针对性澄清问题(范围、界面、数据、交互、边界条件)
51
+ - 支持逐个回答或 `done` 跳过
52
+ - 回答后自动更新精炼需求
16
53
 
17
54
  **架构改进**
18
55
 
19
- - 📦 `new.ts` - 完全重写,移除旧 WorkflowEngine 依赖
56
+ - 📦 `new.ts` - 完全重写,新增 ClarificationQuestion 接口
20
57
  - 📦 `natural.ts` - 简化为工作流输入处理
21
58
  - 📦 `executor.ts` - 简化权限控制逻辑
22
59
  - 📦 `repl.ts` - 使用 `getActiveSession()` 获取状态
23
60
  - 📦 `status.ts` - 支持新 WorkflowPhase 类型显示
24
- - 📦 `types/index.ts` - 新增 `WorkflowPhase` 类型定义
61
+ - 📦 `types/index.ts` - 新增 `clarify` 阶段
25
62
 
26
63
  **修复问题**
27
64