Conversation
| - icon `string` | ||
| 预设图标文件路径,相对于项目根目录。可选。支持国际化(以`$`开头)。 | ||
|
|
||
| - task `object[]` |
There was a problem hiding this comment.
这里这个配置要不直接标准化下,这样UI可以统一用这个配置来存,后续要传给agent啥也就能操作了?
@MaaXYZ/ui-developers
There was a problem hiding this comment.
哦你是说直接把 config 也订一套协议吗,感觉到也行,但不是特别有必要(
There was a problem hiding this comment.
主要是目前这preset本质上就是要求ui能解析这个, 那还不如强制要求大家都用一套(
- 明确 option 覆盖顺序:global → resource → controller → task - 明确 checkbox override 按 cases 定义顺序合并,与用户勾选顺序无关 - 合并 default_case/default_cases 为 default_case 支持 string | string[] - global_option 示例改为战斗划火柴、战斗自动闪避 - preset 支持通过 import 分文件管理 - 修正 resource.option 描述为"资源包级" Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
@neko-para @MaaXYZ/ui-developers @MaaXYZ/application-developers 再看看 |
- 添加 checkbox 类型选项(战斗划火柴) - 添加 controller.option(战斗自动闪避) - 添加 resource.option 示例 - 添加 global_option 示例 - 添加 preset 预设配置示例(刷日常、全力刷本) - default_case 使用数组形式(checkbox 类型) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- 文档: 在 option 定义中新增 resource 字段,用于限制配置项仅在特定资源包下可用 - 示例: 为"作战关卡"选项添加 resource: ["Official"] 示例 - 版本记录补充 option.resource Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
| - default_case `string` | `string[]` | ||
| 默认选项名称。可选。 | ||
| - 当 `type` 为 `"select"` / `"switch"` 时,填写单个字符串,Client 使用该值作为选项的初始选中值。 | ||
| - 当 `type` 为 `"checkbox"` 时,填写字符串数组,Client 使用该值作为多选框的初始选中值。 **💡 v2.3.0** |
There was a problem hiding this comment.
要不用default_cases, 没必要用同一个名字吧(
There was a problem hiding this comment.
然后就会有一堆人把这俩用串了然后来问为什么不生效)
There was a problem hiding this comment.
嗨,我已经审查了你的更改,一切看起来都很棒!
帮我变得更有用吧!请在每条评论上点 👍 或 👎,我会根据你的反馈来改进以后的代码审查。
Original comment in English
Hey - I've reviewed your changes and they look great!
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
There was a problem hiding this comment.
Pull request overview
This PR updates the Project Interface V2 to version 2.3-a1, introducing a hierarchical option system, multi-select checkbox options, and preset configurations. The Chinese documentation (docs/zh_cn/3.3-ProjectInterfaceV2协议.md) has been updated with comprehensive v2.3.0 annotations, and the sample interface.json demonstrates all new features with clear inline comments.
Changes:
- Added v2.3.0 features to sample/interface.json: controller/resource/global-level options, checkbox type, preset configurations, and option filtering by resource
- Updated Chinese documentation with v2.3.0 version entry and complete feature documentation including hierarchical option override system
- Introduced new hierarchical option priority system: global_option → resource.option → controller.option → task.option (lowest to highest priority)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Summary by Sourcery
使示例接口定义和中文版《Project Interface V2》文档与 Project Interface V2.3-a1 保持一致。
Documentation:
Chores:
Original summary in English
Summary by Sourcery
Align sample interface definition and Chinese Project Interface V2 documentation with Project Interface V2.3-a1.
Documentation:
Chores:
增强内容:
文档:
Original summary in English
Summary by Sourcery
使示例接口定义和中文版《Project Interface V2》文档与 Project Interface V2.3-a1 保持一致。
Documentation:
Chores:
Original summary in English
Summary by Sourcery
Align sample interface definition and Chinese Project Interface V2 documentation with Project Interface V2.3-a1.
Documentation:
Chores: