@openclaw/xiaomi-provider 2026.8.1-beta.3 → 2026.8.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.
@@ -149,7 +149,11 @@ function buildXiaomiTtsAudio(params) {
149
149
  }
150
150
  function decodeXiaomiAudioData(body) {
151
151
  const root = asOptionalRecord(body);
152
- const audioData = trimToUndefined(asOptionalRecord(asOptionalRecord(asOptionalRecord((Array.isArray(root?.choices) ? root.choices : [])[0])?.message)?.audio)?.data);
152
+ const choices = Array.isArray(root?.choices) ? root.choices : [];
153
+ const firstChoice = asOptionalRecord(choices[0]);
154
+ const message = asOptionalRecord(firstChoice?.message);
155
+ const audio = asOptionalRecord(message?.audio);
156
+ const audioData = trimToUndefined(audio?.data);
153
157
  if (!audioData) throw new Error("Xiaomi TTS API returned no audio data");
154
158
  const canonicalAudio = canonicalizeBase64(audioData);
155
159
  if (!canonicalAudio) throw new Error("Xiaomi TTS API returned malformed base64 audio data");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/xiaomi-provider",
3
- "version": "2026.8.1-beta.3",
3
+ "version": "2026.8.2",
4
4
  "description": "OpenClaw Xiaomi provider plugin.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -18,10 +18,10 @@
18
18
  "minHostVersion": ">=2026.7.2"
19
19
  },
20
20
  "compat": {
21
- "pluginApi": ">=2026.8.1-beta.3"
21
+ "pluginApi": ">=2026.8.2"
22
22
  },
23
23
  "build": {
24
- "openclawVersion": "2026.8.1-beta.3",
24
+ "openclawVersion": "2026.8.2",
25
25
  "bundledDist": false
26
26
  },
27
27
  "release": {
@@ -38,7 +38,7 @@
38
38
  "README.md"
39
39
  ],
40
40
  "peerDependencies": {
41
- "openclaw": ">=2026.8.1-beta.3"
41
+ "openclaw": ">=2026.8.2"
42
42
  },
43
43
  "peerDependenciesMeta": {
44
44
  "openclaw": {