mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-06 05:51:15 +08:00
docs: document command scan batch
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
// Agent delivery tests cover command result delivery to reply payloads and CLI dependencies.
|
||||
import { beforeEach, describe, expect, it, vi } from "vitest";
|
||||
import { deliverAgentCommandResult } from "../agents/command/delivery.js";
|
||||
import type { ReplyPayload } from "../auto-reply/types.js";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Agent bind command tests cover channel bindings, plugin metadata, and command output.
|
||||
import { beforeAll, beforeEach, describe, expect, it, vi } from "vitest";
|
||||
import type { ChannelId, ChannelPlugin } from "../channels/plugins/types.public.js";
|
||||
import type { RuntimeEnv } from "../runtime.js";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Agents provider tests cover provider status index construction for configured agents.
|
||||
import { beforeEach, describe, expect, it, vi } from "vitest";
|
||||
import type { OpenClawConfig } from "../config/types.openclaw.js";
|
||||
import { buildProviderStatusIndex } from "./agents.providers.js";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Preferred provider tests cover auth-choice provider selection and runtime provider discovery.
|
||||
import { beforeEach, describe, expect, it, vi } from "vitest";
|
||||
import type { resolvePluginProviders as resolvePluginProvidersFn } from "../plugins/providers.runtime.js";
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Channels add tests cover guided setup, plugin install paths, and channel account config writes.
|
||||
import { beforeAll, beforeEach, describe, expect, it, vi } from "vitest";
|
||||
import { getBundledChannelSetupPlugin } from "../channels/plugins/bundled.js";
|
||||
import type { ChannelPluginCatalogEntry } from "../channels/plugins/catalog.js";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Channels plugin-install test helpers build catalog, plugin, and config fixtures for add/remove suites.
|
||||
import { vi } from "vitest";
|
||||
import type { ChannelPluginCatalogEntry } from "../channels/plugins/catalog.js";
|
||||
import type { ChannelPlugin } from "../channels/plugins/types.plugin.js";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Configure gateway auth tests cover gateway auth config generation and token handling.
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { buildGatewayAuthConfig } from "./configure.js";
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Dashboard link tests cover dashboard command URL resolution and config snapshot handling.
|
||||
import { beforeEach, describe, expect, it, vi } from "vitest";
|
||||
import { dashboardCommand } from "./dashboard.js";
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Doctor config preflight tests cover state migration preflight behavior before config repair.
|
||||
import { describe, expect, it, vi } from "vitest";
|
||||
|
||||
const autoMigrateLegacyStateDir = vi.hoisted(() =>
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Doctor session state provider tests cover route-state repair and configured provider resolution.
|
||||
import { describe, expect, it, vi } from "vitest";
|
||||
import {
|
||||
applySessionRouteStateRepair,
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Doctor skills tests cover skill install checks, status summaries, and repair guidance.
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { createEmptyInstallChecks } from "../cli/requirements-test-fixtures.js";
|
||||
import type { OpenClawConfig } from "../config/types.openclaw.js";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Doctor Linux storage tests cover SD-card-backed state directory detection.
|
||||
import path from "node:path";
|
||||
import { describe, expect, it } from "vitest";
|
||||
import {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Onboard channels e2e tests cover setup wizard adapters, plugin install hooks, and channel picker behavior.
|
||||
import { beforeEach, describe, expect, it, vi } from "vitest";
|
||||
import type { ChannelPluginCatalogEntry } from "../channels/plugins/catalog.js";
|
||||
import {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Provider setup cold-import tests guard provider setup paths against runtime-heavy imports.
|
||||
import fs from "node:fs";
|
||||
import path from "node:path";
|
||||
import { fileURLToPath } from "node:url";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Sandbox formatter tests cover duration, mismatch, and sandbox diagnostic display helpers.
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { formatDurationCompact } from "../infra/format-time/format-duration.js";
|
||||
import {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Sessions ACP model display tests cover model metadata rendering for ACP-backed sessions.
|
||||
import fs from "node:fs";
|
||||
import os from "node:os";
|
||||
import path from "node:path";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Status scan overview tests cover overview collection and gateway/runtime summary inputs.
|
||||
import { beforeEach, describe, expect, it, vi } from "vitest";
|
||||
import { collectStatusScanOverview } from "./status.scan-overview.ts";
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Status scan test helpers provide shared mocks and config fixtures for scan suites.
|
||||
import type { Mock } from "vitest";
|
||||
import { vi } from "vitest";
|
||||
import type { OpenClawConfig } from "../config/types.js";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Status scan tests cover fast scan defaults, memory setup, gateway probes, and status aggregation.
|
||||
import { afterEach, beforeAll, beforeEach, describe, expect, it, vi } from "vitest";
|
||||
import {
|
||||
applyStatusScanDefaults,
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Status summary runtime tests cover model context-token resolution.
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { statusSummaryRuntime } from "./status.summary.runtime.js";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user