@slkiser/opencode-quota 5.0.2 → 5.0.3
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 +2 -2
- package/dist/data/modelsdev-pricing.min.json +248 -22
- package/dist/lib/config.d.ts +1 -1
- package/dist/lib/config.d.ts.map +1 -1
- package/dist/lib/config.js +9 -0
- package/dist/lib/config.js.map +1 -1
- package/dist/lib/cursor-pricing.d.ts.map +1 -1
- package/dist/lib/cursor-pricing.js +1 -0
- package/dist/lib/cursor-pricing.js.map +1 -1
- package/dist/lib/google-agy.js +1 -1
- package/dist/lib/google-agy.js.map +1 -1
- package/dist/lib/modelsdev-pricing.d.ts.map +1 -1
- package/dist/lib/modelsdev-pricing.js +60 -10
- package/dist/lib/modelsdev-pricing.js.map +1 -1
- package/dist/lib/ollama-cloud.d.ts +6 -5
- package/dist/lib/ollama-cloud.d.ts.map +1 -1
- package/dist/lib/ollama-cloud.js +80 -38
- package/dist/lib/ollama-cloud.js.map +1 -1
- package/dist/lib/openai.d.ts +1 -0
- package/dist/lib/openai.d.ts.map +1 -1
- package/dist/lib/openai.js +28 -2
- package/dist/lib/openai.js.map +1 -1
- package/dist/lib/opencode-zen.d.ts +18 -5
- package/dist/lib/opencode-zen.d.ts.map +1 -1
- package/dist/lib/opencode-zen.js +173 -52
- package/dist/lib/opencode-zen.js.map +1 -1
- package/dist/lib/provider-registration.d.ts +1 -1
- package/dist/lib/provider-registration.d.ts.map +1 -1
- package/dist/lib/provider-registration.js +1 -1
- package/dist/lib/provider-registration.js.map +1 -1
- package/dist/lib/quota-status.d.ts.map +1 -1
- package/dist/lib/quota-status.js +1 -0
- package/dist/lib/quota-status.js.map +1 -1
- package/dist/lib/quota-surface-data.d.ts +0 -5
- package/dist/lib/quota-surface-data.d.ts.map +1 -1
- package/dist/lib/quota-surface-data.js +63 -0
- package/dist/lib/quota-surface-data.js.map +1 -1
- package/dist/lib/types.d.ts +25 -11
- package/dist/lib/types.d.ts.map +1 -1
- package/dist/lib/types.js +1 -0
- package/dist/lib/types.js.map +1 -1
- package/dist/providers/cache-policies.d.ts.map +1 -1
- package/dist/providers/cache-policies.js +7 -3
- package/dist/providers/cache-policies.js.map +1 -1
- package/dist/providers/google-agy.d.ts +1 -0
- package/dist/providers/google-agy.d.ts.map +1 -1
- package/dist/providers/google-agy.js +17 -4
- package/dist/providers/google-agy.js.map +1 -1
- package/dist/providers/ollama-cloud.d.ts +2 -1
- package/dist/providers/ollama-cloud.d.ts.map +1 -1
- package/dist/providers/ollama-cloud.js +32 -7
- package/dist/providers/ollama-cloud.js.map +1 -1
- package/dist/providers/openai.d.ts.map +1 -1
- package/dist/providers/openai.js +44 -15
- package/dist/providers/openai.js.map +1 -1
- package/dist/providers/opencode-zen.d.ts.map +1 -1
- package/dist/providers/opencode-zen.js +15 -2
- package/dist/providers/opencode-zen.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -112,7 +112,7 @@ Type these in OpenCode. Add dates after the command, like `/tokens_between 2026-
|
|
|
112
112
|
## Providers
|
|
113
113
|
|
|
114
114
|
Most providers work automatically once you log in through OpenCode. **Needs setup** links show the extra step.
|
|
115
|
-
OpenAI ChatGPT quota
|
|
115
|
+
OpenAI ChatGPT quota needs a Codex login (`/connect` → OpenAI → **Codex browser (legacy)** or **Codex device code (legacy)**). OpenAI doesn't share ChatGPT usage with **Sign in with ChatGPT** logins or API keys, so those show a "ChatGPT quota unavailable" row without a ChatGPT request.
|
|
116
116
|
|
|
117
117
|
### Pre-configured American providers
|
|
118
118
|
|
|
@@ -128,7 +128,7 @@ OpenAI ChatGPT quota requires an OAuth login; stored API keys show "ChatGPT quot
|
|
|
128
128
|
| Google AGY | [Needs setup](docs/readme/providers.md#google-agy-quick-setup) | Remote API | Quota |
|
|
129
129
|
| Kilo Gateway | Automatic | Remote API | Quota and balance |
|
|
130
130
|
| NanoGPT | Automatic | Remote API | Quota and balance |
|
|
131
|
-
| Ollama Cloud | Automatic | Remote API | Quota and
|
|
131
|
+
| Ollama Cloud | Automatic | Remote API | Quota and balance |
|
|
132
132
|
| OpenAI | Automatic | Remote API | Quota |
|
|
133
133
|
| OpenCode Go | Automatic | Remote API | Quota |
|
|
134
134
|
| OpenCode Zen | Automatic | Remote API | Budget and balance |
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_meta": {
|
|
3
|
-
"generatedAt":
|
|
3
|
+
"generatedAt": 1792022035323,
|
|
4
4
|
"providers": [
|
|
5
5
|
"anthropic",
|
|
6
6
|
"google",
|
|
@@ -92,6 +92,12 @@
|
|
|
92
92
|
"cache_read": 0.1,
|
|
93
93
|
"cache_write": 1.25
|
|
94
94
|
},
|
|
95
|
+
"claude-haiku-5-5": {
|
|
96
|
+
"input": 0.1,
|
|
97
|
+
"output": 0.5,
|
|
98
|
+
"cache_read": 0.01,
|
|
99
|
+
"cache_write": 0.125
|
|
100
|
+
},
|
|
95
101
|
"claude-opus-4-0": {
|
|
96
102
|
"input": 15,
|
|
97
103
|
"output": 75,
|
|
@@ -197,11 +203,21 @@
|
|
|
197
203
|
"claude-sonnet-5-5": {
|
|
198
204
|
"input": 2,
|
|
199
205
|
"output": 10,
|
|
200
|
-
"cache_read": 0.
|
|
206
|
+
"cache_read": 0.1,
|
|
201
207
|
"cache_write": 2.5
|
|
202
208
|
}
|
|
203
209
|
},
|
|
204
210
|
"google": {
|
|
211
|
+
"deep-research-max-preview-04-2026": {
|
|
212
|
+
"input": 2,
|
|
213
|
+
"output": 12,
|
|
214
|
+
"cache_read": 0.2
|
|
215
|
+
},
|
|
216
|
+
"deep-research-preview-04-2026": {
|
|
217
|
+
"input": 2,
|
|
218
|
+
"output": 12,
|
|
219
|
+
"cache_read": 0.2
|
|
220
|
+
},
|
|
205
221
|
"gemini-1.5-flash": {
|
|
206
222
|
"input": 0.075,
|
|
207
223
|
"output": 0.3,
|
|
@@ -226,6 +242,10 @@
|
|
|
226
242
|
"input": 0.075,
|
|
227
243
|
"output": 0.3
|
|
228
244
|
},
|
|
245
|
+
"gemini-2.5-computer-use-preview-10-2025": {
|
|
246
|
+
"input": 1.25,
|
|
247
|
+
"output": 10
|
|
248
|
+
},
|
|
229
249
|
"gemini-2.5-flash": {
|
|
230
250
|
"input": 0.3,
|
|
231
251
|
"output": 2.5,
|
|
@@ -244,7 +264,7 @@
|
|
|
244
264
|
"gemini-2.5-flash-lite": {
|
|
245
265
|
"input": 0.1,
|
|
246
266
|
"output": 0.4,
|
|
247
|
-
"cache_read": 0.
|
|
267
|
+
"cache_read": 0.01
|
|
248
268
|
},
|
|
249
269
|
"gemini-2.5-flash-lite-preview-06-17": {
|
|
250
270
|
"input": 0.1,
|
|
@@ -278,7 +298,7 @@
|
|
|
278
298
|
"gemini-2.5-pro": {
|
|
279
299
|
"input": 1.25,
|
|
280
300
|
"output": 10,
|
|
281
|
-
"cache_read": 0.
|
|
301
|
+
"cache_read": 0.125
|
|
282
302
|
},
|
|
283
303
|
"gemini-2.5-pro-preview-05-06": {
|
|
284
304
|
"input": 1.25,
|
|
@@ -299,20 +319,48 @@
|
|
|
299
319
|
"output": 3,
|
|
300
320
|
"cache_read": 0.05
|
|
301
321
|
},
|
|
322
|
+
"gemini-3-pro-image": {
|
|
323
|
+
"input": 2,
|
|
324
|
+
"output": 120
|
|
325
|
+
},
|
|
326
|
+
"gemini-3-pro-image-preview": {
|
|
327
|
+
"input": 2,
|
|
328
|
+
"output": 120
|
|
329
|
+
},
|
|
302
330
|
"gemini-3-pro-preview": {
|
|
303
331
|
"input": 2,
|
|
304
332
|
"output": 12,
|
|
305
333
|
"cache_read": 0.2
|
|
306
334
|
},
|
|
335
|
+
"gemini-3.1-flash-image": {
|
|
336
|
+
"input": 0.5,
|
|
337
|
+
"output": 60
|
|
338
|
+
},
|
|
307
339
|
"gemini-3.1-flash-image-preview": {
|
|
308
|
-
"input": 0.
|
|
340
|
+
"input": 0.5,
|
|
309
341
|
"output": 60
|
|
310
342
|
},
|
|
343
|
+
"gemini-3.1-flash-lite": {
|
|
344
|
+
"input": 0.25,
|
|
345
|
+
"output": 1.5,
|
|
346
|
+
"cache_read": 0.025
|
|
347
|
+
},
|
|
348
|
+
"gemini-3.1-flash-lite-image": {
|
|
349
|
+
"input": 0.25,
|
|
350
|
+
"output": 30
|
|
351
|
+
},
|
|
311
352
|
"gemini-3.1-flash-lite-preview": {
|
|
312
353
|
"input": 0.25,
|
|
313
354
|
"output": 1.5,
|
|
314
|
-
"cache_read": 0.025
|
|
315
|
-
|
|
355
|
+
"cache_read": 0.025
|
|
356
|
+
},
|
|
357
|
+
"gemini-3.1-flash-live-preview": {
|
|
358
|
+
"input": 0.75,
|
|
359
|
+
"output": 4.5
|
|
360
|
+
},
|
|
361
|
+
"gemini-3.1-flash-tts-preview": {
|
|
362
|
+
"input": 1,
|
|
363
|
+
"output": 20
|
|
316
364
|
},
|
|
317
365
|
"gemini-3.1-pro-preview": {
|
|
318
366
|
"input": 2,
|
|
@@ -329,19 +377,52 @@
|
|
|
329
377
|
"output": 9,
|
|
330
378
|
"cache_read": 0.15
|
|
331
379
|
},
|
|
380
|
+
"gemini-3.5-flash-lite": {
|
|
381
|
+
"input": 0.3,
|
|
382
|
+
"output": 2.5,
|
|
383
|
+
"cache_read": 0.03
|
|
384
|
+
},
|
|
385
|
+
"gemini-3.5-live-translate-preview": {
|
|
386
|
+
"input": 3.5,
|
|
387
|
+
"output": 21
|
|
388
|
+
},
|
|
389
|
+
"gemini-3.6-flash": {
|
|
390
|
+
"input": 0.75,
|
|
391
|
+
"output": 3.75,
|
|
392
|
+
"cache_read": 0.075
|
|
393
|
+
},
|
|
394
|
+
"gemini-3.7-flash": {
|
|
395
|
+
"input": 0.75,
|
|
396
|
+
"output": 3.75,
|
|
397
|
+
"cache_read": 0.075
|
|
398
|
+
},
|
|
399
|
+
"gemini-3.8-flash": {
|
|
400
|
+
"input": 0.75,
|
|
401
|
+
"output": 3.75,
|
|
402
|
+
"cache_read": 0.075
|
|
403
|
+
},
|
|
404
|
+
"gemini-4-argon": {
|
|
405
|
+
"input": 2,
|
|
406
|
+
"output": 10,
|
|
407
|
+
"cache_read": 0.1
|
|
408
|
+
},
|
|
332
409
|
"gemini-embedding-001": {
|
|
333
410
|
"input": 0.15,
|
|
334
411
|
"output": 0
|
|
335
412
|
},
|
|
413
|
+
"gemini-embedding-2": {
|
|
414
|
+
"input": 0.2,
|
|
415
|
+
"output": 0
|
|
416
|
+
},
|
|
336
417
|
"gemini-flash-latest": {
|
|
337
|
-
"input": 0.
|
|
338
|
-
"output":
|
|
418
|
+
"input": 0.75,
|
|
419
|
+
"output": 3.75,
|
|
339
420
|
"cache_read": 0.075
|
|
340
421
|
},
|
|
341
422
|
"gemini-flash-lite-latest": {
|
|
342
|
-
"input": 0.
|
|
343
|
-
"output":
|
|
344
|
-
"cache_read": 0.
|
|
423
|
+
"input": 0.3,
|
|
424
|
+
"output": 2.5,
|
|
425
|
+
"cache_read": 0.03
|
|
345
426
|
},
|
|
346
427
|
"gemini-live-2.5-flash": {
|
|
347
428
|
"input": 0.5,
|
|
@@ -350,6 +431,18 @@
|
|
|
350
431
|
"gemini-live-2.5-flash-preview-native-audio": {
|
|
351
432
|
"input": 0.5,
|
|
352
433
|
"output": 2
|
|
434
|
+
},
|
|
435
|
+
"gemini-omni-flash-preview": {
|
|
436
|
+
"input": 1.5,
|
|
437
|
+
"output": 17.5
|
|
438
|
+
},
|
|
439
|
+
"lyria-3-clip-preview": {
|
|
440
|
+
"input": 0,
|
|
441
|
+
"output": 0
|
|
442
|
+
},
|
|
443
|
+
"lyria-3-pro-preview": {
|
|
444
|
+
"input": 0,
|
|
445
|
+
"output": 0
|
|
353
446
|
}
|
|
354
447
|
},
|
|
355
448
|
"moonshotai": {
|
|
@@ -383,15 +476,26 @@
|
|
|
383
476
|
"output": 3,
|
|
384
477
|
"cache_read": 0.1
|
|
385
478
|
},
|
|
479
|
+
"kimi-k2.6": {
|
|
480
|
+
"input": 0.95,
|
|
481
|
+
"output": 4,
|
|
482
|
+
"cache_read": 0.16
|
|
483
|
+
},
|
|
386
484
|
"kimi-k2.7-code": {
|
|
387
485
|
"input": 0.95,
|
|
388
486
|
"output": 4,
|
|
389
487
|
"cache_read": 0.19
|
|
390
488
|
},
|
|
489
|
+
"kimi-k2.7-code-highspeed": {
|
|
490
|
+
"input": 1.9,
|
|
491
|
+
"output": 8,
|
|
492
|
+
"cache_read": 0.38
|
|
493
|
+
},
|
|
391
494
|
"kimi-k3": {
|
|
392
495
|
"input": 3,
|
|
393
496
|
"output": 15,
|
|
394
|
-
"cache_read": 0.3
|
|
497
|
+
"cache_read": 0.3,
|
|
498
|
+
"cache_write": 3
|
|
395
499
|
}
|
|
396
500
|
},
|
|
397
501
|
"openai": {
|
|
@@ -403,7 +507,7 @@
|
|
|
403
507
|
"gpt-3.5-turbo": {
|
|
404
508
|
"input": 0.5,
|
|
405
509
|
"output": 1.5,
|
|
406
|
-
"cache_read":
|
|
510
|
+
"cache_read": 0
|
|
407
511
|
},
|
|
408
512
|
"gpt-4": {
|
|
409
513
|
"input": 30,
|
|
@@ -426,7 +530,7 @@
|
|
|
426
530
|
"gpt-4.1-nano": {
|
|
427
531
|
"input": 0.1,
|
|
428
532
|
"output": 0.4,
|
|
429
|
-
"cache_read": 0.
|
|
533
|
+
"cache_read": 0.025
|
|
430
534
|
},
|
|
431
535
|
"gpt-4o": {
|
|
432
536
|
"input": 2.5,
|
|
@@ -450,7 +554,7 @@
|
|
|
450
554
|
"gpt-4o-mini": {
|
|
451
555
|
"input": 0.15,
|
|
452
556
|
"output": 0.6,
|
|
453
|
-
"cache_read": 0.
|
|
557
|
+
"cache_read": 0.075
|
|
454
558
|
},
|
|
455
559
|
"gpt-5": {
|
|
456
560
|
"input": 1.25,
|
|
@@ -524,6 +628,11 @@
|
|
|
524
628
|
"input": 21,
|
|
525
629
|
"output": 168
|
|
526
630
|
},
|
|
631
|
+
"gpt-5.3-chat-latest": {
|
|
632
|
+
"input": 1.75,
|
|
633
|
+
"output": 14,
|
|
634
|
+
"cache_read": 0.175
|
|
635
|
+
},
|
|
527
636
|
"gpt-5.3-codex": {
|
|
528
637
|
"input": 1.75,
|
|
529
638
|
"output": 14,
|
|
@@ -558,6 +667,16 @@
|
|
|
558
667
|
"output": 30,
|
|
559
668
|
"cache_read": 0.5
|
|
560
669
|
},
|
|
670
|
+
"gpt-5.5-pro": {
|
|
671
|
+
"input": 30,
|
|
672
|
+
"output": 180
|
|
673
|
+
},
|
|
674
|
+
"gpt-5.6": {
|
|
675
|
+
"input": 4,
|
|
676
|
+
"output": 20,
|
|
677
|
+
"cache_read": 0.4,
|
|
678
|
+
"cache_write": 5
|
|
679
|
+
},
|
|
561
680
|
"gpt-5.6-luna": {
|
|
562
681
|
"input": 0.2,
|
|
563
682
|
"output": 1.2,
|
|
@@ -576,6 +695,52 @@
|
|
|
576
695
|
"cache_read": 0.2,
|
|
577
696
|
"cache_write": 2.5
|
|
578
697
|
},
|
|
698
|
+
"gpt-6-astra": {
|
|
699
|
+
"input": 10,
|
|
700
|
+
"output": 50,
|
|
701
|
+
"cache_read": 1,
|
|
702
|
+
"cache_write": 12.5
|
|
703
|
+
},
|
|
704
|
+
"gpt-6-luna": {
|
|
705
|
+
"input": 0.1,
|
|
706
|
+
"output": 0.5,
|
|
707
|
+
"cache_read": 0.01,
|
|
708
|
+
"cache_write": 0.125
|
|
709
|
+
},
|
|
710
|
+
"gpt-6-sol": {
|
|
711
|
+
"input": 2,
|
|
712
|
+
"output": 10,
|
|
713
|
+
"cache_read": 0.2,
|
|
714
|
+
"cache_write": 2.5
|
|
715
|
+
},
|
|
716
|
+
"gpt-6.1-sol": {
|
|
717
|
+
"input": 2,
|
|
718
|
+
"output": 10,
|
|
719
|
+
"cache_read": 0.1,
|
|
720
|
+
"cache_write": 2.5
|
|
721
|
+
},
|
|
722
|
+
"gpt-daybreak-blue-latest": {
|
|
723
|
+
"input": 4,
|
|
724
|
+
"output": 20,
|
|
725
|
+
"cache_read": 0.4,
|
|
726
|
+
"cache_write": 5
|
|
727
|
+
},
|
|
728
|
+
"gpt-daybreak-red-latest": {
|
|
729
|
+
"input": 12.5,
|
|
730
|
+
"output": 75,
|
|
731
|
+
"cache_read": 1.25,
|
|
732
|
+
"cache_write": 15.625
|
|
733
|
+
},
|
|
734
|
+
"gpt-image-2": {
|
|
735
|
+
"input": 5,
|
|
736
|
+
"output": 30,
|
|
737
|
+
"cache_read": 1.25
|
|
738
|
+
},
|
|
739
|
+
"gpt-realtime-2.1": {
|
|
740
|
+
"input": 4,
|
|
741
|
+
"output": 24,
|
|
742
|
+
"cache_read": 0.4
|
|
743
|
+
},
|
|
579
744
|
"o1": {
|
|
580
745
|
"input": 15,
|
|
581
746
|
"output": 60,
|
|
@@ -617,7 +782,7 @@
|
|
|
617
782
|
"o4-mini": {
|
|
618
783
|
"input": 1.1,
|
|
619
784
|
"output": 4.4,
|
|
620
|
-
"cache_read": 0.
|
|
785
|
+
"cache_read": 0.275
|
|
621
786
|
},
|
|
622
787
|
"o4-mini-deep-research": {
|
|
623
788
|
"input": 2,
|
|
@@ -734,25 +899,50 @@
|
|
|
734
899
|
"cache_read": 0.05
|
|
735
900
|
},
|
|
736
901
|
"grok-4.20-0309-non-reasoning": {
|
|
737
|
-
"input":
|
|
738
|
-
"output":
|
|
902
|
+
"input": 1.25,
|
|
903
|
+
"output": 2.5,
|
|
739
904
|
"cache_read": 0.2
|
|
740
905
|
},
|
|
741
906
|
"grok-4.20-0309-reasoning": {
|
|
742
|
-
"input":
|
|
743
|
-
"output":
|
|
907
|
+
"input": 1.25,
|
|
908
|
+
"output": 2.5,
|
|
744
909
|
"cache_read": 0.2
|
|
745
910
|
},
|
|
746
911
|
"grok-4.20-multi-agent-0309": {
|
|
912
|
+
"input": 1.25,
|
|
913
|
+
"output": 2.5,
|
|
914
|
+
"cache_read": 0.2
|
|
915
|
+
},
|
|
916
|
+
"grok-4.3": {
|
|
917
|
+
"input": 1.25,
|
|
918
|
+
"output": 2.5,
|
|
919
|
+
"cache_read": 0.2
|
|
920
|
+
},
|
|
921
|
+
"grok-4.5": {
|
|
747
922
|
"input": 2,
|
|
748
923
|
"output": 6,
|
|
749
|
-
"cache_read": 0.
|
|
924
|
+
"cache_read": 0.3
|
|
925
|
+
},
|
|
926
|
+
"grok-4.6": {
|
|
927
|
+
"input": 2,
|
|
928
|
+
"output": 6,
|
|
929
|
+
"cache_read": 0.5
|
|
930
|
+
},
|
|
931
|
+
"grok-4.7": {
|
|
932
|
+
"input": 2,
|
|
933
|
+
"output": 6,
|
|
934
|
+
"cache_read": 0.5
|
|
750
935
|
},
|
|
751
936
|
"grok-beta": {
|
|
752
937
|
"input": 5,
|
|
753
938
|
"output": 15,
|
|
754
939
|
"cache_read": 5
|
|
755
940
|
},
|
|
941
|
+
"grok-build-0.1": {
|
|
942
|
+
"input": 1,
|
|
943
|
+
"output": 2,
|
|
944
|
+
"cache_read": 0.2
|
|
945
|
+
},
|
|
756
946
|
"grok-code-fast-1": {
|
|
757
947
|
"input": 0.2,
|
|
758
948
|
"output": 1.5,
|
|
@@ -797,6 +987,12 @@
|
|
|
797
987
|
"input": 0.3,
|
|
798
988
|
"output": 0.9
|
|
799
989
|
},
|
|
990
|
+
"glm-4.6v-flash": {
|
|
991
|
+
"input": 0,
|
|
992
|
+
"output": 0,
|
|
993
|
+
"cache_read": 0,
|
|
994
|
+
"cache_write": 0
|
|
995
|
+
},
|
|
800
996
|
"glm-4.7": {
|
|
801
997
|
"input": 0.6,
|
|
802
998
|
"output": 2.2,
|
|
@@ -809,6 +1005,12 @@
|
|
|
809
1005
|
"cache_read": 0,
|
|
810
1006
|
"cache_write": 0
|
|
811
1007
|
},
|
|
1008
|
+
"glm-4.7-flashx": {
|
|
1009
|
+
"input": 0.07,
|
|
1010
|
+
"output": 0.4,
|
|
1011
|
+
"cache_read": 0.01,
|
|
1012
|
+
"cache_write": 0
|
|
1013
|
+
},
|
|
812
1014
|
"glm-5": {
|
|
813
1015
|
"input": 1,
|
|
814
1016
|
"output": 3.2,
|
|
@@ -821,6 +1023,12 @@
|
|
|
821
1023
|
"cache_read": 0.24,
|
|
822
1024
|
"cache_write": 0
|
|
823
1025
|
},
|
|
1026
|
+
"glm-5.1": {
|
|
1027
|
+
"input": 1.4,
|
|
1028
|
+
"output": 4.4,
|
|
1029
|
+
"cache_read": 0.26,
|
|
1030
|
+
"cache_write": 0
|
|
1031
|
+
},
|
|
824
1032
|
"glm-5.2": {
|
|
825
1033
|
"input": 1.4,
|
|
826
1034
|
"output": 4.4,
|
|
@@ -832,6 +1040,24 @@
|
|
|
832
1040
|
"output": 4.4,
|
|
833
1041
|
"cache_read": 0.26,
|
|
834
1042
|
"cache_write": 0
|
|
1043
|
+
},
|
|
1044
|
+
"glm-5.3-flash": {
|
|
1045
|
+
"input": 0.15,
|
|
1046
|
+
"output": 0.5,
|
|
1047
|
+
"cache_read": 0.03,
|
|
1048
|
+
"cache_write": 0
|
|
1049
|
+
},
|
|
1050
|
+
"glm-5.3-flashx": {
|
|
1051
|
+
"input": 0.37,
|
|
1052
|
+
"output": 1.25,
|
|
1053
|
+
"cache_read": 0.075,
|
|
1054
|
+
"cache_write": 0
|
|
1055
|
+
},
|
|
1056
|
+
"glm-5v-turbo": {
|
|
1057
|
+
"input": 1.2,
|
|
1058
|
+
"output": 4,
|
|
1059
|
+
"cache_read": 0.24,
|
|
1060
|
+
"cache_write": 0
|
|
835
1061
|
}
|
|
836
1062
|
}
|
|
837
1063
|
}
|
package/dist/lib/config.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
import type { QuotaToastConfig } from "./types.js";
|
|
10
10
|
export declare const QUOTA_TOAST_CONFIG_RELATIVE_PATHS: readonly ["opencode-quota/quota-toast.jsonc", "opencode-quota/quota-toast.json"];
|
|
11
11
|
export declare const QUOTA_TOAST_CONFIG_RELATIVE_PATH: "opencode-quota/quota-toast.json";
|
|
12
|
-
export declare const QUOTA_TOAST_SETTING_SOURCE_KEYS: readonly ["enabled", "enableToast", "resetNotifications.enabled", "resetNotifications.windows", "tuiCommandDisplay", "formatStyle", "percentDisplayMode", "quotaProjection", "percentLabelStyle", "accountingDetail", "resetTimeDecimals", "resetTimeSpaced", "minIntervalMs", "requestTimeoutMs", "debug", "enabledProviders", "quotaProviders", "anthropicBinaryPath", "cursorPlan", "cursorIncludedApiUsd", "cursorBillingCycleStartDay", "opencodeGoWindows", "opencodeMonthlyLimit", "pricingSnapshot.source", "pricingSnapshot.autoRefresh", "showOnIdle", "showOnQuestion", "showOnCompact", "showOnBothFail", "toastDurationMs", "onlyCurrentModel", "waitForQuotaReset", "showSessionTokens", "sessionTokenScope", "tuiSidebarPanel.enabled", "tuiSidebarPanel.formatStyle", "tuiSidebarPanel.opencodeGoPreferredWindow", "tuiCompactStatus.enabled", "tuiCompactStatus.homeBottom", "tuiCompactStatus.sessionPrompt", "tuiCompactStatus.maxWidth", "tuiCompactStatus.formatStyle", "tuiPromptBar.enabled", "maintainerAnnouncements.enabled", "maintainerAnnouncements.home", "layout.maxWidth", "layout.narrowAt", "layout.tinyAt", "export.enabled", "export.path", "telemetry.enabled"];
|
|
12
|
+
export declare const QUOTA_TOAST_SETTING_SOURCE_KEYS: readonly ["enabled", "enableToast", "resetNotifications.enabled", "resetNotifications.windows", "tuiCommandDisplay", "formatStyle", "percentDisplayMode", "quotaProjection", "percentLabelStyle", "accountingDetail", "resetTimeDecimals", "resetTimeSpaced", "minIntervalMs", "requestTimeoutMs", "debug", "enabledProviders", "quotaProviders", "anthropicBinaryPath", "cursorPlan", "cursorIncludedApiUsd", "cursorBillingCycleStartDay", "opencodeGoWindows", "opencodeMonthlyLimit", "pricingSnapshot.source", "pricingSnapshot.autoRefresh", "showOnIdle", "showOnQuestion", "showOnCompact", "showOnBothFail", "toastDurationMs", "onlyCurrentModel", "waitForQuotaReset", "showSessionTokens", "sessionTokenScope", "tuiSidebarPanel.enabled", "tuiSidebarPanel.formatStyle", "tuiSidebarPanel.opencodeGoPreferredWindow", "tuiCompactStatus.enabled", "tuiCompactStatus.homeBottom", "tuiCompactStatus.sessionPrompt", "tuiCompactStatus.maxWidth", "tuiCompactStatus.formatStyle", "tuiPromptBar.enabled", "maintainerAnnouncements.enabled", "maintainerAnnouncements.home", "maintainerAnnouncements.homeFrequency", "layout.maxWidth", "layout.narrowAt", "layout.tinyAt", "export.enabled", "export.path", "telemetry.enabled"];
|
|
13
13
|
export type QuotaToastSettingSourceKey = (typeof QUOTA_TOAST_SETTING_SOURCE_KEYS)[number];
|
|
14
14
|
export type QuotaToastSettingSources = Partial<Record<QuotaToastSettingSourceKey, string>>;
|
|
15
15
|
export interface LoadConfigIssue {
|
package/dist/lib/config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/lib/config.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAaH,OAAO,KAAK,EAMV,gBAAgB,EAGjB,MAAM,YAAY,CAAC;AAGpB,eAAO,MAAM,iCAAiC,YAC5C,kCAAkC,EAClC,iCAAiC,CACzB,CAAC;AACX,eAAO,MAAM,gCAAgC,mCAAuC,CAAC;AAErF,eAAO,MAAM,+BAA+B,YAC1C,SAAS,EACT,aAAa,EACb,4BAA4B,EAC5B,4BAA4B,EAC5B,mBAAmB,EACnB,aAAa,EACb,oBAAoB,EACpB,iBAAiB,EACjB,mBAAmB,EACnB,kBAAkB,EAClB,mBAAmB,EACnB,iBAAiB,EACjB,eAAe,EACf,kBAAkB,EAClB,OAAO,EACP,kBAAkB,EAClB,gBAAgB,EAChB,qBAAqB,EACrB,YAAY,EACZ,sBAAsB,EACtB,4BAA4B,EAC5B,mBAAmB,EACnB,sBAAsB,EACtB,wBAAwB,EACxB,6BAA6B,EAC7B,YAAY,EACZ,gBAAgB,EAChB,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,yBAAyB,EACzB,6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KAAK,EAAE,gBAAgB,CAAC;IACxB,IAAI,EAAE,eAAe,CAAC;CACvB;AAED,wBAAgB,uBAAuB,CACrC,aAAa,EAAE,MAAM,EACrB,MAAM,GAAE,MAAM,GAAG,OAAgB,GAChC,MAAM,CAER;AAED,wBAAgB,2BAA2B,CAAC,aAAa,EAAE,MAAM,GAAG,MAAM,CAMzE;
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/lib/config.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAaH,OAAO,KAAK,EAMV,gBAAgB,EAGjB,MAAM,YAAY,CAAC;AAGpB,eAAO,MAAM,iCAAiC,YAC5C,kCAAkC,EAClC,iCAAiC,CACzB,CAAC;AACX,eAAO,MAAM,gCAAgC,mCAAuC,CAAC;AAErF,eAAO,MAAM,+BAA+B,YAC1C,SAAS,EACT,aAAa,EACb,4BAA4B,EAC5B,4BAA4B,EAC5B,mBAAmB,EACnB,aAAa,EACb,oBAAoB,EACpB,iBAAiB,EACjB,mBAAmB,EACnB,kBAAkB,EAClB,mBAAmB,EACnB,iBAAiB,EACjB,eAAe,EACf,kBAAkB,EAClB,OAAO,EACP,kBAAkB,EAClB,gBAAgB,EAChB,qBAAqB,EACrB,YAAY,EACZ,sBAAsB,EACtB,4BAA4B,EAC5B,mBAAmB,EACnB,sBAAsB,EACtB,wBAAwB,EACxB,6BAA6B,EAC7B,YAAY,EACZ,gBAAgB,EAChB,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,yBAAyB,EACzB,6BAA6B,EAC7B,2CAA2C,EAC3C,0BAA0B,EAC1B,6BAA6B,EAC7B,gCAAgC,EAChC,2BAA2B,EAC3B,8BAA8B,EAC9B,sBAAsB,EACtB,iCAAiC,EACjC,8BAA8B,EAC9B,uCAAuC,EACvC,iBAAiB,EACjB,iBAAiB,EACjB,eAAe,EACf,gBAAgB,EAChB,a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,GAAG,MAAM,CAMzE;AA4/BD,wBAAgB,0BAA0B,CACxC,eAAe,EAAE,MAAM,EACvB,aAAa,EAAE,MAAM,GACpB,oBAAoB,EAAE,CASxB;AAYD;;;;;GAKG;AACH,wBAAsB,UAAU,CAC9B,MAAM,EACF;IACE,MAAM,EAAE;QACN,GAAG,EAAE,MAAM,OAAO,CAAC;YACjB,IAAI,CAAC,EAAE;gBAAE,YAAY,CAAC,EAAE;oBAAE,UAAU,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC,CAAA;iBAAE,CAAA;aAAE,CAAC;SACtE,CAAC,CAAC;KACJ,CAAC;CACH,GACD,SAAS,EACb,IAAI,CAAC,EAAE,cAAc,EACrB,OAAO,CAAC,EAAE,iBAAiB,GAC1B,OAAO,CAAC,gBAAgB,CAAC,CAmP3B"}
|
package/dist/lib/config.js
CHANGED
|
@@ -66,6 +66,7 @@ export const QUOTA_TOAST_SETTING_SOURCE_KEYS = [
|
|
|
66
66
|
"tuiPromptBar.enabled",
|
|
67
67
|
"maintainerAnnouncements.enabled",
|
|
68
68
|
"maintainerAnnouncements.home",
|
|
69
|
+
"maintainerAnnouncements.homeFrequency",
|
|
69
70
|
"layout.maxWidth",
|
|
70
71
|
"layout.narrowAt",
|
|
71
72
|
"layout.tinyAt",
|
|
@@ -355,6 +356,10 @@ function extractMaintainerAnnouncementsPatch(value) {
|
|
|
355
356
|
if (hasOwnKey(value, "home") && typeof value.home === "boolean") {
|
|
356
357
|
patch.home = value.home;
|
|
357
358
|
}
|
|
359
|
+
if (hasOwnKey(value, "homeFrequency") &&
|
|
360
|
+
(value.homeFrequency === "daily" || value.homeFrequency === "always")) {
|
|
361
|
+
patch.homeFrequency = value.homeFrequency;
|
|
362
|
+
}
|
|
358
363
|
return Object.keys(patch).length > 0 ? patch : undefined;
|
|
359
364
|
}
|
|
360
365
|
function extractLayoutPatch(value) {
|
|
@@ -791,6 +796,10 @@ function applyValidatedQuotaToastPatch(config, patch, sourcePath, settingSources
|
|
|
791
796
|
config.maintainerAnnouncements.home = patch.maintainerAnnouncements.home;
|
|
792
797
|
applySettingSource(settingSources, "maintainerAnnouncements.home", sourcePath);
|
|
793
798
|
}
|
|
799
|
+
if (hasOwnKey(patch.maintainerAnnouncements, "homeFrequency")) {
|
|
800
|
+
config.maintainerAnnouncements.homeFrequency = patch.maintainerAnnouncements.homeFrequency;
|
|
801
|
+
applySettingSource(settingSources, "maintainerAnnouncements.homeFrequency", sourcePath);
|
|
802
|
+
}
|
|
794
803
|
}
|
|
795
804
|
if (patch.layout) {
|
|
796
805
|
if (hasOwnKey(patch.layout, "maxWidth")) {
|