Export Transaction type for atomic multi-operation support

Add Transaction type alias to both internal/beads and public beads packages.
This allows extensions like VC to use RunInTransaction() with the proper
Transaction interface type for atomic issue creation.

bd-m73k

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Steve Yegge
2025-11-24 22:55:36 -08:00
parent 13b827d983
commit ef93b31a74
2 changed files with 8 additions and 0 deletions

View File

@@ -17,6 +17,10 @@ import (
// Storage is the interface for beads storage operations
type Storage = beads.Storage
// Transaction provides atomic multi-operation support within a database transaction.
// Use Storage.RunInTransaction() to obtain a Transaction instance.
type Transaction = beads.Transaction
// NewSQLiteStorage creates a new SQLite storage instance at the given path
func NewSQLiteStorage(ctx context.Context, dbPath string) (Storage, error) {
return beads.NewSQLiteStorage(ctx, dbPath)