Skip to content

OriginRouter CLI v0.4.5

Choose a tag to compare

@chengaoyan chengaoyan released this 27 Sep 16:57
· 26 commits to main since this release

OriginRouter CLI 0.4.5

English

This release makes Windows installation and background service startup reliable. The Local API now locates its authentication token correctly on Windows, and service installation verifies that the registered scheduled task matches the generated configuration. The daemon runs without opening an empty terminal window. If startup fails, OriginRouter stops the task and its daemon process tree, reports the failure, and allows a clean retry.

Service reinstall, stop, and uninstall clean up managed processes without touching unrelated Node processes; Windows automatically requests elevation for registration or removal when needed. After a CLI update, OriginRouter rebuilds the service configuration from the newly installed version, preserving whether the service was running. The Windows installer now runs unattended setup correctly, cleans up timed-out child processes, and shows a final five-part verification result. Running the installer again refreshes the existing installation.

Validation: macOS regression suite and Windows PowerShell 5.1 integration checks; clean removal and installation from the 0.4.5 package; repeat installation; service failure and retry cleanup; non-admin task registration through UAC; all five setup checks passing on Windows 11, and reboot validation with automatic daemon startup and no empty terminal window.

中文

此版本修复了 Windows 安装和后台服务启动问题。Local API 现在能正确定位 Windows 上的认证令牌;安装服务后会核对已注册的计划任务与生成的配置。后台 daemon 启动时不会再弹出空白终端窗口。启动失败时,OriginRouter 会停止任务及其 daemon 进程树、报告错误,并允许干净地重试。

重新安装、停止或卸载服务时会清理受管进程,不会误伤其他 Node 进程;注册或删除计划任务需要管理员权限时,Windows 会自动请求提权。CLI 更新后会使用新版本代码重建服务配置,并保留服务原先的运行状态。Windows 安装脚本修复了无人值守 setup、超时子进程清理和最终五项验证结果显示;重复运行安装脚本会刷新已有安装。

验证:macOS 回归测试、Windows PowerShell 5.1 集成测试、从 0.4.5 安装包清理并重装、重复安装、启动失败及重试清理、普通权限下通过 UAC 注册任务,Windows 11 上全部五项安装检查通过,以及重启后 daemon 自动启动且不再弹出空白终端窗口。