@ai-sdk/anthropic 4.0.106 → 4.0.108
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/CHANGELOG.md +14 -0
- package/dist/index.d.ts +386 -9
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +636 -197
- package/dist/index.js.map +1 -1
- package/dist/internal/index.d.ts +386 -9
- package/dist/internal/index.d.ts.map +1 -1
- package/dist/internal/index.js +635 -196
- package/dist/internal/index.js.map +1 -1
- package/package.json +4 -4
- package/src/anthropic-model-catalog.ts +628 -228
- package/src/tool/bash_20241022.ts +6 -1
- package/src/tool/bash_20250124.ts +6 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @ai-sdk/anthropic
|
|
2
2
|
|
|
3
|
+
## 4.0.108
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- ad5f2ad: refactor(anthropic): declare language model capabilities per model ID in the model catalog
|
|
8
|
+
|
|
9
|
+
## 4.0.107
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 1d2c2ff: Bound bash tool output collection before returning it from supporting sandbox adapters, and copy retained prefixes so truncated results do not keep large source strings alive. Preserve output text, omission counts, command completion, exit codes, and timeout behavior. Custom sandbox implementations remain compatible; just-bash's interpreter buffering remains subject to its native execution limits.
|
|
14
|
+
- Updated dependencies [1d2c2ff]
|
|
15
|
+
- @ai-sdk/provider-utils@5.0.83
|
|
16
|
+
|
|
3
17
|
## 4.0.106
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -571,104 +571,481 @@ type AnthropicTextProviderMetadata = {
|
|
|
571
571
|
};
|
|
572
572
|
//#endregion
|
|
573
573
|
//#region src/anthropic-model-catalog.d.ts
|
|
574
|
+
/**
|
|
575
|
+
* Language model matrix: model IDs by capability. To add a model, add a row and
|
|
576
|
+
* fill in every column.
|
|
577
|
+
*/
|
|
574
578
|
declare const languageModelDefinitions: {
|
|
575
579
|
'claude-opus-5-5': {
|
|
580
|
+
documented: true;
|
|
581
|
+
maxOutputTokens: number;
|
|
582
|
+
knownModel: true;
|
|
583
|
+
nativeStructuredOutput: true;
|
|
584
|
+
thinking: {
|
|
585
|
+
modes: ["adaptive"];
|
|
586
|
+
canBeDisabled: false;
|
|
587
|
+
};
|
|
588
|
+
reasoningEfforts: string[];
|
|
589
|
+
sampling: {
|
|
590
|
+
readonly condition: "Only supported when thinking is disabled.";
|
|
591
|
+
};
|
|
592
|
+
forcedToolUse: false;
|
|
576
593
|
toolSearch: true;
|
|
577
594
|
compaction: true;
|
|
578
595
|
effort: true;
|
|
596
|
+
speed: false;
|
|
597
|
+
taskBudget: "unknown";
|
|
579
598
|
};
|
|
580
599
|
'claude-opus-5': {
|
|
600
|
+
documented: true;
|
|
601
|
+
maxOutputTokens: number;
|
|
602
|
+
knownModel: true;
|
|
603
|
+
nativeStructuredOutput: true;
|
|
604
|
+
thinking: {
|
|
605
|
+
modes: ["adaptive", "budget"];
|
|
606
|
+
canBeDisabled: "up-to-high-effort";
|
|
607
|
+
};
|
|
608
|
+
reasoningEfforts: string[];
|
|
609
|
+
sampling: {
|
|
610
|
+
readonly condition: "Only supported when thinking is disabled.";
|
|
611
|
+
};
|
|
612
|
+
forcedToolUse: true;
|
|
581
613
|
toolSearch: true;
|
|
582
614
|
compaction: true;
|
|
583
615
|
effort: true;
|
|
616
|
+
speed: false;
|
|
617
|
+
taskBudget: "unknown";
|
|
584
618
|
};
|
|
585
619
|
'claude-sonnet-5-5': {
|
|
620
|
+
documented: true;
|
|
621
|
+
maxOutputTokens: number;
|
|
622
|
+
knownModel: true;
|
|
623
|
+
nativeStructuredOutput: true;
|
|
624
|
+
thinking: {
|
|
625
|
+
modes: ["adaptive", "between-tools"];
|
|
626
|
+
canBeDisabled: false;
|
|
627
|
+
};
|
|
628
|
+
reasoningEfforts: string[];
|
|
629
|
+
sampling: {
|
|
630
|
+
readonly condition: "Only supported when thinking is disabled.";
|
|
631
|
+
};
|
|
632
|
+
forcedToolUse: false;
|
|
586
633
|
toolSearch: true;
|
|
587
634
|
compaction: true;
|
|
588
635
|
effort: true;
|
|
636
|
+
speed: false;
|
|
637
|
+
taskBudget: "unknown";
|
|
589
638
|
};
|
|
590
639
|
'claude-sonnet-5': {
|
|
640
|
+
documented: true;
|
|
641
|
+
maxOutputTokens: number;
|
|
642
|
+
knownModel: true;
|
|
643
|
+
nativeStructuredOutput: true;
|
|
644
|
+
thinking: {
|
|
645
|
+
modes: ["adaptive", "budget"];
|
|
646
|
+
canBeDisabled: "always";
|
|
647
|
+
};
|
|
648
|
+
reasoningEfforts: string[];
|
|
649
|
+
sampling: {
|
|
650
|
+
readonly condition: "Only supported when thinking is disabled.";
|
|
651
|
+
};
|
|
652
|
+
forcedToolUse: true;
|
|
591
653
|
toolSearch: true;
|
|
592
654
|
compaction: true;
|
|
593
655
|
effort: true;
|
|
656
|
+
speed: false;
|
|
657
|
+
taskBudget: "unknown";
|
|
594
658
|
};
|
|
595
659
|
'claude-haiku-5-5': {
|
|
660
|
+
documented: true;
|
|
661
|
+
maxOutputTokens: number;
|
|
662
|
+
knownModel: true;
|
|
663
|
+
nativeStructuredOutput: true;
|
|
664
|
+
thinking: {
|
|
665
|
+
modes: ["adaptive"];
|
|
666
|
+
canBeDisabled: "up-to-high-effort";
|
|
667
|
+
};
|
|
668
|
+
reasoningEfforts: string[];
|
|
669
|
+
sampling: {
|
|
670
|
+
readonly condition: "Only supported when thinking is disabled.";
|
|
671
|
+
};
|
|
672
|
+
forcedToolUse: true;
|
|
596
673
|
toolSearch: true;
|
|
597
674
|
compaction: true;
|
|
598
675
|
effort: true;
|
|
676
|
+
speed: false;
|
|
677
|
+
taskBudget: "unknown";
|
|
599
678
|
};
|
|
600
679
|
'claude-fable-5-2': {
|
|
680
|
+
documented: true;
|
|
681
|
+
maxOutputTokens: number;
|
|
682
|
+
knownModel: true;
|
|
683
|
+
nativeStructuredOutput: true;
|
|
684
|
+
thinking: {
|
|
685
|
+
modes: ["adaptive"];
|
|
686
|
+
canBeDisabled: false;
|
|
687
|
+
};
|
|
688
|
+
reasoningEfforts: string[];
|
|
689
|
+
sampling: {
|
|
690
|
+
readonly condition: "Only supported when thinking is disabled.";
|
|
691
|
+
};
|
|
692
|
+
forcedToolUse: false;
|
|
601
693
|
toolSearch: true;
|
|
602
694
|
compaction: true;
|
|
603
695
|
effort: true;
|
|
696
|
+
speed: false;
|
|
697
|
+
taskBudget: "unknown";
|
|
604
698
|
};
|
|
605
699
|
'claude-fable-5-1': {
|
|
700
|
+
documented: true;
|
|
701
|
+
maxOutputTokens: number;
|
|
702
|
+
knownModel: true;
|
|
703
|
+
nativeStructuredOutput: true;
|
|
704
|
+
thinking: {
|
|
705
|
+
modes: ["adaptive"];
|
|
706
|
+
canBeDisabled: false;
|
|
707
|
+
};
|
|
708
|
+
reasoningEfforts: string[];
|
|
709
|
+
sampling: {
|
|
710
|
+
readonly condition: "Only supported when thinking is disabled.";
|
|
711
|
+
};
|
|
712
|
+
forcedToolUse: false;
|
|
606
713
|
toolSearch: true;
|
|
607
714
|
compaction: true;
|
|
608
715
|
effort: true;
|
|
716
|
+
speed: false;
|
|
717
|
+
taskBudget: "unknown";
|
|
609
718
|
};
|
|
610
719
|
'claude-fable-5': {
|
|
720
|
+
documented: true;
|
|
721
|
+
maxOutputTokens: number;
|
|
722
|
+
knownModel: true;
|
|
723
|
+
nativeStructuredOutput: true;
|
|
724
|
+
thinking: {
|
|
725
|
+
modes: ["adaptive"];
|
|
726
|
+
canBeDisabled: false;
|
|
727
|
+
};
|
|
728
|
+
reasoningEfforts: string[];
|
|
729
|
+
sampling: {
|
|
730
|
+
readonly condition: "Only supported when thinking is disabled.";
|
|
731
|
+
};
|
|
732
|
+
forcedToolUse: true;
|
|
611
733
|
toolSearch: true;
|
|
612
734
|
compaction: true;
|
|
613
735
|
effort: true;
|
|
736
|
+
speed: false;
|
|
737
|
+
taskBudget: "unknown";
|
|
614
738
|
};
|
|
615
739
|
'claude-opus-4-8': {
|
|
740
|
+
documented: true;
|
|
741
|
+
maxOutputTokens: number;
|
|
742
|
+
knownModel: true;
|
|
743
|
+
nativeStructuredOutput: true;
|
|
744
|
+
thinking: {
|
|
745
|
+
modes: ["adaptive", "budget"];
|
|
746
|
+
canBeDisabled: "always";
|
|
747
|
+
};
|
|
748
|
+
reasoningEfforts: string[];
|
|
749
|
+
sampling: {
|
|
750
|
+
readonly condition: "Only supported when thinking is disabled.";
|
|
751
|
+
};
|
|
752
|
+
forcedToolUse: true;
|
|
616
753
|
toolSearch: true;
|
|
617
754
|
compaction: true;
|
|
618
755
|
effort: true;
|
|
756
|
+
speed: false;
|
|
757
|
+
taskBudget: "unknown";
|
|
619
758
|
};
|
|
620
759
|
'claude-opus-4-7': {
|
|
760
|
+
documented: true;
|
|
761
|
+
maxOutputTokens: number;
|
|
762
|
+
knownModel: true;
|
|
763
|
+
nativeStructuredOutput: true;
|
|
764
|
+
thinking: {
|
|
765
|
+
modes: ["adaptive", "budget"];
|
|
766
|
+
canBeDisabled: "always";
|
|
767
|
+
};
|
|
768
|
+
reasoningEfforts: string[];
|
|
769
|
+
sampling: {
|
|
770
|
+
readonly condition: "Only supported when thinking is disabled.";
|
|
771
|
+
};
|
|
772
|
+
forcedToolUse: true;
|
|
621
773
|
toolSearch: true;
|
|
622
774
|
compaction: true;
|
|
623
775
|
effort: true;
|
|
776
|
+
speed: false;
|
|
777
|
+
taskBudget: true;
|
|
624
778
|
};
|
|
625
779
|
'claude-opus-4-6': {
|
|
780
|
+
documented: true;
|
|
781
|
+
maxOutputTokens: number;
|
|
782
|
+
knownModel: true;
|
|
783
|
+
nativeStructuredOutput: true;
|
|
784
|
+
thinking: {
|
|
785
|
+
modes: ["adaptive", "budget"];
|
|
786
|
+
canBeDisabled: "always";
|
|
787
|
+
};
|
|
788
|
+
reasoningEfforts: undefined;
|
|
789
|
+
sampling: true;
|
|
790
|
+
forcedToolUse: true;
|
|
626
791
|
toolSearch: true;
|
|
627
792
|
compaction: true;
|
|
628
793
|
effort: true;
|
|
794
|
+
speed: true;
|
|
795
|
+
taskBudget: "unknown";
|
|
629
796
|
};
|
|
630
797
|
'claude-sonnet-4-6': {
|
|
798
|
+
documented: true;
|
|
799
|
+
maxOutputTokens: number;
|
|
800
|
+
knownModel: true;
|
|
801
|
+
nativeStructuredOutput: true;
|
|
802
|
+
thinking: {
|
|
803
|
+
modes: ["adaptive", "budget"];
|
|
804
|
+
canBeDisabled: "always";
|
|
805
|
+
};
|
|
806
|
+
reasoningEfforts: undefined;
|
|
807
|
+
sampling: true;
|
|
808
|
+
forcedToolUse: true;
|
|
631
809
|
toolSearch: true;
|
|
632
810
|
compaction: true;
|
|
633
811
|
effort: true;
|
|
812
|
+
speed: false;
|
|
813
|
+
taskBudget: "unknown";
|
|
634
814
|
};
|
|
635
815
|
'claude-opus-4-5': {
|
|
816
|
+
documented: true;
|
|
817
|
+
maxOutputTokens: number;
|
|
818
|
+
knownModel: true;
|
|
819
|
+
nativeStructuredOutput: true;
|
|
820
|
+
thinking: {
|
|
821
|
+
modes: ["budget"];
|
|
822
|
+
canBeDisabled: "always";
|
|
823
|
+
};
|
|
824
|
+
reasoningEfforts: undefined;
|
|
825
|
+
sampling: true;
|
|
826
|
+
forcedToolUse: true;
|
|
636
827
|
toolSearch: true;
|
|
637
828
|
compaction: false;
|
|
638
829
|
effort: true;
|
|
830
|
+
speed: false;
|
|
831
|
+
taskBudget: "unknown";
|
|
639
832
|
};
|
|
640
833
|
'claude-haiku-4-5': {
|
|
834
|
+
documented: true;
|
|
835
|
+
maxOutputTokens: number;
|
|
836
|
+
knownModel: true;
|
|
837
|
+
nativeStructuredOutput: true;
|
|
838
|
+
thinking: {
|
|
839
|
+
modes: ["budget"];
|
|
840
|
+
canBeDisabled: "always";
|
|
841
|
+
};
|
|
842
|
+
reasoningEfforts: undefined;
|
|
843
|
+
sampling: true;
|
|
844
|
+
forcedToolUse: true;
|
|
641
845
|
toolSearch: true;
|
|
642
846
|
compaction: false;
|
|
643
847
|
effort: false;
|
|
848
|
+
speed: false;
|
|
849
|
+
taskBudget: "unknown";
|
|
644
850
|
};
|
|
645
851
|
'claude-sonnet-4-5': {
|
|
852
|
+
documented: true;
|
|
853
|
+
maxOutputTokens: number;
|
|
854
|
+
knownModel: true;
|
|
855
|
+
nativeStructuredOutput: true;
|
|
856
|
+
thinking: {
|
|
857
|
+
modes: ["budget"];
|
|
858
|
+
canBeDisabled: "always";
|
|
859
|
+
};
|
|
860
|
+
reasoningEfforts: undefined;
|
|
861
|
+
sampling: true;
|
|
862
|
+
forcedToolUse: true;
|
|
646
863
|
toolSearch: true;
|
|
647
864
|
compaction: false;
|
|
648
865
|
effort: false;
|
|
866
|
+
speed: false;
|
|
867
|
+
taskBudget: "unknown";
|
|
649
868
|
};
|
|
650
869
|
'claude-opus-4-1': {
|
|
870
|
+
documented: true;
|
|
871
|
+
maxOutputTokens: number;
|
|
872
|
+
knownModel: true;
|
|
873
|
+
nativeStructuredOutput: true;
|
|
874
|
+
thinking: {
|
|
875
|
+
modes: ["budget"];
|
|
876
|
+
canBeDisabled: "always";
|
|
877
|
+
};
|
|
878
|
+
reasoningEfforts: undefined;
|
|
879
|
+
sampling: true;
|
|
880
|
+
forcedToolUse: true;
|
|
651
881
|
toolSearch: false;
|
|
652
882
|
compaction: false;
|
|
653
883
|
effort: false;
|
|
884
|
+
speed: false;
|
|
885
|
+
taskBudget: "unknown";
|
|
654
886
|
};
|
|
655
887
|
'claude-opus-4-0': {
|
|
888
|
+
documented: true;
|
|
889
|
+
maxOutputTokens: number;
|
|
890
|
+
knownModel: true;
|
|
891
|
+
nativeStructuredOutput: false;
|
|
892
|
+
thinking: {
|
|
893
|
+
modes: ["budget"];
|
|
894
|
+
canBeDisabled: "always";
|
|
895
|
+
};
|
|
896
|
+
reasoningEfforts: undefined;
|
|
897
|
+
sampling: true;
|
|
898
|
+
forcedToolUse: true;
|
|
656
899
|
toolSearch: false;
|
|
657
900
|
compaction: false;
|
|
658
901
|
effort: false;
|
|
902
|
+
speed: false;
|
|
903
|
+
taskBudget: "unknown";
|
|
659
904
|
};
|
|
660
905
|
'claude-sonnet-4-0': {
|
|
906
|
+
documented: true;
|
|
907
|
+
maxOutputTokens: number;
|
|
908
|
+
knownModel: true;
|
|
909
|
+
nativeStructuredOutput: false;
|
|
910
|
+
thinking: {
|
|
911
|
+
modes: ["budget"];
|
|
912
|
+
canBeDisabled: "always";
|
|
913
|
+
};
|
|
914
|
+
reasoningEfforts: undefined;
|
|
915
|
+
sampling: true;
|
|
916
|
+
forcedToolUse: true;
|
|
661
917
|
toolSearch: false;
|
|
662
918
|
compaction: false;
|
|
663
919
|
effort: false;
|
|
920
|
+
speed: false;
|
|
921
|
+
taskBudget: "unknown";
|
|
922
|
+
};
|
|
923
|
+
'claude-3-haiku-20240307': {
|
|
924
|
+
documented: false;
|
|
925
|
+
maxOutputTokens: number;
|
|
926
|
+
knownModel: true;
|
|
927
|
+
nativeStructuredOutput: false;
|
|
928
|
+
thinking: {
|
|
929
|
+
modes: ["budget"];
|
|
930
|
+
canBeDisabled: "always";
|
|
931
|
+
};
|
|
932
|
+
reasoningEfforts: undefined;
|
|
933
|
+
sampling: true;
|
|
934
|
+
forcedToolUse: true;
|
|
935
|
+
toolSearch: "unknown";
|
|
936
|
+
compaction: "unknown";
|
|
937
|
+
effort: "unknown";
|
|
938
|
+
speed: "unknown";
|
|
939
|
+
taskBudget: "unknown";
|
|
940
|
+
};
|
|
941
|
+
'claude-haiku-4-5-20251001': {
|
|
942
|
+
documented: false;
|
|
943
|
+
maxOutputTokens: number;
|
|
944
|
+
knownModel: true;
|
|
945
|
+
nativeStructuredOutput: true;
|
|
946
|
+
thinking: {
|
|
947
|
+
modes: ["budget"];
|
|
948
|
+
canBeDisabled: "always";
|
|
949
|
+
};
|
|
950
|
+
reasoningEfforts: undefined;
|
|
951
|
+
sampling: true;
|
|
952
|
+
forcedToolUse: true;
|
|
953
|
+
toolSearch: "unknown";
|
|
954
|
+
compaction: "unknown";
|
|
955
|
+
effort: "unknown";
|
|
956
|
+
speed: "unknown";
|
|
957
|
+
taskBudget: "unknown";
|
|
958
|
+
};
|
|
959
|
+
'claude-opus-4-1-20250805': {
|
|
960
|
+
documented: false;
|
|
961
|
+
maxOutputTokens: number;
|
|
962
|
+
knownModel: true;
|
|
963
|
+
nativeStructuredOutput: true;
|
|
964
|
+
thinking: {
|
|
965
|
+
modes: ["budget"];
|
|
966
|
+
canBeDisabled: "always";
|
|
967
|
+
};
|
|
968
|
+
reasoningEfforts: undefined;
|
|
969
|
+
sampling: true;
|
|
970
|
+
forcedToolUse: true;
|
|
971
|
+
toolSearch: "unknown";
|
|
972
|
+
compaction: "unknown";
|
|
973
|
+
effort: "unknown";
|
|
974
|
+
speed: "unknown";
|
|
975
|
+
taskBudget: "unknown";
|
|
976
|
+
};
|
|
977
|
+
'claude-opus-4-20250514': {
|
|
978
|
+
documented: false;
|
|
979
|
+
maxOutputTokens: number;
|
|
980
|
+
knownModel: true;
|
|
981
|
+
nativeStructuredOutput: false;
|
|
982
|
+
thinking: {
|
|
983
|
+
modes: ["budget"];
|
|
984
|
+
canBeDisabled: "always";
|
|
985
|
+
};
|
|
986
|
+
reasoningEfforts: undefined;
|
|
987
|
+
sampling: true;
|
|
988
|
+
forcedToolUse: true;
|
|
989
|
+
toolSearch: "unknown";
|
|
990
|
+
compaction: "unknown";
|
|
991
|
+
effort: "unknown";
|
|
992
|
+
speed: "unknown";
|
|
993
|
+
taskBudget: "unknown";
|
|
994
|
+
};
|
|
995
|
+
'claude-opus-4-5-20251101': {
|
|
996
|
+
documented: false;
|
|
997
|
+
maxOutputTokens: number;
|
|
998
|
+
knownModel: true;
|
|
999
|
+
nativeStructuredOutput: true;
|
|
1000
|
+
thinking: {
|
|
1001
|
+
modes: ["budget"];
|
|
1002
|
+
canBeDisabled: "always";
|
|
1003
|
+
};
|
|
1004
|
+
reasoningEfforts: undefined;
|
|
1005
|
+
sampling: true;
|
|
1006
|
+
forcedToolUse: true;
|
|
1007
|
+
toolSearch: "unknown";
|
|
1008
|
+
compaction: "unknown";
|
|
1009
|
+
effort: "unknown";
|
|
1010
|
+
speed: "unknown";
|
|
1011
|
+
taskBudget: "unknown";
|
|
1012
|
+
};
|
|
1013
|
+
'claude-sonnet-4-20250514': {
|
|
1014
|
+
documented: false;
|
|
1015
|
+
maxOutputTokens: number;
|
|
1016
|
+
knownModel: true;
|
|
1017
|
+
nativeStructuredOutput: false;
|
|
1018
|
+
thinking: {
|
|
1019
|
+
modes: ["budget"];
|
|
1020
|
+
canBeDisabled: "always";
|
|
1021
|
+
};
|
|
1022
|
+
reasoningEfforts: undefined;
|
|
1023
|
+
sampling: true;
|
|
1024
|
+
forcedToolUse: true;
|
|
1025
|
+
toolSearch: "unknown";
|
|
1026
|
+
compaction: "unknown";
|
|
1027
|
+
effort: "unknown";
|
|
1028
|
+
speed: "unknown";
|
|
1029
|
+
taskBudget: "unknown";
|
|
1030
|
+
};
|
|
1031
|
+
'claude-sonnet-4-5-20250929': {
|
|
1032
|
+
documented: false;
|
|
1033
|
+
maxOutputTokens: number;
|
|
1034
|
+
knownModel: true;
|
|
1035
|
+
nativeStructuredOutput: true;
|
|
1036
|
+
thinking: {
|
|
1037
|
+
modes: ["budget"];
|
|
1038
|
+
canBeDisabled: "always";
|
|
1039
|
+
};
|
|
1040
|
+
reasoningEfforts: undefined;
|
|
1041
|
+
sampling: true;
|
|
1042
|
+
forcedToolUse: true;
|
|
1043
|
+
toolSearch: "unknown";
|
|
1044
|
+
compaction: "unknown";
|
|
1045
|
+
effort: "unknown";
|
|
1046
|
+
speed: "unknown";
|
|
1047
|
+
taskBudget: "unknown";
|
|
664
1048
|
};
|
|
665
|
-
'claude-3-haiku-20240307': undefined;
|
|
666
|
-
'claude-haiku-4-5-20251001': undefined;
|
|
667
|
-
'claude-opus-4-1-20250805': undefined;
|
|
668
|
-
'claude-opus-4-20250514': undefined;
|
|
669
|
-
'claude-opus-4-5-20251101': undefined;
|
|
670
|
-
'claude-sonnet-4-20250514': undefined;
|
|
671
|
-
'claude-sonnet-4-5-20250929': undefined;
|
|
672
1049
|
};
|
|
673
1050
|
/** Known model IDs, derived from the declarations used to build the catalog. */
|
|
674
1051
|
type AnthropicModelIds = {
|
|
@@ -865,7 +1242,7 @@ type Bash20241022Options<OUTPUT> = {
|
|
|
865
1242
|
onInputDelta?: Tool<Bash20241022Input, OUTPUT, {}>['onInputDelta'];
|
|
866
1243
|
onInputAvailable?: Tool<Bash20241022Input, OUTPUT, {}>['onInputAvailable'];
|
|
867
1244
|
};
|
|
868
|
-
type Bash20241022DefaultOutput = Awaited<ReturnType<Experimental_SandboxSession['run']
|
|
1245
|
+
type Bash20241022DefaultOutput = Pick<Awaited<ReturnType<Experimental_SandboxSession['run']>>, 'exitCode' | 'stdout' | 'stderr'>;
|
|
869
1246
|
declare function bash_20241022(options?: Omit<Bash20241022Options<Bash20241022DefaultOutput>, 'execute'> & {
|
|
870
1247
|
execute?: undefined;
|
|
871
1248
|
}): ProviderDefinedTool<Bash20241022Input, Bash20241022DefaultOutput, {}>;
|
|
@@ -895,7 +1272,7 @@ type Bash20250124Options<OUTPUT> = {
|
|
|
895
1272
|
onInputDelta?: Tool<Bash20250124Input, OUTPUT, {}>['onInputDelta'];
|
|
896
1273
|
onInputAvailable?: Tool<Bash20250124Input, OUTPUT, {}>['onInputAvailable'];
|
|
897
1274
|
};
|
|
898
|
-
type Bash20250124DefaultOutput = Awaited<ReturnType<Experimental_SandboxSession['run']
|
|
1275
|
+
type Bash20250124DefaultOutput = Pick<Awaited<ReturnType<Experimental_SandboxSession['run']>>, 'exitCode' | 'stdout' | 'stderr'>;
|
|
899
1276
|
declare function bash_20250124(options?: Omit<Bash20250124Options<Bash20250124DefaultOutput>, 'execute'> & {
|
|
900
1277
|
execute?: undefined;
|
|
901
1278
|
}): ProviderDefinedTool<Bash20250124Input, Bash20250124DefaultOutput, {}>;
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":["SandboxSession","SandboxSession","_$__tool_computer_toolset_202608010.ComputerToolset_20260801Member","DecisionModelV4","ExtractionModelV4","BatchV4"],"sources":["../src/anthropic-api.ts","../src/anthropic-message-metadata.ts","../src/anthropic-provider-metadata.ts","../src/anthropic-model-catalog.ts","../src/anthropic-language-model-options.ts","../src/anthropic-prepare-tools.ts","../src/tool/computer-toolset_20260801.ts","../src/tool/bash_20241022.ts","../src/tool/bash_20250124.ts","../src/anthropic-tools.ts","../src/anthropic-provider.ts","../src/forward-anthropic-container-id-from-last-step.ts","../src/version.ts"],"mappings":";;;;cAgtBM,sCAA8B,EAAA;;;;;;;;;;GAgBhC,EAAA,KAAA;KAEQ,2BAA2B,EAAE,MACvC,kBAAkB;cA2FP,0DAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAqwBxB,WAAW,aACpB,mBAAmB;EAClB;;;;;;;;;;;;;;;;;;;KCnjDQ;EACV;;;;;;EAOA;;;;EAKA;;;;EAKA;;;;EAKA;;;;EAKA;;UAGe;EACf,OAAO;EACP;;EAGA;;;;;;;EAQA,uBAAuB;IACrB;IACA;IACA;;;;;;;;;;;;;EAcF,mBAAmB;;;;;;;;;;EAWnB;;;;;IAKE;;;;;IAMA;;;;;IAMA;;;;;;IAOA;;;;;;;;;EAUF,YAAY;;;;;;;EAQZ;;;;IAIE;;;;IAKA;;;;IAKA,QAAQ;;;;MAIN;;;;MAKA;;;;MAKA;;;;;;;;EASJ;;;;;IAKE,cAAc;;;;;;;;;MASR;;;;;MAMA;;;;;MAMA;;;;;;;;;;MAUA;;;;;MAMA;;;;;MAMA;;;;;;;;;;MAUA;;;;;;;;;KC9NE,oBAAoB;;;;;KAMpB;EACV;IACE,WAAW
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":["SandboxSession","SandboxSession","_$__tool_computer_toolset_202608010.ComputerToolset_20260801Member","DecisionModelV4","ExtractionModelV4","BatchV4"],"sources":["../src/anthropic-api.ts","../src/anthropic-message-metadata.ts","../src/anthropic-provider-metadata.ts","../src/anthropic-model-catalog.ts","../src/anthropic-language-model-options.ts","../src/anthropic-prepare-tools.ts","../src/tool/computer-toolset_20260801.ts","../src/tool/bash_20241022.ts","../src/tool/bash_20250124.ts","../src/anthropic-tools.ts","../src/anthropic-provider.ts","../src/forward-anthropic-container-id-from-last-step.ts","../src/version.ts"],"mappings":";;;;cAgtBM,sCAA8B,EAAA;;;;;;;;;;GAgBhC,EAAA,KAAA;KAEQ,2BAA2B,EAAE,MACvC,kBAAkB;cA2FP,0DAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAqwBxB,WAAW,aACpB,mBAAmB;EAClB;;;;;;;;;;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