From 2e30e6d3eb91cf459aad110e55ccf4821d60fa15 Mon Sep 17 00:00:00 2001 From: linshen <32978552+linshenkx@users.noreply.github.com> Date: Mon, 27 Apr 2026 22:05:33 +0800 Subject: [PATCH] build(release): bump version to 2.9.6 --- package.json | 2 +- packages/desktop/package.json | 2 +- packages/extension/public/manifest.json | 2 +- releases/v2.9.6.en.md | 45 +++++++++++++++++++++++++ releases/v2.9.6.zh-CN.md | 45 +++++++++++++++++++++++++ 5 files changed, 93 insertions(+), 3 deletions(-) create mode 100644 releases/v2.9.6.en.md create mode 100644 releases/v2.9.6.zh-CN.md diff --git a/package.json b/package.json index 1fe3c5c1..a7545453 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "prompt-optimizer", - "version": "2.9.5", + "version": "2.9.6", "private": true, "packageManager": "pnpm@10.6.1", "engines": { diff --git a/packages/desktop/package.json b/packages/desktop/package.json index b3456a77..d634c6fa 100644 --- a/packages/desktop/package.json +++ b/packages/desktop/package.json @@ -1,6 +1,6 @@ { "name": "@prompt-optimizer/desktop", - "version": "2.9.5", + "version": "2.9.6", "description": "Desktop application for Prompt Optimizer", "main": "main.js", "repository": { diff --git a/packages/extension/public/manifest.json b/packages/extension/public/manifest.json index 9cd0a698..e514dc33 100644 --- a/packages/extension/public/manifest.json +++ b/packages/extension/public/manifest.json @@ -2,7 +2,7 @@ "manifest_version": 3, "default_locale": "zh_CN", "name": "__MSG_extName__", - "version": "2.9.5", + "version": "2.9.6", "description": "__MSG_extDesc__", "icons": { "16": "icons/icon16.png", diff --git a/releases/v2.9.6.en.md b/releases/v2.9.6.en.md new file mode 100644 index 00000000..c492377c --- /dev/null +++ b/releases/v2.9.6.en.md @@ -0,0 +1,45 @@ +# Prompt Optimizer v2.9.6 + +## Summary +- Enhanced favorites with reproducibility example editing, media management, and one-click example application to workspace sessions. +- Users can now edit reproducibility variables, examples with parameters and images directly in the favorite editor. +- Favorite examples can be applied to pro-variable and image workspaces, pre-filling template variables and input images. +- Consolidated the legacy FavoriteCard component into the editor form with complete test coverage. +- Hardened favorites page routing, workspace navigation guards, and garden favorite deduplication logic. + +## Highlights +This release turns favorites from static prompts into reproducible templates: users can attach variables and examples with parameters and images, then apply an example directly into the corresponding workspace with one click. + +## Product Updates +### Desktop +- No desktop-specific user-facing changes landed in this release. + +### Web +- Added reproducibility example editing with media support (input images and output images) in the favorite editor. +- Added "Apply this example" button on each reproducibility example card in the favorite detail panel. +- Clicking "Apply this example" loads the favorite into the matching workspace and pre-fills the example's parameters as temporary variables and input images. +- Supported workspace targets: pro-variable, pro-multi-message, image-text2image, image-image2image, and image-multiimage. +- Consolidated the legacy FavoriteCard component into FavoriteEditorForm, unifying the create and edit experience. +- Added mode-filtered routing from workspace to favorites page and back. + +### Extension +- No extension-specific user-facing changes landed in this release. + +### Core/Infra +- Added `parseFavoriteReproducibility` utility and `FavoriteReproducibilityExample` types. +- Added `resolveAssetIdToDataUrl` and `normalizeImageSourceToPayload` helpers for example image resolution. +- Extended workspace session APIs (`proMultiMessageSession`, `proVariableSession`, `imageText2ImageSession`, `imageImage2ImageSession`, `imageMultiImageSession`) to support example parameter injection. +- Added comprehensive unit and E2E test coverage for reproducibility display, editor, and example application flows. + +## Fixes +- Fixed duplicate favorite garden details rendering when the same snapshot appeared in multiple preview panels. +- Fixed favorite workspace list item routing to ensure navigation guard compatibility. +- Fixed missing `undefined` second argument assertions in favorite-related component tests after the `useFavorite` signature change. + +## Breaking Changes / Upgrade Notes +- No breaking API or storage-format changes are introduced in this release. +- The `useFavorite` / `use-favorite` signatures now accept an optional second `options` parameter; existing callers work without changes. + +## Developer Notes +- `FavoriteCard.vue` has been removed; use `FavoriteEditorForm.vue` with `FavoriteWorkspaceListItem` for all favorite create/edit/list interactions. +- The example application pipeline is architecture-agnostic: `applyFavoriteExample` resolves target workspace sessions via a key-based mapping (`getFavoriteTargetKey`), making it straightforward to extend to new workspace modes. diff --git a/releases/v2.9.6.zh-CN.md b/releases/v2.9.6.zh-CN.md new file mode 100644 index 00000000..13be0f40 --- /dev/null +++ b/releases/v2.9.6.zh-CN.md @@ -0,0 +1,45 @@ +# Prompt Optimizer v2.9.6 + +## 概括 +- 增强收藏功能:支持可复现性示例编辑、媒体管理,以及一键将示例应用到工作区会话。 +- 用户现在可以在收藏编辑器中直接编辑可复现性变量、带参数和图片的示例。 +- 收藏示例可以应用到 pro-variable 和图像工作区,自动预填模板变量和输入图。 +- 将旧的 FavoriteCard 组件合并到编辑器表单中,统一创建和编辑体验。 +- 强化收藏页面路由、工作区导航守卫和 Garden 收藏去重逻辑。 + +## 亮点 +这一版将收藏从静态提示词升级为可复现模板:用户可以附加变量和包含参数、图片的示例,然后一键将示例应用到对应工作区。 + +## 产品更新 +### Desktop +- 本次发布没有桌面端专属的用户可见变化。 + +### Web +- 收藏编辑器中新增可复现性示例编辑功能,支持媒体(输入图和输出图)。 +- 收藏详情面板的每个可复现性示例卡片上增加"应用此示例"按钮。 +- 点击"应用此示例"会将收藏加载到匹配的工作区,并自动将示例参数填入临时变量、将示例图片填入输入图。 +- 支持的目标工作区:pro-variable、pro-multi-message、image-text2image、image-image2image、image-multiimage。 +- 将旧 FavoriteCard 组件合并到 FavoriteEditorForm,统一创建和编辑交互。 +- 新增从工作区到收藏页的按模式筛选路由及返回路径。 + +### Extension +- 本次发布没有扩展端专属的用户可见变化。 + +### Core/Infra +- 新增 `parseFavoriteReproducibility` 工具函数和 `FavoriteReproducibilityExample` 类型。 +- 新增 `resolveAssetIdToDataUrl` 和 `normalizeImageSourceToPayload` 图片解析辅助函数。 +- 扩展工作区 session API(proMultiMessageSession、proVariableSession、imageText2ImageSession、imageImage2ImageSession、imageMultiImageSession)以支持示例参数注入。 +- 为可复现性展示组件、编辑器、示例应用流程补充完整的单元测试和 E2E 测试。 + +## 修复 +- 修复同一快照在多个预览面板中重复渲染 Garden 收藏详情的问题。 +- 修复收藏工作区列表项路由与导航守卫的兼容性问题。 +- 修复 `useFavorite` 签名变更后收藏相关组件测试中缺少 `undefined` 第二参数断言的问题。 + +## 破坏性变更 / 升级说明 +- 本次发布没有引入 API 或存储格式层面的破坏性变更。 +- `useFavorite` / `use-favorite` 签名新增可选的第二个 `options` 参数,现有调用方无需修改。 + +## 开发者说明 +- `FavoriteCard.vue` 已移除,请使用 `FavoriteEditorForm.vue` 配合 `FavoriteWorkspaceListItem` 进行收藏创建/编辑/列表交互。 +- 示例应用管道与架构解耦:`applyFavoriteExample` 通过基于 key 的映射(`getFavoriteTargetKey`)定位目标工作区会话,便于扩展到新的工作区模式。