openclaw-multi-auto 1.3.5 → 1.3.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.
package/dist/build-info.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
e3ff4301b018b4da65b54f0b9eb467992a63f1a247d387847a549cbf696f47b9
|
|
@@ -4,7 +4,7 @@ import chalk, { Chalk } from "chalk";
|
|
|
4
4
|
import fs, { constants } 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 { isDeepStrictEqual, promisify } from "node:util";
|
|
9
9
|
import fs$1 from "node:fs/promises";
|
|
10
10
|
import { execFile, execFileSync, spawn } from "node:child_process";
|
|
@@ -802,7 +802,7 @@ function readLoggingConfig() {
|
|
|
802
802
|
try {
|
|
803
803
|
if (!fs.existsSync(configPath)) return;
|
|
804
804
|
const raw = fs.readFileSync(configPath, "utf-8");
|
|
805
|
-
const logging =
|
|
805
|
+
const logging = JSON5.parse(raw)?.logging;
|
|
806
806
|
if (!logging || typeof logging !== "object" || Array.isArray(logging)) return;
|
|
807
807
|
return logging;
|
|
808
808
|
} catch {
|
|
@@ -5861,7 +5861,7 @@ const defaultResolver = {
|
|
|
5861
5861
|
resolvedPath,
|
|
5862
5862
|
rootRealDir
|
|
5863
5863
|
}),
|
|
5864
|
-
parseJson: (raw) =>
|
|
5864
|
+
parseJson: (raw) => JSON5.parse(raw)
|
|
5865
5865
|
};
|
|
5866
5866
|
/**
|
|
5867
5867
|
* Resolves all $include directives in a parsed config object.
|
|
@@ -13216,7 +13216,7 @@ function resolveConfigPathForDeps(deps) {
|
|
|
13216
13216
|
function normalizeDeps(overrides = {}) {
|
|
13217
13217
|
return {
|
|
13218
13218
|
fs: overrides.fs ?? fs,
|
|
13219
|
-
json5: overrides.json5 ??
|
|
13219
|
+
json5: overrides.json5 ?? JSON5,
|
|
13220
13220
|
env: overrides.env ?? process.env,
|
|
13221
13221
|
homedir: overrides.homedir ?? (() => resolveRequiredHomeDir(overrides.env ?? process.env, os.homedir)),
|
|
13222
13222
|
configPath: overrides.configPath ?? "",
|
|
@@ -13227,11 +13227,11 @@ function maybeLoadDotEnvForConfig(env) {
|
|
|
13227
13227
|
if (env !== process.env) return;
|
|
13228
13228
|
loadDotEnv({ quiet: true });
|
|
13229
13229
|
}
|
|
13230
|
-
function parseConfigJson5(raw, json5
|
|
13230
|
+
function parseConfigJson5(raw, json5 = JSON5) {
|
|
13231
13231
|
try {
|
|
13232
13232
|
return {
|
|
13233
13233
|
ok: true,
|
|
13234
|
-
parsed: json5
|
|
13234
|
+
parsed: json5.parse(raw)
|
|
13235
13235
|
};
|
|
13236
13236
|
} catch (err) {
|
|
13237
13237
|
return {
|
|
@@ -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) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "openclaw-multi-auto",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.6",
|
|
4
4
|
"description": "Multi-channel AI gateway with extensible messaging integrations",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"homepage": "https://github.com/openclaw/openclaw#readme",
|
|
@@ -415,6 +415,10 @@
|
|
|
415
415
|
"@napi-rs/canvas": "^0.1.89",
|
|
416
416
|
"node-llama-cpp": "3.16.2"
|
|
417
417
|
},
|
|
418
|
+
"overrides": {
|
|
419
|
+
"libsignal": "npm:@openclaw-cn/libsignal@2.0.1",
|
|
420
|
+
"@whiskeysockets/libsignal-node": "npm:@openclaw-cn/libsignal@2.0.1"
|
|
421
|
+
},
|
|
418
422
|
"engines": {
|
|
419
423
|
"node": ">=22.12.0"
|
|
420
424
|
},
|
package/scripts/npm_publish.sh
CHANGED
|
@@ -29,24 +29,25 @@ echo -e "${GREEN}[OK]${NC}"
|
|
|
29
29
|
echo -ne "${YELLOW}🔄 正在配置重定向至 @openclaw-cn/libsignal... ${NC}"
|
|
30
30
|
|
|
31
31
|
# 精简版:只做关键校验,不做暴力重写
|
|
32
|
+
# 在发布脚本中执行
|
|
32
33
|
node -e "
|
|
33
34
|
const fs = require('fs');
|
|
34
35
|
const p = JSON.parse(fs.readFileSync('package.json'));
|
|
35
36
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
p.pnpm = p.pnpm || {};
|
|
39
|
-
p.pnpm.overrides = {
|
|
40
|
-
...p.pnpm.overrides,
|
|
41
|
-
'libsignal': 'npm:' + TARGET,
|
|
42
|
-
'@whiskeysockets/libsignal-node': 'npm:' + TARGET
|
|
43
|
-
};
|
|
37
|
+
// 强制将 baileys 锁定在不带 Git 隐患的版本
|
|
38
|
+
p.dependencies['@whiskeysockets/baileys'] = '7.0.0-rc.9';
|
|
44
39
|
|
|
45
|
-
//
|
|
46
|
-
|
|
40
|
+
// 注入双重拦截
|
|
41
|
+
const redirect = 'npm:@openclaw-cn/libsignal@2.0.1';
|
|
42
|
+
p.overrides = {
|
|
43
|
+
'libsignal': redirect,
|
|
44
|
+
'@whiskeysockets/libsignal-node': redirect
|
|
45
|
+
};
|
|
46
|
+
p.pnpm = { ...p.pnpm, overrides: p.overrides };
|
|
47
47
|
|
|
48
48
|
fs.writeFileSync('package.json', JSON.stringify(p, null, 2));
|
|
49
49
|
"
|
|
50
|
+
|
|
50
51
|
echo -e "${GREEN}[OK]${NC}"
|
|
51
52
|
|
|
52
53
|
# 2. 准备纯净环境
|