From 4eec2843cd0ce56ea435e1ee73da88a4dfaddcb4 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Fri, 1 May 2026 10:28:21 +0100 Subject: [PATCH] refactor: trim unused acpx and line exports --- extensions/acpx/src/config.ts | 5 ----- extensions/line/src/types.ts | 9 --------- 2 files changed, 14 deletions(-) diff --git a/extensions/acpx/src/config.ts b/extensions/acpx/src/config.ts index 76e26cef430..ec548468590 100644 --- a/extensions/acpx/src/config.ts +++ b/extensions/acpx/src/config.ts @@ -14,15 +14,12 @@ import type { ResolvedAcpxPluginConfig, } from "./config-schema.js"; export { - ACPX_NON_INTERACTIVE_POLICIES, - ACPX_PERMISSION_MODES, type AcpxMcpServer, type AcpxNonInteractivePermissionPolicy, type AcpxPermissionMode, type AcpxPluginConfig, type McpServerConfig, type ResolvedAcpxPluginConfig, - createAcpxPluginConfigSchema, } from "./config-schema.js"; export const ACPX_PLUGIN_TOOLS_MCP_SERVER_NAME = "openclaw-plugin-tools"; @@ -104,8 +101,6 @@ export function resolveAcpxPluginRoot(moduleUrl: string = import.meta.url): stri ); } -export const ACPX_PLUGIN_ROOT = resolveAcpxPluginRoot(); - const DEFAULT_PERMISSION_MODE: AcpxPermissionMode = "approve-reads"; const DEFAULT_NON_INTERACTIVE_POLICY: AcpxNonInteractivePermissionPolicy = "fail"; const DEFAULT_QUEUE_OWNER_TTL_SECONDS = 0.1; diff --git a/extensions/line/src/types.ts b/extensions/line/src/types.ts index 1f73e9b1c2b..72dacf57501 100644 --- a/extensions/line/src/types.ts +++ b/extensions/line/src/types.ts @@ -1,4 +1,3 @@ -import type { webhook } from "@line/bot-sdk"; import type { BaseProbeResult } from "openclaw/plugin-sdk/channel-contract"; export type LineTokenSource = "config" | "env" | "file" | "none"; @@ -54,14 +53,6 @@ export interface ResolvedLineAccount { config: LineConfig & LineAccountConfig; } -export interface LineWebhookContext { - event: webhook.Event; - replyToken?: string; - userId?: string; - groupId?: string; - roomId?: string; -} - export interface LineSendResult { messageId: string; chatId: string;