motia 0.15.5-beta.174-384621 → 0.15.5-beta.174-570471

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.
Files changed (27) hide show
  1. package/dist/create/templates/hello/motia-workbench.json +2 -2
  2. package/dist/create/templates/hello_js/motia-workbench.json +2 -2
  3. package/dist/create/templates/hello_multilang/motia-workbench.json +3 -3
  4. package/dist/create/templates/hello_python/motia-workbench.json +2 -2
  5. package/dist/create/templates/nodejs/motia-workbench.json +4 -4
  6. package/dist/create/templates/plugin/package.json.txt +2 -1
  7. package/dist/create/templates/python/motia-workbench.json +4 -4
  8. package/dist/create-step/index.mjs +1 -1
  9. package/dist/create-step/index.mjs.map +1 -1
  10. package/package.json +8 -8
  11. /package/dist/create/templates/hello/{src → steps}/hello/hello-api.step.ts.txt +0 -0
  12. /package/dist/create/templates/hello/{src → steps}/hello/process-greeting.step.ts.txt +0 -0
  13. /package/dist/create/templates/hello_js/{src → steps}/hello/hello-api.step.js.txt +0 -0
  14. /package/dist/create/templates/hello_js/{src → steps}/hello/process-greeting.step.js.txt +0 -0
  15. /package/dist/create/templates/hello_multilang/{src → steps}/hello/hello-api.step.ts.txt +0 -0
  16. /package/dist/create/templates/hello_multilang/{src → steps}/hello/log-greeting.step.js.txt +0 -0
  17. /package/dist/create/templates/hello_multilang/{src → steps}/hello/process_greeting_step.py.txt +0 -0
  18. /package/dist/create/templates/hello_python/{src → steps}/hello/hello_api_step.py.txt +0 -0
  19. /package/dist/create/templates/hello_python/{src → steps}/hello/process_greeting_step.py.txt +0 -0
  20. /package/dist/create/templates/nodejs/{src → steps}/petstore/api.step.ts.txt +0 -0
  21. /package/dist/create/templates/nodejs/{src → steps}/petstore/notification.step.ts.txt +0 -0
  22. /package/dist/create/templates/nodejs/{src → steps}/petstore/process-food-order.step.ts.txt +0 -0
  23. /package/dist/create/templates/nodejs/{src → steps}/petstore/state-audit-cron.step.ts.txt +0 -0
  24. /package/dist/create/templates/python/{src → steps}/petstore/api_step.py.txt +0 -0
  25. /package/dist/create/templates/python/{src → steps}/petstore/notification_step.py.txt +0 -0
  26. /package/dist/create/templates/python/{src → steps}/petstore/process_food_order_step.py.txt +0 -0
  27. /package/dist/create/templates/python/{src → steps}/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
- "src/hello/process-greeting.step.ts": {
5
+ "steps/hello/process-greeting.step.ts": {
6
6
  "x": 409,
7
7
  "y": 44
8
8
  },
9
- "src/hello/hello-api.step.ts": {
9
+ "steps/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
- "src/hello/process-greeting.step.js": {
5
+ "steps/hello/process-greeting.step.js": {
6
6
  "x": 409,
7
7
  "y": 44
8
8
  },
9
- "src/hello/hello-api.step.js": {
9
+ "steps/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
- "src/hello/log-greeting.step.js": {
5
+ "steps/hello/log-greeting.step.js": {
6
6
  "x": 409,
7
7
  "y": 44
8
8
  },
9
- "src/hello/hello-api.step.ts": {
9
+ "steps/hello/hello-api.step.ts": {
10
10
  "x": -409,
11
11
  "y": 0,
12
12
  "sourceHandlePosition": "right"
13
13
  },
14
- "src/hello/process_greeting_step.py": {
14
+ "steps/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
- "src/hello/process_greeting_step.py": {
5
+ "steps/hello/process_greeting_step.py": {
6
6
  "x": 409,
7
7
  "y": 44
8
8
  },
9
- "src/hello/hello_api_step.py": {
9
+ "steps/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
- "src/petstore/state-audit-cron.step.ts": {
5
+ "steps/petstore/state-audit-cron.step.ts": {
6
6
  "x": -175,
7
7
  "y": 219,
8
8
  "sourceHandlePosition": "right"
9
9
  },
10
- "src/petstore/process-food-order.step.ts": {
10
+ "steps/petstore/process-food-order.step.ts": {
11
11
  "x": 144,
12
12
  "y": 17,
13
13
  "sourceHandlePosition": "bottom"
14
14
  },
15
- "src/petstore/notification.step.ts": {
15
+ "steps/petstore/notification.step.ts": {
16
16
  "x": 331,
17
17
  "y": 261,
18
18
  "sourceHandlePosition": "bottom"
19
19
  },
20
- "src/petstore/api.step.ts": {
20
+ "steps/petstore/api.step.ts": {
21
21
  "x": -175,
22
22
  "y": 3,
23
23
  "sourceHandlePosition": "right"
@@ -29,7 +29,8 @@
29
29
  },
30
30
  "peerDependencies": {
31
31
  "@motiadev/core": "{{VERSION}}",
32
- "@motiadev/ui": "{{VERSION}}"
32
+ "@motiadev/ui": "{{VERSION}}",
33
+ "motia": "{{VERSION}}"
33
34
  },
34
35
  "devDependencies": {
35
36
  "@rollup/plugin-babel": "^6.1.0",
@@ -2,22 +2,22 @@
2
2
  {
3
3
  "id": "basic-tutorial",
4
4
  "config": {
5
- "src/petstore/state_audit_cron_step.py": {
5
+ "steps/petstore/state_audit_cron_step.py": {
6
6
  "x": -175,
7
7
  "y": 219,
8
8
  "sourceHandlePosition": "right"
9
9
  },
10
- "src/petstore/process_food_order_step.py": {
10
+ "steps/petstore/process_food_order_step.py": {
11
11
  "x": 144,
12
12
  "y": 17,
13
13
  "sourceHandlePosition": "bottom"
14
14
  },
15
- "src/petstore/notification_step.py": {
15
+ "steps/petstore/notification_step.py": {
16
16
  "x": 331,
17
17
  "y": 261,
18
18
  "sourceHandlePosition": "bottom"
19
19
  },
20
- "src/petstore/api_step.py": {
20
+ "steps/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(), "src", options?.stepFilePath || "");
13
+ const stepDir = path.join(process.cwd(), "steps", 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(), '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"}
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(), 'steps', 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,SAAS,SAAS,gBAAgB,GAAG;AAC9E,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-384621",
4
+ "version": "0.15.5-beta.174-570471",
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-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"
49
+ "@motiadev/adapter-redis-cron": "0.15.5-beta.174-570471",
50
+ "@motiadev/adapter-bullmq-events": "0.15.5-beta.174-570471",
51
+ "@motiadev/adapter-redis-state": "0.15.5-beta.174-570471",
52
+ "@motiadev/stream-client-node": "0.15.5-beta.174-570471",
53
+ "@motiadev/core": "0.15.5-beta.174-570471",
54
+ "@motiadev/adapter-redis-streams": "0.15.5-beta.174-570471",
55
+ "@motiadev/workbench": "0.15.5-beta.174-570471"
56
56
  },
57
57
  "devDependencies": {
58
58
  "@amplitude/analytics-types": "^2.9.2",