Skip to content

Commit 231e43f

Browse files
committed
fix(mattermost): satisfy type, deadcode, and SDK manifest gates
1 parent abbcd6d commit 231e43f

4 files changed

Lines changed: 4 additions & 5 deletions

File tree

docs/.generated/plugin-sdk-api-baseline.sha256

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ e1b72e4c2d926d39d216df80775e0a5f44705d04f5040c01fe1043ad7a2c2fe4 module/heartbe
136136
21a233e9008f0701df1efbefe521a9ced45c61da6e297e788bdd86895d793128 module/image-generation-runtime
137137
f6e3c44e7d1090a97aca554a3c247219b8de78b3cb4399cac5efde8a0a6c1156 module/inbound-envelope
138138
67142e8e63ea860a03b0cbb5660f63405a83ec575f2ef7a96f9b87f1be362808 module/inbound-reply-dispatch
139-
30b0b311f2488a12bdfb3eceb70a14327c9dfa2833519f24666141a734f9e7d1 module/infra-runtime
139+
c1826ee55763f9c1f86e873cda221bdf32122fce5f5a5a46c384521a8ec8bf6c module/infra-runtime
140140
2e717cccb3db127aed0287d4ea14c41a8e64e46d60c728638153e31e2fb0d296 module/ingress-effect-once
141141
3d0431e2575abf67c7fd9e9763b08b7a46018e01c290ffea8d4af9874d3c3fc4 module/inline-image-data-url-runtime
142142
74fee62a94618d830a5282a7816a73b85570b2e4ce17b90078078734510511d7 module/interactive-runtime

extensions/mattermost/src/mattermost/monitor-resources.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ describe("mattermost monitor resources", () => {
178178
logger: {},
179179
mediaMaxBytes: 1024,
180180
saveRemoteMedia,
181-
mediaKindFromMime: (contentType) =>
181+
mediaKindFromMime: (contentType?: string) =>
182182
contentType === "audio/mpeg" ? "audio" : contentType === "image/png" ? "image" : null,
183183
} as unknown as Parameters<typeof createMattermostMonitorResources>[0]);
184184

@@ -204,7 +204,7 @@ describe("mattermost monitor resources", () => {
204204
logger: {},
205205
mediaMaxBytes: 1024,
206206
saveRemoteMedia,
207-
mediaKindFromMime: (contentType) =>
207+
mediaKindFromMime: (contentType?: string) =>
208208
contentType === "video/mp4"
209209
? "video"
210210
: contentType === "application/pdf"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import { buildButtonProps, type MattermostInteractionResponse } from "./interact
2727

2828
type MattermostMediaKind = "image" | "audio" | "video" | "document" | "unknown";
2929

30-
export type MattermostMediaInfo = {
30+
type MattermostMediaInfo = {
3131
path?: string;
3232
contentType?: string;
3333
kind: MattermostMediaKind;

extensions/mattermost/src/mattermost/runtime-api.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ export type {
1010
ReplyPayload,
1111
} from "openclaw/plugin-sdk/core";
1212
export type { RuntimeEnv } from "openclaw/plugin-sdk/runtime";
13-
export { buildAgentMediaPayload } from "openclaw/plugin-sdk/agent-media-payload";
1413
export { resolveAllowlistMatchSimple } from "openclaw/plugin-sdk/allow-from";
1514
export { logInboundDrop } from "openclaw/plugin-sdk/channel-inbound";
1615
export { createChannelPairingController } from "openclaw/plugin-sdk/channel-pairing";

0 commit comments

Comments
 (0)