diff --git a/src/mcp/channel-shared.ts b/src/mcp/channel-shared.ts index 73ea63fd282..5aea00122e9 100644 --- a/src/mcp/channel-shared.ts +++ b/src/mcp/channel-shared.ts @@ -17,7 +17,7 @@ export type ConversationDescriptor = { updatedAt?: number | null; }; -export type SessionRow = { +type SessionRow = { key: string; channel?: string; lastChannel?: string; @@ -145,7 +145,7 @@ export function summarizeResult( }; } -export function resolveConversationChannel(row: SessionRow): string | undefined { +function resolveConversationChannel(row: SessionRow): string | undefined { return normalizeMessageChannel( toText(row.deliveryContext?.channel) ?? toText(row.lastChannel) ?? diff --git a/src/mcp/openclaw-tools-serve.ts b/src/mcp/openclaw-tools-serve.ts index 6f2a2659f6b..a2a434b9f65 100644 --- a/src/mcp/openclaw-tools-serve.ts +++ b/src/mcp/openclaw-tools-serve.ts @@ -15,7 +15,7 @@ export function resolveOpenClawToolsForMcp(): AnyAgentTool[] { return [createCronTool()]; } -export function createOpenClawToolsMcpServer( +function createOpenClawToolsMcpServer( params: { tools?: AnyAgentTool[]; } = {}, @@ -24,7 +24,7 @@ export function createOpenClawToolsMcpServer( return createToolsMcpServer({ name: "openclaw-tools", tools }); } -export async function serveOpenClawToolsMcp(): Promise { +async function serveOpenClawToolsMcp(): Promise { const server = createOpenClawToolsMcpServer(); await connectToolsMcpServerToStdio(server); } diff --git a/src/media/media-reference.ts b/src/media/media-reference.ts index 20f8c2b495d..f83fccfd4d1 100644 --- a/src/media/media-reference.ts +++ b/src/media/media-reference.ts @@ -3,7 +3,7 @@ import { safeFileURLToPath } from "../infra/local-file-access.js"; import { resolveUserPath } from "../utils.js"; import { getMediaDir, resolveMediaBufferPath } from "./store.js"; -export type MediaReferenceErrorCode = "invalid-path" | "path-not-allowed"; +type MediaReferenceErrorCode = "invalid-path" | "path-not-allowed"; export class MediaReferenceError extends Error { code: MediaReferenceErrorCode; @@ -15,7 +15,7 @@ export class MediaReferenceError extends Error { } } -export type InboundMediaReference = { +type InboundMediaReference = { id: string; normalizedSource: string; physicalPath: string; @@ -30,7 +30,7 @@ export function normalizeMediaReferenceSource(source: string): string { return trimmed.replace(/^\s*MEDIA\s*:\s*/i, "").trim(); } -export type MediaReferenceSourceInfo = { +type MediaReferenceSourceInfo = { hasScheme: boolean; hasUnsupportedScheme: boolean; isDataUrl: boolean;