Unlucky Launcher v0.0.1-alpha
CI / fmt (rustfmt --check) (push) Canceled after 0s
CI / clippy (ubuntu-latest) (push) Canceled after 0s
CI / clippy (windows-latest) (push) Canceled after 0s
CI / test (ubuntu-latest) (push) Canceled after 0s
CI / test (windows-latest) (push) Canceled after 0s
CI / build release (ubuntu-latest) (push) Canceled after 0s
CI / build release (windows-latest) (push) Canceled after 0s
Guards / core 零 UI 守门 (push) Canceled after 0s
Guards / 文件行数 ≤400 守门 (push) Canceled after 0s
Guards / 依赖许可与来源(cargo-deny) (push) Canceled after 0s

Rust 原生单文件 Minecraft 启动器:CLI 完整可用(install/launch/accounts/java/diagnose/agent),
MCP server 接入外部 Agent 工具,GUI 开发中。
This commit is contained in:
AskaEth committed 2026-10-31 21:54:10 +08:00
commit bc41dfcf7d
517 files changed
+92844

No files matched your search

+36
View File
@@ -0,0 +1,36 @@
//! 配置与数据目录:三模式数据根(Portable 默认 / Standard / Custom)、schema 化配置、原子写、迁移收据。
//!
//! 设计定稿:`DevDocs/PlanDoc/04-data-and-config.md`(决策 D6)。
//! 刻意把 setting 放在 core 而不是 UI 层——这是 HMCL 的架构债
//! (`DevDocs/analyse/01-architecture-overview.md` §3.5),我们反过来做。
//!
//! 与其它模块的契约:所有模块的配置读写统一走本模块的 schema API,
//! 模块自有配置键需先在 `DevDocs/SubAgentsTalk/` 报备(见该目录 README 的对齐点)。
//! 暴露给各模块的签名清单见 `DevDocs/SubAgentsTalk/setting-接口约定.md`。
//!
//! 公共面(M12 已落地):
//! - [`schema`]:`$schema` / `schemaVersion` 标识、8 态兼容判定 → 三档访问权;
//! - [`spec`] + [`catalog`]:键元数据(类型/范围、默认值)与键目录;
//! - [`policy`]:AI 可写白名单与敏感分级(`setting::spec::AiPolicy` 仍是兼容别名);
//! - [`keys`] / [`instance_keys`]:`launcher.json`、`profiles.json`、`instances/<id>.json` 的键表;
//! - [`appearance`]:D17「外观(高级)」键簇的取值快照与校验(主题三态 / 背景图 / 面板透明度 /
//! 玻璃拟态 / 强调色);
//! - [`document`]:内存文档(点分键、脏字段、未知字段保留、默认值不落盘);
//! - [`store`]:单文件加载降级 + 原子保存 + 坏文件备份;
//! - [`save`] / [`save_worker`]:200ms 去抖攒批与后台保存线程;
//! - [`migrate`]:`schemaVersion N → N+1` 迁移链 + 收据闸门。
pub mod appearance;
pub mod catalog;
pub mod document;
pub mod error;
pub mod instance_keys;
pub mod json_path;
pub mod keys;
pub mod migrate;
pub mod policy;
pub mod save;
pub mod save_worker;
pub mod schema;
pub mod spec;
pub mod store;