mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 17:50:45 +00:00
refactor: trim unused acpx and line exports
This commit is contained in:
@@ -14,15 +14,12 @@ import type {
|
|||||||
ResolvedAcpxPluginConfig,
|
ResolvedAcpxPluginConfig,
|
||||||
} from "./config-schema.js";
|
} from "./config-schema.js";
|
||||||
export {
|
export {
|
||||||
ACPX_NON_INTERACTIVE_POLICIES,
|
|
||||||
ACPX_PERMISSION_MODES,
|
|
||||||
type AcpxMcpServer,
|
type AcpxMcpServer,
|
||||||
type AcpxNonInteractivePermissionPolicy,
|
type AcpxNonInteractivePermissionPolicy,
|
||||||
type AcpxPermissionMode,
|
type AcpxPermissionMode,
|
||||||
type AcpxPluginConfig,
|
type AcpxPluginConfig,
|
||||||
type McpServerConfig,
|
type McpServerConfig,
|
||||||
type ResolvedAcpxPluginConfig,
|
type ResolvedAcpxPluginConfig,
|
||||||
createAcpxPluginConfigSchema,
|
|
||||||
} from "./config-schema.js";
|
} from "./config-schema.js";
|
||||||
|
|
||||||
export const ACPX_PLUGIN_TOOLS_MCP_SERVER_NAME = "openclaw-plugin-tools";
|
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_PERMISSION_MODE: AcpxPermissionMode = "approve-reads";
|
||||||
const DEFAULT_NON_INTERACTIVE_POLICY: AcpxNonInteractivePermissionPolicy = "fail";
|
const DEFAULT_NON_INTERACTIVE_POLICY: AcpxNonInteractivePermissionPolicy = "fail";
|
||||||
const DEFAULT_QUEUE_OWNER_TTL_SECONDS = 0.1;
|
const DEFAULT_QUEUE_OWNER_TTL_SECONDS = 0.1;
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
import type { webhook } from "@line/bot-sdk";
|
|
||||||
import type { BaseProbeResult } from "openclaw/plugin-sdk/channel-contract";
|
import type { BaseProbeResult } from "openclaw/plugin-sdk/channel-contract";
|
||||||
|
|
||||||
export type LineTokenSource = "config" | "env" | "file" | "none";
|
export type LineTokenSource = "config" | "env" | "file" | "none";
|
||||||
@@ -54,14 +53,6 @@ export interface ResolvedLineAccount {
|
|||||||
config: LineConfig & LineAccountConfig;
|
config: LineConfig & LineAccountConfig;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface LineWebhookContext {
|
|
||||||
event: webhook.Event;
|
|
||||||
replyToken?: string;
|
|
||||||
userId?: string;
|
|
||||||
groupId?: string;
|
|
||||||
roomId?: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface LineSendResult {
|
export interface LineSendResult {
|
||||||
messageId: string;
|
messageId: string;
|
||||||
chatId: string;
|
chatId: string;
|
||||||
|
|||||||
Reference in New Issue
Block a user