修复 Codex rollout 历史合并并重新打包
This commit is contained in:
@@ -76,10 +76,17 @@ check('ccweb_send_message schema requires replyMode with the exact enum', () =>
|
||||
|
||||
check('ccweb_send_message description states strong selection and non-blocking rules', () => {
|
||||
const description = String(publicSendTool.description || '');
|
||||
const replyModeDescription = String(publicSendTool.inputSchema?.properties?.replyMode?.description || '');
|
||||
assert.match(description, /one_way/, 'description must mention one_way');
|
||||
assert.match(description, /return_and_continue/, 'description must mention return_and_continue');
|
||||
assert.match(description, /立即返回/, 'description must say calls return immediately');
|
||||
assert.match(description, /(不阻塞|不会阻塞|不等待)/, 'description must state the call does not block/wait');
|
||||
assert.match(description, /两种模式/, 'description must say both modes return immediately');
|
||||
assert.match(description, /不是等待|不表示当前调用需要等待/, 'description must distinguish async return from waiting');
|
||||
assert.match(description, /不要使用 sleep/, 'description must forbid sleep polling');
|
||||
assert.match(description, /不要轮询等待/, 'description must forbid polling for the reply');
|
||||
assert.match(replyModeDescription, /异步回传/, 'replyMode schema must explain asynchronous return delivery');
|
||||
assert.match(replyModeDescription, /不要 sleep 或轮询等待/, 'replyMode schema must forbid sleep polling');
|
||||
assert.match(
|
||||
description,
|
||||
/(仅当[\s\S]*来源[\s\S]*不需要[\s\S]*结果[\s\S]*one_way|one_way[\s\S]*仅当[\s\S]*来源[\s\S]*不需要[\s\S]*结果)/,
|
||||
|
||||
Reference in New Issue
Block a user