cc-haha/release-notes/v0.5.15.md
小橙子 632cc646cb
release: v0.5.15 (#65)
Co-authored-by: 你的姓名 <you@example.com>
2026-06-17 01:15:53 +08:00

54 lines
2.9 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# v0.5.15
> **功能 + 修复**:新增 spark2-gamedev 内置插件image-gen 插件兼容性与内联渲染改进。
## 新功能
### 1. spark2-gamedev 内置插件(#62
**概述**:新增星火 2.0WasiCore游戏开发编排插件作为 `cc-haha-builtin` marketplace 的第三个内置插件发布。
**能力**
- 11 个游戏开发子技能3D 单位战斗、Canvas 2D、联机同步、UI 布局、服务端物理、运行时粒子、数据编辑、触发器编辑、调试工具等
- 自动调用 SCE 编辑器 MCP 完成数据/触发器/调试操作
- 根据用户意图自动分派到合适的子技能
## 修复
### 2. image-gen 插件 /v1 前缀自动检测 + 内联图片渲染(#63
**现象**:部分 OpenAI 兼容中继(如 agnes-ai.com的 BASE_URL 不含 `/v1` 前缀时,插件直接 403即使生成成功Desktop 对话中也无法内联显示图片。
**根因**
1. 许多中继需要 `/v1/images/generations` 完整路径,但用户配置 BASE_URL 时通常省略 `/v1`
2. agnes-ai.com 拒绝 `response_format: "b64_json"` 参数,返回 403
3. `formatResult()` 只返回文本 URL未返回 Desktop 支持的 `image_url` block 格式
**修复**
- **三级回退机制**:原始 URL → `/v1` + 完整参数 → `/v1` + 最小参数(去掉 response_format
- `listModelsForProvider``editWithFallback` 同步加入 `/v1` 重试逻辑
- `formatResult()` 对 URL 类型结果额外返回 `{type: "image_url", image_url: {url}}` blockDesktop 可直接内联渲染
### 3. image-gen 插件新增编排 agent + prompt-craft skill#64
**现象**:之前 image-gen 插件只有裸 MCP server模型经常"描述要生成什么"而不真的调用 generate_image也不知道返回的图片会自动内联显示。
**修复**
- 新增 `image-gen-agent` 编排 agent触发规则、工具选择、prompt 增强、尺寸推断、错误处理
- 新增 `prompt-craft` skill4 种 prompt 模板(写实摄影/艺术插画/设计产品/概念艺术)+ 中→英翻译策略
- agent 声明 `requiredMcpServers: [image-gen]`,仅在 MCP server 运行时才出现在可用列表
## 升级注意
- spark2-gamedev 插件在 Settings → Plugins 中自动可见,点击 Install 即可启用。需要 SCE 编辑器环境才能使用数据/触发器/调试功能。
- image-gen 用户无需改动配置,`/v1` 前缀现在自动探测。如果之前手动加了 `/v1`,不影响兼容性。
- 生成图片后 Desktop 对话中可直接看到渲染结果,无需再点链接。
- image-gen 装上后,对话直接说"画一个 X"即可触发生图,无需手动指定工具。
## PR
- #62 feat(plugins): add spark2-gamedev builtin plugin
- #63 fix(image-gen): auto-detect /v1 prefix and return image_url blocks for inline rendering
- #64 feat(image-gen): add orchestration agent and prompt-craft skill
- #66 fix(i18n): localize special tab titles at render time