opencode-quota-gui 1.2.0 → 1.3.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/README.md +104 -34
- package/dist/contracts/analytics-entity.d.ts +6 -1
- package/dist/contracts/analytics-entity.js +27 -10
- package/dist/contracts/build-identity.js +1 -1
- package/dist/contracts/card-visibility.d.ts +21 -0
- package/dist/contracts/card-visibility.js +19 -0
- package/dist/contracts/dashboard.d.ts +35 -1
- package/dist/contracts/dashboard.js +2 -0
- package/dist/contracts/dto-guards.d.ts +24 -0
- package/dist/contracts/dto-guards.js +594 -0
- package/dist/contracts/openai-quota.d.ts +3 -0
- package/dist/contracts/openai-quota.js +3 -0
- package/dist/contracts/provider-failure.d.ts +18 -0
- package/dist/contracts/provider-failure.js +25 -0
- package/dist/data/modelsdev-temporal.min.json +57 -0
- package/dist/gui/config.d.ts +20 -3
- package/dist/gui/config.js +72 -4
- package/dist/gui/dashboard-errors.d.ts +32 -0
- package/dist/gui/dashboard-errors.js +97 -0
- package/dist/gui/lifecycle.d.ts +47 -12
- package/dist/gui/lifecycle.js +215 -37
- package/dist/gui/primary-quota-windows.d.ts +28 -0
- package/dist/gui/primary-quota-windows.js +149 -0
- package/dist/gui/provider-cards.d.ts +11 -3
- package/dist/gui/provider-cards.js +85 -33
- package/dist/gui/quota-notification-detector.d.ts +151 -0
- package/dist/gui/quota-notification-detector.js +318 -0
- package/dist/gui/quota-notification-observer.d.ts +54 -0
- package/dist/gui/quota-notification-observer.js +412 -0
- package/dist/gui/rpc.d.ts +61 -0
- package/dist/gui/rpc.js +310 -0
- package/dist/gui/server.d.ts +15 -27
- package/dist/gui/server.js +34 -123
- package/dist/gui/snapshot-service.d.ts +34 -5
- package/dist/gui/snapshot-service.js +301 -70
- package/dist/gui/sources.d.ts +1 -1
- package/dist/gui/sources.js +98 -56
- package/dist/gui-experimental.cjs +1761 -0
- package/dist/lib/accounting-format.js +8 -0
- package/dist/lib/alibaba-coding-plan-cli.d.ts +79 -0
- package/dist/lib/alibaba-coding-plan-cli.js +539 -0
- package/dist/lib/anthropic-auth.d.ts +2 -3
- package/dist/lib/anthropic-auth.js +2 -3
- package/dist/lib/anthropic.d.ts +53 -12
- package/dist/lib/anthropic.js +622 -270
- package/dist/lib/api-key-retry-after.d.ts +7 -0
- package/dist/lib/api-key-retry-after.js +62 -0
- package/dist/lib/atomic-json.d.ts +2 -0
- package/dist/lib/atomic-json.js +1 -0
- package/dist/lib/cache-observer-ingestion.d.ts +90 -0
- package/dist/lib/cache-observer-ingestion.js +981 -0
- package/dist/lib/cache-observer.d.ts +138 -0
- package/dist/lib/cache-observer.js +317 -0
- package/dist/lib/canonical-config-lock.d.ts +9 -0
- package/dist/lib/canonical-config-lock.js +36 -0
- package/dist/lib/chutes.js +63 -35
- package/dist/lib/claude-agent-transcript-ttl.d.ts +48 -0
- package/dist/lib/claude-agent-transcript-ttl.js +154 -0
- package/dist/lib/claude-agent-ttl-tracker.d.ts +21 -0
- package/dist/lib/claude-agent-ttl-tracker.js +152 -0
- package/dist/lib/cli-show.js +5 -3
- package/dist/lib/config-write-target.d.ts +1 -1
- package/dist/lib/config-write-target.js +5 -2
- package/dist/lib/config.d.ts +6 -1
- package/dist/lib/config.js +241 -2
- package/dist/lib/copilot.js +198 -85
- package/dist/lib/dashboard-web-policy.d.ts +35 -0
- package/dist/lib/dashboard-web-policy.js +24 -0
- package/dist/lib/deepseek.js +34 -11
- package/dist/lib/display-sanitize.js +3 -0
- package/dist/lib/entries.d.ts +26 -0
- package/dist/lib/entries.js +2 -0
- package/dist/lib/format-utils.d.ts +1 -1
- package/dist/lib/format-utils.js +2 -2
- package/dist/lib/glm-coding-plan.js +102 -68
- package/dist/lib/google-agy.js +147 -24
- package/dist/lib/google-gemini-cli.js +140 -23
- package/dist/lib/http.d.ts +4 -0
- package/dist/lib/http.js +16 -2
- package/dist/lib/init-installer.js +30 -7
- package/dist/lib/kilo.js +63 -55
- package/dist/lib/kimi.js +43 -14
- package/dist/lib/mimo.d.ts +4 -0
- package/dist/lib/mimo.js +45 -1
- package/dist/lib/nanogpt.d.ts +3 -0
- package/dist/lib/nanogpt.js +50 -6
- package/dist/lib/ollama-cloud.d.ts +1 -1
- package/dist/lib/ollama-cloud.js +51 -29
- package/dist/lib/openai.js +90 -40
- package/dist/lib/opencode-auth-sqlite.d.ts +2 -2
- package/dist/lib/opencode-auth-sqlite.js +2 -2
- package/dist/lib/opencode-auth.d.ts +3 -2
- package/dist/lib/opencode-auth.js +8 -1
- package/dist/lib/opencode-config-editor.d.ts +1 -0
- package/dist/lib/opencode-config-editor.js +6 -1
- package/dist/lib/opencode-go.js +53 -5
- package/dist/lib/opencode-version-core.d.ts +23 -0
- package/dist/lib/opencode-version-core.js +49 -0
- package/dist/lib/opencode-version.d.ts +4 -3
- package/dist/lib/opencode-version.js +15 -11
- package/dist/lib/opencode-zen.d.ts +12 -1
- package/dist/lib/opencode-zen.js +98 -12
- package/dist/lib/provider-add.js +5 -2
- package/dist/lib/provider-registration.d.ts +19 -9
- package/dist/lib/provider-registration.js +17 -6
- package/dist/lib/quota-command-format.js +1 -1
- package/dist/lib/quota-exhaustion-projection.d.ts +11 -0
- package/dist/lib/quota-exhaustion-projection.js +25 -0
- package/dist/lib/quota-providers-remote.d.ts +4 -1
- package/dist/lib/quota-providers-remote.js +137 -22
- package/dist/lib/quota-providers.d.ts +1 -1
- package/dist/lib/quota-providers.js +12 -35
- package/dist/lib/quota-render-data.d.ts +6 -0
- package/dist/lib/quota-render-data.js +43 -17
- package/dist/lib/quota-reset-notifications.d.ts +17 -0
- package/dist/lib/quota-reset-notifications.js +11 -2
- package/dist/lib/quota-state-codec.js +19 -1
- package/dist/lib/quota-state.d.ts +7 -1
- package/dist/lib/quota-state.js +208 -34
- package/dist/lib/quota-stats.js +21 -0
- package/dist/lib/quota-status.js +3 -51
- package/dist/lib/scoped-update.d.ts +1 -1
- package/dist/lib/synthetic.js +67 -48
- package/dist/lib/types.d.ts +49 -1
- package/dist/lib/types.js +16 -0
- package/dist/lib/xai.js +64 -24
- package/dist/plugin.d.ts +4 -3
- package/dist/plugin.js +293 -16
- package/dist/provider-logos/NOTICE.md +1 -1
- package/dist/provider-logos/OPENCODE-NOTICE.md +4 -3
- package/dist/providers/alibaba-coding-plan.js +107 -102
- package/dist/providers/alibaba-token-plan.js +17 -0
- package/dist/providers/anthropic.d.ts +12 -3
- package/dist/providers/anthropic.js +71 -219
- package/dist/providers/cache-policies.d.ts +11 -4
- package/dist/providers/cache-policies.js +19 -13
- package/dist/providers/claude-agent.d.ts +19 -0
- package/dist/providers/claude-agent.js +196 -0
- package/dist/providers/copilot.js +12 -2
- package/dist/providers/glm-coding-plan-provider.d.ts +3 -0
- package/dist/providers/glm-coding-plan-provider.js +5 -1
- package/dist/providers/google-account-format.js +2 -0
- package/dist/providers/google-agy.d.ts +6 -5
- package/dist/providers/google-agy.js +55 -17
- package/dist/providers/google-gemini-cli.js +13 -2
- package/dist/providers/kilo.js +10 -1
- package/dist/providers/kimi-code.js +13 -6
- package/dist/providers/mimo.js +9 -2
- package/dist/providers/minimax-coding-plan.js +28 -5
- package/dist/providers/nanogpt.js +4 -0
- package/dist/providers/ollama-cloud.js +3 -0
- package/dist/providers/openai.js +1 -0
- package/dist/providers/opencode-go.js +11 -1
- package/dist/providers/opencode-zen.js +32 -3
- package/dist/providers/openrouter.js +4 -0
- package/dist/providers/quota-providers.js +46 -9
- package/dist/providers/registry.js +2 -0
- package/dist/providers/result-helpers.d.ts +6 -0
- package/dist/providers/result-helpers.js +18 -2
- package/dist/rpc.d.ts +440 -4
- package/dist/rpc.js +507 -2
- package/dist/ui/assets/{index-Cs-nrywz.css → index-BcueIm3Z.css} +1 -1
- package/dist/ui/assets/index-C6qRSoh8.js +10 -0
- package/dist/ui/assets/{popover-DKRrwr_K.js → popover-4bFSvRZ7.js} +1 -1
- package/dist/ui/assets/providers/claude-agent.svg +3 -0
- package/dist/ui/index.html +2 -2
- package/package.json +15 -7
- package/dist/bin/opencode-quota-gui.d.ts.map +0 -1
- package/dist/bin/opencode-quota-gui.js.map +0 -1
- package/dist/contracts/analytics-entity.d.ts.map +0 -1
- package/dist/contracts/analytics-entity.js.map +0 -1
- package/dist/contracts/analytics-temporal.d.ts.map +0 -1
- package/dist/contracts/analytics-temporal.js.map +0 -1
- package/dist/contracts/build-identity.d.ts.map +0 -1
- package/dist/contracts/card-order.d.ts.map +0 -1
- package/dist/contracts/card-order.js.map +0 -1
- package/dist/contracts/collision-safe-key.d.ts.map +0 -1
- package/dist/contracts/collision-safe-key.js.map +0 -1
- package/dist/contracts/dashboard.d.ts.map +0 -1
- package/dist/contracts/dashboard.js.map +0 -1
- package/dist/contracts/guards.d.ts.map +0 -1
- package/dist/contracts/guards.js.map +0 -1
- package/dist/contracts/identity.d.ts.map +0 -1
- package/dist/contracts/identity.js.map +0 -1
- package/dist/contracts/openai-quota.d.ts.map +0 -1
- package/dist/contracts/openai-quota.js.map +0 -1
- package/dist/contracts/ranges.d.ts.map +0 -1
- package/dist/contracts/ranges.js.map +0 -1
- package/dist/contracts/settings.d.ts.map +0 -1
- package/dist/contracts/settings.js.map +0 -1
- package/dist/contracts/temporal.d.ts.map +0 -1
- package/dist/contracts/temporal.js.map +0 -1
- package/dist/contracts/time-zone.d.ts.map +0 -1
- package/dist/contracts/time-zone.js.map +0 -1
- package/dist/gui/aggregation.d.ts.map +0 -1
- package/dist/gui/aggregation.js.map +0 -1
- package/dist/gui/analytics-bridge.d.ts.map +0 -1
- package/dist/gui/analytics-bridge.js.map +0 -1
- package/dist/gui/analytics-engine.d.ts.map +0 -1
- package/dist/gui/analytics-engine.js.map +0 -1
- package/dist/gui/analytics-indexes.d.ts.map +0 -1
- package/dist/gui/analytics-indexes.js.map +0 -1
- package/dist/gui/analytics-model.d.ts.map +0 -1
- package/dist/gui/analytics-model.js.map +0 -1
- package/dist/gui/analytics-pricing-revision.d.ts.map +0 -1
- package/dist/gui/analytics-pricing-revision.js.map +0 -1
- package/dist/gui/analytics-protocol.d.ts.map +0 -1
- package/dist/gui/analytics-protocol.js.map +0 -1
- package/dist/gui/analytics-reader.d.ts.map +0 -1
- package/dist/gui/analytics-reader.js.map +0 -1
- package/dist/gui/analytics-service.d.ts.map +0 -1
- package/dist/gui/analytics-service.js.map +0 -1
- package/dist/gui/analytics-state.d.ts.map +0 -1
- package/dist/gui/analytics-state.js.map +0 -1
- package/dist/gui/analytics-worker-runtime.d.ts.map +0 -1
- package/dist/gui/analytics-worker-runtime.js.map +0 -1
- package/dist/gui/analytics-worker.d.ts.map +0 -1
- package/dist/gui/analytics-worker.js.map +0 -1
- package/dist/gui/config.d.ts.map +0 -1
- package/dist/gui/config.js.map +0 -1
- package/dist/gui/identity.d.ts.map +0 -1
- package/dist/gui/identity.js.map +0 -1
- package/dist/gui/lifecycle.d.ts.map +0 -1
- package/dist/gui/lifecycle.js.map +0 -1
- package/dist/gui/log.d.ts.map +0 -1
- package/dist/gui/log.js.map +0 -1
- package/dist/gui/provider-cards.d.ts.map +0 -1
- package/dist/gui/provider-cards.js.map +0 -1
- package/dist/gui/server.d.ts.map +0 -1
- package/dist/gui/server.js.map +0 -1
- package/dist/gui/settings-file-opener.d.ts.map +0 -1
- package/dist/gui/settings-file-opener.js.map +0 -1
- package/dist/gui/snapshot-service.d.ts.map +0 -1
- package/dist/gui/snapshot-service.js.map +0 -1
- package/dist/gui/sources.d.ts.map +0 -1
- package/dist/gui/sources.js.map +0 -1
- package/dist/gui/sse.d.ts.map +0 -1
- package/dist/gui/sse.js.map +0 -1
- package/dist/gui/temporal-quota-policy-data.d.ts.map +0 -1
- package/dist/gui/temporal-quota-policy-data.js.map +0 -1
- package/dist/gui/temporal-quota-policy.d.ts.map +0 -1
- package/dist/gui/temporal-quota-policy.js.map +0 -1
- package/dist/gui/temporal-status.d.ts.map +0 -1
- package/dist/gui/temporal-status.js.map +0 -1
- package/dist/gui/time-zone.d.ts.map +0 -1
- package/dist/gui/time-zone.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/lib/accounting-format.d.ts.map +0 -1
- package/dist/lib/accounting-format.js.map +0 -1
- package/dist/lib/alibaba-auth.d.ts.map +0 -1
- package/dist/lib/alibaba-auth.js.map +0 -1
- package/dist/lib/alibaba-coding-plan-local-quota.d.ts +0 -47
- package/dist/lib/alibaba-coding-plan-local-quota.d.ts.map +0 -1
- package/dist/lib/alibaba-coding-plan-local-quota.js +0 -146
- package/dist/lib/alibaba-coding-plan-local-quota.js.map +0 -1
- package/dist/lib/alibaba-token-plan.d.ts.map +0 -1
- package/dist/lib/alibaba-token-plan.js.map +0 -1
- package/dist/lib/anthropic-auth.d.ts.map +0 -1
- package/dist/lib/anthropic-auth.js.map +0 -1
- package/dist/lib/anthropic.d.ts.map +0 -1
- package/dist/lib/anthropic.js.map +0 -1
- package/dist/lib/api-key-resolver.d.ts.map +0 -1
- package/dist/lib/api-key-resolver.js.map +0 -1
- package/dist/lib/atomic-json.d.ts.map +0 -1
- package/dist/lib/atomic-json.js.map +0 -1
- package/dist/lib/chutes-config.d.ts.map +0 -1
- package/dist/lib/chutes-config.js.map +0 -1
- package/dist/lib/chutes.d.ts.map +0 -1
- package/dist/lib/chutes.js.map +0 -1
- package/dist/lib/cli-reports.d.ts.map +0 -1
- package/dist/lib/cli-reports.js.map +0 -1
- package/dist/lib/cli-show.d.ts.map +0 -1
- package/dist/lib/cli-show.js.map +0 -1
- package/dist/lib/cli-status.d.ts.map +0 -1
- package/dist/lib/cli-status.js.map +0 -1
- package/dist/lib/command-parsing.d.ts.map +0 -1
- package/dist/lib/command-parsing.js.map +0 -1
- package/dist/lib/config-file-utils.d.ts.map +0 -1
- package/dist/lib/config-file-utils.js.map +0 -1
- package/dist/lib/config-write-target.d.ts.map +0 -1
- package/dist/lib/config-write-target.js.map +0 -1
- package/dist/lib/config.d.ts.map +0 -1
- package/dist/lib/config.js.map +0 -1
- package/dist/lib/copilot.d.ts.map +0 -1
- package/dist/lib/copilot.js.map +0 -1
- package/dist/lib/cursor-detection.d.ts.map +0 -1
- package/dist/lib/cursor-detection.js.map +0 -1
- package/dist/lib/cursor-pricing.d.ts.map +0 -1
- package/dist/lib/cursor-pricing.js.map +0 -1
- package/dist/lib/cursor-usage.d.ts.map +0 -1
- package/dist/lib/cursor-usage.js.map +0 -1
- package/dist/lib/dashboard-visibility.d.ts.map +0 -1
- package/dist/lib/dashboard-visibility.js.map +0 -1
- package/dist/lib/deepseek-auth.d.ts.map +0 -1
- package/dist/lib/deepseek-auth.js.map +0 -1
- package/dist/lib/deepseek.d.ts.map +0 -1
- package/dist/lib/deepseek.js.map +0 -1
- package/dist/lib/display-sanitize.d.ts.map +0 -1
- package/dist/lib/display-sanitize.js.map +0 -1
- package/dist/lib/entries.d.ts.map +0 -1
- package/dist/lib/entries.js.map +0 -1
- package/dist/lib/env-template.d.ts.map +0 -1
- package/dist/lib/env-template.js.map +0 -1
- package/dist/lib/format-utils.d.ts.map +0 -1
- package/dist/lib/format-utils.js.map +0 -1
- package/dist/lib/format.d.ts.map +0 -1
- package/dist/lib/format.js.map +0 -1
- package/dist/lib/glm-coding-plan.d.ts.map +0 -1
- package/dist/lib/glm-coding-plan.js.map +0 -1
- package/dist/lib/google-agy-companion.d.ts.map +0 -1
- package/dist/lib/google-agy-companion.js.map +0 -1
- package/dist/lib/google-agy.d.ts.map +0 -1
- package/dist/lib/google-agy.js.map +0 -1
- package/dist/lib/google-companion-credentials.d.ts.map +0 -1
- package/dist/lib/google-companion-credentials.js.map +0 -1
- package/dist/lib/google-gemini-cli-companion.d.ts.map +0 -1
- package/dist/lib/google-gemini-cli-companion.js.map +0 -1
- package/dist/lib/google-gemini-cli.d.ts.map +0 -1
- package/dist/lib/google-gemini-cli.js.map +0 -1
- package/dist/lib/google-token-cache.d.ts.map +0 -1
- package/dist/lib/google-token-cache.js.map +0 -1
- package/dist/lib/grouped-entry-normalization.d.ts.map +0 -1
- package/dist/lib/grouped-entry-normalization.js.map +0 -1
- package/dist/lib/grouped-header-format.d.ts.map +0 -1
- package/dist/lib/grouped-header-format.js.map +0 -1
- package/dist/lib/gui-config-target.d.ts.map +0 -1
- package/dist/lib/gui-config-target.js.map +0 -1
- package/dist/lib/home-dir-display.d.ts.map +0 -1
- package/dist/lib/home-dir-display.js.map +0 -1
- package/dist/lib/http.d.ts.map +0 -1
- package/dist/lib/http.js.map +0 -1
- package/dist/lib/init-installer.d.ts.map +0 -1
- package/dist/lib/init-installer.js.map +0 -1
- package/dist/lib/jsonc.d.ts.map +0 -1
- package/dist/lib/jsonc.js.map +0 -1
- package/dist/lib/kilo-config.d.ts.map +0 -1
- package/dist/lib/kilo-config.js.map +0 -1
- package/dist/lib/kilo.d.ts.map +0 -1
- package/dist/lib/kilo.js.map +0 -1
- package/dist/lib/kimi-auth.d.ts.map +0 -1
- package/dist/lib/kimi-auth.js.map +0 -1
- package/dist/lib/kimi-endpoints.d.ts.map +0 -1
- package/dist/lib/kimi-endpoints.js.map +0 -1
- package/dist/lib/kimi.d.ts.map +0 -1
- package/dist/lib/kimi.js.map +0 -1
- package/dist/lib/maintainer-announcements.d.ts.map +0 -1
- package/dist/lib/maintainer-announcements.js.map +0 -1
- package/dist/lib/map-with-concurrency.d.ts.map +0 -1
- package/dist/lib/map-with-concurrency.js.map +0 -1
- package/dist/lib/markdown-table.d.ts.map +0 -1
- package/dist/lib/markdown-table.js.map +0 -1
- package/dist/lib/mimo-config.d.ts.map +0 -1
- package/dist/lib/mimo-config.js.map +0 -1
- package/dist/lib/mimo.d.ts.map +0 -1
- package/dist/lib/mimo.js.map +0 -1
- package/dist/lib/minimax-auth.d.ts.map +0 -1
- package/dist/lib/minimax-auth.js.map +0 -1
- package/dist/lib/minimax-endpoints.d.ts.map +0 -1
- package/dist/lib/minimax-endpoints.js.map +0 -1
- package/dist/lib/modelsdev-pricing.d.ts.map +0 -1
- package/dist/lib/modelsdev-pricing.js.map +0 -1
- package/dist/lib/modelsdev-temporal.d.ts.map +0 -1
- package/dist/lib/modelsdev-temporal.js.map +0 -1
- package/dist/lib/nanogpt-config.d.ts.map +0 -1
- package/dist/lib/nanogpt-config.js.map +0 -1
- package/dist/lib/nanogpt.d.ts.map +0 -1
- package/dist/lib/nanogpt.js.map +0 -1
- package/dist/lib/ollama-cloud-config.d.ts.map +0 -1
- package/dist/lib/ollama-cloud-config.js.map +0 -1
- package/dist/lib/ollama-cloud.d.ts.map +0 -1
- package/dist/lib/ollama-cloud.js.map +0 -1
- package/dist/lib/openai.d.ts.map +0 -1
- package/dist/lib/openai.js.map +0 -1
- package/dist/lib/opencode-auth-sqlite.d.ts.map +0 -1
- package/dist/lib/opencode-auth-sqlite.js.map +0 -1
- package/dist/lib/opencode-auth.d.ts.map +0 -1
- package/dist/lib/opencode-auth.js.map +0 -1
- package/dist/lib/opencode-config-editor.d.ts.map +0 -1
- package/dist/lib/opencode-config-editor.js.map +0 -1
- package/dist/lib/opencode-config-providers.d.ts.map +0 -1
- package/dist/lib/opencode-config-providers.js.map +0 -1
- package/dist/lib/opencode-config-read.d.ts.map +0 -1
- package/dist/lib/opencode-config-read.js.map +0 -1
- package/dist/lib/opencode-console-auth.d.ts.map +0 -1
- package/dist/lib/opencode-console-auth.js.map +0 -1
- package/dist/lib/opencode-db-path.d.ts.map +0 -1
- package/dist/lib/opencode-db-path.js.map +0 -1
- package/dist/lib/opencode-go-auth.d.ts.map +0 -1
- package/dist/lib/opencode-go-auth.js.map +0 -1
- package/dist/lib/opencode-go.d.ts.map +0 -1
- package/dist/lib/opencode-go.js.map +0 -1
- package/dist/lib/opencode-runtime-paths.d.ts.map +0 -1
- package/dist/lib/opencode-runtime-paths.js.map +0 -1
- package/dist/lib/opencode-sqlite.d.ts.map +0 -1
- package/dist/lib/opencode-sqlite.js.map +0 -1
- package/dist/lib/opencode-storage.d.ts.map +0 -1
- package/dist/lib/opencode-storage.js.map +0 -1
- package/dist/lib/opencode-version.d.ts.map +0 -1
- package/dist/lib/opencode-version.js.map +0 -1
- package/dist/lib/opencode-zen.d.ts.map +0 -1
- package/dist/lib/opencode-zen.js.map +0 -1
- package/dist/lib/openrouter.d.ts.map +0 -1
- package/dist/lib/openrouter.js.map +0 -1
- package/dist/lib/private-state-paths.d.ts.map +0 -1
- package/dist/lib/private-state-paths.js.map +0 -1
- package/dist/lib/provider-add-command.d.ts.map +0 -1
- package/dist/lib/provider-add-command.js.map +0 -1
- package/dist/lib/provider-add-json-v1-questionnaire.d.ts.map +0 -1
- package/dist/lib/provider-add-json-v1-questionnaire.js.map +0 -1
- package/dist/lib/provider-add.d.ts.map +0 -1
- package/dist/lib/provider-add.js.map +0 -1
- package/dist/lib/provider-availability.d.ts.map +0 -1
- package/dist/lib/provider-availability.js.map +0 -1
- package/dist/lib/provider-metadata.d.ts.map +0 -1
- package/dist/lib/provider-metadata.js.map +0 -1
- package/dist/lib/provider-model-matching.d.ts.map +0 -1
- package/dist/lib/provider-model-matching.js.map +0 -1
- package/dist/lib/provider-registration.d.ts.map +0 -1
- package/dist/lib/provider-registration.js.map +0 -1
- package/dist/lib/quota-accounting-projection.d.ts.map +0 -1
- package/dist/lib/quota-accounting-projection.js.map +0 -1
- package/dist/lib/quota-columns.d.ts.map +0 -1
- package/dist/lib/quota-columns.js.map +0 -1
- package/dist/lib/quota-command-format.d.ts.map +0 -1
- package/dist/lib/quota-command-format.js.map +0 -1
- package/dist/lib/quota-dialog-command-specs.d.ts.map +0 -1
- package/dist/lib/quota-dialog-command-specs.js.map +0 -1
- package/dist/lib/quota-dialog-commands.d.ts.map +0 -1
- package/dist/lib/quota-dialog-commands.js.map +0 -1
- package/dist/lib/quota-entry-display.d.ts.map +0 -1
- package/dist/lib/quota-entry-display.js.map +0 -1
- package/dist/lib/quota-exhaustion-projection.d.ts.map +0 -1
- package/dist/lib/quota-exhaustion-projection.js.map +0 -1
- package/dist/lib/quota-export-types.d.ts.map +0 -1
- package/dist/lib/quota-export-types.js.map +0 -1
- package/dist/lib/quota-export.d.ts.map +0 -1
- package/dist/lib/quota-export.js.map +0 -1
- package/dist/lib/quota-format-style.d.ts.map +0 -1
- package/dist/lib/quota-format-style.js.map +0 -1
- package/dist/lib/quota-providers-local.d.ts.map +0 -1
- package/dist/lib/quota-providers-local.js.map +0 -1
- package/dist/lib/quota-providers-remote.d.ts.map +0 -1
- package/dist/lib/quota-providers-remote.js.map +0 -1
- package/dist/lib/quota-providers.d.ts.map +0 -1
- package/dist/lib/quota-providers.js.map +0 -1
- package/dist/lib/quota-render-data.d.ts.map +0 -1
- package/dist/lib/quota-render-data.js.map +0 -1
- package/dist/lib/quota-report-message.d.ts.map +0 -1
- package/dist/lib/quota-report-message.js.map +0 -1
- package/dist/lib/quota-reset-notifications.d.ts.map +0 -1
- package/dist/lib/quota-reset-notifications.js.map +0 -1
- package/dist/lib/quota-retry-wait.d.ts.map +0 -1
- package/dist/lib/quota-retry-wait.js.map +0 -1
- package/dist/lib/quota-runtime-context.d.ts.map +0 -1
- package/dist/lib/quota-runtime-context.js.map +0 -1
- package/dist/lib/quota-state-codec.d.ts.map +0 -1
- package/dist/lib/quota-state-codec.js.map +0 -1
- package/dist/lib/quota-state.d.ts.map +0 -1
- package/dist/lib/quota-state.js.map +0 -1
- package/dist/lib/quota-stats-format.d.ts.map +0 -1
- package/dist/lib/quota-stats-format.js.map +0 -1
- package/dist/lib/quota-stats.d.ts.map +0 -1
- package/dist/lib/quota-stats.js.map +0 -1
- package/dist/lib/quota-status.d.ts.map +0 -1
- package/dist/lib/quota-status.js.map +0 -1
- package/dist/lib/quota-surface-data.d.ts.map +0 -1
- package/dist/lib/quota-surface-data.js.map +0 -1
- package/dist/lib/quota-telemetry.d.ts.map +0 -1
- package/dist/lib/quota-telemetry.js.map +0 -1
- package/dist/lib/report-document.d.ts.map +0 -1
- package/dist/lib/report-document.js.map +0 -1
- package/dist/lib/resolved-auth-identity.d.ts.map +0 -1
- package/dist/lib/resolved-auth-identity.js.map +0 -1
- package/dist/lib/runtime-provider-ids.d.ts.map +0 -1
- package/dist/lib/runtime-provider-ids.js.map +0 -1
- package/dist/lib/scoped-query-chunks.d.ts.map +0 -1
- package/dist/lib/scoped-query-chunks.js.map +0 -1
- package/dist/lib/scoped-update-migration.d.ts.map +0 -1
- package/dist/lib/scoped-update-migration.js.map +0 -1
- package/dist/lib/scoped-update.d.ts.map +0 -1
- package/dist/lib/scoped-update.js.map +0 -1
- package/dist/lib/session-tokens-format.d.ts.map +0 -1
- package/dist/lib/session-tokens-format.js.map +0 -1
- package/dist/lib/session-tokens.d.ts.map +0 -1
- package/dist/lib/session-tokens.js.map +0 -1
- package/dist/lib/synthetic-config.d.ts.map +0 -1
- package/dist/lib/synthetic-config.js.map +0 -1
- package/dist/lib/synthetic.d.ts.map +0 -1
- package/dist/lib/synthetic.js.map +0 -1
- package/dist/lib/toast-format-grouped.d.ts.map +0 -1
- package/dist/lib/toast-format-grouped.js.map +0 -1
- package/dist/lib/token-buckets.d.ts.map +0 -1
- package/dist/lib/token-buckets.js.map +0 -1
- package/dist/lib/token-cost.d.ts.map +0 -1
- package/dist/lib/token-cost.js.map +0 -1
- package/dist/lib/tui-compact-format.d.ts.map +0 -1
- package/dist/lib/tui-compact-format.js.map +0 -1
- package/dist/lib/tui-panel-state.d.ts.map +0 -1
- package/dist/lib/tui-panel-state.js.map +0 -1
- package/dist/lib/tui-prompt-bar-format.d.ts.map +0 -1
- package/dist/lib/tui-prompt-bar-format.js.map +0 -1
- package/dist/lib/tui-sidebar-format.d.ts.map +0 -1
- package/dist/lib/tui-sidebar-format.js.map +0 -1
- package/dist/lib/types.d.ts.map +0 -1
- package/dist/lib/types.js.map +0 -1
- package/dist/lib/usage-ownership.d.ts.map +0 -1
- package/dist/lib/usage-ownership.js.map +0 -1
- package/dist/lib/version.d.ts.map +0 -1
- package/dist/lib/version.js.map +0 -1
- package/dist/lib/xai.d.ts.map +0 -1
- package/dist/lib/xai.js.map +0 -1
- package/dist/lib/zai-auth.d.ts.map +0 -1
- package/dist/lib/zai-auth.js.map +0 -1
- package/dist/lib/zai.d.ts.map +0 -1
- package/dist/lib/zai.js.map +0 -1
- package/dist/lib/zhipu-auth.d.ts.map +0 -1
- package/dist/lib/zhipu-auth.js.map +0 -1
- package/dist/lib/zhipu.d.ts.map +0 -1
- package/dist/lib/zhipu.js.map +0 -1
- package/dist/plugin.d.ts.map +0 -1
- package/dist/plugin.js.map +0 -1
- package/dist/providers/accounting-decimal.d.ts.map +0 -1
- package/dist/providers/accounting-decimal.js.map +0 -1
- package/dist/providers/alibaba-coding-plan.d.ts.map +0 -1
- package/dist/providers/alibaba-coding-plan.js.map +0 -1
- package/dist/providers/alibaba-token-plan.d.ts.map +0 -1
- package/dist/providers/alibaba-token-plan.js.map +0 -1
- package/dist/providers/anthropic.d.ts.map +0 -1
- package/dist/providers/anthropic.js.map +0 -1
- package/dist/providers/cache-policies.d.ts.map +0 -1
- package/dist/providers/cache-policies.js.map +0 -1
- package/dist/providers/chutes.d.ts.map +0 -1
- package/dist/providers/chutes.js.map +0 -1
- package/dist/providers/copilot.d.ts.map +0 -1
- package/dist/providers/copilot.js.map +0 -1
- package/dist/providers/cursor.d.ts.map +0 -1
- package/dist/providers/cursor.js.map +0 -1
- package/dist/providers/deepseek.d.ts.map +0 -1
- package/dist/providers/deepseek.js.map +0 -1
- package/dist/providers/glm-coding-plan-provider.d.ts.map +0 -1
- package/dist/providers/glm-coding-plan-provider.js.map +0 -1
- package/dist/providers/google-account-format.d.ts.map +0 -1
- package/dist/providers/google-account-format.js.map +0 -1
- package/dist/providers/google-agy.d.ts.map +0 -1
- package/dist/providers/google-agy.js.map +0 -1
- package/dist/providers/google-gemini-cli.d.ts.map +0 -1
- package/dist/providers/google-gemini-cli.js.map +0 -1
- package/dist/providers/kilo.d.ts.map +0 -1
- package/dist/providers/kilo.js.map +0 -1
- package/dist/providers/kimi-code.d.ts.map +0 -1
- package/dist/providers/kimi-code.js.map +0 -1
- package/dist/providers/mimo.d.ts.map +0 -1
- package/dist/providers/mimo.js.map +0 -1
- package/dist/providers/minimax-coding-plan.d.ts.map +0 -1
- package/dist/providers/minimax-coding-plan.js.map +0 -1
- package/dist/providers/nanogpt.d.ts.map +0 -1
- package/dist/providers/nanogpt.js.map +0 -1
- package/dist/providers/ollama-cloud.d.ts.map +0 -1
- package/dist/providers/ollama-cloud.js.map +0 -1
- package/dist/providers/openai.d.ts.map +0 -1
- package/dist/providers/openai.js.map +0 -1
- package/dist/providers/opencode-go.d.ts.map +0 -1
- package/dist/providers/opencode-go.js.map +0 -1
- package/dist/providers/opencode-zen.d.ts.map +0 -1
- package/dist/providers/opencode-zen.js.map +0 -1
- package/dist/providers/openrouter.d.ts.map +0 -1
- package/dist/providers/openrouter.js.map +0 -1
- package/dist/providers/quota-providers.d.ts.map +0 -1
- package/dist/providers/quota-providers.js.map +0 -1
- package/dist/providers/registry.d.ts.map +0 -1
- package/dist/providers/registry.js.map +0 -1
- package/dist/providers/result-helpers.d.ts.map +0 -1
- package/dist/providers/result-helpers.js.map +0 -1
- package/dist/providers/synthetic.d.ts.map +0 -1
- package/dist/providers/synthetic.js.map +0 -1
- package/dist/providers/xai.d.ts.map +0 -1
- package/dist/providers/xai.js.map +0 -1
- package/dist/providers/zai.d.ts.map +0 -1
- package/dist/providers/zai.js.map +0 -1
- package/dist/providers/zhipu.d.ts.map +0 -1
- package/dist/providers/zhipu.js.map +0 -1
- package/dist/rpc.d.ts.map +0 -1
- package/dist/rpc.js.map +0 -1
- package/dist/ui/assets/index-D9lFKhSN.js +0 -9
|
@@ -274,7 +274,13 @@ export const copilotProvider = {
|
|
|
274
274
|
if (!result)
|
|
275
275
|
continue;
|
|
276
276
|
if (!result.success) {
|
|
277
|
-
errors.push({
|
|
277
|
+
errors.push({
|
|
278
|
+
label: group,
|
|
279
|
+
message: result.error,
|
|
280
|
+
sourceId: row.id,
|
|
281
|
+
failureCategory: result.failureCategory,
|
|
282
|
+
...(result.retryAtMs !== undefined ? { retryAtMs: result.retryAtMs } : {}),
|
|
283
|
+
});
|
|
278
284
|
continue;
|
|
279
285
|
}
|
|
280
286
|
const resultEntries = result.mode === "user_plan"
|
|
@@ -292,6 +298,7 @@ export const copilotProvider = {
|
|
|
292
298
|
label: group,
|
|
293
299
|
message,
|
|
294
300
|
sourceId: row.id,
|
|
301
|
+
failureCategory: "provider_api",
|
|
295
302
|
})));
|
|
296
303
|
}
|
|
297
304
|
return withStatusDetails({ ...attemptedResult(entries, errors), accounts }, statusDetails);
|
|
@@ -301,7 +308,10 @@ export const copilotProvider = {
|
|
|
301
308
|
if (!result)
|
|
302
309
|
return withStatusDetails(notAttemptedResult(), statusDetails);
|
|
303
310
|
if (!result.success) {
|
|
304
|
-
return withStatusDetails(attemptedErrorResult("Copilot", result.error
|
|
311
|
+
return withStatusDetails(attemptedErrorResult("Copilot", result.error, {
|
|
312
|
+
failureCategory: result.failureCategory,
|
|
313
|
+
...(result.retryAtMs !== undefined ? { retryAtMs: result.retryAtMs } : {}),
|
|
314
|
+
}), statusDetails);
|
|
305
315
|
}
|
|
306
316
|
const entries = result.mode === "user_plan"
|
|
307
317
|
? planEntries(result)
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ProviderFailureCategory } from "../contracts/provider-failure.js";
|
|
1
2
|
import type { QuotaProvider } from "../lib/entries.js";
|
|
2
3
|
import type { CanonicalQuotaProviderId } from "../lib/provider-metadata.js";
|
|
3
4
|
import type { AuthData } from "../lib/types.js";
|
|
@@ -49,6 +50,8 @@ export declare function createGlmCodingPlanProvider(params: {
|
|
|
49
50
|
}) => Promise<GlmQuotaResult | {
|
|
50
51
|
success: false;
|
|
51
52
|
error: string;
|
|
53
|
+
failureCategory?: ProviderFailureCategory;
|
|
54
|
+
retryAtMs?: number;
|
|
52
55
|
} | null>;
|
|
53
56
|
matchesCurrentModel: (model: string) => boolean;
|
|
54
57
|
}): QuotaProvider;
|
|
@@ -67,7 +67,11 @@ export function createGlmCodingPlanProvider(params) {
|
|
|
67
67
|
const results = await Promise.all(credentials.map(async ({ row, auth }) => ({
|
|
68
68
|
row,
|
|
69
69
|
result: auth.state === "invalid"
|
|
70
|
-
? {
|
|
70
|
+
? {
|
|
71
|
+
success: false,
|
|
72
|
+
error: auth.error,
|
|
73
|
+
failureCategory: "credentials",
|
|
74
|
+
}
|
|
71
75
|
: await params.queryQuota({
|
|
72
76
|
requestTimeoutMs: ctx.config?.requestTimeoutMs,
|
|
73
77
|
apiKey: auth.apiKey,
|
|
@@ -47,6 +47,8 @@ export function formatGoogleAccountErrors(errors, style, labels) {
|
|
|
47
47
|
return errors.map((error) => ({
|
|
48
48
|
label: (error.email && labels?.get(error.email)) ?? formatGoogleAccountLabel(error.email, style),
|
|
49
49
|
message: error.error,
|
|
50
|
+
...(error.failureCategory !== undefined ? { failureCategory: error.failureCategory } : {}),
|
|
51
|
+
...(error.retryAtMs !== undefined ? { retryAtMs: error.retryAtMs } : {}),
|
|
50
52
|
}));
|
|
51
53
|
}
|
|
52
54
|
//# sourceMappingURL=google-account-format.js.map
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import type { QuotaProvider, QuotaProviderAccount } from "../lib/entries.js";
|
|
2
|
-
import type { GoogleAgyQuotaBucket } from "../lib/types.js";
|
|
2
|
+
import type { GoogleAccountError, GoogleAgyQuotaBucket } from "../lib/types.js";
|
|
3
3
|
/** Stable explicit row key for one AGY bucket row (family + window; never the label). */
|
|
4
4
|
export declare function agyBucketRowKey(bucket: Pick<GoogleAgyQuotaBucket, "family" | "window">): string;
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
6
|
+
* Legacy companion accounts have no `CredentialRow`. `sourceId` keeps the
|
|
7
|
+
* historical `account-N` value for reset/cache compatibility; email-backed
|
|
8
|
+
* descriptors use a server-only digest identity, while missing emails retain
|
|
9
|
+
* the existing source-id identity fallback.
|
|
10
10
|
*/
|
|
11
11
|
export declare function buildAgyLegacyAccounts(params: {
|
|
12
12
|
buckets: readonly GoogleAgyQuotaBucket[];
|
|
13
|
+
errors?: readonly GoogleAccountError[];
|
|
13
14
|
accountLabels: ReadonlyMap<string, string>;
|
|
14
15
|
}): QuotaProviderAccount[];
|
|
15
16
|
export declare function formatAgyCredentialGroup(credentialName: string, familyLabel: string): string;
|
|
@@ -72,25 +72,43 @@ export function agyBucketRowKey(bucket) {
|
|
|
72
72
|
return `named:${bucket.family} ${bucket.window}`;
|
|
73
73
|
}
|
|
74
74
|
/**
|
|
75
|
-
*
|
|
76
|
-
*
|
|
77
|
-
*
|
|
78
|
-
*
|
|
75
|
+
* Legacy companion accounts have no `CredentialRow`. `sourceId` keeps the
|
|
76
|
+
* historical `account-N` value for reset/cache compatibility; email-backed
|
|
77
|
+
* descriptors use a server-only digest identity, while missing emails retain
|
|
78
|
+
* the existing source-id identity fallback.
|
|
79
79
|
*/
|
|
80
80
|
export function buildAgyLegacyAccounts(params) {
|
|
81
81
|
const accounts = new Map();
|
|
82
82
|
for (const bucket of [...params.buckets].sort(compareBuckets)) {
|
|
83
|
-
|
|
84
|
-
|
|
83
|
+
if (!accounts.has(bucket.accountIndex))
|
|
84
|
+
accounts.set(bucket.accountIndex, bucket);
|
|
85
|
+
}
|
|
86
|
+
for (const error of params.errors ?? []) {
|
|
87
|
+
const accountIndex = error.accountIndex;
|
|
88
|
+
if (accountIndex === undefined ||
|
|
89
|
+
!Number.isInteger(accountIndex) ||
|
|
90
|
+
accountIndex < 0 ||
|
|
91
|
+
accounts.has(accountIndex)) {
|
|
85
92
|
continue;
|
|
86
|
-
|
|
87
|
-
accounts.set(
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
93
|
+
}
|
|
94
|
+
accounts.set(accountIndex, {
|
|
95
|
+
...(AGY_AUTH_KEYS.some((sourceKey) => sourceKey === error.email)
|
|
96
|
+
? {}
|
|
97
|
+
: { accountEmail: error.email }),
|
|
98
|
+
accountIndex,
|
|
91
99
|
});
|
|
92
100
|
}
|
|
93
|
-
return [...accounts.values()]
|
|
101
|
+
return [...accounts.values()]
|
|
102
|
+
.sort((left, right) => left.accountIndex - right.accountIndex)
|
|
103
|
+
.map((account) => {
|
|
104
|
+
const sourceId = `account-${account.accountIndex + 1}`;
|
|
105
|
+
const email = account.accountEmail;
|
|
106
|
+
return {
|
|
107
|
+
sourceId,
|
|
108
|
+
...(email ? { identityKey: deriveStableAccountIdentityKey(email) } : {}),
|
|
109
|
+
label: formatAgyAccountLabel(account, params.accountLabels),
|
|
110
|
+
};
|
|
111
|
+
});
|
|
94
112
|
}
|
|
95
113
|
export function formatAgyCredentialGroup(credentialName, familyLabel) {
|
|
96
114
|
const trimmed = credentialName.trim();
|
|
@@ -168,7 +186,12 @@ export const googleAgyProvider = {
|
|
|
168
186
|
if (!result)
|
|
169
187
|
continue;
|
|
170
188
|
if (!result.success) {
|
|
171
|
-
errors.push({
|
|
189
|
+
errors.push({
|
|
190
|
+
label: credentialName,
|
|
191
|
+
message: result.error,
|
|
192
|
+
sourceId: row.id,
|
|
193
|
+
failureCategory: result.failureCategory,
|
|
194
|
+
});
|
|
172
195
|
continue;
|
|
173
196
|
}
|
|
174
197
|
for (const bucket of [...result.buckets].sort(compareBuckets)) {
|
|
@@ -197,6 +220,10 @@ export const googleAgyProvider = {
|
|
|
197
220
|
label: credentialName,
|
|
198
221
|
message: error.error,
|
|
199
222
|
sourceId: row.id,
|
|
223
|
+
...(error.failureCategory !== undefined
|
|
224
|
+
? { failureCategory: error.failureCategory }
|
|
225
|
+
: {}),
|
|
226
|
+
...(error.retryAtMs !== undefined ? { retryAtMs: error.retryAtMs } : {}),
|
|
200
227
|
})));
|
|
201
228
|
}
|
|
202
229
|
return withStatusDetails({ ...attemptedResult(entries, errors, { singleWindowShowRight: true }), accounts }, statusDetails);
|
|
@@ -210,14 +237,20 @@ export const googleAgyProvider = {
|
|
|
210
237
|
return withStatusDetails(notAttemptedResult(), statusDetails);
|
|
211
238
|
}
|
|
212
239
|
if (!result.success) {
|
|
213
|
-
return withStatusDetails(attemptedErrorResult("Google AGY", result.error
|
|
240
|
+
return withStatusDetails(attemptedErrorResult("Google AGY", result.error, {
|
|
241
|
+
failureCategory: result.failureCategory,
|
|
242
|
+
}), statusDetails);
|
|
214
243
|
}
|
|
215
244
|
const sortedBuckets = [...result.buckets].sort(compareBuckets);
|
|
216
245
|
const accountLabels = createGoogleAccountLabelMap([
|
|
217
246
|
...sortedBuckets.map((bucket) => bucket.accountEmail),
|
|
218
247
|
...(result.errors ?? []).map((error) => error.email),
|
|
219
248
|
], "domainHint");
|
|
220
|
-
const legacyAccounts = buildAgyLegacyAccounts({
|
|
249
|
+
const legacyAccounts = buildAgyLegacyAccounts({
|
|
250
|
+
buckets: sortedBuckets,
|
|
251
|
+
errors: result.errors,
|
|
252
|
+
accountLabels,
|
|
253
|
+
});
|
|
221
254
|
const sourceIdByEmail = new Map(sortedBuckets.flatMap((bucket) => bucket.accountEmail
|
|
222
255
|
? [[bucket.accountEmail, `account-${bucket.accountIndex + 1}`]]
|
|
223
256
|
: []));
|
|
@@ -243,8 +276,13 @@ export const googleAgyProvider = {
|
|
|
243
276
|
};
|
|
244
277
|
});
|
|
245
278
|
const errors = formatGoogleAccountErrors(result.errors, "domainHint", accountLabels).map((error, index) => {
|
|
246
|
-
const
|
|
247
|
-
|
|
279
|
+
const failed = result.errors?.[index];
|
|
280
|
+
// Same `account-N` ids the entries use, so a failed account keeps its previous rows.
|
|
281
|
+
const sourceId = failed?.accountIndex !== undefined
|
|
282
|
+
? `account-${failed.accountIndex + 1}`
|
|
283
|
+
: failed?.email
|
|
284
|
+
? sourceIdByEmail.get(failed.email)
|
|
285
|
+
: undefined;
|
|
248
286
|
return sourceId ? { ...error, sourceId } : error;
|
|
249
287
|
});
|
|
250
288
|
return withStatusDetails({
|
|
@@ -112,7 +112,12 @@ export const googleGeminiCliProvider = {
|
|
|
112
112
|
if (!result)
|
|
113
113
|
continue;
|
|
114
114
|
if (!result.success) {
|
|
115
|
-
errors.push({
|
|
115
|
+
errors.push({
|
|
116
|
+
label: group,
|
|
117
|
+
message: result.error,
|
|
118
|
+
sourceId: row.id,
|
|
119
|
+
failureCategory: result.failureCategory,
|
|
120
|
+
});
|
|
116
121
|
continue;
|
|
117
122
|
}
|
|
118
123
|
for (const bucket of result.buckets) {
|
|
@@ -150,6 +155,10 @@ export const googleGeminiCliProvider = {
|
|
|
150
155
|
label: group,
|
|
151
156
|
message: error.error,
|
|
152
157
|
sourceId: row.id,
|
|
158
|
+
...(error.failureCategory !== undefined
|
|
159
|
+
? { failureCategory: error.failureCategory }
|
|
160
|
+
: {}),
|
|
161
|
+
...(error.retryAtMs !== undefined ? { retryAtMs: error.retryAtMs } : {}),
|
|
153
162
|
})));
|
|
154
163
|
}
|
|
155
164
|
return withStatusDetails({
|
|
@@ -169,7 +178,9 @@ export const googleGeminiCliProvider = {
|
|
|
169
178
|
return withStatusDetails(notAttemptedResult(), statusDetails);
|
|
170
179
|
}
|
|
171
180
|
if (!result.success) {
|
|
172
|
-
return withStatusDetails(attemptedErrorResult("Gemini CLI", result.error
|
|
181
|
+
return withStatusDetails(attemptedErrorResult("Gemini CLI", result.error, {
|
|
182
|
+
failureCategory: result.failureCategory,
|
|
183
|
+
}), statusDetails);
|
|
173
184
|
}
|
|
174
185
|
const accountLabels = createGoogleAccountLabelMap([
|
|
175
186
|
...result.buckets.map((bucket) => bucket.accountEmail),
|
package/dist/providers/kilo.js
CHANGED
|
@@ -130,7 +130,16 @@ export const kiloProvider = {
|
|
|
130
130
|
return withStatusDetails({
|
|
131
131
|
attempted: true,
|
|
132
132
|
entries: [],
|
|
133
|
-
errors: [
|
|
133
|
+
errors: [
|
|
134
|
+
{
|
|
135
|
+
label: "Kilo Gateway",
|
|
136
|
+
message: stateResult.error,
|
|
137
|
+
...(stateResult.retryAtMs !== undefined ? { retryAtMs: stateResult.retryAtMs } : {}),
|
|
138
|
+
...(stateResult.failureCategory !== undefined
|
|
139
|
+
? { failureCategory: stateResult.failureCategory }
|
|
140
|
+
: {}),
|
|
141
|
+
},
|
|
142
|
+
],
|
|
134
143
|
}, keyStatusDetails);
|
|
135
144
|
}
|
|
136
145
|
const providerResult = stateResult.mode === "kilo_pass"
|
|
@@ -62,6 +62,7 @@ function createKimiProvider(spec) {
|
|
|
62
62
|
label: displayNamesByRowId.get(row.id) ?? spec.label,
|
|
63
63
|
message: rowAuth.error,
|
|
64
64
|
sourceId: row.id,
|
|
65
|
+
failureCategory: "credentials",
|
|
65
66
|
});
|
|
66
67
|
}
|
|
67
68
|
return rowAuth.state === "configured" ? [{ row, auth: rowAuth }] : [];
|
|
@@ -86,7 +87,13 @@ function createKimiProvider(spec) {
|
|
|
86
87
|
for (const { row, result } of results) {
|
|
87
88
|
const group = displayNamesByRowId.get(row.id) ?? spec.label;
|
|
88
89
|
if (!result.success) {
|
|
89
|
-
errors.push({
|
|
90
|
+
errors.push({
|
|
91
|
+
label: group,
|
|
92
|
+
message: result.error,
|
|
93
|
+
sourceId: row.id,
|
|
94
|
+
failureCategory: result.failureCategory,
|
|
95
|
+
...(result.retryAtMs !== undefined ? { retryAtMs: result.retryAtMs } : {}),
|
|
96
|
+
});
|
|
90
97
|
continue;
|
|
91
98
|
}
|
|
92
99
|
entries.push(...result.windows.map((window) => ({
|
|
@@ -110,7 +117,7 @@ function createKimiProvider(spec) {
|
|
|
110
117
|
}
|
|
111
118
|
}
|
|
112
119
|
if (auth.state === "invalid") {
|
|
113
|
-
return withStatusDetails(attemptedErrorResult(spec.label, auth.error), authDetails);
|
|
120
|
+
return withStatusDetails(attemptedErrorResult(spec.label, auth.error, { failureCategory: "credentials" }), authDetails);
|
|
114
121
|
}
|
|
115
122
|
const result = await queryKimiQuota({
|
|
116
123
|
apiKey: auth.apiKey,
|
|
@@ -119,10 +126,10 @@ function createKimiProvider(spec) {
|
|
|
119
126
|
requestTimeoutMs: ctx.config?.requestTimeoutMs,
|
|
120
127
|
});
|
|
121
128
|
if (!result.success) {
|
|
122
|
-
return withStatusDetails(attemptedErrorResult(spec.label, result.error
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
]);
|
|
129
|
+
return withStatusDetails(attemptedErrorResult(spec.label, result.error, {
|
|
130
|
+
failureCategory: result.failureCategory,
|
|
131
|
+
...(result.retryAtMs !== undefined ? { retryAtMs: result.retryAtMs } : {}),
|
|
132
|
+
}), [...authDetails, { key: "live_fetch_error", value: result.error }]);
|
|
126
133
|
}
|
|
127
134
|
const entries = result.windows.map((window) => ({
|
|
128
135
|
accounting: {
|
package/dist/providers/mimo.js
CHANGED
|
@@ -70,7 +70,12 @@ function endpointErrors(result) {
|
|
|
70
70
|
const errors = [];
|
|
71
71
|
for (const endpoint of [result.usage, result.detail, result.balance]) {
|
|
72
72
|
if (endpoint.state === "error") {
|
|
73
|
-
errors.push({
|
|
73
|
+
errors.push({
|
|
74
|
+
label: MIMO_LABEL,
|
|
75
|
+
message: endpoint.error,
|
|
76
|
+
failureCategory: endpoint.failureCategory,
|
|
77
|
+
...(endpoint.retryAtMs !== undefined ? { retryAtMs: endpoint.retryAtMs } : {}),
|
|
78
|
+
});
|
|
74
79
|
}
|
|
75
80
|
}
|
|
76
81
|
return errors;
|
|
@@ -101,7 +106,9 @@ export const xiaomiProvider = {
|
|
|
101
106
|
if (config.state === "none")
|
|
102
107
|
return withStatusDetails(notAttemptedResult(), statusDetails);
|
|
103
108
|
if (config.state === "invalid") {
|
|
104
|
-
return withStatusDetails(attemptedErrorResult(MIMO_LABEL, `Invalid config (${config.source}): ${config.error}
|
|
109
|
+
return withStatusDetails(attemptedErrorResult(MIMO_LABEL, `Invalid config (${config.source}): ${config.error}`, {
|
|
110
|
+
failureCategory: "local",
|
|
111
|
+
}), statusDetails);
|
|
105
112
|
}
|
|
106
113
|
const result = await queryMimoDashboard(config.config.cookie, {
|
|
107
114
|
requestTimeoutMs: ctx.config?.requestTimeoutMsConfigured
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
* the structured accounting core: `basis` (used/limit/remaining facts with
|
|
6
6
|
* authority), `semantic` (metric + prominence), and `accounting` metadata.
|
|
7
7
|
*/
|
|
8
|
+
import { providerFailureCategoryForHttpStatus } from "../contracts/provider-failure.js";
|
|
8
9
|
import { sanitizeDisplayText } from "../lib/display-sanitize.js";
|
|
9
10
|
import { fetchWithTimeout } from "../lib/http.js";
|
|
10
11
|
import { DEFAULT_MINIMAX_AUTH_CACHE_MAX_AGE_MS, getMiniMaxAuthDiagnostics, getMiniMaxChinaAuthDiagnostics, resolveMiniMaxAuth, resolveMiniMaxAuthCached, resolveMiniMaxChinaAuth, resolveMiniMaxChinaAuthCached, } from "../lib/minimax-auth.js";
|
|
@@ -168,6 +169,14 @@ function selectCanonicalMiniMaxModel(models, endpointId) {
|
|
|
168
169
|
return left.model_name.localeCompare(right.model_name);
|
|
169
170
|
})[0] ?? null);
|
|
170
171
|
}
|
|
172
|
+
/**
|
|
173
|
+
* MiniMax `base_resp.status_code` is an application code, not an HTTP status.
|
|
174
|
+
* Only the documented authentication code maps to credentials; every other
|
|
175
|
+
* application code stays unclassified, and the message text never classifies.
|
|
176
|
+
*/
|
|
177
|
+
function minimaxApplicationFailureCategory(statusCode) {
|
|
178
|
+
return statusCode === 1004 ? "credentials" : undefined;
|
|
179
|
+
}
|
|
171
180
|
/**
|
|
172
181
|
* Fetch MiniMax Token Plan quota from the API.
|
|
173
182
|
*
|
|
@@ -180,6 +189,7 @@ function selectCanonicalMiniMaxModel(models, endpointId) {
|
|
|
180
189
|
export async function queryMiniMaxQuota(apiKey, options = {}) {
|
|
181
190
|
const endpointId = options.endpoint ?? "international";
|
|
182
191
|
const endpoint = getMiniMaxQuotaEndpoint(endpointId);
|
|
192
|
+
let responseStatus;
|
|
183
193
|
try {
|
|
184
194
|
return await fetchWithTimeout(endpoint.quotaUrl, {
|
|
185
195
|
request: {
|
|
@@ -191,13 +201,17 @@ export async function queryMiniMaxQuota(apiKey, options = {}) {
|
|
|
191
201
|
},
|
|
192
202
|
timeoutMs: options.requestTimeoutMs,
|
|
193
203
|
consume: async (response) => {
|
|
204
|
+
responseStatus = response.status;
|
|
194
205
|
if (!response.ok) {
|
|
195
206
|
const text = await response.text();
|
|
196
|
-
return attemptedErrorResult(options.label ?? MINIMAX_PROVIDER_LABEL, `MiniMax API error ${response.status}: ${sanitizeMiniMaxMessage(text, 120)}
|
|
207
|
+
return attemptedErrorResult(options.label ?? MINIMAX_PROVIDER_LABEL, `MiniMax API error ${response.status}: ${sanitizeMiniMaxMessage(text, 120)}`, { failureCategory: providerFailureCategoryForHttpStatus(response.status) });
|
|
197
208
|
}
|
|
198
209
|
const payload = (await response.json());
|
|
199
210
|
if (payload.base_resp?.status_code !== 0) {
|
|
200
|
-
|
|
211
|
+
const applicationFailureCategory = minimaxApplicationFailureCategory(payload.base_resp?.status_code);
|
|
212
|
+
return attemptedErrorResult(options.label ?? MINIMAX_PROVIDER_LABEL, `MiniMax API error: ${sanitizeMiniMaxMessage(payload.base_resp?.status_msg ?? "unknown")}`, applicationFailureCategory !== undefined
|
|
213
|
+
? { failureCategory: applicationFailureCategory }
|
|
214
|
+
: {});
|
|
201
215
|
}
|
|
202
216
|
const matchingModels = (payload.model_remains ?? []).filter((model) => isMiniMaxModelRecord(model) && isMiniMaxCodingModelName(model.model_name));
|
|
203
217
|
const canonicalModel = selectCanonicalMiniMaxModel(matchingModels, endpointId);
|
|
@@ -209,7 +223,11 @@ export async function queryMiniMaxQuota(apiKey, options = {}) {
|
|
|
209
223
|
});
|
|
210
224
|
}
|
|
211
225
|
catch (err) {
|
|
212
|
-
return attemptedErrorResult(options.label ?? MINIMAX_PROVIDER_LABEL, sanitizeMiniMaxMessage(err instanceof Error ? err.message : String(err))
|
|
226
|
+
return attemptedErrorResult(options.label ?? MINIMAX_PROVIDER_LABEL, sanitizeMiniMaxMessage(err instanceof Error ? err.message : String(err)), {
|
|
227
|
+
failureCategory: responseStatus === undefined
|
|
228
|
+
? "provider_api"
|
|
229
|
+
: providerFailureCategoryForHttpStatus(responseStatus),
|
|
230
|
+
});
|
|
213
231
|
}
|
|
214
232
|
}
|
|
215
233
|
function isMiniMaxChinaExplicitlyEnabled(context) {
|
|
@@ -295,6 +313,7 @@ function createMiniMaxProvider(spec) {
|
|
|
295
313
|
label: displayNamesByRowId.get(row.id) ?? spec.label,
|
|
296
314
|
message: rowAuth.error,
|
|
297
315
|
sourceId: row.id,
|
|
316
|
+
failureCategory: "credentials",
|
|
298
317
|
});
|
|
299
318
|
}
|
|
300
319
|
return rowAuth.state === "configured" ? [{ row, auth: rowAuth }] : [];
|
|
@@ -334,7 +353,7 @@ function createMiniMaxProvider(spec) {
|
|
|
334
353
|
}
|
|
335
354
|
}
|
|
336
355
|
if (auth.state === "invalid") {
|
|
337
|
-
return withStatusDetails(attemptedErrorResult(spec.label, auth.error), statusDetails);
|
|
356
|
+
return withStatusDetails(attemptedErrorResult(spec.label, auth.error, { failureCategory: "credentials" }), statusDetails);
|
|
338
357
|
}
|
|
339
358
|
const result = await queryMiniMaxQuota(auth.apiKey, {
|
|
340
359
|
endpoint: spec.endpoint,
|
|
@@ -343,7 +362,11 @@ function createMiniMaxProvider(spec) {
|
|
|
343
362
|
});
|
|
344
363
|
if (result.errors.length > 0) {
|
|
345
364
|
const firstError = result.errors[0];
|
|
346
|
-
return withStatusDetails(attemptedErrorResult(spec.label, firstError?.message ?? "MiniMax API error"
|
|
365
|
+
return withStatusDetails(attemptedErrorResult(spec.label, firstError?.message ?? "MiniMax API error", {
|
|
366
|
+
...(firstError?.failureCategory !== undefined
|
|
367
|
+
? { failureCategory: firstError.failureCategory }
|
|
368
|
+
: {}),
|
|
369
|
+
}), [
|
|
347
370
|
...statusDetails,
|
|
348
371
|
{ key: "live_fetch_error", value: firstError?.message ?? "MiniMax API error" },
|
|
349
372
|
]);
|
|
@@ -66,6 +66,8 @@ function mapNanoGptSuccess(result) {
|
|
|
66
66
|
const errors = result.endpointErrors?.map((entry) => ({
|
|
67
67
|
label: entry.endpoint === "usage" ? "NanoGPT Usage" : "NanoGPT Balance",
|
|
68
68
|
message: entry.message,
|
|
69
|
+
...(entry.retryAtMs !== undefined ? { retryAtMs: entry.retryAtMs } : {}),
|
|
70
|
+
...(entry.failureCategory !== undefined ? { failureCategory: entry.failureCategory } : {}),
|
|
69
71
|
})) ?? [];
|
|
70
72
|
const subscription = result.subscription;
|
|
71
73
|
if (subscription?.daily)
|
|
@@ -97,12 +99,14 @@ function mapNanoGptSuccess(result) {
|
|
|
97
99
|
errors.push({
|
|
98
100
|
label: "NanoGPT",
|
|
99
101
|
message: `Subscription state: ${subscription.state}`,
|
|
102
|
+
failureCategory: "discovery",
|
|
100
103
|
});
|
|
101
104
|
}
|
|
102
105
|
if (entries.length === 0) {
|
|
103
106
|
errors.push({
|
|
104
107
|
label: "NanoGPT",
|
|
105
108
|
message: "No usable NanoGPT quota or balance data",
|
|
109
|
+
failureCategory: "discovery",
|
|
106
110
|
});
|
|
107
111
|
}
|
|
108
112
|
const formatSubscriptionUsage = (usage) => usage
|
|
@@ -71,6 +71,8 @@ function mapOllamaCloudSuccess(result) {
|
|
|
71
71
|
value: `$${result.purchasedUsd.toFixed(2)} left`,
|
|
72
72
|
});
|
|
73
73
|
}
|
|
74
|
+
// Row-level mapping warnings carry no source-assigned category; absence means
|
|
75
|
+
// unknown, so they stay unclassified rather than being inferred as API failures.
|
|
74
76
|
const errors = (result.rowErrors ?? []).map((message) => ({
|
|
75
77
|
label: OLLAMA_CLOUD_PROVIDER_LABEL,
|
|
76
78
|
message,
|
|
@@ -79,6 +81,7 @@ function mapOllamaCloudSuccess(result) {
|
|
|
79
81
|
errors.push({
|
|
80
82
|
label: OLLAMA_CLOUD_PROVIDER_LABEL,
|
|
81
83
|
message: "Ollama Cloud returned no limits or balance",
|
|
84
|
+
failureCategory: "discovery",
|
|
82
85
|
});
|
|
83
86
|
}
|
|
84
87
|
return withStatusDetails(attemptedResult(entries, errors), [
|
package/dist/providers/openai.js
CHANGED
|
@@ -169,6 +169,7 @@ async function fetchOpenCodeGoConsoleAccounts(ctx, windows, consoleAccounts) {
|
|
|
169
169
|
label: account.label,
|
|
170
170
|
message: consoleSignInFailure(account),
|
|
171
171
|
sourceId: account.sourceId,
|
|
172
|
+
failureCategory: "credentials",
|
|
172
173
|
});
|
|
173
174
|
accounts.push(consoleAccountDescriptor(account));
|
|
174
175
|
continue;
|
|
@@ -190,6 +191,8 @@ async function fetchOpenCodeGoConsoleAccounts(ctx, windows, consoleAccounts) {
|
|
|
190
191
|
message: result.error,
|
|
191
192
|
retryable: result.retryable,
|
|
192
193
|
sourceId: account.sourceId,
|
|
194
|
+
failureCategory: result.failureCategory,
|
|
195
|
+
...(result.retryAtMs !== undefined ? { retryAtMs: result.retryAtMs } : {}),
|
|
193
196
|
});
|
|
194
197
|
fetchErrorsBySourceId.set(account.sourceId, result.error);
|
|
195
198
|
accounts.push(consoleAccountDescriptor(account));
|
|
@@ -313,6 +316,7 @@ async function fetchOpenCodeGoLegacy(ctx, diagnostics, statusDetails) {
|
|
|
313
316
|
label: displayNamesByRowId.get(row.id) ?? OPENCODE_GO_PROVIDER_LABEL,
|
|
314
317
|
message: rowAuth.error,
|
|
315
318
|
sourceId: row.id,
|
|
319
|
+
failureCategory: "credentials",
|
|
316
320
|
});
|
|
317
321
|
}
|
|
318
322
|
return rowAuth.state === "configured" ? [{ row, auth: rowAuth }] : [];
|
|
@@ -348,6 +352,8 @@ async function fetchOpenCodeGoLegacy(ctx, diagnostics, statusDetails) {
|
|
|
348
352
|
message: result.error,
|
|
349
353
|
retryable: result.retryable,
|
|
350
354
|
sourceId: row.id,
|
|
355
|
+
failureCategory: result.failureCategory,
|
|
356
|
+
...(result.retryAtMs !== undefined ? { retryAtMs: result.retryAtMs } : {}),
|
|
351
357
|
});
|
|
352
358
|
}
|
|
353
359
|
const attemptedSourceIds = new Set([
|
|
@@ -371,7 +377,9 @@ async function fetchOpenCodeGoLegacy(ctx, diagnostics, statusDetails) {
|
|
|
371
377
|
}
|
|
372
378
|
if (auth.state === "invalid") {
|
|
373
379
|
notSubscribedCredentialFingerprints.clear();
|
|
374
|
-
return withStatusDetails(attemptedErrorResult(OPENCODE_GO_PROVIDER_LABEL, auth.error
|
|
380
|
+
return withStatusDetails(attemptedErrorResult(OPENCODE_GO_PROVIDER_LABEL, auth.error, {
|
|
381
|
+
failureCategory: "credentials",
|
|
382
|
+
}), baseStatusDetails);
|
|
375
383
|
}
|
|
376
384
|
const credentialFingerprint = fingerprintCredential(auth.apiKey);
|
|
377
385
|
retainCurrentCredentialFingerprints(new Set([credentialFingerprint]));
|
|
@@ -394,6 +402,8 @@ async function fetchOpenCodeGoLegacy(ctx, diagnostics, statusDetails) {
|
|
|
394
402
|
}
|
|
395
403
|
return withStatusDetails(attemptedErrorResult(OPENCODE_GO_PROVIDER_LABEL, result.error, {
|
|
396
404
|
retryable: result.retryable,
|
|
405
|
+
failureCategory: result.failureCategory,
|
|
406
|
+
...(result.retryAtMs !== undefined ? { retryAtMs: result.retryAtMs } : {}),
|
|
397
407
|
}), [...baseStatusDetails, { key: "live_fetch_error", value: result.error }]);
|
|
398
408
|
}
|
|
399
409
|
const liveDetails = OPENCODE_GO_WINDOW_ORDER.map((window) => {
|
|
@@ -193,6 +193,7 @@ async function fetchOpenCodeZenConsoleAccounts(ctx, consoleAccounts) {
|
|
|
193
193
|
label: account.label,
|
|
194
194
|
message: zenSignInFailure(account),
|
|
195
195
|
sourceId: account.sourceId,
|
|
196
|
+
failureCategory: "credentials",
|
|
196
197
|
});
|
|
197
198
|
accounts.push(zenAccountDescriptor(account));
|
|
198
199
|
continue;
|
|
@@ -204,6 +205,10 @@ async function fetchOpenCodeZenConsoleAccounts(ctx, consoleAccounts) {
|
|
|
204
205
|
label: account.label,
|
|
205
206
|
message: result.error,
|
|
206
207
|
sourceId: account.sourceId,
|
|
208
|
+
...(result.failureCategory !== undefined
|
|
209
|
+
? { failureCategory: result.failureCategory }
|
|
210
|
+
: {}),
|
|
211
|
+
...(result.retryAtMs !== undefined ? { retryAtMs: result.retryAtMs } : {}),
|
|
207
212
|
});
|
|
208
213
|
statusDetails.push({
|
|
209
214
|
key: `live_fetch_error:${account.sourceId}`,
|
|
@@ -217,8 +222,30 @@ async function fetchOpenCodeZenConsoleAccounts(ctx, consoleAccounts) {
|
|
|
217
222
|
configuredMonthlyLimit,
|
|
218
223
|
});
|
|
219
224
|
entries.push(...built.entries);
|
|
220
|
-
|
|
221
|
-
|
|
225
|
+
if (result.optionalErrors) {
|
|
226
|
+
for (const optionalError of result.optionalErrors) {
|
|
227
|
+
errors.push({
|
|
228
|
+
label: account.label,
|
|
229
|
+
message: optionalError.message,
|
|
230
|
+
sourceId: account.sourceId,
|
|
231
|
+
...(optionalError.failureCategory !== undefined
|
|
232
|
+
? { failureCategory: optionalError.failureCategory }
|
|
233
|
+
: {}),
|
|
234
|
+
...(optionalError.retryAtMs !== undefined ? { retryAtMs: optionalError.retryAtMs } : {}),
|
|
235
|
+
});
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
else {
|
|
239
|
+
// Legacy producers only returned display strings. Absence of structured
|
|
240
|
+
// provenance means unknown: fail closed instead of inferring provider_api
|
|
241
|
+
// from the message text.
|
|
242
|
+
for (const message of result.errors) {
|
|
243
|
+
errors.push({
|
|
244
|
+
label: account.label,
|
|
245
|
+
message,
|
|
246
|
+
sourceId: account.sourceId,
|
|
247
|
+
});
|
|
248
|
+
}
|
|
222
249
|
}
|
|
223
250
|
statusDetails.push({
|
|
224
251
|
key: `balance_usd:${account.sourceId}`,
|
|
@@ -284,7 +311,9 @@ export const opencodeZenProvider = {
|
|
|
284
311
|
if (!isExplicitlyEnabled(ctx)) {
|
|
285
312
|
return withStatusDetails(notAttemptedResult(), noneStatusDetails);
|
|
286
313
|
}
|
|
287
|
-
return withStatusDetails(attemptedErrorResult(OPENCODE_ZEN_GROUP, `No OpenCode Console sign-in found. ${LOGIN_HINT}
|
|
314
|
+
return withStatusDetails(attemptedErrorResult(OPENCODE_ZEN_GROUP, `No OpenCode Console sign-in found. ${LOGIN_HINT}`, {
|
|
315
|
+
failureCategory: "credentials",
|
|
316
|
+
}), noneStatusDetails);
|
|
288
317
|
},
|
|
289
318
|
};
|
|
290
319
|
//# sourceMappingURL=opencode-zen.js.map
|
|
@@ -69,12 +69,16 @@ export const openRouterProvider = {
|
|
|
69
69
|
errors.push({
|
|
70
70
|
label: account.label,
|
|
71
71
|
message: result.error,
|
|
72
|
+
...(result.retryAtMs !== undefined ? { retryAtMs: result.retryAtMs } : {}),
|
|
73
|
+
failureCategory: result.failureCategory,
|
|
72
74
|
...(account.sourceId ? { sourceId: account.sourceId } : {}),
|
|
73
75
|
});
|
|
74
76
|
continue;
|
|
75
77
|
}
|
|
76
78
|
entries.push(...result.entries);
|
|
77
79
|
for (const message of result.rowErrors ?? []) {
|
|
80
|
+
// Row-level mapping warnings carry no source-assigned category; absence
|
|
81
|
+
// means unknown, so this stays unclassified rather than inferred.
|
|
78
82
|
errors.push({
|
|
79
83
|
label: account.label,
|
|
80
84
|
message,
|