opencode-quota-gui 1.3.1 → 1.3.2
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 +16 -12
- package/dist/contracts/build-identity.js +1 -1
- package/dist/contracts/card-order.d.ts +2 -0
- package/dist/contracts/card-order.js +2 -2
- package/dist/contracts/card-visibility.d.ts +2 -1
- package/dist/contracts/card-visibility.js +2 -1
- package/dist/contracts/dashboard.d.ts +87 -5
- package/dist/contracts/dashboard.js +10 -0
- package/dist/contracts/dto-guards.d.ts +4 -0
- package/dist/contracts/dto-guards.js +29 -7
- package/dist/contracts/guards.js +3 -1
- package/dist/contracts/identity.d.ts +37 -5
- package/dist/contracts/identity.js +43 -0
- package/dist/contracts/provider-auto-resume.d.ts +9 -0
- package/dist/contracts/provider-auto-resume.js +24 -0
- package/dist/contracts/provider-failure.d.ts +22 -0
- package/dist/contracts/provider-failure.js +25 -1
- package/dist/contracts/row-order.d.ts +13 -0
- package/dist/contracts/row-order.js +34 -0
- package/dist/contracts/row-visibility.d.ts +53 -0
- package/dist/contracts/row-visibility.js +130 -0
- package/dist/data/modelsdev-pricing.min.json +1 -1
- package/dist/data/modelsdev-temporal.min.json +3 -634
- package/dist/gui/aggregation.d.ts +29 -1
- package/dist/gui/aggregation.js +157 -4
- package/dist/gui/analytics-bridge.d.ts +8 -9
- package/dist/gui/analytics-bridge.js +197 -54
- package/dist/gui/analytics-engine.d.ts +7 -15
- package/dist/gui/analytics-engine.js +246 -106
- package/dist/gui/analytics-model.d.ts +7 -0
- package/dist/gui/analytics-model.js +75 -9
- package/dist/gui/analytics-pricing-upkeep.d.ts +21 -0
- package/dist/gui/analytics-pricing-upkeep.js +23 -0
- package/dist/gui/analytics-protocol.d.ts +17 -7
- package/dist/gui/analytics-protocol.js +1 -0
- package/dist/gui/analytics-service.d.ts +10 -0
- package/dist/gui/analytics-service.js +30 -9
- package/dist/gui/analytics-state.d.ts +30 -5
- package/dist/gui/analytics-state.js +46 -7
- package/dist/gui/analytics-worker-runtime.d.ts +5 -0
- package/dist/gui/analytics-worker-runtime.js +9 -1
- package/dist/gui/analytics-worker.js +11 -0
- package/dist/gui/config.d.ts +2 -2
- package/dist/gui/config.js +46 -5
- package/dist/gui/identity.d.ts +6 -20
- package/dist/gui/identity.js +6 -54
- package/dist/gui/primary-quota-windows.js +55 -34
- package/dist/gui/provider-cards.d.ts +12 -8
- package/dist/gui/provider-cards.js +12 -53
- package/dist/gui/quota-notification-detector.d.ts +25 -2
- package/dist/gui/quota-notification-detector.js +60 -5
- package/dist/gui/quota-notification-observer.d.ts +1 -1
- package/dist/gui/quota-notification-observer.js +5 -1
- package/dist/gui/quota-observation.d.ts +4 -0
- package/dist/gui/quota-observation.js +18 -0
- package/dist/gui/rpc.js +3 -0
- package/dist/gui/server.js +6 -1
- package/dist/gui/snapshot-service.d.ts +3 -17
- package/dist/gui/snapshot-service.js +159 -9
- package/dist/gui/sources.js +84 -11
- package/dist/gui/temporal-status.d.ts +3 -2
- package/dist/gui/temporal-status.js +10 -6
- package/dist/gui-experimental.cjs +228 -228
- package/dist/lib/accounting-format.d.ts +8 -0
- package/dist/lib/accounting-format.js +12 -2
- package/dist/lib/anthropic-api-auth.d.ts +7 -0
- package/dist/lib/anthropic-api-auth.js +27 -0
- package/dist/lib/anthropic-api-rate-limits.d.ts +47 -0
- package/dist/lib/anthropic-api-rate-limits.js +92 -0
- package/dist/lib/anthropic-oauth-throttle.d.ts +76 -0
- package/dist/lib/anthropic-oauth-throttle.js +379 -0
- package/dist/lib/anthropic.d.ts +22 -4
- package/dist/lib/anthropic.js +498 -180
- package/dist/lib/cache-observer-ingestion.js +27 -0
- package/dist/lib/cache-observer.d.ts +3 -0
- package/dist/lib/cache-observer.js +9 -3
- package/dist/lib/cli-show.d.ts +5 -0
- package/dist/lib/cli-show.js +16 -5
- package/dist/lib/cli-status.js +3 -6
- package/dist/lib/config.d.ts +1 -1
- package/dist/lib/config.js +64 -2
- package/dist/lib/dashboard-visibility.d.ts +5 -0
- package/dist/lib/dashboard-visibility.js +11 -10
- package/dist/lib/display-sanitize.js +1 -0
- package/dist/lib/entries.d.ts +10 -1
- package/dist/lib/entries.js +4 -0
- package/dist/lib/grouped-entry-normalization.js +1 -1
- package/dist/lib/maintainer-announcements.js +2 -2
- package/dist/lib/modelsdev-pricing.d.ts +74 -2
- package/dist/lib/modelsdev-pricing.js +457 -63
- package/dist/lib/modelsdev-temporal.d.ts +6 -0
- package/dist/lib/modelsdev-temporal.js +16 -2
- package/dist/lib/opencode-config-providers.js +2 -2
- package/dist/lib/opencode-storage.d.ts +20 -0
- package/dist/lib/opencode-storage.js +89 -2
- package/dist/lib/opencode-version-core.d.ts +7 -0
- package/dist/lib/opencode-version-core.js +10 -0
- package/dist/lib/opencode-warming-refresh.d.ts +19 -0
- package/dist/lib/opencode-warming-refresh.js +95 -0
- package/dist/lib/provider-metadata.d.ts +11 -3
- package/dist/lib/provider-metadata.js +20 -2
- package/dist/lib/provider-registration.d.ts +342 -3
- package/dist/lib/provider-registration.js +409 -27
- package/dist/lib/quota-auto-resume.d.ts +74 -0
- package/dist/lib/quota-auto-resume.js +539 -0
- package/dist/lib/quota-command-format.js +22 -9
- package/dist/lib/quota-identity.d.ts +64 -0
- package/dist/lib/quota-identity.js +111 -0
- package/dist/lib/quota-providers.js +2 -2
- package/dist/lib/quota-render-data.js +2 -2
- package/dist/lib/quota-reset-notifications.js +11 -155
- package/dist/lib/quota-retry-wait.d.ts +106 -5
- package/dist/lib/quota-retry-wait.js +301 -34
- package/dist/lib/quota-runtime-context.js +1 -0
- package/dist/lib/quota-state-codec.d.ts +2 -0
- package/dist/lib/quota-state-codec.js +14 -1
- package/dist/lib/quota-state.d.ts +1 -1
- package/dist/lib/quota-state.js +60 -28
- package/dist/lib/quota-stats.d.ts +26 -0
- package/dist/lib/quota-stats.js +19 -1
- package/dist/lib/quota-surface-data.js +18 -3
- package/dist/lib/quota-telemetry.js +2 -2
- package/dist/lib/resolved-auth-identity.d.ts +19 -0
- package/dist/lib/resolved-auth-identity.js +44 -0
- package/dist/lib/state-file-lock.d.ts +26 -0
- package/dist/lib/state-file-lock.js +205 -0
- package/dist/lib/toast-format-grouped.js +7 -4
- package/dist/lib/tui-compact-format.js +29 -16
- package/dist/lib/types.d.ts +20 -0
- package/dist/lib/types.js +4 -1
- package/dist/plugin.js +67 -1
- package/dist/providers/alibaba-coding-plan.js +21 -3
- package/dist/providers/alibaba-token-plan.js +9 -5
- package/dist/providers/anthropic.d.ts +6 -2
- package/dist/providers/anthropic.js +123 -14
- package/dist/providers/chutes.js +2 -0
- package/dist/providers/claude-agent.js +24 -5
- package/dist/providers/copilot.js +5 -4
- package/dist/providers/glm-coding-plan-provider.js +30 -23
- package/dist/providers/ollama-cloud.js +10 -0
- package/dist/providers/openai.js +24 -23
- package/dist/providers/opencode-go.js +7 -6
- package/dist/providers/opencode-zen.js +1 -1
- package/dist/providers/result-helpers.d.ts +4 -2
- package/dist/providers/result-helpers.js +5 -1
- package/dist/providers/synthetic.js +4 -0
- package/dist/providers/xai.js +9 -8
- package/dist/rpc.d.ts +8 -0
- package/dist/rpc.js +15 -2
- package/dist/ui/assets/{index-BcueIm3Z.css → index-6_g1FHs-.css} +1 -1
- package/dist/ui/assets/index-sZnGUuML.js +10 -0
- package/dist/ui/assets/{popover-4bFSvRZ7.js → popover-C4ZLYe9E.js} +1 -1
- package/dist/ui/index.html +2 -2
- package/package.json +3 -3
- package/dist/ui/assets/index-C6qRSoh8.js +0 -10
|
@@ -1,13 +1,42 @@
|
|
|
1
|
+
type QuotaProviderOptionalVisibilityRowResultType = "quota" | "rate_limit" | "usage" | "spend" | "budget" | "balance" | "status";
|
|
2
|
+
/** The render shape the live row uses, so the declared eye shares its row id. */
|
|
3
|
+
type QuotaProviderOptionalVisibilityRowKind = "percent" | "value" | "quantity" | "boolean";
|
|
4
|
+
/**
|
|
5
|
+
* One persistent Settings eye for an optional field a provider emits only when
|
|
6
|
+
* the provider reports it. The primary row id is the declared field id and
|
|
7
|
+
* stays stable when the provider renders the field in another shape; each
|
|
8
|
+
* alternate shape is an alias of the same control.
|
|
9
|
+
*/
|
|
10
|
+
export interface QuotaProviderOptionalVisibilityRow {
|
|
11
|
+
rowKey: string;
|
|
12
|
+
resultType: QuotaProviderOptionalVisibilityRowResultType;
|
|
13
|
+
/** Defaults to `value` for rows whose runtime shape is a formatted value. */
|
|
14
|
+
kind?: QuotaProviderOptionalVisibilityRowKind;
|
|
15
|
+
/** Other render shapes this field can emit when its primary value is absent. */
|
|
16
|
+
alternateShapes?: readonly {
|
|
17
|
+
resultType: QuotaProviderOptionalVisibilityRowResultType;
|
|
18
|
+
kind?: QuotaProviderOptionalVisibilityRowKind;
|
|
19
|
+
}[];
|
|
20
|
+
label: string;
|
|
21
|
+
info: string;
|
|
22
|
+
}
|
|
1
23
|
export type QuotaProviderAutoSetup = "yes" | "usually" | "manual_env_config" | "needs_quick_setup" | "unavailable";
|
|
2
24
|
export type QuotaProviderAuthentication = "opencode_auth_oauth_token" | "opencode_auth_api_key" | "companion_auth_oauth_token" | "local_cli_auth" | "github_oauth_or_pat" | "external_api_key" | "state_only" | "unavailable";
|
|
3
25
|
export type QuotaProviderAuthFallback = "env_api_key" | "global_opencode_config";
|
|
4
26
|
export type QuotaProviderQuotaSource = "remote_api" | "local_estimation" | "local_runtime_accounting" | "local_cli_report" | "unavailable";
|
|
27
|
+
export type QuotaProviderAutoResumeBinding = "account" | "single-source" | "account-or-single-source";
|
|
5
28
|
export interface QuotaProviderShapeSource {
|
|
6
29
|
recommendedReplacementId?: string;
|
|
7
30
|
autoSetup: QuotaProviderAutoSetup;
|
|
8
31
|
authentication: QuotaProviderAuthentication;
|
|
9
32
|
authFallbacks?: readonly QuotaProviderAuthFallback[];
|
|
10
33
|
quota: QuotaProviderQuotaSource;
|
|
34
|
+
/**
|
|
35
|
+
* Auto-resume evidence this provider can supply. Absent means it never qualifies: no primary
|
|
36
|
+
* reset window, no verifiable identity, or both.
|
|
37
|
+
*/
|
|
38
|
+
autoResume?: QuotaProviderAutoResumeBinding;
|
|
39
|
+
optionalVisibilityRows?: readonly QuotaProviderOptionalVisibilityRow[];
|
|
11
40
|
quickSetupAnchor?: string;
|
|
12
41
|
notes?: string;
|
|
13
42
|
}
|
|
@@ -26,9 +55,32 @@ export declare const QUOTA_PROVIDER_REGISTRATION_SOURCE: readonly [{
|
|
|
26
55
|
readonly runtimeIds: readonly ["anthropic"];
|
|
27
56
|
readonly synonyms: readonly [];
|
|
28
57
|
readonly shape: {
|
|
29
|
-
readonly autoSetup: "
|
|
30
|
-
readonly authentication: "
|
|
31
|
-
readonly
|
|
58
|
+
readonly autoSetup: "usually";
|
|
59
|
+
readonly authentication: "opencode_auth_api_key";
|
|
60
|
+
readonly authFallbacks: readonly ["env_api_key", "global_opencode_config"];
|
|
61
|
+
readonly quota: "remote_api";
|
|
62
|
+
readonly optionalVisibilityRows: readonly [{
|
|
63
|
+
readonly rowKey: "rate_limit:requests";
|
|
64
|
+
readonly resultType: "rate_limit";
|
|
65
|
+
readonly label: "Requests";
|
|
66
|
+
readonly info: "Passive per-minute request rate limit observed on API-key traffic.";
|
|
67
|
+
}, {
|
|
68
|
+
readonly rowKey: "rate_limit:tokens";
|
|
69
|
+
readonly resultType: "rate_limit";
|
|
70
|
+
readonly label: "Tokens";
|
|
71
|
+
readonly info: "Passive per-minute token rate limit observed on API-key traffic.";
|
|
72
|
+
}, {
|
|
73
|
+
readonly rowKey: "rate_limit:inputTokens";
|
|
74
|
+
readonly resultType: "rate_limit";
|
|
75
|
+
readonly label: "Input tokens";
|
|
76
|
+
readonly info: "Passive per-minute input-token rate limit observed on API-key traffic.";
|
|
77
|
+
}, {
|
|
78
|
+
readonly rowKey: "rate_limit:outputTokens";
|
|
79
|
+
readonly resultType: "rate_limit";
|
|
80
|
+
readonly label: "Output tokens";
|
|
81
|
+
readonly info: "Passive per-minute output-token rate limit observed on API-key traffic.";
|
|
82
|
+
}];
|
|
83
|
+
readonly notes: "Passive per-minute rate-limit headers from real API-key requests; no spend or balance";
|
|
32
84
|
};
|
|
33
85
|
}, {
|
|
34
86
|
readonly id: "claude-agent";
|
|
@@ -39,7 +91,38 @@ export declare const QUOTA_PROVIDER_REGISTRATION_SOURCE: readonly [{
|
|
|
39
91
|
readonly autoSetup: "needs_quick_setup";
|
|
40
92
|
readonly authentication: "local_cli_auth";
|
|
41
93
|
readonly quota: "local_cli_report";
|
|
94
|
+
readonly autoResume: "single-source";
|
|
42
95
|
readonly quickSetupAnchor: "claude-agent";
|
|
96
|
+
readonly optionalVisibilityRows: readonly [{
|
|
97
|
+
readonly rowKey: "window:five_hour";
|
|
98
|
+
readonly resultType: "quota";
|
|
99
|
+
readonly kind: "percent";
|
|
100
|
+
readonly label: "5h";
|
|
101
|
+
readonly info: "Claude Agent 5-hour subscription window.";
|
|
102
|
+
}, {
|
|
103
|
+
readonly rowKey: "window:week";
|
|
104
|
+
readonly resultType: "quota";
|
|
105
|
+
readonly kind: "percent";
|
|
106
|
+
readonly label: "Weekly";
|
|
107
|
+
readonly info: "Claude Agent weekly subscription window.";
|
|
108
|
+
}, {
|
|
109
|
+
readonly rowKey: "window:month";
|
|
110
|
+
readonly resultType: "quota";
|
|
111
|
+
readonly kind: "percent";
|
|
112
|
+
readonly label: "Monthly credits";
|
|
113
|
+
readonly info: "Claude Agent monthly usage credits, when the plan reports them.";
|
|
114
|
+
}, {
|
|
115
|
+
readonly rowKey: "named:Fable weekly";
|
|
116
|
+
readonly resultType: "quota";
|
|
117
|
+
readonly kind: "percent";
|
|
118
|
+
readonly label: "Fable";
|
|
119
|
+
readonly info: "Claude Agent Fable weekly window, when the plan reports it.";
|
|
120
|
+
}, {
|
|
121
|
+
readonly rowKey: "claude-agent:resets";
|
|
122
|
+
readonly resultType: "status";
|
|
123
|
+
readonly label: "Resets";
|
|
124
|
+
readonly info: "Shown only when Claude Agent reports one or more available saved resets.";
|
|
125
|
+
}];
|
|
43
126
|
};
|
|
44
127
|
}, {
|
|
45
128
|
readonly id: "copilot";
|
|
@@ -50,6 +133,28 @@ export declare const QUOTA_PROVIDER_REGISTRATION_SOURCE: readonly [{
|
|
|
50
133
|
readonly autoSetup: "usually";
|
|
51
134
|
readonly authentication: "github_oauth_or_pat";
|
|
52
135
|
readonly quota: "remote_api";
|
|
136
|
+
readonly autoResume: "account";
|
|
137
|
+
readonly optionalVisibilityRows: readonly [{
|
|
138
|
+
readonly rowKey: "window:month";
|
|
139
|
+
readonly resultType: "quota";
|
|
140
|
+
readonly kind: "percent";
|
|
141
|
+
readonly alternateShapes: readonly [{
|
|
142
|
+
readonly resultType: "quota";
|
|
143
|
+
readonly kind: "value";
|
|
144
|
+
}];
|
|
145
|
+
readonly label: "Monthly quota";
|
|
146
|
+
readonly info: "Copilot premium-request or AI-credit quota for the current month.";
|
|
147
|
+
}, {
|
|
148
|
+
readonly rowKey: "named:additional_usage";
|
|
149
|
+
readonly resultType: "budget";
|
|
150
|
+
readonly kind: "percent";
|
|
151
|
+
readonly alternateShapes: readonly [{
|
|
152
|
+
readonly resultType: "budget";
|
|
153
|
+
readonly kind: "value";
|
|
154
|
+
}];
|
|
155
|
+
readonly label: "Additional usage";
|
|
156
|
+
readonly info: "Copilot additional-usage budget, when billing reports spend against it.";
|
|
157
|
+
}];
|
|
53
158
|
readonly notes: "OAuth for personal flow; PAT for managed billing";
|
|
54
159
|
};
|
|
55
160
|
}, {
|
|
@@ -61,6 +166,42 @@ export declare const QUOTA_PROVIDER_REGISTRATION_SOURCE: readonly [{
|
|
|
61
166
|
readonly autoSetup: "yes";
|
|
62
167
|
readonly authentication: "opencode_auth_oauth_token";
|
|
63
168
|
readonly quota: "remote_api";
|
|
169
|
+
readonly autoResume: "account";
|
|
170
|
+
readonly optionalVisibilityRows: readonly [{
|
|
171
|
+
readonly rowKey: "window:five_hour";
|
|
172
|
+
readonly resultType: "rate_limit";
|
|
173
|
+
readonly kind: "percent";
|
|
174
|
+
readonly label: "5h";
|
|
175
|
+
readonly info: "OpenAI 5-hour rate-limit window, when the account reports it.";
|
|
176
|
+
}, {
|
|
177
|
+
readonly rowKey: "window:week";
|
|
178
|
+
readonly resultType: "rate_limit";
|
|
179
|
+
readonly kind: "percent";
|
|
180
|
+
readonly label: "Weekly";
|
|
181
|
+
readonly info: "OpenAI weekly rate-limit window, when the account reports it.";
|
|
182
|
+
}, {
|
|
183
|
+
readonly rowKey: "window:month";
|
|
184
|
+
readonly resultType: "rate_limit";
|
|
185
|
+
readonly kind: "percent";
|
|
186
|
+
readonly label: "Monthly";
|
|
187
|
+
readonly info: "OpenAI monthly rate-limit window, when the account reports it.";
|
|
188
|
+
}, {
|
|
189
|
+
readonly rowKey: "window:code_review";
|
|
190
|
+
readonly resultType: "rate_limit";
|
|
191
|
+
readonly kind: "percent";
|
|
192
|
+
readonly label: "Code Review";
|
|
193
|
+
readonly info: "OpenAI Code Review rate-limit window, when the account reports it.";
|
|
194
|
+
}, {
|
|
195
|
+
readonly rowKey: "openai:resets";
|
|
196
|
+
readonly resultType: "status";
|
|
197
|
+
readonly label: "Resets";
|
|
198
|
+
readonly info: "Shown only when OpenAI reports one or more available banked resets.";
|
|
199
|
+
}, {
|
|
200
|
+
readonly rowKey: "openai:credits";
|
|
201
|
+
readonly resultType: "balance";
|
|
202
|
+
readonly label: "Credits";
|
|
203
|
+
readonly info: "Shown only when OpenAI reports a positive credit balance or unlimited credits.";
|
|
204
|
+
}];
|
|
64
205
|
};
|
|
65
206
|
}, {
|
|
66
207
|
readonly id: "openrouter";
|
|
@@ -83,6 +224,19 @@ export declare const QUOTA_PROVIDER_REGISTRATION_SOURCE: readonly [{
|
|
|
83
224
|
readonly authentication: "opencode_auth_api_key";
|
|
84
225
|
readonly authFallbacks: readonly ["env_api_key", "global_opencode_config"];
|
|
85
226
|
readonly quota: "remote_api";
|
|
227
|
+
readonly optionalVisibilityRows: readonly [{
|
|
228
|
+
readonly rowKey: "component:remaining_credits";
|
|
229
|
+
readonly resultType: "quota";
|
|
230
|
+
readonly kind: "percent";
|
|
231
|
+
readonly label: "Remaining credits";
|
|
232
|
+
readonly info: "Kilo Pass credit balance, when an active pass reports a total.";
|
|
233
|
+
}, {
|
|
234
|
+
readonly rowKey: "component:total_balance";
|
|
235
|
+
readonly resultType: "balance";
|
|
236
|
+
readonly kind: "quantity";
|
|
237
|
+
readonly label: "Balance";
|
|
238
|
+
readonly info: "Kilo Gateway prepaid balance, when no active Pass is present.";
|
|
239
|
+
}];
|
|
86
240
|
readonly notes: "Queries Kilo Pass state first, then falls back to the documented personal Gateway balance when no active subscription exists";
|
|
87
241
|
};
|
|
88
242
|
}, {
|
|
@@ -108,6 +262,7 @@ export declare const QUOTA_PROVIDER_REGISTRATION_SOURCE: readonly [{
|
|
|
108
262
|
readonly autoSetup: "needs_quick_setup";
|
|
109
263
|
readonly authentication: "local_cli_auth";
|
|
110
264
|
readonly quota: "local_cli_report";
|
|
265
|
+
readonly optionalVisibilityRows: readonly QuotaProviderOptionalVisibilityRow[];
|
|
111
266
|
readonly quickSetupAnchor: "alibaba-coding-plan";
|
|
112
267
|
};
|
|
113
268
|
}, {
|
|
@@ -119,6 +274,7 @@ export declare const QUOTA_PROVIDER_REGISTRATION_SOURCE: readonly [{
|
|
|
119
274
|
readonly autoSetup: "needs_quick_setup";
|
|
120
275
|
readonly authentication: "local_cli_auth";
|
|
121
276
|
readonly quota: "local_cli_report";
|
|
277
|
+
readonly optionalVisibilityRows: readonly QuotaProviderOptionalVisibilityRow[];
|
|
122
278
|
readonly quickSetupAnchor: "alibaba-personal-token-plan";
|
|
123
279
|
};
|
|
124
280
|
}, {
|
|
@@ -131,6 +287,20 @@ export declare const QUOTA_PROVIDER_REGISTRATION_SOURCE: readonly [{
|
|
|
131
287
|
readonly authentication: "opencode_auth_api_key";
|
|
132
288
|
readonly authFallbacks: readonly ["env_api_key", "global_opencode_config"];
|
|
133
289
|
readonly quota: "remote_api";
|
|
290
|
+
readonly autoResume: "single-source";
|
|
291
|
+
readonly optionalVisibilityRows: readonly [{
|
|
292
|
+
readonly rowKey: "window:five_hour";
|
|
293
|
+
readonly resultType: "quota";
|
|
294
|
+
readonly kind: "percent";
|
|
295
|
+
readonly label: "5h";
|
|
296
|
+
readonly info: "Synthetic 5-hour window, when the API reports it.";
|
|
297
|
+
}, {
|
|
298
|
+
readonly rowKey: "window:week";
|
|
299
|
+
readonly resultType: "quota";
|
|
300
|
+
readonly kind: "percent";
|
|
301
|
+
readonly label: "Weekly";
|
|
302
|
+
readonly info: "Synthetic weekly window, when the API reports it.";
|
|
303
|
+
}];
|
|
134
304
|
};
|
|
135
305
|
}, {
|
|
136
306
|
readonly id: "chutes";
|
|
@@ -142,6 +312,14 @@ export declare const QUOTA_PROVIDER_REGISTRATION_SOURCE: readonly [{
|
|
|
142
312
|
readonly authentication: "opencode_auth_api_key";
|
|
143
313
|
readonly authFallbacks: readonly ["env_api_key", "global_opencode_config"];
|
|
144
314
|
readonly quota: "remote_api";
|
|
315
|
+
readonly autoResume: "single-source";
|
|
316
|
+
readonly optionalVisibilityRows: readonly [{
|
|
317
|
+
readonly rowKey: "window:day";
|
|
318
|
+
readonly resultType: "quota";
|
|
319
|
+
readonly kind: "percent";
|
|
320
|
+
readonly label: "Daily";
|
|
321
|
+
readonly info: "Chutes daily quota window.";
|
|
322
|
+
}];
|
|
145
323
|
};
|
|
146
324
|
}, {
|
|
147
325
|
readonly id: "google-gemini-cli";
|
|
@@ -176,6 +354,14 @@ export declare const QUOTA_PROVIDER_REGISTRATION_SOURCE: readonly [{
|
|
|
176
354
|
readonly authentication: "opencode_auth_api_key";
|
|
177
355
|
readonly authFallbacks: readonly ["env_api_key", "global_opencode_config"];
|
|
178
356
|
readonly quota: "remote_api";
|
|
357
|
+
readonly autoResume: "account-or-single-source";
|
|
358
|
+
readonly optionalVisibilityRows: {
|
|
359
|
+
rowKey: string;
|
|
360
|
+
resultType: "quota";
|
|
361
|
+
kind: "percent";
|
|
362
|
+
label: string;
|
|
363
|
+
info: string;
|
|
364
|
+
}[];
|
|
179
365
|
};
|
|
180
366
|
}, {
|
|
181
367
|
readonly id: "zhipu";
|
|
@@ -187,6 +373,14 @@ export declare const QUOTA_PROVIDER_REGISTRATION_SOURCE: readonly [{
|
|
|
187
373
|
readonly authentication: "opencode_auth_api_key";
|
|
188
374
|
readonly authFallbacks: readonly ["env_api_key", "global_opencode_config"];
|
|
189
375
|
readonly quota: "remote_api";
|
|
376
|
+
readonly autoResume: "account-or-single-source";
|
|
377
|
+
readonly optionalVisibilityRows: {
|
|
378
|
+
rowKey: string;
|
|
379
|
+
resultType: "quota";
|
|
380
|
+
kind: "percent";
|
|
381
|
+
label: string;
|
|
382
|
+
info: string;
|
|
383
|
+
}[];
|
|
190
384
|
};
|
|
191
385
|
}, {
|
|
192
386
|
readonly id: "nanogpt";
|
|
@@ -198,6 +392,26 @@ export declare const QUOTA_PROVIDER_REGISTRATION_SOURCE: readonly [{
|
|
|
198
392
|
readonly authentication: "opencode_auth_api_key";
|
|
199
393
|
readonly authFallbacks: readonly ["env_api_key", "global_opencode_config"];
|
|
200
394
|
readonly quota: "remote_api";
|
|
395
|
+
readonly autoResume: "single-source";
|
|
396
|
+
readonly optionalVisibilityRows: readonly [{
|
|
397
|
+
readonly rowKey: "window:day";
|
|
398
|
+
readonly resultType: "quota";
|
|
399
|
+
readonly kind: "percent";
|
|
400
|
+
readonly label: "Daily";
|
|
401
|
+
readonly info: "NanoGPT daily subscription limit, when the plan reports it.";
|
|
402
|
+
}, {
|
|
403
|
+
readonly rowKey: "window:month";
|
|
404
|
+
readonly resultType: "quota";
|
|
405
|
+
readonly kind: "percent";
|
|
406
|
+
readonly label: "Monthly";
|
|
407
|
+
readonly info: "NanoGPT monthly subscription limit, when the plan reports it.";
|
|
408
|
+
}, {
|
|
409
|
+
readonly rowKey: "component:current_balance";
|
|
410
|
+
readonly resultType: "balance";
|
|
411
|
+
readonly kind: "quantity";
|
|
412
|
+
readonly label: "Balance";
|
|
413
|
+
readonly info: "NanoGPT account balance, when the API reports it.";
|
|
414
|
+
}];
|
|
201
415
|
};
|
|
202
416
|
}, {
|
|
203
417
|
readonly id: "minimax-coding-plan";
|
|
@@ -209,6 +423,7 @@ export declare const QUOTA_PROVIDER_REGISTRATION_SOURCE: readonly [{
|
|
|
209
423
|
readonly authentication: "opencode_auth_api_key";
|
|
210
424
|
readonly authFallbacks: readonly ["env_api_key", "global_opencode_config"];
|
|
211
425
|
readonly quota: "remote_api";
|
|
426
|
+
readonly autoResume: "account-or-single-source";
|
|
212
427
|
};
|
|
213
428
|
}, {
|
|
214
429
|
readonly id: "minimax-china-coding-plan";
|
|
@@ -221,6 +436,7 @@ export declare const QUOTA_PROVIDER_REGISTRATION_SOURCE: readonly [{
|
|
|
221
436
|
readonly authentication: "opencode_auth_api_key";
|
|
222
437
|
readonly authFallbacks: readonly ["env_api_key", "global_opencode_config"];
|
|
223
438
|
readonly quota: "remote_api";
|
|
439
|
+
readonly autoResume: "account-or-single-source";
|
|
224
440
|
};
|
|
225
441
|
}, {
|
|
226
442
|
readonly id: "kimi-code-plan-global";
|
|
@@ -255,6 +471,31 @@ export declare const QUOTA_PROVIDER_REGISTRATION_SOURCE: readonly [{
|
|
|
255
471
|
readonly authentication: "opencode_auth_api_key";
|
|
256
472
|
readonly authFallbacks: readonly ["env_api_key", "global_opencode_config"];
|
|
257
473
|
readonly quota: "remote_api";
|
|
474
|
+
readonly optionalVisibilityRows: readonly [{
|
|
475
|
+
readonly rowKey: "component:total_balance";
|
|
476
|
+
readonly resultType: "balance";
|
|
477
|
+
readonly kind: "quantity";
|
|
478
|
+
readonly label: "Total balance";
|
|
479
|
+
readonly info: "DeepSeek total account balance, when the API reports it.";
|
|
480
|
+
}, {
|
|
481
|
+
readonly rowKey: "component:granted_balance";
|
|
482
|
+
readonly resultType: "balance";
|
|
483
|
+
readonly kind: "quantity";
|
|
484
|
+
readonly label: "Granted balance";
|
|
485
|
+
readonly info: "DeepSeek granted balance, when the API reports it.";
|
|
486
|
+
}, {
|
|
487
|
+
readonly rowKey: "component:topped_up_balance";
|
|
488
|
+
readonly resultType: "balance";
|
|
489
|
+
readonly kind: "quantity";
|
|
490
|
+
readonly label: "Topped-up balance";
|
|
491
|
+
readonly info: "DeepSeek topped-up balance, when the API reports it.";
|
|
492
|
+
}, {
|
|
493
|
+
readonly rowKey: "named:Availability";
|
|
494
|
+
readonly resultType: "status";
|
|
495
|
+
readonly kind: "boolean";
|
|
496
|
+
readonly label: "Availability";
|
|
497
|
+
readonly info: "DeepSeek account availability, shown only when no balance is reported.";
|
|
498
|
+
}];
|
|
258
499
|
};
|
|
259
500
|
}, {
|
|
260
501
|
readonly id: "xai";
|
|
@@ -265,6 +506,7 @@ export declare const QUOTA_PROVIDER_REGISTRATION_SOURCE: readonly [{
|
|
|
265
506
|
readonly autoSetup: "yes";
|
|
266
507
|
readonly authentication: "opencode_auth_oauth_token";
|
|
267
508
|
readonly quota: "remote_api";
|
|
509
|
+
readonly autoResume: "account";
|
|
268
510
|
readonly notes: "SuperGrok OAuth via OpenCode /connect; shared weekly credit meter";
|
|
269
511
|
};
|
|
270
512
|
}, {
|
|
@@ -276,6 +518,31 @@ export declare const QUOTA_PROVIDER_REGISTRATION_SOURCE: readonly [{
|
|
|
276
518
|
readonly autoSetup: "needs_quick_setup";
|
|
277
519
|
readonly authentication: "state_only";
|
|
278
520
|
readonly quota: "remote_api";
|
|
521
|
+
readonly optionalVisibilityRows: readonly [{
|
|
522
|
+
readonly rowKey: "window:month";
|
|
523
|
+
readonly resultType: "quota";
|
|
524
|
+
readonly kind: "percent";
|
|
525
|
+
readonly label: "Monthly";
|
|
526
|
+
readonly info: "Xiaomi MiMo monthly plan usage, when the dashboard reports it.";
|
|
527
|
+
}, {
|
|
528
|
+
readonly rowKey: "component:total_balance";
|
|
529
|
+
readonly resultType: "balance";
|
|
530
|
+
readonly kind: "quantity";
|
|
531
|
+
readonly label: "Total balance";
|
|
532
|
+
readonly info: "Xiaomi MiMo total balance, when the dashboard reports it.";
|
|
533
|
+
}, {
|
|
534
|
+
readonly rowKey: "component:cash_balance";
|
|
535
|
+
readonly resultType: "balance";
|
|
536
|
+
readonly kind: "quantity";
|
|
537
|
+
readonly label: "Cash balance";
|
|
538
|
+
readonly info: "Xiaomi MiMo cash balance, when the dashboard reports it.";
|
|
539
|
+
}, {
|
|
540
|
+
readonly rowKey: "component:gift_balance";
|
|
541
|
+
readonly resultType: "balance";
|
|
542
|
+
readonly kind: "quantity";
|
|
543
|
+
readonly label: "Gift balance";
|
|
544
|
+
readonly info: "Xiaomi MiMo gift balance, when the dashboard reports it.";
|
|
545
|
+
}];
|
|
279
546
|
readonly quickSetupAnchor: "xiaomi-mimo";
|
|
280
547
|
readonly notes: "Reads the Xiaomi MiMo dashboard with a filtered trusted cookie";
|
|
281
548
|
};
|
|
@@ -289,6 +556,26 @@ export declare const QUOTA_PROVIDER_REGISTRATION_SOURCE: readonly [{
|
|
|
289
556
|
readonly authentication: "opencode_auth_api_key";
|
|
290
557
|
readonly authFallbacks: readonly ["env_api_key", "global_opencode_config"];
|
|
291
558
|
readonly quota: "remote_api";
|
|
559
|
+
readonly autoResume: "account";
|
|
560
|
+
readonly optionalVisibilityRows: readonly [{
|
|
561
|
+
readonly rowKey: "window:five_hour";
|
|
562
|
+
readonly resultType: "quota";
|
|
563
|
+
readonly kind: "percent";
|
|
564
|
+
readonly label: "5h";
|
|
565
|
+
readonly info: "OpenCode Go rolling 5-hour window.";
|
|
566
|
+
}, {
|
|
567
|
+
readonly rowKey: "window:week";
|
|
568
|
+
readonly resultType: "quota";
|
|
569
|
+
readonly kind: "percent";
|
|
570
|
+
readonly label: "Weekly";
|
|
571
|
+
readonly info: "OpenCode Go weekly window.";
|
|
572
|
+
}, {
|
|
573
|
+
readonly rowKey: "window:month";
|
|
574
|
+
readonly resultType: "quota";
|
|
575
|
+
readonly kind: "percent";
|
|
576
|
+
readonly label: "Monthly";
|
|
577
|
+
readonly info: "OpenCode Go monthly window.";
|
|
578
|
+
}];
|
|
292
579
|
readonly notes: "Reads the official OpenCode Go usage API through standard Go API-key sources";
|
|
293
580
|
};
|
|
294
581
|
}, {
|
|
@@ -300,6 +587,32 @@ export declare const QUOTA_PROVIDER_REGISTRATION_SOURCE: readonly [{
|
|
|
300
587
|
readonly autoSetup: "yes";
|
|
301
588
|
readonly authentication: "opencode_auth_oauth_token";
|
|
302
589
|
readonly quota: "remote_api";
|
|
590
|
+
readonly autoResume: "account";
|
|
591
|
+
readonly optionalVisibilityRows: readonly [{
|
|
592
|
+
readonly rowKey: "window:month";
|
|
593
|
+
readonly resultType: "budget";
|
|
594
|
+
readonly kind: "percent";
|
|
595
|
+
readonly label: "Monthly budget";
|
|
596
|
+
readonly info: "OpenCode Zen monthly budget usage, when a limit is configured or reported.";
|
|
597
|
+
}, {
|
|
598
|
+
readonly rowKey: "window:month";
|
|
599
|
+
readonly resultType: "spend";
|
|
600
|
+
readonly kind: "quantity";
|
|
601
|
+
readonly label: "Monthly spend";
|
|
602
|
+
readonly info: "OpenCode Zen monthly spend, shown when no budget limit exists.";
|
|
603
|
+
}, {
|
|
604
|
+
readonly rowKey: "component:current_balance";
|
|
605
|
+
readonly resultType: "balance";
|
|
606
|
+
readonly kind: "quantity";
|
|
607
|
+
readonly label: "Balance";
|
|
608
|
+
readonly info: "OpenCode Zen current account balance.";
|
|
609
|
+
}, {
|
|
610
|
+
readonly rowKey: "component:auto_reload";
|
|
611
|
+
readonly resultType: "status";
|
|
612
|
+
readonly kind: "boolean";
|
|
613
|
+
readonly label: "Auto-reload";
|
|
614
|
+
readonly info: "OpenCode Zen auto-reload setting, when the console reports it.";
|
|
615
|
+
}];
|
|
303
616
|
readonly notes: "Reads the OpenCode Console billing, budget and usage APIs with your OpenCode Console sign-in";
|
|
304
617
|
};
|
|
305
618
|
}, {
|
|
@@ -312,6 +625,31 @@ export declare const QUOTA_PROVIDER_REGISTRATION_SOURCE: readonly [{
|
|
|
312
625
|
readonly authentication: "opencode_auth_api_key";
|
|
313
626
|
readonly authFallbacks: readonly ["env_api_key", "global_opencode_config"];
|
|
314
627
|
readonly quota: "remote_api";
|
|
628
|
+
readonly autoResume: "single-source";
|
|
629
|
+
readonly optionalVisibilityRows: readonly [{
|
|
630
|
+
readonly rowKey: "named:Session";
|
|
631
|
+
readonly resultType: "quota";
|
|
632
|
+
readonly kind: "percent";
|
|
633
|
+
readonly label: "Session";
|
|
634
|
+
readonly info: "Ollama Cloud legacy session limit; its fixed reset window is not documented.";
|
|
635
|
+
}, {
|
|
636
|
+
readonly rowKey: "window:week";
|
|
637
|
+
readonly resultType: "quota";
|
|
638
|
+
readonly kind: "percent";
|
|
639
|
+
readonly label: "Weekly";
|
|
640
|
+
readonly info: "Ollama Cloud legacy weekly limit.";
|
|
641
|
+
}, {
|
|
642
|
+
readonly rowKey: "window:month";
|
|
643
|
+
readonly resultType: "quota";
|
|
644
|
+
readonly kind: "percent";
|
|
645
|
+
readonly label: "Monthly";
|
|
646
|
+
readonly info: "Ollama Cloud included credits remaining in the current plan period.";
|
|
647
|
+
}, {
|
|
648
|
+
readonly rowKey: "component:remaining_credits";
|
|
649
|
+
readonly resultType: "balance";
|
|
650
|
+
readonly label: "Purchased";
|
|
651
|
+
readonly info: "Ollama Cloud purchased credits, when any remain.";
|
|
652
|
+
}];
|
|
315
653
|
readonly notes: "Queries the Ollama Cloud balance API; reports included credits or session and weekly limits, plus purchased credits";
|
|
316
654
|
};
|
|
317
655
|
}, {
|
|
@@ -328,4 +666,5 @@ export declare const QUOTA_PROVIDER_REGISTRATION_SOURCE: readonly [{
|
|
|
328
666
|
};
|
|
329
667
|
}];
|
|
330
668
|
export type CanonicalQuotaProviderId = (typeof QUOTA_PROVIDER_REGISTRATION_SOURCE)[number]["id"];
|
|
669
|
+
export {};
|
|
331
670
|
//# sourceMappingURL=provider-registration.d.ts.map
|