Text to vertical video in 100+ styles: AI codes each scene (HTML/SVG/WebGL), renders a 9:16 MP4 with music and English/Vietnamese voice. MCP, CLI and REST for AI agents.
Gộp P2 + P3: bỏ danh sách mẫu gói bị trùng, import trùng
Lumtek9bd2a1f79846
diff --git a/server/server.mjs b/server/server.mjsindex 2f49af0..500dd42 100644--- a/server/server.mjs+++ b/server/server.mjs@@ -22,7 +22,6 @@ import { listTemplates, resolveTemplate, parsePackRef, BUILTIN_TEMPLATE_RE } froimport { originOk } from '../edit/http.mjs';import { isCloneVoice, cloneRef } from '../engine/audio/voice-store.mjs';import { handleDraftRoute, initDrafts } from '../packs/drafts-http.mjs';-import { listTemplates, thumbFile } from '../packs/registry.mjs';const AUDIO_SAMPLES = path.join(ROOT, 'engine', 'audio', 'samples');/** File nghe thử (cache trong engine/audio/samples/, chỉ sinh khi chưa có). Trả đường dẫn tuyệt đối. */@@ -163,15 +162,7 @@ function templateList() {videoKind: demo ? 'demo' : refVideo ? 'ref' : null,source: 'builtin',};- }).concat(listTemplates().filter((t) => t.source !== 'builtin').map((t) => {- // mẫu gói đã cài + "Của tôi" (local.mine, tạo từ video): ảnh đại diện lấy từ job dựng thử, không có video demo- const slug = t.ref.split('/')[1];- return {- id: t.ref, name: t.name, blurb: t.blurb || '', category: t.category, genre: t.genre, technique: t.technique,- difficulty: t.difficulty, narration: t.narration, hasGuidance: true, source: t.source, packId: t.packId, restricted: true,- thumb: thumbFile(t.packId, 'template', slug) ? `/pack-thumbs/${t.packId}/template-${slug}.webp` : null, video: null, videoKind: null,- };- }));+ });}/** Poster SVG cho mẫu chưa có video demo: nền gradient theo id, tên phong cách, nhóm. */