@myagentroam/node 0.9.127 → 0.9.128

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.
@@ -99,8 +99,10 @@ export class MailNotificationMcpServer {
99
99
  const args = request['arguments'];
100
100
  if (args === null || typeof args !== 'object' || Array.isArray(args))
101
101
  throw new Error('MAIL_INPUT_INVALID');
102
- const { templateId, recipientEmail, message, callId } = args;
102
+ const { templateId, title, recipientEmail, message, callId } = args;
103
103
  if ((templateId !== undefined && typeof templateId !== 'string') ||
104
+ (title !== undefined &&
105
+ (typeof title !== 'string' || title.length > 160 || /[\r\n]/u.test(title))) ||
104
106
  typeof recipientEmail !== 'string' ||
105
107
  typeof message !== 'string' ||
106
108
  typeof callId !== 'string')
@@ -108,6 +110,7 @@ export class MailNotificationMcpServer {
108
110
  const parsed = mailNotificationRequestSchema.safeParse({
109
111
  ...current,
110
112
  templateId: templateId ?? '',
113
+ ...(title === undefined ? {} : { title }),
111
114
  recipientEmail,
112
115
  message,
113
116
  callId
@@ -16,6 +16,12 @@ server.registerTool('mar_send_email_notification', {
16
16
  .max(64)
17
17
  .optional()
18
18
  .describe('Optional built-in NOTIFICATION template ID; omitted or empty uses the sender’s preferred language.'),
19
+ title: z
20
+ .string()
21
+ .max(160)
22
+ .regex(/^[^\r\n]*$/u)
23
+ .optional()
24
+ .describe('Optional notification title rendered into the email subject.'),
19
25
  recipientEmail: z.string().min(3).max(320).describe('Single recipient email address.'),
20
26
  message: z.string().min(1).max(4000).describe('Notification text for {{message}}.')
21
27
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myagentroam/node",
3
- "version": "0.9.127",
3
+ "version": "0.9.128",
4
4
  "description": "MyAgentRoam Node runtime CLI.",
5
5
  "license": "Apache-2.0 AND GPL-2.0-or-later",
6
6
  "type": "module",
@@ -30,9 +30,9 @@
30
30
  "npm": "11.12.1",
31
31
  "ws": "^8.21.3",
32
32
  "zod": "4.4.3",
33
- "@myagentroam/agent": "0.9.127",
34
- "@myagentroam/code-navigation": "0.9.127",
35
- "@myagentroam/protocol": "0.9.127"
33
+ "@myagentroam/agent": "0.9.128",
34
+ "@myagentroam/protocol": "0.9.128",
35
+ "@myagentroam/code-navigation": "0.9.128"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@types/ws": "^8.18.1"