Skip to content

v0.3.1 - Enhanced UX & Optimized Riichi Lookahead

Choose a tag to compare

@github-actions github-actions released this 14 Jan 12:12
· 263 commits to master since this release

简体中文 (Simplified Chinese)

本次更新主要聚焦于工程化建设,正式引入了自动化构建与测试流程,同时大幅提升了代码质量和测试覆盖率。

✨ 新功能

  • 交互体验升级: 新增了针对在线/本地模型加载以及游戏连接状态的实时消息提醒,让系统状态感知更加直观。
  • 自动化构建与发布: 正式引入 GitHub Actions 工作流,实现全自动化的构建、测试与 Release 发布,确保版本产物的稳定性。

⚡ 改进与优化

  • 智能立直判断优化: 优化了立直前瞻(Riichi Lookahead)的触发逻辑,现在仅在立直操作处于前 3 名时触发,提升决策效率。
  • 工程化治理:
    • 统一强制使用 LF 换行符,解决跨平台开发中的格式兼容问题。
    • 升级 TypeScript ESLint 依赖,修正了多处编译器警告和 Linter 提示。
    • 修复了 Windows 环境下的打包编码问题,确保 Windows 用户能正常且快速地构建项目。
  • 代码重构: 对核心代码进行了复杂度治理,精简了冗余逻辑,提升代码可维护性。

🧪 测试与质量

  • 全方位测试覆盖:
    • 新增了针对通知系统和状态管理的端对端(E2E)测试。
    • 补充了集成测试和单元测试,覆盖了协议解析、设置管理及核心工具类。

English

This update focuses on engineering excellence, officially introducing automated build and test workflows while significantly improving code quality and test coverage.

✨ New Features

  • Enhanced UX: Added real-time notifications for Online/Local Model loaded and Game Connection status, making system state changes more intuitive.
  • Automated Build & Release: Officially introduced GitHub Actions workflows for fully automated building, testing, and releasing, ensuring the stability of release artifacts.

⚡ Improvements

  • Optimized Riichi Lookahead: Refined the trigger logic for Riichi Lookahead, which now only activates when reach is ranked in the top 3, improving decision efficiency.
  • Engineering Governance:
    • Enforced LF line endings via .gitattributes to resolve cross-platform formatting issues.
    • Upgraded TypeScript ESLint dependencies and resolved numerous compiler warnings and linter hints.
    • Fixed packaging encoding issues on Windows environments to ensure reliable local builds.
  • Code Refactoring: Refactored core codebase to reduce complexity and remove redundant logic, enhancing maintainability.

🧪 Testing & Quality

  • Comprehensive Test Coverage:
    • Added End-to-End (E2E) tests for the Notification System and Status Management.
    • Expanded Integration and Unit tests covering protocol parsing, settings management, and core utilities.

Full Changelog: v0.3.0...v0.3.1