Plugins: add local extension API barrels

This commit is contained in:
Vincent Koc 2026-03-17 10:36:48 -07:00
parent 0d80897476
commit 4b2aec622b
11 changed files with 11 additions and 14 deletions

View File

@ -0,0 +1 @@
export * from "openclaw/plugin-sdk/talk-voice";

View File

@ -1,6 +1,6 @@
import { resolveActiveTalkProviderConfig } from "openclaw/plugin-sdk/config-runtime";
import type { SpeechVoiceOption } from "openclaw/plugin-sdk/speech";
import { definePluginEntry, type OpenClawPluginApi } from "openclaw/plugin-sdk/talk-voice";
import { definePluginEntry, type OpenClawPluginApi } from "./api.js";
function mask(s: string, keep: number = 6): string {
const trimmed = s.trim();

View File

@ -0,0 +1 @@
export * from "openclaw/plugin-sdk/voice-call";

View File

@ -3,7 +3,7 @@ import {
definePluginEntry,
type GatewayRequestHandlerOptions,
type OpenClawPluginApi,
} from "openclaw/plugin-sdk/voice-call";
} from "./api.js";
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/voice-call";
import { sleep } from "../api.js";
import type { VoiceCallConfig } from "./config.js";
import type { VoiceCallRuntime } from "./runtime.js";
import { resolveUserPath } from "./utils.js";

View File

@ -1,10 +1,5 @@
import {
TtsAutoSchema,
TtsConfigSchema,
TtsModeSchema,
TtsProviderSchema,
} from "openclaw/plugin-sdk/voice-call";
import { z } from "zod";
import { TtsAutoSchema, TtsConfigSchema, TtsModeSchema, TtsProviderSchema } from "../api.js";
import { deepMergeDefined } from "./deep-merge.js";
// -----------------------------------------------------------------------------

View File

@ -1,4 +1,4 @@
import type { OpenClawPluginApi } from "openclaw/plugin-sdk/voice-call";
import type { OpenClawPluginApi } from "../api.js";
import type { VoiceCallTtsConfig } from "./config.js";
export type CoreConfig = {

View File

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

View File

@ -1,4 +1,4 @@
import { resolveOpenAITtsInstructions } from "openclaw/plugin-sdk/voice-call";
import { resolveOpenAITtsInstructions } from "../../api.js";
import { pcmToMulaw } from "../telephony-audio.js";
/**

View File

@ -4,7 +4,7 @@
*/
import crypto from "node:crypto";
import type { SessionEntry } from "openclaw/plugin-sdk/voice-call";
import type { SessionEntry } from "../api.js";
import type { VoiceCallConfig } from "./config.js";
import type { CoreAgentDeps, CoreConfig } from "./core-bridge.js";

View File

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