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

Method cmdPluginsList

server/handler_session.go:390–414  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

388}
389
390func (h *Handler) cmdPluginsList() string {
391 if h.pluginManager == nil {
392 return i18n.T("server.session.cmd_plugins_none_mgr")
393 }
394
395 plugins := h.pluginManager.GetPlugins()
396 if len(plugins) == 0 {
397 return i18n.T("server.session.cmd_plugins_none")
398 }
399
400 var b strings.Builder
401 b.WriteString(i18n.T("server.session.cmd_plugins_header", len(plugins)))
402 for _, p := range plugins {
403 b.WriteString(fmt.Sprintf(" - %s", p.Name()))
404 if v := p.Version(); v != "" {
405 b.WriteString(fmt.Sprintf(" (v%s)", v))
406 }
407 if d := p.Description(); d != "" {
408 b.WriteString(fmt.Sprintf(" — %s", d))
409 }
410 b.WriteString("\n")
411 }
412
413 return b.String()
414}
415
416func (h *Handler) cmdAgentsList() string {
417 if h.personaLoader == nil {

Callers 1

executeRemoteCommandMethod · 0.95

Calls 6

TFunction · 0.92
NameMethod · 0.65
VersionMethod · 0.65
DescriptionMethod · 0.65
GetPluginsMethod · 0.45
StringMethod · 0.45

Tested by

no test coverage detected