create-mastra 0.10.14 → 0.10.15

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
@@ -1674,6 +1674,14 @@ var FileService = class {
1674
1674
  }
1675
1675
  };
1676
1676
  var exec2 = util.promisify(child_process.exec);
1677
+ var getAISDKPackageVersion = (llmProvider) => {
1678
+ switch (llmProvider) {
1679
+ case "cerebras":
1680
+ return "^0.2.14";
1681
+ default:
1682
+ return "^1.0.0";
1683
+ }
1684
+ };
1677
1685
  var getAISDKPackage = (llmProvider) => {
1678
1686
  switch (llmProvider) {
1679
1687
  case "openai":
@@ -2236,10 +2244,11 @@ var init = async ({
2236
2244
  }
2237
2245
  const key = await getAPIKey(llmProvider || "openai");
2238
2246
  const aiSdkPackage = getAISDKPackage(llmProvider);
2247
+ const aiSdkPackageVersion = getAISDKPackageVersion(llmProvider);
2239
2248
  const depsService = new DepsService();
2240
2249
  const pm = depsService.packageManager;
2241
2250
  const installCommand = getPackageManagerInstallCommand(pm);
2242
- await exec3(`${pm} ${installCommand} ${aiSdkPackage}`);
2251
+ await exec3(`${pm} ${installCommand} ${aiSdkPackage}@${aiSdkPackageVersion}`);
2243
2252
  if (configureEditorWithDocsMCP) {
2244
2253
  await installMastraDocsMCPServer({
2245
2254
  editor: configureEditorWithDocsMCP,