@agi-cli/sdk 0.1.101 → 0.1.103

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agi-cli/sdk",
3
- "version": "0.1.101",
3
+ "version": "0.1.103",
4
4
  "description": "AI agent SDK for building intelligent assistants - tree-shakable and comprehensive",
5
5
  "author": "ntishxyz",
6
6
  "license": "MIT",
@@ -1,6 +1,6 @@
1
1
  import { openai, createOpenAI } from '@ai-sdk/openai';
2
2
  import { anthropic, createAnthropic } from '@ai-sdk/anthropic';
3
- import { google } from '@ai-sdk/google';
3
+ import { google, createGoogleGenerativeAI } from '@ai-sdk/google';
4
4
  import { createOpenRouter } from '@openrouter/ai-sdk-provider';
5
5
  import { createOpenAICompatible } from '@ai-sdk/openai-compatible';
6
6
  import { catalog, createSolforgeModel } from '../../../providers/src/index.ts';
@@ -48,7 +48,8 @@ export async function resolveModel(
48
48
 
49
49
  if (provider === 'google') {
50
50
  if (config.apiKey) {
51
- throw new Error('Google provider config not yet supported in SDK');
51
+ const instance = createGoogleGenerativeAI({ apiKey: config.apiKey });
52
+ return instance(model);
52
53
  }
53
54
  return google(model);
54
55
  }
@@ -1119,7 +1119,7 @@ export const catalog: Partial<Record<ProviderId, ProviderCatalogEntry>> = {
1119
1119
  reasoning: true,
1120
1120
  attachment: true,
1121
1121
  temperature: true,
1122
- knowledge: '2025-02-31',
1122
+ knowledge: '2025-02-28',
1123
1123
  releaseDate: '2025-10-15',
1124
1124
  lastUpdated: '2025-10-15',
1125
1125
  openWeights: false,
@@ -1144,7 +1144,7 @@ export const catalog: Partial<Record<ProviderId, ProviderCatalogEntry>> = {
1144
1144
  reasoning: true,
1145
1145
  attachment: true,
1146
1146
  temperature: true,
1147
- knowledge: '2025-02-31',
1147
+ knowledge: '2025-02-28',
1148
1148
  releaseDate: '2025-10-15',
1149
1149
  lastUpdated: '2025-10-15',
1150
1150
  openWeights: false,
@@ -1258,6 +1258,31 @@ export const catalog: Partial<Record<ProviderId, ProviderCatalogEntry>> = {
1258
1258
  output: 32000,
1259
1259
  },
1260
1260
  },
1261
+ {
1262
+ id: 'claude-opus-4-5',
1263
+ label: 'Claude Opus 4.5 (latest)',
1264
+ modalities: {
1265
+ input: ['text', 'image'],
1266
+ output: ['text'],
1267
+ },
1268
+ toolCall: true,
1269
+ reasoning: true,
1270
+ attachment: true,
1271
+ temperature: true,
1272
+ knowledge: '2025-03-31',
1273
+ releaseDate: '2025-11-24',
1274
+ lastUpdated: '2025-11-24',
1275
+ openWeights: false,
1276
+ cost: {
1277
+ input: 5,
1278
+ output: 25,
1279
+ cacheRead: 1.5,
1280
+ },
1281
+ limit: {
1282
+ context: 200000,
1283
+ output: 64000,
1284
+ },
1285
+ },
1261
1286
  {
1262
1287
  id: 'claude-sonnet-4-0',
1263
1288
  label: 'Claude Sonnet 4 (latest)',
@@ -2056,7 +2081,7 @@ export const catalog: Partial<Record<ProviderId, ProviderCatalogEntry>> = {
2056
2081
  reasoning: true,
2057
2082
  attachment: true,
2058
2083
  temperature: true,
2059
- knowledge: '2025-02-31',
2084
+ knowledge: '2025-02-28',
2060
2085
  releaseDate: '2025-10-15',
2061
2086
  lastUpdated: '2025-10-15',
2062
2087
  openWeights: false,
@@ -2706,6 +2731,33 @@ export const catalog: Partial<Record<ProviderId, ProviderCatalogEntry>> = {
2706
2731
  output: 65536,
2707
2732
  },
2708
2733
  },
2734
+ {
2735
+ id: 'google/gemini-3-pro-preview',
2736
+ label: 'Gemini 3 Pro Preview',
2737
+ modalities: {
2738
+ input: ['text', 'image', 'audio', 'video', 'pdf'],
2739
+ output: ['text'],
2740
+ },
2741
+ toolCall: true,
2742
+ reasoning: true,
2743
+ attachment: true,
2744
+ temperature: true,
2745
+ knowledge: '2025-01',
2746
+ releaseDate: '2025-11-18',
2747
+ lastUpdated: '2025-11',
2748
+ openWeights: false,
2749
+ cost: {
2750
+ input: 2,
2751
+ output: 12,
2752
+ },
2753
+ limit: {
2754
+ context: 1050000,
2755
+ output: 66000,
2756
+ },
2757
+ provider: {
2758
+ npm: '@openrouter/ai-sdk-provider',
2759
+ },
2760
+ },
2709
2761
  {
2710
2762
  id: 'google/gemma-2-9b-it:free',
2711
2763
  label: 'Gemma 2 9B (free)',
@@ -3015,6 +3067,9 @@ export const catalog: Partial<Record<ProviderId, ProviderCatalogEntry>> = {
3015
3067
  context: 196600,
3016
3068
  output: 118000,
3017
3069
  },
3070
+ provider: {
3071
+ npm: '@openrouter/ai-sdk-provider',
3072
+ },
3018
3073
  },
3019
3074
  {
3020
3075
  id: 'mistralai/codestral-2508',
@@ -3424,6 +3479,9 @@ export const catalog: Partial<Record<ProviderId, ProviderCatalogEntry>> = {
3424
3479
  context: 262144,
3425
3480
  output: 262144,
3426
3481
  },
3482
+ provider: {
3483
+ npm: '@openrouter/ai-sdk-provider',
3484
+ },
3427
3485
  },
3428
3486
  {
3429
3487
  id: 'moonshotai/kimi-k2:free',
@@ -3960,153 +4018,31 @@ export const catalog: Partial<Record<ProviderId, ProviderCatalogEntry>> = {
3960
4018
  },
3961
4019
  },
3962
4020
  {
3963
- id: 'openai/o4-mini',
3964
- label: 'o4 Mini',
3965
- modalities: {
3966
- input: ['text', 'image'],
3967
- output: ['text'],
3968
- },
3969
- toolCall: true,
3970
- reasoning: true,
3971
- attachment: true,
3972
- temperature: true,
3973
- knowledge: '2024-06',
3974
- releaseDate: '2025-04-16',
3975
- lastUpdated: '2025-04-16',
3976
- openWeights: false,
3977
- cost: {
3978
- input: 1.1,
3979
- output: 4.4,
3980
- cacheRead: 0.28,
3981
- },
3982
- limit: {
3983
- context: 200000,
3984
- output: 100000,
3985
- },
3986
- },
3987
- {
3988
- id: 'openrouter/cypher-alpha:free',
3989
- label: 'Cypher Alpha (free)',
4021
+ id: 'openai/gpt-oss-safeguard-20b',
4022
+ label: 'GPT OSS Safeguard 20B',
3990
4023
  modalities: {
3991
4024
  input: ['text'],
3992
4025
  output: ['text'],
3993
4026
  },
3994
4027
  toolCall: true,
3995
- reasoning: false,
4028
+ reasoning: true,
3996
4029
  attachment: false,
3997
4030
  temperature: true,
3998
- knowledge: '2025-07',
3999
- releaseDate: '2025-07-01',
4000
- lastUpdated: '2025-07-01',
4031
+ releaseDate: '2025-10-29',
4032
+ lastUpdated: '2025-10-29',
4001
4033
  openWeights: false,
4002
4034
  cost: {
4003
- input: 0,
4004
- output: 0,
4005
- },
4006
- limit: {
4007
- context: 1000000,
4008
- output: 1000000,
4009
- },
4010
- },
4011
- {
4012
- id: 'openrouter/horizon-alpha',
4013
- label: 'Horizon Alpha',
4014
- modalities: {
4015
- input: ['text', 'image'],
4016
- output: ['text'],
4017
- },
4018
- toolCall: true,
4019
- reasoning: false,
4020
- attachment: true,
4021
- temperature: false,
4022
- knowledge: '2025-07',
4023
- releaseDate: '2025-07-30',
4024
- lastUpdated: '2025-07-30',
4025
- openWeights: false,
4026
- cost: {
4027
- input: 0,
4028
- output: 0,
4029
- },
4030
- limit: {
4031
- context: 256000,
4032
- output: 128000,
4033
- },
4034
- },
4035
- {
4036
- id: 'openrouter/horizon-beta',
4037
- label: 'Horizon Beta',
4038
- modalities: {
4039
- input: ['text', 'image'],
4040
- output: ['text'],
4041
- },
4042
- toolCall: true,
4043
- reasoning: false,
4044
- attachment: true,
4045
- temperature: false,
4046
- knowledge: '2025-07',
4047
- releaseDate: '2025-08-01',
4048
- lastUpdated: '2025-08-01',
4049
- openWeights: false,
4050
- cost: {
4051
- input: 0,
4052
- output: 0,
4053
- },
4054
- limit: {
4055
- context: 256000,
4056
- output: 128000,
4057
- },
4058
- },
4059
- {
4060
- id: 'openrouter/polaris-alpha',
4061
- label: 'Polaris Alpha',
4062
- modalities: {
4063
- input: ['text', 'image'],
4064
- output: ['text'],
4065
- },
4066
- toolCall: true,
4067
- reasoning: false,
4068
- attachment: true,
4069
- temperature: false,
4070
- knowledge: '2025-07',
4071
- releaseDate: '2025-07-30',
4072
- lastUpdated: '2025-07-30',
4073
- openWeights: false,
4074
- cost: {
4075
- input: 0,
4076
- output: 0,
4077
- },
4078
- limit: {
4079
- context: 256000,
4080
- output: 128000,
4081
- },
4082
- },
4083
- {
4084
- id: 'openrouter/sherlock-dash-alpha',
4085
- label: 'Sherlock Dash Alpha',
4086
- modalities: {
4087
- input: ['text', 'image'],
4088
- output: ['text'],
4089
- },
4090
- toolCall: true,
4091
- reasoning: false,
4092
- attachment: true,
4093
- temperature: false,
4094
- knowledge: '2025-11',
4095
- releaseDate: '2025-11-15',
4096
- lastUpdated: '2025-11-15',
4097
- openWeights: false,
4098
- cost: {
4099
- input: 0,
4100
- output: 0,
4035
+ input: 0.075,
4036
+ output: 0.3,
4101
4037
  },
4102
4038
  limit: {
4103
- context: 1840000,
4104
- output: 64000,
4039
+ context: 131072,
4040
+ output: 65536,
4105
4041
  },
4106
4042
  },
4107
4043
  {
4108
- id: 'openrouter/sherlock-think-alpha',
4109
- label: 'Sherlock Think Alpha',
4044
+ id: 'openai/o4-mini',
4045
+ label: 'o4 Mini',
4110
4046
  modalities: {
4111
4047
  input: ['text', 'image'],
4112
4048
  output: ['text'],
@@ -4114,64 +4050,19 @@ export const catalog: Partial<Record<ProviderId, ProviderCatalogEntry>> = {
4114
4050
  toolCall: true,
4115
4051
  reasoning: true,
4116
4052
  attachment: true,
4117
- temperature: false,
4118
- knowledge: '2025-11',
4119
- releaseDate: '2025-11-15',
4120
- lastUpdated: '2025-11-15',
4121
- openWeights: false,
4122
- cost: {
4123
- input: 0,
4124
- output: 0,
4125
- },
4126
- limit: {
4127
- context: 1840000,
4128
- output: 64000,
4129
- },
4130
- },
4131
- {
4132
- id: 'openrouter/sonoma-dusk-alpha',
4133
- label: 'Sonoma Dusk Alpha',
4134
- modalities: {
4135
- input: ['text', 'image'],
4136
- output: ['text'],
4137
- },
4138
- toolCall: true,
4139
- reasoning: false,
4140
- attachment: true,
4141
- temperature: false,
4142
- releaseDate: '2024-09-05',
4143
- lastUpdated: '2024-09-05',
4144
- openWeights: false,
4145
- cost: {
4146
- input: 0,
4147
- output: 0,
4148
- },
4149
- limit: {
4150
- context: 2000000,
4151
- output: 2000000,
4152
- },
4153
- },
4154
- {
4155
- id: 'openrouter/sonoma-sky-alpha',
4156
- label: 'Sonoma Sky Alpha',
4157
- modalities: {
4158
- input: ['text', 'image'],
4159
- output: ['text'],
4160
- },
4161
- toolCall: true,
4162
- reasoning: false,
4163
- attachment: true,
4164
- temperature: false,
4165
- releaseDate: '2024-09-05',
4166
- lastUpdated: '2024-09-05',
4053
+ temperature: true,
4054
+ knowledge: '2024-06',
4055
+ releaseDate: '2025-04-16',
4056
+ lastUpdated: '2025-04-16',
4167
4057
  openWeights: false,
4168
4058
  cost: {
4169
- input: 0,
4170
- output: 0,
4059
+ input: 1.1,
4060
+ output: 4.4,
4061
+ cacheRead: 0.28,
4171
4062
  },
4172
4063
  limit: {
4173
- context: 2000000,
4174
- output: 2000000,
4064
+ context: 200000,
4065
+ output: 100000,
4175
4066
  },
4176
4067
  },
4177
4068
  {
@@ -4923,6 +4814,31 @@ export const catalog: Partial<Record<ProviderId, ProviderCatalogEntry>> = {
4923
4814
  output: 30000,
4924
4815
  },
4925
4816
  },
4817
+ {
4818
+ id: 'x-ai/grok-4.1-fast',
4819
+ label: 'Grok 4.1 Fast',
4820
+ modalities: {
4821
+ input: ['text', 'image'],
4822
+ output: ['text'],
4823
+ },
4824
+ toolCall: true,
4825
+ reasoning: true,
4826
+ attachment: false,
4827
+ temperature: true,
4828
+ knowledge: '2024-11',
4829
+ releaseDate: '2025-11-19',
4830
+ lastUpdated: '2025-11-19',
4831
+ openWeights: false,
4832
+ cost: {
4833
+ input: 0.2,
4834
+ output: 0.5,
4835
+ cacheRead: 0.05,
4836
+ },
4837
+ limit: {
4838
+ context: 2000000,
4839
+ output: 30000,
4840
+ },
4841
+ },
4926
4842
  {
4927
4843
  id: 'x-ai/grok-code-fast-1',
4928
4844
  label: 'Grok Code Fast 1',
@@ -5157,30 +5073,6 @@ export const catalog: Partial<Record<ProviderId, ProviderCatalogEntry>> = {
5157
5073
  output: 128000,
5158
5074
  },
5159
5075
  },
5160
- {
5161
- id: 'alpha-kimi-k2-thinking',
5162
- label: 'Kimi K2 Thinking (alpha)',
5163
- modalities: {
5164
- input: ['text'],
5165
- output: ['text'],
5166
- },
5167
- toolCall: true,
5168
- reasoning: true,
5169
- attachment: false,
5170
- temperature: true,
5171
- knowledge: '2024-10',
5172
- releaseDate: '2025-09-05',
5173
- lastUpdated: '2025-09-05',
5174
- openWeights: true,
5175
- cost: {
5176
- input: 0.6,
5177
- output: 2.5,
5178
- },
5179
- limit: {
5180
- context: 262144,
5181
- output: 262144,
5182
- },
5183
- },
5184
5076
  {
5185
5077
  id: 'alpha-minimax-m2',
5186
5078
  label: 'MiniMax M2 (alpha)',
@@ -5272,7 +5164,7 @@ export const catalog: Partial<Record<ProviderId, ProviderCatalogEntry>> = {
5272
5164
  reasoning: true,
5273
5165
  attachment: true,
5274
5166
  temperature: true,
5275
- knowledge: '2025-02-31',
5167
+ knowledge: '2025-02-28',
5276
5168
  releaseDate: '2025-10-15',
5277
5169
  lastUpdated: '2025-10-15',
5278
5170
  openWeights: false,
@@ -5317,6 +5209,34 @@ export const catalog: Partial<Record<ProviderId, ProviderCatalogEntry>> = {
5317
5209
  npm: '@ai-sdk/anthropic',
5318
5210
  },
5319
5211
  },
5212
+ {
5213
+ id: 'claude-opus-4-5',
5214
+ label: 'Claude Opus 4.5',
5215
+ modalities: {
5216
+ input: ['text', 'image'],
5217
+ output: ['text'],
5218
+ },
5219
+ toolCall: true,
5220
+ reasoning: true,
5221
+ attachment: true,
5222
+ temperature: true,
5223
+ knowledge: '2025-03-31',
5224
+ releaseDate: '2025-11-01',
5225
+ lastUpdated: '2025-11-01',
5226
+ openWeights: false,
5227
+ cost: {
5228
+ input: 5,
5229
+ output: 25,
5230
+ cacheRead: 0.5,
5231
+ },
5232
+ limit: {
5233
+ context: 200000,
5234
+ output: 64000,
5235
+ },
5236
+ provider: {
5237
+ npm: '@ai-sdk/anthropic',
5238
+ },
5239
+ },
5320
5240
  {
5321
5241
  id: 'claude-sonnet-4',
5322
5242
  label: 'Claude Sonnet 4',
@@ -5389,9 +5309,9 @@ export const catalog: Partial<Record<ProviderId, ProviderCatalogEntry>> = {
5389
5309
  lastUpdated: '2025-11-18',
5390
5310
  openWeights: false,
5391
5311
  cost: {
5392
- input: 0,
5393
- output: 0,
5394
- cacheRead: 0,
5312
+ input: 2,
5313
+ output: 12,
5314
+ cacheRead: 0.2,
5395
5315
  },
5396
5316
  limit: {
5397
5317
  context: 1000000,
@@ -5442,9 +5362,9 @@ export const catalog: Partial<Record<ProviderId, ProviderCatalogEntry>> = {
5442
5362
  lastUpdated: '2025-08-07',
5443
5363
  openWeights: false,
5444
5364
  cost: {
5445
- input: 1.25,
5446
- output: 10,
5447
- cacheRead: 0.125,
5365
+ input: 1.07,
5366
+ output: 8.5,
5367
+ cacheRead: 0.107,
5448
5368
  },
5449
5369
  limit: {
5450
5370
  context: 400000,
@@ -5470,9 +5390,9 @@ export const catalog: Partial<Record<ProviderId, ProviderCatalogEntry>> = {
5470
5390
  lastUpdated: '2025-08-07',
5471
5391
  openWeights: false,
5472
5392
  cost: {
5473
- input: 1.25,
5474
- output: 10,
5475
- cacheRead: 0.125,
5393
+ input: 1.07,
5394
+ output: 8.5,
5395
+ cacheRead: 0.107,
5476
5396
  },
5477
5397
  limit: {
5478
5398
  context: 400000,
@@ -5526,9 +5446,9 @@ export const catalog: Partial<Record<ProviderId, ProviderCatalogEntry>> = {
5526
5446
  lastUpdated: '2025-11-12',
5527
5447
  openWeights: false,
5528
5448
  cost: {
5529
- input: 1.25,
5530
- output: 10,
5531
- cacheRead: 0.125,
5449
+ input: 1.07,
5450
+ output: 8.5,
5451
+ cacheRead: 0.107,
5532
5452
  },
5533
5453
  limit: {
5534
5454
  context: 400000,
@@ -5554,9 +5474,9 @@ export const catalog: Partial<Record<ProviderId, ProviderCatalogEntry>> = {
5554
5474
  lastUpdated: '2025-11-12',
5555
5475
  openWeights: false,
5556
5476
  cost: {
5557
- input: 1.25,
5558
- output: 10,
5559
- cacheRead: 0.125,
5477
+ input: 1.07,
5478
+ output: 8.5,
5479
+ cacheRead: 0.107,
5560
5480
  },
5561
5481
  limit: {
5562
5482
  context: 400000,
@@ -5605,10 +5525,35 @@ export const catalog: Partial<Record<ProviderId, ProviderCatalogEntry>> = {
5605
5525
  releaseDate: '2025-09-05',
5606
5526
  lastUpdated: '2025-09-05',
5607
5527
  openWeights: true,
5528
+ cost: {
5529
+ input: 0.45,
5530
+ output: 2.5,
5531
+ cacheRead: 0.45,
5532
+ },
5533
+ limit: {
5534
+ context: 262144,
5535
+ output: 262144,
5536
+ },
5537
+ },
5538
+ {
5539
+ id: 'kimi-k2-thinking',
5540
+ label: 'Kimi K2 Thinking',
5541
+ modalities: {
5542
+ input: ['text'],
5543
+ output: ['text'],
5544
+ },
5545
+ toolCall: true,
5546
+ reasoning: true,
5547
+ attachment: false,
5548
+ temperature: true,
5549
+ knowledge: '2024-10',
5550
+ releaseDate: '2025-09-05',
5551
+ lastUpdated: '2025-09-05',
5552
+ openWeights: true,
5608
5553
  cost: {
5609
5554
  input: 0.6,
5610
5555
  output: 2.5,
5611
- cacheRead: 0.36,
5556
+ cacheRead: 0.6,
5612
5557
  },
5613
5558
  limit: {
5614
5559
  context: 262144,