Add description parameter to bd update command and MCP server

Fixes #114 and #122 by adding --description/-d flag to bd update CLI
and description parameter to MCP update_issue tool.

Changes:
- CLI: Added --description flag to updateCmd
- RPC: Added Description field to UpdateArgs
- Daemon: Updated updatesFromArgs to handle description
- MCP: Added description to update_issue, UpdateIssueParams, and clients
- Storage: description already supported in allowedUpdateFields

Tested in both daemon and direct modes.
This commit is contained in:
Steve Yegge
2025-10-23 10:59:52 -07:00
parent c835b81d72
commit 4f560379f2
9 changed files with 106 additions and 65 deletions

View File

@@ -72,6 +72,7 @@ type CreateArgs struct {
type UpdateArgs struct {
ID string `json:"id"`
Title *string `json:"title,omitempty"`
Description *string `json:"description,omitempty"`
Status *string `json:"status,omitempty"`
Priority *int `json:"priority,omitempty"`
Design *string `json:"design,omitempty"`

View File

@@ -695,6 +695,9 @@ func updatesFromArgs(a UpdateArgs) map[string]interface{} {
if a.Title != nil {
u["title"] = *a.Title
}
if a.Description != nil {
u["description"] = *a.Description
}
if a.Status != nil {
u["status"] = *a.Status
}