github linshenkx/prompt-optimizer v2.18.0

56 minutes ago

English

Summary

Reference video replication now supports clip trimming, keyframe sampling with vision models, and direct video URL fetching. Across workspaces, the default entry moves to User Prompt Optimization, in-app ? help modals open concise Quick Cards backed by unified documentation with expandable details, and the desktop release adds native Windows ARM64 installers with in-app updates.

Highlights

  • Flexible Reference Video Replication: Trim a start/end segment before analysis, fetch direct video URLs, or switch between Native Video Analysis (video understanding models) and Frame Extraction Analysis (sampling keyframes for vision models when no native video model is configured).
  • Clearer Onboarding & Quick-Card Help: New sessions default to User Prompt Optimization (/#/basic/user), empty output cards and setup dialogs show actionable workflow guidance, compare evaluation uses plain product terms instead of academic ML jargon, and every ? help modal opens a scannable quick card with one-click full-guide expansion.
  • Native Windows ARM64 Desktop Builds: Windows releases now ship PromptOptimizer-<version>-win-arm64.exe and .zip alongside win-x64, sharing a unified latest.yml feed so both x64 and arm64 installations receive matching in-app updates.

Product Updates

Desktop

  • Package separate win-x64 and win-arm64 NSIS installers and ZIP archives with a merged latest.yml update manifest so Windows on ARM devices can install and auto-update natively.

Web

  • Default fresh entries to /#/basic/user while preserving saved workspace selections and explicit hash links.
  • Upgrade all 12 contextual ? help topics (including Text-to-Image, Image-to-Image, Multi-Image, and Video workspaces) to show a compact summary first with an Expand full guide toggle and direct link to the documentation site.
  • Replace generic empty placeholders on right-side output cards and in Tool Manager, Conversation Manager, and Function Defaults with concise next-step hints, and unify Optimization Templates and Model Connections terminology across zh-CN, zh-TW, and en-US.

Core/Infra

  • Overhaul bilingual MkDocs guides: update Data Management (.po-backup.zip, cloud backups, cross-device import codes), Model Connections, and Prompt Garden guides, complete remaining English pages, and trim redundant documentation prose.

Fixes

  • Distinguish multiline prompt variable fingerprints accurately so distinct multiline values do not collide in cached states (#389).
  • Stop model JSON parsing at the end of the first complete object so trailing prose from models does not break structured parsing (#390).
  • Parse scientific-notation exponents and leading-dot numbers accurately in custom model parameter values (#391).
  • Eliminate delimiter ambiguity in evaluation cache fingerprints and reuse hashString consistently.
  • Preserve secondary workspace selection across navigation when contextual help controls are rendered in the top bar.

Breaking Changes / Upgrade Notes

  • None. Existing workspaces, saved preferences, and model connections upgrade in place; Windows x64 and arm64 desktop builds automatically select their matching architecture installer during updates.

Developer Notes

Added desktop multi-architecture update resolution tests, MkDocs `` quick-card parser coverage across all 12 in-app help topics, release workflow checks requiring both win-x64 and `win-arm64` differential update metadata, and same-major security patches for transitive dependencies (`cross-spawn`, `ws`, `fast-xml-parser`, `hono`, `@hono/node-server`, `terser`, `glob`, `tar`).

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


中文

概括

参考视频复刻新增片段起止裁剪、抽帧图像分析与视频直链拉取;默认工作区调整为「用户提示词优化」,应用内 ? 帮助升级为同源文档驱动的「速查卡 + 展开详情」,桌面端正式新增原生 Windows ARM64 安装包与应用内自动更新。

亮点

  • 参考视频复刻更灵活:支持在分析前截取起止时间片段、拉取可直连视频 URL,并可在「原生视频分析」(调用视频理解模型)与「抽帧分析」(自动抽取关键帧交由图像识别模型分析)之间切换。
  • 上手路径更顺畅、内置速查卡帮助:首次进入默认打开更常用的「用户提示词优化」(/#/basic/user);右侧测试输出卡片与工具/会话/功能默认弹窗补齐下一步操作提示,对比评估全面替换为直白的产品用语;全部 12 处 ? 帮助弹窗默认打开精简速查卡,支持按需展开完整说明或跳转文档站。
  • 桌面端原生支持 Windows ARM64:Windows 正式发布新增 PromptOptimizer-<version>-win-arm64.exe 与 .zip,并通过合并版 latest.yml 让 x64 与 arm64 设备在应用内更新时各自精准匹配对应架构安装包。

产品更新

Desktop

  • 同时构建独立的 win-x64 与 win-arm64 NSIS 安装包、ZIP 压缩包及差分 .blockmap,生成包含双架构条目的统一 latest.yml 更新清单。

Web

  • 默认入口调整为 /#/basic/user,同时完整保留已保存的工作区偏好与显式路由链接。
  • 12 个上下文 ? 帮助主题(含文生图、图生图、多图生图、视频工作区等)统一与 MkDocs 文档同源,支持「展开详细说明 / 收起详细说明」切换。
  • 为右侧输出空卡片及工具管理、会话管理、功能默认模型面板补充一句话引导,并在简繁英三语统一「优化模板」「模型连接」与对比评估(参考标杆 / 重复验证 / 效果已趋于稳定)文案。

Core/Infra

  • 全面更新与精简中英文文档站:重写数据管理(.po-backup.zip、云端备份、跨设备导入码)、模型连接与 Prompt Garden 指南,补齐全部英文缺失页面并大幅压缩冗余说明。

修复

  • 修复多行提示词变量指纹区分问题,避免不同多行内容产生缓存碰撞(#389)。
  • 修复模型结构化 JSON 解析在首个完整对象结束后未及时截断的问题,避免模型附加尾注导致解析失败(#390)。
  • 修复自定义模型参数对科学计数法与前导小数点数字的解析问题(#391)。
  • 消除评估状态指纹的分隔符歧义,并复用统一的 hashString 计算逻辑。
  • 修复顶部导航接入帮助按钮时次级工作区切换状态丢失的问题。

破坏性变更 / 升级说明

  • 无。已有工作区草稿、偏好设置与模型连接可直接平滑升级;Windows x64 与 arm64 桌面版在检查更新时会自动按当前系统架构拉取对应安装包。

开发者说明

新增桌面端双架构 latest.yml 更新解析单测、12 个内置文档主题的 `` 速查卡解析单测、发版流水线 win-x64 / `win-arm64` 双架构产物及差分 `.blockmap` 完整性校验,并同步升级传递依赖的同主版本安全补丁(`cross-spawn`、`ws`、`fast-xml-parser`、`hono`、`@hono/node-server`、`terser`、`glob`、`tar`)。

安装文档: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.