@vibetasks/cli 0.6.9 → 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.
- package/dist/bin/vibetasks.js +6 -7
- package/package.json +1 -1
package/dist/bin/vibetasks.js
CHANGED
|
@@ -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
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
sessionId =
|
|
680
|
+
const sessionManager2 = getSessionManager();
|
|
681
|
+
const currentSession = await sessionManager2.getCurrentSession();
|
|
682
|
+
if (currentSession) {
|
|
683
|
+
sessionId = currentSession.id;
|
|
684
684
|
sessionHistory = [{
|
|
685
|
-
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 (
|
|
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