create-openclaw-bot 5.17.2 → 5.17.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/README.vi.md +3 -3
- package/dist/server/local-server.js +29 -8
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*Run one command → open the dashboard → your bot is live. Windows, macOS, Linux, VPS - Docker-powered, auto-installed for you.*
|
|
8
8
|
|
|
9
9
|
<p align="center">
|
|
10
|
-
<a href="https://github.com/tuanminhhole/openclaw-setup/releases"><img src="https://img.shields.io/badge/RELEASE-v5.17.
|
|
10
|
+
<a href="https://github.com/tuanminhhole/openclaw-setup/releases"><img src="https://img.shields.io/badge/RELEASE-v5.17.3-0EA5E9?style=for-the-badge" alt="Version 5.17.3" /></a>
|
|
11
11
|
<a href="https://github.com/tuanminhhole/openclaw-setup?tab=MIT-1-ov-file"><img src="https://img.shields.io/badge/LICENSE-MIT-success?style=for-the-badge" alt="MIT License" /></a>
|
|
12
12
|
<a href="https://www.npmjs.com/package/create-openclaw-bot"><img src="https://img.shields.io/npm/v/create-openclaw-bot?style=for-the-badge&label=CLI&color=2563EB&logo=npm&logoColor=white" alt="NPM Version" /></a>
|
|
13
13
|
<a href="https://github.com/tuanminhhole/openclaw-setup/stargazers"><img src="https://img.shields.io/github/stars/tuanminhhole/openclaw-setup?style=for-the-badge&color=eab308&logo=github&logoColor=white" alt="GitHub Stars" /></a>
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
|
|
38
38
|
---
|
|
39
39
|
|
|
40
|
-
## 🆕 What's New in v5.17.
|
|
40
|
+
## 🆕 What's New in v5.17.3
|
|
41
41
|
|
|
42
42
|
- 🩹 **Native installs on OpenClaw 2026.8 are smooth from the first run** - this wave patches the remaining chain of issues measured on fresh customer machines: generated configs pass the new strict checks 100%, install steps run in the right order, and restarts/plugin installs no longer get blocked midway.
|
|
43
43
|
- 🔑 **9Router login works on Docker**: the new 9Router blocks the default password for "remote" access - and inside Docker every request counts as remote, so 123456 could never log in. It works now (still change the password once you're in).
|
package/README.vi.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*Chạy một lệnh, mở dashboard, bot lên sóng. Windows, macOS, Linux, VPS. Bot chạy thẳng trên máy, không cần Docker.*
|
|
8
8
|
|
|
9
9
|
<p align="center">
|
|
10
|
-
<a href="https://github.com/tuanminhhole/openclaw-setup/releases"><img src="https://img.shields.io/badge/RELEASE-v5.17.
|
|
10
|
+
<a href="https://github.com/tuanminhhole/openclaw-setup/releases"><img src="https://img.shields.io/badge/RELEASE-v5.17.3-0EA5E9?style=for-the-badge" alt="Version 5.17.3" /></a>
|
|
11
11
|
<a href="https://github.com/tuanminhhole/openclaw-setup?tab=MIT-1-ov-file"><img src="https://img.shields.io/badge/LICENSE-MIT-success?style=for-the-badge" alt="MIT License" /></a>
|
|
12
12
|
<a href="https://www.npmjs.com/package/create-openclaw-bot"><img src="https://img.shields.io/npm/v/create-openclaw-bot?style=for-the-badge&label=CLI&color=2563EB&logo=npm&logoColor=white" alt="NPM Version" /></a>
|
|
13
13
|
<a href="https://github.com/tuanminhhole/openclaw-setup/stargazers"><img src="https://img.shields.io/github/stars/tuanminhhole/openclaw-setup?style=for-the-badge&color=eab308&logo=github&logoColor=white" alt="GitHub Stars" /></a>
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
|
|
38
38
|
---
|
|
39
39
|
|
|
40
|
-
## 🆕 Có gì mới trong v5.17.
|
|
40
|
+
## 🆕 Có gì mới trong v5.17.3
|
|
41
41
|
|
|
42
42
|
- 🩹 **Cài native trên OpenClaw 2026.8 mượt từ phát đầu** - đợt này vá nốt chuỗi lỗi đo được khi dựng máy khách mới: cấu hình sinh ra sạch 100% với bộ soát khắt khe của OpenClaw mới, các bước cài tự chạy đúng thứ tự, và mọi thao tác khởi động lại/cài plugin không còn bị chặn giữa chừng.
|
|
43
43
|
- 🔑 **Đăng nhập 9Router hoạt động trên Docker**: bản 9Router mới chặn mật khẩu mặc định với truy cập "từ xa" - mà trong Docker thì mọi truy cập đều bị tính là từ xa, nên trước đây không cách nào vào được bằng 123456. Giờ đăng nhập bình thường (vào rồi vẫn nên đổi mật khẩu).
|
|
@@ -249,7 +249,7 @@ Bấm nút **Cập nhật** ở **góc trên bên phải giao diện Setup**. H
|
|
|
249
249
|
- **Node.js 24 LTS** (bắt buộc). Cả trình cài đặt lẫn bot đều chạy bằng Node. [Tải Node.js](https://nodejs.org/).
|
|
250
250
|
Máy chưa có Node thì trình cài đặt tự cài giúp bạn.
|
|
251
251
|
- **Git**: Đã cài đặt và có trong biến môi trường PATH.
|
|
252
|
-
- **Không cần Docker nữa.** Từ bản 5.17.
|
|
252
|
+
- **Không cần Docker nữa.** Từ bản 5.17.3 bot chạy thẳng trên máy.
|
|
253
253
|
|
|
254
254
|
---
|
|
255
255
|
|
|
@@ -7102,9 +7102,13 @@ async function handler(req, res, rootProjectDir) {
|
|
|
7102
7102
|
sendLog(`[update-setup] Global npm install detected - npm i -g create-openclaw-bot@latest${prefixArgs.length ? ` (prefix ${npmPrefix})` : ''}…`);
|
|
7103
7103
|
await run('npm', ['i', '-g', 'create-openclaw-bot@latest', '--no-audit', '--no-fund', ...prefixArgs], { cwd: installerDir });
|
|
7104
7104
|
} else {
|
|
7105
|
-
//
|
|
7106
|
-
//
|
|
7107
|
-
|
|
7105
|
+
// An npx install: warm the package cache HERE, while the UI is still up and the
|
|
7106
|
+
// browser is still watching the log. Leaving it to the relaunch meant the download
|
|
7107
|
+
// happened with no server running and nothing to report progress to, so a slow link
|
|
7108
|
+
// looked exactly like a crash.
|
|
7109
|
+
sendLog('[update-setup] Tải bản mới từ npm…');
|
|
7110
|
+
await run('npm', ['cache', 'add', 'create-openclaw-bot@latest'], { cwd: installerDir })
|
|
7111
|
+
.catch((e) => sendLog(`[update-setup] npm cache add: ${e.message}`));
|
|
7108
7112
|
}
|
|
7109
7113
|
restartInstaller();
|
|
7110
7114
|
} catch (err) {
|
|
@@ -7323,17 +7327,34 @@ function restartInstaller() {
|
|
|
7323
7327
|
];
|
|
7324
7328
|
|
|
7325
7329
|
let bin, spawnArgs, opts;
|
|
7326
|
-
|
|
7327
|
-
|
|
7330
|
+
// Inheriting the parent's stdio is what killed this on Windows. The dashboard is started by
|
|
7331
|
+
// the hidden launcher (wscript -> cmd), whose console is torn down the moment this process
|
|
7332
|
+
// exits - and the child inherits it, so the replacement died with its parent and the tab sat
|
|
7333
|
+
// on "Không thể kết nối lại với Setup UI". A relaunch must not depend on the parent's
|
|
7334
|
+
// console at all. Measured on a customer machine.
|
|
7335
|
+
const relaunchStdio = 'ignore';
|
|
7336
|
+
const winLauncher = process.platform === 'win32'
|
|
7337
|
+
? [join(activeUiProjectDir || '', 'run-hidden.vbs'), join(activeUiProjectDir || '', 'setup-ui.cmd')]
|
|
7338
|
+
: null;
|
|
7339
|
+
if (winLauncher && winLauncher.every((f) => existsSync(f))) {
|
|
7340
|
+
// Best case on Windows: hand back to the very launcher the operator uses. It already knows
|
|
7341
|
+
// the host, port and project dir, and it puts the UI in their desktop session.
|
|
7342
|
+
bin = 'wscript.exe';
|
|
7343
|
+
spawnArgs = winLauncher;
|
|
7344
|
+
opts = { detached: true, stdio: relaunchStdio, shell: false, windowsHide: true };
|
|
7345
|
+
} else if (isNpx) {
|
|
7346
|
+
// An npx install came from npm, so update from npm. Pulling `github:…` instead rebuilt the
|
|
7347
|
+
// repo from source on every update: minutes of clone plus install, long past the point the
|
|
7348
|
+
// browser gives up reconnecting, and a different artifact from the one they installed.
|
|
7328
7349
|
const win = process.platform === 'win32';
|
|
7329
7350
|
bin = win ? 'npx.cmd' : 'npx';
|
|
7330
|
-
spawnArgs = ['
|
|
7331
|
-
opts = { detached: true, stdio:
|
|
7351
|
+
spawnArgs = ['--yes', 'create-openclaw-bot@latest', ...uiArgs];
|
|
7352
|
+
opts = { detached: true, stdio: relaunchStdio, shell: win };
|
|
7332
7353
|
} else {
|
|
7333
7354
|
// Local clone / file install - re-run this entry (git pull already updated it).
|
|
7334
7355
|
bin = process.argv[0];
|
|
7335
7356
|
spawnArgs = [process.argv[1], ...uiArgs];
|
|
7336
|
-
opts = { detached: true, stdio:
|
|
7357
|
+
opts = { detached: true, stdio: relaunchStdio, shell: false };
|
|
7337
7358
|
}
|
|
7338
7359
|
|
|
7339
7360
|
// Brief delay to let the port fully release before the child binds it.
|