speccrew 0.7.42 → 0.7.43
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/package.json
CHANGED
|
@@ -727,15 +727,20 @@ function cmdUpdateTask(args) {
|
|
|
727
727
|
}
|
|
728
728
|
}
|
|
729
729
|
|
|
730
|
-
// Update task
|
|
731
|
-
taskArray
|
|
730
|
+
// Update task (only needed for array mode; object mode is updated by reference)
|
|
731
|
+
if (taskArray && taskIndex >= 0) {
|
|
732
|
+
taskArray[taskIndex] = task;
|
|
733
|
+
}
|
|
732
734
|
data.updated_at = now;
|
|
733
735
|
|
|
734
736
|
// Recalculate counts
|
|
735
737
|
if (isStageMode && targetStage.counts) {
|
|
736
738
|
// Update stage-level counts
|
|
737
|
-
|
|
738
|
-
|
|
739
|
+
const countSource = Array.isArray(targetStage.features)
|
|
740
|
+
? targetStage.features
|
|
741
|
+
: Object.values(targetStage.features);
|
|
742
|
+
targetStage.counts = calculateCounts(countSource);
|
|
743
|
+
} else if (data.tasks) {
|
|
739
744
|
// Update global counts
|
|
740
745
|
data.counts = calculateCounts(data.tasks);
|
|
741
746
|
}
|