@vibetasks/cli 0.6.8 → 0.6.10

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.
@@ -677,12 +677,12 @@ var addCommand = new Command2("add").description("Add a new task").argument("<ti
677
677
  })) || [];
678
678
  let sessionId;
679
679
  let sessionHistory = [];
680
- if (createdBy === "ai") {
681
- const sessionManager2 = getSessionManager();
682
- const session = await sessionManager2.getOrCreateSession(projectTag);
683
- sessionId = session.id;
680
+ const sessionManager2 = getSessionManager();
681
+ const currentSession = await sessionManager2.getCurrentSession();
682
+ if (currentSession) {
683
+ sessionId = currentSession.id;
684
684
  sessionHistory = [{
685
- session_id: session.id,
685
+ session_id: currentSession.id,
686
686
  action: "created",
687
687
  at: (/* @__PURE__ */ new Date()).toISOString()
688
688
  }];
@@ -715,8 +715,7 @@ var addCommand = new Command2("add").description("Add a new task").argument("<ti
715
715
  await taskOps.linkTaskTags(task.id, tagIds);
716
716
  }
717
717
  spinner.succeed(chalk3.green("Task created!"));
718
- if (createdBy === "ai") {
719
- const sessionManager2 = getSessionManager();
718
+ if (currentSession) {
720
719
  await sessionManager2.logAction({
721
720
  type: "task_created",
722
721
  description: `Created task: "${title}"`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vibetasks/cli",
3
- "version": "0.6.8",
3
+ "version": "0.6.10",
4
4
  "description": "VibeTasks CLI - Lightning-fast task management from your terminal. Works with Claude Code, Cursor, and all AI coding tools.",
5
5
  "author": "Vyas",
6
6
  "license": "MIT",