hfshfg
0be55b9064
fix(models): DeepSeek 写死已下线的 deepseek-chat,客户配完必坏
...
api.deepseek.com 已停用 deepseek-chat / deepseek-coder / deepseek-reasoner,
现在只接受 deepseek-v4-flash 和 deepseek-v4-pro,用旧名调用直接返回:
400 The supported API model names are deepseek-v4-pro or
deepseek-v4-flash, but you passed deepseek-chat.
Config.html 把 card.dataset.model 直接写进 openclaw.json 的 models[].id 和
agents.defaults.model.primary,所以客户只要在配置页点「DeepSeek」卡片,配出来
的就是必然失败的配置——网关照常 listening、webchat 照常连上,只在日志里刷
embedded_run_agent_end/isError=True,界面上表现为「发消息没反应」,极难自诊。
客户机 pc-5376 实测:连续 2 小时、20+ 次对话全部 400 失败。
改动(deepseek-chat -> deepseek-v4-flash):
- portable/Config.html data-model,落盘值
- portable/config-server/public/index.html data-model,落盘值(同一清单第 2 份拷贝)
- install/install.ps1 交互式选项 1
- install/install.sh 交互式选项 1 + 未知选项兜底
- u-claw-app/resources/Config.html 已废弃的 Electron 归档,一并改防止复活
- portable/Mac-Menu.command 提示文字
- portable/skills-cn/deepseek-helper/ 技能文档模型表(会被 AI 读取并转述给用户)
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com >
2026-07-26 20:48:35 +08:00
u-claw-bot
735e4de854
chore(upstream): 跟随 OpenClaw 2026.7.1-2,发布 v2.1.16
...
自动跟踪上游:OpenClaw npm latest 升到 2026.7.1-2,
自动 bump 壳版本到 2.1.16 并打 tag 触发发版。
2026-07-19 04:17:40 +00:00
u-claw-bot
50a4e45ea4
chore(upstream): 跟随 OpenClaw 2026.7.1-1,发布 v2.1.15
...
自动跟踪上游:OpenClaw npm latest 升到 2026.7.1-1,
自动 bump 壳版本到 2.1.15 并打 tag 触发发版。
2026-07-18 03:49:16 +00:00
u-claw-bot
7c23358142
chore(upstream): 跟随 OpenClaw 2026.7.1,发布 v2.1.14
...
自动跟踪上游:OpenClaw npm latest 升到 2026.7.1,
自动 bump 壳版本到 2.1.14 并打 tag 触发发版。
2026-07-14 03:52:03 +00:00
u-claw-bot
b3fc827b60
chore(upstream): 跟随 OpenClaw 2026.6.11,发布 v2.1.13
...
自动跟踪上游:OpenClaw npm latest 升到 2026.6.11,
自动 bump 壳版本到 2.1.13 并打 tag 触发发版。
2026-07-01 05:15:56 +00:00
u-claw-bot
06113d8429
chore(upstream): 跟随 OpenClaw 2026.6.10,发布 v2.1.12
...
自动跟踪上游:OpenClaw npm latest 升到 2026.6.10,
自动 bump 壳版本到 2.1.12 并打 tag 触发发版。
2026-06-24 04:58:30 +00:00
hfshfg
6ab87c6b67
fix(portable): 微信扫码重定向/Telegram botToken/Windows 启动端口 (v2.1.11)
...
- 微信扫码卡死: config-server 跟随 IDC scaned_but_redirect 把后续轮询切到
redirect_host,刷新二维码时重置 pollBaseUrl(扫码后不再卡住等不到 confirmed)。新增测试。
- Telegram 渠道改用 botToken(顶层 telegram 只认 botToken,旧 token 别名被静默忽略 → 连不上)。
- Windows-Start: 先起 config-server 再探测 gateway 端口,从 runtime.json 读实际
configServerPort 并按该端口开 Config Center / 传给 wait-gateway(18788 被占也能开)。
- wait-gateway.bat: 用 ping 代替 timeout /t(避开 PATH 上 GNU coreutils timeout 冲突),接受 CONFIG_PORT 参数。
- Windows-Menu: IF 块内 echo 的 () 转义为 ^(^),修 v2.1.10 闪退回归。
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-24 00:41:20 +08:00
hfshfg
3439db32ad
feat(portable): 内网/局域网可用性工具包 + 启动绕代理 (v2.1.10)
...
便携版在内网/离线/受控浏览器环境下"配不上、用不了、查不清"的三个痛点工具化,
Win + Mac 双端,纯 Node 零依赖脚本,中文提示由 node 打印(.bat 保持纯 ASCII,
.command 保持 LF),三端真机验证(本机 Win / Mac mini / 客户机 pc-7512)。
新增工具:
- lib/intranet-check.mjs (+ Windows-IntranetFix.bat / Mac-IntranetFix.command)
一键体检: 代理env + 直连可达 + 真发一条对话,分清"网络不通 vs 配置错"。
- lib/setup-local-model.mjs (+ Windows-LocalModel.bat / Mac-LocalModel.command)
纯命令行配 Ollama / newapi 并当场实测,绕开打不开的 Control UI;写前自动备份+merge。
- lib/resolve-no-proxy.mjs 接入 Windows-Start.bat / Mac-Start.command:
把配置里的模型 host 写进 NO_PROXY,避免系统代理劫持内网模型请求
(OpenClaw 自身只 bypass loopback CDP,不管模型 host)。
- OpenClaw-Doctor.bat / Mac-OpenClaw-Doctor.command: 官方 doctor 的隔离进阶入口
(只读、非交互;doctor 实跑慢且 TTY-only,故不进客户一键流程)。
测试: tests/windows-launchers.test.mjs 新增回归
- 客户面 .bat 必须纯 ASCII (UTF-8 中文会被 GBK cmd 读乱,报 usebackq 不是命令)
- macOS .command 必须 LF-only (CRLF 触发 bad interpreter: /bin/bash^M)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-22 18:53:21 +08:00
u-claw-bot
7805ee01f7
chore(upstream): 跟随 OpenClaw 2026.6.9,发布 v2.1.9
...
自动跟踪上游:OpenClaw npm latest 升到 2026.6.9,
自动 bump 壳版本到 2.1.9 并打 tag 触发发版。
2026-06-21 05:55:16 +00:00
hfshfg
19774a89ab
fix(portable): honor bundled OpenClaw version on USB
2026-06-20 15:59:09 +08:00
hfshfg
8981c21262
fix(config): 移除 gateway.auth.scopes,修复保存后 gateway 起不来
...
Config.html 生成的 openclaw.json 里 gateway.auth 带 scopes:['operator.admin'],
被 OpenClaw 2026.6.x 的 strict schema 拒绝(gateway.auth: Invalid input),
导致用户选完模型保存后 gateway 启动失败。三个 Config 页统一为
{ mode:'local', auth:{ mode:'token', token:'uclaw' }, remote:{ token:'uclaw' } },
与服务页 public/index.html 及启动脚本默认配置对齐。
实测:虾盘云 Key + deepseek-v4-pro 直连 api.u-claw.org/v1 返回 200;
去 scopes 后 gateway 正常启动并加载 uclaw-cloud provider。
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-20 15:51:26 +08:00
hfshfg
1517152a19
fix(portable): keep config center visible on startup
2026-06-20 12:16:42 +08:00
hfshfg
8bffa5d9d7
feat(portable): 预装国内渠道+本地模型自动发现+4个新技能
...
- release.yml 便携包离线预装 钉钉/飞书中国版/企业微信 插件(借鉴 openclaw-china 生态)
- config-server 新增 /api/local-models:自动探测 Ollama/LM Studio 本地模型(借鉴 RealShocky/openclaw-windows)
- Config.html 检测到本地模型自动生成卡片、免 Key 点选即用;新增钉钉渠道卡片
- skills-cn 新增 pdf-toolkit/web-to-markdown/qrcode-maker/image-compress(13→17)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com >
2026-06-17 22:45:59 +08:00
hfshfg
4fab64e877
fix(wechat): 便携包打包微信插件 + 修连接成功却报「插件未安装」的矛盾提示
...
根因:微信插件 @tencent-weixin/openclaw-weixin 是独立 npm 包,但 setup/CI
从没装过它,portable/app/ 又被 gitignore —— 发布包 app/extensions/ 是空的,
客户扫码连上后 config-server 找不到插件源,报「插件未安装」。
- release.yml: 装 @tencent-weixin/openclaw-weixin@latest 到 app/extensions/
(npm 包自带 dist/index.js 无需 build;显式把 qrcode-terminal 放进插件
node_modules 以满足 server.js:52 的硬要求)
- config-server/public/index.html: 去掉「连接成功」却又「插件未安装」的自相
矛盾提示。后端已自动装插件+写好 openclaw.json+存账号,只需重启即可,
不再暴露 pluginInstalled 内部状态吓客户,改为清晰的「重启 U-Claw 即可用」
- config-server/server.js: 插件 copy 失败时容错(不抛错中断 confirmed 流程)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com >
2026-06-17 19:33:25 +08:00
hfshfg
f715aef9c9
perf(portable): U盘启动加速 — 缓存搬本机 + 启动首屏 + 首轮预热
...
便携版从 U 盘启动慢,瓶颈在 U 盘随机小写 IO + 首屏无反馈 + 首轮冷启动。
移植 v2 u-clawx 4.0 的 4 个可在纯脚本层复刻的手段(均零依赖、静默失败):
- portable-cache.mjs: 把浏览器 user-data(几百 MB 随机小写)+ V8 编译缓存
从 U 盘搬到本机 SSD(win junction / mac symlink 重定向 .openclaw/browser,
NODE_COMPILE_CACHE 落本机)。UUID 隔离让换盘符仍命中同一份缓存。
业务数据(openclaw.json/memory/账号)仍留 U 盘,便携性不变。
- loading.html: 双击即弹的启动首屏,自轮询 /ready,gateway 真就绪后自动跳
Dashboard——天然规避"gateway 没起就开 Dashboard 拒连"(issue #46/#48)。
- prewarm.mjs: gateway 首轮预热,后台静默唤醒 config/model 子系统。
- Windows-Start.bat: 等 config-server 改写死 timeout 为动态轮询 18788。
- wait-gateway.bat 退居兜底(首屏页负责主跳转)。
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com >
2026-06-17 16:38:05 +08:00
hfshfg
29238fc423
fix(portable/mac): setup.sh 装不上 + Bonjour 广播 + 首次启动浏览器不开
...
在 macmini (Apple Silicon, macOS 15.6.1) 实测发现并修复 3 个 Mac 版问题:
1. setup.sh 漏 --ignore-scripts → 装不上 openclaw(致命)
openclaw 的 preinstall 脚本会调系统 `node`,但便携版用 app/runtime 下的
node(不在 PATH),未装 Node 的 Mac 用户 → "node: command not found" code 127。
两条 npm install 补 --ignore-scripts --no-audit --no-fund --omit=dev,与
Mac-Start.command 的 fallback install 对齐。
2. Mac-Start.command 没关 Bonjour → mDNS 自动对外广播
macOS 上 bonjour 插件 auto-start(Win/Linux 是 opt-in)。实测日志:
`bonjour: advertised ... state=announcing` + `no IPv4 address available on
utun12`。本地用 Dashboard 不需要 LAN 发现。补 OPENCLAW_DISABLE_BONJOUR=1
(Windows-Start.bat 早已设)。
3. 首次启动浏览器不自动打开(同 issue #46/#48,此前误判 Mac 无此问题)
首次启动实测 94.5s(staging 35 个 bundled deps),但浏览器轮询只等 15s
(30×0.5s) 就放弃。改为最多等 ~3 分钟 (180×1s),加"首次启动需 30-90 秒"
提示,超时回退打开 Config Center。
三处修复均已在 macmini 端到端重测通过。
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-17 12:02:48 +08:00
hfshfg
0d88c9b0cc
chore(portable): 回归纯开源 — 移除指纹/自动开户/崩溃上报
...
去掉不适合开源的商业逻辑,保持一个纯粹的开源 U 盘工具:
- 删除设备指纹 (fingerprint.mjs)、虾盘云自动开户 (bootstrap-xiapan.mjs /
xiapan-client.mjs)、自动崩溃上报 (report-bug.mjs),portable 和 Electron 两份都删
- 启动脚本去掉绑定指纹调用 + 全部 --auto 自动上报;保留 bonjour 禁用与括号转义
- config-server 删掉 /api/xiapan/* 和 /api/report-bug 端点
- Config.html:虾盘云改为普通「首选」卡片,强调中转站 / 国内外全部大模型,
和其它 provider 一样需用户自填 Key(去 u-claw.org/cloud.html 注册),不再自动开户
- 报 Bug 表单改为指向 GitHub Issue,不再上传日志
- README / release notes / CLAUDE.md 文案改为「选模型填 Key,不绑定设备、不打指纹、不上传数据」
- OPENCLAW_VERSION 跟进最新龙虾版本 2026.6.6 → 2026.6.8
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-17 11:47:19 +08:00
hfshfg
b1468d455c
feat(portable): 虾盘云插上即用 — 自动开户送试用额度 + Config 首选卡片
...
解决「插上 U 盘选虾盘云模型却 Invalid token」:之前客户端只生成
sk-uc-指纹 key 写进配置,但后台从没注册该 token。
- xiapan-client.mjs 加 provisionApiKey():把设备指纹送到虾盘云后台
(POST api.u-claw.org/internal/token/provision) 自动开一个带试用额度
的 token,返回真正可用的 key。
- bootstrap-xiapan.mjs 改:首启(配置无 cloud key 时)调 provision 拿真
key 写配置;已有 key 则幂等跳过;provision 失败回退指纹 key 不阻塞启动。
后端按 deviceId 幂等,刷不出额度。
- Config.html:模型网格加「虾盘云」首选卡片(一个 key 用全部模型,无需
申请,选中直接启动跳过填 Key);更新过时型号(MiniMax-M2/kimi-k2/
qwen-plus/doubao-seed-1.6/gpt-5.4/claude-opus-4-6/deepseek-v4);
banner 文案改为「已含试用额度」。
注:开户/送额度的商业逻辑在闭源服务端(token-key-service),开源仓只放
调用机制。
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com >
2026-06-15 16:01:35 +08:00
hfshfg
2d0f33d5a0
chore: 加 .gitattributes 锁定换行符(修跨平台脚本隐患)
...
core.autocrlf 在不同机器上会把 .command/.sh 转成 CRLF,导致 Mac 用户
双击 .command 报 bad interpreter。明确锁定:
- .bat/.cmd/.ps1 → CRLF(Windows 批处理需要)
- .command/.sh/.mjs/.js/.json → LF(Mac/Linux 需要)
附带把 install/README.md、Windows-Menu.bat 的换行一次性规范化(纯换行,
无内容改动)。
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com >
2026-06-15 12:29:45 +08:00
hfshfg
01ed1348ef
feat(portable): 交互式 CLI 启动器 + 3 个办公技能(采纳自 PR #36)
...
基于最新 main 重做 PR #36(fanjiazhen)中有价值的部分:
- OpenClaw-CLI.bat / Mac-OpenClaw-CLI.command:进阶用户双击打开一个配好
便携环境(盘内 Node + 盘内数据 + .bin 入 PATH)的命令行,可直接敲
openclaw 命令(chat/configure/doctor/gateway status 等)。
- skills-cn/ 新增 word-writer / excel-helper / ppt-designer 三个办公文本
技能,与现有 10 个本地化技能(小红书/知乎等)互补,frontmatter 格式一致。
未采纳 PR #36 的其余部分:HTML 品牌改动、skill_zip 二进制、删充值.html。
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com >
2026-06-15 12:27:13 +08:00
hfshfg
270cf4bda0
fix(portable): gateway 启动卡死/Dashboard 拒连 (issue #46/#48)
...
根因:Windows-Start.bat 在 gateway 启动【前】就打开 http://127.0.0.1:18789 ,
而慢 U 盘上 OpenClaw 首次启动要几十秒 staging bundled deps,浏览器打开时
端口还没监听 → "127.0.0.1 拒绝连接",用户以为坏了。
修复:
- 新增 lib/wait-gateway.bat:后台轮询端口(每2s,最多~5min),gateway 真正
LISTENING 后才打开 Dashboard;超时回退到 Config Center。
- Windows-Start.bat:移除 gateway 启动前的过早开浏览器,改由 wait-gateway
在 ready 后触发;加"首次启动需 30-90 秒"的明确提示。
- Mac-Start.command 本就先轮询 curl 再开浏览器,无此问题。
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com >
2026-06-15 12:23:13 +08:00
hfshfg
6eb54f8ea3
feat(portable): bug 一键上报 + 自动崩溃上报 + openclaw 升级 2026.6.6
...
Bug 上报(方便服务器侧排查便携版问题):
- 新增 lib/report-bug.mjs:算设备指纹→sk-uc apiKey,收集 openclaw 版本/
系统信息/最近日志(gzip+base64),POST 到 api.u-claw.org/recharge/bug/submit。
静默失败,绝不影响主流程。复用 fingerprint.mjs + xiapan-client.mjs。
- config-server 加 POST /api/report-bug:本地补齐信息后转发,配置中心加
「🐛 报 Bug」表单(标题/描述/是否附日志)。
- Windows-Start.bat / Mac-Start.command:gateway 端口耗尽或异常退出时
自动后台上报(Ctrl+C 正常停止不上报)。
openclaw 升级:
- OPENCLAW_VERSION 2026.4.29 → 2026.6.6(X 盘真实 USB 实测 gateway
启动/ready、Dashboard 200、旧配置兼容、虾盘云 status 均通过)。
便携性改进(借鉴 OpenClaw-Windows-Portable):
- setup.sh / 启动脚本的 npm install 设 npm_config_cache 指向盘内
app/.npm-cache,避免污染系统缓存,拔盘不留痕。
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com >
2026-06-15 11:46:42 +08:00
hfshfg
d9dd98d650
feat(portable): 便携版更新检测 — config-server 加 /api/update-status + check/publish 脚本 + CI 剥 BOM
...
config-server 新增 /api/update-status 和 /api/update-check,读取 check-update.mjs
写入的 update-available.json,便携版可提示有无新版本。publish-latest.mjs 用于
发布端生成 manifest。release.yml 顺手修打包时 .bat 的 UTF-8 BOM(BOM 会让 cmd.exe
把首条命令认错报 not internal/external command)。
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-05-30 13:12:16 +08:00
hfshfg
c6a11b6aac
build(portable): 把 OPENCLAW_VERSION 拷进 portable/ 让 U盘用户能读版本 + Start.bat 转义修复
...
setup.bat/setup.sh 打包时把版本文件 copy 进 portable/,U盘用户脱离 repo 根
也能读到版本号。Windows-Start.bat 修 cmd.exe 把未转义 ) 当块结束的坑(加 ^ 转义)。
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-05-30 12:58:01 +08:00
8000cabbage
3ff3661825
fix: stabilize Windows launchers for v2.1.4
...
Fix Windows portable, installer, and desktop launcher startup paths; bump desktop metadata to 2.1.4.
2026-05-19 14:30:34 +08:00
hfshfg
78bcb7fd8e
fix(release): Windows-only portable bundle with pre-installed deps
...
Root cause: portable zip was 1MB skeleton; first launch triggered
`npm install` of OpenClaw + 36 bundled deps on customer's USB drive.
On exFAT-formatted USB this hangs/takes 20+ minutes, gateway never
binds 18789, dashboard shows "Gateway 未启动".
Fix follows StanleyChanH/openclaw-offline-package pattern (153MB
single-platform zip, gateway starts directly):
- release.yml: only build Windows bundle (~150-200MB). Mac users
fall back to setup.sh. Reasoning: 99% of customers are Windows;
bundling 3 platforms × Node ~30MB + 3× node_modules dedup pain
is what blew the previous attempt past GitHub's 2GB cap (see
5916ff5 history). Smaller scope = simpler + safer.
- Windows-Start.bat / Mac-Start.command: warn if node_modules
missing; fallback `npm install` adds --ignore-scripts --no-audit
--no-fund for speed.
- Release notes: NTFS U-disk recommendation.
Lessons applied (from 5916ff5 ):
- Stay on linux runner with --ignore-scripts (Stanley pattern)
- Drop mac-x64 / mac-arm64 Node from bundle (setup.sh handles Mac)
- rm -rf node-llama-cpp / sharp / canvas explicitly
- Hard size guard: fail CI if zip > 1500MB (buffer below 2GB cap)
2026-05-04 11:02:56 +08:00
hfshfg
cc2984234b
feat(v2.1.2): align with ClawX schema + config-server port fallback
...
Three changes for v2.1.2:
1. bootstrap-xiapan now writes "agents.defaults.model.primary/fallbacks"
(uclaw-cloud/deepseek-v4-flash + 3 fallbacks) and an empty models[],
matching the ClawX commercial schema. Lets OpenClaw runtime auto-discover
models from /v1/models instead of hard-coding a list that drifts.
2. config-server tries ports 18788..18798 with EADDRINUSE fallback and
persists the live port to data/.openclaw/runtime.json so future tooling
can discover it. Fixes silent failure when a second portable instance
started while 18788 was occupied.
3. u-claw-app/package.json version 2.0.0 -> 2.1.2 so .exe/.dmg filenames
align with the release tag.
2026-05-03 00:07:09 +08:00
hfshfg
1f8224561b
fix(bootstrap): use "name" instead of "label" for model schema
...
OpenClaw 2026.4.29 renamed the per-model field from "label" to "name". The
old field is now an Unrecognized key, which fails schema validation at
gateway startup and exits OpenClaw before any HTTP listener binds.
Symptom (v2.1.0 first-launch):
- models.providers.uclaw-cloud.models.0.name: Invalid input: expected string, received undefined
- models.providers.uclaw-cloud.models.0: Unrecognized key: "label"
- throwInvalidConfig() at io-DaEsZ_NY.js:2901 -> process exit
Found via end-to-end H: drive test of v2.1.0 portable zip.
2026-05-02 18:58:05 +08:00
hfshfg
9ecbbd445c
feat: 内置虾盘云 + 设备指纹绑定 + Release 流水线
...
- 新增 portable/lib/{fingerprint,xiapan-client,bootstrap-xiapan}.mjs:
跨平台设备指纹(Win USB/disk + Mac UUID + Linux machine-id + seed 兜底)
生成 sk-uc-{fingerprint} 形式的虾盘云 apiKey,启动时 merge 到 openclaw.json
- Config.html 顶部新增「已绑定虾盘云」横幅:指纹来源 + Key + 余额 + 充值/解绑
- config-server 增加 /api/xiapan/{status,bind,unbind} 三个端点
- Electron app 在 whenReady 调 bootstrap,新增 sync-lib.js 让 build 前自动同步
- 锁 OpenClaw 版本到 2026.4.29(OPENCLAW_VERSION 单一来源)
- 删除死代码 portable/充值.html
- 新增 .github/workflows/release.yml:tag 触发,出 portable zip + Electron exe/dmg
- README 增加内置虾盘云说明 + 直接下载发行版指引
2026-05-02 17:07:42 +08:00
hfshfg
b6ba958b79
fix(portable): node-extract path + unreachable legacy-config sync
...
Two real bugs in the portable launchers:
1. Windows-Install.bat: xcopy reads from %TEMP%\node-<ver>-win-x64
but Expand-Archive extracts into %TEMP%\node-extract\node-<ver>-win-x64.
Result: empty runtime\node-win-x64\ on networked install path.
2. Mac-Start.command + Windows-Start.bat: legacy-config sync block
was placed AFTER the default-config block, so the "config.json
exists but openclaw.json doesn't" branch was unreachable. Existing
USB users with config.json never got their settings migrated;
they got the empty default instead.
Reordered so legacy migration runs first, default only as fallback.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com >
2026-05-01 15:36:34 +08:00
hfshfg
88cf2b2dc4
fix(portable/setup.ps1): cd to core dir before npm install
...
When users run setup.ps1 from PowerShell with cwd outside the repo
(e.g. C:\Users\Admin>), npm 11 walks up looking for package.json and
errors with ENOENT before honoring --prefix. setup.bat already pushd's
into core; setup.ps1 was missing the equivalent Push-Location guard.
Fixes #27 (setup.ps1 ENOENT package.json reported by lawler-code).
2026-05-01 15:29:04 +08:00
hfshfg
efebe923aa
fix windows install node version guard
2026-04-30 19:50:15 +08:00
hfshfg
b57aeb068c
fix portable config and qqbot packaging
2026-04-30 19:47:57 +08:00
dongsheng123132
49b875b081
feat: add uninstall.sh for one-click uninstall
2026-04-13 18:17:14 +08:00
hfshfg
690d1b7060
fix: 修复 QQ Bot 配置后 Gateway 无法启动的问题
...
1. 清除旧版 "agent" 废弃键 — 保存 channel 配置时自动删除旧的 agent 键,
防止 OpenClaw 报 "agent.* was moved" 错误(前端 + 服务端双重防御)
2. Dashboard URL 动态端口探测 — 将硬编码 18789 改为扫描 18789-18799,
解决端口被占用时打不开 Dashboard 的问题
3. 安装脚本配置格式升级 — install.sh / install.ps1 / install-silent.ps1
生成的 openclaw.json 从旧的 "agent" 格式迁移到 "agents.defaults.model.primary"
4. 文档示例同步更新 — CLAUDE.md / cloud.html / guide.html 中的配置示例
影响文件: 14 个(portable/, install/, website/, u-claw-app/, usb-release/)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-04-09 22:05:09 +08:00
hfshfg
220599584e
feat: add WeChat QR code login to config-server
...
Add in-app WeChat scanning via Tencent iLink API:
- server.js: QR code PNG renderer, WeChat API proxy, plugin auto-install
- index.html: WeChat channel card with QR display and polling UI
- Windows-Start.bat: auto-install WeChat plugin on startup
- Windows-Install.bat: copy WeChat plugin during installation
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-04-09 22:03:20 +08:00
hfshfg
e9c508a27e
fix: 充值页改为浅色风格,仅支付宝,余额401显示新用户提示
...
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-04-06 16:52:39 +08:00
hfshfg
6598eaaa35
fix: 充值.html 余额显示乘以7.2换算为CNY
...
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-04-06 16:27:45 +08:00
hfshfg
70fc030e8e
fix: replace setup.bat with complete version (add QQ plugin + --all-platforms)
...
PR #13 (luckylibin) version includes:
- QQ plugin installation step (was missing)
- --all-platforms flag to download Mac Node.js runtimes
- More robust error handling
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-04-04 22:28:36 +08:00
dongsheng123132
c0ea59e16f
feat: add Windows setup.ps1 for portable
...
# Add Windows setup.ps1 for portable
2026-04-04 21:21:57 +08:00
hfshfg
5dc204ab4e
fix: 补全遗漏的 botToken 修复(config-server + 官网教程)
...
code review 发现三处漏修:
- fix(config-server/public/index.html): botToken → token,
这是实际运行的配置页面,漏改会导致用户配置后仍然 401
- fix(website/tutorial.html): 示例 JSON botToken → token
- fix(website/guide.html): 示例 JSON botToken → token
文档示例错误会导致用户手动配置时照抄出错
全仓库现已无 botToken 残留。
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-04-01 10:04:24 +08:00
hfshfg
4dac1ae4ab
fix: code review 修复两处 bug 并优化启动提示
...
- fix(setup.bat): 修复 Node.js 解压路径错误
xcopy 来源从 %TEMP%\node-v22-win-x64\* 改为
%TEMP%\node-extract\node-v22-win-x64\*,
否则解压后 xcopy 找不到文件,Node.js 安装必然失败
- fix(Config.html): 点击「启动 OpenClaw」后 toast 改为
「配置已保存!请关闭此页面,回到启动窗口使用 U-Claw」,
避免用户误以为点击后会自动启动而一直等待
(portable / usb-release / u-claw-app 三个版本同步)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-04-01 09:48:44 +08:00
hfshfg
3f6f960ffc
fix: 修复 bat 编码乱码、Config.html 打不开、missing scope 问题
...
- fix(bat): 所有 Windows .bat 文件加 UTF-8 BOM,修复中文乱码
(portable 和 usb-release 共 7 个文件,close #3 )
- fix(usb-release/Windows-Start.bat): 首次启动打开 Config.html
时补加 file:/// 前缀,修复浏览器无法打开本地文件的问题
(close #12 )
- fix(Config.html): gateway.auth 加入 scopes: ['operator.admin'],
修复配置模型时报 missing scope: operator.admin 错误
(portable / usb-release / u-claw-app 三个版本同步,close #11 )
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-04-01 09:31:16 +08:00
hfshfg
4647a49cea
fix: 修复 Telegram 401 错误并新增 Windows setup.bat
...
- fix(Config.html): telegram channel 配置字段 botToken → token,
修复接入 Telegram 时所有请求返回 401 Unauthorized 的问题
(影响 portable / usb-release / u-claw-app 三个版本)
- feat(portable): 新增 setup.bat,Windows 用户可一键下载
Node.js v22 + 安装 OpenClaw + 安装中文技能包,
对应 setup.sh 的 Windows 版本(解决 issue #10 #17)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-04-01 09:28:27 +08:00
Skandhas5
ecc03ab859
Add setup.ps1 for portable setup in Windows
2026-03-22 17:03:19 +08:00
hfshfg
fc9e20125d
fix: Mac-Start.command 重写 + Node.js 升级到 v22.22.1
...
Mac-Start.command:
- 用 config-server (18788端口) 替代 python3 读取 token 和打开 Config.html
- 去掉 python3 依赖(HAS_MODEL 检测、token 读取)
- 启动后同时打开 Dashboard 和 Config Center
- 退出时自动清理 gateway 和 config-server 进程
- 对齐 Windows-Start.bat 和 G 盘 Pro 版的架构
setup.sh:
- Node.js v22.14.0 → v22.22.1(满足 openclaw >=22.16.0 要求)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-03-20 10:49:40 +08:00
hfshfg
6569bcddf6
fix: Windows-Start.bat 启动修复 + Config Center 全面升级
...
Windows-Start.bat:
- 去掉 EnableDelayedExpansion,避免感叹号解析问题
- 用 config-server (18788端口) 替代直接打开 Config.html
- 去掉有 bug 的 token 读取(引号嵌套问题)
- 去掉 powershell 日志管道,简化启动流程
- 对齐 H 盘已验证可用的方案
Config Center (config-server/public/index.html):
- 步骤式引导:选模型 → 填 Key → 启动
- 11 个模型:MiniMax/Kimi/DeepSeek/智谱GLM/通义千问/豆包/OpenAI/Claude/Groq/硅基流动/自定义
- 4 个聊天平台:Telegram/QQ/飞书/企业微信
- Gateway 状态实时检测
- 正确的 OpenClaw v3 配置格式
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-03-20 10:47:52 +08:00
dongsheng123132
889fc2a685
feat(config): Config.html Pro 版 + 渠道卡片展开填写 + Portable 模式
...
- Config.html 全新 Pro 版:3步式配置(选模型→填Key→启动)
- Step 3 渠道卡片可展开填写:Telegram / QQ Bot / 飞书 / 企业微信
- 渠道配置启动时自动写入 openclaw.json
- main.js 支持 Portable 模式(.app 旁有 portable/ 目录时使用)
- hasModelConfigured() 兼容新配置格式
- Node 升级到 v22.16.0
2026-03-19 15:25:42 +08:00
dongsheng123132
83996e42db
feat: enhance Windows scripts to match Mac feature parity
...
Windows-Start.bat:
- Fix duplicate browser tab opening (was opening 3 tabs)
- Read gateway token from config instead of hardcoding
- Add config sync from legacy location
- Use delayed browser open for gateway startup time
Windows-Menu.bat:
- Fix Node version display bug (double %% issue)
- System info: add Windows version, architecture, memory, disk size
- Check updates: auto-fetch latest version from npmmirror, one-click upgrade
- Disk cleanup: show directory sizes, clean old backups/logs/npm cache
- Log management: add export to desktop, clean logs older than 7 days
- Restore backup: numbered list selection instead of typing folder name
- Kill processes: add confirmation prompt before killing
- Chat platforms: individual setup guidance per platform
Windows-Install.bat:
- Add Node.js online download fallback (was exit-only when missing)
- Add system Node.js version check (require v20+)
- Generated start.bat now has port detection loop
- Show install size on completion
Windows-Diagnose.bat:
- Add system info logging (Windows version, architecture)
- Add config file and model configuration check
- Expand port scan to full 18789-18799 range
- Show OpenClaw version in test output
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com >
2026-03-16 15:51:54 +08:00
dongsheng123132
c284a604c0
fix: add migration shim to Menu and Diagnose scripts
...
Mac-Menu, Mac-Diagnose, and Windows-Diagnose were missing the
core-mac/core-win → core migration shim, causing them to fail
on existing USB drives that still have the old directory name.
2026-03-14 17:37:00 +08:00