代码审查修复: 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:
parent
5a7eeed774
commit
f9f7f646ea
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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) },
|
||||
},
|
||||
],
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue