@openclaw/gradium-speech 2026.9.8 → 2026.10.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.
@@ -50,22 +50,20 @@ function isGradiumProviderConfigured(config) {
50
50
  }
51
51
  }
52
52
  function parseDirectiveToken(ctx) {
53
- switch (ctx.key) {
54
- case "voice":
55
- case "voice_id":
56
- case "voiceid":
57
- case "gradium_voice":
58
- case "gradiumvoice":
59
- if (!ctx.policy.allowVoice) return { handled: true };
60
- return {
61
- handled: true,
62
- overrides: {
63
- ...ctx.currentOverrides,
64
- voiceId: ctx.value
65
- }
66
- };
67
- default: return { handled: false };
68
- }
53
+ if (![
54
+ "voice",
55
+ "voice_id",
56
+ "voiceid",
57
+ "gradium_voice",
58
+ "gradiumvoice"
59
+ ].includes(ctx.key)) return { handled: false };
60
+ return ctx.policy.allowVoice ? {
61
+ handled: true,
62
+ overrides: {
63
+ ...ctx.currentOverrides,
64
+ voiceId: ctx.value
65
+ }
66
+ } : { handled: true };
69
67
  }
70
68
  function buildGradiumSpeechProvider() {
71
69
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/gradium-speech",
3
- "version": "2026.9.8",
3
+ "version": "2026.10.1-beta.2",
4
4
  "description": "OpenClaw Gradium speech plugin.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -18,10 +18,10 @@
18
18
  "minHostVersion": ">=2026.6.8"
19
19
  },
20
20
  "compat": {
21
- "pluginApi": ">=2026.9.8"
21
+ "pluginApi": ">=2026.10.1-beta.2"
22
22
  },
23
23
  "build": {
24
- "openclawVersion": "2026.9.8",
24
+ "openclawVersion": "2026.10.1-beta.2",
25
25
  "bundledDist": false
26
26
  },
27
27
  "release": {
@@ -40,7 +40,7 @@
40
40
  "assets/activity.svg"
41
41
  ],
42
42
  "peerDependencies": {
43
- "openclaw": ">=2026.9.8"
43
+ "openclaw": ">=2026.10.1-beta.2"
44
44
  },
45
45
  "peerDependenciesMeta": {
46
46
  "openclaw": {