From f9f7f646ea644266f92d292f341c4fb6bc5afa36 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 1 Apr 2026 12:37:19 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E5=AE=A1=E6=9F=A5=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D:=20README=E6=88=AA=E6=96=AD=E6=8F=90=E7=A4=BA?= =?UTF-8?q?=E3=80=81=E5=89=AF=E5=B0=86=E6=97=B6=E9=97=B4=E6=88=B3=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E6=98=8E=E7=A1=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/284f8edb-2975-4e7e-92c4-a1fd84c262d7 Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com> --- brain/deputy-general-config.json | 2 +- scripts/sync-readme-to-notion.js | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/brain/deputy-general-config.json b/brain/deputy-general-config.json index bb09d57f..1ff96488 100644 --- a/brain/deputy-general-config.json +++ b/brain/deputy-general-config.json @@ -19,7 +19,7 @@ "所有行动必须产生回执,写入文书营" ], "never": [ - "不能修改brain/目录下的核心文件(除fast-wake.json的时间戳)", + "不能修改brain/目录下的核心文件(除fast-wake.json的时间戳字段: commander_last_wakeup, last_updated)", "不能删除任何工作流", "不能修改.github/persona-brain/identity.md", "不能修改COPYRIGHT或LICENSE", diff --git a/scripts/sync-readme-to-notion.js b/scripts/sync-readme-to-notion.js index d3362d51..2627f753 100644 --- a/scripts/sync-readme-to-notion.js +++ b/scripts/sync-readme-to-notion.js @@ -224,12 +224,14 @@ async function main() { { object: 'block', type: 'heading_3', - heading_3: { rich_text: [{ type: 'text', text: { content: '📄 README 原始内容' } }] }, + heading_3: { rich_text: [{ type: 'text', text: { content: '📄 README 原始内容(前2000字)' } }] }, }, { object: 'block', type: 'paragraph', - paragraph: { rich_text: richText(readmeContent.slice(0, NOTION_RICH_TEXT_MAX)) }, + paragraph: { rich_text: richText(readmeContent.length > NOTION_RICH_TEXT_MAX + ? readmeContent.slice(0, NOTION_RICH_TEXT_MAX - 20) + '\n\n…(内容已截断)' + : readmeContent) }, }, ], };