Plugins/voice-call: migrate to scoped plugin-sdk imports

This commit is contained in:
Gustavo Madeira Santana
2026-03-04 02:33:16 -05:00
parent a9af933486
commit bbf29201b8
5 changed files with 8 additions and 5 deletions

View File

@@ -1,5 +1,8 @@
import { Type } from "@sinclair/typebox";
import type { GatewayRequestHandlerOptions, OpenClawPluginApi } from "openclaw/plugin-sdk/core";
import type {
GatewayRequestHandlerOptions,
OpenClawPluginApi,
} from "openclaw/plugin-sdk/voice-call";
import { registerVoiceCallCli } from "./src/cli.js";
import {
VoiceCallConfigSchema,

View File

@@ -2,7 +2,7 @@ import fs from "node:fs";
import os from "node:os";
import path from "node:path";
import type { Command } from "commander";
import { sleep } from "openclaw/plugin-sdk/compat";
import { sleep } from "openclaw/plugin-sdk/voice-call";
import type { VoiceCallConfig } from "./config.js";
import type { VoiceCallRuntime } from "./runtime.js";
import { resolveUserPath } from "./utils.js";

View File

@@ -3,7 +3,7 @@ import {
TtsConfigSchema,
TtsModeSchema,
TtsProviderSchema,
} from "openclaw/plugin-sdk/compat";
} from "openclaw/plugin-sdk/voice-call";
import { z } from "zod";
// -----------------------------------------------------------------------------

View File

@@ -1,4 +1,4 @@
import { fetchWithSsrFGuard } from "openclaw/plugin-sdk/compat";
import { fetchWithSsrFGuard } from "openclaw/plugin-sdk/voice-call";
type GuardedJsonApiRequestParams = {
url: string;

View File

@@ -4,7 +4,7 @@ import {
isRequestBodyLimitError,
readRequestBodyWithLimit,
requestBodyErrorToText,
} from "openclaw/plugin-sdk/compat";
} from "openclaw/plugin-sdk/voice-call";
import type { VoiceCallConfig } from "./config.js";
import type { CoreConfig } from "./core-bridge.js";
import type { CallManager } from "./manager.js";