@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
@@ -257,9 +257,9 @@ var provider_registry_default = {
257
257
  "amazon/nova-lite",
258
258
  "amazon/nova-micro",
259
259
  "amazon/nova-pro",
260
- "anthropic/claude-3-5-haiku",
261
260
  "anthropic/claude-3-haiku",
262
261
  "anthropic/claude-3-opus",
262
+ "anthropic/claude-3.5-haiku",
263
263
  "anthropic/claude-3.5-sonnet",
264
264
  "anthropic/claude-3.7-sonnet",
265
265
  "anthropic/claude-4-1-opus",
@@ -624,6 +624,7 @@ var provider_registry_default = {
624
624
  apiKeyHeader: "Authorization",
625
625
  name: "Hugging Face",
626
626
  models: [
627
+ "MiniMaxAI/MiniMax-M2",
627
628
  "Qwen/Qwen3-235B-A22B-Thinking-2507",
628
629
  "Qwen/Qwen3-Coder-480B-A35B-Instruct",
629
630
  "Qwen/Qwen3-Embedding-4B",
@@ -654,12 +655,12 @@ var provider_registry_default = {
654
655
  "claude-opus-4-1",
655
656
  "claude-sonnet-4",
656
657
  "claude-sonnet-4-5",
657
- "code-supernova",
658
658
  "glm-4.6",
659
659
  "gpt-5",
660
660
  "gpt-5-codex",
661
661
  "grok-code",
662
662
  "kimi-k2",
663
+ "minimax-m2",
663
664
  "qwen3-coder"
664
665
  ],
665
666
  docUrl: "https://opencode.ai/docs/zen",
@@ -771,6 +772,7 @@ var provider_registry_default = {
771
772
  "gpt-5-codex",
772
773
  "gpt-5-mini",
773
774
  "gpt-5-nano",
775
+ "gpt-5-pro",
774
776
  "o1",
775
777
  "o1-mini",
776
778
  "o1-preview",
@@ -829,6 +831,7 @@ var provider_registry_default = {
829
831
  "deepseek/deepseek-r1:free",
830
832
  "deepseek/deepseek-v3-base:free",
831
833
  "deepseek/deepseek-v3.1-terminus",
834
+ "deepseek/deepseek-v3.1-terminus:exacto",
832
835
  "featherless/qwerky-72b",
833
836
  "google/gemini-2.0-flash-001",
834
837
  "google/gemini-2.0-flash-exp:free",
@@ -848,6 +851,9 @@ var provider_registry_default = {
848
851
  "meta-llama/llama-3.3-70b-instruct:free",
849
852
  "meta-llama/llama-4-scout:free",
850
853
  "microsoft/mai-ds-r1:free",
854
+ "minimax/minimax-01",
855
+ "minimax/minimax-m1",
856
+ "minimax/minimax-m2:free",
851
857
  "mistralai/codestral-2508",
852
858
  "mistralai/devstral-medium-2507",
853
859
  "mistralai/devstral-small-2505",
@@ -863,6 +869,7 @@ var provider_registry_default = {
863
869
  "moonshotai/kimi-dev-72b:free",
864
870
  "moonshotai/kimi-k2",
865
871
  "moonshotai/kimi-k2-0905",
872
+ "moonshotai/kimi-k2-0905:exacto",
866
873
  "moonshotai/kimi-k2:free",
867
874
  "nousresearch/deephermes-3-llama-3-8b-preview",
868
875
  "nousresearch/hermes-4-405b",
@@ -876,7 +883,9 @@ var provider_registry_default = {
876
883
  "openai/gpt-5-image",
877
884
  "openai/gpt-5-mini",
878
885
  "openai/gpt-5-nano",
886
+ "openai/gpt-5-pro",
879
887
  "openai/gpt-oss-120b",
888
+ "openai/gpt-oss-120b:exacto",
880
889
  "openai/gpt-oss-20b",
881
890
  "openai/o4-mini",
882
891
  "openrouter/cypher-alpha:free",
@@ -899,6 +908,7 @@ var provider_registry_default = {
899
908
  "qwen/qwen3-32b:free",
900
909
  "qwen/qwen3-8b:free",
901
910
  "qwen/qwen3-coder",
911
+ "qwen/qwen3-coder:exacto",
902
912
  "qwen/qwen3-coder:free",
903
913
  "qwen/qwen3-max",
904
914
  "qwen/qwen3-next-80b-a3b-instruct",
@@ -914,23 +924,52 @@ var provider_registry_default = {
914
924
  "x-ai/grok-3-mini-beta",
915
925
  "x-ai/grok-4",
916
926
  "x-ai/grok-4-fast",
917
- "x-ai/grok-4-fast:free",
918
927
  "x-ai/grok-code-fast-1",
919
928
  "z-ai/glm-4.5",
920
929
  "z-ai/glm-4.5-air",
921
930
  "z-ai/glm-4.5-air:free",
922
931
  "z-ai/glm-4.5v",
923
- "z-ai/glm-4.6"
932
+ "z-ai/glm-4.6",
933
+ "z-ai/glm-4.6:exacto"
924
934
  ],
925
935
  docUrl: "https://openrouter.ai/models",
926
936
  gateway: "models.dev"
927
937
  },
938
+ zenmux: {
939
+ url: "https://zenmux.ai/api/v1",
940
+ apiKeyEnvVar: "ZENMUX_API_KEY",
941
+ apiKeyHeader: "Authorization",
942
+ name: "ZenMux",
943
+ models: [
944
+ "anthropic/claude-haiku-4.5",
945
+ "anthropic/claude-opus-4.1",
946
+ "anthropic/claude-sonnet-4.5",
947
+ "deepseek/deepseek-chat",
948
+ "google/gemini-2.5-pro",
949
+ "inclusionai/lint-1t",
950
+ "inclusionai/ring-1t",
951
+ "kuaishou/kat-coder-pro-v1",
952
+ "moonshotai/kimi-k2-0905",
953
+ "openai/gpt-5",
954
+ "openai/gpt-5-codex",
955
+ "qwen/qwen3-coder-plus",
956
+ "x-ai/grok-4",
957
+ "x-ai/grok-4-fast",
958
+ "x-ai/grok-4-fast-non-reasoning",
959
+ "x-ai/grok-code-fast-1",
960
+ "z-ai/glm-4.5-air",
961
+ "z-ai/glm-4.6"
962
+ ],
963
+ docUrl: "https://docs.zenmux.ai",
964
+ gateway: "models.dev"
965
+ },
928
966
  synthetic: {
929
967
  url: "https://api.synthetic.new/v1",
930
968
  apiKeyEnvVar: "SYNTHETIC_API_KEY",
931
969
  apiKeyHeader: "Authorization",
932
970
  name: "Synthetic",
933
971
  models: [
972
+ "hf:MiniMaxAI/MiniMax-M2",
934
973
  "hf:Qwen/Qwen2.5-Coder-32B-Instruct",
935
974
  "hf:Qwen/Qwen3-235B-A22B-Instruct-2507",
936
975
  "hf:Qwen/Qwen3-235B-A22B-Thinking-2507",
@@ -1154,6 +1193,7 @@ var provider_registry_default = {
1154
1193
  apiKeyHeader: "Authorization",
1155
1194
  name: "Scaleway",
1156
1195
  models: [
1196
+ "bge-multilingual-gemma2",
1157
1197
  "deepseek-r1-distill-llama-70b",
1158
1198
  "gemma-3-27b-it",
1159
1199
  "gpt-oss-120b",
@@ -1164,7 +1204,8 @@ var provider_registry_default = {
1164
1204
  "pixtral-12b-2409",
1165
1205
  "qwen3-235b-a22b-instruct-2507",
1166
1206
  "qwen3-coder-30b-a3b-instruct",
1167
- "voxtral-small-24b-2507"
1207
+ "voxtral-small-24b-2507",
1208
+ "whisper-large-v3"
1168
1209
  ],
1169
1210
  docUrl: "https://www.scaleway.com/en/docs/generative-apis/",
1170
1211
  gateway: "models.dev"
@@ -1366,9 +1407,9 @@ var provider_registry_default = {
1366
1407
  "amazon/nova-lite",
1367
1408
  "amazon/nova-micro",
1368
1409
  "amazon/nova-pro",
1369
- "anthropic/claude-3-5-haiku",
1370
1410
  "anthropic/claude-3-haiku",
1371
1411
  "anthropic/claude-3-opus",
1412
+ "anthropic/claude-3.5-haiku",
1372
1413
  "anthropic/claude-3.5-sonnet",
1373
1414
  "anthropic/claude-3.7-sonnet",
1374
1415
  "anthropic/claude-4-1-opus",
@@ -1653,6 +1694,7 @@ var provider_registry_default = {
1653
1694
  ],
1654
1695
  baseten: ["Qwen3/Qwen3-Coder-480B-A35B-Instruct", "moonshotai/Kimi-K2-Instruct-0905", "zai-org/GLM-4.6"],
1655
1696
  huggingface: [
1697
+ "MiniMaxAI/MiniMax-M2",
1656
1698
  "Qwen/Qwen3-235B-A22B-Thinking-2507",
1657
1699
  "Qwen/Qwen3-Coder-480B-A35B-Instruct",
1658
1700
  "Qwen/Qwen3-Embedding-4B",
@@ -1675,12 +1717,12 @@ var provider_registry_default = {
1675
1717
  "claude-opus-4-1",
1676
1718
  "claude-sonnet-4",
1677
1719
  "claude-sonnet-4-5",
1678
- "code-supernova",
1679
1720
  "glm-4.6",
1680
1721
  "gpt-5",
1681
1722
  "gpt-5-codex",
1682
1723
  "grok-code",
1683
1724
  "kimi-k2",
1725
+ "minimax-m2",
1684
1726
  "qwen3-coder"
1685
1727
  ],
1686
1728
  fastrouter: [
@@ -1756,6 +1798,7 @@ var provider_registry_default = {
1756
1798
  "gpt-5-codex",
1757
1799
  "gpt-5-mini",
1758
1800
  "gpt-5-nano",
1801
+ "gpt-5-pro",
1759
1802
  "o1",
1760
1803
  "o1-mini",
1761
1804
  "o1-preview",
@@ -1791,6 +1834,7 @@ var provider_registry_default = {
1791
1834
  "deepseek/deepseek-r1:free",
1792
1835
  "deepseek/deepseek-v3-base:free",
1793
1836
  "deepseek/deepseek-v3.1-terminus",
1837
+ "deepseek/deepseek-v3.1-terminus:exacto",
1794
1838
  "featherless/qwerky-72b",
1795
1839
  "google/gemini-2.0-flash-001",
1796
1840
  "google/gemini-2.0-flash-exp:free",
@@ -1810,6 +1854,9 @@ var provider_registry_default = {
1810
1854
  "meta-llama/llama-3.3-70b-instruct:free",
1811
1855
  "meta-llama/llama-4-scout:free",
1812
1856
  "microsoft/mai-ds-r1:free",
1857
+ "minimax/minimax-01",
1858
+ "minimax/minimax-m1",
1859
+ "minimax/minimax-m2:free",
1813
1860
  "mistralai/codestral-2508",
1814
1861
  "mistralai/devstral-medium-2507",
1815
1862
  "mistralai/devstral-small-2505",
@@ -1825,6 +1872,7 @@ var provider_registry_default = {
1825
1872
  "moonshotai/kimi-dev-72b:free",
1826
1873
  "moonshotai/kimi-k2",
1827
1874
  "moonshotai/kimi-k2-0905",
1875
+ "moonshotai/kimi-k2-0905:exacto",
1828
1876
  "moonshotai/kimi-k2:free",
1829
1877
  "nousresearch/deephermes-3-llama-3-8b-preview",
1830
1878
  "nousresearch/hermes-4-405b",
@@ -1838,7 +1886,9 @@ var provider_registry_default = {
1838
1886
  "openai/gpt-5-image",
1839
1887
  "openai/gpt-5-mini",
1840
1888
  "openai/gpt-5-nano",
1889
+ "openai/gpt-5-pro",
1841
1890
  "openai/gpt-oss-120b",
1891
+ "openai/gpt-oss-120b:exacto",
1842
1892
  "openai/gpt-oss-20b",
1843
1893
  "openai/o4-mini",
1844
1894
  "openrouter/cypher-alpha:free",
@@ -1861,6 +1911,7 @@ var provider_registry_default = {
1861
1911
  "qwen/qwen3-32b:free",
1862
1912
  "qwen/qwen3-8b:free",
1863
1913
  "qwen/qwen3-coder",
1914
+ "qwen/qwen3-coder:exacto",
1864
1915
  "qwen/qwen3-coder:free",
1865
1916
  "qwen/qwen3-max",
1866
1917
  "qwen/qwen3-next-80b-a3b-instruct",
@@ -1876,15 +1927,36 @@ var provider_registry_default = {
1876
1927
  "x-ai/grok-3-mini-beta",
1877
1928
  "x-ai/grok-4",
1878
1929
  "x-ai/grok-4-fast",
1879
- "x-ai/grok-4-fast:free",
1880
1930
  "x-ai/grok-code-fast-1",
1881
1931
  "z-ai/glm-4.5",
1882
1932
  "z-ai/glm-4.5-air",
1883
1933
  "z-ai/glm-4.5-air:free",
1884
1934
  "z-ai/glm-4.5v",
1935
+ "z-ai/glm-4.6",
1936
+ "z-ai/glm-4.6:exacto"
1937
+ ],
1938
+ zenmux: [
1939
+ "anthropic/claude-haiku-4.5",
1940
+ "anthropic/claude-opus-4.1",
1941
+ "anthropic/claude-sonnet-4.5",
1942
+ "deepseek/deepseek-chat",
1943
+ "google/gemini-2.5-pro",
1944
+ "inclusionai/lint-1t",
1945
+ "inclusionai/ring-1t",
1946
+ "kuaishou/kat-coder-pro-v1",
1947
+ "moonshotai/kimi-k2-0905",
1948
+ "openai/gpt-5",
1949
+ "openai/gpt-5-codex",
1950
+ "qwen/qwen3-coder-plus",
1951
+ "x-ai/grok-4",
1952
+ "x-ai/grok-4-fast",
1953
+ "x-ai/grok-4-fast-non-reasoning",
1954
+ "x-ai/grok-code-fast-1",
1955
+ "z-ai/glm-4.5-air",
1885
1956
  "z-ai/glm-4.6"
1886
1957
  ],
1887
1958
  synthetic: [
1959
+ "hf:MiniMaxAI/MiniMax-M2",
1888
1960
  "hf:Qwen/Qwen2.5-Coder-32B-Instruct",
1889
1961
  "hf:Qwen/Qwen3-235B-A22B-Instruct-2507",
1890
1962
  "hf:Qwen/Qwen3-235B-A22B-Thinking-2507",
@@ -2006,6 +2078,7 @@ var provider_registry_default = {
2006
2078
  "llama-4-scout-17b-16e-instruct-fp8"
2007
2079
  ],
2008
2080
  scaleway: [
2081
+ "bge-multilingual-gemma2",
2009
2082
  "deepseek-r1-distill-llama-70b",
2010
2083
  "gemma-3-27b-it",
2011
2084
  "gpt-oss-120b",
@@ -2016,7 +2089,8 @@ var provider_registry_default = {
2016
2089
  "pixtral-12b-2409",
2017
2090
  "qwen3-235b-a22b-instruct-2507",
2018
2091
  "qwen3-coder-30b-a3b-instruct",
2019
- "voxtral-small-24b-2507"
2092
+ "voxtral-small-24b-2507",
2093
+ "whisper-large-v3"
2020
2094
  ],
2021
2095
  cerebras: ["gpt-oss-120b", "qwen-3-235b-a22b-instruct-2507", "qwen-3-coder-480b"],
2022
2096
  netlify: [
@@ -2130,7 +2204,7 @@ function saveLastRefreshTimeToDisk(date) {
2130
2204
  }
2131
2205
  function getPackageRoot() {
2132
2206
  try {
2133
- const require2 = module$1.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunk-CL6Z33KH.cjs', document.baseURI).href)) || "file://");
2207
+ const require2 = module$1.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunk-7J3XX4AO.cjs', document.baseURI).href)) || "file://");
2134
2208
  const packageJsonPath = require2.resolve("@mastra/core/package.json");
2135
2209
  return path__default.default.dirname(packageJsonPath);
2136
2210
  } catch {
@@ -2654,5 +2728,5 @@ exports.PROVIDER_REGISTRY = PROVIDER_REGISTRY;
2654
2728
  exports.getProviderConfig = getProviderConfig;
2655
2729
  exports.parseModelString = parseModelString;
2656
2730
  exports.resolveModelConfig = resolveModelConfig;
2657
- //# sourceMappingURL=chunk-CL6Z33KH.cjs.map
2658
- //# sourceMappingURL=chunk-CL6Z33KH.cjs.map
2731
+ //# sourceMappingURL=chunk-7J3XX4AO.cjs.map
2732
+ //# sourceMappingURL=chunk-7J3XX4AO.cjs.map