代码审查修复: README截断提示、副将时间戳字段明确

Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/284f8edb-2975-4e7e-92c4-a1fd84c262d7

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2026-04-01 12:37:19 +00:00 committed by GitHub
parent 5a7eeed774
commit f9f7f646ea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 3 deletions

View File

@ -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",

View File

@ -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) },
},
],
};