mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-06 05:51:15 +08:00
docs: document command status batch
This commit is contained in:
@@ -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";
|
||||
|
||||
@@ -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(() => [
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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";
|
||||
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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";
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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";
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Status gateway connection tests cover connection detail resolution and terminal logging.
|
||||
import { describe, expect, it, vi } from "vitest";
|
||||
import {
|
||||
logGatewayConnectionDetails,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user