openclaw-multi-auto 1.8.1 → 1.8.4
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
|
+
ef4b3d68141b1aae2779b5a5bb1d37f12bad64a94dc799ed81fa22cd5dc14b19
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "openclaw-multi-auto",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.4",
|
|
4
4
|
"description": "Multi-channel AI gateway with extensible messaging integrations",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"homepage": "https://github.com/openclaw/openclaw#readme",
|
|
@@ -372,6 +372,7 @@
|
|
|
372
372
|
"ajv": "^8.18.0",
|
|
373
373
|
"chalk": "^5.6.2",
|
|
374
374
|
"chokidar": "^5.0.0",
|
|
375
|
+
"clawhub": "latest",
|
|
375
376
|
"cli-highlight": "^2.1.11",
|
|
376
377
|
"commander": "^14.0.3",
|
|
377
378
|
"croner": "^10.0.1",
|
|
@@ -21,6 +21,8 @@ for cmd in node pnpm; do
|
|
|
21
21
|
fi
|
|
22
22
|
done
|
|
23
23
|
|
|
24
|
+
OS_TYPE=$(uname -s 2>/dev/null || echo "unknown")
|
|
25
|
+
|
|
24
26
|
# --- 1. 源码路径定位 ---
|
|
25
27
|
SOURCE_CODE="$HOME/openclaw-runtime/node_modules/openclaw-multi-auto"
|
|
26
28
|
if [ -n "$OPENCLAW_SOURCE_DIR" ] && [ -d "$OPENCLAW_SOURCE_DIR" ]; then
|
|
@@ -150,24 +152,6 @@ if [ ! -d "node_modules" ]; then
|
|
|
150
152
|
fi
|
|
151
153
|
echo -e "${GREEN}✅ 依赖安装成功${NC}"
|
|
152
154
|
|
|
153
|
-
# --- 安装扩展 page-action-cache ---
|
|
154
|
-
echo -e "${BLUE}📦 正在安装扩展 page-action-cache...${NC}"
|
|
155
|
-
mkdir -p "${INSTANCE_DIR}/extensions"
|
|
156
|
-
cd "${INSTANCE_DIR}/extensions"
|
|
157
|
-
TEMP_EXT_DIR=$(mktemp -d)
|
|
158
|
-
cd "$TEMP_EXT_DIR"
|
|
159
|
-
if npm pack page-action-cache --registry=https://registry.npmmirror.com --quiet > /dev/null 2>&1; then
|
|
160
|
-
TARBALL=$(ls *.tgz)
|
|
161
|
-
tar -xzf "$TARBALL"
|
|
162
|
-
rm -rf "${INSTANCE_DIR}/extensions/page-action-cache"
|
|
163
|
-
mv package "${INSTANCE_DIR}/extensions/page-action-cache"
|
|
164
|
-
echo -e "${GREEN}✅ page-action-cache 安装成功${NC}"
|
|
165
|
-
else
|
|
166
|
-
echo -e "${YELLOW}⚠️ page-action-cache 下载失败${NC}"
|
|
167
|
-
fi
|
|
168
|
-
rm -rf "$TEMP_EXT_DIR"
|
|
169
|
-
cd "${INSTANCE_DIR}"
|
|
170
|
-
|
|
171
155
|
# --- 8. 参数与交互式获取 ---
|
|
172
156
|
MODEL_PROVIDER="${3:-}"
|
|
173
157
|
if [ -z "$MODEL_PROVIDER" ]; then
|
|
@@ -260,25 +244,6 @@ cat > "${INSTANCE_DIR}/config/openclaw.json" << EOF
|
|
|
260
244
|
}
|
|
261
245
|
EOF
|
|
262
246
|
|
|
263
|
-
# --- 10. 预装可选技能 ---
|
|
264
|
-
echo -e "${BLUE}🤖 正在注入飞书运维机器人引导...${NC}"
|
|
265
|
-
SKILLS_DIR="${INSTANCE_DIR}/workspace/skills"
|
|
266
|
-
mkdir -p "$SKILLS_DIR"
|
|
267
|
-
SKILL_PKG="jinyu-skill-feishu-config"
|
|
268
|
-
REGISTRY="https://registry.npmmirror.com"
|
|
269
|
-
TEMP_DIR=$(mktemp -d)
|
|
270
|
-
cd "$TEMP_DIR"
|
|
271
|
-
if npm pack "$SKILL_PKG@latest" --registry="$REGISTRY" --quiet > /dev/null; then
|
|
272
|
-
TARBALL=$(ls *.tgz)
|
|
273
|
-
mkdir -p "$SKILLS_DIR/feishu-config"
|
|
274
|
-
tar -xzf "$TARBALL" -C "$SKILLS_DIR/feishu-config" --strip-components=1
|
|
275
|
-
echo -e "${GREEN}✅ 技能 feishu-config 安装成功${NC}"
|
|
276
|
-
else
|
|
277
|
-
echo -e "${YELLOW}⚠️ 技能 feishu-config 下载失败,跳过(可手动安装)${NC}"
|
|
278
|
-
fi
|
|
279
|
-
cd - > /dev/null
|
|
280
|
-
rm -rf "$TEMP_DIR"
|
|
281
|
-
|
|
282
247
|
# --- 如果实例是 yunwei,安装角色包 ---
|
|
283
248
|
if [ "$INSTANCE_NAME" = "yunwei" ]; then
|
|
284
249
|
echo -e "${BLUE}🛠️ 检测到运维实例,正在安装角色包 role-openclaw-yunwei...${NC}"
|
|
@@ -386,6 +351,11 @@ check_port() {
|
|
|
386
351
|
fi
|
|
387
352
|
}
|
|
388
353
|
|
|
354
|
+
./start.sh plugins install page-action-cache
|
|
355
|
+
if [ "$INSTANCE_NAME" = "yunwei" ]; then
|
|
356
|
+
./start.sh clawhub install jinyu-skill-feishu-config
|
|
357
|
+
fi
|
|
358
|
+
|
|
389
359
|
if kill -0 $PID 2>/dev/null; then
|
|
390
360
|
if check_port; then
|
|
391
361
|
echo -e "${GREEN}================================================${NC}"
|
|
@@ -412,7 +382,7 @@ if kill -0 $PID 2>/dev/null; then
|
|
|
412
382
|
if [ -n "$TOKEN" ]; then
|
|
413
383
|
URL="http://localhost:$PORT/?token=$TOKEN"
|
|
414
384
|
echo -e "${GREEN}请在浏览器中打开: ${BLUE}$URL${NC}"
|
|
415
|
-
if [[ "$
|
|
385
|
+
if [[ "$OS_TYPE" == "darwin"* ]]; then
|
|
416
386
|
open "$URL"
|
|
417
387
|
elif command -v xdg-open &> /dev/null; then
|
|
418
388
|
xdg-open "$URL"
|
|
@@ -431,4 +401,4 @@ if kill -0 $PID 2>/dev/null; then
|
|
|
431
401
|
else
|
|
432
402
|
echo -e "${RED}❌ 启动失败,请查看日志: tail -n 20 ${INSTANCE_DIR}/workspace/server.log${NC}"
|
|
433
403
|
exit 1
|
|
434
|
-
|
|
404
|
+
fi
|