create-mastra 0.15.2-alpha.0 → 0.16.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,47 @@
1
1
  # create-mastra
2
2
 
3
+ ## 0.16.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Use model-router in create-mastra starter template ([#8631](https://github.com/mastra-ai/mastra/pull/8631))
8
+
9
+ - 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))
10
+
11
+ - Create unified Sidebar component to use on Playground and Cloud ([#8655](https://github.com/mastra-ai/mastra/pull/8655))
12
+
13
+ - Adds reset button to model picker to reset to original model set on the agent. ([#8633](https://github.com/mastra-ai/mastra/pull/8633))
14
+
15
+ - Use only zod validation in dynamic form ([#8802](https://github.com/mastra-ai/mastra/pull/8802))
16
+
17
+ - Add div wrapper around entity tables to fix table vertical position ([#8758](https://github.com/mastra-ai/mastra/pull/8758))
18
+
19
+ - Customize AITraces type to seamlessly work on Cloud too ([#8759](https://github.com/mastra-ai/mastra/pull/8759))
20
+
21
+ - Refactor EntryList component and Scorer and Observability pages ([#8652](https://github.com/mastra-ai/mastra/pull/8652))
22
+
23
+ - Stream finalResult from network loop ([#8795](https://github.com/mastra-ai/mastra/pull/8795))
24
+
25
+ - Improve README ([#8819](https://github.com/mastra-ai/mastra/pull/8819))
26
+
27
+ ## 0.16.0-alpha.1
28
+
29
+ ### Patch Changes
30
+
31
+ - 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))
32
+
33
+ - Create unified Sidebar component to use on Playground and Cloud ([#8655](https://github.com/mastra-ai/mastra/pull/8655))
34
+
35
+ - Use only zod validation in dynamic form ([#8802](https://github.com/mastra-ai/mastra/pull/8802))
36
+
37
+ - Add div wrapper around entity tables to fix table vertical position ([#8758](https://github.com/mastra-ai/mastra/pull/8758))
38
+
39
+ - Customize AITraces type to seamlessly work on Cloud too ([#8759](https://github.com/mastra-ai/mastra/pull/8759))
40
+
41
+ - Stream finalResult from network loop ([#8795](https://github.com/mastra-ai/mastra/pull/8795))
42
+
43
+ - Improve README ([#8819](https://github.com/mastra-ai/mastra/pull/8819))
44
+
3
45
  ## 0.15.2-alpha.0
4
46
 
5
47
  ### Patch Changes
package/README.md CHANGED
@@ -1,9 +1,16 @@
1
- # Create Mastra
1
+ # create-mastra
2
2
 
3
- The easiest way to get started with Mastra is by using `create-mastra`. This CLI tool enables you to quickly start building a new Mastra application, with everything set up for you.
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
- ## Options
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
@@ -724,18 +724,13 @@ const format = (open, close) => {
724
724
  // Handle nested colors.
725
725
 
726
726
  // We could have done this, but it's too slow (as of Node.js 22).
727
- // return openCode + string.replaceAll(closeCode, (close === 22 ? closeCode : '') + openCode) + closeCode;
727
+ // return openCode + string.replaceAll(closeCode, openCode) + closeCode;
728
728
 
729
729
  let result = openCode;
730
730
  let lastIndex = 0;
731
731
 
732
- // SGR 22 resets both bold (1) and dim (2). When we encounter a nested
733
- // close for styles that use 22, we need to re-open the outer style.
734
- const reopenOnNestedClose = close === 22;
735
- const replaceCode = (reopenOnNestedClose ? closeCode : '') + openCode;
736
-
737
732
  while (index !== -1) {
738
- result += string.slice(lastIndex, index) + replaceCode;
733
+ result += string.slice(lastIndex, index) + openCode;
739
734
  lastIndex = index + closeCode.length;
740
735
  index = string.indexOf(closeCode, lastIndex);
741
736
  }
@@ -1201,10 +1196,13 @@ function getPackageManager() {
1201
1196
  }
1202
1197
  return "npm";
1203
1198
  }
1204
- var logger = new PinoLogger({
1205
- name: "Mastra CLI",
1206
- level: "info"
1207
- });
1199
+ var logger = createLogger(false);
1200
+ function createLogger(debug = false) {
1201
+ return new PinoLogger({
1202
+ name: "Mastra CLI",
1203
+ level: debug ? "debug" : "info"
1204
+ });
1205
+ }
1208
1206
  var exec = util.promisify(child_process.exec);
1209
1207
  async function cloneTemplate(options) {
1210
1208
  const { template, projectName, targetDir } = options;