feat: 检索词表 + 表情技能 + 海报字重编排 三向增强
- 中文语义词表 425 → 619 条(+194),新增行业细分/商业指标/技术工程/合规风控/节日节气/生活服务等 17 组场景词;对 11.8 万图标名语料复核覆盖率 99.0% - 表情技能 12 → 20(motion 11→13 新增循环接缝/多元素错峰;emotion 1→7 新增强度匹配/场景克制/覆盖度/可读性/调性一致/情绪跳变) - 共享技能 54 → 55:新增头像向技能 avatar-safe-zone(圆/方裁切安全区),映射到方案评审步骤 - 海报字体层级:新增 TYPE_SCALES 四档白名单(impact/editorial/steady/quiet),AI 决策 JSON 增加 typeScaleId,渲染层按预设输出 400/700/800 与字号比;非法值回退默认 - 修复 audit-emojis.html 技能数量断言过期(12→20);emoji-smoke 62/62 通过,audit-emojis 27 通过 0 失败 - 版本联动 20261108e(cn-tags / skills core+layout / sticker skills / poster-generator+ai)
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
* 1) motion:帧函数确定性、normalize 补参、帧时间序列、pickAnim 轮换、composeTransform 合法
|
||||
* 2) gifEncoder:lzwEncode 子块结构 + 确定性(纯函数,用假像素序列)
|
||||
* 3) emojiGen:generateEmojis 产物带 anim、buildFrameSvg SVG 合法且含动画 transform、纯图形无文字
|
||||
* 4) sticker-skills:12 技能 test 全部通过、分类白名单 motion/emotion、workspaces 统一 emoji、
|
||||
* 4) sticker-skills:20 技能 test 全部通过、分类白名单 motion/emotion、workspaces 统一 emoji、
|
||||
* emotion-fit 评审覆盖 6 种标准情绪(与 emotion-params 生成决策同源)
|
||||
* 5) emojiAi:降级路径 + validate 白名单修正;情绪驱动降级(无 AI 时首张动画贴合情绪)
|
||||
*/
|
||||
@@ -126,7 +126,7 @@ check('contentBox 存在且有效', !!box && box.w > 0 && box.h > 0, box.w.toFix
|
||||
/* ============ 4) sticker-skills ============ */
|
||||
console.log('== 4) sticker-skills 技能库 ==');
|
||||
const SKILL_ALL = HGB_StickerSkills.all();
|
||||
check('技能总数 = 12', SKILL_ALL.length === 12, '实际 ' + SKILL_ALL.length);
|
||||
check('', SKILL_ALL.length === 20, '实际 ' + SKILL_ALL.length);
|
||||
check('分类白名单 = motion/emotion', HGB_StickerSkills.categories().every(c => ['motion', 'emotion'].includes(c.id)), HGB_StickerSkills.categories().map(c => c.id).join('/'));
|
||||
check('workspaces 统一 emoji', SKILL_ALL.every(s => HGB_StickerSkills.workspacesOf(s.id).includes('emoji')));
|
||||
let sFail = 0;
|
||||
@@ -135,7 +135,7 @@ for (const s of SKILL_ALL) {
|
||||
if (!r || r.error || r.ok === false) { sFail++; console.log(' ❌ test 失败: ' + s.id + ' — ' + JSON.stringify(r)); }
|
||||
else check(s.id + ' test 通过', true);
|
||||
}
|
||||
check('12 技能 test 全通过', sFail === 0);
|
||||
check('20 技能 test 全通过', sFail === 0);
|
||||
|
||||
// 评审闭环:emotion-fit 覆盖 6 种标准情绪(与 emotion-params 生成决策同源)
|
||||
const EFIT = [
|
||||
|
||||
Reference in New Issue
Block a user