feat: npm 源可配置,支持淘宝/官方/华为云镜像切换

- 所有 npm 操作使用用户配置的 registry,默认淘宝镜像
- 服务管理页面新增 npm 源设置区域(预设 + 自定义)
- 版本检测 API 同步使用配置源
- 配置持久化到 ~/.openclaw/npm-registry.txt
This commit is contained in:
晴天
2026-02-28 14:10:09 +08:00
parent da8932a3e0
commit a5c7760f25
4 changed files with 96 additions and 4 deletions

View File

@@ -25,6 +25,8 @@ pub fn run() {
config::upgrade_openclaw,
config::install_gateway,
config::uninstall_gateway,
config::get_npm_registry,
config::set_npm_registry,
// 服务
service::get_services_status,
service::start_service,