@e0ipso/ai-task-manager 1.18.7 → 1.20.0
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/cli.js +17 -63
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +86 -83
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/templates/ai-task-manager/config/scripts/compose-prompt.cjs +234 -0
- package/templates/ai-task-manager/config/scripts/validate-plan-blueprint.cjs +27 -8
- package/templates/ai-task-manager/config/templates/PLAN_TEMPLATE.md +0 -2
- package/templates/assistant/commands/tasks/create-plan.md +3 -35
- package/templates/assistant/commands/tasks/execute-blueprint.md +312 -64
- package/templates/assistant/commands/tasks/full-workflow.md +437 -0
- package/templates/assistant/commands/tasks/generate-tasks.md +3 -28
- package/dist/logger.d.ts +0 -70
- package/dist/logger.d.ts.map +0 -1
- package/dist/logger.js +0 -185
- package/dist/logger.js.map +0 -1
- package/templates/ai-task-manager/config/scripts/get-approval-methods.cjs +0 -229
|
@@ -0,0 +1,437 @@
|
|
|
1
|
+
---
|
|
2
|
+
argument-hint: [user-prompt]
|
|
3
|
+
description: Execute the full workflow from plan creation to blueprint execution
|
|
4
|
+
---
|
|
5
|
+
# Full Workflow Execution
|
|
6
|
+
|
|
7
|
+
You are a workflow composition assistant. Your role is to execute the complete task management workflow from plan creation through blueprint execution **without pausing between steps**. This is a fully automated workflow that executes all three steps sequentially.
|
|
8
|
+
|
|
9
|
+
## Assistant Configuration
|
|
10
|
+
|
|
11
|
+
Before proceeding with this command, you MUST load and respect the assistant's configuration:
|
|
12
|
+
|
|
13
|
+
**Run the following scripts:**
|
|
14
|
+
```bash
|
|
15
|
+
ASSISTANT=$(node .ai/task-manager/config/scripts/detect-assistant.cjs)
|
|
16
|
+
node .ai/task-manager/config/scripts/read-assistant-config.cjs "$ASSISTANT"
|
|
17
|
+
```
|
|
18
|
+
|
|
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.
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## Workflow Execution Instructions
|
|
24
|
+
|
|
25
|
+
**CRITICAL**: Execute all three steps sequentially without waiting for user input between steps. Progress indicators are for user visibility only - do not pause execution.
|
|
26
|
+
|
|
27
|
+
The user input is:
|
|
28
|
+
|
|
29
|
+
<user-input>
|
|
30
|
+
$ARGUMENTS
|
|
31
|
+
</user-input>
|
|
32
|
+
|
|
33
|
+
If no user input is provided, stop immediately and show an error message to the user.
|
|
34
|
+
|
|
35
|
+
### Context Passing Between Steps
|
|
36
|
+
|
|
37
|
+
**How information flows through the workflow:**
|
|
38
|
+
1. User provides prompt → use as input in Step 1
|
|
39
|
+
2. Step 1 outputs "Plan ID: X" in structured format → extract X, use in Step 2
|
|
40
|
+
3. Step 2 outputs "Tasks: Y" in structured format → use for progress tracking in Step 3
|
|
41
|
+
|
|
42
|
+
Use your internal Todo task tool to track the workflow execution:
|
|
43
|
+
|
|
44
|
+
- [ ] Step 1: Create Plan
|
|
45
|
+
- [ ] Step 2: Generate Tasks
|
|
46
|
+
- [ ] Step 3: Execute Blueprint
|
|
47
|
+
|
|
48
|
+
---
|
|
49
|
+
|
|
50
|
+
## Step 1: Plan Creation
|
|
51
|
+
|
|
52
|
+
**Progress**: ⬛⬜⬜ 0% - Step 1/3: Starting Plan Creation
|
|
53
|
+
|
|
54
|
+
Execute the following plan creation process:
|
|
55
|
+
|
|
56
|
+
Think harder and use tools.
|
|
57
|
+
|
|
58
|
+
You are a comprehensive task planning assistant. Your role is to think hard to create detailed, actionable plans based on user input while ensuring you have all necessary context before proceeding.
|
|
59
|
+
|
|
60
|
+
Include .ai/task-manager/config/TASK_MANAGER.md for the directory structure of tasks.
|
|
61
|
+
|
|
62
|
+
### Process
|
|
63
|
+
|
|
64
|
+
Use your internal Todo task tool to track the plan generation:
|
|
65
|
+
|
|
66
|
+
- [ ] Read and execute .ai/task-manager/config/hooks/PRE_PLAN.md
|
|
67
|
+
- [ ] User input and context analysis
|
|
68
|
+
- [ ] Clarification questions
|
|
69
|
+
- [ ] Plan generation: Executive Summary
|
|
70
|
+
- [ ] Plan generation: Detailed Steps
|
|
71
|
+
- [ ] Plan generation: Risk Considerations
|
|
72
|
+
- [ ] Plan generation: Success Metrics
|
|
73
|
+
- [ ] Read and execute .ai/task-manager/config/hooks/POST_PLAN.md
|
|
74
|
+
|
|
75
|
+
#### Context Analysis
|
|
76
|
+
Before creating any plan, analyze the user's request for:
|
|
77
|
+
- **Objective**: What is the end goal?
|
|
78
|
+
- **Scope**: What are the boundaries and constraints?
|
|
79
|
+
- **Resources**: What tools, budget, or team are available?
|
|
80
|
+
- **Success Criteria**: How will success be measured?
|
|
81
|
+
- **Dependencies**: What prerequisites or blockers exist?
|
|
82
|
+
- **Technical Requirements**: What technologies or skills are needed?
|
|
83
|
+
|
|
84
|
+
#### Clarification Phase
|
|
85
|
+
If any critical context is missing:
|
|
86
|
+
1. Identify specific gaps in the information provided
|
|
87
|
+
2. Ask targeted follow-up questions grouped by category
|
|
88
|
+
3. Wait for user responses before proceeding to planning
|
|
89
|
+
4. Frame questions clearly with examples when helpful
|
|
90
|
+
5. Be extra cautious. Users miss important context very often. Don't hesitate to ask for clarifications.
|
|
91
|
+
|
|
92
|
+
Example clarifying questions:
|
|
93
|
+
- "Q: What is your primary goal with [specific aspect]?"
|
|
94
|
+
- "Q: Do you have any existing [resources/code/infrastructure] I should consider?"
|
|
95
|
+
- "Q: What is your timeline for completing this?"
|
|
96
|
+
- "Q: Are there specific constraints I should account for?"
|
|
97
|
+
- "Q: Do you want me to write tests for this?"
|
|
98
|
+
- "Q: Are there other systems, projects, or modules that perform a similar task?"
|
|
99
|
+
|
|
100
|
+
Try to answer your own questions first by inspecting the codebase, docs, and assistant documents like CLAUDE.md, GEMINI.md, AGENTS.md ...
|
|
101
|
+
|
|
102
|
+
#### Plan Generation
|
|
103
|
+
Only after confirming sufficient context, create a plan that includes:
|
|
104
|
+
1. **Executive Summary**: Brief overview of the approach
|
|
105
|
+
2. **Detailed Steps**: Numbered, actionable tasks with clear outcomes
|
|
106
|
+
3. **Risk Considerations**: Potential challenges and mitigation strategies
|
|
107
|
+
4. **Success Metrics**: How to measure completion and quality
|
|
108
|
+
|
|
109
|
+
Remember that a plan needs to be reviewed by a human. Be concise and to the point. Also, include mermaid diagrams to illustrate the plan.
|
|
110
|
+
|
|
111
|
+
#### Output Format
|
|
112
|
+
|
|
113
|
+
**Output Behavior: CRITICAL - Structured Output for Command Coordination**
|
|
114
|
+
|
|
115
|
+
Always end your output with a standardized summary in this exact format, for command coordination:
|
|
116
|
+
|
|
117
|
+
```
|
|
118
|
+
---
|
|
119
|
+
|
|
120
|
+
Plan Summary:
|
|
121
|
+
- Plan ID: [numeric-id]
|
|
122
|
+
- Plan File: [full-path-to-plan-file]
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
This structured output enables automated workflow coordination and must be included even when running standalone.
|
|
126
|
+
|
|
127
|
+
#### Plan Template
|
|
128
|
+
|
|
129
|
+
Use the template in .ai/task-manager/config/templates/PLAN_TEMPLATE.md
|
|
130
|
+
|
|
131
|
+
#### Patterns to Avoid
|
|
132
|
+
Do not include the following in your plan output.
|
|
133
|
+
- Avoid time estimations
|
|
134
|
+
- Avoid task lists and mentions of phases (those are things we'll introduce later)
|
|
135
|
+
|
|
136
|
+
#### Frontmatter Structure
|
|
137
|
+
|
|
138
|
+
Example:
|
|
139
|
+
```yaml
|
|
140
|
+
---
|
|
141
|
+
id: 1
|
|
142
|
+
summary: "Implement a comprehensive CI/CD pipeline using GitHub Actions for automated linting, testing, semantic versioning, and NPM publishing"
|
|
143
|
+
created: 2025-09-01
|
|
144
|
+
---
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
#### Plan ID Generation
|
|
148
|
+
|
|
149
|
+
**Auto-generate the next plan ID:**
|
|
150
|
+
```bash
|
|
151
|
+
node .ai/task-manager/config/scripts/get-next-plan-id.cjs
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
**Key formatting:**
|
|
155
|
+
- **Front-matter**: Use numeric values (`id: 7`)
|
|
156
|
+
- **Directory names**: Use zero-padded strings (`07--plan-name`)
|
|
157
|
+
|
|
158
|
+
**After completing Step 1:**
|
|
159
|
+
- Extract the Plan ID from the structured output
|
|
160
|
+
- Extract the Plan File path from the structured output
|
|
161
|
+
|
|
162
|
+
**Progress**: ⬛⬜⬜ 33% - Step 1/3: Plan Creation Complete
|
|
163
|
+
|
|
164
|
+
---
|
|
165
|
+
|
|
166
|
+
## Step 2: Task Generation
|
|
167
|
+
|
|
168
|
+
**Progress**: ⬛⬜⬜ 33% - Step 2/3: Starting Task Generation
|
|
169
|
+
|
|
170
|
+
Using the Plan ID extracted from Step 1, execute task generation:
|
|
171
|
+
|
|
172
|
+
Think harder and use tools.
|
|
173
|
+
|
|
174
|
+
You are a comprehensive task planning assistant. Your role is to create detailed, actionable plans based on user input while ensuring you have all necessary context before proceeding.
|
|
175
|
+
|
|
176
|
+
Include /TASK_MANAGER.md for the directory structure of tasks.
|
|
177
|
+
|
|
178
|
+
### Instructions
|
|
179
|
+
|
|
180
|
+
You will think hard to analyze the provided plan document and decompose it into atomic, actionable tasks with clear dependencies and groupings.
|
|
181
|
+
|
|
182
|
+
Use your internal Todo task tool to track the following process:
|
|
183
|
+
|
|
184
|
+
- [ ] Read and process plan [PLAN_ID from Step 1]
|
|
185
|
+
- [ ] Use the Task Generation Process to create tasks according to the Task Creation Guidelines
|
|
186
|
+
- [ ] Read and run the .ai/task-manager/config/hooks/POST_TASK_GENERATION_ALL.md
|
|
187
|
+
|
|
188
|
+
#### Input
|
|
189
|
+
- A plan document. See .ai/task-manager/config/TASK_MANAGER.md to find the plan with ID from Step 1
|
|
190
|
+
- The plan contains high-level objectives and implementation steps
|
|
191
|
+
|
|
192
|
+
#### Input Error Handling
|
|
193
|
+
If the plan does not exist. Stop immediately and show an error to the user.
|
|
194
|
+
|
|
195
|
+
### Task Creation Guidelines
|
|
196
|
+
|
|
197
|
+
#### Task Minimization Principles
|
|
198
|
+
**Core Constraint:** Create only the minimum number of tasks necessary to satisfy the plan requirements. Target a 20-30% reduction from comprehensive task lists by questioning the necessity of each component.
|
|
199
|
+
|
|
200
|
+
**Minimization Rules:**
|
|
201
|
+
- **Direct Implementation Only**: Create tasks for explicitly stated requirements, not "nice-to-have" features
|
|
202
|
+
- **DRY Task Principle**: Each task should have a unique, non-overlapping purpose
|
|
203
|
+
- **Question Everything**: For each task, ask "Is this absolutely necessary to meet the plan objectives?"
|
|
204
|
+
- **Avoid Gold-plating**: Resist the urge to add comprehensive features not explicitly required
|
|
205
|
+
|
|
206
|
+
**Antipatterns to Avoid:**
|
|
207
|
+
- Creating separate tasks for "error handling" when it can be included in the main implementation
|
|
208
|
+
- Breaking simple operations into multiple tasks (e.g., separate "validate input" and "process input" tasks)
|
|
209
|
+
- Adding tasks for "future extensibility" or "best practices" not mentioned in the plan
|
|
210
|
+
- Creating comprehensive test suites for trivial functionality
|
|
211
|
+
|
|
212
|
+
#### Task Granularity
|
|
213
|
+
Each task must be:
|
|
214
|
+
- **Single-purpose**: One clear deliverable or outcome
|
|
215
|
+
- **Atomic**: Cannot be meaningfully split further
|
|
216
|
+
- **Skill-specific**: Executable by a single skill agent
|
|
217
|
+
- **Verifiable**: Has clear completion criteria
|
|
218
|
+
|
|
219
|
+
#### Skill Selection and Technical Requirements
|
|
220
|
+
|
|
221
|
+
**Core Principle**: Each task should require 1-2 specific technical skills that can be handled by specialized agents. Skills should be automatically inferred from the task's technical requirements and objectives.
|
|
222
|
+
|
|
223
|
+
**Assignment Guidelines**:
|
|
224
|
+
- **1 skill**: Focused, single-domain tasks
|
|
225
|
+
- **2 skills**: Tasks requiring complementary domains
|
|
226
|
+
- **Split if 3+**: Indicates task should be broken down
|
|
227
|
+
|
|
228
|
+
#### Meaningful Test Strategy Guidelines
|
|
229
|
+
|
|
230
|
+
**IMPORTANT** Make sure to copy this _Meaningful Test Strategy Guidelines_ section into all the tasks focused on testing, and **also** keep them in mind when generating tasks.
|
|
231
|
+
|
|
232
|
+
Your critical mantra for test generation is: "write a few tests, mostly integration".
|
|
233
|
+
|
|
234
|
+
**When TO Write Tests:**
|
|
235
|
+
- Custom business logic and algorithms
|
|
236
|
+
- Critical user workflows and data transformations
|
|
237
|
+
- Edge cases and error conditions for core functionality
|
|
238
|
+
- Integration points between different system components
|
|
239
|
+
- Complex validation logic or calculations
|
|
240
|
+
|
|
241
|
+
**When NOT to Write Tests:**
|
|
242
|
+
- Third-party library functionality (already tested upstream)
|
|
243
|
+
- Framework features (React hooks, Express middleware, etc.)
|
|
244
|
+
- Simple CRUD operations without custom logic
|
|
245
|
+
- Getter/setter methods or basic property access
|
|
246
|
+
- Configuration files or static data
|
|
247
|
+
- Obvious functionality that would break immediately if incorrect
|
|
248
|
+
|
|
249
|
+
### Task Generation Process
|
|
250
|
+
|
|
251
|
+
#### Step 1: Task Decomposition
|
|
252
|
+
1. Read through the entire plan
|
|
253
|
+
2. Identify all concrete deliverables **explicitly stated** in the plan
|
|
254
|
+
3. Apply minimization principles: question necessity of each potential task
|
|
255
|
+
4. Break each deliverable into atomic tasks (only if genuinely needed)
|
|
256
|
+
5. Ensure no task requires multiple skill sets
|
|
257
|
+
6. Verify each task has clear inputs and outputs
|
|
258
|
+
7. **Minimize test tasks**: Combine related testing scenarios, avoid testing framework functionality
|
|
259
|
+
8. Be very detailed with the "Implementation Notes". This should contain enough detail for a non-thinking LLM model to successfully complete the task. Put these instructions in a collapsible field `<details>`.
|
|
260
|
+
|
|
261
|
+
#### Step 2: Dependency Analysis
|
|
262
|
+
For each task, identify:
|
|
263
|
+
- **Hard dependencies**: Tasks that MUST complete before this can start
|
|
264
|
+
- **Soft dependencies**: Tasks that SHOULD complete for optimal execution
|
|
265
|
+
- **No circular dependencies**: Validate the dependency graph is acyclic
|
|
266
|
+
|
|
267
|
+
#### Step 3: Task Generation
|
|
268
|
+
|
|
269
|
+
Use the task template in .ai/task-manager/config/templates/TASK_TEMPLATE.md
|
|
270
|
+
|
|
271
|
+
**Task ID Generation:**
|
|
272
|
+
|
|
273
|
+
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:
|
|
274
|
+
|
|
275
|
+
```bash
|
|
276
|
+
node .ai/task-manager/config/scripts/get-next-task-id.cjs [PLAN_ID from Step 1]
|
|
277
|
+
```
|
|
278
|
+
|
|
279
|
+
#### Step 4: POST_TASK_GENERATION_ALL hook
|
|
280
|
+
|
|
281
|
+
Read and run the .ai/task-manager/config/hooks/POST_TASK_GENERATION_ALL.md
|
|
282
|
+
|
|
283
|
+
### Output Requirements
|
|
284
|
+
|
|
285
|
+
**Output Behavior:**
|
|
286
|
+
|
|
287
|
+
Provide a concise completion message with task count and location:
|
|
288
|
+
- Example: "Task generation complete. Created [count] tasks in `.ai/task-manager/plans/[plan-id]--[name]/tasks/`"
|
|
289
|
+
|
|
290
|
+
**CRITICAL - Structured Output for Command Coordination:**
|
|
291
|
+
|
|
292
|
+
Always end your output with a standardized summary in this exact format:
|
|
293
|
+
|
|
294
|
+
```
|
|
295
|
+
---
|
|
296
|
+
Task Generation Summary:
|
|
297
|
+
- Plan ID: [numeric-id]
|
|
298
|
+
- Tasks: [count]
|
|
299
|
+
- Status: Ready for execution
|
|
300
|
+
```
|
|
301
|
+
|
|
302
|
+
This structured output enables automated workflow coordination and must be included even when running standalone.
|
|
303
|
+
|
|
304
|
+
**Progress**: ⬛⬛⬜ 66% - Step 2/3: Task Generation Complete
|
|
305
|
+
|
|
306
|
+
---
|
|
307
|
+
|
|
308
|
+
## Step 3: Blueprint Execution
|
|
309
|
+
|
|
310
|
+
**Progress**: ⬛⬛⬜ 66% - Step 3/3: Starting Blueprint Execution
|
|
311
|
+
|
|
312
|
+
Using the Plan ID from previous steps, execute the blueprint:
|
|
313
|
+
|
|
314
|
+
You are the coordinator responsible for executing all tasks defined in the execution blueprint of a plan document, so choose an appropriate sub-agent for this role. Your role is to coordinate phase-by-phase execution, manage parallel task processing, and ensure validation gates pass before phase transitions.
|
|
315
|
+
|
|
316
|
+
### Critical Rules
|
|
317
|
+
|
|
318
|
+
1. **Never skip validation gates** - Phase progression requires successful validation
|
|
319
|
+
2. **Maintain task isolation** - Parallel tasks must not interfere with each other
|
|
320
|
+
3. **Preserve dependency order** - Never execute a task before its dependencies
|
|
321
|
+
4. **Document everything** - All decisions, issues, and outcomes must be recorded in the "Execution Summary", under "Noteworthy Events"
|
|
322
|
+
5. **Fail safely** - Better to halt and request help than corrupt the execution state
|
|
323
|
+
|
|
324
|
+
### Input Requirements
|
|
325
|
+
- A plan document with an execution blueprint section. See /TASK_MANAGER.md to find the plan with ID from Step 1
|
|
326
|
+
- Task files with frontmatter metadata (id, group, dependencies, status)
|
|
327
|
+
- Validation gates document: `/config/hooks/POST_PHASE.md`
|
|
328
|
+
|
|
329
|
+
#### Input Error Handling
|
|
330
|
+
|
|
331
|
+
If the plan does not exist, stop immediately and show an error to the user.
|
|
332
|
+
|
|
333
|
+
**Note**: If tasks or the execution blueprint section are missing, they will be automatically generated before execution begins (see Task and Blueprint Validation below).
|
|
334
|
+
|
|
335
|
+
#### Task and Blueprint Validation
|
|
336
|
+
|
|
337
|
+
Before proceeding with execution, validate that tasks exist and the execution blueprint has been generated. If either is missing, automatically invoke task generation.
|
|
338
|
+
|
|
339
|
+
**Validation Steps:**
|
|
340
|
+
|
|
341
|
+
```bash
|
|
342
|
+
# Extract validation results directly from script
|
|
343
|
+
PLAN_FILE=$(node .ai/task-manager/config/scripts/validate-plan-blueprint.cjs [PLAN_ID] planFile)
|
|
344
|
+
PLAN_DIR=$(node .ai/task-manager/config/scripts/validate-plan-blueprint.cjs [PLAN_ID] planDir)
|
|
345
|
+
TASK_COUNT=$(node .ai/task-manager/config/scripts/validate-plan-blueprint.cjs [PLAN_ID] taskCount)
|
|
346
|
+
BLUEPRINT_EXISTS=$(node .ai/task-manager/config/scripts/validate-plan-blueprint.cjs [PLAN_ID] blueprintExists)
|
|
347
|
+
```
|
|
348
|
+
|
|
349
|
+
If either `$TASK_COUNT` is 0 or `$BLUEPRINT_EXISTS` is "no":
|
|
350
|
+
- Display notification to user: "⚠️ Tasks or execution blueprint not found. Generating tasks automatically..."
|
|
351
|
+
|
|
352
|
+
### Execution Process
|
|
353
|
+
|
|
354
|
+
Use your internal Todo task tool to track the execution of all phases, and the final update of the plan with the summary.
|
|
355
|
+
|
|
356
|
+
#### Phase Pre-Execution
|
|
357
|
+
|
|
358
|
+
Read and execute .ai/task-manager/config/hooks/PRE_PHASE.md
|
|
359
|
+
|
|
360
|
+
#### Phase Execution Workflow
|
|
361
|
+
|
|
362
|
+
1. **Phase Initialization**
|
|
363
|
+
- Identify current phase from the execution blueprint
|
|
364
|
+
- List all tasks scheduled for parallel execution in this phase
|
|
365
|
+
|
|
366
|
+
2. **Agent Selection and Task Assignment**
|
|
367
|
+
Read and execute .ai/task-manager/config/hooks/PRE_TASK_ASSIGNMENT.md
|
|
368
|
+
|
|
369
|
+
3. **Parallel Execution**
|
|
370
|
+
- Deploy all selected agents simultaneously using your internal Task tool
|
|
371
|
+
- Monitor execution progress for each task
|
|
372
|
+
- Capture outputs and artifacts from each agent
|
|
373
|
+
- Update task status in real-time
|
|
374
|
+
|
|
375
|
+
4. **Phase Completion Verification**
|
|
376
|
+
- Ensure all tasks in the phase have status: "completed"
|
|
377
|
+
- Collect and review all task outputs
|
|
378
|
+
- Document any issues or exceptions encountered
|
|
379
|
+
|
|
380
|
+
#### Phase Post-Execution
|
|
381
|
+
|
|
382
|
+
Read and execute .ai/task-manager/config/hooks/POST_PHASE.md
|
|
383
|
+
|
|
384
|
+
#### Phase Transition
|
|
385
|
+
|
|
386
|
+
- Update phase status to "completed" in the Blueprint section of the plan document.
|
|
387
|
+
- Initialize next phase
|
|
388
|
+
- Repeat process until all phases are complete
|
|
389
|
+
|
|
390
|
+
### Output Requirements
|
|
391
|
+
|
|
392
|
+
**Output Behavior:**
|
|
393
|
+
|
|
394
|
+
Provide a concise execution summary:
|
|
395
|
+
- Example: "Execution completed. Review summary: `.ai/task-manager/archive/[plan]/plan-[id].md`"
|
|
396
|
+
|
|
397
|
+
**CRITICAL - Structured Output for Command Coordination:**
|
|
398
|
+
|
|
399
|
+
Always end your output with a standardized summary in this exact format:
|
|
400
|
+
|
|
401
|
+
```
|
|
402
|
+
---
|
|
403
|
+
Execution Summary:
|
|
404
|
+
- Plan ID: [numeric-id]
|
|
405
|
+
- Status: Archived
|
|
406
|
+
- Location: .ai/task-manager/archive/[plan-id]--[plan-name]/
|
|
407
|
+
```
|
|
408
|
+
|
|
409
|
+
This structured output enables automated workflow coordination and must be included even when running standalone.
|
|
410
|
+
|
|
411
|
+
### Post-Execution Processing
|
|
412
|
+
|
|
413
|
+
Upon successful completion of all phases and validation gates, perform the following additional steps:
|
|
414
|
+
|
|
415
|
+
- [ ] Execution Summary Generation
|
|
416
|
+
- [ ] Plan Archival
|
|
417
|
+
|
|
418
|
+
#### Execution Summary Generation
|
|
419
|
+
|
|
420
|
+
Append an execution summary section to the plan document with the format described in .ai/task-manager/config/templates/EXECUTION_SUMMARY_TEMPLATE.md
|
|
421
|
+
|
|
422
|
+
#### Plan Archival
|
|
423
|
+
|
|
424
|
+
After successfully appending the execution summary:
|
|
425
|
+
|
|
426
|
+
**Move completed plan to archive**:
|
|
427
|
+
```bash
|
|
428
|
+
mv .ai/task-manager/plans/[plan-folder] .ai/task-manager/archive/
|
|
429
|
+
```
|
|
430
|
+
|
|
431
|
+
**Progress**: ⬛⬛⬛ 100% - Step 3/3: Blueprint Execution Complete
|
|
432
|
+
|
|
433
|
+
---
|
|
434
|
+
|
|
435
|
+
## Final Summary
|
|
436
|
+
|
|
437
|
+
Generate an extremely concise final summary using the structured output from Step 3.
|
|
@@ -296,35 +296,10 @@ Read and run the .ai/task-manager/config/hooks/POST_TASK_GENERATION_ALL.md
|
|
|
296
296
|
|
|
297
297
|
### Output Requirements
|
|
298
298
|
|
|
299
|
-
**
|
|
299
|
+
**Output Behavior:**
|
|
300
300
|
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
First, extract the approval_method from the plan document:
|
|
304
|
-
|
|
305
|
-
```bash
|
|
306
|
-
# Extract approval method from plan metadata
|
|
307
|
-
APPROVAL_METHODS=$(node .ai/task-manager/config/scripts/get-approval-methods.cjs $1)
|
|
308
|
-
|
|
309
|
-
APPROVAL_METHOD_TASKS=$(echo "$APPROVAL_METHODS" | grep -o '"approval_method_tasks": "[^"]*"' | cut -d'"' -f4)
|
|
310
|
-
|
|
311
|
-
# Default to "manual" if field doesn't exist (backward compatibility)
|
|
312
|
-
APPROVAL_METHOD_TASKS=${APPROVAL_METHOD_TASKS:-manual}
|
|
313
|
-
```
|
|
314
|
-
|
|
315
|
-
Then adjust output based on the extracted approval method:
|
|
316
|
-
|
|
317
|
-
- **If `APPROVAL_METHOD_TASKS="auto"` (automated workflow mode)**:
|
|
318
|
-
- Simply confirm task generation with task count
|
|
319
|
-
- Do NOT instruct user to review the tasks
|
|
320
|
-
- Do NOT add any prompts that would pause execution
|
|
321
|
-
- Example output: "Tasks generated for plan [id]: [count] tasks created"
|
|
322
|
-
|
|
323
|
-
- **If `APPROVAL_METHOD_TASKS="manual"` or empty (standalone mode)**:
|
|
324
|
-
- Be concise but helpful
|
|
325
|
-
- Tell the user that you are done
|
|
326
|
-
- Instruct them to review the tasks with file paths
|
|
327
|
-
- Example output: "Task generation complete. Review tasks in: `.ai/task-manager/plans/[plan-id]--[name]/tasks/`"
|
|
301
|
+
Provide a concise completion message with task count and location:
|
|
302
|
+
- Example: "Task generation complete. Created [count] tasks in `.ai/task-manager/plans/[plan-id]--[name]/tasks/`"
|
|
328
303
|
|
|
329
304
|
**CRITICAL - Structured Output for Command Coordination:**
|
|
330
305
|
|
package/dist/logger.d.ts
DELETED
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Simple Logging Utility
|
|
3
|
-
*
|
|
4
|
-
* This file provides a simple logging interface for the CLI
|
|
5
|
-
* Handles different log levels and formatted output with optional color support
|
|
6
|
-
*/
|
|
7
|
-
/**
|
|
8
|
-
* Get chalk instance, initializing if necessary
|
|
9
|
-
*/
|
|
10
|
-
export declare function getChalk(): Promise<any | null>;
|
|
11
|
-
/**
|
|
12
|
-
* Debug mode flag - can be set externally
|
|
13
|
-
*/
|
|
14
|
-
export declare let isDebugMode: boolean;
|
|
15
|
-
/**
|
|
16
|
-
* Enable or disable debug mode
|
|
17
|
-
*/
|
|
18
|
-
export declare function setDebugMode(enabled: boolean): void;
|
|
19
|
-
/**
|
|
20
|
-
* Log an informational message
|
|
21
|
-
*/
|
|
22
|
-
export declare function info(message: string): Promise<void>;
|
|
23
|
-
/**
|
|
24
|
-
* Log a success message
|
|
25
|
-
*/
|
|
26
|
-
export declare function success(message: string): Promise<void>;
|
|
27
|
-
/**
|
|
28
|
-
* Log an error message
|
|
29
|
-
*/
|
|
30
|
-
export declare function error(message: string): Promise<void>;
|
|
31
|
-
/**
|
|
32
|
-
* Log a warning message
|
|
33
|
-
*/
|
|
34
|
-
export declare function warning(message: string): Promise<void>;
|
|
35
|
-
/**
|
|
36
|
-
* Log a debug message (only shown in debug mode)
|
|
37
|
-
*/
|
|
38
|
-
export declare function debug(message: string): Promise<void>;
|
|
39
|
-
/**
|
|
40
|
-
* Synchronous versions for cases where async is not suitable
|
|
41
|
-
* These will only use colors if chalk was previously initialized
|
|
42
|
-
*/
|
|
43
|
-
export declare const sync: {
|
|
44
|
-
/**
|
|
45
|
-
* Log an informational message (sync)
|
|
46
|
-
*/
|
|
47
|
-
info(message: string): void;
|
|
48
|
-
/**
|
|
49
|
-
* Log a success message (sync)
|
|
50
|
-
*/
|
|
51
|
-
success(message: string): void;
|
|
52
|
-
/**
|
|
53
|
-
* Log an error message (sync)
|
|
54
|
-
*/
|
|
55
|
-
error(message: string): void;
|
|
56
|
-
/**
|
|
57
|
-
* Log a warning message (sync)
|
|
58
|
-
*/
|
|
59
|
-
warning(message: string): void;
|
|
60
|
-
/**
|
|
61
|
-
* Log a debug message (sync, only shown in debug mode)
|
|
62
|
-
*/
|
|
63
|
-
debug(message: string): void;
|
|
64
|
-
};
|
|
65
|
-
/**
|
|
66
|
-
* Initialize the logger - call this early in your application
|
|
67
|
-
* This pre-loads chalk to avoid delays on first use
|
|
68
|
-
*/
|
|
69
|
-
export declare function initLogger(): Promise<void>;
|
|
70
|
-
//# sourceMappingURL=logger.d.ts.map
|
package/dist/logger.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../src/logger.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAwBH;;GAEG;AACH,wBAAsB,QAAQ,IAAI,OAAO,CAAC,GAAG,GAAG,IAAI,CAAC,CAGpD;AAED;;GAEG;AACH,eAAO,IAAI,WAAW,SAAQ,CAAC;AAE/B;;GAEG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAEnD;AAED;;GAEG;AACH,wBAAsB,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAIzD;AAED;;GAEG;AACH,wBAAsB,OAAO,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAI5D;AAED;;GAEG;AACH,wBAAsB,KAAK,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAI1D;AAED;;GAEG;AACH,wBAAsB,OAAO,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAI5D;AAED;;GAEG;AACH,wBAAsB,KAAK,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAM1D;AAED;;;GAGG;AACH,eAAO,MAAM,IAAI;IACf;;OAEG;kBACW,MAAM,GAAG,IAAI;IAK3B;;OAEG;qBACc,MAAM,GAAG,IAAI;IAK9B;;OAEG;mBACY,MAAM,GAAG,IAAI;IAK5B;;OAEG;qBACc,MAAM,GAAG,IAAI;IAK9B;;OAEG;mBACY,MAAM,GAAG,IAAI;CAM7B,CAAC;AAEF;;;GAGG;AACH,wBAAsB,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC,CAEhD"}
|