knowns 0.1.4 → 0.1.6

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.
@@ -25868,10 +25868,10 @@ function serializeTaskMarkdown(task) {
25868
25868
  title: task.title,
25869
25869
  status: task.status,
25870
25870
  priority: task.priority,
25871
- labels: task.labels,
25871
+ labels: task.labels || [],
25872
25872
  createdAt: task.createdAt.toISOString(),
25873
25873
  updatedAt: task.updatedAt.toISOString(),
25874
- timeSpent: task.timeSpent
25874
+ timeSpent: task.timeSpent ?? 0
25875
25875
  };
25876
25876
  if (task.assignee)
25877
25877
  frontmatter.assignee = task.assignee;
@@ -26122,6 +26122,11 @@ class FileStore {
26122
26122
  const task = {
26123
26123
  ...taskData,
26124
26124
  id,
26125
+ labels: taskData.labels || [],
26126
+ subtasks: taskData.subtasks || [],
26127
+ acceptanceCriteria: taskData.acceptanceCriteria || [],
26128
+ timeSpent: taskData.timeSpent ?? 0,
26129
+ timeEntries: taskData.timeEntries || [],
26125
26130
  createdAt: now,
26126
26131
  updatedAt: now
26127
26132
  };