@openclaw/xiaomi-provider 2026.10.5-beta.4 → 2026.10.10-beta.1

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.
package/dist/index.js CHANGED
@@ -188,10 +188,10 @@ var xiaomi_default = definePluginEntry({
188
188
  },
189
189
  ...XIAOMI_PROVIDER_HOOKS,
190
190
  resolveUsageAuth: async (ctx) => {
191
- const apiKey = ctx.resolveApiKeyFromConfigAndStore({
191
+ const apiKey = (await ctx.resolveApiKeyCandidatesFromConfigAndStore?.({
192
192
  providerIds: [provider.id],
193
193
  envDirect: [ctx.env[provider.envVar]]
194
- });
194
+ }))?.[0];
195
195
  return apiKey ? { token: apiKey } : null;
196
196
  },
197
197
  fetchUsageSnapshot: async () => ({
@@ -1,2 +1 @@
1
- import { a as buildXiaomiProvider, i as XIAOMI_TOKEN_PLAN_PROVIDER_ID, n as XIAOMI_PROVIDER_ID, o as buildXiaomiTokenPlanProvider, r as XIAOMI_TOKEN_PLAN_DEFAULT_MODEL_ID, s as resolveXiaomiTokenPlanBaseUrl, t as XIAOMI_DEFAULT_MODEL_ID } from "./.setup/provider-catalog-v9-9qyII.mjs";
2
- export { XIAOMI_DEFAULT_MODEL_ID, XIAOMI_PROVIDER_ID, XIAOMI_TOKEN_PLAN_DEFAULT_MODEL_ID, XIAOMI_TOKEN_PLAN_PROVIDER_ID, buildXiaomiProvider, buildXiaomiTokenPlanProvider, resolveXiaomiTokenPlanBaseUrl };
1
+ export { t as XIAOMI_DEFAULT_MODEL_ID, n as XIAOMI_PROVIDER_ID, r as XIAOMI_TOKEN_PLAN_DEFAULT_MODEL_ID, i as XIAOMI_TOKEN_PLAN_PROVIDER_ID, a as buildXiaomiProvider, o as buildXiaomiTokenPlanProvider, s as resolveXiaomiTokenPlanBaseUrl } from "./.setup/provider-catalog-v9-9qyII.mjs";
@@ -167,6 +167,7 @@ async function xiaomiTTS(params) {
167
167
  }
168
168
  }
169
169
  function buildXiaomiSpeechProvider() {
170
+ const isConfigured = ({ providerConfig }) => Boolean(resolveXiaomiTtsProviderConfig(providerConfig).apiKey);
170
171
  return {
171
172
  id: "xiaomi",
172
173
  label: "Xiaomi MiMo",
@@ -181,7 +182,8 @@ function buildXiaomiSpeechProvider() {
181
182
  id: voice,
182
183
  name: voice
183
184
  })),
184
- isConfigured: ({ providerConfig }) => Boolean(resolveXiaomiTtsProviderConfig(providerConfig).apiKey),
185
+ isConfigured,
186
+ isConfiguredAsync: async (ctx) => isConfigured(ctx),
185
187
  synthesize: async (req) => {
186
188
  const config = resolveXiaomiTtsProviderConfig(req.providerConfig);
187
189
  const overrides = readXiaomiTtsOptions(req.providerOverrides);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/xiaomi-provider",
3
- "version": "2026.10.5-beta.4",
3
+ "version": "2026.10.10-beta.1",
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.10.5-beta.4"
21
+ "pluginApi": ">=2026.10.10-beta.1"
22
22
  },
23
23
  "build": {
24
- "openclawVersion": "2026.10.5-beta.4",
24
+ "openclawVersion": "2026.10.10-beta.1",
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.10.5-beta.4"
43
+ "openclaw": ">=2026.10.10-beta.1"
44
44
  },
45
45
  "peerDependenciesMeta": {
46
46
  "openclaw": {