@pensar/apex 0.0.33-canary.0 → 0.0.35-canary.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.
- package/build/benchmark.js +327 -20
- package/build/index.js +327 -20
- package/build/pentest.js +327 -20
- package/build/quicktest.js +327 -20
- package/build/swarm.js +327 -20
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -27355,18 +27355,84 @@ var OPENROUTER_MODELS = [
|
|
|
27355
27355
|
|
|
27356
27356
|
// src/core/ai/models/bedrock.ts
|
|
27357
27357
|
var BEDROCK_MODELS = [
|
|
27358
|
+
{
|
|
27359
|
+
id: "amazon.titan-tg1-large",
|
|
27360
|
+
name: "Amazon Titan TG1 Large",
|
|
27361
|
+
provider: "bedrock",
|
|
27362
|
+
contextLength: 8000
|
|
27363
|
+
},
|
|
27364
|
+
{
|
|
27365
|
+
id: "amazon.titan-text-express-v1",
|
|
27366
|
+
name: "Amazon Titan Text Express",
|
|
27367
|
+
provider: "bedrock",
|
|
27368
|
+
contextLength: 8000
|
|
27369
|
+
},
|
|
27370
|
+
{
|
|
27371
|
+
id: "amazon.titan-text-lite-v1",
|
|
27372
|
+
name: "Amazon Titan Text Lite",
|
|
27373
|
+
provider: "bedrock",
|
|
27374
|
+
contextLength: 4000
|
|
27375
|
+
},
|
|
27376
|
+
{
|
|
27377
|
+
id: "amazon.titan-text-premier-v1:0",
|
|
27378
|
+
name: "Amazon Titan Text Premier",
|
|
27379
|
+
provider: "bedrock",
|
|
27380
|
+
contextLength: 32000
|
|
27381
|
+
},
|
|
27382
|
+
{
|
|
27383
|
+
id: "anthropic.claude-v2",
|
|
27384
|
+
name: "Claude v2 (Bedrock)",
|
|
27385
|
+
provider: "bedrock",
|
|
27386
|
+
contextLength: 1e5
|
|
27387
|
+
},
|
|
27388
|
+
{
|
|
27389
|
+
id: "anthropic.claude-v2:1",
|
|
27390
|
+
name: "Claude v2.1 (Bedrock)",
|
|
27391
|
+
provider: "bedrock",
|
|
27392
|
+
contextLength: 1e5
|
|
27393
|
+
},
|
|
27394
|
+
{
|
|
27395
|
+
id: "anthropic.claude-instant-v1",
|
|
27396
|
+
name: "Claude Instant v1 (Bedrock)",
|
|
27397
|
+
provider: "bedrock",
|
|
27398
|
+
contextLength: 1e5
|
|
27399
|
+
},
|
|
27358
27400
|
{
|
|
27359
27401
|
id: "anthropic.claude-3-haiku-20240307-v1:0",
|
|
27360
27402
|
name: "Claude 3 Haiku (Bedrock)",
|
|
27361
27403
|
provider: "bedrock",
|
|
27362
27404
|
contextLength: 200000
|
|
27363
27405
|
},
|
|
27406
|
+
{
|
|
27407
|
+
id: "anthropic.claude-3-sonnet-20240229-v1:0",
|
|
27408
|
+
name: "Claude 3 Sonnet (Bedrock)",
|
|
27409
|
+
provider: "bedrock",
|
|
27410
|
+
contextLength: 200000
|
|
27411
|
+
},
|
|
27412
|
+
{
|
|
27413
|
+
id: "anthropic.claude-3-opus-20240229-v1:0",
|
|
27414
|
+
name: "Claude 3 Opus (Bedrock)",
|
|
27415
|
+
provider: "bedrock",
|
|
27416
|
+
contextLength: 200000
|
|
27417
|
+
},
|
|
27364
27418
|
{
|
|
27365
27419
|
id: "anthropic.claude-3-5-haiku-20241022-v1:0",
|
|
27366
27420
|
name: "Claude 3.5 Haiku (Bedrock)",
|
|
27367
27421
|
provider: "bedrock",
|
|
27368
27422
|
contextLength: 200000
|
|
27369
27423
|
},
|
|
27424
|
+
{
|
|
27425
|
+
id: "anthropic.claude-3-5-sonnet-20240620-v1:0",
|
|
27426
|
+
name: "Claude 3.5 Sonnet (Bedrock)",
|
|
27427
|
+
provider: "bedrock",
|
|
27428
|
+
contextLength: 200000
|
|
27429
|
+
},
|
|
27430
|
+
{
|
|
27431
|
+
id: "anthropic.claude-3-5-sonnet-20241022-v2:0",
|
|
27432
|
+
name: "Claude 3.5 Sonnet v2 (Bedrock)",
|
|
27433
|
+
provider: "bedrock",
|
|
27434
|
+
contextLength: 200000
|
|
27435
|
+
},
|
|
27370
27436
|
{
|
|
27371
27437
|
id: "anthropic.claude-3-7-sonnet-20250219-v1:0",
|
|
27372
27438
|
name: "Claude 3.7 Sonnet (Bedrock)",
|
|
@@ -27380,14 +27446,14 @@ var BEDROCK_MODELS = [
|
|
|
27380
27446
|
contextLength: 200000
|
|
27381
27447
|
},
|
|
27382
27448
|
{
|
|
27383
|
-
id: "anthropic.claude-
|
|
27384
|
-
name: "Claude
|
|
27449
|
+
id: "anthropic.claude-sonnet-4-20250514-v1:0",
|
|
27450
|
+
name: "Claude Sonnet 4 (Bedrock)",
|
|
27385
27451
|
provider: "bedrock",
|
|
27386
27452
|
contextLength: 200000
|
|
27387
27453
|
},
|
|
27388
27454
|
{
|
|
27389
|
-
id: "anthropic.claude-
|
|
27390
|
-
name: "Claude
|
|
27455
|
+
id: "anthropic.claude-sonnet-4-5-20250929-v1:0",
|
|
27456
|
+
name: "Claude Sonnet 4.5 (Bedrock)",
|
|
27391
27457
|
provider: "bedrock",
|
|
27392
27458
|
contextLength: 200000
|
|
27393
27459
|
},
|
|
@@ -27398,32 +27464,50 @@ var BEDROCK_MODELS = [
|
|
|
27398
27464
|
contextLength: 200000
|
|
27399
27465
|
},
|
|
27400
27466
|
{
|
|
27401
|
-
id: "anthropic.claude-
|
|
27402
|
-
name: "Claude
|
|
27467
|
+
id: "anthropic.claude-opus-4-1-20250805-v1:0",
|
|
27468
|
+
name: "Claude Opus 4.1 (Bedrock)",
|
|
27403
27469
|
provider: "bedrock",
|
|
27404
27470
|
contextLength: 200000
|
|
27405
27471
|
},
|
|
27406
27472
|
{
|
|
27407
|
-
id: "
|
|
27408
|
-
name: "
|
|
27473
|
+
id: "cohere.command-text-v14",
|
|
27474
|
+
name: "Cohere Command Text v14 (Bedrock)",
|
|
27409
27475
|
provider: "bedrock",
|
|
27410
|
-
contextLength:
|
|
27476
|
+
contextLength: 4000
|
|
27411
27477
|
},
|
|
27412
27478
|
{
|
|
27413
|
-
id: "
|
|
27414
|
-
name: "
|
|
27479
|
+
id: "cohere.command-light-text-v14",
|
|
27480
|
+
name: "Cohere Command Light Text v14 (Bedrock)",
|
|
27415
27481
|
provider: "bedrock",
|
|
27416
|
-
contextLength:
|
|
27482
|
+
contextLength: 4000
|
|
27417
27483
|
},
|
|
27418
27484
|
{
|
|
27419
|
-
id: "
|
|
27420
|
-
name: "
|
|
27485
|
+
id: "cohere.command-r-v1:0",
|
|
27486
|
+
name: "Cohere Command R (Bedrock)",
|
|
27487
|
+
provider: "bedrock",
|
|
27488
|
+
contextLength: 128000
|
|
27489
|
+
},
|
|
27490
|
+
{
|
|
27491
|
+
id: "cohere.command-r-plus-v1:0",
|
|
27492
|
+
name: "Cohere Command R Plus (Bedrock)",
|
|
27493
|
+
provider: "bedrock",
|
|
27494
|
+
contextLength: 128000
|
|
27495
|
+
},
|
|
27496
|
+
{
|
|
27497
|
+
id: "meta.llama3-8b-instruct-v1:0",
|
|
27498
|
+
name: "Llama 3 8B (Bedrock)",
|
|
27421
27499
|
provider: "bedrock",
|
|
27422
27500
|
contextLength: 8000
|
|
27423
27501
|
},
|
|
27424
27502
|
{
|
|
27425
|
-
id: "meta.llama3-
|
|
27426
|
-
name: "Llama 3
|
|
27503
|
+
id: "meta.llama3-70b-instruct-v1:0",
|
|
27504
|
+
name: "Llama 3 70B (Bedrock)",
|
|
27505
|
+
provider: "bedrock",
|
|
27506
|
+
contextLength: 8000
|
|
27507
|
+
},
|
|
27508
|
+
{
|
|
27509
|
+
id: "meta.llama3-1-8b-instruct-v1:0",
|
|
27510
|
+
name: "Llama 3.1 8B (Bedrock)",
|
|
27427
27511
|
provider: "bedrock",
|
|
27428
27512
|
contextLength: 128000
|
|
27429
27513
|
},
|
|
@@ -27434,16 +27518,238 @@ var BEDROCK_MODELS = [
|
|
|
27434
27518
|
contextLength: 128000
|
|
27435
27519
|
},
|
|
27436
27520
|
{
|
|
27437
|
-
id: "meta.llama3-1-
|
|
27438
|
-
name: "Llama 3.1
|
|
27521
|
+
id: "meta.llama3-1-405b-instruct-v1:0",
|
|
27522
|
+
name: "Llama 3.1 405B (Bedrock)",
|
|
27523
|
+
provider: "bedrock",
|
|
27524
|
+
contextLength: 128000
|
|
27525
|
+
},
|
|
27526
|
+
{
|
|
27527
|
+
id: "meta.llama3-2-1b-instruct-v1:0",
|
|
27528
|
+
name: "Llama 3.2 1B (Bedrock)",
|
|
27439
27529
|
provider: "bedrock",
|
|
27440
27530
|
contextLength: 128000
|
|
27441
27531
|
},
|
|
27442
27532
|
{
|
|
27443
|
-
id: "
|
|
27533
|
+
id: "meta.llama3-2-3b-instruct-v1:0",
|
|
27534
|
+
name: "Llama 3.2 3B (Bedrock)",
|
|
27535
|
+
provider: "bedrock",
|
|
27536
|
+
contextLength: 128000
|
|
27537
|
+
},
|
|
27538
|
+
{
|
|
27539
|
+
id: "meta.llama3-2-11b-instruct-v1:0",
|
|
27540
|
+
name: "Llama 3.2 11B (Bedrock)",
|
|
27541
|
+
provider: "bedrock",
|
|
27542
|
+
contextLength: 128000
|
|
27543
|
+
},
|
|
27544
|
+
{
|
|
27545
|
+
id: "meta.llama3-2-90b-instruct-v1:0",
|
|
27546
|
+
name: "Llama 3.2 90B (Bedrock)",
|
|
27547
|
+
provider: "bedrock",
|
|
27548
|
+
contextLength: 128000
|
|
27549
|
+
},
|
|
27550
|
+
{
|
|
27551
|
+
id: "mistral.mistral-7b-instruct-v0:2",
|
|
27552
|
+
name: "Mistral 7B Instruct (Bedrock)",
|
|
27553
|
+
provider: "bedrock",
|
|
27554
|
+
contextLength: 32000
|
|
27555
|
+
},
|
|
27556
|
+
{
|
|
27557
|
+
id: "mistral.mixtral-8x7b-instruct-v0:1",
|
|
27558
|
+
name: "Mistral Mixtral 8x7B (Bedrock)",
|
|
27559
|
+
provider: "bedrock",
|
|
27560
|
+
contextLength: 32000
|
|
27561
|
+
},
|
|
27562
|
+
{
|
|
27563
|
+
id: "mistral.mistral-small-2402-v1:0",
|
|
27564
|
+
name: "Mistral Small (Bedrock)",
|
|
27565
|
+
provider: "bedrock",
|
|
27566
|
+
contextLength: 32000
|
|
27567
|
+
},
|
|
27568
|
+
{
|
|
27569
|
+
id: "mistral.mistral-large-2402-v1:0",
|
|
27444
27570
|
name: "Mistral Large (Bedrock)",
|
|
27445
27571
|
provider: "bedrock",
|
|
27446
27572
|
contextLength: 128000
|
|
27573
|
+
},
|
|
27574
|
+
{
|
|
27575
|
+
id: "openai.gpt-oss-20b-1:0",
|
|
27576
|
+
name: "GPT OSS 20B (Bedrock)",
|
|
27577
|
+
provider: "bedrock",
|
|
27578
|
+
contextLength: 8000
|
|
27579
|
+
},
|
|
27580
|
+
{
|
|
27581
|
+
id: "openai.gpt-oss-120b-1:0",
|
|
27582
|
+
name: "GPT OSS 120B (Bedrock)",
|
|
27583
|
+
provider: "bedrock",
|
|
27584
|
+
contextLength: 8000
|
|
27585
|
+
},
|
|
27586
|
+
{
|
|
27587
|
+
id: "us.amazon.nova-micro-v1:0",
|
|
27588
|
+
name: "Amazon Nova Micro (US)",
|
|
27589
|
+
provider: "bedrock",
|
|
27590
|
+
contextLength: 128000
|
|
27591
|
+
},
|
|
27592
|
+
{
|
|
27593
|
+
id: "us.amazon.nova-lite-v1:0",
|
|
27594
|
+
name: "Amazon Nova Lite (US)",
|
|
27595
|
+
provider: "bedrock",
|
|
27596
|
+
contextLength: 300000
|
|
27597
|
+
},
|
|
27598
|
+
{
|
|
27599
|
+
id: "us.amazon.nova-pro-v1:0",
|
|
27600
|
+
name: "Amazon Nova Pro (US)",
|
|
27601
|
+
provider: "bedrock",
|
|
27602
|
+
contextLength: 300000
|
|
27603
|
+
},
|
|
27604
|
+
{
|
|
27605
|
+
id: "us.amazon.nova-premier-v1:0",
|
|
27606
|
+
name: "Amazon Nova Premier (US)",
|
|
27607
|
+
provider: "bedrock",
|
|
27608
|
+
contextLength: 300000
|
|
27609
|
+
},
|
|
27610
|
+
{
|
|
27611
|
+
id: "us.anthropic.claude-3-haiku-20240307-v1:0",
|
|
27612
|
+
name: "Claude 3 Haiku (US)",
|
|
27613
|
+
provider: "bedrock",
|
|
27614
|
+
contextLength: 200000
|
|
27615
|
+
},
|
|
27616
|
+
{
|
|
27617
|
+
id: "us.anthropic.claude-3-sonnet-20240229-v1:0",
|
|
27618
|
+
name: "Claude 3 Sonnet (US)",
|
|
27619
|
+
provider: "bedrock",
|
|
27620
|
+
contextLength: 200000
|
|
27621
|
+
},
|
|
27622
|
+
{
|
|
27623
|
+
id: "us.anthropic.claude-3-opus-20240229-v1:0",
|
|
27624
|
+
name: "Claude 3 Opus (US)",
|
|
27625
|
+
provider: "bedrock",
|
|
27626
|
+
contextLength: 200000
|
|
27627
|
+
},
|
|
27628
|
+
{
|
|
27629
|
+
id: "us.anthropic.claude-3-5-haiku-20241022-v1:0",
|
|
27630
|
+
name: "Claude 3.5 Haiku (US)",
|
|
27631
|
+
provider: "bedrock",
|
|
27632
|
+
contextLength: 200000
|
|
27633
|
+
},
|
|
27634
|
+
{
|
|
27635
|
+
id: "us.anthropic.claude-3-5-sonnet-20240620-v1:0",
|
|
27636
|
+
name: "Claude 3.5 Sonnet (US)",
|
|
27637
|
+
provider: "bedrock",
|
|
27638
|
+
contextLength: 200000
|
|
27639
|
+
},
|
|
27640
|
+
{
|
|
27641
|
+
id: "us.anthropic.claude-3-5-sonnet-20241022-v2:0",
|
|
27642
|
+
name: "Claude 3.5 Sonnet v2 (US)",
|
|
27643
|
+
provider: "bedrock",
|
|
27644
|
+
contextLength: 200000
|
|
27645
|
+
},
|
|
27646
|
+
{
|
|
27647
|
+
id: "us.anthropic.claude-3-7-sonnet-20250219-v1:0",
|
|
27648
|
+
name: "Claude 3.7 Sonnet (US)",
|
|
27649
|
+
provider: "bedrock",
|
|
27650
|
+
contextLength: 200000
|
|
27651
|
+
},
|
|
27652
|
+
{
|
|
27653
|
+
id: "us.anthropic.claude-sonnet-4-20250514-v1:0",
|
|
27654
|
+
name: "Claude Sonnet 4 (US)",
|
|
27655
|
+
provider: "bedrock",
|
|
27656
|
+
contextLength: 200000
|
|
27657
|
+
},
|
|
27658
|
+
{
|
|
27659
|
+
id: "us.anthropic.claude-sonnet-4-5-20250929-v1:0",
|
|
27660
|
+
name: "Claude Sonnet 4.5 (US)",
|
|
27661
|
+
provider: "bedrock",
|
|
27662
|
+
contextLength: 200000
|
|
27663
|
+
},
|
|
27664
|
+
{
|
|
27665
|
+
id: "us.anthropic.claude-opus-4-20250514-v1:0",
|
|
27666
|
+
name: "Claude Opus 4 (US)",
|
|
27667
|
+
provider: "bedrock",
|
|
27668
|
+
contextLength: 200000
|
|
27669
|
+
},
|
|
27670
|
+
{
|
|
27671
|
+
id: "us.anthropic.claude-opus-4-1-20250805-v1:0",
|
|
27672
|
+
name: "Claude Opus 4.1 (US)",
|
|
27673
|
+
provider: "bedrock",
|
|
27674
|
+
contextLength: 200000
|
|
27675
|
+
},
|
|
27676
|
+
{
|
|
27677
|
+
id: "us.meta.llama3-1-8b-instruct-v1:0",
|
|
27678
|
+
name: "Llama 3.1 8B (US)",
|
|
27679
|
+
provider: "bedrock",
|
|
27680
|
+
contextLength: 128000
|
|
27681
|
+
},
|
|
27682
|
+
{
|
|
27683
|
+
id: "us.meta.llama3-1-70b-instruct-v1:0",
|
|
27684
|
+
name: "Llama 3.1 70B (US)",
|
|
27685
|
+
provider: "bedrock",
|
|
27686
|
+
contextLength: 128000
|
|
27687
|
+
},
|
|
27688
|
+
{
|
|
27689
|
+
id: "us.meta.llama3-2-1b-instruct-v1:0",
|
|
27690
|
+
name: "Llama 3.2 1B (US)",
|
|
27691
|
+
provider: "bedrock",
|
|
27692
|
+
contextLength: 128000
|
|
27693
|
+
},
|
|
27694
|
+
{
|
|
27695
|
+
id: "us.meta.llama3-2-3b-instruct-v1:0",
|
|
27696
|
+
name: "Llama 3.2 3B (US)",
|
|
27697
|
+
provider: "bedrock",
|
|
27698
|
+
contextLength: 128000
|
|
27699
|
+
},
|
|
27700
|
+
{
|
|
27701
|
+
id: "us.meta.llama3-2-11b-instruct-v1:0",
|
|
27702
|
+
name: "Llama 3.2 11B (US)",
|
|
27703
|
+
provider: "bedrock",
|
|
27704
|
+
contextLength: 128000
|
|
27705
|
+
},
|
|
27706
|
+
{
|
|
27707
|
+
id: "us.meta.llama3-2-90b-instruct-v1:0",
|
|
27708
|
+
name: "Llama 3.2 90B (US)",
|
|
27709
|
+
provider: "bedrock",
|
|
27710
|
+
contextLength: 128000
|
|
27711
|
+
},
|
|
27712
|
+
{
|
|
27713
|
+
id: "us.meta.llama3-3-70b-instruct-v1:0",
|
|
27714
|
+
name: "Llama 3.3 70B (US)",
|
|
27715
|
+
provider: "bedrock",
|
|
27716
|
+
contextLength: 128000
|
|
27717
|
+
},
|
|
27718
|
+
{
|
|
27719
|
+
id: "us.meta.llama4-scout-17b-instruct-v1:0",
|
|
27720
|
+
name: "Llama 4 Scout 17B (US)",
|
|
27721
|
+
provider: "bedrock",
|
|
27722
|
+
contextLength: 128000
|
|
27723
|
+
},
|
|
27724
|
+
{
|
|
27725
|
+
id: "us.meta.llama4-maverick-17b-instruct-v1:0",
|
|
27726
|
+
name: "Llama 4 Maverick 17B (US)",
|
|
27727
|
+
provider: "bedrock",
|
|
27728
|
+
contextLength: 128000
|
|
27729
|
+
},
|
|
27730
|
+
{
|
|
27731
|
+
id: "us.mistral.pixtral-large-2502-v1:0",
|
|
27732
|
+
name: "Mistral Pixtral Large (US)",
|
|
27733
|
+
provider: "bedrock",
|
|
27734
|
+
contextLength: 128000
|
|
27735
|
+
},
|
|
27736
|
+
{
|
|
27737
|
+
id: "us.deepseek.r1-v1:0",
|
|
27738
|
+
name: "DeepSeek R1 (US)",
|
|
27739
|
+
provider: "bedrock",
|
|
27740
|
+
contextLength: 64000
|
|
27741
|
+
},
|
|
27742
|
+
{
|
|
27743
|
+
id: "global.anthropic.claude-haiku-4-5-20251001-v1:0",
|
|
27744
|
+
name: "Claude Haiku 4.5 (Global)",
|
|
27745
|
+
provider: "bedrock",
|
|
27746
|
+
contextLength: 200000
|
|
27747
|
+
},
|
|
27748
|
+
{
|
|
27749
|
+
id: "global.anthropic.claude-sonnet-4-5-20250929-v1:0",
|
|
27750
|
+
name: "Claude Sonnet 4.5 (Global)",
|
|
27751
|
+
provider: "bedrock",
|
|
27752
|
+
contextLength: 200000
|
|
27447
27753
|
}
|
|
27448
27754
|
];
|
|
27449
27755
|
|
|
@@ -64631,7 +64937,8 @@ function getProviderModel(model, authConfig) {
|
|
|
64631
64937
|
const bedrock2 = createAmazonBedrock({
|
|
64632
64938
|
region: bedrockRegion,
|
|
64633
64939
|
accessKeyId: bedrockAccessKeyId,
|
|
64634
|
-
secretAccessKey: bedrockSecretAccessKey
|
|
64940
|
+
secretAccessKey: bedrockSecretAccessKey,
|
|
64941
|
+
credentialProvider: authConfig?.bedrock?.credentialProvider
|
|
64635
64942
|
});
|
|
64636
64943
|
providerModel = bedrock2(model);
|
|
64637
64944
|
break;
|