chore(news-morning): lock template reference to daily-news-0918
Memind CI / Test, build, and release guards (push) Successful in 3m10s

Finalize the approved 2026-09-18 refined briefing as the production layout and SEO reference for future auto-generation.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
John
2026-09-18 09:46:28 +08:00
parent e962d86ba5
commit 82811d7b89
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -31,7 +31,7 @@ const DEFAULT_MATERIAL_ADD_URL = 'https://api.weixin.qq.com/cgi-bin/material/add
const DEFAULT_UPLOAD_IMG_URL = 'https://api.weixin.qq.com/cgi-bin/media/uploadimg';
const MAX_THUMB_BYTES = 64 * 1024;
export const NEWS_MORNING_TEMPLATE_REFERENCE_URL =
'https://m.tkmind.cn/MindSpace/a70ff537-8908-486e-9b6c-042e07cc25db/public/daily-news-0915.html';
'https://m.tkmind.cn/MindSpace/a70ff537-8908-486e-9b6c-042e07cc25db/public/daily-news-0918.html';
export const NEWS_MORNING_TEMPLATE_VERSION = '2026-09-18-refined';
@@ -45,7 +45,7 @@ export const NEWS_MORNING_SEO_SPEC = [
'6. footer 注明整理时间与主要来源域名,便于 GEO 引用。',
].join('\n');
/** 生产 daily-news-0915 版式:div.section + 扩展全球栏目。 */
/** 生产 daily-news-0918 定稿版式:div.section + 全渠道栏目 + SEO。 */
export const NEWS_MORNING_TEMPLATE_0915_SPEC = [
'生成「每日新闻早报」静态 HTML 页面(daily-news-MMDD),版式必须与生产参照页完全一致(仅 HTML/CSS 结构,禁止复制其正文):',
`参照页:${NEWS_MORNING_TEMPLATE_REFERENCE_URL}`,
+2 -2
View File
@@ -164,7 +164,7 @@ test('news morning draft service persists config and records failed push', async
const preview = await service.preview({ now: Date.parse('2026-09-10T08:00:00+08:00') });
assert.equal(preview.page.slug, 'daily-news-0910');
assert.match(preview.template.spec, /0915|global|Google/u);
assert.match(preview.template.spec, /0918|refined|Google/u);
assert.match(preview.template.spec, /禁止复制|禁止用历史 daily-news/u);
await assert.rejects(
@@ -218,7 +218,7 @@ test('buildNewsMorningAutoGenerationTask requires fresh daily search', () => {
assert.match(task.taskSpec, /全球高校/u);
assert.match(task.taskSpec, /全球股市/u);
assert.match(task.taskSpec, /2026-09-15/u);
assert.match(task.taskSpec, /daily-news-0915\.html/u);
assert.match(task.taskSpec, /daily-news-0918\.html/u);
assert.doesNotMatch(task.taskSpec, /可以用昨日正文/u);
const withBrief = wechatNewsMorningDraftInternals.buildNewsMorningAutoGenerationTask(