Skip to content

Fix media service-worker imports and support OpenRouter videos - #3154

Merged
webbrain-one merged 3 commits into
webbrain-one:mainfrom
esokullu:main
Oct 6, 2026
Merged

webbrain-one merged 3 commits into
webbrain-one:mainfrom
esokullu:main

Conversation

@webbrain-one

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI balanced review requested due to automatic review settings October 6, 2026 16:26
@vercel

vercel Bot commented Oct 6, 2026

Copy link
Copy Markdown

@esokullu is attempting to deploy a commit to the esokullu's projects Team on Vercel.

A member of the Team first needs to authorize it.

@webbrain-one
webbrain-one merged commit 1b7a345 into webbrain-one:main Oct 6, 2026
1 of 2 checks passed

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

Polling reliability, extension-test synchronization, CI coverage, and documentation need correction.

Review effort: Balanced
Findings: 4 Medium severity · 1 Low severity

Open (5)
What changed in this PR

Adds OpenRouter video generation and fixes MV3 media imports.

Changes:

  • Supports video model discovery, polling, and downloads.
  • Replaces dynamic legacy imports with static exports.
  • Adds media unit, UI, and extension tests; bumps version to 39.1.3.
File Description
test/​generative-media.mjs Tests video generation and static exports.
test/​generative-media-ui.mjs Mocks image model discovery.
test/​generative-media-extension.mjs Adds MV3 integration coverage.
src/​firefox/​src/​ui/​settings.js Updates displayed version.
src/​firefox/​src/​ui/​locales/​generative-media-copy.mjs Adds video-oriented copy.
src/​firefox/​src/​agent/​generative-media.js Implements OpenRouter videos.
src/​firefox/​src/​agent/​fal-media.js Uses static legacy exports.
src/​firefox/​manifest.json Bumps extension version.
src/​firefox/​ARCHITECTURE.md Updates documented version.
src/​chrome/​src/​ui/​settings.js Updates displayed version.
src/​chrome/​src/​ui/​locales/​generative-media-copy.mjs Adds video-oriented copy.
src/​chrome/​src/​agent/​generative-media.js Implements OpenRouter videos.
src/​chrome/​src/​agent/​fal-media.js Fixes MV3 legacy exports.
src/​chrome/​manifest.json Bumps extension version.
src/​chrome/​ARCHITECTURE.md Updates documented version.
package.json Adds extension test command and version.
package-lock.json Synchronizes package version.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread package.json
"test:generative-media": "node --test test/generative-media.mjs",
"test:generative-media:ui": "node test/generative-media-ui.mjs"
"test:generative-media:ui": "node test/generative-media-ui.mjs",
"test:generative-media:extension": "node test/generative-media-extension.mjs"
Comment on lines +142 to +144
const statusRes = await request(jobUrl, { headers });
const status = await jsonResponse(statusRes, 'OpenRouter video status');
waitMs = pollDelay(statusRes, pollMs);
Comment on lines +142 to +144
const statusRes = await request(jobUrl, { headers });
const status = await jsonResponse(statusRes, 'OpenRouter video status');
waitMs = pollDelay(statusRes, pollMs);
Comment on lines +38 to +45
await page.locator('#btn-save-image-gen').click();
await page.waitForFunction(model => document.querySelector('#test-image-gen').classList.contains('ok')
&& document.querySelector('#image-gen-model').value === model, model);
await page.locator('#btn-test-image-gen').click();
await page.waitForFunction(() => {
const result = document.querySelector('#test-image-gen');
return result.classList.contains('ok') || result.classList.contains('fail');
});
'st.imagegen.setup': 'Setup guide ↗',
'st.imagegen.hint.fal': 'Enter your fal.ai key and model ID. Test Connection checks authentication without generating media.',
'st.imagegen.hint.openrouter': 'Enter an OpenRouter key and an image generation model ID. Test Connection checks the key and image catalog without generating an image.',
'st.imagegen.hint.openrouter': 'Enter an OpenRouter key and an image or video generation model ID. Test Connection checks the key and model catalog without generating media.',
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants