openmatrix 0.1.88 → 0.1.89
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.
|
@@ -46,8 +46,9 @@ class TaskPlanner {
|
|
|
46
46
|
// 构建全局上下文块(注入到每个子任务描述中,供 agent 参考)
|
|
47
47
|
const globalContext = this.buildGlobalContext(parsedTask, userContext, plan);
|
|
48
48
|
// 0. 设计阶段任务 (根据复杂度判断)
|
|
49
|
+
// 如果 AI 已提供 plan,跳过设计阶段(plan 中已包含架构设计)
|
|
49
50
|
let designTaskId;
|
|
50
|
-
if (this.needsDesignPhase(parsedTask)) {
|
|
51
|
+
if (!plan && this.needsDesignPhase(parsedTask)) {
|
|
51
52
|
designTaskId = this.generateTaskId();
|
|
52
53
|
breakdowns.push({
|
|
53
54
|
taskId: designTaskId,
|