Reorganize project structure: move Go files to internal/beads, docs to docs/

Amp-Thread-ID: https://ampcode.com/threads/T-7a71671d-dd5c-4c7c-b557-fa427fceb04f
Co-authored-by: Amp <amp@ampcode.com>
This commit is contained in:
Steve Yegge
2025-11-05 21:04:00 -08:00
parent a1c3494c43
commit 584c266684
39 changed files with 19 additions and 18 deletions

1
.gitignore vendored
View File

@@ -9,6 +9,7 @@
# Test binaries # Test binaries
*.test *.test
*.out *.out
/bd-test
# Go workspace file # Go workspace file
go.work go.work

View File

@@ -14,7 +14,7 @@ import (
"time" "time"
"github.com/fatih/color" "github.com/fatih/color"
"github.com/steveyegge/beads" "github.com/steveyegge/beads/internal/beads"
"github.com/steveyegge/beads/internal/types" "github.com/steveyegge/beads/internal/types"
"golang.org/x/mod/semver" "golang.org/x/mod/semver"
) )

View File

@@ -9,7 +9,7 @@ import (
"time" "time"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/steveyegge/beads" "github.com/steveyegge/beads/internal/beads"
"github.com/steveyegge/beads/internal/daemon" "github.com/steveyegge/beads/internal/daemon"
"github.com/steveyegge/beads/internal/rpc" "github.com/steveyegge/beads/internal/rpc"
"github.com/steveyegge/beads/internal/storage/sqlite" "github.com/steveyegge/beads/internal/storage/sqlite"

View File

@@ -6,7 +6,7 @@ import (
"path/filepath" "path/filepath"
"strconv" "strconv"
"github.com/steveyegge/beads" "github.com/steveyegge/beads/internal/beads"
) )
// getGlobalBeadsDir returns the global beads directory (~/.beads) // getGlobalBeadsDir returns the global beads directory (~/.beads)

View File

@@ -10,7 +10,7 @@ import (
"sort" "sort"
"time" "time"
"github.com/steveyegge/beads" "github.com/steveyegge/beads/internal/beads"
"github.com/steveyegge/beads/internal/storage" "github.com/steveyegge/beads/internal/storage"
"github.com/steveyegge/beads/internal/storage/sqlite" "github.com/steveyegge/beads/internal/storage/sqlite"
"github.com/steveyegge/beads/internal/types" "github.com/steveyegge/beads/internal/types"

View File

@@ -4,7 +4,7 @@ import (
"fmt" "fmt"
"os" "os"
"github.com/steveyegge/beads" "github.com/steveyegge/beads/internal/beads"
"github.com/steveyegge/beads/internal/storage/sqlite" "github.com/steveyegge/beads/internal/storage/sqlite"
) )

View File

@@ -14,7 +14,7 @@ import (
"github.com/fatih/color" "github.com/fatih/color"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/steveyegge/beads" "github.com/steveyegge/beads/internal/beads"
"github.com/steveyegge/beads/internal/configfile" "github.com/steveyegge/beads/internal/configfile"
"github.com/steveyegge/beads/internal/daemon" "github.com/steveyegge/beads/internal/daemon"
_ "github.com/ncruces/go-sqlite3/driver" _ "github.com/ncruces/go-sqlite3/driver"

View File

@@ -10,7 +10,7 @@ import (
"github.com/fatih/color" "github.com/fatih/color"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/steveyegge/beads" "github.com/steveyegge/beads/internal/beads"
"github.com/steveyegge/beads/internal/config" "github.com/steveyegge/beads/internal/config"
"github.com/steveyegge/beads/internal/configfile" "github.com/steveyegge/beads/internal/configfile"
"github.com/steveyegge/beads/internal/storage/sqlite" "github.com/steveyegge/beads/internal/storage/sqlite"

View File

@@ -9,7 +9,7 @@ import (
"time" "time"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/steveyegge/beads" "github.com/steveyegge/beads/internal/beads"
"github.com/steveyegge/beads/internal/config" "github.com/steveyegge/beads/internal/config"
"github.com/steveyegge/beads/internal/rpc" "github.com/steveyegge/beads/internal/rpc"
"github.com/steveyegge/beads/internal/storage" "github.com/steveyegge/beads/internal/storage"

View File

@@ -11,7 +11,7 @@ import (
"github.com/fatih/color" "github.com/fatih/color"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/steveyegge/beads" "github.com/steveyegge/beads/internal/beads"
"github.com/steveyegge/beads/internal/configfile" "github.com/steveyegge/beads/internal/configfile"
"github.com/steveyegge/beads/internal/storage/sqlite" "github.com/steveyegge/beads/internal/storage/sqlite"
"github.com/steveyegge/beads/internal/types" "github.com/steveyegge/beads/internal/types"

View File

@@ -15,7 +15,7 @@ import (
"github.com/fatih/color" "github.com/fatih/color"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/steveyegge/beads" "github.com/steveyegge/beads/internal/beads"
"github.com/steveyegge/beads/internal/storage/sqlite" "github.com/steveyegge/beads/internal/storage/sqlite"
"github.com/steveyegge/beads/internal/types" "github.com/steveyegge/beads/internal/types"
) )

View File

@@ -5,7 +5,7 @@ import (
"os" "os"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/steveyegge/beads" "github.com/steveyegge/beads/internal/beads"
"github.com/steveyegge/beads/internal/rpc" "github.com/steveyegge/beads/internal/rpc"
) )

View File

@@ -7,7 +7,7 @@ import (
"path/filepath" "path/filepath"
"strings" "strings"
"github.com/steveyegge/beads" "github.com/steveyegge/beads/internal/beads"
) )
// isGitWorktree detects if the current directory is in a git worktree // isGitWorktree detects if the current directory is in a git worktree

View File

View File

@@ -10,7 +10,7 @@ import (
"log" "log"
"time" "time"
"github.com/steveyegge/beads" "github.com/steveyegge/beads/internal/beads"
) )
//go:embed schema.sql //go:embed schema.sql

View File

@@ -10,7 +10,7 @@ import (
"log" "log"
"time" "time"
"github.com/steveyegge/beads" "github.com/steveyegge/beads/internal/beads"
) )
func main() { func main() {

View File

@@ -6,7 +6,7 @@ import (
"path/filepath" "path/filepath"
"testing" "testing"
"github.com/steveyegge/beads" "github.com/steveyegge/beads/internal/beads"
) )
// TestExampleCompiles ensures the example code compiles and basic API works // TestExampleCompiles ensures the example code compiles and basic API works

View File

@@ -11,7 +11,7 @@ import (
"testing" "testing"
"time" "time"
"github.com/steveyegge/beads" "github.com/steveyegge/beads/internal/beads"
) )
// integrationTestHelper provides common test setup and assertion methods // integrationTestHelper provides common test setup and assertion methods

View File

@@ -10,7 +10,7 @@ import (
"strings" "strings"
"time" "time"
"github.com/steveyegge/beads" "github.com/steveyegge/beads/internal/beads"
"github.com/steveyegge/beads/internal/daemon" "github.com/steveyegge/beads/internal/daemon"
"github.com/steveyegge/beads/internal/rpc" "github.com/steveyegge/beads/internal/rpc"
"github.com/steveyegge/beads/internal/storage" "github.com/steveyegge/beads/internal/storage"

View File

@@ -4,7 +4,7 @@ import (
"context" "context"
"fmt" "fmt"
"github.com/steveyegge/beads" "github.com/steveyegge/beads/internal/beads"
) )
func (d *Daemon) validateDatabaseFingerprint() error { func (d *Daemon) validateDatabaseFingerprint() error {