惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

雷峰网
雷峰网
B
Blog
博客园_首页
云风的 BLOG
云风的 BLOG
S
SegmentFault 最新的问题
罗磊的独立博客
Jina AI
Jina AI
C
Check Point Blog
Martin Fowler
Martin Fowler
J
Java Code Geeks
博客园 - 司徒正美
美团技术团队
MongoDB | Blog
MongoDB | Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
大猫的无限游戏
大猫的无限游戏
有赞技术团队
有赞技术团队
U
Unit 42
Hugging Face - Blog
Hugging Face - Blog
WordPress大学
WordPress大学
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
博客园 - 叶小钗
博客园 - 三生石上(FineUI控件)
小众软件
小众软件

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
docs: document status json helpers · openclaw/openclaw@ab...
steipete · 2026-06-05 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -1,3 +1,6 @@

1+

// Entry point for `openclaw status --all`.

2+

// Orchestrates the scan, local service probes, and report rendering while report builders own formatting.

3+
14

import { withProgress } from "../cli/progress.js";

25

import type { RuntimeEnv } from "../runtime.js";

36

import { buildStatusAllReportData } from "./status-all/report-data.js";

@@ -6,6 +9,7 @@ import { resolveStatusServiceSummaries } from "./status-runtime-shared.ts";

69

import { resolveNodeOnlyGatewayInfo } from "./status.node-mode.js";

710

import { collectStatusScanOverview } from "./status.scan-overview.ts";

811
12+

/** Runs the full read-only status report and writes it to the runtime logger. */

913

export async function statusAllCommand(

1014

runtime: RuntimeEnv,

1115

opts?: { timeoutMs?: number },

@@ -18,6 +22,7 @@ export async function statusAllCommand(

1822

},

1923

showSecrets: false,

2024

runtime,

25+

// status --all can afford gateway overrides so channel summaries reflect live runtime state.

2126

useGatewayCallOverridesForChannelsStatus: true,

2227

progress,

2328

labels: {

Original file line numberDiff line numberDiff line change

@@ -1,3 +1,6 @@

1+

// Shared command runner for `openclaw status --json`.

2+

// It keeps scan execution separate from JSON payload assembly so CLI variants can reuse the same output path.

3+
14

import { type RuntimeEnv, writeRuntimeJson } from "../runtime.js";

25

import { resolveStatusJsonOutput } from "./status-json-runtime.ts";

36

@@ -8,6 +11,7 @@ type StatusJsonCommandOptions = {

811

all?: boolean;

912

};

1013
14+

/** Runs the fast status scan, resolves optional deep fields, and writes JSON through the runtime. */

1115

export async function runStatusJsonCommand(params: {

1216

opts: StatusJsonCommandOptions;

1317

runtime: RuntimeEnv;

Original file line numberDiff line numberDiff line change

@@ -1,9 +1,13 @@

1+

// Builds the stable JSON payload for `openclaw status --json`.

2+

// Optional deep fields are included only when their upstream probes actually ran.

3+
14

import { resolveStatusUpdateChannelInfo } from "./status-all/format.js";

25

import {

36

buildStatusGatewayJsonPayloadFromSurface,

47

type StatusOverviewSurface,

58

} from "./status-overview-surface.ts";

69
10+

/** Combines scan summary, overview surface, services, agents, diagnostics, and optional deep probes. */

711

export function buildStatusJsonPayload(params: {

812

summary: Record<string, unknown>;

913

surface: StatusOverviewSurface;

@@ -38,6 +42,7 @@ export function buildStatusJsonPayload(params: {

3842

...(params.securityAudit ? { securityAudit: params.securityAudit } : {}),

3943

...(params.pluginCompatibility

4044

? {

45+

// Keep warnings grouped with a count so consumers can test compatibility status cheaply.

4146

pluginCompatibility: {

4247

count: params.pluginCompatibility.length,

4348

warnings: params.pluginCompatibility,

@@ -46,6 +51,7 @@ export function buildStatusJsonPayload(params: {

4651

: {}),

4752

...(params.health || params.usage || params.lastHeartbeat

4853

? {

54+

// Deep/usage fields stay absent in fast mode instead of appearing as null placeholders.

4955

health: params.health,

5056

usage: params.usage,

5157

lastHeartbeat: params.lastHeartbeat,

Original file line numberDiff line numberDiff line change

@@ -1,3 +1,6 @@

1+

// Resolves runtime-only inputs for status JSON after the fast scan completes.

2+

// Keeps gateway health, usage, security audit, and service summaries behind explicit option gates.

3+
14

import type { OpenClawConfig } from "../config/types.js";

25

import type { UpdateCheckResult } from "../infra/update-check.js";

36

import { buildStatusJsonPayload } from "./status-json-payload.ts";

@@ -48,6 +51,7 @@ type StatusJsonScanLike = {

4851

pluginCompatibility?: Array<Record<string, unknown>> | null | undefined;

4952

};

5053
54+

/** Builds the status JSON object from a completed scan plus optional runtime/deep probes. */

5155

export async function resolveStatusJsonOutput(params: {

5256

scan: StatusJsonScanLike;

5357

opts: {

@@ -75,6 +79,7 @@ export async function resolveStatusJsonOutput(params: {

7579

return buildStatusJsonPayload({

7680

summary: scan.summary,

7781

surface: buildStatusOverviewSurfaceFromScan({

82+

// The scan shape is intentionally narrower than the surface helper's full scan type.

7883

scan: scan as never,

7984

gatewayService,

8085

nodeService,

Original file line numberDiff line numberDiff line change

@@ -1,7 +1,11 @@

1+

// Thin `openclaw status --json` wrapper.

2+

// Command wiring lives here; scan/payload behavior lives in the shared JSON command runner.

3+
14

import type { RuntimeEnv } from "../runtime.js";

25

import { runStatusJsonCommand } from "./status-json-command.ts";

36

import { scanStatusJsonFast } from "./status.scan.fast-json.js";

47
8+

/** Runs status JSON with the standard fast scan and all-mode security audit behavior. */

59

export async function statusJsonCommand(

610

opts: {

711

deep?: boolean;

@@ -15,6 +19,7 @@ export async function statusJsonCommand(

1519

opts,

1620

runtime,

1721

scanStatusJsonFast,

22+

// `--all` is the opt-in path for heavier security audit fields in JSON output.

1823

includeSecurityAudit: opts.all === true,

1924

suppressHealthErrors: true,

2025

});