Documentation
¶
Overview ¶
Package mention implements @-prefixed file mentions in prompt input, enabling users to reference project files that get auto-included as context.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractPartial ¶
ExtractPartial extracts the partial path being typed after @ for completion.
func FuzzyMatch ¶
FuzzyMatch performs fuzzy matching of a partial path against the project file tree. Returns up to maxResults matching paths, sorted by relevance.
Types ¶
type ParseResult ¶
type ParseResult struct {
CleanInput string // Input with mentions removed
MentionedFiles []string // Resolved file paths
RawMentions []string // Original mention strings as typed
}
ParseResult holds the output of parsing mentions from input.
func ParseMentions ¶
func ParseMentions(input string, projectRoot string) ParseResult
ParseMentions extracts @-prefixed file mentions from the input string. Returns the cleaned input (without mention tokens) and the list of mentioned file paths.
Click to show internal directories.
Click to hide internal directories.