openclaw-multi-auto 1.1.0 → 1.1.1

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.
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.1.0",
3
- "commit": "f97e58fbb4ab58967faf6457ed3a9615f4b0b3be",
4
- "builtAt": "2026-03-09T16:54:37.036Z"
2
+ "version": "1.1.1",
3
+ "commit": "5c0e222b334e1ea2705fb55913738aa51036d6dd",
4
+ "builtAt": "2026-03-10T00:41:25.264Z"
5
5
  }
@@ -1 +1 @@
1
- fff8d86b3abd367352844880fc47af59ebff830354189e594a368cfedd2b8978
1
+ 6c008fbd330cb2ef2c10e96c041add23eec823924f09208fa5da3670069132fd
@@ -4,7 +4,7 @@ import fs from "node:fs";
4
4
  import os from "node:os";
5
5
  import chalk, { Chalk } from "chalk";
6
6
  import { Logger } from "tslog";
7
- import JSON5 from "json5";
7
+ import json5 from "json5";
8
8
  import { promisify } from "node:util";
9
9
  import fs$1, { mkdtemp, rm } from "node:fs/promises";
10
10
  import { execFile, spawn } from "node:child_process";
@@ -372,7 +372,7 @@ function readLoggingConfig() {
372
372
  try {
373
373
  if (!fs.existsSync(configPath)) return;
374
374
  const raw = fs.readFileSync(configPath, "utf-8");
375
- const logging = JSON5.parse(raw)?.logging;
375
+ const logging = json5.parse(raw)?.logging;
376
376
  if (!logging || typeof logging !== "object" || Array.isArray(logging)) return;
377
377
  return logging;
378
378
  } catch {
@@ -4,7 +4,7 @@ import chalk, { Chalk } from "chalk";
4
4
  import fs, { constants, createWriteStream } from "node:fs";
5
5
  import { Logger } from "tslog";
6
6
  import os from "node:os";
7
- import json5 from "json5";
7
+ import JSON5 from "json5";
8
8
  import { promisify } from "node:util";
9
9
  import fs$1 from "node:fs/promises";
10
10
  import "@clack/prompts";
@@ -766,7 +766,7 @@ function readLoggingConfig() {
766
766
  try {
767
767
  if (!fs.existsSync(configPath)) return;
768
768
  const raw = fs.readFileSync(configPath, "utf-8");
769
- const logging = json5.parse(raw)?.logging;
769
+ const logging = JSON5.parse(raw)?.logging;
770
770
  if (!logging || typeof logging !== "object" || Array.isArray(logging)) return;
771
771
  return logging;
772
772
  } catch {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openclaw-multi-auto",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "Multi-channel AI gateway with extensible messaging integrations",
5
5
  "keywords": [],
6
6
  "homepage": "https://github.com/openclaw/openclaw#readme",
@@ -129,12 +129,15 @@ fi
129
129
  cp "${SOURCE_CODE}/package.json" "${INSTANCE_DIR}/package.json"
130
130
  [ -f "${SOURCE_CODE}/pnpm-lock.yaml" ] && cp "${SOURCE_CODE}/pnpm-lock.yaml" "${INSTANCE_DIR}/pnpm-lock.yaml"
131
131
 
132
- # --- 6. 固化本地依赖 ---
132
+ # --- 6. 固化本地依赖 (路径锁定版) ---
133
133
  echo -e "${BLUE}📦 正在固化运行环境 (pnpm)...${NC}"
134
134
  export SHARP_BINARY_HOST="https://npmmirror.com/mirrors/sharp"
135
135
  export SHARP_LIBVIPS_BINARY_HOST="https://npmmirror.com/mirrors/sharp-libvips"
136
136
 
137
+ # 🛑 关键修复:显式进入实例物理目录,确保 node_modules 生成在正确位置
137
138
  cd "${INSTANCE_DIR}"
139
+ echo -e "${YELLOW}📍 安装路径确认: $(pwd)${NC}"
140
+
138
141
  pnpm install --shamefully-hoist --registry=https://registry.npmmirror.com 2>&1 | grep -v "WARN" | head -n 5
139
142
 
140
143
  # --- 7. 预装飞书运维技能与引导任务 ---
@@ -16,7 +16,7 @@ NC='\033[0m'
16
16
  MIN_NODE_VERSION="22.12.0"
17
17
 
18
18
  echo -e "${BLUE}================================================${NC}"
19
- echo -e "${BLUE} OpenClaw 极速部署工具 (离线补丁固化版) ${NC}"
19
+ echo -e "${BLUE} OpenClaw 极速一键部署 ${NC}"
20
20
  echo -e "${BLUE}================================================${NC}"
21
21
 
22
22
  # ==================== 1. 彻底修复权限污染 ====================
@@ -127,10 +127,9 @@ export NODEJS_ORG_MIRROR="https://npmmirror.com/mirrors/node"
127
127
  echo -e "${YELLOW}📥 正在执行全局安装...${NC}"
128
128
 
129
129
  # 核心改动:使用 --ignore-scripts 避开全局安装时的 sharp 报错
130
- npm install -g openclaw-multi-auto \
130
+ npm install -g openclaw-multi-auto@latest \
131
131
  --registry=https://registry.npmmirror.com \
132
- --unsafe-perm=true \
133
- --ignore-scripts
132
+ --unsafe-perm=true
134
133
 
135
134
  # 3. 补救措施:手动确保 bin 链接正确
136
135
  npm link openclaw-multi-auto --registry=https://registry.npmmirror.com 2>/dev/null || true