🎬 火宝短剧 - 基于AI的一站式短剧生成平台 《一句话生成完整短剧,从剧本到成片全自动化》 Huobao Drama - An AI-Powered End-to-End Short Drama Generator "One Sentence to Complete Drama: Fully Automated from Script to Final Video"
TypeScript
import { existsSync, readFileSync } from 'node:fs'
import { test } from 'node:test'
import assert from 'node:assert/strict'
const mergeService = readFileSync(new URL('../src/services/ffmpeg-merge.ts', import.meta.url), 'utf8')
const episodesRoute = readFileSync(new URL('../src/routes/episodes.ts', import.meta.url), 'utf8')
const backendIndex = readFileSync(new URL('../src/index.ts', import.meta.url), 'utf8')
const useApi = readFileSync(new URL('../../frontend/app/composables/useApi.ts', import.meta.url), 'utf8')
const composeRoutePath = new URL('../src/routes/compose.ts', import.meta.url)
const composeServicePath = new URL('../src/services/ffmpeg-compose.ts', import.meta.url)
test('episode merge uses generated videos directly without requiring compose output', () => {
assert.doesNotMatch(mergeService, /Only composed storyboards can be merged/)
assert.match(mergeService, /sb\.videoUrl\s*\|\|\s*sb\.composedVideoUrl/)
assert.match(mergeService, /readyVideos\.length !== storyboards\.length/)
})
test('compose workflow is no longer exposed through API surfaces', () => {
assert.doesNotMatch(episodesRoute, /compose_shots/)
assert.doesNotMatch(backendIndex, /api\.route\('\/compose'/)
assert.doesNotMatch(useApi, /export const composeAPI/)
assert.equal(existsSync(composeRoutePath), false)
assert.equal(existsSync(composeServicePath), false)
})