aitasks 1.4.1 → 1.4.2
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/dist/index.js +16 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1890,7 +1890,7 @@ var require_commander = __commonJS((exports) => {
|
|
|
1890
1890
|
var require_package = __commonJS((exports, module) => {
|
|
1891
1891
|
module.exports = {
|
|
1892
1892
|
name: "aitasks",
|
|
1893
|
-
version: "1.4.
|
|
1893
|
+
version: "1.4.2",
|
|
1894
1894
|
description: "CLI task management tool built for AI agents",
|
|
1895
1895
|
type: "module",
|
|
1896
1896
|
bin: {
|
|
@@ -42212,7 +42212,20 @@ var TreeBoardComponent = ({ getTasks }) => {
|
|
|
42212
42212
|
const newStatus = statusMap[input];
|
|
42213
42213
|
if (newStatus && selectedTask) {
|
|
42214
42214
|
if (newStatus === "done") {
|
|
42215
|
-
|
|
42215
|
+
let { error, unchecked } = completeTask(selectedTask.id);
|
|
42216
|
+
if (error && unchecked && unchecked.length > 0) {
|
|
42217
|
+
const task = getTask(selectedTask.id);
|
|
42218
|
+
if (task) {
|
|
42219
|
+
for (let i = 0;i < task.acceptance_criteria.length; i++) {
|
|
42220
|
+
const alreadyChecked = task.test_results.some((r2) => r2.index === i);
|
|
42221
|
+
if (!alreadyChecked) {
|
|
42222
|
+
checkCriterion(selectedTask.id, i, "auto-verified (moved to Done on board)", "human");
|
|
42223
|
+
}
|
|
42224
|
+
}
|
|
42225
|
+
const retry = completeTask(selectedTask.id);
|
|
42226
|
+
error = retry.error;
|
|
42227
|
+
}
|
|
42228
|
+
}
|
|
42216
42229
|
if (error) {
|
|
42217
42230
|
setMoveError(error.split(`
|
|
42218
42231
|
`)[0] ?? error);
|
|
@@ -43501,4 +43514,4 @@ program2.parseAsync(process.argv).catch((err) => {
|
|
|
43501
43514
|
process.exit(1);
|
|
43502
43515
|
});
|
|
43503
43516
|
|
|
43504
|
-
//# debugId=
|
|
43517
|
+
//# debugId=55B7B23CFF99871064756E2164756E21
|