motia 0.9.0-beta.145 → 0.9.1-beta.146
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.
|
@@ -26,7 +26,7 @@ const build = async (listener) => {
|
|
|
26
26
|
builder.registerBuilder('node', new node_1.NodeBuilder(builder, listener));
|
|
27
27
|
fs_1.default.rmSync(constants_1.distDir, { recursive: true, force: true });
|
|
28
28
|
fs_1.default.mkdirSync(constants_1.distDir, { recursive: true });
|
|
29
|
-
const lockedData = new core_1.LockedData(constants_1.projectDir,
|
|
29
|
+
const lockedData = new core_1.LockedData(constants_1.projectDir, new core_1.MemoryStreamAdapterManager(), new printer_1.NoPrinter());
|
|
30
30
|
if (hasPythonSteps(stepFiles)) {
|
|
31
31
|
builder.registerBuilder('python', new python_1.PythonBuilder(builder, listener));
|
|
32
32
|
}
|
|
@@ -8,7 +8,7 @@ const version = `${(0, crypto_1.randomUUID)()}:${Math.floor(Date.now() / 1000)}`
|
|
|
8
8
|
const generateTypes = async (projectDir) => {
|
|
9
9
|
const files = (0, generate_locked_data_1.getStepFiles)(projectDir);
|
|
10
10
|
const streamsFiles = (0, generate_locked_data_1.getStreamFiles)(projectDir);
|
|
11
|
-
const lockedData = new core_1.LockedData(projectDir,
|
|
11
|
+
const lockedData = new core_1.LockedData(projectDir, new core_1.MemoryStreamAdapterManager(), new core_1.Printer(projectDir));
|
|
12
12
|
for (const filePath of files) {
|
|
13
13
|
const config = await (0, core_1.getStepConfig)(filePath, projectDir);
|
|
14
14
|
if (config) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isApiStep, LockedData } from '@motiadev/core';
|
|
1
|
+
import { isApiStep, LockedData, MemoryStreamAdapterManager } from '@motiadev/core';
|
|
2
2
|
import { NoPrinter } from '@motiadev/core/dist/src/printer';
|
|
3
3
|
import fs from 'fs';
|
|
4
4
|
import { collectFlows, getStepFiles } from '../../generate-locked-data';
|
|
@@ -20,7 +20,7 @@ export const build = async (listener) => {
|
|
|
20
20
|
builder.registerBuilder('node', new NodeBuilder(builder, listener));
|
|
21
21
|
fs.rmSync(distDir, { recursive: true, force: true });
|
|
22
22
|
fs.mkdirSync(distDir, { recursive: true });
|
|
23
|
-
const lockedData = new LockedData(projectDir,
|
|
23
|
+
const lockedData = new LockedData(projectDir, new MemoryStreamAdapterManager(), new NoPrinter());
|
|
24
24
|
if (hasPythonSteps(stepFiles)) {
|
|
25
25
|
builder.registerBuilder('python', new PythonBuilder(builder, listener));
|
|
26
26
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { getStepConfig, getStreamConfig, LockedData, Printer } from '@motiadev/core';
|
|
1
|
+
import { getStepConfig, getStreamConfig, LockedData, MemoryStreamAdapterManager, Printer } from '@motiadev/core';
|
|
2
2
|
import { randomUUID } from 'crypto';
|
|
3
3
|
import { getStepFiles, getStreamFiles } from './generate-locked-data';
|
|
4
4
|
const version = `${randomUUID()}:${Math.floor(Date.now() / 1000)}`;
|
|
5
5
|
export const generateTypes = async (projectDir) => {
|
|
6
6
|
const files = getStepFiles(projectDir);
|
|
7
7
|
const streamsFiles = getStreamFiles(projectDir);
|
|
8
|
-
const lockedData = new LockedData(projectDir,
|
|
8
|
+
const lockedData = new LockedData(projectDir, new MemoryStreamAdapterManager(), new Printer(projectDir));
|
|
9
9
|
for (const filePath of files) {
|
|
10
10
|
const config = await getStepConfig(filePath, projectDir);
|
|
11
11
|
if (config) {
|
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.9.
|
|
4
|
+
"version": "0.9.1-beta.146",
|
|
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/
|
|
50
|
-
"@motiadev/workbench": "0.9.
|
|
51
|
-
"@motiadev/
|
|
49
|
+
"@motiadev/core": "0.9.1-beta.146",
|
|
50
|
+
"@motiadev/workbench": "0.9.1-beta.146",
|
|
51
|
+
"@motiadev/stream-client-node": "0.9.1-beta.146"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@amplitude/analytics-types": "^2.9.2",
|