mastra 0.3.1-alpha.1 → 0.3.2-alpha.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.
|
@@ -271,6 +271,8 @@ var getAISDKPackage = (llmProvider) => {
|
|
|
271
271
|
return "@ai-sdk/anthropic";
|
|
272
272
|
case "groq":
|
|
273
273
|
return "@ai-sdk/groq";
|
|
274
|
+
case "google":
|
|
275
|
+
return "@ai-sdk/google";
|
|
274
276
|
default:
|
|
275
277
|
return "@ai-sdk/openai";
|
|
276
278
|
}
|
|
@@ -286,7 +288,10 @@ var getProviderImportAndModelItem = (llmProvider) => {
|
|
|
286
288
|
modelItem = `anthropic('claude-3-5-sonnet-20241022')`;
|
|
287
289
|
} else if (llmProvider === "groq") {
|
|
288
290
|
providerImport = `import { groq } from '${getAISDKPackage(llmProvider)}';`;
|
|
289
|
-
modelItem = `groq('
|
|
291
|
+
modelItem = `groq('llama-3.3-70b-versatile`;
|
|
292
|
+
} else if (llmProvider === "google") {
|
|
293
|
+
providerImport = `import { google } from '${getAISDKPackage(llmProvider)}';`;
|
|
294
|
+
modelItem = `google('gemini-1.5-pro-latest')`;
|
|
290
295
|
}
|
|
291
296
|
return { providerImport, modelItem };
|
|
292
297
|
};
|
|
@@ -621,6 +626,9 @@ var getAPIKey = async (provider) => {
|
|
|
621
626
|
case "groq":
|
|
622
627
|
key = "GROQ_API_KEY";
|
|
623
628
|
return key;
|
|
629
|
+
case "google":
|
|
630
|
+
key = "GOOGLE_GENERATIVE_AI_API_KEY";
|
|
631
|
+
return key;
|
|
624
632
|
default:
|
|
625
633
|
return key;
|
|
626
634
|
}
|
|
@@ -679,7 +687,8 @@ var interactivePrompt = async () => {
|
|
|
679
687
|
options: [
|
|
680
688
|
{ value: "openai", label: "OpenAI", hint: "recommended" },
|
|
681
689
|
{ value: "anthropic", label: "Anthropic" },
|
|
682
|
-
{ value: "groq", label: "Groq" }
|
|
690
|
+
{ value: "groq", label: "Groq" },
|
|
691
|
+
{ value: "google", label: "Google" }
|
|
683
692
|
]
|
|
684
693
|
}),
|
|
685
694
|
llmApiKey: async ({ results: { llmProvider } }) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { create } from '../../chunk-
|
|
1
|
+
export { create } from '../../chunk-7BUCNWW4.js';
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#! /usr/bin/env node
|
|
2
2
|
import { PosthogAnalytics } from './chunk-SLGHDOYI.js';
|
|
3
3
|
export { PosthogAnalytics } from './chunk-SLGHDOYI.js';
|
|
4
|
-
import { DepsService, create, checkPkgJson, checkAndInstallCoreDeps, interactivePrompt, init, logger, FileService as FileService$1 } from './chunk-
|
|
5
|
-
export { create } from './chunk-
|
|
4
|
+
import { DepsService, create, checkPkgJson, checkAndInstallCoreDeps, interactivePrompt, init, logger, FileService as FileService$1 } from './chunk-7BUCNWW4.js';
|
|
5
|
+
export { create } from './chunk-7BUCNWW4.js';
|
|
6
6
|
import { Command } from 'commander';
|
|
7
7
|
import { join as join$1, dirname, basename } from 'node:path';
|
|
8
8
|
import { getWatcherInputOptions, writeTelemetryConfig, createWatcher, FileService as FileService$2 } from '@mastra/deployer/build';
|
|
@@ -354,7 +354,7 @@ program.version(`${version}`, "-v, --version").description(`Mastra CLI ${version
|
|
|
354
354
|
} catch {
|
|
355
355
|
}
|
|
356
356
|
});
|
|
357
|
-
program.command("create").description("Create a new Mastra project").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, or
|
|
357
|
+
program.command("create").description("Create a new Mastra project").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, or google))").option("-k, --llm-api-key <api-key>", "API key for the model provider").option("-e, --example", "Include example code").option("-t, --timeout [timeout]", "Configurable timeout for package installation, defaults to 60000 ms").action(async (args) => {
|
|
358
358
|
await analytics.trackCommandExecution({
|
|
359
359
|
command: "create",
|
|
360
360
|
args,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mastra",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2-alpha.0",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"description": "cli for mastra",
|
|
6
6
|
"type": "module",
|
|
@@ -55,8 +55,8 @@
|
|
|
55
55
|
"yocto-spinner": "^0.1.2",
|
|
56
56
|
"zod": "^3.24.2",
|
|
57
57
|
"zod-to-json-schema": "^3.24.3",
|
|
58
|
-
"@mastra/
|
|
59
|
-
"@mastra/
|
|
58
|
+
"@mastra/deployer": "^0.2.1-alpha.0",
|
|
59
|
+
"@mastra/core": "^0.6.1-alpha.0"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"@microsoft/api-extractor": "^7.52.1",
|