mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-05 11:22:53 +00:00
Fixes #85124. Anthropic standard API keys no longer resolve as provider usage auth for `openclaw status --usage`, so valid inference keys are not sent to Anthropic's OAuth usage endpoint and surfaced as misleading invalid bearer-token errors. The provider usage-auth SDK result now has an explicit handled/no-token shape so provider hooks can suppress generic fallback without widening the OAuth helper contract. Docs, Plugin SDK API baseline, and extension package-boundary cache inputs were updated with the new contract. Thanks @zhangguiping-xydt. Proof: - node scripts/run-vitest.mjs src/infra/provider-usage.auth.normalizes-keys.test.ts src/infra/provider-usage.auth.plugin.test.ts extensions/anthropic/index.test.ts - pnpm plugin-sdk:api:check - pnpm plugin-sdk:check-exports - git diff --check origin/main...HEAD - pnpm docs:list - pnpm run test:extensions:package-boundary:compile - autoreview clean: no accepted/actionable findings - PR CI rollup green: 131 success, 22 skipped, 1 neutral, 0 failures Co-authored-by: 张贵萍0668001030 <zhang.guiping@xydigit.com>
Generated Docs Artifacts
SHA-256 hash files are the tracked drift-detection artifacts. The full JSON baselines are generated locally (gitignored) for inspection only.
Tracked (committed to git):
config-baseline.sha256— hashes of config baseline JSON artifacts.plugin-sdk-api-baseline.sha256— hashes of Plugin SDK API baseline artifacts.
Local only (gitignored):
config-baseline.json,config-baseline.core.json,config-baseline.channel.json,config-baseline.plugin.jsonplugin-sdk-api-baseline.json,plugin-sdk-api-baseline.jsonl
Do not edit any of these files by hand.
- Regenerate config baseline:
pnpm config:docs:gen - Validate config baseline:
pnpm config:docs:check - Regenerate Plugin SDK API baseline:
pnpm plugin-sdk:api:gen - Validate Plugin SDK API baseline:
pnpm plugin-sdk:api:check