From f187e8bac438eda6fd832f04fd6ef49b594cd874 Mon Sep 17 00:00:00 2001 From: Vincent Koc Date: Wed, 18 Mar 2026 09:40:57 -0700 Subject: [PATCH] Plugin SDK: use public slack subpath --- src/channels/read-only-account-inspect.slack.runtime.ts | 6 +++--- src/cli/send-runtime/slack.ts | 4 ++-- src/gateway/server-http.ts | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/channels/read-only-account-inspect.slack.runtime.ts b/src/channels/read-only-account-inspect.slack.runtime.ts index f2a9260b63e..0d3e2c878c1 100644 --- a/src/channels/read-only-account-inspect.slack.runtime.ts +++ b/src/channels/read-only-account-inspect.slack.runtime.ts @@ -1,8 +1,8 @@ -import { inspectSlackAccount as inspectSlackAccountImpl } from "../plugin-sdk/slack.js"; +import { inspectSlackAccount as inspectSlackAccountImpl } from "openclaw/plugin-sdk/slack"; -export type { InspectedSlackAccount } from "../plugin-sdk/slack.js"; +export type { InspectedSlackAccount } from "openclaw/plugin-sdk/slack"; -type InspectSlackAccount = typeof import("../plugin-sdk/slack.js").inspectSlackAccount; +type InspectSlackAccount = typeof import("openclaw/plugin-sdk/slack").inspectSlackAccount; export function inspectSlackAccount( ...args: Parameters diff --git a/src/cli/send-runtime/slack.ts b/src/cli/send-runtime/slack.ts index 354186cd128..beec4f55906 100644 --- a/src/cli/send-runtime/slack.ts +++ b/src/cli/send-runtime/slack.ts @@ -1,7 +1,7 @@ -import { sendMessageSlack as sendMessageSlackImpl } from "../../plugin-sdk/slack.js"; +import { sendMessageSlack as sendMessageSlackImpl } from "openclaw/plugin-sdk/slack"; type RuntimeSend = { - sendMessage: typeof import("../../plugin-sdk/slack.js").sendMessageSlack; + sendMessage: typeof import("openclaw/plugin-sdk/slack").sendMessageSlack; }; export const runtimeSend = { diff --git a/src/gateway/server-http.ts b/src/gateway/server-http.ts index 0ad655f4990..9366a917059 100644 --- a/src/gateway/server-http.ts +++ b/src/gateway/server-http.ts @@ -7,13 +7,13 @@ import { } from "node:http"; import { createServer as createHttpsServer } from "node:https"; import type { TlsOptions } from "node:tls"; +import { handleSlackHttpRequest } from "openclaw/plugin-sdk/slack"; import type { WebSocketServer } from "ws"; import { resolveAgentAvatar } from "../agents/identity-avatar.js"; import { CANVAS_WS_PATH, handleA2uiHttpRequest } from "../canvas-host/a2ui.js"; import type { CanvasHostHandler } from "../canvas-host/server.js"; import { loadConfig } from "../config/config.js"; import type { createSubsystemLogger } from "../logging/subsystem.js"; -import { handleSlackHttpRequest } from "../plugin-sdk/slack.js"; import { safeEqualSecret } from "../security/secret-equal.js"; import { AUTH_RATE_LIMIT_SCOPE_HOOK_AUTH,