fix(ci): satisfy voice-call typing and extension boundaries

This commit is contained in:
Vincent Koc
2026-03-22 20:26:15 -07:00
parent 04cd389ef8
commit 06ddfb7e5f
3 changed files with 5 additions and 9 deletions

View File

@@ -22,7 +22,7 @@ export {
setSetupChannelEnabled,
splitSetupEntries,
} from "openclaw/plugin-sdk/setup";
export * from "../../src/plugin-sdk/line-runtime.js";
export * from "openclaw/plugin-sdk/line-runtime";
export * from "./src/accounts.js";
export * from "./src/bot-access.js";

View File

@@ -1,5 +1,4 @@
import { beforeEach, describe, expect, it, vi } from "vitest";
import type { CallManagerContext } from "./context.js";
const {
addTranscriptEntryMock,
@@ -59,15 +58,12 @@ describe("voice-call outbound helpers", () => {
});
it("guards initiateCall when provider, webhook, capacity, or fromNumber are missing", async () => {
const base: Pick<
CallManagerContext,
"activeCalls" | "providerCallIdMap" | "config" | "storePath" | "webhookUrl"
> = {
const base = {
activeCalls: new Map(),
providerCallIdMap: new Map(),
config: {
maxConcurrentCalls: 1,
outbound: { defaultMode: "conversation" },
outbound: { defaultMode: "conversation", notifyHangupDelaySec: 0 },
},
storePath: "/tmp/voice-call.json",
webhookUrl: "https://example.com/webhook",

View File

@@ -15,7 +15,7 @@ export {
WhatsAppConfigSchema,
type ChannelPlugin,
type OpenClawConfig,
} from "../../../src/plugin-sdk/whatsapp-core.js";
} from "openclaw/plugin-sdk/whatsapp-core";
export {
createWhatsAppOutboundBase,
@@ -28,7 +28,7 @@ export {
type DmPolicy,
type GroupPolicy,
type WhatsAppAccountConfig,
} from "../../../src/plugin-sdk/whatsapp-shared.js";
} from "openclaw/plugin-sdk/whatsapp-shared";
export {
isWhatsAppGroupJid,
isWhatsAppUserTarget,