Remove model commands, remove persona truncation, bump to v0.1.14

This commit is contained in:
2026-06-16 21:36:15 +02:00
parent 95cbc928e1
commit 5ccd736640
3 changed files with 3 additions and 15 deletions
+1 -13
View File
@@ -15,8 +15,6 @@ const helpText = `### Matty -- forkless' annoying sidekick
**Chat:**
@matty <prompt> -- Chat with default model
@matty model <name> <prompt> -- 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 <name> to switch.")