@ekairos/events 1.22.33-beta.development.0 → 1.22.34-beta.development.0

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.
@@ -173,22 +173,11 @@ function canonicalToolResultContentToOutput(content) {
173
173
  };
174
174
  }
175
175
  if (block.type === "file") {
176
- if (block.mediaType.startsWith("image/") &&
177
- typeof block.data === "string" &&
178
- block.data.length > 0) {
179
- return {
180
- type: "image-data",
181
- data: stripDataUrlPrefix(block.data),
182
- mediaType: block.mediaType,
183
- filename: block.filename,
184
- };
185
- }
186
176
  return {
187
- type: "file",
177
+ type: "media",
188
178
  mediaType: block.mediaType,
189
- filename: block.filename,
190
179
  data: typeof block.data === "string" && block.data.length > 0
191
- ? block.data
180
+ ? stripDataUrlPrefix(block.data)
192
181
  : typeof block.url === "string" && block.url.length > 0
193
182
  ? block.url
194
183
  : block.fileId,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ekairos/events",
3
- "version": "1.22.33-beta.development.0",
3
+ "version": "1.22.34-beta.development.0",
4
4
  "description": "Ekairos Events - Context-first workflow runtime",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -116,7 +116,7 @@
116
116
  },
117
117
  "dependencies": {
118
118
  "@ai-sdk/openai": "^2.0.52",
119
- "@ekairos/domain": "^1.22.33-beta.development.0",
119
+ "@ekairos/domain": "^1.22.34-beta.development.0",
120
120
  "@instantdb/admin": "0.22.158",
121
121
  "@instantdb/core": "0.22.142",
122
122
  "@vercel/mcp-adapter": "^1.0.0",