An AI-powered task-management system you can drop into Cursor, Lovable, Windsurf, Roo, and others.
JavaScript aicursorcursor-aicursorailovablelovable-devroocodetask-managertaskstasks-listwindsurfwindsurf-ai
chore: update dev.js with enhanced task management commands
Eyal Toledano5ec62c8e09df
diff --git a/scripts/dev.js b/scripts/dev.jsindex 3e2e062b..bbc24dfc 100755--- a/scripts/dev.js+++ b/scripts/dev.js@@ -428,13 +428,26 @@ async function updateTasks(tasksPath, fromId, prompt) {log('error', "Invalid or missing tasks.json.");process.exit(1);}+log('info', `Updating tasks from ID >= ${fromId} with prompt: ${prompt}`);- // In real usage, you'd feed data.tasks + prompt to an LLM. We'll just do a naive approach:- data.tasks.forEach(task => {- if (task.id >= fromId && task.status !== "done") {- task.description += ` [UPDATED: ${prompt}]`;- }+ const tasksToUpdate = data.tasks.filter(task => task.id >= fromId && task.status !== "done");++ const claudeResponse = await anthropic.messages.create({+ max_tokens: CONFIG.maxTokens,+ model: CONFIG.model,+ temperature: CONFIG.temperature,+ messages: [+ { role: "user", content: `Update these tasks based on the following insight: ${prompt}\nTasks: ${JSON.stringify(tasksToUpdate, null, 2)}` }+ ],+ system: "You are a helpful assistant that updates tasks based on provided insights. Return only the updated tasks as a JSON array."+ });++ const updatedTasks = JSON.parse(claudeResponse.content[0].text);++ data.tasks = data.tasks.map(task => {+ const updatedTask = updatedTasks.find(t => t.id === task.id);+ return updatedTask || task;});writeJSON(tasksPath, data);