MFW-PyQt6:基于 PySide6 与 MaaFramework 的跨平台自动化流程 GUI 项目

用户可开箱即用地编排、运行和扩展自动化流程,降低开发和运维成本。支持 interface v2 协议,具备速通模式、外部通知、计划任务、热更新及动态加载自定义动作/识别器等功能。【此简介由AI生成】

Branch4Tags197
FilesLast commitLast update
10 months ago
9 months ago
1 year ago
11 months ago
10 months ago
9 months ago
2 years ago
9 months ago
9 months ago
1 year ago
9 months ago
11 months ago
9 months ago

MFW-ChainFlow Assistant

简体中文 | English

Cross-platform GUI built with PySide6 and MaaFramework, fully supporting interface v2 for orchestrating, running, and extending automation flows out of the box.

license Python platform commit

Table of Contents

Overview

MFW-ChainFlow Assistant provides a ready-to-use visual orchestrator for MaaFramework users, covering configuration management, task scheduling, notifications, and custom extensions to reduce automation development and ops costs.

Highlights

  • Full support for interface v2
  • Cross-platform: Windows / Linux / macOS
  • Parameterized launch: specify config ID and auto-run tasks
  • External notifications: DingTalk, Lark/Feishu, SMTP, WxPusher, WeCom bot, Gotify
  • Built-in scheduler: once / daily / weekly / monthly with queue or force run
  • Dynamic custom actions and recognizers, with Agent support for tailored flows
  • Embedded Agent: enable built-in mode in the agent field to automatically convert to custom loading, using the UI's internal environment for a smaller and lighter footprint
  • Speedrun mode: limit runs per day/week/month with minimal intervals to avoid repeats
  • Hot update: automatically enabled when update_flag.txt in resource repo matches local, faster and no restart required

Speedrun Mode

  • Add a speedrun block under each task in interface.json to define period and run limits, then enable speedrun mode via UI/CLI for it to take effect.
  • Supports daily / weekly / monthly cycles with run counts and minimal intervals; will skip when quota is exhausted.
  • Full field reference and examples: docs/speedrun_mode.md.

Common CLI Parameters

  • -c <config_id>: start with the specified config ID (works for python main.py and packaged MFW.exe)
  • -d: run tasks immediately after launch (also works for MFW.exe)

External Notifications

Supports DingTalk, Lark/Feishu, SMTP, WxPusher, WeCom bot, and Gotify; enable as needed in your configuration.

Scheduling

Run saved configurations on once / daily / weekly / monthly cadence. Choose force start or queued execution; toggle or delete schedules directly in the list.

Hot Update

When the content of update_flag.txt in the resource repository matches the local update_flag.txt, hot update mode will be enabled, which is faster and requires no restart.

Dynamic Custom Actions/Recognizers

Refer to MaaFramework's custom action/recognizer guide:

  1. Use Python 3.12 for custom actions/recognizers.
  2. If third-party deps are required, install them into the _internal directory.
  3. Declare custom objects in custom.json, and point to it via the custom key in interface.json ({custom_path} defaults to the repo's custom/).
  4. Reference the custom names in your pipeline.

Example custom.json snippet:

{
  "ActionName1": {
    "file_path": "{custom_path}/any/path/action1.py",
    "class": "ActionClass1",
    "type": "action"
  },
  "RecognizerName1": {
    "file_path": "{custom_path}/any/path/recognizer1.py",
    "class": "RecognizerClass1",
    "type": "recognition"
  }
}

Referencing in pipeline:

"MyCustomTask": {
  "recognition": "Custom",
  "custom_recognition": "RecognizerName1",
  "action": "Custom",
  "custom_action": "ActionName1"
}

Custom class example:

class ActionClass1(CustomAction):
    def apply(self, context, ...):
        image = context.tasker.controller.cached_image
        # process the image and return your result

More examples: MAA_Punish/assets.

Embedded Agent

Set embedded: true in the agent field of interface.json to automatically convert the agent to custom loading mode. This approach runs within the UI's internal environment without a separate process, resulting in lower resource usage and faster startup.

Example interface.json snippet:

{
  "agent": {
    "embedded": true,
    "child_args": ["{PROJECT_DIR}/agent/main.py"]
  }
}

When embedded mode is enabled, the system will automatically:

  1. Copy the agent entry directory
  2. Generate the corresponding custom.json configuration
  3. Remove the agent field and use the custom field for loading instead

GitHub Action Build

  1. Replace MaaXXX with your project name in deploy/install.yml.
  2. Commit and push to .github/workflows in your GitHub repo.
  3. Push a new release/tag to trigger the automated build.

License

MFW-PyQt6 is open source under GPL-3.0 License.

Acknowledgments

Open Source Projects

  • PyQt-Fluent-Widgets
    A fluent design widgets library based on C++ Qt/PyQt/PySide.
  • MaaFramework
    An image-recognition-based automation framework.
  • MirrorChyan
    Mirror-chan update service.
  • AutoMAA
    A MAA plugin for multi-account management and automation.

Contributors

Project contributors

Introduction

用户可开箱即用地编排、运行和扩展自动化流程,降低开发和运维成本。支持 interface v2 协议,具备速通模式、外部通知、计划任务、热更新及动态加载自定义动作/识别器等功能。【此简介由AI生成】

Customize your domain