@openclaw/voice-call 2026.6.6 → 2026.6.8-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-GVY8iEzX.js";
3
+ import { a as getHeader } from "./runtime-entry-DeDXZz2k.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 { i as resolveVoiceCallConfig, s as validateProviderConfig } from "./config-jaA6vOZ2.js";
4
- import { c as getTailscaleSelfInfo, l as setupTailscaleExposureRoute, o as resolveWebhookExposureStatus, p as resolveUserPath, s as cleanupTailscaleExposureRoute, t as createVoiceCallRuntime } from "./runtime-entry-GVY8iEzX.js";
4
+ import { c as getTailscaleSelfInfo, l as setupTailscaleExposureRoute, o as resolveWebhookExposureStatus, p as resolveUserPath, s as cleanupTailscaleExposureRoute, t as createVoiceCallRuntime } from "./runtime-entry-DeDXZz2k.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-BPPFhsJ7.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-GVY8iEzX.js";
2
- import { n as reconstructWebhookUrl, r as verifyPlivoWebhook, t as guardedJsonApiRequest } from "./guarded-json-api-C5KNhYC-.js";
1
+ import { a as getHeader, m as escapeXml } from "./runtime-entry-DeDXZz2k.js";
2
+ import { n as reconstructWebhookUrl, r as verifyPlivoWebhook, t as guardedJsonApiRequest } from "./guarded-json-api-tNxwxQt0.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 { o as resolveVoiceCallSessionKey } from "./config-jaA6vOZ2.js";
2
- import { f as resolveVoiceResponseModel } from "./runtime-entry-GVY8iEzX.js";
2
+ import { f as resolveVoiceResponseModel } from "./runtime-entry-DeDXZz2k.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";
@@ -1941,7 +1941,12 @@ var MediaStreamHandler = class {
1941
1941
  ws.close(1008, "Missing callSid");
1942
1942
  return null;
1943
1943
  }
1944
- if (this.config.shouldAcceptStream && !this.config.shouldAcceptStream({
1944
+ if (!this.config.shouldAcceptStream) {
1945
+ console.warn("[MediaStream] Rejecting stream without an acceptance validator");
1946
+ ws.close(1008, "Unauthorized stream");
1947
+ return null;
1948
+ }
1949
+ if (!this.config.shouldAcceptStream({
1945
1950
  callId: callSid,
1946
1951
  streamSid,
1947
1952
  token: effectiveToken
@@ -2473,7 +2478,7 @@ function loadRealtimeTranscriptionRuntime() {
2473
2478
  return realtimeTranscriptionRuntimePromise;
2474
2479
  }
2475
2480
  function loadResponseGeneratorModule() {
2476
- responseGeneratorModulePromise ??= import("./response-generator-DjsoOMEg.js");
2481
+ responseGeneratorModulePromise ??= import("./response-generator-39zOYri_.js");
2477
2482
  return responseGeneratorModulePromise;
2478
2483
  }
2479
2484
  function sanitizeTranscriptForLog(value) {
@@ -3157,15 +3162,15 @@ let mockProviderPromise;
3157
3162
  let realtimeVoiceRuntimePromise;
3158
3163
  let realtimeHandlerPromise;
3159
3164
  function loadTelnyxProvider() {
3160
- telnyxProviderPromise ??= import("./telnyx-Gm8Z1pUt.js");
3165
+ telnyxProviderPromise ??= import("./telnyx-YbJp3QiY.js");
3161
3166
  return telnyxProviderPromise;
3162
3167
  }
3163
3168
  function loadTwilioProvider() {
3164
- twilioProviderPromise ??= import("./twilio-BuFmgABx.js");
3169
+ twilioProviderPromise ??= import("./twilio-DBcVB36L.js");
3165
3170
  return twilioProviderPromise;
3166
3171
  }
3167
3172
  function loadPlivoProvider() {
3168
- plivoProviderPromise ??= import("./plivo-29Dvun7P.js");
3173
+ plivoProviderPromise ??= import("./plivo-K3Nv0D8o.js");
3169
3174
  return plivoProviderPromise;
3170
3175
  }
3171
3176
  function loadMockProvider() {
@@ -1,2 +1,2 @@
1
- import { t as createVoiceCallRuntime } from "./runtime-entry-GVY8iEzX.js";
1
+ import { t as createVoiceCallRuntime } from "./runtime-entry-DeDXZz2k.js";
2
2
  export { createVoiceCallRuntime };
@@ -1,4 +1,4 @@
1
- import { i as verifyTelnyxWebhook, t as guardedJsonApiRequest } from "./guarded-json-api-C5KNhYC-.js";
1
+ import { i as verifyTelnyxWebhook, t as guardedJsonApiRequest } from "./guarded-json-api-tNxwxQt0.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-GVY8iEzX.js";
4
- import { a as verifyTwilioWebhook, t as guardedJsonApiRequest } from "./guarded-json-api-C5KNhYC-.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-DeDXZz2k.js";
4
+ import { a as verifyTwilioWebhook, t as guardedJsonApiRequest } from "./guarded-json-api-tNxwxQt0.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.6.6",
3
+ "version": "2026.6.8-beta.2",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@openclaw/voice-call",
9
- "version": "2026.6.6",
9
+ "version": "2026.6.8-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.6.6"
17
+ "openclaw": ">=2026.6.8-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.6.6",
3
+ "version": "2026.6.8-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.6.6"
17
+ "openclaw": ">=2026.6.8-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.6.6"
34
+ "pluginApi": ">=2026.6.8-beta.2"
35
35
  },
36
36
  "build": {
37
- "openclawVersion": "2026.6.6"
37
+ "openclawVersion": "2026.6.8-beta.2"
38
38
  },
39
39
  "release": {
40
40
  "publishToClawHub": true,