@cleocode/adapters 2026.5.76 → 2026.5.78

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
@@ -790,10 +790,13 @@ function parseClaudeCodeCredentials(buf) {
790
790
  const expiresAt = typeof block["expiresAt"] === "number" ? block["expiresAt"] : void 0;
791
791
  if (expiresAt !== void 0 && Date.now() > expiresAt) return null;
792
792
  const refreshToken = typeof block["refreshToken"] === "string" && block["refreshToken"].trim() ? block["refreshToken"] : void 0;
793
+ const rawScopes = block["scopes"];
794
+ const scopes = Array.isArray(rawScopes) && rawScopes.every((s) => typeof s === "string") ? rawScopes : void 0;
793
795
  return {
794
796
  accessToken: accessToken.trim(),
795
797
  ...expiresAt !== void 0 ? { expiresAt } : {},
796
- ...refreshToken !== void 0 ? { refreshToken } : {}
798
+ ...refreshToken !== void 0 ? { refreshToken } : {},
799
+ ...scopes !== void 0 ? { scopes } : {}
797
800
  };
798
801
  } catch {
799
802
  return null;