(textBeforeCursor string, registry *skills.SkillRegistry, cwd string)
| 19 | } |
| 20 | |
| 21 | func CompleteInput(textBeforeCursor string, registry *skills.SkillRegistry, cwd string) []Completion { |
| 22 | stripped := strings.TrimLeftFunc(textBeforeCursor, unicode.IsSpace) |
| 23 | if strings.HasPrefix(stripped, "/") { |
| 24 | if !SlashCompletionActive(textBeforeCursor) { |
| 25 | return nil |
| 26 | } |
| 27 | return completeSlashCommand(stripped, registry, cwd) |
| 28 | } |
| 29 | return CompleteVisiblePaths(textBeforeCursor, cwd) |
| 30 | } |
| 31 | |
| 32 | func SlashCompletionActive(textBeforeCursor string) bool { |
| 33 | _, fragment, ok := SlashCompletionFragment(textBeforeCursor) |
nothing calls this directly
no test coverage detected