Skip to content

v2.12.0

Choose a tag to compare

@Agent-0808 Agent-0808 released this 04 Nov 05:53
· 21 commits to main since this release
62ec947

简体中文

新功能

  • CLI 新增 inspect / trace 只读诊断命令:Bundle 内省与跨包引用追踪,输出包含 path_id;支持缓存落盘、自身 CAB、local-only 模式。
    • 这两个命令可作为 AI Agent 调试 / 逆向用的工具
  • Spine 渲染功能可选 SpineViewer(原有功能)与 Spine2Dump(新加入)二选一。
    • GUI 设置中可配置渲染后端
    • CLI 的 report / batch-preview / install 新增 --spine-renderer 选项
    • 实测 Spine2Dump 在批量执行时速度更快,但尺寸可能不完全一致,难以控制
  • CLI 新增 install 命令(mod 安装),与 GUI 同步
  • mod update 支持 Font 字体资源更新。Font 类 mod 由 BA-Font-Replacer 生成
  • 新增 references.py 跨 bundle 指针解析模块、轻量 CAB 名解析与 CAB 跨包定位;CAB 包扫描策略优化(同组优先扫描)
  • DropZone 显示文本改为 name (core) 的格式。例如 霞泽美游 (CH0145_spr)

重构 / 内部

  • 代码结构拆分:
    • core.py → core/ 包(extraction / introspect / mod_install / mod_update / packing / preview / report)
    • utils.py → utils/ 子模块(about / common / crc / image / paths);
    • Bundle.py 资产操作拆分至 asset.py;
    • naming.py 恢复零依赖
    • apply_asset 返回值重构:missing_anims 移入返回值
  • 依赖拆分为可选 extras:GUI(ttkbootstrap / tkinterdnd2)与 CLI(typed-argument-parser)独立安装,便于其他用户导入本项目作为库使用,并新增 py.typed
  • CLI 帮助信息改用 GroupedHelpFormatter 分组展示

English

New Features

  • CLI adds inspect / trace read-only diagnostic commands: bundle introspection and cross-package reference tracing, with path_id in the output; supports cache persistence, own CAB, and local-only mode.
    • These two commands can be used as debugging / reverse-engineering tools for AI Agents
  • Spine rendering now supports SpineViewer (existing) and Spine2Dump (new) — choose either one.
    • The render backend is configurable in the GUI settings
    • The report / batch-preview / install CLI commands add a --spine-renderer option
    • In practice Spine2Dump is faster in batch execution, but the output size may differ and is hard to control
  • CLI adds the install command (mod installation), keeping pace with the GUI
  • mod update now supports Font asset updates. Font mods are generated by BA-Font-Replacer
  • Adds the references.py cross-bundle pointer parsing module, lightweight CAB name parsing and cross-package CAB locating; CAB scanning strategy optimized (same-group priority scan)
  • DropZone display text changed to the name (core) format, e.g. Kasumizawa Miyu (CH0145_spr)

Refactoring / Internal

  • Code structure split:
    • core.py → core/ package (extraction / introspect / mod_install / mod_update / packing / preview / report)
    • utils.py → utils/ submodules (about / common / crc / image / paths)
    • Bundle asset operations split into asset.py
    • naming.py restored to zero dependencies
  • apply_asset return value refactored: missing_anims moved into the return value
  • Dependencies split into optional extras: GUI (ttkbootstrap / tkinterdnd2) and CLI (typed-argument-parser) can be installed independently, making it easier for others to import this project as a library, with py.typed added
  • CLI help text now displayed in groups via GroupedHelpFormatter

Full Changelog: v2.11.3...v2.12.0