@mastra/tanstack-start 0.2.10-alpha.1 → 0.2.10-alpha.2
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/CHANGELOG.md +9 -0
- package/dist/index.cjs +69 -59
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +68 -57
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @mastra/tanstack-start
|
|
2
2
|
|
|
3
|
+
## 0.2.10-alpha.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`a211d09`](https://github.com/mastra-ai/mastra/commit/a211d09185dc65a746534914cf38b67f21ee9bac), [`4cbd63c`](https://github.com/mastra-ai/mastra/commit/4cbd63cfa7fd1ce8be4199ed01a20c709794fee1), [`05db566`](https://github.com/mastra-ai/mastra/commit/05db566fcbdcbf33d0bffca0c72ec30129e2e3ca), [`8124754`](https://github.com/mastra-ai/mastra/commit/8124754ae89fbc69f8136d1df4a91904d0f84c4e)]:
|
|
8
|
+
- @mastra/core@1.54.0-alpha.2
|
|
9
|
+
- @mastra/server@1.54.0-alpha.2
|
|
10
|
+
- @mastra/hono@1.5.11-alpha.2
|
|
11
|
+
|
|
3
12
|
## 0.2.10-alpha.1
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
package/dist/index.cjs
CHANGED
|
@@ -1,65 +1,75 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
let _mastra_hono = require("@mastra/hono");
|
|
3
|
+
let _mastra_server_a2a_store = require("@mastra/server/a2a/store");
|
|
4
|
+
let hono = require("hono");
|
|
5
|
+
//#region src/index.ts
|
|
6
|
+
/**
|
|
7
|
+
* Creates TanStack Start server route handlers for a Mastra instance.
|
|
8
|
+
*
|
|
9
|
+
* Mount this in a catch-all (splat) server route file such as:
|
|
10
|
+
* `src/routes/api/$.ts`
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* // src/routes/api/$.ts
|
|
15
|
+
* import { createFileRoute } from '@tanstack/react-router';
|
|
16
|
+
* import { createStartRouteHandler } from '@mastra/tanstack-start';
|
|
17
|
+
* import { mastra } from '../../mastra';
|
|
18
|
+
*
|
|
19
|
+
* export const Route = createFileRoute('/api/$')({
|
|
20
|
+
* server: {
|
|
21
|
+
* handlers: createStartRouteHandler({ mastra }),
|
|
22
|
+
* },
|
|
23
|
+
* });
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
8
26
|
function createStartRouteHandler(options) {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
OPTIONS: handler,
|
|
28
|
-
HEAD: handler
|
|
29
|
-
};
|
|
27
|
+
const { mastra, tools = {}, prefix = "/api" } = options;
|
|
28
|
+
let appPromise;
|
|
29
|
+
function getApp() {
|
|
30
|
+
if (!appPromise) appPromise = initApp(mastra, tools, prefix);
|
|
31
|
+
return appPromise;
|
|
32
|
+
}
|
|
33
|
+
const handler = async ({ request }) => {
|
|
34
|
+
return (await getApp()).fetch(request);
|
|
35
|
+
};
|
|
36
|
+
return {
|
|
37
|
+
GET: handler,
|
|
38
|
+
POST: handler,
|
|
39
|
+
PUT: handler,
|
|
40
|
+
DELETE: handler,
|
|
41
|
+
PATCH: handler,
|
|
42
|
+
OPTIONS: handler,
|
|
43
|
+
HEAD: handler
|
|
44
|
+
};
|
|
30
45
|
}
|
|
31
46
|
async function initApp(mastra, tools, prefix) {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
prefix,
|
|
57
|
-
mcpOptions: serverConfig?.mcpOptions
|
|
58
|
-
});
|
|
59
|
-
await honoServerAdapter.init();
|
|
60
|
-
return app;
|
|
47
|
+
const app = new hono.Hono();
|
|
48
|
+
const serverConfig = mastra.getServer();
|
|
49
|
+
const apiRoutes = serverConfig?.apiRoutes;
|
|
50
|
+
const customRouteAuthConfig = /* @__PURE__ */ new Map();
|
|
51
|
+
if (apiRoutes) for (const route of apiRoutes) {
|
|
52
|
+
const requiresAuth = route.requiresAuth !== false;
|
|
53
|
+
const routeKey = `${route.method}:${route.path}`;
|
|
54
|
+
customRouteAuthConfig.set(routeKey, requiresAuth);
|
|
55
|
+
}
|
|
56
|
+
await new _mastra_hono.MastraServer({
|
|
57
|
+
app,
|
|
58
|
+
mastra,
|
|
59
|
+
tools,
|
|
60
|
+
taskStore: new _mastra_server_a2a_store.InMemoryTaskStore(),
|
|
61
|
+
bodyLimitOptions: {
|
|
62
|
+
maxSize: serverConfig?.bodySizeLimit ?? 4.5 * 1024 * 1024,
|
|
63
|
+
onError: (_err) => ({ error: "Request body too large" })
|
|
64
|
+
},
|
|
65
|
+
customRouteAuthConfig,
|
|
66
|
+
customApiRoutes: apiRoutes,
|
|
67
|
+
prefix,
|
|
68
|
+
mcpOptions: serverConfig?.mcpOptions
|
|
69
|
+
}).init();
|
|
70
|
+
return app;
|
|
61
71
|
}
|
|
62
|
-
|
|
72
|
+
//#endregion
|
|
63
73
|
exports.createStartRouteHandler = createStartRouteHandler;
|
|
64
|
-
|
|
74
|
+
|
|
65
75
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"index.cjs","names":["Hono","MastraServer","InMemoryTaskStore"],"sources":["../src/index.ts"],"sourcesContent":["import type { ToolsInput } from '@mastra/core/agent';\nimport type { Mastra } from '@mastra/core/mastra';\nimport type { ApiRoute } from '@mastra/core/server';\nimport { MastraServer } from '@mastra/hono';\nimport type { HonoApp } from '@mastra/hono';\nimport { InMemoryTaskStore } from '@mastra/server/a2a/store';\nimport { Hono } from 'hono';\n\n/**\n * Context provided to each TanStack Start server route handler.\n */\nexport interface StartHandlerContext {\n request: Request;\n params: Record<string, string>;\n}\n\nexport interface StartRouteHandlerOptions {\n /**\n * The Mastra instance to serve.\n */\n mastra: Mastra;\n\n /**\n * Tools to register with the server.\n * @default {}\n */\n tools?: ToolsInput;\n\n /**\n * API route prefix. Should match the path where the catch-all route is mounted.\n * For example, if you mount at `src/routes/api/$.ts`, set this to `/api`.\n * @default '/api'\n */\n prefix?: string;\n}\n\n/**\n * A TanStack Start server route handler function.\n */\nexport type StartRouteHandler = (ctx: StartHandlerContext) => Response | Promise<Response>;\n\nexport interface StartRouteHandlers {\n GET: StartRouteHandler;\n POST: StartRouteHandler;\n PUT: StartRouteHandler;\n DELETE: StartRouteHandler;\n PATCH: StartRouteHandler;\n OPTIONS: StartRouteHandler;\n HEAD: StartRouteHandler;\n}\n\n/**\n * Creates TanStack Start server route handlers for a Mastra instance.\n *\n * Mount this in a catch-all (splat) server route file such as:\n * `src/routes/api/$.ts`\n *\n * @example\n * ```ts\n * // src/routes/api/$.ts\n * import { createFileRoute } from '@tanstack/react-router';\n * import { createStartRouteHandler } from '@mastra/tanstack-start';\n * import { mastra } from '../../mastra';\n *\n * export const Route = createFileRoute('/api/$')({\n * server: {\n * handlers: createStartRouteHandler({ mastra }),\n * },\n * });\n * ```\n */\nexport function createStartRouteHandler(options: StartRouteHandlerOptions): StartRouteHandlers {\n const { mastra, tools = {}, prefix = '/api' } = options;\n\n // Lazily initialize the Hono app so the module-level export works synchronously\n let appPromise: Promise<Hono> | undefined;\n\n function getApp(): Promise<Hono> {\n if (!appPromise) {\n appPromise = initApp(mastra, tools, prefix);\n }\n return appPromise;\n }\n\n const handler: StartRouteHandler = async ({ request }) => {\n const app = await getApp();\n return app.fetch(request);\n };\n\n return {\n GET: handler,\n POST: handler,\n PUT: handler,\n DELETE: handler,\n PATCH: handler,\n OPTIONS: handler,\n HEAD: handler,\n };\n}\n\nasync function initApp(mastra: Mastra, tools: ToolsInput, prefix: string): Promise<Hono> {\n const app = new Hono();\n\n const serverConfig = mastra.getServer();\n const apiRoutes: ApiRoute[] | undefined = serverConfig?.apiRoutes;\n\n // Store custom route auth configurations\n const customRouteAuthConfig = new Map<string, boolean>();\n if (apiRoutes) {\n for (const route of apiRoutes) {\n const requiresAuth = route.requiresAuth !== false;\n const routeKey = `${route.method}:${route.path}`;\n customRouteAuthConfig.set(routeKey, requiresAuth);\n }\n }\n\n const taskStore = new InMemoryTaskStore();\n\n const bodySizeLimit = serverConfig?.bodySizeLimit ?? 4.5 * 1024 * 1024;\n\n // Create the MastraServer adapter\n const honoServerAdapter = new MastraServer({\n app: app as unknown as HonoApp,\n mastra,\n tools,\n taskStore,\n bodyLimitOptions: {\n maxSize: bodySizeLimit,\n onError: (_err: unknown) => ({ error: 'Request body too large' }),\n },\n customRouteAuthConfig,\n customApiRoutes: apiRoutes,\n prefix,\n mcpOptions: serverConfig?.mcpOptions,\n });\n\n // Initialize: registers context middleware, auth, routes, etc.\n await honoServerAdapter.init();\n\n return app;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAuEA,SAAgB,wBAAwB,SAAuD;CAC7F,MAAM,EAAE,QAAQ,QAAQ,CAAC,GAAG,SAAS,WAAW;CAGhD,IAAI;CAEJ,SAAS,SAAwB;EAC/B,IAAI,CAAC,YACH,aAAa,QAAQ,QAAQ,OAAO,MAAM;EAE5C,OAAO;CACT;CAEA,MAAM,UAA6B,OAAO,EAAE,cAAc;EAExD,QAAO,MADW,OAAO,EAAA,CACd,MAAM,OAAO;CAC1B;CAEA,OAAO;EACL,KAAK;EACL,MAAM;EACN,KAAK;EACL,QAAQ;EACR,OAAO;EACP,SAAS;EACT,MAAM;CACR;AACF;AAEA,eAAe,QAAQ,QAAgB,OAAmB,QAA+B;CACvF,MAAM,MAAM,IAAIA,KAAAA,KAAK;CAErB,MAAM,eAAe,OAAO,UAAU;CACtC,MAAM,YAAoC,cAAc;CAGxD,MAAM,wCAAwB,IAAI,IAAqB;CACvD,IAAI,WACF,KAAK,MAAM,SAAS,WAAW;EAC7B,MAAM,eAAe,MAAM,iBAAiB;EAC5C,MAAM,WAAW,GAAG,MAAM,OAAO,GAAG,MAAM;EAC1C,sBAAsB,IAAI,UAAU,YAAY;CAClD;CAwBF,MAAM,IAhBwBC,aAAAA,aAAa;EACpC;EACL;EACA;EACA,WAAA,IAToBC,yBAAAA,kBASZ;EACR,kBAAkB;GAChB,SATkB,cAAc,iBAAiB,MAAM,OAAO;GAU9D,UAAU,UAAmB,EAAE,OAAO,yBAAyB;EACjE;EACA;EACA,iBAAiB;EACjB;EACA,YAAY,cAAc;CAC5B,CAGsB,CAAC,CAAC,KAAK;CAE7B,OAAO;AACT"}
|
package/dist/index.js
CHANGED
|
@@ -1,63 +1,74 @@
|
|
|
1
|
-
import { MastraServer } from
|
|
2
|
-
import { InMemoryTaskStore } from
|
|
3
|
-
import { Hono } from
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { MastraServer } from "@mastra/hono";
|
|
2
|
+
import { InMemoryTaskStore } from "@mastra/server/a2a/store";
|
|
3
|
+
import { Hono } from "hono";
|
|
4
|
+
//#region src/index.ts
|
|
5
|
+
/**
|
|
6
|
+
* Creates TanStack Start server route handlers for a Mastra instance.
|
|
7
|
+
*
|
|
8
|
+
* Mount this in a catch-all (splat) server route file such as:
|
|
9
|
+
* `src/routes/api/$.ts`
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* // src/routes/api/$.ts
|
|
14
|
+
* import { createFileRoute } from '@tanstack/react-router';
|
|
15
|
+
* import { createStartRouteHandler } from '@mastra/tanstack-start';
|
|
16
|
+
* import { mastra } from '../../mastra';
|
|
17
|
+
*
|
|
18
|
+
* export const Route = createFileRoute('/api/$')({
|
|
19
|
+
* server: {
|
|
20
|
+
* handlers: createStartRouteHandler({ mastra }),
|
|
21
|
+
* },
|
|
22
|
+
* });
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
6
25
|
function createStartRouteHandler(options) {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
OPTIONS: handler,
|
|
26
|
-
HEAD: handler
|
|
27
|
-
};
|
|
26
|
+
const { mastra, tools = {}, prefix = "/api" } = options;
|
|
27
|
+
let appPromise;
|
|
28
|
+
function getApp() {
|
|
29
|
+
if (!appPromise) appPromise = initApp(mastra, tools, prefix);
|
|
30
|
+
return appPromise;
|
|
31
|
+
}
|
|
32
|
+
const handler = async ({ request }) => {
|
|
33
|
+
return (await getApp()).fetch(request);
|
|
34
|
+
};
|
|
35
|
+
return {
|
|
36
|
+
GET: handler,
|
|
37
|
+
POST: handler,
|
|
38
|
+
PUT: handler,
|
|
39
|
+
DELETE: handler,
|
|
40
|
+
PATCH: handler,
|
|
41
|
+
OPTIONS: handler,
|
|
42
|
+
HEAD: handler
|
|
43
|
+
};
|
|
28
44
|
}
|
|
29
45
|
async function initApp(mastra, tools, prefix) {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
prefix,
|
|
55
|
-
mcpOptions: serverConfig?.mcpOptions
|
|
56
|
-
});
|
|
57
|
-
await honoServerAdapter.init();
|
|
58
|
-
return app;
|
|
46
|
+
const app = new Hono();
|
|
47
|
+
const serverConfig = mastra.getServer();
|
|
48
|
+
const apiRoutes = serverConfig?.apiRoutes;
|
|
49
|
+
const customRouteAuthConfig = /* @__PURE__ */ new Map();
|
|
50
|
+
if (apiRoutes) for (const route of apiRoutes) {
|
|
51
|
+
const requiresAuth = route.requiresAuth !== false;
|
|
52
|
+
const routeKey = `${route.method}:${route.path}`;
|
|
53
|
+
customRouteAuthConfig.set(routeKey, requiresAuth);
|
|
54
|
+
}
|
|
55
|
+
await new MastraServer({
|
|
56
|
+
app,
|
|
57
|
+
mastra,
|
|
58
|
+
tools,
|
|
59
|
+
taskStore: new InMemoryTaskStore(),
|
|
60
|
+
bodyLimitOptions: {
|
|
61
|
+
maxSize: serverConfig?.bodySizeLimit ?? 4.5 * 1024 * 1024,
|
|
62
|
+
onError: (_err) => ({ error: "Request body too large" })
|
|
63
|
+
},
|
|
64
|
+
customRouteAuthConfig,
|
|
65
|
+
customApiRoutes: apiRoutes,
|
|
66
|
+
prefix,
|
|
67
|
+
mcpOptions: serverConfig?.mcpOptions
|
|
68
|
+
}).init();
|
|
69
|
+
return app;
|
|
59
70
|
}
|
|
60
|
-
|
|
71
|
+
//#endregion
|
|
61
72
|
export { createStartRouteHandler };
|
|
62
|
-
|
|
73
|
+
|
|
63
74
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../src/index.ts"],"sourcesContent":["import type { ToolsInput } from '@mastra/core/agent';\nimport type { Mastra } from '@mastra/core/mastra';\nimport type { ApiRoute } from '@mastra/core/server';\nimport { MastraServer } from '@mastra/hono';\nimport type { HonoApp } from '@mastra/hono';\nimport { InMemoryTaskStore } from '@mastra/server/a2a/store';\nimport { Hono } from 'hono';\n\n/**\n * Context provided to each TanStack Start server route handler.\n */\nexport interface StartHandlerContext {\n request: Request;\n params: Record<string, string>;\n}\n\nexport interface StartRouteHandlerOptions {\n /**\n * The Mastra instance to serve.\n */\n mastra: Mastra;\n\n /**\n * Tools to register with the server.\n * @default {}\n */\n tools?: ToolsInput;\n\n /**\n * API route prefix. Should match the path where the catch-all route is mounted.\n * For example, if you mount at `src/routes/api/$.ts`, set this to `/api`.\n * @default '/api'\n */\n prefix?: string;\n}\n\n/**\n * A TanStack Start server route handler function.\n */\nexport type StartRouteHandler = (ctx: StartHandlerContext) => Response | Promise<Response>;\n\nexport interface StartRouteHandlers {\n GET: StartRouteHandler;\n POST: StartRouteHandler;\n PUT: StartRouteHandler;\n DELETE: StartRouteHandler;\n PATCH: StartRouteHandler;\n OPTIONS: StartRouteHandler;\n HEAD: StartRouteHandler;\n}\n\n/**\n * Creates TanStack Start server route handlers for a Mastra instance.\n *\n * Mount this in a catch-all (splat) server route file such as:\n * `src/routes/api/$.ts`\n *\n * @example\n * ```ts\n * // src/routes/api/$.ts\n * import { createFileRoute } from '@tanstack/react-router';\n * import { createStartRouteHandler } from '@mastra/tanstack-start';\n * import { mastra } from '../../mastra';\n *\n * export const Route = createFileRoute('/api/$')({\n * server: {\n * handlers: createStartRouteHandler({ mastra }),\n * },\n * });\n * ```\n */\nexport function createStartRouteHandler(options: StartRouteHandlerOptions): StartRouteHandlers {\n const { mastra, tools = {}, prefix = '/api' } = options;\n\n // Lazily initialize the Hono app so the module-level export works synchronously\n let appPromise: Promise<Hono> | undefined;\n\n function getApp(): Promise<Hono> {\n if (!appPromise) {\n appPromise = initApp(mastra, tools, prefix);\n }\n return appPromise;\n }\n\n const handler: StartRouteHandler = async ({ request }) => {\n const app = await getApp();\n return app.fetch(request);\n };\n\n return {\n GET: handler,\n POST: handler,\n PUT: handler,\n DELETE: handler,\n PATCH: handler,\n OPTIONS: handler,\n HEAD: handler,\n };\n}\n\nasync function initApp(mastra: Mastra, tools: ToolsInput, prefix: string): Promise<Hono> {\n const app = new Hono();\n\n const serverConfig = mastra.getServer();\n const apiRoutes: ApiRoute[] | undefined = serverConfig?.apiRoutes;\n\n // Store custom route auth configurations\n const customRouteAuthConfig = new Map<string, boolean>();\n if (apiRoutes) {\n for (const route of apiRoutes) {\n const requiresAuth = route.requiresAuth !== false;\n const routeKey = `${route.method}:${route.path}`;\n customRouteAuthConfig.set(routeKey, requiresAuth);\n }\n }\n\n const taskStore = new InMemoryTaskStore();\n\n const bodySizeLimit = serverConfig?.bodySizeLimit ?? 4.5 * 1024 * 1024;\n\n // Create the MastraServer adapter\n const honoServerAdapter = new MastraServer({\n app: app as unknown as HonoApp,\n mastra,\n tools,\n taskStore,\n bodyLimitOptions: {\n maxSize: bodySizeLimit,\n onError: (_err: unknown) => ({ error: 'Request body too large' }),\n },\n customRouteAuthConfig,\n customApiRoutes: apiRoutes,\n prefix,\n mcpOptions: serverConfig?.mcpOptions,\n });\n\n // Initialize: registers context middleware, auth, routes, etc.\n await honoServerAdapter.init();\n\n return app;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAuEA,SAAgB,wBAAwB,SAAuD;CAC7F,MAAM,EAAE,QAAQ,QAAQ,CAAC,GAAG,SAAS,WAAW;CAGhD,IAAI;CAEJ,SAAS,SAAwB;EAC/B,IAAI,CAAC,YACH,aAAa,QAAQ,QAAQ,OAAO,MAAM;EAE5C,OAAO;CACT;CAEA,MAAM,UAA6B,OAAO,EAAE,cAAc;EAExD,QAAO,MADW,OAAO,EAAA,CACd,MAAM,OAAO;CAC1B;CAEA,OAAO;EACL,KAAK;EACL,MAAM;EACN,KAAK;EACL,QAAQ;EACR,OAAO;EACP,SAAS;EACT,MAAM;CACR;AACF;AAEA,eAAe,QAAQ,QAAgB,OAAmB,QAA+B;CACvF,MAAM,MAAM,IAAI,KAAK;CAErB,MAAM,eAAe,OAAO,UAAU;CACtC,MAAM,YAAoC,cAAc;CAGxD,MAAM,wCAAwB,IAAI,IAAqB;CACvD,IAAI,WACF,KAAK,MAAM,SAAS,WAAW;EAC7B,MAAM,eAAe,MAAM,iBAAiB;EAC5C,MAAM,WAAW,GAAG,MAAM,OAAO,GAAG,MAAM;EAC1C,sBAAsB,IAAI,UAAU,YAAY;CAClD;CAwBF,MAAM,IAhBwB,aAAa;EACpC;EACL;EACA;EACA,WAAA,IAToB,kBASZ;EACR,kBAAkB;GAChB,SATkB,cAAc,iBAAiB,MAAM,OAAO;GAU9D,UAAU,UAAmB,EAAE,OAAO,yBAAyB;EACjE;EACA;EACA,iBAAiB;EACjB;EACA,YAAY,cAAc;CAC5B,CAGsB,CAAC,CAAC,KAAK;CAE7B,OAAO;AACT"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/tanstack-start",
|
|
3
|
-
"version": "0.2.10-alpha.
|
|
3
|
+
"version": "0.2.10-alpha.2",
|
|
4
4
|
"description": "Mastra TanStack Start server adapter — drop your Mastra instance into a TanStack Start app",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -20,19 +20,19 @@
|
|
|
20
20
|
},
|
|
21
21
|
"license": "Apache-2.0",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@mastra/server": "1.54.0-alpha.
|
|
24
|
-
"@mastra/hono": "1.5.11-alpha.
|
|
23
|
+
"@mastra/server": "1.54.0-alpha.2",
|
|
24
|
+
"@mastra/hono": "1.5.11-alpha.2"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@types/node": "22.20.1",
|
|
28
28
|
"eslint": "^10.7.0",
|
|
29
29
|
"hono": "^4.12.8",
|
|
30
|
-
"
|
|
30
|
+
"tsdown": "0.22.9",
|
|
31
31
|
"typescript": "^6.0.3",
|
|
32
32
|
"vitest": "4.1.10",
|
|
33
33
|
"@internal/lint": "0.0.117",
|
|
34
34
|
"@internal/types-builder": "0.0.92",
|
|
35
|
-
"@mastra/core": "1.54.0-alpha.
|
|
35
|
+
"@mastra/core": "1.54.0-alpha.2"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"@mastra/core": ">=1.50.0-0 <2.0.0-0",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"url": "https://github.com/mastra-ai/mastra/issues"
|
|
56
56
|
},
|
|
57
57
|
"scripts": {
|
|
58
|
-
"build": "
|
|
58
|
+
"build": "tsdown --silent --config tsdown.config.ts",
|
|
59
59
|
"build:watch": "pnpm build --watch",
|
|
60
60
|
"test": "vitest run",
|
|
61
61
|
"lint": "oxlint . && eslint .",
|