create-mastra 0.15.2-alpha.0 → 0.16.0-alpha.1
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 +18 -0
- package/README.md +10 -32
- package/dist/index.js +7 -4
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# create-mastra
|
|
2
2
|
|
|
3
|
+
## 0.16.0-alpha.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Fix auto tab for model picker in playground-ui, the UI no longer auto tabs to the next selector when selecting a model/provider. ([#8680](https://github.com/mastra-ai/mastra/pull/8680))
|
|
8
|
+
|
|
9
|
+
- Create unified Sidebar component to use on Playground and Cloud ([#8655](https://github.com/mastra-ai/mastra/pull/8655))
|
|
10
|
+
|
|
11
|
+
- Use only zod validation in dynamic form ([#8802](https://github.com/mastra-ai/mastra/pull/8802))
|
|
12
|
+
|
|
13
|
+
- Add div wrapper around entity tables to fix table vertical position ([#8758](https://github.com/mastra-ai/mastra/pull/8758))
|
|
14
|
+
|
|
15
|
+
- Customize AITraces type to seamlessly work on Cloud too ([#8759](https://github.com/mastra-ai/mastra/pull/8759))
|
|
16
|
+
|
|
17
|
+
- Stream finalResult from network loop ([#8795](https://github.com/mastra-ai/mastra/pull/8795))
|
|
18
|
+
|
|
19
|
+
- Improve README ([#8819](https://github.com/mastra-ai/mastra/pull/8819))
|
|
20
|
+
|
|
3
21
|
## 0.15.2-alpha.0
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -1,9 +1,16 @@
|
|
|
1
|
-
#
|
|
1
|
+
# create-mastra
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Mastra is a framework for building AI-powered applications and agents with a modern TypeScript stack.
|
|
4
|
+
|
|
5
|
+
It includes everything you need to go from early prototypes to production-ready applications. Mastra integrates with frontend and backend frameworks like React, Next.js, and Node, or you can deploy it anywhere as a standalone server. It's the easiest way to build, tune, and scale reliable AI products.
|
|
6
|
+
|
|
7
|
+
`create-mastra` is the **recommended** way to get started with Mastra. This CLI tool enables you to quickly start building a new Mastra application, with everything set up for you.
|
|
4
8
|
|
|
5
9
|
## Usage
|
|
6
10
|
|
|
11
|
+
> [!IMPORTANT]
|
|
12
|
+
> Make sure that you have Node.js 20 or later installed on your system.
|
|
13
|
+
|
|
7
14
|
Using npm:
|
|
8
15
|
|
|
9
16
|
```bash
|
|
@@ -22,33 +29,4 @@ Using pnpm:
|
|
|
22
29
|
pnpm create mastra
|
|
23
30
|
```
|
|
24
31
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
- `--default` - Quick start with defaults (src directory, OpenAI, no examples)
|
|
28
|
-
- `-c, --components <components>` - Comma-separated list of components (agents, tools, workflows)
|
|
29
|
-
- `-l, --llm <model-provider>` - Default model provider (openai, anthropic, groq, google, or cerebras)
|
|
30
|
-
- `-e, --example` - Include example code
|
|
31
|
-
|
|
32
|
-
## Examples
|
|
33
|
-
|
|
34
|
-
Create a new project with default settings
|
|
35
|
-
npx create-mastra@latest --default
|
|
36
|
-
Create a project with specific components and LLM provider
|
|
37
|
-
npx create-mastra@latest -c agents,tools -l anthropic
|
|
38
|
-
Create a project with example code
|
|
39
|
-
npx create-mastra@latest --example
|
|
40
|
-
|
|
41
|
-
## What's included?
|
|
42
|
-
|
|
43
|
-
The generated project will have:
|
|
44
|
-
|
|
45
|
-
- A configured Mastra setup in the src directory
|
|
46
|
-
- Selected components (agents, tools, workflows)
|
|
47
|
-
- Environment configuration for your chosen LLM provider
|
|
48
|
-
- TypeScript configuration
|
|
49
|
-
- Example code (if selected)
|
|
50
|
-
|
|
51
|
-
## System Requirements
|
|
52
|
-
|
|
53
|
-
- Node.js 20 or later
|
|
54
|
-
- MacOS, Windows, and Linux are supported
|
|
32
|
+
Learn more about `create-mastra` in the [CLI reference documentation](https://mastra.ai/reference/cli/create-mastra).
|
package/dist/index.js
CHANGED
|
@@ -1201,10 +1201,13 @@ function getPackageManager() {
|
|
|
1201
1201
|
}
|
|
1202
1202
|
return "npm";
|
|
1203
1203
|
}
|
|
1204
|
-
var logger =
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1204
|
+
var logger = createLogger(false);
|
|
1205
|
+
function createLogger(debug = false) {
|
|
1206
|
+
return new PinoLogger({
|
|
1207
|
+
name: "Mastra CLI",
|
|
1208
|
+
level: debug ? "debug" : "info"
|
|
1209
|
+
});
|
|
1210
|
+
}
|
|
1208
1211
|
var exec = util.promisify(child_process.exec);
|
|
1209
1212
|
async function cloneTemplate(options) {
|
|
1210
1213
|
const { template, projectName, targetDir } = options;
|