Skip to content

Commit 4cbd1b5

Browse files
committed
refactor: prune unused exported types
1 parent f98ba66 commit 4cbd1b5

8 files changed

Lines changed: 3 additions & 80 deletions

File tree

extensions/mattermost/src/mattermost/monitor-helpers.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,6 @@ import { rawDataToString } from "openclaw/plugin-sdk/webhook-ingress";
55

66
export { createDedupeCache, rawDataToString };
77

8-
export type ResponsePrefixContext = {
9-
model?: string;
10-
modelFull?: string;
11-
provider?: string;
12-
thinkingLevel?: string;
13-
identityName?: string;
14-
};
15-
168
export const formatInboundFromLabel = formatInboundFromLabelShared;
179

1810
export function resolveThreadSessionKeys(params: {

extensions/slack/src/shared.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,7 @@ import { collectRuntimeConfigAssignments, secretTargetRegistryEntries } from "./
2121
import { slackSecurityAdapter } from "./security.js";
2222
import { SLACK_CHANNEL } from "./setup-shared.js";
2323

24-
export {
25-
buildSlackSetupLines,
26-
isSlackSetupAccountConfigured,
27-
setSlackChannelAllowlist,
28-
SLACK_CHANNEL,
29-
} from "./setup-shared.js";
24+
export { setSlackChannelAllowlist, SLACK_CHANNEL } from "./setup-shared.js";
3025

3126
export function isSlackPluginAccountConfigured(account: ResolvedSlackAccount): boolean {
3227
const mode = account.config.mode ?? "socket";

extensions/speech-core/src/audio-transcode.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@ import { mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from "nod
33
import { join } from "node:path";
44
import { resolvePreferredOpenClawTmpDir } from "openclaw/plugin-sdk/sandbox";
55

6-
/** Container token (file-extension shape, no leading dot) the host knows how
7-
* to pre-transcode into. Update in lockstep with `pickAfconvertRecipe`. */
8-
export type HostTranscodableContainer = "caf";
9-
106
export type TranscodeOutcome =
117
| { ok: true; buffer: Buffer }
128
| {
@@ -93,9 +89,7 @@ function normalizeExt(ext: string): string | undefined {
9389
}
9490

9591
function pickAfconvertRecipe(source: string, target: string): string[] | undefined {
96-
// Currently only the MP3→CAF path used by BlueBubbles voice memos. Keep
97-
// this in lockstep with `HostTranscodableContainer` above so a typo at the
98-
// channel-capability declaration site is a compile-time error.
92+
// Currently only the MP3→CAF path used by BlueBubbles voice memos.
9993
if (target === "caf") {
10094
// Opus-in-CAF, mono, 24 kHz. Validated against macOS 15.x Messages.app's
10195
// native voice-memo CAF descriptor (1 ch, 24000 Hz, opus); other CAF

extensions/synology-chat/src/inbound-context.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,3 @@ export type SynologyInboundMessage = {
88
commandAuthorized: boolean;
99
chatUserId?: string;
1010
};
11-
12-
export type { ResolvedSynologyChatAccount } from "./types.js";

extensions/tlon/src/monitor/utils.ts

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,6 @@
11
import { formatErrorMessage as sharedFormatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
22
import { normalizeShip } from "../targets.js";
33

4-
// Cite types for message references
5-
export interface ChanCite {
6-
chan: { nest: string; where: string };
7-
}
8-
export interface GroupCite {
9-
group: string;
10-
}
11-
export interface DeskCite {
12-
desk: { flag: string; where: string };
13-
}
14-
export interface BaitCite {
15-
bait: { group: string; graph: string; where: string };
16-
}
17-
export type Cite = ChanCite | GroupCite | DeskCite | BaitCite;
18-
194
export interface ParsedCite {
205
type: "chan" | "group" | "desk" | "bait";
216
nest?: string;

extensions/twitch/src/client-manager-registry.ts

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -85,31 +85,3 @@ export async function removeClientManager(accountId: string): Promise<void> {
8585
registry.delete(accountId);
8686
entry.logger.info(`Unregistered client manager for account: ${accountId}`);
8787
}
88-
89-
/**
90-
* Disconnect and remove all client managers from the registry.
91-
*
92-
* @returns Promise that resolves when all cleanup is complete
93-
*/
94-
export async function removeAllClientManagers(): Promise<void> {
95-
const promises = [...registry.keys()].map((accountId) => removeClientManager(accountId));
96-
await Promise.all(promises);
97-
}
98-
99-
/**
100-
* Get the number of registered client managers.
101-
*
102-
* @returns The count of registered managers
103-
*/
104-
export function getRegisteredClientManagerCount(): number {
105-
return registry.size;
106-
}
107-
108-
/**
109-
* Clear all client managers without disconnecting.
110-
*
111-
* This is primarily for testing purposes.
112-
*/
113-
export function _clearAllClientManagersForTest(): void {
114-
registry.clear();
115-
}

extensions/whatsapp/src/quoted-message.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,6 @@
11
import type { MiscMessageGenerationOptions } from "@whiskeysockets/baileys";
22
import { jidToE164 } from "./text-runtime.js";
33

4-
export type QuotedMessageKey = {
5-
id: string;
6-
remoteJid: string;
7-
fromMe: boolean;
8-
participant?: string;
9-
messageText?: string;
10-
};
11-
124
// ── Inbound message metadata cache ──────────────────────────────────────
135
// Maps messageId → { participant, participantE164, body, fromMe } so the
146
// outbound adapter can

extensions/whatsapp/src/reaction-level.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
import type { OpenClawConfig } from "openclaw/plugin-sdk/config-types";
2-
import {
3-
resolveReactionLevel,
4-
type ReactionLevel,
5-
type ResolvedReactionLevel,
6-
} from "openclaw/plugin-sdk/text-runtime";
2+
import { resolveReactionLevel, type ResolvedReactionLevel } from "openclaw/plugin-sdk/text-runtime";
73
import { resolveMergedWhatsAppAccountConfig } from "./account-config.js";
84

9-
export type WhatsAppReactionLevel = ReactionLevel;
105
export type ResolvedWhatsAppReactionLevel = ResolvedReactionLevel;
116

127
/** Resolve the effective reaction level and its implications for WhatsApp. */

0 commit comments

Comments
 (0)