@earendil-works/pi-ai 0.76.0 → 0.77.0

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 (36) hide show
  1. package/dist/models.generated.d.ts +247 -66
  2. package/dist/models.generated.d.ts.map +1 -1
  3. package/dist/models.generated.js +220 -71
  4. package/dist/models.generated.js.map +1 -1
  5. package/dist/providers/amazon-bedrock.d.ts +1 -1
  6. package/dist/providers/amazon-bedrock.d.ts.map +1 -1
  7. package/dist/providers/amazon-bedrock.js +2 -2
  8. package/dist/providers/amazon-bedrock.js.map +1 -1
  9. package/dist/providers/anthropic.d.ts.map +1 -1
  10. package/dist/providers/anthropic.js +15 -8
  11. package/dist/providers/anthropic.js.map +1 -1
  12. package/dist/providers/openai-completions.d.ts.map +1 -1
  13. package/dist/providers/openai-completions.js +9 -0
  14. package/dist/providers/openai-completions.js.map +1 -1
  15. package/dist/providers/openai-responses-shared.d.ts.map +1 -1
  16. package/dist/providers/openai-responses-shared.js +4 -1
  17. package/dist/providers/openai-responses-shared.js.map +1 -1
  18. package/dist/types.d.ts +4 -2
  19. package/dist/types.d.ts.map +1 -1
  20. package/dist/types.js.map +1 -1
  21. package/dist/utils/oauth/device-code.d.ts +9 -7
  22. package/dist/utils/oauth/device-code.d.ts.map +1 -1
  23. package/dist/utils/oauth/device-code.js +8 -7
  24. package/dist/utils/oauth/device-code.js.map +1 -1
  25. package/dist/utils/oauth/github-copilot.d.ts.map +1 -1
  26. package/dist/utils/oauth/github-copilot.js +1 -1
  27. package/dist/utils/oauth/github-copilot.js.map +1 -1
  28. package/dist/utils/oauth/index.d.ts +1 -1
  29. package/dist/utils/oauth/index.d.ts.map +1 -1
  30. package/dist/utils/oauth/index.js +1 -1
  31. package/dist/utils/oauth/index.js.map +1 -1
  32. package/dist/utils/oauth/openai-codex.d.ts +10 -1
  33. package/dist/utils/oauth/openai-codex.d.ts.map +1 -1
  34. package/dist/utils/oauth/openai-codex.js +179 -79
  35. package/dist/utils/oauth/openai-codex.js.map +1 -1
  36. package/package.json +2 -2
@@ -159,6 +159,26 @@ export declare const MODELS: {
159
159
  contextWindow: number;
160
160
  maxTokens: number;
161
161
  };
162
+ readonly "anthropic.claude-opus-4-8": {
163
+ id: string;
164
+ name: string;
165
+ api: "bedrock-converse-stream";
166
+ provider: string;
167
+ baseUrl: string;
168
+ reasoning: true;
169
+ thinkingLevelMap: {
170
+ xhigh: string;
171
+ };
172
+ input: ("image" | "text")[];
173
+ cost: {
174
+ input: number;
175
+ output: number;
176
+ cacheRead: number;
177
+ cacheWrite: number;
178
+ };
179
+ contextWindow: number;
180
+ maxTokens: number;
181
+ };
162
182
  readonly "anthropic.claude-sonnet-4-5-20250929-v1:0": {
163
183
  id: string;
164
184
  name: string;
@@ -230,6 +250,26 @@ export declare const MODELS: {
230
250
  contextWindow: number;
231
251
  maxTokens: number;
232
252
  };
253
+ readonly "au.anthropic.claude-opus-4-8": {
254
+ id: string;
255
+ name: string;
256
+ api: "bedrock-converse-stream";
257
+ provider: string;
258
+ baseUrl: string;
259
+ reasoning: true;
260
+ thinkingLevelMap: {
261
+ xhigh: string;
262
+ };
263
+ input: ("image" | "text")[];
264
+ cost: {
265
+ input: number;
266
+ output: number;
267
+ cacheRead: number;
268
+ cacheWrite: number;
269
+ };
270
+ contextWindow: number;
271
+ maxTokens: number;
272
+ };
233
273
  readonly "au.anthropic.claude-sonnet-4-5-20250929-v1:0": {
234
274
  id: string;
235
275
  name: string;
@@ -389,6 +429,26 @@ export declare const MODELS: {
389
429
  contextWindow: number;
390
430
  maxTokens: number;
391
431
  };
432
+ readonly "eu.anthropic.claude-opus-4-8": {
433
+ id: string;
434
+ name: string;
435
+ api: "bedrock-converse-stream";
436
+ provider: string;
437
+ baseUrl: string;
438
+ reasoning: true;
439
+ thinkingLevelMap: {
440
+ xhigh: string;
441
+ };
442
+ input: ("image" | "text")[];
443
+ cost: {
444
+ input: number;
445
+ output: number;
446
+ cacheRead: number;
447
+ cacheWrite: number;
448
+ };
449
+ contextWindow: number;
450
+ maxTokens: number;
451
+ };
392
452
  readonly "eu.anthropic.claude-sonnet-4-5-20250929-v1:0": {
393
453
  id: string;
394
454
  name: string;
@@ -497,6 +557,26 @@ export declare const MODELS: {
497
557
  contextWindow: number;
498
558
  maxTokens: number;
499
559
  };
560
+ readonly "global.anthropic.claude-opus-4-8": {
561
+ id: string;
562
+ name: string;
563
+ api: "bedrock-converse-stream";
564
+ provider: string;
565
+ baseUrl: string;
566
+ reasoning: true;
567
+ thinkingLevelMap: {
568
+ xhigh: string;
569
+ };
570
+ input: ("image" | "text")[];
571
+ cost: {
572
+ input: number;
573
+ output: number;
574
+ cacheRead: number;
575
+ cacheWrite: number;
576
+ };
577
+ contextWindow: number;
578
+ maxTokens: number;
579
+ };
500
580
  readonly "global.anthropic.claude-sonnet-4-5-20250929-v1:0": {
501
581
  id: string;
502
582
  name: string;
@@ -585,6 +665,26 @@ export declare const MODELS: {
585
665
  contextWindow: number;
586
666
  maxTokens: number;
587
667
  };
668
+ readonly "jp.anthropic.claude-opus-4-8": {
669
+ id: string;
670
+ name: string;
671
+ api: "bedrock-converse-stream";
672
+ provider: string;
673
+ baseUrl: string;
674
+ reasoning: true;
675
+ thinkingLevelMap: {
676
+ xhigh: string;
677
+ };
678
+ input: ("image" | "text")[];
679
+ cost: {
680
+ input: number;
681
+ output: number;
682
+ cacheRead: number;
683
+ cacheWrite: number;
684
+ };
685
+ contextWindow: number;
686
+ maxTokens: number;
687
+ };
588
688
  readonly "jp.anthropic.claude-sonnet-4-5-20250929-v1:0": {
589
689
  id: string;
590
690
  name: string;
@@ -1288,6 +1388,26 @@ export declare const MODELS: {
1288
1388
  contextWindow: number;
1289
1389
  maxTokens: number;
1290
1390
  };
1391
+ readonly "us.anthropic.claude-opus-4-8": {
1392
+ id: string;
1393
+ name: string;
1394
+ api: "bedrock-converse-stream";
1395
+ provider: string;
1396
+ baseUrl: string;
1397
+ reasoning: true;
1398
+ thinkingLevelMap: {
1399
+ xhigh: string;
1400
+ };
1401
+ input: ("image" | "text")[];
1402
+ cost: {
1403
+ input: number;
1404
+ output: number;
1405
+ cacheRead: number;
1406
+ cacheWrite: number;
1407
+ };
1408
+ contextWindow: number;
1409
+ maxTokens: number;
1410
+ };
1291
1411
  readonly "us.anthropic.claude-sonnet-4-5-20250929-v1:0": {
1292
1412
  id: string;
1293
1413
  name: string;
@@ -1778,6 +1898,29 @@ export declare const MODELS: {
1778
1898
  contextWindow: number;
1779
1899
  maxTokens: number;
1780
1900
  };
1901
+ readonly "claude-opus-4-8": {
1902
+ id: string;
1903
+ name: string;
1904
+ api: "anthropic-messages";
1905
+ provider: string;
1906
+ baseUrl: string;
1907
+ compat: {
1908
+ forceAdaptiveThinking: true;
1909
+ };
1910
+ reasoning: true;
1911
+ thinkingLevelMap: {
1912
+ xhigh: string;
1913
+ };
1914
+ input: ("image" | "text")[];
1915
+ cost: {
1916
+ input: number;
1917
+ output: number;
1918
+ cacheRead: number;
1919
+ cacheWrite: number;
1920
+ };
1921
+ contextWindow: number;
1922
+ maxTokens: number;
1923
+ };
1781
1924
  readonly "claude-sonnet-4-0": {
1782
1925
  id: string;
1783
1926
  name: string;
@@ -2520,6 +2663,8 @@ export declare const MODELS: {
2520
2663
  thinkingLevelMap: {
2521
2664
  off: null;
2522
2665
  xhigh: string;
2666
+ minimal: null;
2667
+ low: null;
2523
2668
  };
2524
2669
  input: ("image" | "text")[];
2525
2670
  cost: {
@@ -7410,6 +7555,8 @@ export declare const MODELS: {
7410
7555
  thinkingLevelMap: {
7411
7556
  off: null;
7412
7557
  xhigh: string;
7558
+ minimal: null;
7559
+ low: null;
7413
7560
  };
7414
7561
  input: ("image" | "text")[];
7415
7562
  cost: {
@@ -7801,6 +7948,29 @@ export declare const MODELS: {
7801
7948
  contextWindow: number;
7802
7949
  maxTokens: number;
7803
7950
  };
7951
+ readonly "claude-opus-4-8": {
7952
+ id: string;
7953
+ name: string;
7954
+ api: "anthropic-messages";
7955
+ provider: string;
7956
+ baseUrl: string;
7957
+ compat: {
7958
+ forceAdaptiveThinking: true;
7959
+ };
7960
+ reasoning: true;
7961
+ thinkingLevelMap: {
7962
+ xhigh: string;
7963
+ };
7964
+ input: ("image" | "text")[];
7965
+ cost: {
7966
+ input: number;
7967
+ output: number;
7968
+ cacheRead: number;
7969
+ cacheWrite: number;
7970
+ };
7971
+ contextWindow: number;
7972
+ maxTokens: number;
7973
+ };
7804
7974
  readonly "claude-sonnet-4": {
7805
7975
  id: string;
7806
7976
  name: string;
@@ -8299,6 +8469,8 @@ export declare const MODELS: {
8299
8469
  thinkingLevelMap: {
8300
8470
  off: null;
8301
8471
  xhigh: string;
8472
+ minimal: null;
8473
+ low: null;
8302
8474
  };
8303
8475
  input: ("image" | "text")[];
8304
8476
  cost: {
@@ -8578,7 +8750,13 @@ export declare const MODELS: {
8578
8750
  api: "openai-completions";
8579
8751
  provider: string;
8580
8752
  baseUrl: string;
8753
+ compat: {
8754
+ thinkingFormat: "string-thinking";
8755
+ };
8581
8756
  reasoning: true;
8757
+ thinkingLevelMap: {
8758
+ off: string;
8759
+ };
8582
8760
  input: ("image" | "text")[];
8583
8761
  cost: {
8584
8762
  input: number;
@@ -9000,6 +9178,46 @@ export declare const MODELS: {
9000
9178
  contextWindow: number;
9001
9179
  maxTokens: number;
9002
9180
  };
9181
+ readonly "anthropic/claude-opus-4.8": {
9182
+ id: string;
9183
+ name: string;
9184
+ api: "openai-completions";
9185
+ provider: string;
9186
+ baseUrl: string;
9187
+ reasoning: true;
9188
+ thinkingLevelMap: {
9189
+ xhigh: string;
9190
+ };
9191
+ input: ("image" | "text")[];
9192
+ cost: {
9193
+ input: number;
9194
+ output: number;
9195
+ cacheRead: number;
9196
+ cacheWrite: number;
9197
+ };
9198
+ contextWindow: number;
9199
+ maxTokens: number;
9200
+ };
9201
+ readonly "anthropic/claude-opus-4.8-fast": {
9202
+ id: string;
9203
+ name: string;
9204
+ api: "openai-completions";
9205
+ provider: string;
9206
+ baseUrl: string;
9207
+ reasoning: true;
9208
+ thinkingLevelMap: {
9209
+ xhigh: string;
9210
+ };
9211
+ input: ("image" | "text")[];
9212
+ cost: {
9213
+ input: number;
9214
+ output: number;
9215
+ cacheRead: number;
9216
+ cacheWrite: number;
9217
+ };
9218
+ contextWindow: number;
9219
+ maxTokens: number;
9220
+ };
9003
9221
  readonly "anthropic/claude-sonnet-4": {
9004
9222
  id: string;
9005
9223
  name: string;
@@ -9399,7 +9617,6 @@ export declare const MODELS: {
9399
9617
  baseUrl: string;
9400
9618
  compat: {
9401
9619
  requiresReasoningContentOnAssistantMessages: true;
9402
- thinkingFormat: "deepseek";
9403
9620
  };
9404
9621
  reasoning: true;
9405
9622
  thinkingLevelMap: {
@@ -9427,7 +9644,6 @@ export declare const MODELS: {
9427
9644
  baseUrl: string;
9428
9645
  compat: {
9429
9646
  requiresReasoningContentOnAssistantMessages: true;
9430
- thinkingFormat: "deepseek";
9431
9647
  };
9432
9648
  reasoning: true;
9433
9649
  thinkingLevelMap: {
@@ -9455,7 +9671,6 @@ export declare const MODELS: {
9455
9671
  baseUrl: string;
9456
9672
  compat: {
9457
9673
  requiresReasoningContentOnAssistantMessages: true;
9458
- thinkingFormat: "deepseek";
9459
9674
  };
9460
9675
  reasoning: true;
9461
9676
  thinkingLevelMap: {
@@ -11458,6 +11673,9 @@ export declare const MODELS: {
11458
11673
  reasoning: true;
11459
11674
  thinkingLevelMap: {
11460
11675
  xhigh: string;
11676
+ off: null;
11677
+ minimal: null;
11678
+ low: null;
11461
11679
  };
11462
11680
  input: ("image" | "text")[];
11463
11681
  cost: {
@@ -14304,6 +14522,29 @@ export declare const MODELS: {
14304
14522
  contextWindow: number;
14305
14523
  maxTokens: number;
14306
14524
  };
14525
+ readonly "anthropic/claude-opus-4.8": {
14526
+ id: string;
14527
+ name: string;
14528
+ api: "anthropic-messages";
14529
+ provider: string;
14530
+ baseUrl: string;
14531
+ compat: {
14532
+ forceAdaptiveThinking: true;
14533
+ };
14534
+ reasoning: true;
14535
+ thinkingLevelMap: {
14536
+ xhigh: string;
14537
+ };
14538
+ input: ("image" | "text")[];
14539
+ cost: {
14540
+ input: number;
14541
+ output: number;
14542
+ cacheRead: number;
14543
+ cacheWrite: number;
14544
+ };
14545
+ contextWindow: number;
14546
+ maxTokens: number;
14547
+ };
14307
14548
  readonly "anthropic/claude-sonnet-4": {
14308
14549
  id: string;
14309
14550
  name: string;
@@ -15930,6 +16171,9 @@ export declare const MODELS: {
15930
16171
  reasoning: true;
15931
16172
  thinkingLevelMap: {
15932
16173
  xhigh: string;
16174
+ off: null;
16175
+ minimal: null;
16176
+ low: null;
15933
16177
  };
15934
16178
  input: ("image" | "text")[];
15935
16179
  cost: {
@@ -16800,27 +17044,6 @@ export declare const MODELS: {
16800
17044
  };
16801
17045
  };
16802
17046
  readonly "xiaomi-token-plan-ams": {
16803
- readonly "mimo-v2-flash": {
16804
- id: string;
16805
- name: string;
16806
- api: "openai-completions";
16807
- provider: string;
16808
- baseUrl: string;
16809
- compat: {
16810
- requiresReasoningContentOnAssistantMessages: true;
16811
- thinkingFormat: "deepseek";
16812
- };
16813
- reasoning: true;
16814
- input: "text"[];
16815
- cost: {
16816
- input: number;
16817
- output: number;
16818
- cacheRead: number;
16819
- cacheWrite: number;
16820
- };
16821
- contextWindow: number;
16822
- maxTokens: number;
16823
- };
16824
17047
  readonly "mimo-v2-omni": {
16825
17048
  id: string;
16826
17049
  name: string;
@@ -16907,27 +17130,6 @@ export declare const MODELS: {
16907
17130
  };
16908
17131
  };
16909
17132
  readonly "xiaomi-token-plan-cn": {
16910
- readonly "mimo-v2-flash": {
16911
- id: string;
16912
- name: string;
16913
- api: "openai-completions";
16914
- provider: string;
16915
- baseUrl: string;
16916
- compat: {
16917
- requiresReasoningContentOnAssistantMessages: true;
16918
- thinkingFormat: "deepseek";
16919
- };
16920
- reasoning: true;
16921
- input: "text"[];
16922
- cost: {
16923
- input: number;
16924
- output: number;
16925
- cacheRead: number;
16926
- cacheWrite: number;
16927
- };
16928
- contextWindow: number;
16929
- maxTokens: number;
16930
- };
16931
17133
  readonly "mimo-v2-omni": {
16932
17134
  id: string;
16933
17135
  name: string;
@@ -17014,27 +17216,6 @@ export declare const MODELS: {
17014
17216
  };
17015
17217
  };
17016
17218
  readonly "xiaomi-token-plan-sgp": {
17017
- readonly "mimo-v2-flash": {
17018
- id: string;
17019
- name: string;
17020
- api: "openai-completions";
17021
- provider: string;
17022
- baseUrl: string;
17023
- compat: {
17024
- requiresReasoningContentOnAssistantMessages: true;
17025
- thinkingFormat: "deepseek";
17026
- };
17027
- reasoning: true;
17028
- input: "text"[];
17029
- cost: {
17030
- input: number;
17031
- output: number;
17032
- cacheRead: number;
17033
- cacheWrite: number;
17034
- };
17035
- contextWindow: number;
17036
- maxTokens: number;
17037
- };
17038
17219
  readonly "mimo-v2-omni": {
17039
17220
  id: string;
17040
17221
  name: string;