docs: document remaining plugin sdk files · openclaw/openclaw@048f307
steipete
·
2026-06-05
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +// ACP runtime tests cover plugin-facing ACP runtime setup and gateway dispatch behavior. |
1 | 2 | import { beforeEach, describe, expect, it, vi } from "vitest"; |
2 | 3 | import { buildTestCtx } from "../auto-reply/reply/test-ctx.js"; |
3 | 4 | |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +// Agent directory compatibility helpers resolve legacy and current agent directory locations. |
1 | 2 | import { resolveDefaultAgentDir } from "../agents/agent-scope-config.js"; |
2 | 3 | import { resolveUserPath } from "../utils.js"; |
3 | 4 | |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +// Browser bridge tests cover browser control bridge requests and local server behavior. |
1 | 2 | import type { Server } from "node:http"; |
2 | 3 | import { beforeEach, describe, expect, it, vi } from "vitest"; |
3 | 4 | |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +// Browser CDP helpers connect plugin browser automation to Chrome DevTools Protocol sessions. |
1 | 2 | import { redactSensitiveText } from "../logging/redact.js"; |
2 | 3 | |
3 | 4 | /** Detect an operator-supplied port before WHATWG URL normalization drops default ports. */ |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +// Browser config tests cover plugin browser configuration defaults and overrides. |
1 | 2 | import { describe, expect, it } from "vitest"; |
2 | 3 | import type { BrowserControlAuth } from "./browser-config.js"; |
3 | 4 | import { |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +// Browser facade tests cover browser plugin facade loading and runtime API shape. |
1 | 2 | import { beforeEach, describe, expect, it, vi } from "vitest"; |
2 | 3 | |
3 | 4 | const loadBundledPluginPublicSurfaceModuleSync = vi.hoisted(() => vi.fn()); |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +// Browser host inspection tests cover browser host discovery and inspection helpers. |
1 | 2 | import { beforeEach, describe, it, vi } from "vitest"; |
2 | 3 | import { |
3 | 4 | expectBrowserHostInspectionDelegation, |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +// Browser subpath tests cover plugin SDK browser subpath exports and lazy boundaries. |
1 | 2 | import { describe, expect, it } from "vitest"; |
2 | 3 | import { parseBrowserHttpUrl, redactCdpUrl } from "./browser-cdp.js"; |
3 | 4 | import { resolveBrowserControlAuth } from "./browser-control-auth.js"; |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +// Channel config helpers normalize account and channel config values for plugin setup. |
1 | 2 | import { normalizeOptionalLowercaseString } from "../../packages/normalization-core/src/string-coerce.js"; |
2 | 3 | import { normalizeStringEntries } from "../../packages/normalization-core/src/string-normalization.js"; |
3 | 4 | import { |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +// Channel entry contract tests cover SDK channel entrypoint exports and package boundaries. |
1 | 2 | import { spawnSync, type SpawnSyncReturns } from "node:child_process"; |
2 | 3 | import fs from "node:fs"; |
3 | 4 | import os from "node:os"; |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。