Documentation
¶
Index ¶
- Constants
- func DefaultInstructionBlock() string
- func EnsureDirectory(path string) error
- func GlobalRunXDirectory() string
- func HomeDirectory() string
- func NearestAgentsPath(cwd string) string
- func PathExists(path string) bool
- func ReadTextIfExists(path string) (string, error)
- func RemoveKnownManagedBlocks(existing string, includeLeadingWhitespace bool) string
- func RemovePath(path string) error
- func ReplaceManagedBlock(existing string, newBlock string) string
- func SkillDirectories(homeDir string) []string
- func SpawnAgentMaintenanceWorker(execPath string, cwd string) error
- func WriteTextFile(path string, content string) error
- func WriteTextFileAtomic(path string, content string) error
- type MaintenanceResult
Constants ¶
View Source
const ( SkillID = "guiho-s-runx" PromptID = "guiho-i-runx" ManagedStart = "<!-- BEGIN RUNX — DO NOT EDIT THIS SECTION -->" ManagedEnd = "<!-- END RUNX -->" MojibakeManagedStart = "<!-- BEGIN RUNX \u00e2\u20ac\u201d DO NOT EDIT THIS SECTION -->" LegacyManagedStart = "<!-- BEGIN RUNX AGENT INSTRUCTIONS -->" LegacyManagedEnd = "<!-- END RUNX AGENT INSTRUCTIONS -->" )
Variables ¶
This section is empty.
Functions ¶
func DefaultInstructionBlock ¶
func DefaultInstructionBlock() string
func EnsureDirectory ¶
func GlobalRunXDirectory ¶
func GlobalRunXDirectory() string
func HomeDirectory ¶
func HomeDirectory() string
func NearestAgentsPath ¶
func PathExists ¶
func ReadTextIfExists ¶
func RemovePath ¶
func ReplaceManagedBlock ¶
func SkillDirectories ¶
func WriteTextFile ¶
func WriteTextFileAtomic ¶
Types ¶
type MaintenanceResult ¶
type MaintenanceResult struct {
Skills []string `json:"skills"`
Instructions []string `json:"instructions"`
}
func MaintainAgentIntegration ¶
func MaintainAgentIntegration(cwd string, homeDir string, embeddedSkill string) (*MaintenanceResult, error)
Click to show internal directories.
Click to hide internal directories.