MCPcopy Create free account
hub / github.com/GongShichen/LuminaCode / IterCommandCompletionItems

Function IterCommandCompletionItems

cli/commands.go:76–91  ·  view source on GitHub ↗
(registry *skills.SkillRegistry, cwd string)

Source from the content-addressed store, hash-verified

74
75const (
76 SlashDispatchNone SlashDispatchKind = "none"
77 SlashDispatchBuiltin SlashDispatchKind = "builtin"
78 SlashDispatchExit SlashDispatchKind = "exit"
79 SlashDispatchSkill SlashDispatchKind = "skill"
80 SlashDispatchUnknown SlashDispatchKind = "unknown"
81)
82
83type SlashDispatch struct {
84 Kind SlashDispatchKind
85 Command string
86 Name string
87}
88
89func IterCommandCompletionItems(registry *skills.SkillRegistry, cwd string) []CommandCompletionItem {
90 items := make([]CommandCompletionItem, 0, len(BuiltinCommands))
91 for _, name := range BuiltinCommands {
92 items = append(items, CommandCompletionItem{Name: name, Description: CommandMeta[name]})
93 }
94 if registry == nil || cwd == "" {

Callers 1

completeSlashCommandFunction · 0.85

Calls 2

userInvocableSkillsFunction · 0.85
skillHintFunction · 0.85

Tested by

no test coverage detected