motia 0.8.2-beta.140-516159 → 0.8.2-beta.140-957262
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/README.md +1 -1
- package/dist/cjs/cli.js +12 -10
- package/dist/esm/cli.js +12 -10
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -225,7 +225,7 @@ Create a new Motia project in a fresh directory or the current one.
|
|
|
225
225
|
npx motia create [options]
|
|
226
226
|
|
|
227
227
|
# options
|
|
228
|
-
#
|
|
228
|
+
# + # [project name] (optional): Project name/folder; if not provided, you will be prompted. Use . or ./ to use current directory
|
|
229
229
|
# -t, --template <template name>: Template to use; run npx motia templates to view available ones
|
|
230
230
|
# -c, --cursor: Adds .cursor config for Cursor IDE
|
|
231
231
|
# Alternatively, you can use `npx motia create` to use the create command in interactive mode
|
package/dist/cjs/cli.js
CHANGED
|
@@ -21,20 +21,22 @@ commander_1.program
|
|
|
21
21
|
process.exit(0);
|
|
22
22
|
});
|
|
23
23
|
commander_1.program
|
|
24
|
-
.command('create')
|
|
24
|
+
.command('create [name]')
|
|
25
25
|
.description('Create a new motia project')
|
|
26
|
-
.option('-n, --name <project name>', 'The name for your project, used to create a directory, use ./ or . to create it under the existing directory')
|
|
27
26
|
.option('-t, --template <template>', 'The template to use for your project')
|
|
28
27
|
.option('-i, --interactive', 'Use interactive prompts to create project') // it's default
|
|
29
28
|
.option('-c, --confirm', 'Confirm the project creation', false)
|
|
30
|
-
.action((
|
|
31
|
-
const {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
29
|
+
.action((projectName, options) => {
|
|
30
|
+
const mergedArgs = { ...options, name: projectName };
|
|
31
|
+
return (0, config_utils_1.handler)(async (arg, context) => {
|
|
32
|
+
const { createInteractive } = require('./create/interactive');
|
|
33
|
+
await createInteractive({
|
|
34
|
+
name: arg.name,
|
|
35
|
+
template: arg.template,
|
|
36
|
+
confirm: !!arg.confirm,
|
|
37
|
+
}, context);
|
|
38
|
+
})(mergedArgs);
|
|
39
|
+
});
|
|
38
40
|
commander_1.program
|
|
39
41
|
.command('rules')
|
|
40
42
|
.command('pull')
|
package/dist/esm/cli.js
CHANGED
|
@@ -19,20 +19,22 @@ program
|
|
|
19
19
|
process.exit(0);
|
|
20
20
|
});
|
|
21
21
|
program
|
|
22
|
-
.command('create')
|
|
22
|
+
.command('create [name]')
|
|
23
23
|
.description('Create a new motia project')
|
|
24
|
-
.option('-n, --name <project name>', 'The name for your project, used to create a directory, use ./ or . to create it under the existing directory')
|
|
25
24
|
.option('-t, --template <template>', 'The template to use for your project')
|
|
26
25
|
.option('-i, --interactive', 'Use interactive prompts to create project') // it's default
|
|
27
26
|
.option('-c, --confirm', 'Confirm the project creation', false)
|
|
28
|
-
.action(
|
|
29
|
-
const {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
27
|
+
.action((projectName, options) => {
|
|
28
|
+
const mergedArgs = { ...options, name: projectName };
|
|
29
|
+
return handler(async (arg, context) => {
|
|
30
|
+
const { createInteractive } = require('./create/interactive');
|
|
31
|
+
await createInteractive({
|
|
32
|
+
name: arg.name,
|
|
33
|
+
template: arg.template,
|
|
34
|
+
confirm: !!arg.confirm,
|
|
35
|
+
}, context);
|
|
36
|
+
})(mergedArgs);
|
|
37
|
+
});
|
|
36
38
|
program
|
|
37
39
|
.command('rules')
|
|
38
40
|
.command('pull')
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "motia",
|
|
3
3
|
"description": "A Modern Unified Backend Framework for APIs, Events and Agents",
|
|
4
|
-
"version": "0.8.2-beta.140-
|
|
4
|
+
"version": "0.8.2-beta.140-957262",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -46,9 +46,9 @@
|
|
|
46
46
|
"python-ast": "^0.1.0",
|
|
47
47
|
"table": "^6.9.0",
|
|
48
48
|
"ts-node": "^10.9.2",
|
|
49
|
-
"@motiadev/core": "0.8.2-beta.140-
|
|
50
|
-
"@motiadev/
|
|
51
|
-
"@motiadev/
|
|
49
|
+
"@motiadev/core": "0.8.2-beta.140-957262",
|
|
50
|
+
"@motiadev/stream-client-node": "0.8.2-beta.140-957262",
|
|
51
|
+
"@motiadev/workbench": "0.8.2-beta.140-957262"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@amplitude/analytics-types": "^2.9.2",
|