@e0ipso/ai-task-manager 1.9.0 → 1.9.1
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 +1 -1
- package/templates/ai-task-manager/config/hooks/PRE_PHASE.md +1 -1
- package/templates/ai-task-manager/config/scripts/{check-task-dependencies.js → check-task-dependencies.cjs} +4 -4
- package/templates/assistant/commands/tasks/create-plan.md +1 -1
- package/templates/assistant/commands/tasks/execute-task.md +2 -2
- package/templates/assistant/commands/tasks/generate-tasks.md +1 -1
- /package/templates/ai-task-manager/config/scripts/{get-next-plan-id.js → get-next-plan-id.cjs} +0 -0
- /package/templates/ai-task-manager/config/scripts/{get-next-task-id.js → get-next-task-id.cjs} +0 -0
package/package.json
CHANGED
|
@@ -17,7 +17,7 @@ If there are unstaged changes in the `main` branch, do not create a feature bran
|
|
|
17
17
|
```bash
|
|
18
18
|
# For each task in current phase
|
|
19
19
|
for TASK_ID in $PHASE_TASKS; do
|
|
20
|
-
if ! node .ai/task-manager/config/scripts/check-task-dependencies.
|
|
20
|
+
if ! node .ai/task-manager/config/scripts/check-task-dependencies.cjs "$1" "$TASK_ID"; then
|
|
21
21
|
echo "ERROR: Task $TASK_ID has unresolved dependencies - cannot proceed with phase execution"
|
|
22
22
|
echo "Please resolve dependencies before continuing with blueprint execution"
|
|
23
23
|
exit 1
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* Script: check-task-dependencies.
|
|
4
|
+
* Script: check-task-dependencies.cjs
|
|
5
5
|
* Purpose: Check if a task has all of its dependencies resolved (completed)
|
|
6
|
-
* Usage: node check-task-dependencies.
|
|
6
|
+
* Usage: node check-task-dependencies.cjs <plan-id> <task-id>
|
|
7
7
|
* Returns: 0 if all dependencies are resolved, 1 if not
|
|
8
8
|
*/
|
|
9
9
|
|
|
@@ -216,8 +216,8 @@ const main = async () => {
|
|
|
216
216
|
// Check arguments
|
|
217
217
|
if (process.argv.length !== 4) {
|
|
218
218
|
printError('Invalid number of arguments', chalk);
|
|
219
|
-
console.log('Usage: node check-task-dependencies.
|
|
220
|
-
console.log('Example: node check-task-dependencies.
|
|
219
|
+
console.log('Usage: node check-task-dependencies.cjs <plan-id> <task-id>');
|
|
220
|
+
console.log('Example: node check-task-dependencies.cjs 16 03');
|
|
221
221
|
process.exit(1);
|
|
222
222
|
}
|
|
223
223
|
|
|
@@ -27,7 +27,7 @@ Use your internal Todo task tool to track the execution of all parts of the task
|
|
|
27
27
|
- Plan ID: $1 (required)
|
|
28
28
|
- Task ID: $2 (required)
|
|
29
29
|
- Task management directory structure: `/`
|
|
30
|
-
- Dependency checking script: `.ai/task-manager/config/scripts/check-task-dependencies.
|
|
30
|
+
- Dependency checking script: `.ai/task-manager/config/scripts/check-task-dependencies.cjs`
|
|
31
31
|
|
|
32
32
|
### Input Validation
|
|
33
33
|
|
|
@@ -134,7 +134,7 @@ Use the dependency checking script to validate all dependencies:
|
|
|
134
134
|
|
|
135
135
|
```bash
|
|
136
136
|
# Call the dependency checking script
|
|
137
|
-
if ! node .ai/task-manager/config/scripts/check-task-dependencies.
|
|
137
|
+
if ! node .ai/task-manager/config/scripts/check-task-dependencies.cjs "$PLAN_ID" "$TASK_ID"; then
|
|
138
138
|
echo ""
|
|
139
139
|
echo "Task execution blocked by unresolved dependencies."
|
|
140
140
|
echo "Please complete the required dependencies first."
|
|
@@ -221,7 +221,7 @@ Use the task template in .ai/task-manager/config/templates/TASK_TEMPLATE.md
|
|
|
221
221
|
When creating tasks, you need to determine the next available task ID for the specified plan. Use this bash command to automatically generate the correct ID:
|
|
222
222
|
|
|
223
223
|
```bash
|
|
224
|
-
node .ai/task-manager/config/scripts/get-next-task-id.
|
|
224
|
+
node .ai/task-manager/config/scripts/get-next-task-id.cjs $1
|
|
225
225
|
```
|
|
226
226
|
|
|
227
227
|
### Validation Checklist
|
/package/templates/ai-task-manager/config/scripts/{get-next-plan-id.js → get-next-plan-id.cjs}
RENAMED
|
File without changes
|
/package/templates/ai-task-manager/config/scripts/{get-next-task-id.js → get-next-task-id.cjs}
RENAMED
|
File without changes
|