create-mastra 0.10.2-alpha.4 → 0.10.2

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/dist/index.js CHANGED
@@ -2164,7 +2164,7 @@ var createMastraProject = async ({
2164
2164
  createVersionTag,
2165
2165
  timeout
2166
2166
  }) => {
2167
- pe(color2.inverse("Mastra Create"));
2167
+ pe(color2.inverse(" Mastra Create "));
2168
2168
  const projectName = name ?? await ae({
2169
2169
  message: "What do you want to name your project?",
2170
2170
  placeholder: "my-mastra-app",
@@ -2322,7 +2322,7 @@ program.version(`${version}`, "-v, --version").description(`create-mastra ${vers
2322
2322
  program.name("create-mastra").description("Create a new Mastra project").argument("[project-name]", "Directory name of the project").option(
2323
2323
  "-p, --project-name <string>",
2324
2324
  "Project name that will be used in package.json and as the project directory name."
2325
- ).option("--default", "Quick start with defaults(src, OpenAI, no examples)").option("-c, --components <components>", "Comma-separated list of components (agents, tools, workflows)").option("-l, --llm <model-provider>", "Default model provider (openai, anthropic, groq, google, or cerebras)").option("-k, --llm-api-key <api-key>", "API key for the model provider").option("-e, --example", "Include example code").option("-n, --no-example", "Do not include example code").option("-t, --timeout [timeout]", "Configurable timeout for package installation, defaults to 60000 ms").option("-d, --dir <directory>", "Target directory for Mastra source code (default: src/)").option("-m, --mcp <mcp>", "MCP Server for code editor (cursor, cursor-global, windsurf, vscode)").action(async (projectNameArg, args) => {
2325
+ ).option("--default", "Quick start with defaults(src, OpenAI, examples)").option("-c, --components <components>", "Comma-separated list of components (agents, tools, workflows)").option("-l, --llm <model-provider>", "Default model provider (openai, anthropic, groq, google, or cerebras)").option("-k, --llm-api-key <api-key>", "API key for the model provider").option("-e, --example", "Include example code").option("-n, --no-example", "Do not include example code").option("-t, --timeout [timeout]", "Configurable timeout for package installation, defaults to 60000 ms").option("-d, --dir <directory>", "Target directory for Mastra source code (default: src/)").option("-m, --mcp <mcp>", "MCP Server for code editor (cursor, cursor-global, windsurf, vscode)").action(async (projectNameArg, args) => {
2326
2326
  const projectName = projectNameArg || args.projectName;
2327
2327
  const timeout = args?.timeout ? args?.timeout === true ? 6e4 : parseInt(args?.timeout, 10) : void 0;
2328
2328
  if (args.default) {
@@ -2332,7 +2332,8 @@ program.name("create-mastra").description("Create a new Mastra project").argumen
2332
2332
  addExample: true,
2333
2333
  createVersionTag,
2334
2334
  timeout,
2335
- mcpServer: args.mcp
2335
+ mcpServer: args.mcp,
2336
+ directory: "src/"
2336
2337
  });
2337
2338
  return;
2338
2339
  }