Release highlights: - Removed CGO dependency for better portability - Fixed critical MCP server bugs (path resolution, init tool) - Improved Claude Code plugin documentation - Enhanced MCP server configuration robustness - All 91 tests passing Major changes since 0.9.2: 1. CGO removal - Pure Go SQLite driver for easier installation 2. MCP init fix - Tool now correctly creates .beads in current directory 3. MCP path resolution - Auto-detects bd executable via PATH 4. Plugin docs - Better quickstart for Claude Code users 5. Config validation - Command names resolved via shutil.which() Breaking changes: None Migration: No action needed 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
34 lines
559 B
Go
34 lines
559 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
const (
|
|
// Version is the current version of bd
|
|
Version = "0.9.3"
|
|
// Build can be set via ldflags at compile time
|
|
Build = "dev"
|
|
)
|
|
|
|
var versionCmd = &cobra.Command{
|
|
Use: "version",
|
|
Short: "Print version information",
|
|
Run: func(cmd *cobra.Command, args []string) {
|
|
if jsonOutput {
|
|
outputJSON(map[string]string{
|
|
"version": Version,
|
|
"build": Build,
|
|
})
|
|
} else {
|
|
fmt.Printf("bd version %s (%s)\n", Version, Build)
|
|
}
|
|
},
|
|
}
|
|
|
|
func init() {
|
|
rootCmd.AddCommand(versionCmd)
|
|
}
|