mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-07 22:09:57 +00:00
fix: resolve CI failures from rebase — remove duplicate fetchMattermostUserTeams, export registerPluginHttpRoute from mattermost SDK, add type annotation
This commit is contained in:
committed by
Muhammed Mukhthar CM
parent
3bf8db7bf6
commit
56b7383bf3
@@ -148,12 +148,6 @@ export async function fetchMattermostChannelByName(
|
||||
);
|
||||
}
|
||||
|
||||
export async function fetchMattermostUserTeams(
|
||||
client: MattermostClient,
|
||||
): Promise<Array<{ id: string; name?: string }>> {
|
||||
return await client.request<Array<{ id: string; name?: string }>>("/users/me/teams");
|
||||
}
|
||||
|
||||
export async function sendMattermostTyping(
|
||||
client: MattermostClient,
|
||||
params: { channelId: string; parentId?: string },
|
||||
|
||||
@@ -618,7 +618,7 @@ export async function monitorMattermostProvider(opts: MonitorMattermostOpts = {}
|
||||
pluginId: "mattermost",
|
||||
source: "mattermost-interactions",
|
||||
accountId: account.accountId,
|
||||
log: (msg) => runtime.log?.(msg),
|
||||
log: (msg: string) => runtime.log?.(msg),
|
||||
});
|
||||
|
||||
const channelCache = new Map<string, { value: MattermostChannel | null; expiresAt: number }>();
|
||||
|
||||
@@ -64,6 +64,7 @@ export {
|
||||
} from "../config/zod-schema.core.js";
|
||||
export { createDedupeCache } from "../infra/dedupe.js";
|
||||
export { rawDataToString } from "../infra/ws.js";
|
||||
export { registerPluginHttpRoute } from "../plugins/http-registry.js";
|
||||
export { emptyPluginConfigSchema } from "../plugins/config-schema.js";
|
||||
export type { PluginRuntime } from "../plugins/runtime/types.js";
|
||||
export type { OpenClawPluginApi } from "../plugins/types.js";
|
||||
|
||||
Reference in New Issue
Block a user