@vibetasks/core 0.5.6 → 0.5.7

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.
Files changed (2) hide show
  1. package/dist/index.js +7 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -448,6 +448,8 @@ var TaskOperations = class _TaskOperations {
448
448
  async createTask(task) {
449
449
  const { data: { user } } = await this.supabase.auth.getUser();
450
450
  if (!user) throw new Error("Not authenticated");
451
+ const { data: maxIdResult } = await this.supabase.from("tasks").select("short_id").eq("user_id", user.id).order("short_id", { ascending: false }).limit(1).single();
452
+ const nextShortId = (maxIdResult?.short_id || 0) + 1;
451
453
  const { data, error } = await this.supabase.from("tasks").insert({
452
454
  user_id: user.id,
453
455
  title: task.title,
@@ -470,7 +472,11 @@ var TaskOperations = class _TaskOperations {
470
472
  project_tag: task.project_tag,
471
473
  created_by: task.created_by,
472
474
  context_notes: task.context_notes,
473
- energy_required: task.energy_required
475
+ energy_required: task.energy_required,
476
+ short_id: nextShortId,
477
+ // Stable short ID
478
+ session_id: task.session_id,
479
+ session_history: task.session_history || []
474
480
  }).select().single();
475
481
  if (error) throw error;
476
482
  if (task.tags && task.tags.length > 0) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vibetasks/core",
3
- "version": "0.5.6",
3
+ "version": "0.5.7",
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",