@mastra/deployer 0.3.2-alpha.5 → 0.3.2-alpha.6
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 +19 -14
- package/dist/server/index.js +19 -14
- package/package.json +3 -3
package/dist/server/index.cjs
CHANGED
|
@@ -2052,20 +2052,25 @@ var html2 = `
|
|
|
2052
2052
|
async function createHonoServer(mastra, options = {}) {
|
|
2053
2053
|
const app = new hono.Hono();
|
|
2054
2054
|
const server = mastra.getServer();
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
mastraToolsPaths
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2055
|
+
let tools = {};
|
|
2056
|
+
try {
|
|
2057
|
+
const toolsPath = "./tools.mjs";
|
|
2058
|
+
const mastraToolsPaths = (await import(toolsPath)).tools;
|
|
2059
|
+
const toolImports = mastraToolsPaths ? await Promise.all(
|
|
2060
|
+
// @ts-ignore
|
|
2061
|
+
mastraToolsPaths.map(async (toolPath) => {
|
|
2062
|
+
return import(toolPath);
|
|
2063
|
+
})
|
|
2064
|
+
) : [];
|
|
2065
|
+
tools = toolImports.reduce((acc, toolModule) => {
|
|
2066
|
+
Object.entries(toolModule).forEach(([key, tool]) => {
|
|
2067
|
+
acc[key] = tool;
|
|
2068
|
+
});
|
|
2069
|
+
return acc;
|
|
2070
|
+
}, {});
|
|
2071
|
+
} catch {
|
|
2072
|
+
console.error("Failed to import tools");
|
|
2073
|
+
}
|
|
2069
2074
|
app.use("*", async function setTelemetryInfo(c2, next) {
|
|
2070
2075
|
const requestId = c2.req.header("x-request-id") ?? crypto.randomUUID();
|
|
2071
2076
|
const span = core.Telemetry.getActiveSpan();
|
package/dist/server/index.js
CHANGED
|
@@ -2046,20 +2046,25 @@ var html2 = `
|
|
|
2046
2046
|
async function createHonoServer(mastra, options = {}) {
|
|
2047
2047
|
const app = new Hono();
|
|
2048
2048
|
const server = mastra.getServer();
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
mastraToolsPaths
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2049
|
+
let tools = {};
|
|
2050
|
+
try {
|
|
2051
|
+
const toolsPath = "./tools.mjs";
|
|
2052
|
+
const mastraToolsPaths = (await import(toolsPath)).tools;
|
|
2053
|
+
const toolImports = mastraToolsPaths ? await Promise.all(
|
|
2054
|
+
// @ts-ignore
|
|
2055
|
+
mastraToolsPaths.map(async (toolPath) => {
|
|
2056
|
+
return import(toolPath);
|
|
2057
|
+
})
|
|
2058
|
+
) : [];
|
|
2059
|
+
tools = toolImports.reduce((acc, toolModule) => {
|
|
2060
|
+
Object.entries(toolModule).forEach(([key, tool]) => {
|
|
2061
|
+
acc[key] = tool;
|
|
2062
|
+
});
|
|
2063
|
+
return acc;
|
|
2064
|
+
}, {});
|
|
2065
|
+
} catch {
|
|
2066
|
+
console.error("Failed to import tools");
|
|
2067
|
+
}
|
|
2063
2068
|
app.use("*", async function setTelemetryInfo(c2, next) {
|
|
2064
2069
|
const requestId = c2.req.header("x-request-id") ?? randomUUID();
|
|
2065
2070
|
const span = Telemetry.getActiveSpan();
|
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.6",
|
|
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/
|
|
111
|
-
"@mastra/
|
|
110
|
+
"@mastra/core": "^0.9.2-alpha.6",
|
|
111
|
+
"@mastra/server": "^2.0.2-alpha.6"
|
|
112
112
|
},
|
|
113
113
|
"devDependencies": {
|
|
114
114
|
"@hono/node-server": "^1.13.8",
|