You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(cligen): list-envelope-aware response help + help-quality fixes
Make `fduty <cmd> --help` reliable enough that an SRE agent can call
the API from help alone, without guessing (the eval goal).
- responseSectionList: curated list commands flatten the {items}
envelope into a top-level array, so their --help now says "this
command's --json is a TOP-LEVEL array — pipe jq '.[]', NOT
.items[]"; generated list commands keep the items[] envelope
wording. Removes the all-null jq guess on list output.
- listEnvelope detection: a list field is the rows array iff every
other sibling is a scalar (handles {items,limit,p,total} member
envelopes); type match uses strings.HasPrefix(f.Type,"array").
- Help-quality fixes from the audit: Response-fields blocks, typed
flags, constraint/enum annotations across the generated surface.
- zz_generated_response_help.go: spec-derived response-help map read
by curated commands for the same help parity.
Builds against go-flashduty v0.5.2. The toon snake_case output fix
lives in go-flashduty (toon struct tags) and is wired in by a
dependency bump once that change is published.
Long: curatedLong("List alerts within a time window, optionally filtered by severity, channel, active/recovered/muted state. No server-side title/text filter — to search by title, pipe --json to jq: 'select(.title|test(\"pat\";\"i\"))'. --limit max 100; --since/--until window must be < 31 days.", "Alerts", "ReadList"),
Long: curatedLong("List alert events across all alerts within a time window, optionally filtered by severity, channel, or integration type.", "Alerts", "EventReadList"),
Short: "Query incidents with performance metrics",
274
+
Long: curatedLong("List incidents with per-incident performance metrics (MTTA, MTTR, notifications) over a time window.", "Analytics", "IncidentList"),
0 commit comments