openclaw-multi-auto 1.4.8 → 1.4.9
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 +3 -3
- package/dist/canvas-host/a2ui/.bundle.hash +1 -1
- package/dist/plugin-sdk/mattermost.js +3 -3
- package/dist/plugin-sdk/signal.js +2 -2
- package/extensions/page-action-cache/package.json +2 -2
- package/package.json +1 -1
- package/scripts/create-instance.sh +2 -2
- package/scripts/npm_publish.sh +3 -3
package/dist/build-info.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
11602ce02e6ea489498041f1422b111899c5c1bb6d35090eca40c07c55ea40bc
|
|
@@ -5,7 +5,7 @@ import fs, { constants } from "node:fs";
|
|
|
5
5
|
import os from "node:os";
|
|
6
6
|
import chalk, { Chalk } from "chalk";
|
|
7
7
|
import { Logger } from "tslog";
|
|
8
|
-
import
|
|
8
|
+
import JSON5 from "json5";
|
|
9
9
|
import util, { promisify } from "node:util";
|
|
10
10
|
import fs$1 from "node:fs/promises";
|
|
11
11
|
import process$1 from "node:process";
|
|
@@ -400,7 +400,7 @@ function readLoggingConfig() {
|
|
|
400
400
|
try {
|
|
401
401
|
if (!fs.existsSync(configPath)) return;
|
|
402
402
|
const raw = fs.readFileSync(configPath, "utf-8");
|
|
403
|
-
const logging =
|
|
403
|
+
const logging = JSON5.parse(raw)?.logging;
|
|
404
404
|
if (!logging || typeof logging !== "object" || Array.isArray(logging)) return;
|
|
405
405
|
return logging;
|
|
406
406
|
} catch {
|
|
@@ -4481,7 +4481,7 @@ function resolveOpenClawManifestBlock(params) {
|
|
|
4481
4481
|
const raw = getFrontmatterString(params.frontmatter, params.key ?? "metadata");
|
|
4482
4482
|
if (!raw) return;
|
|
4483
4483
|
try {
|
|
4484
|
-
const parsed =
|
|
4484
|
+
const parsed = JSON5.parse(raw);
|
|
4485
4485
|
if (!parsed || typeof parsed !== "object") return;
|
|
4486
4486
|
const manifestKeys = [MANIFEST_KEY, ...LEGACY_MANIFEST_KEYS];
|
|
4487
4487
|
for (const key of manifestKeys) {
|
|
@@ -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 {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "
|
|
3
|
-
"version": "1.0.
|
|
2
|
+
"name": "page-action-cache",
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Page action caching extension for OpenClaw - caches LLM browser operations to avoid re-analyzing the same DOM",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"automation",
|
package/package.json
CHANGED
|
@@ -139,11 +139,11 @@ pnpm install --shamefully-hoist --ignore-workspace --registry=https://registry.n
|
|
|
139
139
|
# 安装 page-action-cache 扩展
|
|
140
140
|
echo -e "${BLUE}📦 安装 page-action-cache 扩展...${NC}"
|
|
141
141
|
cd "${INSTANCE_DIR}"
|
|
142
|
-
if pnpm install --registry=https://registry.npmmirror.com
|
|
142
|
+
if pnpm install --registry=https://registry.npmmirror.com page-action-cache@latest; then
|
|
143
143
|
echo -e "${GREEN}✅ page-action-cache 扩展安装成功${NC}"
|
|
144
144
|
else
|
|
145
145
|
echo -e "${YELLOW}⚠️ page-action-cache 扩展安装失败,但将继续实例创建${NC}"
|
|
146
|
-
echo -e "${YELLOW}💡 提示: 可以稍后手动安装: cd ${INSTANCE_DIR} && pnpm install
|
|
146
|
+
echo -e "${YELLOW}💡 提示: 可以稍后手动安装: cd ${INSTANCE_DIR} && pnpm install page-action-cache@latest${NC}"
|
|
147
147
|
fi
|
|
148
148
|
|
|
149
149
|
if [ ! -d "node_modules" ]; then
|
package/scripts/npm_publish.sh
CHANGED
|
@@ -157,11 +157,11 @@ echo -ne "${YELLOW}🚀 正在发布到 npm...${NC}"
|
|
|
157
157
|
npm publish --access public
|
|
158
158
|
|
|
159
159
|
if [ $? -eq 0 ]; then
|
|
160
|
-
echo -e "${GREEN}✅
|
|
160
|
+
echo -e "${GREEN}✅ page-action-cache 发布成功!${NC}"
|
|
161
161
|
# 通知镜像同步
|
|
162
162
|
curl -s -X PUT "https://registry-direct.npmmirror.com/@openclaw/page-action-cache/sync?publish=true" > /dev/null && echo -e "${GREEN}[完成]${NC}"
|
|
163
163
|
else
|
|
164
|
-
echo -e "${RED}❌
|
|
164
|
+
echo -e "${RED}❌ page-action-cache 发布失败${NC}"
|
|
165
165
|
echo -e "${YELLOW}⚠️ 可能的原因:${NC}"
|
|
166
166
|
echo -e "${YELLOW}1. 包还未发布到 npm,或者您没有发布权限${NC}"
|
|
167
167
|
echo -e "${YELLOW}2. 建议先单独发布扩展:${NC}"
|
|
@@ -178,7 +178,7 @@ rm -f "$TMP_PACKAGE_JSON"
|
|
|
178
178
|
echo -e "${GREEN}🎉 完整发布流程完成!${NC}"
|
|
179
179
|
echo -e "${GREEN}📋 已发布:${NC}"
|
|
180
180
|
echo -e "${GREEN} - openclaw-multi-auto (v${CUR_VERSION})${NC}"
|
|
181
|
-
echo -e "${GREEN} -
|
|
181
|
+
echo -e "${GREEN} - page-action-cache (latest)${NC}"
|
|
182
182
|
echo ""
|
|
183
183
|
echo -e "${BLUE}💡 提示:${NC}"
|
|
184
184
|
echo -e "${BLUE} 扩展发布后,需要重启实例才能生效 page-action-cache${NC}"
|