openclaw-multi-auto 1.0.7 → 1.0.8
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
|
+
1832bd082aa622168052a90873b7053b4f69a3a3958f0c51995a55cae6732247
|
|
@@ -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) {
|
|
@@ -6,7 +6,7 @@ import fs, { constants } from "node:fs";
|
|
|
6
6
|
import os from "node:os";
|
|
7
7
|
import chalk, { Chalk } from "chalk";
|
|
8
8
|
import { Logger } from "tslog";
|
|
9
|
-
import
|
|
9
|
+
import JSON5 from "json5";
|
|
10
10
|
import { promisify } from "node:util";
|
|
11
11
|
import fs$1 from "node:fs/promises";
|
|
12
12
|
import process$1 from "node:process";
|
|
@@ -644,7 +644,7 @@ function readLoggingConfig() {
|
|
|
644
644
|
try {
|
|
645
645
|
if (!fs.existsSync(configPath)) return;
|
|
646
646
|
const raw = fs.readFileSync(configPath, "utf-8");
|
|
647
|
-
const logging =
|
|
647
|
+
const logging = JSON5.parse(raw)?.logging;
|
|
648
648
|
if (!logging || typeof logging !== "object" || Array.isArray(logging)) return;
|
|
649
649
|
return logging;
|
|
650
650
|
} catch {
|
package/package.json
CHANGED
|
@@ -151,10 +151,14 @@ cd "${INSTANCE_DIR}"
|
|
|
151
151
|
pnpm install --shamefully-hoist --registry=https://registry.npmmirror.com 2>&1 | grep -v "WARN" | head -n 5
|
|
152
152
|
|
|
153
153
|
# --- 7. 注入 BOOTSTRAP.md 启动配置 飞书运维机器人 ---
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
154
|
+
# 建议加上 workspace 这一层,保持实例内部目录结构整洁
|
|
155
|
+
SKILLS_DIR="${INSTANCE_DIR}/workspace/skills"
|
|
156
|
+
mkdir -p "$SKILLS_DIR/workspace-git"
|
|
157
|
+
mkdir -p "$SKILLS_DIR/feishu-config"
|
|
158
|
+
|
|
159
|
+
npm install jinyu-skill-git --prefix "$SKILLS_DIR/workspace-git" --no-save
|
|
160
|
+
npm install jinyu-skill-feishu-config --prefix "$SKILLS_DIR/feishu-config" --no-save
|
|
161
|
+
|
|
158
162
|
cat > "${INSTANCE_DIR}/workspace/BOOTSTRAP.md" << 'EOF'
|
|
159
163
|
# 首次启动引导任务
|
|
160
164
|
|