motia 0.15.5-beta.174-069425 → 0.15.5-beta.174-384621
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/create/templates/hello/motia-workbench.json +2 -2
- package/dist/create/templates/hello_js/motia-workbench.json +2 -2
- package/dist/create/templates/hello_multilang/motia-workbench.json +3 -3
- package/dist/create/templates/hello_python/motia-workbench.json +2 -2
- package/dist/create/templates/nodejs/motia-workbench.json +4 -4
- package/dist/create/templates/plugin/README.md.txt +1 -1
- package/dist/create/templates/python/motia-workbench.json +4 -4
- package/dist/create-step/index.mjs +1 -1
- package/dist/create-step/index.mjs.map +1 -1
- package/package.json +8 -8
- /package/dist/create/templates/hello/{steps → src}/hello/hello-api.step.ts.txt +0 -0
- /package/dist/create/templates/hello/{steps → src}/hello/process-greeting.step.ts.txt +0 -0
- /package/dist/create/templates/hello_js/{steps → src}/hello/hello-api.step.js.txt +0 -0
- /package/dist/create/templates/hello_js/{steps → src}/hello/process-greeting.step.js.txt +0 -0
- /package/dist/create/templates/hello_multilang/{steps → src}/hello/hello-api.step.ts.txt +0 -0
- /package/dist/create/templates/hello_multilang/{steps → src}/hello/log-greeting.step.js.txt +0 -0
- /package/dist/create/templates/hello_multilang/{steps → src}/hello/process_greeting_step.py.txt +0 -0
- /package/dist/create/templates/hello_python/{steps → src}/hello/hello_api_step.py.txt +0 -0
- /package/dist/create/templates/hello_python/{steps → src}/hello/process_greeting_step.py.txt +0 -0
- /package/dist/create/templates/nodejs/{steps → src}/petstore/api.step.ts.txt +0 -0
- /package/dist/create/templates/nodejs/{steps → src}/petstore/notification.step.ts.txt +0 -0
- /package/dist/create/templates/nodejs/{steps → src}/petstore/process-food-order.step.ts.txt +0 -0
- /package/dist/create/templates/nodejs/{steps → src}/petstore/state-audit-cron.step.ts.txt +0 -0
- /package/dist/create/templates/python/{steps → src}/petstore/api_step.py.txt +0 -0
- /package/dist/create/templates/python/{steps → src}/petstore/notification_step.py.txt +0 -0
- /package/dist/create/templates/python/{steps → src}/petstore/process_food_order_step.py.txt +0 -0
- /package/dist/create/templates/python/{steps → src}/petstore/state_audit_cron_step.py.txt +0 -0
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
{
|
|
3
3
|
"id": "hello-world-flow",
|
|
4
4
|
"config": {
|
|
5
|
-
"
|
|
5
|
+
"src/hello/process-greeting.step.ts": {
|
|
6
6
|
"x": 409,
|
|
7
7
|
"y": 44
|
|
8
8
|
},
|
|
9
|
-
"
|
|
9
|
+
"src/hello/hello-api.step.ts": {
|
|
10
10
|
"x": 0,
|
|
11
11
|
"y": 0,
|
|
12
12
|
"sourceHandlePosition": "right"
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
{
|
|
3
3
|
"id": "hello-world-flow",
|
|
4
4
|
"config": {
|
|
5
|
-
"
|
|
5
|
+
"src/hello/process-greeting.step.js": {
|
|
6
6
|
"x": 409,
|
|
7
7
|
"y": 44
|
|
8
8
|
},
|
|
9
|
-
"
|
|
9
|
+
"src/hello/hello-api.step.js": {
|
|
10
10
|
"x": 0,
|
|
11
11
|
"y": 0,
|
|
12
12
|
"sourceHandlePosition": "right"
|
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
{
|
|
3
3
|
"id": "hello-world-flow",
|
|
4
4
|
"config": {
|
|
5
|
-
"
|
|
5
|
+
"src/hello/log-greeting.step.js": {
|
|
6
6
|
"x": 409,
|
|
7
7
|
"y": 44
|
|
8
8
|
},
|
|
9
|
-
"
|
|
9
|
+
"src/hello/hello-api.step.ts": {
|
|
10
10
|
"x": -409,
|
|
11
11
|
"y": 0,
|
|
12
12
|
"sourceHandlePosition": "right"
|
|
13
13
|
},
|
|
14
|
-
"
|
|
14
|
+
"src/hello/process_greeting_step.py": {
|
|
15
15
|
"x": 0,
|
|
16
16
|
"y": 34,
|
|
17
17
|
"sourceHandlePosition": "right"
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
{
|
|
3
3
|
"id": "hello-world-flow",
|
|
4
4
|
"config": {
|
|
5
|
-
"
|
|
5
|
+
"src/hello/process_greeting_step.py": {
|
|
6
6
|
"x": 409,
|
|
7
7
|
"y": 44
|
|
8
8
|
},
|
|
9
|
-
"
|
|
9
|
+
"src/hello/hello_api_step.py": {
|
|
10
10
|
"x": 0,
|
|
11
11
|
"y": 0,
|
|
12
12
|
"sourceHandlePosition": "right"
|
|
@@ -2,22 +2,22 @@
|
|
|
2
2
|
{
|
|
3
3
|
"id": "basic-tutorial",
|
|
4
4
|
"config": {
|
|
5
|
-
"
|
|
5
|
+
"src/petstore/state-audit-cron.step.ts": {
|
|
6
6
|
"x": -175,
|
|
7
7
|
"y": 219,
|
|
8
8
|
"sourceHandlePosition": "right"
|
|
9
9
|
},
|
|
10
|
-
"
|
|
10
|
+
"src/petstore/process-food-order.step.ts": {
|
|
11
11
|
"x": 144,
|
|
12
12
|
"y": 17,
|
|
13
13
|
"sourceHandlePosition": "bottom"
|
|
14
14
|
},
|
|
15
|
-
"
|
|
15
|
+
"src/petstore/notification.step.ts": {
|
|
16
16
|
"x": 331,
|
|
17
17
|
"y": 261,
|
|
18
18
|
"sourceHandlePosition": "bottom"
|
|
19
19
|
},
|
|
20
|
-
"
|
|
20
|
+
"src/petstore/api.step.ts": {
|
|
21
21
|
"x": -175,
|
|
22
22
|
"y": 3,
|
|
23
23
|
"sourceHandlePosition": "right"
|
|
@@ -2,22 +2,22 @@
|
|
|
2
2
|
{
|
|
3
3
|
"id": "basic-tutorial",
|
|
4
4
|
"config": {
|
|
5
|
-
"
|
|
5
|
+
"src/petstore/state_audit_cron_step.py": {
|
|
6
6
|
"x": -175,
|
|
7
7
|
"y": 219,
|
|
8
8
|
"sourceHandlePosition": "right"
|
|
9
9
|
},
|
|
10
|
-
"
|
|
10
|
+
"src/petstore/process_food_order_step.py": {
|
|
11
11
|
"x": 144,
|
|
12
12
|
"y": 17,
|
|
13
13
|
"sourceHandlePosition": "bottom"
|
|
14
14
|
},
|
|
15
|
-
"
|
|
15
|
+
"src/petstore/notification_step.py": {
|
|
16
16
|
"x": 331,
|
|
17
17
|
"y": 261,
|
|
18
18
|
"sourceHandlePosition": "bottom"
|
|
19
19
|
},
|
|
20
|
-
"
|
|
20
|
+
"src/petstore/api_step.py": {
|
|
21
21
|
"x": -175,
|
|
22
22
|
"y": 3,
|
|
23
23
|
"sourceHandlePosition": "right"
|
|
@@ -10,7 +10,7 @@ import pc from "picocolors";
|
|
|
10
10
|
async function createStep(options) {
|
|
11
11
|
try {
|
|
12
12
|
const answers = await getStepAnswers();
|
|
13
|
-
const stepDir = path.join(process.cwd(), "
|
|
13
|
+
const stepDir = path.join(process.cwd(), "src", options?.stepFilePath || "");
|
|
14
14
|
if (!fs.existsSync(stepDir)) fs.mkdirSync(stepDir, { recursive: true });
|
|
15
15
|
const extension = getFileExtension(answers.language);
|
|
16
16
|
const stepPath = path.join(stepDir, `${answers.name}${answers.type === "api" ? ".api" : ""}.step${extension}`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":[],"sources":["../../src/create-step/index.ts"],"sourcesContent":["import fs from 'fs'\nimport path from 'path'\nimport pc from 'picocolors'\nimport { getStepAnswers } from './getAnswers'\nimport { generateTemplate } from './teamplateUtils'\nimport { generateOverride } from './templates/ui/overrides'\nimport { getFileExtension } from './utils'\n\nexport async function createStep(options: { stepFilePath?: string }) {\n try {\n const answers = await getStepAnswers()\n\n // Create steps directory if it doesn't exist\n const stepDir = path.join(process.cwd(), '
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../../src/create-step/index.ts"],"sourcesContent":["import fs from 'fs'\nimport path from 'path'\nimport pc from 'picocolors'\nimport { getStepAnswers } from './getAnswers'\nimport { generateTemplate } from './teamplateUtils'\nimport { generateOverride } from './templates/ui/overrides'\nimport { getFileExtension } from './utils'\n\nexport async function createStep(options: { stepFilePath?: string }) {\n try {\n const answers = await getStepAnswers()\n\n // Create steps directory if it doesn't exist\n const stepDir = path.join(process.cwd(), 'src', options?.stepFilePath || '')\n if (!fs.existsSync(stepDir)) {\n fs.mkdirSync(stepDir, { recursive: true })\n }\n\n // Create step file\n const extension = getFileExtension(answers.language)\n const stepPath = path.join(stepDir, `${answers.name}${answers.type === 'api' ? '.api' : ''}.step${extension}`)\n\n // Check if file already exists\n if (fs.existsSync(stepPath)) {\n console.error(pc.red(`\\n❌ Error: Step file already exists at ${stepPath}`))\n process.exit(1)\n }\n\n // Generate and write step file\n const stepContent = await generateTemplate(answers)\n fs.writeFileSync(stepPath, stepContent)\n console.log(pc.green(`\\n✨ Created step file at ${stepPath}`))\n\n // Create UI override if requested\n if (answers.createOverride) {\n const overridePath = path.join(stepDir, `${answers.name}.step.tsx`)\n const overrideContent = await generateOverride(answers)\n fs.writeFileSync(overridePath, overrideContent)\n console.log(pc.green(`✨ Created UI override at ${overridePath}`))\n }\n\n console.log(pc.bold('\\n🎉 Step creation complete!'))\n } catch (error) {\n console.error(pc.red('\\n❌ Error creating step:'), error)\n process.exit(1)\n }\n}\n"],"mappings":";;;;;;;;;AAQA,eAAsB,WAAW,SAAoC;AACnE,KAAI;EACF,MAAM,UAAU,MAAM,gBAAgB;EAGtC,MAAM,UAAU,KAAK,KAAK,QAAQ,KAAK,EAAE,OAAO,SAAS,gBAAgB,GAAG;AAC5E,MAAI,CAAC,GAAG,WAAW,QAAQ,CACzB,IAAG,UAAU,SAAS,EAAE,WAAW,MAAM,CAAC;EAI5C,MAAM,YAAY,iBAAiB,QAAQ,SAAS;EACpD,MAAM,WAAW,KAAK,KAAK,SAAS,GAAG,QAAQ,OAAO,QAAQ,SAAS,QAAQ,SAAS,GAAG,OAAO,YAAY;AAG9G,MAAI,GAAG,WAAW,SAAS,EAAE;AAC3B,WAAQ,MAAM,GAAG,IAAI,0CAA0C,WAAW,CAAC;AAC3E,WAAQ,KAAK,EAAE;;EAIjB,MAAM,cAAc,MAAM,iBAAiB,QAAQ;AACnD,KAAG,cAAc,UAAU,YAAY;AACvC,UAAQ,IAAI,GAAG,MAAM,4BAA4B,WAAW,CAAC;AAG7D,MAAI,QAAQ,gBAAgB;GAC1B,MAAM,eAAe,KAAK,KAAK,SAAS,GAAG,QAAQ,KAAK,WAAW;GACnE,MAAM,kBAAkB,MAAM,iBAAiB,QAAQ;AACvD,MAAG,cAAc,cAAc,gBAAgB;AAC/C,WAAQ,IAAI,GAAG,MAAM,4BAA4B,eAAe,CAAC;;AAGnE,UAAQ,IAAI,GAAG,KAAK,+BAA+B,CAAC;UAC7C,OAAO;AACd,UAAQ,MAAM,GAAG,IAAI,2BAA2B,EAAE,MAAM;AACxD,UAAQ,KAAK,EAAE"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "motia",
|
|
3
3
|
"description": "Build production-grade backends with a single primitive. APIs, background jobs, Queues, Workflows, and AI agents - unified in one system with built-in State management, Streaming, and Observability.",
|
|
4
|
-
"version": "0.15.5-beta.174-
|
|
4
|
+
"version": "0.15.5-beta.174-384621",
|
|
5
5
|
"license": "Elastic-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"repository": {
|
|
@@ -46,13 +46,13 @@
|
|
|
46
46
|
"table": "^6.9.0",
|
|
47
47
|
"ts-node": "^10.9.2",
|
|
48
48
|
"zod": "^4.1.12",
|
|
49
|
-
"@motiadev/adapter-
|
|
50
|
-
"@motiadev/adapter-redis-state": "0.15.5-beta.174-
|
|
51
|
-
"@motiadev/
|
|
52
|
-
"@motiadev/adapter-redis-streams": "0.15.5-beta.174-
|
|
53
|
-
"@motiadev/
|
|
54
|
-
"@motiadev/
|
|
55
|
-
"@motiadev/stream-client-node": "0.15.5-beta.174-
|
|
49
|
+
"@motiadev/adapter-bullmq-events": "0.15.5-beta.174-384621",
|
|
50
|
+
"@motiadev/adapter-redis-state": "0.15.5-beta.174-384621",
|
|
51
|
+
"@motiadev/core": "0.15.5-beta.174-384621",
|
|
52
|
+
"@motiadev/adapter-redis-streams": "0.15.5-beta.174-384621",
|
|
53
|
+
"@motiadev/workbench": "0.15.5-beta.174-384621",
|
|
54
|
+
"@motiadev/adapter-redis-cron": "0.15.5-beta.174-384621",
|
|
55
|
+
"@motiadev/stream-client-node": "0.15.5-beta.174-384621"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@amplitude/analytics-types": "^2.9.2",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/create/templates/hello_multilang/{steps → src}/hello/process_greeting_step.py.txt
RENAMED
|
File without changes
|
|
File without changes
|
/package/dist/create/templates/hello_python/{steps → src}/hello/process_greeting_step.py.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|