@nick848/sf-cli 1.0.8 → 1.0.11
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 +39 -0
- package/dist/cli/index.js +3536 -3451
- package/dist/cli/index.js.map +1 -1
- package/dist/index.d.mts +374 -382
- package/dist/index.d.ts +374 -382
- package/dist/index.js +1653 -1701
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1648 -1700
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,45 @@ 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.10 (2026-03-22)
|
|
9
|
+
|
|
10
|
+
**重大重构 - 工作流系统重写**
|
|
11
|
+
|
|
12
|
+
- ✨ 全新的 `WorkflowSession` 架构 - 8 阶段自动流转
|
|
13
|
+
- 🆕 **需求澄清阶段** - 需求不明确时主动引导开发者补充信息
|
|
14
|
+
- 📊 需求清晰度评估 - 自动计算需求清晰度分数
|
|
15
|
+
- ❓ 智能问题生成 - 根据需求内容自动生成澄清问题
|
|
16
|
+
- 🔄 自动执行流程:context → clarify → analysis → bdd → spec → tdd → develop → review
|
|
17
|
+
- ⏸️ 两个暂停点:clarify(需求澄清)、spec(规格确认)
|
|
18
|
+
|
|
19
|
+
**需求澄清功能**
|
|
20
|
+
|
|
21
|
+
- 自动检测需求清晰度(长度、动作、UI、数据、交互、边界)
|
|
22
|
+
- 生成针对性澄清问题(范围、界面、数据、交互、边界条件)
|
|
23
|
+
- 支持逐个回答或 `done` 跳过
|
|
24
|
+
- 回答后自动更新精炼需求
|
|
25
|
+
|
|
26
|
+
**架构改进**
|
|
27
|
+
|
|
28
|
+
- 📦 `new.ts` - 完全重写,新增 ClarificationQuestion 接口
|
|
29
|
+
- 📦 `natural.ts` - 简化为工作流输入处理
|
|
30
|
+
- 📦 `executor.ts` - 简化权限控制逻辑
|
|
31
|
+
- 📦 `repl.ts` - 使用 `getActiveSession()` 获取状态
|
|
32
|
+
- 📦 `status.ts` - 支持新 WorkflowPhase 类型显示
|
|
33
|
+
- 📦 `types/index.ts` - 新增 `clarify` 阶段
|
|
34
|
+
|
|
35
|
+
**修复问题**
|
|
36
|
+
|
|
37
|
+
- 🐛 修复 TypeScript 编译错误(可选属性处理)
|
|
38
|
+
- 🔧 移除冗余的 opsx 命令依赖
|
|
39
|
+
|
|
40
|
+
## v1.0.9 (2026-03-22)
|
|
41
|
+
|
|
42
|
+
**修复问题**
|
|
43
|
+
|
|
44
|
+
- 🐛 修复有活跃工作流时自然语言输入被阻止的问题
|
|
45
|
+
- 🔧 自然语言输入在有工作流时始终允许(用于 y/n 确认)
|
|
46
|
+
|
|
8
47
|
## v1.0.8 (2026-03-22)
|
|
9
48
|
|
|
10
49
|
**交互改进**
|