@@ -5,14 +5,9 @@ const resendCommands: readonly CommandDef[] = [
55 name : "emails" ,
66 subcommands : [ "send" , "get" , "list" ] ,
77 args : [
8- { flag : "--from" , required : true , valueHint : "onboarding@resend.dev" } ,
9- {
10- flag : "--to" ,
11- required : true ,
12- multiple : true ,
13- valueHint : "user@example.com" ,
14- } ,
15- { flag : "--subject" , required : true } ,
8+ { flag : "--from" , valueHint : "onboarding@resend.dev" } ,
9+ { flag : "--to" , multiple : true , valueHint : "user@example.com" } ,
10+ { flag : "--subject" } ,
1611 { flag : "--html" , conflictsWith : "--text" } ,
1712 { flag : "--text" , conflictsWith : "--html" } ,
1813 { flag : "--reply-to" , valueHint : "reply@example.com" } ,
@@ -49,9 +44,9 @@ const resendCommands: readonly CommandDef[] = [
4944 name : "broadcasts" ,
5045 subcommands : [ "create" , "get" , "list" , "send" , "delete" ] ,
5146 args : [
52- { flag : "--name" , required : true } ,
53- { flag : "--from" , required : true , valueHint : "onboarding@resend.dev" } ,
54- { flag : "--subject" , required : true } ,
47+ { flag : "--name" } ,
48+ { flag : "--from" , valueHint : "onboarding@resend.dev" } ,
49+ { flag : "--subject" } ,
5550 { flag : "--html" } ,
5651 { flag : "--text" } ,
5752 { flag : "--json" , default : true } ,
@@ -115,14 +110,12 @@ export const resendCatalog: CatalogModule = {
115110 commands : resendCommands ,
116111 detectors : [ ] ,
117112 triggers : [
118- "email" ,
119113 "resend" ,
120- "broadcast" ,
121- "audience" ,
122- "contact" ,
123- "webhook" ,
124- "template" ,
125- "domain" ,
114+ "send email" ,
115+ "broadcast email" ,
116+ "email audience" ,
117+ "email webhook" ,
118+ "email template" ,
126119 ] ,
127120 typeEnum : [ "resend" ] ,
128121 buildPrompt ( ) {
@@ -146,6 +139,8 @@ export const resendCatalog: CatalogModule = {
146139- Everything after the top-level command goes into args[] as separate tokens.
147140- Never include secrets in args[] (no API keys, tokens, passwords). Auth comes from env vars or prior login.
148141- Prefer --json flag for non-interactive/automation output.
142+ - For "emails send": --from, --to, and --subject are required. Include --html or --text (not both).
143+ - For "broadcasts create/send": --name, --from, and --subject are required for create; only broadcast id needed for send.
149144- Do not combine tokens. Example: Good: ["--subject", "Hello world"] Bad: ["--subject Hello world"]
150145- If a value contains spaces, keep it as a single element: "Hello world".` ,
151146} ;
0 commit comments