fix: normalize JSON output fields across all issue commands
All issue commands now return the full common field set (number, title,
body, state, author, createdAt, uri, cid) in --json mode:
- create: adds state:'open' (always open on creation)
- view: adds number via getCompleteIssueData (replaces separate getIssue
+ getIssueState calls)
- edit: adds number + state via parallel resolveSequentialNumber +
getIssueState after updateIssue (avoids re-fetching the updated record)
- close/reopen: adds body, author, createdAt via getCompleteIssueData with
stateOverride; replaces separate getIssue + resolveSequentialNumber calls
- delete: adds body, author, createdAt, state via getCompleteIssueData;
replaces scattered local variables
Update command tests to mock getCompleteIssueData and assert on the full
field set.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
authored by
markbennett.ca
tangled.org
4489d742
8ce6e5cb