docs: document command scan batch · openclaw/openclaw@12ade5c
steipete
·
2026-06-05
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +// Agent delivery tests cover command result delivery to reply payloads and CLI dependencies. |
1 | 2 | import { beforeEach, describe, expect, it, vi } from "vitest"; |
2 | 3 | import { deliverAgentCommandResult } from "../agents/command/delivery.js"; |
3 | 4 | import type { ReplyPayload } from "../auto-reply/types.js"; |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +// Agent bind command tests cover channel bindings, plugin metadata, and command output. |
1 | 2 | import { beforeAll, beforeEach, describe, expect, it, vi } from "vitest"; |
2 | 3 | import type { ChannelId, ChannelPlugin } from "../channels/plugins/types.public.js"; |
3 | 4 | import type { RuntimeEnv } from "../runtime.js"; |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +// Agents provider tests cover provider status index construction for configured agents. |
1 | 2 | import { beforeEach, describe, expect, it, vi } from "vitest"; |
2 | 3 | import type { OpenClawConfig } from "../config/types.openclaw.js"; |
3 | 4 | import { buildProviderStatusIndex } from "./agents.providers.js"; |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +// Preferred provider tests cover auth-choice provider selection and runtime provider discovery. |
1 | 2 | import { beforeEach, describe, expect, it, vi } from "vitest"; |
2 | 3 | import type { resolvePluginProviders as resolvePluginProvidersFn } from "../plugins/providers.runtime.js"; |
3 | 4 | |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +// Channels add tests cover guided setup, plugin install paths, and channel account config writes. |
1 | 2 | import { beforeAll, beforeEach, describe, expect, it, vi } from "vitest"; |
2 | 3 | import { getBundledChannelSetupPlugin } from "../channels/plugins/bundled.js"; |
3 | 4 | import type { ChannelPluginCatalogEntry } from "../channels/plugins/catalog.js"; |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +// Channels plugin-install test helpers build catalog, plugin, and config fixtures for add/remove suites. |
1 | 2 | import { vi } from "vitest"; |
2 | 3 | import type { ChannelPluginCatalogEntry } from "../channels/plugins/catalog.js"; |
3 | 4 | import type { ChannelPlugin } from "../channels/plugins/types.plugin.js"; |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +// Configure gateway auth tests cover gateway auth config generation and token handling. |
1 | 2 | import { describe, expect, it } from "vitest"; |
2 | 3 | import { buildGatewayAuthConfig } from "./configure.js"; |
3 | 4 | |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +// Dashboard link tests cover dashboard command URL resolution and config snapshot handling. |
1 | 2 | import { beforeEach, describe, expect, it, vi } from "vitest"; |
2 | 3 | import { dashboardCommand } from "./dashboard.js"; |
3 | 4 | |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +// Doctor config preflight tests cover state migration preflight behavior before config repair. |
1 | 2 | import { describe, expect, it, vi } from "vitest"; |
2 | 3 | |
3 | 4 | const autoMigrateLegacyStateDir = vi.hoisted(() => |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +// Doctor session state provider tests cover route-state repair and configured provider resolution. |
1 | 2 | import { describe, expect, it, vi } from "vitest"; |
2 | 3 | import { |
3 | 4 | applySessionRouteStateRepair, |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。