pi-free 2.0.7 → 2.0.9

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.
Files changed (42) hide show
  1. package/CHANGELOG.md +96 -10
  2. package/README.md +572 -495
  3. package/config.ts +58 -11
  4. package/constants.ts +12 -0
  5. package/index.ts +67 -3
  6. package/lib/built-in-toggle.ts +2 -2
  7. package/lib/model-detection.ts +2 -1
  8. package/lib/model-enhancer.ts +1 -1
  9. package/lib/open-browser.ts +1 -1
  10. package/lib/provider-compat.ts +1 -1
  11. package/lib/quota-monitor.ts +123 -0
  12. package/lib/registry.ts +1 -1
  13. package/lib/types.ts +101 -101
  14. package/lib/util.ts +460 -351
  15. package/package.json +4 -4
  16. package/provider-failover/benchmark-lookup.ts +743 -702
  17. package/provider-failover/benchmarks-chunk-0.ts +48 -48
  18. package/provider-failover/benchmarks-chunk-1.ts +44 -44
  19. package/provider-failover/benchmarks-chunk-2.ts +39 -39
  20. package/provider-failover/benchmarks-chunk-3.ts +41 -41
  21. package/provider-failover/benchmarks-chunk-4.ts +33 -33
  22. package/provider-helper.ts +1 -1
  23. package/providers/cline/cline-auth.ts +473 -473
  24. package/providers/cline/cline-models.ts +2 -2
  25. package/providers/cline/cline.ts +3 -3
  26. package/providers/codestral/codestral.ts +139 -0
  27. package/providers/crofai/crofai.ts +14 -85
  28. package/providers/deepinfra/deepinfra.ts +109 -0
  29. package/providers/dynamic-built-in/index.ts +1 -1
  30. package/providers/kilo/kilo-auth.ts +155 -155
  31. package/providers/kilo/kilo.ts +3 -3
  32. package/providers/llm7/llm7.ts +156 -0
  33. package/providers/model-fetcher.ts +2 -2
  34. package/providers/nvidia/nvidia.ts +5 -5
  35. package/providers/ollama/ollama.ts +2 -2
  36. package/providers/opencode-session.ts +1 -1
  37. package/providers/qwen/qwen-auth.ts +1 -1
  38. package/providers/qwen/qwen-models.ts +1 -1
  39. package/providers/qwen/qwen.ts +3 -3
  40. package/providers/sambanova/sambanova.ts +109 -0
  41. package/providers/zenmux/zenmux.ts +6 -3
  42. package/scripts/check-extensions.mjs +6 -4
@@ -121,7 +121,7 @@ export const BENCHMARKS_CHUNK_0: Record<string, HardcodedBenchmark> = {
121
121
  normalizedScore: 54,
122
122
 
123
123
  // AA specific benchmarks
124
- codingIndex: 35.0,
124
+ codingIndex: 35,
125
125
  mathIndex: undefined,
126
126
 
127
127
  // Academic benchmarks
@@ -165,7 +165,7 @@ export const BENCHMARKS_CHUNK_0: Record<string, HardcodedBenchmark> = {
165
165
  normalizedScore: 51,
166
166
 
167
167
  // AA specific benchmarks
168
- codingIndex: 41.0,
168
+ codingIndex: 41,
169
169
  mathIndex: undefined,
170
170
 
171
171
  // Academic benchmarks
@@ -315,7 +315,7 @@ export const BENCHMARKS_CHUNK_0: Record<string, HardcodedBenchmark> = {
315
315
  },
316
316
  "gpt-5.3-codex-xhigh": {
317
317
  // AA Intelligence Index (composite score)
318
- intelligenceIndex: 54.0,
318
+ intelligenceIndex: 54,
319
319
  normalizedScore: 77,
320
320
 
321
321
  // AA specific benchmarks
@@ -364,7 +364,7 @@ export const BENCHMARKS_CHUNK_0: Record<string, HardcodedBenchmark> = {
364
364
 
365
365
  // AA specific benchmarks
366
366
  codingIndex: 14.5,
367
- mathIndex: 3.0,
367
+ mathIndex: 3,
368
368
 
369
369
  // Academic benchmarks
370
370
  mmluPro: 0.732,
@@ -452,7 +452,7 @@ export const BENCHMARKS_CHUNK_0: Record<string, HardcodedBenchmark> = {
452
452
 
453
453
  // AA specific benchmarks
454
454
  codingIndex: 6.7,
455
- mathIndex: 14.0,
455
+ mathIndex: 14,
456
456
 
457
457
  // Academic benchmarks
458
458
  mmluPro: 0.752,
@@ -491,7 +491,7 @@ export const BENCHMARKS_CHUNK_0: Record<string, HardcodedBenchmark> = {
491
491
  },
492
492
  "gemini-3-flash-preview-non-reasoning": {
493
493
  // AA Intelligence Index (composite score)
494
- intelligenceIndex: 35.0,
494
+ intelligenceIndex: 35,
495
495
  normalizedScore: 50,
496
496
 
497
497
  // AA specific benchmarks
@@ -671,7 +671,7 @@ export const BENCHMARKS_CHUNK_0: Record<string, HardcodedBenchmark> = {
671
671
  normalizedScore: 22,
672
672
 
673
673
  // AA specific benchmarks
674
- codingIndex: 9.0,
674
+ codingIndex: 9,
675
675
  mathIndex: undefined,
676
676
 
677
677
  // Academic benchmarks
@@ -716,7 +716,7 @@ export const BENCHMARKS_CHUNK_0: Record<string, HardcodedBenchmark> = {
716
716
 
717
717
  // AA specific benchmarks
718
718
  codingIndex: 42.6,
719
- mathIndex: 97.0,
719
+ mathIndex: 97,
720
720
 
721
721
  // Academic benchmarks
722
722
  mmluPro: 0.89,
@@ -825,7 +825,7 @@ export const BENCHMARKS_CHUNK_0: Record<string, HardcodedBenchmark> = {
825
825
  normalizedScore: 11,
826
826
 
827
827
  // AA specific benchmarks
828
- codingIndex: 0.0,
828
+ codingIndex: 0,
829
829
  mathIndex: 2.3,
830
830
 
831
831
  // Academic benchmarks
@@ -892,7 +892,7 @@ export const BENCHMARKS_CHUNK_0: Record<string, HardcodedBenchmark> = {
892
892
 
893
893
  // AA specific benchmarks
894
894
  codingIndex: 29.6,
895
- mathIndex: 39.0,
895
+ mathIndex: 39,
896
896
 
897
897
  // Academic benchmarks
898
898
  mmluPro: 0.8,
@@ -953,7 +953,7 @@ export const BENCHMARKS_CHUNK_0: Record<string, HardcodedBenchmark> = {
953
953
  },
954
954
  "claude-opus-4.6-adaptive-reasoning-max-effort": {
955
955
  // AA Intelligence Index (composite score)
956
- intelligenceIndex: 53.0,
956
+ intelligenceIndex: 53,
957
957
  normalizedScore: 76,
958
958
 
959
959
  // AA specific benchmarks
@@ -1023,7 +1023,7 @@ export const BENCHMARKS_CHUNK_0: Record<string, HardcodedBenchmark> = {
1023
1023
  normalizedScore: 61,
1024
1024
 
1025
1025
  // AA specific benchmarks
1026
- codingIndex: 43.0,
1026
+ codingIndex: 43,
1027
1027
  mathIndex: undefined,
1028
1028
 
1029
1029
  // Academic benchmarks
@@ -1046,7 +1046,7 @@ export const BENCHMARKS_CHUNK_0: Record<string, HardcodedBenchmark> = {
1046
1046
 
1047
1047
  // AA specific benchmarks
1048
1048
  codingIndex: 22.7,
1049
- mathIndex: 38.0,
1049
+ mathIndex: 38,
1050
1050
 
1051
1051
  // Academic benchmarks
1052
1052
  mmluPro: 0.807,
@@ -1063,7 +1063,7 @@ export const BENCHMARKS_CHUNK_0: Record<string, HardcodedBenchmark> = {
1063
1063
  },
1064
1064
  "devstral-2": {
1065
1065
  // AA Intelligence Index (composite score)
1066
- intelligenceIndex: 22.0,
1066
+ intelligenceIndex: 22,
1067
1067
  normalizedScore: 31,
1068
1068
 
1069
1069
  // AA specific benchmarks
@@ -1111,7 +1111,7 @@ export const BENCHMARKS_CHUNK_0: Record<string, HardcodedBenchmark> = {
1111
1111
  normalizedScore: 21,
1112
1112
 
1113
1113
  // AA specific benchmarks
1114
- codingIndex: 10.0,
1114
+ codingIndex: 10,
1115
1115
  mathIndex: 31.7,
1116
1116
 
1117
1117
  // Academic benchmarks
@@ -1129,12 +1129,12 @@ export const BENCHMARKS_CHUNK_0: Record<string, HardcodedBenchmark> = {
1129
1129
  },
1130
1130
  "ministral-3-14b": {
1131
1131
  // AA Intelligence Index (composite score)
1132
- intelligenceIndex: 16.0,
1132
+ intelligenceIndex: 16,
1133
1133
  normalizedScore: 23,
1134
1134
 
1135
1135
  // AA specific benchmarks
1136
1136
  codingIndex: 10.9,
1137
- mathIndex: 30.0,
1137
+ mathIndex: 30,
1138
1138
 
1139
1139
  // Academic benchmarks
1140
1140
  mmluPro: 0.693,
@@ -1156,7 +1156,7 @@ export const BENCHMARKS_CHUNK_0: Record<string, HardcodedBenchmark> = {
1156
1156
 
1157
1157
  // AA specific benchmarks
1158
1158
  codingIndex: 21.7,
1159
- mathIndex: 82.0,
1159
+ mathIndex: 82,
1160
1160
 
1161
1161
  // Academic benchmarks
1162
1162
  mmluPro: 0.815,
@@ -1222,7 +1222,7 @@ export const BENCHMARKS_CHUNK_0: Record<string, HardcodedBenchmark> = {
1222
1222
 
1223
1223
  // AA specific benchmarks
1224
1224
  codingIndex: 4.8,
1225
- mathIndex: 22.0,
1225
+ mathIndex: 22,
1226
1226
 
1227
1227
  // Academic benchmarks
1228
1228
  mmluPro: 0.524,
@@ -1283,7 +1283,7 @@ export const BENCHMARKS_CHUNK_0: Record<string, HardcodedBenchmark> = {
1283
1283
  },
1284
1284
  "deepseek-r1-distill-llama-70b": {
1285
1285
  // AA Intelligence Index (composite score)
1286
- intelligenceIndex: 16.0,
1286
+ intelligenceIndex: 16,
1287
1287
  normalizedScore: 23,
1288
1288
 
1289
1289
  // AA specific benchmarks
@@ -1309,8 +1309,8 @@ export const BENCHMARKS_CHUNK_0: Record<string, HardcodedBenchmark> = {
1309
1309
  normalizedScore: 39,
1310
1310
 
1311
1311
  // AA specific benchmarks
1312
- codingIndex: 24.0,
1313
- mathIndex: 76.0,
1312
+ codingIndex: 24,
1313
+ mathIndex: 76,
1314
1314
 
1315
1315
  // Academic benchmarks
1316
1316
  mmluPro: 0.849,
@@ -1332,7 +1332,7 @@ export const BENCHMARKS_CHUNK_0: Record<string, HardcodedBenchmark> = {
1332
1332
 
1333
1333
  // AA specific benchmarks
1334
1334
  codingIndex: 34.6,
1335
- mathIndex: 59.0,
1335
+ mathIndex: 59,
1336
1336
 
1337
1337
  // Academic benchmarks
1338
1338
  mmluPro: 0.837,
@@ -1398,7 +1398,7 @@ export const BENCHMARKS_CHUNK_0: Record<string, HardcodedBenchmark> = {
1398
1398
 
1399
1399
  // AA specific benchmarks
1400
1400
  codingIndex: 36.7,
1401
- mathIndex: 92.0,
1401
+ mathIndex: 92,
1402
1402
 
1403
1403
  // Academic benchmarks
1404
1404
  mmluPro: 0.862,
@@ -1415,7 +1415,7 @@ export const BENCHMARKS_CHUNK_0: Record<string, HardcodedBenchmark> = {
1415
1415
  },
1416
1416
  "r1-1776": {
1417
1417
  // AA Intelligence Index (composite score)
1418
- intelligenceIndex: 12.0,
1418
+ intelligenceIndex: 12,
1419
1419
  normalizedScore: 17,
1420
1420
 
1421
1421
  // AA specific benchmarks
@@ -1442,7 +1442,7 @@ export const BENCHMARKS_CHUNK_0: Record<string, HardcodedBenchmark> = {
1442
1442
 
1443
1443
  // AA specific benchmarks
1444
1444
  codingIndex: 9.8,
1445
- mathIndex: 80.0,
1445
+ mathIndex: 80,
1446
1446
 
1447
1447
  // Academic benchmarks
1448
1448
  mmluPro: 0.725,
@@ -1552,7 +1552,7 @@ export const BENCHMARKS_CHUNK_0: Record<string, HardcodedBenchmark> = {
1552
1552
 
1553
1553
  // AA specific benchmarks
1554
1554
  codingIndex: 4.1,
1555
- mathIndex: 6.0,
1555
+ mathIndex: 6,
1556
1556
 
1557
1557
  // Academic benchmarks
1558
1558
  mmluPro: 0.531,
@@ -1569,7 +1569,7 @@ export const BENCHMARKS_CHUNK_0: Record<string, HardcodedBenchmark> = {
1569
1569
  },
1570
1570
  "nova-premier": {
1571
1571
  // AA Intelligence Index (composite score)
1572
- intelligenceIndex: 19.0,
1572
+ intelligenceIndex: 19,
1573
1573
  normalizedScore: 27,
1574
1574
 
1575
1575
  // AA specific benchmarks
@@ -1589,7 +1589,7 @@ export const BENCHMARKS_CHUNK_0: Record<string, HardcodedBenchmark> = {
1589
1589
  // Metadata
1590
1590
  lastUpdated: "2026-04-06",
1591
1591
  },
1592
- "nova-2.0-lite-low": {
1592
+ "nova-2-lite-low": {
1593
1593
  // AA Intelligence Index (composite score)
1594
1594
  intelligenceIndex: 24.6,
1595
1595
  normalizedScore: 35,
@@ -1611,7 +1611,7 @@ export const BENCHMARKS_CHUNK_0: Record<string, HardcodedBenchmark> = {
1611
1611
  // Metadata
1612
1612
  lastUpdated: "2026-04-06",
1613
1613
  },
1614
- "nova-2.0-lite-medium": {
1614
+ "nova-2-lite-medium": {
1615
1615
  // AA Intelligence Index (composite score)
1616
1616
  intelligenceIndex: 29.7,
1617
1617
  normalizedScore: 42,
@@ -1633,7 +1633,7 @@ export const BENCHMARKS_CHUNK_0: Record<string, HardcodedBenchmark> = {
1633
1633
  // Metadata
1634
1634
  lastUpdated: "2026-04-06",
1635
1635
  },
1636
- "nova-2.0-pro-preview-non-reasoning": {
1636
+ "nova-2-pro-preview-non-reasoning": {
1637
1637
  // AA Intelligence Index (composite score)
1638
1638
  intelligenceIndex: 23.1,
1639
1639
  normalizedScore: 33,
@@ -1655,7 +1655,7 @@ export const BENCHMARKS_CHUNK_0: Record<string, HardcodedBenchmark> = {
1655
1655
  // Metadata
1656
1656
  lastUpdated: "2026-04-06",
1657
1657
  },
1658
- "nova-2.0-pro-preview-low": {
1658
+ "nova-2-pro-preview-low": {
1659
1659
  // AA Intelligence Index (composite score)
1660
1660
  intelligenceIndex: 31.9,
1661
1661
  normalizedScore: 46,
@@ -1677,14 +1677,14 @@ export const BENCHMARKS_CHUNK_0: Record<string, HardcodedBenchmark> = {
1677
1677
  // Metadata
1678
1678
  lastUpdated: "2026-04-06",
1679
1679
  },
1680
- "nova-2.0-omni-non-reasoning": {
1680
+ "nova-2-omni-non-reasoning": {
1681
1681
  // AA Intelligence Index (composite score)
1682
1682
  intelligenceIndex: 16.6,
1683
1683
  normalizedScore: 24,
1684
1684
 
1685
1685
  // AA specific benchmarks
1686
1686
  codingIndex: 13.8,
1687
- mathIndex: 37.0,
1687
+ mathIndex: 37,
1688
1688
 
1689
1689
  // Academic benchmarks
1690
1690
  mmluPro: 0.719,
@@ -1699,9 +1699,9 @@ export const BENCHMARKS_CHUNK_0: Record<string, HardcodedBenchmark> = {
1699
1699
  // Metadata
1700
1700
  lastUpdated: "2026-04-06",
1701
1701
  },
1702
- "nova-2.0-lite-non-reasoning": {
1702
+ "nova-2-lite-non-reasoning": {
1703
1703
  // AA Intelligence Index (composite score)
1704
- intelligenceIndex: 18.0,
1704
+ intelligenceIndex: 18,
1705
1705
  normalizedScore: 26,
1706
1706
 
1707
1707
  // AA specific benchmarks
@@ -1721,9 +1721,9 @@ export const BENCHMARKS_CHUNK_0: Record<string, HardcodedBenchmark> = {
1721
1721
  // Metadata
1722
1722
  lastUpdated: "2026-04-06",
1723
1723
  },
1724
- "nova-2.0-omni-medium": {
1724
+ "nova-2-omni-medium": {
1725
1725
  // AA Intelligence Index (composite score)
1726
- intelligenceIndex: 28.0,
1726
+ intelligenceIndex: 28,
1727
1727
  normalizedScore: 40,
1728
1728
 
1729
1729
  // AA specific benchmarks
@@ -1743,14 +1743,14 @@ export const BENCHMARKS_CHUNK_0: Record<string, HardcodedBenchmark> = {
1743
1743
  // Metadata
1744
1744
  lastUpdated: "2026-04-06",
1745
1745
  },
1746
- "nova-2.0-pro-preview-medium": {
1746
+ "nova-2-pro-preview-medium": {
1747
1747
  // AA Intelligence Index (composite score)
1748
1748
  intelligenceIndex: 35.7,
1749
1749
  normalizedScore: 51,
1750
1750
 
1751
1751
  // AA specific benchmarks
1752
1752
  codingIndex: 30.4,
1753
- mathIndex: 89.0,
1753
+ mathIndex: 89,
1754
1754
 
1755
1755
  // Academic benchmarks
1756
1756
  mmluPro: 0.83,
@@ -1765,14 +1765,14 @@ export const BENCHMARKS_CHUNK_0: Record<string, HardcodedBenchmark> = {
1765
1765
  // Metadata
1766
1766
  lastUpdated: "2026-04-06",
1767
1767
  },
1768
- "nova-2.0-omni-low": {
1768
+ "nova-2-omni-low": {
1769
1769
  // AA Intelligence Index (composite score)
1770
1770
  intelligenceIndex: 23.2,
1771
1771
  normalizedScore: 33,
1772
1772
 
1773
1773
  // AA specific benchmarks
1774
1774
  codingIndex: 13.9,
1775
- mathIndex: 56.0,
1775
+ mathIndex: 56,
1776
1776
 
1777
1777
  // Academic benchmarks
1778
1778
  mmluPro: 0.798,
@@ -1794,7 +1794,7 @@ export const BENCHMARKS_CHUNK_0: Record<string, HardcodedBenchmark> = {
1794
1794
 
1795
1795
  // AA specific benchmarks
1796
1796
  codingIndex: 11.2,
1797
- mathIndex: 18.0,
1797
+ mathIndex: 18,
1798
1798
 
1799
1799
  // Academic benchmarks
1800
1800
  mmluPro: 0.714,
@@ -1811,7 +1811,7 @@ export const BENCHMARKS_CHUNK_0: Record<string, HardcodedBenchmark> = {
1811
1811
  },
1812
1812
  "phi-4-multimodal-instruct": {
1813
1813
  // AA Intelligence Index (composite score)
1814
- intelligenceIndex: 10.0,
1814
+ intelligenceIndex: 10,
1815
1815
  normalizedScore: 14,
1816
1816
 
1817
1817
  // AA specific benchmarks
@@ -1877,7 +1877,7 @@ export const BENCHMARKS_CHUNK_0: Record<string, HardcodedBenchmark> = {
1877
1877
  },
1878
1878
  "lfm2-8b-a1b": {
1879
1879
  // AA Intelligence Index (composite score)
1880
- intelligenceIndex: 7.0,
1880
+ intelligenceIndex: 7,
1881
1881
  normalizedScore: 10,
1882
1882
 
1883
1883
  // AA specific benchmarks
@@ -1899,7 +1899,7 @@ export const BENCHMARKS_CHUNK_0: Record<string, HardcodedBenchmark> = {
1899
1899
  },
1900
1900
  "lfm2.5-1.2b-instruct": {
1901
1901
  // AA Intelligence Index (composite score)
1902
- intelligenceIndex: 8.0,
1902
+ intelligenceIndex: 8,
1903
1903
  normalizedScore: 11,
1904
1904
 
1905
1905
  // AA specific benchmarks
@@ -1943,7 +1943,7 @@ export const BENCHMARKS_CHUNK_0: Record<string, HardcodedBenchmark> = {
1943
1943
  },
1944
1944
  "lfm2-2.6b": {
1945
1945
  // AA Intelligence Index (composite score)
1946
- intelligenceIndex: 8.0,
1946
+ intelligenceIndex: 8,
1947
1947
  normalizedScore: 11,
1948
1948
 
1949
1949
  // AA specific benchmarks
@@ -1969,7 +1969,7 @@ export const BENCHMARKS_CHUNK_0: Record<string, HardcodedBenchmark> = {
1969
1969
  normalizedScore: 9,
1970
1970
 
1971
1971
  // AA specific benchmarks
1972
- codingIndex: 1.0,
1972
+ codingIndex: 1,
1973
1973
  mathIndex: undefined,
1974
1974
 
1975
1975
  // Academic benchmarks