filesystem

package
v0.51.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 1, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func KeenBashOutputDir

func KeenBashOutputDir() (string, error)

func KeenMCPArtifactsDir

func KeenMCPArtifactsDir() (string, error)

func KeenWebFetchArtifactsDir

func KeenWebFetchArtifactsDir() (string, error)

Types

type GitAwareness

type GitAwareness struct {
	// contains filtered or unexported fields
}

func NewGitAwareness

func NewGitAwareness() *GitAwareness

func (*GitAwareness) FilterPaths

func (g *GitAwareness) FilterPaths(paths []string) []string

func (*GitAwareness) IsIgnored

func (g *GitAwareness) IsIgnored(filePath string) bool

func (*GitAwareness) LoadGitignore

func (g *GitAwareness) LoadGitignore(gitignorePath string) error

func (*GitAwareness) LoadGitignoreRecursive

func (g *GitAwareness) LoadGitignoreRecursive(root string) error

type Guard

type Guard struct {
	// contains filtered or unexported fields
}

func NewGuard

func NewGuard(workingDir string, gitignore *GitAwareness) *Guard

func (*Guard) CheckPath

func (g *Guard) CheckPath(path string, operation string) Permission

func (*Guard) IsBlocked

func (g *Guard) IsBlocked(path string) bool

func (*Guard) IsInKeenBashDir

func (g *Guard) IsInKeenBashDir(path string) bool

func (*Guard) IsInMCPArtifactsDir

func (g *Guard) IsInMCPArtifactsDir(path string) bool

func (*Guard) IsInMemoryDir

func (g *Guard) IsInMemoryDir(path string) bool

func (*Guard) IsInSkillDir

func (g *Guard) IsInSkillDir(path string) bool

func (*Guard) IsInWebFetchArtifactsDir

func (g *Guard) IsInWebFetchArtifactsDir(path string) bool

func (*Guard) IsInWorkingDir

func (g *Guard) IsInWorkingDir(path string) bool

func (*Guard) IsMemoryPath

func (g *Guard) IsMemoryPath(path string) bool

func (*Guard) ResolvePath

func (g *Guard) ResolvePath(path string) (string, error)

type PatternSet

type PatternSet struct {
	// contains filtered or unexported fields
}

type Permission

type Permission int
const (
	PermissionDenied Permission = iota
	PermissionGranted
	PermissionPending
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL