Skip to content

feat(SellProduct): 通过 maa-pipeline-generate 生成相关节点#1835

Merged
he0119 merged 4 commits intov2from
feat/sell-product-template
Apr 1, 2026
Merged

feat(SellProduct): 通过 maa-pipeline-generate 生成相关节点#1835
he0119 merged 4 commits intov2from
feat/sell-product-template

Conversation

@he0119
Copy link
Copy Markdown
Contributor

@he0119 he0119 commented Apr 1, 2026

Summary by Sourcery

通过使用共享数据层和更新后的模板,在 maa-pipeline 生成器中生成 SellProduct 任务。

新功能:

  • 引入可复用的 SellProduct 数据模块,该模块导出展平后的结算行,兼容任务模板和智能任务数据。
  • 添加基于结算映射生成的区域级销售选项,以支持可配置的 SellProduct 任务生成。

增强改进:

  • 优化 SellProduct 流水线元数据和模板,使其与新的中间数据格式和生成的任务结构保持一致。
Original summary in English

Summary by Sourcery

Generate SellProduct tasks via the maa-pipeline generator using a shared data layer and updated templates.

New Features:

  • Introduce a reusable SellProduct data module that exports flattened settlement rows compatible with task templates and smart task data.
  • Add region-level sell options derived from settlement mappings to support configurable SellProduct task generation.

Enhancements:

  • Refine SellProduct pipeline metadata and templates to align with the new intermediate data format and generated task structure.

Copilot AI review requested due to automatic review settings April 1, 2026 16:30
Copy link
Copy Markdown
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.

Hey - 我已经审查了你的修改,看起来非常棒!


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
Copy Markdown
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 将 SellProduct 相关 task 节点改为通过 maa-pipeline-generate 的数据驱动方式生成,减少按区域手写/复制的模板内容,并同步更新生成产物。

Changes:

  • task-template.jsonc 中的区域开关从固定枚举改为 ${RegionPrefix} + ${SellOptions} 的通用模板。
  • 调整 data.mjs 导出结构,新增按区域聚合的 SellOptions 数据,供模板生成区域下的售卖点选项列表。
  • 更新 task-config.json 与生成后的 assets/tasks/SellProduct.json 产物内容(格式/注释/去重等)。

Reviewed changes

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

File Description
tools/pipeline-generate/SellProduct/task-template.jsonc 将区域开关/选项改为可参数化的通用模板占位符,支持按数据生成不同区域节点。
tools/pipeline-generate/SellProduct/task-config.json 更新生成配置(新增 task: true,调整生成行为配置项)。
tools/pipeline-generate/SellProduct/data.mjs 增加按区域聚合的售卖点选项映射,并调整导出以配合模板生成。
assets/tasks/SellProduct.json 同步更新生成产物(由新模板/数据生成),包含注释移除与部分数组内容去重。

@he0119 he0119 merged commit 1c27901 into v2 Apr 1, 2026
11 checks passed
@he0119 he0119 deleted the feat/sell-product-template branch April 1, 2026 17:03
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