diff --git a/Makefile b/Makefile index d537485..d8bad64 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ # make clean — Remove build artifacts PLUGIN_ID := com.forkless.mattermore -PLUGIN_VERSION := 0.1.13 +PLUGIN_VERSION := 0.1.14 DIST_DIR := dist SERVER_DIR := server BUNDLE_NAME := $(PLUGIN_ID)-$(PLUGIN_VERSION).tar.gz diff --git a/plugin.json b/plugin.json index e6a8b52..14cb014 100644 --- a/plugin.json +++ b/plugin.json @@ -2,7 +2,7 @@ "id": "com.forkless.mattermore", "name": "Matty", "description": "AI chat agent powered by Ollama.", - "version": "0.1.13", + "version": "0.1.14", "min_server_version": "11.6.1", "server": { "executables": { diff --git a/server/command.go b/server/command.go index ad3098d..2939325 100644 --- a/server/command.go +++ b/server/command.go @@ -15,8 +15,6 @@ const helpText = `### Matty -- forkless' annoying sidekick **Chat:** @matty -- Chat with default model - @matty model -- Use a specific model - @matty model list -- List available models **Personas:** @matty persona -- Show current persona @@ -57,14 +55,6 @@ func (p *Plugin) ExecuteCommand(_ *plugin.Context, args *model.CommandArgs) (*mo case parts[0] == "persona" && len(parts) >= 2: return p.handlePersonaSwitch(args, parts[1]) - case parts[0] == "model" && len(parts) >= 2 && parts[1] == "list": - return p.handleModelList(args) - - case parts[0] == "model" && len(parts) >= 3: - modelName := parts[1] - prompt := strings.Join(parts[2:], " ") - return p.handlePrompt(args, modelName, prompt) - default: return p.handlePrompt(args, "", strings.Join(parts, " ")) } @@ -159,9 +149,7 @@ func (p *Plugin) listPersonas() string { b.WriteString("Available personas:\n\n```\n") for _, id := range ids { desc := personaLibrary[id] - if len(desc) > 60 { - desc = desc[:57] + "..." - } + b.WriteString(fmt.Sprintf(" %-12s %s\n", id, desc)) } b.WriteString("```\nUse /ai persona to switch.")