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.
package/dist/build-info.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
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
|
|
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 =
|
|
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
|
|
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 =
|
|
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
|
@@ -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. 预装飞书运维技能与引导任务 ---
|
package/scripts/install-maca.sh
CHANGED
|
@@ -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
|
|
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
|