create-mastra 0.11.3-alpha.3 → 0.11.3-alpha.4
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 +6 -0
- package/README.md +2 -8
- package/dist/index.js +11 -2
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# create-mastra
|
|
2
2
|
|
|
3
|
+
## 0.11.3-alpha.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#7357](https://github.com/mastra-ai/mastra/pull/7357) [`01264f1`](https://github.com/mastra-ai/mastra/commit/01264f1280db040d1bd1ac9b8d29cfcaac3d6cbc) Thanks [@TheIsrael1](https://github.com/TheIsrael1)! - Mastra dev- load env vars before watch
|
|
8
|
+
|
|
3
9
|
## 0.11.3-alpha.3
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -4,22 +4,16 @@ The easiest way to get started with Mastra is by using `create-mastra`. This CLI
|
|
|
4
4
|
|
|
5
5
|
## Usage
|
|
6
6
|
|
|
7
|
-
Using npx:
|
|
8
|
-
|
|
9
|
-
```bash
|
|
10
|
-
npx create-mastra@latest
|
|
11
|
-
```
|
|
12
|
-
|
|
13
7
|
Using npm:
|
|
14
8
|
|
|
15
9
|
```bash
|
|
16
|
-
|
|
10
|
+
npx create-mastra@latest
|
|
17
11
|
```
|
|
18
12
|
|
|
19
13
|
Using yarn:
|
|
20
14
|
|
|
21
15
|
```bash
|
|
22
|
-
yarn create
|
|
16
|
+
yarn dlx create-mastra@latest
|
|
23
17
|
```
|
|
24
18
|
|
|
25
19
|
Using pnpm:
|
package/dist/index.js
CHANGED
|
@@ -1685,6 +1685,8 @@ var getAISDKPackage = (llmProvider) => {
|
|
|
1685
1685
|
return "@ai-sdk/google";
|
|
1686
1686
|
case "cerebras":
|
|
1687
1687
|
return "@ai-sdk/cerebras";
|
|
1688
|
+
case "mistral":
|
|
1689
|
+
return "@ai-sdk/mistral";
|
|
1688
1690
|
default:
|
|
1689
1691
|
return "@ai-sdk/openai";
|
|
1690
1692
|
}
|
|
@@ -1707,6 +1709,9 @@ var getProviderImportAndModelItem = (llmProvider) => {
|
|
|
1707
1709
|
} else if (llmProvider === "cerebras") {
|
|
1708
1710
|
providerImport = `import { cerebras } from '${getAISDKPackage(llmProvider)}';`;
|
|
1709
1711
|
modelItem = `cerebras('llama-3.3-70b')`;
|
|
1712
|
+
} else if (llmProvider === "mistral") {
|
|
1713
|
+
providerImport = `import { mistral } from '${getAISDKPackage(llmProvider)}';`;
|
|
1714
|
+
modelItem = `mistral('mistral-medium-2508')`;
|
|
1710
1715
|
}
|
|
1711
1716
|
return { providerImport, modelItem };
|
|
1712
1717
|
};
|
|
@@ -2032,6 +2037,9 @@ var getAPIKey = async (provider) => {
|
|
|
2032
2037
|
case "cerebras":
|
|
2033
2038
|
key = "CEREBRAS_API_KEY";
|
|
2034
2039
|
return key;
|
|
2040
|
+
case "mistral":
|
|
2041
|
+
key = "MISTRAL_API_KEY";
|
|
2042
|
+
return key;
|
|
2035
2043
|
default:
|
|
2036
2044
|
return key;
|
|
2037
2045
|
}
|
|
@@ -2080,7 +2088,8 @@ var interactivePrompt = async () => {
|
|
|
2080
2088
|
{ value: "anthropic", label: "Anthropic" },
|
|
2081
2089
|
{ value: "groq", label: "Groq" },
|
|
2082
2090
|
{ value: "google", label: "Google" },
|
|
2083
|
-
{ value: "cerebras", label: "Cerebras" }
|
|
2091
|
+
{ value: "cerebras", label: "Cerebras" },
|
|
2092
|
+
{ value: "mistral", label: "Mistral" }
|
|
2084
2093
|
]
|
|
2085
2094
|
}),
|
|
2086
2095
|
llmApiKey: async ({ results: { llmProvider } }) => {
|
|
@@ -2295,7 +2304,7 @@ var execWithTimeout = async (command, timeoutMs) => {
|
|
|
2295
2304
|
async function installMastraDependency(pm, dependency, versionTag, isDev, timeout) {
|
|
2296
2305
|
let installCommand = getPackageManagerAddCommand(pm);
|
|
2297
2306
|
if (isDev) {
|
|
2298
|
-
installCommand = `${installCommand}
|
|
2307
|
+
installCommand = `${installCommand} -D`;
|
|
2299
2308
|
}
|
|
2300
2309
|
try {
|
|
2301
2310
|
await execWithTimeout(`${pm} ${installCommand} ${dependency}${versionTag}`, timeout);
|