MCPcopy Create free account
hub / github.com/diillson/chatcli / PinnedNames

Method PinnedNames

cli/skill_handler.go:1303–1312  ·  view source on GitHub ↗

PinnedNames returns a snapshot of currently pinned skill names sorted alphabetically. Exposed for the completer.

()

Source from the content-addressed store, hash-verified

1301// PinnedNames returns a snapshot of currently pinned skill names sorted
1302// alphabetically. Exposed for the completer.
1303func (sh *SkillHandler) PinnedNames() []string {
1304 sh.pinnedSkillsMu.RLock()
1305 names := make([]string, 0, len(sh.pinnedSkillNames))
1306 for n := range sh.pinnedSkillNames {
1307 names = append(names, n)
1308 }
1309 sh.pinnedSkillsMu.RUnlock()
1310 sort.Strings(names)
1311 return names
1312}
1313
1314// GetPinnedSkills resolves every pinned name against the persona manager and
1315// returns the matching skills sorted alphabetically (stable order keeps the

Calls

no outgoing calls