@mastra/deployer 0.3.2-alpha.1 → 0.3.2-alpha.3
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/server/index.cjs +36 -6
- package/dist/server/index.js +36 -6
- package/package.json +3 -3
package/dist/server/index.cjs
CHANGED
|
@@ -1335,11 +1335,19 @@ async function rootHandler(c2) {
|
|
|
1335
1335
|
async function getTelemetryHandler(c2) {
|
|
1336
1336
|
try {
|
|
1337
1337
|
const mastra = c2.get("mastra");
|
|
1338
|
-
const { name, scope, page, perPage } = c2.req.query();
|
|
1338
|
+
const { name, scope, page, perPage, fromDate, toDate } = c2.req.query();
|
|
1339
1339
|
const attribute = c2.req.queries("attribute");
|
|
1340
1340
|
const traces = await telemetry.getTelemetryHandler({
|
|
1341
1341
|
mastra,
|
|
1342
|
-
body: {
|
|
1342
|
+
body: {
|
|
1343
|
+
name,
|
|
1344
|
+
scope,
|
|
1345
|
+
page: Number(page ?? 0),
|
|
1346
|
+
perPage: Number(perPage ?? 100),
|
|
1347
|
+
attribute,
|
|
1348
|
+
fromDate: fromDate ? new Date(fromDate) : void 0,
|
|
1349
|
+
toDate: toDate ? new Date(toDate) : void 0
|
|
1350
|
+
}
|
|
1343
1351
|
});
|
|
1344
1352
|
return c2.json({ traces });
|
|
1345
1353
|
} catch (error) {
|
|
@@ -1680,9 +1688,15 @@ async function getVNextWorkflowRunsHandler(c2) {
|
|
|
1680
1688
|
try {
|
|
1681
1689
|
const mastra = c2.get("mastra");
|
|
1682
1690
|
const workflowId = c2.req.param("workflowId");
|
|
1691
|
+
const { fromDate, toDate, limit, offset, resourceId } = c2.req.query();
|
|
1683
1692
|
const workflowRuns = await vNextWorkflows.getVNextWorkflowRunsHandler({
|
|
1684
1693
|
mastra,
|
|
1685
|
-
workflowId
|
|
1694
|
+
workflowId,
|
|
1695
|
+
fromDate: fromDate ? new Date(fromDate) : void 0,
|
|
1696
|
+
toDate: toDate ? new Date(toDate) : void 0,
|
|
1697
|
+
limit: limit ? Number(limit) : void 0,
|
|
1698
|
+
offset: offset ? Number(offset) : void 0,
|
|
1699
|
+
resourceId
|
|
1686
1700
|
});
|
|
1687
1701
|
return c2.json(workflowRuns);
|
|
1688
1702
|
} catch (error) {
|
|
@@ -1911,9 +1925,15 @@ async function getWorkflowRunsHandler(c2) {
|
|
|
1911
1925
|
try {
|
|
1912
1926
|
const mastra = c2.get("mastra");
|
|
1913
1927
|
const workflowId = c2.req.param("workflowId");
|
|
1928
|
+
const { fromDate, toDate, limit, offset, resourceId } = c2.req.query();
|
|
1914
1929
|
const workflowRuns = await workflows.getWorkflowRunsHandler({
|
|
1915
1930
|
mastra,
|
|
1916
|
-
workflowId
|
|
1931
|
+
workflowId,
|
|
1932
|
+
fromDate: fromDate ? new Date(fromDate) : void 0,
|
|
1933
|
+
toDate: toDate ? new Date(toDate) : void 0,
|
|
1934
|
+
limit: limit ? Number(limit) : void 0,
|
|
1935
|
+
offset: offset ? Number(offset) : void 0,
|
|
1936
|
+
resourceId
|
|
1917
1937
|
});
|
|
1918
1938
|
return c2.json(workflowRuns);
|
|
1919
1939
|
} catch (error) {
|
|
@@ -3321,7 +3341,12 @@ async function createHonoServer(mastra, options = {}) {
|
|
|
3321
3341
|
in: "path",
|
|
3322
3342
|
required: true,
|
|
3323
3343
|
schema: { type: "string" }
|
|
3324
|
-
}
|
|
3344
|
+
},
|
|
3345
|
+
{ name: "fromDate", in: "query", required: false, schema: { type: "string", format: "date-time" } },
|
|
3346
|
+
{ name: "toDate", in: "query", required: false, schema: { type: "string", format: "date-time" } },
|
|
3347
|
+
{ name: "limit", in: "query", required: false, schema: { type: "number" } },
|
|
3348
|
+
{ name: "offset", in: "query", required: false, schema: { type: "number" } },
|
|
3349
|
+
{ name: "resourceId", in: "query", required: false, schema: { type: "string" } }
|
|
3325
3350
|
],
|
|
3326
3351
|
responses: {
|
|
3327
3352
|
200: {
|
|
@@ -3604,7 +3629,12 @@ async function createHonoServer(mastra, options = {}) {
|
|
|
3604
3629
|
in: "path",
|
|
3605
3630
|
required: true,
|
|
3606
3631
|
schema: { type: "string" }
|
|
3607
|
-
}
|
|
3632
|
+
},
|
|
3633
|
+
{ name: "fromDate", in: "query", required: false, schema: { type: "string", format: "date-time" } },
|
|
3634
|
+
{ name: "toDate", in: "query", required: false, schema: { type: "string", format: "date-time" } },
|
|
3635
|
+
{ name: "limit", in: "query", required: false, schema: { type: "number" } },
|
|
3636
|
+
{ name: "offset", in: "query", required: false, schema: { type: "number" } },
|
|
3637
|
+
{ name: "resourceId", in: "query", required: false, schema: { type: "string" } }
|
|
3608
3638
|
],
|
|
3609
3639
|
responses: {
|
|
3610
3640
|
200: {
|
package/dist/server/index.js
CHANGED
|
@@ -1329,11 +1329,19 @@ async function rootHandler(c2) {
|
|
|
1329
1329
|
async function getTelemetryHandler(c2) {
|
|
1330
1330
|
try {
|
|
1331
1331
|
const mastra = c2.get("mastra");
|
|
1332
|
-
const { name, scope, page, perPage } = c2.req.query();
|
|
1332
|
+
const { name, scope, page, perPage, fromDate, toDate } = c2.req.query();
|
|
1333
1333
|
const attribute = c2.req.queries("attribute");
|
|
1334
1334
|
const traces = await getTelemetryHandler$1({
|
|
1335
1335
|
mastra,
|
|
1336
|
-
body: {
|
|
1336
|
+
body: {
|
|
1337
|
+
name,
|
|
1338
|
+
scope,
|
|
1339
|
+
page: Number(page ?? 0),
|
|
1340
|
+
perPage: Number(perPage ?? 100),
|
|
1341
|
+
attribute,
|
|
1342
|
+
fromDate: fromDate ? new Date(fromDate) : void 0,
|
|
1343
|
+
toDate: toDate ? new Date(toDate) : void 0
|
|
1344
|
+
}
|
|
1337
1345
|
});
|
|
1338
1346
|
return c2.json({ traces });
|
|
1339
1347
|
} catch (error) {
|
|
@@ -1674,9 +1682,15 @@ async function getVNextWorkflowRunsHandler(c2) {
|
|
|
1674
1682
|
try {
|
|
1675
1683
|
const mastra = c2.get("mastra");
|
|
1676
1684
|
const workflowId = c2.req.param("workflowId");
|
|
1685
|
+
const { fromDate, toDate, limit, offset, resourceId } = c2.req.query();
|
|
1677
1686
|
const workflowRuns = await getVNextWorkflowRunsHandler$1({
|
|
1678
1687
|
mastra,
|
|
1679
|
-
workflowId
|
|
1688
|
+
workflowId,
|
|
1689
|
+
fromDate: fromDate ? new Date(fromDate) : void 0,
|
|
1690
|
+
toDate: toDate ? new Date(toDate) : void 0,
|
|
1691
|
+
limit: limit ? Number(limit) : void 0,
|
|
1692
|
+
offset: offset ? Number(offset) : void 0,
|
|
1693
|
+
resourceId
|
|
1680
1694
|
});
|
|
1681
1695
|
return c2.json(workflowRuns);
|
|
1682
1696
|
} catch (error) {
|
|
@@ -1905,9 +1919,15 @@ async function getWorkflowRunsHandler(c2) {
|
|
|
1905
1919
|
try {
|
|
1906
1920
|
const mastra = c2.get("mastra");
|
|
1907
1921
|
const workflowId = c2.req.param("workflowId");
|
|
1922
|
+
const { fromDate, toDate, limit, offset, resourceId } = c2.req.query();
|
|
1908
1923
|
const workflowRuns = await getWorkflowRunsHandler$1({
|
|
1909
1924
|
mastra,
|
|
1910
|
-
workflowId
|
|
1925
|
+
workflowId,
|
|
1926
|
+
fromDate: fromDate ? new Date(fromDate) : void 0,
|
|
1927
|
+
toDate: toDate ? new Date(toDate) : void 0,
|
|
1928
|
+
limit: limit ? Number(limit) : void 0,
|
|
1929
|
+
offset: offset ? Number(offset) : void 0,
|
|
1930
|
+
resourceId
|
|
1911
1931
|
});
|
|
1912
1932
|
return c2.json(workflowRuns);
|
|
1913
1933
|
} catch (error) {
|
|
@@ -3315,7 +3335,12 @@ async function createHonoServer(mastra, options = {}) {
|
|
|
3315
3335
|
in: "path",
|
|
3316
3336
|
required: true,
|
|
3317
3337
|
schema: { type: "string" }
|
|
3318
|
-
}
|
|
3338
|
+
},
|
|
3339
|
+
{ name: "fromDate", in: "query", required: false, schema: { type: "string", format: "date-time" } },
|
|
3340
|
+
{ name: "toDate", in: "query", required: false, schema: { type: "string", format: "date-time" } },
|
|
3341
|
+
{ name: "limit", in: "query", required: false, schema: { type: "number" } },
|
|
3342
|
+
{ name: "offset", in: "query", required: false, schema: { type: "number" } },
|
|
3343
|
+
{ name: "resourceId", in: "query", required: false, schema: { type: "string" } }
|
|
3319
3344
|
],
|
|
3320
3345
|
responses: {
|
|
3321
3346
|
200: {
|
|
@@ -3598,7 +3623,12 @@ async function createHonoServer(mastra, options = {}) {
|
|
|
3598
3623
|
in: "path",
|
|
3599
3624
|
required: true,
|
|
3600
3625
|
schema: { type: "string" }
|
|
3601
|
-
}
|
|
3626
|
+
},
|
|
3627
|
+
{ name: "fromDate", in: "query", required: false, schema: { type: "string", format: "date-time" } },
|
|
3628
|
+
{ name: "toDate", in: "query", required: false, schema: { type: "string", format: "date-time" } },
|
|
3629
|
+
{ name: "limit", in: "query", required: false, schema: { type: "number" } },
|
|
3630
|
+
{ name: "offset", in: "query", required: false, schema: { type: "number" } },
|
|
3631
|
+
{ name: "resourceId", in: "query", required: false, schema: { type: "string" } }
|
|
3602
3632
|
],
|
|
3603
3633
|
responses: {
|
|
3604
3634
|
200: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/deployer",
|
|
3
|
-
"version": "0.3.2-alpha.
|
|
3
|
+
"version": "0.3.2-alpha.3",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -107,8 +107,8 @@
|
|
|
107
107
|
"rollup-plugin-node-externals": "^8.0.0",
|
|
108
108
|
"typescript-paths": "^1.5.1",
|
|
109
109
|
"zod": "^3.24.2",
|
|
110
|
-
"@mastra/core": "^0.9.2-alpha.
|
|
111
|
-
"@mastra/server": "^2.0.2-alpha.
|
|
110
|
+
"@mastra/core": "^0.9.2-alpha.3",
|
|
111
|
+
"@mastra/server": "^2.0.2-alpha.3"
|
|
112
112
|
},
|
|
113
113
|
"devDependencies": {
|
|
114
114
|
"@hono/node-server": "^1.13.8",
|