Skip to content

Commit c4bae0f

Browse files
committed
refactor(msteams): narrow channel runtime imports
1 parent a23ab9b commit c4bae0f

2 files changed

Lines changed: 14 additions & 3 deletions

File tree

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
export type { ChannelMessageActionName } from "openclaw/plugin-sdk/channel-contract";
2+
export { PAIRING_APPROVED_MESSAGE } from "openclaw/plugin-sdk/channel-status";
3+
export type { ChannelPlugin, OpenClawConfig } from "openclaw/plugin-sdk/core";
4+
export { DEFAULT_ACCOUNT_ID } from "openclaw/plugin-sdk/core";
5+
export {
6+
buildProbeChannelStatusSummary,
7+
createDefaultChannelRuntimeState,
8+
} from "openclaw/plugin-sdk/status-helpers";
9+
export { chunkTextForOutbound } from "openclaw/plugin-sdk/text-chunking";

extensions/msteams/src/channel.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,17 @@ import {
2020
import { createLazyRuntimeNamedExport } from "openclaw/plugin-sdk/lazy-runtime";
2121
import { createRuntimeOutboundDelegates } from "openclaw/plugin-sdk/outbound-runtime";
2222
import { createComputedAccountStatusAdapter } from "openclaw/plugin-sdk/status-helpers";
23-
import type { ChannelMessageActionName, ChannelPlugin, OpenClawConfig } from "../runtime-api.js";
23+
import { msTeamsApprovalAuth } from "./approval-auth.js";
2424
import {
2525
buildProbeChannelStatusSummary,
2626
chunkTextForOutbound,
2727
createDefaultChannelRuntimeState,
2828
DEFAULT_ACCOUNT_ID,
2929
PAIRING_APPROVED_MESSAGE,
30-
} from "../runtime-api.js";
31-
import { msTeamsApprovalAuth } from "./approval-auth.js";
30+
type ChannelMessageActionName,
31+
type ChannelPlugin,
32+
type OpenClawConfig,
33+
} from "./channel-api.js";
3234
import { MSTeamsChannelConfigSchema } from "./config-schema.js";
3335
import { collectMSTeamsMutableAllowlistWarnings } from "./doctor.js";
3436
import { formatUnknownError } from "./errors.js";

0 commit comments

Comments
 (0)