@mastra/deployer 0.3.1 → 0.3.2-alpha.1

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.
@@ -1365,7 +1365,7 @@ async function getToolsHandler(c2) {
1365
1365
  const result = await tools.getToolsHandler({
1366
1366
  tools: tools$1
1367
1367
  });
1368
- return c2.json(result);
1368
+ return c2.json(result || {});
1369
1369
  } catch (error) {
1370
1370
  return handleError(error, "Error getting tools");
1371
1371
  }
@@ -1389,12 +1389,14 @@ function executeToolHandler(tools$1) {
1389
1389
  const mastra = c2.get("mastra");
1390
1390
  const runtimeContext = c2.get("runtimeContext");
1391
1391
  const toolId = decodeURIComponent(c2.req.param("toolId"));
1392
+ const runId = c2.req.query("runId");
1392
1393
  const { data } = await c2.req.json();
1393
1394
  const result = await tools.executeToolHandler(tools$1)({
1394
1395
  mastra,
1395
1396
  toolId,
1396
1397
  data,
1397
- runtimeContext
1398
+ runtimeContext,
1399
+ runId
1398
1400
  });
1399
1401
  return c2.json(result);
1400
1402
  } catch (error) {
@@ -4017,6 +4019,12 @@ async function createHonoServer(mastra, options = {}) {
4017
4019
  in: "path",
4018
4020
  required: true,
4019
4021
  schema: { type: "string" }
4022
+ },
4023
+ {
4024
+ name: "runId",
4025
+ in: "query",
4026
+ required: false,
4027
+ schema: { type: "string" }
4020
4028
  }
4021
4029
  ],
4022
4030
  requestBody: {
@@ -1359,7 +1359,7 @@ async function getToolsHandler(c2) {
1359
1359
  const result = await getToolsHandler$1({
1360
1360
  tools
1361
1361
  });
1362
- return c2.json(result);
1362
+ return c2.json(result || {});
1363
1363
  } catch (error) {
1364
1364
  return handleError(error, "Error getting tools");
1365
1365
  }
@@ -1383,12 +1383,14 @@ function executeToolHandler(tools) {
1383
1383
  const mastra = c2.get("mastra");
1384
1384
  const runtimeContext = c2.get("runtimeContext");
1385
1385
  const toolId = decodeURIComponent(c2.req.param("toolId"));
1386
+ const runId = c2.req.query("runId");
1386
1387
  const { data } = await c2.req.json();
1387
1388
  const result = await executeToolHandler$1(tools)({
1388
1389
  mastra,
1389
1390
  toolId,
1390
1391
  data,
1391
- runtimeContext
1392
+ runtimeContext,
1393
+ runId
1392
1394
  });
1393
1395
  return c2.json(result);
1394
1396
  } catch (error) {
@@ -4011,6 +4013,12 @@ async function createHonoServer(mastra, options = {}) {
4011
4013
  in: "path",
4012
4014
  required: true,
4013
4015
  schema: { type: "string" }
4016
+ },
4017
+ {
4018
+ name: "runId",
4019
+ in: "query",
4020
+ required: false,
4021
+ schema: { type: "string" }
4014
4022
  }
4015
4023
  ],
4016
4024
  requestBody: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/deployer",
3
- "version": "0.3.1",
3
+ "version": "0.3.2-alpha.1",
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/server": "^2.0.1",
111
- "@mastra/core": "^0.9.1"
110
+ "@mastra/core": "^0.9.2-alpha.1",
111
+ "@mastra/server": "^2.0.2-alpha.1"
112
112
  },
113
113
  "devDependencies": {
114
114
  "@hono/node-server": "^1.13.8",