agileflow 2.82.4 → 2.83.0
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/CHANGELOG.md +10 -0
- package/package.json +1 -1
- package/scripts/agileflow-welcome.js +24 -19
- package/scripts/check-update.js +12 -8
- package/tools/cli/commands/start.js +0 -178
- package/tools/cli/tui/Dashboard.js +0 -65
- package/tools/cli/tui/StoryList.js +0 -69
- package/tools/cli/tui/index.js +0 -16
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [2.83.0] - 2026-01-10
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
- Remove beta TUI dashboard - use slash commands instead
|
|
14
|
+
|
|
15
|
+
## [2.82.5] - 2026-01-10
|
|
16
|
+
|
|
17
|
+
### Fixed
|
|
18
|
+
- Fix version detection to read from config.yaml
|
|
19
|
+
|
|
10
20
|
## [2.82.4] - 2026-01-10
|
|
11
21
|
|
|
12
22
|
### Fixed
|
package/package.json
CHANGED
|
@@ -46,29 +46,34 @@ function getProjectInfo(rootDir) {
|
|
|
46
46
|
};
|
|
47
47
|
|
|
48
48
|
// Get AgileFlow version (check multiple sources in priority order)
|
|
49
|
-
// 1.
|
|
50
|
-
// 2.
|
|
51
|
-
// 3.
|
|
49
|
+
// 1. .agileflow/config.yaml (installed user projects - primary source)
|
|
50
|
+
// 2. AgileFlow metadata (installed user projects - legacy)
|
|
51
|
+
// 3. packages/cli/package.json (AgileFlow dev project)
|
|
52
52
|
try {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
53
|
+
// Primary: .agileflow/config.yaml
|
|
54
|
+
const configPath = path.join(rootDir, '.agileflow', 'config.yaml');
|
|
55
|
+
if (fs.existsSync(configPath)) {
|
|
56
|
+
const content = fs.readFileSync(configPath, 'utf8');
|
|
57
|
+
const versionMatch = content.match(/^version:\s*['"]?([0-9.]+)/m);
|
|
58
|
+
if (versionMatch) {
|
|
59
|
+
info.version = versionMatch[1];
|
|
60
|
+
}
|
|
57
61
|
} else {
|
|
58
|
-
//
|
|
59
|
-
const
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
62
|
+
// Fallback: metadata or dev project
|
|
63
|
+
const metadataPath = path.join(rootDir, 'docs/00-meta/agileflow-metadata.json');
|
|
64
|
+
if (fs.existsSync(metadataPath)) {
|
|
65
|
+
const metadata = JSON.parse(fs.readFileSync(metadataPath, 'utf8'));
|
|
66
|
+
info.version = metadata.version || info.version;
|
|
67
|
+
} else {
|
|
68
|
+
// Dev project: check packages/cli/package.json
|
|
69
|
+
const pkg = JSON.parse(
|
|
70
|
+
fs.readFileSync(path.join(rootDir, 'packages/cli/package.json'), 'utf8')
|
|
71
|
+
);
|
|
72
|
+
info.version = pkg.version || info.version;
|
|
73
|
+
}
|
|
63
74
|
}
|
|
64
75
|
} catch (e) {
|
|
65
|
-
//
|
|
66
|
-
try {
|
|
67
|
-
const pkg = JSON.parse(
|
|
68
|
-
fs.readFileSync(path.join(rootDir, '.agileflow/package.json'), 'utf8')
|
|
69
|
-
);
|
|
70
|
-
info.version = pkg.version || info.version;
|
|
71
|
-
} catch (e2) {}
|
|
76
|
+
// Silently fail - version will remain 'unknown'
|
|
72
77
|
}
|
|
73
78
|
|
|
74
79
|
// Get git info
|
package/scripts/check-update.js
CHANGED
|
@@ -39,14 +39,18 @@ function debugLog(message, data = null) {
|
|
|
39
39
|
|
|
40
40
|
// Get installed AgileFlow version
|
|
41
41
|
function getInstalledVersion(rootDir) {
|
|
42
|
-
// First check .agileflow/
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
42
|
+
// First check .agileflow/config.yaml (installed version)
|
|
43
|
+
try {
|
|
44
|
+
const configPath = path.join(rootDir, '.agileflow', 'config.yaml');
|
|
45
|
+
if (fs.existsSync(configPath)) {
|
|
46
|
+
const content = fs.readFileSync(configPath, 'utf8');
|
|
47
|
+
const versionMatch = content.match(/^version:\s*['"]?([0-9.]+)/m);
|
|
48
|
+
if (versionMatch) {
|
|
49
|
+
return versionMatch[1];
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
} catch (err) {
|
|
53
|
+
debugLog('Error reading .agileflow/config.yaml', err.message);
|
|
50
54
|
}
|
|
51
55
|
|
|
52
56
|
// Fallback: check if this is the AgileFlow dev repo
|
|
@@ -1,178 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* AgileFlow TUI Dashboard
|
|
5
|
-
*
|
|
6
|
-
* BETA - Internal use only, not publicly documented
|
|
7
|
-
*
|
|
8
|
-
* Usage: npx agileflow start
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
const path = require('path');
|
|
12
|
-
const fs = require('fs');
|
|
13
|
-
const { c: colors } = require('../../../lib/colors');
|
|
14
|
-
|
|
15
|
-
function showBetaWarning() {
|
|
16
|
-
console.log('');
|
|
17
|
-
console.log(
|
|
18
|
-
`${colors.bgYellow}${colors.bold} BETA ${colors.reset} ${colors.yellow}This feature is in beta and not yet stable${colors.reset}`
|
|
19
|
-
);
|
|
20
|
-
console.log(`${colors.dim} Expect bugs and incomplete features${colors.reset}`);
|
|
21
|
-
console.log('');
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
function showHeader() {
|
|
25
|
-
console.log(`${colors.orange}${colors.bold}`);
|
|
26
|
-
console.log(' ╔═══════════════════════════════════════════╗');
|
|
27
|
-
console.log(' ║ AgileFlow TUI Dashboard ║');
|
|
28
|
-
console.log(' ╚═══════════════════════════════════════════╝');
|
|
29
|
-
console.log(`${colors.reset}`);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
async function loadStatus() {
|
|
33
|
-
const statusPath = path.join(process.cwd(), 'docs', '09-agents', 'status.json');
|
|
34
|
-
|
|
35
|
-
if (!fs.existsSync(statusPath)) {
|
|
36
|
-
return null;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
try {
|
|
40
|
-
const content = fs.readFileSync(statusPath, 'utf8');
|
|
41
|
-
return JSON.parse(content);
|
|
42
|
-
} catch (err) {
|
|
43
|
-
return null;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
function getStatusColor(status) {
|
|
48
|
-
switch (status) {
|
|
49
|
-
case 'completed':
|
|
50
|
-
case 'done':
|
|
51
|
-
return colors.green;
|
|
52
|
-
case 'in_progress':
|
|
53
|
-
case 'in-progress':
|
|
54
|
-
return colors.yellow;
|
|
55
|
-
case 'blocked':
|
|
56
|
-
return colors.red;
|
|
57
|
-
case 'ready':
|
|
58
|
-
return colors.cyan;
|
|
59
|
-
default:
|
|
60
|
-
return colors.dim;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
function formatStory(story) {
|
|
65
|
-
const statusColor = getStatusColor(story.status);
|
|
66
|
-
const id = story.id || story.story_id || 'Unknown';
|
|
67
|
-
const title = story.title || story.summary || 'Untitled';
|
|
68
|
-
const status = (story.status || 'unknown').toUpperCase();
|
|
69
|
-
const owner = story.owner || '-';
|
|
70
|
-
|
|
71
|
-
return ` ${colors.bold}${id}${colors.reset} ${title.substring(0, 40)}${title.length > 40 ? '...' : ''}
|
|
72
|
-
${statusColor}[${status}]${colors.reset} ${colors.dim}Owner: ${owner}${colors.reset}`;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
async function showDashboard() {
|
|
76
|
-
showBetaWarning();
|
|
77
|
-
showHeader();
|
|
78
|
-
|
|
79
|
-
const status = await loadStatus();
|
|
80
|
-
|
|
81
|
-
if (!status) {
|
|
82
|
-
console.log(
|
|
83
|
-
`${colors.dim} No status.json found. Run /agileflow:story to create stories.${colors.reset}`
|
|
84
|
-
);
|
|
85
|
-
console.log('');
|
|
86
|
-
return;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
// Count stories by status
|
|
90
|
-
const stories = Object.values(status).filter(
|
|
91
|
-
s => s && typeof s === 'object' && (s.id || s.story_id)
|
|
92
|
-
);
|
|
93
|
-
const counts = {
|
|
94
|
-
in_progress: stories.filter(s => ['in_progress', 'in-progress'].includes(s.status)).length,
|
|
95
|
-
blocked: stories.filter(s => s.status === 'blocked').length,
|
|
96
|
-
ready: stories.filter(s => s.status === 'ready').length,
|
|
97
|
-
completed: stories.filter(s => ['completed', 'done'].includes(s.status)).length,
|
|
98
|
-
};
|
|
99
|
-
|
|
100
|
-
const total = stories.length;
|
|
101
|
-
const completionPct = total > 0 ? Math.round((counts.completed / total) * 100) : 0;
|
|
102
|
-
|
|
103
|
-
// Summary
|
|
104
|
-
console.log(`${colors.bold} Summary${colors.reset}`);
|
|
105
|
-
console.log(` ────────────────────────────────────────────`);
|
|
106
|
-
console.log(
|
|
107
|
-
` ${colors.yellow}In Progress:${colors.reset} ${counts.in_progress} ${colors.red}Blocked:${colors.reset} ${counts.blocked} ${colors.cyan}Ready:${colors.reset} ${counts.ready} ${colors.green}Done:${colors.reset} ${counts.completed}`
|
|
108
|
-
);
|
|
109
|
-
console.log(` ${colors.dim}Completion: ${completionPct}%${colors.reset}`);
|
|
110
|
-
console.log('');
|
|
111
|
-
|
|
112
|
-
// In Progress Stories
|
|
113
|
-
const inProgressStories = stories.filter(s => ['in_progress', 'in-progress'].includes(s.status));
|
|
114
|
-
if (inProgressStories.length > 0) {
|
|
115
|
-
console.log(`${colors.bold} ${colors.yellow}In Progress${colors.reset}`);
|
|
116
|
-
console.log(` ────────────────────────────────────────────`);
|
|
117
|
-
inProgressStories.forEach(story => {
|
|
118
|
-
console.log(formatStory(story));
|
|
119
|
-
});
|
|
120
|
-
console.log('');
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
// Blocked Stories
|
|
124
|
-
const blockedStories = stories.filter(s => s.status === 'blocked');
|
|
125
|
-
if (blockedStories.length > 0) {
|
|
126
|
-
console.log(`${colors.bold} ${colors.red}Blocked${colors.reset}`);
|
|
127
|
-
console.log(` ────────────────────────────────────────────`);
|
|
128
|
-
blockedStories.forEach(story => {
|
|
129
|
-
console.log(formatStory(story));
|
|
130
|
-
});
|
|
131
|
-
console.log('');
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
// Ready Stories (up to 5)
|
|
135
|
-
const readyStories = stories.filter(s => s.status === 'ready').slice(0, 5);
|
|
136
|
-
if (readyStories.length > 0) {
|
|
137
|
-
console.log(
|
|
138
|
-
`${colors.bold} ${colors.cyan}Ready for Work${colors.reset} ${colors.dim}(showing ${readyStories.length} of ${counts.ready})${colors.reset}`
|
|
139
|
-
);
|
|
140
|
-
console.log(` ────────────────────────────────────────────`);
|
|
141
|
-
readyStories.forEach(story => {
|
|
142
|
-
console.log(formatStory(story));
|
|
143
|
-
});
|
|
144
|
-
console.log('');
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
console.log(`${colors.dim} Use /agileflow:board for interactive kanban view${colors.reset}`);
|
|
148
|
-
console.log(`${colors.dim} Use /agileflow:story:list for full story list${colors.reset}`);
|
|
149
|
-
console.log('');
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
async function main() {
|
|
153
|
-
const args = process.argv.slice(2);
|
|
154
|
-
|
|
155
|
-
// Check for help flag
|
|
156
|
-
if (args.includes('--help') || args.includes('-h')) {
|
|
157
|
-
showBetaWarning();
|
|
158
|
-
console.log(`${colors.bold}AgileFlow TUI Dashboard${colors.reset}`);
|
|
159
|
-
console.log('');
|
|
160
|
-
console.log(`${colors.bold}Usage:${colors.reset}`);
|
|
161
|
-
console.log(' npx agileflow start Show dashboard');
|
|
162
|
-
console.log(' npx agileflow start --help Show this help');
|
|
163
|
-
console.log('');
|
|
164
|
-
console.log(
|
|
165
|
-
`${colors.dim}This is a beta feature. For stable commands, use Claude Code slash commands.${colors.reset}`
|
|
166
|
-
);
|
|
167
|
-
return;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
await showDashboard();
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
main().catch(err => {
|
|
174
|
-
console.error(`${colors.red}Error:${colors.reset}`, err.message);
|
|
175
|
-
process.exit(1);
|
|
176
|
-
});
|
|
177
|
-
|
|
178
|
-
module.exports = { main };
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Dashboard Component
|
|
3
|
-
*
|
|
4
|
-
* BETA - Main TUI dashboard view
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
const path = require('path');
|
|
8
|
-
const fs = require('fs');
|
|
9
|
-
|
|
10
|
-
class Dashboard {
|
|
11
|
-
constructor(options = {}) {
|
|
12
|
-
this.statusPath =
|
|
13
|
-
options.statusPath || path.join(process.cwd(), 'docs', '09-agents', 'status.json');
|
|
14
|
-
this.data = null;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
async load() {
|
|
18
|
-
if (!fs.existsSync(this.statusPath)) {
|
|
19
|
-
return false;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
try {
|
|
23
|
-
const content = fs.readFileSync(this.statusPath, 'utf8');
|
|
24
|
-
this.data = JSON.parse(content);
|
|
25
|
-
return true;
|
|
26
|
-
} catch (err) {
|
|
27
|
-
return false;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
getStories() {
|
|
32
|
-
if (!this.data) return [];
|
|
33
|
-
return Object.values(this.data).filter(s => s && typeof s === 'object' && (s.id || s.story_id));
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
getStats() {
|
|
37
|
-
const stories = this.getStories();
|
|
38
|
-
return {
|
|
39
|
-
total: stories.length,
|
|
40
|
-
in_progress: stories.filter(s => ['in_progress', 'in-progress'].includes(s.status)).length,
|
|
41
|
-
blocked: stories.filter(s => s.status === 'blocked').length,
|
|
42
|
-
ready: stories.filter(s => s.status === 'ready').length,
|
|
43
|
-
completed: stories.filter(s => ['completed', 'done'].includes(s.status)).length,
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
getCompletionPercentage() {
|
|
48
|
-
const stats = this.getStats();
|
|
49
|
-
if (stats.total === 0) return 0;
|
|
50
|
-
return Math.round((stats.completed / stats.total) * 100);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
getStoriesByStatus(status) {
|
|
54
|
-
const stories = this.getStories();
|
|
55
|
-
if (status === 'in_progress') {
|
|
56
|
-
return stories.filter(s => ['in_progress', 'in-progress'].includes(s.status));
|
|
57
|
-
}
|
|
58
|
-
if (status === 'completed') {
|
|
59
|
-
return stories.filter(s => ['completed', 'done'].includes(s.status));
|
|
60
|
-
}
|
|
61
|
-
return stories.filter(s => s.status === status);
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
module.exports = Dashboard;
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* StoryList Component
|
|
3
|
-
*
|
|
4
|
-
* BETA - Story list rendering for TUI
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
class StoryList {
|
|
8
|
-
constructor(stories = []) {
|
|
9
|
-
this.stories = stories;
|
|
10
|
-
this.selectedIndex = 0;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
setStories(stories) {
|
|
14
|
-
this.stories = stories;
|
|
15
|
-
this.selectedIndex = 0;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
selectNext() {
|
|
19
|
-
if (this.selectedIndex < this.stories.length - 1) {
|
|
20
|
-
this.selectedIndex++;
|
|
21
|
-
}
|
|
22
|
-
return this.getSelected();
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
selectPrev() {
|
|
26
|
-
if (this.selectedIndex > 0) {
|
|
27
|
-
this.selectedIndex--;
|
|
28
|
-
}
|
|
29
|
-
return this.getSelected();
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
getSelected() {
|
|
33
|
-
return this.stories[this.selectedIndex] || null;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
filter(predicate) {
|
|
37
|
-
return new StoryList(this.stories.filter(predicate));
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
sortByPriority() {
|
|
41
|
-
const priorityOrder = {
|
|
42
|
-
blocked: 0,
|
|
43
|
-
in_progress: 1,
|
|
44
|
-
'in-progress': 1,
|
|
45
|
-
ready: 2,
|
|
46
|
-
draft: 3,
|
|
47
|
-
completed: 4,
|
|
48
|
-
done: 4,
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
return new StoryList(
|
|
52
|
-
[...this.stories].sort((a, b) => {
|
|
53
|
-
const aPriority = priorityOrder[a.status] ?? 99;
|
|
54
|
-
const bPriority = priorityOrder[b.status] ?? 99;
|
|
55
|
-
return aPriority - bPriority;
|
|
56
|
-
})
|
|
57
|
-
);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
toArray() {
|
|
61
|
-
return [...this.stories];
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
get length() {
|
|
65
|
-
return this.stories.length;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
module.exports = StoryList;
|
package/tools/cli/tui/index.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* AgileFlow TUI Components
|
|
3
|
-
*
|
|
4
|
-
* BETA - Internal use only, not publicly documented
|
|
5
|
-
*
|
|
6
|
-
* This module contains TUI components for the AgileFlow dashboard.
|
|
7
|
-
* Currently in early development.
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
const Dashboard = require('./Dashboard');
|
|
11
|
-
const StoryList = require('./StoryList');
|
|
12
|
-
|
|
13
|
-
module.exports = {
|
|
14
|
-
Dashboard,
|
|
15
|
-
StoryList,
|
|
16
|
-
};
|