Documentation
¶
Index ¶
- func KeenBashOutputDir() (string, error)
- func KeenMCPArtifactsDir() (string, error)
- func KeenWebFetchArtifactsDir() (string, error)
- type GitAwareness
- type Guard
- func (g *Guard) CheckPath(path string, operation string) Permission
- func (g *Guard) IsBlocked(path string) bool
- func (g *Guard) IsInKeenBashDir(path string) bool
- func (g *Guard) IsInMCPArtifactsDir(path string) bool
- func (g *Guard) IsInMemoryDir(path string) bool
- func (g *Guard) IsInSkillDir(path string) bool
- func (g *Guard) IsInWebFetchArtifactsDir(path string) bool
- func (g *Guard) IsInWorkingDir(path string) bool
- func (g *Guard) IsMemoryPath(path string) bool
- func (g *Guard) ResolvePath(path string) (string, error)
- type PatternSet
- type Permission
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func KeenBashOutputDir ¶
func KeenMCPArtifactsDir ¶
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) IsInKeenBashDir ¶
func (*Guard) IsInMCPArtifactsDir ¶
func (*Guard) IsInMemoryDir ¶
func (*Guard) IsInSkillDir ¶
func (*Guard) IsInWebFetchArtifactsDir ¶
func (*Guard) IsInWorkingDir ¶
func (*Guard) IsMemoryPath ¶
type PatternSet ¶
type PatternSet struct {
// contains filtered or unexported fields
}
type Permission ¶
type Permission int
const ( PermissionDenied Permission = iota PermissionGranted PermissionPending )
Click to show internal directories.
Click to hide internal directories.