mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 10:20:42 +00:00
refactor: prune unused extension exports
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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[];
|
||||
|
||||
@@ -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 })),
|
||||
});
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user