Skip to content

Commit 5c0388c

Browse files
committed
refactor: prune unused extension exports
1 parent 8abf297 commit 5c0388c

7 files changed

Lines changed: 2 additions & 53 deletions

File tree

extensions/codex/src/conversation-turn-collector.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@ import {
44
type JsonObject,
55
} from "./app-server/protocol.js";
66

7-
export type CodexConversationTurnCollector = ReturnType<
8-
typeof createCodexConversationTurnCollector
9-
>;
10-
117
export function createCodexConversationTurnCollector(threadId: string) {
128
let turnId: string | undefined;
139
let completed = false;

extensions/discord/src/components.types.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,6 @@ export type DiscordModalFieldSpec = {
109109
style?: "short" | "paragraph";
110110
};
111111

112-
export type DiscordComponentModalFieldSpec = DiscordModalFieldSpec;
113-
114112
export type DiscordModalSpec = {
115113
title: string;
116114
callbackData?: string;
@@ -165,8 +163,6 @@ export type DiscordModalFieldDefinition = {
165163
style?: "short" | "paragraph";
166164
};
167165

168-
export type DiscordComponentModalFieldDefinition = DiscordModalFieldDefinition;
169-
170166
export type DiscordModalEntry = {
171167
id: string;
172168
title: string;
@@ -182,8 +178,6 @@ export type DiscordModalEntry = {
182178
allowedUsers?: string[];
183179
};
184180

185-
export type DiscordComponentModalEntry = DiscordModalEntry;
186-
187181
export type DiscordComponentBuildResult = {
188182
components: TopLevelComponents[];
189183
entries: DiscordComponentEntry[];

extensions/discord/src/setup-core.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import {
1111
import {
1212
createAccountScopedAllowFromSection,
1313
createAccountScopedGroupAccessSection,
14-
createAllowlistSetupWizardProxy,
1514
createLegacyCompatChannelDmPolicy,
1615
parseMentionOrPrefixedId,
1716
patchChannelConfigForAccount,
@@ -179,11 +178,3 @@ export function createDiscordSetupWizardBase(handlers: {
179178
disable: (cfg: OpenClawConfig) => setSetupChannelEnabled(cfg, channel, false),
180179
} satisfies ChannelSetupWizard;
181180
}
182-
export function createDiscordSetupWizardProxy(loadWizard: () => Promise<ChannelSetupWizard>) {
183-
return createAllowlistSetupWizardProxy({
184-
loadWizard,
185-
createBase: createDiscordSetupWizardBase,
186-
fallbackResolvedGroupAllowlist: (entries) =>
187-
entries.map((input) => ({ input, resolved: false })),
188-
});
189-
}

extensions/feishu/src/types.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,11 @@
11
import type { BaseProbeResult } from "openclaw/plugin-sdk/core";
2-
import type {
3-
FeishuConfigSchema,
4-
FeishuGroupSchema,
5-
FeishuAccountConfigSchema,
6-
z,
7-
} from "./config-schema.js";
2+
import type { FeishuConfigSchema, FeishuAccountConfigSchema, z } from "./config-schema.js";
83
import type { MentionTarget } from "./mention-target.types.js";
94

105
export type FeishuConfig = z.infer<typeof FeishuConfigSchema>;
11-
export type FeishuGroupConfig = z.infer<typeof FeishuGroupSchema>;
126
export type FeishuAccountConfig = z.infer<typeof FeishuAccountConfigSchema>;
137

148
export type FeishuDomain = "feishu" | "lark" | (string & {});
15-
export type FeishuConnectionMode = "websocket" | "webhook";
169

1710
export type FeishuDefaultAccountSelectionSource =
1811
| "explicit-default"

extensions/line/src/types.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { messagingApi, webhook } from "@line/bot-sdk";
1+
import type { webhook } from "@line/bot-sdk";
22
import type { BaseProbeResult } from "openclaw/plugin-sdk/channel-contract";
33

44
export type LineTokenSource = "config" | "env" | "file" | "none";
@@ -54,14 +54,6 @@ export interface ResolvedLineAccount {
5454
config: LineConfig & LineAccountConfig;
5555
}
5656

57-
export type LineMessageType =
58-
| messagingApi.TextMessage
59-
| messagingApi.ImageMessage
60-
| messagingApi.VideoMessage
61-
| messagingApi.AudioMessage
62-
| messagingApi.StickerMessage
63-
| messagingApi.LocationMessage;
64-
6557
export interface LineWebhookContext {
6658
event: webhook.Event;
6759
replyToken?: string;

extensions/memory-core/src/dreaming-phases.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1808,14 +1808,6 @@ async function runPhaseIfTriggered(
18081808
return { handled: true, reason: `memory-core: ${params.phase} dreaming processed` };
18091809
}
18101810

1811-
/**
1812-
* @deprecated Unified dreaming registration lives in registerShortTermPromotionDreaming().
1813-
*/
1814-
export function registerMemoryDreamingPhases(_api: OpenClawPluginApi): void {
1815-
// LEGACY(memory-v1): kept as a no-op compatibility shim while the unified
1816-
// dreaming controller owns startup reconciliation and heartbeat triggers.
1817-
}
1818-
18191811
export const __testing = {
18201812
runPhaseIfTriggered,
18211813
previewRemDreaming,

extensions/nextcloud-talk/src/types.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -193,12 +193,3 @@ export type NextcloudTalkWebhookServerOptions = {
193193
onError?: (error: Error) => void;
194194
abortSignal?: AbortSignal;
195195
};
196-
197-
/** Options for sending a message. */
198-
export type NextcloudTalkSendOptions = {
199-
baseUrl: string;
200-
secret: string;
201-
roomToken: string;
202-
message: string;
203-
replyTo?: string;
204-
};

0 commit comments

Comments
 (0)