@mastra/server 0.0.0-fix-memory-search-fetch-20251027160505 → 0.0.0-fix-multi-modal-for-cloud-20251028082043

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,6 +1,6 @@
1
1
  # @mastra/server
2
2
 
3
- ## 0.0.0-fix-memory-search-fetch-20251027160505
3
+ ## 0.0.0-fix-multi-modal-for-cloud-20251028082043
4
4
 
5
5
  ### Major Changes
6
6
 
@@ -43,8 +43,8 @@
43
43
 
44
44
  - Add tool call approval ([#8649](https://github.com/mastra-ai/mastra/pull/8649))
45
45
 
46
- - Updated dependencies [[`f743dbb`](https://github.com/mastra-ai/mastra/commit/f743dbb8b40d1627b5c10c0e6fc154f4ebb6e394), [`6c049d9`](https://github.com/mastra-ai/mastra/commit/6c049d94063fdcbd5b81c4912a2bf82a92c9cc0b), [`9e1911d`](https://github.com/mastra-ai/mastra/commit/9e1911db2b4db85e0e768c3f15e0d61e319869f6), [`ebac155`](https://github.com/mastra-ai/mastra/commit/ebac15564a590117db7078233f927a7e28a85106), [`9d819d5`](https://github.com/mastra-ai/mastra/commit/9d819d54b61481639f4008e4694791bddf187edd), [`5df9cce`](https://github.com/mastra-ai/mastra/commit/5df9cce1a753438413f64c11eeef8f845745c2a8), [`c576fc0`](https://github.com/mastra-ai/mastra/commit/c576fc0b100b2085afded91a37c97a0ea0ec09c7), [`57d157f`](https://github.com/mastra-ai/mastra/commit/57d157f0b163a95c3e6c9eae31bdb11d1bfc64f9), [`cfae733`](https://github.com/mastra-ai/mastra/commit/cfae73394f4920635e6c919c8e95ff9a0788e2e5), [`e3dfda7`](https://github.com/mastra-ai/mastra/commit/e3dfda7b11bf3b8c4bb55637028befb5f387fc74), [`f0f8f12`](https://github.com/mastra-ai/mastra/commit/f0f8f125c308f2d0fd36942ef652fd852df7522f), [`d36cfbb`](https://github.com/mastra-ai/mastra/commit/d36cfbbb6565ba5f827883cc9bb648eb14befdc1), [`53d927c`](https://github.com/mastra-ai/mastra/commit/53d927cc6f03bff33655b7e2b788da445a08731d), [`c7f1f7d`](https://github.com/mastra-ai/mastra/commit/c7f1f7d24f61f247f018cc2d1f33bf63212959a7), [`2c4438b`](https://github.com/mastra-ai/mastra/commit/2c4438b87817ab7eed818c7990fef010475af1a3), [`fa8409b`](https://github.com/mastra-ai/mastra/commit/fa8409bc39cfd8ba6643b9db5269b90b22e2a2f7), [`173c535`](https://github.com/mastra-ai/mastra/commit/173c535c0645b0da404fe09f003778f0b0d4e019)]:
47
- - @mastra/core@0.0.0-fix-memory-search-fetch-20251027160505
46
+ - Updated dependencies [[`f743dbb`](https://github.com/mastra-ai/mastra/commit/f743dbb8b40d1627b5c10c0e6fc154f4ebb6e394), [`6c049d9`](https://github.com/mastra-ai/mastra/commit/6c049d94063fdcbd5b81c4912a2bf82a92c9cc0b), [`9e1911d`](https://github.com/mastra-ai/mastra/commit/9e1911db2b4db85e0e768c3f15e0d61e319869f6), [`ebac155`](https://github.com/mastra-ai/mastra/commit/ebac15564a590117db7078233f927a7e28a85106), [`9d819d5`](https://github.com/mastra-ai/mastra/commit/9d819d54b61481639f4008e4694791bddf187edd), [`5df9cce`](https://github.com/mastra-ai/mastra/commit/5df9cce1a753438413f64c11eeef8f845745c2a8), [`c576fc0`](https://github.com/mastra-ai/mastra/commit/c576fc0b100b2085afded91a37c97a0ea0ec09c7), [`57d157f`](https://github.com/mastra-ai/mastra/commit/57d157f0b163a95c3e6c9eae31bdb11d1bfc64f9), [`d78b38d`](https://github.com/mastra-ai/mastra/commit/d78b38d898fce285260d3bbb4befade54331617f), [`cfae733`](https://github.com/mastra-ai/mastra/commit/cfae73394f4920635e6c919c8e95ff9a0788e2e5), [`e3dfda7`](https://github.com/mastra-ai/mastra/commit/e3dfda7b11bf3b8c4bb55637028befb5f387fc74), [`f0f8f12`](https://github.com/mastra-ai/mastra/commit/f0f8f125c308f2d0fd36942ef652fd852df7522f), [`d36cfbb`](https://github.com/mastra-ai/mastra/commit/d36cfbbb6565ba5f827883cc9bb648eb14befdc1), [`53d927c`](https://github.com/mastra-ai/mastra/commit/53d927cc6f03bff33655b7e2b788da445a08731d), [`bda6370`](https://github.com/mastra-ai/mastra/commit/bda637009360649aaf579919e7873e33553c273e), [`c7f1f7d`](https://github.com/mastra-ai/mastra/commit/c7f1f7d24f61f247f018cc2d1f33bf63212959a7), [`2c4438b`](https://github.com/mastra-ai/mastra/commit/2c4438b87817ab7eed818c7990fef010475af1a3), [`fa8409b`](https://github.com/mastra-ai/mastra/commit/fa8409bc39cfd8ba6643b9db5269b90b22e2a2f7), [`173c535`](https://github.com/mastra-ai/mastra/commit/173c535c0645b0da404fe09f003778f0b0d4e019)]:
47
+ - @mastra/core@0.0.0-fix-multi-modal-for-cloud-20251028082043
48
48
 
49
49
  ## 0.22.2
50
50
 
@@ -2005,15 +2005,64 @@ var zodToJsonSchema = (schema, options) => {
2005
2005
  // ../../node_modules/.pnpm/zod-to-json-schema@3.24.6_zod@3.25.76/node_modules/zod-to-json-schema/dist/esm/index.js
2006
2006
  var esm_default = zodToJsonSchema;
2007
2007
 
2008
- // ../schema-compat/dist/chunk-GWTUXMDD.js
2008
+ // ../schema-compat/dist/chunk-U2HXWNAF.js
2009
+ var PATCHED = Symbol("__mastra_patched__");
2010
+ function patchRecordSchemas(schema) {
2011
+ if (!schema || typeof schema !== "object") return schema;
2012
+ if (schema[PATCHED]) return schema;
2013
+ schema[PATCHED] = true;
2014
+ const def = schema._zod?.def;
2015
+ if (def?.type === "record" && def.keyType && !def.valueType) {
2016
+ def.valueType = def.keyType;
2017
+ def.keyType = z.string();
2018
+ }
2019
+ if (!def) return schema;
2020
+ if (def.type === "object" && def.shape) {
2021
+ const shape = typeof def.shape === "function" ? def.shape() : def.shape;
2022
+ for (const key of Object.keys(shape)) {
2023
+ patchRecordSchemas(shape[key]);
2024
+ }
2025
+ }
2026
+ if (def.type === "array" && def.element) {
2027
+ patchRecordSchemas(def.element);
2028
+ }
2029
+ if (def.type === "union" && def.options) {
2030
+ def.options.forEach(patchRecordSchemas);
2031
+ }
2032
+ if (def.type === "record") {
2033
+ if (def.keyType) patchRecordSchemas(def.keyType);
2034
+ if (def.valueType) patchRecordSchemas(def.valueType);
2035
+ }
2036
+ if (def.type === "intersection") {
2037
+ if (def.left) patchRecordSchemas(def.left);
2038
+ if (def.right) patchRecordSchemas(def.right);
2039
+ }
2040
+ if (def.type === "lazy") {
2041
+ if (def.getter && typeof def.getter === "function") {
2042
+ const originalGetter = def.getter;
2043
+ def.getter = function() {
2044
+ const innerSchema = originalGetter();
2045
+ if (innerSchema) {
2046
+ patchRecordSchemas(innerSchema);
2047
+ }
2048
+ return innerSchema;
2049
+ };
2050
+ }
2051
+ }
2052
+ if (def.innerType) {
2053
+ patchRecordSchemas(def.innerType);
2054
+ }
2055
+ return schema;
2056
+ }
2009
2057
  function zodToJsonSchema2(zodSchema4, target = "jsonSchema7", strategy = "relative") {
2010
2058
  const fn = "toJSONSchema";
2011
2059
  if (fn in z) {
2060
+ patchRecordSchemas(zodSchema4);
2012
2061
  return z[fn](zodSchema4, {
2013
2062
  unrepresentable: "any",
2014
2063
  override: (ctx) => {
2015
- const def = ctx.zodSchema?._zod?.def;
2016
- if (def && def.type === "date") {
2064
+ const def = ctx.zodSchema?._def || ctx.zodSchema?._zod?.def;
2065
+ if (def && (def.typeName === "ZodDate" || def.type === "date")) {
2017
2066
  ctx.jsonSchema.type = "string";
2018
2067
  ctx.jsonSchema.format = "date-time";
2019
2068
  }
@@ -19189,17 +19238,10 @@ ${workflowBuilderPrompts.validation.instructions}`
19189
19238
  resumeData
19190
19239
  });
19191
19240
  const originalInstructions = await executionAgent.getInstructions({ runtimeContext });
19192
- const additionalInstructions = executionAgent.instructions;
19193
- let enhancedInstructions = originalInstructions;
19194
- if (additionalInstructions) {
19195
- enhancedInstructions = `${originalInstructions}
19196
-
19197
- ${additionalInstructions}`;
19198
- }
19199
19241
  const enhancedOptions = {
19200
19242
  stopWhen: stepCountIs(100),
19201
19243
  temperature: 0.3,
19202
- instructions: enhancedInstructions
19244
+ instructions: originalInstructions
19203
19245
  };
19204
19246
  let finalResult = null;
19205
19247
  let allTasksCompleted = false;
@@ -19502,5 +19544,5 @@ var sendAgentBuilderActionRunEventHandler = createAgentBuilderWorkflowHandler(
19502
19544
  );
19503
19545
 
19504
19546
  export { agent_builder_exports, cancelAgentBuilderActionRunHandler, createAgentBuilderActionRunHandler, getAgentBuilderActionByIdHandler, getAgentBuilderActionRunByIdHandler, getAgentBuilderActionRunExecutionResultHandler, getAgentBuilderActionRunsHandler, getAgentBuilderActionsHandler, resumeAgentBuilderActionHandler, resumeAsyncAgentBuilderActionHandler, sendAgentBuilderActionRunEventHandler, startAgentBuilderActionRunHandler, startAsyncAgentBuilderActionHandler, streamAgentBuilderActionHandler, streamVNextAgentBuilderActionHandler, watchAgentBuilderActionHandler };
19505
- //# sourceMappingURL=chunk-ABCBHBR7.js.map
19506
- //# sourceMappingURL=chunk-ABCBHBR7.js.map
19547
+ //# sourceMappingURL=chunk-7HCPO76Z.js.map
19548
+ //# sourceMappingURL=chunk-7HCPO76Z.js.map