@vibetasks/core 0.1.0 → 0.2.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/index.d.ts CHANGED
@@ -124,6 +124,13 @@ interface Tag {
124
124
  color: string;
125
125
  created_at?: string;
126
126
  }
127
+ /**
128
+ * Task status - simple 3-state flow for VibeTasks
129
+ * - todo: Not started yet, waiting in backlog
130
+ * - vibing: Currently in progress (actively working on it)
131
+ * - done: Completed
132
+ */
133
+ type TaskStatus = 'todo' | 'vibing' | 'done';
127
134
  interface Task {
128
135
  id: string;
129
136
  user_id?: string;
@@ -146,6 +153,11 @@ interface Task {
146
153
  tags?: Tag[];
147
154
  attachments?: any[];
148
155
  subtasks?: Task[];
156
+ status?: TaskStatus;
157
+ project_tag?: string;
158
+ created_by?: 'ai' | 'human';
159
+ context_notes?: string;
160
+ energy_required?: 'low' | 'medium' | 'high';
149
161
  }
150
162
  /**
151
163
  * TaskOperations class provides a high-level API for task management
@@ -176,4 +188,4 @@ declare class TaskOperations {
176
188
  findOrCreateTag(name: string, color?: string): Promise<Tag>;
177
189
  }
178
190
 
179
- export { AuthManager, ConfigManager, type SupabaseConfig, type Tag, type Task, type TaskFilter, type TaskFlowConfig, TaskOperations, type TaskPriority, createSupabaseClient, createSupabaseClientFromEnv };
191
+ export { AuthManager, ConfigManager, type SupabaseConfig, type Tag, type Task, type TaskFilter, type TaskFlowConfig, TaskOperations, type TaskPriority, type TaskStatus, createSupabaseClient, createSupabaseClientFromEnv };
package/dist/index.js CHANGED
@@ -342,7 +342,13 @@ var TaskOperations = class _TaskOperations {
342
342
  recurrence_end: task.recurrence_end,
343
343
  priority: task.priority || "none",
344
344
  parent_task_id: task.parent_task_id,
345
- position: task.position || 0
345
+ position: task.position || 0,
346
+ // VibeTasks-specific fields
347
+ status: task.status || "todo",
348
+ project_tag: task.project_tag,
349
+ created_by: task.created_by,
350
+ context_notes: task.context_notes,
351
+ energy_required: task.energy_required
346
352
  }).select().single();
347
353
  if (error) throw error;
348
354
  if (task.tags && task.tags.length > 0) {
@@ -367,6 +373,11 @@ var TaskOperations = class _TaskOperations {
367
373
  if (updates.recurrence_end !== void 0) updateData.recurrence_end = updates.recurrence_end;
368
374
  if (updates.priority !== void 0) updateData.priority = updates.priority;
369
375
  if (updates.position !== void 0) updateData.position = updates.position;
376
+ if (updates.status !== void 0) updateData.status = updates.status;
377
+ if (updates.project_tag !== void 0) updateData.project_tag = updates.project_tag;
378
+ if (updates.created_by !== void 0) updateData.created_by = updates.created_by;
379
+ if (updates.context_notes !== void 0) updateData.context_notes = updates.context_notes;
380
+ if (updates.energy_required !== void 0) updateData.energy_required = updates.energy_required;
370
381
  const { data, error } = await this.supabase.from("tasks").update(updateData).eq("id", taskId).select().single();
371
382
  if (error) throw error;
372
383
  if (updates.tags !== void 0) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vibetasks/core",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "Shared core logic for VibeTasks MCP server and CLI - authentication, task operations, and config management",
5
5
  "author": "Vyas",
6
6
  "license": "MIT",