motia 0.6.4-beta.131-508662 → 0.6.4-beta.131-211436

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.
@@ -112,13 +112,13 @@ class PythonBuilder {
112
112
  }
113
113
  createRouterTemplate(steps) {
114
114
  const imports = steps
115
- .map((step, index) => `from ${this.getModuleName(step)} import handler as route${index}_module`)
115
+ .map((step, index) => `from ${this.getModuleName(step)} import handler as route${index}_handler, config as route${index}_config`)
116
116
  .join('\n');
117
117
  const routerPaths = steps
118
118
  .map((step, index) => {
119
119
  const method = step.config.method.toUpperCase();
120
120
  const path = step.config.path;
121
- return ` '${method} ${path}': RouterPath('${step.config.name}', '${step.config.method.toLowerCase()}', route${index}_module.handler, route${index}_module.config)`;
121
+ return ` '${method} ${path}': RouterPath('${step.config.name}', '${step.config.method.toLowerCase()}', route${index}_handler, route${index}_config)`;
122
122
  })
123
123
  .join(',\n');
124
124
  return fs_1.default
@@ -1,7 +1,7 @@
1
1
  from typing import Dict, Callable, Any, Literal
2
+ # from steps.api_step import handler as route0_handler, config as route0_config
2
3
  # {{imports}}
3
4
 
4
-
5
5
  class RouterPath:
6
6
  def __init__(self, step_name: str, method: Literal['get', 'post', 'put', 'delete', 'patch', 'options', 'head'], handler: Callable, config: Dict[str, Any]):
7
7
  self.step_name = step_name
@@ -10,8 +10,6 @@ class RouterPath:
10
10
  self.config = config
11
11
 
12
12
  router_paths: Dict[str, RouterPath] = {
13
- # Example:
14
13
  # 'POST /api/parallel-merge/python': RouterPath('Parallel Merge Python', 'post', route0_handler, route0_config)
15
-
16
14
  # {{router paths}}
17
15
  }
@@ -106,13 +106,13 @@ export class PythonBuilder {
106
106
  }
107
107
  createRouterTemplate(steps) {
108
108
  const imports = steps
109
- .map((step, index) => `from ${this.getModuleName(step)} import handler as route${index}_module`)
109
+ .map((step, index) => `from ${this.getModuleName(step)} import handler as route${index}_handler, config as route${index}_config`)
110
110
  .join('\n');
111
111
  const routerPaths = steps
112
112
  .map((step, index) => {
113
113
  const method = step.config.method.toUpperCase();
114
114
  const path = step.config.path;
115
- return ` '${method} ${path}': RouterPath('${step.config.name}', '${step.config.method.toLowerCase()}', route${index}_module.handler, route${index}_module.config)`;
115
+ return ` '${method} ${path}': RouterPath('${step.config.name}', '${step.config.method.toLowerCase()}', route${index}_handler, route${index}_config)`;
116
116
  })
117
117
  .join(',\n');
118
118
  return fs
@@ -1,7 +1,7 @@
1
1
  from typing import Dict, Callable, Any, Literal
2
+ # from steps.api_step import handler as route0_handler, config as route0_config
2
3
  # {{imports}}
3
4
 
4
-
5
5
  class RouterPath:
6
6
  def __init__(self, step_name: str, method: Literal['get', 'post', 'put', 'delete', 'patch', 'options', 'head'], handler: Callable, config: Dict[str, Any]):
7
7
  self.step_name = step_name
@@ -10,8 +10,6 @@ class RouterPath:
10
10
  self.config = config
11
11
 
12
12
  router_paths: Dict[str, RouterPath] = {
13
- # Example:
14
13
  # 'POST /api/parallel-merge/python': RouterPath('Parallel Merge Python', 'post', route0_handler, route0_config)
15
-
16
14
  # {{router paths}}
17
15
  }
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.6.4-beta.131-508662",
4
+ "version": "0.6.4-beta.131-211436",
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.6.4-beta.131-508662",
50
- "@motiadev/stream-client-node": "0.6.4-beta.131-508662",
51
- "@motiadev/workbench": "0.6.4-beta.131-508662"
49
+ "@motiadev/core": "0.6.4-beta.131-211436",
50
+ "@motiadev/workbench": "0.6.4-beta.131-211436",
51
+ "@motiadev/stream-client-node": "0.6.4-beta.131-211436"
52
52
  },
53
53
  "devDependencies": {
54
54
  "@amplitude/analytics-types": "^2.9.2",