diff --git a/extensions/line/src/card-command.ts b/extensions/line/src/card-command.ts index f63e42576c9..ef6aefb1b4c 100644 --- a/extensions/line/src/card-command.ts +++ b/extensions/line/src/card-command.ts @@ -1,4 +1,4 @@ -import type { LineChannelData, OpenClawPluginApi, ReplyPayload } from "../api.js"; +import type { LineChannelData, OpenClawPluginApi, ReplyPayload } from "../runtime-api.js"; import { createActionCard, createImageCard, @@ -7,7 +7,7 @@ import { createReceiptCard, type CardAction, type ListItem, -} from "../api.js"; +} from "../runtime-api.js"; const CARD_USAGE = `Usage: /card "title" "body" [options] diff --git a/extensions/line/src/channel.setup.ts b/extensions/line/src/channel.setup.ts index bae717a205d..616ffb2f35b 100644 --- a/extensions/line/src/channel.setup.ts +++ b/extensions/line/src/channel.setup.ts @@ -3,7 +3,7 @@ import { LineConfigSchema, type ChannelPlugin, type ResolvedLineAccount, -} from "../api.js"; +} from "../runtime-api.js"; import { lineConfigAdapter } from "./config-adapter.js"; import { lineSetupAdapter } from "./setup-core.js"; import { lineSetupWizard } from "./setup-surface.js"; diff --git a/extensions/line/src/channel.ts b/extensions/line/src/channel.ts index d983d2a0172..161f4aa1bf3 100644 --- a/extensions/line/src/channel.ts +++ b/extensions/line/src/channel.ts @@ -22,7 +22,7 @@ import { type LineChannelData, type OpenClawConfig, type ResolvedLineAccount, -} from "../api.js"; +} from "../runtime-api.js"; import { lineConfigAdapter } from "./config-adapter.js"; import { resolveLineGroupRequireMention } from "./group-policy.js"; import { getLineRuntime } from "./runtime.js"; diff --git a/extensions/line/src/config-schema.ts b/extensions/line/src/config-schema.ts index 7248ef40aa4..3914b34b031 100644 --- a/extensions/line/src/config-schema.ts +++ b/extensions/line/src/config-schema.ts @@ -1,3 +1,3 @@ -import { buildChannelConfigSchema, LineConfigSchema } from "../api.js"; +import { buildChannelConfigSchema, LineConfigSchema } from "../runtime-api.js"; export const LineChannelConfigSchema = buildChannelConfigSchema(LineConfigSchema); diff --git a/extensions/line/src/runtime.ts b/extensions/line/src/runtime.ts index 3541eed4ed7..53425332b9b 100644 --- a/extensions/line/src/runtime.ts +++ b/extensions/line/src/runtime.ts @@ -1,5 +1,5 @@ import { createPluginRuntimeStore } from "openclaw/plugin-sdk/runtime-store"; -import type { PluginRuntime } from "../api.js"; +import type { PluginRuntime } from "../runtime-api.js"; const { setRuntime: setLineRuntime, getRuntime: getLineRuntime } = createPluginRuntimeStore("LINE runtime not initialized - plugin not registered"); diff --git a/extensions/msteams/src/graph-upload.test.ts b/extensions/msteams/src/graph-upload.test.ts index 8ceb0739ac2..19cc25c39e7 100644 --- a/extensions/msteams/src/graph-upload.test.ts +++ b/extensions/msteams/src/graph-upload.test.ts @@ -120,7 +120,7 @@ describe("resolveGraphChatId", () => { it("resolves personal DM chat ID via Graph API using user AAD object ID", async () => { const fetchFn = vi.fn( - async () => + async (_url: string | Request | URL, _init?: RequestInit) => new Response(JSON.stringify({ value: [{ id: "19:dm-chat-id@unq.gbl.spaces" }] }), { status: 200, headers: { "content-type": "application/json" }, @@ -141,8 +141,7 @@ describe("resolveGraphChatId", () => { }), ); // Should filter by user AAD object ID - const firstCall = fetchFn.mock.calls[0] as unknown[] | undefined; - const callUrl = firstCall?.[0]; + const [callUrl] = fetchFn.mock.calls[0] ?? []; expect(callUrl).toContain("user-aad-object-id-123"); expect(result).toBe("19:dm-chat-id@unq.gbl.spaces"); });