github linshenkx/prompt-optimizer v2.17.3

45 minutes ago

English

Summary

The MCP preview (0.2.0-beta.5) adds video model management, reference video replication, and video generation, alongside clearer status contracts, stable source identifiers, and recovery hints for autonomous AI callers. The default General Optimization template adds lightweight guardrails for constraint preservation and reduced repetition.

Highlights

  • Manage video connections, estimate generation cost, turn reference clips into editable prompts, and submit or poll video generation runs through MCP.
  • Improve autonomous MCP ergonomics: desktop sourceId values remain stable across restarts, run endpoints include runId alongside id with explicit terminal status documentation, common errors return actionable next-step hints, and startup checks report unsupported Node.js versions clearly.

Product Updates

  • Add videoModels and videoProviders domains plus video-model-test, video-understand, and video run kinds in MCP, and expose structured runContracts for every run kind in po_catalog.
  • Extend inputRunId chaining to iterate, prompt-only evaluation, image generation, and video generation, and classify saved history chains accurately for video and image templates.
  • Add domain-neutral guardrails to the built-in general-optimize template to preserve explicit constraints, boundaries, and proper names, confirm unspecified implementation assumptions first, and avoid verbatim cross-section repetition.

Fixes

  • Report a clear SUBSCRIPTION_AUTH_UNAVAILABLE error with recovery guidance when a desktop ChatGPT subscription connection is invoked from standalone CLI MCP.
  • Omit inline base64 video payloads from persisted MCP run input snapshots to keep local run storage compact.

Breaking Changes / Upgrade Notes

  • No breaking changes. MCP clients using npx -y @prompt-optimizer/mcp-server@beta will pick up 0.2.0-beta.5 automatically on restart.

Developer Notes

Consolidated end-to-end regression suites and added unit and stdio acceptance coverage for general-optimize guardrails and video MCP workflows.

Installation guide: English | 中文
Source release notes (EN)


中文

概括

MCP 预览版(0.2.0-beta.5)新增视频模型管理、参考视频复刻与视频生成支持,并完善 AI 自主调用时的状态、标识与错误恢复提示。默认「通用优化」模板新增轻量保真与防重复护栏。

亮点

  • 通过 MCP 管理视频模型连接、预估费用、将参考视频复刻为可编辑提示词,或提交视频生成任务并轮询临时预览地址。
  • 改善 AI 自主调用 MCP 的体验:桌面来源 sourceId 跨进程重启保持稳定,运行接口统一提供 runId 字段与完整终态说明,高频错误附带明确的下一步恢复提示,并在启动时前置检测 Node.js 版本。

产品更新

  • MCP 新增 videoModels、videoProviders 业务域与 video-model-test、video-understand、video 运行类型,并在 po_catalog 中提供全部运行类型的结构化字段契约 runContracts。
  • MCP inputRunId 支持串联到迭代(iterate)、纯提示词评估(prompt-only)、生图与视频生成;优化结果存入历史记录时按所用模板自动归入视频、图像等对应分类。
  • 默认「通用优化」(general-optimize)模板补充领域中立的轻量护栏:保留原稿明确给出的限制、边界与专有名称,对未指定的实现方案优先引导确认现状,并减少跨章节机械重复。

修复

  • 修复独立 MCP 进程选择桌面 ChatGPT 订阅连接时错误提示不明确的问题,改为直接提示切换 API Key 模型配置。
  • 内联视频理解请求在保存运行记录时省略原始二进制数据,避免占用过多本地存储空间。

破坏性变更 / 升级说明

  • 无破坏性变更。使用 MCP 的客户端重新运行 npx -y @prompt-optimizer/mcp-server@beta 即可获取 0.2.0-beta.5。

开发者说明

整理并收敛端到端回归测试套件,补充默认通用优化模板护栏单测与视频 MCP 全链路 stdio 验收测试。

安装文档:English | 中文
仓库版本说明(中文)


macOS note: if macOS reports the app as damaged or cannot verify the developer, this is usually caused by the quarantine attribute on downloaded apps. See the installation guide, or remove it after installing with xattr -rd com.apple.quarantine /Applications/PromptOptimizer.app; for a downloaded DMG, you can run the same command on ~/Downloads/PromptOptimizer-*.dmg before installing.
macOS 备注:如果 macOS 提示“已损坏”或“无法验证开发者”,通常是下载文件的隔离属性导致。请参考安装文档;也可以在安装后执行 xattr -rd com.apple.quarantine /Applications/PromptOptimizer.app,或在安装前对 ~/Downloads/PromptOptimizer-*.dmg 执行同类命令。

Don't miss a new prompt-optimizer release

NewReleases is sending notifications on new releases.