@dalmasonto/taskflow-mcp 1.0.3 → 1.0.5
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/tools/agent.js +5 -4
- package/dist/tools/tasks.js +2 -3
- package/package.json +1 -1
package/dist/tools/agent.js
CHANGED
|
@@ -25,16 +25,17 @@ export async function getAgentInstructions() {
|
|
|
25
25
|
},
|
|
26
26
|
rules: [
|
|
27
27
|
// Task tracking
|
|
28
|
-
'Proactively create tasks for ALL substantial work
|
|
29
|
-
'Timer lifecycle: start_timer → work → stop_timer(final_status). Use "done"/"partial_done"/"blocked". pause_timer when waiting for input.',
|
|
30
|
-
'MUST stop_timer with "done" when work is complete. Never leave finished tasks in "in_progress" or "paused".',
|
|
28
|
+
'Proactively create tasks for ALL substantial work — features, bugs, refactors, AND debugging/investigation. Debugging is real work: create a task for it (e.g. "Debug: SSE connection dropping"), start a timer, and track it the same way you would a feature. search_tasks first to avoid duplicates. Link tasks to the confirmed project.',
|
|
29
|
+
'Timer lifecycle: start_timer → work → stop_timer(final_status). Use "done"/"partial_done"/"blocked". pause_timer when waiting for input. This applies equally to debugging tasks — start a timer before investigating, stop it when resolved or blocked.',
|
|
30
|
+
'MUST stop_timer with "done" when work is complete. Never leave finished tasks in "in_progress" or "paused". This includes debugging tasks — when the bug is fixed or the investigation concludes, stop the timer.',
|
|
31
31
|
// Dependencies
|
|
32
32
|
'Check task dependencies before starting. If any dep is incomplete, set task to "blocked".',
|
|
33
33
|
'After completing a task, check if blocked tasks depending on it can be unblocked.',
|
|
34
34
|
// Prioritization
|
|
35
35
|
'When user is unsure what to work on: list_tasks priority="critical"/"high" status="not_started".',
|
|
36
36
|
// Logging
|
|
37
|
-
'
|
|
37
|
+
'ALWAYS log your entire debugging process using log_debug with task_id. Log every stage: issue identification, hypothesis, files read/edited, commands run, errors encountered, fixes attempted, and resolution. This creates a visible trail in the Activity Pulse so users can follow your reasoning in real-time.',
|
|
38
|
+
'log_debug early and often — not just at the end. Log when you start investigating, when you find a clue, when you edit a file, and when the fix lands. Use Markdown: headings for stages, code blocks for errors/paths, bold for key findings.',
|
|
38
39
|
// Formatting
|
|
39
40
|
'Use Markdown in descriptions — headings, bullets, code blocks, bold. The UI renders it.',
|
|
40
41
|
],
|
package/dist/tools/tasks.js
CHANGED
|
@@ -303,9 +303,8 @@ export async function updateTaskStatus(params) {
|
|
|
303
303
|
statusAction = 'task_status_changed';
|
|
304
304
|
}
|
|
305
305
|
const updated = db.prepare('SELECT * FROM tasks WHERE id = ?').get(params.id);
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
return successResponse(updatedTask);
|
|
306
|
+
broadcastChange('task', statusAction, parseTask(updated));
|
|
307
|
+
return successResponse(parseTaskCompact(updated));
|
|
309
308
|
}
|
|
310
309
|
export async function deleteTask(params) {
|
|
311
310
|
const db = getDb();
|