Make videos on the computer you already own. FreeVideo runs MiniMax H3 in as little as 8 GB of VRAM and 16 GB of RAM, and adapts its acceleration path to your hardware.
Test editor finalization and startup restoration
Bowen Xue591fba4d98c6
diff --git a/scripts/test_freevideo_entry.mjs b/scripts/test_freevideo_entry.mjsindex 7a8bceb..8efaa72 100644--- a/scripts/test_freevideo_entry.mjs+++ b/scripts/test_freevideo_entry.mjs@@ -271,6 +271,34 @@ test('main browser entry registers both views and preserves node hooks', async tfinishEditor(); await Promise.resolve(); await Promise.resolve();assert.deepEqual(openingEvents.at(-1), ['finish'], 'keep the opening status and update suppression until editor.ready');launchReady = null;+ await t.test('a graph replaced while launcher restoration waits cannot reopen its editor', async () => {+ let release, calls = 0;+ launchReady = new Promise(resolve => { release = resolve; });+ dependencies.openEditorView = () => { calls++; return {ready: Promise.resolve()}; };+ extension.beforeConfigureGraph(); extension.afterConfigureGraph();+ extension.beforeConfigureGraph(); app.graph._nodes = [];+ const releases = restoreReleases; extension.afterConfigureGraph();+ assert.equal(restoreReleases, releases + 1);+ release(); await Promise.resolve(); await Promise.resolve();+ assert.equal(calls, 0, 'a stale launcher callback must not import or open an editor');+ launchReady = null; app.graph._nodes = nodes;+ });+ await t.test('a graph replaced while the editor import waits cannot cover the new workflow', async () => {+ let release, options;+ dependencies.openEditorView = async (_node, value) => {+ options = value;+ await new Promise(resolve => { release = resolve; });+ return value.isCurrent() ? {ready: Promise.resolve()} : null;+ };+ extension.beforeConfigureGraph(); extension.afterConfigureGraph();+ assert.equal(options.isCurrent(), true);+ extension.beforeConfigureGraph(); app.graph._nodes = []; extension.afterConfigureGraph();+ const covered = openingEvents.filter(row => row[0] === 'cover').length;+ assert.equal(options.isCurrent(), false);+ release(); await Promise.resolve(); await Promise.resolve(); await Promise.resolve();+ assert.equal(openingEvents.filter(row => row[0] === 'cover').length, covered);+ app.graph._nodes = nodes;+ });// The lazy loader owns failed imports: it notifies, reports through onFailure and resolves null.dependencies.openEditorView = async (node, options) => { options.onFailure(new Error('editor unavailable')); return null; };extension.afterConfigureGraph(); await Promise.resolve();diff --git a/web/editor_genbar.js b/web/editor_genbar.jsindex 3802c84..b8aac86 100644--- a/web/editor_genbar.js+++ b/web/editor_genbar.js@@ -9,13 +9,13 @@ export const timeEstimate = (seconds, t) => seconds == null ? '' : seconds < 60: t(`about ${Math.ceil(seconds / 60)} minutes`, `约 ${Math.ceil(seconds / 60)} 分钟`);// Provisional copy keys for Iris; decode/save sentences follow Studio's stage vocabulary.export const CLIP_FINALIZATION_COPY = {- prepareDecode: ['Preparing video decoding', '正在准备解码视频'],+ prepareDecode: ['Preparing video output', '正在准备输出视频'],loadDecoder: ['Loading the video decoder', '正在载入视频解码器'],- decodeVideo: ['Decoding the video', '正在解码视频'],- decodeAudio: ['Decoding the audio', '正在解码音频'],+ decodeVideo: ['Rendering the video', '正在输出视频'],+ decodeAudio: ['Rendering the audio', '正在输出音频'],saveVideo: ['Saving the video', '正在保存视频'],- openClip: ['Loading the generated clip', '正在载入生成片段'],- joinClips: ['Combining the clips', '正在合成片段'],+ openClip: ['Adding it to the timeline', '正在放到时间线上'],+ joinClips: ['Joining the parts', '正在拼接各段'],};export function clipFinalization(job) {if (!job || !['running', 'queued'].includes(job.state)) return null;diff --git a/web/health.js b/web/health.jsindex 324ffcd..e4bf061 100644--- a/web/health.js+++ b/web/health.js@@ -649,7 +649,7 @@ async function check() {show(found); send('error', found);}await waitForVisible();- if (checkStudio && studioWorkflow(app.graph) && preferredView() !== 'nodes' && !document.querySelector('dialog.fv-studio[open]')+ if (checkStudio && studioWorkflow(app.graph) && preferredView() !== 'nodes' && !['dialog.fv-workspace-opening[open]', 'dialog.fv-editor[open]', 'dialog.fv-studio[open]'].some(selector => document.querySelector(selector))&& !reports.some(item => item.type === 'error' && item.where === 'studio'))problems.unshift({text: t('The creative workspace did not open.', '创作面板没有打开。'), advice: 'reload'});problems.push(...lastProblems);diff --git a/web/workspace_restore.js b/web/workspace_restore.jsindex b315928..534facf 100644--- a/web/workspace_restore.js+++ b/web/workspace_restore.js@@ -3,7 +3,7 @@ import { isLaunchVisit } from './launch_visit.js';// Provisional copy keys for Iris. Keep project names as text, never markup.export const WORKSPACE_OPENING_COPY = {opening: ['Opening', '正在打开'],- openingNamed: ['Opening {name}', '正在打开 {name}'],+ openingNamed: ['Opening "{name}"', '正在打开“{name}”'],};let opening = null;const query = new URLSearchParams(typeof location === 'undefined' ? '' : location.search);