Skip to content
This repository was archived by the owner on May 6, 2026. It is now read-only.

Commit d034232

Browse files
yysjasmineclaude
andcommitted
release: bump to 1.0.5 — auto-install pnpm if the ui:build retry can't find it
Follow-up to v1.0.4. Locating pnpm with a broader PATH search (that release's fix) isn't enough when upstream's `ensure_pnpm` silently failed to install it in the first place — pnpm genuinely isn't on the system. That's how we ended up with "pnpm: command not found" on a fresh WSL Ubuntu. Now the retry path runs `npm install -g pnpm@10` when the search turns up empty, refreshes npm_prefix, re-probes PATH, and only fails loudly when npm itself is missing (at which point the user is deep in DIY territory anyway). Same recovery upstream would have done; we just stopped trusting that it already happened. Also: if repos/openclaw/node_modules is missing when we reach the retry, run `pnpm install` at the repo root once before `pnpm ui:build`, so the ui: helper script (which expects deps present) doesn't trip on missing modules. Version strings bumped in installer.iss, build-pkg.sh, and the README download tables / build-from-source outputs. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent d03fb6c commit d034232

5 files changed

Lines changed: 61 additions & 17 deletions

File tree

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,9 @@ Pre-built installers live on the [GitHub Releases page](https://github.com/Sense
8989

9090
| Platform | Download | How to Use |
9191
|----------|----------|------------|
92-
| Windows | [`AgentPack-1.0.4-windows-x64.exe`](https://github.com/SenseTime-FVG/agent_pack/releases/latest/download/AgentPack-1.0.4-windows-x64.exe) | Double-click and follow the wizard; installation runs inside WSL2, and the PowerShell window is taken over by the installed agent when setup finishes |
93-
| macOS | [`AgentPack-1.0.4-macos-universal.pkg`](https://github.com/SenseTime-FVG/agent_pack/releases/latest/download/AgentPack-1.0.4-macos-universal.pkg) | Double-click, then complete setup in the Terminal window that opens; the same window becomes the agent's REPL / gateway once installation finishes |
94-
| Linux | [`AgentPack-1.0.4-linux.sh`](https://github.com/SenseTime-FVG/agent_pack/releases/latest/download/AgentPack-1.0.4-linux.sh) *or* the one-liner below | Download and run `chmod +x AgentPack-1.0.4-linux.sh && ./AgentPack-1.0.4-linux.sh`, or paste `curl -fsSL https://raw.githubusercontent.com/SenseTime-FVG/agent_pack/main/linux/install.sh \| bash` — either way the shell that ran the installer is handed over to the agent via `exec` |
92+
| Windows | [`AgentPack-1.0.5-windows-x64.exe`](https://github.com/SenseTime-FVG/agent_pack/releases/latest/download/AgentPack-1.0.5-windows-x64.exe) | Double-click and follow the wizard; installation runs inside WSL2, and the PowerShell window is taken over by the installed agent when setup finishes |
93+
| macOS | [`AgentPack-1.0.5-macos-universal.pkg`](https://github.com/SenseTime-FVG/agent_pack/releases/latest/download/AgentPack-1.0.5-macos-universal.pkg) | Double-click, then complete setup in the Terminal window that opens; the same window becomes the agent's REPL / gateway once installation finishes |
94+
| Linux | [`AgentPack-1.0.5-linux.sh`](https://github.com/SenseTime-FVG/agent_pack/releases/latest/download/AgentPack-1.0.5-linux.sh) *or* the one-liner below | Download and run `chmod +x AgentPack-1.0.5-linux.sh && ./AgentPack-1.0.5-linux.sh`, or paste `curl -fsSL https://raw.githubusercontent.com/SenseTime-FVG/agent_pack/main/linux/install.sh \| bash` — either way the shell that ran the installer is handed over to the agent via `exec` |
9595

9696
## Building from Source
9797

@@ -104,7 +104,7 @@ cd windows
104104
iscc installer.iss
105105
```
106106

107-
Output: `dist/AgentPack-1.0.4-windows-x64.exe`
107+
Output: `dist/AgentPack-1.0.5-windows-x64.exe`
108108

109109
### macOS (.pkg)
110110

@@ -115,7 +115,7 @@ cd macos
115115
./build-pkg.sh
116116
```
117117

118-
Output: `dist/AgentPack-1.0.4-macos-universal.pkg`
118+
Output: `dist/AgentPack-1.0.5-macos-universal.pkg`
119119

120120
### Linux
121121

README.zh-CN.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,9 @@ Bundled skills 已经直接放进 `repos/hermes-agent/skills/` 和 `repos/opencl
8888

8989
| 平台 | 下载 | 使用方式 |
9090
|------|------|---------|
91-
| Windows | [`AgentPack-1.0.4-windows-x64.exe`](https://github.com/SenseTime-FVG/agent_pack/releases/latest/download/AgentPack-1.0.4-windows-x64.exe) | 双击运行向导;安装过程在 WSL2 中执行,安装完成后当前 PowerShell 窗口会被接管,直接跑起 agent |
92-
| macOS | [`AgentPack-1.0.4-macos-universal.pkg`](https://github.com/SenseTime-FVG/agent_pack/releases/latest/download/AgentPack-1.0.4-macos-universal.pkg) | 双击后在自动打开的 Terminal 窗口中完成安装;安装结束后同一个窗口会变成 agent 的 REPL / gateway |
93-
| Linux | [`AgentPack-1.0.4-linux.sh`](https://github.com/SenseTime-FVG/agent_pack/releases/latest/download/AgentPack-1.0.4-linux.sh) 或下面的一行命令 | 下载后 `chmod +x AgentPack-1.0.4-linux.sh && ./AgentPack-1.0.4-linux.sh`,或直接粘贴 `curl -fsSL https://raw.githubusercontent.com/SenseTime-FVG/agent_pack/main/linux/install.sh \| bash` — 两种方式都会在安装结束后用 `exec` 在当前 shell 里拉起 agent |
91+
| Windows | [`AgentPack-1.0.5-windows-x64.exe`](https://github.com/SenseTime-FVG/agent_pack/releases/latest/download/AgentPack-1.0.5-windows-x64.exe) | 双击运行向导;安装过程在 WSL2 中执行,安装完成后当前 PowerShell 窗口会被接管,直接跑起 agent |
92+
| macOS | [`AgentPack-1.0.5-macos-universal.pkg`](https://github.com/SenseTime-FVG/agent_pack/releases/latest/download/AgentPack-1.0.5-macos-universal.pkg) | 双击后在自动打开的 Terminal 窗口中完成安装;安装结束后同一个窗口会变成 agent 的 REPL / gateway |
93+
| Linux | [`AgentPack-1.0.5-linux.sh`](https://github.com/SenseTime-FVG/agent_pack/releases/latest/download/AgentPack-1.0.5-linux.sh) 或下面的一行命令 | 下载后 `chmod +x AgentPack-1.0.5-linux.sh && ./AgentPack-1.0.5-linux.sh`,或直接粘贴 `curl -fsSL https://raw.githubusercontent.com/SenseTime-FVG/agent_pack/main/linux/install.sh \| bash` — 两种方式都会在安装结束后用 `exec` 在当前 shell 里拉起 agent |
9494

9595
## 从源码构建
9696

@@ -103,7 +103,7 @@ cd windows
103103
iscc installer.iss
104104
```
105105

106-
产物:`dist/AgentPack-1.0.4-windows-x64.exe`
106+
产物:`dist/AgentPack-1.0.5-windows-x64.exe`
107107

108108
### macOS (.pkg)
109109

@@ -114,7 +114,7 @@ cd macos
114114
./build-pkg.sh
115115
```
116116

117-
产物:`dist/AgentPack-1.0.4-macos-universal.pkg`
117+
产物:`dist/AgentPack-1.0.5-macos-universal.pkg`
118118

119119
### Linux
120120

linux/lib/install-openclaw.sh

Lines changed: 49 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,56 @@ install_openclaw() {
124124
case ":$retry_path:" in *":$extra:"*) ;; *) retry_path="$extra:$retry_path" ;; esac
125125
done
126126

127+
# If pnpm still isn't reachable, install it ourselves. Upstream
128+
# `ensure_pnpm` did this via `npm install -g pnpm@10`, but a silent
129+
# failure during that path is what got us here — redo it and then
130+
# re-probe the usual install locations. Without this the user sees
131+
# "pnpm: command not found" and has to finish the build manually.
127132
if ! PATH="$retry_path" command -v pnpm >/dev/null 2>&1; then
128-
echo "[!] ERROR: pnpm not on PATH after install — ui:build cannot retry." >&2
129-
echo " Searched: $retry_path" >&2
130-
echo " Finish the install manually:" >&2
131-
echo " cd $OPENCLAW_INSTALL_DIR && pnpm install && pnpm ui:build && pnpm build" >&2
132-
return 1
133+
echo "[*] pnpm not found on PATH — installing pnpm@10 via npm..."
134+
if ! command -v npm >/dev/null 2>&1; then
135+
echo "[!] ERROR: npm not available either — can't install pnpm." >&2
136+
echo " Finish the install manually:" >&2
137+
echo " cd $OPENCLAW_INSTALL_DIR && pnpm install && pnpm ui:build && pnpm build" >&2
138+
return 1
139+
fi
140+
if ! PATH="$retry_path" npm install -g pnpm@10; then
141+
echo "[!] ERROR: 'npm install -g pnpm@10' failed." >&2
142+
echo " Finish the install manually:" >&2
143+
echo " cd $OPENCLAW_INSTALL_DIR && pnpm install && pnpm ui:build && pnpm build" >&2
144+
return 1
145+
fi
146+
hash -r 2>/dev/null || true
147+
# npm may have reshuffled its prefix after the global install
148+
# (e.g. if the user's npm config didn't have one before). Pick
149+
# up the fresh value and append it to our search path.
150+
npm_prefix_now="$(PATH="$retry_path" npm config get prefix 2>/dev/null || true)"
151+
if [ -n "$npm_prefix_now" ] && [ -d "$npm_prefix_now/bin" ]; then
152+
case ":$retry_path:" in
153+
*":$npm_prefix_now/bin:"*) ;;
154+
*) retry_path="$npm_prefix_now/bin:$retry_path" ;;
155+
esac
156+
fi
157+
if ! PATH="$retry_path" command -v pnpm >/dev/null 2>&1; then
158+
echo "[!] ERROR: pnpm still not on PATH after install (searched: $retry_path)." >&2
159+
echo " Finish the install manually:" >&2
160+
echo " cd $OPENCLAW_INSTALL_DIR && pnpm install && pnpm ui:build && pnpm build" >&2
161+
return 1
162+
fi
163+
echo "[OK] pnpm installed: $(PATH="$retry_path" command -v pnpm)"
164+
fi
165+
166+
# pnpm ui:build runs through scripts/ui.js (see
167+
# repos/openclaw/scripts/ui.js). That helper does `pnpm install`
168+
# against repos/openclaw/ui first, then `pnpm build`. If deps were
169+
# never installed under the vendored tree, do a one-shot install at
170+
# the repo root first so the retry doesn't trip on missing modules.
171+
if [ ! -d "$OPENCLAW_INSTALL_DIR/node_modules" ]; then
172+
echo "[*] Installing OpenClaw npm dependencies (pnpm install)..."
173+
if ! ( cd "$OPENCLAW_INSTALL_DIR" && PATH="$retry_path" pnpm install ); then
174+
echo "[!] ERROR: 'pnpm install' at $OPENCLAW_INSTALL_DIR failed." >&2
175+
return 1
176+
fi
133177
fi
134178

135179
if ! ( cd "$OPENCLAW_INSTALL_DIR" && PATH="$retry_path" pnpm ui:build ); then

macos/build-pkg.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
88
PROJECT_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
99
BUILD_DIR="$SCRIPT_DIR/build"
1010
DIST_DIR="$PROJECT_ROOT/dist"
11-
VERSION="1.0.4"
11+
VERSION="1.0.5"
1212
SCRIPTS_DIR="$BUILD_DIR/scripts"
1313

1414
rm -rf "$BUILD_DIR"

windows/installer.iss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
; Requires Inno Setup 6.x
33

44
#define MyAppName "Agent Pack"
5-
#define MyAppVersion "1.0.4"
5+
#define MyAppVersion "1.0.5"
66
#define MyAppPublisher "Agent Pack"
77
#define MyAppURL "https://github.com/SenseTime-FVG/agent_pack"
88

0 commit comments

Comments
 (0)