f4b9620的任务收尾
This commit is contained in:
BIN
.aide/diagrams/program-logic.png
Normal file
BIN
.aide/diagrams/program-logic.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 82 KiB |
49
.aide/diagrams/program-logic.puml
Normal file
49
.aide/diagrams/program-logic.puml
Normal file
@@ -0,0 +1,49 @@
|
||||
@startuml program-logic
|
||||
title 程序逻辑流图:finish_branch_merge 重构
|
||||
|
||||
start
|
||||
:进入 finish_branch_merge();
|
||||
note right: branch.py
|
||||
|
||||
:获取分支信息\nbranch_info = get_active_branch_info();
|
||||
|
||||
if (源分支有新提交?) then (是)
|
||||
:创建临时分支合并\n(保持现有逻辑);
|
||||
:返回提示信息;
|
||||
stop
|
||||
else (否)
|
||||
:进入 _merge_normal();
|
||||
endif
|
||||
|
||||
partition "清理操作" {
|
||||
:删除 .aide/*.lock;
|
||||
:删除 task-spec.md;
|
||||
:清空 task-now.md\n(保留文件);
|
||||
:备份并删除\nflow-status.json;
|
||||
:备份并删除\ndecisions/*.json;
|
||||
}
|
||||
|
||||
partition "创建临时提交" {
|
||||
:git add -A;
|
||||
:git commit\n"清理任务临时文件";
|
||||
}
|
||||
|
||||
partition "切换并合并" {
|
||||
:git checkout\n源分支;
|
||||
:清理 .lock 文件;
|
||||
:git merge --squash\n任务分支;
|
||||
:构建提交信息\n格式: {hash}的任务收尾;
|
||||
:git add -A;
|
||||
:git commit\n收尾提交;
|
||||
}
|
||||
|
||||
partition "更新记录" {
|
||||
:更新分支记录\nstatus = finished;
|
||||
:git add -A;
|
||||
:git commit\n更新分支记录;
|
||||
}
|
||||
|
||||
:返回成功;
|
||||
stop
|
||||
|
||||
@enduml
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 133 KiB After Width: | Height: | Size: 56 KiB |
@@ -1,48 +1,45 @@
|
||||
@startuml task-flow
|
||||
!theme plain
|
||||
skinparam backgroundColor #FFFFFF
|
||||
skinparam activityBackgroundColor #F5F5F5
|
||||
skinparam activityBorderColor #333333
|
||||
title 任务执行流程图:改进 aide flow 的 git 工作流
|
||||
|
||||
title 任务执行流程图 - 多模块调整
|
||||
|
||||
|#LightBlue|子计划1: 创建 skill|
|
||||
start
|
||||
:读取 statements/optimize.md;
|
||||
:分析并扩展内容;
|
||||
:创建 task-parser.md;
|
||||
:验证 skill 结构完整性;
|
||||
:阅读任务细则;
|
||||
note right: task-spec.md
|
||||
|
||||
|#LightGreen|子计划2: 修改 run 命令|
|
||||
:阅读现有 run.md;
|
||||
:设计口语化检测逻辑;
|
||||
:添加 skill 触发规则;
|
||||
:更新命令文档;
|
||||
partition "代码修改" {
|
||||
:修改 branch.py;
|
||||
note right
|
||||
- 重构 _merge_normal()
|
||||
- 添加清理函数
|
||||
- 修改提交信息格式
|
||||
end note
|
||||
|
||||
|#LightYellow|子计划3: 强化流程图规范|
|
||||
:定义两种流程图类型;
|
||||
:编写任务执行流程图规范;
|
||||
:编写程序逻辑流图规范;
|
||||
:更新 run.md 流程设计部分;
|
||||
:修改 tracker.py;
|
||||
note right
|
||||
调整 finish 触发逻辑
|
||||
(如需要)
|
||||
end note
|
||||
}
|
||||
|
||||
|#LightCoral|子计划4: 创建示例程序|
|
||||
:设计 Python 程序结构;
|
||||
:创建 test-cache/demo-program/;
|
||||
:实现模块化程序;
|
||||
:绘制程序逻辑流图;
|
||||
:验证流程图规范有效性;
|
||||
partition "测试验证" {
|
||||
:创建测试任务;
|
||||
:执行完整 flow 流程;
|
||||
:检查最终 git 历史;
|
||||
|
||||
|#LightCyan|子计划5: 调整 git 提交顺序|
|
||||
:分析 tracker.py 当前逻辑;
|
||||
:重构 _apply_action 方法;
|
||||
:确保状态先保存再提交;
|
||||
:测试验证;
|
||||
|
||||
|#Lavender|子计划6: 更新文档|
|
||||
:更新 aide-plugin-skills.md;
|
||||
:更新 aide-plugin-commands.md;
|
||||
:更新 aide-program-flow.md;
|
||||
:检查其他相关文档;
|
||||
if (只有 2 个提交?) then (是)
|
||||
:检查文件清理结果;
|
||||
if (清理正确?) then (是)
|
||||
:验证通过;
|
||||
else (否)
|
||||
:修复清理逻辑;
|
||||
-> 执行完整 flow 流程;
|
||||
endif
|
||||
else (否)
|
||||
:修复合并逻辑;
|
||||
-> 执行完整 flow 流程;
|
||||
endif
|
||||
}
|
||||
|
||||
:更新文档;
|
||||
stop
|
||||
|
||||
@enduml
|
||||
|
||||
Reference in New Issue
Block a user