@cliangdev/flux-plugin 0.2.0-dev.f718bcf → 0.3.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/bin/install.cjs +22 -1
- package/commands/dashboard.md +29 -0
- package/package.json +1 -1
package/bin/install.cjs
CHANGED
|
@@ -21,6 +21,19 @@ if (args[0] === "serve") {
|
|
|
21
21
|
process.exit(1);
|
|
22
22
|
});
|
|
23
23
|
child.on("close", (code) => process.exit(code || 0));
|
|
24
|
+
} else if (args[0] === "dashboard") {
|
|
25
|
+
const dashboardSrc = path.join(__dirname, "..", "src", "dashboard", "server.ts");
|
|
26
|
+
const bunPath = getBunPath();
|
|
27
|
+
if (!bunPath) {
|
|
28
|
+
console.error("Failed to start Flux Dashboard: Bun is required but not found");
|
|
29
|
+
process.exit(1);
|
|
30
|
+
}
|
|
31
|
+
const child = spawn(bunPath, ["run", dashboardSrc], { stdio: "inherit" });
|
|
32
|
+
child.on("error", (err) => {
|
|
33
|
+
console.error("Failed to start Flux Dashboard:", err.message);
|
|
34
|
+
process.exit(1);
|
|
35
|
+
});
|
|
36
|
+
child.on("close", (code) => process.exit(code || 0));
|
|
24
37
|
} else {
|
|
25
38
|
runInstaller();
|
|
26
39
|
}
|
|
@@ -66,7 +79,12 @@ ${cyan} ███████╗██╗ ██╗ ██╗██╗
|
|
|
66
79
|
console.log(banner);
|
|
67
80
|
|
|
68
81
|
if (hasHelp) {
|
|
69
|
-
console.log(` ${yellow}Usage:${reset} bunx @cliangdev/flux-plugin [options]
|
|
82
|
+
console.log(` ${yellow}Usage:${reset} bunx @cliangdev/flux-plugin [command] [options]
|
|
83
|
+
|
|
84
|
+
${yellow}Commands:${reset}
|
|
85
|
+
${cyan}(none)${reset} Run the installer (default)
|
|
86
|
+
${cyan}serve${reset} Start the MCP server
|
|
87
|
+
${cyan}dashboard${reset} Open the Flux Dashboard in browser
|
|
70
88
|
|
|
71
89
|
${yellow}Options:${reset}
|
|
72
90
|
${cyan}-g, --global${reset} Install globally (to ~/.claude)
|
|
@@ -83,6 +101,9 @@ ${cyan} ███████╗██╗ ██╗ ██╗██╗
|
|
|
83
101
|
${dim}# Install locally (current project only)${reset}
|
|
84
102
|
bunx @cliangdev/flux-plugin --local
|
|
85
103
|
|
|
104
|
+
${dim}# Open the dashboard${reset}
|
|
105
|
+
bunx @cliangdev/flux-plugin dashboard
|
|
106
|
+
|
|
86
107
|
${yellow}Note:${reset} This plugin requires Bun. Install from https://bun.sh
|
|
87
108
|
`);
|
|
88
109
|
process.exit(0);
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: flux:dashboard
|
|
3
|
+
description: Open the Flux Dashboard to visualize PRDs, epics, and tasks
|
|
4
|
+
allowed-tools: Bash
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Flux Dashboard
|
|
8
|
+
|
|
9
|
+
Launch the Flux Dashboard web interface to visualize project status.
|
|
10
|
+
|
|
11
|
+
## Instructions
|
|
12
|
+
|
|
13
|
+
Run the dashboard server:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
bunx @cliangdev/flux-plugin dashboard
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
This will:
|
|
20
|
+
1. Start the dashboard server on port 3333 (or next available)
|
|
21
|
+
2. Open the dashboard in the default browser
|
|
22
|
+
|
|
23
|
+
The dashboard shows:
|
|
24
|
+
- All PRDs with their epics and tasks
|
|
25
|
+
- Status indicators and progress
|
|
26
|
+
- Dependency graph visualization
|
|
27
|
+
- Detailed views for each entity
|
|
28
|
+
|
|
29
|
+
Tell the user the dashboard is starting and they can close it with Ctrl+C when done.
|
package/package.json
CHANGED