@mastra/deployer-vercel 0.11.6 → 0.11.7
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/index.cjs +3 -2
- package/dist/index.js +3 -2
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -24,7 +24,8 @@ var VercelDeployer = class extends deployer.Deployer {
|
|
|
24
24
|
return `
|
|
25
25
|
import { handle } from 'hono/vercel'
|
|
26
26
|
import { mastra } from '#mastra';
|
|
27
|
-
import { createHonoServer } from '#server';
|
|
27
|
+
import { createHonoServer, getToolExports } from '#server';
|
|
28
|
+
import { tools } from '#tools';
|
|
28
29
|
import { evaluate } from '@mastra/core/eval';
|
|
29
30
|
import { AvailableHooks, registerHook } from '@mastra/core/hooks';
|
|
30
31
|
import { TABLE_EVALS } from '@mastra/core/storage';
|
|
@@ -68,7 +69,7 @@ registerHook(AvailableHooks.ON_EVALUATION, async traceObject => {
|
|
|
68
69
|
}
|
|
69
70
|
});
|
|
70
71
|
|
|
71
|
-
const app = await createHonoServer(mastra);
|
|
72
|
+
const app = await createHonoServer(mastra, { tools: getToolExports(tools) });
|
|
72
73
|
|
|
73
74
|
export const GET = handle(app);
|
|
74
75
|
export const POST = handle(app);
|
package/dist/index.js
CHANGED
|
@@ -18,7 +18,8 @@ var VercelDeployer = class extends Deployer {
|
|
|
18
18
|
return `
|
|
19
19
|
import { handle } from 'hono/vercel'
|
|
20
20
|
import { mastra } from '#mastra';
|
|
21
|
-
import { createHonoServer } from '#server';
|
|
21
|
+
import { createHonoServer, getToolExports } from '#server';
|
|
22
|
+
import { tools } from '#tools';
|
|
22
23
|
import { evaluate } from '@mastra/core/eval';
|
|
23
24
|
import { AvailableHooks, registerHook } from '@mastra/core/hooks';
|
|
24
25
|
import { TABLE_EVALS } from '@mastra/core/storage';
|
|
@@ -62,7 +63,7 @@ registerHook(AvailableHooks.ON_EVALUATION, async traceObject => {
|
|
|
62
63
|
}
|
|
63
64
|
});
|
|
64
65
|
|
|
65
|
-
const app = await createHonoServer(mastra);
|
|
66
|
+
const app = await createHonoServer(mastra, { tools: getToolExports(tools) });
|
|
66
67
|
|
|
67
68
|
export const GET = handle(app);
|
|
68
69
|
export const POST = handle(app);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/deployer-vercel",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.7",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@rollup/plugin-virtual": "^3.0.2",
|
|
29
29
|
"fs-extra": "^11.3.0",
|
|
30
|
-
"@mastra/deployer": "^0.
|
|
30
|
+
"@mastra/deployer": "^0.11.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@microsoft/api-extractor": "^7.52.8",
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"tsup": "^8.5.0",
|
|
38
38
|
"typescript": "^5.8.3",
|
|
39
39
|
"vitest": "^3.2.4",
|
|
40
|
-
"@internal/lint": "0.0.
|
|
41
|
-
"@mastra/core": "0.
|
|
40
|
+
"@internal/lint": "0.0.21",
|
|
41
|
+
"@mastra/core": "0.11.0"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"@mastra/core": "^0.10.1-alpha.0"
|