@mastra/deployer 0.0.1-alpha.27 → 0.0.1-alpha.28
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/CHANGELOG.md +12 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.js +4 -1
- package/dist/server/index.js +1 -1
- package/package.json +2 -2
- package/src/build/bundle.ts +2 -1
- package/src/build/deps.ts +1 -1
- package/src/deploy/base.ts +2 -1
- package/src/deploy/log.ts +1 -1
- package/src/server/handlers/vector.ts +1 -1
- package/src/server/handlers/workflows.ts +4 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @mastra/deployer
|
|
2
2
|
|
|
3
|
+
## 0.0.1-alpha.28
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 2ab57d6: Fix: Workflows require a trigger schema otherwise it fails to run in dev
|
|
8
|
+
- 9625602: Use mastra core splitted bundles in other packages
|
|
9
|
+
- Updated dependencies [30322ce]
|
|
10
|
+
- Updated dependencies [78eec7c]
|
|
11
|
+
- Updated dependencies [9625602]
|
|
12
|
+
- Updated dependencies [8769a62]
|
|
13
|
+
- @mastra/core@0.2.0-alpha.83
|
|
14
|
+
|
|
3
15
|
## 0.0.1-alpha.27
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { MastraBase
|
|
1
|
+
import { MastraBase } from '@mastra/core/base';
|
|
2
|
+
import { Mastra } from '@mastra/core/mastra';
|
|
3
|
+
import { Logger } from '@mastra/core/logger';
|
|
2
4
|
import { Transform } from 'stream';
|
|
3
5
|
|
|
4
6
|
declare class Deps extends MastraBase {
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { MastraBase } from '@mastra/core/base';
|
|
2
|
+
import '@mastra/core/mastra';
|
|
2
3
|
import * as fs2 from 'fs';
|
|
3
4
|
import fs2__default, { existsSync, mkdirSync, readFileSync, writeFileSync, copyFileSync } from 'fs';
|
|
4
5
|
import path2, { join, dirname } from 'path';
|
|
5
6
|
import { fileURLToPath } from 'url';
|
|
7
|
+
import { createLogger, noopLogger } from '@mastra/core/logger';
|
|
8
|
+
import { Workflow, Step } from '@mastra/core/workflows';
|
|
6
9
|
import * as esbuild from 'esbuild';
|
|
7
10
|
import { z } from 'zod';
|
|
8
11
|
import fsExtra from 'fs-extra/esm';
|
package/dist/server/index.js
CHANGED
|
@@ -9210,7 +9210,7 @@ async function getWorkflowByIdHandler(c2) {
|
|
|
9210
9210
|
const mastra = c2.get("mastra");
|
|
9211
9211
|
const workflowId = c2.req.param("workflowId");
|
|
9212
9212
|
const workflow = mastra.getWorkflow(workflowId);
|
|
9213
|
-
const triggerSchema = workflow
|
|
9213
|
+
const triggerSchema = workflow?.triggerSchema;
|
|
9214
9214
|
const stepGraph = workflow.stepGraph;
|
|
9215
9215
|
const stepSubscriberGraph = workflow.stepSubscriberGraph;
|
|
9216
9216
|
const serializedSteps = Object.entries(workflow.steps).reduce((acc, [key, step]) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/deployer",
|
|
3
|
-
"version": "0.0.1-alpha.
|
|
3
|
+
"version": "0.0.1-alpha.28",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"esbuild": "^0.24.2",
|
|
26
26
|
"fs-extra": "^11.2.0",
|
|
27
27
|
"zod": "^3.24.1",
|
|
28
|
-
"@mastra/core": "0.
|
|
28
|
+
"@mastra/core": "0.2.0-alpha.83"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@hono/node-server": "^1.13.7",
|
package/src/build/bundle.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { noopLogger, Logger, createLogger } from '@mastra/core/logger';
|
|
2
|
+
import { Workflow, Step } from '@mastra/core/workflows';
|
|
2
3
|
import * as esbuild from 'esbuild';
|
|
3
4
|
import { type BuildOptions } from 'esbuild';
|
|
4
5
|
import { join } from 'path';
|
package/src/build/deps.ts
CHANGED
package/src/deploy/base.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { MastraBase } from '@mastra/core/base';
|
|
2
|
+
import { Mastra } from '@mastra/core/mastra';
|
|
2
3
|
import { copyFileSync, existsSync, mkdirSync, readFileSync, writeFileSync } from 'fs';
|
|
3
4
|
import path, { join } from 'path';
|
|
4
5
|
import { fileURLToPath } from 'url';
|
package/src/deploy/log.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Mastra } from '@mastra/core';
|
|
1
2
|
import type { Context } from 'hono';
|
|
2
3
|
import { stringify } from 'superjson';
|
|
3
4
|
import zodToJsonSchema from 'zod-to-json-schema';
|
|
@@ -6,7 +7,7 @@ import { handleError } from './error';
|
|
|
6
7
|
|
|
7
8
|
export async function getWorkflowsHandler(c: Context) {
|
|
8
9
|
try {
|
|
9
|
-
const mastra = c.get('mastra');
|
|
10
|
+
const mastra: Mastra = c.get('mastra');
|
|
10
11
|
const workflows = mastra.getWorkflows({ serialized: true });
|
|
11
12
|
return c.json(workflows);
|
|
12
13
|
} catch (error) {
|
|
@@ -16,11 +17,11 @@ export async function getWorkflowsHandler(c: Context) {
|
|
|
16
17
|
|
|
17
18
|
export async function getWorkflowByIdHandler(c: Context) {
|
|
18
19
|
try {
|
|
19
|
-
const mastra = c.get('mastra');
|
|
20
|
+
const mastra: Mastra = c.get('mastra');
|
|
20
21
|
const workflowId = c.req.param('workflowId');
|
|
21
22
|
const workflow = mastra.getWorkflow(workflowId);
|
|
22
23
|
|
|
23
|
-
const triggerSchema = workflow
|
|
24
|
+
const triggerSchema = workflow?.triggerSchema;
|
|
24
25
|
const stepGraph = workflow.stepGraph;
|
|
25
26
|
const stepSubscriberGraph = workflow.stepSubscriberGraph;
|
|
26
27
|
const serializedSteps = Object.entries(workflow.steps).reduce<any>((acc, [key, step]) => {
|