Skip to content

feat: 适配 PI group 字段#1163

Merged
MistEO merged 5 commits intov2from
feat/group
Mar 10, 2026
Merged

feat: 适配 PI group 字段#1163
MistEO merged 5 commits intov2from
feat/group

Conversation

@MistEO
Copy link
Contributor

@MistEO MistEO commented Mar 9, 2026

@ocsin1 帮我瞅瞅()

image image

Summary by Sourcery

在各类配置和模式(schema)文件中调整 task 和 interface 定义,以支持新的 PI group 字段。

新功能:

  • 在 task 配置 JSON 中引入 PI group 元数据,用于对任务进行分类或分组。
  • 在 interface 定义及其 JSON schema 中暴露 PI group 字段。

增强项:

  • 更新本地化文本资源,使其在界面(UI)中反映 PI group 字段的新增或使用情况。
Original summary in English

Summary by Sourcery

Adapt task and interface definitions to support the new PI group field across configuration and schema files.

New Features:

  • Introduce PI group metadata to task configuration JSONs for categorizing or grouping tasks.
  • Expose the PI group field in the interface definition and its JSON schema.

Enhancements:

  • Update localized text resources to reflect the addition or usage of the PI group field in the UI.

Copilot AI review requested due to automatic review settings March 9, 2026 14:03
Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

嗨,我已经审查了你的修改,看起来非常不错!


Sourcery 对开源项目是免费的——如果你觉得我们的评审有帮助,欢迎分享 ✨
帮我变得更有用!请在每条评论上点 👍 或 👎,我会根据你的反馈改进后续评审。
Original comment in English

Hey - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

该 PR 旨在为 MaaFramework Project Interface(PI)新增并落地 group(任务分组)能力:在 interface.json 声明分组元信息、在各任务文件中标注所属分组,并补齐多语言文案与 Schema 支持。

Changes:

  • tools/schema/interface.schema.json 中新增顶层 grouptask.group 的 Schema 定义,并更新 import 字段说明
  • assets/interface.json 中新增分组声明(daily/foreground/realtime/utility),并为多个任务增加 group 标注
  • 在各语言 locale 中新增 group.* 的 label/description 文案

Reviewed changes

Copilot reviewed 36 out of 36 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
tools/schema/interface.schema.json 新增 groupItem、顶层 grouptaskItem.group 定义,并更新 import 描述
assets/interface.json 增加分组配置并调整导入任务列表顺序
assets/tasks/Weapon.json 为任务添加 group: ["daily"]
assets/tasks/VisitFriends.json 为任务添加 group: ["daily"]
assets/tasks/SimpleProductionBatchStart.json 为任务添加 group: ["daily"]
assets/tasks/SellProduct.json 为任务添加 group: ["daily"]
assets/tasks/SeizeEntrustTask.json 为任务添加 group: ["daily"]
assets/tasks/ReceiveProdManual.json 为任务添加 group: ["daily"]
assets/tasks/RealTimeTask.json 为任务添加 group: ["realtime"]
assets/tasks/ReadAllWiki.json 为任务添加 group: ["utility"]
assets/tasks/PuzzleSolver.json 为任务添加 group: ["utility"]
assets/tasks/ProtocolSpace.json 为任务添加 group: ["foreground"]
assets/tasks/ItemTransfer.json 为任务添加 group: ["utility"]
assets/tasks/ImportBluePrints.json 为任务添加 group: ["utility"]
assets/tasks/GiftOperator.json 为任务添加 group: ["foreground"]
assets/tasks/GearAssembly.json 为任务添加 group: ["daily"]
assets/tasks/EssenceFilter.json 为任务添加 group: ["utility"]
assets/tasks/EnvironmentMonitoring.json 为任务添加 group: ["foreground"]
assets/tasks/DijiangRewards.json 为任务添加 group: ["daily"]
assets/tasks/DeliveryJobs.json 为任务添加 group: ["daily"]
assets/tasks/DailyRewards.json 为任务添加 group: ["daily"]
assets/tasks/CreditShopping.json 为任务添加 group: ["daily"]
assets/tasks/Crafting.json 为任务添加 group: ["daily"]
assets/tasks/ClaimSimulationRewards.json 为任务添加 group: ["daily"]
assets/tasks/BatchAddFriends.json 为任务添加 group: ["utility"]
assets/tasks/BakerEntry.json 为任务添加 group: ["utility"]
assets/tasks/AutoUseSpMedication.json 为任务添加 group: ["utility"]
assets/tasks/AutoResell.json 为任务添加 group: ["daily"]
assets/tasks/AutoEssence.json 为任务添加 group: ["foreground"]
assets/tasks/AutoEcoFarm.json 为任务添加 group: ["foreground"]
assets/tasks/AndroidOpenGame.json 为任务添加 group: ["utility"]
assets/misc/locales/zh_tw.json 新增分组的繁中显示文案
assets/misc/locales/zh_cn.json 新增分组的简中显示文案
assets/misc/locales/ko_kr.json 新增分组的韩文显示文案
assets/misc/locales/ja_jp.json 新增分组的日文显示文案
assets/misc/locales/en_us.json 新增分组的英文显示文案

@MistEO MistEO merged commit 16e74ae into v2 Mar 10, 2026
10 checks passed
@MistEO MistEO deleted the feat/group branch March 10, 2026 03:05
@ocsin1
Copy link
Contributor

ocsin1 commented Mar 10, 2026

我认为简制手册一键领取和批量简易制作应该属于实用工具类,因为并不需要每天运行,而且批量简易制作是需要手动选择造哪个的,其他没有什么问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants