@openclaw/chutes-provider 2026.6.11-beta.2 → 2026.7.1-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/oauth.js CHANGED
@@ -3,7 +3,7 @@ import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runti
3
3
  import { randomBytes } from "node:crypto";
4
4
  import { resolveExpiresAtMsFromDurationSeconds } from "openclaw/plugin-sdk/number-runtime";
5
5
  import { parseOAuthCallbackInput, waitForLocalOAuthCallback } from "openclaw/plugin-sdk/provider-auth-runtime";
6
- import { readResponseTextLimited } from "openclaw/plugin-sdk/provider-http";
6
+ import { readProviderJsonResponse, readResponseTextLimited } from "openclaw/plugin-sdk/provider-http";
7
7
  //#region extensions/chutes/oauth.ts
8
8
  /**
9
9
  * Chutes OAuth PKCE login flow.
@@ -53,7 +53,7 @@ function resolveChutesExpiresAt(value, now) {
53
53
  async function fetchChutesUserInfo(params) {
54
54
  const response = await (params.fetchFn ?? fetch)(CHUTES_USERINFO_ENDPOINT, { headers: { Authorization: `Bearer ${params.accessToken}` } });
55
55
  if (!response.ok) return null;
56
- const data = await response.json();
56
+ const data = await readProviderJsonResponse(response, "Chutes userinfo");
57
57
  return data && typeof data === "object" ? data : null;
58
58
  }
59
59
  async function exchangeChutesCodeForTokens(params) {
@@ -76,7 +76,7 @@ async function exchangeChutesCodeForTokens(params) {
76
76
  const detail = await readResponseTextLimited(response, CHUTES_TOKEN_ERROR_BODY_LIMIT_BYTES).catch(() => "");
77
77
  throw new Error(`Chutes token exchange failed: ${detail}`);
78
78
  }
79
- const data = await response.json();
79
+ const data = await readProviderJsonResponse(response, "Chutes token exchange");
80
80
  const access = normalizeOptionalString(data.access_token);
81
81
  const refresh = normalizeOptionalString(data.refresh_token);
82
82
  const expires = resolveChutesExpiresAt(data.expires_in, now);
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@openclaw/chutes-provider",
3
- "version": "2026.6.11-beta.2",
3
+ "version": "2026.7.1-beta.1",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@openclaw/chutes-provider",
9
- "version": "2026.6.11-beta.2"
9
+ "version": "2026.7.1-beta.1"
10
10
  }
11
11
  }
12
12
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/chutes-provider",
3
- "version": "2026.6.11-beta.2",
3
+ "version": "2026.7.1-beta.1",
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.6.11-beta.2"
21
+ "pluginApi": ">=2026.7.1-beta.1"
22
22
  },
23
23
  "build": {
24
- "openclawVersion": "2026.6.11-beta.2",
24
+ "openclawVersion": "2026.7.1-beta.1",
25
25
  "bundledDist": false
26
26
  },
27
27
  "release": {
@@ -39,7 +39,7 @@
39
39
  "README.md"
40
40
  ],
41
41
  "peerDependencies": {
42
- "openclaw": ">=2026.6.11-beta.2"
42
+ "openclaw": ">=2026.7.1-beta.1"
43
43
  },
44
44
  "peerDependenciesMeta": {
45
45
  "openclaw": {