@mindstudio-ai/remy 0.1.228 → 0.1.229

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -357,15 +357,24 @@ A verified custom domain (and the app's `madewithremy.com` subdomain) also **sen
357
357
 
358
358
  ```ts
359
359
  {
360
- to: string; // full recipient address; localpart is arbitrary on catchall tiers
361
- from: string; // bare address, extracted from "Name <a@b>" form
362
- subject: string; // 'No Subject' if missing
363
- message: string; // plain text body, falls back to HTML if text is missing; 'No Body' if neither was sent
364
- html: string; // HTML body, or '' when text-only
365
- attachments: string[]; // CDN URLs already uploaded by the platform
360
+ to: string; // full recipient address; localpart is arbitrary on catchall tiers
361
+ from: string; // bare sender address, extracted from "Name <a@b>" form
362
+ fromName: string | null; // sender display name, or null
363
+ subject: string; // 'No Subject' if missing
364
+ message: string; // plain-text body, falls back to HTML if text is missing; 'No Body' if neither was sent
365
+ html: string; // HTML body, or '' when text-only
366
+ attachments: string[]; // CDN URLs — already uploaded by the platform
367
+ messageId: string | null; // this email's Message-ID, angle-bracketed (<id@host>)
368
+ inReplyTo: string | null; // Message-ID this email is replying to, if any
369
+ references: string[]; // prior Message-IDs in the thread (angle-bracketed); [] if none
370
+ replyTo: string | null; // Reply-To address — reply here, not `from`, when set
371
+ cc: string[]; // Cc recipient addresses
372
+ date: string | null; // original send time, ISO-8601
366
373
  }
367
374
  ```
368
375
 
376
+ To reply in-thread, feed these into `sendEmail`: set `inReplyTo` to the incoming `messageId` and `references` to `[...references, messageId]`. Send to `replyTo` when it's set, otherwise `from`. `sendEmail` returns `{ recipients, cc, bcc, from }` (who it sent to + the sender used); it does not return the sent message's own `Message-ID`, so thread off *inbound* mail, not off messages you sent.
377
+
369
378
  ### Attachments and size limits
370
379
 
371
380
  `attachments[]` is an array of CDN URLs — the platform has already received and uploaded the files. Fetch them server-side via the URL when you need the bytes; pass them through as URLs to UI or downstream services.
@@ -80,11 +80,21 @@ const { imageUrl } = await mindstudio.generateImage({
80
80
  prompt: 'A professional headshot placeholder',
81
81
  });
82
82
 
83
- // Send email
83
+ // Send email — own-brand sender auto-selected (custom domain / subdomain / Remy default)
84
84
  await mindstudio.sendEmail({
85
85
  to: 'user@example.com',
86
86
  subject: 'Your invoice',
87
- body: content,
87
+ body: content, // markdown or HTML, auto-detected; bodyType overrides. cc/bcc/replyTo/attachments also supported
88
+ });
89
+
90
+ // Reply in-thread to an inbound email (fields come from the email interface's input)
91
+ await mindstudio.sendEmail({
92
+ to: input.replyTo ?? input.from,
93
+ subject: `Re: ${input.subject}`,
94
+ body: reply,
95
+ inReplyTo: input.messageId ?? undefined,
96
+ references: input.messageId ? [...input.references, input.messageId] : input.references,
97
+ cc: input.cc, // reply-all
88
98
  });
89
99
 
90
100
  // Upload files
@@ -61,7 +61,7 @@ result.$billingCost; // cost in credits (if applicable)
61
61
 
62
62
  | Action | What it does | Key input | Key output |
63
63
  |--------|-------------|-----------|------------|
64
- | `sendEmail` | Send an email | `to`, `subject`, `body` | `messageId` |
64
+ | `sendEmail` | Send an email (own-brand sender auto-selected) | `to`, `subject`, `body`, `cc?`, `bcc?`, `from?`, `replyTo?`, `inReplyTo?`, `references?`, `bodyType?`, `attachments?` | `recipients`, `cc`, `bcc`, `from` |
65
65
  | `sendSMS` | Send a text message | `to`, `message` | `messageId` |
66
66
  | `postToSlackChannel` | Post to Slack | `channel`, `message` | — |
67
67
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mindstudio-ai/remy",
3
- "version": "0.1.228",
3
+ "version": "0.1.229",
4
4
  "description": "Remy coding agent",
5
5
  "repository": {
6
6
  "type": "git",