@openclaw/voice-call 2026.7.1-beta.1 → 2026.7.1-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  import { fetchWithSsrFGuard } from "./runtime-api.js";
2
2
  import "./api.js";
3
- import { a as getHeader } from "./runtime-entry-Cwb6vEQf.js";
3
+ import { a as getHeader } from "./runtime-entry-DN7HllXj.js";
4
4
  import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
5
5
  import { isLoopbackHost } from "openclaw/plugin-sdk/gateway-runtime";
6
6
  import { isFutureDateTimestampMs, resolveExpiresAtMsFromDurationMs } from "openclaw/plugin-sdk/number-runtime";
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { definePluginEntry, sleep } from "./runtime-api.js";
2
2
  import "./api.js";
3
3
  import { c as validateProviderConfig, i as resolveVoiceCallConfig } from "./config-DNtTB7Iw.js";
4
- import { c as getTailscaleSelfInfo, l as setupTailscaleExposureRoute, o as resolveWebhookExposureStatus, p as resolveUserPath, s as cleanupTailscaleExposureRoute, t as createVoiceCallRuntime } from "./runtime-entry-Cwb6vEQf.js";
4
+ import { c as getTailscaleSelfInfo, l as setupTailscaleExposureRoute, o as resolveWebhookExposureStatus, p as resolveUserPath, s as cleanupTailscaleExposureRoute, t as createVoiceCallRuntime } from "./runtime-entry-DN7HllXj.js";
5
5
  import { c as getCallHistoryFromStore, m as setVoiceCallStateRuntime } from "./store-8M2m4Isq.js";
6
6
  import { i as parseVoiceCallPluginConfig, r as normalizeVoiceCallLegacyConfigInput, t as formatVoiceCallLegacyConfigWarnings } from "./config-compat-CCEjHjAJ.js";
7
7
  import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
@@ -1,5 +1,5 @@
1
- import { a as getHeader, m as escapeXml } from "./runtime-entry-Cwb6vEQf.js";
2
- import { a as reconstructWebhookUrl, o as verifyPlivoWebhook, t as guardedJsonApiRequest } from "./guarded-json-api-Dnyy7xHB.js";
1
+ import { a as getHeader, m as escapeXml } from "./runtime-entry-DN7HllXj.js";
2
+ import { a as reconstructWebhookUrl, o as verifyPlivoWebhook, t as guardedJsonApiRequest } from "./guarded-json-api-7ITxTL6G.js";
3
3
  import { normalizeLowercaseStringOrEmpty, normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
4
4
  import crypto from "node:crypto";
5
5
  //#region extensions/voice-call/src/providers/plivo.ts
@@ -1,5 +1,5 @@
1
1
  import { s as resolveVoiceCallSessionKey } from "./config-DNtTB7Iw.js";
2
- import { f as resolveVoiceResponseModel } from "./runtime-entry-Cwb6vEQf.js";
2
+ import { f as resolveVoiceResponseModel } from "./runtime-entry-DN7HllXj.js";
3
3
  import { isRecord, normalizeLowercaseStringOrEmpty, normalizeStringEntries } from "openclaw/plugin-sdk/string-coerce-runtime";
4
4
  import crypto from "node:crypto";
5
5
  import { applyModelOverrideToSessionEntry } from "openclaw/plugin-sdk/model-session-runtime";
@@ -6,6 +6,7 @@ import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
6
6
  import { isLoopbackHost } from "openclaw/plugin-sdk/gateway-runtime";
7
7
  import { MAX_TIMER_TIMEOUT_MS, asDateTimestampMs, resolveExpiresAtMsFromDurationMs, resolveTimerTimeoutMs } from "openclaw/plugin-sdk/number-runtime";
8
8
  import { normalizeLowercaseStringOrEmpty, normalizeOptionalLowercaseString, normalizeOptionalString, normalizeStringEntries } from "openclaw/plugin-sdk/string-coerce-runtime";
9
+ import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
9
10
  import { REALTIME_VOICE_AGENT_CONSULT_TOOL_NAME, buildRealtimeVoiceAgentConsultPolicyInstructions, consultRealtimeVoiceAgent, convertPcmToMulaw8k, createTalkSessionController, recordTalkObservabilityEvent, resolveRealtimeVoiceAgentConsultTools, resolveRealtimeVoiceAgentConsultToolsAllow, resolveRealtimeVoiceFastContextConsult } from "openclaw/plugin-sdk/realtime-voice";
10
11
  import fs from "node:fs";
11
12
  import os from "node:os";
@@ -2506,16 +2507,8 @@ const WEBHOOK_BODY_TIMEOUT_MS = WEBHOOK_BODY_READ_DEFAULTS.preAuth.timeoutMs;
2506
2507
  const MISSING_REMOTE_ADDRESS_IN_FLIGHT_KEY = "__voice_call_no_remote__";
2507
2508
  const STREAM_DISCONNECT_HANGUP_GRACE_MS = 2e3;
2508
2509
  const TRANSCRIPT_LOG_MAX_CHARS = 200;
2509
- let realtimeTranscriptionRuntimePromise;
2510
- let responseGeneratorModulePromise;
2511
- function loadRealtimeTranscriptionRuntime() {
2512
- realtimeTranscriptionRuntimePromise ??= import("./realtime-transcription.runtime-CbJAs5t_.js");
2513
- return realtimeTranscriptionRuntimePromise;
2514
- }
2515
- function loadResponseGeneratorModule() {
2516
- responseGeneratorModulePromise ??= import("./response-generator-DOdrErIH.js");
2517
- return responseGeneratorModulePromise;
2518
- }
2510
+ const loadRealtimeTranscriptionRuntime = createLazyRuntimeModule(() => import("./realtime-transcription.runtime-CbJAs5t_.js"));
2511
+ const loadResponseGeneratorModule = createLazyRuntimeModule(() => import("./response-generator-CXBGKbAp.js"));
2519
2512
  function sanitizeTranscriptForLog(value) {
2520
2513
  const sanitized = value.replace(/\p{Cc}/gu, " ").replace(/\s+/g, " ").trim();
2521
2514
  if (sanitized.length <= TRANSCRIPT_LOG_MAX_CHARS) return sanitized;
@@ -3194,36 +3187,12 @@ const REALTIME_VOICE_CONSULT_SYSTEM_PROMPT = [
3194
3187
  "Do not print secret values or dump environment variables; only check whether required configuration is present.",
3195
3188
  "Be accurate, brief, and speakable."
3196
3189
  ].join(" ");
3197
- let telnyxProviderPromise;
3198
- let twilioProviderPromise;
3199
- let plivoProviderPromise;
3200
- let mockProviderPromise;
3201
- let realtimeVoiceRuntimePromise;
3202
- let realtimeHandlerPromise;
3203
- function loadTelnyxProvider() {
3204
- telnyxProviderPromise ??= import("./telnyx-LSKUJimK.js");
3205
- return telnyxProviderPromise;
3206
- }
3207
- function loadTwilioProvider() {
3208
- twilioProviderPromise ??= import("./twilio-GBk6YOP_.js");
3209
- return twilioProviderPromise;
3210
- }
3211
- function loadPlivoProvider() {
3212
- plivoProviderPromise ??= import("./plivo-sCM3Jvjh.js");
3213
- return plivoProviderPromise;
3214
- }
3215
- function loadMockProvider() {
3216
- mockProviderPromise ??= import("./mock-YAo3QDri.js");
3217
- return mockProviderPromise;
3218
- }
3219
- function loadRealtimeVoiceRuntime() {
3220
- realtimeVoiceRuntimePromise ??= import("./realtime-voice.runtime-vtdCOWg-.js");
3221
- return realtimeVoiceRuntimePromise;
3222
- }
3223
- function loadRealtimeHandler() {
3224
- realtimeHandlerPromise ??= import("./realtime-handler-DdViwdCW.js");
3225
- return realtimeHandlerPromise;
3226
- }
3190
+ const loadTelnyxProvider = createLazyRuntimeModule(() => import("./telnyx-DuUBsPW2.js"));
3191
+ const loadTwilioProvider = createLazyRuntimeModule(() => import("./twilio-CsJBvC3a.js"));
3192
+ const loadPlivoProvider = createLazyRuntimeModule(() => import("./plivo-wmeT9r_t.js"));
3193
+ const loadMockProvider = createLazyRuntimeModule(() => import("./mock-YAo3QDri.js"));
3194
+ const loadRealtimeVoiceRuntime = createLazyRuntimeModule(() => import("./realtime-voice.runtime-vtdCOWg-.js"));
3195
+ const loadRealtimeHandler = createLazyRuntimeModule(() => import("./realtime-handler-DdViwdCW.js"));
3227
3196
  function resolveVoiceCallConsultSessionKey(call) {
3228
3197
  return resolveVoiceCallSessionKey({
3229
3198
  config: call.config,
@@ -1,2 +1,2 @@
1
- import { t as createVoiceCallRuntime } from "./runtime-entry-Cwb6vEQf.js";
1
+ import { t as createVoiceCallRuntime } from "./runtime-entry-DN7HllXj.js";
2
2
  export { createVoiceCallRuntime };
@@ -1,4 +1,4 @@
1
- import { s as verifyTelnyxWebhook, t as guardedJsonApiRequest } from "./guarded-json-api-Dnyy7xHB.js";
1
+ import { s as verifyTelnyxWebhook, t as guardedJsonApiRequest } from "./guarded-json-api-7ITxTL6G.js";
2
2
  import crypto from "node:crypto";
3
3
  //#region extensions/voice-call/src/providers/telnyx.ts
4
4
  function normalizeTelnyxDirection(direction) {
@@ -1,7 +1,7 @@
1
1
  import { fetchWithSsrFGuard } from "./runtime-api.js";
2
2
  import "./api.js";
3
- import { a as getHeader, d as chunkAudio, h as mapVoiceToPolly, i as normalizeProviderStatus, m as escapeXml, n as isProviderStatusTerminal, r as mapProviderStatusToEndReason } from "./runtime-entry-Cwb6vEQf.js";
4
- import { c as verifyTwilioWebhook, i as readProviderJsonResponseText, n as cancelProviderResponseBody, r as readProviderErrorResponseSnippet, t as guardedJsonApiRequest } from "./guarded-json-api-Dnyy7xHB.js";
3
+ import { a as getHeader, d as chunkAudio, h as mapVoiceToPolly, i as normalizeProviderStatus, m as escapeXml, n as isProviderStatusTerminal, r as mapProviderStatusToEndReason } from "./runtime-entry-DN7HllXj.js";
4
+ import { c as verifyTwilioWebhook, i as readProviderJsonResponseText, n as cancelProviderResponseBody, r as readProviderErrorResponseSnippet, t as guardedJsonApiRequest } from "./guarded-json-api-7ITxTL6G.js";
5
5
  import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
6
6
  import crypto from "node:crypto";
7
7
  import { safeEqualSecret } from "openclaw/plugin-sdk/security-runtime";
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@openclaw/voice-call",
3
- "version": "2026.7.1-beta.1",
3
+ "version": "2026.7.1-beta.2",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@openclaw/voice-call",
9
- "version": "2026.7.1-beta.1",
9
+ "version": "2026.7.1-beta.2",
10
10
  "dependencies": {
11
11
  "commander": "14.0.3",
12
12
  "typebox": "1.1.39",
@@ -14,7 +14,7 @@
14
14
  "zod": "4.4.3"
15
15
  },
16
16
  "peerDependencies": {
17
- "openclaw": ">=2026.7.1-beta.1"
17
+ "openclaw": ">=2026.7.1-beta.2"
18
18
  },
19
19
  "peerDependenciesMeta": {
20
20
  "openclaw": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/voice-call",
3
- "version": "2026.7.1-beta.1",
3
+ "version": "2026.7.1-beta.2",
4
4
  "description": "OpenClaw voice-call plugin for Twilio, Telnyx, and Plivo phone calls.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -14,7 +14,7 @@
14
14
  "zod": "4.4.3"
15
15
  },
16
16
  "peerDependencies": {
17
- "openclaw": ">=2026.7.1-beta.1"
17
+ "openclaw": ">=2026.7.1-beta.2"
18
18
  },
19
19
  "peerDependenciesMeta": {
20
20
  "openclaw": {
@@ -31,10 +31,10 @@
31
31
  "minHostVersion": ">=2026.4.10"
32
32
  },
33
33
  "compat": {
34
- "pluginApi": ">=2026.7.1-beta.1"
34
+ "pluginApi": ">=2026.7.1-beta.2"
35
35
  },
36
36
  "build": {
37
- "openclawVersion": "2026.7.1-beta.1"
37
+ "openclawVersion": "2026.7.1-beta.2"
38
38
  },
39
39
  "release": {
40
40
  "publishToClawHub": true,