Spot it. Save it. Free, local-first Chrome extension for images, videos and prompts. Explore 2,000+ curated cases and connect your library to AI Agents via MCP. 提示词导演
JavaScript ai-artai-videochrome-extensionclaude-codecodexhiggsfieldjimenglocal-firstmcpmidjourneymoodboardprompt-engineeringprompt-libraryprompt-managerreference-libraryseedancevisual-bookmarksweb-clipper
Keep recaptured videos identifiable and complete release regression checks
MigenAI1892184fc346
diff --git a/.github/workflows/release-safety.yml b/.github/workflows/release-safety.ymlindex 7c18870..2d7fef4 100644--- a/.github/workflows/release-safety.yml+++ b/.github/workflows/release-safety.yml@@ -53,6 +53,14 @@ jobs:- name: Install the pinned Chromium test runtimerun: |python -m pip install playwright==1.58.0+ # Playwright supplies Chromium; the runner's unrelated Chrome APT mirror+ # can publish inconsistent indexes and is not needed for OS dependencies.+ sudo python - <<'PYTHON'+ from pathlib import Path+ for source in Path('/etc/apt/sources.list.d').iterdir():+ if source.suffix in ('.list', '.sources') and 'dl.google.com/linux/chrome' in source.read_text():+ source.rename(source.with_suffix(source.suffix + '.disabled'))+ PYTHONpython -m playwright install --with-deps chromium- run: npm run test:local-extension- run: npm run package:releasediff --git a/background.js b/background.jsindex 9909dce..6b81617 100644--- a/background.js+++ b/background.js@@ -1889,7 +1889,7 @@ async function commitPageCapture(batchValue, metadata = {}) {await saveMediaBlob(videoAsset.id, blob);savedAssetIds.push(videoAsset.id);Object.assign(videoAsset, {- storageMode: "managed", mimeType: blob.type, byteSize: blob.size,+ storageMode: "managed", sourceUrl: media.url, mimeType: blob.type, byteSize: blob.size,contentHash, playbackCapability: "unknown"});delete videoAsset.reference;diff --git a/test/ai_provider_registry_e2e.py b/test/ai_provider_registry_e2e.pyindex fdd41b4..5e788a4 100644--- a/test/ai_provider_registry_e2e.py+++ b/test/ai_provider_registry_e2e.py@@ -291,9 +291,13 @@ def assert_new_install_defaults() -> None:library = open_ai_settings(run)expect(library.locator("#ai-provider-list .ai-provider-row")).to_have_count(11)- expect(library.locator('#ai-provider-list [data-provider-category="official"]')).to_contain_text("官方服务")- expect(library.locator('#ai-provider-list [data-provider-category="aggregator"]')).to_contain_text("聚合平台")- expect(library.locator('#ai-provider-list [data-provider-category="custom"]')).to_contain_text("自定义兼容服务")+ library.locator('[data-ai-routing-tab="providers"]').click()+ more = library.locator('#ai-provider-list .ai-more-providers')+ expect(more.locator('summary')).to_have_text('连接其他服务')+ assert not more.evaluate('(node) => node.open'), 'Unused connections stay collapsed on a fresh install'+ more.locator('summary').click()+ expect(more.locator('.ai-provider-row')).to_have_count(11)+ expect(more.get_by_role('button', name='配置 · Kimi', exact=True)).to_be_visible()expect(library.locator('[data-provider-id="kimi"]')).to_contain_text("Kimi")expect(library.locator("#ai-assignment-list .ai-assignment-row")).to_have_count(7)expect(library.locator("#ai-assignment-list .ai-assignment-row", has_text="未连接可用服务")).to_have_count(7)@@ -526,7 +530,7 @@ def main() -> None:expect(library.locator("#text-ai-provider")).to_have_count(0)library.locator('[data-settings-tab="rules"]').click()expect(library.locator("#analysis-instructions-zh")).to_be_visible()- expect(library.locator("#ai-settings-status")).to_contain_text("规则保存在本机")+ expect(library.locator("#ai-settings-status")).to_have_text("已保存")assignments_before_rules = library.evaluate("() => chrome.storage.local.get('aiTaskAssignments').then(value => value.aiTaskAssignments)")library.locator("#analysis-instructions-zh").fill("只保存统一 Registry 的文字分析规则")text_save = library.locator("#ai-settings-form").get_by_role("button", name="保存分析规则")@@ -539,7 +543,7 @@ def main() -> None:expect(text_save).to_be_enabled()library.locator('[data-analysis-kind="vision"]').click()expect(library.locator("#vision-instructions-zh")).to_be_visible()- expect(library.locator("#vision-settings-status")).to_contain_text("规则保存在本机")+ expect(library.locator("#vision-settings-status")).to_have_text("已保存")library.locator("#vision-instructions-zh").fill("只保存统一 Registry 的图片分析规则")vision_save = library.locator("#vision-settings-form").get_by_role("button", name="保存分析规则")vision_save.click()diff --git a/test/libtv_capture_e2e.py b/test/libtv_capture_e2e.pyindex 7394b19..f42e5dc 100644--- a/test/libtv_capture_e2e.py+++ b/test/libtv_capture_e2e.py@@ -51,6 +51,7 @@ def main():assert all(not e['text'] and e['sourceFacts']['description'] == 'Public description, not a prompt' for e in entries)assert all(e['classification']['pathIds'] == ['content:video-case'] for e in entries), entriesassert all(any(a['kind'] == 'video' and a['storageMode'] == 'managed' for a in e['mediaAssets']) for e in entries)+ assert all(next(a for a in e['mediaAssets'] if a['kind']=='video')['sourceUrl'].startswith(CDN+'/video-') for e in entries), entriesrepeated = collector.evaluate("async batch=>chrome.runtime.sendMessage({type:'COMMIT_PAGE_CAPTURE',batch})", batch)assert all(r['status'] == 'duplicate' for r in repeated['results']), repeatedsource.evaluate('''cdn => {diff --git a/test/settings_visual_anchor_e2e.py b/test/settings_visual_anchor_e2e.pyindex 3adde72..51dd0f3 100644--- a/test/settings_visual_anchor_e2e.py+++ b/test/settings_visual_anchor_e2e.py@@ -108,6 +108,7 @@ def exercise_settings(page, viewport: dict) -> None:viewport, f"advanced-tab:{tab}", internal_anchor, current)page.locator('[data-analysis-kind="composer"]').click()+ settle(page)scrolled_to = active_panel.evaluate("panel => { panel.scrollTop = Math.min(120, panel.scrollHeight - panel.clientHeight); return panel.scrollTop; }")@@ -115,7 +116,10 @@ def exercise_settings(page, viewport: dict) -> None:page.locator('[data-settings-tab="tasks"]').click()page.locator('[data-settings-tab="rules"]').click()settle(page)- assert abs(active_panel.evaluate("panel => panel.scrollTop") - scrolled_to) <= MAX_ANCHOR_SHIFT_PX+ restored = active_panel.evaluate("panel => panel.scrollTop")+ assert abs(restored - scrolled_to) <= MAX_ANCHOR_SHIFT_PX, {+ "expected": scrolled_to, "actual": restored, "viewport": viewport,+ }expect(page.locator("#settings-close")).to_be_visible()page.locator("#settings-close").click()diff --git a/test/zhipu_glm_analysis_e2e.py b/test/zhipu_glm_analysis_e2e.pyindex 35805b0..063b5d9 100644--- a/test/zhipu_glm_analysis_e2e.py+++ b/test/zhipu_glm_analysis_e2e.py@@ -479,6 +479,7 @@ def main() -> None:expect(library.locator(".video-analysis-task-status .analysis-diagnostics")).to_have_count(0)library.locator("#open-settings").dispatch_event("click")library.locator('[data-settings-tab="tasks"]').click()+ library.locator(".task-diagnostics > summary").click()details = library.locator("#analysis-diagnostics")details.locator("summary").click()expect(details).to_contain_text("HTTP: 200")