Initialize narratio Go module and CLI scaffold

This commit is contained in:
2026-05-02 10:37:38 -05:00
parent 48c51e1c77
commit 902e6bc994
42 changed files with 1486 additions and 1 deletions

View File

@@ -0,0 +1,27 @@
package manifest
import (
"context"
"fmt"
)
// Store is a placeholder interface for manifest persistence.
type Store interface {
Load(ctx context.Context, sessionID string) (*Manifest, error)
Save(ctx context.Context, m *Manifest) error
}
// LocalStore is a placeholder local-filesystem manifest store.
type LocalStore struct {
RootDir string
}
// Load returns a not-yet-implemented error in the scaffold.
func (s *LocalStore) Load(_ context.Context, _ string) (*Manifest, error) {
return nil, fmt.Errorf("manifest local load: not yet implemented")
}
// Save returns a not-yet-implemented error in the scaffold.
func (s *LocalStore) Save(_ context.Context, _ *Manifest) error {
return fmt.Errorf("manifest local save: not yet implemented")
}