@mastra/server 0.10.6-alpha.1 → 0.10.6-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.
@@ -239,11 +239,18 @@ async function streamGenerateHandler({
239
239
  resourceId: finalResourceId,
240
240
  runtimeContext: finalRuntimeContext
241
241
  });
242
- const streamResponse = rest.output ? streamResult.toTextStreamResponse() : streamResult.toDataStreamResponse({
242
+ const streamResponse = rest.output ? streamResult.toTextStreamResponse({
243
+ headers: {
244
+ "Transfer-Encoding": "chunked"
245
+ }
246
+ }) : streamResult.toDataStreamResponse({
243
247
  sendUsage: true,
244
248
  sendReasoning: true,
245
249
  getErrorMessage: (error) => {
246
250
  return `An error occurred while processing your request. ${error instanceof Error ? error.message : JSON.stringify(error)}`;
251
+ },
252
+ headers: {
253
+ "Transfer-Encoding": "chunked"
247
254
  }
248
255
  });
249
256
  return streamResponse;
@@ -241,11 +241,18 @@ async function streamGenerateHandler({
241
241
  resourceId: finalResourceId,
242
242
  runtimeContext: finalRuntimeContext
243
243
  });
244
- const streamResponse = rest.output ? streamResult.toTextStreamResponse() : streamResult.toDataStreamResponse({
244
+ const streamResponse = rest.output ? streamResult.toTextStreamResponse({
245
+ headers: {
246
+ "Transfer-Encoding": "chunked"
247
+ }
248
+ }) : streamResult.toDataStreamResponse({
245
249
  sendUsage: true,
246
250
  sendReasoning: true,
247
251
  getErrorMessage: (error) => {
248
252
  return `An error occurred while processing your request. ${error instanceof Error ? error.message : JSON.stringify(error)}`;
253
+ },
254
+ headers: {
255
+ "Transfer-Encoding": "chunked"
249
256
  }
250
257
  });
251
258
  return streamResponse;
@@ -1,30 +1,30 @@
1
1
  'use strict';
2
2
 
3
- var chunk42YJ2YVD_cjs = require('../../chunk-42YJ2YVD.cjs');
3
+ var chunkC75ZRJKD_cjs = require('../../chunk-C75ZRJKD.cjs');
4
4
 
5
5
 
6
6
 
7
7
  Object.defineProperty(exports, "generateHandler", {
8
8
  enumerable: true,
9
- get: function () { return chunk42YJ2YVD_cjs.generateHandler; }
9
+ get: function () { return chunkC75ZRJKD_cjs.generateHandler; }
10
10
  });
11
11
  Object.defineProperty(exports, "getAgentByIdHandler", {
12
12
  enumerable: true,
13
- get: function () { return chunk42YJ2YVD_cjs.getAgentByIdHandler; }
13
+ get: function () { return chunkC75ZRJKD_cjs.getAgentByIdHandler; }
14
14
  });
15
15
  Object.defineProperty(exports, "getAgentsHandler", {
16
16
  enumerable: true,
17
- get: function () { return chunk42YJ2YVD_cjs.getAgentsHandler; }
17
+ get: function () { return chunkC75ZRJKD_cjs.getAgentsHandler; }
18
18
  });
19
19
  Object.defineProperty(exports, "getEvalsByAgentIdHandler", {
20
20
  enumerable: true,
21
- get: function () { return chunk42YJ2YVD_cjs.getEvalsByAgentIdHandler; }
21
+ get: function () { return chunkC75ZRJKD_cjs.getEvalsByAgentIdHandler; }
22
22
  });
23
23
  Object.defineProperty(exports, "getLiveEvalsByAgentIdHandler", {
24
24
  enumerable: true,
25
- get: function () { return chunk42YJ2YVD_cjs.getLiveEvalsByAgentIdHandler; }
25
+ get: function () { return chunkC75ZRJKD_cjs.getLiveEvalsByAgentIdHandler; }
26
26
  });
27
27
  Object.defineProperty(exports, "streamGenerateHandler", {
28
28
  enumerable: true,
29
- get: function () { return chunk42YJ2YVD_cjs.streamGenerateHandler; }
29
+ get: function () { return chunkC75ZRJKD_cjs.streamGenerateHandler; }
30
30
  });
@@ -1 +1 @@
1
- export { generateHandler, getAgentByIdHandler, getAgentsHandler, getEvalsByAgentIdHandler, getLiveEvalsByAgentIdHandler, streamGenerateHandler } from '../../chunk-O2YAAFY3.js';
1
+ export { generateHandler, getAgentByIdHandler, getAgentsHandler, getEvalsByAgentIdHandler, getLiveEvalsByAgentIdHandler, streamGenerateHandler } from '../../chunk-4O23XCE5.js';
@@ -7,7 +7,7 @@ var chunkBNEY4P4P_cjs = require('../chunk-BNEY4P4P.cjs');
7
7
  var chunkCMMOIUFC_cjs = require('../chunk-CMMOIUFC.cjs');
8
8
  var chunkFRXZL32L_cjs = require('../chunk-FRXZL32L.cjs');
9
9
  var chunkSDPGVWQJ_cjs = require('../chunk-SDPGVWQJ.cjs');
10
- var chunk42YJ2YVD_cjs = require('../chunk-42YJ2YVD.cjs');
10
+ var chunkC75ZRJKD_cjs = require('../chunk-C75ZRJKD.cjs');
11
11
  var chunkWE32JG64_cjs = require('../chunk-WE32JG64.cjs');
12
12
  var chunkIMBY5XUG_cjs = require('../chunk-IMBY5XUG.cjs');
13
13
  var chunk6TJSHFCJ_cjs = require('../chunk-6TJSHFCJ.cjs');
@@ -44,7 +44,7 @@ Object.defineProperty(exports, "a2a", {
44
44
  });
45
45
  Object.defineProperty(exports, "agents", {
46
46
  enumerable: true,
47
- get: function () { return chunk42YJ2YVD_cjs.agents_exports; }
47
+ get: function () { return chunkC75ZRJKD_cjs.agents_exports; }
48
48
  });
49
49
  Object.defineProperty(exports, "legacyWorkflows", {
50
50
  enumerable: true,
@@ -5,7 +5,7 @@ export { vector_exports as vector } from '../chunk-55DOQLP6.js';
5
5
  export { voice_exports as voice } from '../chunk-CP55EVBK.js';
6
6
  export { workflows_exports as workflows } from '../chunk-JKTNRUKY.js';
7
7
  export { a2a_exports as a2a } from '../chunk-GHC4YV6R.js';
8
- export { agents_exports as agents } from '../chunk-O2YAAFY3.js';
8
+ export { agents_exports as agents } from '../chunk-4O23XCE5.js';
9
9
  export { legacyWorkflows_exports as legacyWorkflows } from '../chunk-CLYX4KLH.js';
10
10
  export { logs_exports as logs } from '../chunk-QLG2PFHE.js';
11
11
  export { memory_exports as memory } from '../chunk-I7KJZNX5.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/server",
3
- "version": "0.10.6-alpha.1",
3
+ "version": "0.10.6-alpha.2",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "files": [
@@ -60,7 +60,7 @@
60
60
  "zod": "^3.25.57",
61
61
  "zod-to-json-schema": "^3.24.5",
62
62
  "@internal/lint": "0.0.12",
63
- "@mastra/core": "0.10.6-alpha.1"
63
+ "@mastra/core": "0.10.6-alpha.2"
64
64
  },
65
65
  "scripts": {
66
66
  "build": "tsup src/index.ts src/server/handlers.ts src/server/handlers/*.ts !src/server/handlers/*.test.ts --format esm,cjs --clean --experimental-dts --treeshake=smallest --splitting",