feat(wechat): add service-account push subscriptions and news morning cover delivery
Memind CI / Test, build, and release guards (push) Successful in 5m36s

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>
This commit is contained in:
john
2026-09-20 16:15:15 +08:00
parent 1c007999e5
commit 830f8a4011
49 changed files with 4009 additions and 89 deletions
@@ -116,6 +116,8 @@ export async function bootstrapPortalDomainServices({
const scheduleService = createScheduleServiceFn(pool, {
defaultTimezone:
env.H5_DEFAULT_TIMEZONE || 'Asia/Shanghai',
h5Root,
env,
});
const scheduledTaskService = createScheduledTaskServiceFn(pool, {
defaultTimezone:
@@ -52,6 +52,7 @@ export async function bootstrapPortalIntegrationServices({
mindSpacePages,
mindSpacePageLiveEdit,
syncUserGeneratedPages = null,
mindSpaceImageGeneration = null,
logger = console,
healthChannelStore = null,
healthObservationStore = null,
@@ -377,7 +378,9 @@ export async function bootstrapPortalIntegrationServices({
mpConfig: wechatMpConfig,
h5Root,
memindLibRoot: codeRoot || h5Root,
imageGenerationService: mindSpaceImageGeneration,
env,
logger,
});
let wechatNewsMorningDraftWorker = null;