jira-ai 0.4.2 → 0.4.3

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.
@@ -29,6 +29,12 @@ export function loadSettings() {
29
29
  }
30
30
  catch (error) {
31
31
  console.error('Error migrating settings.yaml:', error);
32
+ const defaultSettings = {
33
+ projects: ['all'],
34
+ commands: ['all']
35
+ };
36
+ cachedSettings = defaultSettings;
37
+ return cachedSettings;
32
38
  }
33
39
  }
34
40
  else {
package/dist/lib/utils.js CHANGED
@@ -86,8 +86,6 @@ export function calculateStatusStatistics(created, histories, currentStatus, now
86
86
  }
87
87
  for (const history of statusHistories) {
88
88
  const statusItem = history.items.find((item) => item.field === 'status');
89
- if (!statusItem)
90
- continue;
91
89
  const transitionTime = new Date(history.created).getTime();
92
90
  const durationSeconds = Math.max(0, Math.floor((transitionTime - lastTransitionTime) / 1000));
93
91
  stats[lastStatus] = (stats[lastStatus] || 0) + durationSeconds;
@@ -126,11 +124,11 @@ export function formatDuration(seconds, hoursPerDay = 24) {
126
124
  parts.push(`${h}h`);
127
125
  if (m > 0)
128
126
  parts.push(`${m}m`);
129
- return parts.length > 0 ? parts.join(' ') : '0m';
127
+ return parts.join(' ');
130
128
  }
131
129
  /**
132
- * Parse relative timeframe (e.g., '7d', '30d') into start and end dates
133
- */
130
+ * Parse relative timeframe (e.g., '7d', '30d') into start and end dates
131
+ */
134
132
  export function parseTimeframe(timeframe) {
135
133
  const match = timeframe.match(/^(\d+)d$/);
136
134
  if (!match) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jira-ai",
3
- "version": "0.4.2",
3
+ "version": "0.4.3",
4
4
  "description": "AI friendly Jira CLI to save context",
5
5
  "type": "module",
6
6
  "main": "dist/cli.js",