@mastra/core 0.23.2 → 0.24.0-alpha.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.
Files changed (77) hide show
  1. package/CHANGELOG.md +87 -0
  2. package/dist/agent/agent.d.ts +6 -0
  3. package/dist/agent/agent.d.ts.map +1 -1
  4. package/dist/agent/index.cjs +10 -10
  5. package/dist/agent/index.js +1 -1
  6. package/dist/agent/input-processor/index.cjs +6 -6
  7. package/dist/agent/input-processor/index.js +1 -1
  8. package/dist/{chunk-F7DVKNKD.cjs → chunk-253FBVD4.cjs} +25 -21
  9. package/dist/chunk-253FBVD4.cjs.map +1 -0
  10. package/dist/{chunk-Q7Y7FU4Y.js → chunk-2B3VLGTH.js} +3 -3
  11. package/dist/{chunk-Q7Y7FU4Y.js.map → chunk-2B3VLGTH.js.map} +1 -1
  12. package/dist/{chunk-ELFP5KHN.js → chunk-3VXXCPKX.js} +3 -3
  13. package/dist/{chunk-ELFP5KHN.js.map → chunk-3VXXCPKX.js.map} +1 -1
  14. package/dist/{chunk-JZGCSEW5.js → chunk-6C7VGVK4.js} +3 -3
  15. package/dist/{chunk-JZGCSEW5.js.map → chunk-6C7VGVK4.js.map} +1 -1
  16. package/dist/{chunk-OLFLBDUQ.cjs → chunk-77JHIM4E.cjs} +12 -12
  17. package/dist/{chunk-OLFLBDUQ.cjs.map → chunk-77JHIM4E.cjs.map} +1 -1
  18. package/dist/{chunk-CL6Z33KH.cjs → chunk-7J3XX4AO.cjs} +86 -12
  19. package/dist/chunk-7J3XX4AO.cjs.map +1 -0
  20. package/dist/{chunk-EV64MRWJ.cjs → chunk-ABZOBBLL.cjs} +4 -4
  21. package/dist/{chunk-EV64MRWJ.cjs.map → chunk-ABZOBBLL.cjs.map} +1 -1
  22. package/dist/{chunk-4RWU3F4F.js → chunk-BWGXM3D4.js} +3 -3
  23. package/dist/{chunk-4RWU3F4F.js.map → chunk-BWGXM3D4.js.map} +1 -1
  24. package/dist/{chunk-5YHNPD6A.cjs → chunk-C7OVZMPW.cjs} +4 -4
  25. package/dist/{chunk-5YHNPD6A.cjs.map → chunk-C7OVZMPW.cjs.map} +1 -1
  26. package/dist/{chunk-ICGCDCJE.js → chunk-FHVFGVIO.js} +85 -11
  27. package/dist/chunk-FHVFGVIO.js.map +1 -0
  28. package/dist/{chunk-WCTRQHTG.cjs → chunk-HEQTUMUA.cjs} +4 -4
  29. package/dist/{chunk-WCTRQHTG.cjs.map → chunk-HEQTUMUA.cjs.map} +1 -1
  30. package/dist/{chunk-ML3WETVK.js → chunk-LG5B3KIW.js} +24 -20
  31. package/dist/chunk-LG5B3KIW.js.map +1 -0
  32. package/dist/{chunk-PHMC6B3L.cjs → chunk-ROS5CMJS.cjs} +11 -11
  33. package/dist/{chunk-PHMC6B3L.cjs.map → chunk-ROS5CMJS.cjs.map} +1 -1
  34. package/dist/{chunk-OSAYWQD3.js → chunk-Z4RIRDU3.js} +4 -4
  35. package/dist/{chunk-OSAYWQD3.js.map → chunk-Z4RIRDU3.js.map} +1 -1
  36. package/dist/index.cjs +32 -32
  37. package/dist/index.js +7 -7
  38. package/dist/llm/index.cjs +7 -7
  39. package/dist/llm/index.js +1 -1
  40. package/dist/llm/model/provider-types.generated.d.ts +36 -3
  41. package/dist/loop/index.cjs +2 -2
  42. package/dist/loop/index.js +1 -1
  43. package/dist/loop/network/index.d.ts.map +1 -1
  44. package/dist/mastra/index.cjs +2 -2
  45. package/dist/mastra/index.js +1 -1
  46. package/dist/memory/index.cjs +4 -4
  47. package/dist/memory/index.js +1 -1
  48. package/dist/processors/index.cjs +11 -11
  49. package/dist/processors/index.js +1 -1
  50. package/dist/processors/runner.d.ts.map +1 -1
  51. package/dist/provider-registry.json +83 -9
  52. package/dist/relevance/index.cjs +4 -4
  53. package/dist/relevance/index.js +1 -1
  54. package/dist/scores/index.cjs +4 -4
  55. package/dist/scores/index.js +1 -1
  56. package/dist/scores/scoreTraces/index.cjs +3 -3
  57. package/dist/scores/scoreTraces/index.js +1 -1
  58. package/dist/stream/RunOutput.d.ts.map +1 -1
  59. package/dist/stream/index.cjs +8 -8
  60. package/dist/stream/index.js +1 -1
  61. package/dist/workflows/default.d.ts +9 -4
  62. package/dist/workflows/default.d.ts.map +1 -1
  63. package/dist/workflows/evented/index.cjs +10 -10
  64. package/dist/workflows/evented/index.js +1 -1
  65. package/dist/workflows/index.cjs +14 -14
  66. package/dist/workflows/index.js +1 -1
  67. package/dist/workflows/legacy/index.cjs +22 -22
  68. package/dist/workflows/legacy/index.js +1 -1
  69. package/dist/workflows/types.d.ts +16 -4
  70. package/dist/workflows/types.d.ts.map +1 -1
  71. package/dist/workflows/workflow.d.ts.map +1 -1
  72. package/package.json +5 -5
  73. package/src/llm/model/provider-types.generated.d.ts +36 -3
  74. package/dist/chunk-CL6Z33KH.cjs.map +0 -1
  75. package/dist/chunk-F7DVKNKD.cjs.map +0 -1
  76. package/dist/chunk-ICGCDCJE.js.map +0 -1
  77. package/dist/chunk-ML3WETVK.js.map +0 -1
@@ -248,9 +248,9 @@ var provider_registry_default = {
248
248
  "amazon/nova-lite",
249
249
  "amazon/nova-micro",
250
250
  "amazon/nova-pro",
251
- "anthropic/claude-3-5-haiku",
252
251
  "anthropic/claude-3-haiku",
253
252
  "anthropic/claude-3-opus",
253
+ "anthropic/claude-3.5-haiku",
254
254
  "anthropic/claude-3.5-sonnet",
255
255
  "anthropic/claude-3.7-sonnet",
256
256
  "anthropic/claude-4-1-opus",
@@ -615,6 +615,7 @@ var provider_registry_default = {
615
615
  apiKeyHeader: "Authorization",
616
616
  name: "Hugging Face",
617
617
  models: [
618
+ "MiniMaxAI/MiniMax-M2",
618
619
  "Qwen/Qwen3-235B-A22B-Thinking-2507",
619
620
  "Qwen/Qwen3-Coder-480B-A35B-Instruct",
620
621
  "Qwen/Qwen3-Embedding-4B",
@@ -645,12 +646,12 @@ var provider_registry_default = {
645
646
  "claude-opus-4-1",
646
647
  "claude-sonnet-4",
647
648
  "claude-sonnet-4-5",
648
- "code-supernova",
649
649
  "glm-4.6",
650
650
  "gpt-5",
651
651
  "gpt-5-codex",
652
652
  "grok-code",
653
653
  "kimi-k2",
654
+ "minimax-m2",
654
655
  "qwen3-coder"
655
656
  ],
656
657
  docUrl: "https://opencode.ai/docs/zen",
@@ -762,6 +763,7 @@ var provider_registry_default = {
762
763
  "gpt-5-codex",
763
764
  "gpt-5-mini",
764
765
  "gpt-5-nano",
766
+ "gpt-5-pro",
765
767
  "o1",
766
768
  "o1-mini",
767
769
  "o1-preview",
@@ -820,6 +822,7 @@ var provider_registry_default = {
820
822
  "deepseek/deepseek-r1:free",
821
823
  "deepseek/deepseek-v3-base:free",
822
824
  "deepseek/deepseek-v3.1-terminus",
825
+ "deepseek/deepseek-v3.1-terminus:exacto",
823
826
  "featherless/qwerky-72b",
824
827
  "google/gemini-2.0-flash-001",
825
828
  "google/gemini-2.0-flash-exp:free",
@@ -839,6 +842,9 @@ var provider_registry_default = {
839
842
  "meta-llama/llama-3.3-70b-instruct:free",
840
843
  "meta-llama/llama-4-scout:free",
841
844
  "microsoft/mai-ds-r1:free",
845
+ "minimax/minimax-01",
846
+ "minimax/minimax-m1",
847
+ "minimax/minimax-m2:free",
842
848
  "mistralai/codestral-2508",
843
849
  "mistralai/devstral-medium-2507",
844
850
  "mistralai/devstral-small-2505",
@@ -854,6 +860,7 @@ var provider_registry_default = {
854
860
  "moonshotai/kimi-dev-72b:free",
855
861
  "moonshotai/kimi-k2",
856
862
  "moonshotai/kimi-k2-0905",
863
+ "moonshotai/kimi-k2-0905:exacto",
857
864
  "moonshotai/kimi-k2:free",
858
865
  "nousresearch/deephermes-3-llama-3-8b-preview",
859
866
  "nousresearch/hermes-4-405b",
@@ -867,7 +874,9 @@ var provider_registry_default = {
867
874
  "openai/gpt-5-image",
868
875
  "openai/gpt-5-mini",
869
876
  "openai/gpt-5-nano",
877
+ "openai/gpt-5-pro",
870
878
  "openai/gpt-oss-120b",
879
+ "openai/gpt-oss-120b:exacto",
871
880
  "openai/gpt-oss-20b",
872
881
  "openai/o4-mini",
873
882
  "openrouter/cypher-alpha:free",
@@ -890,6 +899,7 @@ var provider_registry_default = {
890
899
  "qwen/qwen3-32b:free",
891
900
  "qwen/qwen3-8b:free",
892
901
  "qwen/qwen3-coder",
902
+ "qwen/qwen3-coder:exacto",
893
903
  "qwen/qwen3-coder:free",
894
904
  "qwen/qwen3-max",
895
905
  "qwen/qwen3-next-80b-a3b-instruct",
@@ -905,23 +915,52 @@ var provider_registry_default = {
905
915
  "x-ai/grok-3-mini-beta",
906
916
  "x-ai/grok-4",
907
917
  "x-ai/grok-4-fast",
908
- "x-ai/grok-4-fast:free",
909
918
  "x-ai/grok-code-fast-1",
910
919
  "z-ai/glm-4.5",
911
920
  "z-ai/glm-4.5-air",
912
921
  "z-ai/glm-4.5-air:free",
913
922
  "z-ai/glm-4.5v",
914
- "z-ai/glm-4.6"
923
+ "z-ai/glm-4.6",
924
+ "z-ai/glm-4.6:exacto"
915
925
  ],
916
926
  docUrl: "https://openrouter.ai/models",
917
927
  gateway: "models.dev"
918
928
  },
929
+ zenmux: {
930
+ url: "https://zenmux.ai/api/v1",
931
+ apiKeyEnvVar: "ZENMUX_API_KEY",
932
+ apiKeyHeader: "Authorization",
933
+ name: "ZenMux",
934
+ models: [
935
+ "anthropic/claude-haiku-4.5",
936
+ "anthropic/claude-opus-4.1",
937
+ "anthropic/claude-sonnet-4.5",
938
+ "deepseek/deepseek-chat",
939
+ "google/gemini-2.5-pro",
940
+ "inclusionai/lint-1t",
941
+ "inclusionai/ring-1t",
942
+ "kuaishou/kat-coder-pro-v1",
943
+ "moonshotai/kimi-k2-0905",
944
+ "openai/gpt-5",
945
+ "openai/gpt-5-codex",
946
+ "qwen/qwen3-coder-plus",
947
+ "x-ai/grok-4",
948
+ "x-ai/grok-4-fast",
949
+ "x-ai/grok-4-fast-non-reasoning",
950
+ "x-ai/grok-code-fast-1",
951
+ "z-ai/glm-4.5-air",
952
+ "z-ai/glm-4.6"
953
+ ],
954
+ docUrl: "https://docs.zenmux.ai",
955
+ gateway: "models.dev"
956
+ },
919
957
  synthetic: {
920
958
  url: "https://api.synthetic.new/v1",
921
959
  apiKeyEnvVar: "SYNTHETIC_API_KEY",
922
960
  apiKeyHeader: "Authorization",
923
961
  name: "Synthetic",
924
962
  models: [
963
+ "hf:MiniMaxAI/MiniMax-M2",
925
964
  "hf:Qwen/Qwen2.5-Coder-32B-Instruct",
926
965
  "hf:Qwen/Qwen3-235B-A22B-Instruct-2507",
927
966
  "hf:Qwen/Qwen3-235B-A22B-Thinking-2507",
@@ -1145,6 +1184,7 @@ var provider_registry_default = {
1145
1184
  apiKeyHeader: "Authorization",
1146
1185
  name: "Scaleway",
1147
1186
  models: [
1187
+ "bge-multilingual-gemma2",
1148
1188
  "deepseek-r1-distill-llama-70b",
1149
1189
  "gemma-3-27b-it",
1150
1190
  "gpt-oss-120b",
@@ -1155,7 +1195,8 @@ var provider_registry_default = {
1155
1195
  "pixtral-12b-2409",
1156
1196
  "qwen3-235b-a22b-instruct-2507",
1157
1197
  "qwen3-coder-30b-a3b-instruct",
1158
- "voxtral-small-24b-2507"
1198
+ "voxtral-small-24b-2507",
1199
+ "whisper-large-v3"
1159
1200
  ],
1160
1201
  docUrl: "https://www.scaleway.com/en/docs/generative-apis/",
1161
1202
  gateway: "models.dev"
@@ -1357,9 +1398,9 @@ var provider_registry_default = {
1357
1398
  "amazon/nova-lite",
1358
1399
  "amazon/nova-micro",
1359
1400
  "amazon/nova-pro",
1360
- "anthropic/claude-3-5-haiku",
1361
1401
  "anthropic/claude-3-haiku",
1362
1402
  "anthropic/claude-3-opus",
1403
+ "anthropic/claude-3.5-haiku",
1363
1404
  "anthropic/claude-3.5-sonnet",
1364
1405
  "anthropic/claude-3.7-sonnet",
1365
1406
  "anthropic/claude-4-1-opus",
@@ -1644,6 +1685,7 @@ var provider_registry_default = {
1644
1685
  ],
1645
1686
  baseten: ["Qwen3/Qwen3-Coder-480B-A35B-Instruct", "moonshotai/Kimi-K2-Instruct-0905", "zai-org/GLM-4.6"],
1646
1687
  huggingface: [
1688
+ "MiniMaxAI/MiniMax-M2",
1647
1689
  "Qwen/Qwen3-235B-A22B-Thinking-2507",
1648
1690
  "Qwen/Qwen3-Coder-480B-A35B-Instruct",
1649
1691
  "Qwen/Qwen3-Embedding-4B",
@@ -1666,12 +1708,12 @@ var provider_registry_default = {
1666
1708
  "claude-opus-4-1",
1667
1709
  "claude-sonnet-4",
1668
1710
  "claude-sonnet-4-5",
1669
- "code-supernova",
1670
1711
  "glm-4.6",
1671
1712
  "gpt-5",
1672
1713
  "gpt-5-codex",
1673
1714
  "grok-code",
1674
1715
  "kimi-k2",
1716
+ "minimax-m2",
1675
1717
  "qwen3-coder"
1676
1718
  ],
1677
1719
  fastrouter: [
@@ -1747,6 +1789,7 @@ var provider_registry_default = {
1747
1789
  "gpt-5-codex",
1748
1790
  "gpt-5-mini",
1749
1791
  "gpt-5-nano",
1792
+ "gpt-5-pro",
1750
1793
  "o1",
1751
1794
  "o1-mini",
1752
1795
  "o1-preview",
@@ -1782,6 +1825,7 @@ var provider_registry_default = {
1782
1825
  "deepseek/deepseek-r1:free",
1783
1826
  "deepseek/deepseek-v3-base:free",
1784
1827
  "deepseek/deepseek-v3.1-terminus",
1828
+ "deepseek/deepseek-v3.1-terminus:exacto",
1785
1829
  "featherless/qwerky-72b",
1786
1830
  "google/gemini-2.0-flash-001",
1787
1831
  "google/gemini-2.0-flash-exp:free",
@@ -1801,6 +1845,9 @@ var provider_registry_default = {
1801
1845
  "meta-llama/llama-3.3-70b-instruct:free",
1802
1846
  "meta-llama/llama-4-scout:free",
1803
1847
  "microsoft/mai-ds-r1:free",
1848
+ "minimax/minimax-01",
1849
+ "minimax/minimax-m1",
1850
+ "minimax/minimax-m2:free",
1804
1851
  "mistralai/codestral-2508",
1805
1852
  "mistralai/devstral-medium-2507",
1806
1853
  "mistralai/devstral-small-2505",
@@ -1816,6 +1863,7 @@ var provider_registry_default = {
1816
1863
  "moonshotai/kimi-dev-72b:free",
1817
1864
  "moonshotai/kimi-k2",
1818
1865
  "moonshotai/kimi-k2-0905",
1866
+ "moonshotai/kimi-k2-0905:exacto",
1819
1867
  "moonshotai/kimi-k2:free",
1820
1868
  "nousresearch/deephermes-3-llama-3-8b-preview",
1821
1869
  "nousresearch/hermes-4-405b",
@@ -1829,7 +1877,9 @@ var provider_registry_default = {
1829
1877
  "openai/gpt-5-image",
1830
1878
  "openai/gpt-5-mini",
1831
1879
  "openai/gpt-5-nano",
1880
+ "openai/gpt-5-pro",
1832
1881
  "openai/gpt-oss-120b",
1882
+ "openai/gpt-oss-120b:exacto",
1833
1883
  "openai/gpt-oss-20b",
1834
1884
  "openai/o4-mini",
1835
1885
  "openrouter/cypher-alpha:free",
@@ -1852,6 +1902,7 @@ var provider_registry_default = {
1852
1902
  "qwen/qwen3-32b:free",
1853
1903
  "qwen/qwen3-8b:free",
1854
1904
  "qwen/qwen3-coder",
1905
+ "qwen/qwen3-coder:exacto",
1855
1906
  "qwen/qwen3-coder:free",
1856
1907
  "qwen/qwen3-max",
1857
1908
  "qwen/qwen3-next-80b-a3b-instruct",
@@ -1867,15 +1918,36 @@ var provider_registry_default = {
1867
1918
  "x-ai/grok-3-mini-beta",
1868
1919
  "x-ai/grok-4",
1869
1920
  "x-ai/grok-4-fast",
1870
- "x-ai/grok-4-fast:free",
1871
1921
  "x-ai/grok-code-fast-1",
1872
1922
  "z-ai/glm-4.5",
1873
1923
  "z-ai/glm-4.5-air",
1874
1924
  "z-ai/glm-4.5-air:free",
1875
1925
  "z-ai/glm-4.5v",
1926
+ "z-ai/glm-4.6",
1927
+ "z-ai/glm-4.6:exacto"
1928
+ ],
1929
+ zenmux: [
1930
+ "anthropic/claude-haiku-4.5",
1931
+ "anthropic/claude-opus-4.1",
1932
+ "anthropic/claude-sonnet-4.5",
1933
+ "deepseek/deepseek-chat",
1934
+ "google/gemini-2.5-pro",
1935
+ "inclusionai/lint-1t",
1936
+ "inclusionai/ring-1t",
1937
+ "kuaishou/kat-coder-pro-v1",
1938
+ "moonshotai/kimi-k2-0905",
1939
+ "openai/gpt-5",
1940
+ "openai/gpt-5-codex",
1941
+ "qwen/qwen3-coder-plus",
1942
+ "x-ai/grok-4",
1943
+ "x-ai/grok-4-fast",
1944
+ "x-ai/grok-4-fast-non-reasoning",
1945
+ "x-ai/grok-code-fast-1",
1946
+ "z-ai/glm-4.5-air",
1876
1947
  "z-ai/glm-4.6"
1877
1948
  ],
1878
1949
  synthetic: [
1950
+ "hf:MiniMaxAI/MiniMax-M2",
1879
1951
  "hf:Qwen/Qwen2.5-Coder-32B-Instruct",
1880
1952
  "hf:Qwen/Qwen3-235B-A22B-Instruct-2507",
1881
1953
  "hf:Qwen/Qwen3-235B-A22B-Thinking-2507",
@@ -1997,6 +2069,7 @@ var provider_registry_default = {
1997
2069
  "llama-4-scout-17b-16e-instruct-fp8"
1998
2070
  ],
1999
2071
  scaleway: [
2072
+ "bge-multilingual-gemma2",
2000
2073
  "deepseek-r1-distill-llama-70b",
2001
2074
  "gemma-3-27b-it",
2002
2075
  "gpt-oss-120b",
@@ -2007,7 +2080,8 @@ var provider_registry_default = {
2007
2080
  "pixtral-12b-2409",
2008
2081
  "qwen3-235b-a22b-instruct-2507",
2009
2082
  "qwen3-coder-30b-a3b-instruct",
2010
- "voxtral-small-24b-2507"
2083
+ "voxtral-small-24b-2507",
2084
+ "whisper-large-v3"
2011
2085
  ],
2012
2086
  cerebras: ["gpt-oss-120b", "qwen-3-235b-a22b-instruct-2507", "qwen-3-coder-480b"],
2013
2087
  netlify: [
@@ -2640,5 +2714,5 @@ var ModelRouterEmbeddingModel = class {
2640
2714
  };
2641
2715
 
2642
2716
  export { ModelRouterEmbeddingModel, ModelRouterLanguageModel, PROVIDER_REGISTRY, getProviderConfig, parseModelString, resolveModelConfig };
2643
- //# sourceMappingURL=chunk-ICGCDCJE.js.map
2644
- //# sourceMappingURL=chunk-ICGCDCJE.js.map
2717
+ //# sourceMappingURL=chunk-FHVFGVIO.js.map
2718
+ //# sourceMappingURL=chunk-FHVFGVIO.js.map