mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-08 14:02:55 +00:00
Show DeepSeek API-key account balance in status/auth-status usage surfaces by adding a summary-only provider usage snapshot path, a DeepSeek balance fetcher, SDK/docs coverage, and focused regression tests. Maintainer verification accepted the additive provider-usage/status contract and the DeepSeek balance visibility boundary for authenticated status surfaces. Proof: - Live DeepSeek balance proof via 1Password-backed DEEPSEEK_API_KEY against https://api.deepseek.com/user/balance; key and balance amount redacted. - GitHub CI run 26717953383 passed on the current head. - Real behavior proof run 26718215605 passed after the PR body was refreshed. - Local clean PR clone: git diff --check; node --max-old-space-size=8192 --import tsx scripts/generate-plugin-sdk-api-baseline.ts --check; node scripts/run-vitest.mjs run src/agents/bash-tools.exec.path.test.ts. Co-authored-by: Alex Tang <tangli1987118@hotmail.com> Co-authored-by: litang9 <141409885+litang9@users.noreply.github.com>
23 lines
554 B
TypeScript
23 lines
554 B
TypeScript
// Public usage fetch helpers for provider plugins.
|
|
|
|
export type {
|
|
ProviderUsageSnapshot,
|
|
UsageProviderId,
|
|
UsageWindow,
|
|
} from "../infra/provider-usage.types.js";
|
|
|
|
export {
|
|
fetchClaudeUsage,
|
|
fetchCodexUsage,
|
|
fetchDeepSeekUsage,
|
|
fetchGeminiUsage,
|
|
fetchMinimaxUsage,
|
|
fetchZaiUsage,
|
|
} from "../infra/provider-usage.fetch.js";
|
|
export { clampPercent, PROVIDER_LABELS } from "../infra/provider-usage.shared.js";
|
|
export {
|
|
buildUsageErrorSnapshot,
|
|
buildUsageHttpErrorSnapshot,
|
|
fetchJson,
|
|
} from "../infra/provider-usage.fetch.shared.js";
|