refactor: trim stale extension exports · openclaw/openclaw@61db2e0
steipete
·
2026-05-01
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | | -import { buildPluginConfigSchema } from "openclaw/plugin-sdk/core"; |
2 | 1 | import { z } from "openclaw/plugin-sdk/zod"; |
3 | | -import type { OpenClawPluginConfigSchema } from "../runtime-api.js"; |
4 | 2 | |
5 | 3 | export const ACPX_PERMISSION_MODES = ["approve-all", "approve-reads", "deny-all"] as const; |
6 | 4 | export type AcpxPermissionMode = (typeof ACPX_PERMISSION_MODES)[number]; |
@@ -117,7 +115,3 @@ export const AcpxPluginConfigSchema = z.strictObject({
|
117 | 115 | ) |
118 | 116 | .optional(), |
119 | 117 | }); |
120 | | - |
121 | | -export function createAcpxPluginConfigSchema(): OpenClawPluginConfigSchema { |
122 | | -return buildPluginConfigSchema(AcpxPluginConfigSchema); |
123 | | -} |
| Original file line number | Diff line number | Diff line change |
|---|
@@ -2,7 +2,6 @@ export { resolveInteractionContextWithDmAuth } from "./agent-components-dm-auth.
|
2 | 2 | export { |
3 | 3 | ensureAgentComponentInteractionAllowed, |
4 | 4 | ensureComponentUserAllowed, |
5 | | -ensureGuildComponentMemberAllowed, |
6 | 5 | resolveAuthorizedComponentInteraction, |
7 | 6 | resolveComponentCommandAuthorized, |
8 | 7 | } from "./agent-components-guild-auth.js"; |
| Original file line number | Diff line number | Diff line change |
|---|
@@ -32,7 +32,7 @@ function resolveComponentRuntimeGroupPolicy(ctx: AgentComponentContext) {
|
32 | 32 | }).groupPolicy; |
33 | 33 | } |
34 | 34 | |
35 | | -export async function ensureGuildComponentMemberAllowed(params: { |
| 35 | +async function ensureGuildComponentMemberAllowed(params: { |
36 | 36 | interaction: AgentComponentInteraction; |
37 | 37 | guildInfo: ReturnType<typeof resolveDiscordGuildEntry>; |
38 | 38 | channelId: string; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -10,7 +10,6 @@ export {
|
10 | 10 | export { |
11 | 11 | ensureAgentComponentInteractionAllowed, |
12 | 12 | ensureComponentUserAllowed, |
13 | | -ensureGuildComponentMemberAllowed, |
14 | 13 | resolveAuthorizedComponentInteraction, |
15 | 14 | resolveComponentCommandAuthorized, |
16 | 15 | resolveInteractionContextWithDmAuth, |
@@ -31,7 +30,5 @@ export type {
|
31 | 30 | AgentComponentMessageInteraction, |
32 | 31 | ComponentInteractionContext, |
33 | 32 | DiscordChannelContext, |
34 | | -DiscordUser, |
35 | 33 | } from "./agent-components.types.js"; |
36 | | -export { resolveDiscordGuildEntry } from "./allow-list.js"; |
37 | 34 | export { resolvePinnedMainDmOwnerFromAllowlist } from "./agent-components-helpers.runtime.js"; |
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。