Repository navigation
Releases
v2.0.1-beta.9
MCWSLoader 2.0.1-beta.9
⚠️ 测试版 / Beta:升级前请备份config.json、permission.json、mods/和自定义 Mod。Beta: Back up
config.json,permission.json,mods/and custom Mods before upgrading.
手感与滚动 / Feel and scrolling
- 恢复之前的玻璃、背景光晕、过渡与动画,不再用“关掉视觉效果”的方式换性能
Restored the previous glass, glows, transitions and animations instead of trading visuals for performance. - 恢复原轮询节奏
Restored the original polling cadence. - 通过 WebView 原生设置隐藏滚动条,并关闭过度滚动效果
Hid scrollbars through the native WebView and disabled overscroll effects. - 增加触摸滚动优化,改善拖动跟手度
Added touch-scrolling improvements.
日志终端 / Logs terminal
- 移除终端输入框里的示例文字
Removed the example text from the terminal input placeholder. - 终端命令、输出和错误仍会写入日志页
Terminal commands, output and errors are still written to the Logs page.
相对路径配置 / Relative path root
设置 → 系统 → 数据路径:
Settings → System → Data path:
- 可设置
./所代表的根目录
Set the root directory represented by./. - 留空使用默认目录
Leave empty to use the default directory. - 修改后重启应用生效
Restart the app after changing it. - 模组配置弹窗继续显示当前实际目录
The Mod config dialog still shows the effective directory. - Android 默认
/sdcard/games/mcwsloader
Android defaults to/sdcard/games/mcwsloader.
签名 / Signing
- Android APK 使用
resources/keys/private.pk8和resources/keys/star.x509.pem
Android APKs useresources/keys/private.pk8andresources/keys/star.x509.pem. - 使用 APK Signature Scheme V2 + V3,关闭 V1
Uses APK Signature Scheme V2 + V3; V1 is disabled. - 后续测试版将使用同一签名,可直接覆盖安装
Future test builds use the same signature and can update in place.
beta.9 是第一次改用固定签名;从 beta.8 或更早版本升级需要先卸载一次。
beta.9 is the first build with the fixed key; uninstall beta.8 or older once before installing.
兼容性 / Compatibility
四个平台构建均通过:Android arm64、Windows x64、Linux x64、macOS arm64。
All four platform builds pass: Android arm64, Windows x64, Linux x64, macOS arm64.
Android 首次启动仍需授予存储权限。
Android still needs storage permission on first launch.
完整变更 / Full changelog: v2.0.1-beta.8...v2.0.1-beta.9
v2.0.1-beta.8
MCWSLoader 2.0.1-beta.8
⚠️ 测试版 / Beta:升级前请备份config.json、permission.json、mods/和自定义 Mod。Beta: Back up
config.json,permission.json,mods/and custom Mods before upgrading.
日志页终端命令 / Terminal commands in Logs
日志页底部新增终端命令输入框,普通 WebUI 和独立版都可用。
A terminal command input is now available at the bottom of the Logs page in both WebUI and standalone builds.
- 支持服务端 Mod 命令,例如
$c:attack
Supports server Mod commands such as$c:attack. - 命令解析失败、参数错误或未知命令会返回明确错误
Parse errors, invalid arguments and unknown commands return an explicit error. console.log/console.error输出会同时显示在日志页
console.log/console.erroroutput is also written to the Logs page.- 新增
/api/terminal,不需要启动 WebSocket
Added/api/terminal; WebSocket does not need to be running.
独立版界面 / Standalone UI
- 移除模式、认证和 CORS 来源白名单设置
Removed mode, authentication and CORS origin settings from GUI builds. - 独立版 API 固定为
127.0.0.1:50100,即使旧配置改了端口也不会再导致 WebView 连不上
The standalone API is pinned to127.0.0.1:50100; old config ports can no longer make the WebView unreachable. - 设置页的“后台权限”按钮改为与其他主按钮一致的样式
The background-permissions button now uses the regular primary button style. - 隐藏滚动条,减少手机 WebView 的视觉干扰
Hidden scrollbars in GUI builds. - 修复状态栏和导航栏颜色与主题不一致
Status/navigation bars now follow the selected UI theme. - 移除侧边栏退出登录
Removed the logout entry from the GUI sidebar.
路径 / Data root
- 模组配置中的
./现在以可写数据目录为根
./in Mod configs now resolves under the writable data root. - Android 优先使用
/sdcard/games/mcwsloader,启动时申请所有文件访问权限并创建目录
Android prefers/sdcard/games/mcwsloader, requests all-files access and creates the folder. - 桌面端使用应用支持目录下的
server/
Desktop usesserver/under the application support directory. - 模组配置弹窗会显示实际路径根目录
The Mod config dialog now displays the actual path root.
性能 / Performance
- 手机 WebView 使用不透明表面,关闭大范围模糊、背景光晕和装饰动画
Mobile WebViews use opaque surfaces and skip large blur, glows and decorative animations. - 降低状态、日志和聊天轮询频率
Reduced status, logs and chat polling frequency. - 保留 Vue WebUI 渲染,不切换回原生页面
The Vue WebUI remains the renderer; no native page rewrite.
构建修复 / Build fixes
- 修复 Android 编译时使用不存在的
Os.chdir
Fixed an Android build failure from using a non-existentOs.chdir. - Windows 构建固定使用 Visual Studio 2022,避免 webview_all 的实验性协程在新版 MSVC 下失败
Pinned Windows builds to Visual Studio 2022 so webview_all's experimental coroutine code builds with the installed MSVC.
兼容性 / Compatibility
从 2.0.1-beta.6 或更早版本升级不需要迁移数据。Android 首次启动需要授予存储权限。
No migration is needed from 2.0.1-beta.6 or older. Android needs storage permission on first launch.
完整变更 / Full changelog: v2.0.1-beta.6...v2.0.1-beta.8
v2.0.1-beta.6
MCWSLoader 2.0.1-beta.6
⚠️ 测试版 / Beta:升级前请备份config.json、permission.json、mods/和自定义 Mod。Beta: Back up
config.json,permission.json,mods/and custom Mods before upgrading.
修复 Android 卡在“正在启动本地服务” / Fix Android startup hang
- 修复独立包中
tsx已删除但package.json仍声明它,启动时触发npm install并永远不启动 API 的问题
Fixed the standalone package declaringtsxafter removing it. This mademain.tsrunnpm installat boot instead of starting the API. - 修复 UI 进程不加载
libnode.so后仍调用 JNI 的getCurrentABIName/registerNodeDataDirPath,导致 node_flutter 插件初始化失败的问题
Fixed node_flutter calling JNIgetCurrentABIName/registerNodeDataDirPathin a UI process that intentionally does not loadlibnode.so. - 修复 Android 13+ 未授予通知权限时直接拒绝启动前台服务的问题
Fixed the foreground service being rejected before startup when POST_NOTIFICATIONS was not granted on Android 13+. - 修复资源复制失败时初始化信号量不释放,
waitForInit()永久阻塞的问题
Fixed the init semaphore not being released when asset copying failed, which blockedwaitForInit()forever. - 资源复制缓冲从 1 KB 提升到 64 KB,首次启动更快
Increased the asset copy buffer from 1 KB to 64 KB. - 预生成
dir.list/file.list,避免对 1000+ 文件递归调用AssetManager.list
Precomputed asset lists avoid recursive AssetManager.list calls. - 修复 NodeService 重复启动导致
node::Start二次初始化并崩溃
Fixed duplicate NodeService starts invoking node::Start twice. - 修复 START_STICKY 用空路径重启 NodeService 的崩溃循环
Fixed the empty-intent START_STICKY crash loop. - 启动失败后点击重试会重新轮询 API,而不是直接返回
Retry now polls the API again after a startup timeout.
WebUI 回到 Flutter / WebUI returns to Flutter
独立版不再维护一套原生页面,改为 Flutter WebView 渲染现有 Vue WebUI。
The standalone app no longer uses a separate native page set. Flutter WebView now renders the existing Vue WebUI.
- WebUI 从 Flutter assets 以
file://加载
WebUI loads from Flutter assets throughfile://. - 不启动 WebUI 静态服务器
No static WebUI server is started. - 本地 API 仍只监听
127.0.0.1:50100
The local API still listens only on127.0.0.1:50100. - 独立版使用 hash 路由和单文件经典脚本,避免
file://下的 ES module CORS 问题
Standalone uses hash routing and a single classic script to avoid file:// ES module CORS. - 将整个 WebUI 脚本内联进 index.html,避免 Android WebView 默认禁止 file:// 页面加载外部脚本导致白屏
Inline the entire WebUI bundle into index.html. Android WebView blocks file-to-file script requests by default, which caused a blank screen. - 使用
loadHtmlString并以http://127.0.0.1:50100/作为页面 origin,API 请求变为同源;仍然不启动静态页面服务器
Load the inline document with a loopback HTTP origin via loadHtmlString. API calls are same-origin while no static page server is started. - 将内联脚本放到
</body>之前,确保 Vue 挂载时#app已存在
Move the inline script before</body>so Vue mounts after#appexists. - 修复内联脚本时
String.replace把 JS 中的$&展开成</body>,导致语法错误和纯色页面
Fixed String.replace expanding$&in the minified script into</body>, which caused a syntax error and a blank page. - 允许 loopback API 接受
Origin: null/file://,并支持预检请求
Loopback API acceptsOrigin: null/file://and handles preflight requests. - 支持浅色 Star 和 Catppuccin Mocha 主题
Supports the Star light theme and Catppuccin Mocha.
关于页面 / About page
WebUI 侧边栏最后新增“关于”页面:
A new About page is the last item in the WebUI sidebar:
- 作者 GitHub
Author GitHub - 项目地址
Project repository - GPL-3.0 协议
GPL-3.0 license - 应用和 Node.js 版本
App and Node.js versions - 技术栈、文档、问题反馈链接
Technology stack, wiki and issue links
普通 WebUI 和独立 WebUI 使用同一页面。
The normal WebUI and standalone WebUI use the same page.
平台 / Platforms
- Android arm64 APK
- Windows x64
- Linux x64
- macOS arm64
四个平台的 CI 构建均已通过。
CI builds for all four platforms pass.
兼容性 / Compatibility
从 2.0.1-beta.1 或 2.0.0 升级不需要迁移数据。
No data migration is required from 2.0.1-beta.1 or 2.0.0.
完整变更 / Full changelog: v2.0.1-beta.1...v2.0.1-beta.6
v2.0.1-beta.3
MCWSLoader 2.0.1-beta.3
⚠️ 测试版 / Beta:升级前请备份config.json、permission.json、mods/和自定义 Mod。Beta: Back up
config.json,permission.json,mods/and custom Mods before upgrading.
修复 Android 卡在“正在启动本地服务” / Fix Android startup hang
- 修复独立包中
tsx已删除但package.json仍声明它,启动时触发npm install并永远不启动 API 的问题
Fixed the standalone package declaringtsxafter removing it. This mademain.tsrunnpm installat boot instead of starting the API. - 修复 UI 进程不加载
libnode.so后仍调用 JNI 的getCurrentABIName/registerNodeDataDirPath,导致 node_flutter 插件初始化失败的问题
Fixed node_flutter calling JNIgetCurrentABIName/registerNodeDataDirPathin a UI process that intentionally does not loadlibnode.so. - 修复 Android 13+ 未授予通知权限时直接拒绝启动前台服务的问题
Fixed the foreground service being rejected before startup when POST_NOTIFICATIONS was not granted on Android 13+. - 修复资源复制失败时初始化信号量不释放,
waitForInit()永久阻塞的问题
Fixed the init semaphore not being released when asset copying failed, which blockedwaitForInit()forever. - 资源复制缓冲从 1 KB 提升到 64 KB,首次启动更快
Increased the asset copy buffer from 1 KB to 64 KB. - 预生成
dir.list/file.list,避免对 1000+ 文件递归调用AssetManager.list
Precomputed asset lists avoid recursive AssetManager.list calls. - 修复 NodeService 重复启动导致
node::Start二次初始化并崩溃
Fixed duplicate NodeService starts invoking node::Start twice. - 修复 START_STICKY 用空路径重启 NodeService 的崩溃循环
Fixed the empty-intent START_STICKY crash loop. - 启动失败后点击重试会重新轮询 API,而不是直接返回
Retry now polls the API again after a startup timeout.
WebUI 回到 Flutter / WebUI returns to Flutter
独立版不再维护一套原生页面,改为 Flutter WebView 渲染现有 Vue WebUI。
The standalone app no longer uses a separate native page set. Flutter WebView now renders the existing Vue WebUI.
- WebUI 从 Flutter assets 以
file://加载
WebUI loads from Flutter assets throughfile://. - 不启动 WebUI 静态服务器
No static WebUI server is started. - 本地 API 仍只监听
127.0.0.1:50100
The local API still listens only on127.0.0.1:50100. - 独立版使用 hash 路由和单文件经典脚本,避免
file://下的 ES module CORS 问题
Standalone uses hash routing and a single classic script to avoid file:// ES module CORS. - 允许 loopback API 接受
Origin: null/file://,并支持预检请求
Loopback API acceptsOrigin: null/file://and handles preflight requests. - 支持浅色 Star 和 Catppuccin Mocha 主题
Supports the Star light theme and Catppuccin Mocha.
关于页面 / About page
WebUI 侧边栏最后新增“关于”页面:
A new About page is the last item in the WebUI sidebar:
- 作者 GitHub
Author GitHub - 项目地址
Project repository - GPL-3.0 协议
GPL-3.0 license - 应用和 Node.js 版本
App and Node.js versions - 技术栈、文档、问题反馈链接
Technology stack, wiki and issue links
普通 WebUI 和独立 WebUI 使用同一页面。
The normal WebUI and standalone WebUI use the same page.
平台 / Platforms
- Android arm64 APK
- Windows x64
- Linux x64
- macOS arm64
四个平台的 CI 构建均已通过。
CI builds for all four platforms pass.
兼容性 / Compatibility
从 2.0.1-beta.1 或 2.0.0 升级不需要迁移数据。
No data migration is required from 2.0.1-beta.1 or 2.0.0.
完整变更 / Full changelog: v2.0.1-beta.1...v2.0.1-beta.3
v2.0.1-beta.2
MCWSLoader 2.0.1-beta.2
⚠️ 测试版 / Beta:升级前请备份config.json、permission.json、mods/和自定义 Mod。Beta: Back up
config.json,permission.json,mods/and custom Mods before upgrading.
修复 Android 卡在“正在启动本地服务” / Fix Android startup hang
- 修复独立包中
tsx已删除但package.json仍声明它,启动时触发npm install并永远不启动 API 的问题
Fixed the standalone package declaringtsxafter removing it. This mademain.tsrunnpm installat boot instead of starting the API. - 修复 UI 进程不加载
libnode.so后仍调用 JNI 的getCurrentABIName/registerNodeDataDirPath,导致 node_flutter 插件初始化失败的问题
Fixed node_flutter calling JNIgetCurrentABIName/registerNodeDataDirPathin a UI process that intentionally does not loadlibnode.so. - 修复 Android 13+ 未授予通知权限时直接拒绝启动前台服务的问题
Fixed the foreground service being rejected before startup when POST_NOTIFICATIONS was not granted on Android 13+. - 修复资源复制失败时初始化信号量不释放,
waitForInit()永久阻塞的问题
Fixed the init semaphore not being released when asset copying failed, which blockedwaitForInit()forever. - 资源复制缓冲从 1 KB 提升到 64 KB,首次启动更快
Increased the asset copy buffer from 1 KB to 64 KB. - 启动失败后点击重试会重新轮询 API,而不是直接返回
Retry now polls the API again after a startup timeout.
WebUI 回到 Flutter / WebUI returns to Flutter
独立版不再维护一套原生页面,改为 Flutter WebView 渲染现有 Vue WebUI。
The standalone app no longer uses a separate native page set. Flutter WebView now renders the existing Vue WebUI.
- WebUI 从 Flutter assets 以
file://加载
WebUI loads from Flutter assets throughfile://. - 不启动 WebUI 静态服务器
No static WebUI server is started. - 本地 API 仍只监听
127.0.0.1:50100
The local API still listens only on127.0.0.1:50100. - 独立版使用 hash 路由和单文件经典脚本,避免
file://下的 ES module CORS 问题
Standalone uses hash routing and a single classic script to avoid file:// ES module CORS. - 允许 loopback API 接受
Origin: null/file://,并支持预检请求
Loopback API acceptsOrigin: null/file://and handles preflight requests. - 支持浅色 Star 和 Catppuccin Mocha 主题
Supports the Star light theme and Catppuccin Mocha.
关于页面 / About page
WebUI 侧边栏最后新增“关于”页面:
A new About page is the last item in the WebUI sidebar:
- 作者 GitHub
Author GitHub - 项目地址
Project repository - GPL-3.0 协议
GPL-3.0 license - 应用和 Node.js 版本
App and Node.js versions - 技术栈、文档、问题反馈链接
Technology stack, wiki and issue links
普通 WebUI 和独立 WebUI 使用同一页面。
The normal WebUI and standalone WebUI use the same page.
平台 / Platforms
- Android arm64 APK
- Windows x64
- Linux x64
- macOS arm64
四个平台的 CI 构建均已通过。
CI builds for all four platforms pass.
兼容性 / Compatibility
从 2.0.1-beta.1 或 2.0.0 升级不需要迁移数据。
No data migration is required from 2.0.1-beta.1 or 2.0.0.
完整变更 / Full changelog: v2.0.1-beta.1...v2.0.1-beta.2
v2.0.1-beta.1
MCWSLoader 2.0.1-beta.1
⚠️ 测试版 / Beta:升级前请备份config.json、permission.json、mods/和自定义 Mod。Beta: Back up
config.json,permission.json,mods/and custom Mods before upgrading.
原生 GUI / Native GUI
独立版改为 Flutter 原生界面,不再使用 WebView。
The standalone app now uses a native Flutter UI instead of WebView.
- 原生仪表盘、客户端、命令、消息、模组、日志和设置页面
Native dashboard, clients, commands, chat, Mods, logs and settings. - 不再启动 WebUI 静态页面服务
The WebUI static page server is no longer started. - 不再显示登录页,不使用密码
No login page and no password. - 默认不启动 WebSocket
WebSocket is off by default. - 只保留
127.0.0.1:50100本机 API 通道
Only the loopback API on127.0.0.1:50100remains.
性能与体积 / Performance and size
- 移除 WebView 和 Vue 静态资源,UI 线程不再加载 Node 共享库
Removed WebView and Vue assets; the UI process no longer loads the Node shared library. - Node 在独立的
:node进程运行,避免拖慢或拖死 Flutter UI
Node runs in a separate:nodeprocess. - Node 堆上限为 128 MB
Node heap is capped at 128 MB. - Android 使用 Node 24 LTS lite 运行时
Android uses the Node 24 LTS lite runtime. - APK 只打包 arm64 Node 库,不再包含 x86 和 armeabi
The APK includes only the arm64 Node library. - 从运行时移除 TypeScript、tsx 和 esbuild
TypeScript, tsx and esbuild were removed from the runtime. - 移除未运行时需要的类型声明和 source map
Type declarations and source maps are excluded from the runtime. - 当前 Android APK 约 70 MB,之前约 214 MB
The Android APK is about 70 MB, down from about 214 MB.
Android 后台 / Android background
- Node 使用前台服务运行
Node runs in a foreground service. - 新增开机自启动
Added boot autostart. - 设置页可打开电池优化豁免
Battery optimization exemption is available from Settings. - 新增通知权限和后台权限适配
Notification and background permission handling. - 启动时先渲染原生界面,再启动 Node
The native UI renders before Node starts.
macOS 与图标 / macOS and icon
- 新增 macOS arm64 GUI 构建
Added macOS arm64 GUI builds. - 新增 macOS 网络和 JIT entitlement
Added macOS network and JIT entitlements. - Android、Windows 和 macOS 使用圆角
pack_icon应用图标
Android, Windows and macOS use the roundedpack_iconapp icon.
修复 / Fixes
- Android 不再在启动时自动打开电池优化设置,避免看起来像闪退
Android no longer opens battery settings automatically on launch. - Node 与 UI 分离,避免 Node 内存或崩溃带走界面
Node is isolated from the UI. - 修复第一次构建时 node_flutter 资源初始化竞态
Fixed the node_flutter asset initialization race. - 独立版隐藏更新、重启和结束进程入口
Standalone builds hide update, restart and kill-process entries.
已知限制 / Limitations
- Android Mod 导入、外部命令和 npm 依赖安装受系统限制
Android Mod imports, shell commands and npm dependency installs are limited by the system. - 独立版只提供本机 API,不支持远程 WebUI 管理
Standalone builds expose only a local API; remote WebUI management is not available. - macOS 首次运行可能需要允许 Gatekeeper
macOS may require Gatekeeper approval on first launch.
升级 / Upgrade
git pull
npm install
npm start从 2.0.0 升级无需额外迁移。
No extra migration is required from 2.0.0.
完整变更 / Full changelog: v2.0.0...v2.0.1-beta.1
v2.0.0
MCWSLoader 2.0.0
稳定版 / Stable release
升级前建议备份
config.json、permission.json、mods/和自定义 Mod。Back up
config.json,permission.json,mods/and custom Mods before upgrading.
2.0 主要更新 / 2.0 highlights
- WebUI 全面迁移到 TypeScript。
The WebUI is now fully written in TypeScript. - 全新液态玻璃界面,支持 Star 与 Catppuccin Mocha 主题。
A new liquid-glass interface with Star and Catppuccin Mocha themes. - 服务状态卡片使用独立布局和主题化锯齿徽章。
The service status card has a dedicated layout and a theme-aware scalloped badge. - 新增三种服务模式:
both、webui、websocket。
Added three server modes:both,webuiandwebsocket. - 仅 WebUI 模式可以在仪表盘启动和停止 WebSocket。
WebUI-only mode can start and stop WebSocket from the dashboard. - 新增应用内更新、预览版更新和版本回退。
Added in-app updates, prerelease updates and version rollback. - 日志页只显示应用日志,消息日志保留在消息页面。
The logs page shows application logs only; message logs remain in the Chat page. - 完整的
zh_CN、zh_TW和en_US文本体系。
Completezh_CN,zh_TWanden_UStext support. - Flutter WebView 壳和移动端连接设置。
A Flutter WebView shell with mobile server setup.
安全与稳定性 / Security and stability
- 未批准客户端不会成为主客户端。
Pending clients can never become the main client. - WebUI 配置接口不再返回明文密码,登录后自动迁移为 scrypt 哈希。
The config API no longer exposes plaintext passwords and migrates them to scrypt hashes after login. - 配置和权限文件使用原子写入并限制为
0600。
Config and permission files are written atomically with0600permissions. - 空 JSON 请求体不会覆盖配置。
Empty JSON bodies can no longer overwrite config. - 权限查询增加缓存和大小写不敏感比较。
Permission lookups are cached and compare player names case-insensitively. - 日志关闭时等待缓冲落盘,日志流错误不再导致进程崩溃。
Shutdown flushes log buffers and log stream errors no longer crash the process. - Mod 导入会校验 zip-slip、符号链接、文件数量、解压体积和原型污染。
Mod imports validate zip-slip, symlinks, file count, extracted size and prototype pollution. - 覆盖安装失败时保留可用于手动恢复的旧版本备份。
Failed overwrite installs keep the previous version backup for manual recovery. - 更新和依赖安装使用安全参数,不再执行破坏性的
git reset --hard。
Updates and dependency installs use safe flags and no longer run destructivegit reset --hard. - WebSocket 启停已串行化,避免并发请求造成端口竞争。
WebSocket start and stop operations are serialized to avoid port races. - SAPI 重试定时器会在停止轮询时清理。
SAPI retry timers are cleared when polling stops. - MCFunc 循环会跳过尚未结束的上一轮。
MCFunc loops skip a tick while the previous execution is still running.
FastBuilder 安全沙箱 / FastBuilder sandbox
- 移除
new Function和with执行方式。
Removednew Functionandwithexecution. - 脚本在独立 VM 上下文中运行。
Scripts run in a separate VM context. - 禁止
process、require、globalThis、Object、Reflect、Proxy、eval、Function和动态import。
process,require,globalThis,Object,Reflect,Proxy,eval,Functionand dynamicimportare blocked. - 阻止
constructor、prototype、__proto__、call、apply、bind等逃逸路径。
Constructor, prototype,__proto__,call,applyandbindescape paths are blocked. - 脚本超时 5 秒,文件限制 256 KB,只允许
scripts/下的裸.js文件名。
Scripts time out after five seconds, are limited to 256 KB and only accept bare.jsnames insidescripts/. - 这不是操作系统级隔离,只运行可信来源的脚本。
This is not OS-level isolation. Only run scripts from trusted sources.
文本与界面 / Texts and interface
- 命令解析、权限和 Tool 状态文本迁移到 texts。
Command parsing, permission and Tool status text now use texts. - 语言和主题在保存成功后生效。
Language and theme changes apply after a successful save. - 下拉菜单改为主题化组件,禁止原生弹窗和原生 select。
Select menus use themed components; native dialogs and native selects are blocked. - 聊天发送失败会恢复输入内容。
Failed chat sends restore the input. - 日志和聊天只在接近底部时自动跟随新内容。
Logs and chat follow new content only when near the bottom. - Mod JSON 配置输入错误会显示提示。
Invalid Mod JSON fields now show an inline error. - 弹窗支持 Escape 关闭并锁定背景滚动。
Modals support Escape and lock background scrolling.
已知说明 / Notes
- MCBE WebSocket 不响应 ping/pong,因此没有添加无意义的心跳探测。
MCBE WebSocket does not respond to ping/pong, so no meaningless heartbeat probe is used. ws.connection、端口和mode修改需要重启服务生效。
Changes tows.connection, ports andmoderequire a server restart.- WebSocket 默认只监听
127.0.0.1。局域网使用需要设置ws.host并配置 IP 白名单或批准流程。
The default listener is127.0.0.1. LAN use requiresws.hostand the IP allowlist or approval flow.
升级 / Upgrade
git pull
npm install
npm start从 1.3.0 或任意 2.0.0-beta 升级无需手动迁移。
No manual migration is required from 1.3.0 or any 2.0.0-beta.
完整变更 / Full changelog: v1.3.0...v2.0.0
v2.0.0-beta.8
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执行方式。
Removednew Functionandwithexecution. - 脚本运行在独立 VM 上下文中,禁止访问
process、require、globalThis、Object、Reflect、Proxy、eval、Function和动态import。
Scripts run in a separate VM context and cannot accessprocess,require,globalThis,Object,Reflect,Proxy,eval,Functionor dynamicimport. - 阻止
constructor、prototype、__proto__、call、apply、bind等逃逸路径。
Constructor, prototype,__proto__,call,applyandbindescape 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.jsnames insidescripts/. - 这不是操作系统级隔离,只运行可信来源的脚本。
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 with0600permissions. - 权限查询增加 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 fromts:searchandts:sendwithout 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
v2.0.0-beta.7
MCWSLoader 2.0.0-beta.7
⚠️ 测试版 / Beta:升级前请备份config.json、permission.json、mods/和自定义 Mod。Beta: Back up
config.json,permission.json,mods/and custom Mods before upgrading.
服务模式 / Server modes
新增配置项:
{
"mode": "both"
}| 模式 | 行为 |
|---|---|
both |
同时启动 WebUI 与 WebSocket,默认 |
webui |
仅启动 WebUI。仪表盘可手动启动 WebSocket |
websocket |
仅启动 WebSocket,不启动 WebUI |
模式在 设置 → 系统 → 模式设置 中修改,保存后需要重启服务生效。
The mode is configured in Settings → System → Server mode and applies after a restart.
仅 WebUI 模式
- 仪表盘显示 服务未开启 卡片
- 点击卡片即可启动 WebSocket 服务
- 启动后服务器状态、连接和客户端详情恢复正常显示
- 服务未开启时仍可使用 Mod 管理、日志、设置和进程信息
- 命令、客户端操作和聊天发送会显示限制提示
- API 会拒绝需要 WebSocket 的请求并返回明确错误
The WebUI shows a Service off card. Clicking it starts WebSocket on demand.
Mods, logs, settings and process info remain available while the service is off.
Commands, client actions and chat sending are blocked with clear messages.
审计修复 / Audit fixes
- 语言设置和主题设置一样,只在保存成功后切换
- 更新流程不再执行破坏性的
git reset --hard - 更新依赖安装使用
--ignore-scripts mods_config.json改为原子写入并限制为0600- 文本键 manifest 导入时使用
uuid生成目录名 - 更多网络、文件、HTTP 和内部错误转换为可读提示
文本与本地化 / Texts and localization
- 9 个内置 Mod 全部支持
texts目录 - 所有
tell和tellAll文本通过this.rawtext读取 - 命令介绍、参数说明、帮助列表、状态、错误和终端输出已本地化
- 支持
zh_CN.lang、zh_TW.lang和en_US.lang
升级 / Upgrade
git pull
npm install
npm start从 2.0.0-beta.6 升级无需额外迁移。
No extra migration is required from 2.0.0-beta.6.
完整变更 / Full changelog: v2.0.0-beta.6...v2.0.0-beta.7
v2.0.0-beta.6
MCWSLoader 2.0.0-beta.6
⚠️ 测试版 / Beta:升级前请备份config.json、permission.json、mods/和自定义 Mod。Beta: Back up
config.json,permission.json,mods/and custom Mods before upgrading.
完整文本本地化 / Full text localization
- 所有 9 个内置 Mod 都已加入
texts目录。
All nine bundled Mods now shiptextsdirectories. - 所有
tell和tellAll消息都通过this.rawtext读取文本。
EverytellandtellAllmessage now goes throughthis.rawtext. - 命令介绍、参数说明、帮助列表全部本地化。
Command descriptions, parameter help and help listings are localized. - 终端启动、连接、关闭和 Mod 加载输出全部本地化。
Terminal startup, connection, shutdown and Mod loading output is localized. - Mod manifest 的
name和description可以使用文本键。
Mod manifestnameanddescriptioncan use text keys. - WebUI Mod 配置字段支持
config.前缀的本地化键名。
WebUI Mod config fields support localizedconfig.keys. - 支持
zh_CN.lang、zh_TW.lang和en_US.lang。
Supportszh_CN.lang,zh_TW.langanden_US.lang. - 语言设置和主题设置一样,只在保存成功后切换。
Language and theme settings now apply only after a successful save.
示例 / Example:
{
"uuid": "Spam",
"name": "pack.name",
"description": "pack.description"
}pack.name=Spam tool
pack.description=Spam, advertisements and attack helpers审计与修复 / Audit and fixes
- 更新流程不再执行破坏性的
git reset --hard。
Update checkout no longer performs a destructivegit reset --hard. - 更新依赖安装使用
--ignore-scripts。
Update dependency installation uses--ignore-scripts. mods_config.json改为原子写入并限制为0600。
mods_config.jsonis written atomically with0600permissions.- 文本键 manifest 导入时使用
uuid生成目录名。
Text-key manifests useuuidfor the import folder name. - 前端语言按钮不再点击即切换,避免配置与界面不一致。
Frontend language buttons no longer switch immediately, avoiding config/UI mismatches. - 更多网络、文件、HTTP 和内部错误会转换为可读提示。
More network, file, HTTP and internal errors are mapped to readable messages.
升级 / Upgrade
git pull
npm install
npm start从 2.0.0-beta.5 升级无需额外迁移。
No extra migration is required from 2.0.0-beta.5.
完整变更 / Full changelog: v2.0.0-beta.5...v2.0.0-beta.6