设置 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 弹出安全提示,请停止并让用户直接解决。不要点击通过安全提示。如果设置失败,请报告失败步骤和具体错误,然后停止,而不是安装上游包。