@lark-apaas/openclaw-scripts-diagnose-cli 0.1.17-alpha.0 → 0.1.17-alpha.1
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/index.cjs +5 -3
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -52,7 +52,7 @@ node_assert = __toESM(node_assert);
|
|
|
52
52
|
* it terse and parseable.
|
|
53
53
|
*/
|
|
54
54
|
function getVersion() {
|
|
55
|
-
return "0.1.17-alpha.
|
|
55
|
+
return "0.1.17-alpha.1";
|
|
56
56
|
}
|
|
57
57
|
//#endregion
|
|
58
58
|
//#region src/rule-engine/base.ts
|
|
@@ -10602,7 +10602,6 @@ function runChannelsProbe(timeoutMs = 6e4, { ignoreProbeFailed = true } = {}) {
|
|
|
10602
10602
|
execError = err.message;
|
|
10603
10603
|
const stderrRaw = err.stderr;
|
|
10604
10604
|
stderrText = (typeof stderrRaw === "string" ? stderrRaw : stderrRaw?.toString("utf-8") ?? "").trim();
|
|
10605
|
-
if (stderrText) console.error(`channels-probe: stderr from CLI: ${stderrText}`);
|
|
10606
10605
|
}
|
|
10607
10606
|
if (stdout.trim()) {
|
|
10608
10607
|
const parsed = parseChannelsProbeOutput(stdout, { ignoreProbeFailed });
|
|
@@ -10610,6 +10609,7 @@ function runChannelsProbe(timeoutMs = 6e4, { ignoreProbeFailed = true } = {}) {
|
|
|
10610
10609
|
return {
|
|
10611
10610
|
available: true,
|
|
10612
10611
|
rawOutput: stdout.trim(),
|
|
10612
|
+
rawStderr: stderrText || void 0,
|
|
10613
10613
|
...parsed,
|
|
10614
10614
|
feishuConfigInvalid: parsed.feishuConfigInvalid || feishuConfigInvalidFromStderr
|
|
10615
10615
|
};
|
|
@@ -10620,6 +10620,7 @@ function runChannelsProbe(timeoutMs = 6e4, { ignoreProbeFailed = true } = {}) {
|
|
|
10620
10620
|
feishuConfigInvalid: stderrText.includes(FEISHU_INVALID_CONFIG_MSG),
|
|
10621
10621
|
accounts: [],
|
|
10622
10622
|
anyAccountWorking: false,
|
|
10623
|
+
rawStderr: stderrText || void 0,
|
|
10623
10624
|
error: execError ?? "no output from openclaw channels status --probe"
|
|
10624
10625
|
};
|
|
10625
10626
|
}
|
|
@@ -10719,7 +10720,7 @@ async function reportCliRun(opts) {
|
|
|
10719
10720
|
//#region src/help.ts
|
|
10720
10721
|
const BIN = "mclaw-diagnose";
|
|
10721
10722
|
function versionBanner() {
|
|
10722
|
-
return `v0.1.17-alpha.
|
|
10723
|
+
return `v0.1.17-alpha.1`;
|
|
10723
10724
|
}
|
|
10724
10725
|
const COMMANDS = [
|
|
10725
10726
|
{
|
|
@@ -11510,6 +11511,7 @@ function probeChannels(label, log, timeoutMs) {
|
|
|
11510
11511
|
if (r.error) log(` ${label} error: ${r.error}`);
|
|
11511
11512
|
if (r.gatewayReachable != null) log(` ${label} gatewayReachable: ${r.gatewayReachable}`);
|
|
11512
11513
|
for (const acct of r.accounts ?? []) log(` ${label} account ${acct.id}: isWorking=${acct.isWorking} bits=[${acct.bits.join(",")}]`);
|
|
11514
|
+
if (r.rawStderr) log(` ${label} stderr:\n${r.rawStderr}`);
|
|
11513
11515
|
if (r.rawOutput) log(` ${label} raw output:\n${r.rawOutput}`);
|
|
11514
11516
|
return r;
|
|
11515
11517
|
} catch (e) {
|
package/package.json
CHANGED