Repository navigation
feat(inboxes): type the inbox agent tone as one of the presets - #1157
Conversation
commit: |
There was a problem hiding this comment.
cubic analysis
All reported issues were addressed across 5 files
Linked issue analysis
Linked issue: MES-2292: Use a typed tone instead of free-form strings
| Status | Acceptance criteria | Notes |
|---|---|---|
| Type agent tones as a defined set instead of arbitrary strings | Settings and update accept only four presets, but get can return custom tones that the type excludes. |
Reply with feedback, questions, or to request a fix.
View guided diff | Re-trigger cubic
There was a problem hiding this comment.
0 issues found across 2 files (changes from recent commits).
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
Requires human review: Tightens the SDK's update tone option to four preset literals and exports the tone constant/type without changing runtime wire behavior; this is a breaking type change for callers who pass custom tone text that the API still accepts.
View guided diff | Re-trigger cubic
This reverts commit ca3f846.
There was a problem hiding this comment.
0 issues found across 2 files (changes from recent commits).
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
Requires human review: Narrows the SDK's inbox agent tone type to four preset literals in settings/update options and exports the constant, with tests adjusted. Runtime wire behavior is unchanged, but this is a public type-contract break for callers who use or read custom tone text the API still accepts.
View guided diff | Re-trigger cubic
Follow up to the MES-2292 tone changes. The API reference (resend/resend-docs#1904) and both MCP servers (resend/resend-mcp#241, resend/resend-monorepo#12675) describe the inbox agent
toneas one of four presets. The SDK still typed it as any string, and #1153 (the preset or custom text union) was closed.Summary
toneon the agent settings and on the update options is nowInboxAgentTone | null, whereInboxAgentToneisconcise_professional,concise_casual,expanded_professionalorexpanded_casual.INBOX_AGENT_TONESandInboxAgentToneare exported next toINBOX_AGENT_ACTIONS, so the CLI and the MCP servers can drop their local copies of the list once this ships.Things to be aware of
getas text that is not in the union. This follows the API reference, which types the field as the presets only.updateget a type error after upgrading. The runtime behaviour is unchanged.Testing
pnpm lint,pnpm typecheckandpnpm testpass. The agent spec has a new case that sends a preset throughupdateunchanged, thegetfixture uses a preset, and the validation error case now uses instructions that are too long since a long tone no longer type checks.