@mastra/deployer 0.2.6-alpha.2 → 0.2.6-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 +4 -8
- package/dist/server/index.js +4 -8
- package/package.json +3 -3
package/dist/server/index.cjs
CHANGED
|
@@ -897,13 +897,11 @@ async function generateHandler(c2) {
|
|
|
897
897
|
try {
|
|
898
898
|
const mastra = c2.get("mastra");
|
|
899
899
|
const agentId = c2.req.param("agentId");
|
|
900
|
-
const
|
|
901
|
-
const finalResourceId = resourceId ?? resourceid;
|
|
900
|
+
const body = await c2.req.json();
|
|
902
901
|
const result = await agents.generateHandler({
|
|
903
902
|
mastra,
|
|
904
903
|
agentId,
|
|
905
|
-
|
|
906
|
-
...body
|
|
904
|
+
body
|
|
907
905
|
});
|
|
908
906
|
return c2.json(result);
|
|
909
907
|
} catch (error) {
|
|
@@ -914,13 +912,11 @@ async function streamGenerateHandler(c2) {
|
|
|
914
912
|
try {
|
|
915
913
|
const mastra = c2.get("mastra");
|
|
916
914
|
const agentId = c2.req.param("agentId");
|
|
917
|
-
const
|
|
918
|
-
const finalResourceId = resourceId ?? resourceid;
|
|
915
|
+
const body = await c2.req.json();
|
|
919
916
|
const streamResponse = await agents.streamGenerateHandler({
|
|
920
917
|
mastra,
|
|
921
918
|
agentId,
|
|
922
|
-
|
|
923
|
-
...body
|
|
919
|
+
body
|
|
924
920
|
});
|
|
925
921
|
return streamResponse;
|
|
926
922
|
} catch (error) {
|
package/dist/server/index.js
CHANGED
|
@@ -891,13 +891,11 @@ async function generateHandler(c2) {
|
|
|
891
891
|
try {
|
|
892
892
|
const mastra = c2.get("mastra");
|
|
893
893
|
const agentId = c2.req.param("agentId");
|
|
894
|
-
const
|
|
895
|
-
const finalResourceId = resourceId ?? resourceid;
|
|
894
|
+
const body = await c2.req.json();
|
|
896
895
|
const result = await generateHandler$2({
|
|
897
896
|
mastra,
|
|
898
897
|
agentId,
|
|
899
|
-
|
|
900
|
-
...body
|
|
898
|
+
body
|
|
901
899
|
});
|
|
902
900
|
return c2.json(result);
|
|
903
901
|
} catch (error) {
|
|
@@ -908,13 +906,11 @@ async function streamGenerateHandler(c2) {
|
|
|
908
906
|
try {
|
|
909
907
|
const mastra = c2.get("mastra");
|
|
910
908
|
const agentId = c2.req.param("agentId");
|
|
911
|
-
const
|
|
912
|
-
const finalResourceId = resourceId ?? resourceid;
|
|
909
|
+
const body = await c2.req.json();
|
|
913
910
|
const streamResponse = await streamGenerateHandler$2({
|
|
914
911
|
mastra,
|
|
915
912
|
agentId,
|
|
916
|
-
|
|
917
|
-
...body
|
|
913
|
+
body
|
|
918
914
|
});
|
|
919
915
|
return streamResponse;
|
|
920
916
|
} catch (error) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/deployer",
|
|
3
|
-
"version": "0.2.6-alpha.
|
|
3
|
+
"version": "0.2.6-alpha.3",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -95,8 +95,8 @@
|
|
|
95
95
|
"rollup-plugin-node-externals": "^8.0.0",
|
|
96
96
|
"typescript-paths": "^1.5.1",
|
|
97
97
|
"zod": "^3.24.2",
|
|
98
|
-
"@mastra/
|
|
99
|
-
"@mastra/
|
|
98
|
+
"@mastra/core": "^0.8.0-alpha.2",
|
|
99
|
+
"@mastra/server": "^0.0.1-alpha.0"
|
|
100
100
|
},
|
|
101
101
|
"devDependencies": {
|
|
102
102
|
"@hono/node-server": "^1.13.8",
|