Show it a video you love. Get a new video in the same style. An AI crew (Claude Code or Codex) plans, builds and reviews it with you.
JavaScript 2d-animationai-agentsai-videoanimationclaude-codecodexmulti-agentstyle-transfervideo-generation
fix: surface a failed alignment after a music upload too; carry the error in both languages
許元豪acf171020865
diff --git a/app/server/index.ts b/app/server/index.tsindex ed66ae6..fb2673a 100644--- a/app/server/index.ts+++ b/app/server/index.ts@@ -69,7 +69,7 @@ app.post('/api/projects/:id/inputs', upload.array('inputs', 20), async (req, res}// ?for=<required input id>: these files answer that item (any file name); lyrics text/timing is handled thereif (!attach && req.query.for) J.provideInput(req.params.id, String(req.query.for), saved);- else if (!attach) J.alignIfReady(req.params.id).catch(() => null); // background: lyrics waiting for music+ else if (!attach) void J.alignIfReadyWithNotice(req.params.id); // background: lyrics waiting for musicJ.touch(req.params.id);res.json({ ...J.snapshot(req.params.id), saved });});diff --git a/app/server/inputs.ts b/app/server/inputs.tsindex 9b2ef29..e222b68 100644--- a/app/server/inputs.ts+++ b/app/server/inputs.ts@@ -47,8 +47,8 @@ export function withAlignNotice(id: string, p: Promise<LyricsResult | null>): Prreturn r;}).catch((e: Error) => {- chat(id, 'system', L(id, '無法為歌詞對時;流程會繼續,之後重新貼上歌詞即可再試一次',- `Lyrics could not be timed (${e.message}); the run continues`));+ chat(id, 'system', L(id, `無法為歌詞對時(${e.message});流程會繼續,之後重新貼上歌詞即可再試一次`,+ `Lyrics could not be timed (${e.message}); the run continues, and pasting them again later will retry the alignment`));return null;});}diff --git a/app/server/jobs.ts b/app/server/jobs.tsindex a0ba9c0..3672614 100644--- a/app/server/jobs.ts+++ b/app/server/jobs.ts@@ -27,7 +27,7 @@ import type { Production } from './types.ts';export { ROUND_KEYS };export { CANCELLED, CONFIG, PROJECTS, ROOT, ROUND_RANGE, bus, cleanRounds, dirOf, load, rounds, touch, type BusEvent } from './store.ts';-export { alignIfReady, openInputs, provideInput, saveLyrics, unwaive, waive, type LyricsResult } from './inputs.ts';+export { alignIfReady, alignIfReadyWithNotice, openInputs, provideInput, saveLyrics, unwaive, waive, type LyricsResult } from './inputs.ts';export { stopAll } from './runner.ts';export const busy = active; // a flow is running for this project (runner.ts allows one at a time)// Stop the project's flow and every process it started; background renders queued behind them don't start either.