@mxyhi/vibe-kanban 0.0.148

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/README.md ADDED
@@ -0,0 +1,159 @@
1
+ # Vibe Kanban
2
+
3
+ > A visual project management tool for developers that integrates with git repositories and coding agents like Claude Code and Amp.
4
+
5
+ ## Quick Start
6
+
7
+ Run vibe kanban instantly without installation:
8
+
9
+ ```bash
10
+ npx @mxyhi/vibe-kanban
11
+ ```
12
+
13
+ This will launch the application locally and open it in your browser automatically.
14
+
15
+ ## What is Vibe Kanban?
16
+
17
+ Vibe Kanban is a modern project management tool designed specifically for developers. It helps you organize your coding projects with kanban-style task management while providing powerful integrations with git repositories and AI coding agents.
18
+
19
+ ### ✨ Key Features
20
+
21
+ **🗂️ Project Management**
22
+ - Add git repositories as projects (existing or create new ones)
23
+ - Automatic git integration and repository validation
24
+ - Project search functionality across all files
25
+ - Custom setup and development scripts per project
26
+
27
+ **📋 Task Management**
28
+ - Create and manage tasks with kanban-style boards
29
+ - Task status tracking (Todo, In Progress, Done)
30
+ - Rich task descriptions and notes
31
+ - Task execution with multiple AI agents
32
+
33
+ **🤖 AI Agent Integration**
34
+ - **Claude**: Advanced AI coding assistant
35
+ - **Amp**: Powerful development agent
36
+ - **Echo**: Simple testing/debugging agent
37
+ - Create tasks and immediately start agent execution
38
+ - Follow-up task execution for iterative development
39
+
40
+ **⚡ Development Workflow**
41
+ - Create isolated git worktrees for each task attempt
42
+ - View diffs of changes made by agents
43
+ - Merge successful changes back to main branch
44
+ - Rebase task branches to stay up-to-date
45
+ - Manual file editing and deletion
46
+ - Integrated development server support
47
+
48
+ **🎛️ Developer Tools**
49
+ - Browse and validate git repositories from filesystem
50
+ - Open task worktrees in your preferred editor (VS Code, Cursor, Windsurf, IntelliJ, Zed)
51
+ - Real-time execution monitoring and process control
52
+ - Stop running processes individually or all at once
53
+ - Sound notifications for task completion
54
+
55
+ ## How It Works
56
+
57
+ 1. **Add Projects**: Import existing git repositories or create new ones
58
+ 2. **Create Tasks**: Define what needs to be built or fixed
59
+ 3. **Execute with AI**: Let coding agents work on your tasks in isolated environments
60
+ 4. **Review Changes**: See exactly what was modified using git diffs
61
+ 5. **Merge Results**: Incorporate successful changes into your main codebase
62
+
63
+ ## Core Functionality
64
+
65
+ Vibe Kanban provides a complete project management experience with these key capabilities:
66
+
67
+ **Project Repository Management**
68
+ - Full CRUD operations for managing coding projects
69
+ - Automatic git repository detection and validation
70
+ - Initialize new repositories or import existing ones
71
+ - Project-wide file search functionality
72
+
73
+ **Task Lifecycle Management**
74
+ - Create, update, and delete tasks with rich descriptions
75
+ - Track task progress through customizable status workflows
76
+ - One-click task creation with immediate AI agent execution
77
+ - Task attempt tracking with detailed execution history
78
+
79
+ **AI Agent Execution Environment**
80
+ - Isolated git worktrees for safe code experimentation
81
+ - Real-time execution monitoring and activity logging
82
+ - Process management with ability to stop individual or all processes
83
+ - Support for follow-up executions to iterate on solutions
84
+
85
+ **Code Change Management**
86
+ - View detailed diffs of all changes made during task execution
87
+ - Branch status monitoring to track divergence from main
88
+ - One-click merging of successful changes back to main branch
89
+ - Automatic rebasing to keep task branches up-to-date
90
+ - Manual file deletion and cleanup capabilities
91
+
92
+ **Development Integration**
93
+ - Open task worktrees directly in your preferred code editor
94
+ - Start and manage development servers for testing changes
95
+ - Browse local filesystem to add new projects
96
+ - Health monitoring for service availability
97
+
98
+ ## Configuration
99
+
100
+ Vibe Kanban supports customization through its configuration system:
101
+
102
+ - **Editor Integration**: Choose your preferred code editor
103
+ - **Sound Notifications**: Customize completion sounds
104
+ - **Project Defaults**: Set default setup and development scripts
105
+
106
+ ## Technical Architecture
107
+
108
+ - **Backend**: Rust with Axum web framework
109
+ - **Frontend**: React with TypeScript
110
+ - **Database**: SQLite for local data storage
111
+ - **Git Integration**: Native git operations for repository management
112
+ - **Process Management**: Tokio-based async execution monitoring
113
+
114
+ ## Requirements
115
+
116
+ - Node.js (for npx execution)
117
+ - Git (for repository operations)
118
+ - Your preferred code editor (optional, for opening task worktrees)
119
+
120
+ ## Supported Platforms
121
+
122
+ - Linux x64
123
+ - Windows x64
124
+ - macOS x64 (Intel)
125
+ - macOS ARM64 (Apple Silicon)
126
+
127
+ ## Use Cases
128
+
129
+ **🔧 Bug Fixes**
130
+ - Create a task describing the bug
131
+ - Let an AI agent analyze and fix the issue
132
+ - Review the proposed changes
133
+ - Merge if satisfied, or provide follow-up instructions
134
+
135
+ **✨ Feature Development**
136
+ - Break down features into manageable tasks
137
+ - Use agents for initial implementation
138
+ - Iterate with follow-up executions
139
+ - Test using integrated development servers
140
+
141
+ **🚀 Project Setup**
142
+ - Bootstrap new projects with AI assistance
143
+ - Set up development environments
144
+ - Configure build and deployment scripts
145
+
146
+ **📚 Code Documentation**
147
+ - Generate documentation for existing code
148
+ - Create README files and API documentation
149
+ - Maintain up-to-date project information
150
+
151
+ ---
152
+
153
+ **Ready to supercharge your development workflow?**
154
+
155
+ ```bash
156
+ npx @mxyhi/vibe-kanban
157
+ ```
158
+
159
+ *Start managing your projects with the power of AI coding agents today!*
package/bin/cli.js ADDED
@@ -0,0 +1,218 @@
1
+ #!/usr/bin/env node
2
+
3
+ const { execSync, spawn } = require("child_process");
4
+ const AdmZip = require("adm-zip");
5
+ const path = require("path");
6
+ const fs = require("fs");
7
+ const {
8
+ ensureBinary,
9
+ BINARY_TAG,
10
+ CACHE_DIR,
11
+ LOCAL_DEV_MODE,
12
+ LOCAL_DIST_DIR,
13
+ RELEASE_REPO,
14
+ getLatestVersion
15
+ } = require("./download");
16
+
17
+ const CLI_PACKAGE = require("../package.json");
18
+ const CLI_VERSION = CLI_PACKAGE.version;
19
+ const CLI_NAME = CLI_PACKAGE.name;
20
+
21
+ // Resolve effective arch for our published 64-bit binaries only.
22
+ // Any ARM → arm64; anything else → x64. On macOS, handle Rosetta.
23
+ function getEffectiveArch() {
24
+ const platform = process.platform;
25
+ const nodeArch = process.arch;
26
+
27
+ if (platform === "darwin") {
28
+ // If Node itself is arm64, we're natively on Apple silicon
29
+ if (nodeArch === "arm64") return "arm64";
30
+
31
+ // Otherwise check for Rosetta translation
32
+ try {
33
+ const translated = execSync("sysctl -in sysctl.proc_translated", {
34
+ encoding: "utf8",
35
+ }).trim();
36
+ if (translated === "1") return "arm64";
37
+ } catch {
38
+ // sysctl key not present → assume true Intel
39
+ }
40
+ return "x64";
41
+ }
42
+
43
+ // Non-macOS: coerce to broad families we support
44
+ if (/arm/i.test(nodeArch)) return "arm64";
45
+
46
+ // On Windows with 32-bit Node (ia32), detect OS arch via env
47
+ if (platform === "win32") {
48
+ const pa = process.env.PROCESSOR_ARCHITECTURE || "";
49
+ const paw = process.env.PROCESSOR_ARCHITEW6432 || "";
50
+ if (/arm/i.test(pa) || /arm/i.test(paw)) return "arm64";
51
+ }
52
+
53
+ return "x64";
54
+ }
55
+
56
+ const platform = process.platform;
57
+ const arch = getEffectiveArch();
58
+
59
+ // Map to our build target names
60
+ function getPlatformDir() {
61
+ if (platform === "linux" && arch === "x64") return "linux-x64";
62
+ if (platform === "linux" && arch === "arm64") return "linux-arm64";
63
+ if (platform === "win32" && arch === "x64") return "windows-x64";
64
+ if (platform === "win32" && arch === "arm64") return "windows-arm64";
65
+ if (platform === "darwin" && arch === "x64") return "macos-x64";
66
+ if (platform === "darwin" && arch === "arm64") return "macos-arm64";
67
+
68
+ console.error(`Unsupported platform: ${platform}-${arch}`);
69
+ console.error("Supported platforms:");
70
+ console.error(" - Linux x64");
71
+ console.error(" - Linux ARM64");
72
+ console.error(" - Windows x64");
73
+ console.error(" - Windows ARM64");
74
+ console.error(" - macOS x64 (Intel)");
75
+ console.error(" - macOS ARM64 (Apple Silicon)");
76
+ process.exit(1);
77
+ }
78
+
79
+ function getBinaryName(base) {
80
+ return platform === "win32" ? `${base}.exe` : base;
81
+ }
82
+
83
+ const platformDir = getPlatformDir();
84
+ // In local dev mode, extract directly to dist directory; otherwise use global cache
85
+ const versionCacheDir = LOCAL_DEV_MODE
86
+ ? path.join(LOCAL_DIST_DIR, platformDir)
87
+ : path.join(CACHE_DIR, BINARY_TAG, platformDir);
88
+
89
+ function showProgress(downloaded, total) {
90
+ const percent = total ? Math.round((downloaded / total) * 100) : 0;
91
+ const mb = (downloaded / (1024 * 1024)).toFixed(1);
92
+ const totalMb = total ? (total / (1024 * 1024)).toFixed(1) : "?";
93
+ process.stderr.write(`\r Downloading: ${mb}MB / ${totalMb}MB (${percent}%)`);
94
+ }
95
+
96
+ async function extractAndRun(baseName, launch) {
97
+ const binName = getBinaryName(baseName);
98
+ const binPath = path.join(versionCacheDir, binName);
99
+ const zipPath = path.join(versionCacheDir, `${baseName}.zip`);
100
+
101
+ // Clean old binary if exists
102
+ try {
103
+ if (fs.existsSync(binPath)) {
104
+ fs.unlinkSync(binPath);
105
+ }
106
+ } catch (err) {
107
+ if (process.env.VIBE_KANBAN_DEBUG) {
108
+ console.warn(`Warning: Could not delete existing binary: ${err.message}`);
109
+ }
110
+ }
111
+
112
+ // Download if not cached
113
+ if (!fs.existsSync(zipPath)) {
114
+ console.error(`Downloading ${baseName}...`);
115
+ try {
116
+ await ensureBinary(platformDir, baseName, showProgress);
117
+ console.error(""); // newline after progress
118
+ } catch (err) {
119
+ console.error(`\nDownload failed: ${err.message}`);
120
+ process.exit(1);
121
+ }
122
+ }
123
+
124
+ // Extract
125
+ if (!fs.existsSync(binPath)) {
126
+ try {
127
+ const zip = new AdmZip(zipPath);
128
+ zip.extractAllTo(versionCacheDir, true);
129
+ } catch (err) {
130
+ console.error("Extraction failed:", err.message);
131
+ try {
132
+ fs.unlinkSync(zipPath);
133
+ } catch {}
134
+ process.exit(1);
135
+ }
136
+ }
137
+
138
+ if (!fs.existsSync(binPath)) {
139
+ console.error(`Extracted binary not found at: ${binPath}`);
140
+ console.error("This usually indicates a corrupt download. Please try again.");
141
+ process.exit(1);
142
+ }
143
+
144
+ // Set permissions (non-Windows)
145
+ if (platform !== "win32") {
146
+ try {
147
+ fs.chmodSync(binPath, 0o755);
148
+ } catch {}
149
+ }
150
+
151
+ return launch(binPath);
152
+ }
153
+
154
+ async function main() {
155
+ fs.mkdirSync(versionCacheDir, { recursive: true });
156
+
157
+ const args = process.argv.slice(2);
158
+ const isMcpMode = args.includes("--mcp");
159
+ const isReviewMode = args[0] === "review";
160
+
161
+ // Non-blocking update check (skip in MCP mode, local dev mode, and when repo not configured)
162
+ const hasValidReleaseRepo = !RELEASE_REPO.startsWith("__");
163
+ if (!isMcpMode && !LOCAL_DEV_MODE && hasValidReleaseRepo) {
164
+ getLatestVersion()
165
+ .then((latest) => {
166
+ if (latest && latest !== CLI_VERSION) {
167
+ setTimeout(() => {
168
+ console.log(`\nUpdate available: ${CLI_VERSION} -> ${latest}`);
169
+ console.log(`Run: npx ${CLI_NAME}@latest`);
170
+ }, 2000);
171
+ }
172
+ })
173
+ .catch(() => {});
174
+ }
175
+
176
+ if (isMcpMode) {
177
+ await extractAndRun("vibe-kanban-mcp", (bin) => {
178
+ const proc = spawn(bin, [], { stdio: "inherit" });
179
+ proc.on("exit", (c) => process.exit(c || 0));
180
+ proc.on("error", (e) => {
181
+ console.error("MCP server error:", e.message);
182
+ process.exit(1);
183
+ });
184
+ process.on("SIGINT", () => {
185
+ proc.kill("SIGINT");
186
+ });
187
+ process.on("SIGTERM", () => proc.kill("SIGTERM"));
188
+ });
189
+ } else if (isReviewMode) {
190
+ await extractAndRun("vibe-kanban-review", (bin) => {
191
+ const reviewArgs = args.slice(1);
192
+ const proc = spawn(bin, reviewArgs, { stdio: "inherit" });
193
+ proc.on("exit", (c) => process.exit(c || 0));
194
+ proc.on("error", (e) => {
195
+ console.error("Review CLI error:", e.message);
196
+ process.exit(1);
197
+ });
198
+ });
199
+ } else {
200
+ const modeLabel = LOCAL_DEV_MODE ? " (local dev)" : "";
201
+ console.log(`Starting vibe-kanban v${CLI_VERSION}${modeLabel}...`);
202
+ await extractAndRun("vibe-kanban", (bin) => {
203
+ if (platform === "win32") {
204
+ execSync(`"${bin}"`, { stdio: "inherit" });
205
+ } else {
206
+ execSync(`"${bin}"`, { stdio: "inherit" });
207
+ }
208
+ });
209
+ }
210
+ }
211
+
212
+ main().catch((err) => {
213
+ console.error("Fatal error:", err.message);
214
+ if (process.env.VIBE_KANBAN_DEBUG) {
215
+ console.error(err.stack);
216
+ }
217
+ process.exit(1);
218
+ });
@@ -0,0 +1,154 @@
1
+ const https = require("https");
2
+ const fs = require("fs");
3
+ const path = require("path");
4
+ const crypto = require("crypto");
5
+
6
+ // Replaced during npm publish by workflow
7
+ const RELEASE_REPO = "__RELEASE_REPO__"; // e.g., mxyhi/vibe-kanban
8
+ const BINARY_TAG = "__BINARY_TAG__"; // e.g., v0.0.135
9
+ const RELEASE_BASE_URL = `https://github.com/${RELEASE_REPO}/releases/download`;
10
+ const CACHE_DIR = path.join(require("os").homedir(), ".vibe-kanban", "bin");
11
+
12
+ // Local development mode: use binaries from npx-cli/dist/ instead of GitHub Releases
13
+ // Only activate if dist/ exists (i.e., running from source after local-build.sh)
14
+ const LOCAL_DIST_DIR = path.join(__dirname, "..", "dist");
15
+ const LOCAL_DEV_MODE = fs.existsSync(LOCAL_DIST_DIR) || process.env.VIBE_KANBAN_LOCAL === "1";
16
+
17
+ async function fetchJson(url, options = {}) {
18
+ return new Promise((resolve, reject) => {
19
+ https.get(url, options, (res) => {
20
+ if (res.statusCode === 301 || res.statusCode === 302) {
21
+ return fetchJson(res.headers.location, options).then(resolve).catch(reject);
22
+ }
23
+ if (res.statusCode !== 200) {
24
+ return reject(new Error(`HTTP ${res.statusCode} fetching ${url}`));
25
+ }
26
+ let data = "";
27
+ res.on("data", (chunk) => (data += chunk));
28
+ res.on("end", () => {
29
+ try {
30
+ resolve(JSON.parse(data));
31
+ } catch (e) {
32
+ reject(new Error(`Failed to parse JSON from ${url}`));
33
+ }
34
+ });
35
+ }).on("error", reject);
36
+ });
37
+ }
38
+
39
+ async function downloadFile(url, destPath, expectedSha256, onProgress) {
40
+ const tempPath = destPath + ".tmp";
41
+ return new Promise((resolve, reject) => {
42
+ const file = fs.createWriteStream(tempPath);
43
+ const hash = crypto.createHash("sha256");
44
+
45
+ const cleanup = () => {
46
+ try {
47
+ fs.unlinkSync(tempPath);
48
+ } catch {}
49
+ };
50
+
51
+ https.get(url, (res) => {
52
+ if (res.statusCode === 301 || res.statusCode === 302) {
53
+ file.close();
54
+ cleanup();
55
+ return downloadFile(res.headers.location, destPath, expectedSha256, onProgress)
56
+ .then(resolve)
57
+ .catch(reject);
58
+ }
59
+
60
+ if (res.statusCode !== 200) {
61
+ file.close();
62
+ cleanup();
63
+ return reject(new Error(`HTTP ${res.statusCode} downloading ${url}`));
64
+ }
65
+
66
+ const totalSize = parseInt(res.headers["content-length"], 10);
67
+ let downloadedSize = 0;
68
+
69
+ res.on("data", (chunk) => {
70
+ downloadedSize += chunk.length;
71
+ hash.update(chunk);
72
+ if (onProgress) onProgress(downloadedSize, totalSize);
73
+ });
74
+ res.pipe(file);
75
+
76
+ file.on("finish", () => {
77
+ file.close();
78
+ const actualSha256 = hash.digest("hex");
79
+ if (expectedSha256 && actualSha256 !== expectedSha256) {
80
+ cleanup();
81
+ reject(new Error(`Checksum mismatch: expected ${expectedSha256}, got ${actualSha256}`));
82
+ } else {
83
+ try {
84
+ fs.renameSync(tempPath, destPath);
85
+ resolve(destPath);
86
+ } catch (err) {
87
+ cleanup();
88
+ reject(err);
89
+ }
90
+ }
91
+ });
92
+ }).on("error", (err) => {
93
+ file.close();
94
+ cleanup();
95
+ reject(err);
96
+ });
97
+ });
98
+ }
99
+
100
+ function getAssetName(platform, binaryName) {
101
+ return `${binaryName}-${platform}.zip`;
102
+ }
103
+
104
+ async function ensureBinary(platform, binaryName, onProgress) {
105
+ // In local dev mode, use binaries directly from npx-cli/dist/
106
+ if (LOCAL_DEV_MODE) {
107
+ const localZipPath = path.join(LOCAL_DIST_DIR, getAssetName(platform, binaryName));
108
+ if (fs.existsSync(localZipPath)) {
109
+ return localZipPath;
110
+ }
111
+ throw new Error(
112
+ `Local binary not found: ${localZipPath}\n` +
113
+ `Run ./local-build.sh first to build the binaries.`
114
+ );
115
+ }
116
+
117
+ const cacheDir = path.join(CACHE_DIR, BINARY_TAG, platform);
118
+ const zipPath = path.join(cacheDir, `${binaryName}.zip`);
119
+
120
+ if (fs.existsSync(zipPath)) return zipPath;
121
+
122
+ fs.mkdirSync(cacheDir, { recursive: true });
123
+
124
+ const manifest = await fetchJson(`${RELEASE_BASE_URL}/${BINARY_TAG}/manifest.json`);
125
+ const binaryInfo = manifest.platforms?.[platform]?.[binaryName];
126
+
127
+ if (!binaryInfo) {
128
+ throw new Error(`Binary ${binaryName} not available for ${platform}`);
129
+ }
130
+
131
+ const assetName = getAssetName(platform, binaryName);
132
+ const url = `${RELEASE_BASE_URL}/${BINARY_TAG}/${assetName}`;
133
+ await downloadFile(url, zipPath, binaryInfo.sha256, onProgress);
134
+
135
+ return zipPath;
136
+ }
137
+
138
+ async function getLatestVersion() {
139
+ const headers = { "User-Agent": "vibe-kanban-cli" };
140
+ const apiUrl = `https://api.github.com/repos/${RELEASE_REPO}/releases/latest`;
141
+ const release = await fetchJson(apiUrl, { headers });
142
+ const tag = release.tag_name || "";
143
+ return tag.startsWith("v") ? tag.slice(1) : tag;
144
+ }
145
+
146
+ module.exports = {
147
+ RELEASE_REPO,
148
+ BINARY_TAG,
149
+ CACHE_DIR,
150
+ LOCAL_DEV_MODE,
151
+ LOCAL_DIST_DIR,
152
+ ensureBinary,
153
+ getLatestVersion
154
+ };
package/package.json ADDED
@@ -0,0 +1,20 @@
1
+ {
2
+ "name": "@mxyhi/vibe-kanban",
3
+ "private": false,
4
+ "version": "0.0.148",
5
+ "main": "index.js",
6
+ "bin": {
7
+ "vibe-kanban": "bin/cli.js"
8
+ },
9
+ "keywords": [],
10
+ "author": "bloop",
11
+ "license": "",
12
+ "description": "NPX wrapper around vibe-kanban and vibe-kanban-mcp",
13
+ "dependencies": {
14
+ "adm-zip": "^0.5.16"
15
+ },
16
+ "files": [
17
+ "bin",
18
+ "dist"
19
+ ]
20
+ }