docs: document command status batch

This commit is contained in:
Peter Steinberger
2026-06-04 18:59:04 -04:00
parent 0156de5c34
commit 076bf2a361
20 changed files with 20 additions and 0 deletions

View File

@@ -1,3 +1,4 @@
// Agents delete tests cover config removal, workspace attestation cleanup, and binding updates.
import fs from "node:fs/promises";
import path from "node:path";
import { beforeEach, describe, expect, it, vi } from "vitest";

View File

@@ -1,3 +1,4 @@
// Legacy auth-choice tests cover deprecated choice detection and replacement messages.
import { describe, expect, it, vi } from "vitest";
const manifestAuthChoices = vi.hoisted(() => [

View File

@@ -1,3 +1,4 @@
// Backup verify tests cover archive inspection, gzip validation, and corrupted backup diagnostics.
import fs from "node:fs/promises";
import os from "node:os";
import path from "node:path";

View File

@@ -1,3 +1,4 @@
// Doctor auth hint tests cover OAuth refresh failure formatting and auth repair guidance.
import { beforeEach, describe, expect, it, vi } from "vitest";
import type { OpenClawConfig } from "../config/types.openclaw.js";
import {

View File

@@ -1,3 +1,4 @@
// Doctor command-owner tests cover channel sender formatting and configured owner detection.
import { beforeEach, describe, expect, it, vi } from "vitest";
import {
formatCommandOwnerFromChannelSender,

View File

@@ -1,3 +1,4 @@
// Doctor default-account integration tests cover binding warnings across realistic config shapes.
import { describe, expect, it } from "vitest";
import type { OpenClawConfig } from "../config/config.js";
import {

View File

@@ -1,3 +1,4 @@
// Doctor default-account tests cover warnings for missing explicit default channel accounts.
import { describe, expect, it } from "vitest";
import type { OpenClawConfig } from "../config/config.js";
import { collectMissingExplicitDefaultAccountWarnings } from "./doctor/shared/default-account-warnings.js";

View File

@@ -1,3 +1,4 @@
// Doctor gateway daemon flow tests cover managed service inspection, duplicate services, and repair prompts.
import { afterEach, beforeAll, beforeEach, describe, expect, it, vi } from "vitest";
import { formatCliCommand } from "../cli/command-format.js";
import type { ExtraGatewayService } from "../daemon/inspect.js";

View File

@@ -1,3 +1,4 @@
// Doctor sandbox tests cover warnings when sandbox mode is enabled without Docker availability.
import { beforeEach, describe, expect, it, vi } from "vitest";
import type { OpenClawConfig } from "../config/config.js";
import type { RuntimeEnv } from "../runtime.js";

View File

@@ -1,3 +1,4 @@
// Doctor WhatsApp responsiveness tests cover warning heuristics and note output for stale connections.
import { beforeEach, describe, expect, it, vi } from "vitest";
import type { OpenClawConfig } from "../config/types.openclaw.js";

View File

@@ -1,3 +1,4 @@
// Gateway status command tests cover probe targets, JSON/text output, SSH tunnels, and warnings.
import { beforeEach, describe, expect, it, vi } from "vitest";
import type { GatewayProbeResult } from "../gateway/probe.js";
import type { GatewayBonjourBeacon } from "../infra/bonjour-discovery.js";

View File

@@ -1,3 +1,4 @@
// Health snapshot tests cover channel, session, runtime, and gateway health snapshot construction.
import fs from "node:fs";
import os from "node:os";
import path from "node:path";

View File

@@ -1,3 +1,4 @@
// OpenAI model default tests cover provider-specific default model migration helpers.
import { describe, expect, it } from "vitest";
import type { OpenClawConfig } from "../config/config.js";
import {

View File

@@ -1,3 +1,4 @@
// Plugin control-plane cold-import tests guard setup and plugin metadata paths against runtime-heavy imports.
import { afterEach, describe, expect, it } from "vitest";
import { refreshPluginRegistry } from "../plugins/plugin-registry.js";
import {

View File

@@ -1,3 +1,4 @@
// Sandbox explain tests cover command output for sandbox browser and container diagnostics.
import { describe, expect, it, vi } from "vitest";
import { sandboxExplainCommand } from "./sandbox-explain.js";

View File

@@ -1,3 +1,4 @@
// Sessions command tests cover listing, details, filtering, and transcript display behavior.
import fs from "node:fs";
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
import {

View File

@@ -1,3 +1,4 @@
// Status format tests cover compact token and prompt-cache display helpers.
import { describe, expect, it } from "vitest";
import { formatPromptCacheCompact, formatTokensCompact } from "./status.format.js";

View File

@@ -1,3 +1,4 @@
// Status gateway connection tests cover connection detail resolution and terminal logging.
import { describe, expect, it, vi } from "vitest";
import {
logGatewayConnectionDetails,

View File

@@ -1,3 +1,4 @@
// Status scan shared tests cover gateway probe snapshots, Tailscale URLs, and shared scan helpers.
import { beforeEach, describe, expect, it, vi } from "vitest";
import {
buildTailscaleHttpsUrl,

View File

@@ -1,3 +1,4 @@
// Status summary redaction tests cover sensitive field removal from summarized runtime state.
import { describe, expect, it } from "vitest";
import { redactSensitiveStatusSummary } from "./status.summary.js";
import type { SessionStatus, StatusSummary } from "./status.types.js";