Files
memind/wechat/push-content/tech-delivery.mjs
T
john 830f8a4011
Memind CI / Test, build, and release guards (push) Successful in 5m36s
feat(wechat): add service-account push subscriptions and news morning cover delivery
Ship the 10-item numeric subscription loop on WeChat MP, wire schedule delivery
for news/weather/quote/health/finance/tech/knowledge/night/surprise pushes, and
extend news morning draft cover generation plus a one-shot draft push script.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-20 16:15:15 +08:00

24 lines
645 B
JavaScript

import {
buildSectionCardsPushText,
extractCardsFromSectionIds,
loadTodayNewsMorningHtml,
} from './news-section-extract.mjs';
export async function formatTechPushDelivery(options = {}) {
const { html, dateLabel, publicUrl } = await loadTodayNewsMorningHtml(options);
const cards = html ? extractCardsFromSectionIds(html, ['tech', 'technews']) : [];
return {
text: buildSectionCardsPushText({
emoji: '🤖',
label: 'AI / 科技早报',
dateLabel,
cards,
maxItems: 5,
includeSummary: true,
publicUrl,
cancelId: 5,
}),
verifiedHtmlUrls: publicUrl ? [publicUrl] : [],
};
}