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
*.out
/bd-test
# Go workspace file
go.work

View File

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

View File

@@ -9,7 +9,7 @@ import (
"time"
"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/rpc"
"github.com/steveyegge/beads/internal/storage/sqlite"

View File

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

View File

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

View File

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

View File

@@ -14,7 +14,7 @@ import (
"github.com/fatih/color"
"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/daemon"
_ "github.com/ncruces/go-sqlite3/driver"

View File

@@ -10,7 +10,7 @@ import (
"github.com/fatih/color"
"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/configfile"
"github.com/steveyegge/beads/internal/storage/sqlite"

View File

@@ -9,7 +9,7 @@ import (
"time"
"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/rpc"
"github.com/steveyegge/beads/internal/storage"

View File

@@ -11,7 +11,7 @@ import (
"github.com/fatih/color"
"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/storage/sqlite"
"github.com/steveyegge/beads/internal/types"

View File

@@ -15,7 +15,7 @@ import (
"github.com/fatih/color"
"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/types"
)

View File

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

View File

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

View File

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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