mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-19 11:08:37 +00:00
Plugins/voice-call: migrate to scoped plugin-sdk imports
This commit is contained in:
@@ -1,5 +1,8 @@
|
|||||||
import { Type } from "@sinclair/typebox";
|
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 { registerVoiceCallCli } from "./src/cli.js";
|
||||||
import {
|
import {
|
||||||
VoiceCallConfigSchema,
|
VoiceCallConfigSchema,
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import fs from "node:fs";
|
|||||||
import os from "node:os";
|
import os from "node:os";
|
||||||
import path from "node:path";
|
import path from "node:path";
|
||||||
import type { Command } from "commander";
|
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 { VoiceCallConfig } from "./config.js";
|
||||||
import type { VoiceCallRuntime } from "./runtime.js";
|
import type { VoiceCallRuntime } from "./runtime.js";
|
||||||
import { resolveUserPath } from "./utils.js";
|
import { resolveUserPath } from "./utils.js";
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import {
|
|||||||
TtsConfigSchema,
|
TtsConfigSchema,
|
||||||
TtsModeSchema,
|
TtsModeSchema,
|
||||||
TtsProviderSchema,
|
TtsProviderSchema,
|
||||||
} from "openclaw/plugin-sdk/compat";
|
} from "openclaw/plugin-sdk/voice-call";
|
||||||
import { z } from "zod";
|
import { z } from "zod";
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { fetchWithSsrFGuard } from "openclaw/plugin-sdk/compat";
|
import { fetchWithSsrFGuard } from "openclaw/plugin-sdk/voice-call";
|
||||||
|
|
||||||
type GuardedJsonApiRequestParams = {
|
type GuardedJsonApiRequestParams = {
|
||||||
url: string;
|
url: string;
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import {
|
|||||||
isRequestBodyLimitError,
|
isRequestBodyLimitError,
|
||||||
readRequestBodyWithLimit,
|
readRequestBodyWithLimit,
|
||||||
requestBodyErrorToText,
|
requestBodyErrorToText,
|
||||||
} from "openclaw/plugin-sdk/compat";
|
} from "openclaw/plugin-sdk/voice-call";
|
||||||
import type { VoiceCallConfig } from "./config.js";
|
import type { VoiceCallConfig } from "./config.js";
|
||||||
import type { CoreConfig } from "./core-bridge.js";
|
import type { CoreConfig } from "./core-bridge.js";
|
||||||
import type { CallManager } from "./manager.js";
|
import type { CallManager } from "./manager.js";
|
||||||
|
|||||||
Reference in New Issue
Block a user