refactor: prune unused extension exports

This commit is contained in:
Peter Steinberger
2026-05-01 10:24:35 +01:00
parent 8abf2977f4
commit 5c0388c253
7 changed files with 2 additions and 53 deletions

View File

@@ -4,10 +4,6 @@ import {
type JsonObject,
} from "./app-server/protocol.js";
export type CodexConversationTurnCollector = ReturnType<
typeof createCodexConversationTurnCollector
>;
export function createCodexConversationTurnCollector(threadId: string) {
let turnId: string | undefined;
let completed = false;

View File

@@ -109,8 +109,6 @@ export type DiscordModalFieldSpec = {
style?: "short" | "paragraph";
};
export type DiscordComponentModalFieldSpec = DiscordModalFieldSpec;
export type DiscordModalSpec = {
title: string;
callbackData?: string;
@@ -165,8 +163,6 @@ export type DiscordModalFieldDefinition = {
style?: "short" | "paragraph";
};
export type DiscordComponentModalFieldDefinition = DiscordModalFieldDefinition;
export type DiscordModalEntry = {
id: string;
title: string;
@@ -182,8 +178,6 @@ export type DiscordModalEntry = {
allowedUsers?: string[];
};
export type DiscordComponentModalEntry = DiscordModalEntry;
export type DiscordComponentBuildResult = {
components: TopLevelComponents[];
entries: DiscordComponentEntry[];

View File

@@ -11,7 +11,6 @@ import {
import {
createAccountScopedAllowFromSection,
createAccountScopedGroupAccessSection,
createAllowlistSetupWizardProxy,
createLegacyCompatChannelDmPolicy,
parseMentionOrPrefixedId,
patchChannelConfigForAccount,
@@ -179,11 +178,3 @@ export function createDiscordSetupWizardBase(handlers: {
disable: (cfg: OpenClawConfig) => setSetupChannelEnabled(cfg, channel, false),
} satisfies ChannelSetupWizard;
}
export function createDiscordSetupWizardProxy(loadWizard: () => Promise<ChannelSetupWizard>) {
return createAllowlistSetupWizardProxy({
loadWizard,
createBase: createDiscordSetupWizardBase,
fallbackResolvedGroupAllowlist: (entries) =>
entries.map((input) => ({ input, resolved: false })),
});
}

View File

@@ -1,18 +1,11 @@
import type { BaseProbeResult } from "openclaw/plugin-sdk/core";
import type {
FeishuConfigSchema,
FeishuGroupSchema,
FeishuAccountConfigSchema,
z,
} from "./config-schema.js";
import type { FeishuConfigSchema, FeishuAccountConfigSchema, z } from "./config-schema.js";
import type { MentionTarget } from "./mention-target.types.js";
export type FeishuConfig = z.infer<typeof FeishuConfigSchema>;
export type FeishuGroupConfig = z.infer<typeof FeishuGroupSchema>;
export type FeishuAccountConfig = z.infer<typeof FeishuAccountConfigSchema>;
export type FeishuDomain = "feishu" | "lark" | (string & {});
export type FeishuConnectionMode = "websocket" | "webhook";
export type FeishuDefaultAccountSelectionSource =
| "explicit-default"

View File

@@ -1,4 +1,4 @@
import type { messagingApi, webhook } from "@line/bot-sdk";
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 +54,6 @@ export interface ResolvedLineAccount {
config: LineConfig & LineAccountConfig;
}
export type LineMessageType =
| messagingApi.TextMessage
| messagingApi.ImageMessage
| messagingApi.VideoMessage
| messagingApi.AudioMessage
| messagingApi.StickerMessage
| messagingApi.LocationMessage;
export interface LineWebhookContext {
event: webhook.Event;
replyToken?: string;

View File

@@ -1808,14 +1808,6 @@ async function runPhaseIfTriggered(
return { handled: true, reason: `memory-core: ${params.phase} dreaming processed` };
}
/**
* @deprecated Unified dreaming registration lives in registerShortTermPromotionDreaming().
*/
export function registerMemoryDreamingPhases(_api: OpenClawPluginApi): void {
// LEGACY(memory-v1): kept as a no-op compatibility shim while the unified
// dreaming controller owns startup reconciliation and heartbeat triggers.
}
export const __testing = {
runPhaseIfTriggered,
previewRemDreaming,

View File

@@ -193,12 +193,3 @@ export type NextcloudTalkWebhookServerOptions = {
onError?: (error: Error) => void;
abortSignal?: AbortSignal;
};
/** Options for sending a message. */
export type NextcloudTalkSendOptions = {
baseUrl: string;
secret: string;
roomToken: string;
message: string;
replyTo?: string;
};