Versions in this module Expand all Collapse all v0 v0.2.0 May 15, 2026 v0.1.0 May 12, 2026 Changes in this version + type Change struct + Content string + ID string + Original string + Path string + Timestamp time.Time + Type ChangeType + type ChangeType int + const ChangeCreate + const ChangeDelete + const ChangeModify + func (ct ChangeType) String() string + type Sandbox struct + func New(rootDir string) *Sandbox + func (s *Sandbox) Apply() error + func (s *Sandbox) ApplyFile(path string) error + func (s *Sandbox) Changes() []*Change + func (s *Sandbox) Diff() string + func (s *Sandbox) DiffFile(path string) string + func (s *Sandbox) Discard() + func (s *Sandbox) DiscardFile(path string) + func (s *Sandbox) HasChanges() bool + func (s *Sandbox) ProposeCreate(path string, content string) *Change + func (s *Sandbox) ProposeDelete(path string) *Change + func (s *Sandbox) ProposeModify(path string, newContent string) (*Change, error) + func (s *Sandbox) SortedPaths() []string + func (s *Sandbox) Stats() SandboxStats + func (s *Sandbox) Summary() string + type SandboxStats struct + FilesCreated int + FilesDeleted int + FilesModified int + LinesAdded int + LinesRemoved int