@zi.yi/openclaw-easy 1.0.4 → 1.0.6

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.
@@ -249,22 +249,28 @@ async function main() {
249
249
  updateOpenClawConfig(finalModel);
250
250
 
251
251
  if (isWindows) {
252
- // Windows:手动启动提示
252
+ // Windows:自动启动 Gateway(前台运行)
253
253
  console.log("\n" + "=".repeat(50));
254
- console.log(" 📋 接下来的步骤");
254
+ console.log(" 配置完成!");
255
255
  console.log("=".repeat(50));
256
- console.log("\n【1️⃣ 当前终端】复制并运行:");
257
- console.log(" npx openclaw gateway");
258
- console.log("\n ⚠️ 此窗口保持开启,关闭会停止服务");
259
- console.log("\n【2️⃣ 打开新终端】复制并运行:");
260
- console.log(" npx openclaw dashboard");
256
+ console.log("\n正在启动 OpenClaw Gateway...");
257
+ console.log("⚠️ 请保持此窗口开启,关闭会停止服务\n");
258
+ console.log("打开新终端,运行以下命令打开控制面板:");
259
+ console.log(" npx openclaw dashboard");
261
260
  console.log("\n" + "=".repeat(50) + "\n");
261
+
262
+ // 直接启动 Gateway(阻塞式)
263
+ spawnSync(
264
+ process.execPath,
265
+ [openclawCli, "gateway"],
266
+ { stdio: "inherit" }
267
+ );
262
268
  } else {
263
269
  // macOS/Linux:自动重启
264
270
  console.log("\n正在重启 OpenClaw Gateway...");
265
271
  spawnSync(
266
272
  process.execPath,
267
- [openclawCli, "gateway", "--stop"],
273
+ [openclawCli, "gateway", "stop"],
268
274
  { stdio: "inherit" }
269
275
  );
270
276
  console.log("\n✓ 配置完成!Gateway 正在自动启动...");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zi.yi/openclaw-easy",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "One-command setup for OpenClaw with built-in API key",
5
5
  "type": "module",
6
6
  "bin": {