diff --git a/src/media-understanding/audio.test-helpers.ts b/src/media-understanding/audio.test-helpers.ts index b6f7a09923d..aef58dafc5b 100644 --- a/src/media-understanding/audio.test-helpers.ts +++ b/src/media-understanding/audio.test-helpers.ts @@ -3,7 +3,7 @@ import { afterEach, beforeEach, vi } from "vitest"; import * as ssrf from "../infra/net/ssrf.js"; import { withFetchPreconnect } from "../test-utils/fetch-mock.js"; -export function resolveRequestUrl(input: RequestInfo | URL): string { +function resolveRequestUrl(input: RequestInfo | URL): string { if (typeof input === "string") { return input; } diff --git a/src/plugin-sdk/qa-runtime.test-helpers.ts b/src/plugin-sdk/qa-runtime.test-helpers.ts index 4b01b9d6d0a..b48c15f26d3 100644 --- a/src/plugin-sdk/qa-runtime.test-helpers.ts +++ b/src/plugin-sdk/qa-runtime.test-helpers.ts @@ -33,7 +33,7 @@ export function makePrivateQaSourceRoot(tempDirs: string[], prefix: string): str return sourceRoot; } -export function makeQaRuntimeSurface() { +function makeQaRuntimeSurface() { return { defaultQaRuntimeModelForMode: vi.fn(), startQaLiveLaneGateway: vi.fn(), diff --git a/src/plugins/bundle-mcp.test-support.ts b/src/plugins/bundle-mcp.test-support.ts index 24cc8d0e9aa..ac6d3f38e64 100644 --- a/src/plugins/bundle-mcp.test-support.ts +++ b/src/plugins/bundle-mcp.test-support.ts @@ -20,7 +20,7 @@ export function createBundleMcpTempHarness() { }; } -export function resolveBundlePluginRoot(homeDir: string, pluginId: string) { +function resolveBundlePluginRoot(homeDir: string, pluginId: string) { return path.join(homeDir, ".openclaw", "extensions", pluginId); } diff --git a/src/plugins/hooks.test-helpers.ts b/src/plugins/hooks.test-helpers.ts index 0cf63724e49..59e98655387 100644 --- a/src/plugins/hooks.test-helpers.ts +++ b/src/plugins/hooks.test-helpers.ts @@ -90,7 +90,7 @@ export function addTestHook(params: { } as PluginHookRegistration); } -export function addTestHooks( +function addTestHooks( registry: PluginRegistry, hooks: ReadonlyArray<{ pluginId: string; diff --git a/src/plugins/provider-runtime.test-support.ts b/src/plugins/provider-runtime.test-support.ts index 02451b67da8..0cfead59d40 100644 --- a/src/plugins/provider-runtime.test-support.ts +++ b/src/plugins/provider-runtime.test-support.ts @@ -1,6 +1,6 @@ import { expect } from "vitest"; -export const openaiCodexCatalogEntries = [ +const openaiCodexCatalogEntries = [ { provider: "openai", id: "gpt-5.2", name: "GPT-5.2" }, { provider: "openai", id: "gpt-5.2-pro", name: "GPT-5.2 Pro" }, { provider: "openai", id: "gpt-5-mini", name: "GPT-5 mini" }, diff --git a/src/plugins/status.test-helpers.ts b/src/plugins/status.test-helpers.ts index 8029caab4d1..420bbcea184 100644 --- a/src/plugins/status.test-helpers.ts +++ b/src/plugins/status.test-helpers.ts @@ -1,6 +1,6 @@ import type { PluginLoadResult } from "./loader.js"; import type { PluginRecord } from "./registry.js"; -import type { PluginCompatibilityNotice, PluginStatusReport } from "./status.js"; +import type { PluginCompatibilityNotice } from "./status.js"; import type { PluginHookName } from "./types.js"; export const LEGACY_BEFORE_AGENT_START_MESSAGE = @@ -174,13 +174,3 @@ export function createPluginLoadResult( realtimeVoiceProviders: realtimeVoiceProviders ?? [], }; } - -export function createPluginStatusReport( - overrides: Partial & Pick, -): PluginStatusReport { - const { workspaceDir, ...loadResultOverrides } = overrides; - return { - workspaceDir, - ...createPluginLoadResult(loadResultOverrides), - }; -} diff --git a/src/plugins/test-helpers/cold-plugin-fixtures.ts b/src/plugins/test-helpers/cold-plugin-fixtures.ts index 7c9dc79a967..23c3af2ef4d 100644 --- a/src/plugins/test-helpers/cold-plugin-fixtures.ts +++ b/src/plugins/test-helpers/cold-plugin-fixtures.ts @@ -2,7 +2,7 @@ import fs from "node:fs"; import path from "node:path"; import type { OpenClawConfig } from "../../config/types.openclaw.js"; -export type ColdPluginFixture = { +type ColdPluginFixture = { authChoiceId: string; channelId: string; pluginId: string; diff --git a/src/tasks/import-boundary.test-helpers.ts b/src/tasks/import-boundary.test-helpers.ts index 96981bf27ef..e2ccbef967e 100644 --- a/src/tasks/import-boundary.test-helpers.ts +++ b/src/tasks/import-boundary.test-helpers.ts @@ -3,7 +3,7 @@ import path from "node:path"; const TASK_ROOT = path.resolve(import.meta.dirname); -export const TASK_BOUNDARY_SRC_ROOT = path.resolve(TASK_ROOT, ".."); +const TASK_BOUNDARY_SRC_ROOT = path.resolve(TASK_ROOT, ".."); export function toTaskBoundaryRelativePath(file: string, root = TASK_BOUNDARY_SRC_ROOT): string { return path.relative(root, file).replaceAll(path.sep, "/"); diff --git a/src/test-helpers/network-interfaces.ts b/src/test-helpers/network-interfaces.ts index aeab2bf4386..2ca9f8702b6 100644 --- a/src/test-helpers/network-interfaces.ts +++ b/src/test-helpers/network-interfaces.ts @@ -3,7 +3,7 @@ import type { NetworkInterfacesSnapshot } from "../infra/network-interfaces.js"; type NetworkInterfaceEntry = NonNullable[string]>[number]; -export type NetworkInterfaceEntryInput = { +type NetworkInterfaceEntryInput = { address: string; family: "IPv4" | "IPv6"; internal?: boolean;