合并远端主分支更新
Project CI / Repository checks (pull_request) Failing after 54s
Project CI / Frontend tests (pull_request) Successful in 3m30s
Project CI / Backend tests (pull_request) Successful in 4m21s
Project CI / Native shell tests (pull_request) Has been cancelled

同步主分支音效生成与External v1契约更新
保留图标规范与图集生成链路
适配VectorEngine LLM客户端命名并解决前端提交语义冲突
This commit is contained in:
2026-08-08 21:54:30 +08:00
103 changed files with 11863 additions and 1097 deletions
@@ -266,8 +266,10 @@ describe('ImageCanvasGenerationDialogModel', () => {
prompt: '',
status: 'idle',
composerOpen: true,
soundModel: 'audio1.0',
soundModel: 'eleven_text_to_sound_v2',
soundDurationMode: 'auto',
soundDurationSeconds: 5,
soundLoop: false,
placeholder: {
x: 270,
y: 300,
@@ -326,8 +328,10 @@ describe('ImageCanvasGenerationDialogModel', () => {
mode: 'audio-sound-effect',
sourceLayerId: 'layer-sfx',
prompt: '金币收集音',
soundModel: 'audio1.0',
soundModel: 'eleven_text_to_sound_v2',
soundDurationMode: 'manual',
soundDurationSeconds: 7,
soundLoop: false,
composerOpen: true,
placeholder: {
x: 472,
@@ -385,6 +389,46 @@ describe('ImageCanvasGenerationDialogModel', () => {
});
});
it('restores authoritative SFX V2 prompt, duration mode, and loop on redraw', () => {
const draft = createAudioRedrawGenerationDialogDraft(
createLayer({
id: 'layer-sfx-v2',
mediaType: 'audio',
assetKind: 'sound-effect',
prompt: '不应覆盖权威用户描述',
generationInputs: {
fields: [
{ title: '用户描述', value: '金币落地' },
{ title: '实际英文提示词', value: 'A bright coin landing chime' },
{ title: '时长', value: '7.42秒' },
{ title: 'Loop', value: '开启' },
],
references: [],
soundEffect: {
schemaVersion: 2,
userPrompt: '金币落地',
actualPrompt: 'A bright coin landing chime',
model: 'eleven_text_to_sound_v2',
durationMode: 'auto',
requestedDurationSeconds: null,
actualDurationSeconds: 7.42,
loop: true,
},
},
}),
);
expect(draft).toMatchObject({
mode: 'audio-sound-effect',
sourceLayerId: 'layer-sfx-v2',
prompt: '金币落地',
soundModel: 'eleven_text_to_sound_v2',
soundDurationMode: 'auto',
soundDurationSeconds: 5,
soundLoop: true,
});
});
it('creates edit, quick-edit, and character animation panel drafts', () => {
const sourceLayer = createLayer({
prompt: '【系统内置】完整拼接提示词:原图提示,自动画质优化。',