create-mastra 1.22.0-alpha.4 → 1.22.0-alpha.6

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,13 @@
1
1
  # create-mastra
2
2
 
3
+ ## 1.22.0-alpha.6
4
+
5
+ ### Patch Changes
6
+
7
+ - Add `--no-install` flag to create command. It allows you to skip dependency installation. ([#20619](https://github.com/mastra-ai/mastra/pull/20619))
8
+
9
+ ## 1.22.0-alpha.5
10
+
3
11
  ## 1.22.0-alpha.4
4
12
 
5
13
  ## 1.22.0-alpha.3
package/dist/index.js CHANGED
@@ -12109,7 +12109,7 @@ function parseCreateTimeout(value) {
12109
12109
  return timeout;
12110
12110
  }
12111
12111
  function configureCreateCommand(command) {
12112
- return command.description("Create a new Mastra project").argument("[project-name]", "Directory name of the project").option("--empty", "Create an empty project").option("-l, --llm <provider>", `Model provider (${CREATE_LLM_PROVIDERS.map((provider) => provider.value).join(", ")})`, parseCreateLLMProvider).option("-k, --llm-api-key <key>", "API key for the model provider").option("--no-skills", "Do not install Mastra skills").option("--no-git", "Do not initialize a git repository").option("-t, --template [template]", "Create from a template slug or public GitHub URL, or select interactively when omitted").option("--timeout <milliseconds>", "Package installation timeout in milliseconds", parseCreateTimeout, 6e4);
12112
+ return command.description("Create a new Mastra project").argument("[project-name]", "Directory name of the project").option("--empty", "Create an empty project").option("-l, --llm <provider>", `Model provider (${CREATE_LLM_PROVIDERS.map((provider) => provider.value).join(", ")})`, parseCreateLLMProvider).option("-k, --llm-api-key <key>", "API key for the model provider").option("--no-skills", "Do not install Mastra skills").option("--no-git", "Do not initialize a git repository").option("--no-install", "Skip installing dependencies").option("-t, --template [template]", "Create from a template slug or public GitHub URL, or select interactively when omitted").option("--timeout <milliseconds>", "Package installation timeout in milliseconds", parseCreateTimeout, 6e4);
12113
12113
  }
12114
12114
  function normalizeCreateCommandOptions(projectName, options) {
12115
12115
  return {
@@ -12120,7 +12120,8 @@ function normalizeCreateCommandOptions(projectName, options) {
12120
12120
  skills: options.skills,
12121
12121
  git: options.git,
12122
12122
  template: options.template,
12123
- timeout: options.timeout
12123
+ timeout: options.timeout,
12124
+ install: options.install
12124
12125
  };
12125
12126
  }
12126
12127
  function getCreateMode(options) {
@@ -21015,6 +21016,7 @@ object({
21015
21016
  }).describe("Metrics aggregation configuration");
21016
21017
  const metricsFilterSchema = object({
21017
21018
  ...commonFilterFields,
21019
+ traceIds: array(traceIdField).nonempty().max(1e3).optional().describe("Filter by one or more trace IDs"),
21018
21020
  name: array(string()).nonempty().optional().describe("Filter by metric name(s)"),
21019
21021
  /**
21020
21022
  * @deprecated Use `executionSource` instead.
@@ -22054,7 +22056,8 @@ function normalizeDirectCreateOptions(args) {
22054
22056
  skills: args.skills ?? true,
22055
22057
  git: args.git ?? true,
22056
22058
  template: args.template,
22057
- timeout: args.timeout ?? 6e4
22059
+ timeout: args.timeout ?? 6e4,
22060
+ install: args.install ?? true
22058
22061
  };
22059
22062
  }
22060
22063
  async function runCreateCommand(projectName, options, dependencies = {}) {
@@ -22180,7 +22183,7 @@ const create = async (args) => {
22180
22183
  materializationController.signal.throwIfAborted();
22181
22184
  }
22182
22185
  }
22183
- if (observabilityEnabled) await installDependencies(staging.projectPath, packageManager, options.timeout, materializationController.signal, true);
22186
+ if (options.install) if (observabilityEnabled) await installDependencies(staging.projectPath, packageManager, options.timeout, materializationController.signal, true);
22184
22187
  else await installDependencies(staging.projectPath, packageManager, options.timeout, materializationController.signal);
22185
22188
  materializationController.signal.throwIfAborted();
22186
22189
  await publishStagedProject({
@@ -22217,7 +22220,7 @@ const create = async (args) => {
22217
22220
  outcome: "skipped"
22218
22221
  });
22219
22222
  log.info("Skipping Mastra platform setup.");
22220
- } else if (observabilityEnabled) log.success("Default template cloned and dependencies installed.");
22223
+ } else if (observabilityEnabled) log.success(options.install ? "Default template cloned and dependencies installed." : "Default template cloned. Dependency installation was skipped.");
22221
22224
  const postSetup = await runPostCreateSetup({
22222
22225
  projectPath: targetPath,
22223
22226
  installSkills: options.skills,