@openclaw/chutes-provider 2026.9.2 → 2026.9.3

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/api.js CHANGED
@@ -1,4 +1,4 @@
1
- import { n as CHUTES_MODEL_CATALOG, r as discoverChutesModels, t as CHUTES_BASE_URL } from "./models-DvzDAkE0.js";
1
+ import { n as CHUTES_MODEL_CATALOG, r as discoverChutesModels, t as CHUTES_BASE_URL } from "./models-BxSpFbx1.js";
2
2
  import { CHUTES_DEFAULT_MODEL_ID, CHUTES_DEFAULT_MODEL_REF, applyChutesApiKeyConfig, applyChutesConfig, applyChutesProviderConfig } from "./onboard.js";
3
3
  import { buildChutesProvider } from "./provider-catalog.js";
4
4
  export { CHUTES_BASE_URL, CHUTES_DEFAULT_MODEL_ID, CHUTES_DEFAULT_MODEL_REF, CHUTES_MODEL_CATALOG, applyChutesApiKeyConfig, applyChutesConfig, applyChutesProviderConfig, buildChutesProvider, discoverChutesModels };
package/dist/index.js CHANGED
@@ -4,6 +4,7 @@ import { buildChutesProvider, buildStaticChutesProvider } from "./provider-catal
4
4
  import { definePluginEntry } from "openclaw/plugin-sdk/plugin-entry";
5
5
  import { buildOauthProviderAuthResult, resolveOAuthApiKeyMarker } from "openclaw/plugin-sdk/provider-auth";
6
6
  import { createProviderApiKeyAuthMethod } from "openclaw/plugin-sdk/provider-auth-api-key";
7
+ import { runLiveProviderCatalog } from "openclaw/plugin-sdk/provider-catalog-live-runtime";
7
8
  import { normalizeOptionalString, readStringValue } from "openclaw/plugin-sdk/string-coerce-runtime";
8
9
  //#region extensions/chutes/index.ts
9
10
  /**
@@ -130,12 +131,16 @@ var chutes_default = definePluginEntry({
130
131
  catalog: {
131
132
  order: "profile",
132
133
  run: async (ctx) => {
133
- const { apiKey, discoveryApiKey } = ctx.resolveProviderAuth(PROVIDER_ID, { oauthMarker: resolveOAuthApiKeyMarker(PROVIDER_ID) });
134
+ const { apiKey, discoveryApiKey, profileId } = ctx.resolveProviderAuth(PROVIDER_ID, { oauthMarker: resolveOAuthApiKeyMarker(PROVIDER_ID) });
134
135
  if (!apiKey) return null;
135
- return { provider: {
136
- ...await buildChutesProvider(discoveryApiKey),
137
- apiKey
138
- } };
136
+ return await runLiveProviderCatalog({
137
+ providerId: PROVIDER_ID,
138
+ profileId: discoveryApiKey ? profileId : void 0,
139
+ run: async () => ({ provider: {
140
+ ...await buildChutesProvider(discoveryApiKey, { discoveryMode: "strict" }),
141
+ apiKey
142
+ } })
143
+ });
139
144
  }
140
145
  },
141
146
  staticCatalog: {
@@ -1,8 +1,8 @@
1
1
  import { normalizeChutesModelPricing } from "./pricing-api.js";
2
+ import { buildLiveModelProviderConfig } from "openclaw/plugin-sdk/provider-catalog-live-runtime";
2
3
  import { asPositiveSafeInteger, normalizeLowercaseStringOrEmpty, normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
3
4
  import { buildManifestModelProviderConfig } from "openclaw/plugin-sdk/provider-catalog-shared";
4
5
  import { withTrustedEnvProxyGuardedFetchMode } from "openclaw/plugin-sdk/fetch-runtime";
5
- import { buildLiveModelProviderConfig } from "openclaw/plugin-sdk/provider-catalog-live-runtime";
6
6
  import { fetchWithSsrFGuard, ssrfPolicyFromHttpBaseUrlAllowedHostname } from "openclaw/plugin-sdk/ssrf-runtime";
7
7
  //#region extensions/chutes/openclaw.plugin.json
8
8
  var openclaw_plugin_default = {
@@ -217,9 +217,9 @@ function projectChutesModels(rows) {
217
217
  }
218
218
  return models;
219
219
  }
220
- /** Discovers Chutes models dynamically, falling back to the bundled static catalog. */
221
- async function discoverChutesModels(accessToken) {
220
+ async function discoverChutesModels(accessToken, options = {}) {
222
221
  return (await buildLiveModelProviderConfig({
222
+ ...options,
223
223
  providerId: "chutes",
224
224
  endpoint: `${CHUTES_BASE_URL}/models`,
225
225
  providerConfig: {
package/dist/models.js CHANGED
@@ -1,2 +1,2 @@
1
- import { n as CHUTES_MODEL_CATALOG, r as discoverChutesModels, t as CHUTES_BASE_URL } from "./models-DvzDAkE0.js";
1
+ import { n as CHUTES_MODEL_CATALOG, r as discoverChutesModels, t as CHUTES_BASE_URL } from "./models-BxSpFbx1.js";
2
2
  export { CHUTES_BASE_URL, CHUTES_MODEL_CATALOG, discoverChutesModels };
package/dist/onboard.js CHANGED
@@ -1,4 +1,4 @@
1
- import { i as openclaw_plugin_default, n as CHUTES_MODEL_CATALOG, t as CHUTES_BASE_URL } from "./models-DvzDAkE0.js";
1
+ import { i as openclaw_plugin_default, n as CHUTES_MODEL_CATALOG, t as CHUTES_BASE_URL } from "./models-BxSpFbx1.js";
2
2
  import { readManifestProviderDefaultModelRef } from "openclaw/plugin-sdk/provider-catalog-shared";
3
3
  import { applyAgentDefaultModelPrimary, createModelCatalogPresetAppliers } from "openclaw/plugin-sdk/provider-onboard";
4
4
  //#region extensions/chutes/onboard.ts
@@ -1,4 +1,4 @@
1
- import { n as CHUTES_MODEL_CATALOG, r as discoverChutesModels, t as CHUTES_BASE_URL } from "./models-DvzDAkE0.js";
1
+ import { n as CHUTES_MODEL_CATALOG, r as discoverChutesModels, t as CHUTES_BASE_URL } from "./models-BxSpFbx1.js";
2
2
  //#region extensions/chutes/provider-catalog.ts
3
3
  /** Builds the static Chutes provider catalog from bundled model metadata. */
4
4
  function buildStaticChutesProvider() {
@@ -10,14 +10,13 @@ function buildStaticChutesProvider() {
10
10
  }
11
11
  /**
12
12
  * Build the Chutes provider with dynamic model discovery.
13
- * Falls back to the static catalog on failure.
14
13
  * Accepts an optional access token (API key or OAuth access token) for authenticated discovery.
15
14
  */
16
- async function buildChutesProvider(accessToken) {
15
+ async function buildChutesProvider(accessToken, options = {}) {
17
16
  return {
18
17
  baseUrl: CHUTES_BASE_URL,
19
18
  api: "openai-completions",
20
- models: await discoverChutesModels(accessToken)
19
+ models: await discoverChutesModels(accessToken, options)
21
20
  };
22
21
  }
23
22
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/chutes-provider",
3
- "version": "2026.9.2",
3
+ "version": "2026.9.3",
4
4
  "description": "OpenClaw Chutes.ai provider 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.2"
21
+ "pluginApi": ">=2026.9.3"
22
22
  },
23
23
  "build": {
24
- "openclawVersion": "2026.9.2",
24
+ "openclawVersion": "2026.9.3",
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.9.2"
41
+ "openclaw": ">=2026.9.3"
42
42
  },
43
43
  "peerDependenciesMeta": {
44
44
  "openclaw": {