Documentation
¶
Overview ¶
Package skillscan discovers skill definition files under filesystem roots.
Index ¶
Constants ¶
View Source
const ( // SkillFileName is the canonical skill definition filename. SkillFileName = "SKILL.md" // MaxCandidates bounds the number of definitions discovered from one root. MaxCandidates = 300 // MaxEntries bounds the number of filesystem entries visited under one root. MaxEntries = 20_000 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DirectoryResult ¶
type DirectoryResult struct {
Paths []string
Snapshots map[string]filesnap.Snapshot
RealPaths map[string]string
Stats RootScanStats
// contains filtered or unexported fields
}
DirectoryResult is the filesystem discovery result for one root.
func ScanDirectory ¶
func ScanDirectory(root string) (DirectoryResult, error)
ScanDirectory discovers skill definitions below root. It resolves the root itself, never follows nested directory symlinks, and excludes definitions whose resolved path escapes root.
func ScanDirectoryWithin ¶
func ScanDirectoryWithin(root string, trustedRoots []string) (DirectoryResult, error)
ScanDirectoryWithin discovers definitions while allowing first-level links to resolve only inside the supplied projection roots.
type RootScanStats ¶
type RootScanStats struct {
Exists bool
Readable bool
ScannedCount int
Truncated bool
SkippedLinks []SkippedLink
}
RootScanStats reports non-fatal scan state for one physical source root.
type SkippedLink ¶
SkippedLink records one first-level link rejected by the scanner.
Click to show internal directories.
Click to hide internal directories.