mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 05:10:44 +00:00
refactor: trim stale extension exports
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
import { buildPluginConfigSchema } from "openclaw/plugin-sdk/core";
|
||||
import { z } from "openclaw/plugin-sdk/zod";
|
||||
import type { OpenClawPluginConfigSchema } from "../runtime-api.js";
|
||||
|
||||
export const ACPX_PERMISSION_MODES = ["approve-all", "approve-reads", "deny-all"] as const;
|
||||
export type AcpxPermissionMode = (typeof ACPX_PERMISSION_MODES)[number];
|
||||
@@ -117,7 +115,3 @@ export const AcpxPluginConfigSchema = z.strictObject({
|
||||
)
|
||||
.optional(),
|
||||
});
|
||||
|
||||
export function createAcpxPluginConfigSchema(): OpenClawPluginConfigSchema {
|
||||
return buildPluginConfigSchema(AcpxPluginConfigSchema);
|
||||
}
|
||||
|
||||
@@ -2,7 +2,6 @@ export { resolveInteractionContextWithDmAuth } from "./agent-components-dm-auth.
|
||||
export {
|
||||
ensureAgentComponentInteractionAllowed,
|
||||
ensureComponentUserAllowed,
|
||||
ensureGuildComponentMemberAllowed,
|
||||
resolveAuthorizedComponentInteraction,
|
||||
resolveComponentCommandAuthorized,
|
||||
} from "./agent-components-guild-auth.js";
|
||||
|
||||
@@ -32,7 +32,7 @@ function resolveComponentRuntimeGroupPolicy(ctx: AgentComponentContext) {
|
||||
}).groupPolicy;
|
||||
}
|
||||
|
||||
export async function ensureGuildComponentMemberAllowed(params: {
|
||||
async function ensureGuildComponentMemberAllowed(params: {
|
||||
interaction: AgentComponentInteraction;
|
||||
guildInfo: ReturnType<typeof resolveDiscordGuildEntry>;
|
||||
channelId: string;
|
||||
|
||||
@@ -10,7 +10,6 @@ export {
|
||||
export {
|
||||
ensureAgentComponentInteractionAllowed,
|
||||
ensureComponentUserAllowed,
|
||||
ensureGuildComponentMemberAllowed,
|
||||
resolveAuthorizedComponentInteraction,
|
||||
resolveComponentCommandAuthorized,
|
||||
resolveInteractionContextWithDmAuth,
|
||||
@@ -31,7 +30,5 @@ export type {
|
||||
AgentComponentMessageInteraction,
|
||||
ComponentInteractionContext,
|
||||
DiscordChannelContext,
|
||||
DiscordUser,
|
||||
} from "./agent-components.types.js";
|
||||
export { resolveDiscordGuildEntry } from "./allow-list.js";
|
||||
export { resolvePinnedMainDmOwnerFromAllowlist } from "./agent-components-helpers.runtime.js";
|
||||
|
||||
Reference in New Issue
Block a user