Plugins: add local extension API barrels
This commit is contained in:
parent
0d80897476
commit
4b2aec622b
1
extensions/talk-voice/api.ts
Normal file
1
extensions/talk-voice/api.ts
Normal file
@ -0,0 +1 @@
|
||||
export * from "openclaw/plugin-sdk/talk-voice";
|
||||
@ -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();
|
||||
|
||||
1
extensions/voice-call/api.ts
Normal file
1
extensions/voice-call/api.ts
Normal file
@ -0,0 +1 @@
|
||||
export * from "openclaw/plugin-sdk/voice-call";
|
||||
@ -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,
|
||||
|
||||
@ -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";
|
||||
|
||||
@ -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";
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
|
||||
@ -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 = {
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import { fetchWithSsrFGuard } from "openclaw/plugin-sdk/voice-call";
|
||||
import { fetchWithSsrFGuard } from "../../../api.js";
|
||||
|
||||
type GuardedJsonApiRequestParams = {
|
||||
url: string;
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import { resolveOpenAITtsInstructions } from "openclaw/plugin-sdk/voice-call";
|
||||
import { resolveOpenAITtsInstructions } from "../../api.js";
|
||||
import { pcmToMulaw } from "../telephony-audio.js";
|
||||
|
||||
/**
|
||||
|
||||
@ -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";
|
||||
|
||||
|
||||
@ -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";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user