(registry *skills.SkillRegistry, cwd string)
| 91 | for _, name := range BuiltinCommands { |
| 92 | items = append(items, CommandCompletionItem{Name: name, Description: CommandMeta[name]}) |
| 93 | } |
| 94 | if registry == nil || cwd == "" { |
| 95 | return items |
| 96 | } |
| 97 | for _, skill := range userInvocableSkills(registry, cwd) { |
| 98 | items = append(items, CommandCompletionItem{ |
| 99 | Name: "/" + skill.CanonicalName, |
| 100 | Description: skillHint(skill), |
| 101 | }) |
| 102 | } |
| 103 | return items |
| 104 | } |
| 105 | |
| 106 | func IterCommandHelpRows(registry *skills.SkillRegistry, cwd string) []CommandHelpRow { |
| 107 | rows := make([]CommandHelpRow, 0, len(BuiltinCommandSpecs)) |
| 108 | for _, spec := range BuiltinCommandSpecs { |
| 109 | rows = append(rows, CommandHelpRow{Command: spec.HelpLabel(), Description: spec.Description}) |
| 110 | } |
| 111 | if registry == nil || cwd == "" { |
nothing calls this directly
no test coverage detected