@mastra/deployer 0.1.0-alpha.33 → 0.1.0-alpha.34

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 CHANGED
@@ -1,5 +1,13 @@
1
1
  # @mastra/deployer
2
2
 
3
+ ## 0.1.0-alpha.34
4
+
5
+ ### Patch Changes
6
+
7
+ - ab01c53: Fix mastra server agent streamObject
8
+ - Updated dependencies [ccbc581]
9
+ - @mastra/core@0.2.0-alpha.88
10
+
3
11
  ## 0.1.0-alpha.33
4
12
 
5
13
  ### Patch Changes
@@ -2907,13 +2907,23 @@ async function streamGenerateHandler(c2) {
2907
2907
  if (part.type === "error") {
2908
2908
  throw new Error(part.error);
2909
2909
  } else {
2910
- return new Response(streamResult.toDataStream(), {
2911
- headers: {
2912
- "Content-Type": "text/x-unknown",
2913
- "content-encoding": "identity",
2914
- "transfer-encoding": "chunked"
2915
- }
2916
- });
2910
+ if (output) {
2911
+ return new Response(streamResult.toTextStreamResponse(), {
2912
+ headers: {
2913
+ "Content-Type": "text/event-stream",
2914
+ "content-encoding": "identity",
2915
+ "transfer-encoding": "chunked"
2916
+ }
2917
+ });
2918
+ } else {
2919
+ return new Response(streamResult.toDataStream(), {
2920
+ headers: {
2921
+ "Content-Type": "text/event-stream",
2922
+ "content-encoding": "identity",
2923
+ "transfer-encoding": "chunked"
2924
+ }
2925
+ });
2926
+ }
2917
2927
  }
2918
2928
  }
2919
2929
  } catch (error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/deployer",
3
- "version": "0.1.0-alpha.33",
3
+ "version": "0.1.0-alpha.34",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -43,7 +43,7 @@
43
43
  "rollup-plugin-esbuild": "^6.1.1",
44
44
  "rollup-plugin-node-externals": "^8.0.0",
45
45
  "zod": "^3.24.1",
46
- "@mastra/core": "^0.2.0-alpha.87"
46
+ "@mastra/core": "^0.2.0-alpha.88"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@hono/node-server": "^1.13.7",
@@ -156,13 +156,23 @@ export async function streamGenerateHandler(c: Context): Promise<Response | unde
156
156
  if (part.type === 'error') {
157
157
  throw new Error(part.error);
158
158
  } else {
159
- return new Response(streamResult.toDataStream(), {
160
- headers: {
161
- 'Content-Type': 'text/x-unknown',
162
- 'content-encoding': 'identity',
163
- 'transfer-encoding': 'chunked',
164
- },
165
- });
159
+ if (output) {
160
+ return new Response(streamResult.toTextStreamResponse(), {
161
+ headers: {
162
+ 'Content-Type': 'text/event-stream',
163
+ 'content-encoding': 'identity',
164
+ 'transfer-encoding': 'chunked',
165
+ },
166
+ });
167
+ } else {
168
+ return new Response(streamResult.toDataStream(), {
169
+ headers: {
170
+ 'Content-Type': 'text/event-stream',
171
+ 'content-encoding': 'identity',
172
+ 'transfer-encoding': 'chunked',
173
+ },
174
+ });
175
+ }
166
176
  }
167
177
  }
168
178
  } catch (error) {