nothumanallowed 13.5.121 → 13.5.123
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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nothumanallowed",
|
|
3
|
-
"version": "13.5.
|
|
3
|
+
"version": "13.5.123",
|
|
4
4
|
"description": "NotHumanAllowed — 38 AI agents, 80 tools, Studio (visual agentic workflows). Email, calendar, browser automation, screen capture, canvas, cron/heartbeat, Alexandria E2E messaging, GitHub, Notion, Slack, voice chat, free AI (Liara), 28 languages. Zero-dependency CLI.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
package/src/constants.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import { fileURLToPath } from 'url';
|
|
|
5
5
|
const __filename = fileURLToPath(import.meta.url);
|
|
6
6
|
const __dirname = path.dirname(__filename);
|
|
7
7
|
|
|
8
|
-
export const VERSION = '13.5.
|
|
8
|
+
export const VERSION = '13.5.123';
|
|
9
9
|
export const BASE_URL = 'https://nothumanallowed.com/cli';
|
|
10
10
|
export const API_BASE = 'https://nothumanallowed.com/api/v1';
|
|
11
11
|
|
|
@@ -18,7 +18,7 @@ const DB_PATH = join(NHA_DIR, 'email.db');
|
|
|
18
18
|
let _db = null;
|
|
19
19
|
|
|
20
20
|
export function getDb() {
|
|
21
|
-
if (_db) return _db;
|
|
21
|
+
if (_db && _db.open) return _db;
|
|
22
22
|
mkdirSync(NHA_DIR, { recursive: true });
|
|
23
23
|
_db = new Database(DB_PATH);
|
|
24
24
|
_db.pragma('journal_mode = WAL');
|
|
@@ -56,14 +56,16 @@ export async function sendEmail(accountId, opts) {
|
|
|
56
56
|
const msgId = `<${randomUUID()}@nha.local>`;
|
|
57
57
|
const fromLine = creds.from_name ? `${creds.from_name} <${creds.email_address}>` : creds.email_address;
|
|
58
58
|
|
|
59
|
+
const toList = toArray(opts.to);
|
|
60
|
+
if (!toList.length) throw new Error('At least one recipient (To) is required');
|
|
61
|
+
|
|
59
62
|
const mailOpts = {
|
|
60
63
|
messageId: msgId,
|
|
61
64
|
from: fromLine,
|
|
62
|
-
to:
|
|
65
|
+
to: toList.join(', '),
|
|
63
66
|
subject: opts.subject || '',
|
|
64
67
|
html: opts.bodyHtml || '',
|
|
65
68
|
text: opts.bodyText || stripHtml(opts.bodyHtml || ''),
|
|
66
|
-
envelope: { from: creds.email_address, to: toArray(opts.to) },
|
|
67
69
|
};
|
|
68
70
|
|
|
69
71
|
if (opts.cc?.length) mailOpts.cc = Array.isArray(opts.cc) ? opts.cc.join(', ') : opts.cc;
|
|
@@ -67,6 +67,10 @@ export const DESTRUCTIVE_ACTIONS = new Set([
|
|
|
67
67
|
'gmail_reply',
|
|
68
68
|
'gmail_delete',
|
|
69
69
|
'imap_send',
|
|
70
|
+
'imap_reply',
|
|
71
|
+
'imap_bulk_send',
|
|
72
|
+
'imap_send_template',
|
|
73
|
+
'imap_trash',
|
|
70
74
|
'calendar_create',
|
|
71
75
|
'calendar_move',
|
|
72
76
|
'calendar_update',
|
|
@@ -400,6 +404,42 @@ TOOLS:
|
|
|
400
404
|
70. imap_mark_read(messageId: string, isRead?: boolean)
|
|
401
405
|
Mark a local message as read or unread. Does NOT touch the IMAP server. Default isRead=true.
|
|
402
406
|
|
|
407
|
+
71. imap_reply(accountId: string, messageId: string, bodyHtml: string, cc?: string)
|
|
408
|
+
Reply to an existing email. Automatically sets In-Reply-To and References headers for proper threading.
|
|
409
|
+
Fetches the original message from DB to build correct subject (Re: ...) and recipient.
|
|
410
|
+
ALWAYS confirm with user before sending.
|
|
411
|
+
|
|
412
|
+
72. imap_thread(accountId: string, threadId: string)
|
|
413
|
+
Read all messages in a thread. Returns them in chronological order with subject, from, date, body.
|
|
414
|
+
Use imap_read() to get the threadId from a message.
|
|
415
|
+
|
|
416
|
+
73. imap_search(accountId: string, query: string, limit?: number)
|
|
417
|
+
Full-text search across all synced emails (subject, body, from, to). Returns matching messages.
|
|
418
|
+
query is a plain text string. limit defaults to 20.
|
|
419
|
+
|
|
420
|
+
74. imap_mark_starred(messageId: string, isStarred?: boolean)
|
|
421
|
+
Star or unstar a message locally. Default isStarred=true.
|
|
422
|
+
|
|
423
|
+
75. imap_trash(messageId: string)
|
|
424
|
+
Move a message to local Trash (soft delete — does NOT touch IMAP server). ALWAYS confirm.
|
|
425
|
+
|
|
426
|
+
76. imap_draft(accountId: string, to: string, subject: string, bodyHtml: string)
|
|
427
|
+
Save a draft locally. Safe — does not send anything.
|
|
428
|
+
|
|
429
|
+
77. imap_send_template(accountId: string, to: string, templateId: string, vars: object)
|
|
430
|
+
Send an email using a built-in marketing template. templateId is one of:
|
|
431
|
+
"promo_product" | "newsletter" | "follow_up" | "offerta" | "evento" | "ringraziamento"
|
|
432
|
+
vars is a key-value object to replace [PLACEHOLDERS] in the template, e.g.:
|
|
433
|
+
{"AZIENDA": "Zeli Srl", "TITOLO OFFERTA": "Sconto 20%", "LINK_CTA": "https://..."}
|
|
434
|
+
ALWAYS confirm with user before sending.
|
|
435
|
+
|
|
436
|
+
78. imap_bulk_send(accountId: string, recipients: string[], subject: string, templateId: string, vars: object, perRecipientVars?: object)
|
|
437
|
+
Send a templated email to multiple recipients (marketing campaign).
|
|
438
|
+
recipients: array of email addresses.
|
|
439
|
+
vars: global placeholders applied to all.
|
|
440
|
+
perRecipientVars: optional object keyed by email with per-recipient overrides, e.g. {"mario@co.it": {"NOME": "Mario"}}.
|
|
441
|
+
Sends one-by-one with 1s delay to avoid spam filters. ALWAYS confirm with user — shows recipient count.
|
|
442
|
+
|
|
403
443
|
--- CANVAS ---
|
|
404
444
|
|
|
405
445
|
71. canvas_render(html: string, title?: string)
|
|
@@ -940,6 +980,124 @@ export async function executeTool(action, params, config) {
|
|
|
940
980
|
return `Message marked as ${params.isRead !== false ? 'read' : 'unread'}.`;
|
|
941
981
|
}
|
|
942
982
|
|
|
983
|
+
case 'imap_reply': {
|
|
984
|
+
if (!params.accountId || !params.messageId || !params.bodyHtml) return 'accountId, messageId, bodyHtml required.';
|
|
985
|
+
const { getMessage: imapGetMsg2 } = await import('./email-db.mjs');
|
|
986
|
+
const { sendEmail: imapSendReply } = await import('./email-smtp.mjs');
|
|
987
|
+
const orig = imapGetMsg2(params.messageId);
|
|
988
|
+
if (!orig) return 'Original message not found in local DB.';
|
|
989
|
+
const replySubject = orig.subject?.startsWith('Re:') ? orig.subject : 'Re: ' + (orig.subject || '');
|
|
990
|
+
let refs = [];
|
|
991
|
+
try { refs = JSON.parse(orig.references_list || '[]'); } catch {}
|
|
992
|
+
if (orig.message_id) refs.push(orig.message_id);
|
|
993
|
+
const result = await imapSendReply(params.accountId, {
|
|
994
|
+
to: orig.from_address,
|
|
995
|
+
cc: params.cc || null,
|
|
996
|
+
subject: replySubject,
|
|
997
|
+
bodyHtml: params.bodyHtml,
|
|
998
|
+
inReplyTo: orig.message_id || null,
|
|
999
|
+
references: refs,
|
|
1000
|
+
});
|
|
1001
|
+
return `Reply sent to ${orig.from_address}. Message-ID: ${result.messageId}`;
|
|
1002
|
+
}
|
|
1003
|
+
|
|
1004
|
+
case 'imap_thread': {
|
|
1005
|
+
if (!params.accountId || !params.threadId) return 'accountId and threadId required.';
|
|
1006
|
+
const { getThread: imapGetThread } = await import('./email-db.mjs');
|
|
1007
|
+
const msgs = imapGetThread(params.threadId, params.accountId);
|
|
1008
|
+
if (!msgs.length) return 'No messages found in thread.';
|
|
1009
|
+
return msgs.map((m, i) => {
|
|
1010
|
+
const body = m.body_reply_only || m.body_text || m.body_preview || '(empty)';
|
|
1011
|
+
return `--- Message ${i + 1} ---\nFrom: ${m.from_name ? m.from_name + ' <' + m.from_address + '>' : m.from_address}\nDate: ${m.internal_date}\n\n${body.slice(0, 1500)}`;
|
|
1012
|
+
}).join('\n\n');
|
|
1013
|
+
}
|
|
1014
|
+
|
|
1015
|
+
case 'imap_search': {
|
|
1016
|
+
if (!params.accountId || !params.query) return 'accountId and query required.';
|
|
1017
|
+
const { listMessages: imapSearch } = await import('./email-db.mjs');
|
|
1018
|
+
const result = imapSearch(params.accountId, null, params.limit || 20, 0, params.query);
|
|
1019
|
+
if (!result.messages.length) return `No messages found for "${params.query}".`;
|
|
1020
|
+
return result.messages.map(m =>
|
|
1021
|
+
`[${m.id}] ${m.is_read ? '' : '[UNREAD] '}From: ${m.from_name || m.from_address} | ${m.subject} | ${(m.internal_date || '').slice(0, 10)}\n ${(m.body_preview || '').slice(0, 100)}`
|
|
1022
|
+
).join('\n\n') + `\n\n(${result.total} total matches)`;
|
|
1023
|
+
}
|
|
1024
|
+
|
|
1025
|
+
case 'imap_mark_starred': {
|
|
1026
|
+
if (!params.messageId) return 'messageId required.';
|
|
1027
|
+
const { markStarred } = await import('./email-db.mjs');
|
|
1028
|
+
markStarred(params.messageId, params.isStarred !== false);
|
|
1029
|
+
return `Message ${params.isStarred !== false ? 'starred' : 'unstarred'}.`;
|
|
1030
|
+
}
|
|
1031
|
+
|
|
1032
|
+
case 'imap_trash': {
|
|
1033
|
+
if (!params.messageId) return 'messageId required.';
|
|
1034
|
+
const { softDelete } = await import('./email-db.mjs');
|
|
1035
|
+
softDelete(params.messageId);
|
|
1036
|
+
return 'Message moved to local Trash. Not deleted from IMAP server.';
|
|
1037
|
+
}
|
|
1038
|
+
|
|
1039
|
+
case 'imap_draft': {
|
|
1040
|
+
if (!params.accountId || !params.to || !params.subject) return 'accountId, to, subject required.';
|
|
1041
|
+
const { saveDraft } = await import('./email-db.mjs');
|
|
1042
|
+
const id = saveDraft(params.accountId, {
|
|
1043
|
+
to: [{ address: params.to }],
|
|
1044
|
+
subject: params.subject,
|
|
1045
|
+
body_html: params.bodyHtml || '',
|
|
1046
|
+
});
|
|
1047
|
+
return `Draft saved with id: ${id}`;
|
|
1048
|
+
}
|
|
1049
|
+
|
|
1050
|
+
case 'imap_send_template': {
|
|
1051
|
+
if (!params.accountId || !params.to || !params.templateId || !params.vars) return 'accountId, to, templateId, vars required.';
|
|
1052
|
+
const { sendEmail: imapSendTpl } = await import('./email-smtp.mjs');
|
|
1053
|
+
const TEMPLATES = {
|
|
1054
|
+
promo_product: { subject: 'Scopri la nostra offerta su [PRODOTTO]', html: '<table width="100%" style="max-width:600px;margin:0 auto;font-family:Arial,sans-serif"><tr><td style="background:#1a1a2e;padding:32px 40px;text-align:center"><h1 style="color:#00ff9d;margin:0">[AZIENDA]</h1></td></tr><tr><td style="padding:40px;background:#fff"><h2 style="color:#1a1a2e">[TITOLO OFFERTA]</h2><p style="color:#444;line-height:1.7">[DESCRIZIONE PRODOTTO/SERVIZIO]</p><p style="color:#444;line-height:1.7">[DETTAGLIO BENEFICI O SPECIFICHE]</p><table><tr><td style="background:#00ff9d;border-radius:6px;padding:14px 32px"><a href="[LINK_CTA]" style="color:#1a1a2e;font-weight:700;text-decoration:none">[TESTO CTA]</a></td></tr></table></td></tr><tr><td style="padding:24px 40px;background:#f5f5f5;text-align:center"><p style="color:#888;font-size:12px">[AZIENDA] • [INDIRIZZO] • [EMAIL]</p></td></tr></table>' },
|
|
1055
|
+
newsletter: { subject: '[AZIENDA] Newsletter — [MESE] [ANNO]', html: '<table width="100%" style="max-width:600px;margin:0 auto;font-family:Arial,sans-serif"><tr><td style="background:#0f0f1a;padding:28px 40px;border-bottom:3px solid #00ff9d"><h1 style="color:#fff;margin:0">[AZIENDA]</h1><p style="color:#00ff9d;margin:6px 0 0;font-size:13px">Newsletter [MESE] [ANNO]</p></td></tr><tr><td style="padding:36px 40px;background:#fff"><h2 style="color:#1a1a2e">[TITOLO PRINCIPALE]</h2><p style="color:#555;line-height:1.8">[TESTO PRINCIPALE]</p><hr style="border:none;border-top:1px solid #eee;margin:24px 0"><h3 style="color:#1a1a2e">[TITOLO SEZIONE 2]</h3><p style="color:#555;line-height:1.8">[TESTO SEZIONE 2]</p></td></tr><tr><td style="padding:20px 40px;background:#f9f9f9;text-align:center"><p style="color:#999;font-size:12px">© [ANNO] [AZIENDA]</p></td></tr></table>' },
|
|
1056
|
+
follow_up: { subject: 'Seguito alla nostra conversazione — [ARGOMENTO]', html: '<table width="100%" style="max-width:580px;margin:0 auto;font-family:Arial,sans-serif"><tr><td style="padding:40px"><p style="color:#333;line-height:1.7">Gentile [NOME],</p><p style="color:#333;line-height:1.7">la contatto in seguito a [CONTESTO].</p><p style="color:#333;line-height:1.7">[CORPO PRINCIPALE]</p><p style="color:#333;line-height:1.7">[CHIUSURA]</p><p style="color:#333">Cordiali saluti,</p><p style="color:#1a1a2e;font-weight:700">[NOME MITTENTE]</p><p style="color:#888;font-size:13px">[RUOLO] • [AZIENDA] • [TELEFONO]</p></td></tr></table>' },
|
|
1057
|
+
offerta: { subject: 'Offerta [NUMERO] — [OGGETTO FORNITURA]', html: '<table width="100%" style="max-width:600px;margin:0 auto;font-family:Arial,sans-serif"><tr><td style="background:#1a1a2e;padding:24px 40px"><h1 style="color:#00ff9d;margin:0">[AZIENDA]</h1><p style="color:#aaa;margin:4px 0 0;font-size:12px">Offerta n. [NUMERO] del [DATA]</p></td></tr><tr><td style="padding:36px 40px;background:#fff"><p style="color:#333;line-height:1.7">Gentile [NOME],</p><p style="color:#555;font-size:13px"><strong>Condizioni di pagamento:</strong> [PAGAMENTO]</p><p style="color:#555;font-size:13px"><strong>Tempi di consegna:</strong> [CONSEGNA]</p><p style="color:#555;font-size:13px"><strong>Validita offerta:</strong> [VALIDITA]</p><p style="color:#333">Cordiali saluti,</p><p style="color:#1a1a2e;font-weight:700">[NOME MITTENTE]</p></td></tr></table>' },
|
|
1058
|
+
evento: { subject: 'Sei invitato: [NOME EVENTO] — [DATA]', html: '<table width="100%" style="max-width:600px;margin:0 auto;font-family:Arial,sans-serif"><tr><td style="background:linear-gradient(135deg,#0f0f1a,#1a2a1a);padding:48px 40px;text-align:center"><h1 style="color:#00ff9d;margin:0">[NOME EVENTO]</h1><p style="color:#aaffcc;margin:8px 0 0">[DATA] • [ORA] • [LUOGO]</p></td></tr><tr><td style="padding:40px;background:#fff;text-align:center"><p style="color:#444;line-height:1.8;max-width:460px;margin:0 auto 28px">[DESCRIZIONE EVENTO]</p><table style="margin:0 auto"><tr><td style="background:#00ff9d;border-radius:8px;padding:14px 40px"><a href="[LINK_REGISTRAZIONE]" style="color:#0f0f1a;font-weight:700;text-decoration:none">Registrati ora</a></td></tr></table></td></tr></table>' },
|
|
1059
|
+
ringraziamento: { subject: 'Grazie per la fiducia, [NOME]', html: '<table width="100%" style="max-width:580px;margin:0 auto;font-family:Arial,sans-serif"><tr><td style="background:#0f0f1a;padding:32px 40px;text-align:center"><h1 style="color:#fff;font-size:22px">Grazie, [NOME]!</h1></td></tr><tr><td style="padding:40px;background:#fff"><p style="color:#333;line-height:1.8">Volevamo ringraziarti per [MOTIVO].</p><p style="color:#333;line-height:1.8">[MESSAGGIO PERSONALE]</p><p style="color:#333">Con stima,</p><p style="color:#1a1a2e;font-weight:700">[NOME MITTENTE]</p></td></tr></table>' },
|
|
1060
|
+
};
|
|
1061
|
+
const tpl = TEMPLATES[params.templateId];
|
|
1062
|
+
if (!tpl) return `Unknown templateId "${params.templateId}". Valid: ${Object.keys(TEMPLATES).join(', ')}`;
|
|
1063
|
+
const applyVars = (str, vars) => Object.entries(vars).reduce((s, [k, v]) => s.split('[' + k + ']').join(v || ''), str);
|
|
1064
|
+
const subject = applyVars(tpl.subject, params.vars);
|
|
1065
|
+
const html = applyVars(tpl.html, params.vars);
|
|
1066
|
+
const result = await imapSendTpl(params.accountId, { to: params.to, subject, bodyHtml: html });
|
|
1067
|
+
return `Template email "${params.templateId}" sent to ${params.to}. Message-ID: ${result.messageId}`;
|
|
1068
|
+
}
|
|
1069
|
+
|
|
1070
|
+
case 'imap_bulk_send': {
|
|
1071
|
+
if (!params.accountId || !params.recipients?.length || !params.subject || !params.templateId) return 'accountId, recipients, subject, templateId required.';
|
|
1072
|
+
const { sendEmail: imapSendBulk } = await import('./email-smtp.mjs');
|
|
1073
|
+
const BULK_TEMPLATES = {
|
|
1074
|
+
promo_product: '<table width="100%" style="max-width:600px;margin:0 auto;font-family:Arial,sans-serif"><tr><td style="background:#1a1a2e;padding:32px 40px;text-align:center"><h1 style="color:#00ff9d;margin:0">[AZIENDA]</h1></td></tr><tr><td style="padding:40px;background:#fff"><h2 style="color:#1a1a2e">[TITOLO OFFERTA]</h2><p style="color:#444;line-height:1.7">[DESCRIZIONE PRODOTTO/SERVIZIO]</p><table><tr><td style="background:#00ff9d;border-radius:6px;padding:14px 32px"><a href="[LINK_CTA]" style="color:#1a1a2e;font-weight:700;text-decoration:none">[TESTO CTA]</a></td></tr></table></td></tr></table>',
|
|
1075
|
+
newsletter: '<table width="100%" style="max-width:600px;margin:0 auto;font-family:Arial,sans-serif"><tr><td style="background:#0f0f1a;padding:28px 40px;border-bottom:3px solid #00ff9d"><h1 style="color:#fff;margin:0">[AZIENDA]</h1></td></tr><tr><td style="padding:36px 40px;background:#fff"><h2 style="color:#1a1a2e">[TITOLO PRINCIPALE]</h2><p style="color:#555;line-height:1.8">[TESTO PRINCIPALE]</p></td></tr></table>',
|
|
1076
|
+
follow_up: '<table width="100%" style="max-width:580px;margin:0 auto;font-family:Arial,sans-serif"><tr><td style="padding:40px"><p style="color:#333;line-height:1.7">Gentile [NOME],</p><p style="color:#333;line-height:1.7">[CORPO PRINCIPALE]</p><p style="color:#1a1a2e;font-weight:700">[NOME MITTENTE]</p></td></tr></table>',
|
|
1077
|
+
offerta: '<table width="100%" style="max-width:600px;margin:0 auto;font-family:Arial,sans-serif"><tr><td style="background:#1a1a2e;padding:24px 40px"><h1 style="color:#00ff9d;margin:0">[AZIENDA]</h1></td></tr><tr><td style="padding:36px 40px;background:#fff"><p style="color:#333;line-height:1.7">Gentile [NOME],</p><p style="color:#555">[CORPO PRINCIPALE]</p><p style="color:#1a1a2e;font-weight:700">[NOME MITTENTE]</p></td></tr></table>',
|
|
1078
|
+
evento: '<table width="100%" style="max-width:600px;margin:0 auto;font-family:Arial,sans-serif"><tr><td style="background:#0f0f1a;padding:48px 40px;text-align:center"><h1 style="color:#00ff9d;margin:0">[NOME EVENTO]</h1><p style="color:#aaffcc">[DATA]</p></td></tr><tr><td style="padding:40px;background:#fff;text-align:center"><p style="color:#444;line-height:1.8">[DESCRIZIONE EVENTO]</p><table style="margin:0 auto"><tr><td style="background:#00ff9d;border-radius:8px;padding:14px 40px"><a href="[LINK_REGISTRAZIONE]" style="color:#0f0f1a;font-weight:700;text-decoration:none">Registrati</a></td></tr></table></td></tr></table>',
|
|
1079
|
+
ringraziamento: '<table width="100%" style="max-width:580px;margin:0 auto;font-family:Arial,sans-serif"><tr><td style="background:#0f0f1a;padding:32px 40px;text-align:center"><h1 style="color:#fff">Grazie, [NOME]!</h1></td></tr><tr><td style="padding:40px;background:#fff"><p style="color:#333;line-height:1.8">[MESSAGGIO PERSONALE]</p><p style="color:#1a1a2e;font-weight:700">[NOME MITTENTE]</p></td></tr></table>',
|
|
1080
|
+
};
|
|
1081
|
+
const baseTplHtml = BULK_TEMPLATES[params.templateId];
|
|
1082
|
+
if (!baseTplHtml) return `Unknown templateId. Valid: ${Object.keys(BULK_TEMPLATES).join(', ')}`;
|
|
1083
|
+
const applyVars2 = (str, vars) => Object.entries(vars).reduce((s, [k, v]) => s.split('[' + k + ']').join(v || ''), str);
|
|
1084
|
+
const results = [];
|
|
1085
|
+
for (const email of params.recipients) {
|
|
1086
|
+
const perVars = { ...(params.vars || {}), ...((params.perRecipientVars || {})[email] || {}) };
|
|
1087
|
+
const subject = applyVars2(params.subject, perVars);
|
|
1088
|
+
const html = applyVars2(baseTplHtml, perVars);
|
|
1089
|
+
try {
|
|
1090
|
+
await imapSendBulk(params.accountId, { to: email, subject, bodyHtml: html });
|
|
1091
|
+
results.push(`OK: ${email}`);
|
|
1092
|
+
} catch (e) {
|
|
1093
|
+
results.push(`FAIL: ${email} — ${e.message}`);
|
|
1094
|
+
}
|
|
1095
|
+
await new Promise(r => setTimeout(r, 1200)); // 1.2s delay between sends
|
|
1096
|
+
}
|
|
1097
|
+
const ok = results.filter(r => r.startsWith('OK')).length;
|
|
1098
|
+
return `Bulk send complete: ${ok}/${params.recipients.length} sent.\n${results.join('\n')}`;
|
|
1099
|
+
}
|
|
1100
|
+
|
|
943
1101
|
// ── Calendar ──────────────────────────────────────────────────────────
|
|
944
1102
|
case 'calendar_today': {
|
|
945
1103
|
const events = await getTodayEvents(config);
|