mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-27 09:21:35 +07:00
fix(ci): satisfy voice-call typing and extension boundaries
This commit is contained in:
@@ -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";
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user