feat(image): complete reviewed generation delivery
Memind CI / Test, build, and release guards (pull_request) Successful in 2m47s

This commit is contained in:
john
2026-07-20 20:04:44 +08:00
parent fc3d27aae0
commit 4b15610aa8
42 changed files with 1764 additions and 97 deletions
+5 -1
View File
@@ -65,9 +65,13 @@ test('router injects a fail-closed generate_image contract for required visual p
});
assert.equal(classification.imageGeneration.mode, IMAGE_GENERATION_MODE.REQUIRED);
const enriched = router.applyAgentOrchestration(userMessage, classification, {
grantedSkills: ['static-page-publish'],
grantedSkills: ['static-page-publish', 'image-generation'],
});
assert.match(enriched.content[0].text, /load_skill → image-generation/);
assert.match(enriched.content[0].text, /不要反问用户工具参数/);
assert.match(enriched.content[0].text, /sandbox-fs__generate_image/);
assert.match(enriched.content[0].text, /asset\.htmlSrc/);
assert.match(enriched.content[0].text, /workspaceRelativePath 只用于工作区文件操作/);
assert.match(enriched.content[0].text, /当前这一次执行中发起新的 generate_image/);
assert.match(enriched.content[0].text, /历史对话中的成功或失败都不能作为本轮结果/);
assert.match(enriched.content[0].text, /hero 成功后必须复用该资产/);