From d1afce54bf47bc7fe3b1506a78552715740ae94c Mon Sep 17 00:00:00 2001 From: linshen <32978552+linshenkx@users.noreply.github.com> Date: Fri, 24 Apr 2026 23:30:56 +0800 Subject: [PATCH] build(release): bump version to 2.9.5 --- CHANGELOG.md | 4 +++ package.json | 2 +- packages/desktop/package.json | 2 +- packages/extension/public/manifest.json | 2 +- releases/v2.9.5.en.md | 42 +++++++++++++++++++++++++ releases/v2.9.5.zh-CN.md | 42 +++++++++++++++++++++++++ 6 files changed, 91 insertions(+), 3 deletions(-) create mode 100644 releases/v2.9.5.en.md create mode 100644 releases/v2.9.5.zh-CN.md diff --git a/CHANGELOG.md b/CHANGELOG.md index 6793e6dc..b361d419 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ Full release narratives now live in versioned files under `releases/`. This file stays as the index and summary entry point. +## [2.9.5] - 2026-04-24 +- EN: This patch adds a workspace-wide clear-content tool, makes Prompt Garden imports start from a clean workspace state, restores missing DeepSeek parameter and import-failure localization, and keeps Trellis workspace artifacts ignored. See [Release Notes (EN)](releases/v2.9.5.en.md). +- 中文:本次补丁新增工作区“清理内容”工具,让 Prompt Garden 导入先清场再写入新内容,补齐 DeepSeek 参数与导入失败提示的本地化,并忽略 Trellis 工作区产物。参见 [版本说明(中文)](releases/v2.9.5.zh-CN.md)。 + ## [2.9.4] - 2026-04-20 - EN: This release improves image workflow reliability with restored image-to-image session persistence, aligns Seedream model metadata and built-in defaults with current capabilities, adds OpenAI Responses request-style support, and makes desktop/local release flows more robust. See [Release Notes (EN)](releases/v2.9.4.en.md). - 中文:本次发布修复了图生图会话恢复、按最新能力校准了 Seedream 模型元数据与内置默认项,补上 OpenAI Responses 请求风格支持,并让桌面端本地直连与 Release 发布链路更稳。参见 [版本说明(中文)](releases/v2.9.4.zh-CN.md)。 diff --git a/package.json b/package.json index e45ca30f..1fe3c5c1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "prompt-optimizer", - "version": "2.9.4", + "version": "2.9.5", "private": true, "packageManager": "pnpm@10.6.1", "engines": { diff --git a/packages/desktop/package.json b/packages/desktop/package.json index 01d5f511..b3456a77 100644 --- a/packages/desktop/package.json +++ b/packages/desktop/package.json @@ -1,6 +1,6 @@ { "name": "@prompt-optimizer/desktop", - "version": "2.9.4", + "version": "2.9.5", "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 7f79525c..9cd0a698 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.4", + "version": "2.9.5", "description": "__MSG_extDesc__", "icons": { "16": "icons/icon16.png", diff --git a/releases/v2.9.5.en.md b/releases/v2.9.5.en.md new file mode 100644 index 00000000..c6a33970 --- /dev/null +++ b/releases/v2.9.5.en.md @@ -0,0 +1,42 @@ +# Prompt Optimizer v2.9.5 + +## Summary +- Added a clear-content workspace utility that removes stale prompts, derived output, test results, evaluation state, image outputs, and temporary variables without resetting model, template, layout, or test-column choices. +- Updated Prompt Garden imports to clear the target workspace before applying imported prompts, messages, variables, and example assets. +- Restored missing locale entries for DeepSeek thinking parameters and Prompt Garden import failure feedback. +- Ignored Trellis workspace artifacts in Git. + +## Highlights +This patch focuses on keeping imported prompts and workspace resets clean without disrupting the user's saved working preferences. + +## Product Updates +### Web +- Added a page-side workspace utility menu with a Clear Content action across basic, context, and image workspaces. +- Preserved user selections such as models, templates, layout, and test column setup when clearing content. +- Made Prompt Garden import reuse the same clear-content semantics so stale image, test, token, evaluation, and compare results do not leak into the imported task. +- Localized DeepSeek `thinking_type` options and `reasoning_effort` labels in model advanced parameters. +- Localized Prompt Garden import failure feedback. + +### Extension +- No extension-specific user-facing changes landed in this patch release. + +### Desktop +- No desktop-specific user-facing changes landed in this patch release. + +### Core/Infra +- Added regression coverage for session clear-content behavior and Prompt Garden import cleanup. +- Added `.trellis/` to ignored local workspace artifacts. + +## Fixes +- Fixed Prompt Garden imports leaving stale optimized content, image results, token metadata, evaluation state, compare state, or temporary variables in the target workspace. +- Fixed missing DeepSeek advanced parameter translations showing raw i18n keys. +- Fixed missing Prompt Garden import failure translation. +- Fixed local Trellis workspace files appearing as Git changes. + +## Breaking Changes / Upgrade Notes +- No breaking API or storage-format changes are introduced in this release. +- Clear Content intentionally removes temporary variables as content while preserving model, template, and layout selections. + +## Developer Notes +- Clear-content behavior is exposed through workspace session APIs and covered across all seven workspace modes. +- Prompt Garden import uses non-persisting clear-content first, then persists after imported content, variables, and example media have been applied. diff --git a/releases/v2.9.5.zh-CN.md b/releases/v2.9.5.zh-CN.md new file mode 100644 index 00000000..e73a5ee2 --- /dev/null +++ b/releases/v2.9.5.zh-CN.md @@ -0,0 +1,42 @@ +# Prompt Optimizer v2.9.5 + +## 概括 +- 新增工作区“清理内容”工具,可清理旧提示词、派生结果、测试结果、评估状态、图像输出和临时变量,同时保留模型、模板、布局和测试列选择。 +- Prompt Garden 导入现在会先清理目标工作区,再写入导入的提示词、消息、变量和示例资源。 +- 补齐 DeepSeek 思考参数和 Prompt Garden 导入失败反馈的本地化文案。 +- 将 Trellis 工作区产物加入 Git 忽略。 + +## 亮点 +这一版聚焦“清场但不重置偏好”:导入新任务或手动清理内容时,不再把上一轮结果带进新工作区,也不会误伤用户选择的模型、模板和布局。 + +## 产品更新 +### Web +- 在基础、上下文和图像工作区统一加入页面侧边的工作区工具入口,提供“清理内容”操作。 +- 清理内容时保留模型、模板、布局和测试列等工作台配置。 +- Prompt Garden 导入复用同一套清理语义,避免旧图片、测试结果、token 信息、评估/对比状态残留到新导入任务。 +- 为模型高级参数补齐 DeepSeek `thinking_type` 选项和 `reasoning_effort` 标签文案。 +- 补齐 Prompt Garden 导入失败提示文案。 + +### Extension +- 本次补丁没有扩展端专属的用户可见变化。 + +### Desktop +- 本次补丁没有桌面端专属的用户可见变化。 + +### Core/Infra +- 补充了 7 个工作区清理内容和 Prompt Garden 导入清理的回归测试。 +- 将 `.trellis/` 加入本地工作区忽略规则。 + +## 修复 +- 修复 Prompt Garden 导入后旧优化结果、图片结果、token 信息、评估状态、对比状态或临时变量残留的问题。 +- 修复 DeepSeek 高级参数显示裸 i18n key 的问题。 +- 修复 Prompt Garden 导入失败提示缺少本地化文案的问题。 +- 修复 Trellis 本地工作区文件出现在 Git 变更中的问题。 + +## 破坏性变更 / 升级说明 +- 本次发布没有引入 API 或存储格式层面的破坏性变更。 +- “清理内容”会按内容处理临时变量并清空它们,但会保留模型、模板和布局选择。 + +## 开发者说明 +- 清理内容能力已下沉到各工作区 session API,并覆盖全部 7 个工作区模式。 +- Prompt Garden 导入先执行不立即持久化的清理,再在导入内容、变量和示例媒体写入完成后统一保存。