Skip to content

v2.0.0-beta.8

Pre-release
Pre-release

Choose a tag to compare

@StarAwA117 StarAwA117 released this 15 Nov 06:08
· 65 commits to main since this release

MCWSLoader 2.0.0-beta.8

⚠️ 测试版 / Beta:升级前请备份 config.json、permission.json、mods/ 和自定义 Mod。

Beta: Back up config.json, permission.json, mods/ and custom Mods before upgrading.

服务状态卡片 / Service status card

  • 液态玻璃服务状态卡片,独立于普通统计卡片。
    The service status card now uses a liquid-glass surface separate from normal stat cards.
  • FlClash 风格的 12 瓣锯齿徽章,放在卡片右上角并故意超出边界,只显示约三分之二。
    A FlClash-style 12-lobe scalloped badge sits past the card's top-right corner, with about two thirds visible.
  • 运行时徽章使用主题主色,图标使用 on-primary 色;停止时使用中性灰。
    Running uses the theme primary color with an on-primary icon. Stopped uses a neutral gray.
  • 徽章保留轻微摆动,不会在点击时闪蓝色。
    The badge keeps a subtle sway and no longer flashes blue on click.
  • 服务关闭时只显示 WebUI 端口、进程和已加载 Mod。
    When the service is off, only the WebUI port, process and loaded Mods remain visible.

日志页 / Logs page

  • 日志页只显示应用日志。
    The logs page now shows only the application log.
  • 删除应用日志、消息日志和自动滚动三个按钮。
    Removed the app-log, message-log and auto-scroll controls.
  • 日志区域改为整页高度,移动端自适应。
    The log panel now fills the page and adapts on mobile.
  • 仅在用户接近底部时自动跟随新日志。
    New lines are followed only when the reader is near the bottom.
  • 消息日志仍可在侧边栏的消息页面查看。
    Message logs remain available in the sidebar Chat page.

FastBuilder 安全沙箱 / FastBuilder sandbox

  • 移除 new Function 和 with 执行方式。
    Removed new Function and with execution.
  • 脚本运行在独立 VM 上下文中,禁止访问 process、require、globalThis、Object、Reflect、Proxy、eval、Function 和动态 import。
    Scripts run in a separate VM context and cannot access process, require, globalThis, Object, Reflect, Proxy, eval, Function or dynamic import.
  • 阻止 constructor、prototype、__proto__、call、apply、bind 等逃逸路径。
    Constructor, prototype, __proto__, call, apply and bind escape paths are blocked.
  • 关闭字符串代码生成和 WebAssembly 代码生成。
    String and WebAssembly code generation are disabled.
  • 几何结果复制到 VM 领域,宿主函数增加属性过滤。
    Geometry results are cloned into the VM realm and host functions are filtered.
  • 脚本超时 5 秒,文件限制 256 KB,只允许 scripts/ 下的裸 .js 文件名。
    Scripts time out after five seconds, are limited to 256 KB and may only use bare .js names inside scripts/.
  • 这不是操作系统级隔离,只运行可信来源的脚本。
    This is not OS-level isolation. Only run scripts from trusted sources.

安全与稳定性 / Security and stability

  • 未批准客户端不再可能被选举为主客户端。
    Pending clients can no longer be elected as the main client.
  • WebUI 配置接口不再返回旧版明文密码,登录后会迁移为 scrypt 哈希。
    The config API no longer exposes legacy plaintext passwords, and successful login migrates them to scrypt hashes.
  • 空 JSON 请求体不再能覆盖配置。
    Empty JSON bodies can no longer overwrite config.
  • 配置文件和权限文件改为临时文件加原子重命名,权限收紧为 0600。
    Config and permission files are written atomically with 0600 permissions.
  • 权限查询增加 mtime 缓存,玩家名比较改为大小写不敏感。
    Permission lookups are cached by mtime and player names compare case-insensitively.
  • 日志关闭时等待缓冲区落盘,日志流错误不再导致进程崩溃。
    Shutdown waits for log buffers to flush, and log stream errors no longer crash the process.
  • 修复覆盖安装回滚失败时备份被删除的问题。
    Fixed backups being deleted when an overwrite rollback fails.
  • 修复本地化 Mod 重装、multipart 原型污染、路径穿越和文件夹名校验。
    Fixed localized Mod reinstall matching, multipart prototype pollution, path traversal and folder-name validation.
  • Mod 导入的 README、manifest 和配置读取增加大小限制。
    Added size limits for README, manifest and config reads during Mod import.
  • 修复 ts:search 无参数崩溃、ts:send 空参数崩溃和多个 Mod 可选参数缺失问题。
    Fixed crashes from ts:search and ts:send without arguments, plus missing required inputs in several Mods.
  • Spam 在最后一个已批准客户端离开后停止循环。
    Spam loops stop when the last approved client leaves.

WebUI 修复 / WebUI fixes

  • 普通 API 请求增加 30 秒超时,Mod 安装和更新接口不设短超时。
    Ordinary API calls now time out after 30 seconds while Mod install and update routes opt out.
  • 轮询增加并发保护,避免慢请求堆积。
    Polling now skips overlapping ticks.
  • 下拉菜单改为悬浮层并修复卡片层级,弹窗内保持内联。
    Select menus now float above cards with correct stacking and stay inline inside modals.
  • 未知路由重定向到首页。
    Unknown routes redirect to the dashboard.
  • 聊天发送失败会恢复输入内容。
    Failed chat sends restore the input.
  • Mod 重载失败会显示错误。
    Mod reload failures now surface an error.
  • 登录卡片增加液态玻璃表面。
    The login card now has a liquid-glass surface.

texts 与本地化 / Texts and localization

  • 命令解析、参数数量、参数类型、枚举和未实现命令错误迁移到 texts。
    Command parsing, argument count, type, enum and unimplemented-command errors now use texts.
  • 权限错误和 Tool 的命令、Ping、Time、权限、重载、错误提示迁移到 texts。
    Permission errors and Tool command, ping, time, permission, reload and error messages now use texts.
  • 三语言键集合保持一致。
    Key sets stay identical across all three languages.

升级 / Upgrade

git pull
npm install
npm start

从 2.0.0-beta.7 升级无需额外迁移。
No extra migration is required from 2.0.0-beta.7.

完整变更 / Full changelog: v2.0.0-beta.7...v2.0.0-beta.8