Versions in this module Expand all Collapse all v0 v0.2.1 Feb 2, 2026 Changes in this version + type FileInfo struct + IsDir bool + ModifiedAt time.Time + Name string + Path string + Size int64 + type FileStore struct + func NewFileStore(basePath string) (*FileStore, error) + func (s *FileStore) Create(ctx context.Context, codebase *types.Codebase) error + func (s *FileStore) Delete(ctx context.Context, id string) error + func (s *FileStore) Exists(ctx context.Context, id string) (bool, error) + func (s *FileStore) Get(ctx context.Context, id string) (*types.Codebase, error) + func (s *FileStore) List(ctx context.Context, ownerID string, limit, offset int) ([]*types.Codebase, error) + func (s *FileStore) Update(ctx context.Context, codebase *types.Codebase) error + type Manager struct + func NewManager(basePath string) (*Manager, error) + func NewManagerWithStore(basePath string, store Store) (*Manager, error) + func (m *Manager) CreateCodebase(ctx context.Context, req *types.CreateCodebaseRequest) (*types.Codebase, error) + func (m *Manager) DeleteCodebase(ctx context.Context, id string) error + func (m *Manager) DeleteFile(ctx context.Context, codebaseID, filePath string) error + func (m *Manager) GetCodebase(ctx context.Context, id string) (*types.Codebase, error) + func (m *Manager) GetCodebasePath(ctx context.Context, id string) (string, error) + func (m *Manager) ListCodebases(ctx context.Context, ownerID string, limit, offset int) ([]*types.Codebase, error) + func (m *Manager) ListFiles(ctx context.Context, codebaseID, path string, recursive bool) ([]FileInfo, error) + func (m *Manager) ReadFile(ctx context.Context, codebaseID, filePath string) (io.ReadCloser, error) + func (m *Manager) RefreshStats(ctx context.Context, codebaseID string) error + func (m *Manager) WriteFile(ctx context.Context, codebaseID, filePath string, content io.Reader) error + type MemoryStore struct + func NewMemoryStore() *MemoryStore + func (s *MemoryStore) Create(ctx context.Context, codebase *types.Codebase) error + func (s *MemoryStore) Delete(ctx context.Context, id string) error + func (s *MemoryStore) Exists(ctx context.Context, id string) (bool, error) + func (s *MemoryStore) Get(ctx context.Context, id string) (*types.Codebase, error) + func (s *MemoryStore) List(ctx context.Context, ownerID string, limit, offset int) ([]*types.Codebase, error) + func (s *MemoryStore) Update(ctx context.Context, codebase *types.Codebase) error + type Store interface + Create func(ctx context.Context, codebase *types.Codebase) error + Delete func(ctx context.Context, id string) error + Exists func(ctx context.Context, id string) (bool, error) + Get func(ctx context.Context, id string) (*types.Codebase, error) + List func(ctx context.Context, ownerID string, limit, offset int) ([]*types.Codebase, error) + Update func(ctx context.Context, codebase *types.Codebase) error