@pensar/apex 0.0.111 → 0.0.112

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 (64) hide show
  1. package/README.md +2 -3
  2. package/bin/pensar.js +31 -276
  3. package/build/agent-5qdmmchx.js +206 -0
  4. package/build/agent-s2z0dasf.js +16 -0
  5. package/build/auth-jvq72ekc.js +263 -0
  6. package/build/authentication-nya4td5k.js +310 -0
  7. package/build/blackboxAgent-qa9ze2hn.js +17 -0
  8. package/build/blackboxPentest-85hwznet.js +41 -0
  9. package/build/cli-15vxn9zj.js +1358 -0
  10. package/build/cli-2ckm5es2.js +50 -0
  11. package/build/cli-49cd9yfk.js +4475 -0
  12. package/build/cli-5d6cs4dq.js +53 -0
  13. package/build/cli-6gtnyaqf.js +109 -0
  14. package/build/cli-7ckctq7a.js +45 -0
  15. package/build/cli-8rxa073f.js +104 -0
  16. package/build/cli-bp6d08sg.js +110 -0
  17. package/build/cli-e20q3hqz.js +307 -0
  18. package/build/cli-f9shhcxf.js +1498 -0
  19. package/build/cli-hmrzx8am.js +507 -0
  20. package/build/cli-j66pect7.js +202 -0
  21. package/build/cli-jb0gcnrs.js +60 -0
  22. package/build/cli-jh38b6zv.js +1074 -0
  23. package/build/cli-kqtgcdzn.js +54784 -0
  24. package/build/cli-r8r90gka.js +96700 -0
  25. package/build/cli-va4y0089.js +395 -0
  26. package/build/cli-w04ggbe4.js +104 -0
  27. package/build/cli-x1msjf55.js +103 -0
  28. package/build/cli-yj3dy0vg.js +180 -0
  29. package/build/cli.js +509 -0
  30. package/build/doctor-b7612pzw.js +117 -0
  31. package/build/fixes-1r6v7kh2.js +49 -0
  32. package/build/index-5ke2yd32.js +17 -0
  33. package/build/index-9ze42wn7.js +68412 -0
  34. package/build/index-rd11fk7h.js +1257 -0
  35. package/build/index-tke6896d.js +1097 -0
  36. package/build/index-vwvh1rdw.js +535 -0
  37. package/build/issues-kx721wja.js +94 -0
  38. package/build/logs-hav7d0nm.js +77 -0
  39. package/build/main-2483qzbq.js +397 -0
  40. package/build/multipart-parser-r38qdp5v.js +350 -0
  41. package/build/pentest-zzebnfa0.js +25 -0
  42. package/build/pentests-s9fwd71b.js +70 -0
  43. package/build/projects-tr719twv.js +35 -0
  44. package/build/targetedPentest-w2c85whf.js +32 -0
  45. package/build/token-6x6aavpc.js +58 -0
  46. package/build/token-util-na95bqjj.js +6 -0
  47. package/build/uninstall-2j0pymb0.js +231 -0
  48. package/build/utils-jky0th19.js +107 -0
  49. package/package.json +3 -4
  50. package/build/auth.js +0 -625
  51. package/build/highlights-eq9cgrbb.scm +0 -604
  52. package/build/highlights-ghv9g403.scm +0 -205
  53. package/build/highlights-hk7bwhj4.scm +0 -284
  54. package/build/highlights-r812a2qc.scm +0 -150
  55. package/build/highlights-x6tmsnaa.scm +0 -115
  56. package/build/index.js +0 -292069
  57. package/build/injections-73j83es3.scm +0 -27
  58. package/build/tree-sitter-javascript-nd0q4pe9.wasm +0 -0
  59. package/build/tree-sitter-markdown-411r6y9b.wasm +0 -0
  60. package/build/tree-sitter-markdown_inline-j5349f42.wasm +0 -0
  61. package/build/tree-sitter-typescript-zxjzwt75.wasm +0 -0
  62. package/build/tree-sitter-zig-e78zbjpm.wasm +0 -0
  63. package/src/core/installation/index.ts +0 -223
  64. package/src/core/installation/installation.test.ts +0 -454
@@ -0,0 +1,1358 @@
1
+ // src/core/ai/models/anthropic.ts
2
+ var ANTHROPIC_MODELS = [
3
+ {
4
+ id: "claude-3-5-haiku-20241022",
5
+ name: "Claude 3.5 Haiku (2024-10-22)",
6
+ provider: "anthropic",
7
+ contextLength: 200000
8
+ },
9
+ {
10
+ id: "claude-3-5-haiku-latest",
11
+ name: "Claude 3.5 Haiku (Latest)",
12
+ provider: "anthropic",
13
+ contextLength: 200000
14
+ },
15
+ {
16
+ id: "claude-3-7-sonnet-20250219",
17
+ name: "Claude 3.7 Sonnet (2025-02-19)",
18
+ provider: "anthropic",
19
+ contextLength: 200000
20
+ },
21
+ {
22
+ id: "claude-3-7-sonnet-latest",
23
+ name: "Claude 3.7 Sonnet (Latest)",
24
+ provider: "anthropic",
25
+ contextLength: 200000
26
+ },
27
+ {
28
+ id: "claude-3-haiku-20240307",
29
+ name: "Claude 3 Haiku (2024-03-07)",
30
+ provider: "anthropic",
31
+ contextLength: 200000
32
+ },
33
+ {
34
+ id: "claude-haiku-4-5-20251001",
35
+ name: "Claude Haiku 4.5 (2025-10-01)",
36
+ provider: "anthropic",
37
+ contextLength: 200000
38
+ },
39
+ {
40
+ id: "claude-haiku-4-5",
41
+ name: "Claude Haiku 4.5",
42
+ provider: "anthropic",
43
+ contextLength: 200000
44
+ },
45
+ {
46
+ id: "claude-opus-4-0",
47
+ name: "Claude Opus 4.0",
48
+ provider: "anthropic",
49
+ contextLength: 200000
50
+ },
51
+ {
52
+ id: "claude-opus-4-1-20250805",
53
+ name: "Claude Opus 4.1 (2025-08-05)",
54
+ provider: "anthropic",
55
+ contextLength: 200000
56
+ },
57
+ {
58
+ id: "claude-opus-4-1",
59
+ name: "Claude Opus 4.1",
60
+ provider: "anthropic",
61
+ contextLength: 200000
62
+ },
63
+ {
64
+ id: "claude-opus-4-20250514",
65
+ name: "Claude Opus 4 (2025-05-14)",
66
+ provider: "anthropic",
67
+ contextLength: 200000
68
+ },
69
+ {
70
+ id: "claude-opus-4-5",
71
+ name: "Claude Opus 4.5",
72
+ provider: "anthropic",
73
+ contextLength: 200000
74
+ },
75
+ {
76
+ id: "claude-opus-4-5-20251101",
77
+ name: "Claude Opus 4.5 (2025-11-01)",
78
+ provider: "anthropic",
79
+ contextLength: 200000
80
+ },
81
+ {
82
+ id: "claude-sonnet-4-0",
83
+ name: "Claude Sonnet 4.0",
84
+ provider: "anthropic",
85
+ contextLength: 200000
86
+ },
87
+ {
88
+ id: "claude-sonnet-4-20250514",
89
+ name: "Claude Sonnet 4 (2025-05-14)",
90
+ provider: "anthropic",
91
+ contextLength: 200000
92
+ },
93
+ {
94
+ id: "claude-sonnet-4-5-20250929",
95
+ name: "Claude Sonnet 4.5 (2025-09-29)",
96
+ provider: "anthropic",
97
+ contextLength: 200000
98
+ },
99
+ {
100
+ id: "claude-sonnet-4-5",
101
+ name: "Claude Sonnet 4.5",
102
+ provider: "anthropic",
103
+ contextLength: 200000
104
+ },
105
+ {
106
+ id: "claude-sonnet-4-6",
107
+ name: "Claude Sonnet 4.6",
108
+ provider: "anthropic",
109
+ contextLength: 200000
110
+ },
111
+ {
112
+ id: "claude-opus-4-6",
113
+ name: "Claude Opus 4.6",
114
+ provider: "anthropic",
115
+ contextLength: 200000
116
+ }
117
+ ];
118
+
119
+ // src/core/ai/models/openai.ts
120
+ var OPENAI_MODELS = [
121
+ {
122
+ id: "o1",
123
+ name: "O1",
124
+ provider: "openai",
125
+ contextLength: 200000
126
+ },
127
+ {
128
+ id: "o1-2024-12-17",
129
+ name: "O1-2024-12-17",
130
+ provider: "openai",
131
+ contextLength: 200000
132
+ },
133
+ {
134
+ id: "o3-mini",
135
+ name: "O3 Mini",
136
+ provider: "openai",
137
+ contextLength: 128000
138
+ },
139
+ {
140
+ id: "o3-mini-2025-01-31",
141
+ name: "O3 Mini-2025-01-31",
142
+ provider: "openai",
143
+ contextLength: 128000
144
+ },
145
+ {
146
+ id: "o3",
147
+ name: "O3",
148
+ provider: "openai",
149
+ contextLength: 200000
150
+ },
151
+ {
152
+ id: "o3-2025-04-16",
153
+ name: "O3-2025-04-16",
154
+ provider: "openai",
155
+ contextLength: 200000
156
+ },
157
+ {
158
+ id: "o4-mini",
159
+ name: "O4 Mini",
160
+ provider: "openai",
161
+ contextLength: 200000
162
+ },
163
+ {
164
+ id: "o4-mini-2025-04-16",
165
+ name: "O4 Mini-2025-04-16",
166
+ provider: "openai",
167
+ contextLength: 200000
168
+ },
169
+ {
170
+ id: "gpt-4.1",
171
+ name: "GPT-4.1",
172
+ provider: "openai",
173
+ contextLength: 128000
174
+ },
175
+ {
176
+ id: "gpt-4.1-2025-04-14",
177
+ name: "GPT-4.1-2025-04-14",
178
+ provider: "openai",
179
+ contextLength: 128000
180
+ },
181
+ {
182
+ id: "gpt-4.1-mini",
183
+ name: "GPT-4.1-mini",
184
+ provider: "openai",
185
+ contextLength: 128000
186
+ },
187
+ {
188
+ id: "gpt-4.1-mini-2025-04-14",
189
+ name: "GPT-4.1-mini-2025-04-14",
190
+ provider: "openai",
191
+ contextLength: 128000
192
+ },
193
+ {
194
+ id: "gpt-4.1-nano",
195
+ name: "GPT-4.1-nano",
196
+ provider: "openai",
197
+ contextLength: 128000
198
+ },
199
+ {
200
+ id: "gpt-4.1-nano-2025-04-14",
201
+ name: "GPT-4.1-nano-2025-04-14",
202
+ provider: "openai",
203
+ contextLength: 128000
204
+ },
205
+ {
206
+ id: "gpt-4o",
207
+ name: "GPT-4o",
208
+ provider: "openai",
209
+ contextLength: 128000
210
+ },
211
+ {
212
+ id: "gpt-4o-2024-05-13",
213
+ name: "GPT-4o-2024-05-13",
214
+ provider: "openai",
215
+ contextLength: 128000
216
+ },
217
+ {
218
+ id: "gpt-4o-2024-08-06",
219
+ name: "GPT-4o-2024-08-06",
220
+ provider: "openai",
221
+ contextLength: 128000
222
+ },
223
+ {
224
+ id: "gpt-4o-2024-11-20",
225
+ name: "GPT-4o-2024-11-20",
226
+ provider: "openai",
227
+ contextLength: 128000
228
+ },
229
+ {
230
+ id: "gpt-4o-mini",
231
+ name: "GPT-4o-mini",
232
+ provider: "openai",
233
+ contextLength: 128000
234
+ },
235
+ {
236
+ id: "gpt-4o-mini-2024-07-18",
237
+ name: "GPT-4o-mini-2024-07-18",
238
+ provider: "openai",
239
+ contextLength: 128000
240
+ },
241
+ {
242
+ id: "gpt-4-turbo",
243
+ name: "GPT-4-turbo",
244
+ provider: "openai",
245
+ contextLength: 128000
246
+ },
247
+ {
248
+ id: "gpt-4-turbo-2024-04-09",
249
+ name: "GPT-4-turbo-2024-04-09",
250
+ provider: "openai",
251
+ contextLength: 128000
252
+ },
253
+ {
254
+ id: "gpt-4",
255
+ name: "GPT-4",
256
+ provider: "openai",
257
+ contextLength: 8192
258
+ },
259
+ {
260
+ id: "gpt-4-0613",
261
+ name: "GPT-4-0613",
262
+ provider: "openai",
263
+ contextLength: 8192
264
+ },
265
+ {
266
+ id: "gpt-3.5-turbo-0125",
267
+ name: "GPT-3.5-turbo-0125",
268
+ provider: "openai",
269
+ contextLength: 16385
270
+ },
271
+ {
272
+ id: "gpt-3.5-turbo",
273
+ name: "GPT-3.5-turbo",
274
+ provider: "openai",
275
+ contextLength: 16385
276
+ },
277
+ {
278
+ id: "gpt-3.5-turbo-1106",
279
+ name: "GPT-3.5-turbo-1106",
280
+ provider: "openai",
281
+ contextLength: 16385
282
+ },
283
+ {
284
+ id: "gpt-3.5-turbo-16k",
285
+ name: "GPT-3.5-turbo-16k",
286
+ provider: "openai",
287
+ contextLength: 16385
288
+ },
289
+ {
290
+ id: "chatgpt-4o-latest",
291
+ name: "ChatGPT-4o (Latest)",
292
+ provider: "openai",
293
+ contextLength: 128000
294
+ },
295
+ {
296
+ id: "gpt-5",
297
+ name: "GPT-5",
298
+ provider: "openai",
299
+ contextLength: 200000
300
+ },
301
+ {
302
+ id: "gpt-5-2025-08-07",
303
+ name: "GPT-5-2025-08-07",
304
+ provider: "openai",
305
+ contextLength: 200000
306
+ },
307
+ {
308
+ id: "gpt-5-mini",
309
+ name: "GPT-5-mini",
310
+ provider: "openai",
311
+ contextLength: 200000
312
+ },
313
+ {
314
+ id: "gpt-5-mini-2025-08-07",
315
+ name: "GPT-5-mini-2025-08-07",
316
+ provider: "openai",
317
+ contextLength: 200000
318
+ },
319
+ {
320
+ id: "gpt-5-nano",
321
+ name: "GPT-5-nano",
322
+ provider: "openai",
323
+ contextLength: 200000
324
+ },
325
+ {
326
+ id: "gpt-5-nano-2025-08-07",
327
+ name: "GPT-5-nano-2025-08-07",
328
+ provider: "openai",
329
+ contextLength: 200000
330
+ },
331
+ {
332
+ id: "gpt-5-chat-latest",
333
+ name: "GPT-5-chat (Latest)",
334
+ provider: "openai",
335
+ contextLength: 200000
336
+ },
337
+ {
338
+ id: "gpt-5.1",
339
+ name: "GPT-5.1",
340
+ provider: "openai",
341
+ contextLength: 200000
342
+ },
343
+ {
344
+ id: "gpt-5.1-2025-11-13",
345
+ name: "GPT-5.1-2025-11-13",
346
+ provider: "openai",
347
+ contextLength: 200000
348
+ },
349
+ {
350
+ id: "gpt-5.1-chat-latest",
351
+ name: "GPT-5.1-chat (Latest)",
352
+ provider: "openai",
353
+ contextLength: 200000
354
+ },
355
+ {
356
+ id: "gpt-5.2",
357
+ name: "GPT-5.2",
358
+ provider: "openai",
359
+ contextLength: 200000
360
+ },
361
+ {
362
+ id: "gpt-5.2-2025-12-11",
363
+ name: "GPT-5.2-2025-12-11",
364
+ provider: "openai",
365
+ contextLength: 200000
366
+ },
367
+ {
368
+ id: "gpt-5.2-chat-latest",
369
+ name: "GPT-5.2-chat (Latest)",
370
+ provider: "openai",
371
+ contextLength: 200000
372
+ },
373
+ {
374
+ id: "gpt-5.2-pro",
375
+ name: "GPT-5.2-pro",
376
+ provider: "openai",
377
+ contextLength: 200000
378
+ },
379
+ {
380
+ id: "gpt-5.2-pro-2025-12-11",
381
+ name: "GPT-5.2-pro-2025-12-11",
382
+ provider: "openai",
383
+ contextLength: 200000
384
+ }
385
+ ];
386
+
387
+ // src/core/ai/models/google.ts
388
+ var GOOGLE_MODELS = [
389
+ {
390
+ id: "gemini-2.0-flash",
391
+ name: "Gemini 2.0 Flash",
392
+ provider: "google",
393
+ contextLength: 1e6
394
+ },
395
+ {
396
+ id: "gemini-2.0-flash-001",
397
+ name: "Gemini 2.0 Flash 001",
398
+ provider: "google",
399
+ contextLength: 1e6
400
+ },
401
+ {
402
+ id: "gemini-2.0-flash-lite",
403
+ name: "Gemini 2.0 Flash Lite",
404
+ provider: "google",
405
+ contextLength: 1e6
406
+ },
407
+ {
408
+ id: "gemini-2.0-flash-lite-001",
409
+ name: "Gemini 2.0 Flash Lite 001",
410
+ provider: "google",
411
+ contextLength: 1e6
412
+ },
413
+ {
414
+ id: "gemini-2.5-pro",
415
+ name: "Gemini 2.5 Pro",
416
+ provider: "google",
417
+ contextLength: 1e6
418
+ },
419
+ {
420
+ id: "gemini-2.5-flash",
421
+ name: "Gemini 2.5 Flash",
422
+ provider: "google",
423
+ contextLength: 1e6
424
+ },
425
+ {
426
+ id: "gemini-2.5-flash-lite",
427
+ name: "Gemini 2.5 Flash Lite",
428
+ provider: "google",
429
+ contextLength: 1e6
430
+ },
431
+ {
432
+ id: "gemini-2.5-flash-lite-preview-09-2025",
433
+ name: "Gemini 2.5 Flash Lite Preview 09 2025",
434
+ provider: "google",
435
+ contextLength: 1e6
436
+ },
437
+ {
438
+ id: "gemini-2.5-computer-use-preview-10-2025",
439
+ name: "Gemini 2.5 Computer Use Preview 10 2025",
440
+ provider: "google",
441
+ contextLength: 1e6
442
+ },
443
+ {
444
+ id: "gemini-3-pro-preview",
445
+ name: "Gemini 3 Pro Preview",
446
+ provider: "google",
447
+ contextLength: 1e6
448
+ },
449
+ {
450
+ id: "gemini-3-flash-preview",
451
+ name: "Gemini 3 Flash Preview",
452
+ provider: "google",
453
+ contextLength: 1e6
454
+ },
455
+ {
456
+ id: "gemini-3.1-pro-preview",
457
+ name: "Gemini 3.1 Pro Preview",
458
+ provider: "google",
459
+ contextLength: 1e6
460
+ },
461
+ {
462
+ id: "gemini-3.1-pro-preview-customtools",
463
+ name: "Gemini 3.1 Pro Preview Custom Tools",
464
+ provider: "google",
465
+ contextLength: 1e6
466
+ },
467
+ {
468
+ id: "gemini-3.1-flash-lite-preview",
469
+ name: "Gemini 3.1 Flash Lite Preview",
470
+ provider: "google",
471
+ contextLength: 1e6
472
+ },
473
+ {
474
+ id: "gemini-pro-latest",
475
+ name: "Gemini pro (Latest)",
476
+ provider: "google",
477
+ contextLength: 1e6
478
+ },
479
+ {
480
+ id: "gemini-flash-latest",
481
+ name: "Gemini flash (Latest)",
482
+ provider: "google",
483
+ contextLength: 1e6
484
+ },
485
+ {
486
+ id: "gemini-flash-lite-latest",
487
+ name: "Gemini flash Lite (Latest)",
488
+ provider: "google",
489
+ contextLength: 1e6
490
+ },
491
+ {
492
+ id: "nano-banana-pro-preview",
493
+ name: "nano-banana-pro Preview",
494
+ provider: "google"
495
+ },
496
+ {
497
+ id: "aqa",
498
+ name: "aqa",
499
+ provider: "google"
500
+ },
501
+ {
502
+ id: "gemini-robotics-er-1.5-preview",
503
+ name: "Gemini robotics Er 1.5 Preview",
504
+ provider: "google"
505
+ },
506
+ {
507
+ id: "gemma-3-1b-it",
508
+ name: "Gemma 3 1B Instruct",
509
+ provider: "google",
510
+ contextLength: 8192
511
+ },
512
+ {
513
+ id: "gemma-3-4b-it",
514
+ name: "Gemma 3 4B Instruct",
515
+ provider: "google",
516
+ contextLength: 8192
517
+ },
518
+ {
519
+ id: "gemma-3n-e4b-it",
520
+ name: "Gemma 3n e4b Instruct",
521
+ provider: "google",
522
+ contextLength: 8192
523
+ },
524
+ {
525
+ id: "gemma-3n-e2b-it",
526
+ name: "Gemma 3n e2b Instruct",
527
+ provider: "google",
528
+ contextLength: 8192
529
+ },
530
+ {
531
+ id: "gemma-3-12b-it",
532
+ name: "Gemma 3 12B Instruct",
533
+ provider: "google",
534
+ contextLength: 8192
535
+ },
536
+ {
537
+ id: "gemma-3-27b-it",
538
+ name: "Gemma 3 27B Instruct",
539
+ provider: "google",
540
+ contextLength: 8192
541
+ }
542
+ ];
543
+
544
+ // src/core/ai/models/bedrock.ts
545
+ var BEDROCK_MODELS = [
546
+ {
547
+ id: "amazon.titan-tg1-large",
548
+ name: "Amazon Titan TG1 Large (Bedrock)",
549
+ provider: "bedrock",
550
+ contextLength: 8000
551
+ },
552
+ {
553
+ id: "amazon.titan-text-express-v1",
554
+ name: "Amazon Titan Text Express v1 (Bedrock)",
555
+ provider: "bedrock",
556
+ contextLength: 8000
557
+ },
558
+ {
559
+ id: "anthropic.claude-v2",
560
+ name: "Claude v2 (Bedrock)",
561
+ provider: "bedrock",
562
+ contextLength: 1e5
563
+ },
564
+ {
565
+ id: "anthropic.claude-v2:1",
566
+ name: "Claude v2:1 (Bedrock)",
567
+ provider: "bedrock",
568
+ contextLength: 1e5
569
+ },
570
+ {
571
+ id: "anthropic.claude-instant-v1",
572
+ name: "Claude Instant v1 (Bedrock)",
573
+ provider: "bedrock",
574
+ contextLength: 1e5
575
+ },
576
+ {
577
+ id: "anthropic.claude-opus-4-6-v1",
578
+ name: "Claude Opus 4.6 (Bedrock)",
579
+ provider: "bedrock",
580
+ contextLength: 200000
581
+ },
582
+ {
583
+ id: "anthropic.claude-sonnet-4-6-v1",
584
+ name: "Claude Sonnet 4.6 (Bedrock)",
585
+ provider: "bedrock",
586
+ contextLength: 200000
587
+ },
588
+ {
589
+ id: "anthropic.claude-opus-4-5-20251101-v1:0",
590
+ name: "Claude Opus 4.5 (2025-11-01) (Bedrock)",
591
+ provider: "bedrock",
592
+ contextLength: 200000
593
+ },
594
+ {
595
+ id: "anthropic.claude-haiku-4-5-20251001-v1:0",
596
+ name: "Claude Haiku 4.5 (2025-10-01) (Bedrock)",
597
+ provider: "bedrock",
598
+ contextLength: 200000
599
+ },
600
+ {
601
+ id: "anthropic.claude-sonnet-4-5-20250929-v1:0",
602
+ name: "Claude Sonnet 4.5 (2025-09-29) (Bedrock)",
603
+ provider: "bedrock",
604
+ contextLength: 200000
605
+ },
606
+ {
607
+ id: "anthropic.claude-sonnet-4-20250514-v1:0",
608
+ name: "Claude Sonnet 4 (2025-05-14) (Bedrock)",
609
+ provider: "bedrock",
610
+ contextLength: 200000
611
+ },
612
+ {
613
+ id: "anthropic.claude-opus-4-20250514-v1:0",
614
+ name: "Claude Opus 4 (2025-05-14) (Bedrock)",
615
+ provider: "bedrock",
616
+ contextLength: 200000
617
+ },
618
+ {
619
+ id: "anthropic.claude-opus-4-1-20250805-v1:0",
620
+ name: "Claude Opus 4.1 (2025-08-05) (Bedrock)",
621
+ provider: "bedrock",
622
+ contextLength: 200000
623
+ },
624
+ {
625
+ id: "anthropic.claude-3-7-sonnet-20250219-v1:0",
626
+ name: "Claude 3.7 Sonnet (2025-02-19) (Bedrock)",
627
+ provider: "bedrock",
628
+ contextLength: 200000
629
+ },
630
+ {
631
+ id: "anthropic.claude-3-5-sonnet-20240620-v1:0",
632
+ name: "Claude 3.5 Sonnet (2024-06-20) (Bedrock)",
633
+ provider: "bedrock",
634
+ contextLength: 200000
635
+ },
636
+ {
637
+ id: "anthropic.claude-3-5-sonnet-20241022-v2:0",
638
+ name: "Claude 3.5 Sonnet (2024-10-22) (Bedrock)",
639
+ provider: "bedrock",
640
+ contextLength: 200000
641
+ },
642
+ {
643
+ id: "anthropic.claude-3-5-haiku-20241022-v1:0",
644
+ name: "Claude 3.5 Haiku (2024-10-22) (Bedrock)",
645
+ provider: "bedrock",
646
+ contextLength: 200000
647
+ },
648
+ {
649
+ id: "anthropic.claude-3-sonnet-20240229-v1:0",
650
+ name: "Claude 3 Sonnet (2024-02-29) (Bedrock)",
651
+ provider: "bedrock",
652
+ contextLength: 200000
653
+ },
654
+ {
655
+ id: "anthropic.claude-3-haiku-20240307-v1:0",
656
+ name: "Claude 3 Haiku (2024-03-07) (Bedrock)",
657
+ provider: "bedrock",
658
+ contextLength: 200000
659
+ },
660
+ {
661
+ id: "anthropic.claude-3-opus-20240229-v1:0",
662
+ name: "Claude 3 Opus (2024-02-29) (Bedrock)",
663
+ provider: "bedrock",
664
+ contextLength: 200000
665
+ },
666
+ {
667
+ id: "cohere.command-text-v14",
668
+ name: "Cohere Command Text V14 (Bedrock)",
669
+ provider: "bedrock",
670
+ contextLength: 4000
671
+ },
672
+ {
673
+ id: "cohere.command-light-text-v14",
674
+ name: "Cohere Command Light Text V14 (Bedrock)",
675
+ provider: "bedrock",
676
+ contextLength: 4000
677
+ },
678
+ {
679
+ id: "cohere.command-r-v1:0",
680
+ name: "Cohere Command R (Bedrock)",
681
+ provider: "bedrock",
682
+ contextLength: 128000
683
+ },
684
+ {
685
+ id: "cohere.command-r-plus-v1:0",
686
+ name: "Cohere Command R Plus (Bedrock)",
687
+ provider: "bedrock",
688
+ contextLength: 128000
689
+ },
690
+ {
691
+ id: "meta.llama3-70b-instruct-v1:0",
692
+ name: "Llama 3 70B Instruct (Bedrock)",
693
+ provider: "bedrock",
694
+ contextLength: 8000
695
+ },
696
+ {
697
+ id: "meta.llama3-8b-instruct-v1:0",
698
+ name: "Llama 3 8B Instruct (Bedrock)",
699
+ provider: "bedrock",
700
+ contextLength: 8000
701
+ },
702
+ {
703
+ id: "meta.llama3-1-405b-instruct-v1:0",
704
+ name: "Llama 3.1 405B Instruct (Bedrock)",
705
+ provider: "bedrock",
706
+ contextLength: 128000
707
+ },
708
+ {
709
+ id: "meta.llama3-1-70b-instruct-v1:0",
710
+ name: "Llama 3.1 70B Instruct (Bedrock)",
711
+ provider: "bedrock",
712
+ contextLength: 128000
713
+ },
714
+ {
715
+ id: "meta.llama3-1-8b-instruct-v1:0",
716
+ name: "Llama 3.1 8B Instruct (Bedrock)",
717
+ provider: "bedrock",
718
+ contextLength: 128000
719
+ },
720
+ {
721
+ id: "meta.llama3-2-11b-instruct-v1:0",
722
+ name: "Llama 3.2 11B Instruct (Bedrock)",
723
+ provider: "bedrock",
724
+ contextLength: 128000
725
+ },
726
+ {
727
+ id: "meta.llama3-2-1b-instruct-v1:0",
728
+ name: "Llama 3.2 1B Instruct (Bedrock)",
729
+ provider: "bedrock",
730
+ contextLength: 128000
731
+ },
732
+ {
733
+ id: "meta.llama3-2-3b-instruct-v1:0",
734
+ name: "Llama 3.2 3B Instruct (Bedrock)",
735
+ provider: "bedrock",
736
+ contextLength: 128000
737
+ },
738
+ {
739
+ id: "meta.llama3-2-90b-instruct-v1:0",
740
+ name: "Llama 3.2 90B Instruct (Bedrock)",
741
+ provider: "bedrock",
742
+ contextLength: 128000
743
+ },
744
+ {
745
+ id: "mistral.mistral-7b-instruct-v0:2",
746
+ name: "Mistral 7B Instruct (Bedrock)",
747
+ provider: "bedrock",
748
+ contextLength: 32000
749
+ },
750
+ {
751
+ id: "mistral.mixtral-8x7b-instruct-v0:1",
752
+ name: "Mixtral 8x7B Instruct (Bedrock)",
753
+ provider: "bedrock",
754
+ contextLength: 32000
755
+ },
756
+ {
757
+ id: "mistral.mistral-large-2402-v1:0",
758
+ name: "Mistral Large-2402 (Bedrock)",
759
+ provider: "bedrock",
760
+ contextLength: 128000
761
+ },
762
+ {
763
+ id: "mistral.mistral-small-2402-v1:0",
764
+ name: "Mistral Small-2402 (Bedrock)",
765
+ provider: "bedrock",
766
+ contextLength: 32000
767
+ },
768
+ {
769
+ id: "openai.gpt-oss-120b-1:0",
770
+ name: "GPT-oss-120b-1:0 (Bedrock)",
771
+ provider: "bedrock",
772
+ contextLength: 8000
773
+ },
774
+ {
775
+ id: "openai.gpt-oss-20b-1:0",
776
+ name: "GPT-oss-20b-1:0 (Bedrock)",
777
+ provider: "bedrock",
778
+ contextLength: 8000
779
+ },
780
+ {
781
+ id: "amazon.titan-text-lite-v1",
782
+ name: "Amazon Titan Text Lite v1 (Bedrock)",
783
+ provider: "bedrock",
784
+ contextLength: 4000
785
+ },
786
+ {
787
+ id: "us.amazon.nova-premier-v1:0",
788
+ name: "Amazon Nova Premier (US)",
789
+ provider: "bedrock",
790
+ contextLength: 300000
791
+ },
792
+ {
793
+ id: "us.amazon.nova-pro-v1:0",
794
+ name: "Amazon Nova Pro (US)",
795
+ provider: "bedrock",
796
+ contextLength: 300000
797
+ },
798
+ {
799
+ id: "us.amazon.nova-micro-v1:0",
800
+ name: "Amazon Nova Micro (US)",
801
+ provider: "bedrock",
802
+ contextLength: 128000
803
+ },
804
+ {
805
+ id: "us.amazon.nova-lite-v1:0",
806
+ name: "Amazon Nova Lite (US)",
807
+ provider: "bedrock",
808
+ contextLength: 300000
809
+ },
810
+ {
811
+ id: "us.anthropic.claude-3-sonnet-20240229-v1:0",
812
+ name: "Claude 3 Sonnet (2024-02-29) (US)",
813
+ provider: "bedrock",
814
+ contextLength: 200000
815
+ },
816
+ {
817
+ id: "us.anthropic.claude-3-opus-20240229-v1:0",
818
+ name: "Claude 3 Opus (2024-02-29) (US)",
819
+ provider: "bedrock",
820
+ contextLength: 200000
821
+ },
822
+ {
823
+ id: "us.anthropic.claude-3-haiku-20240307-v1:0",
824
+ name: "Claude 3 Haiku (2024-03-07) (US)",
825
+ provider: "bedrock",
826
+ contextLength: 200000
827
+ },
828
+ {
829
+ id: "us.anthropic.claude-3-5-sonnet-20240620-v1:0",
830
+ name: "Claude 3.5 Sonnet (2024-06-20) (US)",
831
+ provider: "bedrock",
832
+ contextLength: 200000
833
+ },
834
+ {
835
+ id: "us.anthropic.claude-3-5-haiku-20241022-v1:0",
836
+ name: "Claude 3.5 Haiku (2024-10-22) (US)",
837
+ provider: "bedrock",
838
+ contextLength: 200000
839
+ },
840
+ {
841
+ id: "us.anthropic.claude-3-5-sonnet-20241022-v2:0",
842
+ name: "Claude 3.5 Sonnet (2024-10-22) (US)",
843
+ provider: "bedrock",
844
+ contextLength: 200000
845
+ },
846
+ {
847
+ id: "us.anthropic.claude-3-7-sonnet-20250219-v1:0",
848
+ name: "Claude 3.7 Sonnet (2025-02-19) (US)",
849
+ provider: "bedrock",
850
+ contextLength: 200000
851
+ },
852
+ {
853
+ id: "us.anthropic.claude-opus-4-6-v1",
854
+ name: "Claude Opus 4.6 (US)",
855
+ provider: "bedrock",
856
+ contextLength: 200000
857
+ },
858
+ {
859
+ id: "us.anthropic.claude-sonnet-4-6-v1",
860
+ name: "Claude Sonnet 4.6 (US)",
861
+ provider: "bedrock",
862
+ contextLength: 200000
863
+ },
864
+ {
865
+ id: "us.anthropic.claude-opus-4-5-20251101-v1:0",
866
+ name: "Claude Opus 4.5 (2025-11-01) (US)",
867
+ provider: "bedrock",
868
+ contextLength: 200000
869
+ },
870
+ {
871
+ id: "us.anthropic.claude-sonnet-4-5-20250929-v1:0",
872
+ name: "Claude Sonnet 4.5 (2025-09-29) (US)",
873
+ provider: "bedrock",
874
+ contextLength: 200000
875
+ },
876
+ {
877
+ id: "us.anthropic.claude-sonnet-4-20250514-v1:0",
878
+ name: "Claude Sonnet 4 (2025-05-14) (US)",
879
+ provider: "bedrock",
880
+ contextLength: 200000
881
+ },
882
+ {
883
+ id: "us.anthropic.claude-opus-4-20250514-v1:0",
884
+ name: "Claude Opus 4 (2025-05-14) (US)",
885
+ provider: "bedrock",
886
+ contextLength: 200000
887
+ },
888
+ {
889
+ id: "us.anthropic.claude-opus-4-1-20250805-v1:0",
890
+ name: "Claude Opus 4.1 (2025-08-05) (US)",
891
+ provider: "bedrock",
892
+ contextLength: 200000
893
+ },
894
+ {
895
+ id: "us.anthropic.claude-haiku-4-5-20251001-v1:0",
896
+ name: "Claude Haiku 4.5 (2025-10-01) (US)",
897
+ provider: "bedrock",
898
+ contextLength: 200000
899
+ },
900
+ {
901
+ id: "us.meta.llama3-2-11b-instruct-v1:0",
902
+ name: "Llama 3.2 11B Instruct (US)",
903
+ provider: "bedrock",
904
+ contextLength: 128000
905
+ },
906
+ {
907
+ id: "us.meta.llama3-2-3b-instruct-v1:0",
908
+ name: "Llama 3.2 3B Instruct (US)",
909
+ provider: "bedrock",
910
+ contextLength: 128000
911
+ },
912
+ {
913
+ id: "us.meta.llama3-2-90b-instruct-v1:0",
914
+ name: "Llama 3.2 90B Instruct (US)",
915
+ provider: "bedrock",
916
+ contextLength: 128000
917
+ },
918
+ {
919
+ id: "us.meta.llama3-2-1b-instruct-v1:0",
920
+ name: "Llama 3.2 1B Instruct (US)",
921
+ provider: "bedrock",
922
+ contextLength: 128000
923
+ },
924
+ {
925
+ id: "us.meta.llama3-1-8b-instruct-v1:0",
926
+ name: "Llama 3.1 8B Instruct (US)",
927
+ provider: "bedrock",
928
+ contextLength: 128000
929
+ },
930
+ {
931
+ id: "us.meta.llama3-1-70b-instruct-v1:0",
932
+ name: "Llama 3.1 70B Instruct (US)",
933
+ provider: "bedrock",
934
+ contextLength: 128000
935
+ },
936
+ {
937
+ id: "us.meta.llama3-3-70b-instruct-v1:0",
938
+ name: "Llama 3.3 70B Instruct (US)",
939
+ provider: "bedrock",
940
+ contextLength: 128000
941
+ },
942
+ {
943
+ id: "us.deepseek.r1-v1:0",
944
+ name: "DeepSeek R1 (US)",
945
+ provider: "bedrock",
946
+ contextLength: 64000
947
+ },
948
+ {
949
+ id: "us.mistral.pixtral-large-2502-v1:0",
950
+ name: "Pixtral Large-2502 (US)",
951
+ provider: "bedrock",
952
+ contextLength: 128000
953
+ },
954
+ {
955
+ id: "us.meta.llama4-scout-17b-instruct-v1:0",
956
+ name: "Llama 4 Scout 17B Instruct (US)",
957
+ provider: "bedrock",
958
+ contextLength: 128000
959
+ },
960
+ {
961
+ id: "us.meta.llama4-maverick-17b-instruct-v1:0",
962
+ name: "Llama 4 Maverick 17B Instruct (US)",
963
+ provider: "bedrock",
964
+ contextLength: 128000
965
+ },
966
+ {
967
+ id: "global.anthropic.claude-v2",
968
+ name: "Claude v2 (Global)",
969
+ provider: "bedrock",
970
+ contextLength: 1e5
971
+ },
972
+ {
973
+ id: "global.anthropic.claude-v2:1",
974
+ name: "Claude v2:1 (Global)",
975
+ provider: "bedrock",
976
+ contextLength: 1e5
977
+ },
978
+ {
979
+ id: "global.anthropic.claude-instant-v1",
980
+ name: "Claude Instant v1 (Global)",
981
+ provider: "bedrock",
982
+ contextLength: 1e5
983
+ },
984
+ {
985
+ id: "global.anthropic.claude-opus-4-6-v1",
986
+ name: "Claude Opus 4.6 (Global)",
987
+ provider: "bedrock",
988
+ contextLength: 200000
989
+ },
990
+ {
991
+ id: "global.anthropic.claude-sonnet-4-6-v1",
992
+ name: "Claude Sonnet 4.6 (Global)",
993
+ provider: "bedrock",
994
+ contextLength: 200000
995
+ },
996
+ {
997
+ id: "global.anthropic.claude-opus-4-5-20251101-v1:0",
998
+ name: "Claude Opus 4.5 (2025-11-01) (Global)",
999
+ provider: "bedrock",
1000
+ contextLength: 200000
1001
+ },
1002
+ {
1003
+ id: "global.anthropic.claude-haiku-4-5-20251001-v1:0",
1004
+ name: "Claude Haiku 4.5 (2025-10-01) (Global)",
1005
+ provider: "bedrock",
1006
+ contextLength: 200000
1007
+ },
1008
+ {
1009
+ id: "global.anthropic.claude-sonnet-4-5-20250929-v1:0",
1010
+ name: "Claude Sonnet 4.5 (2025-09-29) (Global)",
1011
+ provider: "bedrock",
1012
+ contextLength: 200000
1013
+ },
1014
+ {
1015
+ id: "global.anthropic.claude-sonnet-4-20250514-v1:0",
1016
+ name: "Claude Sonnet 4 (2025-05-14) (Global)",
1017
+ provider: "bedrock",
1018
+ contextLength: 200000
1019
+ },
1020
+ {
1021
+ id: "global.anthropic.claude-opus-4-20250514-v1:0",
1022
+ name: "Claude Opus 4 (2025-05-14) (Global)",
1023
+ provider: "bedrock",
1024
+ contextLength: 200000
1025
+ },
1026
+ {
1027
+ id: "global.anthropic.claude-opus-4-1-20250805-v1:0",
1028
+ name: "Claude Opus 4.1 (2025-08-05) (Global)",
1029
+ provider: "bedrock",
1030
+ contextLength: 200000
1031
+ },
1032
+ {
1033
+ id: "global.anthropic.claude-3-7-sonnet-20250219-v1:0",
1034
+ name: "Claude 3.7 Sonnet (2025-02-19) (Global)",
1035
+ provider: "bedrock",
1036
+ contextLength: 200000
1037
+ },
1038
+ {
1039
+ id: "global.anthropic.claude-3-5-sonnet-20240620-v1:0",
1040
+ name: "Claude 3.5 Sonnet (2024-06-20) (Global)",
1041
+ provider: "bedrock",
1042
+ contextLength: 200000
1043
+ },
1044
+ {
1045
+ id: "global.anthropic.claude-3-5-sonnet-20241022-v2:0",
1046
+ name: "Claude 3.5 Sonnet (2024-10-22) (Global)",
1047
+ provider: "bedrock",
1048
+ contextLength: 200000
1049
+ },
1050
+ {
1051
+ id: "global.anthropic.claude-3-5-haiku-20241022-v1:0",
1052
+ name: "Claude 3.5 Haiku (2024-10-22) (Global)",
1053
+ provider: "bedrock",
1054
+ contextLength: 200000
1055
+ },
1056
+ {
1057
+ id: "global.anthropic.claude-3-sonnet-20240229-v1:0",
1058
+ name: "Claude 3 Sonnet (2024-02-29) (Global)",
1059
+ provider: "bedrock",
1060
+ contextLength: 200000
1061
+ },
1062
+ {
1063
+ id: "global.anthropic.claude-3-haiku-20240307-v1:0",
1064
+ name: "Claude 3 Haiku (2024-03-07) (Global)",
1065
+ provider: "bedrock",
1066
+ contextLength: 200000
1067
+ },
1068
+ {
1069
+ id: "global.anthropic.claude-3-opus-20240229-v1:0",
1070
+ name: "Claude 3 Opus (2024-02-29) (Global)",
1071
+ provider: "bedrock",
1072
+ contextLength: 200000
1073
+ }
1074
+ ];
1075
+
1076
+ // src/core/ai/models/openrouter.ts
1077
+ var OPENROUTER_MODELS = [
1078
+ {
1079
+ id: "anthropic/claude-haiku-4.5",
1080
+ name: "Claude Haiku 4.5 (OpenRouter)",
1081
+ provider: "openrouter",
1082
+ contextLength: 200000
1083
+ },
1084
+ {
1085
+ id: "anthropic/claude-sonnet-4.5",
1086
+ name: "Claude Sonnet 4.5 (OpenRouter)",
1087
+ provider: "openrouter",
1088
+ contextLength: 200000
1089
+ },
1090
+ {
1091
+ id: "anthropic/claude-sonnet-4",
1092
+ name: "Claude Sonnet 4 (OpenRouter)",
1093
+ provider: "openrouter",
1094
+ contextLength: 200000
1095
+ },
1096
+ {
1097
+ id: "anthropic/claude-opus-4",
1098
+ name: "Claude Opus 4 (OpenRouter)",
1099
+ provider: "openrouter",
1100
+ contextLength: 200000
1101
+ },
1102
+ {
1103
+ id: "anthropic/claude-opus-4.6",
1104
+ name: "Claude Opus 4.6 (OpenRouter)",
1105
+ provider: "openrouter",
1106
+ contextLength: 200000
1107
+ },
1108
+ {
1109
+ id: "anthropic/claude-opus-4.5",
1110
+ name: "Claude Opus 4.5 (OpenRouter)",
1111
+ provider: "openrouter",
1112
+ contextLength: 200000
1113
+ },
1114
+ {
1115
+ id: "anthropic/claude-3.5-sonnet",
1116
+ name: "Claude 3.5 Sonnet (OpenRouter)",
1117
+ provider: "openrouter",
1118
+ contextLength: 200000
1119
+ },
1120
+ {
1121
+ id: "openai/gpt-4o",
1122
+ name: "GPT-4o (OpenRouter)",
1123
+ provider: "openrouter",
1124
+ contextLength: 128000
1125
+ },
1126
+ {
1127
+ id: "openai/gpt-4o-mini",
1128
+ name: "GPT-4o Mini (OpenRouter)",
1129
+ provider: "openrouter",
1130
+ contextLength: 128000
1131
+ },
1132
+ {
1133
+ id: "openai/o1",
1134
+ name: "O1 (OpenRouter)",
1135
+ provider: "openrouter",
1136
+ contextLength: 200000
1137
+ },
1138
+ {
1139
+ id: "google/gemini-2.0-flash-exp:free",
1140
+ name: "Gemini 2.0 Flash Exp (Free)",
1141
+ provider: "openrouter",
1142
+ contextLength: 1e6
1143
+ },
1144
+ {
1145
+ id: "google/gemini-2.0-flash-thinking-exp:free",
1146
+ name: "Gemini 2.0 Flash Thinking (Free)",
1147
+ provider: "openrouter",
1148
+ contextLength: 32768
1149
+ },
1150
+ {
1151
+ id: "google/gemini-pro-1.5",
1152
+ name: "Gemini Pro 1.5",
1153
+ provider: "openrouter",
1154
+ contextLength: 2000000
1155
+ },
1156
+ {
1157
+ id: "google/gemini-3-pro-preview",
1158
+ name: "Gemini 3 Pro Preview",
1159
+ provider: "openrouter",
1160
+ contextLength: 1e6
1161
+ },
1162
+ {
1163
+ id: "meta-llama/llama-3.3-70b-instruct",
1164
+ name: "Llama 3.3 70B Instruct",
1165
+ provider: "openrouter",
1166
+ contextLength: 128000
1167
+ },
1168
+ {
1169
+ id: "meta-llama/llama-3.1-405b-instruct",
1170
+ name: "Llama 3.1 405B Instruct",
1171
+ provider: "openrouter",
1172
+ contextLength: 128000
1173
+ },
1174
+ {
1175
+ id: "deepseek/deepseek-chat",
1176
+ name: "DeepSeek Chat",
1177
+ provider: "openrouter",
1178
+ contextLength: 64000
1179
+ },
1180
+ {
1181
+ id: "deepseek/deepseek-r1",
1182
+ name: "DeepSeek R1",
1183
+ provider: "openrouter",
1184
+ contextLength: 64000
1185
+ },
1186
+ {
1187
+ id: "mistralai/mistral-large-2512",
1188
+ name: "Mistral Large 3 2512",
1189
+ provider: "openrouter",
1190
+ contextLength: 262144
1191
+ },
1192
+ {
1193
+ id: "moonshotai/kimi-k2-thinking",
1194
+ name: "Kimi K2 Thinking",
1195
+ provider: "openrouter",
1196
+ contextLength: 262144
1197
+ },
1198
+ {
1199
+ id: "moonshot/kimi-k2-turbo",
1200
+ name: "Kimi K2 Turbo",
1201
+ provider: "openrouter",
1202
+ contextLength: 128000
1203
+ },
1204
+ {
1205
+ id: "moonshot/kimi-k2-chat",
1206
+ name: "Kimi K2 Chat",
1207
+ provider: "openrouter",
1208
+ contextLength: 128000
1209
+ },
1210
+ {
1211
+ id: "minimax/minimax-m2",
1212
+ name: "MiniMax M2",
1213
+ provider: "openrouter",
1214
+ contextLength: 204800
1215
+ },
1216
+ {
1217
+ id: "qwen/qwen3-8b",
1218
+ name: "Qwen 3 8B Thinking",
1219
+ provider: "openrouter",
1220
+ contextLength: 256000
1221
+ },
1222
+ {
1223
+ id: "qwen/qwen3-14b",
1224
+ name: "Qwen 3 14B Instruct",
1225
+ provider: "openrouter",
1226
+ contextLength: 256000
1227
+ },
1228
+ {
1229
+ id: "qwen/qwen3-32b",
1230
+ name: "Qwen 3 32B Instruct",
1231
+ provider: "openrouter",
1232
+ contextLength: 256000
1233
+ },
1234
+ {
1235
+ id: "qwen/qwen3-30b-a3b-thinking-2507",
1236
+ name: "Qwen 3 30B A3B Thinking",
1237
+ provider: "openrouter",
1238
+ contextLength: 32768
1239
+ },
1240
+ {
1241
+ id: "nvidia/nemotron-3-nano-30b-a3b:free",
1242
+ name: "Nemotron 3 Nano 30B A3B (Free)",
1243
+ provider: "openrouter",
1244
+ contextLength: 256000
1245
+ },
1246
+ {
1247
+ id: "nvidia/nemotron-3-nano-30b-a3b",
1248
+ name: "Nemotron 3 Nano 30B A3B",
1249
+ provider: "openrouter",
1250
+ contextLength: 262144
1251
+ },
1252
+ {
1253
+ id: "arcee-ai/trinity-mini:free",
1254
+ name: "Arcee Trinity Mini (Free)",
1255
+ provider: "openrouter",
1256
+ contextLength: 131072
1257
+ },
1258
+ {
1259
+ id: "arcee-ai/trinity-mini",
1260
+ name: "Arcee Trinity Mini",
1261
+ provider: "openrouter",
1262
+ contextLength: 131072
1263
+ },
1264
+ {
1265
+ id: "x-ai/grok-4.1-fast:free",
1266
+ name: "Grok 4.1 Fast (Free)",
1267
+ provider: "openrouter",
1268
+ contextLength: 2000000
1269
+ },
1270
+ {
1271
+ id: "x-ai/grok-code-fast-1",
1272
+ name: "Grok Code Fast 1",
1273
+ provider: "openrouter",
1274
+ contextLength: 256000
1275
+ },
1276
+ {
1277
+ id: "z-ai/glm-4.7-flash",
1278
+ name: "GLM 4.7 Flash",
1279
+ provider: "openrouter",
1280
+ contextLength: 200000
1281
+ }
1282
+ ];
1283
+
1284
+ // src/core/ai/models/pensar.ts
1285
+ var PENSAR_MODELS = [
1286
+ {
1287
+ id: "pensar:anthropic.claude-opus-4-6-v1",
1288
+ name: "Claude Opus 4.6 (Pensar)",
1289
+ provider: "pensar",
1290
+ contextLength: 200000
1291
+ },
1292
+ {
1293
+ id: "pensar:anthropic.claude-sonnet-4-5-20250929-v1:0",
1294
+ name: "Claude Sonnet 4.5 (Pensar)",
1295
+ provider: "pensar",
1296
+ contextLength: 200000
1297
+ },
1298
+ {
1299
+ id: "pensar:anthropic.claude-haiku-4-5-20251001-v1:0",
1300
+ name: "Claude Haiku 4.5 (Pensar)",
1301
+ provider: "pensar",
1302
+ contextLength: 200000
1303
+ },
1304
+ {
1305
+ id: "pensar:anthropic.claude-sonnet-4-20250514-v1:0",
1306
+ name: "Claude Sonnet 4 (Pensar)",
1307
+ provider: "pensar",
1308
+ contextLength: 200000
1309
+ },
1310
+ {
1311
+ id: "pensar:anthropic.claude-opus-4-20250514-v1:0",
1312
+ name: "Claude Opus 4 (Pensar)",
1313
+ provider: "pensar",
1314
+ contextLength: 200000
1315
+ },
1316
+ {
1317
+ id: "pensar:anthropic.claude-3-7-sonnet-20250219-v1:0",
1318
+ name: "Claude 3.7 Sonnet (Pensar)",
1319
+ provider: "pensar",
1320
+ contextLength: 200000
1321
+ },
1322
+ {
1323
+ id: "pensar:anthropic.claude-3-5-haiku-20241022-v1:0",
1324
+ name: "Claude 3.5 Haiku (Pensar)",
1325
+ provider: "pensar",
1326
+ contextLength: 200000
1327
+ }
1328
+ ];
1329
+
1330
+ // src/core/ai/models/inception.ts
1331
+ var INCEPTION_MODELS = [
1332
+ {
1333
+ id: "mercury-2",
1334
+ name: "Mercury 2",
1335
+ provider: "inception",
1336
+ contextLength: 128000
1337
+ }
1338
+ ];
1339
+
1340
+ // src/core/ai/models/index.ts
1341
+ var AVAILABLE_MODELS = [
1342
+ ...ANTHROPIC_MODELS,
1343
+ ...OPENAI_MODELS,
1344
+ ...GOOGLE_MODELS,
1345
+ ...BEDROCK_MODELS,
1346
+ ...OPENROUTER_MODELS,
1347
+ ...PENSAR_MODELS,
1348
+ ...INCEPTION_MODELS
1349
+ ];
1350
+ function getModelInfo(model) {
1351
+ return AVAILABLE_MODELS.find((m) => m.id === model) ?? {
1352
+ id: model,
1353
+ name: model,
1354
+ provider: "local"
1355
+ };
1356
+ }
1357
+
1358
+ export { AVAILABLE_MODELS, getModelInfo };