filesystem

package
v0.68.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2026 License: MIT Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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)

func ResolvePath added in v0.64.0

func ResolvePath(workingDir, path string) (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) IsInProjectMemoryDir added in v0.62.0

func (g *Guard) IsInProjectMemoryDir(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