winclaw 2026.3.24 → 2026.3.25
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
|
+
16c2a1d74e3df6459356ba2046c335be0b06c088beb72e2f743c02098e4844ba
|
|
@@ -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 {
|
|
@@ -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 resolveWinClawManifestBlock(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 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 { fileURLToPath } from "node:url";
|
|
12
12
|
import "@aws-sdk/client-bedrock";
|
|
@@ -368,7 +368,7 @@ function readLoggingConfig() {
|
|
|
368
368
|
try {
|
|
369
369
|
if (!fs.existsSync(configPath)) return;
|
|
370
370
|
const raw = fs.readFileSync(configPath, "utf-8");
|
|
371
|
-
const logging =
|
|
371
|
+
const logging = json5.parse(raw)?.logging;
|
|
372
372
|
if (!logging || typeof logging !== "object" || Array.isArray(logging)) return;
|
|
373
373
|
return logging;
|
|
374
374
|
} catch {
|