create-mastra 0.1.0-alpha.2 → 0.1.0-alpha.21
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 +4 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#! /usr/bin/env node
|
|
2
2
|
import { Command } from 'commander';
|
|
3
|
-
import { PosthogAnalytics } from 'mastra
|
|
4
|
-
import { create } from 'mastra
|
|
3
|
+
import { PosthogAnalytics } from 'mastra';
|
|
4
|
+
import { create } from 'mastra';
|
|
5
5
|
import { getPackageVersion } from './utils.js';
|
|
6
6
|
const version = await getPackageVersion();
|
|
7
7
|
const analytics = new PosthogAnalytics({
|
|
@@ -28,6 +28,7 @@ program
|
|
|
28
28
|
.option('--default', 'Quick start with defaults(src, OpenAI, no examples)')
|
|
29
29
|
.option('-c, --components <components>', 'Comma-separated list of components (agents, tools, workflows)')
|
|
30
30
|
.option('-l, --llm <model-provider>', 'Default model provider (openai, anthropic, or groq)')
|
|
31
|
+
.option('-k, --llm-api-key <api-key>', 'API key for the model provider')
|
|
31
32
|
.option('-e, --example', 'Include example code')
|
|
32
33
|
.action(async (args) => {
|
|
33
34
|
if (args.default) {
|
|
@@ -42,6 +43,7 @@ program
|
|
|
42
43
|
components: args.components,
|
|
43
44
|
llmProvider: args.llm,
|
|
44
45
|
addExample: args.example,
|
|
46
|
+
llmApiKey: args['llm-api-key'],
|
|
45
47
|
});
|
|
46
48
|
});
|
|
47
49
|
program.parse(process.argv);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-mastra",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.21",
|
|
4
4
|
"description": "Create Mastra apps with one command",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"commander": "^12.0.0",
|
|
20
20
|
"fs-extra": "^11.2.0",
|
|
21
|
-
"mastra": "0.1.57-alpha.
|
|
21
|
+
"mastra": "0.1.57-alpha.88"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@types/node": "^22.1.0",
|