@rigstate/cli 0.7.36 → 0.7.37
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/index.cjs +7 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -4
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/commands/roadmap.ts +15 -9
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rigstate/cli",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.37",
|
|
4
4
|
"description": "Rigstate CLI - Code audit, sync and supervision tool",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -51,4 +51,4 @@
|
|
|
51
51
|
],
|
|
52
52
|
"author": "Rigstate",
|
|
53
53
|
"license": "MIT"
|
|
54
|
-
}
|
|
54
|
+
}
|
package/src/commands/roadmap.ts
CHANGED
|
@@ -4,6 +4,7 @@ import chalk from 'chalk';
|
|
|
4
4
|
import ora from 'ora';
|
|
5
5
|
import axios from 'axios';
|
|
6
6
|
import { getApiKey, getApiUrl, getProjectId } from '../utils/config.js';
|
|
7
|
+
import { RoadmapChunk, ROADMAP_STATUS } from '@rigstate/shared';
|
|
7
8
|
|
|
8
9
|
export function createRoadmapCommand(): Command {
|
|
9
10
|
return new Command('roadmap')
|
|
@@ -30,7 +31,8 @@ export function createRoadmapCommand(): Command {
|
|
|
30
31
|
throw new Error(response.data.error || 'Failed to fetch roadmap');
|
|
31
32
|
}
|
|
32
33
|
|
|
33
|
-
|
|
34
|
+
|
|
35
|
+
const tasks: RoadmapChunk[] = response.data.data.roadmap || [];
|
|
34
36
|
spinner.stop();
|
|
35
37
|
|
|
36
38
|
if (tasks.length === 0) {
|
|
@@ -41,16 +43,20 @@ export function createRoadmapCommand(): Command {
|
|
|
41
43
|
console.log('\n' + chalk.bold.underline('🛰️ TACTICAL OVERVIEW: PROJECT ROADMAP'));
|
|
42
44
|
console.log(chalk.dim('──────────────────────────────────────────────'));
|
|
43
45
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
'
|
|
47
|
-
'
|
|
48
|
-
'
|
|
46
|
+
// Initialize columns based on shared status definitions (or subset used here)
|
|
47
|
+
const columns: Record<string, RoadmapChunk[]> = {
|
|
48
|
+
'IN_PROGRESS': [],
|
|
49
|
+
'ACTIVE': [],
|
|
50
|
+
'LOCKED': [],
|
|
51
|
+
'PENDING': [],
|
|
52
|
+
'TODO': [],
|
|
53
|
+
'COMPLETED': []
|
|
49
54
|
};
|
|
50
55
|
|
|
51
|
-
tasks.forEach((t
|
|
52
|
-
|
|
53
|
-
|
|
56
|
+
tasks.forEach((t) => {
|
|
57
|
+
const status = t.status as string; // until API returns exact enum
|
|
58
|
+
if (columns[status]) {
|
|
59
|
+
columns[status].push(t);
|
|
54
60
|
}
|
|
55
61
|
});
|
|
56
62
|
|