@mariozechner/pi-ai 0.24.5 → 0.25.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 +120 -10
- package/dist/agent/agent-loop.d.ts.map +1 -1
- package/dist/agent/agent-loop.js +58 -5
- package/dist/agent/agent-loop.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/models.generated.d.ts +179 -22
- package/dist/models.generated.d.ts.map +1 -1
- package/dist/models.generated.js +205 -48
- package/dist/models.generated.js.map +1 -1
- package/dist/providers/anthropic.d.ts.map +1 -1
- package/dist/providers/anthropic.js +0 -2
- package/dist/providers/anthropic.js.map +1 -1
- package/dist/providers/google-gemini-cli.d.ts +16 -0
- package/dist/providers/google-gemini-cli.d.ts.map +1 -0
- package/dist/providers/google-gemini-cli.js +347 -0
- package/dist/providers/google-gemini-cli.js.map +1 -0
- package/dist/providers/google-shared.d.ts +34 -0
- package/dist/providers/google-shared.d.ts.map +1 -0
- package/dist/providers/google-shared.js +218 -0
- package/dist/providers/google-shared.js.map +1 -0
- package/dist/providers/google.d.ts.map +1 -1
- package/dist/providers/google.js +3 -162
- package/dist/providers/google.js.map +1 -1
- package/dist/providers/openai-completions.d.ts.map +1 -1
- package/dist/providers/openai-completions.js +25 -0
- package/dist/providers/openai-completions.js.map +1 -1
- package/dist/providers/openai-responses.d.ts.map +1 -1
- package/dist/providers/openai-responses.js +24 -1
- package/dist/providers/openai-responses.js.map +1 -1
- package/dist/providers/transorm-messages.d.ts.map +1 -1
- package/dist/providers/transorm-messages.js +62 -43
- package/dist/providers/transorm-messages.js.map +1 -1
- package/dist/stream.d.ts +15 -0
- package/dist/stream.d.ts.map +1 -1
- package/dist/stream.js +39 -0
- package/dist/stream.js.map +1 -1
- package/dist/types.d.ts +4 -2
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js.map +1 -1
- package/dist/utils/oauth/anthropic.d.ts +16 -0
- package/dist/utils/oauth/anthropic.d.ts.map +1 -0
- package/dist/utils/oauth/anthropic.js +103 -0
- package/dist/utils/oauth/anthropic.js.map +1 -0
- package/dist/utils/oauth/github-copilot.d.ts +43 -0
- package/dist/utils/oauth/github-copilot.d.ts.map +1 -0
- package/dist/utils/oauth/github-copilot.js +237 -0
- package/dist/utils/oauth/github-copilot.js.map +1 -0
- package/dist/utils/oauth/google-antigravity.d.ts +24 -0
- package/dist/utils/oauth/google-antigravity.d.ts.map +1 -0
- package/dist/utils/oauth/google-antigravity.js +273 -0
- package/dist/utils/oauth/google-antigravity.js.map +1 -0
- package/dist/utils/oauth/google-gemini-cli.d.ts +24 -0
- package/dist/utils/oauth/google-gemini-cli.d.ts.map +1 -0
- package/dist/utils/oauth/google-gemini-cli.js +286 -0
- package/dist/utils/oauth/google-gemini-cli.js.map +1 -0
- package/dist/utils/oauth/index.d.ts +54 -0
- package/dist/utils/oauth/index.d.ts.map +1 -0
- package/dist/utils/oauth/index.js +147 -0
- package/dist/utils/oauth/index.js.map +1 -0
- package/dist/utils/oauth/storage.d.ts +81 -0
- package/dist/utils/oauth/storage.d.ts.map +1 -0
- package/dist/utils/oauth/storage.js +119 -0
- package/dist/utils/oauth/storage.js.map +1 -0
- package/dist/utils/overflow.d.ts +2 -2
- package/dist/utils/overflow.d.ts.map +1 -1
- package/dist/utils/overflow.js +7 -4
- package/dist/utils/overflow.js.map +1 -1
- package/package.json +1 -1
package/dist/models.generated.js
CHANGED
|
@@ -2903,7 +2903,7 @@ export const MODELS = {
|
|
|
2903
2903
|
cacheWrite: 0,
|
|
2904
2904
|
},
|
|
2905
2905
|
contextWindow: 262144,
|
|
2906
|
-
maxTokens:
|
|
2906
|
+
maxTokens: 65536,
|
|
2907
2907
|
},
|
|
2908
2908
|
"nvidia/nemotron-3-nano-30b-a3b:free": {
|
|
2909
2909
|
id: "nvidia/nemotron-3-nano-30b-a3b:free",
|
|
@@ -3277,7 +3277,7 @@ export const MODELS = {
|
|
|
3277
3277
|
cacheWrite: 0,
|
|
3278
3278
|
},
|
|
3279
3279
|
contextWindow: 163840,
|
|
3280
|
-
maxTokens:
|
|
3280
|
+
maxTokens: 65536,
|
|
3281
3281
|
},
|
|
3282
3282
|
"anthropic/claude-opus-4.5": {
|
|
3283
3283
|
id: "anthropic/claude-opus-4.5",
|
|
@@ -3441,13 +3441,13 @@ export const MODELS = {
|
|
|
3441
3441
|
reasoning: true,
|
|
3442
3442
|
input: ["text"],
|
|
3443
3443
|
cost: {
|
|
3444
|
-
input: 0.
|
|
3445
|
-
output:
|
|
3444
|
+
input: 0.39999999999999997,
|
|
3445
|
+
output: 1.75,
|
|
3446
3446
|
cacheRead: 0,
|
|
3447
3447
|
cacheWrite: 0,
|
|
3448
3448
|
},
|
|
3449
3449
|
contextWindow: 262144,
|
|
3450
|
-
maxTokens:
|
|
3450
|
+
maxTokens: 65535,
|
|
3451
3451
|
},
|
|
3452
3452
|
"amazon/nova-premier-v1": {
|
|
3453
3453
|
id: "amazon/nova-premier-v1",
|
|
@@ -4597,13 +4597,13 @@ export const MODELS = {
|
|
|
4597
4597
|
reasoning: false,
|
|
4598
4598
|
input: ["text"],
|
|
4599
4599
|
cost: {
|
|
4600
|
-
input: 0.
|
|
4601
|
-
output: 0.
|
|
4600
|
+
input: 0.07,
|
|
4601
|
+
output: 0.27,
|
|
4602
4602
|
cacheRead: 0,
|
|
4603
4603
|
cacheWrite: 0,
|
|
4604
4604
|
},
|
|
4605
|
-
contextWindow:
|
|
4606
|
-
maxTokens:
|
|
4605
|
+
contextWindow: 160000,
|
|
4606
|
+
maxTokens: 32768,
|
|
4607
4607
|
},
|
|
4608
4608
|
"qwen/qwen3-30b-a3b-instruct-2507": {
|
|
4609
4609
|
id: "qwen/qwen3-30b-a3b-instruct-2507",
|
|
@@ -4637,7 +4637,7 @@ export const MODELS = {
|
|
|
4637
4637
|
cacheWrite: 0,
|
|
4638
4638
|
},
|
|
4639
4639
|
contextWindow: 131072,
|
|
4640
|
-
maxTokens:
|
|
4640
|
+
maxTokens: 65536,
|
|
4641
4641
|
},
|
|
4642
4642
|
"z-ai/glm-4.5-air:free": {
|
|
4643
4643
|
id: "z-ai/glm-4.5-air:free",
|
|
@@ -4781,7 +4781,7 @@ export const MODELS = {
|
|
|
4781
4781
|
api: "openai-completions",
|
|
4782
4782
|
provider: "openrouter",
|
|
4783
4783
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
4784
|
-
reasoning:
|
|
4784
|
+
reasoning: true,
|
|
4785
4785
|
input: ["text"],
|
|
4786
4786
|
cost: {
|
|
4787
4787
|
input: 0.071,
|
|
@@ -5268,23 +5268,6 @@ export const MODELS = {
|
|
|
5268
5268
|
contextWindow: 40960,
|
|
5269
5269
|
maxTokens: 40960,
|
|
5270
5270
|
},
|
|
5271
|
-
"qwen/qwen3-235b-a22b:free": {
|
|
5272
|
-
id: "qwen/qwen3-235b-a22b:free",
|
|
5273
|
-
name: "Qwen: Qwen3 235B A22B (free)",
|
|
5274
|
-
api: "openai-completions",
|
|
5275
|
-
provider: "openrouter",
|
|
5276
|
-
baseUrl: "https://openrouter.ai/api/v1",
|
|
5277
|
-
reasoning: true,
|
|
5278
|
-
input: ["text"],
|
|
5279
|
-
cost: {
|
|
5280
|
-
input: 0,
|
|
5281
|
-
output: 0,
|
|
5282
|
-
cacheRead: 0,
|
|
5283
|
-
cacheWrite: 0,
|
|
5284
|
-
},
|
|
5285
|
-
contextWindow: 131072,
|
|
5286
|
-
maxTokens: 4096,
|
|
5287
|
-
},
|
|
5288
5271
|
"qwen/qwen3-235b-a22b": {
|
|
5289
5272
|
id: "qwen/qwen3-235b-a22b",
|
|
5290
5273
|
name: "Qwen: Qwen3 235B A22B",
|
|
@@ -6033,9 +6016,9 @@ export const MODELS = {
|
|
|
6033
6016
|
contextWindow: 32768,
|
|
6034
6017
|
maxTokens: 4096,
|
|
6035
6018
|
},
|
|
6036
|
-
"anthropic/claude-3.5-haiku
|
|
6037
|
-
id: "anthropic/claude-3.5-haiku
|
|
6038
|
-
name: "Anthropic: Claude 3.5 Haiku
|
|
6019
|
+
"anthropic/claude-3.5-haiku": {
|
|
6020
|
+
id: "anthropic/claude-3.5-haiku",
|
|
6021
|
+
name: "Anthropic: Claude 3.5 Haiku",
|
|
6039
6022
|
api: "openai-completions",
|
|
6040
6023
|
provider: "openrouter",
|
|
6041
6024
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
@@ -6050,9 +6033,9 @@ export const MODELS = {
|
|
|
6050
6033
|
contextWindow: 200000,
|
|
6051
6034
|
maxTokens: 8192,
|
|
6052
6035
|
},
|
|
6053
|
-
"anthropic/claude-3.5-haiku": {
|
|
6054
|
-
id: "anthropic/claude-3.5-haiku",
|
|
6055
|
-
name: "Anthropic: Claude 3.5 Haiku",
|
|
6036
|
+
"anthropic/claude-3.5-haiku-20241022": {
|
|
6037
|
+
id: "anthropic/claude-3.5-haiku-20241022",
|
|
6038
|
+
name: "Anthropic: Claude 3.5 Haiku (2024-10-22)",
|
|
6056
6039
|
api: "openai-completions",
|
|
6057
6040
|
provider: "openrouter",
|
|
6058
6041
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
@@ -6288,39 +6271,39 @@ export const MODELS = {
|
|
|
6288
6271
|
contextWindow: 128000,
|
|
6289
6272
|
maxTokens: 16384,
|
|
6290
6273
|
},
|
|
6291
|
-
"meta-llama/llama-3.1-
|
|
6292
|
-
id: "meta-llama/llama-3.1-
|
|
6293
|
-
name: "Meta: Llama 3.1
|
|
6274
|
+
"meta-llama/llama-3.1-405b-instruct": {
|
|
6275
|
+
id: "meta-llama/llama-3.1-405b-instruct",
|
|
6276
|
+
name: "Meta: Llama 3.1 405B Instruct",
|
|
6294
6277
|
api: "openai-completions",
|
|
6295
6278
|
provider: "openrouter",
|
|
6296
6279
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
6297
6280
|
reasoning: false,
|
|
6298
6281
|
input: ["text"],
|
|
6299
6282
|
cost: {
|
|
6300
|
-
input:
|
|
6301
|
-
output:
|
|
6283
|
+
input: 3.5,
|
|
6284
|
+
output: 3.5,
|
|
6302
6285
|
cacheRead: 0,
|
|
6303
6286
|
cacheWrite: 0,
|
|
6304
6287
|
},
|
|
6305
|
-
contextWindow:
|
|
6306
|
-
maxTokens:
|
|
6288
|
+
contextWindow: 130815,
|
|
6289
|
+
maxTokens: 4096,
|
|
6307
6290
|
},
|
|
6308
|
-
"meta-llama/llama-3.1-
|
|
6309
|
-
id: "meta-llama/llama-3.1-
|
|
6310
|
-
name: "Meta: Llama 3.1
|
|
6291
|
+
"meta-llama/llama-3.1-8b-instruct": {
|
|
6292
|
+
id: "meta-llama/llama-3.1-8b-instruct",
|
|
6293
|
+
name: "Meta: Llama 3.1 8B Instruct",
|
|
6311
6294
|
api: "openai-completions",
|
|
6312
6295
|
provider: "openrouter",
|
|
6313
6296
|
baseUrl: "https://openrouter.ai/api/v1",
|
|
6314
6297
|
reasoning: false,
|
|
6315
6298
|
input: ["text"],
|
|
6316
6299
|
cost: {
|
|
6317
|
-
input:
|
|
6318
|
-
output:
|
|
6300
|
+
input: 0.02,
|
|
6301
|
+
output: 0.03,
|
|
6319
6302
|
cacheRead: 0,
|
|
6320
6303
|
cacheWrite: 0,
|
|
6321
6304
|
},
|
|
6322
|
-
contextWindow:
|
|
6323
|
-
maxTokens:
|
|
6305
|
+
contextWindow: 131072,
|
|
6306
|
+
maxTokens: 16384,
|
|
6324
6307
|
},
|
|
6325
6308
|
"meta-llama/llama-3.1-70b-instruct": {
|
|
6326
6309
|
id: "meta-llama/llama-3.1-70b-instruct",
|
|
@@ -6816,5 +6799,179 @@ export const MODELS = {
|
|
|
6816
6799
|
maxTokens: 30000,
|
|
6817
6800
|
},
|
|
6818
6801
|
},
|
|
6802
|
+
"google-gemini-cli": {
|
|
6803
|
+
"gemini-2.5-pro": {
|
|
6804
|
+
id: "gemini-2.5-pro",
|
|
6805
|
+
name: "Gemini 2.5 Pro (Cloud Code Assist)",
|
|
6806
|
+
api: "google-gemini-cli",
|
|
6807
|
+
provider: "google-gemini-cli",
|
|
6808
|
+
baseUrl: "https://cloudcode-pa.googleapis.com",
|
|
6809
|
+
reasoning: true,
|
|
6810
|
+
input: ["text", "image"],
|
|
6811
|
+
cost: {
|
|
6812
|
+
input: 0,
|
|
6813
|
+
output: 0,
|
|
6814
|
+
cacheRead: 0,
|
|
6815
|
+
cacheWrite: 0,
|
|
6816
|
+
},
|
|
6817
|
+
contextWindow: 1048576,
|
|
6818
|
+
maxTokens: 65535,
|
|
6819
|
+
},
|
|
6820
|
+
"gemini-2.5-flash": {
|
|
6821
|
+
id: "gemini-2.5-flash",
|
|
6822
|
+
name: "Gemini 2.5 Flash (Cloud Code Assist)",
|
|
6823
|
+
api: "google-gemini-cli",
|
|
6824
|
+
provider: "google-gemini-cli",
|
|
6825
|
+
baseUrl: "https://cloudcode-pa.googleapis.com",
|
|
6826
|
+
reasoning: true,
|
|
6827
|
+
input: ["text", "image"],
|
|
6828
|
+
cost: {
|
|
6829
|
+
input: 0,
|
|
6830
|
+
output: 0,
|
|
6831
|
+
cacheRead: 0,
|
|
6832
|
+
cacheWrite: 0,
|
|
6833
|
+
},
|
|
6834
|
+
contextWindow: 1048576,
|
|
6835
|
+
maxTokens: 65535,
|
|
6836
|
+
},
|
|
6837
|
+
"gemini-2.0-flash": {
|
|
6838
|
+
id: "gemini-2.0-flash",
|
|
6839
|
+
name: "Gemini 2.0 Flash (Cloud Code Assist)",
|
|
6840
|
+
api: "google-gemini-cli",
|
|
6841
|
+
provider: "google-gemini-cli",
|
|
6842
|
+
baseUrl: "https://cloudcode-pa.googleapis.com",
|
|
6843
|
+
reasoning: false,
|
|
6844
|
+
input: ["text", "image"],
|
|
6845
|
+
cost: {
|
|
6846
|
+
input: 0,
|
|
6847
|
+
output: 0,
|
|
6848
|
+
cacheRead: 0,
|
|
6849
|
+
cacheWrite: 0,
|
|
6850
|
+
},
|
|
6851
|
+
contextWindow: 1048576,
|
|
6852
|
+
maxTokens: 8192,
|
|
6853
|
+
},
|
|
6854
|
+
},
|
|
6855
|
+
"google-antigravity": {
|
|
6856
|
+
"gemini-3-pro-high": {
|
|
6857
|
+
id: "gemini-3-pro-high",
|
|
6858
|
+
name: "Gemini 3 Pro High (Antigravity)",
|
|
6859
|
+
api: "google-gemini-cli",
|
|
6860
|
+
provider: "google-antigravity",
|
|
6861
|
+
baseUrl: "https://daily-cloudcode-pa.sandbox.googleapis.com",
|
|
6862
|
+
reasoning: true,
|
|
6863
|
+
input: ["text", "image"],
|
|
6864
|
+
cost: {
|
|
6865
|
+
input: 0,
|
|
6866
|
+
output: 0,
|
|
6867
|
+
cacheRead: 0,
|
|
6868
|
+
cacheWrite: 0,
|
|
6869
|
+
},
|
|
6870
|
+
contextWindow: 1048576,
|
|
6871
|
+
maxTokens: 65535,
|
|
6872
|
+
},
|
|
6873
|
+
"gemini-3-pro-low": {
|
|
6874
|
+
id: "gemini-3-pro-low",
|
|
6875
|
+
name: "Gemini 3 Pro Low (Antigravity)",
|
|
6876
|
+
api: "google-gemini-cli",
|
|
6877
|
+
provider: "google-antigravity",
|
|
6878
|
+
baseUrl: "https://daily-cloudcode-pa.sandbox.googleapis.com",
|
|
6879
|
+
reasoning: true,
|
|
6880
|
+
input: ["text", "image"],
|
|
6881
|
+
cost: {
|
|
6882
|
+
input: 0,
|
|
6883
|
+
output: 0,
|
|
6884
|
+
cacheRead: 0,
|
|
6885
|
+
cacheWrite: 0,
|
|
6886
|
+
},
|
|
6887
|
+
contextWindow: 1048576,
|
|
6888
|
+
maxTokens: 65535,
|
|
6889
|
+
},
|
|
6890
|
+
"gemini-3-flash": {
|
|
6891
|
+
id: "gemini-3-flash",
|
|
6892
|
+
name: "Gemini 3 Flash (Antigravity)",
|
|
6893
|
+
api: "google-gemini-cli",
|
|
6894
|
+
provider: "google-antigravity",
|
|
6895
|
+
baseUrl: "https://daily-cloudcode-pa.sandbox.googleapis.com",
|
|
6896
|
+
reasoning: true,
|
|
6897
|
+
input: ["text", "image"],
|
|
6898
|
+
cost: {
|
|
6899
|
+
input: 0,
|
|
6900
|
+
output: 0,
|
|
6901
|
+
cacheRead: 0,
|
|
6902
|
+
cacheWrite: 0,
|
|
6903
|
+
},
|
|
6904
|
+
contextWindow: 1048576,
|
|
6905
|
+
maxTokens: 65535,
|
|
6906
|
+
},
|
|
6907
|
+
"claude-sonnet-4-5": {
|
|
6908
|
+
id: "claude-sonnet-4-5",
|
|
6909
|
+
name: "Claude Sonnet 4.5 (Antigravity)",
|
|
6910
|
+
api: "google-gemini-cli",
|
|
6911
|
+
provider: "google-antigravity",
|
|
6912
|
+
baseUrl: "https://daily-cloudcode-pa.sandbox.googleapis.com",
|
|
6913
|
+
reasoning: false,
|
|
6914
|
+
input: ["text", "image"],
|
|
6915
|
+
cost: {
|
|
6916
|
+
input: 0,
|
|
6917
|
+
output: 0,
|
|
6918
|
+
cacheRead: 0,
|
|
6919
|
+
cacheWrite: 0,
|
|
6920
|
+
},
|
|
6921
|
+
contextWindow: 200000,
|
|
6922
|
+
maxTokens: 64000,
|
|
6923
|
+
},
|
|
6924
|
+
"claude-sonnet-4-5-thinking": {
|
|
6925
|
+
id: "claude-sonnet-4-5-thinking",
|
|
6926
|
+
name: "Claude Sonnet 4.5 Thinking (Antigravity)",
|
|
6927
|
+
api: "google-gemini-cli",
|
|
6928
|
+
provider: "google-antigravity",
|
|
6929
|
+
baseUrl: "https://daily-cloudcode-pa.sandbox.googleapis.com",
|
|
6930
|
+
reasoning: true,
|
|
6931
|
+
input: ["text", "image"],
|
|
6932
|
+
cost: {
|
|
6933
|
+
input: 0,
|
|
6934
|
+
output: 0,
|
|
6935
|
+
cacheRead: 0,
|
|
6936
|
+
cacheWrite: 0,
|
|
6937
|
+
},
|
|
6938
|
+
contextWindow: 200000,
|
|
6939
|
+
maxTokens: 64000,
|
|
6940
|
+
},
|
|
6941
|
+
"claude-opus-4-5-thinking": {
|
|
6942
|
+
id: "claude-opus-4-5-thinking",
|
|
6943
|
+
name: "Claude Opus 4.5 Thinking (Antigravity)",
|
|
6944
|
+
api: "google-gemini-cli",
|
|
6945
|
+
provider: "google-antigravity",
|
|
6946
|
+
baseUrl: "https://daily-cloudcode-pa.sandbox.googleapis.com",
|
|
6947
|
+
reasoning: true,
|
|
6948
|
+
input: ["text", "image"],
|
|
6949
|
+
cost: {
|
|
6950
|
+
input: 0,
|
|
6951
|
+
output: 0,
|
|
6952
|
+
cacheRead: 0,
|
|
6953
|
+
cacheWrite: 0,
|
|
6954
|
+
},
|
|
6955
|
+
contextWindow: 200000,
|
|
6956
|
+
maxTokens: 64000,
|
|
6957
|
+
},
|
|
6958
|
+
"gpt-oss-120b-medium": {
|
|
6959
|
+
id: "gpt-oss-120b-medium",
|
|
6960
|
+
name: "GPT-OSS 120B Medium (Antigravity)",
|
|
6961
|
+
api: "google-gemini-cli",
|
|
6962
|
+
provider: "google-antigravity",
|
|
6963
|
+
baseUrl: "https://daily-cloudcode-pa.sandbox.googleapis.com",
|
|
6964
|
+
reasoning: false,
|
|
6965
|
+
input: ["text"],
|
|
6966
|
+
cost: {
|
|
6967
|
+
input: 0,
|
|
6968
|
+
output: 0,
|
|
6969
|
+
cacheRead: 0,
|
|
6970
|
+
cacheWrite: 0,
|
|
6971
|
+
},
|
|
6972
|
+
contextWindow: 131072,
|
|
6973
|
+
maxTokens: 32768,
|
|
6974
|
+
},
|
|
6975
|
+
},
|
|
6819
6976
|
};
|
|
6820
6977
|
//# sourceMappingURL=models.generated.js.map
|