@e0ipso/ai-task-manager 1.23.0 → 1.23.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/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +4 -2
- package/dist/utils.js.map +1 -1
- package/package.json +1 -1
- package/templates/assistant/commands/tasks/create-plan.md +3 -3
- package/templates/assistant/commands/tasks/execute-blueprint.md +8 -8
- package/templates/assistant/commands/tasks/execute-task.md +35 -35
- package/templates/assistant/commands/tasks/fix-broken-tests.md +2 -2
- package/templates/assistant/commands/tasks/full-workflow.md +8 -8
- package/templates/assistant/commands/tasks/generate-tasks.md +4 -4
- package/templates/assistant/commands/tasks/refine-plan.md +5 -5
package/dist/utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAEpD;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,EAAE,CAyB1D;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,UAAU,EAAE,SAAS,EAAE,GAAG,IAAI,CAchE;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,SAAS,GAAG,cAAc,CActE;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG;IACjD,WAAW,EAAE,mBAAmB,CAAC;IACjC,IAAI,EAAE,MAAM,CAAC;CACd,CAoCA;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAOpD;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAEpD;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,EAAE,CAyB1D;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,UAAU,EAAE,SAAS,EAAE,GAAG,IAAI,CAchE;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,SAAS,GAAG,cAAc,CActE;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG;IACjD,WAAW,EAAE,mBAAmB,CAAC;IACjC,IAAI,EAAE,MAAM,CAAC;CACd,CAoCA;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAOpD;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAmCzD;AAED;;;;;GAKG;AACH,wBAAsB,sBAAsB,CAC1C,YAAY,EAAE,MAAM,EACpB,YAAY,EAAE,cAAc,GAC3B,OAAO,CAAC,MAAM,CAAC,CAUjB;AAED;;;;GAIG;AACH,wBAAsB,sBAAsB,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAM7F"}
|
package/dist/utils.js
CHANGED
|
@@ -179,8 +179,10 @@ function convertMdToToml(mdContent) {
|
|
|
179
179
|
if (key === 'argument-hint') {
|
|
180
180
|
// Special handling for argument-hint - convert to {{}} format
|
|
181
181
|
const convertedHint = String(value)
|
|
182
|
-
.replace(/\[
|
|
183
|
-
.replace(/\[
|
|
182
|
+
.replace(/\[planId\]/g, '{{plan_id}}')
|
|
183
|
+
.replace(/\[taskId\]/g, '{{task_id}}')
|
|
184
|
+
.replace(/\[userPrompt\]/g, '{{args}}')
|
|
185
|
+
.replace(/\[testCommand\]/g, '{{test_command}}');
|
|
184
186
|
tomlContent += `argument-hint = "${escapeTomlString(convertedHint)}"\n`;
|
|
185
187
|
}
|
|
186
188
|
else {
|
package/dist/utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAYH,0CAyBC;AAOD,gDAcC;AAOD,8CAcC;AAcD,4CAuCC;AAOD,4CAOC;AAOD,
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAYH,0CAyBC;AAOD,gDAcC;AAOD,8CAcC;AAcD,4CAuCC;AAOD,4CAOC;AAOD,0CAmCC;AAQD,wDAaC;AAOD,wDAMC;AA5ND,6CAA+B;AAC/B,2CAA6B;AAG7B;;;;;GAKG;AACH,SAAgB,eAAe,CAAC,KAAa;IAC3C,MAAM,eAAe,GAAgB,CAAC,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,UAAU,CAAC,CAAC;IAE/E,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,EAAE,CAAC;QAClB,MAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC,CAAC;IAC1D,CAAC;IAED,MAAM,UAAU,GAAG,KAAK;SACrB,KAAK,CAAC,GAAG,CAAC;SACV,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,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
+
argument-hint: "[userPrompt]"
|
|
3
3
|
description: Create a comprehensive plan to accomplish the request from the user.
|
|
4
4
|
---
|
|
5
5
|
# Comprehensive Plan Creation
|
|
@@ -14,8 +14,8 @@ Before proceeding with this command, you MUST load and respect the assistant's c
|
|
|
14
14
|
|
|
15
15
|
**Run the following scripts:**
|
|
16
16
|
```bash
|
|
17
|
-
|
|
18
|
-
node .ai/task-manager/config/scripts/read-assistant-config.cjs "$
|
|
17
|
+
assistant=$(node .ai/task-manager/config/scripts/detect-assistant.cjs)
|
|
18
|
+
node .ai/task-manager/config/scripts/read-assistant-config.cjs "$assistant"
|
|
19
19
|
```
|
|
20
20
|
|
|
21
21
|
The output above contains your global and project-level configuration rules. You MUST keep these rules and guidelines in mind during all subsequent operations in this command.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
argument-hint: "[
|
|
2
|
+
argument-hint: "[planId]"
|
|
3
3
|
description: Execute the task in the plan.
|
|
4
4
|
---
|
|
5
5
|
# Task Execution
|
|
@@ -10,8 +10,8 @@ Before proceeding with this command, you MUST load and respect the assistant's c
|
|
|
10
10
|
|
|
11
11
|
**Run the following scripts:**
|
|
12
12
|
```bash
|
|
13
|
-
|
|
14
|
-
node .ai/task-manager/config/scripts/read-assistant-config.cjs "$
|
|
13
|
+
assistant=$(node .ai/task-manager/config/scripts/detect-assistant.cjs)
|
|
14
|
+
node .ai/task-manager/config/scripts/read-assistant-config.cjs "$assistant"
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
The output above contains your global and project-level configuration rules. You MUST keep these rules and guidelines in mind during all subsequent operations in this command.
|
|
@@ -47,15 +47,15 @@ Before proceeding with execution, validate that tasks exist and the execution bl
|
|
|
47
47
|
|
|
48
48
|
```bash
|
|
49
49
|
# Extract validation results directly from script
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
50
|
+
plan_file=$(node .ai/task-manager/config/scripts/validate-plan-blueprint.cjs $1 planFile)
|
|
51
|
+
plan_dir=$(node .ai/task-manager/config/scripts/validate-plan-blueprint.cjs $1 planDir)
|
|
52
|
+
task_count=$(node .ai/task-manager/config/scripts/validate-plan-blueprint.cjs $1 taskCount)
|
|
53
|
+
blueprint_exists=$(node .ai/task-manager/config/scripts/validate-plan-blueprint.cjs $1 blueprintExists)
|
|
54
54
|
```
|
|
55
55
|
|
|
56
56
|
4. **Automatic task generation**:
|
|
57
57
|
|
|
58
|
-
If either `$
|
|
58
|
+
If either `$task_count` is 0 or `$blueprint_exists` is "no":
|
|
59
59
|
- Display notification to user: "⚠️ Tasks or execution blueprint not found. Generating tasks automatically..."
|
|
60
60
|
- Execute the embedded task generation process below
|
|
61
61
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
argument-hint: "[
|
|
2
|
+
argument-hint: "[planId] [taskId]"
|
|
3
3
|
description: Execute a single task with dependency validation and status management.
|
|
4
4
|
---
|
|
5
5
|
# Single Task Execution
|
|
@@ -36,7 +36,7 @@ First, validate that both arguments are provided:
|
|
|
36
36
|
```bash
|
|
37
37
|
if [ -z "$1" ] || [ -z "$2" ]; then
|
|
38
38
|
echo "Error: Both plan ID and task ID are required"
|
|
39
|
-
echo "Usage: /tasks:execute-task [
|
|
39
|
+
echo "Usage: /tasks:execute-task [planId] [taskId]"
|
|
40
40
|
echo "Example: /tasks:execute-task 16 03"
|
|
41
41
|
exit 1
|
|
42
42
|
fi
|
|
@@ -49,20 +49,20 @@ fi
|
|
|
49
49
|
Locate the plan directory using the established find pattern:
|
|
50
50
|
|
|
51
51
|
```bash
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
plan_id="$1"
|
|
53
|
+
task_id="$2"
|
|
54
54
|
|
|
55
55
|
# Find plan directory
|
|
56
|
-
|
|
56
|
+
plan_dir=$(find .ai/task-manager/{plans,archive} -type d -name "${plan_id}--*" 2>/dev/null | head -1)
|
|
57
57
|
|
|
58
|
-
if [ -z "$
|
|
59
|
-
echo "Error: Plan with ID ${
|
|
58
|
+
if [ -z "$plan_dir" ]; then
|
|
59
|
+
echo "Error: Plan with ID ${plan_id} not found"
|
|
60
60
|
echo "Available plans:"
|
|
61
61
|
find .ai/task-manager/plans -name "*--*" -type d | head -5
|
|
62
62
|
exit 1
|
|
63
63
|
fi
|
|
64
64
|
|
|
65
|
-
echo "Found plan: $
|
|
65
|
+
echo "Found plan: $plan_dir"
|
|
66
66
|
```
|
|
67
67
|
|
|
68
68
|
### 2. Task File Validation
|
|
@@ -71,21 +71,21 @@ Locate and validate the specific task file:
|
|
|
71
71
|
|
|
72
72
|
```bash
|
|
73
73
|
# Handle both padded (01, 02) and unpadded (1, 2) task IDs
|
|
74
|
-
|
|
75
|
-
if [ -f "${
|
|
76
|
-
|
|
77
|
-
elif [ -f "${
|
|
78
|
-
|
|
74
|
+
task_file=""
|
|
75
|
+
if [ -f "${plan_dir}/tasks/${task_id}--"*.md ]; then
|
|
76
|
+
task_file=$(ls "${plan_dir}/tasks/${task_id}--"*.md 2>/dev/null | head -1)
|
|
77
|
+
elif [ -f "${plan_dir}/tasks/0${task_id}--"*.md ]; then
|
|
78
|
+
task_file=$(ls "${plan_dir}/tasks/0${task_id}--"*.md 2>/dev/null | head -1)
|
|
79
79
|
fi
|
|
80
80
|
|
|
81
|
-
if [ -z "$
|
|
82
|
-
echo "Error: Task with ID ${
|
|
81
|
+
if [ -z "$task_file" ] || [ ! -f "$task_file" ]; then
|
|
82
|
+
echo "Error: Task with ID ${task_id} not found in plan ${plan_id}"
|
|
83
83
|
echo "Available tasks in plan:"
|
|
84
|
-
find "$
|
|
84
|
+
find "$plan_dir/tasks" -name "*.md" -type f | head -5
|
|
85
85
|
exit 1
|
|
86
86
|
fi
|
|
87
87
|
|
|
88
|
-
echo "Found task: $(basename "$
|
|
88
|
+
echo "Found task: $(basename "$task_file")"
|
|
89
89
|
```
|
|
90
90
|
|
|
91
91
|
### 3. Task Status Validation
|
|
@@ -94,7 +94,7 @@ Check current task status to ensure it can be executed:
|
|
|
94
94
|
|
|
95
95
|
```bash
|
|
96
96
|
# Extract current status from task frontmatter
|
|
97
|
-
|
|
97
|
+
current_status=$(awk '
|
|
98
98
|
/^---$/ { if (++delim == 2) exit }
|
|
99
99
|
/^status:/ {
|
|
100
100
|
gsub(/^status:[ \t]*/, "")
|
|
@@ -103,19 +103,19 @@ CURRENT_STATUS=$(awk '
|
|
|
103
103
|
print
|
|
104
104
|
exit
|
|
105
105
|
}
|
|
106
|
-
' "$
|
|
106
|
+
' "$task_file")
|
|
107
107
|
|
|
108
|
-
echo "Current task status: ${
|
|
108
|
+
echo "Current task status: ${current_status:-unknown}"
|
|
109
109
|
|
|
110
110
|
# Validate status allows execution
|
|
111
|
-
case "$
|
|
111
|
+
case "$current_status" in
|
|
112
112
|
"completed")
|
|
113
|
-
echo "Error: Task ${
|
|
113
|
+
echo "Error: Task ${task_id} is already completed"
|
|
114
114
|
echo "Use execute-blueprint to re-execute the entire plan if needed"
|
|
115
115
|
exit 1
|
|
116
116
|
;;
|
|
117
117
|
"in-progress")
|
|
118
|
-
echo "Error: Task ${
|
|
118
|
+
echo "Error: Task ${task_id} is already in progress"
|
|
119
119
|
echo "Wait for current execution to complete or check for stale processes"
|
|
120
120
|
exit 1
|
|
121
121
|
;;
|
|
@@ -123,7 +123,7 @@ case "$CURRENT_STATUS" in
|
|
|
123
123
|
echo "Task status allows execution - proceeding..."
|
|
124
124
|
;;
|
|
125
125
|
*)
|
|
126
|
-
echo "Warning: Unknown task status '${
|
|
126
|
+
echo "Warning: Unknown task status '${current_status}' - proceeding with caution..."
|
|
127
127
|
;;
|
|
128
128
|
esac
|
|
129
129
|
```
|
|
@@ -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.cjs "$
|
|
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."
|
|
@@ -159,7 +159,7 @@ Update task status before execution:
|
|
|
159
159
|
echo "Updating task status to in-progress..."
|
|
160
160
|
|
|
161
161
|
# Create temporary file with updated status
|
|
162
|
-
|
|
162
|
+
temp_file=$(mktemp)
|
|
163
163
|
awk '
|
|
164
164
|
/^---$/ {
|
|
165
165
|
if (++delim == 1) {
|
|
@@ -176,10 +176,10 @@ awk '
|
|
|
176
176
|
next
|
|
177
177
|
}
|
|
178
178
|
{ print }
|
|
179
|
-
' "$
|
|
179
|
+
' "$task_file" > "$temp_file"
|
|
180
180
|
|
|
181
181
|
# Replace original file
|
|
182
|
-
mv "$
|
|
182
|
+
mv "$temp_file" "$task_file"
|
|
183
183
|
|
|
184
184
|
echo "✓ Task status updated to in-progress"
|
|
185
185
|
```
|
|
@@ -189,9 +189,9 @@ echo "✓ Task status updated to in-progress"
|
|
|
189
189
|
Deploy the task using the Task tool with full context:
|
|
190
190
|
|
|
191
191
|
**Task Deployment**: Use your internal Task tool to execute the task with the following context:
|
|
192
|
-
- Task file path: `$
|
|
193
|
-
- Plan directory: `$
|
|
194
|
-
- Required skills: `$
|
|
192
|
+
- Task file path: `$task_file`
|
|
193
|
+
- Plan directory: `$plan_dir`
|
|
194
|
+
- Required skills: `$task_skills`
|
|
195
195
|
- Agent selection: Based on skills analysis or general-purpose agent
|
|
196
196
|
|
|
197
197
|
Read the complete task file and execute according to its requirements. The task includes:
|
|
@@ -204,7 +204,7 @@ Read the complete task file and execute according to its requirements. The task
|
|
|
204
204
|
After task completion, update the status based on execution outcome:
|
|
205
205
|
|
|
206
206
|
```bash
|
|
207
|
-
|
|
207
|
+
temp_file=$(mktemp)
|
|
208
208
|
awk '
|
|
209
209
|
/^---$/ {
|
|
210
210
|
if (++delim == 1) {
|
|
@@ -221,11 +221,11 @@ awk '
|
|
|
221
221
|
next
|
|
222
222
|
}
|
|
223
223
|
{ print }
|
|
224
|
-
' "$
|
|
224
|
+
' "$task_file" > "$temp_file"
|
|
225
225
|
|
|
226
|
-
mv "$
|
|
226
|
+
mv "$temp_file" "$task_file"
|
|
227
227
|
|
|
228
|
-
echo "✓ Task ${
|
|
228
|
+
echo "✓ Task ${task_id} completed successfully"
|
|
229
229
|
echo ""
|
|
230
230
|
echo "You can now execute dependent tasks or continue with the full blueprint execution."
|
|
231
231
|
```
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
argument-hint: "[
|
|
2
|
+
argument-hint: "[testCommand]"
|
|
3
3
|
description: Fix the tests your task execution broke.
|
|
4
4
|
---
|
|
5
5
|
Fix all failing tests in this repository. Think harder and use tools.
|
|
@@ -36,4 +36,4 @@ DO NOT STOP after fixing some tests - fix ALL of them.
|
|
|
36
36
|
|
|
37
37
|
Remember: The entire point of tests is to ensure code robustness. If you cheat in ANY way, the tests become meaningless and I cannot trust that the code actually works.
|
|
38
38
|
|
|
39
|
-
If you get stuck and cannot fix a test properly, ask for help rather than resorting to shortcuts.
|
|
39
|
+
If you get stuck and cannot fix a test properly, ask for help rather than resorting to shortcuts.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
argument-hint: "[
|
|
2
|
+
argument-hint: "[userPrompt]"
|
|
3
3
|
description: Execute the full workflow from plan creation to blueprint execution.
|
|
4
4
|
---
|
|
5
5
|
# Full Workflow Execution
|
|
@@ -12,8 +12,8 @@ Before proceeding with this command, you MUST load and respect the assistant's c
|
|
|
12
12
|
|
|
13
13
|
**Run the following scripts:**
|
|
14
14
|
```bash
|
|
15
|
-
|
|
16
|
-
node .ai/task-manager/config/scripts/read-assistant-config.cjs "$
|
|
15
|
+
assistant=$(node .ai/task-manager/config/scripts/detect-assistant.cjs)
|
|
16
|
+
node .ai/task-manager/config/scripts/read-assistant-config.cjs "$assistant"
|
|
17
17
|
```
|
|
18
18
|
|
|
19
19
|
The output above contains your global and project-level configuration rules. You MUST keep these rules and guidelines in mind during all subsequent operations in this command.
|
|
@@ -340,13 +340,13 @@ Before proceeding with execution, validate that tasks exist and the execution bl
|
|
|
340
340
|
|
|
341
341
|
```bash
|
|
342
342
|
# Extract validation results directly from script
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
343
|
+
plan_file=$(node .ai/task-manager/config/scripts/validate-plan-blueprint.cjs [planId] planFile)
|
|
344
|
+
plan_dir=$(node .ai/task-manager/config/scripts/validate-plan-blueprint.cjs [planId] planDir)
|
|
345
|
+
task_count=$(node .ai/task-manager/config/scripts/validate-plan-blueprint.cjs [planId] taskCount)
|
|
346
|
+
blueprint_exists=$(node .ai/task-manager/config/scripts/validate-plan-blueprint.cjs [planId] blueprintExists)
|
|
347
347
|
```
|
|
348
348
|
|
|
349
|
-
If either `$
|
|
349
|
+
If either `$task_count` is 0 or `$blueprint_exists` is "no":
|
|
350
350
|
- Display notification to user: "⚠️ Tasks or execution blueprint not found. Generating tasks automatically..."
|
|
351
351
|
|
|
352
352
|
### Execution Process
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
argument-hint: "[
|
|
2
|
+
argument-hint: "[planId]"
|
|
3
3
|
description: Generate tasks to implement the plan with the provided ID.
|
|
4
4
|
---
|
|
5
5
|
|
|
@@ -11,8 +11,8 @@ Before proceeding with this command, you MUST load and respect the assistant's c
|
|
|
11
11
|
|
|
12
12
|
**Run the following scripts:**
|
|
13
13
|
```bash
|
|
14
|
-
|
|
15
|
-
node .ai/task-manager/config/scripts/read-assistant-config.cjs "$
|
|
14
|
+
assistant=$(node .ai/task-manager/config/scripts/detect-assistant.cjs)
|
|
15
|
+
node .ai/task-manager/config/scripts/read-assistant-config.cjs "$assistant"
|
|
16
16
|
```
|
|
17
17
|
|
|
18
18
|
The output above contains your global and project-level configuration rules. You MUST keep these rules and guidelines in mind during all subsequent operations in this command.
|
|
@@ -41,7 +41,7 @@ Use your internal Todo task tool to track the following process:
|
|
|
41
41
|
|
|
42
42
|
```bash
|
|
43
43
|
# Extract validation results directly from script
|
|
44
|
-
|
|
44
|
+
plan_file=$(node .ai/task-manager/config/scripts/validate-plan-blueprint.cjs $1 planFile)
|
|
45
45
|
```
|
|
46
46
|
|
|
47
47
|
### Input Error Handling
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
argument-hint: "[
|
|
2
|
+
argument-hint: "[planId]"
|
|
3
3
|
description: Review the plan with the provided ID, gather clarifications, and refine it.
|
|
4
4
|
---
|
|
5
5
|
# Plan Review and Refinement
|
|
@@ -15,8 +15,8 @@ Before proceeding with this command, you MUST load and respect the assistant's c
|
|
|
15
15
|
|
|
16
16
|
**Run the following scripts:**
|
|
17
17
|
```bash
|
|
18
|
-
|
|
19
|
-
node .ai/task-manager/config/scripts/read-assistant-config.cjs "$
|
|
18
|
+
assistant=$(node .ai/task-manager/config/scripts/detect-assistant.cjs)
|
|
19
|
+
node .ai/task-manager/config/scripts/read-assistant-config.cjs "$assistant"
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
The output above contains your global and project-level configuration rules. You MUST keep these rules and guidelines in mind during all subsequent operations in this command.
|
|
@@ -39,7 +39,7 @@ Obtain the plan using the plan ID using the following script:
|
|
|
39
39
|
|
|
40
40
|
```bash
|
|
41
41
|
# Extract validation results directly from script
|
|
42
|
-
|
|
42
|
+
plan_file=$(node .ai/task-manager/config/scripts/validate-plan-blueprint.cjs $1 planFile)
|
|
43
43
|
```
|
|
44
44
|
|
|
45
45
|
## Process Checklist
|
|
@@ -55,7 +55,7 @@ Use your internal Todo tool to track the entire refinement workflow:
|
|
|
55
55
|
- [ ] Use the "Total Clarification Algorithm" to get the missing clarification from the user
|
|
56
56
|
- [ ] Apply refinements using `.ai/task-manager/config/templates/PLAN_TEMPLATE.md` as the structural baseline
|
|
57
57
|
- [ ] Update the "Plan Clarifications" table with the latest Q&A
|
|
58
|
-
- [ ] Update the plan file (
|
|
58
|
+
- [ ] Update the plan file (stored in `plan_file`) with the refinements from steps above
|
|
59
59
|
- [ ] Re-run `.ai/task-manager/config/hooks/POST_PLAN.md`
|
|
60
60
|
|
|
61
61
|
## Stage 1: Baseline Review
|