設定 Zura Premiere Reels
當使用者要求安裝、設定或修復 Zura Premiere Reels(包括在單一提示 GitHub 安裝過程中)時,執行此設定步驟。在 Windows 上,直接執行封裝安裝程式;不要切換至上游 npm 套件或使用 Computer Use。
-
使用已安裝的外掛記錄來尋找其設定腳本,避免在更新後選取到舊的快取副本。執行這個 PowerShell 命令:
$codex = Get-Command codex.cmd -ErrorAction SilentlyContinue if (-not $codex) { $codex = Get-Command codex -ErrorAction SilentlyContinue } if (-not $codex) { throw "Codex CLI 未在 PATH 中找到。" } $pluginList = (& $codex.Source plugin list --json | ConvertFrom-Json) if ($LASTEXITCODE -ne 0) { throw "無法讀取已安裝的 Codex 外掛清單。" } $installed = @($pluginList.installed | Where-Object { $_.name -eq "zura-premiere-reels" -and $_.enabled }) $oaPlugin = @($installed | Where-Object { $_.marketplaceName -eq "oa-motion-software" }) if ($oaPlugin.Count -eq 1) { $plugin = $oaPlugin[0] } elseif ($installed.Count -eq 1) { $plugin = $installed[0] } else { throw "請先啟用一個已安裝的 Zura Premiere Reels 外掛,再執行設定。" } $setup = Join-Path $plugin.source.path "scripts\setup-zura-premiere-reels.ps1" if (-not (Test-Path -LiteralPath $setup -PathType Leaf)) { throw "找不到已安裝的 Zura 外掛設定腳本於 $setup。" } & powershell.exe -NoProfile -ExecutionPolicy Bypass -File $setup if ($LASTEXITCODE -ne 0) { throw "Zura Premiere Reels 設定失敗,結束代碼為 $LASTEXITCODE。" } -
等待安裝程式完成。它會使用此外掛中捆綁的 MCP 來源,僅在需要時使用
winget安裝 Node.js LTS,建置並安裝本機 MCP,安裝並自動啟動 CEP 面板,並移除任何重複的獨立 Codex MCP 項目,讓此外掛掌握連線。 -
確認安裝程式回報成功,且
zura-premiere-mcp已位於 PATH 中。在全新聊天成功呼叫 MCP 之前,請勿聲稱 Codex 已連線。 -
不要自動重新啟動 Premiere 或 Codex。如果 Premiere 需要重新啟動才能載入面板,或者因為設定過程中安裝了 Node.js 而需要重新啟動 Codex,請告知使用者。請不要要求他們重複進行安裝。
如果 PowerShell 或 Windows 出現安全性提示,請停止並要求使用者直接解決。不要點擊通過安全性提示。如果設定失敗,請回報失敗的步驟和確切錯誤,然後停止,不要安裝上游套件。